diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..dfdb8b7 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.sh text eol=lf diff --git a/.github/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.md index 98dab73..14a1c86 100644 --- a/.github/CODE_OF_CONDUCT.md +++ b/.github/CODE_OF_CONDUCT.md @@ -1,4 +1,6 @@ -English | [简体中文](/.github/CODE_OF_CONDUCT.zh_CN.md) +

+ 简体中文 · English +

# Contributor Covenant Code of Conduct @@ -69,7 +71,7 @@ All community leaders are obligated to respect the privacy and security of the reporter of any incident. Security vulnerabilities are not a Code of Conduct issue — please report them -privately via [`SECURITY.md`](/.github/SECURITY.md). +privately via [`SECURITY.md`](SECURITY.md). ## Enforcement Guidelines diff --git a/.github/CODE_OF_CONDUCT.zh_CN.md b/.github/CODE_OF_CONDUCT.zh_CN.md index eb6e8d4..1fdcb95 100644 --- a/.github/CODE_OF_CONDUCT.zh_CN.md +++ b/.github/CODE_OF_CONDUCT.zh_CN.md @@ -1,4 +1,6 @@ -[English](/.github/CODE_OF_CONDUCT.md) | 简体中文 +

+ 简体中文 · English +

# 贡献者公约行为准则 @@ -49,7 +51,7 @@ wiki 编辑�issue �其他贡献,并在适当时说明处�原因。 所有社区维护者都有义务�护事件报告者的��与安全。 -安全�洞�属于行为准则问题——请按 [`SECURITY.zh_CN.md`](/.github/SECURITY.zh_CN.md) �下报告。 +安全�洞�属于行为准则问题——请按 [`SECURITY.md`](SECURITY.md) �下报告。 ## 执行指引 diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 936be15..2bc625e 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -1,4 +1,6 @@ -English | [简体中文](/.github/CONTRIBUTING.zh_CN.md) +

+ 简体中文 · English +

# Contributing @@ -6,17 +8,17 @@ Thank you for contributing to FoloToy AI Passport — code, documentation, firmware, and feedback. This repository is the development baseline for open-source wearable AI hardware designed for AI agents. It is often forked for second development; the fork conventions are in -[`docs/fork-guide.md`](/docs/fork-guide.md). +[`docs/fork-guide.md`](../docs/fork-guide.md). ## Before you start -- Read [`AGENTS.md`](/AGENTS.md): it is the authoritative entry and index for the +- Read [`AGENTS.md`](../AGENTS.md): it is the authoritative entry and index for the rules an AI agent should follow. It is not a replacement for this guide. -- Read [`README.md`](/docs/README.md) for the hardware capability contract, - and the [AI Hardware Development Guide](/docs/hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.md) +- Read [`README.md`](../docs/README.md) for the hardware capability contract, + and the [AI Hardware Development Guide](../docs/hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.md) for the complete hardware context. -- Follow [`CODE_OF_CONDUCT.md`](/.github/CODE_OF_CONDUCT.md) when participating in the - community. For ordinary usage questions, see [`SUPPORT.md`](/.github/SUPPORT.md). +- Follow [`CODE_OF_CONDUCT.md`](CODE_OF_CONDUCT.md) when participating in the + community. For ordinary usage questions, see [`SUPPORT.md`](SUPPORT.md). - Do not commit credentials, tokens, authorization files, or personal data. - The repository's `main` branch stays in sync with the upstream baseline; fork users develop feature work in `feature/*` branches (see `docs/fork-guide.md`). @@ -24,7 +26,7 @@ second development; the fork conventions are in ## Development and verification Use ESP-IDF 5.5.3. For a clean-machine setup, follow the -[environment bootstrap](/docs/development/engineering/environment-setup.md). +[environment bootstrap](../docs/development/engineering/environment-setup.md). Prefer the repository firmware gate for builds and flash its verified merged image at `0x0`. The direct IDF commands below are for incremental development. @@ -57,7 +59,7 @@ The repository provides one validation entry point for local development and CI: ``` Follow the verification requirements in -[`docs/development/engineering/build-and-test.md`](/docs/development/engineering/build-and-test.md): +[`docs/development/build-and-test.md`](../docs/development/engineering/build-and-test.md): a clean `idf.py build` is the minimum automated check, not hardware validation. Record build results and on-device results separately; never present a successful build as successful hardware validation. @@ -68,7 +70,7 @@ build as successful hardware validation. focused on one clear problem. 2. Use `(): ` for the pull request title, for example `feat(bsp): ...`, `docs: ...`. Available types are defined in - [`docs/contribution/commit-and-pr.md`](/docs/contribution/commit-and-pr.md). + [`docs/contribution/commit-and-pr.md`](../docs/contribution/commit-and-pr.md). 3. Review the complete diff and confirm that it contains no credentials, unrelated generated files, or unintended changes. 4. Follow the PR requirements in `docs/contribution/commit-and-pr.md`: state the @@ -84,11 +86,11 @@ scope and compatibility. ## Licensing of contributions -This repository is licensed under [MIT](/LICENSE). By contributing, you agree that +This repository is licensed under [MIT](../LICENSE). By contributing, you agree that your contribution is submitted under the MIT license terms of the repository. ## Security issues Do not disclose vulnerabilities, credentials, or exploitable details in public issues, pull requests, or discussions. Follow the private reporting process in -[`SECURITY.md`](/.github/SECURITY.md). +[`SECURITY.md`](SECURITY.md). diff --git a/.github/CONTRIBUTING.zh_CN.md b/.github/CONTRIBUTING.zh_CN.md index d6e26df..7816175 100644 --- a/.github/CONTRIBUTING.zh_CN.md +++ b/.github/CONTRIBUTING.zh_CN.md @@ -1,24 +1,26 @@ -[English](/.github/CONTRIBUTING.md) | 简体中文 +

+ 简体中文 · English +

# 贡献指� 感谢你为 FoloToy AI Passport 贡献代��文档�固件和�馈。本仓库是�� AI agent 的 开��穿戴 AI 硬件的开�基线。它常被 fork �二次开�,fork 用户约定� -[`docs/fork-guide.zh_CN.md`](/docs/fork-guide.zh_CN.md)。 +[`docs/fork-guide.zh_CN.md`](../docs/fork-guide.zh_CN.md)。 ## 开始之� -- 先读 [`AGENTS.zh_CN.md`](/AGENTS.zh_CN.md):它是 AI agent 应�循规则的��入�与索引,�是本指�的替代�。 -- 先读 [`README.zh_CN.md`](/docs/README.zh_CN.md) 的硬件能力契约,以� - [AI 硬件开�指�](/docs/hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.zh_CN.md) 的完整硬件上下文。 -- �与社区时请�守 [`CODE_OF_CONDUCT.zh_CN.md`](/.github/CODE_OF_CONDUCT.zh_CN.md);普通使用问题� [`SUPPORT.zh_CN.md`](/.github/SUPPORT.zh_CN.md)。 +- 先读 [`AGENTS.zh_CN.md`](../AGENTS.zh_CN.md):它是 AI agent 应�循规则的��入�与索引,�是本指�的替代�。 +- 先读 [`README.zh_CN.md`](../docs/README.zh_CN.md) 的硬件能力契约,以� + [AI 硬件开�指�](../docs/hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.zh_CN.md) 的完整硬件上下文。 +- �与社区时请�守 [`CODE_OF_CONDUCT.md`](CODE_OF_CONDUCT.md);普通使用问题� [`SUPPORT.md`](SUPPORT.md)。 - ���交凭��令牌�授�文件或个人数�。 - 仓库的 `main` 分支始终与上游基线���步;fork 用户在 `feature/*` 分支开�功能(� `docs/fork-guide.md`)。 ## 开�与验� 使用 ESP-IDF 5.5.3。全新机器先按 -[环境引导](/docs/development/engineering/environment-setup.zh_CN.md)完�安装。 +[环境引导](../docs/development/engineering/environment-setup.zh_CN.md)完�安装。 编译优先�行仓库固件门�,烧录优先把验�过的�并镜�写入 `0x0`。以下直接 IDF 命令�用于增�开�。 @@ -50,7 +52,7 @@ cc -std=c11 -Wall -Wextra -Werror -Imain \ ./tools/validate.sh # 完整门� ``` -�守 [`docs/development/engineering/build-and-test.zh_CN.md`](/docs/development/engineering/build-and-test.zh_CN.md) 的 +�守 [`docs/development/build-and-test.zh_CN.md`](../docs/development/engineering/build-and-test.zh_CN.md) 的 验��求:干净的 `idf.py build` 是最低自动检查,�是硬件验收;构建结果与真机结果 分开记录,�止把编译通过�述�硬件验�通过。 @@ -58,7 +60,7 @@ cc -std=c11 -Wall -Wextra -Werror -Imain \ 1. 从 `main` 创建短生命周期 `feature/*` 分支,��一个 PR �解决一个清晰的问题。 2. PR 标题使用 `(): <简短�述>`,例如 `feat(bsp): ...`�`docs: ...`。 - �用 type � [`docs/contribution/commit-and-pr.zh_CN.md`](/docs/contribution/commit-and-pr.zh_CN.md)。 + �用 type � [`docs/contribution/commit-and-pr.zh_CN.md`](../docs/contribution/commit-and-pr.zh_CN.md)。 3. Review 完整 diff,确认没有凭��无关生�文件或�外改动。 4. �守 `docs/contribution/commit-and-pr.md` 的 PR �求:说明测试的硬件/版本� 行为�更摘��构建与真机结果,链接相关 issue,并对引脚�显示旋转�codec 时钟� @@ -70,9 +72,9 @@ cc -std=c11 -Wall -Wextra -Werror -Imain \ ## 贡献的许� -本仓库使用 [MIT](/LICENSE) 许��。�交贡献�表示你��按本仓库的 MIT �款并入你的贡献。 +本仓库使用 [MIT](../LICENSE) 许��。�交贡献�表示你��按本仓库的 MIT �款并入你的贡献。 ## 安全�洞 ��在公开 issue�Pull Request 或讨论中披露�洞�凭�或�利用细节。请按 -[`SECURITY.zh_CN.md`](/.github/SECURITY.zh_CN.md) 的�密报告�程处�。 +[`SECURITY.md`](SECURITY.md) 的�密报告�程处�。 diff --git a/.github/SECURITY.md b/.github/SECURITY.md index 3e77991..8025a26 100644 --- a/.github/SECURITY.md +++ b/.github/SECURITY.md @@ -1,4 +1,6 @@ -English | [简体中文](/.github/SECURITY.zh_CN.md) +

+ 简体中文 · English +

# Security Policy diff --git a/.github/SECURITY.zh_CN.md b/.github/SECURITY.zh_CN.md index 8888f55..2d32ab1 100644 --- a/.github/SECURITY.zh_CN.md +++ b/.github/SECURITY.zh_CN.md @@ -1,4 +1,6 @@ -[English](/.github/SECURITY.md) | 简体中文 +

+ 简体中文 · English +

# 安全�洞报告 diff --git a/.github/SUPPORT.md b/.github/SUPPORT.md index fb54622..043b263 100644 --- a/.github/SUPPORT.md +++ b/.github/SUPPORT.md @@ -1,4 +1,6 @@ -English | [简体中文](/.github/SUPPORT.zh_CN.md) +

+ 简体中文 · English +

# Support @@ -10,12 +12,12 @@ guaranteed. ## Where to start - Hardware facts, wiring, and known traps: read - [`README.md`](/docs/README.md) and the - [AI Hardware Development Guide](/docs/hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.md). + [`README.md`](../docs/README.md) and the + [AI Hardware Development Guide](../docs/hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.md). - AI agent workflow and engineering rules: read - [`AGENTS.md`](/AGENTS.md) and its rule index. + [`AGENTS.md`](../AGENTS.md) and its rule index. - Security vulnerabilities, credentials, or exploitable details: follow - [`SECURITY.md`](/.github/SECURITY.md) and report privately. + [`SECURITY.md`](SECURITY.md) and report privately. - Ordinary bugs: open a GitHub issue with the board revision, firmware version, and reproduction steps. - Feature requests: use the feature request template and describe the use case diff --git a/.github/SUPPORT.zh_CN.md b/.github/SUPPORT.zh_CN.md index e80a6a7..74b62cf 100644 --- a/.github/SUPPORT.zh_CN.md +++ b/.github/SUPPORT.zh_CN.md @@ -1,4 +1,6 @@ -[English](/.github/SUPPORT.md) | 简体中文 +

+ 简体中文 · English +

# 使用支� @@ -7,10 +9,10 @@ FoloToy AI Passport 是开�硬件与固件。社区�以帮助确认��现 ## 先查什么 -- 硬件事实�接线和已知陷阱:先看 [`README.zh_CN.md`](/docs/README.zh_CN.md) 和 - [AI 硬件开�指�](/docs/hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.zh_CN.md)。 -- AI agent 工作�和工程规则:先看 [`AGENTS.zh_CN.md`](/AGENTS.zh_CN.md) �其规则索引。 -- 安全�洞�凭�或�利用细节:按照 [`SECURITY.zh_CN.md`](/.github/SECURITY.zh_CN.md) �下报告。 +- 硬件事实�接线和已知陷阱:先看 [`README.zh_CN.md`](../docs/README.zh_CN.md) 和 + [AI 硬件开�指�](../docs/hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.zh_CN.md)。 +- AI agent 工作�和工程规则:先看 [`AGENTS.zh_CN.md`](../AGENTS.zh_CN.md) �其规则索引。 +- 安全�洞�凭�或�利用细节:按照 [`SECURITY.md`](SECURITY.md) �下报告。 - 普通 Bug:�交 GitHub issue,并�供��版本�固件版本和�现步骤。 - 功能建议:�交 feature request,说明使用场景和期望结果。 - 使用问题:用「Usage question / 使用问题�issue 模��问。 diff --git a/.github/workflows/sync-main.yml b/.github/workflows/sync-main.yml index a5c016c..311f8c2 100644 --- a/.github/workflows/sync-main.yml +++ b/.github/workflows/sync-main.yml @@ -19,7 +19,6 @@ jobs: - name: Checkout target repo uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 with: - ref: main persist-credentials: false # Step 2: run the sync action @@ -35,6 +34,6 @@ jobs: - name: Sync check if: failure() run: | - echo "[Error] �步失败,请检查日志;若涉�上游 workflow �更,请手动 Sync Fork,详� docs/development/ci/CI-sync-main.md。" - echo "[Error] Synchronization failed; inspect the logs. For upstream workflow changes, Sync the fork manually; see docs/development/ci/CI-sync-main.md." + echo "[Error] 由于上游仓库的 workflow 文件�更,GitHub �能暂�本次自动更新。请手动 Sync Fork,详� docs/development/CI-sync-main.md。" + echo "[Error] An upstream workflow change may have paused automatic synchronization. Sync the fork manually; see docs/development/CI-sync-main.md." exit 1 diff --git a/.gitignore b/.gitignore index 2c53b21..cef2d41 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ build/ +build-*/ sdkconfig sdkconfig.old managed_components/ @@ -11,3 +12,6 @@ managed_components/ /.agents/skills/passport-build /.agents/skills/passport-device-test /.agents/skills/passport-debug + +__pycache__/ +backups/ \ No newline at end of file diff --git a/AGENTS.md b/AGENTS.md index 0b21f9d..eb7fb07 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -6,26 +6,6 @@ This file is the only mandatory entry point for AI-assisted work in this repository. Read task-specific documents from the routing table below; do not load every README by default. -## Required AI skills - -The following five skills are required for AI-assisted development in this repository: -`passport-develop`, `passport-setup`, `passport-build`, `passport-device-test`, and -`passport-debug`. Their maintained sources are under `skills/`. - -Before starting development, the AI must check that all five are installed and -available in its current environment. If any are missing, the AI must choose an -appropriate installation method for its tool and environment, perform the -installation, and verify availability itself. Do not wait for the user to request -installation or make the user choose the method or run installation commands. -No particular script, installation directory, or AI client is mandatory. - -Respect the environment's approval requirements and preserve existing skills -and user configuration. If permissions, conflicts, or platform limitations prevent -installation, explain the blocker and request only the necessary user action; -do not claim installation succeeded. Having all five available does not mean -loading or invoking all five for every task: use only the matching skills, and -retain the separate authorization requirements for flashing, Git writes, and publishing. - ## Project and safety baseline - Target: ESP32-C3, 8 MB Flash, no PSRAM, ESP-IDF 5.5.3. @@ -34,12 +14,9 @@ retain the separate authorization requirements for flashing, Git writes, and pub may deliberately change this layout; validate the resulting table and do not turn product-specific partitions into mandatory template contracts. - Preserve existing user changes. Start with `git status --short --branch`; never overwrite or clean unrelated files. -- Flashing new firmware does not require backing up the firmware already on the device; do not make a Flash readback a prerequisite. This does not guarantee preservation of user data or authorize a full-chip erase. Follow the [flashing and data policy](docs/development/engineering/firmware-layout.md#flashing-and-stored-data). - Hardware facts follow this priority: product specifications and measured results → `components/bsp/include/bsp_pins.h` → BSP headers and implementation → hardware guide → README/demo code. If a task requires a hardware detail not defined by these sources, ask the user instead of guessing. - Reusable board logic belongs in `components/bsp`; pages, state machines, animations, and application tasks belong in `main`. -- Derivative applications must redesign and implement their own UI. Reusing the current demo test menu, screens, or visual shell is prohibited; renaming, recoloring, or adding a feature to that shell does not count as a redesign. BSP APIs and non-UI logic remain reusable. See the [mandatory UI redesign rule](docs/development/ai-guide.md#mandatory-ui-redesign-for-derivative-applications). - LVGL is not thread-safe. Code outside the LVGL task must hold `bsp_lvgl_lock()` while accessing LVGL objects. -- Before adding Chinese UI text, follow the [font checklist](docs/development/engineering/coding-conventions.md#chinese-fonts-and-missing-glyphs). The default Montserrat fonts have no Chinese glyphs; UTF-8 and a successful build do not prove display support. Verify glyph coverage, widget font selection, and on-device rendering. - Button callbacks must stay non-blocking. Audio, storage, networking, and other slow operations belong in worker tasks. - A demo must stop every task, timer, callback, and event handler that can access its UI before deleting the screen. - Keep testable state machines, protocols, timing, and layout calculations independent from ESP-IDF/LVGL and cover them with host tests. @@ -51,12 +28,9 @@ retain the separate authorization requirements for flashing, Git writes, and pub | Task | Read before editing | | --- | --- | | Any code change | `docs/development/ai-guide.md`, relevant headers and neighboring implementation | -| Application workflow or core skill setup | `skills/README.md`; ensure the five required skills are available, then use only the matching skill | | Environment bootstrap or missing toolchain | `docs/development/engineering/environment-setup.md` | | BSP, pins, buses, display, audio, battery | `docs/hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.md`, `components/bsp/include/bsp_pins.h` | | Demo or menu | `main/demo.h`, `main/main.c`, the nearest `main/demo_*.c` implementation | -| Chinese UI text or fonts | `docs/development/engineering/lvgl-chinese-fonts.md`, the application's font assets, configuration, and widget styles | -| Wi-Fi connection or Bluetooth provisioning | `docs/development/engineering/wifi-provisioning.md`, the referenced `demo/blufi-provisioning` implementation | | Build, test, dependencies, partitions | `docs/development/engineering/build-and-test.md`, `docs/development/engineering/firmware-layout.md`, `sdkconfig.defaults`, `partitions.csv` | | CI or release | the matching file in `docs/development/ci/CI-*.md` and `.github/workflows/` | | Project completion | `docs/development/release/project-completion.md` (then the `issue-suggestions` or `experience-pr` skill) | @@ -84,13 +58,6 @@ Device tests: PASS / FAIL / NOT RUN Unverified: remaining board, instrument, or user checks ``` -After each complete implementation of a user-requested firmware change, -proactively ask whether to flash it to the device for testing; do not wait for -a release request. If no device is detected, ask the user to turn it on and -connect it to a computer USB port with a data-capable cable. Follow the -[on-device testing handoff](docs/development/ai-guide.md#offer-on-device-testing) -and obtain approval before flashing; detection alone is not consent. - Create commits and push only when the user requests them or the active workflow explicitly requires them. Ordinary feature, application, and documentation pull requests must not edit `docs/CHANGELOG.md` or `docs/CHANGELOG.zh_CN.md`; describe user-visible behavior, compatibility, and release-flow impact in the pull-request body and authoritative documentation instead. During release preparation, the release maintainer aggregates merged user-visible changes into both changelog files before creating the tag. Community guidance is in `.github/CONTRIBUTING.md`, `.github/CODE_OF_CONDUCT.md`, `.github/SECURITY.md`, and `.github/SUPPORT.md`. diff --git a/AGENTS.zh_CN.md b/AGENTS.zh_CN.md index 6b67f06..4a91da2 100644 --- a/AGENTS.zh_CN.md +++ b/AGENTS.zh_CN.md @@ -6,22 +6,6 @@ 本文是本仓库 AI 辅助工作的唯一必读入�。根�下方路由表读�当�任务所需文档,��默认加载全部 README。 -## 必需 AI 技能 - -以下五个技能是本仓库 AI 辅助开�的必需项:`passport-develop`� -`passport-setup`�`passport-build`�`passport-device-test`�`passport-debug`。 -技能���文件�于 `skills/`。 - -开始开��,AI 必须自行检查这五个技能是�已在当�环境安装并�用。缺少时, -由 AI 根�所用工具和环境,自行选择�适的安装方��完�安装并验��用性。 -�等待用户�外�出安装�求,也�把选择安装方�或执行安装命令交给用户。 -�强制使用特定脚本�安装目录或 AI 客户端。 - -安装必须�守环境的��审批�求,�留已有技能和用户�置。���冲�或平� -�制导致无法安装时,说明阻�,�请求必�的用户��,�得谎报安装�功。 -五个技能必须�用,�代表�次任务都加载或调用全部技能;�使用匹�当�任务 -的技能。烧录�Git 写�作和�布�须分别�得相应授�。 - ## 项目与安全基线 - 目标平�:ESP32-C3�8 MB Flash�无 PSRAM�ESP-IDF 5.5.3。 @@ -29,12 +13,9 @@ 剩余空间的�个 factory app。用户固件�以按需求明确调整布局;修改�必须 验�结果,�得把产�专用分区��模�的强制契约。 - �留用户已有修改。先执行 `git status --short --branch`,�得覆盖或清�无关文件。 -- 下载(烧录)新固件无需备份设备内原有固件,�得把读� Flash 备份作为�置�件。这����留用户数�,也�授�全片擦除;�循[烧录与数�说明](docs/development/engineering/firmware-layout.zh_CN.md#烧录与已存数�)。 - 硬件事实优先级:产�规格与实测结果 → `components/bsp/include/bsp_pins.h` → BSP 头文件与实现 → 硬件指� → README/demo。任务所需硬件细节未在这些��中定义时,直接询问用户,�得猜测。 - ��用�级逻辑放入 `components/bsp`;页��状�机�动画和应用任务放入 `main`。 -- 二次开�应用必须�新设计并实现独立 UI,�止沿用当� demo 测试���页�或界�外壳;仅改���颜色或在原界�增加功能�算�新设计。BSP API 和� UI 逻辑���用。详�[二次开� UI 强制�新设计规则](docs/development/ai-guide.zh_CN.md#二次开�-ui-强制�新设计)。 - LVGL �线程安全。LVGL 任务之外访问 LVGL 对象时必须�有 `bsp_lvgl_lock()`。 -- 添加中文 UI �必须�循[字体检查清�](docs/development/engineering/coding-conventions.zh_CN.md#中文字体与缺字排查)。默认 Montserrat 字体��中文字形;UTF-8 正确�编译�功��代表能够显示中文。必须核对字形覆盖�控件实际字体并完�真机显示验收。 - 按键回调�得阻塞。音频�存储�网络等慢�作必须放入工作任务。 - demo 删除 screen �,必须�止所有�能访问其 UI 的任务�定时器�回调和事件处�器。 - �测试的状�机��议�计时和布局计算应与 ESP-IDF/LVGL 解耦,并由 host tests 覆盖。 @@ -46,12 +27,9 @@ | 任务 | 修改�读� | | --- | --- | | 任�代�修改 | `docs/development/ai-guide.zh_CN.md`�相关头文件和相邻实现 | -| 应用工作�或核心技能�置 | `skills/README.zh_CN.md`;确认五个必需技能�用,�使用匹�当�任务的技能 | | 环境引导或缺少工具链 | `docs/development/engineering/environment-setup.zh_CN.md` | | BSP�引脚�总线�显示�音频�电池 | `docs/hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.zh_CN.md`�`components/bsp/include/bsp_pins.h` | | Demo 或�� | `main/demo.h`�`main/main.c`�最近的 `main/demo_*.c` 实现 | -| 中文 UI 或字体 | `docs/development/engineering/lvgl-chinese-fonts.zh_CN.md`�应用字体素���置与控件样� | -| Wi-Fi �网或�牙�网 | `docs/development/engineering/wifi-provisioning.zh_CN.md`�其中引用的 `demo/blufi-provisioning` 实现 | | 构建�测试��赖�分区 | `docs/development/engineering/build-and-test.zh_CN.md`�`docs/development/engineering/firmware-layout.zh_CN.md`�`sdkconfig.defaults`�`partitions.csv` | | CI 或�布 | `docs/development/ci/CI-*.zh_CN.md` 中的对应文件与 `.github/workflows/` | | 项目开�完� | `docs/development/release/project-completion.zh_CN.md`(�进入 `issue-suggestions` 或 `experience-pr` skill) | @@ -79,12 +57,6 @@ Device tests: PASS / FAIL / NOT RUN Unverified: �需���仪器或用户确认的事项 ``` -�次完整实现用户�出的固件需求�,必须主动询问是�将固件刷写到设备中进行 -测试,�能�等到�布时�询问。未检测到设备时,�示用户将设备开机,�用 -支�数�传输的数�线连接电脑 USB 接�。�循 -[真机测试交接�程](docs/development/ai-guide.zh_CN.md#主动询问真机测试), -烧录�须�得用户��;检测到设备本身�代表获得烧录授�。 - 仅在用户请求或当�工作�明确�求时创建 commit 和 push。普通功能�应用和文档 PR �得修改 `docs/CHANGELOG.md` 或 `docs/CHANGELOG.zh_CN.md`;用户��行为�兼容性和�布�程影�改为写入 PR 正文�对应��文档。�布准备期间,由�布负责人在创建 tag �把已�并的用户���化统一汇总到两份�更日志。 社区规范� `.github/CONTRIBUTING.zh_CN.md`�`.github/CODE_OF_CONDUCT.zh_CN.md`�`.github/SECURITY.zh_CN.md` 与 `.github/SUPPORT.zh_CN.md`。 diff --git a/CMakeLists.txt b/CMakeLists.txt index d803bce..fa861e5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,19 @@ cmake_minimum_required(VERSION 3.16) +# Runtime Opus is shared by Voice Keychain and XiaoZhi through esp_audio_codec. +# The vendored reference decoder remains available to offline bundle tools. +set(EXCLUDE_COMPONENTS opus) include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(FoloToy-AI-Passport) + +# Existing sdkconfig values override defaults. Do not accidentally ship an +# old debug configuration with the real-time audio workload. +option(BADGE_ALLOW_DEBUG_BUILD "Explicitly allow an unoptimized diagnostic build" OFF) +if(NOT CONFIG_COMPILER_OPTIMIZATION_SIZE AND NOT BADGE_ALLOW_DEBUG_BUILD) + message(FATAL_ERROR "Badge release requires CONFIG_COMPILER_OPTIMIZATION_SIZE=y in the active sdkconfig. For intentional debugging only, set BADGE_ALLOW_DEBUG_BUILD=ON.") +endif() + +# Segmented flashing skips NVS and both existing profile partitions. +idf_build_get_property(voice_build_dir BUILD_DIR) +esptool_py_flash_to_partition(flash "voice_data" "${voice_build_dir}/voice_data.bin") +esptool_py_flash_to_partition(flash "voice_tail" "${voice_build_dir}/voice_tail.bin") diff --git a/README.md b/README.md new file mode 100644 index 0000000..6588892 --- /dev/null +++ b/README.md @@ -0,0 +1,167 @@ +

简体中文 · English

+ +# Arasaka Personnel Badge · AI Passport + +> Hardware Target: FoloToy AI Passport (ESP32-C3 · 8 MB Flash · 240 × 320 ST7789 display · 3 physical buttons · ES8311 audio · CW2017 fuel gauge) +> Firmware Version: **v2.6.53** + +A Cyberpunk/Arasaka corporate-themed wearable badge firmware. Integrates **5 themed mini-apps**, **full XiaoZhi AI voice interaction with 19 MCP device control tools**, **252-pose vector emotion avatars**, **5 independent local badge profile slots**, and **offline Web serial/hotspot configuration**. + +Transitions and selections provide a single 160 ms scanning-line response with zero continuous flashing or artificial latency. All fonts, vector glyphs, and layouts are tailored for the 240 × 320 portrait display. + +--- + +## Architecture & Features + +```text +┌─────────────────────────────────────────────────────────────� +│ Badge Home │ +│ · Corporate/custom branding · Geometric dynamic emblem │ +│ · Real-time clock & battery · Wi-Fi connection status │ +│ · Avatar & ID clearance · 1/5 slot indicator │ +└──────────────┬───────────────────┬───────────────────┬──────┘ + │ (Short press UP) │ (Long press UP) │ (Short press OK) + ▼ ▼ ▼ + ┌───────────────� ┌───────────────� ┌───────────────� + │ Mini Apps │ │ XiaoZhi AI │ │ Terminal │ + └───────┬───────┘ └───────────────┘ └───────┬───────┘ + │ │ + ┌─────────┴─────────� ┌─────────┴─────────� + │ 1. Zen Muyu │ │ · Mini Apps │ + │ 2. Voice Keychain │ │ · Profile Config │ + │ 3. City Radio │ │ · My QR │ + │ 4. Cyber Yao │ │ · System Settings │ + │ 5. Holy Cup │ │ · Return to Badge │ + └───────────────────┘ └───────────────────┘ +``` + +### 1. Five Themed Built-in Mini-Apps + +All mini-apps are managed under the unified system lifecycle and adapt to the active badge's 5-color palette (background, panel, accent, primary text, muted text): + +| Mini-App | ID | Description & Highlights | Key Controls | +| --- | --- | --- | --- | +| **Zen Muyu** | `zen-muyu` | Vector wooden-fish striking animation and sound, manual or auto-strike mode, 4 rhythm settings (30/60/80/120 bpm). Progress persists in NVS across reboots. | **OK**: Strike
**UP**: Toggle Auto/Manual
**DOWN**: Cycle tempo (30/60/80/120 bpm)
**Long UP**: Pause & save
**Long DOWN**: Cycle volume (0/20/40/60/80%) | +| **Voice Keychain** | `voice-keychain` | 24 categories and 695 soundboard clips. Lightweight stream decoder with zero backlog on new playback; long titles scroll smoothly. | **UP/DOWN**: Navigate categories/clips
**OK**: Enter / Play
**Long UP**: Volume setting
**Long DOWN**: Stop playback | +| **City Radio** | `leo-radio` | Internet radio player streaming curated city stations over Wi-Fi, featuring channel resume and audio recovery. | **UP/DOWN**: Switch station
**OK**: Play / Pause
**Long UP**: Radio / network settings | +| **Cyber Yao** | `cyber-yao` | I Ching divination based on CyberYAO. Throw 3 coins six times to cast hexagrams from bottom to top; scroll judgements and line texts; automatic true solar time calibration via IP geolocation; one-key XiaoZhi interpretation handoff. | **OK**: Throw coins / Request XiaoZhi reading
**UP/DOWN**: Scroll judgements & line text
**Long DOWN**: Recast / start over | +| **Holy Cup** | `holy-cup` | Traditional decision-making oracle (Jiaobei). Cast two crescent wooden blocks for Shengbei (positive / proceed), Xiaobei (laughing / re-ask), or Yinbei (negative / defer). Rendered with vector shading and counter. | **OK**: Cast again
**Long OK**: Return to app list | + +> **Global Navigation Chooser**: Holding **OK** on any sub-page or mini-app opens a 3-way navigation chooser: **Previous Page / Home / Continue**, avoiding accidental exits or lost progress. + +--- + +### 2. XiaoZhi Voice AI Assistant + +Access XiaoZhi voice conversation directly by **holding UP on Badge Home** or via **Terminal → System → XiaoZhi AI**: + +- **Streaming Semi-Duplex Conversation**: Automatic endpoint detection (VAD); replies play back immediately via Opus stream with interrupt support on OK. +- **252 Vector Emotion Poses (Face Clock)**: + - 4 selectable styles: **Cute Character**, **Male Portrait (bald with soft reflection)**, **Female Portrait (bob hair & clips)**, **King of the Road**. + - 21 emotion states per style, each with 3 dedicated pose variations (63 poses/style, 252 total). + - Mouth shapes react to real-time PCM audio playback levels. Assets use row-indexed lossless RLE decoding for minimal RAM consumption. + - In chat: **Long UP** cycles avatar style; **Long DOWN** jumps to XiaoZhi settings. +- **19 MCP Device Control Tools**: + XiaoZhi understands natural language and invokes on-device functions directly: + 1. `self.get_device_status`: Query battery, Wi-Fi, brightness, and configured badge profiles. + 2. `self.apps.open`: Launch an app (`zen-muyu`, `leo-radio`, `voice-keychain`, `cyber-yao`). + 3. `self.audio.search` / `self.audio.play` / `self.audio.play_random`: Search or play specific/random audio clips. + 4. `self.badge.show_qr`: Display active personal QR code immediately. + 5. `self.badge.switch`: Switch active badge profile by slot number (1–5) or name. + 6. `self.display.set_brightness`: Adjust screen backlight brightness (20%–100%). + 7. `self.xiaozhi.set_volume`: Adjust XiaoZhi speech reply volume independently (0–100%). + 8. `self.radio.search` / `self.radio.play`: Search and stream online radio stations. + 9. `self.reminder.set` / `get` / `cancel`: Manage up to 8 persistent alarms/reminders (countdown, clock time, dates, weekday repetitions). + 10. `self.yao.cast` / `self.yao.get`: Voice casting and structured I Ching interpretation query. + 11. `self.badge.get_profile` / `update_profile`: Read or edit badge text fields (name, department, title) via voice. + 12. `self.system.action`: Return home (`home`) or enter deep sleep (`shutdown`). + +--- + +### 3. Five Local Badge Profiles & Web Tooling + +Store **5 independent identity profiles** directly in flash, each keeping its own name, title, department, ID, avatar photo, brand logo, and 5-color theme. + +- **Quick Switching**: Hold **OK** on Badge Home to open the profile switcher; selected profile persists across power cycles. +- **Web Serial Configuration (`configure/index.html`)**: + - **Direct USB Web Serial**: Open the offline configuration page in Chrome or Edge, connect USB, and configure without installing drivers, software, or uploading data to any cloud. + - **Phone Hotspot Setup**: When away from a PC, open **System → Network** and press OK to turn on the configuration hotspot. Connect with a smartphone and browse `http://192.168.4.1` for the full setup UI. + - **Smart Cropping**: Upload photos and QR codes up to 10 MB; images are cropped to 72 × 88 avatars and sharp monochrome QR bitmaps automatically. + +--- + +## Button Navigation Summary + +| Screen | Gesture | Action | +| --- | --- | --- | +| **Badge Home** | Short UP | Open Mini-Apps list | +| | Long UP | Launch XiaoZhi AI Conversation | +| | Short DOWN | Show Personal QR code instantly | +| | Short OK | Open Terminal menu | +| | Long OK | Open Badge Profile switcher (1–5) | +| **Terminal Menu** | UP / DOWN | Select item (Mini-Apps, Profile, QR, Settings, Home) | +| | Short OK | Enter selected page | +| | Long OK | Open Return Chooser (Previous / Home / Continue) | +| **Personal QR** | DOWN / OK | Dismiss QR and return | +| **XiaoZhi AI** | Short OK | Start / Pause / Interrupt conversation | +| | UP / DOWN | Adjust XiaoZhi volume (±10%) | +| | Long UP | Cycle & save avatar face style | +| | Long DOWN | Open XiaoZhi AI settings | +| **Sub-pages** | Long OK | Open Return Chooser (Previous / Home / Continue) | + +--- + +## Flash Partition Layout + +Configured for ESP32-C3 (8 MB Flash, no PSRAM): + +- `factory` (Application binary): `3.75 MiB` (0x3C0000 bytes at 0x10000) +- `voice_data` (Voice pack head): `2.75 MiB` (at 0x3D0000) +- `voice_tail` (Voice pack tail): `512 KiB` (at 0x750000) +- `badge_slots` (Profiles 2–5): `768 KiB` (at 0x690000) +- `badge_user` (Profile 1): `192 KiB` (at 0x7D0000) +- `nvs` / `otadata` / `phy_init`: standard system partitions. + +Each profile uses dual A/B 96 KB banks with CRC validation, keeping data safe across firmware updates and unexpected power loss. + +--- + +## Build & Installation + +### Prerequisites +- **ESP-IDF**: v5.5.3 (environment activated) +- **Tools**: Python 3, Git, CMake, Ninja + +### Verification & Build +```bash +# 1. Run repository consistency checks +python tools/check_repo.py + +# 2. Build firmware +idf.py -B build -D SDKCONFIG=build/sdkconfig build + +# 3. Create merged binary and verify +idf.py -B build merge-bin -o FoloToy-AI-Passport-full.bin +python tools/verify_firmware.py build +``` + +### Flashing +```bash +# Segmented flashing (recommended; preserves saved badge profiles & NVS): +idf.py -p COM6 flash monitor + +# Or use the flash management tool with automatic backup: +python tools/flash_badge.py --port COM6 --backup-dir ./my_backup +``` + +--- + +## Licenses & Acknowledgments + +- Firmware implementation licensed under the [MIT License](LICENSE). +- Based on the upstream [FoloToy AI Passport](https://github.com/FoloToy/AI-Passport) hardware development baseline. +- City Radio mini-app is based on [leo-radio](https://github.com/leo0183/leo-radio) (MIT License). +- Voice Keychain mini-app originates from [Shinku-Chen/ai-passport (feature/voice-keychain)](https://github.com/Shinku-Chen/ai-passport/tree/feature/voice-keychain) (MIT License). +- XiaoZhi AI voice conversation protocol and integration derived from [FoloToy/folo-ai-passport-xiaozhi](https://github.com/FoloToy/folo-ai-passport-xiaozhi) (MIT License). +- I Ching text and core divination rules derived from [CyberYAO](https://github.com/XadillaX/CyberYAO) (MIT License). +- Visual references: Arasaka and Cyberpunk 2077 references belong to CD PROJEKT RED and their respective owners. Used here solely for non-commercial open-source maker education. diff --git a/README.zh_CN.md b/README.zh_CN.md new file mode 100644 index 0000000..a922e07 --- /dev/null +++ b/README.zh_CN.md @@ -0,0 +1,167 @@ +

简体中文 · English

+ +# ��员工牌 (Arasaka Personnel Badge) · AI Passport + +> 硬件平�:FoloToy AI Passport (ESP32-C3 · 8 MB Flash · 240 × 320 ST7789 显示� · 三物�按键 · ES8311 音频 · CW2017 电�计) +> 固件版本:**v2.6.53** + +基于赛�朋克���业风格打造的智能全功能工牌系统。集� **5 款内置主题化�程�**�**全套�智 AI 语音交互与 19 项设备控制工具**�**多套矢�情绪表情**�**5 套独立本地身份�槽** � **离线 Web 端侧�置套件**。 + +页�与选项切�采用 160ms 扫�线视觉�馈,告别多余延迟与虚�动效。全部界�文字�矢�图案与排版深度针对 240 × 320 竖�优化。 + +--- + +## 核心功能全览 + +```text +┌─────────────────────────────────────────────────────────────� +│ 工牌首页 (Badge Home) │ +│ · ��/自定义�业�牌 · 几何动�徽记 · 头�与工�/�� │ +│ · 实时时间与电池百分比 · 网络连接状� · 1/5 槽�标识 │ +└──────────────┬───────────────────┬───────────────────┬──────┘ + │ (按键直达) │ (长按上键) │ (短按 OK) + ▼ ▼ ▼ + ┌───────────────� ┌───────────────� ┌───────────────� + │ �程�应用库 │ │ �智 AI │ │ 员工终端 │ + │ (Mini Apps) │ │ (XiaoZhi AI) │ │ (Terminal) │ + └───────┬───────┘ └───────────────┘ └───────┬───────┘ + │ │ + ┌─────────┴─────────� ┌─────────┴─────────� + │ 1. 敲木鱼 │ │ · �程�应用库 │ + │ 2. 音效钥匙扣 │ │ · 工牌资料/热点�网│ + │ 3. 城市电� │ │ · 我的二维� │ + │ 4. 赛�摇� │ │ · 系统设置 (��智)│ + │ 5. 圣�决策 │ │ · 返回工牌首页 │ + └───────────────────┘ └───────────────────┘ +``` + +### 1. 五款主题化内置�程� (Mini Apps) + +所有内置�程��由系统统一管�生命周期,实时自适应当�工牌的 5 色主题�色方案(背景色���色�强调色�主文字色�辅文字色): + +| �程� | 标识 (ID) | 功能与特色 | 核心按键�作 | +| --- | --- | --- | --- | +| **敲木鱼** | `zen-muyu` | 矢�敲击动画与解压音效,支�手动敲击与自动连敲;4 档节�循环;数��久化�存到 NVS,断电���丢失累计功德。 | **OK**:敲击
**上键**:切�自动/手动
**下键**:切�节� (30/60/80/120 次/分)
**长按上**:暂�并�存
**长按下**:切�音� (0/20/40/60/80%) | +| **音效钥匙扣** | `voice-keychain` | 精选 24 个音频分类�695 段�典音效,独立轻�解�器,打断�播�积压;长歌�平滑滚动显示。 | **上下键**:选分类/选音效
**OK**:进入/播放
**长按上**:音�设置
**长按下**:�止播放 | +| **城市电�** | `leo-radio` | 集� LEO Radio 在线收音机,连上 Wi-Fi ����播放国内外精选城市广播频�;支�断点记忆频�。 | **上下键**:快速切�
**OK**:播放 / 暂�
**长按上**:网络与电�设置 | +| **赛�摇�** | `cyber-yao` | 基于 CyberYAO 六爻周易起�模型;投掷 3 枚铜钱自下而上��;支�本�/之�/动爻/�爻辞滚�阅读;支�基于 IP �度的**真太阳时天文校准**;�一键唤醒�智白�解读。 | **OK**:投掷铜钱�爻 / 结果页呼出�智解读
**上下键**:滚��览�爻辞原文
**长按下**:清空�新起� | +| **圣�决策** | `holy-cup` | 传统民间投掷�筊决策游�。默念问题�投掷两个�筊,以一正一�为「圣�(�行)���正为「笑�(�问)����为「阴�(暂缓)�;矢�立体�筊渲染,带投掷次数统计。 | **OK**:�掷一次
**长按 OK**:退出返回å°�程åº�列表 | + +> **全局二级è�œå�•通用退出规则**:在任æ„�å°�程åº�或系统å­�页é�¢ä¸­ï¼Œ**长按 OK é”®**å�‡ä¼šå‘¼å‡ºç»Ÿä¸€æ­¥éª¤è�œå�•:**返回上一级 / 回到首页 / 继续当å‰�页é�¢**,æ�œç»�误触丢进度。 + +--- + +### 2. å°�智 AI 语音大模型交互 (XiaoZhi AI) + +通过独立页é�¢ï¼ˆ**员工终端 → 系统设置 → å°�智 AI**)或**工牌首页长按上键**å�³å�¯å¿«é€Ÿå¼€å�¯å…¨åŠŸèƒ½å°�智语音对è¯�: + +- **å�Šå�Œå·¥æµ�å¼�自然对è¯�**:说完自动侦测å�‘é€�,收到回å¤�å�³æ—¶æµ�å¼�播放,按 OK å�³å�¯éš�时打断抢è¯�。 +- **252 款多风格矢é‡�表情 (Face Clock)**: + - 支æŒ� 4 套å�¯åˆ‡æ�¢é£Žæ ¼ï¼š**圆è�Œç²¾ç�µ**ã€�**男生头åƒ� (带高光光头)**ã€�**女生头åƒ� (波波头与å�‘饰)**ã€�**公路之王 (King of the Road)**。 + - æ¯�套风格包å�« 21 ç§�情绪å�˜ä½“,æ¯�ç§�情绪拥有 3 款细分造型(共 63 å§¿æ€�/套,总计 252 ç§�精细表情)。 + - 嘴形由实时 PCM 输出振幅驱动,表情数æ�®é‡‡ç”¨è¡Œç´¢å¼•æ— æ�Ÿ RLE 压缩解ç �,内存æž�低。 + - 对è¯�中**长按上键**å�¯è½®æ�¢ä¿�存表情风格,**长按下键**ç›´è¾¾å°�智设置。 +- **19 项内置 MCP 设备控制与è�”动工具**: + å°�智云端支æŒ�识别并直接调用本工牌的硬件接å�£ï¼Œå®žçŽ°å…¨è¯­éŸ³æŽ§åˆ¶ï¼š + 1. `self.get_device_status`:查询电é‡�ã€�Wi-Fiã€�å±�幕亮度ã€�当å‰�与所有已é…�置工牌编å�·å’Œå§“å��。 + 2. `self.apps.open`:语音å�¯åŠ¨æŒ‡å®šå°�程åº�(木鱼ã€�电å�°ã€�钥匙扣ã€�摇å�¦ï¼‰ã€‚ + 3. `self.audio.search` / `self.audio.play` / `self.audio.play_random`:æ�œç´¢éŸ³æ•ˆã€�播报指定 ID 或éš�机播一段音效。 + 4. `self.badge.show_qr`:语音立å�³å±•示当å‰�工牌二维ç �并退出对è¯�。 + 5. `self.badge.switch`:根æ�®ç¼–å�· (1~5) 或姓å��切æ�¢å½“å‰�激活工牌。 + 6. `self.display.set_brightness`:语音调节å±�幕背光亮度 (20% ~ 100%)。 + 7. `self.xiaozhi.set_volume`:å�•独调整å°�智语音回å¤�音é‡� (0 ~ 100%)。 + 8. `self.radio.search` / `self.radio.play`:æ�œç´¢ç²¾é€‰ç½‘络电å�°å¹¶å�³åˆ»å�¯æ’­ã€‚ + 9. `self.reminder.set` / `get` / `cancel`:管ç�†å¤šè¾¾ 8 æ�¡æŒ�久闹钟æ��醒,支æŒ�秒级倒计时ã€�北京时间钟点ã€�日历日期ã€�工作日/周末é‡�å¤�周期。 + 10. `self.yao.cast` / `self.yao.get`:语音直接起å�¦å¹¶è°ƒç”¨æ˜“ç»�本å�¦/之å�¦å…¨æ–‡å­—段给出通俗生活建议。 + 11. `self.badge.get_profile` / `update_profile`:语音直接修改当å‰�工牌的姓å��ã€�部门ã€�è�Œä½�等文本信æ�¯ã€‚ + 12. `self.system.action`:执行回到首页 (`home`) 或安全深度ç�¡çœ å…³æœº (`shutdown`)。 + +--- + +### 3. 多工牌系统与无网é…�置工具 (5 Badge Profiles) + +工牌支æŒ�ä¿�å­˜ **5 张完全独立的身份å�¡ç‰‡**,æ¯�å¼ å�‡ç‹¬ç«‹ä¿�存自定义姓å��ã€�è�Œä½�ã€�部门ã€�员工编å�·ã€�头åƒ�照片ã€�å“�牌 Logo å�Šä¸“属é…�色方案。 + +- **快速切æ�¢**:在工牌首页**长按 OK é”®**å�³å�¯å‘¼å‡ºå·¥ç‰Œå�¡ç‰‡é€‰æ‹©å™¨ï¼Œä¸Šä¸‹é”®é€‰æ‹©å¹¶çž¬é—´åˆ‡æ�¢ï¼Œé‡�å�¯è‡ªåЍä¿�æŒ�最å�Žæ¿€æ´»çš„工牌。 +- **é…�置工具 (`configure/index.html`)**: + - **USB Web Serial 直连**:使用 Chrome/Edge æµ�览器打开离线网页,æ�’å…¥ USB æ•°æ�®çº¿å�³å�¯è¿žæŽ¥ã€‚å…�驱动ã€�å…�装软件ã€�æ•°æ�®ä¸�出本地,完全ä¸�上云。 + - **手机热点å…�线é…�ç½®**:若无电脑,在工牌进入 **系统设置 → 网络设置** 按 OK å¼€å�¯ä¸´æ—¶çƒ­ç‚¹ï¼Œæ‰‹æœºè¿žæŽ¥å·¥ç‰Œ Wi-Fi å�Žè®¿é—® `http://192.168.4.1`,å�³å�¯é€šè¿‡æ‰‹æœºæµ�览器完æˆ�全部相å�Œé…�置。 + - **图片与排版自适应**:支æŒ�上传最大 10 MB 的个人照片与微信二维ç �图片,页é�¢è‡ªåЍè£�切为 72 × 88 头åƒ�å�Šé«˜ç²¾ç»†åº¦å�•色二维ç �,自动分行排版。 + +--- + +## 硬件按键æ“�作速查 + +| 界é�¢åœºæ™¯ | 按键手势 | 功能与动作说明 | +| --- | --- | --- | +| **工牌首页** | 上键短按 | 直达「å°�程åº�列表ã€� | +| | 上键长按 | 快速å�¯åŠ¨ã€Œå°�智 AI 语音对è¯�ã€� | +| | 下键短按 | 一键全å±�亮出当å‰�工牌的「个人å��片二维ç �ã€� | +| | OK 键短按 | 打开「员工终端 (Terminal)ã€�è�œå�• | +| | OK 键长按 | 打开「5 套工牌档案切æ�¢åˆ—表ã€� | +| **员工终端** | 上 / 下键 | 选择è�œå�•项(å°�程åº�ã€�工牌资料ã€�我的二维ç �ã€�系统设置ã€�返回工牌) | +| | OK 键短按 | 进入选中的功能页 | +| | OK 键长按 | 呼出通用返回è�œå�•(上一页 / 首页 / 继续) | +| **我的二维ç �** | 下键 / OK é”® | 快速关闭二维ç �返回上一界é�¢ | +| **å°�智对è¯�** | OK 键短按 | å¼€å�¯è¿žæŽ¥ / æš‚å�œè�†å�¬ / 打断播报 | +| | 上 / 下键 | 步进调节å°�智语音音é‡� (±10%) | +| | 上键长按 | 循环切æ�¢å¹¶ä¿�å­˜å°�智头åƒ�表情风格(精ç�µ/男生/女生/公路之王) | +| | 下键长按 | 快速跳转至「å°�智 AI 设置ã€�è�œå�• | +| **通用å­�页é�¢** | OK 键长按 | 呼出统一三选一退出è�œå�•(返回上一级 / 回到首页 / 继续) | + +--- + +## 存储分区与固件架构 + +系统针对 ESP32-C3 (8 MB Flash,无 PSRAM) 进行了深度优化与安全隔离: + +- **Flash 分区表设计**: + - `factory` (应用固件区):`3.75 MiB` (0x3C0000 字节,起始于 0x10000) + - `voice_data` (音效首段):`2.75 MiB` (起始于 0x3D0000) + - `voice_tail` (音效尾段):`512 KiB` (起始于 0x750000) + - `badge_slots` (工牌 2~5 æ§½ä½�):`768 KiB` (0xC0000 字节,起始于 0x690000) + - `badge_user` (工牌 1 æ§½ä½�):`192 KiB` (0x30000 字节,起始于 0x7D0000) + - `nvs` / `otadata` / `phy_init` ä¿�留在安全基线地å�€ã€‚ +- **资料防丢å�‡çº§**:æ¯�个工牌槽ä½�å�‡é‡‡ç”¨ A/B å�Œä»½ 96 KB 备份与校验和验è¯�,å�³ä½¿å›ºä»¶å…¨é‡�å�‡çº§æˆ–写途中断电,原有的个人信æ�¯ã€�头åƒ�图片å�Š Wi-Fi é…�ç½®å�‡å�¯å®Œæ•´ä¿�留。 + +--- + +## 编译与安装说明 + +### 环境准备 +- **ESP-IDF**:v5.5.3 (已激活环境) +- **编译ä¾�èµ–**:Python 3ã€�Gitã€�CMakeã€�Ninja + +### é�™æ€�验è¯�与编译 +```bash +# 1. 执行é�™æ€�规则与资æº�覆盖校验 +python tools/check_repo.py + +# 2. 编译固件 +idf.py -B build -D SDKCONFIG=build/sdkconfig build + +# 3. 生æˆ�å…¨é‡�固件镜åƒ�并执行一致性校验 +idf.py -B build merge-bin -o FoloToy-AI-Passport-full.bin +python tools/verify_firmware.py build +``` + +### 烧录固件 +```bash +# 分段烧录应用(推è��,ä¿�留现有工牌资料与 NVS 存储): +idf.py -p COM6 flash monitor + +# 如需使用全é‡�ä¿�护工具(自动备份现有 Flash 并校验音效资æº�): +python tools/flash_badge.py --port COM6 --backup-dir ./my_backup +``` + +--- + +## 许å�¯è¯�与致谢 + +- 本项目软件核心采用 [MIT 许å�¯è¯�](LICENSE)。 +- 基于上游 [FoloToy AI Passport](https://github.com/FoloToy/AI-Passport) 硬件基线开å�‘。 +- 城市电å�°å°�程åº�基于开æº�项目 [leo-radio](https://github.com/leo0183/leo-radio) (MIT License)。 +- 音效钥匙扣å°�程åº�æ�¥æº�于 [Shinku-Chen/ai-passport (feature/voice-keychain)](https://github.com/Shinku-Chen/ai-passport/tree/feature/voice-keychain) (MIT License)。 +- å°�智 AI 对è¯�å��议与接å�£é€‚é…�基于 [FoloToy/folo-ai-passport-xiaozhi](https://github.com/FoloToy/folo-ai-passport-xiaozhi) (MIT License)。 +- èµ›å�𿑇å�¦å‘¨æ˜“å�¤ç±�æ•°æ�®æ�¥æº�于开æº�项目 [CyberYAO](https://github.com/XadillaX/CyberYAO) (MIT License)。 +- 视觉å�‚考:Arasaka 与 Cyberpunk 2077 相关徽标与概念属于 CD PROJEKT RED å�Šå…¶å�„自所有者,本项目仅作开æº�æž�客软硬件学习与个人把玩。 diff --git a/assets/README.md b/assets/README.md index b99e0d1..09ff881 100644 --- a/assets/README.md +++ b/assets/README.md @@ -4,6 +4,8 @@ # Assets +See [Zen Muyu asset provenance](muyu-assets.md) for the application background, fonts, sound synthesis, licenses and regeneration steps. + This directory stores reusable fonts, images, music, and sound effects, organized by asset type. Keep each asset in the matching subdirectory and document its destination, naming, integration method, and source/license. Do not mix binary assets with Markdown documentation. @@ -21,13 +23,6 @@ Store reusable font files and generated font sources in `fonts/`. Store reusable source images and generated display assets in `images/`. -| File | Dimensions and format | Use and source | -| --- | --- | --- | -| [`images/home.jpg`](images/home.jpg) | 3840 × 2160, JPEG | Product hero image embedded in both project README files to foreground AI Passport and its open, maker-oriented identity. | -| [`images/readme-hardware-specs.png`](images/readme-hardware-specs.png) | 2172 × 724, PNG RGBA | Optional technical infographic retained as a reference asset; it is no longer used as the homepage hero. Generated for this repository with the built-in image generation tool on 2026-09-17; the six labels and values were checked against the documented hardware contract. | -| [`images/logo-wordmark.png`](images/logo-wordmark.png) | 1648 × 336, PNG RGBA | Transparent black wordmark extracted from the repository's original `images/logo.png`; embedded in both project README files for light backgrounds. | -| [`images/logo-wordmark-dark.png`](images/logo-wordmark-dark.png) | 1648 × 336, PNG RGBA | White version of the extracted wordmark, used by the README `` element when GitHub is in dark mode. | - - Use descriptive names and document dimensions, pixel format, conversion steps, and destination. - Prefer formats suitable for the 240 × 320 RGB565 display and account for Flash and internal RAM. - Preserve editable sources where licensing permits, and record the source and license. @@ -41,3 +36,30 @@ Store reusable music and sound-effect sources in `music/`. - Prefer 16 kHz, 16-bit mono PCM when it matches the current BSP audio path. - Check Flash and internal-RAM cost before embedding audio; stream or chunk long recordings. - Do not commit media without redistribution permission. + +## Voice Keychain assets + +`audio/voice-keychain/` contains 726 raw Opus clips in 24 packs from Shinku-Chen/ai-passport, feature/voice-keychain, commit `71c45cabc1b2f3b73b4929d71cafd926ccbb11f5`. Audio is copied without re-encoding: 16 kHz mono, little-endian 2-byte packet lengths. `SOURCE.txt` records provenance. Upstream code is MIT; media rights are separate and are not relicensed as MIT. `tools/build_voice_pack.py` generates partition images and the catalog. Noto Sans SC 14px supplies 1071 glyphs via `tools/generate_voice_font.py`; see `fonts/OFL.txt`. + +1.9.1 retains one clip per user-approved group (46 groups). `audio/voice-keychain/selection.json` records retained and removed items; retained files are not re-encoded. + +- [City Radio integration, MIT source and themed previews](../docs/leo-radio.md): provenance in `assets/radio/`; production LVGL renders in `assets/images/leo-radio/`. + +XiaoZhi source license and notice: `xiaozhi/LICENSE`, `xiaozhi/NOTICE`. The caption font uses the existing Noto Sans SC OFL font; generated by `tools/generate_xiaozhi_font.py`. See [integration details](../docs/xiaozhi.md). + +[Portrait homepage fonts and offline embedding](../docs/portrait-home.md): Orbitron and Caveat, SIL OFL; source TTF, Latin WOFF2 subsets and license texts in `fonts/`. + +Shared 14px UI font: `fonts/ui14-characters.txt` retains legacy coverage; `tools/generate_shared_fonts.py` generates `main/font_ui_14.c` for three UI fonts. It retains Noto Sans SC (SIL OFL) and the original glyph pixels/metrics. Caption additions are checked against the source font cmap to avoid embedding missing-glyph placeholders. + +XiaoZhi face: original artwork created for this project, under the repository MIT license, in `images/xiaozhi-face/*.svg`. `tools/generate_face_assets.py` converts the limited SVG vocabulary offline to themed A8 masks in `main/xiaozhi_face_assets.c`. See [expressions and clock](../docs/face-clock.md). + +King of the Road SVGs (images/xiaozhi-face/round_*.svg) are redrawn from a character reference supplied by the user. The reference photo itself is not included in the repository or release archive. + +Cyber Yao classical text and calculation rules derive from CyberYAO commit +`3c4780feea04737e6e59b6e1849e591710e6656c`. Its MIT notice is in +[cyberyao/LICENSE](cyberyao/LICENSE); the adapted text table is in +`main/yao_text_data.c`. No upstream media or font assets are redistributed. + +The Cyber Yao `interpret-request.ogg` is project-generated synthetic Mandarin speech, not an upstream recording. It asks XiaoZhi to query and interpret the retained hexagram. `main/assets/yao_request.h` contains its 60 ms Opus packets for direct uplink; it contains no personal recordings. + +Company names use `fonts/NotoSansSC-brand-latin.woff2` (Noto Sans SC, SIL OFL 1.1, `fonts/OFL.txt`), an ASCII/ellipsis subset at weight 700. Generate with `tools/generate_brand_font.py `. The offline editor embeds it as BadgeBrand; headings and signatures retain their existing fonts. diff --git a/assets/README.zh_CN.md b/assets/README.zh_CN.md index 782e510..b8903ad 100644 --- a/assets/README.zh_CN.md +++ b/assets/README.zh_CN.md @@ -4,6 +4,8 @@ # 资æº�目录(Assets) +应用背景ã€�字库ã€�音效å�ˆæˆ�æ–¹å¼�ã€�许å�¯è¯�å�Šé‡�新生æˆ�步骤è§�[一念木鱼素æ��æ�¥æº�](muyu-assets.zh_CN.md)。 + 本目录集中存放å�¯å¤�用的资æº�(字库ã€�图片ã€�音ä¹�等),按资æº�类型分å­�目录管ç�†ã€‚æ¯�个资æº�放在其类型对应的å­�目录,并记录放置路径ã€�命å��æ–¹å¼�ã€�集æˆ�æ–¹å¼�与æ�¥æº�/许å�¯ã€‚二进制资æº�(字体ã€�图片ã€�音频)ä¸�属于纯 markdown 文档,请勿与文档混放。涉å�Šç‰ˆæ�ƒ/授æ�ƒçš„资æº�需注明æ�¥æº�与许å�¯ã€‚ ## 字库(fonts) @@ -19,13 +21,6 @@ å�¯å¤�用的æº�图与生æˆ�的显示资产放在 `images/`。 -| 文件 | 尺寸与格å¼� | 用途与æ�¥æº� | -| --- | --- | --- | -| [`images/home.jpg`](images/home.jpg) | 3840 × 2160,JPEG | 嵌入中英文项目 README 的产å“�主图,çª�出 AI Passport 产å“�形象与开放ã€�人人å�¯åˆ›ä½œçš„ç�†å¿µã€‚ | -| [`images/readme-hardware-specs.png`](images/readme-hardware-specs.png) | 2172 × 724,PNG RGBA | ä¿�留为å�¯é€‰æŠ€æœ¯å�‚考图,ä¸�å†�用于首页主视觉。于 2026-09-17 使用内置图åƒ�生æˆ�工具为本仓库生æˆ�;已根æ�®æ–‡æ¡£ä¸­çš„硬件能力契约核对图中的六项标签与å�‚数。 | -| [`images/logo-wordmark.png`](images/logo-wordmark.png) | 1648 × 336,PNG RGBA | 从仓库原始 `images/logo.png` 中精确è£�切并去除背景的黑色字标;用于中英文项目 README 的浅色主题。 | -| [`images/logo-wordmark-dark.png`](images/logo-wordmark-dark.png) | 1648 × 336,PNG RGBA | æ��å�–字标的白色版本;README 使用 `` 在 GitHub 深色主题下显示。 | - - 使用æ��述性命å��,并记录尺寸ã€�åƒ�ç´ æ ¼å¼�ã€�转æ�¢æ­¥éª¤ä¸Žç›®æ ‡è·¯å¾„。 - 优先采用适å�ˆ 240 × 320 RGB565 显示的格å¼�,并纳入 Flash 与内部 RAM 考é‡�。 - 许å�¯å…�许时ä¿�ç•™å�¯ç¼–辑æº�文件,并记录æ�¥æº�与许å�¯ã€‚ @@ -39,3 +34,30 @@ - 与当å‰� BSP 音频路径匹é…�时优先采用 16 kHzã€�16 ä½�å�•声é�“ PCM。 - 嵌入音频å‰�评估 Flash 与内部 RAM æˆ�本;长录音应æµ�å¼�或分å�—。 - æ— å†�分å�‘许å�¯ä¸�æ��交媒体文件。 + +## 音效钥匙扣资æº� + +`audio/voice-keychain/`:æ�¥è‡ª Shinku-Chen/ai-passport çš„ feature/voice-keychain 分支(æ��交 `71c45cabc1b2f3b73b4929d71cafd926ccbb11f5`),24 ç±»ã€�726 段原始 Opus 音效。未é‡�æ–°ç¼–ç �ï¼›16 kHz å�•声é�“,2 字节å°�端长度å‰�缀数æ�®åŒ…。`SOURCE.txt` 记录æ�¥æº�;上游代ç � MIT,音效素æ��æ�ƒåˆ©ç‹¬ç«‹äºŽä»£ç �许å�¯ï¼Œæœªå°†å…¶é‡�新授æ�ƒä¸º MIT。通过 `tools/build_voice_pack.py` 生æˆ�分区资æº�å�Šç´¢å¼•。中文å��称采用 Noto Sans SC 14px å­�集(1071 字形,SIL OFL),由 `tools/generate_voice_font.py` 生æˆ�;字体许å�¯è§� `fonts/OFL.txt`。 + +1.9.1:按用户确认的 46 组å�„ä¿�留一段;`audio/voice-keychain/selection.json` 记录ä¿�留和移除项,ä¿�留文件未é‡�æ–°ç¼–ç �。 + +- [城市电å�°é›†æˆ�ã€�MIT æ�¥æº�å�Šä¸»é¢˜é¢„览](../docs/leo-radio.zh_CN.md):æº�ç �æ�¥æº� `assets/radio/`,实际 LVGL 预览 `assets/images/leo-radio/`。 + +å°�智æ�¥æº�许å�¯ä¸Žå£°æ˜Žï¼š`xiaozhi/LICENSE`ã€�`xiaozhi/NOTICE`。字幕字库使用现有 Noto Sans SC OFL 字体,由 `tools/generate_xiaozhi_font.py` 生æˆ�。详è§�[集æˆ�说明](../docs/xiaozhi.zh_CN.md)。 + +[竖版首页字体å�Šç¦»çº¿åµŒå…¥](../docs/portrait-home.zh_CN.md):Orbitron å’Œ Caveat,SIL OFL;原始 TTFã€�拉ä¸�字符 WOFF2 å­�集å�Šè®¸å�¯è¯�ä¿�存在 `fonts/`。 + +共享 14px 字库:`fonts/ui14-characters.txt` ä¿�存原有覆盖集å�ˆï¼›`tools/generate_shared_fonts.py` 生æˆ�三个页é�¢å…±ç”¨çš„ `main/font_ui_14.c`。ä»�使用 Noto Sans SC(SIL OFL),ä¸�改å�˜åŽŸå­—å½¢åƒ�素与尺寸。字幕字库补充字符å‰�检查æº�字体 cmap,é�¿å…�把缺字å� ä½�符编入固件。 + +å°�智表情:本项目原创素æ��,按仓库 MIT 许å�¯è¯�æ��供,ä½�于 images/xiaozhi-face/*.svg。tools/generate_face_assets.py 离线转æ�¢ä¸º main/xiaozhi_face_assets.c 中å�¯éš�主题å�˜è‰²çš„ A8 图片。详è§�[表情与时钟](../docs/face-clock.zh_CN.md)。 + +公路之王的 SVG(images/xiaozhi-face/round_*.svg)按用户æ��供的角色å�‚考图é‡�绘;å�‚考图片本身没有纳入仓库或å�‘布包。 + +èµ›å�𿑇å�¦çš„ç»�典原文和计算规则æ�¥è‡ª CyberYAO æ��交 +`3c4780feea04737e6e59b6e1849e591710e6656c`,ä¿�ç•™ +[MIT 许å�¯](cyberyao/LICENSE)。适é…�å�Žçš„原文表ä½�于 `main/yao_text_data.c`, +未分å�‘上游图片ã€�音频或字体素æ��。 + +èµ›å�𿑇å�¦çš„ `interpret-request.ogg` 是本项目生æˆ�的固定中文å�ˆæˆ�语音,ä¸�æ�¥è‡ªä¸Šæ¸¸å½•音。内容为请å°�智查询并解读ä¿�留的å�¦è±¡ã€‚`main/assets/yao_request.h` ä¿�存其æ¯�帧 60 毫秒的 Opus æ•°æ�®ï¼Œç”¨äºŽç›´æŽ¥ä¸Šä¼ ï¼Œä¸�å�«ä¸ªäººå½•音。 + +å…¬å�¸å��称使用 `fonts/NotoSansSC-brand-latin.woff2`(Noto Sans SC,SIL OFL 1.1,è§� `fonts/OFL.txt`),为 700 å­—é‡�çš„ ASCII 与çœ�ç•¥å�·å­�集。è¿�行 `tools/generate_brand_font.py ` 生æˆ�。离线é…�置页以内嵌 BadgeBrand 使用;其他标题与签å��字体ä¿�æŒ�原样。 diff --git a/assets/audio/voice-keychain/SOURCE.txt b/assets/audio/voice-keychain/SOURCE.txt new file mode 100644 index 0000000..cba9d66 --- /dev/null +++ b/assets/audio/voice-keychain/SOURCE.txt @@ -0,0 +1,7 @@ +Source: https://github.com/Shinku-Chen/ai-passport/tree/feature/voice-keychain +Commit: 71c45cabc1b2f3b73b4929d71cafd926ccbb11f5 +Originally 24 packs / 818 raw Opus clips, copied without re-encoding. +Version 1.9.1 retains 24 packs / 726 clips after user-approved selection. +selection.json records the 46 groups, representatives and 92 removed entries. +Retained recordings are byte-identical to upstream; no re-encoding. +Upstream code is MIT; libopus retains its COPYING. Media may carry separate third-party rights; source metadata is retained. diff --git a/assets/audio/voice-keychain/dir00/clip00.opus b/assets/audio/voice-keychain/dir00/clip00.opus new file mode 100644 index 0000000..19a9c82 Binary files /dev/null and b/assets/audio/voice-keychain/dir00/clip00.opus differ diff --git a/assets/audio/voice-keychain/dir00/clip01.opus b/assets/audio/voice-keychain/dir00/clip01.opus new file mode 100644 index 0000000..29b9766 Binary files /dev/null and b/assets/audio/voice-keychain/dir00/clip01.opus differ diff --git a/assets/audio/voice-keychain/dir00/clip02.opus b/assets/audio/voice-keychain/dir00/clip02.opus new file mode 100644 index 0000000..e999410 Binary files /dev/null and b/assets/audio/voice-keychain/dir00/clip02.opus differ diff --git a/assets/audio/voice-keychain/dir00/clip03.opus b/assets/audio/voice-keychain/dir00/clip03.opus new file mode 100644 index 0000000..959e08f Binary files /dev/null and b/assets/audio/voice-keychain/dir00/clip03.opus differ diff --git a/assets/audio/voice-keychain/dir00/clip04.opus b/assets/audio/voice-keychain/dir00/clip04.opus new file mode 100644 index 0000000..0ea8a30 Binary files /dev/null and b/assets/audio/voice-keychain/dir00/clip04.opus differ diff --git a/assets/audio/voice-keychain/dir00/clip05.opus b/assets/audio/voice-keychain/dir00/clip05.opus new file mode 100644 index 0000000..47d63f6 Binary files /dev/null and b/assets/audio/voice-keychain/dir00/clip05.opus differ diff --git a/assets/audio/voice-keychain/dir00/clip06.opus b/assets/audio/voice-keychain/dir00/clip06.opus new file mode 100644 index 0000000..8027282 Binary files /dev/null and b/assets/audio/voice-keychain/dir00/clip06.opus differ diff --git a/assets/audio/voice-keychain/dir00/clip08.opus b/assets/audio/voice-keychain/dir00/clip08.opus new file mode 100644 index 0000000..12a0466 Binary files /dev/null and b/assets/audio/voice-keychain/dir00/clip08.opus differ diff --git a/assets/audio/voice-keychain/dir00/clip09.opus b/assets/audio/voice-keychain/dir00/clip09.opus new file mode 100644 index 0000000..ac58db8 Binary files /dev/null and b/assets/audio/voice-keychain/dir00/clip09.opus differ diff --git a/assets/audio/voice-keychain/dir00/clip10.opus b/assets/audio/voice-keychain/dir00/clip10.opus new file mode 100644 index 0000000..283b795 Binary files /dev/null and b/assets/audio/voice-keychain/dir00/clip10.opus differ diff --git a/assets/audio/voice-keychain/dir00/clip11.opus b/assets/audio/voice-keychain/dir00/clip11.opus new file mode 100644 index 0000000..3762355 Binary files /dev/null and b/assets/audio/voice-keychain/dir00/clip11.opus differ diff --git a/assets/audio/voice-keychain/dir00/clip13.opus b/assets/audio/voice-keychain/dir00/clip13.opus new file mode 100644 index 0000000..a26ee31 Binary files /dev/null and b/assets/audio/voice-keychain/dir00/clip13.opus differ diff --git a/assets/audio/voice-keychain/dir00/clip14.opus b/assets/audio/voice-keychain/dir00/clip14.opus new file mode 100644 index 0000000..39ba5be Binary files /dev/null and b/assets/audio/voice-keychain/dir00/clip14.opus differ diff --git a/assets/audio/voice-keychain/dir00/clip15.opus b/assets/audio/voice-keychain/dir00/clip15.opus new file mode 100644 index 0000000..0514b0a Binary files /dev/null and b/assets/audio/voice-keychain/dir00/clip15.opus differ diff --git a/assets/audio/voice-keychain/dir00/clip16.opus b/assets/audio/voice-keychain/dir00/clip16.opus new file mode 100644 index 0000000..15dbc6f Binary files /dev/null and b/assets/audio/voice-keychain/dir00/clip16.opus differ diff --git a/assets/audio/voice-keychain/dir00/clip17.opus b/assets/audio/voice-keychain/dir00/clip17.opus new file mode 100644 index 0000000..8a0e4df Binary files /dev/null and b/assets/audio/voice-keychain/dir00/clip17.opus differ diff --git a/assets/audio/voice-keychain/dir00/clip18.opus b/assets/audio/voice-keychain/dir00/clip18.opus new file mode 100644 index 0000000..4718b1b Binary files /dev/null and b/assets/audio/voice-keychain/dir00/clip18.opus differ diff --git a/assets/audio/voice-keychain/dir00/clip19.opus b/assets/audio/voice-keychain/dir00/clip19.opus new file mode 100644 index 0000000..2410dd1 Binary files /dev/null and b/assets/audio/voice-keychain/dir00/clip19.opus differ diff --git a/assets/audio/voice-keychain/dir00/clip20.opus b/assets/audio/voice-keychain/dir00/clip20.opus new file mode 100644 index 0000000..2b9dee4 Binary files /dev/null and b/assets/audio/voice-keychain/dir00/clip20.opus differ diff --git a/assets/audio/voice-keychain/dir00/clip21.opus b/assets/audio/voice-keychain/dir00/clip21.opus new file mode 100644 index 0000000..da36cd8 Binary files /dev/null and b/assets/audio/voice-keychain/dir00/clip21.opus differ diff --git a/assets/audio/voice-keychain/dir00/clip23.opus b/assets/audio/voice-keychain/dir00/clip23.opus new file mode 100644 index 0000000..586342d Binary files /dev/null and b/assets/audio/voice-keychain/dir00/clip23.opus differ diff --git a/assets/audio/voice-keychain/dir00/clip24.opus b/assets/audio/voice-keychain/dir00/clip24.opus new file mode 100644 index 0000000..1ab480c Binary files /dev/null and b/assets/audio/voice-keychain/dir00/clip24.opus differ diff --git a/assets/audio/voice-keychain/dir00/clip25.opus b/assets/audio/voice-keychain/dir00/clip25.opus new file mode 100644 index 0000000..01a0494 Binary files /dev/null and b/assets/audio/voice-keychain/dir00/clip25.opus differ diff --git a/assets/audio/voice-keychain/dir00/clip26.opus b/assets/audio/voice-keychain/dir00/clip26.opus new file mode 100644 index 0000000..fdb9688 Binary files /dev/null and b/assets/audio/voice-keychain/dir00/clip26.opus differ diff --git a/assets/audio/voice-keychain/dir00/clip27.opus b/assets/audio/voice-keychain/dir00/clip27.opus new file mode 100644 index 0000000..02eac4a Binary files /dev/null and b/assets/audio/voice-keychain/dir00/clip27.opus differ diff --git a/assets/audio/voice-keychain/dir00/clip28.opus b/assets/audio/voice-keychain/dir00/clip28.opus new file mode 100644 index 0000000..684ce49 Binary files /dev/null and b/assets/audio/voice-keychain/dir00/clip28.opus differ diff --git a/assets/audio/voice-keychain/dir00/clip29.opus b/assets/audio/voice-keychain/dir00/clip29.opus new file mode 100644 index 0000000..7c7ec1f Binary files /dev/null and b/assets/audio/voice-keychain/dir00/clip29.opus differ diff --git a/assets/audio/voice-keychain/dir00/clip30.opus b/assets/audio/voice-keychain/dir00/clip30.opus new file mode 100644 index 0000000..fa65aae Binary files /dev/null and b/assets/audio/voice-keychain/dir00/clip30.opus differ diff --git a/assets/audio/voice-keychain/dir00/clip31.opus b/assets/audio/voice-keychain/dir00/clip31.opus new file mode 100644 index 0000000..cd152b6 Binary files /dev/null and b/assets/audio/voice-keychain/dir00/clip31.opus differ diff --git a/assets/audio/voice-keychain/dir00/clip33.opus b/assets/audio/voice-keychain/dir00/clip33.opus new file mode 100644 index 0000000..de5ae69 Binary files /dev/null and b/assets/audio/voice-keychain/dir00/clip33.opus differ diff --git a/assets/audio/voice-keychain/dir00/clip34.opus b/assets/audio/voice-keychain/dir00/clip34.opus new file mode 100644 index 0000000..23cce09 Binary files /dev/null and b/assets/audio/voice-keychain/dir00/clip34.opus differ diff --git a/assets/audio/voice-keychain/dir00/clip35.opus b/assets/audio/voice-keychain/dir00/clip35.opus new file mode 100644 index 0000000..3c51bc3 Binary files /dev/null and b/assets/audio/voice-keychain/dir00/clip35.opus differ diff --git a/assets/audio/voice-keychain/dir00/clip36.opus b/assets/audio/voice-keychain/dir00/clip36.opus new file mode 100644 index 0000000..587fec3 Binary files /dev/null and b/assets/audio/voice-keychain/dir00/clip36.opus differ diff --git a/assets/audio/voice-keychain/dir00/clip37.opus b/assets/audio/voice-keychain/dir00/clip37.opus new file mode 100644 index 0000000..5da5172 Binary files /dev/null and b/assets/audio/voice-keychain/dir00/clip37.opus differ diff --git a/assets/audio/voice-keychain/dir01/clip00.opus b/assets/audio/voice-keychain/dir01/clip00.opus new file mode 100644 index 0000000..51fef53 Binary files /dev/null and b/assets/audio/voice-keychain/dir01/clip00.opus differ diff --git a/assets/audio/voice-keychain/dir01/clip03.opus b/assets/audio/voice-keychain/dir01/clip03.opus new file mode 100644 index 0000000..0bbafd6 Binary files /dev/null and b/assets/audio/voice-keychain/dir01/clip03.opus differ diff --git a/assets/audio/voice-keychain/dir01/clip04.opus b/assets/audio/voice-keychain/dir01/clip04.opus new file mode 100644 index 0000000..52a136b Binary files /dev/null and b/assets/audio/voice-keychain/dir01/clip04.opus differ diff --git a/assets/audio/voice-keychain/dir01/clip05.opus b/assets/audio/voice-keychain/dir01/clip05.opus new file mode 100644 index 0000000..d3fa74c Binary files /dev/null and b/assets/audio/voice-keychain/dir01/clip05.opus differ diff --git a/assets/audio/voice-keychain/dir01/clip06.opus b/assets/audio/voice-keychain/dir01/clip06.opus new file mode 100644 index 0000000..8b7230d Binary files /dev/null and b/assets/audio/voice-keychain/dir01/clip06.opus differ diff --git a/assets/audio/voice-keychain/dir01/clip07.opus b/assets/audio/voice-keychain/dir01/clip07.opus new file mode 100644 index 0000000..354586d Binary files /dev/null and b/assets/audio/voice-keychain/dir01/clip07.opus differ diff --git a/assets/audio/voice-keychain/dir01/clip08.opus b/assets/audio/voice-keychain/dir01/clip08.opus new file mode 100644 index 0000000..9d5dd63 Binary files /dev/null and b/assets/audio/voice-keychain/dir01/clip08.opus differ diff --git a/assets/audio/voice-keychain/dir01/clip09.opus b/assets/audio/voice-keychain/dir01/clip09.opus new file mode 100644 index 0000000..b8fe98e Binary files /dev/null and b/assets/audio/voice-keychain/dir01/clip09.opus differ diff --git a/assets/audio/voice-keychain/dir01/clip10.opus b/assets/audio/voice-keychain/dir01/clip10.opus new file mode 100644 index 0000000..ed1a136 Binary files /dev/null and b/assets/audio/voice-keychain/dir01/clip10.opus differ diff --git a/assets/audio/voice-keychain/dir01/clip11.opus b/assets/audio/voice-keychain/dir01/clip11.opus new file mode 100644 index 0000000..75e562e Binary files /dev/null and b/assets/audio/voice-keychain/dir01/clip11.opus differ diff --git a/assets/audio/voice-keychain/dir01/clip12.opus b/assets/audio/voice-keychain/dir01/clip12.opus new file mode 100644 index 0000000..a882476 Binary files /dev/null and b/assets/audio/voice-keychain/dir01/clip12.opus differ diff --git a/assets/audio/voice-keychain/dir02/clip00.opus b/assets/audio/voice-keychain/dir02/clip00.opus new file mode 100644 index 0000000..db1f0a4 Binary files /dev/null and b/assets/audio/voice-keychain/dir02/clip00.opus differ diff --git a/assets/audio/voice-keychain/dir02/clip01.opus b/assets/audio/voice-keychain/dir02/clip01.opus new file mode 100644 index 0000000..6c66d9c Binary files /dev/null and b/assets/audio/voice-keychain/dir02/clip01.opus differ diff --git a/assets/audio/voice-keychain/dir02/clip02.opus b/assets/audio/voice-keychain/dir02/clip02.opus new file mode 100644 index 0000000..2b58b54 Binary files /dev/null and b/assets/audio/voice-keychain/dir02/clip02.opus differ diff --git a/assets/audio/voice-keychain/dir02/clip03.opus b/assets/audio/voice-keychain/dir02/clip03.opus new file mode 100644 index 0000000..53ab775 Binary files /dev/null and b/assets/audio/voice-keychain/dir02/clip03.opus differ diff --git a/assets/audio/voice-keychain/dir02/clip04.opus b/assets/audio/voice-keychain/dir02/clip04.opus new file mode 100644 index 0000000..a746217 Binary files /dev/null and b/assets/audio/voice-keychain/dir02/clip04.opus differ diff --git a/assets/audio/voice-keychain/dir02/clip05.opus b/assets/audio/voice-keychain/dir02/clip05.opus new file mode 100644 index 0000000..a686b4f Binary files /dev/null and b/assets/audio/voice-keychain/dir02/clip05.opus differ diff --git a/assets/audio/voice-keychain/dir02/clip07.opus b/assets/audio/voice-keychain/dir02/clip07.opus new file mode 100644 index 0000000..f700c6e Binary files /dev/null and b/assets/audio/voice-keychain/dir02/clip07.opus differ diff --git a/assets/audio/voice-keychain/dir02/clip08.opus b/assets/audio/voice-keychain/dir02/clip08.opus new file mode 100644 index 0000000..1069930 Binary files /dev/null and b/assets/audio/voice-keychain/dir02/clip08.opus differ diff --git a/assets/audio/voice-keychain/dir02/clip09.opus b/assets/audio/voice-keychain/dir02/clip09.opus new file mode 100644 index 0000000..cf52a3f Binary files /dev/null and b/assets/audio/voice-keychain/dir02/clip09.opus differ diff --git a/assets/audio/voice-keychain/dir02/clip10.opus b/assets/audio/voice-keychain/dir02/clip10.opus new file mode 100644 index 0000000..936fdac Binary files /dev/null and b/assets/audio/voice-keychain/dir02/clip10.opus differ diff --git a/assets/audio/voice-keychain/dir02/clip11.opus b/assets/audio/voice-keychain/dir02/clip11.opus new file mode 100644 index 0000000..89e354b Binary files /dev/null and b/assets/audio/voice-keychain/dir02/clip11.opus differ diff --git a/assets/audio/voice-keychain/dir02/clip12.opus b/assets/audio/voice-keychain/dir02/clip12.opus new file mode 100644 index 0000000..0d8db28 Binary files /dev/null and b/assets/audio/voice-keychain/dir02/clip12.opus differ diff --git a/assets/audio/voice-keychain/dir02/clip13.opus b/assets/audio/voice-keychain/dir02/clip13.opus new file mode 100644 index 0000000..c6bd3f7 Binary files /dev/null and b/assets/audio/voice-keychain/dir02/clip13.opus differ diff --git a/assets/audio/voice-keychain/dir02/clip14.opus b/assets/audio/voice-keychain/dir02/clip14.opus new file mode 100644 index 0000000..c1680f6 Binary files /dev/null and b/assets/audio/voice-keychain/dir02/clip14.opus differ diff --git a/assets/audio/voice-keychain/dir02/clip15.opus b/assets/audio/voice-keychain/dir02/clip15.opus new file mode 100644 index 0000000..91e6f7e Binary files /dev/null and b/assets/audio/voice-keychain/dir02/clip15.opus differ diff --git a/assets/audio/voice-keychain/dir02/clip16.opus b/assets/audio/voice-keychain/dir02/clip16.opus new file mode 100644 index 0000000..afcfb83 Binary files /dev/null and b/assets/audio/voice-keychain/dir02/clip16.opus differ diff --git a/assets/audio/voice-keychain/dir02/clip17.opus b/assets/audio/voice-keychain/dir02/clip17.opus new file mode 100644 index 0000000..0f3270a Binary files /dev/null and b/assets/audio/voice-keychain/dir02/clip17.opus differ diff --git a/assets/audio/voice-keychain/dir02/clip18.opus b/assets/audio/voice-keychain/dir02/clip18.opus new file mode 100644 index 0000000..16b2d4f Binary files /dev/null and b/assets/audio/voice-keychain/dir02/clip18.opus differ diff --git a/assets/audio/voice-keychain/dir02/clip19.opus b/assets/audio/voice-keychain/dir02/clip19.opus new file mode 100644 index 0000000..24cb245 Binary files /dev/null and b/assets/audio/voice-keychain/dir02/clip19.opus differ diff --git a/assets/audio/voice-keychain/dir02/clip20.opus b/assets/audio/voice-keychain/dir02/clip20.opus new file mode 100644 index 0000000..95abfcb Binary files /dev/null and b/assets/audio/voice-keychain/dir02/clip20.opus differ diff --git a/assets/audio/voice-keychain/dir02/clip21.opus b/assets/audio/voice-keychain/dir02/clip21.opus new file mode 100644 index 0000000..15d8c13 Binary files /dev/null and b/assets/audio/voice-keychain/dir02/clip21.opus differ diff --git a/assets/audio/voice-keychain/dir02/clip22.opus b/assets/audio/voice-keychain/dir02/clip22.opus new file mode 100644 index 0000000..ea6fcff Binary files /dev/null and b/assets/audio/voice-keychain/dir02/clip22.opus differ diff --git a/assets/audio/voice-keychain/dir02/clip23.opus b/assets/audio/voice-keychain/dir02/clip23.opus new file mode 100644 index 0000000..d2177b6 Binary files /dev/null and b/assets/audio/voice-keychain/dir02/clip23.opus differ diff --git a/assets/audio/voice-keychain/dir02/clip24.opus b/assets/audio/voice-keychain/dir02/clip24.opus new file mode 100644 index 0000000..711dd19 Binary files /dev/null and b/assets/audio/voice-keychain/dir02/clip24.opus differ diff --git a/assets/audio/voice-keychain/dir02/clip25.opus b/assets/audio/voice-keychain/dir02/clip25.opus new file mode 100644 index 0000000..d896c8c Binary files /dev/null and b/assets/audio/voice-keychain/dir02/clip25.opus differ diff --git a/assets/audio/voice-keychain/dir02/clip26.opus b/assets/audio/voice-keychain/dir02/clip26.opus new file mode 100644 index 0000000..5a0f12d Binary files /dev/null and b/assets/audio/voice-keychain/dir02/clip26.opus differ diff --git a/assets/audio/voice-keychain/dir02/clip27.opus b/assets/audio/voice-keychain/dir02/clip27.opus new file mode 100644 index 0000000..5a2c263 Binary files /dev/null and b/assets/audio/voice-keychain/dir02/clip27.opus differ diff --git a/assets/audio/voice-keychain/dir02/clip28.opus b/assets/audio/voice-keychain/dir02/clip28.opus new file mode 100644 index 0000000..5a6533f Binary files /dev/null and b/assets/audio/voice-keychain/dir02/clip28.opus differ diff --git a/assets/audio/voice-keychain/dir02/clip29.opus b/assets/audio/voice-keychain/dir02/clip29.opus new file mode 100644 index 0000000..d718256 Binary files /dev/null and b/assets/audio/voice-keychain/dir02/clip29.opus differ diff --git a/assets/audio/voice-keychain/dir02/clip30.opus b/assets/audio/voice-keychain/dir02/clip30.opus new file mode 100644 index 0000000..f36af30 Binary files /dev/null and b/assets/audio/voice-keychain/dir02/clip30.opus differ diff --git a/assets/audio/voice-keychain/dir02/clip31.opus b/assets/audio/voice-keychain/dir02/clip31.opus new file mode 100644 index 0000000..0545fd7 Binary files /dev/null and b/assets/audio/voice-keychain/dir02/clip31.opus differ diff --git a/assets/audio/voice-keychain/dir02/clip32.opus b/assets/audio/voice-keychain/dir02/clip32.opus new file mode 100644 index 0000000..26b3c7a Binary files /dev/null and b/assets/audio/voice-keychain/dir02/clip32.opus differ diff --git a/assets/audio/voice-keychain/dir02/clip33.opus b/assets/audio/voice-keychain/dir02/clip33.opus new file mode 100644 index 0000000..d5320f8 Binary files /dev/null and b/assets/audio/voice-keychain/dir02/clip33.opus differ diff --git a/assets/audio/voice-keychain/dir02/clip34.opus b/assets/audio/voice-keychain/dir02/clip34.opus new file mode 100644 index 0000000..78a816f Binary files /dev/null and b/assets/audio/voice-keychain/dir02/clip34.opus differ diff --git a/assets/audio/voice-keychain/dir02/clip35.opus b/assets/audio/voice-keychain/dir02/clip35.opus new file mode 100644 index 0000000..663da35 Binary files /dev/null and b/assets/audio/voice-keychain/dir02/clip35.opus differ diff --git a/assets/audio/voice-keychain/dir02/clip36.opus b/assets/audio/voice-keychain/dir02/clip36.opus new file mode 100644 index 0000000..bc26b42 Binary files /dev/null and b/assets/audio/voice-keychain/dir02/clip36.opus differ diff --git a/assets/audio/voice-keychain/dir02/clip37.opus b/assets/audio/voice-keychain/dir02/clip37.opus new file mode 100644 index 0000000..7e1bf33 Binary files /dev/null and b/assets/audio/voice-keychain/dir02/clip37.opus differ diff --git a/assets/audio/voice-keychain/dir02/clip38.opus b/assets/audio/voice-keychain/dir02/clip38.opus new file mode 100644 index 0000000..b1a4ed5 Binary files /dev/null and b/assets/audio/voice-keychain/dir02/clip38.opus differ diff --git a/assets/audio/voice-keychain/dir03/clip00.opus b/assets/audio/voice-keychain/dir03/clip00.opus new file mode 100644 index 0000000..025bd15 Binary files /dev/null and b/assets/audio/voice-keychain/dir03/clip00.opus differ diff --git a/assets/audio/voice-keychain/dir03/clip01.opus b/assets/audio/voice-keychain/dir03/clip01.opus new file mode 100644 index 0000000..131051e Binary files /dev/null and b/assets/audio/voice-keychain/dir03/clip01.opus differ diff --git a/assets/audio/voice-keychain/dir03/clip02.opus b/assets/audio/voice-keychain/dir03/clip02.opus new file mode 100644 index 0000000..d89d130 Binary files /dev/null and b/assets/audio/voice-keychain/dir03/clip02.opus differ diff --git a/assets/audio/voice-keychain/dir03/clip03.opus b/assets/audio/voice-keychain/dir03/clip03.opus new file mode 100644 index 0000000..2be13bd Binary files /dev/null and b/assets/audio/voice-keychain/dir03/clip03.opus differ diff --git a/assets/audio/voice-keychain/dir03/clip04.opus b/assets/audio/voice-keychain/dir03/clip04.opus new file mode 100644 index 0000000..3da8675 Binary files /dev/null and b/assets/audio/voice-keychain/dir03/clip04.opus differ diff --git a/assets/audio/voice-keychain/dir03/clip05.opus b/assets/audio/voice-keychain/dir03/clip05.opus new file mode 100644 index 0000000..1a35bc5 Binary files /dev/null and b/assets/audio/voice-keychain/dir03/clip05.opus differ diff --git a/assets/audio/voice-keychain/dir03/clip06.opus b/assets/audio/voice-keychain/dir03/clip06.opus new file mode 100644 index 0000000..059b4d0 Binary files /dev/null and b/assets/audio/voice-keychain/dir03/clip06.opus differ diff --git a/assets/audio/voice-keychain/dir03/clip07.opus b/assets/audio/voice-keychain/dir03/clip07.opus new file mode 100644 index 0000000..794da51 Binary files /dev/null and b/assets/audio/voice-keychain/dir03/clip07.opus differ diff --git a/assets/audio/voice-keychain/dir03/clip08.opus b/assets/audio/voice-keychain/dir03/clip08.opus new file mode 100644 index 0000000..a71dde3 Binary files /dev/null and b/assets/audio/voice-keychain/dir03/clip08.opus differ diff --git a/assets/audio/voice-keychain/dir03/clip09.opus b/assets/audio/voice-keychain/dir03/clip09.opus new file mode 100644 index 0000000..f239cd2 Binary files /dev/null and b/assets/audio/voice-keychain/dir03/clip09.opus differ diff --git a/assets/audio/voice-keychain/dir03/clip10.opus b/assets/audio/voice-keychain/dir03/clip10.opus new file mode 100644 index 0000000..f2c9557 Binary files /dev/null and b/assets/audio/voice-keychain/dir03/clip10.opus differ diff --git a/assets/audio/voice-keychain/dir03/clip11.opus b/assets/audio/voice-keychain/dir03/clip11.opus new file mode 100644 index 0000000..53aa8eb Binary files /dev/null and b/assets/audio/voice-keychain/dir03/clip11.opus differ diff --git a/assets/audio/voice-keychain/dir03/clip12.opus b/assets/audio/voice-keychain/dir03/clip12.opus new file mode 100644 index 0000000..feb3e1f Binary files /dev/null and b/assets/audio/voice-keychain/dir03/clip12.opus differ diff --git a/assets/audio/voice-keychain/dir03/clip13.opus b/assets/audio/voice-keychain/dir03/clip13.opus new file mode 100644 index 0000000..4381889 Binary files /dev/null and b/assets/audio/voice-keychain/dir03/clip13.opus differ diff --git a/assets/audio/voice-keychain/dir03/clip15.opus b/assets/audio/voice-keychain/dir03/clip15.opus new file mode 100644 index 0000000..7937941 Binary files /dev/null and b/assets/audio/voice-keychain/dir03/clip15.opus differ diff --git a/assets/audio/voice-keychain/dir03/clip16.opus b/assets/audio/voice-keychain/dir03/clip16.opus new file mode 100644 index 0000000..39aa1ee Binary files /dev/null and b/assets/audio/voice-keychain/dir03/clip16.opus differ diff --git a/assets/audio/voice-keychain/dir03/clip17.opus b/assets/audio/voice-keychain/dir03/clip17.opus new file mode 100644 index 0000000..67b9463 Binary files /dev/null and b/assets/audio/voice-keychain/dir03/clip17.opus differ diff --git a/assets/audio/voice-keychain/dir03/clip18.opus b/assets/audio/voice-keychain/dir03/clip18.opus new file mode 100644 index 0000000..ea89189 Binary files /dev/null and b/assets/audio/voice-keychain/dir03/clip18.opus differ diff --git a/assets/audio/voice-keychain/dir03/clip19.opus b/assets/audio/voice-keychain/dir03/clip19.opus new file mode 100644 index 0000000..9cd6cd1 Binary files /dev/null and b/assets/audio/voice-keychain/dir03/clip19.opus differ diff --git a/assets/audio/voice-keychain/dir03/clip20.opus b/assets/audio/voice-keychain/dir03/clip20.opus new file mode 100644 index 0000000..3ab63ca Binary files /dev/null and b/assets/audio/voice-keychain/dir03/clip20.opus differ diff --git a/assets/audio/voice-keychain/dir03/clip21.opus b/assets/audio/voice-keychain/dir03/clip21.opus new file mode 100644 index 0000000..0f845c0 Binary files /dev/null and b/assets/audio/voice-keychain/dir03/clip21.opus differ diff --git a/assets/audio/voice-keychain/dir03/clip24.opus b/assets/audio/voice-keychain/dir03/clip24.opus new file mode 100644 index 0000000..0a38747 Binary files /dev/null and b/assets/audio/voice-keychain/dir03/clip24.opus differ diff --git a/assets/audio/voice-keychain/dir03/clip25.opus b/assets/audio/voice-keychain/dir03/clip25.opus new file mode 100644 index 0000000..c9af038 Binary files /dev/null and b/assets/audio/voice-keychain/dir03/clip25.opus differ diff --git a/assets/audio/voice-keychain/dir03/clip26.opus b/assets/audio/voice-keychain/dir03/clip26.opus new file mode 100644 index 0000000..cfc1b02 Binary files /dev/null and b/assets/audio/voice-keychain/dir03/clip26.opus differ diff --git a/assets/audio/voice-keychain/dir03/clip27.opus b/assets/audio/voice-keychain/dir03/clip27.opus new file mode 100644 index 0000000..c9eccc7 Binary files /dev/null and b/assets/audio/voice-keychain/dir03/clip27.opus differ diff --git a/assets/audio/voice-keychain/dir03/clip28.opus b/assets/audio/voice-keychain/dir03/clip28.opus new file mode 100644 index 0000000..d48f8f4 Binary files /dev/null and b/assets/audio/voice-keychain/dir03/clip28.opus differ diff --git a/assets/audio/voice-keychain/dir03/clip29.opus b/assets/audio/voice-keychain/dir03/clip29.opus new file mode 100644 index 0000000..ade9110 Binary files /dev/null and b/assets/audio/voice-keychain/dir03/clip29.opus differ diff --git a/assets/audio/voice-keychain/dir03/clip30.opus b/assets/audio/voice-keychain/dir03/clip30.opus new file mode 100644 index 0000000..314f1c7 Binary files /dev/null and b/assets/audio/voice-keychain/dir03/clip30.opus differ diff --git a/assets/audio/voice-keychain/dir04/clip00.opus b/assets/audio/voice-keychain/dir04/clip00.opus new file mode 100644 index 0000000..2eafe7a Binary files /dev/null and b/assets/audio/voice-keychain/dir04/clip00.opus differ diff --git a/assets/audio/voice-keychain/dir04/clip01.opus b/assets/audio/voice-keychain/dir04/clip01.opus new file mode 100644 index 0000000..72faf3f Binary files /dev/null and b/assets/audio/voice-keychain/dir04/clip01.opus differ diff --git a/assets/audio/voice-keychain/dir04/clip02.opus b/assets/audio/voice-keychain/dir04/clip02.opus new file mode 100644 index 0000000..c964971 Binary files /dev/null and b/assets/audio/voice-keychain/dir04/clip02.opus differ diff --git a/assets/audio/voice-keychain/dir04/clip03.opus b/assets/audio/voice-keychain/dir04/clip03.opus new file mode 100644 index 0000000..0151b7e Binary files /dev/null and b/assets/audio/voice-keychain/dir04/clip03.opus differ diff --git a/assets/audio/voice-keychain/dir04/clip04.opus b/assets/audio/voice-keychain/dir04/clip04.opus new file mode 100644 index 0000000..f96ce93 Binary files /dev/null and b/assets/audio/voice-keychain/dir04/clip04.opus differ diff --git a/assets/audio/voice-keychain/dir04/clip05.opus b/assets/audio/voice-keychain/dir04/clip05.opus new file mode 100644 index 0000000..8591d6b Binary files /dev/null and b/assets/audio/voice-keychain/dir04/clip05.opus differ diff --git a/assets/audio/voice-keychain/dir04/clip06.opus b/assets/audio/voice-keychain/dir04/clip06.opus new file mode 100644 index 0000000..c1b2d69 Binary files /dev/null and b/assets/audio/voice-keychain/dir04/clip06.opus differ diff --git a/assets/audio/voice-keychain/dir04/clip07.opus b/assets/audio/voice-keychain/dir04/clip07.opus new file mode 100644 index 0000000..17958f9 Binary files /dev/null and b/assets/audio/voice-keychain/dir04/clip07.opus differ diff --git a/assets/audio/voice-keychain/dir04/clip08.opus b/assets/audio/voice-keychain/dir04/clip08.opus new file mode 100644 index 0000000..c3a8c42 Binary files /dev/null and b/assets/audio/voice-keychain/dir04/clip08.opus differ diff --git a/assets/audio/voice-keychain/dir04/clip09.opus b/assets/audio/voice-keychain/dir04/clip09.opus new file mode 100644 index 0000000..8b4f930 Binary files /dev/null and b/assets/audio/voice-keychain/dir04/clip09.opus differ diff --git a/assets/audio/voice-keychain/dir04/clip10.opus b/assets/audio/voice-keychain/dir04/clip10.opus new file mode 100644 index 0000000..f0be3cd Binary files /dev/null and b/assets/audio/voice-keychain/dir04/clip10.opus differ diff --git a/assets/audio/voice-keychain/dir04/clip12.opus b/assets/audio/voice-keychain/dir04/clip12.opus new file mode 100644 index 0000000..e6d551e Binary files /dev/null and b/assets/audio/voice-keychain/dir04/clip12.opus differ diff --git a/assets/audio/voice-keychain/dir04/clip13.opus b/assets/audio/voice-keychain/dir04/clip13.opus new file mode 100644 index 0000000..9a4cf8b Binary files /dev/null and b/assets/audio/voice-keychain/dir04/clip13.opus differ diff --git a/assets/audio/voice-keychain/dir04/clip14.opus b/assets/audio/voice-keychain/dir04/clip14.opus new file mode 100644 index 0000000..e88b792 Binary files /dev/null and b/assets/audio/voice-keychain/dir04/clip14.opus differ diff --git a/assets/audio/voice-keychain/dir04/clip15.opus b/assets/audio/voice-keychain/dir04/clip15.opus new file mode 100644 index 0000000..14dedfb Binary files /dev/null and b/assets/audio/voice-keychain/dir04/clip15.opus differ diff --git a/assets/audio/voice-keychain/dir04/clip16.opus b/assets/audio/voice-keychain/dir04/clip16.opus new file mode 100644 index 0000000..064296e Binary files /dev/null and b/assets/audio/voice-keychain/dir04/clip16.opus differ diff --git a/assets/audio/voice-keychain/dir04/clip17.opus b/assets/audio/voice-keychain/dir04/clip17.opus new file mode 100644 index 0000000..467d984 Binary files /dev/null and b/assets/audio/voice-keychain/dir04/clip17.opus differ diff --git a/assets/audio/voice-keychain/dir04/clip18.opus b/assets/audio/voice-keychain/dir04/clip18.opus new file mode 100644 index 0000000..4caf13d Binary files /dev/null and b/assets/audio/voice-keychain/dir04/clip18.opus differ diff --git a/assets/audio/voice-keychain/dir04/clip19.opus b/assets/audio/voice-keychain/dir04/clip19.opus new file mode 100644 index 0000000..016425e Binary files /dev/null and b/assets/audio/voice-keychain/dir04/clip19.opus differ diff --git a/assets/audio/voice-keychain/dir04/clip20.opus b/assets/audio/voice-keychain/dir04/clip20.opus new file mode 100644 index 0000000..5e74b65 Binary files /dev/null and b/assets/audio/voice-keychain/dir04/clip20.opus differ diff --git a/assets/audio/voice-keychain/dir04/clip21.opus b/assets/audio/voice-keychain/dir04/clip21.opus new file mode 100644 index 0000000..da35ad2 Binary files /dev/null and b/assets/audio/voice-keychain/dir04/clip21.opus differ diff --git a/assets/audio/voice-keychain/dir04/clip22.opus b/assets/audio/voice-keychain/dir04/clip22.opus new file mode 100644 index 0000000..0b81fa4 Binary files /dev/null and b/assets/audio/voice-keychain/dir04/clip22.opus differ diff --git a/assets/audio/voice-keychain/dir05/clip00.opus b/assets/audio/voice-keychain/dir05/clip00.opus new file mode 100644 index 0000000..930b69e Binary files /dev/null and b/assets/audio/voice-keychain/dir05/clip00.opus differ diff --git a/assets/audio/voice-keychain/dir05/clip01.opus b/assets/audio/voice-keychain/dir05/clip01.opus new file mode 100644 index 0000000..20dce4d Binary files /dev/null and b/assets/audio/voice-keychain/dir05/clip01.opus differ diff --git a/assets/audio/voice-keychain/dir05/clip03.opus b/assets/audio/voice-keychain/dir05/clip03.opus new file mode 100644 index 0000000..a5021aa Binary files /dev/null and b/assets/audio/voice-keychain/dir05/clip03.opus differ diff --git a/assets/audio/voice-keychain/dir05/clip04.opus b/assets/audio/voice-keychain/dir05/clip04.opus new file mode 100644 index 0000000..3d3fb44 Binary files /dev/null and b/assets/audio/voice-keychain/dir05/clip04.opus differ diff --git a/assets/audio/voice-keychain/dir05/clip05.opus b/assets/audio/voice-keychain/dir05/clip05.opus new file mode 100644 index 0000000..254f5d3 Binary files /dev/null and b/assets/audio/voice-keychain/dir05/clip05.opus differ diff --git a/assets/audio/voice-keychain/dir05/clip06.opus b/assets/audio/voice-keychain/dir05/clip06.opus new file mode 100644 index 0000000..e730289 Binary files /dev/null and b/assets/audio/voice-keychain/dir05/clip06.opus differ diff --git a/assets/audio/voice-keychain/dir05/clip07.opus b/assets/audio/voice-keychain/dir05/clip07.opus new file mode 100644 index 0000000..25a84dd Binary files /dev/null and b/assets/audio/voice-keychain/dir05/clip07.opus differ diff --git a/assets/audio/voice-keychain/dir05/clip08.opus b/assets/audio/voice-keychain/dir05/clip08.opus new file mode 100644 index 0000000..edeace3 Binary files /dev/null and b/assets/audio/voice-keychain/dir05/clip08.opus differ diff --git a/assets/audio/voice-keychain/dir05/clip09.opus b/assets/audio/voice-keychain/dir05/clip09.opus new file mode 100644 index 0000000..9ab05ae Binary files /dev/null and b/assets/audio/voice-keychain/dir05/clip09.opus differ diff --git a/assets/audio/voice-keychain/dir05/clip11.opus b/assets/audio/voice-keychain/dir05/clip11.opus new file mode 100644 index 0000000..db427cc Binary files /dev/null and b/assets/audio/voice-keychain/dir05/clip11.opus differ diff --git a/assets/audio/voice-keychain/dir05/clip12.opus b/assets/audio/voice-keychain/dir05/clip12.opus new file mode 100644 index 0000000..ff11c2d Binary files /dev/null and b/assets/audio/voice-keychain/dir05/clip12.opus differ diff --git a/assets/audio/voice-keychain/dir05/clip13.opus b/assets/audio/voice-keychain/dir05/clip13.opus new file mode 100644 index 0000000..36724ce Binary files /dev/null and b/assets/audio/voice-keychain/dir05/clip13.opus differ diff --git a/assets/audio/voice-keychain/dir05/clip14.opus b/assets/audio/voice-keychain/dir05/clip14.opus new file mode 100644 index 0000000..3fb9148 Binary files /dev/null and b/assets/audio/voice-keychain/dir05/clip14.opus differ diff --git a/assets/audio/voice-keychain/dir05/clip15.opus b/assets/audio/voice-keychain/dir05/clip15.opus new file mode 100644 index 0000000..4e4a37b Binary files /dev/null and b/assets/audio/voice-keychain/dir05/clip15.opus differ diff --git a/assets/audio/voice-keychain/dir05/clip16.opus b/assets/audio/voice-keychain/dir05/clip16.opus new file mode 100644 index 0000000..f01ef2d Binary files /dev/null and b/assets/audio/voice-keychain/dir05/clip16.opus differ diff --git a/assets/audio/voice-keychain/dir05/clip17.opus b/assets/audio/voice-keychain/dir05/clip17.opus new file mode 100644 index 0000000..1d61acc Binary files /dev/null and b/assets/audio/voice-keychain/dir05/clip17.opus differ diff --git a/assets/audio/voice-keychain/dir05/clip18.opus b/assets/audio/voice-keychain/dir05/clip18.opus new file mode 100644 index 0000000..cb70b2c Binary files /dev/null and b/assets/audio/voice-keychain/dir05/clip18.opus differ diff --git a/assets/audio/voice-keychain/dir05/clip19.opus b/assets/audio/voice-keychain/dir05/clip19.opus new file mode 100644 index 0000000..88a7e33 Binary files /dev/null and b/assets/audio/voice-keychain/dir05/clip19.opus differ diff --git a/assets/audio/voice-keychain/dir05/clip20.opus b/assets/audio/voice-keychain/dir05/clip20.opus new file mode 100644 index 0000000..a297989 Binary files /dev/null and b/assets/audio/voice-keychain/dir05/clip20.opus differ diff --git a/assets/audio/voice-keychain/dir05/clip21.opus b/assets/audio/voice-keychain/dir05/clip21.opus new file mode 100644 index 0000000..d1a9b01 Binary files /dev/null and b/assets/audio/voice-keychain/dir05/clip21.opus differ diff --git a/assets/audio/voice-keychain/dir05/clip22.opus b/assets/audio/voice-keychain/dir05/clip22.opus new file mode 100644 index 0000000..5793ca8 Binary files /dev/null and b/assets/audio/voice-keychain/dir05/clip22.opus differ diff --git a/assets/audio/voice-keychain/dir05/clip24.opus b/assets/audio/voice-keychain/dir05/clip24.opus new file mode 100644 index 0000000..122cba5 Binary files /dev/null and b/assets/audio/voice-keychain/dir05/clip24.opus differ diff --git a/assets/audio/voice-keychain/dir05/clip25.opus b/assets/audio/voice-keychain/dir05/clip25.opus new file mode 100644 index 0000000..3dd7817 Binary files /dev/null and b/assets/audio/voice-keychain/dir05/clip25.opus differ diff --git a/assets/audio/voice-keychain/dir05/clip26.opus b/assets/audio/voice-keychain/dir05/clip26.opus new file mode 100644 index 0000000..122f9d3 Binary files /dev/null and b/assets/audio/voice-keychain/dir05/clip26.opus differ diff --git a/assets/audio/voice-keychain/dir05/clip27.opus b/assets/audio/voice-keychain/dir05/clip27.opus new file mode 100644 index 0000000..20aaf91 Binary files /dev/null and b/assets/audio/voice-keychain/dir05/clip27.opus differ diff --git a/assets/audio/voice-keychain/dir05/clip28.opus b/assets/audio/voice-keychain/dir05/clip28.opus new file mode 100644 index 0000000..9e2d73b Binary files /dev/null and b/assets/audio/voice-keychain/dir05/clip28.opus differ diff --git a/assets/audio/voice-keychain/dir05/clip29.opus b/assets/audio/voice-keychain/dir05/clip29.opus new file mode 100644 index 0000000..9258b5f Binary files /dev/null and b/assets/audio/voice-keychain/dir05/clip29.opus differ diff --git a/assets/audio/voice-keychain/dir05/clip30.opus b/assets/audio/voice-keychain/dir05/clip30.opus new file mode 100644 index 0000000..255fb6e Binary files /dev/null and b/assets/audio/voice-keychain/dir05/clip30.opus differ diff --git a/assets/audio/voice-keychain/dir05/clip31.opus b/assets/audio/voice-keychain/dir05/clip31.opus new file mode 100644 index 0000000..837ed3d Binary files /dev/null and b/assets/audio/voice-keychain/dir05/clip31.opus differ diff --git a/assets/audio/voice-keychain/dir05/clip32.opus b/assets/audio/voice-keychain/dir05/clip32.opus new file mode 100644 index 0000000..e719522 Binary files /dev/null and b/assets/audio/voice-keychain/dir05/clip32.opus differ diff --git a/assets/audio/voice-keychain/dir05/clip33.opus b/assets/audio/voice-keychain/dir05/clip33.opus new file mode 100644 index 0000000..b892ebf Binary files /dev/null and b/assets/audio/voice-keychain/dir05/clip33.opus differ diff --git a/assets/audio/voice-keychain/dir05/clip34.opus b/assets/audio/voice-keychain/dir05/clip34.opus new file mode 100644 index 0000000..b585826 Binary files /dev/null and b/assets/audio/voice-keychain/dir05/clip34.opus differ diff --git a/assets/audio/voice-keychain/dir06/clip00.opus b/assets/audio/voice-keychain/dir06/clip00.opus new file mode 100644 index 0000000..48a684a Binary files /dev/null and b/assets/audio/voice-keychain/dir06/clip00.opus differ diff --git a/assets/audio/voice-keychain/dir06/clip01.opus b/assets/audio/voice-keychain/dir06/clip01.opus new file mode 100644 index 0000000..af38658 Binary files /dev/null and b/assets/audio/voice-keychain/dir06/clip01.opus differ diff --git a/assets/audio/voice-keychain/dir06/clip02.opus b/assets/audio/voice-keychain/dir06/clip02.opus new file mode 100644 index 0000000..1400b8e Binary files /dev/null and b/assets/audio/voice-keychain/dir06/clip02.opus differ diff --git a/assets/audio/voice-keychain/dir06/clip03.opus b/assets/audio/voice-keychain/dir06/clip03.opus new file mode 100644 index 0000000..5820806 Binary files /dev/null and b/assets/audio/voice-keychain/dir06/clip03.opus differ diff --git a/assets/audio/voice-keychain/dir06/clip04.opus b/assets/audio/voice-keychain/dir06/clip04.opus new file mode 100644 index 0000000..06c3b97 Binary files /dev/null and b/assets/audio/voice-keychain/dir06/clip04.opus differ diff --git a/assets/audio/voice-keychain/dir06/clip05.opus b/assets/audio/voice-keychain/dir06/clip05.opus new file mode 100644 index 0000000..d04b138 Binary files /dev/null and b/assets/audio/voice-keychain/dir06/clip05.opus differ diff --git a/assets/audio/voice-keychain/dir06/clip06.opus b/assets/audio/voice-keychain/dir06/clip06.opus new file mode 100644 index 0000000..c7f18dc Binary files /dev/null and b/assets/audio/voice-keychain/dir06/clip06.opus differ diff --git a/assets/audio/voice-keychain/dir06/clip07.opus b/assets/audio/voice-keychain/dir06/clip07.opus new file mode 100644 index 0000000..339edcf Binary files /dev/null and b/assets/audio/voice-keychain/dir06/clip07.opus differ diff --git a/assets/audio/voice-keychain/dir06/clip08.opus b/assets/audio/voice-keychain/dir06/clip08.opus new file mode 100644 index 0000000..7e97e3e Binary files /dev/null and b/assets/audio/voice-keychain/dir06/clip08.opus differ diff --git a/assets/audio/voice-keychain/dir06/clip09.opus b/assets/audio/voice-keychain/dir06/clip09.opus new file mode 100644 index 0000000..1e447c4 Binary files /dev/null and b/assets/audio/voice-keychain/dir06/clip09.opus differ diff --git a/assets/audio/voice-keychain/dir06/clip10.opus b/assets/audio/voice-keychain/dir06/clip10.opus new file mode 100644 index 0000000..fe34c97 Binary files /dev/null and b/assets/audio/voice-keychain/dir06/clip10.opus differ diff --git a/assets/audio/voice-keychain/dir06/clip12.opus b/assets/audio/voice-keychain/dir06/clip12.opus new file mode 100644 index 0000000..1859354 Binary files /dev/null and b/assets/audio/voice-keychain/dir06/clip12.opus differ diff --git a/assets/audio/voice-keychain/dir06/clip13.opus b/assets/audio/voice-keychain/dir06/clip13.opus new file mode 100644 index 0000000..88ec520 Binary files /dev/null and b/assets/audio/voice-keychain/dir06/clip13.opus differ diff --git a/assets/audio/voice-keychain/dir06/clip14.opus b/assets/audio/voice-keychain/dir06/clip14.opus new file mode 100644 index 0000000..7d272bf Binary files /dev/null and b/assets/audio/voice-keychain/dir06/clip14.opus differ diff --git a/assets/audio/voice-keychain/dir06/clip15.opus b/assets/audio/voice-keychain/dir06/clip15.opus new file mode 100644 index 0000000..28eb29a Binary files /dev/null and b/assets/audio/voice-keychain/dir06/clip15.opus differ diff --git a/assets/audio/voice-keychain/dir06/clip16.opus b/assets/audio/voice-keychain/dir06/clip16.opus new file mode 100644 index 0000000..46b39ca Binary files /dev/null and b/assets/audio/voice-keychain/dir06/clip16.opus differ diff --git a/assets/audio/voice-keychain/dir06/clip17.opus b/assets/audio/voice-keychain/dir06/clip17.opus new file mode 100644 index 0000000..f75494a Binary files /dev/null and b/assets/audio/voice-keychain/dir06/clip17.opus differ diff --git a/assets/audio/voice-keychain/dir06/clip18.opus b/assets/audio/voice-keychain/dir06/clip18.opus new file mode 100644 index 0000000..5bac8ce Binary files /dev/null and b/assets/audio/voice-keychain/dir06/clip18.opus differ diff --git a/assets/audio/voice-keychain/dir06/clip19.opus b/assets/audio/voice-keychain/dir06/clip19.opus new file mode 100644 index 0000000..be258b1 Binary files /dev/null and b/assets/audio/voice-keychain/dir06/clip19.opus differ diff --git a/assets/audio/voice-keychain/dir06/clip20.opus b/assets/audio/voice-keychain/dir06/clip20.opus new file mode 100644 index 0000000..f3f1a30 Binary files /dev/null and b/assets/audio/voice-keychain/dir06/clip20.opus differ diff --git a/assets/audio/voice-keychain/dir06/clip21.opus b/assets/audio/voice-keychain/dir06/clip21.opus new file mode 100644 index 0000000..6ed43ff Binary files /dev/null and b/assets/audio/voice-keychain/dir06/clip21.opus differ diff --git a/assets/audio/voice-keychain/dir06/clip22.opus b/assets/audio/voice-keychain/dir06/clip22.opus new file mode 100644 index 0000000..44651f5 Binary files /dev/null and b/assets/audio/voice-keychain/dir06/clip22.opus differ diff --git a/assets/audio/voice-keychain/dir06/clip23.opus b/assets/audio/voice-keychain/dir06/clip23.opus new file mode 100644 index 0000000..ce3e8fd Binary files /dev/null and b/assets/audio/voice-keychain/dir06/clip23.opus differ diff --git a/assets/audio/voice-keychain/dir06/clip24.opus b/assets/audio/voice-keychain/dir06/clip24.opus new file mode 100644 index 0000000..3dda72b Binary files /dev/null and b/assets/audio/voice-keychain/dir06/clip24.opus differ diff --git a/assets/audio/voice-keychain/dir06/clip25.opus b/assets/audio/voice-keychain/dir06/clip25.opus new file mode 100644 index 0000000..a0471bc Binary files /dev/null and b/assets/audio/voice-keychain/dir06/clip25.opus differ diff --git a/assets/audio/voice-keychain/dir06/clip26.opus b/assets/audio/voice-keychain/dir06/clip26.opus new file mode 100644 index 0000000..d9026a6 Binary files /dev/null and b/assets/audio/voice-keychain/dir06/clip26.opus differ diff --git a/assets/audio/voice-keychain/dir06/clip27.opus b/assets/audio/voice-keychain/dir06/clip27.opus new file mode 100644 index 0000000..2a0253f Binary files /dev/null and b/assets/audio/voice-keychain/dir06/clip27.opus differ diff --git a/assets/audio/voice-keychain/dir06/clip28.opus b/assets/audio/voice-keychain/dir06/clip28.opus new file mode 100644 index 0000000..f5af4ea Binary files /dev/null and b/assets/audio/voice-keychain/dir06/clip28.opus differ diff --git a/assets/audio/voice-keychain/dir06/clip29.opus b/assets/audio/voice-keychain/dir06/clip29.opus new file mode 100644 index 0000000..9cfadeb Binary files /dev/null and b/assets/audio/voice-keychain/dir06/clip29.opus differ diff --git a/assets/audio/voice-keychain/dir06/clip30.opus b/assets/audio/voice-keychain/dir06/clip30.opus new file mode 100644 index 0000000..370620d Binary files /dev/null and b/assets/audio/voice-keychain/dir06/clip30.opus differ diff --git a/assets/audio/voice-keychain/dir06/clip31.opus b/assets/audio/voice-keychain/dir06/clip31.opus new file mode 100644 index 0000000..e941fcf Binary files /dev/null and b/assets/audio/voice-keychain/dir06/clip31.opus differ diff --git a/assets/audio/voice-keychain/dir06/clip32.opus b/assets/audio/voice-keychain/dir06/clip32.opus new file mode 100644 index 0000000..a9bfcee Binary files /dev/null and b/assets/audio/voice-keychain/dir06/clip32.opus differ diff --git a/assets/audio/voice-keychain/dir06/clip33.opus b/assets/audio/voice-keychain/dir06/clip33.opus new file mode 100644 index 0000000..bb82a00 Binary files /dev/null and b/assets/audio/voice-keychain/dir06/clip33.opus differ diff --git a/assets/audio/voice-keychain/dir06/clip34.opus b/assets/audio/voice-keychain/dir06/clip34.opus new file mode 100644 index 0000000..ac01f51 Binary files /dev/null and b/assets/audio/voice-keychain/dir06/clip34.opus differ diff --git a/assets/audio/voice-keychain/dir06/clip35.opus b/assets/audio/voice-keychain/dir06/clip35.opus new file mode 100644 index 0000000..3846a83 Binary files /dev/null and b/assets/audio/voice-keychain/dir06/clip35.opus differ diff --git a/assets/audio/voice-keychain/dir06/clip36.opus b/assets/audio/voice-keychain/dir06/clip36.opus new file mode 100644 index 0000000..eca0fd4 Binary files /dev/null and b/assets/audio/voice-keychain/dir06/clip36.opus differ diff --git a/assets/audio/voice-keychain/dir06/clip37.opus b/assets/audio/voice-keychain/dir06/clip37.opus new file mode 100644 index 0000000..5fb9d1b Binary files /dev/null and b/assets/audio/voice-keychain/dir06/clip37.opus differ diff --git a/assets/audio/voice-keychain/dir06/clip38.opus b/assets/audio/voice-keychain/dir06/clip38.opus new file mode 100644 index 0000000..869f225 Binary files /dev/null and b/assets/audio/voice-keychain/dir06/clip38.opus differ diff --git a/assets/audio/voice-keychain/dir06/clip39.opus b/assets/audio/voice-keychain/dir06/clip39.opus new file mode 100644 index 0000000..527a7be Binary files /dev/null and b/assets/audio/voice-keychain/dir06/clip39.opus differ diff --git a/assets/audio/voice-keychain/dir07/clip00.opus b/assets/audio/voice-keychain/dir07/clip00.opus new file mode 100644 index 0000000..07efe57 Binary files /dev/null and b/assets/audio/voice-keychain/dir07/clip00.opus differ diff --git a/assets/audio/voice-keychain/dir07/clip01.opus b/assets/audio/voice-keychain/dir07/clip01.opus new file mode 100644 index 0000000..9db83de Binary files /dev/null and b/assets/audio/voice-keychain/dir07/clip01.opus differ diff --git a/assets/audio/voice-keychain/dir07/clip02.opus b/assets/audio/voice-keychain/dir07/clip02.opus new file mode 100644 index 0000000..a2ff231 Binary files /dev/null and b/assets/audio/voice-keychain/dir07/clip02.opus differ diff --git a/assets/audio/voice-keychain/dir07/clip03.opus b/assets/audio/voice-keychain/dir07/clip03.opus new file mode 100644 index 0000000..4832309 Binary files /dev/null and b/assets/audio/voice-keychain/dir07/clip03.opus differ diff --git a/assets/audio/voice-keychain/dir07/clip05.opus b/assets/audio/voice-keychain/dir07/clip05.opus new file mode 100644 index 0000000..d87ff50 Binary files /dev/null and b/assets/audio/voice-keychain/dir07/clip05.opus differ diff --git a/assets/audio/voice-keychain/dir07/clip06.opus b/assets/audio/voice-keychain/dir07/clip06.opus new file mode 100644 index 0000000..3a0578f Binary files /dev/null and b/assets/audio/voice-keychain/dir07/clip06.opus differ diff --git a/assets/audio/voice-keychain/dir07/clip07.opus b/assets/audio/voice-keychain/dir07/clip07.opus new file mode 100644 index 0000000..99f2d2f Binary files /dev/null and b/assets/audio/voice-keychain/dir07/clip07.opus differ diff --git a/assets/audio/voice-keychain/dir07/clip08.opus b/assets/audio/voice-keychain/dir07/clip08.opus new file mode 100644 index 0000000..be72e24 Binary files /dev/null and b/assets/audio/voice-keychain/dir07/clip08.opus differ diff --git a/assets/audio/voice-keychain/dir07/clip09.opus b/assets/audio/voice-keychain/dir07/clip09.opus new file mode 100644 index 0000000..2841f98 Binary files /dev/null and b/assets/audio/voice-keychain/dir07/clip09.opus differ diff --git a/assets/audio/voice-keychain/dir07/clip11.opus b/assets/audio/voice-keychain/dir07/clip11.opus new file mode 100644 index 0000000..f730866 Binary files /dev/null and b/assets/audio/voice-keychain/dir07/clip11.opus differ diff --git a/assets/audio/voice-keychain/dir07/clip12.opus b/assets/audio/voice-keychain/dir07/clip12.opus new file mode 100644 index 0000000..006d074 Binary files /dev/null and b/assets/audio/voice-keychain/dir07/clip12.opus differ diff --git a/assets/audio/voice-keychain/dir07/clip13.opus b/assets/audio/voice-keychain/dir07/clip13.opus new file mode 100644 index 0000000..8fd2998 Binary files /dev/null and b/assets/audio/voice-keychain/dir07/clip13.opus differ diff --git a/assets/audio/voice-keychain/dir07/clip14.opus b/assets/audio/voice-keychain/dir07/clip14.opus new file mode 100644 index 0000000..95147bb Binary files /dev/null and b/assets/audio/voice-keychain/dir07/clip14.opus differ diff --git a/assets/audio/voice-keychain/dir07/clip15.opus b/assets/audio/voice-keychain/dir07/clip15.opus new file mode 100644 index 0000000..20e38d7 Binary files /dev/null and b/assets/audio/voice-keychain/dir07/clip15.opus differ diff --git a/assets/audio/voice-keychain/dir07/clip17.opus b/assets/audio/voice-keychain/dir07/clip17.opus new file mode 100644 index 0000000..e88baae Binary files /dev/null and b/assets/audio/voice-keychain/dir07/clip17.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip00.opus b/assets/audio/voice-keychain/dir08/clip00.opus new file mode 100644 index 0000000..ac49d5c Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip00.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip01.opus b/assets/audio/voice-keychain/dir08/clip01.opus new file mode 100644 index 0000000..e9e2be5 Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip01.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip02.opus b/assets/audio/voice-keychain/dir08/clip02.opus new file mode 100644 index 0000000..6e0a931 Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip02.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip03.opus b/assets/audio/voice-keychain/dir08/clip03.opus new file mode 100644 index 0000000..663169d Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip03.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip04.opus b/assets/audio/voice-keychain/dir08/clip04.opus new file mode 100644 index 0000000..74a36bd Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip04.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip05.opus b/assets/audio/voice-keychain/dir08/clip05.opus new file mode 100644 index 0000000..060d062 Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip05.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip06.opus b/assets/audio/voice-keychain/dir08/clip06.opus new file mode 100644 index 0000000..a81763a Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip06.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip07.opus b/assets/audio/voice-keychain/dir08/clip07.opus new file mode 100644 index 0000000..9042dbc Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip07.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip08.opus b/assets/audio/voice-keychain/dir08/clip08.opus new file mode 100644 index 0000000..0e760d6 Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip08.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip09.opus b/assets/audio/voice-keychain/dir08/clip09.opus new file mode 100644 index 0000000..8580c83 Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip09.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip10.opus b/assets/audio/voice-keychain/dir08/clip10.opus new file mode 100644 index 0000000..dc0b4fb Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip10.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip11.opus b/assets/audio/voice-keychain/dir08/clip11.opus new file mode 100644 index 0000000..1935d07 Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip11.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip12.opus b/assets/audio/voice-keychain/dir08/clip12.opus new file mode 100644 index 0000000..141cf4f Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip12.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip13.opus b/assets/audio/voice-keychain/dir08/clip13.opus new file mode 100644 index 0000000..d9b820d Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip13.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip14.opus b/assets/audio/voice-keychain/dir08/clip14.opus new file mode 100644 index 0000000..71e5e26 Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip14.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip15.opus b/assets/audio/voice-keychain/dir08/clip15.opus new file mode 100644 index 0000000..01c9237 Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip15.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip16.opus b/assets/audio/voice-keychain/dir08/clip16.opus new file mode 100644 index 0000000..dc0dd5c Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip16.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip17.opus b/assets/audio/voice-keychain/dir08/clip17.opus new file mode 100644 index 0000000..579f4dc Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip17.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip19.opus b/assets/audio/voice-keychain/dir08/clip19.opus new file mode 100644 index 0000000..1e85b73 Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip19.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip20.opus b/assets/audio/voice-keychain/dir08/clip20.opus new file mode 100644 index 0000000..1b1632b Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip20.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip21.opus b/assets/audio/voice-keychain/dir08/clip21.opus new file mode 100644 index 0000000..f80eb45 Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip21.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip22.opus b/assets/audio/voice-keychain/dir08/clip22.opus new file mode 100644 index 0000000..23cf0d5 Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip22.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip23.opus b/assets/audio/voice-keychain/dir08/clip23.opus new file mode 100644 index 0000000..9ffca1f Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip23.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip24.opus b/assets/audio/voice-keychain/dir08/clip24.opus new file mode 100644 index 0000000..f3a9041 Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip24.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip34.opus b/assets/audio/voice-keychain/dir08/clip34.opus new file mode 100644 index 0000000..4b9b020 Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip34.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip35.opus b/assets/audio/voice-keychain/dir08/clip35.opus new file mode 100644 index 0000000..cbc723d Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip35.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip36.opus b/assets/audio/voice-keychain/dir08/clip36.opus new file mode 100644 index 0000000..06a9e12 Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip36.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip37.opus b/assets/audio/voice-keychain/dir08/clip37.opus new file mode 100644 index 0000000..7032fa7 Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip37.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip39.opus b/assets/audio/voice-keychain/dir08/clip39.opus new file mode 100644 index 0000000..35a49ab Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip39.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip40.opus b/assets/audio/voice-keychain/dir08/clip40.opus new file mode 100644 index 0000000..3ca2cd6 Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip40.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip41.opus b/assets/audio/voice-keychain/dir08/clip41.opus new file mode 100644 index 0000000..582c28e Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip41.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip42.opus b/assets/audio/voice-keychain/dir08/clip42.opus new file mode 100644 index 0000000..185e854 Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip42.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip43.opus b/assets/audio/voice-keychain/dir08/clip43.opus new file mode 100644 index 0000000..72bf597 Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip43.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip44.opus b/assets/audio/voice-keychain/dir08/clip44.opus new file mode 100644 index 0000000..fa075cd Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip44.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip45.opus b/assets/audio/voice-keychain/dir08/clip45.opus new file mode 100644 index 0000000..10a1335 Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip45.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip46.opus b/assets/audio/voice-keychain/dir08/clip46.opus new file mode 100644 index 0000000..bb8f7b5 Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip46.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip47.opus b/assets/audio/voice-keychain/dir08/clip47.opus new file mode 100644 index 0000000..826cce2 Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip47.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip48.opus b/assets/audio/voice-keychain/dir08/clip48.opus new file mode 100644 index 0000000..075c0ee Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip48.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip49.opus b/assets/audio/voice-keychain/dir08/clip49.opus new file mode 100644 index 0000000..7e48b3a Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip49.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip50.opus b/assets/audio/voice-keychain/dir08/clip50.opus new file mode 100644 index 0000000..d815163 Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip50.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip51.opus b/assets/audio/voice-keychain/dir08/clip51.opus new file mode 100644 index 0000000..9ab3bf7 Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip51.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip52.opus b/assets/audio/voice-keychain/dir08/clip52.opus new file mode 100644 index 0000000..d5897d0 Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip52.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip53.opus b/assets/audio/voice-keychain/dir08/clip53.opus new file mode 100644 index 0000000..fc69e49 Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip53.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip54.opus b/assets/audio/voice-keychain/dir08/clip54.opus new file mode 100644 index 0000000..3e98aff Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip54.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip55.opus b/assets/audio/voice-keychain/dir08/clip55.opus new file mode 100644 index 0000000..ccc644e Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip55.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip56.opus b/assets/audio/voice-keychain/dir08/clip56.opus new file mode 100644 index 0000000..01af3fa Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip56.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip57.opus b/assets/audio/voice-keychain/dir08/clip57.opus new file mode 100644 index 0000000..dfdcd25 Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip57.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip58.opus b/assets/audio/voice-keychain/dir08/clip58.opus new file mode 100644 index 0000000..408dcb4 Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip58.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip59.opus b/assets/audio/voice-keychain/dir08/clip59.opus new file mode 100644 index 0000000..68e68d4 Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip59.opus differ diff --git a/assets/audio/voice-keychain/dir08/clip60.opus b/assets/audio/voice-keychain/dir08/clip60.opus new file mode 100644 index 0000000..19cd460 Binary files /dev/null and b/assets/audio/voice-keychain/dir08/clip60.opus differ diff --git a/assets/audio/voice-keychain/dir09/clip01.opus b/assets/audio/voice-keychain/dir09/clip01.opus new file mode 100644 index 0000000..6ad5b4b Binary files /dev/null and b/assets/audio/voice-keychain/dir09/clip01.opus differ diff --git a/assets/audio/voice-keychain/dir09/clip03.opus b/assets/audio/voice-keychain/dir09/clip03.opus new file mode 100644 index 0000000..d087bcb Binary files /dev/null and b/assets/audio/voice-keychain/dir09/clip03.opus differ diff --git a/assets/audio/voice-keychain/dir09/clip04.opus b/assets/audio/voice-keychain/dir09/clip04.opus new file mode 100644 index 0000000..3b4c3a5 Binary files /dev/null and b/assets/audio/voice-keychain/dir09/clip04.opus differ diff --git a/assets/audio/voice-keychain/dir09/clip05.opus b/assets/audio/voice-keychain/dir09/clip05.opus new file mode 100644 index 0000000..b1ae341 Binary files /dev/null and b/assets/audio/voice-keychain/dir09/clip05.opus differ diff --git a/assets/audio/voice-keychain/dir09/clip06.opus b/assets/audio/voice-keychain/dir09/clip06.opus new file mode 100644 index 0000000..810bd20 Binary files /dev/null and b/assets/audio/voice-keychain/dir09/clip06.opus differ diff --git a/assets/audio/voice-keychain/dir09/clip07.opus b/assets/audio/voice-keychain/dir09/clip07.opus new file mode 100644 index 0000000..7e83e98 Binary files /dev/null and b/assets/audio/voice-keychain/dir09/clip07.opus differ diff --git a/assets/audio/voice-keychain/dir09/clip08.opus b/assets/audio/voice-keychain/dir09/clip08.opus new file mode 100644 index 0000000..e9413cb Binary files /dev/null and b/assets/audio/voice-keychain/dir09/clip08.opus differ diff --git a/assets/audio/voice-keychain/dir09/clip09.opus b/assets/audio/voice-keychain/dir09/clip09.opus new file mode 100644 index 0000000..e005792 Binary files /dev/null and b/assets/audio/voice-keychain/dir09/clip09.opus differ diff --git a/assets/audio/voice-keychain/dir09/clip10.opus b/assets/audio/voice-keychain/dir09/clip10.opus new file mode 100644 index 0000000..1af6f59 Binary files /dev/null and b/assets/audio/voice-keychain/dir09/clip10.opus differ diff --git a/assets/audio/voice-keychain/dir09/clip13.opus b/assets/audio/voice-keychain/dir09/clip13.opus new file mode 100644 index 0000000..62a55fe Binary files /dev/null and b/assets/audio/voice-keychain/dir09/clip13.opus differ diff --git a/assets/audio/voice-keychain/dir09/clip15.opus b/assets/audio/voice-keychain/dir09/clip15.opus new file mode 100644 index 0000000..3c6df9c Binary files /dev/null and b/assets/audio/voice-keychain/dir09/clip15.opus differ diff --git a/assets/audio/voice-keychain/dir09/clip18.opus b/assets/audio/voice-keychain/dir09/clip18.opus new file mode 100644 index 0000000..a6cc658 Binary files /dev/null and b/assets/audio/voice-keychain/dir09/clip18.opus differ diff --git a/assets/audio/voice-keychain/dir09/clip22.opus b/assets/audio/voice-keychain/dir09/clip22.opus new file mode 100644 index 0000000..e1363b7 Binary files /dev/null and b/assets/audio/voice-keychain/dir09/clip22.opus differ diff --git a/assets/audio/voice-keychain/dir09/clip23.opus b/assets/audio/voice-keychain/dir09/clip23.opus new file mode 100644 index 0000000..2399a89 Binary files /dev/null and b/assets/audio/voice-keychain/dir09/clip23.opus differ diff --git a/assets/audio/voice-keychain/dir09/clip24.opus b/assets/audio/voice-keychain/dir09/clip24.opus new file mode 100644 index 0000000..b0c211f Binary files /dev/null and b/assets/audio/voice-keychain/dir09/clip24.opus differ diff --git a/assets/audio/voice-keychain/dir09/clip26.opus b/assets/audio/voice-keychain/dir09/clip26.opus new file mode 100644 index 0000000..5c3fde0 Binary files /dev/null and b/assets/audio/voice-keychain/dir09/clip26.opus differ diff --git a/assets/audio/voice-keychain/dir09/clip28.opus b/assets/audio/voice-keychain/dir09/clip28.opus new file mode 100644 index 0000000..6788856 Binary files /dev/null and b/assets/audio/voice-keychain/dir09/clip28.opus differ diff --git a/assets/audio/voice-keychain/dir09/clip29.opus b/assets/audio/voice-keychain/dir09/clip29.opus new file mode 100644 index 0000000..dac3f9b Binary files /dev/null and b/assets/audio/voice-keychain/dir09/clip29.opus differ diff --git a/assets/audio/voice-keychain/dir09/clip30.opus b/assets/audio/voice-keychain/dir09/clip30.opus new file mode 100644 index 0000000..f7e1adc Binary files /dev/null and b/assets/audio/voice-keychain/dir09/clip30.opus differ diff --git a/assets/audio/voice-keychain/dir09/clip31.opus b/assets/audio/voice-keychain/dir09/clip31.opus new file mode 100644 index 0000000..8703663 Binary files /dev/null and b/assets/audio/voice-keychain/dir09/clip31.opus differ diff --git a/assets/audio/voice-keychain/dir09/clip32.opus b/assets/audio/voice-keychain/dir09/clip32.opus new file mode 100644 index 0000000..ef742d3 Binary files /dev/null and b/assets/audio/voice-keychain/dir09/clip32.opus differ diff --git a/assets/audio/voice-keychain/dir09/clip33.opus b/assets/audio/voice-keychain/dir09/clip33.opus new file mode 100644 index 0000000..92b34c0 Binary files /dev/null and b/assets/audio/voice-keychain/dir09/clip33.opus differ diff --git a/assets/audio/voice-keychain/dir09/clip34.opus b/assets/audio/voice-keychain/dir09/clip34.opus new file mode 100644 index 0000000..0fb5a37 Binary files /dev/null and b/assets/audio/voice-keychain/dir09/clip34.opus differ diff --git a/assets/audio/voice-keychain/dir09/clip35.opus b/assets/audio/voice-keychain/dir09/clip35.opus new file mode 100644 index 0000000..25d8f8e Binary files /dev/null and b/assets/audio/voice-keychain/dir09/clip35.opus differ diff --git a/assets/audio/voice-keychain/dir09/clip36.opus b/assets/audio/voice-keychain/dir09/clip36.opus new file mode 100644 index 0000000..f65abfd Binary files /dev/null and b/assets/audio/voice-keychain/dir09/clip36.opus differ diff --git a/assets/audio/voice-keychain/dir09/clip40.opus b/assets/audio/voice-keychain/dir09/clip40.opus new file mode 100644 index 0000000..e595b45 Binary files /dev/null and b/assets/audio/voice-keychain/dir09/clip40.opus differ diff --git a/assets/audio/voice-keychain/dir10/clip00.opus b/assets/audio/voice-keychain/dir10/clip00.opus new file mode 100644 index 0000000..48bfec6 Binary files /dev/null and b/assets/audio/voice-keychain/dir10/clip00.opus differ diff --git a/assets/audio/voice-keychain/dir10/clip01.opus b/assets/audio/voice-keychain/dir10/clip01.opus new file mode 100644 index 0000000..9d20ce8 Binary files /dev/null and b/assets/audio/voice-keychain/dir10/clip01.opus differ diff --git a/assets/audio/voice-keychain/dir10/clip02.opus b/assets/audio/voice-keychain/dir10/clip02.opus new file mode 100644 index 0000000..30c9580 Binary files /dev/null and b/assets/audio/voice-keychain/dir10/clip02.opus differ diff --git a/assets/audio/voice-keychain/dir10/clip03.opus b/assets/audio/voice-keychain/dir10/clip03.opus new file mode 100644 index 0000000..9a87c75 Binary files /dev/null and b/assets/audio/voice-keychain/dir10/clip03.opus differ diff --git a/assets/audio/voice-keychain/dir10/clip04.opus b/assets/audio/voice-keychain/dir10/clip04.opus new file mode 100644 index 0000000..c74a629 Binary files /dev/null and b/assets/audio/voice-keychain/dir10/clip04.opus differ diff --git a/assets/audio/voice-keychain/dir10/clip05.opus b/assets/audio/voice-keychain/dir10/clip05.opus new file mode 100644 index 0000000..80b56d3 Binary files /dev/null and b/assets/audio/voice-keychain/dir10/clip05.opus differ diff --git a/assets/audio/voice-keychain/dir10/clip06.opus b/assets/audio/voice-keychain/dir10/clip06.opus new file mode 100644 index 0000000..27b8953 Binary files /dev/null and b/assets/audio/voice-keychain/dir10/clip06.opus differ diff --git a/assets/audio/voice-keychain/dir10/clip07.opus b/assets/audio/voice-keychain/dir10/clip07.opus new file mode 100644 index 0000000..8b09825 Binary files /dev/null and b/assets/audio/voice-keychain/dir10/clip07.opus differ diff --git a/assets/audio/voice-keychain/dir10/clip08.opus b/assets/audio/voice-keychain/dir10/clip08.opus new file mode 100644 index 0000000..37e045f Binary files /dev/null and b/assets/audio/voice-keychain/dir10/clip08.opus differ diff --git a/assets/audio/voice-keychain/dir10/clip09.opus b/assets/audio/voice-keychain/dir10/clip09.opus new file mode 100644 index 0000000..9f65667 Binary files /dev/null and b/assets/audio/voice-keychain/dir10/clip09.opus differ diff --git a/assets/audio/voice-keychain/dir10/clip10.opus b/assets/audio/voice-keychain/dir10/clip10.opus new file mode 100644 index 0000000..8f9d1ab Binary files /dev/null and b/assets/audio/voice-keychain/dir10/clip10.opus differ diff --git a/assets/audio/voice-keychain/dir10/clip11.opus b/assets/audio/voice-keychain/dir10/clip11.opus new file mode 100644 index 0000000..68af2ca Binary files /dev/null and b/assets/audio/voice-keychain/dir10/clip11.opus differ diff --git a/assets/audio/voice-keychain/dir10/clip12.opus b/assets/audio/voice-keychain/dir10/clip12.opus new file mode 100644 index 0000000..79209f7 Binary files /dev/null and b/assets/audio/voice-keychain/dir10/clip12.opus differ diff --git a/assets/audio/voice-keychain/dir10/clip13.opus b/assets/audio/voice-keychain/dir10/clip13.opus new file mode 100644 index 0000000..b1541b5 Binary files /dev/null and b/assets/audio/voice-keychain/dir10/clip13.opus differ diff --git a/assets/audio/voice-keychain/dir10/clip14.opus b/assets/audio/voice-keychain/dir10/clip14.opus new file mode 100644 index 0000000..644fdd2 Binary files /dev/null and b/assets/audio/voice-keychain/dir10/clip14.opus differ diff --git a/assets/audio/voice-keychain/dir10/clip15.opus b/assets/audio/voice-keychain/dir10/clip15.opus new file mode 100644 index 0000000..7afa362 Binary files /dev/null and b/assets/audio/voice-keychain/dir10/clip15.opus differ diff --git a/assets/audio/voice-keychain/dir10/clip16.opus b/assets/audio/voice-keychain/dir10/clip16.opus new file mode 100644 index 0000000..8227e87 Binary files /dev/null and b/assets/audio/voice-keychain/dir10/clip16.opus differ diff --git a/assets/audio/voice-keychain/dir10/clip17.opus b/assets/audio/voice-keychain/dir10/clip17.opus new file mode 100644 index 0000000..297de1f Binary files /dev/null and b/assets/audio/voice-keychain/dir10/clip17.opus differ diff --git a/assets/audio/voice-keychain/dir10/clip18.opus b/assets/audio/voice-keychain/dir10/clip18.opus new file mode 100644 index 0000000..e417db6 Binary files /dev/null and b/assets/audio/voice-keychain/dir10/clip18.opus differ diff --git a/assets/audio/voice-keychain/dir10/clip19.opus b/assets/audio/voice-keychain/dir10/clip19.opus new file mode 100644 index 0000000..0804ce7 Binary files /dev/null and b/assets/audio/voice-keychain/dir10/clip19.opus differ diff --git a/assets/audio/voice-keychain/dir10/clip20.opus b/assets/audio/voice-keychain/dir10/clip20.opus new file mode 100644 index 0000000..681eb76 Binary files /dev/null and b/assets/audio/voice-keychain/dir10/clip20.opus differ diff --git a/assets/audio/voice-keychain/dir10/clip21.opus b/assets/audio/voice-keychain/dir10/clip21.opus new file mode 100644 index 0000000..587a810 Binary files /dev/null and b/assets/audio/voice-keychain/dir10/clip21.opus differ diff --git a/assets/audio/voice-keychain/dir10/clip22.opus b/assets/audio/voice-keychain/dir10/clip22.opus new file mode 100644 index 0000000..1862f1a Binary files /dev/null and b/assets/audio/voice-keychain/dir10/clip22.opus differ diff --git a/assets/audio/voice-keychain/dir10/clip23.opus b/assets/audio/voice-keychain/dir10/clip23.opus new file mode 100644 index 0000000..5cc6248 Binary files /dev/null and b/assets/audio/voice-keychain/dir10/clip23.opus differ diff --git a/assets/audio/voice-keychain/dir10/clip24.opus b/assets/audio/voice-keychain/dir10/clip24.opus new file mode 100644 index 0000000..857e481 Binary files /dev/null and b/assets/audio/voice-keychain/dir10/clip24.opus differ diff --git a/assets/audio/voice-keychain/dir10/clip25.opus b/assets/audio/voice-keychain/dir10/clip25.opus new file mode 100644 index 0000000..9b8fa24 Binary files /dev/null and b/assets/audio/voice-keychain/dir10/clip25.opus differ diff --git a/assets/audio/voice-keychain/dir10/clip26.opus b/assets/audio/voice-keychain/dir10/clip26.opus new file mode 100644 index 0000000..1be7167 Binary files /dev/null and b/assets/audio/voice-keychain/dir10/clip26.opus differ diff --git a/assets/audio/voice-keychain/dir10/clip27.opus b/assets/audio/voice-keychain/dir10/clip27.opus new file mode 100644 index 0000000..84060c6 Binary files /dev/null and b/assets/audio/voice-keychain/dir10/clip27.opus differ diff --git a/assets/audio/voice-keychain/dir10/clip28.opus b/assets/audio/voice-keychain/dir10/clip28.opus new file mode 100644 index 0000000..06ef5f6 Binary files /dev/null and b/assets/audio/voice-keychain/dir10/clip28.opus differ diff --git a/assets/audio/voice-keychain/dir10/clip29.opus b/assets/audio/voice-keychain/dir10/clip29.opus new file mode 100644 index 0000000..b828e03 Binary files /dev/null and b/assets/audio/voice-keychain/dir10/clip29.opus differ diff --git a/assets/audio/voice-keychain/dir10/clip30.opus b/assets/audio/voice-keychain/dir10/clip30.opus new file mode 100644 index 0000000..0824db6 Binary files /dev/null and b/assets/audio/voice-keychain/dir10/clip30.opus differ diff --git a/assets/audio/voice-keychain/dir10/clip31.opus b/assets/audio/voice-keychain/dir10/clip31.opus new file mode 100644 index 0000000..4223deb Binary files /dev/null and b/assets/audio/voice-keychain/dir10/clip31.opus differ diff --git a/assets/audio/voice-keychain/dir10/clip32.opus b/assets/audio/voice-keychain/dir10/clip32.opus new file mode 100644 index 0000000..153e104 Binary files /dev/null and b/assets/audio/voice-keychain/dir10/clip32.opus differ diff --git a/assets/audio/voice-keychain/dir10/clip33.opus b/assets/audio/voice-keychain/dir10/clip33.opus new file mode 100644 index 0000000..25de382 Binary files /dev/null and b/assets/audio/voice-keychain/dir10/clip33.opus differ diff --git a/assets/audio/voice-keychain/dir10/clip34.opus b/assets/audio/voice-keychain/dir10/clip34.opus new file mode 100644 index 0000000..4228dc5 Binary files /dev/null and b/assets/audio/voice-keychain/dir10/clip34.opus differ diff --git a/assets/audio/voice-keychain/dir10/clip35.opus b/assets/audio/voice-keychain/dir10/clip35.opus new file mode 100644 index 0000000..d310189 Binary files /dev/null and b/assets/audio/voice-keychain/dir10/clip35.opus differ diff --git a/assets/audio/voice-keychain/dir10/clip36.opus b/assets/audio/voice-keychain/dir10/clip36.opus new file mode 100644 index 0000000..7417bca Binary files /dev/null and b/assets/audio/voice-keychain/dir10/clip36.opus differ diff --git a/assets/audio/voice-keychain/dir10/clip37.opus b/assets/audio/voice-keychain/dir10/clip37.opus new file mode 100644 index 0000000..85689d5 Binary files /dev/null and b/assets/audio/voice-keychain/dir10/clip37.opus differ diff --git a/assets/audio/voice-keychain/dir10/clip38.opus b/assets/audio/voice-keychain/dir10/clip38.opus new file mode 100644 index 0000000..5837fc4 Binary files /dev/null and b/assets/audio/voice-keychain/dir10/clip38.opus differ diff --git a/assets/audio/voice-keychain/dir10/clip39.opus b/assets/audio/voice-keychain/dir10/clip39.opus new file mode 100644 index 0000000..2d448e4 Binary files /dev/null and b/assets/audio/voice-keychain/dir10/clip39.opus differ diff --git a/assets/audio/voice-keychain/dir10/clip40.opus b/assets/audio/voice-keychain/dir10/clip40.opus new file mode 100644 index 0000000..08ff260 Binary files /dev/null and b/assets/audio/voice-keychain/dir10/clip40.opus differ diff --git a/assets/audio/voice-keychain/dir10/clip41.opus b/assets/audio/voice-keychain/dir10/clip41.opus new file mode 100644 index 0000000..04a0f77 Binary files /dev/null and b/assets/audio/voice-keychain/dir10/clip41.opus differ diff --git a/assets/audio/voice-keychain/dir11/clip00.opus b/assets/audio/voice-keychain/dir11/clip00.opus new file mode 100644 index 0000000..f42ef7a Binary files /dev/null and b/assets/audio/voice-keychain/dir11/clip00.opus differ diff --git a/assets/audio/voice-keychain/dir11/clip01.opus b/assets/audio/voice-keychain/dir11/clip01.opus new file mode 100644 index 0000000..7c0f254 Binary files /dev/null and b/assets/audio/voice-keychain/dir11/clip01.opus differ diff --git a/assets/audio/voice-keychain/dir11/clip02.opus b/assets/audio/voice-keychain/dir11/clip02.opus new file mode 100644 index 0000000..4b01baa Binary files /dev/null and b/assets/audio/voice-keychain/dir11/clip02.opus differ diff --git a/assets/audio/voice-keychain/dir11/clip03.opus b/assets/audio/voice-keychain/dir11/clip03.opus new file mode 100644 index 0000000..0b99f9a Binary files /dev/null and b/assets/audio/voice-keychain/dir11/clip03.opus differ diff --git a/assets/audio/voice-keychain/dir11/clip04.opus b/assets/audio/voice-keychain/dir11/clip04.opus new file mode 100644 index 0000000..f585e90 Binary files /dev/null and b/assets/audio/voice-keychain/dir11/clip04.opus differ diff --git a/assets/audio/voice-keychain/dir11/clip05.opus b/assets/audio/voice-keychain/dir11/clip05.opus new file mode 100644 index 0000000..a711c92 Binary files /dev/null and b/assets/audio/voice-keychain/dir11/clip05.opus differ diff --git a/assets/audio/voice-keychain/dir11/clip07.opus b/assets/audio/voice-keychain/dir11/clip07.opus new file mode 100644 index 0000000..d33bf3b Binary files /dev/null and b/assets/audio/voice-keychain/dir11/clip07.opus differ diff --git a/assets/audio/voice-keychain/dir11/clip09.opus b/assets/audio/voice-keychain/dir11/clip09.opus new file mode 100644 index 0000000..332aaca Binary files /dev/null and b/assets/audio/voice-keychain/dir11/clip09.opus differ diff --git a/assets/audio/voice-keychain/dir11/clip10.opus b/assets/audio/voice-keychain/dir11/clip10.opus new file mode 100644 index 0000000..bc59417 Binary files /dev/null and b/assets/audio/voice-keychain/dir11/clip10.opus differ diff --git a/assets/audio/voice-keychain/dir11/clip11.opus b/assets/audio/voice-keychain/dir11/clip11.opus new file mode 100644 index 0000000..e61c358 Binary files /dev/null and b/assets/audio/voice-keychain/dir11/clip11.opus differ diff --git a/assets/audio/voice-keychain/dir11/clip12.opus b/assets/audio/voice-keychain/dir11/clip12.opus new file mode 100644 index 0000000..9778a86 Binary files /dev/null and b/assets/audio/voice-keychain/dir11/clip12.opus differ diff --git a/assets/audio/voice-keychain/dir11/clip13.opus b/assets/audio/voice-keychain/dir11/clip13.opus new file mode 100644 index 0000000..6a2be18 Binary files /dev/null and b/assets/audio/voice-keychain/dir11/clip13.opus differ diff --git a/assets/audio/voice-keychain/dir11/clip14.opus b/assets/audio/voice-keychain/dir11/clip14.opus new file mode 100644 index 0000000..4a88f9d Binary files /dev/null and b/assets/audio/voice-keychain/dir11/clip14.opus differ diff --git a/assets/audio/voice-keychain/dir11/clip16.opus b/assets/audio/voice-keychain/dir11/clip16.opus new file mode 100644 index 0000000..ef29957 Binary files /dev/null and b/assets/audio/voice-keychain/dir11/clip16.opus differ diff --git a/assets/audio/voice-keychain/dir11/clip17.opus b/assets/audio/voice-keychain/dir11/clip17.opus new file mode 100644 index 0000000..032d66a Binary files /dev/null and b/assets/audio/voice-keychain/dir11/clip17.opus differ diff --git a/assets/audio/voice-keychain/dir11/clip18.opus b/assets/audio/voice-keychain/dir11/clip18.opus new file mode 100644 index 0000000..3dc1a9c Binary files /dev/null and b/assets/audio/voice-keychain/dir11/clip18.opus differ diff --git a/assets/audio/voice-keychain/dir11/clip19.opus b/assets/audio/voice-keychain/dir11/clip19.opus new file mode 100644 index 0000000..6d1ccfb Binary files /dev/null and b/assets/audio/voice-keychain/dir11/clip19.opus differ diff --git a/assets/audio/voice-keychain/dir11/clip20.opus b/assets/audio/voice-keychain/dir11/clip20.opus new file mode 100644 index 0000000..f17461d Binary files /dev/null and b/assets/audio/voice-keychain/dir11/clip20.opus differ diff --git a/assets/audio/voice-keychain/dir11/clip21.opus b/assets/audio/voice-keychain/dir11/clip21.opus new file mode 100644 index 0000000..521e5d5 Binary files /dev/null and b/assets/audio/voice-keychain/dir11/clip21.opus differ diff --git a/assets/audio/voice-keychain/dir11/clip24.opus b/assets/audio/voice-keychain/dir11/clip24.opus new file mode 100644 index 0000000..1b3014a Binary files /dev/null and b/assets/audio/voice-keychain/dir11/clip24.opus differ diff --git a/assets/audio/voice-keychain/dir11/clip25.opus b/assets/audio/voice-keychain/dir11/clip25.opus new file mode 100644 index 0000000..19e8279 Binary files /dev/null and b/assets/audio/voice-keychain/dir11/clip25.opus differ diff --git a/assets/audio/voice-keychain/dir11/clip26.opus b/assets/audio/voice-keychain/dir11/clip26.opus new file mode 100644 index 0000000..cba5b49 Binary files /dev/null and b/assets/audio/voice-keychain/dir11/clip26.opus differ diff --git a/assets/audio/voice-keychain/dir11/clip27.opus b/assets/audio/voice-keychain/dir11/clip27.opus new file mode 100644 index 0000000..266c306 Binary files /dev/null and b/assets/audio/voice-keychain/dir11/clip27.opus differ diff --git a/assets/audio/voice-keychain/dir11/clip28.opus b/assets/audio/voice-keychain/dir11/clip28.opus new file mode 100644 index 0000000..d2d5b09 Binary files /dev/null and b/assets/audio/voice-keychain/dir11/clip28.opus differ diff --git a/assets/audio/voice-keychain/dir11/clip29.opus b/assets/audio/voice-keychain/dir11/clip29.opus new file mode 100644 index 0000000..699f83a Binary files /dev/null and b/assets/audio/voice-keychain/dir11/clip29.opus differ diff --git a/assets/audio/voice-keychain/dir12/clip00.opus b/assets/audio/voice-keychain/dir12/clip00.opus new file mode 100644 index 0000000..1edef0e Binary files /dev/null and b/assets/audio/voice-keychain/dir12/clip00.opus differ diff --git a/assets/audio/voice-keychain/dir12/clip01.opus b/assets/audio/voice-keychain/dir12/clip01.opus new file mode 100644 index 0000000..cab3419 Binary files /dev/null and b/assets/audio/voice-keychain/dir12/clip01.opus differ diff --git a/assets/audio/voice-keychain/dir12/clip02.opus b/assets/audio/voice-keychain/dir12/clip02.opus new file mode 100644 index 0000000..8f3b0ef Binary files /dev/null and b/assets/audio/voice-keychain/dir12/clip02.opus differ diff --git a/assets/audio/voice-keychain/dir12/clip03.opus b/assets/audio/voice-keychain/dir12/clip03.opus new file mode 100644 index 0000000..2446ea3 Binary files /dev/null and b/assets/audio/voice-keychain/dir12/clip03.opus differ diff --git a/assets/audio/voice-keychain/dir12/clip04.opus b/assets/audio/voice-keychain/dir12/clip04.opus new file mode 100644 index 0000000..24577f7 Binary files /dev/null and b/assets/audio/voice-keychain/dir12/clip04.opus differ diff --git a/assets/audio/voice-keychain/dir12/clip05.opus b/assets/audio/voice-keychain/dir12/clip05.opus new file mode 100644 index 0000000..ee50947 Binary files /dev/null and b/assets/audio/voice-keychain/dir12/clip05.opus differ diff --git a/assets/audio/voice-keychain/dir12/clip06.opus b/assets/audio/voice-keychain/dir12/clip06.opus new file mode 100644 index 0000000..4d4d967 Binary files /dev/null and b/assets/audio/voice-keychain/dir12/clip06.opus differ diff --git a/assets/audio/voice-keychain/dir12/clip07.opus b/assets/audio/voice-keychain/dir12/clip07.opus new file mode 100644 index 0000000..8eaa944 Binary files /dev/null and b/assets/audio/voice-keychain/dir12/clip07.opus differ diff --git a/assets/audio/voice-keychain/dir12/clip08.opus b/assets/audio/voice-keychain/dir12/clip08.opus new file mode 100644 index 0000000..60eb5a9 Binary files /dev/null and b/assets/audio/voice-keychain/dir12/clip08.opus differ diff --git a/assets/audio/voice-keychain/dir12/clip09.opus b/assets/audio/voice-keychain/dir12/clip09.opus new file mode 100644 index 0000000..6356226 Binary files /dev/null and b/assets/audio/voice-keychain/dir12/clip09.opus differ diff --git a/assets/audio/voice-keychain/dir12/clip10.opus b/assets/audio/voice-keychain/dir12/clip10.opus new file mode 100644 index 0000000..080a5be Binary files /dev/null and b/assets/audio/voice-keychain/dir12/clip10.opus differ diff --git a/assets/audio/voice-keychain/dir12/clip11.opus b/assets/audio/voice-keychain/dir12/clip11.opus new file mode 100644 index 0000000..4fbe9b9 Binary files /dev/null and b/assets/audio/voice-keychain/dir12/clip11.opus differ diff --git a/assets/audio/voice-keychain/dir12/clip12.opus b/assets/audio/voice-keychain/dir12/clip12.opus new file mode 100644 index 0000000..677df05 Binary files /dev/null and b/assets/audio/voice-keychain/dir12/clip12.opus differ diff --git a/assets/audio/voice-keychain/dir12/clip13.opus b/assets/audio/voice-keychain/dir12/clip13.opus new file mode 100644 index 0000000..5313aea Binary files /dev/null and b/assets/audio/voice-keychain/dir12/clip13.opus differ diff --git a/assets/audio/voice-keychain/dir12/clip14.opus b/assets/audio/voice-keychain/dir12/clip14.opus new file mode 100644 index 0000000..bcd97f0 Binary files /dev/null and b/assets/audio/voice-keychain/dir12/clip14.opus differ diff --git a/assets/audio/voice-keychain/dir12/clip15.opus b/assets/audio/voice-keychain/dir12/clip15.opus new file mode 100644 index 0000000..120705c Binary files /dev/null and b/assets/audio/voice-keychain/dir12/clip15.opus differ diff --git a/assets/audio/voice-keychain/dir12/clip16.opus b/assets/audio/voice-keychain/dir12/clip16.opus new file mode 100644 index 0000000..796d96e Binary files /dev/null and b/assets/audio/voice-keychain/dir12/clip16.opus differ diff --git a/assets/audio/voice-keychain/dir12/clip17.opus b/assets/audio/voice-keychain/dir12/clip17.opus new file mode 100644 index 0000000..d52edde Binary files /dev/null and b/assets/audio/voice-keychain/dir12/clip17.opus differ diff --git a/assets/audio/voice-keychain/dir12/clip18.opus b/assets/audio/voice-keychain/dir12/clip18.opus new file mode 100644 index 0000000..5477ad5 Binary files /dev/null and b/assets/audio/voice-keychain/dir12/clip18.opus differ diff --git a/assets/audio/voice-keychain/dir12/clip19.opus b/assets/audio/voice-keychain/dir12/clip19.opus new file mode 100644 index 0000000..c9b76b9 Binary files /dev/null and b/assets/audio/voice-keychain/dir12/clip19.opus differ diff --git a/assets/audio/voice-keychain/dir12/clip22.opus b/assets/audio/voice-keychain/dir12/clip22.opus new file mode 100644 index 0000000..078eb83 Binary files /dev/null and b/assets/audio/voice-keychain/dir12/clip22.opus differ diff --git a/assets/audio/voice-keychain/dir12/clip23.opus b/assets/audio/voice-keychain/dir12/clip23.opus new file mode 100644 index 0000000..193f407 Binary files /dev/null and b/assets/audio/voice-keychain/dir12/clip23.opus differ diff --git a/assets/audio/voice-keychain/dir12/clip24.opus b/assets/audio/voice-keychain/dir12/clip24.opus new file mode 100644 index 0000000..e1a82de Binary files /dev/null and b/assets/audio/voice-keychain/dir12/clip24.opus differ diff --git a/assets/audio/voice-keychain/dir12/clip26.opus b/assets/audio/voice-keychain/dir12/clip26.opus new file mode 100644 index 0000000..604c757 Binary files /dev/null and b/assets/audio/voice-keychain/dir12/clip26.opus differ diff --git a/assets/audio/voice-keychain/dir12/clip27.opus b/assets/audio/voice-keychain/dir12/clip27.opus new file mode 100644 index 0000000..2eee4e6 Binary files /dev/null and b/assets/audio/voice-keychain/dir12/clip27.opus differ diff --git a/assets/audio/voice-keychain/dir12/clip28.opus b/assets/audio/voice-keychain/dir12/clip28.opus new file mode 100644 index 0000000..94755ca Binary files /dev/null and b/assets/audio/voice-keychain/dir12/clip28.opus differ diff --git a/assets/audio/voice-keychain/dir12/clip29.opus b/assets/audio/voice-keychain/dir12/clip29.opus new file mode 100644 index 0000000..b94ea6f Binary files /dev/null and b/assets/audio/voice-keychain/dir12/clip29.opus differ diff --git a/assets/audio/voice-keychain/dir12/clip30.opus b/assets/audio/voice-keychain/dir12/clip30.opus new file mode 100644 index 0000000..10efad8 Binary files /dev/null and b/assets/audio/voice-keychain/dir12/clip30.opus differ diff --git a/assets/audio/voice-keychain/dir12/clip31.opus b/assets/audio/voice-keychain/dir12/clip31.opus new file mode 100644 index 0000000..6f3b561 Binary files /dev/null and b/assets/audio/voice-keychain/dir12/clip31.opus differ diff --git a/assets/audio/voice-keychain/dir12/clip32.opus b/assets/audio/voice-keychain/dir12/clip32.opus new file mode 100644 index 0000000..d18dbfd Binary files /dev/null and b/assets/audio/voice-keychain/dir12/clip32.opus differ diff --git a/assets/audio/voice-keychain/dir12/clip33.opus b/assets/audio/voice-keychain/dir12/clip33.opus new file mode 100644 index 0000000..45df908 Binary files /dev/null and b/assets/audio/voice-keychain/dir12/clip33.opus differ diff --git a/assets/audio/voice-keychain/dir12/clip34.opus b/assets/audio/voice-keychain/dir12/clip34.opus new file mode 100644 index 0000000..bcb2d26 Binary files /dev/null and b/assets/audio/voice-keychain/dir12/clip34.opus differ diff --git a/assets/audio/voice-keychain/dir12/clip35.opus b/assets/audio/voice-keychain/dir12/clip35.opus new file mode 100644 index 0000000..ea24b8c Binary files /dev/null and b/assets/audio/voice-keychain/dir12/clip35.opus differ diff --git a/assets/audio/voice-keychain/dir12/clip36.opus b/assets/audio/voice-keychain/dir12/clip36.opus new file mode 100644 index 0000000..dffa2aa Binary files /dev/null and b/assets/audio/voice-keychain/dir12/clip36.opus differ diff --git a/assets/audio/voice-keychain/dir12/clip37.opus b/assets/audio/voice-keychain/dir12/clip37.opus new file mode 100644 index 0000000..632708d Binary files /dev/null and b/assets/audio/voice-keychain/dir12/clip37.opus differ diff --git a/assets/audio/voice-keychain/dir12/clip38.opus b/assets/audio/voice-keychain/dir12/clip38.opus new file mode 100644 index 0000000..0fde408 Binary files /dev/null and b/assets/audio/voice-keychain/dir12/clip38.opus differ diff --git a/assets/audio/voice-keychain/dir12/clip39.opus b/assets/audio/voice-keychain/dir12/clip39.opus new file mode 100644 index 0000000..98613e6 Binary files /dev/null and b/assets/audio/voice-keychain/dir12/clip39.opus differ diff --git a/assets/audio/voice-keychain/dir12/clip40.opus b/assets/audio/voice-keychain/dir12/clip40.opus new file mode 100644 index 0000000..d679187 Binary files /dev/null and b/assets/audio/voice-keychain/dir12/clip40.opus differ diff --git a/assets/audio/voice-keychain/dir12/clip41.opus b/assets/audio/voice-keychain/dir12/clip41.opus new file mode 100644 index 0000000..0b0fea6 Binary files /dev/null and b/assets/audio/voice-keychain/dir12/clip41.opus differ diff --git a/assets/audio/voice-keychain/dir13/clip00.opus b/assets/audio/voice-keychain/dir13/clip00.opus new file mode 100644 index 0000000..f57dc7e Binary files /dev/null and b/assets/audio/voice-keychain/dir13/clip00.opus differ diff --git a/assets/audio/voice-keychain/dir13/clip01.opus b/assets/audio/voice-keychain/dir13/clip01.opus new file mode 100644 index 0000000..e033c51 Binary files /dev/null and b/assets/audio/voice-keychain/dir13/clip01.opus differ diff --git a/assets/audio/voice-keychain/dir13/clip02.opus b/assets/audio/voice-keychain/dir13/clip02.opus new file mode 100644 index 0000000..ed567eb Binary files /dev/null and b/assets/audio/voice-keychain/dir13/clip02.opus differ diff --git a/assets/audio/voice-keychain/dir13/clip04.opus b/assets/audio/voice-keychain/dir13/clip04.opus new file mode 100644 index 0000000..6626661 Binary files /dev/null and b/assets/audio/voice-keychain/dir13/clip04.opus differ diff --git a/assets/audio/voice-keychain/dir13/clip05.opus b/assets/audio/voice-keychain/dir13/clip05.opus new file mode 100644 index 0000000..bac05d7 Binary files /dev/null and b/assets/audio/voice-keychain/dir13/clip05.opus differ diff --git a/assets/audio/voice-keychain/dir13/clip06.opus b/assets/audio/voice-keychain/dir13/clip06.opus new file mode 100644 index 0000000..d2708ba Binary files /dev/null and b/assets/audio/voice-keychain/dir13/clip06.opus differ diff --git a/assets/audio/voice-keychain/dir13/clip07.opus b/assets/audio/voice-keychain/dir13/clip07.opus new file mode 100644 index 0000000..67d9bb5 Binary files /dev/null and b/assets/audio/voice-keychain/dir13/clip07.opus differ diff --git a/assets/audio/voice-keychain/dir13/clip08.opus b/assets/audio/voice-keychain/dir13/clip08.opus new file mode 100644 index 0000000..98ca261 Binary files /dev/null and b/assets/audio/voice-keychain/dir13/clip08.opus differ diff --git a/assets/audio/voice-keychain/dir13/clip09.opus b/assets/audio/voice-keychain/dir13/clip09.opus new file mode 100644 index 0000000..d3978ea Binary files /dev/null and b/assets/audio/voice-keychain/dir13/clip09.opus differ diff --git a/assets/audio/voice-keychain/dir13/clip10.opus b/assets/audio/voice-keychain/dir13/clip10.opus new file mode 100644 index 0000000..848c7f1 Binary files /dev/null and b/assets/audio/voice-keychain/dir13/clip10.opus differ diff --git a/assets/audio/voice-keychain/dir13/clip11.opus b/assets/audio/voice-keychain/dir13/clip11.opus new file mode 100644 index 0000000..df6fd77 Binary files /dev/null and b/assets/audio/voice-keychain/dir13/clip11.opus differ diff --git a/assets/audio/voice-keychain/dir13/clip12.opus b/assets/audio/voice-keychain/dir13/clip12.opus new file mode 100644 index 0000000..b2b9afb Binary files /dev/null and b/assets/audio/voice-keychain/dir13/clip12.opus differ diff --git a/assets/audio/voice-keychain/dir13/clip13.opus b/assets/audio/voice-keychain/dir13/clip13.opus new file mode 100644 index 0000000..72a0066 Binary files /dev/null and b/assets/audio/voice-keychain/dir13/clip13.opus differ diff --git a/assets/audio/voice-keychain/dir13/clip14.opus b/assets/audio/voice-keychain/dir13/clip14.opus new file mode 100644 index 0000000..2d11fdd Binary files /dev/null and b/assets/audio/voice-keychain/dir13/clip14.opus differ diff --git a/assets/audio/voice-keychain/dir13/clip15.opus b/assets/audio/voice-keychain/dir13/clip15.opus new file mode 100644 index 0000000..ea6139e Binary files /dev/null and b/assets/audio/voice-keychain/dir13/clip15.opus differ diff --git a/assets/audio/voice-keychain/dir13/clip16.opus b/assets/audio/voice-keychain/dir13/clip16.opus new file mode 100644 index 0000000..2457d52 Binary files /dev/null and b/assets/audio/voice-keychain/dir13/clip16.opus differ diff --git a/assets/audio/voice-keychain/dir13/clip17.opus b/assets/audio/voice-keychain/dir13/clip17.opus new file mode 100644 index 0000000..a4e72ef Binary files /dev/null and b/assets/audio/voice-keychain/dir13/clip17.opus differ diff --git a/assets/audio/voice-keychain/dir13/clip18.opus b/assets/audio/voice-keychain/dir13/clip18.opus new file mode 100644 index 0000000..7abd605 Binary files /dev/null and b/assets/audio/voice-keychain/dir13/clip18.opus differ diff --git a/assets/audio/voice-keychain/dir13/clip19.opus b/assets/audio/voice-keychain/dir13/clip19.opus new file mode 100644 index 0000000..02f2eee Binary files /dev/null and b/assets/audio/voice-keychain/dir13/clip19.opus differ diff --git a/assets/audio/voice-keychain/dir13/clip20.opus b/assets/audio/voice-keychain/dir13/clip20.opus new file mode 100644 index 0000000..fba1030 Binary files /dev/null and b/assets/audio/voice-keychain/dir13/clip20.opus differ diff --git a/assets/audio/voice-keychain/dir13/clip21.opus b/assets/audio/voice-keychain/dir13/clip21.opus new file mode 100644 index 0000000..20feb98 Binary files /dev/null and b/assets/audio/voice-keychain/dir13/clip21.opus differ diff --git a/assets/audio/voice-keychain/dir13/clip22.opus b/assets/audio/voice-keychain/dir13/clip22.opus new file mode 100644 index 0000000..6921e0b Binary files /dev/null and b/assets/audio/voice-keychain/dir13/clip22.opus differ diff --git a/assets/audio/voice-keychain/dir13/clip23.opus b/assets/audio/voice-keychain/dir13/clip23.opus new file mode 100644 index 0000000..8a4bbc7 Binary files /dev/null and b/assets/audio/voice-keychain/dir13/clip23.opus differ diff --git a/assets/audio/voice-keychain/dir13/clip24.opus b/assets/audio/voice-keychain/dir13/clip24.opus new file mode 100644 index 0000000..061af10 Binary files /dev/null and b/assets/audio/voice-keychain/dir13/clip24.opus differ diff --git a/assets/audio/voice-keychain/dir13/clip25.opus b/assets/audio/voice-keychain/dir13/clip25.opus new file mode 100644 index 0000000..b766b33 Binary files /dev/null and b/assets/audio/voice-keychain/dir13/clip25.opus differ diff --git a/assets/audio/voice-keychain/dir13/clip26.opus b/assets/audio/voice-keychain/dir13/clip26.opus new file mode 100644 index 0000000..52402c9 Binary files /dev/null and b/assets/audio/voice-keychain/dir13/clip26.opus differ diff --git a/assets/audio/voice-keychain/dir13/clip27.opus b/assets/audio/voice-keychain/dir13/clip27.opus new file mode 100644 index 0000000..06eafdc Binary files /dev/null and b/assets/audio/voice-keychain/dir13/clip27.opus differ diff --git a/assets/audio/voice-keychain/dir13/clip28.opus b/assets/audio/voice-keychain/dir13/clip28.opus new file mode 100644 index 0000000..fbabe35 Binary files /dev/null and b/assets/audio/voice-keychain/dir13/clip28.opus differ diff --git a/assets/audio/voice-keychain/dir13/clip29.opus b/assets/audio/voice-keychain/dir13/clip29.opus new file mode 100644 index 0000000..074d3a4 Binary files /dev/null and b/assets/audio/voice-keychain/dir13/clip29.opus differ diff --git a/assets/audio/voice-keychain/dir13/clip30.opus b/assets/audio/voice-keychain/dir13/clip30.opus new file mode 100644 index 0000000..8daff40 Binary files /dev/null and b/assets/audio/voice-keychain/dir13/clip30.opus differ diff --git a/assets/audio/voice-keychain/dir13/clip31.opus b/assets/audio/voice-keychain/dir13/clip31.opus new file mode 100644 index 0000000..1011109 Binary files /dev/null and b/assets/audio/voice-keychain/dir13/clip31.opus differ diff --git a/assets/audio/voice-keychain/dir13/clip32.opus b/assets/audio/voice-keychain/dir13/clip32.opus new file mode 100644 index 0000000..5a9a8d9 Binary files /dev/null and b/assets/audio/voice-keychain/dir13/clip32.opus differ diff --git a/assets/audio/voice-keychain/dir13/clip33.opus b/assets/audio/voice-keychain/dir13/clip33.opus new file mode 100644 index 0000000..459a95b Binary files /dev/null and b/assets/audio/voice-keychain/dir13/clip33.opus differ diff --git a/assets/audio/voice-keychain/dir13/clip34.opus b/assets/audio/voice-keychain/dir13/clip34.opus new file mode 100644 index 0000000..d05e53e Binary files /dev/null and b/assets/audio/voice-keychain/dir13/clip34.opus differ diff --git a/assets/audio/voice-keychain/dir13/clip35.opus b/assets/audio/voice-keychain/dir13/clip35.opus new file mode 100644 index 0000000..2fc655c Binary files /dev/null and b/assets/audio/voice-keychain/dir13/clip35.opus differ diff --git a/assets/audio/voice-keychain/dir13/clip36.opus b/assets/audio/voice-keychain/dir13/clip36.opus new file mode 100644 index 0000000..537c456 Binary files /dev/null and b/assets/audio/voice-keychain/dir13/clip36.opus differ diff --git a/assets/audio/voice-keychain/dir13/clip37.opus b/assets/audio/voice-keychain/dir13/clip37.opus new file mode 100644 index 0000000..8bff3a8 Binary files /dev/null and b/assets/audio/voice-keychain/dir13/clip37.opus differ diff --git a/assets/audio/voice-keychain/dir13/clip38.opus b/assets/audio/voice-keychain/dir13/clip38.opus new file mode 100644 index 0000000..b109db5 Binary files /dev/null and b/assets/audio/voice-keychain/dir13/clip38.opus differ diff --git a/assets/audio/voice-keychain/dir13/clip39.opus b/assets/audio/voice-keychain/dir13/clip39.opus new file mode 100644 index 0000000..8466799 Binary files /dev/null and b/assets/audio/voice-keychain/dir13/clip39.opus differ diff --git a/assets/audio/voice-keychain/dir13/clip40.opus b/assets/audio/voice-keychain/dir13/clip40.opus new file mode 100644 index 0000000..5fea505 Binary files /dev/null and b/assets/audio/voice-keychain/dir13/clip40.opus differ diff --git a/assets/audio/voice-keychain/dir13/clip42.opus b/assets/audio/voice-keychain/dir13/clip42.opus new file mode 100644 index 0000000..c22cfc5 Binary files /dev/null and b/assets/audio/voice-keychain/dir13/clip42.opus differ diff --git a/assets/audio/voice-keychain/dir13/clip43.opus b/assets/audio/voice-keychain/dir13/clip43.opus new file mode 100644 index 0000000..d49a126 Binary files /dev/null and b/assets/audio/voice-keychain/dir13/clip43.opus differ diff --git a/assets/audio/voice-keychain/dir13/clip44.opus b/assets/audio/voice-keychain/dir13/clip44.opus new file mode 100644 index 0000000..738f6fc Binary files /dev/null and b/assets/audio/voice-keychain/dir13/clip44.opus differ diff --git a/assets/audio/voice-keychain/dir13/clip45.opus b/assets/audio/voice-keychain/dir13/clip45.opus new file mode 100644 index 0000000..1be1547 Binary files /dev/null and b/assets/audio/voice-keychain/dir13/clip45.opus differ diff --git a/assets/audio/voice-keychain/dir13/clip46.opus b/assets/audio/voice-keychain/dir13/clip46.opus new file mode 100644 index 0000000..0c51244 Binary files /dev/null and b/assets/audio/voice-keychain/dir13/clip46.opus differ diff --git a/assets/audio/voice-keychain/dir14/clip00.opus b/assets/audio/voice-keychain/dir14/clip00.opus new file mode 100644 index 0000000..b1accb7 Binary files /dev/null and b/assets/audio/voice-keychain/dir14/clip00.opus differ diff --git a/assets/audio/voice-keychain/dir14/clip01.opus b/assets/audio/voice-keychain/dir14/clip01.opus new file mode 100644 index 0000000..1fba169 Binary files /dev/null and b/assets/audio/voice-keychain/dir14/clip01.opus differ diff --git a/assets/audio/voice-keychain/dir14/clip02.opus b/assets/audio/voice-keychain/dir14/clip02.opus new file mode 100644 index 0000000..1cf5def Binary files /dev/null and b/assets/audio/voice-keychain/dir14/clip02.opus differ diff --git a/assets/audio/voice-keychain/dir14/clip04.opus b/assets/audio/voice-keychain/dir14/clip04.opus new file mode 100644 index 0000000..dc378fb Binary files /dev/null and b/assets/audio/voice-keychain/dir14/clip04.opus differ diff --git a/assets/audio/voice-keychain/dir14/clip05.opus b/assets/audio/voice-keychain/dir14/clip05.opus new file mode 100644 index 0000000..350f025 Binary files /dev/null and b/assets/audio/voice-keychain/dir14/clip05.opus differ diff --git a/assets/audio/voice-keychain/dir14/clip06.opus b/assets/audio/voice-keychain/dir14/clip06.opus new file mode 100644 index 0000000..4b9f62a Binary files /dev/null and b/assets/audio/voice-keychain/dir14/clip06.opus differ diff --git a/assets/audio/voice-keychain/dir14/clip07.opus b/assets/audio/voice-keychain/dir14/clip07.opus new file mode 100644 index 0000000..b96425e Binary files /dev/null and b/assets/audio/voice-keychain/dir14/clip07.opus differ diff --git a/assets/audio/voice-keychain/dir14/clip08.opus b/assets/audio/voice-keychain/dir14/clip08.opus new file mode 100644 index 0000000..ad62017 Binary files /dev/null and b/assets/audio/voice-keychain/dir14/clip08.opus differ diff --git a/assets/audio/voice-keychain/dir14/clip09.opus b/assets/audio/voice-keychain/dir14/clip09.opus new file mode 100644 index 0000000..8565a46 Binary files /dev/null and b/assets/audio/voice-keychain/dir14/clip09.opus differ diff --git a/assets/audio/voice-keychain/dir14/clip10.opus b/assets/audio/voice-keychain/dir14/clip10.opus new file mode 100644 index 0000000..51b1a5d Binary files /dev/null and b/assets/audio/voice-keychain/dir14/clip10.opus differ diff --git a/assets/audio/voice-keychain/dir14/clip11.opus b/assets/audio/voice-keychain/dir14/clip11.opus new file mode 100644 index 0000000..1558e8d Binary files /dev/null and b/assets/audio/voice-keychain/dir14/clip11.opus differ diff --git a/assets/audio/voice-keychain/dir14/clip12.opus b/assets/audio/voice-keychain/dir14/clip12.opus new file mode 100644 index 0000000..ba53d6f Binary files /dev/null and b/assets/audio/voice-keychain/dir14/clip12.opus differ diff --git a/assets/audio/voice-keychain/dir14/clip16.opus b/assets/audio/voice-keychain/dir14/clip16.opus new file mode 100644 index 0000000..9aeb016 Binary files /dev/null and b/assets/audio/voice-keychain/dir14/clip16.opus differ diff --git a/assets/audio/voice-keychain/dir14/clip17.opus b/assets/audio/voice-keychain/dir14/clip17.opus new file mode 100644 index 0000000..495d664 Binary files /dev/null and b/assets/audio/voice-keychain/dir14/clip17.opus differ diff --git a/assets/audio/voice-keychain/dir14/clip19.opus b/assets/audio/voice-keychain/dir14/clip19.opus new file mode 100644 index 0000000..0d3b24f Binary files /dev/null and b/assets/audio/voice-keychain/dir14/clip19.opus differ diff --git a/assets/audio/voice-keychain/dir14/clip20.opus b/assets/audio/voice-keychain/dir14/clip20.opus new file mode 100644 index 0000000..012574e Binary files /dev/null and b/assets/audio/voice-keychain/dir14/clip20.opus differ diff --git a/assets/audio/voice-keychain/dir14/clip21.opus b/assets/audio/voice-keychain/dir14/clip21.opus new file mode 100644 index 0000000..6e3264a Binary files /dev/null and b/assets/audio/voice-keychain/dir14/clip21.opus differ diff --git a/assets/audio/voice-keychain/dir14/clip22.opus b/assets/audio/voice-keychain/dir14/clip22.opus new file mode 100644 index 0000000..6a001a5 Binary files /dev/null and b/assets/audio/voice-keychain/dir14/clip22.opus differ diff --git a/assets/audio/voice-keychain/dir14/clip23.opus b/assets/audio/voice-keychain/dir14/clip23.opus new file mode 100644 index 0000000..df221ce Binary files /dev/null and b/assets/audio/voice-keychain/dir14/clip23.opus differ diff --git a/assets/audio/voice-keychain/dir14/clip24.opus b/assets/audio/voice-keychain/dir14/clip24.opus new file mode 100644 index 0000000..f985f04 Binary files /dev/null and b/assets/audio/voice-keychain/dir14/clip24.opus differ diff --git a/assets/audio/voice-keychain/dir14/clip25.opus b/assets/audio/voice-keychain/dir14/clip25.opus new file mode 100644 index 0000000..b2feea7 Binary files /dev/null and b/assets/audio/voice-keychain/dir14/clip25.opus differ diff --git a/assets/audio/voice-keychain/dir14/clip26.opus b/assets/audio/voice-keychain/dir14/clip26.opus new file mode 100644 index 0000000..2017bfe Binary files /dev/null and b/assets/audio/voice-keychain/dir14/clip26.opus differ diff --git a/assets/audio/voice-keychain/dir14/clip27.opus b/assets/audio/voice-keychain/dir14/clip27.opus new file mode 100644 index 0000000..8930ff1 Binary files /dev/null and b/assets/audio/voice-keychain/dir14/clip27.opus differ diff --git a/assets/audio/voice-keychain/dir14/clip28.opus b/assets/audio/voice-keychain/dir14/clip28.opus new file mode 100644 index 0000000..bf4fbd9 Binary files /dev/null and b/assets/audio/voice-keychain/dir14/clip28.opus differ diff --git a/assets/audio/voice-keychain/dir15/clip00.opus b/assets/audio/voice-keychain/dir15/clip00.opus new file mode 100644 index 0000000..c4a17ea Binary files /dev/null and b/assets/audio/voice-keychain/dir15/clip00.opus differ diff --git a/assets/audio/voice-keychain/dir15/clip01.opus b/assets/audio/voice-keychain/dir15/clip01.opus new file mode 100644 index 0000000..b0f1e7c Binary files /dev/null and b/assets/audio/voice-keychain/dir15/clip01.opus differ diff --git a/assets/audio/voice-keychain/dir15/clip02.opus b/assets/audio/voice-keychain/dir15/clip02.opus new file mode 100644 index 0000000..989b9d8 Binary files /dev/null and b/assets/audio/voice-keychain/dir15/clip02.opus differ diff --git a/assets/audio/voice-keychain/dir15/clip03.opus b/assets/audio/voice-keychain/dir15/clip03.opus new file mode 100644 index 0000000..6f414bf Binary files /dev/null and b/assets/audio/voice-keychain/dir15/clip03.opus differ diff --git a/assets/audio/voice-keychain/dir15/clip04.opus b/assets/audio/voice-keychain/dir15/clip04.opus new file mode 100644 index 0000000..a1af58a Binary files /dev/null and b/assets/audio/voice-keychain/dir15/clip04.opus differ diff --git a/assets/audio/voice-keychain/dir15/clip07.opus b/assets/audio/voice-keychain/dir15/clip07.opus new file mode 100644 index 0000000..5341802 Binary files /dev/null and b/assets/audio/voice-keychain/dir15/clip07.opus differ diff --git a/assets/audio/voice-keychain/dir15/clip08.opus b/assets/audio/voice-keychain/dir15/clip08.opus new file mode 100644 index 0000000..2824fb4 Binary files /dev/null and b/assets/audio/voice-keychain/dir15/clip08.opus differ diff --git a/assets/audio/voice-keychain/dir15/clip09.opus b/assets/audio/voice-keychain/dir15/clip09.opus new file mode 100644 index 0000000..2e7be10 Binary files /dev/null and b/assets/audio/voice-keychain/dir15/clip09.opus differ diff --git a/assets/audio/voice-keychain/dir15/clip10.opus b/assets/audio/voice-keychain/dir15/clip10.opus new file mode 100644 index 0000000..167f08c Binary files /dev/null and b/assets/audio/voice-keychain/dir15/clip10.opus differ diff --git a/assets/audio/voice-keychain/dir16/clip00.opus b/assets/audio/voice-keychain/dir16/clip00.opus new file mode 100644 index 0000000..e73372f Binary files /dev/null and b/assets/audio/voice-keychain/dir16/clip00.opus differ diff --git a/assets/audio/voice-keychain/dir16/clip01.opus b/assets/audio/voice-keychain/dir16/clip01.opus new file mode 100644 index 0000000..a1aab0e Binary files /dev/null and b/assets/audio/voice-keychain/dir16/clip01.opus differ diff --git a/assets/audio/voice-keychain/dir16/clip02.opus b/assets/audio/voice-keychain/dir16/clip02.opus new file mode 100644 index 0000000..59d06df Binary files /dev/null and b/assets/audio/voice-keychain/dir16/clip02.opus differ diff --git a/assets/audio/voice-keychain/dir16/clip03.opus b/assets/audio/voice-keychain/dir16/clip03.opus new file mode 100644 index 0000000..996decb Binary files /dev/null and b/assets/audio/voice-keychain/dir16/clip03.opus differ diff --git a/assets/audio/voice-keychain/dir16/clip04.opus b/assets/audio/voice-keychain/dir16/clip04.opus new file mode 100644 index 0000000..d21dc25 Binary files /dev/null and b/assets/audio/voice-keychain/dir16/clip04.opus differ diff --git a/assets/audio/voice-keychain/dir16/clip05.opus b/assets/audio/voice-keychain/dir16/clip05.opus new file mode 100644 index 0000000..ffebe57 Binary files /dev/null and b/assets/audio/voice-keychain/dir16/clip05.opus differ diff --git a/assets/audio/voice-keychain/dir16/clip06.opus b/assets/audio/voice-keychain/dir16/clip06.opus new file mode 100644 index 0000000..90e493c Binary files /dev/null and b/assets/audio/voice-keychain/dir16/clip06.opus differ diff --git a/assets/audio/voice-keychain/dir16/clip07.opus b/assets/audio/voice-keychain/dir16/clip07.opus new file mode 100644 index 0000000..2e0f805 Binary files /dev/null and b/assets/audio/voice-keychain/dir16/clip07.opus differ diff --git a/assets/audio/voice-keychain/dir16/clip08.opus b/assets/audio/voice-keychain/dir16/clip08.opus new file mode 100644 index 0000000..c49cc7a Binary files /dev/null and b/assets/audio/voice-keychain/dir16/clip08.opus differ diff --git a/assets/audio/voice-keychain/dir16/clip09.opus b/assets/audio/voice-keychain/dir16/clip09.opus new file mode 100644 index 0000000..ae0d079 Binary files /dev/null and b/assets/audio/voice-keychain/dir16/clip09.opus differ diff --git a/assets/audio/voice-keychain/dir16/clip10.opus b/assets/audio/voice-keychain/dir16/clip10.opus new file mode 100644 index 0000000..9bf2ef4 Binary files /dev/null and b/assets/audio/voice-keychain/dir16/clip10.opus differ diff --git a/assets/audio/voice-keychain/dir16/clip11.opus b/assets/audio/voice-keychain/dir16/clip11.opus new file mode 100644 index 0000000..ad8189d Binary files /dev/null and b/assets/audio/voice-keychain/dir16/clip11.opus differ diff --git a/assets/audio/voice-keychain/dir16/clip12.opus b/assets/audio/voice-keychain/dir16/clip12.opus new file mode 100644 index 0000000..041d2bd Binary files /dev/null and b/assets/audio/voice-keychain/dir16/clip12.opus differ diff --git a/assets/audio/voice-keychain/dir16/clip13.opus b/assets/audio/voice-keychain/dir16/clip13.opus new file mode 100644 index 0000000..7686d1f Binary files /dev/null and b/assets/audio/voice-keychain/dir16/clip13.opus differ diff --git a/assets/audio/voice-keychain/dir16/clip14.opus b/assets/audio/voice-keychain/dir16/clip14.opus new file mode 100644 index 0000000..a1c184f Binary files /dev/null and b/assets/audio/voice-keychain/dir16/clip14.opus differ diff --git a/assets/audio/voice-keychain/dir16/clip15.opus b/assets/audio/voice-keychain/dir16/clip15.opus new file mode 100644 index 0000000..129cca7 Binary files /dev/null and b/assets/audio/voice-keychain/dir16/clip15.opus differ diff --git a/assets/audio/voice-keychain/dir16/clip16.opus b/assets/audio/voice-keychain/dir16/clip16.opus new file mode 100644 index 0000000..9221e10 Binary files /dev/null and b/assets/audio/voice-keychain/dir16/clip16.opus differ diff --git a/assets/audio/voice-keychain/dir16/clip17.opus b/assets/audio/voice-keychain/dir16/clip17.opus new file mode 100644 index 0000000..88584b6 Binary files /dev/null and b/assets/audio/voice-keychain/dir16/clip17.opus differ diff --git a/assets/audio/voice-keychain/dir16/clip18.opus b/assets/audio/voice-keychain/dir16/clip18.opus new file mode 100644 index 0000000..894c7c6 Binary files /dev/null and b/assets/audio/voice-keychain/dir16/clip18.opus differ diff --git a/assets/audio/voice-keychain/dir16/clip19.opus b/assets/audio/voice-keychain/dir16/clip19.opus new file mode 100644 index 0000000..e3a5919 Binary files /dev/null and b/assets/audio/voice-keychain/dir16/clip19.opus differ diff --git a/assets/audio/voice-keychain/dir16/clip20.opus b/assets/audio/voice-keychain/dir16/clip20.opus new file mode 100644 index 0000000..598ad4e Binary files /dev/null and b/assets/audio/voice-keychain/dir16/clip20.opus differ diff --git a/assets/audio/voice-keychain/dir16/clip21.opus b/assets/audio/voice-keychain/dir16/clip21.opus new file mode 100644 index 0000000..41f6d0c Binary files /dev/null and b/assets/audio/voice-keychain/dir16/clip21.opus differ diff --git a/assets/audio/voice-keychain/dir16/clip22.opus b/assets/audio/voice-keychain/dir16/clip22.opus new file mode 100644 index 0000000..5380b97 Binary files /dev/null and b/assets/audio/voice-keychain/dir16/clip22.opus differ diff --git a/assets/audio/voice-keychain/dir16/clip23.opus b/assets/audio/voice-keychain/dir16/clip23.opus new file mode 100644 index 0000000..e719237 Binary files /dev/null and b/assets/audio/voice-keychain/dir16/clip23.opus differ diff --git a/assets/audio/voice-keychain/dir16/clip24.opus b/assets/audio/voice-keychain/dir16/clip24.opus new file mode 100644 index 0000000..3da6f7b Binary files /dev/null and b/assets/audio/voice-keychain/dir16/clip24.opus differ diff --git a/assets/audio/voice-keychain/dir16/clip25.opus b/assets/audio/voice-keychain/dir16/clip25.opus new file mode 100644 index 0000000..ddc2d0c Binary files /dev/null and b/assets/audio/voice-keychain/dir16/clip25.opus differ diff --git a/assets/audio/voice-keychain/dir16/clip26.opus b/assets/audio/voice-keychain/dir16/clip26.opus new file mode 100644 index 0000000..f429596 Binary files /dev/null and b/assets/audio/voice-keychain/dir16/clip26.opus differ diff --git a/assets/audio/voice-keychain/dir16/clip27.opus b/assets/audio/voice-keychain/dir16/clip27.opus new file mode 100644 index 0000000..1091d88 Binary files /dev/null and b/assets/audio/voice-keychain/dir16/clip27.opus differ diff --git a/assets/audio/voice-keychain/dir16/clip28.opus b/assets/audio/voice-keychain/dir16/clip28.opus new file mode 100644 index 0000000..a3b0e51 Binary files /dev/null and b/assets/audio/voice-keychain/dir16/clip28.opus differ diff --git a/assets/audio/voice-keychain/dir16/clip29.opus b/assets/audio/voice-keychain/dir16/clip29.opus new file mode 100644 index 0000000..c2aea66 Binary files /dev/null and b/assets/audio/voice-keychain/dir16/clip29.opus differ diff --git a/assets/audio/voice-keychain/dir16/clip30.opus b/assets/audio/voice-keychain/dir16/clip30.opus new file mode 100644 index 0000000..7ca0fb2 Binary files /dev/null and b/assets/audio/voice-keychain/dir16/clip30.opus differ diff --git a/assets/audio/voice-keychain/dir16/clip31.opus b/assets/audio/voice-keychain/dir16/clip31.opus new file mode 100644 index 0000000..b5fe5b1 Binary files /dev/null and b/assets/audio/voice-keychain/dir16/clip31.opus differ diff --git a/assets/audio/voice-keychain/dir16/clip32.opus b/assets/audio/voice-keychain/dir16/clip32.opus new file mode 100644 index 0000000..154d2c7 Binary files /dev/null and b/assets/audio/voice-keychain/dir16/clip32.opus differ diff --git a/assets/audio/voice-keychain/dir16/clip33.opus b/assets/audio/voice-keychain/dir16/clip33.opus new file mode 100644 index 0000000..746494c Binary files /dev/null and b/assets/audio/voice-keychain/dir16/clip33.opus differ diff --git a/assets/audio/voice-keychain/dir16/clip34.opus b/assets/audio/voice-keychain/dir16/clip34.opus new file mode 100644 index 0000000..1d214c3 Binary files /dev/null and b/assets/audio/voice-keychain/dir16/clip34.opus differ diff --git a/assets/audio/voice-keychain/dir16/clip35.opus b/assets/audio/voice-keychain/dir16/clip35.opus new file mode 100644 index 0000000..b432489 Binary files /dev/null and b/assets/audio/voice-keychain/dir16/clip35.opus differ diff --git a/assets/audio/voice-keychain/dir17/clip00.opus b/assets/audio/voice-keychain/dir17/clip00.opus new file mode 100644 index 0000000..549e8c4 Binary files /dev/null and b/assets/audio/voice-keychain/dir17/clip00.opus differ diff --git a/assets/audio/voice-keychain/dir17/clip01.opus b/assets/audio/voice-keychain/dir17/clip01.opus new file mode 100644 index 0000000..d504df0 Binary files /dev/null and b/assets/audio/voice-keychain/dir17/clip01.opus differ diff --git a/assets/audio/voice-keychain/dir18/clip00.opus b/assets/audio/voice-keychain/dir18/clip00.opus new file mode 100644 index 0000000..61620e5 Binary files /dev/null and b/assets/audio/voice-keychain/dir18/clip00.opus differ diff --git a/assets/audio/voice-keychain/dir18/clip01.opus b/assets/audio/voice-keychain/dir18/clip01.opus new file mode 100644 index 0000000..16fccac Binary files /dev/null and b/assets/audio/voice-keychain/dir18/clip01.opus differ diff --git a/assets/audio/voice-keychain/dir18/clip02.opus b/assets/audio/voice-keychain/dir18/clip02.opus new file mode 100644 index 0000000..309ed0e Binary files /dev/null and b/assets/audio/voice-keychain/dir18/clip02.opus differ diff --git a/assets/audio/voice-keychain/dir18/clip03.opus b/assets/audio/voice-keychain/dir18/clip03.opus new file mode 100644 index 0000000..1c926b6 Binary files /dev/null and b/assets/audio/voice-keychain/dir18/clip03.opus differ diff --git a/assets/audio/voice-keychain/dir18/clip04.opus b/assets/audio/voice-keychain/dir18/clip04.opus new file mode 100644 index 0000000..28acdb6 Binary files /dev/null and b/assets/audio/voice-keychain/dir18/clip04.opus differ diff --git a/assets/audio/voice-keychain/dir18/clip05.opus b/assets/audio/voice-keychain/dir18/clip05.opus new file mode 100644 index 0000000..32a941b Binary files /dev/null and b/assets/audio/voice-keychain/dir18/clip05.opus differ diff --git a/assets/audio/voice-keychain/dir18/clip06.opus b/assets/audio/voice-keychain/dir18/clip06.opus new file mode 100644 index 0000000..6f09245 Binary files /dev/null and b/assets/audio/voice-keychain/dir18/clip06.opus differ diff --git a/assets/audio/voice-keychain/dir18/clip07.opus b/assets/audio/voice-keychain/dir18/clip07.opus new file mode 100644 index 0000000..77ef346 Binary files /dev/null and b/assets/audio/voice-keychain/dir18/clip07.opus differ diff --git a/assets/audio/voice-keychain/dir18/clip08.opus b/assets/audio/voice-keychain/dir18/clip08.opus new file mode 100644 index 0000000..31f2605 Binary files /dev/null and b/assets/audio/voice-keychain/dir18/clip08.opus differ diff --git a/assets/audio/voice-keychain/dir18/clip09.opus b/assets/audio/voice-keychain/dir18/clip09.opus new file mode 100644 index 0000000..99868f7 Binary files /dev/null and b/assets/audio/voice-keychain/dir18/clip09.opus differ diff --git a/assets/audio/voice-keychain/dir18/clip10.opus b/assets/audio/voice-keychain/dir18/clip10.opus new file mode 100644 index 0000000..e0c7e1f Binary files /dev/null and b/assets/audio/voice-keychain/dir18/clip10.opus differ diff --git a/assets/audio/voice-keychain/dir18/clip11.opus b/assets/audio/voice-keychain/dir18/clip11.opus new file mode 100644 index 0000000..31ff8ae Binary files /dev/null and b/assets/audio/voice-keychain/dir18/clip11.opus differ diff --git a/assets/audio/voice-keychain/dir18/clip12.opus b/assets/audio/voice-keychain/dir18/clip12.opus new file mode 100644 index 0000000..8c1181d Binary files /dev/null and b/assets/audio/voice-keychain/dir18/clip12.opus differ diff --git a/assets/audio/voice-keychain/dir18/clip13.opus b/assets/audio/voice-keychain/dir18/clip13.opus new file mode 100644 index 0000000..20a3f84 Binary files /dev/null and b/assets/audio/voice-keychain/dir18/clip13.opus differ diff --git a/assets/audio/voice-keychain/dir18/clip14.opus b/assets/audio/voice-keychain/dir18/clip14.opus new file mode 100644 index 0000000..7c0060d Binary files /dev/null and b/assets/audio/voice-keychain/dir18/clip14.opus differ diff --git a/assets/audio/voice-keychain/dir18/clip15.opus b/assets/audio/voice-keychain/dir18/clip15.opus new file mode 100644 index 0000000..ba3f739 Binary files /dev/null and b/assets/audio/voice-keychain/dir18/clip15.opus differ diff --git a/assets/audio/voice-keychain/dir18/clip16.opus b/assets/audio/voice-keychain/dir18/clip16.opus new file mode 100644 index 0000000..99c061e Binary files /dev/null and b/assets/audio/voice-keychain/dir18/clip16.opus differ diff --git a/assets/audio/voice-keychain/dir18/clip17.opus b/assets/audio/voice-keychain/dir18/clip17.opus new file mode 100644 index 0000000..0e0bb41 Binary files /dev/null and b/assets/audio/voice-keychain/dir18/clip17.opus differ diff --git a/assets/audio/voice-keychain/dir18/clip18.opus b/assets/audio/voice-keychain/dir18/clip18.opus new file mode 100644 index 0000000..63d44e5 Binary files /dev/null and b/assets/audio/voice-keychain/dir18/clip18.opus differ diff --git a/assets/audio/voice-keychain/dir18/clip19.opus b/assets/audio/voice-keychain/dir18/clip19.opus new file mode 100644 index 0000000..48a60eb Binary files /dev/null and b/assets/audio/voice-keychain/dir18/clip19.opus differ diff --git a/assets/audio/voice-keychain/dir18/clip20.opus b/assets/audio/voice-keychain/dir18/clip20.opus new file mode 100644 index 0000000..c1e8d34 Binary files /dev/null and b/assets/audio/voice-keychain/dir18/clip20.opus differ diff --git a/assets/audio/voice-keychain/dir18/clip21.opus b/assets/audio/voice-keychain/dir18/clip21.opus new file mode 100644 index 0000000..a7a678b Binary files /dev/null and b/assets/audio/voice-keychain/dir18/clip21.opus differ diff --git a/assets/audio/voice-keychain/dir18/clip22.opus b/assets/audio/voice-keychain/dir18/clip22.opus new file mode 100644 index 0000000..0a577e5 Binary files /dev/null and b/assets/audio/voice-keychain/dir18/clip22.opus differ diff --git a/assets/audio/voice-keychain/dir18/clip23.opus b/assets/audio/voice-keychain/dir18/clip23.opus new file mode 100644 index 0000000..2a602bf Binary files /dev/null and b/assets/audio/voice-keychain/dir18/clip23.opus differ diff --git a/assets/audio/voice-keychain/dir18/clip24.opus b/assets/audio/voice-keychain/dir18/clip24.opus new file mode 100644 index 0000000..f626b1e Binary files /dev/null and b/assets/audio/voice-keychain/dir18/clip24.opus differ diff --git a/assets/audio/voice-keychain/dir18/clip25.opus b/assets/audio/voice-keychain/dir18/clip25.opus new file mode 100644 index 0000000..b0c8bbe Binary files /dev/null and b/assets/audio/voice-keychain/dir18/clip25.opus differ diff --git a/assets/audio/voice-keychain/dir18/clip26.opus b/assets/audio/voice-keychain/dir18/clip26.opus new file mode 100644 index 0000000..1440cef Binary files /dev/null and b/assets/audio/voice-keychain/dir18/clip26.opus differ diff --git a/assets/audio/voice-keychain/dir18/clip27.opus b/assets/audio/voice-keychain/dir18/clip27.opus new file mode 100644 index 0000000..8186fbb Binary files /dev/null and b/assets/audio/voice-keychain/dir18/clip27.opus differ diff --git a/assets/audio/voice-keychain/dir18/clip28.opus b/assets/audio/voice-keychain/dir18/clip28.opus new file mode 100644 index 0000000..4b0a295 Binary files /dev/null and b/assets/audio/voice-keychain/dir18/clip28.opus differ diff --git a/assets/audio/voice-keychain/dir18/clip29.opus b/assets/audio/voice-keychain/dir18/clip29.opus new file mode 100644 index 0000000..f45aed2 Binary files /dev/null and b/assets/audio/voice-keychain/dir18/clip29.opus differ diff --git a/assets/audio/voice-keychain/dir18/clip30.opus b/assets/audio/voice-keychain/dir18/clip30.opus new file mode 100644 index 0000000..11c70ef Binary files /dev/null and b/assets/audio/voice-keychain/dir18/clip30.opus differ diff --git a/assets/audio/voice-keychain/dir18/clip31.opus b/assets/audio/voice-keychain/dir18/clip31.opus new file mode 100644 index 0000000..4fa91d4 Binary files /dev/null and b/assets/audio/voice-keychain/dir18/clip31.opus differ diff --git a/assets/audio/voice-keychain/dir18/clip32.opus b/assets/audio/voice-keychain/dir18/clip32.opus new file mode 100644 index 0000000..7d29e25 Binary files /dev/null and b/assets/audio/voice-keychain/dir18/clip32.opus differ diff --git a/assets/audio/voice-keychain/dir18/clip33.opus b/assets/audio/voice-keychain/dir18/clip33.opus new file mode 100644 index 0000000..e7e41b8 Binary files /dev/null and b/assets/audio/voice-keychain/dir18/clip33.opus differ diff --git a/assets/audio/voice-keychain/dir18/clip34.opus b/assets/audio/voice-keychain/dir18/clip34.opus new file mode 100644 index 0000000..64eefd2 Binary files /dev/null and b/assets/audio/voice-keychain/dir18/clip34.opus differ diff --git a/assets/audio/voice-keychain/dir18/clip35.opus b/assets/audio/voice-keychain/dir18/clip35.opus new file mode 100644 index 0000000..bfa8857 Binary files /dev/null and b/assets/audio/voice-keychain/dir18/clip35.opus differ diff --git a/assets/audio/voice-keychain/dir18/clip36.opus b/assets/audio/voice-keychain/dir18/clip36.opus new file mode 100644 index 0000000..961d656 Binary files /dev/null and b/assets/audio/voice-keychain/dir18/clip36.opus differ diff --git a/assets/audio/voice-keychain/dir18/clip37.opus b/assets/audio/voice-keychain/dir18/clip37.opus new file mode 100644 index 0000000..5a78a7d Binary files /dev/null and b/assets/audio/voice-keychain/dir18/clip37.opus differ diff --git a/assets/audio/voice-keychain/dir18/clip38.opus b/assets/audio/voice-keychain/dir18/clip38.opus new file mode 100644 index 0000000..75a141b Binary files /dev/null and b/assets/audio/voice-keychain/dir18/clip38.opus differ diff --git a/assets/audio/voice-keychain/dir18/clip39.opus b/assets/audio/voice-keychain/dir18/clip39.opus new file mode 100644 index 0000000..2a655d9 Binary files /dev/null and b/assets/audio/voice-keychain/dir18/clip39.opus differ diff --git a/assets/audio/voice-keychain/dir19/clip00.opus b/assets/audio/voice-keychain/dir19/clip00.opus new file mode 100644 index 0000000..360614e Binary files /dev/null and b/assets/audio/voice-keychain/dir19/clip00.opus differ diff --git a/assets/audio/voice-keychain/dir19/clip01.opus b/assets/audio/voice-keychain/dir19/clip01.opus new file mode 100644 index 0000000..42dc8b5 Binary files /dev/null and b/assets/audio/voice-keychain/dir19/clip01.opus differ diff --git a/assets/audio/voice-keychain/dir19/clip02.opus b/assets/audio/voice-keychain/dir19/clip02.opus new file mode 100644 index 0000000..5a616cd Binary files /dev/null and b/assets/audio/voice-keychain/dir19/clip02.opus differ diff --git a/assets/audio/voice-keychain/dir19/clip03.opus b/assets/audio/voice-keychain/dir19/clip03.opus new file mode 100644 index 0000000..07dc1d0 Binary files /dev/null and b/assets/audio/voice-keychain/dir19/clip03.opus differ diff --git a/assets/audio/voice-keychain/dir19/clip05.opus b/assets/audio/voice-keychain/dir19/clip05.opus new file mode 100644 index 0000000..4ce345f Binary files /dev/null and b/assets/audio/voice-keychain/dir19/clip05.opus differ diff --git a/assets/audio/voice-keychain/dir19/clip06.opus b/assets/audio/voice-keychain/dir19/clip06.opus new file mode 100644 index 0000000..63cc1e6 Binary files /dev/null and b/assets/audio/voice-keychain/dir19/clip06.opus differ diff --git a/assets/audio/voice-keychain/dir19/clip28.opus b/assets/audio/voice-keychain/dir19/clip28.opus new file mode 100644 index 0000000..a94c057 Binary files /dev/null and b/assets/audio/voice-keychain/dir19/clip28.opus differ diff --git a/assets/audio/voice-keychain/dir19/clip29.opus b/assets/audio/voice-keychain/dir19/clip29.opus new file mode 100644 index 0000000..8a1d091 Binary files /dev/null and b/assets/audio/voice-keychain/dir19/clip29.opus differ diff --git a/assets/audio/voice-keychain/dir20/clip00.opus b/assets/audio/voice-keychain/dir20/clip00.opus new file mode 100644 index 0000000..6d9987e Binary files /dev/null and b/assets/audio/voice-keychain/dir20/clip00.opus differ diff --git a/assets/audio/voice-keychain/dir20/clip01.opus b/assets/audio/voice-keychain/dir20/clip01.opus new file mode 100644 index 0000000..afb96a1 Binary files /dev/null and b/assets/audio/voice-keychain/dir20/clip01.opus differ diff --git a/assets/audio/voice-keychain/dir20/clip02.opus b/assets/audio/voice-keychain/dir20/clip02.opus new file mode 100644 index 0000000..31ce7f0 Binary files /dev/null and b/assets/audio/voice-keychain/dir20/clip02.opus differ diff --git a/assets/audio/voice-keychain/dir20/clip03.opus b/assets/audio/voice-keychain/dir20/clip03.opus new file mode 100644 index 0000000..658d00e Binary files /dev/null and b/assets/audio/voice-keychain/dir20/clip03.opus differ diff --git a/assets/audio/voice-keychain/dir20/clip04.opus b/assets/audio/voice-keychain/dir20/clip04.opus new file mode 100644 index 0000000..c45dff1 Binary files /dev/null and b/assets/audio/voice-keychain/dir20/clip04.opus differ diff --git a/assets/audio/voice-keychain/dir20/clip05.opus b/assets/audio/voice-keychain/dir20/clip05.opus new file mode 100644 index 0000000..537b4ac Binary files /dev/null and b/assets/audio/voice-keychain/dir20/clip05.opus differ diff --git a/assets/audio/voice-keychain/dir20/clip06.opus b/assets/audio/voice-keychain/dir20/clip06.opus new file mode 100644 index 0000000..3c19fb8 Binary files /dev/null and b/assets/audio/voice-keychain/dir20/clip06.opus differ diff --git a/assets/audio/voice-keychain/dir20/clip07.opus b/assets/audio/voice-keychain/dir20/clip07.opus new file mode 100644 index 0000000..3213ffc Binary files /dev/null and b/assets/audio/voice-keychain/dir20/clip07.opus differ diff --git a/assets/audio/voice-keychain/dir20/clip08.opus b/assets/audio/voice-keychain/dir20/clip08.opus new file mode 100644 index 0000000..0606f23 Binary files /dev/null and b/assets/audio/voice-keychain/dir20/clip08.opus differ diff --git a/assets/audio/voice-keychain/dir20/clip09.opus b/assets/audio/voice-keychain/dir20/clip09.opus new file mode 100644 index 0000000..446839f Binary files /dev/null and b/assets/audio/voice-keychain/dir20/clip09.opus differ diff --git a/assets/audio/voice-keychain/dir20/clip10.opus b/assets/audio/voice-keychain/dir20/clip10.opus new file mode 100644 index 0000000..96008eb Binary files /dev/null and b/assets/audio/voice-keychain/dir20/clip10.opus differ diff --git a/assets/audio/voice-keychain/dir20/clip11.opus b/assets/audio/voice-keychain/dir20/clip11.opus new file mode 100644 index 0000000..e703207 Binary files /dev/null and b/assets/audio/voice-keychain/dir20/clip11.opus differ diff --git a/assets/audio/voice-keychain/dir20/clip12.opus b/assets/audio/voice-keychain/dir20/clip12.opus new file mode 100644 index 0000000..086d206 Binary files /dev/null and b/assets/audio/voice-keychain/dir20/clip12.opus differ diff --git a/assets/audio/voice-keychain/dir20/clip14.opus b/assets/audio/voice-keychain/dir20/clip14.opus new file mode 100644 index 0000000..ff09fdb Binary files /dev/null and b/assets/audio/voice-keychain/dir20/clip14.opus differ diff --git a/assets/audio/voice-keychain/dir20/clip15.opus b/assets/audio/voice-keychain/dir20/clip15.opus new file mode 100644 index 0000000..31afb60 Binary files /dev/null and b/assets/audio/voice-keychain/dir20/clip15.opus differ diff --git a/assets/audio/voice-keychain/dir20/clip16.opus b/assets/audio/voice-keychain/dir20/clip16.opus new file mode 100644 index 0000000..69eef59 Binary files /dev/null and b/assets/audio/voice-keychain/dir20/clip16.opus differ diff --git a/assets/audio/voice-keychain/dir20/clip18.opus b/assets/audio/voice-keychain/dir20/clip18.opus new file mode 100644 index 0000000..e4b4d3e Binary files /dev/null and b/assets/audio/voice-keychain/dir20/clip18.opus differ diff --git a/assets/audio/voice-keychain/dir20/clip19.opus b/assets/audio/voice-keychain/dir20/clip19.opus new file mode 100644 index 0000000..4b13cdc Binary files /dev/null and b/assets/audio/voice-keychain/dir20/clip19.opus differ diff --git a/assets/audio/voice-keychain/dir20/clip21.opus b/assets/audio/voice-keychain/dir20/clip21.opus new file mode 100644 index 0000000..6289547 Binary files /dev/null and b/assets/audio/voice-keychain/dir20/clip21.opus differ diff --git a/assets/audio/voice-keychain/dir20/clip22.opus b/assets/audio/voice-keychain/dir20/clip22.opus new file mode 100644 index 0000000..7574c78 Binary files /dev/null and b/assets/audio/voice-keychain/dir20/clip22.opus differ diff --git a/assets/audio/voice-keychain/dir20/clip23.opus b/assets/audio/voice-keychain/dir20/clip23.opus new file mode 100644 index 0000000..73b5c49 Binary files /dev/null and b/assets/audio/voice-keychain/dir20/clip23.opus differ diff --git a/assets/audio/voice-keychain/dir20/clip24.opus b/assets/audio/voice-keychain/dir20/clip24.opus new file mode 100644 index 0000000..8175dbf Binary files /dev/null and b/assets/audio/voice-keychain/dir20/clip24.opus differ diff --git a/assets/audio/voice-keychain/dir20/clip26.opus b/assets/audio/voice-keychain/dir20/clip26.opus new file mode 100644 index 0000000..69ca337 Binary files /dev/null and b/assets/audio/voice-keychain/dir20/clip26.opus differ diff --git a/assets/audio/voice-keychain/dir20/clip28.opus b/assets/audio/voice-keychain/dir20/clip28.opus new file mode 100644 index 0000000..fa20ae0 Binary files /dev/null and b/assets/audio/voice-keychain/dir20/clip28.opus differ diff --git a/assets/audio/voice-keychain/dir20/clip29.opus b/assets/audio/voice-keychain/dir20/clip29.opus new file mode 100644 index 0000000..ad0ae8a Binary files /dev/null and b/assets/audio/voice-keychain/dir20/clip29.opus differ diff --git a/assets/audio/voice-keychain/dir20/clip30.opus b/assets/audio/voice-keychain/dir20/clip30.opus new file mode 100644 index 0000000..0b70484 Binary files /dev/null and b/assets/audio/voice-keychain/dir20/clip30.opus differ diff --git a/assets/audio/voice-keychain/dir20/clip31.opus b/assets/audio/voice-keychain/dir20/clip31.opus new file mode 100644 index 0000000..97370a5 Binary files /dev/null and b/assets/audio/voice-keychain/dir20/clip31.opus differ diff --git a/assets/audio/voice-keychain/dir20/clip32.opus b/assets/audio/voice-keychain/dir20/clip32.opus new file mode 100644 index 0000000..19ecb1b Binary files /dev/null and b/assets/audio/voice-keychain/dir20/clip32.opus differ diff --git a/assets/audio/voice-keychain/dir20/clip34.opus b/assets/audio/voice-keychain/dir20/clip34.opus new file mode 100644 index 0000000..de3c5d3 Binary files /dev/null and b/assets/audio/voice-keychain/dir20/clip34.opus differ diff --git a/assets/audio/voice-keychain/dir20/clip35.opus b/assets/audio/voice-keychain/dir20/clip35.opus new file mode 100644 index 0000000..12f5ee3 Binary files /dev/null and b/assets/audio/voice-keychain/dir20/clip35.opus differ diff --git a/assets/audio/voice-keychain/dir20/clip36.opus b/assets/audio/voice-keychain/dir20/clip36.opus new file mode 100644 index 0000000..2df50ba Binary files /dev/null and b/assets/audio/voice-keychain/dir20/clip36.opus differ diff --git a/assets/audio/voice-keychain/dir20/clip37.opus b/assets/audio/voice-keychain/dir20/clip37.opus new file mode 100644 index 0000000..4c457b4 Binary files /dev/null and b/assets/audio/voice-keychain/dir20/clip37.opus differ diff --git a/assets/audio/voice-keychain/dir20/clip38.opus b/assets/audio/voice-keychain/dir20/clip38.opus new file mode 100644 index 0000000..8b8407e Binary files /dev/null and b/assets/audio/voice-keychain/dir20/clip38.opus differ diff --git a/assets/audio/voice-keychain/dir20/clip39.opus b/assets/audio/voice-keychain/dir20/clip39.opus new file mode 100644 index 0000000..0d6748c Binary files /dev/null and b/assets/audio/voice-keychain/dir20/clip39.opus differ diff --git a/assets/audio/voice-keychain/dir20/clip41.opus b/assets/audio/voice-keychain/dir20/clip41.opus new file mode 100644 index 0000000..f6a1fca Binary files /dev/null and b/assets/audio/voice-keychain/dir20/clip41.opus differ diff --git a/assets/audio/voice-keychain/dir20/clip42.opus b/assets/audio/voice-keychain/dir20/clip42.opus new file mode 100644 index 0000000..984bacf Binary files /dev/null and b/assets/audio/voice-keychain/dir20/clip42.opus differ diff --git a/assets/audio/voice-keychain/dir20/clip43.opus b/assets/audio/voice-keychain/dir20/clip43.opus new file mode 100644 index 0000000..b076c95 Binary files /dev/null and b/assets/audio/voice-keychain/dir20/clip43.opus differ diff --git a/assets/audio/voice-keychain/dir20/clip44.opus b/assets/audio/voice-keychain/dir20/clip44.opus new file mode 100644 index 0000000..f5df5a6 Binary files /dev/null and b/assets/audio/voice-keychain/dir20/clip44.opus differ diff --git a/assets/audio/voice-keychain/dir20/clip45.opus b/assets/audio/voice-keychain/dir20/clip45.opus new file mode 100644 index 0000000..344fc8d Binary files /dev/null and b/assets/audio/voice-keychain/dir20/clip45.opus differ diff --git a/assets/audio/voice-keychain/dir20/clip46.opus b/assets/audio/voice-keychain/dir20/clip46.opus new file mode 100644 index 0000000..e868f18 Binary files /dev/null and b/assets/audio/voice-keychain/dir20/clip46.opus differ diff --git a/assets/audio/voice-keychain/dir20/clip47.opus b/assets/audio/voice-keychain/dir20/clip47.opus new file mode 100644 index 0000000..aeb5b10 Binary files /dev/null and b/assets/audio/voice-keychain/dir20/clip47.opus differ diff --git a/assets/audio/voice-keychain/dir21/clip00.opus b/assets/audio/voice-keychain/dir21/clip00.opus new file mode 100644 index 0000000..3aaddda Binary files /dev/null and b/assets/audio/voice-keychain/dir21/clip00.opus differ diff --git a/assets/audio/voice-keychain/dir21/clip01.opus b/assets/audio/voice-keychain/dir21/clip01.opus new file mode 100644 index 0000000..2673aae Binary files /dev/null and b/assets/audio/voice-keychain/dir21/clip01.opus differ diff --git a/assets/audio/voice-keychain/dir21/clip02.opus b/assets/audio/voice-keychain/dir21/clip02.opus new file mode 100644 index 0000000..cea5517 Binary files /dev/null and b/assets/audio/voice-keychain/dir21/clip02.opus differ diff --git a/assets/audio/voice-keychain/dir21/clip04.opus b/assets/audio/voice-keychain/dir21/clip04.opus new file mode 100644 index 0000000..5d16b21 Binary files /dev/null and b/assets/audio/voice-keychain/dir21/clip04.opus differ diff --git a/assets/audio/voice-keychain/dir21/clip05.opus b/assets/audio/voice-keychain/dir21/clip05.opus new file mode 100644 index 0000000..76592b5 Binary files /dev/null and b/assets/audio/voice-keychain/dir21/clip05.opus differ diff --git a/assets/audio/voice-keychain/dir21/clip06.opus b/assets/audio/voice-keychain/dir21/clip06.opus new file mode 100644 index 0000000..a2b7daa Binary files /dev/null and b/assets/audio/voice-keychain/dir21/clip06.opus differ diff --git a/assets/audio/voice-keychain/dir21/clip07.opus b/assets/audio/voice-keychain/dir21/clip07.opus new file mode 100644 index 0000000..45ef3e3 Binary files /dev/null and b/assets/audio/voice-keychain/dir21/clip07.opus differ diff --git a/assets/audio/voice-keychain/dir21/clip08.opus b/assets/audio/voice-keychain/dir21/clip08.opus new file mode 100644 index 0000000..a3b54b5 Binary files /dev/null and b/assets/audio/voice-keychain/dir21/clip08.opus differ diff --git a/assets/audio/voice-keychain/dir21/clip09.opus b/assets/audio/voice-keychain/dir21/clip09.opus new file mode 100644 index 0000000..80d1197 Binary files /dev/null and b/assets/audio/voice-keychain/dir21/clip09.opus differ diff --git a/assets/audio/voice-keychain/dir21/clip10.opus b/assets/audio/voice-keychain/dir21/clip10.opus new file mode 100644 index 0000000..b07b318 Binary files /dev/null and b/assets/audio/voice-keychain/dir21/clip10.opus differ diff --git a/assets/audio/voice-keychain/dir21/clip11.opus b/assets/audio/voice-keychain/dir21/clip11.opus new file mode 100644 index 0000000..64c6236 Binary files /dev/null and b/assets/audio/voice-keychain/dir21/clip11.opus differ diff --git a/assets/audio/voice-keychain/dir21/clip12.opus b/assets/audio/voice-keychain/dir21/clip12.opus new file mode 100644 index 0000000..aa70cab Binary files /dev/null and b/assets/audio/voice-keychain/dir21/clip12.opus differ diff --git a/assets/audio/voice-keychain/dir21/clip13.opus b/assets/audio/voice-keychain/dir21/clip13.opus new file mode 100644 index 0000000..eb693bf Binary files /dev/null and b/assets/audio/voice-keychain/dir21/clip13.opus differ diff --git a/assets/audio/voice-keychain/dir21/clip15.opus b/assets/audio/voice-keychain/dir21/clip15.opus new file mode 100644 index 0000000..e3a733f Binary files /dev/null and b/assets/audio/voice-keychain/dir21/clip15.opus differ diff --git a/assets/audio/voice-keychain/dir21/clip16.opus b/assets/audio/voice-keychain/dir21/clip16.opus new file mode 100644 index 0000000..5eabaa9 Binary files /dev/null and b/assets/audio/voice-keychain/dir21/clip16.opus differ diff --git a/assets/audio/voice-keychain/dir21/clip17.opus b/assets/audio/voice-keychain/dir21/clip17.opus new file mode 100644 index 0000000..8b1ada8 Binary files /dev/null and b/assets/audio/voice-keychain/dir21/clip17.opus differ diff --git a/assets/audio/voice-keychain/dir21/clip18.opus b/assets/audio/voice-keychain/dir21/clip18.opus new file mode 100644 index 0000000..44be02c Binary files /dev/null and b/assets/audio/voice-keychain/dir21/clip18.opus differ diff --git a/assets/audio/voice-keychain/dir21/clip20.opus b/assets/audio/voice-keychain/dir21/clip20.opus new file mode 100644 index 0000000..f177af0 Binary files /dev/null and b/assets/audio/voice-keychain/dir21/clip20.opus differ diff --git a/assets/audio/voice-keychain/dir21/clip21.opus b/assets/audio/voice-keychain/dir21/clip21.opus new file mode 100644 index 0000000..468932c Binary files /dev/null and b/assets/audio/voice-keychain/dir21/clip21.opus differ diff --git a/assets/audio/voice-keychain/dir21/clip22.opus b/assets/audio/voice-keychain/dir21/clip22.opus new file mode 100644 index 0000000..f0d36f6 Binary files /dev/null and b/assets/audio/voice-keychain/dir21/clip22.opus differ diff --git a/assets/audio/voice-keychain/dir21/clip23.opus b/assets/audio/voice-keychain/dir21/clip23.opus new file mode 100644 index 0000000..357cd50 Binary files /dev/null and b/assets/audio/voice-keychain/dir21/clip23.opus differ diff --git a/assets/audio/voice-keychain/dir21/clip24.opus b/assets/audio/voice-keychain/dir21/clip24.opus new file mode 100644 index 0000000..373ab09 Binary files /dev/null and b/assets/audio/voice-keychain/dir21/clip24.opus differ diff --git a/assets/audio/voice-keychain/dir21/clip25.opus b/assets/audio/voice-keychain/dir21/clip25.opus new file mode 100644 index 0000000..317425d Binary files /dev/null and b/assets/audio/voice-keychain/dir21/clip25.opus differ diff --git a/assets/audio/voice-keychain/dir21/clip27.opus b/assets/audio/voice-keychain/dir21/clip27.opus new file mode 100644 index 0000000..327c9a5 Binary files /dev/null and b/assets/audio/voice-keychain/dir21/clip27.opus differ diff --git a/assets/audio/voice-keychain/dir21/clip28.opus b/assets/audio/voice-keychain/dir21/clip28.opus new file mode 100644 index 0000000..531ea6d Binary files /dev/null and b/assets/audio/voice-keychain/dir21/clip28.opus differ diff --git a/assets/audio/voice-keychain/dir21/clip29.opus b/assets/audio/voice-keychain/dir21/clip29.opus new file mode 100644 index 0000000..5a91515 Binary files /dev/null and b/assets/audio/voice-keychain/dir21/clip29.opus differ diff --git a/assets/audio/voice-keychain/dir21/clip30.opus b/assets/audio/voice-keychain/dir21/clip30.opus new file mode 100644 index 0000000..ab13ac7 Binary files /dev/null and b/assets/audio/voice-keychain/dir21/clip30.opus differ diff --git a/assets/audio/voice-keychain/dir21/clip33.opus b/assets/audio/voice-keychain/dir21/clip33.opus new file mode 100644 index 0000000..08c1460 Binary files /dev/null and b/assets/audio/voice-keychain/dir21/clip33.opus differ diff --git a/assets/audio/voice-keychain/dir21/clip34.opus b/assets/audio/voice-keychain/dir21/clip34.opus new file mode 100644 index 0000000..2854bb2 Binary files /dev/null and b/assets/audio/voice-keychain/dir21/clip34.opus differ diff --git a/assets/audio/voice-keychain/dir21/clip35.opus b/assets/audio/voice-keychain/dir21/clip35.opus new file mode 100644 index 0000000..459cc81 Binary files /dev/null and b/assets/audio/voice-keychain/dir21/clip35.opus differ diff --git a/assets/audio/voice-keychain/dir21/clip39.opus b/assets/audio/voice-keychain/dir21/clip39.opus new file mode 100644 index 0000000..6e283e4 Binary files /dev/null and b/assets/audio/voice-keychain/dir21/clip39.opus differ diff --git a/assets/audio/voice-keychain/dir21/clip40.opus b/assets/audio/voice-keychain/dir21/clip40.opus new file mode 100644 index 0000000..fcdf2c4 Binary files /dev/null and b/assets/audio/voice-keychain/dir21/clip40.opus differ diff --git a/assets/audio/voice-keychain/dir21/clip41.opus b/assets/audio/voice-keychain/dir21/clip41.opus new file mode 100644 index 0000000..5d435b3 Binary files /dev/null and b/assets/audio/voice-keychain/dir21/clip41.opus differ diff --git a/assets/audio/voice-keychain/dir21/clip42.opus b/assets/audio/voice-keychain/dir21/clip42.opus new file mode 100644 index 0000000..8f155be Binary files /dev/null and b/assets/audio/voice-keychain/dir21/clip42.opus differ diff --git a/assets/audio/voice-keychain/dir21/clip43.opus b/assets/audio/voice-keychain/dir21/clip43.opus new file mode 100644 index 0000000..646db49 Binary files /dev/null and b/assets/audio/voice-keychain/dir21/clip43.opus differ diff --git a/assets/audio/voice-keychain/dir22/clip00.opus b/assets/audio/voice-keychain/dir22/clip00.opus new file mode 100644 index 0000000..4800bb7 Binary files /dev/null and b/assets/audio/voice-keychain/dir22/clip00.opus differ diff --git a/assets/audio/voice-keychain/dir22/clip01.opus b/assets/audio/voice-keychain/dir22/clip01.opus new file mode 100644 index 0000000..ac3459a Binary files /dev/null and b/assets/audio/voice-keychain/dir22/clip01.opus differ diff --git a/assets/audio/voice-keychain/dir22/clip02.opus b/assets/audio/voice-keychain/dir22/clip02.opus new file mode 100644 index 0000000..f12926c Binary files /dev/null and b/assets/audio/voice-keychain/dir22/clip02.opus differ diff --git a/assets/audio/voice-keychain/dir22/clip03.opus b/assets/audio/voice-keychain/dir22/clip03.opus new file mode 100644 index 0000000..d3656d5 Binary files /dev/null and b/assets/audio/voice-keychain/dir22/clip03.opus differ diff --git a/assets/audio/voice-keychain/dir22/clip07.opus b/assets/audio/voice-keychain/dir22/clip07.opus new file mode 100644 index 0000000..717cb5d Binary files /dev/null and b/assets/audio/voice-keychain/dir22/clip07.opus differ diff --git a/assets/audio/voice-keychain/dir22/clip09.opus b/assets/audio/voice-keychain/dir22/clip09.opus new file mode 100644 index 0000000..0983b79 Binary files /dev/null and b/assets/audio/voice-keychain/dir22/clip09.opus differ diff --git a/assets/audio/voice-keychain/dir22/clip10.opus b/assets/audio/voice-keychain/dir22/clip10.opus new file mode 100644 index 0000000..d0b4254 Binary files /dev/null and b/assets/audio/voice-keychain/dir22/clip10.opus differ diff --git a/assets/audio/voice-keychain/dir22/clip11.opus b/assets/audio/voice-keychain/dir22/clip11.opus new file mode 100644 index 0000000..92d8e01 Binary files /dev/null and b/assets/audio/voice-keychain/dir22/clip11.opus differ diff --git a/assets/audio/voice-keychain/dir22/clip12.opus b/assets/audio/voice-keychain/dir22/clip12.opus new file mode 100644 index 0000000..f14ee9b Binary files /dev/null and b/assets/audio/voice-keychain/dir22/clip12.opus differ diff --git a/assets/audio/voice-keychain/dir22/clip13.opus b/assets/audio/voice-keychain/dir22/clip13.opus new file mode 100644 index 0000000..8edb6c6 Binary files /dev/null and b/assets/audio/voice-keychain/dir22/clip13.opus differ diff --git a/assets/audio/voice-keychain/dir22/clip14.opus b/assets/audio/voice-keychain/dir22/clip14.opus new file mode 100644 index 0000000..88ba4a6 Binary files /dev/null and b/assets/audio/voice-keychain/dir22/clip14.opus differ diff --git a/assets/audio/voice-keychain/dir22/clip16.opus b/assets/audio/voice-keychain/dir22/clip16.opus new file mode 100644 index 0000000..d4f7f40 Binary files /dev/null and b/assets/audio/voice-keychain/dir22/clip16.opus differ diff --git a/assets/audio/voice-keychain/dir22/clip17.opus b/assets/audio/voice-keychain/dir22/clip17.opus new file mode 100644 index 0000000..9718247 Binary files /dev/null and b/assets/audio/voice-keychain/dir22/clip17.opus differ diff --git a/assets/audio/voice-keychain/dir22/clip18.opus b/assets/audio/voice-keychain/dir22/clip18.opus new file mode 100644 index 0000000..84e9da3 Binary files /dev/null and b/assets/audio/voice-keychain/dir22/clip18.opus differ diff --git a/assets/audio/voice-keychain/dir22/clip19.opus b/assets/audio/voice-keychain/dir22/clip19.opus new file mode 100644 index 0000000..0ee30a9 Binary files /dev/null and b/assets/audio/voice-keychain/dir22/clip19.opus differ diff --git a/assets/audio/voice-keychain/dir22/clip20.opus b/assets/audio/voice-keychain/dir22/clip20.opus new file mode 100644 index 0000000..5fecd7b Binary files /dev/null and b/assets/audio/voice-keychain/dir22/clip20.opus differ diff --git a/assets/audio/voice-keychain/dir22/clip21.opus b/assets/audio/voice-keychain/dir22/clip21.opus new file mode 100644 index 0000000..8aac483 Binary files /dev/null and b/assets/audio/voice-keychain/dir22/clip21.opus differ diff --git a/assets/audio/voice-keychain/dir22/clip22.opus b/assets/audio/voice-keychain/dir22/clip22.opus new file mode 100644 index 0000000..08effec Binary files /dev/null and b/assets/audio/voice-keychain/dir22/clip22.opus differ diff --git a/assets/audio/voice-keychain/dir22/clip23.opus b/assets/audio/voice-keychain/dir22/clip23.opus new file mode 100644 index 0000000..51a9aea Binary files /dev/null and b/assets/audio/voice-keychain/dir22/clip23.opus differ diff --git a/assets/audio/voice-keychain/dir22/clip24.opus b/assets/audio/voice-keychain/dir22/clip24.opus new file mode 100644 index 0000000..2df5ef5 Binary files /dev/null and b/assets/audio/voice-keychain/dir22/clip24.opus differ diff --git a/assets/audio/voice-keychain/dir22/clip25.opus b/assets/audio/voice-keychain/dir22/clip25.opus new file mode 100644 index 0000000..6c00a14 Binary files /dev/null and b/assets/audio/voice-keychain/dir22/clip25.opus differ diff --git a/assets/audio/voice-keychain/dir22/clip26.opus b/assets/audio/voice-keychain/dir22/clip26.opus new file mode 100644 index 0000000..8687d63 Binary files /dev/null and b/assets/audio/voice-keychain/dir22/clip26.opus differ diff --git a/assets/audio/voice-keychain/dir22/clip27.opus b/assets/audio/voice-keychain/dir22/clip27.opus new file mode 100644 index 0000000..9123a4f Binary files /dev/null and b/assets/audio/voice-keychain/dir22/clip27.opus differ diff --git a/assets/audio/voice-keychain/dir22/clip28.opus b/assets/audio/voice-keychain/dir22/clip28.opus new file mode 100644 index 0000000..7492e4e Binary files /dev/null and b/assets/audio/voice-keychain/dir22/clip28.opus differ diff --git a/assets/audio/voice-keychain/dir22/clip29.opus b/assets/audio/voice-keychain/dir22/clip29.opus new file mode 100644 index 0000000..032782e Binary files /dev/null and b/assets/audio/voice-keychain/dir22/clip29.opus differ diff --git a/assets/audio/voice-keychain/dir22/clip30.opus b/assets/audio/voice-keychain/dir22/clip30.opus new file mode 100644 index 0000000..920e6a4 Binary files /dev/null and b/assets/audio/voice-keychain/dir22/clip30.opus differ diff --git a/assets/audio/voice-keychain/dir23/clip01.opus b/assets/audio/voice-keychain/dir23/clip01.opus new file mode 100644 index 0000000..5179d32 Binary files /dev/null and b/assets/audio/voice-keychain/dir23/clip01.opus differ diff --git a/assets/audio/voice-keychain/dir23/clip02.opus b/assets/audio/voice-keychain/dir23/clip02.opus new file mode 100644 index 0000000..c4dda94 Binary files /dev/null and b/assets/audio/voice-keychain/dir23/clip02.opus differ diff --git a/assets/audio/voice-keychain/dir23/clip03.opus b/assets/audio/voice-keychain/dir23/clip03.opus new file mode 100644 index 0000000..549eed2 Binary files /dev/null and b/assets/audio/voice-keychain/dir23/clip03.opus differ diff --git a/assets/audio/voice-keychain/dir23/clip04.opus b/assets/audio/voice-keychain/dir23/clip04.opus new file mode 100644 index 0000000..5680ef0 Binary files /dev/null and b/assets/audio/voice-keychain/dir23/clip04.opus differ diff --git a/assets/audio/voice-keychain/dir23/clip05.opus b/assets/audio/voice-keychain/dir23/clip05.opus new file mode 100644 index 0000000..c764925 Binary files /dev/null and b/assets/audio/voice-keychain/dir23/clip05.opus differ diff --git a/assets/audio/voice-keychain/dir23/clip07.opus b/assets/audio/voice-keychain/dir23/clip07.opus new file mode 100644 index 0000000..f1809e8 Binary files /dev/null and b/assets/audio/voice-keychain/dir23/clip07.opus differ diff --git a/assets/audio/voice-keychain/dir23/clip08.opus b/assets/audio/voice-keychain/dir23/clip08.opus new file mode 100644 index 0000000..08c345d Binary files /dev/null and b/assets/audio/voice-keychain/dir23/clip08.opus differ diff --git a/assets/audio/voice-keychain/dir23/clip10.opus b/assets/audio/voice-keychain/dir23/clip10.opus new file mode 100644 index 0000000..f543881 Binary files /dev/null and b/assets/audio/voice-keychain/dir23/clip10.opus differ diff --git a/assets/audio/voice-keychain/dir23/clip11.opus b/assets/audio/voice-keychain/dir23/clip11.opus new file mode 100644 index 0000000..907dc06 Binary files /dev/null and b/assets/audio/voice-keychain/dir23/clip11.opus differ diff --git a/assets/audio/voice-keychain/dir23/clip12.opus b/assets/audio/voice-keychain/dir23/clip12.opus new file mode 100644 index 0000000..6834ef7 Binary files /dev/null and b/assets/audio/voice-keychain/dir23/clip12.opus differ diff --git a/assets/audio/voice-keychain/dir23/clip14.opus b/assets/audio/voice-keychain/dir23/clip14.opus new file mode 100644 index 0000000..5856583 Binary files /dev/null and b/assets/audio/voice-keychain/dir23/clip14.opus differ diff --git a/assets/audio/voice-keychain/dir23/clip15.opus b/assets/audio/voice-keychain/dir23/clip15.opus new file mode 100644 index 0000000..005554d Binary files /dev/null and b/assets/audio/voice-keychain/dir23/clip15.opus differ diff --git a/assets/audio/voice-keychain/dir23/clip16.opus b/assets/audio/voice-keychain/dir23/clip16.opus new file mode 100644 index 0000000..8bf298f Binary files /dev/null and b/assets/audio/voice-keychain/dir23/clip16.opus differ diff --git a/assets/audio/voice-keychain/dir23/clip17.opus b/assets/audio/voice-keychain/dir23/clip17.opus new file mode 100644 index 0000000..3352f5e Binary files /dev/null and b/assets/audio/voice-keychain/dir23/clip17.opus differ diff --git a/assets/audio/voice-keychain/dir23/clip18.opus b/assets/audio/voice-keychain/dir23/clip18.opus new file mode 100644 index 0000000..8125d8b Binary files /dev/null and b/assets/audio/voice-keychain/dir23/clip18.opus differ diff --git a/assets/audio/voice-keychain/dir23/clip19.opus b/assets/audio/voice-keychain/dir23/clip19.opus new file mode 100644 index 0000000..7606de7 Binary files /dev/null and b/assets/audio/voice-keychain/dir23/clip19.opus differ diff --git a/assets/audio/voice-keychain/dir23/clip21.opus b/assets/audio/voice-keychain/dir23/clip21.opus new file mode 100644 index 0000000..95e3483 Binary files /dev/null and b/assets/audio/voice-keychain/dir23/clip21.opus differ diff --git a/assets/audio/voice-keychain/dir23/clip22.opus b/assets/audio/voice-keychain/dir23/clip22.opus new file mode 100644 index 0000000..af3c85e Binary files /dev/null and b/assets/audio/voice-keychain/dir23/clip22.opus differ diff --git a/assets/audio/voice-keychain/dir23/clip23.opus b/assets/audio/voice-keychain/dir23/clip23.opus new file mode 100644 index 0000000..b0053cc Binary files /dev/null and b/assets/audio/voice-keychain/dir23/clip23.opus differ diff --git a/assets/audio/voice-keychain/dir23/clip27.opus b/assets/audio/voice-keychain/dir23/clip27.opus new file mode 100644 index 0000000..17293b7 Binary files /dev/null and b/assets/audio/voice-keychain/dir23/clip27.opus differ diff --git a/assets/audio/voice-keychain/dir23/clip28.opus b/assets/audio/voice-keychain/dir23/clip28.opus new file mode 100644 index 0000000..1f9a759 Binary files /dev/null and b/assets/audio/voice-keychain/dir23/clip28.opus differ diff --git a/assets/audio/voice-keychain/dir23/clip29.opus b/assets/audio/voice-keychain/dir23/clip29.opus new file mode 100644 index 0000000..8ccfb6c Binary files /dev/null and b/assets/audio/voice-keychain/dir23/clip29.opus differ diff --git a/assets/audio/voice-keychain/dir23/clip30.opus b/assets/audio/voice-keychain/dir23/clip30.opus new file mode 100644 index 0000000..638d6c8 Binary files /dev/null and b/assets/audio/voice-keychain/dir23/clip30.opus differ diff --git a/assets/audio/voice-keychain/dir23/clip31.opus b/assets/audio/voice-keychain/dir23/clip31.opus new file mode 100644 index 0000000..7d5298c Binary files /dev/null and b/assets/audio/voice-keychain/dir23/clip31.opus differ diff --git a/assets/audio/voice-keychain/dir23/clip32.opus b/assets/audio/voice-keychain/dir23/clip32.opus new file mode 100644 index 0000000..e205f71 Binary files /dev/null and b/assets/audio/voice-keychain/dir23/clip32.opus differ diff --git a/assets/audio/voice-keychain/dir23/clip33.opus b/assets/audio/voice-keychain/dir23/clip33.opus new file mode 100644 index 0000000..0a1fd30 Binary files /dev/null and b/assets/audio/voice-keychain/dir23/clip33.opus differ diff --git a/assets/audio/voice-keychain/dir23/clip36.opus b/assets/audio/voice-keychain/dir23/clip36.opus new file mode 100644 index 0000000..e770158 Binary files /dev/null and b/assets/audio/voice-keychain/dir23/clip36.opus differ diff --git a/assets/audio/voice-keychain/dir23/clip37.opus b/assets/audio/voice-keychain/dir23/clip37.opus new file mode 100644 index 0000000..6fb7c28 Binary files /dev/null and b/assets/audio/voice-keychain/dir23/clip37.opus differ diff --git a/assets/audio/voice-keychain/long-selection.json b/assets/audio/voice-keychain/long-selection.json new file mode 100644 index 0000000..a52aa87 --- /dev/null +++ b/assets/audio/voice-keychain/long-selection.json @@ -0,0 +1,3465 @@ +{ + "version": "2.6.18", + "scope": "Only the 39 reviewed clips at least 15 seconds; keep review IDs 4,7,8,14,19,24,25,29.", + "before_count": 726, + "after_count": 695, + "before_bytes": 4270480, + "after_bytes": 3293101, + "saved_bytes": 977379, + "kept": [ + { + "name": "rap", + "src": "rap.mp3", + "path": "dir11/clip00.opus", + "samples": 433760, + "duration": 27.11, + "compressed_bytes": 43229, + "category": "å®�å®�肚肚打雷", + "seconds": 27.04, + "index_seconds": 27.11, + "id": 4, + "preview": "04.wav", + "source_sha256": "1b18896899fa356dcb1fe7a7aa1afe4fd6939ed946c32574c9a9d15fb935ac04" + }, + { + "name": "挨刀马DJ2", + "src": "挨刀马DJ2.mp3", + "path": "dir20/clip30.opus", + "samples": 408320, + "duration": 25.52, + "compressed_bytes": 40388, + "category": "纸片人æ�·é£Ž", + "seconds": 25.44, + "index_seconds": 25.52, + "id": 7, + "preview": "07.wav", + "source_sha256": "23a8409e1dc3eb97397490d5fab1382b3efc8ab011b992f5a6b0a54a0a402be5" + }, + { + "name": "《没出æ�¯ã€‹", + "src": "《没出æ�¯ã€‹.mp3", + "path": "dir18/clip00.opus", + "samples": 403200, + "duration": 25.2, + "compressed_bytes": 39163, + "category": "王世å�š", + "seconds": 25.12, + "index_seconds": 25.2, + "id": 8, + "preview": "08.wav", + "source_sha256": "2ecc461d6cbecc3bb7e1358f15b845e7fc94de52cd2bd6d62f02994f461100b6" + }, + { + "name": "哈基歌", + "src": "哈基歌.mp3", + "path": "dir09/clip08.opus", + "samples": 337600, + "duration": 21.1, + "compressed_bytes": 33318, + "category": "哈基米", + "seconds": 21.04, + "index_seconds": 21.1, + "id": 14, + "preview": "14.wav", + "source_sha256": "25b3e6ec0d70c37c46095a20b64c366c42191a7e2a81a70f3f0f3853c495912b" + }, + { + "name": "咪咪咪", + "src": "咪咪咪.mp3", + "path": "dir22/clip09.opus", + "samples": 304160, + "duration": 19.01, + "compressed_bytes": 30324, + "category": "高æ�¾ç�¯", + "seconds": 18.96, + "index_seconds": 19.01, + "id": 19, + "preview": "19.wav", + "source_sha256": "3cac73ef577233a1ca472bb97518491c02ddc07b1a34a14b91280334ef6ba462" + }, + { + "name": "天空", + "src": "天空.mp3", + "path": "dir22/clip13.opus", + "samples": 276480, + "duration": 17.28, + "compressed_bytes": 27515, + "category": "高æ�¾ç�¯", + "seconds": 17.22, + "index_seconds": 17.28, + "id": 24, + "preview": "24.wav", + "source_sha256": "eef97c2175b1f25c154cba89693177210a00552d20b58ed153a5697ed6034cd3" + }, + { + "name": "å�ªå› ä½ å¤ªç¾Ž", + "src": "å�ªå› ä½ å¤ªç¾Ž.mp3", + "path": "dir23/clip07.opus", + "samples": 276480, + "duration": 17.28, + "compressed_bytes": 26866, + "category": "鸡ä¹�", + "seconds": 17.2, + "index_seconds": 17.28, + "id": 25, + "preview": "25.wav", + "source_sha256": "68b7f28c2ee3c9f8760b5bf3bb55686bfe139cf1f06ef72c1abbe3f99bd74ac8" + }, + { + "name": "漫波歌", + "src": "漫波歌.mp3", + "path": "dir09/clip29.opus", + "samples": 267840, + "duration": 16.74, + "compressed_bytes": 26583, + "category": "哈基米", + "seconds": 16.66, + "index_seconds": 16.74, + "id": 29, + "preview": "29.wav", + "source_sha256": "3c80e05789050d117613d62a491e63d10873814701553ab4915bb4c7caeaa511" + } + ], + "removed": [ + { + "name": "大哥别æ�€æˆ‘", + "src": "大哥别æ�€æˆ‘.mp3", + "path": "dir12/clip20.opus", + "samples": 487840, + "duration": 30.49, + "compressed_bytes": 48274, + "category": "å°�团团", + "seconds": 30.44, + "index_seconds": 30.49, + "id": 1, + "preview": "01.wav", + "source_sha256": "48c96f7d00e82b673839b41dff15229d8a178210e925f6c8717db65c49ae347a" + }, + { + "name": "马云歌", + "src": "马云歌.mp3", + "path": "dir09/clip38.opus", + "samples": 473440, + "duration": 29.59, + "compressed_bytes": 46510, + "category": "哈基米", + "seconds": 29.54, + "index_seconds": 29.59, + "id": 2, + "preview": "02.wav", + "source_sha256": "7436d45193b1eee4d85ee8b3d7e9b0daeda09fb1f757fe93cd374287bb1bd88e" + }, + { + "name": "å�¡æ‹‰game", + "src": "å�¡æ‹‰game.mp3", + "path": "dir05/clip02.opus", + "samples": 466560, + "duration": 29.16, + "compressed_bytes": 45096, + "category": "å�¡ä¸˜ç±³é›ªå„¿", + "seconds": 29.1, + "index_seconds": 29.16, + "id": 3, + "preview": "03.wav", + "source_sha256": "b0fc63e2afe720999e4d0b72aead3db8507efd96533a75ac3b06192067a43d81" + }, + { + "name": "出å�–æ­Œ", + "src": "出å�–æ­Œ.mp3", + "path": "dir09/clip02.opus", + "samples": 430880, + "duration": 26.93, + "compressed_bytes": 42705, + "category": "哈基米", + "seconds": 26.88, + "index_seconds": 26.93, + "id": 5, + "preview": "05.wav", + "source_sha256": "2b48ea5b24cc096e1c863b7abfeb5b072561c0e26e71b9d4a7b8b2c7cfeab2f7" + }, + { + "name": "新人注æ„�", + "src": "新人注æ„�.mp3", + "path": "dir05/clip23.opus", + "samples": 412480, + "duration": 25.78, + "compressed_bytes": 40800, + "category": "å�¡ä¸˜ç±³é›ªå„¿", + "seconds": 25.68, + "index_seconds": 25.78, + "id": 6, + "preview": "06.wav", + "source_sha256": "e5c549e91e9a671d2f2eda4bd07a25d23a9ba31e2ff06a8891d9847e59aadffd" + }, + { + "name": "广西大诗", + "src": "广西大诗.mp3", + "path": "dir09/clip21.opus", + "samples": 399680, + "duration": 24.98, + "compressed_bytes": 39661, + "category": "哈基米", + "seconds": 24.92, + "index_seconds": 24.98, + "id": 9, + "preview": "09.wav", + "source_sha256": "24a6280c02e3cb43065e3c2273d9716b8bff8d9f9181dc64fd0d1ac2b0b2b21a" + }, + { + "name": "新年鸡", + "src": "新年鸡.mp3", + "path": "dir23/clip25.opus", + "samples": 399680, + "duration": 24.98, + "compressed_bytes": 38792, + "category": "鸡ä¹�", + "seconds": 24.9, + "index_seconds": 24.98, + "id": 10, + "preview": "10.wav", + "source_sha256": "b15c1a30ada277f2757f4ec1129eeae546552ee94b31a7131b7a5cec2e805265" + }, + { + "name": "二手鸡", + "src": "二手鸡.mp3", + "path": "dir23/clip06.opus", + "samples": 373280, + "duration": 23.33, + "compressed_bytes": 36685, + "category": "鸡ä¹�", + "seconds": 23.26, + "index_seconds": 23.33, + "id": 11, + "preview": "11.wav", + "source_sha256": "9822d3021d4dbab0b11d3f1ca7283e7b2c09f2c4da34712d362b6621fe398d68" + }, + { + "name": "æŒ�ç»­man", + "src": "æŒ�ç»­man.mp3", + "path": "dir19/clip04.opus", + "samples": 365760, + "duration": 22.86, + "compressed_bytes": 35801, + "category": "科比", + "seconds": 22.78, + "index_seconds": 22.86, + "id": 12, + "preview": "12.wav", + "source_sha256": "374ed74932b2898d5053e6ea626b5b957262e0a68c1b9ffdbf662907d919339e" + }, + { + "name": "基米朵朵开", + "src": "基米朵朵开.mp3", + "path": "dir09/clip16.opus", + "samples": 359360, + "duration": 22.46, + "compressed_bytes": 35700, + "category": "哈基米", + "seconds": 22.4, + "index_seconds": 22.46, + "id": 13, + "preview": "13.wav", + "source_sha256": "aa321c9bc0b794a37b5eb815cebf9bb99743d95b7f596274e61ad0a95d377130" + }, + { + "name": "桃花鸡", + "src": "桃花鸡.mp3", + "path": "dir23/clip26.opus", + "samples": 321440, + "duration": 20.09, + "compressed_bytes": 30878, + "category": "鸡ä¹�", + "seconds": 20.0, + "index_seconds": 20.09, + "id": 15, + "preview": "15.wav", + "source_sha256": "50a4ab1ad7e898c7068a94b3b601dcdbc47d56de36915f20e4c2bbe40aa26a08" + }, + { + "name": "骑上我心爱的å°�摩托", + "src": "骑上我心爱的å°�摩托.mp3", + "path": "dir12/clip42.opus", + "samples": 315040, + "duration": 19.69, + "compressed_bytes": 31299, + "category": "å°�团团", + "seconds": 19.6, + "index_seconds": 19.69, + "id": 16, + "preview": "16.wav", + "source_sha256": "c8b38fba4ac02f38bb399e72074df9fcb21f5c7b9b5f4ad44abb379e17d2fdfe" + }, + { + "name": "哈基米雪冰城", + "src": "哈基米雪冰城.mp3", + "path": "dir09/clip12.opus", + "samples": 313920, + "duration": 19.62, + "compressed_bytes": 31153, + "category": "哈基米", + "seconds": 19.54, + "index_seconds": 19.62, + "id": 17, + "preview": "17.wav", + "source_sha256": "161072b2cc30cc09ffd96ab4f0e11c8868e9b2dd8fab4b82691019b3d792ab94" + }, + { + "name": "我从å�—æž�æ�¥", + "src": "我从å�—æž�æ�¥.mp3", + "path": "dir22/clip15.opus", + "samples": 305280, + "duration": 19.08, + "compressed_bytes": 29520, + "category": "高æ�¾ç�¯", + "seconds": 19.0, + "index_seconds": 19.08, + "id": 18, + "preview": "18.wav", + "source_sha256": "ed925cf926422662c7bd1bf5f158e242f2fc7ce95ad247fb2fc8e61a62e02a46" + }, + { + "name": "黎明歌", + "src": "黎明歌.mp3", + "path": "dir09/clip39.opus", + "samples": 303040, + "duration": 18.94, + "compressed_bytes": 30072, + "category": "哈基米", + "seconds": 18.88, + "index_seconds": 18.94, + "id": 20, + "preview": "20.wav", + "source_sha256": "1e3acd24e2000689962d6b02dbc2b896823d8ecfb3a78a2afe3f7988505e64ad" + }, + { + "name": "å°�跳哈基米", + "src": "å°�跳哈基米.mp3", + "path": "dir09/clip19.opus", + "samples": 292000, + "duration": 18.25, + "compressed_bytes": 28762, + "category": "哈基米", + "seconds": 18.18, + "index_seconds": 18.25, + "id": 21, + "preview": "21.wav", + "source_sha256": "2e588a436d174152dc8765d92106613376ee4d5d2bac9872214c30cdedb04104" + }, + { + "name": "å±±å�¡æ­Œ", + "src": "å±±å�¡æ­Œ.mp3", + "path": "dir09/clip20.opus", + "samples": 288640, + "duration": 18.04, + "compressed_bytes": 28253, + "category": "哈基米", + "seconds": 17.96, + "index_seconds": 18.04, + "id": 22, + "preview": "22.wav", + "source_sha256": "720657da9882f57481761d10e7b346cd0dc7b10a4050471cc8d189438efb8d58" + }, + { + "name": "魔术", + "src": "魔术.mp3", + "path": "dir05/clip35.opus", + "samples": 284000, + "duration": 17.75, + "compressed_bytes": 28174, + "category": "å�¡ä¸˜ç±³é›ªå„¿", + "seconds": 17.68, + "index_seconds": 17.75, + "id": 23, + "preview": "23.wav", + "source_sha256": "3f1d0a615af2d34174cdbfd6284d87db7847f3ab049975a51ed69b902a82a343" + }, + { + "name": "DJ鸡", + "src": "DJ鸡.mp3", + "path": "dir23/clip00.opus", + "samples": 275840, + "duration": 17.24, + "compressed_bytes": 26800, + "category": "鸡ä¹�", + "seconds": 17.16, + "index_seconds": 17.24, + "id": 26, + "preview": "26.wav", + "source_sha256": "622fcf43203901c4e9988d427fd058fda4eb793c241cdb2e032adfb5bd305dc2" + }, + { + "name": "大å�‰å¤§åˆ©", + "src": "大å�‰å¤§åˆ©.mp3", + "path": "dir09/clip17.opus", + "samples": 271840, + "duration": 16.99, + "compressed_bytes": 26839, + "category": "哈基米", + "seconds": 16.9, + "index_seconds": 16.99, + "id": 27, + "preview": "27.wav", + "source_sha256": "6d239353bb0676c04bc147b3bc63a4480053a08ed95e70ae849a3ae9c0bc7ac2" + }, + { + "name": "鸡蛋里并没有放葱(犯错)", + "src": "鸡蛋里并没有放葱(犯错).mp3", + "path": "dir20/clip49.opus", + "samples": 268480, + "duration": 16.78, + "compressed_bytes": 26738, + "category": "纸片人æ�·é£Ž", + "seconds": 16.7, + "index_seconds": 16.78, + "id": 28, + "preview": "28.wav", + "source_sha256": "9f116b1df30206dc42baf995227e5287086836a23091898c4282b70882d89215" + }, + { + "name": "惊魂鸡", + "src": "惊魂鸡.mp3", + "path": "dir23/clip24.opus", + "samples": 266080, + "duration": 16.63, + "compressed_bytes": 25434, + "category": "鸡ä¹�", + "seconds": 16.54, + "index_seconds": 16.63, + "id": 30, + "preview": "30.wav", + "source_sha256": "cca5c518e78491c6c51faff90fbf4d30ca2ab5e695a64ffb2d1cb4b68002c286" + }, + { + "name": "梦中歌", + "src": "梦中歌.mp3", + "path": "dir09/clip25.opus", + "samples": 260320, + "duration": 16.27, + "compressed_bytes": 25844, + "category": "哈基米", + "seconds": 16.2, + "index_seconds": 16.27, + "id": 31, + "preview": "31.wav", + "source_sha256": "a529860cb1b7be95a82a1ef25b26775b6719c6c9aefcd78f9210aa94b9edf308" + }, + { + "name": "Cå“©æ­Œ", + "src": "Cå“©æ­Œ.mp3", + "path": "dir09/clip00.opus", + "samples": 259200, + "duration": 16.2, + "compressed_bytes": 25679, + "category": "哈基米", + "seconds": 16.14, + "index_seconds": 16.2, + "id": 32, + "preview": "32.wav", + "source_sha256": "b65556cd8cb94d72681830620e0843597f9fb13a2a4cf402b76c7da7671aa245" + }, + { + "name": "大风车", + "src": "大风车.mp3", + "path": "dir12/clip21.opus", + "samples": 254080, + "duration": 15.88, + "compressed_bytes": 25170, + "category": "å°�团团", + "seconds": 15.8, + "index_seconds": 15.88, + "id": 33, + "preview": "33.wav", + "source_sha256": "63e0fb4399b8c3bf899e834542359f1e1c13c29878e975144298dd6365c337f2" + }, + { + "name": "哦耶歌", + "src": "哦耶歌.mp3", + "path": "dir09/clip14.opus", + "samples": 254080, + "duration": 15.88, + "compressed_bytes": 25100, + "category": "哈基米", + "seconds": 15.8, + "index_seconds": 15.88, + "id": 34, + "preview": "34.wav", + "source_sha256": "863978dc439d7a0156cffe8b6390c37e567c136bc71d7fc43f59d6ad46504e21" + }, + { + "name": "沉默歌", + "src": "沉默歌.mp3", + "path": "dir09/clip27.opus", + "samples": 251200, + "duration": 15.7, + "compressed_bytes": 24786, + "category": "哈基米", + "seconds": 15.62, + "index_seconds": 15.7, + "id": 35, + "preview": "35.wav", + "source_sha256": "a3b505152a91e17bdb5bc088a988a6e2ea5f1f49a82084fd3dfafd42ffa826d8" + }, + { + "name": "连招", + "src": "连招.mp3", + "path": "dir23/clip34.opus", + "samples": 247680, + "duration": 15.48, + "compressed_bytes": 24272, + "category": "鸡ä¹�", + "seconds": 15.4, + "index_seconds": 15.48, + "id": 36, + "preview": "36.wav", + "source_sha256": "b88ca52e25e3719e60554fa7c111afb670045bb9d6d0a971adf7a0f4189e96f5" + }, + { + "name": "香蕉歌", + "src": "香蕉歌.mp3", + "path": "dir09/clip37.opus", + "samples": 247040, + "duration": 15.44, + "compressed_bytes": 24256, + "category": "哈基米", + "seconds": 15.36, + "index_seconds": 15.44, + "id": 37, + "preview": "37.wav", + "source_sha256": "dba61ea6b90ae488a7734d6c3a8d3cb14927c6497d647d62a83ce06ece6a6adc" + }, + { + "name": "当当当", + "src": "当当当.mp3", + "path": "dir12/clip25.opus", + "samples": 245920, + "duration": 15.37, + "compressed_bytes": 24268, + "category": "å°�团团", + "seconds": 15.3, + "index_seconds": 15.37, + "id": 38, + "preview": "38.wav", + "source_sha256": "a413f2710de4d787c5eb5c8a18f8e4bdcf8cf3520d5f6d5e4267d98802b4eb3b" + }, + { + "name": "哈基米山歌", + "src": "哈基米山歌.mp3", + "path": "dir09/clip11.opus", + "samples": 244800, + "duration": 15.3, + "compressed_bytes": 24058, + "category": "哈基米", + "seconds": 15.24, + "index_seconds": 15.3, + "id": 39, + "preview": "39.wav", + "source_sha256": "42fba5a30b365326a089f61f52c2cf1a236592b8cd2edc0df0978c030052fc18" + } + ], + "before_assets": { + "dir00/clip00.opus": { + "sha256": "70055b451d63b16dbdf8ff58c02c989d501ae647259acd5fa758a50d7de9ec54", + "bytes": 3365 + }, + "dir00/clip01.opus": { + "sha256": "540572df234fa0925cbb9a6c0c70216028b0e6e12c0c97e42e0bfff2aa0eb7ea", + "bytes": 4943 + }, + "dir00/clip02.opus": { + "sha256": "b88b85ac292632aa0a2b0db7643e31f034aa2b6ebd117dd12be96c3d17460c72", + "bytes": 5994 + }, + "dir00/clip03.opus": { + "sha256": "34fc792423058c120f2752d8d4bcaa4f2348b3cee1fc2644a6a8e6c916727eab", + "bytes": 3850 + }, + "dir00/clip04.opus": { + "sha256": "6b728f73b5cf947b54cb02f9afbc0a071e4cfa83e705e0089c969b23884082c1", + "bytes": 4330 + }, + "dir00/clip05.opus": { + "sha256": "72139e4f6af8643451a6bac8569b984bab51779e097e370e02bda5e2be075abc", + "bytes": 3581 + }, + "dir00/clip06.opus": { + "sha256": "2274c6741be0692373e5e80746fbbf654ae9318b6676fcd3463bdf232ed9af8d", + "bytes": 2111 + }, + "dir00/clip08.opus": { + "sha256": "2dcbc3eab71d7a8f37d11293b556d488d5a71c28e022232b64fbd91926eda419", + "bytes": 5959 + }, + "dir00/clip09.opus": { + "sha256": "96b3dc35d5b740d229b2d842fab9a7b20529b30ec5d88199d1379e00bfb1725c", + "bytes": 3723 + }, + "dir00/clip10.opus": { + "sha256": "94db9b0d5639871a1aab70580c508632a46c80cb09b8ebc5415ab5651570f07c", + "bytes": 2593 + }, + "dir00/clip11.opus": { + "sha256": "a5f0631c9af317c083da4af15eeeb9257ad471056433fb3ed9e35c9b6ba5933c", + "bytes": 5169 + }, + "dir00/clip13.opus": { + "sha256": "1d40efad532ae85585d403e7ab2f618feaad96a23fe2694fd28bf6ece3a6ff2b", + "bytes": 4732 + }, + "dir00/clip14.opus": { + "sha256": "90a64ff6364a42443d96fd73244e20f65a1d32a4f05557296f342ba473d9d41e", + "bytes": 4937 + }, + "dir00/clip15.opus": { + "sha256": "71405971a5d7a4ad292fbd961984bf89c75d3ae2b4a85b02fd011d0793b9839d", + "bytes": 4132 + }, + "dir00/clip16.opus": { + "sha256": "554342785381db97656bf78f5d39800b88cf8291abf1c907c2a6782b907d9368", + "bytes": 4161 + }, + "dir00/clip17.opus": { + "sha256": "4ea80a4804c7966d13d993e72293578e1007a6ad49615a477d1dc545d90a57c1", + "bytes": 6549 + }, + "dir00/clip18.opus": { + "sha256": "62c8a3ab9a88cc422c353e52df79b19e2f2254c2c73f0eff3a40e4b2cdc91c11", + "bytes": 3517 + }, + "dir00/clip19.opus": { + "sha256": "fb9dedb6f33e6cac5383bf7728f0d2ebf5d2b2148bdc32a3d6a4fc682f16d7d0", + "bytes": 3250 + }, + "dir00/clip20.opus": { + "sha256": "b2313f33074f3b568c850e5c63b57335ce561c032889cab708f39792995811fd", + "bytes": 4512 + }, + "dir00/clip21.opus": { + "sha256": "70dc1d94fd2c29be7cbfaa9b2a3288d7e90efc38d9ad6912746103c68bd08e1d", + "bytes": 3654 + }, + "dir00/clip23.opus": { + "sha256": "e3783186ff03d85abd3c68cfca0644c5d2af6c145f2c89853aae72b7bea66466", + "bytes": 3195 + }, + "dir00/clip24.opus": { + "sha256": "eb2c4733abc8cd9ded536cf6e0d1ca2364d2f37bf455c957e0329276d1c93eb6", + "bytes": 3398 + }, + "dir00/clip25.opus": { + "sha256": "59464bb1796492eb76eb8496323cd8c5ad847a146a2f3f135f4e8d11d5ae37ee", + "bytes": 2406 + }, + "dir00/clip26.opus": { + "sha256": "d57340efa840a5432a72b863ff6ebe5ed8dd7b804c64b6645fadb87c8b907961", + "bytes": 3218 + }, + "dir00/clip27.opus": { + "sha256": "a7886b2a255ac3820a02a5b8805931a58a06381f72dd905692b8472567c2f5a9", + "bytes": 3122 + }, + "dir00/clip28.opus": { + "sha256": "8b4d82c47ce85990a18ad9ba93a0524f2746a69cf7d516273287cd8f591b53fc", + "bytes": 5232 + }, + "dir00/clip29.opus": { + "sha256": "0b449ee1a20bb9f37b07b8fee03dfa7fbc8c62ffcf4e6fa89246358291439f39", + "bytes": 5135 + }, + "dir00/clip30.opus": { + "sha256": "b7bd39ed26cac017c60128baea4929a44a3cbb74814fde2cedbdba3393307b38", + "bytes": 5826 + }, + "dir00/clip31.opus": { + "sha256": "2b21f8f987e9f1638c82f73e67163b0d6656f1991e2da0ebdd4576b0abc14829", + "bytes": 6016 + }, + "dir00/clip33.opus": { + "sha256": "6e32d9b58674dd9eccfcf88ee688478f21ce225c80c56c6d37d227aa8c99cbbf", + "bytes": 2507 + }, + "dir00/clip34.opus": { + "sha256": "0ac54fd90b34cb457e228b5a19c64a2d666e7b77d22ef40868c74766e51a0c2a", + "bytes": 3930 + }, + "dir00/clip35.opus": { + "sha256": "abffc389f11ba50f3078e661a2f8a45a5ad00f50d9ba23af6153d16014bebeea", + "bytes": 8539 + }, + "dir00/clip36.opus": { + "sha256": "a9d0461ea461b0350eba62ff5c0bd18cd328cee1aa7af36114d372744f7d41c5", + "bytes": 2501 + }, + "dir00/clip37.opus": { + "sha256": "dccf07c110211306359afd9cf22ad12f89f700ec41449a3a711793a36ccad09a", + "bytes": 3719 + }, + "dir01/clip00.opus": { + "sha256": "512c9de193c2a3477aaeefd54fe1ac263679b62ad48582d3deb3a5e9513c0a09", + "bytes": 742 + }, + "dir01/clip03.opus": { + "sha256": "21b360ce7bbd375cf6d13dbfe93b7684fa7859ff14eac3ccd782831aa88f7d9e", + "bytes": 971 + }, + "dir01/clip04.opus": { + "sha256": "b6c683535d4d276927899424678fb3be4cf9bef4ac38c81c792387f5f9e6712c", + "bytes": 886 + }, + "dir01/clip05.opus": { + "sha256": "42d5baca234a03051fd5f2c5d22662979b4d6615c54ed2e8fba76f8b4ebd27bd", + "bytes": 1269 + }, + "dir01/clip06.opus": { + "sha256": "fc5037539fd7494c3d98b929ecaccdfb899cd64cd6c734346c79bf80e9ab4707", + "bytes": 1485 + }, + "dir01/clip07.opus": { + "sha256": "34de8338a3e923043d044cc865c8d5773c482c87fcb945002cc1872803a6abed", + "bytes": 1099 + }, + "dir01/clip08.opus": { + "sha256": "ae2d4e8a05960608af07dbfa6c28a1463e1b3ff94b342e85c1008f09abe775f2", + "bytes": 1940 + }, + "dir01/clip09.opus": { + "sha256": "25e84c550a87abce9a2397aa20f94a1250385aec1af2bba2bde0325e2656c15a", + "bytes": 1381 + }, + "dir01/clip10.opus": { + "sha256": "c1ffb71ccccaffb559e1afa56e0a06c1dc1e4b2377b3882c280d85cc8827b6ba", + "bytes": 1544 + }, + "dir01/clip11.opus": { + "sha256": "127caa7633d86b6383d15d4d2ebbd3195a1be5eb9e93639874d82f7503451e82", + "bytes": 1974 + }, + "dir01/clip12.opus": { + "sha256": "205d83ffb2d29ec218b5923a8a3f31e4d92fc7e624c91ccf9031435c98c2370f", + "bytes": 1110 + }, + "dir02/clip00.opus": { + "sha256": "761391b738949e8f218a82ef94f401cfb9257d0526a94419f94e6a77982251bc", + "bytes": 9545 + }, + "dir02/clip01.opus": { + "sha256": "89442b2b0032b7381b3f2073948a30b979509856d22fc532c702cbdea1e0781a", + "bytes": 10587 + }, + "dir02/clip02.opus": { + "sha256": "22bdf29cc774c692e005a90f15ea1f623753dc1107b19cfcd04e9eff36187c3a", + "bytes": 952 + }, + "dir02/clip03.opus": { + "sha256": "520f6255a0a9f1102ab6b3e8fd61a8e008ae7a848b8104ce09e36318899df8b1", + "bytes": 901 + }, + "dir02/clip04.opus": { + "sha256": "baf5ce2b4596ec66053baf0a65a292d3af3ab12aedd92b16e6be08a81f80ae44", + "bytes": 2935 + }, + "dir02/clip05.opus": { + "sha256": "ace8d13490cad32a2901774a8a24feb0824a9a2cabf2433e83317fa4cb6521f5", + "bytes": 3764 + }, + "dir02/clip07.opus": { + "sha256": "d2b5eb6510a119b78c2fee613e4164d4451097ab445fa5272e375a44066e0ee0", + "bytes": 2089 + }, + "dir02/clip08.opus": { + "sha256": "b7cd921a58004a4e0e3545126ac008333646cdfa8730a66d1cc2b4cdcf0fe9c3", + "bytes": 7114 + }, + "dir02/clip09.opus": { + "sha256": "5b7af6cdf094ebfd7f2085f618e259b9e834c20ec3006e804e49165067bb9b27", + "bytes": 5356 + }, + "dir02/clip10.opus": { + "sha256": "d9d8badac27cf7297c175c1849c2359ac5bc40178bbe03d5f11938b7f33a21f0", + "bytes": 6454 + }, + "dir02/clip11.opus": { + "sha256": "cf973e36abf46b254dd52a5c4b5a50e7ab80ef3c47901400270b63cc19ca4efa", + "bytes": 6477 + }, + "dir02/clip12.opus": { + "sha256": "be82e273c891b3fac9415753af25dc849d7de687085ff2f3427e67b79812cc7f", + "bytes": 7055 + }, + "dir02/clip13.opus": { + "sha256": "c6719fb94ca15c079e308ee29cddf454361f414a48c0411d66bb16c1f46123ac", + "bytes": 5212 + }, + "dir02/clip14.opus": { + "sha256": "1730573222034b7b553a534aaed3a3acbf41ae37bc105914581a51c5b2d30b4d", + "bytes": 2034 + }, + "dir02/clip15.opus": { + "sha256": "284da9e2465ae5420cca314be70fd47e95961b0fd73b4f4237f875d1b18a4e6e", + "bytes": 5514 + }, + "dir02/clip16.opus": { + "sha256": "7518017c4f901b769f049046ebdd23655e3eefc0edea6368c2520d897ba29255", + "bytes": 3950 + }, + "dir02/clip17.opus": { + "sha256": "968e43e7d63bea2db0b2904c02574433792effecc7f9a58637f145330ad61c3d", + "bytes": 4256 + }, + "dir02/clip18.opus": { + "sha256": "3e9ab4e2a2c35afcbc47a7bb4382883cb11a7f929cb7a4cec47459e8b11e8e4c", + "bytes": 5885 + }, + "dir02/clip19.opus": { + "sha256": "e84bd06f6600e54eda53182cc232fa4c5f47021afc451f5448f171acdee33adb", + "bytes": 1272 + }, + "dir02/clip20.opus": { + "sha256": "1e03ba62d5491c426b30d82a52393fc30c38b44cdcb91c376206048f22aa99a9", + "bytes": 6512 + }, + "dir02/clip21.opus": { + "sha256": "2a593cb5d40308c646ac0dbd8743ce733a78846c8b9e82456d1570b16f065ca6", + "bytes": 1898 + }, + "dir02/clip22.opus": { + "sha256": "d81840714a4f1188e52b1f07be0a9180062f6370c1563313b54fc7ad86308d01", + "bytes": 8054 + }, + "dir02/clip23.opus": { + "sha256": "1683ee1a1dbc622b471da83c87488941e07ff0eac612b8cd354c7102fcbc57e0", + "bytes": 5891 + }, + "dir02/clip24.opus": { + "sha256": "06ce4829d8c078d05e3b96ac49d90be60df9e56bf4142334a16fc95e8f7c55ac", + "bytes": 2399 + }, + "dir02/clip25.opus": { + "sha256": "6e50bafd4330b1735dcf48922a75b0985f6c0d15571cd93f64887dda8a71d66f", + "bytes": 3354 + }, + "dir02/clip26.opus": { + "sha256": "7b35ef5e1da968609e0b013e4141c579ecdaf5b070e3a8e2970d7a80e16e5cfa", + "bytes": 2145 + }, + "dir02/clip27.opus": { + "sha256": "3ff78a8b5e45ee40a44a9a00a2152aeeddf590ab6383720dadaa9997e3af7fd3", + "bytes": 1843 + }, + "dir02/clip28.opus": { + "sha256": "ea202a82015d139897bbe8e80fd6f870aa87122bbd00b59f4df711009b91f3d2", + "bytes": 7780 + }, + "dir02/clip29.opus": { + "sha256": "ae5f3a356f8653fb69ee854ae731a18ea3be860ed42b990af15ff373f9221f7c", + "bytes": 6324 + }, + "dir02/clip30.opus": { + "sha256": "997cc80b16695c87a2129f27685e742f93ec1c15b0af4d8adb200854fe11f078", + "bytes": 6633 + }, + "dir02/clip31.opus": { + "sha256": "82ee7a2b93a248e632e89da83b09480e04415a366b14063b01af4eb63da621b6", + "bytes": 5333 + }, + "dir02/clip32.opus": { + "sha256": "58e25dc1a9164d11607d87a0c51f443f06cb148c307a605590ca2567c9a31e55", + "bytes": 4936 + }, + "dir02/clip33.opus": { + "sha256": "43551fa7fba8a8076791e94f679c92046e3355ca059236cafe09ce12bb071421", + "bytes": 6854 + }, + "dir02/clip34.opus": { + "sha256": "13bd924c6b54d4a347dbb466746397d6b56d789ea49da680f30cbcb9e9cf032c", + "bytes": 5132 + }, + "dir02/clip35.opus": { + "sha256": "96b724c4d2757d8901dd600df7040ad328dc8209be05bbd6a730da77a637f951", + "bytes": 6508 + }, + "dir02/clip36.opus": { + "sha256": "77da031edcd456af3b2d8a6d5a0251951e9360a2e50afbe75231dbc4d065b0e7", + "bytes": 5038 + }, + "dir02/clip37.opus": { + "sha256": "7d6e8ea2b8c0e70a35d5934f98e5c455c215c31567a5930490491947ea78b5ab", + "bytes": 6923 + }, + "dir02/clip38.opus": { + "sha256": "6e679fb17ed4cf699c4d564fb4b9f945e6dcce43d97fb3dc916eca1fe5530294", + "bytes": 3502 + }, + "dir03/clip00.opus": { + "sha256": "b9a87b539eebca1ee6a1af235288fe2558488c79714fe0bbcf8ba6bb3620ae96", + "bytes": 4810 + }, + "dir03/clip01.opus": { + "sha256": "8ca1e7109bc0d14bb5366f59ef5d6450f0ba99604abb3bc1dbc37da3a583de10", + "bytes": 5503 + }, + "dir03/clip02.opus": { + "sha256": "236c8f4fb59f1c895608c2d720830974b3fea9e12875fd204f953dff8270bd4b", + "bytes": 519 + }, + "dir03/clip03.opus": { + "sha256": "e494a595a986a44fb22734fa3f5b9c6cb59868f50b2d595c05eb3927a9afa4dc", + "bytes": 1229 + }, + "dir03/clip04.opus": { + "sha256": "44adfe809897c733eb0769643761d46fc5e59be0fffad90572995e59962f2f51", + "bytes": 1029 + }, + "dir03/clip05.opus": { + "sha256": "cd2794aa4d77cdffe95c2d4398618410fc3658c81a00224b5eab185344e560f4", + "bytes": 2583 + }, + "dir03/clip06.opus": { + "sha256": "783679c8a23402af35131b4722463d37cbbb20d88e37b09f661a05f272725ef9", + "bytes": 3296 + }, + "dir03/clip07.opus": { + "sha256": "6aec2a36354ad74d255c2f363cf0dbbba03c538f7446c2b62f2db09e5afa2b27", + "bytes": 1756 + }, + "dir03/clip08.opus": { + "sha256": "b48f7a549056820e8724ae5f6179b6dd1bc3e4709e9c9bf127039de218def382", + "bytes": 1355 + }, + "dir03/clip09.opus": { + "sha256": "f9cd8df9e3995e50b30c7e056342bef79426c6617c432479e0960e69496bf28e", + "bytes": 1766 + }, + "dir03/clip10.opus": { + "sha256": "b0a3025c7aa96f6d6b76017305fd23936f45e6970afce8d9973d69bd0e7883ba", + "bytes": 772 + }, + "dir03/clip11.opus": { + "sha256": "1bbc5abd897f7a59c699dc94b3e2b5f5eca725e3a57f3f98ba90021612bc18f3", + "bytes": 750 + }, + "dir03/clip12.opus": { + "sha256": "e40b9cf196a9285347d2a047bc65562b180c09d115ddd2e7b4bf45c6d8ba7d06", + "bytes": 1020 + }, + "dir03/clip13.opus": { + "sha256": "634916c141c7a55711937c3cf9a532666e6cfd9660869137d787e6f95a693875", + "bytes": 2973 + }, + "dir03/clip15.opus": { + "sha256": "db874dcd8372e4022252dbdb525f1742b277ec60b065e171b44847729dfdbcd6", + "bytes": 17208 + }, + "dir03/clip16.opus": { + "sha256": "5f3adfa0e6659f194c3081e9bd72bd32710a6615e8d34c8433fe48bcaa77a472", + "bytes": 1825 + }, + "dir03/clip17.opus": { + "sha256": "fc3c79a2d505c5fb5d32ab871b59084e202b1776640db567bdbd39aefeae7361", + "bytes": 1260 + }, + "dir03/clip18.opus": { + "sha256": "f4cef3095ed914394f6b4f9db27385dd7afa880bd54c014b23a4a77b5ed2adac", + "bytes": 1917 + }, + "dir03/clip19.opus": { + "sha256": "ed3db2262693083065630895af7debc2a1ef4e07bbd6230a0f7962239e4a3051", + "bytes": 1640 + }, + "dir03/clip20.opus": { + "sha256": "73049504368aa81c2df27a47f0696cb03520c28949ad09aea9dc7bd4b732eb8e", + "bytes": 2914 + }, + "dir03/clip21.opus": { + "sha256": "061853da080a4d79177e6053029ee02ee97667338fdd5fda53df30cb211097e3", + "bytes": 2530 + }, + "dir03/clip24.opus": { + "sha256": "0747766119d9d0c44627fcbc6d6f53e287b3c3d9f284b6c81f1ea30d2ca82584", + "bytes": 798 + }, + "dir03/clip25.opus": { + "sha256": "4e61e79e8f302eea1d19f4b00690ae23b38d8f3e21accb3dfcfdf3faf854c999", + "bytes": 824 + }, + "dir03/clip26.opus": { + "sha256": "48f39e72543bdc57aa2cfce5f75f52e8240382bc3c3fb292c5e925520f7cf49e", + "bytes": 3553 + }, + "dir03/clip27.opus": { + "sha256": "741845f4739433d426ce2b59cf1d0c5e4c1c239eb0e3b5ff400e85158d73d16e", + "bytes": 1472 + }, + "dir03/clip28.opus": { + "sha256": "d3d42f3c414b916469432cbfb91474e0fb49f18eee110c824a851feb680149c7", + "bytes": 2273 + }, + "dir03/clip29.opus": { + "sha256": "6b142ee9bc8d9c8c7db60ef0d2c08ce211dc2c809babfedf20cbf397552e370e", + "bytes": 2953 + }, + "dir03/clip30.opus": { + "sha256": "9cfccbdc9cbda4e78b3b7298b270443c13833c564b004cb649f7ec3d27abacd6", + "bytes": 5814 + }, + "dir04/clip00.opus": { + "sha256": "56a123411bdacbca37e218005468fc83672bf9ce0c7fdb21b20706eb65afb654", + "bytes": 4598 + }, + "dir04/clip01.opus": { + "sha256": "3740a72f9fb888dc3cf739e7e2eaa2165d1e6863f5b9a4b57be2ab458844f3c2", + "bytes": 5303 + }, + "dir04/clip02.opus": { + "sha256": "51cc15472ba1a2013f580f6102403866ccccf5783e164c8bc707a75451c06564", + "bytes": 11976 + }, + "dir04/clip03.opus": { + "sha256": "4d812334f0790aa8d790bb5a687a1039b9f4f9bb81b6b486057674a0c981bc85", + "bytes": 14691 + }, + "dir04/clip04.opus": { + "sha256": "810862b35d0b3a0836ec50548dc2413194721f346244de504b0c08477a6c88e9", + "bytes": 5376 + }, + "dir04/clip05.opus": { + "sha256": "2cba94cfe3526022544eb75dad9c0dfb29e176f7f6b2236058d946569fe1ecb5", + "bytes": 3692 + }, + "dir04/clip06.opus": { + "sha256": "9c3f8c2a04a418ce6fe4fc0269f94a805bb99a5aee99c62d2cdcd8f403707d90", + "bytes": 3831 + }, + "dir04/clip07.opus": { + "sha256": "bf366eb06c0525bc908d0e11628c3866a7d8d5904eea2bfbe761eeb46f74c249", + "bytes": 7606 + }, + "dir04/clip08.opus": { + "sha256": "21f5c57544e7ac6e02f0b97035695ec0bc7e2c4760f90e1417cf6993db2e1664", + "bytes": 8410 + }, + "dir04/clip09.opus": { + "sha256": "2711704bfe7ae61765c908103ce37fcee5cdc3ff4d60f3ede4dd9039a9daa3bb", + "bytes": 3445 + }, + "dir04/clip10.opus": { + "sha256": "2adfe09288727cab59b3b6248fa10500126cf2d82ad6f5c939f16f6a96b682d2", + "bytes": 6142 + }, + "dir04/clip12.opus": { + "sha256": "266ffb0fe89b86c9f2e33716dcdf8d8de7dc2cf1e8be9c4df0fdd1cd4ca9140a", + "bytes": 5446 + }, + "dir04/clip13.opus": { + "sha256": "d53ec3f30e0f8ef814bfa5291b17ffd64503028036ef11f604b5f3db4df8934c", + "bytes": 3587 + }, + "dir04/clip14.opus": { + "sha256": "b0718ac69c4dd81eeb1ed64abd9be647fb0bddf1c87e83059ba5e71735053c41", + "bytes": 3905 + }, + "dir04/clip15.opus": { + "sha256": "8c0f92819d30e1ea05e9731ad081fee4e0a542ab4acce3ede3e6c7da56271a26", + "bytes": 5203 + }, + "dir04/clip16.opus": { + "sha256": "e60338049f6b32f2ffa2adffbe33671b597d56d38b831e90351e2e8aaca898ab", + "bytes": 3499 + }, + "dir04/clip17.opus": { + "sha256": "b7e7fa7c88d66b036a70d98413f8acf2a25702ccd24adecde7f73dc19e6651e7", + "bytes": 5468 + }, + "dir04/clip18.opus": { + "sha256": "230b97b62cac748124d01d6e76ab3fde4c69239c832ce1c495ec0615a5c142e1", + "bytes": 3759 + }, + "dir04/clip19.opus": { + "sha256": "5b2bcbbf5986af5970a014e70611db4b50c76227c849027a75f47aa8c1a744bd", + "bytes": 5124 + }, + "dir04/clip20.opus": { + "sha256": "289393982ca5bb2d3f5dcfc823453fbe3ff5ce8ac7985cc2c4c5e6d1ea65b3b4", + "bytes": 3374 + }, + "dir04/clip21.opus": { + "sha256": "893ca38170b8749483f0b7e6dc0b6cb9301184d1763597734912702931ddb58e", + "bytes": 5483 + }, + "dir04/clip22.opus": { + "sha256": "2b404aff1cc5774155d6c24feff88982841cfdb4155a5458a95608ff5e756093", + "bytes": 10779 + }, + "dir05/clip00.opus": { + "sha256": "4c9631c0954e04a9070a089f3fb318bcf64ac6e0c9ee8179ee0ae1d1177640d9", + "bytes": 5821 + }, + "dir05/clip01.opus": { + "sha256": "1060da19c888272d0cc856a3aaa99579c255d19f2273b069fb6189f3381b3997", + "bytes": 5184 + }, + "dir05/clip02.opus": { + "sha256": "b0fc63e2afe720999e4d0b72aead3db8507efd96533a75ac3b06192067a43d81", + "bytes": 45096 + }, + "dir05/clip03.opus": { + "sha256": "23a25496df4be755fe9ad9ad72b7f8d10f70e6e78b78810ea7b221cb3c42e569", + "bytes": 2518 + }, + "dir05/clip04.opus": { + "sha256": "00fdd1509aee0cdfb556c31748915be7c63c2540ddac88607109ca0364031045", + "bytes": 5336 + }, + "dir05/clip05.opus": { + "sha256": "e9b26ec395fcab748bb3dfa67befc2cfacdfd5cc19bf8b850f35fa78ee27418c", + "bytes": 1648 + }, + "dir05/clip06.opus": { + "sha256": "04e1be09b4a4b698b401da42b77960da4023161cf5e2891e3124997860111622", + "bytes": 5553 + }, + "dir05/clip07.opus": { + "sha256": "b48ec4a526d3a4c43d6abe0a223598591d9198a2ac7852576fa39e8fc6661758", + "bytes": 3270 + }, + "dir05/clip08.opus": { + "sha256": "a9d81a44912a1a2f41551e6fbea9dd05a379edb8a7bb384668e2a2231675d09f", + "bytes": 6641 + }, + "dir05/clip09.opus": { + "sha256": "e51bd3a6da4f3fb0be3b139cb0dd4617c59de987be0732c2f4fa1fc27796d38a", + "bytes": 2849 + }, + "dir05/clip11.opus": { + "sha256": "c0666aca3d3c78259af88d5eae771b433230d6f2ab0c2cbc67b08d7848665ee5", + "bytes": 789 + }, + "dir05/clip12.opus": { + "sha256": "ed62f12f3a4ef37fde64e64a1b00bfbac3ccaa65e16a4b8315645ce7921b4b9d", + "bytes": 3806 + }, + "dir05/clip13.opus": { + "sha256": "fc1d86c62f641c61b97faf4f9f1404fe218e1bf17f3000eac85554a13d4663a0", + "bytes": 6130 + }, + "dir05/clip14.opus": { + "sha256": "7442b51b4824623c2dd99ab4c673e5478ec6bbdfae754ea122b8c8e569ccee60", + "bytes": 3221 + }, + "dir05/clip15.opus": { + "sha256": "325b480f39c6b04b56bffade454d77ed47c1cfdb82f8a235268d2983429fa5f6", + "bytes": 4039 + }, + "dir05/clip16.opus": { + "sha256": "3c8820095d4b701a9e57d9464fa9dd0e42356c0dfe083683862e0ab47706c7b6", + "bytes": 1991 + }, + "dir05/clip17.opus": { + "sha256": "151278b0f434f093894ad852a51c160bc858afe76abe248057da4a2fec605587", + "bytes": 5102 + }, + "dir05/clip18.opus": { + "sha256": "50c71717a9354b8ef089fe5caf7cb653a8df3a987983df7b0b14681950a80f2d", + "bytes": 5234 + }, + "dir05/clip19.opus": { + "sha256": "5b3835772a3b07ff3b72ecf39a859ed556323fb852ad0e6f4e0570a61e85a3fc", + "bytes": 1986 + }, + "dir05/clip20.opus": { + "sha256": "a594e300c04f3eab3fb38cd7a6500fca4ecd849c6cc224be1ac66a1157100aac", + "bytes": 4310 + }, + "dir05/clip21.opus": { + "sha256": "99040394606627af42905cfded05d9603cda53f4f98de66057a196dd7d1b0840", + "bytes": 7201 + }, + "dir05/clip22.opus": { + "sha256": "60cbed8525d4caaf16e8860126f233b493908fc239e451a20791637e959656b6", + "bytes": 2755 + }, + "dir05/clip23.opus": { + "sha256": "e5c549e91e9a671d2f2eda4bd07a25d23a9ba31e2ff06a8891d9847e59aadffd", + "bytes": 40800 + }, + "dir05/clip24.opus": { + "sha256": "0ba51f8461d39130bc0e85f4e9e0042063ba2dd479344d3d72512c089a62aac0", + "bytes": 9719 + }, + "dir05/clip25.opus": { + "sha256": "597cd1b77f21d88d5656ee18fcfc4505723e2729c44195aaa12df3718a7b842f", + "bytes": 10730 + }, + "dir05/clip26.opus": { + "sha256": "9b5846ff998fd2cdcfe4ee567d9d95dfd250ea921c71765cf562758f8572e427", + "bytes": 2105 + }, + "dir05/clip27.opus": { + "sha256": "fb806cd527c01bc9e5274aaff024fd8c2ad4ccaebc3d7f9601109c859e9f1f7f", + "bytes": 2201 + }, + "dir05/clip28.opus": { + "sha256": "176625cb8c1def911329a3044ea77d7b1c57074400f2b0b7de1e05ea6d2c4646", + "bytes": 3580 + }, + "dir05/clip29.opus": { + "sha256": "77da54e74cdaae4aba6f73186390fc176290a10123f489e97995af3bfde7501a", + "bytes": 4474 + }, + "dir05/clip30.opus": { + "sha256": "830de9638e92c81a1650ea6fb1f56edc493706904e6d21cbc06387aa9e278a9f", + "bytes": 2414 + }, + "dir05/clip31.opus": { + "sha256": "b81eae569433ce089c43eef7b3fadc3f56c619877f68fbc1eb2dc6594af04587", + "bytes": 5057 + }, + "dir05/clip32.opus": { + "sha256": "e5b75edb13b2af8d7b703f2f6105646bfb60d84226c23ac6763ba0ae9712f100", + "bytes": 732 + }, + "dir05/clip33.opus": { + "sha256": "ab365250b4de341d5fee481d812e0ff981f7b24c802bc883cfdba8e04933b99d", + "bytes": 7703 + }, + "dir05/clip34.opus": { + "sha256": "563274c58b36554983558ec7eb250e7a62ce961731ec5b34cc15be65488632d7", + "bytes": 5071 + }, + "dir05/clip35.opus": { + "sha256": "3f1d0a615af2d34174cdbfd6284d87db7847f3ab049975a51ed69b902a82a343", + "bytes": 28174 + }, + "dir06/clip00.opus": { + "sha256": "76fd06c4c23995c93836cedf9419f2f521df700db600ef4ef96382efdf1879ea", + "bytes": 2513 + }, + "dir06/clip01.opus": { + "sha256": "7d2e31ce00bfb977910a405cc9563762933414ef0fb17474512e7d0e722421eb", + "bytes": 4839 + }, + "dir06/clip02.opus": { + "sha256": "8473cec12466be68f15bd04fa0e451e524a5379901d6c8762a422c038a363f22", + "bytes": 6121 + }, + "dir06/clip03.opus": { + "sha256": "bc09fcbd83d3bd87df9b5614c8b933a730b792b856bf3cd7e353eeb2b671ee05", + "bytes": 4914 + }, + "dir06/clip04.opus": { + "sha256": "d015dd4d812cb7976d2c9bcfb7bbfb495ef2cd3b214eea6a7200713e1254d63e", + "bytes": 3984 + }, + "dir06/clip05.opus": { + "sha256": "8cfd7fe744e31663cfd3cf9bd7d2d7d645d1ee899e131f24ba8d200b30f91119", + "bytes": 5725 + }, + "dir06/clip06.opus": { + "sha256": "f498cada7e99ae242e4676b21f472a2a63c0ed0838caace35388d13008f803f6", + "bytes": 1086 + }, + "dir06/clip07.opus": { + "sha256": "d35650aeea87b8dfaa714995d0db35c051952c188ac6961c80a125f411aa6707", + "bytes": 1399 + }, + "dir06/clip08.opus": { + "sha256": "261961a160bda33835ef73dda88e80ec556561b05855c5f6bb4021d434207aa6", + "bytes": 2291 + }, + "dir06/clip09.opus": { + "sha256": "89b050ec3891dc927e3cee89d996c6592d26687082ddfc11588416a13931eeee", + "bytes": 1998 + }, + "dir06/clip10.opus": { + "sha256": "eaeaa4ce292303fcf0af16eccc5cf6c3e720927859a5309b26e1c19d36bdafa2", + "bytes": 2459 + }, + "dir06/clip12.opus": { + "sha256": "e6268377f414722087d525dc746152730e004305dc0f60f679ac680f34b61134", + "bytes": 3400 + }, + "dir06/clip13.opus": { + "sha256": "f2ec808ab9d0e074e03b8eb8a15d159a7cadefe9e394712d8c6b7ad05dccf764", + "bytes": 1298 + }, + "dir06/clip14.opus": { + "sha256": "74bee53ed7d3de086e2308d513142e8ba956d7e62636b8d61d8d5d377db112c9", + "bytes": 1712 + }, + "dir06/clip15.opus": { + "sha256": "350f4b48bc79707bd1fcaa38419078b24c0391e483810f4398af0567463e8209", + "bytes": 1421 + }, + "dir06/clip16.opus": { + "sha256": "596acfec157607496b3deca2438691480553eacde1efd44f99ff740fd8da5576", + "bytes": 1171 + }, + "dir06/clip17.opus": { + "sha256": "bb7c2fd62396eb685aed1ddcca570a623b77454155f4cf29d30803fc3916d38d", + "bytes": 2116 + }, + "dir06/clip18.opus": { + "sha256": "4df5ce32aa1095122afc8c127df67bea0cfd41ca07c7524302bb69a4837acfaa", + "bytes": 2825 + }, + "dir06/clip19.opus": { + "sha256": "850c166fa345c80811b4cff54be3269e5b15463b03a3fdc46e734af614a714a6", + "bytes": 2237 + }, + "dir06/clip20.opus": { + "sha256": "db612f4f79d238ae26c32523055b2e6fdde593e023ecc02e33c0a7fd3c9edb8c", + "bytes": 909 + }, + "dir06/clip21.opus": { + "sha256": "5d5b6c5f622ca66d78f6ba49cc6c6f24c05969f32c295c7edbc9ab0b459aa341", + "bytes": 3490 + }, + "dir06/clip22.opus": { + "sha256": "611281c5475ce5e211f7229b8c4c84d470dd3d0a1fef57dcb427e78beefe48c0", + "bytes": 1101 + }, + "dir06/clip23.opus": { + "sha256": "e163c9a831bda9181f35603e59e37e8e06fbcfe3f8f31f7be0b1b130da44b4f3", + "bytes": 1514 + }, + "dir06/clip24.opus": { + "sha256": "5cdb68e762563602ef1d8e8528370430c4f030e1b6331456100c165961cc855d", + "bytes": 3138 + }, + "dir06/clip25.opus": { + "sha256": "b65c2ebfadb757fac6db8a022c010c87327736601e78ea91e7d84c909af049bf", + "bytes": 1260 + }, + "dir06/clip26.opus": { + "sha256": "cd73530701dd10b91089004f4c84769eaecdc767c7c0357d3dd3f18888c9faf4", + "bytes": 1625 + }, + "dir06/clip27.opus": { + "sha256": "b0acbe49eaab9c92133b5cc2a49f3ea909fb7e1f295fa8e4d0a5eedac2b99b08", + "bytes": 4188 + }, + "dir06/clip28.opus": { + "sha256": "ecb4733e94b14152326229bc9c2c645941613620025a502e569e3552c15f7588", + "bytes": 4228 + }, + "dir06/clip29.opus": { + "sha256": "e6313d0152eaaaa2dc7e399636d9261c823f761b0c3f3323395ea00ac8103ffd", + "bytes": 2620 + }, + "dir06/clip30.opus": { + "sha256": "e16d0464779a725580fa68ef0573732911bafcb7a57fc594eeff745644cfc1c8", + "bytes": 1625 + }, + "dir06/clip31.opus": { + "sha256": "bbb22a955bfb6a58b550fa7ae05096608eb489b10f18e835e0ff84575f5634ac", + "bytes": 1028 + }, + "dir06/clip32.opus": { + "sha256": "a1828db055e8d783030a3dedb213872f22389deb8dc68626ea9d07781ec76b22", + "bytes": 6527 + }, + "dir06/clip33.opus": { + "sha256": "567129c45b0838c4a28f3a99f7d2633899e12745a214e73bcc656bf777bc95f2", + "bytes": 1585 + }, + "dir06/clip34.opus": { + "sha256": "94611b869a3404cb262e13eb796d355898e8ca1b497414aac3f3ed20727c4b0d", + "bytes": 1261 + }, + "dir06/clip35.opus": { + "sha256": "8dfafe0b2cb19077c39732fe1652dea9efaae6e10135596d60f2355e92169193", + "bytes": 1109 + }, + "dir06/clip36.opus": { + "sha256": "a749c6a0dac81fa737f01f08ae4ec3ab64dbe84ca9a86e1442c92a987ba413fa", + "bytes": 3447 + }, + "dir06/clip37.opus": { + "sha256": "2ffa803a67b7866a8d9a38af524f924d396c632903a7a37f9146449b3e5fc43b", + "bytes": 1577 + }, + "dir06/clip38.opus": { + "sha256": "e35fb210dd382b00e9ebf4f9575d884ff0072fb3b25e92e70eb6bfc675c2cd8e", + "bytes": 2295 + }, + "dir06/clip39.opus": { + "sha256": "7769ea4d068237f2883cfcd877b7b8fe54b0054dc5999d1a9dda172284b598bb", + "bytes": 4064 + }, + "dir07/clip00.opus": { + "sha256": "b28e0edbd1fd0932ff4eb04e874c5e53f7eb65af0ca64ba208d0530ba46be4d5", + "bytes": 2004 + }, + "dir07/clip01.opus": { + "sha256": "6b93d25e7d9c4b92e3621448f8eb90d1248da4d7e584e2ad04327df175311fea", + "bytes": 3764 + }, + "dir07/clip02.opus": { + "sha256": "8137484a94203b2e46c0b7263860d8d7482f1e6272b322d3f986a8c70b44b9a6", + "bytes": 3770 + }, + "dir07/clip03.opus": { + "sha256": "94b6a2cad5d4aaa3abaa215b5e44a99295b5452272139eb81934490d4bf2feca", + "bytes": 6546 + }, + "dir07/clip05.opus": { + "sha256": "1448fde6d36e7abd021078402eb1a14b9b26339eafa75fe6fa14b94aee9956b0", + "bytes": 1912 + }, + "dir07/clip06.opus": { + "sha256": "3cba28662d073ee2cb9abac51918a6fd00a1d8aa58fb8c8c94cbc0e18a0ac295", + "bytes": 1334 + }, + "dir07/clip07.opus": { + "sha256": "49fad5f40ab048234ec546b96d089fd0b5955489b2eba8fc42f564c7fa0b5bd0", + "bytes": 3993 + }, + "dir07/clip08.opus": { + "sha256": "b3f6492c03612b56baca660b692dae55861473b6371a8780140c08790fa793a7", + "bytes": 3741 + }, + "dir07/clip09.opus": { + "sha256": "e39e39bb3937f546c276398cf8def96ea42aab8ff67fc0e08d302bd1f0c45568", + "bytes": 3407 + }, + "dir07/clip11.opus": { + "sha256": "75ae69117941283b0313de4573745a98a4711821409612c178932f14b0ee98ae", + "bytes": 1923 + }, + "dir07/clip12.opus": { + "sha256": "1f4bae9c8fdbca370bde1aded043d166be36b8888a924f76e214b2af5e942f7d", + "bytes": 1591 + }, + "dir07/clip13.opus": { + "sha256": "d659ee2ee1e8e51fc099c07b80dafe2f72db37358cb317adb8939b1ad5817b1c", + "bytes": 2041 + }, + "dir07/clip14.opus": { + "sha256": "9ea06d4df4092089c91fa47d1436800fec299b4305c66249b2605080f303db7c", + "bytes": 1942 + }, + "dir07/clip15.opus": { + "sha256": "c1d2f9b8ad2a479a1b00fd5a31c7e81e2270115864f42f832909deaa39c77527", + "bytes": 12164 + }, + "dir07/clip17.opus": { + "sha256": "a70da9bd827190f3a4b2445ca666d76faf3224af839fbd808180e17f5b3d219f", + "bytes": 1405 + }, + "dir08/clip00.opus": { + "sha256": "61f51e7b072c86452885a53e06e4b0b0b742b2be8c120e653f0392c563c0cc24", + "bytes": 5459 + }, + "dir08/clip01.opus": { + "sha256": "5ec096130977ca15f802c2cc712903a01dbf2dcab184717ecd68b1a3d254c91a", + "bytes": 1129 + }, + "dir08/clip02.opus": { + "sha256": "5f51252e5551b6c7b2d8f4a41af931c4a3c40f97123f299e3b5fa178da9ca09e", + "bytes": 7332 + }, + "dir08/clip03.opus": { + "sha256": "6e15f9f6c63debdaff5500045c898dab896e7bd54c14462d20cd055f93139ade", + "bytes": 4041 + }, + "dir08/clip04.opus": { + "sha256": "b136bc2bb189f3132ea3e97ef1b2034cf04e0b085438056781018729c7624898", + "bytes": 1260 + }, + "dir08/clip05.opus": { + "sha256": "7d4b4d8577015757ff1c534dac478600d9d0d9232adc81e48357c4b34f110b1c", + "bytes": 6091 + }, + "dir08/clip06.opus": { + "sha256": "7510e15aec3e3c06b80aafd1ed0c2bca474707e9d4ed1545381b40f20a4b40b5", + "bytes": 2070 + }, + "dir08/clip07.opus": { + "sha256": "5c214c68813bcc3f53579f08a3c7ac4b44d09d87c483d7736889868c73d4b9d2", + "bytes": 1658 + }, + "dir08/clip08.opus": { + "sha256": "fbbd54fa489f66e92080c20b4bf0b50247251e23a85d69241cd52601d2f6ecfc", + "bytes": 19288 + }, + "dir08/clip09.opus": { + "sha256": "a9f80adbed1c4143502226c926084eec8001b79d0b7f8d5cee7d4ef6e40e9bc0", + "bytes": 2210 + }, + "dir08/clip10.opus": { + "sha256": "fe803d441b10e0569006259f4c80363ede414d0d5ea94d8831e1c27bb6d0b804", + "bytes": 3387 + }, + "dir08/clip11.opus": { + "sha256": "b8e74fa5641cb6fa0b6adbf59913f6d831e7c4a962588a3e7086ea6d6c9da5eb", + "bytes": 1677 + }, + "dir08/clip12.opus": { + "sha256": "6ed77c84ca9f1164d3965f6301419671f954fa1eba8038ff4cd9c899f27a49fb", + "bytes": 1957 + }, + "dir08/clip13.opus": { + "sha256": "6cf2293b89cc4b25d24ae119d30a30d372df98821ba4df7e32a5721c0e0c619a", + "bytes": 1151 + }, + "dir08/clip14.opus": { + "sha256": "9bdcb4c4d812b40638873aefa393e0615abfd283e5030e9bca42666d9c0bd96f", + "bytes": 1449 + }, + "dir08/clip15.opus": { + "sha256": "b102f1f6b27c636f3ca23455bdac9f0718b7499e2d19ceb0622ef73bfd897610", + "bytes": 1343 + }, + "dir08/clip16.opus": { + "sha256": "8518c82e955f5eba68fed63289d705d6fb24e4edaa4d92cf047465331a071332", + "bytes": 1861 + }, + "dir08/clip17.opus": { + "sha256": "e6d289cac9e2517f4930e16afd3c311517219ca36acf3d13444bb4be522bcfe0", + "bytes": 1231 + }, + "dir08/clip19.opus": { + "sha256": "2fa9c1b25a20e740fa498fd4e07650484032022dab7cb57abf1cdc6dee49fb26", + "bytes": 2856 + }, + "dir08/clip20.opus": { + "sha256": "d0316253561c92346ab217cdaf2fa7d14e12c34012c5684d4b2f60b7413a915b", + "bytes": 1245 + }, + "dir08/clip21.opus": { + "sha256": "fab390e641872c453c6d93879fff8c963551959cefdc3651bc8c9ca31d37f09c", + "bytes": 1147 + }, + "dir08/clip22.opus": { + "sha256": "837daf4663b0ee5c915aaf5a1e4ad7202c2c1af08a812e17740ca8afdca2bc94", + "bytes": 1716 + }, + "dir08/clip23.opus": { + "sha256": "846fc15aa86bf199b703b7787936e982122b20bae0b3c859aa0d1a696727ac31", + "bytes": 2825 + }, + "dir08/clip24.opus": { + "sha256": "994e83ac1ae01b5d14748e8929a25cb96317eac41d7828d58de04fe8883e64aa", + "bytes": 2132 + }, + "dir08/clip34.opus": { + "sha256": "5bcaf3ff0ed3a69b5cb5513b455720da428999489014b039d589f7b25ee89e53", + "bytes": 1776 + }, + "dir08/clip35.opus": { + "sha256": "1498939ce005b64fcb5dc1bfb0f94c932b79d4844b7488265d7fc85d9931f74e", + "bytes": 822 + }, + "dir08/clip36.opus": { + "sha256": "1078b2b8d44081a783e560cacd0c165377d41ead9fe786f756ea3df7dcc82a1e", + "bytes": 1225 + }, + "dir08/clip37.opus": { + "sha256": "7b2ad54bce0eb685554a3a71620fa9943313cdeb8f7ebf3ca9c576c17a4cffc9", + "bytes": 2084 + }, + "dir08/clip39.opus": { + "sha256": "75b77df080b1f2474bf4e8b34176435d5682ce91fcfc5a3db56ec8d23caabc98", + "bytes": 1100 + }, + "dir08/clip40.opus": { + "sha256": "fec937ae5daff7d9bcffa912b98aa6e8162fde8dfc1168b8ff7c9a76aec38bbb", + "bytes": 782 + }, + "dir08/clip41.opus": { + "sha256": "0801a62380fab1344c78b19050caa298ed0f11698845bd0b8689749541154033", + "bytes": 2111 + }, + "dir08/clip42.opus": { + "sha256": "0072f0fd5f196616c052d56fe20490b5bd0f1402ea09941ec9e9302857f3ee4b", + "bytes": 2804 + }, + "dir08/clip43.opus": { + "sha256": "5e17012b46d0c77188befd480ff5c23930182e54bbb397806dcdcc10ea4c9c7e", + "bytes": 2689 + }, + "dir08/clip44.opus": { + "sha256": "0d230d971aac6d93cb6d8ce517c52943f2c3d5298445e0c54b1ab9e697829aa3", + "bytes": 9238 + }, + "dir08/clip45.opus": { + "sha256": "21b610010504e8f5e3aaec1ecd6aab8ab63f87bc599564535068ca92eac1826e", + "bytes": 1581 + }, + "dir08/clip46.opus": { + "sha256": "98f88cff793195206b55edfbbbe15a6341b5095965937c9b66296d167e9190f3", + "bytes": 1506 + }, + "dir08/clip47.opus": { + "sha256": "5eaafd7db17aa077898a7c16598dab0d79a1a1b8cdec79578727070ee5c8d2b1", + "bytes": 1836 + }, + "dir08/clip48.opus": { + "sha256": "7025448f84bcafa834b825b98cf6590ed8cdc2f43fad34ad369f5482a4c045e9", + "bytes": 1785 + }, + "dir08/clip49.opus": { + "sha256": "82a49fd354d14208d29a190b7257f2e2b021ea8d20dbeec25b2db8e878cd005d", + "bytes": 1515 + }, + "dir08/clip50.opus": { + "sha256": "94d1d1427c06283af7477b192d5b5e2404070ec65a06f1319758182fae4aca83", + "bytes": 3722 + }, + "dir08/clip51.opus": { + "sha256": "cb7f04fc36693ca8de33c17d79e3cd019ce0d375ff6afead6190294ccc4f2b4e", + "bytes": 3068 + }, + "dir08/clip52.opus": { + "sha256": "a73b9abbe429194ebe5dd750b607d1f8f3f7f41070c61b10246b57370a2d7cfa", + "bytes": 1595 + }, + "dir08/clip53.opus": { + "sha256": "4e3d68920e396d44348d19e94c6c60744b60245b7415ff3365a5bf27cbf7bdec", + "bytes": 3140 + }, + "dir08/clip54.opus": { + "sha256": "6dc0ce9cce69cff525e1f6f596217cebf715180509106a0254f0795ebd32c310", + "bytes": 7327 + }, + "dir08/clip55.opus": { + "sha256": "37a2d87b9a1a4debc99c21d2f6fb745d112b82e0aec2e2972a948e62d6e1183e", + "bytes": 1189 + }, + "dir08/clip56.opus": { + "sha256": "6d0c08dfd6ea469c9807663671593e5234a12baba1de8cd6455f9690c3e8eada", + "bytes": 1644 + }, + "dir08/clip57.opus": { + "sha256": "1cce3f1a3f6bc760852e11af46d33e4a94ee7f38cd7c7514e79205e929dd9ffb", + "bytes": 3185 + }, + "dir08/clip58.opus": { + "sha256": "f9d4967b02a9da723a59da066d9337e0b7da71462a499d68c403c417492f59ab", + "bytes": 2656 + }, + "dir08/clip59.opus": { + "sha256": "babb4bdb8418e5bed1f5f1f88fe428b6ae02d05669cb219e9ac114f6b6aa733d", + "bytes": 5635 + }, + "dir08/clip60.opus": { + "sha256": "765d09db87c7a855d5f9471c541d13d0b40d7f12bbd5942f4c9791b131329b5a", + "bytes": 1464 + }, + "dir09/clip00.opus": { + "sha256": "b65556cd8cb94d72681830620e0843597f9fb13a2a4cf402b76c7da7671aa245", + "bytes": 25679 + }, + "dir09/clip01.opus": { + "sha256": "1e04bd21be9b11244bec36a943c6298123640f0d7948fc5f24e6e7c0c4029764", + "bytes": 1970 + }, + "dir09/clip02.opus": { + "sha256": "2b48ea5b24cc096e1c863b7abfeb5b072561c0e26e71b9d4a7b8b2c7cfeab2f7", + "bytes": 42705 + }, + "dir09/clip03.opus": { + "sha256": "dd1179b9e7db4fab1b5f1cbd1d21561afbe4b4bb9b8a259ac4be9f84265497df", + "bytes": 16030 + }, + "dir09/clip04.opus": { + "sha256": "d8e9b9cc7a5e22fb4f47cad6f7684ef89fb578b252742512ba63d528fea25cfc", + "bytes": 2611 + }, + "dir09/clip05.opus": { + "sha256": "73861461dfbc9d266fbb8114df13150060fb64f201180331c970a796f1afc52b", + "bytes": 5018 + }, + "dir09/clip06.opus": { + "sha256": "d677f3c832d7fdffff95fe10af22b0fe2c316a39ccc2483d7c070d7f1cb5cb5f", + "bytes": 4710 + }, + "dir09/clip07.opus": { + "sha256": "641f161097f27fb827ca86710d7afb429d025af7ddce3209b73071760833589c", + "bytes": 5402 + }, + "dir09/clip08.opus": { + "sha256": "25b3e6ec0d70c37c46095a20b64c366c42191a7e2a81a70f3f0f3853c495912b", + "bytes": 33318 + }, + "dir09/clip09.opus": { + "sha256": "3adf0d0ef36c453d41d6990fd498e85a123f19a443451ae6f99fb0e7985a7713", + "bytes": 4501 + }, + "dir09/clip10.opus": { + "sha256": "f2fd6caabbe79f9c9384f396b024f05c6fdbd19bc9b92c71b34aedd16f667530", + "bytes": 2564 + }, + "dir09/clip11.opus": { + "sha256": "42fba5a30b365326a089f61f52c2cf1a236592b8cd2edc0df0978c030052fc18", + "bytes": 24058 + }, + "dir09/clip12.opus": { + "sha256": "161072b2cc30cc09ffd96ab4f0e11c8868e9b2dd8fab4b82691019b3d792ab94", + "bytes": 31153 + }, + "dir09/clip13.opus": { + "sha256": "b6080bf83a065b90ff6864319952d95d24ed3578f74b4c1e4a752027c2d7f69b", + "bytes": 5300 + }, + "dir09/clip14.opus": { + "sha256": "863978dc439d7a0156cffe8b6390c37e567c136bc71d7fc43f59d6ad46504e21", + "bytes": 25100 + }, + "dir09/clip15.opus": { + "sha256": "fd530fb07db2bd29f809a0e31d8d53ef3cf29c092fcd249d0f456c09ed16b80e", + "bytes": 2117 + }, + "dir09/clip16.opus": { + "sha256": "aa321c9bc0b794a37b5eb815cebf9bb99743d95b7f596274e61ad0a95d377130", + "bytes": 35700 + }, + "dir09/clip17.opus": { + "sha256": "6d239353bb0676c04bc147b3bc63a4480053a08ed95e70ae849a3ae9c0bc7ac2", + "bytes": 26839 + }, + "dir09/clip18.opus": { + "sha256": "0ffc1b8e661a252a30713009fe78ae5e3632a1560dbb90321bb61c8a9efa6d3e", + "bytes": 5063 + }, + "dir09/clip19.opus": { + "sha256": "2e588a436d174152dc8765d92106613376ee4d5d2bac9872214c30cdedb04104", + "bytes": 28762 + }, + "dir09/clip20.opus": { + "sha256": "720657da9882f57481761d10e7b346cd0dc7b10a4050471cc8d189438efb8d58", + "bytes": 28253 + }, + "dir09/clip21.opus": { + "sha256": "24a6280c02e3cb43065e3c2273d9716b8bff8d9f9181dc64fd0d1ac2b0b2b21a", + "bytes": 39661 + }, + "dir09/clip22.opus": { + "sha256": "37355e8f4f3063b06469c42ba4c0db0b8dced9f005a38b6f96dcd5d380163ec5", + "bytes": 2740 + }, + "dir09/clip23.opus": { + "sha256": "197f56594cf588706f986e7d6e5831284c6854242151414a2d523cbbbc9b64fb", + "bytes": 5088 + }, + "dir09/clip24.opus": { + "sha256": "40b1a31489e95c188adca8ec4881cf556a038e938b4d68a015e23d274f1ce678", + "bytes": 4340 + }, + "dir09/clip25.opus": { + "sha256": "a529860cb1b7be95a82a1ef25b26775b6719c6c9aefcd78f9210aa94b9edf308", + "bytes": 25844 + }, + "dir09/clip26.opus": { + "sha256": "88d7760a8870c15e3b4d4a0b83f4936e460d01ac58fd8d89c05f01735005cabf", + "bytes": 4885 + }, + "dir09/clip27.opus": { + "sha256": "a3b505152a91e17bdb5bc088a988a6e2ea5f1f49a82084fd3dfafd42ffa826d8", + "bytes": 24786 + }, + "dir09/clip28.opus": { + "sha256": "f2035f3d6ba1bb8b9048b3ece1fb80f607ef43329d9a4ca4b6e244d818abe3ad", + "bytes": 1401 + }, + "dir09/clip29.opus": { + "sha256": "3c80e05789050d117613d62a491e63d10873814701553ab4915bb4c7caeaa511", + "bytes": 26583 + }, + "dir09/clip30.opus": { + "sha256": "ac5506559e6a0c997ecb4a810bcba30753c8c04f944c1c0b81468d6d03162569", + "bytes": 4365 + }, + "dir09/clip31.opus": { + "sha256": "185646ac8831196186fc9c01b780d77763370dd963b1a11252395f118f2b0544", + "bytes": 15066 + }, + "dir09/clip32.opus": { + "sha256": "6e6a2500627c5e5c774e2501aaf84ddb48b4d8eee00c9705f9affa7d1217dac7", + "bytes": 3237 + }, + "dir09/clip33.opus": { + "sha256": "595dd2fc625dcd374bc6bdd94e7741a101f830e59035338ac31a3598b7451c4c", + "bytes": 19144 + }, + "dir09/clip34.opus": { + "sha256": "9f6d72c21f1ab3fc8e6f6a34a4f32ab0406abd488917c57a372c45bfcbea543d", + "bytes": 7567 + }, + "dir09/clip35.opus": { + "sha256": "85effe673578899b8af0ff71f8f55afae15f7127aea9da05f6bb0d211e4aa7bc", + "bytes": 2697 + }, + "dir09/clip36.opus": { + "sha256": "52cc035a1ac84e961bc6458a77f97f543cbaa624c85d6da36318ed73e228801c", + "bytes": 5051 + }, + "dir09/clip37.opus": { + "sha256": "dba61ea6b90ae488a7734d6c3a8d3cb14927c6497d647d62a83ce06ece6a6adc", + "bytes": 24256 + }, + "dir09/clip38.opus": { + "sha256": "7436d45193b1eee4d85ee8b3d7e9b0daeda09fb1f757fe93cd374287bb1bd88e", + "bytes": 46510 + }, + "dir09/clip39.opus": { + "sha256": "1e3acd24e2000689962d6b02dbc2b896823d8ecfb3a78a2afe3f7988505e64ad", + "bytes": 30072 + }, + "dir09/clip40.opus": { + "sha256": "78b82b5f276c22594f83775d8a788025ce892b3c04f131e35a5f626154ca9e06", + "bytes": 50052 + }, + "dir10/clip00.opus": { + "sha256": "d951cf677af7bdc351eea6c0bdd3a1a850cde8235ffc7d39d855d794382a8aee", + "bytes": 4149 + }, + "dir10/clip01.opus": { + "sha256": "3987e21ba8cb8eb614353ee402e80150e7350d52f2d830e2ec6756993d895227", + "bytes": 6005 + }, + "dir10/clip02.opus": { + "sha256": "2527e75f7f4736a50aa27d6bb4f980a9d443ff81d46ca4a281f2a955a7d7832b", + "bytes": 1627 + }, + "dir10/clip03.opus": { + "sha256": "5b23ff89d3ac21fdbd5d5fa87839686cb66006a86e73e14b8f9df84d882fdf3a", + "bytes": 2763 + }, + "dir10/clip04.opus": { + "sha256": "1ae9c22dcb8928261f355eaf829e620a67b1dcc06ebab2b0b9a77d011f651232", + "bytes": 4068 + }, + "dir10/clip05.opus": { + "sha256": "7a45b269b64bb928ed4c3cbc333c3df70f1a0963e57c5e75ac2ff93fd64165a2", + "bytes": 3589 + }, + "dir10/clip06.opus": { + "sha256": "df3493657d3b0b7ebb7f77ff5bf4ad7b3c6cb0c652391f8f9249b86f96ad90f8", + "bytes": 2218 + }, + "dir10/clip07.opus": { + "sha256": "5be08b48d948a5b2be6e8da21a5fc0052b3c572cfdb14f252ec8765fd9f3e57d", + "bytes": 3219 + }, + "dir10/clip08.opus": { + "sha256": "9dfe1d44040ba5675a8555f60cfffd086b0e940428427c7e58794b5711e9ef43", + "bytes": 3566 + }, + "dir10/clip09.opus": { + "sha256": "592e23e816a57920347473a8d1499fe95117fdeb9607778c1c18195bc815ed81", + "bytes": 3036 + }, + "dir10/clip10.opus": { + "sha256": "37b4602bb8b0d1aed54d115839ed1519aa77f397d2f02f740bf56911bf71e8f9", + "bytes": 1513 + }, + "dir10/clip11.opus": { + "sha256": "cb46076da37e3e433ec71eb410c1429f90f0864f9cb5fe71e0d6b9d6ae036a04", + "bytes": 2681 + }, + "dir10/clip12.opus": { + "sha256": "941def8c5a6bf71597333457f38dfbdf87b6ff0d00bccd7fdc5cd8b5f116d807", + "bytes": 2673 + }, + "dir10/clip13.opus": { + "sha256": "398400f813eb0ab45fd3b136d8d5318c92ff428986751fa6811fec492aff74c2", + "bytes": 1477 + }, + "dir10/clip14.opus": { + "sha256": "e5e6b0deba8dc851aa84b3ac5a300b9b3be45d7ed148a652e645c377ef2af2c0", + "bytes": 7315 + }, + "dir10/clip15.opus": { + "sha256": "5e8450ac4b6724230887d39be012355c03efa0a59e4ba7e13436fd2559c5b30f", + "bytes": 4448 + }, + "dir10/clip16.opus": { + "sha256": "a99576558ee398967996eda94de1bd47569f4b89e6b54acd4b2d71703cad3676", + "bytes": 3437 + }, + "dir10/clip17.opus": { + "sha256": "aecf8be1e8d5450a800caa8e9edef18a0f7dfcc56d36459d23d47e5e6e25aa06", + "bytes": 5797 + }, + "dir10/clip18.opus": { + "sha256": "d6f4f10d78ce1240fccf2717b3cc1447c1f56f2ecd33c025fb05806d236adb18", + "bytes": 4720 + }, + "dir10/clip19.opus": { + "sha256": "e483f8c733c05e272ed7742052939b849f4071d8664490e3edfcf6fa95c1ac5a", + "bytes": 6546 + }, + "dir10/clip20.opus": { + "sha256": "fccd5b5261fad98cfa24b58e3256a22fb5f3742c2c7c893991b21e86700c9612", + "bytes": 2843 + }, + "dir10/clip21.opus": { + "sha256": "3f400e376c2d82b2b6c45e9ebc7018a3f590fc4456b4c2e06eb78d12c8fe3d9a", + "bytes": 4088 + }, + "dir10/clip22.opus": { + "sha256": "b551cac0525f7a4a49bff47cf8b6cb81bc878fc7719b99285a09d938be663b5c", + "bytes": 1871 + }, + "dir10/clip23.opus": { + "sha256": "46eba6e7bfefd15ab229c96844860765d6ef76bddf9961e1ee4a967c00159996", + "bytes": 5366 + }, + "dir10/clip24.opus": { + "sha256": "9b041eb2d1a416bffafe3ff1805ff39efc3d4d8d1ad4e1aec7060dc5f558bdc5", + "bytes": 7108 + }, + "dir10/clip25.opus": { + "sha256": "0154c119f7058e1316f70c95ea2023c7efb96d5605bddc79f06c1f3a5c41ed0f", + "bytes": 2052 + }, + "dir10/clip26.opus": { + "sha256": "bf9f8182088579c2d3dd352538ac54b2bc0758ea885e27d804e289c6afb3b0d3", + "bytes": 2853 + }, + "dir10/clip27.opus": { + "sha256": "fe8771f0a3872af50c9770394111e062e199f36a927f2f2b8391b6214f6161c8", + "bytes": 4414 + }, + "dir10/clip28.opus": { + "sha256": "2690bfd8515d3021468db4b5b94ce4c42c93e7f16499e2948d61cb968497deb7", + "bytes": 3182 + }, + "dir10/clip29.opus": { + "sha256": "eee6368f4774154c8932eb07d2d46c7c177c768833c59595a7fe787c884d9bbf", + "bytes": 5417 + }, + "dir10/clip30.opus": { + "sha256": "6fd68e69331060103999bbd23e103916f133c83d277d3fa16948861bb24f11ac", + "bytes": 2817 + }, + "dir10/clip31.opus": { + "sha256": "c462945c70a544a284846f5764e3c558a73f0c8d0f8bddd5a8d855937dbfaa0b", + "bytes": 3700 + }, + "dir10/clip32.opus": { + "sha256": "0bcc7a41dc652ce4049bae2712bbf8118db92055dfc51b9e1f8996ece077e8c1", + "bytes": 8884 + }, + "dir10/clip33.opus": { + "sha256": "ca2834d7f719402b5e51612d942f50fe07d1e68e89c6ebf831d16a35be68e64f", + "bytes": 6806 + }, + "dir10/clip34.opus": { + "sha256": "6d15b33b3516252685ebd5e70a300d61a02c98b8d638f5e21d09658a5c58a2b4", + "bytes": 5944 + }, + "dir10/clip35.opus": { + "sha256": "d86dbfc3cc16fe04fa7696d2ee31ae463b20888f07f3621a3015f8a649ba0fbf", + "bytes": 4039 + }, + "dir10/clip36.opus": { + "sha256": "9f670c1b32054edfb8638f3c9f67e776c0fd527fa366a45bbdfb0886b2c4ca38", + "bytes": 3300 + }, + "dir10/clip37.opus": { + "sha256": "1ded7faabac122bd8cd2aca51096dac25d4b1b2bcb630cf611a2e59b0969901d", + "bytes": 1471 + }, + "dir10/clip38.opus": { + "sha256": "62b35cae07ba84a9a2a83b66a8261b4813fb23f704ff0b7ad117d59c885b2b06", + "bytes": 4460 + }, + "dir10/clip39.opus": { + "sha256": "c9d3bbc246de9d1e1eb280aa2e1085165c6ae84c559cf868a81392aad47eb633", + "bytes": 3112 + }, + "dir10/clip40.opus": { + "sha256": "1723e8d79989ddf2dc765dcdbd7582ca8d965d5d55f4f135957fe7ebe79645c5", + "bytes": 2945 + }, + "dir10/clip41.opus": { + "sha256": "eb932b23528a0a83550ebb957f1a117284a9acb28c7b7d0161e963c5230ec456", + "bytes": 885 + }, + "dir11/clip00.opus": { + "sha256": "1b18896899fa356dcb1fe7a7aa1afe4fd6939ed946c32574c9a9d15fb935ac04", + "bytes": 43229 + }, + "dir11/clip01.opus": { + "sha256": "ae027fd5e96181d82a727042ecc7a08d852b8ff7189454e9438bb002f63ce6d1", + "bytes": 3897 + }, + "dir11/clip02.opus": { + "sha256": "dbc1ca6649793e3d0c900cebde7a6916a27c22d39d14830b0932b924a3d09dc1", + "bytes": 3540 + }, + "dir11/clip03.opus": { + "sha256": "9ec7f25ca778fb0e961e12a318827e19574e7c6bee14e0027f3e5c1569af0672", + "bytes": 2176 + }, + "dir11/clip04.opus": { + "sha256": "9744ab4460fdd70252072db27b35ad6bba670586ddbfbff8669bfd75fb03b898", + "bytes": 14663 + }, + "dir11/clip05.opus": { + "sha256": "3b64f02c734ec7e49d4705312a04a1e92e7637b9ee7fd5fe2ac93f3e9f4e7a7b", + "bytes": 1986 + }, + "dir11/clip07.opus": { + "sha256": "42960bf76a7b29ca055d0dee0b8f52843b02ba78af50bddf2d9bcd49c1ce5d97", + "bytes": 3925 + }, + "dir11/clip09.opus": { + "sha256": "67b826be82156f2e56279c9569d2339ef04c34b6ea6a56176b2605fd2084b1de", + "bytes": 2222 + }, + "dir11/clip10.opus": { + "sha256": "c3f1333244670d9a2c8d58d8f9ffae0f3f894f2876f4ff27413acab7cbfdc2be", + "bytes": 2003 + }, + "dir11/clip11.opus": { + "sha256": "0595a5b0a485adc0899bfa4f1f680eefa0ff70605d13f4d621911d2759d02a3a", + "bytes": 2050 + }, + "dir11/clip12.opus": { + "sha256": "558251f00e15efcc3106740962acb468e4aa3d50a00fc0b29590f525980d9e6b", + "bytes": 3994 + }, + "dir11/clip13.opus": { + "sha256": "4c2107f5e28fa7a12b593aadbd68363da502e5e989b625ebbf90faf46c6f0622", + "bytes": 3908 + }, + "dir11/clip14.opus": { + "sha256": "1e8ea674e5ae261195fc4675663de9242a1ad8e9388361a05500b6e2ed5a04e3", + "bytes": 3813 + }, + "dir11/clip16.opus": { + "sha256": "5952284f0f38e1a9baaea639d39ad8a646b0b1f60885b0ee1279c720e2744d58", + "bytes": 3949 + }, + "dir11/clip17.opus": { + "sha256": "12cbfbaa11c9dea19009d2694774c06a3a5d713d5e3382ab34418ecd8e291d8a", + "bytes": 3858 + }, + "dir11/clip18.opus": { + "sha256": "066afd87a9e1a551f6ac5714418e7c0b11869357e894d0a030a059a62e95c616", + "bytes": 3966 + }, + "dir11/clip19.opus": { + "sha256": "ca89da4199054f428c1b0f4bf3d9294db2789b43a37e59d4caa4ef9fde7c07f2", + "bytes": 4060 + }, + "dir11/clip20.opus": { + "sha256": "e2b1c018d2bd2a60832d8a3636b2b6cfd4c4ba1b1a83cc94ef2f9733717e817a", + "bytes": 4253 + }, + "dir11/clip21.opus": { + "sha256": "ffb8ec677dc527bf9bf3002334cd37447a9d382b0c9c8d3cec49c831f3455510", + "bytes": 4959 + }, + "dir11/clip24.opus": { + "sha256": "2d51701168941e3227ed5f089a20fdd7bd6650efa6469ab75c5617223be1111b", + "bytes": 4063 + }, + "dir11/clip25.opus": { + "sha256": "f5b1a2af18e18ece8dcf0a18e98aca8ba9d3913b04124717d206c9f9dbb18f7a", + "bytes": 4003 + }, + "dir11/clip26.opus": { + "sha256": "015228d22cfd7138a569e88e6a191a13fe92574219d4cea8607d3171ad71bc4c", + "bytes": 3892 + }, + "dir11/clip27.opus": { + "sha256": "55fcc982c72b0f58d8afa23ed56e47dc237dcd24d120226f6195a24f6a8cd1ca", + "bytes": 3935 + }, + "dir11/clip28.opus": { + "sha256": "503c5576da7e784c56367e5cd9ee47f3e4f2b1971f41bb1086ce65c3c6577519", + "bytes": 3911 + }, + "dir11/clip29.opus": { + "sha256": "8ecdcdf050c68c1813e064fca45889356aeb7921a199abb786e31a60b6d73812", + "bytes": 3886 + }, + "dir12/clip00.opus": { + "sha256": "c1432b6e266f1347de698da005f02bda56bc1edfc4c800da2d075dfc3d93a179", + "bytes": 7415 + }, + "dir12/clip01.opus": { + "sha256": "63d9c95962bd29e501e2e84f663c44689093a0dfeb636bced129aa0944343375", + "bytes": 9550 + }, + "dir12/clip02.opus": { + "sha256": "2d2d0ca79b0c9d8685de9a672b62d51488602741d707e740fdb61b8c5d0132bc", + "bytes": 7754 + }, + "dir12/clip03.opus": { + "sha256": "e1734b4fb99bb056b02d8cd554ecddabe842d7493a1044c0829618d636d0486e", + "bytes": 5354 + }, + "dir12/clip04.opus": { + "sha256": "a32194621c71f23b7bd9fb7bed0e4964c35e307ad4fd9604549d70b94af6d621", + "bytes": 3306 + }, + "dir12/clip05.opus": { + "sha256": "1881f90f7cb28716ae410f3b442ac62608a952b5f5254157a2ece6c950437881", + "bytes": 5512 + }, + "dir12/clip06.opus": { + "sha256": "1613e57d74bb009d3265e4b05d09cd029842d44ce6fe69a1f79b4f3c917d3d98", + "bytes": 6469 + }, + "dir12/clip07.opus": { + "sha256": "2da5f6feebae1810f10c43ee52a68b1464b078cda44464aab3cf86c3de2d5eaf", + "bytes": 6228 + }, + "dir12/clip08.opus": { + "sha256": "b844627f3f997087f062970a7d322a94f143c47659fa8d8026e4aa7773c43ea9", + "bytes": 7988 + }, + "dir12/clip09.opus": { + "sha256": "d666497f68b45a3e251c1289e16e04b7a591e872f94da626a10f7f448d571bf4", + "bytes": 6751 + }, + "dir12/clip10.opus": { + "sha256": "aaa7d58b789157d2d545dc30b0d251fa900c803a7dcaaf06eed10b28fdf9ad46", + "bytes": 3829 + }, + "dir12/clip11.opus": { + "sha256": "9870cefc6aee7d7124943fee63ea12c773938a9c08c36714182938fce9fa1975", + "bytes": 2893 + }, + "dir12/clip12.opus": { + "sha256": "57c861ecdad7cd0d9620f01832d6aa8888084ec9a800b7fdd7c9145c84119065", + "bytes": 4807 + }, + "dir12/clip13.opus": { + "sha256": "f4ff25030225fcd9ecc8514d22384c3215455c6eb88941c5a73bffdef21b4b07", + "bytes": 6933 + }, + "dir12/clip14.opus": { + "sha256": "551a1301e927127cd25540bdc3d4546758d479b40c61f36704eaf20ee2d78e49", + "bytes": 1334 + }, + "dir12/clip15.opus": { + "sha256": "1b952d8d1a7e51731e1ab77165b27dbe11353854edadb930a54821bf228a00f5", + "bytes": 9066 + }, + "dir12/clip16.opus": { + "sha256": "cfda8479e1753a682a5289667af3a1bef642011f89ac6ca279d4ca37f95d4f30", + "bytes": 2200 + }, + "dir12/clip17.opus": { + "sha256": "2cfaac142b95c9711dae5596c2e05b5edd4653ebba264044ae4797f1f99e94a1", + "bytes": 6005 + }, + "dir12/clip18.opus": { + "sha256": "da5167fcc405f2ddc923b500faabaeb6c599644ba42e7f9bb53c846c720a234b", + "bytes": 5010 + }, + "dir12/clip19.opus": { + "sha256": "5075eaeff8db7c5958f1664ab2346ba0571596baed8b631928eeb896918584e1", + "bytes": 6584 + }, + "dir12/clip20.opus": { + "sha256": "48c96f7d00e82b673839b41dff15229d8a178210e925f6c8717db65c49ae347a", + "bytes": 48274 + }, + "dir12/clip21.opus": { + "sha256": "63e0fb4399b8c3bf899e834542359f1e1c13c29878e975144298dd6365c337f2", + "bytes": 25170 + }, + "dir12/clip22.opus": { + "sha256": "12c8da355da23e2d34411253f9e8ab356f64c267c48468634cc179d3f2d54170", + "bytes": 3453 + }, + "dir12/clip23.opus": { + "sha256": "cd5803bbbf9b0afa8534745079da64260dd0855d38c5064c65407b75ae8d697c", + "bytes": 8735 + }, + "dir12/clip24.opus": { + "sha256": "8ec5cb6f370f1c2c86e6e7f5673141c44132951ad34ea49107a0dda7a0517167", + "bytes": 5778 + }, + "dir12/clip25.opus": { + "sha256": "a413f2710de4d787c5eb5c8a18f8e4bdcf8cf3520d5f6d5e4267d98802b4eb3b", + "bytes": 24268 + }, + "dir12/clip26.opus": { + "sha256": "25865b9fd38b6f15cc041676cfb5f05000878fd3bfc4e2d5dfa54ba6abd531e3", + "bytes": 7173 + }, + "dir12/clip27.opus": { + "sha256": "d02868dc4b554cdd11d56b66b46fb2c68206c48a47b97de1767086fe8553df17", + "bytes": 7635 + }, + "dir12/clip28.opus": { + "sha256": "51d332a8fdc295ee0fc5d4d9c93dd3ea715e1086d98917a54c304c195ac105a9", + "bytes": 5749 + }, + "dir12/clip29.opus": { + "sha256": "b8876fc67f9d6fa2657bc379133a0130a732ff0058152936fdb25cb8503cb496", + "bytes": 7341 + }, + "dir12/clip30.opus": { + "sha256": "64486c4ee91fefaae4765c1bb4bde658a12390bfe92bd5e94f2fe1663dfe2bd6", + "bytes": 4342 + }, + "dir12/clip31.opus": { + "sha256": "7bc512e2952db20def2f925dcca6670858f07ffd40413c0a815b3010a8027e22", + "bytes": 3997 + }, + "dir12/clip32.opus": { + "sha256": "f579d563cb8f9a094ae6ce03dad6109a2fc67d35e11872c956a005bbb99ecfd9", + "bytes": 5472 + }, + "dir12/clip33.opus": { + "sha256": "82b3544c09ec17e73c8be4b2fcf54eaafe127e0fbf51d1d7291051dd521807df", + "bytes": 7002 + }, + "dir12/clip34.opus": { + "sha256": "496f94a6176101cd6f8a714fc6c7c6b84e8f197c6e21cd908d6c41684872b3f0", + "bytes": 5912 + }, + "dir12/clip35.opus": { + "sha256": "7a8b4310803c5b4c718573d0f9ae4b4c24e6ad6383ddc93b5ba72d6d7df7f4fc", + "bytes": 5302 + }, + "dir12/clip36.opus": { + "sha256": "01e837b9bd90471d47bd2f0efb18aba49711d48f92a05b39691214aa3267dd0d", + "bytes": 3552 + }, + "dir12/clip37.opus": { + "sha256": "59c65826c6146a0d2dc7999c68e9a4bc56010048c4bd908b42f10a42afd448c4", + "bytes": 6304 + }, + "dir12/clip38.opus": { + "sha256": "13d8edb9446487e3b416e5069ed245dd28e1d240512025e513e8686dd1979c85", + "bytes": 6268 + }, + "dir12/clip39.opus": { + "sha256": "dbb83e92b472564b2fab025d20633e1ae117b3aba4d820911014de7d2a7deae5", + "bytes": 5951 + }, + "dir12/clip40.opus": { + "sha256": "243b43bf63e9d023dce74f82e72dd3bf5f940e6ebf93f81dfb39466d6ca1f4e6", + "bytes": 5118 + }, + "dir12/clip41.opus": { + "sha256": "7e695d3b6e7a78b4eb28eb5c245cb8594a84eeb1e6af5cfd1f48f0ce92cc9571", + "bytes": 5847 + }, + "dir12/clip42.opus": { + "sha256": "c8b38fba4ac02f38bb399e72074df9fcb21f5c7b9b5f4ad44abb379e17d2fdfe", + "bytes": 31299 + }, + "dir13/clip00.opus": { + "sha256": "4aa7c273ca20aeba91dc38031205d8a9d6c89395b1cc924d7944a823e2d1ad98", + "bytes": 1318 + }, + "dir13/clip01.opus": { + "sha256": "f59af1d6ddf366e0a3c8e05d4b180d1d001dd5a87d2e58602f1d5551acddf4af", + "bytes": 3040 + }, + "dir13/clip02.opus": { + "sha256": "be379a8211ceca83f32f0b4b94fc08460286104a979346117e398d6b84b5cfbb", + "bytes": 3245 + }, + "dir13/clip04.opus": { + "sha256": "97083092dd9fee19e7fb8d6a70454103b54a5f017c8dbf9b1d7e28058cdf5d49", + "bytes": 2619 + }, + "dir13/clip05.opus": { + "sha256": "9f3b56269ae3622aa367e590b711ba2ae0aab78b1e783725d1944f43d6758e97", + "bytes": 5527 + }, + "dir13/clip06.opus": { + "sha256": "36d096e36ffc267989216840d35b9726838c5134a454eae98a43ee14d8cafe4d", + "bytes": 7424 + }, + "dir13/clip07.opus": { + "sha256": "7949fdfcfdebab2892b08a1c78b3bda07775f5f86b1f53e10ccd8a1ca107afb4", + "bytes": 2771 + }, + "dir13/clip08.opus": { + "sha256": "02f4a232d8be3216062901d9bc6852b5a713be2b3c43483d185e866150240c19", + "bytes": 3234 + }, + "dir13/clip09.opus": { + "sha256": "cd9ce38379277cd5bd8146b3f3634ab537792a00606462e695028449b9d72b70", + "bytes": 2976 + }, + "dir13/clip10.opus": { + "sha256": "17a74ba847813c236b5e97c7256e3d9d120050f73cadad5dd62fbbd42ef340e4", + "bytes": 5449 + }, + "dir13/clip11.opus": { + "sha256": "1100042cf6e7b969556cdccb80afde6d6a2a73f2de18db9bee81ced3e83a5009", + "bytes": 10819 + }, + "dir13/clip12.opus": { + "sha256": "76b64f48b45c137a5c4b9c40fb5c58f018436d298b14e66b9467a6c51b583a91", + "bytes": 2175 + }, + "dir13/clip13.opus": { + "sha256": "02373470f4b7177fe5b2f6597044c5c53557a03da3b8bc97e8dcdceb2ebc4180", + "bytes": 4856 + }, + "dir13/clip14.opus": { + "sha256": "d83005c495598389ebe66389a15d758929edf2c8360dd7729ca066d1213b94c3", + "bytes": 5425 + }, + "dir13/clip15.opus": { + "sha256": "20be0e27516c462575e22ca1018e9a2cfdb27267fb500009c16cc991c4534f8c", + "bytes": 3623 + }, + "dir13/clip16.opus": { + "sha256": "48d90d5a3532d01e3ab49f88337bb3469ae4e1c99190e163e4b8ba0d54e237ee", + "bytes": 3207 + }, + "dir13/clip17.opus": { + "sha256": "83798d03ed4dd32f2e5b602f9b3ffa84f2c26554cb26dd0886b9cf43bfb7b16d", + "bytes": 2721 + }, + "dir13/clip18.opus": { + "sha256": "977cf52e70b5625c9c00df8c0428ac1539728e416841125605db0b1ac0ea724b", + "bytes": 2593 + }, + "dir13/clip19.opus": { + "sha256": "435a2075772f6ed489e46aaf062c4443e05dd375619499a80b22e09991989b49", + "bytes": 3125 + }, + "dir13/clip20.opus": { + "sha256": "f56ae23c58d447023002099ba379a66375c781606f9aa2a1853c0ab5b1699c1f", + "bytes": 3490 + }, + "dir13/clip21.opus": { + "sha256": "b7cdffd59f5f8ba2771f3cfb92e163a613f698283237efe6600ecdefded4643f", + "bytes": 1889 + }, + "dir13/clip22.opus": { + "sha256": "37debf5fb449e456efd34dc96af57544c60bd52bb297379c84b75e11998bca5d", + "bytes": 2824 + }, + "dir13/clip23.opus": { + "sha256": "f6530a993c280d92331d11ba3ac951a45140c06c74e25f64238b0c97460e01f7", + "bytes": 2866 + }, + "dir13/clip24.opus": { + "sha256": "50c7f079d94567e7e848cb746681dd042d1310f0929776d0f035d916776339c2", + "bytes": 1713 + }, + "dir13/clip25.opus": { + "sha256": "052166248d5259e0cf6681af8eae17f05e998728ee1fc287632d18b89514febd", + "bytes": 5412 + }, + "dir13/clip26.opus": { + "sha256": "c399ea25e91af059ff469d88f44dd04d57e050bb85b256c6fda552621ca631d6", + "bytes": 2505 + }, + "dir13/clip27.opus": { + "sha256": "ef4b9fd947510ac84e4bfeb9d5f01961baa434d2e77a17f35f9838cdd06beb7e", + "bytes": 2669 + }, + "dir13/clip28.opus": { + "sha256": "775b00c2fab51ec50eeb7889436fae088c811bfbf0884506adf9214c096c1438", + "bytes": 2671 + }, + "dir13/clip29.opus": { + "sha256": "0e161d12e5ec401c2525121e83823d9451a6cc8b8d898ec23c26f251622ba09e", + "bytes": 1871 + }, + "dir13/clip30.opus": { + "sha256": "2b62cf0eb7dc02f4c293f948029d7c228a9a9d088e07e230fee0ef78fab8b17f", + "bytes": 2857 + }, + "dir13/clip31.opus": { + "sha256": "712c75d887b12da9bff8442e2378f68163b5b0d9b7864ce52206dea449775ce0", + "bytes": 6361 + }, + "dir13/clip32.opus": { + "sha256": "fd5ec56c00377854101f5cdc2b632e476abc9193aa117628778ec750e8a5a199", + "bytes": 3004 + }, + "dir13/clip33.opus": { + "sha256": "57e40421d8a205811950f0ce5857c3847f6b740e83e0a51b6f7a31f70e463eed", + "bytes": 7499 + }, + "dir13/clip34.opus": { + "sha256": "ace9b2a9a6d6842fb559988d34a14e376709c113487eac67ff2a2515ebbb5149", + "bytes": 2897 + }, + "dir13/clip35.opus": { + "sha256": "21a44ccb65b9ebb5597c75e8aab8e97fbe14029ff43bfb523b2466aee48f84d1", + "bytes": 5725 + }, + "dir13/clip36.opus": { + "sha256": "2e58538592945a7a92983c6e11cae1243836fa2e8be21b3e121aae017a93a007", + "bytes": 6738 + }, + "dir13/clip37.opus": { + "sha256": "5afd708d7c3a1780c2955fcc74a6c9482635e5cde85f92a48c85e5e037902230", + "bytes": 3449 + }, + "dir13/clip38.opus": { + "sha256": "1288a963d9b386737549a5889ebdb8fdd62fc8baac5e1835fde2358703dd29ec", + "bytes": 4068 + }, + "dir13/clip39.opus": { + "sha256": "0921f4b4f1fc7ebfe51beab3242e340d1afcab5545175afa20cb4db4d7eb41b3", + "bytes": 3762 + }, + "dir13/clip40.opus": { + "sha256": "21efca2c1ac5fb0f62ef83339ad51753248b684cbb4b8b289e3223a30c1a2d37", + "bytes": 2735 + }, + "dir13/clip42.opus": { + "sha256": "37e62b90061ce8ac26393df22d0f84874fa63e95896e7a828621bb13e9ac6ed6", + "bytes": 5816 + }, + "dir13/clip43.opus": { + "sha256": "92c6b6ec13a989e909d25fa649fb46d475f54b13cc788a121f7bc13d8beda4e2", + "bytes": 5672 + }, + "dir13/clip44.opus": { + "sha256": "8bc02a62028b4cfd6e1027b9932d925d80d7f26f40e131fc1a6341e8db153ba7", + "bytes": 1417 + }, + "dir13/clip45.opus": { + "sha256": "cbdac97c22314c994ed74d3c03a1bff480c81279889651fb1dcfa689933f575d", + "bytes": 2371 + }, + "dir13/clip46.opus": { + "sha256": "fc872bf9c8404f59e519ab91e8a79ab620748ccb8229357d37b2eab551be87e0", + "bytes": 1326 + }, + "dir14/clip00.opus": { + "sha256": "496675f6497dc658b4de387b33347bb850174f9c87f9ef0ab54c3a0451da2f5b", + "bytes": 4804 + }, + "dir14/clip01.opus": { + "sha256": "f5231880b40cb2349f80806bae1eb0c034876760f3aae961626fdf053bc9827e", + "bytes": 2626 + }, + "dir14/clip02.opus": { + "sha256": "0fea46e95a8e650591022a6ed7c70347d0c7d562db1274348cb84de01d72c88e", + "bytes": 4946 + }, + "dir14/clip04.opus": { + "sha256": "7a79f3bb6671cd7b0407f1a6646126152ca7faee4f447745e5007d3f3683aba4", + "bytes": 5043 + }, + "dir14/clip05.opus": { + "sha256": "5d094aa61ebd3494b7a0ace4910a03d76f5ea1c82a859bed79e8c82cbd6bdf26", + "bytes": 5055 + }, + "dir14/clip06.opus": { + "sha256": "a2263fa6b47fb3437342a3a26de4271d1842819b70303aa6986e21b6b8a918c6", + "bytes": 5617 + }, + "dir14/clip07.opus": { + "sha256": "b5bacd1c577fe596123c4a59970c4793a068681bdf272b01af9bddb900ee5b46", + "bytes": 5140 + }, + "dir14/clip08.opus": { + "sha256": "d830eb8f6acc304b382034cf1912aaba560c4847dd95ffd8b9ef4821d9df4074", + "bytes": 4402 + }, + "dir14/clip09.opus": { + "sha256": "73b39490e4c87ffdd5713fc617c3e420cec10a15b1334f370b4f729e827fde5b", + "bytes": 5565 + }, + "dir14/clip10.opus": { + "sha256": "ca09ba210c8bc783b45cbe2d4741e9d3ef7f24aa3fd101a95cd26cf8be2dc148", + "bytes": 5153 + }, + "dir14/clip11.opus": { + "sha256": "349c6d67afe6d3eead5c6f83257dd75ea423aa252127df6403327552293088e3", + "bytes": 7469 + }, + "dir14/clip12.opus": { + "sha256": "bda5ab015420821c8d85e4ac1c62b0b10e0e48b354942c17d15c4218dd3a9fe2", + "bytes": 4743 + }, + "dir14/clip16.opus": { + "sha256": "6e0db5d16de77dd520ec6f18b1442504ed9bd123cc10f8322f61193bf19aad94", + "bytes": 4641 + }, + "dir14/clip17.opus": { + "sha256": "516282e3370d2787160a5329c0c6161a7f196c9f9c9ef1028fd27dfa6d538660", + "bytes": 4978 + }, + "dir14/clip19.opus": { + "sha256": "186ceecb491ade56cad8669cdacf4fa1dfcfba3a2c7da1fb5fe64a090130a123", + "bytes": 4763 + }, + "dir14/clip20.opus": { + "sha256": "6259d3c5ce2de2d9069018369049cd98a62d2039d02c3b709912924d9efcbc51", + "bytes": 5194 + }, + "dir14/clip21.opus": { + "sha256": "3bd60139a3c41bc163a5f6b2fbbfb5c3defc635a9d6ea492f3f604ea0b9ec5f1", + "bytes": 5230 + }, + "dir14/clip22.opus": { + "sha256": "dcf24aa29f3e90ff69cbe804c831b5222cbc50cea8cb491569e5b3436a022d57", + "bytes": 5244 + }, + "dir14/clip23.opus": { + "sha256": "0f7f9d4621f3de3b8d61ffc69ccb447131ab9c4702758c7ea64ca98829dbdfff", + "bytes": 4983 + }, + "dir14/clip24.opus": { + "sha256": "ef52d54ec495c37e0dcdf3e2498d41d9be258d732a3fc6a2f09a2a557fe31cd2", + "bytes": 4861 + }, + "dir14/clip25.opus": { + "sha256": "067c7742b50d08f98337242d09184f433f456abf452add3611fe28ffdb06ef28", + "bytes": 5402 + }, + "dir14/clip26.opus": { + "sha256": "52796974467e8f113c33564226131e5c6b46041f9c7f0f65c3a1ee467c005a85", + "bytes": 5090 + }, + "dir14/clip27.opus": { + "sha256": "a2bfeb7128b459f4f77049a60ef418f0ef32fb3503b4a47c5aeddc35abad0571", + "bytes": 5046 + }, + "dir14/clip28.opus": { + "sha256": "cbacb009bef4de33b2d393781a677fd52cc61d24f5bd5dbf7503ebecdac38f30", + "bytes": 5141 + }, + "dir15/clip00.opus": { + "sha256": "72680c9427190aa3b921ce8e0a1dce06f148fff91b54efcbbcc647ae888b6f55", + "bytes": 1803 + }, + "dir15/clip01.opus": { + "sha256": "a4c52b77ff4945967643b82cb61977ec671a3867856f8e6d3600da320e5806ca", + "bytes": 3085 + }, + "dir15/clip02.opus": { + "sha256": "bf8c1c2ab571c843894301bf7dd35f519415c9ffc0f10e0020287465eed91278", + "bytes": 1816 + }, + "dir15/clip03.opus": { + "sha256": "e86828158f986fbd1386bd71d41861a59fb961235394e7b82c33ebe2c68968a4", + "bytes": 2101 + }, + "dir15/clip04.opus": { + "sha256": "b73e5531451c25161148976770306fdc8ca75408c61496535e8ce03c5556cd77", + "bytes": 1171 + }, + "dir15/clip07.opus": { + "sha256": "32e88f67cdc00400257756db5e03550bb8e4e5ce90cff68e9c0427a8021a33a9", + "bytes": 2327 + }, + "dir15/clip08.opus": { + "sha256": "beacf7581139214d69b531e6f2a5cd4a9d3a9fa6f06a90d1e3fe15916ccb98b1", + "bytes": 933 + }, + "dir15/clip09.opus": { + "sha256": "e02d3e07938e6175d8709be7bbae1858fa57255806c0f64579c4a9a080f8b939", + "bytes": 2078 + }, + "dir15/clip10.opus": { + "sha256": "7d43c83084aa42df6d5a2678822332e9b9a6377efadf62a4256d6885cc3ae519", + "bytes": 2458 + }, + "dir16/clip00.opus": { + "sha256": "9f2b5409ecdf67e162db1ad278348a6816c8e1e2f5c727da5292c1427a080184", + "bytes": 6076 + }, + "dir16/clip01.opus": { + "sha256": "807c6b48cdcc49850bba6d1948bf355fe1a59d9566912081a48a0b4228f110a5", + "bytes": 2432 + }, + "dir16/clip02.opus": { + "sha256": "abadca3efb1c677e8227a3066f861ba98e88ace208e7fa0f9d650bec1bdd76a1", + "bytes": 8188 + }, + "dir16/clip03.opus": { + "sha256": "e252215e46276a9a3fd6923ab86311b4d6eec6116d85f2f632ce09209b77fbd7", + "bytes": 7970 + }, + "dir16/clip04.opus": { + "sha256": "2cc66b57c57cfb2ca264f312f0d304ae0ea4457e76024a8777c265dd74c14c2b", + "bytes": 7208 + }, + "dir16/clip05.opus": { + "sha256": "a2c57689357f2106ef6c0692e26068f436e182c0c659252894867097558c728b", + "bytes": 5907 + }, + "dir16/clip06.opus": { + "sha256": "7ce88a3fabf248ba7b0d10fc9e3eed10838747143c6e822c16c31e41c13cf204", + "bytes": 9889 + }, + "dir16/clip07.opus": { + "sha256": "adda6d1ea7719235a9d1a6d06b4ad0b617de7e1e487fe2888b58b17c2cfa1240", + "bytes": 9032 + }, + "dir16/clip08.opus": { + "sha256": "b6feda5d062044a2624d07f6d52c05bd4a3e0751410e8b63259c61a02de37d11", + "bytes": 2732 + }, + "dir16/clip09.opus": { + "sha256": "0dbf198d2a3c8422ce1973a50bb5b75417cf9f28a826adba73379fa0d65465c4", + "bytes": 4080 + }, + "dir16/clip10.opus": { + "sha256": "6912a51308985a69c8770d1a31b8d3d39a1210b10b81f4acec7426d9d493d62e", + "bytes": 5086 + }, + "dir16/clip11.opus": { + "sha256": "fa9aaa9332bd109e85ba184d979768aa2851904d227ffc7c98b14c40b2621303", + "bytes": 5279 + }, + "dir16/clip12.opus": { + "sha256": "b589afd9a4c3d7fb51383aec2f81ef46c4d25a789326e0ad0ba39baa4ff06c75", + "bytes": 7727 + }, + "dir16/clip13.opus": { + "sha256": "c39f0eee39740dde8e76d2371f3b504c77e6ee51e75bf5d19d635bdc316abf7f", + "bytes": 9173 + }, + "dir16/clip14.opus": { + "sha256": "91381dc1fccd0bff81e440d08ae3dfa6fe2c1213a9789033f3acc0a823821960", + "bytes": 9125 + }, + "dir16/clip15.opus": { + "sha256": "09f28e6d2ce520106cb279870e87f1bd59a8b2130994218cd860083682f47373", + "bytes": 3099 + }, + "dir16/clip16.opus": { + "sha256": "c283ba6e37e6240f292da2c34098ab9fc39dfd0c7e475c8f302dbadafa1a01d4", + "bytes": 1601 + }, + "dir16/clip17.opus": { + "sha256": "c0eea479922db423cac5330adb5327f299090bfc63a99d42f33b9f2b8925961d", + "bytes": 1220 + }, + "dir16/clip18.opus": { + "sha256": "51cb8ae126e8fd55b2d2e794aa035d1638f6e4f9bf14fc840af8ac08a91718fa", + "bytes": 6368 + }, + "dir16/clip19.opus": { + "sha256": "1042b43c52827bd78a51e36140c5672df22697a56b54c50a8d3d703babe9025f", + "bytes": 6515 + }, + "dir16/clip20.opus": { + "sha256": "c775bb1de75b6737668b4cd53fd57cededcbd39b2b0f1ae49277d8b16492e260", + "bytes": 5801 + }, + "dir16/clip21.opus": { + "sha256": "72fa54904f0b95c50cc489951c9b851fdcd49c13b2a4b3c2fddd66606c81c42c", + "bytes": 3357 + }, + "dir16/clip22.opus": { + "sha256": "3197b86bcec075ecb4d5bcaeeb330e30d407e40d1a94038f0eacd9c7b745b913", + "bytes": 4076 + }, + "dir16/clip23.opus": { + "sha256": "ccf1392efa180831042d0b4d62e79ff3336aacd0af4706e58416d93443fe7851", + "bytes": 9916 + }, + "dir16/clip24.opus": { + "sha256": "307cfdd2ffdd95a353ae9e35dbf59827784cb6222fe73d94bb85b2f40c2d0e72", + "bytes": 8267 + }, + "dir16/clip25.opus": { + "sha256": "ba2091a29f72280b096525b91fd2aa819773a5e0c006f5443093fd9991822278", + "bytes": 6263 + }, + "dir16/clip26.opus": { + "sha256": "a40f1f59272d4ec94c2433c8d480121c1944ea78569d1cb1b7f1f32953b96da0", + "bytes": 5315 + }, + "dir16/clip27.opus": { + "sha256": "e9cd3f35cecd1c53809fd75972b778fc79fad0351aa320d481a56d9c6e96386d", + "bytes": 3680 + }, + "dir16/clip28.opus": { + "sha256": "7c28ac9a6a2d1a3d21ff855c8907447ddf908f82ed2067e57975130002f48300", + "bytes": 7029 + }, + "dir16/clip29.opus": { + "sha256": "f424fb91631d1884cc3a895c2bfeafbb29f73840595d40164c3f410355a10cd1", + "bytes": 3083 + }, + "dir16/clip30.opus": { + "sha256": "3404ac21949da69b9a649de29ec0c94e2aff10e5266f117415fde8870d609e3e", + "bytes": 6282 + }, + "dir16/clip31.opus": { + "sha256": "35569ccbfbc37bd2edc9785a91818486da293596d9bb4de80430afc8f27afe13", + "bytes": 5847 + }, + "dir16/clip32.opus": { + "sha256": "269994bc3f73112a55f1fe946a25a695a931df10934de8dea66f78fc2991c7d3", + "bytes": 8011 + }, + "dir16/clip33.opus": { + "sha256": "d09f20aba77bb7e002e131556da48b689b88063cb231d2d054cecb6d29d5e24d", + "bytes": 5710 + }, + "dir16/clip34.opus": { + "sha256": "12ef3d397e10537acc0db0c93b06dee3ddcd10259cedad77c1bf04709bed75bd", + "bytes": 6922 + }, + "dir16/clip35.opus": { + "sha256": "69bd24748f8214f2423bea0daabe12424546fafba5e7b7f4da5498a8d9683ae9", + "bytes": 3496 + }, + "dir17/clip00.opus": { + "sha256": "24356429d7ec113e7bdba8068f22cbb0de83f958a2e724875207014bcb190c56", + "bytes": 5282 + }, + "dir17/clip01.opus": { + "sha256": "afa3314c4009282507caf15d696c1d9f93b86991513bd4643c4ed9ca8fee59e4", + "bytes": 2829 + }, + "dir18/clip00.opus": { + "sha256": "2ecc461d6cbecc3bb7e1358f15b845e7fc94de52cd2bd6d62f02994f461100b6", + "bytes": 39163 + }, + "dir18/clip01.opus": { + "sha256": "3f12ffecedcc69f49c518070307b40c9cc836e1fb5e8fb83f92273d32bfa89aa", + "bytes": 2165 + }, + "dir18/clip02.opus": { + "sha256": "9cc3bfb8f07d763653e7d832b88df534fd600ee986145c5d0307e40f1c4e2b9b", + "bytes": 3033 + }, + "dir18/clip03.opus": { + "sha256": "1d47dd00351faa6468c09e750d7d888ce157d637cb92572874b4181b37433dbc", + "bytes": 5038 + }, + "dir18/clip04.opus": { + "sha256": "5a6101d00e4265ff57401a028d0a5a5945c69f661921057682c3f45d4aa70e6f", + "bytes": 3827 + }, + "dir18/clip05.opus": { + "sha256": "5aa423c04991ffb165569bb8e66c7f47a3874cbc80fea366d9fccb776c18e28a", + "bytes": 1588 + }, + "dir18/clip06.opus": { + "sha256": "89ffc8340f1934075f3269b1cce099b97d30db4a1404623e96b61acb57476773", + "bytes": 4691 + }, + "dir18/clip07.opus": { + "sha256": "1f0dab85057e62c0af95f92e1278eb07e9444b7de22bdfde13baa452b9a0f65e", + "bytes": 3499 + }, + "dir18/clip08.opus": { + "sha256": "eb5473d9071b649a5faf310f98b08559fec61801626157a49d715bd13ae26a0f", + "bytes": 3965 + }, + "dir18/clip09.opus": { + "sha256": "d9ee6e49b38f5d2da391ec613d857e35834ae2a7c0e58f6ba4c8f483a8bd9b10", + "bytes": 5193 + }, + "dir18/clip10.opus": { + "sha256": "430bffc46184bb44f9661f8b51a0934c18cc135f047f2e088c997f4b0e14d5d9", + "bytes": 1223 + }, + "dir18/clip11.opus": { + "sha256": "c5b1e064433a35df8d2153d5c5928166121d63c9f3fb5382bf2ec332c549c2bc", + "bytes": 1907 + }, + "dir18/clip12.opus": { + "sha256": "460e0275c116099d9a2762255e46889691888ca378f7cab3e22a3934a88b6e86", + "bytes": 7131 + }, + "dir18/clip13.opus": { + "sha256": "4b642835bd7d6574c0f478b431dd75dd1160532686322c366181847b9042a05a", + "bytes": 8211 + }, + "dir18/clip14.opus": { + "sha256": "241f513a6faab10665165bf3d3d25fabba37e62bf5cb6343648bc29984475c95", + "bytes": 3709 + }, + "dir18/clip15.opus": { + "sha256": "36d0fb47b10d59de96db01b1a0b814d3fe8f5431d75bf0faadd29285a16da764", + "bytes": 3594 + }, + "dir18/clip16.opus": { + "sha256": "6e5d2f9f6544d247e0ff3162a166ef447e0070ac1a3bce61c1df60b11c95cdc8", + "bytes": 2610 + }, + "dir18/clip17.opus": { + "sha256": "2163d43d116724c30437b2faed691d945385500a4a6e44a9d12db92ff42e86aa", + "bytes": 3074 + }, + "dir18/clip18.opus": { + "sha256": "9f4d3d033c091f8edaa2a02bf95d6f2e67307d2ec1669bdd51701ad6cd29400d", + "bytes": 3244 + }, + "dir18/clip19.opus": { + "sha256": "5b5c06f23bd9a02ffe533fd517406851f9bac4562e3d1ef8902e39cd4d0184d1", + "bytes": 2886 + }, + "dir18/clip20.opus": { + "sha256": "41ece30bd26380bcab0b3d176bb2e1609335e1c2bb4dd5e9349d1f98da884dbb", + "bytes": 3710 + }, + "dir18/clip21.opus": { + "sha256": "8749fa22864aea7969ec7f987e4851f54f46fffe75a35eb3029b858cae44858a", + "bytes": 4194 + }, + "dir18/clip22.opus": { + "sha256": "0ff1d012f60b7a24680303df0f9806033697517d0bc754da6b663ba3cfa5de89", + "bytes": 5888 + }, + "dir18/clip23.opus": { + "sha256": "56f07b37ec0a9dc6f6ed46ba706108e32584750459ecc3c47369c40048656c68", + "bytes": 3120 + }, + "dir18/clip24.opus": { + "sha256": "ee14f5be5de467911c322f6ef78a3b42f5dc35aba8b7b2c159a15edca583636b", + "bytes": 5565 + }, + "dir18/clip25.opus": { + "sha256": "ae14d179f7f44c713962c3f2afc04db69860e6ab2e6292619f96894ddd8840b0", + "bytes": 3299 + }, + "dir18/clip26.opus": { + "sha256": "6116932011dd15480a9411fba6f4b6e88c0d1cf37a9083d2b81cfb2cbde507bb", + "bytes": 5808 + }, + "dir18/clip27.opus": { + "sha256": "35efec086a434bb42dfdb44061ee28c85c2d07cfc0ae96ae24df0847dd3a6271", + "bytes": 3720 + }, + "dir18/clip28.opus": { + "sha256": "39132a2858e02e6d804c3a2c9a3061942f9ad3a36fd903a845f1c8667dcb650b", + "bytes": 4228 + }, + "dir18/clip29.opus": { + "sha256": "f84dced2da53f036514c8341298805e0362678ab3361aef50a36e75c9ce38cc1", + "bytes": 3094 + }, + "dir18/clip30.opus": { + "sha256": "ae6aff3449b4695e60a5a815dfc275fe06d64e422912721c147bb8ddaf75e649", + "bytes": 3338 + }, + "dir18/clip31.opus": { + "sha256": "a4487b2ab2f5c7416ba99236a2371f6a9938f393c7d5516980151ed33eb41922", + "bytes": 2686 + }, + "dir18/clip32.opus": { + "sha256": "9243528d3d79692e30fa3bb652a824d35997f59826899d2081282b069173fa85", + "bytes": 3212 + }, + "dir18/clip33.opus": { + "sha256": "7d36e4b843d38e34d027dfd22106b9ce6860d992e16551fd7c63a7d2aec4e13d", + "bytes": 3912 + }, + "dir18/clip34.opus": { + "sha256": "d0eacfd063ee5819410137625943e0074d3b129ef3246b0fbaa46b6e234f971f", + "bytes": 2748 + }, + "dir18/clip35.opus": { + "sha256": "e936bdb2ee7c8424f3b2050a9aa463d02bdd7fafa8d83994b2f61ecdb7969620", + "bytes": 3526 + }, + "dir18/clip36.opus": { + "sha256": "a8b2c4d30d20a2371f90929cc75a8a80f464ea84e4d0a9a1428c58c415a8e610", + "bytes": 4372 + }, + "dir18/clip37.opus": { + "sha256": "955afa86e2b64207140136cd8504fdb961c39bcbfd6fd27530228a96eefb1812", + "bytes": 4379 + }, + "dir18/clip38.opus": { + "sha256": "887487ba14dc3e359ff1868216d7c169deb82976974d6be25de8b7f9237dc6c7", + "bytes": 3449 + }, + "dir18/clip39.opus": { + "sha256": "3bc5dd4b35945ead872659fbf8985eb4c4e220407aae9966282f349659df150c", + "bytes": 6238 + }, + "dir19/clip00.opus": { + "sha256": "59c609f3938b353522c70095ed4d9d39a428dcf85c015ac5adbb94cc3bb3775f", + "bytes": 1942 + }, + "dir19/clip01.opus": { + "sha256": "0e86cfc936c6e0aa1604ff5dce0ad7d89f6db9031f38f332a4745db195724ddd", + "bytes": 11567 + }, + "dir19/clip02.opus": { + "sha256": "c62e54d7083c7fd2b1eb844a594b7f7a88d565a127ba31cbed9262a96ff876e3", + "bytes": 1530 + }, + "dir19/clip03.opus": { + "sha256": "7ea4c2144407beecd04a37cd9545b299db706af8adf6cccaa6da0654fb401952", + "bytes": 1087 + }, + "dir19/clip04.opus": { + "sha256": "374ed74932b2898d5053e6ea626b5b957262e0a68c1b9ffdbf662907d919339e", + "bytes": 35801 + }, + "dir19/clip05.opus": { + "sha256": "ee4e44edac236f6abbecad2b360efb23952d779b498b2f619b2ae4f1cee188e4", + "bytes": 1308 + }, + "dir19/clip06.opus": { + "sha256": "f37c13bd7dda2432b65a99e116e14de1f5dfe05c90287adba3d9edaee3b3927b", + "bytes": 14972 + }, + "dir19/clip28.opus": { + "sha256": "3d5ee63542561321a136494700a4851a6754b88e40144258db4286bc702caaf1", + "bytes": 2281 + }, + "dir19/clip29.opus": { + "sha256": "c75498608fd40bc1b891d21d366e65b0778670695099e5347555a6a40be6f43f", + "bytes": 12702 + }, + "dir20/clip00.opus": { + "sha256": "1b36cb5f85b0450789b34648375b04e771fd276157471c353d80525dc584ee93", + "bytes": 11772 + }, + "dir20/clip01.opus": { + "sha256": "f1f13f185ce91e12c14e6f8ac4c4121554be1cd9d7669879a885348530a99737", + "bytes": 3887 + }, + "dir20/clip02.opus": { + "sha256": "6b58346f3508f5266c8ba3502feb588eeeafcf0c0c4b0373eda8c04bf1ac7e94", + "bytes": 4741 + }, + "dir20/clip03.opus": { + "sha256": "e1b1715f4163ac8ba763fdac8f25202d9f2991c733663c00ab15ccae749bd760", + "bytes": 3759 + }, + "dir20/clip04.opus": { + "sha256": "f668dd0516549619d4eccf66be5a25ebcd80bb58d19b7c4f19d2064a1b9bf7e4", + "bytes": 5205 + }, + "dir20/clip05.opus": { + "sha256": "c052ff42a09397a000ab56c3bd9dbeeda4699266b0566acec0ec9dfb8f8bcf21", + "bytes": 4427 + }, + "dir20/clip06.opus": { + "sha256": "b7b34e27b332b8093dae8e18f2bbcad119f4531f264ad8116d204366f1e120a4", + "bytes": 3457 + }, + "dir20/clip07.opus": { + "sha256": "91a7f75bd0ceba878931ae564e664a34e5208f9ef727cb310a55063a71d4215a", + "bytes": 3915 + }, + "dir20/clip08.opus": { + "sha256": "0abc3dff04003751583ba389343981e6741fb6f310a2b7b5e69d3e7d4b0d9bea", + "bytes": 1617 + }, + "dir20/clip09.opus": { + "sha256": "befc3b1af80fc9e3e3ed4eb09f0f43c0459a7a88da68d7551e6fd44a4c48bf1a", + "bytes": 5672 + }, + "dir20/clip10.opus": { + "sha256": "091c0919737e187ddb375a61cc7134e45232e50888f082a8a2b585042252171e", + "bytes": 6086 + }, + "dir20/clip11.opus": { + "sha256": "8a4b2355daf3c5fb13c2a662330c4dd9a31ca826a5eb0c56b7fb2ddd2f0ec6df", + "bytes": 5119 + }, + "dir20/clip12.opus": { + "sha256": "a71bc8a09502776703bc353aa0cd9ca443540233431e7c7d048110425914c9b9", + "bytes": 6066 + }, + "dir20/clip14.opus": { + "sha256": "4582d6add58014600aa5e7b279cd56df4916f7dc9f686edb62c4a051072481c0", + "bytes": 2719 + }, + "dir20/clip15.opus": { + "sha256": "0e51b095bb7fa5a1c21826f0d4c1e1f4ab633ca33c45f1b00bef22985ac3776a", + "bytes": 4505 + }, + "dir20/clip16.opus": { + "sha256": "efac9618da0f04e8e5174647548af4f9ba7fdbd41d81b5922c3735874bd163d7", + "bytes": 4230 + }, + "dir20/clip18.opus": { + "sha256": "513db09f58d36b62651c76755295ad813ba5108dde16a886647abfd1277bb395", + "bytes": 6432 + }, + "dir20/clip19.opus": { + "sha256": "ecb0be98fbb3f67740559e4b59f89a035a67298eec4995857958e25c64d60756", + "bytes": 7443 + }, + "dir20/clip21.opus": { + "sha256": "8503cb419750e27e74ab25b0c96473b4986b0e34a361380e7a4e8aee5b3f733a", + "bytes": 4937 + }, + "dir20/clip22.opus": { + "sha256": "393918957d436b1823b10936edcc3b5c0560b47f71649b24b84a524ad0defd4c", + "bytes": 7068 + }, + "dir20/clip23.opus": { + "sha256": "4e400115a312325e48235c930a56b0089016a0d1285f36024f171e5181bb6ab9", + "bytes": 2438 + }, + "dir20/clip24.opus": { + "sha256": "15a95391efacc1ce1a2fc5f5e89e04d2d5a14b50f79332ba3668ca4300d167e0", + "bytes": 1297 + }, + "dir20/clip26.opus": { + "sha256": "4cd4457ae6ae1fbc8c8ea4a4308614a13e9f3420c4345b053f2011c7024a5d6a", + "bytes": 2315 + }, + "dir20/clip28.opus": { + "sha256": "573b30951efb2ef91062da8a3d7f9ddcbabc244503ee3a25c918dd15f318d926", + "bytes": 6739 + }, + "dir20/clip29.opus": { + "sha256": "6e95e85a73c174acda3f6596ff65b9adfcc9a869a48a6b83c2cc84d9790b6371", + "bytes": 6145 + }, + "dir20/clip30.opus": { + "sha256": "23a8409e1dc3eb97397490d5fab1382b3efc8ab011b992f5a6b0a54a0a402be5", + "bytes": 40388 + }, + "dir20/clip31.opus": { + "sha256": "34882d9e4f2b7c04a334c3dc87121f733e3ba095fca764da0bbf4e1c00ae50b4", + "bytes": 4796 + }, + "dir20/clip32.opus": { + "sha256": "1846254ae719e25f7d7e59b769d4ff4c3142f513ee1a0c0f2cfad7d1109004c4", + "bytes": 2784 + }, + "dir20/clip34.opus": { + "sha256": "d1fc97835a571771601e0e889a12cd5c77b9244dedada1969b44774f112660cc", + "bytes": 2610 + }, + "dir20/clip35.opus": { + "sha256": "8fa098717fa8c23767b1e03fb6779f1774c7acc2332320308d9473ce6496fe99", + "bytes": 1458 + }, + "dir20/clip36.opus": { + "sha256": "78abb7046837623974d4dce507184109e5d5a33de51d01a3f9bd929f0c24a10d", + "bytes": 23278 + }, + "dir20/clip37.opus": { + "sha256": "dcde080a3b0ddfd45ab7dc1ad532489dac7dc95f57facde7637938e03e7ee8f4", + "bytes": 4049 + }, + "dir20/clip38.opus": { + "sha256": "16869e3fe2db9b56aa785cfc9f57b4ae037f7f513a949830aec02a649125eeac", + "bytes": 13327 + }, + "dir20/clip39.opus": { + "sha256": "4dc5eda4de68b955f5b1af40e3ccf266aedfd00e256e85fef2f85c9d7b881afe", + "bytes": 3798 + }, + "dir20/clip41.opus": { + "sha256": "f5e1106ed50d5b4fae8650d68d1ea143c0e265c82cbbfa57a61a04b2a6cbc3c2", + "bytes": 6464 + }, + "dir20/clip42.opus": { + "sha256": "6d7485fea0018c79fd4aecf64fe929d920eec79b8ea623ac0a99e6fb12e108c9", + "bytes": 3058 + }, + "dir20/clip43.opus": { + "sha256": "8823bd436261c6e690c71fa9b50cf3f2ff299fe54d145d6ec99d24576a550bf2", + "bytes": 4544 + }, + "dir20/clip44.opus": { + "sha256": "20ec310d3df443627b5e99731508b3b6bf8282136ba6a2c6142786817f732354", + "bytes": 3681 + }, + "dir20/clip45.opus": { + "sha256": "041342420f98a50b6656e7a9c392923ca67b180de0df40beabd9220d10007e07", + "bytes": 2626 + }, + "dir20/clip46.opus": { + "sha256": "fbe5addcbac42ae8067dc1c24aaea8956b49041e719441f05d6e3f8f1157deaa", + "bytes": 3447 + }, + "dir20/clip47.opus": { + "sha256": "803491a3f7072c7b7db44500aaf2f456e578157983808473af0cb26288388128", + "bytes": 3194 + }, + "dir20/clip49.opus": { + "sha256": "9f116b1df30206dc42baf995227e5287086836a23091898c4282b70882d89215", + "bytes": 26738 + }, + "dir21/clip00.opus": { + "sha256": "2e6342ce3212ee05e345bb15d6c4efc25265116e393ea2354fd35d25e10b17b1", + "bytes": 4957 + }, + "dir21/clip01.opus": { + "sha256": "19f1fa186050241ceffe21cbf41deb495c1c90e4044417fcc66f6a9766a2e18a", + "bytes": 1910 + }, + "dir21/clip02.opus": { + "sha256": "2a0a566f6d5fea04f659c671974177843461d8c27d343dc3326a36f94f5a36a7", + "bytes": 2321 + }, + "dir21/clip04.opus": { + "sha256": "96621c33ff4b740572f721632886c4ac66898ad8c98cb75bf260c35ed014e2c6", + "bytes": 2014 + }, + "dir21/clip05.opus": { + "sha256": "d45eda5bf08aebdd7b854f815fcdf792c51d80e7104ea852e2b452a2a6c223c2", + "bytes": 3232 + }, + "dir21/clip06.opus": { + "sha256": "362642500c53fd3ddf149d1c99615b0c274178b04dbbd5799e4d322e77e4896c", + "bytes": 2321 + }, + "dir21/clip07.opus": { + "sha256": "b1254a01c155f92386f60a588bde7d62cf61860d1318d89ffafd4723fbaef065", + "bytes": 5240 + }, + "dir21/clip08.opus": { + "sha256": "88b8cfd95dd6c0c0e808ab7108a62166bab9dda96a74f08c6fdf5c4892438b9d", + "bytes": 2187 + }, + "dir21/clip09.opus": { + "sha256": "99176cc4c85d890eca4493d6320d3df69ed69dfcf345a1b39b1d20fc6b150cdf", + "bytes": 4178 + }, + "dir21/clip10.opus": { + "sha256": "657a801ec00d65ccfd5d8b051829103ba8d8dfac6244f478f3d3cba23fb5581c", + "bytes": 4713 + }, + "dir21/clip11.opus": { + "sha256": "6f3b7fd7e708e937ef7e65d3ad00c7947e33e73e6955f97e6a861822d012cb9b", + "bytes": 4158 + }, + "dir21/clip12.opus": { + "sha256": "96787b5b9e7b82f34b1f2d40225b41ade2b97e469a388758daff0c234e483409", + "bytes": 3963 + }, + "dir21/clip13.opus": { + "sha256": "82a464b807d5833f0d3af602e9a82fdf8f4fbab4527963ba8f02063c6230bf5c", + "bytes": 4513 + }, + "dir21/clip15.opus": { + "sha256": "bd1cbf93fcf338e0eb4c94a6136018f3bc7e320cea1b77b386c907d4e93de2de", + "bytes": 2479 + }, + "dir21/clip16.opus": { + "sha256": "a78f2f3c0a52e51b1b897b73d0c87abcbd498249e7569672a4dd63a925655cd2", + "bytes": 1880 + }, + "dir21/clip17.opus": { + "sha256": "faf7a617767f347ed19aa4c057eb4a0dcbbdf1cc8ce9db1eea99e78c601525db", + "bytes": 4316 + }, + "dir21/clip18.opus": { + "sha256": "dcc895b0c257cbaa6195793c59b583c0ca45a37bfdb422d8f04ae4c1e9a82024", + "bytes": 2720 + }, + "dir21/clip20.opus": { + "sha256": "39719517258eaf3a28fa277ae6f0abd869e26accc1b37dcf7a73fc2471d24b1f", + "bytes": 2577 + }, + "dir21/clip21.opus": { + "sha256": "e61be5707422b47dec95ffe9579e465b6271872eaf471d051227208e7e654d1a", + "bytes": 4000 + }, + "dir21/clip22.opus": { + "sha256": "a5ec30d9eb5f9f187b3411f4048eddbb27cb7534261b76c7887f959a201eaf10", + "bytes": 2196 + }, + "dir21/clip23.opus": { + "sha256": "b987b2a7a5b5d2249f5bcc8688c39c1a055e3c6d03216ceb3d0417de428663a9", + "bytes": 2157 + }, + "dir21/clip24.opus": { + "sha256": "b2af9c5a09067410a65dbe77d0b100c98abffb930e98321b16469004220683d0", + "bytes": 2503 + }, + "dir21/clip25.opus": { + "sha256": "0dddf30c4ab9fc1097e432866f7febff1b7653e80c510d5840a83c3b49a116ce", + "bytes": 2541 + }, + "dir21/clip27.opus": { + "sha256": "eef9f1e8c046ca2c8c7e79264e9d810fb0099b49c16aa808a00184c8a543bb7b", + "bytes": 3054 + }, + "dir21/clip28.opus": { + "sha256": "04c55273db9b0b177356ef4556d737311127572877d885a0daffd010852a5f53", + "bytes": 3636 + }, + "dir21/clip29.opus": { + "sha256": "3cac48e68f088ff06c8e14d91509e4a22642adf48e1365b4ca56dfc59a410887", + "bytes": 3233 + }, + "dir21/clip30.opus": { + "sha256": "c59d4bc6bdcd6b073713e19217c9937ba519cb261e6b35f02f41fa48631a7951", + "bytes": 4548 + }, + "dir21/clip33.opus": { + "sha256": "6c3155b22c547fe89940403490fbea0c86b83097d7d6f086bf720c8e6fcbd0c8", + "bytes": 3907 + }, + "dir21/clip34.opus": { + "sha256": "bc0b63b35a4c1bc82aa6c8209335d3cf54a91e1ed3b6932efa3cbe140ac682eb", + "bytes": 4186 + }, + "dir21/clip35.opus": { + "sha256": "9f2191794cc3f928b150bd0cedc196accb24bbd2dc7e7da8ee3db0b327d52f9f", + "bytes": 1843 + }, + "dir21/clip39.opus": { + "sha256": "3b6c291887a3d563eea90167b4b4ca178b8f1d7c451323debfd310111c825bbf", + "bytes": 4651 + }, + "dir21/clip40.opus": { + "sha256": "603f11e692e6702cb1692a8b93a6445fc4607e2367d0eeabf54404882a999dce", + "bytes": 3355 + }, + "dir21/clip41.opus": { + "sha256": "b1a8ea592382c1fef51e279e152064b210828488fda994c0dfe0b1a6114448ec", + "bytes": 2444 + }, + "dir21/clip42.opus": { + "sha256": "452b1aa3df3ba928f9e2598d5ca7dd986655048433f2e77e023674b86d50c195", + "bytes": 3940 + }, + "dir21/clip43.opus": { + "sha256": "1bbd266c2a078fdb048f30ea97e9ab73eb87733ae2ffe56e5e6bf12634983f19", + "bytes": 3423 + }, + "dir22/clip00.opus": { + "sha256": "ebbbbb0d93da4cbc4954496f6a3f9e5879e1e4863a15e895b7ceb99706d59345", + "bytes": 3181 + }, + "dir22/clip01.opus": { + "sha256": "21af702c55cdbc46062af0ab8f2edfe274444941af2202dbd2f98c5b29f80bc8", + "bytes": 2110 + }, + "dir22/clip02.opus": { + "sha256": "5f5a007ae9e108860729cbc0b9c443a3eedffffb72dfa41a64db0429afe75354", + "bytes": 4993 + }, + "dir22/clip03.opus": { + "sha256": "dc104cadf49824cce541b20449b2d157f707177132e600be4b7b97b44dd98a5d", + "bytes": 2516 + }, + "dir22/clip07.opus": { + "sha256": "dfb73e0d58c7192c2546281d54b22dadfac2c7a43ec4610349cddc96644325a0", + "bytes": 4054 + }, + "dir22/clip09.opus": { + "sha256": "3cac73ef577233a1ca472bb97518491c02ddc07b1a34a14b91280334ef6ba462", + "bytes": 30324 + }, + "dir22/clip10.opus": { + "sha256": "cf4bc5336b761380af4b51bdde9fa262a2ee94feebef5477bf99eb8fab5ebb4c", + "bytes": 2350 + }, + "dir22/clip11.opus": { + "sha256": "d83698c0b4656e5bfbac2f0ed060dcf41cd41dd6424d55a44942be1999bb73cd", + "bytes": 11456 + }, + "dir22/clip12.opus": { + "sha256": "6cecea9846c76272bf0f0b134ea33419e60d970a6f86d0507335509c7d2e58f6", + "bytes": 11924 + }, + "dir22/clip13.opus": { + "sha256": "eef97c2175b1f25c154cba89693177210a00552d20b58ed153a5697ed6034cd3", + "bytes": 27515 + }, + "dir22/clip14.opus": { + "sha256": "ee2f3ec61e1615b04a4e29974274ccaf89814129a55a825047a4edbbe9aa4a9e", + "bytes": 3315 + }, + "dir22/clip15.opus": { + "sha256": "ed925cf926422662c7bd1bf5f158e242f2fc7ce95ad247fb2fc8e61a62e02a46", + "bytes": 29520 + }, + "dir22/clip16.opus": { + "sha256": "43d0fb0341f1fe9327b3e7d197b2441b0655b1c36e9a5a71358397bb970e39fd", + "bytes": 1761 + }, + "dir22/clip17.opus": { + "sha256": "e5f0fbfd98fbb01e1023df57408787ac64a38ee53ed905003b4c89446d221b9d", + "bytes": 12329 + }, + "dir22/clip18.opus": { + "sha256": "b2b22ff6f22f8f05c8e7f97d2dc43731512b2b94bb357abd73dac04542ac8ef6", + "bytes": 4440 + }, + "dir22/clip19.opus": { + "sha256": "8c4d4a9a89b0eadfcdf8c57fb148cb13511cdc6b8c8e02810a53b49114e9a0ea", + "bytes": 4414 + }, + "dir22/clip20.opus": { + "sha256": "cf2bc04b96a6269360bbee4e91cb1f7d107363dbf4c30192d0ccc65a74feff57", + "bytes": 6084 + }, + "dir22/clip21.opus": { + "sha256": "2f523332ae68d2c6d7d8d31e97dd363b904c95ebf9455ea6aaa2bee30c4ebd13", + "bytes": 5794 + }, + "dir22/clip22.opus": { + "sha256": "c14313dd3719a14d34e93a9074cca1108d2d0a4f4899d309887c538cd3b25ebd", + "bytes": 13269 + }, + "dir22/clip23.opus": { + "sha256": "74761efa723ea3d832b7d699e796e2237460c239eeae827c2dd53c5d15b6332b", + "bytes": 22472 + }, + "dir22/clip24.opus": { + "sha256": "d31e0b6da092246a740e2fdebf35a06a1a461d70715d759188eee3ce621bbc0a", + "bytes": 5254 + }, + "dir22/clip25.opus": { + "sha256": "02a529c5b11d62ef045a7ae30f30af2c7b63b6c6ecca62b308877198393b1343", + "bytes": 9487 + }, + "dir22/clip26.opus": { + "sha256": "839944f4b2762a4805795321314e5646ef981ffaf0825c8c89b24359c769682b", + "bytes": 7241 + }, + "dir22/clip27.opus": { + "sha256": "c521c41884dc2d1938b7547e27be2d1c3f94b83d1444852a417ea5b67d362f84", + "bytes": 6354 + }, + "dir22/clip28.opus": { + "sha256": "0ef22de03b5f5c60f506d8e65fd9c746781a34836dc6781670f2d9cec611c956", + "bytes": 5476 + }, + "dir22/clip29.opus": { + "sha256": "8cbbc3a5a2fbf1b2b2914a9fe8094f19b66e74bce83b19561991fe0be4ce17f4", + "bytes": 2890 + }, + "dir22/clip30.opus": { + "sha256": "b4e8bcab5a4d18bdd4e9e33827c4b859d964382c462b7fb8a8fb24542e4bcf87", + "bytes": 6530 + }, + "dir23/clip00.opus": { + "sha256": "622fcf43203901c4e9988d427fd058fda4eb793c241cdb2e032adfb5bd305dc2", + "bytes": 26800 + }, + "dir23/clip01.opus": { + "sha256": "f5c34cabd8bfb5846a190c3b5f6bba90126bbc4f7881ba8904376eae10f6cca9", + "bytes": 5880 + }, + "dir23/clip02.opus": { + "sha256": "4556dfd20e848b59fa48a48c7f08f1e9ac059113a92d4aa97ed1284ea13cf8da", + "bytes": 14925 + }, + "dir23/clip03.opus": { + "sha256": "29ff8524855131932c4163f0e9eeceb94411337e49f6d9c3de689574ac0fd378", + "bytes": 6072 + }, + "dir23/clip04.opus": { + "sha256": "e37a4d5313354abc3431e838ace52215e855adb152e37420739ea9cd3e0d4e42", + "bytes": 17986 + }, + "dir23/clip05.opus": { + "sha256": "dbb04cca1e657293ce9af9a326320ce7f0086744935683538146a6dad9ac327b", + "bytes": 1514 + }, + "dir23/clip06.opus": { + "sha256": "9822d3021d4dbab0b11d3f1ca7283e7b2c09f2c4da34712d362b6621fe398d68", + "bytes": 36685 + }, + "dir23/clip07.opus": { + "sha256": "68b7f28c2ee3c9f8760b5bf3bb55686bfe139cf1f06ef72c1abbe3f99bd74ac8", + "bytes": 26866 + }, + "dir23/clip08.opus": { + "sha256": "561ba8ca4de5893b20c347ae480bb982c34be12e5ff0ba5d8ad13b63c363aa6e", + "bytes": 3377 + }, + "dir23/clip10.opus": { + "sha256": "e097856ea3802ce0a7d4000070e276f4efe72c87c8753760a8b39362c3967450", + "bytes": 3647 + }, + "dir23/clip11.opus": { + "sha256": "9d08fc6b6186897cf6a62ac1e7069139266761627137c7b9d93851f5c86e0ab8", + "bytes": 2671 + }, + "dir23/clip12.opus": { + "sha256": "999b7c502f7b3c23ea239b8205ecf7b4aca7749bd0cfe3c49ed8b1964a6acf08", + "bytes": 2017 + }, + "dir23/clip14.opus": { + "sha256": "3837c5eead32e64e8f618cb3af21a164a9bcc80875067082b6e83cb6edd58c39", + "bytes": 3477 + }, + "dir23/clip15.opus": { + "sha256": "d2b25c24483d84dd9855f10853428b0a79c1d45f8da778f8006f72aa7c4ca694", + "bytes": 3230 + }, + "dir23/clip16.opus": { + "sha256": "3f1910aac3cc99e312bd952ba2678170ef6e60ff6a8797f1a679507fb82b5188", + "bytes": 5682 + }, + "dir23/clip17.opus": { + "sha256": "fe7b598a2a443d63fd99b08d40a3a90daf968a730e951479a1d209c70f977b45", + "bytes": 4741 + }, + "dir23/clip18.opus": { + "sha256": "8de511a45438d13f540bd6041db87e6eabb8abe54f3b68adc23d404768d250ab", + "bytes": 4107 + }, + "dir23/clip19.opus": { + "sha256": "af3ef451cfed203e7d2a22ea68e7060130832776b1d859b0b7047c1270dcb0f9", + "bytes": 3583 + }, + "dir23/clip21.opus": { + "sha256": "3ad2c223552f99d3ab949363a80eeb32ea27b6a72beaf40e0e27eecf58c27150", + "bytes": 18194 + }, + "dir23/clip22.opus": { + "sha256": "6cecf5d3f60e6f8536d09a4b9817bded18b02304300ce9730fc96261c43329f8", + "bytes": 12120 + }, + "dir23/clip23.opus": { + "sha256": "a6fd9e63d147c92b4ae361324874b532a173214088555e9d4f62733e2c970b51", + "bytes": 3048 + }, + "dir23/clip24.opus": { + "sha256": "cca5c518e78491c6c51faff90fbf4d30ca2ab5e695a64ffb2d1cb4b68002c286", + "bytes": 25434 + }, + "dir23/clip25.opus": { + "sha256": "b15c1a30ada277f2757f4ec1129eeae546552ee94b31a7131b7a5cec2e805265", + "bytes": 38792 + }, + "dir23/clip26.opus": { + "sha256": "50a4ab1ad7e898c7068a94b3b601dcdbc47d56de36915f20e4c2bbe40aa26a08", + "bytes": 30878 + }, + "dir23/clip27.opus": { + "sha256": "2f48ff07806c7de2facc2e1b42b8ae6d46f4a29b42141cef4e14871879c57703", + "bytes": 3173 + }, + "dir23/clip28.opus": { + "sha256": "32b5879b86b45e79114a80b600d8435f7e432c9627e8c4d1dce1aff0ae337dd9", + "bytes": 2788 + }, + "dir23/clip29.opus": { + "sha256": "ae0f05c08d07e784ed08f7b71add3307f854db13a83c543c5fb83ddb7d550bf7", + "bytes": 3303 + }, + "dir23/clip30.opus": { + "sha256": "c84ba786d133a245d73d6655b98df94093b142e19480eab5b0359b658b1fd336", + "bytes": 2713 + }, + "dir23/clip31.opus": { + "sha256": "d2c87fe2f4e3f2137a9a6950a290a0f28e28a2ce22110f1604f837767bef1d60", + "bytes": 2189 + }, + "dir23/clip32.opus": { + "sha256": "f7bae627b5ae272e2b2b41a4d8a6a852c159482a77616693e23fadba77e4e2d2", + "bytes": 1424 + }, + "dir23/clip33.opus": { + "sha256": "527d057bf44c8d5cce7053903c72d1085b20bcd1e14f9e1903ddae1ae574d0e8", + "bytes": 22622 + }, + "dir23/clip34.opus": { + "sha256": "b88ca52e25e3719e60554fa7c111afb670045bb9d6d0a971adf7a0f4189e96f5", + "bytes": 24272 + }, + "dir23/clip36.opus": { + "sha256": "3f127cb291f8b894af59b390c7cfbabd58e3d140003631f2e2fd6e54d2a72f4c", + "bytes": 3375 + }, + "dir23/clip37.opus": { + "sha256": "f660db8069f1c0c9a1be4b9d58eddc1f1140264a7067dfa6bc0253cb3eb666f5", + "bytes": 4152 + } + } +} diff --git a/assets/audio/voice-keychain/selection.json b/assets/audio/voice-keychain/selection.json new file mode 100644 index 0000000..f9710c5 --- /dev/null +++ b/assets/audio/voice-keychain/selection.json @@ -0,0 +1,2035 @@ +{ + "version": "1.9.1", + "before_count": 818, + "after_count": 726, + "before_bytes": 4904252, + "after_bytes": 4270480, + "saved_bytes": 633772, + "selection_rule": "Prefer unnumbered base title, otherwise lowest numeric suffix. Semantic groups use the representative recorded below. No re-encoding or acoustic equivalence claim.", + "groups": [ + { + "pack": "科比", + "root": "曼巴å�˜éŸ³", + "items": [ + { + "name": "曼巴å�˜éŸ³1", + "src": "曼巴å�˜éŸ³1.mp3", + "path": "dir19/clip06.opus", + "samples": 153280, + "duration": 9.58, + "compressed_bytes": 14972, + "pack": "科比", + "sha": "f37c13bd7dda2432b65a99e116e14de1f5dfe05c90287adba3d9edaee3b3927b" + }, + { + "name": "曼巴å�˜éŸ³10", + "src": "曼巴å�˜éŸ³10.mp3", + "path": "dir19/clip07.opus", + "samples": 153280, + "duration": 9.58, + "compressed_bytes": 15013, + "pack": "科比", + "sha": "0a38a903e4211aae1c495fa6ffa8da9cb65c9904b0b36e10054cbef7df0c8aab" + }, + { + "name": "曼巴å�˜éŸ³11", + "src": "曼巴å�˜éŸ³11.mp3", + "path": "dir19/clip08.opus", + "samples": 153280, + "duration": 9.58, + "compressed_bytes": 14849, + "pack": "科比", + "sha": "c07e0eed0a6622de0281df2e74169e190124eb78824e9e2b39fba6cb1cefd2e8" + }, + { + "name": "曼巴å�˜éŸ³12", + "src": "曼巴å�˜éŸ³12.mp3", + "path": "dir19/clip09.opus", + "samples": 153280, + "duration": 9.58, + "compressed_bytes": 15053, + "pack": "科比", + "sha": "b76a8c047594000ad4680bf94eef57444e377d62a098e73bab61f0bf00c90e5c" + }, + { + "name": "曼巴å�˜éŸ³13", + "src": "曼巴å�˜éŸ³13.mp3", + "path": "dir19/clip10.opus", + "samples": 89920, + "duration": 5.62, + "compressed_bytes": 8708, + "pack": "科比", + "sha": "1e4aaef6e8ee70dee79bce9d2127ea1c544a0d9ffb2aa63baf4fadebe704a09b" + }, + { + "name": "曼巴å�˜éŸ³14", + "src": "曼巴å�˜éŸ³14.mp3", + "path": "dir19/clip11.opus", + "samples": 153280, + "duration": 9.58, + "compressed_bytes": 14867, + "pack": "科比", + "sha": "7b5c556208270c6273cc54a6c95c5228bdf20435ef10d1af7e7992b2671bd778" + }, + { + "name": "曼巴å�˜éŸ³15", + "src": "曼巴å�˜éŸ³15.mp3", + "path": "dir19/clip12.opus", + "samples": 130720, + "duration": 8.17, + "compressed_bytes": 12810, + "pack": "科比", + "sha": "64f7c6da7b8925ef52cd4624e0f7c5200d51e4ee64b5a94d495f8cd519717563" + }, + { + "name": "曼巴å�˜éŸ³16", + "src": "曼巴å�˜éŸ³16.mp3", + "path": "dir19/clip13.opus", + "samples": 164160, + "duration": 10.26, + "compressed_bytes": 15952, + "pack": "科比", + "sha": "c35cdecec99b9133ae5cfec53560d47fe1eb9ee9a8747638621a1055dc424e41" + }, + { + "name": "曼巴å�˜éŸ³17", + "src": "曼巴å�˜éŸ³17.mp3", + "path": "dir19/clip14.opus", + "samples": 256320, + "duration": 16.02, + "compressed_bytes": 24652, + "pack": "科比", + "sha": "8baa8ed73d6e0477494e835f4985122fe593c6230f28225bf978ef947490b4e3" + }, + { + "name": "曼巴å�˜éŸ³18", + "src": "曼巴å�˜éŸ³18.mp3", + "path": "dir19/clip15.opus", + "samples": 153280, + "duration": 9.58, + "compressed_bytes": 14951, + "pack": "科比", + "sha": "c679e900c1b96d27882d811cfd989224697a255feeda4cf23f9b5db7439ba242" + }, + { + "name": "曼巴å�˜éŸ³19", + "src": "曼巴å�˜éŸ³19.mp3", + "path": "dir19/clip16.opus", + "samples": 153280, + "duration": 9.58, + "compressed_bytes": 14910, + "pack": "科比", + "sha": "497767498851c98b84bb06fdac5ee761c6c701a1b7ba5a3f7d5d2be49ad038bf" + }, + { + "name": "曼巴å�˜éŸ³2", + "src": "曼巴å�˜éŸ³2.mp3", + "path": "dir19/clip17.opus", + "samples": 78400, + "duration": 4.9, + "compressed_bytes": 7572, + "pack": "科比", + "sha": "813a6bf8999b7c3a0407923c0d0242cf40d72918f25fad79d533bb9ffc1b7243" + }, + { + "name": "曼巴å�˜éŸ³20", + "src": "曼巴å�˜éŸ³20.mp3", + "path": "dir19/clip18.opus", + "samples": 153280, + "duration": 9.58, + "compressed_bytes": 14760, + "pack": "科比", + "sha": "5117d31bfefc41944d448bbd8ff337c9aadba9ebbc58d25d5098ad63538a07b7" + }, + { + "name": "曼巴å�˜éŸ³21", + "src": "曼巴å�˜éŸ³21.mp3", + "path": "dir19/clip19.opus", + "samples": 171680, + "duration": 10.73, + "compressed_bytes": 16757, + "pack": "科比", + "sha": "af43a977d785752d50e425b57ef3fd725bb108931bf4aff38d346cc18514ab22" + }, + { + "name": "曼巴å�˜éŸ³22", + "src": "曼巴å�˜éŸ³22.mp3", + "path": "dir19/clip20.opus", + "samples": 153280, + "duration": 9.58, + "compressed_bytes": 14902, + "pack": "科比", + "sha": "fb964f9f122648f885d7ae866919dae389b0eefb20253a032b20f450b73057c2" + }, + { + "name": "曼巴å�˜éŸ³3", + "src": "曼巴å�˜éŸ³3.mp3", + "path": "dir19/clip21.opus", + "samples": 263840, + "duration": 16.49, + "compressed_bytes": 25530, + "pack": "科比", + "sha": "c26d3cba015826da0256dec4a1aaeab47c9bac882cc33ff08162d97d73547f8e" + }, + { + "name": "曼巴å�˜éŸ³4", + "src": "曼巴å�˜éŸ³4.mp3", + "path": "dir19/clip22.opus", + "samples": 153280, + "duration": 9.58, + "compressed_bytes": 14878, + "pack": "科比", + "sha": "1e9493f82fa474300e928cca3940d8c567ba807c17d9c96babf65f49ce8331e9" + }, + { + "name": "曼巴å�˜éŸ³5", + "src": "曼巴å�˜éŸ³5.mp3", + "path": "dir19/clip23.opus", + "samples": 153280, + "duration": 9.58, + "compressed_bytes": 14773, + "pack": "科比", + "sha": "ec1286410c81958b101cd7942ae211f30a95002ede81d5cac1fd99a786b1282d" + }, + { + "name": "曼巴å�˜éŸ³6", + "src": "曼巴å�˜éŸ³6.mp3", + "path": "dir19/clip24.opus", + "samples": 153280, + "duration": 9.58, + "compressed_bytes": 14907, + "pack": "科比", + "sha": "ab47cac511d9addce8cfb11e0617ccdbe50d2cc2fff3ca3eb67986d02de8abdd" + }, + { + "name": "曼巴å�˜éŸ³7", + "src": "曼巴å�˜éŸ³7.mp3", + "path": "dir19/clip25.opus", + "samples": 153280, + "duration": 9.58, + "compressed_bytes": 14862, + "pack": "科比", + "sha": "ed5de922b98ecde673b8616395c94a19ca2da47a2249e520c4df4e4a5ec19d8a" + }, + { + "name": "曼巴å�˜éŸ³8", + "src": "曼巴å�˜éŸ³8.mp3", + "path": "dir19/clip26.opus", + "samples": 153280, + "duration": 9.58, + "compressed_bytes": 14847, + "pack": "科比", + "sha": "536c69a6c6129be4b48fc36dc6441524cea99893f69ede03671a2360bd16c5bb" + }, + { + "name": "曼巴å�˜éŸ³9", + "src": "曼巴å�˜éŸ³9.mp3", + "path": "dir19/clip27.opus", + "samples": 171680, + "duration": 10.73, + "compressed_bytes": 16735, + "pack": "科比", + "sha": "f03ee0975c224fa82228776c5e8a2895abad245be2bb7ac7432720b535ef66ee" + } + ], + "kind": "ç¼–å�·/标点å�˜ä½“", + "count": 22, + "total": 337260, + "save_min": 311730, + "save_max": 329688, + "id": "G01", + "keep": "dir19/clip06.opus", + "keep_name": "曼巴å�˜éŸ³1" + }, + { + "pack": "高æ�¾ç�¯", + "root": "咕咕嘎嘎å�ˆé›†", + "items": [ + { + "name": "咕咕嘎嘎å�ˆé›†", + "src": "咕咕嘎嘎å�ˆé›†.mp3", + "path": "dir22/clip04.opus", + "samples": 232640, + "duration": 14.54, + "compressed_bytes": 22726, + "pack": "高æ�¾ç�¯", + "sha": "3e6a4afca79638d801a859a7dd20c3cd3b0966c2d0a84db09d4f3235ddccddb2" + }, + { + "name": "咕咕嘎嘎ï¼�ï¼�ï¼�(超ç»�尾音)", + "src": "咕咕嘎嘎ï¼�ï¼�ï¼�(超ç»�尾音).mp3", + "path": "dir22/clip05.opus", + "samples": 64000, + "duration": 4.0, + "compressed_bytes": 6424, + "pack": "高æ�¾ç�¯", + "sha": "e0ca6e326ae747437692d452d6dbf90839e278a9f9bd61615fc42c5c8519175f" + }, + { + "name": "咕咕嘎嘎ï¼�(喷怒)", + "src": "咕咕嘎嘎ï¼�(喷怒).mp3", + "path": "dir22/clip06.opus", + "samples": 32320, + "duration": 2.02, + "compressed_bytes": 4100, + "pack": "高æ�¾ç�¯", + "sha": "4de5cd559ca00b3a9284f9c3853d8ce922fb9de6b9677f75e614cb1e0e1b530f" + }, + { + "name": "咕咕嘎嘎(沉é‡�)", + "src": "咕咕嘎嘎(沉é‡�).mp3", + "path": "dir22/clip07.opus", + "samples": 31040, + "duration": 1.94, + "compressed_bytes": 4054, + "pack": "高æ�¾ç�¯", + "sha": "dfb73e0d58c7192c2546281d54b22dadfac2c7a43ec4610349cddc96644325a0" + }, + { + "name": "å’•ï¼�å’•ï¼�嘎嘎ï¼�(å¿�æ— å�¯å¿�)", + "src": "å’•ï¼�å’•ï¼�嘎嘎ï¼�(å¿�æ— å�¯å¿�).mp3", + "path": "dir22/clip08.opus", + "samples": 37440, + "duration": 2.34, + "compressed_bytes": 5079, + "pack": "高æ�¾ç�¯", + "sha": "b727e5c39692415113211eea7667b53039d5bfb3301074a74fa9057a07e797e4" + }, + { + "name": "(怒å�¼ï¼‰é¢�啊 咕咕嘎嘎", + "src": "(怒å�¼ï¼‰é¢�啊 咕咕嘎嘎.mp3", + "path": "dir22/clip31.opus", + "samples": 49600, + "duration": 3.1, + "compressed_bytes": 6517, + "pack": "高æ�¾ç�¯", + "sha": "97c723678a589c5235dcf72a670e3346cc9378d6d5a75ad28028a57a422c3e7f" + } + ], + "kind": "近义/å�Œæ¢—系列(需试å�¬ï¼‰", + "count": 6, + "total": 48900, + "save_min": 26174, + "save_max": 44846, + "id": "G02", + "keep": "dir22/clip07.opus", + "keep_name": "咕咕嘎嘎(沉é‡�)" + }, + { + "pack": "鸡ä¹�", + "root": "连招", + "items": [ + { + "name": "连招", + "src": "连招.mp3", + "path": "dir23/clip34.opus", + "samples": 247680, + "duration": 15.48, + "compressed_bytes": 24272, + "pack": "鸡ä¹�", + "sha": "b88ca52e25e3719e60554fa7c111afb670045bb9d6d0a971adf7a0f4189e96f5" + }, + { + "name": "连招4", + "src": "连招4.mp3", + "path": "dir23/clip35.opus", + "samples": 257440, + "duration": 16.09, + "compressed_bytes": 25240, + "pack": "鸡ä¹�", + "sha": "7205a8a887e5e948b9734e1de45713530f877a909412e433a7f01a436a8660f3" + } + ], + "kind": "ç¼–å�·/标点å�˜ä½“", + "count": 2, + "total": 49512, + "save_min": 24272, + "save_max": 25240, + "id": "G03", + "keep": "dir23/clip34.opus", + "keep_name": "连招" + }, + { + "pack": "å�°åº¦é˜¿ä¸‰", + "root": "阿三清唱两å�¥", + "items": [ + { + "name": "阿三清唱两å�¥1", + "src": "阿三清唱两å�¥1.mp3", + "path": "dir07/clip15.opus", + "samples": 125600, + "duration": 7.85, + "compressed_bytes": 12164, + "pack": "å�°åº¦é˜¿ä¸‰", + "sha": "c1d2f9b8ad2a479a1b00fd5a31c7e81e2270115864f42f832909deaa39c77527" + }, + { + "name": "阿三清唱两å�¥2", + "src": "阿三清唱两å�¥2.mp3", + "path": "dir07/clip16.opus", + "samples": 252320, + "duration": 15.77, + "compressed_bytes": 23528, + "pack": "å�°åº¦é˜¿ä¸‰", + "sha": "14d85457be1d4c8b454d2354999b69d51db7c0b15404190323620b3f68ea29b6" + } + ], + "kind": "ç¼–å�·/标点å�˜ä½“", + "count": 2, + "total": 35692, + "save_min": 12164, + "save_max": 23528, + "id": "G04", + "keep": "dir07/clip15.opus", + "keep_name": "阿三清唱两å�¥1" + }, + { + "pack": "å®�å®�肚肚打雷", + "root": "å®�å®�肚肚å�ˆæ‰“é›·", + "items": [ + { + "name": "å®�å®�肚肚å�ˆæ‰“é›·", + "src": "å®�å®�肚肚å�ˆæ‰“é›·.mp3", + "path": "dir11/clip06.opus", + "samples": 38560, + "duration": 2.41, + "compressed_bytes": 4926, + "pack": "å®�å®�肚肚打雷", + "sha": "93ea4bc427e3f1669688e65fae2d8f1340ab5d18710dbb376364ad07cf7269fb" + }, + { + "name": "å®�å®�肚肚打雷了", + "src": "å®�å®�肚肚打雷了.mp3", + "path": "dir11/clip07.opus", + "samples": 31040, + "duration": 1.94, + "compressed_bytes": 3925, + "pack": "å®�å®�肚肚打雷", + "sha": "42960bf76a7b29ca055d0dee0b8f52843b02ba78af50bddf2d9bcd49c1ce5d97" + }, + { + "name": "å®�å®�肚肚打雷啦", + "src": "å®�å®�肚肚打雷啦.mp3", + "path": "dir11/clip08.opus", + "samples": 31680, + "duration": 1.98, + "compressed_bytes": 4030, + "pack": "å®�å®�肚肚打雷", + "sha": "95d3b17e1e3c159b3353bff18ce25fe56ad664578c7e11d4a73d7c6d742bc10e" + }, + { + "name": "肚肚å®�å®�打雷了", + "src": "肚肚å®�å®�打雷了.mp3", + "path": "dir11/clip22.opus", + "samples": 31040, + "duration": 1.94, + "compressed_bytes": 3968, + "pack": "å®�å®�肚肚打雷", + "sha": "b79b9ff0075a12556d4c147089d88c6c55a4868f406b41955359c31309db67bb" + }, + { + "name": "肚肚å®�å®�打雷啦", + "src": "肚肚å®�å®�打雷啦.mp3", + "path": "dir11/clip23.opus", + "samples": 29920, + "duration": 1.87, + "compressed_bytes": 3820, + "pack": "å®�å®�肚肚打雷", + "sha": "53a3326ca2ebcab444914f7952adb3fc9330df9d10deee206b568b584725767c" + } + ], + "kind": "近义/å�Œæ¢—系列(需试å�¬ï¼‰", + "count": 5, + "total": 20669, + "save_min": 15743, + "save_max": 16849, + "id": "G05", + "keep": "dir11/clip07.opus", + "keep_name": "å®�å®�肚肚打雷了" + }, + { + "pack": "å�‰ä¼Šå�¡å“‡", + "root": "å–µ", + "items": [ + { + "name": "å–µ1", + "src": "å–µ1.mp3", + "path": "dir08/clip24.opus", + "samples": 17280, + "duration": 1.08, + "compressed_bytes": 2132, + "pack": "å�‰ä¼Šå�¡å“‡", + "sha": "994e83ac1ae01b5d14748e8929a25cb96317eac41d7828d58de04fe8883e64aa" + }, + { + "name": "å–µ10", + "src": "å–µ10.mp3", + "path": "dir08/clip25.opus", + "samples": 11520, + "duration": 0.72, + "compressed_bytes": 1135, + "pack": "å�‰ä¼Šå�¡å“‡", + "sha": "f95ab4f814cf841da862158d0667a5b01f1d0407aab71f1c6654f57c4187b209" + }, + { + "name": "å–µ2", + "src": "å–µ2.mp3", + "path": "dir08/clip26.opus", + "samples": 15040, + "duration": 0.94, + "compressed_bytes": 1683, + "pack": "å�‰ä¼Šå�¡å“‡", + "sha": "cf169532cc0528bbe7c01b88a58d622fabcba1fcbad6c88217ff95f92d69cfea" + }, + { + "name": "å–µ3", + "src": "å–µ3.mp3", + "path": "dir08/clip27.opus", + "samples": 16160, + "duration": 1.01, + "compressed_bytes": 1858, + "pack": "å�‰ä¼Šå�¡å“‡", + "sha": "9bf6b5720885b2960e3da57589994e71d279b25235a8192a6594a3905102ed16" + }, + { + "name": "å–µ4", + "src": "å–µ4.mp3", + "path": "dir08/clip28.opus", + "samples": 12160, + "duration": 0.76, + "compressed_bytes": 979, + "pack": "å�‰ä¼Šå�¡å“‡", + "sha": "d5331c5d2285bd73c1104b44d3d3919d5faaa43434fdcbc744195c5fc56b1158" + }, + { + "name": "å–µ5", + "src": "å–µ5.mp3", + "path": "dir08/clip29.opus", + "samples": 18400, + "duration": 1.15, + "compressed_bytes": 2221, + "pack": "å�‰ä¼Šå�¡å“‡", + "sha": "d6ec0c481743e9f0356baafb15f54b1dee45e96c21949a763b969780f1736fbf" + }, + { + "name": "å–µ6", + "src": "å–µ6.mp3", + "path": "dir08/clip30.opus", + "samples": 16160, + "duration": 1.01, + "compressed_bytes": 1863, + "pack": "å�‰ä¼Šå�¡å“‡", + "sha": "6b3359f9adc3f1624330ec20900ac4c1296cc3b81002805bfb3fba479f94318c" + }, + { + "name": "å–µ7", + "src": "å–µ7.mp3", + "path": "dir08/clip31.opus", + "samples": 18400, + "duration": 1.15, + "compressed_bytes": 1660, + "pack": "å�‰ä¼Šå�¡å“‡", + "sha": "55961c13c8c7d27b8c90579dcb17fbb7abf564a9a4421ee474330a3b67c9f116" + }, + { + "name": "å–µ8", + "src": "å–µ8.mp3", + "path": "dir08/clip32.opus", + "samples": 6880, + "duration": 0.43, + "compressed_bytes": 752, + "pack": "å�‰ä¼Šå�¡å“‡", + "sha": "afc38cca6c8ea742aa32e695e9d4dd92e96d0cc755eba94f26937fde0fa4a4db" + }, + { + "name": "å–µ9", + "src": "å–µ9.mp3", + "path": "dir08/clip33.opus", + "samples": 16160, + "duration": 1.01, + "compressed_bytes": 2101, + "pack": "å�‰ä¼Šå�¡å“‡", + "sha": "36c2d800bc34c958e55ce54229a528772772dea5feee05c7cbd7c885962ccc50" + } + ], + "kind": "ç¼–å�·/标点å�˜ä½“", + "count": 10, + "total": 16384, + "save_min": 14163, + "save_max": 15632, + "id": "G06", + "keep": "dir08/clip24.opus", + "keep_name": "å–µ1" + }, + { + "pack": "库里", + "root": "啦啦啦啦", + "items": [ + { + "name": "啦啦啦啦", + "src": "啦啦啦啦.mp3", + "path": "dir14/clip12.opus", + "samples": 38080, + "duration": 2.38, + "compressed_bytes": 4743, + "pack": "库里", + "sha": "bda5ab015420821c8d85e4ac1c62b0b10e0e48b354942c17d15c4218dd3a9fe2" + }, + { + "name": "啦啦啦啦1", + "src": "啦啦啦啦1.mp3", + "path": "dir14/clip13.opus", + "samples": 40960, + "duration": 2.56, + "compressed_bytes": 5348, + "pack": "库里", + "sha": "74dd99a5a4ea00c5a7efd906651b36d00d45aee0d25c6521a62ac7a249948d7e" + }, + { + "name": "啦啦啦啦2", + "src": "啦啦啦啦2.mp3", + "path": "dir14/clip14.opus", + "samples": 39680, + "duration": 2.48, + "compressed_bytes": 4956, + "pack": "库里", + "sha": "87e4bbb5b1696478d387672988e410993a2791ee88cd3db9548e6bf33bf66192" + }, + { + "name": "啦啦啦啦3", + "src": "啦啦啦啦3.mp3", + "path": "dir14/clip15.opus", + "samples": 39200, + "duration": 2.45, + "compressed_bytes": 5129, + "pack": "库里", + "sha": "def562450b43285ddd6e6d142375b0457097c0ba75e5d80d6b5ce0755228a844" + } + ], + "kind": "ç¼–å�·/标点å�˜ä½“", + "count": 4, + "total": 20176, + "save_min": 14828, + "save_max": 15433, + "id": "G07", + "keep": "dir14/clip12.opus", + "keep_name": "啦啦啦啦" + }, + { + "pack": "黄色袋鼠", + "root": "你的胆å­�æ‰�是肥嘟嘟的", + "items": [ + { + "name": "你的胆å­�æ‰�是肥嘟嘟的", + "src": "你的胆å­�æ‰�是肥嘟嘟的.mp3", + "path": "dir00/clip12.opus", + "samples": 31840, + "duration": 1.99, + "compressed_bytes": 4103, + "pack": "黄色袋鼠", + "sha": "5105167ddb7fd744ceeeb5cd9723ee9b95192ce0dce8b803bd38b65dd601aa34" + }, + { + "name": "你的胆å­�真是肥嘟嘟的", + "src": "你的胆å­�真是肥嘟嘟的.mp3", + "path": "dir00/clip13.opus", + "samples": 36800, + "duration": 2.3, + "compressed_bytes": 4732, + "pack": "黄色袋鼠", + "sha": "1d40efad532ae85585d403e7ab2f618feaad96a23fe2694fd28bf6ece3a6ff2b" + }, + { + "name": "我看你胆å­�真是肥嘟嘟的", + "src": "我看你胆å­�真是肥嘟嘟的.mp3", + "path": "dir00/clip22.opus", + "samples": 34560, + "duration": 2.16, + "compressed_bytes": 4519, + "pack": "黄色袋鼠", + "sha": "a9d2874f335181547847945f3b97a1f984252ec05d5cd60f20f356c31d41ff98" + }, + { + "name": "胆å­�真是肥嘟嘟的", + "src": "胆å­�真是肥嘟嘟的.mp3", + "path": "dir00/clip32.opus", + "samples": 29280, + "duration": 1.83, + "compressed_bytes": 3790, + "pack": "黄色袋鼠", + "sha": "5fb1a8a475a2359f454ce4773c214313bec196d63e1e757ef0ae04973eef4ff2" + } + ], + "kind": "近义/å�Œæ¢—系列(需试å�¬ï¼‰", + "count": 4, + "total": 17144, + "save_min": 12412, + "save_max": 13354, + "id": "G08", + "keep": "dir00/clip13.opus", + "keep_name": "你的胆å­�真是肥嘟嘟的" + }, + { + "pack": "meme猫", + "root": "å��舌羊", + "items": [ + { + "name": "å��舌羊_1_1", + "src": "å��舌羊_1_1.mp3", + "path": "dir02/clip05.opus", + "samples": 29440, + "duration": 1.84, + "compressed_bytes": 3764, + "pack": "meme猫", + "sha": "ace8d13490cad32a2901774a8a24feb0824a9a2cabf2433e83317fa4cb6521f5" + }, + { + "name": "å��舌羊_1_2", + "src": "å��舌羊_1_2.mp3", + "path": "dir02/clip06.opus", + "samples": 112960, + "duration": 7.06, + "compressed_bytes": 11017, + "pack": "meme猫", + "sha": "f17f454903b1b25da295491cc4d4e45ffdf57a524ae9a1269982acf376f6ffda" + } + ], + "kind": "ç¼–å�·/标点å�˜ä½“", + "count": 2, + "total": 14781, + "save_min": 3764, + "save_max": 11017, + "id": "G09", + "keep": "dir02/clip05.opus", + "keep_name": "å��舌羊_1_1" + }, + { + "pack": "纸片人æ�·é£Ž", + "root": "哎呀气死我了", + "items": [ + { + "name": "哎呀气死我了", + "src": "哎呀气死我了.mp3", + "path": "dir20/clip20.opus", + "samples": 29440, + "duration": 1.84, + "compressed_bytes": 3978, + "pack": "纸片人æ�·é£Ž", + "sha": "b9c77e9057b29fe1a731494b30e5037fa71296e705558c58de58835047888697" + }, + { + "name": "气死我了", + "src": "气死我了.mp3", + "path": "dir20/clip35.opus", + "samples": 11520, + "duration": 0.72, + "compressed_bytes": 1458, + "pack": "纸片人æ�·é£Ž", + "sha": "8fa098717fa8c23767b1e03fb6779f1774c7acc2332320308d9473ce6496fe99" + }, + { + "name": "诶呀气死我了", + "src": "诶呀气死我了.mp3", + "path": "dir20/clip40.opus", + "samples": 39200, + "duration": 2.45, + "compressed_bytes": 5153, + "pack": "纸片人æ�·é£Ž", + "sha": "afe6a725d7003de5df75da5d33c1f4f0926227c5a7d7855ad8cafd90a1ad1a65" + } + ], + "kind": "近义/å�Œæ¢—系列(需试å�¬ï¼‰", + "count": 3, + "total": 10589, + "save_min": 5436, + "save_max": 9131, + "id": "G10", + "keep": "dir20/clip35.opus", + "keep_name": "气死我了" + }, + { + "pack": "金å�·åžƒ", + "root": "肥料å�‚了金å�·åžƒ", + "items": [ + { + "name": "肥料å�‚了金å�·åžƒ", + "src": "肥料å�‚了金å�·åžƒ.mp3", + "path": "dir21/clip30.opus", + "samples": 35680, + "duration": 2.23, + "compressed_bytes": 4548, + "pack": "金å�·åžƒ", + "sha": "c59d4bc6bdcd6b073713e19217c9937ba519cb261e6b35f02f41fa48631a7951" + }, + { + "name": "肥料å�‚了金å�·åžƒ2", + "src": "肥料å�‚了金å�·åžƒ2.mp3", + "path": "dir21/clip31.opus", + "samples": 29920, + "duration": 1.87, + "compressed_bytes": 3764, + "pack": "金å�·åžƒ", + "sha": "e44b0bd860354493f9ea2fc1f8d5f10eb7828ee62b33a4672a5dfdb4ec3af4d3" + }, + { + "name": "肥料å�‚了金å�·åžƒ3", + "src": "肥料å�‚了金å�·åžƒ3.mp3", + "path": "dir21/clip32.opus", + "samples": 31040, + "duration": 1.94, + "compressed_bytes": 3951, + "pack": "金å�·åžƒ", + "sha": "768bcfced18176b97afb222a72338299d09e96dea81de7a3343362fbe91682d8" + } + ], + "kind": "ç¼–å�·/标点å�˜ä½“", + "count": 3, + "total": 12263, + "save_min": 7715, + "save_max": 8499, + "id": "G11", + "keep": "dir21/clip30.opus", + "keep_name": "肥料å�‚了金å�·åžƒ" + }, + { + "pack": "å°�明剑魔", + "root": "MVP MVP", + "items": [ + { + "name": "MVP MVP", + "src": "MVP MVP.mp3", + "path": "dir13/clip03.opus", + "samples": 78400, + "duration": 4.9, + "compressed_bytes": 7719, + "pack": "å°�明剑魔", + "sha": "4178d50bc2f36dcf3d3ed1cadd15cf4a6679102292f8f7604d5397300dd6a4cc" + }, + { + "name": "MVP", + "src": "MVP.mp3", + "path": "dir13/clip04.opus", + "samples": 21280, + "duration": 1.33, + "compressed_bytes": 2619, + "pack": "å°�明剑魔", + "sha": "97083092dd9fee19e7fb8d6a70454103b54a5f017c8dbf9b1d7e28058cdf5d49" + } + ], + "kind": "近义/å�Œæ¢—系列(需试å�¬ï¼‰", + "count": 2, + "total": 10338, + "save_min": 2619, + "save_max": 7719, + "id": "G12", + "keep": "dir13/clip04.opus", + "keep_name": "MVP" + }, + { + "pack": "å°�明剑魔", + "root": "躺赢", + "items": [ + { + "name": "躺赢", + "src": "躺赢ðŸ�¶.mp3", + "path": "dir13/clip40.opus", + "samples": 21920, + "duration": 1.37, + "compressed_bytes": 2735, + "pack": "å°�明剑魔", + "sha": "21efca2c1ac5fb0f62ef83339ad51753248b684cbb4b8b289e3223a30c1a2d37" + }, + { + "name": "躺赢躺赢", + "src": "躺赢ðŸ�¶èººèµ¢ðŸ�¶.mp3", + "path": "dir13/clip41.opus", + "samples": 77120, + "duration": 4.82, + "compressed_bytes": 7545, + "pack": "å°�明剑魔", + "sha": "657be30e6b970c740cf7a286658b4c65991171907ca94f4303b273a394bf7f49" + } + ], + "kind": "近义/å�Œæ¢—系列(需试å�¬ï¼‰", + "count": 2, + "total": 10280, + "save_min": 2735, + "save_max": 7545, + "id": "G13", + "keep": "dir13/clip40.opus", + "keep_name": "躺赢" + }, + { + "pack": "金å�·åžƒ", + "root": "金å�·åžƒ", + "items": [ + { + "name": "金å�·åžƒ", + "src": "金å�·åžƒ.mp3", + "path": "dir21/clip35.opus", + "samples": 14400, + "duration": 0.9, + "compressed_bytes": 1843, + "pack": "金å�·åžƒ", + "sha": "9f2191794cc3f928b150bd0cedc196accb24bbd2dc7e7da8ee3db0b327d52f9f" + }, + { + "name": "金å�·åžƒ2", + "src": "金å�·åžƒ2.mp3", + "path": "dir21/clip36.opus", + "samples": 16160, + "duration": 1.01, + "compressed_bytes": 2028, + "pack": "金å�·åžƒ", + "sha": "defabf958b3480f5b7624db84cf96539c8f0eba83f0aa77c18cfe18b18e2f061" + }, + { + "name": "金å�·åžƒâ€¦", + "src": "金å�·åžƒâ€¦.mp3", + "path": "dir21/clip37.opus", + "samples": 25280, + "duration": 1.58, + "compressed_bytes": 3175, + "pack": "金å�·åžƒ", + "sha": "6a7b877d560ad41a7eb938a977e5e80c7c8b60a26a3d057993c465ea50070681" + }, + { + "name": "金å�·åžƒâ€¦â€¦", + "src": "金å�·åžƒâ€¦â€¦.mp3", + "path": "dir21/clip38.opus", + "samples": 17280, + "duration": 1.08, + "compressed_bytes": 2120, + "pack": "金å�·åžƒ", + "sha": "e4f39908808fe4a1e69426b3e73fa5ee5d86e1d3dcb467a2aa685d1ead4d36a2" + } + ], + "kind": "ç¼–å�·/标点å�˜ä½“", + "count": 4, + "total": 9166, + "save_min": 5991, + "save_max": 7323, + "id": "G14", + "keep": "dir21/clip35.opus", + "keep_name": "金å�·åžƒ" + }, + { + "pack": "å�°åº¦é˜¿ä¸‰", + "root": "嘟噜噜", + "items": [ + { + "name": "嘟噜噜", + "src": "嘟噜噜.mp3", + "path": "dir07/clip03.opus", + "samples": 51200, + "duration": 3.2, + "compressed_bytes": 6546, + "pack": "å�°åº¦é˜¿ä¸‰", + "sha": "94b6a2cad5d4aaa3abaa215b5e44a99295b5452272139eb81934490d4bf2feca" + }, + { + "name": "嘟噜噜2", + "src": "嘟噜噜2.mp3", + "path": "dir07/clip04.opus", + "samples": 54720, + "duration": 3.42, + "compressed_bytes": 7040, + "pack": "å�°åº¦é˜¿ä¸‰", + "sha": "c4fc80ec6cc6a92da107e67cf38c3d8518d3127822155a0afffaed0cd72b4659" + } + ], + "kind": "ç¼–å�·/标点å�˜ä½“", + "count": 2, + "total": 13586, + "save_min": 6546, + "save_max": 7040, + "id": "G15", + "keep": "dir07/clip03.opus", + "keep_name": "嘟噜噜" + }, + { + "pack": "meme猫", + "root": "魔性笑", + "items": [ + { + "name": "魔性笑1", + "src": "魔性笑1.mp3", + "path": "dir02/clip38.opus", + "samples": 27520, + "duration": 1.72, + "compressed_bytes": 3502, + "pack": "meme猫", + "sha": "6e679fb17ed4cf699c4d564fb4b9f945e6dcce43d97fb3dc916eca1fe5530294" + }, + { + "name": "魔性笑2", + "src": "魔性笑2.mp3", + "path": "dir02/clip39.opus", + "samples": 27200, + "duration": 1.7, + "compressed_bytes": 3418, + "pack": "meme猫", + "sha": "cf93e65c78cc86cb50a67dfc4eb5a8822bae9fdd65b25cbaace255b991e7d5a3" + }, + { + "name": "魔性笑3", + "src": "魔性笑3.mp3", + "path": "dir02/clip40.opus", + "samples": 25120, + "duration": 1.57, + "compressed_bytes": 3090, + "pack": "meme猫", + "sha": "ae6bd69fe174eb3a26c2cc8e75e981c8e7b30c35e49931a3eaa9b2de639c5404" + } + ], + "kind": "ç¼–å�·/标点å�˜ä½“", + "count": 3, + "total": 10010, + "save_min": 6508, + "save_max": 6920, + "id": "G16", + "keep": "dir02/clip38.opus", + "keep_name": "魔性笑1" + }, + { + "pack": "刘海柱", + "root": "我艹nm", + "items": [ + { + "name": "我艹nm", + "src": "我艹nm.mp3", + "path": "dir04/clip10.opus", + "samples": 63360, + "duration": 3.96, + "compressed_bytes": 6142, + "pack": "刘海柱", + "sha": "2adfe09288727cab59b3b6248fa10500126cf2d82ad6f5c939f16f6a96b682d2" + }, + { + "name": "我艹nm1", + "src": "我艹nm1.mp3", + "path": "dir04/clip11.opus", + "samples": 47840, + "duration": 2.99, + "compressed_bytes": 5962, + "pack": "刘海柱", + "sha": "a9f0c31e552d9c34564a410142797cd249080d721499ab55864083b2ce9cba03" + } + ], + "kind": "ç¼–å�·/标点å�˜ä½“", + "count": 2, + "total": 12104, + "save_min": 5962, + "save_max": 6142, + "id": "G17", + "keep": "dir04/clip10.opus", + "keep_name": "我艹nm" + }, + { + "pack": "库里", + "root": "库里库里库里", + "items": [ + { + "name": "库里库里库里", + "src": "库里库里库里.mp3", + "path": "dir14/clip17.opus", + "samples": 38080, + "duration": 2.38, + "compressed_bytes": 4978, + "pack": "库里", + "sha": "516282e3370d2787160a5329c0c6161a7f196c9f9c9ef1028fd27dfa6d538660" + }, + { + "name": "库里库里库里2", + "src": "库里库里库里2.mp3", + "path": "dir14/clip18.opus", + "samples": 39680, + "duration": 2.48, + "compressed_bytes": 5180, + "pack": "库里", + "sha": "7330525ea3009fe764cb64158940582cb563030d241221c7008c535940e65b3e" + } + ], + "kind": "ç¼–å�·/标点å�˜ä½“", + "count": 2, + "total": 10158, + "save_min": 4978, + "save_max": 5180, + "id": "G18", + "keep": "dir14/clip17.opus", + "keep_name": "库里库里库里" + }, + { + "pack": "å�¡ä¸˜ç±³é›ªå„¿", + "root": "啊哈哈哈", + "items": [ + { + "name": "啊哈哈哈", + "src": "啊哈哈哈.mp3", + "path": "dir05/clip09.opus", + "samples": 23040, + "duration": 1.44, + "compressed_bytes": 2849, + "pack": "å�¡ä¸˜ç±³é›ªå„¿", + "sha": "e51bd3a6da4f3fb0be3b139cb0dd4617c59de987be0732c2f4fa1fc27796d38a" + }, + { + "name": "啊哈哈哈2", + "src": "啊哈哈哈2.mp3", + "path": "dir05/clip10.opus", + "samples": 39200, + "duration": 2.45, + "compressed_bytes": 5119, + "pack": "å�¡ä¸˜ç±³é›ªå„¿", + "sha": "491f184835048a40959363b31b11134d91ac9735ffef5acf0c09d9db58480702" + } + ], + "kind": "ç¼–å�·/标点å�˜ä½“", + "count": 2, + "total": 7968, + "save_min": 2849, + "save_max": 5119, + "id": "G19", + "keep": "dir05/clip09.opus", + "keep_name": "啊哈哈哈" + }, + { + "pack": "库里", + "root": "一起å‘�å–Šè‹�天大地", + "items": [ + { + "name": "一起å‘�å–Šè‹�天大地", + "src": "一起å‘�å–Šè‹�天大地.mp3", + "path": "dir14/clip02.opus", + "samples": 38080, + "duration": 2.38, + "compressed_bytes": 4946, + "pack": "库里", + "sha": "0fea46e95a8e650591022a6ed7c70347d0c7d562db1274348cb84de01d72c88e" + }, + { + "name": "一起å‘�å–Šè‹�天大地2", + "src": "一起å‘�å–Šè‹�天大地2.mp3", + "path": "dir14/clip03.opus", + "samples": 37440, + "duration": 2.34, + "compressed_bytes": 4860, + "pack": "库里", + "sha": "98077a486904da11b95d706d3d55dc28e3d243694bdabe45a7ac79d7f5845f99" + } + ], + "kind": "ç¼–å�·/标点å�˜ä½“", + "count": 2, + "total": 9806, + "save_min": 4860, + "save_max": 4946, + "id": "G20", + "keep": "dir14/clip02.opus", + "keep_name": "一起å‘�å–Šè‹�天大地" + }, + { + "pack": "鸡ä¹�", + "root": "哇什么情况", + "items": [ + { + "name": "哇 什么情况", + "src": "哇 什么情况.mp3", + "path": "dir23/clip08.opus", + "samples": 26560, + "duration": 1.66, + "compressed_bytes": 3377, + "pack": "鸡ä¹�", + "sha": "561ba8ca4de5893b20c347ae480bb982c34be12e5ff0ba5d8ad13b63c363aa6e" + }, + { + "name": "哇 什么情况1", + "src": "哇 什么情况1.mp3", + "path": "dir23/clip09.opus", + "samples": 36320, + "duration": 2.27, + "compressed_bytes": 4605, + "pack": "鸡ä¹�", + "sha": "cabc424161b8e641038d49a4e6f525b59be7397e34b5f90c7d133b219c30197d" + } + ], + "kind": "ç¼–å�·/标点å�˜ä½“", + "count": 2, + "total": 7982, + "save_min": 3377, + "save_max": 4605, + "id": "G21", + "keep": "dir23/clip08.opus", + "keep_name": "哇 什么情况" + }, + { + "pack": "鸡ä¹�", + "root": "嗷回手æŽ�", + "items": [ + { + "name": "å—· 回手æŽ�", + "src": "å—· 回手æŽ�.mp3", + "path": "dir23/clip19.opus", + "samples": 27040, + "duration": 1.69, + "compressed_bytes": 3583, + "pack": "鸡ä¹�", + "sha": "af3ef451cfed203e7d2a22ea68e7060130832776b1d859b0b7047c1270dcb0f9" + }, + { + "name": "å—· 回手æŽ�1", + "src": "å—· 回手æŽ�1.mp3", + "path": "dir23/clip20.opus", + "samples": 35680, + "duration": 2.23, + "compressed_bytes": 4560, + "pack": "鸡ä¹�", + "sha": "c9618c021f63922e3017cd7f28e151908065e04cfacc3893ee939477679931e4" + } + ], + "kind": "ç¼–å�·/标点å�˜ä½“", + "count": 2, + "total": 8143, + "save_min": 3583, + "save_max": 4560, + "id": "G22", + "keep": "dir23/clip19.opus", + "keep_name": "å—· 回手æŽ�" + }, + { + "pack": "金å�·åžƒ", + "root": "å¿…é¡»è¦�有金å�·åžƒ", + "items": [ + { + "name": "å¿…é¡»è¦�有金å�·åžƒ", + "src": "å¿…é¡»è¦�有金å�·åžƒ.mp3", + "path": "dir21/clip13.opus", + "samples": 35680, + "duration": 2.23, + "compressed_bytes": 4513, + "pack": "金å�·åžƒ", + "sha": "82a464b807d5833f0d3af602e9a82fdf8f4fbab4527963ba8f02063c6230bf5c" + }, + { + "name": "å¿…é¡»è¦�有金å�·åžƒ2", + "src": "å¿…é¡»è¦�有金å�·åžƒ2.mp3", + "path": "dir21/clip14.opus", + "samples": 29920, + "duration": 1.87, + "compressed_bytes": 3773, + "pack": "金å�·åžƒ", + "sha": "6f993e1446f01c4c8afc3fa6fdba8e70b08a61b8e54811c5d9d3573551a06763" + } + ], + "kind": "ç¼–å�·/标点å�˜ä½“", + "count": 2, + "total": 8286, + "save_min": 3773, + "save_max": 4513, + "id": "G23", + "keep": "dir21/clip13.opus", + "keep_name": "å¿…é¡»è¦�有金å�·åžƒ" + }, + { + "pack": "纸片人æ�·é£Ž", + "root": "哎刀马刀马", + "items": [ + { + "name": "哎刀马刀马", + "src": "哎刀马刀马.mp3", + "path": "dir20/clip16.opus", + "samples": 32800, + "duration": 2.05, + "compressed_bytes": 4230, + "pack": "纸片人æ�·é£Ž", + "sha": "efac9618da0f04e8e5174647548af4f9ba7fdbd41d81b5922c3735874bd163d7" + }, + { + "name": "哎刀马刀马2", + "src": "哎刀马刀马2.mp3", + "path": "dir20/clip17.opus", + "samples": 32320, + "duration": 2.02, + "compressed_bytes": 4190, + "pack": "纸片人æ�·é£Ž", + "sha": "4688f823dc79e12356f8aa10c6752c9690c69c8531827b4ab65956fde51fed2d" + } + ], + "kind": "ç¼–å�·/标点å�˜ä½“", + "count": 2, + "total": 8420, + "save_min": 4190, + "save_max": 4230, + "id": "G24", + "keep": "dir20/clip16.opus", + "keep_name": "哎刀马刀马" + }, + { + "pack": "纸片人æ�·é£Ž", + "root": "棒棒棒棒", + "items": [ + { + "name": "棒棒棒棒", + "src": "棒棒棒棒.mp3", + "path": "dir20/clip32.opus", + "samples": 21280, + "duration": 1.33, + "compressed_bytes": 2784, + "pack": "纸片人æ�·é£Ž", + "sha": "1846254ae719e25f7d7e59b769d4ff4c3142f513ee1a0c0f2cfad7d1109004c4" + }, + { + "name": "棒棒棒棒ï¼�", + "src": "棒棒棒棒ï¼�.mp3", + "path": "dir20/clip33.opus", + "samples": 32800, + "duration": 2.05, + "compressed_bytes": 4106, + "pack": "纸片人æ�·é£Ž", + "sha": "0620b1a386f6ee767e8ad2b26a1a6e2d89b5e6aaf9f67f65fb5258fe5d391f36" + } + ], + "kind": "ç¼–å�·/标点å�˜ä½“", + "count": 2, + "total": 6890, + "save_min": 2784, + "save_max": 4106, + "id": "G25", + "keep": "dir20/clip32.opus", + "keep_name": "棒棒棒棒" + }, + { + "pack": "å®�å®�肚肚打雷", + "root": "é›·é›·å®�å®�打肚肚", + "items": [ + { + "name": "é›·é›·å®�å®�打肚肚", + "src": "é›·é›·å®�å®�打肚肚.mp3", + "path": "dir11/clip29.opus", + "samples": 30560, + "duration": 1.91, + "compressed_bytes": 3886, + "pack": "å®�å®�肚肚打雷", + "sha": "8ecdcdf050c68c1813e064fca45889356aeb7921a199abb786e31a60b6d73812" + }, + { + "name": "é›·é›·å®�å®�打肚肚2", + "src": "é›·é›·å®�å®�打肚肚2.mp3", + "path": "dir11/clip30.opus", + "samples": 31680, + "duration": 1.98, + "compressed_bytes": 3989, + "pack": "å®�å®�肚肚打雷", + "sha": "327364d9a0165bb9156f68b06bb3c7d7bf30f6dca15989903d378d03a4b701c9" + } + ], + "kind": "ç¼–å�·/标点å�˜ä½“", + "count": 2, + "total": 7875, + "save_min": 3886, + "save_max": 3989, + "id": "G26", + "keep": "dir11/clip29.opus", + "keep_name": "é›·é›·å®�å®�打肚肚" + }, + { + "pack": "å®�å®�肚肚打雷", + "root": "打打å®�å®�雷雷啦", + "items": [ + { + "name": "打打å®�å®�雷雷啦", + "src": "打打å®�å®�雷雷啦.mp3", + "path": "dir11/clip14.opus", + "samples": 29920, + "duration": 1.87, + "compressed_bytes": 3813, + "pack": "å®�å®�肚肚打雷", + "sha": "1e8ea674e5ae261195fc4675663de9242a1ad8e9388361a05500b6e2ed5a04e3" + }, + { + "name": "打打å®�å®�雷雷啦2", + "src": "打打å®�å®�雷雷啦2.mp3", + "path": "dir11/clip15.opus", + "samples": 29920, + "duration": 1.87, + "compressed_bytes": 3751, + "pack": "å®�å®�肚肚打雷", + "sha": "f43c6fa5728bee57016ad28279d2c5a156bd3dd2711a100ccf2f47f1cfb77eeb" + } + ], + "kind": "ç¼–å�·/标点å�˜ä½“", + "count": 2, + "total": 7564, + "save_min": 3751, + "save_max": 3813, + "id": "G27", + "keep": "dir11/clip14.opus", + "keep_name": "打打å®�å®�雷雷啦" + }, + { + "pack": "å�°åº¦é˜¿ä¸‰", + "root": "猴打黑", + "items": [ + { + "name": "猴打黑", + "src": "猴打黑.mp3", + "path": "dir07/clip09.opus", + "samples": 30560, + "duration": 1.91, + "compressed_bytes": 3407, + "pack": "å�°åº¦é˜¿ä¸‰", + "sha": "e39e39bb3937f546c276398cf8def96ea42aab8ff67fc0e08d302bd1f0c45568" + }, + { + "name": "猴打黑~", + "src": "猴打黑~.mp3", + "path": "dir07/clip10.opus", + "samples": 29440, + "duration": 1.84, + "compressed_bytes": 3235, + "pack": "å�°åº¦é˜¿ä¸‰", + "sha": "a613443e4153b0cb5a0908381783598e0907a7e3ec5ff7f7061d164afd1c3ad7" + } + ], + "kind": "ç¼–å�·/标点å�˜ä½“", + "count": 2, + "total": 6642, + "save_min": 3235, + "save_max": 3407, + "id": "G28", + "keep": "dir07/clip09.opus", + "keep_name": "猴打黑" + }, + { + "pack": "金å�·åžƒ", + "root": "ä¸�能打架", + "items": [ + { + "name": "ä¸�能打架", + "src": "ä¸�能打架.mp3", + "path": "dir21/clip02.opus", + "samples": 19040, + "duration": 1.19, + "compressed_bytes": 2321, + "pack": "金å�·åžƒ", + "sha": "2a0a566f6d5fea04f659c671974177843461d8c27d343dc3326a36f94f5a36a7" + }, + { + "name": "ä¸�能打架2", + "src": "ä¸�能打架2.mp3", + "path": "dir21/clip03.opus", + "samples": 28160, + "duration": 1.76, + "compressed_bytes": 3345, + "pack": "金å�·åžƒ", + "sha": "20b6040221ccd7db2d96b4f33b18c8243bd7bd897e10b4a3e9ed3d67f15fd817" + } + ], + "kind": "ç¼–å�·/标点å�˜ä½“", + "count": 2, + "total": 5666, + "save_min": 2321, + "save_max": 3345, + "id": "G29", + "keep": "dir21/clip02.opus", + "keep_name": "ä¸�能打架" + }, + { + "pack": "纸片人æ�·é£Ž", + "root": "嘿嘿嘿", + "items": [ + { + "name": "嘿嘿嘿", + "src": "嘿嘿嘿.mp3", + "path": "dir20/clip26.opus", + "samples": 18400, + "duration": 1.15, + "compressed_bytes": 2315, + "pack": "纸片人æ�·é£Ž", + "sha": "4cd4457ae6ae1fbc8c8ea4a4308614a13e9f3420c4345b053f2011c7024a5d6a" + }, + { + "name": "嘿嘿嘿_1", + "src": "嘿嘿嘿_1.mp3", + "path": "dir20/clip27.opus", + "samples": 24800, + "duration": 1.55, + "compressed_bytes": 3297, + "pack": "纸片人æ�·é£Ž", + "sha": "7652d128ce8c41c0f48d9cefcd457da67c2faf8fc9ae8650b6b51e51f0c3d031" + } + ], + "kind": "ç¼–å�·/标点å�˜ä½“", + "count": 2, + "total": 5612, + "save_min": 2315, + "save_max": 3297, + "id": "G30", + "keep": "dir20/clip26.opus", + "keep_name": "嘿嘿嘿" + }, + { + "pack": "纸片人æ�·é£Ž", + "root": "颗秒", + "items": [ + { + "name": "颗秒", + "src": "颗秒.mp3", + "path": "dir20/clip47.opus", + "samples": 24160, + "duration": 1.51, + "compressed_bytes": 3194, + "pack": "纸片人æ�·é£Ž", + "sha": "803491a3f7072c7b7db44500aaf2f456e578157983808473af0cb26288388128" + }, + { + "name": "颗秒2", + "src": "颗秒2.mp3", + "path": "dir20/clip48.opus", + "samples": 20160, + "duration": 1.26, + "compressed_bytes": 2685, + "pack": "纸片人æ�·é£Ž", + "sha": "4a0b2e0617d3229cd91241c6dda404ee2882c263cf28a30bbe1162f3c02a7730" + } + ], + "kind": "ç¼–å�·/标点å�˜ä½“", + "count": 2, + "total": 5879, + "save_min": 2685, + "save_max": 3194, + "id": "G31", + "keep": "dir20/clip47.opus", + "keep_name": "颗秒" + }, + { + "pack": "金å�·åžƒ", + "root": "我è¦�金å�·åžƒ", + "items": [ + { + "name": "我è¦�金å�·åžƒ", + "src": "我è¦�金å�·åžƒ.mp3", + "path": "dir21/clip18.opus", + "samples": 21920, + "duration": 1.37, + "compressed_bytes": 2720, + "pack": "金å�·åžƒ", + "sha": "dcc895b0c257cbaa6195793c59b583c0ca45a37bfdb422d8f04ae4c1e9a82024" + }, + { + "name": "我è¦�金å�·åžƒ2", + "src": "我è¦�金å�·åžƒ2.mp3", + "path": "dir21/clip19.opus", + "samples": 24160, + "duration": 1.51, + "compressed_bytes": 3058, + "pack": "金å�·åžƒ", + "sha": "5cbfae44bf2e2a4496008b9caf04262669f9c0b2185d18b310bcd8a9c525bf59" + } + ], + "kind": "ç¼–å�·/标点å�˜ä½“", + "count": 2, + "total": 5778, + "save_min": 2720, + "save_max": 3058, + "id": "G32", + "keep": "dir21/clip18.opus", + "keep_name": "我è¦�金å�·åžƒ" + }, + { + "pack": "å�‰ä¼Šå�¡å“‡", + "root": "嘿咻", + "items": [ + { + "name": "嘿咻1", + "src": "嘿咻1.mp3", + "path": "dir08/clip37.opus", + "samples": 19520, + "duration": 1.22, + "compressed_bytes": 2084, + "pack": "å�‰ä¼Šå�¡å“‡", + "sha": "7b2ad54bce0eb685554a3a71620fa9943313cdeb8f7ebf3ca9c576c17a4cffc9" + }, + { + "name": "嘿咻2", + "src": "嘿咻2.mp3", + "path": "dir08/clip38.opus", + "samples": 27040, + "duration": 1.69, + "compressed_bytes": 2884, + "pack": "å�‰ä¼Šå�¡å“‡", + "sha": "09ee94a34b8813c5371b75ea0b2f0b7578347b67e3f4b320fc9690270b6845fd" + } + ], + "kind": "ç¼–å�·/标点å�˜ä½“", + "count": 2, + "total": 4968, + "save_min": 2084, + "save_max": 2884, + "id": "G33", + "keep": "dir08/clip37.opus", + "keep_name": "嘿咻1" + }, + { + "pack": "我è¦�验牌法国赌神", + "root": "我è¦�烟牌", + "items": [ + { + "name": "我è¦�烟牌", + "src": "我è¦�烟牌.mp3", + "path": "dir15/clip06.opus", + "samples": 21920, + "duration": 1.37, + "compressed_bytes": 2732, + "pack": "我è¦�验牌法国赌神", + "sha": "44e095c3de154ddeaf5b3d653e19a55cc1e991c4e2b49b081fff5b3da133fe92" + }, + { + "name": "我è¦�验牌", + "src": "我è¦�验牌.mp3", + "path": "dir15/clip07.opus", + "samples": 19040, + "duration": 1.19, + "compressed_bytes": 2327, + "pack": "我è¦�验牌法国赌神", + "sha": "32e88f67cdc00400257756db5e03550bb8e4e5ce90cff68e9c0427a8021a33a9" + } + ], + "kind": "近义/å�Œæ¢—系列(需试å�¬ï¼‰", + "count": 2, + "total": 5059, + "save_min": 2327, + "save_max": 2732, + "id": "G34", + "keep": "dir15/clip07.opus", + "keep_name": "我è¦�验牌" + }, + { + "pack": "纸片人æ�·é£Ž", + "root": "哈哈哈", + "items": [ + { + "name": "哈哈哈2", + "src": "哈哈哈2.mp3", + "path": "dir20/clip13.opus", + "samples": 18400, + "duration": 1.15, + "compressed_bytes": 2353, + "pack": "纸片人æ�·é£Ž", + "sha": "ecadfb05e433b6ceba189a784a450a9a05ec03299f409858626e86a3b633b974" + }, + { + "name": "哈哈哈_1", + "src": "哈哈哈_1.mp3", + "path": "dir20/clip14.opus", + "samples": 20800, + "duration": 1.3, + "compressed_bytes": 2719, + "pack": "纸片人æ�·é£Ž", + "sha": "4582d6add58014600aa5e7b279cd56df4916f7dc9f686edb62c4a051072481c0" + } + ], + "kind": "ç¼–å�·/标点å�˜ä½“", + "count": 2, + "total": 5072, + "save_min": 2353, + "save_max": 2719, + "id": "G35", + "keep": "dir20/clip14.opus", + "keep_name": "哈哈哈_1" + }, + { + "pack": "鸡ä¹�", + "root": "哈哈", + "items": [ + { + "name": "哈哈", + "src": "哈哈.mp3", + "path": "dir23/clip12.opus", + "samples": 19040, + "duration": 1.19, + "compressed_bytes": 2017, + "pack": "鸡ä¹�", + "sha": "999b7c502f7b3c23ea239b8205ecf7b4aca7749bd0cfe3c49ed8b1964a6acf08" + }, + { + "name": "哈哈_1", + "src": "哈哈_1.mp3", + "path": "dir23/clip13.opus", + "samples": 21280, + "duration": 1.33, + "compressed_bytes": 2599, + "pack": "鸡ä¹�", + "sha": "1d634e2e1fd020e2c13b2fc201745984536ee8bacc89c971ef9b1077d2a1a1a0" + } + ], + "kind": "ç¼–å�·/标点å�˜ä½“", + "count": 2, + "total": 4616, + "save_min": 2017, + "save_max": 2599, + "id": "G36", + "keep": "dir23/clip12.opus", + "keep_name": "哈哈" + }, + { + "pack": "黄色袋鼠", + "root": "你个è€�牧师的", + "items": [ + { + "name": "你个è€�牧师的", + "src": "你个è€�牧师的.mp3", + "path": "dir00/clip06.opus", + "samples": 16320, + "duration": 1.02, + "compressed_bytes": 2111, + "pack": "黄色袋鼠", + "sha": "2274c6741be0692373e5e80746fbbf654ae9318b6676fcd3463bdf232ed9af8d" + }, + { + "name": "你个è€�牧师的ï¼�", + "src": "你个è€�牧师的ï¼�.mp3", + "path": "dir00/clip07.opus", + "samples": 20320, + "duration": 1.27, + "compressed_bytes": 2587, + "pack": "黄色袋鼠", + "sha": "9093728e69d6dbcd3006a0eebd114ca824bbe0cc417f5c752a5b4c77bc90d90f" + } + ], + "kind": "ç¼–å�·/标点å�˜ä½“", + "count": 2, + "total": 4698, + "save_min": 2111, + "save_max": 2587, + "id": "G37", + "keep": "dir00/clip06.opus", + "keep_name": "你个è€�牧师的" + }, + { + "pack": "金å�·åžƒ", + "root": "狡猾", + "items": [ + { + "name": "狡猾", + "src": "狡猾.mp3", + "path": "dir21/clip25.opus", + "samples": 20800, + "duration": 1.3, + "compressed_bytes": 2541, + "pack": "金å�·åžƒ", + "sha": "0dddf30c4ab9fc1097e432866f7febff1b7653e80c510d5840a83c3b49a116ce" + }, + { + "name": "狡猾2", + "src": "狡猾2.mp3", + "path": "dir21/clip26.opus", + "samples": 17920, + "duration": 1.12, + "compressed_bytes": 2199, + "pack": "金å�·åžƒ", + "sha": "8aed82e758893ba2b3ea7006a520992f6842e4a6e7261d5eb607674c548e5e89" + } + ], + "kind": "ç¼–å�·/标点å�˜ä½“", + "count": 2, + "total": 4740, + "save_min": 2199, + "save_max": 2541, + "id": "G38", + "keep": "dir21/clip25.opus", + "keep_name": "狡猾" + }, + { + "pack": "å�¢éŸ³", + "root": "嘿嘿", + "items": [ + { + "name": "嘿嘿", + "src": "嘿嘿.mp3", + "path": "dir06/clip10.opus", + "samples": 19040, + "duration": 1.19, + "compressed_bytes": 2459, + "pack": "å�¢éŸ³", + "sha": "eaeaa4ce292303fcf0af16eccc5cf6c3e720927859a5309b26e1c19d36bdafa2" + }, + { + "name": "嘿嘿2", + "src": "嘿嘿2.mp3", + "path": "dir06/clip11.opus", + "samples": 15040, + "duration": 0.94, + "compressed_bytes": 1802, + "pack": "å�¢éŸ³", + "sha": "c4dc4c594ce6a558752ba92e45644d78aaea03d9dfeaa287af65784c5dee4bb9" + } + ], + "kind": "ç¼–å�·/标点å�˜ä½“", + "count": 2, + "total": 4261, + "save_min": 1802, + "save_max": 2459, + "id": "G39", + "keep": "dir06/clip10.opus", + "keep_name": "嘿嘿" + }, + { + "pack": "MC", + "root": "打击", + "items": [ + { + "name": "(打击1)", + "src": "(打击1).mp3", + "path": "dir01/clip00.opus", + "samples": 8640, + "duration": 0.54, + "compressed_bytes": 742, + "pack": "MC", + "sha": "512c9de193c2a3477aaeefd54fe1ac263679b62ad48582d3deb3a5e9513c0a09" + }, + { + "name": "(打击2)", + "src": "(打击2).mp3", + "path": "dir01/clip01.opus", + "samples": 8640, + "duration": 0.54, + "compressed_bytes": 832, + "pack": "MC", + "sha": "89f7186f4079d74d5127f5598e84610ecac374478781a8d3e518491f8f84d962" + }, + { + "name": "(打击3)", + "src": "(打击3).mp3", + "path": "dir01/clip02.opus", + "samples": 8640, + "duration": 0.54, + "compressed_bytes": 724, + "pack": "MC", + "sha": "d2b4b076f523c587db1bae40b8939a006455183bf525896ca317bd120afa5a74" + }, + { + "name": "(打击4)", + "src": "(打击4).mp3", + "path": "dir01/clip13.opus", + "samples": 8640, + "duration": 0.54, + "compressed_bytes": 771, + "pack": "MC", + "sha": "56ae7bcd68ba962b3aa42a8fdff504b41b8d20f1cb6ef01a014a0d79c34409cd" + } + ], + "kind": "ç¼–å�·/标点å�˜ä½“", + "count": 4, + "total": 3069, + "save_min": 2237, + "save_max": 2345, + "id": "G40", + "keep": "dir01/clip00.opus", + "keep_name": "(打击1)" + }, + { + "pack": "刘å�Žå¼º", + "root": "这瓜ä¿�熟å�—", + "items": [ + { + "name": "这瓜ä¿�熟å�—", + "src": "这瓜ä¿�熟å�—.mp3", + "path": "dir03/clip12.opus", + "samples": 16640, + "duration": 1.04, + "compressed_bytes": 1020, + "pack": "刘å�Žå¼º", + "sha": "e40b9cf196a9285347d2a047bc65562b180c09d115ddd2e7b4bf45c6d8ba7d06" + }, + { + "name": "我问你这瓜ä¿�熟å�—?", + "src": "我问你这瓜ä¿�熟å�—?.mp3", + "path": "dir03/clip14.opus", + "samples": 32800, + "duration": 2.05, + "compressed_bytes": 2105, + "pack": "刘å�Žå¼º", + "sha": "fd4baa815ed30fe4789bc79fadb34949cef3b0a5f3bbd2d0366d0ffd1a5d1e45" + } + ], + "kind": "近义/å�Œæ¢—系列(需试å�¬ï¼‰", + "count": 2, + "total": 3125, + "save_min": 1020, + "save_max": 2105, + "id": "G41", + "keep": "dir03/clip12.opus", + "keep_name": "这瓜ä¿�熟å�—" + }, + { + "pack": "刘å�Žå¼º", + "root": "ä½ æ•…æ„�找茬是ä¸�是?", + "items": [ + { + "name": "ä½ æ•…æ„�找茬是ä¸�是?", + "src": "ä½ æ•…æ„�找茬是ä¸�是?.mp3", + "path": "dir03/clip16.opus", + "samples": 28160, + "duration": 1.76, + "compressed_bytes": 1825, + "pack": "刘å�Žå¼º", + "sha": "5f3adfa0e6659f194c3081e9bd72bd32710a6615e8d34c8433fe48bcaa77a472" + }, + { + "name": "ä½ TMæ•…æ„�找茬是ä¸�是?", + "src": "ä½ TMæ•…æ„�找茬是ä¸�是?.mp3", + "path": "dir03/clip22.opus", + "samples": 28160, + "duration": 1.76, + "compressed_bytes": 1784, + "pack": "刘å�Žå¼º", + "sha": "3ac27d58cdc23e0815aeae104f5be90770890838f7ab737376a0ab94febef93e" + } + ], + "kind": "近义/å�Œæ¢—系列(需试å�¬ï¼‰", + "count": 2, + "total": 3609, + "save_min": 1784, + "save_max": 1825, + "id": "G42", + "keep": "dir03/clip16.opus", + "keep_name": "ä½ æ•…æ„�找茬是ä¸�是?" + }, + { + "pack": "纸片人æ�·é£Ž", + "root": "啊", + "items": [ + { + "name": "啊?ï¼�", + "src": "啊?ï¼�.mp3", + "path": "dir20/clip24.opus", + "samples": 9760, + "duration": 0.61, + "compressed_bytes": 1297, + "pack": "纸片人æ�·é£Ž", + "sha": "15a95391efacc1ce1a2fc5f5e89e04d2d5a14b50f79332ba3668ca4300d167e0" + }, + { + "name": "啊?ï¼�ï¼�", + "src": "啊?ï¼�ï¼�.mp3", + "path": "dir20/clip25.opus", + "samples": 12640, + "duration": 0.79, + "compressed_bytes": 1658, + "pack": "纸片人æ�·é£Ž", + "sha": "821e99a99604069ae2b621c4394ad1d6b3acc207eab157c66b009154f5ef8610" + } + ], + "kind": "ç¼–å�·/标点å�˜ä½“", + "count": 2, + "total": 2955, + "save_min": 1297, + "save_max": 1658, + "id": "G43", + "keep": "dir20/clip24.opus", + "keep_name": "啊?ï¼�" + }, + { + "pack": "å�‰ä¼Šå�¡å“‡", + "root": "哦哈呦(短)", + "items": [ + { + "name": "哦哈呦(短)", + "src": "哦哈呦(短).mp3", + "path": "dir08/clip17.opus", + "samples": 10400, + "duration": 0.65, + "compressed_bytes": 1231, + "pack": "å�‰ä¼Šå�¡å“‡", + "sha": "e6d289cac9e2517f4930e16afd3c311517219ca36acf3d13444bb4be522bcfe0" + }, + { + "name": "哦哈呦(é•¿)", + "src": "哦哈呦(é•¿).mp3", + "path": "dir08/clip18.opus", + "samples": 15040, + "duration": 0.94, + "compressed_bytes": 1658, + "pack": "å�‰ä¼Šå�¡å“‡", + "sha": "dc666dc95eb1a6fde4383ff853a4edf4f7d1f5539a625949bb10f908bc55352c" + } + ], + "kind": "近义/å�Œæ¢—系列(需试å�¬ï¼‰", + "count": 2, + "total": 2889, + "save_min": 1231, + "save_max": 1658, + "id": "G44", + "keep": "dir08/clip17.opus", + "keep_name": "哦哈呦(短)" + }, + { + "pack": "我è¦�验牌法国赌神", + "root": "开牌", + "items": [ + { + "name": "开牌", + "src": "开牌.mp3", + "path": "dir15/clip04.opus", + "samples": 9760, + "duration": 0.61, + "compressed_bytes": 1171, + "pack": "我è¦�验牌法国赌神", + "sha": "b73e5531451c25161148976770306fdc8ca75408c61496535e8ce03c5556cd77" + }, + { + "name": "开牌啊", + "src": "开牌啊.mp3", + "path": "dir15/clip05.opus", + "samples": 13280, + "duration": 0.83, + "compressed_bytes": 1588, + "pack": "我è¦�验牌法国赌神", + "sha": "29d1387be9f093a63221a80450b5abc11d3575c6caf67dc95cd9fb7aaff5d912" + } + ], + "kind": "近义/å�Œæ¢—系列(需试å�¬ï¼‰", + "count": 2, + "total": 2759, + "save_min": 1171, + "save_max": 1588, + "id": "G45", + "keep": "dir15/clip04.opus", + "keep_name": "开牌" + }, + { + "pack": "刘å�Žå¼º", + "root": "ä½ è¦�ä¸�è¦�å�§", + "items": [ + { + "name": "ä½ è¦�ä¸�è¦�å�§ï¼Ÿ", + "src": "ä½ è¦�ä¸�è¦�å�§ï¼Ÿ.mp3", + "path": "dir03/clip17.opus", + "samples": 20160, + "duration": 1.26, + "compressed_bytes": 1260, + "pack": "刘å�Žå¼º", + "sha": "fc3c79a2d505c5fb5d32ab871b59084e202b1776640db567bdbd39aefeae7361" + }, + { + "name": "ä½ è¦�ä¸�è¦�å�§ï¼�", + "src": "ä½ è¦�ä¸�è¦�å�§ï¼�.mp3", + "path": "dir03/clip23.opus", + "samples": 16160, + "duration": 1.01, + "compressed_bytes": 1040, + "pack": "刘å�Žå¼º", + "sha": "6d51624667f04ae2819fa4d903b6e48137f5bf3443a2ddf972047f6c6400c05c" + } + ], + "kind": "ç¼–å�·/标点å�˜ä½“", + "count": 2, + "total": 2300, + "save_min": 1040, + "save_max": 1260, + "id": "G46", + "keep": "dir03/clip17.opus", + "keep_name": "ä½ è¦�ä¸�è¦�å�§ï¼Ÿ" + } + ] +} diff --git a/assets/audio/voice-keychain/voice_index.json b/assets/audio/voice-keychain/voice_index.json new file mode 100644 index 0000000..a8c78e0 --- /dev/null +++ b/assets/audio/voice-keychain/voice_index.json @@ -0,0 +1,5730 @@ +[ + { + "dir": "黄色袋鼠", + "dir_id": 0, + "dir_ascii": "dir00", + "files": [ + { + "name": "biubiu击毙你", + "src": "biubiu击毙你.mp3", + "path": "dir00/clip00.opus", + "samples": 26400, + "duration": 1.65, + "compressed_bytes": 3365 + }, + { + "name": "七夕节到了还ä¸�给我é€�礼物", + "src": "七夕节到了还ä¸�给我é€�礼物.mp3", + "path": "dir00/clip01.opus", + "samples": 37600, + "duration": 2.35, + "compressed_bytes": 4943 + }, + { + "name": "下次å†�这么敷è¡�就给你抽æˆ�陀螺", + "src": "下次å†�这么敷è¡�就给你抽æˆ�陀螺.mp3", + "path": "dir00/clip02.opus", + "samples": 46400, + "duration": 2.9, + "compressed_bytes": 5994 + }, + { + "name": "为什么ä¸�和我过七夕", + "src": "为什么ä¸�和我过七夕.mp3", + "path": "dir00/clip03.opus", + "samples": 29120, + "duration": 1.82, + "compressed_bytes": 3850 + }, + { + "name": "也ä¸�打å�¬æ‰“å�¬æˆ‘是è°�", + "src": "也ä¸�打å�¬æ‰“å�¬æˆ‘是è°�.mp3", + "path": "dir00/clip04.opus", + "samples": 34240, + "duration": 2.14, + "compressed_bytes": 4330 + }, + { + "name": "ä½ ä¸�会主动给我å�‘ä¿¡æ�¯", + "src": "ä½ ä¸�会主动给我å�‘ä¿¡æ�¯.wav", + "path": "dir00/clip05.opus", + "samples": 27040, + "duration": 1.69, + "compressed_bytes": 3581 + }, + { + "name": "你个è€�牧师的", + "src": "你个è€�牧师的.mp3", + "path": "dir00/clip06.opus", + "samples": 16320, + "duration": 1.02, + "compressed_bytes": 2111 + }, + { + "name": "你也ä¸�看看你分享的是什么猎奇视频", + "src": "你也ä¸�看看你分享的是什么猎奇视频.mp3", + "path": "dir00/clip08.opus", + "samples": 46880, + "duration": 2.93, + "compressed_bytes": 5959 + }, + { + "name": "你们è¦�是敢过七夕节", + "src": "你们è¦�是敢过七夕节.mp3", + "path": "dir00/clip09.opus", + "samples": 28800, + "duration": 1.8, + "compressed_bytes": 3723 + }, + { + "name": "你们这些è€�牧师的", + "src": "你们这些è€�牧师的.mp3", + "path": "dir00/clip10.opus", + "samples": 20000, + "duration": 1.25, + "compressed_bytes": 2593 + }, + { + "name": "你居然敢在我评论区å�‘那个", + "src": "你居然敢在我评论区å�‘那个.mp3", + "path": "dir00/clip11.opus", + "samples": 40160, + "duration": 2.51, + "compressed_bytes": 5169 + }, + { + "name": "你的胆å­�真是肥嘟嘟的", + "src": "你的胆å­�真是肥嘟嘟的.mp3", + "path": "dir00/clip13.opus", + "samples": 36800, + "duration": 2.3, + "compressed_bytes": 4732 + }, + { + "name": "å†�å�‘è¿™ç§�消æ�¯æˆ‘找人弄你", + "src": "å†�å�‘è¿™ç§�消æ�¯æˆ‘找人弄你.mp3", + "path": "dir00/clip14.opus", + "samples": 38880, + "duration": 2.43, + "compressed_bytes": 4937 + }, + { + "name": "就因为我和你没关系å�—", + "src": "就因为我和你没关系å�—.mp3", + "path": "dir00/clip15.opus", + "samples": 32640, + "duration": 2.04, + "compressed_bytes": 4132 + }, + { + "name": "å±…ç„¶ä¸�带我打三角洲", + "src": "å±…ç„¶ä¸�带我打三角洲.mp3", + "path": "dir00/clip16.opus", + "samples": 32320, + "duration": 2.02, + "compressed_bytes": 4161 + }, + { + "name": "居然看完我的抖音已读ä¸�回", + "src": "居然看完我的抖音已读ä¸�回.mp3", + "path": "dir00/clip17.opus", + "samples": 49920, + "duration": 3.12, + "compressed_bytes": 6549 + }, + { + "name": "我ä¸�光胆å­�肥嘟嘟的", + "src": "我ä¸�光胆å­�肥嘟嘟的.mp3", + "path": "dir00/clip18.opus", + "samples": 27200, + "duration": 1.7, + "compressed_bytes": 3517 + }, + { + "name": "我就给你们玛莎拉", + "src": "我就给你们玛莎拉.mp3", + "path": "dir00/clip19.opus", + "samples": 25120, + "duration": 1.57, + "compressed_bytes": 3250 + }, + { + "name": "我感觉我的眼ç�›è¢«å¼ºå°†äº†", + "src": "我感觉我的眼ç�›è¢«å¼ºå°†äº†.mp3", + "path": "dir00/clip20.opus", + "samples": 35040, + "duration": 2.19, + "compressed_bytes": 4512 + }, + { + "name": "我的肚å­�也肥嘟嘟的", + "src": "我的肚å­�也肥嘟嘟的.mp3", + "path": "dir00/clip21.opus", + "samples": 28000, + "duration": 1.75, + "compressed_bytes": 3654 + }, + { + "name": "我真得控制你了", + "src": "我真得控制你了.mp3", + "path": "dir00/clip23.opus", + "samples": 24960, + "duration": 1.56, + "compressed_bytes": 3195 + }, + { + "name": "我è¦�æ‹¿98k崩了你", + "src": "我è¦�æ‹¿98k崩了你.mp3", + "path": "dir00/clip24.opus", + "samples": 26400, + "duration": 1.65, + "compressed_bytes": 3398 + }, + { + "name": "æ•¢ä¸�回消æ�¯", + "src": "æ•¢ä¸�回消æ�¯.mp3", + "path": "dir00/clip25.opus", + "samples": 18880, + "duration": 1.18, + "compressed_bytes": 2406 + }, + { + "name": "既然敢肥嘟嘟的", + "src": "既然敢肥嘟嘟的.mp3", + "path": "dir00/clip26.opus", + "samples": 26400, + "duration": 1.65, + "compressed_bytes": 3218 + }, + { + "name": "明天就七夕节了", + "src": "明天就七夕节了.mp3", + "path": "dir00/clip27.opus", + "samples": 23840, + "duration": 1.49, + "compressed_bytes": 3122 + }, + { + "name": "有这么多美团è€�鼠的表情包", + "src": "有这么多美团è€�鼠的表情包.mp3", + "path": "dir00/clip28.opus", + "samples": 40480, + "duration": 2.53, + "compressed_bytes": 5232 + }, + { + "name": "游æˆ�打这么è�œè¿˜æ•¢çœ‹æˆ‘主页", + "src": "游æˆ�打这么è�œè¿˜æ•¢çœ‹æˆ‘主页.mp3", + "path": "dir00/clip29.opus", + "samples": 40000, + "duration": 2.5, + "compressed_bytes": 5135 + }, + { + "name": "给你分享的视频看都ä¸�看就回å¤�", + "src": "给你分享的视频看都ä¸�看就回å¤�.mp3", + "path": "dir00/clip30.opus", + "samples": 44800, + "duration": 2.8, + "compressed_bytes": 5826 + }, + { + "name": "è€�是è�Šå¤©è�Šç�€è�Šç�€æ¶ˆå¤±", + "src": "è€�是è�Šå¤©è�Šç�€è�Šç�€æ¶ˆå¤±.mp3", + "path": "dir00/clip31.opus", + "samples": 46880, + "duration": 2.93, + "compressed_bytes": 6016 + }, + { + "name": "脸也肥嘟嘟的", + "src": "脸也肥嘟嘟的.mp3", + "path": "dir00/clip33.opus", + "samples": 19680, + "duration": 1.23, + "compressed_bytes": 2507 + }, + { + "name": "还ä¸�èµ¶ç´§v我520", + "src": "还ä¸�èµ¶ç´§v我520.mp3", + "path": "dir00/clip34.opus", + "samples": 30400, + "duration": 1.9, + "compressed_bytes": 3930 + }, + { + "name": "还有ä¸�è¦�在我评论区底下å�‘黄色è€�鼠的表情包", + "src": "还有ä¸�è¦�在我评论区底下å�‘黄色è€�鼠的表情包.mp3", + "path": "dir00/clip35.opus", + "samples": 66400, + "duration": 4.15, + "compressed_bytes": 8539 + }, + { + "name": "这个人也是牛逼", + "src": "这个人也是牛逼.mp3", + "path": "dir00/clip36.opus", + "samples": 19200, + "duration": 1.2, + "compressed_bytes": 2501 + }, + { + "name": "雷霆è€�鼠表情包", + "src": "雷霆è€�鼠表情包.mp3", + "path": "dir00/clip37.opus", + "samples": 29280, + "duration": 1.83, + "compressed_bytes": 3719 + } + ] + }, + { + "dir": "MC", + "dir_id": 1, + "dir_ascii": "dir01", + "files": [ + { + "name": "(打击1)", + "src": "(打击1).mp3", + "path": "dir01/clip00.opus", + "samples": 8640, + "duration": 0.54, + "compressed_bytes": 742 + }, + { + "name": "(淘汰)", + "src": "(淘汰).mp3", + "path": "dir01/clip03.opus", + "samples": 8640, + "duration": 0.54, + "compressed_bytes": 971 + }, + { + "name": "呵(短暂)", + "src": "呵(短暂).mp3", + "path": "dir01/clip04.opus", + "samples": 8640, + "duration": 0.54, + "compressed_bytes": 886 + }, + { + "name": "哎(生气)", + "src": "哎(生气).mp3", + "path": "dir01/clip05.opus", + "samples": 11520, + "duration": 0.72, + "compressed_bytes": 1269 + }, + { + "name": "哼(å�ƒæƒŠ)", + "src": "哼(å�ƒæƒŠ).mp3", + "path": "dir01/clip06.opus", + "samples": 12640, + "duration": 0.79, + "compressed_bytes": 1485 + }, + { + "name": "å—¯(撒娇)", + "src": "å—¯(撒娇).mp3", + "path": "dir01/clip07.opus", + "samples": 9760, + "duration": 0.61, + "compressed_bytes": 1099 + }, + { + "name": "嗯哼", + "src": "嗯哼.mp3", + "path": "dir01/clip08.opus", + "samples": 16160, + "duration": 1.01, + "compressed_bytes": 1940 + }, + { + "name": "è±�(无语)", + "src": "è±�(无语).mp3", + "path": "dir01/clip09.opus", + "samples": 11520, + "duration": 0.72, + "compressed_bytes": 1381 + }, + { + "name": "è´º(开心)", + "src": "è´º(开心).mp3", + "path": "dir01/clip10.opus", + "samples": 14400, + "duration": 0.9, + "compressed_bytes": 1544 + }, + { + "name": "è´º(无奈)", + "src": "è´º(无奈).mp3", + "path": "dir01/clip11.opus", + "samples": 16640, + "duration": 1.04, + "compressed_bytes": 1974 + }, + { + "name": "é¢�(呆呆)", + "src": "é¢�(呆呆).mp3", + "path": "dir01/clip12.opus", + "samples": 11520, + "duration": 0.72, + "compressed_bytes": 1110 + } + ] + }, + { + "dir": "meme猫", + "dir_id": 2, + "dir_ascii": "dir02", + "files": [ + { + "name": "CHIP猫", + "src": "CHIP猫.mp3", + "path": "dir02/clip00.opus", + "samples": 97920, + "duration": 6.12, + "compressed_bytes": 9545 + }, + { + "name": "HAPPY猫", + "src": "HAPPY猫.mp3", + "path": "dir02/clip01.opus", + "samples": 105920, + "duration": 6.62, + "compressed_bytes": 10587 + }, + { + "name": "huh猫", + "src": "huh猫.mp3", + "path": "dir02/clip02.opus", + "samples": 8640, + "duration": 0.54, + "compressed_bytes": 952 + }, + { + "name": "oi猫", + "src": "oi猫.mp3", + "path": "dir02/clip03.opus", + "samples": 7520, + "duration": 0.47, + "compressed_bytes": 901 + }, + { + "name": "八格牙路", + "src": "八格牙路.mp3", + "path": "dir02/clip04.opus", + "samples": 22560, + "duration": 1.41, + "compressed_bytes": 2935 + }, + { + "name": "å��舌羊_1_1", + "src": "å��舌羊_1_1.mp3", + "path": "dir02/clip05.opus", + "samples": 29440, + "duration": 1.84, + "compressed_bytes": 3764 + }, + { + "name": "咕咕嘎嘎", + "src": "咕咕嘎嘎.mp3", + "path": "dir02/clip07.opus", + "samples": 16640, + "duration": 1.04, + "compressed_bytes": 2089 + }, + { + "name": "哇哇猫", + "src": "哇哇猫.mp3", + "path": "dir02/clip08.opus", + "samples": 54720, + "duration": 3.42, + "compressed_bytes": 7114 + }, + { + "name": "哭泣猫", + "src": "哭泣猫.mp3", + "path": "dir02/clip09.opus", + "samples": 41440, + "duration": 2.59, + "compressed_bytes": 5356 + }, + { + "name": "啊喔猫", + "src": "啊喔猫.mp3", + "path": "dir02/clip10.opus", + "samples": 66240, + "duration": 4.14, + "compressed_bytes": 6454 + }, + { + "name": "啊嘿猫_1", + "src": "啊嘿猫_1.mp3", + "path": "dir02/clip11.opus", + "samples": 71360, + "duration": 4.46, + "compressed_bytes": 6477 + }, + { + "name": "å��笑狗_1", + "src": "å��笑狗_1.mp3", + "path": "dir02/clip12.opus", + "samples": 75520, + "duration": 4.72, + "compressed_bytes": 7055 + }, + { + "name": "å��笑鼠", + "src": "å��笑鼠.mp3", + "path": "dir02/clip13.opus", + "samples": 40960, + "duration": 2.56, + "compressed_bytes": 5212 + }, + { + "name": "外婆猫_1", + "src": "外婆猫_1.mp3", + "path": "dir02/clip14.opus", + "samples": 15520, + "duration": 0.97, + "compressed_bytes": 2034 + }, + { + "name": "大å�¸é©¬çŒ«", + "src": "大å�¸é©¬çŒ«.mp3", + "path": "dir02/clip15.opus", + "samples": 56480, + "duration": 3.53, + "compressed_bytes": 5514 + }, + { + "name": "大笑狗", + "src": "大笑狗.mp3", + "path": "dir02/clip16.opus", + "samples": 31040, + "duration": 1.94, + "compressed_bytes": 3950 + }, + { + "name": "妈妈鼠", + "src": "妈妈鼠.mp3", + "path": "dir02/clip17.opus", + "samples": 33440, + "duration": 2.09, + "compressed_bytes": 4256 + }, + { + "name": "妲己猫", + "src": "妲己猫.mp3", + "path": "dir02/clip18.opus", + "samples": 44960, + "duration": 2.81, + "compressed_bytes": 5885 + }, + { + "name": "委屈猫", + "src": "委屈猫.mp3", + "path": "dir02/clip19.opus", + "samples": 10400, + "duration": 0.65, + "compressed_bytes": 1272 + }, + { + "name": "害羞猫", + "src": "害羞猫.mp3", + "path": "dir02/clip20.opus", + "samples": 50720, + "duration": 3.17, + "compressed_bytes": 6512 + }, + { + "name": "å·´å·´å�šä¸€", + "src": "å·´å·´å�šä¸€.mp3", + "path": "dir02/clip21.opus", + "samples": 15520, + "duration": 0.97, + "compressed_bytes": 1898 + }, + { + "name": "希特勒猫", + "src": "希特勒猫.mp3", + "path": "dir02/clip22.opus", + "samples": 81280, + "duration": 5.08, + "compressed_bytes": 8054 + }, + { + "name": "德语猫", + "src": "德语猫.mp3", + "path": "dir02/clip23.opus", + "samples": 44960, + "duration": 2.81, + "compressed_bytes": 5891 + }, + { + "name": "我的刀盾", + "src": "我的刀盾.mp3", + "path": "dir02/clip24.opus", + "samples": 18400, + "duration": 1.15, + "compressed_bytes": 2399 + }, + { + "name": "招呼猫", + "src": "招呼猫.mp3", + "path": "dir02/clip25.opus", + "samples": 31040, + "duration": 1.94, + "compressed_bytes": 3354 + }, + { + "name": "歪比巴å�œ", + "src": "歪比巴å�œ.mp3", + "path": "dir02/clip26.opus", + "samples": 16320, + "duration": 1.02, + "compressed_bytes": 2145 + }, + { + "name": "比比拉布", + "src": "比比拉布.mp3", + "path": "dir02/clip27.opus", + "samples": 14240, + "duration": 0.89, + "compressed_bytes": 1843 + }, + { + "name": "特辣海藻", + "src": "特辣海藻.mp3", + "path": "dir02/clip28.opus", + "samples": 78880, + "duration": 4.93, + "compressed_bytes": 7780 + }, + { + "name": "ç—žè€�æ�¿_1", + "src": "ç—žè€�æ�¿_1.mp3", + "path": "dir02/clip29.opus", + "samples": 67360, + "duration": 4.21, + "compressed_bytes": 6324 + }, + { + "name": "癫笑猫", + "src": "癫笑猫.mp3", + "path": "dir02/clip30.opus", + "samples": 51200, + "duration": 3.2, + "compressed_bytes": 6633 + }, + { + "name": "瞌ç�¡çŒ«", + "src": "瞌ç�¡çŒ«.mp3", + "path": "dir02/clip31.opus", + "samples": 44320, + "duration": 2.77, + "compressed_bytes": 5333 + }, + { + "name": "紫滋猫", + "src": "紫滋猫.mp3", + "path": "dir02/clip32.opus", + "samples": 39200, + "duration": 2.45, + "compressed_bytes": 4936 + }, + { + "name": "è€�å�´çŒ«_1_1", + "src": "è€�å�´çŒ«_1_1.mp3", + "path": "dir02/clip33.opus", + "samples": 69760, + "duration": 4.36, + "compressed_bytes": 6854 + }, + { + "name": "质问猫", + "src": "质问猫.mp3", + "path": "dir02/clip34.opus", + "samples": 40320, + "duration": 2.52, + "compressed_bytes": 5132 + }, + { + "name": "跺脚猫", + "src": "跺脚猫.mp3", + "path": "dir02/clip35.opus", + "samples": 52960, + "duration": 3.31, + "compressed_bytes": 6508 + }, + { + "name": "逆转猫_1", + "src": "逆转猫_1.mp3", + "path": "dir02/clip36.opus", + "samples": 39200, + "duration": 2.45, + "compressed_bytes": 5038 + }, + { + "name": "香蕉猫", + "src": "香蕉猫.mp3", + "path": "dir02/clip37.opus", + "samples": 53600, + "duration": 3.35, + "compressed_bytes": 6923 + }, + { + "name": "魔性笑1", + "src": "魔性笑1.mp3", + "path": "dir02/clip38.opus", + "samples": 27520, + "duration": 1.72, + "compressed_bytes": 3502 + } + ] + }, + { + "dir": "刘å�Žå¼º", + "dir_id": 3, + "dir_ascii": "dir03", + "files": [ + { + "name": "有一个人å‰�æ�¥ä¹°ç“œ", + "src": "有一个人å‰�æ�¥ä¹°ç“œ.mp3", + "path": "dir03/clip00.opus", + "samples": 24320, + "duration": 1.52, + "compressed_bytes": 4810 + }, + { + "name": "生æ„�行啊你们哥俩", + "src": "生æ„�行啊你们哥俩.mp3", + "path": "dir03/clip01.opus", + "samples": 29280, + "duration": 1.83, + "compressed_bytes": 5503 + }, + { + "name": "哥们", + "src": "哥们.mp3", + "path": "dir03/clip02.opus", + "samples": 9280, + "duration": 0.58, + "compressed_bytes": 519 + }, + { + "name": "这瓜多少钱一斤?", + "src": "这瓜多少钱一斤?.mp3", + "path": "dir03/clip03.opus", + "samples": 20160, + "duration": 1.26, + "compressed_bytes": 1229 + }, + { + "name": "两å�—钱一斤", + "src": "两å�—钱一斤.mp3", + "path": "dir03/clip04.opus", + "samples": 17920, + "duration": 1.12, + "compressed_bytes": 1029 + }, + { + "name": "这瓜皮是金å­�å�šçš„?", + "src": "这瓜皮是金å­�å�šçš„?.mp3", + "path": "dir03/clip05.opus", + "samples": 39680, + "duration": 2.48, + "compressed_bytes": 2583 + }, + { + "name": "大象å�«", + "src": "大象å�«.mp3", + "path": "dir03/clip06.opus", + "samples": 15520, + "duration": 0.97, + "compressed_bytes": 3296 + }, + { + "name": "你瞧瞧现在那有瓜呀", + "src": "你瞧瞧现在那有瓜呀.mp3", + "path": "dir03/clip07.opus", + "samples": 27040, + "duration": 1.69, + "compressed_bytes": 1756 + }, + { + "name": "这都是大棚的瓜", + "src": "这都是大棚的瓜.mp3", + "path": "dir03/clip08.opus", + "samples": 21920, + "duration": 1.37, + "compressed_bytes": 1355 + }, + { + "name": "你嫌贵我还嫌贵呢", + "src": "你嫌贵我还嫌贵呢.mp3", + "path": "dir03/clip09.opus", + "samples": 28160, + "duration": 1.76, + "compressed_bytes": 1766 + }, + { + "name": "给我挑一个", + "src": "给我挑一个.mp3", + "path": "dir03/clip10.opus", + "samples": 14400, + "duration": 0.9, + "compressed_bytes": 772 + }, + { + "name": "这个怎么样", + "src": "这个怎么样.mp3", + "path": "dir03/clip11.opus", + "samples": 12640, + "duration": 0.79, + "compressed_bytes": 750 + }, + { + "name": "这瓜ä¿�熟å�—", + "src": "这瓜ä¿�熟å�—.mp3", + "path": "dir03/clip12.opus", + "samples": 16640, + "duration": 1.04, + "compressed_bytes": 1020 + }, + { + "name": "我开水果摊的能å�–你生瓜蛋å­�?", + "src": "我开水果摊的能å�–你生瓜蛋å­�?.mp3", + "path": "dir03/clip13.opus", + "samples": 45440, + "duration": 2.84, + "compressed_bytes": 2973 + }, + { + "name": "蜘蛛感应", + "src": "蜘蛛感应.mp3", + "path": "dir03/clip15.opus", + "samples": 81920, + "duration": 5.12, + "compressed_bytes": 17208 + }, + { + "name": "ä½ æ•…æ„�找茬是ä¸�是?", + "src": "ä½ æ•…æ„�找茬是ä¸�是?.mp3", + "path": "dir03/clip16.opus", + "samples": 28160, + "duration": 1.76, + "compressed_bytes": 1825 + }, + { + "name": "ä½ è¦�ä¸�è¦�å�§ï¼Ÿ", + "src": "ä½ è¦�ä¸�è¦�å�§ï¼Ÿ.mp3", + "path": "dir03/clip17.opus", + "samples": 20160, + "duration": 1.26, + "compressed_bytes": 1260 + }, + { + "name": "你这瓜è¦�是熟我肯定è¦�啊", + "src": "你这瓜è¦�是熟我肯定è¦�啊.mp3", + "path": "dir03/clip18.opus", + "samples": 30560, + "duration": 1.91, + "compressed_bytes": 1917 + }, + { + "name": "那它è¦�是ä¸�熟怎么办啊", + "src": "那它è¦�是ä¸�熟怎么办啊.mp3", + "path": "dir03/clip19.opus", + "samples": 26560, + "duration": 1.66, + "compressed_bytes": 1640 + }, + { + "name": "è¦�是ä¸�熟我自己å�ƒäº†å®ƒ", + "src": "è¦�是ä¸�熟我自己å�ƒäº†å®ƒ.mp3", + "path": "dir03/clip20.opus", + "samples": 44320, + "duration": 2.77, + "compressed_bytes": 2914 + }, + { + "name": "你这哪够15斤你的秤有问题啊", + "src": "你这哪够15斤你的秤有问题啊.mp3", + "path": "dir03/clip21.opus", + "samples": 38560, + "duration": 2.41, + "compressed_bytes": 2530 + }, + { + "name": "ä½ è¦�ä¸�è¦�?ï¼�", + "src": "ä½ è¦�ä¸�è¦�?ï¼�.mp3", + "path": "dir03/clip24.opus", + "samples": 13760, + "duration": 0.86, + "compressed_bytes": 798 + }, + { + "name": "å�¸é“�石", + "src": "å�¸é“�石.mp3", + "path": "dir03/clip25.opus", + "samples": 16160, + "duration": 1.01, + "compressed_bytes": 824 + }, + { + "name": "你说的这瓜è¦�是生的你自己å�žè¿›åŽ»", + "src": "你说的这瓜è¦�是生的你自己å�žè¿›åŽ».mp3", + "path": "dir03/clip26.opus", + "samples": 57600, + "duration": 3.6, + "compressed_bytes": 3553 + }, + { + "name": "ä½ TM劈我瓜是å�§", + "src": "ä½ TM劈我瓜是å�§.mp3", + "path": "dir03/clip27.opus", + "samples": 22400, + "duration": 1.4, + "compressed_bytes": 1472 + }, + { + "name": "豪哥中刀", + "src": "豪哥中刀.mp3", + "path": "dir03/clip28.opus", + "samples": 12160, + "duration": 0.76, + "compressed_bytes": 2273 + }, + { + "name": "è�¨æ—¥æœ—", + "src": "è�¨æ—¥æœ—.mp3", + "path": "dir03/clip29.opus", + "samples": 12960, + "duration": 0.81, + "compressed_bytes": 2953 + }, + { + "name": "å�Žå¼ºï¼�诶ï¼�å�Žå¼º", + "src": "å�Žå¼ºï¼�诶ï¼�å�Žå¼º.mp3", + "path": "dir03/clip30.opus", + "samples": 28800, + "duration": 1.8, + "compressed_bytes": 5814 + } + ] + }, + { + "dir": "刘海柱", + "dir_id": 4, + "dir_ascii": "dir04", + "files": [ + { + "name": "人家本æ�¥å°±å‚»", + "src": "人家本æ�¥å°±å‚».mp3", + "path": "dir04/clip00.opus", + "samples": 36320, + "duration": 2.27, + "compressed_bytes": 4598 + }, + { + "name": "什么tm玩啊", + "src": "什么tm玩啊.mp3", + "path": "dir04/clip01.opus", + "samples": 41440, + "duration": 2.59, + "compressed_bytes": 5303 + }, + { + "name": "今天我é�žjbç �死你", + "src": "今天我é�žjbç �死你.mp3", + "path": "dir04/clip02.opus", + "samples": 120320, + "duration": 7.52, + "compressed_bytes": 11976 + }, + { + "name": "你刘大爷混了这么些年", + "src": "你刘大爷混了这么些年.mp3", + "path": "dir04/clip03.opus", + "samples": 152000, + "duration": 9.5, + "compressed_bytes": 14691 + }, + { + "name": "ä½ æ�¥è·Ÿæˆ‘è¦�人?", + "src": "ä½ æ�¥è·Ÿæˆ‘è¦�人?.mp3", + "path": "dir04/clip04.opus", + "samples": 42560, + "duration": 2.66, + "compressed_bytes": 5376 + }, + { + "name": "你还tmæ��人家", + "src": "你还tmæ��人家.mp3", + "path": "dir04/clip05.opus", + "samples": 29440, + "duration": 1.84, + "compressed_bytes": 3692 + }, + { + "name": "å‚»å­�ä¸�是人啊", + "src": "å‚»å­�ä¸�是人啊.mp3", + "path": "dir04/clip06.opus", + "samples": 31040, + "duration": 1.94, + "compressed_bytes": 3831 + }, + { + "name": "å‚»å­�ä¸�是爹妈养的啊", + "src": "å‚»å­�ä¸�是爹妈养的啊.mp3", + "path": "dir04/clip07.opus", + "samples": 78400, + "duration": 4.9, + "compressed_bytes": 7606 + }, + { + "name": "å…¨jb给你们å‰�了", + "src": "å…¨jb给你们å‰�了.mp3", + "path": "dir04/clip08.opus", + "samples": 86400, + "duration": 5.4, + "compressed_bytes": 8410 + }, + { + "name": "大煞笔", + "src": "大煞笔.mp3", + "path": "dir04/clip09.opus", + "samples": 27040, + "duration": 1.69, + "compressed_bytes": 3445 + }, + { + "name": "我艹nm", + "src": "我艹nm.mp3", + "path": "dir04/clip10.opus", + "samples": 63360, + "duration": 3.96, + "compressed_bytes": 6142 + }, + { + "name": "我艹nmçš„", + "src": "我艹nmçš„.mp3", + "path": "dir04/clip12.opus", + "samples": 43200, + "duration": 2.7, + "compressed_bytes": 5446 + }, + { + "name": "我艹你妈", + "src": "我艹你妈.mp3", + "path": "dir04/clip13.opus", + "samples": 29440, + "duration": 1.84, + "compressed_bytes": 3587 + }, + { + "name": "找我干jbå•¥", + "src": "找我干jbå•¥.mp3", + "path": "dir04/clip14.opus", + "samples": 31040, + "duration": 1.94, + "compressed_bytes": 3905 + }, + { + "name": "找我干鸡毛", + "src": "找我干鸡毛.mp3", + "path": "dir04/clip15.opus", + "samples": 55360, + "duration": 3.46, + "compressed_bytes": 5203 + }, + { + "name": "滚犊å­�", + "src": "滚犊å­�.mp3", + "path": "dir04/clip16.opus", + "samples": 28800, + "duration": 1.8, + "compressed_bytes": 3499 + }, + { + "name": "给我站那你个SB", + "src": "给我站那你个SB.mp3", + "path": "dir04/clip17.opus", + "samples": 42560, + "duration": 2.66, + "compressed_bytes": 5468 + }, + { + "name": "给白傻å­�买瓜å­�去", + "src": "给白傻å­�买瓜å­�去.mp3", + "path": "dir04/clip18.opus", + "samples": 29440, + "duration": 1.84, + "compressed_bytes": 3759 + }, + { + "name": "能å�¬æ‡‚人è¯�ä¸�", + "src": "能å�¬æ‡‚人è¯�ä¸�.mp3", + "path": "dir04/clip19.opus", + "samples": 40960, + "duration": 2.56, + "compressed_bytes": 5124 + }, + { + "name": "艹你妈", + "src": "艹你妈.mp3", + "path": "dir04/clip20.opus", + "samples": 27680, + "duration": 1.73, + "compressed_bytes": 3374 + }, + { + "name": "跟你个å°�b仔跟è°�ä¿©å‘¢", + "src": "跟你个å°�b仔跟è°�ä¿©å‘¢.mp3", + "path": "dir04/clip21.opus", + "samples": 57600, + "duration": 3.6, + "compressed_bytes": 5483 + }, + { + "name": "还tm有你们干ä¸�出æ�¥çš„å�—", + "src": "还tm有你们干ä¸�出æ�¥çš„å�—.mp3", + "path": "dir04/clip22.opus", + "samples": 110080, + "duration": 6.88, + "compressed_bytes": 10779 + } + ] + }, + { + "dir": "å�¡ä¸˜ç±³é›ªå„¿", + "dir_id": 5, + "dir_ascii": "dir05", + "files": [ + { + "name": "你为什么ä¸�帮忙?(委屈)", + "src": "你为什么ä¸�帮忙?(委屈).mp3", + "path": "dir05/clip00.opus", + "samples": 46080, + "duration": 2.88, + "compressed_bytes": 5821 + }, + { + "name": "å�¡å•¦æ¯”丘就放心交给我守护å�§", + "src": "å�¡å•¦æ¯”丘就放心交给我守护å�§.mp3", + "path": "dir05/clip01.opus", + "samples": 39680, + "duration": 2.48, + "compressed_bytes": 5184 + }, + { + "name": "å�¡æ‹‰å½¼ä¸˜", + "src": "å�¡æ‹‰å½¼ä¸˜.mp3", + "path": "dir05/clip03.opus", + "samples": 24800, + "duration": 1.55, + "compressed_bytes": 2518 + }, + { + "name": "å�—击", + "src": "å�—击.mp3", + "path": "dir05/clip04.opus", + "samples": 58240, + "duration": 3.64, + "compressed_bytes": 5336 + }, + { + "name": "呜啦呜啦", + "src": "呜啦呜啦.mp3", + "path": "dir05/clip05.opus", + "samples": 13760, + "duration": 0.86, + "compressed_bytes": 1648 + }, + { + "name": "å”�笑", + "src": "å”�笑.mp3", + "path": "dir05/clip06.opus", + "samples": 50720, + "duration": 3.17, + "compressed_bytes": 5553 + }, + { + "name": "啊~", + "src": "啊~.mp3", + "path": "dir05/clip07.opus", + "samples": 24160, + "duration": 1.51, + "compressed_bytes": 3270 + }, + { + "name": "啊哈", + "src": "啊哈.mp3", + "path": "dir05/clip08.opus", + "samples": 79520, + "duration": 4.97, + "compressed_bytes": 6641 + }, + { + "name": "啊哈哈哈", + "src": "啊哈哈哈.mp3", + "path": "dir05/clip09.opus", + "samples": 23040, + "duration": 1.44, + "compressed_bytes": 2849 + }, + { + "name": "å–µï¼�", + "src": "å–µï¼�.mp3", + "path": "dir05/clip11.opus", + "samples": 6880, + "duration": 0.43, + "compressed_bytes": 789 + }, + { + "name": "嗯嗯嗯", + "src": "嗯嗯嗯.mp3", + "path": "dir05/clip12.opus", + "samples": 29920, + "duration": 1.87, + "compressed_bytes": 3806 + }, + { + "name": "嗯摩擦ç�€æ„Ÿè§‰å¾ˆèˆ’æœ�", + "src": "嗯摩擦ç�€æ„Ÿè§‰å¾ˆèˆ’æœ�.mp3", + "path": "dir05/clip13.opus", + "samples": 61600, + "duration": 3.85, + "compressed_bytes": 6130 + }, + { + "name": "嘎啦gameä¸�是这样", + "src": "嘎啦gameä¸�是这样.mp3", + "path": "dir05/clip14.opus", + "samples": 24160, + "duration": 1.51, + "compressed_bytes": 3221 + }, + { + "name": "嘿~我的å��å­—å�«ç±³é›ªå„¿", + "src": "嘿~我的å��å­—å�«ç±³é›ªå„¿.mp3", + "path": "dir05/clip15.opus", + "samples": 32800, + "duration": 2.05, + "compressed_bytes": 4039 + }, + { + "name": "嘿嘿", + "src": "嘿嘿.mp3", + "path": "dir05/clip16.opus", + "samples": 16160, + "duration": 1.01, + "compressed_bytes": 1991 + }, + { + "name": "嘿嘿哈哈哈", + "src": "嘿嘿哈哈哈.mp3", + "path": "dir05/clip17.opus", + "samples": 39680, + "duration": 2.48, + "compressed_bytes": 5102 + }, + { + "name": "嘿嘿嘿嘿", + "src": "嘿嘿嘿嘿.mp3", + "path": "dir05/clip18.opus", + "samples": 40960, + "duration": 2.56, + "compressed_bytes": 5234 + }, + { + "name": "嘿嘿等等", + "src": "嘿嘿等等.mp3", + "path": "dir05/clip19.opus", + "samples": 15520, + "duration": 0.97, + "compressed_bytes": 1986 + }, + { + "name": "它就宕机了", + "src": "它就宕机了.mp3", + "path": "dir05/clip20.opus", + "samples": 33440, + "duration": 2.09, + "compressed_bytes": 4310 + }, + { + "name": "å¿«æ�¥æ•‘我è°�æ�¥æ•‘救我啊", + "src": "å¿«æ�¥æ•‘我è°�æ�¥æ•‘救我啊.mp3", + "path": "dir05/clip21.opus", + "samples": 55360, + "duration": 3.46, + "compressed_bytes": 7201 + }, + { + "name": "我会全力以赴的", + "src": "我会全力以赴的.mp3", + "path": "dir05/clip22.opus", + "samples": 21280, + "duration": 1.33, + "compressed_bytes": 2755 + }, + { + "name": "果咩内", + "src": "果咩内.mp3", + "path": "dir05/clip24.opus", + "samples": 112320, + "duration": 7.02, + "compressed_bytes": 9719 + }, + { + "name": "梦è¯�", + "src": "梦è¯�.mp3", + "path": "dir05/clip25.opus", + "samples": 108320, + "duration": 6.77, + "compressed_bytes": 10730 + }, + { + "name": "欢迎你的到æ�¥", + "src": "欢迎你的到æ�¥.mp3", + "path": "dir05/clip26.opus", + "samples": 17280, + "duration": 1.08, + "compressed_bytes": 2105 + }, + { + "name": "欢迎回家", + "src": "欢迎回家.mp3", + "path": "dir05/clip27.opus", + "samples": 17920, + "duration": 1.12, + "compressed_bytes": 2201 + }, + { + "name": "洗大锅", + "src": "洗大锅.mp3", + "path": "dir05/clip28.opus", + "samples": 31680, + "duration": 1.98, + "compressed_bytes": 3580 + }, + { + "name": "ç�«åЛ大喵", + "src": "ç�«åЛ大喵.mp3", + "path": "dir05/clip29.opus", + "samples": 43200, + "duration": 2.7, + "compressed_bytes": 4474 + }, + { + "name": "烦æ�¼æ¶ˆæ•£å•¦", + "src": "烦æ�¼æ¶ˆæ•£å•¦.mp3", + "path": "dir05/clip30.opus", + "samples": 19040, + "duration": 1.19, + "compressed_bytes": 2414 + }, + { + "name": "诶嘿嘿嘿", + "src": "诶嘿嘿嘿.mp3", + "path": "dir05/clip31.opus", + "samples": 39200, + "duration": 2.45, + "compressed_bytes": 5057 + }, + { + "name": "那个", + "src": "那个.mp3", + "path": "dir05/clip32.opus", + "samples": 6400, + "duration": 0.4, + "compressed_bytes": 732 + }, + { + "name": "阵亡", + "src": "阵亡.mp3", + "path": "dir05/clip33.opus", + "samples": 90400, + "duration": 5.65, + "compressed_bytes": 7703 + }, + { + "name": "é¢�~好åƒ�ä¸�太对", + "src": "é¢�~好åƒ�ä¸�太对.mp3", + "path": "dir05/clip34.opus", + "samples": 42560, + "duration": 2.66, + "compressed_bytes": 5071 + } + ] + }, + { + "dir": "å�¢éŸ³", + "dir_id": 6, + "dir_ascii": "dir06", + "files": [ + { + "name": "LBWS牛逼", + "src": "LBWS牛逼.mp3", + "path": "dir06/clip00.opus", + "samples": 19040, + "duration": 1.19, + "compressed_bytes": 2513 + }, + { + "name": "ä¸�è¦�å�œ", + "src": "ä¸�è¦�å�œ.mp3", + "path": "dir06/clip01.opus", + "samples": 37440, + "duration": 2.34, + "compressed_bytes": 4839 + }, + { + "name": "伞兵一å�·", + "src": "伞兵一å�·.mp3", + "path": "dir06/clip02.opus", + "samples": 47840, + "duration": 2.99, + "compressed_bytes": 6121 + }, + { + "name": "伞兵三å�·", + "src": "伞兵三å�·.mp3", + "path": "dir06/clip03.opus", + "samples": 38080, + "duration": 2.38, + "compressed_bytes": 4914 + }, + { + "name": "伞兵二å�·", + "src": "伞兵二å�·.mp3", + "path": "dir06/clip04.opus", + "samples": 31040, + "duration": 1.94, + "compressed_bytes": 3984 + }, + { + "name": "伞兵四å�·", + "src": "伞兵四å�·.mp3", + "path": "dir06/clip05.opus", + "samples": 44320, + "duration": 2.77, + "compressed_bytes": 5725 + }, + { + "name": "你好", + "src": "你好.mp3", + "path": "dir06/clip06.opus", + "samples": 8640, + "duration": 0.54, + "compressed_bytes": 1086 + }, + { + "name": "你有å�—", + "src": "你有🔫å�—.mp3", + "path": "dir06/clip07.opus", + "samples": 11520, + "duration": 0.72, + "compressed_bytes": 1399 + }, + { + "name": "å�¬è§�å�—", + "src": "å�¬è§�å�—.mp3", + "path": "dir06/clip08.opus", + "samples": 18400, + "duration": 1.15, + "compressed_bytes": 2291 + }, + { + "name": "å—¯~", + "src": "å—¯~.mp3", + "path": "dir06/clip09.opus", + "samples": 16160, + "duration": 1.01, + "compressed_bytes": 1998 + }, + { + "name": "嘿嘿", + "src": "嘿嘿.mp3", + "path": "dir06/clip10.opus", + "samples": 19040, + "duration": 1.19, + "compressed_bytes": 2459 + }, + { + "name": "就是这ç§�", + "src": "就是这ç§�.mp3", + "path": "dir06/clip12.opus", + "samples": 27040, + "duration": 1.69, + "compressed_bytes": 3400 + }, + { + "name": "我有", + "src": "我有.mp3", + "path": "dir06/clip13.opus", + "samples": 10880, + "duration": 0.68, + "compressed_bytes": 1298 + }, + { + "name": "拉闸", + "src": "拉闸.mp3", + "path": "dir06/clip14.opus", + "samples": 14400, + "duration": 0.9, + "compressed_bytes": 1712 + }, + { + "name": "撒泡尿", + "src": "撒泡尿.mp3", + "path": "dir06/clip15.opus", + "samples": 12640, + "duration": 0.79, + "compressed_bytes": 1421 + }, + { + "name": "有人å�—", + "src": "有人å�—.mp3", + "path": "dir06/clip16.opus", + "samples": 9760, + "duration": 0.61, + "compressed_bytes": 1171 + }, + { + "name": "有点骚", + "src": "有点骚.mp3", + "path": "dir06/clip17.opus", + "samples": 16640, + "duration": 1.04, + "compressed_bytes": 2116 + }, + { + "name": "æ�¥æˆ˜æ–—", + "src": "æ�¥æˆ˜æ–—.mp3", + "path": "dir06/clip18.opus", + "samples": 22400, + "duration": 1.4, + "compressed_bytes": 2825 + }, + { + "name": "溜了", + "src": "溜了.mp3", + "path": "dir06/clip19.opus", + "samples": 19040, + "duration": 1.19, + "compressed_bytes": 2237 + }, + { + "name": "滚", + "src": "滚.mp3", + "path": "dir06/clip20.opus", + "samples": 8000, + "duration": 0.5, + "compressed_bytes": 909 + }, + { + "name": "玩柠檬", + "src": "玩柠檬.mp3", + "path": "dir06/clip21.opus", + "samples": 28160, + "duration": 1.76, + "compressed_bytes": 3490 + }, + { + "name": "疯狗", + "src": "疯狗.mp3", + "path": "dir06/clip22.opus", + "samples": 9760, + "duration": 0.61, + "compressed_bytes": 1101 + }, + { + "name": "笑ç�€çŽ©", + "src": "笑ç�€çŽ©.mp3", + "path": "dir06/clip23.opus", + "samples": 12160, + "duration": 0.76, + "compressed_bytes": 1514 + }, + { + "name": "ç»§ç»­", + "src": "ç»§ç»­.mp3", + "path": "dir06/clip24.opus", + "samples": 25280, + "duration": 1.58, + "compressed_bytes": 3138 + }, + { + "name": "è€�æ�¿", + "src": "è€�æ�¿.mp3", + "path": "dir06/clip25.opus", + "samples": 10400, + "duration": 0.65, + "compressed_bytes": 1260 + }, + { + "name": "è�‰", + "src": "è�‰.mp3", + "path": "dir06/clip26.opus", + "samples": 12640, + "duration": 0.79, + "compressed_bytes": 1625 + }, + { + "name": "è¦�装B", + "src": "è¦�装B.mp3", + "path": "dir06/clip27.opus", + "samples": 32800, + "duration": 2.05, + "compressed_bytes": 4188 + }, + { + "name": "让我兴奋", + "src": "让我兴奋.mp3", + "path": "dir06/clip28.opus", + "samples": 33440, + "duration": 2.09, + "compressed_bytes": 4228 + }, + { + "name": "说è¯�å‘€", + "src": "说è¯�å‘€.mp3", + "path": "dir06/clip29.opus", + "samples": 21920, + "duration": 1.37, + "compressed_bytes": 2620 + }, + { + "name": "象拔蚌", + "src": "象拔蚌.mp3", + "path": "dir06/clip30.opus", + "samples": 13280, + "duration": 0.83, + "compressed_bytes": 1625 + }, + { + "name": "贼好å�ƒ", + "src": "贼好å�ƒ.mp3", + "path": "dir06/clip31.opus", + "samples": 8640, + "duration": 0.54, + "compressed_bytes": 1028 + }, + { + "name": "贼尴尬", + "src": "贼尴尬.mp3", + "path": "dir06/clip32.opus", + "samples": 51200, + "duration": 3.2, + "compressed_bytes": 6527 + }, + { + "name": "èµ°å¼€", + "src": "èµ°å¼€.mp3", + "path": "dir06/clip33.opus", + "samples": 16160, + "duration": 1.01, + "compressed_bytes": 1585 + }, + { + "name": "è·‘æ­¥", + "src": "è·‘æ­¥.mp3", + "path": "dir06/clip34.opus", + "samples": 10880, + "duration": 0.68, + "compressed_bytes": 1261 + }, + { + "name": "è·³", + "src": "è·³.mp3", + "path": "dir06/clip35.opus", + "samples": 9760, + "duration": 0.61, + "compressed_bytes": 1109 + }, + { + "name": "这么牛", + "src": "这么牛.mp3", + "path": "dir06/clip36.opus", + "samples": 27680, + "duration": 1.73, + "compressed_bytes": 3447 + }, + { + "name": "这么直接", + "src": "这么直接.mp3", + "path": "dir06/clip37.opus", + "samples": 13280, + "duration": 0.83, + "compressed_bytes": 1577 + }, + { + "name": "顶你个肺", + "src": "顶你个肺.mp3", + "path": "dir06/clip38.opus", + "samples": 18400, + "duration": 1.15, + "compressed_bytes": 2295 + }, + { + "name": "骚", + "src": "骚ðŸ�·.mp3", + "path": "dir06/clip39.opus", + "samples": 32320, + "duration": 2.02, + "compressed_bytes": 4064 + } + ] + }, + { + "dir": "å�°åº¦é˜¿ä¸‰", + "dir_id": 7, + "dir_ascii": "dir07", + "files": [ + { + "name": "bia里", + "src": "bia里.mp3", + "path": "dir07/clip00.opus", + "samples": 17280, + "duration": 1.08, + "compressed_bytes": 2004 + }, + { + "name": "呀里给sei", + "src": "呀里给sei.mp3", + "path": "dir07/clip01.opus", + "samples": 32800, + "duration": 2.05, + "compressed_bytes": 3764 + }, + { + "name": "嘎猴打黑~", + "src": "嘎猴打黑~.mp3", + "path": "dir07/clip02.opus", + "samples": 31680, + "duration": 1.98, + "compressed_bytes": 3770 + }, + { + "name": "嘟噜噜", + "src": "嘟噜噜.mp3", + "path": "dir07/clip03.opus", + "samples": 51200, + "duration": 3.2, + "compressed_bytes": 6546 + }, + { + "name": "改sei", + "src": "改sei.mp3", + "path": "dir07/clip05.opus", + "samples": 17280, + "duration": 1.08, + "compressed_bytes": 1912 + }, + { + "name": "改红~", + "src": "改红~.mp3", + "path": "dir07/clip06.opus", + "samples": 11520, + "duration": 0.72, + "compressed_bytes": 1334 + }, + { + "name": "ç�­æ¬§å‘€å•¦ä¹Ÿ~", + "src": "ç�­æ¬§å‘€å•¦ä¹Ÿ~.mp3", + "path": "dir07/clip07.opus", + "samples": 35200, + "duration": 2.2, + "compressed_bytes": 3993 + }, + { + "name": "猴呀猴笨~", + "src": "猴呀猴笨~.mp3", + "path": "dir07/clip08.opus", + "samples": 30560, + "duration": 1.91, + "compressed_bytes": 3741 + }, + { + "name": "猴打黑", + "src": "猴打黑.mp3", + "path": "dir07/clip09.opus", + "samples": 30560, + "duration": 1.91, + "compressed_bytes": 3407 + }, + { + "name": "ç»™sei~", + "src": "ç»™sei~.mp3", + "path": "dir07/clip11.opus", + "samples": 16640, + "duration": 1.04, + "compressed_bytes": 1923 + }, + { + "name": "苦力", + "src": "苦力.mp3", + "path": "dir07/clip12.opus", + "samples": 13280, + "duration": 0.83, + "compressed_bytes": 1591 + }, + { + "name": "迪哒", + "src": "迪哒.mp3", + "path": "dir07/clip13.opus", + "samples": 17280, + "duration": 1.08, + "compressed_bytes": 2041 + }, + { + "name": "阿kei", + "src": "阿kei.mp3", + "path": "dir07/clip14.opus", + "samples": 16160, + "duration": 1.01, + "compressed_bytes": 1942 + }, + { + "name": "阿三清唱两å�¥1", + "src": "阿三清唱两å�¥1.mp3", + "path": "dir07/clip15.opus", + "samples": 125600, + "duration": 7.85, + "compressed_bytes": 12164 + }, + { + "name": "é²�å…¬", + "src": "é²�å…¬.mp3", + "path": "dir07/clip17.opus", + "samples": 12160, + "duration": 0.76, + "compressed_bytes": 1405 + } + ] + }, + { + "dir": "å�‰ä¼Šå�¡å“‡", + "dir_id": 8, + "dir_ascii": "dir08", + "files": [ + { + "name": "K啦K啦", + "src": "K啦K啦.mp3", + "path": "dir08/clip00.opus", + "samples": 44960, + "duration": 2.81, + "compressed_bytes": 5459 + }, + { + "name": "oi", + "src": "oi.mp3", + "path": "dir08/clip01.opus", + "samples": 8640, + "duration": 0.54, + "compressed_bytes": 1129 + }, + { + "name": "乌乌拉拉乌拉乌拉拉呀哈呀哈", + "src": "乌乌拉拉乌拉乌拉拉呀哈呀哈.mp3", + "path": "dir08/clip02.opus", + "samples": 82880, + "duration": 5.18, + "compressed_bytes": 7332 + }, + { + "name": "乌呀咦哈", + "src": "乌呀咦哈.mp3", + "path": "dir08/clip03.opus", + "samples": 49600, + "duration": 3.1, + "compressed_bytes": 4041 + }, + { + "name": "乌拉", + "src": "乌拉.mp3", + "path": "dir08/clip04.opus", + "samples": 14400, + "duration": 0.9, + "compressed_bytes": 1260 + }, + { + "name": "乌拉呀哈呀哈乌拉", + "src": "乌拉呀哈呀哈乌拉.mp3", + "path": "dir08/clip05.opus", + "samples": 47840, + "duration": 2.99, + "compressed_bytes": 6091 + }, + { + "name": "乌拉拉", + "src": "乌拉拉.mp3", + "path": "dir08/clip06.opus", + "samples": 19040, + "duration": 1.19, + "compressed_bytes": 2070 + }, + { + "name": "乌玛", + "src": "乌玛.mp3", + "path": "dir08/clip07.opus", + "samples": 13280, + "duration": 0.83, + "compressed_bytes": 1658 + }, + { + "name": "å�‰ä¼Šå®�å®�演唱会纯享版", + "src": "å�‰ä¼Šå®�å®�演唱会纯享版.mp3", + "path": "dir08/clip08.opus", + "samples": 200480, + "duration": 12.53, + "compressed_bytes": 19288 + }, + { + "name": "å�“", + "src": "å�“.mp3", + "path": "dir08/clip09.opus", + "samples": 19040, + "duration": 1.19, + "compressed_bytes": 2210 + }, + { + "name": "å�¼å“‡é‡Œ", + "src": "å�¼å“‡é‡Œ.mp3", + "path": "dir08/clip10.opus", + "samples": 26560, + "duration": 1.66, + "compressed_bytes": 3387 + }, + { + "name": "呀哈", + "src": "呀哈.mp3", + "path": "dir08/clip11.opus", + "samples": 15040, + "duration": 0.94, + "compressed_bytes": 1677 + }, + { + "name": "呀哈哈", + "src": "呀哈哈.mp3", + "path": "dir08/clip12.opus", + "samples": 19520, + "duration": 1.22, + "compressed_bytes": 1957 + }, + { + "name": "呺呜", + "src": "呺呜.mp3", + "path": "dir08/clip13.opus", + "samples": 10400, + "duration": 0.65, + "compressed_bytes": 1151 + }, + { + "name": "咦哒哒哒", + "src": "咦哒哒哒.mp3", + "path": "dir08/clip14.opus", + "samples": 12160, + "duration": 0.76, + "compressed_bytes": 1449 + }, + { + "name": "哇", + "src": "哇.mp3", + "path": "dir08/clip15.opus", + "samples": 11520, + "duration": 0.72, + "compressed_bytes": 1343 + }, + { + "name": "哈?", + "src": "哈?.mp3", + "path": "dir08/clip16.opus", + "samples": 17280, + "duration": 1.08, + "compressed_bytes": 1861 + }, + { + "name": "哦哈呦(短)", + "src": "哦哈呦(短).mp3", + "path": "dir08/clip17.opus", + "samples": 10400, + "duration": 0.65, + "compressed_bytes": 1231 + }, + { + "name": "哦嘟嘟", + "src": "哦嘟嘟.mp3", + "path": "dir08/clip19.opus", + "samples": 31680, + "duration": 1.98, + "compressed_bytes": 2856 + }, + { + "name": "哼嗯", + "src": "哼嗯.mp3", + "path": "dir08/clip20.opus", + "samples": 12160, + "duration": 0.76, + "compressed_bytes": 1245 + }, + { + "name": "啊咧啊咧", + "src": "啊咧啊咧.mp3", + "path": "dir08/clip21.opus", + "samples": 11520, + "duration": 0.72, + "compressed_bytes": 1147 + }, + { + "name": "啊嘟嘟", + "src": "啊嘟嘟.mp3", + "path": "dir08/clip22.opus", + "samples": 19520, + "duration": 1.22, + "compressed_bytes": 1716 + }, + { + "name": "喃哒", + "src": "喃哒.mp3", + "path": "dir08/clip23.opus", + "samples": 22400, + "duration": 1.4, + "compressed_bytes": 2825 + }, + { + "name": "å–µ1", + "src": "å–µ1.mp3", + "path": "dir08/clip24.opus", + "samples": 17280, + "duration": 1.08, + "compressed_bytes": 2132 + }, + { + "name": "嗬?", + "src": "嗬?.mp3", + "path": "dir08/clip34.opus", + "samples": 17280, + "duration": 1.08, + "compressed_bytes": 1776 + }, + { + "name": "嗯?", + "src": "嗯?.mp3", + "path": "dir08/clip35.opus", + "samples": 8000, + "duration": 0.5, + "compressed_bytes": 822 + }, + { + "name": "å—³", + "src": "å—³.mp3", + "path": "dir08/clip36.opus", + "samples": 11520, + "duration": 0.72, + "compressed_bytes": 1225 + }, + { + "name": "嘿咻1", + "src": "嘿咻1.mp3", + "path": "dir08/clip37.opus", + "samples": 19520, + "duration": 1.22, + "compressed_bytes": 2084 + }, + { + "name": "嘿撒", + "src": "嘿撒.mp3", + "path": "dir08/clip39.opus", + "samples": 11520, + "duration": 0.72, + "compressed_bytes": 1100 + }, + { + "name": "噗噜", + "src": "噗噜.mp3", + "path": "dir08/clip40.opus", + "samples": 8640, + "duration": 0.54, + "compressed_bytes": 782 + }, + { + "name": "噗噜噜噜噜", + "src": "噗噜噜噜噜.mp3", + "path": "dir08/clip41.opus", + "samples": 17280, + "duration": 1.08, + "compressed_bytes": 2111 + }, + { + "name": "å°�黑ç�¡ç�€äº†", + "src": "å°�黑ç�¡ç�€äº†.mp3", + "path": "dir08/clip42.opus", + "samples": 28160, + "duration": 1.76, + "compressed_bytes": 2804 + }, + { + "name": "怎怎瓦å�Žå¥¶", + "src": "怎怎瓦å�Žå¥¶.mp3", + "path": "dir08/clip43.opus", + "samples": 21280, + "duration": 1.33, + "compressed_bytes": 2689 + }, + { + "name": "æ�°å™¢", + "src": "æ�°å™¢.mp3", + "path": "dir08/clip44.opus", + "samples": 101440, + "duration": 6.34, + "compressed_bytes": 9238 + }, + { + "name": "拜拜", + "src": "拜拜.mp3", + "path": "dir08/clip45.opus", + "samples": 14400, + "duration": 0.9, + "compressed_bytes": 1581 + }, + { + "name": "欸", + "src": "欸.mp3", + "path": "dir08/clip46.opus", + "samples": 12640, + "duration": 0.79, + "compressed_bytes": 1506 + }, + { + "name": "滋滋ç�­", + "src": "滋滋ç�­.mp3", + "path": "dir08/clip47.opus", + "samples": 16160, + "duration": 1.01, + "compressed_bytes": 1836 + }, + { + "name": "炸毛", + "src": "炸毛.mp3", + "path": "dir08/clip48.opus", + "samples": 13760, + "duration": 0.86, + "compressed_bytes": 1785 + }, + { + "name": "瓦å�Žå¥¶", + "src": "瓦å�Žå¥¶.mp3", + "path": "dir08/clip49.opus", + "samples": 13760, + "duration": 0.86, + "compressed_bytes": 1515 + }, + { + "name": "çª�噜里拉", + "src": "çª�噜里拉.mp3", + "path": "dir08/clip50.opus", + "samples": 31680, + "duration": 1.98, + "compressed_bytes": 3722 + }, + { + "name": "笑", + "src": "笑.mp3", + "path": "dir08/clip51.opus", + "samples": 24800, + "duration": 1.55, + "compressed_bytes": 3068 + }, + { + "name": "纳尼纳尼", + "src": "纳尼纳尼.mp3", + "path": "dir08/clip52.opus", + "samples": 13280, + "duration": 0.83, + "compressed_bytes": 1595 + }, + { + "name": "羊粑粑", + "src": "羊粑粑.mp3", + "path": "dir08/clip53.opus", + "samples": 32800, + "duration": 2.05, + "compressed_bytes": 3140 + }, + { + "name": "羊羊粑粑噜啦啦ze", + "src": "羊羊粑粑噜啦啦ze.mp3", + "path": "dir08/clip54.opus", + "samples": 85760, + "duration": 5.36, + "compressed_bytes": 7327 + }, + { + "name": "耶", + "src": "耶.mp3", + "path": "dir08/clip55.opus", + "samples": 9760, + "duration": 0.61, + "compressed_bytes": 1189 + }, + { + "name": "诶休", + "src": "诶休.mp3", + "path": "dir08/clip56.opus", + "samples": 14400, + "duration": 0.9, + "compressed_bytes": 1644 + }, + { + "name": "诶嘿嘿", + "src": "诶嘿嘿.mp3", + "path": "dir08/clip57.opus", + "samples": 25920, + "duration": 1.62, + "compressed_bytes": 3185 + }, + { + "name": "达拉里拉", + "src": "达拉里拉.mp3", + "path": "dir08/clip58.opus", + "samples": 21280, + "duration": 1.33, + "compressed_bytes": 2656 + }, + { + "name": "è¿·è�¶", + "src": "è¿·è�¶.mp3", + "path": "dir08/clip59.opus", + "samples": 58720, + "duration": 3.67, + "compressed_bytes": 5635 + }, + { + "name": "鸭蛋", + "src": "鸭蛋.mp3", + "path": "dir08/clip60.opus", + "samples": 12160, + "duration": 0.76, + "compressed_bytes": 1464 + } + ] + }, + { + "dir": "哈基米", + "dir_id": 9, + "dir_ascii": "dir09", + "files": [ + { + "name": "WOW", + "src": "WOW.mp3", + "path": "dir09/clip01.opus", + "samples": 15520, + "duration": 0.97, + "compressed_bytes": 1970 + }, + { + "name": "刚枪歌", + "src": "刚枪歌.mp3", + "path": "dir09/clip03.opus", + "samples": 161920, + "duration": 10.12, + "compressed_bytes": 16030 + }, + { + "name": "å�—北豆", + "src": "å�—北豆.mp3", + "path": "dir09/clip04.opus", + "samples": 21280, + "duration": 1.33, + "compressed_bytes": 2611 + }, + { + "name": "å�®å’šå�®å’šå“ˆåŸºç±³_1", + "src": "å�®å’šå�®å’šå“ˆåŸºç±³_1.mp3", + "path": "dir09/clip05.opus", + "samples": 38560, + "duration": 2.41, + "compressed_bytes": 5018 + }, + { + "name": "呵呵呵呵", + "src": "呵呵呵呵.mp3", + "path": "dir09/clip06.opus", + "samples": 36800, + "duration": 2.3, + "compressed_bytes": 4710 + }, + { + "name": "哈基哈基", + "src": "哈基哈基.mp3", + "path": "dir09/clip07.opus", + "samples": 42080, + "duration": 2.63, + "compressed_bytes": 5402 + }, + { + "name": "哈基歌", + "src": "哈基歌.mp3", + "path": "dir09/clip08.opus", + "samples": 337600, + "duration": 21.1, + "compressed_bytes": 33318 + }, + { + "name": "哈基米", + "src": "哈基米.mp3", + "path": "dir09/clip09.opus", + "samples": 35200, + "duration": 2.2, + "compressed_bytes": 4501 + }, + { + "name": "哈基米哟", + "src": "哈基米哟.mp3", + "path": "dir09/clip10.opus", + "samples": 19520, + "duration": 1.22, + "compressed_bytes": 2564 + }, + { + "name": "哦耶哦耶", + "src": "哦耶哦耶.mp3", + "path": "dir09/clip13.opus", + "samples": 41440, + "duration": 2.59, + "compressed_bytes": 5300 + }, + { + "name": "噢耶", + "src": "噢耶.mp3", + "path": "dir09/clip15.opus", + "samples": 17280, + "duration": 1.08, + "compressed_bytes": 2117 + }, + { + "name": "大狗一段带一段", + "src": "大狗一段带一段.mp3", + "path": "dir09/clip18.opus", + "samples": 40320, + "duration": 2.52, + "compressed_bytes": 5063 + }, + { + "name": "我很快就", + "src": "我很快就.mp3", + "path": "dir09/clip22.opus", + "samples": 21920, + "duration": 1.37, + "compressed_bytes": 2740 + }, + { + "name": "曼波曼波", + "src": "曼波曼波.mp3", + "path": "dir09/clip23.opus", + "samples": 39200, + "duration": 2.45, + "compressed_bytes": 5088 + }, + { + "name": "曼波越大越难ä¿�", + "src": "曼波越大越难ä¿�.mp3", + "path": "dir09/clip24.opus", + "samples": 38560, + "duration": 2.41, + "compressed_bytes": 4340 + }, + { + "name": "欧玛å�½å“©å�®å’šé¸¡", + "src": "欧玛å�½å“©å�®å’šé¸¡.mp3", + "path": "dir09/clip26.opus", + "samples": 38560, + "duration": 2.41, + "compressed_bytes": 4885 + }, + { + "name": "漫波", + "src": "漫波.mp3", + "path": "dir09/clip28.opus", + "samples": 12160, + "duration": 0.76, + "compressed_bytes": 1401 + }, + { + "name": "漫波歌", + "src": "漫波歌.mp3", + "path": "dir09/clip29.opus", + "samples": 267840, + "duration": 16.74, + "compressed_bytes": 26583 + }, + { + "name": "神里绫å�Ž", + "src": "神里绫å�Ž.mp3", + "path": "dir09/clip30.opus", + "samples": 33920, + "duration": 2.12, + "compressed_bytes": 4365 + }, + { + "name": "离开", + "src": "离开.mp3", + "path": "dir09/clip31.opus", + "samples": 154400, + "duration": 9.65, + "compressed_bytes": 15066 + }, + { + "name": "ç§�人笑声", + "src": "ç§�人笑声.mp3", + "path": "dir09/clip32.opus", + "samples": 25280, + "duration": 1.58, + "compressed_bytes": 3237 + }, + { + "name": "纯享版", + "src": "纯享版.mp3", + "path": "dir09/clip33.opus", + "samples": 197600, + "duration": 12.35, + "compressed_bytes": 19144 + }, + { + "name": "读完ä¾�èµ–", + "src": "读完ä¾�èµ–.mp3", + "path": "dir09/clip34.opus", + "samples": 75520, + "duration": 4.72, + "compressed_bytes": 7567 + }, + { + "name": "阿米诺斯", + "src": "阿米诺斯.mp3", + "path": "dir09/clip35.opus", + "samples": 21280, + "duration": 1.33, + "compressed_bytes": 2697 + }, + { + "name": "阿西哈难绿哈亚库", + "src": "阿西哈难绿哈亚库.mp3", + "path": "dir09/clip36.opus", + "samples": 40320, + "duration": 2.52, + "compressed_bytes": 5051 + }, + { + "name": "è“�莲哈", + "src": "è“�莲哈.mp3", + "path": "dir09/clip40.opus", + "samples": 176320, + "duration": 11.02, + "compressed_bytes": 50052 + } + ] + }, + { + "dir": "奶龙", + "dir_id": 10, + "dir_ascii": "dir10", + "files": [ + { + "name": "么么么么哒", + "src": "么么么么哒.mp3", + "path": "dir10/clip00.opus", + "samples": 39200, + "duration": 2.45, + "compressed_bytes": 4149 + }, + { + "name": "今天å�ˆæ˜¯æ”¶èŽ·æ»¡æ»¡çš„ä¸€å¤©", + "src": "今天å�ˆæ˜¯æ”¶èŽ·æ»¡æ»¡çš„ä¸€å¤©.mp3", + "path": "dir10/clip01.opus", + "samples": 48320, + "duration": 3.02, + "compressed_bytes": 6005 + }, + { + "name": "你会å�—", + "src": "你会å�—.mp3", + "path": "dir10/clip02.opus", + "samples": 13280, + "duration": 0.83, + "compressed_bytes": 1627 + }, + { + "name": "你在干嘛呢", + "src": "你在干嘛呢.mp3", + "path": "dir10/clip03.opus", + "samples": 21920, + "duration": 1.37, + "compressed_bytes": 2763 + }, + { + "name": "你怎么能这个样å­�_1", + "src": "你怎么能这个样å­�_1.mp3", + "path": "dir10/clip04.opus", + "samples": 31680, + "duration": 1.98, + "compressed_bytes": 4068 + }, + { + "name": "ä½ æ‰�是奶龙", + "src": "ä½ æ‰�是奶龙.mp3", + "path": "dir10/clip05.opus", + "samples": 28800, + "duration": 1.8, + "compressed_bytes": 3589 + }, + { + "name": "你是奶龙", + "src": "你是奶龙.mp3", + "path": "dir10/clip06.opus", + "samples": 17280, + "duration": 1.08, + "compressed_bytes": 2218 + }, + { + "name": "你竟然都会", + "src": "你竟然都会.mp3", + "path": "dir10/clip07.opus", + "samples": 24160, + "duration": 1.51, + "compressed_bytes": 3219 + }, + { + "name": "你过æ�¥å‘€", + "src": "你过æ�¥å‘€.mp3", + "path": "dir10/clip08.opus", + "samples": 27040, + "duration": 1.69, + "compressed_bytes": 3566 + }, + { + "name": "关你å±�事呀", + "src": "关你å±�事呀.mp3", + "path": "dir10/clip09.opus", + "samples": 24160, + "duration": 1.51, + "compressed_bytes": 3036 + }, + { + "name": "å�¯æ�¶", + "src": "å�¯æ�¶.mp3", + "path": "dir10/clip10.opus", + "samples": 12160, + "duration": 0.76, + "compressed_bytes": 1513 + }, + { + "name": "å‘•å��", + "src": "å‘•å��.mp3", + "path": "dir10/clip11.opus", + "samples": 21920, + "duration": 1.37, + "compressed_bytes": 2681 + }, + { + "name": "å’•å’•", + "src": "å’•å’•.mp3", + "path": "dir10/clip12.opus", + "samples": 23040, + "duration": 1.44, + "compressed_bytes": 2673 + }, + { + "name": "哎", + "src": "哎.mp3", + "path": "dir10/clip13.opus", + "samples": 13280, + "duration": 0.83, + "compressed_bytes": 1477 + }, + { + "name": "哼哪有那么丑,人家明明是å°�å�¯çˆ±", + "src": "哼哪有那么丑,人家明明是å°�å�¯çˆ±.mp3", + "path": "dir10/clip14.opus", + "samples": 77120, + "duration": 4.82, + "compressed_bytes": 7315 + }, + { + "name": "哼欺龙太甚", + "src": "哼欺龙太甚.mp3", + "path": "dir10/clip15.opus", + "samples": 38560, + "duration": 2.41, + "compressed_bytes": 4448 + }, + { + "name": "å™—å™—å™—", + "src": "å™—å™—å™—.mp3", + "path": "dir10/clip16.opus", + "samples": 27040, + "duration": 1.69, + "compressed_bytes": 3437 + }, + { + "name": "大家å�«æˆ‘奶龙身体会å�˜å½©è™¹", + "src": "大家å�«æˆ‘奶龙身体会å�˜å½©è™¹.mp3", + "path": "dir10/clip17.opus", + "samples": 46080, + "duration": 2.88, + "compressed_bytes": 5797 + }, + { + "name": "奶奶", + "src": "奶奶.mp3", + "path": "dir10/clip18.opus", + "samples": 35680, + "duration": 2.23, + "compressed_bytes": 4720 + }, + { + "name": "奶龙咆哮", + "src": "奶龙咆哮.mp3", + "path": "dir10/clip19.opus", + "samples": 50720, + "duration": 3.17, + "compressed_bytes": 6546 + }, + { + "name": "奶龙奶龙_1", + "src": "奶龙奶龙_1.mp3", + "path": "dir10/clip20.opus", + "samples": 21920, + "duration": 1.37, + "compressed_bytes": 2843 + }, + { + "name": "奶龙奶龙紫啧", + "src": "奶龙奶龙紫啧.mp3", + "path": "dir10/clip21.opus", + "samples": 32800, + "duration": 2.05, + "compressed_bytes": 4088 + }, + { + "name": "娃哄", + "src": "娃哄.mp3", + "path": "dir10/clip22.opus", + "samples": 15520, + "duration": 0.97, + "compressed_bytes": 1871 + }, + { + "name": "带给大家欢ä¹�多", + "src": "带给大家欢ä¹�多.mp3", + "path": "dir10/clip23.opus", + "samples": 42080, + "duration": 2.63, + "compressed_bytes": 5366 + }, + { + "name": "æ�¶é¾™å’†å“®", + "src": "æ�¶é¾™å’†å“®.mp3", + "path": "dir10/clip24.opus", + "samples": 72640, + "duration": 4.54, + "compressed_bytes": 7108 + }, + { + "name": "我会喷ç�«", + "src": "我会喷ç�«.mp3", + "path": "dir10/clip25.opus", + "samples": 16160, + "duration": 1.01, + "compressed_bytes": 2052 + }, + { + "name": "我å�ˆä¸�å‚»", + "src": "我å�ˆä¸�å‚».mp3", + "path": "dir10/clip26.opus", + "samples": 23040, + "duration": 1.44, + "compressed_bytes": 2853 + }, + { + "name": "我å�ªå�ƒä¸€ç‚¹ç‚¹", + "src": "我å�ªå�ƒä¸€ç‚¹ç‚¹.mp3", + "path": "dir10/clip27.opus", + "samples": 37440, + "duration": 2.34, + "compressed_bytes": 4414 + }, + { + "name": "我æ‰�是奶龙", + "src": "我æ‰�是奶龙.mp3", + "path": "dir10/clip28.opus", + "samples": 24160, + "duration": 1.51, + "compressed_bytes": 3182 + }, + { + "name": "我是农æ�‘å°�è�Œé¾™", + "src": "我是农æ�‘å°�è�Œé¾™.mp3", + "path": "dir10/clip29.opus", + "samples": 41440, + "duration": 2.59, + "compressed_bytes": 5417 + }, + { + "name": "我是奶龙", + "src": "我是奶龙.mp3", + "path": "dir10/clip30.opus", + "samples": 21280, + "duration": 1.33, + "compressed_bytes": 2817 + }, + { + "name": "我本æ�¥å°±ä¸�是人呀", + "src": "我本æ�¥å°±ä¸�是人呀.mp3", + "path": "dir10/clip31.opus", + "samples": 28800, + "duration": 1.8, + "compressed_bytes": 3700 + }, + { + "name": "我没有脖å­�没有腰我就是个ç�ƒç�ƒ", + "src": "我没有脖å­�没有腰我就是个ç�ƒç�ƒ.mp3", + "path": "dir10/clip32.opus", + "samples": 92160, + "duration": 5.76, + "compressed_bytes": 8884 + }, + { + "name": "我的大肚肚真的很酷酷", + "src": "我的大肚肚真的很酷酷.mp3", + "path": "dir10/clip33.opus", + "samples": 54080, + "duration": 3.38, + "compressed_bytes": 6806 + }, + { + "name": "我肚å­�好饿哦什么时候开饭å‘�", + "src": "我肚å­�好饿哦什么时候开饭å‘�.mp3", + "path": "dir10/clip34.opus", + "samples": 61600, + "duration": 3.85, + "compressed_bytes": 5944 + }, + { + "name": "我还会å�˜èº«å‘¢", + "src": "我还会å�˜èº«å‘¢.mp3", + "path": "dir10/clip35.opus", + "samples": 31040, + "duration": 1.94, + "compressed_bytes": 4039 + }, + { + "name": "真拿你没办法", + "src": "真拿你没办法.mp3", + "path": "dir10/clip36.opus", + "samples": 28800, + "duration": 1.8, + "compressed_bytes": 3300 + }, + { + "name": "ç´«å•§_1", + "src": "ç´«å•§_1.mp3", + "path": "dir10/clip37.opus", + "samples": 12640, + "duration": 0.79, + "compressed_bytes": 1471 + }, + { + "name": "紫啧我是奶龙", + "src": "紫啧我是奶龙.mp3", + "path": "dir10/clip38.opus", + "samples": 34560, + "duration": 2.16, + "compressed_bytes": 4460 + }, + { + "name": "自己å�“自己", + "src": "自己å�“自己.mp3", + "path": "dir10/clip39.opus", + "samples": 25280, + "duration": 1.58, + "compressed_bytes": 3112 + }, + { + "name": "这是什么æ��", + "src": "这是什么æ��.mp3", + "path": "dir10/clip40.opus", + "samples": 27680, + "duration": 1.73, + "compressed_bytes": 2945 + }, + { + "name": "é¹…", + "src": "é¹….mp3", + "path": "dir10/clip41.opus", + "samples": 8000, + "duration": 0.5, + "compressed_bytes": 885 + } + ] + }, + { + "dir": "å®�å®�肚肚打雷", + "dir_id": 11, + "dir_ascii": "dir11", + "files": [ + { + "name": "rap", + "src": "rap.mp3", + "path": "dir11/clip00.opus", + "samples": 433760, + "duration": 27.11, + "compressed_bytes": 43229 + }, + { + "name": "你就是野猪亨利", + "src": "你就是野猪亨利.mp3", + "path": "dir11/clip01.opus", + "samples": 31040, + "duration": 1.94, + "compressed_bytes": 3897 + }, + { + "name": "出示å�¥åº·ç �", + "src": "出示å�¥åº·ç �.mp3", + "path": "dir11/clip02.opus", + "samples": 27040, + "duration": 1.69, + "compressed_bytes": 3540 + }, + { + "name": "å�®å’šé¸¡", + "src": "å�®å’šé¸¡.mp3", + "path": "dir11/clip03.opus", + "samples": 17280, + "duration": 1.08, + "compressed_bytes": 2176 + }, + { + "name": "å�®å’šé¸¡Music", + "src": "å�®å’šé¸¡Music.mp3", + "path": "dir11/clip04.opus", + "samples": 149120, + "duration": 9.32, + "compressed_bytes": 14663 + }, + { + "name": "大狗å�«", + "src": "大狗å�«.mp3", + "path": "dir11/clip05.opus", + "samples": 16160, + "duration": 1.01, + "compressed_bytes": 1986 + }, + { + "name": "å®�å®�肚肚打雷了", + "src": "å®�å®�肚肚打雷了.mp3", + "path": "dir11/clip07.opus", + "samples": 31040, + "duration": 1.94, + "compressed_bytes": 3925 + }, + { + "name": "带身份è¯�", + "src": "带身份è¯�.mp3", + "path": "dir11/clip09.opus", + "samples": 16640, + "duration": 1.04, + "compressed_bytes": 2222 + }, + { + "name": "带雨伞", + "src": "带雨伞.mp3", + "path": "dir11/clip10.opus", + "samples": 16160, + "duration": 1.01, + "compressed_bytes": 2003 + }, + { + "name": "带鼠鸡", + "src": "带鼠鸡.mp3", + "path": "dir11/clip11.opus", + "samples": 16160, + "duration": 1.01, + "compressed_bytes": 2050 + }, + { + "name": "手机å‰�冒烟å°�姑娘", + "src": "手机å‰�冒烟å°�姑娘.mp3", + "path": "dir11/clip12.opus", + "samples": 31680, + "duration": 1.98, + "compressed_bytes": 3994 + }, + { + "name": "手机和平精英", + "src": "手机和平精英.mp3", + "path": "dir11/clip13.opus", + "samples": 31040, + "duration": 1.94, + "compressed_bytes": 3908 + }, + { + "name": "打打å®�å®�雷雷啦", + "src": "打打å®�å®�雷雷啦.mp3", + "path": "dir11/clip14.opus", + "samples": 29920, + "duration": 1.87, + "compressed_bytes": 3813 + }, + { + "name": "标题党狂就是狂", + "src": "标题党狂就是狂.mp3", + "path": "dir11/clip16.opus", + "samples": 31040, + "duration": 1.94, + "compressed_bytes": 3949 + }, + { + "name": "楼上的下æ�¥æ�žæ ¸é…¸", + "src": "楼上的下æ�¥æ�žæ ¸é…¸.mp3", + "path": "dir11/clip17.opus", + "samples": 30560, + "duration": 1.91, + "compressed_bytes": 3858 + }, + { + "name": "没有人å�«ä½ è€�弟", + "src": "没有人å�«ä½ è€�弟.mp3", + "path": "dir11/clip18.opus", + "samples": 31680, + "duration": 1.98, + "compressed_bytes": 3966 + }, + { + "name": "没有å�Œå°�眼ç�›", + "src": "没有å�Œå°�眼ç�›.mp3", + "path": "dir11/clip19.opus", + "samples": 32320, + "duration": 2.02, + "compressed_bytes": 4060 + }, + { + "name": "游æˆ�越打越年轻", + "src": "游æˆ�越打越年轻.mp3", + "path": "dir11/clip20.opus", + "samples": 33440, + "duration": 2.09, + "compressed_bytes": 4253 + }, + { + "name": "给我点个外å�–å�ƒ", + "src": "给我点个外å�–å�ƒ.mp3", + "path": "dir11/clip21.opus", + "samples": 38560, + "duration": 2.41, + "compressed_bytes": 4959 + }, + { + "name": "能顶你一辈å­�id", + "src": "能顶你一辈å­�id.mp3", + "path": "dir11/clip24.opus", + "samples": 31680, + "duration": 1.98, + "compressed_bytes": 4063 + }, + { + "name": "连起麦åƒ�æ�¡æ�¶ç‹¼", + "src": "连起麦åƒ�æ�¡æ�¶ç‹¼.mp3", + "path": "dir11/clip25.opus", + "samples": 31680, + "duration": 1.98, + "compressed_bytes": 4003 + }, + { + "name": "都å�«ä½ å°�学生", + "src": "都å�«ä½ å°�学生.mp3", + "path": "dir11/clip26.opus", + "samples": 31040, + "duration": 1.94, + "compressed_bytes": 3892 + }, + { + "name": "问你有什么实力", + "src": "问你有什么实力.mp3", + "path": "dir11/clip27.opus", + "samples": 31040, + "duration": 1.94, + "compressed_bytes": 3935 + }, + { + "name": "雷到心情烦", + "src": "雷到心情烦.mp3", + "path": "dir11/clip28.opus", + "samples": 31040, + "duration": 1.94, + "compressed_bytes": 3911 + }, + { + "name": "é›·é›·å®�å®�打肚肚", + "src": "é›·é›·å®�å®�打肚肚.mp3", + "path": "dir11/clip29.opus", + "samples": 30560, + "duration": 1.91, + "compressed_bytes": 3886 + } + ] + }, + { + "dir": "å°�团团", + "dir_id": 12, + "dir_ascii": "dir12", + "files": [ + { + "name": "么么哒~", + "src": "么么哒~.mp3", + "path": "dir12/clip00.opus", + "samples": 75520, + "duration": 4.72, + "compressed_bytes": 7415 + }, + { + "name": "今天的ä¸�开心就到此为止å�§ï¼Œæ˜Žå¤©ä¾�旧光芒万丈噢å®�è´�", + "src": "今天的ä¸�开心就到此为止å�§ï¼Œæ˜Žå¤©ä¾�旧光芒万丈噢å®�è´�.mp3", + "path": "dir12/clip01.opus", + "samples": 97280, + "duration": 6.08, + "compressed_bytes": 9550 + }, + { + "name": "从今天开始就让我带你å�ƒå–�玩ä¹�到处游玩å�§", + "src": "从今天开始就让我带你å�ƒå–�玩ä¹�到处游玩å�§.mp3", + "path": "dir12/clip02.opus", + "samples": 77120, + "duration": 4.82, + "compressed_bytes": 7754 + }, + { + "name": "他跟你太客气了,够了够啦", + "src": "他跟你太客气了,够了够啦.mp3", + "path": "dir12/clip03.opus", + "samples": 42080, + "duration": 2.63, + "compressed_bytes": 5354 + }, + { + "name": "何,这是嘛呀?", + "src": "何,这是嘛呀?.mp3", + "path": "dir12/clip04.opus", + "samples": 25920, + "duration": 1.62, + "compressed_bytes": 3306 + }, + { + "name": "你也太厉害了å�§ï¼Œå•Š", + "src": "你也太厉害了å�§ï¼Œå•Š.mp3", + "path": "dir12/clip05.opus", + "samples": 56480, + "duration": 3.53, + "compressed_bytes": 5512 + }, + { + "name": "你有car我就上你的car,你没car我们就一起去找car行å�—", + "src": "你有car我就上你的car,你没car我们就一起去找car行å�—.mp3", + "path": "dir12/clip06.opus", + "samples": 66240, + "duration": 4.14, + "compressed_bytes": 6469 + }, + { + "name": "兄弟们撤退咯,进圈啦", + "src": "兄弟们撤退咯,进圈啦.mp3", + "path": "dir12/clip07.opus", + "samples": 48960, + "duration": 3.06, + "compressed_bytes": 6228 + }, + { + "name": "别怂啊,一起上ä¸�怕他 我ä¿�护你", + "src": "别怂啊,一起上ä¸�怕他 我ä¿�护你.mp3", + "path": "dir12/clip08.opus", + "samples": 81760, + "duration": 5.11, + "compressed_bytes": 7988 + }, + { + "name": "å‰�é�¢å¾ˆå�±é™©ï¼Œä½ å…ˆä¸Šå�§ 我会在å�Žé�¢ä¿�护你", + "src": "å‰�é�¢å¾ˆå�±é™©ï¼Œä½ å…ˆä¸Šå�§ 我会在å�Žé�¢ä¿�护你.mp3", + "path": "dir12/clip09.opus", + "samples": 52480, + "duration": 3.28, + "compressed_bytes": 6751 + }, + { + "name": "å�¤å¾·çŒ«å®�", + "src": "å�¤å¾·çŒ«å®�.mp3", + "path": "dir12/clip10.opus", + "samples": 29440, + "duration": 1.84, + "compressed_bytes": 3829 + }, + { + "name": "哈喽", + "src": "哈喽.mp3", + "path": "dir12/clip11.opus", + "samples": 23040, + "duration": 1.44, + "compressed_bytes": 2893 + }, + { + "name": "哈喽,我是一æ�¡å°�团团", + "src": "哈喽,我是一æ�¡å°�团团.mp3", + "path": "dir12/clip12.opus", + "samples": 37440, + "duration": 2.34, + "compressed_bytes": 4807 + }, + { + "name": "哥哥,你å�¯ä»¥å¸®æˆ‘找辆车å�—", + "src": "哥哥,你å�¯ä»¥å¸®æˆ‘找辆车å�—.mp3", + "path": "dir12/clip13.opus", + "samples": 54720, + "duration": 3.42, + "compressed_bytes": 6933 + }, + { + "name": "哼", + "src": "哼.mp3", + "path": "dir12/clip14.opus", + "samples": 10880, + "duration": 0.68, + "compressed_bytes": 1334 + }, + { + "name": "啦啦啦啦~耶耶耶", + "src": "啦啦啦啦~耶耶耶.mp3", + "path": "dir12/clip15.opus", + "samples": 91520, + "duration": 5.72, + "compressed_bytes": 9066 + }, + { + "name": "å—¯~", + "src": "å—¯~.mp3", + "path": "dir12/clip16.opus", + "samples": 18400, + "duration": 1.15, + "compressed_bytes": 2200 + }, + { + "name": "å—¯~这很棒", + "src": "å—¯~这很棒.mp3", + "path": "dir12/clip17.opus", + "samples": 47840, + "duration": 2.99, + "compressed_bytes": 6005 + }, + { + "name": "嘿~喂嘟嘟嘟", + "src": "嘿~喂嘟嘟嘟.mp3", + "path": "dir12/clip18.opus", + "samples": 40320, + "duration": 2.52, + "compressed_bytes": 5010 + }, + { + "name": "嘿嘿我也有车,快上我的车", + "src": "嘿嘿我也有车,快上我的车.mp3", + "path": "dir12/clip19.opus", + "samples": 51840, + "duration": 3.24, + "compressed_bytes": 6584 + }, + { + "name": "奈斯奈斯", + "src": "奈斯奈斯.mp3", + "path": "dir12/clip22.opus", + "samples": 27680, + "duration": 1.73, + "compressed_bytes": 3453 + }, + { + "name": "好åƒ�有人,å°�心一点(å°�声说)", + "src": "好åƒ�有人,å°�心一点(å°�声说).mp3", + "path": "dir12/clip23.opus", + "samples": 88640, + "duration": 5.54, + "compressed_bytes": 8735 + }, + { + "name": "开麦开麦玩游æˆ�就得开麦", + "src": "开麦开麦玩游æˆ�就得开麦.mp3", + "path": "dir12/clip24.opus", + "samples": 59360, + "duration": 3.71, + "compressed_bytes": 5778 + }, + { + "name": "å¿«æ�¥æ‰¾æˆ‘我们集å�ˆä¸€ä¸‹å�§", + "src": "å¿«æ�¥æ‰¾æˆ‘我们集å�ˆä¸€ä¸‹å�§.mp3", + "path": "dir12/clip26.opus", + "samples": 73120, + "duration": 4.57, + "compressed_bytes": 7173 + }, + { + "name": "我å�•æ–¹é�¢å®£å¸ƒï¼Œä»¥å�Žä½ å°±æ˜¯æˆ‘的亲弟弟", + "src": "我å�•æ–¹é�¢å®£å¸ƒï¼Œä»¥å�Žä½ å°±æ˜¯æˆ‘的亲弟弟.mp3", + "path": "dir12/clip27.opus", + "samples": 77760, + "duration": 4.86, + "compressed_bytes": 7635 + }, + { + "name": "我太难了,快救救我", + "src": "我太难了,快救救我.mp3", + "path": "dir12/clip28.opus", + "samples": 44960, + "duration": 2.81, + "compressed_bytes": 5749 + }, + { + "name": "我太难了,我ä¸�想å�ƒé¸¡å±�è‚¡", + "src": "我太难了,我ä¸�想å�ƒé¸¡å±�è‚¡.mp3", + "path": "dir12/clip29.opus", + "samples": 74880, + "duration": 4.68, + "compressed_bytes": 7341 + }, + { + "name": "我æ‰�ä¸�跟他计较呢,哼ï¼�", + "src": "我æ‰�ä¸�跟他计较呢,哼ï¼�.mp3", + "path": "dir12/clip30.opus", + "samples": 35200, + "duration": 2.2, + "compressed_bytes": 4342 + }, + { + "name": "我的妈呀,这么多人啊", + "src": "我的妈呀,这么多人啊.mp3", + "path": "dir12/clip31.opus", + "samples": 31680, + "duration": 1.98, + "compressed_bytes": 3997 + }, + { + "name": "我觉得我å�¯ä»¥æ‰“过他,相信我好å�—", + "src": "我觉得我å�¯ä»¥æ‰“过他,相信我好å�—.mp3", + "path": "dir12/clip32.opus", + "samples": 42560, + "duration": 2.66, + "compressed_bytes": 5472 + }, + { + "name": "我这里有好东西噢,你们è¦�å�—", + "src": "我这里有好东西噢,你们è¦�å�—.mp3", + "path": "dir12/clip33.opus", + "samples": 54080, + "duration": 3.38, + "compressed_bytes": 7002 + }, + { + "name": "拜拜~", + "src": "拜拜~.mp3", + "path": "dir12/clip34.opus", + "samples": 60480, + "duration": 3.78, + "compressed_bytes": 5912 + }, + { + "name": "爱了爱了~啾咪", + "src": "爱了爱了~啾咪.mp3", + "path": "dir12/clip35.opus", + "samples": 41440, + "duration": 2.59, + "compressed_bytes": 5302 + }, + { + "name": "艾瑞巴蒂ï¼�嗨起æ�¥å�§ï¼�", + "src": "艾瑞巴蒂ï¼�嗨起æ�¥å�§ï¼�.mp3", + "path": "dir12/clip36.opus", + "samples": 27680, + "duration": 1.73, + "compressed_bytes": 3552 + }, + { + "name": "这世界太美好了,我爱这个世界", + "src": "这世界太美好了,我爱这个世界.mp3", + "path": "dir12/clip37.opus", + "samples": 64480, + "duration": 4.03, + "compressed_bytes": 6304 + }, + { + "name": "这么美的美女你都下得去手啊,哼ï¼�", + "src": "这么美的美女你都下得去手啊,哼ï¼�.mp3", + "path": "dir12/clip38.opus", + "samples": 49600, + "duration": 3.1, + "compressed_bytes": 6268 + }, + { + "name": "这就没æ„�æ€�了,这就没æ„�æ€�了", + "src": "这就没æ„�æ€�了,这就没æ„�æ€�了.mp3", + "path": "dir12/clip39.opus", + "samples": 61600, + "duration": 3.85, + "compressed_bytes": 5951 + }, + { + "name": "è¿™è°�å�—得了啊", + "src": "è¿™è°�å�—得了啊.mp3", + "path": "dir12/clip40.opus", + "samples": 40320, + "duration": 2.52, + "compressed_bytes": 5118 + }, + { + "name": "错了错了,对ä¸�èµ·", + "src": "错了错了,对ä¸�èµ·.mp3", + "path": "dir12/clip41.opus", + "samples": 59840, + "duration": 3.74, + "compressed_bytes": 5847 + } + ] + }, + { + "dir": "å°�明剑魔", + "dir_id": 13, + "dir_ascii": "dir13", + "files": [ + { + "name": "0æ� 3", + "src": "0æ� 3.mp3", + "path": "dir13/clip00.opus", + "samples": 10880, + "duration": 0.68, + "compressed_bytes": 1318 + }, + { + "name": "mm我è¦�这个", + "src": "mm我è¦�这个.mp3", + "path": "dir13/clip01.opus", + "samples": 23680, + "duration": 1.48, + "compressed_bytes": 3040 + }, + { + "name": "mm看有花", + "src": "mm看有花.mp3", + "path": "dir13/clip02.opus", + "samples": 24160, + "duration": 1.51, + "compressed_bytes": 3245 + }, + { + "name": "MVP", + "src": "MVP.mp3", + "path": "dir13/clip04.opus", + "samples": 21280, + "duration": 1.33, + "compressed_bytes": 2619 + }, + { + "name": "七连败找问题", + "src": "七连败找问题.mp3", + "path": "dir13/clip05.opus", + "samples": 43200, + "duration": 2.7, + "compressed_bytes": 5527 + }, + { + "name": "三点零三点零", + "src": "三点零三点零.mp3", + "path": "dir13/clip06.opus", + "samples": 76640, + "duration": 4.79, + "compressed_bytes": 7424 + }, + { + "name": "为什么你会上ä¸�去", + "src": "为什么你会上ä¸�去.mp3", + "path": "dir13/clip07.opus", + "samples": 21920, + "duration": 1.37, + "compressed_bytes": 2771 + }, + { + "name": "为什么别人欺负你", + "src": "为什么别人欺负你.mp3", + "path": "dir13/clip08.opus", + "samples": 25280, + "duration": 1.58, + "compressed_bytes": 3234 + }, + { + "name": "为什么评分比我高", + "src": "为什么评分比我高.mp3", + "path": "dir13/clip09.opus", + "samples": 23680, + "duration": 1.48, + "compressed_bytes": 2976 + }, + { + "name": "ä¹°ä¸�起房也找问题", + "src": "ä¹°ä¸�起房也找问题.mp3", + "path": "dir13/clip10.opus", + "samples": 42080, + "duration": 2.63, + "compressed_bytes": 5449 + }, + { + "name": "什么都找自己问题", + "src": "什么都找自己问题.mp3", + "path": "dir13/clip11.opus", + "samples": 110080, + "duration": 6.88, + "compressed_bytes": 10819 + }, + { + "name": "作业写完了没有", + "src": "作业写完了没有.mp3", + "path": "dir13/clip12.opus", + "samples": 17280, + "duration": 1.08, + "compressed_bytes": 2175 + }, + { + "name": "ä½ må�šé¥­è¿™ä¸ªæœˆè¯„分3.0", + "src": "ä½ må�šé¥­è¿™ä¸ªæœˆè¯„分3.0.mp3", + "path": "dir13/clip13.opus", + "samples": 38080, + "duration": 2.38, + "compressed_bytes": 4856 + }, + { + "name": "ä½ m是ä¸�是躺赢", + "src": "ä½ m是ä¸�是躺赢ðŸ�¶.mp3", + "path": "dir13/clip14.opus", + "samples": 42560, + "duration": 2.66, + "compressed_bytes": 5425 + }, + { + "name": "内个内个嘿命贵", + "src": "内个内个嘿命贵.mp3", + "path": "dir13/clip15.opus", + "samples": 28160, + "duration": 1.76, + "compressed_bytes": 3623 + }, + { + "name": "去洗点阳光é�’æ��", + "src": "去洗点阳光é�’æ��.mp3", + "path": "dir13/clip16.opus", + "samples": 25280, + "duration": 1.58, + "compressed_bytes": 3207 + }, + { + "name": "呜呜呜", + "src": "呜呜呜.mp3", + "path": "dir13/clip17.opus", + "samples": 22400, + "duration": 1.4, + "compressed_bytes": 2721 + }, + { + "name": "哎呦", + "src": "哎呦.mp3", + "path": "dir13/clip18.opus", + "samples": 21280, + "duration": 1.33, + "compressed_bytes": 2593 + }, + { + "name": "啊一看评分", + "src": "啊一看评分.mp3", + "path": "dir13/clip19.opus", + "samples": 25280, + "duration": 1.58, + "compressed_bytes": 3125 + }, + { + "name": "啊能这样算å�—", + "src": "啊能这样算å�—.mp3", + "path": "dir13/clip20.opus", + "samples": 28160, + "duration": 1.76, + "compressed_bytes": 3490 + }, + { + "name": "回答我", + "src": "回答我.mp3", + "path": "dir13/clip21.opus", + "samples": 15520, + "duration": 0.97, + "compressed_bytes": 1889 + }, + { + "name": "因为人家是通讯录", + "src": "因为人家是通讯录.mp3", + "path": "dir13/clip22.opus", + "samples": 22400, + "duration": 1.4, + "compressed_bytes": 2824 + }, + { + "name": "因为它比我嘿", + "src": "因为它比我嘿.mp3", + "path": "dir13/clip23.opus", + "samples": 22400, + "duration": 1.4, + "compressed_bytes": 2866 + }, + { + "name": "奎桑æ��", + "src": "奎桑æ��.mp3", + "path": "dir13/clip24.opus", + "samples": 13760, + "duration": 0.86, + "compressed_bytes": 1713 + }, + { + "name": "对线队å�‹ç‚¸äº†", + "src": "对线队å�‹ç‚¸äº†.mp3", + "path": "dir13/clip25.opus", + "samples": 42080, + "duration": 2.63, + "compressed_bytes": 5412 + }, + { + "name": "开一局", + "src": "开一局.mp3", + "path": "dir13/clip26.opus", + "samples": 20160, + "duration": 1.26, + "compressed_bytes": 2505 + }, + { + "name": "我q是顺å�‘çš„å�—", + "src": "我q是顺å�‘çš„å�—.mp3", + "path": "dir13/clip27.opus", + "samples": 21280, + "duration": 1.33, + "compressed_bytes": 2669 + }, + { + "name": "我è€�爸", + "src": "我è€�爸.mp3", + "path": "dir13/clip28.opus", + "samples": 21920, + "duration": 1.37, + "compressed_bytes": 2671 + }, + { + "name": "我è€�爸得了", + "src": "我è€�爸得了.mp3", + "path": "dir13/clip29.opus", + "samples": 15040, + "duration": 0.94, + "compressed_bytes": 1871 + }, + { + "name": "所以评分比我高", + "src": "所以评分比我高.mp3", + "path": "dir13/clip30.opus", + "samples": 22400, + "duration": 1.4, + "compressed_bytes": 2857 + }, + { + "name": "找问题找问题", + "src": "找问题找问题.mp3", + "path": "dir13/clip31.opus", + "samples": 49600, + "duration": 3.1, + "compressed_bytes": 6361 + }, + { + "name": "看ç�€æˆ‘眼ç�›åŒ—é¼»", + "src": "看ç�€æˆ‘眼ç�›åŒ—é¼».mp3", + "path": "dir13/clip32.opus", + "samples": 24160, + "duration": 1.51, + "compressed_bytes": 3004 + }, + { + "name": "神ç»�病神ç»�ç—…", + "src": "神ç»�病神ç»�ç—….mp3", + "path": "dir13/clip33.opus", + "samples": 75520, + "duration": 4.72, + "compressed_bytes": 7499 + }, + { + "name": "翻盘局mvp", + "src": "翻盘局mvp.mp3", + "path": "dir13/clip34.opus", + "samples": 22400, + "duration": 1.4, + "compressed_bytes": 2897 + }, + { + "name": "表情å�°åœ¨é˜³å…‰é�’æ��", + "src": "表情å�°åœ¨é˜³å…‰é�’æ��.mp3", + "path": "dir13/clip35.opus", + "samples": 44320, + "duration": 2.77, + "compressed_bytes": 5725 + }, + { + "name": "设计师", + "src": "设计师.mp3", + "path": "dir13/clip36.opus", + "samples": 52960, + "duration": 3.31, + "compressed_bytes": 6738 + }, + { + "name": "评分低就ç§�æ—�歧视", + "src": "评分低就ç§�æ—�歧视.mp3", + "path": "dir13/clip37.opus", + "samples": 26560, + "duration": 1.66, + "compressed_bytes": 3449 + }, + { + "name": "评分è�Œè�Œ", + "src": "评分è�Œè�Œ.mp3", + "path": "dir13/clip38.opus", + "samples": 32800, + "duration": 2.05, + "compressed_bytes": 4068 + }, + { + "name": "说剑魔超模的", + "src": "说剑魔超模的ðŸ�¶.mp3", + "path": "dir13/clip39.opus", + "samples": 29440, + "duration": 1.84, + "compressed_bytes": 3762 + }, + { + "name": "躺赢", + "src": "躺赢ðŸ�¶.mp3", + "path": "dir13/clip40.opus", + "samples": 21920, + "duration": 1.37, + "compressed_bytes": 2735 + }, + { + "name": "这个月评分3.0", + "src": "这个月评分3.0.mp3", + "path": "dir13/clip42.opus", + "samples": 44320, + "duration": 2.77, + "compressed_bytes": 5816 + }, + { + "name": "问剑魔q会ä¸�会扣", + "src": "问剑魔q会ä¸�会扣.mp3", + "path": "dir13/clip43.opus", + "samples": 44320, + "duration": 2.77, + "compressed_bytes": 5672 + }, + { + "name": "lookmyeye", + "src": "lookmyeye.mp3", + "path": "dir13/clip44.opus", + "samples": 25920, + "duration": 1.62, + "compressed_bytes": 1417 + }, + { + "name": "tell me why", + "src": "tell me why.mp3", + "path": "dir13/clip45.opus", + "samples": 41440, + "duration": 2.59, + "compressed_bytes": 2371 + }, + { + "name": "啊能能", + "src": "啊能能.mp3", + "path": "dir13/clip46.opus", + "samples": 20480, + "duration": 1.28, + "compressed_bytes": 1326 + } + ] + }, + { + "dir": "库里", + "dir_id": 14, + "dir_ascii": "dir14", + "files": [ + { + "name": "Crossover很呦西", + "src": "Crossover很呦西.mp3", + "path": "dir14/clip00.opus", + "samples": 37440, + "duration": 2.34, + "compressed_bytes": 4804 + }, + { + "name": "what aå�‘å�¯", + "src": "what aå�‘å�¯.mp3", + "path": "dir14/clip01.opus", + "samples": 20160, + "duration": 1.26, + "compressed_bytes": 2626 + }, + { + "name": "一起å‘�å–Šè‹�天大地", + "src": "一起å‘�å–Šè‹�天大地.mp3", + "path": "dir14/clip02.opus", + "samples": 38080, + "duration": 2.38, + "compressed_bytes": 4946 + }, + { + "name": "一起æ�¥å¤§å£°å–ŠMVP", + "src": "一起æ�¥å¤§å£°å–ŠMVP.mp3", + "path": "dir14/clip04.opus", + "samples": 38560, + "duration": 2.41, + "compressed_bytes": 5043 + }, + { + "name": "三分三分手起刀è�½", + "src": "三分三分手起刀è�½.mp3", + "path": "dir14/clip05.opus", + "samples": 38560, + "duration": 2.41, + "compressed_bytes": 5055 + }, + { + "name": "三分ç�ƒæŠ•得你没脾气", + "src": "三分ç�ƒæŠ•得你没脾气.mp3", + "path": "dir14/clip06.opus", + "samples": 43200, + "duration": 2.7, + "compressed_bytes": 5617 + }, + { + "name": "ä¸�知é�“该如何是好", + "src": "ä¸�知é�“该如何是好.mp3", + "path": "dir14/clip07.opus", + "samples": 39200, + "duration": 2.45, + "compressed_bytes": 5140 + }, + { + "name": "你款拽酷炫的三分ç�ƒ", + "src": "你款拽酷炫的三分ç�ƒ.mp3", + "path": "dir14/clip08.opus", + "samples": 33920, + "duration": 2.12, + "compressed_bytes": 4402 + }, + { + "name": "你狂拽酷炫的ç�ƒæŠ€", + "src": "你狂拽酷炫的ç�ƒæŠ€.mp3", + "path": "dir14/clip09.opus", + "samples": 43200, + "duration": 2.7, + "compressed_bytes": 5565 + }, + { + "name": "关键时刻比分è�½å�Ž", + "src": "关键时刻比分è�½å�Ž.mp3", + "path": "dir14/clip10.opus", + "samples": 39680, + "duration": 2.48, + "compressed_bytes": 5153 + }, + { + "name": "å�ˆä¸€ä¸ªä¸‰åˆ†ç�ƒ", + "src": "å�ˆä¸€ä¸ªä¸‰åˆ†ç�ƒ.mp3", + "path": "dir14/clip11.opus", + "samples": 76000, + "duration": 4.75, + "compressed_bytes": 7469 + }, + { + "name": "啦啦啦啦", + "src": "啦啦啦啦.mp3", + "path": "dir14/clip12.opus", + "samples": 38080, + "duration": 2.38, + "compressed_bytes": 4743 + }, + { + "name": "干得对手很伤心", + "src": "干得对手很伤心.mp3", + "path": "dir14/clip16.opus", + "samples": 36320, + "duration": 2.27, + "compressed_bytes": 4641 + }, + { + "name": "库里库里库里", + "src": "库里库里库里.mp3", + "path": "dir14/clip17.opus", + "samples": 38080, + "duration": 2.38, + "compressed_bytes": 4978 + }, + { + "name": "我们永远都支æŒ�ä½ ", + "src": "我们永远都支æŒ�ä½ .mp3", + "path": "dir14/clip19.opus", + "samples": 37440, + "duration": 2.34, + "compressed_bytes": 4763 + }, + { + "name": "技术能日天的库里", + "src": "技术能日天的库里.mp3", + "path": "dir14/clip20.opus", + "samples": 40320, + "duration": 2.52, + "compressed_bytes": 5194 + }, + { + "name": "无视防守上演神迹", + "src": "无视防守上演神迹.mp3", + "path": "dir14/clip21.opus", + "samples": 40320, + "duration": 2.52, + "compressed_bytes": 5230 + }, + { + "name": "æ�¥æ�¥æ�¥çœ‹æˆ‘库里表演", + "src": "æ�¥æ�¥æ�¥çœ‹æˆ‘库里表演.mp3", + "path": "dir14/clip22.opus", + "samples": 40320, + "duration": 2.52, + "compressed_bytes": 5244 + }, + { + "name": "漂亮的å�‡åŠ¨ä½œå¾ˆå¸…æ°”", + "src": "漂亮的å�‡åŠ¨ä½œå¾ˆå¸…æ°”.mp3", + "path": "dir14/clip23.opus", + "samples": 38560, + "duration": 2.41, + "compressed_bytes": 4983 + }, + { + "name": "表达ç�ƒè¿·çš„一ä¸�敬æ„�", + "src": "表达ç�ƒè¿·çš„一ä¸�敬æ„�.mp3", + "path": "dir14/clip24.opus", + "samples": 38080, + "duration": 2.38, + "compressed_bytes": 4861 + }, + { + "name": "让对手蒙圈的三分ç�ƒ", + "src": "让对手蒙圈的三分ç�ƒ.mp3", + "path": "dir14/clip25.opus", + "samples": 42080, + "duration": 2.63, + "compressed_bytes": 5402 + }, + { + "name": "让我们拜膜的三分ç�ƒ", + "src": "让我们拜膜的三分ç�ƒ.mp3", + "path": "dir14/clip26.opus", + "samples": 39200, + "duration": 2.45, + "compressed_bytes": 5090 + }, + { + "name": "请以此歌å�‘å�¶åƒ�致敬", + "src": "请以此歌å�‘å�¶åƒ�致敬.mp3", + "path": "dir14/clip27.opus", + "samples": 39680, + "duration": 2.48, + "compressed_bytes": 5046 + }, + { + "name": "这就是我们的库里", + "src": "这就是我们的库里.mp3", + "path": "dir14/clip28.opus", + "samples": 39680, + "duration": 2.48, + "compressed_bytes": 5141 + } + ] + }, + { + "dir": "我è¦�验牌法国赌神", + "dir_id": 15, + "dir_ascii": "dir15", + "files": [ + { + "name": "ä¸�用看了", + "src": "ä¸�用看了.mp3", + "path": "dir15/clip00.opus", + "samples": 14400, + "duration": 0.9, + "compressed_bytes": 1803 + }, + { + "name": "你跟他赌那我干什么", + "src": "你跟他赌那我干什么.mp3", + "path": "dir15/clip01.opus", + "samples": 24800, + "duration": 1.55, + "compressed_bytes": 3085 + }, + { + "name": "å°�å„¿ç§‘", + "src": "å°�å„¿ç§‘.mp3", + "path": "dir15/clip02.opus", + "samples": 15040, + "duration": 0.94, + "compressed_bytes": 1816 + }, + { + "name": "å°�瘪三", + "src": "å°�瘪三.mp3", + "path": "dir15/clip03.opus", + "samples": 17280, + "duration": 1.08, + "compressed_bytes": 2101 + }, + { + "name": "开牌", + "src": "开牌.mp3", + "path": "dir15/clip04.opus", + "samples": 9760, + "duration": 0.61, + "compressed_bytes": 1171 + }, + { + "name": "我è¦�验牌", + "src": "我è¦�验牌.mp3", + "path": "dir15/clip07.opus", + "samples": 19040, + "duration": 1.19, + "compressed_bytes": 2327 + }, + { + "name": "牌", + "src": "牌.mp3", + "path": "dir15/clip08.opus", + "samples": 8640, + "duration": 0.54, + "compressed_bytes": 933 + }, + { + "name": "牌没有问题", + "src": "牌没有问题.mp3", + "path": "dir15/clip09.opus", + "samples": 16160, + "duration": 1.01, + "compressed_bytes": 2078 + }, + { + "name": "给我擦皮鞋", + "src": "给我擦皮鞋.mp3", + "path": "dir15/clip10.opus", + "samples": 19520, + "duration": 1.22, + "compressed_bytes": 2458 + } + ] + }, + { + "dir": "柚å­�厨", + "dir_id": 16, + "dir_ascii": "dir16", + "files": [ + { + "name": "ä¸�è¦�看ä¸�è¦�看我", + "src": "ä¸�è¦�看ä¸�è¦�看我.mp3", + "path": "dir16/clip00.opus", + "samples": 60480, + "duration": 3.78, + "compressed_bytes": 6076 + }, + { + "name": "ä¸�è¦�ç´§", + "src": "ä¸�è¦�ç´§.mp3", + "path": "dir16/clip01.opus", + "samples": 19520, + "duration": 1.22, + "compressed_bytes": 2432 + }, + { + "name": "ä¸�,应该ä¸�å�¯èƒ½ï¼Œä½†æ˜¯å—¯", + "src": "ä¸�,应该ä¸�å�¯èƒ½ï¼Œä½†æ˜¯å—¯.mp3", + "path": "dir16/clip02.opus", + "samples": 84640, + "duration": 5.29, + "compressed_bytes": 8188 + }, + { + "name": "主人刚æ‰�摸的是本座å‰�的骨头ï¼�", + "src": "主人刚æ‰�摸的是本座å‰�的骨头ï¼�.mp3", + "path": "dir16/clip03.opus", + "samples": 79520, + "duration": 4.97, + "compressed_bytes": 7970 + }, + { + "name": "主人ï¼�ï¼�ï¼�", + "src": "主人ï¼�ï¼�ï¼�.mp3", + "path": "dir16/clip04.opus", + "samples": 73120, + "duration": 4.57, + "compressed_bytes": 7208 + }, + { + "name": "主人,你è¦�ä¸�也æ�¥è¯•试?", + "src": "主人,你è¦�ä¸�也æ�¥è¯•试?.mp3", + "path": "dir16/clip05.opus", + "samples": 47840, + "duration": 2.99, + "compressed_bytes": 5907 + }, + { + "name": "但你心里想了,看你脸上的表情就知é�“你刚æ‰�在想,我没觉得,我摸到胸部了啊", + "src": "但你心里想了,看你脸上的表情就知é�“你刚æ‰�在想,我没觉得,我摸到胸部了啊.mp3", + "path": "dir16/clip06.opus", + "samples": 100800, + "duration": 6.3, + "compressed_bytes": 9889 + }, + { + "name": "你你说什么?你你是在愚弄本座å�—?", + "src": "你你说什么?你你是在愚弄本座å�—?.mp3", + "path": "dir16/clip07.opus", + "samples": 92160, + "duration": 5.76, + "compressed_bytes": 9032 + }, + { + "name": "你这?", + "src": "你这?.mp3", + "path": "dir16/clip08.opus", + "samples": 24160, + "duration": 1.51, + "compressed_bytes": 2732 + }, + { + "name": "å†�说了,硬的是骨头ï¼�", + "src": "å†�说了,硬的是骨头ï¼�.mp3", + "path": "dir16/clip09.opus", + "samples": 31040, + "duration": 1.94, + "compressed_bytes": 4080 + }, + { + "name": "到外é�¢åŽ»ï¼Œæœ¬åº§è¦�和你å�•挑", + "src": "到外é�¢åŽ»ï¼Œæœ¬åº§è¦�和你å�•挑.mp3", + "path": "dir16/clip10.opus", + "samples": 41440, + "duration": 2.59, + "compressed_bytes": 5086 + }, + { + "name": "å�¯å�¯æ�¶", + "src": "å�¯å�¯æ�¶.mp3", + "path": "dir16/clip11.opus", + "samples": 56960, + "duration": 3.56, + "compressed_bytes": 5279 + }, + { + "name": "呜呜呜啊啊啊", + "src": "呜呜呜啊啊啊.mp3", + "path": "dir16/clip12.opus", + "samples": 82400, + "duration": 5.15, + "compressed_bytes": 7727 + }, + { + "name": "咦咦诶主主主人", + "src": "咦咦诶主主主人.mp3", + "path": "dir16/clip13.opus", + "samples": 111200, + "duration": 6.95, + "compressed_bytes": 9173 + }, + { + "name": "咦竟然推出去那么远,真的碰得到?", + "src": "咦竟然推出去那么远,真的碰得到?.mp3", + "path": "dir16/clip14.opus", + "samples": 104320, + "duration": 6.52, + "compressed_bytes": 9125 + }, + { + "name": "咳咳,我è¦�说了噢", + "src": "咳咳,我è¦�说了噢.mp3", + "path": "dir16/clip15.opus", + "samples": 27680, + "duration": 1.73, + "compressed_bytes": 3099 + }, + { + "name": "哈喽", + "src": "哈喽.mp3", + "path": "dir16/clip16.opus", + "samples": 13280, + "duration": 0.83, + "compressed_bytes": 1601 + }, + { + "name": "哼", + "src": "哼.mp3", + "path": "dir16/clip17.opus", + "samples": 10400, + "duration": 0.65, + "compressed_bytes": 1220 + }, + { + "name": "唔唔好疼", + "src": "唔唔好疼.mp3", + "path": "dir16/clip18.opus", + "samples": 50720, + "duration": 3.17, + "compressed_bytes": 6368 + }, + { + "name": "唔早上好", + "src": "唔早上好.mp3", + "path": "dir16/clip19.opus", + "samples": 51840, + "duration": 3.24, + "compressed_bytes": 6515 + }, + { + "name": "啊啊啊", + "src": "啊啊啊.mp3", + "path": "dir16/clip20.opus", + "samples": 47200, + "duration": 2.95, + "compressed_bytes": 5801 + }, + { + "name": "啊有地?", + "src": "啊有地?.mp3", + "path": "dir16/clip21.opus", + "samples": 29920, + "duration": 1.87, + "compressed_bytes": 3357 + }, + { + "name": "当然了", + "src": "当然了.mp3", + "path": "dir16/clip22.opus", + "samples": 36800, + "duration": 2.3, + "compressed_bytes": 4076 + }, + { + "name": "想ä¸�通,本座都没法好好æ€�考了", + "src": "想ä¸�通,本座都没法好好æ€�考了.mp3", + "path": "dir16/clip23.opus", + "samples": 103040, + "duration": 6.44, + "compressed_bytes": 9916 + }, + { + "name": "我在网上æ�œç´¢å¾—知大城市æµ�行这样说,难é�“ä¸�是å�—", + "src": "我在网上æ�œç´¢å¾—知大城市æµ�行这样说,难é�“ä¸�是å�—.mp3", + "path": "dir16/clip24.opus", + "samples": 85760, + "duration": 5.36, + "compressed_bytes": 8267 + }, + { + "name": "所以本座æ‰�让你摸的", + "src": "所以本座æ‰�让你摸的.mp3", + "path": "dir16/clip25.opus", + "samples": 64000, + "duration": 4.0, + "compressed_bytes": 6263 + }, + { + "name": "早上好,有地", + "src": "早上好,有地.mp3", + "path": "dir16/clip26.opus", + "samples": 42080, + "duration": 2.63, + "compressed_bytes": 5315 + }, + { + "name": "有地,哈喽", + "src": "有地,哈喽.mp3", + "path": "dir16/clip27.opus", + "samples": 32800, + "duration": 2.05, + "compressed_bytes": 3680 + }, + { + "name": "æ�¥å�§ï¼Œæƒ³æ‘¸å“ªé‡Œéƒ½å�¯ä»¥", + "src": "æ�¥å�§ï¼Œæƒ³æ‘¸å“ªé‡Œéƒ½å�¯ä»¥.mp3", + "path": "dir16/clip28.opus", + "samples": 55360, + "duration": 3.46, + "compressed_bytes": 7029 + }, + { + "name": "果然如此ï¼�", + "src": "果然如此ï¼�.mp3", + "path": "dir16/clip29.opus", + "samples": 25280, + "duration": 1.58, + "compressed_bytes": 3083 + }, + { + "name": "竟然一边é�“歉一边æ�Ÿäººï¼�", + "src": "竟然一边é�“歉一边æ�Ÿäººï¼�.mp3", + "path": "dir16/clip30.opus", + "samples": 48960, + "duration": 3.06, + "compressed_bytes": 6282 + }, + { + "name": "而且本座能把你推出去,这也很奇怪啊", + "src": "而且本座能把你推出去,这也很奇怪啊.mp3", + "path": "dir16/clip31.opus", + "samples": 58720, + "duration": 3.67, + "compressed_bytes": 5847 + }, + { + "name": "而且请你放心,我昨天已ç»� 认真查过朋å�‹ä¹‹é—´çš„问候语了", + "src": "而且请你放心,我昨天已ç»� 认真查过朋å�‹ä¹‹é—´çš„问候语了.mp3", + "path": "dir16/clip32.opus", + "samples": 82400, + "duration": 5.15, + "compressed_bytes": 8011 + }, + { + "name": "被摸了 ,竟然被摸了", + "src": "被摸了 ,竟然被摸了.mp3", + "path": "dir16/clip33.opus", + "samples": 58720, + "duration": 3.67, + "compressed_bytes": 5710 + }, + { + "name": "还还还ä¸�是主人摸本座的胸部ï¼�", + "src": "还还还ä¸�是主人摸本座的胸部ï¼�.mp3", + "path": "dir16/clip34.opus", + "samples": 72000, + "duration": 4.5, + "compressed_bytes": 6922 + }, + { + "name": "都说了éš�便摸", + "src": "都说了éš�便摸.mp3", + "path": "dir16/clip35.opus", + "samples": 29920, + "duration": 1.87, + "compressed_bytes": 3496 + } + ] + }, + { + "dir": "牛æ�¥", + "dir_id": 17, + "dir_ascii": "dir17", + "files": [ + { + "name": "妈妈", + "src": "妈妈.wav", + "path": "dir17/clip00.opus", + "samples": 40800, + "duration": 2.55, + "compressed_bytes": 5282 + }, + { + "name": "牛æ�¥", + "src": "牛æ�¥.wav", + "path": "dir17/clip01.opus", + "samples": 21600, + "duration": 1.35, + "compressed_bytes": 2829 + } + ] + }, + { + "dir": "王世å�š", + "dir_id": 18, + "dir_ascii": "dir18", + "files": [ + { + "name": "《没出æ�¯ã€‹", + "src": "《没出æ�¯ã€‹.mp3", + "path": "dir18/clip00.opus", + "samples": 403200, + "duration": 25.2, + "compressed_bytes": 39163 + }, + { + "name": "ä¸�得了诶", + "src": "ä¸�得了诶.mp3", + "path": "dir18/clip01.opus", + "samples": 17920, + "duration": 1.12, + "compressed_bytes": 2165 + }, + { + "name": "专æ�žè¿™ç§�鸟事", + "src": "专æ�žè¿™ç§�ðŸ�¦äº‹.mp3", + "path": "dir18/clip02.opus", + "samples": 24800, + "duration": 1.55, + "compressed_bytes": 3033 + }, + { + "name": "为什么è¦�ç��眼说瞎è¯�å‘¢", + "src": "为什么è¦�ç��眼说瞎è¯�å‘¢.mp3", + "path": "dir18/clip03.opus", + "samples": 40320, + "duration": 2.52, + "compressed_bytes": 5038 + }, + { + "name": "他一呼你们百诺", + "src": "他一呼你们百诺.mp3", + "path": "dir18/clip04.opus", + "samples": 30560, + "duration": 1.91, + "compressed_bytes": 3827 + }, + { + "name": "ä»–ç�«äº†", + "src": "ä»–ç�«äº†.mp3", + "path": "dir18/clip05.opus", + "samples": 12640, + "duration": 0.79, + "compressed_bytes": 1588 + }, + { + "name": "他玩得起我们玩ä¸�èµ·å�—", + "src": "他玩得起我们玩ä¸�èµ·å�—.mp3", + "path": "dir18/clip06.opus", + "samples": 36320, + "duration": 2.27, + "compressed_bytes": 4691 + }, + { + "name": "你在哭什么哭", + "src": "你在哭什么哭.mp3", + "path": "dir18/clip07.opus", + "samples": 28160, + "duration": 1.76, + "compressed_bytes": 3499 + }, + { + "name": "你在哽咽什么啦", + "src": "你在哽咽什么啦.mp3", + "path": "dir18/clip08.opus", + "samples": 31040, + "duration": 1.94, + "compressed_bytes": 3965 + }, + { + "name": "你就是谎è¯�çš„æº�头诶", + "src": "你就是谎è¯�çš„æº�头诶.mp3", + "path": "dir18/clip09.opus", + "samples": 40320, + "duration": 2.52, + "compressed_bytes": 5193 + }, + { + "name": "你懂", + "src": "你懂.mp3", + "path": "dir18/clip10.opus", + "samples": 9760, + "duration": 0.61, + "compressed_bytes": 1223 + }, + { + "name": "ä½ è¦�ä¸�è¦�é�“æ­‰", + "src": "ä½ è¦�ä¸�è¦�é�“æ­‰.mp3", + "path": "dir18/clip11.opus", + "samples": 15520, + "duration": 0.97, + "compressed_bytes": 1907 + }, + { + "name": "你讲这个都这个都完全讲ä¸�过去", + "src": "你讲这个都这个都完全讲ä¸�过去.mp3", + "path": "dir18/clip12.opus", + "samples": 73120, + "duration": 4.57, + "compressed_bytes": 7131 + }, + { + "name": "你那一些讲è¯�用è¯�噢还蛮高雅的", + "src": "你那一些讲è¯�用è¯�噢还蛮高雅的.mp3", + "path": "dir18/clip13.opus", + "samples": 85280, + "duration": 5.33, + "compressed_bytes": 8211 + }, + { + "name": "åƒ�鬼画符", + "src": "åƒ�鬼画符.mp3", + "path": "dir18/clip14.opus", + "samples": 28800, + "duration": 1.8, + "compressed_bytes": 3709 + }, + { + "name": "噢这个问到我的死穴", + "src": "噢这个问到我的死穴.mp3", + "path": "dir18/clip15.opus", + "samples": 28160, + "duration": 1.76, + "compressed_bytes": 3594 + }, + { + "name": "天底下有这ç§�事", + "src": "天底下有这ç§�事.mp3", + "path": "dir18/clip16.opus", + "samples": 21280, + "duration": 1.33, + "compressed_bytes": 2610 + }, + { + "name": "就是这么简å�•", + "src": "就是这么简å�•.mp3", + "path": "dir18/clip17.opus", + "samples": 24800, + "duration": 1.55, + "compressed_bytes": 3074 + }, + { + "name": "å¹²ä¸�了什么好事", + "src": "å¹²ä¸�了什么好事.mp3", + "path": "dir18/clip18.opus", + "samples": 25280, + "duration": 1.58, + "compressed_bytes": 3244 + }, + { + "name": "æ„�外ä¸�æ„�外", + "src": "æ„�外ä¸�æ„�外.mp3", + "path": "dir18/clip19.opus", + "samples": 23040, + "duration": 1.44, + "compressed_bytes": 2886 + }, + { + "name": "懂你就是都ä¸�å�šå•Š", + "src": "懂你就是都ä¸�å�šå•Š.mp3", + "path": "dir18/clip20.opus", + "samples": 29920, + "duration": 1.87, + "compressed_bytes": 3710 + }, + { + "name": "我真是ä¸�声å”�嘘了", + "src": "我真是ä¸�声å”�嘘了.mp3", + "path": "dir18/clip21.opus", + "samples": 32800, + "duration": 2.05, + "compressed_bytes": 4194 + }, + { + "name": "本æ�¥åº”该从从容容游刃有余", + "src": "本æ�¥åº”该从从容容游刃有余.mp3", + "path": "dir18/clip22.opus", + "samples": 60480, + "duration": 3.78, + "compressed_bytes": 5888 + }, + { + "name": "正事ä¸�å¹²", + "src": "正事ä¸�å¹².mp3", + "path": "dir18/clip23.opus", + "samples": 25280, + "duration": 1.58, + "compressed_bytes": 3120 + }, + { + "name": "比划了å�Šå¤©ä»€ä¹ˆéƒ½æ²¡å�šåˆ°", + "src": "比划了å�Šå¤©ä»€ä¹ˆéƒ½æ²¡å�šåˆ°.mp3", + "path": "dir18/clip24.opus", + "samples": 56960, + "duration": 3.56, + "compressed_bytes": 5565 + }, + { + "name": "没出æ�¯", + "src": "没出æ�¯.mp3", + "path": "dir18/clip25.opus", + "samples": 26560, + "duration": 1.66, + "compressed_bytes": 3299 + }, + { + "name": "没有最扯å�ªæœ‰æ›´æ‰¯", + "src": "没有最扯å�ªæœ‰æ›´æ‰¯.mp3", + "path": "dir18/clip26.opus", + "samples": 59840, + "duration": 3.74, + "compressed_bytes": 5808 + }, + { + "name": "爱怎么å�šå°±æ€Žä¹ˆå�š", + "src": "爱怎么å�šå°±æ€Žä¹ˆå�š.mp3", + "path": "dir18/clip27.opus", + "samples": 29440, + "duration": 1.84, + "compressed_bytes": 3720 + }, + { + "name": "现在是匆匆忙忙", + "src": "现在是匆匆忙忙.mp3", + "path": "dir18/clip28.opus", + "samples": 33440, + "duration": 2.09, + "compressed_bytes": 4228 + }, + { + "name": "现在ç�«çƒ§åˆ°å±�股了", + "src": "现在ç�«çƒ§åˆ°å±�股了.mp3", + "path": "dir18/clip29.opus", + "samples": 24160, + "duration": 1.51, + "compressed_bytes": 3094 + }, + { + "name": "ç��眼说瞎è¯�", + "src": "ç��眼说瞎è¯�.mp3", + "path": "dir18/clip30.opus", + "samples": 26560, + "duration": 1.66, + "compressed_bytes": 3338 + }, + { + "name": "è€�天有眼å‘�", + "src": "è€�天有眼å‘�.mp3", + "path": "dir18/clip31.opus", + "samples": 21920, + "duration": 1.37, + "compressed_bytes": 2686 + }, + { + "name": "自由å�‘挥", + "src": "自由å�‘挥.mp3", + "path": "dir18/clip32.opus", + "samples": 25280, + "duration": 1.58, + "compressed_bytes": 3212 + }, + { + "name": "莫å��其妙到æž�点", + "src": "莫å��其妙到æž�点.mp3", + "path": "dir18/clip33.opus", + "samples": 31680, + "duration": 1.98, + "compressed_bytes": 3912 + }, + { + "name": "这个å�«å¦–ä¿®", + "src": "这个å�«å¦–ä¿®.mp3", + "path": "dir18/clip34.opus", + "samples": 21920, + "duration": 1.37, + "compressed_bytes": 2748 + }, + { + "name": "这是在扮演上å¸�耶", + "src": "这是在扮演上å¸�耶.mp3", + "path": "dir18/clip35.opus", + "samples": 28160, + "duration": 1.76, + "compressed_bytes": 3526 + }, + { + "name": "这是è£�判兼ç�ƒå‘˜è€¶", + "src": "这是è£�判兼ç�ƒå‘˜è€¶.mp3", + "path": "dir18/clip36.opus", + "samples": 33920, + "duration": 2.12, + "compressed_bytes": 4372 + }, + { + "name": "连滚带爬", + "src": "连滚带爬.mp3", + "path": "dir18/clip37.opus", + "samples": 34560, + "duration": 2.16, + "compressed_bytes": 4379 + }, + { + "name": "都是在你手上啊", + "src": "都是在你手上啊.mp3", + "path": "dir18/clip38.opus", + "samples": 26560, + "duration": 1.66, + "compressed_bytes": 3449 + }, + { + "name": "长他人å¨�风ç�­è‡ªå·±å¿—æ°”", + "src": "长他人å¨�风ç�­è‡ªå·±å¿—æ°”.mp3", + "path": "dir18/clip39.opus", + "samples": 64000, + "duration": 4.0, + "compressed_bytes": 6238 + } + ] + }, + { + "dir": "科比", + "dir_id": 19, + "dir_ascii": "dir19", + "files": [ + { + "name": "man", + "src": "man.mp3", + "path": "dir19/clip00.opus", + "samples": 16160, + "duration": 1.01, + "compressed_bytes": 1942 + }, + { + "name": "manå�«", + "src": "manå�«.mp3", + "path": "dir19/clip01.opus", + "samples": 117440, + "duration": 7.34, + "compressed_bytes": 11567 + }, + { + "name": "What can", + "src": "What can.mp3", + "path": "dir19/clip02.opus", + "samples": 12640, + "duration": 0.79, + "compressed_bytes": 1530 + }, + { + "name": "啵", + "src": "啵.mp3", + "path": "dir19/clip03.opus", + "samples": 9760, + "duration": 0.61, + "compressed_bytes": 1087 + }, + { + "name": "曼巴out", + "src": "曼巴out.mp3", + "path": "dir19/clip05.opus", + "samples": 10880, + "duration": 0.68, + "compressed_bytes": 1308 + }, + { + "name": "曼巴å�˜éŸ³1", + "src": "曼巴å�˜éŸ³1.mp3", + "path": "dir19/clip06.opus", + "samples": 153280, + "duration": 9.58, + "compressed_bytes": 14972 + }, + { + "name": "曼巴笑声", + "src": "曼巴笑声.mp3", + "path": "dir19/clip28.opus", + "samples": 17920, + "duration": 1.12, + "compressed_bytes": 2281 + }, + { + "name": "ç›´å�‡æœº", + "src": "ç›´å�‡æœº.mp3", + "path": "dir19/clip29.opus", + "samples": 134720, + "duration": 8.42, + "compressed_bytes": 12702 + } + ] + }, + { + "dir": "纸片人æ�·é£Ž", + "dir_id": 20, + "dir_ascii": "dir20", + "files": [ + { + "name": "boyboyb", + "src": "boyboyb.mp3", + "path": "dir20/clip00.opus", + "samples": 118080, + "duration": 7.38, + "compressed_bytes": 11772 + }, + { + "name": "ä¸�死鸟哈哈哈", + "src": "ä¸�死鸟哈哈哈.mp3", + "path": "dir20/clip01.opus", + "samples": 29920, + "duration": 1.87, + "compressed_bytes": 3887 + }, + { + "name": "ä¸�过你是ä¸�是忘记å°�墙了", + "src": "ä¸�过你是ä¸�是忘记å°�墙了.mp3", + "path": "dir20/clip02.opus", + "samples": 36320, + "duration": 2.27, + "compressed_bytes": 4741 + }, + { + "name": "你已被剥夺力é‡�", + "src": "你已被剥夺力é‡�.mp3", + "path": "dir20/clip03.opus", + "samples": 29920, + "duration": 1.87, + "compressed_bytes": 3759 + }, + { + "name": "你快点跪下给对é�¢é�“æ­‰", + "src": "你快点跪下给对é�¢é�“æ­‰.mp3", + "path": "dir20/clip04.opus", + "samples": 40320, + "duration": 2.52, + "compressed_bytes": 5205 + }, + { + "name": "你没事乱扔什么闪啊", + "src": "你没事乱扔什么闪啊.mp3", + "path": "dir20/clip05.opus", + "samples": 33440, + "duration": 2.09, + "compressed_bytes": 4427 + }, + { + "name": "别怕还有我呢", + "src": "别怕还有我呢.mp3", + "path": "dir20/clip06.opus", + "samples": 27040, + "duration": 1.69, + "compressed_bytes": 3457 + }, + { + "name": "别挡我的路_1", + "src": "别挡我的路_1.mp3", + "path": "dir20/clip07.opus", + "samples": 29920, + "duration": 1.87, + "compressed_bytes": 3915 + }, + { + "name": "呃_1", + "src": "呃_1.mp3", + "path": "dir20/clip08.opus", + "samples": 12640, + "duration": 0.79, + "compressed_bytes": 1617 + }, + { + "name": "呜呜我è¦�ä¸�死鸟我è¦�ä¸�死鸟", + "src": "呜呜我è¦�ä¸�死鸟我è¦�ä¸�死鸟.mp3", + "path": "dir20/clip09.opus", + "samples": 56960, + "duration": 3.56, + "compressed_bytes": 5672 + }, + { + "name": "呜呜贤者我è¦�抱抱", + "src": "呜呜贤者我è¦�抱抱.mp3", + "path": "dir20/clip10.opus", + "samples": 46720, + "duration": 2.92, + "compressed_bytes": 6086 + }, + { + "name": "呜我就è¦�贤者", + "src": "呜我就è¦�贤者.mp3", + "path": "dir20/clip11.opus", + "samples": 39200, + "duration": 2.45, + "compressed_bytes": 5119 + }, + { + "name": "咦嘻嘻嘻嘻(诡异的笑声)", + "src": "咦嘻嘻嘻嘻(诡异的笑声).mp3", + "path": "dir20/clip12.opus", + "samples": 46720, + "duration": 2.92, + "compressed_bytes": 6066 + }, + { + "name": "哈哈哈_1", + "src": "哈哈哈_1.mp3", + "path": "dir20/clip14.opus", + "samples": 20800, + "duration": 1.3, + "compressed_bytes": 2719 + }, + { + "name": "哈哈我è¦�跟贤者玩", + "src": "哈哈我è¦�跟贤者玩.mp3", + "path": "dir20/clip15.opus", + "samples": 33440, + "duration": 2.09, + "compressed_bytes": 4505 + }, + { + "name": "哎刀马刀马", + "src": "哎刀马刀马.mp3", + "path": "dir20/clip16.opus", + "samples": 32800, + "duration": 2.05, + "compressed_bytes": 4230 + }, + { + "name": "哎刀马刀马刀马", + "src": "哎刀马刀马刀马.mp3", + "path": "dir20/clip18.opus", + "samples": 65120, + "duration": 4.07, + "compressed_bytes": 6432 + }, + { + "name": "哎呀我就唱嘿嘿嘿", + "src": "哎呀我就唱嘿嘿嘿.mp3", + "path": "dir20/clip19.opus", + "samples": 76640, + "duration": 4.79, + "compressed_bytes": 7443 + }, + { + "name": "哎呀贤者你别丢下我", + "src": "哎呀贤者你别丢下我.mp3", + "path": "dir20/clip21.opus", + "samples": 36800, + "duration": 2.3, + "compressed_bytes": 4937 + }, + { + "name": "啊我就è¦�跟贤者玩我就è¦�玩", + "src": "啊我就è¦�跟贤者玩我就è¦�玩.mp3", + "path": "dir20/clip22.opus", + "samples": 70240, + "duration": 4.39, + "compressed_bytes": 7068 + }, + { + "name": "啊这对嘛", + "src": "啊这对嘛.mp3", + "path": "dir20/clip23.opus", + "samples": 19040, + "duration": 1.19, + "compressed_bytes": 2438 + }, + { + "name": "啊?ï¼�", + "src": "啊?ï¼�.mp3", + "path": "dir20/clip24.opus", + "samples": 9760, + "duration": 0.61, + "compressed_bytes": 1297 + }, + { + "name": "嘿嘿嘿", + "src": "嘿嘿嘿.mp3", + "path": "dir20/clip26.opus", + "samples": 18400, + "duration": 1.15, + "compressed_bytes": 2315 + }, + { + "name": "囊囊囊囊囊囊", + "src": "囊囊囊囊囊囊.mp3", + "path": "dir20/clip28.opus", + "samples": 69760, + "duration": 4.36, + "compressed_bytes": 6739 + }, + { + "name": "我ä¸�è¦�跟贤者玩了讨厌ï¼�", + "src": "我ä¸�è¦�跟贤者玩了讨厌ï¼�.mp3", + "path": "dir20/clip29.opus", + "samples": 47840, + "duration": 2.99, + "compressed_bytes": 6145 + }, + { + "name": "挨刀马DJ2", + "src": "挨刀马DJ2.mp3", + "path": "dir20/clip30.opus", + "samples": 408320, + "duration": 25.52, + "compressed_bytes": 40388 + }, + { + "name": "棒棒棒2", + "src": "棒棒棒2.mp3", + "path": "dir20/clip31.opus", + "samples": 36320, + "duration": 2.27, + "compressed_bytes": 4796 + }, + { + "name": "棒棒棒棒", + "src": "棒棒棒棒.mp3", + "path": "dir20/clip32.opus", + "samples": 21280, + "duration": 1.33, + "compressed_bytes": 2784 + }, + { + "name": "欸嘿嘿", + "src": "欸嘿嘿.mp3", + "path": "dir20/clip34.opus", + "samples": 20160, + "duration": 1.26, + "compressed_bytes": 2610 + }, + { + "name": "气死我了", + "src": "气死我了.mp3", + "path": "dir20/clip35.opus", + "samples": 11520, + "duration": 0.72, + "compressed_bytes": 1458 + }, + { + "name": "沉默ä¸�是代表我的错", + "src": "沉默ä¸�是代表我的错.mp3", + "path": "dir20/clip36.opus", + "samples": 233920, + "duration": 14.62, + "compressed_bytes": 23278 + }, + { + "name": "耶这å�ˆæ�¥ä¸ªé»‘é“�", + "src": "耶这å�ˆæ�¥ä¸ªé»‘é“�.mp3", + "path": "dir20/clip37.opus", + "samples": 32320, + "duration": 2.02, + "compressed_bytes": 4049 + }, + { + "name": "è‹�å�¡çˆ±è±†çš„笑容", + "src": "è‹�å�¡çˆ±è±†çš„笑容.mp3", + "path": "dir20/clip38.opus", + "samples": 134240, + "duration": 8.39, + "compressed_bytes": 13327 + }, + { + "name": "诶呀呀", + "src": "诶呀呀.mp3", + "path": "dir20/clip39.opus", + "samples": 28800, + "duration": 1.8, + "compressed_bytes": 3798 + }, + { + "name": "诶我大招呢但我还有枪呢", + "src": "诶我大招呢但我还有枪呢.mp3", + "path": "dir20/clip41.opus", + "samples": 49600, + "duration": 3.1, + "compressed_bytes": 6464 + }, + { + "name": "诶谢谢你啊", + "src": "诶谢谢你啊.mp3", + "path": "dir20/clip42.opus", + "samples": 23680, + "duration": 1.48, + "compressed_bytes": 3058 + }, + { + "name": "贤者你看我", + "src": "贤者你看我.mp3", + "path": "dir20/clip43.opus", + "samples": 36320, + "duration": 2.27, + "compressed_bytes": 4544 + }, + { + "name": "那你想怎么样", + "src": "那你想怎么样.mp3", + "path": "dir20/clip44.opus", + "samples": 28160, + "duration": 1.76, + "compressed_bytes": 3681 + }, + { + "name": "那你能怎么样", + "src": "那你能怎么样.mp3", + "path": "dir20/clip45.opus", + "samples": 20160, + "duration": 1.26, + "compressed_bytes": 2626 + }, + { + "name": "éš¾é�“他真的是赋能哥", + "src": "éš¾é�“他真的是赋能哥.mp3", + "path": "dir20/clip46.opus", + "samples": 26560, + "duration": 1.66, + "compressed_bytes": 3447 + }, + { + "name": "颗秒", + "src": "颗秒.mp3", + "path": "dir20/clip47.opus", + "samples": 24160, + "duration": 1.51, + "compressed_bytes": 3194 + } + ] + }, + { + "dir": "金å�·åžƒ", + "dir_id": 21, + "dir_ascii": "dir21", + "files": [ + { + "name": "一袋能顶两袋三", + "src": "一袋能顶两袋三.mp3", + "path": "dir21/clip00.opus", + "samples": 38560, + "duration": 2.41, + "compressed_bytes": 4957 + }, + { + "name": "ä¸�æµ�失", + "src": "ä¸�æµ�失.mp3", + "path": "dir21/clip01.opus", + "samples": 15040, + "duration": 0.94, + "compressed_bytes": 1910 + }, + { + "name": "ä¸�能打架", + "src": "ä¸�能打架.mp3", + "path": "dir21/clip02.opus", + "samples": 19040, + "duration": 1.19, + "compressed_bytes": 2321 + }, + { + "name": "ä¸�è’¸å�‘", + "src": "ä¸�è’¸å�‘.mp3", + "path": "dir21/clip04.opus", + "samples": 16160, + "duration": 1.01, + "compressed_bytes": 2014 + }, + { + "name": "你们想干什么", + "src": "你们想干什么.mp3", + "path": "dir21/clip05.opus", + "samples": 25280, + "duration": 1.58, + "compressed_bytes": 3232 + }, + { + "name": "你们日本", + "src": "你们日本.mp3", + "path": "dir21/clip06.opus", + "samples": 19040, + "duration": 1.19, + "compressed_bytes": 2321 + }, + { + "name": "å†�也ä¸�åƒ�美国进å�£å•¦", + "src": "å†�也ä¸�åƒ�美国进å�£å•¦.mp3", + "path": "dir21/clip07.opus", + "samples": 40960, + "duration": 2.56, + "compressed_bytes": 5240 + }, + { + "name": "别想啦", + "src": "别想啦.mp3", + "path": "dir21/clip08.opus", + "samples": 17280, + "duration": 1.08, + "compressed_bytes": 2187 + }, + { + "name": "哈哈哈哈", + "src": "哈哈哈哈.mp3", + "path": "dir21/clip09.opus", + "samples": 32800, + "duration": 2.05, + "compressed_bytes": 4178 + }, + { + "name": "对美国农业å�±å®³å¤§", + "src": "对美国农业å�±å®³å¤§.mp3", + "path": "dir21/clip10.opus", + "samples": 37440, + "duration": 2.34, + "compressed_bytes": 4713 + }, + { + "name": "å°�鬼å­�真ä¸�å‚»", + "src": "å°�鬼å­�真ä¸�å‚».mp3", + "path": "dir21/clip11.opus", + "samples": 32800, + "duration": 2.05, + "compressed_bytes": 4158 + }, + { + "name": "å°�麦亩产一å�ƒå…«", + "src": "å°�麦亩产一å�ƒå…«.mp3", + "path": "dir21/clip12.opus", + "samples": 31040, + "duration": 1.94, + "compressed_bytes": 3963 + }, + { + "name": "å¿…é¡»è¦�有金å�·åžƒ", + "src": "å¿…é¡»è¦�有金å�·åžƒ.mp3", + "path": "dir21/clip13.opus", + "samples": 35680, + "duration": 2.23, + "compressed_bytes": 4513 + }, + { + "name": "怎么ç§�庄稼", + "src": "怎么ç§�庄稼.mp3", + "path": "dir21/clip15.opus", + "samples": 19520, + "duration": 1.22, + "compressed_bytes": 2479 + }, + { + "name": "我们的", + "src": "我们的.mp3", + "path": "dir21/clip16.opus", + "samples": 15040, + "duration": 0.94, + "compressed_bytes": 1880 + }, + { + "name": "我们都è¦�支æ�´ä»–", + "src": "我们都è¦�支æ�´ä»–.mp3", + "path": "dir21/clip17.opus", + "samples": 33920, + "duration": 2.12, + "compressed_bytes": 4316 + }, + { + "name": "我è¦�金å�·åžƒ", + "src": "我è¦�金å�·åžƒ.mp3", + "path": "dir21/clip18.opus", + "samples": 21920, + "duration": 1.37, + "compressed_bytes": 2720 + }, + { + "name": "日本的粮食", + "src": "日本的粮食.mp3", + "path": "dir21/clip20.opus", + "samples": 20160, + "duration": 1.26, + "compressed_bytes": 2577 + }, + { + "name": "日本资æº�太缺ä¹�", + "src": "日本资æº�太缺ä¹�.mp3", + "path": "dir21/clip21.opus", + "samples": 31040, + "duration": 1.94, + "compressed_bytes": 4000 + }, + { + "name": "是我的", + "src": "是我的.mp3", + "path": "dir21/clip22.opus", + "samples": 17280, + "duration": 1.08, + "compressed_bytes": 2196 + }, + { + "name": "氮麟钾", + "src": "氮麟钾.mp3", + "path": "dir21/clip23.opus", + "samples": 17280, + "duration": 1.08, + "compressed_bytes": 2157 + }, + { + "name": "没有金å�·åžƒ", + "src": "没有金å�·åžƒ.mp3", + "path": "dir21/clip24.opus", + "samples": 19520, + "duration": 1.22, + "compressed_bytes": 2503 + }, + { + "name": "狡猾", + "src": "狡猾.mp3", + "path": "dir21/clip25.opus", + "samples": 20800, + "duration": 1.3, + "compressed_bytes": 2541 + }, + { + "name": "用了金å�·åžƒ2", + "src": "用了金å�·åžƒ2.mp3", + "path": "dir21/clip27.opus", + "samples": 24160, + "duration": 1.51, + "compressed_bytes": 3054 + }, + { + "name": "直接肥料都涨价", + "src": "直接肥料都涨价.mp3", + "path": "dir21/clip28.opus", + "samples": 28160, + "duration": 1.76, + "compressed_bytes": 3636 + }, + { + "name": "ç»�ä¸�能给他", + "src": "ç»�ä¸�能给他.mp3", + "path": "dir21/clip29.opus", + "samples": 25920, + "duration": 1.62, + "compressed_bytes": 3233 + }, + { + "name": "肥料å�‚了金å�·åžƒ", + "src": "肥料å�‚了金å�·åžƒ.mp3", + "path": "dir21/clip30.opus", + "samples": 35680, + "duration": 2.23, + "compressed_bytes": 4548 + }, + { + "name": "能å�¸æ”¶ä¸¤ç±³ä¸‹åœ°", + "src": "能å�¸æ”¶ä¸¤ç±³ä¸‹åœ°.mp3", + "path": "dir21/clip33.opus", + "samples": 30560, + "duration": 1.91, + "compressed_bytes": 3907 + }, + { + "name": "è°�说对了就给他", + "src": "è°�说对了就给他.mp3", + "path": "dir21/clip34.opus", + "samples": 32800, + "duration": 2.05, + "compressed_bytes": 4186 + }, + { + "name": "金å�·åžƒ", + "src": "金å�·åžƒ.mp3", + "path": "dir21/clip35.opus", + "samples": 14400, + "duration": 0.9, + "compressed_bytes": 1843 + }, + { + "name": "金å�·åžƒå¥½å¤„都有啥", + "src": "金å�·åžƒå¥½å¤„都有啥.mp3", + "path": "dir21/clip39.opus", + "samples": 36320, + "duration": 2.27, + "compressed_bytes": 4651 + }, + { + "name": "金å�·åžƒç»™äº†ä»–", + "src": "金å�·åžƒç»™äº†ä»–.mp3", + "path": "dir21/clip40.opus", + "samples": 27040, + "duration": 1.69, + "compressed_bytes": 3355 + }, + { + "name": "零浪费", + "src": "零浪费.mp3", + "path": "dir21/clip41.opus", + "samples": 19520, + "duration": 1.22, + "compressed_bytes": 2444 + }, + { + "name": "é�žæ´²å†œä¸šä¸�å�‘è¾¾", + "src": "é�žæ´²å†œä¸šä¸�å�‘è¾¾.mp3", + "path": "dir21/clip42.opus", + "samples": 31040, + "duration": 1.94, + "compressed_bytes": 3940 + }, + { + "name": "é�žæ´²å†œæ°‘ä¸�å�‘è¾¾", + "src": "é�žæ´²å†œæ°‘ä¸�å�‘è¾¾.mp3", + "path": "dir21/clip43.opus", + "samples": 27040, + "duration": 1.69, + "compressed_bytes": 3423 + } + ] + }, + { + "dir": "高æ�¾ç�¯", + "dir_id": 22, + "dir_ascii": "dir22", + "files": [ + { + "name": "Rikki~", + "src": "Rikki~.mp3", + "path": "dir22/clip00.opus", + "samples": 25280, + "duration": 1.58, + "compressed_bytes": 3181 + }, + { + "name": "ä¸�è¦�", + "src": "ä¸�è¦�.mp3", + "path": "dir22/clip01.opus", + "samples": 18400, + "duration": 1.15, + "compressed_bytes": 2110 + }, + { + "name": "为什么è¦�æ¼”å¥�春日影", + "src": "为什么è¦�æ¼”å¥�春日影.mp3", + "path": "dir22/clip02.opus", + "samples": 39680, + "duration": 2.48, + "compressed_bytes": 4993 + }, + { + "name": "å�¶å†…ç›–", + "src": "å�¶å†…ç›–.mp3", + "path": "dir22/clip03.opus", + "samples": 20160, + "duration": 1.26, + "compressed_bytes": 2516 + }, + { + "name": "咕咕嘎嘎(沉é‡�)", + "src": "咕咕嘎嘎(沉é‡�).mp3", + "path": "dir22/clip07.opus", + "samples": 31040, + "duration": 1.94, + "compressed_bytes": 4054 + }, + { + "name": "咪咪咪", + "src": "咪咪咪.mp3", + "path": "dir22/clip09.opus", + "samples": 304160, + "duration": 19.01, + "compressed_bytes": 30324 + }, + { + "name": "哈?", + "src": "哈?.mp3", + "path": "dir22/clip10.opus", + "samples": 18400, + "duration": 1.15, + "compressed_bytes": 2350 + }, + { + "name": "å”�笑", + "src": "å”�笑.mp3", + "path": "dir22/clip11.opus", + "samples": 115200, + "duration": 7.2, + "compressed_bytes": 11456 + }, + { + "name": "囊囊囊", + "src": "囊囊囊.mp3", + "path": "dir22/clip12.opus", + "samples": 120320, + "duration": 7.52, + "compressed_bytes": 11924 + }, + { + "name": "天空", + "src": "天空.mp3", + "path": "dir22/clip13.opus", + "samples": 276480, + "duration": 17.28, + "compressed_bytes": 27515 + }, + { + "name": "希腊奶", + "src": "希腊奶.mp3", + "path": "dir22/clip14.opus", + "samples": 25280, + "duration": 1.58, + "compressed_bytes": 3315 + }, + { + "name": "我è¦�拉黑他", + "src": "我è¦�拉黑他.mp3", + "path": "dir22/clip16.opus", + "samples": 15040, + "duration": 0.94, + "compressed_bytes": 1761 + }, + { + "name": "我è¦�退出苦æ�¥å…®è‹¦", + "src": "我è¦�退出苦æ�¥å…®è‹¦.mp3", + "path": "dir22/clip17.opus", + "samples": 126720, + "duration": 7.92, + "compressed_bytes": 12329 + }, + { + "name": "无趣的女人", + "src": "无趣的女人.mp3", + "path": "dir22/clip18.opus", + "samples": 35200, + "duration": 2.2, + "compressed_bytes": 4440 + }, + { + "name": "有趣的女人", + "src": "有趣的女人.mp3", + "path": "dir22/clip19.opus", + "samples": 35680, + "duration": 2.23, + "compressed_bytes": 4414 + }, + { + "name": "欸,那我呢?", + "src": "欸,那我呢?.mp3", + "path": "dir22/clip20.opus", + "samples": 47200, + "duration": 2.95, + "compressed_bytes": 6084 + }, + { + "name": "满脑å­�都是自己呢", + "src": "满脑å­�都是自己呢.mp3", + "path": "dir22/clip21.opus", + "samples": 59840, + "duration": 3.74, + "compressed_bytes": 5794 + }, + { + "name": "ç�µæ„Ÿè�‡", + "src": "ç�µæ„Ÿè�‡.mp3", + "path": "dir22/clip22.opus", + "samples": 134240, + "duration": 8.39, + "compressed_bytes": 13269 + }, + { + "name": "犯错", + "src": "犯错.mp3", + "path": "dir22/clip23.opus", + "samples": 225280, + "duration": 14.08, + "compressed_bytes": 22472 + }, + { + "name": "祥 移動", + "src": "祥 移動.mp3", + "path": "dir22/clip24.opus", + "samples": 41440, + "duration": 2.59, + "compressed_bytes": 5254 + }, + { + "name": "ç³–å“­", + "src": "ç³–å“­.mp3", + "path": "dir22/clip25.opus", + "samples": 97920, + "duration": 6.12, + "compressed_bytes": 9487 + }, + { + "name": "组一辈å­�ä¹�队", + "src": "组一辈å­�ä¹�队.mp3", + "path": "dir22/clip26.opus", + "samples": 80640, + "duration": 5.04, + "compressed_bytes": 7241 + }, + { + "name": "è¦�我怎么å�š", + "src": "è¦�我怎么å�š.mp3", + "path": "dir22/clip27.opus", + "samples": 63360, + "duration": 3.96, + "compressed_bytes": 6354 + }, + { + "name": "è¦�是没有å°�祥的è¯�", + "src": "è¦�是没有å°�祥的è¯�.mp3", + "path": "dir22/clip28.opus", + "samples": 41440, + "duration": 2.59, + "compressed_bytes": 5476 + }, + { + "name": "赛亚库", + "src": "赛亚库.mp3", + "path": "dir22/clip29.opus", + "samples": 23040, + "duration": 1.44, + "compressed_bytes": 2890 + }, + { + "name": "黄瓜尖å�«", + "src": "黄瓜尖å�«.mp3", + "path": "dir22/clip30.opus", + "samples": 51200, + "duration": 3.2, + "compressed_bytes": 6530 + } + ] + }, + { + "dir": "鸡ä¹�", + "dir_id": 23, + "dir_ascii": "dir23", + "files": [ + { + "name": "ngmhhy", + "src": "ngmhhy.mp3", + "path": "dir23/clip01.opus", + "samples": 63360, + "duration": 3.96, + "compressed_bytes": 5880 + }, + { + "name": "rap鸡", + "src": "rap鸡.mp3", + "path": "dir23/clip02.opus", + "samples": 152640, + "duration": 9.54, + "compressed_bytes": 14925 + }, + { + "name": "yhhmgn", + "src": "yhhmgn.mp3", + "path": "dir23/clip03.opus", + "samples": 63360, + "duration": 3.96, + "compressed_bytes": 6072 + }, + { + "name": "专属BGM", + "src": "专属BGM.mp3", + "path": "dir23/clip04.opus", + "samples": 181440, + "duration": 11.34, + "compressed_bytes": 17986 + }, + { + "name": "个人练习å�¤", + "src": "个人练习å�¤.mp3", + "path": "dir23/clip05.opus", + "samples": 12640, + "duration": 0.79, + "compressed_bytes": 1514 + }, + { + "name": "å�ªå› ä½ å¤ªç¾Ž", + "src": "å�ªå› ä½ å¤ªç¾Ž.mp3", + "path": "dir23/clip07.opus", + "samples": 276480, + "duration": 17.28, + "compressed_bytes": 26866 + }, + { + "name": "哇 什么情况", + "src": "哇 什么情况.mp3", + "path": "dir23/clip08.opus", + "samples": 26560, + "duration": 1.66, + "compressed_bytes": 3377 + }, + { + "name": "哇呵呵", + "src": "哇呵呵.mp3", + "path": "dir23/clip10.opus", + "samples": 29920, + "duration": 1.87, + "compressed_bytes": 3647 + }, + { + "name": "哇真的是你", + "src": "哇真的是你.mp3", + "path": "dir23/clip11.opus", + "samples": 21280, + "duration": 1.33, + "compressed_bytes": 2671 + }, + { + "name": "哈哈", + "src": "哈哈.mp3", + "path": "dir23/clip12.opus", + "samples": 19040, + "duration": 1.19, + "compressed_bytes": 2017 + }, + { + "name": "哎呀", + "src": "哎呀.mp3", + "path": "dir23/clip14.opus", + "samples": 28160, + "duration": 1.76, + "compressed_bytes": 3477 + }, + { + "name": "哎呦", + "src": "哎呦.mp3", + "path": "dir23/clip15.opus", + "samples": 25280, + "duration": 1.58, + "compressed_bytes": 3230 + }, + { + "name": "哎呦哈哈", + "src": "哎呦哈哈.mp3", + "path": "dir23/clip16.opus", + "samples": 44960, + "duration": 2.81, + "compressed_bytes": 5682 + }, + { + "name": "哎哎嗨呦", + "src": "哎哎嗨呦.mp3", + "path": "dir23/clip17.opus", + "samples": 35680, + "duration": 2.23, + "compressed_bytes": 4741 + }, + { + "name": "啊~", + "src": "啊~.mp3", + "path": "dir23/clip18.opus", + "samples": 32800, + "duration": 2.05, + "compressed_bytes": 4107 + }, + { + "name": "å—· 回手æŽ�", + "src": "å—· 回手æŽ�.mp3", + "path": "dir23/clip19.opus", + "samples": 27040, + "duration": 1.69, + "compressed_bytes": 3583 + }, + { + "name": "å�¤è¯�", + "src": "å�¤è¯�.mp3", + "path": "dir23/clip21.opus", + "samples": 183200, + "duration": 11.45, + "compressed_bytes": 18194 + }, + { + "name": "å°–å�«é¸¡", + "src": "å°–å�«é¸¡.mp3", + "path": "dir23/clip22.opus", + "samples": 124480, + "duration": 7.78, + "compressed_bytes": 12120 + }, + { + "name": "干嘛啊~_1", + "src": "干嘛啊~_1.mp3", + "path": "dir23/clip23.opus", + "samples": 24160, + "duration": 1.51, + "compressed_bytes": 3048 + }, + { + "name": "ç�°å‹’塔德医生", + "src": "ç�°å‹’塔德医生.mp3", + "path": "dir23/clip27.opus", + "samples": 23680, + "duration": 1.48, + "compressed_bytes": 3173 + }, + { + "name": "ç�°å‹’塔德钱兔", + "src": "ç�°å‹’塔德钱兔.mp3", + "path": "dir23/clip28.opus", + "samples": 21280, + "duration": 1.33, + "compressed_bytes": 2788 + }, + { + "name": "盗窃会ä¸�会", + "src": "盗窃会ä¸�会.mp3", + "path": "dir23/clip29.opus", + "samples": 25280, + "duration": 1.58, + "compressed_bytes": 3303 + }, + { + "name": "真正的鳗", + "src": "真正的鳗.mp3", + "path": "dir23/clip30.opus", + "samples": 21920, + "duration": 1.37, + "compressed_bytes": 2713 + }, + { + "name": "英文å��", + "src": "英文å��.mp3", + "path": "dir23/clip31.opus", + "samples": 17920, + "duration": 1.12, + "compressed_bytes": 2189 + }, + { + "name": "蔡å¾�å�¤", + "src": "蔡å¾�å�¤.mp3", + "path": "dir23/clip32.opus", + "samples": 12640, + "duration": 0.79, + "compressed_bytes": 1424 + }, + { + "name": "谢谢鸡", + "src": "谢谢鸡.mp3", + "path": "dir23/clip33.opus", + "samples": 228640, + "duration": 14.29, + "compressed_bytes": 22622 + }, + { + "name": "食ä¸�食ä»�", + "src": "食ä¸�食ä»�.mp3", + "path": "dir23/clip36.opus", + "samples": 25280, + "duration": 1.58, + "compressed_bytes": 3375 + }, + { + "name": "鸡你实在太美", + "src": "鸡你实在太美.mp3", + "path": "dir23/clip37.opus", + "samples": 33440, + "duration": 2.09, + "compressed_bytes": 4152 + } + ] + } +] diff --git a/assets/cyberyao/LICENSE b/assets/cyberyao/LICENSE new file mode 100644 index 0000000..9f5d660 --- /dev/null +++ b/assets/cyberyao/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 FoloToy + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/assets/cyberyao/interpret-request.ogg b/assets/cyberyao/interpret-request.ogg new file mode 100644 index 0000000..a08e940 Binary files /dev/null and b/assets/cyberyao/interpret-request.ogg differ diff --git a/assets/fonts/Caveat-OFL.txt b/assets/fonts/Caveat-OFL.txt new file mode 100644 index 0000000..6e5220c --- /dev/null +++ b/assets/fonts/Caveat-OFL.txt @@ -0,0 +1,93 @@ +Copyright 2014 The Caveat Project Authors (https://github.com/googlefonts/caveat) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/assets/fonts/Caveat-latin.woff2 b/assets/fonts/Caveat-latin.woff2 new file mode 100644 index 0000000..49c4e55 Binary files /dev/null and b/assets/fonts/Caveat-latin.woff2 differ diff --git a/assets/fonts/Caveat.ttf b/assets/fonts/Caveat.ttf new file mode 100644 index 0000000..19b97f1 Binary files /dev/null and b/assets/fonts/Caveat.ttf differ diff --git a/assets/fonts/NotoSansSC-brand-latin.woff2 b/assets/fonts/NotoSansSC-brand-latin.woff2 new file mode 100644 index 0000000..6cfd18d Binary files /dev/null and b/assets/fonts/NotoSansSC-brand-latin.woff2 differ diff --git a/assets/fonts/OFL.txt b/assets/fonts/OFL.txt new file mode 100644 index 0000000..1c9f432 --- /dev/null +++ b/assets/fonts/OFL.txt @@ -0,0 +1,93 @@ +Copyright 2014-2021 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source' + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +https://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/assets/fonts/Orbitron-OFL.txt b/assets/fonts/Orbitron-OFL.txt new file mode 100644 index 0000000..91ede45 --- /dev/null +++ b/assets/fonts/Orbitron-OFL.txt @@ -0,0 +1,93 @@ +Copyright 2018 The Orbitron Project Authors (https://github.com/theleagueof/orbitron), with Reserved Font Name: "Orbitron" + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/assets/fonts/Orbitron-latin.woff2 b/assets/fonts/Orbitron-latin.woff2 new file mode 100644 index 0000000..4e1c14e Binary files /dev/null and b/assets/fonts/Orbitron-latin.woff2 differ diff --git a/assets/fonts/Orbitron.ttf b/assets/fonts/Orbitron.ttf new file mode 100644 index 0000000..374f46f Binary files /dev/null and b/assets/fonts/Orbitron.ttf differ diff --git a/assets/fonts/SourceHan-OFL.txt b/assets/fonts/SourceHan-OFL.txt new file mode 100644 index 0000000..3ff0cca --- /dev/null +++ b/assets/fonts/SourceHan-OFL.txt @@ -0,0 +1,96 @@ +Copyright 2014-2025 Adobe (http://www.adobe.com/), with Reserved Font +Name 'Source'. Source is a trademark of Adobe in the United States +and/or other countries. + +This Font Software is licensed under the SIL Open Font License, +Version 1.1. + +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font +creation efforts of academic and linguistic communities, and to +provide a free and open framework in which fonts may be shared and +improved in partnership with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply to +any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software +components as distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, +deleting, or substituting -- in part or in whole -- any of the +components of the Original Version, by changing formats or by porting +the Font Software to a new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, +modify, redistribute, and sell modified and unmodified copies of the +Font Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, in +Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the +corresponding Copyright Holder. This restriction only applies to the +primary font name as presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created using +the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/assets/fonts/ui14-characters.txt b/assets/fonts/ui14-characters.txt new file mode 100644 index 0000000..3532c52 --- /dev/null +++ b/assets/fonts/ui14-characters.txt @@ -0,0 +1 @@ + !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~·•《》一七万丈三上下ä¸�丑专且世丘业东ä¸�丢两个中为主么之乌ä¹�ä¹�也习书买乱了事二云互亚些亡交产亨亩享京亮亲人什ä»�今ä»�从仔他代以们价份伊休会伞传伤但ä½�低体何余佛作你使ä¾�便ä¿�信俩修候å�‡å�šå�œå�¥å�¶å‚¨å‚»åƒ�儿兄先光克兔党入全八公兮兰关兴兵其典养兼内å†�冒写农冰冲况准出击刀刃分切划刘刚åˆ�判利别到制刺刻å‰�å‰�剑剥劈力办功加务动助勒動包匆化北匙区医å�ƒå�‡å�Šå�Žå��å�•å�–å�—å�šå�œå�¡å�¢å�°å�±åŽ‰åŽŒåŽŸåŽ¦åŽ¨åŽ»å�‚å�ˆå�‹å�Œå�‘å�–å�—å�˜å�£å�¤å�¥å�ªå�«å�®å�¯å�°å�·å�¸å�½å�ƒå�ˆå�‰å��å�Žå��å�‘å�“å�—å�žå�§å�¬å�¯å�´å�¸å�¼å‘€å‘ƒå‘†å‘�呕员呜呢呦呵呺呼命咆和咕咚咦咧咩咪咯咳咻咽哄哇哈哎哒哟哥哦哩哪哭哮哼哽å”�å”�唔唱啊啥啦啧啵啾喂喃喊喔å–�喵喷喽嗨嗬嗯嗳嗷嘉嘎嘘嘛嘟嘻嘿噗噜噢器囊四回因团国圈在地圳å�€å�Žå��å�—å�šå�¡å�¤å�·åžƒåŸŽåŸºå¡”填墙声处备å¤�夕外多够大天太失头夺奇奈奋奎å¥�女奶好如妈妖妙妲始姑委姥å¨�娃娇娘婆嫌å­�字存学å®�它守安完宕定宜å®�实客宣害家容密对å°�å°†å°�少尔尖尬就尴尼尿局å±�居屈å±�属山岛岩峡崩å·�州工左己已巴市布帅师希å¸�带帮常幕干平年并广庄庆åº�库应底店度座康建开异弄弟张强当录彩影彼待很å¾�得微德心必志忘忙快怀怂怎怕æ€�性怪æ�¯æ�°æ�¶æ�¼æƒ…惊惠想æ„�愚感懂æˆ�æˆ�我或战房所手æ‰�打扔托扣扫扮扯找技把投抖护抱抽拉拔招拜择拽拿æŒ�按挑挡挥挨æ��æ�Ÿæ�¢æ�®æ�·æŽ�掖接控推æ��æ��æ�´æ�œæ�žæ‘Šæ‘©æ‘¸æ’’撤播擦支收改放故效救敢散敬数敲敷文斗料斤断斯新方旅æ—�无既日旧早时昆昌明春昨是显晨普智暂曲更曼最月有朋æœ�朗木未本术朵机æ�€æ�‘æ�Ÿæ� æ�¡æ�¥æ�­æ�¾æ�¿æž�果枪架柚柠查柱标样核格桃案æ¡�桑档梅梦检棒棚楼模檬次欢欧欸欺款歉歌止正此步武歧歪死段比毙毛民气氮水永汉汕江汰汽沈沉沙没沧泉法泡波泣注洗洛津洲æµ�测济æµ�浩浪海消涨淘深混添清温游æº�溜溪滋滚满滨漂演漫漳ç�«ç�­ç�¯ç�°ç�µç‚«ç‚¸ç‚¹çƒŸçƒ¦çƒ§çƒ­ç„¶ç…žç†Ÿçˆ¬çˆ±çˆ·çˆ¸çˆ¹ç‰‡ç‰ˆç‰Œç‰™ç‰›ç‰§ç‰©ç‰¹çŠŠçŠ¯ç‹‚ç‹—ç‹¡ç‹¼çŒŽçŒªçŒ«çŒ´çŒ¾çŽ‰çŽ‹çŽ›çŽ©çŽ¯çŽ°ç� ç�ƒç‘žç“œç“¦ç”˜ç”šç”Ÿç”¨ç”±ç”µç”»ç•Œç–¯ç–¼ç—…痞瘪癫白百的皮盖盗盘目直相盾看真眼ç�€ç��ç�›ç�¡çžŒçžŽçž§çŸ¥çŸ­çŸ³ç �ç �硬确碰示礼神祥ç¦�离ç§�ç§�科秒秤移程ç¨�稼穴空çª�窃立站竟端笑笔符笨第等答简算米类粑粮精糖系索紧紫红级纯纳纸线练组终ç»�ç»�绑结给络ç»�统继绫续维绵综绿缓编缺网置羊美羞翻è€�考者而耶è�†è�Šè�”肃肚股肥肯育肺胆胸能脑脖脚脸脾腊腰膜自致舌舒色艹艺艾节芒花è‹�è‹�苦英茬è�‰èŽŽèŽžèŽ«èŽ²èŽ·è�‡è�œè�Œè�¨è�½è‘±è’‚蒙蒸è“�蔡蕉藻虹蚌蛋蛛蛮蜘è�¶èžºè¡Œè¡�表袋被è£�装西è¦�è§�视览觉角计认讨让议讯记讲论设è¯�评è¯�试诗è¯�诡该语说诶请诺读è°�调谎谢è±�豆象豪è´�负财贤败质贵费贺贼资赋赌赖赛赢走赴赶起超越趣足跑跟跪路跳跺身躺车转轮轻较辆辈输辣边辽达过迎返还这进远连迪迷迹退é€�逆选通逼é�“那邵郑部都é…�酷酸里é‡�野é‡�金钟钥钱钾é“�银锅错锡键长门闪闭问间闸闻队防阳阵阿陀险éš�难雅集雨雪零雷霆é�’é�žé�¢éž‹éŸ³é¡µé¡¶é¡¹é¡ºé¡»é¢‘颗题é¢�风食饭饿首香马验骑骚骨高鬼魂魔鱼é²�鳗鸟鸡鸭鹅麟麦黄黎黑默鼠鼻é½�é¾™ï¼�(),:?~ diff --git a/assets/images/coloros-muyu/background-240x320.png b/assets/images/coloros-muyu/background-240x320.png new file mode 100644 index 0000000..8edf3a1 Binary files /dev/null and b/assets/images/coloros-muyu/background-240x320.png differ diff --git a/assets/images/cyber-badge/badge-cards-preview.png b/assets/images/cyber-badge/badge-cards-preview.png new file mode 100644 index 0000000..7bcc59b Binary files /dev/null and b/assets/images/cyber-badge/badge-cards-preview.png differ diff --git a/assets/images/cyber-badge/badge-design-preview.png b/assets/images/cyber-badge/badge-design-preview.png new file mode 100644 index 0000000..3c99ac3 Binary files /dev/null and b/assets/images/cyber-badge/badge-design-preview.png differ diff --git a/assets/images/cyber-badge/badge-games-preview.png b/assets/images/cyber-badge/badge-games-preview.png new file mode 100644 index 0000000..d47b5b5 Binary files /dev/null and b/assets/images/cyber-badge/badge-games-preview.png differ diff --git a/assets/images/cyber-badge/badge-home-preview.png b/assets/images/cyber-badge/badge-home-preview.png new file mode 100644 index 0000000..89209e6 Binary files /dev/null and b/assets/images/cyber-badge/badge-home-preview.png differ diff --git a/assets/images/cyber-badge/badge-qr-preview.png b/assets/images/cyber-badge/badge-qr-preview.png new file mode 100644 index 0000000..b5825b8 Binary files /dev/null and b/assets/images/cyber-badge/badge-qr-preview.png differ diff --git a/assets/images/cyber-badge/badge-settings-preview.png b/assets/images/cyber-badge/badge-settings-preview.png new file mode 100644 index 0000000..ebeebcf Binary files /dev/null and b/assets/images/cyber-badge/badge-settings-preview.png differ diff --git a/assets/images/cyber-badge/badge-terminal-preview.png b/assets/images/cyber-badge/badge-terminal-preview.png new file mode 100644 index 0000000..cf866d5 Binary files /dev/null and b/assets/images/cyber-badge/badge-terminal-preview.png differ diff --git a/assets/images/cyber-badge/badge-wifi-preview.png b/assets/images/cyber-badge/badge-wifi-preview.png new file mode 100644 index 0000000..3c5b14d Binary files /dev/null and b/assets/images/cyber-badge/badge-wifi-preview.png differ diff --git a/assets/images/cyber-badge/demo-brand.rgb565 b/assets/images/cyber-badge/demo-brand.rgb565 new file mode 100644 index 0000000..d4db426 --- /dev/null +++ b/assets/images/cyber-badge/demo-brand.rgb565 @@ -0,0 +1 @@ +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaÃXÃXÃXÃXÃXaAAAAAAA£@ÃXÃXÃXÃXÃXÃX£P£@b(AAAAAAAAAAAaÃXÃXÃXÃXÃXaAAAAAAAAAAaÄ`‰&¡%‘äp‚0AAAAAAAAAaÃXÃXÃXÃXÃXaAAAAAAA£@ÃXÃXÃX£@AAAAA‚8ÃXÃXÃXÃXbAAAAAaÃXÃXÃXÃXÃXaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAÄ`¨ñ¨ñ¨ñ¨ñ¨ñähAAAAAAAF±¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ‡Ù‰b AAAAAAAAÄ`¨ñ¨ñ¨ñ¨ñ¨ñähAAAAAAAAAåx¨é¨ñ¨ñ¨ñ¨ñ¨ñ¨ñgÁ£HAAAAAAAÄ`¨ñ¨ñ¨ñ¨ñ¨ñähAAAAAAAF±¨ñ¨ñ¨ñF©AAAA‚(ˆá¨ñ¨ñ¨ñF±AAAAAAÄ`¨ñ¨ñ¨ñ¨ñ¨ñähAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAF©¨ñ¨ñ¨ñ¨ñ¨ñF±AAAAAAAF±¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ‡á‚0AAAAAAAF©¨ñ¨ñ¨ñ¨ñ¨ñF±AAAAAAAAF©¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨éäxAAAAAAF©¨ñ¨ñ¨ñ¨ñ¨ñF±AAAAAAAF±¨ñ¨ñ¨ñF©AAAAgÁ¨ñ¨ñ¨ñ‡ÙbAAAAAAF©¨ñ¨ñ¨ñ¨ñ¨ñF±AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA¨é¨ñ¨ñ¨ñ¨ñ¨ñ¨éaAAAAAAF±¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ‡ÙaAAAAAA¨é¨ñ¨ñ¨ñ¨ñ¨ñ¨éaAAAAAAäx¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñÄhAAAAAA¨é¨ñ¨ñ¨ñ¨ñ¨ñ¨éaAAAAAAF±¨ñ¨ñ¨ñF©AAA‰¨ñ¨ñ¨ñ¨é£@AAAAAAA¨é¨ñ¨ñ¨ñ¨ñ¨ñ¨éaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAÃX¨ñ¨ñ¨ñ&¡¨ñ¨ñ¨ñÄXAAAAAAF±¨ñ¨ñ¨ñF¹‚0‚0£@Ä`f¹¨ñ¨ñ¨ñ¨ñähAAAAAÃX¨ñ¨ñ¨ñ&¡¨ñ¨ñ¨ñÄXAAAAAA‡á¨ñ¨ñ¨ñ‡ÑÃX‚(‚0ähgɨñ%™AAAAAAÃX¨ñ¨ñ¨ñ&¡¨ñ¨ñ¨ñÄXAAAAAAF±¨ñ¨ñ¨ñF©AA£H¨ñ¨ñ¨ñ¨ñäpAAAAAAAÃX¨ñ¨ñ¨ñ&¡¨ñ¨ñ¨ñÄXAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA&¡¨ñ¨ñ¨é‚0¨ñ¨ñ¨ñ&¡AAAAAAF±¨ñ¨ñ¨ñF©AAAAAgɨñ¨ñ¨ñ%™AAAAA&¡¨ñ¨ñ¨é‚0¨ñ¨ñ¨ñ&¡AAAAAb(¨ñ¨ñ¨ñ¨ñÄ`AAAAAÄhAAAAAAA&¡¨ñ¨ñ¨é‚0¨ñ¨ñ¨ñ&¡AAAAAAF±¨ñ¨ñ¨ñF©Ab ‡Ù¨ñ¨ñ¨ñF©AAAAAAAA&¡¨ñ¨ñ¨é‚0¨ñ¨ñ¨ñ&¡AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAˆá¨ñ¨ñF¹A‡Ù¨ñ¨ñˆáAAAAAAF±¨ñ¨ñ¨ñF©AAAAA%™¨ñ¨ñ¨ñF±AAAAAˆá¨ñ¨ñF¹A‡Ù¨ñ¨ñˆáAAAAA‚0¨ñ¨ñ¨ñ¨ñ�AAAAAAAAAAAAAˆá¨ñ¨ñF¹A‡Ù¨ñ¨ñˆáAAAAAAF±¨ñ¨ñ¨ñF©AF±¨ñ¨ñ¨ñ‡ÑaAAAAAAAAˆá¨ñ¨ñF¹A‡Ù¨ñ¨ñˆáAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA£H¨ñ¨ñ¨ñ�A&¡¨ñ¨ñ¨ñ£PAAAAAF±¨ñ¨ñ¨ñF©AAAAAF±¨ñ¨ñ¨ñF©AAAA£H¨ñ¨ñ¨ñ�A&¡¨ñ¨ñ¨ñ£PAAAAA¨é¨ñ¨ñ¨ñ¨ñ&¡‚8AAAAAAAAAA£H¨ñ¨ñ¨ñ�A&¡¨ñ¨ñ¨ñ£PAAAAAF±¨ñ¨ñ¨ñF©äp¨ñ¨ñ¨ñ¨éƒ8AAAAAAAA£H¨ñ¨ñ¨ñ�A&¡¨ñ¨ñ¨ñ£PAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA‘¨ñ¨ñ¨ñ£HAÄ`¨ñ¨ñ¨ñ%™AAAAAF±¨ñ¨ñ¨ñF©AAAA£@¨é¨ñ¨ñ¨ñ�AAAA‘¨ñ¨ñ¨ñ£HAÄ`¨ñ¨ñ¨ñ%™AAAAA%™¨ñ¨ñ¨ñ¨ñ¨ñ¨ñgÁÄ`AAAAAAAA‘¨ñ¨ñ¨ñ£HAÄ`¨ñ¨ñ¨ñ%™AAAAAF±¨ñ¨ñ¨ñ‡Ñ¨é¨ñ¨ñ¨ñF©AAAAAAAAA‘¨ñ¨ñ¨ñ£HAÄ`¨ñ¨ñ¨ñ%™AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA‡Ù¨ñ¨ñ¨éAAb(¨ñ¨ñ¨ñ‡ÙAAAAAF±¨ñ¨ñ¨ñgÉähähåxgÁ¨ñ¨ñ¨ñ¨ñ¨ñ‚0AAAA‡Ù¨ñ¨ñ¨éAAb(¨ñ¨ñ¨ñ‡ÙAAAAAbgѨñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñˆá�AAAAAA‡Ù¨ñ¨ñ¨éAAb(¨ñ¨ñ¨ñ‡ÙAAAAAF±¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨é‚0AAAAAAAA‡Ù¨ñ¨ñ¨éAAb(¨ñ¨ñ¨ñ‡ÙAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA‚8¨ñ¨ñ¨ñF¹AAA‡Ñ¨ñ¨ñ¨ñ£@AAAAF±¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ‰AAAA‚8¨ñ¨ñ¨ñF¹AAA‡Ñ¨ñ¨ñ¨ñ£@AAAAAb F±¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñgÉbAAA‚8¨ñ¨ñ¨ñF¹AAA‡Ñ¨ñ¨ñ¨ñ£@AAAAF±¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñf¹AAAAAAA‚8¨ñ¨ñ¨ñF¹AAA‡Ñ¨ñ¨ñ¨ñ£@AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA�¨ñ¨ñ¨ñ�AAA%™¨ñ¨ñ¨ñ‰AAAAF±¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ‰AAAAA�¨ñ¨ñ¨ñ�AAA%™¨ñ¨ñ¨ñ‰AAAAAAA£@F©¨é¨ñ¨ñ¨ñ¨ñ¨ñ¨ñF¹AAA�¨ñ¨ñ¨ñ�AAA%™¨ñ¨ñ¨ñ‰AAAAF±¨ñ¨ñ¨ñ¨ñ¨ñ¨é¨ñ¨ñ¨ñ¨ñÄ`AAAAAA�¨ñ¨ñ¨ñ�AAA%™¨ñ¨ñ¨ñ‰AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgɨñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñgÑAAAAF±¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ%™AAAAAAgɨñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñgÑAAAAAAAAAb(‰ˆá¨ñ¨ñ¨ñ¨ñ¨ñ‚8AAgɨñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñgÑAAAAF±¨ñ¨ñ¨ñ¨ñ¨ñäpF©¨ñ¨ñ¨ñ‡ÙaAAAAAgɨñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñgÑAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA‚(¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ‚0AAAF±¨ñ¨ñ¨ñF±aaF¹¨ñ¨ñ¨ñˆáaAAAA‚(¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ‚0AAAAAAAAAAa&¡¨ñ¨ñ¨ñ¨ñähA‚(¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ‚0AAAF±¨ñ¨ñ¨ñ¨ñF©A‚(¨é¨ñ¨ñ¨ñ‘AAAA‚(¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ‚0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAäp¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñäxAAAF±¨ñ¨ñ¨ñF©AA‚0¨é¨ñ¨ñ¨ñ‘AAAAäp¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñäxAAAAƒ8AAAAAAb¨ñ¨ñ¨ñ¨ñäpAäp¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñäxAAAF±¨ñ¨ñ¨ñ‡ÙbAA‰¨ñ¨ñ¨ñ¨é‚0AAAäp¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñäxAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAf¹¨ñ¨ñ¨ñ‡Ùähähähähäh¨ñ¨ñ¨ñ¨ñgÁAAAF±¨ñ¨ñ¨ñF©AAA%™¨ñ¨ñ¨ñ¨é‚(AAAf¹¨ñ¨ñ¨ñ‡Ùähähähähäh¨ñ¨ñ¨ñ¨ñgÁAAA£@¨éF¹‚8AAAA£H¨ñ¨ñ¨ñ¨ñÃXAf¹¨ñ¨ñ¨ñ‡Ùähähähähäh¨ñ¨ñ¨ñ¨ñgÁAAAF±¨ñ¨ñ¨ñF©AAAa‡Ù¨ñ¨ñ¨ñF¹AAAf¹¨ñ¨ñ¨ñ‡Ùähähähähäh¨ñ¨ñ¨ñ¨ñgÁAAAAAAAAAAAAAAAAAAAAAAAAAAAAAb¨é¨ñ¨ñ¨ñ£8AAAAAÃX¨ñ¨ñ¨ñ¨ñb AAF±¨ñ¨ñ¨ñF©AAAb(¨é¨ñ¨ñ¨ñF©AAb¨é¨ñ¨ñ¨ñ£8AAAAAÃX¨ñ¨ñ¨ñ¨ñb Ab(‡á¨ñ¨ñ¨ñgÁ‰äx%™ˆé¨ñ¨ñ¨ñˆáab¨é¨ñ¨ñ¨ñ£8AAAAAÃX¨ñ¨ñ¨ñ¨ñb AAF±¨ñ¨ñ¨ñF©AAAAÄ`¨ñ¨ñ¨ñ¨ñÄXAb¨é¨ñ¨ñ¨ñ£8AAAAAÃX¨ñ¨ñ¨ñ¨ñb AAAAAAAAAAAAAAAAAAAAAAAAAAAAÄ`¨ñ¨ñ¨ñˆáAAAAAAb¨ñ¨ñ¨ñ¨ñähAAF±¨ñ¨ñ¨ñF©AAAA‘¨ñ¨ñ¨ñ¨ñ£HAÄ`¨ñ¨ñ¨ñˆáAAAAAAb¨ñ¨ñ¨ñ¨ñähAF©¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñäpAÄ`¨ñ¨ñ¨ñˆáAAAAAAb¨ñ¨ñ¨ñ¨ñähAAF±¨ñ¨ñ¨ñF©AAAAAgÁ¨ñ¨ñ¨ñ‡ÙaÄ`¨ñ¨ñ¨ñˆáAAAAAAb¨ñ¨ñ¨ñ¨ñähAAAAAAAAAAAAAAAAAAAAAAAAAAAAF©¨ñ¨ñ¨ñF±AAAAAAAgɨñ¨ñ¨ñF±AAF±¨ñ¨ñ¨ñF©AAAAb ¨é¨ñ¨ñ¨ñgÉAF©¨ñ¨ñ¨ñF±AAAAAAAgɨñ¨ñ¨ñF±Aa&¡¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ‰AAF©¨ñ¨ñ¨ñF±AAAAAAAgɨñ¨ñ¨ñF±AAF±¨ñ¨ñ¨ñF©AAAAA£@¨ñ¨ñ¨ñ¨ñ‰F©¨ñ¨ñ¨ñF±AAAAAAAgɨñ¨ñ¨ñF±AAAAAAAAAAAAAAAAAAAAAAAAAAAA¨é¨ñ¨ñ¨ñäpAAAAAAA‘¨ñ¨ñ¨ñ¨éaAF±¨ñ¨ñ¨ñF©AAAAA�¨ñ¨ñ¨ñ¨ñäp¨é¨ñ¨ñ¨ñäpAAAAAAA‘¨ñ¨ñ¨ñ¨éaAA‚8&¡ˆá¨ñ¨ñ¨ñ¨ñ¨éF¹£HAAA¨é¨ñ¨ñ¨ñäpAAAAAAA‘¨ñ¨ñ¨ñ¨éaAF±¨ñ¨ñ¨ñF©AAAAAA&¡¨ñ¨ñ¨ñ¨é¨é¨ñ¨ñ¨ñäpAAAAAAA‘¨ñ¨ñ¨ñ¨éaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA‚0£H£Pƒ8bAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA¢bAAAAAAAAAAAAAAAAAAAÃbAAA‚bAAAAAAAA‚AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAjR k k k k k k«ZAAAAAAAAAAAAAAAAAAA1ŒIJAAAAAAAe)0ŒA!MkA cf1AAAAðƒ†1a$!AMkiRAE)Aa†1†1†1†1Ó¤Ž{†1†1†1†1bAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAïƒ,kèAèAèAèA cQ”AAA-kŒŒŒ³¤³œŒŒŒmsAAAªZÓ¤ó¤ó¤Ó¤Ó¤ó¤ç9AAAAMs«ZAËZmsA«Z cAAAAðƒ†1Ã’œ‚MkiRä ’œb£Ó¤msmsŽ{’œÏƒmsmsmsÓ¤ÃAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAïƒnsjRjRjRjRmsQ”AAA†1èAèAèAó¤Ó¤èAèAèA¦1AAA«ZmsÃÃÃÃŒèAAAAE)ó¤Ã‚’œf1A!³œÃA†1 có¤Q”IJnsBMkiRËZËZAÃŽ{E)E)1Œ1ŒE)E)E)E)Ž{ãAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABŠRŠRŠRŠRŠRŠRIJAAAAAAAms kAAAAAAA«Zó¤Ï{Ï{Ï{Ï{ó¤èAAAbÓ¤ó¤AMs®{AAAMk®{a%)ŠRó¤¯{Ç9†1Ç9MkiR k£A$!nsnsó¤ó¤Ž{nsr”ó¤ŽsnsE)AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAÃËZËZËZËZËZËZËZËZE)AAAAAAms kAAAAAAA«Z1Œ§9§9§9§9³¤ªZq”ÊRó¤Ó¤)Jó¤ cŠRŠRŠR¯{Ó¤ŠRAf1󤳤E)nsnsó¤ó¤nsnsbAAŽsó¤ìbBŠR’œÇ9AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAe)Ó¤ŠRŠRŠRŠRŠRŠR’œBAAAAAAms kAAAAAAA«Zó¤«Z«Z«Z«Zó¤ó¤iRA!ç9’œ¢¦1ëbó¤Ž{ëbó¤B‚Aìbó¤Q”ËZBBBB)Jó¤‚b%)¦1ìb’œó¤ó¤ó¤Ž{iRä AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAe)’œAAËbIJAA1ŒBAAAAAAms kAAAAA‚ŠRó¤ó¤ŠRŠRŠR,kó¤Q”AAA$!’œAAbÓ¤¢Ar”E)A‚1ŒŒèAjR†1†1†1†1Ç9ó¤‚bns kjR¦1ŠRBaf1ëbjRAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAe)’œAAŽ{ªZAA1ŒBAAAAAAms kAAAAA‚«Zìbìb«Z«Zr”ó¤ó¤èAAAA$!’œAA¦11ŒAA³¤!AËZ«Zðƒ†1ÃÏ{Ï{Ï{Ï{ðƒó¤‚Ç9ïƒïƒïƒŒó¤ó¤ðƒïƒïƒïƒÇ9AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA%)ŒAE)Ó¤Ç9§9b-k¦1AAAAAAns-kAAAAAAAAA†1ðƒðƒ$!¯{èAAAA$!’œAA¯{ŠRA‚ó¤¢A¦1¢ðƒ†1AAAAA‚󤂂!!èA²œó¤ó¤³œB!!¢AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAb†1-k²œ)Je)¯{’œ,kE)A(Jó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤iRAãIJ1Œ1ŒB!!ðƒÇ9AAA$!’œAËZQ”‚£Ç9’œAAAAðƒ†1ŠR1Œ1Œ1Œ1Œq”󤂣B®{1Œ¦1 cËZ†11ŒÏƒIJãAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAb0ŒŒŠZÃAAAã«Zq”ÂÃÃÃÃÃÃÃÃÃÂ$!’œMk†1AAσ’œÏƒÃAAA$!’œ!ïƒäAŽ{rœiRAAAAðƒ†1ãe)e)e)e)†1²œ‚e)Žsç9aA cËZAAÇ9Žs†1AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA \ No newline at end of file diff --git a/assets/images/cyber-badge/demo-card.rgb565 b/assets/images/cyber-badge/demo-card.rgb565 new file mode 100644 index 0000000..ef3a1e2 --- /dev/null +++ b/assets/images/cyber-badge/demo-card.rgb565 @@ -0,0 +1 @@ +‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚IR c c c c c(J‚‚‚e1msïƒ,kã ‚‚‚‚IR ce1‚‚‚‚‚‚e1msïƒ,kã ‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚T­;ï;ï;ï;ï;ï󤂂„;ç;ï;ï;ïúÞªZ‚‚‚T­;ïÊb‚‚‚‚‚„;ç;ï;ï;ïúÞªZ‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚T­;ïq”ëbëbëbJ‚,k;ïúæms(JPŒ;ïç¦9‚‚T­;ïÊb‚‚‚‚,k;ïúæms(JPŒ;ïç¦9‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚T­;ïÊb‚‚‚‚‚XÎ;ï c‚‚‚‘”;ïÒœ‚‚T­;ïÊb‚‚‚‚XÎ;ï c‚‚‚‘”;ïÒœ‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚T­;ïÊb‚‚‚‚$);ïç‚‚‚B;ï™Ö‚‚T­;ïÊb‚‚‚$);ïç‚‚‚B;ï™Ö‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚T­;ïúæÚÞÚÞÚÞ¢çA;ï™Ö‚‚‚‚$);ï;ç‚‚T­;ïÊb‚‚‚çA;ï™Ö‚‚‚‚$);ï;ç‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚T­;ïXÎÖ½Ö½Ö½¢¦9;ïÚÞ‚‚‚‚e1;ïûæ‚‚T­;ïÊb‚‚‚¦9;ïÚÞ‚‚‚‚e1;ïûæ‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚T­;ïÊb‚‚‚‚à ç;ïe1‚‚‚Ëb;ï÷Å‚‚T­;ïÊb‚‚‚à ç;ïe1‚‚‚Ëb;ï÷Å‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚T­;ïÊb‚‚‚‚‚4­;ïÒœ‚‚à Æ;ï®{‚‚T­;ïÊb‚‚‚‚4­;ïÒœ‚‚à Æ;ï®{‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚T­;ïÊb‚‚‚‚‚…1úÞ;ï÷ŲœxÖ;ï7ÆÂ‚‚T­;ïÆuµuµuµLk…1úÞ;ï÷ŲœxÖ;ï7ÆÂ‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚T­;ïÊb‚‚‚‚‚‚Æ9¶½;ï;ïçó¤)‚‚‚T­;ï;ï;ï;ï;ïPŒ‚Æ9¶½;ï;ïçó¤)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚!†9à ‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚!†9à ‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚IR cJ‚‚‚‚(J c(J‚‚‚‚‰R ciR‚‚‚‚IR ce1‚‚E1 cëb‚‚IR c c c c cJ‚IR c c cªZ†9‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚T­;ïX΂‚‚‚¹Ö;ï3­‚‚‚à ûæ;ïúÞ¢‚‚‚T­;ïÊb‚Â÷Å;ïms‚‚T­;ï;ï;ï;ï;ïÒœ‚T­;ï;ï;ï;ï;ïuµã ‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚T­;ï;ïJ‚‚iR;ï;ï3­‚‚‚ÊZ;ïÖ½;ï‰R‚‚‚T­;ïÊb‚±œ;ï󤂂‚T­;ïq”ëbëbëbB‚T­;ï„iR k7Æ;ï„‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚T­ÚÞúæ‘”‚‚Òœ™Öç3­‚‚‚ó¤;ïiR;ﲜ‚‚‚T­;ïÊb c;ïÆÃ ‚‚‚T­;ïÊb‚‚‚‚‚T­;ïÊb‚‚ŠZ;ïuµ‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚T­ç¥ÚÞ¢à úÞÒœ;ï3­‚‚¢ÚÞÆ‚¹ÖºÞ‚‚‚T­;ïïƒúæ;ç†9‚‚‚‚T­;ïïƒ(J(J(J‚‚T­;ïÊb‚‚�s;壟‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚T­;ï,k;ïªZÊZ;ï c;ï3­‚‚iR;ï0Œ‚Òœ;ïHJ‚‚T­;ï;ç;ï;ï,k‚‚‚‚T­;ï;ï;ï;ïç‚‚T­;ï4­0Œ;ï;ï;ï‰R‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚T­;ï†9ÚÞó¤ó¤7ÎçA;ï3­‚‚±œ;ï0ŒHJÒœ;ïq”‚‚T­;ï;ïT­;ç¹Þã ‚‚‚T­;ï¥ÏƒÏƒÎ{‚‚T­;ï;ï;ï;ï;ïÊZ‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚T­;ïe1q”úÞúÞ®{çA;ï3­‚‚¹Þ;ï;ï;ï;ï;ï™Ö‚‚T­;ï¶½¢Òœ;ïq”‚‚‚T­;ïÊb‚‚‚‚‚T­;ï,ke1úÞ;ïB‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚T­;ïe1çA;ï;çE1çA;ï3­‚(J;ï;ïÊbÊbÊb;ï;ïB‚T­;ïÊb‚$)úÞç¦9‚‚T­;ïÊb‚‚‚‚‚T­;ïÊb‚�s;ïÖ½‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚T­;ïe1‚7Εµ‚çA;ï3­‚PŒ;ï�s‚‚‚0Œ;ï0Œ‚T­;ïÊb‚‚®{;ïµµ‚‚T­;ïÆuµuµuµPŒ‚T­;ïÊb‚¢xÎ;ïëb‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚T­;ïe1‚à ¢‚çA;ï3­‚xÖ;ï¦9‚‚‚iR;ïX΂T­;ïÊb‚‚¢XÎ;ïëb‚T­;ï;ï;ï;ï;ïÖ½‚T­;ïÊb‚‚ëb;ïyÖà ‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚%)«Z‚‚‚-kσëbŒJ‚‚‚à kà ‚‚‚‚’œèA‚‚‚)ÇAÇAÇAÇAä ÇAÇAÇAÇAÇAÇAä ‚‚E1Ëb£Ç9’œä à ns)‚‚‚‚‚Ž{jR‚‚‚ÇAèAèA(J‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚)Q”Ms‚‚Ó¤ó¤-kó¤Ms‚‚‚ïƒ1Œ!‚‚‚Ó¤J‚‚‚èAŒó¤Ó¤Œ§9’œó¤’œ’œó¤³œ†9‚‚ìbðƒ‚jR’œ‚‚-k1ŒÃ ‚£«Z«Z’œó¤«Z«Zä ³¤0ŒŒó¤ÇA‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚‚)ïƒä ‚0ŒèA‚ëbMs‚‚‚‚£Ž{§9‚‚‚Ó¤J‚‚‚‚ä Ó¤)‚‚à ó¤ä à ó¤)‚‚ä Ó¤ŠZ)σ1”))%)Ëb%)££ns1”MsMs0ŒÏƒ!³¤%)ÇA’œ£‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚‚‚‚‚¦9Ó¤)‚ËbŽ{ä £‚‚‚‚‚‚‚‚Ó¤J‚‚‚‚èAQ”‚‚‚à ó¤ä à ó¤)‚‚ìjó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤E1‚ä ³¤E)‚1”IR‚³¤%)Msìb‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚ŠR’œó¤)JèA³¤«Z‚‚§9’œÓ¤JIR’œó¤ó¤%)σσσó¤ó¤ÏƒÏƒIJ‚ïƒó¤èAèA£à ó¤ä à ó¤)‚‚!%)ä ÇAó¤èAä ä ä ä ä £‚‚Ž{IR†1’œ£‚³¤f1³œ%)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚)§9Ó¤IRÃìbÇAÇAÇAÇAIR%)‚%)ÇAσr”ä ËbËbËbó¤Q”ËbËb§9ä ó¤ó¤ðƒó¤JŽ{ó¤¯{Ž{ó¤ÏƒB‚‚‚‚Ž{ó¤Ž{n{n{Œnsà ‚)JÓ¤Ó¤Ó¤ó¤ó¤Ó¤ŠZ³¤†9r”§9‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚‚ïƒIR£’œó¤Q”Q”Q”ó¤-k‚‚‚ŠZŒ‚‚‚‚Ó¤J‚‚‚Ëbó¤«Z‚ó¤èAMsó¤-k-kó¤nsÇA‚‚‚%)ó¤ó¤ËbËbËbó¤r”‚‚à %)%)%)%)%)%)à ³¤%)èA1”‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚‚ïƒIR‚ÇArœÃ ‚E)Ó¤E1‚‚‚ŠZŒ‚‚‚‚Ó¤J‚‚‚§9Ž{«Z‚ó¤ä E)Ó¤£à ó¤)‚‚‚£σr”rœŠR‚E1Ó¤(J‚‚‚ìbðƒðƒðƒðƒ®{‚³¤%)£³¤E)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚‚ïƒIRçA‚ns¯{%)Q” k‚‚‚‚ŠZŒ)f1‚‚Ó¤J‚‚‚‚ìb«Z‚ó¤ä èAQ”‚à ó¤)‚‚‚MsÓ¤†1†9Ó¤ìb’œŽ{‚‚‚‚Ž{MsèAèAìb’œ‚³¤%)£³œf1‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚‚0Œó¤Q”£Ãó¤ó¤Q”£‚‚‚‚ŠZ󤲜jR‚‚Ó¤J‚‚‚‚ìbó¤-kó¤ä -kms‚à ó¤)‚!¯{Ó¤èA‚‚¯{ó¤ó¤)‚‚‚‚Ž{ŠZ‚‚èA’œ‚³¤Ëb’œQ”£‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚E)ó¤ó¤%))J¯ƒó¤ó¤Ó¤Ms§9£‚£ó¤ó¤J‚‚‚Ó¤J‚‚‚‚ìbÓ¤«Z«Z%)’œÇA‚à ó¤)‚§91Œ†9ä IRŒ²œnsQ”²œ kÇAÂσó¤nsnsӤ󤂳¤†9§9à ‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)ó¤ó¤ó¤ó¤ó¤ó¤ó¤ó¤%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚à 1”£ŠRQ”Ëb)‚†9ns³œ†9‚‚r”E1‚‚‚‚Ó¤J‚‚‚‚§9†9‚‚IRŽ{‚‚à ó¤)‚‚‚‚,k1”«Z!‚£(JσӤ§9‚¯ƒr”jRjRσӤ‚³¤%)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚‚‚‚£‚‚‚‚‚‚£‚‚‚‚‚‚‚‚‚ä £‚‚‚‚‚‚‚‚‚£‚‚‚ä ‚‚‚‚‚£‚‚‚‚‚‚‚£‚‚££‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%))R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%))R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%))R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%))R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R¨ñ)R)R)R)R%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%))R)R)R)R)R)R)R¨ñ)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R¨ñ¨ñ)R)R)R)R)R)R%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%))R)R)R)R)R)R)R)R)R¨ñ¨ñ)R)R)R)R)R)R)R)R)R)R)R)R)R¨ñ¨ñ¨ñ)R)R)R)R)R)R)R%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%))R)R)R)R)R)R)R)R)R)R¨ñ¨ñ¨ñ¨ñ)R)R)R)R)R)R)R)R)R)R¨ñ¨ñ¨ñ¨ñ)R)R)R)R)R)R)R)R)R%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%))R)R)R)R)R)R)R)R)R)R)R)R¨ñ¨ñ¨ñ¨ñ¨ñ)R)R)R)R)R)R)R¨ñ¨ñ¨ñ¨ñ¨ñ)R)R)R)R)R)R)R)R)R)R)R%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%)%)%))R)R)R)R)R)R)R)R)R)R)R)R)R¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ)R)R)R)R¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ)R)R)R)R)R)R)R)R)R)R)R)R)R%)%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%)%))R)R)R)R)R)R)R)R)R)R)R)R)R)R)R¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ)R)R¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ)R)R)R)R)R)R)R)R)R)R)R)R)R)R%)%)%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%)%)%))R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R%)%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%))R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R%)%)%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚‚E)ŠZIRà ‚(J(JèAE1‚‚‚(J(J(J(J)‚‚†9çA‚‚§9(J(J(J(JÇA‚(JÃJä ‚‚ä èA‚(J(J(J(J)‚‚‚‚†9ìb‚‚‚(J‚‚‚‚†9E)‚‚Æ9)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%)%))R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚)J’œ-kn{¯{£ó¤Ms-kQ”-k‚£ó¤ns-k-kf1‚‚1”’œä ‚iR-kŒQ”-k«Z£ó¤)σŠR‚‚ŠZŽ{£ó¤ns-k-kf1‚‚‚‚Ëb§9‚‚£ó¤)‚‚‚‚¯{σ1”jRf1q”Ž{rœŠZ‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%))R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R%)%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚ä ³œ¦9‚‚££ó¤)‚E1Ó¤‚£ó¤)‚‚‚‚E1ŒMsIR‚‚‚ëbMs‚‚£ó¤)jRσ‚‚σ)J£ó¤)‚‚‚‚‚‚‚󣂂£ó¤)‚‚‚§91Œ‚%)’œ£!‚JQ”‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%))R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚èAQ”‚‚‚‚£ó¤)‚IRrœ‚£ó¤jRJÇA‚‚ËbËbJ¯ƒ‚‚‚ëbMs‚‚£ó¤))Ó¤Ãó¤ä £ó¤jRJÇA‚‚‚‚ä Ž{‚‚‚£ó¤)‚‚‚ŠZMs‚‚’œE)£f1¯ƒìj‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%)%))R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚IRŒ‚‚‚‚£ó¤’œó¤ó¤§9‚£ó¤Ž{MsËb‚‚1”†9ä Ó¤ä ‚‚ëbMs‚‚£ó¤)‚ŒèAèAσ‚£ó¤Ž{MsËb‚‚‚‚)JIR‚‚‚£ó¤)‚‚‚Ëb k‚‚r”†1%)ð‹r”¦9‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%))R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R%)%)%)%)%)%)%)‚‚‚‚‚‚‚‚§9³¤£‚‚‚£ó¤%)jR1Œ£‚£ó¤)‚‚‚E1ó¤’œ’œó¤IJ‚‚ëbMs‚‚£ó¤)‚«Z k-kjR‚£ó¤)‚‚‚‚‚‚ns%)‚‚‚£ó¤)‚‚‚jRms‚‚³œ%)‚‚†9³œ£‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%))R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R%)%)%)%)%)%)‚‚‚‚‚‚‚‚£Q”Ëb‚à jR£ó¤)£1ŒjR‚£ó¤)‚‚‚ËbMs‚‚ŠZ¯{‚‚ëbMs‚‚£ó¤)‚E1Q”q”)‚£ó¤)‚‚‚‚‚‚ðƒ‚‚‚‚£ó¤)‚‚‚f1rœ£†9q”†9E1‚†9Ó¤ä ‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%)%))R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚E1Œ’œÓ¤ kÃó¤)‚ÇA’œä £ó¤Ó¤Ó¤Ó¤jR1ŒB‚‚E)Ó¤ä ‚ëbMs‚‚£ó¤)‚‚Q”Œ‚‚£ó¤Ó¤Ó¤Ó¤jR‚‚†9 k‚‚‚‚£ó¤Ó¤Ó¤Ó¤§9‚ìjq”rœçAçArœQ”’œIR‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%))R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R%)%)%)%)%)%)‚‚‚‚‚‚‚‚‚‚‚ä à ‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚ËbÇA‚‚‚‚‚‚‚‚‚‚‚‚ä £‚‚‚!£‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%))R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R%)%)%)%)%)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚-k£‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%)%))R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R%)%)%)%)%)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%))R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R%)%)%)%)%)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%))R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R%)%)%)%)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%)%))R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R%)%)%)%)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%))R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R%)%)%)%)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%)%))R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R%)%)%)%)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%))R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R%)%)%)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%))R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R%)%)%)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%)%))R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R%)%)%)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%))R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R%)%)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%))R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R%)%)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%)%))R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R%)%)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%))R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R%)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%))R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R%)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚%)%))R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R)R%)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ¨ñ‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚ä`Ã@‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚F±y‚‚F±‡ÉgÉf±q‚‚‚‚‚‚‚‚gÉ£0‚‚‚F±F©‚‚‚&‘%‰‚‚‚äXgÁ¨é‡Ñäh‚‚‚‚‚‚äPF©F±q‚‚£ %‰F±�‚‚‚‚‚ÄP&™Ä@‚‚Ã8F¡F±äh‚‚‚‚‚‚‚£ %‰F±�‚‚‚‚ÄH&‘Ã@‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‡É%‘‚‚‡ÉF©äX�ˆáf±‚‚‚‚‚‚£0‡É‚‚‚‚‡É¨ñä`‚‚F©F¡‚‚ä`¨ñ&‘ÄPqg¹‚‚‚‚‚äPˆáy�¨éy‚F±gÁi‡Ñ%‰‚‚‚£ ‡Ù¨éä`‚£(ˆá&™äh‡Ùy‚‚‚‚‚‚F±gÁi‡Ñ%‰‚‚&‘ˆá¨ñä`‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‡É%‘‚‚‡É%‘‚‚ÄH¨ñä`‚‚‚‚‚i%‘‚‚‚‚‡ÉF±‡Ñ‚‚F©F¡‚‚‡Ù&™‚‚‚‚‚‚‚‚‚‚£0‚‚F™g¹£8¨ñÃ8‚ä`¨é‚‚‚&™F©‡Ùä`‚q‡Ù‚‚äh‡Ù‚‚‚‚‚£8¨ñÃ8‚ä`¨é‚‚‚‚¨ñä`‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‡É%‘‚‚‡É%‘‚‚‚‡ÉF™‚‚‚‚‚F©äP‚‚‚‚‡Éq‡Éy‚F©F¡‚Ä@¨ñÄH‚‚‚‚‚‚‚‚‚‚‚‚‚F¡F©ä`ˆá‚‚£0¨ñÃ@‚ÄPˆá£0ˆáä`‚q‡Ñ‚‚ÄH¨ñ£0‚‚‚‚ä`ˆá‚‚£0¨ñÃ@‚‚‚¨ñä`‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‡É%‘‚‚‡É%‘‚‚‚f¹F©‚‚‚‚‚‡Ù‚‚‚‚‚‡ÉyäXˆá£(F©F¡‚äX¨ñ£0‚‚‚‚‚‚‚‚‚‚‚‚£8¨éäXq‡Ù‚‚£ ¨ñÄPƒ ‡Ñi‚ˆáä`‚£8¨é&‘igɨñÃ@‚‚‚‚q‡Ù‚‚£ ¨ñÄP‚‚‚¨ñä`‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‡É%‘‚‚‡É%‘‚‚‚gÉF¡‚‚‚‚ÄHF±‚‚‚‚‚‡É�‚g¹&‘F¡F¡‚ÄH¨ñÃ@‚‚‚‚i‡Ù‡ÙF©‚‚‚£ gÉF¡‚iˆá‚‚£(¨ñÄH%‰‡Ùä`ä`¨ñF±Ã8‚ÄHF¡&‘äP¨ñ£0i‡Ù‡ÙF©iˆá‚‚£(¨ñÄH‚‚‚¨ñä`‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‡É%‘‚‚‡É%‘‚‚Ã8¨éäh‚‚‚‚%‰q‚‚‚‚‚‡É�‚Ã@¨éF©F¡‚£ ˆá%�‚‚‚‚£ £0£0£(‚‚ƒ g¹gÁƒ ‚ÄH¨ñ£ ‚ÄH¨ñ£(%‰f±f±f±¨ñ¨ñä`‚‚‚‚ähˆá‚£ £0£0£(ÄH¨ñ£ ‚ÄH¨ñ£(‚‚‚¨ñä`‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‡É%‘‚‚‡ÉF™Ã8ä`‡ÑgÉ‚‚‚‚‚gÉ£0‚‚‚‚‚‡É�‚‚F¡¨éF¡‚‚y¨éi£(äPg¹£0‚‚‚‚ƒ f±‡ÙÄHÃ@Ã@£ ‡Ù%�‚F¡g¹‚‚‚‚‚ˆáä`‚‚q£ Ã8‡Ñ%‰‚‚‚‚‚‚‡Ù%�‚F¡g¹‚‚£0Ã8¨ñq£0‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‡É%‘‚‚‡É¨ñ¨é‡Ù&‘£ ‚‚‚‚£(‡Ñ‚‚‚‚‚‚‡É�‚‚£(¨éF¡‚‚‚%‰¨é¨ñ¨é&™‚‚‚‚‚y¨ñ¨ñ¨ñ¨ñ¨ñÄHÄH‡Ù¨é‡Ñ£8‚‚‚‚‚ˆáä`‚£(gÁ¨ñ¨éF¡‚‚‚‚‚‚‚ÄH‡Ù¨é‡Ñ£8‚‚¨é¨ñ¨ñ¨ñ¨ñ£(‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚i&‘‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚£0£ ‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚£0‚‚‚‚‚‚‚‚‚‚‚‚£0£ ‚‚‚‚‚‚‚‚‚‚£0‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚F©äX‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚£0‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚£‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚£%)‚£‚‚‚‚‚£‚‚‚‚‚‚‚‚‚‚)‚‚‚‚ã‚‚‚‚‚‚‚£‚‚‚‚‚‚‚‚‚‚‚‚‚‚E)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚†1ms£‚‚à ó¤)‚‚‚‚èAŽ{Ž{Ž{Ž{Ž{Ž{Ž{Ž{%)‚‚‚‚‚‚‚ä Ó¤f1Œf1‚‚‚ä ’œèA k k k k k«Z‚‚à 󤂂‚‚ k«Z‚‚‚‚‚‚‚Ms k‚‚‚‚‚‚‚‚ŠR k‚‚Ãó¤ÇA¯ƒ%)‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚£¯{¯{‚‚à ó¤)‚‚‚‚%)èAèAèAèAèAèAèA’œf1‚‚ìbó¤’œ’œ’œ’œó¤Ó¤ó¤²œ)J‚‚ìbnsIRŒjRjRjR kQ”‚‚à ó¤‚à nsnsó¤ó¤nsns‚!(J(JIRó¤-k(J(J(J(J(J)‚£Q”èA‚‚‚ó¤!èAjR‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚£B‚‚à ó¤)‚‚‚‚‚ŒŒŒŒŒó¤f1‚‚ìbìb(J(J(J†9rœ%)E1J‚‚E)ó¤§9IRn{‚‚‚§9Q”‚IR1”ó¤ðƒE))J)J³¤Q”)J)J‚f1σσó¤ó¤ÏƒÏƒÏƒÏƒÏƒÏƒ†9‚IRïƒ)JÇA«Zó¤’œ³œrœ‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚E1)J-k%)‚‚à ó¤(J§9E1‚‚ä f1f1f1f1f1f1f1’œf1‚‚ kËbjRjRjRÇAσèAŽ{ŠZ‚£Œó¤ä IRQ”MsMsMs¯{Q”‚%)Jó¤ÇA§9èAèAr”ŒèAèAE1‚‚à rœ)J‚‚-kE1‚‚‚%)ó¤jR0Œ k«Zìjó¤ŠZä ‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚JŽ{ó¤)J‚‚à 󤳤1”Ms‚‚)JŒŒŒŒŒŒŒŒ%)‚‚Ž{IR’œðƒ1”jR«Z’œQ”ÂìbŒó¤ä %))J)Jó¤-k)JèA‚‚à 󤂫ZσσQ”Q”ó¤ðƒjR‚‚ð‹1Œ‚‚‚r”§9‚‚‚IJ󤳤󤣂£Ó¤nsìb¯ƒ†9‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚Ž{)J‚‚à ó¤)‚‚‚‚‚E1£‚ kìb‚‚E)‚‚‚r”†1’œÃŠRŠZIRó¤èAJ)Jf1)ó¤E)ÇAÇAÇAó¤ëbÇAÇA%)‚§9ó¤ðƒE1ä ä ä ä ó¤E1ÂËbó¤«Z§9ËbËbó¤ïƒËbjR‚‚!r”†9‚ŒÓ¤ó¤ó¤«ZJà ‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚Ž{)J‚‚à ó¤)‚‚‚‚£’œf1‚ó¤Ïƒ‚£rœ§9‚èAr”£σσσMs’œŒQ”Œ(J‚‚ó¤§9σσó¤ó¤ó¤ÏƒÏƒ)J kÓ¤ó¤èAËb²œ²œ²œ²œó¤ó¤ŠZIR’œó¤J§9ëbëbó¤ðƒëbjR‚!ó¤Ó¤Ïƒ kf1à Ëb-k!rœf1‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚Ž{)J†9‚à ó¤)‚‚‚‚ìb¯{‚)ó¤ó¤Ã «ZŽ{‚‚!ÇA‚§9à k§9)‚IRjR‚‚‚ó¤ä ‚E1’œó¤Ó¤IR‚‚ä ä 󤂂)JIR‚‚ó¤ä ‚ä %)ŒJ‚‚‚r”§9‚‚‚†9ó¤ŠR†9£‚‚èAó¤Q”ŠZ‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚σó¤ðƒ‚à ó¤)‚‚‚‚ä ä ÃðƒŽ{ìbσ%)ä ‚‚‚ìbjR’œ†9†9’œ%)f1n{ k‚‚‚ó¤ä f1’œ)J’œ)J’œ)J‚‚à 󤂂E1³œ%)‚ó¤ä ‚‚‚ŒJ‚‚‚r”§9‚‚‚‚£§9ëb k‚£Ëbó¤ìbä £‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚!ó¤ïƒŠZŠZëbó¤ kŠZŠZ§9‚)jRQ”σà ‚ k’œìb§9ä %)³œ%)r”èA£†1ä Q”J³¤E)‚‚ó¤IJ³¤jR‚’œ†9†9’œ«Z£%)Ó¤‚‚‚ŠRf1à ó¤ä ‚‚‚ŒJèAJJó¤-kJJ!§9³œŒ«Z§9ËbrœðƒðƒŽ{jRËb‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚E)Ms‚ kMsMsσmsMsMs(JÇA³¤¯{B‚‚‚‚f1-k1”†9)J‚«Z1”Q”Q”Q”Ž{£f1£‚‚Ó¤)†9‚‚’œ†9‚%))%)’œns‚‚‚‚ŠZӤ‚‚‚ðƒBŽ{¯{¯{’œðƒ¯{¯{f1à %)‚‚ä Ms¦9‚ä σ’œf1‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚£‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚£‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚‚ \ No newline at end of file diff --git a/assets/images/cyber-badge/demo-logo.rgb565 b/assets/images/cyber-badge/demo-logo.rgb565 new file mode 100644 index 0000000..2602161 Binary files /dev/null and b/assets/images/cyber-badge/demo-logo.rgb565 differ diff --git a/assets/images/cyber-badge/first-setup-preview.png b/assets/images/cyber-badge/first-setup-preview.png new file mode 100644 index 0000000..2c11e3e Binary files /dev/null and b/assets/images/cyber-badge/first-setup-preview.png differ diff --git a/assets/images/cyber-badge/muyu-amber-preview.png b/assets/images/cyber-badge/muyu-amber-preview.png new file mode 100644 index 0000000..48ddf7e Binary files /dev/null and b/assets/images/cyber-badge/muyu-amber-preview.png differ diff --git a/assets/images/cyber-badge/muyu-cyan-preview.png b/assets/images/cyber-badge/muyu-cyan-preview.png new file mode 100644 index 0000000..4958322 Binary files /dev/null and b/assets/images/cyber-badge/muyu-cyan-preview.png differ diff --git a/assets/images/cyber-badge/muyu-device-preview.png b/assets/images/cyber-badge/muyu-device-preview.png new file mode 100644 index 0000000..5d6c696 Binary files /dev/null and b/assets/images/cyber-badge/muyu-device-preview.png differ diff --git a/assets/images/cyber-badge/muyu-light-preview.png b/assets/images/cyber-badge/muyu-light-preview.png new file mode 100644 index 0000000..2959558 Binary files /dev/null and b/assets/images/cyber-badge/muyu-light-preview.png differ diff --git a/assets/images/cyber-badge/muyu-theme-preview.png b/assets/images/cyber-badge/muyu-theme-preview.png new file mode 100644 index 0000000..62c22b5 Binary files /dev/null and b/assets/images/cyber-badge/muyu-theme-preview.png differ diff --git a/assets/images/cyber-badge/return-menu-preview.png b/assets/images/cyber-badge/return-menu-preview.png new file mode 100644 index 0000000..331d76f Binary files /dev/null and b/assets/images/cyber-badge/return-menu-preview.png differ diff --git a/assets/images/cyber-badge/test-qr.bin b/assets/images/cyber-badge/test-qr.bin new file mode 100644 index 0000000..efbf403 Binary files /dev/null and b/assets/images/cyber-badge/test-qr.bin differ diff --git a/assets/images/cyber-badge/voice-categories-preview.png b/assets/images/cyber-badge/voice-categories-preview.png new file mode 100644 index 0000000..c16918b Binary files /dev/null and b/assets/images/cyber-badge/voice-categories-preview.png differ diff --git a/assets/images/cyber-badge/voice-clips-preview.png b/assets/images/cyber-badge/voice-clips-preview.png new file mode 100644 index 0000000..7feebc4 Binary files /dev/null and b/assets/images/cyber-badge/voice-clips-preview.png differ diff --git a/assets/images/cyber-badge/voice-entry-preview.png b/assets/images/cyber-badge/voice-entry-preview.png new file mode 100644 index 0000000..25e5f59 Binary files /dev/null and b/assets/images/cyber-badge/voice-entry-preview.png differ diff --git a/assets/images/cyber-badge/voice-theme-0-preview.png b/assets/images/cyber-badge/voice-theme-0-preview.png new file mode 100644 index 0000000..c16918b Binary files /dev/null and b/assets/images/cyber-badge/voice-theme-0-preview.png differ diff --git a/assets/images/cyber-badge/voice-theme-1-preview.png b/assets/images/cyber-badge/voice-theme-1-preview.png new file mode 100644 index 0000000..c7cfb73 Binary files /dev/null and b/assets/images/cyber-badge/voice-theme-1-preview.png differ diff --git a/assets/images/cyber-badge/voice-theme-2-preview.png b/assets/images/cyber-badge/voice-theme-2-preview.png new file mode 100644 index 0000000..b42f524 Binary files /dev/null and b/assets/images/cyber-badge/voice-theme-2-preview.png differ diff --git a/assets/images/cyber-badge/voice-theme-3-preview.png b/assets/images/cyber-badge/voice-theme-3-preview.png new file mode 100644 index 0000000..f0a64ed Binary files /dev/null and b/assets/images/cyber-badge/voice-theme-3-preview.png differ diff --git a/assets/images/cyber-badge/voice-volume-preview.png b/assets/images/cyber-badge/voice-volume-preview.png new file mode 100644 index 0000000..7e40b36 Binary files /dev/null and b/assets/images/cyber-badge/voice-volume-preview.png differ diff --git a/assets/images/home.jpg b/assets/images/home.jpg deleted file mode 100644 index 6f59fd7..0000000 Binary files a/assets/images/home.jpg and /dev/null differ diff --git a/assets/images/leo-radio/header-home.png b/assets/images/leo-radio/header-home.png new file mode 100644 index 0000000..358df14 Binary files /dev/null and b/assets/images/leo-radio/header-home.png differ diff --git a/assets/images/leo-radio/header-muyu.png b/assets/images/leo-radio/header-muyu.png new file mode 100644 index 0000000..f150ed2 Binary files /dev/null and b/assets/images/leo-radio/header-muyu.png differ diff --git a/assets/images/leo-radio/header-radio.png b/assets/images/leo-radio/header-radio.png new file mode 100644 index 0000000..9694c1c Binary files /dev/null and b/assets/images/leo-radio/header-radio.png differ diff --git a/assets/images/leo-radio/header-voice.png b/assets/images/leo-radio/header-voice.png new file mode 100644 index 0000000..6ca14c4 Binary files /dev/null and b/assets/images/leo-radio/header-voice.png differ diff --git a/assets/images/leo-radio/page-1.png b/assets/images/leo-radio/page-1.png new file mode 100644 index 0000000..0b26064 Binary files /dev/null and b/assets/images/leo-radio/page-1.png differ diff --git a/assets/images/leo-radio/page-2.png b/assets/images/leo-radio/page-2.png new file mode 100644 index 0000000..e79b334 Binary files /dev/null and b/assets/images/leo-radio/page-2.png differ diff --git a/assets/images/leo-radio/page-3.png b/assets/images/leo-radio/page-3.png new file mode 100644 index 0000000..3c921dd Binary files /dev/null and b/assets/images/leo-radio/page-3.png differ diff --git a/assets/images/leo-radio/page-4.png b/assets/images/leo-radio/page-4.png new file mode 100644 index 0000000..76cc6a9 Binary files /dev/null and b/assets/images/leo-radio/page-4.png differ diff --git a/assets/images/leo-radio/theme-0.png b/assets/images/leo-radio/theme-0.png new file mode 100644 index 0000000..8c10cab Binary files /dev/null and b/assets/images/leo-radio/theme-0.png differ diff --git a/assets/images/leo-radio/theme-1.png b/assets/images/leo-radio/theme-1.png new file mode 100644 index 0000000..4fd15a8 Binary files /dev/null and b/assets/images/leo-radio/theme-1.png differ diff --git a/assets/images/leo-radio/theme-2.png b/assets/images/leo-radio/theme-2.png new file mode 100644 index 0000000..925a7d4 Binary files /dev/null and b/assets/images/leo-radio/theme-2.png differ diff --git a/assets/images/leo-radio/theme-3.png b/assets/images/leo-radio/theme-3.png new file mode 100644 index 0000000..2bd8b74 Binary files /dev/null and b/assets/images/leo-radio/theme-3.png differ diff --git a/assets/images/logo-wordmark-dark.png b/assets/images/logo-wordmark-dark.png deleted file mode 100644 index 8b2bae4..0000000 Binary files a/assets/images/logo-wordmark-dark.png and /dev/null differ diff --git a/assets/images/logo-wordmark.png b/assets/images/logo-wordmark.png deleted file mode 100644 index 2200ea7..0000000 Binary files a/assets/images/logo-wordmark.png and /dev/null differ diff --git a/assets/images/logo.png b/assets/images/logo.png deleted file mode 100644 index 85165bd..0000000 Binary files a/assets/images/logo.png and /dev/null differ diff --git a/assets/images/readme-hardware-specs.png b/assets/images/readme-hardware-specs.png deleted file mode 100644 index 749beef..0000000 Binary files a/assets/images/readme-hardware-specs.png and /dev/null differ diff --git a/assets/images/xiaozhi-face/abstract_bald_gloss.svg b/assets/images/xiaozhi-face/abstract_bald_gloss.svg new file mode 100644 index 0000000..006a90e --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_bald_gloss.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_body.svg b/assets/images/xiaozhi-face/abstract_body.svg new file mode 100644 index 0000000..64955ce --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_body.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_detail.svg b/assets/images/xiaozhi-face/abstract_detail.svg new file mode 100644 index 0000000..a134d10 --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_detail.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_eyes_angry.svg b/assets/images/xiaozhi-face/abstract_eyes_angry.svg new file mode 100644 index 0000000..a78ff6d --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_eyes_angry.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_eyes_angry_puff.svg b/assets/images/xiaozhi-face/abstract_eyes_angry_puff.svg new file mode 100644 index 0000000..15fcdcc --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_eyes_angry_puff.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_eyes_blink.svg b/assets/images/xiaozhi-face/abstract_eyes_blink.svg new file mode 100644 index 0000000..447a541 --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_eyes_blink.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_eyes_confident.svg b/assets/images/xiaozhi-face/abstract_eyes_confident.svg new file mode 100644 index 0000000..d5f15d7 --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_eyes_confident.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_eyes_confused.svg b/assets/images/xiaozhi-face/abstract_eyes_confused.svg new file mode 100644 index 0000000..7316d8f --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_eyes_confused.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_eyes_cool.svg b/assets/images/xiaozhi-face/abstract_eyes_cool.svg new file mode 100644 index 0000000..c090c5f --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_eyes_cool.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_eyes_cool_round.svg b/assets/images/xiaozhi-face/abstract_eyes_cool_round.svg new file mode 100644 index 0000000..38203c2 --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_eyes_cool_round.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_eyes_cool_sport.svg b/assets/images/xiaozhi-face/abstract_eyes_cool_sport.svg new file mode 100644 index 0000000..b57139b --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_eyes_cool_sport.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_eyes_crying.svg b/assets/images/xiaozhi-face/abstract_eyes_crying.svg new file mode 100644 index 0000000..1beabc2 --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_eyes_crying.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_eyes_delicious.svg b/assets/images/xiaozhi-face/abstract_eyes_delicious.svg new file mode 100644 index 0000000..c65b639 --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_eyes_delicious.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_eyes_embarrassed.svg b/assets/images/xiaozhi-face/abstract_eyes_embarrassed.svg new file mode 100644 index 0000000..ebe466d --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_eyes_embarrassed.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_eyes_funny.svg b/assets/images/xiaozhi-face/abstract_eyes_funny.svg new file mode 100644 index 0000000..7b51e8b --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_eyes_funny.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_eyes_happy.svg b/assets/images/xiaozhi-face/abstract_eyes_happy.svg new file mode 100644 index 0000000..efc4622 --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_eyes_happy.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_eyes_kissy.svg b/assets/images/xiaozhi-face/abstract_eyes_kissy.svg new file mode 100644 index 0000000..d8870c6 --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_eyes_kissy.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_eyes_laughing.svg b/assets/images/xiaozhi-face/abstract_eyes_laughing.svg new file mode 100644 index 0000000..0fbcc65 --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_eyes_laughing.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_eyes_loving.svg b/assets/images/xiaozhi-face/abstract_eyes_loving.svg new file mode 100644 index 0000000..2591aca --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_eyes_loving.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_eyes_neutral.svg b/assets/images/xiaozhi-face/abstract_eyes_neutral.svg new file mode 100644 index 0000000..649095b --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_eyes_neutral.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_eyes_relaxed.svg b/assets/images/xiaozhi-face/abstract_eyes_relaxed.svg new file mode 100644 index 0000000..447a541 --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_eyes_relaxed.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_eyes_sad.svg b/assets/images/xiaozhi-face/abstract_eyes_sad.svg new file mode 100644 index 0000000..c27058d --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_eyes_sad.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_eyes_shocked.svg b/assets/images/xiaozhi-face/abstract_eyes_shocked.svg new file mode 100644 index 0000000..aacae41 --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_eyes_shocked.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_eyes_silly.svg b/assets/images/xiaozhi-face/abstract_eyes_silly.svg new file mode 100644 index 0000000..190709a --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_eyes_silly.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_eyes_sleepy.svg b/assets/images/xiaozhi-face/abstract_eyes_sleepy.svg new file mode 100644 index 0000000..e97b5d0 --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_eyes_sleepy.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_eyes_surprised.svg b/assets/images/xiaozhi-face/abstract_eyes_surprised.svg new file mode 100644 index 0000000..37d46e1 --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_eyes_surprised.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_eyes_thinking.svg b/assets/images/xiaozhi-face/abstract_eyes_thinking.svg new file mode 100644 index 0000000..a4227f8 --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_eyes_thinking.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_eyes_wink_left.svg b/assets/images/xiaozhi-face/abstract_eyes_wink_left.svg new file mode 100644 index 0000000..e061ea3 --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_eyes_wink_left.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_eyes_winking.svg b/assets/images/xiaozhi-face/abstract_eyes_winking.svg new file mode 100644 index 0000000..fafe0e3 --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_eyes_winking.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_female_accent.svg b/assets/images/xiaozhi-face/abstract_female_accent.svg new file mode 100644 index 0000000..780640f --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_female_accent.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_female_body.svg b/assets/images/xiaozhi-face/abstract_female_body.svg new file mode 100644 index 0000000..5b2a77e --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_female_body.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_female_detail.svg b/assets/images/xiaozhi-face/abstract_female_detail.svg new file mode 100644 index 0000000..a67c6d9 --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_female_detail.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_mouth_angry.svg b/assets/images/xiaozhi-face/abstract_mouth_angry.svg new file mode 100644 index 0000000..53da60c --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_mouth_angry.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_mouth_confident.svg b/assets/images/xiaozhi-face/abstract_mouth_confident.svg new file mode 100644 index 0000000..ef420f7 --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_mouth_confident.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_mouth_confused.svg b/assets/images/xiaozhi-face/abstract_mouth_confused.svg new file mode 100644 index 0000000..3640c34 --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_mouth_confused.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_mouth_cool.svg b/assets/images/xiaozhi-face/abstract_mouth_cool.svg new file mode 100644 index 0000000..24bacef --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_mouth_cool.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_mouth_crying.svg b/assets/images/xiaozhi-face/abstract_mouth_crying.svg new file mode 100644 index 0000000..f7d5b8b --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_mouth_crying.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_mouth_delicious.svg b/assets/images/xiaozhi-face/abstract_mouth_delicious.svg new file mode 100644 index 0000000..36f7cb5 --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_mouth_delicious.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_mouth_embarrassed.svg b/assets/images/xiaozhi-face/abstract_mouth_embarrassed.svg new file mode 100644 index 0000000..fbadaa6 --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_mouth_embarrassed.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_mouth_funny.svg b/assets/images/xiaozhi-face/abstract_mouth_funny.svg new file mode 100644 index 0000000..9e8d799 --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_mouth_funny.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_mouth_happy.svg b/assets/images/xiaozhi-face/abstract_mouth_happy.svg new file mode 100644 index 0000000..d27142f --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_mouth_happy.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_mouth_kissy.svg b/assets/images/xiaozhi-face/abstract_mouth_kissy.svg new file mode 100644 index 0000000..91cf97b --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_mouth_kissy.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_mouth_laughing.svg b/assets/images/xiaozhi-face/abstract_mouth_laughing.svg new file mode 100644 index 0000000..09a7c5a --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_mouth_laughing.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_mouth_loving.svg b/assets/images/xiaozhi-face/abstract_mouth_loving.svg new file mode 100644 index 0000000..c50ff96 --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_mouth_loving.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_mouth_neutral.svg b/assets/images/xiaozhi-face/abstract_mouth_neutral.svg new file mode 100644 index 0000000..c50ff96 --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_mouth_neutral.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_mouth_relaxed.svg b/assets/images/xiaozhi-face/abstract_mouth_relaxed.svg new file mode 100644 index 0000000..c50ff96 --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_mouth_relaxed.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_mouth_sad.svg b/assets/images/xiaozhi-face/abstract_mouth_sad.svg new file mode 100644 index 0000000..782aa21 --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_mouth_sad.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_mouth_shocked.svg b/assets/images/xiaozhi-face/abstract_mouth_shocked.svg new file mode 100644 index 0000000..579c133 --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_mouth_shocked.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_mouth_silly.svg b/assets/images/xiaozhi-face/abstract_mouth_silly.svg new file mode 100644 index 0000000..4db15fe --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_mouth_silly.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_mouth_sleepy.svg b/assets/images/xiaozhi-face/abstract_mouth_sleepy.svg new file mode 100644 index 0000000..4ef891e --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_mouth_sleepy.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_mouth_surprised.svg b/assets/images/xiaozhi-face/abstract_mouth_surprised.svg new file mode 100644 index 0000000..4fdbbbd --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_mouth_surprised.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_mouth_thinking.svg b/assets/images/xiaozhi-face/abstract_mouth_thinking.svg new file mode 100644 index 0000000..fb89b3c --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_mouth_thinking.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_mouth_winking.svg b/assets/images/xiaozhi-face/abstract_mouth_winking.svg new file mode 100644 index 0000000..d27142f --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_mouth_winking.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_talk_0.svg b/assets/images/xiaozhi-face/abstract_talk_0.svg new file mode 100644 index 0000000..71d19b6 --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_talk_0.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_talk_1.svg b/assets/images/xiaozhi-face/abstract_talk_1.svg new file mode 100644 index 0000000..f3f3646 --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_talk_1.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_talk_2.svg b/assets/images/xiaozhi-face/abstract_talk_2.svg new file mode 100644 index 0000000..78455a3 --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_talk_2.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/abstract_tear.svg b/assets/images/xiaozhi-face/abstract_tear.svg new file mode 100644 index 0000000..a8daf58 --- /dev/null +++ b/assets/images/xiaozhi-face/abstract_tear.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/body.svg b/assets/images/xiaozhi-face/body.svg new file mode 100644 index 0000000..8b0663c --- /dev/null +++ b/assets/images/xiaozhi-face/body.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/decor_cheek.svg b/assets/images/xiaozhi-face/decor_cheek.svg new file mode 100644 index 0000000..79b48a9 --- /dev/null +++ b/assets/images/xiaozhi-face/decor_cheek.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/decor_hand.svg b/assets/images/xiaozhi-face/decor_hand.svg new file mode 100644 index 0000000..aeedda2 --- /dev/null +++ b/assets/images/xiaozhi-face/decor_hand.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/decor_heart.svg b/assets/images/xiaozhi-face/decor_heart.svg new file mode 100644 index 0000000..3989afb --- /dev/null +++ b/assets/images/xiaozhi-face/decor_heart.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/decor_question.svg b/assets/images/xiaozhi-face/decor_question.svg new file mode 100644 index 0000000..db5b617 --- /dev/null +++ b/assets/images/xiaozhi-face/decor_question.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/decor_star.svg b/assets/images/xiaozhi-face/decor_star.svg new file mode 100644 index 0000000..23d1c80 --- /dev/null +++ b/assets/images/xiaozhi-face/decor_star.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/decor_sweat.svg b/assets/images/xiaozhi-face/decor_sweat.svg new file mode 100644 index 0000000..0270cd0 --- /dev/null +++ b/assets/images/xiaozhi-face/decor_sweat.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/decor_tear.svg b/assets/images/xiaozhi-face/decor_tear.svg new file mode 100644 index 0000000..f77cac5 --- /dev/null +++ b/assets/images/xiaozhi-face/decor_tear.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/decor_zzz.svg b/assets/images/xiaozhi-face/decor_zzz.svg new file mode 100644 index 0000000..ff1255d --- /dev/null +++ b/assets/images/xiaozhi-face/decor_zzz.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/eyes_angry.svg b/assets/images/xiaozhi-face/eyes_angry.svg new file mode 100644 index 0000000..3614619 --- /dev/null +++ b/assets/images/xiaozhi-face/eyes_angry.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/eyes_angry_puff.svg b/assets/images/xiaozhi-face/eyes_angry_puff.svg new file mode 100644 index 0000000..4876c51 --- /dev/null +++ b/assets/images/xiaozhi-face/eyes_angry_puff.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/eyes_blink.svg b/assets/images/xiaozhi-face/eyes_blink.svg new file mode 100644 index 0000000..1ca687f --- /dev/null +++ b/assets/images/xiaozhi-face/eyes_blink.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/eyes_confident.svg b/assets/images/xiaozhi-face/eyes_confident.svg new file mode 100644 index 0000000..6308e2e --- /dev/null +++ b/assets/images/xiaozhi-face/eyes_confident.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/eyes_confused.svg b/assets/images/xiaozhi-face/eyes_confused.svg new file mode 100644 index 0000000..28058ea --- /dev/null +++ b/assets/images/xiaozhi-face/eyes_confused.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/eyes_cool.svg b/assets/images/xiaozhi-face/eyes_cool.svg new file mode 100644 index 0000000..572485c --- /dev/null +++ b/assets/images/xiaozhi-face/eyes_cool.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/eyes_cool_round.svg b/assets/images/xiaozhi-face/eyes_cool_round.svg new file mode 100644 index 0000000..4c48cb6 --- /dev/null +++ b/assets/images/xiaozhi-face/eyes_cool_round.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/eyes_cool_sport.svg b/assets/images/xiaozhi-face/eyes_cool_sport.svg new file mode 100644 index 0000000..c67341b --- /dev/null +++ b/assets/images/xiaozhi-face/eyes_cool_sport.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/eyes_crying.svg b/assets/images/xiaozhi-face/eyes_crying.svg new file mode 100644 index 0000000..0fe77fe --- /dev/null +++ b/assets/images/xiaozhi-face/eyes_crying.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/eyes_delicious.svg b/assets/images/xiaozhi-face/eyes_delicious.svg new file mode 100644 index 0000000..52805e9 --- /dev/null +++ b/assets/images/xiaozhi-face/eyes_delicious.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/eyes_embarrassed.svg b/assets/images/xiaozhi-face/eyes_embarrassed.svg new file mode 100644 index 0000000..0b323ec --- /dev/null +++ b/assets/images/xiaozhi-face/eyes_embarrassed.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/eyes_funny.svg b/assets/images/xiaozhi-face/eyes_funny.svg new file mode 100644 index 0000000..94d02f3 --- /dev/null +++ b/assets/images/xiaozhi-face/eyes_funny.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/eyes_happy.svg b/assets/images/xiaozhi-face/eyes_happy.svg new file mode 100644 index 0000000..7890e22 --- /dev/null +++ b/assets/images/xiaozhi-face/eyes_happy.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/eyes_kissy.svg b/assets/images/xiaozhi-face/eyes_kissy.svg new file mode 100644 index 0000000..c6f91ba --- /dev/null +++ b/assets/images/xiaozhi-face/eyes_kissy.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/eyes_laughing.svg b/assets/images/xiaozhi-face/eyes_laughing.svg new file mode 100644 index 0000000..eb3c5c3 --- /dev/null +++ b/assets/images/xiaozhi-face/eyes_laughing.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/eyes_loving.svg b/assets/images/xiaozhi-face/eyes_loving.svg new file mode 100644 index 0000000..f85b943 --- /dev/null +++ b/assets/images/xiaozhi-face/eyes_loving.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/eyes_neutral.svg b/assets/images/xiaozhi-face/eyes_neutral.svg new file mode 100644 index 0000000..b312553 --- /dev/null +++ b/assets/images/xiaozhi-face/eyes_neutral.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/eyes_relaxed.svg b/assets/images/xiaozhi-face/eyes_relaxed.svg new file mode 100644 index 0000000..1ca687f --- /dev/null +++ b/assets/images/xiaozhi-face/eyes_relaxed.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/eyes_sad.svg b/assets/images/xiaozhi-face/eyes_sad.svg new file mode 100644 index 0000000..84535a2 --- /dev/null +++ b/assets/images/xiaozhi-face/eyes_sad.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/eyes_shocked.svg b/assets/images/xiaozhi-face/eyes_shocked.svg new file mode 100644 index 0000000..edacdc3 --- /dev/null +++ b/assets/images/xiaozhi-face/eyes_shocked.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/eyes_silly.svg b/assets/images/xiaozhi-face/eyes_silly.svg new file mode 100644 index 0000000..204b254 --- /dev/null +++ b/assets/images/xiaozhi-face/eyes_silly.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/eyes_sleepy.svg b/assets/images/xiaozhi-face/eyes_sleepy.svg new file mode 100644 index 0000000..5089eb1 --- /dev/null +++ b/assets/images/xiaozhi-face/eyes_sleepy.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/eyes_surprised.svg b/assets/images/xiaozhi-face/eyes_surprised.svg new file mode 100644 index 0000000..c0c07ba --- /dev/null +++ b/assets/images/xiaozhi-face/eyes_surprised.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/eyes_thinking.svg b/assets/images/xiaozhi-face/eyes_thinking.svg new file mode 100644 index 0000000..b451111 --- /dev/null +++ b/assets/images/xiaozhi-face/eyes_thinking.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/eyes_wink_left.svg b/assets/images/xiaozhi-face/eyes_wink_left.svg new file mode 100644 index 0000000..f63da89 --- /dev/null +++ b/assets/images/xiaozhi-face/eyes_wink_left.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/eyes_winking.svg b/assets/images/xiaozhi-face/eyes_winking.svg new file mode 100644 index 0000000..0fd98a5 --- /dev/null +++ b/assets/images/xiaozhi-face/eyes_winking.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/mouth_angry.svg b/assets/images/xiaozhi-face/mouth_angry.svg new file mode 100644 index 0000000..5d391e9 --- /dev/null +++ b/assets/images/xiaozhi-face/mouth_angry.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/mouth_confident.svg b/assets/images/xiaozhi-face/mouth_confident.svg new file mode 100644 index 0000000..aa4756b --- /dev/null +++ b/assets/images/xiaozhi-face/mouth_confident.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/mouth_confused.svg b/assets/images/xiaozhi-face/mouth_confused.svg new file mode 100644 index 0000000..06f8492 --- /dev/null +++ b/assets/images/xiaozhi-face/mouth_confused.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/mouth_cool.svg b/assets/images/xiaozhi-face/mouth_cool.svg new file mode 100644 index 0000000..5693552 --- /dev/null +++ b/assets/images/xiaozhi-face/mouth_cool.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/mouth_crying.svg b/assets/images/xiaozhi-face/mouth_crying.svg new file mode 100644 index 0000000..322f4df --- /dev/null +++ b/assets/images/xiaozhi-face/mouth_crying.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/mouth_delicious.svg b/assets/images/xiaozhi-face/mouth_delicious.svg new file mode 100644 index 0000000..05d6709 --- /dev/null +++ b/assets/images/xiaozhi-face/mouth_delicious.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/mouth_embarrassed.svg b/assets/images/xiaozhi-face/mouth_embarrassed.svg new file mode 100644 index 0000000..afae13c --- /dev/null +++ b/assets/images/xiaozhi-face/mouth_embarrassed.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/mouth_funny.svg b/assets/images/xiaozhi-face/mouth_funny.svg new file mode 100644 index 0000000..6d0bfcf --- /dev/null +++ b/assets/images/xiaozhi-face/mouth_funny.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/mouth_happy.svg b/assets/images/xiaozhi-face/mouth_happy.svg new file mode 100644 index 0000000..68e4617 --- /dev/null +++ b/assets/images/xiaozhi-face/mouth_happy.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/mouth_kissy.svg b/assets/images/xiaozhi-face/mouth_kissy.svg new file mode 100644 index 0000000..e072374 --- /dev/null +++ b/assets/images/xiaozhi-face/mouth_kissy.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/mouth_laughing.svg b/assets/images/xiaozhi-face/mouth_laughing.svg new file mode 100644 index 0000000..9b5d5bd --- /dev/null +++ b/assets/images/xiaozhi-face/mouth_laughing.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/mouth_loving.svg b/assets/images/xiaozhi-face/mouth_loving.svg new file mode 100644 index 0000000..165092d --- /dev/null +++ b/assets/images/xiaozhi-face/mouth_loving.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/mouth_neutral.svg b/assets/images/xiaozhi-face/mouth_neutral.svg new file mode 100644 index 0000000..8823aaf --- /dev/null +++ b/assets/images/xiaozhi-face/mouth_neutral.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/mouth_relaxed.svg b/assets/images/xiaozhi-face/mouth_relaxed.svg new file mode 100644 index 0000000..ae317c4 --- /dev/null +++ b/assets/images/xiaozhi-face/mouth_relaxed.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/mouth_sad.svg b/assets/images/xiaozhi-face/mouth_sad.svg new file mode 100644 index 0000000..f6e81e3 --- /dev/null +++ b/assets/images/xiaozhi-face/mouth_sad.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/mouth_shocked.svg b/assets/images/xiaozhi-face/mouth_shocked.svg new file mode 100644 index 0000000..fd169fc --- /dev/null +++ b/assets/images/xiaozhi-face/mouth_shocked.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/mouth_silly.svg b/assets/images/xiaozhi-face/mouth_silly.svg new file mode 100644 index 0000000..c7420de --- /dev/null +++ b/assets/images/xiaozhi-face/mouth_silly.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/mouth_sleepy.svg b/assets/images/xiaozhi-face/mouth_sleepy.svg new file mode 100644 index 0000000..bda96cd --- /dev/null +++ b/assets/images/xiaozhi-face/mouth_sleepy.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/mouth_surprised.svg b/assets/images/xiaozhi-face/mouth_surprised.svg new file mode 100644 index 0000000..69a64ac --- /dev/null +++ b/assets/images/xiaozhi-face/mouth_surprised.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/mouth_thinking.svg b/assets/images/xiaozhi-face/mouth_thinking.svg new file mode 100644 index 0000000..cc61033 --- /dev/null +++ b/assets/images/xiaozhi-face/mouth_thinking.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/mouth_winking.svg b/assets/images/xiaozhi-face/mouth_winking.svg new file mode 100644 index 0000000..3b1c83a --- /dev/null +++ b/assets/images/xiaozhi-face/mouth_winking.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_eyes_angry.svg b/assets/images/xiaozhi-face/round_eyes_angry.svg new file mode 100644 index 0000000..d706f4c --- /dev/null +++ b/assets/images/xiaozhi-face/round_eyes_angry.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_eyes_angry_puff.svg b/assets/images/xiaozhi-face/round_eyes_angry_puff.svg new file mode 100644 index 0000000..12990fc --- /dev/null +++ b/assets/images/xiaozhi-face/round_eyes_angry_puff.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_eyes_blink.svg b/assets/images/xiaozhi-face/round_eyes_blink.svg new file mode 100644 index 0000000..5401f41 --- /dev/null +++ b/assets/images/xiaozhi-face/round_eyes_blink.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_eyes_confident.svg b/assets/images/xiaozhi-face/round_eyes_confident.svg new file mode 100644 index 0000000..57c6d98 --- /dev/null +++ b/assets/images/xiaozhi-face/round_eyes_confident.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_eyes_confused.svg b/assets/images/xiaozhi-face/round_eyes_confused.svg new file mode 100644 index 0000000..b525ef0 --- /dev/null +++ b/assets/images/xiaozhi-face/round_eyes_confused.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_eyes_cool.svg b/assets/images/xiaozhi-face/round_eyes_cool.svg new file mode 100644 index 0000000..727c05c --- /dev/null +++ b/assets/images/xiaozhi-face/round_eyes_cool.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_eyes_cool_round.svg b/assets/images/xiaozhi-face/round_eyes_cool_round.svg new file mode 100644 index 0000000..61d7a3f --- /dev/null +++ b/assets/images/xiaozhi-face/round_eyes_cool_round.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_eyes_cool_sport.svg b/assets/images/xiaozhi-face/round_eyes_cool_sport.svg new file mode 100644 index 0000000..36ab347 --- /dev/null +++ b/assets/images/xiaozhi-face/round_eyes_cool_sport.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_eyes_crying.svg b/assets/images/xiaozhi-face/round_eyes_crying.svg new file mode 100644 index 0000000..060d386 --- /dev/null +++ b/assets/images/xiaozhi-face/round_eyes_crying.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_eyes_delicious.svg b/assets/images/xiaozhi-face/round_eyes_delicious.svg new file mode 100644 index 0000000..8382717 --- /dev/null +++ b/assets/images/xiaozhi-face/round_eyes_delicious.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_eyes_embarrassed.svg b/assets/images/xiaozhi-face/round_eyes_embarrassed.svg new file mode 100644 index 0000000..b9fc53d --- /dev/null +++ b/assets/images/xiaozhi-face/round_eyes_embarrassed.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_eyes_funny.svg b/assets/images/xiaozhi-face/round_eyes_funny.svg new file mode 100644 index 0000000..6129344 --- /dev/null +++ b/assets/images/xiaozhi-face/round_eyes_funny.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_eyes_happy.svg b/assets/images/xiaozhi-face/round_eyes_happy.svg new file mode 100644 index 0000000..6129344 --- /dev/null +++ b/assets/images/xiaozhi-face/round_eyes_happy.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_eyes_kissy.svg b/assets/images/xiaozhi-face/round_eyes_kissy.svg new file mode 100644 index 0000000..5401f41 --- /dev/null +++ b/assets/images/xiaozhi-face/round_eyes_kissy.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_eyes_laughing.svg b/assets/images/xiaozhi-face/round_eyes_laughing.svg new file mode 100644 index 0000000..0826b17 --- /dev/null +++ b/assets/images/xiaozhi-face/round_eyes_laughing.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_eyes_loving.svg b/assets/images/xiaozhi-face/round_eyes_loving.svg new file mode 100644 index 0000000..5401f41 --- /dev/null +++ b/assets/images/xiaozhi-face/round_eyes_loving.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_eyes_neutral.svg b/assets/images/xiaozhi-face/round_eyes_neutral.svg new file mode 100644 index 0000000..a4cf8d7 --- /dev/null +++ b/assets/images/xiaozhi-face/round_eyes_neutral.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_eyes_relaxed.svg b/assets/images/xiaozhi-face/round_eyes_relaxed.svg new file mode 100644 index 0000000..5401f41 --- /dev/null +++ b/assets/images/xiaozhi-face/round_eyes_relaxed.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_eyes_sad.svg b/assets/images/xiaozhi-face/round_eyes_sad.svg new file mode 100644 index 0000000..3c2dd7d --- /dev/null +++ b/assets/images/xiaozhi-face/round_eyes_sad.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_eyes_shocked.svg b/assets/images/xiaozhi-face/round_eyes_shocked.svg new file mode 100644 index 0000000..19a48c7 --- /dev/null +++ b/assets/images/xiaozhi-face/round_eyes_shocked.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_eyes_silly.svg b/assets/images/xiaozhi-face/round_eyes_silly.svg new file mode 100644 index 0000000..9fdd164 --- /dev/null +++ b/assets/images/xiaozhi-face/round_eyes_silly.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_eyes_sleepy.svg b/assets/images/xiaozhi-face/round_eyes_sleepy.svg new file mode 100644 index 0000000..e24d350 --- /dev/null +++ b/assets/images/xiaozhi-face/round_eyes_sleepy.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_eyes_surprised.svg b/assets/images/xiaozhi-face/round_eyes_surprised.svg new file mode 100644 index 0000000..a238db1 --- /dev/null +++ b/assets/images/xiaozhi-face/round_eyes_surprised.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_eyes_thinking.svg b/assets/images/xiaozhi-face/round_eyes_thinking.svg new file mode 100644 index 0000000..dca3ee0 --- /dev/null +++ b/assets/images/xiaozhi-face/round_eyes_thinking.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_eyes_wink_left.svg b/assets/images/xiaozhi-face/round_eyes_wink_left.svg new file mode 100644 index 0000000..5401f41 --- /dev/null +++ b/assets/images/xiaozhi-face/round_eyes_wink_left.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_eyes_winking.svg b/assets/images/xiaozhi-face/round_eyes_winking.svg new file mode 100644 index 0000000..5401f41 --- /dev/null +++ b/assets/images/xiaozhi-face/round_eyes_winking.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_hair.svg b/assets/images/xiaozhi-face/round_hair.svg new file mode 100644 index 0000000..e1c99b0 --- /dev/null +++ b/assets/images/xiaozhi-face/round_hair.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_mouth_angry.svg b/assets/images/xiaozhi-face/round_mouth_angry.svg new file mode 100644 index 0000000..7164508 --- /dev/null +++ b/assets/images/xiaozhi-face/round_mouth_angry.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_mouth_confident.svg b/assets/images/xiaozhi-face/round_mouth_confident.svg new file mode 100644 index 0000000..c978830 --- /dev/null +++ b/assets/images/xiaozhi-face/round_mouth_confident.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_mouth_confused.svg b/assets/images/xiaozhi-face/round_mouth_confused.svg new file mode 100644 index 0000000..5d0b4c8 --- /dev/null +++ b/assets/images/xiaozhi-face/round_mouth_confused.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_mouth_cool.svg b/assets/images/xiaozhi-face/round_mouth_cool.svg new file mode 100644 index 0000000..f406ecd --- /dev/null +++ b/assets/images/xiaozhi-face/round_mouth_cool.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_mouth_crying.svg b/assets/images/xiaozhi-face/round_mouth_crying.svg new file mode 100644 index 0000000..6c479ae --- /dev/null +++ b/assets/images/xiaozhi-face/round_mouth_crying.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_mouth_delicious.svg b/assets/images/xiaozhi-face/round_mouth_delicious.svg new file mode 100644 index 0000000..2ac6832 --- /dev/null +++ b/assets/images/xiaozhi-face/round_mouth_delicious.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_mouth_embarrassed.svg b/assets/images/xiaozhi-face/round_mouth_embarrassed.svg new file mode 100644 index 0000000..c9d797a --- /dev/null +++ b/assets/images/xiaozhi-face/round_mouth_embarrassed.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_mouth_funny.svg b/assets/images/xiaozhi-face/round_mouth_funny.svg new file mode 100644 index 0000000..b0d1b2a --- /dev/null +++ b/assets/images/xiaozhi-face/round_mouth_funny.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_mouth_happy.svg b/assets/images/xiaozhi-face/round_mouth_happy.svg new file mode 100644 index 0000000..36c1c34 --- /dev/null +++ b/assets/images/xiaozhi-face/round_mouth_happy.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_mouth_kissy.svg b/assets/images/xiaozhi-face/round_mouth_kissy.svg new file mode 100644 index 0000000..e14dc75 --- /dev/null +++ b/assets/images/xiaozhi-face/round_mouth_kissy.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_mouth_laughing.svg b/assets/images/xiaozhi-face/round_mouth_laughing.svg new file mode 100644 index 0000000..b0d1b2a --- /dev/null +++ b/assets/images/xiaozhi-face/round_mouth_laughing.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_mouth_loving.svg b/assets/images/xiaozhi-face/round_mouth_loving.svg new file mode 100644 index 0000000..6fa7631 --- /dev/null +++ b/assets/images/xiaozhi-face/round_mouth_loving.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_mouth_neutral.svg b/assets/images/xiaozhi-face/round_mouth_neutral.svg new file mode 100644 index 0000000..bd5a7a0 --- /dev/null +++ b/assets/images/xiaozhi-face/round_mouth_neutral.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_mouth_relaxed.svg b/assets/images/xiaozhi-face/round_mouth_relaxed.svg new file mode 100644 index 0000000..6fa7631 --- /dev/null +++ b/assets/images/xiaozhi-face/round_mouth_relaxed.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_mouth_sad.svg b/assets/images/xiaozhi-face/round_mouth_sad.svg new file mode 100644 index 0000000..1f5eb9c --- /dev/null +++ b/assets/images/xiaozhi-face/round_mouth_sad.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_mouth_shocked.svg b/assets/images/xiaozhi-face/round_mouth_shocked.svg new file mode 100644 index 0000000..65db95d --- /dev/null +++ b/assets/images/xiaozhi-face/round_mouth_shocked.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_mouth_silly.svg b/assets/images/xiaozhi-face/round_mouth_silly.svg new file mode 100644 index 0000000..abf8fac --- /dev/null +++ b/assets/images/xiaozhi-face/round_mouth_silly.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_mouth_sleepy.svg b/assets/images/xiaozhi-face/round_mouth_sleepy.svg new file mode 100644 index 0000000..bbfdda3 --- /dev/null +++ b/assets/images/xiaozhi-face/round_mouth_sleepy.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_mouth_surprised.svg b/assets/images/xiaozhi-face/round_mouth_surprised.svg new file mode 100644 index 0000000..7d77b0f --- /dev/null +++ b/assets/images/xiaozhi-face/round_mouth_surprised.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_mouth_thinking.svg b/assets/images/xiaozhi-face/round_mouth_thinking.svg new file mode 100644 index 0000000..72f066f --- /dev/null +++ b/assets/images/xiaozhi-face/round_mouth_thinking.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_mouth_winking.svg b/assets/images/xiaozhi-face/round_mouth_winking.svg new file mode 100644 index 0000000..6fa7631 --- /dev/null +++ b/assets/images/xiaozhi-face/round_mouth_winking.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_nose.svg b/assets/images/xiaozhi-face/round_nose.svg new file mode 100644 index 0000000..2758e40 --- /dev/null +++ b/assets/images/xiaozhi-face/round_nose.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_outline.svg b/assets/images/xiaozhi-face/round_outline.svg new file mode 100644 index 0000000..b442cbc --- /dev/null +++ b/assets/images/xiaozhi-face/round_outline.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_shirt.svg b/assets/images/xiaozhi-face/round_shirt.svg new file mode 100644 index 0000000..b7bc675 --- /dev/null +++ b/assets/images/xiaozhi-face/round_shirt.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_skin.svg b/assets/images/xiaozhi-face/round_skin.svg new file mode 100644 index 0000000..8f1ccff --- /dev/null +++ b/assets/images/xiaozhi-face/round_skin.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_talk_0.svg b/assets/images/xiaozhi-face/round_talk_0.svg new file mode 100644 index 0000000..e5c982a --- /dev/null +++ b/assets/images/xiaozhi-face/round_talk_0.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_talk_1.svg b/assets/images/xiaozhi-face/round_talk_1.svg new file mode 100644 index 0000000..80a5f87 --- /dev/null +++ b/assets/images/xiaozhi-face/round_talk_1.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/round_talk_2.svg b/assets/images/xiaozhi-face/round_talk_2.svg new file mode 100644 index 0000000..448c73a --- /dev/null +++ b/assets/images/xiaozhi-face/round_talk_2.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/talk_0.svg b/assets/images/xiaozhi-face/talk_0.svg new file mode 100644 index 0000000..5d5cbc2 --- /dev/null +++ b/assets/images/xiaozhi-face/talk_0.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/talk_1.svg b/assets/images/xiaozhi-face/talk_1.svg new file mode 100644 index 0000000..cb343c9 --- /dev/null +++ b/assets/images/xiaozhi-face/talk_1.svg @@ -0,0 +1 @@ + diff --git a/assets/images/xiaozhi-face/talk_2.svg b/assets/images/xiaozhi-face/talk_2.svg new file mode 100644 index 0000000..14d2871 --- /dev/null +++ b/assets/images/xiaozhi-face/talk_2.svg @@ -0,0 +1 @@ + diff --git a/assets/muyu-assets.md b/assets/muyu-assets.md new file mode 100644 index 0000000..52b7940 --- /dev/null +++ b/assets/muyu-assets.md @@ -0,0 +1,17 @@ +

简体中文 · English

+ +# Zen Muyu asset provenance + +- `images/coloros-muyu/background-240x320.png` and `main/assets/coloros_muyu_bg.rgb565` are copied unchanged from upstream `demo/coloros-muyu`, commit `16df9944d0f6a83b475e05acabbea73c8b49c3e1`, under the repository MIT license. The original branch describes the background as an ImageGen-edited image. Before 1.7.0 it was embedded as RGB565LE (240 x 320; 153,600 bytes); the PNG is also used by the browser preview. Conversion: `ffmpeg -i assets/images/coloros-muyu/background-240x320.png -pix_fmt rgb565le -f rawvideo main/assets/coloros_muyu_bg.rgb565`. +- `main/font_muyu_22.c` is the unchanged Source Han Sans SC Medium subset from that branch (digits, space, plus sign and seven ideographs). Its SIL OFL 1.1 notice is in `fonts/SourceHan-OFL.txt` from [Adobe Source Han Sans](https://github.com/adobe-fonts/source-han-sans). +- `main/font_muyu_14.c` is a generated 14 px / 4 bpp UI subset, renamed for this app, derived from [Noto Sans SC](https://github.com/google/fonts/tree/main/ofl/notosanssc). Its SIL OFL 1.1 notice is in `fonts/OFL.txt`. Source file `NotoSansSC[wght].ttf` SHA-256: `a3041811a78c361b1de50f953c805e0244951c21c5bd412f7232ef0d899af0da`. Regenerate with `python tools/generate_muyu_font.py /path/to/NotoSansSC.ttf` (Pillow required). The generator extracts all Chinese UI characters and printable ASCII; 238 glyphs, 17,812 bitmap bytes. The full source font is a development download and is not embedded or bundled. +- Percussion is synthesized at startup in `main/muyu_app.c` (16 kHz, 16-bit, mono, 140 ms) from decaying resonances and a noise attack. No third-party audio recording is included. + +- `images/cyber-badge/` contains actual 240 × 320 LVGL renders of the badge, employee terminal, game library, settings and Muyu. The Arasaka emblem is geometrically redrawn in `main/badge_ui.c`; preview status values are examples. Muyu retains the asset licenses above. The font generator also includes Chinese punctuation and badge/registry/profile text. + +- `font_badge_10.c` and `font_badge_28.c` are Noto Sans SC OFL subsets: 2,384 and 16,612 bitmap bytes. Regenerate with `python tools/generate_badge_fonts.py /path/to/NotoSansSC.ttf`. The 10 px font is supplementary terminal text; 28 px is used for headings and the configurable name. The 28 px subset also collects Chinese characters from the display-name field. +- Arasaka branding references: [employee-card design](https://ko-fi.com/s/5aad91d702), [emblem reference](https://cyberpunk.fandom.com/fr/wiki/Arasaka). No marketplace artwork is downloaded or bundled. The geometric redraw references fictional branding whose rights are separate from the implementation license. + +- `images/cyber-badge/demo-{card,brand,logo}.rgb565` are synthetic host-render fixtures for the configured badge layout. Their example identity is fictional; the portrait is an original geometric illustration. Text uses the Noto Sans SC font credited above. These files are test inputs, not flashed user profiles. + +- Since 1.7.0 the native game uses original LVGL vector geometry in `main/muyu_ui.c`, colored through `main/badge_theme.h`. The original orange bitmap remains as a historical reference and in the legacy web simulation; it is no longer embedded in current firmware. New theme screenshots use synthetic palettes and no personal badge data. diff --git a/assets/muyu-assets.zh_CN.md b/assets/muyu-assets.zh_CN.md new file mode 100644 index 0000000..23bfd7e --- /dev/null +++ b/assets/muyu-assets.zh_CN.md @@ -0,0 +1,17 @@ +

简体中文 · English

+ +# 一念木鱼素��� + +- `images/coloros-muyu/background-240x320.png` 和 `main/assets/coloros_muyu_bg.rgb565` 原样�自上游 `demo/coloros-muyu` 分支�交 `16df9944d0f6a83b475e05acabbea73c8b49c3e1`,�循仓库 MIT 许��。原分支说明背景� ImageGen 编辑。1.7.0 之�的固件嵌入 RGB565LE(240 × 320,153,600 字节),�览器预览使用 PNG。转�命令:`ffmpeg -i assets/images/coloros-muyu/background-240x320.png -pix_fmt rgb565le -f rawvideo main/assets/coloros_muyu_bg.rgb565`。 +- `main/font_muyu_22.c` 为�一分支原样�用的��黑体 Medium �集,�数字�空格�加��七个汉字。[Adobe ��黑体](https://github.com/adobe-fonts/source-han-sans)的 SIL OFL 1.1 授��存在 `fonts/SourceHan-OFL.txt`。 +- `main/font_muyu_14.c` 为新生�并针对本应用�命�的 14 �素�4 bpp 字库,��为 [Noto Sans SC](https://github.com/google/fonts/tree/main/ofl/notosanssc)。SIL OFL 1.1 授��存在 `fonts/OFL.txt`。�文件 `NotoSansSC[wght].ttf` SHA-256:`a3041811a78c361b1de50f953c805e0244951c21c5bd412f7232ef0d899af0da`。使用 `python tools/generate_muyu_font.py /path/to/NotoSansSC.ttf` �新生�,�赖 Pillow。生�器��界�中的所有汉字��打� ASCII,共 238 个字形�17,812 字节�图。完整�字体仅供开�下载,�嵌入或�应用打包。 +- 音效在 `main/muyu_app.c` �动时��(16 kHz�16 ���声��140 毫秒),由衰�共振和短噪声起音组�,�包�第三方录音。 + +- `images/cyber-badge/` �存工牌�员工终端�游�列表�设置和木鱼页�的实际 240 × 320 LVGL 渲染图。��徽记由 `main/badge_ui.c` 以几何图形�绘,预览状�值为示例。木鱼页�沿用上述素�许�。字库生�器�时收集中文标点�工牌�注册表�身份�置文字。 + +- `font_badge_10.c` 和 `font_badge_28.c` 为 Noto Sans SC 的 OFL �集,字形�图分别为 2,384 和 16,612 字节。通过 `python tools/generate_badge_fonts.py /path/to/NotoSansSC.ttf` �新生�。10 �素字体用于辅助终端文字,28 �素用于标题和姓�;28 �素字库也会收集姓�字段中的汉字。 +- ���牌视觉�考:[员工牌设计](https://ko-fi.com/s/5aad91d702)�[徽记图样](https://cyberpunk.fandom.com/fr/wiki/Arasaka)。没有下载或打包商�设计图。几何�绘引用的虚构�牌标识�利独立于代�许�。 + +- `images/cyber-badge/demo-{card,brand,logo}.rgb565` 是已�置工牌布局的��主机渲染样本。身份信�为虚构示例,头�为原创几何�画,文字使用上述 Noto Sans SC 字体。这些文件仅作为测试输入,�写入用户工牌资料。 + +- 1.7.0 起,硬件游�使用 `main/muyu_ui.c` 中原创的 LVGL 矢�几何图形,通过 `main/badge_theme.h` 获��色。原橙色�图�留为历��考�旧版网页模拟使用,��嵌入当�固件。新主题截图使用示例�色,��个人工牌数�。 diff --git a/assets/radio/ESP_AUDIO_CODEC_LICENSE.txt b/assets/radio/ESP_AUDIO_CODEC_LICENSE.txt new file mode 100644 index 0000000..a57f589 --- /dev/null +++ b/assets/radio/ESP_AUDIO_CODEC_LICENSE.txt @@ -0,0 +1,22 @@ +Espressif Modified MIT License + +Copyright (c) 2025 Espressif Systems (Shanghai) CO., LTD + +Permission is hereby granted for use EXCLUSIVELY with Espressif Systems products. +This includes the right to use, copy, modify, merge, publish, distribute, and sublicense +the Software, subject to the following conditions: + +1. This Software MUST BE USED IN CONJUNCTION WITH ESPRESSIF SYSTEMS PRODUCTS. +2. The above copyright notice and this permission notice shall be included in all copies +or substantial portions of the Software. +3. Redistribution of the Software in source or binary form FOR USE WITH NON-ESPRESSIF PRODUCTS +is strictly prohibited. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, +INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +SPDX-License-Identifier: LicenseRef-Espressif-Modified-MIT diff --git a/assets/radio/LICENSE.txt b/assets/radio/LICENSE.txt new file mode 100644 index 0000000..c631b4e --- /dev/null +++ b/assets/radio/LICENSE.txt @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 Leo + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/assets/radio/SOURCE.txt b/assets/radio/SOURCE.txt new file mode 100644 index 0000000..c6534b1 --- /dev/null +++ b/assets/radio/SOURCE.txt @@ -0,0 +1,9 @@ +LEO Radio integration +Source: https://github.com/leo0183/leo-radio +Commit: e28b8adafb2ca95e386e8b6e7db0db042cf09523 +Copyright (c) 2026 Leo. MIT license retained in LICENSE.txt. +Adapted catalog, frequency parsing and MP3 streaming; new badge theme UI, lifecycle, navigation and bounded shutdown. +No upstream video/easter-egg assets, standalone Wi-Fi manager or system sleep controller are included. + +Decoder: Espressif esp_audio_codec 2.5.0 (managed dependency). +Espressif Modified MIT License, exclusively for Espressif products; full notice in ESP_AUDIO_CODEC_LICENSE.txt. diff --git a/assets/radio/STATIONS.txt b/assets/radio/STATIONS.txt new file mode 100644 index 0000000..69ee514 --- /dev/null +++ b/assets/radio/STATIONS.txt @@ -0,0 +1,65 @@ +Curated public MP3 station endpoints +Checked: 2026-09-15 19:27:58 (local host time) +Sources: https://github.com/gaotianliuyun/gao/blob/master/radio.txt +Original six presets: https://github.com/leo0183/leo-radio +Selected 57 of 80 candidates after HTTP download and FFmpeg MP3-to-PCM checks. +Checks establish short-sample availability, not continuous uptime or programme identity. +No tokens, private signing keys or HLS transcoding are used. +Local discoveries are combined with these immutable entries and duplicate stream IDs are removed. +15318317 | 中国之声 | http://lhttp.qingting.fm/live/15318317/64k.mp3 +4804 | 怀集音�之声 | http://lhttp.qingting.fm/live/4804/64k.mp3 +20500149 | 两广之声 | http://lhttp.qingting.fm/live/20500149/64k.mp3 +1262 | 羊城交通 | http://lhttp.qingting.fm/live/1262/64k.mp3 +276 | 第一财� | http://lhttp.qingting.fm/live/276/64k.mp3 +5022038 | CRI 怀旧金曲频� | http://lhttp.qingting.fm/live/5022038/64k.mp3 +5021912 | 亚洲�典� | http://lhttp.qingting.fm/live/5021912/64k.mp3 +4915 | 清晨音�� | http://lhttp.qingting.fm/live/4915/64k.mp3 +5021381 | 北京好音�广播 | http://lhttp.qingting.fm/live/5021381/64k.mp3 +275 | 上海东广新闻� | http://lhttp.qingting.fm/live/275/64k.mp3 +267 | 上海�典947音�广播 | http://lhttp.qingting.fm/live/267/64k.mp3 +274 | 上海动感101音�广播 | http://lhttp.qingting.fm/live/274/64k.mp3 +1654 | 石家庄音�广播 | http://lhttp.qingting.fm/live/1654/64k.mp3 +839 | 哈尔滨音�广播 | http://lhttp.qingting.fm/live/839/64k.mp3 +2803 | �州音�广播 | http://lhttp.qingting.fm/live/2803/64k.mp3 +4866 | �州动�968音�调频 | http://lhttp.qingting.fm/live/4866/64k.mp3 +1297 | 武汉音�广播 | http://lhttp.qingting.fm/live/1297/64k.mp3 +4581 | 亚洲音�� | http://lhttp.qingting.fm/live/4581/64k.mp3 +270 | 上海新闻广播 | http://lhttp.qingting.fm/live/270/64k.mp3 +20021 | 辽��典�行音�广播 | http://lhttp.qingting.fm/live/20021/64k.mp3 +5022096 | 张掖新闻综�广播 | http://lhttp.qingting.fm/live/5022096/64k.mp3 +5021902 | 沧州长书文艺广播 | http://lhttp.qingting.fm/live/5021902/64k.mp3 +1155 | 温州之声 | http://lhttp.qingting.fm/live/1155/64k.mp3 +20212423 | 新昌天姥之声 | http://lhttp.qingting.fm/live/20212423/64k.mp3 +1674 | �岛�济广播 | http://lhttp.qingting.fm/live/1674/64k.mp3 +20211563 | 玉溪交通旅游广播 | http://lhttp.qingting.fm/live/20211563/64k.mp3 +1677 | �岛音�•体育广播 | http://lhttp.qingting.fm/live/1677/64k.mp3 +20500058 | 邵阳�济广播 | http://lhttp.qingting.fm/live/20500058/64k.mp3 +20194 | MYFM全国音�频�·广州 | http://lhttp.qingting.fm/live/20194/64k.mp3 +1144 | �州音�广播 | http://lhttp.qingting.fm/live/1144/64k.mp3 +20211701 | 太原�年之声 | http://lhttp.qingting.fm/live/20211701/64k.mp3 +15318165 | 阳泉交通广播 | http://lhttp.qingting.fm/live/15318165/64k.mp3 +266 | 上海交通广播 | http://lhttp.qingting.fm/live/266/64k.mp3 +2806 | �州交通�济广播 | http://lhttp.qingting.fm/live/2806/64k.mp3 +20671 | �海交通广播 | http://lhttp.qingting.fm/live/20671/64k.mp3 +1961 | �肥故事广播 | http://lhttp.qingting.fm/live/1961/64k.mp3 +20212380 | �肥新闻广播 | http://lhttp.qingting.fm/live/20212380/64k.mp3 +1960 | �肥交通广播 | http://lhttp.qingting.fm/live/1960/64k.mp3 +1975 | �肥汽车音� | http://lhttp.qingting.fm/live/1975/64k.mp3 +20212414 | 普兰店区新闻综�广播 | http://lhttp.qingting.fm/live/20212414/64k.mp3 +1744 | 海峡之声新闻广播 | http://lhttp.qingting.fm/live/1744/64k.mp3 +5022360 | 泉州刺�之声 | http://lhttp.qingting.fm/live/5022360/64k.mp3 +15318346 | 泉州新闻综�广播 | http://lhttp.qingting.fm/live/15318346/64k.mp3 +20709 | 龙岩新闻综�广播 | http://lhttp.qingting.fm/live/20709/64k.mp3 +5026 | �州交通之声 | http://lhttp.qingting.fm/live/5026/64k.mp3 +1743 | 漳州交通广播 | http://lhttp.qingting.fm/live/1743/64k.mp3 +1738 | 厦门�济交通广播 | http://lhttp.qingting.fm/live/1738/64k.mp3 +3937 | �州左海之声 | http://lhttp.qingting.fm/live/3937/64k.mp3 +3939 | 甘肃交通广播 | http://lhttp.qingting.fm/live/3939/64k.mp3 +5022622 | 甘肃新闻综�广播 | http://lhttp.qingting.fm/live/5022622/64k.mp3 +5022107 | 动�音�网络电� | http://lhttp.qingting.fm/live/5022107/64k.mp3 +1275 | �海交通875·环��济广播 | http://lhttp.qingting.fm/live/1275/64k.mp3 +1270 | 深圳新闻广播 | http://lhttp.qingting.fm/live/1270/64k.mp3 +1283 | 江门电�旅游之声 | http://lhttp.qingting.fm/live/1283/64k.mp3 +1257 | 梅州电�新闻广播 | http://lhttp.qingting.fm/live/1257/64k.mp3 +5021523 | 惠州音�广播 | http://lhttp.qingting.fm/live/5021523/64k.mp3 +1272 | 深圳交通广播 | http://lhttp.qingting.fm/live/1272/64k.mp3 diff --git a/assets/xiaozhi/LICENSE b/assets/xiaozhi/LICENSE new file mode 100644 index 0000000..e90b554 --- /dev/null +++ b/assets/xiaozhi/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2025 Shenzhen Xinzhi Future Technology Co., Ltd. +Copyright (c) 2025 Project Contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/assets/xiaozhi/NOTICE b/assets/xiaozhi/NOTICE new file mode 100644 index 0000000..c9612fa --- /dev/null +++ b/assets/xiaozhi/NOTICE @@ -0,0 +1,17 @@ +Folo AI Passport XiaoZhi + +This repository is derived from xiaozhi-esp32: +https://github.com/78/xiaozhi-esp32 + +Upstream snapshot used for this port: +- Version: 2.4.2 +- Commit: bb9122ab08c3083eeb4f67b3974b7afe771723b8 + +The upstream project is licensed under the MIT License. The original license +and copyright notice are preserved in LICENSE. + +Badge-specific modifications include the folo-ai-passport-c3 board identity, +ESP32-C3 pin mapping, ST7789P3 panel initialization, ES8311 audio wiring, +GPIO0 ADC ladder buttons, 8 MB build configuration, Windows build launcher +compatibility, and single-board repository/CI packaging. + diff --git a/assets/xiaozhi/wake/LICENSE b/assets/xiaozhi/wake/LICENSE new file mode 100644 index 0000000..8e206f3 --- /dev/null +++ b/assets/xiaozhi/wake/LICENSE @@ -0,0 +1,20 @@ + ESPRESSIF MIT License + + Copyright (c) 2018 + + Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case, + it is free of charge, to any person obtaining a copy of this software and associated + documentation files (the "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, + and/or sell copies of the Software, and to permit persons to whom the Software is furnished + to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all copies or + substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/assets/xiaozhi/wake/README.md b/assets/xiaozhi/wake/README.md new file mode 100644 index 0000000..6197e80 --- /dev/null +++ b/assets/xiaozhi/wake/README.md @@ -0,0 +1,34 @@ +

简体中文 · English

+ +# WakeNet9s model asset + +The `wn9s_nihaoxiaozhi` directory comes from Espressif ESP-SR **2.1.3**, registry +commit `53ff709c3cf65fcd21291c38bad5914c9639b2ae`. It recognizes Ni Hao Xiao Zhi. +The three coefficient/metadata files are unmodified. The upstream Espressif MIT +license is retained in `LICENSE` and restricts use to Espressif products. + +The firmware pins ESP-SR 2.1.3. `tools/build_wake_model.py` packages one model into +the app image and derives the displayed phrase from its metadata. The firmware +therefore needs no partition changes for this default model. + +## Custom trained phrases + +Obtain a trained **WakeNet9s / ESP32-C3 / ESP-SR 2.1.3 compatible** model first. +An arbitrary text string, WakeNet9/S3 model or MultiNet asset is not interchangeable. +Keep its license and provenance with the asset. Put `_MODEL_INFO_`, `wn9_data` and +`wn9_index` under a directory named `wn9s_` and configure: + +```sh +idf.py -D BADGE_WAKE_MODEL_DIR=/absolute/path/wn9s_custom build +``` + +Validate the resulting image size and test positive and confusable negative speech +on the device before installing it. Metadata checks do not prove neural-network +compatibility; only use a trusted trained model. Never rename metadata to pretend +the default model recognizes a different phrase. Selecting a custom model replaces +the default; it does not run two detectors simultaneously. Phrase changes currently +require a firmware rebuild, not a text edit or browser upload. + +[Official customization process](https://docs.espressif.com/projects/esp-sr/en/latest/esp32s3/wake_word_engine/ESP_Wake_Words_Customization.html) +and [community TTS-trained model requests](https://github.com/espressif/esp-sr/issues/88). +No custom training request has been submitted and no paid service has been ordered. diff --git a/assets/xiaozhi/wake/README.zh_CN.md b/assets/xiaozhi/wake/README.zh_CN.md new file mode 100644 index 0000000..6e7ffb9 --- /dev/null +++ b/assets/xiaozhi/wake/README.zh_CN.md @@ -0,0 +1,29 @@ +

简体中文 · English

+ +# WakeNet9s 模型资� + +`wn9s_nihaoxiaozhi` �自�鑫 ESP-SR **2.1.3**,注册表记录的�交为 +`53ff709c3cf65fcd21291c38bad5914c9639b2ae`,识别「你好�智�。三个模型�元数�文件 +��原样,原 Espressif MIT 许���留在 `LICENSE`,�定用于�鑫产�。 + +固件固定 ESP-SR 2.1.3。`tools/build_wake_model.py` 将一个模型打包进应用固件,并从 +模型元数�读�实际显示的唤醒�。因此默认模型无需更改分区。 + +## 自定义�模型 + +先�得兼容 **WakeNet9s / ESP32-C3 / ESP-SR 2.1.3** 的训练模型。 +任�文本�WakeNet9/S3 模型和 MultiNet 资��能互�。将模型���许���资��存, +把 `_MODEL_INFO_`�`wn9_data`�`wn9_index` 放入�为 `wn9s_<模型�>` 的目录,��置: + +```sh +idf.py -D BADGE_WAKE_MODEL_DIR=/absolute/path/wn9s_custom build +``` + +安装�验�固件容�,并用正确唤醒��相似的错误�进行实机测试。元数�检查�能�明 +神�网络兼容性,�接入���信的训练模型。�能把默认模型的元数�改�,冒充它已能 +识别新�。选择自定义模型会替�默认模型,�会�时�行两套检测器。 +当�更��模型需��新编译固件,�支��修改文字或在网页上传。 + +��考[官方定制�程](https://docs.espressif.com/projects/esp-sr/en/latest/esp32s3/wake_word_engine/ESP_Wake_Words_Customization.html) +�[社区 TTS 模型申请](https://github.com/espressif/esp-sr/issues/88)。 +尚未�交自定义训练申请,也未订购任何付费�务。 diff --git a/assets/xiaozhi/wake/wn9s_nihaoxiaozhi/_MODEL_INFO_ b/assets/xiaozhi/wake/wn9s_nihaoxiaozhi/_MODEL_INFO_ new file mode 100644 index 0000000..b217ff8 --- /dev/null +++ b/assets/xiaozhi/wake/wn9s_nihaoxiaozhi/_MODEL_INFO_ @@ -0,0 +1 @@ +wakenet9s_tts2h8_你好�智_3_0.625_0.630 diff --git a/assets/xiaozhi/wake/wn9s_nihaoxiaozhi/wn9_data b/assets/xiaozhi/wake/wn9s_nihaoxiaozhi/wn9_data new file mode 100644 index 0000000..6e5b804 Binary files /dev/null and b/assets/xiaozhi/wake/wn9s_nihaoxiaozhi/wn9_data differ diff --git a/assets/xiaozhi/wake/wn9s_nihaoxiaozhi/wn9_index b/assets/xiaozhi/wake/wn9s_nihaoxiaozhi/wn9_index new file mode 100644 index 0000000..0379b86 Binary files /dev/null and b/assets/xiaozhi/wake/wn9s_nihaoxiaozhi/wn9_index differ diff --git a/components/bsp/CMakeLists.txt b/components/bsp/CMakeLists.txt index d1e6af6..8e4adce 100644 --- a/components/bsp/CMakeLists.txt +++ b/components/bsp/CMakeLists.txt @@ -9,5 +9,4 @@ idf_component_register( "src/bsp_battery.c" INCLUDE_DIRS "include" REQUIRES driver esp_driver_i2c esp_driver_i2s esp_lcd esp_lvgl_port button esp_adc esp_codec_dev - PRIV_REQUIRES esp_timer ) diff --git a/components/bsp/include/bsp_audio.h b/components/bsp/include/bsp_audio.h index 65a5d86..1be3aff 100644 --- a/components/bsp/include/bsp_audio.h +++ b/components/bsp/include/bsp_audio.h @@ -5,6 +5,7 @@ #include "esp_err.h" #include #include +#include // �始化 codec 与 I2S。内部会调 bsp_i2c_init()(幂等),无需外部先调。�功调用���; // 失败会释放本次已创建的 codec 接�和 I2S channel,修正故障���试。 @@ -14,19 +15,16 @@ esp_err_t bsp_audio_init(void); // // ⚠ 这里有个必须绕开的�:esp_codec_dev_open() 在 codec�已打开】时会直接返回 OK 且 // ���新�置采样率】。若�先 close,16kHz 播完�播 8kHz 会以 16k 时钟�出 —— -// 音调和速度都快一�。故本函数在格��化时先 close � open。 -// 控制�和数��错误也会检查(��赖 codec-dev 是�传播错误);失败��止 -// I2S�强制休眠并释放 codec 对象,下次调用�建,�会�用�打开状�。 -// 调用方须串行化格�/休眠/唤醒�作,且切���止所有 PCM 读写。 +// 音调和速度都快一�。格��化时清�旧 codec 对象��新创建并 open。 esp_err_t bsp_audio_set_format(uint32_t hz, uint8_t bits, uint8_t ch); // 进入低功耗�强制执行 ES8311 完整 suspend 寄存器�列,回读关键寄存器 // (REG0E �比较 bit6:0,其余寄存器比较全部�), // 失败时�试一次,并显��止 I2S TX/RX。该路径��赖 codec-dev 是�打开过, // 因此开机�从未播放也能正确暂�。调用�必须�止所有 PCM 读写;函数幂等, -// 音频未�始化时视为无需处�并返回�功。失败�的��调用�留失败结果。 -// 休眠时释放 codec 对象但�留共享 I2C 总线和 I2S channel;��赖 codec -// 内部 enabled 标志��,唤醒会�新创建 codec 并��音�/格�。 +// 音频未�始化时视为无需处�并返回�功。失败��次调用会�新校验; +// �功休眠�删除 codec 对象,�留 I2C/I2S,唤醒�新创建。 +// 所有生命周期�作由独�音频任务串行调用;状�查询�跨任务。 esp_err_t bsp_audio_sleep(void); // deep sleep 专用:确� I2S TX/RX 已�止,�将 MCLK/BCLK/WS/DOUT/DIN @@ -37,6 +35,10 @@ esp_err_t bsp_audio_prepare_deep_sleep(void); // 从 light sleep 返回��� ES8311 和休眠�的采样格�。函数幂等;deep sleep // 唤醒会��应用,应由 bsp_audio_init() 按正常�动�程�新�始化。 esp_err_t bsp_audio_wake(void); +/* True also before initialization, when no codec/I2S stream is active. */ +bool bsp_audio_is_sleeping(void); +/* Also true after partial open/suspend failure; not a low-power guarantee. */ +bool bsp_audio_needs_wake(void); // 播放 / 录音。bytes 为字节数(16bit �声�时 = 采样数 x 2)。 esp_err_t bsp_audio_write(const void *pcm, size_t bytes); @@ -44,3 +46,6 @@ esp_err_t bsp_audio_read(void *pcm, size_t bytes); // 输出音� 0..100(%)。 void bsp_audio_set_volume(uint8_t percent); +/* Current shared codec output volume, or 40 before audio initialization. + * Call from an audio worker, not a button callback or under the LVGL lock. */ +uint8_t bsp_audio_get_volume(void); diff --git a/components/bsp/include/bsp_button.h b/components/bsp/include/bsp_button.h index 25978f4..ad103a4 100644 --- a/components/bsp/include/bsp_button.h +++ b/components/bsp/include/bsp_button.h @@ -17,6 +17,7 @@ typedef enum { BSP_BTN_CLICK, // �击(按下并抬起) BSP_BTN_DOUBLE, // �击 BSP_BTN_LONG, // 长按 + BSP_BTN_RELEASE, // �开瞬间,�等待��击判定;长按�也会产生 } bsp_btn_ev_t; // 按键事件回调。�行于 button 组件使用的共享 esp_timer 任务,�能入队或执行�等级 @@ -24,10 +25,11 @@ typedef enum { typedef void (*bsp_btn_cb_t)(bsp_btn_t btn, bsp_btn_ev_t ev, void *user); // �功调用���,并更新回调与 user;失败会回滚本次已创建的按键和 ADC 资�。 -// ADC 校准失败时返回错误而�是把无效电压解�为按键,修正故障���试。 esp_err_t bsp_button_init(bsp_btn_cb_t cb, void *user); // 读当� ADC 原始电压(mV)。�开时约 3300;按��键时约为该键的分压值。 // ★ �了分压/上拉阻值�,用它测出自己的三档电压,�改 bsp_pins.h 的 BSP_BTN_MV_TABLE。 // 读�失败返回 -1。 int bsp_button_read_mv(void); +/* Terminal: stops ADC polling and enables low-level deep-sleep wake. */ +esp_err_t bsp_button_prepare_deep_sleep(void); diff --git a/components/bsp/include/bsp_display.h b/components/bsp/include/bsp_display.h index 229eb90..57be597 100644 --- a/components/bsp/include/bsp_display.h +++ b/components/bsp/include/bsp_display.h @@ -6,6 +6,7 @@ #include "esp_lcd_types.h" #include #include +#include // The final LVGL frame is masked to this radius; pixels outside are pure black. #define BSP_LVGL_SCREEN_RADIUS 30 @@ -23,6 +24,11 @@ esp_lcd_panel_io_handle_t bsp_display_io(void); // 背光亮度 0..100(%)。LEDC PWM,0=全�。 void bsp_display_backlight(uint8_t percent); +uint8_t bsp_display_brightness(void); +/* Reversible panel/LVGL standby, from a worker without the LVGL lock. + * Stops both LVGL task and tick. Resume restores saved brightness, or 80%. */ +esp_err_t bsp_display_suspend(void); +esp_err_t bsp_display_resume(void); // deep sleep 专用:关闭显示�让 ST7789 进入 Sleep In,�止背光 PWM, // 将 CS/SCLK/MOSI/DC/背光设为安全电平并在 deep sleep 中��。调用时必须 @@ -37,12 +43,21 @@ esp_err_t bsp_display_prepare_deep_sleep(void); // 故此处用 struct 形���,��本头文件强行 include lvgl.h。 struct _lv_display_t; -// �动 LVGL 与其渲染任务,返回 lv_display_t*。失败返回 NULL;display/回调注册失败 -// 回滚 display 并�留已�始化的 port,�续��试。port 自身部分�始化失败需��, -// �覆盖�赖中�能尚未退出的任务。首次�始化由�一任务串行调用。 +// �动 LVGL 与其渲染任务,返回 lv_display_t*。失败返回 NULL;display 注册失败会回滚 port。 struct _lv_display_t *bsp_lvgl_init(void); // LVGL �线程安全:在�� LVGL 任务】里�作任何 lv_* 对象��必须加解�。 // LVGL 尚未就绪或超时时 lock 返回 false;�有 lock �功��调用 unlock。 bool bsp_lvgl_lock(int timeout_ms); void bsp_lvgl_unlock(void); + +/* Capture the actual device-rendered RGB565LE flush stream. Caller MUST hold + * the LVGL lock, from a worker (not a draw/timer callback). The synchronous + * sink must have a bounded timeout and must not call LVGL. Uses the existing + * partial draw buffer, no full framebuffer. Does not wake a sleeping display + * or change page/settings. Returns an error on incomplete output. */ +typedef bool (*bsp_display_capture_write_fn)(const uint8_t *, size_t, void *); +esp_err_t bsp_display_capture_rgb565(bsp_display_capture_write_fn write, void *context); + +/* Actual task/panel transition state, including a failed rollback. */ +bool bsp_display_is_suspended(void); diff --git a/components/bsp/include/bsp_pins.h b/components/bsp/include/bsp_pins.h index 8ef7a15..7244169 100644 --- a/components/bsp/include/bsp_pins.h +++ b/components/bsp/include/bsp_pins.h @@ -20,7 +20,7 @@ // -1 = ��脚未接 MCU(硬接 3.3V),由 esp_lcd_panel_reset() 走 SWRESET 软��。 #define BSP_LCD_RST (-1) #define BSP_LCD_BL 21 // 背光,LEDC PWM 调光 -#define BSP_LCD_PCLK_HZ (80 * 1000 * 1000) +#define BSP_LCD_PCLK_HZ (40 * 1000 * 1000) // ST7789 SCK 空闲低�上�沿采样 → SPI mode 0。 #define BSP_LCD_SPI_MODE 0 // 本�出厂�需�色(�考例程 TFT_init() 末尾无�件� 0x21 INVON)。 @@ -52,6 +52,7 @@ // ============================================================================ #define BSP_BTN_ADC_UNIT ADC_UNIT_1 #define BSP_BTN_ADC_CHANNEL ADC_CHANNEL_0 // GPIO0 +#define BSP_BTN_GPIO 0 #define BSP_BTN_COUNT 3 // �键的电压窗� {min_mV, max_mV};边界�相邻档中点。 diff --git a/components/bsp/src/bsp_audio.c b/components/bsp/src/bsp_audio.c index 6909d80..046cafd 100644 --- a/components/bsp/src/bsp_audio.c +++ b/components/bsp/src/bsp_audio.c @@ -1,6 +1,7 @@ // components/bsp/src/bsp_audio.c // 移�自 trae_card/components/platform/platform_esp32/src/audio_es8311.c #include "bsp_audio.h" +#include #include "bsp_es8311_sleep_check.h" #include "bsp_i2c.h" #include "bsp_pins.h" @@ -25,11 +26,12 @@ static const audio_codec_gpio_if_t *s_gpio; static uint32_t s_hz; static uint8_t s_bits, s_ch; static bool s_opened; -static bool s_sleeping; -static bool s_initialized; -static esp_err_t s_sleep_result; -static bool s_codec_release_failed; -static uint8_t s_volume; +static atomic_bool s_sleeping; +static atomic_bool s_initialized; +static atomic_bool s_resources_live; +static atomic_int s_sleep_result; +static atomic_bool s_codec_release_failed; +static uint8_t s_volume = 40; static int s_io_error; // esp_codec_dev 1.6.2 discards some control/data interface errors. Remember the @@ -293,7 +295,8 @@ static void audio_cleanup(void) { s_sleeping = false; s_initialized = false; s_sleep_result = ESP_OK; - s_volume = 0; + /* Preserve the application volume across recovery. */ + s_resources_live = s_tx || s_rx || s_ctrl || s_data || s_gpio || s_codec || s_dev; s_hz = 0; s_bits = 0; s_ch = 0; @@ -386,7 +389,7 @@ static esp_err_t audio_create_codec(void) { esp_err_t bsp_audio_init(void) { if (s_codec_release_failed) return ESP_ERR_INVALID_STATE; - if (s_initialized) return ESP_OK; + if (s_initialized) return bsp_audio_wake(); if (s_tx || s_rx || s_ctrl || s_data || s_codec || s_gpio) { ESP_LOGE(TAG, "上次音频�始化回滚�完整,拒�覆盖�存活的资��柄"); return ESP_ERR_INVALID_STATE; @@ -395,12 +398,14 @@ esp_err_t bsp_audio_init(void) { esp_err_t e = bsp_i2c_init(); if (e != ESP_OK) return e; + s_resources_live = true; s_ctrl = audio_codec_new_i2c_ctrl(&(audio_codec_i2c_cfg_t){ .port = BSP_I2C_PORT, .addr = BSP_I2C_ES8311_ADDR << 1, // 该接�� 8 �地�形� .bus_handle = bsp_i2c_bus(), }); if (!s_ctrl) { + s_resources_live = false; ESP_LOGE(TAG, "ES8311 控制�创建失败 —— 用 bsp_i2c_scan() 确认 0x%02X 是�应答;" "检查 SDA=GPIO%d / SCL=GPIO%d 接线与 codec 供电", BSP_I2C_ES8311_ADDR, BSP_I2C_SDA, BSP_I2C_SCL); @@ -486,9 +491,9 @@ fail: esp_err_t bsp_audio_sleep(void) { if (!s_initialized) return ESP_OK; - if (s_sleeping) return s_sleep_result; + if (s_sleeping && s_sleep_result == ESP_OK) return ESP_OK; - esp_err_t first_error = ESP_OK; + esp_err_t first_error = s_codec_release_failed ? ESP_ERR_INVALID_STATE : ESP_OK; // Drop stale enabled/opened state, even if suspend fails. Deletion may write // the dependency's weaker suspend sequence, so force-sleep MUST run last. // Only codec objects are released: I2C bus and I2S channels remain owned. @@ -534,7 +539,7 @@ esp_err_t bsp_audio_prepare_deep_sleep(void) { } esp_err_t bsp_audio_wake(void) { - if (!s_initialized || !s_sleeping) return ESP_OK; + if (!s_initialized || (!s_sleeping && s_opened)) return ESP_OK; // �许内部格�设置�新 open codec;失败时�次 close,��留下�唤醒状�。 s_sleeping = false; @@ -568,3 +573,13 @@ void bsp_audio_set_volume(uint8_t percent) { s_volume = percent > 100 ? 100 : percent; if (s_dev && s_opened && !s_sleeping) esp_codec_dev_set_out_vol(s_dev, s_volume); } + +/* Sleep success and the need to reopen are different after a failed suspend. */ +bool bsp_audio_is_sleeping(void) { + return !s_codec_release_failed && ((!s_initialized && !s_resources_live) || + (s_sleeping && s_sleep_result == ESP_OK)); +} +bool bsp_audio_needs_wake(void) { + return s_initialized && (s_sleeping || !s_opened); +} +uint8_t bsp_audio_get_volume(void) { return s_volume; } diff --git a/components/bsp/src/bsp_battery.c b/components/bsp/src/bsp_battery.c index 09a338a..4906050 100644 --- a/components/bsp/src/bsp_battery.c +++ b/components/bsp/src/bsp_battery.c @@ -22,6 +22,9 @@ static const char *TAG = "bsp_batt"; #define CW_CONFIG_SLEEP 0xF0 #define CW_UPDATE_FLAG 0x80 #define CW_PROFILE_SIZE 80 +/* A freshly woken CW2017 reports 0.00% while it rebuilds SOC. At a normal + * cell voltage that is a transient value, not an empty battery. */ +#define CW_EMPTY_MAX_MV 3300 static const uint8_t s_battery_profile[CW_PROFILE_SIZE] = { 0x64, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, @@ -40,6 +43,7 @@ _Static_assert(sizeof(s_battery_profile) == CW_PROFILE_SIZE, "CW2017 battery profile must contain exactly 80 bytes"); static i2c_master_dev_handle_t s_dev; +static int s_last_soc = -1; static esp_err_t cw_read(uint8_t reg, uint8_t *buf, size_t n) { if (!s_dev) return ESP_ERR_INVALID_STATE; @@ -112,12 +116,25 @@ static int cw_update_profile(void) { return cw_enter_active(); } -// 首次计算期间 SOC �能暂时大于 100;最多等待 5 秒�判定�始化失败。 +static int cw_voltage_mv(void) { + uint8_t b[2] = { 0 }; + if (cw_read(CW_REG_VCELL_H, b, 2) != 0) return -1; + uint32_t raw = ((uint32_t)b[0] << 8 | b[1]) & 0x3FFF; + return raw ? (int)((raw * 3125) / 10000) : -1; +} + +// 首次计算期间 SOC �能暂时为 0 或大于 100;最多等待 5 秒。 static int cw_wait_soc_ready(void) { for (int retry = 0; retry < 50; retry++) { - uint8_t soc = 0; + uint8_t soc[2] = { 0 }; vTaskDelay(pdMS_TO_TICKS(100)); - if (cw_read(CW_REG_SOC_H, &soc, 1) == 0 && soc <= 100) return 0; + if (cw_read(CW_REG_SOC_H, soc, 2) != 0 || soc[0] > 100) continue; + int voltage_mv = cw_voltage_mv(); + if (soc[0] > 0 || soc[1] > 0 || + (voltage_mv > 0 && voltage_mv <= CW_EMPTY_MAX_MV)) { + s_last_soc = soc[0]; + return 0; + } } return -1; } @@ -217,12 +234,12 @@ int bsp_battery_soc(void) { if (cw_read(CW_REG_SOC_H, b, 2) != 0) return -1; int soc = b[0]; // 高字节�整数百分比 if (soc > 100) return -1; // 芯片未就绪时�能读到 0xFF + if (soc == 0 && b[1] == 0) { + int voltage_mv = cw_voltage_mv(); + if (voltage_mv < 0 || voltage_mv > CW_EMPTY_MAX_MV) return s_last_soc; + } + s_last_soc = soc; return soc; } -int bsp_battery_mv(void) { - uint8_t b[2] = { 0 }; - if (cw_read(CW_REG_VCELL_H, b, 2) != 0) return -1; - uint32_t raw = ((uint32_t)b[0] << 8 | b[1]) & 0x3FFF; // 14bit - return (int)((raw * 3125) / 10000); // raw * 312.5uV → mV -} +int bsp_battery_mv(void) { return cw_voltage_mv(); } diff --git a/components/bsp/src/bsp_button.c b/components/bsp/src/bsp_button.c index 6bb9e92..7f5cffa 100644 --- a/components/bsp/src/bsp_button.c +++ b/components/bsp/src/bsp_button.c @@ -3,11 +3,13 @@ #include "bsp_button.h" #include "bsp_pins.h" #include "iot_button.h" +#include "button_adc.h" #include "esp_adc/adc_oneshot.h" #include "esp_adc/adc_cali.h" #include "esp_adc/adc_cali_scheme.h" #include "esp_log.h" -#include "esp_timer.h" +#include "esp_sleep.h" +#include "driver/gpio.h" static const char *TAG = "bsp_btn"; @@ -16,69 +18,29 @@ static const uint16_t BTN_MV[BSP_BTN_COUNT][2] = BSP_BTN_MV_TABLE; static button_handle_t s_btn[BSP_BTN_COUNT]; static bsp_btn_cb_t s_cb; static void *s_user; -static volatile bool s_ready; +static bool s_ready; // ADC1 是 unit 级独�资�:iot_button 与 bsp_button_read_mv() 必须共用�一个 oneshot // �柄。�第二个调 adc_oneshot_new_unit() �就拿到 "adc1 is already in use"。 static adc_oneshot_unit_handle_t s_adc; static adc_cali_handle_t s_cali; +// 电压读�的衰�档必须与 button 组件内部的 ADC_BUTTON_ATTEN 一致 —— 通��被�置一次 +// (由组件在 iot_button_new_adc_device() 里下�),两边对�上会让读数与按键阈值错�。 +// managed_components/espressif__button/button_adc.c:26 在 C3 上� ADC_ATTEN_DB_6+1。 #define BSP_BTN_ATTEN ADC_ATTEN_DB_12 // �程约 0~3100mV,覆盖�开� -// Use the public button-driver interface, not button_adc's global registry: -// button 4.2.0 leaves an occupied index behind when its core allocation fails. -// These static drivers and the single ADC/calibration pair are owned by BSP. -typedef struct { - button_driver_t base; - unsigned index; -} bsp_adc_button_t; -static bsp_adc_button_t s_drivers[BSP_BTN_COUNT]; -static int64_t s_sample_time; -static int s_sample_mv = -1; -static bool s_sample_valid; - -static uint8_t button_level(button_driver_t *driver) { - if (!s_ready) return BUTTON_INACTIVE; - const bsp_adc_button_t *button = (const bsp_adc_button_t *)driver; - const int64_t now = esp_timer_get_time(); - // Share one averaged reading across the three keys in a polling cycle. - if (!s_sample_valid || now - s_sample_time >= 1000) { - int sum = 0; - s_sample_time = now; - s_sample_valid = true; - s_sample_mv = -1; - for (int i = 0; i < CONFIG_ADC_BUTTON_SAMPLE_TIMES; ++i) { - int raw; - if (adc_oneshot_read(s_adc, BSP_BTN_ADC_CHANNEL, &raw) != ESP_OK) { - return BUTTON_INACTIVE; - } - sum += raw; - } - if (adc_cali_raw_to_voltage(s_cali, sum / CONFIG_ADC_BUTTON_SAMPLE_TIMES, - &s_sample_mv) != ESP_OK) { - s_sample_mv = -1; - } - } - // Half-open windows prevent two keys from matching a shared boundary. - return s_sample_mv >= BTN_MV[button->index][0] && - s_sample_mv < BTN_MV[button->index][1] ? BUTTON_ACTIVE : BUTTON_INACTIVE; -} - -static esp_err_t button_driver_delete(button_driver_t *driver) { - (void)driver; // Static storage; shared ADC is released after all buttons. - return ESP_OK; -} - // �个按键把"哪个键"�回调带回�。button 组件的回调签�固定,故用 usr_data 传索引。 static void on_event(void *arg, void *usr_data, bsp_btn_ev_t ev) { (void)arg; - if (!s_ready || !s_cb) return; + if (!s_cb) return; s_cb((bsp_btn_t)(intptr_t)usr_data, ev, s_user); } static void cb_press (void *a, void *u) { on_event(a, u, BSP_BTN_PRESS); } static void cb_click (void *a, void *u) { on_event(a, u, BSP_BTN_CLICK); } static void cb_double(void *a, void *u) { on_event(a, u, BSP_BTN_DOUBLE); } static void cb_long (void *a, void *u) { on_event(a, u, BSP_BTN_LONG); } +static void cb_release(void *a, void *u) { on_event(a, u, BSP_BTN_RELEASE); } // �始化中途失败时先�掉所有 button driver,�释放本文件�有的校准与 ADC unit。 // button driver �在轮询时�能先删 ADC,�则 timer callback 会访问失效�柄。 @@ -86,7 +48,6 @@ static void button_cleanup(void) { s_cb = NULL; s_user = NULL; s_ready = false; - s_sample_valid = false; for (int i = BSP_BTN_COUNT - 1; i >= 0; i--) { if (!s_btn[i]) continue; @@ -98,10 +59,8 @@ static void button_cleanup(void) { s_btn[i] = NULL; } - // Never free the ADC beneath a driver whose deletion failed. - for (int i = 0; i < BSP_BTN_COUNT; ++i) { - if (s_btn[i]) return; - } + /* A live button driver may still poll the ADC after delete fails. */ + for (int i = 0; i < BSP_BTN_COUNT; ++i) if (s_btn[i]) return; if (s_cali) { esp_err_t e = adc_cali_delete_scheme_curve_fitting(s_cali); @@ -117,6 +76,7 @@ static void button_cleanup(void) { static esp_err_t register_callbacks(button_handle_t button, void *index) { esp_err_t e = iot_button_register_cb(button, BUTTON_PRESS_DOWN, NULL, cb_press, index); + if (e == ESP_OK) e = iot_button_register_cb(button, BUTTON_PRESS_UP, NULL, cb_release, index); if (e == ESP_OK) e = iot_button_register_cb(button, BUTTON_SINGLE_CLICK, NULL, cb_click, index); if (e == ESP_OK) e = iot_button_register_cb(button, BUTTON_DOUBLE_CLICK, NULL, cb_double, index); if (e == ESP_OK) e = iot_button_register_cb(button, BUTTON_LONG_PRESS_START, NULL, cb_long, index); @@ -142,7 +102,8 @@ esp_err_t bsp_button_init(bsp_btn_cb_t cb, void *user) { s_cb = cb; s_user = user; - // BSP owns one ADC unit and one calibration handle for polling and reads. + // 先由 BSP 建 unit,�把�柄交给 button 组件(button_adc.h:adc_handle � NULL ��用), + // 这样本文件的 bsp_button_read_mv() 也能读�一路 ADC。 const adc_oneshot_unit_init_cfg_t ucfg = { .unit_id = BSP_BTN_ADC_UNIT }; esp_err_t ae = adc_oneshot_new_unit(&ucfg, &s_adc); if (ae != ESP_OK) { @@ -152,32 +113,17 @@ esp_err_t bsp_button_init(bsp_btn_cb_t cb, void *user) { return ae; } - const adc_oneshot_chan_cfg_t channel = { - .atten = BSP_BTN_ATTEN, - .bitwidth = ADC_BITWIDTH_DEFAULT, - }; - ae = adc_oneshot_config_channel(s_adc, BSP_BTN_ADC_CHANNEL, &channel); - if (ae != ESP_OK) { button_cleanup(); return ae; } - const adc_cali_curve_fitting_config_t cal = { - .unit_id = BSP_BTN_ADC_UNIT, - .chan = BSP_BTN_ADC_CHANNEL, - .atten = BSP_BTN_ATTEN, - .bitwidth = ADC_BITWIDTH_DEFAULT, - }; - ae = adc_cali_create_scheme_curve_fitting(&cal, &s_cali); - if (ae != ESP_OK) { - ESP_LOGE(TAG, "ADC 校准创建失败: %s", esp_err_to_name(ae)); - button_cleanup(); - return ae; // No guessed mV: an unavailable reading is not an UP press. - } - for (int i = 0; i < BSP_BTN_COUNT; i++) { - s_drivers[i] = (bsp_adc_button_t){ - .base = { .get_key_level = button_level, .del = button_driver_delete }, - .index = (unsigned)i, + const button_adc_config_t ac = { + .adc_handle = &s_adc, // �用上�这一个,别让组件自建 + .unit_id = BSP_BTN_ADC_UNIT, + .adc_channel = BSP_BTN_ADC_CHANNEL, + .button_index = i, + .min = BTN_MV[i][0], + .max = BTN_MV[i][1], }; const button_config_t bc = { 0 }; - esp_err_t e = iot_button_create(&bc, &s_drivers[i].base, &s_btn[i]); + esp_err_t e = iot_button_new_adc_device(&bc, &ac, &s_btn[i]); if (e != ESP_OK || !s_btn[i]) { ESP_LOGE(TAG, "按键 %d 创建失败 (%s) —— 检查 GPIO%d 的 ADC �置与分压电阻", i, esp_err_to_name(e), BSP_BTN_ADC_CHANNEL); @@ -194,7 +140,19 @@ esp_err_t bsp_button_init(bsp_btn_cb_t cb, void *user) { } } - s_sample_valid = false; + // 通�已由组件�置好,这里�补一份校准�柄给 bsp_button_read_mv() 用。 + // 失败�致命:按键照常工作,�是读�出电压(标定分压电阻时�需�)。 + const adc_cali_curve_fitting_config_t cal = { + .unit_id = BSP_BTN_ADC_UNIT, + .chan = BSP_BTN_ADC_CHANNEL, + .atten = BSP_BTN_ATTEN, + .bitwidth = ADC_BITWIDTH_DEFAULT, + }; + if (adc_cali_create_scheme_curve_fitting(&cal, &s_cali) != ESP_OK) { + ESP_LOGW(TAG, "ADC 校准创建失败,Button 页将无法显示电压"); + s_cali = NULL; + } + s_ready = true; ESP_LOGI(TAG, "按键就绪:ADC1_CH%d 三键分压", BSP_BTN_ADC_CHANNEL); return ESP_OK; @@ -210,3 +168,10 @@ int bsp_button_read_mv(void) { if (adc_cali_raw_to_voltage(s_cali, raw, &mv) != ESP_OK) return -1; return mv; } +esp_err_t bsp_button_prepare_deep_sleep(void){ + button_cleanup();if(s_adc||s_cali)return ESP_ERR_INVALID_STATE; + for(unsigned i=0;i +#include +#include + +typedef bool (*bsp_capture_write_fn)(const uint8_t *data, size_t size, void *context); +typedef struct { + int width, height, next_y; + bool failed; + bsp_capture_write_fn write; + void *context; +} bsp_capture_stream_t; + +/* Full-width, top-to-bottom RGB565 strips; stride padding is never exported. + * Fail closed on missing, reordered or overlapping strips, or a failed sink. */ +static inline bool bsp_capture_stream_strip(bsp_capture_stream_t *s, + int x1, int y1, int x2, int y2, const uint8_t *data, size_t stride) { + if (s->failed) return false; + if (!data || !s->write || s->width <= 0 || s->height <= 0 || + x1 != 0 || x2 != s->width - 1 || y1 != s->next_y || + y2 < y1 || y2 >= s->height || stride < (size_t)s->width * 2) { + s->failed = true; + return false; + } + for (int y = y1; y <= y2; ++y) { + if (!s->write(data + (size_t)(y - y1) * stride, + (size_t)s->width * 2, s->context)) { + s->failed = true; + return false; + } + s->next_y++; + } + return true; +} + +static inline bool bsp_capture_stream_complete(const bsp_capture_stream_t *s) { + return !s->failed && s->height > 0 && s->next_y == s->height; +} diff --git a/components/bsp/src/bsp_display.c b/components/bsp/src/bsp_display.c index 1109397..f8e9046 100644 --- a/components/bsp/src/bsp_display.c +++ b/components/bsp/src/bsp_display.c @@ -231,9 +231,12 @@ esp_lcd_panel_handle_t bsp_display_panel(void) { return s_panel; } esp_lcd_panel_io_handle_t bsp_display_io(void) { return s_io; } +static uint8_t s_brightness; +uint8_t bsp_display_brightness(void) {return s_brightness;} void bsp_display_backlight(uint8_t percent) { if (!s_bl_ready) return; if (percent > 100) percent = 100; + s_brightness = percent; uint32_t max_duty = (1u << BSP_BL_LEDC_RES) - 1u; uint32_t duty = (max_duty * percent) / 100u; ledc_set_duty(BSP_BL_LEDC_MODE, BSP_BL_LEDC_CHANNEL, duty); diff --git a/components/bsp/src/bsp_display_lvgl.c b/components/bsp/src/bsp_display_lvgl.c index ae75c04..7d41320 100644 --- a/components/bsp/src/bsp_display_lvgl.c +++ b/components/bsp/src/bsp_display_lvgl.c @@ -2,18 +2,25 @@ // LVGL 接入�独�文件:�用 LVGL 的开�者删掉本文件 + idf_component.yml 里的两��赖��。 #include "bsp_display.h" #include "bsp_display_rounding.h" +#include "bsp_capture_stream.h" #include "bsp_pins.h" #include "esp_lvgl_port.h" #include "esp_log.h" -#include +#include "esp_lcd_panel_ops.h" +#include "freertos/FreeRTOS.h" +#include "freertos/task.h" static const char *TAG = "bsp_lvgl"; -#define BSP_LVGL_DRAW_BUFFER_LINES 40 - static lv_display_t *s_disp; -static bool s_port_initialized; -static bool s_port_init_failed; +static bool s_port_initialized, s_port_init_failed; +static TaskHandle_t s_lvgl_task; +static bool s_suspended; +static bsp_capture_stream_t *s_capture; /* Only accessed under the LVGL lock. */ +static uint8_t s_saved_brightness=80; +static void remember_lvgl_task(lv_timer_t *timer) { + s_lvgl_task=xTaskGetCurrentTaskHandle();lv_timer_delete(timer); +} static void rounded_flush_event(lv_event_t *event) { @@ -29,28 +36,44 @@ static void rounded_flush_event(lv_event_t *event) if (draw_buf->header.stride < (uint32_t)width * sizeof(uint16_t)) return; for (int32_t y = area->y1; y <= area->y2; ++y) { - uint16_t *row = (uint16_t *)(draw_buf->data + - (y - area->y1) * draw_buf->header.stride); - int32_t visible_x1; - int32_t visible_x2; - if (!bsp_display_rounded_row_span(y, BSP_LCD_W, BSP_LCD_H, - BSP_LVGL_SCREEN_RADIUS, &visible_x1, - &visible_x2)) { - memset(row, 0, (size_t)width * sizeof(uint16_t)); + if (y >= BSP_LVGL_SCREEN_RADIUS && + y < BSP_LCD_H - BSP_LVGL_SCREEN_RADIUS) { continue; } - // Only clear pixels outside the visible span. The port swaps RGB565 - // bytes after this event; black is 0 in either byte order. - const int32_t clear_left_end = visible_x1 > area->x2 ? area->x2 : visible_x1 - 1; - const int32_t clear_right_start = visible_x2 < area->x1 ? area->x1 : visible_x2 + 1; - for (int32_t x = area->x1; x <= clear_left_end; ++x) { - row[x - area->x1] = 0; - } - for (int32_t x = clear_right_start; x <= area->x2; ++x) { - row[x - area->x1] = 0; + + uint16_t *row = (uint16_t *)(draw_buf->data + + (y - area->y1) * draw_buf->header.stride); + for (int32_t x = area->x1; x <= area->x2; ++x) { + if (bsp_display_pixel_outside_rounded_rect( + x, y, BSP_LCD_W, BSP_LCD_H, BSP_LVGL_SCREEN_RADIUS)) { + // The port swaps RGB565 bytes after this event; black is 0 in + // either byte order, so masking here is safe. + row[x - area->x1] = 0; + } } } + if (s_capture) { + bsp_capture_stream_strip(s_capture, area->x1, area->y1, area->x2, area->y2, + draw_buf->data, draw_buf->header.stride); + } +} +esp_err_t bsp_display_capture_rgb565(bsp_display_capture_write_fn write, void *context) { + if (!s_disp || s_suspended || s_capture || !write || + lv_display_get_color_format(s_disp) != LV_COLOR_FORMAT_RGB565) { + return ESP_ERR_INVALID_STATE; + } + bsp_capture_stream_t capture = { + .width = BSP_LCD_W, .height = BSP_LCD_H, .write = write, .context = context + }; + /* Invalidate the full screen so the existing partial renderer emits every + * row once. These exact masked pixels also reach the panel after byte swap. + * Holding the port lock freezes page mutations for the entire frame. */ + lv_obj_invalidate(lv_display_get_screen_active(s_disp)); + s_capture = &capture; + lv_refr_now(s_disp); + s_capture = NULL; + return bsp_capture_stream_complete(&capture) ? ESP_OK : ESP_FAIL; } lv_display_t *bsp_lvgl_init(void) { @@ -79,9 +102,11 @@ lv_display_t *bsp_lvgl_init(void) { const lvgl_port_display_cfg_t dc = { .panel_handle = bsp_display_panel(), .io_handle = bsp_display_io(), - // ⚠ C3 无 PSRAM,DMA �能用内部 RAM。40 行�缓冲约 19.2KB, - // ��少窗�命令和队列�交次数;��留�缓冲,���缓冲挤压音频/Wi-Fi。 - .buffer_size = (uint32_t)BSP_LCD_W * BSP_LVGL_DRAW_BUFFER_LINES, + // ⚠ C3 无 PSRAM,DMA �能用内部 RAM(总共约 150KB)。 + // 20 行�缓冲 ≈ 9.6KB;若改� 40 行�缓冲(≈37.5KB)会把 I2S 等外设的 + // DMA �述符挤到 NO_MEM。刷新略慢但稳。 + // Ten rows leave 4,800 more contiguous bytes for TLS + Opus on C3. + .buffer_size = (uint32_t)BSP_LCD_W * 10, .double_buffer = false, .hres = BSP_LCD_W, .vres = BSP_LCD_H, // 旋转/镜�必须在这里�:esp_lvgl_port 注册显示时会�新下� MADCTL, @@ -116,6 +141,12 @@ lv_display_t *bsp_lvgl_init(void) { // Mask the final RGB565 flush instead of using root-screen clip_corner. // Full-screen rounded clipping creates an ARGB layer that does not fit the // 24 KB LVGL pool reliably on this no-PSRAM target. + lv_timer_t *task_timer = lv_timer_create(remember_lvgl_task, 1, NULL); + if (!task_timer) { + lvgl_port_remove_disp(disp); + lvgl_port_unlock(); + return NULL; + } s_disp = disp; lvgl_port_unlock(); @@ -130,3 +161,38 @@ bool bsp_lvgl_lock(int timeout_ms) { void bsp_lvgl_unlock(void) { if (s_disp) lvgl_port_unlock(); } + +esp_err_t bsp_display_suspend(void) { + if(s_suspended)return ESP_OK; + if(!s_disp||!s_lvgl_task)return ESP_ERR_INVALID_STATE; + if(!bsp_lvgl_lock(1000))return ESP_ERR_TIMEOUT; + s_saved_brightness=bsp_display_brightness(); + if(!s_saved_brightness)s_saved_brightness=80; + esp_err_t e=lvgl_port_stop(); + if(e!=ESP_OK){lvgl_port_resume();bsp_lvgl_unlock();return e;} + /* In this LVGL version the disabled handler returns 1 ms. Stop alone + * would increase wakeups. With its port lock held, the LVGL task cannot + * own any UI/flush work, so it is safe to suspend it as well. */ + vTaskSuspend(s_lvgl_task);s_suspended=true; + bsp_display_backlight(0); + e=esp_lcd_panel_disp_on_off(bsp_display_panel(),false); + if(e==ESP_OK)e=esp_lcd_panel_disp_sleep(bsp_display_panel(),true); + bsp_lvgl_unlock(); + if(e!=ESP_OK)(void)bsp_display_resume(); + return e; +} +esp_err_t bsp_display_resume(void) { + if(!s_suspended)return ESP_OK; + if(!bsp_lvgl_lock(1000))return ESP_ERR_TIMEOUT; + esp_err_t e=esp_lcd_panel_disp_sleep(bsp_display_panel(),false); + if(e==ESP_OK){vTaskDelay(pdMS_TO_TICKS(120));e=esp_lcd_panel_disp_on_off(bsp_display_panel(),true);} + if(e==ESP_OK)e=lvgl_port_resume(); + if(e==ESP_OK){ + lv_obj_invalidate(lv_display_get_screen_active(s_disp)); + vTaskResume(s_lvgl_task);s_suspended=false; + bsp_display_backlight(s_saved_brightness?s_saved_brightness:80); + } + bsp_lvgl_unlock();return e; +} + +bool bsp_display_is_suspended(void) { return s_suspended; } diff --git a/components/bsp/src/bsp_display_rounding.c b/components/bsp/src/bsp_display_rounding.c index 4d5f0a4..16d0992 100644 --- a/components/bsp/src/bsp_display_rounding.c +++ b/components/bsp/src/bsp_display_rounding.c @@ -1,39 +1,5 @@ #include "bsp_display_rounding.h" -static int32_t clamp_radius(int32_t width, int32_t height, int32_t radius) -{ - if (radius <= 0 || width <= 0 || height <= 0) return 0; - const int32_t max_radius = (width < height ? width : height) / 2; - return radius > max_radius ? max_radius : radius; -} - -bool bsp_display_rounded_row_span(int32_t y, int32_t width, int32_t height, - int32_t radius, int32_t *x1, int32_t *x2) -{ - if (!x1 || !x2 || width <= 0 || height <= 0 || y < 0 || y >= height) { - return false; - } - radius = clamp_radius(width, height, radius); - if (radius <= 0 || (y >= radius && y < height - radius)) { - *x1 = 0; - *x2 = width - 1; - return true; - } - - const int32_t edge_y = y < radius ? radius - y : y - (height - 1 - radius); - int32_t inset = 0; - while ((inset + 1) * (inset + 1) + edge_y * edge_y <= radius * radius) { - ++inset; - } - // The loop above is at most 30 iterations for this board and runs only - // once per edge row, instead of once per pixel in every flush. - *x1 = radius - inset; - *x2 = width - radius + inset - 1; - if (*x1 < 0) *x1 = 0; - if (*x2 >= width) *x2 = width - 1; - return *x1 <= *x2; -} - bool bsp_display_pixel_outside_rounded_rect(int32_t x, int32_t y, int32_t width, int32_t height, int32_t radius) @@ -41,7 +7,8 @@ bool bsp_display_pixel_outside_rounded_rect(int32_t x, int32_t y, if (x < 0 || y < 0 || x >= width || y >= height) return true; if (radius <= 0 || width <= 0 || height <= 0) return false; - radius = clamp_radius(width, height, radius); + int32_t max_radius = (width < height ? width : height) / 2; + if (radius > max_radius) radius = max_radius; int32_t dx; if (x < radius) { diff --git a/components/bsp/src/bsp_display_rounding.h b/components/bsp/src/bsp_display_rounding.h index 400510e..4c562b8 100644 --- a/components/bsp/src/bsp_display_rounding.h +++ b/components/bsp/src/bsp_display_rounding.h @@ -7,8 +7,3 @@ bool bsp_display_pixel_outside_rounded_rect(int32_t x, int32_t y, int32_t width, int32_t height, int32_t radius); - -// Return the inclusive horizontal span that remains visible on an edge row. -// The span is empty when the row is outside the rounded rectangle. -bool bsp_display_rounded_row_span(int32_t y, int32_t width, int32_t height, - int32_t radius, int32_t *x1, int32_t *x2); diff --git a/components/opus/CMakeLists.txt b/components/opus/CMakeLists.txt new file mode 100644 index 0000000..1dcc041 --- /dev/null +++ b/components/opus/CMakeLists.txt @@ -0,0 +1,169 @@ +# libopus decoder component for the Voice Keychain. +# Built as a fixed-point decoder (ESP32-C3 has no FPU). +# +# Source list mirrors libopus' SILK_SOURCES + CELT_SOURCES (top-level only, no +# float/SSE/NEON/ARM subdirs). The full SILK set is used even though only the +# decoder is linked: opus_decoder -> celt_decoder / silk decode pipeline pulls in +# resampler tables (resampler_rom.c), bwexpander (bwexpander_32.c), and the shared +# NLSF/PLC sources. -ffunction-sections + --gc-sections drop unused encoder code. +idf_component_register( + SRCS + "libopus/src/opus.c" + "libopus/src/opus_decoder.c" + "libopus/src/opus_multistream_decoder.c" + "libopus/src/repacketizer.c" + # --- CELT (decoder path) --- + "libopus/celt/bands.c" + "libopus/celt/celt.c" + "libopus/celt/celt_decoder.c" + "libopus/celt/celt_lpc.c" + "libopus/celt/cwrs.c" + "libopus/celt/entcode.c" + "libopus/celt/entdec.c" + "libopus/celt/entenc.c" + "libopus/celt/kiss_fft.c" + "libopus/celt/laplace.c" + "libopus/celt/mathops.c" + "libopus/celt/mdct.c" + "libopus/celt/modes.c" + "libopus/celt/pitch.c" + "libopus/celt/quant_bands.c" + "libopus/celt/rate.c" + "libopus/celt/vq.c" + # --- SILK (SILK_SOURCES, encoder+decoder shared) --- + "libopus/silk/A2NLSF.c" + "libopus/silk/CNG.c" + "libopus/silk/HP_variable_cutoff.c" + "libopus/silk/LPC_analysis_filter.c" + "libopus/silk/LPC_fit.c" + "libopus/silk/LPC_inv_pred_gain.c" + "libopus/silk/LP_variable_cutoff.c" + "libopus/silk/NLSF2A.c" + "libopus/silk/NLSF_VQ.c" + "libopus/silk/NLSF_VQ_weights_laroia.c" + "libopus/silk/NLSF_decode.c" + "libopus/silk/NLSF_del_dec_quant.c" + "libopus/silk/NLSF_encode.c" + "libopus/silk/NLSF_stabilize.c" + "libopus/silk/NLSF_unpack.c" + "libopus/silk/NSQ.c" + "libopus/silk/NSQ_del_dec.c" + "libopus/silk/PLC.c" + "libopus/silk/VAD.c" + "libopus/silk/VQ_WMat_EC.c" + "libopus/silk/ana_filt_bank_1.c" + "libopus/silk/biquad_alt.c" + "libopus/silk/bwexpander.c" + "libopus/silk/bwexpander_32.c" + "libopus/silk/check_control_input.c" + "libopus/silk/code_signs.c" + "libopus/silk/control_SNR.c" + "libopus/silk/control_audio_bandwidth.c" + "libopus/silk/control_codec.c" + "libopus/silk/debug.c" + "libopus/silk/dec_API.c" + "libopus/silk/decode_core.c" + "libopus/silk/decode_frame.c" + "libopus/silk/decode_indices.c" + "libopus/silk/decode_parameters.c" + "libopus/silk/decode_pitch.c" + "libopus/silk/decode_pulses.c" + "libopus/silk/decoder_set_fs.c" + "libopus/silk/enc_API.c" + "libopus/silk/encode_indices.c" + "libopus/silk/encode_pulses.c" + "libopus/silk/gain_quant.c" + "libopus/silk/init_decoder.c" + "libopus/silk/init_encoder.c" + "libopus/silk/inner_prod_aligned.c" + "libopus/silk/interpolate.c" + "libopus/silk/lin2log.c" + "libopus/silk/log2lin.c" + "libopus/silk/pitch_est_tables.c" + "libopus/silk/process_NLSFs.c" + "libopus/silk/quant_LTP_gains.c" + "libopus/silk/resampler.c" + "libopus/silk/resampler_down2.c" + "libopus/silk/resampler_down2_3.c" + "libopus/silk/resampler_private_AR2.c" + "libopus/silk/resampler_private_IIR_FIR.c" + "libopus/silk/resampler_private_down_FIR.c" + "libopus/silk/resampler_private_up2_HQ.c" + "libopus/silk/resampler_rom.c" + "libopus/silk/shell_coder.c" + "libopus/silk/sigm_Q15.c" + "libopus/silk/sort.c" + "libopus/silk/stereo_LR_to_MS.c" + "libopus/silk/stereo_MS_to_LR.c" + "libopus/silk/stereo_decode_pred.c" + "libopus/silk/stereo_encode_pred.c" + "libopus/silk/stereo_find_predictor.c" + "libopus/silk/stereo_quant_pred.c" + "libopus/silk/sum_sqr_shift.c" + "libopus/silk/table_LSF_cos.c" + "libopus/silk/tables_LTP.c" + "libopus/silk/tables_NLSF_CB_NB_MB.c" + "libopus/silk/tables_NLSF_CB_WB.c" + "libopus/silk/tables_gain.c" + "libopus/silk/tables_other.c" + "libopus/silk/tables_pitch_lag.c" + "libopus/silk/tables_pulses_per_block.c" + # --- SILK fixed-point HQ encoder helpers (needed by enc_API/NSQ/control_*) --- + # Only silk/fixed/*.c is compiled; silk/float/*.c is excluded because the + # C3 has no FPU, and the FIXED_POINT compile-time switch already routes the + # encoder to the fixed implementations (float symbols are never referenced). + "libopus/silk/fixed/LTP_analysis_filter_FIX.c" + "libopus/silk/fixed/LTP_scale_ctrl_FIX.c" + "libopus/silk/fixed/apply_sine_window_FIX.c" + "libopus/silk/fixed/autocorr_FIX.c" + "libopus/silk/fixed/burg_modified_FIX.c" + "libopus/silk/fixed/corrMatrix_FIX.c" + "libopus/silk/fixed/encode_frame_FIX.c" + "libopus/silk/fixed/find_LPC_FIX.c" + "libopus/silk/fixed/find_LTP_FIX.c" + "libopus/silk/fixed/find_pitch_lags_FIX.c" + "libopus/silk/fixed/find_pred_coefs_FIX.c" + "libopus/silk/fixed/k2a_FIX.c" + "libopus/silk/fixed/k2a_Q16_FIX.c" + "libopus/silk/fixed/noise_shape_analysis_FIX.c" + "libopus/silk/fixed/pitch_analysis_core_FIX.c" + "libopus/silk/fixed/process_gains_FIX.c" + "libopus/silk/fixed/regularize_correlations_FIX.c" + "libopus/silk/fixed/residual_energy16_FIX.c" + "libopus/silk/fixed/residual_energy_FIX.c" + "libopus/silk/fixed/schur64_FIX.c" + "libopus/silk/fixed/schur_FIX.c" + "libopus/silk/fixed/vector_ops_FIX.c" + "libopus/silk/fixed/warped_autocorrelation_FIX.c" + INCLUDE_DIRS "libopus/include" + REQUIRES freertos +) + +# Fixed-point build for the no-FPU ESP32-C3. These flags match the feasibility +# cross-compile test (57 files, 0 failures). +target_compile_definitions(${COMPONENT_LIB} PRIVATE + OPUS_BUILD + FIXED_POINT + VAR_ARRAYS + OPUS_EXPORT= +) +# 说明: 用 VAR_ARRAYS(任务栈 VLA) 而� NONTHREADSAFE_PSEUDOSTACK(堆上 alloc 120KB +# 伪栈, ESP32-C3 空闲堆仅 ~68KB 会 malloc 失败导致 SILK 解�崩溃)。VLA 的栈需求 +# 由 player_task 的 16KB 栈承载。 +target_compile_options(${COMPONENT_LIB} PRIVATE + -Wno-unused-parameter + -Wno-error + -Wno-error=sizeof-array-div + -Wno-error=stringop-overread + -Wno-error=array-bounds + -ffunction-sections + -fdata-sections +) +target_include_directories(${COMPONENT_LIB} PRIVATE + "libopus/include" + "libopus/src" + "libopus/celt" + "libopus/silk" + "libopus/silk/fixed" + "libopus/silk/float" +) diff --git a/components/opus/libopus/AUTHORS b/components/opus/libopus/AUTHORS new file mode 100644 index 0000000..b3d22a2 --- /dev/null +++ b/components/opus/libopus/AUTHORS @@ -0,0 +1,6 @@ +Jean-Marc Valin (jmvalin@jmvalin.ca) +Koen Vos (koenvos74@gmail.com) +Timothy Terriberry (tterribe@xiph.org) +Karsten Vandborg Sorensen (karsten.vandborg.sorensen@skype.net) +Soren Skak Jensen (ssjensen@gn.com) +Gregory Maxwell (greg@xiph.org) diff --git a/components/opus/libopus/CMakeLists.txt b/components/opus/libopus/CMakeLists.txt new file mode 100644 index 0000000..17ee3fc --- /dev/null +++ b/components/opus/libopus/CMakeLists.txt @@ -0,0 +1,411 @@ +cmake_minimum_required(VERSION 3.1) + +include(opus_functions.cmake) + +get_library_version(OPUS_LIBRARY_VERSION OPUS_LIBRARY_VERSION_MAJOR) +message(STATUS "Opus library version: ${OPUS_LIBRARY_VERSION}") + +get_package_version(PACKAGE_VERSION) +message(STATUS "Opus package version: ${PACKAGE_VERSION}") + +string(REGEX + REPLACE "^([0-9]+.[0-9]+\\.?([0-9]+)?).*" + "\\1" + PROJECT_VERSION + ${PACKAGE_VERSION}) +message(STATUS "Opus project version: ${PROJECT_VERSION}") + +project(Opus LANGUAGES C VERSION ${PROJECT_VERSION}) +include(opus_buildtype.cmake) + +option(OPUS_STACK_PROTECTOR "Use stack protection" ON) +option(OPUS_USE_ALLOCA "Use alloca for stack arrays (on non-C99 compilers)" OFF) +option(OPUS_CUSTOM_MODES "Enable non-Opus modes, e.g. 44.1 kHz & 2^n frames" + OFF) +option(OPUS_BUILD_PROGRAMS "Build programs" OFF) +option(OPUS_FIXED_POINT + "Compile as fixed-point (for machines without a fast enough FPU)" OFF) +option(OPUS_ENABLE_FLOAT_API + "Compile with the floating point API (for machines with float library" + ON) +option(OPUS_INSTALL_PKG_CONFIG_MODULE "Install PkgConfig module" ON) +option(OPUS_INSTALL_CMAKE_CONFIG_MODULE "Install CMake package config module" + ON) + +include(opus_config.cmake) +include(opus_sources.cmake) +include(GNUInstallDirs) +include(CMakeDependentOption) +include(FeatureSummary) + +if(OPUS_STACK_PROTECTOR) + if(NOT MSVC) # GC on by default on MSVC + check_and_set_flag(STACK_PROTECTION_STRONG -fstack-protector-strong) + endif() +else() + if(MSVC) + check_and_set_flag(BUFFER_SECURITY_CHECK /GS-) + endif() +endif() + +if(OPUS_CPU_X86 OR OPUS_CPU_X64) + cmake_dependent_option(OPUS_X86_MAY_HAVE_SSE + "Does runtime check for SSE1 support" + ON + "SSE1_SUPPORTED" + OFF) + cmake_dependent_option(OPUS_X86_MAY_HAVE_SSE2 + "Does runtime check for SSE2 support" + ON + "SSE2_SUPPORTED" + OFF) + cmake_dependent_option(OPUS_X86_MAY_HAVE_SSE4_1 + "Does runtime check for SSE4.1 support" + ON + "SSE4_1_SUPPORTED" + OFF) + cmake_dependent_option(OPUS_X86_MAY_HAVE_AVX + "Does runtime check for AVX support" + ON + "AVX_SUPPORTED" + OFF) + + if(OPUS_CPU_X64) # Assume 64 bit has SSE2 support + cmake_dependent_option(OPUS_X86_PRESUME_SSE + "Assume target CPU has SSE1 support" + ON + "OPUS_X86_MAY_HAVE_SSE" + OFF) + cmake_dependent_option(OPUS_X86_PRESUME_SSE2 + "Assume target CPU has SSE2 support" + ON + "OPUS_X86_MAY_HAVE_SSE2" + OFF) + else() + cmake_dependent_option(OPUS_X86_PRESUME_SSE + "Assume target CPU has SSE1 support" + OFF + "OPUS_X86_MAY_HAVE_SSE" + OFF) + cmake_dependent_option(OPUS_X86_PRESUME_SSE2 + "Assume target CPU has SSE2 support" + OFF + "OPUS_X86_MAY_HAVE_SSE2" + OFF) + endif() + cmake_dependent_option(OPUS_X86_PRESUME_SSE4_1 + "Assume target CPU has SSE4.1 support" + OFF + "OPUS_X86_MAY_HAVE_SSE4_1" + OFF) + cmake_dependent_option(OPUS_X86_PRESUME_AVX + "Assume target CPU has AVX support" + OFF + "OPUS_X86_MAY_HAVE_AVX" + OFF) +endif() + +set_package_properties(Git + PROPERTIES + TYPE + REQUIRED + DESCRIPTION + "fast, scalable, distributed revision control system" + URL + "https://git-scm.com/" + PURPOSE + "required to set up package version") + +add_feature_info(STACK_PROTECTOR OPUS_STACK_PROTECTOR "Use stack protection") +add_feature_info(USE_ALLOCA OPUS_USE_ALLOCA + "Use alloca for stack arrays (on non-C99 compilers)") +add_feature_info(CUSTOM_MODES OPUS_CUSTOM_MODES + "Enable non-Opus modes, e.g. 44.1 kHz & 2^n frames") +add_feature_info(BUILD_PROGRAMS OPUS_BUILD_PROGRAMS "Build programs") +add_feature_info( + FIXED_POINT OPUS_FIXED_POINT + "compile as fixed-point (for machines without a fast enough FPU)") +add_feature_info( + FLOAT_API OPUS_ENABLE_FLOAT_API + "compile with the floating point API (for machines with float library)") + +add_feature_info(INSTALL_PKG_CONFIG_MODULE OPUS_INSTALL_PKG_CONFIG_MODULE + "install PkgConfig module") +add_feature_info(INSTALL_CMAKE_CONFIG_MODULE OPUS_INSTALL_CMAKE_CONFIG_MODULE + "install CMake package config module") + +if(OPUS_CPU_X86 OR OPUS_CPU_X64) + add_feature_info(X86_MAY_HAVE_SSE OPUS_X86_MAY_HAVE_SSE + "does runtime check for SSE1 support") + add_feature_info(X86_MAY_HAVE_SSE2 OPUS_X86_MAY_HAVE_SSE2 + "does runtime check for SSE2 support") + add_feature_info(X86_MAY_HAVE_SSE4_1 OPUS_X86_MAY_HAVE_SSE4_1 + "does runtime check for SSE4_1 support") + add_feature_info(X86_MAY_HAVE_AVX OPUS_X86_MAY_HAVE_AVX + "does runtime check for AVX support") + add_feature_info(X86_PRESUME_SSE OPUS_X86_PRESUME_SSE + "assume target CPU has SSE1 support") + add_feature_info(X86_PRESUME_SSE2 OPUS_X86_PRESUME_SSE2 + "assume target CPU has SSE2 support") + add_feature_info(X86_PRESUME_SSE4_1 OPUS_X86_PRESUME_SSE4_1 + "assume target CPU has SSE4_1 support") + add_feature_info(X86_PRESUME_AVX OPUS_X86_PRESUME_AVX + "assume target CPU has AVX support") +endif() + +feature_summary(WHAT ALL) + +add_library(opus ${opus_sources} ${opus_sources_float}) + +set(Opus_PUBLIC_HEADER + ${CMAKE_CURRENT_SOURCE_DIR}/include/opus.h + ${CMAKE_CURRENT_SOURCE_DIR}/include/opus_custom.h + ${CMAKE_CURRENT_SOURCE_DIR}/include/opus_defines.h + ${CMAKE_CURRENT_SOURCE_DIR}/include/opus_multistream.h + ${CMAKE_CURRENT_SOURCE_DIR}/include/opus_projection.h + ${CMAKE_CURRENT_SOURCE_DIR}/include/opus_types.h) + +set_target_properties(opus + PROPERTIES SOVERSION + ${OPUS_LIBRARY_VERSION_MAJOR} + VERSION + ${OPUS_LIBRARY_VERSION} + PUBLIC_HEADER + "${Opus_PUBLIC_HEADER}") + +target_include_directories( + opus + PUBLIC $ + $ + PRIVATE ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + celt + silk) + +target_link_libraries(opus PRIVATE ${OPUS_REQUIRED_LIBRARIES}) +target_compile_definitions(opus PRIVATE OPUS_BUILD ENABLE_HARDENING) + +if(NOT MSVC) + target_compile_definitions(opus PRIVATE FORTIFY_SOURCE=2) +endif() + +# It is strongly recommended to uncomment one of these VAR_ARRAYS: Use C99 +# variable-length arrays for stack allocation USE_ALLOCA: Use alloca() for stack +# allocation If none is defined, then the fallback is a non-threadsafe global +# array +if(OPUS_USE_ALLOCA OR MSVC) + target_compile_definitions(opus PRIVATE USE_ALLOCA) +else() + target_compile_definitions(opus PRIVATE VAR_ARRAYS) +endif() + +if(OPUS_CUSTOM_MODES) + target_compile_definitions(opus PRIVATE CUSTOM_MODES) +endif() + +if(BUILD_SHARED_LIBS) + if(WIN32) + target_compile_definitions(opus PRIVATE DLL_EXPORT) + else() + include(CheckCCompilerFlag) + check_c_compiler_flag(-fvisibility=hidden COMPILER_HAS_HIDDEN_VISIBILITY) + if(COMPILER_HAS_HIDDEN_VISIBILITY) + set_target_properties(opus PROPERTIES C_VISIBILITY_PRESET hidden) + endif() + endif() +endif() + +add_sources_group(opus silk ${silk_sources}) +add_sources_group(opus celt ${celt_sources}) + +if(OPUS_FIXED_POINT) + add_sources_group(opus silk ${silk_sources_fixed}) + target_include_directories(opus PRIVATE silk/fixed) + target_compile_definitions(opus PRIVATE FIXED_POINT=1) +else() + add_sources_group(opus silk ${silk_sources_float}) + target_include_directories(opus PRIVATE silk/float) +endif() + +if(NOT OPUS_ENABLE_FLOAT_API) + target_compile_definitions(opus PRIVATE DISABLE_FLOAT_API) +endif() + +if(OPUS_X86_MAY_HAVE_SSE + OR OPUS_X86_MAY_HAVE_SSE2 + OR OPUS_X86_MAY_HAVE_SSE4_1 + OR OPUS_X86_MAY_HAVE_AVX) + target_compile_definitions(opus PRIVATE OPUS_HAVE_RTCD) +endif() + +if(OPUS_X86_MAY_HAVE_SSE) + add_sources_group(opus celt ${celt_sources_sse}) + target_compile_definitions(opus PRIVATE OPUS_X86_MAY_HAVE_SSE) +endif() +if(OPUS_X86_PRESUME_SSE) + target_compile_definitions(opus PRIVATE OPUS_X86_PRESUME_SSE) +endif() + +if(OPUS_X86_MAY_HAVE_SSE2) + add_sources_group(opus celt ${celt_sources_sse2}) + target_compile_definitions(opus PRIVATE OPUS_X86_MAY_HAVE_SSE2) +endif() +if(OPUS_X86_PRESUME_SSE2) + target_compile_definitions(opus PRIVATE OPUS_X86_PRESUME_SSE2) +endif() + +if(OPUS_X86_MAY_HAVE_SSE) + add_sources_group(opus celt ${celt_sources_sse4_1}) + add_sources_group(opus silk ${silk_sources_sse4_1}) + if(OPUS_FIXED_POINT) + add_sources_group(opus silk ${silk_sources_fixed_sse4_1}) + endif() + target_compile_definitions(opus PRIVATE OPUS_X86_MAY_HAVE_SSE4_1) +endif() +if(OPUS_X86_PRESUME_SSE4_1) + target_compile_definitions(opus PRIVATE OPUS_X86_PRESUME_SSE4_1) +endif() + +if(CMAKE_SYSTEM_PROCESSOR MATCHES "(armv7-a)") + add_sources_group(opus celt ${celt_sources_arm}) +endif() + +if(COMPILER_SUPPORT_NEON AND OPUS_USE_NEON) + + if(OPUS_MAY_HAVE_NEON) + if(RUNTIME_CPU_CAPABILITY_DETECTION) + message(STATUS "OPUS_MAY_HAVE_NEON enabling runtime detection") + target_compile_definitions(opus PRIVATE OPUS_HAVE_RTCD) + else() + message(ERROR "Runtime cpu capability detection needed for MAY_HAVE_NEON") + endif() + # Do runtime check for NEON + target_compile_definitions(opus + PRIVATE + OPUS_ARM_MAY_HAVE_NEON + OPUS_ARM_MAY_HAVE_NEON_INTR) + endif() + + add_sources_group(opus celt ${celt_sources_arm_neon_intr}) + add_sources_group(opus silk ${silk_sources_arm_neon_intr}) + + # silk arm neon depends on main_Fix.h + target_include_directories(opus PRIVATE silk/fixed) + + if(OPUS_FIXED_POINT) + add_sources_group(opus silk ${silk_sources_fixed_arm_neon_intr}) + endif() + + if(OPUS_PRESUME_NEON) + target_compile_definitions(opus + PRIVATE + OPUS_ARM_PRESUME_NEON + OPUS_ARM_PRESUME_NEON_INTR) + endif() +endif() + +install(TARGETS opus + EXPORT OpusTargets + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/opus) + +if(OPUS_INSTALL_PKG_CONFIG_MODULE) + set(prefix ${CMAKE_INSTALL_PREFIX}) + set(exec_prefix ${CMAKE_INSTALL_PREFIX}) + set(libdir ${CMAKE_INSTALL_FULL_LIBDIR}) + set(includedir ${CMAKE_INSTALL_FULL_INCLUDEDIR}) + set(VERSION ${OPUS_LIBRARY_VERSION}) + set(VERSION ${OPUS_LIBRARY_VERSION}) + if(HAVE_LIBM) + set(LIBM "-lm") + endif() + configure_file(opus.pc.in opus.pc) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/opus.pc + DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) +endif() + +if(OPUS_INSTALL_CMAKE_CONFIG_MODULE) + set(CMAKE_INSTALL_PACKAGEDIR ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}) + install(EXPORT OpusTargets + NAMESPACE Opus:: + DESTINATION ${CMAKE_INSTALL_PACKAGEDIR}) + + include(CMakePackageConfigHelpers) + + set(INCLUDE_INSTALL_DIR ${CMAKE_INSTALL_INCLUDEDIR}) + configure_package_config_file(OpusConfig.cmake.in + OpusConfig.cmake + INSTALL_DESTINATION + ${CMAKE_INSTALL_PACKAGEDIR} + PATH_VARS + INCLUDE_INSTALL_DIR + INSTALL_PREFIX + ${CMAKE_INSTALL_PREFIX}) + write_basic_package_version_file(OpusConfigVersion.cmake + VERSION ${PROJECT_VERSION} + COMPATIBILITY SameMajorVersion) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/OpusConfig.cmake + ${CMAKE_CURRENT_BINARY_DIR}/OpusConfigVersion.cmake + DESTINATION ${CMAKE_INSTALL_PACKAGEDIR}) +endif() + +if(OPUS_BUILD_PROGRAMS) + # demo + if(OPUS_CUSTOM_MODES) + add_executable(opus_custom_demo ${opus_custom_demo_sources}) + target_include_directories(opus_custom_demo + PRIVATE ${CMAKE_CURRENT_BINARY_DIR}) + target_link_libraries(opus_custom_demo PRIVATE opus) + endif() + + add_executable(opus_demo ${opus_demo_sources}) + target_include_directories(opus_demo PRIVATE ${CMAKE_CURRENT_BINARY_DIR}) + target_include_directories(opus_demo PRIVATE silk) # debug.h + target_include_directories(opus_demo PRIVATE celt) # arch.h + target_link_libraries(opus_demo PRIVATE opus) + + # compare + add_executable(opus_compare ${opus_compare_sources}) + target_include_directories(opus_compare PRIVATE ${CMAKE_CURRENT_BINARY_DIR}) + target_link_libraries(opus_compare PRIVATE opus) +endif() + +if(BUILD_TESTING) + enable_testing() + + # tests + add_executable(test_opus_decode ${test_opus_decode_sources}) + target_include_directories(test_opus_decode + PRIVATE ${CMAKE_CURRENT_BINARY_DIR}) + target_link_libraries(test_opus_decode PRIVATE opus) + if(OPUS_FIXED_POINT) + target_compile_definitions(test_opus_decode PRIVATE DISABLE_FLOAT_API) + endif() + add_test(test_opus_decode test_opus_decode) + + add_executable(test_opus_padding ${test_opus_padding_sources}) + target_include_directories(test_opus_padding + PRIVATE ${CMAKE_CURRENT_BINARY_DIR}) + target_link_libraries(test_opus_padding PRIVATE opus) + add_test(test_opus_padding test_opus_padding) + + if(NOT BUILD_SHARED_LIBS) + # disable tests that depends on private API when building shared lib + add_executable(test_opus_api ${test_opus_api_sources}) + target_include_directories(test_opus_api + PRIVATE ${CMAKE_CURRENT_BINARY_DIR} celt) + target_link_libraries(test_opus_api PRIVATE opus) + if(OPUS_FIXED_POINT) + target_compile_definitions(test_opus_api PRIVATE DISABLE_FLOAT_API) + endif() + add_test(test_opus_api test_opus_api) + + add_executable(test_opus_encode ${test_opus_encode_sources}) + target_include_directories(test_opus_encode + PRIVATE ${CMAKE_CURRENT_BINARY_DIR} celt) + target_link_libraries(test_opus_encode PRIVATE opus) + add_test(test_opus_encode test_opus_encode) + endif() +endif() diff --git a/components/opus/libopus/COPYING b/components/opus/libopus/COPYING new file mode 100644 index 0000000..9c739c3 --- /dev/null +++ b/components/opus/libopus/COPYING @@ -0,0 +1,44 @@ +Copyright 2001-2011 Xiph.Org, Skype Limited, Octasic, + Jean-Marc Valin, Timothy B. Terriberry, + CSIRO, Gregory Maxwell, Mark Borgerding, + Erik de Castro Lopo + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + +- Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. + +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER +OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +Opus is subject to the royalty-free patent licenses which are +specified at: + +Xiph.Org Foundation: +https://datatracker.ietf.org/ipr/1524/ + +Microsoft Corporation: +https://datatracker.ietf.org/ipr/1914/ + +Broadcom Corporation: +https://datatracker.ietf.org/ipr/1526/ diff --git a/components/opus/libopus/ChangeLog b/components/opus/libopus/ChangeLog new file mode 100644 index 0000000..e69de29 diff --git a/components/opus/libopus/INSTALL b/components/opus/libopus/INSTALL new file mode 100644 index 0000000..8865734 --- /dev/null +++ b/components/opus/libopus/INSTALL @@ -0,0 +1,368 @@ +Installation Instructions +************************* + + Copyright (C) 1994-1996, 1999-2002, 2004-2016 Free Software +Foundation, Inc. + + Copying and distribution of this file, with or without modification, +are permitted in any medium without royalty provided the copyright +notice and this notice are preserved. This file is offered as-is, +without warranty of any kind. + +Basic Installation +================== + + Briefly, the shell command './configure && make && make install' +should configure, build, and install this package. The following +more-detailed instructions are generic; see the 'README' file for +instructions specific to this package. Some packages provide this +'INSTALL' file but do not implement all of the features documented +below. The lack of an optional feature in a given package is not +necessarily a bug. More recommendations for GNU packages can be found +in *note Makefile Conventions: (standards)Makefile Conventions. + + The 'configure' shell script attempts to guess correct values for +various system-dependent variables used during compilation. It uses +those values to create a 'Makefile' in each directory of the package. +It may also create one or more '.h' files containing system-dependent +definitions. Finally, it creates a shell script 'config.status' that +you can run in the future to recreate the current configuration, and a +file 'config.log' containing compiler output (useful mainly for +debugging 'configure'). + + It can also use an optional file (typically called 'config.cache' and +enabled with '--cache-file=config.cache' or simply '-C') that saves the +results of its tests to speed up reconfiguring. Caching is disabled by +default to prevent problems with accidental use of stale cache files. + + If you need to do unusual things to compile the package, please try +to figure out how 'configure' could check whether to do them, and mail +diffs or instructions to the address given in the 'README' so they can +be considered for the next release. If you are using the cache, and at +some point 'config.cache' contains results you don't want to keep, you +may remove or edit it. + + The file 'configure.ac' (or 'configure.in') is used to create +'configure' by a program called 'autoconf'. You need 'configure.ac' if +you want to change it or regenerate 'configure' using a newer version of +'autoconf'. + + The simplest way to compile this package is: + + 1. 'cd' to the directory containing the package's source code and type + './configure' to configure the package for your system. + + Running 'configure' might take a while. While running, it prints + some messages telling which features it is checking for. + + 2. Type 'make' to compile the package. + + 3. Optionally, type 'make check' to run any self-tests that come with + the package, generally using the just-built uninstalled binaries. + + 4. Type 'make install' to install the programs and any data files and + documentation. When installing into a prefix owned by root, it is + recommended that the package be configured and built as a regular + user, and only the 'make install' phase executed with root + privileges. + + 5. Optionally, type 'make installcheck' to repeat any self-tests, but + this time using the binaries in their final installed location. + This target does not install anything. Running this target as a + regular user, particularly if the prior 'make install' required + root privileges, verifies that the installation completed + correctly. + + 6. You can remove the program binaries and object files from the + source code directory by typing 'make clean'. To also remove the + files that 'configure' created (so you can compile the package for + a different kind of computer), type 'make distclean'. There is + also a 'make maintainer-clean' target, but that is intended mainly + for the package's developers. If you use it, you may have to get + all sorts of other programs in order to regenerate files that came + with the distribution. + + 7. Often, you can also type 'make uninstall' to remove the installed + files again. In practice, not all packages have tested that + uninstallation works correctly, even though it is required by the + GNU Coding Standards. + + 8. Some packages, particularly those that use Automake, provide 'make + distcheck', which can by used by developers to test that all other + targets like 'make install' and 'make uninstall' work correctly. + This target is generally not run by end users. + +Compilers and Options +===================== + + Some systems require unusual options for compilation or linking that +the 'configure' script does not know about. Run './configure --help' +for details on some of the pertinent environment variables. + + You can give 'configure' initial values for configuration parameters +by setting variables in the command line or in the environment. Here is +an example: + + ./configure CC=c99 CFLAGS=-g LIBS=-lposix + + *Note Defining Variables::, for more details. + +Compiling For Multiple Architectures +==================================== + + You can compile the package for more than one kind of computer at the +same time, by placing the object files for each architecture in their +own directory. To do this, you can use GNU 'make'. 'cd' to the +directory where you want the object files and executables to go and run +the 'configure' script. 'configure' automatically checks for the source +code in the directory that 'configure' is in and in '..'. This is known +as a "VPATH" build. + + With a non-GNU 'make', it is safer to compile the package for one +architecture at a time in the source code directory. After you have +installed the package for one architecture, use 'make distclean' before +reconfiguring for another architecture. + + On MacOS X 10.5 and later systems, you can create libraries and +executables that work on multiple system types--known as "fat" or +"universal" binaries--by specifying multiple '-arch' options to the +compiler but only a single '-arch' option to the preprocessor. Like +this: + + ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ + CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ + CPP="gcc -E" CXXCPP="g++ -E" + + This is not guaranteed to produce working output in all cases, you +may have to build one architecture at a time and combine the results +using the 'lipo' tool if you have problems. + +Installation Names +================== + + By default, 'make install' installs the package's commands under +'/usr/local/bin', include files under '/usr/local/include', etc. You +can specify an installation prefix other than '/usr/local' by giving +'configure' the option '--prefix=PREFIX', where PREFIX must be an +absolute file name. + + You can specify separate installation prefixes for +architecture-specific files and architecture-independent files. If you +pass the option '--exec-prefix=PREFIX' to 'configure', the package uses +PREFIX as the prefix for installing programs and libraries. +Documentation and other data files still use the regular prefix. + + In addition, if you use an unusual directory layout you can give +options like '--bindir=DIR' to specify different values for particular +kinds of files. Run 'configure --help' for a list of the directories +you can set and what kinds of files go in them. In general, the default +for these options is expressed in terms of '${prefix}', so that +specifying just '--prefix' will affect all of the other directory +specifications that were not explicitly provided. + + The most portable way to affect installation locations is to pass the +correct locations to 'configure'; however, many packages provide one or +both of the following shortcuts of passing variable assignments to the +'make install' command line to change installation locations without +having to reconfigure or recompile. + + The first method involves providing an override variable for each +affected directory. For example, 'make install +prefix=/alternate/directory' will choose an alternate location for all +directory configuration variables that were expressed in terms of +'${prefix}'. Any directories that were specified during 'configure', +but not in terms of '${prefix}', must each be overridden at install time +for the entire installation to be relocated. The approach of makefile +variable overrides for each directory variable is required by the GNU +Coding Standards, and ideally causes no recompilation. However, some +platforms have known limitations with the semantics of shared libraries +that end up requiring recompilation when using this method, particularly +noticeable in packages that use GNU Libtool. + + The second method involves providing the 'DESTDIR' variable. For +example, 'make install DESTDIR=/alternate/directory' will prepend +'/alternate/directory' before all installation names. The approach of +'DESTDIR' overrides is not required by the GNU Coding Standards, and +does not work on platforms that have drive letters. On the other hand, +it does better at avoiding recompilation issues, and works well even +when some directory options were not specified in terms of '${prefix}' +at 'configure' time. + +Optional Features +================= + + If the package supports it, you can cause programs to be installed +with an extra prefix or suffix on their names by giving 'configure' the +option '--program-prefix=PREFIX' or '--program-suffix=SUFFIX'. + + Some packages pay attention to '--enable-FEATURE' options to +'configure', where FEATURE indicates an optional part of the package. +They may also pay attention to '--with-PACKAGE' options, where PACKAGE +is something like 'gnu-as' or 'x' (for the X Window System). The +'README' should mention any '--enable-' and '--with-' options that the +package recognizes. + + For packages that use the X Window System, 'configure' can usually +find the X include and library files automatically, but if it doesn't, +you can use the 'configure' options '--x-includes=DIR' and +'--x-libraries=DIR' to specify their locations. + + Some packages offer the ability to configure how verbose the +execution of 'make' will be. For these packages, running './configure +--enable-silent-rules' sets the default to minimal output, which can be +overridden with 'make V=1'; while running './configure +--disable-silent-rules' sets the default to verbose, which can be +overridden with 'make V=0'. + +Particular systems +================== + + On HP-UX, the default C compiler is not ANSI C compatible. If GNU CC +is not installed, it is recommended to use the following options in +order to use an ANSI C compiler: + + ./configure CC="cc -Ae -D_XOPEN_SOURCE=500" + +and if that doesn't work, install pre-built binaries of GCC for HP-UX. + + HP-UX 'make' updates targets which have the same time stamps as their +prerequisites, which makes it generally unusable when shipped generated +files such as 'configure' are involved. Use GNU 'make' instead. + + On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot +parse its '' header file. The option '-nodtk' can be used as a +workaround. If GNU CC is not installed, it is therefore recommended to +try + + ./configure CC="cc" + +and if that doesn't work, try + + ./configure CC="cc -nodtk" + + On Solaris, don't put '/usr/ucb' early in your 'PATH'. This +directory contains several dysfunctional programs; working variants of +these programs are available in '/usr/bin'. So, if you need '/usr/ucb' +in your 'PATH', put it _after_ '/usr/bin'. + + On Haiku, software installed for all users goes in '/boot/common', +not '/usr/local'. It is recommended to use the following options: + + ./configure --prefix=/boot/common + +Specifying the System Type +========================== + + There may be some features 'configure' cannot figure out +automatically, but needs to determine by the type of machine the package +will run on. Usually, assuming the package is built to be run on the +_same_ architectures, 'configure' can figure that out, but if it prints +a message saying it cannot guess the machine type, give it the +'--build=TYPE' option. TYPE can either be a short name for the system +type, such as 'sun4', or a canonical name which has the form: + + CPU-COMPANY-SYSTEM + +where SYSTEM can have one of these forms: + + OS + KERNEL-OS + + See the file 'config.sub' for the possible values of each field. If +'config.sub' isn't included in this package, then this package doesn't +need to know the machine type. + + If you are _building_ compiler tools for cross-compiling, you should +use the option '--target=TYPE' to select the type of system they will +produce code for. + + If you want to _use_ a cross compiler, that generates code for a +platform different from the build platform, you should specify the +"host" platform (i.e., that on which the generated programs will +eventually be run) with '--host=TYPE'. + +Sharing Defaults +================ + + If you want to set default values for 'configure' scripts to share, +you can create a site shell script called 'config.site' that gives +default values for variables like 'CC', 'cache_file', and 'prefix'. +'configure' looks for 'PREFIX/share/config.site' if it exists, then +'PREFIX/etc/config.site' if it exists. Or, you can set the +'CONFIG_SITE' environment variable to the location of the site script. +A warning: not all 'configure' scripts look for a site script. + +Defining Variables +================== + + Variables not defined in a site shell script can be set in the +environment passed to 'configure'. However, some packages may run +configure again during the build, and the customized values of these +variables may be lost. In order to avoid this problem, you should set +them in the 'configure' command line, using 'VAR=value'. For example: + + ./configure CC=/usr/local2/bin/gcc + +causes the specified 'gcc' to be used as the C compiler (unless it is +overridden in the site shell script). + +Unfortunately, this technique does not work for 'CONFIG_SHELL' due to an +Autoconf limitation. Until the limitation is lifted, you can use this +workaround: + + CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash + +'configure' Invocation +====================== + + 'configure' recognizes the following options to control how it +operates. + +'--help' +'-h' + Print a summary of all of the options to 'configure', and exit. + +'--help=short' +'--help=recursive' + Print a summary of the options unique to this package's + 'configure', and exit. The 'short' variant lists options used only + in the top level, while the 'recursive' variant lists options also + present in any nested packages. + +'--version' +'-V' + Print the version of Autoconf used to generate the 'configure' + script, and exit. + +'--cache-file=FILE' + Enable the cache: use and save the results of the tests in FILE, + traditionally 'config.cache'. FILE defaults to '/dev/null' to + disable caching. + +'--config-cache' +'-C' + Alias for '--cache-file=config.cache'. + +'--quiet' +'--silent' +'-q' + Do not print messages saying which checks are being made. To + suppress all normal output, redirect it to '/dev/null' (any error + messages will still be shown). + +'--srcdir=DIR' + Look for the package's source code in directory DIR. Usually + 'configure' can determine that directory automatically. + +'--prefix=DIR' + Use DIR as the installation prefix. *note Installation Names:: for + more details, including other options available for fine-tuning the + installation locations. + +'--no-create' +'-n' + Run the configure checks, but stop before creating any output + files. + +'configure' also accepts some other, not widely useful, options. Run +'configure --help' for more details. diff --git a/components/opus/libopus/Makefile.am b/components/opus/libopus/Makefile.am new file mode 100644 index 0000000..4e3f183 --- /dev/null +++ b/components/opus/libopus/Makefile.am @@ -0,0 +1,351 @@ +# Provide the full test output for failed tests when using the parallel +# test suite (which is enabled by default with automake 1.13+). +export VERBOSE = yes + +AUTOMAKE_OPTIONS = subdir-objects +ACLOCAL_AMFLAGS = -I m4 + +lib_LTLIBRARIES = libopus.la + +DIST_SUBDIRS = doc + +AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/celt -I$(top_srcdir)/silk \ + -I$(top_srcdir)/silk/float -I$(top_srcdir)/silk/fixed $(NE10_CFLAGS) + +include celt_sources.mk +include silk_sources.mk +include opus_sources.mk + +if FIXED_POINT +SILK_SOURCES += $(SILK_SOURCES_FIXED) +if HAVE_SSE4_1 +SILK_SOURCES += $(SILK_SOURCES_SSE4_1) $(SILK_SOURCES_FIXED_SSE4_1) +endif +if HAVE_ARM_NEON_INTR +SILK_SOURCES += $(SILK_SOURCES_FIXED_ARM_NEON_INTR) +endif +else +SILK_SOURCES += $(SILK_SOURCES_FLOAT) +if HAVE_SSE4_1 +SILK_SOURCES += $(SILK_SOURCES_SSE4_1) +endif +endif + +if DISABLE_FLOAT_API +else +OPUS_SOURCES += $(OPUS_SOURCES_FLOAT) +endif + +if HAVE_SSE +CELT_SOURCES += $(CELT_SOURCES_SSE) +endif +if HAVE_SSE2 +CELT_SOURCES += $(CELT_SOURCES_SSE2) +endif +if HAVE_SSE4_1 +CELT_SOURCES += $(CELT_SOURCES_SSE4_1) +endif + +if CPU_ARM +CELT_SOURCES += $(CELT_SOURCES_ARM) +SILK_SOURCES += $(SILK_SOURCES_ARM) + +if HAVE_ARM_NEON_INTR +CELT_SOURCES += $(CELT_SOURCES_ARM_NEON_INTR) +SILK_SOURCES += $(SILK_SOURCES_ARM_NEON_INTR) +endif + +if HAVE_ARM_NE10 +CELT_SOURCES += $(CELT_SOURCES_ARM_NE10) +endif + +if OPUS_ARM_EXTERNAL_ASM +noinst_LTLIBRARIES = libarmasm.la +libarmasm_la_SOURCES = $(CELT_SOURCES_ARM_ASM:.s=-gnu.S) +BUILT_SOURCES = $(CELT_SOURCES_ARM_ASM:.s=-gnu.S) \ + $(CELT_AM_SOURCES_ARM_ASM:.s.in=.s) \ + $(CELT_AM_SOURCES_ARM_ASM:.s.in=-gnu.S) +endif +endif + +CLEANFILES = $(CELT_SOURCES_ARM_ASM:.s=-gnu.S) \ + $(CELT_AM_SOURCES_ARM_ASM:.s.in=-gnu.S) + +include celt_headers.mk +include silk_headers.mk +include opus_headers.mk + +libopus_la_SOURCES = $(CELT_SOURCES) $(SILK_SOURCES) $(OPUS_SOURCES) +libopus_la_LDFLAGS = -no-undefined -version-info @OPUS_LT_CURRENT@:@OPUS_LT_REVISION@:@OPUS_LT_AGE@ +libopus_la_LIBADD = $(NE10_LIBS) $(LIBM) +if OPUS_ARM_EXTERNAL_ASM +libopus_la_LIBADD += libarmasm.la +endif + +pkginclude_HEADERS = include/opus.h include/opus_multistream.h include/opus_types.h include/opus_defines.h include/opus_projection.h + +noinst_HEADERS = $(OPUS_HEAD) $(SILK_HEAD) $(CELT_HEAD) + +if EXTRA_PROGRAMS +noinst_PROGRAMS = celt/tests/test_unit_cwrs32 \ + celt/tests/test_unit_dft \ + celt/tests/test_unit_entropy \ + celt/tests/test_unit_laplace \ + celt/tests/test_unit_mathops \ + celt/tests/test_unit_mdct \ + celt/tests/test_unit_rotation \ + celt/tests/test_unit_types \ + opus_compare \ + opus_demo \ + repacketizer_demo \ + silk/tests/test_unit_LPC_inv_pred_gain \ + tests/test_opus_api \ + tests/test_opus_decode \ + tests/test_opus_encode \ + tests/test_opus_padding \ + tests/test_opus_projection + +TESTS = celt/tests/test_unit_cwrs32 \ + celt/tests/test_unit_dft \ + celt/tests/test_unit_entropy \ + celt/tests/test_unit_laplace \ + celt/tests/test_unit_mathops \ + celt/tests/test_unit_mdct \ + celt/tests/test_unit_rotation \ + celt/tests/test_unit_types \ + silk/tests/test_unit_LPC_inv_pred_gain \ + tests/test_opus_api \ + tests/test_opus_decode \ + tests/test_opus_encode \ + tests/test_opus_padding \ + tests/test_opus_projection + +opus_demo_SOURCES = src/opus_demo.c + +opus_demo_LDADD = libopus.la $(NE10_LIBS) $(LIBM) + +repacketizer_demo_SOURCES = src/repacketizer_demo.c + +repacketizer_demo_LDADD = libopus.la $(NE10_LIBS) $(LIBM) + +opus_compare_SOURCES = src/opus_compare.c +opus_compare_LDADD = $(LIBM) + +tests_test_opus_api_SOURCES = tests/test_opus_api.c tests/test_opus_common.h +tests_test_opus_api_LDADD = libopus.la $(NE10_LIBS) $(LIBM) + +tests_test_opus_encode_SOURCES = tests/test_opus_encode.c tests/opus_encode_regressions.c tests/test_opus_common.h +tests_test_opus_encode_LDADD = libopus.la $(NE10_LIBS) $(LIBM) + +tests_test_opus_decode_SOURCES = tests/test_opus_decode.c tests/test_opus_common.h +tests_test_opus_decode_LDADD = libopus.la $(NE10_LIBS) $(LIBM) + +tests_test_opus_padding_SOURCES = tests/test_opus_padding.c tests/test_opus_common.h +tests_test_opus_padding_LDADD = libopus.la $(NE10_LIBS) $(LIBM) + +CELT_OBJ = $(CELT_SOURCES:.c=.lo) +SILK_OBJ = $(SILK_SOURCES:.c=.lo) +OPUS_OBJ = $(OPUS_SOURCES:.c=.lo) + +tests_test_opus_projection_SOURCES = tests/test_opus_projection.c tests/test_opus_common.h +tests_test_opus_projection_LDADD = $(OPUS_OBJ) $(SILK_OBJ) $(CELT_OBJ) $(NE10_LIBS) $(LIBM) +if OPUS_ARM_EXTERNAL_ASM +tests_test_opus_projection_LDADD += libarmasm.la +endif + +silk_tests_test_unit_LPC_inv_pred_gain_SOURCES = silk/tests/test_unit_LPC_inv_pred_gain.c +silk_tests_test_unit_LPC_inv_pred_gain_LDADD = $(SILK_OBJ) $(CELT_OBJ) $(NE10_LIBS) $(LIBM) +if OPUS_ARM_EXTERNAL_ASM +silk_tests_test_unit_LPC_inv_pred_gain_LDADD += libarmasm.la +endif + +celt_tests_test_unit_cwrs32_SOURCES = celt/tests/test_unit_cwrs32.c +celt_tests_test_unit_cwrs32_LDADD = $(LIBM) + +celt_tests_test_unit_dft_SOURCES = celt/tests/test_unit_dft.c +celt_tests_test_unit_dft_LDADD = $(CELT_OBJ) $(NE10_LIBS) $(LIBM) +if OPUS_ARM_EXTERNAL_ASM +celt_tests_test_unit_dft_LDADD += libarmasm.la +endif + +celt_tests_test_unit_entropy_SOURCES = celt/tests/test_unit_entropy.c +celt_tests_test_unit_entropy_LDADD = $(LIBM) + +celt_tests_test_unit_laplace_SOURCES = celt/tests/test_unit_laplace.c +celt_tests_test_unit_laplace_LDADD = $(LIBM) + +celt_tests_test_unit_mathops_SOURCES = celt/tests/test_unit_mathops.c +celt_tests_test_unit_mathops_LDADD = $(CELT_OBJ) $(NE10_LIBS) $(LIBM) +if OPUS_ARM_EXTERNAL_ASM +celt_tests_test_unit_mathops_LDADD += libarmasm.la +endif + +celt_tests_test_unit_mdct_SOURCES = celt/tests/test_unit_mdct.c +celt_tests_test_unit_mdct_LDADD = $(CELT_OBJ) $(NE10_LIBS) $(LIBM) +if OPUS_ARM_EXTERNAL_ASM +celt_tests_test_unit_mdct_LDADD += libarmasm.la +endif + +celt_tests_test_unit_rotation_SOURCES = celt/tests/test_unit_rotation.c +celt_tests_test_unit_rotation_LDADD = $(CELT_OBJ) $(NE10_LIBS) $(LIBM) +if OPUS_ARM_EXTERNAL_ASM +celt_tests_test_unit_rotation_LDADD += libarmasm.la +endif + +celt_tests_test_unit_types_SOURCES = celt/tests/test_unit_types.c +celt_tests_test_unit_types_LDADD = $(LIBM) +endif + +if CUSTOM_MODES +pkginclude_HEADERS += include/opus_custom.h +if EXTRA_PROGRAMS +noinst_PROGRAMS += opus_custom_demo +opus_custom_demo_SOURCES = celt/opus_custom_demo.c +opus_custom_demo_LDADD = libopus.la $(LIBM) +endif +endif + +EXTRA_DIST = opus.pc.in \ + opus-uninstalled.pc.in \ + opus.m4 \ + Makefile.mips \ + Makefile.unix \ + CMakeLists.txt \ + config.h.cmake.in \ + opus_config.cmake \ + opus_functions.cmake \ + opus_sources.cmake \ + OpusConfig.cmake.in \ + tests/run_vectors.sh \ + celt/arm/arm2gnu.pl \ + celt/arm/celt_pitch_xcorr_arm.s \ + win32/VS2015/opus.vcxproj \ + win32/VS2015/test_opus_encode.vcxproj.filters \ + win32/VS2015/test_opus_encode.vcxproj \ + win32/VS2015/opus_demo.vcxproj \ + win32/VS2015/test_opus_api.vcxproj.filters \ + win32/VS2015/test_opus_api.vcxproj \ + win32/VS2015/test_opus_decode.vcxproj.filters \ + win32/VS2015/opus_demo.vcxproj.filters \ + win32/VS2015/opus.vcxproj.filters \ + win32/VS2015/test_opus_decode.vcxproj \ + win32/VS2015/opus.sln \ + win32/VS2015/common.props \ + win32/genversion.bat \ + win32/config.h + +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = opus.pc + +m4datadir = $(datadir)/aclocal +m4data_DATA = opus.m4 + +# Targets to build and install just the library without the docs +opus check-opus install-opus: export NO_DOXYGEN = 1 + +opus: all +check-opus: check +install-opus: install + + +# Or just the docs +docs: + ( cd doc && $(MAKE) $(AM_MAKEFLAGS) ) + +install-docs: + ( cd doc && $(MAKE) $(AM_MAKEFLAGS) install ) + + +# Or everything (by default) +all-local: + @[ -n "$(NO_DOXYGEN)" ] || ( cd doc && $(MAKE) $(AM_MAKEFLAGS) ) + +install-data-local: + @[ -n "$(NO_DOXYGEN)" ] || ( cd doc && $(MAKE) $(AM_MAKEFLAGS) install ) + +clean-local: + -( cd doc && $(MAKE) $(AM_MAKEFLAGS) clean ) + +uninstall-local: + ( cd doc && $(MAKE) $(AM_MAKEFLAGS) uninstall ) + + +# We check this every time make is run, with configure.ac being touched to +# trigger an update of the build system files if update_version changes the +# current PACKAGE_VERSION (or if package_version was modified manually by a +# user with either AUTO_UPDATE=no or no update_version script present - the +# latter being the normal case for tarball releases). +# +# We can't just add the package_version file to CONFIGURE_DEPENDENCIES since +# simply running autoconf will not actually regenerate configure for us when +# the content of that file changes (due to autoconf dependency checking not +# knowing about that without us creating yet another file for it to include). +# +# The MAKECMDGOALS check is a gnu-make'ism, but will degrade 'gracefully' for +# makes that don't support it. The only loss of functionality is not forcing +# an update of package_version for `make dist` if AUTO_UPDATE=no, but that is +# unlikely to be a real problem for any real user. +$(top_srcdir)/configure.ac: force + @case "$(MAKECMDGOALS)" in \ + dist-hook) exit 0 ;; \ + dist-* | dist | distcheck | distclean) _arg=release ;; \ + esac; \ + if ! $(top_srcdir)/update_version $$_arg 2> /dev/null; then \ + if [ ! -e $(top_srcdir)/package_version ]; then \ + echo 'PACKAGE_VERSION="unknown"' > $(top_srcdir)/package_version; \ + fi; \ + . $(top_srcdir)/package_version || exit 1; \ + [ "$(PACKAGE_VERSION)" != "$$PACKAGE_VERSION" ] || exit 0; \ + fi; \ + touch $@ + +force: + +# Create a minimal package_version file when make dist is run. +dist-hook: + echo 'PACKAGE_VERSION="$(PACKAGE_VERSION)"' > $(top_distdir)/package_version + + +.PHONY: opus check-opus install-opus docs install-docs + +# automake doesn't do dependency tracking for asm files, that I can tell +$(CELT_SOURCES_ARM_ASM:%.s=%-gnu.S): celt/arm/armopts-gnu.S +$(CELT_SOURCES_ARM_ASM:%.s=%-gnu.S): $(top_srcdir)/celt/arm/arm2gnu.pl + +# convert ARM asm to GNU as format +%-gnu.S: $(top_srcdir)/%.s + $(top_srcdir)/celt/arm/arm2gnu.pl @ARM2GNU_PARAMS@ < $< > $@ +# For autoconf-modified sources (e.g., armopts.s) +%-gnu.S: %.s + $(top_srcdir)/celt/arm/arm2gnu.pl @ARM2GNU_PARAMS@ < $< > $@ + +OPT_UNIT_TEST_OBJ = $(celt_tests_test_unit_mathops_SOURCES:.c=.o) \ + $(celt_tests_test_unit_rotation_SOURCES:.c=.o) \ + $(celt_tests_test_unit_mdct_SOURCES:.c=.o) \ + $(celt_tests_test_unit_dft_SOURCES:.c=.o) \ + $(silk_tests_test_unit_LPC_inv_pred_gain_SOURCES:.c=.o) + +if HAVE_SSE +SSE_OBJ = $(CELT_SOURCES_SSE:.c=.lo) +$(SSE_OBJ): CFLAGS += $(OPUS_X86_SSE_CFLAGS) +endif + +if HAVE_SSE2 +SSE2_OBJ = $(CELT_SOURCES_SSE2:.c=.lo) +$(SSE2_OBJ): CFLAGS += $(OPUS_X86_SSE2_CFLAGS) +endif + +if HAVE_SSE4_1 +SSE4_1_OBJ = $(CELT_SOURCES_SSE4_1:.c=.lo) \ + $(SILK_SOURCES_SSE4_1:.c=.lo) \ + $(SILK_SOURCES_FIXED_SSE4_1:.c=.lo) +$(SSE4_1_OBJ): CFLAGS += $(OPUS_X86_SSE4_1_CFLAGS) +endif + +if HAVE_ARM_NEON_INTR +ARM_NEON_INTR_OBJ = $(CELT_SOURCES_ARM_NEON_INTR:.c=.lo) \ + $(SILK_SOURCES_ARM_NEON_INTR:.c=.lo) \ + $(SILK_SOURCES_FIXED_ARM_NEON_INTR:.c=.lo) +$(ARM_NEON_INTR_OBJ): CFLAGS += \ + $(OPUS_ARM_NEON_INTR_CFLAGS) $(NE10_CFLAGS) +endif diff --git a/components/opus/libopus/Makefile.in b/components/opus/libopus/Makefile.in new file mode 100644 index 0000000..c6d4da5 --- /dev/null +++ b/components/opus/libopus/Makefile.in @@ -0,0 +1,3458 @@ +# Makefile.in generated by automake 1.15.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994-2017 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + + + + +VPATH = @srcdir@ +am__is_gnu_make = { \ + if test -z '$(MAKELEVEL)'; then \ + false; \ + elif test -n '$(MAKE_HOST)'; then \ + true; \ + elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ + true; \ + else \ + false; \ + fi; \ +} +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +@FIXED_POINT_TRUE@am__append_1 = $(SILK_SOURCES_FIXED) +@FIXED_POINT_TRUE@@HAVE_SSE4_1_TRUE@am__append_2 = $(SILK_SOURCES_SSE4_1) $(SILK_SOURCES_FIXED_SSE4_1) +@FIXED_POINT_TRUE@@HAVE_ARM_NEON_INTR_TRUE@am__append_3 = $(SILK_SOURCES_FIXED_ARM_NEON_INTR) +@FIXED_POINT_FALSE@am__append_4 = $(SILK_SOURCES_FLOAT) +@FIXED_POINT_FALSE@@HAVE_SSE4_1_TRUE@am__append_5 = $(SILK_SOURCES_SSE4_1) +@DISABLE_FLOAT_API_FALSE@am__append_6 = $(OPUS_SOURCES_FLOAT) +@HAVE_SSE_TRUE@am__append_7 = $(CELT_SOURCES_SSE) +@HAVE_SSE2_TRUE@am__append_8 = $(CELT_SOURCES_SSE2) +@HAVE_SSE4_1_TRUE@am__append_9 = $(CELT_SOURCES_SSE4_1) +@CPU_ARM_TRUE@am__append_10 = $(CELT_SOURCES_ARM) +@CPU_ARM_TRUE@am__append_11 = $(SILK_SOURCES_ARM) +@CPU_ARM_TRUE@@HAVE_ARM_NEON_INTR_TRUE@am__append_12 = $(CELT_SOURCES_ARM_NEON_INTR) +@CPU_ARM_TRUE@@HAVE_ARM_NEON_INTR_TRUE@am__append_13 = $(SILK_SOURCES_ARM_NEON_INTR) +@CPU_ARM_TRUE@@HAVE_ARM_NE10_TRUE@am__append_14 = $(CELT_SOURCES_ARM_NE10) +@OPUS_ARM_EXTERNAL_ASM_TRUE@am__append_15 = libarmasm.la +@EXTRA_PROGRAMS_TRUE@noinst_PROGRAMS = \ +@EXTRA_PROGRAMS_TRUE@ celt/tests/test_unit_cwrs32$(EXEEXT) \ +@EXTRA_PROGRAMS_TRUE@ celt/tests/test_unit_dft$(EXEEXT) \ +@EXTRA_PROGRAMS_TRUE@ celt/tests/test_unit_entropy$(EXEEXT) \ +@EXTRA_PROGRAMS_TRUE@ celt/tests/test_unit_laplace$(EXEEXT) \ +@EXTRA_PROGRAMS_TRUE@ celt/tests/test_unit_mathops$(EXEEXT) \ +@EXTRA_PROGRAMS_TRUE@ celt/tests/test_unit_mdct$(EXEEXT) \ +@EXTRA_PROGRAMS_TRUE@ celt/tests/test_unit_rotation$(EXEEXT) \ +@EXTRA_PROGRAMS_TRUE@ celt/tests/test_unit_types$(EXEEXT) \ +@EXTRA_PROGRAMS_TRUE@ opus_compare$(EXEEXT) opus_demo$(EXEEXT) \ +@EXTRA_PROGRAMS_TRUE@ repacketizer_demo$(EXEEXT) \ +@EXTRA_PROGRAMS_TRUE@ silk/tests/test_unit_LPC_inv_pred_gain$(EXEEXT) \ +@EXTRA_PROGRAMS_TRUE@ tests/test_opus_api$(EXEEXT) \ +@EXTRA_PROGRAMS_TRUE@ tests/test_opus_decode$(EXEEXT) \ +@EXTRA_PROGRAMS_TRUE@ tests/test_opus_encode$(EXEEXT) \ +@EXTRA_PROGRAMS_TRUE@ tests/test_opus_padding$(EXEEXT) \ +@EXTRA_PROGRAMS_TRUE@ tests/test_opus_projection$(EXEEXT) \ +@EXTRA_PROGRAMS_TRUE@ $(am__EXEEXT_1) +@EXTRA_PROGRAMS_TRUE@TESTS = celt/tests/test_unit_cwrs32$(EXEEXT) \ +@EXTRA_PROGRAMS_TRUE@ celt/tests/test_unit_dft$(EXEEXT) \ +@EXTRA_PROGRAMS_TRUE@ celt/tests/test_unit_entropy$(EXEEXT) \ +@EXTRA_PROGRAMS_TRUE@ celt/tests/test_unit_laplace$(EXEEXT) \ +@EXTRA_PROGRAMS_TRUE@ celt/tests/test_unit_mathops$(EXEEXT) \ +@EXTRA_PROGRAMS_TRUE@ celt/tests/test_unit_mdct$(EXEEXT) \ +@EXTRA_PROGRAMS_TRUE@ celt/tests/test_unit_rotation$(EXEEXT) \ +@EXTRA_PROGRAMS_TRUE@ celt/tests/test_unit_types$(EXEEXT) \ +@EXTRA_PROGRAMS_TRUE@ silk/tests/test_unit_LPC_inv_pred_gain$(EXEEXT) \ +@EXTRA_PROGRAMS_TRUE@ tests/test_opus_api$(EXEEXT) \ +@EXTRA_PROGRAMS_TRUE@ tests/test_opus_decode$(EXEEXT) \ +@EXTRA_PROGRAMS_TRUE@ tests/test_opus_encode$(EXEEXT) \ +@EXTRA_PROGRAMS_TRUE@ tests/test_opus_padding$(EXEEXT) \ +@EXTRA_PROGRAMS_TRUE@ tests/test_opus_projection$(EXEEXT) +@EXTRA_PROGRAMS_TRUE@@OPUS_ARM_EXTERNAL_ASM_TRUE@am__append_16 = libarmasm.la +@EXTRA_PROGRAMS_TRUE@@OPUS_ARM_EXTERNAL_ASM_TRUE@am__append_17 = libarmasm.la +@EXTRA_PROGRAMS_TRUE@@OPUS_ARM_EXTERNAL_ASM_TRUE@am__append_18 = libarmasm.la +@EXTRA_PROGRAMS_TRUE@@OPUS_ARM_EXTERNAL_ASM_TRUE@am__append_19 = libarmasm.la +@EXTRA_PROGRAMS_TRUE@@OPUS_ARM_EXTERNAL_ASM_TRUE@am__append_20 = libarmasm.la +@EXTRA_PROGRAMS_TRUE@@OPUS_ARM_EXTERNAL_ASM_TRUE@am__append_21 = libarmasm.la +@CUSTOM_MODES_TRUE@am__append_22 = include/opus_custom.h +@CUSTOM_MODES_TRUE@@EXTRA_PROGRAMS_TRUE@am__append_23 = opus_custom_demo +subdir = . +SUBDIRS = +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/as-gcc-inline-assembly.m4 \ + $(top_srcdir)/m4/ax_add_fortify_source.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ + $(top_srcdir)/m4/lt~obsolete.m4 \ + $(top_srcdir)/m4/opus-intrinsics.m4 $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \ + $(am__configure_deps) $(noinst_HEADERS) \ + $(am__pkginclude_HEADERS_DIST) $(am__DIST_COMMON) +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ + configure.lineno config.status.lineno +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = config.h +CONFIG_CLEAN_FILES = opus.pc opus-uninstalled.pc celt/arm/armopts.s +CONFIG_CLEAN_VPATH_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ + test -z "$$files" \ + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && rm -f $$files; }; \ + } +am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(m4datadir)" \ + "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(pkgincludedir)" +LTLIBRARIES = $(lib_LTLIBRARIES) $(noinst_LTLIBRARIES) +libarmasm_la_LIBADD = +am__libarmasm_la_SOURCES_DIST = celt/arm/celt_pitch_xcorr_arm-gnu.S +am__dirstamp = $(am__leading_dot)dirstamp +am__objects_1 = celt/arm/celt_pitch_xcorr_arm-gnu.lo +@CPU_ARM_TRUE@@OPUS_ARM_EXTERNAL_ASM_TRUE@am_libarmasm_la_OBJECTS = \ +@CPU_ARM_TRUE@@OPUS_ARM_EXTERNAL_ASM_TRUE@ $(am__objects_1) +libarmasm_la_OBJECTS = $(am_libarmasm_la_OBJECTS) +AM_V_lt = $(am__v_lt_@AM_V@) +am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) +am__v_lt_0 = --silent +am__v_lt_1 = +@CPU_ARM_TRUE@@OPUS_ARM_EXTERNAL_ASM_TRUE@am_libarmasm_la_rpath = +am__DEPENDENCIES_1 = +libopus_la_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ + $(am__append_15) +am__libopus_la_SOURCES_DIST = celt/bands.c celt/celt.c \ + celt/celt_encoder.c celt/celt_decoder.c celt/cwrs.c \ + celt/entcode.c celt/entdec.c celt/entenc.c celt/kiss_fft.c \ + celt/laplace.c celt/mathops.c celt/mdct.c celt/modes.c \ + celt/pitch.c celt/celt_lpc.c celt/quant_bands.c celt/rate.c \ + celt/vq.c celt/x86/x86cpu.c celt/x86/x86_celt_map.c \ + celt/x86/pitch_sse.c celt/x86/pitch_sse2.c celt/x86/vq_sse2.c \ + celt/x86/celt_lpc_sse4_1.c celt/x86/pitch_sse4_1.c \ + celt/arm/armcpu.c celt/arm/arm_celt_map.c \ + celt/arm/celt_neon_intr.c celt/arm/pitch_neon_intr.c \ + celt/arm/celt_fft_ne10.c celt/arm/celt_mdct_ne10.c silk/CNG.c \ + silk/code_signs.c silk/init_decoder.c silk/decode_core.c \ + silk/decode_frame.c silk/decode_parameters.c \ + silk/decode_indices.c silk/decode_pulses.c \ + silk/decoder_set_fs.c silk/dec_API.c silk/enc_API.c \ + silk/encode_indices.c silk/encode_pulses.c silk/gain_quant.c \ + silk/interpolate.c silk/LP_variable_cutoff.c \ + silk/NLSF_decode.c silk/NSQ.c silk/NSQ_del_dec.c silk/PLC.c \ + silk/shell_coder.c silk/tables_gain.c silk/tables_LTP.c \ + silk/tables_NLSF_CB_NB_MB.c silk/tables_NLSF_CB_WB.c \ + silk/tables_other.c silk/tables_pitch_lag.c \ + silk/tables_pulses_per_block.c silk/VAD.c \ + silk/control_audio_bandwidth.c silk/quant_LTP_gains.c \ + silk/VQ_WMat_EC.c silk/HP_variable_cutoff.c silk/NLSF_encode.c \ + silk/NLSF_VQ.c silk/NLSF_unpack.c silk/NLSF_del_dec_quant.c \ + silk/process_NLSFs.c silk/stereo_LR_to_MS.c \ + silk/stereo_MS_to_LR.c silk/check_control_input.c \ + silk/control_SNR.c silk/init_encoder.c silk/control_codec.c \ + silk/A2NLSF.c silk/ana_filt_bank_1.c silk/biquad_alt.c \ + silk/bwexpander_32.c silk/bwexpander.c silk/debug.c \ + silk/decode_pitch.c silk/inner_prod_aligned.c silk/lin2log.c \ + silk/log2lin.c silk/LPC_analysis_filter.c \ + silk/LPC_inv_pred_gain.c silk/table_LSF_cos.c silk/NLSF2A.c \ + silk/NLSF_stabilize.c silk/NLSF_VQ_weights_laroia.c \ + silk/pitch_est_tables.c silk/resampler.c \ + silk/resampler_down2_3.c silk/resampler_down2.c \ + silk/resampler_private_AR2.c silk/resampler_private_down_FIR.c \ + silk/resampler_private_IIR_FIR.c \ + silk/resampler_private_up2_HQ.c silk/resampler_rom.c \ + silk/sigm_Q15.c silk/sort.c silk/sum_sqr_shift.c \ + silk/stereo_decode_pred.c silk/stereo_encode_pred.c \ + silk/stereo_find_predictor.c silk/stereo_quant_pred.c \ + silk/LPC_fit.c silk/fixed/LTP_analysis_filter_FIX.c \ + silk/fixed/LTP_scale_ctrl_FIX.c silk/fixed/corrMatrix_FIX.c \ + silk/fixed/encode_frame_FIX.c silk/fixed/find_LPC_FIX.c \ + silk/fixed/find_LTP_FIX.c silk/fixed/find_pitch_lags_FIX.c \ + silk/fixed/find_pred_coefs_FIX.c \ + silk/fixed/noise_shape_analysis_FIX.c \ + silk/fixed/process_gains_FIX.c \ + silk/fixed/regularize_correlations_FIX.c \ + silk/fixed/residual_energy16_FIX.c \ + silk/fixed/residual_energy_FIX.c \ + silk/fixed/warped_autocorrelation_FIX.c \ + silk/fixed/apply_sine_window_FIX.c silk/fixed/autocorr_FIX.c \ + silk/fixed/burg_modified_FIX.c silk/fixed/k2a_FIX.c \ + silk/fixed/k2a_Q16_FIX.c silk/fixed/pitch_analysis_core_FIX.c \ + silk/fixed/vector_ops_FIX.c silk/fixed/schur64_FIX.c \ + silk/fixed/schur_FIX.c silk/x86/NSQ_sse4_1.c \ + silk/x86/NSQ_del_dec_sse4_1.c silk/x86/x86_silk_map.c \ + silk/x86/VAD_sse4_1.c silk/x86/VQ_WMat_EC_sse4_1.c \ + silk/fixed/x86/vector_ops_FIX_sse4_1.c \ + silk/fixed/x86/burg_modified_FIX_sse4_1.c \ + silk/fixed/arm/warped_autocorrelation_FIX_neon_intr.c \ + silk/float/apply_sine_window_FLP.c silk/float/corrMatrix_FLP.c \ + silk/float/encode_frame_FLP.c silk/float/find_LPC_FLP.c \ + silk/float/find_LTP_FLP.c silk/float/find_pitch_lags_FLP.c \ + silk/float/find_pred_coefs_FLP.c \ + silk/float/LPC_analysis_filter_FLP.c \ + silk/float/LTP_analysis_filter_FLP.c \ + silk/float/LTP_scale_ctrl_FLP.c \ + silk/float/noise_shape_analysis_FLP.c \ + silk/float/process_gains_FLP.c \ + silk/float/regularize_correlations_FLP.c \ + silk/float/residual_energy_FLP.c \ + silk/float/warped_autocorrelation_FLP.c \ + silk/float/wrappers_FLP.c silk/float/autocorrelation_FLP.c \ + silk/float/burg_modified_FLP.c silk/float/bwexpander_FLP.c \ + silk/float/energy_FLP.c silk/float/inner_product_FLP.c \ + silk/float/k2a_FLP.c silk/float/LPC_inv_pred_gain_FLP.c \ + silk/float/pitch_analysis_core_FLP.c \ + silk/float/scale_copy_vector_FLP.c \ + silk/float/scale_vector_FLP.c silk/float/schur_FLP.c \ + silk/float/sort_FLP.c silk/arm/arm_silk_map.c \ + silk/arm/biquad_alt_neon_intr.c \ + silk/arm/LPC_inv_pred_gain_neon_intr.c \ + silk/arm/NSQ_del_dec_neon_intr.c silk/arm/NSQ_neon.c \ + src/opus.c src/opus_decoder.c src/opus_encoder.c \ + src/opus_multistream.c src/opus_multistream_encoder.c \ + src/opus_multistream_decoder.c src/repacketizer.c \ + src/opus_projection_encoder.c src/opus_projection_decoder.c \ + src/mapping_matrix.c src/analysis.c src/mlp.c src/mlp_data.c +am__objects_2 = celt/x86/x86cpu.lo celt/x86/x86_celt_map.lo \ + celt/x86/pitch_sse.lo +@HAVE_SSE_TRUE@am__objects_3 = $(am__objects_2) +am__objects_4 = celt/x86/pitch_sse2.lo celt/x86/vq_sse2.lo +@HAVE_SSE2_TRUE@am__objects_5 = $(am__objects_4) +am__objects_6 = celt/x86/celt_lpc_sse4_1.lo celt/x86/pitch_sse4_1.lo +@HAVE_SSE4_1_TRUE@am__objects_7 = $(am__objects_6) +am__objects_8 = celt/arm/armcpu.lo celt/arm/arm_celt_map.lo +@CPU_ARM_TRUE@am__objects_9 = $(am__objects_8) +am__objects_10 = celt/arm/celt_neon_intr.lo \ + celt/arm/pitch_neon_intr.lo +@CPU_ARM_TRUE@@HAVE_ARM_NEON_INTR_TRUE@am__objects_11 = \ +@CPU_ARM_TRUE@@HAVE_ARM_NEON_INTR_TRUE@ $(am__objects_10) +am__objects_12 = celt/arm/celt_fft_ne10.lo celt/arm/celt_mdct_ne10.lo +@CPU_ARM_TRUE@@HAVE_ARM_NE10_TRUE@am__objects_13 = $(am__objects_12) +am__objects_14 = celt/bands.lo celt/celt.lo celt/celt_encoder.lo \ + celt/celt_decoder.lo celt/cwrs.lo celt/entcode.lo \ + celt/entdec.lo celt/entenc.lo celt/kiss_fft.lo celt/laplace.lo \ + celt/mathops.lo celt/mdct.lo celt/modes.lo celt/pitch.lo \ + celt/celt_lpc.lo celt/quant_bands.lo celt/rate.lo celt/vq.lo \ + $(am__objects_3) $(am__objects_5) $(am__objects_7) \ + $(am__objects_9) $(am__objects_11) $(am__objects_13) +am__objects_15 = silk/fixed/LTP_analysis_filter_FIX.lo \ + silk/fixed/LTP_scale_ctrl_FIX.lo silk/fixed/corrMatrix_FIX.lo \ + silk/fixed/encode_frame_FIX.lo silk/fixed/find_LPC_FIX.lo \ + silk/fixed/find_LTP_FIX.lo silk/fixed/find_pitch_lags_FIX.lo \ + silk/fixed/find_pred_coefs_FIX.lo \ + silk/fixed/noise_shape_analysis_FIX.lo \ + silk/fixed/process_gains_FIX.lo \ + silk/fixed/regularize_correlations_FIX.lo \ + silk/fixed/residual_energy16_FIX.lo \ + silk/fixed/residual_energy_FIX.lo \ + silk/fixed/warped_autocorrelation_FIX.lo \ + silk/fixed/apply_sine_window_FIX.lo silk/fixed/autocorr_FIX.lo \ + silk/fixed/burg_modified_FIX.lo silk/fixed/k2a_FIX.lo \ + silk/fixed/k2a_Q16_FIX.lo \ + silk/fixed/pitch_analysis_core_FIX.lo \ + silk/fixed/vector_ops_FIX.lo silk/fixed/schur64_FIX.lo \ + silk/fixed/schur_FIX.lo +@FIXED_POINT_TRUE@am__objects_16 = $(am__objects_15) +am__objects_17 = silk/x86/NSQ_sse4_1.lo silk/x86/NSQ_del_dec_sse4_1.lo \ + silk/x86/x86_silk_map.lo silk/x86/VAD_sse4_1.lo \ + silk/x86/VQ_WMat_EC_sse4_1.lo +am__objects_18 = silk/fixed/x86/vector_ops_FIX_sse4_1.lo \ + silk/fixed/x86/burg_modified_FIX_sse4_1.lo +@FIXED_POINT_TRUE@@HAVE_SSE4_1_TRUE@am__objects_19 = \ +@FIXED_POINT_TRUE@@HAVE_SSE4_1_TRUE@ $(am__objects_17) \ +@FIXED_POINT_TRUE@@HAVE_SSE4_1_TRUE@ $(am__objects_18) +am__objects_20 = \ + silk/fixed/arm/warped_autocorrelation_FIX_neon_intr.lo +@FIXED_POINT_TRUE@@HAVE_ARM_NEON_INTR_TRUE@am__objects_21 = \ +@FIXED_POINT_TRUE@@HAVE_ARM_NEON_INTR_TRUE@ $(am__objects_20) +am__objects_22 = silk/float/apply_sine_window_FLP.lo \ + silk/float/corrMatrix_FLP.lo silk/float/encode_frame_FLP.lo \ + silk/float/find_LPC_FLP.lo silk/float/find_LTP_FLP.lo \ + silk/float/find_pitch_lags_FLP.lo \ + silk/float/find_pred_coefs_FLP.lo \ + silk/float/LPC_analysis_filter_FLP.lo \ + silk/float/LTP_analysis_filter_FLP.lo \ + silk/float/LTP_scale_ctrl_FLP.lo \ + silk/float/noise_shape_analysis_FLP.lo \ + silk/float/process_gains_FLP.lo \ + silk/float/regularize_correlations_FLP.lo \ + silk/float/residual_energy_FLP.lo \ + silk/float/warped_autocorrelation_FLP.lo \ + silk/float/wrappers_FLP.lo silk/float/autocorrelation_FLP.lo \ + silk/float/burg_modified_FLP.lo silk/float/bwexpander_FLP.lo \ + silk/float/energy_FLP.lo silk/float/inner_product_FLP.lo \ + silk/float/k2a_FLP.lo silk/float/LPC_inv_pred_gain_FLP.lo \ + silk/float/pitch_analysis_core_FLP.lo \ + silk/float/scale_copy_vector_FLP.lo \ + silk/float/scale_vector_FLP.lo silk/float/schur_FLP.lo \ + silk/float/sort_FLP.lo +@FIXED_POINT_FALSE@am__objects_23 = $(am__objects_22) +@FIXED_POINT_FALSE@@HAVE_SSE4_1_TRUE@am__objects_24 = \ +@FIXED_POINT_FALSE@@HAVE_SSE4_1_TRUE@ $(am__objects_17) +am__objects_25 = +am__objects_26 = silk/arm/arm_silk_map.lo \ + silk/arm/biquad_alt_neon_intr.lo \ + silk/arm/LPC_inv_pred_gain_neon_intr.lo \ + silk/arm/NSQ_del_dec_neon_intr.lo silk/arm/NSQ_neon.lo +@CPU_ARM_TRUE@@HAVE_ARM_NEON_INTR_TRUE@am__objects_27 = \ +@CPU_ARM_TRUE@@HAVE_ARM_NEON_INTR_TRUE@ $(am__objects_26) +am__objects_28 = silk/CNG.lo silk/code_signs.lo silk/init_decoder.lo \ + silk/decode_core.lo silk/decode_frame.lo \ + silk/decode_parameters.lo silk/decode_indices.lo \ + silk/decode_pulses.lo silk/decoder_set_fs.lo silk/dec_API.lo \ + silk/enc_API.lo silk/encode_indices.lo silk/encode_pulses.lo \ + silk/gain_quant.lo silk/interpolate.lo \ + silk/LP_variable_cutoff.lo silk/NLSF_decode.lo silk/NSQ.lo \ + silk/NSQ_del_dec.lo silk/PLC.lo silk/shell_coder.lo \ + silk/tables_gain.lo silk/tables_LTP.lo \ + silk/tables_NLSF_CB_NB_MB.lo silk/tables_NLSF_CB_WB.lo \ + silk/tables_other.lo silk/tables_pitch_lag.lo \ + silk/tables_pulses_per_block.lo silk/VAD.lo \ + silk/control_audio_bandwidth.lo silk/quant_LTP_gains.lo \ + silk/VQ_WMat_EC.lo silk/HP_variable_cutoff.lo \ + silk/NLSF_encode.lo silk/NLSF_VQ.lo silk/NLSF_unpack.lo \ + silk/NLSF_del_dec_quant.lo silk/process_NLSFs.lo \ + silk/stereo_LR_to_MS.lo silk/stereo_MS_to_LR.lo \ + silk/check_control_input.lo silk/control_SNR.lo \ + silk/init_encoder.lo silk/control_codec.lo silk/A2NLSF.lo \ + silk/ana_filt_bank_1.lo silk/biquad_alt.lo \ + silk/bwexpander_32.lo silk/bwexpander.lo silk/debug.lo \ + silk/decode_pitch.lo silk/inner_prod_aligned.lo \ + silk/lin2log.lo silk/log2lin.lo silk/LPC_analysis_filter.lo \ + silk/LPC_inv_pred_gain.lo silk/table_LSF_cos.lo silk/NLSF2A.lo \ + silk/NLSF_stabilize.lo silk/NLSF_VQ_weights_laroia.lo \ + silk/pitch_est_tables.lo silk/resampler.lo \ + silk/resampler_down2_3.lo silk/resampler_down2.lo \ + silk/resampler_private_AR2.lo \ + silk/resampler_private_down_FIR.lo \ + silk/resampler_private_IIR_FIR.lo \ + silk/resampler_private_up2_HQ.lo silk/resampler_rom.lo \ + silk/sigm_Q15.lo silk/sort.lo silk/sum_sqr_shift.lo \ + silk/stereo_decode_pred.lo silk/stereo_encode_pred.lo \ + silk/stereo_find_predictor.lo silk/stereo_quant_pred.lo \ + silk/LPC_fit.lo $(am__objects_16) $(am__objects_19) \ + $(am__objects_21) $(am__objects_23) $(am__objects_24) \ + $(am__objects_25) $(am__objects_27) +am__objects_29 = src/analysis.lo src/mlp.lo src/mlp_data.lo +@DISABLE_FLOAT_API_FALSE@am__objects_30 = $(am__objects_29) +am__objects_31 = src/opus.lo src/opus_decoder.lo src/opus_encoder.lo \ + src/opus_multistream.lo src/opus_multistream_encoder.lo \ + src/opus_multistream_decoder.lo src/repacketizer.lo \ + src/opus_projection_encoder.lo src/opus_projection_decoder.lo \ + src/mapping_matrix.lo $(am__objects_30) +am_libopus_la_OBJECTS = $(am__objects_14) $(am__objects_28) \ + $(am__objects_31) +libopus_la_OBJECTS = $(am_libopus_la_OBJECTS) +libopus_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(libopus_la_LDFLAGS) $(LDFLAGS) -o $@ +@CUSTOM_MODES_TRUE@@EXTRA_PROGRAMS_TRUE@am__EXEEXT_1 = opus_custom_demo$(EXEEXT) +PROGRAMS = $(noinst_PROGRAMS) +am__celt_tests_test_unit_cwrs32_SOURCES_DIST = \ + celt/tests/test_unit_cwrs32.c +@EXTRA_PROGRAMS_TRUE@am_celt_tests_test_unit_cwrs32_OBJECTS = \ +@EXTRA_PROGRAMS_TRUE@ celt/tests/test_unit_cwrs32.$(OBJEXT) +celt_tests_test_unit_cwrs32_OBJECTS = \ + $(am_celt_tests_test_unit_cwrs32_OBJECTS) +@EXTRA_PROGRAMS_TRUE@celt_tests_test_unit_cwrs32_DEPENDENCIES = \ +@EXTRA_PROGRAMS_TRUE@ $(am__DEPENDENCIES_1) +am__celt_tests_test_unit_dft_SOURCES_DIST = \ + celt/tests/test_unit_dft.c +@EXTRA_PROGRAMS_TRUE@am_celt_tests_test_unit_dft_OBJECTS = \ +@EXTRA_PROGRAMS_TRUE@ celt/tests/test_unit_dft.$(OBJEXT) +celt_tests_test_unit_dft_OBJECTS = \ + $(am_celt_tests_test_unit_dft_OBJECTS) +am__DEPENDENCIES_2 = celt/x86/x86cpu.lo celt/x86/x86_celt_map.lo \ + celt/x86/pitch_sse.lo +@HAVE_SSE_TRUE@am__DEPENDENCIES_3 = $(am__DEPENDENCIES_2) +am__DEPENDENCIES_4 = celt/x86/pitch_sse2.lo celt/x86/vq_sse2.lo +@HAVE_SSE2_TRUE@am__DEPENDENCIES_5 = $(am__DEPENDENCIES_4) +am__DEPENDENCIES_6 = celt/x86/celt_lpc_sse4_1.lo \ + celt/x86/pitch_sse4_1.lo +@HAVE_SSE4_1_TRUE@am__DEPENDENCIES_7 = $(am__DEPENDENCIES_6) +am__DEPENDENCIES_8 = celt/arm/armcpu.lo celt/arm/arm_celt_map.lo +@CPU_ARM_TRUE@am__DEPENDENCIES_9 = $(am__DEPENDENCIES_8) +am__DEPENDENCIES_10 = celt/arm/celt_neon_intr.lo \ + celt/arm/pitch_neon_intr.lo +@CPU_ARM_TRUE@@HAVE_ARM_NEON_INTR_TRUE@am__DEPENDENCIES_11 = \ +@CPU_ARM_TRUE@@HAVE_ARM_NEON_INTR_TRUE@ $(am__DEPENDENCIES_10) +am__DEPENDENCIES_12 = celt/arm/celt_fft_ne10.lo \ + celt/arm/celt_mdct_ne10.lo +@CPU_ARM_TRUE@@HAVE_ARM_NE10_TRUE@am__DEPENDENCIES_13 = \ +@CPU_ARM_TRUE@@HAVE_ARM_NE10_TRUE@ $(am__DEPENDENCIES_12) +am__DEPENDENCIES_14 = celt/bands.lo celt/celt.lo celt/celt_encoder.lo \ + celt/celt_decoder.lo celt/cwrs.lo celt/entcode.lo \ + celt/entdec.lo celt/entenc.lo celt/kiss_fft.lo celt/laplace.lo \ + celt/mathops.lo celt/mdct.lo celt/modes.lo celt/pitch.lo \ + celt/celt_lpc.lo celt/quant_bands.lo celt/rate.lo celt/vq.lo \ + $(am__DEPENDENCIES_3) $(am__DEPENDENCIES_5) \ + $(am__DEPENDENCIES_7) $(am__DEPENDENCIES_9) \ + $(am__DEPENDENCIES_11) $(am__DEPENDENCIES_13) +@EXTRA_PROGRAMS_TRUE@am__DEPENDENCIES_15 = $(am__DEPENDENCIES_14) +@EXTRA_PROGRAMS_TRUE@celt_tests_test_unit_dft_DEPENDENCIES = \ +@EXTRA_PROGRAMS_TRUE@ $(am__DEPENDENCIES_15) \ +@EXTRA_PROGRAMS_TRUE@ $(am__DEPENDENCIES_1) \ +@EXTRA_PROGRAMS_TRUE@ $(am__DEPENDENCIES_1) $(am__append_18) +am__celt_tests_test_unit_entropy_SOURCES_DIST = \ + celt/tests/test_unit_entropy.c +@EXTRA_PROGRAMS_TRUE@am_celt_tests_test_unit_entropy_OBJECTS = \ +@EXTRA_PROGRAMS_TRUE@ celt/tests/test_unit_entropy.$(OBJEXT) +celt_tests_test_unit_entropy_OBJECTS = \ + $(am_celt_tests_test_unit_entropy_OBJECTS) +@EXTRA_PROGRAMS_TRUE@celt_tests_test_unit_entropy_DEPENDENCIES = \ +@EXTRA_PROGRAMS_TRUE@ $(am__DEPENDENCIES_1) +am__celt_tests_test_unit_laplace_SOURCES_DIST = \ + celt/tests/test_unit_laplace.c +@EXTRA_PROGRAMS_TRUE@am_celt_tests_test_unit_laplace_OBJECTS = \ +@EXTRA_PROGRAMS_TRUE@ celt/tests/test_unit_laplace.$(OBJEXT) +celt_tests_test_unit_laplace_OBJECTS = \ + $(am_celt_tests_test_unit_laplace_OBJECTS) +@EXTRA_PROGRAMS_TRUE@celt_tests_test_unit_laplace_DEPENDENCIES = \ +@EXTRA_PROGRAMS_TRUE@ $(am__DEPENDENCIES_1) +am__celt_tests_test_unit_mathops_SOURCES_DIST = \ + celt/tests/test_unit_mathops.c +@EXTRA_PROGRAMS_TRUE@am_celt_tests_test_unit_mathops_OBJECTS = \ +@EXTRA_PROGRAMS_TRUE@ celt/tests/test_unit_mathops.$(OBJEXT) +celt_tests_test_unit_mathops_OBJECTS = \ + $(am_celt_tests_test_unit_mathops_OBJECTS) +@EXTRA_PROGRAMS_TRUE@celt_tests_test_unit_mathops_DEPENDENCIES = \ +@EXTRA_PROGRAMS_TRUE@ $(am__DEPENDENCIES_15) \ +@EXTRA_PROGRAMS_TRUE@ $(am__DEPENDENCIES_1) \ +@EXTRA_PROGRAMS_TRUE@ $(am__DEPENDENCIES_1) $(am__append_19) +am__celt_tests_test_unit_mdct_SOURCES_DIST = \ + celt/tests/test_unit_mdct.c +@EXTRA_PROGRAMS_TRUE@am_celt_tests_test_unit_mdct_OBJECTS = \ +@EXTRA_PROGRAMS_TRUE@ celt/tests/test_unit_mdct.$(OBJEXT) +celt_tests_test_unit_mdct_OBJECTS = \ + $(am_celt_tests_test_unit_mdct_OBJECTS) +@EXTRA_PROGRAMS_TRUE@celt_tests_test_unit_mdct_DEPENDENCIES = \ +@EXTRA_PROGRAMS_TRUE@ $(am__DEPENDENCIES_15) \ +@EXTRA_PROGRAMS_TRUE@ $(am__DEPENDENCIES_1) \ +@EXTRA_PROGRAMS_TRUE@ $(am__DEPENDENCIES_1) $(am__append_20) +am__celt_tests_test_unit_rotation_SOURCES_DIST = \ + celt/tests/test_unit_rotation.c +@EXTRA_PROGRAMS_TRUE@am_celt_tests_test_unit_rotation_OBJECTS = \ +@EXTRA_PROGRAMS_TRUE@ celt/tests/test_unit_rotation.$(OBJEXT) +celt_tests_test_unit_rotation_OBJECTS = \ + $(am_celt_tests_test_unit_rotation_OBJECTS) +@EXTRA_PROGRAMS_TRUE@celt_tests_test_unit_rotation_DEPENDENCIES = \ +@EXTRA_PROGRAMS_TRUE@ $(am__DEPENDENCIES_15) \ +@EXTRA_PROGRAMS_TRUE@ $(am__DEPENDENCIES_1) \ +@EXTRA_PROGRAMS_TRUE@ $(am__DEPENDENCIES_1) $(am__append_21) +am__celt_tests_test_unit_types_SOURCES_DIST = \ + celt/tests/test_unit_types.c +@EXTRA_PROGRAMS_TRUE@am_celt_tests_test_unit_types_OBJECTS = \ +@EXTRA_PROGRAMS_TRUE@ celt/tests/test_unit_types.$(OBJEXT) +celt_tests_test_unit_types_OBJECTS = \ + $(am_celt_tests_test_unit_types_OBJECTS) +@EXTRA_PROGRAMS_TRUE@celt_tests_test_unit_types_DEPENDENCIES = \ +@EXTRA_PROGRAMS_TRUE@ $(am__DEPENDENCIES_1) +am__opus_compare_SOURCES_DIST = src/opus_compare.c +@EXTRA_PROGRAMS_TRUE@am_opus_compare_OBJECTS = \ +@EXTRA_PROGRAMS_TRUE@ src/opus_compare.$(OBJEXT) +opus_compare_OBJECTS = $(am_opus_compare_OBJECTS) +@EXTRA_PROGRAMS_TRUE@opus_compare_DEPENDENCIES = \ +@EXTRA_PROGRAMS_TRUE@ $(am__DEPENDENCIES_1) +am__opus_custom_demo_SOURCES_DIST = celt/opus_custom_demo.c +@CUSTOM_MODES_TRUE@@EXTRA_PROGRAMS_TRUE@am_opus_custom_demo_OBJECTS = celt/opus_custom_demo.$(OBJEXT) +opus_custom_demo_OBJECTS = $(am_opus_custom_demo_OBJECTS) +@CUSTOM_MODES_TRUE@@EXTRA_PROGRAMS_TRUE@opus_custom_demo_DEPENDENCIES = \ +@CUSTOM_MODES_TRUE@@EXTRA_PROGRAMS_TRUE@ libopus.la \ +@CUSTOM_MODES_TRUE@@EXTRA_PROGRAMS_TRUE@ $(am__DEPENDENCIES_1) +am__opus_demo_SOURCES_DIST = src/opus_demo.c +@EXTRA_PROGRAMS_TRUE@am_opus_demo_OBJECTS = src/opus_demo.$(OBJEXT) +opus_demo_OBJECTS = $(am_opus_demo_OBJECTS) +@EXTRA_PROGRAMS_TRUE@opus_demo_DEPENDENCIES = libopus.la \ +@EXTRA_PROGRAMS_TRUE@ $(am__DEPENDENCIES_1) \ +@EXTRA_PROGRAMS_TRUE@ $(am__DEPENDENCIES_1) +am__repacketizer_demo_SOURCES_DIST = src/repacketizer_demo.c +@EXTRA_PROGRAMS_TRUE@am_repacketizer_demo_OBJECTS = \ +@EXTRA_PROGRAMS_TRUE@ src/repacketizer_demo.$(OBJEXT) +repacketizer_demo_OBJECTS = $(am_repacketizer_demo_OBJECTS) +@EXTRA_PROGRAMS_TRUE@repacketizer_demo_DEPENDENCIES = libopus.la \ +@EXTRA_PROGRAMS_TRUE@ $(am__DEPENDENCIES_1) \ +@EXTRA_PROGRAMS_TRUE@ $(am__DEPENDENCIES_1) +am__silk_tests_test_unit_LPC_inv_pred_gain_SOURCES_DIST = \ + silk/tests/test_unit_LPC_inv_pred_gain.c +@EXTRA_PROGRAMS_TRUE@am_silk_tests_test_unit_LPC_inv_pred_gain_OBJECTS = silk/tests/test_unit_LPC_inv_pred_gain.$(OBJEXT) +silk_tests_test_unit_LPC_inv_pred_gain_OBJECTS = \ + $(am_silk_tests_test_unit_LPC_inv_pred_gain_OBJECTS) +am__DEPENDENCIES_16 = silk/fixed/LTP_analysis_filter_FIX.lo \ + silk/fixed/LTP_scale_ctrl_FIX.lo silk/fixed/corrMatrix_FIX.lo \ + silk/fixed/encode_frame_FIX.lo silk/fixed/find_LPC_FIX.lo \ + silk/fixed/find_LTP_FIX.lo silk/fixed/find_pitch_lags_FIX.lo \ + silk/fixed/find_pred_coefs_FIX.lo \ + silk/fixed/noise_shape_analysis_FIX.lo \ + silk/fixed/process_gains_FIX.lo \ + silk/fixed/regularize_correlations_FIX.lo \ + silk/fixed/residual_energy16_FIX.lo \ + silk/fixed/residual_energy_FIX.lo \ + silk/fixed/warped_autocorrelation_FIX.lo \ + silk/fixed/apply_sine_window_FIX.lo silk/fixed/autocorr_FIX.lo \ + silk/fixed/burg_modified_FIX.lo silk/fixed/k2a_FIX.lo \ + silk/fixed/k2a_Q16_FIX.lo \ + silk/fixed/pitch_analysis_core_FIX.lo \ + silk/fixed/vector_ops_FIX.lo silk/fixed/schur64_FIX.lo \ + silk/fixed/schur_FIX.lo +@FIXED_POINT_TRUE@am__DEPENDENCIES_17 = $(am__DEPENDENCIES_16) +am__DEPENDENCIES_18 = silk/x86/NSQ_sse4_1.lo \ + silk/x86/NSQ_del_dec_sse4_1.lo silk/x86/x86_silk_map.lo \ + silk/x86/VAD_sse4_1.lo silk/x86/VQ_WMat_EC_sse4_1.lo +am__DEPENDENCIES_19 = silk/fixed/x86/vector_ops_FIX_sse4_1.lo \ + silk/fixed/x86/burg_modified_FIX_sse4_1.lo +@FIXED_POINT_TRUE@@HAVE_SSE4_1_TRUE@am__DEPENDENCIES_20 = \ +@FIXED_POINT_TRUE@@HAVE_SSE4_1_TRUE@ $(am__DEPENDENCIES_18) \ +@FIXED_POINT_TRUE@@HAVE_SSE4_1_TRUE@ $(am__DEPENDENCIES_19) +am__DEPENDENCIES_21 = \ + silk/fixed/arm/warped_autocorrelation_FIX_neon_intr.lo +@FIXED_POINT_TRUE@@HAVE_ARM_NEON_INTR_TRUE@am__DEPENDENCIES_22 = $(am__DEPENDENCIES_21) +am__DEPENDENCIES_23 = silk/float/apply_sine_window_FLP.lo \ + silk/float/corrMatrix_FLP.lo silk/float/encode_frame_FLP.lo \ + silk/float/find_LPC_FLP.lo silk/float/find_LTP_FLP.lo \ + silk/float/find_pitch_lags_FLP.lo \ + silk/float/find_pred_coefs_FLP.lo \ + silk/float/LPC_analysis_filter_FLP.lo \ + silk/float/LTP_analysis_filter_FLP.lo \ + silk/float/LTP_scale_ctrl_FLP.lo \ + silk/float/noise_shape_analysis_FLP.lo \ + silk/float/process_gains_FLP.lo \ + silk/float/regularize_correlations_FLP.lo \ + silk/float/residual_energy_FLP.lo \ + silk/float/warped_autocorrelation_FLP.lo \ + silk/float/wrappers_FLP.lo silk/float/autocorrelation_FLP.lo \ + silk/float/burg_modified_FLP.lo silk/float/bwexpander_FLP.lo \ + silk/float/energy_FLP.lo silk/float/inner_product_FLP.lo \ + silk/float/k2a_FLP.lo silk/float/LPC_inv_pred_gain_FLP.lo \ + silk/float/pitch_analysis_core_FLP.lo \ + silk/float/scale_copy_vector_FLP.lo \ + silk/float/scale_vector_FLP.lo silk/float/schur_FLP.lo \ + silk/float/sort_FLP.lo +@FIXED_POINT_FALSE@am__DEPENDENCIES_24 = $(am__DEPENDENCIES_23) +@FIXED_POINT_FALSE@@HAVE_SSE4_1_TRUE@am__DEPENDENCIES_25 = \ +@FIXED_POINT_FALSE@@HAVE_SSE4_1_TRUE@ $(am__DEPENDENCIES_18) +am__DEPENDENCIES_26 = silk/arm/arm_silk_map.lo \ + silk/arm/biquad_alt_neon_intr.lo \ + silk/arm/LPC_inv_pred_gain_neon_intr.lo \ + silk/arm/NSQ_del_dec_neon_intr.lo silk/arm/NSQ_neon.lo +@CPU_ARM_TRUE@@HAVE_ARM_NEON_INTR_TRUE@am__DEPENDENCIES_27 = \ +@CPU_ARM_TRUE@@HAVE_ARM_NEON_INTR_TRUE@ $(am__DEPENDENCIES_26) +am__DEPENDENCIES_28 = silk/CNG.lo silk/code_signs.lo \ + silk/init_decoder.lo silk/decode_core.lo silk/decode_frame.lo \ + silk/decode_parameters.lo silk/decode_indices.lo \ + silk/decode_pulses.lo silk/decoder_set_fs.lo silk/dec_API.lo \ + silk/enc_API.lo silk/encode_indices.lo silk/encode_pulses.lo \ + silk/gain_quant.lo silk/interpolate.lo \ + silk/LP_variable_cutoff.lo silk/NLSF_decode.lo silk/NSQ.lo \ + silk/NSQ_del_dec.lo silk/PLC.lo silk/shell_coder.lo \ + silk/tables_gain.lo silk/tables_LTP.lo \ + silk/tables_NLSF_CB_NB_MB.lo silk/tables_NLSF_CB_WB.lo \ + silk/tables_other.lo silk/tables_pitch_lag.lo \ + silk/tables_pulses_per_block.lo silk/VAD.lo \ + silk/control_audio_bandwidth.lo silk/quant_LTP_gains.lo \ + silk/VQ_WMat_EC.lo silk/HP_variable_cutoff.lo \ + silk/NLSF_encode.lo silk/NLSF_VQ.lo silk/NLSF_unpack.lo \ + silk/NLSF_del_dec_quant.lo silk/process_NLSFs.lo \ + silk/stereo_LR_to_MS.lo silk/stereo_MS_to_LR.lo \ + silk/check_control_input.lo silk/control_SNR.lo \ + silk/init_encoder.lo silk/control_codec.lo silk/A2NLSF.lo \ + silk/ana_filt_bank_1.lo silk/biquad_alt.lo \ + silk/bwexpander_32.lo silk/bwexpander.lo silk/debug.lo \ + silk/decode_pitch.lo silk/inner_prod_aligned.lo \ + silk/lin2log.lo silk/log2lin.lo silk/LPC_analysis_filter.lo \ + silk/LPC_inv_pred_gain.lo silk/table_LSF_cos.lo silk/NLSF2A.lo \ + silk/NLSF_stabilize.lo silk/NLSF_VQ_weights_laroia.lo \ + silk/pitch_est_tables.lo silk/resampler.lo \ + silk/resampler_down2_3.lo silk/resampler_down2.lo \ + silk/resampler_private_AR2.lo \ + silk/resampler_private_down_FIR.lo \ + silk/resampler_private_IIR_FIR.lo \ + silk/resampler_private_up2_HQ.lo silk/resampler_rom.lo \ + silk/sigm_Q15.lo silk/sort.lo silk/sum_sqr_shift.lo \ + silk/stereo_decode_pred.lo silk/stereo_encode_pred.lo \ + silk/stereo_find_predictor.lo silk/stereo_quant_pred.lo \ + silk/LPC_fit.lo $(am__DEPENDENCIES_17) $(am__DEPENDENCIES_20) \ + $(am__DEPENDENCIES_22) $(am__DEPENDENCIES_24) \ + $(am__DEPENDENCIES_25) $(am__DEPENDENCIES_1) \ + $(am__DEPENDENCIES_27) +@EXTRA_PROGRAMS_TRUE@am__DEPENDENCIES_29 = $(am__DEPENDENCIES_28) +@EXTRA_PROGRAMS_TRUE@silk_tests_test_unit_LPC_inv_pred_gain_DEPENDENCIES = \ +@EXTRA_PROGRAMS_TRUE@ $(am__DEPENDENCIES_29) \ +@EXTRA_PROGRAMS_TRUE@ $(am__DEPENDENCIES_15) \ +@EXTRA_PROGRAMS_TRUE@ $(am__DEPENDENCIES_1) \ +@EXTRA_PROGRAMS_TRUE@ $(am__DEPENDENCIES_1) $(am__append_17) +am__tests_test_opus_api_SOURCES_DIST = tests/test_opus_api.c \ + tests/test_opus_common.h +@EXTRA_PROGRAMS_TRUE@am_tests_test_opus_api_OBJECTS = \ +@EXTRA_PROGRAMS_TRUE@ tests/test_opus_api.$(OBJEXT) +tests_test_opus_api_OBJECTS = $(am_tests_test_opus_api_OBJECTS) +@EXTRA_PROGRAMS_TRUE@tests_test_opus_api_DEPENDENCIES = libopus.la \ +@EXTRA_PROGRAMS_TRUE@ $(am__DEPENDENCIES_1) \ +@EXTRA_PROGRAMS_TRUE@ $(am__DEPENDENCIES_1) +am__tests_test_opus_decode_SOURCES_DIST = tests/test_opus_decode.c \ + tests/test_opus_common.h +@EXTRA_PROGRAMS_TRUE@am_tests_test_opus_decode_OBJECTS = \ +@EXTRA_PROGRAMS_TRUE@ tests/test_opus_decode.$(OBJEXT) +tests_test_opus_decode_OBJECTS = $(am_tests_test_opus_decode_OBJECTS) +@EXTRA_PROGRAMS_TRUE@tests_test_opus_decode_DEPENDENCIES = libopus.la \ +@EXTRA_PROGRAMS_TRUE@ $(am__DEPENDENCIES_1) \ +@EXTRA_PROGRAMS_TRUE@ $(am__DEPENDENCIES_1) +am__tests_test_opus_encode_SOURCES_DIST = tests/test_opus_encode.c \ + tests/opus_encode_regressions.c tests/test_opus_common.h +@EXTRA_PROGRAMS_TRUE@am_tests_test_opus_encode_OBJECTS = \ +@EXTRA_PROGRAMS_TRUE@ tests/test_opus_encode.$(OBJEXT) \ +@EXTRA_PROGRAMS_TRUE@ tests/opus_encode_regressions.$(OBJEXT) +tests_test_opus_encode_OBJECTS = $(am_tests_test_opus_encode_OBJECTS) +@EXTRA_PROGRAMS_TRUE@tests_test_opus_encode_DEPENDENCIES = libopus.la \ +@EXTRA_PROGRAMS_TRUE@ $(am__DEPENDENCIES_1) \ +@EXTRA_PROGRAMS_TRUE@ $(am__DEPENDENCIES_1) +am__tests_test_opus_padding_SOURCES_DIST = tests/test_opus_padding.c \ + tests/test_opus_common.h +@EXTRA_PROGRAMS_TRUE@am_tests_test_opus_padding_OBJECTS = \ +@EXTRA_PROGRAMS_TRUE@ tests/test_opus_padding.$(OBJEXT) +tests_test_opus_padding_OBJECTS = \ + $(am_tests_test_opus_padding_OBJECTS) +@EXTRA_PROGRAMS_TRUE@tests_test_opus_padding_DEPENDENCIES = \ +@EXTRA_PROGRAMS_TRUE@ libopus.la $(am__DEPENDENCIES_1) \ +@EXTRA_PROGRAMS_TRUE@ $(am__DEPENDENCIES_1) +am__tests_test_opus_projection_SOURCES_DIST = \ + tests/test_opus_projection.c tests/test_opus_common.h +@EXTRA_PROGRAMS_TRUE@am_tests_test_opus_projection_OBJECTS = \ +@EXTRA_PROGRAMS_TRUE@ tests/test_opus_projection.$(OBJEXT) +tests_test_opus_projection_OBJECTS = \ + $(am_tests_test_opus_projection_OBJECTS) +am__DEPENDENCIES_30 = src/analysis.lo src/mlp.lo src/mlp_data.lo +@DISABLE_FLOAT_API_FALSE@am__DEPENDENCIES_31 = $(am__DEPENDENCIES_30) +am__DEPENDENCIES_32 = src/opus.lo src/opus_decoder.lo \ + src/opus_encoder.lo src/opus_multistream.lo \ + src/opus_multistream_encoder.lo \ + src/opus_multistream_decoder.lo src/repacketizer.lo \ + src/opus_projection_encoder.lo src/opus_projection_decoder.lo \ + src/mapping_matrix.lo $(am__DEPENDENCIES_31) +@EXTRA_PROGRAMS_TRUE@am__DEPENDENCIES_33 = $(am__DEPENDENCIES_32) +@EXTRA_PROGRAMS_TRUE@tests_test_opus_projection_DEPENDENCIES = \ +@EXTRA_PROGRAMS_TRUE@ $(am__DEPENDENCIES_33) \ +@EXTRA_PROGRAMS_TRUE@ $(am__DEPENDENCIES_29) \ +@EXTRA_PROGRAMS_TRUE@ $(am__DEPENDENCIES_15) \ +@EXTRA_PROGRAMS_TRUE@ $(am__DEPENDENCIES_1) \ +@EXTRA_PROGRAMS_TRUE@ $(am__DEPENDENCIES_1) $(am__append_16) +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = +DEFAULT_INCLUDES = -I.@am__isrc@ +depcomp = $(SHELL) $(top_srcdir)/depcomp +am__depfiles_maybe = depfiles +am__mv = mv -f +CPPASCOMPILE = $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CCASFLAGS) $(CCASFLAGS) +LTCPPASCOMPILE = $(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CCASFLAGS) $(CCASFLAGS) +AM_V_CPPAS = $(am__v_CPPAS_@AM_V@) +am__v_CPPAS_ = $(am__v_CPPAS_@AM_DEFAULT_V@) +am__v_CPPAS_0 = @echo " CPPAS " $@; +am__v_CPPAS_1 = +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CFLAGS) $(CFLAGS) +AM_V_CC = $(am__v_CC_@AM_V@) +am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) +am__v_CC_0 = @echo " CC " $@; +am__v_CC_1 = +CCLD = $(CC) +LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CCLD = $(am__v_CCLD_@AM_V@) +am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) +am__v_CCLD_0 = @echo " CCLD " $@; +am__v_CCLD_1 = +SOURCES = $(libarmasm_la_SOURCES) $(libopus_la_SOURCES) \ + $(celt_tests_test_unit_cwrs32_SOURCES) \ + $(celt_tests_test_unit_dft_SOURCES) \ + $(celt_tests_test_unit_entropy_SOURCES) \ + $(celt_tests_test_unit_laplace_SOURCES) \ + $(celt_tests_test_unit_mathops_SOURCES) \ + $(celt_tests_test_unit_mdct_SOURCES) \ + $(celt_tests_test_unit_rotation_SOURCES) \ + $(celt_tests_test_unit_types_SOURCES) $(opus_compare_SOURCES) \ + $(opus_custom_demo_SOURCES) $(opus_demo_SOURCES) \ + $(repacketizer_demo_SOURCES) \ + $(silk_tests_test_unit_LPC_inv_pred_gain_SOURCES) \ + $(tests_test_opus_api_SOURCES) \ + $(tests_test_opus_decode_SOURCES) \ + $(tests_test_opus_encode_SOURCES) \ + $(tests_test_opus_padding_SOURCES) \ + $(tests_test_opus_projection_SOURCES) +DIST_SOURCES = $(am__libarmasm_la_SOURCES_DIST) \ + $(am__libopus_la_SOURCES_DIST) \ + $(am__celt_tests_test_unit_cwrs32_SOURCES_DIST) \ + $(am__celt_tests_test_unit_dft_SOURCES_DIST) \ + $(am__celt_tests_test_unit_entropy_SOURCES_DIST) \ + $(am__celt_tests_test_unit_laplace_SOURCES_DIST) \ + $(am__celt_tests_test_unit_mathops_SOURCES_DIST) \ + $(am__celt_tests_test_unit_mdct_SOURCES_DIST) \ + $(am__celt_tests_test_unit_rotation_SOURCES_DIST) \ + $(am__celt_tests_test_unit_types_SOURCES_DIST) \ + $(am__opus_compare_SOURCES_DIST) \ + $(am__opus_custom_demo_SOURCES_DIST) \ + $(am__opus_demo_SOURCES_DIST) \ + $(am__repacketizer_demo_SOURCES_DIST) \ + $(am__silk_tests_test_unit_LPC_inv_pred_gain_SOURCES_DIST) \ + $(am__tests_test_opus_api_SOURCES_DIST) \ + $(am__tests_test_opus_decode_SOURCES_DIST) \ + $(am__tests_test_opus_encode_SOURCES_DIST) \ + $(am__tests_test_opus_padding_SOURCES_DIST) \ + $(am__tests_test_opus_projection_SOURCES_DIST) +RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ + ctags-recursive dvi-recursive html-recursive info-recursive \ + install-data-recursive install-dvi-recursive \ + install-exec-recursive install-html-recursive \ + install-info-recursive install-pdf-recursive \ + install-ps-recursive install-recursive installcheck-recursive \ + installdirs-recursive pdf-recursive ps-recursive \ + tags-recursive uninstall-recursive +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +DATA = $(m4data_DATA) $(pkgconfig_DATA) +am__pkginclude_HEADERS_DIST = include/opus.h \ + include/opus_multistream.h include/opus_types.h \ + include/opus_defines.h include/opus_projection.h \ + include/opus_custom.h +HEADERS = $(noinst_HEADERS) $(pkginclude_HEADERS) +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ + distclean-recursive maintainer-clean-recursive +am__recursive_targets = \ + $(RECURSIVE_TARGETS) \ + $(RECURSIVE_CLEAN_TARGETS) \ + $(am__extra_recursive_targets) +AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ + cscope check recheck distdir dist dist-all distcheck +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \ + $(LISP)config.h.in +# Read a list of newline-separated strings from the standard input, +# and print each of them once, without duplicates. Input order is +# *not* preserved. +am__uniquify_input = $(AWK) '\ + BEGIN { nonempty = 0; } \ + { items[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in items) print i; }; } \ +' +# Make sure the list of sources is unique. This is necessary because, +# e.g., the same source file might be shared among _SOURCES variables +# for different programs/libraries. +am__define_uniq_tagged_files = \ + list='$(am__tagged_files)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | $(am__uniquify_input)` +ETAGS = etags +CTAGS = ctags +CSCOPE = cscope +am__tty_colors_dummy = \ + mgn= red= grn= lgn= blu= brg= std=; \ + am__color_tests=no +am__tty_colors = { \ + $(am__tty_colors_dummy); \ + if test "X$(AM_COLOR_TESTS)" = Xno; then \ + am__color_tests=no; \ + elif test "X$(AM_COLOR_TESTS)" = Xalways; then \ + am__color_tests=yes; \ + elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \ + am__color_tests=yes; \ + fi; \ + if test $$am__color_tests = yes; then \ + red=''; \ + grn=''; \ + lgn=''; \ + blu=''; \ + mgn=''; \ + brg=''; \ + std=''; \ + fi; \ +} +am__recheck_rx = ^[ ]*:recheck:[ ]* +am__global_test_result_rx = ^[ ]*:global-test-result:[ ]* +am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]* +# A command that, given a newline-separated list of test names on the +# standard input, print the name of the tests that are to be re-run +# upon "make recheck". +am__list_recheck_tests = $(AWK) '{ \ + recheck = 1; \ + while ((rc = (getline line < ($$0 ".trs"))) != 0) \ + { \ + if (rc < 0) \ + { \ + if ((getline line2 < ($$0 ".log")) < 0) \ + recheck = 0; \ + break; \ + } \ + else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \ + { \ + recheck = 0; \ + break; \ + } \ + else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \ + { \ + break; \ + } \ + }; \ + if (recheck) \ + print $$0; \ + close ($$0 ".trs"); \ + close ($$0 ".log"); \ +}' +# A command that, given a newline-separated list of test names on the +# standard input, create the global log from their .trs and .log files. +am__create_global_log = $(AWK) ' \ +function fatal(msg) \ +{ \ + print "fatal: making $@: " msg | "cat >&2"; \ + exit 1; \ +} \ +function rst_section(header) \ +{ \ + print header; \ + len = length(header); \ + for (i = 1; i <= len; i = i + 1) \ + printf "="; \ + printf "\n\n"; \ +} \ +{ \ + copy_in_global_log = 1; \ + global_test_result = "RUN"; \ + while ((rc = (getline line < ($$0 ".trs"))) != 0) \ + { \ + if (rc < 0) \ + fatal("failed to read from " $$0 ".trs"); \ + if (line ~ /$(am__global_test_result_rx)/) \ + { \ + sub("$(am__global_test_result_rx)", "", line); \ + sub("[ ]*$$", "", line); \ + global_test_result = line; \ + } \ + else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \ + copy_in_global_log = 0; \ + }; \ + if (copy_in_global_log) \ + { \ + rst_section(global_test_result ": " $$0); \ + while ((rc = (getline line < ($$0 ".log"))) != 0) \ + { \ + if (rc < 0) \ + fatal("failed to read from " $$0 ".log"); \ + print line; \ + }; \ + printf "\n"; \ + }; \ + close ($$0 ".trs"); \ + close ($$0 ".log"); \ +}' +# Restructured Text title. +am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; } +# Solaris 10 'make', and several other traditional 'make' implementations, +# pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it +# by disabling -e (using the XSI extension "set +e") if it's set. +am__sh_e_setup = case $$- in *e*) set +e;; esac +# Default flags passed to test drivers. +am__common_driver_flags = \ + --color-tests "$$am__color_tests" \ + --enable-hard-errors "$$am__enable_hard_errors" \ + --expect-failure "$$am__expect_failure" +# To be inserted before the command running the test. Creates the +# directory for the log if needed. Stores in $dir the directory +# containing $f, in $tst the test, in $log the log. Executes the +# developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and +# passes TESTS_ENVIRONMENT. Set up options for the wrapper that +# will run the test scripts (or their associated LOG_COMPILER, if +# thy have one). +am__check_pre = \ +$(am__sh_e_setup); \ +$(am__vpath_adj_setup) $(am__vpath_adj) \ +$(am__tty_colors); \ +srcdir=$(srcdir); export srcdir; \ +case "$@" in \ + */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \ + *) am__odir=.;; \ +esac; \ +test "x$$am__odir" = x"." || test -d "$$am__odir" \ + || $(MKDIR_P) "$$am__odir" || exit $$?; \ +if test -f "./$$f"; then dir=./; \ +elif test -f "$$f"; then dir=; \ +else dir="$(srcdir)/"; fi; \ +tst=$$dir$$f; log='$@'; \ +if test -n '$(DISABLE_HARD_ERRORS)'; then \ + am__enable_hard_errors=no; \ +else \ + am__enable_hard_errors=yes; \ +fi; \ +case " $(XFAIL_TESTS) " in \ + *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \ + am__expect_failure=yes;; \ + *) \ + am__expect_failure=no;; \ +esac; \ +$(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT) +# A shell command to get the names of the tests scripts with any registered +# extension removed (i.e., equivalently, the names of the test logs, with +# the '.log' extension removed). The result is saved in the shell variable +# '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly, +# we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)", +# since that might cause problem with VPATH rewrites for suffix-less tests. +# See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'. +am__set_TESTS_bases = \ + bases='$(TEST_LOGS)'; \ + bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ + bases=`echo $$bases` +RECHECK_LOGS = $(TEST_LOGS) +TEST_SUITE_LOG = test-suite.log +TEST_EXTENSIONS = @EXEEXT@ .test +LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver +LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS) +am__set_b = \ + case '$@' in \ + */*) \ + case '$*' in \ + */*) b='$*';; \ + *) b=`echo '$@' | sed 's/\.log$$//'`; \ + esac;; \ + *) \ + b='$*';; \ + esac +am__test_logs1 = $(TESTS:=.log) +am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log) +TEST_LOGS = $(am__test_logs2:.test.log=.log) +TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver +TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \ + $(TEST_LOG_FLAGS) +am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/celt_headers.mk \ + $(srcdir)/celt_sources.mk $(srcdir)/config.h.in \ + $(srcdir)/opus-uninstalled.pc.in $(srcdir)/opus.pc.in \ + $(srcdir)/opus_headers.mk $(srcdir)/opus_sources.mk \ + $(srcdir)/silk_headers.mk $(srcdir)/silk_sources.mk \ + $(top_srcdir)/celt/arm/armopts.s.in AUTHORS COPYING ChangeLog \ + INSTALL NEWS README compile config.guess config.sub depcomp \ + install-sh ltmain.sh missing test-driver +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +distdir = $(PACKAGE)-$(VERSION) +top_distdir = $(distdir) +am__remove_distdir = \ + if test -d "$(distdir)"; then \ + find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ + && rm -rf "$(distdir)" \ + || { sleep 5 && rm -rf "$(distdir)"; }; \ + else :; fi +am__post_remove_distdir = $(am__remove_distdir) +am__relativize = \ + dir0=`pwd`; \ + sed_first='s,^\([^/]*\)/.*$$,\1,'; \ + sed_rest='s,^[^/]*/*,,'; \ + sed_last='s,^.*/\([^/]*\)$$,\1,'; \ + sed_butlast='s,/*[^/]*$$,,'; \ + while test -n "$$dir1"; do \ + first=`echo "$$dir1" | sed -e "$$sed_first"`; \ + if test "$$first" != "."; then \ + if test "$$first" = ".."; then \ + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ + else \ + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ + if test "$$first2" = "$$first"; then \ + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ + else \ + dir2="../$$dir2"; \ + fi; \ + dir0="$$dir0"/"$$first"; \ + fi; \ + fi; \ + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ + done; \ + reldir="$$dir2" +DIST_ARCHIVES = $(distdir).tar.gz +GZIP_ENV = --best +DIST_TARGETS = dist-gzip +distuninstallcheck_listfiles = find . -type f -print +am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ + | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' +distcleancheck_listfiles = find . -type f -print +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +AR = @AR@ +ARM2GNU_PARAMS = @ARM2GNU_PARAMS@ +ARM_NEON_INTR_CFLAGS = @ARM_NEON_INTR_CFLAGS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCAS = @CCAS@ +CCASDEPMODE = @CCASDEPMODE@ +CCASFLAGS = @CCASFLAGS@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +FGREP = @FGREP@ +GREP = @GREP@ +HAVE_ARM_NE10 = @HAVE_ARM_NE10@ +HAVE_DOT = @HAVE_DOT@ +HAVE_DOXYGEN = @HAVE_DOXYGEN@ +HAVE_PERL = @HAVE_PERL@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBM = @LIBM@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MKDIR_P = @MKDIR_P@ +NE10_CFLAGS = @NE10_CFLAGS@ +NE10_LIBS = @NE10_LIBS@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OPUS_ARM_MAY_HAVE_EDSP = @OPUS_ARM_MAY_HAVE_EDSP@ +OPUS_ARM_MAY_HAVE_MEDIA = @OPUS_ARM_MAY_HAVE_MEDIA@ +OPUS_ARM_MAY_HAVE_NEON = @OPUS_ARM_MAY_HAVE_NEON@ +OPUS_ARM_NEON_INTR_CFLAGS = @OPUS_ARM_NEON_INTR_CFLAGS@ +OPUS_HAVE_RTCD = @OPUS_HAVE_RTCD@ +OPUS_LT_AGE = @OPUS_LT_AGE@ +OPUS_LT_CURRENT = @OPUS_LT_CURRENT@ +OPUS_LT_REVISION = @OPUS_LT_REVISION@ +OPUS_X86_AVX_CFLAGS = @OPUS_X86_AVX_CFLAGS@ +OPUS_X86_SSE2_CFLAGS = @OPUS_X86_SSE2_CFLAGS@ +OPUS_X86_SSE4_1_CFLAGS = @OPUS_X86_SSE4_1_CFLAGS@ +OPUS_X86_SSE_CFLAGS = @OPUS_X86_SSE_CFLAGS@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PC_BUILD = @PC_BUILD@ +RANLIB = @RANLIB@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +X86_AVX_CFLAGS = @X86_AVX_CFLAGS@ +X86_SSE2_CFLAGS = @X86_SSE2_CFLAGS@ +X86_SSE4_1_CFLAGS = @X86_SSE4_1_CFLAGS@ +X86_SSE_CFLAGS = @X86_SSE_CFLAGS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +AUTOMAKE_OPTIONS = subdir-objects +ACLOCAL_AMFLAGS = -I m4 +lib_LTLIBRARIES = libopus.la +DIST_SUBDIRS = doc +AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/celt -I$(top_srcdir)/silk \ + -I$(top_srcdir)/silk/float -I$(top_srcdir)/silk/fixed $(NE10_CFLAGS) + +CELT_SOURCES = celt/bands.c celt/celt.c celt/celt_encoder.c \ + celt/celt_decoder.c celt/cwrs.c celt/entcode.c celt/entdec.c \ + celt/entenc.c celt/kiss_fft.c celt/laplace.c celt/mathops.c \ + celt/mdct.c celt/modes.c celt/pitch.c celt/celt_lpc.c \ + celt/quant_bands.c celt/rate.c celt/vq.c $(am__append_7) \ + $(am__append_8) $(am__append_9) $(am__append_10) \ + $(am__append_12) $(am__append_14) +CELT_SOURCES_SSE = \ +celt/x86/x86cpu.c \ +celt/x86/x86_celt_map.c \ +celt/x86/pitch_sse.c + +CELT_SOURCES_SSE2 = \ +celt/x86/pitch_sse2.c \ +celt/x86/vq_sse2.c + +CELT_SOURCES_SSE4_1 = \ +celt/x86/celt_lpc_sse4_1.c \ +celt/x86/pitch_sse4_1.c + +CELT_SOURCES_ARM = \ +celt/arm/armcpu.c \ +celt/arm/arm_celt_map.c + +CELT_SOURCES_ARM_ASM = \ +celt/arm/celt_pitch_xcorr_arm.s + +CELT_AM_SOURCES_ARM_ASM = \ +celt/arm/armopts.s.in + +CELT_SOURCES_ARM_NEON_INTR = \ +celt/arm/celt_neon_intr.c \ +celt/arm/pitch_neon_intr.c + +CELT_SOURCES_ARM_NE10 = \ +celt/arm/celt_fft_ne10.c \ +celt/arm/celt_mdct_ne10.c + +SILK_SOURCES = silk/CNG.c silk/code_signs.c silk/init_decoder.c \ + silk/decode_core.c silk/decode_frame.c \ + silk/decode_parameters.c silk/decode_indices.c \ + silk/decode_pulses.c silk/decoder_set_fs.c silk/dec_API.c \ + silk/enc_API.c silk/encode_indices.c silk/encode_pulses.c \ + silk/gain_quant.c silk/interpolate.c silk/LP_variable_cutoff.c \ + silk/NLSF_decode.c silk/NSQ.c silk/NSQ_del_dec.c silk/PLC.c \ + silk/shell_coder.c silk/tables_gain.c silk/tables_LTP.c \ + silk/tables_NLSF_CB_NB_MB.c silk/tables_NLSF_CB_WB.c \ + silk/tables_other.c silk/tables_pitch_lag.c \ + silk/tables_pulses_per_block.c silk/VAD.c \ + silk/control_audio_bandwidth.c silk/quant_LTP_gains.c \ + silk/VQ_WMat_EC.c silk/HP_variable_cutoff.c silk/NLSF_encode.c \ + silk/NLSF_VQ.c silk/NLSF_unpack.c silk/NLSF_del_dec_quant.c \ + silk/process_NLSFs.c silk/stereo_LR_to_MS.c \ + silk/stereo_MS_to_LR.c silk/check_control_input.c \ + silk/control_SNR.c silk/init_encoder.c silk/control_codec.c \ + silk/A2NLSF.c silk/ana_filt_bank_1.c silk/biquad_alt.c \ + silk/bwexpander_32.c silk/bwexpander.c silk/debug.c \ + silk/decode_pitch.c silk/inner_prod_aligned.c silk/lin2log.c \ + silk/log2lin.c silk/LPC_analysis_filter.c \ + silk/LPC_inv_pred_gain.c silk/table_LSF_cos.c silk/NLSF2A.c \ + silk/NLSF_stabilize.c silk/NLSF_VQ_weights_laroia.c \ + silk/pitch_est_tables.c silk/resampler.c \ + silk/resampler_down2_3.c silk/resampler_down2.c \ + silk/resampler_private_AR2.c silk/resampler_private_down_FIR.c \ + silk/resampler_private_IIR_FIR.c \ + silk/resampler_private_up2_HQ.c silk/resampler_rom.c \ + silk/sigm_Q15.c silk/sort.c silk/sum_sqr_shift.c \ + silk/stereo_decode_pred.c silk/stereo_encode_pred.c \ + silk/stereo_find_predictor.c silk/stereo_quant_pred.c \ + silk/LPC_fit.c $(am__append_1) $(am__append_2) $(am__append_3) \ + $(am__append_4) $(am__append_5) $(am__append_11) \ + $(am__append_13) +SILK_SOURCES_SSE4_1 = \ +silk/x86/NSQ_sse4_1.c \ +silk/x86/NSQ_del_dec_sse4_1.c \ +silk/x86/x86_silk_map.c \ +silk/x86/VAD_sse4_1.c \ +silk/x86/VQ_WMat_EC_sse4_1.c + +SILK_SOURCES_ARM_NEON_INTR = \ +silk/arm/arm_silk_map.c \ +silk/arm/biquad_alt_neon_intr.c \ +silk/arm/LPC_inv_pred_gain_neon_intr.c \ +silk/arm/NSQ_del_dec_neon_intr.c \ +silk/arm/NSQ_neon.c + +SILK_SOURCES_FIXED = \ +silk/fixed/LTP_analysis_filter_FIX.c \ +silk/fixed/LTP_scale_ctrl_FIX.c \ +silk/fixed/corrMatrix_FIX.c \ +silk/fixed/encode_frame_FIX.c \ +silk/fixed/find_LPC_FIX.c \ +silk/fixed/find_LTP_FIX.c \ +silk/fixed/find_pitch_lags_FIX.c \ +silk/fixed/find_pred_coefs_FIX.c \ +silk/fixed/noise_shape_analysis_FIX.c \ +silk/fixed/process_gains_FIX.c \ +silk/fixed/regularize_correlations_FIX.c \ +silk/fixed/residual_energy16_FIX.c \ +silk/fixed/residual_energy_FIX.c \ +silk/fixed/warped_autocorrelation_FIX.c \ +silk/fixed/apply_sine_window_FIX.c \ +silk/fixed/autocorr_FIX.c \ +silk/fixed/burg_modified_FIX.c \ +silk/fixed/k2a_FIX.c \ +silk/fixed/k2a_Q16_FIX.c \ +silk/fixed/pitch_analysis_core_FIX.c \ +silk/fixed/vector_ops_FIX.c \ +silk/fixed/schur64_FIX.c \ +silk/fixed/schur_FIX.c + +SILK_SOURCES_FIXED_SSE4_1 = \ +silk/fixed/x86/vector_ops_FIX_sse4_1.c \ +silk/fixed/x86/burg_modified_FIX_sse4_1.c + +SILK_SOURCES_FIXED_ARM_NEON_INTR = \ +silk/fixed/arm/warped_autocorrelation_FIX_neon_intr.c + +SILK_SOURCES_FLOAT = \ +silk/float/apply_sine_window_FLP.c \ +silk/float/corrMatrix_FLP.c \ +silk/float/encode_frame_FLP.c \ +silk/float/find_LPC_FLP.c \ +silk/float/find_LTP_FLP.c \ +silk/float/find_pitch_lags_FLP.c \ +silk/float/find_pred_coefs_FLP.c \ +silk/float/LPC_analysis_filter_FLP.c \ +silk/float/LTP_analysis_filter_FLP.c \ +silk/float/LTP_scale_ctrl_FLP.c \ +silk/float/noise_shape_analysis_FLP.c \ +silk/float/process_gains_FLP.c \ +silk/float/regularize_correlations_FLP.c \ +silk/float/residual_energy_FLP.c \ +silk/float/warped_autocorrelation_FLP.c \ +silk/float/wrappers_FLP.c \ +silk/float/autocorrelation_FLP.c \ +silk/float/burg_modified_FLP.c \ +silk/float/bwexpander_FLP.c \ +silk/float/energy_FLP.c \ +silk/float/inner_product_FLP.c \ +silk/float/k2a_FLP.c \ +silk/float/LPC_inv_pred_gain_FLP.c \ +silk/float/pitch_analysis_core_FLP.c \ +silk/float/scale_copy_vector_FLP.c \ +silk/float/scale_vector_FLP.c \ +silk/float/schur_FLP.c \ +silk/float/sort_FLP.c + +OPUS_SOURCES = src/opus.c src/opus_decoder.c src/opus_encoder.c \ + src/opus_multistream.c src/opus_multistream_encoder.c \ + src/opus_multistream_decoder.c src/repacketizer.c \ + src/opus_projection_encoder.c src/opus_projection_decoder.c \ + src/mapping_matrix.c $(am__append_6) +OPUS_SOURCES_FLOAT = \ +src/analysis.c \ +src/mlp.c \ +src/mlp_data.c + +@CPU_ARM_TRUE@@OPUS_ARM_EXTERNAL_ASM_TRUE@noinst_LTLIBRARIES = libarmasm.la +@CPU_ARM_TRUE@@OPUS_ARM_EXTERNAL_ASM_TRUE@libarmasm_la_SOURCES = $(CELT_SOURCES_ARM_ASM:.s=-gnu.S) +@CPU_ARM_TRUE@@OPUS_ARM_EXTERNAL_ASM_TRUE@BUILT_SOURCES = $(CELT_SOURCES_ARM_ASM:.s=-gnu.S) \ +@CPU_ARM_TRUE@@OPUS_ARM_EXTERNAL_ASM_TRUE@ $(CELT_AM_SOURCES_ARM_ASM:.s.in=.s) \ +@CPU_ARM_TRUE@@OPUS_ARM_EXTERNAL_ASM_TRUE@ $(CELT_AM_SOURCES_ARM_ASM:.s.in=-gnu.S) + +CLEANFILES = $(CELT_SOURCES_ARM_ASM:.s=-gnu.S) \ + $(CELT_AM_SOURCES_ARM_ASM:.s.in=-gnu.S) + +CELT_HEAD = \ +celt/arch.h \ +celt/bands.h \ +celt/celt.h \ +celt/cpu_support.h \ +include/opus_types.h \ +include/opus_defines.h \ +include/opus_custom.h \ +celt/cwrs.h \ +celt/ecintrin.h \ +celt/entcode.h \ +celt/entdec.h \ +celt/entenc.h \ +celt/fixed_debug.h \ +celt/fixed_generic.h \ +celt/float_cast.h \ +celt/_kiss_fft_guts.h \ +celt/kiss_fft.h \ +celt/laplace.h \ +celt/mathops.h \ +celt/mdct.h \ +celt/mfrngcod.h \ +celt/modes.h \ +celt/os_support.h \ +celt/pitch.h \ +celt/celt_lpc.h \ +celt/x86/celt_lpc_sse.h \ +celt/quant_bands.h \ +celt/rate.h \ +celt/stack_alloc.h \ +celt/vq.h \ +celt/static_modes_float.h \ +celt/static_modes_fixed.h \ +celt/static_modes_float_arm_ne10.h \ +celt/static_modes_fixed_arm_ne10.h \ +celt/arm/armcpu.h \ +celt/arm/fixed_armv4.h \ +celt/arm/fixed_armv5e.h \ +celt/arm/fixed_arm64.h \ +celt/arm/kiss_fft_armv4.h \ +celt/arm/kiss_fft_armv5e.h \ +celt/arm/pitch_arm.h \ +celt/arm/fft_arm.h \ +celt/arm/mdct_arm.h \ +celt/mips/celt_mipsr1.h \ +celt/mips/fixed_generic_mipsr1.h \ +celt/mips/kiss_fft_mipsr1.h \ +celt/mips/mdct_mipsr1.h \ +celt/mips/pitch_mipsr1.h \ +celt/mips/vq_mipsr1.h \ +celt/x86/pitch_sse.h \ +celt/x86/vq_sse.h \ +celt/x86/x86cpu.h + +SILK_HEAD = \ +silk/debug.h \ +silk/control.h \ +silk/errors.h \ +silk/API.h \ +silk/typedef.h \ +silk/define.h \ +silk/main.h \ +silk/x86/main_sse.h \ +silk/PLC.h \ +silk/structs.h \ +silk/tables.h \ +silk/tuning_parameters.h \ +silk/Inlines.h \ +silk/MacroCount.h \ +silk/MacroDebug.h \ +silk/macros.h \ +silk/NSQ.h \ +silk/pitch_est_defines.h \ +silk/resampler_private.h \ +silk/resampler_rom.h \ +silk/resampler_structs.h \ +silk/SigProc_FIX.h \ +silk/x86/SigProc_FIX_sse.h \ +silk/arm/biquad_alt_arm.h \ +silk/arm/LPC_inv_pred_gain_arm.h \ +silk/arm/macros_armv4.h \ +silk/arm/macros_armv5e.h \ +silk/arm/macros_arm64.h \ +silk/arm/SigProc_FIX_armv4.h \ +silk/arm/SigProc_FIX_armv5e.h \ +silk/arm/NSQ_del_dec_arm.h \ +silk/arm/NSQ_neon.h \ +silk/fixed/main_FIX.h \ +silk/fixed/structs_FIX.h \ +silk/fixed/arm/warped_autocorrelation_FIX_arm.h \ +silk/fixed/mips/noise_shape_analysis_FIX_mipsr1.h \ +silk/fixed/mips/warped_autocorrelation_FIX_mipsr1.h \ +silk/float/main_FLP.h \ +silk/float/structs_FLP.h \ +silk/float/SigProc_FLP.h \ +silk/mips/macros_mipsr1.h \ +silk/mips/NSQ_del_dec_mipsr1.h \ +silk/mips/sigproc_fix_mipsr1.h + +OPUS_HEAD = \ +include/opus.h \ +include/opus_multistream.h \ +include/opus_projection.h \ +src/opus_private.h \ +src/analysis.h \ +src/mapping_matrix.h \ +src/mlp.h \ +src/tansig_table.h + +libopus_la_SOURCES = $(CELT_SOURCES) $(SILK_SOURCES) $(OPUS_SOURCES) +libopus_la_LDFLAGS = -no-undefined -version-info @OPUS_LT_CURRENT@:@OPUS_LT_REVISION@:@OPUS_LT_AGE@ +libopus_la_LIBADD = $(NE10_LIBS) $(LIBM) $(am__append_15) +pkginclude_HEADERS = include/opus.h include/opus_multistream.h \ + include/opus_types.h include/opus_defines.h \ + include/opus_projection.h $(am__append_22) +noinst_HEADERS = $(OPUS_HEAD) $(SILK_HEAD) $(CELT_HEAD) +@EXTRA_PROGRAMS_TRUE@opus_demo_SOURCES = src/opus_demo.c +@EXTRA_PROGRAMS_TRUE@opus_demo_LDADD = libopus.la $(NE10_LIBS) $(LIBM) +@EXTRA_PROGRAMS_TRUE@repacketizer_demo_SOURCES = src/repacketizer_demo.c +@EXTRA_PROGRAMS_TRUE@repacketizer_demo_LDADD = libopus.la $(NE10_LIBS) $(LIBM) +@EXTRA_PROGRAMS_TRUE@opus_compare_SOURCES = src/opus_compare.c +@EXTRA_PROGRAMS_TRUE@opus_compare_LDADD = $(LIBM) +@EXTRA_PROGRAMS_TRUE@tests_test_opus_api_SOURCES = tests/test_opus_api.c tests/test_opus_common.h +@EXTRA_PROGRAMS_TRUE@tests_test_opus_api_LDADD = libopus.la $(NE10_LIBS) $(LIBM) +@EXTRA_PROGRAMS_TRUE@tests_test_opus_encode_SOURCES = tests/test_opus_encode.c tests/opus_encode_regressions.c tests/test_opus_common.h +@EXTRA_PROGRAMS_TRUE@tests_test_opus_encode_LDADD = libopus.la $(NE10_LIBS) $(LIBM) +@EXTRA_PROGRAMS_TRUE@tests_test_opus_decode_SOURCES = tests/test_opus_decode.c tests/test_opus_common.h +@EXTRA_PROGRAMS_TRUE@tests_test_opus_decode_LDADD = libopus.la $(NE10_LIBS) $(LIBM) +@EXTRA_PROGRAMS_TRUE@tests_test_opus_padding_SOURCES = tests/test_opus_padding.c tests/test_opus_common.h +@EXTRA_PROGRAMS_TRUE@tests_test_opus_padding_LDADD = libopus.la $(NE10_LIBS) $(LIBM) +@EXTRA_PROGRAMS_TRUE@CELT_OBJ = $(CELT_SOURCES:.c=.lo) +@EXTRA_PROGRAMS_TRUE@SILK_OBJ = $(SILK_SOURCES:.c=.lo) +@EXTRA_PROGRAMS_TRUE@OPUS_OBJ = $(OPUS_SOURCES:.c=.lo) +@EXTRA_PROGRAMS_TRUE@tests_test_opus_projection_SOURCES = tests/test_opus_projection.c tests/test_opus_common.h +@EXTRA_PROGRAMS_TRUE@tests_test_opus_projection_LDADD = $(OPUS_OBJ) \ +@EXTRA_PROGRAMS_TRUE@ $(SILK_OBJ) $(CELT_OBJ) $(NE10_LIBS) \ +@EXTRA_PROGRAMS_TRUE@ $(LIBM) $(am__append_16) +@EXTRA_PROGRAMS_TRUE@silk_tests_test_unit_LPC_inv_pred_gain_SOURCES = silk/tests/test_unit_LPC_inv_pred_gain.c +@EXTRA_PROGRAMS_TRUE@silk_tests_test_unit_LPC_inv_pred_gain_LDADD = \ +@EXTRA_PROGRAMS_TRUE@ $(SILK_OBJ) $(CELT_OBJ) $(NE10_LIBS) \ +@EXTRA_PROGRAMS_TRUE@ $(LIBM) $(am__append_17) +@EXTRA_PROGRAMS_TRUE@celt_tests_test_unit_cwrs32_SOURCES = celt/tests/test_unit_cwrs32.c +@EXTRA_PROGRAMS_TRUE@celt_tests_test_unit_cwrs32_LDADD = $(LIBM) +@EXTRA_PROGRAMS_TRUE@celt_tests_test_unit_dft_SOURCES = celt/tests/test_unit_dft.c +@EXTRA_PROGRAMS_TRUE@celt_tests_test_unit_dft_LDADD = $(CELT_OBJ) \ +@EXTRA_PROGRAMS_TRUE@ $(NE10_LIBS) $(LIBM) $(am__append_18) +@EXTRA_PROGRAMS_TRUE@celt_tests_test_unit_entropy_SOURCES = celt/tests/test_unit_entropy.c +@EXTRA_PROGRAMS_TRUE@celt_tests_test_unit_entropy_LDADD = $(LIBM) +@EXTRA_PROGRAMS_TRUE@celt_tests_test_unit_laplace_SOURCES = celt/tests/test_unit_laplace.c +@EXTRA_PROGRAMS_TRUE@celt_tests_test_unit_laplace_LDADD = $(LIBM) +@EXTRA_PROGRAMS_TRUE@celt_tests_test_unit_mathops_SOURCES = celt/tests/test_unit_mathops.c +@EXTRA_PROGRAMS_TRUE@celt_tests_test_unit_mathops_LDADD = $(CELT_OBJ) \ +@EXTRA_PROGRAMS_TRUE@ $(NE10_LIBS) $(LIBM) $(am__append_19) +@EXTRA_PROGRAMS_TRUE@celt_tests_test_unit_mdct_SOURCES = celt/tests/test_unit_mdct.c +@EXTRA_PROGRAMS_TRUE@celt_tests_test_unit_mdct_LDADD = $(CELT_OBJ) \ +@EXTRA_PROGRAMS_TRUE@ $(NE10_LIBS) $(LIBM) $(am__append_20) +@EXTRA_PROGRAMS_TRUE@celt_tests_test_unit_rotation_SOURCES = celt/tests/test_unit_rotation.c +@EXTRA_PROGRAMS_TRUE@celt_tests_test_unit_rotation_LDADD = \ +@EXTRA_PROGRAMS_TRUE@ $(CELT_OBJ) $(NE10_LIBS) $(LIBM) \ +@EXTRA_PROGRAMS_TRUE@ $(am__append_21) +@EXTRA_PROGRAMS_TRUE@celt_tests_test_unit_types_SOURCES = celt/tests/test_unit_types.c +@EXTRA_PROGRAMS_TRUE@celt_tests_test_unit_types_LDADD = $(LIBM) +@CUSTOM_MODES_TRUE@@EXTRA_PROGRAMS_TRUE@opus_custom_demo_SOURCES = celt/opus_custom_demo.c +@CUSTOM_MODES_TRUE@@EXTRA_PROGRAMS_TRUE@opus_custom_demo_LDADD = libopus.la $(LIBM) +EXTRA_DIST = opus.pc.in \ + opus-uninstalled.pc.in \ + opus.m4 \ + Makefile.mips \ + Makefile.unix \ + CMakeLists.txt \ + config.h.cmake.in \ + opus_config.cmake \ + opus_functions.cmake \ + opus_sources.cmake \ + OpusConfig.cmake.in \ + tests/run_vectors.sh \ + celt/arm/arm2gnu.pl \ + celt/arm/celt_pitch_xcorr_arm.s \ + win32/VS2015/opus.vcxproj \ + win32/VS2015/test_opus_encode.vcxproj.filters \ + win32/VS2015/test_opus_encode.vcxproj \ + win32/VS2015/opus_demo.vcxproj \ + win32/VS2015/test_opus_api.vcxproj.filters \ + win32/VS2015/test_opus_api.vcxproj \ + win32/VS2015/test_opus_decode.vcxproj.filters \ + win32/VS2015/opus_demo.vcxproj.filters \ + win32/VS2015/opus.vcxproj.filters \ + win32/VS2015/test_opus_decode.vcxproj \ + win32/VS2015/opus.sln \ + win32/VS2015/common.props \ + win32/genversion.bat \ + win32/config.h + +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = opus.pc +m4datadir = $(datadir)/aclocal +m4data_DATA = opus.m4 +OPT_UNIT_TEST_OBJ = $(celt_tests_test_unit_mathops_SOURCES:.c=.o) \ + $(celt_tests_test_unit_rotation_SOURCES:.c=.o) \ + $(celt_tests_test_unit_mdct_SOURCES:.c=.o) \ + $(celt_tests_test_unit_dft_SOURCES:.c=.o) \ + $(silk_tests_test_unit_LPC_inv_pred_gain_SOURCES:.c=.o) + +@HAVE_SSE_TRUE@SSE_OBJ = $(CELT_SOURCES_SSE:.c=.lo) +@HAVE_SSE2_TRUE@SSE2_OBJ = $(CELT_SOURCES_SSE2:.c=.lo) +@HAVE_SSE4_1_TRUE@SSE4_1_OBJ = $(CELT_SOURCES_SSE4_1:.c=.lo) \ +@HAVE_SSE4_1_TRUE@ $(SILK_SOURCES_SSE4_1:.c=.lo) \ +@HAVE_SSE4_1_TRUE@ $(SILK_SOURCES_FIXED_SSE4_1:.c=.lo) + +@HAVE_ARM_NEON_INTR_TRUE@ARM_NEON_INTR_OBJ = $(CELT_SOURCES_ARM_NEON_INTR:.c=.lo) \ +@HAVE_ARM_NEON_INTR_TRUE@ $(SILK_SOURCES_ARM_NEON_INTR:.c=.lo) \ +@HAVE_ARM_NEON_INTR_TRUE@ $(SILK_SOURCES_FIXED_ARM_NEON_INTR:.c=.lo) + +all: $(BUILT_SOURCES) config.h + $(MAKE) $(AM_MAKEFLAGS) all-recursive + +.SUFFIXES: +.SUFFIXES: .S .c .lo .log .o .obj .test .test$(EXEEXT) .trs +am--refresh: Makefile + @: +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/celt_sources.mk $(srcdir)/silk_sources.mk $(srcdir)/opus_sources.mk $(srcdir)/celt_headers.mk $(srcdir)/silk_headers.mk $(srcdir)/opus_headers.mk $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ + $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + echo ' $(SHELL) ./config.status'; \ + $(SHELL) ./config.status;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ + esac; +$(srcdir)/celt_sources.mk $(srcdir)/silk_sources.mk $(srcdir)/opus_sources.mk $(srcdir)/celt_headers.mk $(srcdir)/silk_headers.mk $(srcdir)/opus_headers.mk $(am__empty): + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + $(SHELL) ./config.status --recheck + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + $(am__cd) $(srcdir) && $(AUTOCONF) +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) +$(am__aclocal_m4_deps): + +config.h: stamp-h1 + @test -f $@ || rm -f stamp-h1 + @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1 + +stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status + @rm -f stamp-h1 + cd $(top_builddir) && $(SHELL) ./config.status config.h +$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) + rm -f stamp-h1 + touch $@ + +distclean-hdr: + -rm -f config.h stamp-h1 +opus.pc: $(top_builddir)/config.status $(srcdir)/opus.pc.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +opus-uninstalled.pc: $(top_builddir)/config.status $(srcdir)/opus-uninstalled.pc.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +celt/arm/armopts.s: $(top_builddir)/config.status $(top_srcdir)/celt/arm/armopts.s.in + cd $(top_builddir) && $(SHELL) ./config.status $@ + +install-libLTLIBRARIES: $(lib_LTLIBRARIES) + @$(NORMAL_INSTALL) + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ + list2=; for p in $$list; do \ + if test -f $$p; then \ + list2="$$list2 $$p"; \ + else :; fi; \ + done; \ + test -z "$$list2" || { \ + echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ + } + +uninstall-libLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ + for p in $$list; do \ + $(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ + done + +clean-libLTLIBRARIES: + -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) + @list='$(lib_LTLIBRARIES)'; \ + locs=`for p in $$list; do echo $$p; done | \ + sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ + sort -u`; \ + test -z "$$locs" || { \ + echo rm -f $${locs}; \ + rm -f $${locs}; \ + } + +clean-noinstLTLIBRARIES: + -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) + @list='$(noinst_LTLIBRARIES)'; \ + locs=`for p in $$list; do echo $$p; done | \ + sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ + sort -u`; \ + test -z "$$locs" || { \ + echo rm -f $${locs}; \ + rm -f $${locs}; \ + } +celt/arm/$(am__dirstamp): + @$(MKDIR_P) celt/arm + @: > celt/arm/$(am__dirstamp) +celt/arm/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) celt/arm/$(DEPDIR) + @: > celt/arm/$(DEPDIR)/$(am__dirstamp) +celt/arm/celt_pitch_xcorr_arm-gnu.lo: celt/arm/$(am__dirstamp) \ + celt/arm/$(DEPDIR)/$(am__dirstamp) + +libarmasm.la: $(libarmasm_la_OBJECTS) $(libarmasm_la_DEPENDENCIES) $(EXTRA_libarmasm_la_DEPENDENCIES) + $(AM_V_CCLD)$(LINK) $(am_libarmasm_la_rpath) $(libarmasm_la_OBJECTS) $(libarmasm_la_LIBADD) $(LIBS) +celt/$(am__dirstamp): + @$(MKDIR_P) celt + @: > celt/$(am__dirstamp) +celt/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) celt/$(DEPDIR) + @: > celt/$(DEPDIR)/$(am__dirstamp) +celt/bands.lo: celt/$(am__dirstamp) celt/$(DEPDIR)/$(am__dirstamp) +celt/celt.lo: celt/$(am__dirstamp) celt/$(DEPDIR)/$(am__dirstamp) +celt/celt_encoder.lo: celt/$(am__dirstamp) \ + celt/$(DEPDIR)/$(am__dirstamp) +celt/celt_decoder.lo: celt/$(am__dirstamp) \ + celt/$(DEPDIR)/$(am__dirstamp) +celt/cwrs.lo: celt/$(am__dirstamp) celt/$(DEPDIR)/$(am__dirstamp) +celt/entcode.lo: celt/$(am__dirstamp) celt/$(DEPDIR)/$(am__dirstamp) +celt/entdec.lo: celt/$(am__dirstamp) celt/$(DEPDIR)/$(am__dirstamp) +celt/entenc.lo: celt/$(am__dirstamp) celt/$(DEPDIR)/$(am__dirstamp) +celt/kiss_fft.lo: celt/$(am__dirstamp) celt/$(DEPDIR)/$(am__dirstamp) +celt/laplace.lo: celt/$(am__dirstamp) celt/$(DEPDIR)/$(am__dirstamp) +celt/mathops.lo: celt/$(am__dirstamp) celt/$(DEPDIR)/$(am__dirstamp) +celt/mdct.lo: celt/$(am__dirstamp) celt/$(DEPDIR)/$(am__dirstamp) +celt/modes.lo: celt/$(am__dirstamp) celt/$(DEPDIR)/$(am__dirstamp) +celt/pitch.lo: celt/$(am__dirstamp) celt/$(DEPDIR)/$(am__dirstamp) +celt/celt_lpc.lo: celt/$(am__dirstamp) celt/$(DEPDIR)/$(am__dirstamp) +celt/quant_bands.lo: celt/$(am__dirstamp) \ + celt/$(DEPDIR)/$(am__dirstamp) +celt/rate.lo: celt/$(am__dirstamp) celt/$(DEPDIR)/$(am__dirstamp) +celt/vq.lo: celt/$(am__dirstamp) celt/$(DEPDIR)/$(am__dirstamp) +celt/x86/$(am__dirstamp): + @$(MKDIR_P) celt/x86 + @: > celt/x86/$(am__dirstamp) +celt/x86/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) celt/x86/$(DEPDIR) + @: > celt/x86/$(DEPDIR)/$(am__dirstamp) +celt/x86/x86cpu.lo: celt/x86/$(am__dirstamp) \ + celt/x86/$(DEPDIR)/$(am__dirstamp) +celt/x86/x86_celt_map.lo: celt/x86/$(am__dirstamp) \ + celt/x86/$(DEPDIR)/$(am__dirstamp) +celt/x86/pitch_sse.lo: celt/x86/$(am__dirstamp) \ + celt/x86/$(DEPDIR)/$(am__dirstamp) +celt/x86/pitch_sse2.lo: celt/x86/$(am__dirstamp) \ + celt/x86/$(DEPDIR)/$(am__dirstamp) +celt/x86/vq_sse2.lo: celt/x86/$(am__dirstamp) \ + celt/x86/$(DEPDIR)/$(am__dirstamp) +celt/x86/celt_lpc_sse4_1.lo: celt/x86/$(am__dirstamp) \ + celt/x86/$(DEPDIR)/$(am__dirstamp) +celt/x86/pitch_sse4_1.lo: celt/x86/$(am__dirstamp) \ + celt/x86/$(DEPDIR)/$(am__dirstamp) +celt/arm/armcpu.lo: celt/arm/$(am__dirstamp) \ + celt/arm/$(DEPDIR)/$(am__dirstamp) +celt/arm/arm_celt_map.lo: celt/arm/$(am__dirstamp) \ + celt/arm/$(DEPDIR)/$(am__dirstamp) +celt/arm/celt_neon_intr.lo: celt/arm/$(am__dirstamp) \ + celt/arm/$(DEPDIR)/$(am__dirstamp) +celt/arm/pitch_neon_intr.lo: celt/arm/$(am__dirstamp) \ + celt/arm/$(DEPDIR)/$(am__dirstamp) +celt/arm/celt_fft_ne10.lo: celt/arm/$(am__dirstamp) \ + celt/arm/$(DEPDIR)/$(am__dirstamp) +celt/arm/celt_mdct_ne10.lo: celt/arm/$(am__dirstamp) \ + celt/arm/$(DEPDIR)/$(am__dirstamp) +silk/$(am__dirstamp): + @$(MKDIR_P) silk + @: > silk/$(am__dirstamp) +silk/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) silk/$(DEPDIR) + @: > silk/$(DEPDIR)/$(am__dirstamp) +silk/CNG.lo: silk/$(am__dirstamp) silk/$(DEPDIR)/$(am__dirstamp) +silk/code_signs.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/init_decoder.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/decode_core.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/decode_frame.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/decode_parameters.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/decode_indices.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/decode_pulses.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/decoder_set_fs.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/dec_API.lo: silk/$(am__dirstamp) silk/$(DEPDIR)/$(am__dirstamp) +silk/enc_API.lo: silk/$(am__dirstamp) silk/$(DEPDIR)/$(am__dirstamp) +silk/encode_indices.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/encode_pulses.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/gain_quant.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/interpolate.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/LP_variable_cutoff.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/NLSF_decode.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/NSQ.lo: silk/$(am__dirstamp) silk/$(DEPDIR)/$(am__dirstamp) +silk/NSQ_del_dec.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/PLC.lo: silk/$(am__dirstamp) silk/$(DEPDIR)/$(am__dirstamp) +silk/shell_coder.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/tables_gain.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/tables_LTP.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/tables_NLSF_CB_NB_MB.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/tables_NLSF_CB_WB.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/tables_other.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/tables_pitch_lag.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/tables_pulses_per_block.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/VAD.lo: silk/$(am__dirstamp) silk/$(DEPDIR)/$(am__dirstamp) +silk/control_audio_bandwidth.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/quant_LTP_gains.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/VQ_WMat_EC.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/HP_variable_cutoff.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/NLSF_encode.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/NLSF_VQ.lo: silk/$(am__dirstamp) silk/$(DEPDIR)/$(am__dirstamp) +silk/NLSF_unpack.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/NLSF_del_dec_quant.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/process_NLSFs.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/stereo_LR_to_MS.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/stereo_MS_to_LR.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/check_control_input.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/control_SNR.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/init_encoder.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/control_codec.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/A2NLSF.lo: silk/$(am__dirstamp) silk/$(DEPDIR)/$(am__dirstamp) +silk/ana_filt_bank_1.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/biquad_alt.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/bwexpander_32.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/bwexpander.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/debug.lo: silk/$(am__dirstamp) silk/$(DEPDIR)/$(am__dirstamp) +silk/decode_pitch.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/inner_prod_aligned.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/lin2log.lo: silk/$(am__dirstamp) silk/$(DEPDIR)/$(am__dirstamp) +silk/log2lin.lo: silk/$(am__dirstamp) silk/$(DEPDIR)/$(am__dirstamp) +silk/LPC_analysis_filter.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/LPC_inv_pred_gain.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/table_LSF_cos.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/NLSF2A.lo: silk/$(am__dirstamp) silk/$(DEPDIR)/$(am__dirstamp) +silk/NLSF_stabilize.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/NLSF_VQ_weights_laroia.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/pitch_est_tables.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/resampler.lo: silk/$(am__dirstamp) silk/$(DEPDIR)/$(am__dirstamp) +silk/resampler_down2_3.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/resampler_down2.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/resampler_private_AR2.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/resampler_private_down_FIR.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/resampler_private_IIR_FIR.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/resampler_private_up2_HQ.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/resampler_rom.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/sigm_Q15.lo: silk/$(am__dirstamp) silk/$(DEPDIR)/$(am__dirstamp) +silk/sort.lo: silk/$(am__dirstamp) silk/$(DEPDIR)/$(am__dirstamp) +silk/sum_sqr_shift.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/stereo_decode_pred.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/stereo_encode_pred.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/stereo_find_predictor.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/stereo_quant_pred.lo: silk/$(am__dirstamp) \ + silk/$(DEPDIR)/$(am__dirstamp) +silk/LPC_fit.lo: silk/$(am__dirstamp) silk/$(DEPDIR)/$(am__dirstamp) +silk/fixed/$(am__dirstamp): + @$(MKDIR_P) silk/fixed + @: > silk/fixed/$(am__dirstamp) +silk/fixed/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) silk/fixed/$(DEPDIR) + @: > silk/fixed/$(DEPDIR)/$(am__dirstamp) +silk/fixed/LTP_analysis_filter_FIX.lo: silk/fixed/$(am__dirstamp) \ + silk/fixed/$(DEPDIR)/$(am__dirstamp) +silk/fixed/LTP_scale_ctrl_FIX.lo: silk/fixed/$(am__dirstamp) \ + silk/fixed/$(DEPDIR)/$(am__dirstamp) +silk/fixed/corrMatrix_FIX.lo: silk/fixed/$(am__dirstamp) \ + silk/fixed/$(DEPDIR)/$(am__dirstamp) +silk/fixed/encode_frame_FIX.lo: silk/fixed/$(am__dirstamp) \ + silk/fixed/$(DEPDIR)/$(am__dirstamp) +silk/fixed/find_LPC_FIX.lo: silk/fixed/$(am__dirstamp) \ + silk/fixed/$(DEPDIR)/$(am__dirstamp) +silk/fixed/find_LTP_FIX.lo: silk/fixed/$(am__dirstamp) \ + silk/fixed/$(DEPDIR)/$(am__dirstamp) +silk/fixed/find_pitch_lags_FIX.lo: silk/fixed/$(am__dirstamp) \ + silk/fixed/$(DEPDIR)/$(am__dirstamp) +silk/fixed/find_pred_coefs_FIX.lo: silk/fixed/$(am__dirstamp) \ + silk/fixed/$(DEPDIR)/$(am__dirstamp) +silk/fixed/noise_shape_analysis_FIX.lo: silk/fixed/$(am__dirstamp) \ + silk/fixed/$(DEPDIR)/$(am__dirstamp) +silk/fixed/process_gains_FIX.lo: silk/fixed/$(am__dirstamp) \ + silk/fixed/$(DEPDIR)/$(am__dirstamp) +silk/fixed/regularize_correlations_FIX.lo: silk/fixed/$(am__dirstamp) \ + silk/fixed/$(DEPDIR)/$(am__dirstamp) +silk/fixed/residual_energy16_FIX.lo: silk/fixed/$(am__dirstamp) \ + silk/fixed/$(DEPDIR)/$(am__dirstamp) +silk/fixed/residual_energy_FIX.lo: silk/fixed/$(am__dirstamp) \ + silk/fixed/$(DEPDIR)/$(am__dirstamp) +silk/fixed/warped_autocorrelation_FIX.lo: silk/fixed/$(am__dirstamp) \ + silk/fixed/$(DEPDIR)/$(am__dirstamp) +silk/fixed/apply_sine_window_FIX.lo: silk/fixed/$(am__dirstamp) \ + silk/fixed/$(DEPDIR)/$(am__dirstamp) +silk/fixed/autocorr_FIX.lo: silk/fixed/$(am__dirstamp) \ + silk/fixed/$(DEPDIR)/$(am__dirstamp) +silk/fixed/burg_modified_FIX.lo: silk/fixed/$(am__dirstamp) \ + silk/fixed/$(DEPDIR)/$(am__dirstamp) +silk/fixed/k2a_FIX.lo: silk/fixed/$(am__dirstamp) \ + silk/fixed/$(DEPDIR)/$(am__dirstamp) +silk/fixed/k2a_Q16_FIX.lo: silk/fixed/$(am__dirstamp) \ + silk/fixed/$(DEPDIR)/$(am__dirstamp) +silk/fixed/pitch_analysis_core_FIX.lo: silk/fixed/$(am__dirstamp) \ + silk/fixed/$(DEPDIR)/$(am__dirstamp) +silk/fixed/vector_ops_FIX.lo: silk/fixed/$(am__dirstamp) \ + silk/fixed/$(DEPDIR)/$(am__dirstamp) +silk/fixed/schur64_FIX.lo: silk/fixed/$(am__dirstamp) \ + silk/fixed/$(DEPDIR)/$(am__dirstamp) +silk/fixed/schur_FIX.lo: silk/fixed/$(am__dirstamp) \ + silk/fixed/$(DEPDIR)/$(am__dirstamp) +silk/x86/$(am__dirstamp): + @$(MKDIR_P) silk/x86 + @: > silk/x86/$(am__dirstamp) +silk/x86/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) silk/x86/$(DEPDIR) + @: > silk/x86/$(DEPDIR)/$(am__dirstamp) +silk/x86/NSQ_sse4_1.lo: silk/x86/$(am__dirstamp) \ + silk/x86/$(DEPDIR)/$(am__dirstamp) +silk/x86/NSQ_del_dec_sse4_1.lo: silk/x86/$(am__dirstamp) \ + silk/x86/$(DEPDIR)/$(am__dirstamp) +silk/x86/x86_silk_map.lo: silk/x86/$(am__dirstamp) \ + silk/x86/$(DEPDIR)/$(am__dirstamp) +silk/x86/VAD_sse4_1.lo: silk/x86/$(am__dirstamp) \ + silk/x86/$(DEPDIR)/$(am__dirstamp) +silk/x86/VQ_WMat_EC_sse4_1.lo: silk/x86/$(am__dirstamp) \ + silk/x86/$(DEPDIR)/$(am__dirstamp) +silk/fixed/x86/$(am__dirstamp): + @$(MKDIR_P) silk/fixed/x86 + @: > silk/fixed/x86/$(am__dirstamp) +silk/fixed/x86/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) silk/fixed/x86/$(DEPDIR) + @: > silk/fixed/x86/$(DEPDIR)/$(am__dirstamp) +silk/fixed/x86/vector_ops_FIX_sse4_1.lo: \ + silk/fixed/x86/$(am__dirstamp) \ + silk/fixed/x86/$(DEPDIR)/$(am__dirstamp) +silk/fixed/x86/burg_modified_FIX_sse4_1.lo: \ + silk/fixed/x86/$(am__dirstamp) \ + silk/fixed/x86/$(DEPDIR)/$(am__dirstamp) +silk/fixed/arm/$(am__dirstamp): + @$(MKDIR_P) silk/fixed/arm + @: > silk/fixed/arm/$(am__dirstamp) +silk/fixed/arm/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) silk/fixed/arm/$(DEPDIR) + @: > silk/fixed/arm/$(DEPDIR)/$(am__dirstamp) +silk/fixed/arm/warped_autocorrelation_FIX_neon_intr.lo: \ + silk/fixed/arm/$(am__dirstamp) \ + silk/fixed/arm/$(DEPDIR)/$(am__dirstamp) +silk/float/$(am__dirstamp): + @$(MKDIR_P) silk/float + @: > silk/float/$(am__dirstamp) +silk/float/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) silk/float/$(DEPDIR) + @: > silk/float/$(DEPDIR)/$(am__dirstamp) +silk/float/apply_sine_window_FLP.lo: silk/float/$(am__dirstamp) \ + silk/float/$(DEPDIR)/$(am__dirstamp) +silk/float/corrMatrix_FLP.lo: silk/float/$(am__dirstamp) \ + silk/float/$(DEPDIR)/$(am__dirstamp) +silk/float/encode_frame_FLP.lo: silk/float/$(am__dirstamp) \ + silk/float/$(DEPDIR)/$(am__dirstamp) +silk/float/find_LPC_FLP.lo: silk/float/$(am__dirstamp) \ + silk/float/$(DEPDIR)/$(am__dirstamp) +silk/float/find_LTP_FLP.lo: silk/float/$(am__dirstamp) \ + silk/float/$(DEPDIR)/$(am__dirstamp) +silk/float/find_pitch_lags_FLP.lo: silk/float/$(am__dirstamp) \ + silk/float/$(DEPDIR)/$(am__dirstamp) +silk/float/find_pred_coefs_FLP.lo: silk/float/$(am__dirstamp) \ + silk/float/$(DEPDIR)/$(am__dirstamp) +silk/float/LPC_analysis_filter_FLP.lo: silk/float/$(am__dirstamp) \ + silk/float/$(DEPDIR)/$(am__dirstamp) +silk/float/LTP_analysis_filter_FLP.lo: silk/float/$(am__dirstamp) \ + silk/float/$(DEPDIR)/$(am__dirstamp) +silk/float/LTP_scale_ctrl_FLP.lo: silk/float/$(am__dirstamp) \ + silk/float/$(DEPDIR)/$(am__dirstamp) +silk/float/noise_shape_analysis_FLP.lo: silk/float/$(am__dirstamp) \ + silk/float/$(DEPDIR)/$(am__dirstamp) +silk/float/process_gains_FLP.lo: silk/float/$(am__dirstamp) \ + silk/float/$(DEPDIR)/$(am__dirstamp) +silk/float/regularize_correlations_FLP.lo: silk/float/$(am__dirstamp) \ + silk/float/$(DEPDIR)/$(am__dirstamp) +silk/float/residual_energy_FLP.lo: silk/float/$(am__dirstamp) \ + silk/float/$(DEPDIR)/$(am__dirstamp) +silk/float/warped_autocorrelation_FLP.lo: silk/float/$(am__dirstamp) \ + silk/float/$(DEPDIR)/$(am__dirstamp) +silk/float/wrappers_FLP.lo: silk/float/$(am__dirstamp) \ + silk/float/$(DEPDIR)/$(am__dirstamp) +silk/float/autocorrelation_FLP.lo: silk/float/$(am__dirstamp) \ + silk/float/$(DEPDIR)/$(am__dirstamp) +silk/float/burg_modified_FLP.lo: silk/float/$(am__dirstamp) \ + silk/float/$(DEPDIR)/$(am__dirstamp) +silk/float/bwexpander_FLP.lo: silk/float/$(am__dirstamp) \ + silk/float/$(DEPDIR)/$(am__dirstamp) +silk/float/energy_FLP.lo: silk/float/$(am__dirstamp) \ + silk/float/$(DEPDIR)/$(am__dirstamp) +silk/float/inner_product_FLP.lo: silk/float/$(am__dirstamp) \ + silk/float/$(DEPDIR)/$(am__dirstamp) +silk/float/k2a_FLP.lo: silk/float/$(am__dirstamp) \ + silk/float/$(DEPDIR)/$(am__dirstamp) +silk/float/LPC_inv_pred_gain_FLP.lo: silk/float/$(am__dirstamp) \ + silk/float/$(DEPDIR)/$(am__dirstamp) +silk/float/pitch_analysis_core_FLP.lo: silk/float/$(am__dirstamp) \ + silk/float/$(DEPDIR)/$(am__dirstamp) +silk/float/scale_copy_vector_FLP.lo: silk/float/$(am__dirstamp) \ + silk/float/$(DEPDIR)/$(am__dirstamp) +silk/float/scale_vector_FLP.lo: silk/float/$(am__dirstamp) \ + silk/float/$(DEPDIR)/$(am__dirstamp) +silk/float/schur_FLP.lo: silk/float/$(am__dirstamp) \ + silk/float/$(DEPDIR)/$(am__dirstamp) +silk/float/sort_FLP.lo: silk/float/$(am__dirstamp) \ + silk/float/$(DEPDIR)/$(am__dirstamp) +silk/arm/$(am__dirstamp): + @$(MKDIR_P) silk/arm + @: > silk/arm/$(am__dirstamp) +silk/arm/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) silk/arm/$(DEPDIR) + @: > silk/arm/$(DEPDIR)/$(am__dirstamp) +silk/arm/arm_silk_map.lo: silk/arm/$(am__dirstamp) \ + silk/arm/$(DEPDIR)/$(am__dirstamp) +silk/arm/biquad_alt_neon_intr.lo: silk/arm/$(am__dirstamp) \ + silk/arm/$(DEPDIR)/$(am__dirstamp) +silk/arm/LPC_inv_pred_gain_neon_intr.lo: silk/arm/$(am__dirstamp) \ + silk/arm/$(DEPDIR)/$(am__dirstamp) +silk/arm/NSQ_del_dec_neon_intr.lo: silk/arm/$(am__dirstamp) \ + silk/arm/$(DEPDIR)/$(am__dirstamp) +silk/arm/NSQ_neon.lo: silk/arm/$(am__dirstamp) \ + silk/arm/$(DEPDIR)/$(am__dirstamp) +src/$(am__dirstamp): + @$(MKDIR_P) src + @: > src/$(am__dirstamp) +src/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) src/$(DEPDIR) + @: > src/$(DEPDIR)/$(am__dirstamp) +src/opus.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp) +src/opus_decoder.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp) +src/opus_encoder.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp) +src/opus_multistream.lo: src/$(am__dirstamp) \ + src/$(DEPDIR)/$(am__dirstamp) +src/opus_multistream_encoder.lo: src/$(am__dirstamp) \ + src/$(DEPDIR)/$(am__dirstamp) +src/opus_multistream_decoder.lo: src/$(am__dirstamp) \ + src/$(DEPDIR)/$(am__dirstamp) +src/repacketizer.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp) +src/opus_projection_encoder.lo: src/$(am__dirstamp) \ + src/$(DEPDIR)/$(am__dirstamp) +src/opus_projection_decoder.lo: src/$(am__dirstamp) \ + src/$(DEPDIR)/$(am__dirstamp) +src/mapping_matrix.lo: src/$(am__dirstamp) \ + src/$(DEPDIR)/$(am__dirstamp) +src/analysis.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp) +src/mlp.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp) +src/mlp_data.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp) + +libopus.la: $(libopus_la_OBJECTS) $(libopus_la_DEPENDENCIES) $(EXTRA_libopus_la_DEPENDENCIES) + $(AM_V_CCLD)$(libopus_la_LINK) -rpath $(libdir) $(libopus_la_OBJECTS) $(libopus_la_LIBADD) $(LIBS) + +clean-noinstPROGRAMS: + @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ + echo " rm -f" $$list; \ + rm -f $$list || exit $$?; \ + test -n "$(EXEEXT)" || exit 0; \ + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ + echo " rm -f" $$list; \ + rm -f $$list +celt/tests/$(am__dirstamp): + @$(MKDIR_P) celt/tests + @: > celt/tests/$(am__dirstamp) +celt/tests/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) celt/tests/$(DEPDIR) + @: > celt/tests/$(DEPDIR)/$(am__dirstamp) +celt/tests/test_unit_cwrs32.$(OBJEXT): celt/tests/$(am__dirstamp) \ + celt/tests/$(DEPDIR)/$(am__dirstamp) + +celt/tests/test_unit_cwrs32$(EXEEXT): $(celt_tests_test_unit_cwrs32_OBJECTS) $(celt_tests_test_unit_cwrs32_DEPENDENCIES) $(EXTRA_celt_tests_test_unit_cwrs32_DEPENDENCIES) celt/tests/$(am__dirstamp) + @rm -f celt/tests/test_unit_cwrs32$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(celt_tests_test_unit_cwrs32_OBJECTS) $(celt_tests_test_unit_cwrs32_LDADD) $(LIBS) +celt/tests/test_unit_dft.$(OBJEXT): celt/tests/$(am__dirstamp) \ + celt/tests/$(DEPDIR)/$(am__dirstamp) + +celt/tests/test_unit_dft$(EXEEXT): $(celt_tests_test_unit_dft_OBJECTS) $(celt_tests_test_unit_dft_DEPENDENCIES) $(EXTRA_celt_tests_test_unit_dft_DEPENDENCIES) celt/tests/$(am__dirstamp) + @rm -f celt/tests/test_unit_dft$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(celt_tests_test_unit_dft_OBJECTS) $(celt_tests_test_unit_dft_LDADD) $(LIBS) +celt/tests/test_unit_entropy.$(OBJEXT): celt/tests/$(am__dirstamp) \ + celt/tests/$(DEPDIR)/$(am__dirstamp) + +celt/tests/test_unit_entropy$(EXEEXT): $(celt_tests_test_unit_entropy_OBJECTS) $(celt_tests_test_unit_entropy_DEPENDENCIES) $(EXTRA_celt_tests_test_unit_entropy_DEPENDENCIES) celt/tests/$(am__dirstamp) + @rm -f celt/tests/test_unit_entropy$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(celt_tests_test_unit_entropy_OBJECTS) $(celt_tests_test_unit_entropy_LDADD) $(LIBS) +celt/tests/test_unit_laplace.$(OBJEXT): celt/tests/$(am__dirstamp) \ + celt/tests/$(DEPDIR)/$(am__dirstamp) + +celt/tests/test_unit_laplace$(EXEEXT): $(celt_tests_test_unit_laplace_OBJECTS) $(celt_tests_test_unit_laplace_DEPENDENCIES) $(EXTRA_celt_tests_test_unit_laplace_DEPENDENCIES) celt/tests/$(am__dirstamp) + @rm -f celt/tests/test_unit_laplace$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(celt_tests_test_unit_laplace_OBJECTS) $(celt_tests_test_unit_laplace_LDADD) $(LIBS) +celt/tests/test_unit_mathops.$(OBJEXT): celt/tests/$(am__dirstamp) \ + celt/tests/$(DEPDIR)/$(am__dirstamp) + +celt/tests/test_unit_mathops$(EXEEXT): $(celt_tests_test_unit_mathops_OBJECTS) $(celt_tests_test_unit_mathops_DEPENDENCIES) $(EXTRA_celt_tests_test_unit_mathops_DEPENDENCIES) celt/tests/$(am__dirstamp) + @rm -f celt/tests/test_unit_mathops$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(celt_tests_test_unit_mathops_OBJECTS) $(celt_tests_test_unit_mathops_LDADD) $(LIBS) +celt/tests/test_unit_mdct.$(OBJEXT): celt/tests/$(am__dirstamp) \ + celt/tests/$(DEPDIR)/$(am__dirstamp) + +celt/tests/test_unit_mdct$(EXEEXT): $(celt_tests_test_unit_mdct_OBJECTS) $(celt_tests_test_unit_mdct_DEPENDENCIES) $(EXTRA_celt_tests_test_unit_mdct_DEPENDENCIES) celt/tests/$(am__dirstamp) + @rm -f celt/tests/test_unit_mdct$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(celt_tests_test_unit_mdct_OBJECTS) $(celt_tests_test_unit_mdct_LDADD) $(LIBS) +celt/tests/test_unit_rotation.$(OBJEXT): celt/tests/$(am__dirstamp) \ + celt/tests/$(DEPDIR)/$(am__dirstamp) + +celt/tests/test_unit_rotation$(EXEEXT): $(celt_tests_test_unit_rotation_OBJECTS) $(celt_tests_test_unit_rotation_DEPENDENCIES) $(EXTRA_celt_tests_test_unit_rotation_DEPENDENCIES) celt/tests/$(am__dirstamp) + @rm -f celt/tests/test_unit_rotation$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(celt_tests_test_unit_rotation_OBJECTS) $(celt_tests_test_unit_rotation_LDADD) $(LIBS) +celt/tests/test_unit_types.$(OBJEXT): celt/tests/$(am__dirstamp) \ + celt/tests/$(DEPDIR)/$(am__dirstamp) + +celt/tests/test_unit_types$(EXEEXT): $(celt_tests_test_unit_types_OBJECTS) $(celt_tests_test_unit_types_DEPENDENCIES) $(EXTRA_celt_tests_test_unit_types_DEPENDENCIES) celt/tests/$(am__dirstamp) + @rm -f celt/tests/test_unit_types$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(celt_tests_test_unit_types_OBJECTS) $(celt_tests_test_unit_types_LDADD) $(LIBS) +src/opus_compare.$(OBJEXT): src/$(am__dirstamp) \ + src/$(DEPDIR)/$(am__dirstamp) + +opus_compare$(EXEEXT): $(opus_compare_OBJECTS) $(opus_compare_DEPENDENCIES) $(EXTRA_opus_compare_DEPENDENCIES) + @rm -f opus_compare$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(opus_compare_OBJECTS) $(opus_compare_LDADD) $(LIBS) +celt/opus_custom_demo.$(OBJEXT): celt/$(am__dirstamp) \ + celt/$(DEPDIR)/$(am__dirstamp) + +opus_custom_demo$(EXEEXT): $(opus_custom_demo_OBJECTS) $(opus_custom_demo_DEPENDENCIES) $(EXTRA_opus_custom_demo_DEPENDENCIES) + @rm -f opus_custom_demo$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(opus_custom_demo_OBJECTS) $(opus_custom_demo_LDADD) $(LIBS) +src/opus_demo.$(OBJEXT): src/$(am__dirstamp) \ + src/$(DEPDIR)/$(am__dirstamp) + +opus_demo$(EXEEXT): $(opus_demo_OBJECTS) $(opus_demo_DEPENDENCIES) $(EXTRA_opus_demo_DEPENDENCIES) + @rm -f opus_demo$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(opus_demo_OBJECTS) $(opus_demo_LDADD) $(LIBS) +src/repacketizer_demo.$(OBJEXT): src/$(am__dirstamp) \ + src/$(DEPDIR)/$(am__dirstamp) + +repacketizer_demo$(EXEEXT): $(repacketizer_demo_OBJECTS) $(repacketizer_demo_DEPENDENCIES) $(EXTRA_repacketizer_demo_DEPENDENCIES) + @rm -f repacketizer_demo$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(repacketizer_demo_OBJECTS) $(repacketizer_demo_LDADD) $(LIBS) +silk/tests/$(am__dirstamp): + @$(MKDIR_P) silk/tests + @: > silk/tests/$(am__dirstamp) +silk/tests/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) silk/tests/$(DEPDIR) + @: > silk/tests/$(DEPDIR)/$(am__dirstamp) +silk/tests/test_unit_LPC_inv_pred_gain.$(OBJEXT): \ + silk/tests/$(am__dirstamp) \ + silk/tests/$(DEPDIR)/$(am__dirstamp) + +silk/tests/test_unit_LPC_inv_pred_gain$(EXEEXT): $(silk_tests_test_unit_LPC_inv_pred_gain_OBJECTS) $(silk_tests_test_unit_LPC_inv_pred_gain_DEPENDENCIES) $(EXTRA_silk_tests_test_unit_LPC_inv_pred_gain_DEPENDENCIES) silk/tests/$(am__dirstamp) + @rm -f silk/tests/test_unit_LPC_inv_pred_gain$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(silk_tests_test_unit_LPC_inv_pred_gain_OBJECTS) $(silk_tests_test_unit_LPC_inv_pred_gain_LDADD) $(LIBS) +tests/$(am__dirstamp): + @$(MKDIR_P) tests + @: > tests/$(am__dirstamp) +tests/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) tests/$(DEPDIR) + @: > tests/$(DEPDIR)/$(am__dirstamp) +tests/test_opus_api.$(OBJEXT): tests/$(am__dirstamp) \ + tests/$(DEPDIR)/$(am__dirstamp) + +tests/test_opus_api$(EXEEXT): $(tests_test_opus_api_OBJECTS) $(tests_test_opus_api_DEPENDENCIES) $(EXTRA_tests_test_opus_api_DEPENDENCIES) tests/$(am__dirstamp) + @rm -f tests/test_opus_api$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(tests_test_opus_api_OBJECTS) $(tests_test_opus_api_LDADD) $(LIBS) +tests/test_opus_decode.$(OBJEXT): tests/$(am__dirstamp) \ + tests/$(DEPDIR)/$(am__dirstamp) + +tests/test_opus_decode$(EXEEXT): $(tests_test_opus_decode_OBJECTS) $(tests_test_opus_decode_DEPENDENCIES) $(EXTRA_tests_test_opus_decode_DEPENDENCIES) tests/$(am__dirstamp) + @rm -f tests/test_opus_decode$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(tests_test_opus_decode_OBJECTS) $(tests_test_opus_decode_LDADD) $(LIBS) +tests/test_opus_encode.$(OBJEXT): tests/$(am__dirstamp) \ + tests/$(DEPDIR)/$(am__dirstamp) +tests/opus_encode_regressions.$(OBJEXT): tests/$(am__dirstamp) \ + tests/$(DEPDIR)/$(am__dirstamp) + +tests/test_opus_encode$(EXEEXT): $(tests_test_opus_encode_OBJECTS) $(tests_test_opus_encode_DEPENDENCIES) $(EXTRA_tests_test_opus_encode_DEPENDENCIES) tests/$(am__dirstamp) + @rm -f tests/test_opus_encode$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(tests_test_opus_encode_OBJECTS) $(tests_test_opus_encode_LDADD) $(LIBS) +tests/test_opus_padding.$(OBJEXT): tests/$(am__dirstamp) \ + tests/$(DEPDIR)/$(am__dirstamp) + +tests/test_opus_padding$(EXEEXT): $(tests_test_opus_padding_OBJECTS) $(tests_test_opus_padding_DEPENDENCIES) $(EXTRA_tests_test_opus_padding_DEPENDENCIES) tests/$(am__dirstamp) + @rm -f tests/test_opus_padding$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(tests_test_opus_padding_OBJECTS) $(tests_test_opus_padding_LDADD) $(LIBS) +tests/test_opus_projection.$(OBJEXT): tests/$(am__dirstamp) \ + tests/$(DEPDIR)/$(am__dirstamp) + +tests/test_opus_projection$(EXEEXT): $(tests_test_opus_projection_OBJECTS) $(tests_test_opus_projection_DEPENDENCIES) $(EXTRA_tests_test_opus_projection_DEPENDENCIES) tests/$(am__dirstamp) + @rm -f tests/test_opus_projection$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(tests_test_opus_projection_OBJECTS) $(tests_test_opus_projection_LDADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + -rm -f celt/*.$(OBJEXT) + -rm -f celt/*.lo + -rm -f celt/arm/*.$(OBJEXT) + -rm -f celt/arm/*.lo + -rm -f celt/tests/*.$(OBJEXT) + -rm -f celt/x86/*.$(OBJEXT) + -rm -f celt/x86/*.lo + -rm -f silk/*.$(OBJEXT) + -rm -f silk/*.lo + -rm -f silk/arm/*.$(OBJEXT) + -rm -f silk/arm/*.lo + -rm -f silk/fixed/*.$(OBJEXT) + -rm -f silk/fixed/*.lo + -rm -f silk/fixed/arm/*.$(OBJEXT) + -rm -f silk/fixed/arm/*.lo + -rm -f silk/fixed/x86/*.$(OBJEXT) + -rm -f silk/fixed/x86/*.lo + -rm -f silk/float/*.$(OBJEXT) + -rm -f silk/float/*.lo + -rm -f silk/tests/*.$(OBJEXT) + -rm -f silk/x86/*.$(OBJEXT) + -rm -f silk/x86/*.lo + -rm -f src/*.$(OBJEXT) + -rm -f src/*.lo + -rm -f tests/*.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@celt/$(DEPDIR)/bands.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@celt/$(DEPDIR)/celt.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@celt/$(DEPDIR)/celt_decoder.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@celt/$(DEPDIR)/celt_encoder.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@celt/$(DEPDIR)/celt_lpc.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@celt/$(DEPDIR)/cwrs.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@celt/$(DEPDIR)/entcode.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@celt/$(DEPDIR)/entdec.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@celt/$(DEPDIR)/entenc.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@celt/$(DEPDIR)/kiss_fft.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@celt/$(DEPDIR)/laplace.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@celt/$(DEPDIR)/mathops.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@celt/$(DEPDIR)/mdct.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@celt/$(DEPDIR)/modes.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@celt/$(DEPDIR)/opus_custom_demo.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@celt/$(DEPDIR)/pitch.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@celt/$(DEPDIR)/quant_bands.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@celt/$(DEPDIR)/rate.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@celt/$(DEPDIR)/vq.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@celt/arm/$(DEPDIR)/arm_celt_map.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@celt/arm/$(DEPDIR)/armcpu.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@celt/arm/$(DEPDIR)/celt_fft_ne10.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@celt/arm/$(DEPDIR)/celt_mdct_ne10.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@celt/arm/$(DEPDIR)/celt_neon_intr.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@celt/arm/$(DEPDIR)/celt_pitch_xcorr_arm-gnu.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@celt/arm/$(DEPDIR)/pitch_neon_intr.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@celt/tests/$(DEPDIR)/test_unit_cwrs32.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@celt/tests/$(DEPDIR)/test_unit_dft.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@celt/tests/$(DEPDIR)/test_unit_entropy.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@celt/tests/$(DEPDIR)/test_unit_laplace.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@celt/tests/$(DEPDIR)/test_unit_mathops.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@celt/tests/$(DEPDIR)/test_unit_mdct.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@celt/tests/$(DEPDIR)/test_unit_rotation.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@celt/tests/$(DEPDIR)/test_unit_types.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@celt/x86/$(DEPDIR)/celt_lpc_sse4_1.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@celt/x86/$(DEPDIR)/pitch_sse.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@celt/x86/$(DEPDIR)/pitch_sse2.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@celt/x86/$(DEPDIR)/pitch_sse4_1.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@celt/x86/$(DEPDIR)/vq_sse2.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@celt/x86/$(DEPDIR)/x86_celt_map.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@celt/x86/$(DEPDIR)/x86cpu.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/A2NLSF.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/CNG.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/HP_variable_cutoff.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/LPC_analysis_filter.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/LPC_fit.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/LPC_inv_pred_gain.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/LP_variable_cutoff.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/NLSF2A.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/NLSF_VQ.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/NLSF_VQ_weights_laroia.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/NLSF_decode.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/NLSF_del_dec_quant.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/NLSF_encode.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/NLSF_stabilize.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/NLSF_unpack.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/NSQ.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/NSQ_del_dec.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/PLC.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/VAD.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/VQ_WMat_EC.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/ana_filt_bank_1.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/biquad_alt.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/bwexpander.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/bwexpander_32.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/check_control_input.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/code_signs.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/control_SNR.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/control_audio_bandwidth.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/control_codec.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/debug.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/dec_API.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/decode_core.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/decode_frame.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/decode_indices.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/decode_parameters.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/decode_pitch.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/decode_pulses.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/decoder_set_fs.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/enc_API.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/encode_indices.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/encode_pulses.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/gain_quant.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/init_decoder.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/init_encoder.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/inner_prod_aligned.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/interpolate.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/lin2log.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/log2lin.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/pitch_est_tables.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/process_NLSFs.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/quant_LTP_gains.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/resampler.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/resampler_down2.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/resampler_down2_3.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/resampler_private_AR2.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/resampler_private_IIR_FIR.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/resampler_private_down_FIR.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/resampler_private_up2_HQ.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/resampler_rom.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/shell_coder.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/sigm_Q15.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/sort.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/stereo_LR_to_MS.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/stereo_MS_to_LR.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/stereo_decode_pred.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/stereo_encode_pred.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/stereo_find_predictor.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/stereo_quant_pred.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/sum_sqr_shift.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/table_LSF_cos.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/tables_LTP.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/tables_NLSF_CB_NB_MB.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/tables_NLSF_CB_WB.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/tables_gain.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/tables_other.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/tables_pitch_lag.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/$(DEPDIR)/tables_pulses_per_block.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/arm/$(DEPDIR)/LPC_inv_pred_gain_neon_intr.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/arm/$(DEPDIR)/NSQ_del_dec_neon_intr.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/arm/$(DEPDIR)/NSQ_neon.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/arm/$(DEPDIR)/arm_silk_map.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/arm/$(DEPDIR)/biquad_alt_neon_intr.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/fixed/$(DEPDIR)/LTP_analysis_filter_FIX.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/fixed/$(DEPDIR)/LTP_scale_ctrl_FIX.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/fixed/$(DEPDIR)/apply_sine_window_FIX.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/fixed/$(DEPDIR)/autocorr_FIX.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/fixed/$(DEPDIR)/burg_modified_FIX.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/fixed/$(DEPDIR)/corrMatrix_FIX.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/fixed/$(DEPDIR)/encode_frame_FIX.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/fixed/$(DEPDIR)/find_LPC_FIX.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/fixed/$(DEPDIR)/find_LTP_FIX.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/fixed/$(DEPDIR)/find_pitch_lags_FIX.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/fixed/$(DEPDIR)/find_pred_coefs_FIX.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/fixed/$(DEPDIR)/k2a_FIX.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/fixed/$(DEPDIR)/k2a_Q16_FIX.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/fixed/$(DEPDIR)/noise_shape_analysis_FIX.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/fixed/$(DEPDIR)/pitch_analysis_core_FIX.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/fixed/$(DEPDIR)/process_gains_FIX.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/fixed/$(DEPDIR)/regularize_correlations_FIX.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/fixed/$(DEPDIR)/residual_energy16_FIX.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/fixed/$(DEPDIR)/residual_energy_FIX.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/fixed/$(DEPDIR)/schur64_FIX.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/fixed/$(DEPDIR)/schur_FIX.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/fixed/$(DEPDIR)/vector_ops_FIX.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/fixed/$(DEPDIR)/warped_autocorrelation_FIX.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/fixed/arm/$(DEPDIR)/warped_autocorrelation_FIX_neon_intr.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/fixed/x86/$(DEPDIR)/burg_modified_FIX_sse4_1.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/fixed/x86/$(DEPDIR)/vector_ops_FIX_sse4_1.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/float/$(DEPDIR)/LPC_analysis_filter_FLP.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/float/$(DEPDIR)/LPC_inv_pred_gain_FLP.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/float/$(DEPDIR)/LTP_analysis_filter_FLP.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/float/$(DEPDIR)/LTP_scale_ctrl_FLP.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/float/$(DEPDIR)/apply_sine_window_FLP.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/float/$(DEPDIR)/autocorrelation_FLP.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/float/$(DEPDIR)/burg_modified_FLP.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/float/$(DEPDIR)/bwexpander_FLP.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/float/$(DEPDIR)/corrMatrix_FLP.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/float/$(DEPDIR)/encode_frame_FLP.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/float/$(DEPDIR)/energy_FLP.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/float/$(DEPDIR)/find_LPC_FLP.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/float/$(DEPDIR)/find_LTP_FLP.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/float/$(DEPDIR)/find_pitch_lags_FLP.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/float/$(DEPDIR)/find_pred_coefs_FLP.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/float/$(DEPDIR)/inner_product_FLP.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/float/$(DEPDIR)/k2a_FLP.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/float/$(DEPDIR)/noise_shape_analysis_FLP.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/float/$(DEPDIR)/pitch_analysis_core_FLP.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/float/$(DEPDIR)/process_gains_FLP.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/float/$(DEPDIR)/regularize_correlations_FLP.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/float/$(DEPDIR)/residual_energy_FLP.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/float/$(DEPDIR)/scale_copy_vector_FLP.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/float/$(DEPDIR)/scale_vector_FLP.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/float/$(DEPDIR)/schur_FLP.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/float/$(DEPDIR)/sort_FLP.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/float/$(DEPDIR)/warped_autocorrelation_FLP.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/float/$(DEPDIR)/wrappers_FLP.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/tests/$(DEPDIR)/test_unit_LPC_inv_pred_gain.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/x86/$(DEPDIR)/NSQ_del_dec_sse4_1.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/x86/$(DEPDIR)/NSQ_sse4_1.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/x86/$(DEPDIR)/VAD_sse4_1.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/x86/$(DEPDIR)/VQ_WMat_EC_sse4_1.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@silk/x86/$(DEPDIR)/x86_silk_map.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/analysis.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/mapping_matrix.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/mlp.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/mlp_data.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/opus.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/opus_compare.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/opus_decoder.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/opus_demo.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/opus_encoder.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/opus_multistream.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/opus_multistream_decoder.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/opus_multistream_encoder.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/opus_projection_decoder.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/opus_projection_encoder.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/repacketizer.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/repacketizer_demo.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@tests/$(DEPDIR)/opus_encode_regressions.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@tests/$(DEPDIR)/test_opus_api.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@tests/$(DEPDIR)/test_opus_decode.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@tests/$(DEPDIR)/test_opus_encode.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@tests/$(DEPDIR)/test_opus_padding.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@tests/$(DEPDIR)/test_opus_projection.Po@am__quote@ + +.S.o: +@am__fastdepCCAS_TRUE@ $(AM_V_CPPAS)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ +@am__fastdepCCAS_TRUE@ $(CPPASCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCCAS_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po +@AMDEP_TRUE@@am__fastdepCCAS_FALSE@ $(AM_V_CPPAS)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCCAS_FALSE@ DEPDIR=$(DEPDIR) $(CCASDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCCAS_FALSE@ $(AM_V_CPPAS@am__nodep@)$(CPPASCOMPILE) -c -o $@ $< + +.S.obj: +@am__fastdepCCAS_TRUE@ $(AM_V_CPPAS)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ +@am__fastdepCCAS_TRUE@ $(CPPASCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ +@am__fastdepCCAS_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po +@AMDEP_TRUE@@am__fastdepCCAS_FALSE@ $(AM_V_CPPAS)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCCAS_FALSE@ DEPDIR=$(DEPDIR) $(CCASDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCCAS_FALSE@ $(AM_V_CPPAS@am__nodep@)$(CPPASCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.S.lo: +@am__fastdepCCAS_TRUE@ $(AM_V_CPPAS)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ +@am__fastdepCCAS_TRUE@ $(LTCPPASCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCCAS_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo +@AMDEP_TRUE@@am__fastdepCCAS_FALSE@ $(AM_V_CPPAS)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCCAS_FALSE@ DEPDIR=$(DEPDIR) $(CCASDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCCAS_FALSE@ $(AM_V_CPPAS@am__nodep@)$(LTCPPASCOMPILE) -c -o $@ $< + +.c.o: +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< + +.c.obj: +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + -rm -rf celt/.libs celt/_libs + -rm -rf celt/arm/.libs celt/arm/_libs + -rm -rf celt/tests/.libs celt/tests/_libs + -rm -rf celt/x86/.libs celt/x86/_libs + -rm -rf silk/.libs silk/_libs + -rm -rf silk/arm/.libs silk/arm/_libs + -rm -rf silk/fixed/.libs silk/fixed/_libs + -rm -rf silk/fixed/arm/.libs silk/fixed/arm/_libs + -rm -rf silk/fixed/x86/.libs silk/fixed/x86/_libs + -rm -rf silk/float/.libs silk/float/_libs + -rm -rf silk/tests/.libs silk/tests/_libs + -rm -rf silk/x86/.libs silk/x86/_libs + -rm -rf src/.libs src/_libs + -rm -rf tests/.libs tests/_libs + +distclean-libtool: + -rm -f libtool config.lt +install-m4dataDATA: $(m4data_DATA) + @$(NORMAL_INSTALL) + @list='$(m4data_DATA)'; test -n "$(m4datadir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(m4datadir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(m4datadir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(m4datadir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(m4datadir)" || exit $$?; \ + done + +uninstall-m4dataDATA: + @$(NORMAL_UNINSTALL) + @list='$(m4data_DATA)'; test -n "$(m4datadir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(m4datadir)'; $(am__uninstall_files_from_dir) +install-pkgconfigDATA: $(pkgconfig_DATA) + @$(NORMAL_INSTALL) + @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(pkgconfigdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \ + done + +uninstall-pkgconfigDATA: + @$(NORMAL_UNINSTALL) + @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(pkgconfigdir)'; $(am__uninstall_files_from_dir) +install-pkgincludeHEADERS: $(pkginclude_HEADERS) + @$(NORMAL_INSTALL) + @list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(pkgincludedir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(pkgincludedir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(pkgincludedir)'"; \ + $(INSTALL_HEADER) $$files "$(DESTDIR)$(pkgincludedir)" || exit $$?; \ + done + +uninstall-pkgincludeHEADERS: + @$(NORMAL_UNINSTALL) + @list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(pkgincludedir)'; $(am__uninstall_files_from_dir) + +# This directory's subdirectories are mostly independent; you can cd +# into them and run 'make' without going through this Makefile. +# To change the values of 'make' variables: instead of editing Makefiles, +# (1) if the variable is set in 'config.status', edit 'config.status' +# (which will cause the Makefiles to be regenerated when you run 'make'); +# (2) otherwise, pass the desired values on the 'make' command line. +$(am__recursive_targets): + @fail=; \ + if $(am__make_keepgoing); then \ + failcom='fail=yes'; \ + else \ + failcom='exit 1'; \ + fi; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done; \ + if test "$$dot_seen" = "no"; then \ + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ + fi; test -z "$$fail" + +ID: $(am__tagged_files) + $(am__define_uniq_tagged_files); mkid -fID $$unique +tags: tags-recursive +TAGS: tags + +tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + set x; \ + here=`pwd`; \ + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ + include_option=--etags-include; \ + empty_fix=.; \ + else \ + include_option=--include; \ + empty_fix=; \ + fi; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test ! -f $$subdir/TAGS || \ + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ + fi; \ + done; \ + $(am__define_uniq_tagged_files); \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: ctags-recursive + +CTAGS: ctags +ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + $(am__define_uniq_tagged_files); \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" +cscope: cscope.files + test ! -s cscope.files \ + || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) +clean-cscope: + -rm -f cscope.files +cscope.files: clean-cscope cscopelist +cscopelist: cscopelist-recursive + +cscopelist-am: $(am__tagged_files) + list='$(am__tagged_files)'; \ + case "$(srcdir)" in \ + [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ + *) sdir=$(subdir)/$(srcdir) ;; \ + esac; \ + for i in $$list; do \ + if test -f "$$i"; then \ + echo "$(subdir)/$$i"; \ + else \ + echo "$$sdir/$$i"; \ + fi; \ + done >> $(top_builddir)/cscope.files + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + -rm -f cscope.out cscope.in.out cscope.po.out cscope.files + +# Recover from deleted '.trs' file; this should ensure that +# "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create +# both 'foo.log' and 'foo.trs'. Break the recipe in two subshells +# to avoid problems with "make -n". +.log.trs: + rm -f $< $@ + $(MAKE) $(AM_MAKEFLAGS) $< + +# Leading 'am--fnord' is there to ensure the list of targets does not +# expand to empty, as could happen e.g. with make check TESTS=''. +am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck) +am--force-recheck: + @: + +$(TEST_SUITE_LOG): $(TEST_LOGS) + @$(am__set_TESTS_bases); \ + am__f_ok () { test -f "$$1" && test -r "$$1"; }; \ + redo_bases=`for i in $$bases; do \ + am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \ + done`; \ + if test -n "$$redo_bases"; then \ + redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \ + redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \ + if $(am__make_dryrun); then :; else \ + rm -f $$redo_logs && rm -f $$redo_results || exit 1; \ + fi; \ + fi; \ + if test -n "$$am__remaking_logs"; then \ + echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \ + "recursion detected" >&2; \ + elif test -n "$$redo_logs"; then \ + am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \ + fi; \ + if $(am__make_dryrun); then :; else \ + st=0; \ + errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \ + for i in $$redo_bases; do \ + test -f $$i.trs && test -r $$i.trs \ + || { echo "$$errmsg $$i.trs" >&2; st=1; }; \ + test -f $$i.log && test -r $$i.log \ + || { echo "$$errmsg $$i.log" >&2; st=1; }; \ + done; \ + test $$st -eq 0 || exit 1; \ + fi + @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \ + ws='[ ]'; \ + results=`for b in $$bases; do echo $$b.trs; done`; \ + test -n "$$results" || results=/dev/null; \ + all=` grep "^$$ws*:test-result:" $$results | wc -l`; \ + pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \ + fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \ + skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \ + xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \ + xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \ + error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \ + if test `expr $$fail + $$xpass + $$error` -eq 0; then \ + success=true; \ + else \ + success=false; \ + fi; \ + br='==================='; br=$$br$$br$$br$$br; \ + result_count () \ + { \ + if test x"$$1" = x"--maybe-color"; then \ + maybe_colorize=yes; \ + elif test x"$$1" = x"--no-color"; then \ + maybe_colorize=no; \ + else \ + echo "$@: invalid 'result_count' usage" >&2; exit 4; \ + fi; \ + shift; \ + desc=$$1 count=$$2; \ + if test $$maybe_colorize = yes && test $$count -gt 0; then \ + color_start=$$3 color_end=$$std; \ + else \ + color_start= color_end=; \ + fi; \ + echo "$${color_start}# $$desc $$count$${color_end}"; \ + }; \ + create_testsuite_report () \ + { \ + result_count $$1 "TOTAL:" $$all "$$brg"; \ + result_count $$1 "PASS: " $$pass "$$grn"; \ + result_count $$1 "SKIP: " $$skip "$$blu"; \ + result_count $$1 "XFAIL:" $$xfail "$$lgn"; \ + result_count $$1 "FAIL: " $$fail "$$red"; \ + result_count $$1 "XPASS:" $$xpass "$$red"; \ + result_count $$1 "ERROR:" $$error "$$mgn"; \ + }; \ + { \ + echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \ + $(am__rst_title); \ + create_testsuite_report --no-color; \ + echo; \ + echo ".. contents:: :depth: 2"; \ + echo; \ + for b in $$bases; do echo $$b; done \ + | $(am__create_global_log); \ + } >$(TEST_SUITE_LOG).tmp || exit 1; \ + mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \ + if $$success; then \ + col="$$grn"; \ + else \ + col="$$red"; \ + test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ + fi; \ + echo "$${col}$$br$${std}"; \ + echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \ + echo "$${col}$$br$${std}"; \ + create_testsuite_report --maybe-color; \ + echo "$$col$$br$$std"; \ + if $$success; then :; else \ + echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \ + if test -n "$(PACKAGE_BUGREPORT)"; then \ + echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \ + fi; \ + echo "$$col$$br$$std"; \ + fi; \ + $$success || exit 1 + +check-TESTS: + @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list + @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list + @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) + @set +e; $(am__set_TESTS_bases); \ + log_list=`for i in $$bases; do echo $$i.log; done`; \ + trs_list=`for i in $$bases; do echo $$i.trs; done`; \ + log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \ + $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \ + exit $$?; +recheck: all + @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) + @set +e; $(am__set_TESTS_bases); \ + bases=`for i in $$bases; do echo $$i; done \ + | $(am__list_recheck_tests)` || exit 1; \ + log_list=`for i in $$bases; do echo $$i.log; done`; \ + log_list=`echo $$log_list`; \ + $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \ + am__force_recheck=am--force-recheck \ + TEST_LOGS="$$log_list"; \ + exit $$? +celt/tests/test_unit_cwrs32.log: celt/tests/test_unit_cwrs32$(EXEEXT) + @p='celt/tests/test_unit_cwrs32$(EXEEXT)'; \ + b='celt/tests/test_unit_cwrs32'; \ + $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ + --log-file $$b.log --trs-file $$b.trs \ + $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ + "$$tst" $(AM_TESTS_FD_REDIRECT) +celt/tests/test_unit_dft.log: celt/tests/test_unit_dft$(EXEEXT) + @p='celt/tests/test_unit_dft$(EXEEXT)'; \ + b='celt/tests/test_unit_dft'; \ + $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ + --log-file $$b.log --trs-file $$b.trs \ + $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ + "$$tst" $(AM_TESTS_FD_REDIRECT) +celt/tests/test_unit_entropy.log: celt/tests/test_unit_entropy$(EXEEXT) + @p='celt/tests/test_unit_entropy$(EXEEXT)'; \ + b='celt/tests/test_unit_entropy'; \ + $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ + --log-file $$b.log --trs-file $$b.trs \ + $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ + "$$tst" $(AM_TESTS_FD_REDIRECT) +celt/tests/test_unit_laplace.log: celt/tests/test_unit_laplace$(EXEEXT) + @p='celt/tests/test_unit_laplace$(EXEEXT)'; \ + b='celt/tests/test_unit_laplace'; \ + $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ + --log-file $$b.log --trs-file $$b.trs \ + $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ + "$$tst" $(AM_TESTS_FD_REDIRECT) +celt/tests/test_unit_mathops.log: celt/tests/test_unit_mathops$(EXEEXT) + @p='celt/tests/test_unit_mathops$(EXEEXT)'; \ + b='celt/tests/test_unit_mathops'; \ + $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ + --log-file $$b.log --trs-file $$b.trs \ + $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ + "$$tst" $(AM_TESTS_FD_REDIRECT) +celt/tests/test_unit_mdct.log: celt/tests/test_unit_mdct$(EXEEXT) + @p='celt/tests/test_unit_mdct$(EXEEXT)'; \ + b='celt/tests/test_unit_mdct'; \ + $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ + --log-file $$b.log --trs-file $$b.trs \ + $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ + "$$tst" $(AM_TESTS_FD_REDIRECT) +celt/tests/test_unit_rotation.log: celt/tests/test_unit_rotation$(EXEEXT) + @p='celt/tests/test_unit_rotation$(EXEEXT)'; \ + b='celt/tests/test_unit_rotation'; \ + $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ + --log-file $$b.log --trs-file $$b.trs \ + $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ + "$$tst" $(AM_TESTS_FD_REDIRECT) +celt/tests/test_unit_types.log: celt/tests/test_unit_types$(EXEEXT) + @p='celt/tests/test_unit_types$(EXEEXT)'; \ + b='celt/tests/test_unit_types'; \ + $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ + --log-file $$b.log --trs-file $$b.trs \ + $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ + "$$tst" $(AM_TESTS_FD_REDIRECT) +silk/tests/test_unit_LPC_inv_pred_gain.log: silk/tests/test_unit_LPC_inv_pred_gain$(EXEEXT) + @p='silk/tests/test_unit_LPC_inv_pred_gain$(EXEEXT)'; \ + b='silk/tests/test_unit_LPC_inv_pred_gain'; \ + $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ + --log-file $$b.log --trs-file $$b.trs \ + $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ + "$$tst" $(AM_TESTS_FD_REDIRECT) +tests/test_opus_api.log: tests/test_opus_api$(EXEEXT) + @p='tests/test_opus_api$(EXEEXT)'; \ + b='tests/test_opus_api'; \ + $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ + --log-file $$b.log --trs-file $$b.trs \ + $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ + "$$tst" $(AM_TESTS_FD_REDIRECT) +tests/test_opus_decode.log: tests/test_opus_decode$(EXEEXT) + @p='tests/test_opus_decode$(EXEEXT)'; \ + b='tests/test_opus_decode'; \ + $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ + --log-file $$b.log --trs-file $$b.trs \ + $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ + "$$tst" $(AM_TESTS_FD_REDIRECT) +tests/test_opus_encode.log: tests/test_opus_encode$(EXEEXT) + @p='tests/test_opus_encode$(EXEEXT)'; \ + b='tests/test_opus_encode'; \ + $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ + --log-file $$b.log --trs-file $$b.trs \ + $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ + "$$tst" $(AM_TESTS_FD_REDIRECT) +tests/test_opus_padding.log: tests/test_opus_padding$(EXEEXT) + @p='tests/test_opus_padding$(EXEEXT)'; \ + b='tests/test_opus_padding'; \ + $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ + --log-file $$b.log --trs-file $$b.trs \ + $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ + "$$tst" $(AM_TESTS_FD_REDIRECT) +tests/test_opus_projection.log: tests/test_opus_projection$(EXEEXT) + @p='tests/test_opus_projection$(EXEEXT)'; \ + b='tests/test_opus_projection'; \ + $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ + --log-file $$b.log --trs-file $$b.trs \ + $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ + "$$tst" $(AM_TESTS_FD_REDIRECT) +.test.log: + @p='$<'; \ + $(am__set_b); \ + $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \ + --log-file $$b.log --trs-file $$b.trs \ + $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ + "$$tst" $(AM_TESTS_FD_REDIRECT) +@am__EXEEXT_TRUE@.test$(EXEEXT).log: +@am__EXEEXT_TRUE@ @p='$<'; \ +@am__EXEEXT_TRUE@ $(am__set_b); \ +@am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \ +@am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ +@am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ +@am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) + +distdir: $(DISTFILES) + $(am__remove_distdir) + test -d "$(distdir)" || mkdir "$(distdir)" + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + $(am__make_dryrun) \ + || test -d "$(distdir)/$$subdir" \ + || $(MKDIR_P) "$(distdir)/$$subdir" \ + || exit 1; \ + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ + $(am__relativize); \ + new_distdir=$$reldir; \ + dir1=$$subdir; dir2="$(top_distdir)"; \ + $(am__relativize); \ + new_top_distdir=$$reldir; \ + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ + ($(am__cd) $$subdir && \ + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$$new_top_distdir" \ + distdir="$$new_distdir" \ + am__remove_distdir=: \ + am__skip_length_check=: \ + am__skip_mode_fix=: \ + distdir) \ + || exit 1; \ + fi; \ + done + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$(top_distdir)" distdir="$(distdir)" \ + dist-hook + -test -n "$(am__skip_mode_fix)" \ + || find "$(distdir)" -type d ! -perm -755 \ + -exec chmod u+rwx,go+rx {} \; -o \ + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ + || chmod -R a+r "$(distdir)" +dist-gzip: distdir + tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz + $(am__post_remove_distdir) + +dist-bzip2: distdir + tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 + $(am__post_remove_distdir) + +dist-lzip: distdir + tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz + $(am__post_remove_distdir) + +dist-xz: distdir + tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz + $(am__post_remove_distdir) + +dist-tarZ: distdir + @echo WARNING: "Support for distribution archives compressed with" \ + "legacy program 'compress' is deprecated." >&2 + @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 + tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z + $(am__post_remove_distdir) + +dist-shar: distdir + @echo WARNING: "Support for shar distribution archives is" \ + "deprecated." >&2 + @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 + shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz + $(am__post_remove_distdir) + +dist-zip: distdir + -rm -f $(distdir).zip + zip -rq $(distdir).zip $(distdir) + $(am__post_remove_distdir) + +dist dist-all: + $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' + $(am__post_remove_distdir) + +# This target untars the dist file and tries a VPATH configuration. Then +# it guarantees that the distribution is self-contained by making another +# tarfile. +distcheck: dist + case '$(DIST_ARCHIVES)' in \ + *.tar.gz*) \ + eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\ + *.tar.bz2*) \ + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ + *.tar.lz*) \ + lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ + *.tar.xz*) \ + xz -dc $(distdir).tar.xz | $(am__untar) ;;\ + *.tar.Z*) \ + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ + *.shar.gz*) \ + eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\ + *.zip*) \ + unzip $(distdir).zip ;;\ + esac + chmod -R a-w $(distdir) + chmod u+w $(distdir) + mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst + chmod a-w $(distdir) + test -d $(distdir)/_build || exit 0; \ + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ + && am__cwd=`pwd` \ + && $(am__cd) $(distdir)/_build/sub \ + && ../../configure \ + $(AM_DISTCHECK_CONFIGURE_FLAGS) \ + $(DISTCHECK_CONFIGURE_FLAGS) \ + --srcdir=../.. --prefix="$$dc_install_base" \ + && $(MAKE) $(AM_MAKEFLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) dvi \ + && $(MAKE) $(AM_MAKEFLAGS) check \ + && $(MAKE) $(AM_MAKEFLAGS) install \ + && $(MAKE) $(AM_MAKEFLAGS) installcheck \ + && $(MAKE) $(AM_MAKEFLAGS) uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ + distuninstallcheck \ + && chmod -R a-w "$$dc_install_base" \ + && ({ \ + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ + } || { rm -rf "$$dc_destdir"; exit 1; }) \ + && rm -rf "$$dc_destdir" \ + && $(MAKE) $(AM_MAKEFLAGS) dist \ + && rm -rf $(DIST_ARCHIVES) \ + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ + && cd "$$am__cwd" \ + || exit 1 + $(am__post_remove_distdir) + @(echo "$(distdir) archives ready for distribution: "; \ + list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ + sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' +distuninstallcheck: + @test -n '$(distuninstallcheck_dir)' || { \ + echo 'ERROR: trying to run $@ with an empty' \ + '$$(distuninstallcheck_dir)' >&2; \ + exit 1; \ + }; \ + $(am__cd) '$(distuninstallcheck_dir)' || { \ + echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ + exit 1; \ + }; \ + test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ + || { echo "ERROR: files left after uninstall:" ; \ + if test -n "$(DESTDIR)"; then \ + echo " (check DESTDIR support)"; \ + fi ; \ + $(distuninstallcheck_listfiles) ; \ + exit 1; } >&2 +distcleancheck: distclean + @if test '$(srcdir)' = . ; then \ + echo "ERROR: distcleancheck can only run from a VPATH build" ; \ + exit 1 ; \ + fi + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ + || { echo "ERROR: files left in build directory after distclean:" ; \ + $(distcleancheck_listfiles) ; \ + exit 1; } >&2 +check-am: all-am + $(MAKE) $(AM_MAKEFLAGS) check-TESTS +check: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) check-recursive +all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(DATA) $(HEADERS) \ + config.h all-local +installdirs: installdirs-recursive +installdirs-am: + for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(m4datadir)" "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(pkgincludedir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) install-recursive +install-exec: install-exec-recursive +install-data: install-data-recursive +uninstall: uninstall-recursive + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-recursive +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS) + -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs) + -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) + +clean-generic: + -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + -rm -f celt/$(DEPDIR)/$(am__dirstamp) + -rm -f celt/$(am__dirstamp) + -rm -f celt/arm/$(DEPDIR)/$(am__dirstamp) + -rm -f celt/arm/$(am__dirstamp) + -rm -f celt/tests/$(DEPDIR)/$(am__dirstamp) + -rm -f celt/tests/$(am__dirstamp) + -rm -f celt/x86/$(DEPDIR)/$(am__dirstamp) + -rm -f celt/x86/$(am__dirstamp) + -rm -f silk/$(DEPDIR)/$(am__dirstamp) + -rm -f silk/$(am__dirstamp) + -rm -f silk/arm/$(DEPDIR)/$(am__dirstamp) + -rm -f silk/arm/$(am__dirstamp) + -rm -f silk/fixed/$(DEPDIR)/$(am__dirstamp) + -rm -f silk/fixed/$(am__dirstamp) + -rm -f silk/fixed/arm/$(DEPDIR)/$(am__dirstamp) + -rm -f silk/fixed/arm/$(am__dirstamp) + -rm -f silk/fixed/x86/$(DEPDIR)/$(am__dirstamp) + -rm -f silk/fixed/x86/$(am__dirstamp) + -rm -f silk/float/$(DEPDIR)/$(am__dirstamp) + -rm -f silk/float/$(am__dirstamp) + -rm -f silk/tests/$(DEPDIR)/$(am__dirstamp) + -rm -f silk/tests/$(am__dirstamp) + -rm -f silk/x86/$(DEPDIR)/$(am__dirstamp) + -rm -f silk/x86/$(am__dirstamp) + -rm -f src/$(DEPDIR)/$(am__dirstamp) + -rm -f src/$(am__dirstamp) + -rm -f tests/$(DEPDIR)/$(am__dirstamp) + -rm -f tests/$(am__dirstamp) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." + -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) +clean: clean-recursive + +clean-am: clean-generic clean-libLTLIBRARIES clean-libtool clean-local \ + clean-noinstLTLIBRARIES clean-noinstPROGRAMS mostlyclean-am + +distclean: distclean-recursive + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -rf celt/$(DEPDIR) celt/arm/$(DEPDIR) celt/tests/$(DEPDIR) celt/x86/$(DEPDIR) silk/$(DEPDIR) silk/arm/$(DEPDIR) silk/fixed/$(DEPDIR) silk/fixed/arm/$(DEPDIR) silk/fixed/x86/$(DEPDIR) silk/float/$(DEPDIR) silk/tests/$(DEPDIR) silk/x86/$(DEPDIR) src/$(DEPDIR) tests/$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-hdr distclean-libtool distclean-tags + +dvi: dvi-recursive + +dvi-am: + +html: html-recursive + +html-am: + +info: info-recursive + +info-am: + +install-data-am: install-data-local install-m4dataDATA \ + install-pkgconfigDATA install-pkgincludeHEADERS + +install-dvi: install-dvi-recursive + +install-dvi-am: + +install-exec-am: install-libLTLIBRARIES + +install-html: install-html-recursive + +install-html-am: + +install-info: install-info-recursive + +install-info-am: + +install-man: + +install-pdf: install-pdf-recursive + +install-pdf-am: + +install-ps: install-ps-recursive + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-recursive + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -rf $(top_srcdir)/autom4te.cache + -rm -rf celt/$(DEPDIR) celt/arm/$(DEPDIR) celt/tests/$(DEPDIR) celt/x86/$(DEPDIR) silk/$(DEPDIR) silk/arm/$(DEPDIR) silk/fixed/$(DEPDIR) silk/fixed/arm/$(DEPDIR) silk/fixed/x86/$(DEPDIR) silk/float/$(DEPDIR) silk/tests/$(DEPDIR) silk/x86/$(DEPDIR) src/$(DEPDIR) tests/$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-recursive + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-recursive + +pdf-am: + +ps: ps-recursive + +ps-am: + +uninstall-am: uninstall-libLTLIBRARIES uninstall-local \ + uninstall-m4dataDATA uninstall-pkgconfigDATA \ + uninstall-pkgincludeHEADERS + +.MAKE: $(am__recursive_targets) all check check-am install install-am \ + install-strip + +.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am all-local \ + am--refresh check check-TESTS check-am clean clean-cscope \ + clean-generic clean-libLTLIBRARIES clean-libtool clean-local \ + clean-noinstLTLIBRARIES clean-noinstPROGRAMS cscope \ + cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \ + dist-gzip dist-hook dist-lzip dist-shar dist-tarZ dist-xz \ + dist-zip distcheck distclean distclean-compile \ + distclean-generic distclean-hdr distclean-libtool \ + distclean-tags distcleancheck distdir distuninstallcheck dvi \ + dvi-am html html-am info info-am install install-am \ + install-data install-data-am install-data-local install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am \ + install-libLTLIBRARIES install-m4dataDATA install-man \ + install-pdf install-pdf-am install-pkgconfigDATA \ + install-pkgincludeHEADERS install-ps install-ps-am \ + install-strip installcheck installcheck-am installdirs \ + installdirs-am maintainer-clean maintainer-clean-generic \ + mostlyclean mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool pdf pdf-am ps ps-am recheck tags tags-am \ + uninstall uninstall-am uninstall-libLTLIBRARIES \ + uninstall-local uninstall-m4dataDATA uninstall-pkgconfigDATA \ + uninstall-pkgincludeHEADERS + +.PRECIOUS: Makefile + + +# Provide the full test output for failed tests when using the parallel +# test suite (which is enabled by default with automake 1.13+). +export VERBOSE = yes + +# Targets to build and install just the library without the docs +opus check-opus install-opus: export NO_DOXYGEN = 1 + +opus: all +check-opus: check +install-opus: install + +# Or just the docs +docs: + ( cd doc && $(MAKE) $(AM_MAKEFLAGS) ) + +install-docs: + ( cd doc && $(MAKE) $(AM_MAKEFLAGS) install ) + +# Or everything (by default) +all-local: + @[ -n "$(NO_DOXYGEN)" ] || ( cd doc && $(MAKE) $(AM_MAKEFLAGS) ) + +install-data-local: + @[ -n "$(NO_DOXYGEN)" ] || ( cd doc && $(MAKE) $(AM_MAKEFLAGS) install ) + +clean-local: + -( cd doc && $(MAKE) $(AM_MAKEFLAGS) clean ) + +uninstall-local: + ( cd doc && $(MAKE) $(AM_MAKEFLAGS) uninstall ) + +# We check this every time make is run, with configure.ac being touched to +# trigger an update of the build system files if update_version changes the +# current PACKAGE_VERSION (or if package_version was modified manually by a +# user with either AUTO_UPDATE=no or no update_version script present - the +# latter being the normal case for tarball releases). +# +# We can't just add the package_version file to CONFIGURE_DEPENDENCIES since +# simply running autoconf will not actually regenerate configure for us when +# the content of that file changes (due to autoconf dependency checking not +# knowing about that without us creating yet another file for it to include). +# +# The MAKECMDGOALS check is a gnu-make'ism, but will degrade 'gracefully' for +# makes that don't support it. The only loss of functionality is not forcing +# an update of package_version for `make dist` if AUTO_UPDATE=no, but that is +# unlikely to be a real problem for any real user. +$(top_srcdir)/configure.ac: force + @case "$(MAKECMDGOALS)" in \ + dist-hook) exit 0 ;; \ + dist-* | dist | distcheck | distclean) _arg=release ;; \ + esac; \ + if ! $(top_srcdir)/update_version $$_arg 2> /dev/null; then \ + if [ ! -e $(top_srcdir)/package_version ]; then \ + echo 'PACKAGE_VERSION="unknown"' > $(top_srcdir)/package_version; \ + fi; \ + . $(top_srcdir)/package_version || exit 1; \ + [ "$(PACKAGE_VERSION)" != "$$PACKAGE_VERSION" ] || exit 0; \ + fi; \ + touch $@ + +force: + +# Create a minimal package_version file when make dist is run. +dist-hook: + echo 'PACKAGE_VERSION="$(PACKAGE_VERSION)"' > $(top_distdir)/package_version + +.PHONY: opus check-opus install-opus docs install-docs + +# automake doesn't do dependency tracking for asm files, that I can tell +$(CELT_SOURCES_ARM_ASM:%.s=%-gnu.S): celt/arm/armopts-gnu.S +$(CELT_SOURCES_ARM_ASM:%.s=%-gnu.S): $(top_srcdir)/celt/arm/arm2gnu.pl + +# convert ARM asm to GNU as format +%-gnu.S: $(top_srcdir)/%.s + $(top_srcdir)/celt/arm/arm2gnu.pl @ARM2GNU_PARAMS@ < $< > $@ +# For autoconf-modified sources (e.g., armopts.s) +%-gnu.S: %.s + $(top_srcdir)/celt/arm/arm2gnu.pl @ARM2GNU_PARAMS@ < $< > $@ +@HAVE_SSE_TRUE@$(SSE_OBJ): CFLAGS += $(OPUS_X86_SSE_CFLAGS) +@HAVE_SSE2_TRUE@$(SSE2_OBJ): CFLAGS += $(OPUS_X86_SSE2_CFLAGS) +@HAVE_SSE4_1_TRUE@$(SSE4_1_OBJ): CFLAGS += $(OPUS_X86_SSE4_1_CFLAGS) +@HAVE_ARM_NEON_INTR_TRUE@$(ARM_NEON_INTR_OBJ): CFLAGS += \ +@HAVE_ARM_NEON_INTR_TRUE@ $(OPUS_ARM_NEON_INTR_CFLAGS) $(NE10_CFLAGS) + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/components/opus/libopus/Makefile.mips b/components/opus/libopus/Makefile.mips new file mode 100644 index 0000000..e9bfc22 --- /dev/null +++ b/components/opus/libopus/Makefile.mips @@ -0,0 +1,161 @@ +#################### COMPILE OPTIONS ####################### + +# Uncomment this for fixed-point build +FIXED_POINT=1 + +# It is strongly recommended to uncomment one of these +# VAR_ARRAYS: Use C99 variable-length arrays for stack allocation +# USE_ALLOCA: Use alloca() for stack allocation +# If none is defined, then the fallback is a non-threadsafe global array +CFLAGS := -DUSE_ALLOCA $(CFLAGS) +#CFLAGS := -DVAR_ARRAYS $(CFLAGS) + +# These options affect performance +# HAVE_LRINTF: Use C99 intrinsics to speed up float-to-int conversion +CFLAGS := -DHAVE_LRINTF $(CFLAGS) + +###################### END OF OPTIONS ###################### + +-include package_version + +include silk_sources.mk +include celt_sources.mk +include opus_sources.mk + +ifdef FIXED_POINT +SILK_SOURCES += $(SILK_SOURCES_FIXED) +else +SILK_SOURCES += $(SILK_SOURCES_FLOAT) +OPUS_SOURCES += $(OPUS_SOURCES_FLOAT) +endif + +EXESUFFIX = +LIBPREFIX = lib +LIBSUFFIX = .a +OBJSUFFIX = .o + +CC = $(TOOLCHAIN_PREFIX)cc$(TOOLCHAIN_SUFFIX) +AR = $(TOOLCHAIN_PREFIX)ar +RANLIB = $(TOOLCHAIN_PREFIX)ranlib +CP = $(TOOLCHAIN_PREFIX)cp + +cppflags-from-defines = $(addprefix -D,$(1)) +cppflags-from-includes = $(addprefix -I,$(1)) +ldflags-from-ldlibdirs = $(addprefix -L,$(1)) +ldlibs-from-libs = $(addprefix -l,$(1)) + +WARNINGS = -Wall -W -Wstrict-prototypes -Wextra -Wcast-align -Wnested-externs -Wshadow + +CFLAGS += -mips32r2 -mno-mips16 -std=gnu99 -O2 -g $(WARNINGS) -DENABLE_ASSERTIONS -DMIPSr1_ASM -DOPUS_BUILD -mdspr2 -march=74kc -mtune=74kc -mmt -mgp32 + +CINCLUDES = include silk celt + +ifdef FIXED_POINT +CFLAGS += -DFIXED_POINT=1 -DDISABLE_FLOAT_API +CINCLUDES += silk/fixed +else +CINCLUDES += silk/float +endif + + +LIBS = m + +LDLIBDIRS = ./ + +CFLAGS += $(call cppflags-from-defines,$(CDEFINES)) +CFLAGS += $(call cppflags-from-includes,$(CINCLUDES)) +LDFLAGS += $(call ldflags-from-ldlibdirs,$(LDLIBDIRS)) +LDLIBS += $(call ldlibs-from-libs,$(LIBS)) + +COMPILE.c.cmdline = $(CC) -c $(CFLAGS) -o $@ $< +LINK.o = $(CC) $(LDPREFLAGS) $(LDFLAGS) +LINK.o.cmdline = $(LINK.o) $^ $(LDLIBS) -o $@$(EXESUFFIX) + +ARCHIVE.cmdline = $(AR) $(ARFLAGS) $@ $^ && $(RANLIB) $@ + +%$(OBJSUFFIX):%.c + $(COMPILE.c.cmdline) + +%$(OBJSUFFIX):%.cpp + $(COMPILE.cpp.cmdline) + +# Directives + + +# Variable definitions +LIB_NAME = opus +TARGET = $(LIBPREFIX)$(LIB_NAME)$(LIBSUFFIX) + +SRCS_C = $(SILK_SOURCES) $(CELT_SOURCES) $(OPUS_SOURCES) + +OBJS := $(patsubst %.c,%$(OBJSUFFIX),$(SRCS_C)) + +OPUSDEMO_SRCS_C = src/opus_demo.c +OPUSDEMO_OBJS := $(patsubst %.c,%$(OBJSUFFIX),$(OPUSDEMO_SRCS_C)) + +TESTOPUSAPI_SRCS_C = tests/test_opus_api.c +TESTOPUSAPI_OBJS := $(patsubst %.c,%$(OBJSUFFIX),$(TESTOPUSAPI_SRCS_C)) + +TESTOPUSDECODE_SRCS_C = tests/test_opus_decode.c +TESTOPUSDECODE_OBJS := $(patsubst %.c,%$(OBJSUFFIX),$(TESTOPUSDECODE_SRCS_C)) + +TESTOPUSENCODE_SRCS_C = tests/test_opus_encode.c tests/opus_encode_regressions.c +TESTOPUSENCODE_OBJS := $(patsubst %.c,%$(OBJSUFFIX),$(TESTOPUSENCODE_SRCS_C)) + +TESTOPUSPADDING_SRCS_C = tests/test_opus_padding.c +TESTOPUSPADDING_OBJS := $(patsubst %.c,%$(OBJSUFFIX),$(TESTOPUSPADDING_SRCS_C)) + +OPUSCOMPARE_SRCS_C = src/opus_compare.c +OPUSCOMPARE_OBJS := $(patsubst %.c,%$(OBJSUFFIX),$(OPUSCOMPARE_SRCS_C)) + +TESTS := test_opus_api test_opus_decode test_opus_encode test_opus_padding + +# Rules +all: lib opus_demo opus_compare $(TESTS) + +lib: $(TARGET) + +check: all + for test in $(TESTS); do ./$$test; done + +$(TARGET): $(OBJS) + $(ARCHIVE.cmdline) + +opus_demo$(EXESUFFIX): $(OPUSDEMO_OBJS) $(TARGET) + $(LINK.o.cmdline) + +test_opus_api$(EXESUFFIX): $(TESTOPUSAPI_OBJS) $(TARGET) + $(LINK.o.cmdline) + +test_opus_decode$(EXESUFFIX): $(TESTOPUSDECODE_OBJS) $(TARGET) + $(LINK.o.cmdline) + +test_opus_encode$(EXESUFFIX): $(TESTOPUSENCODE_OBJS) $(TARGET) + $(LINK.o.cmdline) + +test_opus_padding$(EXESUFFIX): $(TESTOPUSPADDING_OBJS) $(TARGET) + $(LINK.o.cmdline) + +opus_compare$(EXESUFFIX): $(OPUSCOMPARE_OBJS) + $(LINK.o.cmdline) + +celt/celt.o: CFLAGS += -DPACKAGE_VERSION='$(PACKAGE_VERSION)' +celt/celt.o: package_version + +package_version: force + @if [ -x ./update_version ]; then \ + ./update_version || true; \ + elif [ ! -e ./package_version ]; then \ + echo 'PACKAGE_VERSION="unknown"' > ./package_version; \ + fi + +force: + +clean: + rm -f opus_demo$(EXESUFFIX) opus_compare$(EXESUFFIX) $(TARGET) \ + test_opus_api$(EXESUFFIX) test_opus_decode$(EXESUFFIX) \ + test_opus_encode$(EXESUFFIX) test_opus_padding$(EXESUFFIX) \ + $(OBJS) $(OPUSDEMO_OBJS) $(OPUSCOMPARE_OBJS) $(TESTOPUSAPI_OBJS) \ + $(TESTOPUSDECODE_OBJS) $(TESTOPUSENCODE_OBJS) $(TESTOPUSPADDING_OBJS) + +.PHONY: all lib clean force check diff --git a/components/opus/libopus/Makefile.unix b/components/opus/libopus/Makefile.unix new file mode 100644 index 0000000..90a48f0 --- /dev/null +++ b/components/opus/libopus/Makefile.unix @@ -0,0 +1,159 @@ +#################### COMPILE OPTIONS ####################### + +# Uncomment this for fixed-point build +#FIXED_POINT=1 + +# It is strongly recommended to uncomment one of these +# VAR_ARRAYS: Use C99 variable-length arrays for stack allocation +# USE_ALLOCA: Use alloca() for stack allocation +# If none is defined, then the fallback is a non-threadsafe global array +CFLAGS := -DUSE_ALLOCA $(CFLAGS) +#CFLAGS := -DVAR_ARRAYS $(CFLAGS) + +# These options affect performance +# HAVE_LRINTF: Use C99 intrinsics to speed up float-to-int conversion +#CFLAGS := -DHAVE_LRINTF $(CFLAGS) + +###################### END OF OPTIONS ###################### + +-include package_version + +include silk_sources.mk +include celt_sources.mk +include opus_sources.mk + +ifdef FIXED_POINT +SILK_SOURCES += $(SILK_SOURCES_FIXED) +else +SILK_SOURCES += $(SILK_SOURCES_FLOAT) +OPUS_SOURCES += $(OPUS_SOURCES_FLOAT) +endif + +EXESUFFIX = +LIBPREFIX = lib +LIBSUFFIX = .a +OBJSUFFIX = .o + +CC = $(TOOLCHAIN_PREFIX)cc$(TOOLCHAIN_SUFFIX) +AR = $(TOOLCHAIN_PREFIX)ar +RANLIB = $(TOOLCHAIN_PREFIX)ranlib +CP = $(TOOLCHAIN_PREFIX)cp + +cppflags-from-defines = $(addprefix -D,$(1)) +cppflags-from-includes = $(addprefix -I,$(1)) +ldflags-from-ldlibdirs = $(addprefix -L,$(1)) +ldlibs-from-libs = $(addprefix -l,$(1)) + +WARNINGS = -Wall -W -Wstrict-prototypes -Wextra -Wcast-align -Wnested-externs -Wshadow +CFLAGS += -O2 -g $(WARNINGS) -DOPUS_BUILD +CINCLUDES = include silk celt + +ifdef FIXED_POINT +CFLAGS += -DFIXED_POINT=1 -DDISABLE_FLOAT_API +CINCLUDES += silk/fixed +else +CINCLUDES += silk/float +endif + + +LIBS = m + +LDLIBDIRS = ./ + +CFLAGS += $(call cppflags-from-defines,$(CDEFINES)) +CFLAGS += $(call cppflags-from-includes,$(CINCLUDES)) +LDFLAGS += $(call ldflags-from-ldlibdirs,$(LDLIBDIRS)) +LDLIBS += $(call ldlibs-from-libs,$(LIBS)) + +COMPILE.c.cmdline = $(CC) -c $(CFLAGS) -o $@ $< +LINK.o = $(CC) $(LDPREFLAGS) $(LDFLAGS) +LINK.o.cmdline = $(LINK.o) $^ $(LDLIBS) -o $@$(EXESUFFIX) + +ARCHIVE.cmdline = $(AR) $(ARFLAGS) $@ $^ && $(RANLIB) $@ + +%$(OBJSUFFIX):%.c + $(COMPILE.c.cmdline) + +%$(OBJSUFFIX):%.cpp + $(COMPILE.cpp.cmdline) + +# Directives + + +# Variable definitions +LIB_NAME = opus +TARGET = $(LIBPREFIX)$(LIB_NAME)$(LIBSUFFIX) + +SRCS_C = $(SILK_SOURCES) $(CELT_SOURCES) $(OPUS_SOURCES) + +OBJS := $(patsubst %.c,%$(OBJSUFFIX),$(SRCS_C)) + +OPUSDEMO_SRCS_C = src/opus_demo.c +OPUSDEMO_OBJS := $(patsubst %.c,%$(OBJSUFFIX),$(OPUSDEMO_SRCS_C)) + +TESTOPUSAPI_SRCS_C = tests/test_opus_api.c +TESTOPUSAPI_OBJS := $(patsubst %.c,%$(OBJSUFFIX),$(TESTOPUSAPI_SRCS_C)) + +TESTOPUSDECODE_SRCS_C = tests/test_opus_decode.c +TESTOPUSDECODE_OBJS := $(patsubst %.c,%$(OBJSUFFIX),$(TESTOPUSDECODE_SRCS_C)) + +TESTOPUSENCODE_SRCS_C = tests/test_opus_encode.c tests/opus_encode_regressions.c +TESTOPUSENCODE_OBJS := $(patsubst %.c,%$(OBJSUFFIX),$(TESTOPUSENCODE_SRCS_C)) + +TESTOPUSPADDING_SRCS_C = tests/test_opus_padding.c +TESTOPUSPADDING_OBJS := $(patsubst %.c,%$(OBJSUFFIX),$(TESTOPUSPADDING_SRCS_C)) + +OPUSCOMPARE_SRCS_C = src/opus_compare.c +OPUSCOMPARE_OBJS := $(patsubst %.c,%$(OBJSUFFIX),$(OPUSCOMPARE_SRCS_C)) + +TESTS := test_opus_api test_opus_decode test_opus_encode test_opus_padding + +# Rules +all: lib opus_demo opus_compare $(TESTS) + +lib: $(TARGET) + +check: all + for test in $(TESTS); do ./$$test; done + +$(TARGET): $(OBJS) + $(ARCHIVE.cmdline) + +opus_demo$(EXESUFFIX): $(OPUSDEMO_OBJS) $(TARGET) + $(LINK.o.cmdline) + +test_opus_api$(EXESUFFIX): $(TESTOPUSAPI_OBJS) $(TARGET) + $(LINK.o.cmdline) + +test_opus_decode$(EXESUFFIX): $(TESTOPUSDECODE_OBJS) $(TARGET) + $(LINK.o.cmdline) + +test_opus_encode$(EXESUFFIX): $(TESTOPUSENCODE_OBJS) $(TARGET) + $(LINK.o.cmdline) + +test_opus_padding$(EXESUFFIX): $(TESTOPUSPADDING_OBJS) $(TARGET) + $(LINK.o.cmdline) + +opus_compare$(EXESUFFIX): $(OPUSCOMPARE_OBJS) + $(LINK.o.cmdline) + +celt/celt.o: CFLAGS += -DPACKAGE_VERSION='$(PACKAGE_VERSION)' +celt/celt.o: package_version + +package_version: force + @if [ -x ./update_version ]; then \ + ./update_version || true; \ + elif [ ! -e ./package_version ]; then \ + echo 'PACKAGE_VERSION="unknown"' > ./package_version; \ + fi + +force: + +clean: + rm -f opus_demo$(EXESUFFIX) opus_compare$(EXESUFFIX) $(TARGET) \ + test_opus_api$(EXESUFFIX) test_opus_decode$(EXESUFFIX) \ + test_opus_encode$(EXESUFFIX) test_opus_padding$(EXESUFFIX) \ + $(OBJS) $(OPUSDEMO_OBJS) $(OPUSCOMPARE_OBJS) $(TESTOPUSAPI_OBJS) \ + $(TESTOPUSDECODE_OBJS) $(TESTOPUSENCODE_OBJS) $(TESTOPUSPADDING_OBJS) + +.PHONY: all lib clean force check diff --git a/components/opus/libopus/NEWS b/components/opus/libopus/NEWS new file mode 100644 index 0000000..e69de29 diff --git a/components/opus/libopus/OpusConfig.cmake.in b/components/opus/libopus/OpusConfig.cmake.in new file mode 100644 index 0000000..1577174 --- /dev/null +++ b/components/opus/libopus/OpusConfig.cmake.in @@ -0,0 +1,19 @@ +set(OPUS_VERSION @PROJECT_VERSION@) +set(OPUS_VERSION_STRING @PROJECT_VERSION@) +set(OPUS_VERSION_MAJOR @PROJECT_VERSION_MAJOR@) +set(OPUS_VERSION_MINOR @PROJECT_VERSION_MINOR@) +set(OPUS_VERSION_PATCH @PROJECT_VERSION_PATCH@) + +@PACKAGE_INIT@ + +set_and_check(OPUS_INCLUDE_DIR "@PACKAGE_INCLUDE_INSTALL_DIR@") +set_and_check(OPUS_INCLUDE_DIRS "@PACKAGE_INCLUDE_INSTALL_DIR@") + +include(${CMAKE_CURRENT_LIST_DIR}/OpusTargets.cmake) + +set(OPUS_LIBRARY Opus::opus) +set(OPUS_LIBRARIES Opus::opus) + +check_required_components(Opus) + +set(OPUS_FOUND 1) diff --git a/components/opus/libopus/README b/components/opus/libopus/README new file mode 100644 index 0000000..27fddf9 --- /dev/null +++ b/components/opus/libopus/README @@ -0,0 +1,161 @@ +== Opus audio codec == + +Opus is a codec for interactive speech and audio transmission over the Internet. + + Opus can handle a wide range of interactive audio applications, including +Voice over IP, videoconferencing, in-game chat, and even remote live music +performances. It can scale from low bit-rate narrowband speech to very high +quality stereo music. + + Opus, when coupled with an appropriate container format, is also suitable +for non-realtime stored-file applications such as music distribution, game +soundtracks, portable music players, jukeboxes, and other applications that +have historically used high latency formats such as MP3, AAC, or Vorbis. + + Opus is specified by IETF RFC 6716: + https://tools.ietf.org/html/rfc6716 + + The Opus format and this implementation of it are subject to the royalty- +free patent and copyright licenses specified in the file COPYING. + +This package implements a shared library for encoding and decoding raw Opus +bitstreams. Raw Opus bitstreams should be used over RTP according to + https://tools.ietf.org/html/rfc7587 + +The package also includes a number of test tools used for testing the +correct operation of the library. The bitstreams read/written by these +tools should not be used for Opus file distribution: They include +additional debugging data and cannot support seeking. + +Opus stored in files should use the Ogg encapsulation for Opus which is +described at: + https://tools.ietf.org/html/rfc7845 + +An opus-tools package is available which provides encoding and decoding of +Ogg encapsulated Opus files and includes a number of useful features. + +Opus-tools can be found at: + https://git.xiph.org/?p=opus-tools.git +or on the main Opus website: + https://opus-codec.org/ + +== Compiling libopus == + +To build from a distribution tarball, you only need to do the following: + + % ./configure + % make + +To build from the git repository, the following steps are necessary: + +0) Set up a development environment: + +On an Ubuntu or Debian family Linux distribution: + + % sudo apt-get install git autoconf automake libtool gcc make + +On a Fedora/Redhat based Linux: + + % sudo dnf install git autoconf automake libtool gcc make + +Or for older Redhat/Centos Linux releases: + + % sudo yum install git autoconf automake libtool gcc make + +On Apple macOS, install Xcode and brew.sh, then in the Terminal enter: + + % brew install autoconf automake libtool + +1) Clone the repository: + + % git clone https://git.xiph.org/opus.git + % cd opus + +2) Compiling the source + + % ./autogen.sh + % ./configure + % make + +3) Install the codec libraries (optional) + + % sudo make install + +Once you have compiled the codec, there will be a opus_demo executable +in the top directory. + +Usage: opus_demo [-e] + [options] + opus_demo -d [options] + + +mode: voip | audio | restricted-lowdelay +options: + -e : only runs the encoder (output the bit-stream) + -d : only runs the decoder (reads the bit-stream as input) + -cbr : enable constant bitrate; default: variable bitrate + -cvbr : enable constrained variable bitrate; default: + unconstrained + -bandwidth + : audio bandwidth (from narrowband to fullband); + default: sampling rate + -framesize <2.5|5|10|20|40|60> + : frame size in ms; default: 20 + -max_payload + : maximum payload size in bytes, default: 1024 + -complexity + : complexity, 0 (lowest) ... 10 (highest); default: 10 + -inbandfec : enable SILK inband FEC + -forcemono : force mono encoding, even for stereo input + -dtx : enable SILK DTX + -loss : simulate packet loss, in percent (0-100); default: 0 + +input and output are little-endian signed 16-bit PCM files or opus +bitstreams with simple opus_demo proprietary framing. + +== Testing == + +This package includes a collection of automated unit and system tests +which SHOULD be run after compiling the package especially the first +time it is run on a new platform. + +To run the integrated tests: + + % make check + +There is also collection of standard test vectors which are not +included in this package for size reasons but can be obtained from: +https://opus-codec.org/docs/opus_testvectors-rfc8251.tar.gz + +To run compare the code to these test vectors: + + % curl -OL https://opus-codec.org/docs/opus_testvectors-rfc8251.tar.gz + % tar -zxf opus_testvectors-rfc8251.tar.gz + % ./tests/run_vectors.sh ./ opus_newvectors 48000 + +== Portability notes == + +This implementation uses floating-point by default but can be compiled to +use only fixed-point arithmetic by setting --enable-fixed-point (if using +autoconf) or by defining the FIXED_POINT macro (if building manually). +The fixed point implementation has somewhat lower audio quality and is +slower on platforms with fast FPUs, it is normally only used in embedded +environments. + +The implementation can be compiled with either a C89 or a C99 compiler. +While it does not rely on any _undefined behavior_ as defined by C89 or +C99, it relies on common _implementation-defined behavior_ for two's +complement architectures: + +o Right shifts of negative values are consistent with two's + complement arithmetic, so that a>>b is equivalent to + floor(a/(2^b)), + +o For conversion to a signed integer of N bits, the value is reduced + modulo 2^N to be within range of the type, + +o The result of integer division of a negative value is truncated + towards zero, and + +o The compiler provides a 64-bit integer type (a C99 requirement + which is supported by most C89 compilers). diff --git a/components/opus/libopus/aclocal.m4 b/components/opus/libopus/aclocal.m4 new file mode 100644 index 0000000..f4d9d0a --- /dev/null +++ b/components/opus/libopus/aclocal.m4 @@ -0,0 +1,1216 @@ +# generated automatically by aclocal 1.15.1 -*- Autoconf -*- + +# Copyright (C) 1996-2017 Free Software Foundation, Inc. + +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, +[m4_warning([this file was generated for autoconf 2.69. +You have another version of autoconf. It may work, but is not guaranteed to. +If you have problems, you may need to regenerate the build system entirely. +To do so, use the procedure documented by the package, typically 'autoreconf'.])]) + +# Copyright (C) 2002-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_AUTOMAKE_VERSION(VERSION) +# ---------------------------- +# Automake X.Y traces this macro to ensure aclocal.m4 has been +# generated from the m4 files accompanying Automake X.Y. +# (This private macro should not be called outside this file.) +AC_DEFUN([AM_AUTOMAKE_VERSION], +[am__api_version='1.15' +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to +dnl require some minimum version. Point them to the right macro. +m4_if([$1], [1.15.1], [], + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl +]) + +# _AM_AUTOCONF_VERSION(VERSION) +# ----------------------------- +# aclocal traces this macro to find the Autoconf version. +# This is a private macro too. Using m4_define simplifies +# the logic in aclocal, which can simply ignore this definition. +m4_define([_AM_AUTOCONF_VERSION], []) + +# AM_SET_CURRENT_AUTOMAKE_VERSION +# ------------------------------- +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], +[AM_AUTOMAKE_VERSION([1.15.1])dnl +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) + +# Figure out how to run the assembler. -*- Autoconf -*- + +# Copyright (C) 2001-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_PROG_AS +# ---------- +AC_DEFUN([AM_PROG_AS], +[# By default we simply use the C compiler to build assembly code. +AC_REQUIRE([AC_PROG_CC]) +test "${CCAS+set}" = set || CCAS=$CC +test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS +AC_ARG_VAR([CCAS], [assembler compiler command (defaults to CC)]) +AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)]) +_AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl +]) + +# AM_AUX_DIR_EXPAND -*- Autoconf -*- + +# Copyright (C) 2001-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets +# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to +# '$srcdir', '$srcdir/..', or '$srcdir/../..'. +# +# Of course, Automake must honor this variable whenever it calls a +# tool from the auxiliary directory. The problem is that $srcdir (and +# therefore $ac_aux_dir as well) can be either absolute or relative, +# depending on how configure is run. This is pretty annoying, since +# it makes $ac_aux_dir quite unusable in subdirectories: in the top +# source directory, any form will work fine, but in subdirectories a +# relative path needs to be adjusted first. +# +# $ac_aux_dir/missing +# fails when called from a subdirectory if $ac_aux_dir is relative +# $top_srcdir/$ac_aux_dir/missing +# fails if $ac_aux_dir is absolute, +# fails when called from a subdirectory in a VPATH build with +# a relative $ac_aux_dir +# +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir +# are both prefixed by $srcdir. In an in-source build this is usually +# harmless because $srcdir is '.', but things will broke when you +# start a VPATH build or use an absolute $srcdir. +# +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, +# iff we strip the leading $srcdir from $ac_aux_dir. That would be: +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` +# and then we would define $MISSING as +# MISSING="\${SHELL} $am_aux_dir/missing" +# This will work as long as MISSING is not called from configure, because +# unfortunately $(top_srcdir) has no meaning in configure. +# However there are other variables, like CC, which are often used in +# configure, and could therefore not use this "fixed" $ac_aux_dir. +# +# Another solution, used here, is to always expand $ac_aux_dir to an +# absolute PATH. The drawback is that using absolute paths prevent a +# configured tree to be moved without reconfiguration. + +AC_DEFUN([AM_AUX_DIR_EXPAND], +[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl +# Expand $ac_aux_dir to an absolute path. +am_aux_dir=`cd "$ac_aux_dir" && pwd` +]) + +# AM_CONDITIONAL -*- Autoconf -*- + +# Copyright (C) 1997-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_CONDITIONAL(NAME, SHELL-CONDITION) +# ------------------------------------- +# Define a conditional. +AC_DEFUN([AM_CONDITIONAL], +[AC_PREREQ([2.52])dnl + m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl +AC_SUBST([$1_TRUE])dnl +AC_SUBST([$1_FALSE])dnl +_AM_SUBST_NOTMAKE([$1_TRUE])dnl +_AM_SUBST_NOTMAKE([$1_FALSE])dnl +m4_define([_AM_COND_VALUE_$1], [$2])dnl +if $2; then + $1_TRUE= + $1_FALSE='#' +else + $1_TRUE='#' + $1_FALSE= +fi +AC_CONFIG_COMMANDS_PRE( +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then + AC_MSG_ERROR([[conditional "$1" was never defined. +Usually this means the macro was only invoked conditionally.]]) +fi])]) + +# Copyright (C) 1999-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + + +# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be +# written in clear, in which case automake, when reading aclocal.m4, +# will think it sees a *use*, and therefore will trigger all it's +# C support machinery. Also note that it means that autoscan, seeing +# CC etc. in the Makefile, will ask for an AC_PROG_CC use... + + +# _AM_DEPENDENCIES(NAME) +# ---------------------- +# See how the compiler implements dependency checking. +# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". +# We try a few techniques and use that to set a single cache variable. +# +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular +# dependency, and given that the user is not expected to run this macro, +# just rely on AC_PROG_CC. +AC_DEFUN([_AM_DEPENDENCIES], +[AC_REQUIRE([AM_SET_DEPDIR])dnl +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl +AC_REQUIRE([AM_MAKE_INCLUDE])dnl +AC_REQUIRE([AM_DEP_TRACK])dnl + +m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], + [$1], [CXX], [depcc="$CXX" am_compiler_list=], + [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], + [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], + [$1], [UPC], [depcc="$UPC" am_compiler_list=], + [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], + [depcc="$$1" am_compiler_list=]) + +AC_CACHE_CHECK([dependency style of $depcc], + [am_cv_$1_dependencies_compiler_type], +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named 'D' -- because '-MD' means "put the output + # in D". + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_$1_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` + fi + am__universal=false + m4_case([$1], [CC], + [case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac], + [CXX], + [case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac]) + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with + # Solaris 10 /bin/sh. + echo '/* dummy */' > sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with '-c' and '-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle '-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs. + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # After this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested. + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok '-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_$1_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_$1_dependencies_compiler_type=none +fi +]) +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) +AM_CONDITIONAL([am__fastdep$1], [ + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) +]) + + +# AM_SET_DEPDIR +# ------------- +# Choose a directory name for dependency files. +# This macro is AC_REQUIREd in _AM_DEPENDENCIES. +AC_DEFUN([AM_SET_DEPDIR], +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl +]) + + +# AM_DEP_TRACK +# ------------ +AC_DEFUN([AM_DEP_TRACK], +[AC_ARG_ENABLE([dependency-tracking], [dnl +AS_HELP_STRING( + [--enable-dependency-tracking], + [do not reject slow dependency extractors]) +AS_HELP_STRING( + [--disable-dependency-tracking], + [speeds up one-time build])]) +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' + am__nodep='_no' +fi +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) +AC_SUBST([AMDEPBACKSLASH])dnl +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl +AC_SUBST([am__nodep])dnl +_AM_SUBST_NOTMAKE([am__nodep])dnl +]) + +# Generate code to set up dependency tracking. -*- Autoconf -*- + +# Copyright (C) 1999-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + + +# _AM_OUTPUT_DEPENDENCY_COMMANDS +# ------------------------------ +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], +[{ + # Older Autoconf quotes --file arguments for eval, but not when files + # are listed without --file. Let's play safe and only enable the eval + # if we detect the quoting. + case $CONFIG_FILES in + *\'*) eval set x "$CONFIG_FILES" ;; + *) set x $CONFIG_FILES ;; + esac + shift + for mf + do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named 'Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then + dirpart=`AS_DIRNAME("$mf")` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running 'make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "$am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`AS_DIRNAME(["$file"])` + AS_MKDIR_P([$dirpart/$fdir]) + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done + done +} +])# _AM_OUTPUT_DEPENDENCY_COMMANDS + + +# AM_OUTPUT_DEPENDENCY_COMMANDS +# ----------------------------- +# This macro should only be invoked once -- use via AC_REQUIRE. +# +# This code is only required when automatic dependency tracking +# is enabled. FIXME. This creates each '.P' file that we will +# need in order to bootstrap the dependency handling code. +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], +[AC_CONFIG_COMMANDS([depfiles], + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) +]) + +# Do all the work for Automake. -*- Autoconf -*- + +# Copyright (C) 1996-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This macro actually does too much. Some checks are only needed if +# your package does certain things. But this isn't really a big deal. + +dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. +m4_define([AC_PROG_CC], +m4_defn([AC_PROG_CC]) +[_AM_PROG_CC_C_O +]) + +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) +# AM_INIT_AUTOMAKE([OPTIONS]) +# ----------------------------------------------- +# The call with PACKAGE and VERSION arguments is the old style +# call (pre autoconf-2.50), which is being phased out. PACKAGE +# and VERSION should now be passed to AC_INIT and removed from +# the call to AM_INIT_AUTOMAKE. +# We support both call styles for the transition. After +# the next Automake release, Autoconf can make the AC_INIT +# arguments mandatory, and then we can depend on a new Autoconf +# release and drop the old call support. +AC_DEFUN([AM_INIT_AUTOMAKE], +[AC_PREREQ([2.65])dnl +dnl Autoconf wants to disallow AM_ names. We explicitly allow +dnl the ones we care about. +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl +AC_REQUIRE([AC_PROG_INSTALL])dnl +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) + fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi +AC_SUBST([CYGPATH_W]) + +# Define the identity of the package. +dnl Distinguish between old-style and new-style calls. +m4_ifval([$2], +[AC_DIAGNOSE([obsolete], + [$0: two- and three-arguments forms are deprecated.]) +m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl + AC_SUBST([PACKAGE], [$1])dnl + AC_SUBST([VERSION], [$2])], +[_AM_SET_OPTIONS([$1])dnl +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. +m4_if( + m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), + [ok:ok],, + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl + +_AM_IF_OPTION([no-define],, +[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) + AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl + +# Some tools Automake needs. +AC_REQUIRE([AM_SANITY_CHECK])dnl +AC_REQUIRE([AC_ARG_PROGRAM])dnl +AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) +AM_MISSING_PROG([AUTOCONF], [autoconf]) +AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) +AM_MISSING_PROG([AUTOHEADER], [autoheader]) +AM_MISSING_PROG([MAKEINFO], [makeinfo]) +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl +AC_REQUIRE([AC_PROG_MKDIR_P])dnl +# For better backward compatibility. To be removed once Automake 1.9.x +# dies out for good. For more background, see: +# +# +AC_SUBST([mkdir_p], ['$(MKDIR_P)']) +# We need awk for the "check" target (and possibly the TAP driver). The +# system "awk" is bad on some platforms. +AC_REQUIRE([AC_PROG_AWK])dnl +AC_REQUIRE([AC_PROG_MAKE_SET])dnl +AC_REQUIRE([AM_SET_LEADING_DOT])dnl +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], + [_AM_PROG_TAR([v7])])]) +_AM_IF_OPTION([no-dependencies],, +[AC_PROVIDE_IFELSE([AC_PROG_CC], + [_AM_DEPENDENCIES([CC])], + [m4_define([AC_PROG_CC], + m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl +AC_PROVIDE_IFELSE([AC_PROG_CXX], + [_AM_DEPENDENCIES([CXX])], + [m4_define([AC_PROG_CXX], + m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl +AC_PROVIDE_IFELSE([AC_PROG_OBJC], + [_AM_DEPENDENCIES([OBJC])], + [m4_define([AC_PROG_OBJC], + m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl +AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], + [_AM_DEPENDENCIES([OBJCXX])], + [m4_define([AC_PROG_OBJCXX], + m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl +]) +AC_REQUIRE([AM_SILENT_RULES])dnl +dnl The testsuite driver may need to know about EXEEXT, so add the +dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This +dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. +AC_CONFIG_COMMANDS_PRE(dnl +[m4_provide_if([_AM_COMPILER_EXEEXT], + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl + +# POSIX will say in a future version that running "rm -f" with no argument +# is OK; and we want to be able to make that assumption in our Makefile +# recipes. So use an aggressive probe to check that the usage we want is +# actually supported "in the wild" to an acceptable degree. +# See automake bug#10828. +# To make any issue more visible, cause the running configure to be aborted +# by default if the 'rm' program in use doesn't match our expectations; the +# user can still override this though. +if rm -f && rm -fr && rm -rf; then : OK; else + cat >&2 <<'END' +Oops! + +Your 'rm' program seems unable to run without file operands specified +on the command line, even when the '-f' option is present. This is contrary +to the behaviour of most rm programs out there, and not conforming with +the upcoming POSIX standard: + +Please tell bug-automake@gnu.org about your system, including the value +of your $PATH and any error possibly output before this message. This +can help us improve future automake versions. + +END + if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then + echo 'Configuration will proceed anyway, since you have set the' >&2 + echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 + echo >&2 + else + cat >&2 <<'END' +Aborting the configuration process, to ensure you take notice of the issue. + +You can download and install GNU coreutils to get an 'rm' implementation +that behaves properly: . + +If you want to complete the configuration process using your problematic +'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM +to "yes", and re-run configure. + +END + AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) + fi +fi +dnl The trailing newline in this macro's definition is deliberate, for +dnl backward compatibility and to allow trailing 'dnl'-style comments +dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. +]) + +dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further +dnl mangled by Autoconf and run in a shell conditional statement. +m4_define([_AC_COMPILER_EXEEXT], +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) + +# When config.status generates a header, we must update the stamp-h file. +# This file resides in the same directory as the config header +# that is generated. The stamp files are numbered to have different names. + +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the +# loop where config.status creates the headers, so we can generate +# our stamp files there. +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], +[# Compute $1's index in $config_headers. +_am_arg=$1 +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $_am_arg | $_am_arg:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) + +# Copyright (C) 2001-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_PROG_INSTALL_SH +# ------------------ +# Define $install_sh. +AC_DEFUN([AM_PROG_INSTALL_SH], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +if test x"${install_sh+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi +AC_SUBST([install_sh])]) + +# Copyright (C) 2003-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# Check whether the underlying file-system supports filenames +# with a leading dot. For instance MS-DOS doesn't. +AC_DEFUN([AM_SET_LEADING_DOT], +[rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null +AC_SUBST([am__leading_dot])]) + +# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- +# From Jim Meyering + +# Copyright (C) 1996-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_MAINTAINER_MODE([DEFAULT-MODE]) +# ---------------------------------- +# Control maintainer-specific portions of Makefiles. +# Default is to disable them, unless 'enable' is passed literally. +# For symmetry, 'disable' may be passed as well. Anyway, the user +# can override the default with the --enable/--disable switch. +AC_DEFUN([AM_MAINTAINER_MODE], +[m4_case(m4_default([$1], [disable]), + [enable], [m4_define([am_maintainer_other], [disable])], + [disable], [m4_define([am_maintainer_other], [enable])], + [m4_define([am_maintainer_other], [enable]) + m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) +AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) + dnl maintainer-mode's default is 'disable' unless 'enable' is passed + AC_ARG_ENABLE([maintainer-mode], + [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode], + am_maintainer_other[ make rules and dependencies not useful + (and sometimes confusing) to the casual installer])], + [USE_MAINTAINER_MODE=$enableval], + [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) + AC_MSG_RESULT([$USE_MAINTAINER_MODE]) + AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) + MAINT=$MAINTAINER_MODE_TRUE + AC_SUBST([MAINT])dnl +] +) + +# Check to see how 'make' treats includes. -*- Autoconf -*- + +# Copyright (C) 2001-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_MAKE_INCLUDE() +# ----------------- +# Check to see how make treats includes. +AC_DEFUN([AM_MAKE_INCLUDE], +[am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo this is the am__doit target +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +AC_MSG_CHECKING([for style of include used by $am_make]) +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# Ignore all kinds of additional output from 'make'. +case `$am_make -s -f confmf 2> /dev/null` in #( +*the\ am__doit\ target*) + am__include=include + am__quote= + _am_result=GNU + ;; +esac +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + case `$am_make -s -f confmf 2> /dev/null` in #( + *the\ am__doit\ target*) + am__include=.include + am__quote="\"" + _am_result=BSD + ;; + esac +fi +AC_SUBST([am__include]) +AC_SUBST([am__quote]) +AC_MSG_RESULT([$_am_result]) +rm -f confinc confmf +]) + +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- + +# Copyright (C) 1997-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_MISSING_PROG(NAME, PROGRAM) +# ------------------------------ +AC_DEFUN([AM_MISSING_PROG], +[AC_REQUIRE([AM_MISSING_HAS_RUN]) +$1=${$1-"${am_missing_run}$2"} +AC_SUBST($1)]) + +# AM_MISSING_HAS_RUN +# ------------------ +# Define MISSING if not defined so far and test if it is modern enough. +# If it is, set am_missing_run to use it, otherwise, to nothing. +AC_DEFUN([AM_MISSING_HAS_RUN], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +AC_REQUIRE_AUX_FILE([missing])dnl +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi +# Use eval to expand $SHELL +if eval "$MISSING --is-lightweight"; then + am_missing_run="$MISSING " +else + am_missing_run= + AC_MSG_WARN(['missing' script is too old or missing]) +fi +]) + +# Helper functions for option handling. -*- Autoconf -*- + +# Copyright (C) 2001-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# _AM_MANGLE_OPTION(NAME) +# ----------------------- +AC_DEFUN([_AM_MANGLE_OPTION], +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) + +# _AM_SET_OPTION(NAME) +# -------------------- +# Set option NAME. Presently that only means defining a flag for this option. +AC_DEFUN([_AM_SET_OPTION], +[m4_define(_AM_MANGLE_OPTION([$1]), [1])]) + +# _AM_SET_OPTIONS(OPTIONS) +# ------------------------ +# OPTIONS is a space-separated list of Automake options. +AC_DEFUN([_AM_SET_OPTIONS], +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) + +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) +# ------------------------------------------- +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. +AC_DEFUN([_AM_IF_OPTION], +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) + +# Copyright (C) 1999-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# _AM_PROG_CC_C_O +# --------------- +# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC +# to automatically call this. +AC_DEFUN([_AM_PROG_CC_C_O], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +AC_REQUIRE_AUX_FILE([compile])dnl +AC_LANG_PUSH([C])dnl +AC_CACHE_CHECK( + [whether $CC understands -c and -o together], + [am_cv_prog_cc_c_o], + [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) + # Make sure it works both with $CC and with simple cc. + # Following AC_PROG_CC_C_O, we do the test twice because some + # compilers refuse to overwrite an existing .o file with -o, + # though they will create one. + am_cv_prog_cc_c_o=yes + for am_i in 1 2; do + if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ + && test -f conftest2.$ac_objext; then + : OK + else + am_cv_prog_cc_c_o=no + break + fi + done + rm -f core conftest* + unset am_i]) +if test "$am_cv_prog_cc_c_o" != yes; then + # Losing compiler, so override with the script. + # FIXME: It is wrong to rewrite CC. + # But if we don't then we get into trouble of one sort or another. + # A longer-term fix would be to have automake use am__CC in this case, + # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" + CC="$am_aux_dir/compile $CC" +fi +AC_LANG_POP([C])]) + +# For backward compatibility. +AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) + +# Copyright (C) 2001-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_RUN_LOG(COMMAND) +# ------------------- +# Run COMMAND, save the exit status in ac_status, and log it. +# (This has been adapted from Autoconf's _AC_RUN_LOG macro.) +AC_DEFUN([AM_RUN_LOG], +[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD + ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD + (exit $ac_status); }]) + +# Check to make sure that the build environment is sane. -*- Autoconf -*- + +# Copyright (C) 1996-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_SANITY_CHECK +# --------------- +AC_DEFUN([AM_SANITY_CHECK], +[AC_MSG_CHECKING([whether build environment is sane]) +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[[\\\"\#\$\&\'\`$am_lf]]*) + AC_MSG_ERROR([unsafe absolute working directory name]);; +esac +case $srcdir in + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) + AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; +esac + +# Do 'set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + am_has_slept=no + for am_try in 1 2; do + echo "timestamp, slept: $am_has_slept" > conftest.file + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$[*]" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + if test "$[*]" != "X $srcdir/configure conftest.file" \ + && test "$[*]" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken + alias in your environment]) + fi + if test "$[2]" = conftest.file || test $am_try -eq 2; then + break + fi + # Just in case. + sleep 1 + am_has_slept=yes + done + test "$[2]" = conftest.file + ) +then + # Ok. + : +else + AC_MSG_ERROR([newly created file is older than distributed files! +Check your system clock]) +fi +AC_MSG_RESULT([yes]) +# If we didn't sleep, we still need to ensure time stamps of config.status and +# generated files are strictly newer. +am_sleep_pid= +if grep 'slept: no' conftest.file >/dev/null 2>&1; then + ( sleep 1 ) & + am_sleep_pid=$! +fi +AC_CONFIG_COMMANDS_PRE( + [AC_MSG_CHECKING([that generated files are newer than configure]) + if test -n "$am_sleep_pid"; then + # Hide warnings about reused PIDs. + wait $am_sleep_pid 2>/dev/null + fi + AC_MSG_RESULT([done])]) +rm -f conftest.file +]) + +# Copyright (C) 2009-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_SILENT_RULES([DEFAULT]) +# -------------------------- +# Enable less verbose build rules; with the default set to DEFAULT +# ("yes" being less verbose, "no" or empty being verbose). +AC_DEFUN([AM_SILENT_RULES], +[AC_ARG_ENABLE([silent-rules], [dnl +AS_HELP_STRING( + [--enable-silent-rules], + [less verbose build output (undo: "make V=1")]) +AS_HELP_STRING( + [--disable-silent-rules], + [verbose build output (undo: "make V=0")])dnl +]) +case $enable_silent_rules in @%:@ ((( + yes) AM_DEFAULT_VERBOSITY=0;; + no) AM_DEFAULT_VERBOSITY=1;; + *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; +esac +dnl +dnl A few 'make' implementations (e.g., NonStop OS and NextStep) +dnl do not support nested variable expansions. +dnl See automake bug#9928 and bug#10237. +am_make=${MAKE-make} +AC_CACHE_CHECK([whether $am_make supports nested variables], + [am_cv_make_support_nested_variables], + [if AS_ECHO([['TRUE=$(BAR$(V)) +BAR0=false +BAR1=true +V=1 +am__doit: + @$(TRUE) +.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then + am_cv_make_support_nested_variables=yes +else + am_cv_make_support_nested_variables=no +fi]) +if test $am_cv_make_support_nested_variables = yes; then + dnl Using '$V' instead of '$(V)' breaks IRIX make. + AM_V='$(V)' + AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' +else + AM_V=$AM_DEFAULT_VERBOSITY + AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY +fi +AC_SUBST([AM_V])dnl +AM_SUBST_NOTMAKE([AM_V])dnl +AC_SUBST([AM_DEFAULT_V])dnl +AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl +AC_SUBST([AM_DEFAULT_VERBOSITY])dnl +AM_BACKSLASH='\' +AC_SUBST([AM_BACKSLASH])dnl +_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl +]) + +# Copyright (C) 2001-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_PROG_INSTALL_STRIP +# --------------------- +# One issue with vendor 'install' (even GNU) is that you can't +# specify the program used to strip binaries. This is especially +# annoying in cross-compiling environments, where the build's strip +# is unlikely to handle the host's binaries. +# Fortunately install-sh will honor a STRIPPROG variable, so we +# always use install-sh in "make install-strip", and initialize +# STRIPPROG with the value of the STRIP variable (set by the user). +AC_DEFUN([AM_PROG_INSTALL_STRIP], +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +# Installed binaries are usually stripped using 'strip' when the user +# run "make install-strip". However 'strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the 'STRIP' environment variable to overrule this program. +dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. +if test "$cross_compiling" != no; then + AC_CHECK_TOOL([STRIP], [strip], :) +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" +AC_SUBST([INSTALL_STRIP_PROGRAM])]) + +# Copyright (C) 2006-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# _AM_SUBST_NOTMAKE(VARIABLE) +# --------------------------- +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. +# This macro is traced by Automake. +AC_DEFUN([_AM_SUBST_NOTMAKE]) + +# AM_SUBST_NOTMAKE(VARIABLE) +# -------------------------- +# Public sister of _AM_SUBST_NOTMAKE. +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) + +# Check how to create a tarball. -*- Autoconf -*- + +# Copyright (C) 2004-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# _AM_PROG_TAR(FORMAT) +# -------------------- +# Check how to create a tarball in format FORMAT. +# FORMAT should be one of 'v7', 'ustar', or 'pax'. +# +# Substitute a variable $(am__tar) that is a command +# writing to stdout a FORMAT-tarball containing the directory +# $tardir. +# tardir=directory && $(am__tar) > result.tar +# +# Substitute a variable $(am__untar) that extract such +# a tarball read from stdin. +# $(am__untar) < result.tar +# +AC_DEFUN([_AM_PROG_TAR], +[# Always define AMTAR for backward compatibility. Yes, it's still used +# in the wild :-( We should find a proper way to deprecate it ... +AC_SUBST([AMTAR], ['$${TAR-tar}']) + +# We'll loop over all known methods to create a tar archive until one works. +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' + +m4_if([$1], [v7], + [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], + + [m4_case([$1], + [ustar], + [# The POSIX 1988 'ustar' format is defined with fixed-size fields. + # There is notably a 21 bits limit for the UID and the GID. In fact, + # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 + # and bug#13588). + am_max_uid=2097151 # 2^21 - 1 + am_max_gid=$am_max_uid + # The $UID and $GID variables are not portable, so we need to resort + # to the POSIX-mandated id(1) utility. Errors in the 'id' calls + # below are definitely unexpected, so allow the users to see them + # (that is, avoid stderr redirection). + am_uid=`id -u || echo unknown` + am_gid=`id -g || echo unknown` + AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) + if test $am_uid -le $am_max_uid; then + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + _am_tools=none + fi + AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) + if test $am_gid -le $am_max_gid; then + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + _am_tools=none + fi], + + [pax], + [], + + [m4_fatal([Unknown tar format])]) + + AC_MSG_CHECKING([how to create a $1 tar archive]) + + # Go ahead even if we have the value already cached. We do so because we + # need to set the values for the 'am__tar' and 'am__untar' variables. + _am_tools=${am_cv_prog_tar_$1-$_am_tools} + + for _am_tool in $_am_tools; do + case $_am_tool in + gnutar) + for _am_tar in tar gnutar gtar; do + AM_RUN_LOG([$_am_tar --version]) && break + done + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' + am__untar="$_am_tar -xf -" + ;; + plaintar) + # Must skip GNU tar: if it does not support --format= it doesn't create + # ustar tarball either. + (tar --version) >/dev/null 2>&1 && continue + am__tar='tar chf - "$$tardir"' + am__tar_='tar chf - "$tardir"' + am__untar='tar xf -' + ;; + pax) + am__tar='pax -L -x $1 -w "$$tardir"' + am__tar_='pax -L -x $1 -w "$tardir"' + am__untar='pax -r' + ;; + cpio) + am__tar='find "$$tardir" -print | cpio -o -H $1 -L' + am__tar_='find "$tardir" -print | cpio -o -H $1 -L' + am__untar='cpio -i -H $1 -d' + ;; + none) + am__tar=false + am__tar_=false + am__untar=false + ;; + esac + + # If the value was cached, stop now. We just wanted to have am__tar + # and am__untar set. + test -n "${am_cv_prog_tar_$1}" && break + + # tar/untar a dummy directory, and stop if the command works. + rm -rf conftest.dir + mkdir conftest.dir + echo GrepMe > conftest.dir/file + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) + rm -rf conftest.dir + if test -s conftest.tar; then + AM_RUN_LOG([$am__untar /dev/null 2>&1 && break + fi + done + rm -rf conftest.dir + + AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) + AC_MSG_RESULT([$am_cv_prog_tar_$1])]) + +AC_SUBST([am__tar]) +AC_SUBST([am__untar]) +]) # _AM_PROG_TAR + +m4_include([m4/as-gcc-inline-assembly.m4]) +m4_include([m4/ax_add_fortify_source.m4]) +m4_include([m4/libtool.m4]) +m4_include([m4/ltoptions.m4]) +m4_include([m4/ltsugar.m4]) +m4_include([m4/ltversion.m4]) +m4_include([m4/lt~obsolete.m4]) +m4_include([m4/opus-intrinsics.m4]) diff --git a/components/opus/libopus/celt/_kiss_fft_guts.h b/components/opus/libopus/celt/_kiss_fft_guts.h new file mode 100644 index 0000000..17392b3 --- /dev/null +++ b/components/opus/libopus/celt/_kiss_fft_guts.h @@ -0,0 +1,182 @@ +/*Copyright (c) 2003-2004, Mark Borgerding + + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE.*/ + +#ifndef KISS_FFT_GUTS_H +#define KISS_FFT_GUTS_H + +#define MIN(a,b) ((a)<(b) ? (a):(b)) +#define MAX(a,b) ((a)>(b) ? (a):(b)) + +/* kiss_fft.h + defines kiss_fft_scalar as either short or a float type + and defines + typedef struct { kiss_fft_scalar r; kiss_fft_scalar i; }kiss_fft_cpx; */ +#include "kiss_fft.h" + +/* + Explanation of macros dealing with complex math: + + C_MUL(m,a,b) : m = a*b + C_FIXDIV( c , div ) : if a fixed point impl., c /= div. noop otherwise + C_SUB( res, a,b) : res = a - b + C_SUBFROM( res , a) : res -= a + C_ADDTO( res , a) : res += a + * */ +#ifdef FIXED_POINT +#include "arch.h" + + +#define SAMP_MAX 2147483647 +#define TWID_MAX 32767 +#define TRIG_UPSCALE 1 + +#define SAMP_MIN -SAMP_MAX + + +# define S_MUL(a,b) MULT16_32_Q15(b, a) + +# define C_MUL(m,a,b) \ + do{ (m).r = SUB32_ovflw(S_MUL((a).r,(b).r) , S_MUL((a).i,(b).i)); \ + (m).i = ADD32_ovflw(S_MUL((a).r,(b).i) , S_MUL((a).i,(b).r)); }while(0) + +# define C_MULC(m,a,b) \ + do{ (m).r = ADD32_ovflw(S_MUL((a).r,(b).r) , S_MUL((a).i,(b).i)); \ + (m).i = SUB32_ovflw(S_MUL((a).i,(b).r) , S_MUL((a).r,(b).i)); }while(0) + +# define C_MULBYSCALAR( c, s ) \ + do{ (c).r = S_MUL( (c).r , s ) ;\ + (c).i = S_MUL( (c).i , s ) ; }while(0) + +# define DIVSCALAR(x,k) \ + (x) = S_MUL( x, (TWID_MAX-((k)>>1))/(k)+1 ) + +# define C_FIXDIV(c,div) \ + do { DIVSCALAR( (c).r , div); \ + DIVSCALAR( (c).i , div); }while (0) + +#define C_ADD( res, a,b)\ + do {(res).r=ADD32_ovflw((a).r,(b).r); (res).i=ADD32_ovflw((a).i,(b).i); \ + }while(0) +#define C_SUB( res, a,b)\ + do {(res).r=SUB32_ovflw((a).r,(b).r); (res).i=SUB32_ovflw((a).i,(b).i); \ + }while(0) +#define C_ADDTO( res , a)\ + do {(res).r = ADD32_ovflw((res).r, (a).r); (res).i = ADD32_ovflw((res).i,(a).i);\ + }while(0) + +#define C_SUBFROM( res , a)\ + do {(res).r = ADD32_ovflw((res).r,(a).r); (res).i = SUB32_ovflw((res).i,(a).i); \ + }while(0) + +#if defined(OPUS_ARM_INLINE_ASM) +#include "arm/kiss_fft_armv4.h" +#endif + +#if defined(OPUS_ARM_INLINE_EDSP) +#include "arm/kiss_fft_armv5e.h" +#endif +#if defined(MIPSr1_ASM) +#include "mips/kiss_fft_mipsr1.h" +#endif + +#else /* not FIXED_POINT*/ + +# define S_MUL(a,b) ( (a)*(b) ) +#define C_MUL(m,a,b) \ + do{ (m).r = (a).r*(b).r - (a).i*(b).i;\ + (m).i = (a).r*(b).i + (a).i*(b).r; }while(0) +#define C_MULC(m,a,b) \ + do{ (m).r = (a).r*(b).r + (a).i*(b).i;\ + (m).i = (a).i*(b).r - (a).r*(b).i; }while(0) + +#define C_MUL4(m,a,b) C_MUL(m,a,b) + +# define C_FIXDIV(c,div) /* NOOP */ +# define C_MULBYSCALAR( c, s ) \ + do{ (c).r *= (s);\ + (c).i *= (s); }while(0) +#endif + +#ifndef CHECK_OVERFLOW_OP +# define CHECK_OVERFLOW_OP(a,op,b) /* noop */ +#endif + +#ifndef C_ADD +#define C_ADD( res, a,b)\ + do { \ + CHECK_OVERFLOW_OP((a).r,+,(b).r)\ + CHECK_OVERFLOW_OP((a).i,+,(b).i)\ + (res).r=(a).r+(b).r; (res).i=(a).i+(b).i; \ + }while(0) +#define C_SUB( res, a,b)\ + do { \ + CHECK_OVERFLOW_OP((a).r,-,(b).r)\ + CHECK_OVERFLOW_OP((a).i,-,(b).i)\ + (res).r=(a).r-(b).r; (res).i=(a).i-(b).i; \ + }while(0) +#define C_ADDTO( res , a)\ + do { \ + CHECK_OVERFLOW_OP((res).r,+,(a).r)\ + CHECK_OVERFLOW_OP((res).i,+,(a).i)\ + (res).r += (a).r; (res).i += (a).i;\ + }while(0) + +#define C_SUBFROM( res , a)\ + do {\ + CHECK_OVERFLOW_OP((res).r,-,(a).r)\ + CHECK_OVERFLOW_OP((res).i,-,(a).i)\ + (res).r -= (a).r; (res).i -= (a).i; \ + }while(0) +#endif /* C_ADD defined */ + +#ifdef FIXED_POINT +/*# define KISS_FFT_COS(phase) TRIG_UPSCALE*floor(MIN(32767,MAX(-32767,.5+32768 * cos (phase)))) +# define KISS_FFT_SIN(phase) TRIG_UPSCALE*floor(MIN(32767,MAX(-32767,.5+32768 * sin (phase))))*/ +# define KISS_FFT_COS(phase) floor(.5+TWID_MAX*cos (phase)) +# define KISS_FFT_SIN(phase) floor(.5+TWID_MAX*sin (phase)) +# define HALF_OF(x) ((x)>>1) +#elif defined(USE_SIMD) +# define KISS_FFT_COS(phase) _mm_set1_ps( cos(phase) ) +# define KISS_FFT_SIN(phase) _mm_set1_ps( sin(phase) ) +# define HALF_OF(x) ((x)*_mm_set1_ps(.5f)) +#else +# define KISS_FFT_COS(phase) (kiss_fft_scalar) cos(phase) +# define KISS_FFT_SIN(phase) (kiss_fft_scalar) sin(phase) +# define HALF_OF(x) ((x)*.5f) +#endif + +#define kf_cexp(x,phase) \ + do{ \ + (x)->r = KISS_FFT_COS(phase);\ + (x)->i = KISS_FFT_SIN(phase);\ + }while(0) + +#define kf_cexp2(x,phase) \ + do{ \ + (x)->r = TRIG_UPSCALE*celt_cos_norm((phase));\ + (x)->i = TRIG_UPSCALE*celt_cos_norm((phase)-32768);\ +}while(0) + +#endif /* KISS_FFT_GUTS_H */ diff --git a/components/opus/libopus/celt/arch.h b/components/opus/libopus/celt/arch.h new file mode 100644 index 0000000..9f31514 --- /dev/null +++ b/components/opus/libopus/celt/arch.h @@ -0,0 +1,291 @@ +/* Copyright (c) 2003-2008 Jean-Marc Valin + Copyright (c) 2007-2008 CSIRO + Copyright (c) 2007-2009 Xiph.Org Foundation + Written by Jean-Marc Valin */ +/** + @file arch.h + @brief Various architecture definitions for CELT +*/ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifndef ARCH_H +#define ARCH_H + +#include "opus_types.h" +#include "opus_defines.h" + +# if !defined(__GNUC_PREREQ) +# if defined(__GNUC__)&&defined(__GNUC_MINOR__) +# define __GNUC_PREREQ(_maj,_min) \ + ((__GNUC__<<16)+__GNUC_MINOR__>=((_maj)<<16)+(_min)) +# else +# define __GNUC_PREREQ(_maj,_min) 0 +# endif +# endif + +#if OPUS_GNUC_PREREQ(3, 0) +#define opus_likely(x) (__builtin_expect(!!(x), 1)) +#define opus_unlikely(x) (__builtin_expect(!!(x), 0)) +#else +#define opus_likely(x) (!!(x)) +#define opus_unlikely(x) (!!(x)) +#endif + +#define CELT_SIG_SCALE 32768.f + +#define CELT_FATAL(str) celt_fatal(str, __FILE__, __LINE__); + +#if defined(ENABLE_ASSERTIONS) || defined(ENABLE_HARDENING) +#ifdef __GNUC__ +__attribute__((noreturn)) +#endif +void celt_fatal(const char *str, const char *file, int line); + +#if defined(CELT_C) && !defined(OVERRIDE_celt_fatal) +#include +#include +#ifdef __GNUC__ +__attribute__((noreturn)) +#endif +void celt_fatal(const char *str, const char *file, int line) +{ + fprintf (stderr, "Fatal (internal) error in %s, line %d: %s\n", file, line, str); + abort(); +} +#endif + +#define celt_assert(cond) {if (!(cond)) {CELT_FATAL("assertion failed: " #cond);}} +#define celt_assert2(cond, message) {if (!(cond)) {CELT_FATAL("assertion failed: " #cond "\n" message);}} +#define MUST_SUCCEED(call) celt_assert((call) == OPUS_OK) +#else +#define celt_assert(cond) +#define celt_assert2(cond, message) +#define MUST_SUCCEED(call) do {if((call) != OPUS_OK) {RESTORE_STACK; return OPUS_INTERNAL_ERROR;} } while (0) +#endif + +#if defined(ENABLE_ASSERTIONS) +#define celt_sig_assert(cond) {if (!(cond)) {CELT_FATAL("signal assertion failed: " #cond);}} +#else +#define celt_sig_assert(cond) +#endif + +#define IMUL32(a,b) ((a)*(b)) + +#define MIN16(a,b) ((a) < (b) ? (a) : (b)) /**< Minimum 16-bit value. */ +#define MAX16(a,b) ((a) > (b) ? (a) : (b)) /**< Maximum 16-bit value. */ +#define MIN32(a,b) ((a) < (b) ? (a) : (b)) /**< Minimum 32-bit value. */ +#define MAX32(a,b) ((a) > (b) ? (a) : (b)) /**< Maximum 32-bit value. */ +#define IMIN(a,b) ((a) < (b) ? (a) : (b)) /**< Minimum int value. */ +#define IMAX(a,b) ((a) > (b) ? (a) : (b)) /**< Maximum int value. */ +#define UADD32(a,b) ((a)+(b)) +#define USUB32(a,b) ((a)-(b)) + +/* Set this if opus_int64 is a native type of the CPU. */ +/* Assume that all LP64 architectures have fast 64-bit types; also x86_64 + (which can be ILP32 for x32) and Win64 (which is LLP64). */ +#if defined(__x86_64__) || defined(__LP64__) || defined(_WIN64) +#define OPUS_FAST_INT64 1 +#else +#define OPUS_FAST_INT64 0 +#endif + +#define PRINT_MIPS(file) + +#ifdef FIXED_POINT + +typedef opus_int16 opus_val16; +typedef opus_int32 opus_val32; +typedef opus_int64 opus_val64; + +typedef opus_val32 celt_sig; +typedef opus_val16 celt_norm; +typedef opus_val32 celt_ener; + +#define celt_isnan(x) 0 + +#define Q15ONE 32767 + +#define SIG_SHIFT 12 +/* Safe saturation value for 32-bit signals. Should be less than + 2^31*(1-0.85) to avoid blowing up on DC at deemphasis.*/ +#define SIG_SAT (300000000) + +#define NORM_SCALING 16384 + +#define DB_SHIFT 10 + +#define EPSILON 1 +#define VERY_SMALL 0 +#define VERY_LARGE16 ((opus_val16)32767) +#define Q15_ONE ((opus_val16)32767) + +#define SCALEIN(a) (a) +#define SCALEOUT(a) (a) + +#define ABS16(x) ((x) < 0 ? (-(x)) : (x)) +#define ABS32(x) ((x) < 0 ? (-(x)) : (x)) + +static OPUS_INLINE opus_int16 SAT16(opus_int32 x) { + return x > 32767 ? 32767 : x < -32768 ? -32768 : (opus_int16)x; +} + +#ifdef FIXED_DEBUG +#include "fixed_debug.h" +#else + +#include "fixed_generic.h" + +#ifdef OPUS_ARM_PRESUME_AARCH64_NEON_INTR +#include "arm/fixed_arm64.h" +#elif defined (OPUS_ARM_INLINE_EDSP) +#include "arm/fixed_armv5e.h" +#elif defined (OPUS_ARM_INLINE_ASM) +#include "arm/fixed_armv4.h" +#elif defined (BFIN_ASM) +#include "fixed_bfin.h" +#elif defined (TI_C5X_ASM) +#include "fixed_c5x.h" +#elif defined (TI_C6X_ASM) +#include "fixed_c6x.h" +#endif + +#endif + +#else /* FIXED_POINT */ + +typedef float opus_val16; +typedef float opus_val32; +typedef float opus_val64; + +typedef float celt_sig; +typedef float celt_norm; +typedef float celt_ener; + +#ifdef FLOAT_APPROX +/* This code should reliably detect NaN/inf even when -ffast-math is used. + Assumes IEEE 754 format. */ +static OPUS_INLINE int celt_isnan(float x) +{ + union {float f; opus_uint32 i;} in; + in.f = x; + return ((in.i>>23)&0xFF)==0xFF && (in.i&0x007FFFFF)!=0; +} +#else +#ifdef __FAST_MATH__ +#error Cannot build libopus with -ffast-math unless FLOAT_APPROX is defined. This could result in crashes on extreme (e.g. NaN) input +#endif +#define celt_isnan(x) ((x)!=(x)) +#endif + +#define Q15ONE 1.0f + +#define NORM_SCALING 1.f + +#define EPSILON 1e-15f +#define VERY_SMALL 1e-30f +#define VERY_LARGE16 1e15f +#define Q15_ONE ((opus_val16)1.f) + +/* This appears to be the same speed as C99's fabsf() but it's more portable. */ +#define ABS16(x) ((float)fabs(x)) +#define ABS32(x) ((float)fabs(x)) + +#define QCONST16(x,bits) (x) +#define QCONST32(x,bits) (x) + +#define NEG16(x) (-(x)) +#define NEG32(x) (-(x)) +#define NEG32_ovflw(x) (-(x)) +#define EXTRACT16(x) (x) +#define EXTEND32(x) (x) +#define SHR16(a,shift) (a) +#define SHL16(a,shift) (a) +#define SHR32(a,shift) (a) +#define SHL32(a,shift) (a) +#define PSHR32(a,shift) (a) +#define VSHR32(a,shift) (a) + +#define PSHR(a,shift) (a) +#define SHR(a,shift) (a) +#define SHL(a,shift) (a) +#define SATURATE(x,a) (x) +#define SATURATE16(x) (x) + +#define ROUND16(a,shift) (a) +#define SROUND16(a,shift) (a) +#define HALF16(x) (.5f*(x)) +#define HALF32(x) (.5f*(x)) + +#define ADD16(a,b) ((a)+(b)) +#define SUB16(a,b) ((a)-(b)) +#define ADD32(a,b) ((a)+(b)) +#define SUB32(a,b) ((a)-(b)) +#define ADD32_ovflw(a,b) ((a)+(b)) +#define SUB32_ovflw(a,b) ((a)-(b)) +#define MULT16_16_16(a,b) ((a)*(b)) +#define MULT16_16(a,b) ((opus_val32)(a)*(opus_val32)(b)) +#define MAC16_16(c,a,b) ((c)+(opus_val32)(a)*(opus_val32)(b)) + +#define MULT16_32_Q15(a,b) ((a)*(b)) +#define MULT16_32_Q16(a,b) ((a)*(b)) + +#define MULT32_32_Q31(a,b) ((a)*(b)) + +#define MAC16_32_Q15(c,a,b) ((c)+(a)*(b)) +#define MAC16_32_Q16(c,a,b) ((c)+(a)*(b)) + +#define MULT16_16_Q11_32(a,b) ((a)*(b)) +#define MULT16_16_Q11(a,b) ((a)*(b)) +#define MULT16_16_Q13(a,b) ((a)*(b)) +#define MULT16_16_Q14(a,b) ((a)*(b)) +#define MULT16_16_Q15(a,b) ((a)*(b)) +#define MULT16_16_P15(a,b) ((a)*(b)) +#define MULT16_16_P13(a,b) ((a)*(b)) +#define MULT16_16_P14(a,b) ((a)*(b)) +#define MULT16_32_P16(a,b) ((a)*(b)) + +#define DIV32_16(a,b) (((opus_val32)(a))/(opus_val16)(b)) +#define DIV32(a,b) (((opus_val32)(a))/(opus_val32)(b)) + +#define SCALEIN(a) ((a)*CELT_SIG_SCALE) +#define SCALEOUT(a) ((a)*(1/CELT_SIG_SCALE)) + +#define SIG2WORD16(x) (x) + +#endif /* !FIXED_POINT */ + +#ifndef GLOBAL_STACK_SIZE +#ifdef FIXED_POINT +/* �声� 16kHz SILK/CELT 解� scratch 需求远�于默认 120000(48kHz 立体声最大值)。 + ESP32-C3 无 PSRAM�空闲堆仅 ~68KB, 120KB 的 malloc 必然失败导致 opus_alloc_scratch + 返回 NULL -> PUSH 写 NULL -> Store access fault 崩溃。�为 45KB, 在 68KB 堆内�分�。 */ +#define GLOBAL_STACK_SIZE 46080 +#else +#define GLOBAL_STACK_SIZE 120000 +#endif +#endif + +#endif /* ARCH_H */ diff --git a/components/opus/libopus/celt/arm/arm2gnu.pl b/components/opus/libopus/celt/arm/arm2gnu.pl new file mode 100644 index 0000000..a2895f7 --- /dev/null +++ b/components/opus/libopus/celt/arm/arm2gnu.pl @@ -0,0 +1,353 @@ +#!/usr/bin/perl +# Copyright (C) 2002-2013 Xiph.org Foundation +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# +# - Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# - Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER +# OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +my $bigend; # little/big endian +my $nxstack; +my $apple = 0; +my $symprefix = ""; + +$nxstack = 0; + +eval 'exec /usr/local/bin/perl -S $0 ${1+"$@"}' + if $running_under_some_shell; + +while ($ARGV[0] =~ /^-/) { + $_ = shift; + last if /^--$/; + if (/^-n$/) { + $nflag++; + next; + } + if (/^--apple$/) { + $apple = 1; + $symprefix = "_"; + next; + } + die "I don't recognize this switch: $_\\n"; +} +$printit++ unless $nflag; + +$\ = "\n"; # automatically add newline on print +$n=0; + +$thumb = 0; # ARM mode by default, not Thumb. +@proc_stack = (); + +printf (" .syntax unified\n"); + +LINE: +while (<>) { + + # For ADRLs we need to add a new line after the substituted one. + $addPadding = 0; + + # First, we do not dare to touch *anything* inside double quotes, do we? + # Second, if you want a dollar character in the string, + # insert two of them -- that's how ARM C and assembler treat strings. + s/^([A-Za-z_]\w*)[ \t]+DCB[ \t]*\"/$1: .ascii \"/ && do { s/\$\$/\$/g; next }; + s/\bDCB\b[ \t]*\"/.ascii \"/ && do { s/\$\$/\$/g; next }; + s/^(\S+)\s+RN\s+(\S+)/$1 .req r$2/ && do { s/\$\$/\$/g; next }; + # If there's nothing on a line but a comment, don't try to apply any further + # substitutions (this is a cheap hack to avoid mucking up the license header) + s/^([ \t]*);/$1@/ && do { s/\$\$/\$/g; next }; + # If substituted -- leave immediately ! + + s/@/,:/; + s/;/@/; + while ( /@.*'/ ) { + s/(@.*)'/$1/g; + } + s/\{FALSE\}/0/g; + s/\{TRUE\}/1/g; + s/\{(\w\w\w\w+)\}/$1/g; + s/\bINCLUDE[ \t]*([^ \t\n]+)/.include \"$1\"/; + s/\bGET[ \t]*([^ \t\n]+)/.include \"${ my $x=$1; $x =~ s|\.s|-gnu.S|; \$x }\"/; + s/\bIMPORT\b/.extern/; + s/\bEXPORT\b\s*/.global $symprefix/; + s/^(\s+)\[/$1IF/; + s/^(\s+)\|/$1ELSE/; + s/^(\s+)\]/$1ENDIF/; + s/IF *:DEF:/ .ifdef/; + s/IF *:LNOT: *:DEF:/ .ifndef/; + s/ELSE/ .else/; + s/ENDIF/ .endif/; + + if( /\bIF\b/ ) { + s/\bIF\b/ .if/; + s/=/==/; + } + if ( $n == 2) { + s/\$/\\/g; + } + if ($n == 1) { + s/\$//g; + s/label//g; + $n = 2; + } + if ( /MACRO/ ) { + s/MACRO *\n/.macro/; + $n=1; + } + if ( /\bMEND\b/ ) { + s/\bMEND\b/.endm/; + $n=0; + } + + # ".rdata" doesn't work in 'as' version 2.13.2, as it is ".rodata" there. + # + if ( /\bAREA\b/ ) { + my $align; + $align = "2"; + if ( /ALIGN=(\d+)/ ) { + $align = $1; + } + if ( /CODE/ ) { + $nxstack = 1; + } + s/^(.+)CODE(.+)READONLY(.*)/ .text/; + s/^(.+)DATA(.+)READONLY(.*)/ .section .rdata/; + s/^(.+)\|\|\.data\|\|(.+)/ .data/; + s/^(.+)\|\|\.bss\|\|(.+)/ .bss/; + s/$/; .p2align $align/; + # Enable NEON instructions but don't produce a binary that requires + # ARMv7. RVCT does not have equivalent directives, so we just do this + # for all CODE areas. + if ( /.text/ ) { + # Separating .arch, .fpu, etc., by semicolons does not work (gas + # thinks the semicolon is part of the arch name, even when there's + # whitespace separating them). Sadly this means our line numbers + # won't match the original source file (we could use the .line + # directive, which is documented to be obsolete, but then gdb will + # show the wrong line in the translated source file). + s/$/; .arch armv7-a\n .fpu neon\n .object_arch armv4t/ unless ($apple); + } + } + + s/\|\|\.constdata\$(\d+)\|\|/.L_CONST$1/; # ||.constdata$3|| + s/\|\|\.bss\$(\d+)\|\|/.L_BSS$1/; # ||.bss$2|| + s/\|\|\.data\$(\d+)\|\|/.L_DATA$1/; # ||.data$2|| + s/\|\|([a-zA-Z0-9_]+)\@([a-zA-Z0-9_]+)\|\|/@ $&/; + s/^(\s+)\%(\s)/ .space $1/; + + s/\|(.+)\.(\d+)\|/\.$1_$2/; # |L80.123| -> .L80_123 + s/\bCODE32\b/.code 32/ && do {$thumb = 0}; + s/\bCODE16\b/.code 16/ && do {$thumb = 1}; + if (/\bPROC\b/) + { + my $prefix; + my $proc; + /^([A-Za-z_\.]\w+)\b/; + $proc = $1; + $prefix = ""; + if ($proc) + { + $prefix = $prefix.sprintf("\t.type\t%s, %%function", $proc) unless ($apple); + # Make sure we $prefix isn't empty here (for the $apple case). + # We handle mangling the label here, make sure it doesn't match + # the label handling below (if $prefix would be empty). + $prefix = $prefix."; "; + push(@proc_stack, $proc); + s/^[A-Za-z_\.]\w+/$symprefix$&:/; + } + $prefix = $prefix."\t.thumb_func; " if ($thumb); + s/\bPROC\b/@ $&/; + $_ = $prefix.$_; + } + s/^(\s*)(S|Q|SH|U|UQ|UH)ASX\b/$1$2ADDSUBX/; + s/^(\s*)(S|Q|SH|U|UQ|UH)SAX\b/$1$2SUBADDX/; + if (/\bENDP\b/) + { + my $proc; + s/\bENDP\b/@ $&/; + $proc = pop(@proc_stack); + $_ = "\t.size $proc, .-$proc".$_ if ($proc && !$apple); + } + s/\bSUBT\b/@ $&/; + s/\bDATA\b/@ $&/; # DATA directive is deprecated -- Asm guide, p.7-25 + s/\bKEEP\b/@ $&/; + s/\bEXPORTAS\b/@ $&/; + s/\|\|(.)+\bEQU\b/@ $&/; + s/\|\|([\w\$]+)\|\|/$1/; + s/\bENTRY\b/@ $&/; + s/\bASSERT\b/@ $&/; + s/\bGBLL\b/@ $&/; + s/\bGBLA\b/@ $&/; + s/^\W+OPT\b/@ $&/; + s/:OR:/|/g; + s/:SHL:/<>/g; + s/:AND:/&/g; + s/:LAND:/&&/g; + s/CPSR/cpsr/; + s/SPSR/spsr/; + s/ALIGN$/.balign 4/; + s/ALIGN\s+([0-9x]+)$/.balign $1/; + s/psr_cxsf/psr_all/; + s/LTORG/.ltorg/; + s/^([A-Za-z_]\w*)[ \t]+EQU/ .set $1,/; + s/^([A-Za-z_]\w*)[ \t]+SETL/ .set $1,/; + s/^([A-Za-z_]\w*)[ \t]+SETA/ .set $1,/; + s/^([A-Za-z_]\w*)[ \t]+\*/ .set $1,/; + + # {PC} + 0xdeadfeed --> . + 0xdeadfeed + s/\{PC\} \+/ \. +/; + + # Single hex constant on the line ! + # + # >>> NOTE <<< + # Double-precision floats in gcc are always mixed-endian, which means + # bytes in two words are little-endian, but words are big-endian. + # So, 0x0000deadfeed0000 would be stored as 0x0000dead at low address + # and 0xfeed0000 at high address. + # + s/\bDCFD\b[ \t]+0x([a-fA-F0-9]{8})([a-fA-F0-9]{8})/.long 0x$1, 0x$2/; + # Only decimal constants on the line, no hex ! + s/\bDCFD\b[ \t]+([0-9\.\-]+)/.double $1/; + + # Single hex constant on the line ! +# s/\bDCFS\b[ \t]+0x([a-f0-9]{8})([a-f0-9]{8})/.long 0x$1, 0x$2/; + # Only decimal constants on the line, no hex ! +# s/\bDCFS\b[ \t]+([0-9\.\-]+)/.double $1/; + s/\bDCFS[ \t]+0x/.word 0x/; + s/\bDCFS\b/.float/; + + s/^([A-Za-z_]\w*)[ \t]+DCD/$1 .word/; + s/\bDCD\b/.word/; + s/^([A-Za-z_]\w*)[ \t]+DCW/$1 .short/; + s/\bDCW\b/.short/; + s/^([A-Za-z_]\w*)[ \t]+DCB/$1 .byte/; + s/\bDCB\b/.byte/; + s/^([A-Za-z_]\w*)[ \t]+\%/.comm $1,/; + s/^[A-Za-z_\.]\w+/$&:/; + s/^(\d+)/$1:/; + s/\%(\d+)/$1b_or_f/; + s/\%[Bb](\d+)/$1b/; + s/\%[Ff](\d+)/$1f/; + s/\%[Ff][Tt](\d+)/$1f/; + s/&([\dA-Fa-f]+)/0x$1/; + if ( /\b2_[01]+\b/ ) { + s/\b2_([01]+)\b/conv$1&&&&/g; + while ( /[01][01][01][01]&&&&/ ) { + s/0000&&&&/&&&&0/g; + s/0001&&&&/&&&&1/g; + s/0010&&&&/&&&&2/g; + s/0011&&&&/&&&&3/g; + s/0100&&&&/&&&&4/g; + s/0101&&&&/&&&&5/g; + s/0110&&&&/&&&&6/g; + s/0111&&&&/&&&&7/g; + s/1000&&&&/&&&&8/g; + s/1001&&&&/&&&&9/g; + s/1010&&&&/&&&&A/g; + s/1011&&&&/&&&&B/g; + s/1100&&&&/&&&&C/g; + s/1101&&&&/&&&&D/g; + s/1110&&&&/&&&&E/g; + s/1111&&&&/&&&&F/g; + } + s/000&&&&/&&&&0/g; + s/001&&&&/&&&&1/g; + s/010&&&&/&&&&2/g; + s/011&&&&/&&&&3/g; + s/100&&&&/&&&&4/g; + s/101&&&&/&&&&5/g; + s/110&&&&/&&&&6/g; + s/111&&&&/&&&&7/g; + s/00&&&&/&&&&0/g; + s/01&&&&/&&&&1/g; + s/10&&&&/&&&&2/g; + s/11&&&&/&&&&3/g; + s/0&&&&/&&&&0/g; + s/1&&&&/&&&&1/g; + s/conv&&&&/0x/g; + } + + if ( /commandline/) + { + if( /-bigend/) + { + $bigend=1; + } + } + + if ( /\bDCDU\b/ ) + { + my $cmd=$_; + my $value; + my $prefix; + my $w1; + my $w2; + my $w3; + my $w4; + + s/\s+DCDU\b/@ $&/; + + $cmd =~ /\bDCDU\b\s+0x(\d+)/; + $value = $1; + $value =~ /(\w\w)(\w\w)(\w\w)(\w\w)/; + $w1 = $1; + $w2 = $2; + $w3 = $3; + $w4 = $4; + + if( $bigend ne "") + { + # big endian + $prefix = "\t.byte\t0x".$w1.";". + "\t.byte\t0x".$w2.";". + "\t.byte\t0x".$w3.";". + "\t.byte\t0x".$w4."; "; + } + else + { + # little endian + $prefix = "\t.byte\t0x".$w4.";". + "\t.byte\t0x".$w3.";". + "\t.byte\t0x".$w2.";". + "\t.byte\t0x".$w1."; "; + } + $_=$prefix.$_; + } + + if ( /\badrl\b/i ) + { + s/\badrl\s+(\w+)\s*,\s*(\w+)/ldr $1,=$2/i; + $addPadding = 1; + } + s/\bEND\b/@ END/; +} continue { + printf ("%s", $_) if $printit; + if ($addPadding != 0) + { + printf (" mov r0,r0\n"); + $addPadding = 0; + } +} +#If we had a code section, mark that this object doesn't need an executable +# stack. +if ($nxstack && !$apple) { + printf (" .section\t.note.GNU-stack,\"\",\%\%progbits\n"); +} diff --git a/components/opus/libopus/celt/arm/arm_celt_map.c b/components/opus/libopus/celt/arm/arm_celt_map.c new file mode 100644 index 0000000..ca988b6 --- /dev/null +++ b/components/opus/libopus/celt/arm/arm_celt_map.c @@ -0,0 +1,160 @@ +/* Copyright (c) 2010 Xiph.Org Foundation + * Copyright (c) 2013 Parrot */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "pitch.h" +#include "kiss_fft.h" +#include "mdct.h" + +#if defined(OPUS_HAVE_RTCD) + +# if defined(OPUS_ARM_MAY_HAVE_NEON_INTR) && !defined(OPUS_ARM_PRESUME_NEON_INTR) +opus_val32 (*const CELT_INNER_PROD_IMPL[OPUS_ARCHMASK+1])(const opus_val16 *x, const opus_val16 *y, int N) = { + celt_inner_prod_c, /* ARMv4 */ + celt_inner_prod_c, /* EDSP */ + celt_inner_prod_c, /* Media */ + celt_inner_prod_neon /* NEON */ +}; + +void (*const DUAL_INNER_PROD_IMPL[OPUS_ARCHMASK+1])(const opus_val16 *x, const opus_val16 *y01, const opus_val16 *y02, + int N, opus_val32 *xy1, opus_val32 *xy2) = { + dual_inner_prod_c, /* ARMv4 */ + dual_inner_prod_c, /* EDSP */ + dual_inner_prod_c, /* Media */ + dual_inner_prod_neon /* NEON */ +}; +# endif + +# if defined(FIXED_POINT) +# if ((defined(OPUS_ARM_MAY_HAVE_NEON) && !defined(OPUS_ARM_PRESUME_NEON)) || \ + (defined(OPUS_ARM_MAY_HAVE_MEDIA) && !defined(OPUS_ARM_PRESUME_MEDIA)) || \ + (defined(OPUS_ARM_MAY_HAVE_EDSP) && !defined(OPUS_ARM_PRESUME_EDSP))) +opus_val32 (*const CELT_PITCH_XCORR_IMPL[OPUS_ARCHMASK+1])(const opus_val16 *, + const opus_val16 *, opus_val32 *, int, int, int) = { + celt_pitch_xcorr_c, /* ARMv4 */ + MAY_HAVE_EDSP(celt_pitch_xcorr), /* EDSP */ + MAY_HAVE_MEDIA(celt_pitch_xcorr), /* Media */ + MAY_HAVE_NEON(celt_pitch_xcorr) /* NEON */ +}; + +# endif +# else /* !FIXED_POINT */ +# if defined(OPUS_ARM_MAY_HAVE_NEON_INTR) && !defined(OPUS_ARM_PRESUME_NEON_INTR) +void (*const CELT_PITCH_XCORR_IMPL[OPUS_ARCHMASK+1])(const opus_val16 *, + const opus_val16 *, opus_val32 *, int, int, int) = { + celt_pitch_xcorr_c, /* ARMv4 */ + celt_pitch_xcorr_c, /* EDSP */ + celt_pitch_xcorr_c, /* Media */ + celt_pitch_xcorr_float_neon /* Neon */ +}; +# endif +# endif /* FIXED_POINT */ + +#if defined(FIXED_POINT) && defined(OPUS_HAVE_RTCD) && \ + defined(OPUS_ARM_MAY_HAVE_NEON_INTR) && !defined(OPUS_ARM_PRESUME_NEON_INTR) + +void (*const XCORR_KERNEL_IMPL[OPUS_ARCHMASK + 1])( + const opus_val16 *x, + const opus_val16 *y, + opus_val32 sum[4], + int len +) = { + xcorr_kernel_c, /* ARMv4 */ + xcorr_kernel_c, /* EDSP */ + xcorr_kernel_c, /* Media */ + xcorr_kernel_neon_fixed, /* Neon */ +}; + +#endif + +# if defined(OPUS_ARM_MAY_HAVE_NEON_INTR) +# if defined(HAVE_ARM_NE10) +# if defined(CUSTOM_MODES) +int (*const OPUS_FFT_ALLOC_ARCH_IMPL[OPUS_ARCHMASK+1])(kiss_fft_state *st) = { + opus_fft_alloc_arch_c, /* ARMv4 */ + opus_fft_alloc_arch_c, /* EDSP */ + opus_fft_alloc_arch_c, /* Media */ + opus_fft_alloc_arm_neon /* Neon with NE10 library support */ +}; + +void (*const OPUS_FFT_FREE_ARCH_IMPL[OPUS_ARCHMASK+1])(kiss_fft_state *st) = { + opus_fft_free_arch_c, /* ARMv4 */ + opus_fft_free_arch_c, /* EDSP */ + opus_fft_free_arch_c, /* Media */ + opus_fft_free_arm_neon /* Neon with NE10 */ +}; +# endif /* CUSTOM_MODES */ + +void (*const OPUS_FFT[OPUS_ARCHMASK+1])(const kiss_fft_state *cfg, + const kiss_fft_cpx *fin, + kiss_fft_cpx *fout) = { + opus_fft_c, /* ARMv4 */ + opus_fft_c, /* EDSP */ + opus_fft_c, /* Media */ + opus_fft_neon /* Neon with NE10 */ +}; + +void (*const OPUS_IFFT[OPUS_ARCHMASK+1])(const kiss_fft_state *cfg, + const kiss_fft_cpx *fin, + kiss_fft_cpx *fout) = { + opus_ifft_c, /* ARMv4 */ + opus_ifft_c, /* EDSP */ + opus_ifft_c, /* Media */ + opus_ifft_neon /* Neon with NE10 */ +}; + +void (*const CLT_MDCT_FORWARD_IMPL[OPUS_ARCHMASK+1])(const mdct_lookup *l, + kiss_fft_scalar *in, + kiss_fft_scalar * OPUS_RESTRICT out, + const opus_val16 *window, + int overlap, int shift, + int stride, int arch) = { + clt_mdct_forward_c, /* ARMv4 */ + clt_mdct_forward_c, /* EDSP */ + clt_mdct_forward_c, /* Media */ + clt_mdct_forward_neon /* Neon with NE10 */ +}; + +void (*const CLT_MDCT_BACKWARD_IMPL[OPUS_ARCHMASK+1])(const mdct_lookup *l, + kiss_fft_scalar *in, + kiss_fft_scalar * OPUS_RESTRICT out, + const opus_val16 *window, + int overlap, int shift, + int stride, int arch) = { + clt_mdct_backward_c, /* ARMv4 */ + clt_mdct_backward_c, /* EDSP */ + clt_mdct_backward_c, /* Media */ + clt_mdct_backward_neon /* Neon with NE10 */ +}; + +# endif /* HAVE_ARM_NE10 */ +# endif /* OPUS_ARM_MAY_HAVE_NEON_INTR */ + +#endif /* OPUS_HAVE_RTCD */ diff --git a/components/opus/libopus/celt/arm/armcpu.c b/components/opus/libopus/celt/arm/armcpu.c new file mode 100644 index 0000000..694a63b --- /dev/null +++ b/components/opus/libopus/celt/arm/armcpu.c @@ -0,0 +1,185 @@ +/* Copyright (c) 2010 Xiph.Org Foundation + * Copyright (c) 2013 Parrot */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/* Original code from libtheora modified to suit to Opus */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#ifdef OPUS_HAVE_RTCD + +#include "armcpu.h" +#include "cpu_support.h" +#include "os_support.h" +#include "opus_types.h" +#include "arch.h" + +#define OPUS_CPU_ARM_V4_FLAG (1< + +static OPUS_INLINE opus_uint32 opus_cpu_capabilities(void){ + opus_uint32 flags; + flags=0; + /* MSVC has no OPUS_INLINE __asm support for ARM, but it does let you __emit + * instructions via their assembled hex code. + * All of these instructions should be essentially nops. */ +# if defined(OPUS_ARM_MAY_HAVE_EDSP) || defined(OPUS_ARM_MAY_HAVE_MEDIA) \ + || defined(OPUS_ARM_MAY_HAVE_NEON) || defined(OPUS_ARM_MAY_HAVE_NEON_INTR) + __try{ + /*PLD [r13]*/ + __emit(0xF5DDF000); + flags|=OPUS_CPU_ARM_EDSP_FLAG; + } + __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){ + /*Ignore exception.*/ + } +# if defined(OPUS_ARM_MAY_HAVE_MEDIA) \ + || defined(OPUS_ARM_MAY_HAVE_NEON) || defined(OPUS_ARM_MAY_HAVE_NEON_INTR) + __try{ + /*SHADD8 r3,r3,r3*/ + __emit(0xE6333F93); + flags|=OPUS_CPU_ARM_MEDIA_FLAG; + } + __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){ + /*Ignore exception.*/ + } +# if defined(OPUS_ARM_MAY_HAVE_NEON) || defined(OPUS_ARM_MAY_HAVE_NEON_INTR) + __try{ + /*VORR q0,q0,q0*/ + __emit(0xF2200150); + flags|=OPUS_CPU_ARM_NEON_FLAG; + } + __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){ + /*Ignore exception.*/ + } +# endif +# endif +# endif + return flags; +} + +#elif defined(__linux__) +/* Linux based */ +opus_uint32 opus_cpu_capabilities(void) +{ + opus_uint32 flags = 0; + FILE *cpuinfo; + + /* Reading /proc/self/auxv would be easier, but that doesn't work reliably on + * Android */ + cpuinfo = fopen("/proc/cpuinfo", "r"); + + if(cpuinfo != NULL) + { + /* 512 should be enough for anybody (it's even enough for all the flags that + * x86 has accumulated... so far). */ + char buf[512]; + + while(fgets(buf, 512, cpuinfo) != NULL) + { +# if defined(OPUS_ARM_MAY_HAVE_EDSP) || defined(OPUS_ARM_MAY_HAVE_MEDIA) \ + || defined(OPUS_ARM_MAY_HAVE_NEON) || defined(OPUS_ARM_MAY_HAVE_NEON_INTR) + /* Search for edsp and neon flag */ + if(memcmp(buf, "Features", 8) == 0) + { + char *p; + p = strstr(buf, " edsp"); + if(p != NULL && (p[5] == ' ' || p[5] == '\n')) + flags |= OPUS_CPU_ARM_EDSP_FLAG; + +# if defined(OPUS_ARM_MAY_HAVE_NEON) || defined(OPUS_ARM_MAY_HAVE_NEON_INTR) + p = strstr(buf, " neon"); + if(p != NULL && (p[5] == ' ' || p[5] == '\n')) + flags |= OPUS_CPU_ARM_NEON_FLAG; +# endif + } +# endif + +# if defined(OPUS_ARM_MAY_HAVE_MEDIA) \ + || defined(OPUS_ARM_MAY_HAVE_NEON) || defined(OPUS_ARM_MAY_HAVE_NEON_INTR) + /* Search for media capabilities (>= ARMv6) */ + if(memcmp(buf, "CPU architecture:", 17) == 0) + { + int version; + version = atoi(buf+17); + + if(version >= 6) + flags |= OPUS_CPU_ARM_MEDIA_FLAG; + } +# endif + } + + fclose(cpuinfo); + } + return flags; +} +#else +/* The feature registers which can tell us what the processor supports are + * accessible in priveleged modes only, so we can't have a general user-space + * detection method like on x86.*/ +# error "Configured to use ARM asm but no CPU detection method available for " \ + "your platform. Reconfigure with --disable-rtcd (or send patches)." +#endif + +int opus_select_arch(void) +{ + opus_uint32 flags = opus_cpu_capabilities(); + int arch = 0; + + if(!(flags & OPUS_CPU_ARM_EDSP_FLAG)) { + /* Asserts ensure arch values are sequential */ + celt_assert(arch == OPUS_ARCH_ARM_V4); + return arch; + } + arch++; + + if(!(flags & OPUS_CPU_ARM_MEDIA_FLAG)) { + celt_assert(arch == OPUS_ARCH_ARM_EDSP); + return arch; + } + arch++; + + if(!(flags & OPUS_CPU_ARM_NEON_FLAG)) { + celt_assert(arch == OPUS_ARCH_ARM_MEDIA); + return arch; + } + arch++; + + celt_assert(arch == OPUS_ARCH_ARM_NEON); + return arch; +} + +#endif diff --git a/components/opus/libopus/celt/arm/armcpu.h b/components/opus/libopus/celt/arm/armcpu.h new file mode 100644 index 0000000..820262f --- /dev/null +++ b/components/opus/libopus/celt/arm/armcpu.h @@ -0,0 +1,77 @@ +/* Copyright (c) 2010 Xiph.Org Foundation + * Copyright (c) 2013 Parrot */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#if !defined(ARMCPU_H) +# define ARMCPU_H + +# if defined(OPUS_ARM_MAY_HAVE_EDSP) +# define MAY_HAVE_EDSP(name) name ## _edsp +# else +# define MAY_HAVE_EDSP(name) name ## _c +# endif + +# if defined(OPUS_ARM_MAY_HAVE_MEDIA) +# define MAY_HAVE_MEDIA(name) name ## _media +# else +# define MAY_HAVE_MEDIA(name) MAY_HAVE_EDSP(name) +# endif + +# if defined(OPUS_ARM_MAY_HAVE_NEON) +# define MAY_HAVE_NEON(name) name ## _neon +# else +# define MAY_HAVE_NEON(name) MAY_HAVE_MEDIA(name) +# endif + +# if defined(OPUS_ARM_PRESUME_EDSP) +# define PRESUME_EDSP(name) name ## _edsp +# else +# define PRESUME_EDSP(name) name ## _c +# endif + +# if defined(OPUS_ARM_PRESUME_MEDIA) +# define PRESUME_MEDIA(name) name ## _media +# else +# define PRESUME_MEDIA(name) PRESUME_EDSP(name) +# endif + +# if defined(OPUS_ARM_PRESUME_NEON) +# define PRESUME_NEON(name) name ## _neon +# else +# define PRESUME_NEON(name) PRESUME_MEDIA(name) +# endif + +# if defined(OPUS_HAVE_RTCD) +int opus_select_arch(void); + +#define OPUS_ARCH_ARM_V4 (0) +#define OPUS_ARCH_ARM_EDSP (1) +#define OPUS_ARCH_ARM_MEDIA (2) +#define OPUS_ARCH_ARM_NEON (3) + +# endif + +#endif diff --git a/components/opus/libopus/celt/arm/armopts.s.in b/components/opus/libopus/celt/arm/armopts.s.in new file mode 100644 index 0000000..3d8aaf2 --- /dev/null +++ b/components/opus/libopus/celt/arm/armopts.s.in @@ -0,0 +1,37 @@ +/* Copyright (C) 2013 Mozilla Corporation */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +; Set the following to 1 if we have EDSP instructions +; (LDRD/STRD, etc., ARMv5E and later). +OPUS_ARM_MAY_HAVE_EDSP * @OPUS_ARM_MAY_HAVE_EDSP@ + +; Set the following to 1 if we have ARMv6 media instructions. +OPUS_ARM_MAY_HAVE_MEDIA * @OPUS_ARM_MAY_HAVE_MEDIA@ + +; Set the following to 1 if we have NEON (some ARMv7) +OPUS_ARM_MAY_HAVE_NEON * @OPUS_ARM_MAY_HAVE_NEON@ + +END diff --git a/components/opus/libopus/celt/arm/celt_fft_ne10.c b/components/opus/libopus/celt/arm/celt_fft_ne10.c new file mode 100644 index 0000000..ea5fd78 --- /dev/null +++ b/components/opus/libopus/celt/arm/celt_fft_ne10.c @@ -0,0 +1,173 @@ +/* Copyright (c) 2015 Xiph.Org Foundation + Written by Viswanath Puttagunta */ +/** + @file celt_fft_ne10.c + @brief ARM Neon optimizations for fft using NE10 library + */ + +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifndef SKIP_CONFIG_H +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif +#endif + +#include +#include "os_support.h" +#include "kiss_fft.h" +#include "stack_alloc.h" + +#if !defined(FIXED_POINT) +# define NE10_FFT_ALLOC_C2C_TYPE_NEON ne10_fft_alloc_c2c_float32_neon +# define NE10_FFT_CFG_TYPE_T ne10_fft_cfg_float32_t +# define NE10_FFT_STATE_TYPE_T ne10_fft_state_float32_t +# define NE10_FFT_DESTROY_C2C_TYPE ne10_fft_destroy_c2c_float32 +# define NE10_FFT_CPX_TYPE_T ne10_fft_cpx_float32_t +# define NE10_FFT_C2C_1D_TYPE_NEON ne10_fft_c2c_1d_float32_neon +#else +# define NE10_FFT_ALLOC_C2C_TYPE_NEON(nfft) ne10_fft_alloc_c2c_int32_neon(nfft) +# define NE10_FFT_CFG_TYPE_T ne10_fft_cfg_int32_t +# define NE10_FFT_STATE_TYPE_T ne10_fft_state_int32_t +# define NE10_FFT_DESTROY_C2C_TYPE ne10_fft_destroy_c2c_int32 +# define NE10_FFT_DESTROY_C2C_TYPE ne10_fft_destroy_c2c_int32 +# define NE10_FFT_CPX_TYPE_T ne10_fft_cpx_int32_t +# define NE10_FFT_C2C_1D_TYPE_NEON ne10_fft_c2c_1d_int32_neon +#endif + +#if defined(CUSTOM_MODES) + +/* nfft lengths in NE10 that support scaled fft */ +# define NE10_FFTSCALED_SUPPORT_MAX 4 +static const int ne10_fft_scaled_support[NE10_FFTSCALED_SUPPORT_MAX] = { + 480, 240, 120, 60 +}; + +int opus_fft_alloc_arm_neon(kiss_fft_state *st) +{ + int i; + size_t memneeded = sizeof(struct arch_fft_state); + + st->arch_fft = (arch_fft_state *)opus_alloc(memneeded); + if (!st->arch_fft) + return -1; + + for (i = 0; i < NE10_FFTSCALED_SUPPORT_MAX; i++) { + if(st->nfft == ne10_fft_scaled_support[i]) + break; + } + if (i == NE10_FFTSCALED_SUPPORT_MAX) { + /* This nfft length (scaled fft) is not supported in NE10 */ + st->arch_fft->is_supported = 0; + st->arch_fft->priv = NULL; + } + else { + st->arch_fft->is_supported = 1; + st->arch_fft->priv = (void *)NE10_FFT_ALLOC_C2C_TYPE_NEON(st->nfft); + if (st->arch_fft->priv == NULL) { + return -1; + } + } + return 0; +} + +void opus_fft_free_arm_neon(kiss_fft_state *st) +{ + NE10_FFT_CFG_TYPE_T cfg; + + if (!st->arch_fft) + return; + + cfg = (NE10_FFT_CFG_TYPE_T)st->arch_fft->priv; + if (cfg) + NE10_FFT_DESTROY_C2C_TYPE(cfg); + opus_free(st->arch_fft); +} +#endif + +void opus_fft_neon(const kiss_fft_state *st, + const kiss_fft_cpx *fin, + kiss_fft_cpx *fout) +{ + NE10_FFT_STATE_TYPE_T state; + NE10_FFT_CFG_TYPE_T cfg = &state; + VARDECL(NE10_FFT_CPX_TYPE_T, buffer); + SAVE_STACK; + ALLOC(buffer, st->nfft, NE10_FFT_CPX_TYPE_T); + + if (!st->arch_fft->is_supported) { + /* This nfft length (scaled fft) not supported in NE10 */ + opus_fft_c(st, fin, fout); + } + else { + memcpy((void *)cfg, st->arch_fft->priv, sizeof(NE10_FFT_STATE_TYPE_T)); + state.buffer = (NE10_FFT_CPX_TYPE_T *)&buffer[0]; +#if !defined(FIXED_POINT) + state.is_forward_scaled = 1; + + NE10_FFT_C2C_1D_TYPE_NEON((NE10_FFT_CPX_TYPE_T *)fout, + (NE10_FFT_CPX_TYPE_T *)fin, + cfg, 0); +#else + NE10_FFT_C2C_1D_TYPE_NEON((NE10_FFT_CPX_TYPE_T *)fout, + (NE10_FFT_CPX_TYPE_T *)fin, + cfg, 0, 1); +#endif + } + RESTORE_STACK; +} + +void opus_ifft_neon(const kiss_fft_state *st, + const kiss_fft_cpx *fin, + kiss_fft_cpx *fout) +{ + NE10_FFT_STATE_TYPE_T state; + NE10_FFT_CFG_TYPE_T cfg = &state; + VARDECL(NE10_FFT_CPX_TYPE_T, buffer); + SAVE_STACK; + ALLOC(buffer, st->nfft, NE10_FFT_CPX_TYPE_T); + + if (!st->arch_fft->is_supported) { + /* This nfft length (scaled fft) not supported in NE10 */ + opus_ifft_c(st, fin, fout); + } + else { + memcpy((void *)cfg, st->arch_fft->priv, sizeof(NE10_FFT_STATE_TYPE_T)); + state.buffer = (NE10_FFT_CPX_TYPE_T *)&buffer[0]; +#if !defined(FIXED_POINT) + state.is_backward_scaled = 0; + + NE10_FFT_C2C_1D_TYPE_NEON((NE10_FFT_CPX_TYPE_T *)fout, + (NE10_FFT_CPX_TYPE_T *)fin, + cfg, 1); +#else + NE10_FFT_C2C_1D_TYPE_NEON((NE10_FFT_CPX_TYPE_T *)fout, + (NE10_FFT_CPX_TYPE_T *)fin, + cfg, 1, 0); +#endif + } + RESTORE_STACK; +} diff --git a/components/opus/libopus/celt/arm/celt_mdct_ne10.c b/components/opus/libopus/celt/arm/celt_mdct_ne10.c new file mode 100644 index 0000000..3531d02 --- /dev/null +++ b/components/opus/libopus/celt/arm/celt_mdct_ne10.c @@ -0,0 +1,258 @@ +/* Copyright (c) 2015 Xiph.Org Foundation + Written by Viswanath Puttagunta */ +/** + @file celt_mdct_ne10.c + @brief ARM Neon optimizations for mdct using NE10 library + */ + +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifndef SKIP_CONFIG_H +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif +#endif + +#include "kiss_fft.h" +#include "_kiss_fft_guts.h" +#include "mdct.h" +#include "stack_alloc.h" + +void clt_mdct_forward_neon(const mdct_lookup *l, + kiss_fft_scalar *in, + kiss_fft_scalar * OPUS_RESTRICT out, + const opus_val16 *window, + int overlap, int shift, int stride, int arch) +{ + int i; + int N, N2, N4; + VARDECL(kiss_fft_scalar, f); + VARDECL(kiss_fft_cpx, f2); + const kiss_fft_state *st = l->kfft[shift]; + const kiss_twiddle_scalar *trig; + + SAVE_STACK; + + N = l->n; + trig = l->trig; + for (i=0;i>= 1; + trig += N; + } + N2 = N>>1; + N4 = N>>2; + + ALLOC(f, N2, kiss_fft_scalar); + ALLOC(f2, N4, kiss_fft_cpx); + + /* Consider the input to be composed of four blocks: [a, b, c, d] */ + /* Window, shuffle, fold */ + { + /* Temp pointers to make it really clear to the compiler what we're doing */ + const kiss_fft_scalar * OPUS_RESTRICT xp1 = in+(overlap>>1); + const kiss_fft_scalar * OPUS_RESTRICT xp2 = in+N2-1+(overlap>>1); + kiss_fft_scalar * OPUS_RESTRICT yp = f; + const opus_val16 * OPUS_RESTRICT wp1 = window+(overlap>>1); + const opus_val16 * OPUS_RESTRICT wp2 = window+(overlap>>1)-1; + for(i=0;i<((overlap+3)>>2);i++) + { + /* Real part arranged as -d-cR, Imag part arranged as -b+aR*/ + *yp++ = MULT16_32_Q15(*wp2, xp1[N2]) + MULT16_32_Q15(*wp1,*xp2); + *yp++ = MULT16_32_Q15(*wp1, *xp1) - MULT16_32_Q15(*wp2, xp2[-N2]); + xp1+=2; + xp2-=2; + wp1+=2; + wp2-=2; + } + wp1 = window; + wp2 = window+overlap-1; + for(;i>2);i++) + { + /* Real part arranged as a-bR, Imag part arranged as -c-dR */ + *yp++ = *xp2; + *yp++ = *xp1; + xp1+=2; + xp2-=2; + } + for(;ii,t[N4+i]) - S_MUL(fp->r,t[i]); + yi = S_MUL(fp->r,t[N4+i]) + S_MUL(fp->i,t[i]); + *yp1 = yr; + *yp2 = yi; + fp++; + yp1 += 2*stride; + yp2 -= 2*stride; + } + } + RESTORE_STACK; +} + +void clt_mdct_backward_neon(const mdct_lookup *l, + kiss_fft_scalar *in, + kiss_fft_scalar * OPUS_RESTRICT out, + const opus_val16 * OPUS_RESTRICT window, + int overlap, int shift, int stride, int arch) +{ + int i; + int N, N2, N4; + VARDECL(kiss_fft_scalar, f); + const kiss_twiddle_scalar *trig; + const kiss_fft_state *st = l->kfft[shift]; + + N = l->n; + trig = l->trig; + for (i=0;i>= 1; + trig += N; + } + N2 = N>>1; + N4 = N>>2; + + ALLOC(f, N2, kiss_fft_scalar); + + /* Pre-rotate */ + { + /* Temp pointers to make it really clear to the compiler what we're doing */ + const kiss_fft_scalar * OPUS_RESTRICT xp1 = in; + const kiss_fft_scalar * OPUS_RESTRICT xp2 = in+stride*(N2-1); + kiss_fft_scalar * OPUS_RESTRICT yp = f; + const kiss_twiddle_scalar * OPUS_RESTRICT t = &trig[0]; + for(i=0;i>1)), arch); + + /* Post-rotate and de-shuffle from both ends of the buffer at once to make + it in-place. */ + { + kiss_fft_scalar * yp0 = out+(overlap>>1); + kiss_fft_scalar * yp1 = out+(overlap>>1)+N2-2; + const kiss_twiddle_scalar *t = &trig[0]; + /* Loop to (N4+1)>>1 to handle odd N4. When N4 is odd, the + middle pair will be computed twice. */ + for(i=0;i<(N4+1)>>1;i++) + { + kiss_fft_scalar re, im, yr, yi; + kiss_twiddle_scalar t0, t1; + re = yp0[0]; + im = yp0[1]; + t0 = t[i]; + t1 = t[N4+i]; + /* We'd scale up by 2 here, but instead it's done when mixing the windows */ + yr = S_MUL(re,t0) + S_MUL(im,t1); + yi = S_MUL(re,t1) - S_MUL(im,t0); + re = yp1[0]; + im = yp1[1]; + yp0[0] = yr; + yp1[1] = yi; + + t0 = t[(N4-i-1)]; + t1 = t[(N2-i-1)]; + /* We'd scale up by 2 here, but instead it's done when mixing the windows */ + yr = S_MUL(re,t0) + S_MUL(im,t1); + yi = S_MUL(re,t1) - S_MUL(im,t0); + yp1[0] = yr; + yp0[1] = yi; + yp0 += 2; + yp1 -= 2; + } + } + + /* Mirror on both sides for TDAC */ + { + kiss_fft_scalar * OPUS_RESTRICT xp1 = out+overlap-1; + kiss_fft_scalar * OPUS_RESTRICT yp1 = out; + const opus_val16 * OPUS_RESTRICT wp1 = window; + const opus_val16 * OPUS_RESTRICT wp2 = window+overlap-1; + + for(i = 0; i < overlap/2; i++) + { + kiss_fft_scalar x1, x2; + x1 = *xp1; + x2 = *yp1; + *yp1++ = MULT16_32_Q15(*wp2, x2) - MULT16_32_Q15(*wp1, x1); + *xp1-- = MULT16_32_Q15(*wp1, x2) + MULT16_32_Q15(*wp2, x1); + wp1++; + wp2--; + } + } + RESTORE_STACK; +} diff --git a/components/opus/libopus/celt/arm/celt_neon_intr.c b/components/opus/libopus/celt/arm/celt_neon_intr.c new file mode 100644 index 0000000..effda76 --- /dev/null +++ b/components/opus/libopus/celt/arm/celt_neon_intr.c @@ -0,0 +1,211 @@ +/* Copyright (c) 2014-2015 Xiph.Org Foundation + Written by Viswanath Puttagunta */ +/** + @file celt_neon_intr.c + @brief ARM Neon Intrinsic optimizations for celt + */ + +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include "../pitch.h" + +#if defined(FIXED_POINT) +void xcorr_kernel_neon_fixed(const opus_val16 * x, const opus_val16 * y, opus_val32 sum[4], int len) +{ + int j; + int32x4_t a = vld1q_s32(sum); + /* Load y[0...3] */ + /* This requires len>0 to always be valid (which we assert in the C code). */ + int16x4_t y0 = vld1_s16(y); + y += 4; + + for (j = 0; j + 8 <= len; j += 8) + { + /* Load x[0...7] */ + int16x8_t xx = vld1q_s16(x); + int16x4_t x0 = vget_low_s16(xx); + int16x4_t x4 = vget_high_s16(xx); + /* Load y[4...11] */ + int16x8_t yy = vld1q_s16(y); + int16x4_t y4 = vget_low_s16(yy); + int16x4_t y8 = vget_high_s16(yy); + int32x4_t a0 = vmlal_lane_s16(a, y0, x0, 0); + int32x4_t a1 = vmlal_lane_s16(a0, y4, x4, 0); + + int16x4_t y1 = vext_s16(y0, y4, 1); + int16x4_t y5 = vext_s16(y4, y8, 1); + int32x4_t a2 = vmlal_lane_s16(a1, y1, x0, 1); + int32x4_t a3 = vmlal_lane_s16(a2, y5, x4, 1); + + int16x4_t y2 = vext_s16(y0, y4, 2); + int16x4_t y6 = vext_s16(y4, y8, 2); + int32x4_t a4 = vmlal_lane_s16(a3, y2, x0, 2); + int32x4_t a5 = vmlal_lane_s16(a4, y6, x4, 2); + + int16x4_t y3 = vext_s16(y0, y4, 3); + int16x4_t y7 = vext_s16(y4, y8, 3); + int32x4_t a6 = vmlal_lane_s16(a5, y3, x0, 3); + int32x4_t a7 = vmlal_lane_s16(a6, y7, x4, 3); + + y0 = y8; + a = a7; + x += 8; + y += 8; + } + + for (; j < len; j++) + { + int16x4_t x0 = vld1_dup_s16(x); /* load next x */ + int32x4_t a0 = vmlal_s16(a, y0, x0); + + int16x4_t y4 = vld1_dup_s16(y); /* load next y */ + y0 = vext_s16(y0, y4, 1); + a = a0; + x++; + y++; + } + + vst1q_s32(sum, a); +} + +#else +/* + * Function: xcorr_kernel_neon_float + * --------------------------------- + * Computes 4 correlation values and stores them in sum[4] + */ +static void xcorr_kernel_neon_float(const float32_t *x, const float32_t *y, + float32_t sum[4], int len) { + float32x4_t YY[3]; + float32x4_t YEXT[3]; + float32x4_t XX[2]; + float32x2_t XX_2; + float32x4_t SUMM; + const float32_t *xi = x; + const float32_t *yi = y; + + celt_assert(len>0); + + YY[0] = vld1q_f32(yi); + SUMM = vdupq_n_f32(0); + + /* Consume 8 elements in x vector and 12 elements in y + * vector. However, the 12'th element never really gets + * touched in this loop. So, if len == 8, then we only + * must access y[0] to y[10]. y[11] must not be accessed + * hence make sure len > 8 and not len >= 8 + */ + while (len > 8) { + yi += 4; + YY[1] = vld1q_f32(yi); + yi += 4; + YY[2] = vld1q_f32(yi); + + XX[0] = vld1q_f32(xi); + xi += 4; + XX[1] = vld1q_f32(xi); + xi += 4; + + SUMM = vmlaq_lane_f32(SUMM, YY[0], vget_low_f32(XX[0]), 0); + YEXT[0] = vextq_f32(YY[0], YY[1], 1); + SUMM = vmlaq_lane_f32(SUMM, YEXT[0], vget_low_f32(XX[0]), 1); + YEXT[1] = vextq_f32(YY[0], YY[1], 2); + SUMM = vmlaq_lane_f32(SUMM, YEXT[1], vget_high_f32(XX[0]), 0); + YEXT[2] = vextq_f32(YY[0], YY[1], 3); + SUMM = vmlaq_lane_f32(SUMM, YEXT[2], vget_high_f32(XX[0]), 1); + + SUMM = vmlaq_lane_f32(SUMM, YY[1], vget_low_f32(XX[1]), 0); + YEXT[0] = vextq_f32(YY[1], YY[2], 1); + SUMM = vmlaq_lane_f32(SUMM, YEXT[0], vget_low_f32(XX[1]), 1); + YEXT[1] = vextq_f32(YY[1], YY[2], 2); + SUMM = vmlaq_lane_f32(SUMM, YEXT[1], vget_high_f32(XX[1]), 0); + YEXT[2] = vextq_f32(YY[1], YY[2], 3); + SUMM = vmlaq_lane_f32(SUMM, YEXT[2], vget_high_f32(XX[1]), 1); + + YY[0] = YY[2]; + len -= 8; + } + + /* Consume 4 elements in x vector and 8 elements in y + * vector. However, the 8'th element in y never really gets + * touched in this loop. So, if len == 4, then we only + * must access y[0] to y[6]. y[7] must not be accessed + * hence make sure len>4 and not len>=4 + */ + if (len > 4) { + yi += 4; + YY[1] = vld1q_f32(yi); + + XX[0] = vld1q_f32(xi); + xi += 4; + + SUMM = vmlaq_lane_f32(SUMM, YY[0], vget_low_f32(XX[0]), 0); + YEXT[0] = vextq_f32(YY[0], YY[1], 1); + SUMM = vmlaq_lane_f32(SUMM, YEXT[0], vget_low_f32(XX[0]), 1); + YEXT[1] = vextq_f32(YY[0], YY[1], 2); + SUMM = vmlaq_lane_f32(SUMM, YEXT[1], vget_high_f32(XX[0]), 0); + YEXT[2] = vextq_f32(YY[0], YY[1], 3); + SUMM = vmlaq_lane_f32(SUMM, YEXT[2], vget_high_f32(XX[0]), 1); + + YY[0] = YY[1]; + len -= 4; + } + + while (--len > 0) { + XX_2 = vld1_dup_f32(xi++); + SUMM = vmlaq_lane_f32(SUMM, YY[0], XX_2, 0); + YY[0]= vld1q_f32(++yi); + } + + XX_2 = vld1_dup_f32(xi); + SUMM = vmlaq_lane_f32(SUMM, YY[0], XX_2, 0); + + vst1q_f32(sum, SUMM); +} + +void celt_pitch_xcorr_float_neon(const opus_val16 *_x, const opus_val16 *_y, + opus_val32 *xcorr, int len, int max_pitch, int arch) { + int i; + (void)arch; + celt_assert(max_pitch > 0); + celt_sig_assert((((unsigned char *)_x-(unsigned char *)NULL)&3)==0); + + for (i = 0; i < (max_pitch-3); i += 4) { + xcorr_kernel_neon_float((const float32_t *)_x, (const float32_t *)_y+i, + (float32_t *)xcorr+i, len); + } + + /* In case max_pitch isn't a multiple of 4, do non-unrolled version. */ + for (; i < max_pitch; i++) { + xcorr[i] = celt_inner_prod_neon(_x, _y+i, len); + } +} +#endif diff --git a/components/opus/libopus/celt/arm/celt_pitch_xcorr_arm-gnu.S b/components/opus/libopus/celt/arm/celt_pitch_xcorr_arm-gnu.S new file mode 100644 index 0000000..10668e5 --- /dev/null +++ b/components/opus/libopus/celt/arm/celt_pitch_xcorr_arm-gnu.S @@ -0,0 +1,555 @@ + .syntax unified +@ Copyright (c) 2007-2008 CSIRO +@ Copyright (c) 2007-2009 Xiph.Org Foundation +@ Copyright (c) 2013 Parrot +@ Written by Aurélien Zanelli +@ +@ Redistribution and use in source and binary forms, with or without +@ modification, are permitted provided that the following conditions +@ are met: +@ +@ - Redistributions of source code must retain the above copyright +@ notice, this list of conditions and the following disclaimer. +@ +@ - Redistributions in binary form must reproduce the above copyright +@ notice, this list of conditions and the following disclaimer in the +@ documentation and/or other materials provided with the distribution. +@ +@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +@ ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +@ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +@ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER +@ OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +@ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +@ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +@ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +@ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + .text; .p2align 2; .arch armv7-a + .fpu neon + .object_arch armv4t + + .include "celt/arm/armopts-gnu.S" + + .if OPUS_ARM_MAY_HAVE_EDSP + .global celt_pitch_xcorr_edsp + .endif + + .if OPUS_ARM_MAY_HAVE_NEON + .global celt_pitch_xcorr_neon + .endif + + .if OPUS_ARM_MAY_HAVE_NEON + +@ Compute sum[k]=sum(x[j]*y[j+k],j=0...len-1), k=0...3 + .type xcorr_kernel_neon, %function; xcorr_kernel_neon: @ PROC +xcorr_kernel_neon_start: + @ input: + @ r3 = int len + @ r4 = opus_val16 *x + @ r5 = opus_val16 *y + @ q0 = opus_val32 sum[4] + @ output: + @ q0 = opus_val32 sum[4] + @ preserved: r0-r3, r6-r11, d2, q4-q7, q9-q15 + @ internal usage: + @ r12 = int j + @ d3 = y_3|y_2|y_1|y_0 + @ q2 = y_B|y_A|y_9|y_8|y_7|y_6|y_5|y_4 + @ q3 = x_7|x_6|x_5|x_4|x_3|x_2|x_1|x_0 + @ q8 = scratch + @ + @ Load y[0...3] + @ This requires len>0 to always be valid (which we assert in the C code). + VLD1.16 {d5}, [r5]! + SUBS r12, r3, #8 + BLE xcorr_kernel_neon_process4 +@ Process 8 samples at a time. +@ This loop loads one y value more than we actually need. Therefore we have to +@ stop as soon as there are 8 or fewer samples left (instead of 7), to avoid +@ reading past the end of the array. +xcorr_kernel_neon_process8: + @ This loop has 19 total instructions (10 cycles to issue, minimum), with + @ - 2 cycles of ARM insrtuctions, + @ - 10 cycles of load/store/byte permute instructions, and + @ - 9 cycles of data processing instructions. + @ On a Cortex A8, we dual-issue the maximum amount (9 cycles) between the + @ latter two categories, meaning the whole loop should run in 10 cycles per + @ iteration, barring cache misses. + @ + @ Load x[0...7] + VLD1.16 {d6, d7}, [r4]! + @ Unlike VMOV, VAND is a data processsing instruction (and doesn't get + @ assembled to VMOV, like VORR would), so it dual-issues with the prior VLD1. + VAND d3, d5, d5 + SUBS r12, r12, #8 + @ Load y[4...11] + VLD1.16 {d4, d5}, [r5]! + VMLAL.S16 q0, d3, d6[0] + VEXT.16 d16, d3, d4, #1 + VMLAL.S16 q0, d4, d7[0] + VEXT.16 d17, d4, d5, #1 + VMLAL.S16 q0, d16, d6[1] + VEXT.16 d16, d3, d4, #2 + VMLAL.S16 q0, d17, d7[1] + VEXT.16 d17, d4, d5, #2 + VMLAL.S16 q0, d16, d6[2] + VEXT.16 d16, d3, d4, #3 + VMLAL.S16 q0, d17, d7[2] + VEXT.16 d17, d4, d5, #3 + VMLAL.S16 q0, d16, d6[3] + VMLAL.S16 q0, d17, d7[3] + BGT xcorr_kernel_neon_process8 +@ Process 4 samples here if we have > 4 left (still reading one extra y value). +xcorr_kernel_neon_process4: + ADDS r12, r12, #4 + BLE xcorr_kernel_neon_process2 + @ Load x[0...3] + VLD1.16 d6, [r4]! + @ Use VAND since it's a data processing instruction again. + VAND d4, d5, d5 + SUB r12, r12, #4 + @ Load y[4...7] + VLD1.16 d5, [r5]! + VMLAL.S16 q0, d4, d6[0] + VEXT.16 d16, d4, d5, #1 + VMLAL.S16 q0, d16, d6[1] + VEXT.16 d16, d4, d5, #2 + VMLAL.S16 q0, d16, d6[2] + VEXT.16 d16, d4, d5, #3 + VMLAL.S16 q0, d16, d6[3] +@ Process 2 samples here if we have > 2 left (still reading one extra y value). +xcorr_kernel_neon_process2: + ADDS r12, r12, #2 + BLE xcorr_kernel_neon_process1 + @ Load x[0...1] + VLD2.16 {d6[],d7[]}, [r4]! + @ Use VAND since it's a data processing instruction again. + VAND d4, d5, d5 + SUB r12, r12, #2 + @ Load y[4...5] + VLD1.32 {d5[]}, [r5]! + VMLAL.S16 q0, d4, d6 + VEXT.16 d16, d4, d5, #1 + @ Replace bottom copy of {y5,y4} in d5 with {y3,y2} from d4, using VSRI + @ instead of VEXT, since it's a data-processing instruction. + VSRI.64 d5, d4, #32 + VMLAL.S16 q0, d16, d7 +@ Process 1 sample using the extra y value we loaded above. +xcorr_kernel_neon_process1: + @ Load next *x + VLD1.16 {d6[]}, [r4]! + ADDS r12, r12, #1 + @ y[0...3] are left in d5 from prior iteration(s) (if any) + VMLAL.S16 q0, d5, d6 + MOVLE pc, lr +@ Now process 1 last sample, not reading ahead. + @ Load last *y + VLD1.16 {d4[]}, [r5]! + VSRI.64 d4, d5, #16 + @ Load last *x + VLD1.16 {d6[]}, [r4]! + VMLAL.S16 q0, d4, d6 + MOV pc, lr + .size xcorr_kernel_neon, .-xcorr_kernel_neon @ ENDP + +@ opus_val32 celt_pitch_xcorr_neon(opus_val16 *_x, opus_val16 *_y, +@ opus_val32 *xcorr, int len, int max_pitch, int arch) + .type celt_pitch_xcorr_neon, %function; celt_pitch_xcorr_neon: @ PROC + @ input: + @ r0 = opus_val16 *_x + @ r1 = opus_val16 *_y + @ r2 = opus_val32 *xcorr + @ r3 = int len + @ output: + @ r0 = int maxcorr + @ internal usage: + @ r4 = opus_val16 *x (for xcorr_kernel_neon()) + @ r5 = opus_val16 *y (for xcorr_kernel_neon()) + @ r6 = int max_pitch + @ r12 = int j + @ q15 = int maxcorr[4] (q15 is not used by xcorr_kernel_neon()) + @ ignored: + @ int arch + STMFD sp!, {r4-r6, lr} + LDR r6, [sp, #16] + VMOV.S32 q15, #1 + @ if (max_pitch < 4) goto celt_pitch_xcorr_neon_process4_done + SUBS r6, r6, #4 + BLT celt_pitch_xcorr_neon_process4_done +celt_pitch_xcorr_neon_process4: + @ xcorr_kernel_neon parameters: + @ r3 = len, r4 = _x, r5 = _y, q0 = {0, 0, 0, 0} + MOV r4, r0 + MOV r5, r1 + VEOR q0, q0, q0 + @ xcorr_kernel_neon only modifies r4, r5, r12, and q0...q3. + @ So we don't save/restore any other registers. + BL xcorr_kernel_neon_start + SUBS r6, r6, #4 + VST1.32 {q0}, [r2]! + @ _y += 4 + ADD r1, r1, #8 + VMAX.S32 q15, q15, q0 + @ if (max_pitch < 4) goto celt_pitch_xcorr_neon_process4_done + BGE celt_pitch_xcorr_neon_process4 +@ We have less than 4 sums left to compute. +celt_pitch_xcorr_neon_process4_done: + ADDS r6, r6, #4 + @ Reduce maxcorr to a single value + VMAX.S32 d30, d30, d31 + VPMAX.S32 d30, d30, d30 + @ if (max_pitch <= 0) goto celt_pitch_xcorr_neon_done + BLE celt_pitch_xcorr_neon_done +@ Now compute each remaining sum one at a time. +celt_pitch_xcorr_neon_process_remaining: + MOV r4, r0 + MOV r5, r1 + VMOV.I32 q0, #0 + SUBS r12, r3, #8 + BLT celt_pitch_xcorr_neon_process_remaining4 +@ Sum terms 8 at a time. +celt_pitch_xcorr_neon_process_remaining_loop8: + @ Load x[0...7] + VLD1.16 {q1}, [r4]! + @ Load y[0...7] + VLD1.16 {q2}, [r5]! + SUBS r12, r12, #8 + VMLAL.S16 q0, d4, d2 + VMLAL.S16 q0, d5, d3 + BGE celt_pitch_xcorr_neon_process_remaining_loop8 +@ Sum terms 4 at a time. +celt_pitch_xcorr_neon_process_remaining4: + ADDS r12, r12, #4 + BLT celt_pitch_xcorr_neon_process_remaining4_done + @ Load x[0...3] + VLD1.16 {d2}, [r4]! + @ Load y[0...3] + VLD1.16 {d3}, [r5]! + SUB r12, r12, #4 + VMLAL.S16 q0, d3, d2 +celt_pitch_xcorr_neon_process_remaining4_done: + @ Reduce the sum to a single value. + VADD.S32 d0, d0, d1 + VPADDL.S32 d0, d0 + ADDS r12, r12, #4 + BLE celt_pitch_xcorr_neon_process_remaining_loop_done +@ Sum terms 1 at a time. +celt_pitch_xcorr_neon_process_remaining_loop1: + VLD1.16 {d2[]}, [r4]! + VLD1.16 {d3[]}, [r5]! + SUBS r12, r12, #1 + VMLAL.S16 q0, d2, d3 + BGT celt_pitch_xcorr_neon_process_remaining_loop1 +celt_pitch_xcorr_neon_process_remaining_loop_done: + VST1.32 {d0[0]}, [r2]! + VMAX.S32 d30, d30, d0 + SUBS r6, r6, #1 + @ _y++ + ADD r1, r1, #2 + @ if (--max_pitch > 0) goto celt_pitch_xcorr_neon_process_remaining + BGT celt_pitch_xcorr_neon_process_remaining +celt_pitch_xcorr_neon_done: + VMOV.32 r0, d30[0] + LDMFD sp!, {r4-r6, pc} + .size celt_pitch_xcorr_neon, .-celt_pitch_xcorr_neon @ ENDP + + .endif + + .if OPUS_ARM_MAY_HAVE_EDSP + +@ This will get used on ARMv7 devices without NEON, so it has been optimized +@ to take advantage of dual-issuing where possible. + .type xcorr_kernel_edsp, %function; xcorr_kernel_edsp: @ PROC +xcorr_kernel_edsp_start: + @ input: + @ r3 = int len + @ r4 = opus_val16 *_x (must be 32-bit aligned) + @ r5 = opus_val16 *_y (must be 32-bit aligned) + @ r6...r9 = opus_val32 sum[4] + @ output: + @ r6...r9 = opus_val32 sum[4] + @ preserved: r0-r5 + @ internal usage + @ r2 = int j + @ r12,r14 = opus_val16 x[4] + @ r10,r11 = opus_val16 y[4] + STMFD sp!, {r2,r4,r5,lr} + LDR r10, [r5], #4 @ Load y[0...1] + SUBS r2, r3, #4 @ j = len-4 + LDR r11, [r5], #4 @ Load y[2...3] + BLE xcorr_kernel_edsp_process4_done + LDR r12, [r4], #4 @ Load x[0...1] + @ Stall +xcorr_kernel_edsp_process4: + @ The multiplies must issue from pipeline 0, and can't dual-issue with each + @ other. Every other instruction here dual-issues with a multiply, and is + @ thus "free". There should be no stalls in the body of the loop. + SMLABB r6, r12, r10, r6 @ sum[0] = MAC16_16(sum[0],x_0,y_0) + LDR r14, [r4], #4 @ Load x[2...3] + SMLABT r7, r12, r10, r7 @ sum[1] = MAC16_16(sum[1],x_0,y_1) + SUBS r2, r2, #4 @ j-=4 + SMLABB r8, r12, r11, r8 @ sum[2] = MAC16_16(sum[2],x_0,y_2) + SMLABT r9, r12, r11, r9 @ sum[3] = MAC16_16(sum[3],x_0,y_3) + SMLATT r6, r12, r10, r6 @ sum[0] = MAC16_16(sum[0],x_1,y_1) + LDR r10, [r5], #4 @ Load y[4...5] + SMLATB r7, r12, r11, r7 @ sum[1] = MAC16_16(sum[1],x_1,y_2) + SMLATT r8, r12, r11, r8 @ sum[2] = MAC16_16(sum[2],x_1,y_3) + SMLATB r9, r12, r10, r9 @ sum[3] = MAC16_16(sum[3],x_1,y_4) + LDRGT r12, [r4], #4 @ Load x[0...1] + SMLABB r6, r14, r11, r6 @ sum[0] = MAC16_16(sum[0],x_2,y_2) + SMLABT r7, r14, r11, r7 @ sum[1] = MAC16_16(sum[1],x_2,y_3) + SMLABB r8, r14, r10, r8 @ sum[2] = MAC16_16(sum[2],x_2,y_4) + SMLABT r9, r14, r10, r9 @ sum[3] = MAC16_16(sum[3],x_2,y_5) + SMLATT r6, r14, r11, r6 @ sum[0] = MAC16_16(sum[0],x_3,y_3) + LDR r11, [r5], #4 @ Load y[6...7] + SMLATB r7, r14, r10, r7 @ sum[1] = MAC16_16(sum[1],x_3,y_4) + SMLATT r8, r14, r10, r8 @ sum[2] = MAC16_16(sum[2],x_3,y_5) + SMLATB r9, r14, r11, r9 @ sum[3] = MAC16_16(sum[3],x_3,y_6) + BGT xcorr_kernel_edsp_process4 +xcorr_kernel_edsp_process4_done: + ADDS r2, r2, #4 + BLE xcorr_kernel_edsp_done + LDRH r12, [r4], #2 @ r12 = *x++ + SUBS r2, r2, #1 @ j-- + @ Stall + SMLABB r6, r12, r10, r6 @ sum[0] = MAC16_16(sum[0],x,y_0) + LDRHGT r14, [r4], #2 @ r14 = *x++ + SMLABT r7, r12, r10, r7 @ sum[1] = MAC16_16(sum[1],x,y_1) + SMLABB r8, r12, r11, r8 @ sum[2] = MAC16_16(sum[2],x,y_2) + SMLABT r9, r12, r11, r9 @ sum[3] = MAC16_16(sum[3],x,y_3) + BLE xcorr_kernel_edsp_done + SMLABT r6, r14, r10, r6 @ sum[0] = MAC16_16(sum[0],x,y_1) + SUBS r2, r2, #1 @ j-- + SMLABB r7, r14, r11, r7 @ sum[1] = MAC16_16(sum[1],x,y_2) + LDRH r10, [r5], #2 @ r10 = y_4 = *y++ + SMLABT r8, r14, r11, r8 @ sum[2] = MAC16_16(sum[2],x,y_3) + LDRHGT r12, [r4], #2 @ r12 = *x++ + SMLABB r9, r14, r10, r9 @ sum[3] = MAC16_16(sum[3],x,y_4) + BLE xcorr_kernel_edsp_done + SMLABB r6, r12, r11, r6 @ sum[0] = MAC16_16(sum[0],tmp,y_2) + CMP r2, #1 @ j-- + SMLABT r7, r12, r11, r7 @ sum[1] = MAC16_16(sum[1],tmp,y_3) + LDRH r2, [r5], #2 @ r2 = y_5 = *y++ + SMLABB r8, r12, r10, r8 @ sum[2] = MAC16_16(sum[2],tmp,y_4) + LDRHGT r14, [r4] @ r14 = *x + SMLABB r9, r12, r2, r9 @ sum[3] = MAC16_16(sum[3],tmp,y_5) + BLE xcorr_kernel_edsp_done + SMLABT r6, r14, r11, r6 @ sum[0] = MAC16_16(sum[0],tmp,y_3) + LDRH r11, [r5] @ r11 = y_6 = *y + SMLABB r7, r14, r10, r7 @ sum[1] = MAC16_16(sum[1],tmp,y_4) + SMLABB r8, r14, r2, r8 @ sum[2] = MAC16_16(sum[2],tmp,y_5) + SMLABB r9, r14, r11, r9 @ sum[3] = MAC16_16(sum[3],tmp,y_6) +xcorr_kernel_edsp_done: + LDMFD sp!, {r2,r4,r5,pc} + .size xcorr_kernel_edsp, .-xcorr_kernel_edsp @ ENDP + + .type celt_pitch_xcorr_edsp, %function; celt_pitch_xcorr_edsp: @ PROC + @ input: + @ r0 = opus_val16 *_x (must be 32-bit aligned) + @ r1 = opus_val16 *_y (only needs to be 16-bit aligned) + @ r2 = opus_val32 *xcorr + @ r3 = int len + @ output: + @ r0 = maxcorr + @ internal usage + @ r4 = opus_val16 *x + @ r5 = opus_val16 *y + @ r6 = opus_val32 sum0 + @ r7 = opus_val32 sum1 + @ r8 = opus_val32 sum2 + @ r9 = opus_val32 sum3 + @ r1 = int max_pitch + @ r12 = int j + @ ignored: + @ int arch + STMFD sp!, {r4-r11, lr} + MOV r5, r1 + LDR r1, [sp, #36] + MOV r4, r0 + TST r5, #3 + @ maxcorr = 1 + MOV r0, #1 + BEQ celt_pitch_xcorr_edsp_process1u_done +@ Compute one sum at the start to make y 32-bit aligned. + SUBS r12, r3, #4 + @ r14 = sum = 0 + MOV r14, #0 + LDRH r8, [r5], #2 + BLE celt_pitch_xcorr_edsp_process1u_loop4_done + LDR r6, [r4], #4 + MOV r8, r8, LSL #16 +celt_pitch_xcorr_edsp_process1u_loop4: + LDR r9, [r5], #4 + SMLABT r14, r6, r8, r14 @ sum = MAC16_16(sum, x_0, y_0) + LDR r7, [r4], #4 + SMLATB r14, r6, r9, r14 @ sum = MAC16_16(sum, x_1, y_1) + LDR r8, [r5], #4 + SMLABT r14, r7, r9, r14 @ sum = MAC16_16(sum, x_2, y_2) + SUBS r12, r12, #4 @ j-=4 + SMLATB r14, r7, r8, r14 @ sum = MAC16_16(sum, x_3, y_3) + LDRGT r6, [r4], #4 + BGT celt_pitch_xcorr_edsp_process1u_loop4 + MOV r8, r8, LSR #16 +celt_pitch_xcorr_edsp_process1u_loop4_done: + ADDS r12, r12, #4 +celt_pitch_xcorr_edsp_process1u_loop1: + LDRHGE r6, [r4], #2 + @ Stall + SMLABBGE r14, r6, r8, r14 @ sum = MAC16_16(sum, *x, *y) + SUBSGE r12, r12, #1 + LDRHGT r8, [r5], #2 + BGT celt_pitch_xcorr_edsp_process1u_loop1 + @ Restore _x + SUB r4, r4, r3, LSL #1 + @ Restore and advance _y + SUB r5, r5, r3, LSL #1 + @ maxcorr = max(maxcorr, sum) + CMP r0, r14 + ADD r5, r5, #2 + MOVLT r0, r14 + SUBS r1, r1, #1 + @ xcorr[i] = sum + STR r14, [r2], #4 + BLE celt_pitch_xcorr_edsp_done +celt_pitch_xcorr_edsp_process1u_done: + @ if (max_pitch < 4) goto celt_pitch_xcorr_edsp_process2 + SUBS r1, r1, #4 + BLT celt_pitch_xcorr_edsp_process2 +celt_pitch_xcorr_edsp_process4: + @ xcorr_kernel_edsp parameters: + @ r3 = len, r4 = _x, r5 = _y, r6...r9 = sum[4] = {0, 0, 0, 0} + MOV r6, #0 + MOV r7, #0 + MOV r8, #0 + MOV r9, #0 + BL xcorr_kernel_edsp_start @ xcorr_kernel_edsp(_x, _y+i, xcorr+i, len) + @ maxcorr = max(maxcorr, sum0, sum1, sum2, sum3) + CMP r0, r6 + @ _y+=4 + ADD r5, r5, #8 + MOVLT r0, r6 + CMP r0, r7 + MOVLT r0, r7 + CMP r0, r8 + MOVLT r0, r8 + CMP r0, r9 + MOVLT r0, r9 + STMIA r2!, {r6-r9} + SUBS r1, r1, #4 + BGE celt_pitch_xcorr_edsp_process4 +celt_pitch_xcorr_edsp_process2: + ADDS r1, r1, #2 + BLT celt_pitch_xcorr_edsp_process1a + SUBS r12, r3, #4 + @ {r10, r11} = {sum0, sum1} = {0, 0} + MOV r10, #0 + MOV r11, #0 + LDR r8, [r5], #4 + BLE celt_pitch_xcorr_edsp_process2_loop_done + LDR r6, [r4], #4 + LDR r9, [r5], #4 +celt_pitch_xcorr_edsp_process2_loop4: + SMLABB r10, r6, r8, r10 @ sum0 = MAC16_16(sum0, x_0, y_0) + LDR r7, [r4], #4 + SMLABT r11, r6, r8, r11 @ sum1 = MAC16_16(sum1, x_0, y_1) + SUBS r12, r12, #4 @ j-=4 + SMLATT r10, r6, r8, r10 @ sum0 = MAC16_16(sum0, x_1, y_1) + LDR r8, [r5], #4 + SMLATB r11, r6, r9, r11 @ sum1 = MAC16_16(sum1, x_1, y_2) + LDRGT r6, [r4], #4 + SMLABB r10, r7, r9, r10 @ sum0 = MAC16_16(sum0, x_2, y_2) + SMLABT r11, r7, r9, r11 @ sum1 = MAC16_16(sum1, x_2, y_3) + SMLATT r10, r7, r9, r10 @ sum0 = MAC16_16(sum0, x_3, y_3) + LDRGT r9, [r5], #4 + SMLATB r11, r7, r8, r11 @ sum1 = MAC16_16(sum1, x_3, y_4) + BGT celt_pitch_xcorr_edsp_process2_loop4 +celt_pitch_xcorr_edsp_process2_loop_done: + ADDS r12, r12, #2 + BLE celt_pitch_xcorr_edsp_process2_1 + LDR r6, [r4], #4 + @ Stall + SMLABB r10, r6, r8, r10 @ sum0 = MAC16_16(sum0, x_0, y_0) + LDR r9, [r5], #4 + SMLABT r11, r6, r8, r11 @ sum1 = MAC16_16(sum1, x_0, y_1) + SUB r12, r12, #2 + SMLATT r10, r6, r8, r10 @ sum0 = MAC16_16(sum0, x_1, y_1) + MOV r8, r9 + SMLATB r11, r6, r9, r11 @ sum1 = MAC16_16(sum1, x_1, y_2) +celt_pitch_xcorr_edsp_process2_1: + LDRH r6, [r4], #2 + ADDS r12, r12, #1 + @ Stall + SMLABB r10, r6, r8, r10 @ sum0 = MAC16_16(sum0, x_0, y_0) + LDRHGT r7, [r4], #2 + SMLABT r11, r6, r8, r11 @ sum1 = MAC16_16(sum1, x_0, y_1) + BLE celt_pitch_xcorr_edsp_process2_done + LDRH r9, [r5], #2 + SMLABT r10, r7, r8, r10 @ sum0 = MAC16_16(sum0, x_0, y_1) + SMLABB r11, r7, r9, r11 @ sum1 = MAC16_16(sum1, x_0, y_2) +celt_pitch_xcorr_edsp_process2_done: + @ Restore _x + SUB r4, r4, r3, LSL #1 + @ Restore and advance _y + SUB r5, r5, r3, LSL #1 + @ maxcorr = max(maxcorr, sum0) + CMP r0, r10 + ADD r5, r5, #2 + MOVLT r0, r10 + SUB r1, r1, #2 + @ maxcorr = max(maxcorr, sum1) + CMP r0, r11 + @ xcorr[i] = sum + STR r10, [r2], #4 + MOVLT r0, r11 + STR r11, [r2], #4 +celt_pitch_xcorr_edsp_process1a: + ADDS r1, r1, #1 + BLT celt_pitch_xcorr_edsp_done + SUBS r12, r3, #4 + @ r14 = sum = 0 + MOV r14, #0 + BLT celt_pitch_xcorr_edsp_process1a_loop_done + LDR r6, [r4], #4 + LDR r8, [r5], #4 + LDR r7, [r4], #4 + LDR r9, [r5], #4 +celt_pitch_xcorr_edsp_process1a_loop4: + SMLABB r14, r6, r8, r14 @ sum = MAC16_16(sum, x_0, y_0) + SUBS r12, r12, #4 @ j-=4 + SMLATT r14, r6, r8, r14 @ sum = MAC16_16(sum, x_1, y_1) + LDRGE r6, [r4], #4 + SMLABB r14, r7, r9, r14 @ sum = MAC16_16(sum, x_2, y_2) + LDRGE r8, [r5], #4 + SMLATT r14, r7, r9, r14 @ sum = MAC16_16(sum, x_3, y_3) + LDRGE r7, [r4], #4 + LDRGE r9, [r5], #4 + BGE celt_pitch_xcorr_edsp_process1a_loop4 +celt_pitch_xcorr_edsp_process1a_loop_done: + ADDS r12, r12, #2 + LDRGE r6, [r4], #4 + LDRGE r8, [r5], #4 + @ Stall + SMLABBGE r14, r6, r8, r14 @ sum = MAC16_16(sum, x_0, y_0) + SUBGE r12, r12, #2 + SMLATTGE r14, r6, r8, r14 @ sum = MAC16_16(sum, x_1, y_1) + ADDS r12, r12, #1 + LDRHGE r6, [r4], #2 + LDRHGE r8, [r5], #2 + @ Stall + SMLABBGE r14, r6, r8, r14 @ sum = MAC16_16(sum, *x, *y) + @ maxcorr = max(maxcorr, sum) + CMP r0, r14 + @ xcorr[i] = sum + STR r14, [r2], #4 + MOVLT r0, r14 +celt_pitch_xcorr_edsp_done: + LDMFD sp!, {r4-r11, pc} + .size celt_pitch_xcorr_edsp, .-celt_pitch_xcorr_edsp @ ENDP + + .endif + +@ END: + .section .note.GNU-stack,"",%progbits diff --git a/components/opus/libopus/celt/arm/celt_pitch_xcorr_arm.s b/components/opus/libopus/celt/arm/celt_pitch_xcorr_arm.s new file mode 100644 index 0000000..6e873af --- /dev/null +++ b/components/opus/libopus/celt/arm/celt_pitch_xcorr_arm.s @@ -0,0 +1,551 @@ +; Copyright (c) 2007-2008 CSIRO +; Copyright (c) 2007-2009 Xiph.Org Foundation +; Copyright (c) 2013 Parrot +; Written by Aurélien Zanelli +; +; Redistribution and use in source and binary forms, with or without +; modification, are permitted provided that the following conditions +; are met: +; +; - Redistributions of source code must retain the above copyright +; notice, this list of conditions and the following disclaimer. +; +; - Redistributions in binary form must reproduce the above copyright +; notice, this list of conditions and the following disclaimer in the +; documentation and/or other materials provided with the distribution. +; +; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +; ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +; LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +; A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER +; OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +; EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +; PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +; PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +; LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +; NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +; SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + AREA |.text|, CODE, READONLY + + GET celt/arm/armopts.s + +IF OPUS_ARM_MAY_HAVE_EDSP + EXPORT celt_pitch_xcorr_edsp +ENDIF + +IF OPUS_ARM_MAY_HAVE_NEON + EXPORT celt_pitch_xcorr_neon +ENDIF + +IF OPUS_ARM_MAY_HAVE_NEON + +; Compute sum[k]=sum(x[j]*y[j+k],j=0...len-1), k=0...3 +xcorr_kernel_neon PROC +xcorr_kernel_neon_start + ; input: + ; r3 = int len + ; r4 = opus_val16 *x + ; r5 = opus_val16 *y + ; q0 = opus_val32 sum[4] + ; output: + ; q0 = opus_val32 sum[4] + ; preserved: r0-r3, r6-r11, d2, q4-q7, q9-q15 + ; internal usage: + ; r12 = int j + ; d3 = y_3|y_2|y_1|y_0 + ; q2 = y_B|y_A|y_9|y_8|y_7|y_6|y_5|y_4 + ; q3 = x_7|x_6|x_5|x_4|x_3|x_2|x_1|x_0 + ; q8 = scratch + ; + ; Load y[0...3] + ; This requires len>0 to always be valid (which we assert in the C code). + VLD1.16 {d5}, [r5]! + SUBS r12, r3, #8 + BLE xcorr_kernel_neon_process4 +; Process 8 samples at a time. +; This loop loads one y value more than we actually need. Therefore we have to +; stop as soon as there are 8 or fewer samples left (instead of 7), to avoid +; reading past the end of the array. +xcorr_kernel_neon_process8 + ; This loop has 19 total instructions (10 cycles to issue, minimum), with + ; - 2 cycles of ARM insrtuctions, + ; - 10 cycles of load/store/byte permute instructions, and + ; - 9 cycles of data processing instructions. + ; On a Cortex A8, we dual-issue the maximum amount (9 cycles) between the + ; latter two categories, meaning the whole loop should run in 10 cycles per + ; iteration, barring cache misses. + ; + ; Load x[0...7] + VLD1.16 {d6, d7}, [r4]! + ; Unlike VMOV, VAND is a data processsing instruction (and doesn't get + ; assembled to VMOV, like VORR would), so it dual-issues with the prior VLD1. + VAND d3, d5, d5 + SUBS r12, r12, #8 + ; Load y[4...11] + VLD1.16 {d4, d5}, [r5]! + VMLAL.S16 q0, d3, d6[0] + VEXT.16 d16, d3, d4, #1 + VMLAL.S16 q0, d4, d7[0] + VEXT.16 d17, d4, d5, #1 + VMLAL.S16 q0, d16, d6[1] + VEXT.16 d16, d3, d4, #2 + VMLAL.S16 q0, d17, d7[1] + VEXT.16 d17, d4, d5, #2 + VMLAL.S16 q0, d16, d6[2] + VEXT.16 d16, d3, d4, #3 + VMLAL.S16 q0, d17, d7[2] + VEXT.16 d17, d4, d5, #3 + VMLAL.S16 q0, d16, d6[3] + VMLAL.S16 q0, d17, d7[3] + BGT xcorr_kernel_neon_process8 +; Process 4 samples here if we have > 4 left (still reading one extra y value). +xcorr_kernel_neon_process4 + ADDS r12, r12, #4 + BLE xcorr_kernel_neon_process2 + ; Load x[0...3] + VLD1.16 d6, [r4]! + ; Use VAND since it's a data processing instruction again. + VAND d4, d5, d5 + SUB r12, r12, #4 + ; Load y[4...7] + VLD1.16 d5, [r5]! + VMLAL.S16 q0, d4, d6[0] + VEXT.16 d16, d4, d5, #1 + VMLAL.S16 q0, d16, d6[1] + VEXT.16 d16, d4, d5, #2 + VMLAL.S16 q0, d16, d6[2] + VEXT.16 d16, d4, d5, #3 + VMLAL.S16 q0, d16, d6[3] +; Process 2 samples here if we have > 2 left (still reading one extra y value). +xcorr_kernel_neon_process2 + ADDS r12, r12, #2 + BLE xcorr_kernel_neon_process1 + ; Load x[0...1] + VLD2.16 {d6[],d7[]}, [r4]! + ; Use VAND since it's a data processing instruction again. + VAND d4, d5, d5 + SUB r12, r12, #2 + ; Load y[4...5] + VLD1.32 {d5[]}, [r5]! + VMLAL.S16 q0, d4, d6 + VEXT.16 d16, d4, d5, #1 + ; Replace bottom copy of {y5,y4} in d5 with {y3,y2} from d4, using VSRI + ; instead of VEXT, since it's a data-processing instruction. + VSRI.64 d5, d4, #32 + VMLAL.S16 q0, d16, d7 +; Process 1 sample using the extra y value we loaded above. +xcorr_kernel_neon_process1 + ; Load next *x + VLD1.16 {d6[]}, [r4]! + ADDS r12, r12, #1 + ; y[0...3] are left in d5 from prior iteration(s) (if any) + VMLAL.S16 q0, d5, d6 + MOVLE pc, lr +; Now process 1 last sample, not reading ahead. + ; Load last *y + VLD1.16 {d4[]}, [r5]! + VSRI.64 d4, d5, #16 + ; Load last *x + VLD1.16 {d6[]}, [r4]! + VMLAL.S16 q0, d4, d6 + MOV pc, lr + ENDP + +; opus_val32 celt_pitch_xcorr_neon(opus_val16 *_x, opus_val16 *_y, +; opus_val32 *xcorr, int len, int max_pitch, int arch) +celt_pitch_xcorr_neon PROC + ; input: + ; r0 = opus_val16 *_x + ; r1 = opus_val16 *_y + ; r2 = opus_val32 *xcorr + ; r3 = int len + ; output: + ; r0 = int maxcorr + ; internal usage: + ; r4 = opus_val16 *x (for xcorr_kernel_neon()) + ; r5 = opus_val16 *y (for xcorr_kernel_neon()) + ; r6 = int max_pitch + ; r12 = int j + ; q15 = int maxcorr[4] (q15 is not used by xcorr_kernel_neon()) + ; ignored: + ; int arch + STMFD sp!, {r4-r6, lr} + LDR r6, [sp, #16] + VMOV.S32 q15, #1 + ; if (max_pitch < 4) goto celt_pitch_xcorr_neon_process4_done + SUBS r6, r6, #4 + BLT celt_pitch_xcorr_neon_process4_done +celt_pitch_xcorr_neon_process4 + ; xcorr_kernel_neon parameters: + ; r3 = len, r4 = _x, r5 = _y, q0 = {0, 0, 0, 0} + MOV r4, r0 + MOV r5, r1 + VEOR q0, q0, q0 + ; xcorr_kernel_neon only modifies r4, r5, r12, and q0...q3. + ; So we don't save/restore any other registers. + BL xcorr_kernel_neon_start + SUBS r6, r6, #4 + VST1.32 {q0}, [r2]! + ; _y += 4 + ADD r1, r1, #8 + VMAX.S32 q15, q15, q0 + ; if (max_pitch < 4) goto celt_pitch_xcorr_neon_process4_done + BGE celt_pitch_xcorr_neon_process4 +; We have less than 4 sums left to compute. +celt_pitch_xcorr_neon_process4_done + ADDS r6, r6, #4 + ; Reduce maxcorr to a single value + VMAX.S32 d30, d30, d31 + VPMAX.S32 d30, d30, d30 + ; if (max_pitch <= 0) goto celt_pitch_xcorr_neon_done + BLE celt_pitch_xcorr_neon_done +; Now compute each remaining sum one at a time. +celt_pitch_xcorr_neon_process_remaining + MOV r4, r0 + MOV r5, r1 + VMOV.I32 q0, #0 + SUBS r12, r3, #8 + BLT celt_pitch_xcorr_neon_process_remaining4 +; Sum terms 8 at a time. +celt_pitch_xcorr_neon_process_remaining_loop8 + ; Load x[0...7] + VLD1.16 {q1}, [r4]! + ; Load y[0...7] + VLD1.16 {q2}, [r5]! + SUBS r12, r12, #8 + VMLAL.S16 q0, d4, d2 + VMLAL.S16 q0, d5, d3 + BGE celt_pitch_xcorr_neon_process_remaining_loop8 +; Sum terms 4 at a time. +celt_pitch_xcorr_neon_process_remaining4 + ADDS r12, r12, #4 + BLT celt_pitch_xcorr_neon_process_remaining4_done + ; Load x[0...3] + VLD1.16 {d2}, [r4]! + ; Load y[0...3] + VLD1.16 {d3}, [r5]! + SUB r12, r12, #4 + VMLAL.S16 q0, d3, d2 +celt_pitch_xcorr_neon_process_remaining4_done + ; Reduce the sum to a single value. + VADD.S32 d0, d0, d1 + VPADDL.S32 d0, d0 + ADDS r12, r12, #4 + BLE celt_pitch_xcorr_neon_process_remaining_loop_done +; Sum terms 1 at a time. +celt_pitch_xcorr_neon_process_remaining_loop1 + VLD1.16 {d2[]}, [r4]! + VLD1.16 {d3[]}, [r5]! + SUBS r12, r12, #1 + VMLAL.S16 q0, d2, d3 + BGT celt_pitch_xcorr_neon_process_remaining_loop1 +celt_pitch_xcorr_neon_process_remaining_loop_done + VST1.32 {d0[0]}, [r2]! + VMAX.S32 d30, d30, d0 + SUBS r6, r6, #1 + ; _y++ + ADD r1, r1, #2 + ; if (--max_pitch > 0) goto celt_pitch_xcorr_neon_process_remaining + BGT celt_pitch_xcorr_neon_process_remaining +celt_pitch_xcorr_neon_done + VMOV.32 r0, d30[0] + LDMFD sp!, {r4-r6, pc} + ENDP + +ENDIF + +IF OPUS_ARM_MAY_HAVE_EDSP + +; This will get used on ARMv7 devices without NEON, so it has been optimized +; to take advantage of dual-issuing where possible. +xcorr_kernel_edsp PROC +xcorr_kernel_edsp_start + ; input: + ; r3 = int len + ; r4 = opus_val16 *_x (must be 32-bit aligned) + ; r5 = opus_val16 *_y (must be 32-bit aligned) + ; r6...r9 = opus_val32 sum[4] + ; output: + ; r6...r9 = opus_val32 sum[4] + ; preserved: r0-r5 + ; internal usage + ; r2 = int j + ; r12,r14 = opus_val16 x[4] + ; r10,r11 = opus_val16 y[4] + STMFD sp!, {r2,r4,r5,lr} + LDR r10, [r5], #4 ; Load y[0...1] + SUBS r2, r3, #4 ; j = len-4 + LDR r11, [r5], #4 ; Load y[2...3] + BLE xcorr_kernel_edsp_process4_done + LDR r12, [r4], #4 ; Load x[0...1] + ; Stall +xcorr_kernel_edsp_process4 + ; The multiplies must issue from pipeline 0, and can't dual-issue with each + ; other. Every other instruction here dual-issues with a multiply, and is + ; thus "free". There should be no stalls in the body of the loop. + SMLABB r6, r12, r10, r6 ; sum[0] = MAC16_16(sum[0],x_0,y_0) + LDR r14, [r4], #4 ; Load x[2...3] + SMLABT r7, r12, r10, r7 ; sum[1] = MAC16_16(sum[1],x_0,y_1) + SUBS r2, r2, #4 ; j-=4 + SMLABB r8, r12, r11, r8 ; sum[2] = MAC16_16(sum[2],x_0,y_2) + SMLABT r9, r12, r11, r9 ; sum[3] = MAC16_16(sum[3],x_0,y_3) + SMLATT r6, r12, r10, r6 ; sum[0] = MAC16_16(sum[0],x_1,y_1) + LDR r10, [r5], #4 ; Load y[4...5] + SMLATB r7, r12, r11, r7 ; sum[1] = MAC16_16(sum[1],x_1,y_2) + SMLATT r8, r12, r11, r8 ; sum[2] = MAC16_16(sum[2],x_1,y_3) + SMLATB r9, r12, r10, r9 ; sum[3] = MAC16_16(sum[3],x_1,y_4) + LDRGT r12, [r4], #4 ; Load x[0...1] + SMLABB r6, r14, r11, r6 ; sum[0] = MAC16_16(sum[0],x_2,y_2) + SMLABT r7, r14, r11, r7 ; sum[1] = MAC16_16(sum[1],x_2,y_3) + SMLABB r8, r14, r10, r8 ; sum[2] = MAC16_16(sum[2],x_2,y_4) + SMLABT r9, r14, r10, r9 ; sum[3] = MAC16_16(sum[3],x_2,y_5) + SMLATT r6, r14, r11, r6 ; sum[0] = MAC16_16(sum[0],x_3,y_3) + LDR r11, [r5], #4 ; Load y[6...7] + SMLATB r7, r14, r10, r7 ; sum[1] = MAC16_16(sum[1],x_3,y_4) + SMLATT r8, r14, r10, r8 ; sum[2] = MAC16_16(sum[2],x_3,y_5) + SMLATB r9, r14, r11, r9 ; sum[3] = MAC16_16(sum[3],x_3,y_6) + BGT xcorr_kernel_edsp_process4 +xcorr_kernel_edsp_process4_done + ADDS r2, r2, #4 + BLE xcorr_kernel_edsp_done + LDRH r12, [r4], #2 ; r12 = *x++ + SUBS r2, r2, #1 ; j-- + ; Stall + SMLABB r6, r12, r10, r6 ; sum[0] = MAC16_16(sum[0],x,y_0) + LDRHGT r14, [r4], #2 ; r14 = *x++ + SMLABT r7, r12, r10, r7 ; sum[1] = MAC16_16(sum[1],x,y_1) + SMLABB r8, r12, r11, r8 ; sum[2] = MAC16_16(sum[2],x,y_2) + SMLABT r9, r12, r11, r9 ; sum[3] = MAC16_16(sum[3],x,y_3) + BLE xcorr_kernel_edsp_done + SMLABT r6, r14, r10, r6 ; sum[0] = MAC16_16(sum[0],x,y_1) + SUBS r2, r2, #1 ; j-- + SMLABB r7, r14, r11, r7 ; sum[1] = MAC16_16(sum[1],x,y_2) + LDRH r10, [r5], #2 ; r10 = y_4 = *y++ + SMLABT r8, r14, r11, r8 ; sum[2] = MAC16_16(sum[2],x,y_3) + LDRHGT r12, [r4], #2 ; r12 = *x++ + SMLABB r9, r14, r10, r9 ; sum[3] = MAC16_16(sum[3],x,y_4) + BLE xcorr_kernel_edsp_done + SMLABB r6, r12, r11, r6 ; sum[0] = MAC16_16(sum[0],tmp,y_2) + CMP r2, #1 ; j-- + SMLABT r7, r12, r11, r7 ; sum[1] = MAC16_16(sum[1],tmp,y_3) + LDRH r2, [r5], #2 ; r2 = y_5 = *y++ + SMLABB r8, r12, r10, r8 ; sum[2] = MAC16_16(sum[2],tmp,y_4) + LDRHGT r14, [r4] ; r14 = *x + SMLABB r9, r12, r2, r9 ; sum[3] = MAC16_16(sum[3],tmp,y_5) + BLE xcorr_kernel_edsp_done + SMLABT r6, r14, r11, r6 ; sum[0] = MAC16_16(sum[0],tmp,y_3) + LDRH r11, [r5] ; r11 = y_6 = *y + SMLABB r7, r14, r10, r7 ; sum[1] = MAC16_16(sum[1],tmp,y_4) + SMLABB r8, r14, r2, r8 ; sum[2] = MAC16_16(sum[2],tmp,y_5) + SMLABB r9, r14, r11, r9 ; sum[3] = MAC16_16(sum[3],tmp,y_6) +xcorr_kernel_edsp_done + LDMFD sp!, {r2,r4,r5,pc} + ENDP + +celt_pitch_xcorr_edsp PROC + ; input: + ; r0 = opus_val16 *_x (must be 32-bit aligned) + ; r1 = opus_val16 *_y (only needs to be 16-bit aligned) + ; r2 = opus_val32 *xcorr + ; r3 = int len + ; output: + ; r0 = maxcorr + ; internal usage + ; r4 = opus_val16 *x + ; r5 = opus_val16 *y + ; r6 = opus_val32 sum0 + ; r7 = opus_val32 sum1 + ; r8 = opus_val32 sum2 + ; r9 = opus_val32 sum3 + ; r1 = int max_pitch + ; r12 = int j + ; ignored: + ; int arch + STMFD sp!, {r4-r11, lr} + MOV r5, r1 + LDR r1, [sp, #36] + MOV r4, r0 + TST r5, #3 + ; maxcorr = 1 + MOV r0, #1 + BEQ celt_pitch_xcorr_edsp_process1u_done +; Compute one sum at the start to make y 32-bit aligned. + SUBS r12, r3, #4 + ; r14 = sum = 0 + MOV r14, #0 + LDRH r8, [r5], #2 + BLE celt_pitch_xcorr_edsp_process1u_loop4_done + LDR r6, [r4], #4 + MOV r8, r8, LSL #16 +celt_pitch_xcorr_edsp_process1u_loop4 + LDR r9, [r5], #4 + SMLABT r14, r6, r8, r14 ; sum = MAC16_16(sum, x_0, y_0) + LDR r7, [r4], #4 + SMLATB r14, r6, r9, r14 ; sum = MAC16_16(sum, x_1, y_1) + LDR r8, [r5], #4 + SMLABT r14, r7, r9, r14 ; sum = MAC16_16(sum, x_2, y_2) + SUBS r12, r12, #4 ; j-=4 + SMLATB r14, r7, r8, r14 ; sum = MAC16_16(sum, x_3, y_3) + LDRGT r6, [r4], #4 + BGT celt_pitch_xcorr_edsp_process1u_loop4 + MOV r8, r8, LSR #16 +celt_pitch_xcorr_edsp_process1u_loop4_done + ADDS r12, r12, #4 +celt_pitch_xcorr_edsp_process1u_loop1 + LDRHGE r6, [r4], #2 + ; Stall + SMLABBGE r14, r6, r8, r14 ; sum = MAC16_16(sum, *x, *y) + SUBSGE r12, r12, #1 + LDRHGT r8, [r5], #2 + BGT celt_pitch_xcorr_edsp_process1u_loop1 + ; Restore _x + SUB r4, r4, r3, LSL #1 + ; Restore and advance _y + SUB r5, r5, r3, LSL #1 + ; maxcorr = max(maxcorr, sum) + CMP r0, r14 + ADD r5, r5, #2 + MOVLT r0, r14 + SUBS r1, r1, #1 + ; xcorr[i] = sum + STR r14, [r2], #4 + BLE celt_pitch_xcorr_edsp_done +celt_pitch_xcorr_edsp_process1u_done + ; if (max_pitch < 4) goto celt_pitch_xcorr_edsp_process2 + SUBS r1, r1, #4 + BLT celt_pitch_xcorr_edsp_process2 +celt_pitch_xcorr_edsp_process4 + ; xcorr_kernel_edsp parameters: + ; r3 = len, r4 = _x, r5 = _y, r6...r9 = sum[4] = {0, 0, 0, 0} + MOV r6, #0 + MOV r7, #0 + MOV r8, #0 + MOV r9, #0 + BL xcorr_kernel_edsp_start ; xcorr_kernel_edsp(_x, _y+i, xcorr+i, len) + ; maxcorr = max(maxcorr, sum0, sum1, sum2, sum3) + CMP r0, r6 + ; _y+=4 + ADD r5, r5, #8 + MOVLT r0, r6 + CMP r0, r7 + MOVLT r0, r7 + CMP r0, r8 + MOVLT r0, r8 + CMP r0, r9 + MOVLT r0, r9 + STMIA r2!, {r6-r9} + SUBS r1, r1, #4 + BGE celt_pitch_xcorr_edsp_process4 +celt_pitch_xcorr_edsp_process2 + ADDS r1, r1, #2 + BLT celt_pitch_xcorr_edsp_process1a + SUBS r12, r3, #4 + ; {r10, r11} = {sum0, sum1} = {0, 0} + MOV r10, #0 + MOV r11, #0 + LDR r8, [r5], #4 + BLE celt_pitch_xcorr_edsp_process2_loop_done + LDR r6, [r4], #4 + LDR r9, [r5], #4 +celt_pitch_xcorr_edsp_process2_loop4 + SMLABB r10, r6, r8, r10 ; sum0 = MAC16_16(sum0, x_0, y_0) + LDR r7, [r4], #4 + SMLABT r11, r6, r8, r11 ; sum1 = MAC16_16(sum1, x_0, y_1) + SUBS r12, r12, #4 ; j-=4 + SMLATT r10, r6, r8, r10 ; sum0 = MAC16_16(sum0, x_1, y_1) + LDR r8, [r5], #4 + SMLATB r11, r6, r9, r11 ; sum1 = MAC16_16(sum1, x_1, y_2) + LDRGT r6, [r4], #4 + SMLABB r10, r7, r9, r10 ; sum0 = MAC16_16(sum0, x_2, y_2) + SMLABT r11, r7, r9, r11 ; sum1 = MAC16_16(sum1, x_2, y_3) + SMLATT r10, r7, r9, r10 ; sum0 = MAC16_16(sum0, x_3, y_3) + LDRGT r9, [r5], #4 + SMLATB r11, r7, r8, r11 ; sum1 = MAC16_16(sum1, x_3, y_4) + BGT celt_pitch_xcorr_edsp_process2_loop4 +celt_pitch_xcorr_edsp_process2_loop_done + ADDS r12, r12, #2 + BLE celt_pitch_xcorr_edsp_process2_1 + LDR r6, [r4], #4 + ; Stall + SMLABB r10, r6, r8, r10 ; sum0 = MAC16_16(sum0, x_0, y_0) + LDR r9, [r5], #4 + SMLABT r11, r6, r8, r11 ; sum1 = MAC16_16(sum1, x_0, y_1) + SUB r12, r12, #2 + SMLATT r10, r6, r8, r10 ; sum0 = MAC16_16(sum0, x_1, y_1) + MOV r8, r9 + SMLATB r11, r6, r9, r11 ; sum1 = MAC16_16(sum1, x_1, y_2) +celt_pitch_xcorr_edsp_process2_1 + LDRH r6, [r4], #2 + ADDS r12, r12, #1 + ; Stall + SMLABB r10, r6, r8, r10 ; sum0 = MAC16_16(sum0, x_0, y_0) + LDRHGT r7, [r4], #2 + SMLABT r11, r6, r8, r11 ; sum1 = MAC16_16(sum1, x_0, y_1) + BLE celt_pitch_xcorr_edsp_process2_done + LDRH r9, [r5], #2 + SMLABT r10, r7, r8, r10 ; sum0 = MAC16_16(sum0, x_0, y_1) + SMLABB r11, r7, r9, r11 ; sum1 = MAC16_16(sum1, x_0, y_2) +celt_pitch_xcorr_edsp_process2_done + ; Restore _x + SUB r4, r4, r3, LSL #1 + ; Restore and advance _y + SUB r5, r5, r3, LSL #1 + ; maxcorr = max(maxcorr, sum0) + CMP r0, r10 + ADD r5, r5, #2 + MOVLT r0, r10 + SUB r1, r1, #2 + ; maxcorr = max(maxcorr, sum1) + CMP r0, r11 + ; xcorr[i] = sum + STR r10, [r2], #4 + MOVLT r0, r11 + STR r11, [r2], #4 +celt_pitch_xcorr_edsp_process1a + ADDS r1, r1, #1 + BLT celt_pitch_xcorr_edsp_done + SUBS r12, r3, #4 + ; r14 = sum = 0 + MOV r14, #0 + BLT celt_pitch_xcorr_edsp_process1a_loop_done + LDR r6, [r4], #4 + LDR r8, [r5], #4 + LDR r7, [r4], #4 + LDR r9, [r5], #4 +celt_pitch_xcorr_edsp_process1a_loop4 + SMLABB r14, r6, r8, r14 ; sum = MAC16_16(sum, x_0, y_0) + SUBS r12, r12, #4 ; j-=4 + SMLATT r14, r6, r8, r14 ; sum = MAC16_16(sum, x_1, y_1) + LDRGE r6, [r4], #4 + SMLABB r14, r7, r9, r14 ; sum = MAC16_16(sum, x_2, y_2) + LDRGE r8, [r5], #4 + SMLATT r14, r7, r9, r14 ; sum = MAC16_16(sum, x_3, y_3) + LDRGE r7, [r4], #4 + LDRGE r9, [r5], #4 + BGE celt_pitch_xcorr_edsp_process1a_loop4 +celt_pitch_xcorr_edsp_process1a_loop_done + ADDS r12, r12, #2 + LDRGE r6, [r4], #4 + LDRGE r8, [r5], #4 + ; Stall + SMLABBGE r14, r6, r8, r14 ; sum = MAC16_16(sum, x_0, y_0) + SUBGE r12, r12, #2 + SMLATTGE r14, r6, r8, r14 ; sum = MAC16_16(sum, x_1, y_1) + ADDS r12, r12, #1 + LDRHGE r6, [r4], #2 + LDRHGE r8, [r5], #2 + ; Stall + SMLABBGE r14, r6, r8, r14 ; sum = MAC16_16(sum, *x, *y) + ; maxcorr = max(maxcorr, sum) + CMP r0, r14 + ; xcorr[i] = sum + STR r14, [r2], #4 + MOVLT r0, r14 +celt_pitch_xcorr_edsp_done + LDMFD sp!, {r4-r11, pc} + ENDP + +ENDIF + +END diff --git a/components/opus/libopus/celt/arm/fft_arm.h b/components/opus/libopus/celt/arm/fft_arm.h new file mode 100644 index 0000000..0b78175 --- /dev/null +++ b/components/opus/libopus/celt/arm/fft_arm.h @@ -0,0 +1,71 @@ +/* Copyright (c) 2015 Xiph.Org Foundation + Written by Viswanath Puttagunta */ +/** + @file fft_arm.h + @brief ARM Neon Intrinsic optimizations for fft using NE10 library + */ + +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +#if !defined(FFT_ARM_H) +#define FFT_ARM_H + +#include "kiss_fft.h" + +#if defined(HAVE_ARM_NE10) + +int opus_fft_alloc_arm_neon(kiss_fft_state *st); +void opus_fft_free_arm_neon(kiss_fft_state *st); + +void opus_fft_neon(const kiss_fft_state *st, + const kiss_fft_cpx *fin, + kiss_fft_cpx *fout); + +void opus_ifft_neon(const kiss_fft_state *st, + const kiss_fft_cpx *fin, + kiss_fft_cpx *fout); + +#if !defined(OPUS_HAVE_RTCD) +#define OVERRIDE_OPUS_FFT (1) + +#define opus_fft_alloc_arch(_st, arch) \ + ((void)(arch), opus_fft_alloc_arm_neon(_st)) + +#define opus_fft_free_arch(_st, arch) \ + ((void)(arch), opus_fft_free_arm_neon(_st)) + +#define opus_fft(_st, _fin, _fout, arch) \ + ((void)(arch), opus_fft_neon(_st, _fin, _fout)) + +#define opus_ifft(_st, _fin, _fout, arch) \ + ((void)(arch), opus_ifft_neon(_st, _fin, _fout)) + +#endif /* OPUS_HAVE_RTCD */ + +#endif /* HAVE_ARM_NE10 */ + +#endif diff --git a/components/opus/libopus/celt/arm/fixed_arm64.h b/components/opus/libopus/celt/arm/fixed_arm64.h new file mode 100644 index 0000000..c6fbd3d --- /dev/null +++ b/components/opus/libopus/celt/arm/fixed_arm64.h @@ -0,0 +1,35 @@ +/* Copyright (C) 2015 Vidyo */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifndef FIXED_ARM64_H +#define FIXED_ARM64_H + +#include + +#undef SIG2WORD16 +#define SIG2WORD16(x) (vqmovns_s32(PSHR32((x), SIG_SHIFT))) + +#endif diff --git a/components/opus/libopus/celt/arm/fixed_armv4.h b/components/opus/libopus/celt/arm/fixed_armv4.h new file mode 100644 index 0000000..d84888a --- /dev/null +++ b/components/opus/libopus/celt/arm/fixed_armv4.h @@ -0,0 +1,80 @@ +/* Copyright (C) 2013 Xiph.Org Foundation and contributors */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifndef FIXED_ARMv4_H +#define FIXED_ARMv4_H + +/** 16x32 multiplication, followed by a 16-bit shift right. Results fits in 32 bits */ +#undef MULT16_32_Q16 +static OPUS_INLINE opus_val32 MULT16_32_Q16_armv4(opus_val16 a, opus_val32 b) +{ + unsigned rd_lo; + int rd_hi; + __asm__( + "#MULT16_32_Q16\n\t" + "smull %0, %1, %2, %3\n\t" + : "=&r"(rd_lo), "=&r"(rd_hi) + : "%r"(b),"r"(SHL32(a,16)) + ); + return rd_hi; +} +#define MULT16_32_Q16(a, b) (MULT16_32_Q16_armv4(a, b)) + + +/** 16x32 multiplication, followed by a 15-bit shift right. Results fits in 32 bits */ +#undef MULT16_32_Q15 +static OPUS_INLINE opus_val32 MULT16_32_Q15_armv4(opus_val16 a, opus_val32 b) +{ + unsigned rd_lo; + int rd_hi; + __asm__( + "#MULT16_32_Q15\n\t" + "smull %0, %1, %2, %3\n\t" + : "=&r"(rd_lo), "=&r"(rd_hi) + : "%r"(b), "r"(SHL32(a,16)) + ); + /*We intentionally don't OR in the high bit of rd_lo for speed.*/ + return SHL32(rd_hi,1); +} +#define MULT16_32_Q15(a, b) (MULT16_32_Q15_armv4(a, b)) + + +/** 16x32 multiply, followed by a 15-bit shift right and 32-bit add. + b must fit in 31 bits. + Result fits in 32 bits. */ +#undef MAC16_32_Q15 +#define MAC16_32_Q15(c, a, b) ADD32(c, MULT16_32_Q15(a, b)) + +/** 16x32 multiply, followed by a 16-bit shift right and 32-bit add. + Result fits in 32 bits. */ +#undef MAC16_32_Q16 +#define MAC16_32_Q16(c, a, b) ADD32(c, MULT16_32_Q16(a, b)) + +/** 32x32 multiplication, followed by a 31-bit shift right. Results fits in 32 bits */ +#undef MULT32_32_Q31 +#define MULT32_32_Q31(a,b) (opus_val32)((((opus_int64)(a)) * ((opus_int64)(b)))>>31) + +#endif diff --git a/components/opus/libopus/celt/arm/fixed_armv5e.h b/components/opus/libopus/celt/arm/fixed_armv5e.h new file mode 100644 index 0000000..6bf73cb --- /dev/null +++ b/components/opus/libopus/celt/arm/fixed_armv5e.h @@ -0,0 +1,151 @@ +/* Copyright (C) 2007-2009 Xiph.Org Foundation + Copyright (C) 2003-2008 Jean-Marc Valin + Copyright (C) 2007-2008 CSIRO + Copyright (C) 2013 Parrot */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifndef FIXED_ARMv5E_H +#define FIXED_ARMv5E_H + +#include "fixed_armv4.h" + +/** 16x32 multiplication, followed by a 16-bit shift right. Results fits in 32 bits */ +#undef MULT16_32_Q16 +static OPUS_INLINE opus_val32 MULT16_32_Q16_armv5e(opus_val16 a, opus_val32 b) +{ + int res; + __asm__( + "#MULT16_32_Q16\n\t" + "smulwb %0, %1, %2\n\t" + : "=r"(res) + : "r"(b),"r"(a) + ); + return res; +} +#define MULT16_32_Q16(a, b) (MULT16_32_Q16_armv5e(a, b)) + + +/** 16x32 multiplication, followed by a 15-bit shift right. Results fits in 32 bits */ +#undef MULT16_32_Q15 +static OPUS_INLINE opus_val32 MULT16_32_Q15_armv5e(opus_val16 a, opus_val32 b) +{ + int res; + __asm__( + "#MULT16_32_Q15\n\t" + "smulwb %0, %1, %2\n\t" + : "=r"(res) + : "r"(b), "r"(a) + ); + return SHL32(res,1); +} +#define MULT16_32_Q15(a, b) (MULT16_32_Q15_armv5e(a, b)) + + +/** 16x32 multiply, followed by a 15-bit shift right and 32-bit add. + b must fit in 31 bits. + Result fits in 32 bits. */ +#undef MAC16_32_Q15 +static OPUS_INLINE opus_val32 MAC16_32_Q15_armv5e(opus_val32 c, opus_val16 a, + opus_val32 b) +{ + int res; + __asm__( + "#MAC16_32_Q15\n\t" + "smlawb %0, %1, %2, %3;\n" + : "=r"(res) + : "r"(SHL32(b,1)), "r"(a), "r"(c) + ); + return res; +} +#define MAC16_32_Q15(c, a, b) (MAC16_32_Q15_armv5e(c, a, b)) + +/** 16x32 multiply, followed by a 16-bit shift right and 32-bit add. + Result fits in 32 bits. */ +#undef MAC16_32_Q16 +static OPUS_INLINE opus_val32 MAC16_32_Q16_armv5e(opus_val32 c, opus_val16 a, + opus_val32 b) +{ + int res; + __asm__( + "#MAC16_32_Q16\n\t" + "smlawb %0, %1, %2, %3;\n" + : "=r"(res) + : "r"(b), "r"(a), "r"(c) + ); + return res; +} +#define MAC16_32_Q16(c, a, b) (MAC16_32_Q16_armv5e(c, a, b)) + +/** 16x16 multiply-add where the result fits in 32 bits */ +#undef MAC16_16 +static OPUS_INLINE opus_val32 MAC16_16_armv5e(opus_val32 c, opus_val16 a, + opus_val16 b) +{ + int res; + __asm__( + "#MAC16_16\n\t" + "smlabb %0, %1, %2, %3;\n" + : "=r"(res) + : "r"(a), "r"(b), "r"(c) + ); + return res; +} +#define MAC16_16(c, a, b) (MAC16_16_armv5e(c, a, b)) + +/** 16x16 multiplication where the result fits in 32 bits */ +#undef MULT16_16 +static OPUS_INLINE opus_val32 MULT16_16_armv5e(opus_val16 a, opus_val16 b) +{ + int res; + __asm__( + "#MULT16_16\n\t" + "smulbb %0, %1, %2;\n" + : "=r"(res) + : "r"(a), "r"(b) + ); + return res; +} +#define MULT16_16(a, b) (MULT16_16_armv5e(a, b)) + +#ifdef OPUS_ARM_INLINE_MEDIA + +#undef SIG2WORD16 +static OPUS_INLINE opus_val16 SIG2WORD16_armv6(opus_val32 x) +{ + celt_sig res; + __asm__( + "#SIG2WORD16\n\t" + "ssat %0, #16, %1, ASR #12\n\t" + : "=r"(res) + : "r"(x+2048) + ); + return EXTRACT16(res); +} +#define SIG2WORD16(x) (SIG2WORD16_armv6(x)) + +#endif /* OPUS_ARM_INLINE_MEDIA */ + +#endif diff --git a/components/opus/libopus/celt/arm/kiss_fft_armv4.h b/components/opus/libopus/celt/arm/kiss_fft_armv4.h new file mode 100644 index 0000000..e4faad6 --- /dev/null +++ b/components/opus/libopus/celt/arm/kiss_fft_armv4.h @@ -0,0 +1,121 @@ +/*Copyright (c) 2013, Xiph.Org Foundation and contributors. + + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE.*/ + +#ifndef KISS_FFT_ARMv4_H +#define KISS_FFT_ARMv4_H + +#if !defined(KISS_FFT_GUTS_H) +#error "This file should only be included from _kiss_fft_guts.h" +#endif + +#ifdef FIXED_POINT + +#undef C_MUL +#define C_MUL(m,a,b) \ + do{ \ + int br__; \ + int bi__; \ + int tt__; \ + __asm__ __volatile__( \ + "#C_MUL\n\t" \ + "ldrsh %[br], [%[bp], #0]\n\t" \ + "ldm %[ap], {r0,r1}\n\t" \ + "ldrsh %[bi], [%[bp], #2]\n\t" \ + "smull %[tt], %[mi], r1, %[br]\n\t" \ + "smlal %[tt], %[mi], r0, %[bi]\n\t" \ + "rsb %[bi], %[bi], #0\n\t" \ + "smull %[br], %[mr], r0, %[br]\n\t" \ + "mov %[tt], %[tt], lsr #15\n\t" \ + "smlal %[br], %[mr], r1, %[bi]\n\t" \ + "orr %[mi], %[tt], %[mi], lsl #17\n\t" \ + "mov %[br], %[br], lsr #15\n\t" \ + "orr %[mr], %[br], %[mr], lsl #17\n\t" \ + : [mr]"=r"((m).r), [mi]"=r"((m).i), \ + [br]"=&r"(br__), [bi]"=r"(bi__), [tt]"=r"(tt__) \ + : [ap]"r"(&(a)), [bp]"r"(&(b)) \ + : "r0", "r1" \ + ); \ + } \ + while(0) + +#undef C_MUL4 +#define C_MUL4(m,a,b) \ + do{ \ + int br__; \ + int bi__; \ + int tt__; \ + __asm__ __volatile__( \ + "#C_MUL4\n\t" \ + "ldrsh %[br], [%[bp], #0]\n\t" \ + "ldm %[ap], {r0,r1}\n\t" \ + "ldrsh %[bi], [%[bp], #2]\n\t" \ + "smull %[tt], %[mi], r1, %[br]\n\t" \ + "smlal %[tt], %[mi], r0, %[bi]\n\t" \ + "rsb %[bi], %[bi], #0\n\t" \ + "smull %[br], %[mr], r0, %[br]\n\t" \ + "mov %[tt], %[tt], lsr #17\n\t" \ + "smlal %[br], %[mr], r1, %[bi]\n\t" \ + "orr %[mi], %[tt], %[mi], lsl #15\n\t" \ + "mov %[br], %[br], lsr #17\n\t" \ + "orr %[mr], %[br], %[mr], lsl #15\n\t" \ + : [mr]"=r"((m).r), [mi]"=r"((m).i), \ + [br]"=&r"(br__), [bi]"=r"(bi__), [tt]"=r"(tt__) \ + : [ap]"r"(&(a)), [bp]"r"(&(b)) \ + : "r0", "r1" \ + ); \ + } \ + while(0) + +#undef C_MULC +#define C_MULC(m,a,b) \ + do{ \ + int br__; \ + int bi__; \ + int tt__; \ + __asm__ __volatile__( \ + "#C_MULC\n\t" \ + "ldrsh %[br], [%[bp], #0]\n\t" \ + "ldm %[ap], {r0,r1}\n\t" \ + "ldrsh %[bi], [%[bp], #2]\n\t" \ + "smull %[tt], %[mr], r0, %[br]\n\t" \ + "smlal %[tt], %[mr], r1, %[bi]\n\t" \ + "rsb %[bi], %[bi], #0\n\t" \ + "smull %[br], %[mi], r1, %[br]\n\t" \ + "mov %[tt], %[tt], lsr #15\n\t" \ + "smlal %[br], %[mi], r0, %[bi]\n\t" \ + "orr %[mr], %[tt], %[mr], lsl #17\n\t" \ + "mov %[br], %[br], lsr #15\n\t" \ + "orr %[mi], %[br], %[mi], lsl #17\n\t" \ + : [mr]"=r"((m).r), [mi]"=r"((m).i), \ + [br]"=&r"(br__), [bi]"=r"(bi__), [tt]"=r"(tt__) \ + : [ap]"r"(&(a)), [bp]"r"(&(b)) \ + : "r0", "r1" \ + ); \ + } \ + while(0) + +#endif /* FIXED_POINT */ + +#endif /* KISS_FFT_ARMv4_H */ diff --git a/components/opus/libopus/celt/arm/kiss_fft_armv5e.h b/components/opus/libopus/celt/arm/kiss_fft_armv5e.h new file mode 100644 index 0000000..9eca183 --- /dev/null +++ b/components/opus/libopus/celt/arm/kiss_fft_armv5e.h @@ -0,0 +1,118 @@ +/*Copyright (c) 2013, Xiph.Org Foundation and contributors. + + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE.*/ + +#ifndef KISS_FFT_ARMv5E_H +#define KISS_FFT_ARMv5E_H + +#if !defined(KISS_FFT_GUTS_H) +#error "This file should only be included from _kiss_fft_guts.h" +#endif + +#ifdef FIXED_POINT + +#if defined(__thumb__)||defined(__thumb2__) +#define LDRD_CONS "Q" +#else +#define LDRD_CONS "Uq" +#endif + +#undef C_MUL +#define C_MUL(m,a,b) \ + do{ \ + int mr1__; \ + int mr2__; \ + int mi__; \ + long long aval__; \ + int bval__; \ + __asm__( \ + "#C_MUL\n\t" \ + "ldrd %[aval], %H[aval], %[ap]\n\t" \ + "ldr %[bval], %[bp]\n\t" \ + "smulwb %[mi], %H[aval], %[bval]\n\t" \ + "smulwb %[mr1], %[aval], %[bval]\n\t" \ + "smulwt %[mr2], %H[aval], %[bval]\n\t" \ + "smlawt %[mi], %[aval], %[bval], %[mi]\n\t" \ + : [mr1]"=r"(mr1__), [mr2]"=r"(mr2__), [mi]"=r"(mi__), \ + [aval]"=&r"(aval__), [bval]"=r"(bval__) \ + : [ap]LDRD_CONS(a), [bp]"m"(b) \ + ); \ + (m).r = SHL32(SUB32(mr1__, mr2__), 1); \ + (m).i = SHL32(mi__, 1); \ + } \ + while(0) + +#undef C_MUL4 +#define C_MUL4(m,a,b) \ + do{ \ + int mr1__; \ + int mr2__; \ + int mi__; \ + long long aval__; \ + int bval__; \ + __asm__( \ + "#C_MUL4\n\t" \ + "ldrd %[aval], %H[aval], %[ap]\n\t" \ + "ldr %[bval], %[bp]\n\t" \ + "smulwb %[mi], %H[aval], %[bval]\n\t" \ + "smulwb %[mr1], %[aval], %[bval]\n\t" \ + "smulwt %[mr2], %H[aval], %[bval]\n\t" \ + "smlawt %[mi], %[aval], %[bval], %[mi]\n\t" \ + : [mr1]"=r"(mr1__), [mr2]"=r"(mr2__), [mi]"=r"(mi__), \ + [aval]"=&r"(aval__), [bval]"=r"(bval__) \ + : [ap]LDRD_CONS(a), [bp]"m"(b) \ + ); \ + (m).r = SHR32(SUB32(mr1__, mr2__), 1); \ + (m).i = SHR32(mi__, 1); \ + } \ + while(0) + +#undef C_MULC +#define C_MULC(m,a,b) \ + do{ \ + int mr__; \ + int mi1__; \ + int mi2__; \ + long long aval__; \ + int bval__; \ + __asm__( \ + "#C_MULC\n\t" \ + "ldrd %[aval], %H[aval], %[ap]\n\t" \ + "ldr %[bval], %[bp]\n\t" \ + "smulwb %[mr], %[aval], %[bval]\n\t" \ + "smulwb %[mi1], %H[aval], %[bval]\n\t" \ + "smulwt %[mi2], %[aval], %[bval]\n\t" \ + "smlawt %[mr], %H[aval], %[bval], %[mr]\n\t" \ + : [mr]"=r"(mr__), [mi1]"=r"(mi1__), [mi2]"=r"(mi2__), \ + [aval]"=&r"(aval__), [bval]"=r"(bval__) \ + : [ap]LDRD_CONS(a), [bp]"m"(b) \ + ); \ + (m).r = SHL32(mr__, 1); \ + (m).i = SHL32(SUB32(mi1__, mi2__), 1); \ + } \ + while(0) + +#endif /* FIXED_POINT */ + +#endif /* KISS_FFT_GUTS_H */ diff --git a/components/opus/libopus/celt/arm/mdct_arm.h b/components/opus/libopus/celt/arm/mdct_arm.h new file mode 100644 index 0000000..14200ba --- /dev/null +++ b/components/opus/libopus/celt/arm/mdct_arm.h @@ -0,0 +1,59 @@ +/* Copyright (c) 2015 Xiph.Org Foundation + Written by Viswanath Puttagunta */ +/** + @file arm_mdct.h + @brief ARM Neon Intrinsic optimizations for mdct using NE10 library + */ + +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#if !defined(MDCT_ARM_H) +#define MDCT_ARM_H + +#include "mdct.h" + +#if defined(HAVE_ARM_NE10) +/** Compute a forward MDCT and scale by 4/N, trashes the input array */ +void clt_mdct_forward_neon(const mdct_lookup *l, kiss_fft_scalar *in, + kiss_fft_scalar * OPUS_RESTRICT out, + const opus_val16 *window, int overlap, + int shift, int stride, int arch); + +void clt_mdct_backward_neon(const mdct_lookup *l, kiss_fft_scalar *in, + kiss_fft_scalar * OPUS_RESTRICT out, + const opus_val16 *window, int overlap, + int shift, int stride, int arch); + +#if !defined(OPUS_HAVE_RTCD) +#define OVERRIDE_OPUS_MDCT (1) +#define clt_mdct_forward(_l, _in, _out, _window, _int, _shift, _stride, _arch) \ + clt_mdct_forward_neon(_l, _in, _out, _window, _int, _shift, _stride, _arch) +#define clt_mdct_backward(_l, _in, _out, _window, _int, _shift, _stride, _arch) \ + clt_mdct_backward_neon(_l, _in, _out, _window, _int, _shift, _stride, _arch) +#endif /* OPUS_HAVE_RTCD */ +#endif /* HAVE_ARM_NE10 */ + +#endif diff --git a/components/opus/libopus/celt/arm/pitch_arm.h b/components/opus/libopus/celt/arm/pitch_arm.h new file mode 100644 index 0000000..bed8b04 --- /dev/null +++ b/components/opus/libopus/celt/arm/pitch_arm.h @@ -0,0 +1,160 @@ +/* Copyright (c) 2010 Xiph.Org Foundation + * Copyright (c) 2013 Parrot */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#if !defined(PITCH_ARM_H) +# define PITCH_ARM_H + +# include "armcpu.h" + +# if defined(OPUS_ARM_MAY_HAVE_NEON_INTR) +opus_val32 celt_inner_prod_neon(const opus_val16 *x, const opus_val16 *y, int N); +void dual_inner_prod_neon(const opus_val16 *x, const opus_val16 *y01, + const opus_val16 *y02, int N, opus_val32 *xy1, opus_val32 *xy2); + +# if !defined(OPUS_HAVE_RTCD) && defined(OPUS_ARM_PRESUME_NEON) +# define OVERRIDE_CELT_INNER_PROD (1) +# define OVERRIDE_DUAL_INNER_PROD (1) +# define celt_inner_prod(x, y, N, arch) ((void)(arch), PRESUME_NEON(celt_inner_prod)(x, y, N)) +# define dual_inner_prod(x, y01, y02, N, xy1, xy2, arch) ((void)(arch), PRESUME_NEON(dual_inner_prod)(x, y01, y02, N, xy1, xy2)) +# endif +# endif + +# if !defined(OVERRIDE_CELT_INNER_PROD) +# if defined(OPUS_HAVE_RTCD) && (defined(OPUS_ARM_MAY_HAVE_NEON_INTR) && !defined(OPUS_ARM_PRESUME_NEON_INTR)) +extern opus_val32 (*const CELT_INNER_PROD_IMPL[OPUS_ARCHMASK+1])(const opus_val16 *x, const opus_val16 *y, int N); +# define OVERRIDE_CELT_INNER_PROD (1) +# define celt_inner_prod(x, y, N, arch) ((*CELT_INNER_PROD_IMPL[(arch)&OPUS_ARCHMASK])(x, y, N)) +# elif defined(OPUS_ARM_PRESUME_NEON_INTR) +# define OVERRIDE_CELT_INNER_PROD (1) +# define celt_inner_prod(x, y, N, arch) ((void)(arch), celt_inner_prod_neon(x, y, N)) +# endif +# endif + +# if !defined(OVERRIDE_DUAL_INNER_PROD) +# if defined(OPUS_HAVE_RTCD) && (defined(OPUS_ARM_MAY_HAVE_NEON_INTR) && !defined(OPUS_ARM_PRESUME_NEON_INTR)) +extern void (*const DUAL_INNER_PROD_IMPL[OPUS_ARCHMASK+1])(const opus_val16 *x, + const opus_val16 *y01, const opus_val16 *y02, int N, opus_val32 *xy1, opus_val32 *xy2); +# define OVERRIDE_DUAL_INNER_PROD (1) +# define dual_inner_prod(x, y01, y02, N, xy1, xy2, arch) ((*DUAL_INNER_PROD_IMPL[(arch)&OPUS_ARCHMASK])(x, y01, y02, N, xy1, xy2)) +# elif defined(OPUS_ARM_PRESUME_NEON_INTR) +# define OVERRIDE_DUAL_INNER_PROD (1) +# define dual_inner_prod(x, y01, y02, N, xy1, xy2, arch) ((void)(arch), dual_inner_prod_neon(x, y01, y02, N, xy1, xy2)) +# endif +# endif + +# if defined(FIXED_POINT) + +# if defined(OPUS_ARM_MAY_HAVE_NEON) +opus_val32 celt_pitch_xcorr_neon(const opus_val16 *_x, const opus_val16 *_y, + opus_val32 *xcorr, int len, int max_pitch, int arch); +# endif + +# if defined(OPUS_ARM_MAY_HAVE_MEDIA) +# define celt_pitch_xcorr_media MAY_HAVE_EDSP(celt_pitch_xcorr) +# endif + +# if defined(OPUS_ARM_MAY_HAVE_EDSP) +opus_val32 celt_pitch_xcorr_edsp(const opus_val16 *_x, const opus_val16 *_y, + opus_val32 *xcorr, int len, int max_pitch, int arch); +# endif + +# if defined(OPUS_HAVE_RTCD) && \ + ((defined(OPUS_ARM_MAY_HAVE_NEON) && !defined(OPUS_ARM_PRESUME_NEON)) || \ + (defined(OPUS_ARM_MAY_HAVE_MEDIA) && !defined(OPUS_ARM_PRESUME_MEDIA)) || \ + (defined(OPUS_ARM_MAY_HAVE_EDSP) && !defined(OPUS_ARM_PRESUME_EDSP))) +extern opus_val32 +(*const CELT_PITCH_XCORR_IMPL[OPUS_ARCHMASK+1])(const opus_val16 *, + const opus_val16 *, opus_val32 *, int, int, int); +# define OVERRIDE_PITCH_XCORR (1) +# define celt_pitch_xcorr(_x, _y, xcorr, len, max_pitch, arch) \ + ((*CELT_PITCH_XCORR_IMPL[(arch)&OPUS_ARCHMASK])(_x, _y, \ + xcorr, len, max_pitch, arch)) + +# elif defined(OPUS_ARM_PRESUME_EDSP) || \ + defined(OPUS_ARM_PRESUME_MEDIA) || \ + defined(OPUS_ARM_PRESUME_NEON) +# define OVERRIDE_PITCH_XCORR (1) +# define celt_pitch_xcorr (PRESUME_NEON(celt_pitch_xcorr)) + +# endif + +# if defined(OPUS_ARM_MAY_HAVE_NEON_INTR) +void xcorr_kernel_neon_fixed( + const opus_val16 *x, + const opus_val16 *y, + opus_val32 sum[4], + int len); +# endif + +# if defined(OPUS_HAVE_RTCD) && \ + (defined(OPUS_ARM_MAY_HAVE_NEON_INTR) && !defined(OPUS_ARM_PRESUME_NEON_INTR)) + +extern void (*const XCORR_KERNEL_IMPL[OPUS_ARCHMASK + 1])( + const opus_val16 *x, + const opus_val16 *y, + opus_val32 sum[4], + int len); + +# define OVERRIDE_XCORR_KERNEL (1) +# define xcorr_kernel(x, y, sum, len, arch) \ + ((*XCORR_KERNEL_IMPL[(arch) & OPUS_ARCHMASK])(x, y, sum, len)) + +# elif defined(OPUS_ARM_PRESUME_NEON_INTR) +# define OVERRIDE_XCORR_KERNEL (1) +# define xcorr_kernel(x, y, sum, len, arch) \ + ((void)arch, xcorr_kernel_neon_fixed(x, y, sum, len)) + +# endif + +#else /* Start !FIXED_POINT */ +/* Float case */ +#if defined(OPUS_ARM_MAY_HAVE_NEON_INTR) +void celt_pitch_xcorr_float_neon(const opus_val16 *_x, const opus_val16 *_y, + opus_val32 *xcorr, int len, int max_pitch, int arch); +#endif + +# if defined(OPUS_HAVE_RTCD) && \ + (defined(OPUS_ARM_MAY_HAVE_NEON_INTR) && !defined(OPUS_ARM_PRESUME_NEON_INTR)) +extern void +(*const CELT_PITCH_XCORR_IMPL[OPUS_ARCHMASK+1])(const opus_val16 *, + const opus_val16 *, opus_val32 *, int, int, int); + +# define OVERRIDE_PITCH_XCORR (1) +# define celt_pitch_xcorr(_x, _y, xcorr, len, max_pitch, arch) \ + ((*CELT_PITCH_XCORR_IMPL[(arch)&OPUS_ARCHMASK])(_x, _y, \ + xcorr, len, max_pitch, arch)) + +# elif defined(OPUS_ARM_PRESUME_NEON_INTR) + +# define OVERRIDE_PITCH_XCORR (1) +# define celt_pitch_xcorr celt_pitch_xcorr_float_neon + +# endif + +#endif /* end !FIXED_POINT */ + +#endif diff --git a/components/opus/libopus/celt/arm/pitch_neon_intr.c b/components/opus/libopus/celt/arm/pitch_neon_intr.c new file mode 100644 index 0000000..1ac38c4 --- /dev/null +++ b/components/opus/libopus/celt/arm/pitch_neon_intr.c @@ -0,0 +1,290 @@ +/*********************************************************************** +Copyright (c) 2017 Google Inc. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include "pitch.h" + +#ifdef FIXED_POINT + +opus_val32 celt_inner_prod_neon(const opus_val16 *x, const opus_val16 *y, int N) +{ + int i; + opus_val32 xy; + int16x8_t x_s16x8, y_s16x8; + int32x4_t xy_s32x4 = vdupq_n_s32(0); + int64x2_t xy_s64x2; + int64x1_t xy_s64x1; + + for (i = 0; i < N - 7; i += 8) { + x_s16x8 = vld1q_s16(&x[i]); + y_s16x8 = vld1q_s16(&y[i]); + xy_s32x4 = vmlal_s16(xy_s32x4, vget_low_s16 (x_s16x8), vget_low_s16 (y_s16x8)); + xy_s32x4 = vmlal_s16(xy_s32x4, vget_high_s16(x_s16x8), vget_high_s16(y_s16x8)); + } + + if (N - i >= 4) { + const int16x4_t x_s16x4 = vld1_s16(&x[i]); + const int16x4_t y_s16x4 = vld1_s16(&y[i]); + xy_s32x4 = vmlal_s16(xy_s32x4, x_s16x4, y_s16x4); + i += 4; + } + + xy_s64x2 = vpaddlq_s32(xy_s32x4); + xy_s64x1 = vadd_s64(vget_low_s64(xy_s64x2), vget_high_s64(xy_s64x2)); + xy = vget_lane_s32(vreinterpret_s32_s64(xy_s64x1), 0); + + for (; i < N; i++) { + xy = MAC16_16(xy, x[i], y[i]); + } + +#ifdef OPUS_CHECK_ASM + celt_assert(celt_inner_prod_c(x, y, N) == xy); +#endif + + return xy; +} + +void dual_inner_prod_neon(const opus_val16 *x, const opus_val16 *y01, const opus_val16 *y02, + int N, opus_val32 *xy1, opus_val32 *xy2) +{ + int i; + opus_val32 xy01, xy02; + int16x8_t x_s16x8, y01_s16x8, y02_s16x8; + int32x4_t xy01_s32x4 = vdupq_n_s32(0); + int32x4_t xy02_s32x4 = vdupq_n_s32(0); + int64x2_t xy01_s64x2, xy02_s64x2; + int64x1_t xy01_s64x1, xy02_s64x1; + + for (i = 0; i < N - 7; i += 8) { + x_s16x8 = vld1q_s16(&x[i]); + y01_s16x8 = vld1q_s16(&y01[i]); + y02_s16x8 = vld1q_s16(&y02[i]); + xy01_s32x4 = vmlal_s16(xy01_s32x4, vget_low_s16 (x_s16x8), vget_low_s16 (y01_s16x8)); + xy02_s32x4 = vmlal_s16(xy02_s32x4, vget_low_s16 (x_s16x8), vget_low_s16 (y02_s16x8)); + xy01_s32x4 = vmlal_s16(xy01_s32x4, vget_high_s16(x_s16x8), vget_high_s16(y01_s16x8)); + xy02_s32x4 = vmlal_s16(xy02_s32x4, vget_high_s16(x_s16x8), vget_high_s16(y02_s16x8)); + } + + if (N - i >= 4) { + const int16x4_t x_s16x4 = vld1_s16(&x[i]); + const int16x4_t y01_s16x4 = vld1_s16(&y01[i]); + const int16x4_t y02_s16x4 = vld1_s16(&y02[i]); + xy01_s32x4 = vmlal_s16(xy01_s32x4, x_s16x4, y01_s16x4); + xy02_s32x4 = vmlal_s16(xy02_s32x4, x_s16x4, y02_s16x4); + i += 4; + } + + xy01_s64x2 = vpaddlq_s32(xy01_s32x4); + xy02_s64x2 = vpaddlq_s32(xy02_s32x4); + xy01_s64x1 = vadd_s64(vget_low_s64(xy01_s64x2), vget_high_s64(xy01_s64x2)); + xy02_s64x1 = vadd_s64(vget_low_s64(xy02_s64x2), vget_high_s64(xy02_s64x2)); + xy01 = vget_lane_s32(vreinterpret_s32_s64(xy01_s64x1), 0); + xy02 = vget_lane_s32(vreinterpret_s32_s64(xy02_s64x1), 0); + + for (; i < N; i++) { + xy01 = MAC16_16(xy01, x[i], y01[i]); + xy02 = MAC16_16(xy02, x[i], y02[i]); + } + *xy1 = xy01; + *xy2 = xy02; + +#ifdef OPUS_CHECK_ASM + { + opus_val32 xy1_c, xy2_c; + dual_inner_prod_c(x, y01, y02, N, &xy1_c, &xy2_c); + celt_assert(xy1_c == *xy1); + celt_assert(xy2_c == *xy2); + } +#endif +} + +#else /* !FIXED_POINT */ + +/* ========================================================================== */ + +#ifdef OPUS_CHECK_ASM + +/* This part of code simulates floating-point NEON operations. */ + +/* celt_inner_prod_neon_float_c_simulation() simulates the floating-point */ +/* operations of celt_inner_prod_neon(), and both functions should have bit */ +/* exact output. */ +static opus_val32 celt_inner_prod_neon_float_c_simulation(const opus_val16 *x, const opus_val16 *y, int N) +{ + int i; + opus_val32 xy, xy0 = 0, xy1 = 0, xy2 = 0, xy3 = 0; + for (i = 0; i < N - 3; i += 4) { + xy0 = MAC16_16(xy0, x[i + 0], y[i + 0]); + xy1 = MAC16_16(xy1, x[i + 1], y[i + 1]); + xy2 = MAC16_16(xy2, x[i + 2], y[i + 2]); + xy3 = MAC16_16(xy3, x[i + 3], y[i + 3]); + } + xy0 += xy2; + xy1 += xy3; + xy = xy0 + xy1; + for (; i < N; i++) { + xy = MAC16_16(xy, x[i], y[i]); + } + return xy; +} + +/* dual_inner_prod_neon_float_c_simulation() simulates the floating-point */ +/* operations of dual_inner_prod_neon(), and both functions should have bit */ +/* exact output. */ +static void dual_inner_prod_neon_float_c_simulation(const opus_val16 *x, const opus_val16 *y01, const opus_val16 *y02, + int N, opus_val32 *xy1, opus_val32 *xy2) +{ + int i; + opus_val32 xy01, xy02, xy01_0 = 0, xy01_1 = 0, xy01_2 = 0, xy01_3 = 0, xy02_0 = 0, xy02_1 = 0, xy02_2 = 0, xy02_3 = 0; + for (i = 0; i < N - 3; i += 4) { + xy01_0 = MAC16_16(xy01_0, x[i + 0], y01[i + 0]); + xy01_1 = MAC16_16(xy01_1, x[i + 1], y01[i + 1]); + xy01_2 = MAC16_16(xy01_2, x[i + 2], y01[i + 2]); + xy01_3 = MAC16_16(xy01_3, x[i + 3], y01[i + 3]); + xy02_0 = MAC16_16(xy02_0, x[i + 0], y02[i + 0]); + xy02_1 = MAC16_16(xy02_1, x[i + 1], y02[i + 1]); + xy02_2 = MAC16_16(xy02_2, x[i + 2], y02[i + 2]); + xy02_3 = MAC16_16(xy02_3, x[i + 3], y02[i + 3]); + } + xy01_0 += xy01_2; + xy02_0 += xy02_2; + xy01_1 += xy01_3; + xy02_1 += xy02_3; + xy01 = xy01_0 + xy01_1; + xy02 = xy02_0 + xy02_1; + for (; i < N; i++) { + xy01 = MAC16_16(xy01, x[i], y01[i]); + xy02 = MAC16_16(xy02, x[i], y02[i]); + } + *xy1 = xy01; + *xy2 = xy02; +} + +#endif /* OPUS_CHECK_ASM */ + +/* ========================================================================== */ + +opus_val32 celt_inner_prod_neon(const opus_val16 *x, const opus_val16 *y, int N) +{ + int i; + opus_val32 xy; + float32x4_t xy_f32x4 = vdupq_n_f32(0); + float32x2_t xy_f32x2; + + for (i = 0; i < N - 7; i += 8) { + float32x4_t x_f32x4, y_f32x4; + x_f32x4 = vld1q_f32(&x[i]); + y_f32x4 = vld1q_f32(&y[i]); + xy_f32x4 = vmlaq_f32(xy_f32x4, x_f32x4, y_f32x4); + x_f32x4 = vld1q_f32(&x[i + 4]); + y_f32x4 = vld1q_f32(&y[i + 4]); + xy_f32x4 = vmlaq_f32(xy_f32x4, x_f32x4, y_f32x4); + } + + if (N - i >= 4) { + const float32x4_t x_f32x4 = vld1q_f32(&x[i]); + const float32x4_t y_f32x4 = vld1q_f32(&y[i]); + xy_f32x4 = vmlaq_f32(xy_f32x4, x_f32x4, y_f32x4); + i += 4; + } + + xy_f32x2 = vadd_f32(vget_low_f32(xy_f32x4), vget_high_f32(xy_f32x4)); + xy_f32x2 = vpadd_f32(xy_f32x2, xy_f32x2); + xy = vget_lane_f32(xy_f32x2, 0); + + for (; i < N; i++) { + xy = MAC16_16(xy, x[i], y[i]); + } + +#ifdef OPUS_CHECK_ASM + celt_assert(ABS32(celt_inner_prod_neon_float_c_simulation(x, y, N) - xy) <= VERY_SMALL); +#endif + + return xy; +} + +void dual_inner_prod_neon(const opus_val16 *x, const opus_val16 *y01, const opus_val16 *y02, + int N, opus_val32 *xy1, opus_val32 *xy2) +{ + int i; + opus_val32 xy01, xy02; + float32x4_t xy01_f32x4 = vdupq_n_f32(0); + float32x4_t xy02_f32x4 = vdupq_n_f32(0); + float32x2_t xy01_f32x2, xy02_f32x2; + + for (i = 0; i < N - 7; i += 8) { + float32x4_t x_f32x4, y01_f32x4, y02_f32x4; + x_f32x4 = vld1q_f32(&x[i]); + y01_f32x4 = vld1q_f32(&y01[i]); + y02_f32x4 = vld1q_f32(&y02[i]); + xy01_f32x4 = vmlaq_f32(xy01_f32x4, x_f32x4, y01_f32x4); + xy02_f32x4 = vmlaq_f32(xy02_f32x4, x_f32x4, y02_f32x4); + x_f32x4 = vld1q_f32(&x[i + 4]); + y01_f32x4 = vld1q_f32(&y01[i + 4]); + y02_f32x4 = vld1q_f32(&y02[i + 4]); + xy01_f32x4 = vmlaq_f32(xy01_f32x4, x_f32x4, y01_f32x4); + xy02_f32x4 = vmlaq_f32(xy02_f32x4, x_f32x4, y02_f32x4); + } + + if (N - i >= 4) { + const float32x4_t x_f32x4 = vld1q_f32(&x[i]); + const float32x4_t y01_f32x4 = vld1q_f32(&y01[i]); + const float32x4_t y02_f32x4 = vld1q_f32(&y02[i]); + xy01_f32x4 = vmlaq_f32(xy01_f32x4, x_f32x4, y01_f32x4); + xy02_f32x4 = vmlaq_f32(xy02_f32x4, x_f32x4, y02_f32x4); + i += 4; + } + + xy01_f32x2 = vadd_f32(vget_low_f32(xy01_f32x4), vget_high_f32(xy01_f32x4)); + xy02_f32x2 = vadd_f32(vget_low_f32(xy02_f32x4), vget_high_f32(xy02_f32x4)); + xy01_f32x2 = vpadd_f32(xy01_f32x2, xy01_f32x2); + xy02_f32x2 = vpadd_f32(xy02_f32x2, xy02_f32x2); + xy01 = vget_lane_f32(xy01_f32x2, 0); + xy02 = vget_lane_f32(xy02_f32x2, 0); + + for (; i < N; i++) { + xy01 = MAC16_16(xy01, x[i], y01[i]); + xy02 = MAC16_16(xy02, x[i], y02[i]); + } + *xy1 = xy01; + *xy2 = xy02; + +#ifdef OPUS_CHECK_ASM + { + opus_val32 xy1_c, xy2_c; + dual_inner_prod_neon_float_c_simulation(x, y01, y02, N, &xy1_c, &xy2_c); + celt_assert(ABS32(xy1_c - *xy1) <= VERY_SMALL); + celt_assert(ABS32(xy2_c - *xy2) <= VERY_SMALL); + } +#endif +} + +#endif /* FIXED_POINT */ diff --git a/components/opus/libopus/celt/bands.c b/components/opus/libopus/celt/bands.c new file mode 100644 index 0000000..2702963 --- /dev/null +++ b/components/opus/libopus/celt/bands.c @@ -0,0 +1,1672 @@ +/* Copyright (c) 2007-2008 CSIRO + Copyright (c) 2007-2009 Xiph.Org Foundation + Copyright (c) 2008-2009 Gregory Maxwell + Written by Jean-Marc Valin and Gregory Maxwell */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include "bands.h" +#include "modes.h" +#include "vq.h" +#include "cwrs.h" +#include "stack_alloc.h" +#include "os_support.h" +#include "mathops.h" +#include "rate.h" +#include "quant_bands.h" +#include "pitch.h" + +int hysteresis_decision(opus_val16 val, const opus_val16 *thresholds, const opus_val16 *hysteresis, int N, int prev) +{ + int i; + for (i=0;iprev && val < thresholds[prev]+hysteresis[prev]) + i=prev; + if (i thresholds[prev-1]-hysteresis[prev-1]) + i=prev; + return i; +} + +opus_uint32 celt_lcg_rand(opus_uint32 seed) +{ + return 1664525 * seed + 1013904223; +} + +/* This is a cos() approximation designed to be bit-exact on any platform. Bit exactness + with this approximation is important because it has an impact on the bit allocation */ +opus_int16 bitexact_cos(opus_int16 x) +{ + opus_int32 tmp; + opus_int16 x2; + tmp = (4096+((opus_int32)(x)*(x)))>>13; + celt_sig_assert(tmp<=32767); + x2 = tmp; + x2 = (32767-x2) + FRAC_MUL16(x2, (-7651 + FRAC_MUL16(x2, (8277 + FRAC_MUL16(-626, x2))))); + celt_sig_assert(x2<=32766); + return 1+x2; +} + +int bitexact_log2tan(int isin,int icos) +{ + int lc; + int ls; + lc=EC_ILOG(icos); + ls=EC_ILOG(isin); + icos<<=15-lc; + isin<<=15-ls; + return (ls-lc)*(1<<11) + +FRAC_MUL16(isin, FRAC_MUL16(isin, -2597) + 7932) + -FRAC_MUL16(icos, FRAC_MUL16(icos, -2597) + 7932); +} + +#ifdef FIXED_POINT +/* Compute the amplitude (sqrt energy) in each of the bands */ +void compute_band_energies(const CELTMode *m, const celt_sig *X, celt_ener *bandE, int end, int C, int LM, int arch) +{ + int i, c, N; + const opus_int16 *eBands = m->eBands; + (void)arch; + N = m->shortMdctSize< 0) + { + int shift = celt_ilog2(maxval) - 14 + (((m->logN[i]>>BITRES)+LM+1)>>1); + j=eBands[i]<0) + { + do { + sum = MAC16_16(sum, EXTRACT16(SHR32(X[j+c*N],shift)), + EXTRACT16(SHR32(X[j+c*N],shift))); + } while (++jnbEBands] = EPSILON+VSHR32(EXTEND32(celt_sqrt(sum)),-shift); + } else { + bandE[i+c*m->nbEBands] = EPSILON; + } + /*printf ("%f ", bandE[i+c*m->nbEBands]);*/ + } + } while (++ceBands; + N = M*m->shortMdctSize; + c=0; do { + i=0; do { + opus_val16 g; + int j,shift; + opus_val16 E; + shift = celt_zlog2(bandE[i+c*m->nbEBands])-13; + E = VSHR32(bandE[i+c*m->nbEBands], shift); + g = EXTRACT16(celt_rcp(SHL32(E,3))); + j=M*eBands[i]; do { + X[j+c*N] = MULT16_16_Q15(VSHR32(freq[j+c*N],shift-1),g); + } while (++jeBands; + N = m->shortMdctSize<nbEBands] = celt_sqrt(sum); + /*printf ("%f ", bandE[i+c*m->nbEBands]);*/ + } + } while (++ceBands; + N = M*m->shortMdctSize; + c=0; do { + for (i=0;inbEBands]); + for (j=M*eBands[i];jeBands; + N = M*m->shortMdctSize; + bound = M*eBands[end]; + if (downsample!=1) + bound = IMIN(bound, N/downsample); + if (silence) + { + bound = 0; + start = end = 0; + } + f = freq; + x = X+M*eBands[start]; + for (i=0;i>DB_SHIFT); + if (shift>31) + { + shift=0; + g=0; + } else { + /* Handle the fractional part. */ + g = celt_exp2_frac(lg&((1< 16384 we'd be likely to overflow, so we're + capping the gain here, which is equivalent to a cap of 18 on lg. + This shouldn't trigger unless the bitstream is already corrupted. */ + if (shift <= -2) + { + g = 16384; + shift = -2; + } + do { + *f++ = SHL32(MULT16_16(*x++, g), -shift); + } while (++jeBands[i+1]-m->eBands[i]; + /* depth in 1/8 bits */ + celt_sig_assert(pulses[i]>=0); + depth = celt_udiv(1+pulses[i], (m->eBands[i+1]-m->eBands[i]))>>LM; + +#ifdef FIXED_POINT + thresh32 = SHR32(celt_exp2(-SHL16(depth, 10-BITRES)),1); + thresh = MULT16_32_Q15(QCONST16(0.5f, 15), MIN32(32767,thresh32)); + { + opus_val32 t; + t = N0<>1; + t = SHL32(t, (7-shift)<<1); + sqrt_1 = celt_rsqrt_norm(t); + } +#else + thresh = .5f*celt_exp2(-.125f*depth); + sqrt_1 = celt_rsqrt(N0<nbEBands+i]; + prev2 = prev2logE[c*m->nbEBands+i]; + if (C==1) + { + prev1 = MAX16(prev1,prev1logE[m->nbEBands+i]); + prev2 = MAX16(prev2,prev2logE[m->nbEBands+i]); + } + Ediff = EXTEND32(logE[c*m->nbEBands+i])-EXTEND32(MIN16(prev1,prev2)); + Ediff = MAX32(0, Ediff); + +#ifdef FIXED_POINT + if (Ediff < 16384) + { + opus_val32 r32 = SHR32(celt_exp2(-EXTRACT16(Ediff)),1); + r = 2*MIN16(16383,r32); + } else { + r = 0; + } + if (LM==3) + r = MULT16_16_Q14(23170, MIN32(23169, r)); + r = SHR16(MIN16(thresh, r),1); + r = SHR32(MULT16_16_Q15(sqrt_1, r),shift); +#else + /* r needs to be multiplied by 2 or 2*sqrt(2) depending on LM because + short blocks don't have the same energy as long */ + r = 2.f*celt_exp2(-Ediff); + if (LM==3) + r *= 1.41421356f; + r = MIN16(thresh, r); + r = r*sqrt_1; +#endif + X = X_+c*size+(m->eBands[i]<nbEBands]))-13; +#endif + left = VSHR32(bandE[i],shift); + right = VSHR32(bandE[i+m->nbEBands],shift); + norm = EPSILON + celt_sqrt(EPSILON+MULT16_16(left,left)+MULT16_16(right,right)); + a1 = DIV32_16(SHL32(EXTEND32(left),14),norm); + a2 = DIV32_16(SHL32(EXTEND32(right),14),norm); + for (j=0;j>1; + kr = celt_ilog2(Er)>>1; +#endif + t = VSHR32(El, (kl-7)<<1); + lgain = celt_rsqrt_norm(t); + t = VSHR32(Er, (kr-7)<<1); + rgain = celt_rsqrt_norm(t); + +#ifdef FIXED_POINT + if (kl < 7) + kl = 7; + if (kr < 7) + kr = 7; +#endif + + for (j=0;jeBands; + int decision; + int hf_sum=0; + + celt_assert(end>0); + + N0 = M*m->shortMdctSize; + + if (M*(eBands[end]-eBands[end-1]) <= 8) + return SPREAD_NONE; + c=0; do { + for (i=0;im->nbEBands-4) + hf_sum += celt_udiv(32*(tcount[1]+tcount[0]), N); + tmp = (2*tcount[2] >= N) + (2*tcount[1] >= N) + (2*tcount[0] >= N); + sum += tmp*spread_weight[i]; + nbBands+=spread_weight[i]; + } + } while (++cnbEBands+end)); + *hf_average = (*hf_average+hf_sum)>>1; + hf_sum = *hf_average; + if (*tapset_decision==2) + hf_sum += 4; + else if (*tapset_decision==0) + hf_sum -= 4; + if (hf_sum > 22) + *tapset_decision=2; + else if (hf_sum > 18) + *tapset_decision=1; + else + *tapset_decision=0; + } + /*printf("%d %d %d\n", hf_sum, *hf_average, *tapset_decision);*/ + celt_assert(nbBands>0); /* end has to be non-zero */ + celt_assert(sum>=0); + sum = celt_udiv((opus_int32)sum<<8, nbBands); + /* Recursive averaging */ + sum = (sum+*average)>>1; + *average = sum; + /* Hysteresis */ + sum = (3*sum + (((3-last_decision)<<7) + 64) + 2)>>2; + if (sum < 80) + { + decision = SPREAD_AGGRESSIVE; + } else if (sum < 256) + { + decision = SPREAD_NORMAL; + } else if (sum < 384) + { + decision = SPREAD_LIGHT; + } else { + decision = SPREAD_NONE; + } +#ifdef FUZZING + decision = rand()&0x3; + *tapset_decision=rand()%3; +#endif + return decision; +} + +/* Indexing table for converting from natural Hadamard to ordery Hadamard + This is essentially a bit-reversed Gray, on top of which we've added + an inversion of the order because we want the DC at the end rather than + the beginning. The lines are for N=2, 4, 8, 16 */ +static const int ordery_table[] = { + 1, 0, + 3, 0, 2, 1, + 7, 0, 4, 3, 6, 1, 5, 2, + 15, 0, 8, 7, 12, 3, 11, 4, 14, 1, 9, 6, 13, 2, 10, 5, +}; + +static void deinterleave_hadamard(celt_norm *X, int N0, int stride, int hadamard) +{ + int i,j; + VARDECL(celt_norm, tmp); + int N; + SAVE_STACK; + N = N0*stride; + ALLOC(tmp, N, celt_norm); + celt_assert(stride>0); + if (hadamard) + { + const int *ordery = ordery_table+stride-2; + for (i=0;i>= 1; + for (i=0;i>1)) { + qn = 1; + } else { + qn = exp2_table8[qb&0x7]>>(14-(qb>>BITRES)); + qn = (qn+1)>>1<<1; + } + celt_assert(qn <= 256); + return qn; +} + +struct band_ctx { + int encode; + int resynth; + const CELTMode *m; + int i; + int intensity; + int spread; + int tf_change; + ec_ctx *ec; + opus_int32 remaining_bits; + const celt_ener *bandE; + opus_uint32 seed; + int arch; + int theta_round; + int disable_inv; + int avoid_split_noise; +}; + +struct split_ctx { + int inv; + int imid; + int iside; + int delta; + int itheta; + int qalloc; +}; + +static void compute_theta(struct band_ctx *ctx, struct split_ctx *sctx, + celt_norm *X, celt_norm *Y, int N, int *b, int B, int B0, + int LM, + int stereo, int *fill) +{ + int qn; + int itheta=0; + int delta; + int imid, iside; + int qalloc; + int pulse_cap; + int offset; + opus_int32 tell; + int inv=0; + int encode; + const CELTMode *m; + int i; + int intensity; + ec_ctx *ec; + const celt_ener *bandE; + + encode = ctx->encode; + m = ctx->m; + i = ctx->i; + intensity = ctx->intensity; + ec = ctx->ec; + bandE = ctx->bandE; + + /* Decide on the resolution to give to the split parameter theta */ + pulse_cap = m->logN[i]+LM*(1<>1) - (stereo&&N==2 ? QTHETA_OFFSET_TWOPHASE : QTHETA_OFFSET); + qn = compute_qn(N, *b, offset, pulse_cap, stereo); + if (stereo && i>=intensity) + qn = 1; + if (encode) + { + /* theta is the atan() of the ratio between the (normalized) + side and mid. With just that parameter, we can re-scale both + mid and side because we know that 1) they have unit norm and + 2) they are orthogonal. */ + itheta = stereo_itheta(X, Y, stereo, N, ctx->arch); + } + tell = ec_tell_frac(ec); + if (qn!=1) + { + if (encode) + { + if (!stereo || ctx->theta_round == 0) + { + itheta = (itheta*(opus_int32)qn+8192)>>14; + if (!stereo && ctx->avoid_split_noise && itheta > 0 && itheta < qn) + { + /* Check if the selected value of theta will cause the bit allocation + to inject noise on one side. If so, make sure the energy of that side + is zero. */ + int unquantized = celt_udiv((opus_int32)itheta*16384, qn); + imid = bitexact_cos((opus_int16)unquantized); + iside = bitexact_cos((opus_int16)(16384-unquantized)); + delta = FRAC_MUL16((N-1)<<7,bitexact_log2tan(iside,imid)); + if (delta > *b) + itheta = qn; + else if (delta < -*b) + itheta = 0; + } + } else { + int down; + /* Bias quantization towards itheta=0 and itheta=16384. */ + int bias = itheta > 8192 ? 32767/qn : -32767/qn; + down = IMIN(qn-1, IMAX(0, (itheta*(opus_int32)qn + bias)>>14)); + if (ctx->theta_round < 0) + itheta = down; + else + itheta = down+1; + } + } + /* Entropy coding of the angle. We use a uniform pdf for the + time split, a step for stereo, and a triangular one for the rest. */ + if (stereo && N>2) + { + int p0 = 3; + int x = itheta; + int x0 = qn/2; + int ft = p0*(x0+1) + x0; + /* Use a probability of p0 up to itheta=8192 and then use 1 after */ + if (encode) + { + ec_encode(ec,x<=x0?p0*x:(x-1-x0)+(x0+1)*p0,x<=x0?p0*(x+1):(x-x0)+(x0+1)*p0,ft); + } else { + int fs; + fs=ec_decode(ec,ft); + if (fs<(x0+1)*p0) + x=fs/p0; + else + x=x0+1+(fs-(x0+1)*p0); + ec_dec_update(ec,x<=x0?p0*x:(x-1-x0)+(x0+1)*p0,x<=x0?p0*(x+1):(x-x0)+(x0+1)*p0,ft); + itheta = x; + } + } else if (B0>1 || stereo) { + /* Uniform pdf */ + if (encode) + ec_enc_uint(ec, itheta, qn+1); + else + itheta = ec_dec_uint(ec, qn+1); + } else { + int fs=1, ft; + ft = ((qn>>1)+1)*((qn>>1)+1); + if (encode) + { + int fl; + + fs = itheta <= (qn>>1) ? itheta + 1 : qn + 1 - itheta; + fl = itheta <= (qn>>1) ? itheta*(itheta + 1)>>1 : + ft - ((qn + 1 - itheta)*(qn + 2 - itheta)>>1); + + ec_encode(ec, fl, fl+fs, ft); + } else { + /* Triangular pdf */ + int fl=0; + int fm; + fm = ec_decode(ec, ft); + + if (fm < ((qn>>1)*((qn>>1) + 1)>>1)) + { + itheta = (isqrt32(8*(opus_uint32)fm + 1) - 1)>>1; + fs = itheta + 1; + fl = itheta*(itheta + 1)>>1; + } + else + { + itheta = (2*(qn + 1) + - isqrt32(8*(opus_uint32)(ft - fm - 1) + 1))>>1; + fs = qn + 1 - itheta; + fl = ft - ((qn + 1 - itheta)*(qn + 2 - itheta)>>1); + } + + ec_dec_update(ec, fl, fl+fs, ft); + } + } + celt_assert(itheta>=0); + itheta = celt_udiv((opus_int32)itheta*16384, qn); + if (encode && stereo) + { + if (itheta==0) + intensity_stereo(m, X, Y, bandE, i, N); + else + stereo_split(X, Y, N); + } + /* NOTE: Renormalising X and Y *may* help fixed-point a bit at very high rate. + Let's do that at higher complexity */ + } else if (stereo) { + if (encode) + { + inv = itheta > 8192 && !ctx->disable_inv; + if (inv) + { + int j; + for (j=0;j2<remaining_bits > 2<disable_inv) + inv = 0; + itheta = 0; + } + qalloc = ec_tell_frac(ec) - tell; + *b -= qalloc; + + if (itheta == 0) + { + imid = 32767; + iside = 0; + *fill &= (1<inv = inv; + sctx->imid = imid; + sctx->iside = iside; + sctx->delta = delta; + sctx->itheta = itheta; + sctx->qalloc = qalloc; +} +static unsigned quant_band_n1(struct band_ctx *ctx, celt_norm *X, celt_norm *Y, int b, + celt_norm *lowband_out) +{ + int c; + int stereo; + celt_norm *x = X; + int encode; + ec_ctx *ec; + + encode = ctx->encode; + ec = ctx->ec; + + stereo = Y != NULL; + c=0; do { + int sign=0; + if (ctx->remaining_bits>=1<remaining_bits -= 1<resynth) + x[0] = sign ? -NORM_SCALING : NORM_SCALING; + x = Y; + } while (++c<1+stereo); + if (lowband_out) + lowband_out[0] = SHR16(X[0],4); + return 1; +} + +/* This function is responsible for encoding and decoding a mono partition. + It can split the band in two and transmit the energy difference with + the two half-bands. It can be called recursively so bands can end up being + split in 8 parts. */ +static unsigned quant_partition(struct band_ctx *ctx, celt_norm *X, + int N, int b, int B, celt_norm *lowband, + int LM, + opus_val16 gain, int fill) +{ + const unsigned char *cache; + int q; + int curr_bits; + int imid=0, iside=0; + int B0=B; + opus_val16 mid=0, side=0; + unsigned cm=0; + celt_norm *Y=NULL; + int encode; + const CELTMode *m; + int i; + int spread; + ec_ctx *ec; + + encode = ctx->encode; + m = ctx->m; + i = ctx->i; + spread = ctx->spread; + ec = ctx->ec; + + /* If we need 1.5 more bit than we can produce, split the band in two. */ + cache = m->cache.bits + m->cache.index[(LM+1)*m->nbEBands+i]; + if (LM != -1 && b > cache[cache[0]]+12 && N>2) + { + int mbits, sbits, delta; + int itheta; + int qalloc; + struct split_ctx sctx; + celt_norm *next_lowband2=NULL; + opus_int32 rebalance; + + N >>= 1; + Y = X+N; + LM -= 1; + if (B==1) + fill = (fill&1)|(fill<<1); + B = (B+1)>>1; + + compute_theta(ctx, &sctx, X, Y, N, &b, B, B0, LM, 0, &fill); + imid = sctx.imid; + iside = sctx.iside; + delta = sctx.delta; + itheta = sctx.itheta; + qalloc = sctx.qalloc; +#ifdef FIXED_POINT + mid = imid; + side = iside; +#else + mid = (1.f/32768)*imid; + side = (1.f/32768)*iside; +#endif + + /* Give more bits to low-energy MDCTs than they would otherwise deserve */ + if (B0>1 && (itheta&0x3fff)) + { + if (itheta > 8192) + /* Rough approximation for pre-echo masking */ + delta -= delta>>(4-LM); + else + /* Corresponds to a forward-masking slope of 1.5 dB per 10 ms */ + delta = IMIN(0, delta + (N<>(5-LM))); + } + mbits = IMAX(0, IMIN(b, (b-delta)/2)); + sbits = b-mbits; + ctx->remaining_bits -= qalloc; + + if (lowband) + next_lowband2 = lowband+N; /* >32-bit split case */ + + rebalance = ctx->remaining_bits; + if (mbits >= sbits) + { + cm = quant_partition(ctx, X, N, mbits, B, lowband, LM, + MULT16_16_P15(gain,mid), fill); + rebalance = mbits - (rebalance-ctx->remaining_bits); + if (rebalance > 3<>B)<<(B0>>1); + } else { + cm = quant_partition(ctx, Y, N, sbits, B, next_lowband2, LM, + MULT16_16_P15(gain,side), fill>>B)<<(B0>>1); + rebalance = sbits - (rebalance-ctx->remaining_bits); + if (rebalance > 3<remaining_bits -= curr_bits; + + /* Ensures we can never bust the budget */ + while (ctx->remaining_bits < 0 && q > 0) + { + ctx->remaining_bits += curr_bits; + q--; + curr_bits = pulses2bits(m, i, LM, q); + ctx->remaining_bits -= curr_bits; + } + + if (q!=0) + { + int K = get_pulses(q); + + /* Finally do the actual quantization */ + if (encode) + { + cm = alg_quant(X, N, K, spread, B, ec, gain, ctx->resynth, ctx->arch); + } else { + cm = alg_unquant(X, N, K, spread, B, ec, gain); + } + } else { + /* If there's no pulse, fill the band anyway */ + int j; + if (ctx->resynth) + { + unsigned cm_mask; + /* B can be as large as 16, so this shift might overflow an int on a + 16-bit platform; use a long to get defined behavior.*/ + cm_mask = (unsigned)(1UL<seed = celt_lcg_rand(ctx->seed); + X[j] = (celt_norm)((opus_int32)ctx->seed>>20); + } + cm = cm_mask; + } else { + /* Folded spectrum */ + for (j=0;jseed = celt_lcg_rand(ctx->seed); + /* About 48 dB below the "normal" folding level */ + tmp = QCONST16(1.0f/256, 10); + tmp = (ctx->seed)&0x8000 ? tmp : -tmp; + X[j] = lowband[j]+tmp; + } + cm = fill; + } + renormalise_vector(X, N, gain, ctx->arch); + } + } + } + } + + return cm; +} + + +/* This function is responsible for encoding and decoding a band for the mono case. */ +static unsigned quant_band(struct band_ctx *ctx, celt_norm *X, + int N, int b, int B, celt_norm *lowband, + int LM, celt_norm *lowband_out, + opus_val16 gain, celt_norm *lowband_scratch, int fill) +{ + int N0=N; + int N_B=N; + int N_B0; + int B0=B; + int time_divide=0; + int recombine=0; + int longBlocks; + unsigned cm=0; + int k; + int encode; + int tf_change; + + encode = ctx->encode; + tf_change = ctx->tf_change; + + longBlocks = B0==1; + + N_B = celt_udiv(N_B, B); + + /* Special case for one sample */ + if (N==1) + { + return quant_band_n1(ctx, X, NULL, b, lowband_out); + } + + if (tf_change>0) + recombine = tf_change; + /* Band recombining to increase frequency resolution */ + + if (lowband_scratch && lowband && (recombine || ((N_B&1) == 0 && tf_change<0) || B0>1)) + { + OPUS_COPY(lowband_scratch, lowband, N); + lowband = lowband_scratch; + } + + for (k=0;k>k, 1<>k, 1<>4]<<2; + } + B>>=recombine; + N_B<<=recombine; + + /* Increasing the time resolution */ + while ((N_B&1) == 0 && tf_change<0) + { + if (encode) + haar1(X, N_B, B); + if (lowband) + haar1(lowband, N_B, B); + fill |= fill<>= 1; + time_divide++; + tf_change++; + } + B0=B; + N_B0 = N_B; + + /* Reorganize the samples in time order instead of frequency order */ + if (B0>1) + { + if (encode) + deinterleave_hadamard(X, N_B>>recombine, B0<>recombine, B0<resynth) + { + /* Undo the sample reorganization going from time order to frequency order */ + if (B0>1) + interleave_hadamard(X, N_B>>recombine, B0<>= 1; + N_B <<= 1; + cm |= cm>>B; + haar1(X, N_B, B); + } + + for (k=0;k>k, 1<encode; + ec = ctx->ec; + + /* Special case for one sample */ + if (N==1) + { + return quant_band_n1(ctx, X, Y, b, lowband_out); + } + + orig_fill = fill; + + compute_theta(ctx, &sctx, X, Y, N, &b, B, B, LM, 1, &fill); + inv = sctx.inv; + imid = sctx.imid; + iside = sctx.iside; + delta = sctx.delta; + itheta = sctx.itheta; + qalloc = sctx.qalloc; +#ifdef FIXED_POINT + mid = imid; + side = iside; +#else + mid = (1.f/32768)*imid; + side = (1.f/32768)*iside; +#endif + + /* This is a special case for N=2 that only works for stereo and takes + advantage of the fact that mid and side are orthogonal to encode + the side with just one bit. */ + if (N==2) + { + int c; + int sign=0; + celt_norm *x2, *y2; + mbits = b; + sbits = 0; + /* Only need one bit for the side. */ + if (itheta != 0 && itheta != 16384) + sbits = 1< 8192; + ctx->remaining_bits -= qalloc+sbits; + + x2 = c ? Y : X; + y2 = c ? X : Y; + if (sbits) + { + if (encode) + { + /* Here we only need to encode a sign for the side. */ + sign = x2[0]*y2[1] - x2[1]*y2[0] < 0; + ec_enc_bits(ec, sign, 1); + } else { + sign = ec_dec_bits(ec, 1); + } + } + sign = 1-2*sign; + /* We use orig_fill here because we want to fold the side, but if + itheta==16384, we'll have cleared the low bits of fill. */ + cm = quant_band(ctx, x2, N, mbits, B, lowband, LM, lowband_out, Q15ONE, + lowband_scratch, orig_fill); + /* We don't split N=2 bands, so cm is either 1 or 0 (for a fold-collapse), + and there's no need to worry about mixing with the other channel. */ + y2[0] = -sign*x2[1]; + y2[1] = sign*x2[0]; + if (ctx->resynth) + { + celt_norm tmp; + X[0] = MULT16_16_Q15(mid, X[0]); + X[1] = MULT16_16_Q15(mid, X[1]); + Y[0] = MULT16_16_Q15(side, Y[0]); + Y[1] = MULT16_16_Q15(side, Y[1]); + tmp = X[0]; + X[0] = SUB16(tmp,Y[0]); + Y[0] = ADD16(tmp,Y[0]); + tmp = X[1]; + X[1] = SUB16(tmp,Y[1]); + Y[1] = ADD16(tmp,Y[1]); + } + } else { + /* "Normal" split code */ + opus_int32 rebalance; + + mbits = IMAX(0, IMIN(b, (b-delta)/2)); + sbits = b-mbits; + ctx->remaining_bits -= qalloc; + + rebalance = ctx->remaining_bits; + if (mbits >= sbits) + { + /* In stereo mode, we do not apply a scaling to the mid because we need the normalized + mid for folding later. */ + cm = quant_band(ctx, X, N, mbits, B, lowband, LM, lowband_out, Q15ONE, + lowband_scratch, fill); + rebalance = mbits - (rebalance-ctx->remaining_bits); + if (rebalance > 3<>B); + } else { + /* For a stereo split, the high bits of fill are always zero, so no + folding will be done to the side. */ + cm = quant_band(ctx, Y, N, sbits, B, NULL, LM, NULL, side, NULL, fill>>B); + rebalance = sbits - (rebalance-ctx->remaining_bits); + if (rebalance > 3<resynth) + { + if (N!=2) + stereo_merge(X, Y, mid, N, ctx->arch); + if (inv) + { + int j; + for (j=0;jeBands; + n1 = M*(eBands[start+1]-eBands[start]); + n2 = M*(eBands[start+2]-eBands[start+1]); + /* Duplicate enough of the first band folding data to be able to fold the second band. + Copies no data for CELT-only mode. */ + OPUS_COPY(&norm[n1], &norm[2*n1 - n2], n2-n1); + if (dual_stereo) + OPUS_COPY(&norm2[n1], &norm2[2*n1 - n2], n2-n1); +} + +void quant_all_bands(int encode, const CELTMode *m, int start, int end, + celt_norm *X_, celt_norm *Y_, unsigned char *collapse_masks, + const celt_ener *bandE, int *pulses, int shortBlocks, int spread, + int dual_stereo, int intensity, int *tf_res, opus_int32 total_bits, + opus_int32 balance, ec_ctx *ec, int LM, int codedBands, + opus_uint32 *seed, int complexity, int arch, int disable_inv) +{ + int i; + opus_int32 remaining_bits; + const opus_int16 * OPUS_RESTRICT eBands = m->eBands; + celt_norm * OPUS_RESTRICT norm, * OPUS_RESTRICT norm2; + VARDECL(celt_norm, _norm); + VARDECL(celt_norm, _lowband_scratch); + VARDECL(celt_norm, X_save); + VARDECL(celt_norm, Y_save); + VARDECL(celt_norm, X_save2); + VARDECL(celt_norm, Y_save2); + VARDECL(celt_norm, norm_save2); + int resynth_alloc; + celt_norm *lowband_scratch; + int B; + int M; + int lowband_offset; + int update_lowband = 1; + int C = Y_ != NULL ? 2 : 1; + int norm_offset; + int theta_rdo = encode && Y_!=NULL && !dual_stereo && complexity>=8; +#ifdef RESYNTH + int resynth = 1; +#else + int resynth = !encode || theta_rdo; +#endif + struct band_ctx ctx; + SAVE_STACK; + + M = 1<nbEBands-1]-norm_offset), celt_norm); + norm = _norm; + norm2 = norm + M*eBands[m->nbEBands-1]-norm_offset; + + /* For decoding, we can use the last band as scratch space because we don't need that + scratch space for the last band and we don't care about the data there until we're + decoding the last band. */ + if (encode && resynth) + resynth_alloc = M*(eBands[m->nbEBands]-eBands[m->nbEBands-1]); + else + resynth_alloc = ALLOC_NONE; + ALLOC(_lowband_scratch, resynth_alloc, celt_norm); + if (encode && resynth) + lowband_scratch = _lowband_scratch; + else + lowband_scratch = X_+M*eBands[m->nbEBands-1]; + ALLOC(X_save, resynth_alloc, celt_norm); + ALLOC(Y_save, resynth_alloc, celt_norm); + ALLOC(X_save2, resynth_alloc, celt_norm); + ALLOC(Y_save2, resynth_alloc, celt_norm); + ALLOC(norm_save2, resynth_alloc, celt_norm); + + lowband_offset = 0; + ctx.bandE = bandE; + ctx.ec = ec; + ctx.encode = encode; + ctx.intensity = intensity; + ctx.m = m; + ctx.seed = *seed; + ctx.spread = spread; + ctx.arch = arch; + ctx.disable_inv = disable_inv; + ctx.resynth = resynth; + ctx.theta_round = 0; + /* Avoid injecting noise in the first band on transients. */ + ctx.avoid_split_noise = B > 1; + for (i=start;i 0); + tell = ec_tell_frac(ec); + + /* Compute how many bits we want to allocate to this band */ + if (i != start) + balance -= tell; + remaining_bits = total_bits-tell-1; + ctx.remaining_bits = remaining_bits; + if (i <= codedBands-1) + { + curr_balance = celt_sudiv(balance, IMIN(3, codedBands-i)); + b = IMAX(0, IMIN(16383, IMIN(remaining_bits+1,pulses[i]+curr_balance))); + } else { + b = 0; + } + +#ifndef DISABLE_UPDATE_DRAFT + if (resynth && (M*eBands[i]-N >= M*eBands[start] || i==start+1) && (update_lowband || lowband_offset==0)) + lowband_offset = i; + if (i == start+1) + special_hybrid_folding(m, norm, norm2, start, M, dual_stereo); +#else + if (resynth && M*eBands[i]-N >= M*eBands[start] && (update_lowband || lowband_offset==0)) + lowband_offset = i; +#endif + + tf_change = tf_res[i]; + ctx.tf_change = tf_change; + if (i>=m->effEBands) + { + X=norm; + if (Y_!=NULL) + Y = norm; + lowband_scratch = NULL; + } + if (last && !theta_rdo) + lowband_scratch = NULL; + + /* Get a conservative estimate of the collapse_mask's for the bands we're + going to be folding from. */ + if (lowband_offset != 0 && (spread!=SPREAD_AGGRESSIVE || B>1 || tf_change<0)) + { + int fold_start; + int fold_end; + int fold_i; + /* This ensures we never repeat spectral content within one band */ + effective_lowband = IMAX(0, M*eBands[lowband_offset]-norm_offset-N); + fold_start = lowband_offset; + while(M*eBands[--fold_start] > effective_lowband+norm_offset); + fold_end = lowband_offset-1; +#ifndef DISABLE_UPDATE_DRAFT + while(++fold_end < i && M*eBands[fold_end] < effective_lowband+norm_offset+N); +#else + while(M*eBands[++fold_end] < effective_lowband+norm_offset+N); +#endif + x_cm = y_cm = 0; + fold_i = fold_start; do { + x_cm |= collapse_masks[fold_i*C+0]; + y_cm |= collapse_masks[fold_i*C+C-1]; + } while (++fold_inbEBands], w); + /* Make a copy. */ + cm = x_cm|y_cm; + ec_save = *ec; + ctx_save = ctx; + OPUS_COPY(X_save, X, N); + OPUS_COPY(Y_save, Y, N); + /* Encode and round down. */ + ctx.theta_round = -1; + x_cm = quant_band_stereo(&ctx, X, Y, N, b, B, + effective_lowband != -1 ? norm+effective_lowband : NULL, LM, + last?NULL:norm+M*eBands[i]-norm_offset, lowband_scratch, cm); + dist0 = MULT16_32_Q15(w[0], celt_inner_prod(X_save, X, N, arch)) + MULT16_32_Q15(w[1], celt_inner_prod(Y_save, Y, N, arch)); + + /* Save first result. */ + cm2 = x_cm; + ec_save2 = *ec; + ctx_save2 = ctx; + OPUS_COPY(X_save2, X, N); + OPUS_COPY(Y_save2, Y, N); + if (!last) + OPUS_COPY(norm_save2, norm+M*eBands[i]-norm_offset, N); + nstart_bytes = ec_save.offs; + nend_bytes = ec_save.storage; + bytes_buf = ec_save.buf+nstart_bytes; + save_bytes = nend_bytes-nstart_bytes; + OPUS_COPY(bytes_save, bytes_buf, save_bytes); + + /* Restore */ + *ec = ec_save; + ctx = ctx_save; + OPUS_COPY(X, X_save, N); + OPUS_COPY(Y, Y_save, N); +#ifndef DISABLE_UPDATE_DRAFT + if (i == start+1) + special_hybrid_folding(m, norm, norm2, start, M, dual_stereo); +#endif + /* Encode and round up. */ + ctx.theta_round = 1; + x_cm = quant_band_stereo(&ctx, X, Y, N, b, B, + effective_lowband != -1 ? norm+effective_lowband : NULL, LM, + last?NULL:norm+M*eBands[i]-norm_offset, lowband_scratch, cm); + dist1 = MULT16_32_Q15(w[0], celt_inner_prod(X_save, X, N, arch)) + MULT16_32_Q15(w[1], celt_inner_prod(Y_save, Y, N, arch)); + if (dist0 >= dist1) { + x_cm = cm2; + *ec = ec_save2; + ctx = ctx_save2; + OPUS_COPY(X, X_save2, N); + OPUS_COPY(Y, Y_save2, N); + if (!last) + OPUS_COPY(norm+M*eBands[i]-norm_offset, norm_save2, N); + OPUS_COPY(bytes_buf, bytes_save, save_bytes); + } + } else { + ctx.theta_round = 0; + x_cm = quant_band_stereo(&ctx, X, Y, N, b, B, + effective_lowband != -1 ? norm+effective_lowband : NULL, LM, + last?NULL:norm+M*eBands[i]-norm_offset, lowband_scratch, x_cm|y_cm); + } + } else { + x_cm = quant_band(&ctx, X, N, b, B, + effective_lowband != -1 ? norm+effective_lowband : NULL, LM, + last?NULL:norm+M*eBands[i]-norm_offset, Q15ONE, lowband_scratch, x_cm|y_cm); + } + y_cm = x_cm; + } + collapse_masks[i*C+0] = (unsigned char)x_cm; + collapse_masks[i*C+C-1] = (unsigned char)y_cm; + balance += pulses[i] + tell; + + /* Update the folding position only as long as we have 1 bit/sample depth. */ + update_lowband = b>(N< +#include "celt.h" +#include "pitch.h" +#include "bands.h" +#include "modes.h" +#include "entcode.h" +#include "quant_bands.h" +#include "rate.h" +#include "stack_alloc.h" +#include "mathops.h" +#include "float_cast.h" +#include +#include "celt_lpc.h" +#include "vq.h" + +#ifndef PACKAGE_VERSION +#define PACKAGE_VERSION "unknown" +#endif + +#if defined(MIPSr1_ASM) +#include "mips/celt_mipsr1.h" +#endif + + +int resampling_factor(opus_int32 rate) +{ + int ret; + switch (rate) + { + case 48000: + ret = 1; + break; + case 24000: + ret = 2; + break; + case 16000: + ret = 3; + break; + case 12000: + ret = 4; + break; + case 8000: + ret = 6; + break; + default: +#ifndef CUSTOM_MODES + celt_assert(0); +#endif + ret = 0; + break; + } + return ret; +} + +#if !defined(OVERRIDE_COMB_FILTER_CONST) || defined(NON_STATIC_COMB_FILTER_CONST_C) +/* This version should be faster on ARM */ +#ifdef OPUS_ARM_ASM +#ifndef NON_STATIC_COMB_FILTER_CONST_C +static +#endif +void comb_filter_const_c(opus_val32 *y, opus_val32 *x, int T, int N, + opus_val16 g10, opus_val16 g11, opus_val16 g12) +{ + opus_val32 x0, x1, x2, x3, x4; + int i; + x4 = SHL32(x[-T-2], 1); + x3 = SHL32(x[-T-1], 1); + x2 = SHL32(x[-T], 1); + x1 = SHL32(x[-T+1], 1); + for (i=0;inbEBands;i++) + { + int N; + N=(m->eBands[i+1]-m->eBands[i])<cache.caps[m->nbEBands*(2*LM+C-1)+i]+64)*C*N>>2; + } +} + + + +const char *opus_strerror(int error) +{ + static const char * const error_strings[8] = { + "success", + "invalid argument", + "buffer too small", + "internal error", + "corrupted stream", + "request not implemented", + "invalid state", + "memory allocation failed" + }; + if (error > 0 || error < -7) + return "unknown error"; + else + return error_strings[-error]; +} + +const char *opus_get_version_string(void) +{ + return "libopus " PACKAGE_VERSION + /* Applications may rely on the presence of this substring in the version + string to determine if they have a fixed-point or floating-point build + at runtime. */ +#ifdef FIXED_POINT + "-fixed" +#endif +#ifdef FUZZING + "-fuzzing" +#endif + ; +} diff --git a/components/opus/libopus/celt/celt.h b/components/opus/libopus/celt/celt.h new file mode 100644 index 0000000..24b6b2b --- /dev/null +++ b/components/opus/libopus/celt/celt.h @@ -0,0 +1,251 @@ +/* Copyright (c) 2007-2008 CSIRO + Copyright (c) 2007-2009 Xiph.Org Foundation + Copyright (c) 2008 Gregory Maxwell + Written by Jean-Marc Valin and Gregory Maxwell */ +/** + @file celt.h + @brief Contains all the functions for encoding and decoding audio + */ + +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifndef CELT_H +#define CELT_H + +#include "opus_types.h" +#include "opus_defines.h" +#include "opus_custom.h" +#include "entenc.h" +#include "entdec.h" +#include "arch.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#define CELTEncoder OpusCustomEncoder +#define CELTDecoder OpusCustomDecoder +#define CELTMode OpusCustomMode + +#define LEAK_BANDS 19 + +typedef struct { + int valid; + float tonality; + float tonality_slope; + float noisiness; + float activity; + float music_prob; + float music_prob_min; + float music_prob_max; + int bandwidth; + float activity_probability; + float max_pitch_ratio; + /* Store as Q6 char to save space. */ + unsigned char leak_boost[LEAK_BANDS]; +} AnalysisInfo; + +typedef struct { + int signalType; + int offset; +} SILKInfo; + +#define __celt_check_mode_ptr_ptr(ptr) ((ptr) + ((ptr) - (const CELTMode**)(ptr))) + +#define __celt_check_analysis_ptr(ptr) ((ptr) + ((ptr) - (const AnalysisInfo*)(ptr))) + +#define __celt_check_silkinfo_ptr(ptr) ((ptr) + ((ptr) - (const SILKInfo*)(ptr))) + +/* Encoder/decoder Requests */ + + +#define CELT_SET_PREDICTION_REQUEST 10002 +/** Controls the use of interframe prediction. + 0=Independent frames + 1=Short term interframe prediction allowed + 2=Long term prediction allowed + */ +#define CELT_SET_PREDICTION(x) CELT_SET_PREDICTION_REQUEST, __opus_check_int(x) + +#define CELT_SET_INPUT_CLIPPING_REQUEST 10004 +#define CELT_SET_INPUT_CLIPPING(x) CELT_SET_INPUT_CLIPPING_REQUEST, __opus_check_int(x) + +#define CELT_GET_AND_CLEAR_ERROR_REQUEST 10007 +#define CELT_GET_AND_CLEAR_ERROR(x) CELT_GET_AND_CLEAR_ERROR_REQUEST, __opus_check_int_ptr(x) + +#define CELT_SET_CHANNELS_REQUEST 10008 +#define CELT_SET_CHANNELS(x) CELT_SET_CHANNELS_REQUEST, __opus_check_int(x) + + +/* Internal */ +#define CELT_SET_START_BAND_REQUEST 10010 +#define CELT_SET_START_BAND(x) CELT_SET_START_BAND_REQUEST, __opus_check_int(x) + +#define CELT_SET_END_BAND_REQUEST 10012 +#define CELT_SET_END_BAND(x) CELT_SET_END_BAND_REQUEST, __opus_check_int(x) + +#define CELT_GET_MODE_REQUEST 10015 +/** Get the CELTMode used by an encoder or decoder */ +#define CELT_GET_MODE(x) CELT_GET_MODE_REQUEST, __celt_check_mode_ptr_ptr(x) + +#define CELT_SET_SIGNALLING_REQUEST 10016 +#define CELT_SET_SIGNALLING(x) CELT_SET_SIGNALLING_REQUEST, __opus_check_int(x) + +#define CELT_SET_TONALITY_REQUEST 10018 +#define CELT_SET_TONALITY(x) CELT_SET_TONALITY_REQUEST, __opus_check_int(x) +#define CELT_SET_TONALITY_SLOPE_REQUEST 10020 +#define CELT_SET_TONALITY_SLOPE(x) CELT_SET_TONALITY_SLOPE_REQUEST, __opus_check_int(x) + +#define CELT_SET_ANALYSIS_REQUEST 10022 +#define CELT_SET_ANALYSIS(x) CELT_SET_ANALYSIS_REQUEST, __celt_check_analysis_ptr(x) + +#define OPUS_SET_LFE_REQUEST 10024 +#define OPUS_SET_LFE(x) OPUS_SET_LFE_REQUEST, __opus_check_int(x) + +#define OPUS_SET_ENERGY_MASK_REQUEST 10026 +#define OPUS_SET_ENERGY_MASK(x) OPUS_SET_ENERGY_MASK_REQUEST, __opus_check_val16_ptr(x) + +#define CELT_SET_SILK_INFO_REQUEST 10028 +#define CELT_SET_SILK_INFO(x) CELT_SET_SILK_INFO_REQUEST, __celt_check_silkinfo_ptr(x) + +/* Encoder stuff */ + +int celt_encoder_get_size(int channels); + +int celt_encode_with_ec(OpusCustomEncoder * OPUS_RESTRICT st, const opus_val16 * pcm, int frame_size, unsigned char *compressed, int nbCompressedBytes, ec_enc *enc); + +int celt_encoder_init(CELTEncoder *st, opus_int32 sampling_rate, int channels, + int arch); + + + +/* Decoder stuff */ + +int celt_decoder_get_size(int channels); + + +int celt_decoder_init(CELTDecoder *st, opus_int32 sampling_rate, int channels); + +int celt_decode_with_ec(OpusCustomDecoder * OPUS_RESTRICT st, const unsigned char *data, + int len, opus_val16 * OPUS_RESTRICT pcm, int frame_size, ec_dec *dec, int accum); + +#define celt_encoder_ctl opus_custom_encoder_ctl +#define celt_decoder_ctl opus_custom_decoder_ctl + + +#ifdef CUSTOM_MODES +#define OPUS_CUSTOM_NOSTATIC +#else +#define OPUS_CUSTOM_NOSTATIC static OPUS_INLINE +#endif + +static const unsigned char trim_icdf[11] = {126, 124, 119, 109, 87, 41, 19, 9, 4, 2, 0}; +/* Probs: NONE: 21.875%, LIGHT: 6.25%, NORMAL: 65.625%, AGGRESSIVE: 6.25% */ +static const unsigned char spread_icdf[4] = {25, 23, 2, 0}; + +static const unsigned char tapset_icdf[3]={2,1,0}; + +#ifdef CUSTOM_MODES +static const unsigned char toOpusTable[20] = { + 0xE0, 0xE8, 0xF0, 0xF8, + 0xC0, 0xC8, 0xD0, 0xD8, + 0xA0, 0xA8, 0xB0, 0xB8, + 0x00, 0x00, 0x00, 0x00, + 0x80, 0x88, 0x90, 0x98, +}; + +static const unsigned char fromOpusTable[16] = { + 0x80, 0x88, 0x90, 0x98, + 0x40, 0x48, 0x50, 0x58, + 0x20, 0x28, 0x30, 0x38, + 0x00, 0x08, 0x10, 0x18 +}; + +static OPUS_INLINE int toOpus(unsigned char c) +{ + int ret=0; + if (c<0xA0) + ret = toOpusTable[c>>3]; + if (ret == 0) + return -1; + else + return ret|(c&0x7); +} + +static OPUS_INLINE int fromOpus(unsigned char c) +{ + if (c<0x80) + return -1; + else + return fromOpusTable[(c>>3)-16] | (c&0x7); +} +#endif /* CUSTOM_MODES */ + +#define COMBFILTER_MAXPERIOD 1024 +#define COMBFILTER_MINPERIOD 15 + +extern const signed char tf_select_table[4][8]; + +#if defined(ENABLE_HARDENING) || defined(ENABLE_ASSERTIONS) +void validate_celt_decoder(CELTDecoder *st); +#define VALIDATE_CELT_DECODER(st) validate_celt_decoder(st) +#else +#define VALIDATE_CELT_DECODER(st) +#endif + +int resampling_factor(opus_int32 rate); + +void celt_preemphasis(const opus_val16 * OPUS_RESTRICT pcmp, celt_sig * OPUS_RESTRICT inp, + int N, int CC, int upsample, const opus_val16 *coef, celt_sig *mem, int clip); + +void comb_filter(opus_val32 *y, opus_val32 *x, int T0, int T1, int N, + opus_val16 g0, opus_val16 g1, int tapset0, int tapset1, + const opus_val16 *window, int overlap, int arch); + +#ifdef NON_STATIC_COMB_FILTER_CONST_C +void comb_filter_const_c(opus_val32 *y, opus_val32 *x, int T, int N, + opus_val16 g10, opus_val16 g11, opus_val16 g12); +#endif + +#ifndef OVERRIDE_COMB_FILTER_CONST +# define comb_filter_const(y, x, T, N, g10, g11, g12, arch) \ + ((void)(arch),comb_filter_const_c(y, x, T, N, g10, g11, g12)) +#endif + +void init_caps(const CELTMode *m,int *cap,int LM,int C); + +#ifdef RESYNTH +void deemphasis(celt_sig *in[], opus_val16 *pcm, int N, int C, int downsample, const opus_val16 *coef, celt_sig *mem); +void celt_synthesis(const CELTMode *mode, celt_norm *X, celt_sig * out_syn[], + opus_val16 *oldBandE, int start, int effEnd, int C, int CC, int isTransient, + int LM, int downsample, int silence); +#endif + +#ifdef __cplusplus +} +#endif + +#endif /* CELT_H */ diff --git a/components/opus/libopus/celt/celt_decoder.c b/components/opus/libopus/celt/celt_decoder.c new file mode 100644 index 0000000..e6efce9 --- /dev/null +++ b/components/opus/libopus/celt/celt_decoder.c @@ -0,0 +1,1372 @@ +/* Copyright (c) 2007-2008 CSIRO + Copyright (c) 2007-2010 Xiph.Org Foundation + Copyright (c) 2008 Gregory Maxwell + Written by Jean-Marc Valin and Gregory Maxwell */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#define CELT_DECODER_C + +#include "cpu_support.h" +#include "os_support.h" +#include "mdct.h" +#include +#include "celt.h" +#include "pitch.h" +#include "bands.h" +#include "modes.h" +#include "entcode.h" +#include "quant_bands.h" +#include "rate.h" +#include "stack_alloc.h" +#include "mathops.h" +#include "float_cast.h" +#include +#include "celt_lpc.h" +#include "vq.h" + +/* The maximum pitch lag to allow in the pitch-based PLC. It's possible to save + CPU time in the PLC pitch search by making this smaller than MAX_PERIOD. The + current value corresponds to a pitch of 66.67 Hz. */ +#define PLC_PITCH_LAG_MAX (720) +/* The minimum pitch lag to allow in the pitch-based PLC. This corresponds to a + pitch of 480 Hz. */ +#define PLC_PITCH_LAG_MIN (100) + +#if defined(SMALL_FOOTPRINT) && defined(FIXED_POINT) +#define NORM_ALIASING_HACK +#endif +/**********************************************************************/ +/* */ +/* DECODER */ +/* */ +/**********************************************************************/ +#define DECODE_BUFFER_SIZE 2048 + +/** Decoder state + @brief Decoder state + */ +struct OpusCustomDecoder { + const OpusCustomMode *mode; + int overlap; + int channels; + int stream_channels; + + int downsample; + int start, end; + int signalling; + int disable_inv; + int arch; + + /* Everything beyond this point gets cleared on a reset */ +#define DECODER_RESET_START rng + + opus_uint32 rng; + int error; + int last_pitch_index; + int loss_count; + int skip_plc; + int postfilter_period; + int postfilter_period_old; + opus_val16 postfilter_gain; + opus_val16 postfilter_gain_old; + int postfilter_tapset; + int postfilter_tapset_old; + + celt_sig preemph_memD[2]; + + celt_sig _decode_mem[1]; /* Size = channels*(DECODE_BUFFER_SIZE+mode->overlap) */ + /* opus_val16 lpc[], Size = channels*LPC_ORDER */ + /* opus_val16 oldEBands[], Size = 2*mode->nbEBands */ + /* opus_val16 oldLogE[], Size = 2*mode->nbEBands */ + /* opus_val16 oldLogE2[], Size = 2*mode->nbEBands */ + /* opus_val16 backgroundLogE[], Size = 2*mode->nbEBands */ +}; + +#if defined(ENABLE_HARDENING) || defined(ENABLE_ASSERTIONS) +/* Make basic checks on the CELT state to ensure we don't end + up writing all over memory. */ +void validate_celt_decoder(CELTDecoder *st) +{ +#ifndef CUSTOM_MODES + celt_assert(st->mode == opus_custom_mode_create(48000, 960, NULL)); + celt_assert(st->overlap == 120); +#endif + celt_assert(st->channels == 1 || st->channels == 2); + celt_assert(st->stream_channels == 1 || st->stream_channels == 2); + celt_assert(st->downsample > 0); + celt_assert(st->start == 0 || st->start == 17); + celt_assert(st->start < st->end); + celt_assert(st->end <= 21); +#ifdef OPUS_ARCHMASK + celt_assert(st->arch >= 0); + celt_assert(st->arch <= OPUS_ARCHMASK); +#endif + celt_assert(st->last_pitch_index <= PLC_PITCH_LAG_MAX); + celt_assert(st->last_pitch_index >= PLC_PITCH_LAG_MIN || st->last_pitch_index == 0); + celt_assert(st->postfilter_period < MAX_PERIOD); + celt_assert(st->postfilter_period >= COMBFILTER_MINPERIOD || st->postfilter_period == 0); + celt_assert(st->postfilter_period_old < MAX_PERIOD); + celt_assert(st->postfilter_period_old >= COMBFILTER_MINPERIOD || st->postfilter_period_old == 0); + celt_assert(st->postfilter_tapset <= 2); + celt_assert(st->postfilter_tapset >= 0); + celt_assert(st->postfilter_tapset_old <= 2); + celt_assert(st->postfilter_tapset_old >= 0); +} +#endif + +int celt_decoder_get_size(int channels) +{ + const CELTMode *mode = opus_custom_mode_create(48000, 960, NULL); + return opus_custom_decoder_get_size(mode, channels); +} + +OPUS_CUSTOM_NOSTATIC int opus_custom_decoder_get_size(const CELTMode *mode, int channels) +{ + int size = sizeof(struct CELTDecoder) + + (channels*(DECODE_BUFFER_SIZE+mode->overlap)-1)*sizeof(celt_sig) + + channels*LPC_ORDER*sizeof(opus_val16) + + 4*2*mode->nbEBands*sizeof(opus_val16); + return size; +} + +#ifdef CUSTOM_MODES +CELTDecoder *opus_custom_decoder_create(const CELTMode *mode, int channels, int *error) +{ + int ret; + CELTDecoder *st = (CELTDecoder *)opus_alloc(opus_custom_decoder_get_size(mode, channels)); + ret = opus_custom_decoder_init(st, mode, channels); + if (ret != OPUS_OK) + { + opus_custom_decoder_destroy(st); + st = NULL; + } + if (error) + *error = ret; + return st; +} +#endif /* CUSTOM_MODES */ + +int celt_decoder_init(CELTDecoder *st, opus_int32 sampling_rate, int channels) +{ + int ret; + ret = opus_custom_decoder_init(st, opus_custom_mode_create(48000, 960, NULL), channels); + if (ret != OPUS_OK) + return ret; + st->downsample = resampling_factor(sampling_rate); + if (st->downsample==0) + return OPUS_BAD_ARG; + else + return OPUS_OK; +} + +OPUS_CUSTOM_NOSTATIC int opus_custom_decoder_init(CELTDecoder *st, const CELTMode *mode, int channels) +{ + if (channels < 0 || channels > 2) + return OPUS_BAD_ARG; + + if (st==NULL) + return OPUS_ALLOC_FAIL; + + OPUS_CLEAR((char*)st, opus_custom_decoder_get_size(mode, channels)); + + st->mode = mode; + st->overlap = mode->overlap; + st->stream_channels = st->channels = channels; + + st->downsample = 1; + st->start = 0; + st->end = st->mode->effEBands; + st->signalling = 1; +#ifndef DISABLE_UPDATE_DRAFT + st->disable_inv = channels == 1; +#else + st->disable_inv = 0; +#endif + st->arch = opus_select_arch(); + + opus_custom_decoder_ctl(st, OPUS_RESET_STATE); + + return OPUS_OK; +} + +#ifdef CUSTOM_MODES +void opus_custom_decoder_destroy(CELTDecoder *st) +{ + opus_free(st); +} +#endif /* CUSTOM_MODES */ + +#ifndef CUSTOM_MODES +/* Special case for stereo with no downsampling and no accumulation. This is + quite common and we can make it faster by processing both channels in the + same loop, reducing overhead due to the dependency loop in the IIR filter. */ +static void deemphasis_stereo_simple(celt_sig *in[], opus_val16 *pcm, int N, const opus_val16 coef0, + celt_sig *mem) +{ + celt_sig * OPUS_RESTRICT x0; + celt_sig * OPUS_RESTRICT x1; + celt_sig m0, m1; + int j; + x0=in[0]; + x1=in[1]; + m0 = mem[0]; + m1 = mem[1]; + for (j=0;j1) + { + /* Shortcut for the standard (non-custom modes) case */ + for (j=0;joverlap; + nbEBands = mode->nbEBands; + N = mode->shortMdctSize<shortMdctSize; + shift = mode->maxLM; + } else { + B = 1; + NB = mode->shortMdctSize<maxLM-LM; + } + + if (CC==2&&C==1) + { + /* Copying a mono streams to two channels */ + celt_sig *freq2; + denormalise_bands(mode, X, freq, oldBandE, start, effEnd, M, + downsample, silence); + /* Store a temporary copy in the output buffer because the IMDCT destroys its input. */ + freq2 = out_syn[1]+overlap/2; + OPUS_COPY(freq2, freq, N); + for (b=0;bmdct, &freq2[b], out_syn[0]+NB*b, mode->window, overlap, shift, B, arch); + for (b=0;bmdct, &freq[b], out_syn[1]+NB*b, mode->window, overlap, shift, B, arch); + } else if (CC==1&&C==2) + { + /* Downmixing a stereo stream to mono */ + celt_sig *freq2; + freq2 = out_syn[0]+overlap/2; + denormalise_bands(mode, X, freq, oldBandE, start, effEnd, M, + downsample, silence); + /* Use the output buffer as temp array before downmixing. */ + denormalise_bands(mode, X+N, freq2, oldBandE+nbEBands, start, effEnd, M, + downsample, silence); + for (i=0;imdct, &freq[b], out_syn[0]+NB*b, mode->window, overlap, shift, B, arch); + } else { + /* Normal case (mono or stereo) */ + c=0; do { + denormalise_bands(mode, X+c*N, freq, oldBandE+c*nbEBands, start, effEnd, M, + downsample, silence); + for (b=0;bmdct, &freq[b], out_syn[c]+NB*b, mode->window, overlap, shift, B, arch); + } while (++cstorage*8; + tell = ec_tell(dec); + logp = isTransient ? 2 : 4; + tf_select_rsv = LM>0 && tell+logp+1<=budget; + budget -= tf_select_rsv; + tf_changed = curr = 0; + for (i=start;i>1, opus_val16 ); + pitch_downsample(decode_mem, lp_pitch_buf, + DECODE_BUFFER_SIZE, C, arch); + pitch_search(lp_pitch_buf+(PLC_PITCH_LAG_MAX>>1), lp_pitch_buf, + DECODE_BUFFER_SIZE-PLC_PITCH_LAG_MAX, + PLC_PITCH_LAG_MAX-PLC_PITCH_LAG_MIN, &pitch_index, arch); + pitch_index = PLC_PITCH_LAG_MAX-pitch_index; + RESTORE_STACK; + return pitch_index; +} + +static void celt_decode_lost(CELTDecoder * OPUS_RESTRICT st, int N, int LM) +{ + int c; + int i; + const int C = st->channels; + celt_sig *decode_mem[2]; + celt_sig *out_syn[2]; + opus_val16 *lpc; + opus_val16 *oldBandE, *oldLogE, *oldLogE2, *backgroundLogE; + const OpusCustomMode *mode; + int nbEBands; + int overlap; + int start; + int loss_count; + int noise_based; + const opus_int16 *eBands; + SAVE_STACK; + + mode = st->mode; + nbEBands = mode->nbEBands; + overlap = mode->overlap; + eBands = mode->eBands; + + c=0; do { + decode_mem[c] = st->_decode_mem + c*(DECODE_BUFFER_SIZE+overlap); + out_syn[c] = decode_mem[c]+DECODE_BUFFER_SIZE-N; + } while (++c_decode_mem+(DECODE_BUFFER_SIZE+overlap)*C); + oldBandE = lpc+C*LPC_ORDER; + oldLogE = oldBandE + 2*nbEBands; + oldLogE2 = oldLogE + 2*nbEBands; + backgroundLogE = oldLogE2 + 2*nbEBands; + + loss_count = st->loss_count; + start = st->start; + noise_based = loss_count >= 5 || start != 0 || st->skip_plc; + if (noise_based) + { + /* Noise-based PLC/CNG */ +#ifdef NORM_ALIASING_HACK + celt_norm *X; +#else + VARDECL(celt_norm, X); +#endif + opus_uint32 seed; + int end; + int effEnd; + opus_val16 decay; + end = st->end; + effEnd = IMAX(start, IMIN(end, mode->effEBands)); + +#ifdef NORM_ALIASING_HACK + /* This is an ugly hack that breaks aliasing rules and would be easily broken, + but it saves almost 4kB of stack. */ + X = (celt_norm*)(out_syn[C-1]+overlap/2); +#else + ALLOC(X, C*N, celt_norm); /**< Interleaved normalised MDCTs */ +#endif + + /* Energy decay */ + decay = loss_count==0 ? QCONST16(1.5f, DB_SHIFT) : QCONST16(.5f, DB_SHIFT); + c=0; do + { + for (i=start;irng; + for (c=0;c>20); + } + renormalise_vector(X+boffs, blen, Q15ONE, st->arch); + } + } + st->rng = seed; + + c=0; do { + OPUS_MOVE(decode_mem[c], decode_mem[c]+N, + DECODE_BUFFER_SIZE-N+(overlap>>1)); + } while (++cdownsample, 0, st->arch); + } else { + int exc_length; + /* Pitch-based PLC */ + const opus_val16 *window; + opus_val16 *exc; + opus_val16 fade = Q15ONE; + int pitch_index; + VARDECL(opus_val32, etmp); + VARDECL(opus_val16, _exc); + VARDECL(opus_val16, fir_tmp); + + if (loss_count == 0) + { + st->last_pitch_index = pitch_index = celt_plc_pitch_search(decode_mem, C, st->arch); + } else { + pitch_index = st->last_pitch_index; + fade = QCONST16(.8f,15); + } + + /* We want the excitation for 2 pitch periods in order to look for a + decaying signal, but we can't get more than MAX_PERIOD. */ + exc_length = IMIN(2*pitch_index, MAX_PERIOD); + + ALLOC(etmp, overlap, opus_val32); + ALLOC(_exc, MAX_PERIOD+LPC_ORDER, opus_val16); + ALLOC(fir_tmp, exc_length, opus_val16); + exc = _exc+LPC_ORDER; + window = mode->window; + c=0; do { + opus_val16 decay; + opus_val16 attenuation; + opus_val32 S1=0; + celt_sig *buf; + int extrapolation_offset; + int extrapolation_len; + int j; + + buf = decode_mem[c]; + for (i=0;iarch); + /* Add a noise floor of -40 dB. */ +#ifdef FIXED_POINT + ac[0] += SHR32(ac[0],13); +#else + ac[0] *= 1.0001f; +#endif + /* Use lag windowing to stabilize the Levinson-Durbin recursion. */ + for (i=1;i<=LPC_ORDER;i++) + { + /*ac[i] *= exp(-.5*(2*M_PI*.002*i)*(2*M_PI*.002*i));*/ +#ifdef FIXED_POINT + ac[i] -= MULT16_32_Q15(2*i*i, ac[i]); +#else + ac[i] -= ac[i]*(0.008f*0.008f)*i*i; +#endif + } + _celt_lpc(lpc+c*LPC_ORDER, ac, LPC_ORDER); +#ifdef FIXED_POINT + /* For fixed-point, apply bandwidth expansion until we can guarantee that + no overflow can happen in the IIR filter. This means: + 32768*sum(abs(filter)) < 2^31 */ + while (1) { + opus_val16 tmp=Q15ONE; + opus_val32 sum=QCONST16(1., SIG_SHIFT); + for (i=0;iarch); + OPUS_COPY(exc+MAX_PERIOD-exc_length, fir_tmp, exc_length); + } + + /* Check if the waveform is decaying, and if so how fast. + We do this to avoid adding energy when concealing in a segment + with decaying energy. */ + { + opus_val32 E1=1, E2=1; + int decay_length; +#ifdef FIXED_POINT + int shift = IMAX(0,2*celt_zlog2(celt_maxabs16(&exc[MAX_PERIOD-exc_length], exc_length))-20); +#endif + decay_length = exc_length>>1; + for (i=0;i= pitch_index) { + j -= pitch_index; + attenuation = MULT16_16_Q15(attenuation, decay); + } + buf[DECODE_BUFFER_SIZE-N+i] = + SHL32(EXTEND32(MULT16_16_Q15(attenuation, + exc[extrapolation_offset+j])), SIG_SHIFT); + /* Compute the energy of the previously decoded signal whose + excitation we're copying. */ + tmp = ROUND16( + buf[DECODE_BUFFER_SIZE-MAX_PERIOD-N+extrapolation_offset+j], + SIG_SHIFT); + S1 += SHR32(MULT16_16(tmp, tmp), 10); + } + { + opus_val16 lpc_mem[LPC_ORDER]; + /* Copy the last decoded samples (prior to the overlap region) to + synthesis filter memory so we can have a continuous signal. */ + for (i=0;iarch); +#ifdef FIXED_POINT + for (i=0; i < extrapolation_len; i++) + buf[DECODE_BUFFER_SIZE-N+i] = SATURATE(buf[DECODE_BUFFER_SIZE-N+i], SIG_SAT); +#endif + } + + /* Check if the synthesis energy is higher than expected, which can + happen with the signal changes during our window. If so, + attenuate. */ + { + opus_val32 S2=0; + for (i=0;i SHR32(S2,2))) +#else + /* The float test is written this way to catch NaNs in the output + of the IIR filter at the same time. */ + if (!(S1 > 0.2f*S2)) +#endif + { + for (i=0;ipostfilter_period, st->postfilter_period, overlap, + -st->postfilter_gain, -st->postfilter_gain, + st->postfilter_tapset, st->postfilter_tapset, NULL, 0, st->arch); + + /* Simulate TDAC on the concealed audio so that it blends with the + MDCT of the next frame. */ + for (i=0;iloss_count = loss_count+1; + + RESTORE_STACK; +} + +int celt_decode_with_ec(CELTDecoder * OPUS_RESTRICT st, const unsigned char *data, + int len, opus_val16 * OPUS_RESTRICT pcm, int frame_size, ec_dec *dec, int accum) +{ + int c, i, N; + int spread_decision; + opus_int32 bits; + ec_dec _dec; +#ifdef NORM_ALIASING_HACK + celt_norm *X; +#else + VARDECL(celt_norm, X); +#endif + VARDECL(int, fine_quant); + VARDECL(int, pulses); + VARDECL(int, cap); + VARDECL(int, offsets); + VARDECL(int, fine_priority); + VARDECL(int, tf_res); + VARDECL(unsigned char, collapse_masks); + celt_sig *decode_mem[2]; + celt_sig *out_syn[2]; + opus_val16 *lpc; + opus_val16 *oldBandE, *oldLogE, *oldLogE2, *backgroundLogE; + + int shortBlocks; + int isTransient; + int intra_ener; + const int CC = st->channels; + int LM, M; + int start; + int end; + int effEnd; + int codedBands; + int alloc_trim; + int postfilter_pitch; + opus_val16 postfilter_gain; + int intensity=0; + int dual_stereo=0; + opus_int32 total_bits; + opus_int32 balance; + opus_int32 tell; + int dynalloc_logp; + int postfilter_tapset; + int anti_collapse_rsv; + int anti_collapse_on=0; + int silence; + int C = st->stream_channels; + const OpusCustomMode *mode; + int nbEBands; + int overlap; + const opus_int16 *eBands; + ALLOC_STACK; + + VALIDATE_CELT_DECODER(st); + mode = st->mode; + nbEBands = mode->nbEBands; + overlap = mode->overlap; + eBands = mode->eBands; + start = st->start; + end = st->end; + frame_size *= st->downsample; + + lpc = (opus_val16*)(st->_decode_mem+(DECODE_BUFFER_SIZE+overlap)*CC); + oldBandE = lpc+CC*LPC_ORDER; + oldLogE = oldBandE + 2*nbEBands; + oldLogE2 = oldLogE + 2*nbEBands; + backgroundLogE = oldLogE2 + 2*nbEBands; + +#ifdef CUSTOM_MODES + if (st->signalling && data!=NULL) + { + int data0=data[0]; + /* Convert "standard mode" to Opus header */ + if (mode->Fs==48000 && mode->shortMdctSize==120) + { + data0 = fromOpus(data0); + if (data0<0) + return OPUS_INVALID_PACKET; + } + st->end = end = IMAX(1, mode->effEBands-2*(data0>>5)); + LM = (data0>>3)&0x3; + C = 1 + ((data0>>2)&0x1); + data++; + len--; + if (LM>mode->maxLM) + return OPUS_INVALID_PACKET; + if (frame_size < mode->shortMdctSize<shortMdctSize<maxLM;LM++) + if (mode->shortMdctSize<mode->maxLM) + return OPUS_BAD_ARG; + } + M=1<1275 || pcm==NULL) + return OPUS_BAD_ARG; + + N = M*mode->shortMdctSize; + c=0; do { + decode_mem[c] = st->_decode_mem + c*(DECODE_BUFFER_SIZE+overlap); + out_syn[c] = decode_mem[c]+DECODE_BUFFER_SIZE-N; + } while (++c mode->effEBands) + effEnd = mode->effEBands; + + if (data == NULL || len<=1) + { + celt_decode_lost(st, N, LM); + deemphasis(out_syn, pcm, N, CC, st->downsample, mode->preemph, st->preemph_memD, accum); + RESTORE_STACK; + return frame_size/st->downsample; + } + + /* Check if there are at least two packets received consecutively before + * turning on the pitch-based PLC */ + st->skip_plc = st->loss_count != 0; + + if (dec == NULL) + { + ec_dec_init(&_dec,(unsigned char*)data,len); + dec = &_dec; + } + + if (C==1) + { + for (i=0;i= total_bits) + silence = 1; + else if (tell==1) + silence = ec_dec_bit_logp(dec, 15); + else + silence = 0; + if (silence) + { + /* Pretend we've read all the remaining bits */ + tell = len*8; + dec->nbits_total+=tell-ec_tell(dec); + } + + postfilter_gain = 0; + postfilter_pitch = 0; + postfilter_tapset = 0; + if (start==0 && tell+16 <= total_bits) + { + if(ec_dec_bit_logp(dec, 1)) + { + int qg, octave; + octave = ec_dec_uint(dec, 6); + postfilter_pitch = (16< 0 && tell+3 <= total_bits) + { + isTransient = ec_dec_bit_logp(dec, 3); + tell = ec_tell(dec); + } + else + isTransient = 0; + + if (isTransient) + shortBlocks = M; + else + shortBlocks = 0; + + /* Decode the global flags (first symbols in the stream) */ + intra_ener = tell+3<=total_bits ? ec_dec_bit_logp(dec, 3) : 0; + /* Get band energies */ + unquant_coarse_energy(mode, start, end, oldBandE, + intra_ener, dec, C, LM); + + ALLOC(tf_res, nbEBands, int); + tf_decode(start, end, isTransient, tf_res, LM, dec); + + tell = ec_tell(dec); + spread_decision = SPREAD_NORMAL; + if (tell+4 <= total_bits) + spread_decision = ec_dec_icdf(dec, spread_icdf, 5); + + ALLOC(cap, nbEBands, int); + + init_caps(mode,cap,LM,C); + + ALLOC(offsets, nbEBands, int); + + dynalloc_logp = 6; + total_bits<<=BITRES; + tell = ec_tell_frac(dec); + for (i=start;i0) + dynalloc_logp = IMAX(2, dynalloc_logp-1); + } + + ALLOC(fine_quant, nbEBands, int); + alloc_trim = tell+(6<=2&&bits>=((LM+2)<rng, 0, + st->arch, st->disable_inv); + + if (anti_collapse_rsv > 0) + { + anti_collapse_on = ec_dec_bits(dec, 1); + } + + unquant_energy_finalise(mode, start, end, oldBandE, + fine_quant, fine_priority, len*8-ec_tell(dec), dec, C); + + if (anti_collapse_on) + anti_collapse(mode, X, collapse_masks, LM, C, N, + start, end, oldBandE, oldLogE, oldLogE2, pulses, st->rng, st->arch); + + if (silence) + { + for (i=0;idownsample, silence, st->arch); + + c=0; do { + st->postfilter_period=IMAX(st->postfilter_period, COMBFILTER_MINPERIOD); + st->postfilter_period_old=IMAX(st->postfilter_period_old, COMBFILTER_MINPERIOD); + comb_filter(out_syn[c], out_syn[c], st->postfilter_period_old, st->postfilter_period, mode->shortMdctSize, + st->postfilter_gain_old, st->postfilter_gain, st->postfilter_tapset_old, st->postfilter_tapset, + mode->window, overlap, st->arch); + if (LM!=0) + comb_filter(out_syn[c]+mode->shortMdctSize, out_syn[c]+mode->shortMdctSize, st->postfilter_period, postfilter_pitch, N-mode->shortMdctSize, + st->postfilter_gain, postfilter_gain, st->postfilter_tapset, postfilter_tapset, + mode->window, overlap, st->arch); + + } while (++cpostfilter_period_old = st->postfilter_period; + st->postfilter_gain_old = st->postfilter_gain; + st->postfilter_tapset_old = st->postfilter_tapset; + st->postfilter_period = postfilter_pitch; + st->postfilter_gain = postfilter_gain; + st->postfilter_tapset = postfilter_tapset; + if (LM!=0) + { + st->postfilter_period_old = st->postfilter_period; + st->postfilter_gain_old = st->postfilter_gain; + st->postfilter_tapset_old = st->postfilter_tapset; + } + + if (C==1) + OPUS_COPY(&oldBandE[nbEBands], oldBandE, nbEBands); + + /* In case start or end were to change */ + if (!isTransient) + { + opus_val16 max_background_increase; + OPUS_COPY(oldLogE2, oldLogE, 2*nbEBands); + OPUS_COPY(oldLogE, oldBandE, 2*nbEBands); + /* In normal circumstances, we only allow the noise floor to increase by + up to 2.4 dB/second, but when we're in DTX, we allow up to 6 dB + increase for each update.*/ + if (st->loss_count < 10) + max_background_increase = M*QCONST16(0.001f,DB_SHIFT); + else + max_background_increase = QCONST16(1.f,DB_SHIFT); + for (i=0;i<2*nbEBands;i++) + backgroundLogE[i] = MIN16(backgroundLogE[i] + max_background_increase, oldBandE[i]); + } else { + for (i=0;i<2*nbEBands;i++) + oldLogE[i] = MIN16(oldLogE[i], oldBandE[i]); + } + c=0; do + { + for (i=0;irng = dec->rng; + + deemphasis(out_syn, pcm, N, CC, st->downsample, mode->preemph, st->preemph_memD, accum); + st->loss_count = 0; + RESTORE_STACK; + if (ec_tell(dec) > 8*len) + return OPUS_INTERNAL_ERROR; + if(ec_get_error(dec)) + st->error = 1; + return frame_size/st->downsample; +} + + +#ifdef CUSTOM_MODES + +#ifdef FIXED_POINT +int opus_custom_decode(CELTDecoder * OPUS_RESTRICT st, const unsigned char *data, int len, opus_int16 * OPUS_RESTRICT pcm, int frame_size) +{ + return celt_decode_with_ec(st, data, len, pcm, frame_size, NULL, 0); +} + +#ifndef DISABLE_FLOAT_API +int opus_custom_decode_float(CELTDecoder * OPUS_RESTRICT st, const unsigned char *data, int len, float * OPUS_RESTRICT pcm, int frame_size) +{ + int j, ret, C, N; + VARDECL(opus_int16, out); + ALLOC_STACK; + + if (pcm==NULL) + return OPUS_BAD_ARG; + + C = st->channels; + N = frame_size; + + ALLOC(out, C*N, opus_int16); + ret=celt_decode_with_ec(st, data, len, out, frame_size, NULL, 0); + if (ret>0) + for (j=0;jchannels; + N = frame_size; + ALLOC(out, C*N, celt_sig); + + ret=celt_decode_with_ec(st, data, len, out, frame_size, NULL, 0); + + if (ret>0) + for (j=0;j=st->mode->nbEBands) + goto bad_arg; + st->start = value; + } + break; + case CELT_SET_END_BAND_REQUEST: + { + opus_int32 value = va_arg(ap, opus_int32); + if (value<1 || value>st->mode->nbEBands) + goto bad_arg; + st->end = value; + } + break; + case CELT_SET_CHANNELS_REQUEST: + { + opus_int32 value = va_arg(ap, opus_int32); + if (value<1 || value>2) + goto bad_arg; + st->stream_channels = value; + } + break; + case CELT_GET_AND_CLEAR_ERROR_REQUEST: + { + opus_int32 *value = va_arg(ap, opus_int32*); + if (value==NULL) + goto bad_arg; + *value=st->error; + st->error = 0; + } + break; + case OPUS_GET_LOOKAHEAD_REQUEST: + { + opus_int32 *value = va_arg(ap, opus_int32*); + if (value==NULL) + goto bad_arg; + *value = st->overlap/st->downsample; + } + break; + case OPUS_RESET_STATE: + { + int i; + opus_val16 *lpc, *oldBandE, *oldLogE, *oldLogE2; + lpc = (opus_val16*)(st->_decode_mem+(DECODE_BUFFER_SIZE+st->overlap)*st->channels); + oldBandE = lpc+st->channels*LPC_ORDER; + oldLogE = oldBandE + 2*st->mode->nbEBands; + oldLogE2 = oldLogE + 2*st->mode->nbEBands; + OPUS_CLEAR((char*)&st->DECODER_RESET_START, + opus_custom_decoder_get_size(st->mode, st->channels)- + ((char*)&st->DECODER_RESET_START - (char*)st)); + for (i=0;i<2*st->mode->nbEBands;i++) + oldLogE[i]=oldLogE2[i]=-QCONST16(28.f,DB_SHIFT); + st->skip_plc = 1; + } + break; + case OPUS_GET_PITCH_REQUEST: + { + opus_int32 *value = va_arg(ap, opus_int32*); + if (value==NULL) + goto bad_arg; + *value = st->postfilter_period; + } + break; + case CELT_GET_MODE_REQUEST: + { + const CELTMode ** value = va_arg(ap, const CELTMode**); + if (value==0) + goto bad_arg; + *value=st->mode; + } + break; + case CELT_SET_SIGNALLING_REQUEST: + { + opus_int32 value = va_arg(ap, opus_int32); + st->signalling = value; + } + break; + case OPUS_GET_FINAL_RANGE_REQUEST: + { + opus_uint32 * value = va_arg(ap, opus_uint32 *); + if (value==0) + goto bad_arg; + *value=st->rng; + } + break; + case OPUS_SET_PHASE_INVERSION_DISABLED_REQUEST: + { + opus_int32 value = va_arg(ap, opus_int32); + if(value<0 || value>1) + { + goto bad_arg; + } + st->disable_inv = value; + } + break; + case OPUS_GET_PHASE_INVERSION_DISABLED_REQUEST: + { + opus_int32 *value = va_arg(ap, opus_int32*); + if (!value) + { + goto bad_arg; + } + *value = st->disable_inv; + } + break; + default: + goto bad_request; + } + va_end(ap); + return OPUS_OK; +bad_arg: + va_end(ap); + return OPUS_BAD_ARG; +bad_request: + va_end(ap); + return OPUS_UNIMPLEMENTED; +} diff --git a/components/opus/libopus/celt/celt_encoder.c b/components/opus/libopus/celt/celt_encoder.c new file mode 100644 index 0000000..44cb085 --- /dev/null +++ b/components/opus/libopus/celt/celt_encoder.c @@ -0,0 +1,2607 @@ +/* Copyright (c) 2007-2008 CSIRO + Copyright (c) 2007-2010 Xiph.Org Foundation + Copyright (c) 2008 Gregory Maxwell + Written by Jean-Marc Valin and Gregory Maxwell */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#define CELT_ENCODER_C + +#include "cpu_support.h" +#include "os_support.h" +#include "mdct.h" +#include +#include "celt.h" +#include "pitch.h" +#include "bands.h" +#include "modes.h" +#include "entcode.h" +#include "quant_bands.h" +#include "rate.h" +#include "stack_alloc.h" +#include "mathops.h" +#include "float_cast.h" +#include +#include "celt_lpc.h" +#include "vq.h" + + +/** Encoder state + @brief Encoder state + */ +struct OpusCustomEncoder { + const OpusCustomMode *mode; /**< Mode used by the encoder */ + int channels; + int stream_channels; + + int force_intra; + int clip; + int disable_pf; + int complexity; + int upsample; + int start, end; + + opus_int32 bitrate; + int vbr; + int signalling; + int constrained_vbr; /* If zero, VBR can do whatever it likes with the rate */ + int loss_rate; + int lsb_depth; + int lfe; + int disable_inv; + int arch; + + /* Everything beyond this point gets cleared on a reset */ +#define ENCODER_RESET_START rng + + opus_uint32 rng; + int spread_decision; + opus_val32 delayedIntra; + int tonal_average; + int lastCodedBands; + int hf_average; + int tapset_decision; + + int prefilter_period; + opus_val16 prefilter_gain; + int prefilter_tapset; +#ifdef RESYNTH + int prefilter_period_old; + opus_val16 prefilter_gain_old; + int prefilter_tapset_old; +#endif + int consec_transient; + AnalysisInfo analysis; + SILKInfo silk_info; + + opus_val32 preemph_memE[2]; + opus_val32 preemph_memD[2]; + + /* VBR-related parameters */ + opus_int32 vbr_reservoir; + opus_int32 vbr_drift; + opus_int32 vbr_offset; + opus_int32 vbr_count; + opus_val32 overlap_max; + opus_val16 stereo_saving; + int intensity; + opus_val16 *energy_mask; + opus_val16 spec_avg; + +#ifdef RESYNTH + /* +MAX_PERIOD/2 to make space for overlap */ + celt_sig syn_mem[2][2*MAX_PERIOD+MAX_PERIOD/2]; +#endif + + celt_sig in_mem[1]; /* Size = channels*mode->overlap */ + /* celt_sig prefilter_mem[], Size = channels*COMBFILTER_MAXPERIOD */ + /* opus_val16 oldBandE[], Size = channels*mode->nbEBands */ + /* opus_val16 oldLogE[], Size = channels*mode->nbEBands */ + /* opus_val16 oldLogE2[], Size = channels*mode->nbEBands */ + /* opus_val16 energyError[], Size = channels*mode->nbEBands */ +}; + +int celt_encoder_get_size(int channels) +{ + CELTMode *mode = opus_custom_mode_create(48000, 960, NULL); + return opus_custom_encoder_get_size(mode, channels); +} + +OPUS_CUSTOM_NOSTATIC int opus_custom_encoder_get_size(const CELTMode *mode, int channels) +{ + int size = sizeof(struct CELTEncoder) + + (channels*mode->overlap-1)*sizeof(celt_sig) /* celt_sig in_mem[channels*mode->overlap]; */ + + channels*COMBFILTER_MAXPERIOD*sizeof(celt_sig) /* celt_sig prefilter_mem[channels*COMBFILTER_MAXPERIOD]; */ + + 4*channels*mode->nbEBands*sizeof(opus_val16); /* opus_val16 oldBandE[channels*mode->nbEBands]; */ + /* opus_val16 oldLogE[channels*mode->nbEBands]; */ + /* opus_val16 oldLogE2[channels*mode->nbEBands]; */ + /* opus_val16 energyError[channels*mode->nbEBands]; */ + return size; +} + +#ifdef CUSTOM_MODES +CELTEncoder *opus_custom_encoder_create(const CELTMode *mode, int channels, int *error) +{ + int ret; + CELTEncoder *st = (CELTEncoder *)opus_alloc(opus_custom_encoder_get_size(mode, channels)); + /* init will handle the NULL case */ + ret = opus_custom_encoder_init(st, mode, channels); + if (ret != OPUS_OK) + { + opus_custom_encoder_destroy(st); + st = NULL; + } + if (error) + *error = ret; + return st; +} +#endif /* CUSTOM_MODES */ + +static int opus_custom_encoder_init_arch(CELTEncoder *st, const CELTMode *mode, + int channels, int arch) +{ + if (channels < 0 || channels > 2) + return OPUS_BAD_ARG; + + if (st==NULL || mode==NULL) + return OPUS_ALLOC_FAIL; + + OPUS_CLEAR((char*)st, opus_custom_encoder_get_size(mode, channels)); + + st->mode = mode; + st->stream_channels = st->channels = channels; + + st->upsample = 1; + st->start = 0; + st->end = st->mode->effEBands; + st->signalling = 1; + st->arch = arch; + + st->constrained_vbr = 1; + st->clip = 1; + + st->bitrate = OPUS_BITRATE_MAX; + st->vbr = 0; + st->force_intra = 0; + st->complexity = 5; + st->lsb_depth=24; + + opus_custom_encoder_ctl(st, OPUS_RESET_STATE); + + return OPUS_OK; +} + +#ifdef CUSTOM_MODES +int opus_custom_encoder_init(CELTEncoder *st, const CELTMode *mode, int channels) +{ + return opus_custom_encoder_init_arch(st, mode, channels, opus_select_arch()); +} +#endif + +int celt_encoder_init(CELTEncoder *st, opus_int32 sampling_rate, int channels, + int arch) +{ + int ret; + ret = opus_custom_encoder_init_arch(st, + opus_custom_mode_create(48000, 960, NULL), channels, arch); + if (ret != OPUS_OK) + return ret; + st->upsample = resampling_factor(sampling_rate); + return OPUS_OK; +} + +#ifdef CUSTOM_MODES +void opus_custom_encoder_destroy(CELTEncoder *st) +{ + opus_free(st); +} +#endif /* CUSTOM_MODES */ + + +static int transient_analysis(const opus_val32 * OPUS_RESTRICT in, int len, int C, + opus_val16 *tf_estimate, int *tf_chan, int allow_weak_transients, + int *weak_transient) +{ + int i; + VARDECL(opus_val16, tmp); + opus_val32 mem0,mem1; + int is_transient = 0; + opus_int32 mask_metric = 0; + int c; + opus_val16 tf_max; + int len2; + /* Forward masking: 6.7 dB/ms. */ +#ifdef FIXED_POINT + int forward_shift = 4; +#else + opus_val16 forward_decay = QCONST16(.0625f,15); +#endif + /* Table of 6*64/x, trained on real data to minimize the average error */ + static const unsigned char inv_table[128] = { + 255,255,156,110, 86, 70, 59, 51, 45, 40, 37, 33, 31, 28, 26, 25, + 23, 22, 21, 20, 19, 18, 17, 16, 16, 15, 15, 14, 13, 13, 12, 12, + 12, 12, 11, 11, 11, 10, 10, 10, 9, 9, 9, 9, 9, 9, 8, 8, + 8, 8, 8, 7, 7, 7, 7, 7, 7, 6, 6, 6, 6, 6, 6, 6, + 6, 6, 6, 6, 6, 6, 6, 6, 6, 5, 5, 5, 5, 5, 5, 5, + 5, 5, 5, 5, 5, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, + 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 3, 3, + 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, + }; + SAVE_STACK; + ALLOC(tmp, len, opus_val16); + + *weak_transient = 0; + /* For lower bitrates, let's be more conservative and have a forward masking + decay of 3.3 dB/ms. This avoids having to code transients at very low + bitrate (mostly for hybrid), which can result in unstable energy and/or + partial collapse. */ + if (allow_weak_transients) + { +#ifdef FIXED_POINT + forward_shift = 5; +#else + forward_decay = QCONST16(.03125f,15); +#endif + } + len2=len/2; + for (c=0;c=0;i--) + { + /* Backward masking: 13.9 dB/ms. */ +#ifdef FIXED_POINT + /* FIXME: Use PSHR16() instead */ + tmp[i] = mem0 + PSHR32(tmp[i]-mem0,3); +#else + tmp[i] = mem0 + MULT16_16_P15(QCONST16(0.125f,15),tmp[i]-mem0); +#endif + mem0 = tmp[i]; + maxE = MAX16(maxE, mem0); + } + /*for (i=0;i>1))); +#else + mean = celt_sqrt(mean * maxE*.5*len2); +#endif + /* Inverse of the mean energy in Q15+6 */ + norm = SHL32(EXTEND32(len2),6+14)/ADD32(EPSILON,SHR32(mean,1)); + /* Compute harmonic mean discarding the unreliable boundaries + The data is smooth, so we only take 1/4th of the samples */ + unmask=0; + /* We should never see NaNs here. If we find any, then something really bad happened and we better abort + before it does any damage later on. If these asserts are disabled (no hardening), then the table + lookup a few lines below (id = ...) is likely to crash dur to an out-of-bounds read. DO NOT FIX + that crash on NaN since it could result in a worse issue later on. */ + celt_assert(!celt_isnan(tmp[0])); + celt_assert(!celt_isnan(norm)); + for (i=12;imask_metric) + { + *tf_chan = c; + mask_metric = unmask; + } + } + is_transient = mask_metric>200; + /* For low bitrates, define "weak transients" that need to be + handled differently to avoid partial collapse. */ + if (allow_weak_transients && is_transient && mask_metric<600) { + is_transient = 0; + *weak_transient = 1; + } + /* Arbitrary metric for VBR boost */ + tf_max = MAX16(0,celt_sqrt(27*mask_metric)-42); + /* *tf_estimate = 1 + MIN16(1, sqrt(MAX16(0, tf_max-30))/20); */ + *tf_estimate = celt_sqrt(MAX32(0, SHL32(MULT16_16(QCONST16(0.0069,14),MIN16(163,tf_max)),14)-QCONST32(0.139,28))); + /*printf("%d %f\n", tf_max, mask_metric);*/ + RESTORE_STACK; +#ifdef FUZZING + is_transient = rand()&0x1; +#endif + /*printf("%d %f %d\n", is_transient, (float)*tf_estimate, tf_max);*/ + return is_transient; +} + +/* Looks for sudden increases of energy to decide whether we need to patch + the transient decision */ +static int patch_transient_decision(opus_val16 *newE, opus_val16 *oldE, int nbEBands, + int start, int end, int C) +{ + int i, c; + opus_val32 mean_diff=0; + opus_val16 spread_old[26]; + /* Apply an aggressive (-6 dB/Bark) spreading function to the old frame to + avoid false detection caused by irrelevant bands */ + if (C==1) + { + spread_old[start] = oldE[start]; + for (i=start+1;i=start;i--) + spread_old[i] = MAX16(spread_old[i], spread_old[i+1]-QCONST16(1.0f, DB_SHIFT)); + /* Compute mean increase */ + c=0; do { + for (i=IMAX(2,start);i QCONST16(1.f, DB_SHIFT); +} + +/** Apply window and compute the MDCT for all sub-frames and + all channels in a frame */ +static void compute_mdcts(const CELTMode *mode, int shortBlocks, celt_sig * OPUS_RESTRICT in, + celt_sig * OPUS_RESTRICT out, int C, int CC, int LM, int upsample, + int arch) +{ + const int overlap = mode->overlap; + int N; + int B; + int shift; + int i, b, c; + if (shortBlocks) + { + B = shortBlocks; + N = mode->shortMdctSize; + shift = mode->maxLM; + } else { + B = 1; + N = mode->shortMdctSize<maxLM-LM; + } + c=0; do { + for (b=0;bmdct, in+c*(B*N+overlap)+b*N, + &out[b+c*N*B], mode->window, overlap, shift, B, + arch); + } + } while (++ceBands[len]-m->eBands[len-1])<eBands[len]-m->eBands[len-1])<eBands[i+1]-m->eBands[i])<eBands[i+1]-m->eBands[i])==1; + OPUS_COPY(tmp, &X[tf_chan*N0 + (m->eBands[i]<eBands[i]<>LM, 1<>k, 1<=0;i--) + { + if (tf_res[i+1] == 1) + tf_res[i] = path1[i+1]; + else + tf_res[i] = path0[i+1]; + } + /*printf("%d %f\n", *tf_sum, tf_estimate);*/ + RESTORE_STACK; +#ifdef FUZZING + tf_select = rand()&0x1; + tf_res[0] = rand()&0x1; + for (i=1;istorage*8; + tell = ec_tell(enc); + logp = isTransient ? 2 : 4; + /* Reserve space to code the tf_select decision. */ + tf_select_rsv = LM>0 && tell+logp+1 <= budget; + budget -= tf_select_rsv; + curr = tf_changed = 0; + for (i=start;i> 10; + trim = QCONST16(4.f, 8) + QCONST16(1.f/16.f, 8)*frac; + } + if (C==2) + { + opus_val16 sum = 0; /* Q10 */ + opus_val16 minXC; /* Q10 */ + /* Compute inter-channel correlation for low frequencies */ + for (i=0;i<8;i++) + { + opus_val32 partial; + partial = celt_inner_prod(&X[m->eBands[i]<eBands[i]<eBands[i+1]-m->eBands[i])<eBands[i]<eBands[i]<eBands[i+1]-m->eBands[i])<nbEBands]*(opus_int32)(2+2*i-end); + } + } while (++cvalid) + { + trim -= MAX16(-QCONST16(2.f, 8), MIN16(QCONST16(2.f, 8), + (opus_val16)(QCONST16(2.f, 8)*(analysis->tonality_slope+.05f)))); + } +#else + (void)analysis; +#endif + +#ifdef FIXED_POINT + trim_index = PSHR32(trim, 8); +#else + trim_index = (int)floor(.5f+trim); +#endif + trim_index = IMAX(0, IMIN(10, trim_index)); + /*printf("%d\n", trim_index);*/ +#ifdef FUZZING + trim_index = rand()%11; +#endif + return trim_index; +} + +static int stereo_analysis(const CELTMode *m, const celt_norm *X, + int LM, int N0) +{ + int i; + int thetas; + opus_val32 sumLR = EPSILON, sumMS = EPSILON; + + /* Use the L1 norm to model the entropy of the L/R signal vs the M/S signal */ + for (i=0;i<13;i++) + { + int j; + for (j=m->eBands[i]<eBands[i+1]<eBands[13]<<(LM+1))+thetas, sumMS) + > MULT16_32_Q15(m->eBands[13]<<(LM+1), sumLR); +} + +#define MSWAP(a,b) do {opus_val16 tmp = a;a=b;b=tmp;} while(0) +static opus_val16 median_of_5(const opus_val16 *x) +{ + opus_val16 t0, t1, t2, t3, t4; + t2 = x[2]; + if (x[0] > x[1]) + { + t0 = x[1]; + t1 = x[0]; + } else { + t0 = x[0]; + t1 = x[1]; + } + if (x[3] > x[4]) + { + t3 = x[4]; + t4 = x[3]; + } else { + t3 = x[3]; + t4 = x[4]; + } + if (t0 > t3) + { + MSWAP(t0, t3); + MSWAP(t1, t4); + } + if (t2 > t1) + { + if (t1 < t3) + return MIN16(t2, t3); + else + return MIN16(t4, t1); + } else { + if (t2 < t3) + return MIN16(t1, t3); + else + return MIN16(t2, t4); + } +} + +static opus_val16 median_of_3(const opus_val16 *x) +{ + opus_val16 t0, t1, t2; + if (x[0] > x[1]) + { + t0 = x[1]; + t1 = x[0]; + } else { + t0 = x[0]; + t1 = x[1]; + } + t2 = x[2]; + if (t1 < t2) + return t1; + else if (t0 < t2) + return t2; + else + return t0; +} + +static opus_val16 dynalloc_analysis(const opus_val16 *bandLogE, const opus_val16 *bandLogE2, + int nbEBands, int start, int end, int C, int *offsets, int lsb_depth, const opus_int16 *logN, + int isTransient, int vbr, int constrained_vbr, const opus_int16 *eBands, int LM, + int effectiveBytes, opus_int32 *tot_boost_, int lfe, opus_val16 *surround_dynalloc, + AnalysisInfo *analysis, int *importance, int *spread_weight) +{ + int i, c; + opus_int32 tot_boost=0; + opus_val16 maxDepth; + VARDECL(opus_val16, follower); + VARDECL(opus_val16, noise_floor); + SAVE_STACK; + ALLOC(follower, C*nbEBands, opus_val16); + ALLOC(noise_floor, C*nbEBands, opus_val16); + OPUS_CLEAR(offsets, nbEBands); + /* Dynamic allocation code */ + maxDepth=-QCONST16(31.9f, DB_SHIFT); + for (i=0;i=0;i--) + mask[i] = MAX16(mask[i], mask[i+1] - QCONST16(3.f, DB_SHIFT)); + for (i=0;i> shift; + } + /*for (i=0;i 50 && LM>=1 && !lfe) + { + int last=0; + c=0;do + { + opus_val16 offset; + opus_val16 tmp; + opus_val16 *f; + f = &follower[c*nbEBands]; + f[0] = bandLogE2[c*nbEBands]; + for (i=1;i bandLogE2[c*nbEBands+i-1]+QCONST16(.5f,DB_SHIFT)) + last=i; + f[i] = MIN16(f[i-1]+QCONST16(1.5f,DB_SHIFT), bandLogE2[c*nbEBands+i]); + } + for (i=last-1;i>=0;i--) + f[i] = MIN16(f[i], MIN16(f[i+1]+QCONST16(2.f,DB_SHIFT), bandLogE2[c*nbEBands+i])); + + /* Combine with a median filter to avoid dynalloc triggering unnecessarily. + The "offset" value controls how conservative we are -- a higher offset + reduces the impact of the median filter and makes dynalloc use more bits. */ + offset = QCONST16(1.f, DB_SHIFT); + for (i=2;i=12) + follower[i] = HALF16(follower[i]); + } +#ifdef DISABLE_FLOAT_API + (void)analysis; +#else + if (analysis->valid) + { + for (i=start;ileak_boost[i]; + } +#endif + for (i=start;i 48) { + boost = (int)SHR32(EXTEND32(follower[i])*8,DB_SHIFT); + boost_bits = (boost*width<>BITRES>>3 > 2*effectiveBytes/3) + { + opus_int32 cap = ((2*effectiveBytes/3)<mode; + overlap = mode->overlap; + ALLOC(_pre, CC*(N+COMBFILTER_MAXPERIOD), celt_sig); + + pre[0] = _pre; + pre[1] = _pre + (N+COMBFILTER_MAXPERIOD); + + + c=0; do { + OPUS_COPY(pre[c], prefilter_mem+c*COMBFILTER_MAXPERIOD, COMBFILTER_MAXPERIOD); + OPUS_COPY(pre[c]+COMBFILTER_MAXPERIOD, in+c*(N+overlap)+overlap, N); + } while (++c>1, opus_val16); + + pitch_downsample(pre, pitch_buf, COMBFILTER_MAXPERIOD+N, CC, st->arch); + /* Don't search for the fir last 1.5 octave of the range because + there's too many false-positives due to short-term correlation */ + pitch_search(pitch_buf+(COMBFILTER_MAXPERIOD>>1), pitch_buf, N, + COMBFILTER_MAXPERIOD-3*COMBFILTER_MINPERIOD, &pitch_index, + st->arch); + pitch_index = COMBFILTER_MAXPERIOD-pitch_index; + + gain1 = remove_doubling(pitch_buf, COMBFILTER_MAXPERIOD, COMBFILTER_MINPERIOD, + N, &pitch_index, st->prefilter_period, st->prefilter_gain, st->arch); + if (pitch_index > COMBFILTER_MAXPERIOD-2) + pitch_index = COMBFILTER_MAXPERIOD-2; + gain1 = MULT16_16_Q15(QCONST16(.7f,15),gain1); + /*printf("%d %d %f %f\n", pitch_change, pitch_index, gain1, st->analysis.tonality);*/ + if (st->loss_rate>2) + gain1 = HALF32(gain1); + if (st->loss_rate>4) + gain1 = HALF32(gain1); + if (st->loss_rate>8) + gain1 = 0; + } else { + gain1 = 0; + pitch_index = COMBFILTER_MINPERIOD; + } +#ifndef DISABLE_FLOAT_API + if (analysis->valid) + gain1 = (opus_val16)(gain1 * analysis->max_pitch_ratio); +#else + (void)analysis; +#endif + /* Gain threshold for enabling the prefilter/postfilter */ + pf_threshold = QCONST16(.2f,15); + + /* Adjusting the threshold based on rate and continuity */ + if (abs(pitch_index-st->prefilter_period)*10>pitch_index) + pf_threshold += QCONST16(.2f,15); + if (nbAvailableBytes<25) + pf_threshold += QCONST16(.1f,15); + if (nbAvailableBytes<35) + pf_threshold += QCONST16(.1f,15); + if (st->prefilter_gain > QCONST16(.4f,15)) + pf_threshold -= QCONST16(.1f,15); + if (st->prefilter_gain > QCONST16(.55f,15)) + pf_threshold -= QCONST16(.1f,15); + + /* Hard threshold at 0.2 */ + pf_threshold = MAX16(pf_threshold, QCONST16(.2f,15)); + if (gain1prefilter_gain)prefilter_gain; + +#ifdef FIXED_POINT + qg = ((gain1+1536)>>10)/3-1; +#else + qg = (int)floor(.5f+gain1*32/3)-1; +#endif + qg = IMAX(0, IMIN(7, qg)); + gain1 = QCONST16(0.09375f,15)*(qg+1); + pf_on = 1; + } + /*printf("%d %f\n", pitch_index, gain1);*/ + + c=0; do { + int offset = mode->shortMdctSize-overlap; + st->prefilter_period=IMAX(st->prefilter_period, COMBFILTER_MINPERIOD); + OPUS_COPY(in+c*(N+overlap), st->in_mem+c*(overlap), overlap); + if (offset) + comb_filter(in+c*(N+overlap)+overlap, pre[c]+COMBFILTER_MAXPERIOD, + st->prefilter_period, st->prefilter_period, offset, -st->prefilter_gain, -st->prefilter_gain, + st->prefilter_tapset, st->prefilter_tapset, NULL, 0, st->arch); + + comb_filter(in+c*(N+overlap)+overlap+offset, pre[c]+COMBFILTER_MAXPERIOD+offset, + st->prefilter_period, pitch_index, N-offset, -st->prefilter_gain, -gain1, + st->prefilter_tapset, prefilter_tapset, mode->window, overlap, st->arch); + OPUS_COPY(st->in_mem+c*(overlap), in+c*(N+overlap)+N, overlap); + + if (N>COMBFILTER_MAXPERIOD) + { + OPUS_COPY(prefilter_mem+c*COMBFILTER_MAXPERIOD, pre[c]+N, COMBFILTER_MAXPERIOD); + } else { + OPUS_MOVE(prefilter_mem+c*COMBFILTER_MAXPERIOD, prefilter_mem+c*COMBFILTER_MAXPERIOD+N, COMBFILTER_MAXPERIOD-N); + OPUS_COPY(prefilter_mem+c*COMBFILTER_MAXPERIOD+COMBFILTER_MAXPERIOD-N, pre[c]+COMBFILTER_MAXPERIOD, N); + } + } while (++cnbEBands; + eBands = mode->eBands; + + coded_bands = lastCodedBands ? lastCodedBands : nbEBands; + coded_bins = eBands[coded_bands]<analysis.activity, st->analysis.tonality, tf_estimate, st->stereo_saving, tot_boost, coded_bands);*/ +#ifndef DISABLE_FLOAT_API + if (analysis->valid && analysis->activity<.4) + target -= (opus_int32)((coded_bins<activity)); +#endif + /* Stereo savings */ + if (C==2) + { + int coded_stereo_bands; + int coded_stereo_dof; + opus_val16 max_frac; + coded_stereo_bands = IMIN(intensity, coded_bands); + coded_stereo_dof = (eBands[coded_stereo_bands]<valid && !lfe) + { + opus_int32 tonal_target; + float tonal; + + /* Tonality boost (compensating for the average). */ + tonal = MAX16(0.f,analysis->tonality-.15f)-0.12f; + tonal_target = target + (opus_int32)((coded_bins<tonality, tonal);*/ + target = tonal_target; + } +#else + (void)analysis; + (void)pitch_change; +#endif + + if (has_surround_mask&&!lfe) + { + opus_int32 surround_target = target + (opus_int32)SHR32(MULT16_16(surround_masking,coded_bins<end, st->intensity, surround_target, target, st->bitrate);*/ + target = IMAX(target/4, surround_target); + } + + { + opus_int32 floor_depth; + int bins; + bins = eBands[nbEBands-2]<>2); + target = IMIN(target, floor_depth); + /*printf("%f %d\n", maxDepth, floor_depth);*/ + } + + /* Make VBR less aggressive for constrained VBR because we can't keep a higher bitrate + for long. Needs tuning. */ + if ((!has_surround_mask||lfe) && constrained_vbr) + { + target = base_target + (opus_int32)MULT16_32_Q15(QCONST16(0.67f, 15), target-base_target); + } + + if (!has_surround_mask && tf_estimate < QCONST16(.2f, 14)) + { + opus_val16 amount; + opus_val16 tvbr_factor; + amount = MULT16_16_Q15(QCONST16(.0000031f, 30), IMAX(0, IMIN(32000, 96000-bitrate))); + tvbr_factor = SHR32(MULT16_16(temporal_vbr, amount), DB_SHIFT); + target += (opus_int32)MULT16_32_Q15(tvbr_factor, target); + } + + /* Don't allow more than doubling the rate */ + target = IMIN(2*base_target, target); + + return target; +} + +int celt_encode_with_ec(CELTEncoder * OPUS_RESTRICT st, const opus_val16 * pcm, int frame_size, unsigned char *compressed, int nbCompressedBytes, ec_enc *enc) +{ + int i, c, N; + opus_int32 bits; + ec_enc _enc; + VARDECL(celt_sig, in); + VARDECL(celt_sig, freq); + VARDECL(celt_norm, X); + VARDECL(celt_ener, bandE); + VARDECL(opus_val16, bandLogE); + VARDECL(opus_val16, bandLogE2); + VARDECL(int, fine_quant); + VARDECL(opus_val16, error); + VARDECL(int, pulses); + VARDECL(int, cap); + VARDECL(int, offsets); + VARDECL(int, importance); + VARDECL(int, spread_weight); + VARDECL(int, fine_priority); + VARDECL(int, tf_res); + VARDECL(unsigned char, collapse_masks); + celt_sig *prefilter_mem; + opus_val16 *oldBandE, *oldLogE, *oldLogE2, *energyError; + int shortBlocks=0; + int isTransient=0; + const int CC = st->channels; + const int C = st->stream_channels; + int LM, M; + int tf_select; + int nbFilledBytes, nbAvailableBytes; + int start; + int end; + int effEnd; + int codedBands; + int alloc_trim; + int pitch_index=COMBFILTER_MINPERIOD; + opus_val16 gain1 = 0; + int dual_stereo=0; + int effectiveBytes; + int dynalloc_logp; + opus_int32 vbr_rate; + opus_int32 total_bits; + opus_int32 total_boost; + opus_int32 balance; + opus_int32 tell; + opus_int32 tell0_frac; + int prefilter_tapset=0; + int pf_on; + int anti_collapse_rsv; + int anti_collapse_on=0; + int silence=0; + int tf_chan = 0; + opus_val16 tf_estimate; + int pitch_change=0; + opus_int32 tot_boost; + opus_val32 sample_max; + opus_val16 maxDepth; + const OpusCustomMode *mode; + int nbEBands; + int overlap; + const opus_int16 *eBands; + int secondMdct; + int signalBandwidth; + int transient_got_disabled=0; + opus_val16 surround_masking=0; + opus_val16 temporal_vbr=0; + opus_val16 surround_trim = 0; + opus_int32 equiv_rate; + int hybrid; + int weak_transient = 0; + int enable_tf_analysis; + VARDECL(opus_val16, surround_dynalloc); + ALLOC_STACK; + + mode = st->mode; + nbEBands = mode->nbEBands; + overlap = mode->overlap; + eBands = mode->eBands; + start = st->start; + end = st->end; + hybrid = start != 0; + tf_estimate = 0; + if (nbCompressedBytes<2 || pcm==NULL) + { + RESTORE_STACK; + return OPUS_BAD_ARG; + } + + frame_size *= st->upsample; + for (LM=0;LM<=mode->maxLM;LM++) + if (mode->shortMdctSize<mode->maxLM) + { + RESTORE_STACK; + return OPUS_BAD_ARG; + } + M=1<shortMdctSize; + + prefilter_mem = st->in_mem+CC*(overlap); + oldBandE = (opus_val16*)(st->in_mem+CC*(overlap+COMBFILTER_MAXPERIOD)); + oldLogE = oldBandE + CC*nbEBands; + oldLogE2 = oldLogE + CC*nbEBands; + energyError = oldLogE2 + CC*nbEBands; + + if (enc==NULL) + { + tell0_frac=tell=1; + nbFilledBytes=0; + } else { + tell0_frac=ec_tell_frac(enc); + tell=ec_tell(enc); + nbFilledBytes=(tell+4)>>3; + } + +#ifdef CUSTOM_MODES + if (st->signalling && enc==NULL) + { + int tmp = (mode->effEBands-end)>>1; + end = st->end = IMAX(1, mode->effEBands-tmp); + compressed[0] = tmp<<5; + compressed[0] |= LM<<3; + compressed[0] |= (C==2)<<2; + /* Convert "standard mode" to Opus header */ + if (mode->Fs==48000 && mode->shortMdctSize==120) + { + int c0 = toOpus(compressed[0]); + if (c0<0) + { + RESTORE_STACK; + return OPUS_BAD_ARG; + } + compressed[0] = c0; + } + compressed++; + nbCompressedBytes--; + } +#else + celt_assert(st->signalling==0); +#endif + + /* Can't produce more than 1275 output bytes */ + nbCompressedBytes = IMIN(nbCompressedBytes,1275); + nbAvailableBytes = nbCompressedBytes - nbFilledBytes; + + if (st->vbr && st->bitrate!=OPUS_BITRATE_MAX) + { + opus_int32 den=mode->Fs>>BITRES; + vbr_rate=(st->bitrate*frame_size+(den>>1))/den; +#ifdef CUSTOM_MODES + if (st->signalling) + vbr_rate -= 8<>(3+BITRES); + } else { + opus_int32 tmp; + vbr_rate = 0; + tmp = st->bitrate*frame_size; + if (tell>1) + tmp += tell; + if (st->bitrate!=OPUS_BITRATE_MAX) + nbCompressedBytes = IMAX(2, IMIN(nbCompressedBytes, + (tmp+4*mode->Fs)/(8*mode->Fs)-!!st->signalling)); + effectiveBytes = nbCompressedBytes - nbFilledBytes; + } + equiv_rate = ((opus_int32)nbCompressedBytes*8*50 >> (3-LM)) - (40*C+20)*((400>>LM) - 50); + if (st->bitrate != OPUS_BITRATE_MAX) + equiv_rate = IMIN(equiv_rate, st->bitrate - (40*C+20)*((400>>LM) - 50)); + + if (enc==NULL) + { + ec_enc_init(&_enc, compressed, nbCompressedBytes); + enc = &_enc; + } + + if (vbr_rate>0) + { + /* Computes the max bit-rate allowed in VBR mode to avoid violating the + target rate and buffering. + We must do this up front so that bust-prevention logic triggers + correctly if we don't have enough bits. */ + if (st->constrained_vbr) + { + opus_int32 vbr_bound; + opus_int32 max_allowed; + /* We could use any multiple of vbr_rate as bound (depending on the + delay). + This is clamped to ensure we use at least two bytes if the encoder + was entirely empty, but to allow 0 in hybrid mode. */ + vbr_bound = vbr_rate; + max_allowed = IMIN(IMAX(tell==1?2:0, + (vbr_rate+vbr_bound-st->vbr_reservoir)>>(BITRES+3)), + nbAvailableBytes); + if(max_allowed < nbAvailableBytes) + { + nbCompressedBytes = nbFilledBytes+max_allowed; + nbAvailableBytes = max_allowed; + ec_enc_shrink(enc, nbCompressedBytes); + } + } + } + total_bits = nbCompressedBytes*8; + + effEnd = end; + if (effEnd > mode->effEBands) + effEnd = mode->effEBands; + + ALLOC(in, CC*(N+overlap), celt_sig); + + sample_max=MAX32(st->overlap_max, celt_maxabs16(pcm, C*(N-overlap)/st->upsample)); + st->overlap_max=celt_maxabs16(pcm+C*(N-overlap)/st->upsample, C*overlap/st->upsample); + sample_max=MAX32(sample_max, st->overlap_max); +#ifdef FIXED_POINT + silence = (sample_max==0); +#else + silence = (sample_max <= (opus_val16)1/(1<lsb_depth)); +#endif +#ifdef FUZZING + if ((rand()&0x3F)==0) + silence = 1; +#endif + if (tell==1) + ec_enc_bit_logp(enc, silence, 15); + else + silence=0; + if (silence) + { + /*In VBR mode there is no need to send more than the minimum. */ + if (vbr_rate>0) + { + effectiveBytes=nbCompressedBytes=IMIN(nbCompressedBytes, nbFilledBytes+2); + total_bits=nbCompressedBytes*8; + nbAvailableBytes=2; + ec_enc_shrink(enc, nbCompressedBytes); + } + /* Pretend we've filled all the remaining bits with zeros + (that's what the initialiser did anyway) */ + tell = nbCompressedBytes*8; + enc->nbits_total+=tell-ec_tell(enc); + } + c=0; do { + int need_clip=0; +#ifndef FIXED_POINT + need_clip = st->clip && sample_max>65536.f; +#endif + celt_preemphasis(pcm+c, in+c*(N+overlap)+overlap, N, CC, st->upsample, + mode->preemph, st->preemph_memE+c, need_clip); + } while (++clfe&&nbAvailableBytes>3) || nbAvailableBytes>12*C) && !hybrid && !silence && !st->disable_pf + && st->complexity >= 5; + + prefilter_tapset = st->tapset_decision; + pf_on = run_prefilter(st, in, prefilter_mem, CC, N, prefilter_tapset, &pitch_index, &gain1, &qg, enabled, nbAvailableBytes, &st->analysis); + if ((gain1 > QCONST16(.4f,15) || st->prefilter_gain > QCONST16(.4f,15)) && (!st->analysis.valid || st->analysis.tonality > .3) + && (pitch_index > 1.26*st->prefilter_period || pitch_index < .79*st->prefilter_period)) + pitch_change = 1; + if (pf_on==0) + { + if(!hybrid && tell+16<=total_bits) + ec_enc_bit_logp(enc, 0, 1); + } else { + /*This block is not gated by a total bits check only because + of the nbAvailableBytes check above.*/ + int octave; + ec_enc_bit_logp(enc, 1, 1); + pitch_index += 1; + octave = EC_ILOG(pitch_index)-5; + ec_enc_uint(enc, octave, 6); + ec_enc_bits(enc, pitch_index-(16<complexity >= 1 && !st->lfe) + { + /* Reduces the likelihood of energy instability on fricatives at low bitrate + in hybrid mode. It seems like we still want to have real transients on vowels + though (small SILK quantization offset value). */ + int allow_weak_transients = hybrid && effectiveBytes<15 && st->silk_info.signalType != 2; + isTransient = transient_analysis(in, N+overlap, CC, + &tf_estimate, &tf_chan, allow_weak_transients, &weak_transient); + } + if (LM>0 && ec_tell(enc)+3<=total_bits) + { + if (isTransient) + shortBlocks = M; + } else { + isTransient = 0; + transient_got_disabled=1; + } + + ALLOC(freq, CC*N, celt_sig); /**< Interleaved signal MDCTs */ + ALLOC(bandE,nbEBands*CC, celt_ener); + ALLOC(bandLogE,nbEBands*CC, opus_val16); + + secondMdct = shortBlocks && st->complexity>=8; + ALLOC(bandLogE2, C*nbEBands, opus_val16); + if (secondMdct) + { + compute_mdcts(mode, 0, in, freq, C, CC, LM, st->upsample, st->arch); + compute_band_energies(mode, freq, bandE, effEnd, C, LM, st->arch); + amp2Log2(mode, effEnd, end, bandE, bandLogE2, C); + for (i=0;iupsample, st->arch); + /* This should catch any NaN in the CELT input. Since we're not supposed to see any (they're filtered + at the Opus layer), just abort. */ + celt_assert(!celt_isnan(freq[0]) && (C==1 || !celt_isnan(freq[N]))); + if (CC==2&&C==1) + tf_chan = 0; + compute_band_energies(mode, freq, bandE, effEnd, C, LM, st->arch); + + if (st->lfe) + { + for (i=2;ienergy_mask&&!st->lfe) + { + int mask_end; + int midband; + int count_dynalloc; + opus_val32 mask_avg=0; + opus_val32 diff=0; + int count=0; + mask_end = IMAX(2,st->lastCodedBands); + for (c=0;cenergy_mask[nbEBands*c+i], + QCONST16(.25f, DB_SHIFT)), -QCONST16(2.0f, DB_SHIFT)); + if (mask > 0) + mask = HALF16(mask); + mask_avg += MULT16_16(mask, eBands[i+1]-eBands[i]); + count += eBands[i+1]-eBands[i]; + diff += MULT16_16(mask, 1+2*i-mask_end); + } + } + celt_assert(count>0); + mask_avg = DIV32_16(mask_avg,count); + mask_avg += QCONST16(.2f, DB_SHIFT); + diff = diff*6/(C*(mask_end-1)*(mask_end+1)*mask_end); + /* Again, being conservative */ + diff = HALF32(diff); + diff = MAX32(MIN32(diff, QCONST32(.031f, DB_SHIFT)), -QCONST32(.031f, DB_SHIFT)); + /* Find the band that's in the middle of the coded spectrum */ + for (midband=0;eBands[midband+1] < eBands[mask_end]/2;midband++); + count_dynalloc=0; + for(i=0;ienergy_mask[i], st->energy_mask[nbEBands+i]); + else + unmask = st->energy_mask[i]; + unmask = MIN16(unmask, QCONST16(.0f, DB_SHIFT)); + unmask -= lin; + if (unmask > QCONST16(.25f, DB_SHIFT)) + { + surround_dynalloc[i] = unmask - QCONST16(.25f, DB_SHIFT); + count_dynalloc++; + } + } + if (count_dynalloc>=3) + { + /* If we need dynalloc in many bands, it's probably because our + initial masking rate was too low. */ + mask_avg += QCONST16(.25f, DB_SHIFT); + if (mask_avg>0) + { + /* Something went really wrong in the original calculations, + disabling masking. */ + mask_avg = 0; + diff = 0; + OPUS_CLEAR(surround_dynalloc, mask_end); + } else { + for(i=0;ilfe) + { + opus_val16 follow=-QCONST16(10.0f,DB_SHIFT); + opus_val32 frame_avg=0; + opus_val16 offset = shortBlocks?HALF16(SHL16(LM, DB_SHIFT)):0; + for(i=start;ispec_avg); + temporal_vbr = MIN16(QCONST16(3.f, DB_SHIFT), MAX16(-QCONST16(1.5f, DB_SHIFT), temporal_vbr)); + st->spec_avg += MULT16_16_Q15(QCONST16(.02f, 15), temporal_vbr); + } + /*for (i=0;i<21;i++) + printf("%f ", bandLogE[i]); + printf("\n");*/ + + if (!secondMdct) + { + OPUS_COPY(bandLogE2, bandLogE, C*nbEBands); + } + + /* Last chance to catch any transient we might have missed in the + time-domain analysis */ + if (LM>0 && ec_tell(enc)+3<=total_bits && !isTransient && st->complexity>=5 && !st->lfe && !hybrid) + { + if (patch_transient_decision(bandLogE, oldBandE, nbEBands, start, end, C)) + { + isTransient = 1; + shortBlocks = M; + compute_mdcts(mode, shortBlocks, in, freq, C, CC, LM, st->upsample, st->arch); + compute_band_energies(mode, freq, bandE, effEnd, C, LM, st->arch); + amp2Log2(mode, effEnd, end, bandE, bandLogE, C); + /* Compensate for the scaling of short vs long mdcts */ + for (i=0;i0 && ec_tell(enc)+3<=total_bits) + ec_enc_bit_logp(enc, isTransient, 3); + + ALLOC(X, C*N, celt_norm); /**< Interleaved normalised MDCTs */ + + /* Band normalisation */ + normalise_bands(mode, freq, X, bandE, effEnd, C, M); + + enable_tf_analysis = effectiveBytes>=15*C && !hybrid && st->complexity>=2 && !st->lfe; + + ALLOC(offsets, nbEBands, int); + ALLOC(importance, nbEBands, int); + ALLOC(spread_weight, nbEBands, int); + + maxDepth = dynalloc_analysis(bandLogE, bandLogE2, nbEBands, start, end, C, offsets, + st->lsb_depth, mode->logN, isTransient, st->vbr, st->constrained_vbr, + eBands, LM, effectiveBytes, &tot_boost, st->lfe, surround_dynalloc, &st->analysis, importance, spread_weight); + + ALLOC(tf_res, nbEBands, int); + /* Disable variable tf resolution for hybrid and at very low bitrate */ + if (enable_tf_analysis) + { + int lambda; + lambda = IMAX(80, 20480/effectiveBytes + 2); + tf_select = tf_analysis(mode, effEnd, isTransient, tf_res, lambda, X, N, LM, tf_estimate, tf_chan, importance); + for (i=effEnd;isilk_info.signalType != 2) + { + /* For low bitrate hybrid, we force temporal resolution to 5 ms rather than 2.5 ms. */ + for (i=0;iforce_intra, + &st->delayedIntra, st->complexity >= 4, st->loss_rate, st->lfe); + + tf_encode(start, end, isTransient, tf_res, LM, tf_select, enc); + + if (ec_tell(enc)+4<=total_bits) + { + if (st->lfe) + { + st->tapset_decision = 0; + st->spread_decision = SPREAD_NORMAL; + } else if (hybrid) + { + if (st->complexity == 0) + st->spread_decision = SPREAD_NONE; + else if (isTransient) + st->spread_decision = SPREAD_NORMAL; + else + st->spread_decision = SPREAD_AGGRESSIVE; + } else if (shortBlocks || st->complexity < 3 || nbAvailableBytes < 10*C) + { + if (st->complexity == 0) + st->spread_decision = SPREAD_NONE; + else + st->spread_decision = SPREAD_NORMAL; + } else { + /* Disable new spreading+tapset estimator until we can show it works + better than the old one. So far it seems like spreading_decision() + works best. */ +#if 0 + if (st->analysis.valid) + { + static const opus_val16 spread_thresholds[3] = {-QCONST16(.6f, 15), -QCONST16(.2f, 15), -QCONST16(.07f, 15)}; + static const opus_val16 spread_histeresis[3] = {QCONST16(.15f, 15), QCONST16(.07f, 15), QCONST16(.02f, 15)}; + static const opus_val16 tapset_thresholds[2] = {QCONST16(.0f, 15), QCONST16(.15f, 15)}; + static const opus_val16 tapset_histeresis[2] = {QCONST16(.1f, 15), QCONST16(.05f, 15)}; + st->spread_decision = hysteresis_decision(-st->analysis.tonality, spread_thresholds, spread_histeresis, 3, st->spread_decision); + st->tapset_decision = hysteresis_decision(st->analysis.tonality_slope, tapset_thresholds, tapset_histeresis, 2, st->tapset_decision); + } else +#endif + { + st->spread_decision = spreading_decision(mode, X, + &st->tonal_average, st->spread_decision, &st->hf_average, + &st->tapset_decision, pf_on&&!shortBlocks, effEnd, C, M, spread_weight); + } + /*printf("%d %d\n", st->tapset_decision, st->spread_decision);*/ + /*printf("%f %d %f %d\n\n", st->analysis.tonality, st->spread_decision, st->analysis.tonality_slope, st->tapset_decision);*/ + } + ec_enc_icdf(enc, st->spread_decision, spread_icdf, 5); + } + + /* For LFE, everything interesting is in the first band */ + if (st->lfe) + offsets[0] = IMIN(8, effectiveBytes/3); + ALLOC(cap, nbEBands, int); + init_caps(mode,cap,LM,C); + + dynalloc_logp = 6; + total_bits<<=BITRES; + total_boost = 0; + tell = ec_tell_frac(enc); + for (i=start;iintensity = hysteresis_decision((opus_val16)(equiv_rate/1000), + intensity_thresholds, intensity_histeresis, 21, st->intensity); + st->intensity = IMIN(end,IMAX(start, st->intensity)); + } + + alloc_trim = 5; + if (tell+(6< 0 || st->lfe) + { + st->stereo_saving = 0; + alloc_trim = 5; + } else { + alloc_trim = alloc_trim_analysis(mode, X, bandLogE, + end, LM, C, N, &st->analysis, &st->stereo_saving, tf_estimate, + st->intensity, surround_trim, equiv_rate, st->arch); + } + ec_enc_icdf(enc, alloc_trim, trim_icdf, 7); + tell = ec_tell_frac(enc); + } + + /* Variable bitrate */ + if (vbr_rate>0) + { + opus_val16 alpha; + opus_int32 delta; + /* The target rate in 8th bits per frame */ + opus_int32 target, base_target; + opus_int32 min_allowed; + int lm_diff = mode->maxLM - LM; + + /* Don't attempt to use more than 510 kb/s, even for frames smaller than 20 ms. + The CELT allocator will just not be able to use more than that anyway. */ + nbCompressedBytes = IMIN(nbCompressedBytes,1275>>(3-LM)); + if (!hybrid) + { + base_target = vbr_rate - ((40*C+20)<constrained_vbr) + base_target += (st->vbr_offset>>lm_diff); + + if (!hybrid) + { + target = compute_vbr(mode, &st->analysis, base_target, LM, equiv_rate, + st->lastCodedBands, C, st->intensity, st->constrained_vbr, + st->stereo_saving, tot_boost, tf_estimate, pitch_change, maxDepth, + st->lfe, st->energy_mask!=NULL, surround_masking, + temporal_vbr); + } else { + target = base_target; + /* Tonal frames (offset<100) need more bits than noisy (offset>100) ones. */ + if (st->silk_info.offset < 100) target += 12 << BITRES >> (3-LM); + if (st->silk_info.offset > 100) target -= 18 << BITRES >> (3-LM); + /* Boosting bitrate on transients and vowels with significant temporal + spikes. */ + target += (opus_int32)MULT16_16_Q14(tf_estimate-QCONST16(.25f,14), (50< QCONST16(.7f,14)) + target = IMAX(target, 50<>(BITRES+3)) + 2; + /* Take into account the 37 bits we need to have left in the packet to + signal a redundant frame in hybrid mode. Creating a shorter packet would + create an entropy coder desync. */ + if (hybrid) + min_allowed = IMAX(min_allowed, (tell0_frac+(37<>(BITRES+3)); + + nbAvailableBytes = (target+(1<<(BITRES+2)))>>(BITRES+3); + nbAvailableBytes = IMAX(min_allowed,nbAvailableBytes); + nbAvailableBytes = IMIN(nbCompressedBytes,nbAvailableBytes); + + /* By how much did we "miss" the target on that frame */ + delta = target - vbr_rate; + + target=nbAvailableBytes<<(BITRES+3); + + /*If the frame is silent we don't adjust our drift, otherwise + the encoder will shoot to very high rates after hitting a + span of silence, but we do allow the bitres to refill. + This means that we'll undershoot our target in CVBR/VBR modes + on files with lots of silence. */ + if(silence) + { + nbAvailableBytes = 2; + target = 2*8<vbr_count < 970) + { + st->vbr_count++; + alpha = celt_rcp(SHL32(EXTEND32(st->vbr_count+20),16)); + } else + alpha = QCONST16(.001f,15); + /* How many bits have we used in excess of what we're allowed */ + if (st->constrained_vbr) + st->vbr_reservoir += target - vbr_rate; + /*printf ("%d\n", st->vbr_reservoir);*/ + + /* Compute the offset we need to apply in order to reach the target */ + if (st->constrained_vbr) + { + st->vbr_drift += (opus_int32)MULT16_32_Q15(alpha,(delta*(1<vbr_offset-st->vbr_drift); + st->vbr_offset = -st->vbr_drift; + } + /*printf ("%d\n", st->vbr_drift);*/ + + if (st->constrained_vbr && st->vbr_reservoir < 0) + { + /* We're under the min value -- increase rate */ + int adjust = (-st->vbr_reservoir)/(8<vbr_reservoir = 0; + /*printf ("+%d\n", adjust);*/ + } + nbCompressedBytes = IMIN(nbCompressedBytes,nbAvailableBytes); + /*printf("%d\n", nbCompressedBytes*50*8);*/ + /* This moves the raw bits to take into account the new compressed size */ + ec_enc_shrink(enc, nbCompressedBytes); + } + + /* Bit allocation */ + ALLOC(fine_quant, nbEBands, int); + ALLOC(pulses, nbEBands, int); + ALLOC(fine_priority, nbEBands, int); + + /* bits = packet size - where we are - safety*/ + bits = (((opus_int32)nbCompressedBytes*8)<=2&&bits>=((LM+2)<analysis.valid) + { + int min_bandwidth; + if (equiv_rate < (opus_int32)32000*C) + min_bandwidth = 13; + else if (equiv_rate < (opus_int32)48000*C) + min_bandwidth = 16; + else if (equiv_rate < (opus_int32)60000*C) + min_bandwidth = 18; + else if (equiv_rate < (opus_int32)80000*C) + min_bandwidth = 19; + else + min_bandwidth = 20; + signalBandwidth = IMAX(st->analysis.bandwidth, min_bandwidth); + } +#endif + if (st->lfe) + signalBandwidth = 1; + codedBands = clt_compute_allocation(mode, start, end, offsets, cap, + alloc_trim, &st->intensity, &dual_stereo, bits, &balance, pulses, + fine_quant, fine_priority, C, LM, enc, 1, st->lastCodedBands, signalBandwidth); + if (st->lastCodedBands) + st->lastCodedBands = IMIN(st->lastCodedBands+1,IMAX(st->lastCodedBands-1,codedBands)); + else + st->lastCodedBands = codedBands; + + quant_fine_energy(mode, start, end, oldBandE, error, fine_quant, enc, C); + + /* Residual quantisation */ + ALLOC(collapse_masks, C*nbEBands, unsigned char); + quant_all_bands(1, mode, start, end, X, C==2 ? X+N : NULL, collapse_masks, + bandE, pulses, shortBlocks, st->spread_decision, + dual_stereo, st->intensity, tf_res, nbCompressedBytes*(8<rng, st->complexity, st->arch, st->disable_inv); + + if (anti_collapse_rsv > 0) + { + anti_collapse_on = st->consec_transient<2; +#ifdef FUZZING + anti_collapse_on = rand()&0x1; +#endif + ec_enc_bits(enc, anti_collapse_on, 1); + } + quant_energy_finalise(mode, start, end, oldBandE, error, fine_quant, fine_priority, nbCompressedBytes*8-ec_tell(enc), enc, C); + OPUS_CLEAR(energyError, nbEBands*CC); + c=0; + do { + for (i=start;irng); + } + + c=0; do { + OPUS_MOVE(st->syn_mem[c], st->syn_mem[c]+N, 2*MAX_PERIOD-N+overlap/2); + } while (++csyn_mem[c]+2*MAX_PERIOD-N; + } while (++cupsample, silence, st->arch); + + c=0; do { + st->prefilter_period=IMAX(st->prefilter_period, COMBFILTER_MINPERIOD); + st->prefilter_period_old=IMAX(st->prefilter_period_old, COMBFILTER_MINPERIOD); + comb_filter(out_mem[c], out_mem[c], st->prefilter_period_old, st->prefilter_period, mode->shortMdctSize, + st->prefilter_gain_old, st->prefilter_gain, st->prefilter_tapset_old, st->prefilter_tapset, + mode->window, overlap); + if (LM!=0) + comb_filter(out_mem[c]+mode->shortMdctSize, out_mem[c]+mode->shortMdctSize, st->prefilter_period, pitch_index, N-mode->shortMdctSize, + st->prefilter_gain, gain1, st->prefilter_tapset, prefilter_tapset, + mode->window, overlap); + } while (++cupsample, mode->preemph, st->preemph_memD); + st->prefilter_period_old = st->prefilter_period; + st->prefilter_gain_old = st->prefilter_gain; + st->prefilter_tapset_old = st->prefilter_tapset; + } +#endif + + st->prefilter_period = pitch_index; + st->prefilter_gain = gain1; + st->prefilter_tapset = prefilter_tapset; +#ifdef RESYNTH + if (LM!=0) + { + st->prefilter_period_old = st->prefilter_period; + st->prefilter_gain_old = st->prefilter_gain; + st->prefilter_tapset_old = st->prefilter_tapset; + } +#endif + + if (CC==2&&C==1) { + OPUS_COPY(&oldBandE[nbEBands], oldBandE, nbEBands); + } + + if (!isTransient) + { + OPUS_COPY(oldLogE2, oldLogE, CC*nbEBands); + OPUS_COPY(oldLogE, oldBandE, CC*nbEBands); + } else { + for (i=0;iconsec_transient++; + else + st->consec_transient=0; + st->rng = enc->rng; + + /* If there's any room left (can only happen for very high rates), + it's already filled with zeros */ + ec_enc_done(enc); + +#ifdef CUSTOM_MODES + if (st->signalling) + nbCompressedBytes++; +#endif + + RESTORE_STACK; + if (ec_get_error(enc)) + return OPUS_INTERNAL_ERROR; + else + return nbCompressedBytes; +} + + +#ifdef CUSTOM_MODES + +#ifdef FIXED_POINT +int opus_custom_encode(CELTEncoder * OPUS_RESTRICT st, const opus_int16 * pcm, int frame_size, unsigned char *compressed, int nbCompressedBytes) +{ + return celt_encode_with_ec(st, pcm, frame_size, compressed, nbCompressedBytes, NULL); +} + +#ifndef DISABLE_FLOAT_API +int opus_custom_encode_float(CELTEncoder * OPUS_RESTRICT st, const float * pcm, int frame_size, unsigned char *compressed, int nbCompressedBytes) +{ + int j, ret, C, N; + VARDECL(opus_int16, in); + ALLOC_STACK; + + if (pcm==NULL) + return OPUS_BAD_ARG; + + C = st->channels; + N = frame_size; + ALLOC(in, C*N, opus_int16); + + for (j=0;jchannels; + N=frame_size; + ALLOC(in, C*N, celt_sig); + for (j=0;j10) + goto bad_arg; + st->complexity = value; + } + break; + case CELT_SET_START_BAND_REQUEST: + { + opus_int32 value = va_arg(ap, opus_int32); + if (value<0 || value>=st->mode->nbEBands) + goto bad_arg; + st->start = value; + } + break; + case CELT_SET_END_BAND_REQUEST: + { + opus_int32 value = va_arg(ap, opus_int32); + if (value<1 || value>st->mode->nbEBands) + goto bad_arg; + st->end = value; + } + break; + case CELT_SET_PREDICTION_REQUEST: + { + int value = va_arg(ap, opus_int32); + if (value<0 || value>2) + goto bad_arg; + st->disable_pf = value<=1; + st->force_intra = value==0; + } + break; + case OPUS_SET_PACKET_LOSS_PERC_REQUEST: + { + int value = va_arg(ap, opus_int32); + if (value<0 || value>100) + goto bad_arg; + st->loss_rate = value; + } + break; + case OPUS_SET_VBR_CONSTRAINT_REQUEST: + { + opus_int32 value = va_arg(ap, opus_int32); + st->constrained_vbr = value; + } + break; + case OPUS_SET_VBR_REQUEST: + { + opus_int32 value = va_arg(ap, opus_int32); + st->vbr = value; + } + break; + case OPUS_SET_BITRATE_REQUEST: + { + opus_int32 value = va_arg(ap, opus_int32); + if (value<=500 && value!=OPUS_BITRATE_MAX) + goto bad_arg; + value = IMIN(value, 260000*st->channels); + st->bitrate = value; + } + break; + case CELT_SET_CHANNELS_REQUEST: + { + opus_int32 value = va_arg(ap, opus_int32); + if (value<1 || value>2) + goto bad_arg; + st->stream_channels = value; + } + break; + case OPUS_SET_LSB_DEPTH_REQUEST: + { + opus_int32 value = va_arg(ap, opus_int32); + if (value<8 || value>24) + goto bad_arg; + st->lsb_depth=value; + } + break; + case OPUS_GET_LSB_DEPTH_REQUEST: + { + opus_int32 *value = va_arg(ap, opus_int32*); + *value=st->lsb_depth; + } + break; + case OPUS_SET_PHASE_INVERSION_DISABLED_REQUEST: + { + opus_int32 value = va_arg(ap, opus_int32); + if(value<0 || value>1) + { + goto bad_arg; + } + st->disable_inv = value; + } + break; + case OPUS_GET_PHASE_INVERSION_DISABLED_REQUEST: + { + opus_int32 *value = va_arg(ap, opus_int32*); + if (!value) + { + goto bad_arg; + } + *value = st->disable_inv; + } + break; + case OPUS_RESET_STATE: + { + int i; + opus_val16 *oldBandE, *oldLogE, *oldLogE2; + oldBandE = (opus_val16*)(st->in_mem+st->channels*(st->mode->overlap+COMBFILTER_MAXPERIOD)); + oldLogE = oldBandE + st->channels*st->mode->nbEBands; + oldLogE2 = oldLogE + st->channels*st->mode->nbEBands; + OPUS_CLEAR((char*)&st->ENCODER_RESET_START, + opus_custom_encoder_get_size(st->mode, st->channels)- + ((char*)&st->ENCODER_RESET_START - (char*)st)); + for (i=0;ichannels*st->mode->nbEBands;i++) + oldLogE[i]=oldLogE2[i]=-QCONST16(28.f,DB_SHIFT); + st->vbr_offset = 0; + st->delayedIntra = 1; + st->spread_decision = SPREAD_NORMAL; + st->tonal_average = 256; + st->hf_average = 0; + st->tapset_decision = 0; + } + break; +#ifdef CUSTOM_MODES + case CELT_SET_INPUT_CLIPPING_REQUEST: + { + opus_int32 value = va_arg(ap, opus_int32); + st->clip = value; + } + break; +#endif + case CELT_SET_SIGNALLING_REQUEST: + { + opus_int32 value = va_arg(ap, opus_int32); + st->signalling = value; + } + break; + case CELT_SET_ANALYSIS_REQUEST: + { + AnalysisInfo *info = va_arg(ap, AnalysisInfo *); + if (info) + OPUS_COPY(&st->analysis, info, 1); + } + break; + case CELT_SET_SILK_INFO_REQUEST: + { + SILKInfo *info = va_arg(ap, SILKInfo *); + if (info) + OPUS_COPY(&st->silk_info, info, 1); + } + break; + case CELT_GET_MODE_REQUEST: + { + const CELTMode ** value = va_arg(ap, const CELTMode**); + if (value==0) + goto bad_arg; + *value=st->mode; + } + break; + case OPUS_GET_FINAL_RANGE_REQUEST: + { + opus_uint32 * value = va_arg(ap, opus_uint32 *); + if (value==0) + goto bad_arg; + *value=st->rng; + } + break; + case OPUS_SET_LFE_REQUEST: + { + opus_int32 value = va_arg(ap, opus_int32); + st->lfe = value; + } + break; + case OPUS_SET_ENERGY_MASK_REQUEST: + { + opus_val16 *value = va_arg(ap, opus_val16*); + st->energy_mask = value; + } + break; + default: + goto bad_request; + } + va_end(ap); + return OPUS_OK; +bad_arg: + va_end(ap); + return OPUS_BAD_ARG; +bad_request: + va_end(ap); + return OPUS_UNIMPLEMENTED; +} diff --git a/components/opus/libopus/celt/celt_lpc.c b/components/opus/libopus/celt/celt_lpc.c new file mode 100644 index 0000000..8ecb693 --- /dev/null +++ b/components/opus/libopus/celt/celt_lpc.c @@ -0,0 +1,296 @@ +/* Copyright (c) 2009-2010 Xiph.Org Foundation + Written by Jean-Marc Valin */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "celt_lpc.h" +#include "stack_alloc.h" +#include "mathops.h" +#include "pitch.h" + +void _celt_lpc( + opus_val16 *_lpc, /* out: [0...p-1] LPC coefficients */ +const opus_val32 *ac, /* in: [0...p] autocorrelation values */ +int p +) +{ + int i, j; + opus_val32 r; + opus_val32 error = ac[0]; +#ifdef FIXED_POINT + opus_val32 lpc[LPC_ORDER]; +#else + float *lpc = _lpc; +#endif + + OPUS_CLEAR(lpc, p); + if (ac[0] != 0) + { + for (i = 0; i < p; i++) { + /* Sum up this iteration's reflection coefficient */ + opus_val32 rr = 0; + for (j = 0; j < i; j++) + rr += MULT32_32_Q31(lpc[j],ac[i - j]); + rr += SHR32(ac[i + 1],3); + r = -frac_div32(SHL32(rr,3), error); + /* Update LPC coefficients and total error */ + lpc[i] = SHR32(r,3); + for (j = 0; j < (i+1)>>1; j++) + { + opus_val32 tmp1, tmp2; + tmp1 = lpc[j]; + tmp2 = lpc[i-1-j]; + lpc[j] = tmp1 + MULT32_32_Q31(r,tmp2); + lpc[i-1-j] = tmp2 + MULT32_32_Q31(r,tmp1); + } + + error = error - MULT32_32_Q31(MULT32_32_Q31(r,r),error); + /* Bail out once we get 30 dB gain */ +#ifdef FIXED_POINT + if (error=1;j--) + { + mem[j]=mem[j-1]; + } + mem[0] = SROUND16(sum, SIG_SHIFT); + _y[i] = sum; + } +#else + int i,j; + VARDECL(opus_val16, rden); + VARDECL(opus_val16, y); + SAVE_STACK; + + celt_assert((ord&3)==0); + ALLOC(rden, ord, opus_val16); + ALLOC(y, N+ord, opus_val16); + for(i=0;i0); + celt_assert(overlap>=0); + if (overlap == 0) + { + xptr = x; + } else { + for (i=0;i0) + { + for(i=0;i= 536870912) + { + int shift2=1; + if (ac[0] >= 1073741824) + shift2++; + for (i=0;i<=lag;i++) + ac[i] = SHR32(ac[i], shift2); + shift += shift2; + } +#endif + + RESTORE_STACK; + return shift; +} diff --git a/components/opus/libopus/celt/celt_lpc.h b/components/opus/libopus/celt/celt_lpc.h new file mode 100644 index 0000000..a4c5fd6 --- /dev/null +++ b/components/opus/libopus/celt/celt_lpc.h @@ -0,0 +1,66 @@ +/* Copyright (c) 2009-2010 Xiph.Org Foundation + Written by Jean-Marc Valin */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifndef PLC_H +#define PLC_H + +#include "arch.h" +#include "cpu_support.h" + +#if defined(OPUS_X86_MAY_HAVE_SSE4_1) +#include "x86/celt_lpc_sse.h" +#endif + +#define LPC_ORDER 24 + +void _celt_lpc(opus_val16 *_lpc, const opus_val32 *ac, int p); + +void celt_fir_c( + const opus_val16 *x, + const opus_val16 *num, + opus_val16 *y, + int N, + int ord, + int arch); + +#if !defined(OVERRIDE_CELT_FIR) +#define celt_fir(x, num, y, N, ord, arch) \ + (celt_fir_c(x, num, y, N, ord, arch)) +#endif + +void celt_iir(const opus_val32 *x, + const opus_val16 *den, + opus_val32 *y, + int N, + int ord, + opus_val16 *mem, + int arch); + +int _celt_autocorr(const opus_val16 *x, opus_val32 *ac, + const opus_val16 *window, int overlap, int lag, int n, int arch); + +#endif /* PLC_H */ diff --git a/components/opus/libopus/celt/cpu_support.h b/components/opus/libopus/celt/cpu_support.h new file mode 100644 index 0000000..68fc606 --- /dev/null +++ b/components/opus/libopus/celt/cpu_support.h @@ -0,0 +1,70 @@ +/* Copyright (c) 2010 Xiph.Org Foundation + * Copyright (c) 2013 Parrot */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifndef CPU_SUPPORT_H +#define CPU_SUPPORT_H + +#include "opus_types.h" +#include "opus_defines.h" + +#if defined(OPUS_HAVE_RTCD) && \ + (defined(OPUS_ARM_ASM) || defined(OPUS_ARM_MAY_HAVE_NEON_INTR)) +#include "arm/armcpu.h" + +/* We currently support 4 ARM variants: + * arch[0] -> ARMv4 + * arch[1] -> ARMv5E + * arch[2] -> ARMv6 + * arch[3] -> NEON + */ +#define OPUS_ARCHMASK 3 + +#elif (defined(OPUS_X86_MAY_HAVE_SSE) && !defined(OPUS_X86_PRESUME_SSE)) || \ + (defined(OPUS_X86_MAY_HAVE_SSE2) && !defined(OPUS_X86_PRESUME_SSE2)) || \ + (defined(OPUS_X86_MAY_HAVE_SSE4_1) && !defined(OPUS_X86_PRESUME_SSE4_1)) || \ + (defined(OPUS_X86_MAY_HAVE_AVX) && !defined(OPUS_X86_PRESUME_AVX)) + +#include "x86/x86cpu.h" +/* We currently support 5 x86 variants: + * arch[0] -> non-sse + * arch[1] -> sse + * arch[2] -> sse2 + * arch[3] -> sse4.1 + * arch[4] -> avx + */ +#define OPUS_ARCHMASK 7 +int opus_select_arch(void); + +#else +#define OPUS_ARCHMASK 0 + +static OPUS_INLINE int opus_select_arch(void) +{ + return 0; +} +#endif +#endif diff --git a/components/opus/libopus/celt/cwrs.c b/components/opus/libopus/celt/cwrs.c new file mode 100644 index 0000000..a552e4f --- /dev/null +++ b/components/opus/libopus/celt/cwrs.c @@ -0,0 +1,715 @@ +/* Copyright (c) 2007-2008 CSIRO + Copyright (c) 2007-2009 Xiph.Org Foundation + Copyright (c) 2007-2009 Timothy B. Terriberry + Written by Timothy B. Terriberry and Jean-Marc Valin */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "os_support.h" +#include "cwrs.h" +#include "mathops.h" +#include "arch.h" + +#ifdef CUSTOM_MODES + +/*Guaranteed to return a conservatively large estimate of the binary logarithm + with frac bits of fractional precision. + Tested for all possible 32-bit inputs with frac=4, where the maximum + overestimation is 0.06254243 bits.*/ +int log2_frac(opus_uint32 val, int frac) +{ + int l; + l=EC_ILOG(val); + if(val&(val-1)){ + /*This is (val>>l-16), but guaranteed to round up, even if adding a bias + before the shift would cause overflow (e.g., for 0xFFFFxxxx). + Doesn't work for val=0, but that case fails the test above.*/ + if(l>16)val=((val-1)>>(l-16))+1; + else val<<=16-l; + l=(l-1)<>16); + l+=b<>b; + val=(val*val+0x7FFF)>>15; + } + while(frac-->0); + /*If val is not exactly 0x8000, then we have to round up the remainder.*/ + return l+(val>0x8000); + } + /*Exact powers of two require no rounding.*/ + else return (l-1)<0 ? sum(k=1...K,2**k*choose(N,k)*choose(K-1,k-1)) : 1, + where choose() is the binomial function. + A table of values for N<10 and K<10 looks like: + V[10][10] = { + {1, 0, 0, 0, 0, 0, 0, 0, 0, 0}, + {1, 2, 2, 2, 2, 2, 2, 2, 2, 2}, + {1, 4, 8, 12, 16, 20, 24, 28, 32, 36}, + {1, 6, 18, 38, 66, 102, 146, 198, 258, 326}, + {1, 8, 32, 88, 192, 360, 608, 952, 1408, 1992}, + {1, 10, 50, 170, 450, 1002, 1970, 3530, 5890, 9290}, + {1, 12, 72, 292, 912, 2364, 5336, 10836, 20256, 35436}, + {1, 14, 98, 462, 1666, 4942, 12642, 28814, 59906, 115598}, + {1, 16, 128, 688, 2816, 9424, 27008, 68464, 157184, 332688}, + {1, 18, 162, 978, 4482, 16722, 53154, 148626, 374274, 864146} + }; + + U(N,K) = the number of such combinations wherein N-1 objects are taken at + most K-1 at a time. + This is given by + U(N,K) = sum(k=0...K-1,V(N-1,k)) + = K>0 ? (V(N-1,K-1) + V(N,K-1))/2 : 0. + The latter expression also makes clear that U(N,K) is half the number of such + combinations wherein the first object is taken at least once. + Although it may not be clear from either of these definitions, U(N,K) is the + natural function to work with when enumerating the pulse vector codebooks, + not V(N,K). + U(N,K) is not well-defined for N=0, but with the extension + U(0,K) = K>0 ? 0 : 1, + the function becomes symmetric: U(N,K) = U(K,N), with a similar table: + U[10][10] = { + {1, 0, 0, 0, 0, 0, 0, 0, 0, 0}, + {0, 1, 1, 1, 1, 1, 1, 1, 1, 1}, + {0, 1, 3, 5, 7, 9, 11, 13, 15, 17}, + {0, 1, 5, 13, 25, 41, 61, 85, 113, 145}, + {0, 1, 7, 25, 63, 129, 231, 377, 575, 833}, + {0, 1, 9, 41, 129, 321, 681, 1289, 2241, 3649}, + {0, 1, 11, 61, 231, 681, 1683, 3653, 7183, 13073}, + {0, 1, 13, 85, 377, 1289, 3653, 8989, 19825, 40081}, + {0, 1, 15, 113, 575, 2241, 7183, 19825, 48639, 108545}, + {0, 1, 17, 145, 833, 3649, 13073, 40081, 108545, 265729} + }; + + With this extension, V(N,K) may be written in terms of U(N,K): + V(N,K) = U(N,K) + U(N,K+1) + for all N>=0, K>=0. + Thus U(N,K+1) represents the number of combinations where the first element + is positive or zero, and U(N,K) represents the number of combinations where + it is negative. + With a large enough table of U(N,K) values, we could write O(N) encoding + and O(min(N*log(K),N+K)) decoding routines, but such a table would be + prohibitively large for small embedded devices (K may be as large as 32767 + for small N, and N may be as large as 200). + + Both functions obey the same recurrence relation: + V(N,K) = V(N-1,K) + V(N,K-1) + V(N-1,K-1), + U(N,K) = U(N-1,K) + U(N,K-1) + U(N-1,K-1), + for all N>0, K>0, with different initial conditions at N=0 or K=0. + This allows us to construct a row of one of the tables above given the + previous row or the next row. + Thus we can derive O(NK) encoding and decoding routines with O(K) memory + using only addition and subtraction. + + When encoding, we build up from the U(2,K) row and work our way forwards. + When decoding, we need to start at the U(N,K) row and work our way backwards, + which requires a means of computing U(N,K). + U(N,K) may be computed from two previous values with the same N: + U(N,K) = ((2*N-1)*U(N,K-1) - U(N,K-2))/(K-1) + U(N,K-2) + for all N>1, and since U(N,K) is symmetric, a similar relation holds for two + previous values with the same K: + U(N,K>1) = ((2*K-1)*U(N-1,K) - U(N-2,K))/(N-1) + U(N-2,K) + for all K>1. + This allows us to construct an arbitrary row of the U(N,K) table by starting + with the first two values, which are constants. + This saves roughly 2/3 the work in our O(NK) decoding routine, but costs O(K) + multiplications. + Similar relations can be derived for V(N,K), but are not used here. + + For N>0 and K>0, U(N,K) and V(N,K) take on the form of an (N-1)-degree + polynomial for fixed N. + The first few are + U(1,K) = 1, + U(2,K) = 2*K-1, + U(3,K) = (2*K-2)*K+1, + U(4,K) = (((4*K-6)*K+8)*K-3)/3, + U(5,K) = ((((2*K-4)*K+10)*K-8)*K+3)/3, + and + V(1,K) = 2, + V(2,K) = 4*K, + V(3,K) = 4*K*K+2, + V(4,K) = 8*(K*K+2)*K/3, + V(5,K) = ((4*K*K+20)*K*K+6)/3, + for all K>0. + This allows us to derive O(N) encoding and O(N*log(K)) decoding routines for + small N (and indeed decoding is also O(N) for N<3). + + @ARTICLE{Fis86, + author="Thomas R. Fischer", + title="A Pyramid Vector Quantizer", + journal="IEEE Transactions on Information Theory", + volume="IT-32", + number=4, + pages="568--583", + month=Jul, + year=1986 + }*/ + +#if !defined(SMALL_FOOTPRINT) + +/*U(N,K) = U(K,N) := N>0?K>0?U(N-1,K)+U(N,K-1)+U(N-1,K-1):0:K>0?1:0*/ +# define CELT_PVQ_U(_n,_k) (CELT_PVQ_U_ROW[IMIN(_n,_k)][IMAX(_n,_k)]) +/*V(N,K) := U(N,K)+U(N,K+1) = the number of PVQ codewords for a band of size N + with K pulses allocated to it.*/ +# define CELT_PVQ_V(_n,_k) (CELT_PVQ_U(_n,_k)+CELT_PVQ_U(_n,(_k)+1)) + +/*For each V(N,K) supported, we will access element U(min(N,K+1),max(N,K+1)). + Thus, the number of entries in row I is the larger of the maximum number of + pulses we will ever allocate for a given N=I (K=128, or however many fit in + 32 bits, whichever is smaller), plus one, and the maximum N for which + K=I-1 pulses fit in 32 bits. + The largest band size in an Opus Custom mode is 208. + Otherwise, we can limit things to the set of N which can be achieved by + splitting a band from a standard Opus mode: 176, 144, 96, 88, 72, 64, 48, + 44, 36, 32, 24, 22, 18, 16, 8, 4, 2).*/ +#if defined(CUSTOM_MODES) +static const opus_uint32 CELT_PVQ_U_DATA[1488]={ +#else +static const opus_uint32 CELT_PVQ_U_DATA[1272]={ +#endif + /*N=0, K=0...176:*/ + 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, +#if defined(CUSTOM_MODES) + /*...208:*/ + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, +#endif + /*N=1, K=1...176:*/ + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, +#if defined(CUSTOM_MODES) + /*...208:*/ + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, +#endif + /*N=2, K=2...176:*/ + 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, + 43, 45, 47, 49, 51, 53, 55, 57, 59, 61, 63, 65, 67, 69, 71, 73, 75, 77, 79, + 81, 83, 85, 87, 89, 91, 93, 95, 97, 99, 101, 103, 105, 107, 109, 111, 113, + 115, 117, 119, 121, 123, 125, 127, 129, 131, 133, 135, 137, 139, 141, 143, + 145, 147, 149, 151, 153, 155, 157, 159, 161, 163, 165, 167, 169, 171, 173, + 175, 177, 179, 181, 183, 185, 187, 189, 191, 193, 195, 197, 199, 201, 203, + 205, 207, 209, 211, 213, 215, 217, 219, 221, 223, 225, 227, 229, 231, 233, + 235, 237, 239, 241, 243, 245, 247, 249, 251, 253, 255, 257, 259, 261, 263, + 265, 267, 269, 271, 273, 275, 277, 279, 281, 283, 285, 287, 289, 291, 293, + 295, 297, 299, 301, 303, 305, 307, 309, 311, 313, 315, 317, 319, 321, 323, + 325, 327, 329, 331, 333, 335, 337, 339, 341, 343, 345, 347, 349, 351, +#if defined(CUSTOM_MODES) + /*...208:*/ + 353, 355, 357, 359, 361, 363, 365, 367, 369, 371, 373, 375, 377, 379, 381, + 383, 385, 387, 389, 391, 393, 395, 397, 399, 401, 403, 405, 407, 409, 411, + 413, 415, +#endif + /*N=3, K=3...176:*/ + 13, 25, 41, 61, 85, 113, 145, 181, 221, 265, 313, 365, 421, 481, 545, 613, + 685, 761, 841, 925, 1013, 1105, 1201, 1301, 1405, 1513, 1625, 1741, 1861, + 1985, 2113, 2245, 2381, 2521, 2665, 2813, 2965, 3121, 3281, 3445, 3613, 3785, + 3961, 4141, 4325, 4513, 4705, 4901, 5101, 5305, 5513, 5725, 5941, 6161, 6385, + 6613, 6845, 7081, 7321, 7565, 7813, 8065, 8321, 8581, 8845, 9113, 9385, 9661, + 9941, 10225, 10513, 10805, 11101, 11401, 11705, 12013, 12325, 12641, 12961, + 13285, 13613, 13945, 14281, 14621, 14965, 15313, 15665, 16021, 16381, 16745, + 17113, 17485, 17861, 18241, 18625, 19013, 19405, 19801, 20201, 20605, 21013, + 21425, 21841, 22261, 22685, 23113, 23545, 23981, 24421, 24865, 25313, 25765, + 26221, 26681, 27145, 27613, 28085, 28561, 29041, 29525, 30013, 30505, 31001, + 31501, 32005, 32513, 33025, 33541, 34061, 34585, 35113, 35645, 36181, 36721, + 37265, 37813, 38365, 38921, 39481, 40045, 40613, 41185, 41761, 42341, 42925, + 43513, 44105, 44701, 45301, 45905, 46513, 47125, 47741, 48361, 48985, 49613, + 50245, 50881, 51521, 52165, 52813, 53465, 54121, 54781, 55445, 56113, 56785, + 57461, 58141, 58825, 59513, 60205, 60901, 61601, +#if defined(CUSTOM_MODES) + /*...208:*/ + 62305, 63013, 63725, 64441, 65161, 65885, 66613, 67345, 68081, 68821, 69565, + 70313, 71065, 71821, 72581, 73345, 74113, 74885, 75661, 76441, 77225, 78013, + 78805, 79601, 80401, 81205, 82013, 82825, 83641, 84461, 85285, 86113, +#endif + /*N=4, K=4...176:*/ + 63, 129, 231, 377, 575, 833, 1159, 1561, 2047, 2625, 3303, 4089, 4991, 6017, + 7175, 8473, 9919, 11521, 13287, 15225, 17343, 19649, 22151, 24857, 27775, + 30913, 34279, 37881, 41727, 45825, 50183, 54809, 59711, 64897, 70375, 76153, + 82239, 88641, 95367, 102425, 109823, 117569, 125671, 134137, 142975, 152193, + 161799, 171801, 182207, 193025, 204263, 215929, 228031, 240577, 253575, + 267033, 280959, 295361, 310247, 325625, 341503, 357889, 374791, 392217, + 410175, 428673, 447719, 467321, 487487, 508225, 529543, 551449, 573951, + 597057, 620775, 645113, 670079, 695681, 721927, 748825, 776383, 804609, + 833511, 863097, 893375, 924353, 956039, 988441, 1021567, 1055425, 1090023, + 1125369, 1161471, 1198337, 1235975, 1274393, 1313599, 1353601, 1394407, + 1436025, 1478463, 1521729, 1565831, 1610777, 1656575, 1703233, 1750759, + 1799161, 1848447, 1898625, 1949703, 2001689, 2054591, 2108417, 2163175, + 2218873, 2275519, 2333121, 2391687, 2451225, 2511743, 2573249, 2635751, + 2699257, 2763775, 2829313, 2895879, 2963481, 3032127, 3101825, 3172583, + 3244409, 3317311, 3391297, 3466375, 3542553, 3619839, 3698241, 3777767, + 3858425, 3940223, 4023169, 4107271, 4192537, 4278975, 4366593, 4455399, + 4545401, 4636607, 4729025, 4822663, 4917529, 5013631, 5110977, 5209575, + 5309433, 5410559, 5512961, 5616647, 5721625, 5827903, 5935489, 6044391, + 6154617, 6266175, 6379073, 6493319, 6608921, 6725887, 6844225, 6963943, + 7085049, 7207551, +#if defined(CUSTOM_MODES) + /*...208:*/ + 7331457, 7456775, 7583513, 7711679, 7841281, 7972327, 8104825, 8238783, + 8374209, 8511111, 8649497, 8789375, 8930753, 9073639, 9218041, 9363967, + 9511425, 9660423, 9810969, 9963071, 10116737, 10271975, 10428793, 10587199, + 10747201, 10908807, 11072025, 11236863, 11403329, 11571431, 11741177, + 11912575, +#endif + /*N=5, K=5...176:*/ + 321, 681, 1289, 2241, 3649, 5641, 8361, 11969, 16641, 22569, 29961, 39041, + 50049, 63241, 78889, 97281, 118721, 143529, 172041, 204609, 241601, 283401, + 330409, 383041, 441729, 506921, 579081, 658689, 746241, 842249, 947241, + 1061761, 1186369, 1321641, 1468169, 1626561, 1797441, 1981449, 2179241, + 2391489, 2618881, 2862121, 3121929, 3399041, 3694209, 4008201, 4341801, + 4695809, 5071041, 5468329, 5888521, 6332481, 6801089, 7295241, 7815849, + 8363841, 8940161, 9545769, 10181641, 10848769, 11548161, 12280841, 13047849, + 13850241, 14689089, 15565481, 16480521, 17435329, 18431041, 19468809, + 20549801, 21675201, 22846209, 24064041, 25329929, 26645121, 28010881, + 29428489, 30899241, 32424449, 34005441, 35643561, 37340169, 39096641, + 40914369, 42794761, 44739241, 46749249, 48826241, 50971689, 53187081, + 55473921, 57833729, 60268041, 62778409, 65366401, 68033601, 70781609, + 73612041, 76526529, 79526721, 82614281, 85790889, 89058241, 92418049, + 95872041, 99421961, 103069569, 106816641, 110664969, 114616361, 118672641, + 122835649, 127107241, 131489289, 135983681, 140592321, 145317129, 150160041, + 155123009, 160208001, 165417001, 170752009, 176215041, 181808129, 187533321, + 193392681, 199388289, 205522241, 211796649, 218213641, 224775361, 231483969, + 238341641, 245350569, 252512961, 259831041, 267307049, 274943241, 282741889, + 290705281, 298835721, 307135529, 315607041, 324252609, 333074601, 342075401, + 351257409, 360623041, 370174729, 379914921, 389846081, 399970689, 410291241, + 420810249, 431530241, 442453761, 453583369, 464921641, 476471169, 488234561, + 500214441, 512413449, 524834241, 537479489, 550351881, 563454121, 576788929, + 590359041, 604167209, 618216201, 632508801, +#if defined(CUSTOM_MODES) + /*...208:*/ + 647047809, 661836041, 676876329, 692171521, 707724481, 723538089, 739615241, + 755958849, 772571841, 789457161, 806617769, 824056641, 841776769, 859781161, + 878072841, 896654849, 915530241, 934702089, 954173481, 973947521, 994027329, + 1014416041, 1035116809, 1056132801, 1077467201, 1099123209, 1121104041, + 1143412929, 1166053121, 1189027881, 1212340489, 1235994241, +#endif + /*N=6, K=6...96:*/ + 1683, 3653, 7183, 13073, 22363, 36365, 56695, 85305, 124515, 177045, 246047, + 335137, 448427, 590557, 766727, 982729, 1244979, 1560549, 1937199, 2383409, + 2908411, 3522221, 4235671, 5060441, 6009091, 7095093, 8332863, 9737793, + 11326283, 13115773, 15124775, 17372905, 19880915, 22670725, 25765455, + 29189457, 32968347, 37129037, 41699767, 46710137, 52191139, 58175189, + 64696159, 71789409, 79491819, 87841821, 96879431, 106646281, 117185651, + 128542501, 140763503, 153897073, 167993403, 183104493, 199284183, 216588185, + 235074115, 254801525, 275831935, 298228865, 322057867, 347386557, 374284647, + 402823977, 433078547, 465124549, 499040399, 534906769, 572806619, 612825229, + 655050231, 699571641, 746481891, 795875861, 847850911, 902506913, 959946283, + 1020274013, 1083597703, 1150027593, 1219676595, 1292660325, 1369097135, + 1449108145, 1532817275, 1620351277, 1711839767, 1807415257, 1907213187, + 2011371957, 2120032959, +#if defined(CUSTOM_MODES) + /*...109:*/ + 2233340609U, 2351442379U, 2474488829U, 2602633639U, 2736033641U, 2874848851U, + 3019242501U, 3169381071U, 3325434321U, 3487575323U, 3655980493U, 3830829623U, + 4012305913U, +#endif + /*N=7, K=7...54*/ + 8989, 19825, 40081, 75517, 134245, 227305, 369305, 579125, 880685, 1303777, + 1884961, 2668525, 3707509, 5064793, 6814249, 9041957, 11847485, 15345233, + 19665841, 24957661, 31388293, 39146185, 48442297, 59511829, 72616013, + 88043969, 106114625, 127178701, 151620757, 179861305, 212358985, 249612805, + 292164445, 340600625, 395555537, 457713341, 527810725, 606639529, 695049433, + 793950709, 904317037, 1027188385, 1163673953, 1314955181, 1482288821, + 1667010073, 1870535785, 2094367717, +#if defined(CUSTOM_MODES) + /*...60:*/ + 2340095869U, 2609401873U, 2904062449U, 3225952925U, 3577050821U, 3959439497U, +#endif + /*N=8, K=8...37*/ + 48639, 108545, 224143, 433905, 795455, 1392065, 2340495, 3800305, 5984767, + 9173505, 13726991, 20103025, 28875327, 40754369, 56610575, 77500017, + 104692735, 139703809, 184327311, 240673265, 311207743, 398796225, 506750351, + 638878193, 799538175, 993696769, 1226990095, 1505789553, 1837271615, + 2229491905U, +#if defined(CUSTOM_MODES) + /*...40:*/ + 2691463695U, 3233240945U, 3866006015U, +#endif + /*N=9, K=9...28:*/ + 265729, 598417, 1256465, 2485825, 4673345, 8405905, 14546705, 24331777, + 39490049, 62390545, 96220561, 145198913, 214828609, 312193553, 446304145, + 628496897, 872893441, 1196924561, 1621925137, 2173806145U, +#if defined(CUSTOM_MODES) + /*...29:*/ + 2883810113U, +#endif + /*N=10, K=10...24:*/ + 1462563, 3317445, 7059735, 14218905, 27298155, 50250765, 89129247, 152951073, + 254831667, 413442773, 654862247, 1014889769, 1541911931, 2300409629U, + 3375210671U, + /*N=11, K=11...19:*/ + 8097453, 18474633, 39753273, 81270333, 158819253, 298199265, 540279585, + 948062325, 1616336765, +#if defined(CUSTOM_MODES) + /*...20:*/ + 2684641785U, +#endif + /*N=12, K=12...18:*/ + 45046719, 103274625, 224298231, 464387817, 921406335, 1759885185, + 3248227095U, + /*N=13, K=13...16:*/ + 251595969, 579168825, 1267854873, 2653649025U, + /*N=14, K=14:*/ + 1409933619 +}; + +#if defined(CUSTOM_MODES) +static const opus_uint32 *const CELT_PVQ_U_ROW[15]={ + CELT_PVQ_U_DATA+ 0,CELT_PVQ_U_DATA+ 208,CELT_PVQ_U_DATA+ 415, + CELT_PVQ_U_DATA+ 621,CELT_PVQ_U_DATA+ 826,CELT_PVQ_U_DATA+1030, + CELT_PVQ_U_DATA+1233,CELT_PVQ_U_DATA+1336,CELT_PVQ_U_DATA+1389, + CELT_PVQ_U_DATA+1421,CELT_PVQ_U_DATA+1441,CELT_PVQ_U_DATA+1455, + CELT_PVQ_U_DATA+1464,CELT_PVQ_U_DATA+1470,CELT_PVQ_U_DATA+1473 +}; +#else +static const opus_uint32 *const CELT_PVQ_U_ROW[15]={ + CELT_PVQ_U_DATA+ 0,CELT_PVQ_U_DATA+ 176,CELT_PVQ_U_DATA+ 351, + CELT_PVQ_U_DATA+ 525,CELT_PVQ_U_DATA+ 698,CELT_PVQ_U_DATA+ 870, + CELT_PVQ_U_DATA+1041,CELT_PVQ_U_DATA+1131,CELT_PVQ_U_DATA+1178, + CELT_PVQ_U_DATA+1207,CELT_PVQ_U_DATA+1226,CELT_PVQ_U_DATA+1240, + CELT_PVQ_U_DATA+1248,CELT_PVQ_U_DATA+1254,CELT_PVQ_U_DATA+1257 +}; +#endif + +#if defined(CUSTOM_MODES) +void get_required_bits(opus_int16 *_bits,int _n,int _maxk,int _frac){ + int k; + /*_maxk==0 => there's nothing to do.*/ + celt_assert(_maxk>0); + _bits[0]=0; + for(k=1;k<=_maxk;k++)_bits[k]=log2_frac(CELT_PVQ_V(_n,k),_frac); +} +#endif + +static opus_uint32 icwrs(int _n,const int *_y){ + opus_uint32 i; + int j; + int k; + celt_assert(_n>=2); + j=_n-1; + i=_y[j]<0; + k=abs(_y[j]); + do{ + j--; + i+=CELT_PVQ_U(_n-j,k); + k+=abs(_y[j]); + if(_y[j]<0)i+=CELT_PVQ_U(_n-j,k+1); + } + while(j>0); + return i; +} + +void encode_pulses(const int *_y,int _n,int _k,ec_enc *_enc){ + celt_assert(_k>0); + ec_enc_uint(_enc,icwrs(_n,_y),CELT_PVQ_V(_n,_k)); +} + +static opus_val32 cwrsi(int _n,int _k,opus_uint32 _i,int *_y){ + opus_uint32 p; + int s; + int k0; + opus_int16 val; + opus_val32 yy=0; + celt_assert(_k>0); + celt_assert(_n>1); + while(_n>2){ + opus_uint32 q; + /*Lots of pulses case:*/ + if(_k>=_n){ + const opus_uint32 *row; + row=CELT_PVQ_U_ROW[_n]; + /*Are the pulses in this dimension negative?*/ + p=row[_k+1]; + s=-(_i>=p); + _i-=p&s; + /*Count how many pulses were placed in this dimension.*/ + k0=_k; + q=row[_n]; + if(q>_i){ + celt_sig_assert(p>q); + _k=_n; + do p=CELT_PVQ_U_ROW[--_k][_n]; + while(p>_i); + } + else for(p=row[_k];p>_i;p=row[_k])_k--; + _i-=p; + val=(k0-_k+s)^s; + *_y++=val; + yy=MAC16_16(yy,val,val); + } + /*Lots of dimensions case:*/ + else{ + /*Are there any pulses in this dimension at all?*/ + p=CELT_PVQ_U_ROW[_k][_n]; + q=CELT_PVQ_U_ROW[_k+1][_n]; + if(p<=_i&&_i=q); + _i-=q&s; + /*Count how many pulses were placed in this dimension.*/ + k0=_k; + do p=CELT_PVQ_U_ROW[--_k][_n]; + while(p>_i); + _i-=p; + val=(k0-_k+s)^s; + *_y++=val; + yy=MAC16_16(yy,val,val); + } + } + _n--; + } + /*_n==2*/ + p=2*_k+1; + s=-(_i>=p); + _i-=p&s; + k0=_k; + _k=(_i+1)>>1; + if(_k)_i-=2*_k-1; + val=(k0-_k+s)^s; + *_y++=val; + yy=MAC16_16(yy,val,val); + /*_n==1*/ + s=-(int)_i; + val=(_k+s)^s; + *_y=val; + yy=MAC16_16(yy,val,val); + return yy; +} + +opus_val32 decode_pulses(int *_y,int _n,int _k,ec_dec *_dec){ + return cwrsi(_n,_k,ec_dec_uint(_dec,CELT_PVQ_V(_n,_k)),_y); +} + +#else /* SMALL_FOOTPRINT */ + +/*Computes the next row/column of any recurrence that obeys the relation + u[i][j]=u[i-1][j]+u[i][j-1]+u[i-1][j-1]. + _ui0 is the base case for the new row/column.*/ +static OPUS_INLINE void unext(opus_uint32 *_ui,unsigned _len,opus_uint32 _ui0){ + opus_uint32 ui1; + unsigned j; + /*This do-while will overrun the array if we don't have storage for at least + 2 values.*/ + j=1; do { + ui1=UADD32(UADD32(_ui[j],_ui[j-1]),_ui0); + _ui[j-1]=_ui0; + _ui0=ui1; + } while (++j<_len); + _ui[j-1]=_ui0; +} + +/*Computes the previous row/column of any recurrence that obeys the relation + u[i-1][j]=u[i][j]-u[i][j-1]-u[i-1][j-1]. + _ui0 is the base case for the new row/column.*/ +static OPUS_INLINE void uprev(opus_uint32 *_ui,unsigned _n,opus_uint32 _ui0){ + opus_uint32 ui1; + unsigned j; + /*This do-while will overrun the array if we don't have storage for at least + 2 values.*/ + j=1; do { + ui1=USUB32(USUB32(_ui[j],_ui[j-1]),_ui0); + _ui[j-1]=_ui0; + _ui0=ui1; + } while (++j<_n); + _ui[j-1]=_ui0; +} + +/*Compute V(_n,_k), as well as U(_n,0..._k+1). + _u: On exit, _u[i] contains U(_n,i) for i in [0..._k+1].*/ +static opus_uint32 ncwrs_urow(unsigned _n,unsigned _k,opus_uint32 *_u){ + opus_uint32 um2; + unsigned len; + unsigned k; + len=_k+2; + /*We require storage at least 3 values (e.g., _k>0).*/ + celt_assert(len>=3); + _u[0]=0; + _u[1]=um2=1; + /*If _n==0, _u[0] should be 1 and the rest should be 0.*/ + /*If _n==1, _u[i] should be 1 for i>1.*/ + celt_assert(_n>=2); + /*If _k==0, the following do-while loop will overflow the buffer.*/ + celt_assert(_k>0); + k=2; + do _u[k]=(k<<1)-1; + while(++k0); + j=0; + do{ + opus_uint32 p; + int s; + int yj; + p=_u[_k+1]; + s=-(_i>=p); + _i-=p&s; + yj=_k; + p=_u[_k]; + while(p>_i)p=_u[--_k]; + _i-=p; + yj-=_k; + val=(yj+s)^s; + _y[j]=val; + yy=MAC16_16(yy,val,val); + uprev(_u,_k+2,0); + } + while(++j<_n); + return yy; +} + +/*Returns the index of the given combination of K elements chosen from a set + of size 1 with associated sign bits. + _y: The vector of pulses, whose sum of absolute values is K. + _k: Returns K.*/ +static OPUS_INLINE opus_uint32 icwrs1(const int *_y,int *_k){ + *_k=abs(_y[0]); + return _y[0]<0; +} + +/*Returns the index of the given combination of K elements chosen from a set + of size _n with associated sign bits. + _y: The vector of pulses, whose sum of absolute values must be _k. + _nc: Returns V(_n,_k).*/ +static OPUS_INLINE opus_uint32 icwrs(int _n,int _k,opus_uint32 *_nc,const int *_y, + opus_uint32 *_u){ + opus_uint32 i; + int j; + int k; + /*We can't unroll the first two iterations of the loop unless _n>=2.*/ + celt_assert(_n>=2); + _u[0]=0; + for(k=1;k<=_k+1;k++)_u[k]=(k<<1)-1; + i=icwrs1(_y+_n-1,&k); + j=_n-2; + i+=_u[k]; + k+=abs(_y[j]); + if(_y[j]<0)i+=_u[k+1]; + while(j-->0){ + unext(_u,_k+2,0); + i+=_u[k]; + k+=abs(_y[j]); + if(_y[j]<0)i+=_u[k+1]; + } + *_nc=_u[k]+_u[k+1]; + return i; +} + +#ifdef CUSTOM_MODES +void get_required_bits(opus_int16 *_bits,int _n,int _maxk,int _frac){ + int k; + /*_maxk==0 => there's nothing to do.*/ + celt_assert(_maxk>0); + _bits[0]=0; + if (_n==1) + { + for (k=1;k<=_maxk;k++) + _bits[k] = 1<<_frac; + } + else { + VARDECL(opus_uint32,u); + SAVE_STACK; + ALLOC(u,_maxk+2U,opus_uint32); + ncwrs_urow(_n,_maxk,u); + for(k=1;k<=_maxk;k++) + _bits[k]=log2_frac(u[k]+u[k+1],_frac); + RESTORE_STACK; + } +} +#endif /* CUSTOM_MODES */ + +void encode_pulses(const int *_y,int _n,int _k,ec_enc *_enc){ + opus_uint32 i; + VARDECL(opus_uint32,u); + opus_uint32 nc; + SAVE_STACK; + celt_assert(_k>0); + ALLOC(u,_k+2U,opus_uint32); + i=icwrs(_n,_k,&nc,_y,u); + ec_enc_uint(_enc,i,nc); + RESTORE_STACK; +} + +opus_val32 decode_pulses(int *_y,int _n,int _k,ec_dec *_dec){ + VARDECL(opus_uint32,u); + int ret; + SAVE_STACK; + celt_assert(_k>0); + ALLOC(u,_k+2U,opus_uint32); + ret = cwrsi(_n,_k,ec_dec_uint(_dec,ncwrs_urow(_n,_k,u)),_y,u); + RESTORE_STACK; + return ret; +} + +#endif /* SMALL_FOOTPRINT */ diff --git a/components/opus/libopus/celt/cwrs.h b/components/opus/libopus/celt/cwrs.h new file mode 100644 index 0000000..7cd4717 --- /dev/null +++ b/components/opus/libopus/celt/cwrs.h @@ -0,0 +1,48 @@ +/* Copyright (c) 2007-2008 CSIRO + Copyright (c) 2007-2009 Xiph.Org Foundation + Copyright (c) 2007-2009 Timothy B. Terriberry + Written by Timothy B. Terriberry and Jean-Marc Valin */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifndef CWRS_H +#define CWRS_H + +#include "arch.h" +#include "stack_alloc.h" +#include "entenc.h" +#include "entdec.h" + +#ifdef CUSTOM_MODES +int log2_frac(opus_uint32 val, int frac); +#endif + +void get_required_bits(opus_int16 *bits, int N, int K, int frac); + +void encode_pulses(const int *_y, int N, int K, ec_enc *enc); + +opus_val32 decode_pulses(int *_y, int N, int K, ec_dec *dec); + +#endif /* CWRS_H */ diff --git a/components/opus/libopus/celt/ecintrin.h b/components/opus/libopus/celt/ecintrin.h new file mode 100644 index 0000000..2263cff --- /dev/null +++ b/components/opus/libopus/celt/ecintrin.h @@ -0,0 +1,87 @@ +/* Copyright (c) 2003-2008 Timothy B. Terriberry + Copyright (c) 2008 Xiph.Org Foundation */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/*Some common macros for potential platform-specific optimization.*/ +#include "opus_types.h" +#include +#include +#include "arch.h" +#if !defined(_ecintrin_H) +# define _ecintrin_H (1) + +/*Some specific platforms may have optimized intrinsic or OPUS_INLINE assembly + versions of these functions which can substantially improve performance. + We define macros for them to allow easy incorporation of these non-ANSI + features.*/ + +/*Modern gcc (4.x) can compile the naive versions of min and max with cmov if + given an appropriate architecture, but the branchless bit-twiddling versions + are just as fast, and do not require any special target architecture. + Earlier gcc versions (3.x) compiled both code to the same assembly + instructions, because of the way they represented ((_b)>(_a)) internally.*/ +# define EC_MINI(_a,_b) ((_a)+(((_b)-(_a))&-((_b)<(_a)))) + +/*Count leading zeros. + This macro should only be used for implementing ec_ilog(), if it is defined. + All other code should use EC_ILOG() instead.*/ +#if defined(_MSC_VER) && (_MSC_VER >= 1400) +# include +/*In _DEBUG mode this is not an intrinsic by default.*/ +# pragma intrinsic(_BitScanReverse) + +static __inline int ec_bsr(unsigned long _x){ + unsigned long ret; + _BitScanReverse(&ret,_x); + return (int)ret; +} +# define EC_CLZ0 (1) +# define EC_CLZ(_x) (-ec_bsr(_x)) +#elif defined(ENABLE_TI_DSPLIB) +# include "dsplib.h" +# define EC_CLZ0 (31) +# define EC_CLZ(_x) (_lnorm(_x)) +#elif __GNUC_PREREQ(3,4) +# if INT_MAX>=2147483647 +# define EC_CLZ0 ((int)sizeof(unsigned)*CHAR_BIT) +# define EC_CLZ(_x) (__builtin_clz(_x)) +# elif LONG_MAX>=2147483647L +# define EC_CLZ0 ((int)sizeof(unsigned long)*CHAR_BIT) +# define EC_CLZ(_x) (__builtin_clzl(_x)) +# endif +#endif + +#if defined(EC_CLZ) +/*Note that __builtin_clz is not defined when _x==0, according to the gcc + documentation (and that of the BSR instruction that implements it on x86). + The majority of the time we can never pass it zero. + When we need to, it can be special cased.*/ +# define EC_ILOG(_x) (EC_CLZ0-EC_CLZ(_x)) +#else +int ec_ilog(opus_uint32 _v); +# define EC_ILOG(_x) (ec_ilog(_x)) +#endif +#endif diff --git a/components/opus/libopus/celt/entcode.c b/components/opus/libopus/celt/entcode.c new file mode 100644 index 0000000..70f3201 --- /dev/null +++ b/components/opus/libopus/celt/entcode.c @@ -0,0 +1,153 @@ +/* Copyright (c) 2001-2011 Timothy B. Terriberry +*/ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "entcode.h" +#include "arch.h" + +#if !defined(EC_CLZ) +/*This is a fallback for systems where we don't know how to access + a BSR or CLZ instruction (see ecintrin.h). + If you are optimizing Opus on a new platform and it has a native CLZ or + BZR (e.g. cell, MIPS, x86, etc) then making it available to Opus will be + an easy performance win.*/ +int ec_ilog(opus_uint32 _v){ + /*On a Pentium M, this branchless version tested as the fastest on + 1,000,000,000 random 32-bit integers, edging out a similar version with + branches, and a 256-entry LUT version.*/ + int ret; + int m; + ret=!!_v; + m=!!(_v&0xFFFF0000)<<4; + _v>>=m; + ret|=m; + m=!!(_v&0xFF00)<<3; + _v>>=m; + ret|=m; + m=!!(_v&0xF0)<<2; + _v>>=m; + ret|=m; + m=!!(_v&0xC)<<1; + _v>>=m; + ret|=m; + ret+=!!(_v&0x2); + return ret; +} +#endif + +#if 1 +/* This is a faster version of ec_tell_frac() that takes advantage + of the low (1/8 bit) resolution to use just a linear function + followed by a lookup to determine the exact transition thresholds. */ +opus_uint32 ec_tell_frac(ec_ctx *_this){ + static const unsigned correction[8] = + {35733, 38967, 42495, 46340, + 50535, 55109, 60097, 65535}; + opus_uint32 nbits; + opus_uint32 r; + int l; + unsigned b; + nbits=_this->nbits_total<rng); + r=_this->rng>>(l-16); + b = (r>>12)-8; + b += r>correction[b]; + l = (l<<3)+b; + return nbits-l; +} +#else +opus_uint32 ec_tell_frac(ec_ctx *_this){ + opus_uint32 nbits; + opus_uint32 r; + int l; + int i; + /*To handle the non-integral number of bits still left in the encoder/decoder + state, we compute the worst-case number of bits of val that must be + encoded to ensure that the value is inside the range for any possible + subsequent bits. + The computation here is independent of val itself (the decoder does not + even track that value), even though the real number of bits used after + ec_enc_done() may be 1 smaller if rng is a power of two and the + corresponding trailing bits of val are all zeros. + If we did try to track that special case, then coding a value with a + probability of 1/(1<nbits_total<rng); + r=_this->rng>>(l-16); + for(i=BITRES;i-->0;){ + int b; + r=r*r>>15; + b=(int)(r>>16); + l=l<<1|b; + r>>=b; + } + return nbits-l; +} +#endif + +#ifdef USE_SMALL_DIV_TABLE +/* Result of 2^32/(2*i+1), except for i=0. */ +const opus_uint32 SMALL_DIV_TABLE[129] = { + 0xFFFFFFFF, 0x55555555, 0x33333333, 0x24924924, + 0x1C71C71C, 0x1745D174, 0x13B13B13, 0x11111111, + 0x0F0F0F0F, 0x0D79435E, 0x0C30C30C, 0x0B21642C, + 0x0A3D70A3, 0x097B425E, 0x08D3DCB0, 0x08421084, + 0x07C1F07C, 0x07507507, 0x06EB3E45, 0x06906906, + 0x063E7063, 0x05F417D0, 0x05B05B05, 0x0572620A, + 0x05397829, 0x05050505, 0x04D4873E, 0x04A7904A, + 0x047DC11F, 0x0456C797, 0x04325C53, 0x04104104, + 0x03F03F03, 0x03D22635, 0x03B5CC0E, 0x039B0AD1, + 0x0381C0E0, 0x0369D036, 0x03531DEC, 0x033D91D2, + 0x0329161F, 0x03159721, 0x03030303, 0x02F14990, + 0x02E05C0B, 0x02D02D02, 0x02C0B02C, 0x02B1DA46, + 0x02A3A0FD, 0x0295FAD4, 0x0288DF0C, 0x027C4597, + 0x02702702, 0x02647C69, 0x02593F69, 0x024E6A17, + 0x0243F6F0, 0x0239E0D5, 0x02302302, 0x0226B902, + 0x021D9EAD, 0x0214D021, 0x020C49BA, 0x02040810, + 0x01FC07F0, 0x01F44659, 0x01ECC07B, 0x01E573AC, + 0x01DE5D6E, 0x01D77B65, 0x01D0CB58, 0x01CA4B30, + 0x01C3F8F0, 0x01BDD2B8, 0x01B7D6C3, 0x01B20364, + 0x01AC5701, 0x01A6D01A, 0x01A16D3F, 0x019C2D14, + 0x01970E4F, 0x01920FB4, 0x018D3018, 0x01886E5F, + 0x0183C977, 0x017F405F, 0x017AD220, 0x01767DCE, + 0x01724287, 0x016E1F76, 0x016A13CD, 0x01661EC6, + 0x01623FA7, 0x015E75BB, 0x015AC056, 0x01571ED3, + 0x01539094, 0x01501501, 0x014CAB88, 0x0149539E, + 0x01460CBC, 0x0142D662, 0x013FB013, 0x013C995A, + 0x013991C2, 0x013698DF, 0x0133AE45, 0x0130D190, + 0x012E025C, 0x012B404A, 0x01288B01, 0x0125E227, + 0x01234567, 0x0120B470, 0x011E2EF3, 0x011BB4A4, + 0x01194538, 0x0116E068, 0x011485F0, 0x0112358E, + 0x010FEF01, 0x010DB20A, 0x010B7E6E, 0x010953F3, + 0x01073260, 0x0105197F, 0x0103091B, 0x01010101 +}; +#endif diff --git a/components/opus/libopus/celt/entcode.h b/components/opus/libopus/celt/entcode.h new file mode 100644 index 0000000..3763e3f --- /dev/null +++ b/components/opus/libopus/celt/entcode.h @@ -0,0 +1,152 @@ +/* Copyright (c) 2001-2011 Timothy B. Terriberry + Copyright (c) 2008-2009 Xiph.Org Foundation */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#include "opus_types.h" +#include "opus_defines.h" + +#if !defined(_entcode_H) +# define _entcode_H (1) +# include +# include +# include "ecintrin.h" + +extern const opus_uint32 SMALL_DIV_TABLE[129]; + +#ifdef OPUS_ARM_ASM +#define USE_SMALL_DIV_TABLE +#endif + +/*OPT: ec_window must be at least 32 bits, but if you have fast arithmetic on a + larger type, you can speed up the decoder by using it here.*/ +typedef opus_uint32 ec_window; +typedef struct ec_ctx ec_ctx; +typedef struct ec_ctx ec_enc; +typedef struct ec_ctx ec_dec; + +# define EC_WINDOW_SIZE ((int)sizeof(ec_window)*CHAR_BIT) + +/*The number of bits to use for the range-coded part of unsigned integers.*/ +# define EC_UINT_BITS (8) + +/*The resolution of fractional-precision bit usage measurements, i.e., + 3 => 1/8th bits.*/ +# define BITRES 3 + +/*The entropy encoder/decoder context. + We use the same structure for both, so that common functions like ec_tell() + can be used on either one.*/ +struct ec_ctx{ + /*Buffered input/output.*/ + unsigned char *buf; + /*The size of the buffer.*/ + opus_uint32 storage; + /*The offset at which the last byte containing raw bits was read/written.*/ + opus_uint32 end_offs; + /*Bits that will be read from/written at the end.*/ + ec_window end_window; + /*Number of valid bits in end_window.*/ + int nend_bits; + /*The total number of whole bits read/written. + This does not include partial bits currently in the range coder.*/ + int nbits_total; + /*The offset at which the next range coder byte will be read/written.*/ + opus_uint32 offs; + /*The number of values in the current range.*/ + opus_uint32 rng; + /*In the decoder: the difference between the top of the current range and + the input value, minus one. + In the encoder: the low end of the current range.*/ + opus_uint32 val; + /*In the decoder: the saved normalization factor from ec_decode(). + In the encoder: the number of oustanding carry propagating symbols.*/ + opus_uint32 ext; + /*A buffered input/output symbol, awaiting carry propagation.*/ + int rem; + /*Nonzero if an error occurred.*/ + int error; +}; + +static OPUS_INLINE opus_uint32 ec_range_bytes(ec_ctx *_this){ + return _this->offs; +} + +static OPUS_INLINE unsigned char *ec_get_buffer(ec_ctx *_this){ + return _this->buf; +} + +static OPUS_INLINE int ec_get_error(ec_ctx *_this){ + return _this->error; +} + +/*Returns the number of bits "used" by the encoded or decoded symbols so far. + This same number can be computed in either the encoder or the decoder, and is + suitable for making coding decisions. + Return: The number of bits. + This will always be slightly larger than the exact value (e.g., all + rounding error is in the positive direction).*/ +static OPUS_INLINE int ec_tell(ec_ctx *_this){ + return _this->nbits_total-EC_ILOG(_this->rng); +} + +/*Returns the number of bits "used" by the encoded or decoded symbols so far. + This same number can be computed in either the encoder or the decoder, and is + suitable for making coding decisions. + Return: The number of bits scaled by 2**BITRES. + This will always be slightly larger than the exact value (e.g., all + rounding error is in the positive direction).*/ +opus_uint32 ec_tell_frac(ec_ctx *_this); + +/* Tested exhaustively for all n and for 1<=d<=256 */ +static OPUS_INLINE opus_uint32 celt_udiv(opus_uint32 n, opus_uint32 d) { + celt_sig_assert(d>0); +#ifdef USE_SMALL_DIV_TABLE + if (d>256) + return n/d; + else { + opus_uint32 t, q; + t = EC_ILOG(d&-d); + q = (opus_uint64)SMALL_DIV_TABLE[d>>t]*(n>>(t-1))>>32; + return q+(n-q*d >= d); + } +#else + return n/d; +#endif +} + +static OPUS_INLINE opus_int32 celt_sudiv(opus_int32 n, opus_int32 d) { + celt_sig_assert(d>0); +#ifdef USE_SMALL_DIV_TABLE + if (n<0) + return -(opus_int32)celt_udiv(-n, d); + else + return celt_udiv(n, d); +#else + return n/d; +#endif +} + +#endif diff --git a/components/opus/libopus/celt/entdec.c b/components/opus/libopus/celt/entdec.c new file mode 100644 index 0000000..0b3433e --- /dev/null +++ b/components/opus/libopus/celt/entdec.c @@ -0,0 +1,245 @@ +/* Copyright (c) 2001-2011 Timothy B. Terriberry + Copyright (c) 2008-2009 Xiph.Org Foundation */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include "os_support.h" +#include "arch.h" +#include "entdec.h" +#include "mfrngcod.h" + +/*A range decoder. + This is an entropy decoder based upon \cite{Mar79}, which is itself a + rediscovery of the FIFO arithmetic code introduced by \cite{Pas76}. + It is very similar to arithmetic encoding, except that encoding is done with + digits in any base, instead of with bits, and so it is faster when using + larger bases (i.e.: a byte). + The author claims an average waste of $\frac{1}{2}\log_b(2b)$ bits, where $b$ + is the base, longer than the theoretical optimum, but to my knowledge there + is no published justification for this claim. + This only seems true when using near-infinite precision arithmetic so that + the process is carried out with no rounding errors. + + An excellent description of implementation details is available at + http://www.arturocampos.com/ac_range.html + A recent work \cite{MNW98} which proposes several changes to arithmetic + encoding for efficiency actually re-discovers many of the principles + behind range encoding, and presents a good theoretical analysis of them. + + End of stream is handled by writing out the smallest number of bits that + ensures that the stream will be correctly decoded regardless of the value of + any subsequent bits. + ec_tell() can be used to determine how many bits were needed to decode + all the symbols thus far; other data can be packed in the remaining bits of + the input buffer. + @PHDTHESIS{Pas76, + author="Richard Clark Pasco", + title="Source coding algorithms for fast data compression", + school="Dept. of Electrical Engineering, Stanford University", + address="Stanford, CA", + month=May, + year=1976 + } + @INPROCEEDINGS{Mar79, + author="Martin, G.N.N.", + title="Range encoding: an algorithm for removing redundancy from a digitised + message", + booktitle="Video & Data Recording Conference", + year=1979, + address="Southampton", + month=Jul + } + @ARTICLE{MNW98, + author="Alistair Moffat and Radford Neal and Ian H. Witten", + title="Arithmetic Coding Revisited", + journal="{ACM} Transactions on Information Systems", + year=1998, + volume=16, + number=3, + pages="256--294", + month=Jul, + URL="http://www.stanford.edu/class/ee398a/handouts/papers/Moffat98ArithmCoding.pdf" + }*/ + +static int ec_read_byte(ec_dec *_this){ + return _this->offs<_this->storage?_this->buf[_this->offs++]:0; +} + +static int ec_read_byte_from_end(ec_dec *_this){ + return _this->end_offs<_this->storage? + _this->buf[_this->storage-++(_this->end_offs)]:0; +} + +/*Normalizes the contents of val and rng so that rng lies entirely in the + high-order symbol.*/ +static void ec_dec_normalize(ec_dec *_this){ + /*If the range is too small, rescale it and input some bits.*/ + while(_this->rng<=EC_CODE_BOT){ + int sym; + _this->nbits_total+=EC_SYM_BITS; + _this->rng<<=EC_SYM_BITS; + /*Use up the remaining bits from our last symbol.*/ + sym=_this->rem; + /*Read the next value from the input.*/ + _this->rem=ec_read_byte(_this); + /*Take the rest of the bits we need from this new symbol.*/ + sym=(sym<rem)>>(EC_SYM_BITS-EC_CODE_EXTRA); + /*And subtract them from val, capped to be less than EC_CODE_TOP.*/ + _this->val=((_this->val<buf=_buf; + _this->storage=_storage; + _this->end_offs=0; + _this->end_window=0; + _this->nend_bits=0; + /*This is the offset from which ec_tell() will subtract partial bits. + The final value after the ec_dec_normalize() call will be the same as in + the encoder, but we have to compensate for the bits that are added there.*/ + _this->nbits_total=EC_CODE_BITS+1 + -((EC_CODE_BITS-EC_CODE_EXTRA)/EC_SYM_BITS)*EC_SYM_BITS; + _this->offs=0; + _this->rng=1U<rem=ec_read_byte(_this); + _this->val=_this->rng-1-(_this->rem>>(EC_SYM_BITS-EC_CODE_EXTRA)); + _this->error=0; + /*Normalize the interval.*/ + ec_dec_normalize(_this); +} + +unsigned ec_decode(ec_dec *_this,unsigned _ft){ + unsigned s; + _this->ext=celt_udiv(_this->rng,_ft); + s=(unsigned)(_this->val/_this->ext); + return _ft-EC_MINI(s+1,_ft); +} + +unsigned ec_decode_bin(ec_dec *_this,unsigned _bits){ + unsigned s; + _this->ext=_this->rng>>_bits; + s=(unsigned)(_this->val/_this->ext); + return (1U<<_bits)-EC_MINI(s+1U,1U<<_bits); +} + +void ec_dec_update(ec_dec *_this,unsigned _fl,unsigned _fh,unsigned _ft){ + opus_uint32 s; + s=IMUL32(_this->ext,_ft-_fh); + _this->val-=s; + _this->rng=_fl>0?IMUL32(_this->ext,_fh-_fl):_this->rng-s; + ec_dec_normalize(_this); +} + +/*The probability of having a "one" is 1/(1<<_logp).*/ +int ec_dec_bit_logp(ec_dec *_this,unsigned _logp){ + opus_uint32 r; + opus_uint32 d; + opus_uint32 s; + int ret; + r=_this->rng; + d=_this->val; + s=r>>_logp; + ret=dval=d-s; + _this->rng=ret?s:r-s; + ec_dec_normalize(_this); + return ret; +} + +int ec_dec_icdf(ec_dec *_this,const unsigned char *_icdf,unsigned _ftb){ + opus_uint32 r; + opus_uint32 d; + opus_uint32 s; + opus_uint32 t; + int ret; + s=_this->rng; + d=_this->val; + r=s>>_ftb; + ret=-1; + do{ + t=s; + s=IMUL32(r,_icdf[++ret]); + } + while(dval=d-s; + _this->rng=t-s; + ec_dec_normalize(_this); + return ret; +} + +opus_uint32 ec_dec_uint(ec_dec *_this,opus_uint32 _ft){ + unsigned ft; + unsigned s; + int ftb; + /*In order to optimize EC_ILOG(), it is undefined for the value 0.*/ + celt_assert(_ft>1); + _ft--; + ftb=EC_ILOG(_ft); + if(ftb>EC_UINT_BITS){ + opus_uint32 t; + ftb-=EC_UINT_BITS; + ft=(unsigned)(_ft>>ftb)+1; + s=ec_decode(_this,ft); + ec_dec_update(_this,s,s+1,ft); + t=(opus_uint32)s<error=1; + return _ft; + } + else{ + _ft++; + s=ec_decode(_this,(unsigned)_ft); + ec_dec_update(_this,s,s+1,(unsigned)_ft); + return s; + } +} + +opus_uint32 ec_dec_bits(ec_dec *_this,unsigned _bits){ + ec_window window; + int available; + opus_uint32 ret; + window=_this->end_window; + available=_this->nend_bits; + if((unsigned)available<_bits){ + do{ + window|=(ec_window)ec_read_byte_from_end(_this)<>=_bits; + available-=_bits; + _this->end_window=window; + _this->nend_bits=available; + _this->nbits_total+=_bits; + return ret; +} diff --git a/components/opus/libopus/celt/entdec.h b/components/opus/libopus/celt/entdec.h new file mode 100644 index 0000000..025fc18 --- /dev/null +++ b/components/opus/libopus/celt/entdec.h @@ -0,0 +1,100 @@ +/* Copyright (c) 2001-2011 Timothy B. Terriberry + Copyright (c) 2008-2009 Xiph.Org Foundation */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#if !defined(_entdec_H) +# define _entdec_H (1) +# include +# include "entcode.h" + +/*Initializes the decoder. + _buf: The input buffer to use. + Return: 0 on success, or a negative value on error.*/ +void ec_dec_init(ec_dec *_this,unsigned char *_buf,opus_uint32 _storage); + +/*Calculates the cumulative frequency for the next symbol. + This can then be fed into the probability model to determine what that + symbol is, and the additional frequency information required to advance to + the next symbol. + This function cannot be called more than once without a corresponding call to + ec_dec_update(), or decoding will not proceed correctly. + _ft: The total frequency of the symbols in the alphabet the next symbol was + encoded with. + Return: A cumulative frequency representing the encoded symbol. + If the cumulative frequency of all the symbols before the one that + was encoded was fl, and the cumulative frequency of all the symbols + up to and including the one encoded is fh, then the returned value + will fall in the range [fl,fh).*/ +unsigned ec_decode(ec_dec *_this,unsigned _ft); + +/*Equivalent to ec_decode() with _ft==1<<_bits.*/ +unsigned ec_decode_bin(ec_dec *_this,unsigned _bits); + +/*Advance the decoder past the next symbol using the frequency information the + symbol was encoded with. + Exactly one call to ec_decode() must have been made so that all necessary + intermediate calculations are performed. + _fl: The cumulative frequency of all symbols that come before the symbol + decoded. + _fh: The cumulative frequency of all symbols up to and including the symbol + decoded. + Together with _fl, this defines the range [_fl,_fh) in which the value + returned above must fall. + _ft: The total frequency of the symbols in the alphabet the symbol decoded + was encoded in. + This must be the same as passed to the preceding call to ec_decode().*/ +void ec_dec_update(ec_dec *_this,unsigned _fl,unsigned _fh,unsigned _ft); + +/* Decode a bit that has a 1/(1<<_logp) probability of being a one */ +int ec_dec_bit_logp(ec_dec *_this,unsigned _logp); + +/*Decodes a symbol given an "inverse" CDF table. + No call to ec_dec_update() is necessary after this call. + _icdf: The "inverse" CDF, such that symbol s falls in the range + [s>0?ft-_icdf[s-1]:0,ft-_icdf[s]), where ft=1<<_ftb. + The values must be monotonically non-increasing, and the last value + must be 0. + _ftb: The number of bits of precision in the cumulative distribution. + Return: The decoded symbol s.*/ +int ec_dec_icdf(ec_dec *_this,const unsigned char *_icdf,unsigned _ftb); + +/*Extracts a raw unsigned integer with a non-power-of-2 range from the stream. + The bits must have been encoded with ec_enc_uint(). + No call to ec_dec_update() is necessary after this call. + _ft: The number of integers that can be decoded (one more than the max). + This must be at least 2, and no more than 2**32-1. + Return: The decoded bits.*/ +opus_uint32 ec_dec_uint(ec_dec *_this,opus_uint32 _ft); + +/*Extracts a sequence of raw bits from the stream. + The bits must have been encoded with ec_enc_bits(). + No call to ec_dec_update() is necessary after this call. + _ftb: The number of bits to extract. + This must be between 0 and 25, inclusive. + Return: The decoded bits.*/ +opus_uint32 ec_dec_bits(ec_dec *_this,unsigned _ftb); + +#endif diff --git a/components/opus/libopus/celt/entenc.c b/components/opus/libopus/celt/entenc.c new file mode 100644 index 0000000..f1750d2 --- /dev/null +++ b/components/opus/libopus/celt/entenc.c @@ -0,0 +1,294 @@ +/* Copyright (c) 2001-2011 Timothy B. Terriberry + Copyright (c) 2008-2009 Xiph.Org Foundation */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#if defined(HAVE_CONFIG_H) +# include "config.h" +#endif +#include "os_support.h" +#include "arch.h" +#include "entenc.h" +#include "mfrngcod.h" + +/*A range encoder. + See entdec.c and the references for implementation details \cite{Mar79,MNW98}. + + @INPROCEEDINGS{Mar79, + author="Martin, G.N.N.", + title="Range encoding: an algorithm for removing redundancy from a digitised + message", + booktitle="Video \& Data Recording Conference", + year=1979, + address="Southampton", + month=Jul + } + @ARTICLE{MNW98, + author="Alistair Moffat and Radford Neal and Ian H. Witten", + title="Arithmetic Coding Revisited", + journal="{ACM} Transactions on Information Systems", + year=1998, + volume=16, + number=3, + pages="256--294", + month=Jul, + URL="http://www.stanford.edu/class/ee398/handouts/papers/Moffat98ArithmCoding.pdf" + }*/ + +static int ec_write_byte(ec_enc *_this,unsigned _value){ + if(_this->offs+_this->end_offs>=_this->storage)return -1; + _this->buf[_this->offs++]=(unsigned char)_value; + return 0; +} + +static int ec_write_byte_at_end(ec_enc *_this,unsigned _value){ + if(_this->offs+_this->end_offs>=_this->storage)return -1; + _this->buf[_this->storage-++(_this->end_offs)]=(unsigned char)_value; + return 0; +} + +/*Outputs a symbol, with a carry bit. + If there is a potential to propagate a carry over several symbols, they are + buffered until it can be determined whether or not an actual carry will + occur. + If the counter for the buffered symbols overflows, then the stream becomes + undecodable. + This gives a theoretical limit of a few billion symbols in a single packet on + 32-bit systems. + The alternative is to truncate the range in order to force a carry, but + requires similar carry tracking in the decoder, needlessly slowing it down.*/ +static void ec_enc_carry_out(ec_enc *_this,int _c){ + if(_c!=EC_SYM_MAX){ + /*No further carry propagation possible, flush buffer.*/ + int carry; + carry=_c>>EC_SYM_BITS; + /*Don't output a byte on the first write. + This compare should be taken care of by branch-prediction thereafter.*/ + if(_this->rem>=0)_this->error|=ec_write_byte(_this,_this->rem+carry); + if(_this->ext>0){ + unsigned sym; + sym=(EC_SYM_MAX+carry)&EC_SYM_MAX; + do _this->error|=ec_write_byte(_this,sym); + while(--(_this->ext)>0); + } + _this->rem=_c&EC_SYM_MAX; + } + else _this->ext++; +} + +static OPUS_INLINE void ec_enc_normalize(ec_enc *_this){ + /*If the range is too small, output some bits and rescale it.*/ + while(_this->rng<=EC_CODE_BOT){ + ec_enc_carry_out(_this,(int)(_this->val>>EC_CODE_SHIFT)); + /*Move the next-to-high-order symbol into the high-order position.*/ + _this->val=(_this->val<rng<<=EC_SYM_BITS; + _this->nbits_total+=EC_SYM_BITS; + } +} + +void ec_enc_init(ec_enc *_this,unsigned char *_buf,opus_uint32 _size){ + _this->buf=_buf; + _this->end_offs=0; + _this->end_window=0; + _this->nend_bits=0; + /*This is the offset from which ec_tell() will subtract partial bits.*/ + _this->nbits_total=EC_CODE_BITS+1; + _this->offs=0; + _this->rng=EC_CODE_TOP; + _this->rem=-1; + _this->val=0; + _this->ext=0; + _this->storage=_size; + _this->error=0; +} + +void ec_encode(ec_enc *_this,unsigned _fl,unsigned _fh,unsigned _ft){ + opus_uint32 r; + r=celt_udiv(_this->rng,_ft); + if(_fl>0){ + _this->val+=_this->rng-IMUL32(r,(_ft-_fl)); + _this->rng=IMUL32(r,(_fh-_fl)); + } + else _this->rng-=IMUL32(r,(_ft-_fh)); + ec_enc_normalize(_this); +} + +void ec_encode_bin(ec_enc *_this,unsigned _fl,unsigned _fh,unsigned _bits){ + opus_uint32 r; + r=_this->rng>>_bits; + if(_fl>0){ + _this->val+=_this->rng-IMUL32(r,((1U<<_bits)-_fl)); + _this->rng=IMUL32(r,(_fh-_fl)); + } + else _this->rng-=IMUL32(r,((1U<<_bits)-_fh)); + ec_enc_normalize(_this); +} + +/*The probability of having a "one" is 1/(1<<_logp).*/ +void ec_enc_bit_logp(ec_enc *_this,int _val,unsigned _logp){ + opus_uint32 r; + opus_uint32 s; + opus_uint32 l; + r=_this->rng; + l=_this->val; + s=r>>_logp; + r-=s; + if(_val)_this->val=l+r; + _this->rng=_val?s:r; + ec_enc_normalize(_this); +} + +void ec_enc_icdf(ec_enc *_this,int _s,const unsigned char *_icdf,unsigned _ftb){ + opus_uint32 r; + r=_this->rng>>_ftb; + if(_s>0){ + _this->val+=_this->rng-IMUL32(r,_icdf[_s-1]); + _this->rng=IMUL32(r,_icdf[_s-1]-_icdf[_s]); + } + else _this->rng-=IMUL32(r,_icdf[_s]); + ec_enc_normalize(_this); +} + +void ec_enc_uint(ec_enc *_this,opus_uint32 _fl,opus_uint32 _ft){ + unsigned ft; + unsigned fl; + int ftb; + /*In order to optimize EC_ILOG(), it is undefined for the value 0.*/ + celt_assert(_ft>1); + _ft--; + ftb=EC_ILOG(_ft); + if(ftb>EC_UINT_BITS){ + ftb-=EC_UINT_BITS; + ft=(_ft>>ftb)+1; + fl=(unsigned)(_fl>>ftb); + ec_encode(_this,fl,fl+1,ft); + ec_enc_bits(_this,_fl&(((opus_uint32)1<end_window; + used=_this->nend_bits; + celt_assert(_bits>0); + if(used+_bits>EC_WINDOW_SIZE){ + do{ + _this->error|=ec_write_byte_at_end(_this,(unsigned)window&EC_SYM_MAX); + window>>=EC_SYM_BITS; + used-=EC_SYM_BITS; + } + while(used>=EC_SYM_BITS); + } + window|=(ec_window)_fl<end_window=window; + _this->nend_bits=used; + _this->nbits_total+=_bits; +} + +void ec_enc_patch_initial_bits(ec_enc *_this,unsigned _val,unsigned _nbits){ + int shift; + unsigned mask; + celt_assert(_nbits<=EC_SYM_BITS); + shift=EC_SYM_BITS-_nbits; + mask=((1<<_nbits)-1)<offs>0){ + /*The first byte has been finalized.*/ + _this->buf[0]=(unsigned char)((_this->buf[0]&~mask)|_val<rem>=0){ + /*The first byte is still awaiting carry propagation.*/ + _this->rem=(_this->rem&~mask)|_val<rng<=(EC_CODE_TOP>>_nbits)){ + /*The renormalization loop has never been run.*/ + _this->val=(_this->val&~((opus_uint32)mask<error=-1; +} + +void ec_enc_shrink(ec_enc *_this,opus_uint32 _size){ + celt_assert(_this->offs+_this->end_offs<=_size); + OPUS_MOVE(_this->buf+_size-_this->end_offs, + _this->buf+_this->storage-_this->end_offs,_this->end_offs); + _this->storage=_size; +} + +void ec_enc_done(ec_enc *_this){ + ec_window window; + int used; + opus_uint32 msk; + opus_uint32 end; + int l; + /*We output the minimum number of bits that ensures that the symbols encoded + thus far will be decoded correctly regardless of the bits that follow.*/ + l=EC_CODE_BITS-EC_ILOG(_this->rng); + msk=(EC_CODE_TOP-1)>>l; + end=(_this->val+msk)&~msk; + if((end|msk)>=_this->val+_this->rng){ + l++; + msk>>=1; + end=(_this->val+msk)&~msk; + } + while(l>0){ + ec_enc_carry_out(_this,(int)(end>>EC_CODE_SHIFT)); + end=(end<rem>=0||_this->ext>0)ec_enc_carry_out(_this,0); + /*If we have buffered extra bits, flush them as well.*/ + window=_this->end_window; + used=_this->nend_bits; + while(used>=EC_SYM_BITS){ + _this->error|=ec_write_byte_at_end(_this,(unsigned)window&EC_SYM_MAX); + window>>=EC_SYM_BITS; + used-=EC_SYM_BITS; + } + /*Clear any excess space and add any remaining extra bits to the last byte.*/ + if(!_this->error){ + OPUS_CLEAR(_this->buf+_this->offs, + _this->storage-_this->offs-_this->end_offs); + if(used>0){ + /*If there's no range coder data at all, give up.*/ + if(_this->end_offs>=_this->storage)_this->error=-1; + else{ + l=-l; + /*If we've busted, don't add too many extra bits to the last byte; it + would corrupt the range coder data, and that's more important.*/ + if(_this->offs+_this->end_offs>=_this->storage&&lerror=-1; + } + _this->buf[_this->storage-_this->end_offs-1]|=(unsigned char)window; + } + } + } +} diff --git a/components/opus/libopus/celt/entenc.h b/components/opus/libopus/celt/entenc.h new file mode 100644 index 0000000..f502eaf --- /dev/null +++ b/components/opus/libopus/celt/entenc.h @@ -0,0 +1,110 @@ +/* Copyright (c) 2001-2011 Timothy B. Terriberry + Copyright (c) 2008-2009 Xiph.Org Foundation */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#if !defined(_entenc_H) +# define _entenc_H (1) +# include +# include "entcode.h" + +/*Initializes the encoder. + _buf: The buffer to store output bytes in. + _size: The size of the buffer, in chars.*/ +void ec_enc_init(ec_enc *_this,unsigned char *_buf,opus_uint32 _size); +/*Encodes a symbol given its frequency information. + The frequency information must be discernable by the decoder, assuming it + has read only the previous symbols from the stream. + It is allowable to change the frequency information, or even the entire + source alphabet, so long as the decoder can tell from the context of the + previously encoded information that it is supposed to do so as well. + _fl: The cumulative frequency of all symbols that come before the one to be + encoded. + _fh: The cumulative frequency of all symbols up to and including the one to + be encoded. + Together with _fl, this defines the range [_fl,_fh) in which the + decoded value will fall. + _ft: The sum of the frequencies of all the symbols*/ +void ec_encode(ec_enc *_this,unsigned _fl,unsigned _fh,unsigned _ft); + +/*Equivalent to ec_encode() with _ft==1<<_bits.*/ +void ec_encode_bin(ec_enc *_this,unsigned _fl,unsigned _fh,unsigned _bits); + +/* Encode a bit that has a 1/(1<<_logp) probability of being a one */ +void ec_enc_bit_logp(ec_enc *_this,int _val,unsigned _logp); + +/*Encodes a symbol given an "inverse" CDF table. + _s: The index of the symbol to encode. + _icdf: The "inverse" CDF, such that symbol _s falls in the range + [_s>0?ft-_icdf[_s-1]:0,ft-_icdf[_s]), where ft=1<<_ftb. + The values must be monotonically non-increasing, and the last value + must be 0. + _ftb: The number of bits of precision in the cumulative distribution.*/ +void ec_enc_icdf(ec_enc *_this,int _s,const unsigned char *_icdf,unsigned _ftb); + +/*Encodes a raw unsigned integer in the stream. + _fl: The integer to encode. + _ft: The number of integers that can be encoded (one more than the max). + This must be at least 2, and no more than 2**32-1.*/ +void ec_enc_uint(ec_enc *_this,opus_uint32 _fl,opus_uint32 _ft); + +/*Encodes a sequence of raw bits in the stream. + _fl: The bits to encode. + _ftb: The number of bits to encode. + This must be between 1 and 25, inclusive.*/ +void ec_enc_bits(ec_enc *_this,opus_uint32 _fl,unsigned _ftb); + +/*Overwrites a few bits at the very start of an existing stream, after they + have already been encoded. + This makes it possible to have a few flags up front, where it is easy for + decoders to access them without parsing the whole stream, even if their + values are not determined until late in the encoding process, without having + to buffer all the intermediate symbols in the encoder. + In order for this to work, at least _nbits bits must have already been + encoded using probabilities that are an exact power of two. + The encoder can verify the number of encoded bits is sufficient, but cannot + check this latter condition. + _val: The bits to encode (in the least _nbits significant bits). + They will be decoded in order from most-significant to least. + _nbits: The number of bits to overwrite. + This must be no more than 8.*/ +void ec_enc_patch_initial_bits(ec_enc *_this,unsigned _val,unsigned _nbits); + +/*Compacts the data to fit in the target size. + This moves up the raw bits at the end of the current buffer so they are at + the end of the new buffer size. + The caller must ensure that the amount of data that's already been written + will fit in the new size. + _size: The number of bytes in the new buffer. + This must be large enough to contain the bits already written, and + must be no larger than the existing size.*/ +void ec_enc_shrink(ec_enc *_this,opus_uint32 _size); + +/*Indicates that there are no more symbols to encode. + All reamining output bytes are flushed to the output buffer. + ec_enc_init() must be called before the encoder can be used again.*/ +void ec_enc_done(ec_enc *_this); + +#endif diff --git a/components/opus/libopus/celt/fixed_debug.h b/components/opus/libopus/celt/fixed_debug.h new file mode 100644 index 0000000..f435295 --- /dev/null +++ b/components/opus/libopus/celt/fixed_debug.h @@ -0,0 +1,791 @@ +/* Copyright (C) 2003-2008 Jean-Marc Valin + Copyright (C) 2007-2012 Xiph.Org Foundation */ +/** + @file fixed_debug.h + @brief Fixed-point operations with debugging +*/ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifndef FIXED_DEBUG_H +#define FIXED_DEBUG_H + +#include +#include "opus_defines.h" + +#ifdef CELT_C +OPUS_EXPORT opus_int64 celt_mips=0; +#else +extern opus_int64 celt_mips; +#endif + +#define MULT16_16SU(a,b) ((opus_val32)(opus_val16)(a)*(opus_val32)(opus_uint16)(b)) +#define MULT32_32_Q31(a,b) ADD32(ADD32(SHL32(MULT16_16(SHR32((a),16),SHR((b),16)),1), SHR32(MULT16_16SU(SHR32((a),16),((b)&0x0000ffff)),15)), SHR32(MULT16_16SU(SHR32((b),16),((a)&0x0000ffff)),15)) + +/** 16x32 multiplication, followed by a 16-bit shift right. Results fits in 32 bits */ +#define MULT16_32_Q16(a,b) ADD32(MULT16_16((a),SHR32((b),16)), SHR32(MULT16_16SU((a),((b)&0x0000ffff)),16)) + +#define MULT16_32_P16(a,b) MULT16_32_PX(a,b,16) + +#define QCONST16(x,bits) ((opus_val16)(.5+(x)*(((opus_val32)1)<<(bits)))) +#define QCONST32(x,bits) ((opus_val32)(.5+(x)*(((opus_val32)1)<<(bits)))) + +#define VERIFY_SHORT(x) ((x)<=32767&&(x)>=-32768) +#define VERIFY_INT(x) ((x)<=2147483647LL&&(x)>=-2147483648LL) +#define VERIFY_UINT(x) ((x)<=(2147483647LLU<<1)) + +#define SHR(a,b) SHR32(a,b) +#define PSHR(a,b) PSHR32(a,b) + +/** Add two 32-bit values, ignore any overflows */ +#define ADD32_ovflw(a,b) (celt_mips+=2,(opus_val32)((opus_uint32)(a)+(opus_uint32)(b))) +/** Subtract two 32-bit values, ignore any overflows */ +#define SUB32_ovflw(a,b) (celt_mips+=2,(opus_val32)((opus_uint32)(a)-(opus_uint32)(b))) +/* Avoid MSVC warning C4146: unary minus operator applied to unsigned type */ +/** Negate 32-bit value, ignore any overflows */ +#define NEG32_ovflw(a) (celt_mips+=2,(opus_val32)(0-(opus_uint32)(a))) + +static OPUS_INLINE short NEG16(int x) +{ + int res; + if (!VERIFY_SHORT(x)) + { + fprintf (stderr, "NEG16: input is not short: %d\n", (int)x); +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + } + res = -x; + if (!VERIFY_SHORT(res)) + { + fprintf (stderr, "NEG16: output is not short: %d\n", (int)res); +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + } + celt_mips++; + return res; +} +static OPUS_INLINE int NEG32(opus_int64 x) +{ + opus_int64 res; + if (!VERIFY_INT(x)) + { + fprintf (stderr, "NEG16: input is not int: %d\n", (int)x); +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + } + res = -x; + if (!VERIFY_INT(res)) + { + fprintf (stderr, "NEG16: output is not int: %d\n", (int)res); +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + } + celt_mips+=2; + return res; +} + +#define EXTRACT16(x) EXTRACT16_(x, __FILE__, __LINE__) +static OPUS_INLINE short EXTRACT16_(int x, char *file, int line) +{ + int res; + if (!VERIFY_SHORT(x)) + { + fprintf (stderr, "EXTRACT16: input is not short: %d in %s: line %d\n", x, file, line); +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + } + res = x; + celt_mips++; + return res; +} + +#define EXTEND32(x) EXTEND32_(x, __FILE__, __LINE__) +static OPUS_INLINE int EXTEND32_(int x, char *file, int line) +{ + int res; + if (!VERIFY_SHORT(x)) + { + fprintf (stderr, "EXTEND32: input is not short: %d in %s: line %d\n", x, file, line); +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + } + res = x; + celt_mips++; + return res; +} + +#define SHR16(a, shift) SHR16_(a, shift, __FILE__, __LINE__) +static OPUS_INLINE short SHR16_(int a, int shift, char *file, int line) +{ + int res; + if (!VERIFY_SHORT(a) || !VERIFY_SHORT(shift)) + { + fprintf (stderr, "SHR16: inputs are not short: %d >> %d in %s: line %d\n", a, shift, file, line); +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + } + res = a>>shift; + if (!VERIFY_SHORT(res)) + { + fprintf (stderr, "SHR16: output is not short: %d in %s: line %d\n", res, file, line); +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + } + celt_mips++; + return res; +} +#define SHL16(a, shift) SHL16_(a, shift, __FILE__, __LINE__) +static OPUS_INLINE short SHL16_(int a, int shift, char *file, int line) +{ + int res; + if (!VERIFY_SHORT(a) || !VERIFY_SHORT(shift)) + { + fprintf (stderr, "SHL16: inputs are not short: %d %d in %s: line %d\n", a, shift, file, line); +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + } + res = a<>shift; + if (!VERIFY_INT(res)) + { + fprintf (stderr, "SHR32: output is not int: %d\n", (int)res); +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + } + celt_mips+=2; + return res; +} +#define SHL32(a, shift) SHL32_(a, shift, __FILE__, __LINE__) +static OPUS_INLINE int SHL32_(opus_int64 a, int shift, char *file, int line) +{ + opus_int64 res; + if (!VERIFY_INT(a) || !VERIFY_SHORT(shift)) + { + fprintf (stderr, "SHL32: inputs are not int: %lld %d in %s: line %d\n", a, shift, file, line); +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + } + res = a<>1))),shift)) +#define VSHR32(a, shift) (((shift)>0) ? SHR32(a, shift) : SHL32(a, -(shift))) + +#define ROUND16(x,a) (celt_mips--,EXTRACT16(PSHR32((x),(a)))) +#define SROUND16(x,a) (celt_mips--,EXTRACT16(SATURATE(PSHR32(x,a), 32767))); + +#define HALF16(x) (SHR16(x,1)) +#define HALF32(x) (SHR32(x,1)) + +#define ADD16(a, b) ADD16_(a, b, __FILE__, __LINE__) +static OPUS_INLINE short ADD16_(int a, int b, char *file, int line) +{ + int res; + if (!VERIFY_SHORT(a) || !VERIFY_SHORT(b)) + { + fprintf (stderr, "ADD16: inputs are not short: %d %d in %s: line %d\n", a, b, file, line); +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + } + res = a+b; + if (!VERIFY_SHORT(res)) + { + fprintf (stderr, "ADD16: output is not short: %d+%d=%d in %s: line %d\n", a,b,res, file, line); +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + } + celt_mips++; + return res; +} + +#define SUB16(a, b) SUB16_(a, b, __FILE__, __LINE__) +static OPUS_INLINE short SUB16_(int a, int b, char *file, int line) +{ + int res; + if (!VERIFY_SHORT(a) || !VERIFY_SHORT(b)) + { + fprintf (stderr, "SUB16: inputs are not short: %d %d in %s: line %d\n", a, b, file, line); +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + } + res = a-b; + if (!VERIFY_SHORT(res)) + { + fprintf (stderr, "SUB16: output is not short: %d in %s: line %d\n", res, file, line); +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + } + celt_mips++; + return res; +} + +#define ADD32(a, b) ADD32_(a, b, __FILE__, __LINE__) +static OPUS_INLINE int ADD32_(opus_int64 a, opus_int64 b, char *file, int line) +{ + opus_int64 res; + if (!VERIFY_INT(a) || !VERIFY_INT(b)) + { + fprintf (stderr, "ADD32: inputs are not int: %d %d in %s: line %d\n", (int)a, (int)b, file, line); +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + } + res = a+b; + if (!VERIFY_INT(res)) + { + fprintf (stderr, "ADD32: output is not int: %d in %s: line %d\n", (int)res, file, line); +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + } + celt_mips+=2; + return res; +} + +#define SUB32(a, b) SUB32_(a, b, __FILE__, __LINE__) +static OPUS_INLINE int SUB32_(opus_int64 a, opus_int64 b, char *file, int line) +{ + opus_int64 res; + if (!VERIFY_INT(a) || !VERIFY_INT(b)) + { + fprintf (stderr, "SUB32: inputs are not int: %d %d in %s: line %d\n", (int)a, (int)b, file, line); +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + } + res = a-b; + if (!VERIFY_INT(res)) + { + fprintf (stderr, "SUB32: output is not int: %d in %s: line %d\n", (int)res, file, line); +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + } + celt_mips+=2; + return res; +} + +#undef UADD32 +#define UADD32(a, b) UADD32_(a, b, __FILE__, __LINE__) +static OPUS_INLINE unsigned int UADD32_(opus_uint64 a, opus_uint64 b, char *file, int line) +{ + opus_uint64 res; + if (!VERIFY_UINT(a) || !VERIFY_UINT(b)) + { + fprintf (stderr, "UADD32: inputs are not uint32: %llu %llu in %s: line %d\n", a, b, file, line); +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + } + res = a+b; + if (!VERIFY_UINT(res)) + { + fprintf (stderr, "UADD32: output is not uint32: %llu in %s: line %d\n", res, file, line); +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + } + celt_mips+=2; + return res; +} + +#undef USUB32 +#define USUB32(a, b) USUB32_(a, b, __FILE__, __LINE__) +static OPUS_INLINE unsigned int USUB32_(opus_uint64 a, opus_uint64 b, char *file, int line) +{ + opus_uint64 res; + if (!VERIFY_UINT(a) || !VERIFY_UINT(b)) + { + fprintf (stderr, "USUB32: inputs are not uint32: %llu %llu in %s: line %d\n", a, b, file, line); +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + } + if (a=((opus_val32)(1)<<(15+Q))) + { + fprintf (stderr, "MULT16_32_Q%d: second operand too large: %d %d in %s: line %d\n", Q, (int)a, (int)b, file, line); +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + } + res = (((opus_int64)a)*(opus_int64)b) >> Q; + if (!VERIFY_INT(res)) + { + fprintf (stderr, "MULT16_32_Q%d: output is not int: %d*%d=%d in %s: line %d\n", Q, (int)a, (int)b,(int)res, file, line); +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + } + if (Q==15) + celt_mips+=3; + else + celt_mips+=4; + return res; +} + +#define MULT16_32_PX(a, b, Q) MULT16_32_PX_(a, b, Q, __FILE__, __LINE__) +static OPUS_INLINE int MULT16_32_PX_(int a, opus_int64 b, int Q, char *file, int line) +{ + opus_int64 res; + if (!VERIFY_SHORT(a) || !VERIFY_INT(b)) + { + fprintf (stderr, "MULT16_32_P%d: inputs are not short+int: %d %d in %s: line %d\n\n", Q, (int)a, (int)b, file, line); +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + } + if (ABS32(b)>=((opus_int64)(1)<<(15+Q))) + { + fprintf (stderr, "MULT16_32_Q%d: second operand too large: %d %d in %s: line %d\n\n", Q, (int)a, (int)b,file, line); +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + } + res = ((((opus_int64)a)*(opus_int64)b) + (((opus_val32)(1)<>1))>> Q; + if (!VERIFY_INT(res)) + { + fprintf (stderr, "MULT16_32_P%d: output is not int: %d*%d=%d in %s: line %d\n\n", Q, (int)a, (int)b,(int)res, file, line); +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + } + if (Q==15) + celt_mips+=4; + else + celt_mips+=5; + return res; +} + +#define MULT16_32_Q15(a,b) MULT16_32_QX(a,b,15) +#define MAC16_32_Q15(c,a,b) (celt_mips-=2,ADD32((c),MULT16_32_Q15((a),(b)))) +#define MAC16_32_Q16(c,a,b) (celt_mips-=2,ADD32((c),MULT16_32_Q16((a),(b)))) + +static OPUS_INLINE int SATURATE(int a, int b) +{ + if (a>b) + a=b; + if (a<-b) + a = -b; + celt_mips+=3; + return a; +} + +static OPUS_INLINE opus_int16 SATURATE16(opus_int32 a) +{ + celt_mips+=3; + if (a>32767) + return 32767; + else if (a<-32768) + return -32768; + else return a; +} + +static OPUS_INLINE int MULT16_16_Q11_32(int a, int b) +{ + opus_int64 res; + if (!VERIFY_SHORT(a) || !VERIFY_SHORT(b)) + { + fprintf (stderr, "MULT16_16_Q11: inputs are not short: %d %d\n", a, b); +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + } + res = ((opus_int64)a)*b; + res >>= 11; + if (!VERIFY_INT(res)) + { + fprintf (stderr, "MULT16_16_Q11: output is not short: %d*%d=%d\n", (int)a, (int)b, (int)res); +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + } + celt_mips+=3; + return res; +} +static OPUS_INLINE short MULT16_16_Q13(int a, int b) +{ + opus_int64 res; + if (!VERIFY_SHORT(a) || !VERIFY_SHORT(b)) + { + fprintf (stderr, "MULT16_16_Q13: inputs are not short: %d %d\n", a, b); +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + } + res = ((opus_int64)a)*b; + res >>= 13; + if (!VERIFY_SHORT(res)) + { + fprintf (stderr, "MULT16_16_Q13: output is not short: %d*%d=%d\n", a, b, (int)res); +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + } + celt_mips+=3; + return res; +} +static OPUS_INLINE short MULT16_16_Q14(int a, int b) +{ + opus_int64 res; + if (!VERIFY_SHORT(a) || !VERIFY_SHORT(b)) + { + fprintf (stderr, "MULT16_16_Q14: inputs are not short: %d %d\n", a, b); +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + } + res = ((opus_int64)a)*b; + res >>= 14; + if (!VERIFY_SHORT(res)) + { + fprintf (stderr, "MULT16_16_Q14: output is not short: %d\n", (int)res); +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + } + celt_mips+=3; + return res; +} + +#define MULT16_16_Q15(a, b) MULT16_16_Q15_(a, b, __FILE__, __LINE__) +static OPUS_INLINE short MULT16_16_Q15_(int a, int b, char *file, int line) +{ + opus_int64 res; + if (!VERIFY_SHORT(a) || !VERIFY_SHORT(b)) + { + fprintf (stderr, "MULT16_16_Q15: inputs are not short: %d %d in %s: line %d\n", a, b, file, line); +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + } + res = ((opus_int64)a)*b; + res >>= 15; + if (!VERIFY_SHORT(res)) + { + fprintf (stderr, "MULT16_16_Q15: output is not short: %d in %s: line %d\n", (int)res, file, line); +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + } + celt_mips+=1; + return res; +} + +static OPUS_INLINE short MULT16_16_P13(int a, int b) +{ + opus_int64 res; + if (!VERIFY_SHORT(a) || !VERIFY_SHORT(b)) + { + fprintf (stderr, "MULT16_16_P13: inputs are not short: %d %d\n", a, b); +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + } + res = ((opus_int64)a)*b; + res += 4096; + if (!VERIFY_INT(res)) + { + fprintf (stderr, "MULT16_16_P13: overflow: %d*%d=%d\n", a, b, (int)res); +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + } + res >>= 13; + if (!VERIFY_SHORT(res)) + { + fprintf (stderr, "MULT16_16_P13: output is not short: %d*%d=%d\n", a, b, (int)res); +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + } + celt_mips+=4; + return res; +} +static OPUS_INLINE short MULT16_16_P14(int a, int b) +{ + opus_int64 res; + if (!VERIFY_SHORT(a) || !VERIFY_SHORT(b)) + { + fprintf (stderr, "MULT16_16_P14: inputs are not short: %d %d\n", a, b); +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + } + res = ((opus_int64)a)*b; + res += 8192; + if (!VERIFY_INT(res)) + { + fprintf (stderr, "MULT16_16_P14: overflow: %d*%d=%d\n", a, b, (int)res); +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + } + res >>= 14; + if (!VERIFY_SHORT(res)) + { + fprintf (stderr, "MULT16_16_P14: output is not short: %d*%d=%d\n", a, b, (int)res); +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + } + celt_mips+=4; + return res; +} +static OPUS_INLINE short MULT16_16_P15(int a, int b) +{ + opus_int64 res; + if (!VERIFY_SHORT(a) || !VERIFY_SHORT(b)) + { + fprintf (stderr, "MULT16_16_P15: inputs are not short: %d %d\n", a, b); +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + } + res = ((opus_int64)a)*b; + res += 16384; + if (!VERIFY_INT(res)) + { + fprintf (stderr, "MULT16_16_P15: overflow: %d*%d=%d\n", a, b, (int)res); +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + } + res >>= 15; + if (!VERIFY_SHORT(res)) + { + fprintf (stderr, "MULT16_16_P15: output is not short: %d*%d=%d\n", a, b, (int)res); +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + } + celt_mips+=2; + return res; +} + +#define DIV32_16(a, b) DIV32_16_(a, b, __FILE__, __LINE__) + +static OPUS_INLINE int DIV32_16_(opus_int64 a, opus_int64 b, char *file, int line) +{ + opus_int64 res; + if (b==0) + { + fprintf(stderr, "DIV32_16: divide by zero: %d/%d in %s: line %d\n", (int)a, (int)b, file, line); +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + return 0; + } + if (!VERIFY_INT(a) || !VERIFY_SHORT(b)) + { + fprintf (stderr, "DIV32_16: inputs are not int/short: %d %d in %s: line %d\n", (int)a, (int)b, file, line); +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + } + res = a/b; + if (!VERIFY_SHORT(res)) + { + fprintf (stderr, "DIV32_16: output is not short: %d / %d = %d in %s: line %d\n", (int)a,(int)b,(int)res, file, line); + if (res>32767) + res = 32767; + if (res<-32768) + res = -32768; +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + } + celt_mips+=35; + return res; +} + +#define DIV32(a, b) DIV32_(a, b, __FILE__, __LINE__) +static OPUS_INLINE int DIV32_(opus_int64 a, opus_int64 b, char *file, int line) +{ + opus_int64 res; + if (b==0) + { + fprintf(stderr, "DIV32: divide by zero: %d/%d in %s: line %d\n", (int)a, (int)b, file, line); +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + return 0; + } + + if (!VERIFY_INT(a) || !VERIFY_INT(b)) + { + fprintf (stderr, "DIV32: inputs are not int/short: %d %d in %s: line %d\n", (int)a, (int)b, file, line); +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + } + res = a/b; + if (!VERIFY_INT(res)) + { + fprintf (stderr, "DIV32: output is not int: %d in %s: line %d\n", (int)res, file, line); +#ifdef FIXED_DEBUG_ASSERT + celt_assert(0); +#endif + } + celt_mips+=70; + return res; +} + +static OPUS_INLINE opus_val16 SIG2WORD16_generic(celt_sig x) +{ + x = PSHR32(x, SIG_SHIFT); + x = MAX32(x, -32768); + x = MIN32(x, 32767); + return EXTRACT16(x); +} +#define SIG2WORD16(x) (SIG2WORD16_generic(x)) + + +#undef PRINT_MIPS +#define PRINT_MIPS(file) do {fprintf (file, "total complexity = %llu MIPS\n", celt_mips);} while (0); + +#endif diff --git a/components/opus/libopus/celt/fixed_generic.h b/components/opus/libopus/celt/fixed_generic.h new file mode 100644 index 0000000..5f4abda --- /dev/null +++ b/components/opus/libopus/celt/fixed_generic.h @@ -0,0 +1,178 @@ +/* Copyright (C) 2007-2009 Xiph.Org Foundation + Copyright (C) 2003-2008 Jean-Marc Valin + Copyright (C) 2007-2008 CSIRO */ +/** + @file fixed_generic.h + @brief Generic fixed-point operations +*/ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifndef FIXED_GENERIC_H +#define FIXED_GENERIC_H + +/** Multiply a 16-bit signed value by a 16-bit unsigned value. The result is a 32-bit signed value */ +#define MULT16_16SU(a,b) ((opus_val32)(opus_val16)(a)*(opus_val32)(opus_uint16)(b)) + +/** 16x32 multiplication, followed by a 16-bit shift right. Results fits in 32 bits */ +#if OPUS_FAST_INT64 +#define MULT16_32_Q16(a,b) ((opus_val32)SHR((opus_int64)((opus_val16)(a))*(b),16)) +#else +#define MULT16_32_Q16(a,b) ADD32(MULT16_16((a),SHR((b),16)), SHR(MULT16_16SU((a),((b)&0x0000ffff)),16)) +#endif + +/** 16x32 multiplication, followed by a 16-bit shift right (round-to-nearest). Results fits in 32 bits */ +#if OPUS_FAST_INT64 +#define MULT16_32_P16(a,b) ((opus_val32)PSHR((opus_int64)((opus_val16)(a))*(b),16)) +#else +#define MULT16_32_P16(a,b) ADD32(MULT16_16((a),SHR((b),16)), PSHR(MULT16_16SU((a),((b)&0x0000ffff)),16)) +#endif + +/** 16x32 multiplication, followed by a 15-bit shift right. Results fits in 32 bits */ +#if OPUS_FAST_INT64 +#define MULT16_32_Q15(a,b) ((opus_val32)SHR((opus_int64)((opus_val16)(a))*(b),15)) +#else +#define MULT16_32_Q15(a,b) ADD32(SHL(MULT16_16((a),SHR((b),16)),1), SHR(MULT16_16SU((a),((b)&0x0000ffff)),15)) +#endif + +/** 32x32 multiplication, followed by a 31-bit shift right. Results fits in 32 bits */ +#if OPUS_FAST_INT64 +#define MULT32_32_Q31(a,b) ((opus_val32)SHR((opus_int64)(a)*(opus_int64)(b),31)) +#else +#define MULT32_32_Q31(a,b) ADD32(ADD32(SHL(MULT16_16(SHR((a),16),SHR((b),16)),1), SHR(MULT16_16SU(SHR((a),16),((b)&0x0000ffff)),15)), SHR(MULT16_16SU(SHR((b),16),((a)&0x0000ffff)),15)) +#endif + +/** Compile-time conversion of float constant to 16-bit value */ +#define QCONST16(x,bits) ((opus_val16)(.5+(x)*(((opus_val32)1)<<(bits)))) + +/** Compile-time conversion of float constant to 32-bit value */ +#define QCONST32(x,bits) ((opus_val32)(.5+(x)*(((opus_val32)1)<<(bits)))) + +/** Negate a 16-bit value */ +#define NEG16(x) (-(x)) +/** Negate a 32-bit value */ +#define NEG32(x) (-(x)) + +/** Change a 32-bit value into a 16-bit value. The value is assumed to fit in 16-bit, otherwise the result is undefined */ +#define EXTRACT16(x) ((opus_val16)(x)) +/** Change a 16-bit value into a 32-bit value */ +#define EXTEND32(x) ((opus_val32)(x)) + +/** Arithmetic shift-right of a 16-bit value */ +#define SHR16(a,shift) ((a) >> (shift)) +/** Arithmetic shift-left of a 16-bit value */ +#define SHL16(a,shift) ((opus_int16)((opus_uint16)(a)<<(shift))) +/** Arithmetic shift-right of a 32-bit value */ +#define SHR32(a,shift) ((a) >> (shift)) +/** Arithmetic shift-left of a 32-bit value */ +#define SHL32(a,shift) ((opus_int32)((opus_uint32)(a)<<(shift))) + +/** 32-bit arithmetic shift right with rounding-to-nearest instead of rounding down */ +#define PSHR32(a,shift) (SHR32((a)+((EXTEND32(1)<<((shift))>>1)),shift)) +/** 32-bit arithmetic shift right where the argument can be negative */ +#define VSHR32(a, shift) (((shift)>0) ? SHR32(a, shift) : SHL32(a, -(shift))) + +/** "RAW" macros, should not be used outside of this header file */ +#define SHR(a,shift) ((a) >> (shift)) +#define SHL(a,shift) SHL32(a,shift) +#define PSHR(a,shift) (SHR((a)+((EXTEND32(1)<<((shift))>>1)),shift)) +#define SATURATE(x,a) (((x)>(a) ? (a) : (x)<-(a) ? -(a) : (x))) + +#define SATURATE16(x) (EXTRACT16((x)>32767 ? 32767 : (x)<-32768 ? -32768 : (x))) + +/** Shift by a and round-to-neareast 32-bit value. Result is a 16-bit value */ +#define ROUND16(x,a) (EXTRACT16(PSHR32((x),(a)))) +/** Shift by a and round-to-neareast 32-bit value. Result is a saturated 16-bit value */ +#define SROUND16(x,a) EXTRACT16(SATURATE(PSHR32(x,a), 32767)); + +/** Divide by two */ +#define HALF16(x) (SHR16(x,1)) +#define HALF32(x) (SHR32(x,1)) + +/** Add two 16-bit values */ +#define ADD16(a,b) ((opus_val16)((opus_val16)(a)+(opus_val16)(b))) +/** Subtract two 16-bit values */ +#define SUB16(a,b) ((opus_val16)(a)-(opus_val16)(b)) +/** Add two 32-bit values */ +#define ADD32(a,b) ((opus_val32)(a)+(opus_val32)(b)) +/** Subtract two 32-bit values */ +#define SUB32(a,b) ((opus_val32)(a)-(opus_val32)(b)) + +/** Add two 32-bit values, ignore any overflows */ +#define ADD32_ovflw(a,b) ((opus_val32)((opus_uint32)(a)+(opus_uint32)(b))) +/** Subtract two 32-bit values, ignore any overflows */ +#define SUB32_ovflw(a,b) ((opus_val32)((opus_uint32)(a)-(opus_uint32)(b))) +/* Avoid MSVC warning C4146: unary minus operator applied to unsigned type */ +/** Negate 32-bit value, ignore any overflows */ +#define NEG32_ovflw(a) ((opus_val32)(0-(opus_uint32)(a))) + +/** 16x16 multiplication where the result fits in 16 bits */ +#define MULT16_16_16(a,b) ((((opus_val16)(a))*((opus_val16)(b)))) + +/* (opus_val32)(opus_val16) gives TI compiler a hint that it's 16x16->32 multiply */ +/** 16x16 multiplication where the result fits in 32 bits */ +#define MULT16_16(a,b) (((opus_val32)(opus_val16)(a))*((opus_val32)(opus_val16)(b))) + +/** 16x16 multiply-add where the result fits in 32 bits */ +#define MAC16_16(c,a,b) (ADD32((c),MULT16_16((a),(b)))) +/** 16x32 multiply, followed by a 15-bit shift right and 32-bit add. + b must fit in 31 bits. + Result fits in 32 bits. */ +#define MAC16_32_Q15(c,a,b) ADD32((c),ADD32(MULT16_16((a),SHR((b),15)), SHR(MULT16_16((a),((b)&0x00007fff)),15))) + +/** 16x32 multiplication, followed by a 16-bit shift right and 32-bit add. + Results fits in 32 bits */ +#define MAC16_32_Q16(c,a,b) ADD32((c),ADD32(MULT16_16((a),SHR((b),16)), SHR(MULT16_16SU((a),((b)&0x0000ffff)),16))) + +#define MULT16_16_Q11_32(a,b) (SHR(MULT16_16((a),(b)),11)) +#define MULT16_16_Q11(a,b) (SHR(MULT16_16((a),(b)),11)) +#define MULT16_16_Q13(a,b) (SHR(MULT16_16((a),(b)),13)) +#define MULT16_16_Q14(a,b) (SHR(MULT16_16((a),(b)),14)) +#define MULT16_16_Q15(a,b) (SHR(MULT16_16((a),(b)),15)) + +#define MULT16_16_P13(a,b) (SHR(ADD32(4096,MULT16_16((a),(b))),13)) +#define MULT16_16_P14(a,b) (SHR(ADD32(8192,MULT16_16((a),(b))),14)) +#define MULT16_16_P15(a,b) (SHR(ADD32(16384,MULT16_16((a),(b))),15)) + +/** Divide a 32-bit value by a 16-bit value. Result fits in 16 bits */ +#define DIV32_16(a,b) ((opus_val16)(((opus_val32)(a))/((opus_val16)(b)))) + +/** Divide a 32-bit value by a 32-bit value. Result fits in 32 bits */ +#define DIV32(a,b) (((opus_val32)(a))/((opus_val32)(b))) + +#if defined(MIPSr1_ASM) +#include "mips/fixed_generic_mipsr1.h" +#endif + +static OPUS_INLINE opus_val16 SIG2WORD16_generic(celt_sig x) +{ + x = PSHR32(x, SIG_SHIFT); + x = MAX32(x, -32768); + x = MIN32(x, 32767); + return EXTRACT16(x); +} +#define SIG2WORD16(x) (SIG2WORD16_generic(x)) + +#endif diff --git a/components/opus/libopus/celt/float_cast.h b/components/opus/libopus/celt/float_cast.h new file mode 100644 index 0000000..889dae9 --- /dev/null +++ b/components/opus/libopus/celt/float_cast.h @@ -0,0 +1,146 @@ +/* Copyright (C) 2001 Erik de Castro Lopo */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/* Version 1.1 */ + +#ifndef FLOAT_CAST_H +#define FLOAT_CAST_H + + +#include "arch.h" + +/*============================================================================ +** On Intel Pentium processors (especially PIII and probably P4), converting +** from float to int is very slow. To meet the C specs, the code produced by +** most C compilers targeting Pentium needs to change the FPU rounding mode +** before the float to int conversion is performed. +** +** Changing the FPU rounding mode causes the FPU pipeline to be flushed. It +** is this flushing of the pipeline which is so slow. +** +** Fortunately the ISO C99 specifications define the functions lrint, lrintf, +** llrint and llrintf which fix this problem as a side effect. +** +** On Unix-like systems, the configure process should have detected the +** presence of these functions. If they weren't found we have to replace them +** here with a standard C cast. +*/ + +/* +** The C99 prototypes for lrint and lrintf are as follows: +** +** long int lrintf (float x) ; +** long int lrint (double x) ; +*/ + +/* The presence of the required functions are detected during the configure +** process and the values HAVE_LRINT and HAVE_LRINTF are set accordingly in +** the config.h file. +*/ + +/* With GCC, when SSE is available, the fastest conversion is cvtss2si. */ +#if defined(__GNUC__) && defined(__SSE__) + +#include +static OPUS_INLINE opus_int32 float2int(float x) {return _mm_cvt_ss2si(_mm_set_ss(x));} + +#elif defined(HAVE_LRINTF) + +/* These defines enable functionality introduced with the 1999 ISO C +** standard. They must be defined before the inclusion of math.h to +** engage them. If optimisation is enabled, these functions will be +** inlined. With optimisation switched off, you have to link in the +** maths library using -lm. +*/ + +#define _ISOC9X_SOURCE 1 +#define _ISOC99_SOURCE 1 + +#define __USE_ISOC9X 1 +#define __USE_ISOC99 1 + +#include +#define float2int(x) lrintf(x) + +#elif (defined(HAVE_LRINT)) + +#define _ISOC9X_SOURCE 1 +#define _ISOC99_SOURCE 1 + +#define __USE_ISOC9X 1 +#define __USE_ISOC99 1 + +#include +#define float2int(x) lrint(x) + +#elif (defined(_MSC_VER) && _MSC_VER >= 1400) && (defined(_M_X64) || (defined(_M_IX86_FP) && _M_IX86_FP >= 1)) + #include + + static __inline long int float2int(float value) + { + return _mm_cvtss_si32(_mm_load_ss(&value)); + } +#elif (defined(_MSC_VER) && _MSC_VER >= 1400) && defined (_M_IX86) + #include + + /* Win32 doesn't seem to have these functions. + ** Therefore implement OPUS_INLINE versions of these functions here. + */ + + static __inline long int + float2int (float flt) + { int intgr; + + _asm + { fld flt + fistp intgr + } ; + + return intgr ; + } + +#else + +#if (defined(__GNUC__) && defined(__STDC__) && __STDC__ && __STDC_VERSION__ >= 199901L) + /* supported by gcc in C99 mode, but not by all other compilers */ + #warning "Don't have the functions lrint() and lrintf ()." + #warning "Replacing these functions with a standard C cast." +#endif /* __STDC_VERSION__ >= 199901L */ + #include + #define float2int(flt) ((int)(floor(.5+flt))) +#endif + +#ifndef DISABLE_FLOAT_API +static OPUS_INLINE opus_int16 FLOAT2INT16(float x) +{ + x = x*CELT_SIG_SCALE; + x = MAX32(x, -32768); + x = MIN32(x, 32767); + return (opus_int16)float2int(x); +} +#endif /* DISABLE_FLOAT_API */ + +#endif /* FLOAT_CAST_H */ diff --git a/components/opus/libopus/celt/kiss_fft.c b/components/opus/libopus/celt/kiss_fft.c new file mode 100644 index 0000000..8377516 --- /dev/null +++ b/components/opus/libopus/celt/kiss_fft.c @@ -0,0 +1,604 @@ +/*Copyright (c) 2003-2004, Mark Borgerding + Lots of modifications by Jean-Marc Valin + Copyright (c) 2005-2007, Xiph.Org Foundation + Copyright (c) 2008, Xiph.Org Foundation, CSIRO + + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE.*/ + +/* This code is originally from Mark Borgerding's KISS-FFT but has been + heavily modified to better suit Opus */ + +#ifndef SKIP_CONFIG_H +# ifdef HAVE_CONFIG_H +# include "config.h" +# endif +#endif + +#include "_kiss_fft_guts.h" +#include "arch.h" +#include "os_support.h" +#include "mathops.h" +#include "stack_alloc.h" + +/* The guts header contains all the multiplication and addition macros that are defined for + complex numbers. It also delares the kf_ internal functions. +*/ + +static void kf_bfly2( + kiss_fft_cpx * Fout, + int m, + int N + ) +{ + kiss_fft_cpx * Fout2; + int i; + (void)m; +#ifdef CUSTOM_MODES + if (m==1) + { + celt_assert(m==1); + for (i=0;itwiddles; + /* m is guaranteed to be a multiple of 4. */ + for (j=0;jtwiddles[fstride*m]; +#endif + for (i=0;itwiddles; + /* For non-custom modes, m is guaranteed to be a multiple of 4. */ + k=m; + do { + + C_MUL(scratch[1],Fout[m] , *tw1); + C_MUL(scratch[2],Fout[m2] , *tw2); + + C_ADD(scratch[3],scratch[1],scratch[2]); + C_SUB(scratch[0],scratch[1],scratch[2]); + tw1 += fstride; + tw2 += fstride*2; + + Fout[m].r = SUB32_ovflw(Fout->r, HALF_OF(scratch[3].r)); + Fout[m].i = SUB32_ovflw(Fout->i, HALF_OF(scratch[3].i)); + + C_MULBYSCALAR( scratch[0] , epi3.i ); + + C_ADDTO(*Fout,scratch[3]); + + Fout[m2].r = ADD32_ovflw(Fout[m].r, scratch[0].i); + Fout[m2].i = SUB32_ovflw(Fout[m].i, scratch[0].r); + + Fout[m].r = SUB32_ovflw(Fout[m].r, scratch[0].i); + Fout[m].i = ADD32_ovflw(Fout[m].i, scratch[0].r); + + ++Fout; + } while(--k); + } +} + + +#ifndef OVERRIDE_kf_bfly5 +static void kf_bfly5( + kiss_fft_cpx * Fout, + const size_t fstride, + const kiss_fft_state *st, + int m, + int N, + int mm + ) +{ + kiss_fft_cpx *Fout0,*Fout1,*Fout2,*Fout3,*Fout4; + int i, u; + kiss_fft_cpx scratch[13]; + const kiss_twiddle_cpx *tw; + kiss_twiddle_cpx ya,yb; + kiss_fft_cpx * Fout_beg = Fout; + +#ifdef FIXED_POINT + ya.r = 10126; + ya.i = -31164; + yb.r = -26510; + yb.i = -19261; +#else + ya = st->twiddles[fstride*m]; + yb = st->twiddles[fstride*2*m]; +#endif + tw=st->twiddles; + + for (i=0;ir = ADD32_ovflw(Fout0->r, ADD32_ovflw(scratch[7].r, scratch[8].r)); + Fout0->i = ADD32_ovflw(Fout0->i, ADD32_ovflw(scratch[7].i, scratch[8].i)); + + scratch[5].r = ADD32_ovflw(scratch[0].r, ADD32_ovflw(S_MUL(scratch[7].r,ya.r), S_MUL(scratch[8].r,yb.r))); + scratch[5].i = ADD32_ovflw(scratch[0].i, ADD32_ovflw(S_MUL(scratch[7].i,ya.r), S_MUL(scratch[8].i,yb.r))); + + scratch[6].r = ADD32_ovflw(S_MUL(scratch[10].i,ya.i), S_MUL(scratch[9].i,yb.i)); + scratch[6].i = NEG32_ovflw(ADD32_ovflw(S_MUL(scratch[10].r,ya.i), S_MUL(scratch[9].r,yb.i))); + + C_SUB(*Fout1,scratch[5],scratch[6]); + C_ADD(*Fout4,scratch[5],scratch[6]); + + scratch[11].r = ADD32_ovflw(scratch[0].r, ADD32_ovflw(S_MUL(scratch[7].r,yb.r), S_MUL(scratch[8].r,ya.r))); + scratch[11].i = ADD32_ovflw(scratch[0].i, ADD32_ovflw(S_MUL(scratch[7].i,yb.r), S_MUL(scratch[8].i,ya.r))); + scratch[12].r = SUB32_ovflw(S_MUL(scratch[9].i,ya.i), S_MUL(scratch[10].i,yb.i)); + scratch[12].i = SUB32_ovflw(S_MUL(scratch[10].r,yb.i), S_MUL(scratch[9].r,ya.i)); + + C_ADD(*Fout2,scratch[11],scratch[12]); + C_SUB(*Fout3,scratch[11],scratch[12]); + + ++Fout0;++Fout1;++Fout2;++Fout3;++Fout4; + } + } +} +#endif /* OVERRIDE_kf_bfly5 */ + + +#endif + + +#ifdef CUSTOM_MODES + +static +void compute_bitrev_table( + int Fout, + opus_int16 *f, + const size_t fstride, + int in_stride, + opus_int16 * factors, + const kiss_fft_state *st + ) +{ + const int p=*factors++; /* the radix */ + const int m=*factors++; /* stage's fft length/p */ + + /*printf ("fft %d %d %d %d %d %d\n", p*m, m, p, s2, fstride*in_stride, N);*/ + if (m==1) + { + int j; + for (j=0;j32000 || (opus_int32)p*(opus_int32)p > n) + p = n; /* no more factors, skip to end */ + } + n /= p; +#ifdef RADIX_TWO_ONLY + if (p!=2 && p != 4) +#else + if (p>5) +#endif + { + return 0; + } + facbuf[2*stages] = p; + if (p==2 && stages > 1) + { + facbuf[2*stages] = 4; + facbuf[2] = 2; + } + stages++; + } while (n > 1); + n = nbak; + /* Reverse the order to get the radix 4 at the end, so we can use the + fast degenerate case. It turns out that reversing the order also + improves the noise behaviour. */ + for (i=0;i= memneeded) + st = (kiss_fft_state*)mem; + *lenmem = memneeded; + } + if (st) { + opus_int16 *bitrev; + kiss_twiddle_cpx *twiddles; + + st->nfft=nfft; +#ifdef FIXED_POINT + st->scale_shift = celt_ilog2(st->nfft); + if (st->nfft == 1<scale_shift) + st->scale = Q15ONE; + else + st->scale = (1073741824+st->nfft/2)/st->nfft>>(15-st->scale_shift); +#else + st->scale = 1.f/nfft; +#endif + if (base != NULL) + { + st->twiddles = base->twiddles; + st->shift = 0; + while (st->shift < 32 && nfft<shift != base->nfft) + st->shift++; + if (st->shift>=32) + goto fail; + } else { + st->twiddles = twiddles = (kiss_twiddle_cpx*)KISS_FFT_MALLOC(sizeof(kiss_twiddle_cpx)*nfft); + compute_twiddles(twiddles, nfft); + st->shift = -1; + } + if (!kf_factor(nfft,st->factors)) + { + goto fail; + } + + /* bitrev */ + st->bitrev = bitrev = (opus_int16*)KISS_FFT_MALLOC(sizeof(opus_int16)*nfft); + if (st->bitrev==NULL) + goto fail; + compute_bitrev_table(0, bitrev, 1,1, st->factors,st); + + /* Initialize architecture specific fft parameters */ + if (opus_fft_alloc_arch(st, arch)) + goto fail; + } + return st; +fail: + opus_fft_free(st, arch); + return NULL; +} + +kiss_fft_state *opus_fft_alloc(int nfft,void * mem,size_t * lenmem, int arch) +{ + return opus_fft_alloc_twiddles(nfft, mem, lenmem, NULL, arch); +} + +void opus_fft_free_arch_c(kiss_fft_state *st) { + (void)st; +} + +void opus_fft_free(const kiss_fft_state *cfg, int arch) +{ + if (cfg) + { + opus_fft_free_arch((kiss_fft_state *)cfg, arch); + opus_free((opus_int16*)cfg->bitrev); + if (cfg->shift < 0) + opus_free((kiss_twiddle_cpx*)cfg->twiddles); + opus_free((kiss_fft_state*)cfg); + } +} + +#endif /* CUSTOM_MODES */ + +void opus_fft_impl(const kiss_fft_state *st,kiss_fft_cpx *fout) +{ + int m2, m; + int p; + int L; + int fstride[MAXFACTORS]; + int i; + int shift; + + /* st->shift can be -1 */ + shift = st->shift>0 ? st->shift : 0; + + fstride[0] = 1; + L=0; + do { + p = st->factors[2*L]; + m = st->factors[2*L+1]; + fstride[L+1] = fstride[L]*p; + L++; + } while(m!=1); + m = st->factors[2*L-1]; + for (i=L-1;i>=0;i--) + { + if (i!=0) + m2 = st->factors[2*i-1]; + else + m2 = 1; + switch (st->factors[2*i]) + { + case 2: + kf_bfly2(fout, m, fstride[i]); + break; + case 4: + kf_bfly4(fout,fstride[i]<scale_shift-1; +#endif + scale = st->scale; + + celt_assert2 (fin != fout, "In-place FFT not supported"); + /* Bit-reverse the input */ + for (i=0;infft;i++) + { + kiss_fft_cpx x = fin[i]; + fout[st->bitrev[i]].r = SHR32(MULT16_32_Q16(scale, x.r), scale_shift); + fout[st->bitrev[i]].i = SHR32(MULT16_32_Q16(scale, x.i), scale_shift); + } + opus_fft_impl(st, fout); +} + + +void opus_ifft_c(const kiss_fft_state *st,const kiss_fft_cpx *fin,kiss_fft_cpx *fout) +{ + int i; + celt_assert2 (fin != fout, "In-place FFT not supported"); + /* Bit-reverse the input */ + for (i=0;infft;i++) + fout[st->bitrev[i]] = fin[i]; + for (i=0;infft;i++) + fout[i].i = -fout[i].i; + opus_fft_impl(st, fout); + for (i=0;infft;i++) + fout[i].i = -fout[i].i; +} diff --git a/components/opus/libopus/celt/kiss_fft.h b/components/opus/libopus/celt/kiss_fft.h new file mode 100644 index 0000000..bffa2bf --- /dev/null +++ b/components/opus/libopus/celt/kiss_fft.h @@ -0,0 +1,200 @@ +/*Copyright (c) 2003-2004, Mark Borgerding + Lots of modifications by Jean-Marc Valin + Copyright (c) 2005-2007, Xiph.Org Foundation + Copyright (c) 2008, Xiph.Org Foundation, CSIRO + + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE.*/ + +#ifndef KISS_FFT_H +#define KISS_FFT_H + +#include +#include +#include "arch.h" +#include "cpu_support.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef USE_SIMD +# include +# define kiss_fft_scalar __m128 +#define KISS_FFT_MALLOC(nbytes) memalign(16,nbytes) +#else +#define KISS_FFT_MALLOC opus_alloc +#endif + +#ifdef FIXED_POINT +#include "arch.h" + +# define kiss_fft_scalar opus_int32 +# define kiss_twiddle_scalar opus_int16 + + +#else +# ifndef kiss_fft_scalar +/* default is float */ +# define kiss_fft_scalar float +# define kiss_twiddle_scalar float +# define KF_SUFFIX _celt_single +# endif +#endif + +typedef struct { + kiss_fft_scalar r; + kiss_fft_scalar i; +}kiss_fft_cpx; + +typedef struct { + kiss_twiddle_scalar r; + kiss_twiddle_scalar i; +}kiss_twiddle_cpx; + +#define MAXFACTORS 8 +/* e.g. an fft of length 128 has 4 factors + as far as kissfft is concerned + 4*4*4*2 + */ + +typedef struct arch_fft_state{ + int is_supported; + void *priv; +} arch_fft_state; + +typedef struct kiss_fft_state{ + int nfft; + opus_val16 scale; +#ifdef FIXED_POINT + int scale_shift; +#endif + int shift; + opus_int16 factors[2*MAXFACTORS]; + const opus_int16 *bitrev; + const kiss_twiddle_cpx *twiddles; + arch_fft_state *arch_fft; +} kiss_fft_state; + +#if defined(HAVE_ARM_NE10) +#include "arm/fft_arm.h" +#endif + +/*typedef struct kiss_fft_state* kiss_fft_cfg;*/ + +/** + * opus_fft_alloc + * + * Initialize a FFT (or IFFT) algorithm's cfg/state buffer. + * + * typical usage: kiss_fft_cfg mycfg=opus_fft_alloc(1024,0,NULL,NULL); + * + * The return value from fft_alloc is a cfg buffer used internally + * by the fft routine or NULL. + * + * If lenmem is NULL, then opus_fft_alloc will allocate a cfg buffer using malloc. + * The returned value should be free()d when done to avoid memory leaks. + * + * The state can be placed in a user supplied buffer 'mem': + * If lenmem is not NULL and mem is not NULL and *lenmem is large enough, + * then the function places the cfg in mem and the size used in *lenmem + * and returns mem. + * + * If lenmem is not NULL and ( mem is NULL or *lenmem is not large enough), + * then the function returns NULL and places the minimum cfg + * buffer size in *lenmem. + * */ + +kiss_fft_state *opus_fft_alloc_twiddles(int nfft,void * mem,size_t * lenmem, const kiss_fft_state *base, int arch); + +kiss_fft_state *opus_fft_alloc(int nfft,void * mem,size_t * lenmem, int arch); + +/** + * opus_fft(cfg,in_out_buf) + * + * Perform an FFT on a complex input buffer. + * for a forward FFT, + * fin should be f[0] , f[1] , ... ,f[nfft-1] + * fout will be F[0] , F[1] , ... ,F[nfft-1] + * Note that each element is complex and can be accessed like + f[k].r and f[k].i + * */ +void opus_fft_c(const kiss_fft_state *cfg,const kiss_fft_cpx *fin,kiss_fft_cpx *fout); +void opus_ifft_c(const kiss_fft_state *cfg,const kiss_fft_cpx *fin,kiss_fft_cpx *fout); + +void opus_fft_impl(const kiss_fft_state *st,kiss_fft_cpx *fout); +void opus_ifft_impl(const kiss_fft_state *st,kiss_fft_cpx *fout); + +void opus_fft_free(const kiss_fft_state *cfg, int arch); + + +void opus_fft_free_arch_c(kiss_fft_state *st); +int opus_fft_alloc_arch_c(kiss_fft_state *st); + +#if !defined(OVERRIDE_OPUS_FFT) +/* Is run-time CPU detection enabled on this platform? */ +#if defined(OPUS_HAVE_RTCD) && (defined(HAVE_ARM_NE10)) + +extern int (*const OPUS_FFT_ALLOC_ARCH_IMPL[OPUS_ARCHMASK+1])( + kiss_fft_state *st); + +#define opus_fft_alloc_arch(_st, arch) \ + ((*OPUS_FFT_ALLOC_ARCH_IMPL[(arch)&OPUS_ARCHMASK])(_st)) + +extern void (*const OPUS_FFT_FREE_ARCH_IMPL[OPUS_ARCHMASK+1])( + kiss_fft_state *st); +#define opus_fft_free_arch(_st, arch) \ + ((*OPUS_FFT_FREE_ARCH_IMPL[(arch)&OPUS_ARCHMASK])(_st)) + +extern void (*const OPUS_FFT[OPUS_ARCHMASK+1])(const kiss_fft_state *cfg, + const kiss_fft_cpx *fin, kiss_fft_cpx *fout); +#define opus_fft(_cfg, _fin, _fout, arch) \ + ((*OPUS_FFT[(arch)&OPUS_ARCHMASK])(_cfg, _fin, _fout)) + +extern void (*const OPUS_IFFT[OPUS_ARCHMASK+1])(const kiss_fft_state *cfg, + const kiss_fft_cpx *fin, kiss_fft_cpx *fout); +#define opus_ifft(_cfg, _fin, _fout, arch) \ + ((*OPUS_IFFT[(arch)&OPUS_ARCHMASK])(_cfg, _fin, _fout)) + +#else /* else for if defined(OPUS_HAVE_RTCD) && (defined(HAVE_ARM_NE10)) */ + +#define opus_fft_alloc_arch(_st, arch) \ + ((void)(arch), opus_fft_alloc_arch_c(_st)) + +#define opus_fft_free_arch(_st, arch) \ + ((void)(arch), opus_fft_free_arch_c(_st)) + +#define opus_fft(_cfg, _fin, _fout, arch) \ + ((void)(arch), opus_fft_c(_cfg, _fin, _fout)) + +#define opus_ifft(_cfg, _fin, _fout, arch) \ + ((void)(arch), opus_ifft_c(_cfg, _fin, _fout)) + +#endif /* end if defined(OPUS_HAVE_RTCD) && (defined(HAVE_ARM_NE10)) */ +#endif /* end if !defined(OVERRIDE_OPUS_FFT) */ + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/components/opus/libopus/celt/laplace.c b/components/opus/libopus/celt/laplace.c new file mode 100644 index 0000000..a7bca87 --- /dev/null +++ b/components/opus/libopus/celt/laplace.c @@ -0,0 +1,134 @@ +/* Copyright (c) 2007 CSIRO + Copyright (c) 2007-2009 Xiph.Org Foundation + Written by Jean-Marc Valin */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "laplace.h" +#include "mathops.h" + +/* The minimum probability of an energy delta (out of 32768). */ +#define LAPLACE_LOG_MINP (0) +#define LAPLACE_MINP (1<>15; +} + +void ec_laplace_encode(ec_enc *enc, int *value, unsigned fs, int decay) +{ + unsigned fl; + int val = *value; + fl = 0; + if (val) + { + int s; + int i; + s = -(val<0); + val = (val+s)^s; + fl = fs; + fs = ec_laplace_get_freq1(fs, decay); + /* Search the decaying part of the PDF.*/ + for (i=1; fs > 0 && i < val; i++) + { + fs *= 2; + fl += fs+2*LAPLACE_MINP; + fs = (fs*(opus_int32)decay)>>15; + } + /* Everything beyond that has probability LAPLACE_MINP. */ + if (!fs) + { + int di; + int ndi_max; + ndi_max = (32768-fl+LAPLACE_MINP-1)>>LAPLACE_LOG_MINP; + ndi_max = (ndi_max-s)>>1; + di = IMIN(val - i, ndi_max - 1); + fl += (2*di+1+s)*LAPLACE_MINP; + fs = IMIN(LAPLACE_MINP, 32768-fl); + *value = (i+di+s)^s; + } + else + { + fs += LAPLACE_MINP; + fl += fs&~s; + } + celt_assert(fl+fs<=32768); + celt_assert(fs>0); + } + ec_encode_bin(enc, fl, fl+fs, 15); +} + +int ec_laplace_decode(ec_dec *dec, unsigned fs, int decay) +{ + int val=0; + unsigned fl; + unsigned fm; + fm = ec_decode_bin(dec, 15); + fl = 0; + if (fm >= fs) + { + val++; + fl = fs; + fs = ec_laplace_get_freq1(fs, decay)+LAPLACE_MINP; + /* Search the decaying part of the PDF.*/ + while(fs > LAPLACE_MINP && fm >= fl+2*fs) + { + fs *= 2; + fl += fs; + fs = ((fs-2*LAPLACE_MINP)*(opus_int32)decay)>>15; + fs += LAPLACE_MINP; + val++; + } + /* Everything beyond that has probability LAPLACE_MINP. */ + if (fs <= LAPLACE_MINP) + { + int di; + di = (fm-fl)>>(LAPLACE_LOG_MINP+1); + val += di; + fl += 2*di*LAPLACE_MINP; + } + if (fm < fl+fs) + val = -val; + else + fl += fs; + } + celt_assert(fl<32768); + celt_assert(fs>0); + celt_assert(fl<=fm); + celt_assert(fm>1; + b=1U<>=1; + bshift--; + } + while(bshift>=0); + return g; +} + +#ifdef FIXED_POINT + +opus_val32 frac_div32(opus_val32 a, opus_val32 b) +{ + opus_val16 rcp; + opus_val32 result, rem; + int shift = celt_ilog2(b)-29; + a = VSHR32(a,shift); + b = VSHR32(b,shift); + /* 16-bit reciprocal */ + rcp = ROUND16(celt_rcp(ROUND16(b,16)),3); + result = MULT16_32_Q15(rcp, a); + rem = PSHR32(a,2)-MULT32_32_Q31(result, b); + result = ADD32(result, SHL32(MULT16_32_Q15(rcp, rem),2)); + if (result >= 536870912) /* 2^29 */ + return 2147483647; /* 2^31 - 1 */ + else if (result <= -536870912) /* -2^29 */ + return -2147483647; /* -2^31 */ + else + return SHL32(result, 2); +} + +/** Reciprocal sqrt approximation in the range [0.25,1) (Q16 in, Q14 out) */ +opus_val16 celt_rsqrt_norm(opus_val32 x) +{ + opus_val16 n; + opus_val16 r; + opus_val16 r2; + opus_val16 y; + /* Range of n is [-16384,32767] ([-0.5,1) in Q15). */ + n = x-32768; + /* Get a rough initial guess for the root. + The optimal minimax quadratic approximation (using relative error) is + r = 1.437799046117536+n*(-0.823394375837328+n*0.4096419668459485). + Coefficients here, and the final result r, are Q14.*/ + r = ADD16(23557, MULT16_16_Q15(n, ADD16(-13490, MULT16_16_Q15(n, 6713)))); + /* We want y = x*r*r-1 in Q15, but x is 32-bit Q16 and r is Q14. + We can compute the result from n and r using Q15 multiplies with some + adjustment, carefully done to avoid overflow. + Range of y is [-1564,1594]. */ + r2 = MULT16_16_Q15(r, r); + y = SHL16(SUB16(ADD16(MULT16_16_Q15(r2, n), r2), 16384), 1); + /* Apply a 2nd-order Householder iteration: r += r*y*(y*0.375-0.5). + This yields the Q14 reciprocal square root of the Q16 x, with a maximum + relative error of 1.04956E-4, a (relative) RMSE of 2.80979E-5, and a + peak absolute error of 2.26591/16384. */ + return ADD16(r, MULT16_16_Q15(r, MULT16_16_Q15(y, + SUB16(MULT16_16_Q15(y, 12288), 16384)))); +} + +/** Sqrt approximation (QX input, QX/2 output) */ +opus_val32 celt_sqrt(opus_val32 x) +{ + int k; + opus_val16 n; + opus_val32 rt; + static const opus_val16 C[5] = {23175, 11561, -3011, 1699, -664}; + if (x==0) + return 0; + else if (x>=1073741824) + return 32767; + k = (celt_ilog2(x)>>1)-7; + x = VSHR32(x, 2*k); + n = x-32768; + rt = ADD16(C[0], MULT16_16_Q15(n, ADD16(C[1], MULT16_16_Q15(n, ADD16(C[2], + MULT16_16_Q15(n, ADD16(C[3], MULT16_16_Q15(n, (C[4]))))))))); + rt = VSHR32(rt,7-k); + return rt; +} + +#define L1 32767 +#define L2 -7651 +#define L3 8277 +#define L4 -626 + +static OPUS_INLINE opus_val16 _celt_cos_pi_2(opus_val16 x) +{ + opus_val16 x2; + + x2 = MULT16_16_P15(x,x); + return ADD16(1,MIN16(32766,ADD32(SUB16(L1,x2), MULT16_16_P15(x2, ADD32(L2, MULT16_16_P15(x2, ADD32(L3, MULT16_16_P15(L4, x2 + )))))))); +} + +#undef L1 +#undef L2 +#undef L3 +#undef L4 + +opus_val16 celt_cos_norm(opus_val32 x) +{ + x = x&0x0001ffff; + if (x>SHL32(EXTEND32(1), 16)) + x = SUB32(SHL32(EXTEND32(1), 17),x); + if (x&0x00007fff) + { + if (x0); + i = celt_ilog2(x); + /* n is Q15 with range [0,1). */ + n = VSHR32(x,i-15)-32768; + /* Start with a linear approximation: + r = 1.8823529411764706-0.9411764705882353*n. + The coefficients and the result are Q14 in the range [15420,30840].*/ + r = ADD16(30840, MULT16_16_Q15(-15420, n)); + /* Perform two Newton iterations: + r -= r*((r*n)-1.Q15) + = r*((r*n)+(r-1.Q15)). */ + r = SUB16(r, MULT16_16_Q15(r, + ADD16(MULT16_16_Q15(r, n), ADD16(r, -32768)))); + /* We subtract an extra 1 in the second iteration to avoid overflow; it also + neatly compensates for truncation error in the rest of the process. */ + r = SUB16(r, ADD16(1, MULT16_16_Q15(r, + ADD16(MULT16_16_Q15(r, n), ADD16(r, -32768))))); + /* r is now the Q15 solution to 2/(n+1), with a maximum relative error + of 7.05346E-5, a (relative) RMSE of 2.14418E-5, and a peak absolute + error of 1.24665/32768. */ + return VSHR32(EXTEND32(r),i-16); +} + +#endif diff --git a/components/opus/libopus/celt/mathops.h b/components/opus/libopus/celt/mathops.h new file mode 100644 index 0000000..5e86ff0 --- /dev/null +++ b/components/opus/libopus/celt/mathops.h @@ -0,0 +1,290 @@ +/* Copyright (c) 2002-2008 Jean-Marc Valin + Copyright (c) 2007-2008 CSIRO + Copyright (c) 2007-2009 Xiph.Org Foundation + Written by Jean-Marc Valin */ +/** + @file mathops.h + @brief Various math functions +*/ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifndef MATHOPS_H +#define MATHOPS_H + +#include "arch.h" +#include "entcode.h" +#include "os_support.h" + +#define PI 3.141592653f + +/* Multiplies two 16-bit fractional values. Bit-exactness of this macro is important */ +#define FRAC_MUL16(a,b) ((16384+((opus_int32)(opus_int16)(a)*(opus_int16)(b)))>>15) + +unsigned isqrt32(opus_uint32 _val); + +/* CELT doesn't need it for fixed-point, by analysis.c does. */ +#if !defined(FIXED_POINT) || defined(ANALYSIS_C) +#define cA 0.43157974f +#define cB 0.67848403f +#define cC 0.08595542f +#define cE ((float)PI/2) +static OPUS_INLINE float fast_atan2f(float y, float x) { + float x2, y2; + x2 = x*x; + y2 = y*y; + /* For very small values, we don't care about the answer, so + we can just return 0. */ + if (x2 + y2 < 1e-18f) + { + return 0; + } + if(x2>23)-127; + in.i -= integer<<23; + frac = in.f - 1.5f; + frac = -0.41445418f + frac*(0.95909232f + + frac*(-0.33951290f + frac*0.16541097f)); + return 1+integer+frac; +} + +/** Base-2 exponential approximation (2^x). */ +static OPUS_INLINE float celt_exp2(float x) +{ + int integer; + float frac; + union { + float f; + opus_uint32 i; + } res; + integer = floor(x); + if (integer < -50) + return 0; + frac = x-integer; + /* K0 = 1, K1 = log(2), K2 = 3-4*log(2), K3 = 3*log(2) - 2 */ + res.f = 0.99992522f + frac * (0.69583354f + + frac * (0.22606716f + 0.078024523f*frac)); + res.i = (res.i + (integer<<23)) & 0x7fffffff; + return res.f; +} + +#else +#define celt_log2(x) ((float)(1.442695040888963387*log(x))) +#define celt_exp2(x) ((float)exp(0.6931471805599453094*(x))) +#endif + +#endif + +#ifdef FIXED_POINT + +#include "os_support.h" + +#ifndef OVERRIDE_CELT_ILOG2 +/** Integer log in base2. Undefined for zero and negative numbers */ +static OPUS_INLINE opus_int16 celt_ilog2(opus_int32 x) +{ + celt_sig_assert(x>0); + return EC_ILOG(x)-1; +} +#endif + + +/** Integer log in base2. Defined for zero, but not for negative numbers */ +static OPUS_INLINE opus_int16 celt_zlog2(opus_val32 x) +{ + return x <= 0 ? 0 : celt_ilog2(x); +} + +opus_val16 celt_rsqrt_norm(opus_val32 x); + +opus_val32 celt_sqrt(opus_val32 x); + +opus_val16 celt_cos_norm(opus_val32 x); + +/** Base-2 logarithm approximation (log2(x)). (Q14 input, Q10 output) */ +static OPUS_INLINE opus_val16 celt_log2(opus_val32 x) +{ + int i; + opus_val16 n, frac; + /* -0.41509302963303146, 0.9609890551383969, -0.31836011537636605, + 0.15530808010959576, -0.08556153059057618 */ + static const opus_val16 C[5] = {-6801+(1<<(13-DB_SHIFT)), 15746, -5217, 2545, -1401}; + if (x==0) + return -32767; + i = celt_ilog2(x); + n = VSHR32(x,i-15)-32768-16384; + frac = ADD16(C[0], MULT16_16_Q15(n, ADD16(C[1], MULT16_16_Q15(n, ADD16(C[2], MULT16_16_Q15(n, ADD16(C[3], MULT16_16_Q15(n, C[4])))))))); + return SHL16(i-13,DB_SHIFT)+SHR16(frac,14-DB_SHIFT); +} + +/* + K0 = 1 + K1 = log(2) + K2 = 3-4*log(2) + K3 = 3*log(2) - 2 +*/ +#define D0 16383 +#define D1 22804 +#define D2 14819 +#define D3 10204 + +static OPUS_INLINE opus_val32 celt_exp2_frac(opus_val16 x) +{ + opus_val16 frac; + frac = SHL16(x, 4); + return ADD16(D0, MULT16_16_Q15(frac, ADD16(D1, MULT16_16_Q15(frac, ADD16(D2 , MULT16_16_Q15(D3,frac)))))); +} +/** Base-2 exponential approximation (2^x). (Q10 input, Q16 output) */ +static OPUS_INLINE opus_val32 celt_exp2(opus_val16 x) +{ + int integer; + opus_val16 frac; + integer = SHR16(x,10); + if (integer>14) + return 0x7f000000; + else if (integer < -15) + return 0; + frac = celt_exp2_frac(x-SHL16(integer,10)); + return VSHR32(EXTEND32(frac), -integer-2); +} + +opus_val32 celt_rcp(opus_val32 x); + +#define celt_div(a,b) MULT32_32_Q31((opus_val32)(a),celt_rcp(b)) + +opus_val32 frac_div32(opus_val32 a, opus_val32 b); + +#define M1 32767 +#define M2 -21 +#define M3 -11943 +#define M4 4936 + +/* Atan approximation using a 4th order polynomial. Input is in Q15 format + and normalized by pi/4. Output is in Q15 format */ +static OPUS_INLINE opus_val16 celt_atan01(opus_val16 x) +{ + return MULT16_16_P15(x, ADD32(M1, MULT16_16_P15(x, ADD32(M2, MULT16_16_P15(x, ADD32(M3, MULT16_16_P15(M4, x))))))); +} + +#undef M1 +#undef M2 +#undef M3 +#undef M4 + +/* atan2() approximation valid for positive input values */ +static OPUS_INLINE opus_val16 celt_atan2p(opus_val16 y, opus_val16 x) +{ + if (y < x) + { + opus_val32 arg; + arg = celt_div(SHL32(EXTEND32(y),15),x); + if (arg >= 32767) + arg = 32767; + return SHR16(celt_atan01(EXTRACT16(arg)),1); + } else { + opus_val32 arg; + arg = celt_div(SHL32(EXTEND32(x),15),y); + if (arg >= 32767) + arg = 32767; + return 25736-SHR16(celt_atan01(EXTRACT16(arg)),1); + } +} + +#endif /* FIXED_POINT */ +#endif /* MATHOPS_H */ diff --git a/components/opus/libopus/celt/mdct.c b/components/opus/libopus/celt/mdct.c new file mode 100644 index 0000000..5c6dab5 --- /dev/null +++ b/components/opus/libopus/celt/mdct.c @@ -0,0 +1,343 @@ +/* Copyright (c) 2007-2008 CSIRO + Copyright (c) 2007-2008 Xiph.Org Foundation + Written by Jean-Marc Valin */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/* This is a simple MDCT implementation that uses a N/4 complex FFT + to do most of the work. It should be relatively straightforward to + plug in pretty much and FFT here. + + This replaces the Vorbis FFT (and uses the exact same API), which + was a bit too messy and that was ending up duplicating code + (might as well use the same FFT everywhere). + + The algorithm is similar to (and inspired from) Fabrice Bellard's + MDCT implementation in FFMPEG, but has differences in signs, ordering + and scaling in many places. +*/ + +#ifndef SKIP_CONFIG_H +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif +#endif + +#include "mdct.h" +#include "kiss_fft.h" +#include "_kiss_fft_guts.h" +#include +#include "os_support.h" +#include "mathops.h" +#include "stack_alloc.h" + +#if defined(MIPSr1_ASM) +#include "mips/mdct_mipsr1.h" +#endif + + +#ifdef CUSTOM_MODES + +int clt_mdct_init(mdct_lookup *l,int N, int maxshift, int arch) +{ + int i; + kiss_twiddle_scalar *trig; + int shift; + int N2=N>>1; + l->n = N; + l->maxshift = maxshift; + for (i=0;i<=maxshift;i++) + { + if (i==0) + l->kfft[i] = opus_fft_alloc(N>>2>>i, 0, 0, arch); + else + l->kfft[i] = opus_fft_alloc_twiddles(N>>2>>i, 0, 0, l->kfft[0], arch); +#ifndef ENABLE_TI_DSPLIB55 + if (l->kfft[i]==NULL) + return 0; +#endif + } + l->trig = trig = (kiss_twiddle_scalar*)opus_alloc((N-(N2>>maxshift))*sizeof(kiss_twiddle_scalar)); + if (l->trig==NULL) + return 0; + for (shift=0;shift<=maxshift;shift++) + { + /* We have enough points that sine isn't necessary */ +#if defined(FIXED_POINT) +#if 1 + for (i=0;i>= 1; + N >>= 1; + } + return 1; +} + +void clt_mdct_clear(mdct_lookup *l, int arch) +{ + int i; + for (i=0;i<=l->maxshift;i++) + opus_fft_free(l->kfft[i], arch); + opus_free((kiss_twiddle_scalar*)l->trig); +} + +#endif /* CUSTOM_MODES */ + +/* Forward MDCT trashes the input array */ +#ifndef OVERRIDE_clt_mdct_forward +void clt_mdct_forward_c(const mdct_lookup *l, kiss_fft_scalar *in, kiss_fft_scalar * OPUS_RESTRICT out, + const opus_val16 *window, int overlap, int shift, int stride, int arch) +{ + int i; + int N, N2, N4; + VARDECL(kiss_fft_scalar, f); + VARDECL(kiss_fft_cpx, f2); + const kiss_fft_state *st = l->kfft[shift]; + const kiss_twiddle_scalar *trig; + opus_val16 scale; +#ifdef FIXED_POINT + /* Allows us to scale with MULT16_32_Q16(), which is faster than + MULT16_32_Q15() on ARM. */ + int scale_shift = st->scale_shift-1; +#endif + SAVE_STACK; + (void)arch; + scale = st->scale; + + N = l->n; + trig = l->trig; + for (i=0;i>= 1; + trig += N; + } + N2 = N>>1; + N4 = N>>2; + + ALLOC(f, N2, kiss_fft_scalar); + ALLOC(f2, N4, kiss_fft_cpx); + + /* Consider the input to be composed of four blocks: [a, b, c, d] */ + /* Window, shuffle, fold */ + { + /* Temp pointers to make it really clear to the compiler what we're doing */ + const kiss_fft_scalar * OPUS_RESTRICT xp1 = in+(overlap>>1); + const kiss_fft_scalar * OPUS_RESTRICT xp2 = in+N2-1+(overlap>>1); + kiss_fft_scalar * OPUS_RESTRICT yp = f; + const opus_val16 * OPUS_RESTRICT wp1 = window+(overlap>>1); + const opus_val16 * OPUS_RESTRICT wp2 = window+(overlap>>1)-1; + for(i=0;i<((overlap+3)>>2);i++) + { + /* Real part arranged as -d-cR, Imag part arranged as -b+aR*/ + *yp++ = MULT16_32_Q15(*wp2, xp1[N2]) + MULT16_32_Q15(*wp1,*xp2); + *yp++ = MULT16_32_Q15(*wp1, *xp1) - MULT16_32_Q15(*wp2, xp2[-N2]); + xp1+=2; + xp2-=2; + wp1+=2; + wp2-=2; + } + wp1 = window; + wp2 = window+overlap-1; + for(;i>2);i++) + { + /* Real part arranged as a-bR, Imag part arranged as -c-dR */ + *yp++ = *xp2; + *yp++ = *xp1; + xp1+=2; + xp2-=2; + } + for(;ibitrev[i]] = yc; + } + } + + /* N/4 complex FFT, does not downscale anymore */ + opus_fft_impl(st, f2); + + /* Post-rotate */ + { + /* Temp pointers to make it really clear to the compiler what we're doing */ + const kiss_fft_cpx * OPUS_RESTRICT fp = f2; + kiss_fft_scalar * OPUS_RESTRICT yp1 = out; + kiss_fft_scalar * OPUS_RESTRICT yp2 = out+stride*(N2-1); + const kiss_twiddle_scalar *t = &trig[0]; + /* Temp pointers to make it really clear to the compiler what we're doing */ + for(i=0;ii,t[N4+i]) - S_MUL(fp->r,t[i]); + yi = S_MUL(fp->r,t[N4+i]) + S_MUL(fp->i,t[i]); + *yp1 = yr; + *yp2 = yi; + fp++; + yp1 += 2*stride; + yp2 -= 2*stride; + } + } + RESTORE_STACK; +} +#endif /* OVERRIDE_clt_mdct_forward */ + +#ifndef OVERRIDE_clt_mdct_backward +void clt_mdct_backward_c(const mdct_lookup *l, kiss_fft_scalar *in, kiss_fft_scalar * OPUS_RESTRICT out, + const opus_val16 * OPUS_RESTRICT window, int overlap, int shift, int stride, int arch) +{ + int i; + int N, N2, N4; + const kiss_twiddle_scalar *trig; + (void) arch; + + N = l->n; + trig = l->trig; + for (i=0;i>= 1; + trig += N; + } + N2 = N>>1; + N4 = N>>2; + + /* Pre-rotate */ + { + /* Temp pointers to make it really clear to the compiler what we're doing */ + const kiss_fft_scalar * OPUS_RESTRICT xp1 = in; + const kiss_fft_scalar * OPUS_RESTRICT xp2 = in+stride*(N2-1); + kiss_fft_scalar * OPUS_RESTRICT yp = out+(overlap>>1); + const kiss_twiddle_scalar * OPUS_RESTRICT t = &trig[0]; + const opus_int16 * OPUS_RESTRICT bitrev = l->kfft[shift]->bitrev; + for(i=0;ikfft[shift], (kiss_fft_cpx*)(out+(overlap>>1))); + + /* Post-rotate and de-shuffle from both ends of the buffer at once to make + it in-place. */ + { + kiss_fft_scalar * yp0 = out+(overlap>>1); + kiss_fft_scalar * yp1 = out+(overlap>>1)+N2-2; + const kiss_twiddle_scalar *t = &trig[0]; + /* Loop to (N4+1)>>1 to handle odd N4. When N4 is odd, the + middle pair will be computed twice. */ + for(i=0;i<(N4+1)>>1;i++) + { + kiss_fft_scalar re, im, yr, yi; + kiss_twiddle_scalar t0, t1; + /* We swap real and imag because we're using an FFT instead of an IFFT. */ + re = yp0[1]; + im = yp0[0]; + t0 = t[i]; + t1 = t[N4+i]; + /* We'd scale up by 2 here, but instead it's done when mixing the windows */ + yr = ADD32_ovflw(S_MUL(re,t0), S_MUL(im,t1)); + yi = SUB32_ovflw(S_MUL(re,t1), S_MUL(im,t0)); + /* We swap real and imag because we're using an FFT instead of an IFFT. */ + re = yp1[1]; + im = yp1[0]; + yp0[0] = yr; + yp1[1] = yi; + + t0 = t[(N4-i-1)]; + t1 = t[(N2-i-1)]; + /* We'd scale up by 2 here, but instead it's done when mixing the windows */ + yr = ADD32_ovflw(S_MUL(re,t0), S_MUL(im,t1)); + yi = SUB32_ovflw(S_MUL(re,t1), S_MUL(im,t0)); + yp1[0] = yr; + yp0[1] = yi; + yp0 += 2; + yp1 -= 2; + } + } + + /* Mirror on both sides for TDAC */ + { + kiss_fft_scalar * OPUS_RESTRICT xp1 = out+overlap-1; + kiss_fft_scalar * OPUS_RESTRICT yp1 = out; + const opus_val16 * OPUS_RESTRICT wp1 = window; + const opus_val16 * OPUS_RESTRICT wp2 = window+overlap-1; + + for(i = 0; i < overlap/2; i++) + { + kiss_fft_scalar x1, x2; + x1 = *xp1; + x2 = *yp1; + *yp1++ = SUB32_ovflw(MULT16_32_Q15(*wp2, x2), MULT16_32_Q15(*wp1, x1)); + *xp1-- = ADD32_ovflw(MULT16_32_Q15(*wp1, x2), MULT16_32_Q15(*wp2, x1)); + wp1++; + wp2--; + } + } +} +#endif /* OVERRIDE_clt_mdct_backward */ diff --git a/components/opus/libopus/celt/mdct.h b/components/opus/libopus/celt/mdct.h new file mode 100644 index 0000000..160ae4e --- /dev/null +++ b/components/opus/libopus/celt/mdct.h @@ -0,0 +1,112 @@ +/* Copyright (c) 2007-2008 CSIRO + Copyright (c) 2007-2008 Xiph.Org Foundation + Written by Jean-Marc Valin */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/* This is a simple MDCT implementation that uses a N/4 complex FFT + to do most of the work. It should be relatively straightforward to + plug in pretty much and FFT here. + + This replaces the Vorbis FFT (and uses the exact same API), which + was a bit too messy and that was ending up duplicating code + (might as well use the same FFT everywhere). + + The algorithm is similar to (and inspired from) Fabrice Bellard's + MDCT implementation in FFMPEG, but has differences in signs, ordering + and scaling in many places. +*/ + +#ifndef MDCT_H +#define MDCT_H + +#include "opus_defines.h" +#include "kiss_fft.h" +#include "arch.h" + +typedef struct { + int n; + int maxshift; + const kiss_fft_state *kfft[4]; + const kiss_twiddle_scalar * OPUS_RESTRICT trig; +} mdct_lookup; + +#if defined(HAVE_ARM_NE10) +#include "arm/mdct_arm.h" +#endif + + +int clt_mdct_init(mdct_lookup *l,int N, int maxshift, int arch); +void clt_mdct_clear(mdct_lookup *l, int arch); + +/** Compute a forward MDCT and scale by 4/N, trashes the input array */ +void clt_mdct_forward_c(const mdct_lookup *l, kiss_fft_scalar *in, + kiss_fft_scalar * OPUS_RESTRICT out, + const opus_val16 *window, int overlap, + int shift, int stride, int arch); + +/** Compute a backward MDCT (no scaling) and performs weighted overlap-add + (scales implicitly by 1/2) */ +void clt_mdct_backward_c(const mdct_lookup *l, kiss_fft_scalar *in, + kiss_fft_scalar * OPUS_RESTRICT out, + const opus_val16 * OPUS_RESTRICT window, + int overlap, int shift, int stride, int arch); + +#if !defined(OVERRIDE_OPUS_MDCT) +/* Is run-time CPU detection enabled on this platform? */ +#if defined(OPUS_HAVE_RTCD) && defined(HAVE_ARM_NE10) + +extern void (*const CLT_MDCT_FORWARD_IMPL[OPUS_ARCHMASK+1])( + const mdct_lookup *l, kiss_fft_scalar *in, + kiss_fft_scalar * OPUS_RESTRICT out, const opus_val16 *window, + int overlap, int shift, int stride, int arch); + +#define clt_mdct_forward(_l, _in, _out, _window, _overlap, _shift, _stride, _arch) \ + ((*CLT_MDCT_FORWARD_IMPL[(arch)&OPUS_ARCHMASK])(_l, _in, _out, \ + _window, _overlap, _shift, \ + _stride, _arch)) + +extern void (*const CLT_MDCT_BACKWARD_IMPL[OPUS_ARCHMASK+1])( + const mdct_lookup *l, kiss_fft_scalar *in, + kiss_fft_scalar * OPUS_RESTRICT out, const opus_val16 *window, + int overlap, int shift, int stride, int arch); + +#define clt_mdct_backward(_l, _in, _out, _window, _overlap, _shift, _stride, _arch) \ + (*CLT_MDCT_BACKWARD_IMPL[(arch)&OPUS_ARCHMASK])(_l, _in, _out, \ + _window, _overlap, _shift, \ + _stride, _arch) + +#else /* if defined(OPUS_HAVE_RTCD) && defined(HAVE_ARM_NE10) */ + +#define clt_mdct_forward(_l, _in, _out, _window, _overlap, _shift, _stride, _arch) \ + clt_mdct_forward_c(_l, _in, _out, _window, _overlap, _shift, _stride, _arch) + +#define clt_mdct_backward(_l, _in, _out, _window, _overlap, _shift, _stride, _arch) \ + clt_mdct_backward_c(_l, _in, _out, _window, _overlap, _shift, _stride, _arch) + +#endif /* end if defined(OPUS_HAVE_RTCD) && defined(HAVE_ARM_NE10) && !defined(FIXED_POINT) */ +#endif /* end if !defined(OVERRIDE_OPUS_MDCT) */ + +#endif diff --git a/components/opus/libopus/celt/mfrngcod.h b/components/opus/libopus/celt/mfrngcod.h new file mode 100644 index 0000000..809152a --- /dev/null +++ b/components/opus/libopus/celt/mfrngcod.h @@ -0,0 +1,48 @@ +/* Copyright (c) 2001-2008 Timothy B. Terriberry + Copyright (c) 2008-2009 Xiph.Org Foundation */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#if !defined(_mfrngcode_H) +# define _mfrngcode_H (1) +# include "entcode.h" + +/*Constants used by the entropy encoder/decoder.*/ + +/*The number of bits to output at a time.*/ +# define EC_SYM_BITS (8) +/*The total number of bits in each of the state registers.*/ +# define EC_CODE_BITS (32) +/*The maximum symbol value.*/ +# define EC_SYM_MAX ((1U<>EC_SYM_BITS) +/*The number of bits available for the last, partial symbol in the code field.*/ +# define EC_CODE_EXTRA ((EC_CODE_BITS-2)%EC_SYM_BITS+1) +#endif diff --git a/components/opus/libopus/celt/mips/celt_mipsr1.h b/components/opus/libopus/celt/mips/celt_mipsr1.h new file mode 100644 index 0000000..c332fe0 --- /dev/null +++ b/components/opus/libopus/celt/mips/celt_mipsr1.h @@ -0,0 +1,152 @@ +/* Copyright (c) 2007-2008 CSIRO + Copyright (c) 2007-2010 Xiph.Org Foundation + Copyright (c) 2008 Gregory Maxwell + Written by Jean-Marc Valin and Gregory Maxwell */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifndef __CELT_MIPSR1_H__ +#define __CELT_MIPSR1_H__ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#define CELT_C + +#include "os_support.h" +#include "mdct.h" +#include +#include "celt.h" +#include "pitch.h" +#include "bands.h" +#include "modes.h" +#include "entcode.h" +#include "quant_bands.h" +#include "rate.h" +#include "stack_alloc.h" +#include "mathops.h" +#include "float_cast.h" +#include +#include "celt_lpc.h" +#include "vq.h" + +#define OVERRIDE_COMB_FILTER_CONST +#define OVERRIDE_comb_filter +void comb_filter(opus_val32 *y, opus_val32 *x, int T0, int T1, int N, + opus_val16 g0, opus_val16 g1, int tapset0, int tapset1, + const opus_val16 *window, int overlap, int arch) +{ + int i; + opus_val32 x0, x1, x2, x3, x4; + + (void)arch; + + /* printf ("%d %d %f %f\n", T0, T1, g0, g1); */ + opus_val16 g00, g01, g02, g10, g11, g12; + static const opus_val16 gains[3][3] = { + {QCONST16(0.3066406250f, 15), QCONST16(0.2170410156f, 15), QCONST16(0.1296386719f, 15)}, + {QCONST16(0.4638671875f, 15), QCONST16(0.2680664062f, 15), QCONST16(0.f, 15)}, + {QCONST16(0.7998046875f, 15), QCONST16(0.1000976562f, 15), QCONST16(0.f, 15)}}; + + if (g0==0 && g1==0) + { + /* OPT: Happens to work without the OPUS_MOVE(), but only because the current encoder already copies x to y */ + if (x!=y) + OPUS_MOVE(y, x, N); + return; + } + + g00 = MULT16_16_P15(g0, gains[tapset0][0]); + g01 = MULT16_16_P15(g0, gains[tapset0][1]); + g02 = MULT16_16_P15(g0, gains[tapset0][2]); + g10 = MULT16_16_P15(g1, gains[tapset1][0]); + g11 = MULT16_16_P15(g1, gains[tapset1][1]); + g12 = MULT16_16_P15(g1, gains[tapset1][2]); + x1 = x[-T1+1]; + x2 = x[-T1 ]; + x3 = x[-T1-1]; + x4 = x[-T1-2]; + /* If the filter didn't change, we don't need the overlap */ + if (g0==g1 && T0==T1 && tapset0==tapset1) + overlap=0; + + for (i=0;itwiddles[fstride*m]; + yb = st->twiddles[fstride*2*m]; +#endif + + tw=st->twiddles; + + for (i=0;ir += scratch[7].r + scratch[8].r; + Fout0->i += scratch[7].i + scratch[8].i; + scratch[5].r = scratch[0].r + S_MUL_ADD(scratch[7].r,ya.r,scratch[8].r,yb.r); + scratch[5].i = scratch[0].i + S_MUL_ADD(scratch[7].i,ya.r,scratch[8].i,yb.r); + + scratch[6].r = S_MUL_ADD(scratch[10].i,ya.i,scratch[9].i,yb.i); + scratch[6].i = -S_MUL_ADD(scratch[10].r,ya.i,scratch[9].r,yb.i); + + C_SUB(*Fout1,scratch[5],scratch[6]); + C_ADD(*Fout4,scratch[5],scratch[6]); + + scratch[11].r = scratch[0].r + S_MUL_ADD(scratch[7].r,yb.r,scratch[8].r,ya.r); + scratch[11].i = scratch[0].i + S_MUL_ADD(scratch[7].i,yb.r,scratch[8].i,ya.r); + + scratch[12].r = S_MUL_SUB(scratch[9].i,ya.i,scratch[10].i,yb.i); + scratch[12].i = S_MUL_SUB(scratch[10].r,yb.i,scratch[9].r,ya.i); + + C_ADD(*Fout2,scratch[11],scratch[12]); + C_SUB(*Fout3,scratch[11],scratch[12]); + + ++Fout0;++Fout1;++Fout2;++Fout3;++Fout4; + } + } +} + + +#endif /* KISS_FFT_MIPSR1_H */ diff --git a/components/opus/libopus/celt/mips/mdct_mipsr1.h b/components/opus/libopus/celt/mips/mdct_mipsr1.h new file mode 100644 index 0000000..2934dab --- /dev/null +++ b/components/opus/libopus/celt/mips/mdct_mipsr1.h @@ -0,0 +1,288 @@ +/* Copyright (c) 2007-2008 CSIRO + Copyright (c) 2007-2008 Xiph.Org Foundation + Written by Jean-Marc Valin */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/* This is a simple MDCT implementation that uses a N/4 complex FFT + to do most of the work. It should be relatively straightforward to + plug in pretty much and FFT here. + + This replaces the Vorbis FFT (and uses the exact same API), which + was a bit too messy and that was ending up duplicating code + (might as well use the same FFT everywhere). + + The algorithm is similar to (and inspired from) Fabrice Bellard's + MDCT implementation in FFMPEG, but has differences in signs, ordering + and scaling in many places. +*/ +#ifndef __MDCT_MIPSR1_H__ +#define __MDCT_MIPSR1_H__ + +#ifndef SKIP_CONFIG_H +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif +#endif + +#include "mdct.h" +#include "kiss_fft.h" +#include "_kiss_fft_guts.h" +#include +#include "os_support.h" +#include "mathops.h" +#include "stack_alloc.h" + +/* Forward MDCT trashes the input array */ +#define OVERRIDE_clt_mdct_forward +void clt_mdct_forward(const mdct_lookup *l, kiss_fft_scalar *in, kiss_fft_scalar * OPUS_RESTRICT out, + const opus_val16 *window, int overlap, int shift, int stride, int arch) +{ + int i; + int N, N2, N4; + VARDECL(kiss_fft_scalar, f); + VARDECL(kiss_fft_cpx, f2); + const kiss_fft_state *st = l->kfft[shift]; + const kiss_twiddle_scalar *trig; + opus_val16 scale; +#ifdef FIXED_POINT + /* Allows us to scale with MULT16_32_Q16(), which is faster than + MULT16_32_Q15() on ARM. */ + int scale_shift = st->scale_shift-1; +#endif + + (void)arch; + + SAVE_STACK; + scale = st->scale; + + N = l->n; + trig = l->trig; + for (i=0;i>= 1; + trig += N; + } + N2 = N>>1; + N4 = N>>2; + + ALLOC(f, N2, kiss_fft_scalar); + ALLOC(f2, N4, kiss_fft_cpx); + + /* Consider the input to be composed of four blocks: [a, b, c, d] */ + /* Window, shuffle, fold */ + { + /* Temp pointers to make it really clear to the compiler what we're doing */ + const kiss_fft_scalar * OPUS_RESTRICT xp1 = in+(overlap>>1); + const kiss_fft_scalar * OPUS_RESTRICT xp2 = in+N2-1+(overlap>>1); + kiss_fft_scalar * OPUS_RESTRICT yp = f; + const opus_val16 * OPUS_RESTRICT wp1 = window+(overlap>>1); + const opus_val16 * OPUS_RESTRICT wp2 = window+(overlap>>1)-1; + for(i=0;i<((overlap+3)>>2);i++) + { + /* Real part arranged as -d-cR, Imag part arranged as -b+aR*/ + *yp++ = S_MUL_ADD(*wp2, xp1[N2],*wp1,*xp2); + *yp++ = S_MUL_SUB(*wp1, *xp1,*wp2, xp2[-N2]); + xp1+=2; + xp2-=2; + wp1+=2; + wp2-=2; + } + wp1 = window; + wp2 = window+overlap-1; + for(;i>2);i++) + { + /* Real part arranged as a-bR, Imag part arranged as -c-dR */ + *yp++ = *xp2; + *yp++ = *xp1; + xp1+=2; + xp2-=2; + } + for(;ibitrev[i]] = yc; + } + } + + /* N/4 complex FFT, does not downscale anymore */ + opus_fft_impl(st, f2); + + /* Post-rotate */ + { + /* Temp pointers to make it really clear to the compiler what we're doing */ + const kiss_fft_cpx * OPUS_RESTRICT fp = f2; + kiss_fft_scalar * OPUS_RESTRICT yp1 = out; + kiss_fft_scalar * OPUS_RESTRICT yp2 = out+stride*(N2-1); + const kiss_twiddle_scalar *t = &trig[0]; + /* Temp pointers to make it really clear to the compiler what we're doing */ + for(i=0;ii,t[N4+i] , fp->r,t[i]); + yi = S_MUL_ADD(fp->r,t[N4+i] ,fp->i,t[i]); + *yp1 = yr; + *yp2 = yi; + fp++; + yp1 += 2*stride; + yp2 -= 2*stride; + } + } + RESTORE_STACK; +} + +#define OVERRIDE_clt_mdct_backward +void clt_mdct_backward(const mdct_lookup *l, kiss_fft_scalar *in, kiss_fft_scalar * OPUS_RESTRICT out, + const opus_val16 * OPUS_RESTRICT window, int overlap, int shift, int stride, int arch) +{ + int i; + int N, N2, N4; + const kiss_twiddle_scalar *trig; + + (void)arch; + + N = l->n; + trig = l->trig; + for (i=0;i>= 1; + trig += N; + } + N2 = N>>1; + N4 = N>>2; + + /* Pre-rotate */ + { + /* Temp pointers to make it really clear to the compiler what we're doing */ + const kiss_fft_scalar * OPUS_RESTRICT xp1 = in; + const kiss_fft_scalar * OPUS_RESTRICT xp2 = in+stride*(N2-1); + kiss_fft_scalar * OPUS_RESTRICT yp = out+(overlap>>1); + const kiss_twiddle_scalar * OPUS_RESTRICT t = &trig[0]; + const opus_int16 * OPUS_RESTRICT bitrev = l->kfft[shift]->bitrev; + for(i=0;ikfft[shift], (kiss_fft_cpx*)(out+(overlap>>1))); + + /* Post-rotate and de-shuffle from both ends of the buffer at once to make + it in-place. */ + { + kiss_fft_scalar * OPUS_RESTRICT yp0 = out+(overlap>>1); + kiss_fft_scalar * OPUS_RESTRICT yp1 = out+(overlap>>1)+N2-2; + const kiss_twiddle_scalar *t = &trig[0]; + /* Loop to (N4+1)>>1 to handle odd N4. When N4 is odd, the + middle pair will be computed twice. */ + for(i=0;i<(N4+1)>>1;i++) + { + kiss_fft_scalar re, im, yr, yi; + kiss_twiddle_scalar t0, t1; + /* We swap real and imag because we're using an FFT instead of an IFFT. */ + re = yp0[1]; + im = yp0[0]; + t0 = t[i]; + t1 = t[N4+i]; + /* We'd scale up by 2 here, but instead it's done when mixing the windows */ + yr = S_MUL_ADD(re,t0 , im,t1); + yi = S_MUL_SUB(re,t1 , im,t0); + /* We swap real and imag because we're using an FFT instead of an IFFT. */ + re = yp1[1]; + im = yp1[0]; + yp0[0] = yr; + yp1[1] = yi; + + t0 = t[(N4-i-1)]; + t1 = t[(N2-i-1)]; + /* We'd scale up by 2 here, but instead it's done when mixing the windows */ + yr = S_MUL_ADD(re,t0,im,t1); + yi = S_MUL_SUB(re,t1,im,t0); + yp1[0] = yr; + yp0[1] = yi; + yp0 += 2; + yp1 -= 2; + } + } + + /* Mirror on both sides for TDAC */ + { + kiss_fft_scalar * OPUS_RESTRICT xp1 = out+overlap-1; + kiss_fft_scalar * OPUS_RESTRICT yp1 = out; + const opus_val16 * OPUS_RESTRICT wp1 = window; + const opus_val16 * OPUS_RESTRICT wp2 = window+overlap-1; + + for(i = 0; i < overlap/2; i++) + { + kiss_fft_scalar x1, x2; + x1 = *xp1; + x2 = *yp1; + *yp1++ = MULT16_32_Q15(*wp2, x2) - MULT16_32_Q15(*wp1, x1); + *xp1-- = MULT16_32_Q15(*wp1, x2) + MULT16_32_Q15(*wp2, x1); + wp1++; + wp2--; + } + } +} +#endif /* __MDCT_MIPSR1_H__ */ diff --git a/components/opus/libopus/celt/mips/pitch_mipsr1.h b/components/opus/libopus/celt/mips/pitch_mipsr1.h new file mode 100644 index 0000000..a9500af --- /dev/null +++ b/components/opus/libopus/celt/mips/pitch_mipsr1.h @@ -0,0 +1,161 @@ +/* Copyright (c) 2007-2008 CSIRO + Copyright (c) 2007-2009 Xiph.Org Foundation + Written by Jean-Marc Valin */ +/** + @file pitch.h + @brief Pitch analysis + */ + +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifndef PITCH_MIPSR1_H +#define PITCH_MIPSR1_H + +#define OVERRIDE_DUAL_INNER_PROD +static inline void dual_inner_prod(const opus_val16 *x, const opus_val16 *y01, const opus_val16 *y02, + int N, opus_val32 *xy1, opus_val32 *xy2, int arch) +{ + int j; + opus_val32 xy01=0; + opus_val32 xy02=0; + + (void)arch; + + asm volatile("MULT $ac1, $0, $0"); + asm volatile("MULT $ac2, $0, $0"); + /* Compute the norm of X+Y and X-Y as |X|^2 + |Y|^2 +/- sum(xy) */ + for (j=0;j=0;i--) + { + celt_norm x1, x2; + x1 = Xptr[0]; + x2 = Xptr[stride]; + Xptr[stride] = EXTRACT16(PSHR32(MAC16_16(MULT16_16(c, x2), s, x1), 15)); + *Xptr-- = EXTRACT16(PSHR32(MAC16_16(MULT16_16(c, x1), ms, x2), 15)); + } +} + +#define OVERRIDE_renormalise_vector +void renormalise_vector(celt_norm *X, int N, opus_val16 gain, int arch) +{ + int i; +#ifdef FIXED_POINT + int k; +#endif + opus_val32 E = EPSILON; + opus_val16 g; + opus_val32 t; + celt_norm *xptr = X; + int X0, X1; + + (void)arch; + + asm volatile("mult $ac1, $0, $0"); + asm volatile("MTLO %0, $ac1" : :"r" (E)); + /*if(N %4) + printf("error");*/ + for (i=0;i>1; +#endif + t = VSHR32(E, 2*(k-7)); + g = MULT16_16_P15(celt_rsqrt_norm(t),gain); + + xptr = X; + for (i=0;i= Fs) + break; + + /* Find where the linear part ends (i.e. where the spacing is more than min_width */ + for (lin=0;lin= res) + break; + + low = (bark_freq[lin]+res/2)/res; + high = nBark-lin; + *nbEBands = low+high; + eBands = opus_alloc(sizeof(opus_int16)*(*nbEBands+2)); + + if (eBands==NULL) + return NULL; + + /* Linear spacing (min_width) */ + for (i=0;i0) + offset = eBands[low-1]*res - bark_freq[lin-1]; + /* Spacing follows critical bands */ + for (i=0;i frame_size) + eBands[*nbEBands] = frame_size; + for (i=1;i<*nbEBands-1;i++) + { + if (eBands[i+1]-eBands[i] < eBands[i]-eBands[i-1]) + { + eBands[i] -= (2*eBands[i]-eBands[i-1]-eBands[i+1])/2; + } + } + /* Remove any empty bands. */ + for (i=j=0;i<*nbEBands;i++) + if(eBands[i+1]>eBands[j]) + eBands[++j]=eBands[i+1]; + *nbEBands=j; + + for (i=1;i<*nbEBands;i++) + { + /* Every band must be smaller than the last band. */ + celt_assert(eBands[i]-eBands[i-1]<=eBands[*nbEBands]-eBands[*nbEBands-1]); + /* Each band must be no larger than twice the size of the previous one. */ + celt_assert(eBands[i+1]-eBands[i]<=2*(eBands[i]-eBands[i-1])); + } + + return eBands; +} + +static void compute_allocation_table(CELTMode *mode) +{ + int i, j; + unsigned char *allocVectors; + int maxBands = sizeof(eband5ms)/sizeof(eband5ms[0])-1; + + mode->nbAllocVectors = BITALLOC_SIZE; + allocVectors = opus_alloc(sizeof(unsigned char)*(BITALLOC_SIZE*mode->nbEBands)); + if (allocVectors==NULL) + return; + + /* Check for standard mode */ + if (mode->Fs == 400*(opus_int32)mode->shortMdctSize) + { + for (i=0;inbEBands;i++) + allocVectors[i] = band_allocation[i]; + mode->allocVectors = allocVectors; + return; + } + /* If not the standard mode, interpolate */ + /* Compute per-codec-band allocation from per-critical-band matrix */ + for (i=0;inbEBands;j++) + { + int k; + for (k=0;k mode->eBands[j]*(opus_int32)mode->Fs/mode->shortMdctSize) + break; + } + if (k>maxBands-1) + allocVectors[i*mode->nbEBands+j] = band_allocation[i*maxBands + maxBands-1]; + else { + opus_int32 a0, a1; + a1 = mode->eBands[j]*(opus_int32)mode->Fs/mode->shortMdctSize - 400*(opus_int32)eband5ms[k-1]; + a0 = 400*(opus_int32)eband5ms[k] - mode->eBands[j]*(opus_int32)mode->Fs/mode->shortMdctSize; + allocVectors[i*mode->nbEBands+j] = (a0*band_allocation[i*maxBands+k-1] + + a1*band_allocation[i*maxBands+k])/(a0+a1); + } + } + } + + /*printf ("\n"); + for (i=0;inbEBands;j++) + printf ("%d ", allocVectors[i*mode->nbEBands+j]); + printf ("\n"); + } + exit(0);*/ + + mode->allocVectors = allocVectors; +} + +#endif /* CUSTOM_MODES */ + +CELTMode *opus_custom_mode_create(opus_int32 Fs, int frame_size, int *error) +{ + int i; +#ifdef CUSTOM_MODES + CELTMode *mode=NULL; + int res; + opus_val16 *window; + opus_int16 *logN; + int LM; + int arch = opus_select_arch(); + ALLOC_STACK; +#if !defined(VAR_ARRAYS) && !defined(USE_ALLOCA) + if (global_stack==NULL) + goto failure; +#endif +#endif + +#ifndef CUSTOM_MODES_ONLY + for (i=0;iFs && + (frame_size<shortMdctSize*static_mode_list[i]->nbShortMdcts) + { + if (error) + *error = OPUS_OK; + return (CELTMode*)static_mode_list[i]; + } + } + } +#endif /* CUSTOM_MODES_ONLY */ + +#ifndef CUSTOM_MODES + if (error) + *error = OPUS_BAD_ARG; + return NULL; +#else + + /* The good thing here is that permutation of the arguments will automatically be invalid */ + + if (Fs < 8000 || Fs > 96000) + { + if (error) + *error = OPUS_BAD_ARG; + return NULL; + } + if (frame_size < 40 || frame_size > 1024 || frame_size%2!=0) + { + if (error) + *error = OPUS_BAD_ARG; + return NULL; + } + /* Frames of less than 1ms are not supported. */ + if ((opus_int32)frame_size*1000 < Fs) + { + if (error) + *error = OPUS_BAD_ARG; + return NULL; + } + + if ((opus_int32)frame_size*75 >= Fs && (frame_size%16)==0) + { + LM = 3; + } else if ((opus_int32)frame_size*150 >= Fs && (frame_size%8)==0) + { + LM = 2; + } else if ((opus_int32)frame_size*300 >= Fs && (frame_size%4)==0) + { + LM = 1; + } else + { + LM = 0; + } + + /* Shorts longer than 3.3ms are not supported. */ + if ((opus_int32)(frame_size>>LM)*300 > Fs) + { + if (error) + *error = OPUS_BAD_ARG; + return NULL; + } + + mode = opus_alloc(sizeof(CELTMode)); + if (mode==NULL) + goto failure; + mode->Fs = Fs; + + /* Pre/de-emphasis depends on sampling rate. The "standard" pre-emphasis + is defined as A(z) = 1 - 0.85*z^-1 at 48 kHz. Other rates should + approximate that. */ + if(Fs < 12000) /* 8 kHz */ + { + mode->preemph[0] = QCONST16(0.3500061035f, 15); + mode->preemph[1] = -QCONST16(0.1799926758f, 15); + mode->preemph[2] = QCONST16(0.2719968125f, SIG_SHIFT); /* exact 1/preemph[3] */ + mode->preemph[3] = QCONST16(3.6765136719f, 13); + } else if(Fs < 24000) /* 16 kHz */ + { + mode->preemph[0] = QCONST16(0.6000061035f, 15); + mode->preemph[1] = -QCONST16(0.1799926758f, 15); + mode->preemph[2] = QCONST16(0.4424998650f, SIG_SHIFT); /* exact 1/preemph[3] */ + mode->preemph[3] = QCONST16(2.2598876953f, 13); + } else if(Fs < 40000) /* 32 kHz */ + { + mode->preemph[0] = QCONST16(0.7799987793f, 15); + mode->preemph[1] = -QCONST16(0.1000061035f, 15); + mode->preemph[2] = QCONST16(0.7499771125f, SIG_SHIFT); /* exact 1/preemph[3] */ + mode->preemph[3] = QCONST16(1.3333740234f, 13); + } else /* 48 kHz */ + { + mode->preemph[0] = QCONST16(0.8500061035f, 15); + mode->preemph[1] = QCONST16(0.0f, 15); + mode->preemph[2] = QCONST16(1.f, SIG_SHIFT); + mode->preemph[3] = QCONST16(1.f, 13); + } + + mode->maxLM = LM; + mode->nbShortMdcts = 1<shortMdctSize = frame_size/mode->nbShortMdcts; + res = (mode->Fs+mode->shortMdctSize)/(2*mode->shortMdctSize); + + mode->eBands = compute_ebands(Fs, mode->shortMdctSize, res, &mode->nbEBands); + if (mode->eBands==NULL) + goto failure; +#if !defined(SMALL_FOOTPRINT) + /* Make sure we don't allocate a band larger than our PVQ table. + 208 should be enough, but let's be paranoid. */ + if ((mode->eBands[mode->nbEBands] - mode->eBands[mode->nbEBands-1])< + 208) { + goto failure; + } +#endif + + mode->effEBands = mode->nbEBands; + while (mode->eBands[mode->effEBands] > mode->shortMdctSize) + mode->effEBands--; + + /* Overlap must be divisible by 4 */ + mode->overlap = ((mode->shortMdctSize>>2)<<2); + + compute_allocation_table(mode); + if (mode->allocVectors==NULL) + goto failure; + + window = (opus_val16*)opus_alloc(mode->overlap*sizeof(opus_val16)); + if (window==NULL) + goto failure; + +#ifndef FIXED_POINT + for (i=0;ioverlap;i++) + window[i] = Q15ONE*sin(.5*M_PI* sin(.5*M_PI*(i+.5)/mode->overlap) * sin(.5*M_PI*(i+.5)/mode->overlap)); +#else + for (i=0;ioverlap;i++) + window[i] = MIN32(32767,floor(.5+32768.*sin(.5*M_PI* sin(.5*M_PI*(i+.5)/mode->overlap) * sin(.5*M_PI*(i+.5)/mode->overlap)))); +#endif + mode->window = window; + + logN = (opus_int16*)opus_alloc(mode->nbEBands*sizeof(opus_int16)); + if (logN==NULL) + goto failure; + + for (i=0;inbEBands;i++) + logN[i] = log2_frac(mode->eBands[i+1]-mode->eBands[i], BITRES); + mode->logN = logN; + + compute_pulse_cache(mode, mode->maxLM); + + if (clt_mdct_init(&mode->mdct, 2*mode->shortMdctSize*mode->nbShortMdcts, + mode->maxLM, arch) == 0) + goto failure; + + if (error) + *error = OPUS_OK; + + return mode; +failure: + if (error) + *error = OPUS_ALLOC_FAIL; + if (mode!=NULL) + opus_custom_mode_destroy(mode); + return NULL; +#endif /* !CUSTOM_MODES */ +} + +#ifdef CUSTOM_MODES +void opus_custom_mode_destroy(CELTMode *mode) +{ + int arch = opus_select_arch(); + + if (mode == NULL) + return; +#ifndef CUSTOM_MODES_ONLY + { + int i; + for (i=0;ieBands); + opus_free((unsigned char*)mode->allocVectors); + + opus_free((opus_val16*)mode->window); + opus_free((opus_int16*)mode->logN); + + opus_free((opus_int16*)mode->cache.index); + opus_free((unsigned char*)mode->cache.bits); + opus_free((unsigned char*)mode->cache.caps); + clt_mdct_clear(&mode->mdct, arch); + + opus_free((CELTMode *)mode); +} +#endif diff --git a/components/opus/libopus/celt/modes.h b/components/opus/libopus/celt/modes.h new file mode 100644 index 0000000..be813cc --- /dev/null +++ b/components/opus/libopus/celt/modes.h @@ -0,0 +1,75 @@ +/* Copyright (c) 2007-2008 CSIRO + Copyright (c) 2007-2009 Xiph.Org Foundation + Copyright (c) 2008 Gregory Maxwell + Written by Jean-Marc Valin and Gregory Maxwell */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifndef MODES_H +#define MODES_H + +#include "opus_types.h" +#include "celt.h" +#include "arch.h" +#include "mdct.h" +#include "entenc.h" +#include "entdec.h" + +#define MAX_PERIOD 1024 + +typedef struct { + int size; + const opus_int16 *index; + const unsigned char *bits; + const unsigned char *caps; +} PulseCache; + +/** Mode definition (opaque) + @brief Mode definition + */ +struct OpusCustomMode { + opus_int32 Fs; + int overlap; + + int nbEBands; + int effEBands; + opus_val16 preemph[4]; + const opus_int16 *eBands; /**< Definition for each "pseudo-critical band" */ + + int maxLM; + int nbShortMdcts; + int shortMdctSize; + + int nbAllocVectors; /**< Number of lines in the matrix below */ + const unsigned char *allocVectors; /**< Number of bits in each band for several rates */ + const opus_int16 *logN; + + const opus_val16 *window; + mdct_lookup mdct; + PulseCache cache; +}; + + +#endif diff --git a/components/opus/libopus/celt/opus_custom_demo.c b/components/opus/libopus/celt/opus_custom_demo.c new file mode 100644 index 0000000..ae41c0d --- /dev/null +++ b/components/opus/libopus/celt/opus_custom_demo.c @@ -0,0 +1,210 @@ +/* Copyright (c) 2007-2008 CSIRO + Copyright (c) 2007-2009 Xiph.Org Foundation + Written by Jean-Marc Valin */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "opus_custom.h" +#include "arch.h" +#include +#include +#include +#include + +#define MAX_PACKET 1275 + +int main(int argc, char *argv[]) +{ + int err; + char *inFile, *outFile; + FILE *fin, *fout; + OpusCustomMode *mode=NULL; + OpusCustomEncoder *enc; + OpusCustomDecoder *dec; + int len; + opus_int32 frame_size, channels, rate; + int bytes_per_packet; + unsigned char data[MAX_PACKET]; + int complexity; +#if !(defined (FIXED_POINT) && !defined(CUSTOM_MODES)) && defined(RESYNTH) + int i; + double rmsd = 0; +#endif + int count = 0; + opus_int32 skip; + opus_int16 *in, *out; + if (argc != 9 && argc != 8 && argc != 7) + { + fprintf (stderr, "Usage: test_opus_custom " + " [ [packet loss rate]] " + " \n"); + return 1; + } + + rate = (opus_int32)atol(argv[1]); + channels = atoi(argv[2]); + frame_size = atoi(argv[3]); + mode = opus_custom_mode_create(rate, frame_size, NULL); + if (mode == NULL) + { + fprintf(stderr, "failed to create a mode\n"); + return 1; + } + + bytes_per_packet = atoi(argv[4]); + if (bytes_per_packet < 0 || bytes_per_packet > MAX_PACKET) + { + fprintf (stderr, "bytes per packet must be between 0 and %d\n", + MAX_PACKET); + return 1; + } + + inFile = argv[argc-2]; + fin = fopen(inFile, "rb"); + if (!fin) + { + fprintf (stderr, "Could not open input file %s\n", argv[argc-2]); + return 1; + } + outFile = argv[argc-1]; + fout = fopen(outFile, "wb+"); + if (!fout) + { + fprintf (stderr, "Could not open output file %s\n", argv[argc-1]); + fclose(fin); + return 1; + } + + enc = opus_custom_encoder_create(mode, channels, &err); + if (err != 0) + { + fprintf(stderr, "Failed to create the encoder: %s\n", opus_strerror(err)); + fclose(fin); + fclose(fout); + return 1; + } + dec = opus_custom_decoder_create(mode, channels, &err); + if (err != 0) + { + fprintf(stderr, "Failed to create the decoder: %s\n", opus_strerror(err)); + fclose(fin); + fclose(fout); + return 1; + } + opus_custom_decoder_ctl(dec, OPUS_GET_LOOKAHEAD(&skip)); + + if (argc>7) + { + complexity=atoi(argv[5]); + opus_custom_encoder_ctl(enc,OPUS_SET_COMPLEXITY(complexity)); + } + + in = (opus_int16*)malloc(frame_size*channels*sizeof(opus_int16)); + out = (opus_int16*)malloc(frame_size*channels*sizeof(opus_int16)); + + while (!feof(fin)) + { + int ret; + err = fread(in, sizeof(short), frame_size*channels, fin); + if (feof(fin)) + break; + len = opus_custom_encode(enc, in, frame_size, data, bytes_per_packet); + if (len <= 0) + fprintf (stderr, "opus_custom_encode() failed: %s\n", opus_strerror(len)); + + /* This is for simulating bit errors */ +#if 0 + int errors = 0; + int eid = 0; + /* This simulates random bit error */ + for (i=0;i 0) + { + rmsd = sqrt(rmsd/(1.0*frame_size*channels*count)); + fprintf (stderr, "Error: encoder doesn't match decoder\n"); + fprintf (stderr, "RMS mismatch is %f\n", rmsd); + return 1; + } else { + fprintf (stderr, "Encoder matches decoder!!\n"); + } +#endif + return 0; +} + diff --git a/components/opus/libopus/celt/os_support.h b/components/opus/libopus/celt/os_support.h new file mode 100644 index 0000000..a217197 --- /dev/null +++ b/components/opus/libopus/celt/os_support.h @@ -0,0 +1,92 @@ +/* Copyright (C) 2007 Jean-Marc Valin + + File: os_support.h + This is the (tiny) OS abstraction layer. Aside from math.h, this is the + only place where system headers are allowed. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR + IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, + INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN + ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifndef OS_SUPPORT_H +#define OS_SUPPORT_H + +#ifdef CUSTOM_SUPPORT +# include "custom_support.h" +#endif + +#include "opus_types.h" +#include "opus_defines.h" + +#include +#include +#include + +/** Opus wrapper for malloc(). To do your own dynamic allocation, all you need to do is replace this function and opus_free */ +#ifndef OVERRIDE_OPUS_ALLOC +static OPUS_INLINE void *opus_alloc (size_t size) +{ + return malloc(size); +} +#endif + +/** Same as celt_alloc(), except that the area is only needed inside a CELT call (might cause problem with wideband though) */ +#ifndef OVERRIDE_OPUS_ALLOC_SCRATCH +static OPUS_INLINE void *opus_alloc_scratch (size_t size) +{ + /* Scratch space doesn't need to be cleared */ + return opus_alloc(size); +} +#endif + +/** Opus wrapper for free(). To do your own dynamic allocation, all you need to do is replace this function and opus_alloc */ +#ifndef OVERRIDE_OPUS_FREE +static OPUS_INLINE void opus_free (void *ptr) +{ + free(ptr); +} +#endif + +/** Copy n elements from src to dst. The 0* term provides compile-time type checking */ +#ifndef OVERRIDE_OPUS_COPY +#define OPUS_COPY(dst, src, n) (memcpy((dst), (src), (n)*sizeof(*(dst)) + 0*((dst)-(src)) )) +#endif + +/** Copy n elements from src to dst, allowing overlapping regions. The 0* term + provides compile-time type checking */ +#ifndef OVERRIDE_OPUS_MOVE +#define OPUS_MOVE(dst, src, n) (memmove((dst), (src), (n)*sizeof(*(dst)) + 0*((dst)-(src)) )) +#endif + +/** Set n elements of dst to zero */ +#ifndef OVERRIDE_OPUS_CLEAR +#define OPUS_CLEAR(dst, n) (memset((dst), 0, (n)*sizeof(*(dst)))) +#endif + +/*#ifdef __GNUC__ +#pragma GCC poison printf sprintf +#pragma GCC poison malloc free realloc calloc +#endif*/ + +#endif /* OS_SUPPORT_H */ + diff --git a/components/opus/libopus/celt/pitch.c b/components/opus/libopus/celt/pitch.c new file mode 100644 index 0000000..872582a --- /dev/null +++ b/components/opus/libopus/celt/pitch.c @@ -0,0 +1,537 @@ +/* Copyright (c) 2007-2008 CSIRO + Copyright (c) 2007-2009 Xiph.Org Foundation + Written by Jean-Marc Valin */ +/** + @file pitch.c + @brief Pitch analysis + */ + +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "pitch.h" +#include "os_support.h" +#include "modes.h" +#include "stack_alloc.h" +#include "mathops.h" +#include "celt_lpc.h" + +static void find_best_pitch(opus_val32 *xcorr, opus_val16 *y, int len, + int max_pitch, int *best_pitch +#ifdef FIXED_POINT + , int yshift, opus_val32 maxcorr +#endif + ) +{ + int i, j; + opus_val32 Syy=1; + opus_val16 best_num[2]; + opus_val32 best_den[2]; +#ifdef FIXED_POINT + int xshift; + + xshift = celt_ilog2(maxcorr)-14; +#endif + + best_num[0] = -1; + best_num[1] = -1; + best_den[0] = 0; + best_den[1] = 0; + best_pitch[0] = 0; + best_pitch[1] = 1; + for (j=0;j0) + { + opus_val16 num; + opus_val32 xcorr16; + xcorr16 = EXTRACT16(VSHR32(xcorr[i], xshift)); +#ifndef FIXED_POINT + /* Considering the range of xcorr16, this should avoid both underflows + and overflows (inf) when squaring xcorr16 */ + xcorr16 *= 1e-12f; +#endif + num = MULT16_16_Q15(xcorr16,xcorr16); + if (MULT16_32_Q15(num,best_den[1]) > MULT16_32_Q15(best_num[1],Syy)) + { + if (MULT16_32_Q15(num,best_den[0]) > MULT16_32_Q15(best_num[0],Syy)) + { + best_num[1] = best_num[0]; + best_den[1] = best_den[0]; + best_pitch[1] = best_pitch[0]; + best_num[0] = num; + best_den[0] = Syy; + best_pitch[0] = i; + } else { + best_num[1] = num; + best_den[1] = Syy; + best_pitch[1] = i; + } + } + } + Syy += SHR32(MULT16_16(y[i+len],y[i+len]),yshift) - SHR32(MULT16_16(y[i],y[i]),yshift); + Syy = MAX32(1, Syy); + } +} + +static void celt_fir5(opus_val16 *x, + const opus_val16 *num, + int N) +{ + int i; + opus_val16 num0, num1, num2, num3, num4; + opus_val32 mem0, mem1, mem2, mem3, mem4; + num0=num[0]; + num1=num[1]; + num2=num[2]; + num3=num[3]; + num4=num[4]; + mem0=0; + mem1=0; + mem2=0; + mem3=0; + mem4=0; + for (i=0;i>1;i++) + x_lp[i] = SHR32(HALF32(HALF32(x[0][(2*i-1)]+x[0][(2*i+1)])+x[0][2*i]), shift); + x_lp[0] = SHR32(HALF32(HALF32(x[0][1])+x[0][0]), shift); + if (C==2) + { + for (i=1;i>1;i++) + x_lp[i] += SHR32(HALF32(HALF32(x[1][(2*i-1)]+x[1][(2*i+1)])+x[1][2*i]), shift); + x_lp[0] += SHR32(HALF32(HALF32(x[1][1])+x[1][0]), shift); + } + + _celt_autocorr(x_lp, ac, NULL, 0, + 4, len>>1, arch); + + /* Noise floor -40 dB */ +#ifdef FIXED_POINT + ac[0] += SHR32(ac[0],13); +#else + ac[0] *= 1.0001f; +#endif + /* Lag windowing */ + for (i=1;i<=4;i++) + { + /*ac[i] *= exp(-.5*(2*M_PI*.002*i)*(2*M_PI*.002*i));*/ +#ifdef FIXED_POINT + ac[i] -= MULT16_32_Q15(2*i*i, ac[i]); +#else + ac[i] -= ac[i]*(.008f*i)*(.008f*i); +#endif + } + + _celt_lpc(lpc, ac, 4); + for (i=0;i<4;i++) + { + tmp = MULT16_16_Q15(QCONST16(.9f,15), tmp); + lpc[i] = MULT16_16_Q15(lpc[i], tmp); + } + /* Add a zero */ + lpc2[0] = lpc[0] + QCONST16(.8f,SIG_SHIFT); + lpc2[1] = lpc[1] + MULT16_16_Q15(c1,lpc[0]); + lpc2[2] = lpc[2] + MULT16_16_Q15(c1,lpc[1]); + lpc2[3] = lpc[3] + MULT16_16_Q15(c1,lpc[2]); + lpc2[4] = MULT16_16_Q15(c1,lpc[3]); + celt_fir5(x_lp, lpc2, len>>1); +} + +/* Pure C implementation. */ +#ifdef FIXED_POINT +opus_val32 +#else +void +#endif +celt_pitch_xcorr_c(const opus_val16 *_x, const opus_val16 *_y, + opus_val32 *xcorr, int len, int max_pitch, int arch) +{ + +#if 0 /* This is a simple version of the pitch correlation that should work + well on DSPs like Blackfin and TI C5x/C6x */ + int i, j; +#ifdef FIXED_POINT + opus_val32 maxcorr=1; +#endif +#if !defined(OVERRIDE_PITCH_XCORR) + (void)arch; +#endif + for (i=0;i0); + celt_sig_assert((((unsigned char *)_x-(unsigned char *)NULL)&3)==0); + for (i=0;i0); + celt_assert(max_pitch>0); + lag = len+max_pitch; + + ALLOC(x_lp4, len>>2, opus_val16); + ALLOC(y_lp4, lag>>2, opus_val16); + ALLOC(xcorr, max_pitch>>1, opus_val32); + + /* Downsample by 2 again */ + for (j=0;j>2;j++) + x_lp4[j] = x_lp[2*j]; + for (j=0;j>2;j++) + y_lp4[j] = y[2*j]; + +#ifdef FIXED_POINT + xmax = celt_maxabs16(x_lp4, len>>2); + ymax = celt_maxabs16(y_lp4, lag>>2); + shift = celt_ilog2(MAX32(1, MAX32(xmax, ymax)))-11; + if (shift>0) + { + for (j=0;j>2;j++) + x_lp4[j] = SHR16(x_lp4[j], shift); + for (j=0;j>2;j++) + y_lp4[j] = SHR16(y_lp4[j], shift); + /* Use double the shift for a MAC */ + shift *= 2; + } else { + shift = 0; + } +#endif + + /* Coarse search with 4x decimation */ + +#ifdef FIXED_POINT + maxcorr = +#endif + celt_pitch_xcorr(x_lp4, y_lp4, xcorr, len>>2, max_pitch>>2, arch); + + find_best_pitch(xcorr, y_lp4, len>>2, max_pitch>>2, best_pitch +#ifdef FIXED_POINT + , 0, maxcorr +#endif + ); + + /* Finer search with 2x decimation */ +#ifdef FIXED_POINT + maxcorr=1; +#endif + for (i=0;i>1;i++) + { + opus_val32 sum; + xcorr[i] = 0; + if (abs(i-2*best_pitch[0])>2 && abs(i-2*best_pitch[1])>2) + continue; +#ifdef FIXED_POINT + sum = 0; + for (j=0;j>1;j++) + sum += SHR32(MULT16_16(x_lp[j],y[i+j]), shift); +#else + sum = celt_inner_prod(x_lp, y+i, len>>1, arch); +#endif + xcorr[i] = MAX32(-1, sum); +#ifdef FIXED_POINT + maxcorr = MAX32(maxcorr, sum); +#endif + } + find_best_pitch(xcorr, y, len>>1, max_pitch>>1, best_pitch +#ifdef FIXED_POINT + , shift+1, maxcorr +#endif + ); + + /* Refine by pseudo-interpolation */ + if (best_pitch[0]>0 && best_pitch[0]<(max_pitch>>1)-1) + { + opus_val32 a, b, c; + a = xcorr[best_pitch[0]-1]; + b = xcorr[best_pitch[0]]; + c = xcorr[best_pitch[0]+1]; + if ((c-a) > MULT16_32_Q15(QCONST16(.7f,15),b-a)) + offset = 1; + else if ((a-c) > MULT16_32_Q15(QCONST16(.7f,15),b-c)) + offset = -1; + else + offset = 0; + } else { + offset = 0; + } + *pitch = 2*best_pitch[0]-offset; + + RESTORE_STACK; +} + +#ifdef FIXED_POINT +static opus_val16 compute_pitch_gain(opus_val32 xy, opus_val32 xx, opus_val32 yy) +{ + opus_val32 x2y2; + int sx, sy, shift; + opus_val32 g; + opus_val16 den; + if (xy == 0 || xx == 0 || yy == 0) + return 0; + sx = celt_ilog2(xx)-14; + sy = celt_ilog2(yy)-14; + shift = sx + sy; + x2y2 = SHR32(MULT16_16(VSHR32(xx, sx), VSHR32(yy, sy)), 14); + if (shift & 1) { + if (x2y2 < 32768) + { + x2y2 <<= 1; + shift--; + } else { + x2y2 >>= 1; + shift++; + } + } + den = celt_rsqrt_norm(x2y2); + g = MULT16_32_Q15(den, xy); + g = VSHR32(g, (shift>>1)-1); + return EXTRACT16(MIN32(g, Q15ONE)); +} +#else +static opus_val16 compute_pitch_gain(opus_val32 xy, opus_val32 xx, opus_val32 yy) +{ + return xy/celt_sqrt(1+xx*yy); +} +#endif + +static const int second_check[16] = {0, 0, 3, 2, 3, 2, 5, 2, 3, 2, 3, 2, 5, 2, 3, 2}; +opus_val16 remove_doubling(opus_val16 *x, int maxperiod, int minperiod, + int N, int *T0_, int prev_period, opus_val16 prev_gain, int arch) +{ + int k, i, T, T0; + opus_val16 g, g0; + opus_val16 pg; + opus_val32 xy,xx,yy,xy2; + opus_val32 xcorr[3]; + opus_val32 best_xy, best_yy; + int offset; + int minperiod0; + VARDECL(opus_val32, yy_lookup); + SAVE_STACK; + + minperiod0 = minperiod; + maxperiod /= 2; + minperiod /= 2; + *T0_ /= 2; + prev_period /= 2; + N /= 2; + x += maxperiod; + if (*T0_>=maxperiod) + *T0_=maxperiod-1; + + T = T0 = *T0_; + ALLOC(yy_lookup, maxperiod+1, opus_val32); + dual_inner_prod(x, x, x-T0, N, &xx, &xy, arch); + yy_lookup[0] = xx; + yy=xx; + for (i=1;i<=maxperiod;i++) + { + yy = yy+MULT16_16(x[-i],x[-i])-MULT16_16(x[N-i],x[N-i]); + yy_lookup[i] = MAX32(0, yy); + } + yy = yy_lookup[T0]; + best_xy = xy; + best_yy = yy; + g = g0 = compute_pitch_gain(xy, xx, yy); + /* Look for any pitch at T/k */ + for (k=2;k<=15;k++) + { + int T1, T1b; + opus_val16 g1; + opus_val16 cont=0; + opus_val16 thresh; + T1 = celt_udiv(2*T0+k, 2*k); + if (T1 < minperiod) + break; + /* Look for another strong correlation at T1b */ + if (k==2) + { + if (T1+T0>maxperiod) + T1b = T0; + else + T1b = T0+T1; + } else + { + T1b = celt_udiv(2*second_check[k]*T0+k, 2*k); + } + dual_inner_prod(x, &x[-T1], &x[-T1b], N, &xy, &xy2, arch); + xy = HALF32(xy + xy2); + yy = HALF32(yy_lookup[T1] + yy_lookup[T1b]); + g1 = compute_pitch_gain(xy, xx, yy); + if (abs(T1-prev_period)<=1) + cont = prev_gain; + else if (abs(T1-prev_period)<=2 && 5*k*k < T0) + cont = HALF16(prev_gain); + else + cont = 0; + thresh = MAX16(QCONST16(.3f,15), MULT16_16_Q15(QCONST16(.7f,15),g0)-cont); + /* Bias against very high pitch (very short period) to avoid false-positives + due to short-term correlation */ + if (T1<3*minperiod) + thresh = MAX16(QCONST16(.4f,15), MULT16_16_Q15(QCONST16(.85f,15),g0)-cont); + else if (T1<2*minperiod) + thresh = MAX16(QCONST16(.5f,15), MULT16_16_Q15(QCONST16(.9f,15),g0)-cont); + if (g1 > thresh) + { + best_xy = xy; + best_yy = yy; + T = T1; + g = g1; + } + } + best_xy = MAX32(0, best_xy); + if (best_yy <= best_xy) + pg = Q15ONE; + else + pg = SHR32(frac_div32(best_xy,best_yy+1),16); + + for (k=0;k<3;k++) + xcorr[k] = celt_inner_prod(x, x-(T+k-1), N, arch); + if ((xcorr[2]-xcorr[0]) > MULT16_32_Q15(QCONST16(.7f,15),xcorr[1]-xcorr[0])) + offset = 1; + else if ((xcorr[0]-xcorr[2]) > MULT16_32_Q15(QCONST16(.7f,15),xcorr[1]-xcorr[2])) + offset = -1; + else + offset = 0; + if (pg > g) + pg = g; + *T0_ = 2*T+offset; + + if (*T0_=3); + y_3=0; /* gcc doesn't realize that y_3 can't be used uninitialized */ + y_0=*y++; + y_1=*y++; + y_2=*y++; + for (j=0;j +#include "os_support.h" +#include "arch.h" +#include "mathops.h" +#include "stack_alloc.h" +#include "rate.h" + +#ifdef FIXED_POINT +/* Mean energy in each band quantized in Q4 */ +const signed char eMeans[25] = { + 103,100, 92, 85, 81, + 77, 72, 70, 78, 75, + 73, 71, 78, 74, 69, + 72, 70, 74, 76, 71, + 60, 60, 60, 60, 60 +}; +#else +/* Mean energy in each band quantized in Q4 and converted back to float */ +const opus_val16 eMeans[25] = { + 6.437500f, 6.250000f, 5.750000f, 5.312500f, 5.062500f, + 4.812500f, 4.500000f, 4.375000f, 4.875000f, 4.687500f, + 4.562500f, 4.437500f, 4.875000f, 4.625000f, 4.312500f, + 4.500000f, 4.375000f, 4.625000f, 4.750000f, 4.437500f, + 3.750000f, 3.750000f, 3.750000f, 3.750000f, 3.750000f +}; +#endif +/* prediction coefficients: 0.9, 0.8, 0.65, 0.5 */ +#ifdef FIXED_POINT +static const opus_val16 pred_coef[4] = {29440, 26112, 21248, 16384}; +static const opus_val16 beta_coef[4] = {30147, 22282, 12124, 6554}; +static const opus_val16 beta_intra = 4915; +#else +static const opus_val16 pred_coef[4] = {29440/32768., 26112/32768., 21248/32768., 16384/32768.}; +static const opus_val16 beta_coef[4] = {30147/32768., 22282/32768., 12124/32768., 6554/32768.}; +static const opus_val16 beta_intra = 4915/32768.; +#endif + +/*Parameters of the Laplace-like probability models used for the coarse energy. + There is one pair of parameters for each frame size, prediction type + (inter/intra), and band number. + The first number of each pair is the probability of 0, and the second is the + decay rate, both in Q8 precision.*/ +static const unsigned char e_prob_model[4][2][42] = { + /*120 sample frames.*/ + { + /*Inter*/ + { + 72, 127, 65, 129, 66, 128, 65, 128, 64, 128, 62, 128, 64, 128, + 64, 128, 92, 78, 92, 79, 92, 78, 90, 79, 116, 41, 115, 40, + 114, 40, 132, 26, 132, 26, 145, 17, 161, 12, 176, 10, 177, 11 + }, + /*Intra*/ + { + 24, 179, 48, 138, 54, 135, 54, 132, 53, 134, 56, 133, 55, 132, + 55, 132, 61, 114, 70, 96, 74, 88, 75, 88, 87, 74, 89, 66, + 91, 67, 100, 59, 108, 50, 120, 40, 122, 37, 97, 43, 78, 50 + } + }, + /*240 sample frames.*/ + { + /*Inter*/ + { + 83, 78, 84, 81, 88, 75, 86, 74, 87, 71, 90, 73, 93, 74, + 93, 74, 109, 40, 114, 36, 117, 34, 117, 34, 143, 17, 145, 18, + 146, 19, 162, 12, 165, 10, 178, 7, 189, 6, 190, 8, 177, 9 + }, + /*Intra*/ + { + 23, 178, 54, 115, 63, 102, 66, 98, 69, 99, 74, 89, 71, 91, + 73, 91, 78, 89, 86, 80, 92, 66, 93, 64, 102, 59, 103, 60, + 104, 60, 117, 52, 123, 44, 138, 35, 133, 31, 97, 38, 77, 45 + } + }, + /*480 sample frames.*/ + { + /*Inter*/ + { + 61, 90, 93, 60, 105, 42, 107, 41, 110, 45, 116, 38, 113, 38, + 112, 38, 124, 26, 132, 27, 136, 19, 140, 20, 155, 14, 159, 16, + 158, 18, 170, 13, 177, 10, 187, 8, 192, 6, 175, 9, 159, 10 + }, + /*Intra*/ + { + 21, 178, 59, 110, 71, 86, 75, 85, 84, 83, 91, 66, 88, 73, + 87, 72, 92, 75, 98, 72, 105, 58, 107, 54, 115, 52, 114, 55, + 112, 56, 129, 51, 132, 40, 150, 33, 140, 29, 98, 35, 77, 42 + } + }, + /*960 sample frames.*/ + { + /*Inter*/ + { + 42, 121, 96, 66, 108, 43, 111, 40, 117, 44, 123, 32, 120, 36, + 119, 33, 127, 33, 134, 34, 139, 21, 147, 23, 152, 20, 158, 25, + 154, 26, 166, 21, 173, 16, 184, 13, 184, 10, 150, 13, 139, 15 + }, + /*Intra*/ + { + 22, 178, 63, 114, 74, 82, 84, 83, 92, 82, 103, 62, 96, 72, + 96, 67, 101, 73, 107, 72, 113, 55, 118, 52, 125, 52, 118, 52, + 117, 55, 135, 49, 137, 39, 157, 32, 145, 29, 97, 33, 77, 40 + } + } +}; + +static const unsigned char small_energy_icdf[3]={2,1,0}; + +static opus_val32 loss_distortion(const opus_val16 *eBands, opus_val16 *oldEBands, int start, int end, int len, int C) +{ + int c, i; + opus_val32 dist = 0; + c=0; do { + for (i=start;inbEBands]; + oldE = MAX16(-QCONST16(9.f,DB_SHIFT), oldEBands[i+c*m->nbEBands]); +#ifdef FIXED_POINT + f = SHL32(EXTEND32(x),7) - PSHR32(MULT16_16(coef,oldE), 8) - prev[c]; + /* Rounding to nearest integer here is really important! */ + qi = (f+QCONST32(.5f,DB_SHIFT+7))>>(DB_SHIFT+7); + decay_bound = EXTRACT16(MAX32(-QCONST16(28.f,DB_SHIFT), + SUB32((opus_val32)oldEBands[i+c*m->nbEBands],max_decay))); +#else + f = x-coef*oldE-prev[c]; + /* Rounding to nearest integer here is really important! */ + qi = (int)floor(.5f+f); + decay_bound = MAX16(-QCONST16(28.f,DB_SHIFT), oldEBands[i+c*m->nbEBands]) - max_decay; +#endif + /* Prevent the energy from going down too quickly (e.g. for bands + that have just one bin) */ + if (qi < 0 && x < decay_bound) + { + qi += (int)SHR16(SUB16(decay_bound,x), DB_SHIFT); + if (qi > 0) + qi = 0; + } + qi0 = qi; + /* If we don't have enough bits to encode all the energy, just assume + something safe. */ + tell = ec_tell(enc); + bits_left = budget-tell-3*C*(end-i); + if (i!=start && bits_left < 30) + { + if (bits_left < 24) + qi = IMIN(1, qi); + if (bits_left < 16) + qi = IMAX(-1, qi); + } + if (lfe && i>=2) + qi = IMIN(qi, 0); + if (budget-tell >= 15) + { + int pi; + pi = 2*IMIN(i,20); + ec_laplace_encode(enc, &qi, + prob_model[pi]<<7, prob_model[pi+1]<<6); + } + else if(budget-tell >= 2) + { + qi = IMAX(-1, IMIN(qi, 1)); + ec_enc_icdf(enc, 2*qi^-(qi<0), small_energy_icdf, 2); + } + else if(budget-tell >= 1) + { + qi = IMIN(0, qi); + ec_enc_bit_logp(enc, -qi, 1); + } + else + qi = -1; + error[i+c*m->nbEBands] = PSHR32(f,7) - SHL16(qi,DB_SHIFT); + badness += abs(qi0-qi); + q = (opus_val32)SHL32(EXTEND32(qi),DB_SHIFT); + + tmp = PSHR32(MULT16_16(coef,oldE),8) + prev[c] + SHL32(q,7); +#ifdef FIXED_POINT + tmp = MAX32(-QCONST32(28.f, DB_SHIFT+7), tmp); +#endif + oldEBands[i+c*m->nbEBands] = PSHR32(tmp, 7); + prev[c] = prev[c] + SHL32(q,7) - MULT16_16(beta,PSHR32(q,8)); + } while (++c < C); + } + return lfe ? 0 : badness; +} + +void quant_coarse_energy(const CELTMode *m, int start, int end, int effEnd, + const opus_val16 *eBands, opus_val16 *oldEBands, opus_uint32 budget, + opus_val16 *error, ec_enc *enc, int C, int LM, int nbAvailableBytes, + int force_intra, opus_val32 *delayedIntra, int two_pass, int loss_rate, int lfe) +{ + int intra; + opus_val16 max_decay; + VARDECL(opus_val16, oldEBands_intra); + VARDECL(opus_val16, error_intra); + ec_enc enc_start_state; + opus_uint32 tell; + int badness1=0; + opus_int32 intra_bias; + opus_val32 new_distortion; + SAVE_STACK; + + intra = force_intra || (!two_pass && *delayedIntra>2*C*(end-start) && nbAvailableBytes > (end-start)*C); + intra_bias = (opus_int32)((budget**delayedIntra*loss_rate)/(C*512)); + new_distortion = loss_distortion(eBands, oldEBands, start, effEnd, m->nbEBands, C); + + tell = ec_tell(enc); + if (tell+3 > budget) + two_pass = intra = 0; + + max_decay = QCONST16(16.f,DB_SHIFT); + if (end-start>10) + { +#ifdef FIXED_POINT + max_decay = MIN32(max_decay, SHL32(EXTEND32(nbAvailableBytes),DB_SHIFT-3)); +#else + max_decay = MIN32(max_decay, .125f*nbAvailableBytes); +#endif + } + if (lfe) + max_decay = QCONST16(3.f,DB_SHIFT); + enc_start_state = *enc; + + ALLOC(oldEBands_intra, C*m->nbEBands, opus_val16); + ALLOC(error_intra, C*m->nbEBands, opus_val16); + OPUS_COPY(oldEBands_intra, oldEBands, C*m->nbEBands); + + if (two_pass || intra) + { + badness1 = quant_coarse_energy_impl(m, start, end, eBands, oldEBands_intra, budget, + tell, e_prob_model[LM][1], error_intra, enc, C, LM, 1, max_decay, lfe); + } + + if (!intra) + { + unsigned char *intra_buf; + ec_enc enc_intra_state; + opus_int32 tell_intra; + opus_uint32 nstart_bytes; + opus_uint32 nintra_bytes; + opus_uint32 save_bytes; + int badness2; + VARDECL(unsigned char, intra_bits); + + tell_intra = ec_tell_frac(enc); + + enc_intra_state = *enc; + + nstart_bytes = ec_range_bytes(&enc_start_state); + nintra_bytes = ec_range_bytes(&enc_intra_state); + intra_buf = ec_get_buffer(&enc_intra_state) + nstart_bytes; + save_bytes = nintra_bytes-nstart_bytes; + if (save_bytes == 0) + save_bytes = ALLOC_NONE; + ALLOC(intra_bits, save_bytes, unsigned char); + /* Copy bits from intra bit-stream */ + OPUS_COPY(intra_bits, intra_buf, nintra_bytes - nstart_bytes); + + *enc = enc_start_state; + + badness2 = quant_coarse_energy_impl(m, start, end, eBands, oldEBands, budget, + tell, e_prob_model[LM][intra], error, enc, C, LM, 0, max_decay, lfe); + + if (two_pass && (badness1 < badness2 || (badness1 == badness2 && ((opus_int32)ec_tell_frac(enc))+intra_bias > tell_intra))) + { + *enc = enc_intra_state; + /* Copy intra bits to bit-stream */ + OPUS_COPY(intra_buf, intra_bits, nintra_bytes - nstart_bytes); + OPUS_COPY(oldEBands, oldEBands_intra, C*m->nbEBands); + OPUS_COPY(error, error_intra, C*m->nbEBands); + intra = 1; + } + } else { + OPUS_COPY(oldEBands, oldEBands_intra, C*m->nbEBands); + OPUS_COPY(error, error_intra, C*m->nbEBands); + } + + if (intra) + *delayedIntra = new_distortion; + else + *delayedIntra = ADD32(MULT16_32_Q15(MULT16_16_Q15(pred_coef[LM], pred_coef[LM]),*delayedIntra), + new_distortion); + + RESTORE_STACK; +} + +void quant_fine_energy(const CELTMode *m, int start, int end, opus_val16 *oldEBands, opus_val16 *error, int *fine_quant, ec_enc *enc, int C) +{ + int i, c; + + /* Encode finer resolution */ + for (i=start;inbEBands]+QCONST16(.5f,DB_SHIFT))>>(DB_SHIFT-fine_quant[i]); +#else + q2 = (int)floor((error[i+c*m->nbEBands]+.5f)*frac); +#endif + if (q2 > frac-1) + q2 = frac-1; + if (q2<0) + q2 = 0; + ec_enc_bits(enc, q2, fine_quant[i]); +#ifdef FIXED_POINT + offset = SUB16(SHR32(SHL32(EXTEND32(q2),DB_SHIFT)+QCONST16(.5f,DB_SHIFT),fine_quant[i]),QCONST16(.5f,DB_SHIFT)); +#else + offset = (q2+.5f)*(1<<(14-fine_quant[i]))*(1.f/16384) - .5f; +#endif + oldEBands[i+c*m->nbEBands] += offset; + error[i+c*m->nbEBands] -= offset; + /*printf ("%f ", error[i] - offset);*/ + } while (++c < C); + } +} + +void quant_energy_finalise(const CELTMode *m, int start, int end, opus_val16 *oldEBands, opus_val16 *error, int *fine_quant, int *fine_priority, int bits_left, ec_enc *enc, int C) +{ + int i, prio, c; + + /* Use up the remaining bits */ + for (prio=0;prio<2;prio++) + { + for (i=start;i=C ;i++) + { + if (fine_quant[i] >= MAX_FINE_BITS || fine_priority[i]!=prio) + continue; + c=0; + do { + int q2; + opus_val16 offset; + q2 = error[i+c*m->nbEBands]<0 ? 0 : 1; + ec_enc_bits(enc, q2, 1); +#ifdef FIXED_POINT + offset = SHR16(SHL16(q2,DB_SHIFT)-QCONST16(.5f,DB_SHIFT),fine_quant[i]+1); +#else + offset = (q2-.5f)*(1<<(14-fine_quant[i]-1))*(1.f/16384); +#endif + oldEBands[i+c*m->nbEBands] += offset; + error[i+c*m->nbEBands] -= offset; + bits_left--; + } while (++c < C); + } + } +} + +void unquant_coarse_energy(const CELTMode *m, int start, int end, opus_val16 *oldEBands, int intra, ec_dec *dec, int C, int LM) +{ + const unsigned char *prob_model = e_prob_model[LM][intra]; + int i, c; + opus_val32 prev[2] = {0, 0}; + opus_val16 coef; + opus_val16 beta; + opus_int32 budget; + opus_int32 tell; + + if (intra) + { + coef = 0; + beta = beta_intra; + } else { + beta = beta_coef[LM]; + coef = pred_coef[LM]; + } + + budget = dec->storage*8; + + /* Decode at a fixed coarse resolution */ + for (i=start;i=15) + { + int pi; + pi = 2*IMIN(i,20); + qi = ec_laplace_decode(dec, + prob_model[pi]<<7, prob_model[pi+1]<<6); + } + else if(budget-tell>=2) + { + qi = ec_dec_icdf(dec, small_energy_icdf, 2); + qi = (qi>>1)^-(qi&1); + } + else if(budget-tell>=1) + { + qi = -ec_dec_bit_logp(dec, 1); + } + else + qi = -1; + q = (opus_val32)SHL32(EXTEND32(qi),DB_SHIFT); + + oldEBands[i+c*m->nbEBands] = MAX16(-QCONST16(9.f,DB_SHIFT), oldEBands[i+c*m->nbEBands]); + tmp = PSHR32(MULT16_16(coef,oldEBands[i+c*m->nbEBands]),8) + prev[c] + SHL32(q,7); +#ifdef FIXED_POINT + tmp = MAX32(-QCONST32(28.f, DB_SHIFT+7), tmp); +#endif + oldEBands[i+c*m->nbEBands] = PSHR32(tmp, 7); + prev[c] = prev[c] + SHL32(q,7) - MULT16_16(beta,PSHR32(q,8)); + } while (++c < C); + } +} + +void unquant_fine_energy(const CELTMode *m, int start, int end, opus_val16 *oldEBands, int *fine_quant, ec_dec *dec, int C) +{ + int i, c; + /* Decode finer resolution */ + for (i=start;inbEBands] += offset; + } while (++c < C); + } +} + +void unquant_energy_finalise(const CELTMode *m, int start, int end, opus_val16 *oldEBands, int *fine_quant, int *fine_priority, int bits_left, ec_dec *dec, int C) +{ + int i, prio, c; + + /* Use up the remaining bits */ + for (prio=0;prio<2;prio++) + { + for (i=start;i=C ;i++) + { + if (fine_quant[i] >= MAX_FINE_BITS || fine_priority[i]!=prio) + continue; + c=0; + do { + int q2; + opus_val16 offset; + q2 = ec_dec_bits(dec, 1); +#ifdef FIXED_POINT + offset = SHR16(SHL16(q2,DB_SHIFT)-QCONST16(.5f,DB_SHIFT),fine_quant[i]+1); +#else + offset = (q2-.5f)*(1<<(14-fine_quant[i]-1))*(1.f/16384); +#endif + oldEBands[i+c*m->nbEBands] += offset; + bits_left--; + } while (++c < C); + } + } +} + +void amp2Log2(const CELTMode *m, int effEnd, int end, + celt_ener *bandE, opus_val16 *bandLogE, int C) +{ + int c, i; + c=0; + do { + for (i=0;inbEBands] = + celt_log2(bandE[i+c*m->nbEBands]) + - SHL16((opus_val16)eMeans[i],6); +#ifdef FIXED_POINT + /* Compensate for bandE[] being Q12 but celt_log2() taking a Q14 input. */ + bandLogE[i+c*m->nbEBands] += QCONST16(2.f, DB_SHIFT); +#endif + } + for (i=effEnd;inbEBands+i] = -QCONST16(14.f,DB_SHIFT); + } while (++c < C); +} diff --git a/components/opus/libopus/celt/quant_bands.h b/components/opus/libopus/celt/quant_bands.h new file mode 100644 index 0000000..0490bca --- /dev/null +++ b/components/opus/libopus/celt/quant_bands.h @@ -0,0 +1,66 @@ +/* Copyright (c) 2007-2008 CSIRO + Copyright (c) 2007-2009 Xiph.Org Foundation + Written by Jean-Marc Valin */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifndef QUANT_BANDS +#define QUANT_BANDS + +#include "arch.h" +#include "modes.h" +#include "entenc.h" +#include "entdec.h" +#include "mathops.h" + +#ifdef FIXED_POINT +extern const signed char eMeans[25]; +#else +extern const opus_val16 eMeans[25]; +#endif + +void amp2Log2(const CELTMode *m, int effEnd, int end, + celt_ener *bandE, opus_val16 *bandLogE, int C); + +void log2Amp(const CELTMode *m, int start, int end, + celt_ener *eBands, const opus_val16 *oldEBands, int C); + +void quant_coarse_energy(const CELTMode *m, int start, int end, int effEnd, + const opus_val16 *eBands, opus_val16 *oldEBands, opus_uint32 budget, + opus_val16 *error, ec_enc *enc, int C, int LM, + int nbAvailableBytes, int force_intra, opus_val32 *delayedIntra, + int two_pass, int loss_rate, int lfe); + +void quant_fine_energy(const CELTMode *m, int start, int end, opus_val16 *oldEBands, opus_val16 *error, int *fine_quant, ec_enc *enc, int C); + +void quant_energy_finalise(const CELTMode *m, int start, int end, opus_val16 *oldEBands, opus_val16 *error, int *fine_quant, int *fine_priority, int bits_left, ec_enc *enc, int C); + +void unquant_coarse_energy(const CELTMode *m, int start, int end, opus_val16 *oldEBands, int intra, ec_dec *dec, int C, int LM); + +void unquant_fine_energy(const CELTMode *m, int start, int end, opus_val16 *oldEBands, int *fine_quant, ec_dec *dec, int C); + +void unquant_energy_finalise(const CELTMode *m, int start, int end, opus_val16 *oldEBands, int *fine_quant, int *fine_priority, int bits_left, ec_dec *dec, int C); + +#endif /* QUANT_BANDS */ diff --git a/components/opus/libopus/celt/rate.c b/components/opus/libopus/celt/rate.c new file mode 100644 index 0000000..465e1ba --- /dev/null +++ b/components/opus/libopus/celt/rate.c @@ -0,0 +1,644 @@ +/* Copyright (c) 2007-2008 CSIRO + Copyright (c) 2007-2009 Xiph.Org Foundation + Written by Jean-Marc Valin */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include "modes.h" +#include "cwrs.h" +#include "arch.h" +#include "os_support.h" + +#include "entcode.h" +#include "rate.h" + +static const unsigned char LOG2_FRAC_TABLE[24]={ + 0, + 8,13, + 16,19,21,23, + 24,26,27,28,29,30,31,32, + 32,33,34,34,35,36,36,37,37 +}; + +#ifdef CUSTOM_MODES + +/*Determines if V(N,K) fits in a 32-bit unsigned integer. + N and K are themselves limited to 15 bits.*/ +static int fits_in32(int _n, int _k) +{ + static const opus_int16 maxN[15] = { + 32767, 32767, 32767, 1476, 283, 109, 60, 40, + 29, 24, 20, 18, 16, 14, 13}; + static const opus_int16 maxK[15] = { + 32767, 32767, 32767, 32767, 1172, 238, 95, 53, + 36, 27, 22, 18, 16, 15, 13}; + if (_n>=14) + { + if (_k>=14) + return 0; + else + return _n <= maxN[_k]; + } else { + return _k <= maxK[_n]; + } +} + +void compute_pulse_cache(CELTMode *m, int LM) +{ + int C; + int i; + int j; + int curr=0; + int nbEntries=0; + int entryN[100], entryK[100], entryI[100]; + const opus_int16 *eBands = m->eBands; + PulseCache *cache = &m->cache; + opus_int16 *cindex; + unsigned char *bits; + unsigned char *cap; + + cindex = (opus_int16 *)opus_alloc(sizeof(cache->index[0])*m->nbEBands*(LM+2)); + cache->index = cindex; + + /* Scan for all unique band sizes */ + for (i=0;i<=LM+1;i++) + { + for (j=0;jnbEBands;j++) + { + int k; + int N = (eBands[j+1]-eBands[j])<>1; + cindex[i*m->nbEBands+j] = -1; + /* Find other bands that have the same size */ + for (k=0;k<=i;k++) + { + int n; + for (n=0;nnbEBands && (k!=i || n>1) + { + cindex[i*m->nbEBands+j] = cindex[k*m->nbEBands+n]; + break; + } + } + } + if (cache->index[i*m->nbEBands+j] == -1 && N!=0) + { + int K; + entryN[nbEntries] = N; + K = 0; + while (fits_in32(N,get_pulses(K+1)) && KnbEBands+j] = curr; + entryI[nbEntries] = curr; + + curr += K+1; + nbEntries++; + } + } + } + bits = (unsigned char *)opus_alloc(sizeof(unsigned char)*curr); + cache->bits = bits; + cache->size = curr; + /* Compute the cache for all unique sizes */ + for (i=0;icaps = cap = (unsigned char *)opus_alloc(sizeof(cache->caps[0])*(LM+1)*2*m->nbEBands); + for (i=0;i<=LM;i++) + { + for (C=1;C<=2;C++) + { + for (j=0;jnbEBands;j++) + { + int N0; + int max_bits; + N0 = m->eBands[j+1]-m->eBands[j]; + /* N=1 bands only have a sign bit and fine bits. */ + if (N0<1 are even, including custom modes.*/ + if (N0 > 2) + { + N0>>=1; + LM0--; + } + /* N0=1 bands can't be split down to N<2. */ + else if (N0 <= 1) + { + LM0=IMIN(i,1); + N0<<=LM0; + } + /* Compute the cost for the lowest-level PVQ of a fully split + band. */ + pcache = bits + cindex[(LM0+1)*m->nbEBands+j]; + max_bits = pcache[pcache[0]]+1; + /* Add in the cost of coding regular splits. */ + N = N0; + for(k=0;klogN[j]+((LM0+k)<>1)-QTHETA_OFFSET; + /* The number of qtheta bits we'll allocate if the remainder + is to be max_bits. + The average measured cost for theta is 0.89701 times qb, + approximated here as 459/512. */ + num=459*(opus_int32)((2*N-1)*offset+max_bits); + den=((opus_int32)(2*N-1)<<9)-459; + qb = IMIN((num+(den>>1))/den, 57); + celt_assert(qb >= 0); + max_bits += qb; + N <<= 1; + } + /* Add in the cost of a stereo split, if necessary. */ + if (C==2) + { + max_bits <<= 1; + offset = ((m->logN[j]+(i<>1)-(N==2?QTHETA_OFFSET_TWOPHASE:QTHETA_OFFSET); + ndof = 2*N-1-(N==2); + /* The average measured cost for theta with the step PDF is + 0.95164 times qb, approximated here as 487/512. */ + num = (N==2?512:487)*(opus_int32)(max_bits+ndof*offset); + den = ((opus_int32)ndof<<9)-(N==2?512:487); + qb = IMIN((num+(den>>1))/den, (N==2?64:61)); + celt_assert(qb >= 0); + max_bits += qb; + } + /* Add the fine bits we'll use. */ + /* Compensate for the extra DoF in stereo */ + ndof = C*N + ((C==2 && N>2) ? 1 : 0); + /* Offset the number of fine bits by log2(N)/2 + FINE_OFFSET + compared to their "fair share" of total/N */ + offset = ((m->logN[j] + (i<>1)-FINE_OFFSET; + /* N=2 is the only point that doesn't match the curve */ + if (N==2) + offset += 1<>2; + /* The number of fine bits we'll allocate if the remainder is + to be max_bits. */ + num = max_bits+ndof*offset; + den = (ndof-1)<>1))/den, MAX_FINE_BITS); + celt_assert(qb >= 0); + max_bits += C*qb<eBands[j+1]-m->eBands[j])<= 0); + celt_assert(max_bits < 256); + *cap++ = (unsigned char)max_bits; + } + } + } +} + +#endif /* CUSTOM_MODES */ + +#define ALLOC_STEPS 6 + +static OPUS_INLINE int interp_bits2pulses(const CELTMode *m, int start, int end, int skip_start, + const int *bits1, const int *bits2, const int *thresh, const int *cap, opus_int32 total, opus_int32 *_balance, + int skip_rsv, int *intensity, int intensity_rsv, int *dual_stereo, int dual_stereo_rsv, int *bits, + int *ebits, int *fine_priority, int C, int LM, ec_ctx *ec, int encode, int prev, int signalBandwidth) +{ + opus_int32 psum; + int lo, hi; + int i, j; + int logM; + int stereo; + int codedBands=-1; + int alloc_floor; + opus_int32 left, percoeff; + int done; + opus_int32 balance; + SAVE_STACK; + + alloc_floor = C<1; + + logM = LM<>1; + psum = 0; + done = 0; + for (j=end;j-->start;) + { + int tmp = bits1[j] + (mid*(opus_int32)bits2[j]>>ALLOC_STEPS); + if (tmp >= thresh[j] || done) + { + done = 1; + /* Don't allocate more than we can actually use */ + psum += IMIN(tmp, cap[j]); + } else { + if (tmp >= alloc_floor) + psum += alloc_floor; + } + } + if (psum > total) + hi = mid; + else + lo = mid; + } + psum = 0; + /*printf ("interp bisection gave %d\n", lo);*/ + done = 0; + for (j=end;j-->start;) + { + int tmp = bits1[j] + ((opus_int32)lo*bits2[j]>>ALLOC_STEPS); + if (tmp < thresh[j] && !done) + { + if (tmp >= alloc_floor) + tmp = alloc_floor; + else + tmp = 0; + } else + done = 1; + /* Don't allocate more than we can actually use */ + tmp = IMIN(tmp, cap[j]); + bits[j] = tmp; + psum += tmp; + } + + /* Decide which bands to skip, working backwards from the end. */ + for (codedBands=end;;codedBands--) + { + int band_width; + int band_bits; + int rem; + j = codedBands-1; + /* Never skip the first band, nor a band that has been boosted by + dynalloc. + In the first case, we'd be coding a bit to signal we're going to waste + all the other bits. + In the second case, we'd be coding a bit to redistribute all the bits + we just signaled should be cocentrated in this band. */ + if (j<=skip_start) + { + /* Give the bit we reserved to end skipping back. */ + total += skip_rsv; + break; + } + /*Figure out how many left-over bits we would be adding to this band. + This can include bits we've stolen back from higher, skipped bands.*/ + left = total-psum; + percoeff = celt_udiv(left, m->eBands[codedBands]-m->eBands[start]); + left -= (m->eBands[codedBands]-m->eBands[start])*percoeff; + rem = IMAX(left-(m->eBands[j]-m->eBands[start]),0); + band_width = m->eBands[codedBands]-m->eBands[j]; + band_bits = (int)(bits[j] + percoeff*band_width + rem); + /*Only code a skip decision if we're above the threshold for this band. + Otherwise it is force-skipped. + This ensures that we have enough bits to code the skip flag.*/ + if (band_bits >= IMAX(thresh[j], alloc_floor+(1< 17) + depth_threshold = j (depth_threshold*band_width<>4 && j<=signalBandwidth)) +#endif + { + ec_enc_bit_logp(ec, 1, 1); + break; + } + ec_enc_bit_logp(ec, 0, 1); + } else if (ec_dec_bit_logp(ec, 1)) { + break; + } + /*We used a bit to skip this band.*/ + psum += 1< 0) + intensity_rsv = LOG2_FRAC_TABLE[j-start]; + psum += intensity_rsv; + if (band_bits >= alloc_floor) + { + /*If we have enough for a fine energy bit per channel, use it.*/ + psum += alloc_floor; + bits[j] = alloc_floor; + } else { + /*Otherwise this band gets nothing at all.*/ + bits[j] = 0; + } + } + + celt_assert(codedBands > start); + /* Code the intensity and dual stereo parameters. */ + if (intensity_rsv > 0) + { + if (encode) + { + *intensity = IMIN(*intensity, codedBands); + ec_enc_uint(ec, *intensity-start, codedBands+1-start); + } + else + *intensity = start+ec_dec_uint(ec, codedBands+1-start); + } + else + *intensity = 0; + if (*intensity <= start) + { + total += dual_stereo_rsv; + dual_stereo_rsv = 0; + } + if (dual_stereo_rsv > 0) + { + if (encode) + ec_enc_bit_logp(ec, *dual_stereo, 1); + else + *dual_stereo = ec_dec_bit_logp(ec, 1); + } + else + *dual_stereo = 0; + + /* Allocate the remaining bits */ + left = total-psum; + percoeff = celt_udiv(left, m->eBands[codedBands]-m->eBands[start]); + left -= (m->eBands[codedBands]-m->eBands[start])*percoeff; + for (j=start;jeBands[j+1]-m->eBands[j])); + for (j=start;jeBands[j+1]-m->eBands[j]); + bits[j] += tmp; + left -= tmp; + } + /*for (j=0;j= 0); + N0 = m->eBands[j+1]-m->eBands[j]; + N=N0<1) + { + excess = MAX32(bit-cap[j],0); + bits[j] = bit-excess; + + /* Compensate for the extra DoF in stereo */ + den=(C*N+ ((C==2 && N>2 && !*dual_stereo && j<*intensity) ? 1 : 0)); + + NClogN = den*(m->logN[j] + logM); + + /* Offset for the number of fine bits by log2(N)/2 + FINE_OFFSET + compared to their "fair share" of total/N */ + offset = (NClogN>>1)-den*FINE_OFFSET; + + /* N=2 is the only point that doesn't match the curve */ + if (N==2) + offset += den<>2; + + /* Changing the offset for allocating the second and third + fine energy bit */ + if (bits[j] + offset < den*2<>2; + else if (bits[j] + offset < den*3<>3; + + /* Divide with rounding */ + ebits[j] = IMAX(0, (bits[j] + offset + (den<<(BITRES-1)))); + ebits[j] = celt_udiv(ebits[j], den)>>BITRES; + + /* Make sure not to bust */ + if (C*ebits[j] > (bits[j]>>BITRES)) + ebits[j] = bits[j] >> stereo >> BITRES; + + /* More than that is useless because that's about as far as PVQ can go */ + ebits[j] = IMIN(ebits[j], MAX_FINE_BITS); + + /* If we rounded down or capped this band, make it a candidate for the + final fine energy pass */ + fine_priority[j] = ebits[j]*(den<= bits[j]+offset; + + /* Remove the allocated fine bits; the rest are assigned to PVQ */ + bits[j] -= C*ebits[j]< 0) + { + int extra_fine; + int extra_bits; + extra_fine = IMIN(excess>>(stereo+BITRES),MAX_FINE_BITS-ebits[j]); + ebits[j] += extra_fine; + extra_bits = extra_fine*C<= excess-balance; + excess -= extra_bits; + } + balance = excess; + + celt_assert(bits[j] >= 0); + celt_assert(ebits[j] >= 0); + } + /* Save any remaining bits over the cap for the rebalancing in + quant_all_bands(). */ + *_balance = balance; + + /* The skipped bands use all their bits for fine energy. */ + for (;j> stereo >> BITRES; + celt_assert(C*ebits[j]<nbEBands; + skip_start = start; + /* Reserve a bit to signal the end of manually skipped bands. */ + skip_rsv = total >= 1<total) + intensity_rsv = 0; + else + { + total -= intensity_rsv; + dual_stereo_rsv = total>=1<eBands[j+1]-m->eBands[j])<>4); + /* Tilt of the allocation curve */ + trim_offset[j] = C*(m->eBands[j+1]-m->eBands[j])*(alloc_trim-5-LM)*(end-j-1) + *(1<<(LM+BITRES))>>6; + /* Giving less resolution to single-coefficient bands because they get + more benefit from having one coarse value per coefficient*/ + if ((m->eBands[j+1]-m->eBands[j])<nbAllocVectors - 1; + do + { + int done = 0; + int psum = 0; + int mid = (lo+hi) >> 1; + for (j=end;j-->start;) + { + int bitsj; + int N = m->eBands[j+1]-m->eBands[j]; + bitsj = C*N*m->allocVectors[mid*len+j]<>2; + if (bitsj > 0) + bitsj = IMAX(0, bitsj + trim_offset[j]); + bitsj += offsets[j]; + if (bitsj >= thresh[j] || done) + { + done = 1; + /* Don't allocate more than we can actually use */ + psum += IMIN(bitsj, cap[j]); + } else { + if (bitsj >= C< total) + hi = mid - 1; + else + lo = mid + 1; + /*printf ("lo = %d, hi = %d\n", lo, hi);*/ + } + while (lo <= hi); + hi = lo--; + /*printf ("interp between %d and %d\n", lo, hi);*/ + for (j=start;jeBands[j+1]-m->eBands[j]; + bits1j = C*N*m->allocVectors[lo*len+j]<>2; + bits2j = hi>=m->nbAllocVectors ? + cap[j] : C*N*m->allocVectors[hi*len+j]<>2; + if (bits1j > 0) + bits1j = IMAX(0, bits1j + trim_offset[j]); + if (bits2j > 0) + bits2j = IMAX(0, bits2j + trim_offset[j]); + if (lo > 0) + bits1j += offsets[j]; + bits2j += offsets[j]; + if (offsets[j]>0) + skip_start = j; + bits2j = IMAX(0,bits2j-bits1j); + bits1[j] = bits1j; + bits2[j] = bits2j; + } + codedBands = interp_bits2pulses(m, start, end, skip_start, bits1, bits2, thresh, cap, + total, balance, skip_rsv, intensity, intensity_rsv, dual_stereo, dual_stereo_rsv, + pulses, ebits, fine_priority, C, LM, ec, encode, prev, signalBandwidth); + RESTORE_STACK; + return codedBands; +} + diff --git a/components/opus/libopus/celt/rate.h b/components/opus/libopus/celt/rate.h new file mode 100644 index 0000000..fad5e41 --- /dev/null +++ b/components/opus/libopus/celt/rate.h @@ -0,0 +1,101 @@ +/* Copyright (c) 2007-2008 CSIRO + Copyright (c) 2007-2009 Xiph.Org Foundation + Written by Jean-Marc Valin */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifndef RATE_H +#define RATE_H + +#define MAX_PSEUDO 40 +#define LOG_MAX_PSEUDO 6 + +#define CELT_MAX_PULSES 128 + +#define MAX_FINE_BITS 8 + +#define FINE_OFFSET 21 +#define QTHETA_OFFSET 4 +#define QTHETA_OFFSET_TWOPHASE 16 + +#include "cwrs.h" +#include "modes.h" + +void compute_pulse_cache(CELTMode *m, int LM); + +static OPUS_INLINE int get_pulses(int i) +{ + return i<8 ? i : (8 + (i&7)) << ((i>>3)-1); +} + +static OPUS_INLINE int bits2pulses(const CELTMode *m, int band, int LM, int bits) +{ + int i; + int lo, hi; + const unsigned char *cache; + + LM++; + cache = m->cache.bits + m->cache.index[LM*m->nbEBands+band]; + + lo = 0; + hi = cache[0]; + bits--; + for (i=0;i>1; + /* OPT: Make sure this is implemented with a conditional move */ + if ((int)cache[mid] >= bits) + hi = mid; + else + lo = mid; + } + if (bits- (lo == 0 ? -1 : (int)cache[lo]) <= (int)cache[hi]-bits) + return lo; + else + return hi; +} + +static OPUS_INLINE int pulses2bits(const CELTMode *m, int band, int LM, int pulses) +{ + const unsigned char *cache; + + LM++; + cache = m->cache.bits + m->cache.index[LM*m->nbEBands+band]; + return pulses == 0 ? 0 : cache[pulses]+1; +} + +/** Compute the pulse allocation, i.e. how many pulses will go in each + * band. + @param m mode + @param offsets Requested increase or decrease in the number of bits for + each band + @param total Number of bands + @param pulses Number of pulses per band (returned) + @return Total number of bits allocated +*/ +int clt_compute_allocation(const CELTMode *m, int start, int end, const int *offsets, const int *cap, int alloc_trim, int *intensity, int *dual_stereo, + opus_int32 total, opus_int32 *balance, int *pulses, int *ebits, int *fine_priority, int C, int LM, ec_ctx *ec, int encode, int prev, int signalBandwidth); + +#endif diff --git a/components/opus/libopus/celt/stack_alloc.h b/components/opus/libopus/celt/stack_alloc.h new file mode 100644 index 0000000..2b51c8d --- /dev/null +++ b/components/opus/libopus/celt/stack_alloc.h @@ -0,0 +1,184 @@ +/* Copyright (C) 2002-2003 Jean-Marc Valin + Copyright (C) 2007-2009 Xiph.Org Foundation */ +/** + @file stack_alloc.h + @brief Temporary memory allocation on stack +*/ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifndef STACK_ALLOC_H +#define STACK_ALLOC_H + +#include "opus_types.h" +#include "opus_defines.h" + +#if (!defined (VAR_ARRAYS) && !defined (USE_ALLOCA) && !defined (NONTHREADSAFE_PSEUDOSTACK)) +#error "Opus requires one of VAR_ARRAYS, USE_ALLOCA, or NONTHREADSAFE_PSEUDOSTACK be defined to select the temporary allocation mode." +#endif + +#ifdef USE_ALLOCA +# ifdef WIN32 +# include +# else +# ifdef HAVE_ALLOCA_H +# include +# else +# include +# endif +# endif +#endif + +/** + * @def ALIGN(stack, size) + * + * Aligns the stack to a 'size' boundary + * + * @param stack Stack + * @param size New size boundary + */ + +/** + * @def PUSH(stack, size, type) + * + * Allocates 'size' elements of type 'type' on the stack + * + * @param stack Stack + * @param size Number of elements + * @param type Type of element + */ + +/** + * @def VARDECL(var) + * + * Declare variable on stack + * + * @param var Variable to declare + */ + +/** + * @def ALLOC(var, size, type) + * + * Allocate 'size' elements of 'type' on stack + * + * @param var Name of variable to allocate + * @param size Number of elements + * @param type Type of element + */ + +#if defined(VAR_ARRAYS) + +#define VARDECL(type, var) +#define ALLOC(var, size, type) type var[size] +#define SAVE_STACK +#define RESTORE_STACK +#define ALLOC_STACK +/* C99 does not allow VLAs of size zero */ +#define ALLOC_NONE 1 + +#elif defined(USE_ALLOCA) + +#define VARDECL(type, var) type *var + +# ifdef WIN32 +# define ALLOC(var, size, type) var = ((type*)_alloca(sizeof(type)*(size))) +# else +# define ALLOC(var, size, type) var = ((type*)alloca(sizeof(type)*(size))) +# endif + +#define SAVE_STACK +#define RESTORE_STACK +#define ALLOC_STACK +#define ALLOC_NONE 0 + +#else + +#ifdef CELT_C +char *scratch_ptr=0; +char *global_stack=0; +#else +extern char *global_stack; +extern char *scratch_ptr; +#endif /* CELT_C */ + +#ifdef ENABLE_VALGRIND + +#include + +#ifdef CELT_C +char *global_stack_top=0; +#else +extern char *global_stack_top; +#endif /* CELT_C */ + +#define ALIGN(stack, size) ((stack) += ((size) - (long)(stack)) & ((size) - 1)) +#define PUSH(stack, size, type) (VALGRIND_MAKE_MEM_NOACCESS(stack, global_stack_top-stack),ALIGN((stack),sizeof(type)/sizeof(char)),VALGRIND_MAKE_MEM_UNDEFINED(stack, ((size)*sizeof(type)/sizeof(char))),(stack)+=(2*(size)*sizeof(type)/sizeof(char)),(type*)((stack)-(2*(size)*sizeof(type)/sizeof(char)))) +#define RESTORE_STACK ((global_stack = _saved_stack),VALGRIND_MAKE_MEM_NOACCESS(global_stack, global_stack_top-global_stack)) +#define ALLOC_STACK char *_saved_stack; ((global_stack = (global_stack==0) ? ((global_stack_top=opus_alloc_scratch(GLOBAL_STACK_SIZE*2)+(GLOBAL_STACK_SIZE*2))-(GLOBAL_STACK_SIZE*2)) : global_stack),VALGRIND_MAKE_MEM_NOACCESS(global_stack, global_stack_top-global_stack)); _saved_stack = global_stack; + +#else + +#define ALIGN(stack, size) ((stack) += ((size) - (long)(stack)) & ((size) - 1)) +#define PUSH(stack, size, type) (ALIGN((stack),sizeof(type)/sizeof(char)),(stack)+=(size)*(sizeof(type)/sizeof(char)),(type*)((stack)-(size)*(sizeof(type)/sizeof(char)))) +#if 0 /* Set this to 1 to instrument pseudostack usage */ +#define RESTORE_STACK (printf("%ld %s:%d\n", global_stack-scratch_ptr, __FILE__, __LINE__),global_stack = _saved_stack) +#else +#define RESTORE_STACK (global_stack = _saved_stack) +#endif +#define ALLOC_STACK char *_saved_stack; (global_stack = (global_stack==0) ? (scratch_ptr=opus_alloc_scratch(GLOBAL_STACK_SIZE)) : global_stack); _saved_stack = global_stack; + +#endif /* ENABLE_VALGRIND */ + +#include "os_support.h" +#define VARDECL(type, var) type *var +#define ALLOC(var, size, type) var = PUSH(global_stack, size, type) +#define SAVE_STACK char *_saved_stack = global_stack; +#define ALLOC_NONE 0 + +#endif /* VAR_ARRAYS */ + + +#ifdef ENABLE_VALGRIND + +#include +#define OPUS_CHECK_ARRAY(ptr, len) VALGRIND_CHECK_MEM_IS_DEFINED(ptr, len*sizeof(*ptr)) +#define OPUS_CHECK_VALUE(value) VALGRIND_CHECK_VALUE_IS_DEFINED(value) +#define OPUS_CHECK_ARRAY_COND(ptr, len) VALGRIND_CHECK_MEM_IS_DEFINED(ptr, len*sizeof(*ptr)) +#define OPUS_CHECK_VALUE_COND(value) VALGRIND_CHECK_VALUE_IS_DEFINED(value) +#define OPUS_PRINT_INT(value) do {fprintf(stderr, #value " = %d at %s:%d\n", value, __FILE__, __LINE__);}while(0) +#define OPUS_FPRINTF fprintf + +#else + +static OPUS_INLINE int _opus_false(void) {return 0;} +#define OPUS_CHECK_ARRAY(ptr, len) _opus_false() +#define OPUS_CHECK_VALUE(value) _opus_false() +#define OPUS_PRINT_INT(value) do{}while(0) +#define OPUS_FPRINTF (void) + +#endif + + +#endif /* STACK_ALLOC_H */ diff --git a/components/opus/libopus/celt/static_modes_fixed.h b/components/opus/libopus/celt/static_modes_fixed.h new file mode 100644 index 0000000..8717d62 --- /dev/null +++ b/components/opus/libopus/celt/static_modes_fixed.h @@ -0,0 +1,892 @@ +/* The contents of this file was automatically generated by dump_modes.c + with arguments: 48000 960 + It contains static definitions for some pre-defined modes. */ +#include "modes.h" +#include "rate.h" + +#ifdef HAVE_ARM_NE10 +#define OVERRIDE_FFT 1 +#include "static_modes_fixed_arm_ne10.h" +#endif + +#ifndef DEF_WINDOW120 +#define DEF_WINDOW120 +static const opus_val16 window120[120] = { +2, 20, 55, 108, 178, +266, 372, 494, 635, 792, +966, 1157, 1365, 1590, 1831, +2089, 2362, 2651, 2956, 3276, +3611, 3961, 4325, 4703, 5094, +5499, 5916, 6346, 6788, 7241, +7705, 8179, 8663, 9156, 9657, +10167, 10684, 11207, 11736, 12271, +12810, 13353, 13899, 14447, 14997, +15547, 16098, 16648, 17197, 17744, +18287, 18827, 19363, 19893, 20418, +20936, 21447, 21950, 22445, 22931, +23407, 23874, 24330, 24774, 25208, +25629, 26039, 26435, 26819, 27190, +27548, 27893, 28224, 28541, 28845, +29135, 29411, 29674, 29924, 30160, +30384, 30594, 30792, 30977, 31151, +31313, 31463, 31602, 31731, 31849, +31958, 32057, 32148, 32229, 32303, +32370, 32429, 32481, 32528, 32568, +32604, 32634, 32661, 32683, 32701, +32717, 32729, 32740, 32748, 32754, +32758, 32762, 32764, 32766, 32767, +32767, 32767, 32767, 32767, 32767, +}; +#endif + +#ifndef DEF_LOGN400 +#define DEF_LOGN400 +static const opus_int16 logN400[21] = { +0, 0, 0, 0, 0, 0, 0, 0, 8, 8, 8, 8, 16, 16, 16, 21, 21, 24, 29, 34, 36, }; +#endif + +#ifndef DEF_PULSE_CACHE50 +#define DEF_PULSE_CACHE50 +static const opus_int16 cache_index50[105] = { +-1, -1, -1, -1, -1, -1, -1, -1, 0, 0, 0, 0, 41, 41, 41, +82, 82, 123, 164, 200, 222, 0, 0, 0, 0, 0, 0, 0, 0, 41, +41, 41, 41, 123, 123, 123, 164, 164, 240, 266, 283, 295, 41, 41, 41, +41, 41, 41, 41, 41, 123, 123, 123, 123, 240, 240, 240, 266, 266, 305, +318, 328, 336, 123, 123, 123, 123, 123, 123, 123, 123, 240, 240, 240, 240, +305, 305, 305, 318, 318, 343, 351, 358, 364, 240, 240, 240, 240, 240, 240, +240, 240, 305, 305, 305, 305, 343, 343, 343, 351, 351, 370, 376, 382, 387, +}; +static const unsigned char cache_bits50[392] = { +40, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, +7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, +7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 40, 15, 23, 28, +31, 34, 36, 38, 39, 41, 42, 43, 44, 45, 46, 47, 47, 49, 50, +51, 52, 53, 54, 55, 55, 57, 58, 59, 60, 61, 62, 63, 63, 65, +66, 67, 68, 69, 70, 71, 71, 40, 20, 33, 41, 48, 53, 57, 61, +64, 66, 69, 71, 73, 75, 76, 78, 80, 82, 85, 87, 89, 91, 92, +94, 96, 98, 101, 103, 105, 107, 108, 110, 112, 114, 117, 119, 121, 123, +124, 126, 128, 40, 23, 39, 51, 60, 67, 73, 79, 83, 87, 91, 94, +97, 100, 102, 105, 107, 111, 115, 118, 121, 124, 126, 129, 131, 135, 139, +142, 145, 148, 150, 153, 155, 159, 163, 166, 169, 172, 174, 177, 179, 35, +28, 49, 65, 78, 89, 99, 107, 114, 120, 126, 132, 136, 141, 145, 149, +153, 159, 165, 171, 176, 180, 185, 189, 192, 199, 205, 211, 216, 220, 225, +229, 232, 239, 245, 251, 21, 33, 58, 79, 97, 112, 125, 137, 148, 157, +166, 174, 182, 189, 195, 201, 207, 217, 227, 235, 243, 251, 17, 35, 63, +86, 106, 123, 139, 152, 165, 177, 187, 197, 206, 214, 222, 230, 237, 250, +25, 31, 55, 75, 91, 105, 117, 128, 138, 146, 154, 161, 168, 174, 180, +185, 190, 200, 208, 215, 222, 229, 235, 240, 245, 255, 16, 36, 65, 89, +110, 128, 144, 159, 173, 185, 196, 207, 217, 226, 234, 242, 250, 11, 41, +74, 103, 128, 151, 172, 191, 209, 225, 241, 255, 9, 43, 79, 110, 138, +163, 186, 207, 227, 246, 12, 39, 71, 99, 123, 144, 164, 182, 198, 214, +228, 241, 253, 9, 44, 81, 113, 142, 168, 192, 214, 235, 255, 7, 49, +90, 127, 160, 191, 220, 247, 6, 51, 95, 134, 170, 203, 234, 7, 47, +87, 123, 155, 184, 212, 237, 6, 52, 97, 137, 174, 208, 240, 5, 57, +106, 151, 192, 231, 5, 59, 111, 158, 202, 243, 5, 55, 103, 147, 187, +224, 5, 60, 113, 161, 206, 248, 4, 65, 122, 175, 224, 4, 67, 127, +182, 234, }; +static const unsigned char cache_caps50[168] = { +224, 224, 224, 224, 224, 224, 224, 224, 160, 160, 160, 160, 185, 185, 185, +178, 178, 168, 134, 61, 37, 224, 224, 224, 224, 224, 224, 224, 224, 240, +240, 240, 240, 207, 207, 207, 198, 198, 183, 144, 66, 40, 160, 160, 160, +160, 160, 160, 160, 160, 185, 185, 185, 185, 193, 193, 193, 183, 183, 172, +138, 64, 38, 240, 240, 240, 240, 240, 240, 240, 240, 207, 207, 207, 207, +204, 204, 204, 193, 193, 180, 143, 66, 40, 185, 185, 185, 185, 185, 185, +185, 185, 193, 193, 193, 193, 193, 193, 193, 183, 183, 172, 138, 65, 39, +207, 207, 207, 207, 207, 207, 207, 207, 204, 204, 204, 204, 201, 201, 201, +188, 188, 176, 141, 66, 40, 193, 193, 193, 193, 193, 193, 193, 193, 193, +193, 193, 193, 194, 194, 194, 184, 184, 173, 139, 65, 39, 204, 204, 204, +204, 204, 204, 204, 204, 201, 201, 201, 201, 198, 198, 198, 187, 187, 175, +140, 66, 40, }; +#endif + +#ifndef FFT_TWIDDLES48000_960 +#define FFT_TWIDDLES48000_960 +static const kiss_twiddle_cpx fft_twiddles48000_960[480] = { +{32767, 0}, {32766, -429}, +{32757, -858}, {32743, -1287}, +{32724, -1715}, {32698, -2143}, +{32667, -2570}, {32631, -2998}, +{32588, -3425}, {32541, -3851}, +{32488, -4277}, {32429, -4701}, +{32364, -5125}, {32295, -5548}, +{32219, -5971}, {32138, -6393}, +{32051, -6813}, {31960, -7231}, +{31863, -7650}, {31760, -8067}, +{31652, -8481}, {31539, -8895}, +{31419, -9306}, {31294, -9716}, +{31165, -10126}, {31030, -10532}, +{30889, -10937}, {30743, -11340}, +{30592, -11741}, {30436, -12141}, +{30274, -12540}, {30107, -12935}, +{29936, -13328}, {29758, -13718}, +{29577, -14107}, {29390, -14493}, +{29197, -14875}, {29000, -15257}, +{28797, -15635}, {28590, -16010}, +{28379, -16384}, {28162, -16753}, +{27940, -17119}, {27714, -17484}, +{27482, -17845}, {27246, -18205}, +{27006, -18560}, {26760, -18911}, +{26510, -19260}, {26257, -19606}, +{25997, -19947}, {25734, -20286}, +{25466, -20621}, {25194, -20952}, +{24918, -21281}, {24637, -21605}, +{24353, -21926}, {24063, -22242}, +{23770, -22555}, {23473, -22865}, +{23171, -23171}, {22866, -23472}, +{22557, -23769}, {22244, -24063}, +{21927, -24352}, {21606, -24636}, +{21282, -24917}, {20954, -25194}, +{20622, -25465}, {20288, -25733}, +{19949, -25997}, {19607, -26255}, +{19261, -26509}, {18914, -26760}, +{18561, -27004}, {18205, -27246}, +{17846, -27481}, {17485, -27713}, +{17122, -27940}, {16755, -28162}, +{16385, -28378}, {16012, -28590}, +{15636, -28797}, {15258, -28999}, +{14878, -29197}, {14494, -29389}, +{14108, -29576}, {13720, -29757}, +{13329, -29934}, {12937, -30107}, +{12540, -30274}, {12142, -30435}, +{11744, -30592}, {11342, -30743}, +{10939, -30889}, {10534, -31030}, +{10127, -31164}, {9718, -31294}, +{9307, -31418}, {8895, -31537}, +{8482, -31652}, {8067, -31759}, +{7650, -31862}, {7233, -31960}, +{6815, -32051}, {6393, -32138}, +{5973, -32219}, {5549, -32294}, +{5127, -32364}, {4703, -32429}, +{4278, -32487}, {3852, -32541}, +{3426, -32588}, {2999, -32630}, +{2572, -32667}, {2144, -32698}, +{1716, -32724}, {1287, -32742}, +{860, -32757}, {430, -32766}, +{0, -32767}, {-429, -32766}, +{-858, -32757}, {-1287, -32743}, +{-1715, -32724}, {-2143, -32698}, +{-2570, -32667}, {-2998, -32631}, +{-3425, -32588}, {-3851, -32541}, +{-4277, -32488}, {-4701, -32429}, +{-5125, -32364}, {-5548, -32295}, +{-5971, -32219}, {-6393, -32138}, +{-6813, -32051}, {-7231, -31960}, +{-7650, -31863}, {-8067, -31760}, +{-8481, -31652}, {-8895, -31539}, +{-9306, -31419}, {-9716, -31294}, +{-10126, -31165}, {-10532, -31030}, +{-10937, -30889}, {-11340, -30743}, +{-11741, -30592}, {-12141, -30436}, +{-12540, -30274}, {-12935, -30107}, +{-13328, -29936}, {-13718, -29758}, +{-14107, -29577}, {-14493, -29390}, +{-14875, -29197}, {-15257, -29000}, +{-15635, -28797}, {-16010, -28590}, +{-16384, -28379}, {-16753, -28162}, +{-17119, -27940}, {-17484, -27714}, +{-17845, -27482}, {-18205, -27246}, +{-18560, -27006}, {-18911, -26760}, +{-19260, -26510}, {-19606, -26257}, +{-19947, -25997}, {-20286, -25734}, +{-20621, -25466}, {-20952, -25194}, +{-21281, -24918}, {-21605, -24637}, +{-21926, -24353}, {-22242, -24063}, +{-22555, -23770}, {-22865, -23473}, +{-23171, -23171}, {-23472, -22866}, +{-23769, -22557}, {-24063, -22244}, +{-24352, -21927}, {-24636, -21606}, +{-24917, -21282}, {-25194, -20954}, +{-25465, -20622}, {-25733, -20288}, +{-25997, -19949}, {-26255, -19607}, +{-26509, -19261}, {-26760, -18914}, +{-27004, -18561}, {-27246, -18205}, +{-27481, -17846}, {-27713, -17485}, +{-27940, -17122}, {-28162, -16755}, +{-28378, -16385}, {-28590, -16012}, +{-28797, -15636}, {-28999, -15258}, +{-29197, -14878}, {-29389, -14494}, +{-29576, -14108}, {-29757, -13720}, +{-29934, -13329}, {-30107, -12937}, +{-30274, -12540}, {-30435, -12142}, +{-30592, -11744}, {-30743, -11342}, +{-30889, -10939}, {-31030, -10534}, +{-31164, -10127}, {-31294, -9718}, +{-31418, -9307}, {-31537, -8895}, +{-31652, -8482}, {-31759, -8067}, +{-31862, -7650}, {-31960, -7233}, +{-32051, -6815}, {-32138, -6393}, +{-32219, -5973}, {-32294, -5549}, +{-32364, -5127}, {-32429, -4703}, +{-32487, -4278}, {-32541, -3852}, +{-32588, -3426}, {-32630, -2999}, +{-32667, -2572}, {-32698, -2144}, +{-32724, -1716}, {-32742, -1287}, +{-32757, -860}, {-32766, -430}, +{-32767, 0}, {-32766, 429}, +{-32757, 858}, {-32743, 1287}, +{-32724, 1715}, {-32698, 2143}, +{-32667, 2570}, {-32631, 2998}, +{-32588, 3425}, {-32541, 3851}, +{-32488, 4277}, {-32429, 4701}, +{-32364, 5125}, {-32295, 5548}, +{-32219, 5971}, {-32138, 6393}, +{-32051, 6813}, {-31960, 7231}, +{-31863, 7650}, {-31760, 8067}, +{-31652, 8481}, {-31539, 8895}, +{-31419, 9306}, {-31294, 9716}, +{-31165, 10126}, {-31030, 10532}, +{-30889, 10937}, {-30743, 11340}, +{-30592, 11741}, {-30436, 12141}, +{-30274, 12540}, {-30107, 12935}, +{-29936, 13328}, {-29758, 13718}, +{-29577, 14107}, {-29390, 14493}, +{-29197, 14875}, {-29000, 15257}, +{-28797, 15635}, {-28590, 16010}, +{-28379, 16384}, {-28162, 16753}, +{-27940, 17119}, {-27714, 17484}, +{-27482, 17845}, {-27246, 18205}, +{-27006, 18560}, {-26760, 18911}, +{-26510, 19260}, {-26257, 19606}, +{-25997, 19947}, {-25734, 20286}, +{-25466, 20621}, {-25194, 20952}, +{-24918, 21281}, {-24637, 21605}, +{-24353, 21926}, {-24063, 22242}, +{-23770, 22555}, {-23473, 22865}, +{-23171, 23171}, {-22866, 23472}, +{-22557, 23769}, {-22244, 24063}, +{-21927, 24352}, {-21606, 24636}, +{-21282, 24917}, {-20954, 25194}, +{-20622, 25465}, {-20288, 25733}, +{-19949, 25997}, {-19607, 26255}, +{-19261, 26509}, {-18914, 26760}, +{-18561, 27004}, {-18205, 27246}, +{-17846, 27481}, {-17485, 27713}, +{-17122, 27940}, {-16755, 28162}, +{-16385, 28378}, {-16012, 28590}, +{-15636, 28797}, {-15258, 28999}, +{-14878, 29197}, {-14494, 29389}, +{-14108, 29576}, {-13720, 29757}, +{-13329, 29934}, {-12937, 30107}, +{-12540, 30274}, {-12142, 30435}, +{-11744, 30592}, {-11342, 30743}, +{-10939, 30889}, {-10534, 31030}, +{-10127, 31164}, {-9718, 31294}, +{-9307, 31418}, {-8895, 31537}, +{-8482, 31652}, {-8067, 31759}, +{-7650, 31862}, {-7233, 31960}, +{-6815, 32051}, {-6393, 32138}, +{-5973, 32219}, {-5549, 32294}, +{-5127, 32364}, {-4703, 32429}, +{-4278, 32487}, {-3852, 32541}, +{-3426, 32588}, {-2999, 32630}, +{-2572, 32667}, {-2144, 32698}, +{-1716, 32724}, {-1287, 32742}, +{-860, 32757}, {-430, 32766}, +{0, 32767}, {429, 32766}, +{858, 32757}, {1287, 32743}, +{1715, 32724}, {2143, 32698}, +{2570, 32667}, {2998, 32631}, +{3425, 32588}, {3851, 32541}, +{4277, 32488}, {4701, 32429}, +{5125, 32364}, {5548, 32295}, +{5971, 32219}, {6393, 32138}, +{6813, 32051}, {7231, 31960}, +{7650, 31863}, {8067, 31760}, +{8481, 31652}, {8895, 31539}, +{9306, 31419}, {9716, 31294}, +{10126, 31165}, {10532, 31030}, +{10937, 30889}, {11340, 30743}, +{11741, 30592}, {12141, 30436}, +{12540, 30274}, {12935, 30107}, +{13328, 29936}, {13718, 29758}, +{14107, 29577}, {14493, 29390}, +{14875, 29197}, {15257, 29000}, +{15635, 28797}, {16010, 28590}, +{16384, 28379}, {16753, 28162}, +{17119, 27940}, {17484, 27714}, +{17845, 27482}, {18205, 27246}, +{18560, 27006}, {18911, 26760}, +{19260, 26510}, {19606, 26257}, +{19947, 25997}, {20286, 25734}, +{20621, 25466}, {20952, 25194}, +{21281, 24918}, {21605, 24637}, +{21926, 24353}, {22242, 24063}, +{22555, 23770}, {22865, 23473}, +{23171, 23171}, {23472, 22866}, +{23769, 22557}, {24063, 22244}, +{24352, 21927}, {24636, 21606}, +{24917, 21282}, {25194, 20954}, +{25465, 20622}, {25733, 20288}, +{25997, 19949}, {26255, 19607}, +{26509, 19261}, {26760, 18914}, +{27004, 18561}, {27246, 18205}, +{27481, 17846}, {27713, 17485}, +{27940, 17122}, {28162, 16755}, +{28378, 16385}, {28590, 16012}, +{28797, 15636}, {28999, 15258}, +{29197, 14878}, {29389, 14494}, +{29576, 14108}, {29757, 13720}, +{29934, 13329}, {30107, 12937}, +{30274, 12540}, {30435, 12142}, +{30592, 11744}, {30743, 11342}, +{30889, 10939}, {31030, 10534}, +{31164, 10127}, {31294, 9718}, +{31418, 9307}, {31537, 8895}, +{31652, 8482}, {31759, 8067}, +{31862, 7650}, {31960, 7233}, +{32051, 6815}, {32138, 6393}, +{32219, 5973}, {32294, 5549}, +{32364, 5127}, {32429, 4703}, +{32487, 4278}, {32541, 3852}, +{32588, 3426}, {32630, 2999}, +{32667, 2572}, {32698, 2144}, +{32724, 1716}, {32742, 1287}, +{32757, 860}, {32766, 430}, +}; +#ifndef FFT_BITREV480 +#define FFT_BITREV480 +static const opus_int16 fft_bitrev480[480] = { +0, 96, 192, 288, 384, 32, 128, 224, 320, 416, 64, 160, 256, 352, 448, +8, 104, 200, 296, 392, 40, 136, 232, 328, 424, 72, 168, 264, 360, 456, +16, 112, 208, 304, 400, 48, 144, 240, 336, 432, 80, 176, 272, 368, 464, +24, 120, 216, 312, 408, 56, 152, 248, 344, 440, 88, 184, 280, 376, 472, +4, 100, 196, 292, 388, 36, 132, 228, 324, 420, 68, 164, 260, 356, 452, +12, 108, 204, 300, 396, 44, 140, 236, 332, 428, 76, 172, 268, 364, 460, +20, 116, 212, 308, 404, 52, 148, 244, 340, 436, 84, 180, 276, 372, 468, +28, 124, 220, 316, 412, 60, 156, 252, 348, 444, 92, 188, 284, 380, 476, +1, 97, 193, 289, 385, 33, 129, 225, 321, 417, 65, 161, 257, 353, 449, +9, 105, 201, 297, 393, 41, 137, 233, 329, 425, 73, 169, 265, 361, 457, +17, 113, 209, 305, 401, 49, 145, 241, 337, 433, 81, 177, 273, 369, 465, +25, 121, 217, 313, 409, 57, 153, 249, 345, 441, 89, 185, 281, 377, 473, +5, 101, 197, 293, 389, 37, 133, 229, 325, 421, 69, 165, 261, 357, 453, +13, 109, 205, 301, 397, 45, 141, 237, 333, 429, 77, 173, 269, 365, 461, +21, 117, 213, 309, 405, 53, 149, 245, 341, 437, 85, 181, 277, 373, 469, +29, 125, 221, 317, 413, 61, 157, 253, 349, 445, 93, 189, 285, 381, 477, +2, 98, 194, 290, 386, 34, 130, 226, 322, 418, 66, 162, 258, 354, 450, +10, 106, 202, 298, 394, 42, 138, 234, 330, 426, 74, 170, 266, 362, 458, +18, 114, 210, 306, 402, 50, 146, 242, 338, 434, 82, 178, 274, 370, 466, +26, 122, 218, 314, 410, 58, 154, 250, 346, 442, 90, 186, 282, 378, 474, +6, 102, 198, 294, 390, 38, 134, 230, 326, 422, 70, 166, 262, 358, 454, +14, 110, 206, 302, 398, 46, 142, 238, 334, 430, 78, 174, 270, 366, 462, +22, 118, 214, 310, 406, 54, 150, 246, 342, 438, 86, 182, 278, 374, 470, +30, 126, 222, 318, 414, 62, 158, 254, 350, 446, 94, 190, 286, 382, 478, +3, 99, 195, 291, 387, 35, 131, 227, 323, 419, 67, 163, 259, 355, 451, +11, 107, 203, 299, 395, 43, 139, 235, 331, 427, 75, 171, 267, 363, 459, +19, 115, 211, 307, 403, 51, 147, 243, 339, 435, 83, 179, 275, 371, 467, +27, 123, 219, 315, 411, 59, 155, 251, 347, 443, 91, 187, 283, 379, 475, +7, 103, 199, 295, 391, 39, 135, 231, 327, 423, 71, 167, 263, 359, 455, +15, 111, 207, 303, 399, 47, 143, 239, 335, 431, 79, 175, 271, 367, 463, +23, 119, 215, 311, 407, 55, 151, 247, 343, 439, 87, 183, 279, 375, 471, +31, 127, 223, 319, 415, 63, 159, 255, 351, 447, 95, 191, 287, 383, 479, +}; +#endif + +#ifndef FFT_BITREV240 +#define FFT_BITREV240 +static const opus_int16 fft_bitrev240[240] = { +0, 48, 96, 144, 192, 16, 64, 112, 160, 208, 32, 80, 128, 176, 224, +4, 52, 100, 148, 196, 20, 68, 116, 164, 212, 36, 84, 132, 180, 228, +8, 56, 104, 152, 200, 24, 72, 120, 168, 216, 40, 88, 136, 184, 232, +12, 60, 108, 156, 204, 28, 76, 124, 172, 220, 44, 92, 140, 188, 236, +1, 49, 97, 145, 193, 17, 65, 113, 161, 209, 33, 81, 129, 177, 225, +5, 53, 101, 149, 197, 21, 69, 117, 165, 213, 37, 85, 133, 181, 229, +9, 57, 105, 153, 201, 25, 73, 121, 169, 217, 41, 89, 137, 185, 233, +13, 61, 109, 157, 205, 29, 77, 125, 173, 221, 45, 93, 141, 189, 237, +2, 50, 98, 146, 194, 18, 66, 114, 162, 210, 34, 82, 130, 178, 226, +6, 54, 102, 150, 198, 22, 70, 118, 166, 214, 38, 86, 134, 182, 230, +10, 58, 106, 154, 202, 26, 74, 122, 170, 218, 42, 90, 138, 186, 234, +14, 62, 110, 158, 206, 30, 78, 126, 174, 222, 46, 94, 142, 190, 238, +3, 51, 99, 147, 195, 19, 67, 115, 163, 211, 35, 83, 131, 179, 227, +7, 55, 103, 151, 199, 23, 71, 119, 167, 215, 39, 87, 135, 183, 231, +11, 59, 107, 155, 203, 27, 75, 123, 171, 219, 43, 91, 139, 187, 235, +15, 63, 111, 159, 207, 31, 79, 127, 175, 223, 47, 95, 143, 191, 239, +}; +#endif + +#ifndef FFT_BITREV120 +#define FFT_BITREV120 +static const opus_int16 fft_bitrev120[120] = { +0, 24, 48, 72, 96, 8, 32, 56, 80, 104, 16, 40, 64, 88, 112, +4, 28, 52, 76, 100, 12, 36, 60, 84, 108, 20, 44, 68, 92, 116, +1, 25, 49, 73, 97, 9, 33, 57, 81, 105, 17, 41, 65, 89, 113, +5, 29, 53, 77, 101, 13, 37, 61, 85, 109, 21, 45, 69, 93, 117, +2, 26, 50, 74, 98, 10, 34, 58, 82, 106, 18, 42, 66, 90, 114, +6, 30, 54, 78, 102, 14, 38, 62, 86, 110, 22, 46, 70, 94, 118, +3, 27, 51, 75, 99, 11, 35, 59, 83, 107, 19, 43, 67, 91, 115, +7, 31, 55, 79, 103, 15, 39, 63, 87, 111, 23, 47, 71, 95, 119, +}; +#endif + +#ifndef FFT_BITREV60 +#define FFT_BITREV60 +static const opus_int16 fft_bitrev60[60] = { +0, 12, 24, 36, 48, 4, 16, 28, 40, 52, 8, 20, 32, 44, 56, +1, 13, 25, 37, 49, 5, 17, 29, 41, 53, 9, 21, 33, 45, 57, +2, 14, 26, 38, 50, 6, 18, 30, 42, 54, 10, 22, 34, 46, 58, +3, 15, 27, 39, 51, 7, 19, 31, 43, 55, 11, 23, 35, 47, 59, +}; +#endif + +#ifndef FFT_STATE48000_960_0 +#define FFT_STATE48000_960_0 +static const kiss_fft_state fft_state48000_960_0 = { +480, /* nfft */ +17476, /* scale */ +8, /* scale_shift */ +-1, /* shift */ +{5, 96, 3, 32, 4, 8, 2, 4, 4, 1, 0, 0, 0, 0, 0, 0, }, /* factors */ +fft_bitrev480, /* bitrev */ +fft_twiddles48000_960, /* bitrev */ +#ifdef OVERRIDE_FFT +(arch_fft_state *)&cfg_arch_480, +#else +NULL, +#endif +}; +#endif + +#ifndef FFT_STATE48000_960_1 +#define FFT_STATE48000_960_1 +static const kiss_fft_state fft_state48000_960_1 = { +240, /* nfft */ +17476, /* scale */ +7, /* scale_shift */ +1, /* shift */ +{5, 48, 3, 16, 4, 4, 4, 1, 0, 0, 0, 0, 0, 0, 0, 0, }, /* factors */ +fft_bitrev240, /* bitrev */ +fft_twiddles48000_960, /* bitrev */ +#ifdef OVERRIDE_FFT +(arch_fft_state *)&cfg_arch_240, +#else +NULL, +#endif +}; +#endif + +#ifndef FFT_STATE48000_960_2 +#define FFT_STATE48000_960_2 +static const kiss_fft_state fft_state48000_960_2 = { +120, /* nfft */ +17476, /* scale */ +6, /* scale_shift */ +2, /* shift */ +{5, 24, 3, 8, 2, 4, 4, 1, 0, 0, 0, 0, 0, 0, 0, 0, }, /* factors */ +fft_bitrev120, /* bitrev */ +fft_twiddles48000_960, /* bitrev */ +#ifdef OVERRIDE_FFT +(arch_fft_state *)&cfg_arch_120, +#else +NULL, +#endif +}; +#endif + +#ifndef FFT_STATE48000_960_3 +#define FFT_STATE48000_960_3 +static const kiss_fft_state fft_state48000_960_3 = { +60, /* nfft */ +17476, /* scale */ +5, /* scale_shift */ +3, /* shift */ +{5, 12, 3, 4, 4, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }, /* factors */ +fft_bitrev60, /* bitrev */ +fft_twiddles48000_960, /* bitrev */ +#ifdef OVERRIDE_FFT +(arch_fft_state *)&cfg_arch_60, +#else +NULL, +#endif +}; +#endif + +#endif + +#ifndef MDCT_TWIDDLES960 +#define MDCT_TWIDDLES960 +static const opus_val16 mdct_twiddles960[1800] = { +32767, 32767, 32767, 32766, 32765, +32763, 32761, 32759, 32756, 32753, +32750, 32746, 32742, 32738, 32733, +32728, 32722, 32717, 32710, 32704, +32697, 32690, 32682, 32674, 32666, +32657, 32648, 32639, 32629, 32619, +32609, 32598, 32587, 32576, 32564, +32552, 32539, 32526, 32513, 32500, +32486, 32472, 32457, 32442, 32427, +32411, 32395, 32379, 32362, 32345, +32328, 32310, 32292, 32274, 32255, +32236, 32217, 32197, 32177, 32157, +32136, 32115, 32093, 32071, 32049, +32027, 32004, 31981, 31957, 31933, +31909, 31884, 31859, 31834, 31809, +31783, 31756, 31730, 31703, 31676, +31648, 31620, 31592, 31563, 31534, +31505, 31475, 31445, 31415, 31384, +31353, 31322, 31290, 31258, 31226, +31193, 31160, 31127, 31093, 31059, +31025, 30990, 30955, 30920, 30884, +30848, 30812, 30775, 30738, 30701, +30663, 30625, 30587, 30548, 30509, +30470, 30430, 30390, 30350, 30309, +30269, 30227, 30186, 30144, 30102, +30059, 30016, 29973, 29930, 29886, +29842, 29797, 29752, 29707, 29662, +29616, 29570, 29524, 29477, 29430, +29383, 29335, 29287, 29239, 29190, +29142, 29092, 29043, 28993, 28943, +28892, 28842, 28791, 28739, 28688, +28636, 28583, 28531, 28478, 28425, +28371, 28317, 28263, 28209, 28154, +28099, 28044, 27988, 27932, 27876, +27820, 27763, 27706, 27648, 27591, +27533, 27474, 27416, 27357, 27298, +27238, 27178, 27118, 27058, 26997, +26936, 26875, 26814, 26752, 26690, +26628, 26565, 26502, 26439, 26375, +26312, 26247, 26183, 26119, 26054, +25988, 25923, 25857, 25791, 25725, +25658, 25592, 25524, 25457, 25389, +25322, 25253, 25185, 25116, 25047, +24978, 24908, 24838, 24768, 24698, +24627, 24557, 24485, 24414, 24342, +24270, 24198, 24126, 24053, 23980, +23907, 23834, 23760, 23686, 23612, +23537, 23462, 23387, 23312, 23237, +23161, 23085, 23009, 22932, 22856, +22779, 22701, 22624, 22546, 22468, +22390, 22312, 22233, 22154, 22075, +21996, 21916, 21836, 21756, 21676, +21595, 21515, 21434, 21352, 21271, +21189, 21107, 21025, 20943, 20860, +20777, 20694, 20611, 20528, 20444, +20360, 20276, 20192, 20107, 20022, +19937, 19852, 19767, 19681, 19595, +19509, 19423, 19336, 19250, 19163, +19076, 18988, 18901, 18813, 18725, +18637, 18549, 18460, 18372, 18283, +18194, 18104, 18015, 17925, 17835, +17745, 17655, 17565, 17474, 17383, +17292, 17201, 17110, 17018, 16927, +16835, 16743, 16650, 16558, 16465, +16372, 16279, 16186, 16093, 15999, +15906, 15812, 15718, 15624, 15529, +15435, 15340, 15245, 15150, 15055, +14960, 14864, 14769, 14673, 14577, +14481, 14385, 14288, 14192, 14095, +13998, 13901, 13804, 13706, 13609, +13511, 13414, 13316, 13218, 13119, +13021, 12923, 12824, 12725, 12626, +12527, 12428, 12329, 12230, 12130, +12030, 11930, 11831, 11730, 11630, +11530, 11430, 11329, 11228, 11128, +11027, 10926, 10824, 10723, 10622, +10520, 10419, 10317, 10215, 10113, +10011, 9909, 9807, 9704, 9602, +9499, 9397, 9294, 9191, 9088, +8985, 8882, 8778, 8675, 8572, +8468, 8364, 8261, 8157, 8053, +7949, 7845, 7741, 7637, 7532, +7428, 7323, 7219, 7114, 7009, +6905, 6800, 6695, 6590, 6485, +6380, 6274, 6169, 6064, 5958, +5853, 5747, 5642, 5536, 5430, +5325, 5219, 5113, 5007, 4901, +4795, 4689, 4583, 4476, 4370, +4264, 4157, 4051, 3945, 3838, +3732, 3625, 3518, 3412, 3305, +3198, 3092, 2985, 2878, 2771, +2664, 2558, 2451, 2344, 2237, +2130, 2023, 1916, 1809, 1702, +1594, 1487, 1380, 1273, 1166, +1059, 952, 844, 737, 630, +523, 416, 308, 201, 94, +-13, -121, -228, -335, -442, +-550, -657, -764, -871, -978, +-1086, -1193, -1300, -1407, -1514, +-1621, -1728, -1835, -1942, -2049, +-2157, -2263, -2370, -2477, -2584, +-2691, -2798, -2905, -3012, -3118, +-3225, -3332, -3439, -3545, -3652, +-3758, -3865, -3971, -4078, -4184, +-4290, -4397, -4503, -4609, -4715, +-4821, -4927, -5033, -5139, -5245, +-5351, -5457, -5562, -5668, -5774, +-5879, -5985, -6090, -6195, -6301, +-6406, -6511, -6616, -6721, -6826, +-6931, -7036, -7140, -7245, -7349, +-7454, -7558, -7663, -7767, -7871, +-7975, -8079, -8183, -8287, -8390, +-8494, -8597, -8701, -8804, -8907, +-9011, -9114, -9217, -9319, -9422, +-9525, -9627, -9730, -9832, -9934, +-10037, -10139, -10241, -10342, -10444, +-10546, -10647, -10748, -10850, -10951, +-11052, -11153, -11253, -11354, -11455, +-11555, -11655, -11756, -11856, -11955, +-12055, -12155, -12254, -12354, -12453, +-12552, -12651, -12750, -12849, -12947, +-13046, -13144, -13242, -13340, -13438, +-13536, -13633, -13731, -13828, -13925, +-14022, -14119, -14216, -14312, -14409, +-14505, -14601, -14697, -14793, -14888, +-14984, -15079, -15174, -15269, -15364, +-15459, -15553, -15647, -15741, -15835, +-15929, -16023, -16116, -16210, -16303, +-16396, -16488, -16581, -16673, -16766, +-16858, -16949, -17041, -17133, -17224, +-17315, -17406, -17497, -17587, -17678, +-17768, -17858, -17948, -18037, -18127, +-18216, -18305, -18394, -18483, -18571, +-18659, -18747, -18835, -18923, -19010, +-19098, -19185, -19271, -19358, -19444, +-19531, -19617, -19702, -19788, -19873, +-19959, -20043, -20128, -20213, -20297, +-20381, -20465, -20549, -20632, -20715, +-20798, -20881, -20963, -21046, -21128, +-21210, -21291, -21373, -21454, -21535, +-21616, -21696, -21776, -21856, -21936, +-22016, -22095, -22174, -22253, -22331, +-22410, -22488, -22566, -22643, -22721, +-22798, -22875, -22951, -23028, -23104, +-23180, -23256, -23331, -23406, -23481, +-23556, -23630, -23704, -23778, -23852, +-23925, -23998, -24071, -24144, -24216, +-24288, -24360, -24432, -24503, -24574, +-24645, -24716, -24786, -24856, -24926, +-24995, -25064, -25133, -25202, -25270, +-25339, -25406, -25474, -25541, -25608, +-25675, -25742, -25808, -25874, -25939, +-26005, -26070, -26135, -26199, -26264, +-26327, -26391, -26455, -26518, -26581, +-26643, -26705, -26767, -26829, -26891, +-26952, -27013, -27073, -27133, -27193, +-27253, -27312, -27372, -27430, -27489, +-27547, -27605, -27663, -27720, -27777, +-27834, -27890, -27946, -28002, -28058, +-28113, -28168, -28223, -28277, -28331, +-28385, -28438, -28491, -28544, -28596, +-28649, -28701, -28752, -28803, -28854, +-28905, -28955, -29006, -29055, -29105, +-29154, -29203, -29251, -29299, -29347, +-29395, -29442, -29489, -29535, -29582, +-29628, -29673, -29719, -29764, -29808, +-29853, -29897, -29941, -29984, -30027, +-30070, -30112, -30154, -30196, -30238, +-30279, -30320, -30360, -30400, -30440, +-30480, -30519, -30558, -30596, -30635, +-30672, -30710, -30747, -30784, -30821, +-30857, -30893, -30929, -30964, -30999, +-31033, -31068, -31102, -31135, -31168, +-31201, -31234, -31266, -31298, -31330, +-31361, -31392, -31422, -31453, -31483, +-31512, -31541, -31570, -31599, -31627, +-31655, -31682, -31710, -31737, -31763, +-31789, -31815, -31841, -31866, -31891, +-31915, -31939, -31963, -31986, -32010, +-32032, -32055, -32077, -32099, -32120, +-32141, -32162, -32182, -32202, -32222, +-32241, -32260, -32279, -32297, -32315, +-32333, -32350, -32367, -32383, -32399, +-32415, -32431, -32446, -32461, -32475, +-32489, -32503, -32517, -32530, -32542, +-32555, -32567, -32579, -32590, -32601, +-32612, -32622, -32632, -32641, -32651, +-32659, -32668, -32676, -32684, -32692, +-32699, -32706, -32712, -32718, -32724, +-32729, -32734, -32739, -32743, -32747, +-32751, -32754, -32757, -32760, -32762, +-32764, -32765, -32767, -32767, -32767, +32767, 32767, 32765, 32761, 32756, +32750, 32742, 32732, 32722, 32710, +32696, 32681, 32665, 32647, 32628, +32608, 32586, 32562, 32538, 32512, +32484, 32455, 32425, 32393, 32360, +32326, 32290, 32253, 32214, 32174, +32133, 32090, 32046, 32001, 31954, +31906, 31856, 31805, 31753, 31700, +31645, 31588, 31530, 31471, 31411, +31349, 31286, 31222, 31156, 31089, +31020, 30951, 30880, 30807, 30733, +30658, 30582, 30504, 30425, 30345, +30263, 30181, 30096, 30011, 29924, +29836, 29747, 29656, 29564, 29471, +29377, 29281, 29184, 29086, 28987, +28886, 28784, 28681, 28577, 28471, +28365, 28257, 28147, 28037, 27925, +27812, 27698, 27583, 27467, 27349, +27231, 27111, 26990, 26868, 26744, +26620, 26494, 26367, 26239, 26110, +25980, 25849, 25717, 25583, 25449, +25313, 25176, 25038, 24900, 24760, +24619, 24477, 24333, 24189, 24044, +23898, 23751, 23602, 23453, 23303, +23152, 22999, 22846, 22692, 22537, +22380, 22223, 22065, 21906, 21746, +21585, 21423, 21261, 21097, 20933, +20767, 20601, 20434, 20265, 20096, +19927, 19756, 19584, 19412, 19239, +19065, 18890, 18714, 18538, 18361, +18183, 18004, 17824, 17644, 17463, +17281, 17098, 16915, 16731, 16546, +16361, 16175, 15988, 15800, 15612, +15423, 15234, 15043, 14852, 14661, +14469, 14276, 14083, 13889, 13694, +13499, 13303, 13107, 12910, 12713, +12515, 12317, 12118, 11918, 11718, +11517, 11316, 11115, 10913, 10710, +10508, 10304, 10100, 9896, 9691, +9486, 9281, 9075, 8869, 8662, +8455, 8248, 8040, 7832, 7623, +7415, 7206, 6996, 6787, 6577, +6366, 6156, 5945, 5734, 5523, +5311, 5100, 4888, 4675, 4463, +4251, 4038, 3825, 3612, 3399, +3185, 2972, 2758, 2544, 2330, +2116, 1902, 1688, 1474, 1260, +1045, 831, 617, 402, 188, +-27, -241, -456, -670, -885, +-1099, -1313, -1528, -1742, -1956, +-2170, -2384, -2598, -2811, -3025, +-3239, -3452, -3665, -3878, -4091, +-4304, -4516, -4728, -4941, -5153, +-5364, -5576, -5787, -5998, -6209, +-6419, -6629, -6839, -7049, -7258, +-7467, -7676, -7884, -8092, -8300, +-8507, -8714, -8920, -9127, -9332, +-9538, -9743, -9947, -10151, -10355, +-10558, -10761, -10963, -11165, -11367, +-11568, -11768, -11968, -12167, -12366, +-12565, -12762, -12960, -13156, -13352, +-13548, -13743, -13937, -14131, -14324, +-14517, -14709, -14900, -15091, -15281, +-15470, -15659, -15847, -16035, -16221, +-16407, -16593, -16777, -16961, -17144, +-17326, -17508, -17689, -17869, -18049, +-18227, -18405, -18582, -18758, -18934, +-19108, -19282, -19455, -19627, -19799, +-19969, -20139, -20308, -20475, -20642, +-20809, -20974, -21138, -21301, -21464, +-21626, -21786, -21946, -22105, -22263, +-22420, -22575, -22730, -22884, -23037, +-23189, -23340, -23490, -23640, -23788, +-23935, -24080, -24225, -24369, -24512, +-24654, -24795, -24934, -25073, -25211, +-25347, -25482, -25617, -25750, -25882, +-26013, -26143, -26272, -26399, -26526, +-26651, -26775, -26898, -27020, -27141, +-27260, -27379, -27496, -27612, -27727, +-27841, -27953, -28065, -28175, -28284, +-28391, -28498, -28603, -28707, -28810, +-28911, -29012, -29111, -29209, -29305, +-29401, -29495, -29587, -29679, -29769, +-29858, -29946, -30032, -30118, -30201, +-30284, -30365, -30445, -30524, -30601, +-30677, -30752, -30825, -30897, -30968, +-31038, -31106, -31172, -31238, -31302, +-31365, -31426, -31486, -31545, -31602, +-31658, -31713, -31766, -31818, -31869, +-31918, -31966, -32012, -32058, -32101, +-32144, -32185, -32224, -32262, -32299, +-32335, -32369, -32401, -32433, -32463, +-32491, -32518, -32544, -32568, -32591, +-32613, -32633, -32652, -32669, -32685, +-32700, -32713, -32724, -32735, -32744, +-32751, -32757, -32762, -32766, -32767, +32767, 32764, 32755, 32741, 32720, +32694, 32663, 32626, 32583, 32535, +32481, 32421, 32356, 32286, 32209, +32128, 32041, 31948, 31850, 31747, +31638, 31523, 31403, 31278, 31148, +31012, 30871, 30724, 30572, 30415, +30253, 30086, 29913, 29736, 29553, +29365, 29172, 28974, 28771, 28564, +28351, 28134, 27911, 27684, 27452, +27216, 26975, 26729, 26478, 26223, +25964, 25700, 25432, 25159, 24882, +24601, 24315, 24026, 23732, 23434, +23133, 22827, 22517, 22204, 21886, +21565, 21240, 20912, 20580, 20244, +19905, 19563, 19217, 18868, 18516, +18160, 17802, 17440, 17075, 16708, +16338, 15964, 15588, 15210, 14829, +14445, 14059, 13670, 13279, 12886, +12490, 12093, 11693, 11291, 10888, +10482, 10075, 9666, 9255, 8843, +8429, 8014, 7597, 7180, 6760, +6340, 5919, 5496, 5073, 4649, +4224, 3798, 3372, 2945, 2517, +2090, 1661, 1233, 804, 375, +-54, -483, -911, -1340, -1768, +-2197, -2624, -3052, -3479, -3905, +-4330, -4755, -5179, -5602, -6024, +-6445, -6865, -7284, -7702, -8118, +-8533, -8946, -9358, -9768, -10177, +-10584, -10989, -11392, -11793, -12192, +-12589, -12984, -13377, -13767, -14155, +-14541, -14924, -15305, -15683, -16058, +-16430, -16800, -17167, -17531, -17892, +-18249, -18604, -18956, -19304, -19649, +-19990, -20329, -20663, -20994, -21322, +-21646, -21966, -22282, -22595, -22904, +-23208, -23509, -23806, -24099, -24387, +-24672, -24952, -25228, -25499, -25766, +-26029, -26288, -26541, -26791, -27035, +-27275, -27511, -27741, -27967, -28188, +-28405, -28616, -28823, -29024, -29221, +-29412, -29599, -29780, -29957, -30128, +-30294, -30455, -30611, -30761, -30906, +-31046, -31181, -31310, -31434, -31552, +-31665, -31773, -31875, -31972, -32063, +-32149, -32229, -32304, -32373, -32437, +-32495, -32547, -32594, -32635, -32671, +-32701, -32726, -32745, -32758, -32766, +32767, 32754, 32717, 32658, 32577, +32473, 32348, 32200, 32029, 31837, +31624, 31388, 31131, 30853, 30553, +30232, 29891, 29530, 29148, 28746, +28324, 27883, 27423, 26944, 26447, +25931, 25398, 24847, 24279, 23695, +23095, 22478, 21846, 21199, 20538, +19863, 19174, 18472, 17757, 17030, +16291, 15541, 14781, 14010, 13230, +12441, 11643, 10837, 10024, 9204, +8377, 7545, 6708, 5866, 5020, +4171, 3319, 2464, 1608, 751, +-107, -965, -1822, -2678, -3532, +-4383, -5232, -6077, -6918, -7754, +-8585, -9409, -10228, -11039, -11843, +-12639, -13426, -14204, -14972, -15730, +-16477, -17213, -17937, -18648, -19347, +-20033, -20705, -21363, -22006, -22634, +-23246, -23843, -24423, -24986, -25533, +-26062, -26573, -27066, -27540, -27995, +-28431, -28848, -29245, -29622, -29979, +-30315, -30630, -30924, -31197, -31449, +-31679, -31887, -32074, -32239, -32381, +-32501, -32600, -32675, -32729, -32759, +}; +#endif + +static const CELTMode mode48000_960_120 = { +48000, /* Fs */ +120, /* overlap */ +21, /* nbEBands */ +21, /* effEBands */ +{27853, 0, 4096, 8192, }, /* preemph */ +eband5ms, /* eBands */ +3, /* maxLM */ +8, /* nbShortMdcts */ +120, /* shortMdctSize */ +11, /* nbAllocVectors */ +band_allocation, /* allocVectors */ +logN400, /* logN */ +window120, /* window */ +{1920, 3, {&fft_state48000_960_0, &fft_state48000_960_1, &fft_state48000_960_2, &fft_state48000_960_3, }, mdct_twiddles960}, /* mdct */ +{392, cache_index50, cache_bits50, cache_caps50}, /* cache */ +}; + +/* List of all the available modes */ +#define TOTAL_MODES 1 +static const CELTMode * const static_mode_list[TOTAL_MODES] = { +&mode48000_960_120, +}; diff --git a/components/opus/libopus/celt/static_modes_fixed_arm_ne10.h b/components/opus/libopus/celt/static_modes_fixed_arm_ne10.h new file mode 100644 index 0000000..7623092 --- /dev/null +++ b/components/opus/libopus/celt/static_modes_fixed_arm_ne10.h @@ -0,0 +1,388 @@ +/* The contents of this file was automatically generated by + * dump_mode_arm_ne10.c with arguments: 48000 960 + * It contains static definitions for some pre-defined modes. */ +#include + +#ifndef NE10_FFT_PARAMS48000_960 +#define NE10_FFT_PARAMS48000_960 +static const ne10_int32_t ne10_factors_480[64] = { +4, 40, 4, 30, 2, 15, 5, 3, 3, 1, 1, 0, 0, 0, 0, +0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, +0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, +0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, +0, 0, 0, 0, }; +static const ne10_int32_t ne10_factors_240[64] = { +3, 20, 4, 15, 5, 3, 3, 1, 1, 0, 0, 0, 0, 0, 0, +0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, +0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, +0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, +0, 0, 0, 0, }; +static const ne10_int32_t ne10_factors_120[64] = { +3, 10, 2, 15, 5, 3, 3, 1, 1, 0, 0, 0, 0, 0, 0, +0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, +0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, +0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, +0, 0, 0, 0, }; +static const ne10_int32_t ne10_factors_60[64] = { +2, 5, 5, 3, 3, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, +0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, +0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, +0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, +0, 0, 0, 0, }; +static const ne10_fft_cpx_int32_t ne10_twiddles_480[480] = { +{0,0}, {2147483647,0}, {2147483647,0}, +{2147483647,0}, {1961823921,-873460313}, {1436946998,-1595891394}, +{2147483647,0}, {1436946998,-1595891394}, {-224473265,-2135719496}, +{2147483647,0}, {663608871,-2042378339}, {-1737350854,-1262259096}, +{2147483647,0}, {-224473265,-2135719496}, {-2100555935,446487152}, +{2147483647,0}, {2100555974,-446486968}, {1961823921,-873460313}, +{1737350743,-1262259248}, {1436946998,-1595891394}, {1073741769,-1859775424}, +{663608871,-2042378339}, {224473078,-2135719516}, {-224473265,-2135719496}, +{-663609049,-2042378281}, {-1073741932,-1859775330}, {-1436947137,-1595891268}, +{-1737350854,-1262259096}, {-1961823997,-873460141}, {-2100556013,-446486785}, +{2147483647,0}, {2144540595,-112390613}, {2135719506,-224473172}, +{2121044558,-335940465}, {2100555974,-446486968}, {2074309912,-555809682}, +{2042378310,-663608960}, {2004848691,-769589332}, {1961823921,-873460313}, +{1913421927,-974937199}, {1859775377,-1073741851}, {1801031311,-1169603450}, +{1737350743,-1262259248}, {1668908218,-1351455280}, {1595891331,-1436947067}, +{1518500216,-1518500282}, {1436946998,-1595891394}, {1351455207,-1668908277}, +{1262259172,-1737350799}, {1169603371,-1801031362}, {1073741769,-1859775424}, +{974937230,-1913421912}, {873460227,-1961823959}, {769589125,-2004848771}, +{663608871,-2042378339}, {555809715,-2074309903}, {446486876,-2100555994}, +{335940246,-2121044593}, {224473078,-2135719516}, {112390647,-2144540593}, +{2147483647,0}, {2135719506,-224473172}, {2100555974,-446486968}, +{2042378310,-663608960}, {1961823921,-873460313}, {1859775377,-1073741851}, +{1737350743,-1262259248}, {1595891331,-1436947067}, {1436946998,-1595891394}, +{1262259172,-1737350799}, {1073741769,-1859775424}, {873460227,-1961823959}, +{663608871,-2042378339}, {446486876,-2100555994}, {224473078,-2135719516}, +{-94,-2147483647}, {-224473265,-2135719496}, {-446487060,-2100555955}, +{-663609049,-2042378281}, {-873460398,-1961823883}, {-1073741932,-1859775330}, +{-1262259116,-1737350839}, {-1436947137,-1595891268}, {-1595891628,-1436946738}, +{-1737350854,-1262259096}, {-1859775343,-1073741910}, {-1961823997,-873460141}, +{-2042378447,-663608538}, {-2100556013,-446486785}, {-2135719499,-224473240}, +{2147483647,0}, {2121044558,-335940465}, {2042378310,-663608960}, +{1913421927,-974937199}, {1737350743,-1262259248}, {1518500216,-1518500282}, +{1262259172,-1737350799}, {974937230,-1913421912}, {663608871,-2042378339}, +{335940246,-2121044593}, {-94,-2147483647}, {-335940431,-2121044564}, +{-663609049,-2042378281}, {-974937397,-1913421827}, {-1262259116,-1737350839}, +{-1518500258,-1518500240}, {-1737350854,-1262259096}, {-1913422071,-974936918}, +{-2042378447,-663608538}, {-2121044568,-335940406}, {-2147483647,188}, +{-2121044509,335940777}, {-2042378331,663608895}, {-1913421900,974937252}, +{-1737350633,1262259400}, {-1518499993,1518500506}, {-1262258813,1737351059}, +{-974936606,1913422229}, {-663609179,2042378239}, {-335940566,2121044542}, +{2147483647,0}, {2147299667,-28109693}, {2146747758,-56214570}, +{2145828015,-84309815}, {2144540595,-112390613}, {2142885719,-140452154}, +{2140863671,-168489630}, {2138474797,-196498235}, {2135719506,-224473172}, +{2132598271,-252409646}, {2129111626,-280302871}, {2125260168,-308148068}, +{2121044558,-335940465}, {2116465518,-363675300}, {2111523833,-391347822}, +{2106220349,-418953288}, {2100555974,-446486968}, {2094531681,-473944146}, +{2088148500,-501320115}, {2081407525,-528610186}, {2074309912,-555809682}, +{2066856885,-582913912}, {2059049696,-609918325}, {2050889698,-636818231}, +{2042378310,-663608960}, {2033516972,-690285983}, {2024307180,-716844791}, +{2014750533,-743280770}, {2004848691,-769589332}, {1994603329,-795766029}, +{1984016179,-821806435}, {1973089077,-847706028}, {1961823921,-873460313}, +{1950222618,-899064934}, {1938287127,-924515564}, {1926019520,-949807783}, +{1913421927,-974937199}, {1900496481,-999899565}, {1887245364,-1024690661}, +{1873670877,-1049306180}, {1859775377,-1073741851}, {1845561215,-1097993541}, +{1831030826,-1122057097}, {1816186632,-1145928502}, {1801031311,-1169603450}, +{1785567394,-1193077993}, {1769797456,-1216348214}, {1753724345,-1239409914}, +{1737350743,-1262259248}, {1720679456,-1284892300}, {1703713340,-1307305194}, +{1686455222,-1329494189}, {1668908218,-1351455280}, {1651075255,-1373184807}, +{1632959307,-1394679144}, {1614563642,-1415934412}, {1595891331,-1436947067}, +{1576945572,-1457713510}, {1557729613,-1478230181}, {1538246655,-1498493658}, +{1518500216,-1518500282}, {1498493590,-1538246721}, {1478230113,-1557729677}, +{1457713441,-1576945636}, {1436946998,-1595891394}, {1415934341,-1614563704}, +{1394679073,-1632959368}, {1373184735,-1651075315}, {1351455207,-1668908277}, +{1329494115,-1686455280}, {1307305120,-1703713397}, {1284892225,-1720679512}, +{1262259172,-1737350799}, {1239409837,-1753724400}, {1216348136,-1769797510}, +{1193077915,-1785567446}, {1169603371,-1801031362}, {1145928423,-1816186682}, +{1122057017,-1831030875}, {1097993571,-1845561197}, {1073741769,-1859775424}, +{1049305987,-1873670985}, {1024690635,-1887245378}, {999899482,-1900496524}, +{974937230,-1913421912}, {949807699,-1926019561}, {924515422,-1938287195}, +{899064965,-1950222603}, {873460227,-1961823959}, {847705824,-1973089164}, +{821806407,-1984016190}, {795765941,-1994603364}, {769589125,-2004848771}, +{743280682,-2014750566}, {716844642,-2024307233}, {690286016,-2033516961}, +{663608871,-2042378339}, {636818019,-2050889764}, {609918296,-2059049705}, +{582913822,-2066856911}, {555809715,-2074309903}, {528610126,-2081407540}, +{501319962,-2088148536}, {473944148,-2094531680}, {446486876,-2100555994}, +{418953102,-2106220386}, {391347792,-2111523838}, {363675176,-2116465540}, +{335940246,-2121044593}, {308148006,-2125260177}, {280302715,-2129111646}, +{252409648,-2132598271}, {224473078,-2135719516}, {196498046,-2138474814}, +{168489600,-2140863674}, {140452029,-2142885728}, {112390647,-2144540593}, +{84309753,-2145828017}, {56214412,-2146747762}, {28109695,-2147299667}, +{2147483647,0}, {2146747758,-56214570}, {2144540595,-112390613}, +{2140863671,-168489630}, {2135719506,-224473172}, {2129111626,-280302871}, +{2121044558,-335940465}, {2111523833,-391347822}, {2100555974,-446486968}, +{2088148500,-501320115}, {2074309912,-555809682}, {2059049696,-609918325}, +{2042378310,-663608960}, {2024307180,-716844791}, {2004848691,-769589332}, +{1984016179,-821806435}, {1961823921,-873460313}, {1938287127,-924515564}, +{1913421927,-974937199}, {1887245364,-1024690661}, {1859775377,-1073741851}, +{1831030826,-1122057097}, {1801031311,-1169603450}, {1769797456,-1216348214}, +{1737350743,-1262259248}, {1703713340,-1307305194}, {1668908218,-1351455280}, +{1632959307,-1394679144}, {1595891331,-1436947067}, {1557729613,-1478230181}, +{1518500216,-1518500282}, {1478230113,-1557729677}, {1436946998,-1595891394}, +{1394679073,-1632959368}, {1351455207,-1668908277}, {1307305120,-1703713397}, +{1262259172,-1737350799}, {1216348136,-1769797510}, {1169603371,-1801031362}, +{1122057017,-1831030875}, {1073741769,-1859775424}, {1024690635,-1887245378}, +{974937230,-1913421912}, {924515422,-1938287195}, {873460227,-1961823959}, +{821806407,-1984016190}, {769589125,-2004848771}, {716844642,-2024307233}, +{663608871,-2042378339}, {609918296,-2059049705}, {555809715,-2074309903}, +{501319962,-2088148536}, {446486876,-2100555994}, {391347792,-2111523838}, +{335940246,-2121044593}, {280302715,-2129111646}, {224473078,-2135719516}, +{168489600,-2140863674}, {112390647,-2144540593}, {56214412,-2146747762}, +{-94,-2147483647}, {-56214600,-2146747757}, {-112390835,-2144540584}, +{-168489787,-2140863659}, {-224473265,-2135719496}, {-280302901,-2129111622}, +{-335940431,-2121044564}, {-391347977,-2111523804}, {-446487060,-2100555955}, +{-501320144,-2088148493}, {-555809896,-2074309855}, {-609918476,-2059049651}, +{-663609049,-2042378281}, {-716844819,-2024307170}, {-769589300,-2004848703}, +{-821806581,-1984016118}, {-873460398,-1961823883}, {-924515591,-1938287114}, +{-974937397,-1913421827}, {-1024690575,-1887245411}, {-1073741932,-1859775330}, +{-1122057395,-1831030643}, {-1169603421,-1801031330}, {-1216348291,-1769797403}, +{-1262259116,-1737350839}, {-1307305268,-1703713283}, {-1351455453,-1668908078}, +{-1394679021,-1632959413}, {-1436947137,-1595891268}, {-1478230435,-1557729372}, +{-1518500258,-1518500240}, {-1557729742,-1478230045}, {-1595891628,-1436946738}, +{-1632959429,-1394679001}, {-1668908417,-1351455035}, {-1703713298,-1307305248}, +{-1737350854,-1262259096}, {-1769797708,-1216347848}, {-1801031344,-1169603400}, +{-1831030924,-1122056937}, {-1859775343,-1073741910}, {-1887245423,-1024690552}, +{-1913422071,-974936918}, {-1938287125,-924515568}, {-1961823997,-873460141}, +{-1984016324,-821806084}, {-2004848713,-769589276}, {-2024307264,-716844553}, +{-2042378447,-663608538}, {-2059049731,-609918206}, {-2074309994,-555809377}, +{-2088148499,-501320119}, {-2100556013,-446486785}, {-2111523902,-391347448}, +{-2121044568,-335940406}, {-2129111659,-280302621}, {-2135719499,-224473240}, +{-2140863681,-168489506}, {-2144540612,-112390298}, {-2146747758,-56214574}, +{2147483647,0}, {2145828015,-84309815}, {2140863671,-168489630}, +{2132598271,-252409646}, {2121044558,-335940465}, {2106220349,-418953288}, +{2088148500,-501320115}, {2066856885,-582913912}, {2042378310,-663608960}, +{2014750533,-743280770}, {1984016179,-821806435}, {1950222618,-899064934}, +{1913421927,-974937199}, {1873670877,-1049306180}, {1831030826,-1122057097}, +{1785567394,-1193077993}, {1737350743,-1262259248}, {1686455222,-1329494189}, +{1632959307,-1394679144}, {1576945572,-1457713510}, {1518500216,-1518500282}, +{1457713441,-1576945636}, {1394679073,-1632959368}, {1329494115,-1686455280}, +{1262259172,-1737350799}, {1193077915,-1785567446}, {1122057017,-1831030875}, +{1049305987,-1873670985}, {974937230,-1913421912}, {899064965,-1950222603}, +{821806407,-1984016190}, {743280682,-2014750566}, {663608871,-2042378339}, +{582913822,-2066856911}, {501319962,-2088148536}, {418953102,-2106220386}, +{335940246,-2121044593}, {252409648,-2132598271}, {168489600,-2140863674}, +{84309753,-2145828017}, {-94,-2147483647}, {-84309940,-2145828010}, +{-168489787,-2140863659}, {-252409834,-2132598249}, {-335940431,-2121044564}, +{-418953286,-2106220349}, {-501320144,-2088148493}, {-582914003,-2066856860}, +{-663609049,-2042378281}, {-743280858,-2014750501}, {-821806581,-1984016118}, +{-899065136,-1950222525}, {-974937397,-1913421827}, {-1049306374,-1873670768}, +{-1122057395,-1831030643}, {-1193078284,-1785567199}, {-1262259116,-1737350839}, +{-1329494061,-1686455323}, {-1394679021,-1632959413}, {-1457713485,-1576945595}, +{-1518500258,-1518500240}, {-1576945613,-1457713466}, {-1632959429,-1394679001}, +{-1686455338,-1329494041}, {-1737350854,-1262259096}, {-1785567498,-1193077837}, +{-1831030924,-1122056937}, {-1873671031,-1049305905}, {-1913422071,-974936918}, +{-1950222750,-899064648}, {-1984016324,-821806084}, {-2014750687,-743280354}, +{-2042378447,-663608538}, {-2066856867,-582913978}, {-2088148499,-501320119}, +{-2106220354,-418953261}, {-2121044568,-335940406}, {-2132598282,-252409555}, +{-2140863681,-168489506}, {-2145828021,-84309659}, {-2147483647,188}, +{-2145828006,84310034}, {-2140863651,168489881}, {-2132598237,252409928}, +{-2121044509,335940777}, {-2106220281,418953629}, {-2088148411,501320484}, +{-2066856765,582914339}, {-2042378331,663608895}, {-2014750557,743280706}, +{-1984016181,821806431}, {-1950222593,899064989}, {-1913421900,974937252}, +{-1873670848,1049306232}, {-1831030728,1122057257}, {-1785567289,1193078149}, +{-1737350633,1262259400}, {-1686455106,1329494336}, {-1632959185,1394679287}, +{-1576945358,1457713742}, {-1518499993,1518500506}, {-1457713209,1576945850}, +{-1394678735,1632959656}, {-1329493766,1686455555}, {-1262258813,1737351059}, +{-1193077546,1785567692}, {-1122056638,1831031107}, {-1049305599,1873671202}, +{-974936606,1913422229}, {-899064330,1950222896}, {-821805761,1984016458}, +{-743280025,2014750808}, {-663609179,2042378239}, {-582914134,2066856823}, +{-501320277,2088148461}, {-418953420,2106220322}, {-335940566,2121044542}, +{-252409716,2132598263}, {-168489668,2140863668}, {-84309821,2145828015}, +}; +static const ne10_fft_cpx_int32_t ne10_twiddles_240[240] = { +{0,0}, {2147483647,0}, {2147483647,0}, +{2147483647,0}, {1961823921,-873460313}, {1436946998,-1595891394}, +{2147483647,0}, {1436946998,-1595891394}, {-224473265,-2135719496}, +{2147483647,0}, {663608871,-2042378339}, {-1737350854,-1262259096}, +{2147483647,0}, {-224473265,-2135719496}, {-2100555935,446487152}, +{2147483647,0}, {2135719506,-224473172}, {2100555974,-446486968}, +{2042378310,-663608960}, {1961823921,-873460313}, {1859775377,-1073741851}, +{1737350743,-1262259248}, {1595891331,-1436947067}, {1436946998,-1595891394}, +{1262259172,-1737350799}, {1073741769,-1859775424}, {873460227,-1961823959}, +{663608871,-2042378339}, {446486876,-2100555994}, {224473078,-2135719516}, +{2147483647,0}, {2100555974,-446486968}, {1961823921,-873460313}, +{1737350743,-1262259248}, {1436946998,-1595891394}, {1073741769,-1859775424}, +{663608871,-2042378339}, {224473078,-2135719516}, {-224473265,-2135719496}, +{-663609049,-2042378281}, {-1073741932,-1859775330}, {-1436947137,-1595891268}, +{-1737350854,-1262259096}, {-1961823997,-873460141}, {-2100556013,-446486785}, +{2147483647,0}, {2042378310,-663608960}, {1737350743,-1262259248}, +{1262259172,-1737350799}, {663608871,-2042378339}, {-94,-2147483647}, +{-663609049,-2042378281}, {-1262259116,-1737350839}, {-1737350854,-1262259096}, +{-2042378447,-663608538}, {-2147483647,188}, {-2042378331,663608895}, +{-1737350633,1262259400}, {-1262258813,1737351059}, {-663609179,2042378239}, +{2147483647,0}, {2146747758,-56214570}, {2144540595,-112390613}, +{2140863671,-168489630}, {2135719506,-224473172}, {2129111626,-280302871}, +{2121044558,-335940465}, {2111523833,-391347822}, {2100555974,-446486968}, +{2088148500,-501320115}, {2074309912,-555809682}, {2059049696,-609918325}, +{2042378310,-663608960}, {2024307180,-716844791}, {2004848691,-769589332}, +{1984016179,-821806435}, {1961823921,-873460313}, {1938287127,-924515564}, +{1913421927,-974937199}, {1887245364,-1024690661}, {1859775377,-1073741851}, +{1831030826,-1122057097}, {1801031311,-1169603450}, {1769797456,-1216348214}, +{1737350743,-1262259248}, {1703713340,-1307305194}, {1668908218,-1351455280}, +{1632959307,-1394679144}, {1595891331,-1436947067}, {1557729613,-1478230181}, +{1518500216,-1518500282}, {1478230113,-1557729677}, {1436946998,-1595891394}, +{1394679073,-1632959368}, {1351455207,-1668908277}, {1307305120,-1703713397}, +{1262259172,-1737350799}, {1216348136,-1769797510}, {1169603371,-1801031362}, +{1122057017,-1831030875}, {1073741769,-1859775424}, {1024690635,-1887245378}, +{974937230,-1913421912}, {924515422,-1938287195}, {873460227,-1961823959}, +{821806407,-1984016190}, {769589125,-2004848771}, {716844642,-2024307233}, +{663608871,-2042378339}, {609918296,-2059049705}, {555809715,-2074309903}, +{501319962,-2088148536}, {446486876,-2100555994}, {391347792,-2111523838}, +{335940246,-2121044593}, {280302715,-2129111646}, {224473078,-2135719516}, +{168489600,-2140863674}, {112390647,-2144540593}, {56214412,-2146747762}, +{2147483647,0}, {2144540595,-112390613}, {2135719506,-224473172}, +{2121044558,-335940465}, {2100555974,-446486968}, {2074309912,-555809682}, +{2042378310,-663608960}, {2004848691,-769589332}, {1961823921,-873460313}, +{1913421927,-974937199}, {1859775377,-1073741851}, {1801031311,-1169603450}, +{1737350743,-1262259248}, {1668908218,-1351455280}, {1595891331,-1436947067}, +{1518500216,-1518500282}, {1436946998,-1595891394}, {1351455207,-1668908277}, +{1262259172,-1737350799}, {1169603371,-1801031362}, {1073741769,-1859775424}, +{974937230,-1913421912}, {873460227,-1961823959}, {769589125,-2004848771}, +{663608871,-2042378339}, {555809715,-2074309903}, {446486876,-2100555994}, +{335940246,-2121044593}, {224473078,-2135719516}, {112390647,-2144540593}, +{-94,-2147483647}, {-112390835,-2144540584}, {-224473265,-2135719496}, +{-335940431,-2121044564}, {-446487060,-2100555955}, {-555809896,-2074309855}, +{-663609049,-2042378281}, {-769589300,-2004848703}, {-873460398,-1961823883}, +{-974937397,-1913421827}, {-1073741932,-1859775330}, {-1169603421,-1801031330}, +{-1262259116,-1737350839}, {-1351455453,-1668908078}, {-1436947137,-1595891268}, +{-1518500258,-1518500240}, {-1595891628,-1436946738}, {-1668908417,-1351455035}, +{-1737350854,-1262259096}, {-1801031344,-1169603400}, {-1859775343,-1073741910}, +{-1913422071,-974936918}, {-1961823997,-873460141}, {-2004848713,-769589276}, +{-2042378447,-663608538}, {-2074309994,-555809377}, {-2100556013,-446486785}, +{-2121044568,-335940406}, {-2135719499,-224473240}, {-2144540612,-112390298}, +{2147483647,0}, {2140863671,-168489630}, {2121044558,-335940465}, +{2088148500,-501320115}, {2042378310,-663608960}, {1984016179,-821806435}, +{1913421927,-974937199}, {1831030826,-1122057097}, {1737350743,-1262259248}, +{1632959307,-1394679144}, {1518500216,-1518500282}, {1394679073,-1632959368}, +{1262259172,-1737350799}, {1122057017,-1831030875}, {974937230,-1913421912}, +{821806407,-1984016190}, {663608871,-2042378339}, {501319962,-2088148536}, +{335940246,-2121044593}, {168489600,-2140863674}, {-94,-2147483647}, +{-168489787,-2140863659}, {-335940431,-2121044564}, {-501320144,-2088148493}, +{-663609049,-2042378281}, {-821806581,-1984016118}, {-974937397,-1913421827}, +{-1122057395,-1831030643}, {-1262259116,-1737350839}, {-1394679021,-1632959413}, +{-1518500258,-1518500240}, {-1632959429,-1394679001}, {-1737350854,-1262259096}, +{-1831030924,-1122056937}, {-1913422071,-974936918}, {-1984016324,-821806084}, +{-2042378447,-663608538}, {-2088148499,-501320119}, {-2121044568,-335940406}, +{-2140863681,-168489506}, {-2147483647,188}, {-2140863651,168489881}, +{-2121044509,335940777}, {-2088148411,501320484}, {-2042378331,663608895}, +{-1984016181,821806431}, {-1913421900,974937252}, {-1831030728,1122057257}, +{-1737350633,1262259400}, {-1632959185,1394679287}, {-1518499993,1518500506}, +{-1394678735,1632959656}, {-1262258813,1737351059}, {-1122056638,1831031107}, +{-974936606,1913422229}, {-821805761,1984016458}, {-663609179,2042378239}, +{-501320277,2088148461}, {-335940566,2121044542}, {-168489668,2140863668}, +}; +static const ne10_fft_cpx_int32_t ne10_twiddles_120[120] = { +{0,0}, {2147483647,0}, {2147483647,0}, +{2147483647,0}, {1961823921,-873460313}, {1436946998,-1595891394}, +{2147483647,0}, {1436946998,-1595891394}, {-224473265,-2135719496}, +{2147483647,0}, {663608871,-2042378339}, {-1737350854,-1262259096}, +{2147483647,0}, {-224473265,-2135719496}, {-2100555935,446487152}, +{2147483647,0}, {2100555974,-446486968}, {1961823921,-873460313}, +{1737350743,-1262259248}, {1436946998,-1595891394}, {1073741769,-1859775424}, +{663608871,-2042378339}, {224473078,-2135719516}, {-224473265,-2135719496}, +{-663609049,-2042378281}, {-1073741932,-1859775330}, {-1436947137,-1595891268}, +{-1737350854,-1262259096}, {-1961823997,-873460141}, {-2100556013,-446486785}, +{2147483647,0}, {2144540595,-112390613}, {2135719506,-224473172}, +{2121044558,-335940465}, {2100555974,-446486968}, {2074309912,-555809682}, +{2042378310,-663608960}, {2004848691,-769589332}, {1961823921,-873460313}, +{1913421927,-974937199}, {1859775377,-1073741851}, {1801031311,-1169603450}, +{1737350743,-1262259248}, {1668908218,-1351455280}, {1595891331,-1436947067}, +{1518500216,-1518500282}, {1436946998,-1595891394}, {1351455207,-1668908277}, +{1262259172,-1737350799}, {1169603371,-1801031362}, {1073741769,-1859775424}, +{974937230,-1913421912}, {873460227,-1961823959}, {769589125,-2004848771}, +{663608871,-2042378339}, {555809715,-2074309903}, {446486876,-2100555994}, +{335940246,-2121044593}, {224473078,-2135719516}, {112390647,-2144540593}, +{2147483647,0}, {2135719506,-224473172}, {2100555974,-446486968}, +{2042378310,-663608960}, {1961823921,-873460313}, {1859775377,-1073741851}, +{1737350743,-1262259248}, {1595891331,-1436947067}, {1436946998,-1595891394}, +{1262259172,-1737350799}, {1073741769,-1859775424}, {873460227,-1961823959}, +{663608871,-2042378339}, {446486876,-2100555994}, {224473078,-2135719516}, +{-94,-2147483647}, {-224473265,-2135719496}, {-446487060,-2100555955}, +{-663609049,-2042378281}, {-873460398,-1961823883}, {-1073741932,-1859775330}, +{-1262259116,-1737350839}, {-1436947137,-1595891268}, {-1595891628,-1436946738}, +{-1737350854,-1262259096}, {-1859775343,-1073741910}, {-1961823997,-873460141}, +{-2042378447,-663608538}, {-2100556013,-446486785}, {-2135719499,-224473240}, +{2147483647,0}, {2121044558,-335940465}, {2042378310,-663608960}, +{1913421927,-974937199}, {1737350743,-1262259248}, {1518500216,-1518500282}, +{1262259172,-1737350799}, {974937230,-1913421912}, {663608871,-2042378339}, +{335940246,-2121044593}, {-94,-2147483647}, {-335940431,-2121044564}, +{-663609049,-2042378281}, {-974937397,-1913421827}, {-1262259116,-1737350839}, +{-1518500258,-1518500240}, {-1737350854,-1262259096}, {-1913422071,-974936918}, +{-2042378447,-663608538}, {-2121044568,-335940406}, {-2147483647,188}, +{-2121044509,335940777}, {-2042378331,663608895}, {-1913421900,974937252}, +{-1737350633,1262259400}, {-1518499993,1518500506}, {-1262258813,1737351059}, +{-974936606,1913422229}, {-663609179,2042378239}, {-335940566,2121044542}, +}; +static const ne10_fft_cpx_int32_t ne10_twiddles_60[60] = { +{0,0}, {2147483647,0}, {2147483647,0}, +{2147483647,0}, {1961823921,-873460313}, {1436946998,-1595891394}, +{2147483647,0}, {1436946998,-1595891394}, {-224473265,-2135719496}, +{2147483647,0}, {663608871,-2042378339}, {-1737350854,-1262259096}, +{2147483647,0}, {-224473265,-2135719496}, {-2100555935,446487152}, +{2147483647,0}, {2135719506,-224473172}, {2100555974,-446486968}, +{2042378310,-663608960}, {1961823921,-873460313}, {1859775377,-1073741851}, +{1737350743,-1262259248}, {1595891331,-1436947067}, {1436946998,-1595891394}, +{1262259172,-1737350799}, {1073741769,-1859775424}, {873460227,-1961823959}, +{663608871,-2042378339}, {446486876,-2100555994}, {224473078,-2135719516}, +{2147483647,0}, {2100555974,-446486968}, {1961823921,-873460313}, +{1737350743,-1262259248}, {1436946998,-1595891394}, {1073741769,-1859775424}, +{663608871,-2042378339}, {224473078,-2135719516}, {-224473265,-2135719496}, +{-663609049,-2042378281}, {-1073741932,-1859775330}, {-1436947137,-1595891268}, +{-1737350854,-1262259096}, {-1961823997,-873460141}, {-2100556013,-446486785}, +{2147483647,0}, {2042378310,-663608960}, {1737350743,-1262259248}, +{1262259172,-1737350799}, {663608871,-2042378339}, {-94,-2147483647}, +{-663609049,-2042378281}, {-1262259116,-1737350839}, {-1737350854,-1262259096}, +{-2042378447,-663608538}, {-2147483647,188}, {-2042378331,663608895}, +{-1737350633,1262259400}, {-1262258813,1737351059}, {-663609179,2042378239}, +}; +static const ne10_fft_state_int32_t ne10_fft_state_int32_t_480 = { +120, +(ne10_int32_t *)ne10_factors_480, +(ne10_fft_cpx_int32_t *)ne10_twiddles_480, +NULL, +(ne10_fft_cpx_int32_t *)&ne10_twiddles_480[120], +}; +static const arch_fft_state cfg_arch_480 = { +1, +(void *)&ne10_fft_state_int32_t_480, +}; + +static const ne10_fft_state_int32_t ne10_fft_state_int32_t_240 = { +60, +(ne10_int32_t *)ne10_factors_240, +(ne10_fft_cpx_int32_t *)ne10_twiddles_240, +NULL, +(ne10_fft_cpx_int32_t *)&ne10_twiddles_240[60], +}; +static const arch_fft_state cfg_arch_240 = { +1, +(void *)&ne10_fft_state_int32_t_240, +}; + +static const ne10_fft_state_int32_t ne10_fft_state_int32_t_120 = { +30, +(ne10_int32_t *)ne10_factors_120, +(ne10_fft_cpx_int32_t *)ne10_twiddles_120, +NULL, +(ne10_fft_cpx_int32_t *)&ne10_twiddles_120[30], +}; +static const arch_fft_state cfg_arch_120 = { +1, +(void *)&ne10_fft_state_int32_t_120, +}; + +static const ne10_fft_state_int32_t ne10_fft_state_int32_t_60 = { +15, +(ne10_int32_t *)ne10_factors_60, +(ne10_fft_cpx_int32_t *)ne10_twiddles_60, +NULL, +(ne10_fft_cpx_int32_t *)&ne10_twiddles_60[15], +}; +static const arch_fft_state cfg_arch_60 = { +1, +(void *)&ne10_fft_state_int32_t_60, +}; + +#endif /* end NE10_FFT_PARAMS48000_960 */ diff --git a/components/opus/libopus/celt/static_modes_float.h b/components/opus/libopus/celt/static_modes_float.h new file mode 100644 index 0000000..e102a38 --- /dev/null +++ b/components/opus/libopus/celt/static_modes_float.h @@ -0,0 +1,888 @@ +/* The contents of this file was automatically generated by dump_modes.c + with arguments: 48000 960 + It contains static definitions for some pre-defined modes. */ +#include "modes.h" +#include "rate.h" + +#ifdef HAVE_ARM_NE10 +#define OVERRIDE_FFT 1 +#include "static_modes_float_arm_ne10.h" +#endif + +#ifndef DEF_WINDOW120 +#define DEF_WINDOW120 +static const opus_val16 window120[120] = { +6.7286966e-05f, 0.00060551348f, 0.0016815970f, 0.0032947962f, 0.0054439943f, +0.0081276923f, 0.011344001f, 0.015090633f, 0.019364886f, 0.024163635f, +0.029483315f, 0.035319905f, 0.041668911f, 0.048525347f, 0.055883718f, +0.063737999f, 0.072081616f, 0.080907428f, 0.090207705f, 0.099974111f, +0.11019769f, 0.12086883f, 0.13197729f, 0.14351214f, 0.15546177f, +0.16781389f, 0.18055550f, 0.19367290f, 0.20715171f, 0.22097682f, +0.23513243f, 0.24960208f, 0.26436860f, 0.27941419f, 0.29472040f, +0.31026818f, 0.32603788f, 0.34200931f, 0.35816177f, 0.37447407f, +0.39092462f, 0.40749142f, 0.42415215f, 0.44088423f, 0.45766484f, +0.47447104f, 0.49127978f, 0.50806798f, 0.52481261f, 0.54149077f, +0.55807973f, 0.57455701f, 0.59090049f, 0.60708841f, 0.62309951f, +0.63891306f, 0.65450896f, 0.66986776f, 0.68497077f, 0.69980010f, +0.71433873f, 0.72857055f, 0.74248043f, 0.75605424f, 0.76927895f, +0.78214257f, 0.79463430f, 0.80674445f, 0.81846456f, 0.82978733f, +0.84070669f, 0.85121779f, 0.86131698f, 0.87100183f, 0.88027111f, +0.88912479f, 0.89756398f, 0.90559094f, 0.91320904f, 0.92042270f, +0.92723738f, 0.93365955f, 0.93969656f, 0.94535671f, 0.95064907f, +0.95558353f, 0.96017067f, 0.96442171f, 0.96834849f, 0.97196334f, +0.97527906f, 0.97830883f, 0.98106616f, 0.98356480f, 0.98581869f, +0.98784191f, 0.98964856f, 0.99125274f, 0.99266849f, 0.99390969f, +0.99499004f, 0.99592297f, 0.99672162f, 0.99739874f, 0.99796667f, +0.99843728f, 0.99882195f, 0.99913147f, 0.99937606f, 0.99956527f, +0.99970802f, 0.99981248f, 0.99988613f, 0.99993565f, 0.99996697f, +0.99998518f, 0.99999457f, 0.99999859f, 0.99999982f, 1.0000000f, +}; +#endif + +#ifndef DEF_LOGN400 +#define DEF_LOGN400 +static const opus_int16 logN400[21] = { +0, 0, 0, 0, 0, 0, 0, 0, 8, 8, 8, 8, 16, 16, 16, 21, 21, 24, 29, 34, 36, }; +#endif + +#ifndef DEF_PULSE_CACHE50 +#define DEF_PULSE_CACHE50 +static const opus_int16 cache_index50[105] = { +-1, -1, -1, -1, -1, -1, -1, -1, 0, 0, 0, 0, 41, 41, 41, +82, 82, 123, 164, 200, 222, 0, 0, 0, 0, 0, 0, 0, 0, 41, +41, 41, 41, 123, 123, 123, 164, 164, 240, 266, 283, 295, 41, 41, 41, +41, 41, 41, 41, 41, 123, 123, 123, 123, 240, 240, 240, 266, 266, 305, +318, 328, 336, 123, 123, 123, 123, 123, 123, 123, 123, 240, 240, 240, 240, +305, 305, 305, 318, 318, 343, 351, 358, 364, 240, 240, 240, 240, 240, 240, +240, 240, 305, 305, 305, 305, 343, 343, 343, 351, 351, 370, 376, 382, 387, +}; +static const unsigned char cache_bits50[392] = { +40, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, +7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, +7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 40, 15, 23, 28, +31, 34, 36, 38, 39, 41, 42, 43, 44, 45, 46, 47, 47, 49, 50, +51, 52, 53, 54, 55, 55, 57, 58, 59, 60, 61, 62, 63, 63, 65, +66, 67, 68, 69, 70, 71, 71, 40, 20, 33, 41, 48, 53, 57, 61, +64, 66, 69, 71, 73, 75, 76, 78, 80, 82, 85, 87, 89, 91, 92, +94, 96, 98, 101, 103, 105, 107, 108, 110, 112, 114, 117, 119, 121, 123, +124, 126, 128, 40, 23, 39, 51, 60, 67, 73, 79, 83, 87, 91, 94, +97, 100, 102, 105, 107, 111, 115, 118, 121, 124, 126, 129, 131, 135, 139, +142, 145, 148, 150, 153, 155, 159, 163, 166, 169, 172, 174, 177, 179, 35, +28, 49, 65, 78, 89, 99, 107, 114, 120, 126, 132, 136, 141, 145, 149, +153, 159, 165, 171, 176, 180, 185, 189, 192, 199, 205, 211, 216, 220, 225, +229, 232, 239, 245, 251, 21, 33, 58, 79, 97, 112, 125, 137, 148, 157, +166, 174, 182, 189, 195, 201, 207, 217, 227, 235, 243, 251, 17, 35, 63, +86, 106, 123, 139, 152, 165, 177, 187, 197, 206, 214, 222, 230, 237, 250, +25, 31, 55, 75, 91, 105, 117, 128, 138, 146, 154, 161, 168, 174, 180, +185, 190, 200, 208, 215, 222, 229, 235, 240, 245, 255, 16, 36, 65, 89, +110, 128, 144, 159, 173, 185, 196, 207, 217, 226, 234, 242, 250, 11, 41, +74, 103, 128, 151, 172, 191, 209, 225, 241, 255, 9, 43, 79, 110, 138, +163, 186, 207, 227, 246, 12, 39, 71, 99, 123, 144, 164, 182, 198, 214, +228, 241, 253, 9, 44, 81, 113, 142, 168, 192, 214, 235, 255, 7, 49, +90, 127, 160, 191, 220, 247, 6, 51, 95, 134, 170, 203, 234, 7, 47, +87, 123, 155, 184, 212, 237, 6, 52, 97, 137, 174, 208, 240, 5, 57, +106, 151, 192, 231, 5, 59, 111, 158, 202, 243, 5, 55, 103, 147, 187, +224, 5, 60, 113, 161, 206, 248, 4, 65, 122, 175, 224, 4, 67, 127, +182, 234, }; +static const unsigned char cache_caps50[168] = { +224, 224, 224, 224, 224, 224, 224, 224, 160, 160, 160, 160, 185, 185, 185, +178, 178, 168, 134, 61, 37, 224, 224, 224, 224, 224, 224, 224, 224, 240, +240, 240, 240, 207, 207, 207, 198, 198, 183, 144, 66, 40, 160, 160, 160, +160, 160, 160, 160, 160, 185, 185, 185, 185, 193, 193, 193, 183, 183, 172, +138, 64, 38, 240, 240, 240, 240, 240, 240, 240, 240, 207, 207, 207, 207, +204, 204, 204, 193, 193, 180, 143, 66, 40, 185, 185, 185, 185, 185, 185, +185, 185, 193, 193, 193, 193, 193, 193, 193, 183, 183, 172, 138, 65, 39, +207, 207, 207, 207, 207, 207, 207, 207, 204, 204, 204, 204, 201, 201, 201, +188, 188, 176, 141, 66, 40, 193, 193, 193, 193, 193, 193, 193, 193, 193, +193, 193, 193, 194, 194, 194, 184, 184, 173, 139, 65, 39, 204, 204, 204, +204, 204, 204, 204, 204, 201, 201, 201, 201, 198, 198, 198, 187, 187, 175, +140, 66, 40, }; +#endif + +#ifndef FFT_TWIDDLES48000_960 +#define FFT_TWIDDLES48000_960 +static const kiss_twiddle_cpx fft_twiddles48000_960[480] = { +{1.0000000f, -0.0000000f}, {0.99991433f, -0.013089596f}, +{0.99965732f, -0.026176948f}, {0.99922904f, -0.039259816f}, +{0.99862953f, -0.052335956f}, {0.99785892f, -0.065403129f}, +{0.99691733f, -0.078459096f}, {0.99580493f, -0.091501619f}, +{0.99452190f, -0.10452846f}, {0.99306846f, -0.11753740f}, +{0.99144486f, -0.13052619f}, {0.98965139f, -0.14349262f}, +{0.98768834f, -0.15643447f}, {0.98555606f, -0.16934950f}, +{0.98325491f, -0.18223553f}, {0.98078528f, -0.19509032f}, +{0.97814760f, -0.20791169f}, {0.97534232f, -0.22069744f}, +{0.97236992f, -0.23344536f}, {0.96923091f, -0.24615329f}, +{0.96592583f, -0.25881905f}, {0.96245524f, -0.27144045f}, +{0.95881973f, -0.28401534f}, {0.95501994f, -0.29654157f}, +{0.95105652f, -0.30901699f}, {0.94693013f, -0.32143947f}, +{0.94264149f, -0.33380686f}, {0.93819134f, -0.34611706f}, +{0.93358043f, -0.35836795f}, {0.92880955f, -0.37055744f}, +{0.92387953f, -0.38268343f}, {0.91879121f, -0.39474386f}, +{0.91354546f, -0.40673664f}, {0.90814317f, -0.41865974f}, +{0.90258528f, -0.43051110f}, {0.89687274f, -0.44228869f}, +{0.89100652f, -0.45399050f}, {0.88498764f, -0.46561452f}, +{0.87881711f, -0.47715876f}, {0.87249601f, -0.48862124f}, +{0.86602540f, -0.50000000f}, {0.85940641f, -0.51129309f}, +{0.85264016f, -0.52249856f}, {0.84572782f, -0.53361452f}, +{0.83867057f, -0.54463904f}, {0.83146961f, -0.55557023f}, +{0.82412619f, -0.56640624f}, {0.81664156f, -0.57714519f}, +{0.80901699f, -0.58778525f}, {0.80125381f, -0.59832460f}, +{0.79335334f, -0.60876143f}, {0.78531693f, -0.61909395f}, +{0.77714596f, -0.62932039f}, {0.76884183f, -0.63943900f}, +{0.76040597f, -0.64944805f}, {0.75183981f, -0.65934582f}, +{0.74314483f, -0.66913061f}, {0.73432251f, -0.67880075f}, +{0.72537437f, -0.68835458f}, {0.71630194f, -0.69779046f}, +{0.70710678f, -0.70710678f}, {0.69779046f, -0.71630194f}, +{0.68835458f, -0.72537437f}, {0.67880075f, -0.73432251f}, +{0.66913061f, -0.74314483f}, {0.65934582f, -0.75183981f}, +{0.64944805f, -0.76040597f}, {0.63943900f, -0.76884183f}, +{0.62932039f, -0.77714596f}, {0.61909395f, -0.78531693f}, +{0.60876143f, -0.79335334f}, {0.59832460f, -0.80125381f}, +{0.58778525f, -0.80901699f}, {0.57714519f, -0.81664156f}, +{0.56640624f, -0.82412619f}, {0.55557023f, -0.83146961f}, +{0.54463904f, -0.83867057f}, {0.53361452f, -0.84572782f}, +{0.52249856f, -0.85264016f}, {0.51129309f, -0.85940641f}, +{0.50000000f, -0.86602540f}, {0.48862124f, -0.87249601f}, +{0.47715876f, -0.87881711f}, {0.46561452f, -0.88498764f}, +{0.45399050f, -0.89100652f}, {0.44228869f, -0.89687274f}, +{0.43051110f, -0.90258528f}, {0.41865974f, -0.90814317f}, +{0.40673664f, -0.91354546f}, {0.39474386f, -0.91879121f}, +{0.38268343f, -0.92387953f}, {0.37055744f, -0.92880955f}, +{0.35836795f, -0.93358043f}, {0.34611706f, -0.93819134f}, +{0.33380686f, -0.94264149f}, {0.32143947f, -0.94693013f}, +{0.30901699f, -0.95105652f}, {0.29654157f, -0.95501994f}, +{0.28401534f, -0.95881973f}, {0.27144045f, -0.96245524f}, +{0.25881905f, -0.96592583f}, {0.24615329f, -0.96923091f}, +{0.23344536f, -0.97236992f}, {0.22069744f, -0.97534232f}, +{0.20791169f, -0.97814760f}, {0.19509032f, -0.98078528f}, +{0.18223553f, -0.98325491f}, {0.16934950f, -0.98555606f}, +{0.15643447f, -0.98768834f}, {0.14349262f, -0.98965139f}, +{0.13052619f, -0.99144486f}, {0.11753740f, -0.99306846f}, +{0.10452846f, -0.99452190f}, {0.091501619f, -0.99580493f}, +{0.078459096f, -0.99691733f}, {0.065403129f, -0.99785892f}, +{0.052335956f, -0.99862953f}, {0.039259816f, -0.99922904f}, +{0.026176948f, -0.99965732f}, {0.013089596f, -0.99991433f}, +{6.1230318e-17f, -1.0000000f}, {-0.013089596f, -0.99991433f}, +{-0.026176948f, -0.99965732f}, {-0.039259816f, -0.99922904f}, +{-0.052335956f, -0.99862953f}, {-0.065403129f, -0.99785892f}, +{-0.078459096f, -0.99691733f}, {-0.091501619f, -0.99580493f}, +{-0.10452846f, -0.99452190f}, {-0.11753740f, -0.99306846f}, +{-0.13052619f, -0.99144486f}, {-0.14349262f, -0.98965139f}, +{-0.15643447f, -0.98768834f}, {-0.16934950f, -0.98555606f}, +{-0.18223553f, -0.98325491f}, {-0.19509032f, -0.98078528f}, +{-0.20791169f, -0.97814760f}, {-0.22069744f, -0.97534232f}, +{-0.23344536f, -0.97236992f}, {-0.24615329f, -0.96923091f}, +{-0.25881905f, -0.96592583f}, {-0.27144045f, -0.96245524f}, +{-0.28401534f, -0.95881973f}, {-0.29654157f, -0.95501994f}, +{-0.30901699f, -0.95105652f}, {-0.32143947f, -0.94693013f}, +{-0.33380686f, -0.94264149f}, {-0.34611706f, -0.93819134f}, +{-0.35836795f, -0.93358043f}, {-0.37055744f, -0.92880955f}, +{-0.38268343f, -0.92387953f}, {-0.39474386f, -0.91879121f}, +{-0.40673664f, -0.91354546f}, {-0.41865974f, -0.90814317f}, +{-0.43051110f, -0.90258528f}, {-0.44228869f, -0.89687274f}, +{-0.45399050f, -0.89100652f}, {-0.46561452f, -0.88498764f}, +{-0.47715876f, -0.87881711f}, {-0.48862124f, -0.87249601f}, +{-0.50000000f, -0.86602540f}, {-0.51129309f, -0.85940641f}, +{-0.52249856f, -0.85264016f}, {-0.53361452f, -0.84572782f}, +{-0.54463904f, -0.83867057f}, {-0.55557023f, -0.83146961f}, +{-0.56640624f, -0.82412619f}, {-0.57714519f, -0.81664156f}, +{-0.58778525f, -0.80901699f}, {-0.59832460f, -0.80125381f}, +{-0.60876143f, -0.79335334f}, {-0.61909395f, -0.78531693f}, +{-0.62932039f, -0.77714596f}, {-0.63943900f, -0.76884183f}, +{-0.64944805f, -0.76040597f}, {-0.65934582f, -0.75183981f}, +{-0.66913061f, -0.74314483f}, {-0.67880075f, -0.73432251f}, +{-0.68835458f, -0.72537437f}, {-0.69779046f, -0.71630194f}, +{-0.70710678f, -0.70710678f}, {-0.71630194f, -0.69779046f}, +{-0.72537437f, -0.68835458f}, {-0.73432251f, -0.67880075f}, +{-0.74314483f, -0.66913061f}, {-0.75183981f, -0.65934582f}, +{-0.76040597f, -0.64944805f}, {-0.76884183f, -0.63943900f}, +{-0.77714596f, -0.62932039f}, {-0.78531693f, -0.61909395f}, +{-0.79335334f, -0.60876143f}, {-0.80125381f, -0.59832460f}, +{-0.80901699f, -0.58778525f}, {-0.81664156f, -0.57714519f}, +{-0.82412619f, -0.56640624f}, {-0.83146961f, -0.55557023f}, +{-0.83867057f, -0.54463904f}, {-0.84572782f, -0.53361452f}, +{-0.85264016f, -0.52249856f}, {-0.85940641f, -0.51129309f}, +{-0.86602540f, -0.50000000f}, {-0.87249601f, -0.48862124f}, +{-0.87881711f, -0.47715876f}, {-0.88498764f, -0.46561452f}, +{-0.89100652f, -0.45399050f}, {-0.89687274f, -0.44228869f}, +{-0.90258528f, -0.43051110f}, {-0.90814317f, -0.41865974f}, +{-0.91354546f, -0.40673664f}, {-0.91879121f, -0.39474386f}, +{-0.92387953f, -0.38268343f}, {-0.92880955f, -0.37055744f}, +{-0.93358043f, -0.35836795f}, {-0.93819134f, -0.34611706f}, +{-0.94264149f, -0.33380686f}, {-0.94693013f, -0.32143947f}, +{-0.95105652f, -0.30901699f}, {-0.95501994f, -0.29654157f}, +{-0.95881973f, -0.28401534f}, {-0.96245524f, -0.27144045f}, +{-0.96592583f, -0.25881905f}, {-0.96923091f, -0.24615329f}, +{-0.97236992f, -0.23344536f}, {-0.97534232f, -0.22069744f}, +{-0.97814760f, -0.20791169f}, {-0.98078528f, -0.19509032f}, +{-0.98325491f, -0.18223553f}, {-0.98555606f, -0.16934950f}, +{-0.98768834f, -0.15643447f}, {-0.98965139f, -0.14349262f}, +{-0.99144486f, -0.13052619f}, {-0.99306846f, -0.11753740f}, +{-0.99452190f, -0.10452846f}, {-0.99580493f, -0.091501619f}, +{-0.99691733f, -0.078459096f}, {-0.99785892f, -0.065403129f}, +{-0.99862953f, -0.052335956f}, {-0.99922904f, -0.039259816f}, +{-0.99965732f, -0.026176948f}, {-0.99991433f, -0.013089596f}, +{-1.0000000f, -1.2246064e-16f}, {-0.99991433f, 0.013089596f}, +{-0.99965732f, 0.026176948f}, {-0.99922904f, 0.039259816f}, +{-0.99862953f, 0.052335956f}, {-0.99785892f, 0.065403129f}, +{-0.99691733f, 0.078459096f}, {-0.99580493f, 0.091501619f}, +{-0.99452190f, 0.10452846f}, {-0.99306846f, 0.11753740f}, +{-0.99144486f, 0.13052619f}, {-0.98965139f, 0.14349262f}, +{-0.98768834f, 0.15643447f}, {-0.98555606f, 0.16934950f}, +{-0.98325491f, 0.18223553f}, {-0.98078528f, 0.19509032f}, +{-0.97814760f, 0.20791169f}, {-0.97534232f, 0.22069744f}, +{-0.97236992f, 0.23344536f}, {-0.96923091f, 0.24615329f}, +{-0.96592583f, 0.25881905f}, {-0.96245524f, 0.27144045f}, +{-0.95881973f, 0.28401534f}, {-0.95501994f, 0.29654157f}, +{-0.95105652f, 0.30901699f}, {-0.94693013f, 0.32143947f}, +{-0.94264149f, 0.33380686f}, {-0.93819134f, 0.34611706f}, +{-0.93358043f, 0.35836795f}, {-0.92880955f, 0.37055744f}, +{-0.92387953f, 0.38268343f}, {-0.91879121f, 0.39474386f}, +{-0.91354546f, 0.40673664f}, {-0.90814317f, 0.41865974f}, +{-0.90258528f, 0.43051110f}, {-0.89687274f, 0.44228869f}, +{-0.89100652f, 0.45399050f}, {-0.88498764f, 0.46561452f}, +{-0.87881711f, 0.47715876f}, {-0.87249601f, 0.48862124f}, +{-0.86602540f, 0.50000000f}, {-0.85940641f, 0.51129309f}, +{-0.85264016f, 0.52249856f}, {-0.84572782f, 0.53361452f}, +{-0.83867057f, 0.54463904f}, {-0.83146961f, 0.55557023f}, +{-0.82412619f, 0.56640624f}, {-0.81664156f, 0.57714519f}, +{-0.80901699f, 0.58778525f}, {-0.80125381f, 0.59832460f}, +{-0.79335334f, 0.60876143f}, {-0.78531693f, 0.61909395f}, +{-0.77714596f, 0.62932039f}, {-0.76884183f, 0.63943900f}, +{-0.76040597f, 0.64944805f}, {-0.75183981f, 0.65934582f}, +{-0.74314483f, 0.66913061f}, {-0.73432251f, 0.67880075f}, +{-0.72537437f, 0.68835458f}, {-0.71630194f, 0.69779046f}, +{-0.70710678f, 0.70710678f}, {-0.69779046f, 0.71630194f}, +{-0.68835458f, 0.72537437f}, {-0.67880075f, 0.73432251f}, +{-0.66913061f, 0.74314483f}, {-0.65934582f, 0.75183981f}, +{-0.64944805f, 0.76040597f}, {-0.63943900f, 0.76884183f}, +{-0.62932039f, 0.77714596f}, {-0.61909395f, 0.78531693f}, +{-0.60876143f, 0.79335334f}, {-0.59832460f, 0.80125381f}, +{-0.58778525f, 0.80901699f}, {-0.57714519f, 0.81664156f}, +{-0.56640624f, 0.82412619f}, {-0.55557023f, 0.83146961f}, +{-0.54463904f, 0.83867057f}, {-0.53361452f, 0.84572782f}, +{-0.52249856f, 0.85264016f}, {-0.51129309f, 0.85940641f}, +{-0.50000000f, 0.86602540f}, {-0.48862124f, 0.87249601f}, +{-0.47715876f, 0.87881711f}, {-0.46561452f, 0.88498764f}, +{-0.45399050f, 0.89100652f}, {-0.44228869f, 0.89687274f}, +{-0.43051110f, 0.90258528f}, {-0.41865974f, 0.90814317f}, +{-0.40673664f, 0.91354546f}, {-0.39474386f, 0.91879121f}, +{-0.38268343f, 0.92387953f}, {-0.37055744f, 0.92880955f}, +{-0.35836795f, 0.93358043f}, {-0.34611706f, 0.93819134f}, +{-0.33380686f, 0.94264149f}, {-0.32143947f, 0.94693013f}, +{-0.30901699f, 0.95105652f}, {-0.29654157f, 0.95501994f}, +{-0.28401534f, 0.95881973f}, {-0.27144045f, 0.96245524f}, +{-0.25881905f, 0.96592583f}, {-0.24615329f, 0.96923091f}, +{-0.23344536f, 0.97236992f}, {-0.22069744f, 0.97534232f}, +{-0.20791169f, 0.97814760f}, {-0.19509032f, 0.98078528f}, +{-0.18223553f, 0.98325491f}, {-0.16934950f, 0.98555606f}, +{-0.15643447f, 0.98768834f}, {-0.14349262f, 0.98965139f}, +{-0.13052619f, 0.99144486f}, {-0.11753740f, 0.99306846f}, +{-0.10452846f, 0.99452190f}, {-0.091501619f, 0.99580493f}, +{-0.078459096f, 0.99691733f}, {-0.065403129f, 0.99785892f}, +{-0.052335956f, 0.99862953f}, {-0.039259816f, 0.99922904f}, +{-0.026176948f, 0.99965732f}, {-0.013089596f, 0.99991433f}, +{-1.8369095e-16f, 1.0000000f}, {0.013089596f, 0.99991433f}, +{0.026176948f, 0.99965732f}, {0.039259816f, 0.99922904f}, +{0.052335956f, 0.99862953f}, {0.065403129f, 0.99785892f}, +{0.078459096f, 0.99691733f}, {0.091501619f, 0.99580493f}, +{0.10452846f, 0.99452190f}, {0.11753740f, 0.99306846f}, +{0.13052619f, 0.99144486f}, {0.14349262f, 0.98965139f}, +{0.15643447f, 0.98768834f}, {0.16934950f, 0.98555606f}, +{0.18223553f, 0.98325491f}, {0.19509032f, 0.98078528f}, +{0.20791169f, 0.97814760f}, {0.22069744f, 0.97534232f}, +{0.23344536f, 0.97236992f}, {0.24615329f, 0.96923091f}, +{0.25881905f, 0.96592583f}, {0.27144045f, 0.96245524f}, +{0.28401534f, 0.95881973f}, {0.29654157f, 0.95501994f}, +{0.30901699f, 0.95105652f}, {0.32143947f, 0.94693013f}, +{0.33380686f, 0.94264149f}, {0.34611706f, 0.93819134f}, +{0.35836795f, 0.93358043f}, {0.37055744f, 0.92880955f}, +{0.38268343f, 0.92387953f}, {0.39474386f, 0.91879121f}, +{0.40673664f, 0.91354546f}, {0.41865974f, 0.90814317f}, +{0.43051110f, 0.90258528f}, {0.44228869f, 0.89687274f}, +{0.45399050f, 0.89100652f}, {0.46561452f, 0.88498764f}, +{0.47715876f, 0.87881711f}, {0.48862124f, 0.87249601f}, +{0.50000000f, 0.86602540f}, {0.51129309f, 0.85940641f}, +{0.52249856f, 0.85264016f}, {0.53361452f, 0.84572782f}, +{0.54463904f, 0.83867057f}, {0.55557023f, 0.83146961f}, +{0.56640624f, 0.82412619f}, {0.57714519f, 0.81664156f}, +{0.58778525f, 0.80901699f}, {0.59832460f, 0.80125381f}, +{0.60876143f, 0.79335334f}, {0.61909395f, 0.78531693f}, +{0.62932039f, 0.77714596f}, {0.63943900f, 0.76884183f}, +{0.64944805f, 0.76040597f}, {0.65934582f, 0.75183981f}, +{0.66913061f, 0.74314483f}, {0.67880075f, 0.73432251f}, +{0.68835458f, 0.72537437f}, {0.69779046f, 0.71630194f}, +{0.70710678f, 0.70710678f}, {0.71630194f, 0.69779046f}, +{0.72537437f, 0.68835458f}, {0.73432251f, 0.67880075f}, +{0.74314483f, 0.66913061f}, {0.75183981f, 0.65934582f}, +{0.76040597f, 0.64944805f}, {0.76884183f, 0.63943900f}, +{0.77714596f, 0.62932039f}, {0.78531693f, 0.61909395f}, +{0.79335334f, 0.60876143f}, {0.80125381f, 0.59832460f}, +{0.80901699f, 0.58778525f}, {0.81664156f, 0.57714519f}, +{0.82412619f, 0.56640624f}, {0.83146961f, 0.55557023f}, +{0.83867057f, 0.54463904f}, {0.84572782f, 0.53361452f}, +{0.85264016f, 0.52249856f}, {0.85940641f, 0.51129309f}, +{0.86602540f, 0.50000000f}, {0.87249601f, 0.48862124f}, +{0.87881711f, 0.47715876f}, {0.88498764f, 0.46561452f}, +{0.89100652f, 0.45399050f}, {0.89687274f, 0.44228869f}, +{0.90258528f, 0.43051110f}, {0.90814317f, 0.41865974f}, +{0.91354546f, 0.40673664f}, {0.91879121f, 0.39474386f}, +{0.92387953f, 0.38268343f}, {0.92880955f, 0.37055744f}, +{0.93358043f, 0.35836795f}, {0.93819134f, 0.34611706f}, +{0.94264149f, 0.33380686f}, {0.94693013f, 0.32143947f}, +{0.95105652f, 0.30901699f}, {0.95501994f, 0.29654157f}, +{0.95881973f, 0.28401534f}, {0.96245524f, 0.27144045f}, +{0.96592583f, 0.25881905f}, {0.96923091f, 0.24615329f}, +{0.97236992f, 0.23344536f}, {0.97534232f, 0.22069744f}, +{0.97814760f, 0.20791169f}, {0.98078528f, 0.19509032f}, +{0.98325491f, 0.18223553f}, {0.98555606f, 0.16934950f}, +{0.98768834f, 0.15643447f}, {0.98965139f, 0.14349262f}, +{0.99144486f, 0.13052619f}, {0.99306846f, 0.11753740f}, +{0.99452190f, 0.10452846f}, {0.99580493f, 0.091501619f}, +{0.99691733f, 0.078459096f}, {0.99785892f, 0.065403129f}, +{0.99862953f, 0.052335956f}, {0.99922904f, 0.039259816f}, +{0.99965732f, 0.026176948f}, {0.99991433f, 0.013089596f}, +}; +#ifndef FFT_BITREV480 +#define FFT_BITREV480 +static const opus_int16 fft_bitrev480[480] = { +0, 96, 192, 288, 384, 32, 128, 224, 320, 416, 64, 160, 256, 352, 448, +8, 104, 200, 296, 392, 40, 136, 232, 328, 424, 72, 168, 264, 360, 456, +16, 112, 208, 304, 400, 48, 144, 240, 336, 432, 80, 176, 272, 368, 464, +24, 120, 216, 312, 408, 56, 152, 248, 344, 440, 88, 184, 280, 376, 472, +4, 100, 196, 292, 388, 36, 132, 228, 324, 420, 68, 164, 260, 356, 452, +12, 108, 204, 300, 396, 44, 140, 236, 332, 428, 76, 172, 268, 364, 460, +20, 116, 212, 308, 404, 52, 148, 244, 340, 436, 84, 180, 276, 372, 468, +28, 124, 220, 316, 412, 60, 156, 252, 348, 444, 92, 188, 284, 380, 476, +1, 97, 193, 289, 385, 33, 129, 225, 321, 417, 65, 161, 257, 353, 449, +9, 105, 201, 297, 393, 41, 137, 233, 329, 425, 73, 169, 265, 361, 457, +17, 113, 209, 305, 401, 49, 145, 241, 337, 433, 81, 177, 273, 369, 465, +25, 121, 217, 313, 409, 57, 153, 249, 345, 441, 89, 185, 281, 377, 473, +5, 101, 197, 293, 389, 37, 133, 229, 325, 421, 69, 165, 261, 357, 453, +13, 109, 205, 301, 397, 45, 141, 237, 333, 429, 77, 173, 269, 365, 461, +21, 117, 213, 309, 405, 53, 149, 245, 341, 437, 85, 181, 277, 373, 469, +29, 125, 221, 317, 413, 61, 157, 253, 349, 445, 93, 189, 285, 381, 477, +2, 98, 194, 290, 386, 34, 130, 226, 322, 418, 66, 162, 258, 354, 450, +10, 106, 202, 298, 394, 42, 138, 234, 330, 426, 74, 170, 266, 362, 458, +18, 114, 210, 306, 402, 50, 146, 242, 338, 434, 82, 178, 274, 370, 466, +26, 122, 218, 314, 410, 58, 154, 250, 346, 442, 90, 186, 282, 378, 474, +6, 102, 198, 294, 390, 38, 134, 230, 326, 422, 70, 166, 262, 358, 454, +14, 110, 206, 302, 398, 46, 142, 238, 334, 430, 78, 174, 270, 366, 462, +22, 118, 214, 310, 406, 54, 150, 246, 342, 438, 86, 182, 278, 374, 470, +30, 126, 222, 318, 414, 62, 158, 254, 350, 446, 94, 190, 286, 382, 478, +3, 99, 195, 291, 387, 35, 131, 227, 323, 419, 67, 163, 259, 355, 451, +11, 107, 203, 299, 395, 43, 139, 235, 331, 427, 75, 171, 267, 363, 459, +19, 115, 211, 307, 403, 51, 147, 243, 339, 435, 83, 179, 275, 371, 467, +27, 123, 219, 315, 411, 59, 155, 251, 347, 443, 91, 187, 283, 379, 475, +7, 103, 199, 295, 391, 39, 135, 231, 327, 423, 71, 167, 263, 359, 455, +15, 111, 207, 303, 399, 47, 143, 239, 335, 431, 79, 175, 271, 367, 463, +23, 119, 215, 311, 407, 55, 151, 247, 343, 439, 87, 183, 279, 375, 471, +31, 127, 223, 319, 415, 63, 159, 255, 351, 447, 95, 191, 287, 383, 479, +}; +#endif + +#ifndef FFT_BITREV240 +#define FFT_BITREV240 +static const opus_int16 fft_bitrev240[240] = { +0, 48, 96, 144, 192, 16, 64, 112, 160, 208, 32, 80, 128, 176, 224, +4, 52, 100, 148, 196, 20, 68, 116, 164, 212, 36, 84, 132, 180, 228, +8, 56, 104, 152, 200, 24, 72, 120, 168, 216, 40, 88, 136, 184, 232, +12, 60, 108, 156, 204, 28, 76, 124, 172, 220, 44, 92, 140, 188, 236, +1, 49, 97, 145, 193, 17, 65, 113, 161, 209, 33, 81, 129, 177, 225, +5, 53, 101, 149, 197, 21, 69, 117, 165, 213, 37, 85, 133, 181, 229, +9, 57, 105, 153, 201, 25, 73, 121, 169, 217, 41, 89, 137, 185, 233, +13, 61, 109, 157, 205, 29, 77, 125, 173, 221, 45, 93, 141, 189, 237, +2, 50, 98, 146, 194, 18, 66, 114, 162, 210, 34, 82, 130, 178, 226, +6, 54, 102, 150, 198, 22, 70, 118, 166, 214, 38, 86, 134, 182, 230, +10, 58, 106, 154, 202, 26, 74, 122, 170, 218, 42, 90, 138, 186, 234, +14, 62, 110, 158, 206, 30, 78, 126, 174, 222, 46, 94, 142, 190, 238, +3, 51, 99, 147, 195, 19, 67, 115, 163, 211, 35, 83, 131, 179, 227, +7, 55, 103, 151, 199, 23, 71, 119, 167, 215, 39, 87, 135, 183, 231, +11, 59, 107, 155, 203, 27, 75, 123, 171, 219, 43, 91, 139, 187, 235, +15, 63, 111, 159, 207, 31, 79, 127, 175, 223, 47, 95, 143, 191, 239, +}; +#endif + +#ifndef FFT_BITREV120 +#define FFT_BITREV120 +static const opus_int16 fft_bitrev120[120] = { +0, 24, 48, 72, 96, 8, 32, 56, 80, 104, 16, 40, 64, 88, 112, +4, 28, 52, 76, 100, 12, 36, 60, 84, 108, 20, 44, 68, 92, 116, +1, 25, 49, 73, 97, 9, 33, 57, 81, 105, 17, 41, 65, 89, 113, +5, 29, 53, 77, 101, 13, 37, 61, 85, 109, 21, 45, 69, 93, 117, +2, 26, 50, 74, 98, 10, 34, 58, 82, 106, 18, 42, 66, 90, 114, +6, 30, 54, 78, 102, 14, 38, 62, 86, 110, 22, 46, 70, 94, 118, +3, 27, 51, 75, 99, 11, 35, 59, 83, 107, 19, 43, 67, 91, 115, +7, 31, 55, 79, 103, 15, 39, 63, 87, 111, 23, 47, 71, 95, 119, +}; +#endif + +#ifndef FFT_BITREV60 +#define FFT_BITREV60 +static const opus_int16 fft_bitrev60[60] = { +0, 12, 24, 36, 48, 4, 16, 28, 40, 52, 8, 20, 32, 44, 56, +1, 13, 25, 37, 49, 5, 17, 29, 41, 53, 9, 21, 33, 45, 57, +2, 14, 26, 38, 50, 6, 18, 30, 42, 54, 10, 22, 34, 46, 58, +3, 15, 27, 39, 51, 7, 19, 31, 43, 55, 11, 23, 35, 47, 59, +}; +#endif + +#ifndef FFT_STATE48000_960_0 +#define FFT_STATE48000_960_0 +static const kiss_fft_state fft_state48000_960_0 = { +480, /* nfft */ +0.002083333f, /* scale */ +-1, /* shift */ +{5, 96, 3, 32, 4, 8, 2, 4, 4, 1, 0, 0, 0, 0, 0, 0, }, /* factors */ +fft_bitrev480, /* bitrev */ +fft_twiddles48000_960, /* bitrev */ +#ifdef OVERRIDE_FFT +(arch_fft_state *)&cfg_arch_480, +#else +NULL, +#endif +}; +#endif + +#ifndef FFT_STATE48000_960_1 +#define FFT_STATE48000_960_1 +static const kiss_fft_state fft_state48000_960_1 = { +240, /* nfft */ +0.004166667f, /* scale */ +1, /* shift */ +{5, 48, 3, 16, 4, 4, 4, 1, 0, 0, 0, 0, 0, 0, 0, 0, }, /* factors */ +fft_bitrev240, /* bitrev */ +fft_twiddles48000_960, /* bitrev */ +#ifdef OVERRIDE_FFT +(arch_fft_state *)&cfg_arch_240, +#else +NULL, +#endif +}; +#endif + +#ifndef FFT_STATE48000_960_2 +#define FFT_STATE48000_960_2 +static const kiss_fft_state fft_state48000_960_2 = { +120, /* nfft */ +0.008333333f, /* scale */ +2, /* shift */ +{5, 24, 3, 8, 2, 4, 4, 1, 0, 0, 0, 0, 0, 0, 0, 0, }, /* factors */ +fft_bitrev120, /* bitrev */ +fft_twiddles48000_960, /* bitrev */ +#ifdef OVERRIDE_FFT +(arch_fft_state *)&cfg_arch_120, +#else +NULL, +#endif +}; +#endif + +#ifndef FFT_STATE48000_960_3 +#define FFT_STATE48000_960_3 +static const kiss_fft_state fft_state48000_960_3 = { +60, /* nfft */ +0.016666667f, /* scale */ +3, /* shift */ +{5, 12, 3, 4, 4, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }, /* factors */ +fft_bitrev60, /* bitrev */ +fft_twiddles48000_960, /* bitrev */ +#ifdef OVERRIDE_FFT +(arch_fft_state *)&cfg_arch_60, +#else +NULL, +#endif +}; +#endif + +#endif + +#ifndef MDCT_TWIDDLES960 +#define MDCT_TWIDDLES960 +static const opus_val16 mdct_twiddles960[1800] = { +0.99999994f, 0.99999321f, 0.99997580f, 0.99994773f, 0.99990886f, +0.99985933f, 0.99979913f, 0.99972820f, 0.99964654f, 0.99955416f, +0.99945110f, 0.99933738f, 0.99921292f, 0.99907774f, 0.99893188f, +0.99877530f, 0.99860805f, 0.99843007f, 0.99824142f, 0.99804211f, +0.99783206f, 0.99761140f, 0.99737996f, 0.99713790f, 0.99688518f, +0.99662173f, 0.99634761f, 0.99606287f, 0.99576741f, 0.99546129f, +0.99514455f, 0.99481714f, 0.99447906f, 0.99413031f, 0.99377096f, +0.99340093f, 0.99302030f, 0.99262899f, 0.99222708f, 0.99181455f, +0.99139136f, 0.99095762f, 0.99051321f, 0.99005818f, 0.98959261f, +0.98911643f, 0.98862964f, 0.98813224f, 0.98762429f, 0.98710573f, +0.98657662f, 0.98603696f, 0.98548669f, 0.98492593f, 0.98435456f, +0.98377270f, 0.98318028f, 0.98257732f, 0.98196387f, 0.98133987f, +0.98070538f, 0.98006040f, 0.97940493f, 0.97873890f, 0.97806245f, +0.97737551f, 0.97667813f, 0.97597027f, 0.97525197f, 0.97452319f, +0.97378403f, 0.97303438f, 0.97227436f, 0.97150391f, 0.97072303f, +0.96993178f, 0.96913016f, 0.96831810f, 0.96749574f, 0.96666300f, +0.96581990f, 0.96496642f, 0.96410263f, 0.96322852f, 0.96234411f, +0.96144938f, 0.96054435f, 0.95962906f, 0.95870346f, 0.95776761f, +0.95682150f, 0.95586514f, 0.95489854f, 0.95392174f, 0.95293468f, +0.95193744f, 0.95093000f, 0.94991243f, 0.94888461f, 0.94784665f, +0.94679856f, 0.94574034f, 0.94467193f, 0.94359344f, 0.94250488f, +0.94140619f, 0.94029742f, 0.93917859f, 0.93804967f, 0.93691075f, +0.93576175f, 0.93460274f, 0.93343377f, 0.93225473f, 0.93106574f, +0.92986679f, 0.92865789f, 0.92743903f, 0.92621022f, 0.92497152f, +0.92372292f, 0.92246443f, 0.92119598f, 0.91991776f, 0.91862965f, +0.91733170f, 0.91602397f, 0.91470635f, 0.91337901f, 0.91204184f, +0.91069490f, 0.90933824f, 0.90797186f, 0.90659571f, 0.90520984f, +0.90381432f, 0.90240908f, 0.90099424f, 0.89956969f, 0.89813554f, +0.89669174f, 0.89523834f, 0.89377540f, 0.89230281f, 0.89082074f, +0.88932908f, 0.88782793f, 0.88631725f, 0.88479710f, 0.88326746f, +0.88172835f, 0.88017982f, 0.87862182f, 0.87705445f, 0.87547767f, +0.87389153f, 0.87229604f, 0.87069118f, 0.86907703f, 0.86745358f, +0.86582077f, 0.86417878f, 0.86252749f, 0.86086690f, 0.85919720f, +0.85751826f, 0.85583007f, 0.85413277f, 0.85242635f, 0.85071075f, +0.84898609f, 0.84725231f, 0.84550947f, 0.84375757f, 0.84199661f, +0.84022665f, 0.83844769f, 0.83665979f, 0.83486289f, 0.83305705f, +0.83124226f, 0.82941860f, 0.82758605f, 0.82574469f, 0.82389444f, +0.82203537f, 0.82016748f, 0.81829083f, 0.81640542f, 0.81451124f, +0.81260836f, 0.81069672f, 0.80877650f, 0.80684757f, 0.80490994f, +0.80296379f, 0.80100900f, 0.79904562f, 0.79707366f, 0.79509324f, +0.79310423f, 0.79110676f, 0.78910083f, 0.78708643f, 0.78506362f, +0.78303236f, 0.78099275f, 0.77894479f, 0.77688843f, 0.77482378f, +0.77275085f, 0.77066964f, 0.76858020f, 0.76648247f, 0.76437658f, +0.76226246f, 0.76014024f, 0.75800985f, 0.75587130f, 0.75372469f, +0.75157005f, 0.74940729f, 0.74723655f, 0.74505776f, 0.74287105f, +0.74067634f, 0.73847371f, 0.73626316f, 0.73404479f, 0.73181850f, +0.72958434f, 0.72734243f, 0.72509271f, 0.72283524f, 0.72057003f, +0.71829706f, 0.71601641f, 0.71372813f, 0.71143216f, 0.70912862f, +0.70681745f, 0.70449871f, 0.70217246f, 0.69983864f, 0.69749737f, +0.69514859f, 0.69279242f, 0.69042879f, 0.68805778f, 0.68567938f, +0.68329364f, 0.68090063f, 0.67850029f, 0.67609268f, 0.67367786f, +0.67125577f, 0.66882652f, 0.66639012f, 0.66394657f, 0.66149592f, +0.65903819f, 0.65657341f, 0.65410155f, 0.65162271f, 0.64913690f, +0.64664418f, 0.64414448f, 0.64163786f, 0.63912445f, 0.63660413f, +0.63407701f, 0.63154310f, 0.62900239f, 0.62645501f, 0.62390089f, +0.62134010f, 0.61877263f, 0.61619854f, 0.61361790f, 0.61103064f, +0.60843682f, 0.60583651f, 0.60322970f, 0.60061646f, 0.59799677f, +0.59537065f, 0.59273821f, 0.59009939f, 0.58745426f, 0.58480281f, +0.58214509f, 0.57948118f, 0.57681108f, 0.57413477f, 0.57145232f, +0.56876373f, 0.56606907f, 0.56336832f, 0.56066155f, 0.55794877f, +0.55523002f, 0.55250537f, 0.54977477f, 0.54703826f, 0.54429591f, +0.54154772f, 0.53879374f, 0.53603399f, 0.53326851f, 0.53049731f, +0.52772039f, 0.52493787f, 0.52214974f, 0.51935595f, 0.51655668f, +0.51375180f, 0.51094145f, 0.50812566f, 0.50530440f, 0.50247771f, +0.49964568f, 0.49680826f, 0.49396557f, 0.49111754f, 0.48826426f, +0.48540577f, 0.48254207f, 0.47967321f, 0.47679919f, 0.47392011f, +0.47103590f, 0.46814668f, 0.46525243f, 0.46235323f, 0.45944905f, +0.45653993f, 0.45362595f, 0.45070711f, 0.44778344f, 0.44485497f, +0.44192174f, 0.43898380f, 0.43604112f, 0.43309379f, 0.43014181f, +0.42718524f, 0.42422408f, 0.42125839f, 0.41828820f, 0.41531351f, +0.41233435f, 0.40935081f, 0.40636289f, 0.40337059f, 0.40037400f, +0.39737311f, 0.39436796f, 0.39135858f, 0.38834500f, 0.38532731f, +0.38230544f, 0.37927949f, 0.37624949f, 0.37321547f, 0.37017745f, +0.36713544f, 0.36408952f, 0.36103970f, 0.35798600f, 0.35492846f, +0.35186714f, 0.34880206f, 0.34573323f, 0.34266070f, 0.33958447f, +0.33650464f, 0.33342120f, 0.33033419f, 0.32724363f, 0.32414958f, +0.32105204f, 0.31795108f, 0.31484672f, 0.31173897f, 0.30862790f, +0.30551350f, 0.30239585f, 0.29927495f, 0.29615086f, 0.29302359f, +0.28989318f, 0.28675964f, 0.28362307f, 0.28048345f, 0.27734083f, +0.27419522f, 0.27104670f, 0.26789525f, 0.26474094f, 0.26158381f, +0.25842386f, 0.25526115f, 0.25209570f, 0.24892756f, 0.24575676f, +0.24258332f, 0.23940729f, 0.23622867f, 0.23304754f, 0.22986393f, +0.22667783f, 0.22348931f, 0.22029841f, 0.21710514f, 0.21390954f, +0.21071166f, 0.20751151f, 0.20430915f, 0.20110460f, 0.19789790f, +0.19468907f, 0.19147816f, 0.18826519f, 0.18505022f, 0.18183327f, +0.17861435f, 0.17539354f, 0.17217083f, 0.16894630f, 0.16571994f, +0.16249183f, 0.15926196f, 0.15603039f, 0.15279715f, 0.14956227f, +0.14632578f, 0.14308774f, 0.13984816f, 0.13660708f, 0.13336454f, +0.13012058f, 0.12687522f, 0.12362850f, 0.12038045f, 0.11713112f, +0.11388054f, 0.11062872f, 0.10737573f, 0.10412160f, 0.10086634f, +0.097609997f, 0.094352618f, 0.091094226f, 0.087834857f, 0.084574550f, +0.081313334f, 0.078051247f, 0.074788325f, 0.071524605f, 0.068260118f, +0.064994894f, 0.061728980f, 0.058462404f, 0.055195201f, 0.051927410f, +0.048659060f, 0.045390189f, 0.042120833f, 0.038851023f, 0.035580799f, +0.032310195f, 0.029039243f, 0.025767982f, 0.022496443f, 0.019224664f, +0.015952680f, 0.012680525f, 0.0094082337f, 0.0061358409f, 0.0028633832f, +-0.00040910527f, -0.0036815894f, -0.0069540343f, -0.010226404f, -0.013498665f, +-0.016770782f, -0.020042717f, -0.023314439f, -0.026585912f, -0.029857099f, +-0.033127967f, -0.036398482f, -0.039668605f, -0.042938303f, -0.046207540f, +-0.049476285f, -0.052744497f, -0.056012146f, -0.059279196f, -0.062545612f, +-0.065811358f, -0.069076397f, -0.072340697f, -0.075604223f, -0.078866936f, +-0.082128808f, -0.085389800f, -0.088649876f, -0.091909006f, -0.095167145f, +-0.098424271f, -0.10168034f, -0.10493532f, -0.10818918f, -0.11144188f, +-0.11469338f, -0.11794366f, -0.12119267f, -0.12444039f, -0.12768677f, +-0.13093179f, -0.13417540f, -0.13741758f, -0.14065829f, -0.14389749f, +-0.14713514f, -0.15037122f, -0.15360570f, -0.15683852f, -0.16006967f, +-0.16329910f, -0.16652679f, -0.16975269f, -0.17297678f, -0.17619900f, +-0.17941935f, -0.18263777f, -0.18585424f, -0.18906870f, -0.19228116f, +-0.19549155f, -0.19869985f, -0.20190603f, -0.20511003f, -0.20831184f, +-0.21151142f, -0.21470875f, -0.21790376f, -0.22109644f, -0.22428675f, +-0.22747467f, -0.23066014f, -0.23384315f, -0.23702365f, -0.24020162f, +-0.24337701f, -0.24654980f, -0.24971995f, -0.25288740f, -0.25605217f, +-0.25921419f, -0.26237345f, -0.26552987f, -0.26868346f, -0.27183419f, +-0.27498198f, -0.27812684f, -0.28126872f, -0.28440759f, -0.28754342f, +-0.29067615f, -0.29380578f, -0.29693225f, -0.30005556f, -0.30317566f, +-0.30629250f, -0.30940607f, -0.31251630f, -0.31562322f, -0.31872672f, +-0.32182685f, -0.32492352f, -0.32801670f, -0.33110636f, -0.33419248f, +-0.33727503f, -0.34035397f, -0.34342924f, -0.34650084f, -0.34956875f, +-0.35263291f, -0.35569328f, -0.35874987f, -0.36180258f, -0.36485144f, +-0.36789638f, -0.37093741f, -0.37397444f, -0.37700745f, -0.38003644f, +-0.38306138f, -0.38608220f, -0.38909888f, -0.39211139f, -0.39511973f, +-0.39812380f, -0.40112361f, -0.40411916f, -0.40711036f, -0.41009718f, +-0.41307965f, -0.41605768f, -0.41903123f, -0.42200032f, -0.42496487f, +-0.42792490f, -0.43088034f, -0.43383113f, -0.43677729f, -0.43971881f, +-0.44265559f, -0.44558764f, -0.44851488f, -0.45143735f, -0.45435500f, +-0.45726776f, -0.46017563f, -0.46307856f, -0.46597654f, -0.46886954f, +-0.47175750f, -0.47464043f, -0.47751826f, -0.48039100f, -0.48325855f, +-0.48612097f, -0.48897815f, -0.49183011f, -0.49467680f, -0.49751821f, +-0.50035429f, -0.50318497f, -0.50601029f, -0.50883019f, -0.51164466f, +-0.51445359f, -0.51725709f, -0.52005500f, -0.52284735f, -0.52563411f, +-0.52841520f, -0.53119069f, -0.53396046f, -0.53672451f, -0.53948283f, +-0.54223537f, -0.54498214f, -0.54772300f, -0.55045801f, -0.55318713f, +-0.55591035f, -0.55862761f, -0.56133890f, -0.56404412f, -0.56674337f, +-0.56943649f, -0.57212353f, -0.57480448f, -0.57747924f, -0.58014780f, +-0.58281022f, -0.58546633f, -0.58811617f, -0.59075975f, -0.59339696f, +-0.59602785f, -0.59865236f, -0.60127044f, -0.60388207f, -0.60648727f, +-0.60908598f, -0.61167812f, -0.61426371f, -0.61684275f, -0.61941516f, +-0.62198097f, -0.62454009f, -0.62709254f, -0.62963831f, -0.63217729f, +-0.63470948f, -0.63723493f, -0.63975352f, -0.64226526f, -0.64477009f, +-0.64726806f, -0.64975911f, -0.65224314f, -0.65472025f, -0.65719032f, +-0.65965337f, -0.66210932f, -0.66455823f, -0.66700000f, -0.66943461f, +-0.67186207f, -0.67428231f, -0.67669535f, -0.67910111f, -0.68149966f, +-0.68389088f, -0.68627477f, -0.68865126f, -0.69102043f, -0.69338220f, +-0.69573659f, -0.69808346f, -0.70042288f, -0.70275480f, -0.70507920f, +-0.70739603f, -0.70970529f, -0.71200693f, -0.71430099f, -0.71658736f, +-0.71886611f, -0.72113711f, -0.72340041f, -0.72565591f, -0.72790372f, +-0.73014367f, -0.73237586f, -0.73460019f, -0.73681659f, -0.73902518f, +-0.74122584f, -0.74341851f, -0.74560326f, -0.74778003f, -0.74994880f, +-0.75210953f, -0.75426215f, -0.75640678f, -0.75854325f, -0.76067162f, +-0.76279181f, -0.76490390f, -0.76700771f, -0.76910341f, -0.77119076f, +-0.77326995f, -0.77534080f, -0.77740335f, -0.77945763f, -0.78150350f, +-0.78354102f, -0.78557014f, -0.78759086f, -0.78960317f, -0.79160696f, +-0.79360235f, -0.79558921f, -0.79756755f, -0.79953730f, -0.80149853f, +-0.80345118f, -0.80539525f, -0.80733067f, -0.80925739f, -0.81117553f, +-0.81308490f, -0.81498563f, -0.81687760f, -0.81876087f, -0.82063532f, +-0.82250100f, -0.82435787f, -0.82620591f, -0.82804507f, -0.82987541f, +-0.83169687f, -0.83350939f, -0.83531296f, -0.83710766f, -0.83889335f, +-0.84067005f, -0.84243774f, -0.84419644f, -0.84594607f, -0.84768665f, +-0.84941816f, -0.85114056f, -0.85285389f, -0.85455805f, -0.85625303f, +-0.85793889f, -0.85961550f, -0.86128294f, -0.86294121f, -0.86459017f, +-0.86622989f, -0.86786032f, -0.86948150f, -0.87109333f, -0.87269586f, +-0.87428904f, -0.87587279f, -0.87744725f, -0.87901229f, -0.88056785f, +-0.88211405f, -0.88365078f, -0.88517809f, -0.88669586f, -0.88820416f, +-0.88970292f, -0.89119220f, -0.89267188f, -0.89414203f, -0.89560264f, +-0.89705360f, -0.89849502f, -0.89992678f, -0.90134889f, -0.90276134f, +-0.90416414f, -0.90555727f, -0.90694070f, -0.90831441f, -0.90967834f, +-0.91103262f, -0.91237706f, -0.91371179f, -0.91503674f, -0.91635185f, +-0.91765714f, -0.91895264f, -0.92023826f, -0.92151409f, -0.92277998f, +-0.92403603f, -0.92528218f, -0.92651838f, -0.92774469f, -0.92896110f, +-0.93016750f, -0.93136400f, -0.93255049f, -0.93372697f, -0.93489349f, +-0.93604994f, -0.93719643f, -0.93833286f, -0.93945926f, -0.94057560f, +-0.94168180f, -0.94277799f, -0.94386405f, -0.94494003f, -0.94600588f, +-0.94706154f, -0.94810712f, -0.94914252f, -0.95016778f, -0.95118284f, +-0.95218778f, -0.95318246f, -0.95416695f, -0.95514119f, -0.95610523f, +-0.95705903f, -0.95800257f, -0.95893586f, -0.95985889f, -0.96077162f, +-0.96167403f, -0.96256620f, -0.96344805f, -0.96431959f, -0.96518075f, +-0.96603161f, -0.96687216f, -0.96770233f, -0.96852213f, -0.96933156f, +-0.97013056f, -0.97091925f, -0.97169751f, -0.97246534f, -0.97322279f, +-0.97396982f, -0.97470641f, -0.97543252f, -0.97614825f, -0.97685349f, +-0.97754824f, -0.97823256f, -0.97890645f, -0.97956979f, -0.98022264f, +-0.98086500f, -0.98149687f, -0.98211825f, -0.98272908f, -0.98332942f, +-0.98391914f, -0.98449844f, -0.98506713f, -0.98562527f, -0.98617285f, +-0.98670989f, -0.98723638f, -0.98775226f, -0.98825759f, -0.98875231f, +-0.98923647f, -0.98971003f, -0.99017298f, -0.99062532f, -0.99106705f, +-0.99149817f, -0.99191868f, -0.99232858f, -0.99272782f, -0.99311644f, +-0.99349445f, -0.99386179f, -0.99421853f, -0.99456459f, -0.99489999f, +-0.99522477f, -0.99553883f, -0.99584228f, -0.99613506f, -0.99641716f, +-0.99668860f, -0.99694937f, -0.99719942f, -0.99743885f, -0.99766755f, +-0.99788558f, -0.99809295f, -0.99828959f, -0.99847561f, -0.99865085f, +-0.99881548f, -0.99896932f, -0.99911255f, -0.99924499f, -0.99936682f, +-0.99947786f, -0.99957830f, -0.99966794f, -0.99974692f, -0.99981517f, +-0.99987274f, -0.99991959f, -0.99995571f, -0.99998116f, -0.99999589f, +0.99999964f, 0.99997288f, 0.99990326f, 0.99979085f, 0.99963558f, +0.99943751f, 0.99919659f, 0.99891287f, 0.99858636f, 0.99821711f, +0.99780506f, 0.99735034f, 0.99685282f, 0.99631262f, 0.99572974f, +0.99510419f, 0.99443603f, 0.99372530f, 0.99297196f, 0.99217612f, +0.99133772f, 0.99045694f, 0.98953366f, 0.98856801f, 0.98756003f, +0.98650974f, 0.98541719f, 0.98428243f, 0.98310548f, 0.98188645f, +0.98062533f, 0.97932225f, 0.97797716f, 0.97659022f, 0.97516143f, +0.97369087f, 0.97217858f, 0.97062469f, 0.96902919f, 0.96739221f, +0.96571374f, 0.96399397f, 0.96223283f, 0.96043050f, 0.95858705f, +0.95670253f, 0.95477700f, 0.95281059f, 0.95080340f, 0.94875544f, +0.94666684f, 0.94453770f, 0.94236809f, 0.94015813f, 0.93790787f, +0.93561745f, 0.93328691f, 0.93091643f, 0.92850608f, 0.92605597f, +0.92356616f, 0.92103678f, 0.91846794f, 0.91585976f, 0.91321236f, +0.91052586f, 0.90780038f, 0.90503591f, 0.90223277f, 0.89939094f, +0.89651060f, 0.89359182f, 0.89063478f, 0.88763964f, 0.88460642f, +0.88153529f, 0.87842643f, 0.87527996f, 0.87209594f, 0.86887461f, +0.86561602f, 0.86232042f, 0.85898781f, 0.85561842f, 0.85221243f, +0.84876984f, 0.84529096f, 0.84177583f, 0.83822471f, 0.83463764f, +0.83101481f, 0.82735640f, 0.82366252f, 0.81993335f, 0.81616908f, +0.81236988f, 0.80853581f, 0.80466717f, 0.80076402f, 0.79682660f, +0.79285502f, 0.78884947f, 0.78481019f, 0.78073722f, 0.77663082f, +0.77249116f, 0.76831841f, 0.76411277f, 0.75987434f, 0.75560343f, +0.75130010f, 0.74696463f, 0.74259710f, 0.73819780f, 0.73376691f, +0.72930455f, 0.72481096f, 0.72028631f, 0.71573079f, 0.71114463f, +0.70652801f, 0.70188117f, 0.69720417f, 0.69249737f, 0.68776089f, +0.68299496f, 0.67819971f, 0.67337549f, 0.66852236f, 0.66364062f, +0.65873051f, 0.65379208f, 0.64882571f, 0.64383155f, 0.63880974f, +0.63376063f, 0.62868434f, 0.62358117f, 0.61845124f, 0.61329484f, +0.60811216f, 0.60290343f, 0.59766883f, 0.59240872f, 0.58712316f, +0.58181250f, 0.57647687f, 0.57111657f, 0.56573176f, 0.56032276f, +0.55488980f, 0.54943299f, 0.54395270f, 0.53844911f, 0.53292239f, +0.52737290f, 0.52180082f, 0.51620632f, 0.51058978f, 0.50495136f, +0.49929130f, 0.49360985f, 0.48790723f, 0.48218375f, 0.47643960f, +0.47067502f, 0.46489030f, 0.45908567f, 0.45326138f, 0.44741765f, +0.44155475f, 0.43567297f, 0.42977250f, 0.42385364f, 0.41791660f, +0.41196167f, 0.40598908f, 0.39999911f, 0.39399201f, 0.38796803f, +0.38192743f, 0.37587047f, 0.36979741f, 0.36370850f, 0.35760403f, +0.35148421f, 0.34534934f, 0.33919969f, 0.33303553f, 0.32685706f, +0.32066461f, 0.31445843f, 0.30823877f, 0.30200592f, 0.29576012f, +0.28950164f, 0.28323078f, 0.27694780f, 0.27065292f, 0.26434645f, +0.25802869f, 0.25169984f, 0.24536023f, 0.23901010f, 0.23264973f, +0.22627939f, 0.21989937f, 0.21350993f, 0.20711134f, 0.20070387f, +0.19428782f, 0.18786344f, 0.18143101f, 0.17499080f, 0.16854310f, +0.16208819f, 0.15562633f, 0.14915779f, 0.14268288f, 0.13620184f, +0.12971498f, 0.12322257f, 0.11672486f, 0.11022217f, 0.10371475f, +0.097202882f, 0.090686858f, 0.084166944f, 0.077643424f, 0.071116582f, +0.064586692f, 0.058054037f, 0.051518895f, 0.044981543f, 0.038442269f, +0.031901345f, 0.025359053f, 0.018815678f, 0.012271495f, 0.0057267868f, +-0.00081816671f, -0.0073630852f, -0.013907688f, -0.020451695f, -0.026994826f, +-0.033536803f, -0.040077340f, -0.046616159f, -0.053152986f, -0.059687532f, +-0.066219524f, -0.072748676f, -0.079274714f, -0.085797355f, -0.092316322f, +-0.098831341f, -0.10534211f, -0.11184838f, -0.11834986f, -0.12484626f, +-0.13133731f, -0.13782275f, -0.14430228f, -0.15077563f, -0.15724251f, +-0.16370267f, -0.17015581f, -0.17660165f, -0.18303993f, -0.18947038f, +-0.19589271f, -0.20230664f, -0.20871192f, -0.21510825f, -0.22149536f, +-0.22787298f, -0.23424086f, -0.24059868f, -0.24694622f, -0.25328314f, +-0.25960925f, -0.26592422f, -0.27222782f, -0.27851975f, -0.28479972f, +-0.29106751f, -0.29732284f, -0.30356544f, -0.30979502f, -0.31601134f, +-0.32221413f, -0.32840309f, -0.33457801f, -0.34073856f, -0.34688455f, +-0.35301566f, -0.35913166f, -0.36523229f, -0.37131724f, -0.37738630f, +-0.38343921f, -0.38947567f, -0.39549544f, -0.40149832f, -0.40748394f, +-0.41345215f, -0.41940263f, -0.42533514f, -0.43124944f, -0.43714526f, +-0.44302234f, -0.44888046f, -0.45471936f, -0.46053877f, -0.46633846f, +-0.47211814f, -0.47787762f, -0.48361665f, -0.48933494f, -0.49503228f, +-0.50070840f, -0.50636309f, -0.51199609f, -0.51760709f, -0.52319598f, +-0.52876246f, -0.53430629f, -0.53982723f, -0.54532504f, -0.55079949f, +-0.55625033f, -0.56167740f, -0.56708032f, -0.57245898f, -0.57781315f, +-0.58314258f, -0.58844697f, -0.59372622f, -0.59897995f, -0.60420811f, +-0.60941035f, -0.61458647f, -0.61973625f, -0.62485951f, -0.62995601f, +-0.63502556f, -0.64006782f, -0.64508271f, -0.65007001f, -0.65502942f, +-0.65996075f, -0.66486382f, -0.66973841f, -0.67458433f, -0.67940134f, +-0.68418926f, -0.68894786f, -0.69367695f, -0.69837630f, -0.70304573f, +-0.70768511f, -0.71229410f, -0.71687263f, -0.72142041f, -0.72593731f, +-0.73042315f, -0.73487765f, -0.73930067f, -0.74369204f, -0.74805158f, +-0.75237900f, -0.75667429f, -0.76093709f, -0.76516730f, -0.76936477f, +-0.77352923f, -0.77766061f, -0.78175867f, -0.78582323f, -0.78985411f, +-0.79385114f, -0.79781419f, -0.80174309f, -0.80563760f, -0.80949765f, +-0.81332302f, -0.81711352f, -0.82086903f, -0.82458937f, -0.82827437f, +-0.83192390f, -0.83553779f, -0.83911592f, -0.84265804f, -0.84616417f, +-0.84963393f, -0.85306740f, -0.85646427f, -0.85982448f, -0.86314780f, +-0.86643422f, -0.86968350f, -0.87289548f, -0.87607014f, -0.87920725f, +-0.88230664f, -0.88536829f, -0.88839203f, -0.89137769f, -0.89432514f, +-0.89723432f, -0.90010506f, -0.90293723f, -0.90573072f, -0.90848541f, +-0.91120118f, -0.91387796f, -0.91651553f, -0.91911387f, -0.92167282f, +-0.92419231f, -0.92667222f, -0.92911243f, -0.93151283f, -0.93387336f, +-0.93619382f, -0.93847424f, -0.94071442f, -0.94291431f, -0.94507378f, +-0.94719279f, -0.94927126f, -0.95130903f, -0.95330608f, -0.95526224f, +-0.95717752f, -0.95905179f, -0.96088499f, -0.96267700f, -0.96442777f, +-0.96613729f, -0.96780539f, -0.96943200f, -0.97101706f, -0.97256058f, +-0.97406244f, -0.97552258f, -0.97694093f, -0.97831738f, -0.97965199f, +-0.98094457f, -0.98219514f, -0.98340368f, -0.98457009f, -0.98569429f, +-0.98677629f, -0.98781598f, -0.98881340f, -0.98976845f, -0.99068111f, +-0.99155134f, -0.99237907f, -0.99316430f, -0.99390697f, -0.99460709f, +-0.99526459f, -0.99587947f, -0.99645168f, -0.99698120f, -0.99746799f, +-0.99791211f, -0.99831343f, -0.99867201f, -0.99898779f, -0.99926084f, +-0.99949104f, -0.99967843f, -0.99982297f, -0.99992472f, -0.99998361f, +0.99999869f, 0.99989158f, 0.99961317f, 0.99916345f, 0.99854255f, +0.99775058f, 0.99678761f, 0.99565387f, 0.99434954f, 0.99287480f, +0.99122995f, 0.98941529f, 0.98743105f, 0.98527765f, 0.98295540f, +0.98046476f, 0.97780609f, 0.97497988f, 0.97198665f, 0.96882683f, +0.96550101f, 0.96200979f, 0.95835376f, 0.95453346f, 0.95054960f, +0.94640291f, 0.94209403f, 0.93762374f, 0.93299282f, 0.92820197f, +0.92325211f, 0.91814411f, 0.91287869f, 0.90745693f, 0.90187967f, +0.89614785f, 0.89026248f, 0.88422459f, 0.87803519f, 0.87169534f, +0.86520612f, 0.85856867f, 0.85178405f, 0.84485358f, 0.83777827f, +0.83055943f, 0.82319832f, 0.81569612f, 0.80805415f, 0.80027372f, +0.79235619f, 0.78430289f, 0.77611518f, 0.76779449f, 0.75934225f, +0.75075996f, 0.74204898f, 0.73321080f, 0.72424710f, 0.71515924f, +0.70594883f, 0.69661748f, 0.68716675f, 0.67759830f, 0.66791373f, +0.65811473f, 0.64820296f, 0.63818014f, 0.62804794f, 0.61780810f, +0.60746247f, 0.59701276f, 0.58646071f, 0.57580817f, 0.56505698f, +0.55420899f, 0.54326600f, 0.53222996f, 0.52110273f, 0.50988621f, +0.49858227f, 0.48719296f, 0.47572014f, 0.46416581f, 0.45253196f, +0.44082057f, 0.42903364f, 0.41717321f, 0.40524128f, 0.39323992f, +0.38117120f, 0.36903715f, 0.35683987f, 0.34458145f, 0.33226398f, +0.31988961f, 0.30746040f, 0.29497850f, 0.28244606f, 0.26986524f, +0.25723818f, 0.24456702f, 0.23185398f, 0.21910121f, 0.20631088f, +0.19348522f, 0.18062639f, 0.16773662f, 0.15481812f, 0.14187308f, +0.12890373f, 0.11591230f, 0.10290100f, 0.089872077f, 0.076827750f, +0.063770257f, 0.050701842f, 0.037624735f, 0.024541186f, 0.011453429f, +-0.0016362892f, -0.014725727f, -0.027812643f, -0.040894791f, -0.053969935f, +-0.067035832f, -0.080090240f, -0.093130924f, -0.10615565f, -0.11916219f, +-0.13214831f, -0.14511178f, -0.15805040f, -0.17096193f, -0.18384418f, +-0.19669491f, -0.20951195f, -0.22229309f, -0.23503613f, -0.24773891f, +-0.26039925f, -0.27301496f, -0.28558388f, -0.29810387f, -0.31057280f, +-0.32298848f, -0.33534884f, -0.34765175f, -0.35989508f, -0.37207675f, +-0.38419467f, -0.39624676f, -0.40823093f, -0.42014518f, -0.43198743f, +-0.44375566f, -0.45544785f, -0.46706200f, -0.47859612f, -0.49004826f, +-0.50141639f, -0.51269865f, -0.52389306f, -0.53499764f, -0.54601061f, +-0.55693001f, -0.56775403f, -0.57848072f, -0.58910829f, -0.59963489f, +-0.61005878f, -0.62037814f, -0.63059121f, -0.64069623f, -0.65069145f, +-0.66057515f, -0.67034572f, -0.68000144f, -0.68954057f, -0.69896162f, +-0.70826286f, -0.71744281f, -0.72649974f, -0.73543227f, -0.74423873f, +-0.75291771f, -0.76146764f, -0.76988715f, -0.77817470f, -0.78632891f, +-0.79434842f, -0.80223179f, -0.80997771f, -0.81758487f, -0.82505190f, +-0.83237761f, -0.83956063f, -0.84659988f, -0.85349399f, -0.86024189f, +-0.86684239f, -0.87329435f, -0.87959671f, -0.88574833f, -0.89174819f, +-0.89759529f, -0.90328854f, -0.90882701f, -0.91420978f, -0.91943592f, +-0.92450452f, -0.92941469f, -0.93416560f, -0.93875647f, -0.94318646f, +-0.94745487f, -0.95156091f, -0.95550388f, -0.95928317f, -0.96289814f, +-0.96634805f, -0.96963239f, -0.97275060f, -0.97570217f, -0.97848648f, +-0.98110318f, -0.98355180f, -0.98583186f, -0.98794299f, -0.98988485f, +-0.99165714f, -0.99325943f, -0.99469161f, -0.99595332f, -0.99704438f, +-0.99796462f, -0.99871385f, -0.99929196f, -0.99969882f, -0.99993443f, +0.99999464f, 0.99956632f, 0.99845290f, 0.99665523f, 0.99417448f, +0.99101239f, 0.98717111f, 0.98265326f, 0.97746199f, 0.97160077f, +0.96507365f, 0.95788515f, 0.95004016f, 0.94154406f, 0.93240267f, +0.92262226f, 0.91220951f, 0.90117162f, 0.88951606f, 0.87725091f, +0.86438453f, 0.85092574f, 0.83688372f, 0.82226819f, 0.80708915f, +0.79135692f, 0.77508235f, 0.75827658f, 0.74095112f, 0.72311783f, +0.70478898f, 0.68597710f, 0.66669506f, 0.64695615f, 0.62677377f, +0.60616189f, 0.58513457f, 0.56370622f, 0.54189157f, 0.51970547f, +0.49716324f, 0.47428027f, 0.45107225f, 0.42755505f, 0.40374488f, +0.37965798f, 0.35531086f, 0.33072025f, 0.30590299f, 0.28087607f, +0.25565663f, 0.23026201f, 0.20470956f, 0.17901683f, 0.15320139f, +0.12728097f, 0.10127331f, 0.075196236f, 0.049067631f, 0.022905400f, +-0.0032725304f, -0.029448219f, -0.055603724f, -0.081721120f, -0.10778251f, +-0.13377003f, -0.15966587f, -0.18545228f, -0.21111161f, -0.23662624f, +-0.26197869f, -0.28715160f, -0.31212771f, -0.33688989f, -0.36142120f, +-0.38570482f, -0.40972409f, -0.43346253f, -0.45690393f, -0.48003218f, +-0.50283146f, -0.52528608f, -0.54738069f, -0.56910020f, -0.59042966f, +-0.61135447f, -0.63186026f, -0.65193301f, -0.67155898f, -0.69072473f, +-0.70941705f, -0.72762316f, -0.74533063f, -0.76252723f, -0.77920127f, +-0.79534131f, -0.81093621f, -0.82597536f, -0.84044844f, -0.85434550f, +-0.86765707f, -0.88037395f, -0.89248747f, -0.90398932f, -0.91487163f, +-0.92512697f, -0.93474823f, -0.94372886f, -0.95206273f, -0.95974404f, +-0.96676767f, -0.97312868f, -0.97882277f, -0.98384601f, -0.98819500f, +-0.99186671f, -0.99485862f, -0.99716878f, -0.99879545f, -0.99973762f, +}; +#endif + +static const CELTMode mode48000_960_120 = { +48000, /* Fs */ +120, /* overlap */ +21, /* nbEBands */ +21, /* effEBands */ +{0.85000610f, 0.0000000f, 1.0000000f, 1.0000000f, }, /* preemph */ +eband5ms, /* eBands */ +3, /* maxLM */ +8, /* nbShortMdcts */ +120, /* shortMdctSize */ +11, /* nbAllocVectors */ +band_allocation, /* allocVectors */ +logN400, /* logN */ +window120, /* window */ +{1920, 3, {&fft_state48000_960_0, &fft_state48000_960_1, &fft_state48000_960_2, &fft_state48000_960_3, }, mdct_twiddles960}, /* mdct */ +{392, cache_index50, cache_bits50, cache_caps50}, /* cache */ +}; + +/* List of all the available modes */ +#define TOTAL_MODES 1 +static const CELTMode * const static_mode_list[TOTAL_MODES] = { +&mode48000_960_120, +}; diff --git a/components/opus/libopus/celt/static_modes_float_arm_ne10.h b/components/opus/libopus/celt/static_modes_float_arm_ne10.h new file mode 100644 index 0000000..66e1abb --- /dev/null +++ b/components/opus/libopus/celt/static_modes_float_arm_ne10.h @@ -0,0 +1,404 @@ +/* The contents of this file was automatically generated by + * dump_mode_arm_ne10.c with arguments: 48000 960 + * It contains static definitions for some pre-defined modes. */ +#include + +#ifndef NE10_FFT_PARAMS48000_960 +#define NE10_FFT_PARAMS48000_960 +static const ne10_int32_t ne10_factors_480[64] = { +4, 40, 4, 30, 2, 15, 5, 3, 3, 1, 1, 0, 0, 0, 0, +0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, +0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, +0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, +0, 0, 0, 0, }; +static const ne10_int32_t ne10_factors_240[64] = { +3, 20, 4, 15, 5, 3, 3, 1, 1, 0, 0, 0, 0, 0, 0, +0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, +0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, +0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, +0, 0, 0, 0, }; +static const ne10_int32_t ne10_factors_120[64] = { +3, 10, 2, 15, 5, 3, 3, 1, 1, 0, 0, 0, 0, 0, 0, +0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, +0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, +0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, +0, 0, 0, 0, }; +static const ne10_int32_t ne10_factors_60[64] = { +2, 5, 5, 3, 3, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, +0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, +0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, +0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, +0, 0, 0, 0, }; +static const ne10_fft_cpx_float32_t ne10_twiddles_480[480] = { +{1.0000000f,0.0000000f}, {1.0000000f,-0.0000000f}, {1.0000000f,-0.0000000f}, +{1.0000000f,-0.0000000f}, {0.91354543f,-0.40673664f}, {0.66913056f,-0.74314487f}, +{1.0000000f,-0.0000000f}, {0.66913056f,-0.74314487f}, {-0.10452851f,-0.99452192f}, +{1.0000000f,-0.0000000f}, {0.30901697f,-0.95105654f}, {-0.80901700f,-0.58778518f}, +{1.0000000f,-0.0000000f}, {-0.10452851f,-0.99452192f}, {-0.97814757f,0.20791179f}, +{1.0000000f,-0.0000000f}, {0.97814763f,-0.20791170f}, {0.91354543f,-0.40673664f}, +{0.80901700f,-0.58778524f}, {0.66913056f,-0.74314487f}, {0.49999997f,-0.86602545f}, +{0.30901697f,-0.95105654f}, {0.10452842f,-0.99452192f}, {-0.10452851f,-0.99452192f}, +{-0.30901703f,-0.95105648f}, {-0.50000006f,-0.86602533f}, {-0.66913068f,-0.74314475f}, +{-0.80901700f,-0.58778518f}, {-0.91354549f,-0.40673658f}, {-0.97814763f,-0.20791161f}, +{1.0000000f,-0.0000000f}, {0.99862951f,-0.052335959f}, {0.99452192f,-0.10452846f}, +{0.98768836f,-0.15643448f}, {0.97814763f,-0.20791170f}, {0.96592581f,-0.25881904f}, +{0.95105648f,-0.30901700f}, {0.93358040f,-0.35836795f}, {0.91354543f,-0.40673664f}, +{0.89100653f,-0.45399052f}, {0.86602545f,-0.50000000f}, {0.83867055f,-0.54463905f}, +{0.80901700f,-0.58778524f}, {0.77714598f,-0.62932038f}, {0.74314475f,-0.66913062f}, +{0.70710677f,-0.70710683f}, {0.66913056f,-0.74314487f}, {0.62932038f,-0.77714598f}, +{0.58778524f,-0.80901700f}, {0.54463899f,-0.83867055f}, {0.49999997f,-0.86602545f}, +{0.45399052f,-0.89100653f}, {0.40673661f,-0.91354549f}, {0.35836786f,-0.93358046f}, +{0.30901697f,-0.95105654f}, {0.25881907f,-0.96592581f}, {0.20791166f,-0.97814763f}, +{0.15643437f,-0.98768836f}, {0.10452842f,-0.99452192f}, {0.052335974f,-0.99862951f}, +{1.0000000f,-0.0000000f}, {0.99452192f,-0.10452846f}, {0.97814763f,-0.20791170f}, +{0.95105648f,-0.30901700f}, {0.91354543f,-0.40673664f}, {0.86602545f,-0.50000000f}, +{0.80901700f,-0.58778524f}, {0.74314475f,-0.66913062f}, {0.66913056f,-0.74314487f}, +{0.58778524f,-0.80901700f}, {0.49999997f,-0.86602545f}, {0.40673661f,-0.91354549f}, +{0.30901697f,-0.95105654f}, {0.20791166f,-0.97814763f}, {0.10452842f,-0.99452192f}, +{-4.3711388e-08f,-1.0000000f}, {-0.10452851f,-0.99452192f}, {-0.20791174f,-0.97814757f}, +{-0.30901703f,-0.95105648f}, {-0.40673670f,-0.91354543f}, {-0.50000006f,-0.86602533f}, +{-0.58778518f,-0.80901700f}, {-0.66913068f,-0.74314475f}, {-0.74314493f,-0.66913044f}, +{-0.80901700f,-0.58778518f}, {-0.86602539f,-0.50000006f}, {-0.91354549f,-0.40673658f}, +{-0.95105654f,-0.30901679f}, {-0.97814763f,-0.20791161f}, {-0.99452192f,-0.10452849f}, +{1.0000000f,-0.0000000f}, {0.98768836f,-0.15643448f}, {0.95105648f,-0.30901700f}, +{0.89100653f,-0.45399052f}, {0.80901700f,-0.58778524f}, {0.70710677f,-0.70710683f}, +{0.58778524f,-0.80901700f}, {0.45399052f,-0.89100653f}, {0.30901697f,-0.95105654f}, +{0.15643437f,-0.98768836f}, {-4.3711388e-08f,-1.0000000f}, {-0.15643445f,-0.98768836f}, +{-0.30901703f,-0.95105648f}, {-0.45399061f,-0.89100647f}, {-0.58778518f,-0.80901700f}, +{-0.70710677f,-0.70710677f}, {-0.80901700f,-0.58778518f}, {-0.89100659f,-0.45399037f}, +{-0.95105654f,-0.30901679f}, {-0.98768836f,-0.15643445f}, {-1.0000000f,8.7422777e-08f}, +{-0.98768830f,0.15643461f}, {-0.95105654f,0.30901697f}, {-0.89100653f,0.45399055f}, +{-0.80901694f,0.58778536f}, {-0.70710665f,0.70710689f}, {-0.58778507f,0.80901712f}, +{-0.45399022f,0.89100665f}, {-0.30901709f,0.95105648f}, {-0.15643452f,0.98768830f}, +{1.0000000f,-0.0000000f}, {0.99991435f,-0.013089596f}, {0.99965733f,-0.026176950f}, +{0.99922901f,-0.039259817f}, {0.99862951f,-0.052335959f}, {0.99785894f,-0.065403134f}, +{0.99691731f,-0.078459099f}, {0.99580491f,-0.091501623f}, {0.99452192f,-0.10452846f}, +{0.99306846f,-0.11753740f}, {0.99144489f,-0.13052620f}, {0.98965138f,-0.14349262f}, +{0.98768836f,-0.15643448f}, {0.98555607f,-0.16934951f}, {0.98325491f,-0.18223552f}, +{0.98078525f,-0.19509032f}, {0.97814763f,-0.20791170f}, {0.97534233f,-0.22069745f}, +{0.97236991f,-0.23344538f}, {0.96923089f,-0.24615330f}, {0.96592581f,-0.25881904f}, +{0.96245521f,-0.27144045f}, {0.95881975f,-0.28401536f}, {0.95501995f,-0.29654160f}, +{0.95105648f,-0.30901700f}, {0.94693011f,-0.32143945f}, {0.94264150f,-0.33380687f}, +{0.93819129f,-0.34611708f}, {0.93358040f,-0.35836795f}, {0.92880952f,-0.37055743f}, +{0.92387956f,-0.38268346f}, {0.91879117f,-0.39474389f}, {0.91354543f,-0.40673664f}, +{0.90814316f,-0.41865975f}, {0.90258527f,-0.43051112f}, {0.89687270f,-0.44228873f}, +{0.89100653f,-0.45399052f}, {0.88498765f,-0.46561453f}, {0.87881708f,-0.47715878f}, +{0.87249601f,-0.48862126f}, {0.86602545f,-0.50000000f}, {0.85940641f,-0.51129311f}, +{0.85264015f,-0.52249855f}, {0.84572786f,-0.53361452f}, {0.83867055f,-0.54463905f}, +{0.83146960f,-0.55557024f}, {0.82412618f,-0.56640625f}, {0.81664151f,-0.57714522f}, +{0.80901700f,-0.58778524f}, {0.80125380f,-0.59832460f}, {0.79335332f,-0.60876143f}, +{0.78531694f,-0.61909395f}, {0.77714598f,-0.62932038f}, {0.76884180f,-0.63943899f}, +{0.76040596f,-0.64944810f}, {0.75183982f,-0.65934587f}, {0.74314475f,-0.66913062f}, +{0.73432249f,-0.67880076f}, {0.72537434f,-0.68835455f}, {0.71630192f,-0.69779050f}, +{0.70710677f,-0.70710683f}, {0.69779044f,-0.71630198f}, {0.68835455f,-0.72537440f}, +{0.67880070f,-0.73432255f}, {0.66913056f,-0.74314487f}, {0.65934581f,-0.75183982f}, +{0.64944804f,-0.76040596f}, {0.63943899f,-0.76884186f}, {0.62932038f,-0.77714598f}, +{0.61909395f,-0.78531694f}, {0.60876137f,-0.79335338f}, {0.59832460f,-0.80125386f}, +{0.58778524f,-0.80901700f}, {0.57714516f,-0.81664151f}, {0.56640625f,-0.82412618f}, +{0.55557019f,-0.83146960f}, {0.54463899f,-0.83867055f}, {0.53361452f,-0.84572786f}, +{0.52249849f,-0.85264015f}, {0.51129311f,-0.85940641f}, {0.49999997f,-0.86602545f}, +{0.48862118f,-0.87249601f}, {0.47715876f,-0.87881708f}, {0.46561447f,-0.88498765f}, +{0.45399052f,-0.89100653f}, {0.44228867f,-0.89687276f}, {0.43051103f,-0.90258533f}, +{0.41865975f,-0.90814316f}, {0.40673661f,-0.91354549f}, {0.39474380f,-0.91879129f}, +{0.38268343f,-0.92387956f}, {0.37055740f,-0.92880958f}, {0.35836786f,-0.93358046f}, +{0.34611705f,-0.93819135f}, {0.33380681f,-0.94264150f}, {0.32143947f,-0.94693011f}, +{0.30901697f,-0.95105654f}, {0.29654151f,-0.95501995f}, {0.28401533f,-0.95881975f}, +{0.27144039f,-0.96245527f}, {0.25881907f,-0.96592581f}, {0.24615327f,-0.96923089f}, +{0.23344530f,-0.97236991f}, {0.22069745f,-0.97534233f}, {0.20791166f,-0.97814763f}, +{0.19509023f,-0.98078531f}, {0.18223552f,-0.98325491f}, {0.16934945f,-0.98555607f}, +{0.15643437f,-0.98768836f}, {0.14349259f,-0.98965138f}, {0.13052613f,-0.99144489f}, +{0.11753740f,-0.99306846f}, {0.10452842f,-0.99452192f}, {0.091501534f,-0.99580491f}, +{0.078459084f,-0.99691731f}, {0.065403074f,-0.99785894f}, {0.052335974f,-0.99862951f}, +{0.039259788f,-0.99922901f}, {0.026176875f,-0.99965733f}, {0.013089597f,-0.99991435f}, +{1.0000000f,-0.0000000f}, {0.99965733f,-0.026176950f}, {0.99862951f,-0.052335959f}, +{0.99691731f,-0.078459099f}, {0.99452192f,-0.10452846f}, {0.99144489f,-0.13052620f}, +{0.98768836f,-0.15643448f}, {0.98325491f,-0.18223552f}, {0.97814763f,-0.20791170f}, +{0.97236991f,-0.23344538f}, {0.96592581f,-0.25881904f}, {0.95881975f,-0.28401536f}, +{0.95105648f,-0.30901700f}, {0.94264150f,-0.33380687f}, {0.93358040f,-0.35836795f}, +{0.92387956f,-0.38268346f}, {0.91354543f,-0.40673664f}, {0.90258527f,-0.43051112f}, +{0.89100653f,-0.45399052f}, {0.87881708f,-0.47715878f}, {0.86602545f,-0.50000000f}, +{0.85264015f,-0.52249855f}, {0.83867055f,-0.54463905f}, {0.82412618f,-0.56640625f}, +{0.80901700f,-0.58778524f}, {0.79335332f,-0.60876143f}, {0.77714598f,-0.62932038f}, +{0.76040596f,-0.64944810f}, {0.74314475f,-0.66913062f}, {0.72537434f,-0.68835455f}, +{0.70710677f,-0.70710683f}, {0.68835455f,-0.72537440f}, {0.66913056f,-0.74314487f}, +{0.64944804f,-0.76040596f}, {0.62932038f,-0.77714598f}, {0.60876137f,-0.79335338f}, +{0.58778524f,-0.80901700f}, {0.56640625f,-0.82412618f}, {0.54463899f,-0.83867055f}, +{0.52249849f,-0.85264015f}, {0.49999997f,-0.86602545f}, {0.47715876f,-0.87881708f}, +{0.45399052f,-0.89100653f}, {0.43051103f,-0.90258533f}, {0.40673661f,-0.91354549f}, +{0.38268343f,-0.92387956f}, {0.35836786f,-0.93358046f}, {0.33380681f,-0.94264150f}, +{0.30901697f,-0.95105654f}, {0.28401533f,-0.95881975f}, {0.25881907f,-0.96592581f}, +{0.23344530f,-0.97236991f}, {0.20791166f,-0.97814763f}, {0.18223552f,-0.98325491f}, +{0.15643437f,-0.98768836f}, {0.13052613f,-0.99144489f}, {0.10452842f,-0.99452192f}, +{0.078459084f,-0.99691731f}, {0.052335974f,-0.99862951f}, {0.026176875f,-0.99965733f}, +{-4.3711388e-08f,-1.0000000f}, {-0.026176963f,-0.99965733f}, {-0.052336060f,-0.99862951f}, +{-0.078459173f,-0.99691731f}, {-0.10452851f,-0.99452192f}, {-0.13052621f,-0.99144489f}, +{-0.15643445f,-0.98768836f}, {-0.18223560f,-0.98325491f}, {-0.20791174f,-0.97814757f}, +{-0.23344538f,-0.97236991f}, {-0.25881916f,-0.96592581f}, {-0.28401542f,-0.95881969f}, +{-0.30901703f,-0.95105648f}, {-0.33380687f,-0.94264150f}, {-0.35836795f,-0.93358040f}, +{-0.38268352f,-0.92387950f}, {-0.40673670f,-0.91354543f}, {-0.43051112f,-0.90258527f}, +{-0.45399061f,-0.89100647f}, {-0.47715873f,-0.87881708f}, {-0.50000006f,-0.86602533f}, +{-0.52249867f,-0.85264009f}, {-0.54463905f,-0.83867055f}, {-0.56640631f,-0.82412612f}, +{-0.58778518f,-0.80901700f}, {-0.60876143f,-0.79335332f}, {-0.62932050f,-0.77714586f}, +{-0.64944804f,-0.76040596f}, {-0.66913068f,-0.74314475f}, {-0.68835467f,-0.72537428f}, +{-0.70710677f,-0.70710677f}, {-0.72537446f,-0.68835449f}, {-0.74314493f,-0.66913044f}, +{-0.76040596f,-0.64944804f}, {-0.77714604f,-0.62932026f}, {-0.79335332f,-0.60876143f}, +{-0.80901700f,-0.58778518f}, {-0.82412624f,-0.56640613f}, {-0.83867055f,-0.54463899f}, +{-0.85264021f,-0.52249849f}, {-0.86602539f,-0.50000006f}, {-0.87881714f,-0.47715873f}, +{-0.89100659f,-0.45399037f}, {-0.90258527f,-0.43051112f}, {-0.91354549f,-0.40673658f}, +{-0.92387956f,-0.38268328f}, {-0.93358040f,-0.35836792f}, {-0.94264150f,-0.33380675f}, +{-0.95105654f,-0.30901679f}, {-0.95881975f,-0.28401530f}, {-0.96592587f,-0.25881892f}, +{-0.97236991f,-0.23344538f}, {-0.97814763f,-0.20791161f}, {-0.98325491f,-0.18223536f}, +{-0.98768836f,-0.15643445f}, {-0.99144489f,-0.13052608f}, {-0.99452192f,-0.10452849f}, +{-0.99691737f,-0.078459039f}, {-0.99862957f,-0.052335810f}, {-0.99965733f,-0.026176952f}, +{1.0000000f,-0.0000000f}, {0.99922901f,-0.039259817f}, {0.99691731f,-0.078459099f}, +{0.99306846f,-0.11753740f}, {0.98768836f,-0.15643448f}, {0.98078525f,-0.19509032f}, +{0.97236991f,-0.23344538f}, {0.96245521f,-0.27144045f}, {0.95105648f,-0.30901700f}, +{0.93819129f,-0.34611708f}, {0.92387956f,-0.38268346f}, {0.90814316f,-0.41865975f}, +{0.89100653f,-0.45399052f}, {0.87249601f,-0.48862126f}, {0.85264015f,-0.52249855f}, +{0.83146960f,-0.55557024f}, {0.80901700f,-0.58778524f}, {0.78531694f,-0.61909395f}, +{0.76040596f,-0.64944810f}, {0.73432249f,-0.67880076f}, {0.70710677f,-0.70710683f}, +{0.67880070f,-0.73432255f}, {0.64944804f,-0.76040596f}, {0.61909395f,-0.78531694f}, +{0.58778524f,-0.80901700f}, {0.55557019f,-0.83146960f}, {0.52249849f,-0.85264015f}, +{0.48862118f,-0.87249601f}, {0.45399052f,-0.89100653f}, {0.41865975f,-0.90814316f}, +{0.38268343f,-0.92387956f}, {0.34611705f,-0.93819135f}, {0.30901697f,-0.95105654f}, +{0.27144039f,-0.96245527f}, {0.23344530f,-0.97236991f}, {0.19509023f,-0.98078531f}, +{0.15643437f,-0.98768836f}, {0.11753740f,-0.99306846f}, {0.078459084f,-0.99691731f}, +{0.039259788f,-0.99922901f}, {-4.3711388e-08f,-1.0000000f}, {-0.039259877f,-0.99922901f}, +{-0.078459173f,-0.99691731f}, {-0.11753749f,-0.99306846f}, {-0.15643445f,-0.98768836f}, +{-0.19509032f,-0.98078525f}, {-0.23344538f,-0.97236991f}, {-0.27144048f,-0.96245521f}, +{-0.30901703f,-0.95105648f}, {-0.34611711f,-0.93819129f}, {-0.38268352f,-0.92387950f}, +{-0.41865984f,-0.90814310f}, {-0.45399061f,-0.89100647f}, {-0.48862135f,-0.87249595f}, +{-0.52249867f,-0.85264009f}, {-0.55557036f,-0.83146954f}, {-0.58778518f,-0.80901700f}, +{-0.61909389f,-0.78531694f}, {-0.64944804f,-0.76040596f}, {-0.67880076f,-0.73432249f}, +{-0.70710677f,-0.70710677f}, {-0.73432249f,-0.67880070f}, {-0.76040596f,-0.64944804f}, +{-0.78531694f,-0.61909389f}, {-0.80901700f,-0.58778518f}, {-0.83146966f,-0.55557019f}, +{-0.85264021f,-0.52249849f}, {-0.87249607f,-0.48862115f}, {-0.89100659f,-0.45399037f}, +{-0.90814322f,-0.41865960f}, {-0.92387956f,-0.38268328f}, {-0.93819135f,-0.34611690f}, +{-0.95105654f,-0.30901679f}, {-0.96245521f,-0.27144048f}, {-0.97236991f,-0.23344538f}, +{-0.98078531f,-0.19509031f}, {-0.98768836f,-0.15643445f}, {-0.99306846f,-0.11753736f}, +{-0.99691737f,-0.078459039f}, {-0.99922901f,-0.039259743f}, {-1.0000000f,8.7422777e-08f}, +{-0.99922901f,0.039259918f}, {-0.99691731f,0.078459218f}, {-0.99306846f,0.11753753f}, +{-0.98768830f,0.15643461f}, {-0.98078525f,0.19509049f}, {-0.97236985f,0.23344554f}, +{-0.96245515f,0.27144065f}, {-0.95105654f,0.30901697f}, {-0.93819135f,0.34611705f}, +{-0.92387956f,0.38268346f}, {-0.90814316f,0.41865975f}, {-0.89100653f,0.45399055f}, +{-0.87249601f,0.48862129f}, {-0.85264015f,0.52249861f}, {-0.83146960f,0.55557030f}, +{-0.80901694f,0.58778536f}, {-0.78531688f,0.61909401f}, {-0.76040590f,0.64944816f}, +{-0.73432243f,0.67880082f}, {-0.70710665f,0.70710689f}, {-0.67880058f,0.73432261f}, +{-0.64944792f,0.76040608f}, {-0.61909378f,0.78531706f}, {-0.58778507f,0.80901712f}, +{-0.55557001f,0.83146977f}, {-0.52249837f,0.85264033f}, {-0.48862100f,0.87249613f}, +{-0.45399022f,0.89100665f}, {-0.41865945f,0.90814328f}, {-0.38268313f,0.92387968f}, +{-0.34611672f,0.93819147f}, {-0.30901709f,0.95105648f}, {-0.27144054f,0.96245521f}, +{-0.23344545f,0.97236991f}, {-0.19509038f,0.98078525f}, {-0.15643452f,0.98768830f}, +{-0.11753743f,0.99306846f}, {-0.078459114f,0.99691731f}, {-0.039259821f,0.99922901f}, +}; +static const ne10_fft_cpx_float32_t ne10_twiddles_240[240] = { +{1.0000000f,0.0000000f}, {1.0000000f,-0.0000000f}, {1.0000000f,-0.0000000f}, +{1.0000000f,-0.0000000f}, {0.91354543f,-0.40673664f}, {0.66913056f,-0.74314487f}, +{1.0000000f,-0.0000000f}, {0.66913056f,-0.74314487f}, {-0.10452851f,-0.99452192f}, +{1.0000000f,-0.0000000f}, {0.30901697f,-0.95105654f}, {-0.80901700f,-0.58778518f}, +{1.0000000f,-0.0000000f}, {-0.10452851f,-0.99452192f}, {-0.97814757f,0.20791179f}, +{1.0000000f,-0.0000000f}, {0.99452192f,-0.10452846f}, {0.97814763f,-0.20791170f}, +{0.95105648f,-0.30901700f}, {0.91354543f,-0.40673664f}, {0.86602545f,-0.50000000f}, +{0.80901700f,-0.58778524f}, {0.74314475f,-0.66913062f}, {0.66913056f,-0.74314487f}, +{0.58778524f,-0.80901700f}, {0.49999997f,-0.86602545f}, {0.40673661f,-0.91354549f}, +{0.30901697f,-0.95105654f}, {0.20791166f,-0.97814763f}, {0.10452842f,-0.99452192f}, +{1.0000000f,-0.0000000f}, {0.97814763f,-0.20791170f}, {0.91354543f,-0.40673664f}, +{0.80901700f,-0.58778524f}, {0.66913056f,-0.74314487f}, {0.49999997f,-0.86602545f}, +{0.30901697f,-0.95105654f}, {0.10452842f,-0.99452192f}, {-0.10452851f,-0.99452192f}, +{-0.30901703f,-0.95105648f}, {-0.50000006f,-0.86602533f}, {-0.66913068f,-0.74314475f}, +{-0.80901700f,-0.58778518f}, {-0.91354549f,-0.40673658f}, {-0.97814763f,-0.20791161f}, +{1.0000000f,-0.0000000f}, {0.95105648f,-0.30901700f}, {0.80901700f,-0.58778524f}, +{0.58778524f,-0.80901700f}, {0.30901697f,-0.95105654f}, {-4.3711388e-08f,-1.0000000f}, +{-0.30901703f,-0.95105648f}, {-0.58778518f,-0.80901700f}, {-0.80901700f,-0.58778518f}, +{-0.95105654f,-0.30901679f}, {-1.0000000f,8.7422777e-08f}, {-0.95105654f,0.30901697f}, +{-0.80901694f,0.58778536f}, {-0.58778507f,0.80901712f}, {-0.30901709f,0.95105648f}, +{1.0000000f,-0.0000000f}, {0.99965733f,-0.026176950f}, {0.99862951f,-0.052335959f}, +{0.99691731f,-0.078459099f}, {0.99452192f,-0.10452846f}, {0.99144489f,-0.13052620f}, +{0.98768836f,-0.15643448f}, {0.98325491f,-0.18223552f}, {0.97814763f,-0.20791170f}, +{0.97236991f,-0.23344538f}, {0.96592581f,-0.25881904f}, {0.95881975f,-0.28401536f}, +{0.95105648f,-0.30901700f}, {0.94264150f,-0.33380687f}, {0.93358040f,-0.35836795f}, +{0.92387956f,-0.38268346f}, {0.91354543f,-0.40673664f}, {0.90258527f,-0.43051112f}, +{0.89100653f,-0.45399052f}, {0.87881708f,-0.47715878f}, {0.86602545f,-0.50000000f}, +{0.85264015f,-0.52249855f}, {0.83867055f,-0.54463905f}, {0.82412618f,-0.56640625f}, +{0.80901700f,-0.58778524f}, {0.79335332f,-0.60876143f}, {0.77714598f,-0.62932038f}, +{0.76040596f,-0.64944810f}, {0.74314475f,-0.66913062f}, {0.72537434f,-0.68835455f}, +{0.70710677f,-0.70710683f}, {0.68835455f,-0.72537440f}, {0.66913056f,-0.74314487f}, +{0.64944804f,-0.76040596f}, {0.62932038f,-0.77714598f}, {0.60876137f,-0.79335338f}, +{0.58778524f,-0.80901700f}, {0.56640625f,-0.82412618f}, {0.54463899f,-0.83867055f}, +{0.52249849f,-0.85264015f}, {0.49999997f,-0.86602545f}, {0.47715876f,-0.87881708f}, +{0.45399052f,-0.89100653f}, {0.43051103f,-0.90258533f}, {0.40673661f,-0.91354549f}, +{0.38268343f,-0.92387956f}, {0.35836786f,-0.93358046f}, {0.33380681f,-0.94264150f}, +{0.30901697f,-0.95105654f}, {0.28401533f,-0.95881975f}, {0.25881907f,-0.96592581f}, +{0.23344530f,-0.97236991f}, {0.20791166f,-0.97814763f}, {0.18223552f,-0.98325491f}, +{0.15643437f,-0.98768836f}, {0.13052613f,-0.99144489f}, {0.10452842f,-0.99452192f}, +{0.078459084f,-0.99691731f}, {0.052335974f,-0.99862951f}, {0.026176875f,-0.99965733f}, +{1.0000000f,-0.0000000f}, {0.99862951f,-0.052335959f}, {0.99452192f,-0.10452846f}, +{0.98768836f,-0.15643448f}, {0.97814763f,-0.20791170f}, {0.96592581f,-0.25881904f}, +{0.95105648f,-0.30901700f}, {0.93358040f,-0.35836795f}, {0.91354543f,-0.40673664f}, +{0.89100653f,-0.45399052f}, {0.86602545f,-0.50000000f}, {0.83867055f,-0.54463905f}, +{0.80901700f,-0.58778524f}, {0.77714598f,-0.62932038f}, {0.74314475f,-0.66913062f}, +{0.70710677f,-0.70710683f}, {0.66913056f,-0.74314487f}, {0.62932038f,-0.77714598f}, +{0.58778524f,-0.80901700f}, {0.54463899f,-0.83867055f}, {0.49999997f,-0.86602545f}, +{0.45399052f,-0.89100653f}, {0.40673661f,-0.91354549f}, {0.35836786f,-0.93358046f}, +{0.30901697f,-0.95105654f}, {0.25881907f,-0.96592581f}, {0.20791166f,-0.97814763f}, +{0.15643437f,-0.98768836f}, {0.10452842f,-0.99452192f}, {0.052335974f,-0.99862951f}, +{-4.3711388e-08f,-1.0000000f}, {-0.052336060f,-0.99862951f}, {-0.10452851f,-0.99452192f}, +{-0.15643445f,-0.98768836f}, {-0.20791174f,-0.97814757f}, {-0.25881916f,-0.96592581f}, +{-0.30901703f,-0.95105648f}, {-0.35836795f,-0.93358040f}, {-0.40673670f,-0.91354543f}, +{-0.45399061f,-0.89100647f}, {-0.50000006f,-0.86602533f}, {-0.54463905f,-0.83867055f}, +{-0.58778518f,-0.80901700f}, {-0.62932050f,-0.77714586f}, {-0.66913068f,-0.74314475f}, +{-0.70710677f,-0.70710677f}, {-0.74314493f,-0.66913044f}, {-0.77714604f,-0.62932026f}, +{-0.80901700f,-0.58778518f}, {-0.83867055f,-0.54463899f}, {-0.86602539f,-0.50000006f}, +{-0.89100659f,-0.45399037f}, {-0.91354549f,-0.40673658f}, {-0.93358040f,-0.35836792f}, +{-0.95105654f,-0.30901679f}, {-0.96592587f,-0.25881892f}, {-0.97814763f,-0.20791161f}, +{-0.98768836f,-0.15643445f}, {-0.99452192f,-0.10452849f}, {-0.99862957f,-0.052335810f}, +{1.0000000f,-0.0000000f}, {0.99691731f,-0.078459099f}, {0.98768836f,-0.15643448f}, +{0.97236991f,-0.23344538f}, {0.95105648f,-0.30901700f}, {0.92387956f,-0.38268346f}, +{0.89100653f,-0.45399052f}, {0.85264015f,-0.52249855f}, {0.80901700f,-0.58778524f}, +{0.76040596f,-0.64944810f}, {0.70710677f,-0.70710683f}, {0.64944804f,-0.76040596f}, +{0.58778524f,-0.80901700f}, {0.52249849f,-0.85264015f}, {0.45399052f,-0.89100653f}, +{0.38268343f,-0.92387956f}, {0.30901697f,-0.95105654f}, {0.23344530f,-0.97236991f}, +{0.15643437f,-0.98768836f}, {0.078459084f,-0.99691731f}, {-4.3711388e-08f,-1.0000000f}, +{-0.078459173f,-0.99691731f}, {-0.15643445f,-0.98768836f}, {-0.23344538f,-0.97236991f}, +{-0.30901703f,-0.95105648f}, {-0.38268352f,-0.92387950f}, {-0.45399061f,-0.89100647f}, +{-0.52249867f,-0.85264009f}, {-0.58778518f,-0.80901700f}, {-0.64944804f,-0.76040596f}, +{-0.70710677f,-0.70710677f}, {-0.76040596f,-0.64944804f}, {-0.80901700f,-0.58778518f}, +{-0.85264021f,-0.52249849f}, {-0.89100659f,-0.45399037f}, {-0.92387956f,-0.38268328f}, +{-0.95105654f,-0.30901679f}, {-0.97236991f,-0.23344538f}, {-0.98768836f,-0.15643445f}, +{-0.99691737f,-0.078459039f}, {-1.0000000f,8.7422777e-08f}, {-0.99691731f,0.078459218f}, +{-0.98768830f,0.15643461f}, {-0.97236985f,0.23344554f}, {-0.95105654f,0.30901697f}, +{-0.92387956f,0.38268346f}, {-0.89100653f,0.45399055f}, {-0.85264015f,0.52249861f}, +{-0.80901694f,0.58778536f}, {-0.76040590f,0.64944816f}, {-0.70710665f,0.70710689f}, +{-0.64944792f,0.76040608f}, {-0.58778507f,0.80901712f}, {-0.52249837f,0.85264033f}, +{-0.45399022f,0.89100665f}, {-0.38268313f,0.92387968f}, {-0.30901709f,0.95105648f}, +{-0.23344545f,0.97236991f}, {-0.15643452f,0.98768830f}, {-0.078459114f,0.99691731f}, +}; +static const ne10_fft_cpx_float32_t ne10_twiddles_120[120] = { +{1.0000000f,0.0000000f}, {1.0000000f,-0.0000000f}, {1.0000000f,-0.0000000f}, +{1.0000000f,-0.0000000f}, {0.91354543f,-0.40673664f}, {0.66913056f,-0.74314487f}, +{1.0000000f,-0.0000000f}, {0.66913056f,-0.74314487f}, {-0.10452851f,-0.99452192f}, +{1.0000000f,-0.0000000f}, {0.30901697f,-0.95105654f}, {-0.80901700f,-0.58778518f}, +{1.0000000f,-0.0000000f}, {-0.10452851f,-0.99452192f}, {-0.97814757f,0.20791179f}, +{1.0000000f,-0.0000000f}, {0.97814763f,-0.20791170f}, {0.91354543f,-0.40673664f}, +{0.80901700f,-0.58778524f}, {0.66913056f,-0.74314487f}, {0.49999997f,-0.86602545f}, +{0.30901697f,-0.95105654f}, {0.10452842f,-0.99452192f}, {-0.10452851f,-0.99452192f}, +{-0.30901703f,-0.95105648f}, {-0.50000006f,-0.86602533f}, {-0.66913068f,-0.74314475f}, +{-0.80901700f,-0.58778518f}, {-0.91354549f,-0.40673658f}, {-0.97814763f,-0.20791161f}, +{1.0000000f,-0.0000000f}, {0.99862951f,-0.052335959f}, {0.99452192f,-0.10452846f}, +{0.98768836f,-0.15643448f}, {0.97814763f,-0.20791170f}, {0.96592581f,-0.25881904f}, +{0.95105648f,-0.30901700f}, {0.93358040f,-0.35836795f}, {0.91354543f,-0.40673664f}, +{0.89100653f,-0.45399052f}, {0.86602545f,-0.50000000f}, {0.83867055f,-0.54463905f}, +{0.80901700f,-0.58778524f}, {0.77714598f,-0.62932038f}, {0.74314475f,-0.66913062f}, +{0.70710677f,-0.70710683f}, {0.66913056f,-0.74314487f}, {0.62932038f,-0.77714598f}, +{0.58778524f,-0.80901700f}, {0.54463899f,-0.83867055f}, {0.49999997f,-0.86602545f}, +{0.45399052f,-0.89100653f}, {0.40673661f,-0.91354549f}, {0.35836786f,-0.93358046f}, +{0.30901697f,-0.95105654f}, {0.25881907f,-0.96592581f}, {0.20791166f,-0.97814763f}, +{0.15643437f,-0.98768836f}, {0.10452842f,-0.99452192f}, {0.052335974f,-0.99862951f}, +{1.0000000f,-0.0000000f}, {0.99452192f,-0.10452846f}, {0.97814763f,-0.20791170f}, +{0.95105648f,-0.30901700f}, {0.91354543f,-0.40673664f}, {0.86602545f,-0.50000000f}, +{0.80901700f,-0.58778524f}, {0.74314475f,-0.66913062f}, {0.66913056f,-0.74314487f}, +{0.58778524f,-0.80901700f}, {0.49999997f,-0.86602545f}, {0.40673661f,-0.91354549f}, +{0.30901697f,-0.95105654f}, {0.20791166f,-0.97814763f}, {0.10452842f,-0.99452192f}, +{-4.3711388e-08f,-1.0000000f}, {-0.10452851f,-0.99452192f}, {-0.20791174f,-0.97814757f}, +{-0.30901703f,-0.95105648f}, {-0.40673670f,-0.91354543f}, {-0.50000006f,-0.86602533f}, +{-0.58778518f,-0.80901700f}, {-0.66913068f,-0.74314475f}, {-0.74314493f,-0.66913044f}, +{-0.80901700f,-0.58778518f}, {-0.86602539f,-0.50000006f}, {-0.91354549f,-0.40673658f}, +{-0.95105654f,-0.30901679f}, {-0.97814763f,-0.20791161f}, {-0.99452192f,-0.10452849f}, +{1.0000000f,-0.0000000f}, {0.98768836f,-0.15643448f}, {0.95105648f,-0.30901700f}, +{0.89100653f,-0.45399052f}, {0.80901700f,-0.58778524f}, {0.70710677f,-0.70710683f}, +{0.58778524f,-0.80901700f}, {0.45399052f,-0.89100653f}, {0.30901697f,-0.95105654f}, +{0.15643437f,-0.98768836f}, {-4.3711388e-08f,-1.0000000f}, {-0.15643445f,-0.98768836f}, +{-0.30901703f,-0.95105648f}, {-0.45399061f,-0.89100647f}, {-0.58778518f,-0.80901700f}, +{-0.70710677f,-0.70710677f}, {-0.80901700f,-0.58778518f}, {-0.89100659f,-0.45399037f}, +{-0.95105654f,-0.30901679f}, {-0.98768836f,-0.15643445f}, {-1.0000000f,8.7422777e-08f}, +{-0.98768830f,0.15643461f}, {-0.95105654f,0.30901697f}, {-0.89100653f,0.45399055f}, +{-0.80901694f,0.58778536f}, {-0.70710665f,0.70710689f}, {-0.58778507f,0.80901712f}, +{-0.45399022f,0.89100665f}, {-0.30901709f,0.95105648f}, {-0.15643452f,0.98768830f}, +}; +static const ne10_fft_cpx_float32_t ne10_twiddles_60[60] = { +{1.0000000f,0.0000000f}, {1.0000000f,-0.0000000f}, {1.0000000f,-0.0000000f}, +{1.0000000f,-0.0000000f}, {0.91354543f,-0.40673664f}, {0.66913056f,-0.74314487f}, +{1.0000000f,-0.0000000f}, {0.66913056f,-0.74314487f}, {-0.10452851f,-0.99452192f}, +{1.0000000f,-0.0000000f}, {0.30901697f,-0.95105654f}, {-0.80901700f,-0.58778518f}, +{1.0000000f,-0.0000000f}, {-0.10452851f,-0.99452192f}, {-0.97814757f,0.20791179f}, +{1.0000000f,-0.0000000f}, {0.99452192f,-0.10452846f}, {0.97814763f,-0.20791170f}, +{0.95105648f,-0.30901700f}, {0.91354543f,-0.40673664f}, {0.86602545f,-0.50000000f}, +{0.80901700f,-0.58778524f}, {0.74314475f,-0.66913062f}, {0.66913056f,-0.74314487f}, +{0.58778524f,-0.80901700f}, {0.49999997f,-0.86602545f}, {0.40673661f,-0.91354549f}, +{0.30901697f,-0.95105654f}, {0.20791166f,-0.97814763f}, {0.10452842f,-0.99452192f}, +{1.0000000f,-0.0000000f}, {0.97814763f,-0.20791170f}, {0.91354543f,-0.40673664f}, +{0.80901700f,-0.58778524f}, {0.66913056f,-0.74314487f}, {0.49999997f,-0.86602545f}, +{0.30901697f,-0.95105654f}, {0.10452842f,-0.99452192f}, {-0.10452851f,-0.99452192f}, +{-0.30901703f,-0.95105648f}, {-0.50000006f,-0.86602533f}, {-0.66913068f,-0.74314475f}, +{-0.80901700f,-0.58778518f}, {-0.91354549f,-0.40673658f}, {-0.97814763f,-0.20791161f}, +{1.0000000f,-0.0000000f}, {0.95105648f,-0.30901700f}, {0.80901700f,-0.58778524f}, +{0.58778524f,-0.80901700f}, {0.30901697f,-0.95105654f}, {-4.3711388e-08f,-1.0000000f}, +{-0.30901703f,-0.95105648f}, {-0.58778518f,-0.80901700f}, {-0.80901700f,-0.58778518f}, +{-0.95105654f,-0.30901679f}, {-1.0000000f,8.7422777e-08f}, {-0.95105654f,0.30901697f}, +{-0.80901694f,0.58778536f}, {-0.58778507f,0.80901712f}, {-0.30901709f,0.95105648f}, +}; +static const ne10_fft_state_float32_t ne10_fft_state_float32_t_480 = { +120, +(ne10_int32_t *)ne10_factors_480, +(ne10_fft_cpx_float32_t *)ne10_twiddles_480, +NULL, +(ne10_fft_cpx_float32_t *)&ne10_twiddles_480[120], +/* is_forward_scaled = true */ +(ne10_int32_t) 1, +/* is_backward_scaled = false */ +(ne10_int32_t) 0, +}; +static const arch_fft_state cfg_arch_480 = { +1, +(void *)&ne10_fft_state_float32_t_480, +}; + +static const ne10_fft_state_float32_t ne10_fft_state_float32_t_240 = { +60, +(ne10_int32_t *)ne10_factors_240, +(ne10_fft_cpx_float32_t *)ne10_twiddles_240, +NULL, +(ne10_fft_cpx_float32_t *)&ne10_twiddles_240[60], +/* is_forward_scaled = true */ +(ne10_int32_t) 1, +/* is_backward_scaled = false */ +(ne10_int32_t) 0, +}; +static const arch_fft_state cfg_arch_240 = { +1, +(void *)&ne10_fft_state_float32_t_240, +}; + +static const ne10_fft_state_float32_t ne10_fft_state_float32_t_120 = { +30, +(ne10_int32_t *)ne10_factors_120, +(ne10_fft_cpx_float32_t *)ne10_twiddles_120, +NULL, +(ne10_fft_cpx_float32_t *)&ne10_twiddles_120[30], +/* is_forward_scaled = true */ +(ne10_int32_t) 1, +/* is_backward_scaled = false */ +(ne10_int32_t) 0, +}; +static const arch_fft_state cfg_arch_120 = { +1, +(void *)&ne10_fft_state_float32_t_120, +}; + +static const ne10_fft_state_float32_t ne10_fft_state_float32_t_60 = { +15, +(ne10_int32_t *)ne10_factors_60, +(ne10_fft_cpx_float32_t *)ne10_twiddles_60, +NULL, +(ne10_fft_cpx_float32_t *)&ne10_twiddles_60[15], +/* is_forward_scaled = true */ +(ne10_int32_t) 1, +/* is_backward_scaled = false */ +(ne10_int32_t) 0, +}; +static const arch_fft_state cfg_arch_60 = { +1, +(void *)&ne10_fft_state_float32_t_60, +}; + +#endif /* end NE10_FFT_PARAMS48000_960 */ diff --git a/components/opus/libopus/celt/tests/test_unit_cwrs32.c b/components/opus/libopus/celt/tests/test_unit_cwrs32.c new file mode 100644 index 0000000..36dd8af --- /dev/null +++ b/components/opus/libopus/celt/tests/test_unit_cwrs32.c @@ -0,0 +1,161 @@ +/* Copyright (c) 2008-2011 Xiph.Org Foundation, Mozilla Corporation, + Gregory Maxwell + Written by Jean-Marc Valin, Gregory Maxwell, and Timothy B. Terriberry */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include + +#ifndef CUSTOM_MODES +#define CUSTOM_MODES +#else +#define TEST_CUSTOM_MODES +#endif + +#define CELT_C +#include "stack_alloc.h" +#include "entenc.c" +#include "entdec.c" +#include "entcode.c" +#include "cwrs.c" +#include "mathops.c" +#include "rate.h" + +#define NMAX (240) +#define KMAX (128) + +#ifdef TEST_CUSTOM_MODES + +#define NDIMS (44) +static const int pn[NDIMS]={ + 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 18, 20, 22, + 24, 26, 28, 30, 32, 36, 40, 44, 48, + 52, 56, 60, 64, 72, 80, 88, 96, 104, + 112, 120, 128, 144, 160, 176, 192, 208 +}; +static const int pkmax[NDIMS]={ + 128, 128, 128, 128, 88, 52, 36, 26, 22, + 18, 16, 15, 13, 12, 12, 11, 10, 9, + 9, 8, 8, 7, 7, 7, 7, 6, 6, + 6, 6, 6, 5, 5, 5, 5, 5, 5, + 4, 4, 4, 4, 4, 4, 4, 4 +}; + +#else /* TEST_CUSTOM_MODES */ + +#define NDIMS (22) +static const int pn[NDIMS]={ + 2, 3, 4, 6, 8, 9, 11, 12, 16, + 18, 22, 24, 32, 36, 44, 48, 64, 72, + 88, 96, 144, 176 +}; +static const int pkmax[NDIMS]={ + 128, 128, 128, 88, 36, 26, 18, 16, 12, + 11, 9, 9, 7, 7, 6, 6, 5, 5, + 5, 5, 4, 4 +}; + +#endif + +int main(void){ + int t; + int n; + ALLOC_STACK; + for(t=0;tpkmax[t])break; + printf("Testing CWRS with N=%i, K=%i...\n",n,k); +#if defined(SMALL_FOOTPRINT) + nc=ncwrs_urow(n,k,uu); +#else + nc=CELT_PVQ_V(n,k); +#endif + inc=nc/20000; + if(inc<1)inc=1; + for(i=0;i");*/ +#if defined(SMALL_FOOTPRINT) + ii=icwrs(n,k,&v,y,u); +#else + ii=icwrs(n,y); + v=CELT_PVQ_V(n,k); +#endif + if(ii!=i){ + fprintf(stderr,"Combination-index mismatch (%lu!=%lu).\n", + (long)ii,(long)i); + return 1; + } + if(v!=nc){ + fprintf(stderr,"Combination count mismatch (%lu!=%lu).\n", + (long)v,(long)nc); + return 2; + } + /*printf(" %6u\n",i);*/ + } + /*printf("\n");*/ + } + } + return 0; +} diff --git a/components/opus/libopus/celt/tests/test_unit_dft.c b/components/opus/libopus/celt/tests/test_unit_dft.c new file mode 100644 index 0000000..70f8f49 --- /dev/null +++ b/components/opus/libopus/celt/tests/test_unit_dft.c @@ -0,0 +1,179 @@ +/* Copyright (c) 2008 Xiph.Org Foundation + Written by Jean-Marc Valin */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include + +#include "stack_alloc.h" +#include "kiss_fft.h" +#include "mathops.h" +#include "modes.h" + +#ifndef M_PI +#define M_PI 3.141592653 +#endif + +int ret = 0; + +void check(kiss_fft_cpx * in,kiss_fft_cpx * out,int nfft,int isinverse) +{ + int bin,k; + double errpow=0,sigpow=0, snr; + + for (bin=0;binmdct.kfft[id]; +#endif + + in = (kiss_fft_cpx*)malloc(buflen); + out = (kiss_fft_cpx*)malloc(buflen); + + for (k=0;k1) { + int k; + for (k=1;k +#include +#include +#include +#define CELT_C +#include "entcode.h" +#include "entenc.h" +#include "entdec.h" +#include + +#include "entenc.c" +#include "entdec.c" +#include "entcode.c" + +#ifndef M_LOG2E +# define M_LOG2E 1.4426950408889634074 +#endif +#define DATA_SIZE 10000000 +#define DATA_SIZE2 10000 + +int main(int _argc,char **_argv){ + ec_enc enc; + ec_dec dec; + long nbits; + long nbits2; + double entropy; + int ft; + int ftb; + int sz; + int i; + int ret; + unsigned int sym; + unsigned int seed; + unsigned char *ptr; + const char *env_seed; + ret=0; + entropy=0; + if (_argc > 2) { + fprintf(stderr, "Usage: %s []\n", _argv[0]); + return 1; + } + env_seed = getenv("SEED"); + if (_argc > 1) + seed = atoi(_argv[1]); + else if (env_seed) + seed = atoi(env_seed); + else + seed = time(NULL); + /*Testing encoding of raw bit values.*/ + ptr = (unsigned char *)malloc(DATA_SIZE); + ec_enc_init(&enc,ptr, DATA_SIZE); + for(ft=2;ft<1024;ft++){ + for(i=0;i>(rand()%11U))+1U)+10; + sz=rand()/((RAND_MAX>>(rand()%9U))+1U); + data=(unsigned *)malloc(sz*sizeof(*data)); + tell=(unsigned *)malloc((sz+1)*sizeof(*tell)); + ec_enc_init(&enc,ptr,DATA_SIZE2); + zeros = rand()%13==0; + tell[0]=ec_tell_frac(&enc); + for(j=0;j>(rand()%9U))+1U); + logp1=(unsigned *)malloc(sz*sizeof(*logp1)); + data=(unsigned *)malloc(sz*sizeof(*data)); + tell=(unsigned *)malloc((sz+1)*sizeof(*tell)); + enc_method=(unsigned *)malloc(sz*sizeof(*enc_method)); + ec_enc_init(&enc,ptr,DATA_SIZE2); + tell[0]=ec_tell_frac(&enc); + for(j=0;j>1)+1); + logp1[j]=(rand()%15)+1; + enc_method[j]=rand()/((RAND_MAX>>2)+1); + switch(enc_method[j]){ + case 0:{ + ec_encode(&enc,data[j]?(1<>2)+1); + switch(dec_method){ + case 0:{ + fs=ec_decode(&dec,1<=(1<=(1< +#include +#define CELT_C +#include "laplace.h" +#include "stack_alloc.h" + +#include "entenc.c" +#include "entdec.c" +#include "entcode.c" +#include "laplace.c" + +#define DATA_SIZE 40000 + +int ec_laplace_get_start_freq(int decay) +{ + opus_uint32 ft = 32768 - LAPLACE_MINP*(2*LAPLACE_NMIN+1); + int fs = (ft*(16384-decay))/(16384+decay); + return fs+LAPLACE_MINP; +} + +int main(void) +{ + int i; + int ret = 0; + ec_enc enc; + ec_dec dec; + unsigned char *ptr; + int val[10000], decay[10000]; + ALLOC_STACK; + ptr = (unsigned char *)malloc(DATA_SIZE); + ec_enc_init(&enc,ptr,DATA_SIZE); + + val[0] = 3; decay[0] = 6000; + val[1] = 0; decay[1] = 5800; + val[2] = -1; decay[2] = 5600; + for (i=3;i<10000;i++) + { + val[i] = rand()%15-7; + decay[i] = rand()%11000+5000; + } + for (i=0;i<10000;i++) + ec_laplace_encode(&enc, &val[i], + ec_laplace_get_start_freq(decay[i]), decay[i]); + + ec_enc_done(&enc); + + ec_dec_init(&dec,ec_get_buffer(&enc),ec_range_bytes(&enc)); + + for (i=0;i<10000;i++) + { + int d = ec_laplace_decode(&dec, + ec_laplace_get_start_freq(decay[i]), decay[i]); + if (d != val[i]) + { + fprintf (stderr, "Got %d instead of %d\n", d, val[i]); + ret = 1; + } + } + + free(ptr); + return ret; +} diff --git a/components/opus/libopus/celt/tests/test_unit_mathops.c b/components/opus/libopus/celt/tests/test_unit_mathops.c new file mode 100644 index 0000000..874e9ad --- /dev/null +++ b/components/opus/libopus/celt/tests/test_unit_mathops.c @@ -0,0 +1,266 @@ +/* Copyright (c) 2008-2011 Xiph.Org Foundation, Mozilla Corporation, + Gregory Maxwell + Written by Jean-Marc Valin, Gregory Maxwell, and Timothy B. Terriberry */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#ifndef CUSTOM_MODES +#define CUSTOM_MODES +#endif + +#include +#include +#include "mathops.h" +#include "bands.h" + +#ifdef FIXED_POINT +#define WORD "%d" +#else +#define WORD "%f" +#endif + +int ret = 0; + +void testdiv(void) +{ + opus_int32 i; + for (i=1;i<=327670;i++) + { + double prod; + opus_val32 val; + val = celt_rcp(i); +#ifdef FIXED_POINT + prod = (1./32768./65526.)*val*i; +#else + prod = val*i; +#endif + if (fabs(prod-1) > .00025) + { + fprintf (stderr, "div failed: 1/%d="WORD" (product = %f)\n", i, val, prod); + ret = 1; + } + } +} + +void testsqrt(void) +{ + opus_int32 i; + for (i=1;i<=1000000000;i++) + { + double ratio; + opus_val16 val; + val = celt_sqrt(i); + ratio = val/sqrt(i); + if (fabs(ratio - 1) > .0005 && fabs(val-sqrt(i)) > 2) + { + fprintf (stderr, "sqrt failed: sqrt(%d)="WORD" (ratio = %f)\n", i, val, ratio); + ret = 1; + } + i+= i>>10; + } +} + +void testbitexactcos(void) +{ + int i; + opus_int32 min_d,max_d,last,chk; + chk=max_d=0; + last=min_d=32767; + for(i=64;i<=16320;i++) + { + opus_int32 d; + opus_int32 q=bitexact_cos(i); + chk ^= q*i; + d = last - q; + if (d>max_d)max_d=d; + if (dmax_d)max_d=d; + if (d0.0009) + { + fprintf (stderr, "celt_log2 failed: fabs((1.442695040888963387*log(x))-celt_log2(x))>0.001 (x = %f, error = %f)\n", x,error); + ret = 1; + } + } +} + +void testexp2(void) +{ + float x; + for (x=-11.0;x<24.0;x+=0.0007) + { + float error = fabs(x-(1.442695040888963387*log(celt_exp2(x)))); + if (error>0.0002) + { + fprintf (stderr, "celt_exp2 failed: fabs(x-(1.442695040888963387*log(celt_exp2(x))))>0.0005 (x = %f, error = %f)\n", x,error); + ret = 1; + } + } +} + +void testexp2log2(void) +{ + float x; + for (x=-11.0;x<24.0;x+=0.0007) + { + float error = fabs(x-(celt_log2(celt_exp2(x)))); + if (error>0.001) + { + fprintf (stderr, "celt_log2/celt_exp2 failed: fabs(x-(celt_log2(celt_exp2(x))))>0.001 (x = %f, error = %f)\n", x,error); + ret = 1; + } + } +} +#else +void testlog2(void) +{ + opus_val32 x; + for (x=8;x<1073741824;x+=(x>>3)) + { + float error = fabs((1.442695040888963387*log(x/16384.0))-celt_log2(x)/1024.0); + if (error>0.003) + { + fprintf (stderr, "celt_log2 failed: x = %ld, error = %f\n", (long)x,error); + ret = 1; + } + } +} + +void testexp2(void) +{ + opus_val16 x; + for (x=-32768;x<15360;x++) + { + float error1 = fabs(x/1024.0-(1.442695040888963387*log(celt_exp2(x)/65536.0))); + float error2 = fabs(exp(0.6931471805599453094*x/1024.0)-celt_exp2(x)/65536.0); + if (error1>0.0002&&error2>0.00004) + { + fprintf (stderr, "celt_exp2 failed: x = "WORD", error1 = %f, error2 = %f\n", x,error1,error2); + ret = 1; + } + } +} + +void testexp2log2(void) +{ + opus_val32 x; + for (x=8;x<65536;x+=(x>>3)) + { + float error = fabs(x-0.25*celt_exp2(celt_log2(x)))/16384; + if (error>0.004) + { + fprintf (stderr, "celt_log2/celt_exp2 failed: fabs(x-(celt_exp2(celt_log2(x))))>0.001 (x = %ld, error = %f)\n", (long)x,error); + ret = 1; + } + } +} + +void testilog2(void) +{ + opus_val32 x; + for (x=1;x<=268435455;x+=127) + { + opus_val32 lg; + opus_val32 y; + + lg = celt_ilog2(x); + if (lg<0 || lg>=31) + { + printf("celt_ilog2 failed: 0<=celt_ilog2(x)<31 (x = %d, celt_ilog2(x) = %d)\n",x,lg); + ret = 1; + } + y = 1<>1)>=y) + { + printf("celt_ilog2 failed: 2**celt_ilog2(x)<=x<2**(celt_ilog2(x)+1) (x = %d, 2**celt_ilog2(x) = %d)\n",x,y); + ret = 1; + } + } +} +#endif + +int main(void) +{ + testbitexactcos(); + testbitexactlog2tan(); + testdiv(); + testsqrt(); + testlog2(); + testexp2(); + testexp2log2(); +#ifdef FIXED_POINT + testilog2(); +#endif + return ret; +} diff --git a/components/opus/libopus/celt/tests/test_unit_mdct.c b/components/opus/libopus/celt/tests/test_unit_mdct.c new file mode 100644 index 0000000..4a563cc --- /dev/null +++ b/components/opus/libopus/celt/tests/test_unit_mdct.c @@ -0,0 +1,227 @@ +/* Copyright (c) 2008-2011 Xiph.Org Foundation + Written by Jean-Marc Valin */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include + +#include "mdct.h" +#include "stack_alloc.h" +#include "kiss_fft.h" +#include "mdct.h" +#include "modes.h" + +#ifndef M_PI +#define M_PI 3.141592653 +#endif + +int ret = 0; +void check(kiss_fft_scalar * in,kiss_fft_scalar * out,int nfft,int isinverse) +{ + int bin,k; + double errpow=0,sigpow=0; + double snr; + for (bin=0;binmdct; +#endif + + in = (kiss_fft_scalar*)malloc(buflen); + in_copy = (kiss_fft_scalar*)malloc(buflen); + out = (kiss_fft_scalar*)malloc(buflen); + window = (opus_val16*)malloc(sizeof(opus_val16)*nfft/2); + + for (k=0;k1) { + int k; + for (k=1;k +#include +#include "vq.h" +#include "bands.h" +#include "stack_alloc.h" +#include + + +#define MAX_SIZE 100 + +int ret=0; +void test_rotation(int N, int K) +{ + int i; + double err = 0, ener = 0, snr, snr0; + opus_val16 x0[MAX_SIZE]; + opus_val16 x1[MAX_SIZE]; + for (i=0;i 20) + { + fprintf(stderr, "FAIL!\n"); + ret = 1; + } +} + +int main(void) +{ + ALLOC_STACK; + test_rotation(15, 3); + test_rotation(23, 5); + test_rotation(50, 3); + test_rotation(80, 1); + return ret; +} diff --git a/components/opus/libopus/celt/tests/test_unit_types.c b/components/opus/libopus/celt/tests/test_unit_types.c new file mode 100644 index 0000000..67a0fb8 --- /dev/null +++ b/components/opus/libopus/celt/tests/test_unit_types.c @@ -0,0 +1,50 @@ +/* Copyright (c) 2008-2011 Xiph.Org Foundation + Written by Jean-Marc Valin */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "opus_types.h" +#include + +int main(void) +{ + opus_int16 i = 1; + i <<= 14; + if (i>>14 != 1) + { + fprintf(stderr, "opus_int16 isn't 16 bits\n"); + return 1; + } + if (sizeof(opus_int16)*2 != sizeof(opus_int32)) + { + fprintf(stderr, "16*2 != 32\n"); + return 1; + } + return 0; +} diff --git a/components/opus/libopus/celt/vq.c b/components/opus/libopus/celt/vq.c new file mode 100644 index 0000000..8011e22 --- /dev/null +++ b/components/opus/libopus/celt/vq.c @@ -0,0 +1,442 @@ +/* Copyright (c) 2007-2008 CSIRO + Copyright (c) 2007-2009 Xiph.Org Foundation + Written by Jean-Marc Valin */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "mathops.h" +#include "cwrs.h" +#include "vq.h" +#include "arch.h" +#include "os_support.h" +#include "bands.h" +#include "rate.h" +#include "pitch.h" + +#if defined(MIPSr1_ASM) +#include "mips/vq_mipsr1.h" +#endif + +#ifndef OVERRIDE_vq_exp_rotation1 +static void exp_rotation1(celt_norm *X, int len, int stride, opus_val16 c, opus_val16 s) +{ + int i; + opus_val16 ms; + celt_norm *Xptr; + Xptr = X; + ms = NEG16(s); + for (i=0;i=0;i--) + { + celt_norm x1, x2; + x1 = Xptr[0]; + x2 = Xptr[stride]; + Xptr[stride] = EXTRACT16(PSHR32(MAC16_16(MULT16_16(c, x2), s, x1), 15)); + *Xptr-- = EXTRACT16(PSHR32(MAC16_16(MULT16_16(c, x1), ms, x2), 15)); + } +} +#endif /* OVERRIDE_vq_exp_rotation1 */ + +void exp_rotation(celt_norm *X, int len, int dir, int stride, int K, int spread) +{ + static const int SPREAD_FACTOR[3]={15,10,5}; + int i; + opus_val16 c, s; + opus_val16 gain, theta; + int stride2=0; + int factor; + + if (2*K>=len || spread==SPREAD_NONE) + return; + factor = SPREAD_FACTOR[spread-1]; + + gain = celt_div((opus_val32)MULT16_16(Q15_ONE,len),(opus_val32)(len+factor*K)); + theta = HALF16(MULT16_16_Q15(gain,gain)); + + c = celt_cos_norm(EXTEND32(theta)); + s = celt_cos_norm(EXTEND32(SUB16(Q15ONE,theta))); /* sin(theta) */ + + if (len>=8*stride) + { + stride2 = 1; + /* This is just a simple (equivalent) way of computing sqrt(len/stride) with rounding. + It's basically incrementing long as (stride2+0.5)^2 < len/stride. */ + while ((stride2*stride2+stride2)*stride + (stride>>2) < len) + stride2++; + } + /*NOTE: As a minor optimization, we could be passing around log2(B), not B, for both this and for + extract_collapse_mask().*/ + len = celt_udiv(len, stride); + for (i=0;i>1; +#endif + t = VSHR32(Ryy, 2*(k-7)); + g = MULT16_16_P15(celt_rsqrt_norm(t),gain); + + i=0; + do + X[i] = EXTRACT16(PSHR32(MULT16_16(g, iy[i]), k+1)); + while (++i < N); +} + +static unsigned extract_collapse_mask(int *iy, int N, int B) +{ + unsigned collapse_mask; + int N0; + int i; + if (B<=1) + return 1; + /*NOTE: As a minor optimization, we could be passing around log2(B), not B, for both this and for + exp_rotation().*/ + N0 = celt_udiv(N, B); + collapse_mask = 0; + i=0; do { + int j; + unsigned tmp=0; + j=0; do { + tmp |= iy[i*N0+j]; + } while (++j (N>>1)) + { + opus_val16 rcp; + j=0; do { + sum += X[j]; + } while (++j EPSILON && sum < 64)) +#endif + { + X[0] = QCONST16(1.f,14); + j=1; do + X[j]=0; + while (++j=0); + + /* This should never happen, but just in case it does (e.g. on silence) + we fill the first bin with pulses. */ +#ifdef FIXED_POINT_DEBUG + celt_sig_assert(pulsesLeft<=N+3); +#endif + if (pulsesLeft > N+3) + { + opus_val16 tmp = (opus_val16)pulsesLeft; + yy = MAC16_16(yy, tmp, tmp); + yy = MAC16_16(yy, tmp, y[0]); + iy[0] += pulsesLeft; + pulsesLeft=0; + } + + for (i=0;i= best_num/best_den, but that way + we can do it without any division */ + /* OPT: It's not clear whether a cmov is faster than a branch here + since the condition is more often false than true and using + a cmov introduces data dependencies across iterations. The optimal + choice may be architecture-dependent. */ + if (opus_unlikely(MULT16_16(best_den, Rxy) > MULT16_16(Ryy, best_num))) + { + best_den = Ryy; + best_num = Rxy; + best_id = j; + } + } while (++j0, "alg_quant() needs at least one pulse"); + celt_assert2(N>1, "alg_quant() needs at least two dimensions"); + + /* Covers vectorization by up to 4. */ + ALLOC(iy, N+3, int); + + exp_rotation(X, N, 1, B, K, spread); + + yy = op_pvq_search(X, iy, K, N, arch); + + encode_pulses(iy, N, K, enc); + + if (resynth) + { + normalise_residual(iy, X, N, yy, gain); + exp_rotation(X, N, -1, B, K, spread); + } + + collapse_mask = extract_collapse_mask(iy, N, B); + RESTORE_STACK; + return collapse_mask; +} + +/** Decode pulse vector and combine the result with the pitch vector to produce + the final normalised signal in the current band. */ +unsigned alg_unquant(celt_norm *X, int N, int K, int spread, int B, + ec_dec *dec, opus_val16 gain) +{ + opus_val32 Ryy; + unsigned collapse_mask; + VARDECL(int, iy); + SAVE_STACK; + + celt_assert2(K>0, "alg_unquant() needs at least one pulse"); + celt_assert2(N>1, "alg_unquant() needs at least two dimensions"); + ALLOC(iy, N, int); + Ryy = decode_pulses(iy, N, K, dec); + normalise_residual(iy, X, N, Ryy, gain); + exp_rotation(X, N, -1, B, K, spread); + collapse_mask = extract_collapse_mask(iy, N, B); + RESTORE_STACK; + return collapse_mask; +} + +#ifndef OVERRIDE_renormalise_vector +void renormalise_vector(celt_norm *X, int N, opus_val16 gain, int arch) +{ + int i; +#ifdef FIXED_POINT + int k; +#endif + opus_val32 E; + opus_val16 g; + opus_val32 t; + celt_norm *xptr; + E = EPSILON + celt_inner_prod(X, X, N, arch); +#ifdef FIXED_POINT + k = celt_ilog2(E)>>1; +#endif + t = VSHR32(E, 2*(k-7)); + g = MULT16_16_P15(celt_rsqrt_norm(t),gain); + + xptr = X; + for (i=0;i +#include +#include +#include "celt_lpc.h" +#include "stack_alloc.h" +#include "mathops.h" +#include "pitch.h" +#include "x86cpu.h" + +#if defined(FIXED_POINT) + +void celt_fir_sse4_1(const opus_val16 *x, + const opus_val16 *num, + opus_val16 *y, + int N, + int ord, + int arch) +{ + int i,j; + VARDECL(opus_val16, rnum); + + __m128i vecNoA; + opus_int32 noA ; + SAVE_STACK; + + ALLOC(rnum, ord, opus_val16); + for(i=0;i> 1; + vecNoA = _mm_set_epi32(noA, noA, noA, noA); + + for (i=0;i +#include "arch.h" + +void xcorr_kernel_sse(const opus_val16 *x, const opus_val16 *y, opus_val32 sum[4], int len) +{ + int j; + __m128 xsum1, xsum2; + xsum1 = _mm_loadu_ps(sum); + xsum2 = _mm_setzero_ps(); + + for (j = 0; j < len-3; j += 4) + { + __m128 x0 = _mm_loadu_ps(x+j); + __m128 yj = _mm_loadu_ps(y+j); + __m128 y3 = _mm_loadu_ps(y+j+3); + + xsum1 = _mm_add_ps(xsum1,_mm_mul_ps(_mm_shuffle_ps(x0,x0,0x00),yj)); + xsum2 = _mm_add_ps(xsum2,_mm_mul_ps(_mm_shuffle_ps(x0,x0,0x55), + _mm_shuffle_ps(yj,y3,0x49))); + xsum1 = _mm_add_ps(xsum1,_mm_mul_ps(_mm_shuffle_ps(x0,x0,0xaa), + _mm_shuffle_ps(yj,y3,0x9e))); + xsum2 = _mm_add_ps(xsum2,_mm_mul_ps(_mm_shuffle_ps(x0,x0,0xff),y3)); + } + if (j < len) + { + xsum1 = _mm_add_ps(xsum1,_mm_mul_ps(_mm_load1_ps(x+j),_mm_loadu_ps(y+j))); + if (++j < len) + { + xsum2 = _mm_add_ps(xsum2,_mm_mul_ps(_mm_load1_ps(x+j),_mm_loadu_ps(y+j))); + if (++j < len) + { + xsum1 = _mm_add_ps(xsum1,_mm_mul_ps(_mm_load1_ps(x+j),_mm_loadu_ps(y+j))); + } + } + } + _mm_storeu_ps(sum,_mm_add_ps(xsum1,xsum2)); +} + + +void dual_inner_prod_sse(const opus_val16 *x, const opus_val16 *y01, const opus_val16 *y02, + int N, opus_val32 *xy1, opus_val32 *xy2) +{ + int i; + __m128 xsum1, xsum2; + xsum1 = _mm_setzero_ps(); + xsum2 = _mm_setzero_ps(); + for (i=0;i +#include + +#include "macros.h" +#include "celt_lpc.h" +#include "stack_alloc.h" +#include "mathops.h" +#include "pitch.h" + +#if defined(OPUS_X86_MAY_HAVE_SSE2) && defined(FIXED_POINT) +opus_val32 celt_inner_prod_sse2(const opus_val16 *x, const opus_val16 *y, + int N) +{ + opus_int i, dataSize16; + opus_int32 sum; + + __m128i inVec1_76543210, inVec1_FEDCBA98, acc1; + __m128i inVec2_76543210, inVec2_FEDCBA98, acc2; + + sum = 0; + dataSize16 = N & ~15; + + acc1 = _mm_setzero_si128(); + acc2 = _mm_setzero_si128(); + + for (i=0;i= 8) + { + inVec1_76543210 = _mm_loadu_si128((__m128i *)(&x[i + 0])); + inVec2_76543210 = _mm_loadu_si128((__m128i *)(&y[i + 0])); + + inVec1_76543210 = _mm_madd_epi16(inVec1_76543210, inVec2_76543210); + + acc1 = _mm_add_epi32(acc1, inVec1_76543210); + i += 8; + } + + acc1 = _mm_add_epi32(acc1, _mm_unpackhi_epi64( acc1, acc1)); + acc1 = _mm_add_epi32(acc1, _mm_shufflelo_epi16( acc1, 0x0E)); + sum += _mm_cvtsi128_si32(acc1); + + for (;i +#include + +#include "macros.h" +#include "celt_lpc.h" +#include "stack_alloc.h" +#include "mathops.h" +#include "pitch.h" + +#if defined(OPUS_X86_MAY_HAVE_SSE4_1) && defined(FIXED_POINT) +#include +#include "x86cpu.h" + +opus_val32 celt_inner_prod_sse4_1(const opus_val16 *x, const opus_val16 *y, + int N) +{ + opus_int i, dataSize16; + opus_int32 sum; + __m128i inVec1_76543210, inVec1_FEDCBA98, acc1; + __m128i inVec2_76543210, inVec2_FEDCBA98, acc2; + __m128i inVec1_3210, inVec2_3210; + + sum = 0; + dataSize16 = N & ~15; + + acc1 = _mm_setzero_si128(); + acc2 = _mm_setzero_si128(); + + for (i=0;i= 8) + { + inVec1_76543210 = _mm_loadu_si128((__m128i *)(&x[i + 0])); + inVec2_76543210 = _mm_loadu_si128((__m128i *)(&y[i + 0])); + + inVec1_76543210 = _mm_madd_epi16(inVec1_76543210, inVec2_76543210); + + acc1 = _mm_add_epi32(acc1, inVec1_76543210); + i += 8; + } + + if (N - i >= 4) + { + inVec1_3210 = OP_CVTEPI16_EPI32_M64(&x[i + 0]); + inVec2_3210 = OP_CVTEPI16_EPI32_M64(&y[i + 0]); + + inVec1_3210 = _mm_mullo_epi32(inVec1_3210, inVec2_3210); + + acc1 = _mm_add_epi32(acc1, inVec1_3210); + i += 4; + } + + acc1 = _mm_add_epi32(acc1, _mm_unpackhi_epi64(acc1, acc1)); + acc1 = _mm_add_epi32(acc1, _mm_shufflelo_epi16(acc1, 0x0E)); + + sum += _mm_cvtsi128_si32(acc1); + + for (;i= 3); + + sum0 = _mm_setzero_si128(); + sum1 = _mm_setzero_si128(); + sum2 = _mm_setzero_si128(); + sum3 = _mm_setzero_si128(); + + for (j=0;j<(len-7);j+=8) + { + vecX = _mm_loadu_si128((__m128i *)(&x[j + 0])); + vecY0 = _mm_loadu_si128((__m128i *)(&y[j + 0])); + vecY1 = _mm_loadu_si128((__m128i *)(&y[j + 1])); + vecY2 = _mm_loadu_si128((__m128i *)(&y[j + 2])); + vecY3 = _mm_loadu_si128((__m128i *)(&y[j + 3])); + + sum0 = _mm_add_epi32(sum0, _mm_madd_epi16(vecX, vecY0)); + sum1 = _mm_add_epi32(sum1, _mm_madd_epi16(vecX, vecY1)); + sum2 = _mm_add_epi32(sum2, _mm_madd_epi16(vecX, vecY2)); + sum3 = _mm_add_epi32(sum3, _mm_madd_epi16(vecX, vecY3)); + } + + sum0 = _mm_add_epi32(sum0, _mm_unpackhi_epi64( sum0, sum0)); + sum0 = _mm_add_epi32(sum0, _mm_shufflelo_epi16( sum0, 0x0E)); + + sum1 = _mm_add_epi32(sum1, _mm_unpackhi_epi64( sum1, sum1)); + sum1 = _mm_add_epi32(sum1, _mm_shufflelo_epi16( sum1, 0x0E)); + + sum2 = _mm_add_epi32(sum2, _mm_unpackhi_epi64( sum2, sum2)); + sum2 = _mm_add_epi32(sum2, _mm_shufflelo_epi16( sum2, 0x0E)); + + sum3 = _mm_add_epi32(sum3, _mm_unpackhi_epi64( sum3, sum3)); + sum3 = _mm_add_epi32(sum3, _mm_shufflelo_epi16( sum3, 0x0E)); + + vecSum = _mm_unpacklo_epi64(_mm_unpacklo_epi32(sum0, sum1), + _mm_unpacklo_epi32(sum2, sum3)); + + for (;j<(len-3);j+=4) + { + vecX = OP_CVTEPI16_EPI32_M64(&x[j + 0]); + vecX0 = _mm_shuffle_epi32(vecX, 0x00); + vecX1 = _mm_shuffle_epi32(vecX, 0x55); + vecX2 = _mm_shuffle_epi32(vecX, 0xaa); + vecX3 = _mm_shuffle_epi32(vecX, 0xff); + + vecY0 = OP_CVTEPI16_EPI32_M64(&y[j + 0]); + vecY1 = OP_CVTEPI16_EPI32_M64(&y[j + 1]); + vecY2 = OP_CVTEPI16_EPI32_M64(&y[j + 2]); + vecY3 = OP_CVTEPI16_EPI32_M64(&y[j + 3]); + + sum0 = _mm_mullo_epi32(vecX0, vecY0); + sum1 = _mm_mullo_epi32(vecX1, vecY1); + sum2 = _mm_mullo_epi32(vecX2, vecY2); + sum3 = _mm_mullo_epi32(vecX3, vecY3); + + sum0 = _mm_add_epi32(sum0, sum1); + sum2 = _mm_add_epi32(sum2, sum3); + vecSum = _mm_add_epi32(vecSum, sum0); + vecSum = _mm_add_epi32(vecSum, sum2); + } + + for (;j +#include +#include "celt_lpc.h" +#include "stack_alloc.h" +#include "mathops.h" +#include "vq.h" +#include "x86cpu.h" + + +#ifndef FIXED_POINT + +opus_val16 op_pvq_search_sse2(celt_norm *_X, int *iy, int K, int N, int arch) +{ + int i, j; + int pulsesLeft; + float xy, yy; + VARDECL(celt_norm, y); + VARDECL(celt_norm, X); + VARDECL(float, signy); + __m128 signmask; + __m128 sums; + __m128i fours; + SAVE_STACK; + + (void)arch; + /* All bits set to zero, except for the sign bit. */ + signmask = _mm_set_ps1(-0.f); + fours = _mm_set_epi32(4, 4, 4, 4); + ALLOC(y, N+3, celt_norm); + ALLOC(X, N+3, celt_norm); + ALLOC(signy, N+3, float); + + OPUS_COPY(X, _X, N); + X[N] = X[N+1] = X[N+2] = 0; + sums = _mm_setzero_ps(); + for (j=0;j (N>>1)) + { + __m128i pulses_sum; + __m128 yy4, xy4; + __m128 rcp4; + opus_val32 sum = _mm_cvtss_f32(sums); + /* If X is too small, just replace it with a pulse at 0 */ + /* Prevents infinities and NaNs from causing too many pulses + to be allocated. 64 is an approximation of infinity here. */ + if (!(sum > EPSILON && sum < 64)) + { + X[0] = QCONST16(1.f,14); + j=1; do + X[j]=0; + while (++j=0); + + /* This should never happen, but just in case it does (e.g. on silence) + we fill the first bin with pulses. */ + if (pulsesLeft > N+3) + { + opus_val16 tmp = (opus_val16)pulsesLeft; + yy = MAC16_16(yy, tmp, tmp); + yy = MAC16_16(yy, tmp, y[0]); + iy[0] += pulsesLeft; + pulsesLeft=0; + } + + for (i=0;i +static _inline void cpuid(unsigned int CPUInfo[4], unsigned int InfoType) +{ + __cpuid((int*)CPUInfo, InfoType); +} + +#else + +#if defined(CPU_INFO_BY_C) +#include +#endif + +static void cpuid(unsigned int CPUInfo[4], unsigned int InfoType) +{ +#if defined(CPU_INFO_BY_ASM) +#if defined(__i386__) && defined(__PIC__) +/* %ebx is PIC register in 32-bit, so mustn't clobber it. */ + __asm__ __volatile__ ( + "xchg %%ebx, %1\n" + "cpuid\n" + "xchg %%ebx, %1\n": + "=a" (CPUInfo[0]), + "=r" (CPUInfo[1]), + "=c" (CPUInfo[2]), + "=d" (CPUInfo[3]) : + "0" (InfoType) + ); +#else + __asm__ __volatile__ ( + "cpuid": + "=a" (CPUInfo[0]), + "=b" (CPUInfo[1]), + "=c" (CPUInfo[2]), + "=d" (CPUInfo[3]) : + "0" (InfoType) + ); +#endif +#elif defined(CPU_INFO_BY_C) + __get_cpuid(InfoType, &(CPUInfo[0]), &(CPUInfo[1]), &(CPUInfo[2]), &(CPUInfo[3])); +#endif +} + +#endif + +typedef struct CPU_Feature{ + /* SIMD: 128-bit */ + int HW_SSE; + int HW_SSE2; + int HW_SSE41; + /* SIMD: 256-bit */ + int HW_AVX; +} CPU_Feature; + +static void opus_cpu_feature_check(CPU_Feature *cpu_feature) +{ + unsigned int info[4] = {0}; + unsigned int nIds = 0; + + cpuid(info, 0); + nIds = info[0]; + + if (nIds >= 1){ + cpuid(info, 1); + cpu_feature->HW_SSE = (info[3] & (1 << 25)) != 0; + cpu_feature->HW_SSE2 = (info[3] & (1 << 26)) != 0; + cpu_feature->HW_SSE41 = (info[2] & (1 << 19)) != 0; + cpu_feature->HW_AVX = (info[2] & (1 << 28)) != 0; + } + else { + cpu_feature->HW_SSE = 0; + cpu_feature->HW_SSE2 = 0; + cpu_feature->HW_SSE41 = 0; + cpu_feature->HW_AVX = 0; + } +} + +int opus_select_arch(void) +{ + CPU_Feature cpu_feature; + int arch; + + opus_cpu_feature_check(&cpu_feature); + + arch = 0; + if (!cpu_feature.HW_SSE) + { + return arch; + } + arch++; + + if (!cpu_feature.HW_SSE2) + { + return arch; + } + arch++; + + if (!cpu_feature.HW_SSE41) + { + return arch; + } + arch++; + + if (!cpu_feature.HW_AVX) + { + return arch; + } + arch++; + + return arch; +} + +#endif diff --git a/components/opus/libopus/celt/x86/x86cpu.h b/components/opus/libopus/celt/x86/x86cpu.h new file mode 100644 index 0000000..1e2bf17 --- /dev/null +++ b/components/opus/libopus/celt/x86/x86cpu.h @@ -0,0 +1,95 @@ +/* Copyright (c) 2014, Cisco Systems, INC + Written by XiangMingZhu WeiZhou MinPeng YanWang + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#if !defined(X86CPU_H) +# define X86CPU_H + +# if defined(OPUS_X86_MAY_HAVE_SSE) +# define MAY_HAVE_SSE(name) name ## _sse +# else +# define MAY_HAVE_SSE(name) name ## _c +# endif + +# if defined(OPUS_X86_MAY_HAVE_SSE2) +# define MAY_HAVE_SSE2(name) name ## _sse2 +# else +# define MAY_HAVE_SSE2(name) name ## _c +# endif + +# if defined(OPUS_X86_MAY_HAVE_SSE4_1) +# define MAY_HAVE_SSE4_1(name) name ## _sse4_1 +# else +# define MAY_HAVE_SSE4_1(name) name ## _c +# endif + +# if defined(OPUS_X86_MAY_HAVE_AVX) +# define MAY_HAVE_AVX(name) name ## _avx +# else +# define MAY_HAVE_AVX(name) name ## _c +# endif + +# if defined(OPUS_HAVE_RTCD) +int opus_select_arch(void); +# endif + +/*gcc appears to emit MOVDQA's to load the argument of an _mm_cvtepi8_epi32() + or _mm_cvtepi16_epi32() when optimizations are disabled, even though the + actual PMOVSXWD instruction takes an m32 or m64. Unlike a normal memory + reference, these require 16-byte alignment and load a full 16 bytes (instead + of 4 or 8), possibly reading out of bounds. + + We can insert an explicit MOVD or MOVQ using _mm_cvtsi32_si128() or + _mm_loadl_epi64(), which should have the same semantics as an m32 or m64 + reference in the PMOVSXWD instruction itself, but gcc is not smart enough to + optimize this out when optimizations ARE enabled. + + Clang, in contrast, requires us to do this always for _mm_cvtepi8_epi32 + (which is fair, since technically the compiler is always allowed to do the + dereference before invoking the function implementing the intrinsic). + However, it is smart enough to eliminate the extra MOVD instruction. + For _mm_cvtepi16_epi32, it does the right thing, though does *not* optimize out + the extra MOVQ if it's specified explicitly */ + +# if defined(__clang__) || !defined(__OPTIMIZE__) +# define OP_CVTEPI8_EPI32_M32(x) \ + (_mm_cvtepi8_epi32(_mm_cvtsi32_si128(*(int *)(x)))) +# else +# define OP_CVTEPI8_EPI32_M32(x) \ + (_mm_cvtepi8_epi32(*(__m128i *)(x))) +#endif + +/* similar reasoning about the instruction sequence as in the 32-bit macro above, + */ +# if defined(__clang__) || !defined(__OPTIMIZE__) +# define OP_CVTEPI16_EPI32_M64(x) \ + (_mm_cvtepi16_epi32(_mm_loadl_epi64((__m128i *)(x)))) +# else +# define OP_CVTEPI16_EPI32_M64(x) \ + (_mm_cvtepi16_epi32(*(__m128i *)(x))) +# endif + +#endif diff --git a/components/opus/libopus/celt_headers.mk b/components/opus/libopus/celt_headers.mk new file mode 100644 index 0000000..706185d --- /dev/null +++ b/components/opus/libopus/celt_headers.mk @@ -0,0 +1,53 @@ +CELT_HEAD = \ +celt/arch.h \ +celt/bands.h \ +celt/celt.h \ +celt/cpu_support.h \ +include/opus_types.h \ +include/opus_defines.h \ +include/opus_custom.h \ +celt/cwrs.h \ +celt/ecintrin.h \ +celt/entcode.h \ +celt/entdec.h \ +celt/entenc.h \ +celt/fixed_debug.h \ +celt/fixed_generic.h \ +celt/float_cast.h \ +celt/_kiss_fft_guts.h \ +celt/kiss_fft.h \ +celt/laplace.h \ +celt/mathops.h \ +celt/mdct.h \ +celt/mfrngcod.h \ +celt/modes.h \ +celt/os_support.h \ +celt/pitch.h \ +celt/celt_lpc.h \ +celt/x86/celt_lpc_sse.h \ +celt/quant_bands.h \ +celt/rate.h \ +celt/stack_alloc.h \ +celt/vq.h \ +celt/static_modes_float.h \ +celt/static_modes_fixed.h \ +celt/static_modes_float_arm_ne10.h \ +celt/static_modes_fixed_arm_ne10.h \ +celt/arm/armcpu.h \ +celt/arm/fixed_armv4.h \ +celt/arm/fixed_armv5e.h \ +celt/arm/fixed_arm64.h \ +celt/arm/kiss_fft_armv4.h \ +celt/arm/kiss_fft_armv5e.h \ +celt/arm/pitch_arm.h \ +celt/arm/fft_arm.h \ +celt/arm/mdct_arm.h \ +celt/mips/celt_mipsr1.h \ +celt/mips/fixed_generic_mipsr1.h \ +celt/mips/kiss_fft_mipsr1.h \ +celt/mips/mdct_mipsr1.h \ +celt/mips/pitch_mipsr1.h \ +celt/mips/vq_mipsr1.h \ +celt/x86/pitch_sse.h \ +celt/x86/vq_sse.h \ +celt/x86/x86cpu.h diff --git a/components/opus/libopus/celt_sources.mk b/components/opus/libopus/celt_sources.mk new file mode 100644 index 0000000..c9dab06 --- /dev/null +++ b/components/opus/libopus/celt_sources.mk @@ -0,0 +1,50 @@ +CELT_SOURCES = \ +celt/bands.c \ +celt/celt.c \ +celt/celt_encoder.c \ +celt/celt_decoder.c \ +celt/cwrs.c \ +celt/entcode.c \ +celt/entdec.c \ +celt/entenc.c \ +celt/kiss_fft.c \ +celt/laplace.c \ +celt/mathops.c \ +celt/mdct.c \ +celt/modes.c \ +celt/pitch.c \ +celt/celt_lpc.c \ +celt/quant_bands.c \ +celt/rate.c \ +celt/vq.c + +CELT_SOURCES_SSE = \ +celt/x86/x86cpu.c \ +celt/x86/x86_celt_map.c \ +celt/x86/pitch_sse.c + +CELT_SOURCES_SSE2 = \ +celt/x86/pitch_sse2.c \ +celt/x86/vq_sse2.c + +CELT_SOURCES_SSE4_1 = \ +celt/x86/celt_lpc_sse4_1.c \ +celt/x86/pitch_sse4_1.c + +CELT_SOURCES_ARM = \ +celt/arm/armcpu.c \ +celt/arm/arm_celt_map.c + +CELT_SOURCES_ARM_ASM = \ +celt/arm/celt_pitch_xcorr_arm.s + +CELT_AM_SOURCES_ARM_ASM = \ +celt/arm/armopts.s.in + +CELT_SOURCES_ARM_NEON_INTR = \ +celt/arm/celt_neon_intr.c \ +celt/arm/pitch_neon_intr.c + +CELT_SOURCES_ARM_NE10 = \ +celt/arm/celt_fft_ne10.c \ +celt/arm/celt_mdct_ne10.c diff --git a/components/opus/libopus/compile b/components/opus/libopus/compile new file mode 100644 index 0000000..2ab71e4 --- /dev/null +++ b/components/opus/libopus/compile @@ -0,0 +1,348 @@ +#! /bin/sh +# Wrapper for compilers which do not understand '-c -o'. + +scriptversion=2016-01-11.22; # UTC + +# Copyright (C) 1999-2017 Free Software Foundation, Inc. +# Written by Tom Tromey . +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# This file is maintained in Automake, please report +# bugs to or send patches to +# . + +nl=' +' + +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent tools from complaining about whitespace usage. +IFS=" "" $nl" + +file_conv= + +# func_file_conv build_file lazy +# Convert a $build file to $host form and store it in $file +# Currently only supports Windows hosts. If the determined conversion +# type is listed in (the comma separated) LAZY, no conversion will +# take place. +func_file_conv () +{ + file=$1 + case $file in + / | /[!/]*) # absolute file, and not a UNC file + if test -z "$file_conv"; then + # lazily determine how to convert abs files + case `uname -s` in + MINGW*) + file_conv=mingw + ;; + CYGWIN*) + file_conv=cygwin + ;; + *) + file_conv=wine + ;; + esac + fi + case $file_conv/,$2, in + *,$file_conv,*) + ;; + mingw/*) + file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` + ;; + cygwin/*) + file=`cygpath -m "$file" || echo "$file"` + ;; + wine/*) + file=`winepath -w "$file" || echo "$file"` + ;; + esac + ;; + esac +} + +# func_cl_dashL linkdir +# Make cl look for libraries in LINKDIR +func_cl_dashL () +{ + func_file_conv "$1" + if test -z "$lib_path"; then + lib_path=$file + else + lib_path="$lib_path;$file" + fi + linker_opts="$linker_opts -LIBPATH:$file" +} + +# func_cl_dashl library +# Do a library search-path lookup for cl +func_cl_dashl () +{ + lib=$1 + found=no + save_IFS=$IFS + IFS=';' + for dir in $lib_path $LIB + do + IFS=$save_IFS + if $shared && test -f "$dir/$lib.dll.lib"; then + found=yes + lib=$dir/$lib.dll.lib + break + fi + if test -f "$dir/$lib.lib"; then + found=yes + lib=$dir/$lib.lib + break + fi + if test -f "$dir/lib$lib.a"; then + found=yes + lib=$dir/lib$lib.a + break + fi + done + IFS=$save_IFS + + if test "$found" != yes; then + lib=$lib.lib + fi +} + +# func_cl_wrapper cl arg... +# Adjust compile command to suit cl +func_cl_wrapper () +{ + # Assume a capable shell + lib_path= + shared=: + linker_opts= + for arg + do + if test -n "$eat"; then + eat= + else + case $1 in + -o) + # configure might choose to run compile as 'compile cc -o foo foo.c'. + eat=1 + case $2 in + *.o | *.[oO][bB][jJ]) + func_file_conv "$2" + set x "$@" -Fo"$file" + shift + ;; + *) + func_file_conv "$2" + set x "$@" -Fe"$file" + shift + ;; + esac + ;; + -I) + eat=1 + func_file_conv "$2" mingw + set x "$@" -I"$file" + shift + ;; + -I*) + func_file_conv "${1#-I}" mingw + set x "$@" -I"$file" + shift + ;; + -l) + eat=1 + func_cl_dashl "$2" + set x "$@" "$lib" + shift + ;; + -l*) + func_cl_dashl "${1#-l}" + set x "$@" "$lib" + shift + ;; + -L) + eat=1 + func_cl_dashL "$2" + ;; + -L*) + func_cl_dashL "${1#-L}" + ;; + -static) + shared=false + ;; + -Wl,*) + arg=${1#-Wl,} + save_ifs="$IFS"; IFS=',' + for flag in $arg; do + IFS="$save_ifs" + linker_opts="$linker_opts $flag" + done + IFS="$save_ifs" + ;; + -Xlinker) + eat=1 + linker_opts="$linker_opts $2" + ;; + -*) + set x "$@" "$1" + shift + ;; + *.cc | *.CC | *.cxx | *.CXX | *.[cC]++) + func_file_conv "$1" + set x "$@" -Tp"$file" + shift + ;; + *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO]) + func_file_conv "$1" mingw + set x "$@" "$file" + shift + ;; + *) + set x "$@" "$1" + shift + ;; + esac + fi + shift + done + if test -n "$linker_opts"; then + linker_opts="-link$linker_opts" + fi + exec "$@" $linker_opts + exit 1 +} + +eat= + +case $1 in + '') + echo "$0: No command. Try '$0 --help' for more information." 1>&2 + exit 1; + ;; + -h | --h*) + cat <<\EOF +Usage: compile [--help] [--version] PROGRAM [ARGS] + +Wrapper for compilers which do not understand '-c -o'. +Remove '-o dest.o' from ARGS, run PROGRAM with the remaining +arguments, and rename the output as expected. + +If you are trying to build a whole package this is not the +right script to run: please start by reading the file 'INSTALL'. + +Report bugs to . +EOF + exit $? + ;; + -v | --v*) + echo "compile $scriptversion" + exit $? + ;; + cl | *[/\\]cl | cl.exe | *[/\\]cl.exe | \ + icl | *[/\\]icl | icl.exe | *[/\\]icl.exe ) + func_cl_wrapper "$@" # Doesn't return... + ;; +esac + +ofile= +cfile= + +for arg +do + if test -n "$eat"; then + eat= + else + case $1 in + -o) + # configure might choose to run compile as 'compile cc -o foo foo.c'. + # So we strip '-o arg' only if arg is an object. + eat=1 + case $2 in + *.o | *.obj) + ofile=$2 + ;; + *) + set x "$@" -o "$2" + shift + ;; + esac + ;; + *.c) + cfile=$1 + set x "$@" "$1" + shift + ;; + *) + set x "$@" "$1" + shift + ;; + esac + fi + shift +done + +if test -z "$ofile" || test -z "$cfile"; then + # If no '-o' option was seen then we might have been invoked from a + # pattern rule where we don't need one. That is ok -- this is a + # normal compilation that the losing compiler can handle. If no + # '.c' file was seen then we are probably linking. That is also + # ok. + exec "$@" +fi + +# Name of file we expect compiler to create. +cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'` + +# Create the lock directory. +# Note: use '[/\\:.-]' here to ensure that we don't use the same name +# that we are using for the .o file. Also, base the name on the expected +# object file name, since that is what matters with a parallel build. +lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d +while true; do + if mkdir "$lockdir" >/dev/null 2>&1; then + break + fi + sleep 1 +done +# FIXME: race condition here if user kills between mkdir and trap. +trap "rmdir '$lockdir'; exit 1" 1 2 15 + +# Run the compile. +"$@" +ret=$? + +if test -f "$cofile"; then + test "$cofile" = "$ofile" || mv "$cofile" "$ofile" +elif test -f "${cofile}bj"; then + test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile" +fi + +rmdir "$lockdir" +exit $ret + +# Local Variables: +# mode: shell-script +# sh-indentation: 2 +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-time-zone: "UTC0" +# time-stamp-end: "; # UTC" +# End: diff --git a/components/opus/libopus/config.guess b/components/opus/libopus/config.guess new file mode 100644 index 0000000..a744844 --- /dev/null +++ b/components/opus/libopus/config.guess @@ -0,0 +1,1476 @@ +#! /bin/sh +# Attempt to guess a canonical system name. +# Copyright 1992-2017 Free Software Foundation, Inc. + +timestamp='2017-08-08' + +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, see . +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that +# program. This Exception is an additional permission under section 7 +# of the GNU General Public License, version 3 ("GPLv3"). +# +# Originally written by Per Bothner; maintained since 2000 by Ben Elliston. +# +# You can get the latest version of this script from: +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess +# +# Please send patches to . + + +me=`echo "$0" | sed -e 's,.*/,,'` + +usage="\ +Usage: $0 [OPTION] + +Output the configuration name of the system \`$me' is run on. + +Operation modes: + -h, --help print this help, then exit + -t, --time-stamp print date of last modification, then exit + -v, --version print version number, then exit + +Report bugs and patches to ." + +version="\ +GNU config.guess ($timestamp) + +Originally written by Per Bothner. +Copyright 1992-2017 Free Software Foundation, Inc. + +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." + +help=" +Try \`$me --help' for more information." + +# Parse command line +while test $# -gt 0 ; do + case $1 in + --time-stamp | --time* | -t ) + echo "$timestamp" ; exit ;; + --version | -v ) + echo "$version" ; exit ;; + --help | --h* | -h ) + echo "$usage"; exit ;; + -- ) # Stop option processing + shift; break ;; + - ) # Use stdin as input. + break ;; + -* ) + echo "$me: invalid option $1$help" >&2 + exit 1 ;; + * ) + break ;; + esac +done + +if test $# != 0; then + echo "$me: too many arguments$help" >&2 + exit 1 +fi + +trap 'exit 1' 1 2 15 + +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a +# compiler to aid in system detection is discouraged as it requires +# temporary files to be created and, as you can see below, it is a +# headache to deal with in a portable fashion. + +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still +# use `HOST_CC' if defined, but it is deprecated. + +# Portable tmp directory creation inspired by the Autoconf team. + +set_cc_for_build=' +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; +: ${TMPDIR=/tmp} ; + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; +dummy=$tmp/dummy ; +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; +case $CC_FOR_BUILD,$HOST_CC,$CC in + ,,) echo "int x;" > $dummy.c ; + for c in cc gcc c89 c99 ; do + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then + CC_FOR_BUILD="$c"; break ; + fi ; + done ; + if test x"$CC_FOR_BUILD" = x ; then + CC_FOR_BUILD=no_compiler_found ; + fi + ;; + ,,*) CC_FOR_BUILD=$CC ;; + ,*,*) CC_FOR_BUILD=$HOST_CC ;; +esac ; set_cc_for_build= ;' + +# This is needed to find uname on a Pyramid OSx when run in the BSD universe. +# (ghazi@noc.rutgers.edu 1994-08-24) +if (test -f /.attbin/uname) >/dev/null 2>&1 ; then + PATH=$PATH:/.attbin ; export PATH +fi + +UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown +UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown +UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown + +case "${UNAME_SYSTEM}" in +Linux|GNU|GNU/*) + # If the system lacks a compiler, then just pick glibc. + # We could probably try harder. + LIBC=gnu + + eval $set_cc_for_build + cat <<-EOF > $dummy.c + #include + #if defined(__UCLIBC__) + LIBC=uclibc + #elif defined(__dietlibc__) + LIBC=dietlibc + #else + LIBC=gnu + #endif + EOF + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` + ;; +esac + +# Note: order is significant - the case branches are not exclusive. + +case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in + *:NetBSD:*:*) + # NetBSD (nbsd) targets should (where applicable) match one or + # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, + # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently + # switched to ELF, *-*-netbsd* would select the old + # object file format. This provides both forward + # compatibility and a consistent mechanism for selecting the + # object file format. + # + # Note: NetBSD doesn't particularly care about the vendor + # portion of the name. We always set it to "unknown". + sysctl="sysctl -n hw.machine_arch" + UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ + /sbin/$sysctl 2>/dev/null || \ + /usr/sbin/$sysctl 2>/dev/null || \ + echo unknown)` + case "${UNAME_MACHINE_ARCH}" in + armeb) machine=armeb-unknown ;; + arm*) machine=arm-unknown ;; + sh3el) machine=shl-unknown ;; + sh3eb) machine=sh-unknown ;; + sh5el) machine=sh5le-unknown ;; + earmv*) + arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'` + endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'` + machine=${arch}${endian}-unknown + ;; + *) machine=${UNAME_MACHINE_ARCH}-unknown ;; + esac + # The Operating System including object format, if it has switched + # to ELF recently (or will in the future) and ABI. + case "${UNAME_MACHINE_ARCH}" in + earm*) + os=netbsdelf + ;; + arm*|i386|m68k|ns32k|sh3*|sparc|vax) + eval $set_cc_for_build + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ELF__ + then + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). + # Return netbsd for either. FIX? + os=netbsd + else + os=netbsdelf + fi + ;; + *) + os=netbsd + ;; + esac + # Determine ABI tags. + case "${UNAME_MACHINE_ARCH}" in + earm*) + expr='s/^earmv[0-9]/-eabi/;s/eb$//' + abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"` + ;; + esac + # The OS release + # Debian GNU/NetBSD machines have a different userland, and + # thus, need a distinct triplet. However, they do not need + # kernel version information, so it can be replaced with a + # suitable tag, in the style of linux-gnu. + case "${UNAME_VERSION}" in + Debian*) + release='-gnu' + ;; + *) + release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2` + ;; + esac + # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: + # contains redundant information, the shorter form: + # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. + echo "${machine}-${os}${release}${abi}" + exit ;; + *:Bitrig:*:*) + UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` + echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} + exit ;; + *:OpenBSD:*:*) + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} + exit ;; + *:LibertyBSD:*:*) + UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` + echo ${UNAME_MACHINE_ARCH}-unknown-libertybsd${UNAME_RELEASE} + exit ;; + *:ekkoBSD:*:*) + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} + exit ;; + *:SolidBSD:*:*) + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} + exit ;; + macppc:MirBSD:*:*) + echo powerpc-unknown-mirbsd${UNAME_RELEASE} + exit ;; + *:MirBSD:*:*) + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} + exit ;; + *:Sortix:*:*) + echo ${UNAME_MACHINE}-unknown-sortix + exit ;; + *:Redox:*:*) + echo ${UNAME_MACHINE}-unknown-redox + exit ;; + alpha:OSF1:*:*) + case $UNAME_RELEASE in + *4.0) + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` + ;; + *5.*) + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` + ;; + esac + # According to Compaq, /usr/sbin/psrinfo has been available on + # OSF/1 and Tru64 systems produced since 1995. I hope that + # covers most systems running today. This code pipes the CPU + # types through head -n 1, so we only detect the type of CPU 0. + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` + case "$ALPHA_CPU_TYPE" in + "EV4 (21064)") + UNAME_MACHINE=alpha ;; + "EV4.5 (21064)") + UNAME_MACHINE=alpha ;; + "LCA4 (21066/21068)") + UNAME_MACHINE=alpha ;; + "EV5 (21164)") + UNAME_MACHINE=alphaev5 ;; + "EV5.6 (21164A)") + UNAME_MACHINE=alphaev56 ;; + "EV5.6 (21164PC)") + UNAME_MACHINE=alphapca56 ;; + "EV5.7 (21164PC)") + UNAME_MACHINE=alphapca57 ;; + "EV6 (21264)") + UNAME_MACHINE=alphaev6 ;; + "EV6.7 (21264A)") + UNAME_MACHINE=alphaev67 ;; + "EV6.8CB (21264C)") + UNAME_MACHINE=alphaev68 ;; + "EV6.8AL (21264B)") + UNAME_MACHINE=alphaev68 ;; + "EV6.8CX (21264D)") + UNAME_MACHINE=alphaev68 ;; + "EV6.9A (21264/EV69A)") + UNAME_MACHINE=alphaev69 ;; + "EV7 (21364)") + UNAME_MACHINE=alphaev7 ;; + "EV7.9 (21364A)") + UNAME_MACHINE=alphaev79 ;; + esac + # A Pn.n version is a patched version. + # A Vn.n version is a released version. + # A Tn.n version is a released field test version. + # A Xn.n version is an unreleased experimental baselevel. + # 1.2 uses "1.2" for uname -r. + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` + # Reset EXIT trap before exiting to avoid spurious non-zero exit code. + exitcode=$? + trap '' 0 + exit $exitcode ;; + Alpha\ *:Windows_NT*:*) + # How do we know it's Interix rather than the generic POSIX subsystem? + # Should we change UNAME_MACHINE based on the output of uname instead + # of the specific Alpha model? + echo alpha-pc-interix + exit ;; + 21064:Windows_NT:50:3) + echo alpha-dec-winnt3.5 + exit ;; + Amiga*:UNIX_System_V:4.0:*) + echo m68k-unknown-sysv4 + exit ;; + *:[Aa]miga[Oo][Ss]:*:*) + echo ${UNAME_MACHINE}-unknown-amigaos + exit ;; + *:[Mm]orph[Oo][Ss]:*:*) + echo ${UNAME_MACHINE}-unknown-morphos + exit ;; + *:OS/390:*:*) + echo i370-ibm-openedition + exit ;; + *:z/VM:*:*) + echo s390-ibm-zvmoe + exit ;; + *:OS400:*:*) + echo powerpc-ibm-os400 + exit ;; + arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) + echo arm-acorn-riscix${UNAME_RELEASE} + exit ;; + arm*:riscos:*:*|arm*:RISCOS:*:*) + echo arm-unknown-riscos + exit ;; + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) + echo hppa1.1-hitachi-hiuxmpp + exit ;; + Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) + # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. + if test "`(/bin/universe) 2>/dev/null`" = att ; then + echo pyramid-pyramid-sysv3 + else + echo pyramid-pyramid-bsd + fi + exit ;; + NILE*:*:*:dcosx) + echo pyramid-pyramid-svr4 + exit ;; + DRS?6000:unix:4.0:6*) + echo sparc-icl-nx6 + exit ;; + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) + case `/usr/bin/uname -p` in + sparc) echo sparc-icl-nx7; exit ;; + esac ;; + s390x:SunOS:*:*) + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4H:SunOS:5.*:*) + echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) + echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) + echo i386-pc-auroraux${UNAME_RELEASE} + exit ;; + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) + eval $set_cc_for_build + SUN_ARCH=i386 + # If there is a compiler, see if it is configured for 64-bit objects. + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. + # This test works for both compilers. + if [ "$CC_FOR_BUILD" != no_compiler_found ]; then + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ + (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_64BIT_ARCH >/dev/null + then + SUN_ARCH=x86_64 + fi + fi + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4*:SunOS:6*:*) + # According to config.sub, this is the proper way to canonicalize + # SunOS6. Hard to guess exactly what SunOS6 will be like, but + # it's likely to be more like Solaris than SunOS4. + echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4*:SunOS:*:*) + case "`/usr/bin/arch -k`" in + Series*|S4*) + UNAME_RELEASE=`uname -v` + ;; + esac + # Japanese Language versions have a version number like `4.1.3-JL'. + echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` + exit ;; + sun3*:SunOS:*:*) + echo m68k-sun-sunos${UNAME_RELEASE} + exit ;; + sun*:*:4.2BSD:*) + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` + test "x${UNAME_RELEASE}" = x && UNAME_RELEASE=3 + case "`/bin/arch`" in + sun3) + echo m68k-sun-sunos${UNAME_RELEASE} + ;; + sun4) + echo sparc-sun-sunos${UNAME_RELEASE} + ;; + esac + exit ;; + aushp:SunOS:*:*) + echo sparc-auspex-sunos${UNAME_RELEASE} + exit ;; + # The situation for MiNT is a little confusing. The machine name + # can be virtually everything (everything which is not + # "atarist" or "atariste" at least should have a processor + # > m68000). The system name ranges from "MiNT" over "FreeMiNT" + # to the lowercase version "mint" (or "freemint"). Finally + # the system name "TOS" denotes a system which is actually not + # MiNT. But MiNT is downward compatible to TOS, so this should + # be no problem. + atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; + atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; + *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; + milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) + echo m68k-milan-mint${UNAME_RELEASE} + exit ;; + hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) + echo m68k-hades-mint${UNAME_RELEASE} + exit ;; + *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) + echo m68k-unknown-mint${UNAME_RELEASE} + exit ;; + m68k:machten:*:*) + echo m68k-apple-machten${UNAME_RELEASE} + exit ;; + powerpc:machten:*:*) + echo powerpc-apple-machten${UNAME_RELEASE} + exit ;; + RISC*:Mach:*:*) + echo mips-dec-mach_bsd4.3 + exit ;; + RISC*:ULTRIX:*:*) + echo mips-dec-ultrix${UNAME_RELEASE} + exit ;; + VAX*:ULTRIX*:*:*) + echo vax-dec-ultrix${UNAME_RELEASE} + exit ;; + 2020:CLIX:*:* | 2430:CLIX:*:*) + echo clipper-intergraph-clix${UNAME_RELEASE} + exit ;; + mips:*:*:UMIPS | mips:*:*:RISCos) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c +#ifdef __cplusplus +#include /* for printf() prototype */ + int main (int argc, char *argv[]) { +#else + int main (argc, argv) int argc; char *argv[]; { +#endif + #if defined (host_mips) && defined (MIPSEB) + #if defined (SYSTYPE_SYSV) + printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); + #endif + #if defined (SYSTYPE_SVR4) + printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); + #endif + #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) + printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); + #endif + #endif + exit (-1); + } +EOF + $CC_FOR_BUILD -o $dummy $dummy.c && + dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && + SYSTEM_NAME=`$dummy $dummyarg` && + { echo "$SYSTEM_NAME"; exit; } + echo mips-mips-riscos${UNAME_RELEASE} + exit ;; + Motorola:PowerMAX_OS:*:*) + echo powerpc-motorola-powermax + exit ;; + Motorola:*:4.3:PL8-*) + echo powerpc-harris-powermax + exit ;; + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) + echo powerpc-harris-powermax + exit ;; + Night_Hawk:Power_UNIX:*:*) + echo powerpc-harris-powerunix + exit ;; + m88k:CX/UX:7*:*) + echo m88k-harris-cxux7 + exit ;; + m88k:*:4*:R4*) + echo m88k-motorola-sysv4 + exit ;; + m88k:*:3*:R3*) + echo m88k-motorola-sysv3 + exit ;; + AViiON:dgux:*:*) + # DG/UX returns AViiON for all architectures + UNAME_PROCESSOR=`/usr/bin/uname -p` + if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] + then + if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ + [ ${TARGET_BINARY_INTERFACE}x = x ] + then + echo m88k-dg-dgux${UNAME_RELEASE} + else + echo m88k-dg-dguxbcs${UNAME_RELEASE} + fi + else + echo i586-dg-dgux${UNAME_RELEASE} + fi + exit ;; + M88*:DolphinOS:*:*) # DolphinOS (SVR3) + echo m88k-dolphin-sysv3 + exit ;; + M88*:*:R3*:*) + # Delta 88k system running SVR3 + echo m88k-motorola-sysv3 + exit ;; + XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) + echo m88k-tektronix-sysv3 + exit ;; + Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) + echo m68k-tektronix-bsd + exit ;; + *:IRIX*:*:*) + echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` + exit ;; + ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id + exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' + i*86:AIX:*:*) + echo i386-ibm-aix + exit ;; + ia64:AIX:*:*) + if [ -x /usr/bin/oslevel ] ; then + IBM_REV=`/usr/bin/oslevel` + else + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} + fi + echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} + exit ;; + *:AIX:2:3) + if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include + + main() + { + if (!__power_pc()) + exit(1); + puts("powerpc-ibm-aix3.2.5"); + exit(0); + } +EOF + if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` + then + echo "$SYSTEM_NAME" + else + echo rs6000-ibm-aix3.2.5 + fi + elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then + echo rs6000-ibm-aix3.2.4 + else + echo rs6000-ibm-aix3.2 + fi + exit ;; + *:AIX:*:[4567]) + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then + IBM_ARCH=rs6000 + else + IBM_ARCH=powerpc + fi + if [ -x /usr/bin/lslpp ] ; then + IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | + awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` + else + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} + fi + echo ${IBM_ARCH}-ibm-aix${IBM_REV} + exit ;; + *:AIX:*:*) + echo rs6000-ibm-aix + exit ;; + ibmrt:4.4BSD:*|romp-ibm:BSD:*) + echo romp-ibm-bsd4.4 + exit ;; + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and + echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to + exit ;; # report: romp-ibm BSD 4.3 + *:BOSX:*:*) + echo rs6000-bull-bosx + exit ;; + DPX/2?00:B.O.S.:*:*) + echo m68k-bull-sysv3 + exit ;; + 9000/[34]??:4.3bsd:1.*:*) + echo m68k-hp-bsd + exit ;; + hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) + echo m68k-hp-bsd4.4 + exit ;; + 9000/[34678]??:HP-UX:*:*) + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` + case "${UNAME_MACHINE}" in + 9000/31? ) HP_ARCH=m68000 ;; + 9000/[34]?? ) HP_ARCH=m68k ;; + 9000/[678][0-9][0-9]) + if [ -x /usr/bin/getconf ]; then + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` + case "${sc_cpu_version}" in + 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0 + 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1 + 532) # CPU_PA_RISC2_0 + case "${sc_kernel_bits}" in + 32) HP_ARCH=hppa2.0n ;; + 64) HP_ARCH=hppa2.0w ;; + '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20 + esac ;; + esac + fi + if [ "${HP_ARCH}" = "" ]; then + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + + #define _HPUX_SOURCE + #include + #include + + int main () + { + #if defined(_SC_KERNEL_BITS) + long bits = sysconf(_SC_KERNEL_BITS); + #endif + long cpu = sysconf (_SC_CPU_VERSION); + + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1"); break; + case CPU_PA_RISC2_0: + #if defined(_SC_KERNEL_BITS) + switch (bits) + { + case 64: puts ("hppa2.0w"); break; + case 32: puts ("hppa2.0n"); break; + default: puts ("hppa2.0"); break; + } break; + #else /* !defined(_SC_KERNEL_BITS) */ + puts ("hppa2.0"); break; + #endif + default: puts ("hppa1.0"); break; + } + exit (0); + } +EOF + (CCOPTS="" $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` + test -z "$HP_ARCH" && HP_ARCH=hppa + fi ;; + esac + if [ ${HP_ARCH} = hppa2.0w ] + then + eval $set_cc_for_build + + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler + # generating 64-bit code. GNU and HP use different nomenclature: + # + # $ CC_FOR_BUILD=cc ./config.guess + # => hppa2.0w-hp-hpux11.23 + # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess + # => hppa64-hp-hpux11.23 + + if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | + grep -q __LP64__ + then + HP_ARCH=hppa2.0w + else + HP_ARCH=hppa64 + fi + fi + echo ${HP_ARCH}-hp-hpux${HPUX_REV} + exit ;; + ia64:HP-UX:*:*) + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` + echo ia64-hp-hpux${HPUX_REV} + exit ;; + 3050*:HI-UX:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include + int + main () + { + long cpu = sysconf (_SC_CPU_VERSION); + /* The order matters, because CPU_IS_HP_MC68K erroneously returns + true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct + results, however. */ + if (CPU_IS_PA_RISC (cpu)) + { + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; + case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; + default: puts ("hppa-hitachi-hiuxwe2"); break; + } + } + else if (CPU_IS_HP_MC68K (cpu)) + puts ("m68k-hitachi-hiuxwe2"); + else puts ("unknown-hitachi-hiuxwe2"); + exit (0); + } +EOF + $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && + { echo "$SYSTEM_NAME"; exit; } + echo unknown-hitachi-hiuxwe2 + exit ;; + 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) + echo hppa1.1-hp-bsd + exit ;; + 9000/8??:4.3bsd:*:*) + echo hppa1.0-hp-bsd + exit ;; + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) + echo hppa1.0-hp-mpeix + exit ;; + hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) + echo hppa1.1-hp-osf + exit ;; + hp8??:OSF1:*:*) + echo hppa1.0-hp-osf + exit ;; + i*86:OSF1:*:*) + if [ -x /usr/sbin/sysversion ] ; then + echo ${UNAME_MACHINE}-unknown-osf1mk + else + echo ${UNAME_MACHINE}-unknown-osf1 + fi + exit ;; + parisc*:Lites*:*:*) + echo hppa1.1-hp-lites + exit ;; + C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) + echo c1-convex-bsd + exit ;; + C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) + if getsysinfo -f scalar_acc + then echo c32-convex-bsd + else echo c2-convex-bsd + fi + exit ;; + C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) + echo c34-convex-bsd + exit ;; + C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) + echo c38-convex-bsd + exit ;; + C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) + echo c4-convex-bsd + exit ;; + CRAY*Y-MP:*:*:*) + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*[A-Z]90:*:*:*) + echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ + | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ + -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*TS:*:*:*) + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*T3E:*:*:*) + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*SV1:*:*:*) + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + *:UNICOS/mp:*:*) + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) + FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` + FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + exit ;; + 5000:UNIX_System_V:4.*:*) + FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + exit ;; + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) + echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} + exit ;; + sparc*:BSD/OS:*:*) + echo sparc-unknown-bsdi${UNAME_RELEASE} + exit ;; + *:BSD/OS:*:*) + echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} + exit ;; + *:FreeBSD:*:*) + UNAME_PROCESSOR=`/usr/bin/uname -p` + case ${UNAME_PROCESSOR} in + amd64) + UNAME_PROCESSOR=x86_64 ;; + i386) + UNAME_PROCESSOR=i586 ;; + esac + echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` + exit ;; + i*:CYGWIN*:*) + echo ${UNAME_MACHINE}-pc-cygwin + exit ;; + *:MINGW64*:*) + echo ${UNAME_MACHINE}-pc-mingw64 + exit ;; + *:MINGW*:*) + echo ${UNAME_MACHINE}-pc-mingw32 + exit ;; + *:MSYS*:*) + echo ${UNAME_MACHINE}-pc-msys + exit ;; + i*:windows32*:*) + # uname -m includes "-pc" on this system. + echo ${UNAME_MACHINE}-mingw32 + exit ;; + i*:PW*:*) + echo ${UNAME_MACHINE}-pc-pw32 + exit ;; + *:Interix*:*) + case ${UNAME_MACHINE} in + x86) + echo i586-pc-interix${UNAME_RELEASE} + exit ;; + authenticamd | genuineintel | EM64T) + echo x86_64-unknown-interix${UNAME_RELEASE} + exit ;; + IA64) + echo ia64-unknown-interix${UNAME_RELEASE} + exit ;; + esac ;; + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) + echo i${UNAME_MACHINE}-pc-mks + exit ;; + 8664:Windows_NT:*) + echo x86_64-pc-mks + exit ;; + i*:Windows_NT*:* | Pentium*:Windows_NT*:*) + # How do we know it's Interix rather than the generic POSIX subsystem? + # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we + # UNAME_MACHINE based on the output of uname instead of i386? + echo i586-pc-interix + exit ;; + i*:UWIN*:*) + echo ${UNAME_MACHINE}-pc-uwin + exit ;; + amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) + echo x86_64-unknown-cygwin + exit ;; + p*:CYGWIN*:*) + echo powerpcle-unknown-cygwin + exit ;; + prep*:SunOS:5.*:*) + echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + *:GNU:*:*) + # the GNU system + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` + exit ;; + *:GNU/*:*:*) + # other systems with GNU libc and userland + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} + exit ;; + i*86:Minix:*:*) + echo ${UNAME_MACHINE}-pc-minix + exit ;; + aarch64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + aarch64_be:Linux:*:*) + UNAME_MACHINE=aarch64_be + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + alpha:Linux:*:*) + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in + EV5) UNAME_MACHINE=alphaev5 ;; + EV56) UNAME_MACHINE=alphaev56 ;; + PCA56) UNAME_MACHINE=alphapca56 ;; + PCA57) UNAME_MACHINE=alphapca56 ;; + EV6) UNAME_MACHINE=alphaev6 ;; + EV67) UNAME_MACHINE=alphaev67 ;; + EV68*) UNAME_MACHINE=alphaev68 ;; + esac + objdump --private-headers /bin/sh | grep -q ld.so.1 + if test "$?" = 0 ; then LIBC=gnulibc1 ; fi + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + arc:Linux:*:* | arceb:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + arm*:Linux:*:*) + eval $set_cc_for_build + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ARM_EABI__ + then + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + else + if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ARM_PCS_VFP + then + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi + else + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf + fi + fi + exit ;; + avr32*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + cris:Linux:*:*) + echo ${UNAME_MACHINE}-axis-linux-${LIBC} + exit ;; + crisv32:Linux:*:*) + echo ${UNAME_MACHINE}-axis-linux-${LIBC} + exit ;; + e2k:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + frv:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + hexagon:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + i*86:Linux:*:*) + echo ${UNAME_MACHINE}-pc-linux-${LIBC} + exit ;; + ia64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + k1om:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + m32r*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + m68*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + mips:Linux:*:* | mips64:Linux:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #undef CPU + #undef ${UNAME_MACHINE} + #undef ${UNAME_MACHINE}el + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) + CPU=${UNAME_MACHINE}el + #else + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) + CPU=${UNAME_MACHINE} + #else + CPU= + #endif + #endif +EOF + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } + ;; + mips64el:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + openrisc*:Linux:*:*) + echo or1k-unknown-linux-${LIBC} + exit ;; + or32:Linux:*:* | or1k*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + padre:Linux:*:*) + echo sparc-unknown-linux-${LIBC} + exit ;; + parisc64:Linux:*:* | hppa64:Linux:*:*) + echo hppa64-unknown-linux-${LIBC} + exit ;; + parisc:Linux:*:* | hppa:Linux:*:*) + # Look for CPU level + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in + PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; + PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; + *) echo hppa-unknown-linux-${LIBC} ;; + esac + exit ;; + ppc64:Linux:*:*) + echo powerpc64-unknown-linux-${LIBC} + exit ;; + ppc:Linux:*:*) + echo powerpc-unknown-linux-${LIBC} + exit ;; + ppc64le:Linux:*:*) + echo powerpc64le-unknown-linux-${LIBC} + exit ;; + ppcle:Linux:*:*) + echo powerpcle-unknown-linux-${LIBC} + exit ;; + riscv32:Linux:*:* | riscv64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + s390:Linux:*:* | s390x:Linux:*:*) + echo ${UNAME_MACHINE}-ibm-linux-${LIBC} + exit ;; + sh64*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + sh*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + sparc:Linux:*:* | sparc64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + tile*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + vax:Linux:*:*) + echo ${UNAME_MACHINE}-dec-linux-${LIBC} + exit ;; + x86_64:Linux:*:*) + echo ${UNAME_MACHINE}-pc-linux-${LIBC} + exit ;; + xtensa*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + i*86:DYNIX/ptx:4*:*) + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. + # earlier versions are messed up and put the nodename in both + # sysname and nodename. + echo i386-sequent-sysv4 + exit ;; + i*86:UNIX_SV:4.2MP:2.*) + # Unixware is an offshoot of SVR4, but it has its own version + # number series starting with 2... + # I am not positive that other SVR4 systems won't match this, + # I just have to hope. -- rms. + # Use sysv4.2uw... so that sysv4* matches it. + echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} + exit ;; + i*86:OS/2:*:*) + # If we were able to find `uname', then EMX Unix compatibility + # is probably installed. + echo ${UNAME_MACHINE}-pc-os2-emx + exit ;; + i*86:XTS-300:*:STOP) + echo ${UNAME_MACHINE}-unknown-stop + exit ;; + i*86:atheos:*:*) + echo ${UNAME_MACHINE}-unknown-atheos + exit ;; + i*86:syllable:*:*) + echo ${UNAME_MACHINE}-pc-syllable + exit ;; + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) + echo i386-unknown-lynxos${UNAME_RELEASE} + exit ;; + i*86:*DOS:*:*) + echo ${UNAME_MACHINE}-pc-msdosdjgpp + exit ;; + i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) + UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` + if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then + echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} + else + echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} + fi + exit ;; + i*86:*:5:[678]*) + # UnixWare 7.x, OpenUNIX and OpenServer 6. + case `/bin/uname -X | grep "^Machine"` in + *486*) UNAME_MACHINE=i486 ;; + *Pentium) UNAME_MACHINE=i586 ;; + *Pent*|*Celeron) UNAME_MACHINE=i686 ;; + esac + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} + exit ;; + i*86:*:3.2:*) + if test -f /usr/options/cb.name; then + UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ + && UNAME_MACHINE=i586 + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ + && UNAME_MACHINE=i686 + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ + && UNAME_MACHINE=i686 + echo ${UNAME_MACHINE}-pc-sco$UNAME_REL + else + echo ${UNAME_MACHINE}-pc-sysv32 + fi + exit ;; + pc:*:*:*) + # Left here for compatibility: + # uname -m prints for DJGPP always 'pc', but it prints nothing about + # the processor, so we play safe by assuming i586. + # Note: whatever this is, it MUST be the same as what config.sub + # prints for the "djgpp" host, or else GDB configure will decide that + # this is a cross-build. + echo i586-pc-msdosdjgpp + exit ;; + Intel:Mach:3*:*) + echo i386-pc-mach3 + exit ;; + paragon:*:*:*) + echo i860-intel-osf1 + exit ;; + i860:*:4.*:*) # i860-SVR4 + if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then + echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 + else # Add other i860-SVR4 vendors below as they are discovered. + echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 + fi + exit ;; + mini*:CTIX:SYS*5:*) + # "miniframe" + echo m68010-convergent-sysv + exit ;; + mc68k:UNIX:SYSTEM5:3.51m) + echo m68k-convergent-sysv + exit ;; + M680?0:D-NIX:5.3:*) + echo m68k-diab-dnix + exit ;; + M68*:*:R3V[5678]*:*) + test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; + 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) + OS_REL='' + test -r /etc/.relid \ + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4.3${OS_REL}; exit; } + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; + 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4; exit; } ;; + NCR*:*:4.2:* | MPRAS*:*:4.2:*) + OS_REL='.3' + test -r /etc/.relid \ + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4.3${OS_REL}; exit; } + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) + echo m68k-unknown-lynxos${UNAME_RELEASE} + exit ;; + mc68030:UNIX_System_V:4.*:*) + echo m68k-atari-sysv4 + exit ;; + TSUNAMI:LynxOS:2.*:*) + echo sparc-unknown-lynxos${UNAME_RELEASE} + exit ;; + rs6000:LynxOS:2.*:*) + echo rs6000-unknown-lynxos${UNAME_RELEASE} + exit ;; + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) + echo powerpc-unknown-lynxos${UNAME_RELEASE} + exit ;; + SM[BE]S:UNIX_SV:*:*) + echo mips-dde-sysv${UNAME_RELEASE} + exit ;; + RM*:ReliantUNIX-*:*:*) + echo mips-sni-sysv4 + exit ;; + RM*:SINIX-*:*:*) + echo mips-sni-sysv4 + exit ;; + *:SINIX-*:*:*) + if uname -p 2>/dev/null >/dev/null ; then + UNAME_MACHINE=`(uname -p) 2>/dev/null` + echo ${UNAME_MACHINE}-sni-sysv4 + else + echo ns32k-sni-sysv + fi + exit ;; + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort + # says + echo i586-unisys-sysv4 + exit ;; + *:UNIX_System_V:4*:FTX*) + # From Gerald Hewes . + # How about differentiating between stratus architectures? -djm + echo hppa1.1-stratus-sysv4 + exit ;; + *:*:*:FTX*) + # From seanf@swdc.stratus.com. + echo i860-stratus-sysv4 + exit ;; + i*86:VOS:*:*) + # From Paul.Green@stratus.com. + echo ${UNAME_MACHINE}-stratus-vos + exit ;; + *:VOS:*:*) + # From Paul.Green@stratus.com. + echo hppa1.1-stratus-vos + exit ;; + mc68*:A/UX:*:*) + echo m68k-apple-aux${UNAME_RELEASE} + exit ;; + news*:NEWS-OS:6*:*) + echo mips-sony-newsos6 + exit ;; + R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) + if [ -d /usr/nec ]; then + echo mips-nec-sysv${UNAME_RELEASE} + else + echo mips-unknown-sysv${UNAME_RELEASE} + fi + exit ;; + BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. + echo powerpc-be-beos + exit ;; + BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. + echo powerpc-apple-beos + exit ;; + BePC:BeOS:*:*) # BeOS running on Intel PC compatible. + echo i586-pc-beos + exit ;; + BePC:Haiku:*:*) # Haiku running on Intel PC compatible. + echo i586-pc-haiku + exit ;; + x86_64:Haiku:*:*) + echo x86_64-unknown-haiku + exit ;; + SX-4:SUPER-UX:*:*) + echo sx4-nec-superux${UNAME_RELEASE} + exit ;; + SX-5:SUPER-UX:*:*) + echo sx5-nec-superux${UNAME_RELEASE} + exit ;; + SX-6:SUPER-UX:*:*) + echo sx6-nec-superux${UNAME_RELEASE} + exit ;; + SX-7:SUPER-UX:*:*) + echo sx7-nec-superux${UNAME_RELEASE} + exit ;; + SX-8:SUPER-UX:*:*) + echo sx8-nec-superux${UNAME_RELEASE} + exit ;; + SX-8R:SUPER-UX:*:*) + echo sx8r-nec-superux${UNAME_RELEASE} + exit ;; + SX-ACE:SUPER-UX:*:*) + echo sxace-nec-superux${UNAME_RELEASE} + exit ;; + Power*:Rhapsody:*:*) + echo powerpc-apple-rhapsody${UNAME_RELEASE} + exit ;; + *:Rhapsody:*:*) + echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} + exit ;; + *:Darwin:*:*) + UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown + eval $set_cc_for_build + if test "$UNAME_PROCESSOR" = unknown ; then + UNAME_PROCESSOR=powerpc + fi + if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then + if [ "$CC_FOR_BUILD" != no_compiler_found ]; then + if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ + (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_64BIT_ARCH >/dev/null + then + case $UNAME_PROCESSOR in + i386) UNAME_PROCESSOR=x86_64 ;; + powerpc) UNAME_PROCESSOR=powerpc64 ;; + esac + fi + # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc + if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ + (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_PPC >/dev/null + then + UNAME_PROCESSOR=powerpc + fi + fi + elif test "$UNAME_PROCESSOR" = i386 ; then + # Avoid executing cc on OS X 10.9, as it ships with a stub + # that puts up a graphical alert prompting to install + # developer tools. Any system running Mac OS X 10.7 or + # later (Darwin 11 and later) is required to have a 64-bit + # processor. This is not true of the ARM version of Darwin + # that Apple uses in portable devices. + UNAME_PROCESSOR=x86_64 + fi + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} + exit ;; + *:procnto*:*:* | *:QNX:[0123456789]*:*) + UNAME_PROCESSOR=`uname -p` + if test "$UNAME_PROCESSOR" = x86; then + UNAME_PROCESSOR=i386 + UNAME_MACHINE=pc + fi + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} + exit ;; + *:QNX:*:4*) + echo i386-pc-qnx + exit ;; + NEO-*:NONSTOP_KERNEL:*:*) + echo neo-tandem-nsk${UNAME_RELEASE} + exit ;; + NSE-*:NONSTOP_KERNEL:*:*) + echo nse-tandem-nsk${UNAME_RELEASE} + exit ;; + NSR-*:NONSTOP_KERNEL:*:*) + echo nsr-tandem-nsk${UNAME_RELEASE} + exit ;; + NSX-*:NONSTOP_KERNEL:*:*) + echo nsx-tandem-nsk${UNAME_RELEASE} + exit ;; + *:NonStop-UX:*:*) + echo mips-compaq-nonstopux + exit ;; + BS2000:POSIX*:*:*) + echo bs2000-siemens-sysv + exit ;; + DS/*:UNIX_System_V:*:*) + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} + exit ;; + *:Plan9:*:*) + # "uname -m" is not consistent, so use $cputype instead. 386 + # is converted to i386 for consistency with other x86 + # operating systems. + if test "$cputype" = 386; then + UNAME_MACHINE=i386 + else + UNAME_MACHINE="$cputype" + fi + echo ${UNAME_MACHINE}-unknown-plan9 + exit ;; + *:TOPS-10:*:*) + echo pdp10-unknown-tops10 + exit ;; + *:TENEX:*:*) + echo pdp10-unknown-tenex + exit ;; + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) + echo pdp10-dec-tops20 + exit ;; + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) + echo pdp10-xkl-tops20 + exit ;; + *:TOPS-20:*:*) + echo pdp10-unknown-tops20 + exit ;; + *:ITS:*:*) + echo pdp10-unknown-its + exit ;; + SEI:*:*:SEIUX) + echo mips-sei-seiux${UNAME_RELEASE} + exit ;; + *:DragonFly:*:*) + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` + exit ;; + *:*VMS:*:*) + UNAME_MACHINE=`(uname -p) 2>/dev/null` + case "${UNAME_MACHINE}" in + A*) echo alpha-dec-vms ; exit ;; + I*) echo ia64-dec-vms ; exit ;; + V*) echo vax-dec-vms ; exit ;; + esac ;; + *:XENIX:*:SysV) + echo i386-pc-xenix + exit ;; + i*86:skyos:*:*) + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE} | sed -e 's/ .*$//'` + exit ;; + i*86:rdos:*:*) + echo ${UNAME_MACHINE}-pc-rdos + exit ;; + i*86:AROS:*:*) + echo ${UNAME_MACHINE}-pc-aros + exit ;; + x86_64:VMkernel:*:*) + echo ${UNAME_MACHINE}-unknown-esx + exit ;; + amd64:Isilon\ OneFS:*:*) + echo x86_64-unknown-onefs + exit ;; +esac + +cat >&2 </dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null` + +hostinfo = `(hostinfo) 2>/dev/null` +/bin/universe = `(/bin/universe) 2>/dev/null` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` +/bin/arch = `(/bin/arch) 2>/dev/null` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` + +UNAME_MACHINE = ${UNAME_MACHINE} +UNAME_RELEASE = ${UNAME_RELEASE} +UNAME_SYSTEM = ${UNAME_SYSTEM} +UNAME_VERSION = ${UNAME_VERSION} +EOF + +exit 1 + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "timestamp='" +# time-stamp-format: "%:y-%02m-%02d" +# time-stamp-end: "'" +# End: diff --git a/components/opus/libopus/config.h.cmake.in b/components/opus/libopus/config.h.cmake.in new file mode 100644 index 0000000..5550842 --- /dev/null +++ b/components/opus/libopus/config.h.cmake.in @@ -0,0 +1 @@ +#cmakedefine PACKAGE_VERSION "@PACKAGE_VERSION@" \ No newline at end of file diff --git a/components/opus/libopus/config.h.in b/components/opus/libopus/config.h.in new file mode 100644 index 0000000..347a72b --- /dev/null +++ b/components/opus/libopus/config.h.in @@ -0,0 +1,207 @@ +/* config.h.in. Generated from configure.ac by autoheader. */ + +/* Get CPU Info by asm method */ +#undef CPU_INFO_BY_ASM + +/* Get CPU Info by c method */ +#undef CPU_INFO_BY_C + +/* Custom modes */ +#undef CUSTOM_MODES + +/* Do not build the float API */ +#undef DISABLE_FLOAT_API + +/* Disable bitstream fixes from RFC 8251 */ +#undef DISABLE_UPDATE_DRAFT + +/* Assertions */ +#undef ENABLE_ASSERTIONS + +/* Hardening */ +#undef ENABLE_HARDENING + +/* Debug fixed-point implementation */ +#undef FIXED_DEBUG + +/* Compile as fixed-point (for machines without a fast enough FPU) */ +#undef FIXED_POINT + +/* Float approximations */ +#undef FLOAT_APPROX + +/* Fuzzing */ +#undef FUZZING + +/* Define to 1 if you have the header file. */ +#undef HAVE_ALLOCA_H + +/* NE10 library is installed on host. Make sure it is on target! */ +#undef HAVE_ARM_NE10 + +/* Define to 1 if you have the header file. */ +#undef HAVE_DLFCN_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_INTTYPES_H + +/* Define to 1 if you have the `lrint' function. */ +#undef HAVE_LRINT + +/* Define to 1 if you have the `lrintf' function. */ +#undef HAVE_LRINTF + +/* Define to 1 if you have the header file. */ +#undef HAVE_MEMORY_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDINT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDLIB_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRINGS_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRING_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_STAT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_TYPES_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_UNISTD_H + +/* Define to 1 if you have the `__malloc_hook' function. */ +#undef HAVE___MALLOC_HOOK + +/* Define to the sub-directory where libtool stores uninstalled libraries. */ +#undef LT_OBJDIR + +/* Make use of ARM asm optimization */ +#undef OPUS_ARM_ASM + +/* Use generic ARMv4 inline asm optimizations */ +#undef OPUS_ARM_INLINE_ASM + +/* Use ARMv5E inline asm optimizations */ +#undef OPUS_ARM_INLINE_EDSP + +/* Use ARMv6 inline asm optimizations */ +#undef OPUS_ARM_INLINE_MEDIA + +/* Use ARM NEON inline asm optimizations */ +#undef OPUS_ARM_INLINE_NEON + +/* Define if assembler supports EDSP instructions */ +#undef OPUS_ARM_MAY_HAVE_EDSP + +/* Define if assembler supports ARMv6 media instructions */ +#undef OPUS_ARM_MAY_HAVE_MEDIA + +/* Define if compiler supports NEON instructions */ +#undef OPUS_ARM_MAY_HAVE_NEON + +/* Compiler supports ARMv7/Aarch64 Neon Intrinsics */ +#undef OPUS_ARM_MAY_HAVE_NEON_INTR + +/* Define if binary requires Aarch64 Neon Intrinsics */ +#undef OPUS_ARM_PRESUME_AARCH64_NEON_INTR + +/* Define if binary requires EDSP instruction support */ +#undef OPUS_ARM_PRESUME_EDSP + +/* Define if binary requires ARMv6 media instruction support */ +#undef OPUS_ARM_PRESUME_MEDIA + +/* Define if binary requires NEON instruction support */ +#undef OPUS_ARM_PRESUME_NEON + +/* Define if binary requires NEON intrinsics support */ +#undef OPUS_ARM_PRESUME_NEON_INTR + +/* This is a build of OPUS */ +#undef OPUS_BUILD + +/* Run bit-exactness checks between optimized and c implementations */ +#undef OPUS_CHECK_ASM + +/* Use run-time CPU capabilities detection */ +#undef OPUS_HAVE_RTCD + +/* Compiler supports X86 AVX Intrinsics */ +#undef OPUS_X86_MAY_HAVE_AVX + +/* Compiler supports X86 SSE Intrinsics */ +#undef OPUS_X86_MAY_HAVE_SSE + +/* Compiler supports X86 SSE2 Intrinsics */ +#undef OPUS_X86_MAY_HAVE_SSE2 + +/* Compiler supports X86 SSE4.1 Intrinsics */ +#undef OPUS_X86_MAY_HAVE_SSE4_1 + +/* Define if binary requires AVX intrinsics support */ +#undef OPUS_X86_PRESUME_AVX + +/* Define if binary requires SSE intrinsics support */ +#undef OPUS_X86_PRESUME_SSE + +/* Define if binary requires SSE2 intrinsics support */ +#undef OPUS_X86_PRESUME_SSE2 + +/* Define if binary requires SSE4.1 intrinsics support */ +#undef OPUS_X86_PRESUME_SSE4_1 + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* Define to 1 if you have the ANSI C header files. */ +#undef STDC_HEADERS + +/* Make use of alloca */ +#undef USE_ALLOCA + +/* Use C99 variable-size arrays */ +#undef VAR_ARRAYS + +/* Define to empty if `const' does not conform to ANSI C. */ +#undef const + +/* Define to `__inline__' or `__inline' if that's what the C compiler + calls it, or to nothing if 'inline' is not supported under any name. */ +#ifndef __cplusplus +#undef inline +#endif + +/* Define to the equivalent of the C99 'restrict' keyword, or to + nothing if this is not supported. Do not define if restrict is + supported directly. */ +#undef restrict +/* Work around a bug in Sun C++: it does not support _Restrict or + __restrict__, even though the corresponding Sun C compiler ends up with + "#define restrict _Restrict" or "#define restrict __restrict__" in the + previous line. Perhaps some future version of Sun C++ will work with + restrict; if so, hopefully it defines __RESTRICT like Sun C does. */ +#if defined __SUNPRO_CC && !defined __RESTRICT +# define _Restrict +# define __restrict__ +#endif diff --git a/components/opus/libopus/config.sub b/components/opus/libopus/config.sub new file mode 100644 index 0000000..932128b --- /dev/null +++ b/components/opus/libopus/config.sub @@ -0,0 +1,1836 @@ +#! /bin/sh +# Configuration validation subroutine script. +# Copyright 1992-2017 Free Software Foundation, Inc. + +timestamp='2017-04-02' + +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, see . +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that +# program. This Exception is an additional permission under section 7 +# of the GNU General Public License, version 3 ("GPLv3"). + + +# Please send patches to . +# +# Configuration subroutine to validate and canonicalize a configuration type. +# Supply the specified configuration type as an argument. +# If it is invalid, we print an error message on stderr and exit with code 1. +# Otherwise, we print the canonical config type on stdout and succeed. + +# You can get the latest version of this script from: +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub + +# This file is supposed to be the same for all GNU packages +# and recognize all the CPU types, system types and aliases +# that are meaningful with *any* GNU software. +# Each package is responsible for reporting which valid configurations +# it does not support. The user should be able to distinguish +# a failure to support a valid configuration from a meaningless +# configuration. + +# The goal of this file is to map all the various variations of a given +# machine specification into a single specification in the form: +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM +# or in some cases, the newer four-part form: +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM +# It is wrong to echo any other type of specification. + +me=`echo "$0" | sed -e 's,.*/,,'` + +usage="\ +Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS + +Canonicalize a configuration name. + +Operation modes: + -h, --help print this help, then exit + -t, --time-stamp print date of last modification, then exit + -v, --version print version number, then exit + +Report bugs and patches to ." + +version="\ +GNU config.sub ($timestamp) + +Copyright 1992-2017 Free Software Foundation, Inc. + +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." + +help=" +Try \`$me --help' for more information." + +# Parse command line +while test $# -gt 0 ; do + case $1 in + --time-stamp | --time* | -t ) + echo "$timestamp" ; exit ;; + --version | -v ) + echo "$version" ; exit ;; + --help | --h* | -h ) + echo "$usage"; exit ;; + -- ) # Stop option processing + shift; break ;; + - ) # Use stdin as input. + break ;; + -* ) + echo "$me: invalid option $1$help" + exit 1 ;; + + *local*) + # First pass through any local machine types. + echo $1 + exit ;; + + * ) + break ;; + esac +done + +case $# in + 0) echo "$me: missing argument$help" >&2 + exit 1;; + 1) ;; + *) echo "$me: too many arguments$help" >&2 + exit 1;; +esac + +# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). +# Here we must recognize all the valid KERNEL-OS combinations. +maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` +case $maybe_os in + nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ + linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ + knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \ + kopensolaris*-gnu* | cloudabi*-eabi* | \ + storm-chaos* | os2-emx* | rtmk-nova*) + os=-$maybe_os + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` + ;; + android-linux) + os=-linux-android + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown + ;; + *) + basic_machine=`echo $1 | sed 's/-[^-]*$//'` + if [ $basic_machine != $1 ] + then os=`echo $1 | sed 's/.*-/-/'` + else os=; fi + ;; +esac + +### Let's recognize common machines as not being operating systems so +### that things like config.sub decstation-3100 work. We also +### recognize some manufacturers as not being operating systems, so we +### can provide default operating systems below. +case $os in + -sun*os*) + # Prevent following clause from handling this invalid input. + ;; + -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ + -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ + -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ + -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ + -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ + -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ + -apple | -axis | -knuth | -cray | -microblaze*) + os= + basic_machine=$1 + ;; + -bluegene*) + os=-cnk + ;; + -sim | -cisco | -oki | -wec | -winbond) + os= + basic_machine=$1 + ;; + -scout) + ;; + -wrs) + os=-vxworks + basic_machine=$1 + ;; + -chorusos*) + os=-chorusos + basic_machine=$1 + ;; + -chorusrdb) + os=-chorusrdb + basic_machine=$1 + ;; + -hiux*) + os=-hiuxwe2 + ;; + -sco6) + os=-sco5v6 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco5) + os=-sco3.2v5 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco4) + os=-sco3.2v4 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco3.2.[4-9]*) + os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco3.2v[4-9]*) + # Don't forget version if it is 3.2v4 or newer. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco5v6*) + # Don't forget version if it is 3.2v4 or newer. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco*) + os=-sco3.2v2 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -udk*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -isc) + os=-isc2.2 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -clix*) + basic_machine=clipper-intergraph + ;; + -isc*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -lynx*178) + os=-lynxos178 + ;; + -lynx*5) + os=-lynxos5 + ;; + -lynx*) + os=-lynxos + ;; + -ptx*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` + ;; + -windowsnt*) + os=`echo $os | sed -e 's/windowsnt/winnt/'` + ;; + -psos*) + os=-psos + ;; + -mint | -mint[0-9]*) + basic_machine=m68k-atari + os=-mint + ;; +esac + +# Decode aliases for certain CPU-COMPANY combinations. +case $basic_machine in + # Recognize the basic CPU types without company name. + # Some are omitted here because they have special meanings below. + 1750a | 580 \ + | a29k \ + | aarch64 | aarch64_be \ + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ + | am33_2.0 \ + | arc | arceb \ + | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ + | avr | avr32 \ + | ba \ + | be32 | be64 \ + | bfin \ + | c4x | c8051 | clipper \ + | d10v | d30v | dlx | dsp16xx \ + | e2k | epiphany \ + | fido | fr30 | frv | ft32 \ + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ + | hexagon \ + | i370 | i860 | i960 | ia16 | ia64 \ + | ip2k | iq2000 \ + | k1om \ + | le32 | le64 \ + | lm32 \ + | m32c | m32r | m32rle | m68000 | m68k | m88k \ + | maxq | mb | microblaze | microblazeel | mcore | mep | metag \ + | mips | mipsbe | mipseb | mipsel | mipsle \ + | mips16 \ + | mips64 | mips64el \ + | mips64octeon | mips64octeonel \ + | mips64orion | mips64orionel \ + | mips64r5900 | mips64r5900el \ + | mips64vr | mips64vrel \ + | mips64vr4100 | mips64vr4100el \ + | mips64vr4300 | mips64vr4300el \ + | mips64vr5000 | mips64vr5000el \ + | mips64vr5900 | mips64vr5900el \ + | mipsisa32 | mipsisa32el \ + | mipsisa32r2 | mipsisa32r2el \ + | mipsisa32r6 | mipsisa32r6el \ + | mipsisa64 | mipsisa64el \ + | mipsisa64r2 | mipsisa64r2el \ + | mipsisa64r6 | mipsisa64r6el \ + | mipsisa64sb1 | mipsisa64sb1el \ + | mipsisa64sr71k | mipsisa64sr71kel \ + | mipsr5900 | mipsr5900el \ + | mipstx39 | mipstx39el \ + | mn10200 | mn10300 \ + | moxie \ + | mt \ + | msp430 \ + | nds32 | nds32le | nds32be \ + | nios | nios2 | nios2eb | nios2el \ + | ns16k | ns32k \ + | open8 | or1k | or1knd | or32 \ + | pdp10 | pdp11 | pj | pjl \ + | powerpc | powerpc64 | powerpc64le | powerpcle \ + | pru \ + | pyramid \ + | riscv32 | riscv64 \ + | rl78 | rx \ + | score \ + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ + | sh64 | sh64le \ + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ + | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ + | spu \ + | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ + | ubicom32 \ + | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ + | visium \ + | wasm32 \ + | we32k \ + | x86 | xc16x | xstormy16 | xtensa \ + | z8k | z80) + basic_machine=$basic_machine-unknown + ;; + c54x) + basic_machine=tic54x-unknown + ;; + c55x) + basic_machine=tic55x-unknown + ;; + c6x) + basic_machine=tic6x-unknown + ;; + leon|leon[3-9]) + basic_machine=sparc-$basic_machine + ;; + m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip) + basic_machine=$basic_machine-unknown + os=-none + ;; + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) + ;; + ms1) + basic_machine=mt-unknown + ;; + + strongarm | thumb | xscale) + basic_machine=arm-unknown + ;; + xgate) + basic_machine=$basic_machine-unknown + os=-none + ;; + xscaleeb) + basic_machine=armeb-unknown + ;; + + xscaleel) + basic_machine=armel-unknown + ;; + + # We use `pc' rather than `unknown' + # because (1) that's what they normally are, and + # (2) the word "unknown" tends to confuse beginning users. + i*86 | x86_64) + basic_machine=$basic_machine-pc + ;; + # Object if more than one company name word. + *-*-*) + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + exit 1 + ;; + # Recognize the basic CPU types with company name. + 580-* \ + | a29k-* \ + | aarch64-* | aarch64_be-* \ + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \ + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ + | avr-* | avr32-* \ + | ba-* \ + | be32-* | be64-* \ + | bfin-* | bs2000-* \ + | c[123]* | c30-* | [cjt]90-* | c4x-* \ + | c8051-* | clipper-* | craynv-* | cydra-* \ + | d10v-* | d30v-* | dlx-* \ + | e2k-* | elxsi-* \ + | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ + | h8300-* | h8500-* \ + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ + | hexagon-* \ + | i*86-* | i860-* | i960-* | ia16-* | ia64-* \ + | ip2k-* | iq2000-* \ + | k1om-* \ + | le32-* | le64-* \ + | lm32-* \ + | m32c-* | m32r-* | m32rle-* \ + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ + | microblaze-* | microblazeel-* \ + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ + | mips16-* \ + | mips64-* | mips64el-* \ + | mips64octeon-* | mips64octeonel-* \ + | mips64orion-* | mips64orionel-* \ + | mips64r5900-* | mips64r5900el-* \ + | mips64vr-* | mips64vrel-* \ + | mips64vr4100-* | mips64vr4100el-* \ + | mips64vr4300-* | mips64vr4300el-* \ + | mips64vr5000-* | mips64vr5000el-* \ + | mips64vr5900-* | mips64vr5900el-* \ + | mipsisa32-* | mipsisa32el-* \ + | mipsisa32r2-* | mipsisa32r2el-* \ + | mipsisa32r6-* | mipsisa32r6el-* \ + | mipsisa64-* | mipsisa64el-* \ + | mipsisa64r2-* | mipsisa64r2el-* \ + | mipsisa64r6-* | mipsisa64r6el-* \ + | mipsisa64sb1-* | mipsisa64sb1el-* \ + | mipsisa64sr71k-* | mipsisa64sr71kel-* \ + | mipsr5900-* | mipsr5900el-* \ + | mipstx39-* | mipstx39el-* \ + | mmix-* \ + | mt-* \ + | msp430-* \ + | nds32-* | nds32le-* | nds32be-* \ + | nios-* | nios2-* | nios2eb-* | nios2el-* \ + | none-* | np1-* | ns16k-* | ns32k-* \ + | open8-* \ + | or1k*-* \ + | orion-* \ + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ + | pru-* \ + | pyramid-* \ + | riscv32-* | riscv64-* \ + | rl78-* | romp-* | rs6000-* | rx-* \ + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ + | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ + | sparclite-* \ + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \ + | tahoe-* \ + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ + | tile*-* \ + | tron-* \ + | ubicom32-* \ + | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ + | vax-* \ + | visium-* \ + | wasm32-* \ + | we32k-* \ + | x86-* | x86_64-* | xc16x-* | xps100-* \ + | xstormy16-* | xtensa*-* \ + | ymp-* \ + | z8k-* | z80-*) + ;; + # Recognize the basic CPU types without company name, with glob match. + xtensa*) + basic_machine=$basic_machine-unknown + ;; + # Recognize the various machine names and aliases which stand + # for a CPU type and a company and sometimes even an OS. + 386bsd) + basic_machine=i386-unknown + os=-bsd + ;; + 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) + basic_machine=m68000-att + ;; + 3b*) + basic_machine=we32k-att + ;; + a29khif) + basic_machine=a29k-amd + os=-udi + ;; + abacus) + basic_machine=abacus-unknown + ;; + adobe68k) + basic_machine=m68010-adobe + os=-scout + ;; + alliant | fx80) + basic_machine=fx80-alliant + ;; + altos | altos3068) + basic_machine=m68k-altos + ;; + am29k) + basic_machine=a29k-none + os=-bsd + ;; + amd64) + basic_machine=x86_64-pc + ;; + amd64-*) + basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + amdahl) + basic_machine=580-amdahl + os=-sysv + ;; + amiga | amiga-*) + basic_machine=m68k-unknown + ;; + amigaos | amigados) + basic_machine=m68k-unknown + os=-amigaos + ;; + amigaunix | amix) + basic_machine=m68k-unknown + os=-sysv4 + ;; + apollo68) + basic_machine=m68k-apollo + os=-sysv + ;; + apollo68bsd) + basic_machine=m68k-apollo + os=-bsd + ;; + aros) + basic_machine=i386-pc + os=-aros + ;; + asmjs) + basic_machine=asmjs-unknown + ;; + aux) + basic_machine=m68k-apple + os=-aux + ;; + balance) + basic_machine=ns32k-sequent + os=-dynix + ;; + blackfin) + basic_machine=bfin-unknown + os=-linux + ;; + blackfin-*) + basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` + os=-linux + ;; + bluegene*) + basic_machine=powerpc-ibm + os=-cnk + ;; + c54x-*) + basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + c55x-*) + basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + c6x-*) + basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + c90) + basic_machine=c90-cray + os=-unicos + ;; + cegcc) + basic_machine=arm-unknown + os=-cegcc + ;; + convex-c1) + basic_machine=c1-convex + os=-bsd + ;; + convex-c2) + basic_machine=c2-convex + os=-bsd + ;; + convex-c32) + basic_machine=c32-convex + os=-bsd + ;; + convex-c34) + basic_machine=c34-convex + os=-bsd + ;; + convex-c38) + basic_machine=c38-convex + os=-bsd + ;; + cray | j90) + basic_machine=j90-cray + os=-unicos + ;; + craynv) + basic_machine=craynv-cray + os=-unicosmp + ;; + cr16 | cr16-*) + basic_machine=cr16-unknown + os=-elf + ;; + crds | unos) + basic_machine=m68k-crds + ;; + crisv32 | crisv32-* | etraxfs*) + basic_machine=crisv32-axis + ;; + cris | cris-* | etrax*) + basic_machine=cris-axis + ;; + crx) + basic_machine=crx-unknown + os=-elf + ;; + da30 | da30-*) + basic_machine=m68k-da30 + ;; + decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) + basic_machine=mips-dec + ;; + decsystem10* | dec10*) + basic_machine=pdp10-dec + os=-tops10 + ;; + decsystem20* | dec20*) + basic_machine=pdp10-dec + os=-tops20 + ;; + delta | 3300 | motorola-3300 | motorola-delta \ + | 3300-motorola | delta-motorola) + basic_machine=m68k-motorola + ;; + delta88) + basic_machine=m88k-motorola + os=-sysv3 + ;; + dicos) + basic_machine=i686-pc + os=-dicos + ;; + djgpp) + basic_machine=i586-pc + os=-msdosdjgpp + ;; + dpx20 | dpx20-*) + basic_machine=rs6000-bull + os=-bosx + ;; + dpx2* | dpx2*-bull) + basic_machine=m68k-bull + os=-sysv3 + ;; + e500v[12]) + basic_machine=powerpc-unknown + os=$os"spe" + ;; + e500v[12]-*) + basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` + os=$os"spe" + ;; + ebmon29k) + basic_machine=a29k-amd + os=-ebmon + ;; + elxsi) + basic_machine=elxsi-elxsi + os=-bsd + ;; + encore | umax | mmax) + basic_machine=ns32k-encore + ;; + es1800 | OSE68k | ose68k | ose | OSE) + basic_machine=m68k-ericsson + os=-ose + ;; + fx2800) + basic_machine=i860-alliant + ;; + genix) + basic_machine=ns32k-ns + ;; + gmicro) + basic_machine=tron-gmicro + os=-sysv + ;; + go32) + basic_machine=i386-pc + os=-go32 + ;; + h3050r* | hiux*) + basic_machine=hppa1.1-hitachi + os=-hiuxwe2 + ;; + h8300hms) + basic_machine=h8300-hitachi + os=-hms + ;; + h8300xray) + basic_machine=h8300-hitachi + os=-xray + ;; + h8500hms) + basic_machine=h8500-hitachi + os=-hms + ;; + harris) + basic_machine=m88k-harris + os=-sysv3 + ;; + hp300-*) + basic_machine=m68k-hp + ;; + hp300bsd) + basic_machine=m68k-hp + os=-bsd + ;; + hp300hpux) + basic_machine=m68k-hp + os=-hpux + ;; + hp3k9[0-9][0-9] | hp9[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hp9k2[0-9][0-9] | hp9k31[0-9]) + basic_machine=m68000-hp + ;; + hp9k3[2-9][0-9]) + basic_machine=m68k-hp + ;; + hp9k6[0-9][0-9] | hp6[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hp9k7[0-79][0-9] | hp7[0-79][0-9]) + basic_machine=hppa1.1-hp + ;; + hp9k78[0-9] | hp78[0-9]) + # FIXME: really hppa2.0-hp + basic_machine=hppa1.1-hp + ;; + hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) + # FIXME: really hppa2.0-hp + basic_machine=hppa1.1-hp + ;; + hp9k8[0-9][13679] | hp8[0-9][13679]) + basic_machine=hppa1.1-hp + ;; + hp9k8[0-9][0-9] | hp8[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hppa-next) + os=-nextstep3 + ;; + hppaosf) + basic_machine=hppa1.1-hp + os=-osf + ;; + hppro) + basic_machine=hppa1.1-hp + os=-proelf + ;; + i370-ibm* | ibm*) + basic_machine=i370-ibm + ;; + i*86v32) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv32 + ;; + i*86v4*) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv4 + ;; + i*86v) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv + ;; + i*86sol2) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-solaris2 + ;; + i386mach) + basic_machine=i386-mach + os=-mach + ;; + i386-vsta | vsta) + basic_machine=i386-unknown + os=-vsta + ;; + iris | iris4d) + basic_machine=mips-sgi + case $os in + -irix*) + ;; + *) + os=-irix4 + ;; + esac + ;; + isi68 | isi) + basic_machine=m68k-isi + os=-sysv + ;; + leon-*|leon[3-9]-*) + basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'` + ;; + m68knommu) + basic_machine=m68k-unknown + os=-linux + ;; + m68knommu-*) + basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` + os=-linux + ;; + m88k-omron*) + basic_machine=m88k-omron + ;; + magnum | m3230) + basic_machine=mips-mips + os=-sysv + ;; + merlin) + basic_machine=ns32k-utek + os=-sysv + ;; + microblaze*) + basic_machine=microblaze-xilinx + ;; + mingw64) + basic_machine=x86_64-pc + os=-mingw64 + ;; + mingw32) + basic_machine=i686-pc + os=-mingw32 + ;; + mingw32ce) + basic_machine=arm-unknown + os=-mingw32ce + ;; + miniframe) + basic_machine=m68000-convergent + ;; + *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) + basic_machine=m68k-atari + os=-mint + ;; + mips3*-*) + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` + ;; + mips3*) + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown + ;; + monitor) + basic_machine=m68k-rom68k + os=-coff + ;; + morphos) + basic_machine=powerpc-unknown + os=-morphos + ;; + moxiebox) + basic_machine=moxie-unknown + os=-moxiebox + ;; + msdos) + basic_machine=i386-pc + os=-msdos + ;; + ms1-*) + basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` + ;; + msys) + basic_machine=i686-pc + os=-msys + ;; + mvs) + basic_machine=i370-ibm + os=-mvs + ;; + nacl) + basic_machine=le32-unknown + os=-nacl + ;; + ncr3000) + basic_machine=i486-ncr + os=-sysv4 + ;; + netbsd386) + basic_machine=i386-unknown + os=-netbsd + ;; + netwinder) + basic_machine=armv4l-rebel + os=-linux + ;; + news | news700 | news800 | news900) + basic_machine=m68k-sony + os=-newsos + ;; + news1000) + basic_machine=m68030-sony + os=-newsos + ;; + news-3600 | risc-news) + basic_machine=mips-sony + os=-newsos + ;; + necv70) + basic_machine=v70-nec + os=-sysv + ;; + next | m*-next ) + basic_machine=m68k-next + case $os in + -nextstep* ) + ;; + -ns2*) + os=-nextstep2 + ;; + *) + os=-nextstep3 + ;; + esac + ;; + nh3000) + basic_machine=m68k-harris + os=-cxux + ;; + nh[45]000) + basic_machine=m88k-harris + os=-cxux + ;; + nindy960) + basic_machine=i960-intel + os=-nindy + ;; + mon960) + basic_machine=i960-intel + os=-mon960 + ;; + nonstopux) + basic_machine=mips-compaq + os=-nonstopux + ;; + np1) + basic_machine=np1-gould + ;; + neo-tandem) + basic_machine=neo-tandem + ;; + nse-tandem) + basic_machine=nse-tandem + ;; + nsr-tandem) + basic_machine=nsr-tandem + ;; + nsx-tandem) + basic_machine=nsx-tandem + ;; + op50n-* | op60c-*) + basic_machine=hppa1.1-oki + os=-proelf + ;; + openrisc | openrisc-*) + basic_machine=or32-unknown + ;; + os400) + basic_machine=powerpc-ibm + os=-os400 + ;; + OSE68000 | ose68000) + basic_machine=m68000-ericsson + os=-ose + ;; + os68k) + basic_machine=m68k-none + os=-os68k + ;; + pa-hitachi) + basic_machine=hppa1.1-hitachi + os=-hiuxwe2 + ;; + paragon) + basic_machine=i860-intel + os=-osf + ;; + parisc) + basic_machine=hppa-unknown + os=-linux + ;; + parisc-*) + basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` + os=-linux + ;; + pbd) + basic_machine=sparc-tti + ;; + pbb) + basic_machine=m68k-tti + ;; + pc532 | pc532-*) + basic_machine=ns32k-pc532 + ;; + pc98) + basic_machine=i386-pc + ;; + pc98-*) + basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentium | p5 | k5 | k6 | nexgen | viac3) + basic_machine=i586-pc + ;; + pentiumpro | p6 | 6x86 | athlon | athlon_*) + basic_machine=i686-pc + ;; + pentiumii | pentium2 | pentiumiii | pentium3) + basic_machine=i686-pc + ;; + pentium4) + basic_machine=i786-pc + ;; + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) + basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentiumpro-* | p6-* | 6x86-* | athlon-*) + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentium4-*) + basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pn) + basic_machine=pn-gould + ;; + power) basic_machine=power-ibm + ;; + ppc | ppcbe) basic_machine=powerpc-unknown + ;; + ppc-* | ppcbe-*) + basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppcle | powerpclittle) + basic_machine=powerpcle-unknown + ;; + ppcle-* | powerpclittle-*) + basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppc64) basic_machine=powerpc64-unknown + ;; + ppc64-* | ppc64p7-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppc64le | powerpc64little) + basic_machine=powerpc64le-unknown + ;; + ppc64le-* | powerpc64little-*) + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ps2) + basic_machine=i386-ibm + ;; + pw32) + basic_machine=i586-unknown + os=-pw32 + ;; + rdos | rdos64) + basic_machine=x86_64-pc + os=-rdos + ;; + rdos32) + basic_machine=i386-pc + os=-rdos + ;; + rom68k) + basic_machine=m68k-rom68k + os=-coff + ;; + rm[46]00) + basic_machine=mips-siemens + ;; + rtpc | rtpc-*) + basic_machine=romp-ibm + ;; + s390 | s390-*) + basic_machine=s390-ibm + ;; + s390x | s390x-*) + basic_machine=s390x-ibm + ;; + sa29200) + basic_machine=a29k-amd + os=-udi + ;; + sb1) + basic_machine=mipsisa64sb1-unknown + ;; + sb1el) + basic_machine=mipsisa64sb1el-unknown + ;; + sde) + basic_machine=mipsisa32-sde + os=-elf + ;; + sei) + basic_machine=mips-sei + os=-seiux + ;; + sequent) + basic_machine=i386-sequent + ;; + sh) + basic_machine=sh-hitachi + os=-hms + ;; + sh5el) + basic_machine=sh5le-unknown + ;; + sh64) + basic_machine=sh64-unknown + ;; + sparclite-wrs | simso-wrs) + basic_machine=sparclite-wrs + os=-vxworks + ;; + sps7) + basic_machine=m68k-bull + os=-sysv2 + ;; + spur) + basic_machine=spur-unknown + ;; + st2000) + basic_machine=m68k-tandem + ;; + stratus) + basic_machine=i860-stratus + os=-sysv4 + ;; + strongarm-* | thumb-*) + basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + sun2) + basic_machine=m68000-sun + ;; + sun2os3) + basic_machine=m68000-sun + os=-sunos3 + ;; + sun2os4) + basic_machine=m68000-sun + os=-sunos4 + ;; + sun3os3) + basic_machine=m68k-sun + os=-sunos3 + ;; + sun3os4) + basic_machine=m68k-sun + os=-sunos4 + ;; + sun4os3) + basic_machine=sparc-sun + os=-sunos3 + ;; + sun4os4) + basic_machine=sparc-sun + os=-sunos4 + ;; + sun4sol2) + basic_machine=sparc-sun + os=-solaris2 + ;; + sun3 | sun3-*) + basic_machine=m68k-sun + ;; + sun4) + basic_machine=sparc-sun + ;; + sun386 | sun386i | roadrunner) + basic_machine=i386-sun + ;; + sv1) + basic_machine=sv1-cray + os=-unicos + ;; + symmetry) + basic_machine=i386-sequent + os=-dynix + ;; + t3e) + basic_machine=alphaev5-cray + os=-unicos + ;; + t90) + basic_machine=t90-cray + os=-unicos + ;; + tile*) + basic_machine=$basic_machine-unknown + os=-linux-gnu + ;; + tx39) + basic_machine=mipstx39-unknown + ;; + tx39el) + basic_machine=mipstx39el-unknown + ;; + toad1) + basic_machine=pdp10-xkl + os=-tops20 + ;; + tower | tower-32) + basic_machine=m68k-ncr + ;; + tpf) + basic_machine=s390x-ibm + os=-tpf + ;; + udi29k) + basic_machine=a29k-amd + os=-udi + ;; + ultra3) + basic_machine=a29k-nyu + os=-sym1 + ;; + v810 | necv810) + basic_machine=v810-nec + os=-none + ;; + vaxv) + basic_machine=vax-dec + os=-sysv + ;; + vms) + basic_machine=vax-dec + os=-vms + ;; + vpp*|vx|vx-*) + basic_machine=f301-fujitsu + ;; + vxworks960) + basic_machine=i960-wrs + os=-vxworks + ;; + vxworks68) + basic_machine=m68k-wrs + os=-vxworks + ;; + vxworks29k) + basic_machine=a29k-wrs + os=-vxworks + ;; + wasm32) + basic_machine=wasm32-unknown + ;; + w65*) + basic_machine=w65-wdc + os=-none + ;; + w89k-*) + basic_machine=hppa1.1-winbond + os=-proelf + ;; + xbox) + basic_machine=i686-pc + os=-mingw32 + ;; + xps | xps100) + basic_machine=xps100-honeywell + ;; + xscale-* | xscalee[bl]-*) + basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` + ;; + ymp) + basic_machine=ymp-cray + os=-unicos + ;; + z8k-*-coff) + basic_machine=z8k-unknown + os=-sim + ;; + z80-*-coff) + basic_machine=z80-unknown + os=-sim + ;; + none) + basic_machine=none-none + os=-none + ;; + +# Here we handle the default manufacturer of certain CPU types. It is in +# some cases the only manufacturer, in others, it is the most popular. + w89k) + basic_machine=hppa1.1-winbond + ;; + op50n) + basic_machine=hppa1.1-oki + ;; + op60c) + basic_machine=hppa1.1-oki + ;; + romp) + basic_machine=romp-ibm + ;; + mmix) + basic_machine=mmix-knuth + ;; + rs6000) + basic_machine=rs6000-ibm + ;; + vax) + basic_machine=vax-dec + ;; + pdp10) + # there are many clones, so DEC is not a safe bet + basic_machine=pdp10-unknown + ;; + pdp11) + basic_machine=pdp11-dec + ;; + we32k) + basic_machine=we32k-att + ;; + sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) + basic_machine=sh-unknown + ;; + sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) + basic_machine=sparc-sun + ;; + cydra) + basic_machine=cydra-cydrome + ;; + orion) + basic_machine=orion-highlevel + ;; + orion105) + basic_machine=clipper-highlevel + ;; + mac | mpw | mac-mpw) + basic_machine=m68k-apple + ;; + pmac | pmac-mpw) + basic_machine=powerpc-apple + ;; + *-unknown) + # Make sure to match an already-canonicalized machine name. + ;; + *) + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + exit 1 + ;; +esac + +# Here we canonicalize certain aliases for manufacturers. +case $basic_machine in + *-digital*) + basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` + ;; + *-commodore*) + basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` + ;; + *) + ;; +esac + +# Decode manufacturer-specific aliases for certain operating systems. + +if [ x"$os" != x"" ] +then +case $os in + # First match some system type aliases + # that might get confused with valid system types. + # -solaris* is a basic system type, with this one exception. + -auroraux) + os=-auroraux + ;; + -solaris1 | -solaris1.*) + os=`echo $os | sed -e 's|solaris1|sunos4|'` + ;; + -solaris) + os=-solaris2 + ;; + -svr4*) + os=-sysv4 + ;; + -unixware*) + os=-sysv4.2uw + ;; + -gnu/linux*) + os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` + ;; + # First accept the basic system types. + # The portable systems comes first. + # Each alternative MUST END IN A *, to match a version number. + # -sysv* is not here because it comes later, after sysvr4. + -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ + | -sym* | -kopensolaris* | -plan9* \ + | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ + | -aos* | -aros* | -cloudabi* | -sortix* \ + | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ + | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ + | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \ + | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ + | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ + | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ + | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ + | -chorusos* | -chorusrdb* | -cegcc* | -glidix* \ + | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ + | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ + | -linux-newlib* | -linux-musl* | -linux-uclibc* \ + | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \ + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ + | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ + | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \ + | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox*) + # Remember, each alternative MUST END IN *, to match a version number. + ;; + -qnx*) + case $basic_machine in + x86-* | i*86-*) + ;; + *) + os=-nto$os + ;; + esac + ;; + -nto-qnx*) + ;; + -nto*) + os=`echo $os | sed -e 's|nto|nto-qnx|'` + ;; + -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ + | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ + | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) + ;; + -mac*) + os=`echo $os | sed -e 's|mac|macos|'` + ;; + -linux-dietlibc) + os=-linux-dietlibc + ;; + -linux*) + os=`echo $os | sed -e 's|linux|linux-gnu|'` + ;; + -sunos5*) + os=`echo $os | sed -e 's|sunos5|solaris2|'` + ;; + -sunos6*) + os=`echo $os | sed -e 's|sunos6|solaris3|'` + ;; + -opened*) + os=-openedition + ;; + -os400*) + os=-os400 + ;; + -wince*) + os=-wince + ;; + -osfrose*) + os=-osfrose + ;; + -osf*) + os=-osf + ;; + -utek*) + os=-bsd + ;; + -dynix*) + os=-bsd + ;; + -acis*) + os=-aos + ;; + -atheos*) + os=-atheos + ;; + -syllable*) + os=-syllable + ;; + -386bsd) + os=-bsd + ;; + -ctix* | -uts*) + os=-sysv + ;; + -nova*) + os=-rtmk-nova + ;; + -ns2 ) + os=-nextstep2 + ;; + -nsk*) + os=-nsk + ;; + # Preserve the version number of sinix5. + -sinix5.*) + os=`echo $os | sed -e 's|sinix|sysv|'` + ;; + -sinix*) + os=-sysv4 + ;; + -tpf*) + os=-tpf + ;; + -triton*) + os=-sysv3 + ;; + -oss*) + os=-sysv3 + ;; + -svr4) + os=-sysv4 + ;; + -svr3) + os=-sysv3 + ;; + -sysvr4) + os=-sysv4 + ;; + # This must come after -sysvr4. + -sysv*) + ;; + -ose*) + os=-ose + ;; + -es1800*) + os=-ose + ;; + -xenix) + os=-xenix + ;; + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) + os=-mint + ;; + -aros*) + os=-aros + ;; + -zvmoe) + os=-zvmoe + ;; + -dicos*) + os=-dicos + ;; + -nacl*) + ;; + -ios) + ;; + -none) + ;; + *) + # Get rid of the `-' at the beginning of $os. + os=`echo $os | sed 's/[^-]*-//'` + echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 + exit 1 + ;; +esac +else + +# Here we handle the default operating systems that come with various machines. +# The value should be what the vendor currently ships out the door with their +# machine or put another way, the most popular os provided with the machine. + +# Note that if you're going to try to match "-MANUFACTURER" here (say, +# "-sun"), then you have to tell the case statement up towards the top +# that MANUFACTURER isn't an operating system. Otherwise, code above +# will signal an error saying that MANUFACTURER isn't an operating +# system, and we'll never get to this point. + +case $basic_machine in + score-*) + os=-elf + ;; + spu-*) + os=-elf + ;; + *-acorn) + os=-riscix1.2 + ;; + arm*-rebel) + os=-linux + ;; + arm*-semi) + os=-aout + ;; + c4x-* | tic4x-*) + os=-coff + ;; + c8051-*) + os=-elf + ;; + hexagon-*) + os=-elf + ;; + tic54x-*) + os=-coff + ;; + tic55x-*) + os=-coff + ;; + tic6x-*) + os=-coff + ;; + # This must come before the *-dec entry. + pdp10-*) + os=-tops20 + ;; + pdp11-*) + os=-none + ;; + *-dec | vax-*) + os=-ultrix4.2 + ;; + m68*-apollo) + os=-domain + ;; + i386-sun) + os=-sunos4.0.2 + ;; + m68000-sun) + os=-sunos3 + ;; + m68*-cisco) + os=-aout + ;; + mep-*) + os=-elf + ;; + mips*-cisco) + os=-elf + ;; + mips*-*) + os=-elf + ;; + or32-*) + os=-coff + ;; + *-tti) # must be before sparc entry or we get the wrong os. + os=-sysv3 + ;; + sparc-* | *-sun) + os=-sunos4.1.1 + ;; + pru-*) + os=-elf + ;; + *-be) + os=-beos + ;; + *-haiku) + os=-haiku + ;; + *-ibm) + os=-aix + ;; + *-knuth) + os=-mmixware + ;; + *-wec) + os=-proelf + ;; + *-winbond) + os=-proelf + ;; + *-oki) + os=-proelf + ;; + *-hp) + os=-hpux + ;; + *-hitachi) + os=-hiux + ;; + i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) + os=-sysv + ;; + *-cbm) + os=-amigaos + ;; + *-dg) + os=-dgux + ;; + *-dolphin) + os=-sysv3 + ;; + m68k-ccur) + os=-rtu + ;; + m88k-omron*) + os=-luna + ;; + *-next ) + os=-nextstep + ;; + *-sequent) + os=-ptx + ;; + *-crds) + os=-unos + ;; + *-ns) + os=-genix + ;; + i370-*) + os=-mvs + ;; + *-next) + os=-nextstep3 + ;; + *-gould) + os=-sysv + ;; + *-highlevel) + os=-bsd + ;; + *-encore) + os=-bsd + ;; + *-sgi) + os=-irix + ;; + *-siemens) + os=-sysv4 + ;; + *-masscomp) + os=-rtu + ;; + f30[01]-fujitsu | f700-fujitsu) + os=-uxpv + ;; + *-rom68k) + os=-coff + ;; + *-*bug) + os=-coff + ;; + *-apple) + os=-macos + ;; + *-atari*) + os=-mint + ;; + *) + os=-none + ;; +esac +fi + +# Here we handle the case where we know the os, and the CPU type, but not the +# manufacturer. We pick the logical manufacturer. +vendor=unknown +case $basic_machine in + *-unknown) + case $os in + -riscix*) + vendor=acorn + ;; + -sunos*) + vendor=sun + ;; + -cnk*|-aix*) + vendor=ibm + ;; + -beos*) + vendor=be + ;; + -hpux*) + vendor=hp + ;; + -mpeix*) + vendor=hp + ;; + -hiux*) + vendor=hitachi + ;; + -unos*) + vendor=crds + ;; + -dgux*) + vendor=dg + ;; + -luna*) + vendor=omron + ;; + -genix*) + vendor=ns + ;; + -mvs* | -opened*) + vendor=ibm + ;; + -os400*) + vendor=ibm + ;; + -ptx*) + vendor=sequent + ;; + -tpf*) + vendor=ibm + ;; + -vxsim* | -vxworks* | -windiss*) + vendor=wrs + ;; + -aux*) + vendor=apple + ;; + -hms*) + vendor=hitachi + ;; + -mpw* | -macos*) + vendor=apple + ;; + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) + vendor=atari + ;; + -vos*) + vendor=stratus + ;; + esac + basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` + ;; +esac + +echo $basic_machine$os +exit + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "timestamp='" +# time-stamp-format: "%:y-%02m-%02d" +# time-stamp-end: "'" +# End: diff --git a/components/opus/libopus/configure b/components/opus/libopus/configure new file mode 100644 index 0000000..6623770 --- /dev/null +++ b/components/opus/libopus/configure @@ -0,0 +1,17267 @@ +#! /bin/sh +# Guess values for system-dependent variables and create Makefiles. +# Generated by GNU Autoconf 2.69 for opus 1.3.1. +# +# Report bugs to . +# +# +# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. +# +# +# This configure script is free software; the Free Software Foundation +# gives unlimited permission to copy, distribute and modify it. +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in #(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +# Use a proper internal environment variable to ensure we don't fall + # into an infinite loop, continuously re-executing ourselves. + if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then + _as_can_reexec=no; export _as_can_reexec; + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in # (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +as_fn_exit 255 + fi + # We don't want this to propagate to other subprocesses. + { _as_can_reexec=; unset _as_can_reexec;} +if test "x$CONFIG_SHELL" = x; then + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$@\"}'='\"\$@\"' + setopt NO_GLOB_SUBST +else + case \`(set -o) 2>/dev/null\` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi +" + as_required="as_fn_return () { (exit \$1); } +as_fn_success () { as_fn_return 0; } +as_fn_failure () { as_fn_return 1; } +as_fn_ret_success () { return 0; } +as_fn_ret_failure () { return 1; } + +exitcode=0 +as_fn_success || { exitcode=1; echo as_fn_success failed.; } +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : + +else + exitcode=1; echo positional parameters were not saved. +fi +test x\$exitcode = x0 || exit 1 +test -x / || exit 1" + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 + + test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( + ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO + PATH=/empty FPATH=/empty; export PATH FPATH + test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ + || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 +test \$(( 1 + 1 )) = 2 || exit 1" + if (eval "$as_required") 2>/dev/null; then : + as_have_required=yes +else + as_have_required=no +fi + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : + +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_found=false +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + as_found=: + case $as_dir in #( + /*) + for as_base in sh bash ksh sh5; do + # Try only shells that exist, to save several forks. + as_shell=$as_dir/$as_base + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : + CONFIG_SHELL=$as_shell as_have_required=yes + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : + break 2 +fi +fi + done;; + esac + as_found=false +done +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : + CONFIG_SHELL=$SHELL as_have_required=yes +fi; } +IFS=$as_save_IFS + + + if test "x$CONFIG_SHELL" != x; then : + export CONFIG_SHELL + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in # (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +exit 255 +fi + + if test x$as_have_required = xno; then : + $as_echo "$0: This script requires a shell more modern than all" + $as_echo "$0: the shells that I found on your system." + if test x${ZSH_VERSION+set} = xset ; then + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" + $as_echo "$0: be upgraded to zsh 4.3.4 or later." + else + $as_echo "$0: Please tell bug-autoconf@gnu.org and opus@xiph.org +$0: about your system, including any error possibly output +$0: before this message. Then install a modern shell, or +$0: manually run the script under such a shell if you do +$0: have one." + fi + exit 1 +fi +fi +fi +SHELL=${CONFIG_SHELL-/bin/sh} +export SHELL +# Unset more variables known to interfere with behavior of common tools. +CLICOLOR_FORCE= GREP_OPTIONS= +unset CLICOLOR_FORCE GREP_OPTIONS + +## --------------------- ## +## M4sh Shell Functions. ## +## --------------------- ## +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} # as_fn_mkdir_p + +# as_fn_executable_p FILE +# ----------------------- +# Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} # as_fn_executable_p +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +# as_fn_error STATUS ERROR [LINENO LOG_FD] +# ---------------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} # as_fn_error + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + + + as_lineno_1=$LINENO as_lineno_1a=$LINENO + as_lineno_2=$LINENO as_lineno_2a=$LINENO + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) + sed -n ' + p + /[$]LINENO/= + ' <$as_myself | + sed ' + s/[$]LINENO.*/&-/ + t lineno + b + :lineno + N + :loop + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ + t loop + s/-\n.*// + ' >$as_me.lineno && + chmod +x "$as_me.lineno" || + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } + + # If we had to re-execute with $CONFIG_SHELL, we're ensured to have + # already done that, so ensure we don't try to do so again and fall + # in an infinite loop. This has already happened in practice. + _as_can_reexec=no; export _as_can_reexec + # Don't try to exec as it changes $[0], causing all sort of problems + # (the dirname of $[0] is not the place where we might find the + # original and so on. Autoconf is especially sensitive to this). + . "./$as_me.lineno" + # Exit status is that of the last command. + exit +} + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' + fi +else + as_ln_s='cp -pR' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +as_test_x='test -x' +as_executable_p=as_fn_executable_p + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + +SHELL=${CONFIG_SHELL-/bin/sh} + + +test -n "$DJDIR" || exec 7<&0 &1 + +# Name of the host. +# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, +# so uname gets run too. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` + +# +# Initializations. +# +ac_default_prefix=/usr/local +ac_clean_files= +ac_config_libobj_dir=. +LIBOBJS= +cross_compiling=no +subdirs= +MFLAGS= +MAKEFLAGS= + +# Identity of this package. +PACKAGE_NAME='opus' +PACKAGE_TARNAME='opus' +PACKAGE_VERSION='1.3.1' +PACKAGE_STRING='opus 1.3.1' +PACKAGE_BUGREPORT='opus@xiph.org' +PACKAGE_URL='' + +ac_unique_file="src/opus_encoder.c" +# Factoring default headers for most tests. +ac_includes_default="\ +#include +#ifdef HAVE_SYS_TYPES_H +# include +#endif +#ifdef HAVE_SYS_STAT_H +# include +#endif +#ifdef STDC_HEADERS +# include +# include +#else +# ifdef HAVE_STDLIB_H +# include +# endif +#endif +#ifdef HAVE_STRING_H +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H +# include +# endif +# include +#endif +#ifdef HAVE_STRINGS_H +# include +#endif +#ifdef HAVE_INTTYPES_H +# include +#endif +#ifdef HAVE_STDINT_H +# include +#endif +#ifdef HAVE_UNISTD_H +# include +#endif" + +ac_subst_vars='am__EXEEXT_FALSE +am__EXEEXT_TRUE +LTLIBOBJS +LIBOBJS +PC_BUILD +EXTRA_PROGRAMS_FALSE +EXTRA_PROGRAMS_TRUE +HAVE_DOXYGEN_FALSE +HAVE_DOXYGEN_TRUE +HAVE_DOT +HAVE_DOXYGEN +OPUS_HAVE_RTCD +HAVE_ARM_NE10_FALSE +HAVE_ARM_NE10_TRUE +HAVE_ARM_NEON_INTR_FALSE +HAVE_ARM_NEON_INTR_TRUE +CPU_ARM_FALSE +CPU_ARM_TRUE +OPUS_X86_AVX_CFLAGS +OPUS_X86_SSE4_1_CFLAGS +OPUS_X86_SSE2_CFLAGS +OPUS_X86_SSE_CFLAGS +NE10_LIBS +NE10_CFLAGS +HAVE_ARM_NE10 +OPUS_ARM_NEON_INTR_CFLAGS +ARM_NEON_INTR_CFLAGS +X86_AVX_CFLAGS +X86_SSE4_1_CFLAGS +X86_SSE2_CFLAGS +X86_SSE_CFLAGS +HAVE_AVX_FALSE +HAVE_AVX_TRUE +HAVE_SSE4_1_FALSE +HAVE_SSE4_1_TRUE +HAVE_SSE2_FALSE +HAVE_SSE2_TRUE +HAVE_SSE_FALSE +HAVE_SSE_TRUE +ARM2GNU_PARAMS +OPUS_ARM_MAY_HAVE_NEON +OPUS_ARM_MAY_HAVE_MEDIA +OPUS_ARM_MAY_HAVE_EDSP +OPUS_ARM_EXTERNAL_ASM_FALSE +OPUS_ARM_EXTERNAL_ASM_TRUE +HAVE_PERL +OPUS_ARM_INLINE_ASM_FALSE +OPUS_ARM_INLINE_ASM_TRUE +CUSTOM_MODES_FALSE +CUSTOM_MODES_TRUE +DISABLE_FLOAT_API_FALSE +DISABLE_FLOAT_API_TRUE +FIXED_POINT_FALSE +FIXED_POINT_TRUE +LIBM +am__fastdepCCAS_FALSE +am__fastdepCCAS_TRUE +CCASDEPMODE +CCASFLAGS +CCAS +CPP +LT_SYS_LIBRARY_PATH +OTOOL64 +OTOOL +LIPO +NMEDIT +DSYMUTIL +MANIFEST_TOOL +RANLIB +ac_ct_AR +AR +DLLTOOL +OBJDUMP +LN_S +NM +ac_ct_DUMPBIN +DUMPBIN +LD +FGREP +EGREP +GREP +SED +am__fastdepCC_FALSE +am__fastdepCC_TRUE +CCDEPMODE +am__nodep +AMDEPBACKSLASH +AMDEP_FALSE +AMDEP_TRUE +am__quote +am__include +DEPDIR +OBJEXT +EXEEXT +ac_ct_CC +CPPFLAGS +LDFLAGS +CFLAGS +CC +LIBTOOL +host_os +host_vendor +host_cpu +host +build_os +build_vendor +build_cpu +build +MAINT +MAINTAINER_MODE_FALSE +MAINTAINER_MODE_TRUE +am__untar +am__tar +AMTAR +am__leading_dot +SET_MAKE +AWK +mkdir_p +MKDIR_P +INSTALL_STRIP_PROGRAM +STRIP +install_sh +MAKEINFO +AUTOHEADER +AUTOMAKE +AUTOCONF +ACLOCAL +VERSION +PACKAGE +CYGPATH_W +am__isrc +INSTALL_DATA +INSTALL_SCRIPT +INSTALL_PROGRAM +OPUS_LT_AGE +OPUS_LT_REVISION +OPUS_LT_CURRENT +AM_BACKSLASH +AM_DEFAULT_VERBOSITY +AM_DEFAULT_V +AM_V +target_alias +host_alias +build_alias +LIBS +ECHO_T +ECHO_N +ECHO_C +DEFS +mandir +localedir +libdir +psdir +pdfdir +dvidir +htmldir +infodir +docdir +oldincludedir +includedir +localstatedir +sharedstatedir +sysconfdir +datadir +datarootdir +libexecdir +sbindir +bindir +program_transform_name +prefix +exec_prefix +PACKAGE_URL +PACKAGE_BUGREPORT +PACKAGE_STRING +PACKAGE_VERSION +PACKAGE_TARNAME +PACKAGE_NAME +PATH_SEPARATOR +SHELL' +ac_subst_files='' +ac_user_opts=' +enable_option_checking +enable_silent_rules +enable_maintainer_mode +enable_shared +enable_static +with_pic +enable_fast_install +with_aix_soname +enable_dependency_tracking +with_gnu_ld +with_sysroot +enable_libtool_lock +enable_fixed_point +enable_fixed_point_debug +enable_float_api +enable_custom_modes +enable_float_approx +enable_asm +enable_rtcd +enable_intrinsics +with_NE10 +with_NE10_libraries +with_NE10_includes +enable_assertions +enable_hardening +enable_fuzzing +enable_check_asm +enable_doc +enable_extra_programs +enable_rfc8251 +enable_stack_protector +' + ac_precious_vars='build_alias +host_alias +target_alias +CC +CFLAGS +LDFLAGS +LIBS +CPPFLAGS +LT_SYS_LIBRARY_PATH +CPP +CCAS +CCASFLAGS +X86_SSE_CFLAGS +X86_SSE2_CFLAGS +X86_SSE4_1_CFLAGS +X86_AVX_CFLAGS +ARM_NEON_INTR_CFLAGS' + + +# Initialize some variables set by options. +ac_init_help= +ac_init_version=false +ac_unrecognized_opts= +ac_unrecognized_sep= +# The variables have the same names as the options, with +# dashes changed to underlines. +cache_file=/dev/null +exec_prefix=NONE +no_create= +no_recursion= +prefix=NONE +program_prefix=NONE +program_suffix=NONE +program_transform_name=s,x,x, +silent= +site= +srcdir= +verbose= +x_includes=NONE +x_libraries=NONE + +# Installation directory options. +# These are left unexpanded so users can "make install exec_prefix=/foo" +# and all the variables that are supposed to be based on exec_prefix +# by default will actually change. +# Use braces instead of parens because sh, perl, etc. also accept them. +# (The list follows the same order as the GNU Coding Standards.) +bindir='${exec_prefix}/bin' +sbindir='${exec_prefix}/sbin' +libexecdir='${exec_prefix}/libexec' +datarootdir='${prefix}/share' +datadir='${datarootdir}' +sysconfdir='${prefix}/etc' +sharedstatedir='${prefix}/com' +localstatedir='${prefix}/var' +includedir='${prefix}/include' +oldincludedir='/usr/include' +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' +infodir='${datarootdir}/info' +htmldir='${docdir}' +dvidir='${docdir}' +pdfdir='${docdir}' +psdir='${docdir}' +libdir='${exec_prefix}/lib' +localedir='${datarootdir}/locale' +mandir='${datarootdir}/man' + +ac_prev= +ac_dashdash= +for ac_option +do + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval $ac_prev=\$ac_option + ac_prev= + continue + fi + + case $ac_option in + *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; + *=) ac_optarg= ;; + *) ac_optarg=yes ;; + esac + + # Accept the important Cygnus configure options, so we can diagnose typos. + + case $ac_dashdash$ac_option in + --) + ac_dashdash=yes ;; + + -bindir | --bindir | --bindi | --bind | --bin | --bi) + ac_prev=bindir ;; + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) + bindir=$ac_optarg ;; + + -build | --build | --buil | --bui | --bu) + ac_prev=build_alias ;; + -build=* | --build=* | --buil=* | --bui=* | --bu=*) + build_alias=$ac_optarg ;; + + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + cache_file=$ac_optarg ;; + + --config-cache | -C) + cache_file=config.cache ;; + + -datadir | --datadir | --datadi | --datad) + ac_prev=datadir ;; + -datadir=* | --datadir=* | --datadi=* | --datad=*) + datadir=$ac_optarg ;; + + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ + | --dataroo | --dataro | --datar) + ac_prev=datarootdir ;; + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) + datarootdir=$ac_optarg ;; + + -disable-* | --disable-*) + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=no ;; + + -docdir | --docdir | --docdi | --doc | --do) + ac_prev=docdir ;; + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) + docdir=$ac_optarg ;; + + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) + ac_prev=dvidir ;; + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) + dvidir=$ac_optarg ;; + + -enable-* | --enable-*) + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=\$ac_optarg ;; + + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ + | --exec | --exe | --ex) + ac_prev=exec_prefix ;; + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ + | --exec=* | --exe=* | --ex=*) + exec_prefix=$ac_optarg ;; + + -gas | --gas | --ga | --g) + # Obsolete; use --with-gas. + with_gas=yes ;; + + -help | --help | --hel | --he | -h) + ac_init_help=long ;; + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) + ac_init_help=recursive ;; + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) + ac_init_help=short ;; + + -host | --host | --hos | --ho) + ac_prev=host_alias ;; + -host=* | --host=* | --hos=* | --ho=*) + host_alias=$ac_optarg ;; + + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) + ac_prev=htmldir ;; + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ + | --ht=*) + htmldir=$ac_optarg ;; + + -includedir | --includedir | --includedi | --included | --include \ + | --includ | --inclu | --incl | --inc) + ac_prev=includedir ;; + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ + | --includ=* | --inclu=* | --incl=* | --inc=*) + includedir=$ac_optarg ;; + + -infodir | --infodir | --infodi | --infod | --info | --inf) + ac_prev=infodir ;; + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) + infodir=$ac_optarg ;; + + -libdir | --libdir | --libdi | --libd) + ac_prev=libdir ;; + -libdir=* | --libdir=* | --libdi=* | --libd=*) + libdir=$ac_optarg ;; + + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ + | --libexe | --libex | --libe) + ac_prev=libexecdir ;; + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ + | --libexe=* | --libex=* | --libe=*) + libexecdir=$ac_optarg ;; + + -localedir | --localedir | --localedi | --localed | --locale) + ac_prev=localedir ;; + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) + localedir=$ac_optarg ;; + + -localstatedir | --localstatedir | --localstatedi | --localstated \ + | --localstate | --localstat | --localsta | --localst | --locals) + ac_prev=localstatedir ;; + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) + localstatedir=$ac_optarg ;; + + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) + ac_prev=mandir ;; + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) + mandir=$ac_optarg ;; + + -nfp | --nfp | --nf) + # Obsolete; use --without-fp. + with_fp=no ;; + + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c | -n) + no_create=yes ;; + + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) + no_recursion=yes ;; + + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ + | --oldin | --oldi | --old | --ol | --o) + ac_prev=oldincludedir ;; + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) + oldincludedir=$ac_optarg ;; + + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + prefix=$ac_optarg ;; + + -program-prefix | --program-prefix | --program-prefi | --program-pref \ + | --program-pre | --program-pr | --program-p) + ac_prev=program_prefix ;; + -program-prefix=* | --program-prefix=* | --program-prefi=* \ + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) + program_prefix=$ac_optarg ;; + + -program-suffix | --program-suffix | --program-suffi | --program-suff \ + | --program-suf | --program-su | --program-s) + ac_prev=program_suffix ;; + -program-suffix=* | --program-suffix=* | --program-suffi=* \ + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) + program_suffix=$ac_optarg ;; + + -program-transform-name | --program-transform-name \ + | --program-transform-nam | --program-transform-na \ + | --program-transform-n | --program-transform- \ + | --program-transform | --program-transfor \ + | --program-transfo | --program-transf \ + | --program-trans | --program-tran \ + | --progr-tra | --program-tr | --program-t) + ac_prev=program_transform_name ;; + -program-transform-name=* | --program-transform-name=* \ + | --program-transform-nam=* | --program-transform-na=* \ + | --program-transform-n=* | --program-transform-=* \ + | --program-transform=* | --program-transfor=* \ + | --program-transfo=* | --program-transf=* \ + | --program-trans=* | --program-tran=* \ + | --progr-tra=* | --program-tr=* | --program-t=*) + program_transform_name=$ac_optarg ;; + + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) + ac_prev=pdfdir ;; + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) + pdfdir=$ac_optarg ;; + + -psdir | --psdir | --psdi | --psd | --ps) + ac_prev=psdir ;; + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) + psdir=$ac_optarg ;; + + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + silent=yes ;; + + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) + ac_prev=sbindir ;; + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ + | --sbi=* | --sb=*) + sbindir=$ac_optarg ;; + + -sharedstatedir | --sharedstatedir | --sharedstatedi \ + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ + | --sharedst | --shareds | --shared | --share | --shar \ + | --sha | --sh) + ac_prev=sharedstatedir ;; + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ + | --sha=* | --sh=*) + sharedstatedir=$ac_optarg ;; + + -site | --site | --sit) + ac_prev=site ;; + -site=* | --site=* | --sit=*) + site=$ac_optarg ;; + + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + srcdir=$ac_optarg ;; + + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ + | --syscon | --sysco | --sysc | --sys | --sy) + ac_prev=sysconfdir ;; + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) + sysconfdir=$ac_optarg ;; + + -target | --target | --targe | --targ | --tar | --ta | --t) + ac_prev=target_alias ;; + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) + target_alias=$ac_optarg ;; + + -v | -verbose | --verbose | --verbos | --verbo | --verb) + verbose=yes ;; + + -version | --version | --versio | --versi | --vers | -V) + ac_init_version=: ;; + + -with-* | --with-*) + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=\$ac_optarg ;; + + -without-* | --without-*) + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=no ;; + + --x) + # Obsolete; use --with-x. + with_x=yes ;; + + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ + | --x-incl | --x-inc | --x-in | --x-i) + ac_prev=x_includes ;; + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) + x_includes=$ac_optarg ;; + + -x-libraries | --x-libraries | --x-librarie | --x-librari \ + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) + ac_prev=x_libraries ;; + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) + x_libraries=$ac_optarg ;; + + -*) as_fn_error $? "unrecognized option: \`$ac_option' +Try \`$0 --help' for more information" + ;; + + *=*) + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` + # Reject names that are not valid shell variable names. + case $ac_envvar in #( + '' | [0-9]* | *[!_$as_cr_alnum]* ) + as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; + esac + eval $ac_envvar=\$ac_optarg + export $ac_envvar ;; + + *) + # FIXME: should be removed in autoconf 3.0. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" + ;; + + esac +done + +if test -n "$ac_prev"; then + ac_option=--`echo $ac_prev | sed 's/_/-/g'` + as_fn_error $? "missing argument to $ac_option" +fi + +if test -n "$ac_unrecognized_opts"; then + case $enable_option_checking in + no) ;; + fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; + esac +fi + +# Check all directory arguments for consistency. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ + datadir sysconfdir sharedstatedir localstatedir includedir \ + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ + libdir localedir mandir +do + eval ac_val=\$$ac_var + # Remove trailing slashes. + case $ac_val in + */ ) + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` + eval $ac_var=\$ac_val;; + esac + # Be sure to have absolute directory names. + case $ac_val in + [\\/$]* | ?:[\\/]* ) continue;; + NONE | '' ) case $ac_var in *prefix ) continue;; esac;; + esac + as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" +done + +# There might be people who depend on the old broken behavior: `$host' +# used to hold the argument of --host etc. +# FIXME: To remove some day. +build=$build_alias +host=$host_alias +target=$target_alias + +# FIXME: To remove some day. +if test "x$host_alias" != x; then + if test "x$build_alias" = x; then + cross_compiling=maybe + elif test "x$build_alias" != "x$host_alias"; then + cross_compiling=yes + fi +fi + +ac_tool_prefix= +test -n "$host_alias" && ac_tool_prefix=$host_alias- + +test "$silent" = yes && exec 6>/dev/null + + +ac_pwd=`pwd` && test -n "$ac_pwd" && +ac_ls_di=`ls -di .` && +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || + as_fn_error $? "working directory cannot be determined" +test "X$ac_ls_di" = "X$ac_pwd_ls_di" || + as_fn_error $? "pwd does not report name of working directory" + + +# Find the source files, if location was not specified. +if test -z "$srcdir"; then + ac_srcdir_defaulted=yes + # Try the directory containing this script, then the parent directory. + ac_confdir=`$as_dirname -- "$as_myself" || +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_myself" : 'X\(//\)[^/]' \| \ + X"$as_myself" : 'X\(//\)$' \| \ + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_myself" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + srcdir=$ac_confdir + if test ! -r "$srcdir/$ac_unique_file"; then + srcdir=.. + fi +else + ac_srcdir_defaulted=no +fi +if test ! -r "$srcdir/$ac_unique_file"; then + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." + as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" +fi +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +ac_abs_confdir=`( + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" + pwd)` +# When building in place, set srcdir=. +if test "$ac_abs_confdir" = "$ac_pwd"; then + srcdir=. +fi +# Remove unnecessary trailing slashes from srcdir. +# Double slashes in file names in object file debugging info +# mess up M-x gdb in Emacs. +case $srcdir in +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; +esac +for ac_var in $ac_precious_vars; do + eval ac_env_${ac_var}_set=\${${ac_var}+set} + eval ac_env_${ac_var}_value=\$${ac_var} + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} + eval ac_cv_env_${ac_var}_value=\$${ac_var} +done + +# +# Report the --help message. +# +if test "$ac_init_help" = "long"; then + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat <<_ACEOF +\`configure' configures opus 1.3.1 to adapt to many kinds of systems. + +Usage: $0 [OPTION]... [VAR=VALUE]... + +To assign environment variables (e.g., CC, CFLAGS...), specify them as +VAR=VALUE. See below for descriptions of some of the useful variables. + +Defaults for the options are specified in brackets. + +Configuration: + -h, --help display this help and exit + --help=short display options specific to this package + --help=recursive display the short help of all the included packages + -V, --version display version information and exit + -q, --quiet, --silent do not print \`checking ...' messages + --cache-file=FILE cache test results in FILE [disabled] + -C, --config-cache alias for \`--cache-file=config.cache' + -n, --no-create do not create output files + --srcdir=DIR find the sources in DIR [configure dir or \`..'] + +Installation directories: + --prefix=PREFIX install architecture-independent files in PREFIX + [$ac_default_prefix] + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX + [PREFIX] + +By default, \`make install' will install all the files in +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify +an installation prefix other than \`$ac_default_prefix' using \`--prefix', +for instance \`--prefix=\$HOME'. + +For better control, use the options below. + +Fine tuning of the installation directories: + --bindir=DIR user executables [EPREFIX/bin] + --sbindir=DIR system admin executables [EPREFIX/sbin] + --libexecdir=DIR program executables [EPREFIX/libexec] + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] + --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --libdir=DIR object code libraries [EPREFIX/lib] + --includedir=DIR C header files [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc [/usr/include] + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] + --datadir=DIR read-only architecture-independent data [DATAROOTDIR] + --infodir=DIR info documentation [DATAROOTDIR/info] + --localedir=DIR locale-dependent data [DATAROOTDIR/locale] + --mandir=DIR man documentation [DATAROOTDIR/man] + --docdir=DIR documentation root [DATAROOTDIR/doc/opus] + --htmldir=DIR html documentation [DOCDIR] + --dvidir=DIR dvi documentation [DOCDIR] + --pdfdir=DIR pdf documentation [DOCDIR] + --psdir=DIR ps documentation [DOCDIR] +_ACEOF + + cat <<\_ACEOF + +Program names: + --program-prefix=PREFIX prepend PREFIX to installed program names + --program-suffix=SUFFIX append SUFFIX to installed program names + --program-transform-name=PROGRAM run sed PROGRAM on installed program names + +System types: + --build=BUILD configure for building on BUILD [guessed] + --host=HOST cross-compile to build programs to run on HOST [BUILD] +_ACEOF +fi + +if test -n "$ac_init_help"; then + case $ac_init_help in + short | recursive ) echo "Configuration of opus 1.3.1:";; + esac + cat <<\_ACEOF + +Optional Features: + --disable-option-checking ignore unrecognized --enable/--with options + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --enable-silent-rules less verbose build output (undo: "make V=1") + --disable-silent-rules verbose build output (undo: "make V=0") + --disable-maintainer-mode + disable make rules and dependencies not useful (and + sometimes confusing) to the casual installer + --enable-shared[=PKGS] build shared libraries [default=yes] + --enable-static[=PKGS] build static libraries [default=yes] + --enable-fast-install[=PKGS] + optimize for fast installation [default=yes] + --enable-dependency-tracking + do not reject slow dependency extractors + --disable-dependency-tracking + speeds up one-time build + --disable-libtool-lock avoid locking (might break parallel builds) + --enable-fixed-point compile without floating point (for machines without + a fast enough FPU) + --enable-fixed-point-debug + debug fixed-point implementation + --disable-float-api compile without the floating point API (for machines + with no float library) + --enable-custom-modes enable non-Opus modes, e.g. 44.1 kHz & 2^n frames + --enable-float-approx enable fast approximations for floating point + --disable-asm Disable assembly optimizations + --disable-rtcd Disable run-time CPU capabilities detection + --disable-intrinsics Disable intrinsics optimizations + --enable-assertions enable additional software error checking + --disable-hardening disable run-time checks that are cheap and safe for + use in production + --enable-fuzzing causes the encoder to make random decisions (do not + use in production) + --enable-check-asm enable bit-exactness checks between optimized and c + implementations + --disable-doc Do not build API documentation + --disable-extra-programs + Do not build extra programs (demo and tests) + --disable-rfc8251 Disable bitstream fixes from RFC 8251 + --disable-stack-protector + Disable compiler stack hardening + +Optional Packages: + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use + both] + --with-aix-soname=aix|svr4|both + shared library versioning (aka "SONAME") variant to + provide on AIX, [default=aix]. + --with-gnu-ld assume the C compiler uses GNU ld [default=no] + --with-sysroot[=DIR] Search for dependent libraries within DIR (or the + compiler's sysroot if not specified). + --with-NE10=PFX Prefix where libNE10 is installed (optional) + --with-NE10-libraries=DIR + Directory where libNE10 library is installed + (optional) + --with-NE10-includes=DIR + Directory where libNE10 header files are installed + (optional) + +Some influential environment variables: + CC C compiler command + CFLAGS C compiler flags + LDFLAGS linker flags, e.g. -L if you have libraries in a + nonstandard directory + LIBS libraries to pass to the linker, e.g. -l + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if + you have headers in a nonstandard directory + LT_SYS_LIBRARY_PATH + User-defined run-time library search path. + CPP C preprocessor + CCAS assembler compiler command (defaults to CC) + CCASFLAGS assembler compiler flags (defaults to CFLAGS) + X86_SSE_CFLAGS + C compiler flags to compile SSE intrinsics [default=-msse] + X86_SSE2_CFLAGS + C compiler flags to compile SSE2 intrinsics [default=-msse2] + X86_SSE4_1_CFLAGS + C compiler flags to compile SSE4.1 intrinsics [default=-msse4.1] + X86_AVX_CFLAGS + C compiler flags to compile AVX intrinsics [default=-mavx] + ARM_NEON_INTR_CFLAGS + C compiler flags to compile ARM NEON intrinsics + [default=-mfpu=neon / -mfpu=neon -mfloat-abi=softfp] + +Use these variables to override the choices made by `configure' or to help +it to find libraries and programs with nonstandard names/locations. + +Report bugs to . +_ACEOF +ac_status=$? +fi + +if test "$ac_init_help" = "recursive"; then + # If there are subdirs, report their specific --help. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue + test -d "$ac_dir" || + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || + continue + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + cd "$ac_dir" || { ac_status=$?; continue; } + # Check for guested configure. + if test -f "$ac_srcdir/configure.gnu"; then + echo && + $SHELL "$ac_srcdir/configure.gnu" --help=recursive + elif test -f "$ac_srcdir/configure"; then + echo && + $SHELL "$ac_srcdir/configure" --help=recursive + else + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + fi || ac_status=$? + cd "$ac_pwd" || { ac_status=$?; break; } + done +fi + +test -n "$ac_init_help" && exit $ac_status +if $ac_init_version; then + cat <<\_ACEOF +opus configure 1.3.1 +generated by GNU Autoconf 2.69 + +Copyright (C) 2012 Free Software Foundation, Inc. +This configure script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it. +_ACEOF + exit +fi + +## ------------------------ ## +## Autoconf initialization. ## +## ------------------------ ## + +# ac_fn_c_try_compile LINENO +# -------------------------- +# Try to compile conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_compile + +# ac_fn_c_try_link LINENO +# ----------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_link () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext conftest$ac_exeext + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + test -x conftest$ac_exeext + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would + # interfere with the next link command; also delete a directory that is + # left behind by Apple's compiler. We do this before executing the actions. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_link + +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES +# ------------------------------------------------------- +# Tests whether HEADER exists and can be compiled using the include files in +# INCLUDES, setting the cache variable VAR accordingly. +ac_fn_c_check_header_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +#include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_header_compile + +# ac_fn_c_try_cpp LINENO +# ---------------------- +# Try to preprocess conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_cpp () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } > conftest.i && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_cpp + +# ac_fn_c_try_run LINENO +# ---------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes +# that executables *can* be run. +ac_fn_c_try_run () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then : + ac_retval=0 +else + $as_echo "$as_me: program exited with status $ac_status" >&5 + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=$ac_status +fi + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_run + +# ac_fn_c_check_func LINENO FUNC VAR +# ---------------------------------- +# Tests whether FUNC exists, setting the cache variable VAR accordingly +ac_fn_c_check_func () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* Define $2 to an innocuous variant, in case declares $2. + For example, HP-UX 11i declares gettimeofday. */ +#define $2 innocuous_$2 + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $2 (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $2 + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char $2 (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined __stub_$2 || defined __stub___$2 +choke me +#endif + +int +main () +{ +return $2 (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_func + +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES +# ------------------------------------------------------- +# Tests whether HEADER exists, giving a warning if it cannot be compiled using +# the include files in INCLUDES and setting the cache variable VAR +# accordingly. +ac_fn_c_check_header_mongrel () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if eval \${$3+:} false; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +else + # Is the header compilable? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 +$as_echo_n "checking $2 usability... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +#include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_header_compiler=yes +else + ac_header_compiler=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 +$as_echo "$ac_header_compiler" >&6; } + +# Is the header present? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 +$as_echo_n "checking $2 presence... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <$2> +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + ac_header_preproc=yes +else + ac_header_preproc=no +fi +rm -f conftest.err conftest.i conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 +$as_echo "$ac_header_preproc" >&6; } + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( + yes:no: ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} + ;; + no:yes:* ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} +( $as_echo "## ---------------------------- ## +## Report this to opus@xiph.org ## +## ---------------------------- ##" + ) | sed "s/^/$as_me: WARNING: /" >&2 + ;; +esac + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=\$ac_header_compiler" +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_header_mongrel +cat >config.log <<_ACEOF +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. + +It was created by opus $as_me 1.3.1, which was +generated by GNU Autoconf 2.69. Invocation command line was + + $ $0 $@ + +_ACEOF +exec 5>>config.log +{ +cat <<_ASUNAME +## --------- ## +## Platform. ## +## --------- ## + +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` + +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` + +_ASUNAME + +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + $as_echo "PATH: $as_dir" + done +IFS=$as_save_IFS + +} >&5 + +cat >&5 <<_ACEOF + + +## ----------- ## +## Core tests. ## +## ----------- ## + +_ACEOF + + +# Keep a trace of the command line. +# Strip out --no-create and --no-recursion so they do not pile up. +# Strip out --silent because we don't want to record it for future runs. +# Also quote any args containing shell meta-characters. +# Make two passes to allow for proper duplicate-argument suppression. +ac_configure_args= +ac_configure_args0= +ac_configure_args1= +ac_must_keep_next=false +for ac_pass in 1 2 +do + for ac_arg + do + case $ac_arg in + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + continue ;; + *\'*) + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + case $ac_pass in + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; + 2) + as_fn_append ac_configure_args1 " '$ac_arg'" + if test $ac_must_keep_next = true; then + ac_must_keep_next=false # Got value, back to normal. + else + case $ac_arg in + *=* | --config-cache | -C | -disable-* | --disable-* \ + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ + | -with-* | --with-* | -without-* | --without-* | --x) + case "$ac_configure_args0 " in + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; + esac + ;; + -* ) ac_must_keep_next=true ;; + esac + fi + as_fn_append ac_configure_args " '$ac_arg'" + ;; + esac + done +done +{ ac_configure_args0=; unset ac_configure_args0;} +{ ac_configure_args1=; unset ac_configure_args1;} + +# When interrupted or exit'd, cleanup temporary files, and complete +# config.log. We remove comments because anyway the quotes in there +# would cause problems or look ugly. +# WARNING: Use '\'' to represent an apostrophe within the trap. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. +trap 'exit_status=$? + # Save into config.log some information that might help in debugging. + { + echo + + $as_echo "## ---------------- ## +## Cache variables. ## +## ---------------- ##" + echo + # The following way of writing the cache mishandles newlines in values, +( + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + (set) 2>&1 | + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + sed -n \ + "s/'\''/'\''\\\\'\'''\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" + ;; #( + *) + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) + echo + + $as_echo "## ----------------- ## +## Output variables. ## +## ----------------- ##" + echo + for ac_var in $ac_subst_vars + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + + if test -n "$ac_subst_files"; then + $as_echo "## ------------------- ## +## File substitutions. ## +## ------------------- ##" + echo + for ac_var in $ac_subst_files + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + fi + + if test -s confdefs.h; then + $as_echo "## ----------- ## +## confdefs.h. ## +## ----------- ##" + echo + cat confdefs.h + echo + fi + test "$ac_signal" != 0 && + $as_echo "$as_me: caught signal $ac_signal" + $as_echo "$as_me: exit $exit_status" + } >&5 + rm -f core *.core core.conftest.* && + rm -f -r conftest* confdefs* conf$$* $ac_clean_files && + exit $exit_status +' 0 +for ac_signal in 1 2 13 15; do + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal +done +ac_signal=0 + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -f -r conftest* confdefs.h + +$as_echo "/* confdefs.h */" > confdefs.h + +# Predefined preprocessor variables. + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_NAME "$PACKAGE_NAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_TARNAME "$PACKAGE_TARNAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_VERSION "$PACKAGE_VERSION" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_STRING "$PACKAGE_STRING" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_URL "$PACKAGE_URL" +_ACEOF + + +# Let the site file select an alternate cache file if it wants to. +# Prefer an explicitly selected file to automatically selected ones. +ac_site_file1=NONE +ac_site_file2=NONE +if test -n "$CONFIG_SITE"; then + # We do not want a PATH search for config.site. + case $CONFIG_SITE in #(( + -*) ac_site_file1=./$CONFIG_SITE;; + */*) ac_site_file1=$CONFIG_SITE;; + *) ac_site_file1=./$CONFIG_SITE;; + esac +elif test "x$prefix" != xNONE; then + ac_site_file1=$prefix/share/config.site + ac_site_file2=$prefix/etc/config.site +else + ac_site_file1=$ac_default_prefix/share/config.site + ac_site_file2=$ac_default_prefix/etc/config.site +fi +for ac_site_file in "$ac_site_file1" "$ac_site_file2" +do + test "x$ac_site_file" = xNONE && continue + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 +$as_echo "$as_me: loading site script $ac_site_file" >&6;} + sed 's/^/| /' "$ac_site_file" >&5 + . "$ac_site_file" \ + || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "failed to load site script $ac_site_file +See \`config.log' for more details" "$LINENO" 5; } + fi +done + +if test -r "$cache_file"; then + # Some versions of bash will fail to source /dev/null (special files + # actually), so we avoid doing that. DJGPP emulates it as a regular file. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 +$as_echo "$as_me: loading cache $cache_file" >&6;} + case $cache_file in + [\\/]* | ?:[\\/]* ) . "$cache_file";; + *) . "./$cache_file";; + esac + fi +else + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +$as_echo "$as_me: creating cache $cache_file" >&6;} + >$cache_file +fi + +# Check that the precious variables saved in the cache have kept the same +# value. +ac_cache_corrupted=false +for ac_var in $ac_precious_vars; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val=\$ac_cv_env_${ac_var}_value + eval ac_new_val=\$ac_env_${ac_var}_value + case $ac_old_set,$ac_new_set in + set,) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,set) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + # differences in whitespace do not lead to failure. + ac_old_val_w=`echo x $ac_old_val` + ac_new_val_w=`echo x $ac_new_val` + if test "$ac_old_val_w" != "$ac_new_val_w"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + ac_cache_corrupted=: + else + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + eval $ac_var=\$ac_old_val + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} + fi;; + esac + # Pass precious variables to config.status. + if test "$ac_new_set" = set; then + case $ac_new_val in + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *) ac_arg=$ac_var=$ac_new_val ;; + esac + case " $ac_configure_args " in + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. + *) as_fn_append ac_configure_args " '$ac_arg'" ;; + esac + fi +done +if $ac_cache_corrupted; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} + as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 +fi +## -------------------- ## +## Main body of script. ## +## -------------------- ## + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + + + + +# Check whether --enable-silent-rules was given. +if test "${enable_silent_rules+set}" = set; then : + enableval=$enable_silent_rules; +fi + +case $enable_silent_rules in # ((( + yes) AM_DEFAULT_VERBOSITY=0;; + no) AM_DEFAULT_VERBOSITY=1;; + *) AM_DEFAULT_VERBOSITY=0;; +esac +am_make=${MAKE-make} +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 +$as_echo_n "checking whether $am_make supports nested variables... " >&6; } +if ${am_cv_make_support_nested_variables+:} false; then : + $as_echo_n "(cached) " >&6 +else + if $as_echo 'TRUE=$(BAR$(V)) +BAR0=false +BAR1=true +V=1 +am__doit: + @$(TRUE) +.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then + am_cv_make_support_nested_variables=yes +else + am_cv_make_support_nested_variables=no +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 +$as_echo "$am_cv_make_support_nested_variables" >&6; } +if test $am_cv_make_support_nested_variables = yes; then + AM_V='$(V)' + AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' +else + AM_V=$AM_DEFAULT_VERBOSITY + AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY +fi +AM_BACKSLASH='\' + + +# For libtool. +OPUS_LT_CURRENT=8 +OPUS_LT_REVISION=0 +OPUS_LT_AGE=8 + + + + + +am__api_version='1.15' + +ac_aux_dir= +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do + if test -f "$ac_dir/install-sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install-sh -c" + break + elif test -f "$ac_dir/install.sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install.sh -c" + break + elif test -f "$ac_dir/shtool"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/shtool install -c" + break + fi +done +if test -z "$ac_aux_dir"; then + as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 +fi + +# These three variables are undocumented and unsupported, +# and are intended to be withdrawn in a future Autoconf release. +# They can cause serious problems if a builder's source tree is in a directory +# whose full name contains unusual characters. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. + + +# Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# OS/2's system install, which has a completely different semantic +# ./install, which can be erroneously created by make from ./install.sh. +# Reject install programs that cannot install multiple files. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 +$as_echo_n "checking for a BSD-compatible install... " >&6; } +if test -z "$INSTALL"; then +if ${ac_cv_path_install+:} false; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + # Account for people who put trailing slashes in PATH elements. +case $as_dir/ in #(( + ./ | .// | /[cC]/* | \ + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ + /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then + if test $ac_prog = install && + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + rm -rf conftest.one conftest.two conftest.dir + echo one > conftest.one + echo two > conftest.two + mkdir conftest.dir + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && + test -s conftest.one && test -s conftest.two && + test -s conftest.dir/conftest.one && + test -s conftest.dir/conftest.two + then + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 + fi + fi + fi + done + done + ;; +esac + + done +IFS=$as_save_IFS + +rm -rf conftest.one conftest.two conftest.dir + +fi + if test "${ac_cv_path_install+set}" = set; then + INSTALL=$ac_cv_path_install + else + # As a last resort, use the slow shell script. Don't cache a + # value for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + INSTALL=$ac_install_sh + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 +$as_echo "$INSTALL" >&6; } + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 +$as_echo_n "checking whether build environment is sane... " >&6; } +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[\\\"\#\$\&\'\`$am_lf]*) + as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; +esac +case $srcdir in + *[\\\"\#\$\&\'\`$am_lf\ \ ]*) + as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; +esac + +# Do 'set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + am_has_slept=no + for am_try in 1 2; do + echo "timestamp, slept: $am_has_slept" > conftest.file + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$*" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + if test "$*" != "X $srcdir/configure conftest.file" \ + && test "$*" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + as_fn_error $? "ls -t appears to fail. Make sure there is not a broken + alias in your environment" "$LINENO" 5 + fi + if test "$2" = conftest.file || test $am_try -eq 2; then + break + fi + # Just in case. + sleep 1 + am_has_slept=yes + done + test "$2" = conftest.file + ) +then + # Ok. + : +else + as_fn_error $? "newly created file is older than distributed files! +Check your system clock" "$LINENO" 5 +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +# If we didn't sleep, we still need to ensure time stamps of config.status and +# generated files are strictly newer. +am_sleep_pid= +if grep 'slept: no' conftest.file >/dev/null 2>&1; then + ( sleep 1 ) & + am_sleep_pid=$! +fi + +rm -f conftest.file + +test "$program_prefix" != NONE && + program_transform_name="s&^&$program_prefix&;$program_transform_name" +# Use a double $ so make ignores it. +test "$program_suffix" != NONE && + program_transform_name="s&\$&$program_suffix&;$program_transform_name" +# Double any \ or $. +# By default was `s,x,x', remove it if useless. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` + +# Expand $ac_aux_dir to an absolute path. +am_aux_dir=`cd "$ac_aux_dir" && pwd` + +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi +# Use eval to expand $SHELL +if eval "$MISSING --is-lightweight"; then + am_missing_run="$MISSING " +else + am_missing_run= + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 +$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} +fi + +if test x"${install_sh+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi + +# Installed binaries are usually stripped using 'strip' when the user +# run "make install-strip". However 'strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the 'STRIP' environment variable to overrule this program. +if test "$cross_compiling" != no; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi + +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } +if test -z "$MKDIR_P"; then + if ${ac_cv_path_mkdir+:} false; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in mkdir gmkdir; do + for ac_exec_ext in '' $ac_executable_extensions; do + as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( + 'mkdir (GNU coreutils) '* | \ + 'mkdir (coreutils) '* | \ + 'mkdir (fileutils) '4.1*) + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext + break 3;; + esac + done + done + done +IFS=$as_save_IFS + +fi + + test -d ./--version && rmdir ./--version + if test "${ac_cv_path_mkdir+set}" = set; then + MKDIR_P="$ac_cv_path_mkdir -p" + else + # As a last resort, use the slow shell script. Don't cache a + # value for MKDIR_P within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + MKDIR_P="$ac_install_sh -d" + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 +$as_echo "$MKDIR_P" >&6; } + +for ac_prog in gawk mawk nawk awk +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AWK+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AWK"; then + ac_cv_prog_AWK="$AWK" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AWK="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AWK=$ac_cv_prog_AWK +if test -n "$AWK"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +$as_echo "$AWK" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$AWK" && break +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } +set x ${MAKE-make} +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat >conftest.make <<\_ACEOF +SHELL = /bin/sh +all: + @echo '@@@%%%=$(MAKE)=@@@%%%' +_ACEOF +# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. +case `${MAKE-make} -f conftest.make 2>/dev/null` in + *@@@%%%=?*=@@@%%%*) + eval ac_cv_prog_make_${ac_make}_set=yes;; + *) + eval ac_cv_prog_make_${ac_make}_set=no;; +esac +rm -f conftest.make +fi +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + SET_MAKE= +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + SET_MAKE="MAKE=${MAKE-make}" +fi + +rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null + +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + am__isrc=' -I$(srcdir)' + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 + fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi + + +# Define the identity of the package. + PACKAGE='opus' + VERSION='1.3.1' + + +# Some tools Automake needs. + +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} + + +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} + + +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} + + +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} + + +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} + +# For better backward compatibility. To be removed once Automake 1.9.x +# dies out for good. For more background, see: +# +# +mkdir_p='$(MKDIR_P)' + +# We need awk for the "check" target (and possibly the TAP driver). The +# system "awk" is bad on some platforms. +# Always define AMTAR for backward compatibility. Yes, it's still used +# in the wild :-( We should find a proper way to deprecate it ... +AMTAR='$${TAR-tar}' + + +# We'll loop over all known methods to create a tar archive until one works. +_am_tools='gnutar pax cpio none' + +am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' + + + + + + +# POSIX will say in a future version that running "rm -f" with no argument +# is OK; and we want to be able to make that assumption in our Makefile +# recipes. So use an aggressive probe to check that the usage we want is +# actually supported "in the wild" to an acceptable degree. +# See automake bug#10828. +# To make any issue more visible, cause the running configure to be aborted +# by default if the 'rm' program in use doesn't match our expectations; the +# user can still override this though. +if rm -f && rm -fr && rm -rf; then : OK; else + cat >&2 <<'END' +Oops! + +Your 'rm' program seems unable to run without file operands specified +on the command line, even when the '-f' option is present. This is contrary +to the behaviour of most rm programs out there, and not conforming with +the upcoming POSIX standard: + +Please tell bug-automake@gnu.org about your system, including the value +of your $PATH and any error possibly output before this message. This +can help us improve future automake versions. + +END + if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then + echo 'Configuration will proceed anyway, since you have set the' >&2 + echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 + echo >&2 + else + cat >&2 <<'END' +Aborting the configuration process, to ensure you take notice of the issue. + +You can download and install GNU coreutils to get an 'rm' implementation +that behaves properly: . + +If you want to complete the configuration process using your problematic +'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM +to "yes", and re-run configure. + +END + as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 + fi +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 +$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } + # Check whether --enable-maintainer-mode was given. +if test "${enable_maintainer_mode+set}" = set; then : + enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval +else + USE_MAINTAINER_MODE=yes +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 +$as_echo "$USE_MAINTAINER_MODE" >&6; } + if test $USE_MAINTAINER_MODE = yes; then + MAINTAINER_MODE_TRUE= + MAINTAINER_MODE_FALSE='#' +else + MAINTAINER_MODE_TRUE='#' + MAINTAINER_MODE_FALSE= +fi + + MAINT=$MAINTAINER_MODE_TRUE + + + +# Make sure we can run config.sub. +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || + as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 +$as_echo_n "checking build system type... " >&6; } +if ${ac_cv_build+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_build_alias=$build_alias +test "x$ac_build_alias" = x && + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` +test "x$ac_build_alias" = x && + as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 +$as_echo "$ac_cv_build" >&6; } +case $ac_cv_build in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; +esac +build=$ac_cv_build +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_build +shift +build_cpu=$1 +build_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +build_os=$* +IFS=$ac_save_IFS +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 +$as_echo_n "checking host system type... " >&6; } +if ${ac_cv_host+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$host_alias" = x; then + ac_cv_host=$ac_cv_build +else + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 +$as_echo "$ac_cv_host" >&6; } +case $ac_cv_host in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; +esac +host=$ac_cv_host +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_host +shift +host_cpu=$1 +host_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +host_os=$* +IFS=$ac_save_IFS +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac + + + +case $host_os in + *mingw32* ) MINGW32=yes;; + * ) MINGW32=no;; +esac + +case `pwd` in + *\ * | *\ *) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; +esac + + + +macro_version='2.4.6' +macro_revision='2.4.6' + + + + + + + + + + + + + +ltmain=$ac_aux_dir/ltmain.sh + +# Backslashify metacharacters that are still active within +# double-quoted strings. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g' + +# Same as above, but do not quote variable references. +double_quote_subst='s/\(["`\\]\)/\\\1/g' + +# Sed substitution to delay expansion of an escaped shell variable in a +# double_quote_subst'ed string. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' + +# Sed substitution to delay expansion of an escaped single quote. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' + +# Sed substitution to avoid accidental globbing in evaled expressions +no_glob_subst='s/\*/\\\*/g' + +ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 +$as_echo_n "checking how to print strings... " >&6; } +# Test print first, because it will be a builtin if present. +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ + test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='print -r --' +elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='printf %s\n' +else + # Use this function as a fallback that always works. + func_fallback_echo () + { + eval 'cat <<_LTECHO_EOF +$1 +_LTECHO_EOF' + } + ECHO='func_fallback_echo' +fi + +# func_echo_all arg... +# Invoke $ECHO with all args, space-separated. +func_echo_all () +{ + $ECHO "" +} + +case $ECHO in + printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 +$as_echo "printf" >&6; } ;; + print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 +$as_echo "print -r" >&6; } ;; + *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 +$as_echo "cat" >&6; } ;; +esac + + + + + + + + + + + + + + +DEPDIR="${am__leading_dot}deps" + +ac_config_commands="$ac_config_commands depfiles" + + +am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo this is the am__doit target +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 +$as_echo_n "checking for style of include used by $am_make... " >&6; } +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# Ignore all kinds of additional output from 'make'. +case `$am_make -s -f confmf 2> /dev/null` in #( +*the\ am__doit\ target*) + am__include=include + am__quote= + _am_result=GNU + ;; +esac +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + case `$am_make -s -f confmf 2> /dev/null` in #( + *the\ am__doit\ target*) + am__include=.include + am__quote="\"" + _am_result=BSD + ;; + esac +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 +$as_echo "$_am_result" >&6; } +rm -f confinc confmf + +# Check whether --enable-dependency-tracking was given. +if test "${enable_dependency_tracking+set}" = set; then : + enableval=$enable_dependency_tracking; +fi + +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' + am__nodep='_no' +fi + if test "x$enable_dependency_tracking" != xno; then + AMDEP_TRUE= + AMDEP_FALSE='#' +else + AMDEP_TRUE='#' + AMDEP_FALSE= +fi + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. +set dummy ${ac_tool_prefix}gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="${ac_tool_prefix}gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "gcc", so it can be a program name with args. +set dummy gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +else + CC="$ac_cv_prog_CC" +fi + +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. +set dummy ${ac_tool_prefix}cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="${ac_tool_prefix}cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + fi +fi +if test -z "$CC"; then + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + ac_prog_rejected=no +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then + ac_prog_rejected=yes + continue + fi + ac_cv_prog_CC="cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +if test $ac_prog_rejected = yes; then + # We found a bogon in the path, so make sure we never use it. + set dummy $ac_cv_prog_CC + shift + if test $# != 0; then + # We chose a different compiler from the bogus one. + # However, it has the same basename, so the bogon will be chosen + # first if we set CC to just the basename; use the full file name. + shift + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" + fi +fi +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + for ac_prog in cl.exe + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$CC" && break + done +fi +if test -z "$CC"; then + ac_ct_CC=$CC + for ac_prog in cl.exe +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_CC" && break +done + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +fi + +fi + + +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "no acceptable C compiler found in \$PATH +See \`config.log' for more details" "$LINENO" 5; } + +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" +# Try to create an executable without -o first, disregard a.out. +# It will help us diagnose broken compilers, and finding out an intuition +# of exeext. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 +$as_echo_n "checking whether the C compiler works... " >&6; } +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` + +# The possible output files: +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" + +ac_rmfiles= +for ac_file in $ac_files +do + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + * ) ac_rmfiles="$ac_rmfiles $ac_file";; + esac +done +rm -f $ac_rmfiles + +if { { ac_try="$ac_link_default" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link_default") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' +# in a Makefile. We should not override ac_cv_exeext if it was cached, +# so that the user can short-circuit this test for compilers unknown to +# Autoconf. +for ac_file in $ac_files '' +do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) + ;; + [ab].out ) + # We found the default executable, but exeext='' is most + # certainly right. + break;; + *.* ) + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; + then :; else + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + fi + # We set ac_cv_exeext here because the later test for it is not + # safe: cross compilers may not add the suffix if given an `-o' + # argument, so we may need to know it at that point already. + # Even if this section looks crufty: it has the advantage of + # actually working. + break;; + * ) + break;; + esac +done +test "$ac_cv_exeext" = no && ac_cv_exeext= + +else + ac_file='' +fi +if test -z "$ac_file"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +$as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "C compiler cannot create executables +See \`config.log' for more details" "$LINENO" 5; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 +$as_echo_n "checking for C compiler default output file name... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 +$as_echo "$ac_file" >&6; } +ac_exeext=$ac_cv_exeext + +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 +$as_echo_n "checking for suffix of executables... " >&6; } +if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # If both `conftest.exe' and `conftest' are `present' (well, observable) +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will +# work properly (i.e., refer to `conftest.exe'), while it won't with +# `rm'. +for ac_file in conftest.exe conftest conftest.*; do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + break;; + * ) break;; + esac +done +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of executables: cannot compile and link +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest conftest$ac_cv_exeext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 +$as_echo "$ac_cv_exeext" >&6; } + +rm -f conftest.$ac_ext +EXEEXT=$ac_cv_exeext +ac_exeext=$EXEEXT +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +FILE *f = fopen ("conftest.out", "w"); + return ferror (f) || fclose (f) != 0; + + ; + return 0; +} +_ACEOF +ac_clean_files="$ac_clean_files conftest.out" +# Check that the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 +$as_echo_n "checking whether we are cross compiling... " >&6; } +if test "$cross_compiling" != yes; then + { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if { ac_try='./conftest$ac_cv_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then + cross_compiling=no + else + if test "$cross_compiling" = maybe; then + cross_compiling=yes + else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot run C compiled programs. +If you meant to cross compile, use \`--host'. +See \`config.log' for more details" "$LINENO" 5; } + fi + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 +$as_echo "$cross_compiling" >&6; } + +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 +$as_echo_n "checking for suffix of object files... " >&6; } +if ${ac_cv_objext+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.o conftest.obj +if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + for ac_file in conftest.o conftest.obj conftest.*; do + test -f "$ac_file" || continue; + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` + break;; + esac +done +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of object files: cannot compile +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest.$ac_cv_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 +$as_echo "$ac_cv_objext" >&6; } +OBJEXT=$ac_cv_objext +ac_objext=$OBJEXT +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } +if ${ac_cv_c_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_c_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 +$as_echo "$ac_cv_c_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GCC=yes +else + GCC= +fi +ac_test_CFLAGS=${CFLAGS+set} +ac_save_CFLAGS=$CFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 +$as_echo_n "checking whether $CC accepts -g... " >&6; } +if ${ac_cv_prog_cc_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_c_werror_flag=$ac_c_werror_flag + ac_c_werror_flag=yes + ac_cv_prog_cc_g=no + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +else + CFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else + ac_c_werror_flag=$ac_save_c_werror_flag + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_c_werror_flag=$ac_save_c_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 +$as_echo "$ac_cv_prog_cc_g" >&6; } +if test "$ac_test_CFLAGS" = set; then + CFLAGS=$ac_save_CFLAGS +elif test $ac_cv_prog_cc_g = yes; then + if test "$GCC" = yes; then + CFLAGS="-g -O2" + else + CFLAGS="-g" + fi +else + if test "$GCC" = yes; then + CFLAGS="-O2" + else + CFLAGS= + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } +if ${ac_cv_prog_cc_c89+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_prog_cc_c89=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +struct stat; +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ +struct buf { int x; }; +FILE * (*rcsopen) (struct buf *, struct stat *, int); +static char *e (p, i) + char **p; + int i; +{ + return p[i]; +} +static char *f (char * (*g) (char **, int), char **p, ...) +{ + char *s; + va_list v; + va_start (v,p); + s = g (p, va_arg (v,int)); + va_end (v); + return s; +} + +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has + function prototypes and stuff, but not '\xHH' hex character constants. + These don't provoke an error unfortunately, instead are silently treated + as 'x'. The following induces an error, until -std is added to get + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an + array size at least. It's necessary to write '\x00'==0 to get something + that's true only with -std. */ +int osf4_cc_array ['\x00' == 0 ? 1 : -1]; + +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters + inside strings and character constants. */ +#define FOO(x) 'x' +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; + +int test (int i, double x); +struct s1 {int (*f) (int a);}; +struct s2 {int (*f) (double a);}; +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); +int argc; +char **argv; +int +main () +{ +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; + ; + return 0; +} +_ACEOF +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_c89=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext + test "x$ac_cv_prog_cc_c89" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC + +fi +# AC_CACHE_VAL +case "x$ac_cv_prog_cc_c89" in + x) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +$as_echo "none needed" >&6; } ;; + xno) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +$as_echo "unsupported" >&6; } ;; + *) + CC="$CC $ac_cv_prog_cc_c89" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; +esac +if test "x$ac_cv_prog_cc_c89" != xno; then : + +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 +$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } +if ${am_cv_prog_cc_c_o+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF + # Make sure it works both with $CC and with simple cc. + # Following AC_PROG_CC_C_O, we do the test twice because some + # compilers refuse to overwrite an existing .o file with -o, + # though they will create one. + am_cv_prog_cc_c_o=yes + for am_i in 1 2; do + if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 + ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } \ + && test -f conftest2.$ac_objext; then + : OK + else + am_cv_prog_cc_c_o=no + break + fi + done + rm -f core conftest* + unset am_i +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 +$as_echo "$am_cv_prog_cc_c_o" >&6; } +if test "$am_cv_prog_cc_c_o" != yes; then + # Losing compiler, so override with the script. + # FIXME: It is wrong to rewrite CC. + # But if we don't then we get into trouble of one sort or another. + # A longer-term fix would be to have automake use am__CC in this case, + # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" + CC="$am_aux_dir/compile $CC" +fi +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +depcc="$CC" am_compiler_list= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if ${am_cv_CC_dependencies_compiler_type+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named 'D' -- because '-MD' means "put the output + # in D". + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_CC_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + am__universal=false + case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with + # Solaris 10 /bin/sh. + echo '/* dummy */' > sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with '-c' and '-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle '-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs. + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # After this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested. + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok '-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CC_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CC_dependencies_compiler_type=none +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type + + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then + am__fastdepCC_TRUE= + am__fastdepCC_FALSE='#' +else + am__fastdepCC_TRUE='#' + am__fastdepCC_FALSE= +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 +$as_echo_n "checking for a sed that does not truncate output... " >&6; } +if ${ac_cv_path_SED+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ + for ac_i in 1 2 3 4 5 6 7; do + ac_script="$ac_script$as_nl$ac_script" + done + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed + { ac_script=; unset ac_script;} + if test -z "$SED"; then + ac_path_SED_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in sed gsed; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_SED" || continue +# Check for GNU ac_path_SED and select it if it is found. + # Check for GNU $ac_path_SED +case `"$ac_path_SED" --version 2>&1` in +*GNU*) + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo '' >> "conftest.nl" + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_SED_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_SED="$ac_path_SED" + ac_path_SED_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_SED_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_SED"; then + as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 + fi +else + ac_cv_path_SED=$SED +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 +$as_echo "$ac_cv_path_SED" >&6; } + SED="$ac_cv_path_SED" + rm -f conftest.sed + +test -z "$SED" && SED=sed +Xsed="$SED -e 1s/^X//" + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 +$as_echo_n "checking for grep that handles long lines and -e... " >&6; } +if ${ac_cv_path_GREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$GREP"; then + ac_path_GREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in grep ggrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_GREP" || continue +# Check for GNU ac_path_GREP and select it if it is found. + # Check for GNU $ac_path_GREP +case `"$ac_path_GREP" --version 2>&1` in +*GNU*) + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'GREP' >> "conftest.nl" + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_GREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_GREP="$ac_path_GREP" + ac_path_GREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_GREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_GREP"; then + as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_GREP=$GREP +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 +$as_echo "$ac_cv_path_GREP" >&6; } + GREP="$ac_cv_path_GREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 +$as_echo_n "checking for egrep... " >&6; } +if ${ac_cv_path_EGREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 + then ac_cv_path_EGREP="$GREP -E" + else + if test -z "$EGREP"; then + ac_path_EGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in egrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP" || continue +# Check for GNU ac_path_EGREP and select it if it is found. + # Check for GNU $ac_path_EGREP +case `"$ac_path_EGREP" --version 2>&1` in +*GNU*) + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'EGREP' >> "conftest.nl" + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_EGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_EGREP="$ac_path_EGREP" + ac_path_EGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_EGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_EGREP"; then + as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_EGREP=$EGREP +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 +$as_echo "$ac_cv_path_EGREP" >&6; } + EGREP="$ac_cv_path_EGREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 +$as_echo_n "checking for fgrep... " >&6; } +if ${ac_cv_path_FGREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 + then ac_cv_path_FGREP="$GREP -F" + else + if test -z "$FGREP"; then + ac_path_FGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in fgrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_FGREP" || continue +# Check for GNU ac_path_FGREP and select it if it is found. + # Check for GNU $ac_path_FGREP +case `"$ac_path_FGREP" --version 2>&1` in +*GNU*) + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'FGREP' >> "conftest.nl" + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_FGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_FGREP="$ac_path_FGREP" + ac_path_FGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_FGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_FGREP"; then + as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_FGREP=$FGREP +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 +$as_echo "$ac_cv_path_FGREP" >&6; } + FGREP="$ac_cv_path_FGREP" + + +test -z "$GREP" && GREP=grep + + + + + + + + + + + + + + + + + + + +# Check whether --with-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then : + withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes +else + with_gnu_ld=no +fi + +ac_prog=ld +if test yes = "$GCC"; then + # Check if gcc -print-prog-name=ld gives a path. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 +$as_echo_n "checking for ld used by $CC... " >&6; } + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return, which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [\\/]* | ?:[\\/]*) + re_direlt='/[^/][^/]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD=$ac_prog + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test yes = "$with_gnu_ld"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +$as_echo_n "checking for GNU ld... " >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +$as_echo_n "checking for non-GNU ld... " >&6; } +fi +if ${lt_cv_path_LD+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$LD"; then + lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS=$lt_save_ifs + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD=$ac_dir/$ac_prog + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &5 +$as_echo "$LD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } +if ${lt_cv_prog_gnu_ld+:} false; then : + $as_echo_n "(cached) " >&6 +else + # I'd rather use --version here, but apparently some GNU lds only accept -v. +case `$LD -v 2>&1 &5 +$as_echo "$lt_cv_prog_gnu_ld" >&6; } +with_gnu_ld=$lt_cv_prog_gnu_ld + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } +if ${lt_cv_path_NM+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$NM"; then + # Let the user override the test. + lt_cv_path_NM=$NM +else + lt_nm_to_check=${ac_tool_prefix}nm + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then + lt_nm_to_check="$lt_nm_to_check nm" + fi + for lt_tmp_nm in $lt_nm_to_check; do + lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do + IFS=$lt_save_ifs + test -z "$ac_dir" && ac_dir=. + tmp_nm=$ac_dir/$lt_tmp_nm + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then + # Check to see if the nm accepts a BSD-compat flag. + # Adding the 'sed 1q' prevents false positives on HP-UX, which says: + # nm: unknown option "B" ignored + # Tru64's nm complains that /dev/null is an invalid object file + # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty + case $build_os in + mingw*) lt_bad_file=conftest.nm/nofile ;; + *) lt_bad_file=/dev/null ;; + esac + case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in + *$lt_bad_file* | *'Invalid file or object type'*) + lt_cv_path_NM="$tmp_nm -B" + break 2 + ;; + *) + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in + */dev/null*) + lt_cv_path_NM="$tmp_nm -p" + break 2 + ;; + *) + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but + continue # so that we can try to find one that supports BSD flags + ;; + esac + ;; + esac + fi + done + IFS=$lt_save_ifs + done + : ${lt_cv_path_NM=no} +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 +$as_echo "$lt_cv_path_NM" >&6; } +if test no != "$lt_cv_path_NM"; then + NM=$lt_cv_path_NM +else + # Didn't find any BSD compatible name lister, look for dumpbin. + if test -n "$DUMPBIN"; then : + # Let the user override the test. + else + if test -n "$ac_tool_prefix"; then + for ac_prog in dumpbin "link -dump" + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DUMPBIN+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DUMPBIN"; then + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DUMPBIN=$ac_cv_prog_DUMPBIN +if test -n "$DUMPBIN"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 +$as_echo "$DUMPBIN" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$DUMPBIN" && break + done +fi +if test -z "$DUMPBIN"; then + ac_ct_DUMPBIN=$DUMPBIN + for ac_prog in dumpbin "link -dump" +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DUMPBIN"; then + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN +if test -n "$ac_ct_DUMPBIN"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 +$as_echo "$ac_ct_DUMPBIN" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_DUMPBIN" && break +done + + if test "x$ac_ct_DUMPBIN" = x; then + DUMPBIN=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DUMPBIN=$ac_ct_DUMPBIN + fi +fi + + case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in + *COFF*) + DUMPBIN="$DUMPBIN -symbols -headers" + ;; + *) + DUMPBIN=: + ;; + esac + fi + + if test : != "$DUMPBIN"; then + NM=$DUMPBIN + fi +fi +test -z "$NM" && NM=nm + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 +$as_echo_n "checking the name lister ($NM) interface... " >&6; } +if ${lt_cv_nm_interface+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_nm_interface="BSD nm" + echo "int some_variable = 0;" > conftest.$ac_ext + (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) + (eval "$ac_compile" 2>conftest.err) + cat conftest.err >&5 + (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) + cat conftest.err >&5 + (eval echo "\"\$as_me:$LINENO: output\"" >&5) + cat conftest.out >&5 + if $GREP 'External.*some_variable' conftest.out > /dev/null; then + lt_cv_nm_interface="MS dumpbin" + fi + rm -f conftest* +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 +$as_echo "$lt_cv_nm_interface" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 +$as_echo_n "checking whether ln -s works... " >&6; } +LN_S=$as_ln_s +if test "$LN_S" = "ln -s"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 +$as_echo "no, using $LN_S" >&6; } +fi + +# find the maximum length of command line arguments +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 +$as_echo_n "checking the maximum length of command line arguments... " >&6; } +if ${lt_cv_sys_max_cmd_len+:} false; then : + $as_echo_n "(cached) " >&6 +else + i=0 + teststring=ABCD + + case $build_os in + msdosdjgpp*) + # On DJGPP, this test can blow up pretty badly due to problems in libc + # (any single argument exceeding 2000 bytes causes a buffer overrun + # during glob expansion). Even if it were fixed, the result of this + # check would be larger than it should be. + lt_cv_sys_max_cmd_len=12288; # 12K is about right + ;; + + gnu*) + # Under GNU Hurd, this test is not required because there is + # no limit to the length of command line arguments. + # Libtool will interpret -1 as no limit whatsoever + lt_cv_sys_max_cmd_len=-1; + ;; + + cygwin* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, + # you end up with a "frozen" computer, even though with patience + # the test eventually succeeds (with a max line length of 256k). + # Instead, let's just punt: use the minimum linelength reported by + # all of the supported platforms: 8192 (on NT/2K/XP). + lt_cv_sys_max_cmd_len=8192; + ;; + + mint*) + # On MiNT this can take a long time and run out of memory. + lt_cv_sys_max_cmd_len=8192; + ;; + + amigaos*) + # On AmigaOS with pdksh, this test takes hours, literally. + # So we just punt and use a minimum line length of 8192. + lt_cv_sys_max_cmd_len=8192; + ;; + + bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) + # This has been around since 386BSD, at least. Likely further. + if test -x /sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` + elif test -x /usr/sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` + else + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs + fi + # And add a safety zone + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + ;; + + interix*) + # We know the value 262144 and hardcode it with a safety zone (like BSD) + lt_cv_sys_max_cmd_len=196608 + ;; + + os2*) + # The test takes a long time on OS/2. + lt_cv_sys_max_cmd_len=8192 + ;; + + osf*) + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not + # nice to cause kernel panics so lets avoid the loop below. + # First set a reasonable default. + lt_cv_sys_max_cmd_len=16384 + # + if test -x /sbin/sysconfig; then + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in + *1*) lt_cv_sys_max_cmd_len=-1 ;; + esac + fi + ;; + sco3.2v5*) + lt_cv_sys_max_cmd_len=102400 + ;; + sysv5* | sco5v6* | sysv4.2uw2*) + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` + if test -n "$kargmax"; then + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` + else + lt_cv_sys_max_cmd_len=32768 + fi + ;; + *) + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` + if test -n "$lt_cv_sys_max_cmd_len" && \ + test undefined != "$lt_cv_sys_max_cmd_len"; then + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + else + # Make teststring a little bigger before we do anything with it. + # a 1K string should be a reasonable start. + for i in 1 2 3 4 5 6 7 8; do + teststring=$teststring$teststring + done + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} + # If test is not a shell built-in, we'll probably end up computing a + # maximum length that is only half of the actual maximum length, but + # we can't tell. + while { test X`env echo "$teststring$teststring" 2>/dev/null` \ + = "X$teststring$teststring"; } >/dev/null 2>&1 && + test 17 != "$i" # 1/2 MB should be enough + do + i=`expr $i + 1` + teststring=$teststring$teststring + done + # Only check the string length outside the loop. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` + teststring= + # Add a significant safety factor because C++ compilers can tack on + # massive amounts of additional arguments before passing them to the + # linker. It appears as though 1/2 is a usable value. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` + fi + ;; + esac + +fi + +if test -n "$lt_cv_sys_max_cmd_len"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 +$as_echo "$lt_cv_sys_max_cmd_len" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 +$as_echo "none" >&6; } +fi +max_cmd_len=$lt_cv_sys_max_cmd_len + + + + + + +: ${CP="cp -f"} +: ${MV="mv -f"} +: ${RM="rm -f"} + +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then + lt_unset=unset +else + lt_unset=false +fi + + + + + +# test EBCDIC or ASCII +case `echo X|tr X '\101'` in + A) # ASCII based system + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr + lt_SP2NL='tr \040 \012' + lt_NL2SP='tr \015\012 \040\040' + ;; + *) # EBCDIC based system + lt_SP2NL='tr \100 \n' + lt_NL2SP='tr \r\n \100\100' + ;; +esac + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 +$as_echo_n "checking how to convert $build file names to $host format... " >&6; } +if ${lt_cv_to_host_file_cmd+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $host in + *-*-mingw* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 + ;; + *-*-cygwin* ) + lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 + ;; + * ) # otherwise, assume *nix + lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 + ;; + esac + ;; + *-*-cygwin* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin + ;; + *-*-cygwin* ) + lt_cv_to_host_file_cmd=func_convert_file_noop + ;; + * ) # otherwise, assume *nix + lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin + ;; + esac + ;; + * ) # unhandled hosts (and "normal" native builds) + lt_cv_to_host_file_cmd=func_convert_file_noop + ;; +esac + +fi + +to_host_file_cmd=$lt_cv_to_host_file_cmd +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 +$as_echo "$lt_cv_to_host_file_cmd" >&6; } + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 +$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } +if ${lt_cv_to_tool_file_cmd+:} false; then : + $as_echo_n "(cached) " >&6 +else + #assume ordinary cross tools, or native build. +lt_cv_to_tool_file_cmd=func_convert_file_noop +case $host in + *-*-mingw* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 + ;; + esac + ;; +esac + +fi + +to_tool_file_cmd=$lt_cv_to_tool_file_cmd +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 +$as_echo "$lt_cv_to_tool_file_cmd" >&6; } + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 +$as_echo_n "checking for $LD option to reload object files... " >&6; } +if ${lt_cv_ld_reload_flag+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_reload_flag='-r' +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 +$as_echo "$lt_cv_ld_reload_flag" >&6; } +reload_flag=$lt_cv_ld_reload_flag +case $reload_flag in +"" | " "*) ;; +*) reload_flag=" $reload_flag" ;; +esac +reload_cmds='$LD$reload_flag -o $output$reload_objs' +case $host_os in + cygwin* | mingw* | pw32* | cegcc*) + if test yes != "$GCC"; then + reload_cmds=false + fi + ;; + darwin*) + if test yes = "$GCC"; then + reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' + else + reload_cmds='$LD$reload_flag -o $output$reload_objs' + fi + ;; +esac + + + + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. +set dummy ${ac_tool_prefix}objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OBJDUMP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OBJDUMP"; then + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OBJDUMP=$ac_cv_prog_OBJDUMP +if test -n "$OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 +$as_echo "$OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OBJDUMP"; then + ac_ct_OBJDUMP=$OBJDUMP + # Extract the first word of "objdump", so it can be a program name with args. +set dummy objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OBJDUMP"; then + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_OBJDUMP="objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP +if test -n "$ac_ct_OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 +$as_echo "$ac_ct_OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OBJDUMP" = x; then + OBJDUMP="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OBJDUMP=$ac_ct_OBJDUMP + fi +else + OBJDUMP="$ac_cv_prog_OBJDUMP" +fi + +test -z "$OBJDUMP" && OBJDUMP=objdump + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 +$as_echo_n "checking how to recognize dependent libraries... " >&6; } +if ${lt_cv_deplibs_check_method+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_file_magic_cmd='$MAGIC_CMD' +lt_cv_file_magic_test_file= +lt_cv_deplibs_check_method='unknown' +# Need to set the preceding variable on all platforms that support +# interlibrary dependencies. +# 'none' -- dependencies not supported. +# 'unknown' -- same as none, but documents that we really don't know. +# 'pass_all' -- all dependencies passed with no checks. +# 'test_compile' -- check by making test program. +# 'file_magic [[regex]]' -- check by looking for files in library path +# that responds to the $file_magic_cmd with a given extended regex. +# If you have 'file' or equivalent on your system and you're not sure +# whether 'pass_all' will *always* work, you probably want this one. + +case $host_os in +aix[4-9]*) + lt_cv_deplibs_check_method=pass_all + ;; + +beos*) + lt_cv_deplibs_check_method=pass_all + ;; + +bsdi[45]*) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' + lt_cv_file_magic_cmd='/usr/bin/file -L' + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +cygwin*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + ;; + +mingw* | pw32*) + # Base MSYS/MinGW do not provide the 'file' command needed by + # func_win32_libid shell function, so use a weaker test based on 'objdump', + # unless we find 'file', for example because we are cross-compiling. + if ( file / ) >/dev/null 2>&1; then + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + else + # Keep this pattern in sync with the one in func_win32_libid. + lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' + lt_cv_file_magic_cmd='$OBJDUMP -f' + fi + ;; + +cegcc*) + # use the weaker test based on 'objdump'. See mingw*. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' + lt_cv_file_magic_cmd='$OBJDUMP -f' + ;; + +darwin* | rhapsody*) + lt_cv_deplibs_check_method=pass_all + ;; + +freebsd* | dragonfly*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + case $host_cpu in + i*86 ) + # Not sure whether the presence of OpenBSD here was a mistake. + # Let's accept both of them until this is cleared up. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` + ;; + esac + else + lt_cv_deplibs_check_method=pass_all + fi + ;; + +haiku*) + lt_cv_deplibs_check_method=pass_all + ;; + +hpux10.20* | hpux11*) + lt_cv_file_magic_cmd=/usr/bin/file + case $host_cpu in + ia64*) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so + ;; + hppa*64*) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl + ;; + *) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' + lt_cv_file_magic_test_file=/usr/lib/libc.sl + ;; + esac + ;; + +interix[3-9]*) + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' + ;; + +irix5* | irix6* | nonstopux*) + case $LD in + *-32|*"-32 ") libmagic=32-bit;; + *-n32|*"-n32 ") libmagic=N32;; + *-64|*"-64 ") libmagic=64-bit;; + *) libmagic=never-match;; + esac + lt_cv_deplibs_check_method=pass_all + ;; + +# This must be glibc/ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + lt_cv_deplibs_check_method=pass_all + ;; + +netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' + fi + ;; + +newos6*) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=/usr/lib/libnls.so + ;; + +*nto* | *qnx*) + lt_cv_deplibs_check_method=pass_all + ;; + +openbsd* | bitrig*) + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' + fi + ;; + +osf3* | osf4* | osf5*) + lt_cv_deplibs_check_method=pass_all + ;; + +rdos*) + lt_cv_deplibs_check_method=pass_all + ;; + +solaris*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv4 | sysv4.3*) + case $host_vendor in + motorola) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` + ;; + ncr) + lt_cv_deplibs_check_method=pass_all + ;; + sequent) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' + ;; + sni) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" + lt_cv_file_magic_test_file=/lib/libc.so + ;; + siemens) + lt_cv_deplibs_check_method=pass_all + ;; + pc) + lt_cv_deplibs_check_method=pass_all + ;; + esac + ;; + +tpf*) + lt_cv_deplibs_check_method=pass_all + ;; +os2*) + lt_cv_deplibs_check_method=pass_all + ;; +esac + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 +$as_echo "$lt_cv_deplibs_check_method" >&6; } + +file_magic_glob= +want_nocaseglob=no +if test "$build" = "$host"; then + case $host_os in + mingw* | pw32*) + if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then + want_nocaseglob=yes + else + file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` + fi + ;; + esac +fi + +file_magic_cmd=$lt_cv_file_magic_cmd +deplibs_check_method=$lt_cv_deplibs_check_method +test -z "$deplibs_check_method" && deplibs_check_method=unknown + + + + + + + + + + + + + + + + + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DLLTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DLLTOOL"; then + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DLLTOOL=$ac_cv_prog_DLLTOOL +if test -n "$DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 +$as_echo "$DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_DLLTOOL"; then + ac_ct_DLLTOOL=$DLLTOOL + # Extract the first word of "dlltool", so it can be a program name with args. +set dummy dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DLLTOOL"; then + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_DLLTOOL="dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL +if test -n "$ac_ct_DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 +$as_echo "$ac_ct_DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_DLLTOOL" = x; then + DLLTOOL="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DLLTOOL=$ac_ct_DLLTOOL + fi +else + DLLTOOL="$ac_cv_prog_DLLTOOL" +fi + +test -z "$DLLTOOL" && DLLTOOL=dlltool + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 +$as_echo_n "checking how to associate runtime and link libraries... " >&6; } +if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_sharedlib_from_linklib_cmd='unknown' + +case $host_os in +cygwin* | mingw* | pw32* | cegcc*) + # two different shell functions defined in ltmain.sh; + # decide which one to use based on capabilities of $DLLTOOL + case `$DLLTOOL --help 2>&1` in + *--identify-strict*) + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib + ;; + *) + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback + ;; + esac + ;; +*) + # fallback: assume linklib IS sharedlib + lt_cv_sharedlib_from_linklib_cmd=$ECHO + ;; +esac + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 +$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } +sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd +test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO + + + + + + + + +if test -n "$ac_tool_prefix"; then + for ac_prog in ar + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AR+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AR"; then + ac_cv_prog_AR="$AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AR="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AR=$ac_cv_prog_AR +if test -n "$AR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 +$as_echo "$AR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$AR" && break + done +fi +if test -z "$AR"; then + ac_ct_AR=$AR + for ac_prog in ar +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_AR+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_AR"; then + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_AR="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_AR=$ac_cv_prog_ac_ct_AR +if test -n "$ac_ct_AR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 +$as_echo "$ac_ct_AR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_AR" && break +done + + if test "x$ac_ct_AR" = x; then + AR="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + AR=$ac_ct_AR + fi +fi + +: ${AR=ar} +: ${AR_FLAGS=cru} + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 +$as_echo_n "checking for archiver @FILE support... " >&6; } +if ${lt_cv_ar_at_file+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ar_at_file=no + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + echo conftest.$ac_objext > conftest.lst + lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 + (eval $lt_ar_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if test 0 -eq "$ac_status"; then + # Ensure the archiver fails upon bogus file names. + rm -f conftest.$ac_objext libconftest.a + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 + (eval $lt_ar_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if test 0 -ne "$ac_status"; then + lt_cv_ar_at_file=@ + fi + fi + rm -f conftest.* libconftest.a + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 +$as_echo "$lt_cv_ar_at_file" >&6; } + +if test no = "$lt_cv_ar_at_file"; then + archiver_list_spec= +else + archiver_list_spec=$lt_cv_ar_at_file +fi + + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi + +test -z "$STRIP" && STRIP=: + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_RANLIB+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$RANLIB"; then + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +RANLIB=$ac_cv_prog_RANLIB +if test -n "$RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 +$as_echo "$RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_RANLIB"; then + ac_ct_RANLIB=$RANLIB + # Extract the first word of "ranlib", so it can be a program name with args. +set dummy ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_RANLIB"; then + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_RANLIB="ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB +if test -n "$ac_ct_RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 +$as_echo "$ac_ct_RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_RANLIB" = x; then + RANLIB=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + RANLIB=$ac_ct_RANLIB + fi +else + RANLIB="$ac_cv_prog_RANLIB" +fi + +test -z "$RANLIB" && RANLIB=: + + + + + + +# Determine commands to create old-style static archives. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' +old_postinstall_cmds='chmod 644 $oldlib' +old_postuninstall_cmds= + +if test -n "$RANLIB"; then + case $host_os in + bitrig* | openbsd*) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" + ;; + *) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" + ;; + esac + old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" +fi + +case $host_os in + darwin*) + lock_old_archive_extraction=yes ;; + *) + lock_old_archive_extraction=no ;; +esac + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + + +# Check for command to grab the raw symbol name followed by C symbol from nm. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } +if ${lt_cv_sys_global_symbol_pipe+:} false; then : + $as_echo_n "(cached) " >&6 +else + +# These are sane defaults that work on at least a few old systems. +# [They come from Ultrix. What could be older than Ultrix?!! ;)] + +# Character class describing NM global symbol codes. +symcode='[BCDEGRST]' + +# Regexp to match symbols that can be accessed directly from C. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)' + +# Define system-specific variables. +case $host_os in +aix*) + symcode='[BCDT]' + ;; +cygwin* | mingw* | pw32* | cegcc*) + symcode='[ABCDGISTW]' + ;; +hpux*) + if test ia64 = "$host_cpu"; then + symcode='[ABCDEGRST]' + fi + ;; +irix* | nonstopux*) + symcode='[BCDEGRST]' + ;; +osf*) + symcode='[BCDEGQRST]' + ;; +solaris*) + symcode='[BDRT]' + ;; +sco3.2v5*) + symcode='[DT]' + ;; +sysv4.2uw2*) + symcode='[DT]' + ;; +sysv5* | sco5v6* | unixware* | OpenUNIX*) + symcode='[ABDT]' + ;; +sysv4) + symcode='[DFNSTU]' + ;; +esac + +# If we're using GNU nm, then use its standard symbol codes. +case `$NM -V 2>&1` in +*GNU* | *'with BFD'*) + symcode='[ABCDGIRSTW]' ;; +esac + +if test "$lt_cv_nm_interface" = "MS dumpbin"; then + # Gets list of data symbols to import. + lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" + # Adjust the below global symbol transforms to fixup imported variables. + lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" + lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" + lt_c_name_lib_hook="\ + -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ + -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" +else + # Disable hooks by default. + lt_cv_sys_global_symbol_to_import= + lt_cdecl_hook= + lt_c_name_hook= + lt_c_name_lib_hook= +fi + +# Transform an extracted symbol line into a proper C declaration. +# Some systems (esp. on ia64) link data and code symbols differently, +# so use this general approach. +lt_cv_sys_global_symbol_to_cdecl="sed -n"\ +$lt_cdecl_hook\ +" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ +" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" + +# Transform an extracted symbol line into symbol name and symbol address +lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ +$lt_c_name_hook\ +" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ +" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" + +# Transform an extracted symbol line into symbol name with lib prefix and +# symbol address. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ +$lt_c_name_lib_hook\ +" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ +" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ +" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" + +# Handle CRLF in mingw tool chain +opt_cr= +case $build_os in +mingw*) + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp + ;; +esac + +# Try without a prefix underscore, then with it. +for ac_symprfx in "" "_"; do + + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. + symxfrm="\\1 $ac_symprfx\\2 \\2" + + # Write the raw and C identifiers. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then + # Fake it for dumpbin and say T for any non-static function, + # D for any global variable and I for any imported variable. + # Also find C++ and __fastcall symbols from MSVC++, + # which start with @ or ?. + lt_cv_sys_global_symbol_pipe="$AWK '"\ +" {last_section=section; section=\$ 3};"\ +" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ +" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ +" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ +" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ +" \$ 0!~/External *\|/{next};"\ +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ +" {if(hide[section]) next};"\ +" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ +" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ +" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ +" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ +" ' prfx=^$ac_symprfx" + else + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" + fi + lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" + + # Check to see that the pipe works correctly. + pipe_works=no + + rm -f conftest* + cat > conftest.$ac_ext <<_LT_EOF +#ifdef __cplusplus +extern "C" { +#endif +char nm_test_var; +void nm_test_func(void); +void nm_test_func(void){} +#ifdef __cplusplus +} +#endif +int main(){nm_test_var='a';nm_test_func();return(0);} +_LT_EOF + + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + # Now try to grab the symbols. + nlist=conftest.nm + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 + (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s "$nlist"; then + # Try sorting and uniquifying the output. + if sort "$nlist" | uniq > "$nlist"T; then + mv -f "$nlist"T "$nlist" + else + rm -f "$nlist"T + fi + + # Make sure that we snagged all the symbols we need. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then + cat <<_LT_EOF > conftest.$ac_ext +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ +#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE +/* DATA imports from DLLs on WIN32 can't be const, because runtime + relocations are performed -- see ld's documentation on pseudo-relocs. */ +# define LT_DLSYM_CONST +#elif defined __osf__ +/* This system does not cope well with relocations in const data. */ +# define LT_DLSYM_CONST +#else +# define LT_DLSYM_CONST const +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +_LT_EOF + # Now generate the symbol file. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' + + cat <<_LT_EOF >> conftest.$ac_ext + +/* The mapping between symbol names and symbols. */ +LT_DLSYM_CONST struct { + const char *name; + void *address; +} +lt__PROGRAM__LTX_preloaded_symbols[] = +{ + { "@PROGRAM@", (void *) 0 }, +_LT_EOF + $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext + cat <<\_LT_EOF >> conftest.$ac_ext + {0, (void *) 0} +}; + +/* This works around a problem in FreeBSD linker */ +#ifdef FREEBSD_WORKAROUND +static const void *lt_preloaded_setup() { + return lt__PROGRAM__LTX_preloaded_symbols; +} +#endif + +#ifdef __cplusplus +} +#endif +_LT_EOF + # Now try linking the two files. + mv conftest.$ac_objext conftstm.$ac_objext + lt_globsym_save_LIBS=$LIBS + lt_globsym_save_CFLAGS=$CFLAGS + LIBS=conftstm.$ac_objext + CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest$ac_exeext; then + pipe_works=yes + fi + LIBS=$lt_globsym_save_LIBS + CFLAGS=$lt_globsym_save_CFLAGS + else + echo "cannot find nm_test_func in $nlist" >&5 + fi + else + echo "cannot find nm_test_var in $nlist" >&5 + fi + else + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 + fi + else + echo "$progname: failed program was:" >&5 + cat conftest.$ac_ext >&5 + fi + rm -rf conftest* conftst* + + # Do not use the global_symbol_pipe unless it works. + if test yes = "$pipe_works"; then + break + else + lt_cv_sys_global_symbol_pipe= + fi +done + +fi + +if test -z "$lt_cv_sys_global_symbol_pipe"; then + lt_cv_sys_global_symbol_to_cdecl= +fi +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 +$as_echo "failed" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +$as_echo "ok" >&6; } +fi + +# Response file support. +if test "$lt_cv_nm_interface" = "MS dumpbin"; then + nm_file_list_spec='@' +elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then + nm_file_list_spec='@' +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 +$as_echo_n "checking for sysroot... " >&6; } + +# Check whether --with-sysroot was given. +if test "${with_sysroot+set}" = set; then : + withval=$with_sysroot; +else + with_sysroot=no +fi + + +lt_sysroot= +case $with_sysroot in #( + yes) + if test yes = "$GCC"; then + lt_sysroot=`$CC --print-sysroot 2>/dev/null` + fi + ;; #( + /*) + lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` + ;; #( + no|'') + ;; #( + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 +$as_echo "$with_sysroot" >&6; } + as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 + ;; +esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 +$as_echo "${lt_sysroot:-no}" >&6; } + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 +$as_echo_n "checking for a working dd... " >&6; } +if ${ac_cv_path_lt_DD+:} false; then : + $as_echo_n "(cached) " >&6 +else + printf 0123456789abcdef0123456789abcdef >conftest.i +cat conftest.i conftest.i >conftest2.i +: ${lt_DD:=$DD} +if test -z "$lt_DD"; then + ac_path_lt_DD_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in dd; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_lt_DD" || continue +if "$ac_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then + cmp -s conftest.i conftest.out \ + && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: +fi + $ac_path_lt_DD_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_lt_DD"; then + : + fi +else + ac_cv_path_lt_DD=$lt_DD +fi + +rm -f conftest.i conftest2.i conftest.out +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 +$as_echo "$ac_cv_path_lt_DD" >&6; } + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 +$as_echo_n "checking how to truncate binary pipes... " >&6; } +if ${lt_cv_truncate_bin+:} false; then : + $as_echo_n "(cached) " >&6 +else + printf 0123456789abcdef0123456789abcdef >conftest.i +cat conftest.i conftest.i >conftest2.i +lt_cv_truncate_bin= +if "$ac_cv_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then + cmp -s conftest.i conftest.out \ + && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" +fi +rm -f conftest.i conftest2.i conftest.out +test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 +$as_echo "$lt_cv_truncate_bin" >&6; } + + + + + + + +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. +func_cc_basename () +{ + for cc_temp in $*""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac + done + func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` +} + +# Check whether --enable-libtool-lock was given. +if test "${enable_libtool_lock+set}" = set; then : + enableval=$enable_libtool_lock; +fi + +test no = "$enable_libtool_lock" || enable_libtool_lock=yes + +# Some flags need to be propagated to the compiler or linker for good +# libtool support. +case $host in +ia64-*-hpux*) + # Find out what ABI is being produced by ac_compile, and set mode + # options accordingly. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.$ac_objext` in + *ELF-32*) + HPUX_IA64_MODE=32 + ;; + *ELF-64*) + HPUX_IA64_MODE=64 + ;; + esac + fi + rm -rf conftest* + ;; +*-*-irix6*) + # Find out what ABI is being produced by ac_compile, and set linker + # options accordingly. + echo '#line '$LINENO' "configure"' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + if test yes = "$lt_cv_prog_gnu_ld"; then + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -melf32bsmip" + ;; + *N32*) + LD="${LD-ld} -melf32bmipn32" + ;; + *64-bit*) + LD="${LD-ld} -melf64bmip" + ;; + esac + else + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -32" + ;; + *N32*) + LD="${LD-ld} -n32" + ;; + *64-bit*) + LD="${LD-ld} -64" + ;; + esac + fi + fi + rm -rf conftest* + ;; + +mips64*-*linux*) + # Find out what ABI is being produced by ac_compile, and set linker + # options accordingly. + echo '#line '$LINENO' "configure"' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + emul=elf + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + emul="${emul}32" + ;; + *64-bit*) + emul="${emul}64" + ;; + esac + case `/usr/bin/file conftest.$ac_objext` in + *MSB*) + emul="${emul}btsmip" + ;; + *LSB*) + emul="${emul}ltsmip" + ;; + esac + case `/usr/bin/file conftest.$ac_objext` in + *N32*) + emul="${emul}n32" + ;; + esac + LD="${LD-ld} -m $emul" + fi + rm -rf conftest* + ;; + +x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ +s390*-*linux*|s390*-*tpf*|sparc*-*linux*) + # Find out what ABI is being produced by ac_compile, and set linker + # options accordingly. Note that the listed cases only cover the + # situations where additional linker options are needed (such as when + # doing 32-bit compilation for a host where ld defaults to 64-bit, or + # vice versa); the common cases where no linker options are needed do + # not appear in the list. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.o` in + *32-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_i386_fbsd" + ;; + x86_64-*linux*) + case `/usr/bin/file conftest.o` in + *x86-64*) + LD="${LD-ld} -m elf32_x86_64" + ;; + *) + LD="${LD-ld} -m elf_i386" + ;; + esac + ;; + powerpc64le-*linux*) + LD="${LD-ld} -m elf32lppclinux" + ;; + powerpc64-*linux*) + LD="${LD-ld} -m elf32ppclinux" + ;; + s390x-*linux*) + LD="${LD-ld} -m elf_s390" + ;; + sparc64-*linux*) + LD="${LD-ld} -m elf32_sparc" + ;; + esac + ;; + *64-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_x86_64_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_x86_64" + ;; + powerpcle-*linux*) + LD="${LD-ld} -m elf64lppc" + ;; + powerpc-*linux*) + LD="${LD-ld} -m elf64ppc" + ;; + s390*-*linux*|s390*-*tpf*) + LD="${LD-ld} -m elf64_s390" + ;; + sparc*-*linux*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; + +*-*-sco3.2v5*) + # On SCO OpenServer 5, we need -belf to get full-featured binaries. + SAVE_CFLAGS=$CFLAGS + CFLAGS="$CFLAGS -belf" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 +$as_echo_n "checking whether the C compiler needs -belf... " >&6; } +if ${lt_cv_cc_needs_belf+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_cc_needs_belf=yes +else + lt_cv_cc_needs_belf=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 +$as_echo "$lt_cv_cc_needs_belf" >&6; } + if test yes != "$lt_cv_cc_needs_belf"; then + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf + CFLAGS=$SAVE_CFLAGS + fi + ;; +*-*solaris*) + # Find out what ABI is being produced by ac_compile, and set linker + # options accordingly. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.o` in + *64-bit*) + case $lt_cv_prog_gnu_ld in + yes*) + case $host in + i?86-*-solaris*|x86_64-*-solaris*) + LD="${LD-ld} -m elf_x86_64" + ;; + sparc*-*-solaris*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + # GNU ld 2.21 introduced _sol2 emulations. Use them if available. + if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then + LD=${LD-ld}_sol2 + fi + ;; + *) + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then + LD="${LD-ld} -64" + fi + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; +esac + +need_locks=$enable_libtool_lock + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. +set dummy ${ac_tool_prefix}mt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$MANIFEST_TOOL"; then + ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL +if test -n "$MANIFEST_TOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 +$as_echo "$MANIFEST_TOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_MANIFEST_TOOL"; then + ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL + # Extract the first word of "mt", so it can be a program name with args. +set dummy mt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_MANIFEST_TOOL"; then + ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL +if test -n "$ac_ct_MANIFEST_TOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 +$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_MANIFEST_TOOL" = x; then + MANIFEST_TOOL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL + fi +else + MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" +fi + +test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 +$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } +if ${lt_cv_path_mainfest_tool+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_path_mainfest_tool=no + echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 + $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out + cat conftest.err >&5 + if $GREP 'Manifest Tool' conftest.out > /dev/null; then + lt_cv_path_mainfest_tool=yes + fi + rm -f conftest* +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 +$as_echo "$lt_cv_path_mainfest_tool" >&6; } +if test yes != "$lt_cv_path_mainfest_tool"; then + MANIFEST_TOOL=: +fi + + + + + + + case $host_os in + rhapsody* | darwin*) + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DSYMUTIL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DSYMUTIL"; then + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DSYMUTIL=$ac_cv_prog_DSYMUTIL +if test -n "$DSYMUTIL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 +$as_echo "$DSYMUTIL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_DSYMUTIL"; then + ac_ct_DSYMUTIL=$DSYMUTIL + # Extract the first word of "dsymutil", so it can be a program name with args. +set dummy dsymutil; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DSYMUTIL"; then + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL +if test -n "$ac_ct_DSYMUTIL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 +$as_echo "$ac_ct_DSYMUTIL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_DSYMUTIL" = x; then + DSYMUTIL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DSYMUTIL=$ac_ct_DSYMUTIL + fi +else + DSYMUTIL="$ac_cv_prog_DSYMUTIL" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_NMEDIT+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$NMEDIT"; then + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +NMEDIT=$ac_cv_prog_NMEDIT +if test -n "$NMEDIT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 +$as_echo "$NMEDIT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_NMEDIT"; then + ac_ct_NMEDIT=$NMEDIT + # Extract the first word of "nmedit", so it can be a program name with args. +set dummy nmedit; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_NMEDIT"; then + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_NMEDIT="nmedit" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT +if test -n "$ac_ct_NMEDIT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 +$as_echo "$ac_ct_NMEDIT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_NMEDIT" = x; then + NMEDIT=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + NMEDIT=$ac_ct_NMEDIT + fi +else + NMEDIT="$ac_cv_prog_NMEDIT" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. +set dummy ${ac_tool_prefix}lipo; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_LIPO+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$LIPO"; then + ac_cv_prog_LIPO="$LIPO" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_LIPO="${ac_tool_prefix}lipo" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +LIPO=$ac_cv_prog_LIPO +if test -n "$LIPO"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 +$as_echo "$LIPO" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_LIPO"; then + ac_ct_LIPO=$LIPO + # Extract the first word of "lipo", so it can be a program name with args. +set dummy lipo; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_LIPO+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_LIPO"; then + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_LIPO="lipo" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO +if test -n "$ac_ct_LIPO"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 +$as_echo "$ac_ct_LIPO" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_LIPO" = x; then + LIPO=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + LIPO=$ac_ct_LIPO + fi +else + LIPO="$ac_cv_prog_LIPO" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. +set dummy ${ac_tool_prefix}otool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OTOOL"; then + ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OTOOL="${ac_tool_prefix}otool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OTOOL=$ac_cv_prog_OTOOL +if test -n "$OTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 +$as_echo "$OTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OTOOL"; then + ac_ct_OTOOL=$OTOOL + # Extract the first word of "otool", so it can be a program name with args. +set dummy otool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OTOOL"; then + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_OTOOL="otool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL +if test -n "$ac_ct_OTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 +$as_echo "$ac_ct_OTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OTOOL" = x; then + OTOOL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OTOOL=$ac_ct_OTOOL + fi +else + OTOOL="$ac_cv_prog_OTOOL" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. +set dummy ${ac_tool_prefix}otool64; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OTOOL64+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OTOOL64"; then + ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OTOOL64=$ac_cv_prog_OTOOL64 +if test -n "$OTOOL64"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 +$as_echo "$OTOOL64" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OTOOL64"; then + ac_ct_OTOOL64=$OTOOL64 + # Extract the first word of "otool64", so it can be a program name with args. +set dummy otool64; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OTOOL64"; then + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_OTOOL64="otool64" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 +if test -n "$ac_ct_OTOOL64"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 +$as_echo "$ac_ct_OTOOL64" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OTOOL64" = x; then + OTOOL64=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OTOOL64=$ac_ct_OTOOL64 + fi +else + OTOOL64="$ac_cv_prog_OTOOL64" +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 +$as_echo_n "checking for -single_module linker flag... " >&6; } +if ${lt_cv_apple_cc_single_mod+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_apple_cc_single_mod=no + if test -z "$LT_MULTI_MODULE"; then + # By default we will add the -single_module flag. You can override + # by either setting the environment variable LT_MULTI_MODULE + # non-empty at configure time, or by adding -multi_module to the + # link flags. + rm -rf libconftest.dylib* + echo "int foo(void){return 1;}" > conftest.c + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ +-dynamiclib -Wl,-single_module conftest.c" >&5 + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err + _lt_result=$? + # If there is a non-empty error log, and "single_module" + # appears in it, assume the flag caused a linker warning + if test -s conftest.err && $GREP single_module conftest.err; then + cat conftest.err >&5 + # Otherwise, if the output was created with a 0 exit code from + # the compiler, it worked. + elif test -f libconftest.dylib && test 0 = "$_lt_result"; then + lt_cv_apple_cc_single_mod=yes + else + cat conftest.err >&5 + fi + rm -rf libconftest.dylib* + rm -f conftest.* + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 +$as_echo "$lt_cv_apple_cc_single_mod" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } +if ${lt_cv_ld_exported_symbols_list+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_exported_symbols_list=no + save_LDFLAGS=$LDFLAGS + echo "_main" > conftest.sym + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_ld_exported_symbols_list=yes +else + lt_cv_ld_exported_symbols_list=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS=$save_LDFLAGS + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 +$as_echo_n "checking for -force_load linker flag... " >&6; } +if ${lt_cv_ld_force_load+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_force_load=no + cat > conftest.c << _LT_EOF +int forced_loaded() { return 2;} +_LT_EOF + echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 + $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 + echo "$AR cru libconftest.a conftest.o" >&5 + $AR cru libconftest.a conftest.o 2>&5 + echo "$RANLIB libconftest.a" >&5 + $RANLIB libconftest.a 2>&5 + cat > conftest.c << _LT_EOF +int main() { return 0;} +_LT_EOF + echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 + $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err + _lt_result=$? + if test -s conftest.err && $GREP force_load conftest.err; then + cat conftest.err >&5 + elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then + lt_cv_ld_force_load=yes + else + cat conftest.err >&5 + fi + rm -f conftest.err libconftest.a conftest conftest.c + rm -rf conftest.dSYM + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 +$as_echo "$lt_cv_ld_force_load" >&6; } + case $host_os in + rhapsody* | darwin1.[012]) + _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; + darwin1.*) + _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; + darwin*) # darwin 5.x on + # if running on 10.5 or later, the deployment target defaults + # to the OS version, if on x86, and 10.4, the deployment + # target defaults to 10.4. Don't you love it? + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in + 10.0,*86*-darwin8*|10.0,*-darwin[91]*) + _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; + 10.[012][,.]*) + _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; + 10.*) + _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; + esac + ;; + esac + if test yes = "$lt_cv_apple_cc_single_mod"; then + _lt_dar_single_mod='$single_module' + fi + if test yes = "$lt_cv_ld_exported_symbols_list"; then + _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' + else + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' + fi + if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then + _lt_dsymutil='~$DSYMUTIL $lib || :' + else + _lt_dsymutil= + fi + ;; + esac + +# func_munge_path_list VARIABLE PATH +# ----------------------------------- +# VARIABLE is name of variable containing _space_ separated list of +# directories to be munged by the contents of PATH, which is string +# having a format: +# "DIR[:DIR]:" +# string "DIR[ DIR]" will be prepended to VARIABLE +# ":DIR[:DIR]" +# string "DIR[ DIR]" will be appended to VARIABLE +# "DIRP[:DIRP]::[DIRA:]DIRA" +# string "DIRP[ DIRP]" will be prepended to VARIABLE and string +# "DIRA[ DIRA]" will be appended to VARIABLE +# "DIR[:DIR]" +# VARIABLE will be replaced by "DIR[ DIR]" +func_munge_path_list () +{ + case x$2 in + x) + ;; + *:) + eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" + ;; + x:*) + eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" + ;; + *::*) + eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" + eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" + ;; + *) + eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" + ;; + esac +} + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 +$as_echo_n "checking how to run the C preprocessor... " >&6; } +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then + if ${ac_cv_prog_CPP+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CPP needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" + do + ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi + + done + ac_cv_prog_CPP=$CPP + +fi + CPP=$ac_cv_prog_CPP +else + ac_cv_prog_CPP=$CPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 +$as_echo "$CPP" >&6; } +ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 +$as_echo_n "checking for ANSI C header files... " >&6; } +if ${ac_cv_header_stdc+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stdc=yes +else + ac_cv_header_stdc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "free" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) \ + (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + return 2; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +else + ac_cv_header_stdc=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 +$as_echo "$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then + +$as_echo "#define STDC_HEADERS 1" >>confdefs.h + +fi + +# On IRIX 5.3, sys/types and inttypes.h are conflicting. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ + inttypes.h stdint.h unistd.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default +" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + +for ac_header in dlfcn.h +do : + ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default +" +if test "x$ac_cv_header_dlfcn_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_DLFCN_H 1 +_ACEOF + +fi + +done + + + + + +# Set options + + + + enable_dlopen=no + + + enable_win32_dll=no + + + # Check whether --enable-shared was given. +if test "${enable_shared+set}" = set; then : + enableval=$enable_shared; p=${PACKAGE-default} + case $enableval in + yes) enable_shared=yes ;; + no) enable_shared=no ;; + *) + enable_shared=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, + for pkg in $enableval; do + IFS=$lt_save_ifs + if test "X$pkg" = "X$p"; then + enable_shared=yes + fi + done + IFS=$lt_save_ifs + ;; + esac +else + enable_shared=yes +fi + + + + + + + + + + # Check whether --enable-static was given. +if test "${enable_static+set}" = set; then : + enableval=$enable_static; p=${PACKAGE-default} + case $enableval in + yes) enable_static=yes ;; + no) enable_static=no ;; + *) + enable_static=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, + for pkg in $enableval; do + IFS=$lt_save_ifs + if test "X$pkg" = "X$p"; then + enable_static=yes + fi + done + IFS=$lt_save_ifs + ;; + esac +else + enable_static=yes +fi + + + + + + + + + + +# Check whether --with-pic was given. +if test "${with_pic+set}" = set; then : + withval=$with_pic; lt_p=${PACKAGE-default} + case $withval in + yes|no) pic_mode=$withval ;; + *) + pic_mode=default + # Look at the argument we got. We use all the common list separators. + lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, + for lt_pkg in $withval; do + IFS=$lt_save_ifs + if test "X$lt_pkg" = "X$lt_p"; then + pic_mode=yes + fi + done + IFS=$lt_save_ifs + ;; + esac +else + pic_mode=default +fi + + + + + + + + + # Check whether --enable-fast-install was given. +if test "${enable_fast_install+set}" = set; then : + enableval=$enable_fast_install; p=${PACKAGE-default} + case $enableval in + yes) enable_fast_install=yes ;; + no) enable_fast_install=no ;; + *) + enable_fast_install=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, + for pkg in $enableval; do + IFS=$lt_save_ifs + if test "X$pkg" = "X$p"; then + enable_fast_install=yes + fi + done + IFS=$lt_save_ifs + ;; + esac +else + enable_fast_install=yes +fi + + + + + + + + + shared_archive_member_spec= +case $host,$enable_shared in +power*-*-aix[5-9]*,yes) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 +$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } + +# Check whether --with-aix-soname was given. +if test "${with_aix_soname+set}" = set; then : + withval=$with_aix_soname; case $withval in + aix|svr4|both) + ;; + *) + as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 + ;; + esac + lt_cv_with_aix_soname=$with_aix_soname +else + if ${lt_cv_with_aix_soname+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_with_aix_soname=aix +fi + + with_aix_soname=$lt_cv_with_aix_soname +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 +$as_echo "$with_aix_soname" >&6; } + if test aix != "$with_aix_soname"; then + # For the AIX way of multilib, we name the shared archive member + # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', + # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. + # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, + # the AIX toolchain works better with OBJECT_MODE set (default 32). + if test 64 = "${OBJECT_MODE-32}"; then + shared_archive_member_spec=shr_64 + else + shared_archive_member_spec=shr + fi + fi + ;; +*) + with_aix_soname=aix + ;; +esac + + + + + + + + + + +# This can be used to rebuild libtool when needed +LIBTOOL_DEPS=$ltmain + +# Always use our own libtool. +LIBTOOL='$(SHELL) $(top_builddir)/libtool' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +test -z "$LN_S" && LN_S="ln -s" + + + + + + + + + + + + + + +if test -n "${ZSH_VERSION+set}"; then + setopt NO_GLOB_SUBST +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 +$as_echo_n "checking for objdir... " >&6; } +if ${lt_cv_objdir+:} false; then : + $as_echo_n "(cached) " >&6 +else + rm -f .libs 2>/dev/null +mkdir .libs 2>/dev/null +if test -d .libs; then + lt_cv_objdir=.libs +else + # MS-DOS does not allow filenames that begin with a dot. + lt_cv_objdir=_libs +fi +rmdir .libs 2>/dev/null +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 +$as_echo "$lt_cv_objdir" >&6; } +objdir=$lt_cv_objdir + + + + + +cat >>confdefs.h <<_ACEOF +#define LT_OBJDIR "$lt_cv_objdir/" +_ACEOF + + + + +case $host_os in +aix3*) + # AIX sometimes has problems with the GCC collect2 program. For some + # reason, if we set the COLLECT_NAMES environment variable, the problems + # vanish in a puff of smoke. + if test set != "${COLLECT_NAMES+set}"; then + COLLECT_NAMES= + export COLLECT_NAMES + fi + ;; +esac + +# Global variables: +ofile=libtool +can_build_shared=yes + +# All known linkers require a '.a' archive for static linking (except MSVC, +# which needs '.lib'). +libext=a + +with_gnu_ld=$lt_cv_prog_gnu_ld + +old_CC=$CC +old_CFLAGS=$CFLAGS + +# Set sane defaults for various variables +test -z "$CC" && CC=cc +test -z "$LTCC" && LTCC=$CC +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS +test -z "$LD" && LD=ld +test -z "$ac_objext" && ac_objext=o + +func_cc_basename $compiler +cc_basename=$func_cc_basename_result + + +# Only perform the check for file, if the check method requires it +test -z "$MAGIC_CMD" && MAGIC_CMD=file +case $deplibs_check_method in +file_magic*) + if test "$file_magic_cmd" = '$MAGIC_CMD'; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } +if ${lt_cv_path_MAGIC_CMD+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $MAGIC_CMD in +[\\/*] | ?:[\\/]*) + lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD=$MAGIC_CMD + lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" + for ac_dir in $ac_dummy; do + IFS=$lt_save_ifs + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/${ac_tool_prefix}file"; then + lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD=$lt_cv_path_MAGIC_CMD + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <<_LT_EOF 1>&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +_LT_EOF + fi ;; + esac + fi + break + fi + done + IFS=$lt_save_ifs + MAGIC_CMD=$lt_save_MAGIC_CMD + ;; +esac +fi + +MAGIC_CMD=$lt_cv_path_MAGIC_CMD +if test -n "$MAGIC_CMD"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +$as_echo "$MAGIC_CMD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + + + +if test -z "$lt_cv_path_MAGIC_CMD"; then + if test -n "$ac_tool_prefix"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 +$as_echo_n "checking for file... " >&6; } +if ${lt_cv_path_MAGIC_CMD+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $MAGIC_CMD in +[\\/*] | ?:[\\/]*) + lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD=$MAGIC_CMD + lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" + for ac_dir in $ac_dummy; do + IFS=$lt_save_ifs + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/file"; then + lt_cv_path_MAGIC_CMD=$ac_dir/"file" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD=$lt_cv_path_MAGIC_CMD + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <<_LT_EOF 1>&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +_LT_EOF + fi ;; + esac + fi + break + fi + done + IFS=$lt_save_ifs + MAGIC_CMD=$lt_save_MAGIC_CMD + ;; +esac +fi + +MAGIC_CMD=$lt_cv_path_MAGIC_CMD +if test -n "$MAGIC_CMD"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +$as_echo "$MAGIC_CMD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + else + MAGIC_CMD=: + fi +fi + + fi + ;; +esac + +# Use C for the default configuration in the libtool script + +lt_save_CC=$CC +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +# Source file extension for C test sources. +ac_ext=c + +# Object file extension for compiled C test sources. +objext=o +objext=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="int some_variable = 0;" + +# Code to be used in simple link tests +lt_simple_link_test_code='int main(){return(0);}' + + + + + + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + +# Save the default compiler, since it gets overwritten when the other +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. +compiler_DEFAULT=$CC + +# save warnings/boilerplate of simple test code +ac_outfile=conftest.$ac_objext +echo "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$RM conftest* + +ac_outfile=conftest.$ac_objext +echo "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$RM -r conftest* + + +## CAVEAT EMPTOR: +## There is no encapsulation within the following macros, do not change +## the running order or otherwise move them around unless you know exactly +## what you are doing... +if test -n "$compiler"; then + +lt_prog_compiler_no_builtin_flag= + +if test yes = "$GCC"; then + case $cc_basename in + nvcc*) + lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; + *) + lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; + esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } +if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_rtti_exceptions=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_rtti_exceptions=yes + fi + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } + +if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" +else + : +fi + +fi + + + + + + + lt_prog_compiler_wl= +lt_prog_compiler_pic= +lt_prog_compiler_static= + + + if test yes = "$GCC"; then + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_static='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test ia64 = "$host_cpu"; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static='-Bstatic' + fi + lt_prog_compiler_pic='-fPIC' + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + lt_prog_compiler_pic='-fPIC' + ;; + m68k) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the '-m68020' flag to GCC prevents building anything better, + # like '-m68040'. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' + ;; + esac + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + + mingw* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + lt_prog_compiler_pic='-DDLL_EXPORT' + case $host_os in + os2*) + lt_prog_compiler_static='$wl-static' + ;; + esac + ;; + + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_prog_compiler_pic='-fno-common' + ;; + + haiku*) + # PIC is the default for Haiku. + # The "-static" flag exists, but is broken. + lt_prog_compiler_static= + ;; + + hpux*) + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. + case $host_cpu in + hppa*64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic='-fPIC' + ;; + esac + ;; + + interix[3-9]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + + msdosdjgpp*) + # Just because we use GCC doesn't mean we suddenly get shared libraries + # on systems that don't support them. + lt_prog_compiler_can_build_shared=no + enable_shared=no + ;; + + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic='-fPIC -shared' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + lt_prog_compiler_pic=-Kconform_pic + fi + ;; + + *) + lt_prog_compiler_pic='-fPIC' + ;; + esac + + case $cc_basename in + nvcc*) # Cuda Compiler Driver 2.2 + lt_prog_compiler_wl='-Xlinker ' + if test -n "$lt_prog_compiler_pic"; then + lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" + fi + ;; + esac + else + # PORTME Check for flag to pass linker flags through the system compiler. + case $host_os in + aix*) + lt_prog_compiler_wl='-Wl,' + if test ia64 = "$host_cpu"; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static='-Bstatic' + else + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' + fi + ;; + + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_prog_compiler_pic='-fno-common' + case $cc_basename in + nagfor*) + # NAG Fortran compiler + lt_prog_compiler_wl='-Wl,-Wl,,' + lt_prog_compiler_pic='-PIC' + lt_prog_compiler_static='-Bstatic' + ;; + esac + ;; + + mingw* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic='-DDLL_EXPORT' + case $host_os in + os2*) + lt_prog_compiler_static='$wl-static' + ;; + esac + ;; + + hpux9* | hpux10* | hpux11*) + lt_prog_compiler_wl='-Wl,' + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic='+Z' + ;; + esac + # Is there a better lt_prog_compiler_static that works with the bundled CC? + lt_prog_compiler_static='$wl-a ${wl}archive' + ;; + + irix5* | irix6* | nonstopux*) + lt_prog_compiler_wl='-Wl,' + # PIC (with -KPIC) is the default. + lt_prog_compiler_static='-non_shared' + ;; + + linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + case $cc_basename in + # old Intel for x86_64, which still supported -KPIC. + ecc*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-static' + ;; + # icc used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + icc* | ifort*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fPIC' + lt_prog_compiler_static='-static' + ;; + # Lahey Fortran 8.1. + lf95*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='--shared' + lt_prog_compiler_static='--static' + ;; + nagfor*) + # NAG Fortran compiler + lt_prog_compiler_wl='-Wl,-Wl,,' + lt_prog_compiler_pic='-PIC' + lt_prog_compiler_static='-Bstatic' + ;; + tcc*) + # Fabrice Bellard et al's Tiny C Compiler + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fPIC' + lt_prog_compiler_static='-static' + ;; + pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) + # Portland Group compilers (*not* the Pentium gcc compiler, + # which looks to be a dead project) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fpic' + lt_prog_compiler_static='-Bstatic' + ;; + ccc*) + lt_prog_compiler_wl='-Wl,' + # All Alpha code is PIC. + lt_prog_compiler_static='-non_shared' + ;; + xl* | bgxl* | bgf* | mpixl*) + # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-qpic' + lt_prog_compiler_static='-qstaticlink' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) + # Sun Fortran 8.3 passes all unrecognized flags to the linker + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='' + ;; + *Sun\ F* | *Sun*Fortran*) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='-Qoption ld ' + ;; + *Sun\ C*) + # Sun C 5.9 + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='-Wl,' + ;; + *Intel*\ [CF]*Compiler*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fPIC' + lt_prog_compiler_static='-static' + ;; + *Portland\ Group*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fpic' + lt_prog_compiler_static='-Bstatic' + ;; + esac + ;; + esac + ;; + + newsos6) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic='-fPIC -shared' + ;; + + osf3* | osf4* | osf5*) + lt_prog_compiler_wl='-Wl,' + # All OSF/1 code is PIC. + lt_prog_compiler_static='-non_shared' + ;; + + rdos*) + lt_prog_compiler_static='-non_shared' + ;; + + solaris*) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + case $cc_basename in + f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) + lt_prog_compiler_wl='-Qoption ld ';; + *) + lt_prog_compiler_wl='-Wl,';; + esac + ;; + + sunos4*) + lt_prog_compiler_wl='-Qoption ld ' + lt_prog_compiler_pic='-PIC' + lt_prog_compiler_static='-Bstatic' + ;; + + sysv4 | sysv4.2uw2* | sysv4.3*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + lt_prog_compiler_pic='-Kconform_pic' + lt_prog_compiler_static='-Bstatic' + fi + ;; + + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + unicos*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_can_build_shared=no + ;; + + uts4*) + lt_prog_compiler_pic='-pic' + lt_prog_compiler_static='-Bstatic' + ;; + + *) + lt_prog_compiler_can_build_shared=no + ;; + esac + fi + +case $host_os in + # For platforms that do not support PIC, -DPIC is meaningless: + *djgpp*) + lt_prog_compiler_pic= + ;; + *) + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" + ;; +esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } +if ${lt_cv_prog_compiler_pic+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic=$lt_prog_compiler_pic +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 +$as_echo "$lt_cv_prog_compiler_pic" >&6; } +lt_prog_compiler_pic=$lt_cv_prog_compiler_pic + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$lt_prog_compiler_pic"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } +if ${lt_cv_prog_compiler_pic_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic_works=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_pic_works=yes + fi + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } + +if test yes = "$lt_cv_prog_compiler_pic_works"; then + case $lt_prog_compiler_pic in + "" | " "*) ;; + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; + esac +else + lt_prog_compiler_pic= + lt_prog_compiler_can_build_shared=no +fi + +fi + + + + + + + + + + + +# +# Check to make sure the static flag actually works. +# +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +if ${lt_cv_prog_compiler_static_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_static_works=no + save_LDFLAGS=$LDFLAGS + LDFLAGS="$LDFLAGS $lt_tmp_static_flag" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_static_works=yes + fi + else + lt_cv_prog_compiler_static_works=yes + fi + fi + $RM -r conftest* + LDFLAGS=$save_LDFLAGS + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 +$as_echo "$lt_cv_prog_compiler_static_works" >&6; } + +if test yes = "$lt_cv_prog_compiler_static_works"; then + : +else + lt_prog_compiler_static= +fi + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 +$as_echo "$lt_cv_prog_compiler_c_o" >&6; } + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 +$as_echo "$lt_cv_prog_compiler_c_o" >&6; } + + + + +hard_links=nottested +if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then + # do not overwrite the value of need_locks provided by the user + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 +$as_echo_n "checking if we can lock with hard links... " >&6; } + hard_links=yes + $RM conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 +$as_echo "$hard_links" >&6; } + if test no = "$hard_links"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 +$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} + need_locks=warn + fi +else + need_locks=no +fi + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + + runpath_var= + allow_undefined_flag= + always_export_symbols=no + archive_cmds= + archive_expsym_cmds= + compiler_needs_object=no + enable_shared_with_static_runtimes=no + export_dynamic_flag_spec= + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + hardcode_automatic=no + hardcode_direct=no + hardcode_direct_absolute=no + hardcode_libdir_flag_spec= + hardcode_libdir_separator= + hardcode_minus_L=no + hardcode_shlibpath_var=unsupported + inherit_rpath=no + link_all_deplibs=unknown + module_cmds= + module_expsym_cmds= + old_archive_from_new_cmds= + old_archive_from_expsyms_cmds= + thread_safe_flag_spec= + whole_archive_flag_spec= + # include_expsyms should be a list of space-separated symbols to be *always* + # included in the symbol list + include_expsyms= + # exclude_expsyms can be an extended regexp of symbols to exclude + # it will be wrapped by ' (' and ')$', so one must not match beginning or + # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', + # as well as any symbol that contains 'd'. + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out + # platforms (ab)use it in PIC code, but their linkers get confused if + # the symbol is explicitly referenced. Since portable code cannot + # rely on this symbol name, it's probably fine to never include it in + # preloaded symbol tables. + # Exclude shared library initialization/finalization symbols. + extract_expsyms_cmds= + + case $host_os in + cygwin* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + if test yes != "$GCC"; then + with_gnu_ld=no + fi + ;; + interix*) + # we just hope/assume this is gcc and not c89 (= MSVC++) + with_gnu_ld=yes + ;; + openbsd* | bitrig*) + with_gnu_ld=no + ;; + esac + + ld_shlibs=yes + + # On some targets, GNU ld is compatible enough with the native linker + # that we're better off using the native interface for both. + lt_use_gnu_ld_interface=no + if test yes = "$with_gnu_ld"; then + case $host_os in + aix*) + # The AIX port of GNU ld has always aspired to compatibility + # with the native linker. However, as the warning in the GNU ld + # block says, versions before 2.19.5* couldn't really create working + # shared libraries, regardless of the interface used. + case `$LD -v 2>&1` in + *\ \(GNU\ Binutils\)\ 2.19.5*) ;; + *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; + *\ \(GNU\ Binutils\)\ [3-9]*) ;; + *) + lt_use_gnu_ld_interface=yes + ;; + esac + ;; + *) + lt_use_gnu_ld_interface=yes + ;; + esac + fi + + if test yes = "$lt_use_gnu_ld_interface"; then + # If archive_cmds runs LD, not CC, wlarc should be empty + wlarc='$wl' + + # Set some defaults for GNU ld with shared library support. These + # are reset later if shared libraries are not supported. Putting them + # here allows them to be overridden if necessary. + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' + export_dynamic_flag_spec='$wl--export-dynamic' + # ancient GNU ld didn't support --whole-archive et. al. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' + else + whole_archive_flag_spec= + fi + supports_anon_versioning=no + case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in + *GNU\ gold*) supports_anon_versioning=yes ;; + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... + *\ 2.11.*) ;; # other 2.11 versions + *) supports_anon_versioning=yes ;; + esac + + # See if GNU ld supports shared libraries. + case $host_os in + aix[3-9]*) + # On AIX/PPC, the GNU linker is very broken + if test ia64 != "$host_cpu"; then + ld_shlibs=no + cat <<_LT_EOF 1>&2 + +*** Warning: the GNU linker, at least up to release 2.19, is reported +*** to be unable to reliably create shared libraries on AIX. +*** Therefore, libtool is disabling shared libraries support. If you +*** really care for shared libraries, you may want to install binutils +*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. +*** You will then need to restart the configuration process. + +_LT_EOF + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + archive_expsym_cmds='' + ;; + m68k) + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + ;; + esac + ;; + + beos*) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + allow_undefined_flag=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + else + ld_shlibs=no + fi + ;; + + cygwin* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' + export_dynamic_flag_spec='$wl--export-all-symbols' + allow_undefined_flag=unsupported + always_export_symbols=no + enable_shared_with_static_runtimes=yes + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' + exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' + + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file, use it as + # is; otherwise, prepend EXPORTS... + archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + ld_shlibs=no + fi + ;; + + haiku*) + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + link_all_deplibs=yes + ;; + + os2*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + allow_undefined_flag=unsupported + shrext_cmds=.dll + archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ + $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ + $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ + $ECHO EXPORTS >> $output_objdir/$libname.def~ + emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ + $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ + emximp -o $lib $output_objdir/$libname.def' + archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ + $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ + $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ + $ECHO EXPORTS >> $output_objdir/$libname.def~ + prefix_cmds="$SED"~ + if test EXPORTS = "`$SED 1q $export_symbols`"; then + prefix_cmds="$prefix_cmds -e 1d"; + fi~ + prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ + cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ + $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ + emximp -o $lib $output_objdir/$libname.def' + old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' + enable_shared_with_static_runtimes=yes + ;; + + interix[3-9]*) + hardcode_direct=no + hardcode_shlibpath_var=no + hardcode_libdir_flag_spec='$wl-rpath,$libdir' + export_dynamic_flag_spec='$wl-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) + tmp_diet=no + if test linux-dietlibc = "$host_os"; then + case $cc_basename in + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) + esac + fi + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ + && test no = "$tmp_diet" + then + tmp_addflag=' $pic_flag' + tmp_sharedflag='-shared' + case $cc_basename,$host_cpu in + pgcc*) # Portland Group C compiler + whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' + tmp_addflag=' $pic_flag' + ;; + pgf77* | pgf90* | pgf95* | pgfortran*) + # Portland Group f77 and f90 compilers + whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' + tmp_addflag=' $pic_flag -Mnomain' ;; + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 + tmp_addflag=' -i_dynamic' ;; + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 + tmp_addflag=' -i_dynamic -nofor_main' ;; + ifc* | ifort*) # Intel Fortran compiler + tmp_addflag=' -nofor_main' ;; + lf95*) # Lahey Fortran 8.1 + whole_archive_flag_spec= + tmp_sharedflag='--shared' ;; + nagfor*) # NAGFOR 5.3 + tmp_sharedflag='-Wl,-shared' ;; + xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) + tmp_sharedflag='-qmkshrobj' + tmp_addflag= ;; + nvcc*) # Cuda Compiler Driver 2.2 + whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' + compiler_needs_object=yes + ;; + esac + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) # Sun C 5.9 + whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' + compiler_needs_object=yes + tmp_sharedflag='-G' ;; + *Sun\ F*) # Sun Fortran 8.3 + tmp_sharedflag='-G' ;; + esac + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + + if test yes = "$supports_anon_versioning"; then + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' + fi + + case $cc_basename in + tcc*) + export_dynamic_flag_spec='-rdynamic' + ;; + xlf* | bgf* | bgxlf* | mpixlf*) + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' + hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' + if test yes = "$supports_anon_versioning"; then + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' + fi + ;; + esac + else + ld_shlibs=no + fi + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' + wlarc= + else + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' + fi + ;; + + solaris*) + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then + ld_shlibs=no + cat <<_LT_EOF 1>&2 + +*** Warning: The releases 2.8.* of the GNU linker cannot reliably +*** create shared libraries on Solaris systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.9.1 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +_LT_EOF + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) + case `$LD -v 2>&1` in + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) + ld_shlibs=no + cat <<_LT_EOF 1>&2 + +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot +*** reliably create shared libraries on SCO systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +_LT_EOF + ;; + *) + # For security reasons, it is highly recommended that you always + # use absolute paths for naming shared libraries, and exclude the + # DT_RUNPATH tag from executables and libraries. But doing so + # requires that you compile everything twice, which is a pain. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + esac + ;; + + sunos4*) + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' + wlarc= + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + *) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + esac + + if test no = "$ld_shlibs"; then + runpath_var= + hardcode_libdir_flag_spec= + export_dynamic_flag_spec= + whole_archive_flag_spec= + fi + else + # PORTME fill in a description of your system's linker (not GNU ld) + case $host_os in + aix3*) + allow_undefined_flag=unsupported + always_export_symbols=yes + archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + hardcode_minus_L=yes + if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + hardcode_direct=unsupported + fi + ;; + + aix[4-9]*) + if test ia64 = "$host_cpu"; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag= + else + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to GNU nm, but means don't demangle to AIX nm. + # Without the "-l" option, or with the "-B" option, AIX nm treats + # weak defined symbols like other global defined symbols, whereas + # GNU nm marks them as "W". + # While the 'weak' keyword is ignored in the Export File, we need + # it in the Import File for the 'aix-soname' feature, so we have + # to replace the "-B" option with "-P" for AIX nm. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' + else + export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' + fi + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # have runtime linking enabled, and use it for executables. + # For shared libraries, we enable/disable runtime linking + # depending on the kind of the shared library created - + # when "with_aix_soname,aix_use_runtimelinking" is: + # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables + # "aix,yes" lib.so shared, rtl:yes, for executables + # lib.a static archive + # "both,no" lib.so.V(shr.o) shared, rtl:yes + # lib.a(lib.so.V) shared, rtl:no, for executables + # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables + # lib.a(lib.so.V) shared, rtl:no + # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables + # lib.a static archive + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) + for ld_flag in $LDFLAGS; do + if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then + aix_use_runtimelinking=yes + break + fi + done + if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then + # With aix-soname=svr4, we create the lib.so.V shared archives only, + # so we don't have lib.a shared libs to link our executables. + # We have to force runtime linking in this case. + aix_use_runtimelinking=yes + LDFLAGS="$LDFLAGS -Wl,-brtl" + fi + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + archive_cmds='' + hardcode_direct=yes + hardcode_direct_absolute=yes + hardcode_libdir_separator=':' + link_all_deplibs=yes + file_list_spec='$wl-f,' + case $with_aix_soname,$aix_use_runtimelinking in + aix,*) ;; # traditional, no import file + svr4,* | *,yes) # use import file + # The Import File defines what to hardcode. + hardcode_direct=no + hardcode_direct_absolute=no + ;; + esac + + if test yes = "$GCC"; then + case $host_os in aix4.[012]|aix4.[012].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`$CC -print-prog-name=collect2` + if test -f "$collect2name" && + strings "$collect2name" | $GREP resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + hardcode_direct=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L=yes + hardcode_libdir_flag_spec='-L$libdir' + hardcode_libdir_separator= + fi + ;; + esac + shared_flag='-shared' + if test yes = "$aix_use_runtimelinking"; then + shared_flag="$shared_flag "'$wl-G' + fi + # Need to ensure runtime linking is disabled for the traditional + # shared library, or the linker may eventually find shared libraries + # /with/ Import File - we do not want to mix them. + shared_flag_aix='-shared' + shared_flag_svr4='-shared $wl-G' + else + # not using gcc + if test ia64 = "$host_cpu"; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test yes = "$aix_use_runtimelinking"; then + shared_flag='$wl-G' + else + shared_flag='$wl-bM:SRE' + fi + shared_flag_aix='$wl-bM:SRE' + shared_flag_svr4='$wl-G' + fi + fi + + export_dynamic_flag_spec='$wl-bexpall' + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + always_export_symbols=yes + if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + allow_undefined_flag='-berok' + # Determine the default libpath from the value encoded in an + # empty executable. + if test set = "${lt_cv_aix_libpath+set}"; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath_+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_=/usr/lib:/lib + fi + +fi + + aix_libpath=$lt_cv_aix_libpath_ +fi + + hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" + archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag + else + if test ia64 = "$host_cpu"; then + hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' + allow_undefined_flag="-z nodefs" + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an + # empty executable. + if test set = "${lt_cv_aix_libpath+set}"; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath_+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_=/usr/lib:/lib + fi + +fi + + aix_libpath=$lt_cv_aix_libpath_ +fi + + hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + no_undefined_flag=' $wl-bernotok' + allow_undefined_flag=' $wl-berok' + if test yes = "$with_gnu_ld"; then + # We only use this code for GNU lds that support --whole-archive. + whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' + else + # Exported symbols can be pulled into shared objects from archives + whole_archive_flag_spec='$convenience' + fi + archive_cmds_need_lc=yes + archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' + # -brtl affects multiple linker settings, -berok does not and is overridden later + compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' + if test svr4 != "$with_aix_soname"; then + # This is similar to how AIX traditionally builds its shared libraries. + archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' + fi + if test aix != "$with_aix_soname"; then + archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' + else + # used by -dlpreopen to get the symbols + archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' + fi + archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' + fi + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + archive_expsym_cmds='' + ;; + m68k) + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + ;; + esac + ;; + + bsdi[45]*) + export_dynamic_flag_spec=-rdynamic + ;; + + cygwin* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + case $cc_basename in + cl*) + # Native MSVC + hardcode_libdir_flag_spec=' ' + allow_undefined_flag=unsupported + always_export_symbols=yes + file_list_spec='@' + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=.dll + # FIXME: Setting linknames here is a bad hack. + archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' + archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then + cp "$export_symbols" "$output_objdir/$soname.def"; + echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; + else + $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; + fi~ + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ + linknames=' + # The linker will not automatically build a static lib if we build a DLL. + # _LT_TAGVAR(old_archive_from_new_cmds, )='true' + enable_shared_with_static_runtimes=yes + exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' + # Don't use ranlib + old_postinstall_cmds='chmod 644 $oldlib' + postlink_cmds='lt_outputfile="@OUTPUT@"~ + lt_tool_outputfile="@TOOL_OUTPUT@"~ + case $lt_outputfile in + *.exe|*.EXE) ;; + *) + lt_outputfile=$lt_outputfile.exe + lt_tool_outputfile=$lt_tool_outputfile.exe + ;; + esac~ + if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; + $RM "$lt_outputfile.manifest"; + fi' + ;; + *) + # Assume MSVC wrapper + hardcode_libdir_flag_spec=' ' + allow_undefined_flag=unsupported + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=.dll + # FIXME: Setting linknames here is a bad hack. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' + # The linker will automatically build a .lib file if we build a DLL. + old_archive_from_new_cmds='true' + # FIXME: Should let the user specify the lib program. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' + enable_shared_with_static_runtimes=yes + ;; + esac + ;; + + darwin* | rhapsody*) + + + archive_cmds_need_lc=no + hardcode_direct=no + hardcode_automatic=yes + hardcode_shlibpath_var=unsupported + if test yes = "$lt_cv_ld_force_load"; then + whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' + + else + whole_archive_flag_spec='' + fi + link_all_deplibs=yes + allow_undefined_flag=$_lt_dar_allow_undefined + case $cc_basename in + ifort*|nagfor*) _lt_dar_can_shared=yes ;; + *) _lt_dar_can_shared=$GCC ;; + esac + if test yes = "$_lt_dar_can_shared"; then + output_verbose_link_cmd=func_echo_all + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" + archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" + module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" + + else + ld_shlibs=no + fi + + ;; + + dgux*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; + + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor + # support. Future versions do this automatically, but an explicit c++rt0.o + # does not break anything, and helps significantly (at the cost of a little + # extra space). + freebsd2.2*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + # Unfortunately, older versions of FreeBSD 2 do not have this feature. + freebsd2.*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; + + # FreeBSD 3 and greater uses gcc -shared to do shared libraries. + freebsd* | dragonfly*) + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + hpux9*) + if test yes = "$GCC"; then + archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' + else + archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' + fi + hardcode_libdir_flag_spec='$wl+b $wl$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + export_dynamic_flag_spec='$wl-E' + ;; + + hpux10*) + if test yes,no = "$GCC,$with_gnu_ld"; then + archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' + fi + if test no = "$with_gnu_ld"; then + hardcode_libdir_flag_spec='$wl+b $wl$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + hardcode_direct_absolute=yes + export_dynamic_flag_spec='$wl-E' + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + fi + ;; + + hpux11*) + if test yes,no = "$GCC,$with_gnu_ld"; then + case $host_cpu in + hppa*64*) + archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + else + case $host_cpu in + hppa*64*) + archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + + # Older versions of the 11.00 compiler do not understand -b yet + # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 +$as_echo_n "checking if $CC understands -b... " >&6; } +if ${lt_cv_prog_compiler__b+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler__b=no + save_LDFLAGS=$LDFLAGS + LDFLAGS="$LDFLAGS -b" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler__b=yes + fi + else + lt_cv_prog_compiler__b=yes + fi + fi + $RM -r conftest* + LDFLAGS=$save_LDFLAGS + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 +$as_echo "$lt_cv_prog_compiler__b" >&6; } + +if test yes = "$lt_cv_prog_compiler__b"; then + archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' +else + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' +fi + + ;; + esac + fi + if test no = "$with_gnu_ld"; then + hardcode_libdir_flag_spec='$wl+b $wl$libdir' + hardcode_libdir_separator=: + + case $host_cpu in + hppa*64*|ia64*) + hardcode_direct=no + hardcode_shlibpath_var=no + ;; + *) + hardcode_direct=yes + hardcode_direct_absolute=yes + export_dynamic_flag_spec='$wl-E' + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + ;; + esac + fi + ;; + + irix5* | irix6* | nonstopux*) + if test yes = "$GCC"; then + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' + # Try to use the -exported_symbol ld option, if it does not + # work, assume that -exports_file does not work either and + # implicitly export all symbols. + # This should be the same for all languages, so no per-tag cache variable. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 +$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } +if ${lt_cv_irix_exported_symbol+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_LDFLAGS=$LDFLAGS + LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +int foo (void) { return 0; } +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_irix_exported_symbol=yes +else + lt_cv_irix_exported_symbol=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS=$save_LDFLAGS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 +$as_echo "$lt_cv_irix_exported_symbol" >&6; } + if test yes = "$lt_cv_irix_exported_symbol"; then + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' + fi + else + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' + fi + archive_cmds_need_lc='no' + hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' + hardcode_libdir_separator=: + inherit_rpath=yes + link_all_deplibs=yes + ;; + + linux*) + case $cc_basename in + tcc*) + # Fabrice Bellard et al's Tiny C Compiler + ld_shlibs=yes + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out + else + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF + fi + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + newsos6) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' + hardcode_libdir_separator=: + hardcode_shlibpath_var=no + ;; + + *nto* | *qnx*) + ;; + + openbsd* | bitrig*) + if test -f /usr/libexec/ld.so; then + hardcode_direct=yes + hardcode_shlibpath_var=no + hardcode_direct_absolute=yes + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' + hardcode_libdir_flag_spec='$wl-rpath,$libdir' + export_dynamic_flag_spec='$wl-E' + else + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='$wl-rpath,$libdir' + fi + else + ld_shlibs=no + fi + ;; + + os2*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + allow_undefined_flag=unsupported + shrext_cmds=.dll + archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ + $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ + $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ + $ECHO EXPORTS >> $output_objdir/$libname.def~ + emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ + $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ + emximp -o $lib $output_objdir/$libname.def' + archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ + $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ + $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ + $ECHO EXPORTS >> $output_objdir/$libname.def~ + prefix_cmds="$SED"~ + if test EXPORTS = "`$SED 1q $export_symbols`"; then + prefix_cmds="$prefix_cmds -e 1d"; + fi~ + prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ + cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ + $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ + emximp -o $lib $output_objdir/$libname.def' + old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' + enable_shared_with_static_runtimes=yes + ;; + + osf3*) + if test yes = "$GCC"; then + allow_undefined_flag=' $wl-expect_unresolved $wl\*' + archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' + fi + archive_cmds_need_lc='no' + hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' + hardcode_libdir_separator=: + ;; + + osf4* | osf5*) # as osf3* with the addition of -msym flag + if test yes = "$GCC"; then + allow_undefined_flag=' $wl-expect_unresolved $wl\*' + archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' + hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ + $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' + + # Both c and cxx compiler support -rpath directly + hardcode_libdir_flag_spec='-rpath $libdir' + fi + archive_cmds_need_lc='no' + hardcode_libdir_separator=: + ;; + + solaris*) + no_undefined_flag=' -z defs' + if test yes = "$GCC"; then + wlarc='$wl' + archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + else + case `$CC -V 2>&1` in + *"Compilers 5.0"*) + wlarc='' + archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' + ;; + *) + wlarc='$wl' + archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + ;; + esac + fi + hardcode_libdir_flag_spec='-R$libdir' + hardcode_shlibpath_var=no + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands '-z linker_flag'. GCC discards it without '$wl', + # but is careful enough not to reorder. + # Supported since Solaris 2.6 (maybe 2.5.1?) + if test yes = "$GCC"; then + whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' + else + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' + fi + ;; + esac + link_all_deplibs=yes + ;; + + sunos4*) + if test sequent = "$host_vendor"; then + # Use $CC to link under sequent, because it throws in some extra .o + # files that make .init and .fini sections work. + archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' + fi + hardcode_libdir_flag_spec='-L$libdir' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; + + sysv4) + case $host_vendor in + sni) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes # is this really true??? + ;; + siemens) + ## LD is ld it makes a PLAMLIB + ## CC just makes a GrossModule. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' + reload_cmds='$CC -r -o $output$reload_objs' + hardcode_direct=no + ;; + motorola) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=no #Motorola manual says yes, but my tests say they lie + ;; + esac + runpath_var='LD_RUN_PATH' + hardcode_shlibpath_var=no + ;; + + sysv4.3*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + export_dynamic_flag_spec='-Bexport' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + ld_shlibs=yes + fi + ;; + + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) + no_undefined_flag='$wl-z,text' + archive_cmds_need_lc=no + hardcode_shlibpath_var=no + runpath_var='LD_RUN_PATH' + + if test yes = "$GCC"; then + archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + sysv5* | sco3.2v5* | sco5v6*) + # Note: We CANNOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + no_undefined_flag='$wl-z,text' + allow_undefined_flag='$wl-z,nodefs' + archive_cmds_need_lc=no + hardcode_shlibpath_var=no + hardcode_libdir_flag_spec='$wl-R,$libdir' + hardcode_libdir_separator=':' + link_all_deplibs=yes + export_dynamic_flag_spec='$wl-Bexport' + runpath_var='LD_RUN_PATH' + + if test yes = "$GCC"; then + archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + uts4*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; + + *) + ld_shlibs=no + ;; + esac + + if test sni = "$host_vendor"; then + case $host in + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + export_dynamic_flag_spec='$wl-Blargedynsym' + ;; + esac + fi + fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 +$as_echo "$ld_shlibs" >&6; } +test no = "$ld_shlibs" && can_build_shared=no + +with_gnu_ld=$with_gnu_ld + + + + + + + + + + + + + + + +# +# Do we need to explicitly link libc? +# +case "x$archive_cmds_need_lc" in +x|xyes) + # Assume -lc should be added + archive_cmds_need_lc=yes + + if test yes,yes = "$GCC,$enable_shared"; then + case $archive_cmds in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } +if ${lt_cv_archive_cmds_need_lc+:} false; then : + $as_echo_n "(cached) " >&6 +else + $RM conftest* + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$lt_prog_compiler_wl + pic_flag=$lt_prog_compiler_pic + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$allow_undefined_flag + allow_undefined_flag= + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 + (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + then + lt_cv_archive_cmds_need_lc=no + else + lt_cv_archive_cmds_need_lc=yes + fi + allow_undefined_flag=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 +$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } + archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc + ;; + esac + fi + ;; +esac + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 +$as_echo_n "checking dynamic linker characteristics... " >&6; } + +if test yes = "$GCC"; then + case $host_os in + darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; + *) lt_awk_arg='/^libraries:/' ;; + esac + case $host_os in + mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; + *) lt_sed_strip_eq='s|=/|/|g' ;; + esac + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` + case $lt_search_path_spec in + *\;*) + # if the path contains ";" then we assume it to be the separator + # otherwise default to the standard path separator (i.e. ":") - it is + # assumed that no part of a normal pathname contains ";" but that should + # okay in the real world where ";" in dirpaths is itself problematic. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` + ;; + *) + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` + ;; + esac + # Ok, now we have the path, separated by spaces, we can step through it + # and add multilib dir if necessary... + lt_tmp_lt_search_path_spec= + lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` + # ...but if some path component already ends with the multilib dir we assume + # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). + case "$lt_multi_os_dir; $lt_search_path_spec " in + "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) + lt_multi_os_dir= + ;; + esac + for lt_sys_path in $lt_search_path_spec; do + if test -d "$lt_sys_path$lt_multi_os_dir"; then + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" + elif test -n "$lt_multi_os_dir"; then + test -d "$lt_sys_path" && \ + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" + fi + done + lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' +BEGIN {RS = " "; FS = "/|\n";} { + lt_foo = ""; + lt_count = 0; + for (lt_i = NF; lt_i > 0; lt_i--) { + if ($lt_i != "" && $lt_i != ".") { + if ($lt_i == "..") { + lt_count++; + } else { + if (lt_count == 0) { + lt_foo = "/" $lt_i lt_foo; + } else { + lt_count--; + } + } + } + } + if (lt_foo != "") { lt_freq[lt_foo]++; } + if (lt_freq[lt_foo] == 1) { print lt_foo; } +}'` + # AWK program above erroneously prepends '/' to C:/dos/paths + # for these hosts. + case $host_os in + mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ + $SED 's|/\([A-Za-z]:\)|\1|g'` ;; + esac + sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` +else + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" +fi +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=.so +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + + + +case $host_os in +aix3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname$release$shared_ext$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='$libname$release$shared_ext$major' + ;; + +aix[4-9]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test ia64 = "$host_cpu"; then + # AIX 5 supports IA64 + library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line '#! .'. This would cause the generated library to + # depend on '.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[01] | aix4.[01].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # Using Import Files as archive members, it is possible to support + # filename-based versioning of shared library archives on AIX. While + # this would work for both with and without runtime linking, it will + # prevent static linking of such archives. So we do filename-based + # shared library versioning with .so extension only, which is used + # when both runtime linking and shared linking is enabled. + # Unfortunately, runtime linking may impact performance, so we do + # not want this to be the default eventually. Also, we use the + # versioned .so libs for executables only if there is the -brtl + # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. + # To allow for filename-based versioning support, we need to create + # libNAME.so.V as an archive file, containing: + # *) an Import File, referring to the versioned filename of the + # archive as well as the shared archive member, telling the + # bitwidth (32 or 64) of that shared object, and providing the + # list of exported symbols of that shared object, eventually + # decorated with the 'weak' keyword + # *) the shared object with the F_LOADONLY flag set, to really avoid + # it being seen by the linker. + # At run time we better use the real file rather than another symlink, + # but for link time we create the symlink libNAME.so -> libNAME.so.V + + case $with_aix_soname,$aix_use_runtimelinking in + # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + aix,yes) # traditional libtool + dynamic_linker='AIX unversionable lib.so' + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + ;; + aix,no) # traditional AIX only + dynamic_linker='AIX lib.a(lib.so.V)' + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='$libname$release.a $libname.a' + soname_spec='$libname$release$shared_ext$major' + ;; + svr4,*) # full svr4 only + dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" + library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' + # We do not specify a path in Import Files, so LIBPATH fires. + shlibpath_overrides_runpath=yes + ;; + *,yes) # both, prefer svr4 + dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" + library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' + # unpreferred sharedlib libNAME.a needs extra handling + postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' + postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' + # We do not specify a path in Import Files, so LIBPATH fires. + shlibpath_overrides_runpath=yes + ;; + *,no) # both, prefer aix + dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" + library_names_spec='$libname$release.a $libname.a' + soname_spec='$libname$release$shared_ext$major' + # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling + postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' + postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' + ;; + esac + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + case $host_cpu in + powerpc) + # Since July 2007 AmigaOS4 officially supports .so libraries. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + ;; + m68k) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + esac + ;; + +beos*) + library_names_spec='$libname$shared_ext' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[45]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=.dll + need_version=no + need_lib_prefix=no + + case $GCC,$cc_basename in + yes,*) + # gcc + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \$file`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname~ + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; + fi' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" + ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' + ;; + esac + dynamic_linker='Win32 ld.exe' + ;; + + *,cl*) + # Native MSVC + libname_spec='$name' + soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' + library_names_spec='$libname.dll.lib' + + case $build_os in + mingw*) + sys_lib_search_path_spec= + lt_save_ifs=$IFS + IFS=';' + for lt_path in $LIB + do + IFS=$lt_save_ifs + # Let DOS variable expansion print the short 8.3 style file name. + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" + done + IFS=$lt_save_ifs + # Convert to MSYS style. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` + ;; + cygwin*) + # Convert to unix form, then to dos form, then back to unix form + # but this time dos style (no spaces!) so that the unix form looks + # like /cygdrive/c/PROGRA~1:/cygdr... + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + ;; + *) + sys_lib_search_path_spec=$LIB + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then + # It is most probably a Windows format PATH. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + # FIXME: find the short name or the path components, as spaces are + # common. (e.g. "Program Files" -> "PROGRA~1") + ;; + esac + + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \$file`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + dynamic_linker='Win32 link.exe' + ;; + + *) + # Assume MSVC wrapper + library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' + dynamic_linker='Win32 ld.exe' + ;; + esac + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' + soname_spec='$libname$release$major$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[23].*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2.*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[01]* | freebsdelf3.[01]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + *) # from 4.6 on, and DragonFly + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + esac + ;; + +haiku*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + dynamic_linker="$host_os runtime_loader" + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LIBRARY_PATH + shlibpath_overrides_runpath=no + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + if test 32 = "$HPUX_IA64_MODE"; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + sys_lib_dlsearch_path_spec=/usr/lib/hpux32 + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + sys_lib_dlsearch_path_spec=/usr/lib/hpux64 + fi + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555, ... + postinstall_cmds='chmod 555 $lib' + # or fails outright, so override atomically: + install_override_mode=555 + ;; + +interix[3-9]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test yes = "$lt_cv_prog_gnu_ld"; then + version_type=linux # correct to gnu/linux during the next big refactor + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='$libname$release$shared_ext$major' + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" + sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +linux*android*) + version_type=none # Android doesn't support versioned libraries. + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext' + soname_spec='$libname$release$shared_ext' + finish_cmds= + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + dynamic_linker='Android linker' + # Don't embed -rpath directories since the linker doesn't support them. + hardcode_libdir_flag_spec='-L$libdir' + ;; + +# This must be glibc/ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + + # Some binutils ld are patched to set DT_RUNPATH + if ${lt_cv_shlibpath_overrides_runpath+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_shlibpath_overrides_runpath=no + save_LDFLAGS=$LDFLAGS + save_libdir=$libdir + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : + lt_cv_shlibpath_overrides_runpath=yes +fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS=$save_LDFLAGS + libdir=$save_libdir + +fi + + shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath + + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # Add ABI-specific directories to the system library path. + sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" + + # Ideally, we could use ldconfig to report *all* directores which are + # searched for libraries, however this is still not possible. Aside from not + # being certain /sbin/ldconfig is available, command + # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, + # even though it is searched at run-time. Try to do the best guess by + # appending ld.so.conf contents (and includes) to the search path. + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +*nto* | *qnx*) + version_type=qnx + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='ldqnx.so' + ;; + +openbsd* | bitrig*) + version_type=sunos + sys_lib_dlsearch_path_spec=/usr/lib + need_lib_prefix=no + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then + need_version=no + else + need_version=yes + fi + library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +os2*) + libname_spec='$name' + version_type=windows + shrext_cmds=.dll + need_version=no + need_lib_prefix=no + # OS/2 can only load a DLL with a base name of 8 characters or less. + soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; + v=$($ECHO $release$versuffix | tr -d .-); + n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); + $ECHO $n$v`$shared_ext' + library_names_spec='${libname}_dll.$libext' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=BEGINLIBPATH + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + postinstall_cmds='base_file=`basename \$file`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname~ + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; + fi' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='$libname$release$shared_ext$major' + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + +rdos*) + dynamic_linker=no + ;; + +solaris*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test yes = "$with_gnu_ld"; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec; then + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' + soname_spec='$libname$shared_ext.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + version_type=sco + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + if test yes = "$with_gnu_ld"; then + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' + else + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' + case $host_os in + sco3.2v5*) + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" + ;; + esac + fi + sys_lib_dlsearch_path_spec='/usr/lib' + ;; + +tpf*) + # TPF is a cross-target only. Preferred cross-host = GNU/Linux. + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +uts4*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 +$as_echo "$dynamic_linker" >&6; } +test no = "$dynamic_linker" && can_build_shared=no + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test yes = "$GCC"; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then + sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec +fi + +if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then + sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec +fi + +# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... +configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec + +# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code +func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" + +# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool +configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; } +hardcode_action= +if test -n "$hardcode_libdir_flag_spec" || + test -n "$runpath_var" || + test yes = "$hardcode_automatic"; then + + # We can hardcode non-existent directories. + if test no != "$hardcode_direct" && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && + test no != "$hardcode_minus_L"; then + # Linking always hardcodes the temporary library directory. + hardcode_action=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + hardcode_action=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + hardcode_action=unsupported +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 +$as_echo "$hardcode_action" >&6; } + +if test relink = "$hardcode_action" || + test yes = "$inherit_rpath"; then + # Fast installation is not supported + enable_fast_install=no +elif test yes = "$shlibpath_overrides_runpath" || + test no = "$enable_shared"; then + # Fast installation is not necessary + enable_fast_install=needless +fi + + + + + + + if test yes != "$enable_dlopen"; then + enable_dlopen=unknown + enable_dlopen_self=unknown + enable_dlopen_self_static=unknown +else + lt_cv_dlopen=no + lt_cv_dlopen_libs= + + case $host_os in + beos*) + lt_cv_dlopen=load_add_on + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ;; + + mingw* | pw32* | cegcc*) + lt_cv_dlopen=LoadLibrary + lt_cv_dlopen_libs= + ;; + + cygwin*) + lt_cv_dlopen=dlopen + lt_cv_dlopen_libs= + ;; + + darwin*) + # if libdl is installed we need to link against it + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl_dlopen=yes +else + ac_cv_lib_dl_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : + lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl +else + + lt_cv_dlopen=dyld + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + +fi + + ;; + + tpf*) + # Don't try to run any link tests for TPF. We know it's impossible + # because TPF is a cross-compiler, and we know how we open DSOs. + lt_cv_dlopen=dlopen + lt_cv_dlopen_libs= + lt_cv_dlopen_self=no + ;; + + *) + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" +if test "x$ac_cv_func_shl_load" = xyes; then : + lt_cv_dlopen=shl_load +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 +$as_echo_n "checking for shl_load in -ldld... " >&6; } +if ${ac_cv_lib_dld_shl_load+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char shl_load (); +int +main () +{ +return shl_load (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dld_shl_load=yes +else + ac_cv_lib_dld_shl_load=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 +$as_echo "$ac_cv_lib_dld_shl_load" >&6; } +if test "x$ac_cv_lib_dld_shl_load" = xyes; then : + lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld +else + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" +if test "x$ac_cv_func_dlopen" = xyes; then : + lt_cv_dlopen=dlopen +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl_dlopen=yes +else + ac_cv_lib_dl_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : + lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 +$as_echo_n "checking for dlopen in -lsvld... " >&6; } +if ${ac_cv_lib_svld_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsvld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_svld_dlopen=yes +else + ac_cv_lib_svld_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 +$as_echo "$ac_cv_lib_svld_dlopen" >&6; } +if test "x$ac_cv_lib_svld_dlopen" = xyes; then : + lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 +$as_echo_n "checking for dld_link in -ldld... " >&6; } +if ${ac_cv_lib_dld_dld_link+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dld_link (); +int +main () +{ +return dld_link (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dld_dld_link=yes +else + ac_cv_lib_dld_dld_link=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 +$as_echo "$ac_cv_lib_dld_dld_link" >&6; } +if test "x$ac_cv_lib_dld_dld_link" = xyes; then : + lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld +fi + + +fi + + +fi + + +fi + + +fi + + +fi + + ;; + esac + + if test no = "$lt_cv_dlopen"; then + enable_dlopen=no + else + enable_dlopen=yes + fi + + case $lt_cv_dlopen in + dlopen) + save_CPPFLAGS=$CPPFLAGS + test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" + + save_LDFLAGS=$LDFLAGS + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" + + save_LIBS=$LIBS + LIBS="$lt_cv_dlopen_libs $LIBS" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 +$as_echo_n "checking whether a program can dlopen itself... " >&6; } +if ${lt_cv_dlopen_self+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test yes = "$cross_compiling"; then : + lt_cv_dlopen_self=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext <<_LT_EOF +#line $LINENO "configure" +#include "confdefs.h" + +#if HAVE_DLFCN_H +#include +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +/* When -fvisibility=hidden is used, assume the code has been annotated + correspondingly for the symbols needed. */ +#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) +int fnord () __attribute__((visibility("default"))); +#endif + +int fnord () { return 42; } +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else + { + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + else puts (dlerror ()); + } + /* dlclose (self); */ + } + else + puts (dlerror ()); + + return status; +} +_LT_EOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self=no + fi +fi +rm -fr conftest* + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 +$as_echo "$lt_cv_dlopen_self" >&6; } + + if test yes = "$lt_cv_dlopen_self"; then + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } +if ${lt_cv_dlopen_self_static+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test yes = "$cross_compiling"; then : + lt_cv_dlopen_self_static=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext <<_LT_EOF +#line $LINENO "configure" +#include "confdefs.h" + +#if HAVE_DLFCN_H +#include +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +/* When -fvisibility=hidden is used, assume the code has been annotated + correspondingly for the symbols needed. */ +#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) +int fnord () __attribute__((visibility("default"))); +#endif + +int fnord () { return 42; } +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else + { + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + else puts (dlerror ()); + } + /* dlclose (self); */ + } + else + puts (dlerror ()); + + return status; +} +_LT_EOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self_static=no + fi +fi +rm -fr conftest* + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 +$as_echo "$lt_cv_dlopen_self_static" >&6; } + fi + + CPPFLAGS=$save_CPPFLAGS + LDFLAGS=$save_LDFLAGS + LIBS=$save_LIBS + ;; + esac + + case $lt_cv_dlopen_self in + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; + *) enable_dlopen_self=unknown ;; + esac + + case $lt_cv_dlopen_self_static in + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; + *) enable_dlopen_self_static=unknown ;; + esac +fi + + + + + + + + + + + + + + + + + +striplib= +old_striplib= +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 +$as_echo_n "checking whether stripping libraries is possible... " >&6; } +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" + test -z "$striplib" && striplib="$STRIP --strip-unneeded" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else +# FIXME - insert some real tests, host_os isn't really good enough + case $host_os in + darwin*) + if test -n "$STRIP"; then + striplib="$STRIP -x" + old_striplib="$STRIP -S" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + ;; + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + ;; + esac +fi + + + + + + + + + + + + + # Report what library types will actually be built + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 +$as_echo_n "checking if libtool supports shared libraries... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 +$as_echo "$can_build_shared" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 +$as_echo_n "checking whether to build shared libraries... " >&6; } + test no = "$can_build_shared" && enable_shared=no + + # On AIX, shared libraries and static libraries use the same namespace, and + # are all built from PIC. + case $host_os in + aix3*) + test yes = "$enable_shared" && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + + aix[4-9]*) + if test ia64 != "$host_cpu"; then + case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in + yes,aix,yes) ;; # shared object as lib.so file only + yes,svr4,*) ;; # shared object as lib.so archive member only + yes,*) enable_static=no ;; # shared object in lib.a archive as well + esac + fi + ;; + esac + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 +$as_echo "$enable_shared" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 +$as_echo_n "checking whether to build static libraries... " >&6; } + # Make sure either enable_shared or enable_static is yes. + test yes = "$enable_shared" || enable_static=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 +$as_echo "$enable_static" >&6; } + + + + +fi +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +CC=$lt_save_CC + + + + + + + + + + + + + + + + ac_config_commands="$ac_config_commands libtool" + + + + +# Only expand once: + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 +$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } +if ${ac_cv_prog_cc_c99+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_prog_cc_c99=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include +#include + +// Check varargs macros. These examples are taken from C99 6.10.3.5. +#define debug(...) fprintf (stderr, __VA_ARGS__) +#define showlist(...) puts (#__VA_ARGS__) +#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) +static void +test_varargs_macros (void) +{ + int x = 1234; + int y = 5678; + debug ("Flag"); + debug ("X = %d\n", x); + showlist (The first, second, and third items.); + report (x>y, "x is %d but y is %d", x, y); +} + +// Check long long types. +#define BIG64 18446744073709551615ull +#define BIG32 4294967295ul +#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) +#if !BIG_OK + your preprocessor is broken; +#endif +#if BIG_OK +#else + your preprocessor is broken; +#endif +static long long int bignum = -9223372036854775807LL; +static unsigned long long int ubignum = BIG64; + +struct incomplete_array +{ + int datasize; + double data[]; +}; + +struct named_init { + int number; + const wchar_t *name; + double average; +}; + +typedef const char *ccp; + +static inline int +test_restrict (ccp restrict text) +{ + // See if C++-style comments work. + // Iterate through items via the restricted pointer. + // Also check for declarations in for loops. + for (unsigned int i = 0; *(text+i) != '\0'; ++i) + continue; + return 0; +} + +// Check varargs and va_copy. +static void +test_varargs (const char *format, ...) +{ + va_list args; + va_start (args, format); + va_list args_copy; + va_copy (args_copy, args); + + const char *str; + int number; + float fnumber; + + while (*format) + { + switch (*format++) + { + case 's': // string + str = va_arg (args_copy, const char *); + break; + case 'd': // int + number = va_arg (args_copy, int); + break; + case 'f': // float + fnumber = va_arg (args_copy, double); + break; + default: + break; + } + } + va_end (args_copy); + va_end (args); +} + +int +main () +{ + + // Check bool. + _Bool success = false; + + // Check restrict. + if (test_restrict ("String literal") == 0) + success = true; + char *restrict newvar = "Another string"; + + // Check varargs. + test_varargs ("s, d' f .", "string", 65, 34.234); + test_varargs_macros (); + + // Check flexible array members. + struct incomplete_array *ia = + malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); + ia->datasize = 10; + for (int i = 0; i < ia->datasize; ++i) + ia->data[i] = i * 1.234; + + // Check named initializers. + struct named_init ni = { + .number = 34, + .name = L"Test wide string", + .average = 543.34343, + }; + + ni.number = 58; + + int dynamic_array[ni.number]; + dynamic_array[ni.number - 1] = 543; + + // work around unused variable warnings + return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' + || dynamic_array[ni.number - 1] != 543); + + ; + return 0; +} +_ACEOF +for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_c99=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext + test "x$ac_cv_prog_cc_c99" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC + +fi +# AC_CACHE_VAL +case "x$ac_cv_prog_cc_c99" in + x) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +$as_echo "none needed" >&6; } ;; + xno) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +$as_echo "unsupported" >&6; } ;; + *) + CC="$CC $ac_cv_prog_cc_c99" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 +$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; +esac +if test "x$ac_cv_prog_cc_c99" != xno; then : + +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 +$as_echo_n "checking for an ANSI C-conforming const... " >&6; } +if ${ac_cv_c_const+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + +#ifndef __cplusplus + /* Ultrix mips cc rejects this sort of thing. */ + typedef int charset[2]; + const charset cs = { 0, 0 }; + /* SunOS 4.1.1 cc rejects this. */ + char const *const *pcpcc; + char **ppc; + /* NEC SVR4.0.2 mips cc rejects this. */ + struct point {int x, y;}; + static struct point const zero = {0,0}; + /* AIX XL C 1.02.0.0 rejects this. + It does not let you subtract one const X* pointer from another in + an arm of an if-expression whose if-part is not a constant + expression */ + const char *g = "string"; + pcpcc = &g + (g ? g-g : 0); + /* HPUX 7.0 cc rejects these. */ + ++pcpcc; + ppc = (char**) pcpcc; + pcpcc = (char const *const *) ppc; + { /* SCO 3.2v4 cc rejects this sort of thing. */ + char tx; + char *t = &tx; + char const *s = 0 ? (char *) 0 : (char const *) 0; + + *t++ = 0; + if (s) return 0; + } + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ + int x[] = {25, 17}; + const int *foo = &x[0]; + ++foo; + } + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ + typedef const int *iptr; + iptr p = 0; + ++p; + } + { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ + struct s { int j; const int *ap[3]; } bx; + struct s *b = &bx; b->j = 5; + } + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ + const int foo = 10; + if (!foo) return 0; + } + return !cs[0] && !zero.x; +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_const=yes +else + ac_cv_c_const=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 +$as_echo "$ac_cv_c_const" >&6; } +if test $ac_cv_c_const = no; then + +$as_echo "#define const /**/" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 +$as_echo_n "checking for inline... " >&6; } +if ${ac_cv_c_inline+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_c_inline=no +for ac_kw in inline __inline__ __inline; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifndef __cplusplus +typedef int foo_t; +static $ac_kw foo_t static_foo () {return 0; } +$ac_kw foo_t foo () {return 0; } +#endif + +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_inline=$ac_kw +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + test "$ac_cv_c_inline" != no && break +done + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 +$as_echo "$ac_cv_c_inline" >&6; } + +case $ac_cv_c_inline in + inline | yes) ;; + *) + case $ac_cv_c_inline in + no) ac_val=;; + *) ac_val=$ac_cv_c_inline;; + esac + cat >>confdefs.h <<_ACEOF +#ifndef __cplusplus +#define inline $ac_val +#endif +_ACEOF + ;; +esac + + +# By default we simply use the C compiler to build assembly code. + +test "${CCAS+set}" = set || CCAS=$CC +test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS + + + +depcc="$CCAS" am_compiler_list= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if ${am_cv_CCAS_dependencies_compiler_type+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named 'D' -- because '-MD' means "put the output + # in D". + rm -rf conftest.dir + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_CCAS_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + am__universal=false + + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with + # Solaris 10 /bin/sh. + echo '/* dummy */' > sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with '-c' and '-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle '-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs. + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # After this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested. + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvc7 | msvc7msys | msvisualcpp | msvcmsys) + # This compiler won't grok '-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CCAS_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CCAS_dependencies_compiler_type=none +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 +$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; } +CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type + + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then + am__fastdepCCAS_TRUE= + am__fastdepCCAS_FALSE='#' +else + am__fastdepCCAS_TRUE='#' + am__fastdepCCAS_FALSE= +fi + + + + +$as_echo "#define OPUS_BUILD /**/" >>confdefs.h + + +#Use a hacked up version of autoconf's AC_C_RESTRICT because it's not +#strong enough a test to detect old buggy versions of GCC (e.g. 2.95.3) +#Note: Both this and the test for variable-size arrays below are also +# done by AC_PROG_CC_C99, but not thoroughly enough apparently. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 +$as_echo_n "checking for C/C++ restrict keyword... " >&6; } +if ${ac_cv_c_restrict+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_c_restrict=no + # The order here caters to the fact that C++ does not require restrict. + for ac_kw in __restrict __restrict__ _Restrict restrict; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +typedef int * int_ptr; + int foo (int_ptr $ac_kw ip, int * $ac_kw baz[]) { + return ip[0]; + } +int +main () +{ +int s[1]; + int * $ac_kw t = s; + t[0] = 0; + return foo(t, (void *)0) + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_restrict=$ac_kw +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + test "$ac_cv_c_restrict" != no && break + done + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 +$as_echo "$ac_cv_c_restrict" >&6; } + + + +case $ac_cv_c_restrict in + restrict) ;; + no) $as_echo "#define restrict /**/" >>confdefs.h + ;; + *) cat >>confdefs.h <<_ACEOF +#define restrict $ac_cv_c_restrict +_ACEOF + ;; +esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 variable-size arrays" >&5 +$as_echo_n "checking for C99 variable-size arrays... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +static int x; char a[++x]; a[sizeof a - 1] = 0; int N; return a[0]; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + has_var_arrays=yes + use_alloca="no (using var arrays)" + +$as_echo "#define VAR_ARRAYS 1" >>confdefs.h + + +else + + has_var_arrays=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_var_arrays" >&5 +$as_echo "$has_var_arrays" >&6; } + +if test "$has_var_arrays" = "no"; then : + + for ac_header in alloca.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "$ac_includes_default" +if test "x$ac_cv_header_alloca_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_ALLOCA_H 1 +_ACEOF + +fi + +done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 +$as_echo_n "checking for alloca... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +int foo=10; int *array = alloca(foo); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + use_alloca=yes; + +$as_echo "#define USE_ALLOCA /**/" >>confdefs.h + + +else + + use_alloca=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_alloca" >&5 +$as_echo "$use_alloca" >&6; } + +fi + +LIBM= +case $host in +*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) + # These system don't have libm, or don't need it + ;; +*-ncr-sysv4.3*) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5 +$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; } +if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lmw $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char _mwvalidcheckl (); +int +main () +{ +return _mwvalidcheckl (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_mw__mwvalidcheckl=yes +else + ac_cv_lib_mw__mwvalidcheckl=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 +$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; } +if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then : + LIBM=-lmw +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 +$as_echo_n "checking for cos in -lm... " >&6; } +if ${ac_cv_lib_m_cos+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lm $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char cos (); +int +main () +{ +return cos (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_m_cos=yes +else + ac_cv_lib_m_cos=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 +$as_echo "$ac_cv_lib_m_cos" >&6; } +if test "x$ac_cv_lib_m_cos" = xyes; then : + LIBM="$LIBM -lm" +fi + + ;; +*) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 +$as_echo_n "checking for cos in -lm... " >&6; } +if ${ac_cv_lib_m_cos+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lm $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char cos (); +int +main () +{ +return cos (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_m_cos=yes +else + ac_cv_lib_m_cos=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 +$as_echo "$ac_cv_lib_m_cos" >&6; } +if test "x$ac_cv_lib_m_cos" = xyes; then : + LIBM=-lm +fi + + ;; +esac + + + +# Check whether --enable-fixed-point was given. +if test "${enable_fixed_point+set}" = set; then : + enableval=$enable_fixed_point; +else + enable_fixed_point=no +fi + + +if test "$enable_fixed_point" = "yes"; then : + + enable_float="no" + +$as_echo "#define FIXED_POINT 1" >>confdefs.h + + PC_BUILD="fixed-point" + +else + + enable_float="yes"; + PC_BUILD="floating-point" + +fi + + if test "$enable_fixed_point" = "yes"; then + FIXED_POINT_TRUE= + FIXED_POINT_FALSE='#' +else + FIXED_POINT_TRUE='#' + FIXED_POINT_FALSE= +fi + + +# Check whether --enable-fixed-point-debug was given. +if test "${enable_fixed_point_debug+set}" = set; then : + enableval=$enable_fixed_point_debug; +else + enable_fixed_point_debug=no +fi + + +if test "$enable_fixed_point_debug" = "yes"; then : + + +$as_echo "#define FIXED_DEBUG 1" >>confdefs.h + + +fi + +# Check whether --enable-float_api was given. +if test "${enable_float_api+set}" = set; then : + enableval=$enable_float_api; +else + enable_float_api=yes +fi + + + if test "$enable_float_api" = "no"; then + DISABLE_FLOAT_API_TRUE= + DISABLE_FLOAT_API_FALSE='#' +else + DISABLE_FLOAT_API_TRUE='#' + DISABLE_FLOAT_API_FALSE= +fi + + +if test "$enable_float_api" = "no"; then : + + +$as_echo "#define DISABLE_FLOAT_API 1" >>confdefs.h + + +fi + +# Check whether --enable-custom-modes was given. +if test "${enable_custom_modes+set}" = set; then : + enableval=$enable_custom_modes; +else + enable_custom_modes=no +fi + + +if test "$enable_custom_modes" = "yes"; then : + + +$as_echo "#define CUSTOM_MODES 1" >>confdefs.h + + PC_BUILD="$PC_BUILD, custom modes" + +fi + + if test "$enable_custom_modes" = "yes"; then + CUSTOM_MODES_TRUE= + CUSTOM_MODES_FALSE='#' +else + CUSTOM_MODES_TRUE='#' + CUSTOM_MODES_FALSE= +fi + + +has_float_approx=no +#case "$host_cpu" in +#i[[3456]]86 | x86_64 | powerpc64 | powerpc32 | ia64) +# has_float_approx=yes +# ;; +#esac + +# Check whether --enable-float-approx was given. +if test "${enable_float_approx+set}" = set; then : + enableval=$enable_float_approx; if test "$enable_float_approx" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Floating point approximations are not supported on all platforms." >&5 +$as_echo "$as_me: WARNING: Floating point approximations are not supported on all platforms." >&2;} + fi + +else + enable_float_approx=$has_float_approx +fi + + +if test "$enable_float_approx" = "yes"; then : + + +$as_echo "#define FLOAT_APPROX 1" >>confdefs.h + + +fi + +# Check whether --enable-asm was given. +if test "${enable_asm+set}" = set; then : + enableval=$enable_asm; +else + enable_asm=yes +fi + + +# Check whether --enable-rtcd was given. +if test "${enable_rtcd+set}" = set; then : + enableval=$enable_rtcd; +else + enable_rtcd=yes +fi + + +# Check whether --enable-intrinsics was given. +if test "${enable_intrinsics+set}" = set; then : + enableval=$enable_intrinsics; +else + enable_intrinsics=yes +fi + + +rtcd_support=no +cpu_arm=no + +if test x"${enable_asm}" = x"yes"; then : + + inline_optimization="No inline ASM for your platform, please send patches" + case $host_cpu in + arm*) + if test "$enable_float" != "yes"; then : + + cpu_arm=yes + +$as_echo "#define OPUS_ARM_ASM /**/" >>confdefs.h + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports gcc-style inline assembly" >&5 +$as_echo_n "checking if compiler supports gcc-style inline assembly... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + +#ifdef __GNUC_MINOR__ +#if (__GNUC__ * 1000 + __GNUC_MINOR__) < 3004 +#error GCC before 3.4 has critical bugs compiling inline assembly +#endif +#endif +__asm__ (""::) + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + flag_ok=yes +else + flag_ok=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + if test "X$flag_ok" = Xyes ; then + inline_optimization="ARM" + true + else + inline_optimization="disabled" + + true + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5 +$as_echo "$flag_ok" >&6; } + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports EDSP instructions on ARM" >&5 +$as_echo_n "checking if assembler supports EDSP instructions on ARM... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +__asm__("qadd r3,r3,r3") + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + OPUS_ARM_INLINE_EDSP=1 +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + OPUS_ARM_INLINE_EDSP=0 +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports ARMv6 media instructions on ARM" >&5 +$as_echo_n "checking if assembler supports ARMv6 media instructions on ARM... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +__asm__("shadd8 r3,r3,r3") + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + OPUS_ARM_INLINE_MEDIA=1 +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + OPUS_ARM_INLINE_MEDIA=0 +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports NEON instructions on ARM" >&5 +$as_echo_n "checking if assembler supports NEON instructions on ARM... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +__asm__("vorr d0,d0,d0") + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + OPUS_ARM_INLINE_NEON=1 +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + OPUS_ARM_INLINE_NEON=0 +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + if test x"$inline_optimization" = x"ARM"; then : + + if true; then + OPUS_ARM_INLINE_ASM_TRUE= + OPUS_ARM_INLINE_ASM_FALSE='#' +else + OPUS_ARM_INLINE_ASM_TRUE='#' + OPUS_ARM_INLINE_ASM_FALSE= +fi + + +$as_echo "#define OPUS_ARM_INLINE_ASM 1" >>confdefs.h + + if test x"$OPUS_ARM_INLINE_EDSP" = x"1"; then : + + +$as_echo "#define OPUS_ARM_INLINE_EDSP 1" >>confdefs.h + + inline_optimization="$inline_optimization (EDSP)" + +fi + if test x"$OPUS_ARM_INLINE_MEDIA" = x"1"; then : + + +$as_echo "#define OPUS_ARM_INLINE_MEDIA 1" >>confdefs.h + + inline_optimization="$inline_optimization (Media)" + +fi + if test x"$OPUS_ARM_INLINE_NEON" = x"1"; then : + + +$as_echo "#define OPUS_ARM_INLINE_NEON 1" >>confdefs.h + + inline_optimization="$inline_optimization (NEON)" + +fi + +fi + # Extract the first word of "perl", so it can be a program name with args. +set dummy perl; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_HAVE_PERL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$HAVE_PERL"; then + ac_cv_prog_HAVE_PERL="$HAVE_PERL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_HAVE_PERL="yes" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_prog_HAVE_PERL" && ac_cv_prog_HAVE_PERL="no" +fi +fi +HAVE_PERL=$ac_cv_prog_HAVE_PERL +if test -n "$HAVE_PERL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_PERL" >&5 +$as_echo "$HAVE_PERL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + if test x"$HAVE_PERL" = x"yes"; then : + + if true; then + OPUS_ARM_EXTERNAL_ASM_TRUE= + OPUS_ARM_EXTERNAL_ASM_FALSE='#' +else + OPUS_ARM_EXTERNAL_ASM_TRUE='#' + OPUS_ARM_EXTERNAL_ASM_FALSE= +fi + + asm_optimization="ARM" + if test x"$OPUS_ARM_INLINE_EDSP" = x"1"; then : + + OPUS_ARM_PRESUME_EDSP=1 + OPUS_ARM_MAY_HAVE_EDSP=1 + +else + + OPUS_ARM_PRESUME_EDSP=0 + OPUS_ARM_MAY_HAVE_EDSP=0 + +fi + if test x"$OPUS_ARM_INLINE_MEDIA" = x"1"; then : + + OPUS_ARM_PRESUME_MEDIA=1 + OPUS_ARM_MAY_HAVE_MEDIA=1 + +else + + OPUS_ARM_PRESUME_MEDIA=0 + OPUS_ARM_MAY_HAVE_MEDIA=0 + +fi + if test x"$OPUS_ARM_INLINE_NEON" = x"1"; then : + + OPUS_ARM_PRESUME_NEON=1 + OPUS_ARM_MAY_HAVE_NEON=1 + +else + + OPUS_ARM_PRESUME_NEON=0 + OPUS_ARM_MAY_HAVE_NEON=0 + +fi + if test x"$enable_rtcd" = x"yes"; then : + + if test x"$OPUS_ARM_MAY_HAVE_EDSP" != x"1"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to force-enable armv5e EDSP instructions..." >&5 +$as_echo "$as_me: Trying to force-enable armv5e EDSP instructions..." >&6;} + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports EDSP instructions on ARM" >&5 +$as_echo_n "checking if assembler supports EDSP instructions on ARM... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +__asm__(".arch armv5te\n.object_arch armv4t\nqadd r3,r3,r3") + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + OPUS_ARM_MAY_HAVE_EDSP=1 +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + +fi + if test x"$OPUS_ARM_MAY_HAVE_MEDIA" != x"1"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to force-enable ARMv6 media instructions..." >&5 +$as_echo "$as_me: Trying to force-enable ARMv6 media instructions..." >&6;} + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports ARMv6 media instructions on ARM" >&5 +$as_echo_n "checking if assembler supports ARMv6 media instructions on ARM... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +__asm__(".arch armv6\n.object_arch armv4t\nshadd8 r3,r3,r3") + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + OPUS_ARM_MAY_HAVE_MEDIA=1 +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + +fi + if test x"$OPUS_ARM_MAY_HAVE_NEON" != x"1"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to force-enable NEON instructions..." >&5 +$as_echo "$as_me: Trying to force-enable NEON instructions..." >&6;} + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports NEON instructions on ARM" >&5 +$as_echo_n "checking if assembler supports NEON instructions on ARM... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +__asm__(".arch armv7-a\n.fpu neon\n.object_arch armv4t\nvorr d0,d0,d0") + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + OPUS_ARM_MAY_HAVE_NEON=1 +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + +fi + +fi + rtcd_support= + if test x"$OPUS_ARM_MAY_HAVE_EDSP" = x"1"; then : + + +$as_echo "#define OPUS_ARM_MAY_HAVE_EDSP 1" >>confdefs.h + + if test x"$OPUS_ARM_PRESUME_EDSP" = x"1"; then : + + +$as_echo "#define OPUS_ARM_PRESUME_EDSP 1" >>confdefs.h + + asm_optimization="$asm_optimization (EDSP)" + +else + rtcd_support="$rtcd_support (EDSP)" + +fi + +fi + + if test x"$OPUS_ARM_MAY_HAVE_MEDIA" = x"1"; then : + + +$as_echo "#define OPUS_ARM_MAY_HAVE_MEDIA 1" >>confdefs.h + + if test x"$OPUS_ARM_PRESUME_MEDIA" = x"1"; then : + + +$as_echo "#define OPUS_ARM_PRESUME_MEDIA 1" >>confdefs.h + + asm_optimization="$asm_optimization (Media)" + +else + rtcd_support="$rtcd_support (Media)" + +fi + +fi + + if test x"$OPUS_ARM_MAY_HAVE_NEON" = x"1"; then : + + +$as_echo "#define OPUS_ARM_MAY_HAVE_NEON 1" >>confdefs.h + + if test x"$OPUS_ARM_PRESUME_NEON" = x"1"; then : + + +$as_echo "#define OPUS_ARM_PRESUME_NEON 1" >>confdefs.h + + asm_optimization="$asm_optimization (NEON)" + +else + rtcd_support="$rtcd_support (NEON)" + +fi + +fi + + if test x"$rtcd_support" != x""; then : + rtcd_support=ARM"$rtcd_support" +else + rtcd_support="no" + +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apple style tools" >&5 +$as_echo_n "checking for apple style tools... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#ifndef __APPLE__ +#error 1 +#endif +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; }; ARM2GNU_PARAMS="--apple" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; }; ARM2GNU_PARAMS="" +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** ARM assembly requires perl -- disabling optimizations" >&5 +$as_echo "$as_me: WARNING: *** ARM assembly requires perl -- disabling optimizations" >&2;} + asm_optimization="(missing perl dependency for ARM)" + +fi + +fi + ;; + esac + +else + + inline_optimization="disabled" + asm_optimization="disabled" + +fi + + if test x"${inline_optimization%% *}" = x"ARM"; then + OPUS_ARM_INLINE_ASM_TRUE= + OPUS_ARM_INLINE_ASM_FALSE='#' +else + OPUS_ARM_INLINE_ASM_TRUE='#' + OPUS_ARM_INLINE_ASM_FALSE= +fi + + if test x"${asm_optimization%% *}" = x"ARM"; then + OPUS_ARM_EXTERNAL_ASM_TRUE= + OPUS_ARM_EXTERNAL_ASM_FALSE='#' +else + OPUS_ARM_EXTERNAL_ASM_TRUE='#' + OPUS_ARM_EXTERNAL_ASM_FALSE= +fi + + + if false; then + HAVE_SSE_TRUE= + HAVE_SSE_FALSE='#' +else + HAVE_SSE_TRUE='#' + HAVE_SSE_FALSE= +fi + + if false; then + HAVE_SSE2_TRUE= + HAVE_SSE2_FALSE='#' +else + HAVE_SSE2_TRUE='#' + HAVE_SSE2_FALSE= +fi + + if false; then + HAVE_SSE4_1_TRUE= + HAVE_SSE4_1_FALSE='#' +else + HAVE_SSE4_1_TRUE='#' + HAVE_SSE4_1_FALSE= +fi + + if false; then + HAVE_AVX_TRUE= + HAVE_AVX_FALSE='#' +else + HAVE_AVX_TRUE='#' + HAVE_AVX_FALSE= +fi + + + + + + + +# With GCC on ARM32 softfp architectures (e.g. Android, or older Ubuntu) you need to specify +# -mfloat-abi=softfp for -mfpu=neon to work. However, on ARM32 hardfp architectures (e.g. newer Ubuntu), +# this option will break things. + +# As a heuristic, if host matches arm*eabi* but not arm*hf*, it's probably soft-float. + + +case $host in #( + arm*hf*) : + RESOLVED_DEFAULT_ARM_NEON_INTR_CFLAGS="-mfpu=neon" ;; #( + arm*eabi*) : + RESOLVED_DEFAULT_ARM_NEON_INTR_CFLAGS="-mfpu=neon -mfloat-abi=softfp" ;; #( + *) : + RESOLVED_DEFAULT_ARM_NEON_INTR_CFLAGS="-mfpu=neon" ;; +esac + + + + + + + +if ${X86_SSE_CFLAGS+:} false; then : + +else + X86_SSE_CFLAGS="-msse" +fi +if ${X86_SSE2_CFLAGS+:} false; then : + +else + X86_SSE2_CFLAGS="-msse2" +fi +if ${X86_SSE4_1_CFLAGS+:} false; then : + +else + X86_SSE4_1_CFLAGS="-msse4.1" +fi +if ${X86_AVX_CFLAGS+:} false; then : + +else + X86_AVX_CFLAGS="-mavx" +fi +if ${ARM_NEON_INTR_CFLAGS+:} false; then : + +else + ARM_NEON_INTR_CFLAGS="$RESOLVED_DEFAULT_ARM_NEON_INTR_CFLAGS" +fi + + + +if test x"$enable_intrinsics" = x"yes"; then : + + intrinsics_support="" + case $host_cpu in #( + arm*|aarch64*) : + + cpu_arm=yes + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports ARM Neon intrinsics" >&5 +$as_echo_n "checking if compiler supports ARM Neon intrinsics... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +int +main () +{ + + static float32x4_t A0, A1, SUMM; + SUMM = vmlaq_f32(SUMM, A0, A1); + return (int)vgetq_lane_f32(SUMM, 0); + + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + OPUS_ARM_MAY_HAVE_NEON_INTR=1 + OPUS_ARM_PRESUME_NEON_INTR=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + OPUS_ARM_PRESUME_NEON_INTR=0 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports ARM Neon intrinsics with $ARM_NEON_INTR_CFLAGS" >&5 +$as_echo_n "checking if compiler supports ARM Neon intrinsics with $ARM_NEON_INTR_CFLAGS... " >&6; } + save_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS $ARM_NEON_INTR_CFLAGS" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +int +main () +{ + + static float32x4_t A0, A1, SUMM; + SUMM = vmlaq_f32(SUMM, A0, A1); + return (int)vgetq_lane_f32(SUMM, 0); + + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + OPUS_ARM_MAY_HAVE_NEON_INTR=1 + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + OPUS_ARM_MAY_HAVE_NEON_INTR=0 + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + CFLAGS="$save_CFLAGS" + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + if test x"$OPUS_ARM_MAY_HAVE_NEON_INTR" = x"1" && test x"$OPUS_ARM_PRESUME_NEON_INTR" != x"1"; then : + + OPUS_ARM_NEON_INTR_CFLAGS="$ARM_NEON_INTR_CFLAGS" + + + +fi + + if test x"$OPUS_ARM_MAY_HAVE_NEON_INTR" = x"1"; then : + + +$as_echo "#define OPUS_ARM_MAY_HAVE_NEON_INTR 1" >>confdefs.h + + intrinsics_support="$intrinsics_support (NEON)" + + if test x"$enable_rtcd" != x"no" && test x"$OPUS_ARM_PRESUME_NEON_INTR" != x"1"; then : + if test x"$rtcd_support" = x"no"; then : + rtcd_support="ARM (NEON Intrinsics)" +else + rtcd_support="$rtcd_support (NEON Intrinsics)" +fi +fi + + if test x"$OPUS_ARM_PRESUME_NEON_INTR" = x"1"; then : + +$as_echo "#define OPUS_ARM_PRESUME_NEON_INTR 1" >>confdefs.h + +fi + + + +# Check whether --with-NE10 was given. +if test "${with_NE10+set}" = set; then : + withval=$with_NE10; NE10_prefix="$withval" +else + NE10_prefix="" +fi + + +# Check whether --with-NE10-libraries was given. +if test "${with_NE10_libraries+set}" = set; then : + withval=$with_NE10_libraries; NE10_libraries="$withval" +else + NE10_libraries="" +fi + + +# Check whether --with-NE10-includes was given. +if test "${with_NE10_includes+set}" = set; then : + withval=$with_NE10_includes; NE10_includes="$withval" +else + NE10_includes="" +fi + + + if test "x$NE10_libraries" != "x" ; then + NE10_LIBS="-L$NE10_libraries" + elif test "x$NE10_prefix" = "xno" || test "x$NE10_prefix" = "xyes" ; then + NE10_LIBS="" + elif test "x$NE10_prefix" != "x" ; then + NE10_LIBS="-L$NE10_prefix/lib" + elif test "x$prefix" != "xNONE" ; then + NE10_LIBS="-L$prefix/lib" + fi + + if test "x$NE10_prefix" != "xno" ; then + NE10_LIBS="$NE10_LIBS -lNE10" + fi + + if test "x$NE10_includes" != "x" ; then + NE10_CFLAGS="-I$NE10_includes" + elif test "x$NE10_prefix" = "xno" || test "x$NE10_prefix" = "xyes" ; then + NE10_CFLAGS="" + elif test "x$NE10_prefix" != "x" ; then + NE10_CFLAGS="-I$NE10_prefix/include" + elif test "x$prefix" != "xNONE"; then + NE10_CFLAGS="-I$prefix/include" + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NE10" >&5 +$as_echo_n "checking for NE10... " >&6; } + save_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS $NE10_CFLAGS" + save_LIBS="$LIBS"; LIBS="$LIBS $NE10_LIBS $LIBM" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + +int +main () +{ + + ne10_fft_cfg_float32_t cfg; + cfg = ne10_fft_alloc_c2c_float32_neon(480); + + + ; + return 0; +} + +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + HAVE_ARM_NE10=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + HAVE_ARM_NE10=0 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + NE10_CFLAGS="" + NE10_LIBS="" + + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + CFLAGS="$save_CFLAGS"; LIBS="$save_LIBS" + #Now we know if libNE10 is installed or not + if test x"$HAVE_ARM_NE10" = x"1"; then : + + +$as_echo "#define HAVE_ARM_NE10 1" >>confdefs.h + + + + + + +fi + + + if test x"$NE10_LIBS" != x""; then : + + intrinsics_support="$intrinsics_support (NE10)" + if test x"enable_rtcd" != x"" \ + && test x"$OPUS_ARM_PRESUME_NEON_INTR" != x"1"; then : + rtcd_support="$rtcd_support (NE10)" +fi + +fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports Aarch64 Neon intrinsics" >&5 +$as_echo_n "checking if compiler supports Aarch64 Neon intrinsics... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +int +main () +{ + + static int32_t IN; + static int16_t OUT; + OUT = vqmovns_s32(IN); + + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + OPUS_ARM_MAY_HAVE_AARCH64_NEON_INTR=1 + OPUS_ARM_PRESUME_AARCH64_NEON_INTR=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + OPUS_ARM_PRESUME_AARCH64_NEON_INTR=0 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports Aarch64 Neon intrinsics with $ARM_NEON_INTR_CFLAGS" >&5 +$as_echo_n "checking if compiler supports Aarch64 Neon intrinsics with $ARM_NEON_INTR_CFLAGS... " >&6; } + save_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS $ARM_NEON_INTR_CFLAGS" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +int +main () +{ + + static int32_t IN; + static int16_t OUT; + OUT = vqmovns_s32(IN); + + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + OPUS_ARM_MAY_HAVE_AARCH64_NEON_INTR=1 + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + OPUS_ARM_MAY_HAVE_AARCH64_NEON_INTR=0 + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + CFLAGS="$save_CFLAGS" + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + + if test x"$OPUS_ARM_PRESUME_AARCH64_NEON_INTR" = x"1"; then : + + +$as_echo "#define OPUS_ARM_PRESUME_AARCH64_NEON_INTR 1" >>confdefs.h + + intrinsics_support="$intrinsics_support (NEON Aarch64)" + +fi + + if test x"$intrinsics_support" = x""; then : + intrinsics_support=no +else + intrinsics_support="ARM$intrinsics_support" +fi + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler does not support ARM intrinsics" >&5 +$as_echo "$as_me: WARNING: Compiler does not support ARM intrinsics" >&2;} + intrinsics_support=no + +fi + ;; #( + i?86|x86_64) : + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports SSE intrinsics" >&5 +$as_echo_n "checking if compiler supports SSE intrinsics... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #include + +int +main () +{ + + __m128 mtest; + mtest = _mm_set1_ps((float)time(NULL)); + mtest = _mm_mul_ps(mtest, mtest); + return _mm_cvtss_si32(mtest); + + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + OPUS_X86_MAY_HAVE_SSE=1 + OPUS_X86_PRESUME_SSE=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + OPUS_X86_PRESUME_SSE=0 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports SSE intrinsics with $X86_SSE_CFLAGS" >&5 +$as_echo_n "checking if compiler supports SSE intrinsics with $X86_SSE_CFLAGS... " >&6; } + save_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS $X86_SSE_CFLAGS" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #include + +int +main () +{ + + __m128 mtest; + mtest = _mm_set1_ps((float)time(NULL)); + mtest = _mm_mul_ps(mtest, mtest); + return _mm_cvtss_si32(mtest); + + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + OPUS_X86_MAY_HAVE_SSE=1 + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + OPUS_X86_MAY_HAVE_SSE=0 + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + CFLAGS="$save_CFLAGS" + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + if test x"$OPUS_X86_MAY_HAVE_SSE" = x"1" && test x"$OPUS_X86_PRESUME_SSE" != x"1"; then : + + OPUS_X86_SSE_CFLAGS="$X86_SSE_CFLAGS" + + + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports SSE2 intrinsics" >&5 +$as_echo_n "checking if compiler supports SSE2 intrinsics... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #include + +int +main () +{ + + __m128i mtest; + mtest = _mm_set1_epi32((int)time(NULL)); + mtest = _mm_mul_epu32(mtest, mtest); + return _mm_cvtsi128_si32(mtest); + + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + OPUS_X86_MAY_HAVE_SSE2=1 + OPUS_X86_PRESUME_SSE2=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + OPUS_X86_PRESUME_SSE2=0 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports SSE2 intrinsics with $X86_SSE2_CFLAGS" >&5 +$as_echo_n "checking if compiler supports SSE2 intrinsics with $X86_SSE2_CFLAGS... " >&6; } + save_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS $X86_SSE2_CFLAGS" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #include + +int +main () +{ + + __m128i mtest; + mtest = _mm_set1_epi32((int)time(NULL)); + mtest = _mm_mul_epu32(mtest, mtest); + return _mm_cvtsi128_si32(mtest); + + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + OPUS_X86_MAY_HAVE_SSE2=1 + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + OPUS_X86_MAY_HAVE_SSE2=0 + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + CFLAGS="$save_CFLAGS" + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + if test x"$OPUS_X86_MAY_HAVE_SSE2" = x"1" && test x"$OPUS_X86_PRESUME_SSE2" != x"1"; then : + + OPUS_X86_SSE2_CFLAGS="$X86_SSE2_CFLAGS" + + + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports SSE4.1 intrinsics" >&5 +$as_echo_n "checking if compiler supports SSE4.1 intrinsics... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #include + +int +main () +{ + + __m128i mtest; + mtest = _mm_set1_epi32((int)time(NULL)); + mtest = _mm_mul_epi32(mtest, mtest); + return _mm_cvtsi128_si32(mtest); + + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + OPUS_X86_MAY_HAVE_SSE4_1=1 + OPUS_X86_PRESUME_SSE4_1=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + OPUS_X86_PRESUME_SSE4_1=0 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports SSE4.1 intrinsics with $X86_SSE4_1_CFLAGS" >&5 +$as_echo_n "checking if compiler supports SSE4.1 intrinsics with $X86_SSE4_1_CFLAGS... " >&6; } + save_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS $X86_SSE4_1_CFLAGS" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #include + +int +main () +{ + + __m128i mtest; + mtest = _mm_set1_epi32((int)time(NULL)); + mtest = _mm_mul_epi32(mtest, mtest); + return _mm_cvtsi128_si32(mtest); + + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + OPUS_X86_MAY_HAVE_SSE4_1=1 + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + OPUS_X86_MAY_HAVE_SSE4_1=0 + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + CFLAGS="$save_CFLAGS" + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + if test x"$OPUS_X86_MAY_HAVE_SSE4_1" = x"1" && test x"$OPUS_X86_PRESUME_SSE4_1" != x"1"; then : + + OPUS_X86_SSE4_1_CFLAGS="$X86_SSE4_1_CFLAGS" + + + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports AVX intrinsics" >&5 +$as_echo_n "checking if compiler supports AVX intrinsics... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #include + +int +main () +{ + + __m256 mtest; + mtest = _mm256_set1_ps((float)time(NULL)); + mtest = _mm256_addsub_ps(mtest, mtest); + return _mm_cvtss_si32(_mm256_extractf128_ps(mtest, 0)); + + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + OPUS_X86_MAY_HAVE_AVX=1 + OPUS_X86_PRESUME_AVX=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + OPUS_X86_PRESUME_AVX=0 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports AVX intrinsics with $X86_AVX_CFLAGS" >&5 +$as_echo_n "checking if compiler supports AVX intrinsics with $X86_AVX_CFLAGS... " >&6; } + save_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS $X86_AVX_CFLAGS" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #include + +int +main () +{ + + __m256 mtest; + mtest = _mm256_set1_ps((float)time(NULL)); + mtest = _mm256_addsub_ps(mtest, mtest); + return _mm_cvtss_si32(_mm256_extractf128_ps(mtest, 0)); + + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + OPUS_X86_MAY_HAVE_AVX=1 + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + OPUS_X86_MAY_HAVE_AVX=0 + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + CFLAGS="$save_CFLAGS" + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + if test x"$OPUS_X86_MAY_HAVE_AVX" = x"1" && test x"$OPUS_X86_PRESUME_AVX" != x"1"; then : + + OPUS_X86_AVX_CFLAGS="$X86_AVX_CFLAGS" + + + +fi + if test x"$rtcd_support" = x"no"; then : + rtcd_support="" +fi + if test x"$OPUS_X86_MAY_HAVE_SSE" = x"1"; then : + + +$as_echo "#define OPUS_X86_MAY_HAVE_SSE 1" >>confdefs.h + + intrinsics_support="$intrinsics_support SSE" + + if test x"$OPUS_X86_PRESUME_SSE" = x"1"; then : + +$as_echo "#define OPUS_X86_PRESUME_SSE 1" >>confdefs.h + +else + rtcd_support="$rtcd_support SSE" +fi + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler does not support SSE intrinsics" >&5 +$as_echo "$as_me: WARNING: Compiler does not support SSE intrinsics" >&2;} + +fi + + if test x"$OPUS_X86_MAY_HAVE_SSE2" = x"1"; then : + + +$as_echo "#define OPUS_X86_MAY_HAVE_SSE2 1" >>confdefs.h + + intrinsics_support="$intrinsics_support SSE2" + + if test x"$OPUS_X86_PRESUME_SSE2" = x"1"; then : + +$as_echo "#define OPUS_X86_PRESUME_SSE2 1" >>confdefs.h + +else + rtcd_support="$rtcd_support SSE2" +fi + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler does not support SSE2 intrinsics" >&5 +$as_echo "$as_me: WARNING: Compiler does not support SSE2 intrinsics" >&2;} + +fi + + if test x"$OPUS_X86_MAY_HAVE_SSE4_1" = x"1"; then : + + +$as_echo "#define OPUS_X86_MAY_HAVE_SSE4_1 1" >>confdefs.h + + intrinsics_support="$intrinsics_support SSE4.1" + + if test x"$OPUS_X86_PRESUME_SSE4_1" = x"1"; then : + +$as_echo "#define OPUS_X86_PRESUME_SSE4_1 1" >>confdefs.h + +else + rtcd_support="$rtcd_support SSE4.1" +fi + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler does not support SSE4.1 intrinsics" >&5 +$as_echo "$as_me: WARNING: Compiler does not support SSE4.1 intrinsics" >&2;} + +fi + if test x"$OPUS_X86_MAY_HAVE_AVX" = x"1"; then : + + +$as_echo "#define OPUS_X86_MAY_HAVE_AVX 1" >>confdefs.h + + intrinsics_support="$intrinsics_support AVX" + + if test x"$OPUS_X86_PRESUME_AVX" = x"1"; then : + +$as_echo "#define OPUS_X86_PRESUME_AVX 1" >>confdefs.h + +else + rtcd_support="$rtcd_support AVX" +fi + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler does not support AVX intrinsics" >&5 +$as_echo "$as_me: WARNING: Compiler does not support AVX intrinsics" >&2;} + +fi + + if test x"$intrinsics_support" = x""; then : + intrinsics_support=no +else + intrinsics_support="x86$intrinsics_support" + +fi + if test x"$rtcd_support" = x""; then : + rtcd_support=no +elif rtcd_support="x86$rtcd_support"; then : + +fi + + if test x"$enable_rtcd" = x"yes" && test x"$rtcd_support" != x""; then : + + get_cpuid_by_asm="no" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking How to get X86 CPU Info" >&5 +$as_echo_n "checking How to get X86 CPU Info... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + +int +main () +{ + + unsigned int CPUInfo0; + unsigned int CPUInfo1; + unsigned int CPUInfo2; + unsigned int CPUInfo3; + unsigned int InfoType; + __asm__ __volatile__ ( + "cpuid": + "=a" (CPUInfo0), + "=b" (CPUInfo1), + "=c" (CPUInfo2), + "=d" (CPUInfo3) : + "a" (InfoType), "c" (0) + ); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + get_cpuid_by_asm="yes" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Inline Assembly" >&5 +$as_echo "Inline Assembly" >&6; } + +$as_echo "#define CPU_INFO_BY_ASM 1" >>confdefs.h + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + +int +main () +{ + + unsigned int CPUInfo0; + unsigned int CPUInfo1; + unsigned int CPUInfo2; + unsigned int CPUInfo3; + unsigned int InfoType; + __get_cpuid(InfoType, &CPUInfo0, &CPUInfo1, &CPUInfo2, &CPUInfo3); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: C method" >&5 +$as_echo "C method" >&6; } + +$as_echo "#define CPU_INFO_BY_C 1" >>confdefs.h + +else + as_fn_error $? "no supported Get CPU Info method, please disable run-time CPU capabilities detection or intrinsics" "$LINENO" 5 +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi + ;; #( + *) : + + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No intrinsics support for your architecture" >&5 +$as_echo "$as_me: WARNING: No intrinsics support for your architecture" >&2;} + intrinsics_support="no" + ;; +esac + +else + + intrinsics_support="no" + +fi + + if test "$cpu_arm" = "yes"; then + CPU_ARM_TRUE= + CPU_ARM_FALSE='#' +else + CPU_ARM_TRUE='#' + CPU_ARM_FALSE= +fi + + if test x"$OPUS_ARM_MAY_HAVE_NEON_INTR" = x"1"; then + HAVE_ARM_NEON_INTR_TRUE= + HAVE_ARM_NEON_INTR_FALSE='#' +else + HAVE_ARM_NEON_INTR_TRUE='#' + HAVE_ARM_NEON_INTR_FALSE= +fi + + if test x"$HAVE_ARM_NE10" = x"1"; then + HAVE_ARM_NE10_TRUE= + HAVE_ARM_NE10_FALSE='#' +else + HAVE_ARM_NE10_TRUE='#' + HAVE_ARM_NE10_FALSE= +fi + + if test x"$OPUS_X86_MAY_HAVE_SSE" = x"1"; then + HAVE_SSE_TRUE= + HAVE_SSE_FALSE='#' +else + HAVE_SSE_TRUE='#' + HAVE_SSE_FALSE= +fi + + if test x"$OPUS_X86_MAY_HAVE_SSE2" = x"1"; then + HAVE_SSE2_TRUE= + HAVE_SSE2_FALSE='#' +else + HAVE_SSE2_TRUE='#' + HAVE_SSE2_FALSE= +fi + + if test x"$OPUS_X86_MAY_HAVE_SSE4_1" = x"1"; then + HAVE_SSE4_1_TRUE= + HAVE_SSE4_1_FALSE='#' +else + HAVE_SSE4_1_TRUE='#' + HAVE_SSE4_1_FALSE= +fi + + if test x"$OPUS_X86_MAY_HAVE_AVX" = x"1"; then + HAVE_AVX_TRUE= + HAVE_AVX_FALSE='#' +else + HAVE_AVX_TRUE='#' + HAVE_AVX_FALSE= +fi + + +if test x"$enable_rtcd" = x"yes"; then : + + if test x"$rtcd_support" != x"no"; then : + + +$as_echo "#define OPUS_HAVE_RTCD 1" >>confdefs.h + + OPUS_HAVE_RTCD=1 + + +fi + +else + + rtcd_support="disabled" + +fi + +# Check whether --enable-assertions was given. +if test "${enable_assertions+set}" = set; then : + enableval=$enable_assertions; +else + enable_assertions=no +fi + + +if test "$enable_assertions" = "yes"; then : + + +$as_echo "#define ENABLE_ASSERTIONS 1" >>confdefs.h + + +fi + +# Check whether --enable-hardening was given. +if test "${enable_hardening+set}" = set; then : + enableval=$enable_hardening; +else + enable_hardening=yes +fi + + +if test "$enable_hardening" = "yes"; then : + + +$as_echo "#define ENABLE_HARDENING 1" >>confdefs.h + + +fi + +# Check whether --enable-fuzzing was given. +if test "${enable_fuzzing+set}" = set; then : + enableval=$enable_fuzzing; +else + enable_fuzzing=no +fi + + +if test "$enable_fuzzing" = "yes"; then : + + +$as_echo "#define FUZZING 1" >>confdefs.h + + +fi + +# Check whether --enable-check-asm was given. +if test "${enable_check_asm+set}" = set; then : + enableval=$enable_check_asm; +else + enable_check_asm=no +fi + + +if test "$enable_check_asm" = "yes"; then : + + +$as_echo "#define OPUS_CHECK_ASM 1" >>confdefs.h + + +fi + +# Check whether --enable-doc was given. +if test "${enable_doc+set}" = set; then : + enableval=$enable_doc; +else + enable_doc=yes +fi + + +if test "$enable_doc" = "yes"; then : + + # Extract the first word of "doxygen", so it can be a program name with args. +set dummy doxygen; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_HAVE_DOXYGEN+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$HAVE_DOXYGEN"; then + ac_cv_prog_HAVE_DOXYGEN="$HAVE_DOXYGEN" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_HAVE_DOXYGEN="yes" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_prog_HAVE_DOXYGEN" && ac_cv_prog_HAVE_DOXYGEN="no" +fi +fi +HAVE_DOXYGEN=$ac_cv_prog_HAVE_DOXYGEN +if test -n "$HAVE_DOXYGEN"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOXYGEN" >&5 +$as_echo "$HAVE_DOXYGEN" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + # Extract the first word of "dot", so it can be a program name with args. +set dummy dot; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_HAVE_DOT+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$HAVE_DOT"; then + ac_cv_prog_HAVE_DOT="$HAVE_DOT" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_HAVE_DOT="yes" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_prog_HAVE_DOT" && ac_cv_prog_HAVE_DOT="no" +fi +fi +HAVE_DOT=$ac_cv_prog_HAVE_DOT +if test -n "$HAVE_DOT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOT" >&5 +$as_echo "$HAVE_DOT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + +else + + HAVE_DOXYGEN=no + +fi + + if test "$HAVE_DOXYGEN" = "yes"; then + HAVE_DOXYGEN_TRUE= + HAVE_DOXYGEN_FALSE='#' +else + HAVE_DOXYGEN_TRUE='#' + HAVE_DOXYGEN_FALSE= +fi + + +# Check whether --enable-extra-programs was given. +if test "${enable_extra_programs+set}" = set; then : + enableval=$enable_extra_programs; +else + enable_extra_programs=yes +fi + + + if test "$enable_extra_programs" = "yes"; then + EXTRA_PROGRAMS_TRUE= + EXTRA_PROGRAMS_FALSE='#' +else + EXTRA_PROGRAMS_TRUE='#' + EXTRA_PROGRAMS_FALSE= +fi + + + +# Check whether --enable-rfc8251 was given. +if test "${enable_rfc8251+set}" = set; then : + enableval=$enable_rfc8251; +else + enable_rfc8251=yes +fi + + +if test "$enable_rfc8251" = "no"; then : + + +$as_echo "#define DISABLE_UPDATE_DRAFT 1" >>confdefs.h + + +fi + + +saved_CFLAGS="$CFLAGS" +CFLAGS="$CFLAGS -fvisibility=hidden" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports -fvisibility=hidden" >&5 +$as_echo_n "checking if ${CC} supports -fvisibility=hidden... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +char foo; +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + CFLAGS="$saved_CFLAGS" + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +on_x86=no +case "$host_cpu" in +i[3456]86 | x86_64) + on_x86=yes + ;; +esac + +on_windows=no +case $host in +*cygwin*|*mingw*) + on_windows=yes + ;; +esac + +# Check whether --enable-stack-protector was given. +if test "${enable_stack_protector+set}" = set; then : + enableval=$enable_stack_protector; +else + + if test "$ac_cv_c_compiler_gnu" = "yes" && test "$on_x86" = "yes" && test "$on_windows" = "no"; then : + enable_stack_protector=yes +else + enable_stack_protector=no +fi + +fi + + +if test "$enable_stack_protector" = "yes"; then : + + saved_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -fstack-protector-strong" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports -fstack-protector-strong" >&5 +$as_echo_n "checking if ${CC} supports -fstack-protector-strong... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +char foo; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + enable_stack_protector=no + CFLAGS="$saved_CFLAGS" + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + +fi + +if test x$ac_cv_c_compiler_gnu = xyes; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to add -D_FORTIFY_SOURCE=2 to CFLAGS" >&5 +$as_echo_n "checking whether to add -D_FORTIFY_SOURCE=2 to CFLAGS... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + + int main() { + #ifndef _FORTIFY_SOURCE + return 0; + #else + this_is_an_error; + #endif + } + + +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2" + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + +fi + +CFLAGS="$CFLAGS -W" + +warn_CFLAGS="-Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes" +saved_CFLAGS="$CFLAGS" +CFLAGS="$CFLAGS $warn_CFLAGS" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports ${warn_CFLAGS}" >&5 +$as_echo_n "checking if ${CC} supports ${warn_CFLAGS}... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +char foo; +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + CFLAGS="$saved_CFLAGS" + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +saved_LIBS="$LIBS" +LIBS="$LIBS $LIBM" +for ac_func in lrintf +do : + ac_fn_c_check_func "$LINENO" "lrintf" "ac_cv_func_lrintf" +if test "x$ac_cv_func_lrintf" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LRINTF 1 +_ACEOF + +fi +done + +for ac_func in lrint +do : + ac_fn_c_check_func "$LINENO" "lrint" "ac_cv_func_lrint" +if test "x$ac_cv_func_lrint" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LRINT 1 +_ACEOF + +fi +done + +LIBS="$saved_LIBS" + +for ac_func in __malloc_hook +do : + ac_fn_c_check_func "$LINENO" "__malloc_hook" "ac_cv_func___malloc_hook" +if test "x$ac_cv_func___malloc_hook" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE___MALLOC_HOOK 1 +_ACEOF + +fi +done + + + + +ac_config_files="$ac_config_files Makefile opus.pc opus-uninstalled.pc celt/arm/armopts.s doc/Makefile doc/Doxyfile" + +ac_config_headers="$ac_config_headers config.h" + + +cat >confcache <<\_ACEOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs, see configure's option --config-cache. +# It is not useful on other systems. If it contains results you don't +# want to keep, you may remove or edit it. +# +# config.status only pays attention to the cache file if you give it +# the --recheck option to rerun configure. +# +# `ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* `ac_cv_foo' will be assigned the +# following values. + +_ACEOF + +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, we kill variables containing newlines. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +( + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + + (set) 2>&1 | + case $as_nl`(ac_space=' '; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + # `set' does not quote correctly, so add quotes: double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \. + sed -n \ + "s/'/'\\\\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" + ;; #( + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) | + sed ' + /^ac_cv_env_/b end + t clear + :clear + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + t end + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ + :end' >>confcache +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else + if test -w "$cache_file"; then + if test "x$cache_file" != "x/dev/null"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 +$as_echo "$as_me: updating cache $cache_file" >&6;} + if test ! -f "$cache_file" || test -h "$cache_file"; then + cat confcache >"$cache_file" + else + case $cache_file in #( + */* | ?:*) + mv -f confcache "$cache_file"$$ && + mv -f "$cache_file"$$ "$cache_file" ;; #( + *) + mv -f confcache "$cache_file" ;; + esac + fi + fi + else + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} + fi +fi +rm -f confcache + +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + +DEFS=-DHAVE_CONFIG_H + +ac_libobjs= +ac_ltlibobjs= +U= +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue + # 1. Remove the extension, and $U if already installed. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' + ac_i=`$as_echo "$ac_i" | sed "$ac_script"` + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR + # will be set to the directory where LIBOBJS objects are built. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' +done +LIBOBJS=$ac_libobjs + +LTLIBOBJS=$ac_ltlibobjs + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 +$as_echo_n "checking that generated files are newer than configure... " >&6; } + if test -n "$am_sleep_pid"; then + # Hide warnings about reused PIDs. + wait $am_sleep_pid 2>/dev/null + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 +$as_echo "done" >&6; } + if test -n "$EXEEXT"; then + am__EXEEXT_TRUE= + am__EXEEXT_FALSE='#' +else + am__EXEEXT_TRUE='#' + am__EXEEXT_FALSE= +fi + +if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then + as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then + as_fn_error $? "conditional \"AMDEP\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then + as_fn_error $? "conditional \"am__fastdepCC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then + as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${FIXED_POINT_TRUE}" && test -z "${FIXED_POINT_FALSE}"; then + as_fn_error $? "conditional \"FIXED_POINT\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${DISABLE_FLOAT_API_TRUE}" && test -z "${DISABLE_FLOAT_API_FALSE}"; then + as_fn_error $? "conditional \"DISABLE_FLOAT_API\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${CUSTOM_MODES_TRUE}" && test -z "${CUSTOM_MODES_FALSE}"; then + as_fn_error $? "conditional \"CUSTOM_MODES\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${OPUS_ARM_INLINE_ASM_TRUE}" && test -z "${OPUS_ARM_INLINE_ASM_FALSE}"; then + as_fn_error $? "conditional \"OPUS_ARM_INLINE_ASM\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${OPUS_ARM_EXTERNAL_ASM_TRUE}" && test -z "${OPUS_ARM_EXTERNAL_ASM_FALSE}"; then + as_fn_error $? "conditional \"OPUS_ARM_EXTERNAL_ASM\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${OPUS_ARM_INLINE_ASM_TRUE}" && test -z "${OPUS_ARM_INLINE_ASM_FALSE}"; then + as_fn_error $? "conditional \"OPUS_ARM_INLINE_ASM\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${OPUS_ARM_EXTERNAL_ASM_TRUE}" && test -z "${OPUS_ARM_EXTERNAL_ASM_FALSE}"; then + as_fn_error $? "conditional \"OPUS_ARM_EXTERNAL_ASM\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_SSE_TRUE}" && test -z "${HAVE_SSE_FALSE}"; then + as_fn_error $? "conditional \"HAVE_SSE\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_SSE2_TRUE}" && test -z "${HAVE_SSE2_FALSE}"; then + as_fn_error $? "conditional \"HAVE_SSE2\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_SSE4_1_TRUE}" && test -z "${HAVE_SSE4_1_FALSE}"; then + as_fn_error $? "conditional \"HAVE_SSE4_1\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_AVX_TRUE}" && test -z "${HAVE_AVX_FALSE}"; then + as_fn_error $? "conditional \"HAVE_AVX\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${CPU_ARM_TRUE}" && test -z "${CPU_ARM_FALSE}"; then + as_fn_error $? "conditional \"CPU_ARM\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_ARM_NEON_INTR_TRUE}" && test -z "${HAVE_ARM_NEON_INTR_FALSE}"; then + as_fn_error $? "conditional \"HAVE_ARM_NEON_INTR\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_ARM_NE10_TRUE}" && test -z "${HAVE_ARM_NE10_FALSE}"; then + as_fn_error $? "conditional \"HAVE_ARM_NE10\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_SSE_TRUE}" && test -z "${HAVE_SSE_FALSE}"; then + as_fn_error $? "conditional \"HAVE_SSE\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_SSE2_TRUE}" && test -z "${HAVE_SSE2_FALSE}"; then + as_fn_error $? "conditional \"HAVE_SSE2\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_SSE4_1_TRUE}" && test -z "${HAVE_SSE4_1_FALSE}"; then + as_fn_error $? "conditional \"HAVE_SSE4_1\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_AVX_TRUE}" && test -z "${HAVE_AVX_FALSE}"; then + as_fn_error $? "conditional \"HAVE_AVX\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then + as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${EXTRA_PROGRAMS_TRUE}" && test -z "${EXTRA_PROGRAMS_FALSE}"; then + as_fn_error $? "conditional \"EXTRA_PROGRAMS\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi + +: "${CONFIG_STATUS=./config.status}" +ac_write_fail=0 +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files $CONFIG_STATUS" +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} +as_write_fail=0 +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 +#! $SHELL +# Generated by $as_me. +# Run this file to recreate the current configuration. +# Compiler output produced by configure, useful for debugging +# configure, is in config.log if it exists. + +debug=false +ac_cs_recheck=false +ac_cs_silent=false + +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in #(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + + +# as_fn_error STATUS ERROR [LINENO LOG_FD] +# ---------------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} # as_fn_error + + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' + fi +else + as_ln_s='cp -pR' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} # as_fn_mkdir_p +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + + +# as_fn_executable_p FILE +# ----------------------- +# Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} # as_fn_executable_p +as_test_x='test -x' +as_executable_p=as_fn_executable_p + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +exec 6>&1 +## ----------------------------------- ## +## Main body of $CONFIG_STATUS script. ## +## ----------------------------------- ## +_ASEOF +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# Save the log message, to keep $0 and so on meaningful, and to +# report actual input values of CONFIG_FILES etc. instead of their +# values after options handling. +ac_log=" +This file was extended by opus $as_me 1.3.1, which was +generated by GNU Autoconf 2.69. Invocation command line was + + CONFIG_FILES = $CONFIG_FILES + CONFIG_HEADERS = $CONFIG_HEADERS + CONFIG_LINKS = $CONFIG_LINKS + CONFIG_COMMANDS = $CONFIG_COMMANDS + $ $0 $@ + +on `(hostname || uname -n) 2>/dev/null | sed 1q` +" + +_ACEOF + +case $ac_config_files in *" +"*) set x $ac_config_files; shift; ac_config_files=$*;; +esac + +case $ac_config_headers in *" +"*) set x $ac_config_headers; shift; ac_config_headers=$*;; +esac + + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# Files that config.status was made for. +config_files="$ac_config_files" +config_headers="$ac_config_headers" +config_commands="$ac_config_commands" + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +ac_cs_usage="\ +\`$as_me' instantiates files and other configuration actions +from templates according to the current configuration. Unless the files +and actions are specified as TAGs, all are instantiated by default. + +Usage: $0 [OPTION]... [TAG]... + + -h, --help print this help, then exit + -V, --version print version number and configuration settings, then exit + --config print configuration, then exit + -q, --quiet, --silent + do not print progress messages + -d, --debug don't remove temporary files + --recheck update $as_me by reconfiguring in the same conditions + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE + --header=FILE[:TEMPLATE] + instantiate the configuration header FILE + +Configuration files: +$config_files + +Configuration headers: +$config_headers + +Configuration commands: +$config_commands + +Report bugs to ." + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" +ac_cs_version="\\ +opus config.status 1.3.1 +configured by $0, generated by GNU Autoconf 2.69, + with options \\"\$ac_cs_config\\" + +Copyright (C) 2012 Free Software Foundation, Inc. +This config.status script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it." + +ac_pwd='$ac_pwd' +srcdir='$srcdir' +INSTALL='$INSTALL' +MKDIR_P='$MKDIR_P' +AWK='$AWK' +test -n "\$AWK" || AWK=awk +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# The default lists apply if the user does not specify any file. +ac_need_defaults=: +while test $# != 0 +do + case $1 in + --*=?*) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` + ac_shift=: + ;; + --*=) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg= + ac_shift=: + ;; + *) + ac_option=$1 + ac_optarg=$2 + ac_shift=shift + ;; + esac + + case $ac_option in + # Handling of the options. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + ac_cs_recheck=: ;; + --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) + $as_echo "$ac_cs_version"; exit ;; + --config | --confi | --conf | --con | --co | --c ) + $as_echo "$ac_cs_config"; exit ;; + --debug | --debu | --deb | --de | --d | -d ) + debug=: ;; + --file | --fil | --fi | --f ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + '') as_fn_error $? "missing file argument" ;; + esac + as_fn_append CONFIG_FILES " '$ac_optarg'" + ac_need_defaults=false;; + --header | --heade | --head | --hea ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append CONFIG_HEADERS " '$ac_optarg'" + ac_need_defaults=false;; + --he | --h) + # Conflict between --help and --header + as_fn_error $? "ambiguous option: \`$1' +Try \`$0 --help' for more information.";; + --help | --hel | -h ) + $as_echo "$ac_cs_usage"; exit ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil | --si | --s) + ac_cs_silent=: ;; + + # This is an error. + -*) as_fn_error $? "unrecognized option: \`$1' +Try \`$0 --help' for more information." ;; + + *) as_fn_append ac_config_targets " $1" + ac_need_defaults=false ;; + + esac + shift +done + +ac_configure_extra_args= + +if $ac_cs_silent; then + exec 6>/dev/null + ac_configure_extra_args="$ac_configure_extra_args --silent" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +if \$ac_cs_recheck; then + set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + shift + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 + CONFIG_SHELL='$SHELL' + export CONFIG_SHELL + exec "\$@" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +exec 5>>config.log +{ + echo + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX +## Running $as_me. ## +_ASBOX + $as_echo "$ac_log" +} >&5 + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# +# INIT-COMMANDS +# +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" + + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +sed_quote_subst='$sed_quote_subst' +double_quote_subst='$double_quote_subst' +delay_variable_subst='$delay_variable_subst' +macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' +macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' +enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' +enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' +pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' +enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' +shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' +SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' +ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' +PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' +host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' +host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' +host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' +build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' +build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' +build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' +SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' +Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' +GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' +EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' +FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' +LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' +NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' +LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' +max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' +ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' +exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' +lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' +lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' +lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' +lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' +lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' +reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' +reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' +OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' +deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' +file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' +file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' +want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' +DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' +sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' +AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' +AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' +archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' +STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' +RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' +old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' +old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' +old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' +lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' +CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' +CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' +compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' +GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' +lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' +nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' +lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' +lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' +objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' +MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' +lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' +need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' +MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' +DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' +NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' +LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' +OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' +OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' +libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' +shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' +extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' +archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' +enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' +export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' +whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' +compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' +old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' +old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' +archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' +archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' +module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' +module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' +with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' +allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' +no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' +hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' +hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' +hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' +hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' +hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' +inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' +link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' +always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' +export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' +exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' +include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' +prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' +postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' +file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' +variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' +need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' +need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' +version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' +runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' +shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' +shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' +libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' +library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' +soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' +install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' +postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' +postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' +finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' +finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' +hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' +sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' +configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' +configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' +hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' +enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' +enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' +enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' +old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' +striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' + +LTCC='$LTCC' +LTCFLAGS='$LTCFLAGS' +compiler='$compiler_DEFAULT' + +# A function that is used when there is no print builtin or printf. +func_fallback_echo () +{ + eval 'cat <<_LTECHO_EOF +\$1 +_LTECHO_EOF' +} + +# Quote evaled strings. +for var in SHELL \ +ECHO \ +PATH_SEPARATOR \ +SED \ +GREP \ +EGREP \ +FGREP \ +LD \ +NM \ +LN_S \ +lt_SP2NL \ +lt_NL2SP \ +reload_flag \ +OBJDUMP \ +deplibs_check_method \ +file_magic_cmd \ +file_magic_glob \ +want_nocaseglob \ +DLLTOOL \ +sharedlib_from_linklib_cmd \ +AR \ +AR_FLAGS \ +archiver_list_spec \ +STRIP \ +RANLIB \ +CC \ +CFLAGS \ +compiler \ +lt_cv_sys_global_symbol_pipe \ +lt_cv_sys_global_symbol_to_cdecl \ +lt_cv_sys_global_symbol_to_import \ +lt_cv_sys_global_symbol_to_c_name_address \ +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ +lt_cv_nm_interface \ +nm_file_list_spec \ +lt_cv_truncate_bin \ +lt_prog_compiler_no_builtin_flag \ +lt_prog_compiler_pic \ +lt_prog_compiler_wl \ +lt_prog_compiler_static \ +lt_cv_prog_compiler_c_o \ +need_locks \ +MANIFEST_TOOL \ +DSYMUTIL \ +NMEDIT \ +LIPO \ +OTOOL \ +OTOOL64 \ +shrext_cmds \ +export_dynamic_flag_spec \ +whole_archive_flag_spec \ +compiler_needs_object \ +with_gnu_ld \ +allow_undefined_flag \ +no_undefined_flag \ +hardcode_libdir_flag_spec \ +hardcode_libdir_separator \ +exclude_expsyms \ +include_expsyms \ +file_list_spec \ +variables_saved_for_relink \ +libname_spec \ +library_names_spec \ +soname_spec \ +install_override_mode \ +finish_eval \ +old_striplib \ +striplib; do + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in + *[\\\\\\\`\\"\\\$]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; + esac +done + +# Double-quote double-evaled strings. +for var in reload_cmds \ +old_postinstall_cmds \ +old_postuninstall_cmds \ +old_archive_cmds \ +extract_expsyms_cmds \ +old_archive_from_new_cmds \ +old_archive_from_expsyms_cmds \ +archive_cmds \ +archive_expsym_cmds \ +module_cmds \ +module_expsym_cmds \ +export_symbols_cmds \ +prelink_cmds \ +postlink_cmds \ +postinstall_cmds \ +postuninstall_cmds \ +finish_cmds \ +sys_lib_search_path_spec \ +configure_time_dlsearch_path \ +configure_time_lt_sys_library_path; do + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in + *[\\\\\\\`\\"\\\$]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; + esac +done + +ac_aux_dir='$ac_aux_dir' + +# See if we are running on zsh, and set the options that allow our +# commands through without removal of \ escapes INIT. +if test -n "\${ZSH_VERSION+set}"; then + setopt NO_GLOB_SUBST +fi + + + PACKAGE='$PACKAGE' + VERSION='$VERSION' + RM='$RM' + ofile='$ofile' + + + + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + +# Handling of arguments. +for ac_config_target in $ac_config_targets +do + case $ac_config_target in + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; + "opus.pc") CONFIG_FILES="$CONFIG_FILES opus.pc" ;; + "opus-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES opus-uninstalled.pc" ;; + "celt/arm/armopts.s") CONFIG_FILES="$CONFIG_FILES celt/arm/armopts.s" ;; + "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; + "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;; + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; + + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; + esac +done + + +# If the user did not use the arguments to specify the items to instantiate, +# then the envvar interface is used. Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. +if $ac_need_defaults; then + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands +fi + +# Have a temporary directory for convenience. Make it in the build tree +# simply because there is no reason against having it here, and in addition, +# creating and moving files from /tmp can sometimes cause problems. +# Hook for its removal unless debugging. +# Note that there is a small window in which the directory will not be cleaned: +# after its creation but before its name has been assigned to `$tmp'. +$debug || +{ + tmp= ac_tmp= + trap 'exit_status=$? + : "${ac_tmp:=$tmp}" + { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status +' 0 + trap 'as_fn_exit 1' 1 2 13 15 +} +# Create a (secure) tmp directory for tmp files. + +{ + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && + test -d "$tmp" +} || +{ + tmp=./conf$$-$RANDOM + (umask 077 && mkdir "$tmp") +} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 +ac_tmp=$tmp + +# Set up the scripts for CONFIG_FILES section. +# No need to generate them if there are no CONFIG_FILES. +# This happens for instance with `./config.status config.h'. +if test -n "$CONFIG_FILES"; then + + +ac_cr=`echo X | tr X '\015'` +# On cygwin, bash can eat \r inside `` if the user requested igncr. +# But we know of no other shell where ac_cr would be empty at this +# point, so we can use a bashism as a fallback. +if test "x$ac_cr" = x; then + eval ac_cr=\$\'\\r\' +fi +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then + ac_cs_awk_cr='\\r' +else + ac_cs_awk_cr=$ac_cr +fi + +echo 'BEGIN {' >"$ac_tmp/subs1.awk" && +_ACEOF + + +{ + echo "cat >conf$$subs.awk <<_ACEOF" && + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && + echo "_ACEOF" +} >conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` +ac_delim='%!_!# ' +for ac_last_try in false false false false false :; do + . ./conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` + if test $ac_delim_n = $ac_delim_num; then + break + elif $ac_last_try; then + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done +rm -f conf$$subs.sh + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && +_ACEOF +sed -n ' +h +s/^/S["/; s/!.*/"]=/ +p +g +s/^[^!]*!// +:repl +t repl +s/'"$ac_delim"'$// +t delim +:nl +h +s/\(.\{148\}\)..*/\1/ +t more1 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ +p +n +b repl +:more1 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t nl +:delim +h +s/\(.\{148\}\)..*/\1/ +t more2 +s/["\\]/\\&/g; s/^/"/; s/$/"/ +p +b +:more2 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t delim +' >$CONFIG_STATUS || ac_write_fail=1 +rm -f conf$$subs.awk +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +_ACAWK +cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && + for (key in S) S_is_set[key] = 1 + FS = "" + +} +{ + line = $ 0 + nfields = split(line, field, "@") + substed = 0 + len = length(field[1]) + for (i = 2; i < nfields; i++) { + key = field[i] + keylen = length(key) + if (S_is_set[key]) { + value = S[key] + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) + len += length(value) + length(field[++i]) + substed = 1 + } else + len += 1 + keylen + } + + print line +} + +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" +else + cat +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ + || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 +_ACEOF + +# VPATH may cause trouble with some makes, so we remove sole $(srcdir), +# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and +# trailing colons and then remove the whole line if VPATH becomes empty +# (actually we leave an empty line to preserve line numbers). +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ +h +s/// +s/^/:/ +s/[ ]*$/:/ +s/:\$(srcdir):/:/g +s/:\${srcdir}:/:/g +s/:@srcdir@:/:/g +s/^:*// +s/:*$// +x +s/\(=[ ]*\).*/\1/ +G +s/\n// +s/^[^=]*=[ ]*$// +}' +fi + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +fi # test -n "$CONFIG_FILES" + +# Set up the scripts for CONFIG_HEADERS section. +# No need to generate them if there are no CONFIG_HEADERS. +# This happens for instance with `./config.status Makefile'. +if test -n "$CONFIG_HEADERS"; then +cat >"$ac_tmp/defines.awk" <<\_ACAWK || +BEGIN { +_ACEOF + +# Transform confdefs.h into an awk script `defines.awk', embedded as +# here-document in config.status, that substitutes the proper values into +# config.h.in to produce config.h. + +# Create a delimiter string that does not exist in confdefs.h, to ease +# handling of long lines. +ac_delim='%!_!# ' +for ac_last_try in false false :; do + ac_tt=`sed -n "/$ac_delim/p" confdefs.h` + if test -z "$ac_tt"; then + break + elif $ac_last_try; then + as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done + +# For the awk script, D is an array of macro values keyed by name, +# likewise P contains macro parameters if any. Preserve backslash +# newline sequences. + +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* +sed -n ' +s/.\{148\}/&'"$ac_delim"'/g +t rset +:rset +s/^[ ]*#[ ]*define[ ][ ]*/ / +t def +d +:def +s/\\$// +t bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3"/p +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p +d +:bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3\\\\\\n"\\/p +t cont +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p +t cont +d +:cont +n +s/.\{148\}/&'"$ac_delim"'/g +t clear +:clear +s/\\$// +t bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/"/p +d +:bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p +b cont +' >$CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + for (key in D) D_is_set[key] = 1 + FS = "" +} +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { + line = \$ 0 + split(line, arg, " ") + if (arg[1] == "#") { + defundef = arg[2] + mac1 = arg[3] + } else { + defundef = substr(arg[1], 2) + mac1 = arg[2] + } + split(mac1, mac2, "(") #) + macro = mac2[1] + prefix = substr(line, 1, index(line, defundef) - 1) + if (D_is_set[macro]) { + # Preserve the white space surrounding the "#". + print prefix "define", macro P[macro] D[macro] + next + } else { + # Replace #undef with comments. This is necessary, for example, + # in the case of _POSIX_SOURCE, which is predefined and required + # on some systems where configure will not decide to define it. + if (defundef == "undef") { + print "/*", prefix defundef, macro, "*/" + next + } + } +} +{ print } +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 +fi # test -n "$CONFIG_HEADERS" + + +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" +shift +for ac_tag +do + case $ac_tag in + :[FHLC]) ac_mode=$ac_tag; continue;; + esac + case $ac_mode$ac_tag in + :[FHL]*:*);; + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; + :[FH]-) ac_tag=-:-;; + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; + esac + ac_save_IFS=$IFS + IFS=: + set x $ac_tag + IFS=$ac_save_IFS + shift + ac_file=$1 + shift + + case $ac_mode in + :L) ac_source=$1;; + :[FH]) + ac_file_inputs= + for ac_f + do + case $ac_f in + -) ac_f="$ac_tmp/stdin";; + *) # Look for the file first in the build tree, then in the source tree + # (if the path is not absolute). The absolute path cannot be DOS-style, + # because $ac_f cannot contain `:'. + test -f "$ac_f" || + case $ac_f in + [\\/$]*) false;; + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; + esac || + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; + esac + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + as_fn_append ac_file_inputs " '$ac_f'" + done + + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated by config.status. */ + configure_input='Generated from '` + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' + `' by configure.' + if test x"$ac_file" != x-; then + configure_input="$ac_file. $configure_input" + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +$as_echo "$as_me: creating $ac_file" >&6;} + fi + # Neutralize special characters interpreted by sed in replacement strings. + case $configure_input in #( + *\&* | *\|* | *\\* ) + ac_sed_conf_input=`$as_echo "$configure_input" | + sed 's/[\\\\&|]/\\\\&/g'`;; #( + *) ac_sed_conf_input=$configure_input;; + esac + + case $ac_tag in + *:-:* | *:-) cat >"$ac_tmp/stdin" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; + esac + ;; + esac + + ac_dir=`$as_dirname -- "$ac_file" || +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir="$ac_dir"; as_fn_mkdir_p + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + + case $ac_mode in + :F) + # + # CONFIG_FILE + # + + case $INSTALL in + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; + esac + ac_MKDIR_P=$MKDIR_P + case $MKDIR_P in + [\\/$]* | ?:[\\/]* ) ;; + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; + esac +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# If the template does not know about datarootdir, expand it. +# FIXME: This hack should be removed a few years after 2.60. +ac_datarootdir_hack=; ac_datarootdir_seen= +ac_sed_dataroot=' +/datarootdir/ { + p + q +} +/@datadir@/p +/@docdir@/p +/@infodir@/p +/@localedir@/p +/@mandir@/p' +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in +*datarootdir*) ac_datarootdir_seen=yes;; +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + ac_datarootdir_hack=' + s&@datadir@&$datadir&g + s&@docdir@&$docdir&g + s&@infodir@&$infodir&g + s&@localedir@&$localedir&g + s&@mandir@&$mandir&g + s&\\\${datarootdir}&$datarootdir&g' ;; +esac +_ACEOF + +# Neutralize VPATH when `$srcdir' = `.'. +# Shell code in configure.ac might set extrasub. +# FIXME: do we really want to maintain this feature? +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_sed_extra="$ac_vpsub +$extrasub +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s|@configure_input@|$ac_sed_conf_input|;t t +s&@top_builddir@&$ac_top_builddir_sub&;t t +s&@top_build_prefix@&$ac_top_build_prefix&;t t +s&@srcdir@&$ac_srcdir&;t t +s&@abs_srcdir@&$ac_abs_srcdir&;t t +s&@top_srcdir@&$ac_top_srcdir&;t t +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t +s&@builddir@&$ac_builddir&;t t +s&@abs_builddir@&$ac_abs_builddir&;t t +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t +s&@INSTALL@&$ac_INSTALL&;t t +s&@MKDIR_P@&$ac_MKDIR_P&;t t +$ac_datarootdir_hack +" +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ + >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && + { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ + "$ac_tmp/out"`; test -z "$ac_out"; } && + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&5 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&2;} + + rm -f "$ac_tmp/stdin" + case $ac_file in + -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; + *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; + esac \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + ;; + :H) + # + # CONFIG_HEADER + # + if test x"$ac_file" != x-; then + { + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" + } >"$ac_tmp/config.h" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 +$as_echo "$as_me: $ac_file is unchanged" >&6;} + else + rm -f "$ac_file" + mv "$ac_tmp/config.h" "$ac_file" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + fi + else + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ + || as_fn_error $? "could not create -" "$LINENO" 5 + fi +# Compute "$ac_file"'s index in $config_headers. +_am_arg="$ac_file" +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $_am_arg | $_am_arg:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$_am_arg" : 'X\(//\)[^/]' \| \ + X"$_am_arg" : 'X\(//\)$' \| \ + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$_am_arg" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'`/stamp-h$_am_stamp_count + ;; + + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 +$as_echo "$as_me: executing $ac_file commands" >&6;} + ;; + esac + + + case $ac_file$ac_mode in + "depfiles":C) test x"$AMDEP_TRUE" != x"" || { + # Older Autoconf quotes --file arguments for eval, but not when files + # are listed without --file. Let's play safe and only enable the eval + # if we detect the quoting. + case $CONFIG_FILES in + *\'*) eval set x "$CONFIG_FILES" ;; + *) set x $CONFIG_FILES ;; + esac + shift + for mf + do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named 'Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then + dirpart=`$as_dirname -- "$mf" || +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$mf" : 'X\(//\)[^/]' \| \ + X"$mf" : 'X\(//\)$' \| \ + X"$mf" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$mf" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running 'make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "$am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`$as_dirname -- "$file" || +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$file" : 'X\(//\)[^/]' \| \ + X"$file" : 'X\(//\)$' \| \ + X"$file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir=$dirpart/$fdir; as_fn_mkdir_p + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done + done +} + ;; + "libtool":C) + + # See if we are running on zsh, and set the options that allow our + # commands through without removal of \ escapes. + if test -n "${ZSH_VERSION+set}"; then + setopt NO_GLOB_SUBST + fi + + cfgfile=${ofile}T + trap "$RM \"$cfgfile\"; exit 1" 1 2 15 + $RM "$cfgfile" + + cat <<_LT_EOF >> "$cfgfile" +#! $SHELL +# Generated automatically by $as_me ($PACKAGE) $VERSION +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: +# NOTE: Changes made to this file will be lost: look at ltmain.sh. + +# Provide generalized library-building support services. +# Written by Gordon Matzigkeit, 1996 + +# Copyright (C) 2014 Free Software Foundation, Inc. +# This is free software; see the source for copying conditions. There is NO +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + +# GNU Libtool is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of of the License, or +# (at your option) any later version. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program or library that is built +# using GNU Libtool, you may include this file under the same +# distribution terms that you use for the rest of that program. +# +# GNU Libtool is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + + +# The names of the tagged configurations supported by this script. +available_tags='' + +# Configured defaults for sys_lib_dlsearch_path munging. +: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} + +# ### BEGIN LIBTOOL CONFIG + +# Which release of libtool.m4 was used? +macro_version=$macro_version +macro_revision=$macro_revision + +# Whether or not to build shared libraries. +build_libtool_libs=$enable_shared + +# Whether or not to build static libraries. +build_old_libs=$enable_static + +# What type of objects to build. +pic_mode=$pic_mode + +# Whether or not to optimize for fast installation. +fast_install=$enable_fast_install + +# Shared archive member basename,for filename based shared library versioning on AIX. +shared_archive_member_spec=$shared_archive_member_spec + +# Shell to use when invoking shell scripts. +SHELL=$lt_SHELL + +# An echo program that protects backslashes. +ECHO=$lt_ECHO + +# The PATH separator for the build system. +PATH_SEPARATOR=$lt_PATH_SEPARATOR + +# The host system. +host_alias=$host_alias +host=$host +host_os=$host_os + +# The build system. +build_alias=$build_alias +build=$build +build_os=$build_os + +# A sed program that does not truncate output. +SED=$lt_SED + +# Sed that helps us avoid accidentally triggering echo(1) options like -n. +Xsed="\$SED -e 1s/^X//" + +# A grep program that handles long lines. +GREP=$lt_GREP + +# An ERE matcher. +EGREP=$lt_EGREP + +# A literal string matcher. +FGREP=$lt_FGREP + +# A BSD- or MS-compatible name lister. +NM=$lt_NM + +# Whether we need soft or hard links. +LN_S=$lt_LN_S + +# What is the maximum length of a command? +max_cmd_len=$max_cmd_len + +# Object file suffix (normally "o"). +objext=$ac_objext + +# Executable file suffix (normally ""). +exeext=$exeext + +# whether the shell understands "unset". +lt_unset=$lt_unset + +# turn spaces into newlines. +SP2NL=$lt_lt_SP2NL + +# turn newlines into spaces. +NL2SP=$lt_lt_NL2SP + +# convert \$build file names to \$host format. +to_host_file_cmd=$lt_cv_to_host_file_cmd + +# convert \$build files to toolchain format. +to_tool_file_cmd=$lt_cv_to_tool_file_cmd + +# An object symbol dumper. +OBJDUMP=$lt_OBJDUMP + +# Method to check whether dependent libraries are shared objects. +deplibs_check_method=$lt_deplibs_check_method + +# Command to use when deplibs_check_method = "file_magic". +file_magic_cmd=$lt_file_magic_cmd + +# How to find potential files when deplibs_check_method = "file_magic". +file_magic_glob=$lt_file_magic_glob + +# Find potential files using nocaseglob when deplibs_check_method = "file_magic". +want_nocaseglob=$lt_want_nocaseglob + +# DLL creation program. +DLLTOOL=$lt_DLLTOOL + +# Command to associate shared and link libraries. +sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd + +# The archiver. +AR=$lt_AR + +# Flags to create an archive. +AR_FLAGS=$lt_AR_FLAGS + +# How to feed a file listing to the archiver. +archiver_list_spec=$lt_archiver_list_spec + +# A symbol stripping program. +STRIP=$lt_STRIP + +# Commands used to install an old-style archive. +RANLIB=$lt_RANLIB +old_postinstall_cmds=$lt_old_postinstall_cmds +old_postuninstall_cmds=$lt_old_postuninstall_cmds + +# Whether to use a lock for old archive extraction. +lock_old_archive_extraction=$lock_old_archive_extraction + +# A C compiler. +LTCC=$lt_CC + +# LTCC compiler flags. +LTCFLAGS=$lt_CFLAGS + +# Take the output of nm and produce a listing of raw symbols and C names. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe + +# Transform the output of nm in a proper C declaration. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl + +# Transform the output of nm into a list of symbols to manually relocate. +global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import + +# Transform the output of nm in a C name address pair. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address + +# Transform the output of nm in a C name address pair when lib prefix is needed. +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix + +# The name lister interface. +nm_interface=$lt_lt_cv_nm_interface + +# Specify filename containing input files for \$NM. +nm_file_list_spec=$lt_nm_file_list_spec + +# The root where to search for dependent libraries,and where our libraries should be installed. +lt_sysroot=$lt_sysroot + +# Command to truncate a binary pipe. +lt_truncate_bin=$lt_lt_cv_truncate_bin + +# The name of the directory that contains temporary libtool files. +objdir=$objdir + +# Used to examine libraries when file_magic_cmd begins with "file". +MAGIC_CMD=$MAGIC_CMD + +# Must we lock files when doing compilation? +need_locks=$lt_need_locks + +# Manifest tool. +MANIFEST_TOOL=$lt_MANIFEST_TOOL + +# Tool to manipulate archived DWARF debug symbol files on Mac OS X. +DSYMUTIL=$lt_DSYMUTIL + +# Tool to change global to local symbols on Mac OS X. +NMEDIT=$lt_NMEDIT + +# Tool to manipulate fat objects and archives on Mac OS X. +LIPO=$lt_LIPO + +# ldd/readelf like tool for Mach-O binaries on Mac OS X. +OTOOL=$lt_OTOOL + +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. +OTOOL64=$lt_OTOOL64 + +# Old archive suffix (normally "a"). +libext=$libext + +# Shared library suffix (normally ".so"). +shrext_cmds=$lt_shrext_cmds + +# The commands to extract the exported symbol list from a shared archive. +extract_expsyms_cmds=$lt_extract_expsyms_cmds + +# Variables whose values should be saved in libtool wrapper scripts and +# restored at link time. +variables_saved_for_relink=$lt_variables_saved_for_relink + +# Do we need the "lib" prefix for modules? +need_lib_prefix=$need_lib_prefix + +# Do we need a version for libraries? +need_version=$need_version + +# Library versioning type. +version_type=$version_type + +# Shared library runtime path variable. +runpath_var=$runpath_var + +# Shared library path variable. +shlibpath_var=$shlibpath_var + +# Is shlibpath searched before the hard-coded library search path? +shlibpath_overrides_runpath=$shlibpath_overrides_runpath + +# Format of library name prefix. +libname_spec=$lt_libname_spec + +# List of archive names. First name is the real one, the rest are links. +# The last name is the one that the linker finds with -lNAME +library_names_spec=$lt_library_names_spec + +# The coded name of the library, if different from the real name. +soname_spec=$lt_soname_spec + +# Permission mode override for installation of shared libraries. +install_override_mode=$lt_install_override_mode + +# Command to use after installation of a shared archive. +postinstall_cmds=$lt_postinstall_cmds + +# Command to use after uninstallation of a shared archive. +postuninstall_cmds=$lt_postuninstall_cmds + +# Commands used to finish a libtool library installation in a directory. +finish_cmds=$lt_finish_cmds + +# As "finish_cmds", except a single script fragment to be evaled but +# not shown. +finish_eval=$lt_finish_eval + +# Whether we should hardcode library paths into libraries. +hardcode_into_libs=$hardcode_into_libs + +# Compile-time system search path for libraries. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec + +# Detected run-time system search path for libraries. +sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path + +# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. +configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path + +# Whether dlopen is supported. +dlopen_support=$enable_dlopen + +# Whether dlopen of programs is supported. +dlopen_self=$enable_dlopen_self + +# Whether dlopen of statically linked programs is supported. +dlopen_self_static=$enable_dlopen_self_static + +# Commands to strip libraries. +old_striplib=$lt_old_striplib +striplib=$lt_striplib + + +# The linker used to build libraries. +LD=$lt_LD + +# How to create reloadable object files. +reload_flag=$lt_reload_flag +reload_cmds=$lt_reload_cmds + +# Commands used to build an old-style archive. +old_archive_cmds=$lt_old_archive_cmds + +# A language specific compiler. +CC=$lt_compiler + +# Is the compiler the GNU compiler? +with_gcc=$GCC + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag + +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic + +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc + +# Whether or not to disallow shared libs when runtime libs are static. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec + +# Whether the compiler copes with passing no objects directly. +compiler_needs_object=$lt_compiler_needs_object + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds + +# Commands used to build a shared archive. +archive_cmds=$lt_archive_cmds +archive_expsym_cmds=$lt_archive_expsym_cmds + +# Commands used to build a loadable module if different from building +# a shared archive. +module_cmds=$lt_module_cmds +module_expsym_cmds=$lt_module_expsym_cmds + +# Whether we are building with GNU ld or not. +with_gnu_ld=$lt_with_gnu_ld + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag + +# Flag that enforces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec + +# Whether we need a single "-rpath" flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator + +# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes +# DIR into the resulting binary. +hardcode_direct=$hardcode_direct + +# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes +# DIR into the resulting binary and the resulting library dependency is +# "absolute",i.e impossible to change by setting \$shlibpath_var if the +# library is relocated. +hardcode_direct_absolute=$hardcode_direct_absolute + +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR +# into the resulting binary. +hardcode_minus_L=$hardcode_minus_L + +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR +# into the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var + +# Set to "yes" if building a shared library automatically hardcodes DIR +# into the library and all subsequent libraries and executables linked +# against it. +hardcode_automatic=$hardcode_automatic + +# Set to yes if linker adds runtime paths of dependent libraries +# to runtime path list. +inherit_rpath=$inherit_rpath + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs + +# Set to "yes" if exported symbols are required. +always_export_symbols=$always_export_symbols + +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms + +# Commands necessary for linking programs (against libraries) with templates. +prelink_cmds=$lt_prelink_cmds + +# Commands necessary for finishing linking programs. +postlink_cmds=$lt_postlink_cmds + +# Specify filename containing input files. +file_list_spec=$lt_file_list_spec + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action + +# ### END LIBTOOL CONFIG + +_LT_EOF + + cat <<'_LT_EOF' >> "$cfgfile" + +# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE + +# func_munge_path_list VARIABLE PATH +# ----------------------------------- +# VARIABLE is name of variable containing _space_ separated list of +# directories to be munged by the contents of PATH, which is string +# having a format: +# "DIR[:DIR]:" +# string "DIR[ DIR]" will be prepended to VARIABLE +# ":DIR[:DIR]" +# string "DIR[ DIR]" will be appended to VARIABLE +# "DIRP[:DIRP]::[DIRA:]DIRA" +# string "DIRP[ DIRP]" will be prepended to VARIABLE and string +# "DIRA[ DIRA]" will be appended to VARIABLE +# "DIR[:DIR]" +# VARIABLE will be replaced by "DIR[ DIR]" +func_munge_path_list () +{ + case x$2 in + x) + ;; + *:) + eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" + ;; + x:*) + eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" + ;; + *::*) + eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" + eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" + ;; + *) + eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" + ;; + esac +} + + +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. +func_cc_basename () +{ + for cc_temp in $*""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac + done + func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` +} + + +# ### END FUNCTIONS SHARED WITH CONFIGURE + +_LT_EOF + + case $host_os in + aix3*) + cat <<\_LT_EOF >> "$cfgfile" +# AIX sometimes has problems with the GCC collect2 program. For some +# reason, if we set the COLLECT_NAMES environment variable, the problems +# vanish in a puff of smoke. +if test set != "${COLLECT_NAMES+set}"; then + COLLECT_NAMES= + export COLLECT_NAMES +fi +_LT_EOF + ;; + esac + + +ltmain=$ac_aux_dir/ltmain.sh + + + # We use sed instead of cat because bash on DJGPP gets confused if + # if finds mixed CR/LF and LF-only lines. Since sed operates in + # text mode, it properly converts lines to CR/LF. This bash problem + # is reportedly fixed, but why not run on old versions too? + sed '$q' "$ltmain" >> "$cfgfile" \ + || (rm -f "$cfgfile"; exit 1) + + mv -f "$cfgfile" "$ofile" || + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") + chmod +x "$ofile" + + ;; + + esac +done # for ac_tag + + +as_fn_exit 0 +_ACEOF +ac_clean_files=$ac_clean_files_save + +test $ac_write_fail = 0 || + as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 + + +# configure is writing to config.log, and then calls config.status. +# config.status does its own redirection, appending to config.log. +# Unfortunately, on DOS this fails, as config.log is still kept open +# by configure, so config.status won't be able to write to it; its +# output is simply discarded. So we exec the FD to /dev/null, +# effectively closing config.log, so it can be properly (re)opened and +# appended to by config.status. When coming back to configure, we +# need to make the FD available again. +if test "$no_create" != yes; then + ac_cs_success=: + ac_config_status_args= + test "$silent" = yes && + ac_config_status_args="$ac_config_status_args --quiet" + exec 5>/dev/null + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false + exec 5>>config.log + # Use ||, not &&, to avoid exiting from the if with $? = 1, which + # would make configure fail if this is the last instruction. + $ac_cs_success || as_fn_exit 1 +fi +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: +------------------------------------------------------------------------ + $PACKAGE_NAME $PACKAGE_VERSION: Automatic configuration OK. + + Compiler support: + + C99 var arrays: ................ ${has_var_arrays} + C99 lrintf: .................... ${ac_cv_func_lrintf} + Use alloca: .................... ${use_alloca} + + General configuration: + + Floating point support: ........ ${enable_float} + Fast float approximations: ..... ${enable_float_approx} + Fixed point debugging: ......... ${enable_fixed_point_debug} + Inline Assembly Optimizations: . ${inline_optimization} + External Assembly Optimizations: ${asm_optimization} + Intrinsics Optimizations: ...... ${intrinsics_support} + Run-time CPU detection: ........ ${rtcd_support} + Custom modes: .................. ${enable_custom_modes} + Assertion checking: ............ ${enable_assertions} + Hardening: ..................... ${enable_hardening} + Fuzzing: ....................... ${enable_fuzzing} + Check ASM: ..................... ${enable_check_asm} + + API documentation: ............. ${enable_doc} + Extra programs: ................ ${enable_extra_programs} +------------------------------------------------------------------------ + + Type \"make; make install\" to compile and install + Type \"make check\" to run the test suite +" >&5 +$as_echo "$as_me: +------------------------------------------------------------------------ + $PACKAGE_NAME $PACKAGE_VERSION: Automatic configuration OK. + + Compiler support: + + C99 var arrays: ................ ${has_var_arrays} + C99 lrintf: .................... ${ac_cv_func_lrintf} + Use alloca: .................... ${use_alloca} + + General configuration: + + Floating point support: ........ ${enable_float} + Fast float approximations: ..... ${enable_float_approx} + Fixed point debugging: ......... ${enable_fixed_point_debug} + Inline Assembly Optimizations: . ${inline_optimization} + External Assembly Optimizations: ${asm_optimization} + Intrinsics Optimizations: ...... ${intrinsics_support} + Run-time CPU detection: ........ ${rtcd_support} + Custom modes: .................. ${enable_custom_modes} + Assertion checking: ............ ${enable_assertions} + Hardening: ..................... ${enable_hardening} + Fuzzing: ....................... ${enable_fuzzing} + Check ASM: ..................... ${enable_check_asm} + + API documentation: ............. ${enable_doc} + Extra programs: ................ ${enable_extra_programs} +------------------------------------------------------------------------ + + Type \"make; make install\" to compile and install + Type \"make check\" to run the test suite +" >&6;} + diff --git a/components/opus/libopus/configure.ac b/components/opus/libopus/configure.ac new file mode 100644 index 0000000..18ece29 --- /dev/null +++ b/components/opus/libopus/configure.ac @@ -0,0 +1,933 @@ +dnl Process this file with autoconf to produce a configure script. -*-m4-*- + +dnl The package_version file will be automatically synced to the git revision +dnl by the update_version script when configured in the repository, but will +dnl remain constant in tarball releases unless it is manually edited. +m4_define([CURRENT_VERSION], + m4_esyscmd([ ./update_version 2>/dev/null || true + if test -e package_version; then + . ./package_version + printf "$PACKAGE_VERSION" + else + printf "unknown" + fi ])) + +AC_INIT([opus],[CURRENT_VERSION],[opus@xiph.org]) + +AC_CONFIG_SRCDIR(src/opus_encoder.c) +AC_CONFIG_MACRO_DIR([m4]) + +dnl enable silent rules on automake 1.11 and later +m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) + +# For libtool. +dnl Please update these for releases. +OPUS_LT_CURRENT=8 +OPUS_LT_REVISION=0 +OPUS_LT_AGE=8 + +AC_SUBST(OPUS_LT_CURRENT) +AC_SUBST(OPUS_LT_REVISION) +AC_SUBST(OPUS_LT_AGE) + +AM_INIT_AUTOMAKE([no-define]) +AM_MAINTAINER_MODE([enable]) + +AC_CANONICAL_HOST +AC_MINGW32 +AM_PROG_LIBTOOL +AM_PROG_CC_C_O + +AC_PROG_CC_C99 +AC_C_CONST +AC_C_INLINE + +AM_PROG_AS + +AC_DEFINE([OPUS_BUILD], [], [This is a build of OPUS]) + +#Use a hacked up version of autoconf's AC_C_RESTRICT because it's not +#strong enough a test to detect old buggy versions of GCC (e.g. 2.95.3) +#Note: Both this and the test for variable-size arrays below are also +# done by AC_PROG_CC_C99, but not thoroughly enough apparently. +AC_CACHE_CHECK([for C/C++ restrict keyword], ac_cv_c_restrict, + [ac_cv_c_restrict=no + # The order here caters to the fact that C++ does not require restrict. + for ac_kw in __restrict __restrict__ _Restrict restrict; do + AC_COMPILE_IFELSE([AC_LANG_PROGRAM( + [[typedef int * int_ptr; + int foo (int_ptr $ac_kw ip, int * $ac_kw baz[]) { + return ip[0]; + }]], + [[int s[1]; + int * $ac_kw t = s; + t[0] = 0; + return foo(t, (void *)0)]])], + [ac_cv_c_restrict=$ac_kw]) + test "$ac_cv_c_restrict" != no && break + done + ]) + +AH_VERBATIM([restrict], +[/* Define to the equivalent of the C99 'restrict' keyword, or to + nothing if this is not supported. Do not define if restrict is + supported directly. */ +#undef restrict +/* Work around a bug in Sun C++: it does not support _Restrict or + __restrict__, even though the corresponding Sun C compiler ends up with + "#define restrict _Restrict" or "#define restrict __restrict__" in the + previous line. Perhaps some future version of Sun C++ will work with + restrict; if so, hopefully it defines __RESTRICT like Sun C does. */ +#if defined __SUNPRO_CC && !defined __RESTRICT +# define _Restrict +# define __restrict__ +#endif]) + +case $ac_cv_c_restrict in + restrict) ;; + no) AC_DEFINE([restrict], []) ;; + *) AC_DEFINE_UNQUOTED([restrict], [$ac_cv_c_restrict]) ;; +esac + +AC_MSG_CHECKING(for C99 variable-size arrays) +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], + [[static int x; char a[++x]; a[sizeof a - 1] = 0; int N; return a[0];]])], + [ has_var_arrays=yes + use_alloca="no (using var arrays)" + AC_DEFINE([VAR_ARRAYS], [1], [Use C99 variable-size arrays]) + ],[ + has_var_arrays=no + ]) +AC_MSG_RESULT([$has_var_arrays]) + +AS_IF([test "$has_var_arrays" = "no"], + [ + AC_CHECK_HEADERS([alloca.h]) + AC_MSG_CHECKING(for alloca) + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], + [[int foo=10; int *array = alloca(foo);]])], + [ use_alloca=yes; + AC_DEFINE([USE_ALLOCA], [], [Make use of alloca]) + ],[ + use_alloca=no + ]) + AC_MSG_RESULT([$use_alloca]) + ]) + +LT_LIB_M + +AC_ARG_ENABLE([fixed-point], + [AS_HELP_STRING([--enable-fixed-point], + [compile without floating point (for machines without a fast enough FPU)])],, + [enable_fixed_point=no]) + +AS_IF([test "$enable_fixed_point" = "yes"],[ + enable_float="no" + AC_DEFINE([FIXED_POINT], [1], [Compile as fixed-point (for machines without a fast enough FPU)]) + PC_BUILD="fixed-point" +],[ + enable_float="yes"; + PC_BUILD="floating-point" +]) + +AM_CONDITIONAL([FIXED_POINT], [test "$enable_fixed_point" = "yes"]) + +AC_ARG_ENABLE([fixed-point-debug], + [AS_HELP_STRING([--enable-fixed-point-debug], [debug fixed-point implementation])],, + [enable_fixed_point_debug=no]) + +AS_IF([test "$enable_fixed_point_debug" = "yes"],[ + AC_DEFINE([FIXED_DEBUG], [1], [Debug fixed-point implementation]) +]) + +AC_ARG_ENABLE([float_api], + [AS_HELP_STRING([--disable-float-api], + [compile without the floating point API (for machines with no float library)])],, + [enable_float_api=yes]) + +AM_CONDITIONAL([DISABLE_FLOAT_API], [test "$enable_float_api" = "no"]) + +AS_IF([test "$enable_float_api" = "no"],[ + AC_DEFINE([DISABLE_FLOAT_API], [1], [Do not build the float API]) +]) + +AC_ARG_ENABLE([custom-modes], + [AS_HELP_STRING([--enable-custom-modes], [enable non-Opus modes, e.g. 44.1 kHz & 2^n frames])],, + [enable_custom_modes=no]) + +AS_IF([test "$enable_custom_modes" = "yes"],[ + AC_DEFINE([CUSTOM_MODES], [1], [Custom modes]) + PC_BUILD="$PC_BUILD, custom modes" +]) + +AM_CONDITIONAL([CUSTOM_MODES], [test "$enable_custom_modes" = "yes"]) + +has_float_approx=no +#case "$host_cpu" in +#i[[3456]]86 | x86_64 | powerpc64 | powerpc32 | ia64) +# has_float_approx=yes +# ;; +#esac + +AC_ARG_ENABLE([float-approx], + [AS_HELP_STRING([--enable-float-approx], [enable fast approximations for floating point])], + [if test "$enable_float_approx" = "yes"; then + AC_WARN([Floating point approximations are not supported on all platforms.]) + fi + ], + [enable_float_approx=$has_float_approx]) + +AS_IF([test "$enable_float_approx" = "yes"],[ + AC_DEFINE([FLOAT_APPROX], [1], [Float approximations]) +]) + +AC_ARG_ENABLE([asm], + [AS_HELP_STRING([--disable-asm], [Disable assembly optimizations])],, + [enable_asm=yes]) + +AC_ARG_ENABLE([rtcd], + [AS_HELP_STRING([--disable-rtcd], [Disable run-time CPU capabilities detection])],, + [enable_rtcd=yes]) + +AC_ARG_ENABLE([intrinsics], + [AS_HELP_STRING([--disable-intrinsics], [Disable intrinsics optimizations])],, + [enable_intrinsics=yes]) + +rtcd_support=no +cpu_arm=no + +AS_IF([test x"${enable_asm}" = x"yes"],[ + inline_optimization="No inline ASM for your platform, please send patches" + case $host_cpu in + arm*) + dnl Currently we only have asm for fixed-point + AS_IF([test "$enable_float" != "yes"],[ + cpu_arm=yes + AC_DEFINE([OPUS_ARM_ASM], [], [Make use of ARM asm optimization]) + AS_GCC_INLINE_ASSEMBLY( + [inline_optimization="ARM"], + [inline_optimization="disabled"] + ) + AS_ASM_ARM_EDSP([OPUS_ARM_INLINE_EDSP=1],[OPUS_ARM_INLINE_EDSP=0]) + AS_ASM_ARM_MEDIA([OPUS_ARM_INLINE_MEDIA=1], + [OPUS_ARM_INLINE_MEDIA=0]) + AS_ASM_ARM_NEON([OPUS_ARM_INLINE_NEON=1],[OPUS_ARM_INLINE_NEON=0]) + AS_IF([test x"$inline_optimization" = x"ARM"],[ + AM_CONDITIONAL([OPUS_ARM_INLINE_ASM],[true]) + AC_DEFINE([OPUS_ARM_INLINE_ASM], 1, + [Use generic ARMv4 inline asm optimizations]) + AS_IF([test x"$OPUS_ARM_INLINE_EDSP" = x"1"],[ + AC_DEFINE([OPUS_ARM_INLINE_EDSP], [1], + [Use ARMv5E inline asm optimizations]) + inline_optimization="$inline_optimization (EDSP)" + ]) + AS_IF([test x"$OPUS_ARM_INLINE_MEDIA" = x"1"],[ + AC_DEFINE([OPUS_ARM_INLINE_MEDIA], [1], + [Use ARMv6 inline asm optimizations]) + inline_optimization="$inline_optimization (Media)" + ]) + AS_IF([test x"$OPUS_ARM_INLINE_NEON" = x"1"],[ + AC_DEFINE([OPUS_ARM_INLINE_NEON], 1, + [Use ARM NEON inline asm optimizations]) + inline_optimization="$inline_optimization (NEON)" + ]) + ]) + dnl We need Perl to translate RVCT-syntax asm to gas syntax. + AC_CHECK_PROG([HAVE_PERL], perl, yes, no) + AS_IF([test x"$HAVE_PERL" = x"yes"],[ + AM_CONDITIONAL([OPUS_ARM_EXTERNAL_ASM],[true]) + asm_optimization="ARM" + AS_IF([test x"$OPUS_ARM_INLINE_EDSP" = x"1"], [ + OPUS_ARM_PRESUME_EDSP=1 + OPUS_ARM_MAY_HAVE_EDSP=1 + ], + [ + OPUS_ARM_PRESUME_EDSP=0 + OPUS_ARM_MAY_HAVE_EDSP=0 + ]) + AS_IF([test x"$OPUS_ARM_INLINE_MEDIA" = x"1"], [ + OPUS_ARM_PRESUME_MEDIA=1 + OPUS_ARM_MAY_HAVE_MEDIA=1 + ], + [ + OPUS_ARM_PRESUME_MEDIA=0 + OPUS_ARM_MAY_HAVE_MEDIA=0 + ]) + AS_IF([test x"$OPUS_ARM_INLINE_NEON" = x"1"], [ + OPUS_ARM_PRESUME_NEON=1 + OPUS_ARM_MAY_HAVE_NEON=1 + ], + [ + OPUS_ARM_PRESUME_NEON=0 + OPUS_ARM_MAY_HAVE_NEON=0 + ]) + AS_IF([test x"$enable_rtcd" = x"yes"],[ + AS_IF([test x"$OPUS_ARM_MAY_HAVE_EDSP" != x"1"],[ + AC_MSG_NOTICE( + [Trying to force-enable armv5e EDSP instructions...]) + AS_ASM_ARM_EDSP_FORCE([OPUS_ARM_MAY_HAVE_EDSP=1]) + ]) + AS_IF([test x"$OPUS_ARM_MAY_HAVE_MEDIA" != x"1"],[ + AC_MSG_NOTICE( + [Trying to force-enable ARMv6 media instructions...]) + AS_ASM_ARM_MEDIA_FORCE([OPUS_ARM_MAY_HAVE_MEDIA=1]) + ]) + AS_IF([test x"$OPUS_ARM_MAY_HAVE_NEON" != x"1"],[ + AC_MSG_NOTICE( + [Trying to force-enable NEON instructions...]) + AS_ASM_ARM_NEON_FORCE([OPUS_ARM_MAY_HAVE_NEON=1]) + ]) + ]) + rtcd_support= + AS_IF([test x"$OPUS_ARM_MAY_HAVE_EDSP" = x"1"],[ + AC_DEFINE(OPUS_ARM_MAY_HAVE_EDSP, 1, + [Define if assembler supports EDSP instructions]) + AS_IF([test x"$OPUS_ARM_PRESUME_EDSP" = x"1"],[ + AC_DEFINE(OPUS_ARM_PRESUME_EDSP, 1, + [Define if binary requires EDSP instruction support]) + asm_optimization="$asm_optimization (EDSP)" + ], + [rtcd_support="$rtcd_support (EDSP)"] + ) + ]) + AC_SUBST(OPUS_ARM_MAY_HAVE_EDSP) + AS_IF([test x"$OPUS_ARM_MAY_HAVE_MEDIA" = x"1"],[ + AC_DEFINE(OPUS_ARM_MAY_HAVE_MEDIA, 1, + [Define if assembler supports ARMv6 media instructions]) + AS_IF([test x"$OPUS_ARM_PRESUME_MEDIA" = x"1"],[ + AC_DEFINE(OPUS_ARM_PRESUME_MEDIA, 1, + [Define if binary requires ARMv6 media instruction support]) + asm_optimization="$asm_optimization (Media)" + ], + [rtcd_support="$rtcd_support (Media)"] + ) + ]) + AC_SUBST(OPUS_ARM_MAY_HAVE_MEDIA) + AS_IF([test x"$OPUS_ARM_MAY_HAVE_NEON" = x"1"],[ + AC_DEFINE(OPUS_ARM_MAY_HAVE_NEON, 1, + [Define if compiler supports NEON instructions]) + AS_IF([test x"$OPUS_ARM_PRESUME_NEON" = x"1"], [ + AC_DEFINE(OPUS_ARM_PRESUME_NEON, 1, + [Define if binary requires NEON instruction support]) + asm_optimization="$asm_optimization (NEON)" + ], + [rtcd_support="$rtcd_support (NEON)"] + ) + ]) + AC_SUBST(OPUS_ARM_MAY_HAVE_NEON) + dnl Make sure turning on RTCD gets us at least one + dnl instruction set. + AS_IF([test x"$rtcd_support" != x""], + [rtcd_support=ARM"$rtcd_support"], + [rtcd_support="no"] + ) + AC_MSG_CHECKING([for apple style tools]) + AC_PREPROC_IFELSE([AC_LANG_PROGRAM([ +#ifndef __APPLE__ +#error 1 +#endif],[])], + [AC_MSG_RESULT([yes]); ARM2GNU_PARAMS="--apple"], + [AC_MSG_RESULT([no]); ARM2GNU_PARAMS=""]) + AC_SUBST(ARM2GNU_PARAMS) + ], + [ + AC_MSG_WARN( + [*** ARM assembly requires perl -- disabling optimizations]) + asm_optimization="(missing perl dependency for ARM)" + ]) + ]) + ;; + esac +],[ + inline_optimization="disabled" + asm_optimization="disabled" +]) + +AM_CONDITIONAL([OPUS_ARM_INLINE_ASM], + [test x"${inline_optimization%% *}" = x"ARM"]) +AM_CONDITIONAL([OPUS_ARM_EXTERNAL_ASM], + [test x"${asm_optimization%% *}" = x"ARM"]) + +AM_CONDITIONAL([HAVE_SSE], [false]) +AM_CONDITIONAL([HAVE_SSE2], [false]) +AM_CONDITIONAL([HAVE_SSE4_1], [false]) +AM_CONDITIONAL([HAVE_AVX], [false]) + +m4_define([DEFAULT_X86_SSE_CFLAGS], [-msse]) +m4_define([DEFAULT_X86_SSE2_CFLAGS], [-msse2]) +m4_define([DEFAULT_X86_SSE4_1_CFLAGS], [-msse4.1]) +m4_define([DEFAULT_X86_AVX_CFLAGS], [-mavx]) +m4_define([DEFAULT_ARM_NEON_INTR_CFLAGS], [-mfpu=neon]) +# With GCC on ARM32 softfp architectures (e.g. Android, or older Ubuntu) you need to specify +# -mfloat-abi=softfp for -mfpu=neon to work. However, on ARM32 hardfp architectures (e.g. newer Ubuntu), +# this option will break things. + +# As a heuristic, if host matches arm*eabi* but not arm*hf*, it's probably soft-float. +m4_define([DEFAULT_ARM_NEON_SOFTFP_INTR_CFLAGS], [-mfpu=neon -mfloat-abi=softfp]) + +AS_CASE([$host], + [arm*hf*], [AS_VAR_SET([RESOLVED_DEFAULT_ARM_NEON_INTR_CFLAGS], "DEFAULT_ARM_NEON_INTR_CFLAGS")], + [arm*eabi*], [AS_VAR_SET([RESOLVED_DEFAULT_ARM_NEON_INTR_CFLAGS], "DEFAULT_ARM_NEON_SOFTFP_INTR_CFLAGS")], + [AS_VAR_SET([RESOLVED_DEFAULT_ARM_NEON_INTR_CFLAGS], "DEFAULT_ARM_NEON_INTR_CFLAGS")]) + +AC_ARG_VAR([X86_SSE_CFLAGS], [C compiler flags to compile SSE intrinsics @<:@default=]DEFAULT_X86_SSE_CFLAGS[@:>@]) +AC_ARG_VAR([X86_SSE2_CFLAGS], [C compiler flags to compile SSE2 intrinsics @<:@default=]DEFAULT_X86_SSE2_CFLAGS[@:>@]) +AC_ARG_VAR([X86_SSE4_1_CFLAGS], [C compiler flags to compile SSE4.1 intrinsics @<:@default=]DEFAULT_X86_SSE4_1_CFLAGS[@:>@]) +AC_ARG_VAR([X86_AVX_CFLAGS], [C compiler flags to compile AVX intrinsics @<:@default=]DEFAULT_X86_AVX_CFLAGS[@:>@]) +AC_ARG_VAR([ARM_NEON_INTR_CFLAGS], [C compiler flags to compile ARM NEON intrinsics @<:@default=]DEFAULT_ARM_NEON_INTR_CFLAGS / DEFAULT_ARM_NEON_SOFTFP_INTR_CFLAGS[@:>@]) + +AS_VAR_SET_IF([X86_SSE_CFLAGS], [], [AS_VAR_SET([X86_SSE_CFLAGS], "DEFAULT_X86_SSE_CFLAGS")]) +AS_VAR_SET_IF([X86_SSE2_CFLAGS], [], [AS_VAR_SET([X86_SSE2_CFLAGS], "DEFAULT_X86_SSE2_CFLAGS")]) +AS_VAR_SET_IF([X86_SSE4_1_CFLAGS], [], [AS_VAR_SET([X86_SSE4_1_CFLAGS], "DEFAULT_X86_SSE4_1_CFLAGS")]) +AS_VAR_SET_IF([X86_AVX_CFLAGS], [], [AS_VAR_SET([X86_AVX_CFLAGS], "DEFAULT_X86_AVX_CFLAGS")]) +AS_VAR_SET_IF([ARM_NEON_INTR_CFLAGS], [], [AS_VAR_SET([ARM_NEON_INTR_CFLAGS], ["$RESOLVED_DEFAULT_ARM_NEON_INTR_CFLAGS"])]) + +AC_DEFUN([OPUS_PATH_NE10], + [ + AC_ARG_WITH(NE10, + AC_HELP_STRING([--with-NE10=PFX],[Prefix where libNE10 is installed (optional)]), + NE10_prefix="$withval", NE10_prefix="") + AC_ARG_WITH(NE10-libraries, + AC_HELP_STRING([--with-NE10-libraries=DIR], + [Directory where libNE10 library is installed (optional)]), + NE10_libraries="$withval", NE10_libraries="") + AC_ARG_WITH(NE10-includes, + AC_HELP_STRING([--with-NE10-includes=DIR], + [Directory where libNE10 header files are installed (optional)]), + NE10_includes="$withval", NE10_includes="") + + if test "x$NE10_libraries" != "x" ; then + NE10_LIBS="-L$NE10_libraries" + elif test "x$NE10_prefix" = "xno" || test "x$NE10_prefix" = "xyes" ; then + NE10_LIBS="" + elif test "x$NE10_prefix" != "x" ; then + NE10_LIBS="-L$NE10_prefix/lib" + elif test "x$prefix" != "xNONE" ; then + NE10_LIBS="-L$prefix/lib" + fi + + if test "x$NE10_prefix" != "xno" ; then + NE10_LIBS="$NE10_LIBS -lNE10" + fi + + if test "x$NE10_includes" != "x" ; then + NE10_CFLAGS="-I$NE10_includes" + elif test "x$NE10_prefix" = "xno" || test "x$NE10_prefix" = "xyes" ; then + NE10_CFLAGS="" + elif test "x$NE10_prefix" != "x" ; then + NE10_CFLAGS="-I$NE10_prefix/include" + elif test "x$prefix" != "xNONE"; then + NE10_CFLAGS="-I$prefix/include" + fi + + AC_MSG_CHECKING(for NE10) + save_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS $NE10_CFLAGS" + save_LIBS="$LIBS"; LIBS="$LIBS $NE10_LIBS $LIBM" + AC_LINK_IFELSE( + [ + AC_LANG_PROGRAM( + [[#include + ]], + [[ + ne10_fft_cfg_float32_t cfg; + cfg = ne10_fft_alloc_c2c_float32_neon(480); + ]] + ) + ],[ + HAVE_ARM_NE10=1 + AC_MSG_RESULT([yes]) + ],[ + HAVE_ARM_NE10=0 + AC_MSG_RESULT([no]) + NE10_CFLAGS="" + NE10_LIBS="" + ] + ) + CFLAGS="$save_CFLAGS"; LIBS="$save_LIBS" + #Now we know if libNE10 is installed or not + AS_IF([test x"$HAVE_ARM_NE10" = x"1"], + [ + AC_DEFINE([HAVE_ARM_NE10], 1, [NE10 library is installed on host. Make sure it is on target!]) + AC_SUBST(HAVE_ARM_NE10) + AC_SUBST(NE10_CFLAGS) + AC_SUBST(NE10_LIBS) + ] + ) + ] +) + +AS_IF([test x"$enable_intrinsics" = x"yes"],[ + intrinsics_support="" + AS_CASE([$host_cpu], + [arm*|aarch64*], + [ + cpu_arm=yes + OPUS_CHECK_INTRINSICS( + [ARM Neon], + [$ARM_NEON_INTR_CFLAGS], + [OPUS_ARM_MAY_HAVE_NEON_INTR], + [OPUS_ARM_PRESUME_NEON_INTR], + [[#include + ]], + [[ + static float32x4_t A0, A1, SUMM; + SUMM = vmlaq_f32(SUMM, A0, A1); + return (int)vgetq_lane_f32(SUMM, 0); + ]] + ) + AS_IF([test x"$OPUS_ARM_MAY_HAVE_NEON_INTR" = x"1" && test x"$OPUS_ARM_PRESUME_NEON_INTR" != x"1"], + [ + OPUS_ARM_NEON_INTR_CFLAGS="$ARM_NEON_INTR_CFLAGS" + AC_SUBST([OPUS_ARM_NEON_INTR_CFLAGS]) + ] + ) + + AS_IF([test x"$OPUS_ARM_MAY_HAVE_NEON_INTR" = x"1"], + [ + AC_DEFINE([OPUS_ARM_MAY_HAVE_NEON_INTR], 1, [Compiler supports ARMv7/Aarch64 Neon Intrinsics]) + intrinsics_support="$intrinsics_support (NEON)" + + AS_IF([test x"$enable_rtcd" != x"no" && test x"$OPUS_ARM_PRESUME_NEON_INTR" != x"1"], + [AS_IF([test x"$rtcd_support" = x"no"], + [rtcd_support="ARM (NEON Intrinsics)"], + [rtcd_support="$rtcd_support (NEON Intrinsics)"])]) + + AS_IF([test x"$OPUS_ARM_PRESUME_NEON_INTR" = x"1"], + [AC_DEFINE([OPUS_ARM_PRESUME_NEON_INTR], 1, [Define if binary requires NEON intrinsics support])]) + + OPUS_PATH_NE10() + AS_IF([test x"$NE10_LIBS" != x""], + [ + intrinsics_support="$intrinsics_support (NE10)" + AS_IF([test x"enable_rtcd" != x"" \ + && test x"$OPUS_ARM_PRESUME_NEON_INTR" != x"1"], + [rtcd_support="$rtcd_support (NE10)"]) + ]) + + OPUS_CHECK_INTRINSICS( + [Aarch64 Neon], + [$ARM_NEON_INTR_CFLAGS], + [OPUS_ARM_MAY_HAVE_AARCH64_NEON_INTR], + [OPUS_ARM_PRESUME_AARCH64_NEON_INTR], + [[#include + ]], + [[ + static int32_t IN; + static int16_t OUT; + OUT = vqmovns_s32(IN); + ]] + ) + + AS_IF([test x"$OPUS_ARM_PRESUME_AARCH64_NEON_INTR" = x"1"], + [ + AC_DEFINE([OPUS_ARM_PRESUME_AARCH64_NEON_INTR], 1, [Define if binary requires Aarch64 Neon Intrinsics]) + intrinsics_support="$intrinsics_support (NEON [Aarch64])" + ]) + + AS_IF([test x"$intrinsics_support" = x""], + [intrinsics_support=no], + [intrinsics_support="ARM$intrinsics_support"]) + ], + [ + AC_MSG_WARN([Compiler does not support ARM intrinsics]) + intrinsics_support=no + ]) + ], + [i?86|x86_64], + [ + OPUS_CHECK_INTRINSICS( + [SSE], + [$X86_SSE_CFLAGS], + [OPUS_X86_MAY_HAVE_SSE], + [OPUS_X86_PRESUME_SSE], + [[#include + #include + ]], + [[ + __m128 mtest; + mtest = _mm_set1_ps((float)time(NULL)); + mtest = _mm_mul_ps(mtest, mtest); + return _mm_cvtss_si32(mtest); + ]] + ) + AS_IF([test x"$OPUS_X86_MAY_HAVE_SSE" = x"1" && test x"$OPUS_X86_PRESUME_SSE" != x"1"], + [ + OPUS_X86_SSE_CFLAGS="$X86_SSE_CFLAGS" + AC_SUBST([OPUS_X86_SSE_CFLAGS]) + ] + ) + OPUS_CHECK_INTRINSICS( + [SSE2], + [$X86_SSE2_CFLAGS], + [OPUS_X86_MAY_HAVE_SSE2], + [OPUS_X86_PRESUME_SSE2], + [[#include + #include + ]], + [[ + __m128i mtest; + mtest = _mm_set1_epi32((int)time(NULL)); + mtest = _mm_mul_epu32(mtest, mtest); + return _mm_cvtsi128_si32(mtest); + ]] + ) + AS_IF([test x"$OPUS_X86_MAY_HAVE_SSE2" = x"1" && test x"$OPUS_X86_PRESUME_SSE2" != x"1"], + [ + OPUS_X86_SSE2_CFLAGS="$X86_SSE2_CFLAGS" + AC_SUBST([OPUS_X86_SSE2_CFLAGS]) + ] + ) + OPUS_CHECK_INTRINSICS( + [SSE4.1], + [$X86_SSE4_1_CFLAGS], + [OPUS_X86_MAY_HAVE_SSE4_1], + [OPUS_X86_PRESUME_SSE4_1], + [[#include + #include + ]], + [[ + __m128i mtest; + mtest = _mm_set1_epi32((int)time(NULL)); + mtest = _mm_mul_epi32(mtest, mtest); + return _mm_cvtsi128_si32(mtest); + ]] + ) + AS_IF([test x"$OPUS_X86_MAY_HAVE_SSE4_1" = x"1" && test x"$OPUS_X86_PRESUME_SSE4_1" != x"1"], + [ + OPUS_X86_SSE4_1_CFLAGS="$X86_SSE4_1_CFLAGS" + AC_SUBST([OPUS_X86_SSE4_1_CFLAGS]) + ] + ) + OPUS_CHECK_INTRINSICS( + [AVX], + [$X86_AVX_CFLAGS], + [OPUS_X86_MAY_HAVE_AVX], + [OPUS_X86_PRESUME_AVX], + [[#include + #include + ]], + [[ + __m256 mtest; + mtest = _mm256_set1_ps((float)time(NULL)); + mtest = _mm256_addsub_ps(mtest, mtest); + return _mm_cvtss_si32(_mm256_extractf128_ps(mtest, 0)); + ]] + ) + AS_IF([test x"$OPUS_X86_MAY_HAVE_AVX" = x"1" && test x"$OPUS_X86_PRESUME_AVX" != x"1"], + [ + OPUS_X86_AVX_CFLAGS="$X86_AVX_CFLAGS" + AC_SUBST([OPUS_X86_AVX_CFLAGS]) + ] + ) + AS_IF([test x"$rtcd_support" = x"no"], [rtcd_support=""]) + AS_IF([test x"$OPUS_X86_MAY_HAVE_SSE" = x"1"], + [ + AC_DEFINE([OPUS_X86_MAY_HAVE_SSE], 1, [Compiler supports X86 SSE Intrinsics]) + intrinsics_support="$intrinsics_support SSE" + + AS_IF([test x"$OPUS_X86_PRESUME_SSE" = x"1"], + [AC_DEFINE([OPUS_X86_PRESUME_SSE], 1, [Define if binary requires SSE intrinsics support])], + [rtcd_support="$rtcd_support SSE"]) + ], + [ + AC_MSG_WARN([Compiler does not support SSE intrinsics]) + ]) + + AS_IF([test x"$OPUS_X86_MAY_HAVE_SSE2" = x"1"], + [ + AC_DEFINE([OPUS_X86_MAY_HAVE_SSE2], 1, [Compiler supports X86 SSE2 Intrinsics]) + intrinsics_support="$intrinsics_support SSE2" + + AS_IF([test x"$OPUS_X86_PRESUME_SSE2" = x"1"], + [AC_DEFINE([OPUS_X86_PRESUME_SSE2], 1, [Define if binary requires SSE2 intrinsics support])], + [rtcd_support="$rtcd_support SSE2"]) + ], + [ + AC_MSG_WARN([Compiler does not support SSE2 intrinsics]) + ]) + + AS_IF([test x"$OPUS_X86_MAY_HAVE_SSE4_1" = x"1"], + [ + AC_DEFINE([OPUS_X86_MAY_HAVE_SSE4_1], 1, [Compiler supports X86 SSE4.1 Intrinsics]) + intrinsics_support="$intrinsics_support SSE4.1" + + AS_IF([test x"$OPUS_X86_PRESUME_SSE4_1" = x"1"], + [AC_DEFINE([OPUS_X86_PRESUME_SSE4_1], 1, [Define if binary requires SSE4.1 intrinsics support])], + [rtcd_support="$rtcd_support SSE4.1"]) + ], + [ + AC_MSG_WARN([Compiler does not support SSE4.1 intrinsics]) + ]) + AS_IF([test x"$OPUS_X86_MAY_HAVE_AVX" = x"1"], + [ + AC_DEFINE([OPUS_X86_MAY_HAVE_AVX], 1, [Compiler supports X86 AVX Intrinsics]) + intrinsics_support="$intrinsics_support AVX" + + AS_IF([test x"$OPUS_X86_PRESUME_AVX" = x"1"], + [AC_DEFINE([OPUS_X86_PRESUME_AVX], 1, [Define if binary requires AVX intrinsics support])], + [rtcd_support="$rtcd_support AVX"]) + ], + [ + AC_MSG_WARN([Compiler does not support AVX intrinsics]) + ]) + + AS_IF([test x"$intrinsics_support" = x""], + [intrinsics_support=no], + [intrinsics_support="x86$intrinsics_support"] + ) + AS_IF([test x"$rtcd_support" = x""], + [rtcd_support=no], + [rtcd_support="x86$rtcd_support"], + ) + + AS_IF([test x"$enable_rtcd" = x"yes" && test x"$rtcd_support" != x""],[ + get_cpuid_by_asm="no" + AC_MSG_CHECKING([How to get X86 CPU Info]) + AC_LINK_IFELSE([AC_LANG_PROGRAM([[ + #include + ]],[[ + unsigned int CPUInfo0; + unsigned int CPUInfo1; + unsigned int CPUInfo2; + unsigned int CPUInfo3; + unsigned int InfoType; + __asm__ __volatile__ ( + "cpuid": + "=a" (CPUInfo0), + "=b" (CPUInfo1), + "=c" (CPUInfo2), + "=d" (CPUInfo3) : + "a" (InfoType), "c" (0) + ); + ]])], + [get_cpuid_by_asm="yes" + AC_MSG_RESULT([Inline Assembly]) + AC_DEFINE([CPU_INFO_BY_ASM], [1], [Get CPU Info by asm method])], + [AC_LINK_IFELSE([AC_LANG_PROGRAM([[ + #include + ]],[[ + unsigned int CPUInfo0; + unsigned int CPUInfo1; + unsigned int CPUInfo2; + unsigned int CPUInfo3; + unsigned int InfoType; + __get_cpuid(InfoType, &CPUInfo0, &CPUInfo1, &CPUInfo2, &CPUInfo3); + ]])], + [AC_MSG_RESULT([C method]) + AC_DEFINE([CPU_INFO_BY_C], [1], [Get CPU Info by c method])], + [AC_MSG_ERROR([no supported Get CPU Info method, please disable run-time CPU capabilities detection or intrinsics])])])]) + ], + [ + AC_MSG_WARN([No intrinsics support for your architecture]) + intrinsics_support="no" + ]) +], +[ + intrinsics_support="no" +]) + +AM_CONDITIONAL([CPU_ARM], [test "$cpu_arm" = "yes"]) +AM_CONDITIONAL([HAVE_ARM_NEON_INTR], + [test x"$OPUS_ARM_MAY_HAVE_NEON_INTR" = x"1"]) +AM_CONDITIONAL([HAVE_ARM_NE10], + [test x"$HAVE_ARM_NE10" = x"1"]) +AM_CONDITIONAL([HAVE_SSE], + [test x"$OPUS_X86_MAY_HAVE_SSE" = x"1"]) +AM_CONDITIONAL([HAVE_SSE2], + [test x"$OPUS_X86_MAY_HAVE_SSE2" = x"1"]) +AM_CONDITIONAL([HAVE_SSE4_1], + [test x"$OPUS_X86_MAY_HAVE_SSE4_1" = x"1"]) +AM_CONDITIONAL([HAVE_AVX], + [test x"$OPUS_X86_MAY_HAVE_AVX" = x"1"]) + +AS_IF([test x"$enable_rtcd" = x"yes"],[ + AS_IF([test x"$rtcd_support" != x"no"],[ + AC_DEFINE([OPUS_HAVE_RTCD], [1], + [Use run-time CPU capabilities detection]) + OPUS_HAVE_RTCD=1 + AC_SUBST(OPUS_HAVE_RTCD) + ]) +],[ + rtcd_support="disabled" +]) + +AC_ARG_ENABLE([assertions], + [AS_HELP_STRING([--enable-assertions],[enable additional software error checking])],, + [enable_assertions=no]) + +AS_IF([test "$enable_assertions" = "yes"], [ + AC_DEFINE([ENABLE_ASSERTIONS], [1], [Assertions]) +]) + +AC_ARG_ENABLE([hardening], + [AS_HELP_STRING([--disable-hardening],[disable run-time checks that are cheap and safe for use in production])],, + [enable_hardening=yes]) + +AS_IF([test "$enable_hardening" = "yes"], [ + AC_DEFINE([ENABLE_HARDENING], [1], [Hardening]) +]) + +AC_ARG_ENABLE([fuzzing], + [AS_HELP_STRING([--enable-fuzzing],[causes the encoder to make random decisions (do not use in production)])],, + [enable_fuzzing=no]) + +AS_IF([test "$enable_fuzzing" = "yes"], [ + AC_DEFINE([FUZZING], [1], [Fuzzing]) +]) + +AC_ARG_ENABLE([check-asm], + [AS_HELP_STRING([--enable-check-asm], + [enable bit-exactness checks between optimized and c implementations])],, + [enable_check_asm=no]) + +AS_IF([test "$enable_check_asm" = "yes"], [ + AC_DEFINE([OPUS_CHECK_ASM], [1], [Run bit-exactness checks between optimized and c implementations]) +]) + +AC_ARG_ENABLE([doc], + [AS_HELP_STRING([--disable-doc], [Do not build API documentation])],, + [enable_doc=yes]) + +AS_IF([test "$enable_doc" = "yes"], [ + AC_CHECK_PROG(HAVE_DOXYGEN, [doxygen], [yes], [no]) + AC_CHECK_PROG(HAVE_DOT, [dot], [yes], [no]) +],[ + HAVE_DOXYGEN=no +]) + +AM_CONDITIONAL([HAVE_DOXYGEN], [test "$HAVE_DOXYGEN" = "yes"]) + +AC_ARG_ENABLE([extra-programs], + [AS_HELP_STRING([--disable-extra-programs], [Do not build extra programs (demo and tests)])],, + [enable_extra_programs=yes]) + +AM_CONDITIONAL([EXTRA_PROGRAMS], [test "$enable_extra_programs" = "yes"]) + + +AC_ARG_ENABLE([rfc8251], + AS_HELP_STRING([--disable-rfc8251], [Disable bitstream fixes from RFC 8251]),, + [enable_rfc8251=yes]) + +AS_IF([test "$enable_rfc8251" = "no"], [ + AC_DEFINE([DISABLE_UPDATE_DRAFT], [1], [Disable bitstream fixes from RFC 8251]) +]) + + +saved_CFLAGS="$CFLAGS" +CFLAGS="$CFLAGS -fvisibility=hidden" +AC_MSG_CHECKING([if ${CC} supports -fvisibility=hidden]) +AC_COMPILE_IFELSE([AC_LANG_SOURCE([[char foo;]])], + [ AC_MSG_RESULT([yes]) ], + [ AC_MSG_RESULT([no]) + CFLAGS="$saved_CFLAGS" + ]) + +on_x86=no +case "$host_cpu" in +i[[3456]]86 | x86_64) + on_x86=yes + ;; +esac + +on_windows=no +case $host in +*cygwin*|*mingw*) + on_windows=yes + ;; +esac + +dnl Enable stack-protector-all only on x86 where it's well supported. +dnl on some platforms it causes crashes. Hopefully the OS's default's +dnl include this on platforms that work but have been missed here. +AC_ARG_ENABLE([stack-protector], + [AS_HELP_STRING([--disable-stack-protector],[Disable compiler stack hardening])],, + [ + AS_IF([test "$ac_cv_c_compiler_gnu" = "yes" && test "$on_x86" = "yes" && test "$on_windows" = "no"], + [enable_stack_protector=yes],[enable_stack_protector=no]) + ]) + +AS_IF([test "$enable_stack_protector" = "yes"], + [ + saved_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -fstack-protector-strong" + AC_MSG_CHECKING([if ${CC} supports -fstack-protector-strong]) + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[[char foo;]])], + [ AC_MSG_RESULT([yes]) ], + [ + AC_MSG_RESULT([no]) + enable_stack_protector=no + CFLAGS="$saved_CFLAGS" + ]) + ]) + +AS_IF([test x$ac_cv_c_compiler_gnu = xyes], + [AX_ADD_FORTIFY_SOURCE] +) + +CFLAGS="$CFLAGS -W" + +warn_CFLAGS="-Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes" +saved_CFLAGS="$CFLAGS" +CFLAGS="$CFLAGS $warn_CFLAGS" +AC_MSG_CHECKING([if ${CC} supports ${warn_CFLAGS}]) +AC_COMPILE_IFELSE([AC_LANG_SOURCE([[char foo;]])], + [ AC_MSG_RESULT([yes]) ], + [ AC_MSG_RESULT([no]) + CFLAGS="$saved_CFLAGS" + ]) + +saved_LIBS="$LIBS" +LIBS="$LIBS $LIBM" +AC_CHECK_FUNCS([lrintf]) +AC_CHECK_FUNCS([lrint]) +LIBS="$saved_LIBS" + +AC_CHECK_FUNCS([__malloc_hook]) + +AC_SUBST([PC_BUILD]) + +AC_CONFIG_FILES([ + Makefile + opus.pc + opus-uninstalled.pc + celt/arm/armopts.s + doc/Makefile + doc/Doxyfile +]) +AC_CONFIG_HEADERS([config.h]) + +AC_OUTPUT + +AC_MSG_NOTICE([ +------------------------------------------------------------------------ + $PACKAGE_NAME $PACKAGE_VERSION: Automatic configuration OK. + + Compiler support: + + C99 var arrays: ................ ${has_var_arrays} + C99 lrintf: .................... ${ac_cv_func_lrintf} + Use alloca: .................... ${use_alloca} + + General configuration: + + Floating point support: ........ ${enable_float} + Fast float approximations: ..... ${enable_float_approx} + Fixed point debugging: ......... ${enable_fixed_point_debug} + Inline Assembly Optimizations: . ${inline_optimization} + External Assembly Optimizations: ${asm_optimization} + Intrinsics Optimizations: ...... ${intrinsics_support} + Run-time CPU detection: ........ ${rtcd_support} + Custom modes: .................. ${enable_custom_modes} + Assertion checking: ............ ${enable_assertions} + Hardening: ..................... ${enable_hardening} + Fuzzing: ....................... ${enable_fuzzing} + Check ASM: ..................... ${enable_check_asm} + + API documentation: ............. ${enable_doc} + Extra programs: ................ ${enable_extra_programs} +------------------------------------------------------------------------ + + Type "make; make install" to compile and install + Type "make check" to run the test suite +]) + diff --git a/components/opus/libopus/depcomp b/components/opus/libopus/depcomp new file mode 100644 index 0000000..b39f98f --- /dev/null +++ b/components/opus/libopus/depcomp @@ -0,0 +1,791 @@ +#! /bin/sh +# depcomp - compile a program generating dependencies as side-effects + +scriptversion=2016-01-11.22; # UTC + +# Copyright (C) 1999-2017 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# Originally written by Alexandre Oliva . + +case $1 in + '') + echo "$0: No command. Try '$0 --help' for more information." 1>&2 + exit 1; + ;; + -h | --h*) + cat <<\EOF +Usage: depcomp [--help] [--version] PROGRAM [ARGS] + +Run PROGRAMS ARGS to compile a file, generating dependencies +as side-effects. + +Environment variables: + depmode Dependency tracking mode. + source Source file read by 'PROGRAMS ARGS'. + object Object file output by 'PROGRAMS ARGS'. + DEPDIR directory where to store dependencies. + depfile Dependency file to output. + tmpdepfile Temporary file to use when outputting dependencies. + libtool Whether libtool is used (yes/no). + +Report bugs to . +EOF + exit $? + ;; + -v | --v*) + echo "depcomp $scriptversion" + exit $? + ;; +esac + +# Get the directory component of the given path, and save it in the +# global variables '$dir'. Note that this directory component will +# be either empty or ending with a '/' character. This is deliberate. +set_dir_from () +{ + case $1 in + */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;; + *) dir=;; + esac +} + +# Get the suffix-stripped basename of the given path, and save it the +# global variable '$base'. +set_base_from () +{ + base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'` +} + +# If no dependency file was actually created by the compiler invocation, +# we still have to create a dummy depfile, to avoid errors with the +# Makefile "include basename.Plo" scheme. +make_dummy_depfile () +{ + echo "#dummy" > "$depfile" +} + +# Factor out some common post-processing of the generated depfile. +# Requires the auxiliary global variable '$tmpdepfile' to be set. +aix_post_process_depfile () +{ + # If the compiler actually managed to produce a dependency file, + # post-process it. + if test -f "$tmpdepfile"; then + # Each line is of the form 'foo.o: dependency.h'. + # Do two passes, one to just change these to + # $object: dependency.h + # and one to simply output + # dependency.h: + # which is needed to avoid the deleted-header problem. + { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile" + sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile" + } > "$depfile" + rm -f "$tmpdepfile" + else + make_dummy_depfile + fi +} + +# A tabulation character. +tab=' ' +# A newline character. +nl=' +' +# Character ranges might be problematic outside the C locale. +# These definitions help. +upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ +lower=abcdefghijklmnopqrstuvwxyz +digits=0123456789 +alpha=${upper}${lower} + +if test -z "$depmode" || test -z "$source" || test -z "$object"; then + echo "depcomp: Variables source, object and depmode must be set" 1>&2 + exit 1 +fi + +# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. +depfile=${depfile-`echo "$object" | + sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} +tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} + +rm -f "$tmpdepfile" + +# Avoid interferences from the environment. +gccflag= dashmflag= + +# Some modes work just like other modes, but use different flags. We +# parameterize here, but still list the modes in the big case below, +# to make depend.m4 easier to write. Note that we *cannot* use a case +# here, because this file can only contain one case statement. +if test "$depmode" = hp; then + # HP compiler uses -M and no extra arg. + gccflag=-M + depmode=gcc +fi + +if test "$depmode" = dashXmstdout; then + # This is just like dashmstdout with a different argument. + dashmflag=-xM + depmode=dashmstdout +fi + +cygpath_u="cygpath -u -f -" +if test "$depmode" = msvcmsys; then + # This is just like msvisualcpp but w/o cygpath translation. + # Just convert the backslash-escaped backslashes to single forward + # slashes to satisfy depend.m4 + cygpath_u='sed s,\\\\,/,g' + depmode=msvisualcpp +fi + +if test "$depmode" = msvc7msys; then + # This is just like msvc7 but w/o cygpath translation. + # Just convert the backslash-escaped backslashes to single forward + # slashes to satisfy depend.m4 + cygpath_u='sed s,\\\\,/,g' + depmode=msvc7 +fi + +if test "$depmode" = xlc; then + # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information. + gccflag=-qmakedep=gcc,-MF + depmode=gcc +fi + +case "$depmode" in +gcc3) +## gcc 3 implements dependency tracking that does exactly what +## we want. Yay! Note: for some reason libtool 1.4 doesn't like +## it if -MD -MP comes after the -MF stuff. Hmm. +## Unfortunately, FreeBSD c89 acceptance of flags depends upon +## the command line argument order; so add the flags where they +## appear in depend2.am. Note that the slowdown incurred here +## affects only configure: in makefiles, %FASTDEP% shortcuts this. + for arg + do + case $arg in + -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; + *) set fnord "$@" "$arg" ;; + esac + shift # fnord + shift # $arg + done + "$@" + stat=$? + if test $stat -ne 0; then + rm -f "$tmpdepfile" + exit $stat + fi + mv "$tmpdepfile" "$depfile" + ;; + +gcc) +## Note that this doesn't just cater to obsosete pre-3.x GCC compilers. +## but also to in-use compilers like IMB xlc/xlC and the HP C compiler. +## (see the conditional assignment to $gccflag above). +## There are various ways to get dependency output from gcc. Here's +## why we pick this rather obscure method: +## - Don't want to use -MD because we'd like the dependencies to end +## up in a subdir. Having to rename by hand is ugly. +## (We might end up doing this anyway to support other compilers.) +## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like +## -MM, not -M (despite what the docs say). Also, it might not be +## supported by the other compilers which use the 'gcc' depmode. +## - Using -M directly means running the compiler twice (even worse +## than renaming). + if test -z "$gccflag"; then + gccflag=-MD, + fi + "$@" -Wp,"$gccflag$tmpdepfile" + stat=$? + if test $stat -ne 0; then + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + echo "$object : \\" > "$depfile" + # The second -e expression handles DOS-style file names with drive + # letters. + sed -e 's/^[^:]*: / /' \ + -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" +## This next piece of magic avoids the "deleted header file" problem. +## The problem is that when a header file which appears in a .P file +## is deleted, the dependency causes make to die (because there is +## typically no way to rebuild the header). We avoid this by adding +## dummy dependencies for each header file. Too bad gcc doesn't do +## this for us directly. +## Some versions of gcc put a space before the ':'. On the theory +## that the space means something, we add a space to the output as +## well. hp depmode also adds that space, but also prefixes the VPATH +## to the object. Take care to not repeat it in the output. +## Some versions of the HPUX 10.20 sed can't process this invocation +## correctly. Breaking it into two sed invocations is a workaround. + tr ' ' "$nl" < "$tmpdepfile" \ + | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \ + | sed -e 's/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +hp) + # This case exists only to let depend.m4 do its work. It works by + # looking at the text of this script. This case will never be run, + # since it is checked for above. + exit 1 + ;; + +sgi) + if test "$libtool" = yes; then + "$@" "-Wp,-MDupdate,$tmpdepfile" + else + "$@" -MDupdate "$tmpdepfile" + fi + stat=$? + if test $stat -ne 0; then + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + + if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files + echo "$object : \\" > "$depfile" + # Clip off the initial element (the dependent). Don't try to be + # clever and replace this with sed code, as IRIX sed won't handle + # lines with more than a fixed number of characters (4096 in + # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; + # the IRIX cc adds comments like '#:fec' to the end of the + # dependency line. + tr ' ' "$nl" < "$tmpdepfile" \ + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \ + | tr "$nl" ' ' >> "$depfile" + echo >> "$depfile" + # The second pass generates a dummy entry for each header file. + tr ' ' "$nl" < "$tmpdepfile" \ + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ + >> "$depfile" + else + make_dummy_depfile + fi + rm -f "$tmpdepfile" + ;; + +xlc) + # This case exists only to let depend.m4 do its work. It works by + # looking at the text of this script. This case will never be run, + # since it is checked for above. + exit 1 + ;; + +aix) + # The C for AIX Compiler uses -M and outputs the dependencies + # in a .u file. In older versions, this file always lives in the + # current directory. Also, the AIX compiler puts '$object:' at the + # start of each line; $object doesn't have directory information. + # Version 6 uses the directory in both cases. + set_dir_from "$object" + set_base_from "$object" + if test "$libtool" = yes; then + tmpdepfile1=$dir$base.u + tmpdepfile2=$base.u + tmpdepfile3=$dir.libs/$base.u + "$@" -Wc,-M + else + tmpdepfile1=$dir$base.u + tmpdepfile2=$dir$base.u + tmpdepfile3=$dir$base.u + "$@" -M + fi + stat=$? + if test $stat -ne 0; then + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" + exit $stat + fi + + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" + do + test -f "$tmpdepfile" && break + done + aix_post_process_depfile + ;; + +tcc) + # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26 + # FIXME: That version still under development at the moment of writing. + # Make that this statement remains true also for stable, released + # versions. + # It will wrap lines (doesn't matter whether long or short) with a + # trailing '\', as in: + # + # foo.o : \ + # foo.c \ + # foo.h \ + # + # It will put a trailing '\' even on the last line, and will use leading + # spaces rather than leading tabs (at least since its commit 0394caf7 + # "Emit spaces for -MD"). + "$@" -MD -MF "$tmpdepfile" + stat=$? + if test $stat -ne 0; then + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'. + # We have to change lines of the first kind to '$object: \'. + sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile" + # And for each line of the second kind, we have to emit a 'dep.h:' + # dummy dependency, to avoid the deleted-header problem. + sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile" + rm -f "$tmpdepfile" + ;; + +## The order of this option in the case statement is important, since the +## shell code in configure will try each of these formats in the order +## listed in this file. A plain '-MD' option would be understood by many +## compilers, so we must ensure this comes after the gcc and icc options. +pgcc) + # Portland's C compiler understands '-MD'. + # Will always output deps to 'file.d' where file is the root name of the + # source file under compilation, even if file resides in a subdirectory. + # The object file name does not affect the name of the '.d' file. + # pgcc 10.2 will output + # foo.o: sub/foo.c sub/foo.h + # and will wrap long lines using '\' : + # foo.o: sub/foo.c ... \ + # sub/foo.h ... \ + # ... + set_dir_from "$object" + # Use the source, not the object, to determine the base name, since + # that's sadly what pgcc will do too. + set_base_from "$source" + tmpdepfile=$base.d + + # For projects that build the same source file twice into different object + # files, the pgcc approach of using the *source* file root name can cause + # problems in parallel builds. Use a locking strategy to avoid stomping on + # the same $tmpdepfile. + lockdir=$base.d-lock + trap " + echo '$0: caught signal, cleaning up...' >&2 + rmdir '$lockdir' + exit 1 + " 1 2 13 15 + numtries=100 + i=$numtries + while test $i -gt 0; do + # mkdir is a portable test-and-set. + if mkdir "$lockdir" 2>/dev/null; then + # This process acquired the lock. + "$@" -MD + stat=$? + # Release the lock. + rmdir "$lockdir" + break + else + # If the lock is being held by a different process, wait + # until the winning process is done or we timeout. + while test -d "$lockdir" && test $i -gt 0; do + sleep 1 + i=`expr $i - 1` + done + fi + i=`expr $i - 1` + done + trap - 1 2 13 15 + if test $i -le 0; then + echo "$0: failed to acquire lock after $numtries attempts" >&2 + echo "$0: check lockdir '$lockdir'" >&2 + exit 1 + fi + + if test $stat -ne 0; then + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + # Each line is of the form `foo.o: dependent.h', + # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. + # Do two passes, one to just change these to + # `$object: dependent.h' and one to simply `dependent.h:'. + sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" + # Some versions of the HPUX 10.20 sed can't process this invocation + # correctly. Breaking it into two sed invocations is a workaround. + sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \ + | sed -e 's/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +hp2) + # The "hp" stanza above does not work with aCC (C++) and HP's ia64 + # compilers, which have integrated preprocessors. The correct option + # to use with these is +Maked; it writes dependencies to a file named + # 'foo.d', which lands next to the object file, wherever that + # happens to be. + # Much of this is similar to the tru64 case; see comments there. + set_dir_from "$object" + set_base_from "$object" + if test "$libtool" = yes; then + tmpdepfile1=$dir$base.d + tmpdepfile2=$dir.libs/$base.d + "$@" -Wc,+Maked + else + tmpdepfile1=$dir$base.d + tmpdepfile2=$dir$base.d + "$@" +Maked + fi + stat=$? + if test $stat -ne 0; then + rm -f "$tmpdepfile1" "$tmpdepfile2" + exit $stat + fi + + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" + do + test -f "$tmpdepfile" && break + done + if test -f "$tmpdepfile"; then + sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile" + # Add 'dependent.h:' lines. + sed -ne '2,${ + s/^ *// + s/ \\*$// + s/$/:/ + p + }' "$tmpdepfile" >> "$depfile" + else + make_dummy_depfile + fi + rm -f "$tmpdepfile" "$tmpdepfile2" + ;; + +tru64) + # The Tru64 compiler uses -MD to generate dependencies as a side + # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'. + # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put + # dependencies in 'foo.d' instead, so we check for that too. + # Subdirectories are respected. + set_dir_from "$object" + set_base_from "$object" + + if test "$libtool" = yes; then + # Libtool generates 2 separate objects for the 2 libraries. These + # two compilations output dependencies in $dir.libs/$base.o.d and + # in $dir$base.o.d. We have to check for both files, because + # one of the two compilations can be disabled. We should prefer + # $dir$base.o.d over $dir.libs/$base.o.d because the latter is + # automatically cleaned when .libs/ is deleted, while ignoring + # the former would cause a distcleancheck panic. + tmpdepfile1=$dir$base.o.d # libtool 1.5 + tmpdepfile2=$dir.libs/$base.o.d # Likewise. + tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504 + "$@" -Wc,-MD + else + tmpdepfile1=$dir$base.d + tmpdepfile2=$dir$base.d + tmpdepfile3=$dir$base.d + "$@" -MD + fi + + stat=$? + if test $stat -ne 0; then + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" + exit $stat + fi + + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" + do + test -f "$tmpdepfile" && break + done + # Same post-processing that is required for AIX mode. + aix_post_process_depfile + ;; + +msvc7) + if test "$libtool" = yes; then + showIncludes=-Wc,-showIncludes + else + showIncludes=-showIncludes + fi + "$@" $showIncludes > "$tmpdepfile" + stat=$? + grep -v '^Note: including file: ' "$tmpdepfile" + if test $stat -ne 0; then + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + echo "$object : \\" > "$depfile" + # The first sed program below extracts the file names and escapes + # backslashes for cygpath. The second sed program outputs the file + # name when reading, but also accumulates all include files in the + # hold buffer in order to output them again at the end. This only + # works with sed implementations that can handle large buffers. + sed < "$tmpdepfile" -n ' +/^Note: including file: *\(.*\)/ { + s//\1/ + s/\\/\\\\/g + p +}' | $cygpath_u | sort -u | sed -n ' +s/ /\\ /g +s/\(.*\)/'"$tab"'\1 \\/p +s/.\(.*\) \\/\1:/ +H +$ { + s/.*/'"$tab"'/ + G + p +}' >> "$depfile" + echo >> "$depfile" # make sure the fragment doesn't end with a backslash + rm -f "$tmpdepfile" + ;; + +msvc7msys) + # This case exists only to let depend.m4 do its work. It works by + # looking at the text of this script. This case will never be run, + # since it is checked for above. + exit 1 + ;; + +#nosideeffect) + # This comment above is used by automake to tell side-effect + # dependency tracking mechanisms from slower ones. + +dashmstdout) + # Important note: in order to support this mode, a compiler *must* + # always write the preprocessed file to stdout, regardless of -o. + "$@" || exit $? + + # Remove the call to Libtool. + if test "$libtool" = yes; then + while test "X$1" != 'X--mode=compile'; do + shift + done + shift + fi + + # Remove '-o $object'. + IFS=" " + for arg + do + case $arg in + -o) + shift + ;; + $object) + shift + ;; + *) + set fnord "$@" "$arg" + shift # fnord + shift # $arg + ;; + esac + done + + test -z "$dashmflag" && dashmflag=-M + # Require at least two characters before searching for ':' + # in the target name. This is to cope with DOS-style filenames: + # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise. + "$@" $dashmflag | + sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile" + rm -f "$depfile" + cat < "$tmpdepfile" > "$depfile" + # Some versions of the HPUX 10.20 sed can't process this sed invocation + # correctly. Breaking it into two sed invocations is a workaround. + tr ' ' "$nl" < "$tmpdepfile" \ + | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ + | sed -e 's/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +dashXmstdout) + # This case only exists to satisfy depend.m4. It is never actually + # run, as this mode is specially recognized in the preamble. + exit 1 + ;; + +makedepend) + "$@" || exit $? + # Remove any Libtool call + if test "$libtool" = yes; then + while test "X$1" != 'X--mode=compile'; do + shift + done + shift + fi + # X makedepend + shift + cleared=no eat=no + for arg + do + case $cleared in + no) + set ""; shift + cleared=yes ;; + esac + if test $eat = yes; then + eat=no + continue + fi + case "$arg" in + -D*|-I*) + set fnord "$@" "$arg"; shift ;; + # Strip any option that makedepend may not understand. Remove + # the object too, otherwise makedepend will parse it as a source file. + -arch) + eat=yes ;; + -*|$object) + ;; + *) + set fnord "$@" "$arg"; shift ;; + esac + done + obj_suffix=`echo "$object" | sed 's/^.*\././'` + touch "$tmpdepfile" + ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" + rm -f "$depfile" + # makedepend may prepend the VPATH from the source file name to the object. + # No need to regex-escape $object, excess matching of '.' is harmless. + sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile" + # Some versions of the HPUX 10.20 sed can't process the last invocation + # correctly. Breaking it into two sed invocations is a workaround. + sed '1,2d' "$tmpdepfile" \ + | tr ' ' "$nl" \ + | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ + | sed -e 's/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" "$tmpdepfile".bak + ;; + +cpp) + # Important note: in order to support this mode, a compiler *must* + # always write the preprocessed file to stdout. + "$@" || exit $? + + # Remove the call to Libtool. + if test "$libtool" = yes; then + while test "X$1" != 'X--mode=compile'; do + shift + done + shift + fi + + # Remove '-o $object'. + IFS=" " + for arg + do + case $arg in + -o) + shift + ;; + $object) + shift + ;; + *) + set fnord "$@" "$arg" + shift # fnord + shift # $arg + ;; + esac + done + + "$@" -E \ + | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ + -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ + | sed '$ s: \\$::' > "$tmpdepfile" + rm -f "$depfile" + echo "$object : \\" > "$depfile" + cat < "$tmpdepfile" >> "$depfile" + sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +msvisualcpp) + # Important note: in order to support this mode, a compiler *must* + # always write the preprocessed file to stdout. + "$@" || exit $? + + # Remove the call to Libtool. + if test "$libtool" = yes; then + while test "X$1" != 'X--mode=compile'; do + shift + done + shift + fi + + IFS=" " + for arg + do + case "$arg" in + -o) + shift + ;; + $object) + shift + ;; + "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") + set fnord "$@" + shift + shift + ;; + *) + set fnord "$@" "$arg" + shift + shift + ;; + esac + done + "$@" -E 2>/dev/null | + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" + rm -f "$depfile" + echo "$object : \\" > "$depfile" + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile" + echo "$tab" >> "$depfile" + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +msvcmsys) + # This case exists only to let depend.m4 do its work. It works by + # looking at the text of this script. This case will never be run, + # since it is checked for above. + exit 1 + ;; + +none) + exec "$@" + ;; + +*) + echo "Unknown depmode $depmode" 1>&2 + exit 1 + ;; +esac + +exit 0 + +# Local Variables: +# mode: shell-script +# sh-indentation: 2 +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-time-zone: "UTC0" +# time-stamp-end: "; # UTC" +# End: diff --git a/components/opus/libopus/doc/Doxyfile.in b/components/opus/libopus/doc/Doxyfile.in new file mode 100644 index 0000000..36eee0b --- /dev/null +++ b/components/opus/libopus/doc/Doxyfile.in @@ -0,0 +1,335 @@ +# Doxyfile 1.8.10 + +# This file describes the settings to be used by the documentation system +# doxygen (www.doxygen.org) for a project. +# +# All text after a double hash (##) is considered a comment and is placed in +# front of the TAG it is preceding. +# +# All text after a single hash (#) is considered a comment and will be ignored. +# The format is: +# TAG = value [value, ...] +# For lists, items can also be appended using: +# TAG += value [value, ...] +# Values that contain spaces should be placed between quotes (\" \"). + +# Only non-default options are included below to improve portability +# between doxygen versions. +# +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- + +# The PROJECT_NAME tag is a single word (or a sequence of words surrounded by +# double-quotes, unless you are using Doxywizard) that should identify the +# project for which the documentation is generated. This name is used in the +# title of most generated pages and in a few other places. +# The default value is: My Project. + +PROJECT_NAME = Opus + +# The PROJECT_NUMBER tag can be used to enter a project or revision number. This +# could be handy for archiving the generated documentation or if some version +# control system is used. + +PROJECT_NUMBER = @VERSION@ + +# Using the PROJECT_BRIEF tag one can provide an optional one line description +# for a project that appears at the top of each page and should give viewer a +# quick idea about the purpose of the project. Keep the description short. + +PROJECT_BRIEF = "Opus audio codec (RFC 6716): API and operations manual" + +# With the PROJECT_LOGO tag one can specify a logo or an icon that is included +# in the documentation. The maximum height of the logo should not exceed 55 +# pixels and the maximum width should not exceed 200 pixels. Doxygen will copy +# the logo to the output directory. + +PROJECT_LOGO = + +# If the FULL_PATH_NAMES tag is set to YES, doxygen will prepend the full path +# before files name in the file list and in the header files. If set to NO the +# shortest path that makes the file name unique will be used +# The default value is: YES. + +FULL_PATH_NAMES = NO + +# If the JAVADOC_AUTOBRIEF tag is set to YES then doxygen will interpret the +# first line (until the first dot) of a Javadoc-style comment as the brief +# description. If set to NO, the Javadoc-style will behave just like regular Qt- +# style comments (thus requiring an explicit @brief command for a brief +# description.) +# The default value is: NO. + +JAVADOC_AUTOBRIEF = YES + +# The TAB_SIZE tag can be used to set the number of spaces in a tab. Doxygen +# uses this value to replace tabs by spaces in code fragments. +# Minimum value: 1, maximum value: 16, default value: 4. + +TAB_SIZE = 8 + +# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources +# only. Doxygen will then generate output that is more tailored for C. For +# instance, some of the names that are used will be different. The list of all +# members will be omitted, etc. +# The default value is: NO. + +OPTIMIZE_OUTPUT_FOR_C = YES + +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- + +# If the EXTRACT_ALL tag is set to YES, doxygen will assume all entities in +# documentation are documented, even if no documentation was available. Private +# class members and static file members will be hidden unless the +# EXTRACT_PRIVATE respectively EXTRACT_STATIC tags are set to YES. +# Note: This will also disable the warnings about undocumented members that are +# normally produced when WARNINGS is set to YES. +# The default value is: NO. + +EXTRACT_ALL = YES + +# If the EXTRACT_PRIVATE tag is set to YES, all private members of a class will +# be included in the documentation. +# The default value is: NO. + +EXTRACT_PRIVATE = NO + +# If the CASE_SENSE_NAMES tag is set to NO then doxygen will only generate file +# names in lower-case letters. If set to YES, upper-case letters are also +# allowed. This is useful if you have classes or files whose names only differ +# in case and if your file system supports case sensitive file names. Windows +# and Mac users are advised to set this option to NO. +# The default value is: system dependent. + +CASE_SENSE_NAMES = YES + +# The ENABLED_SECTIONS tag can be used to enable conditional documentation +# sections, marked by \if ... \endif and \cond +# ... \endcond blocks. + +ENABLED_SECTIONS = + +#--------------------------------------------------------------------------- +# Configuration options related to warning and progress messages +#--------------------------------------------------------------------------- + +# The QUIET tag can be used to turn on/off the messages that are generated to +# standard output by doxygen. If QUIET is set to YES this implies that the +# messages are off. +# The default value is: NO. + +QUIET = YES + +# The WARNINGS tag can be used to turn on/off the warning messages that are +# generated to standard error (stderr) by doxygen. If WARNINGS is set to YES +# this implies that the warnings are on. +# +# Tip: Turn warnings on while writing the documentation. +# The default value is: YES. + +WARNINGS = YES + +#--------------------------------------------------------------------------- +# Configuration options related to the input files +#--------------------------------------------------------------------------- + +# The INPUT tag is used to specify the files and/or directories that contain +# documented source files. You may enter file names like myfile.cpp or +# directories like /usr/src/myproject. Separate the files or directories with +# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING +# Note: If this tag is empty the current directory is searched. + +INPUT = @top_srcdir@/include/opus.h \ + @top_srcdir@/include/opus_types.h \ + @top_srcdir@/include/opus_defines.h \ + @top_srcdir@/include/opus_multistream.h \ + @top_srcdir@/include/opus_custom.h + +# The EXCLUDE tag can be used to specify files and/or directories that should be +# excluded from the INPUT source files. This way you can easily exclude a +# subdirectory from a directory tree whose root is specified with the INPUT tag. +# +# Note that relative paths are relative to the directory from which doxygen is +# run. + +EXCLUDE = + +#--------------------------------------------------------------------------- +# Configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- + +# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index of all +# compounds will be generated. Enable this if the project contains a lot of +# classes, structs, unions or interfaces. +# The default value is: YES. + +ALPHABETICAL_INDEX = NO + +#--------------------------------------------------------------------------- +# Configuration options related to the HTML output +#--------------------------------------------------------------------------- + +# The HTML_HEADER tag can be used to specify a user-defined HTML header file for +# each generated HTML page. If the tag is left blank doxygen will generate a +# standard header. +# +# To get valid HTML the header file that includes any scripts and style sheets +# that doxygen needs, which is dependent on the configuration options used (e.g. +# the setting GENERATE_TREEVIEW). It is highly recommended to start with a +# default header using +# doxygen -w html new_header.html new_footer.html new_stylesheet.css +# YourConfigFile +# and then modify the file new_header.html. See also section "Doxygen usage" +# for information on how to generate the default header that doxygen normally +# uses. +# Note: The header is subject to change so you typically have to regenerate the +# default header when upgrading to a newer version of doxygen. For a description +# of the possible markers and block names see the documentation. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_HEADER = @top_srcdir@/doc/header.html + +# The HTML_FOOTER tag can be used to specify a user-defined HTML footer for each +# generated HTML page. If the tag is left blank doxygen will generate a standard +# footer. See HTML_HEADER for more information on how to generate a default +# footer and what special commands can be used inside the footer. See also +# section "Doxygen usage" for information on how to generate the default footer +# that doxygen normally uses. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_FOOTER = @top_srcdir@/doc/footer.html + +# The HTML_STYLESHEET tag can be used to specify a user-defined cascading style +# sheet that is used by each HTML page. It can be used to fine-tune the look of +# the HTML output. If left blank doxygen will generate a default style sheet. +# See also section "Doxygen usage" for information on how to generate the style +# sheet that doxygen normally uses. +# Note: It is recommended to use HTML_EXTRA_STYLESHEET instead of this tag, as +# it is more robust and this tag (HTML_STYLESHEET) will in the future become +# obsolete. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_STYLESHEET = @top_srcdir@/doc/customdoxygen.css + +# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or +# other source files which should be copied to the HTML output directory. Note +# that these files will be copied to the base HTML output directory. Use the +# $relpath^ marker in the HTML_HEADER and/or HTML_FOOTER files to load these +# files. In the HTML_STYLESHEET file, use the file name only. Also note that the +# files will be copied as-is; there are no commands or markers available. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_EXTRA_FILES = @top_srcdir@/doc/opus_logo.svg + +# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of the colors +# in the HTML output. For a value of 0 the output will use grayscales only. A +# value of 255 will produce the most vivid colors. +# Minimum value: 0, maximum value: 255, default value: 100. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_COLORSTYLE_SAT = 0 + +# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML +# page will contain the date and time when the page was generated. Setting this +# to YES can help to show when doxygen was last run and thus if the +# documentation is up to date. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_TIMESTAMP = YES + +# When MathJax is enabled you need to specify the location relative to the HTML +# output directory using the MATHJAX_RELPATH option. The destination directory +# should contain the MathJax.js script. For instance, if the mathjax directory +# is located at the same level as the HTML output directory, then +# MATHJAX_RELPATH should be ../mathjax. The default value points to the MathJax +# Content Delivery Network so you can quickly see the result without installing +# MathJax. However, it is strongly recommended to install a local copy of +# MathJax from http://www.mathjax.org before deployment. +# The default value is: http://cdn.mathjax.org/mathjax/latest. +# This tag requires that the tag USE_MATHJAX is set to YES. + +MATHJAX_RELPATH = https://www.mathjax.org/mathjax + +#--------------------------------------------------------------------------- +# Configuration options related to the LaTeX output +#--------------------------------------------------------------------------- + +# The PAPER_TYPE tag can be used to set the paper type that is used by the +# printer. +# Possible values are: a4 (210 x 297 mm), letter (8.5 x 11 inches), legal (8.5 x +# 14 inches) and executive (7.25 x 10.5 inches). +# The default value is: a4. +# This tag requires that the tag GENERATE_LATEX is set to YES. + +PAPER_TYPE = letter + +#--------------------------------------------------------------------------- +# Configuration options related to the man page output +#--------------------------------------------------------------------------- + +# If the GENERATE_MAN tag is set to YES, doxygen will generate man pages for +# classes and files. +# The default value is: NO. + +GENERATE_MAN = YES + +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- + +# If the MACRO_EXPANSION tag is set to YES, doxygen will expand all macro names +# in the source code. If set to NO, only conditional compilation will be +# performed. Macro expansion can be done in a controlled way by setting +# EXPAND_ONLY_PREDEF to YES. +# The default value is: NO. +# This tag requires that the tag ENABLE_PREPROCESSING is set to YES. + +MACRO_EXPANSION = YES + +# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES then +# the macro expansion is limited to the macros specified with the PREDEFINED and +# EXPAND_AS_DEFINED tags. +# The default value is: NO. +# This tag requires that the tag ENABLE_PREPROCESSING is set to YES. + +EXPAND_ONLY_PREDEF = YES + +# The INCLUDE_PATH tag can be used to specify one or more directories that +# contain include files that are not input files but should be processed by the +# preprocessor. +# This tag requires that the tag SEARCH_INCLUDES is set to YES. + +INCLUDE_PATH = + +# The PREDEFINED tag can be used to specify one or more macro names that are +# defined before the preprocessor is started (similar to the -D option of e.g. +# gcc). The argument of the tag is a list of macros of the form: name or +# name=definition (no spaces). If the definition and the "=" are omitted, "=1" +# is assumed. To prevent a macro definition from being undefined via #undef or +# recursively expanded use the := operator instead of the = operator. +# This tag requires that the tag ENABLE_PREPROCESSING is set to YES. + +PREDEFINED = OPUS_EXPORT= \ + OPUS_CUSTOM_EXPORT= \ + OPUS_CUSTOM_EXPORT_STATIC= \ + OPUS_WARN_UNUSED_RESULT= \ + OPUS_ARG_NONNULL(_x)= + +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- + +# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is +# available from the path. This tool is part of Graphviz (see: +# http://www.graphviz.org/), a graph visualization toolkit from AT&T and Lucent +# Bell Labs. + +# Debian defaults to YES here, while Fedora and Homebrew default to NO. +# So we set this based on whether the graphviz package is available at +# configure time. +# +HAVE_DOT = @HAVE_DOT@ diff --git a/components/opus/libopus/doc/Makefile.am b/components/opus/libopus/doc/Makefile.am new file mode 100644 index 0000000..31fddab --- /dev/null +++ b/components/opus/libopus/doc/Makefile.am @@ -0,0 +1,45 @@ +## Process this file with automake to produce Makefile.in + +DOCINPUTS = $(top_srcdir)/include/opus.h \ + $(top_srcdir)/include/opus_multistream.h \ + $(top_srcdir)/include/opus_defines.h \ + $(top_srcdir)/include/opus_types.h \ + $(top_srcdir)/include/opus_custom.h \ + $(top_srcdir)/doc/header.html \ + $(top_srcdir)/doc/footer.html \ + $(top_srcdir)/doc/customdoxygen.css + +EXTRA_DIST = customdoxygen.css Doxyfile.in footer.html header.html \ + opus_logo.svg trivial_example.c + + +if HAVE_DOXYGEN + +all-local: doxygen-build.stamp + +doxygen-build.stamp: Doxyfile $(DOCINPUTS) + doxygen + touch $@ + +install-data-local: + $(INSTALL) -d $(DESTDIR)$(docdir)/html/search + for f in `find html -type f \! -name "installdox"`; do \ + $(INSTALL_DATA) $$f $(DESTDIR)$(docdir)/$$f; \ + done + + $(INSTALL) -d $(DESTDIR)$(mandir)/man3 + cd man && find man3 -type f -name opus_*.3 \ + -exec $(INSTALL_DATA) \{} $(DESTDIR)$(mandir)/man3 \; + +clean-local: + $(RM) -r html + $(RM) -r latex + $(RM) -r man + $(RM) doxygen-build.stamp + $(RM) doxygen_sqlite3.db + +uninstall-local: + $(RM) -r $(DESTDIR)$(docdir)/html + $(RM) $(DESTDIR)$(mandir)/man3/opus_*.3 $(DESTDIR)$(mandir)/man3/opus.h.3 + +endif diff --git a/components/opus/libopus/doc/Makefile.in b/components/opus/libopus/doc/Makefile.in new file mode 100644 index 0000000..a3264e1 --- /dev/null +++ b/components/opus/libopus/doc/Makefile.in @@ -0,0 +1,512 @@ +# Makefile.in generated by automake 1.15.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994-2017 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ +VPATH = @srcdir@ +am__is_gnu_make = { \ + if test -z '$(MAKELEVEL)'; then \ + false; \ + elif test -n '$(MAKE_HOST)'; then \ + true; \ + elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ + true; \ + else \ + false; \ + fi; \ +} +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = doc +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/as-gcc-inline-assembly.m4 \ + $(top_srcdir)/m4/ax_add_fortify_source.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ + $(top_srcdir)/m4/lt~obsolete.m4 \ + $(top_srcdir)/m4/opus-intrinsics.m4 $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = Doxyfile +CONFIG_CLEAN_VPATH_FILES = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = +SOURCES = +DIST_SOURCES = +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +am__DIST_COMMON = $(srcdir)/Doxyfile.in $(srcdir)/Makefile.in TODO +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +AR = @AR@ +ARM2GNU_PARAMS = @ARM2GNU_PARAMS@ +ARM_NEON_INTR_CFLAGS = @ARM_NEON_INTR_CFLAGS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCAS = @CCAS@ +CCASDEPMODE = @CCASDEPMODE@ +CCASFLAGS = @CCASFLAGS@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +FGREP = @FGREP@ +GREP = @GREP@ +HAVE_ARM_NE10 = @HAVE_ARM_NE10@ +HAVE_DOT = @HAVE_DOT@ +HAVE_DOXYGEN = @HAVE_DOXYGEN@ +HAVE_PERL = @HAVE_PERL@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBM = @LIBM@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MKDIR_P = @MKDIR_P@ +NE10_CFLAGS = @NE10_CFLAGS@ +NE10_LIBS = @NE10_LIBS@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OPUS_ARM_MAY_HAVE_EDSP = @OPUS_ARM_MAY_HAVE_EDSP@ +OPUS_ARM_MAY_HAVE_MEDIA = @OPUS_ARM_MAY_HAVE_MEDIA@ +OPUS_ARM_MAY_HAVE_NEON = @OPUS_ARM_MAY_HAVE_NEON@ +OPUS_ARM_NEON_INTR_CFLAGS = @OPUS_ARM_NEON_INTR_CFLAGS@ +OPUS_HAVE_RTCD = @OPUS_HAVE_RTCD@ +OPUS_LT_AGE = @OPUS_LT_AGE@ +OPUS_LT_CURRENT = @OPUS_LT_CURRENT@ +OPUS_LT_REVISION = @OPUS_LT_REVISION@ +OPUS_X86_AVX_CFLAGS = @OPUS_X86_AVX_CFLAGS@ +OPUS_X86_SSE2_CFLAGS = @OPUS_X86_SSE2_CFLAGS@ +OPUS_X86_SSE4_1_CFLAGS = @OPUS_X86_SSE4_1_CFLAGS@ +OPUS_X86_SSE_CFLAGS = @OPUS_X86_SSE_CFLAGS@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PC_BUILD = @PC_BUILD@ +RANLIB = @RANLIB@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +X86_AVX_CFLAGS = @X86_AVX_CFLAGS@ +X86_SSE2_CFLAGS = @X86_SSE2_CFLAGS@ +X86_SSE4_1_CFLAGS = @X86_SSE4_1_CFLAGS@ +X86_SSE_CFLAGS = @X86_SSE_CFLAGS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +DOCINPUTS = $(top_srcdir)/include/opus.h \ + $(top_srcdir)/include/opus_multistream.h \ + $(top_srcdir)/include/opus_defines.h \ + $(top_srcdir)/include/opus_types.h \ + $(top_srcdir)/include/opus_custom.h \ + $(top_srcdir)/doc/header.html \ + $(top_srcdir)/doc/footer.html \ + $(top_srcdir)/doc/customdoxygen.css + +EXTRA_DIST = customdoxygen.css Doxyfile.in footer.html header.html \ + opus_logo.svg trivial_example.c + +all: all-am + +.SUFFIXES: +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu doc/Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): +Doxyfile: $(top_builddir)/config.status $(srcdir)/Doxyfile.in + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs +tags TAGS: + +ctags CTAGS: + +cscope cscopelist: + + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +@HAVE_DOXYGEN_FALSE@all-local: +all-am: Makefile all-local +installdirs: +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +@HAVE_DOXYGEN_FALSE@install-data-local: +@HAVE_DOXYGEN_FALSE@uninstall-local: +@HAVE_DOXYGEN_FALSE@clean-local: +clean: clean-am + +clean-am: clean-generic clean-libtool clean-local mostlyclean-am + +distclean: distclean-am + -rm -f Makefile +distclean-am: clean-am distclean-generic + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: install-data-local + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-local + +.MAKE: install-am install-strip + +.PHONY: all all-am all-local check check-am clean clean-generic \ + clean-libtool clean-local cscopelist-am ctags-am distclean \ + distclean-generic distclean-libtool distdir dvi dvi-am html \ + html-am info info-am install install-am install-data \ + install-data-am install-data-local install-dvi install-dvi-am \ + install-exec install-exec-am install-html install-html-am \ + install-info install-info-am install-man install-pdf \ + install-pdf-am install-ps install-ps-am install-strip \ + installcheck installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic \ + mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \ + uninstall-am uninstall-local + +.PRECIOUS: Makefile + + +@HAVE_DOXYGEN_TRUE@all-local: doxygen-build.stamp + +@HAVE_DOXYGEN_TRUE@doxygen-build.stamp: Doxyfile $(DOCINPUTS) +@HAVE_DOXYGEN_TRUE@ doxygen +@HAVE_DOXYGEN_TRUE@ touch $@ + +@HAVE_DOXYGEN_TRUE@install-data-local: +@HAVE_DOXYGEN_TRUE@ $(INSTALL) -d $(DESTDIR)$(docdir)/html/search +@HAVE_DOXYGEN_TRUE@ for f in `find html -type f \! -name "installdox"`; do \ +@HAVE_DOXYGEN_TRUE@ $(INSTALL_DATA) $$f $(DESTDIR)$(docdir)/$$f; \ +@HAVE_DOXYGEN_TRUE@ done + +@HAVE_DOXYGEN_TRUE@ $(INSTALL) -d $(DESTDIR)$(mandir)/man3 +@HAVE_DOXYGEN_TRUE@ cd man && find man3 -type f -name opus_*.3 \ +@HAVE_DOXYGEN_TRUE@ -exec $(INSTALL_DATA) \{} $(DESTDIR)$(mandir)/man3 \; + +@HAVE_DOXYGEN_TRUE@clean-local: +@HAVE_DOXYGEN_TRUE@ $(RM) -r html +@HAVE_DOXYGEN_TRUE@ $(RM) -r latex +@HAVE_DOXYGEN_TRUE@ $(RM) -r man +@HAVE_DOXYGEN_TRUE@ $(RM) doxygen-build.stamp +@HAVE_DOXYGEN_TRUE@ $(RM) doxygen_sqlite3.db + +@HAVE_DOXYGEN_TRUE@uninstall-local: +@HAVE_DOXYGEN_TRUE@ $(RM) -r $(DESTDIR)$(docdir)/html +@HAVE_DOXYGEN_TRUE@ $(RM) $(DESTDIR)$(mandir)/man3/opus_*.3 $(DESTDIR)$(mandir)/man3/opus.h.3 + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/components/opus/libopus/doc/TODO b/components/opus/libopus/doc/TODO new file mode 100644 index 0000000..9e1c2d5 --- /dev/null +++ b/components/opus/libopus/doc/TODO @@ -0,0 +1,7 @@ +define audio bandwidth as frequency range + +repeat padding recommendation + +ptime: refer to RFC + +Opus does not provide any confidentiality or integrity protection diff --git a/components/opus/libopus/doc/customdoxygen.css b/components/opus/libopus/doc/customdoxygen.css new file mode 100644 index 0000000..7004778 --- /dev/null +++ b/components/opus/libopus/doc/customdoxygen.css @@ -0,0 +1,1011 @@ +/* The standard CSS for doxygen */ + +body, table, div, p, dl { + font-family: Lucida Grande, Verdana, Geneva, Arial, sans-serif; + font-size: 13px; + line-height: 1.3; +} + +/* @group Heading Levels */ + +h1 { + font-size: 150%; +} + +.title { + font-size: 150%; + font-weight: bold; + margin: 10px 2px; +} + +h2 { + font-size: 120%; +} + +h3 { + font-size: 100%; +} + +dt { + font-weight: bold; +} + +div.multicol { + -moz-column-gap: 1em; + -webkit-column-gap: 1em; + -moz-column-count: 3; + -webkit-column-count: 3; +} + +p.startli, p.startdd, p.starttd { + margin-top: 2px; +} + +p.endli { + margin-bottom: 0px; +} + +p.enddd { + margin-bottom: 4px; +} + +p.endtd { + margin-bottom: 2px; +} + +/* @end */ + +caption { + font-weight: bold; +} + +span.legend { + font-size: 70%; + text-align: center; +} + +h3.version { + font-size: 90%; + text-align: center; +} + +div.qindex, div.navtab{ + background-color: #F1F1F1; + border: 1px solid #BDBDBD; + text-align: center; +} + +div.qindex, div.navpath { + width: 100%; + line-height: 140%; +} + +div.navtab { + margin-right: 15px; +} + +/* @group Link Styling */ + +a { + color: #646464; + font-weight: normal; + text-decoration: none; +} + +.contents a:visited { + color: #747474; +} + +a:hover { + text-decoration: underline; +} + +a.qindex { + font-weight: bold; +} + +a.qindexHL { + font-weight: bold; + background-color: #B8B8B8; + color: #ffffff; + border: 1px double #A8A8A8; +} + +.contents a.qindexHL:visited { + color: #ffffff; +} + +a.el { + font-weight: bold; +} + +a.elRef { +} + +a.code, a.code:visited { + color: #4665A2; +} + +a.codeRef, a.codeRef:visited { + color: #4665A2; +} + +/* @end */ + +dl.el { + margin-left: -1cm; +} + +.fragment { + font-family: monospace, fixed; + font-size: 105%; +} + +pre.fragment { + border: 1px solid #D5D5D5; + background-color: #FCFCFC; + padding: 4px 6px; + margin: 4px 8px 4px 2px; + overflow: auto; + word-wrap: break-word; + font-size: 9pt; + line-height: 125%; +} + +div.ah { + background-color: black; + font-weight: bold; + color: #ffffff; + margin-bottom: 3px; + margin-top: 3px; + padding: 0.2em; + border: solid thin #333; + border-radius: 0.5em; + -webkit-border-radius: .5em; + -moz-border-radius: .5em; + box-shadow: 2px 2px 3px #999; + -webkit-box-shadow: 2px 2px 3px #999; + -moz-box-shadow: rgba(0, 0, 0, 0.15) 2px 2px 2px; + background-image: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#000),color-stop(0.3, #444)); + background-image: -moz-linear-gradient(center top, #eee 0%, #444 40%, #000); +} + +div.groupHeader { + margin-left: 16px; + margin-top: 12px; + font-weight: bold; +} + +div.groupText { + margin-left: 16px; + font-style: italic; +} + +body { + background-color: white; + color: black; + margin: 0; +} + +div.contents { + margin-top: 10px; + margin-left: 8px; + margin-right: 8px; +} + +td.indexkey { + background-color: #F1F1F1; + font-weight: bold; + border: 1px solid #D5D5D5; + margin: 2px 0px 2px 0; + padding: 2px 10px; + white-space: nowrap; + vertical-align: top; +} + +td.indexvalue { + background-color: #F1F1F1; + border: 1px solid #D5D5D5; + padding: 2px 10px; + margin: 2px 0px; +} + +tr.memlist { + background-color: #F2F2F2; +} + +p.formulaDsp { + text-align: center; +} + +img.formulaDsp { + +} + +img.formulaInl { + vertical-align: middle; +} + +div.center { + text-align: center; + margin-top: 0px; + margin-bottom: 0px; + padding: 0px; +} + +div.center img { + border: 0px; +} + +address.footer { + text-align: right; + padding-right: 12px; +} + +img.footer { + border: 0px; + vertical-align: middle; +} + +/* @group Code Colorization */ + +span.keyword { + color: #008000 +} + +span.keywordtype { + color: #604020 +} + +span.keywordflow { + color: #e08000 +} + +span.comment { + color: #800000 +} + +span.preprocessor { + color: #806020 +} + +span.stringliteral { + color: #002080 +} + +span.charliteral { + color: #008080 +} + +span.vhdldigit { + color: #ff00ff +} + +span.vhdlchar { + color: #000000 +} + +span.vhdlkeyword { + color: #700070 +} + +span.vhdllogic { + color: #ff0000 +} + +blockquote { + background-color: #F9F9F9; + border-left: 2px solid #B8B8B8; + margin: 0 24px 0 4px; + padding: 0 12px 0 16px; +} + +/* @end */ + +/* +.search { + color: #003399; + font-weight: bold; +} + +form.search { + margin-bottom: 0px; + margin-top: 0px; +} + +input.search { + font-size: 75%; + color: #000080; + font-weight: normal; + background-color: #e8eef2; +} +*/ + +td.tiny { + font-size: 75%; +} + +.dirtab { + padding: 4px; + border-collapse: collapse; + border: 1px solid #BDBDBD; +} + +th.dirtab { + background: #F1F1F1; + font-weight: bold; +} + +hr { + height: 0px; + border: none; + border-top: 1px solid #7A7A7A; +} + +hr.footer { + height: 1px; +} + +/* @group Member Descriptions */ + +table.memberdecls { + border-spacing: 0px; + padding: 0px; +} + +.mdescLeft, .mdescRight, +.memItemLeft, .memItemRight, +.memTemplItemLeft, .memTemplItemRight, .memTemplParams { + background-color: #FAFAFA; + border: none; + margin: 4px; + padding: 1px 0 0 8px; +} + +.mdescLeft, .mdescRight { + padding: 0px 8px 4px 8px; + color: #555; +} + +.memItemLeft, .memItemRight, .memTemplParams { + border-top: 1px solid #D5D5D5; +} + +.memItemLeft, .memTemplItemLeft { + white-space: nowrap; +} + +.memItemRight { + width: 100%; +} + +.memTemplParams { + color: #747474; + white-space: nowrap; +} + +/* @end */ + +/* @group Member Details */ + +/* Styles for detailed member documentation */ + +.memtemplate { + font-size: 80%; + color: #747474; + font-weight: normal; + margin-left: 9px; +} + +.memnav { + background-color: #F1F1F1; + border: 1px solid #BDBDBD; + text-align: center; + margin: 2px; + margin-right: 15px; + padding: 2px; +} + +.mempage { + width: 100%; +} + +.memitem { + padding: 0; + margin-bottom: 10px; + margin-right: 5px; +} + +.memname { + white-space: nowrap; + font-weight: bold; + margin-left: 6px; +} + +.memproto, dl.reflist dt { + border-top: 1px solid #C0C0C0; + border-left: 1px solid #C0C0C0; + border-right: 1px solid #C0C0C0; + padding: 6px 0px 6px 0px; + color: #3D3D3D; + font-weight: bold; + text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9); + /* opera specific markup */ + box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); + border-top-right-radius: 8px; + border-top-left-radius: 8px; + /* firefox specific markup */ + -moz-box-shadow: rgba(0, 0, 0, 0.15) 5px 5px 5px; + -moz-border-radius-topright: 8px; + -moz-border-radius-topleft: 8px; + /* webkit specific markup */ + -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); + -webkit-border-top-right-radius: 8px; + -webkit-border-top-left-radius: 8px; + background-image:url('nav_f.png'); + background-repeat:repeat-x; + background-color: #EAEAEA; + +} + +.memdoc, dl.reflist dd { + border-bottom: 1px solid #C0C0C0; + border-left: 1px solid #C0C0C0; + border-right: 1px solid #C0C0C0; + padding: 2px 5px; + background-color: #FCFCFC; + border-top-width: 0; + /* opera specific markup */ + border-bottom-left-radius: 8px; + border-bottom-right-radius: 8px; + box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); + /* firefox specific markup */ + -moz-border-radius-bottomleft: 8px; + -moz-border-radius-bottomright: 8px; + -moz-box-shadow: rgba(0, 0, 0, 0.15) 5px 5px 5px; + background-image: -moz-linear-gradient(center top, #FFFFFF 0%, #FFFFFF 60%, #F9F9F9 95%, #F2F2F2); + /* webkit specific markup */ + -webkit-border-bottom-left-radius: 8px; + -webkit-border-bottom-right-radius: 8px; + -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); + background-image: -webkit-gradient(linear,center top,center bottom,from(#FFFFFF), color-stop(0.6,#FFFFFF), color-stop(0.60,#FFFFFF), color-stop(0.95,#F9F9F9), to(#F2F2F2)); +} + +dl.reflist dt { + padding: 5px; +} + +dl.reflist dd { + margin: 0px 0px 10px 0px; + padding: 5px; +} + +.paramkey { + text-align: right; +} + +.paramtype { + white-space: nowrap; +} + +.paramname { + color: #602020; + white-space: nowrap; +} +.paramname em { + font-style: normal; +} + +.params, .retval, .exception, .tparams { + border-spacing: 6px 2px; +} + +.params .paramname, .retval .paramname { + font-weight: bold; + vertical-align: top; +} + +.params .paramtype { + font-style: italic; + vertical-align: top; +} + +.params .paramdir { + font-family: "courier new",courier,monospace; + vertical-align: top; +} + + + + +/* @end */ + +/* @group Directory (tree) */ + +/* for the tree view */ + +.ftvtree { + font-family: sans-serif; + margin: 0px; +} + +/* these are for tree view when used as main index */ + +.directory { + font-size: 9pt; + font-weight: bold; + margin: 5px; +} + +.directory h3 { + margin: 0px; + margin-top: 1em; + font-size: 11pt; +} + +/* +The following two styles can be used to replace the root node title +with an image of your choice. Simply uncomment the next two styles, +specify the name of your image and be sure to set 'height' to the +proper pixel height of your image. +*/ + +/* +.directory h3.swap { + height: 61px; + background-repeat: no-repeat; + background-image: url("yourimage.gif"); +} +.directory h3.swap span { + display: none; +} +*/ + +.directory > h3 { + margin-top: 0; +} + +.directory p { + margin: 0px; + white-space: nowrap; +} + +.directory div { + display: none; + margin: 0px; +} + +.directory img { + vertical-align: -30%; +} + +/* these are for tree view when not used as main index */ + +.directory-alt { + font-size: 100%; + font-weight: bold; +} + +.directory-alt h3 { + margin: 0px; + margin-top: 1em; + font-size: 11pt; +} + +.directory-alt > h3 { + margin-top: 0; +} + +.directory-alt p { + margin: 0px; + white-space: nowrap; +} + +.directory-alt div { + display: none; + margin: 0px; +} + +.directory-alt img { + vertical-align: -30%; +} + +/* @end */ + +div.dynheader { + margin-top: 8px; +} + +address { + font-style: normal; + color: #464646; +} + +table.doxtable { + border-collapse:collapse; + margin-top: 4px; + margin-bottom: 4px; +} + +table.doxtable td, table.doxtable th { + border: 1px solid #4A4A4A; + padding: 3px 7px 2px; +} + +table.doxtable th { + background-color: #5B5B5B; + color: #FFFFFF; + font-size: 110%; + padding-bottom: 4px; + padding-top: 5px; +} + +table.fieldtable { + width: 100%; + margin-bottom: 10px; + border: 1px solid #C0C0C0; + border-spacing: 0px; + -moz-border-radius: 4px; + -webkit-border-radius: 4px; + border-radius: 4px; + -moz-box-shadow: rgba(0, 0, 0, 0.15) 2px 2px 2px; + -webkit-box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.15); + box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.15); +} + +.fieldtable td, .fieldtable th { + padding: 3px 7px 2px; +} + +.fieldtable td.fieldtype, .fieldtable td.fieldname { + white-space: nowrap; + border-right: 1px solid #C0C0C0; + border-bottom: 1px solid #C0C0C0; + vertical-align: top; +} + +.fieldtable td.fielddoc { + border-bottom: 1px solid #C0C0C0; + width: 100%; +} + +.fieldtable tr:last-child td { + border-bottom: none; +} + +.fieldtable th { + background-image:url('nav_f.png'); + background-repeat:repeat-x; + background-color: #EAEAEA; + font-size: 90%; + color: #3D3D3D; + padding-bottom: 4px; + padding-top: 5px; + text-align:left; + -moz-border-radius-topleft: 4px; + -moz-border-radius-topright: 4px; + -webkit-border-top-left-radius: 4px; + -webkit-border-top-right-radius: 4px; + border-top-left-radius: 4px; + border-top-right-radius: 4px; + border-bottom: 1px solid #C0C0C0; +} + + +.tabsearch { + top: 0px; + left: 10px; + height: 36px; + background-image: url('tab_b.png'); + z-index: 101; + overflow: hidden; + font-size: 13px; +} + +.navpath ul +{ + font-size: 11px; + background-image:url('tab_b.png'); + background-repeat:repeat-x; + height:30px; + line-height:30px; + color:#ABABAB; + border:solid 1px #D3D3D3; + overflow:hidden; + margin:0px; + padding:0px; +} + +.navpath li +{ + list-style-type:none; + float:left; + padding-left:10px; + padding-right:15px; + background-image:url('bc_s.png'); + background-repeat:no-repeat; + background-position:right; + color:#595959; +} + +.navpath li.navelem a +{ + height:32px; + display:block; + text-decoration: none; + outline: none; +} + +.navpath li.navelem a:hover +{ + color:#929292; +} + +.navpath li.footer +{ + list-style-type:none; + float:right; + padding-left:10px; + padding-right:15px; + background-image:none; + background-repeat:no-repeat; + background-position:right; + color:#595959; + font-size: 8pt; +} + + +div.summary +{ + float: right; + font-size: 8pt; + padding-right: 5px; + width: 50%; + text-align: right; +} + +div.summary a +{ + white-space: nowrap; +} + +div.ingroups +{ + margin-left: 5px; + font-size: 8pt; + padding-left: 5px; + width: 50%; + text-align: left; +} + +div.ingroups a +{ + white-space: nowrap; +} + +div.header +{ + background-image:url('nav_h.png'); + background-repeat:repeat-x; + background-color: #FAFAFA; + margin: 0px; + border-bottom: 1px solid #D5D5D5; +} + +div.headertitle +{ + padding: 5px 5px 5px 7px; +} + +dl +{ + padding: 0 0 0 10px; +} + +/* dl.note, dl.warning, dl.attention, dl.pre, dl.post, dl.invariant, dl.deprecated, dl.todo, dl.test, dl.bug */ +dl.section +{ + border-left:4px solid; + padding: 0 0 0 6px; +} + +dl.note +{ + border-color: #D0C000; +} + +dl.warning, dl.attention +{ + border-color: #FF0000; +} + +dl.pre, dl.post, dl.invariant +{ + border-color: #00D000; +} + +dl.deprecated +{ + border-color: #505050; +} + +dl.todo +{ + border-color: #00C0E0; +} + +dl.test +{ + border-color: #3030E0; +} + +dl.bug +{ + border-color: #C08050; +} + +dl.section dd { + margin-bottom: 6px; +} + + +#projectlogo +{ + text-align: center; + vertical-align: bottom; + border-collapse: separate; +} + +#projectlogo img +{ + border: 0px none; +} + +#projectname +{ + font: 300% Tahoma, Arial,sans-serif; + margin: 0px; + padding: 2px 0px; +} + +#projectbrief +{ + font: 120% Tahoma, Arial,sans-serif; + margin: 0px; + padding: 0px; +} + +#projectnumber +{ + font: 100% Tahoma, Arial,sans-serif; + margin: 0px; + padding: 0px; +} + +#titlearea +{ + padding: 0px; + margin: 0px; + width: 100%; + border-bottom: 1px solid #848484; +} + +.image +{ + text-align: center; +} + +.dotgraph +{ + text-align: center; +} + +.mscgraph +{ + text-align: center; +} + +.caption +{ + font-weight: bold; +} + +div.zoom +{ + border: 1px solid #AFAFAF; +} + +dl.citelist { + margin-bottom:50px; +} + +dl.citelist dt { + color:#545454; + float:left; + font-weight:bold; + margin-right:10px; + padding:5px; +} + +dl.citelist dd { + margin:2px 0; + padding:5px 0; +} + +div.toc { + padding: 14px 25px; + background-color: #F7F7F7; + border: 1px solid #E3E3E3; + border-radius: 7px 7px 7px 7px; + float: right; + height: auto; + margin: 0 20px 10px 10px; + width: 200px; +} + +div.toc li { + background: url("bdwn.png") no-repeat scroll 0 5px transparent; + font: 10px/1.2 Verdana,DejaVu Sans,Geneva,sans-serif; + margin-top: 5px; + padding-left: 10px; + padding-top: 2px; +} + +div.toc h3 { + font: bold 12px/1.2 Arial,FreeSans,sans-serif; + color: #747474; + border-bottom: 0 none; + margin: 0; +} + +div.toc ul { + list-style: none outside none; + border: medium none; + padding: 0px; +} + +div.toc li.level1 { + margin-left: 0px; +} + +div.toc li.level2 { + margin-left: 15px; +} + +div.toc li.level3 { + margin-left: 30px; +} + +div.toc li.level4 { + margin-left: 45px; +} + + +@media print +{ + #top { display: none; } + #side-nav { display: none; } + #nav-path { display: none; } + body { overflow:visible; } + h1, h2, h3, h4, h5, h6 { page-break-after: avoid; } + .summary { display: none; } + .memitem { page-break-inside: avoid; } + #doc-content + { + margin-left:0 !important; + height:auto !important; + width:auto !important; + overflow:inherit; + display:inline; + } + pre.fragment + { + overflow: visible; + text-wrap: unrestricted; + white-space: -moz-pre-wrap; /* Moz */ + white-space: -pre-wrap; /* Opera 4-6 */ + white-space: -o-pre-wrap; /* Opera 7 */ + white-space: pre-wrap; /* CSS3 */ + word-wrap: break-word; /* IE 5.5+ */ + } +} diff --git a/components/opus/libopus/doc/footer.html b/components/opus/libopus/doc/footer.html new file mode 100644 index 0000000..ad4a925 --- /dev/null +++ b/components/opus/libopus/doc/footer.html @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + +
+For more information visit the Opus Website. + + +
+ + + diff --git a/components/opus/libopus/doc/header.html b/components/opus/libopus/doc/header.html new file mode 100644 index 0000000..b2c906b --- /dev/null +++ b/components/opus/libopus/doc/header.html @@ -0,0 +1,54 @@ + + + + + +$projectname: $title +$title + + +$treeview +$search +$mathjax + + +
+ + +
+ + + + + + + + + + + + + + + + + + + + + + +
+
Opus
+
+ + +
+
$projectbrief
+
$projectnumber +
+
+
$projectbrief
+
$searchbox
+
+ diff --git a/components/opus/libopus/doc/opus_logo.svg b/components/opus/libopus/doc/opus_logo.svg new file mode 100644 index 0000000..db2879e --- /dev/null +++ b/components/opus/libopus/doc/opus_logo.svg @@ -0,0 +1,157 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/components/opus/libopus/doc/trivial_example.c b/components/opus/libopus/doc/trivial_example.c new file mode 100644 index 0000000..047ca0a --- /dev/null +++ b/components/opus/libopus/doc/trivial_example.c @@ -0,0 +1,160 @@ +/* Copyright (c) 2013 Jean-Marc Valin */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/* This is meant to be a simple example of encoding and decoding audio + using Opus. It should make it easy to understand how the Opus API + works. For more information, see the full API documentation at: + https://www.opus-codec.org/docs/ */ + +#include +#include +#include +#include +#include + +/*The frame size is hardcoded for this sample code but it doesn't have to be*/ +#define FRAME_SIZE 960 +#define SAMPLE_RATE 48000 +#define CHANNELS 2 +#define APPLICATION OPUS_APPLICATION_AUDIO +#define BITRATE 64000 + +#define MAX_FRAME_SIZE 6*960 +#define MAX_PACKET_SIZE (3*1276) + +int main(int argc, char **argv) +{ + char *inFile; + FILE *fin; + char *outFile; + FILE *fout; + opus_int16 in[FRAME_SIZE*CHANNELS]; + opus_int16 out[MAX_FRAME_SIZE*CHANNELS]; + unsigned char cbits[MAX_PACKET_SIZE]; + int nbBytes; + /*Holds the state of the encoder and decoder */ + OpusEncoder *encoder; + OpusDecoder *decoder; + int err; + + if (argc != 3) + { + fprintf(stderr, "usage: trivial_example input.pcm output.pcm\n"); + fprintf(stderr, "input and output are 16-bit little-endian raw files\n"); + return EXIT_FAILURE; + } + + /*Create a new encoder state */ + encoder = opus_encoder_create(SAMPLE_RATE, CHANNELS, APPLICATION, &err); + if (err<0) + { + fprintf(stderr, "failed to create an encoder: %s\n", opus_strerror(err)); + return EXIT_FAILURE; + } + /* Set the desired bit-rate. You can also set other parameters if needed. + The Opus library is designed to have good defaults, so only set + parameters you know you need. Doing otherwise is likely to result + in worse quality, but better. */ + err = opus_encoder_ctl(encoder, OPUS_SET_BITRATE(BITRATE)); + if (err<0) + { + fprintf(stderr, "failed to set bitrate: %s\n", opus_strerror(err)); + return EXIT_FAILURE; + } + inFile = argv[1]; + fin = fopen(inFile, "r"); + if (fin==NULL) + { + fprintf(stderr, "failed to open input file: %s\n", strerror(errno)); + return EXIT_FAILURE; + } + + + /* Create a new decoder state. */ + decoder = opus_decoder_create(SAMPLE_RATE, CHANNELS, &err); + if (err<0) + { + fprintf(stderr, "failed to create decoder: %s\n", opus_strerror(err)); + return EXIT_FAILURE; + } + outFile = argv[2]; + fout = fopen(outFile, "w"); + if (fout==NULL) + { + fprintf(stderr, "failed to open output file: %s\n", strerror(errno)); + return EXIT_FAILURE; + } + + while (1) + { + int i; + unsigned char pcm_bytes[MAX_FRAME_SIZE*CHANNELS*2]; + int frame_size; + + /* Read a 16 bits/sample audio frame. */ + fread(pcm_bytes, sizeof(short)*CHANNELS, FRAME_SIZE, fin); + if (feof(fin)) + break; + /* Convert from little-endian ordering. */ + for (i=0;i>8)&0xFF; + } + /* Write the decoded audio to file. */ + fwrite(pcm_bytes, sizeof(short), frame_size*CHANNELS, fout); + } + /*Destroy the encoder state*/ + opus_encoder_destroy(encoder); + opus_decoder_destroy(decoder); + fclose(fin); + fclose(fout); + return EXIT_SUCCESS; +} diff --git a/components/opus/libopus/include/opus.h b/components/opus/libopus/include/opus.h new file mode 100644 index 0000000..d282f21 --- /dev/null +++ b/components/opus/libopus/include/opus.h @@ -0,0 +1,981 @@ +/* Copyright (c) 2010-2011 Xiph.Org Foundation, Skype Limited + Written by Jean-Marc Valin and Koen Vos */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/** + * @file opus.h + * @brief Opus reference implementation API + */ + +#ifndef OPUS_H +#define OPUS_H + +#include "opus_types.h" +#include "opus_defines.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * @mainpage Opus + * + * The Opus codec is designed for interactive speech and audio transmission over the Internet. + * It is designed by the IETF Codec Working Group and incorporates technology from + * Skype's SILK codec and Xiph.Org's CELT codec. + * + * The Opus codec is designed to handle a wide range of interactive audio applications, + * including Voice over IP, videoconferencing, in-game chat, and even remote live music + * performances. It can scale from low bit-rate narrowband speech to very high quality + * stereo music. Its main features are: + + * @li Sampling rates from 8 to 48 kHz + * @li Bit-rates from 6 kb/s to 510 kb/s + * @li Support for both constant bit-rate (CBR) and variable bit-rate (VBR) + * @li Audio bandwidth from narrowband to full-band + * @li Support for speech and music + * @li Support for mono and stereo + * @li Support for multichannel (up to 255 channels) + * @li Frame sizes from 2.5 ms to 60 ms + * @li Good loss robustness and packet loss concealment (PLC) + * @li Floating point and fixed-point implementation + * + * Documentation sections: + * @li @ref opus_encoder + * @li @ref opus_decoder + * @li @ref opus_repacketizer + * @li @ref opus_multistream + * @li @ref opus_libinfo + * @li @ref opus_custom + */ + +/** @defgroup opus_encoder Opus Encoder + * @{ + * + * @brief This page describes the process and functions used to encode Opus. + * + * Since Opus is a stateful codec, the encoding process starts with creating an encoder + * state. This can be done with: + * + * @code + * int error; + * OpusEncoder *enc; + * enc = opus_encoder_create(Fs, channels, application, &error); + * @endcode + * + * From this point, @c enc can be used for encoding an audio stream. An encoder state + * @b must @b not be used for more than one stream at the same time. Similarly, the encoder + * state @b must @b not be re-initialized for each frame. + * + * While opus_encoder_create() allocates memory for the state, it's also possible + * to initialize pre-allocated memory: + * + * @code + * int size; + * int error; + * OpusEncoder *enc; + * size = opus_encoder_get_size(channels); + * enc = malloc(size); + * error = opus_encoder_init(enc, Fs, channels, application); + * @endcode + * + * where opus_encoder_get_size() returns the required size for the encoder state. Note that + * future versions of this code may change the size, so no assuptions should be made about it. + * + * The encoder state is always continuous in memory and only a shallow copy is sufficient + * to copy it (e.g. memcpy()) + * + * It is possible to change some of the encoder's settings using the opus_encoder_ctl() + * interface. All these settings already default to the recommended value, so they should + * only be changed when necessary. The most common settings one may want to change are: + * + * @code + * opus_encoder_ctl(enc, OPUS_SET_BITRATE(bitrate)); + * opus_encoder_ctl(enc, OPUS_SET_COMPLEXITY(complexity)); + * opus_encoder_ctl(enc, OPUS_SET_SIGNAL(signal_type)); + * @endcode + * + * where + * + * @arg bitrate is in bits per second (b/s) + * @arg complexity is a value from 1 to 10, where 1 is the lowest complexity and 10 is the highest + * @arg signal_type is either OPUS_AUTO (default), OPUS_SIGNAL_VOICE, or OPUS_SIGNAL_MUSIC + * + * See @ref opus_encoderctls and @ref opus_genericctls for a complete list of parameters that can be set or queried. Most parameters can be set or changed at any time during a stream. + * + * To encode a frame, opus_encode() or opus_encode_float() must be called with exactly one frame (2.5, 5, 10, 20, 40 or 60 ms) of audio data: + * @code + * len = opus_encode(enc, audio_frame, frame_size, packet, max_packet); + * @endcode + * + * where + *
    + *
  • audio_frame is the audio data in opus_int16 (or float for opus_encode_float())
  • + *
  • frame_size is the duration of the frame in samples (per channel)
  • + *
  • packet is the byte array to which the compressed data is written
  • + *
  • max_packet is the maximum number of bytes that can be written in the packet (4000 bytes is recommended). + * Do not use max_packet to control VBR target bitrate, instead use the #OPUS_SET_BITRATE CTL.
  • + *
+ * + * opus_encode() and opus_encode_float() return the number of bytes actually written to the packet. + * The return value can be negative, which indicates that an error has occurred. If the return value + * is 2 bytes or less, then the packet does not need to be transmitted (DTX). + * + * Once the encoder state if no longer needed, it can be destroyed with + * + * @code + * opus_encoder_destroy(enc); + * @endcode + * + * If the encoder was created with opus_encoder_init() rather than opus_encoder_create(), + * then no action is required aside from potentially freeing the memory that was manually + * allocated for it (calling free(enc) for the example above) + * + */ + +/** Opus encoder state. + * This contains the complete state of an Opus encoder. + * It is position independent and can be freely copied. + * @see opus_encoder_create,opus_encoder_init + */ +typedef struct OpusEncoder OpusEncoder; + +/** Gets the size of an OpusEncoder structure. + * @param[in] channels int: Number of channels. + * This must be 1 or 2. + * @returns The size in bytes. + */ +OPUS_EXPORT OPUS_WARN_UNUSED_RESULT int opus_encoder_get_size(int channels); + +/** + */ + +/** Allocates and initializes an encoder state. + * There are three coding modes: + * + * @ref OPUS_APPLICATION_VOIP gives best quality at a given bitrate for voice + * signals. It enhances the input signal by high-pass filtering and + * emphasizing formants and harmonics. Optionally it includes in-band + * forward error correction to protect against packet loss. Use this + * mode for typical VoIP applications. Because of the enhancement, + * even at high bitrates the output may sound different from the input. + * + * @ref OPUS_APPLICATION_AUDIO gives best quality at a given bitrate for most + * non-voice signals like music. Use this mode for music and mixed + * (music/voice) content, broadcast, and applications requiring less + * than 15 ms of coding delay. + * + * @ref OPUS_APPLICATION_RESTRICTED_LOWDELAY configures low-delay mode that + * disables the speech-optimized mode in exchange for slightly reduced delay. + * This mode can only be set on an newly initialized or freshly reset encoder + * because it changes the codec delay. + * + * This is useful when the caller knows that the speech-optimized modes will not be needed (use with caution). + * @param [in] Fs opus_int32: Sampling rate of input signal (Hz) + * This must be one of 8000, 12000, 16000, + * 24000, or 48000. + * @param [in] channels int: Number of channels (1 or 2) in input signal + * @param [in] application int: Coding mode (@ref OPUS_APPLICATION_VOIP/@ref OPUS_APPLICATION_AUDIO/@ref OPUS_APPLICATION_RESTRICTED_LOWDELAY) + * @param [out] error int*: @ref opus_errorcodes + * @note Regardless of the sampling rate and number channels selected, the Opus encoder + * can switch to a lower audio bandwidth or number of channels if the bitrate + * selected is too low. This also means that it is safe to always use 48 kHz stereo input + * and let the encoder optimize the encoding. + */ +OPUS_EXPORT OPUS_WARN_UNUSED_RESULT OpusEncoder *opus_encoder_create( + opus_int32 Fs, + int channels, + int application, + int *error +); + +/** Initializes a previously allocated encoder state + * The memory pointed to by st must be at least the size returned by opus_encoder_get_size(). + * This is intended for applications which use their own allocator instead of malloc. + * @see opus_encoder_create(),opus_encoder_get_size() + * To reset a previously initialized state, use the #OPUS_RESET_STATE CTL. + * @param [in] st OpusEncoder*: Encoder state + * @param [in] Fs opus_int32: Sampling rate of input signal (Hz) + * This must be one of 8000, 12000, 16000, + * 24000, or 48000. + * @param [in] channels int: Number of channels (1 or 2) in input signal + * @param [in] application int: Coding mode (OPUS_APPLICATION_VOIP/OPUS_APPLICATION_AUDIO/OPUS_APPLICATION_RESTRICTED_LOWDELAY) + * @retval #OPUS_OK Success or @ref opus_errorcodes + */ +OPUS_EXPORT int opus_encoder_init( + OpusEncoder *st, + opus_int32 Fs, + int channels, + int application +) OPUS_ARG_NONNULL(1); + +/** Encodes an Opus frame. + * @param [in] st OpusEncoder*: Encoder state + * @param [in] pcm opus_int16*: Input signal (interleaved if 2 channels). length is frame_size*channels*sizeof(opus_int16) + * @param [in] frame_size int: Number of samples per channel in the + * input signal. + * This must be an Opus frame size for + * the encoder's sampling rate. + * For example, at 48 kHz the permitted + * values are 120, 240, 480, 960, 1920, + * and 2880. + * Passing in a duration of less than + * 10 ms (480 samples at 48 kHz) will + * prevent the encoder from using the LPC + * or hybrid modes. + * @param [out] data unsigned char*: Output payload. + * This must contain storage for at + * least \a max_data_bytes. + * @param [in] max_data_bytes opus_int32: Size of the allocated + * memory for the output + * payload. This may be + * used to impose an upper limit on + * the instant bitrate, but should + * not be used as the only bitrate + * control. Use #OPUS_SET_BITRATE to + * control the bitrate. + * @returns The length of the encoded packet (in bytes) on success or a + * negative error code (see @ref opus_errorcodes) on failure. + */ +OPUS_EXPORT OPUS_WARN_UNUSED_RESULT opus_int32 opus_encode( + OpusEncoder *st, + const opus_int16 *pcm, + int frame_size, + unsigned char *data, + opus_int32 max_data_bytes +) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(2) OPUS_ARG_NONNULL(4); + +/** Encodes an Opus frame from floating point input. + * @param [in] st OpusEncoder*: Encoder state + * @param [in] pcm float*: Input in float format (interleaved if 2 channels), with a normal range of +/-1.0. + * Samples with a range beyond +/-1.0 are supported but will + * be clipped by decoders using the integer API and should + * only be used if it is known that the far end supports + * extended dynamic range. + * length is frame_size*channels*sizeof(float) + * @param [in] frame_size int: Number of samples per channel in the + * input signal. + * This must be an Opus frame size for + * the encoder's sampling rate. + * For example, at 48 kHz the permitted + * values are 120, 240, 480, 960, 1920, + * and 2880. + * Passing in a duration of less than + * 10 ms (480 samples at 48 kHz) will + * prevent the encoder from using the LPC + * or hybrid modes. + * @param [out] data unsigned char*: Output payload. + * This must contain storage for at + * least \a max_data_bytes. + * @param [in] max_data_bytes opus_int32: Size of the allocated + * memory for the output + * payload. This may be + * used to impose an upper limit on + * the instant bitrate, but should + * not be used as the only bitrate + * control. Use #OPUS_SET_BITRATE to + * control the bitrate. + * @returns The length of the encoded packet (in bytes) on success or a + * negative error code (see @ref opus_errorcodes) on failure. + */ +OPUS_EXPORT OPUS_WARN_UNUSED_RESULT opus_int32 opus_encode_float( + OpusEncoder *st, + const float *pcm, + int frame_size, + unsigned char *data, + opus_int32 max_data_bytes +) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(2) OPUS_ARG_NONNULL(4); + +/** Frees an OpusEncoder allocated by opus_encoder_create(). + * @param[in] st OpusEncoder*: State to be freed. + */ +OPUS_EXPORT void opus_encoder_destroy(OpusEncoder *st); + +/** Perform a CTL function on an Opus encoder. + * + * Generally the request and subsequent arguments are generated + * by a convenience macro. + * @param st OpusEncoder*: Encoder state. + * @param request This and all remaining parameters should be replaced by one + * of the convenience macros in @ref opus_genericctls or + * @ref opus_encoderctls. + * @see opus_genericctls + * @see opus_encoderctls + */ +OPUS_EXPORT int opus_encoder_ctl(OpusEncoder *st, int request, ...) OPUS_ARG_NONNULL(1); +/**@}*/ + +/** @defgroup opus_decoder Opus Decoder + * @{ + * + * @brief This page describes the process and functions used to decode Opus. + * + * The decoding process also starts with creating a decoder + * state. This can be done with: + * @code + * int error; + * OpusDecoder *dec; + * dec = opus_decoder_create(Fs, channels, &error); + * @endcode + * where + * @li Fs is the sampling rate and must be 8000, 12000, 16000, 24000, or 48000 + * @li channels is the number of channels (1 or 2) + * @li error will hold the error code in case of failure (or #OPUS_OK on success) + * @li the return value is a newly created decoder state to be used for decoding + * + * While opus_decoder_create() allocates memory for the state, it's also possible + * to initialize pre-allocated memory: + * @code + * int size; + * int error; + * OpusDecoder *dec; + * size = opus_decoder_get_size(channels); + * dec = malloc(size); + * error = opus_decoder_init(dec, Fs, channels); + * @endcode + * where opus_decoder_get_size() returns the required size for the decoder state. Note that + * future versions of this code may change the size, so no assuptions should be made about it. + * + * The decoder state is always continuous in memory and only a shallow copy is sufficient + * to copy it (e.g. memcpy()) + * + * To decode a frame, opus_decode() or opus_decode_float() must be called with a packet of compressed audio data: + * @code + * frame_size = opus_decode(dec, packet, len, decoded, max_size, 0); + * @endcode + * where + * + * @li packet is the byte array containing the compressed data + * @li len is the exact number of bytes contained in the packet + * @li decoded is the decoded audio data in opus_int16 (or float for opus_decode_float()) + * @li max_size is the max duration of the frame in samples (per channel) that can fit into the decoded_frame array + * + * opus_decode() and opus_decode_float() return the number of samples (per channel) decoded from the packet. + * If that value is negative, then an error has occurred. This can occur if the packet is corrupted or if the audio + * buffer is too small to hold the decoded audio. + * + * Opus is a stateful codec with overlapping blocks and as a result Opus + * packets are not coded independently of each other. Packets must be + * passed into the decoder serially and in the correct order for a correct + * decode. Lost packets can be replaced with loss concealment by calling + * the decoder with a null pointer and zero length for the missing packet. + * + * A single codec state may only be accessed from a single thread at + * a time and any required locking must be performed by the caller. Separate + * streams must be decoded with separate decoder states and can be decoded + * in parallel unless the library was compiled with NONTHREADSAFE_PSEUDOSTACK + * defined. + * + */ + +/** Opus decoder state. + * This contains the complete state of an Opus decoder. + * It is position independent and can be freely copied. + * @see opus_decoder_create,opus_decoder_init + */ +typedef struct OpusDecoder OpusDecoder; + +/** Gets the size of an OpusDecoder structure. + * @param [in] channels int: Number of channels. + * This must be 1 or 2. + * @returns The size in bytes. + */ +OPUS_EXPORT OPUS_WARN_UNUSED_RESULT int opus_decoder_get_size(int channels); + +/** Allocates and initializes a decoder state. + * @param [in] Fs opus_int32: Sample rate to decode at (Hz). + * This must be one of 8000, 12000, 16000, + * 24000, or 48000. + * @param [in] channels int: Number of channels (1 or 2) to decode + * @param [out] error int*: #OPUS_OK Success or @ref opus_errorcodes + * + * Internally Opus stores data at 48000 Hz, so that should be the default + * value for Fs. However, the decoder can efficiently decode to buffers + * at 8, 12, 16, and 24 kHz so if for some reason the caller cannot use + * data at the full sample rate, or knows the compressed data doesn't + * use the full frequency range, it can request decoding at a reduced + * rate. Likewise, the decoder is capable of filling in either mono or + * interleaved stereo pcm buffers, at the caller's request. + */ +OPUS_EXPORT OPUS_WARN_UNUSED_RESULT OpusDecoder *opus_decoder_create( + opus_int32 Fs, + int channels, + int *error +); + +/** Initializes a previously allocated decoder state. + * The state must be at least the size returned by opus_decoder_get_size(). + * This is intended for applications which use their own allocator instead of malloc. @see opus_decoder_create,opus_decoder_get_size + * To reset a previously initialized state, use the #OPUS_RESET_STATE CTL. + * @param [in] st OpusDecoder*: Decoder state. + * @param [in] Fs opus_int32: Sampling rate to decode to (Hz). + * This must be one of 8000, 12000, 16000, + * 24000, or 48000. + * @param [in] channels int: Number of channels (1 or 2) to decode + * @retval #OPUS_OK Success or @ref opus_errorcodes + */ +OPUS_EXPORT int opus_decoder_init( + OpusDecoder *st, + opus_int32 Fs, + int channels +) OPUS_ARG_NONNULL(1); + +/** Decode an Opus packet. + * @param [in] st OpusDecoder*: Decoder state + * @param [in] data char*: Input payload. Use a NULL pointer to indicate packet loss + * @param [in] len opus_int32: Number of bytes in payload* + * @param [out] pcm opus_int16*: Output signal (interleaved if 2 channels). length + * is frame_size*channels*sizeof(opus_int16) + * @param [in] frame_size Number of samples per channel of available space in \a pcm. + * If this is less than the maximum packet duration (120ms; 5760 for 48kHz), this function will + * not be capable of decoding some packets. In the case of PLC (data==NULL) or FEC (decode_fec=1), + * then frame_size needs to be exactly the duration of audio that is missing, otherwise the + * decoder will not be in the optimal state to decode the next incoming packet. For the PLC and + * FEC cases, frame_size must be a multiple of 2.5 ms. + * @param [in] decode_fec int: Flag (0 or 1) to request that any in-band forward error correction data be + * decoded. If no such data is available, the frame is decoded as if it were lost. + * @returns Number of decoded samples or @ref opus_errorcodes + */ +OPUS_EXPORT OPUS_WARN_UNUSED_RESULT int opus_decode( + OpusDecoder *st, + const unsigned char *data, + opus_int32 len, + opus_int16 *pcm, + int frame_size, + int decode_fec +) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(4); + +/** Decode an Opus packet with floating point output. + * @param [in] st OpusDecoder*: Decoder state + * @param [in] data char*: Input payload. Use a NULL pointer to indicate packet loss + * @param [in] len opus_int32: Number of bytes in payload + * @param [out] pcm float*: Output signal (interleaved if 2 channels). length + * is frame_size*channels*sizeof(float) + * @param [in] frame_size Number of samples per channel of available space in \a pcm. + * If this is less than the maximum packet duration (120ms; 5760 for 48kHz), this function will + * not be capable of decoding some packets. In the case of PLC (data==NULL) or FEC (decode_fec=1), + * then frame_size needs to be exactly the duration of audio that is missing, otherwise the + * decoder will not be in the optimal state to decode the next incoming packet. For the PLC and + * FEC cases, frame_size must be a multiple of 2.5 ms. + * @param [in] decode_fec int: Flag (0 or 1) to request that any in-band forward error correction data be + * decoded. If no such data is available the frame is decoded as if it were lost. + * @returns Number of decoded samples or @ref opus_errorcodes + */ +OPUS_EXPORT OPUS_WARN_UNUSED_RESULT int opus_decode_float( + OpusDecoder *st, + const unsigned char *data, + opus_int32 len, + float *pcm, + int frame_size, + int decode_fec +) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(4); + +/** Perform a CTL function on an Opus decoder. + * + * Generally the request and subsequent arguments are generated + * by a convenience macro. + * @param st OpusDecoder*: Decoder state. + * @param request This and all remaining parameters should be replaced by one + * of the convenience macros in @ref opus_genericctls or + * @ref opus_decoderctls. + * @see opus_genericctls + * @see opus_decoderctls + */ +OPUS_EXPORT int opus_decoder_ctl(OpusDecoder *st, int request, ...) OPUS_ARG_NONNULL(1); + +/** Frees an OpusDecoder allocated by opus_decoder_create(). + * @param[in] st OpusDecoder*: State to be freed. + */ +OPUS_EXPORT void opus_decoder_destroy(OpusDecoder *st); + +/** Parse an opus packet into one or more frames. + * Opus_decode will perform this operation internally so most applications do + * not need to use this function. + * This function does not copy the frames, the returned pointers are pointers into + * the input packet. + * @param [in] data char*: Opus packet to be parsed + * @param [in] len opus_int32: size of data + * @param [out] out_toc char*: TOC pointer + * @param [out] frames char*[48] encapsulated frames + * @param [out] size opus_int16[48] sizes of the encapsulated frames + * @param [out] payload_offset int*: returns the position of the payload within the packet (in bytes) + * @returns number of frames + */ +OPUS_EXPORT int opus_packet_parse( + const unsigned char *data, + opus_int32 len, + unsigned char *out_toc, + const unsigned char *frames[48], + opus_int16 size[48], + int *payload_offset +) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(5); + +/** Gets the bandwidth of an Opus packet. + * @param [in] data char*: Opus packet + * @retval OPUS_BANDWIDTH_NARROWBAND Narrowband (4kHz bandpass) + * @retval OPUS_BANDWIDTH_MEDIUMBAND Mediumband (6kHz bandpass) + * @retval OPUS_BANDWIDTH_WIDEBAND Wideband (8kHz bandpass) + * @retval OPUS_BANDWIDTH_SUPERWIDEBAND Superwideband (12kHz bandpass) + * @retval OPUS_BANDWIDTH_FULLBAND Fullband (20kHz bandpass) + * @retval OPUS_INVALID_PACKET The compressed data passed is corrupted or of an unsupported type + */ +OPUS_EXPORT OPUS_WARN_UNUSED_RESULT int opus_packet_get_bandwidth(const unsigned char *data) OPUS_ARG_NONNULL(1); + +/** Gets the number of samples per frame from an Opus packet. + * @param [in] data char*: Opus packet. + * This must contain at least one byte of + * data. + * @param [in] Fs opus_int32: Sampling rate in Hz. + * This must be a multiple of 400, or + * inaccurate results will be returned. + * @returns Number of samples per frame. + */ +OPUS_EXPORT OPUS_WARN_UNUSED_RESULT int opus_packet_get_samples_per_frame(const unsigned char *data, opus_int32 Fs) OPUS_ARG_NONNULL(1); + +/** Gets the number of channels from an Opus packet. + * @param [in] data char*: Opus packet + * @returns Number of channels + * @retval OPUS_INVALID_PACKET The compressed data passed is corrupted or of an unsupported type + */ +OPUS_EXPORT OPUS_WARN_UNUSED_RESULT int opus_packet_get_nb_channels(const unsigned char *data) OPUS_ARG_NONNULL(1); + +/** Gets the number of frames in an Opus packet. + * @param [in] packet char*: Opus packet + * @param [in] len opus_int32: Length of packet + * @returns Number of frames + * @retval OPUS_BAD_ARG Insufficient data was passed to the function + * @retval OPUS_INVALID_PACKET The compressed data passed is corrupted or of an unsupported type + */ +OPUS_EXPORT OPUS_WARN_UNUSED_RESULT int opus_packet_get_nb_frames(const unsigned char packet[], opus_int32 len) OPUS_ARG_NONNULL(1); + +/** Gets the number of samples of an Opus packet. + * @param [in] packet char*: Opus packet + * @param [in] len opus_int32: Length of packet + * @param [in] Fs opus_int32: Sampling rate in Hz. + * This must be a multiple of 400, or + * inaccurate results will be returned. + * @returns Number of samples + * @retval OPUS_BAD_ARG Insufficient data was passed to the function + * @retval OPUS_INVALID_PACKET The compressed data passed is corrupted or of an unsupported type + */ +OPUS_EXPORT OPUS_WARN_UNUSED_RESULT int opus_packet_get_nb_samples(const unsigned char packet[], opus_int32 len, opus_int32 Fs) OPUS_ARG_NONNULL(1); + +/** Gets the number of samples of an Opus packet. + * @param [in] dec OpusDecoder*: Decoder state + * @param [in] packet char*: Opus packet + * @param [in] len opus_int32: Length of packet + * @returns Number of samples + * @retval OPUS_BAD_ARG Insufficient data was passed to the function + * @retval OPUS_INVALID_PACKET The compressed data passed is corrupted or of an unsupported type + */ +OPUS_EXPORT OPUS_WARN_UNUSED_RESULT int opus_decoder_get_nb_samples(const OpusDecoder *dec, const unsigned char packet[], opus_int32 len) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(2); + +/** Applies soft-clipping to bring a float signal within the [-1,1] range. If + * the signal is already in that range, nothing is done. If there are values + * outside of [-1,1], then the signal is clipped as smoothly as possible to + * both fit in the range and avoid creating excessive distortion in the + * process. + * @param [in,out] pcm float*: Input PCM and modified PCM + * @param [in] frame_size int Number of samples per channel to process + * @param [in] channels int: Number of channels + * @param [in,out] softclip_mem float*: State memory for the soft clipping process (one float per channel, initialized to zero) + */ +OPUS_EXPORT void opus_pcm_soft_clip(float *pcm, int frame_size, int channels, float *softclip_mem); + + +/**@}*/ + +/** @defgroup opus_repacketizer Repacketizer + * @{ + * + * The repacketizer can be used to merge multiple Opus packets into a single + * packet or alternatively to split Opus packets that have previously been + * merged. Splitting valid Opus packets is always guaranteed to succeed, + * whereas merging valid packets only succeeds if all frames have the same + * mode, bandwidth, and frame size, and when the total duration of the merged + * packet is no more than 120 ms. The 120 ms limit comes from the + * specification and limits decoder memory requirements at a point where + * framing overhead becomes negligible. + * + * The repacketizer currently only operates on elementary Opus + * streams. It will not manipualte multistream packets successfully, except in + * the degenerate case where they consist of data from a single stream. + * + * The repacketizing process starts with creating a repacketizer state, either + * by calling opus_repacketizer_create() or by allocating the memory yourself, + * e.g., + * @code + * OpusRepacketizer *rp; + * rp = (OpusRepacketizer*)malloc(opus_repacketizer_get_size()); + * if (rp != NULL) + * opus_repacketizer_init(rp); + * @endcode + * + * Then the application should submit packets with opus_repacketizer_cat(), + * extract new packets with opus_repacketizer_out() or + * opus_repacketizer_out_range(), and then reset the state for the next set of + * input packets via opus_repacketizer_init(). + * + * For example, to split a sequence of packets into individual frames: + * @code + * unsigned char *data; + * int len; + * while (get_next_packet(&data, &len)) + * { + * unsigned char out[1276]; + * opus_int32 out_len; + * int nb_frames; + * int err; + * int i; + * err = opus_repacketizer_cat(rp, data, len); + * if (err != OPUS_OK) + * { + * release_packet(data); + * return err; + * } + * nb_frames = opus_repacketizer_get_nb_frames(rp); + * for (i = 0; i < nb_frames; i++) + * { + * out_len = opus_repacketizer_out_range(rp, i, i+1, out, sizeof(out)); + * if (out_len < 0) + * { + * release_packet(data); + * return (int)out_len; + * } + * output_next_packet(out, out_len); + * } + * opus_repacketizer_init(rp); + * release_packet(data); + * } + * @endcode + * + * Alternatively, to combine a sequence of frames into packets that each + * contain up to TARGET_DURATION_MS milliseconds of data: + * @code + * // The maximum number of packets with duration TARGET_DURATION_MS occurs + * // when the frame size is 2.5 ms, for a total of (TARGET_DURATION_MS*2/5) + * // packets. + * unsigned char *data[(TARGET_DURATION_MS*2/5)+1]; + * opus_int32 len[(TARGET_DURATION_MS*2/5)+1]; + * int nb_packets; + * unsigned char out[1277*(TARGET_DURATION_MS*2/2)]; + * opus_int32 out_len; + * int prev_toc; + * nb_packets = 0; + * while (get_next_packet(data+nb_packets, len+nb_packets)) + * { + * int nb_frames; + * int err; + * nb_frames = opus_packet_get_nb_frames(data[nb_packets], len[nb_packets]); + * if (nb_frames < 1) + * { + * release_packets(data, nb_packets+1); + * return nb_frames; + * } + * nb_frames += opus_repacketizer_get_nb_frames(rp); + * // If adding the next packet would exceed our target, or it has an + * // incompatible TOC sequence, output the packets we already have before + * // submitting it. + * // N.B., The nb_packets > 0 check ensures we've submitted at least one + * // packet since the last call to opus_repacketizer_init(). Otherwise a + * // single packet longer than TARGET_DURATION_MS would cause us to try to + * // output an (invalid) empty packet. It also ensures that prev_toc has + * // been set to a valid value. Additionally, len[nb_packets] > 0 is + * // guaranteed by the call to opus_packet_get_nb_frames() above, so the + * // reference to data[nb_packets][0] should be valid. + * if (nb_packets > 0 && ( + * ((prev_toc & 0xFC) != (data[nb_packets][0] & 0xFC)) || + * opus_packet_get_samples_per_frame(data[nb_packets], 48000)*nb_frames > + * TARGET_DURATION_MS*48)) + * { + * out_len = opus_repacketizer_out(rp, out, sizeof(out)); + * if (out_len < 0) + * { + * release_packets(data, nb_packets+1); + * return (int)out_len; + * } + * output_next_packet(out, out_len); + * opus_repacketizer_init(rp); + * release_packets(data, nb_packets); + * data[0] = data[nb_packets]; + * len[0] = len[nb_packets]; + * nb_packets = 0; + * } + * err = opus_repacketizer_cat(rp, data[nb_packets], len[nb_packets]); + * if (err != OPUS_OK) + * { + * release_packets(data, nb_packets+1); + * return err; + * } + * prev_toc = data[nb_packets][0]; + * nb_packets++; + * } + * // Output the final, partial packet. + * if (nb_packets > 0) + * { + * out_len = opus_repacketizer_out(rp, out, sizeof(out)); + * release_packets(data, nb_packets); + * if (out_len < 0) + * return (int)out_len; + * output_next_packet(out, out_len); + * } + * @endcode + * + * An alternate way of merging packets is to simply call opus_repacketizer_cat() + * unconditionally until it fails. At that point, the merged packet can be + * obtained with opus_repacketizer_out() and the input packet for which + * opus_repacketizer_cat() needs to be re-added to a newly reinitialized + * repacketizer state. + */ + +typedef struct OpusRepacketizer OpusRepacketizer; + +/** Gets the size of an OpusRepacketizer structure. + * @returns The size in bytes. + */ +OPUS_EXPORT OPUS_WARN_UNUSED_RESULT int opus_repacketizer_get_size(void); + +/** (Re)initializes a previously allocated repacketizer state. + * The state must be at least the size returned by opus_repacketizer_get_size(). + * This can be used for applications which use their own allocator instead of + * malloc(). + * It must also be called to reset the queue of packets waiting to be + * repacketized, which is necessary if the maximum packet duration of 120 ms + * is reached or if you wish to submit packets with a different Opus + * configuration (coding mode, audio bandwidth, frame size, or channel count). + * Failure to do so will prevent a new packet from being added with + * opus_repacketizer_cat(). + * @see opus_repacketizer_create + * @see opus_repacketizer_get_size + * @see opus_repacketizer_cat + * @param rp OpusRepacketizer*: The repacketizer state to + * (re)initialize. + * @returns A pointer to the same repacketizer state that was passed in. + */ +OPUS_EXPORT OpusRepacketizer *opus_repacketizer_init(OpusRepacketizer *rp) OPUS_ARG_NONNULL(1); + +/** Allocates memory and initializes the new repacketizer with + * opus_repacketizer_init(). + */ +OPUS_EXPORT OPUS_WARN_UNUSED_RESULT OpusRepacketizer *opus_repacketizer_create(void); + +/** Frees an OpusRepacketizer allocated by + * opus_repacketizer_create(). + * @param[in] rp OpusRepacketizer*: State to be freed. + */ +OPUS_EXPORT void opus_repacketizer_destroy(OpusRepacketizer *rp); + +/** Add a packet to the current repacketizer state. + * This packet must match the configuration of any packets already submitted + * for repacketization since the last call to opus_repacketizer_init(). + * This means that it must have the same coding mode, audio bandwidth, frame + * size, and channel count. + * This can be checked in advance by examining the top 6 bits of the first + * byte of the packet, and ensuring they match the top 6 bits of the first + * byte of any previously submitted packet. + * The total duration of audio in the repacketizer state also must not exceed + * 120 ms, the maximum duration of a single packet, after adding this packet. + * + * The contents of the current repacketizer state can be extracted into new + * packets using opus_repacketizer_out() or opus_repacketizer_out_range(). + * + * In order to add a packet with a different configuration or to add more + * audio beyond 120 ms, you must clear the repacketizer state by calling + * opus_repacketizer_init(). + * If a packet is too large to add to the current repacketizer state, no part + * of it is added, even if it contains multiple frames, some of which might + * fit. + * If you wish to be able to add parts of such packets, you should first use + * another repacketizer to split the packet into pieces and add them + * individually. + * @see opus_repacketizer_out_range + * @see opus_repacketizer_out + * @see opus_repacketizer_init + * @param rp OpusRepacketizer*: The repacketizer state to which to + * add the packet. + * @param[in] data const unsigned char*: The packet data. + * The application must ensure + * this pointer remains valid + * until the next call to + * opus_repacketizer_init() or + * opus_repacketizer_destroy(). + * @param len opus_int32: The number of bytes in the packet data. + * @returns An error code indicating whether or not the operation succeeded. + * @retval #OPUS_OK The packet's contents have been added to the repacketizer + * state. + * @retval #OPUS_INVALID_PACKET The packet did not have a valid TOC sequence, + * the packet's TOC sequence was not compatible + * with previously submitted packets (because + * the coding mode, audio bandwidth, frame size, + * or channel count did not match), or adding + * this packet would increase the total amount of + * audio stored in the repacketizer state to more + * than 120 ms. + */ +OPUS_EXPORT int opus_repacketizer_cat(OpusRepacketizer *rp, const unsigned char *data, opus_int32 len) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(2); + + +/** Construct a new packet from data previously submitted to the repacketizer + * state via opus_repacketizer_cat(). + * @param rp OpusRepacketizer*: The repacketizer state from which to + * construct the new packet. + * @param begin int: The index of the first frame in the current + * repacketizer state to include in the output. + * @param end int: One past the index of the last frame in the + * current repacketizer state to include in the + * output. + * @param[out] data const unsigned char*: The buffer in which to + * store the output packet. + * @param maxlen opus_int32: The maximum number of bytes to store in + * the output buffer. In order to guarantee + * success, this should be at least + * 1276 for a single frame, + * or for multiple frames, + * 1277*(end-begin). + * However, 1*(end-begin) plus + * the size of all packet data submitted to + * the repacketizer since the last call to + * opus_repacketizer_init() or + * opus_repacketizer_create() is also + * sufficient, and possibly much smaller. + * @returns The total size of the output packet on success, or an error code + * on failure. + * @retval #OPUS_BAD_ARG [begin,end) was an invalid range of + * frames (begin < 0, begin >= end, or end > + * opus_repacketizer_get_nb_frames()). + * @retval #OPUS_BUFFER_TOO_SMALL \a maxlen was insufficient to contain the + * complete output packet. + */ +OPUS_EXPORT OPUS_WARN_UNUSED_RESULT opus_int32 opus_repacketizer_out_range(OpusRepacketizer *rp, int begin, int end, unsigned char *data, opus_int32 maxlen) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(4); + +/** Return the total number of frames contained in packet data submitted to + * the repacketizer state so far via opus_repacketizer_cat() since the last + * call to opus_repacketizer_init() or opus_repacketizer_create(). + * This defines the valid range of packets that can be extracted with + * opus_repacketizer_out_range() or opus_repacketizer_out(). + * @param rp OpusRepacketizer*: The repacketizer state containing the + * frames. + * @returns The total number of frames contained in the packet data submitted + * to the repacketizer state. + */ +OPUS_EXPORT OPUS_WARN_UNUSED_RESULT int opus_repacketizer_get_nb_frames(OpusRepacketizer *rp) OPUS_ARG_NONNULL(1); + +/** Construct a new packet from data previously submitted to the repacketizer + * state via opus_repacketizer_cat(). + * This is a convenience routine that returns all the data submitted so far + * in a single packet. + * It is equivalent to calling + * @code + * opus_repacketizer_out_range(rp, 0, opus_repacketizer_get_nb_frames(rp), + * data, maxlen) + * @endcode + * @param rp OpusRepacketizer*: The repacketizer state from which to + * construct the new packet. + * @param[out] data const unsigned char*: The buffer in which to + * store the output packet. + * @param maxlen opus_int32: The maximum number of bytes to store in + * the output buffer. In order to guarantee + * success, this should be at least + * 1277*opus_repacketizer_get_nb_frames(rp). + * However, + * 1*opus_repacketizer_get_nb_frames(rp) + * plus the size of all packet data + * submitted to the repacketizer since the + * last call to opus_repacketizer_init() or + * opus_repacketizer_create() is also + * sufficient, and possibly much smaller. + * @returns The total size of the output packet on success, or an error code + * on failure. + * @retval #OPUS_BUFFER_TOO_SMALL \a maxlen was insufficient to contain the + * complete output packet. + */ +OPUS_EXPORT OPUS_WARN_UNUSED_RESULT opus_int32 opus_repacketizer_out(OpusRepacketizer *rp, unsigned char *data, opus_int32 maxlen) OPUS_ARG_NONNULL(1); + +/** Pads a given Opus packet to a larger size (possibly changing the TOC sequence). + * @param[in,out] data const unsigned char*: The buffer containing the + * packet to pad. + * @param len opus_int32: The size of the packet. + * This must be at least 1. + * @param new_len opus_int32: The desired size of the packet after padding. + * This must be at least as large as len. + * @returns an error code + * @retval #OPUS_OK \a on success. + * @retval #OPUS_BAD_ARG \a len was less than 1 or new_len was less than len. + * @retval #OPUS_INVALID_PACKET \a data did not contain a valid Opus packet. + */ +OPUS_EXPORT int opus_packet_pad(unsigned char *data, opus_int32 len, opus_int32 new_len); + +/** Remove all padding from a given Opus packet and rewrite the TOC sequence to + * minimize space usage. + * @param[in,out] data const unsigned char*: The buffer containing the + * packet to strip. + * @param len opus_int32: The size of the packet. + * This must be at least 1. + * @returns The new size of the output packet on success, or an error code + * on failure. + * @retval #OPUS_BAD_ARG \a len was less than 1. + * @retval #OPUS_INVALID_PACKET \a data did not contain a valid Opus packet. + */ +OPUS_EXPORT OPUS_WARN_UNUSED_RESULT opus_int32 opus_packet_unpad(unsigned char *data, opus_int32 len); + +/** Pads a given Opus multi-stream packet to a larger size (possibly changing the TOC sequence). + * @param[in,out] data const unsigned char*: The buffer containing the + * packet to pad. + * @param len opus_int32: The size of the packet. + * This must be at least 1. + * @param new_len opus_int32: The desired size of the packet after padding. + * This must be at least 1. + * @param nb_streams opus_int32: The number of streams (not channels) in the packet. + * This must be at least as large as len. + * @returns an error code + * @retval #OPUS_OK \a on success. + * @retval #OPUS_BAD_ARG \a len was less than 1. + * @retval #OPUS_INVALID_PACKET \a data did not contain a valid Opus packet. + */ +OPUS_EXPORT int opus_multistream_packet_pad(unsigned char *data, opus_int32 len, opus_int32 new_len, int nb_streams); + +/** Remove all padding from a given Opus multi-stream packet and rewrite the TOC sequence to + * minimize space usage. + * @param[in,out] data const unsigned char*: The buffer containing the + * packet to strip. + * @param len opus_int32: The size of the packet. + * This must be at least 1. + * @param nb_streams opus_int32: The number of streams (not channels) in the packet. + * This must be at least 1. + * @returns The new size of the output packet on success, or an error code + * on failure. + * @retval #OPUS_BAD_ARG \a len was less than 1 or new_len was less than len. + * @retval #OPUS_INVALID_PACKET \a data did not contain a valid Opus packet. + */ +OPUS_EXPORT OPUS_WARN_UNUSED_RESULT opus_int32 opus_multistream_packet_unpad(unsigned char *data, opus_int32 len, int nb_streams); + +/**@}*/ + +#ifdef __cplusplus +} +#endif + +#endif /* OPUS_H */ diff --git a/components/opus/libopus/include/opus_custom.h b/components/opus/libopus/include/opus_custom.h new file mode 100644 index 0000000..41f36bf --- /dev/null +++ b/components/opus/libopus/include/opus_custom.h @@ -0,0 +1,342 @@ +/* Copyright (c) 2007-2008 CSIRO + Copyright (c) 2007-2009 Xiph.Org Foundation + Copyright (c) 2008-2012 Gregory Maxwell + Written by Jean-Marc Valin and Gregory Maxwell */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/** + @file opus_custom.h + @brief Opus-Custom reference implementation API + */ + +#ifndef OPUS_CUSTOM_H +#define OPUS_CUSTOM_H + +#include "opus_defines.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef CUSTOM_MODES +# define OPUS_CUSTOM_EXPORT OPUS_EXPORT +# define OPUS_CUSTOM_EXPORT_STATIC OPUS_EXPORT +#else +# define OPUS_CUSTOM_EXPORT +# ifdef OPUS_BUILD +# define OPUS_CUSTOM_EXPORT_STATIC static OPUS_INLINE +# else +# define OPUS_CUSTOM_EXPORT_STATIC +# endif +#endif + +/** @defgroup opus_custom Opus Custom + * @{ + * Opus Custom is an optional part of the Opus specification and + * reference implementation which uses a distinct API from the regular + * API and supports frame sizes that are not normally supported.\ Use + * of Opus Custom is discouraged for all but very special applications + * for which a frame size different from 2.5, 5, 10, or 20 ms is needed + * (for either complexity or latency reasons) and where interoperability + * is less important. + * + * In addition to the interoperability limitations the use of Opus custom + * disables a substantial chunk of the codec and generally lowers the + * quality available at a given bitrate. Normally when an application needs + * a different frame size from the codec it should buffer to match the + * sizes but this adds a small amount of delay which may be important + * in some very low latency applications. Some transports (especially + * constant rate RF transports) may also work best with frames of + * particular durations. + * + * Libopus only supports custom modes if they are enabled at compile time. + * + * The Opus Custom API is similar to the regular API but the + * @ref opus_encoder_create and @ref opus_decoder_create calls take + * an additional mode parameter which is a structure produced by + * a call to @ref opus_custom_mode_create. Both the encoder and decoder + * must create a mode using the same sample rate (fs) and frame size + * (frame size) so these parameters must either be signaled out of band + * or fixed in a particular implementation. + * + * Similar to regular Opus the custom modes support on the fly frame size + * switching, but the sizes available depend on the particular frame size in + * use. For some initial frame sizes on a single on the fly size is available. + */ + +/** Contains the state of an encoder. One encoder state is needed + for each stream. It is initialized once at the beginning of the + stream. Do *not* re-initialize the state for every frame. + @brief Encoder state + */ +typedef struct OpusCustomEncoder OpusCustomEncoder; + +/** State of the decoder. One decoder state is needed for each stream. + It is initialized once at the beginning of the stream. Do *not* + re-initialize the state for every frame. + @brief Decoder state + */ +typedef struct OpusCustomDecoder OpusCustomDecoder; + +/** The mode contains all the information necessary to create an + encoder. Both the encoder and decoder need to be initialized + with exactly the same mode, otherwise the output will be + corrupted. + @brief Mode configuration + */ +typedef struct OpusCustomMode OpusCustomMode; + +/** Creates a new mode struct. This will be passed to an encoder or + * decoder. The mode MUST NOT BE DESTROYED until the encoders and + * decoders that use it are destroyed as well. + * @param [in] Fs int: Sampling rate (8000 to 96000 Hz) + * @param [in] frame_size int: Number of samples (per channel) to encode in each + * packet (64 - 1024, prime factorization must contain zero or more 2s, 3s, or 5s and no other primes) + * @param [out] error int*: Returned error code (if NULL, no error will be returned) + * @return A newly created mode + */ +OPUS_CUSTOM_EXPORT OPUS_WARN_UNUSED_RESULT OpusCustomMode *opus_custom_mode_create(opus_int32 Fs, int frame_size, int *error); + +/** Destroys a mode struct. Only call this after all encoders and + * decoders using this mode are destroyed as well. + * @param [in] mode OpusCustomMode*: Mode to be freed. + */ +OPUS_CUSTOM_EXPORT void opus_custom_mode_destroy(OpusCustomMode *mode); + + +#if !defined(OPUS_BUILD) || defined(CELT_ENCODER_C) + +/* Encoder */ +/** Gets the size of an OpusCustomEncoder structure. + * @param [in] mode OpusCustomMode *: Mode configuration + * @param [in] channels int: Number of channels + * @returns size + */ +OPUS_CUSTOM_EXPORT_STATIC OPUS_WARN_UNUSED_RESULT int opus_custom_encoder_get_size( + const OpusCustomMode *mode, + int channels +) OPUS_ARG_NONNULL(1); + +# ifdef CUSTOM_MODES +/** Initializes a previously allocated encoder state + * The memory pointed to by st must be the size returned by opus_custom_encoder_get_size. + * This is intended for applications which use their own allocator instead of malloc. + * @see opus_custom_encoder_create(),opus_custom_encoder_get_size() + * To reset a previously initialized state use the OPUS_RESET_STATE CTL. + * @param [in] st OpusCustomEncoder*: Encoder state + * @param [in] mode OpusCustomMode *: Contains all the information about the characteristics of + * the stream (must be the same characteristics as used for the + * decoder) + * @param [in] channels int: Number of channels + * @return OPUS_OK Success or @ref opus_errorcodes + */ +OPUS_CUSTOM_EXPORT int opus_custom_encoder_init( + OpusCustomEncoder *st, + const OpusCustomMode *mode, + int channels +) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(2); +# endif +#endif + + +/** Creates a new encoder state. Each stream needs its own encoder + * state (can't be shared across simultaneous streams). + * @param [in] mode OpusCustomMode*: Contains all the information about the characteristics of + * the stream (must be the same characteristics as used for the + * decoder) + * @param [in] channels int: Number of channels + * @param [out] error int*: Returns an error code + * @return Newly created encoder state. +*/ +OPUS_CUSTOM_EXPORT OPUS_WARN_UNUSED_RESULT OpusCustomEncoder *opus_custom_encoder_create( + const OpusCustomMode *mode, + int channels, + int *error +) OPUS_ARG_NONNULL(1); + + +/** Destroys a an encoder state. + * @param[in] st OpusCustomEncoder*: State to be freed. + */ +OPUS_CUSTOM_EXPORT void opus_custom_encoder_destroy(OpusCustomEncoder *st); + +/** Encodes a frame of audio. + * @param [in] st OpusCustomEncoder*: Encoder state + * @param [in] pcm float*: PCM audio in float format, with a normal range of +/-1.0. + * Samples with a range beyond +/-1.0 are supported but will + * be clipped by decoders using the integer API and should + * only be used if it is known that the far end supports + * extended dynamic range. There must be exactly + * frame_size samples per channel. + * @param [in] frame_size int: Number of samples per frame of input signal + * @param [out] compressed char *: The compressed data is written here. This may not alias pcm and must be at least maxCompressedBytes long. + * @param [in] maxCompressedBytes int: Maximum number of bytes to use for compressing the frame + * (can change from one frame to another) + * @return Number of bytes written to "compressed". + * If negative, an error has occurred (see error codes). It is IMPORTANT that + * the length returned be somehow transmitted to the decoder. Otherwise, no + * decoding is possible. + */ +OPUS_CUSTOM_EXPORT OPUS_WARN_UNUSED_RESULT int opus_custom_encode_float( + OpusCustomEncoder *st, + const float *pcm, + int frame_size, + unsigned char *compressed, + int maxCompressedBytes +) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(2) OPUS_ARG_NONNULL(4); + +/** Encodes a frame of audio. + * @param [in] st OpusCustomEncoder*: Encoder state + * @param [in] pcm opus_int16*: PCM audio in signed 16-bit format (native endian). + * There must be exactly frame_size samples per channel. + * @param [in] frame_size int: Number of samples per frame of input signal + * @param [out] compressed char *: The compressed data is written here. This may not alias pcm and must be at least maxCompressedBytes long. + * @param [in] maxCompressedBytes int: Maximum number of bytes to use for compressing the frame + * (can change from one frame to another) + * @return Number of bytes written to "compressed". + * If negative, an error has occurred (see error codes). It is IMPORTANT that + * the length returned be somehow transmitted to the decoder. Otherwise, no + * decoding is possible. + */ +OPUS_CUSTOM_EXPORT OPUS_WARN_UNUSED_RESULT int opus_custom_encode( + OpusCustomEncoder *st, + const opus_int16 *pcm, + int frame_size, + unsigned char *compressed, + int maxCompressedBytes +) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(2) OPUS_ARG_NONNULL(4); + +/** Perform a CTL function on an Opus custom encoder. + * + * Generally the request and subsequent arguments are generated + * by a convenience macro. + * @see opus_encoderctls + */ +OPUS_CUSTOM_EXPORT int opus_custom_encoder_ctl(OpusCustomEncoder * OPUS_RESTRICT st, int request, ...) OPUS_ARG_NONNULL(1); + + +#if !defined(OPUS_BUILD) || defined(CELT_DECODER_C) +/* Decoder */ + +/** Gets the size of an OpusCustomDecoder structure. + * @param [in] mode OpusCustomMode *: Mode configuration + * @param [in] channels int: Number of channels + * @returns size + */ +OPUS_CUSTOM_EXPORT_STATIC OPUS_WARN_UNUSED_RESULT int opus_custom_decoder_get_size( + const OpusCustomMode *mode, + int channels +) OPUS_ARG_NONNULL(1); + +/** Initializes a previously allocated decoder state + * The memory pointed to by st must be the size returned by opus_custom_decoder_get_size. + * This is intended for applications which use their own allocator instead of malloc. + * @see opus_custom_decoder_create(),opus_custom_decoder_get_size() + * To reset a previously initialized state use the OPUS_RESET_STATE CTL. + * @param [in] st OpusCustomDecoder*: Decoder state + * @param [in] mode OpusCustomMode *: Contains all the information about the characteristics of + * the stream (must be the same characteristics as used for the + * encoder) + * @param [in] channels int: Number of channels + * @return OPUS_OK Success or @ref opus_errorcodes + */ +OPUS_CUSTOM_EXPORT_STATIC int opus_custom_decoder_init( + OpusCustomDecoder *st, + const OpusCustomMode *mode, + int channels +) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(2); + +#endif + + +/** Creates a new decoder state. Each stream needs its own decoder state (can't + * be shared across simultaneous streams). + * @param [in] mode OpusCustomMode: Contains all the information about the characteristics of the + * stream (must be the same characteristics as used for the encoder) + * @param [in] channels int: Number of channels + * @param [out] error int*: Returns an error code + * @return Newly created decoder state. + */ +OPUS_CUSTOM_EXPORT OPUS_WARN_UNUSED_RESULT OpusCustomDecoder *opus_custom_decoder_create( + const OpusCustomMode *mode, + int channels, + int *error +) OPUS_ARG_NONNULL(1); + +/** Destroys a an decoder state. + * @param[in] st OpusCustomDecoder*: State to be freed. + */ +OPUS_CUSTOM_EXPORT void opus_custom_decoder_destroy(OpusCustomDecoder *st); + +/** Decode an opus custom frame with floating point output + * @param [in] st OpusCustomDecoder*: Decoder state + * @param [in] data char*: Input payload. Use a NULL pointer to indicate packet loss + * @param [in] len int: Number of bytes in payload + * @param [out] pcm float*: Output signal (interleaved if 2 channels). length + * is frame_size*channels*sizeof(float) + * @param [in] frame_size Number of samples per channel of available space in *pcm. + * @returns Number of decoded samples or @ref opus_errorcodes + */ +OPUS_CUSTOM_EXPORT OPUS_WARN_UNUSED_RESULT int opus_custom_decode_float( + OpusCustomDecoder *st, + const unsigned char *data, + int len, + float *pcm, + int frame_size +) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(4); + +/** Decode an opus custom frame + * @param [in] st OpusCustomDecoder*: Decoder state + * @param [in] data char*: Input payload. Use a NULL pointer to indicate packet loss + * @param [in] len int: Number of bytes in payload + * @param [out] pcm opus_int16*: Output signal (interleaved if 2 channels). length + * is frame_size*channels*sizeof(opus_int16) + * @param [in] frame_size Number of samples per channel of available space in *pcm. + * @returns Number of decoded samples or @ref opus_errorcodes + */ +OPUS_CUSTOM_EXPORT OPUS_WARN_UNUSED_RESULT int opus_custom_decode( + OpusCustomDecoder *st, + const unsigned char *data, + int len, + opus_int16 *pcm, + int frame_size +) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(4); + +/** Perform a CTL function on an Opus custom decoder. + * + * Generally the request and subsequent arguments are generated + * by a convenience macro. + * @see opus_genericctls + */ +OPUS_CUSTOM_EXPORT int opus_custom_decoder_ctl(OpusCustomDecoder * OPUS_RESTRICT st, int request, ...) OPUS_ARG_NONNULL(1); + +/**@}*/ + +#ifdef __cplusplus +} +#endif + +#endif /* OPUS_CUSTOM_H */ diff --git a/components/opus/libopus/include/opus_defines.h b/components/opus/libopus/include/opus_defines.h new file mode 100644 index 0000000..d141418 --- /dev/null +++ b/components/opus/libopus/include/opus_defines.h @@ -0,0 +1,799 @@ +/* Copyright (c) 2010-2011 Xiph.Org Foundation, Skype Limited + Written by Jean-Marc Valin and Koen Vos */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/** + * @file opus_defines.h + * @brief Opus reference implementation constants + */ + +#ifndef OPUS_DEFINES_H +#define OPUS_DEFINES_H + +#include "opus_types.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/** @defgroup opus_errorcodes Error codes + * @{ + */ +/** No error @hideinitializer*/ +#define OPUS_OK 0 +/** One or more invalid/out of range arguments @hideinitializer*/ +#define OPUS_BAD_ARG -1 +/** Not enough bytes allocated in the buffer @hideinitializer*/ +#define OPUS_BUFFER_TOO_SMALL -2 +/** An internal error was detected @hideinitializer*/ +#define OPUS_INTERNAL_ERROR -3 +/** The compressed data passed is corrupted @hideinitializer*/ +#define OPUS_INVALID_PACKET -4 +/** Invalid/unsupported request number @hideinitializer*/ +#define OPUS_UNIMPLEMENTED -5 +/** An encoder or decoder structure is invalid or already freed @hideinitializer*/ +#define OPUS_INVALID_STATE -6 +/** Memory allocation has failed @hideinitializer*/ +#define OPUS_ALLOC_FAIL -7 +/**@}*/ + +/** @cond OPUS_INTERNAL_DOC */ +/**Export control for opus functions */ + +#ifndef OPUS_EXPORT +# if defined(WIN32) +# if defined(OPUS_BUILD) && defined(DLL_EXPORT) +# define OPUS_EXPORT __declspec(dllexport) +# else +# define OPUS_EXPORT +# endif +# elif defined(__GNUC__) && defined(OPUS_BUILD) +# define OPUS_EXPORT __attribute__ ((visibility ("default"))) +# else +# define OPUS_EXPORT +# endif +#endif + +# if !defined(OPUS_GNUC_PREREQ) +# if defined(__GNUC__)&&defined(__GNUC_MINOR__) +# define OPUS_GNUC_PREREQ(_maj,_min) \ + ((__GNUC__<<16)+__GNUC_MINOR__>=((_maj)<<16)+(_min)) +# else +# define OPUS_GNUC_PREREQ(_maj,_min) 0 +# endif +# endif + +#if (!defined(__STDC_VERSION__) || (__STDC_VERSION__ < 199901L) ) +# if OPUS_GNUC_PREREQ(3,0) +# define OPUS_RESTRICT __restrict__ +# elif (defined(_MSC_VER) && _MSC_VER >= 1400) +# define OPUS_RESTRICT __restrict +# else +# define OPUS_RESTRICT +# endif +#else +# define OPUS_RESTRICT restrict +#endif + +#if (!defined(__STDC_VERSION__) || (__STDC_VERSION__ < 199901L) ) +# if OPUS_GNUC_PREREQ(2,7) +# define OPUS_INLINE __inline__ +# elif (defined(_MSC_VER)) +# define OPUS_INLINE __inline +# else +# define OPUS_INLINE +# endif +#else +# define OPUS_INLINE inline +#endif + +/**Warning attributes for opus functions + * NONNULL is not used in OPUS_BUILD to avoid the compiler optimizing out + * some paranoid null checks. */ +#if defined(__GNUC__) && OPUS_GNUC_PREREQ(3, 4) +# define OPUS_WARN_UNUSED_RESULT __attribute__ ((__warn_unused_result__)) +#else +# define OPUS_WARN_UNUSED_RESULT +#endif +#if !defined(OPUS_BUILD) && defined(__GNUC__) && OPUS_GNUC_PREREQ(3, 4) +# define OPUS_ARG_NONNULL(_x) __attribute__ ((__nonnull__(_x))) +#else +# define OPUS_ARG_NONNULL(_x) +#endif + +/** These are the actual Encoder CTL ID numbers. + * They should not be used directly by applications. + * In general, SETs should be even and GETs should be odd.*/ +#define OPUS_SET_APPLICATION_REQUEST 4000 +#define OPUS_GET_APPLICATION_REQUEST 4001 +#define OPUS_SET_BITRATE_REQUEST 4002 +#define OPUS_GET_BITRATE_REQUEST 4003 +#define OPUS_SET_MAX_BANDWIDTH_REQUEST 4004 +#define OPUS_GET_MAX_BANDWIDTH_REQUEST 4005 +#define OPUS_SET_VBR_REQUEST 4006 +#define OPUS_GET_VBR_REQUEST 4007 +#define OPUS_SET_BANDWIDTH_REQUEST 4008 +#define OPUS_GET_BANDWIDTH_REQUEST 4009 +#define OPUS_SET_COMPLEXITY_REQUEST 4010 +#define OPUS_GET_COMPLEXITY_REQUEST 4011 +#define OPUS_SET_INBAND_FEC_REQUEST 4012 +#define OPUS_GET_INBAND_FEC_REQUEST 4013 +#define OPUS_SET_PACKET_LOSS_PERC_REQUEST 4014 +#define OPUS_GET_PACKET_LOSS_PERC_REQUEST 4015 +#define OPUS_SET_DTX_REQUEST 4016 +#define OPUS_GET_DTX_REQUEST 4017 +#define OPUS_SET_VBR_CONSTRAINT_REQUEST 4020 +#define OPUS_GET_VBR_CONSTRAINT_REQUEST 4021 +#define OPUS_SET_FORCE_CHANNELS_REQUEST 4022 +#define OPUS_GET_FORCE_CHANNELS_REQUEST 4023 +#define OPUS_SET_SIGNAL_REQUEST 4024 +#define OPUS_GET_SIGNAL_REQUEST 4025 +#define OPUS_GET_LOOKAHEAD_REQUEST 4027 +/* #define OPUS_RESET_STATE 4028 */ +#define OPUS_GET_SAMPLE_RATE_REQUEST 4029 +#define OPUS_GET_FINAL_RANGE_REQUEST 4031 +#define OPUS_GET_PITCH_REQUEST 4033 +#define OPUS_SET_GAIN_REQUEST 4034 +#define OPUS_GET_GAIN_REQUEST 4045 /* Should have been 4035 */ +#define OPUS_SET_LSB_DEPTH_REQUEST 4036 +#define OPUS_GET_LSB_DEPTH_REQUEST 4037 +#define OPUS_GET_LAST_PACKET_DURATION_REQUEST 4039 +#define OPUS_SET_EXPERT_FRAME_DURATION_REQUEST 4040 +#define OPUS_GET_EXPERT_FRAME_DURATION_REQUEST 4041 +#define OPUS_SET_PREDICTION_DISABLED_REQUEST 4042 +#define OPUS_GET_PREDICTION_DISABLED_REQUEST 4043 +/* Don't use 4045, it's already taken by OPUS_GET_GAIN_REQUEST */ +#define OPUS_SET_PHASE_INVERSION_DISABLED_REQUEST 4046 +#define OPUS_GET_PHASE_INVERSION_DISABLED_REQUEST 4047 +#define OPUS_GET_IN_DTX_REQUEST 4049 + +/** Defines for the presence of extended APIs. */ +#define OPUS_HAVE_OPUS_PROJECTION_H + +/* Macros to trigger compilation errors when the wrong types are provided to a CTL */ +#define __opus_check_int(x) (((void)((x) == (opus_int32)0)), (opus_int32)(x)) +#define __opus_check_int_ptr(ptr) ((ptr) + ((ptr) - (opus_int32*)(ptr))) +#define __opus_check_uint_ptr(ptr) ((ptr) + ((ptr) - (opus_uint32*)(ptr))) +#define __opus_check_val16_ptr(ptr) ((ptr) + ((ptr) - (opus_val16*)(ptr))) +/** @endcond */ + +/** @defgroup opus_ctlvalues Pre-defined values for CTL interface + * @see opus_genericctls, opus_encoderctls + * @{ + */ +/* Values for the various encoder CTLs */ +#define OPUS_AUTO -1000 /**opus_int32: Allowed values: 0-10, inclusive. + * + * @hideinitializer */ +#define OPUS_SET_COMPLEXITY(x) OPUS_SET_COMPLEXITY_REQUEST, __opus_check_int(x) +/** Gets the encoder's complexity configuration. + * @see OPUS_SET_COMPLEXITY + * @param[out] x opus_int32 *: Returns a value in the range 0-10, + * inclusive. + * @hideinitializer */ +#define OPUS_GET_COMPLEXITY(x) OPUS_GET_COMPLEXITY_REQUEST, __opus_check_int_ptr(x) + +/** Configures the bitrate in the encoder. + * Rates from 500 to 512000 bits per second are meaningful, as well as the + * special values #OPUS_AUTO and #OPUS_BITRATE_MAX. + * The value #OPUS_BITRATE_MAX can be used to cause the codec to use as much + * rate as it can, which is useful for controlling the rate by adjusting the + * output buffer size. + * @see OPUS_GET_BITRATE + * @param[in] x opus_int32: Bitrate in bits per second. The default + * is determined based on the number of + * channels and the input sampling rate. + * @hideinitializer */ +#define OPUS_SET_BITRATE(x) OPUS_SET_BITRATE_REQUEST, __opus_check_int(x) +/** Gets the encoder's bitrate configuration. + * @see OPUS_SET_BITRATE + * @param[out] x opus_int32 *: Returns the bitrate in bits per second. + * The default is determined based on the + * number of channels and the input + * sampling rate. + * @hideinitializer */ +#define OPUS_GET_BITRATE(x) OPUS_GET_BITRATE_REQUEST, __opus_check_int_ptr(x) + +/** Enables or disables variable bitrate (VBR) in the encoder. + * The configured bitrate may not be met exactly because frames must + * be an integer number of bytes in length. + * @see OPUS_GET_VBR + * @see OPUS_SET_VBR_CONSTRAINT + * @param[in] x opus_int32: Allowed values: + *
+ *
0
Hard CBR. For LPC/hybrid modes at very low bit-rate, this can + * cause noticeable quality degradation.
+ *
1
VBR (default). The exact type of VBR is controlled by + * #OPUS_SET_VBR_CONSTRAINT.
+ *
+ * @hideinitializer */ +#define OPUS_SET_VBR(x) OPUS_SET_VBR_REQUEST, __opus_check_int(x) +/** Determine if variable bitrate (VBR) is enabled in the encoder. + * @see OPUS_SET_VBR + * @see OPUS_GET_VBR_CONSTRAINT + * @param[out] x opus_int32 *: Returns one of the following values: + *
+ *
0
Hard CBR.
+ *
1
VBR (default). The exact type of VBR may be retrieved via + * #OPUS_GET_VBR_CONSTRAINT.
+ *
+ * @hideinitializer */ +#define OPUS_GET_VBR(x) OPUS_GET_VBR_REQUEST, __opus_check_int_ptr(x) + +/** Enables or disables constrained VBR in the encoder. + * This setting is ignored when the encoder is in CBR mode. + * @warning Only the MDCT mode of Opus currently heeds the constraint. + * Speech mode ignores it completely, hybrid mode may fail to obey it + * if the LPC layer uses more bitrate than the constraint would have + * permitted. + * @see OPUS_GET_VBR_CONSTRAINT + * @see OPUS_SET_VBR + * @param[in] x opus_int32: Allowed values: + *
+ *
0
Unconstrained VBR.
+ *
1
Constrained VBR (default). This creates a maximum of one + * frame of buffering delay assuming a transport with a + * serialization speed of the nominal bitrate.
+ *
+ * @hideinitializer */ +#define OPUS_SET_VBR_CONSTRAINT(x) OPUS_SET_VBR_CONSTRAINT_REQUEST, __opus_check_int(x) +/** Determine if constrained VBR is enabled in the encoder. + * @see OPUS_SET_VBR_CONSTRAINT + * @see OPUS_GET_VBR + * @param[out] x opus_int32 *: Returns one of the following values: + *
+ *
0
Unconstrained VBR.
+ *
1
Constrained VBR (default).
+ *
+ * @hideinitializer */ +#define OPUS_GET_VBR_CONSTRAINT(x) OPUS_GET_VBR_CONSTRAINT_REQUEST, __opus_check_int_ptr(x) + +/** Configures mono/stereo forcing in the encoder. + * This can force the encoder to produce packets encoded as either mono or + * stereo, regardless of the format of the input audio. This is useful when + * the caller knows that the input signal is currently a mono source embedded + * in a stereo stream. + * @see OPUS_GET_FORCE_CHANNELS + * @param[in] x opus_int32: Allowed values: + *
+ *
#OPUS_AUTO
Not forced (default)
+ *
1
Forced mono
+ *
2
Forced stereo
+ *
+ * @hideinitializer */ +#define OPUS_SET_FORCE_CHANNELS(x) OPUS_SET_FORCE_CHANNELS_REQUEST, __opus_check_int(x) +/** Gets the encoder's forced channel configuration. + * @see OPUS_SET_FORCE_CHANNELS + * @param[out] x opus_int32 *: + *
+ *
#OPUS_AUTO
Not forced (default)
+ *
1
Forced mono
+ *
2
Forced stereo
+ *
+ * @hideinitializer */ +#define OPUS_GET_FORCE_CHANNELS(x) OPUS_GET_FORCE_CHANNELS_REQUEST, __opus_check_int_ptr(x) + +/** Configures the maximum bandpass that the encoder will select automatically. + * Applications should normally use this instead of #OPUS_SET_BANDWIDTH + * (leaving that set to the default, #OPUS_AUTO). This allows the + * application to set an upper bound based on the type of input it is + * providing, but still gives the encoder the freedom to reduce the bandpass + * when the bitrate becomes too low, for better overall quality. + * @see OPUS_GET_MAX_BANDWIDTH + * @param[in] x opus_int32: Allowed values: + *
+ *
OPUS_BANDWIDTH_NARROWBAND
4 kHz passband
+ *
OPUS_BANDWIDTH_MEDIUMBAND
6 kHz passband
+ *
OPUS_BANDWIDTH_WIDEBAND
8 kHz passband
+ *
OPUS_BANDWIDTH_SUPERWIDEBAND
12 kHz passband
+ *
OPUS_BANDWIDTH_FULLBAND
20 kHz passband (default)
+ *
+ * @hideinitializer */ +#define OPUS_SET_MAX_BANDWIDTH(x) OPUS_SET_MAX_BANDWIDTH_REQUEST, __opus_check_int(x) + +/** Gets the encoder's configured maximum allowed bandpass. + * @see OPUS_SET_MAX_BANDWIDTH + * @param[out] x opus_int32 *: Allowed values: + *
+ *
#OPUS_BANDWIDTH_NARROWBAND
4 kHz passband
+ *
#OPUS_BANDWIDTH_MEDIUMBAND
6 kHz passband
+ *
#OPUS_BANDWIDTH_WIDEBAND
8 kHz passband
+ *
#OPUS_BANDWIDTH_SUPERWIDEBAND
12 kHz passband
+ *
#OPUS_BANDWIDTH_FULLBAND
20 kHz passband (default)
+ *
+ * @hideinitializer */ +#define OPUS_GET_MAX_BANDWIDTH(x) OPUS_GET_MAX_BANDWIDTH_REQUEST, __opus_check_int_ptr(x) + +/** Sets the encoder's bandpass to a specific value. + * This prevents the encoder from automatically selecting the bandpass based + * on the available bitrate. If an application knows the bandpass of the input + * audio it is providing, it should normally use #OPUS_SET_MAX_BANDWIDTH + * instead, which still gives the encoder the freedom to reduce the bandpass + * when the bitrate becomes too low, for better overall quality. + * @see OPUS_GET_BANDWIDTH + * @param[in] x opus_int32: Allowed values: + *
+ *
#OPUS_AUTO
(default)
+ *
#OPUS_BANDWIDTH_NARROWBAND
4 kHz passband
+ *
#OPUS_BANDWIDTH_MEDIUMBAND
6 kHz passband
+ *
#OPUS_BANDWIDTH_WIDEBAND
8 kHz passband
+ *
#OPUS_BANDWIDTH_SUPERWIDEBAND
12 kHz passband
+ *
#OPUS_BANDWIDTH_FULLBAND
20 kHz passband
+ *
+ * @hideinitializer */ +#define OPUS_SET_BANDWIDTH(x) OPUS_SET_BANDWIDTH_REQUEST, __opus_check_int(x) + +/** Configures the type of signal being encoded. + * This is a hint which helps the encoder's mode selection. + * @see OPUS_GET_SIGNAL + * @param[in] x opus_int32: Allowed values: + *
+ *
#OPUS_AUTO
(default)
+ *
#OPUS_SIGNAL_VOICE
Bias thresholds towards choosing LPC or Hybrid modes.
+ *
#OPUS_SIGNAL_MUSIC
Bias thresholds towards choosing MDCT modes.
+ *
+ * @hideinitializer */ +#define OPUS_SET_SIGNAL(x) OPUS_SET_SIGNAL_REQUEST, __opus_check_int(x) +/** Gets the encoder's configured signal type. + * @see OPUS_SET_SIGNAL + * @param[out] x opus_int32 *: Returns one of the following values: + *
+ *
#OPUS_AUTO
(default)
+ *
#OPUS_SIGNAL_VOICE
Bias thresholds towards choosing LPC or Hybrid modes.
+ *
#OPUS_SIGNAL_MUSIC
Bias thresholds towards choosing MDCT modes.
+ *
+ * @hideinitializer */ +#define OPUS_GET_SIGNAL(x) OPUS_GET_SIGNAL_REQUEST, __opus_check_int_ptr(x) + + +/** Configures the encoder's intended application. + * The initial value is a mandatory argument to the encoder_create function. + * @see OPUS_GET_APPLICATION + * @param[in] x opus_int32: Returns one of the following values: + *
+ *
#OPUS_APPLICATION_VOIP
+ *
Process signal for improved speech intelligibility.
+ *
#OPUS_APPLICATION_AUDIO
+ *
Favor faithfulness to the original input.
+ *
#OPUS_APPLICATION_RESTRICTED_LOWDELAY
+ *
Configure the minimum possible coding delay by disabling certain modes + * of operation.
+ *
+ * @hideinitializer */ +#define OPUS_SET_APPLICATION(x) OPUS_SET_APPLICATION_REQUEST, __opus_check_int(x) +/** Gets the encoder's configured application. + * @see OPUS_SET_APPLICATION + * @param[out] x opus_int32 *: Returns one of the following values: + *
+ *
#OPUS_APPLICATION_VOIP
+ *
Process signal for improved speech intelligibility.
+ *
#OPUS_APPLICATION_AUDIO
+ *
Favor faithfulness to the original input.
+ *
#OPUS_APPLICATION_RESTRICTED_LOWDELAY
+ *
Configure the minimum possible coding delay by disabling certain modes + * of operation.
+ *
+ * @hideinitializer */ +#define OPUS_GET_APPLICATION(x) OPUS_GET_APPLICATION_REQUEST, __opus_check_int_ptr(x) + +/** Gets the total samples of delay added by the entire codec. + * This can be queried by the encoder and then the provided number of samples can be + * skipped on from the start of the decoder's output to provide time aligned input + * and output. From the perspective of a decoding application the real data begins this many + * samples late. + * + * The decoder contribution to this delay is identical for all decoders, but the + * encoder portion of the delay may vary from implementation to implementation, + * version to version, or even depend on the encoder's initial configuration. + * Applications needing delay compensation should call this CTL rather than + * hard-coding a value. + * @param[out] x opus_int32 *: Number of lookahead samples + * @hideinitializer */ +#define OPUS_GET_LOOKAHEAD(x) OPUS_GET_LOOKAHEAD_REQUEST, __opus_check_int_ptr(x) + +/** Configures the encoder's use of inband forward error correction (FEC). + * @note This is only applicable to the LPC layer + * @see OPUS_GET_INBAND_FEC + * @param[in] x opus_int32: Allowed values: + *
+ *
0
Disable inband FEC (default).
+ *
1
Enable inband FEC.
+ *
+ * @hideinitializer */ +#define OPUS_SET_INBAND_FEC(x) OPUS_SET_INBAND_FEC_REQUEST, __opus_check_int(x) +/** Gets encoder's configured use of inband forward error correction. + * @see OPUS_SET_INBAND_FEC + * @param[out] x opus_int32 *: Returns one of the following values: + *
+ *
0
Inband FEC disabled (default).
+ *
1
Inband FEC enabled.
+ *
+ * @hideinitializer */ +#define OPUS_GET_INBAND_FEC(x) OPUS_GET_INBAND_FEC_REQUEST, __opus_check_int_ptr(x) + +/** Configures the encoder's expected packet loss percentage. + * Higher values trigger progressively more loss resistant behavior in the encoder + * at the expense of quality at a given bitrate in the absence of packet loss, but + * greater quality under loss. + * @see OPUS_GET_PACKET_LOSS_PERC + * @param[in] x opus_int32: Loss percentage in the range 0-100, inclusive (default: 0). + * @hideinitializer */ +#define OPUS_SET_PACKET_LOSS_PERC(x) OPUS_SET_PACKET_LOSS_PERC_REQUEST, __opus_check_int(x) +/** Gets the encoder's configured packet loss percentage. + * @see OPUS_SET_PACKET_LOSS_PERC + * @param[out] x opus_int32 *: Returns the configured loss percentage + * in the range 0-100, inclusive (default: 0). + * @hideinitializer */ +#define OPUS_GET_PACKET_LOSS_PERC(x) OPUS_GET_PACKET_LOSS_PERC_REQUEST, __opus_check_int_ptr(x) + +/** Configures the encoder's use of discontinuous transmission (DTX). + * @note This is only applicable to the LPC layer + * @see OPUS_GET_DTX + * @param[in] x opus_int32: Allowed values: + *
+ *
0
Disable DTX (default).
+ *
1
Enabled DTX.
+ *
+ * @hideinitializer */ +#define OPUS_SET_DTX(x) OPUS_SET_DTX_REQUEST, __opus_check_int(x) +/** Gets encoder's configured use of discontinuous transmission. + * @see OPUS_SET_DTX + * @param[out] x opus_int32 *: Returns one of the following values: + *
+ *
0
DTX disabled (default).
+ *
1
DTX enabled.
+ *
+ * @hideinitializer */ +#define OPUS_GET_DTX(x) OPUS_GET_DTX_REQUEST, __opus_check_int_ptr(x) +/** Configures the depth of signal being encoded. + * + * This is a hint which helps the encoder identify silence and near-silence. + * It represents the number of significant bits of linear intensity below + * which the signal contains ignorable quantization or other noise. + * + * For example, OPUS_SET_LSB_DEPTH(14) would be an appropriate setting + * for G.711 u-law input. OPUS_SET_LSB_DEPTH(16) would be appropriate + * for 16-bit linear pcm input with opus_encode_float(). + * + * When using opus_encode() instead of opus_encode_float(), or when libopus + * is compiled for fixed-point, the encoder uses the minimum of the value + * set here and the value 16. + * + * @see OPUS_GET_LSB_DEPTH + * @param[in] x opus_int32: Input precision in bits, between 8 and 24 + * (default: 24). + * @hideinitializer */ +#define OPUS_SET_LSB_DEPTH(x) OPUS_SET_LSB_DEPTH_REQUEST, __opus_check_int(x) +/** Gets the encoder's configured signal depth. + * @see OPUS_SET_LSB_DEPTH + * @param[out] x opus_int32 *: Input precision in bits, between 8 and + * 24 (default: 24). + * @hideinitializer */ +#define OPUS_GET_LSB_DEPTH(x) OPUS_GET_LSB_DEPTH_REQUEST, __opus_check_int_ptr(x) + +/** Configures the encoder's use of variable duration frames. + * When variable duration is enabled, the encoder is free to use a shorter frame + * size than the one requested in the opus_encode*() call. + * It is then the user's responsibility + * to verify how much audio was encoded by checking the ToC byte of the encoded + * packet. The part of the audio that was not encoded needs to be resent to the + * encoder for the next call. Do not use this option unless you really + * know what you are doing. + * @see OPUS_GET_EXPERT_FRAME_DURATION + * @param[in] x opus_int32: Allowed values: + *
+ *
OPUS_FRAMESIZE_ARG
Select frame size from the argument (default).
+ *
OPUS_FRAMESIZE_2_5_MS
Use 2.5 ms frames.
+ *
OPUS_FRAMESIZE_5_MS
Use 5 ms frames.
+ *
OPUS_FRAMESIZE_10_MS
Use 10 ms frames.
+ *
OPUS_FRAMESIZE_20_MS
Use 20 ms frames.
+ *
OPUS_FRAMESIZE_40_MS
Use 40 ms frames.
+ *
OPUS_FRAMESIZE_60_MS
Use 60 ms frames.
+ *
OPUS_FRAMESIZE_80_MS
Use 80 ms frames.
+ *
OPUS_FRAMESIZE_100_MS
Use 100 ms frames.
+ *
OPUS_FRAMESIZE_120_MS
Use 120 ms frames.
+ *
+ * @hideinitializer */ +#define OPUS_SET_EXPERT_FRAME_DURATION(x) OPUS_SET_EXPERT_FRAME_DURATION_REQUEST, __opus_check_int(x) +/** Gets the encoder's configured use of variable duration frames. + * @see OPUS_SET_EXPERT_FRAME_DURATION + * @param[out] x opus_int32 *: Returns one of the following values: + *
+ *
OPUS_FRAMESIZE_ARG
Select frame size from the argument (default).
+ *
OPUS_FRAMESIZE_2_5_MS
Use 2.5 ms frames.
+ *
OPUS_FRAMESIZE_5_MS
Use 5 ms frames.
+ *
OPUS_FRAMESIZE_10_MS
Use 10 ms frames.
+ *
OPUS_FRAMESIZE_20_MS
Use 20 ms frames.
+ *
OPUS_FRAMESIZE_40_MS
Use 40 ms frames.
+ *
OPUS_FRAMESIZE_60_MS
Use 60 ms frames.
+ *
OPUS_FRAMESIZE_80_MS
Use 80 ms frames.
+ *
OPUS_FRAMESIZE_100_MS
Use 100 ms frames.
+ *
OPUS_FRAMESIZE_120_MS
Use 120 ms frames.
+ *
+ * @hideinitializer */ +#define OPUS_GET_EXPERT_FRAME_DURATION(x) OPUS_GET_EXPERT_FRAME_DURATION_REQUEST, __opus_check_int_ptr(x) + +/** If set to 1, disables almost all use of prediction, making frames almost + * completely independent. This reduces quality. + * @see OPUS_GET_PREDICTION_DISABLED + * @param[in] x opus_int32: Allowed values: + *
+ *
0
Enable prediction (default).
+ *
1
Disable prediction.
+ *
+ * @hideinitializer */ +#define OPUS_SET_PREDICTION_DISABLED(x) OPUS_SET_PREDICTION_DISABLED_REQUEST, __opus_check_int(x) +/** Gets the encoder's configured prediction status. + * @see OPUS_SET_PREDICTION_DISABLED + * @param[out] x opus_int32 *: Returns one of the following values: + *
+ *
0
Prediction enabled (default).
+ *
1
Prediction disabled.
+ *
+ * @hideinitializer */ +#define OPUS_GET_PREDICTION_DISABLED(x) OPUS_GET_PREDICTION_DISABLED_REQUEST, __opus_check_int_ptr(x) + +/**@}*/ + +/** @defgroup opus_genericctls Generic CTLs + * + * These macros are used with the \c opus_decoder_ctl and + * \c opus_encoder_ctl calls to generate a particular + * request. + * + * When called on an \c OpusDecoder they apply to that + * particular decoder instance. When called on an + * \c OpusEncoder they apply to the corresponding setting + * on that encoder instance, if present. + * + * Some usage examples: + * + * @code + * int ret; + * opus_int32 pitch; + * ret = opus_decoder_ctl(dec_ctx, OPUS_GET_PITCH(&pitch)); + * if (ret == OPUS_OK) return ret; + * + * opus_encoder_ctl(enc_ctx, OPUS_RESET_STATE); + * opus_decoder_ctl(dec_ctx, OPUS_RESET_STATE); + * + * opus_int32 enc_bw, dec_bw; + * opus_encoder_ctl(enc_ctx, OPUS_GET_BANDWIDTH(&enc_bw)); + * opus_decoder_ctl(dec_ctx, OPUS_GET_BANDWIDTH(&dec_bw)); + * if (enc_bw != dec_bw) { + * printf("packet bandwidth mismatch!\n"); + * } + * @endcode + * + * @see opus_encoder, opus_decoder_ctl, opus_encoder_ctl, opus_decoderctls, opus_encoderctls + * @{ + */ + +/** Resets the codec state to be equivalent to a freshly initialized state. + * This should be called when switching streams in order to prevent + * the back to back decoding from giving different results from + * one at a time decoding. + * @hideinitializer */ +#define OPUS_RESET_STATE 4028 + +/** Gets the final state of the codec's entropy coder. + * This is used for testing purposes, + * The encoder and decoder state should be identical after coding a payload + * (assuming no data corruption or software bugs) + * + * @param[out] x opus_uint32 *: Entropy coder state + * + * @hideinitializer */ +#define OPUS_GET_FINAL_RANGE(x) OPUS_GET_FINAL_RANGE_REQUEST, __opus_check_uint_ptr(x) + +/** Gets the encoder's configured bandpass or the decoder's last bandpass. + * @see OPUS_SET_BANDWIDTH + * @param[out] x opus_int32 *: Returns one of the following values: + *
+ *
#OPUS_AUTO
(default)
+ *
#OPUS_BANDWIDTH_NARROWBAND
4 kHz passband
+ *
#OPUS_BANDWIDTH_MEDIUMBAND
6 kHz passband
+ *
#OPUS_BANDWIDTH_WIDEBAND
8 kHz passband
+ *
#OPUS_BANDWIDTH_SUPERWIDEBAND
12 kHz passband
+ *
#OPUS_BANDWIDTH_FULLBAND
20 kHz passband
+ *
+ * @hideinitializer */ +#define OPUS_GET_BANDWIDTH(x) OPUS_GET_BANDWIDTH_REQUEST, __opus_check_int_ptr(x) + +/** Gets the sampling rate the encoder or decoder was initialized with. + * This simply returns the Fs value passed to opus_encoder_init() + * or opus_decoder_init(). + * @param[out] x opus_int32 *: Sampling rate of encoder or decoder. + * @hideinitializer + */ +#define OPUS_GET_SAMPLE_RATE(x) OPUS_GET_SAMPLE_RATE_REQUEST, __opus_check_int_ptr(x) + +/** If set to 1, disables the use of phase inversion for intensity stereo, + * improving the quality of mono downmixes, but slightly reducing normal + * stereo quality. Disabling phase inversion in the decoder does not comply + * with RFC 6716, although it does not cause any interoperability issue and + * is expected to become part of the Opus standard once RFC 6716 is updated + * by draft-ietf-codec-opus-update. + * @see OPUS_GET_PHASE_INVERSION_DISABLED + * @param[in] x opus_int32: Allowed values: + *
+ *
0
Enable phase inversion (default).
+ *
1
Disable phase inversion.
+ *
+ * @hideinitializer */ +#define OPUS_SET_PHASE_INVERSION_DISABLED(x) OPUS_SET_PHASE_INVERSION_DISABLED_REQUEST, __opus_check_int(x) +/** Gets the encoder's configured phase inversion status. + * @see OPUS_SET_PHASE_INVERSION_DISABLED + * @param[out] x opus_int32 *: Returns one of the following values: + *
+ *
0
Stereo phase inversion enabled (default).
+ *
1
Stereo phase inversion disabled.
+ *
+ * @hideinitializer */ +#define OPUS_GET_PHASE_INVERSION_DISABLED(x) OPUS_GET_PHASE_INVERSION_DISABLED_REQUEST, __opus_check_int_ptr(x) +/** Gets the DTX state of the encoder. + * Returns whether the last encoded frame was either a comfort noise update + * during DTX or not encoded because of DTX. + * @param[out] x opus_int32 *: Returns one of the following values: + *
+ *
0
The encoder is not in DTX.
+ *
1
The encoder is in DTX.
+ *
+ * @hideinitializer */ +#define OPUS_GET_IN_DTX(x) OPUS_GET_IN_DTX_REQUEST, __opus_check_int_ptr(x) + +/**@}*/ + +/** @defgroup opus_decoderctls Decoder related CTLs + * @see opus_genericctls, opus_encoderctls, opus_decoder + * @{ + */ + +/** Configures decoder gain adjustment. + * Scales the decoded output by a factor specified in Q8 dB units. + * This has a maximum range of -32768 to 32767 inclusive, and returns + * OPUS_BAD_ARG otherwise. The default is zero indicating no adjustment. + * This setting survives decoder reset. + * + * gain = pow(10, x/(20.0*256)) + * + * @param[in] x opus_int32: Amount to scale PCM signal by in Q8 dB units. + * @hideinitializer */ +#define OPUS_SET_GAIN(x) OPUS_SET_GAIN_REQUEST, __opus_check_int(x) +/** Gets the decoder's configured gain adjustment. @see OPUS_SET_GAIN + * + * @param[out] x opus_int32 *: Amount to scale PCM signal by in Q8 dB units. + * @hideinitializer */ +#define OPUS_GET_GAIN(x) OPUS_GET_GAIN_REQUEST, __opus_check_int_ptr(x) + +/** Gets the duration (in samples) of the last packet successfully decoded or concealed. + * @param[out] x opus_int32 *: Number of samples (at current sampling rate). + * @hideinitializer */ +#define OPUS_GET_LAST_PACKET_DURATION(x) OPUS_GET_LAST_PACKET_DURATION_REQUEST, __opus_check_int_ptr(x) + +/** Gets the pitch of the last decoded frame, if available. + * This can be used for any post-processing algorithm requiring the use of pitch, + * e.g. time stretching/shortening. If the last frame was not voiced, or if the + * pitch was not coded in the frame, then zero is returned. + * + * This CTL is only implemented for decoder instances. + * + * @param[out] x opus_int32 *: pitch period at 48 kHz (or 0 if not available) + * + * @hideinitializer */ +#define OPUS_GET_PITCH(x) OPUS_GET_PITCH_REQUEST, __opus_check_int_ptr(x) + +/**@}*/ + +/** @defgroup opus_libinfo Opus library information functions + * @{ + */ + +/** Converts an opus error code into a human readable string. + * + * @param[in] error int: Error number + * @returns Error string + */ +OPUS_EXPORT const char *opus_strerror(int error); + +/** Gets the libopus version string. + * + * Applications may look for the substring "-fixed" in the version string to + * determine whether they have a fixed-point or floating-point build at + * runtime. + * + * @returns Version string + */ +OPUS_EXPORT const char *opus_get_version_string(void); +/**@}*/ + +#ifdef __cplusplus +} +#endif + +#endif /* OPUS_DEFINES_H */ diff --git a/components/opus/libopus/include/opus_multistream.h b/components/opus/libopus/include/opus_multistream.h new file mode 100644 index 0000000..babcee6 --- /dev/null +++ b/components/opus/libopus/include/opus_multistream.h @@ -0,0 +1,660 @@ +/* Copyright (c) 2011 Xiph.Org Foundation + Written by Jean-Marc Valin */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/** + * @file opus_multistream.h + * @brief Opus reference implementation multistream API + */ + +#ifndef OPUS_MULTISTREAM_H +#define OPUS_MULTISTREAM_H + +#include "opus.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/** @cond OPUS_INTERNAL_DOC */ + +/** Macros to trigger compilation errors when the wrong types are provided to a + * CTL. */ +/**@{*/ +#define __opus_check_encstate_ptr(ptr) ((ptr) + ((ptr) - (OpusEncoder**)(ptr))) +#define __opus_check_decstate_ptr(ptr) ((ptr) + ((ptr) - (OpusDecoder**)(ptr))) +/**@}*/ + +/** These are the actual encoder and decoder CTL ID numbers. + * They should not be used directly by applications. + * In general, SETs should be even and GETs should be odd.*/ +/**@{*/ +#define OPUS_MULTISTREAM_GET_ENCODER_STATE_REQUEST 5120 +#define OPUS_MULTISTREAM_GET_DECODER_STATE_REQUEST 5122 +/**@}*/ + +/** @endcond */ + +/** @defgroup opus_multistream_ctls Multistream specific encoder and decoder CTLs + * + * These are convenience macros that are specific to the + * opus_multistream_encoder_ctl() and opus_multistream_decoder_ctl() + * interface. + * The CTLs from @ref opus_genericctls, @ref opus_encoderctls, and + * @ref opus_decoderctls may be applied to a multistream encoder or decoder as + * well. + * In addition, you may retrieve the encoder or decoder state for an specific + * stream via #OPUS_MULTISTREAM_GET_ENCODER_STATE or + * #OPUS_MULTISTREAM_GET_DECODER_STATE and apply CTLs to it individually. + */ +/**@{*/ + +/** Gets the encoder state for an individual stream of a multistream encoder. + * @param[in] x opus_int32: The index of the stream whose encoder you + * wish to retrieve. + * This must be non-negative and less than + * the streams parameter used + * to initialize the encoder. + * @param[out] y OpusEncoder**: Returns a pointer to the given + * encoder state. + * @retval OPUS_BAD_ARG The index of the requested stream was out of range. + * @hideinitializer + */ +#define OPUS_MULTISTREAM_GET_ENCODER_STATE(x,y) OPUS_MULTISTREAM_GET_ENCODER_STATE_REQUEST, __opus_check_int(x), __opus_check_encstate_ptr(y) + +/** Gets the decoder state for an individual stream of a multistream decoder. + * @param[in] x opus_int32: The index of the stream whose decoder you + * wish to retrieve. + * This must be non-negative and less than + * the streams parameter used + * to initialize the decoder. + * @param[out] y OpusDecoder**: Returns a pointer to the given + * decoder state. + * @retval OPUS_BAD_ARG The index of the requested stream was out of range. + * @hideinitializer + */ +#define OPUS_MULTISTREAM_GET_DECODER_STATE(x,y) OPUS_MULTISTREAM_GET_DECODER_STATE_REQUEST, __opus_check_int(x), __opus_check_decstate_ptr(y) + +/**@}*/ + +/** @defgroup opus_multistream Opus Multistream API + * @{ + * + * The multistream API allows individual Opus streams to be combined into a + * single packet, enabling support for up to 255 channels. Unlike an + * elementary Opus stream, the encoder and decoder must negotiate the channel + * configuration before the decoder can successfully interpret the data in the + * packets produced by the encoder. Some basic information, such as packet + * duration, can be computed without any special negotiation. + * + * The format for multistream Opus packets is defined in + * RFC 7845 + * and is based on the self-delimited Opus framing described in Appendix B of + * RFC 6716. + * Normal Opus packets are just a degenerate case of multistream Opus packets, + * and can be encoded or decoded with the multistream API by setting + * streams to 1 when initializing the encoder or + * decoder. + * + * Multistream Opus streams can contain up to 255 elementary Opus streams. + * These may be either "uncoupled" or "coupled", indicating that the decoder + * is configured to decode them to either 1 or 2 channels, respectively. + * The streams are ordered so that all coupled streams appear at the + * beginning. + * + * A mapping table defines which decoded channel i + * should be used for each input/output (I/O) channel j. This table is + * typically provided as an unsigned char array. + * Let i = mapping[j] be the index for I/O channel j. + * If i < 2*coupled_streams, then I/O channel j is + * encoded as the left channel of stream (i/2) if i + * is even, or as the right channel of stream (i/2) if + * i is odd. Otherwise, I/O channel j is encoded as + * mono in stream (i - coupled_streams), unless it has the special + * value 255, in which case it is omitted from the encoding entirely (the + * decoder will reproduce it as silence). Each value i must either + * be the special value 255 or be less than streams + coupled_streams. + * + * The output channels specified by the encoder + * should use the + * Vorbis + * channel ordering. A decoder may wish to apply an additional permutation + * to the mapping the encoder used to achieve a different output channel + * order (e.g. for outputing in WAV order). + * + * Each multistream packet contains an Opus packet for each stream, and all of + * the Opus packets in a single multistream packet must have the same + * duration. Therefore the duration of a multistream packet can be extracted + * from the TOC sequence of the first stream, which is located at the + * beginning of the packet, just like an elementary Opus stream: + * + * @code + * int nb_samples; + * int nb_frames; + * nb_frames = opus_packet_get_nb_frames(data, len); + * if (nb_frames < 1) + * return nb_frames; + * nb_samples = opus_packet_get_samples_per_frame(data, 48000) * nb_frames; + * @endcode + * + * The general encoding and decoding process proceeds exactly the same as in + * the normal @ref opus_encoder and @ref opus_decoder APIs. + * See their documentation for an overview of how to use the corresponding + * multistream functions. + */ + +/** Opus multistream encoder state. + * This contains the complete state of a multistream Opus encoder. + * It is position independent and can be freely copied. + * @see opus_multistream_encoder_create + * @see opus_multistream_encoder_init + */ +typedef struct OpusMSEncoder OpusMSEncoder; + +/** Opus multistream decoder state. + * This contains the complete state of a multistream Opus decoder. + * It is position independent and can be freely copied. + * @see opus_multistream_decoder_create + * @see opus_multistream_decoder_init + */ +typedef struct OpusMSDecoder OpusMSDecoder; + +/**\name Multistream encoder functions */ +/**@{*/ + +/** Gets the size of an OpusMSEncoder structure. + * @param streams int: The total number of streams to encode from the + * input. + * This must be no more than 255. + * @param coupled_streams int: Number of coupled (2 channel) streams + * to encode. + * This must be no larger than the total + * number of streams. + * Additionally, The total number of + * encoded channels (streams + + * coupled_streams) must be no + * more than 255. + * @returns The size in bytes on success, or a negative error code + * (see @ref opus_errorcodes) on error. + */ +OPUS_EXPORT OPUS_WARN_UNUSED_RESULT opus_int32 opus_multistream_encoder_get_size( + int streams, + int coupled_streams +); + +OPUS_EXPORT OPUS_WARN_UNUSED_RESULT opus_int32 opus_multistream_surround_encoder_get_size( + int channels, + int mapping_family +); + + +/** Allocates and initializes a multistream encoder state. + * Call opus_multistream_encoder_destroy() to release + * this object when finished. + * @param Fs opus_int32: Sampling rate of the input signal (in Hz). + * This must be one of 8000, 12000, 16000, + * 24000, or 48000. + * @param channels int: Number of channels in the input signal. + * This must be at most 255. + * It may be greater than the number of + * coded channels (streams + + * coupled_streams). + * @param streams int: The total number of streams to encode from the + * input. + * This must be no more than the number of channels. + * @param coupled_streams int: Number of coupled (2 channel) streams + * to encode. + * This must be no larger than the total + * number of streams. + * Additionally, The total number of + * encoded channels (streams + + * coupled_streams) must be no + * more than the number of input channels. + * @param[in] mapping const unsigned char[channels]: Mapping from + * encoded channels to input channels, as described in + * @ref opus_multistream. As an extra constraint, the + * multistream encoder does not allow encoding coupled + * streams for which one channel is unused since this + * is never a good idea. + * @param application int: The target encoder application. + * This must be one of the following: + *
+ *
#OPUS_APPLICATION_VOIP
+ *
Process signal for improved speech intelligibility.
+ *
#OPUS_APPLICATION_AUDIO
+ *
Favor faithfulness to the original input.
+ *
#OPUS_APPLICATION_RESTRICTED_LOWDELAY
+ *
Configure the minimum possible coding delay by disabling certain modes + * of operation.
+ *
+ * @param[out] error int *: Returns #OPUS_OK on success, or an error + * code (see @ref opus_errorcodes) on + * failure. + */ +OPUS_EXPORT OPUS_WARN_UNUSED_RESULT OpusMSEncoder *opus_multistream_encoder_create( + opus_int32 Fs, + int channels, + int streams, + int coupled_streams, + const unsigned char *mapping, + int application, + int *error +) OPUS_ARG_NONNULL(5); + +OPUS_EXPORT OPUS_WARN_UNUSED_RESULT OpusMSEncoder *opus_multistream_surround_encoder_create( + opus_int32 Fs, + int channels, + int mapping_family, + int *streams, + int *coupled_streams, + unsigned char *mapping, + int application, + int *error +) OPUS_ARG_NONNULL(4) OPUS_ARG_NONNULL(5) OPUS_ARG_NONNULL(6); + +/** Initialize a previously allocated multistream encoder state. + * The memory pointed to by \a st must be at least the size returned by + * opus_multistream_encoder_get_size(). + * This is intended for applications which use their own allocator instead of + * malloc. + * To reset a previously initialized state, use the #OPUS_RESET_STATE CTL. + * @see opus_multistream_encoder_create + * @see opus_multistream_encoder_get_size + * @param st OpusMSEncoder*: Multistream encoder state to initialize. + * @param Fs opus_int32: Sampling rate of the input signal (in Hz). + * This must be one of 8000, 12000, 16000, + * 24000, or 48000. + * @param channels int: Number of channels in the input signal. + * This must be at most 255. + * It may be greater than the number of + * coded channels (streams + + * coupled_streams). + * @param streams int: The total number of streams to encode from the + * input. + * This must be no more than the number of channels. + * @param coupled_streams int: Number of coupled (2 channel) streams + * to encode. + * This must be no larger than the total + * number of streams. + * Additionally, The total number of + * encoded channels (streams + + * coupled_streams) must be no + * more than the number of input channels. + * @param[in] mapping const unsigned char[channels]: Mapping from + * encoded channels to input channels, as described in + * @ref opus_multistream. As an extra constraint, the + * multistream encoder does not allow encoding coupled + * streams for which one channel is unused since this + * is never a good idea. + * @param application int: The target encoder application. + * This must be one of the following: + *
+ *
#OPUS_APPLICATION_VOIP
+ *
Process signal for improved speech intelligibility.
+ *
#OPUS_APPLICATION_AUDIO
+ *
Favor faithfulness to the original input.
+ *
#OPUS_APPLICATION_RESTRICTED_LOWDELAY
+ *
Configure the minimum possible coding delay by disabling certain modes + * of operation.
+ *
+ * @returns #OPUS_OK on success, or an error code (see @ref opus_errorcodes) + * on failure. + */ +OPUS_EXPORT int opus_multistream_encoder_init( + OpusMSEncoder *st, + opus_int32 Fs, + int channels, + int streams, + int coupled_streams, + const unsigned char *mapping, + int application +) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(6); + +OPUS_EXPORT int opus_multistream_surround_encoder_init( + OpusMSEncoder *st, + opus_int32 Fs, + int channels, + int mapping_family, + int *streams, + int *coupled_streams, + unsigned char *mapping, + int application +) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(5) OPUS_ARG_NONNULL(6) OPUS_ARG_NONNULL(7); + +/** Encodes a multistream Opus frame. + * @param st OpusMSEncoder*: Multistream encoder state. + * @param[in] pcm const opus_int16*: The input signal as interleaved + * samples. + * This must contain + * frame_size*channels + * samples. + * @param frame_size int: Number of samples per channel in the input + * signal. + * This must be an Opus frame size for the + * encoder's sampling rate. + * For example, at 48 kHz the permitted values + * are 120, 240, 480, 960, 1920, and 2880. + * Passing in a duration of less than 10 ms + * (480 samples at 48 kHz) will prevent the + * encoder from using the LPC or hybrid modes. + * @param[out] data unsigned char*: Output payload. + * This must contain storage for at + * least \a max_data_bytes. + * @param [in] max_data_bytes opus_int32: Size of the allocated + * memory for the output + * payload. This may be + * used to impose an upper limit on + * the instant bitrate, but should + * not be used as the only bitrate + * control. Use #OPUS_SET_BITRATE to + * control the bitrate. + * @returns The length of the encoded packet (in bytes) on success or a + * negative error code (see @ref opus_errorcodes) on failure. + */ +OPUS_EXPORT OPUS_WARN_UNUSED_RESULT int opus_multistream_encode( + OpusMSEncoder *st, + const opus_int16 *pcm, + int frame_size, + unsigned char *data, + opus_int32 max_data_bytes +) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(2) OPUS_ARG_NONNULL(4); + +/** Encodes a multistream Opus frame from floating point input. + * @param st OpusMSEncoder*: Multistream encoder state. + * @param[in] pcm const float*: The input signal as interleaved + * samples with a normal range of + * +/-1.0. + * Samples with a range beyond +/-1.0 + * are supported but will be clipped by + * decoders using the integer API and + * should only be used if it is known + * that the far end supports extended + * dynamic range. + * This must contain + * frame_size*channels + * samples. + * @param frame_size int: Number of samples per channel in the input + * signal. + * This must be an Opus frame size for the + * encoder's sampling rate. + * For example, at 48 kHz the permitted values + * are 120, 240, 480, 960, 1920, and 2880. + * Passing in a duration of less than 10 ms + * (480 samples at 48 kHz) will prevent the + * encoder from using the LPC or hybrid modes. + * @param[out] data unsigned char*: Output payload. + * This must contain storage for at + * least \a max_data_bytes. + * @param [in] max_data_bytes opus_int32: Size of the allocated + * memory for the output + * payload. This may be + * used to impose an upper limit on + * the instant bitrate, but should + * not be used as the only bitrate + * control. Use #OPUS_SET_BITRATE to + * control the bitrate. + * @returns The length of the encoded packet (in bytes) on success or a + * negative error code (see @ref opus_errorcodes) on failure. + */ +OPUS_EXPORT OPUS_WARN_UNUSED_RESULT int opus_multistream_encode_float( + OpusMSEncoder *st, + const float *pcm, + int frame_size, + unsigned char *data, + opus_int32 max_data_bytes +) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(2) OPUS_ARG_NONNULL(4); + +/** Frees an OpusMSEncoder allocated by + * opus_multistream_encoder_create(). + * @param st OpusMSEncoder*: Multistream encoder state to be freed. + */ +OPUS_EXPORT void opus_multistream_encoder_destroy(OpusMSEncoder *st); + +/** Perform a CTL function on a multistream Opus encoder. + * + * Generally the request and subsequent arguments are generated by a + * convenience macro. + * @param st OpusMSEncoder*: Multistream encoder state. + * @param request This and all remaining parameters should be replaced by one + * of the convenience macros in @ref opus_genericctls, + * @ref opus_encoderctls, or @ref opus_multistream_ctls. + * @see opus_genericctls + * @see opus_encoderctls + * @see opus_multistream_ctls + */ +OPUS_EXPORT int opus_multistream_encoder_ctl(OpusMSEncoder *st, int request, ...) OPUS_ARG_NONNULL(1); + +/**@}*/ + +/**\name Multistream decoder functions */ +/**@{*/ + +/** Gets the size of an OpusMSDecoder structure. + * @param streams int: The total number of streams coded in the + * input. + * This must be no more than 255. + * @param coupled_streams int: Number streams to decode as coupled + * (2 channel) streams. + * This must be no larger than the total + * number of streams. + * Additionally, The total number of + * coded channels (streams + + * coupled_streams) must be no + * more than 255. + * @returns The size in bytes on success, or a negative error code + * (see @ref opus_errorcodes) on error. + */ +OPUS_EXPORT OPUS_WARN_UNUSED_RESULT opus_int32 opus_multistream_decoder_get_size( + int streams, + int coupled_streams +); + +/** Allocates and initializes a multistream decoder state. + * Call opus_multistream_decoder_destroy() to release + * this object when finished. + * @param Fs opus_int32: Sampling rate to decode at (in Hz). + * This must be one of 8000, 12000, 16000, + * 24000, or 48000. + * @param channels int: Number of channels to output. + * This must be at most 255. + * It may be different from the number of coded + * channels (streams + + * coupled_streams). + * @param streams int: The total number of streams coded in the + * input. + * This must be no more than 255. + * @param coupled_streams int: Number of streams to decode as coupled + * (2 channel) streams. + * This must be no larger than the total + * number of streams. + * Additionally, The total number of + * coded channels (streams + + * coupled_streams) must be no + * more than 255. + * @param[in] mapping const unsigned char[channels]: Mapping from + * coded channels to output channels, as described in + * @ref opus_multistream. + * @param[out] error int *: Returns #OPUS_OK on success, or an error + * code (see @ref opus_errorcodes) on + * failure. + */ +OPUS_EXPORT OPUS_WARN_UNUSED_RESULT OpusMSDecoder *opus_multistream_decoder_create( + opus_int32 Fs, + int channels, + int streams, + int coupled_streams, + const unsigned char *mapping, + int *error +) OPUS_ARG_NONNULL(5); + +/** Intialize a previously allocated decoder state object. + * The memory pointed to by \a st must be at least the size returned by + * opus_multistream_encoder_get_size(). + * This is intended for applications which use their own allocator instead of + * malloc. + * To reset a previously initialized state, use the #OPUS_RESET_STATE CTL. + * @see opus_multistream_decoder_create + * @see opus_multistream_deocder_get_size + * @param st OpusMSEncoder*: Multistream encoder state to initialize. + * @param Fs opus_int32: Sampling rate to decode at (in Hz). + * This must be one of 8000, 12000, 16000, + * 24000, or 48000. + * @param channels int: Number of channels to output. + * This must be at most 255. + * It may be different from the number of coded + * channels (streams + + * coupled_streams). + * @param streams int: The total number of streams coded in the + * input. + * This must be no more than 255. + * @param coupled_streams int: Number of streams to decode as coupled + * (2 channel) streams. + * This must be no larger than the total + * number of streams. + * Additionally, The total number of + * coded channels (streams + + * coupled_streams) must be no + * more than 255. + * @param[in] mapping const unsigned char[channels]: Mapping from + * coded channels to output channels, as described in + * @ref opus_multistream. + * @returns #OPUS_OK on success, or an error code (see @ref opus_errorcodes) + * on failure. + */ +OPUS_EXPORT int opus_multistream_decoder_init( + OpusMSDecoder *st, + opus_int32 Fs, + int channels, + int streams, + int coupled_streams, + const unsigned char *mapping +) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(6); + +/** Decode a multistream Opus packet. + * @param st OpusMSDecoder*: Multistream decoder state. + * @param[in] data const unsigned char*: Input payload. + * Use a NULL + * pointer to indicate packet + * loss. + * @param len opus_int32: Number of bytes in payload. + * @param[out] pcm opus_int16*: Output signal, with interleaved + * samples. + * This must contain room for + * frame_size*channels + * samples. + * @param frame_size int: The number of samples per channel of + * available space in \a pcm. + * If this is less than the maximum packet duration + * (120 ms; 5760 for 48kHz), this function will not be capable + * of decoding some packets. In the case of PLC (data==NULL) + * or FEC (decode_fec=1), then frame_size needs to be exactly + * the duration of audio that is missing, otherwise the + * decoder will not be in the optimal state to decode the + * next incoming packet. For the PLC and FEC cases, frame_size + * must be a multiple of 2.5 ms. + * @param decode_fec int: Flag (0 or 1) to request that any in-band + * forward error correction data be decoded. + * If no such data is available, the frame is + * decoded as if it were lost. + * @returns Number of samples decoded on success or a negative error code + * (see @ref opus_errorcodes) on failure. + */ +OPUS_EXPORT OPUS_WARN_UNUSED_RESULT int opus_multistream_decode( + OpusMSDecoder *st, + const unsigned char *data, + opus_int32 len, + opus_int16 *pcm, + int frame_size, + int decode_fec +) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(4); + +/** Decode a multistream Opus packet with floating point output. + * @param st OpusMSDecoder*: Multistream decoder state. + * @param[in] data const unsigned char*: Input payload. + * Use a NULL + * pointer to indicate packet + * loss. + * @param len opus_int32: Number of bytes in payload. + * @param[out] pcm opus_int16*: Output signal, with interleaved + * samples. + * This must contain room for + * frame_size*channels + * samples. + * @param frame_size int: The number of samples per channel of + * available space in \a pcm. + * If this is less than the maximum packet duration + * (120 ms; 5760 for 48kHz), this function will not be capable + * of decoding some packets. In the case of PLC (data==NULL) + * or FEC (decode_fec=1), then frame_size needs to be exactly + * the duration of audio that is missing, otherwise the + * decoder will not be in the optimal state to decode the + * next incoming packet. For the PLC and FEC cases, frame_size + * must be a multiple of 2.5 ms. + * @param decode_fec int: Flag (0 or 1) to request that any in-band + * forward error correction data be decoded. + * If no such data is available, the frame is + * decoded as if it were lost. + * @returns Number of samples decoded on success or a negative error code + * (see @ref opus_errorcodes) on failure. + */ +OPUS_EXPORT OPUS_WARN_UNUSED_RESULT int opus_multistream_decode_float( + OpusMSDecoder *st, + const unsigned char *data, + opus_int32 len, + float *pcm, + int frame_size, + int decode_fec +) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(4); + +/** Perform a CTL function on a multistream Opus decoder. + * + * Generally the request and subsequent arguments are generated by a + * convenience macro. + * @param st OpusMSDecoder*: Multistream decoder state. + * @param request This and all remaining parameters should be replaced by one + * of the convenience macros in @ref opus_genericctls, + * @ref opus_decoderctls, or @ref opus_multistream_ctls. + * @see opus_genericctls + * @see opus_decoderctls + * @see opus_multistream_ctls + */ +OPUS_EXPORT int opus_multistream_decoder_ctl(OpusMSDecoder *st, int request, ...) OPUS_ARG_NONNULL(1); + +/** Frees an OpusMSDecoder allocated by + * opus_multistream_decoder_create(). + * @param st OpusMSDecoder: Multistream decoder state to be freed. + */ +OPUS_EXPORT void opus_multistream_decoder_destroy(OpusMSDecoder *st); + +/**@}*/ + +/**@}*/ + +#ifdef __cplusplus +} +#endif + +#endif /* OPUS_MULTISTREAM_H */ diff --git a/components/opus/libopus/include/opus_projection.h b/components/opus/libopus/include/opus_projection.h new file mode 100644 index 0000000..9dabf4e --- /dev/null +++ b/components/opus/libopus/include/opus_projection.h @@ -0,0 +1,568 @@ +/* Copyright (c) 2017 Google Inc. + Written by Andrew Allen */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/** + * @file opus_projection.h + * @brief Opus projection reference API + */ + +#ifndef OPUS_PROJECTION_H +#define OPUS_PROJECTION_H + +#include "opus_multistream.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/** @cond OPUS_INTERNAL_DOC */ + +/** These are the actual encoder and decoder CTL ID numbers. + * They should not be used directly by applications.c + * In general, SETs should be even and GETs should be odd.*/ +/**@{*/ +#define OPUS_PROJECTION_GET_DEMIXING_MATRIX_GAIN_REQUEST 6001 +#define OPUS_PROJECTION_GET_DEMIXING_MATRIX_SIZE_REQUEST 6003 +#define OPUS_PROJECTION_GET_DEMIXING_MATRIX_REQUEST 6005 +/**@}*/ + + +/** @endcond */ + +/** @defgroup opus_projection_ctls Projection specific encoder and decoder CTLs + * + * These are convenience macros that are specific to the + * opus_projection_encoder_ctl() and opus_projection_decoder_ctl() + * interface. + * The CTLs from @ref opus_genericctls, @ref opus_encoderctls, + * @ref opus_decoderctls, and @ref opus_multistream_ctls may be applied to a + * projection encoder or decoder as well. + */ +/**@{*/ + +/** Gets the gain (in dB. S7.8-format) of the demixing matrix from the encoder. + * @param[out] x opus_int32 *: Returns the gain (in dB. S7.8-format) + * of the demixing matrix. + * @hideinitializer + */ +#define OPUS_PROJECTION_GET_DEMIXING_MATRIX_GAIN(x) OPUS_PROJECTION_GET_DEMIXING_MATRIX_GAIN_REQUEST, __opus_check_int_ptr(x) + + +/** Gets the size in bytes of the demixing matrix from the encoder. + * @param[out] x opus_int32 *: Returns the size in bytes of the + * demixing matrix. + * @hideinitializer + */ +#define OPUS_PROJECTION_GET_DEMIXING_MATRIX_SIZE(x) OPUS_PROJECTION_GET_DEMIXING_MATRIX_SIZE_REQUEST, __opus_check_int_ptr(x) + + +/** Copies the demixing matrix to the supplied pointer location. + * @param[out] x unsigned char *: Returns the demixing matrix to the + * supplied pointer location. + * @param y opus_int32: The size in bytes of the reserved memory at the + * pointer location. + * @hideinitializer + */ +#define OPUS_PROJECTION_GET_DEMIXING_MATRIX(x,y) OPUS_PROJECTION_GET_DEMIXING_MATRIX_REQUEST, x, __opus_check_int(y) + + +/**@}*/ + +/** Opus projection encoder state. + * This contains the complete state of a projection Opus encoder. + * It is position independent and can be freely copied. + * @see opus_projection_ambisonics_encoder_create + */ +typedef struct OpusProjectionEncoder OpusProjectionEncoder; + + +/** Opus projection decoder state. + * This contains the complete state of a projection Opus decoder. + * It is position independent and can be freely copied. + * @see opus_projection_decoder_create + * @see opus_projection_decoder_init + */ +typedef struct OpusProjectionDecoder OpusProjectionDecoder; + + +/**\name Projection encoder functions */ +/**@{*/ + +/** Gets the size of an OpusProjectionEncoder structure. + * @param channels int: The total number of input channels to encode. + * This must be no more than 255. + * @param mapping_family int: The mapping family to use for selecting + * the appropriate projection. + * @returns The size in bytes on success, or a negative error code + * (see @ref opus_errorcodes) on error. + */ +OPUS_EXPORT OPUS_WARN_UNUSED_RESULT opus_int32 opus_projection_ambisonics_encoder_get_size( + int channels, + int mapping_family +); + + +/** Allocates and initializes a projection encoder state. + * Call opus_projection_encoder_destroy() to release + * this object when finished. + * @param Fs opus_int32: Sampling rate of the input signal (in Hz). + * This must be one of 8000, 12000, 16000, + * 24000, or 48000. + * @param channels int: Number of channels in the input signal. + * This must be at most 255. + * It may be greater than the number of + * coded channels (streams + + * coupled_streams). + * @param mapping_family int: The mapping family to use for selecting + * the appropriate projection. + * @param[out] streams int *: The total number of streams that will + * be encoded from the input. + * @param[out] coupled_streams int *: Number of coupled (2 channel) + * streams that will be encoded from the input. + * @param application int: The target encoder application. + * This must be one of the following: + *
+ *
#OPUS_APPLICATION_VOIP
+ *
Process signal for improved speech intelligibility.
+ *
#OPUS_APPLICATION_AUDIO
+ *
Favor faithfulness to the original input.
+ *
#OPUS_APPLICATION_RESTRICTED_LOWDELAY
+ *
Configure the minimum possible coding delay by disabling certain modes + * of operation.
+ *
+ * @param[out] error int *: Returns #OPUS_OK on success, or an error + * code (see @ref opus_errorcodes) on + * failure. + */ +OPUS_EXPORT OPUS_WARN_UNUSED_RESULT OpusProjectionEncoder *opus_projection_ambisonics_encoder_create( + opus_int32 Fs, + int channels, + int mapping_family, + int *streams, + int *coupled_streams, + int application, + int *error +) OPUS_ARG_NONNULL(4) OPUS_ARG_NONNULL(5); + + +/** Initialize a previously allocated projection encoder state. + * The memory pointed to by \a st must be at least the size returned by + * opus_projection_ambisonics_encoder_get_size(). + * This is intended for applications which use their own allocator instead of + * malloc. + * To reset a previously initialized state, use the #OPUS_RESET_STATE CTL. + * @see opus_projection_ambisonics_encoder_create + * @see opus_projection_ambisonics_encoder_get_size + * @param st OpusProjectionEncoder*: Projection encoder state to initialize. + * @param Fs opus_int32: Sampling rate of the input signal (in Hz). + * This must be one of 8000, 12000, 16000, + * 24000, or 48000. + * @param channels int: Number of channels in the input signal. + * This must be at most 255. + * It may be greater than the number of + * coded channels (streams + + * coupled_streams). + * @param streams int: The total number of streams to encode from the + * input. + * This must be no more than the number of channels. + * @param coupled_streams int: Number of coupled (2 channel) streams + * to encode. + * This must be no larger than the total + * number of streams. + * Additionally, The total number of + * encoded channels (streams + + * coupled_streams) must be no + * more than the number of input channels. + * @param application int: The target encoder application. + * This must be one of the following: + *
+ *
#OPUS_APPLICATION_VOIP
+ *
Process signal for improved speech intelligibility.
+ *
#OPUS_APPLICATION_AUDIO
+ *
Favor faithfulness to the original input.
+ *
#OPUS_APPLICATION_RESTRICTED_LOWDELAY
+ *
Configure the minimum possible coding delay by disabling certain modes + * of operation.
+ *
+ * @returns #OPUS_OK on success, or an error code (see @ref opus_errorcodes) + * on failure. + */ +OPUS_EXPORT int opus_projection_ambisonics_encoder_init( + OpusProjectionEncoder *st, + opus_int32 Fs, + int channels, + int mapping_family, + int *streams, + int *coupled_streams, + int application +) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(5) OPUS_ARG_NONNULL(6); + + +/** Encodes a projection Opus frame. + * @param st OpusProjectionEncoder*: Projection encoder state. + * @param[in] pcm const opus_int16*: The input signal as interleaved + * samples. + * This must contain + * frame_size*channels + * samples. + * @param frame_size int: Number of samples per channel in the input + * signal. + * This must be an Opus frame size for the + * encoder's sampling rate. + * For example, at 48 kHz the permitted values + * are 120, 240, 480, 960, 1920, and 2880. + * Passing in a duration of less than 10 ms + * (480 samples at 48 kHz) will prevent the + * encoder from using the LPC or hybrid modes. + * @param[out] data unsigned char*: Output payload. + * This must contain storage for at + * least \a max_data_bytes. + * @param [in] max_data_bytes opus_int32: Size of the allocated + * memory for the output + * payload. This may be + * used to impose an upper limit on + * the instant bitrate, but should + * not be used as the only bitrate + * control. Use #OPUS_SET_BITRATE to + * control the bitrate. + * @returns The length of the encoded packet (in bytes) on success or a + * negative error code (see @ref opus_errorcodes) on failure. + */ +OPUS_EXPORT OPUS_WARN_UNUSED_RESULT int opus_projection_encode( + OpusProjectionEncoder *st, + const opus_int16 *pcm, + int frame_size, + unsigned char *data, + opus_int32 max_data_bytes +) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(2) OPUS_ARG_NONNULL(4); + + +/** Encodes a projection Opus frame from floating point input. + * @param st OpusProjectionEncoder*: Projection encoder state. + * @param[in] pcm const float*: The input signal as interleaved + * samples with a normal range of + * +/-1.0. + * Samples with a range beyond +/-1.0 + * are supported but will be clipped by + * decoders using the integer API and + * should only be used if it is known + * that the far end supports extended + * dynamic range. + * This must contain + * frame_size*channels + * samples. + * @param frame_size int: Number of samples per channel in the input + * signal. + * This must be an Opus frame size for the + * encoder's sampling rate. + * For example, at 48 kHz the permitted values + * are 120, 240, 480, 960, 1920, and 2880. + * Passing in a duration of less than 10 ms + * (480 samples at 48 kHz) will prevent the + * encoder from using the LPC or hybrid modes. + * @param[out] data unsigned char*: Output payload. + * This must contain storage for at + * least \a max_data_bytes. + * @param [in] max_data_bytes opus_int32: Size of the allocated + * memory for the output + * payload. This may be + * used to impose an upper limit on + * the instant bitrate, but should + * not be used as the only bitrate + * control. Use #OPUS_SET_BITRATE to + * control the bitrate. + * @returns The length of the encoded packet (in bytes) on success or a + * negative error code (see @ref opus_errorcodes) on failure. + */ +OPUS_EXPORT OPUS_WARN_UNUSED_RESULT int opus_projection_encode_float( + OpusProjectionEncoder *st, + const float *pcm, + int frame_size, + unsigned char *data, + opus_int32 max_data_bytes +) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(2) OPUS_ARG_NONNULL(4); + + +/** Frees an OpusProjectionEncoder allocated by + * opus_projection_ambisonics_encoder_create(). + * @param st OpusProjectionEncoder*: Projection encoder state to be freed. + */ +OPUS_EXPORT void opus_projection_encoder_destroy(OpusProjectionEncoder *st); + + +/** Perform a CTL function on a projection Opus encoder. + * + * Generally the request and subsequent arguments are generated by a + * convenience macro. + * @param st OpusProjectionEncoder*: Projection encoder state. + * @param request This and all remaining parameters should be replaced by one + * of the convenience macros in @ref opus_genericctls, + * @ref opus_encoderctls, @ref opus_multistream_ctls, or + * @ref opus_projection_ctls + * @see opus_genericctls + * @see opus_encoderctls + * @see opus_multistream_ctls + * @see opus_projection_ctls + */ +OPUS_EXPORT int opus_projection_encoder_ctl(OpusProjectionEncoder *st, int request, ...) OPUS_ARG_NONNULL(1); + + +/**@}*/ + +/**\name Projection decoder functions */ +/**@{*/ + +/** Gets the size of an OpusProjectionDecoder structure. + * @param channels int: The total number of output channels. + * This must be no more than 255. + * @param streams int: The total number of streams coded in the + * input. + * This must be no more than 255. + * @param coupled_streams int: Number streams to decode as coupled + * (2 channel) streams. + * This must be no larger than the total + * number of streams. + * Additionally, The total number of + * coded channels (streams + + * coupled_streams) must be no + * more than 255. + * @returns The size in bytes on success, or a negative error code + * (see @ref opus_errorcodes) on error. + */ +OPUS_EXPORT OPUS_WARN_UNUSED_RESULT opus_int32 opus_projection_decoder_get_size( + int channels, + int streams, + int coupled_streams +); + + +/** Allocates and initializes a projection decoder state. + * Call opus_projection_decoder_destroy() to release + * this object when finished. + * @param Fs opus_int32: Sampling rate to decode at (in Hz). + * This must be one of 8000, 12000, 16000, + * 24000, or 48000. + * @param channels int: Number of channels to output. + * This must be at most 255. + * It may be different from the number of coded + * channels (streams + + * coupled_streams). + * @param streams int: The total number of streams coded in the + * input. + * This must be no more than 255. + * @param coupled_streams int: Number of streams to decode as coupled + * (2 channel) streams. + * This must be no larger than the total + * number of streams. + * Additionally, The total number of + * coded channels (streams + + * coupled_streams) must be no + * more than 255. + * @param[in] demixing_matrix const unsigned char[demixing_matrix_size]: Demixing matrix + * that mapping from coded channels to output channels, + * as described in @ref opus_projection and + * @ref opus_projection_ctls. + * @param demixing_matrix_size opus_int32: The size in bytes of the + * demixing matrix, as + * described in @ref + * opus_projection_ctls. + * @param[out] error int *: Returns #OPUS_OK on success, or an error + * code (see @ref opus_errorcodes) on + * failure. + */ +OPUS_EXPORT OPUS_WARN_UNUSED_RESULT OpusProjectionDecoder *opus_projection_decoder_create( + opus_int32 Fs, + int channels, + int streams, + int coupled_streams, + unsigned char *demixing_matrix, + opus_int32 demixing_matrix_size, + int *error +) OPUS_ARG_NONNULL(5); + + +/** Intialize a previously allocated projection decoder state object. + * The memory pointed to by \a st must be at least the size returned by + * opus_projection_decoder_get_size(). + * This is intended for applications which use their own allocator instead of + * malloc. + * To reset a previously initialized state, use the #OPUS_RESET_STATE CTL. + * @see opus_projection_decoder_create + * @see opus_projection_deocder_get_size + * @param st OpusProjectionDecoder*: Projection encoder state to initialize. + * @param Fs opus_int32: Sampling rate to decode at (in Hz). + * This must be one of 8000, 12000, 16000, + * 24000, or 48000. + * @param channels int: Number of channels to output. + * This must be at most 255. + * It may be different from the number of coded + * channels (streams + + * coupled_streams). + * @param streams int: The total number of streams coded in the + * input. + * This must be no more than 255. + * @param coupled_streams int: Number of streams to decode as coupled + * (2 channel) streams. + * This must be no larger than the total + * number of streams. + * Additionally, The total number of + * coded channels (streams + + * coupled_streams) must be no + * more than 255. + * @param[in] demixing_matrix const unsigned char[demixing_matrix_size]: Demixing matrix + * that mapping from coded channels to output channels, + * as described in @ref opus_projection and + * @ref opus_projection_ctls. + * @param demixing_matrix_size opus_int32: The size in bytes of the + * demixing matrix, as + * described in @ref + * opus_projection_ctls. + * @returns #OPUS_OK on success, or an error code (see @ref opus_errorcodes) + * on failure. + */ +OPUS_EXPORT int opus_projection_decoder_init( + OpusProjectionDecoder *st, + opus_int32 Fs, + int channels, + int streams, + int coupled_streams, + unsigned char *demixing_matrix, + opus_int32 demixing_matrix_size +) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(6); + + +/** Decode a projection Opus packet. + * @param st OpusProjectionDecoder*: Projection decoder state. + * @param[in] data const unsigned char*: Input payload. + * Use a NULL + * pointer to indicate packet + * loss. + * @param len opus_int32: Number of bytes in payload. + * @param[out] pcm opus_int16*: Output signal, with interleaved + * samples. + * This must contain room for + * frame_size*channels + * samples. + * @param frame_size int: The number of samples per channel of + * available space in \a pcm. + * If this is less than the maximum packet duration + * (120 ms; 5760 for 48kHz), this function will not be capable + * of decoding some packets. In the case of PLC (data==NULL) + * or FEC (decode_fec=1), then frame_size needs to be exactly + * the duration of audio that is missing, otherwise the + * decoder will not be in the optimal state to decode the + * next incoming packet. For the PLC and FEC cases, frame_size + * must be a multiple of 2.5 ms. + * @param decode_fec int: Flag (0 or 1) to request that any in-band + * forward error correction data be decoded. + * If no such data is available, the frame is + * decoded as if it were lost. + * @returns Number of samples decoded on success or a negative error code + * (see @ref opus_errorcodes) on failure. + */ +OPUS_EXPORT OPUS_WARN_UNUSED_RESULT int opus_projection_decode( + OpusProjectionDecoder *st, + const unsigned char *data, + opus_int32 len, + opus_int16 *pcm, + int frame_size, + int decode_fec +) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(4); + + +/** Decode a projection Opus packet with floating point output. + * @param st OpusProjectionDecoder*: Projection decoder state. + * @param[in] data const unsigned char*: Input payload. + * Use a NULL + * pointer to indicate packet + * loss. + * @param len opus_int32: Number of bytes in payload. + * @param[out] pcm opus_int16*: Output signal, with interleaved + * samples. + * This must contain room for + * frame_size*channels + * samples. + * @param frame_size int: The number of samples per channel of + * available space in \a pcm. + * If this is less than the maximum packet duration + * (120 ms; 5760 for 48kHz), this function will not be capable + * of decoding some packets. In the case of PLC (data==NULL) + * or FEC (decode_fec=1), then frame_size needs to be exactly + * the duration of audio that is missing, otherwise the + * decoder will not be in the optimal state to decode the + * next incoming packet. For the PLC and FEC cases, frame_size + * must be a multiple of 2.5 ms. + * @param decode_fec int: Flag (0 or 1) to request that any in-band + * forward error correction data be decoded. + * If no such data is available, the frame is + * decoded as if it were lost. + * @returns Number of samples decoded on success or a negative error code + * (see @ref opus_errorcodes) on failure. + */ +OPUS_EXPORT OPUS_WARN_UNUSED_RESULT int opus_projection_decode_float( + OpusProjectionDecoder *st, + const unsigned char *data, + opus_int32 len, + float *pcm, + int frame_size, + int decode_fec +) OPUS_ARG_NONNULL(1) OPUS_ARG_NONNULL(4); + + +/** Perform a CTL function on a projection Opus decoder. + * + * Generally the request and subsequent arguments are generated by a + * convenience macro. + * @param st OpusProjectionDecoder*: Projection decoder state. + * @param request This and all remaining parameters should be replaced by one + * of the convenience macros in @ref opus_genericctls, + * @ref opus_decoderctls, @ref opus_multistream_ctls, or + * @ref opus_projection_ctls. + * @see opus_genericctls + * @see opus_decoderctls + * @see opus_multistream_ctls + * @see opus_projection_ctls + */ +OPUS_EXPORT int opus_projection_decoder_ctl(OpusProjectionDecoder *st, int request, ...) OPUS_ARG_NONNULL(1); + + +/** Frees an OpusProjectionDecoder allocated by + * opus_projection_decoder_create(). + * @param st OpusProjectionDecoder: Projection decoder state to be freed. + */ +OPUS_EXPORT void opus_projection_decoder_destroy(OpusProjectionDecoder *st); + + +/**@}*/ + +/**@}*/ + +#ifdef __cplusplus +} +#endif + +#endif /* OPUS_PROJECTION_H */ diff --git a/components/opus/libopus/include/opus_types.h b/components/opus/libopus/include/opus_types.h new file mode 100644 index 0000000..7cf6755 --- /dev/null +++ b/components/opus/libopus/include/opus_types.h @@ -0,0 +1,166 @@ +/* (C) COPYRIGHT 1994-2002 Xiph.Org Foundation */ +/* Modified by Jean-Marc Valin */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ +/* opus_types.h based on ogg_types.h from libogg */ + +/** + @file opus_types.h + @brief Opus reference implementation types +*/ +#ifndef OPUS_TYPES_H +#define OPUS_TYPES_H + +#define opus_int int /* used for counters etc; at least 16 bits */ +#define opus_int64 long long +#define opus_int8 signed char + +#define opus_uint unsigned int /* used for counters etc; at least 16 bits */ +#define opus_uint64 unsigned long long +#define opus_uint8 unsigned char + +/* Use the real stdint.h if it's there (taken from Paul Hsieh's pstdint.h) */ +#if (defined(__STDC__) && __STDC__ && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || (defined(__GNUC__) && (defined(_STDINT_H) || defined(_STDINT_H_)) || defined (HAVE_STDINT_H)) +#include +# undef opus_int64 +# undef opus_int8 +# undef opus_uint64 +# undef opus_uint8 + typedef int8_t opus_int8; + typedef uint8_t opus_uint8; + typedef int16_t opus_int16; + typedef uint16_t opus_uint16; + typedef int32_t opus_int32; + typedef uint32_t opus_uint32; + typedef int64_t opus_int64; + typedef uint64_t opus_uint64; +#elif defined(_WIN32) + +# if defined(__CYGWIN__) +# include <_G_config.h> + typedef _G_int32_t opus_int32; + typedef _G_uint32_t opus_uint32; + typedef _G_int16 opus_int16; + typedef _G_uint16 opus_uint16; +# elif defined(__MINGW32__) + typedef short opus_int16; + typedef unsigned short opus_uint16; + typedef int opus_int32; + typedef unsigned int opus_uint32; +# elif defined(__MWERKS__) + typedef int opus_int32; + typedef unsigned int opus_uint32; + typedef short opus_int16; + typedef unsigned short opus_uint16; +# else + /* MSVC/Borland */ + typedef __int32 opus_int32; + typedef unsigned __int32 opus_uint32; + typedef __int16 opus_int16; + typedef unsigned __int16 opus_uint16; +# endif + +#elif defined(__MACOS__) + +# include + typedef SInt16 opus_int16; + typedef UInt16 opus_uint16; + typedef SInt32 opus_int32; + typedef UInt32 opus_uint32; + +#elif (defined(__APPLE__) && defined(__MACH__)) /* MacOS X Framework build */ + +# include + typedef int16_t opus_int16; + typedef u_int16_t opus_uint16; + typedef int32_t opus_int32; + typedef u_int32_t opus_uint32; + +#elif defined(__BEOS__) + + /* Be */ +# include + typedef int16 opus_int16; + typedef u_int16 opus_uint16; + typedef int32_t opus_int32; + typedef u_int32_t opus_uint32; + +#elif defined (__EMX__) + + /* OS/2 GCC */ + typedef short opus_int16; + typedef unsigned short opus_uint16; + typedef int opus_int32; + typedef unsigned int opus_uint32; + +#elif defined (DJGPP) + + /* DJGPP */ + typedef short opus_int16; + typedef unsigned short opus_uint16; + typedef int opus_int32; + typedef unsigned int opus_uint32; + +#elif defined(R5900) + + /* PS2 EE */ + typedef int opus_int32; + typedef unsigned opus_uint32; + typedef short opus_int16; + typedef unsigned short opus_uint16; + +#elif defined(__SYMBIAN32__) + + /* Symbian GCC */ + typedef signed short opus_int16; + typedef unsigned short opus_uint16; + typedef signed int opus_int32; + typedef unsigned int opus_uint32; + +#elif defined(CONFIG_TI_C54X) || defined (CONFIG_TI_C55X) + + typedef short opus_int16; + typedef unsigned short opus_uint16; + typedef long opus_int32; + typedef unsigned long opus_uint32; + +#elif defined(CONFIG_TI_C6X) + + typedef short opus_int16; + typedef unsigned short opus_uint16; + typedef int opus_int32; + typedef unsigned int opus_uint32; + +#else + + /* Give up, take a reasonable guess */ + typedef short opus_int16; + typedef unsigned short opus_uint16; + typedef int opus_int32; + typedef unsigned int opus_uint32; + +#endif + +#endif /* OPUS_TYPES_H */ diff --git a/components/opus/libopus/install-sh b/components/opus/libopus/install-sh new file mode 100644 index 0000000..0360b79 --- /dev/null +++ b/components/opus/libopus/install-sh @@ -0,0 +1,501 @@ +#!/bin/sh +# install - install a program, script, or datafile + +scriptversion=2016-01-11.22; # UTC + +# This originates from X11R5 (mit/util/scripts/install.sh), which was +# later released in X11R6 (xc/config/util/install.sh) with the +# following copyright and license. +# +# Copyright (C) 1994 X Consortium +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to +# deal in the Software without restriction, including without limitation the +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +# sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- +# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# +# Except as contained in this notice, the name of the X Consortium shall not +# be used in advertising or otherwise to promote the sale, use or other deal- +# ings in this Software without prior written authorization from the X Consor- +# tium. +# +# +# FSF changes to this file are in the public domain. +# +# Calling this script install-sh is preferred over install.sh, to prevent +# 'make' implicit rules from creating a file called install from it +# when there is no Makefile. +# +# This script is compatible with the BSD install script, but was written +# from scratch. + +tab=' ' +nl=' +' +IFS=" $tab$nl" + +# Set DOITPROG to "echo" to test this script. + +doit=${DOITPROG-} +doit_exec=${doit:-exec} + +# Put in absolute file names if you don't have them in your path; +# or use environment vars. + +chgrpprog=${CHGRPPROG-chgrp} +chmodprog=${CHMODPROG-chmod} +chownprog=${CHOWNPROG-chown} +cmpprog=${CMPPROG-cmp} +cpprog=${CPPROG-cp} +mkdirprog=${MKDIRPROG-mkdir} +mvprog=${MVPROG-mv} +rmprog=${RMPROG-rm} +stripprog=${STRIPPROG-strip} + +posix_mkdir= + +# Desired mode of installed file. +mode=0755 + +chgrpcmd= +chmodcmd=$chmodprog +chowncmd= +mvcmd=$mvprog +rmcmd="$rmprog -f" +stripcmd= + +src= +dst= +dir_arg= +dst_arg= + +copy_on_change=false +is_target_a_directory=possibly + +usage="\ +Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE + or: $0 [OPTION]... SRCFILES... DIRECTORY + or: $0 [OPTION]... -t DIRECTORY SRCFILES... + or: $0 [OPTION]... -d DIRECTORIES... + +In the 1st form, copy SRCFILE to DSTFILE. +In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. +In the 4th, create DIRECTORIES. + +Options: + --help display this help and exit. + --version display version info and exit. + + -c (ignored) + -C install only if different (preserve the last data modification time) + -d create directories instead of installing files. + -g GROUP $chgrpprog installed files to GROUP. + -m MODE $chmodprog installed files to MODE. + -o USER $chownprog installed files to USER. + -s $stripprog installed files. + -t DIRECTORY install into DIRECTORY. + -T report an error if DSTFILE is a directory. + +Environment variables override the default commands: + CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG + RMPROG STRIPPROG +" + +while test $# -ne 0; do + case $1 in + -c) ;; + + -C) copy_on_change=true;; + + -d) dir_arg=true;; + + -g) chgrpcmd="$chgrpprog $2" + shift;; + + --help) echo "$usage"; exit $?;; + + -m) mode=$2 + case $mode in + *' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*) + echo "$0: invalid mode: $mode" >&2 + exit 1;; + esac + shift;; + + -o) chowncmd="$chownprog $2" + shift;; + + -s) stripcmd=$stripprog;; + + -t) + is_target_a_directory=always + dst_arg=$2 + # Protect names problematic for 'test' and other utilities. + case $dst_arg in + -* | [=\(\)!]) dst_arg=./$dst_arg;; + esac + shift;; + + -T) is_target_a_directory=never;; + + --version) echo "$0 $scriptversion"; exit $?;; + + --) shift + break;; + + -*) echo "$0: invalid option: $1" >&2 + exit 1;; + + *) break;; + esac + shift +done + +# We allow the use of options -d and -T together, by making -d +# take the precedence; this is for compatibility with GNU install. + +if test -n "$dir_arg"; then + if test -n "$dst_arg"; then + echo "$0: target directory not allowed when installing a directory." >&2 + exit 1 + fi +fi + +if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then + # When -d is used, all remaining arguments are directories to create. + # When -t is used, the destination is already specified. + # Otherwise, the last argument is the destination. Remove it from $@. + for arg + do + if test -n "$dst_arg"; then + # $@ is not empty: it contains at least $arg. + set fnord "$@" "$dst_arg" + shift # fnord + fi + shift # arg + dst_arg=$arg + # Protect names problematic for 'test' and other utilities. + case $dst_arg in + -* | [=\(\)!]) dst_arg=./$dst_arg;; + esac + done +fi + +if test $# -eq 0; then + if test -z "$dir_arg"; then + echo "$0: no input file specified." >&2 + exit 1 + fi + # It's OK to call 'install-sh -d' without argument. + # This can happen when creating conditional directories. + exit 0 +fi + +if test -z "$dir_arg"; then + if test $# -gt 1 || test "$is_target_a_directory" = always; then + if test ! -d "$dst_arg"; then + echo "$0: $dst_arg: Is not a directory." >&2 + exit 1 + fi + fi +fi + +if test -z "$dir_arg"; then + do_exit='(exit $ret); exit $ret' + trap "ret=129; $do_exit" 1 + trap "ret=130; $do_exit" 2 + trap "ret=141; $do_exit" 13 + trap "ret=143; $do_exit" 15 + + # Set umask so as not to create temps with too-generous modes. + # However, 'strip' requires both read and write access to temps. + case $mode in + # Optimize common cases. + *644) cp_umask=133;; + *755) cp_umask=22;; + + *[0-7]) + if test -z "$stripcmd"; then + u_plus_rw= + else + u_plus_rw='% 200' + fi + cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; + *) + if test -z "$stripcmd"; then + u_plus_rw= + else + u_plus_rw=,u+rw + fi + cp_umask=$mode$u_plus_rw;; + esac +fi + +for src +do + # Protect names problematic for 'test' and other utilities. + case $src in + -* | [=\(\)!]) src=./$src;; + esac + + if test -n "$dir_arg"; then + dst=$src + dstdir=$dst + test -d "$dstdir" + dstdir_status=$? + else + + # Waiting for this to be detected by the "$cpprog $src $dsttmp" command + # might cause directories to be created, which would be especially bad + # if $src (and thus $dsttmp) contains '*'. + if test ! -f "$src" && test ! -d "$src"; then + echo "$0: $src does not exist." >&2 + exit 1 + fi + + if test -z "$dst_arg"; then + echo "$0: no destination specified." >&2 + exit 1 + fi + dst=$dst_arg + + # If destination is a directory, append the input filename; won't work + # if double slashes aren't ignored. + if test -d "$dst"; then + if test "$is_target_a_directory" = never; then + echo "$0: $dst_arg: Is a directory" >&2 + exit 1 + fi + dstdir=$dst + dst=$dstdir/`basename "$src"` + dstdir_status=0 + else + dstdir=`dirname "$dst"` + test -d "$dstdir" + dstdir_status=$? + fi + fi + + obsolete_mkdir_used=false + + if test $dstdir_status != 0; then + case $posix_mkdir in + '') + # Create intermediate dirs using mode 755 as modified by the umask. + # This is like FreeBSD 'install' as of 1997-10-28. + umask=`umask` + case $stripcmd.$umask in + # Optimize common cases. + *[2367][2367]) mkdir_umask=$umask;; + .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; + + *[0-7]) + mkdir_umask=`expr $umask + 22 \ + - $umask % 100 % 40 + $umask % 20 \ + - $umask % 10 % 4 + $umask % 2 + `;; + *) mkdir_umask=$umask,go-w;; + esac + + # With -d, create the new directory with the user-specified mode. + # Otherwise, rely on $mkdir_umask. + if test -n "$dir_arg"; then + mkdir_mode=-m$mode + else + mkdir_mode= + fi + + posix_mkdir=false + case $umask in + *[123567][0-7][0-7]) + # POSIX mkdir -p sets u+wx bits regardless of umask, which + # is incompatible with FreeBSD 'install' when (umask & 300) != 0. + ;; + *) + tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ + trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 + + if (umask $mkdir_umask && + exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 + then + if test -z "$dir_arg" || { + # Check for POSIX incompatibilities with -m. + # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or + # other-writable bit of parent directory when it shouldn't. + # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. + ls_ld_tmpdir=`ls -ld "$tmpdir"` + case $ls_ld_tmpdir in + d????-?r-*) different_mode=700;; + d????-?--*) different_mode=755;; + *) false;; + esac && + $mkdirprog -m$different_mode -p -- "$tmpdir" && { + ls_ld_tmpdir_1=`ls -ld "$tmpdir"` + test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" + } + } + then posix_mkdir=: + fi + rmdir "$tmpdir/d" "$tmpdir" + else + # Remove any dirs left behind by ancient mkdir implementations. + rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null + fi + trap '' 0;; + esac;; + esac + + if + $posix_mkdir && ( + umask $mkdir_umask && + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" + ) + then : + else + + # The umask is ridiculous, or mkdir does not conform to POSIX, + # or it failed possibly due to a race condition. Create the + # directory the slow way, step by step, checking for races as we go. + + case $dstdir in + /*) prefix='/';; + [-=\(\)!]*) prefix='./';; + *) prefix='';; + esac + + oIFS=$IFS + IFS=/ + set -f + set fnord $dstdir + shift + set +f + IFS=$oIFS + + prefixes= + + for d + do + test X"$d" = X && continue + + prefix=$prefix$d + if test -d "$prefix"; then + prefixes= + else + if $posix_mkdir; then + (umask=$mkdir_umask && + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break + # Don't fail if two instances are running concurrently. + test -d "$prefix" || exit 1 + else + case $prefix in + *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; + *) qprefix=$prefix;; + esac + prefixes="$prefixes '$qprefix'" + fi + fi + prefix=$prefix/ + done + + if test -n "$prefixes"; then + # Don't fail if two instances are running concurrently. + (umask $mkdir_umask && + eval "\$doit_exec \$mkdirprog $prefixes") || + test -d "$dstdir" || exit 1 + obsolete_mkdir_used=true + fi + fi + fi + + if test -n "$dir_arg"; then + { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && + { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || + test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 + else + + # Make a couple of temp file names in the proper directory. + dsttmp=$dstdir/_inst.$$_ + rmtmp=$dstdir/_rm.$$_ + + # Trap to clean up those temp files at exit. + trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 + + # Copy the file name to the temp name. + (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && + + # and set any options; do chmod last to preserve setuid bits. + # + # If any of these fail, we abort the whole thing. If we want to + # ignore errors from any of these, just make sure not to ignore + # errors from the above "$doit $cpprog $src $dsttmp" command. + # + { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && + { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && + { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && + + # If -C, don't bother to copy if it wouldn't change the file. + if $copy_on_change && + old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && + new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && + set -f && + set X $old && old=:$2:$4:$5:$6 && + set X $new && new=:$2:$4:$5:$6 && + set +f && + test "$old" = "$new" && + $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 + then + rm -f "$dsttmp" + else + # Rename the file to the real destination. + $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || + + # The rename failed, perhaps because mv can't rename something else + # to itself, or perhaps because mv is so ancient that it does not + # support -f. + { + # Now remove or move aside any old file at destination location. + # We try this two ways since rm can't unlink itself on some + # systems and the destination file might be busy for other + # reasons. In this case, the final cleanup might fail but the new + # file should still install successfully. + { + test ! -f "$dst" || + $doit $rmcmd -f "$dst" 2>/dev/null || + { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && + { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } + } || + { echo "$0: cannot unlink or rename $dst" >&2 + (exit 1); exit 1 + } + } && + + # Now rename the file to the real destination. + $doit $mvcmd "$dsttmp" "$dst" + } + fi || exit 1 + + trap '' 0 + fi +done + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-time-zone: "UTC0" +# time-stamp-end: "; # UTC" +# End: diff --git a/components/opus/libopus/ltmain.sh b/components/opus/libopus/ltmain.sh new file mode 100644 index 0000000..0f0a2da --- /dev/null +++ b/components/opus/libopus/ltmain.sh @@ -0,0 +1,11147 @@ +#! /bin/sh +## DO NOT EDIT - This file generated from ./build-aux/ltmain.in +## by inline-source v2014-01-03.01 + +# libtool (GNU libtool) 2.4.6 +# Provide generalized library-building support services. +# Written by Gordon Matzigkeit , 1996 + +# Copyright (C) 1996-2015 Free Software Foundation, Inc. +# This is free software; see the source for copying conditions. There is NO +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + +# GNU Libtool is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# As a special exception to the GNU General Public License, +# if you distribute this file as part of a program or library that +# is built using GNU Libtool, you may include this file under the +# same distribution terms that you use for the rest of that program. +# +# GNU Libtool is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + + +PROGRAM=libtool +PACKAGE=libtool +VERSION=2.4.6 +package_revision=2.4.6 + + +## ------ ## +## Usage. ## +## ------ ## + +# Run './libtool --help' for help with using this script from the +# command line. + + +## ------------------------------- ## +## User overridable command paths. ## +## ------------------------------- ## + +# After configure completes, it has a better idea of some of the +# shell tools we need than the defaults used by the functions shared +# with bootstrap, so set those here where they can still be over- +# ridden by the user, but otherwise take precedence. + +: ${AUTOCONF="autoconf"} +: ${AUTOMAKE="automake"} + + +## -------------------------- ## +## Source external libraries. ## +## -------------------------- ## + +# Much of our low-level functionality needs to be sourced from external +# libraries, which are installed to $pkgauxdir. + +# Set a version string for this script. +scriptversion=2015-01-20.17; # UTC + +# General shell script boiler plate, and helper functions. +# Written by Gary V. Vaughan, 2004 + +# Copyright (C) 2004-2015 Free Software Foundation, Inc. +# This is free software; see the source for copying conditions. There is NO +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. + +# As a special exception to the GNU General Public License, if you distribute +# this file as part of a program or library that is built using GNU Libtool, +# you may include this file under the same distribution terms that you use +# for the rest of that program. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNES FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# Please report bugs or propose patches to gary@gnu.org. + + +## ------ ## +## Usage. ## +## ------ ## + +# Evaluate this file near the top of your script to gain access to +# the functions and variables defined here: +# +# . `echo "$0" | ${SED-sed} 's|[^/]*$||'`/build-aux/funclib.sh +# +# If you need to override any of the default environment variable +# settings, do that before evaluating this file. + + +## -------------------- ## +## Shell normalisation. ## +## -------------------- ## + +# Some shells need a little help to be as Bourne compatible as possible. +# Before doing anything else, make sure all that help has been provided! + +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac +fi + +# NLS nuisances: We save the old values in case they are required later. +_G_user_locale= +_G_safe_locale= +for _G_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES +do + eval "if test set = \"\${$_G_var+set}\"; then + save_$_G_var=\$$_G_var + $_G_var=C + export $_G_var + _G_user_locale=\"$_G_var=\\\$save_\$_G_var; \$_G_user_locale\" + _G_safe_locale=\"$_G_var=C; \$_G_safe_locale\" + fi" +done + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +# Make sure IFS has a sensible default +sp=' ' +nl=' +' +IFS="$sp $nl" + +# There are apparently some retarded systems that use ';' as a PATH separator! +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + + +## ------------------------- ## +## Locate command utilities. ## +## ------------------------- ## + + +# func_executable_p FILE +# ---------------------- +# Check that FILE is an executable regular file. +func_executable_p () +{ + test -f "$1" && test -x "$1" +} + + +# func_path_progs PROGS_LIST CHECK_FUNC [PATH] +# -------------------------------------------- +# Search for either a program that responds to --version with output +# containing "GNU", or else returned by CHECK_FUNC otherwise, by +# trying all the directories in PATH with each of the elements of +# PROGS_LIST. +# +# CHECK_FUNC should accept the path to a candidate program, and +# set $func_check_prog_result if it truncates its output less than +# $_G_path_prog_max characters. +func_path_progs () +{ + _G_progs_list=$1 + _G_check_func=$2 + _G_PATH=${3-"$PATH"} + + _G_path_prog_max=0 + _G_path_prog_found=false + _G_save_IFS=$IFS; IFS=${PATH_SEPARATOR-:} + for _G_dir in $_G_PATH; do + IFS=$_G_save_IFS + test -z "$_G_dir" && _G_dir=. + for _G_prog_name in $_G_progs_list; do + for _exeext in '' .EXE; do + _G_path_prog=$_G_dir/$_G_prog_name$_exeext + func_executable_p "$_G_path_prog" || continue + case `"$_G_path_prog" --version 2>&1` in + *GNU*) func_path_progs_result=$_G_path_prog _G_path_prog_found=: ;; + *) $_G_check_func $_G_path_prog + func_path_progs_result=$func_check_prog_result + ;; + esac + $_G_path_prog_found && break 3 + done + done + done + IFS=$_G_save_IFS + test -z "$func_path_progs_result" && { + echo "no acceptable sed could be found in \$PATH" >&2 + exit 1 + } +} + + +# We want to be able to use the functions in this file before configure +# has figured out where the best binaries are kept, which means we have +# to search for them ourselves - except when the results are already set +# where we skip the searches. + +# Unless the user overrides by setting SED, search the path for either GNU +# sed, or the sed that truncates its output the least. +test -z "$SED" && { + _G_sed_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ + for _G_i in 1 2 3 4 5 6 7; do + _G_sed_script=$_G_sed_script$nl$_G_sed_script + done + echo "$_G_sed_script" 2>/dev/null | sed 99q >conftest.sed + _G_sed_script= + + func_check_prog_sed () + { + _G_path_prog=$1 + + _G_count=0 + printf 0123456789 >conftest.in + while : + do + cat conftest.in conftest.in >conftest.tmp + mv conftest.tmp conftest.in + cp conftest.in conftest.nl + echo '' >> conftest.nl + "$_G_path_prog" -f conftest.sed conftest.out 2>/dev/null || break + diff conftest.out conftest.nl >/dev/null 2>&1 || break + _G_count=`expr $_G_count + 1` + if test "$_G_count" -gt "$_G_path_prog_max"; then + # Best one so far, save it but keep looking for a better one + func_check_prog_result=$_G_path_prog + _G_path_prog_max=$_G_count + fi + # 10*(2^10) chars as input seems more than enough + test 10 -lt "$_G_count" && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out + } + + func_path_progs "sed gsed" func_check_prog_sed $PATH:/usr/xpg4/bin + rm -f conftest.sed + SED=$func_path_progs_result +} + + +# Unless the user overrides by setting GREP, search the path for either GNU +# grep, or the grep that truncates its output the least. +test -z "$GREP" && { + func_check_prog_grep () + { + _G_path_prog=$1 + + _G_count=0 + _G_path_prog_max=0 + printf 0123456789 >conftest.in + while : + do + cat conftest.in conftest.in >conftest.tmp + mv conftest.tmp conftest.in + cp conftest.in conftest.nl + echo 'GREP' >> conftest.nl + "$_G_path_prog" -e 'GREP$' -e '-(cannot match)-' conftest.out 2>/dev/null || break + diff conftest.out conftest.nl >/dev/null 2>&1 || break + _G_count=`expr $_G_count + 1` + if test "$_G_count" -gt "$_G_path_prog_max"; then + # Best one so far, save it but keep looking for a better one + func_check_prog_result=$_G_path_prog + _G_path_prog_max=$_G_count + fi + # 10*(2^10) chars as input seems more than enough + test 10 -lt "$_G_count" && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out + } + + func_path_progs "grep ggrep" func_check_prog_grep $PATH:/usr/xpg4/bin + GREP=$func_path_progs_result +} + + +## ------------------------------- ## +## User overridable command paths. ## +## ------------------------------- ## + +# All uppercase variable names are used for environment variables. These +# variables can be overridden by the user before calling a script that +# uses them if a suitable command of that name is not already available +# in the command search PATH. + +: ${CP="cp -f"} +: ${ECHO="printf %s\n"} +: ${EGREP="$GREP -E"} +: ${FGREP="$GREP -F"} +: ${LN_S="ln -s"} +: ${MAKE="make"} +: ${MKDIR="mkdir"} +: ${MV="mv -f"} +: ${RM="rm -f"} +: ${SHELL="${CONFIG_SHELL-/bin/sh}"} + + +## -------------------- ## +## Useful sed snippets. ## +## -------------------- ## + +sed_dirname='s|/[^/]*$||' +sed_basename='s|^.*/||' + +# Sed substitution that helps us do robust quoting. It backslashifies +# metacharacters that are still active within double-quoted strings. +sed_quote_subst='s|\([`"$\\]\)|\\\1|g' + +# Same as above, but do not quote variable references. +sed_double_quote_subst='s/\(["`\\]\)/\\\1/g' + +# Sed substitution that turns a string into a regex matching for the +# string literally. +sed_make_literal_regex='s|[].[^$\\*\/]|\\&|g' + +# Sed substitution that converts a w32 file name or path +# that contains forward slashes, into one that contains +# (escaped) backslashes. A very naive implementation. +sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' + +# Re-'\' parameter expansions in output of sed_double_quote_subst that +# were '\'-ed in input to the same. If an odd number of '\' preceded a +# '$' in input to sed_double_quote_subst, that '$' was protected from +# expansion. Since each input '\' is now two '\'s, look for any number +# of runs of four '\'s followed by two '\'s and then a '$'. '\' that '$'. +_G_bs='\\' +_G_bs2='\\\\' +_G_bs4='\\\\\\\\' +_G_dollar='\$' +sed_double_backslash="\ + s/$_G_bs4/&\\ +/g + s/^$_G_bs2$_G_dollar/$_G_bs&/ + s/\\([^$_G_bs]\\)$_G_bs2$_G_dollar/\\1$_G_bs2$_G_bs$_G_dollar/g + s/\n//g" + + +## ----------------- ## +## Global variables. ## +## ----------------- ## + +# Except for the global variables explicitly listed below, the following +# functions in the '^func_' namespace, and the '^require_' namespace +# variables initialised in the 'Resource management' section, sourcing +# this file will not pollute your global namespace with anything +# else. There's no portable way to scope variables in Bourne shell +# though, so actually running these functions will sometimes place +# results into a variable named after the function, and often use +# temporary variables in the '^_G_' namespace. If you are careful to +# avoid using those namespaces casually in your sourcing script, things +# should continue to work as you expect. And, of course, you can freely +# overwrite any of the functions or variables defined here before +# calling anything to customize them. + +EXIT_SUCCESS=0 +EXIT_FAILURE=1 +EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing. +EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake. + +# Allow overriding, eg assuming that you follow the convention of +# putting '$debug_cmd' at the start of all your functions, you can get +# bash to show function call trace with: +# +# debug_cmd='eval echo "${FUNCNAME[0]} $*" >&2' bash your-script-name +debug_cmd=${debug_cmd-":"} +exit_cmd=: + +# By convention, finish your script with: +# +# exit $exit_status +# +# so that you can set exit_status to non-zero if you want to indicate +# something went wrong during execution without actually bailing out at +# the point of failure. +exit_status=$EXIT_SUCCESS + +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh +# is ksh but when the shell is invoked as "sh" and the current value of +# the _XPG environment variable is not equal to 1 (one), the special +# positional parameter $0, within a function call, is the name of the +# function. +progpath=$0 + +# The name of this program. +progname=`$ECHO "$progpath" |$SED "$sed_basename"` + +# Make sure we have an absolute progpath for reexecution: +case $progpath in + [\\/]*|[A-Za-z]:\\*) ;; + *[\\/]*) + progdir=`$ECHO "$progpath" |$SED "$sed_dirname"` + progdir=`cd "$progdir" && pwd` + progpath=$progdir/$progname + ;; + *) + _G_IFS=$IFS + IFS=${PATH_SEPARATOR-:} + for progdir in $PATH; do + IFS=$_G_IFS + test -x "$progdir/$progname" && break + done + IFS=$_G_IFS + test -n "$progdir" || progdir=`pwd` + progpath=$progdir/$progname + ;; +esac + + +## ----------------- ## +## Standard options. ## +## ----------------- ## + +# The following options affect the operation of the functions defined +# below, and should be set appropriately depending on run-time para- +# meters passed on the command line. + +opt_dry_run=false +opt_quiet=false +opt_verbose=false + +# Categories 'all' and 'none' are always available. Append any others +# you will pass as the first argument to func_warning from your own +# code. +warning_categories= + +# By default, display warnings according to 'opt_warning_types'. Set +# 'warning_func' to ':' to elide all warnings, or func_fatal_error to +# treat the next displayed warning as a fatal error. +warning_func=func_warn_and_continue + +# Set to 'all' to display all warnings, 'none' to suppress all +# warnings, or a space delimited list of some subset of +# 'warning_categories' to display only the listed warnings. +opt_warning_types=all + + +## -------------------- ## +## Resource management. ## +## -------------------- ## + +# This section contains definitions for functions that each ensure a +# particular resource (a file, or a non-empty configuration variable for +# example) is available, and if appropriate to extract default values +# from pertinent package files. Call them using their associated +# 'require_*' variable to ensure that they are executed, at most, once. +# +# It's entirely deliberate that calling these functions can set +# variables that don't obey the namespace limitations obeyed by the rest +# of this file, in order that that they be as useful as possible to +# callers. + + +# require_term_colors +# ------------------- +# Allow display of bold text on terminals that support it. +require_term_colors=func_require_term_colors +func_require_term_colors () +{ + $debug_cmd + + test -t 1 && { + # COLORTERM and USE_ANSI_COLORS environment variables take + # precedence, because most terminfo databases neglect to describe + # whether color sequences are supported. + test -n "${COLORTERM+set}" && : ${USE_ANSI_COLORS="1"} + + if test 1 = "$USE_ANSI_COLORS"; then + # Standard ANSI escape sequences + tc_reset='' + tc_bold=''; tc_standout='' + tc_red=''; tc_green='' + tc_blue=''; tc_cyan='' + else + # Otherwise trust the terminfo database after all. + test -n "`tput sgr0 2>/dev/null`" && { + tc_reset=`tput sgr0` + test -n "`tput bold 2>/dev/null`" && tc_bold=`tput bold` + tc_standout=$tc_bold + test -n "`tput smso 2>/dev/null`" && tc_standout=`tput smso` + test -n "`tput setaf 1 2>/dev/null`" && tc_red=`tput setaf 1` + test -n "`tput setaf 2 2>/dev/null`" && tc_green=`tput setaf 2` + test -n "`tput setaf 4 2>/dev/null`" && tc_blue=`tput setaf 4` + test -n "`tput setaf 5 2>/dev/null`" && tc_cyan=`tput setaf 5` + } + fi + } + + require_term_colors=: +} + + +## ----------------- ## +## Function library. ## +## ----------------- ## + +# This section contains a variety of useful functions to call in your +# scripts. Take note of the portable wrappers for features provided by +# some modern shells, which will fall back to slower equivalents on +# less featureful shells. + + +# func_append VAR VALUE +# --------------------- +# Append VALUE onto the existing contents of VAR. + + # We should try to minimise forks, especially on Windows where they are + # unreasonably slow, so skip the feature probes when bash or zsh are + # being used: + if test set = "${BASH_VERSION+set}${ZSH_VERSION+set}"; then + : ${_G_HAVE_ARITH_OP="yes"} + : ${_G_HAVE_XSI_OPS="yes"} + # The += operator was introduced in bash 3.1 + case $BASH_VERSION in + [12].* | 3.0 | 3.0*) ;; + *) + : ${_G_HAVE_PLUSEQ_OP="yes"} + ;; + esac + fi + + # _G_HAVE_PLUSEQ_OP + # Can be empty, in which case the shell is probed, "yes" if += is + # useable or anything else if it does not work. + test -z "$_G_HAVE_PLUSEQ_OP" \ + && (eval 'x=a; x+=" b"; test "a b" = "$x"') 2>/dev/null \ + && _G_HAVE_PLUSEQ_OP=yes + +if test yes = "$_G_HAVE_PLUSEQ_OP" +then + # This is an XSI compatible shell, allowing a faster implementation... + eval 'func_append () + { + $debug_cmd + + eval "$1+=\$2" + }' +else + # ...otherwise fall back to using expr, which is often a shell builtin. + func_append () + { + $debug_cmd + + eval "$1=\$$1\$2" + } +fi + + +# func_append_quoted VAR VALUE +# ---------------------------- +# Quote VALUE and append to the end of shell variable VAR, separated +# by a space. +if test yes = "$_G_HAVE_PLUSEQ_OP"; then + eval 'func_append_quoted () + { + $debug_cmd + + func_quote_for_eval "$2" + eval "$1+=\\ \$func_quote_for_eval_result" + }' +else + func_append_quoted () + { + $debug_cmd + + func_quote_for_eval "$2" + eval "$1=\$$1\\ \$func_quote_for_eval_result" + } +fi + + +# func_append_uniq VAR VALUE +# -------------------------- +# Append unique VALUE onto the existing contents of VAR, assuming +# entries are delimited by the first character of VALUE. For example: +# +# func_append_uniq options " --another-option option-argument" +# +# will only append to $options if " --another-option option-argument " +# is not already present somewhere in $options already (note spaces at +# each end implied by leading space in second argument). +func_append_uniq () +{ + $debug_cmd + + eval _G_current_value='`$ECHO $'$1'`' + _G_delim=`expr "$2" : '\(.\)'` + + case $_G_delim$_G_current_value$_G_delim in + *"$2$_G_delim"*) ;; + *) func_append "$@" ;; + esac +} + + +# func_arith TERM... +# ------------------ +# Set func_arith_result to the result of evaluating TERMs. + test -z "$_G_HAVE_ARITH_OP" \ + && (eval 'test 2 = $(( 1 + 1 ))') 2>/dev/null \ + && _G_HAVE_ARITH_OP=yes + +if test yes = "$_G_HAVE_ARITH_OP"; then + eval 'func_arith () + { + $debug_cmd + + func_arith_result=$(( $* )) + }' +else + func_arith () + { + $debug_cmd + + func_arith_result=`expr "$@"` + } +fi + + +# func_basename FILE +# ------------------ +# Set func_basename_result to FILE with everything up to and including +# the last / stripped. +if test yes = "$_G_HAVE_XSI_OPS"; then + # If this shell supports suffix pattern removal, then use it to avoid + # forking. Hide the definitions single quotes in case the shell chokes + # on unsupported syntax... + _b='func_basename_result=${1##*/}' + _d='case $1 in + */*) func_dirname_result=${1%/*}$2 ;; + * ) func_dirname_result=$3 ;; + esac' + +else + # ...otherwise fall back to using sed. + _b='func_basename_result=`$ECHO "$1" |$SED "$sed_basename"`' + _d='func_dirname_result=`$ECHO "$1" |$SED "$sed_dirname"` + if test "X$func_dirname_result" = "X$1"; then + func_dirname_result=$3 + else + func_append func_dirname_result "$2" + fi' +fi + +eval 'func_basename () +{ + $debug_cmd + + '"$_b"' +}' + + +# func_dirname FILE APPEND NONDIR_REPLACEMENT +# ------------------------------------------- +# Compute the dirname of FILE. If nonempty, add APPEND to the result, +# otherwise set result to NONDIR_REPLACEMENT. +eval 'func_dirname () +{ + $debug_cmd + + '"$_d"' +}' + + +# func_dirname_and_basename FILE APPEND NONDIR_REPLACEMENT +# -------------------------------------------------------- +# Perform func_basename and func_dirname in a single function +# call: +# dirname: Compute the dirname of FILE. If nonempty, +# add APPEND to the result, otherwise set result +# to NONDIR_REPLACEMENT. +# value returned in "$func_dirname_result" +# basename: Compute filename of FILE. +# value retuned in "$func_basename_result" +# For efficiency, we do not delegate to the functions above but instead +# duplicate the functionality here. +eval 'func_dirname_and_basename () +{ + $debug_cmd + + '"$_b"' + '"$_d"' +}' + + +# func_echo ARG... +# ---------------- +# Echo program name prefixed message. +func_echo () +{ + $debug_cmd + + _G_message=$* + + func_echo_IFS=$IFS + IFS=$nl + for _G_line in $_G_message; do + IFS=$func_echo_IFS + $ECHO "$progname: $_G_line" + done + IFS=$func_echo_IFS +} + + +# func_echo_all ARG... +# -------------------- +# Invoke $ECHO with all args, space-separated. +func_echo_all () +{ + $ECHO "$*" +} + + +# func_echo_infix_1 INFIX ARG... +# ------------------------------ +# Echo program name, followed by INFIX on the first line, with any +# additional lines not showing INFIX. +func_echo_infix_1 () +{ + $debug_cmd + + $require_term_colors + + _G_infix=$1; shift + _G_indent=$_G_infix + _G_prefix="$progname: $_G_infix: " + _G_message=$* + + # Strip color escape sequences before counting printable length + for _G_tc in "$tc_reset" "$tc_bold" "$tc_standout" "$tc_red" "$tc_green" "$tc_blue" "$tc_cyan" + do + test -n "$_G_tc" && { + _G_esc_tc=`$ECHO "$_G_tc" | $SED "$sed_make_literal_regex"` + _G_indent=`$ECHO "$_G_indent" | $SED "s|$_G_esc_tc||g"` + } + done + _G_indent="$progname: "`echo "$_G_indent" | $SED 's|.| |g'`" " ## exclude from sc_prohibit_nested_quotes + + func_echo_infix_1_IFS=$IFS + IFS=$nl + for _G_line in $_G_message; do + IFS=$func_echo_infix_1_IFS + $ECHO "$_G_prefix$tc_bold$_G_line$tc_reset" >&2 + _G_prefix=$_G_indent + done + IFS=$func_echo_infix_1_IFS +} + + +# func_error ARG... +# ----------------- +# Echo program name prefixed message to standard error. +func_error () +{ + $debug_cmd + + $require_term_colors + + func_echo_infix_1 " $tc_standout${tc_red}error$tc_reset" "$*" >&2 +} + + +# func_fatal_error ARG... +# ----------------------- +# Echo program name prefixed message to standard error, and exit. +func_fatal_error () +{ + $debug_cmd + + func_error "$*" + exit $EXIT_FAILURE +} + + +# func_grep EXPRESSION FILENAME +# ----------------------------- +# Check whether EXPRESSION matches any line of FILENAME, without output. +func_grep () +{ + $debug_cmd + + $GREP "$1" "$2" >/dev/null 2>&1 +} + + +# func_len STRING +# --------------- +# Set func_len_result to the length of STRING. STRING may not +# start with a hyphen. + test -z "$_G_HAVE_XSI_OPS" \ + && (eval 'x=a/b/c; + test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \ + && _G_HAVE_XSI_OPS=yes + +if test yes = "$_G_HAVE_XSI_OPS"; then + eval 'func_len () + { + $debug_cmd + + func_len_result=${#1} + }' +else + func_len () + { + $debug_cmd + + func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` + } +fi + + +# func_mkdir_p DIRECTORY-PATH +# --------------------------- +# Make sure the entire path to DIRECTORY-PATH is available. +func_mkdir_p () +{ + $debug_cmd + + _G_directory_path=$1 + _G_dir_list= + + if test -n "$_G_directory_path" && test : != "$opt_dry_run"; then + + # Protect directory names starting with '-' + case $_G_directory_path in + -*) _G_directory_path=./$_G_directory_path ;; + esac + + # While some portion of DIR does not yet exist... + while test ! -d "$_G_directory_path"; do + # ...make a list in topmost first order. Use a colon delimited + # list incase some portion of path contains whitespace. + _G_dir_list=$_G_directory_path:$_G_dir_list + + # If the last portion added has no slash in it, the list is done + case $_G_directory_path in */*) ;; *) break ;; esac + + # ...otherwise throw away the child directory and loop + _G_directory_path=`$ECHO "$_G_directory_path" | $SED -e "$sed_dirname"` + done + _G_dir_list=`$ECHO "$_G_dir_list" | $SED 's|:*$||'` + + func_mkdir_p_IFS=$IFS; IFS=: + for _G_dir in $_G_dir_list; do + IFS=$func_mkdir_p_IFS + # mkdir can fail with a 'File exist' error if two processes + # try to create one of the directories concurrently. Don't + # stop in that case! + $MKDIR "$_G_dir" 2>/dev/null || : + done + IFS=$func_mkdir_p_IFS + + # Bail out if we (or some other process) failed to create a directory. + test -d "$_G_directory_path" || \ + func_fatal_error "Failed to create '$1'" + fi +} + + +# func_mktempdir [BASENAME] +# ------------------------- +# Make a temporary directory that won't clash with other running +# libtool processes, and avoids race conditions if possible. If +# given, BASENAME is the basename for that directory. +func_mktempdir () +{ + $debug_cmd + + _G_template=${TMPDIR-/tmp}/${1-$progname} + + if test : = "$opt_dry_run"; then + # Return a directory name, but don't create it in dry-run mode + _G_tmpdir=$_G_template-$$ + else + + # If mktemp works, use that first and foremost + _G_tmpdir=`mktemp -d "$_G_template-XXXXXXXX" 2>/dev/null` + + if test ! -d "$_G_tmpdir"; then + # Failing that, at least try and use $RANDOM to avoid a race + _G_tmpdir=$_G_template-${RANDOM-0}$$ + + func_mktempdir_umask=`umask` + umask 0077 + $MKDIR "$_G_tmpdir" + umask $func_mktempdir_umask + fi + + # If we're not in dry-run mode, bomb out on failure + test -d "$_G_tmpdir" || \ + func_fatal_error "cannot create temporary directory '$_G_tmpdir'" + fi + + $ECHO "$_G_tmpdir" +} + + +# func_normal_abspath PATH +# ------------------------ +# Remove doubled-up and trailing slashes, "." path components, +# and cancel out any ".." path components in PATH after making +# it an absolute path. +func_normal_abspath () +{ + $debug_cmd + + # These SED scripts presuppose an absolute path with a trailing slash. + _G_pathcar='s|^/\([^/]*\).*$|\1|' + _G_pathcdr='s|^/[^/]*||' + _G_removedotparts=':dotsl + s|/\./|/|g + t dotsl + s|/\.$|/|' + _G_collapseslashes='s|/\{1,\}|/|g' + _G_finalslash='s|/*$|/|' + + # Start from root dir and reassemble the path. + func_normal_abspath_result= + func_normal_abspath_tpath=$1 + func_normal_abspath_altnamespace= + case $func_normal_abspath_tpath in + "") + # Empty path, that just means $cwd. + func_stripname '' '/' "`pwd`" + func_normal_abspath_result=$func_stripname_result + return + ;; + # The next three entries are used to spot a run of precisely + # two leading slashes without using negated character classes; + # we take advantage of case's first-match behaviour. + ///*) + # Unusual form of absolute path, do nothing. + ;; + //*) + # Not necessarily an ordinary path; POSIX reserves leading '//' + # and for example Cygwin uses it to access remote file shares + # over CIFS/SMB, so we conserve a leading double slash if found. + func_normal_abspath_altnamespace=/ + ;; + /*) + # Absolute path, do nothing. + ;; + *) + # Relative path, prepend $cwd. + func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath + ;; + esac + + # Cancel out all the simple stuff to save iterations. We also want + # the path to end with a slash for ease of parsing, so make sure + # there is one (and only one) here. + func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ + -e "$_G_removedotparts" -e "$_G_collapseslashes" -e "$_G_finalslash"` + while :; do + # Processed it all yet? + if test / = "$func_normal_abspath_tpath"; then + # If we ascended to the root using ".." the result may be empty now. + if test -z "$func_normal_abspath_result"; then + func_normal_abspath_result=/ + fi + break + fi + func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \ + -e "$_G_pathcar"` + func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ + -e "$_G_pathcdr"` + # Figure out what to do with it + case $func_normal_abspath_tcomponent in + "") + # Trailing empty path component, ignore it. + ;; + ..) + # Parent dir; strip last assembled component from result. + func_dirname "$func_normal_abspath_result" + func_normal_abspath_result=$func_dirname_result + ;; + *) + # Actual path component, append it. + func_append func_normal_abspath_result "/$func_normal_abspath_tcomponent" + ;; + esac + done + # Restore leading double-slash if one was found on entry. + func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result +} + + +# func_notquiet ARG... +# -------------------- +# Echo program name prefixed message only when not in quiet mode. +func_notquiet () +{ + $debug_cmd + + $opt_quiet || func_echo ${1+"$@"} + + # A bug in bash halts the script if the last line of a function + # fails when set -e is in force, so we need another command to + # work around that: + : +} + + +# func_relative_path SRCDIR DSTDIR +# -------------------------------- +# Set func_relative_path_result to the relative path from SRCDIR to DSTDIR. +func_relative_path () +{ + $debug_cmd + + func_relative_path_result= + func_normal_abspath "$1" + func_relative_path_tlibdir=$func_normal_abspath_result + func_normal_abspath "$2" + func_relative_path_tbindir=$func_normal_abspath_result + + # Ascend the tree starting from libdir + while :; do + # check if we have found a prefix of bindir + case $func_relative_path_tbindir in + $func_relative_path_tlibdir) + # found an exact match + func_relative_path_tcancelled= + break + ;; + $func_relative_path_tlibdir*) + # found a matching prefix + func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir" + func_relative_path_tcancelled=$func_stripname_result + if test -z "$func_relative_path_result"; then + func_relative_path_result=. + fi + break + ;; + *) + func_dirname $func_relative_path_tlibdir + func_relative_path_tlibdir=$func_dirname_result + if test -z "$func_relative_path_tlibdir"; then + # Have to descend all the way to the root! + func_relative_path_result=../$func_relative_path_result + func_relative_path_tcancelled=$func_relative_path_tbindir + break + fi + func_relative_path_result=../$func_relative_path_result + ;; + esac + done + + # Now calculate path; take care to avoid doubling-up slashes. + func_stripname '' '/' "$func_relative_path_result" + func_relative_path_result=$func_stripname_result + func_stripname '/' '/' "$func_relative_path_tcancelled" + if test -n "$func_stripname_result"; then + func_append func_relative_path_result "/$func_stripname_result" + fi + + # Normalisation. If bindir is libdir, return '.' else relative path. + if test -n "$func_relative_path_result"; then + func_stripname './' '' "$func_relative_path_result" + func_relative_path_result=$func_stripname_result + fi + + test -n "$func_relative_path_result" || func_relative_path_result=. + + : +} + + +# func_quote_for_eval ARG... +# -------------------------- +# Aesthetically quote ARGs to be evaled later. +# This function returns two values: +# i) func_quote_for_eval_result +# double-quoted, suitable for a subsequent eval +# ii) func_quote_for_eval_unquoted_result +# has all characters that are still active within double +# quotes backslashified. +func_quote_for_eval () +{ + $debug_cmd + + func_quote_for_eval_unquoted_result= + func_quote_for_eval_result= + while test 0 -lt $#; do + case $1 in + *[\\\`\"\$]*) + _G_unquoted_arg=`printf '%s\n' "$1" |$SED "$sed_quote_subst"` ;; + *) + _G_unquoted_arg=$1 ;; + esac + if test -n "$func_quote_for_eval_unquoted_result"; then + func_append func_quote_for_eval_unquoted_result " $_G_unquoted_arg" + else + func_append func_quote_for_eval_unquoted_result "$_G_unquoted_arg" + fi + + case $_G_unquoted_arg in + # Double-quote args containing shell metacharacters to delay + # word splitting, command substitution and variable expansion + # for a subsequent eval. + # Many Bourne shells cannot handle close brackets correctly + # in scan sets, so we specify it separately. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") + _G_quoted_arg=\"$_G_unquoted_arg\" + ;; + *) + _G_quoted_arg=$_G_unquoted_arg + ;; + esac + + if test -n "$func_quote_for_eval_result"; then + func_append func_quote_for_eval_result " $_G_quoted_arg" + else + func_append func_quote_for_eval_result "$_G_quoted_arg" + fi + shift + done +} + + +# func_quote_for_expand ARG +# ------------------------- +# Aesthetically quote ARG to be evaled later; same as above, +# but do not quote variable references. +func_quote_for_expand () +{ + $debug_cmd + + case $1 in + *[\\\`\"]*) + _G_arg=`$ECHO "$1" | $SED \ + -e "$sed_double_quote_subst" -e "$sed_double_backslash"` ;; + *) + _G_arg=$1 ;; + esac + + case $_G_arg in + # Double-quote args containing shell metacharacters to delay + # word splitting and command substitution for a subsequent eval. + # Many Bourne shells cannot handle close brackets correctly + # in scan sets, so we specify it separately. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") + _G_arg=\"$_G_arg\" + ;; + esac + + func_quote_for_expand_result=$_G_arg +} + + +# func_stripname PREFIX SUFFIX NAME +# --------------------------------- +# strip PREFIX and SUFFIX from NAME, and store in func_stripname_result. +# PREFIX and SUFFIX must not contain globbing or regex special +# characters, hashes, percent signs, but SUFFIX may contain a leading +# dot (in which case that matches only a dot). +if test yes = "$_G_HAVE_XSI_OPS"; then + eval 'func_stripname () + { + $debug_cmd + + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are + # positional parameters, so assign one to ordinary variable first. + func_stripname_result=$3 + func_stripname_result=${func_stripname_result#"$1"} + func_stripname_result=${func_stripname_result%"$2"} + }' +else + func_stripname () + { + $debug_cmd + + case $2 in + .*) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%\\\\$2\$%%"`;; + *) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%$2\$%%"`;; + esac + } +fi + + +# func_show_eval CMD [FAIL_EXP] +# ----------------------------- +# Unless opt_quiet is true, then output CMD. Then, if opt_dryrun is +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP +# is given, then evaluate it. +func_show_eval () +{ + $debug_cmd + + _G_cmd=$1 + _G_fail_exp=${2-':'} + + func_quote_for_expand "$_G_cmd" + eval "func_notquiet $func_quote_for_expand_result" + + $opt_dry_run || { + eval "$_G_cmd" + _G_status=$? + if test 0 -ne "$_G_status"; then + eval "(exit $_G_status); $_G_fail_exp" + fi + } +} + + +# func_show_eval_locale CMD [FAIL_EXP] +# ------------------------------------ +# Unless opt_quiet is true, then output CMD. Then, if opt_dryrun is +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP +# is given, then evaluate it. Use the saved locale for evaluation. +func_show_eval_locale () +{ + $debug_cmd + + _G_cmd=$1 + _G_fail_exp=${2-':'} + + $opt_quiet || { + func_quote_for_expand "$_G_cmd" + eval "func_echo $func_quote_for_expand_result" + } + + $opt_dry_run || { + eval "$_G_user_locale + $_G_cmd" + _G_status=$? + eval "$_G_safe_locale" + if test 0 -ne "$_G_status"; then + eval "(exit $_G_status); $_G_fail_exp" + fi + } +} + + +# func_tr_sh +# ---------- +# Turn $1 into a string suitable for a shell variable name. +# Result is stored in $func_tr_sh_result. All characters +# not in the set a-zA-Z0-9_ are replaced with '_'. Further, +# if $1 begins with a digit, a '_' is prepended as well. +func_tr_sh () +{ + $debug_cmd + + case $1 in + [0-9]* | *[!a-zA-Z0-9_]*) + func_tr_sh_result=`$ECHO "$1" | $SED -e 's/^\([0-9]\)/_\1/' -e 's/[^a-zA-Z0-9_]/_/g'` + ;; + * ) + func_tr_sh_result=$1 + ;; + esac +} + + +# func_verbose ARG... +# ------------------- +# Echo program name prefixed message in verbose mode only. +func_verbose () +{ + $debug_cmd + + $opt_verbose && func_echo "$*" + + : +} + + +# func_warn_and_continue ARG... +# ----------------------------- +# Echo program name prefixed warning message to standard error. +func_warn_and_continue () +{ + $debug_cmd + + $require_term_colors + + func_echo_infix_1 "${tc_red}warning$tc_reset" "$*" >&2 +} + + +# func_warning CATEGORY ARG... +# ---------------------------- +# Echo program name prefixed warning message to standard error. Warning +# messages can be filtered according to CATEGORY, where this function +# elides messages where CATEGORY is not listed in the global variable +# 'opt_warning_types'. +func_warning () +{ + $debug_cmd + + # CATEGORY must be in the warning_categories list! + case " $warning_categories " in + *" $1 "*) ;; + *) func_internal_error "invalid warning category '$1'" ;; + esac + + _G_category=$1 + shift + + case " $opt_warning_types " in + *" $_G_category "*) $warning_func ${1+"$@"} ;; + esac +} + + +# func_sort_ver VER1 VER2 +# ----------------------- +# 'sort -V' is not generally available. +# Note this deviates from the version comparison in automake +# in that it treats 1.5 < 1.5.0, and treats 1.4.4a < 1.4-p3a +# but this should suffice as we won't be specifying old +# version formats or redundant trailing .0 in bootstrap.conf. +# If we did want full compatibility then we should probably +# use m4_version_compare from autoconf. +func_sort_ver () +{ + $debug_cmd + + printf '%s\n%s\n' "$1" "$2" \ + | sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n -k 5,5n -k 6,6n -k 7,7n -k 8,8n -k 9,9n +} + +# func_lt_ver PREV CURR +# --------------------- +# Return true if PREV and CURR are in the correct order according to +# func_sort_ver, otherwise false. Use it like this: +# +# func_lt_ver "$prev_ver" "$proposed_ver" || func_fatal_error "..." +func_lt_ver () +{ + $debug_cmd + + test "x$1" = x`func_sort_ver "$1" "$2" | $SED 1q` +} + + +# Local variables: +# mode: shell-script +# sh-indentation: 2 +# eval: (add-hook 'before-save-hook 'time-stamp) +# time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC" +# time-stamp-time-zone: "UTC" +# End: +#! /bin/sh + +# Set a version string for this script. +scriptversion=2014-01-07.03; # UTC + +# A portable, pluggable option parser for Bourne shell. +# Written by Gary V. Vaughan, 2010 + +# Copyright (C) 2010-2015 Free Software Foundation, Inc. +# This is free software; see the source for copying conditions. There is NO +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# Please report bugs or propose patches to gary@gnu.org. + + +## ------ ## +## Usage. ## +## ------ ## + +# This file is a library for parsing options in your shell scripts along +# with assorted other useful supporting features that you can make use +# of too. +# +# For the simplest scripts you might need only: +# +# #!/bin/sh +# . relative/path/to/funclib.sh +# . relative/path/to/options-parser +# scriptversion=1.0 +# func_options ${1+"$@"} +# eval set dummy "$func_options_result"; shift +# ...rest of your script... +# +# In order for the '--version' option to work, you will need to have a +# suitably formatted comment like the one at the top of this file +# starting with '# Written by ' and ending with '# warranty; '. +# +# For '-h' and '--help' to work, you will also need a one line +# description of your script's purpose in a comment directly above the +# '# Written by ' line, like the one at the top of this file. +# +# The default options also support '--debug', which will turn on shell +# execution tracing (see the comment above debug_cmd below for another +# use), and '--verbose' and the func_verbose function to allow your script +# to display verbose messages only when your user has specified +# '--verbose'. +# +# After sourcing this file, you can plug processing for additional +# options by amending the variables from the 'Configuration' section +# below, and following the instructions in the 'Option parsing' +# section further down. + +## -------------- ## +## Configuration. ## +## -------------- ## + +# You should override these variables in your script after sourcing this +# file so that they reflect the customisations you have added to the +# option parser. + +# The usage line for option parsing errors and the start of '-h' and +# '--help' output messages. You can embed shell variables for delayed +# expansion at the time the message is displayed, but you will need to +# quote other shell meta-characters carefully to prevent them being +# expanded when the contents are evaled. +usage='$progpath [OPTION]...' + +# Short help message in response to '-h' and '--help'. Add to this or +# override it after sourcing this library to reflect the full set of +# options your script accepts. +usage_message="\ + --debug enable verbose shell tracing + -W, --warnings=CATEGORY + report the warnings falling in CATEGORY [all] + -v, --verbose verbosely report processing + --version print version information and exit + -h, --help print short or long help message and exit +" + +# Additional text appended to 'usage_message' in response to '--help'. +long_help_message=" +Warning categories include: + 'all' show all warnings + 'none' turn off all the warnings + 'error' warnings are treated as fatal errors" + +# Help message printed before fatal option parsing errors. +fatal_help="Try '\$progname --help' for more information." + + + +## ------------------------- ## +## Hook function management. ## +## ------------------------- ## + +# This section contains functions for adding, removing, and running hooks +# to the main code. A hook is just a named list of of function, that can +# be run in order later on. + +# func_hookable FUNC_NAME +# ----------------------- +# Declare that FUNC_NAME will run hooks added with +# 'func_add_hook FUNC_NAME ...'. +func_hookable () +{ + $debug_cmd + + func_append hookable_fns " $1" +} + + +# func_add_hook FUNC_NAME HOOK_FUNC +# --------------------------------- +# Request that FUNC_NAME call HOOK_FUNC before it returns. FUNC_NAME must +# first have been declared "hookable" by a call to 'func_hookable'. +func_add_hook () +{ + $debug_cmd + + case " $hookable_fns " in + *" $1 "*) ;; + *) func_fatal_error "'$1' does not accept hook functions." ;; + esac + + eval func_append ${1}_hooks '" $2"' +} + + +# func_remove_hook FUNC_NAME HOOK_FUNC +# ------------------------------------ +# Remove HOOK_FUNC from the list of functions called by FUNC_NAME. +func_remove_hook () +{ + $debug_cmd + + eval ${1}_hooks='`$ECHO "\$'$1'_hooks" |$SED "s| '$2'||"`' +} + + +# func_run_hooks FUNC_NAME [ARG]... +# --------------------------------- +# Run all hook functions registered to FUNC_NAME. +# It is assumed that the list of hook functions contains nothing more +# than a whitespace-delimited list of legal shell function names, and +# no effort is wasted trying to catch shell meta-characters or preserve +# whitespace. +func_run_hooks () +{ + $debug_cmd + + case " $hookable_fns " in + *" $1 "*) ;; + *) func_fatal_error "'$1' does not support hook funcions.n" ;; + esac + + eval _G_hook_fns=\$$1_hooks; shift + + for _G_hook in $_G_hook_fns; do + eval $_G_hook '"$@"' + + # store returned options list back into positional + # parameters for next 'cmd' execution. + eval _G_hook_result=\$${_G_hook}_result + eval set dummy "$_G_hook_result"; shift + done + + func_quote_for_eval ${1+"$@"} + func_run_hooks_result=$func_quote_for_eval_result +} + + + +## --------------- ## +## Option parsing. ## +## --------------- ## + +# In order to add your own option parsing hooks, you must accept the +# full positional parameter list in your hook function, remove any +# options that you action, and then pass back the remaining unprocessed +# options in '_result', escaped suitably for +# 'eval'. Like this: +# +# my_options_prep () +# { +# $debug_cmd +# +# # Extend the existing usage message. +# usage_message=$usage_message' +# -s, --silent don'\''t print informational messages +# ' +# +# func_quote_for_eval ${1+"$@"} +# my_options_prep_result=$func_quote_for_eval_result +# } +# func_add_hook func_options_prep my_options_prep +# +# +# my_silent_option () +# { +# $debug_cmd +# +# # Note that for efficiency, we parse as many options as we can +# # recognise in a loop before passing the remainder back to the +# # caller on the first unrecognised argument we encounter. +# while test $# -gt 0; do +# opt=$1; shift +# case $opt in +# --silent|-s) opt_silent=: ;; +# # Separate non-argument short options: +# -s*) func_split_short_opt "$_G_opt" +# set dummy "$func_split_short_opt_name" \ +# "-$func_split_short_opt_arg" ${1+"$@"} +# shift +# ;; +# *) set dummy "$_G_opt" "$*"; shift; break ;; +# esac +# done +# +# func_quote_for_eval ${1+"$@"} +# my_silent_option_result=$func_quote_for_eval_result +# } +# func_add_hook func_parse_options my_silent_option +# +# +# my_option_validation () +# { +# $debug_cmd +# +# $opt_silent && $opt_verbose && func_fatal_help "\ +# '--silent' and '--verbose' options are mutually exclusive." +# +# func_quote_for_eval ${1+"$@"} +# my_option_validation_result=$func_quote_for_eval_result +# } +# func_add_hook func_validate_options my_option_validation +# +# You'll alse need to manually amend $usage_message to reflect the extra +# options you parse. It's preferable to append if you can, so that +# multiple option parsing hooks can be added safely. + + +# func_options [ARG]... +# --------------------- +# All the functions called inside func_options are hookable. See the +# individual implementations for details. +func_hookable func_options +func_options () +{ + $debug_cmd + + func_options_prep ${1+"$@"} + eval func_parse_options \ + ${func_options_prep_result+"$func_options_prep_result"} + eval func_validate_options \ + ${func_parse_options_result+"$func_parse_options_result"} + + eval func_run_hooks func_options \ + ${func_validate_options_result+"$func_validate_options_result"} + + # save modified positional parameters for caller + func_options_result=$func_run_hooks_result +} + + +# func_options_prep [ARG]... +# -------------------------- +# All initialisations required before starting the option parse loop. +# Note that when calling hook functions, we pass through the list of +# positional parameters. If a hook function modifies that list, and +# needs to propogate that back to rest of this script, then the complete +# modified list must be put in 'func_run_hooks_result' before +# returning. +func_hookable func_options_prep +func_options_prep () +{ + $debug_cmd + + # Option defaults: + opt_verbose=false + opt_warning_types= + + func_run_hooks func_options_prep ${1+"$@"} + + # save modified positional parameters for caller + func_options_prep_result=$func_run_hooks_result +} + + +# func_parse_options [ARG]... +# --------------------------- +# The main option parsing loop. +func_hookable func_parse_options +func_parse_options () +{ + $debug_cmd + + func_parse_options_result= + + # this just eases exit handling + while test $# -gt 0; do + # Defer to hook functions for initial option parsing, so they + # get priority in the event of reusing an option name. + func_run_hooks func_parse_options ${1+"$@"} + + # Adjust func_parse_options positional parameters to match + eval set dummy "$func_run_hooks_result"; shift + + # Break out of the loop if we already parsed every option. + test $# -gt 0 || break + + _G_opt=$1 + shift + case $_G_opt in + --debug|-x) debug_cmd='set -x' + func_echo "enabling shell trace mode" + $debug_cmd + ;; + + --no-warnings|--no-warning|--no-warn) + set dummy --warnings none ${1+"$@"} + shift + ;; + + --warnings|--warning|-W) + test $# = 0 && func_missing_arg $_G_opt && break + case " $warning_categories $1" in + *" $1 "*) + # trailing space prevents matching last $1 above + func_append_uniq opt_warning_types " $1" + ;; + *all) + opt_warning_types=$warning_categories + ;; + *none) + opt_warning_types=none + warning_func=: + ;; + *error) + opt_warning_types=$warning_categories + warning_func=func_fatal_error + ;; + *) + func_fatal_error \ + "unsupported warning category: '$1'" + ;; + esac + shift + ;; + + --verbose|-v) opt_verbose=: ;; + --version) func_version ;; + -\?|-h) func_usage ;; + --help) func_help ;; + + # Separate optargs to long options (plugins may need this): + --*=*) func_split_equals "$_G_opt" + set dummy "$func_split_equals_lhs" \ + "$func_split_equals_rhs" ${1+"$@"} + shift + ;; + + # Separate optargs to short options: + -W*) + func_split_short_opt "$_G_opt" + set dummy "$func_split_short_opt_name" \ + "$func_split_short_opt_arg" ${1+"$@"} + shift + ;; + + # Separate non-argument short options: + -\?*|-h*|-v*|-x*) + func_split_short_opt "$_G_opt" + set dummy "$func_split_short_opt_name" \ + "-$func_split_short_opt_arg" ${1+"$@"} + shift + ;; + + --) break ;; + -*) func_fatal_help "unrecognised option: '$_G_opt'" ;; + *) set dummy "$_G_opt" ${1+"$@"}; shift; break ;; + esac + done + + # save modified positional parameters for caller + func_quote_for_eval ${1+"$@"} + func_parse_options_result=$func_quote_for_eval_result +} + + +# func_validate_options [ARG]... +# ------------------------------ +# Perform any sanity checks on option settings and/or unconsumed +# arguments. +func_hookable func_validate_options +func_validate_options () +{ + $debug_cmd + + # Display all warnings if -W was not given. + test -n "$opt_warning_types" || opt_warning_types=" $warning_categories" + + func_run_hooks func_validate_options ${1+"$@"} + + # Bail if the options were screwed! + $exit_cmd $EXIT_FAILURE + + # save modified positional parameters for caller + func_validate_options_result=$func_run_hooks_result +} + + + +## ----------------- ## +## Helper functions. ## +## ----------------- ## + +# This section contains the helper functions used by the rest of the +# hookable option parser framework in ascii-betical order. + + +# func_fatal_help ARG... +# ---------------------- +# Echo program name prefixed message to standard error, followed by +# a help hint, and exit. +func_fatal_help () +{ + $debug_cmd + + eval \$ECHO \""Usage: $usage"\" + eval \$ECHO \""$fatal_help"\" + func_error ${1+"$@"} + exit $EXIT_FAILURE +} + + +# func_help +# --------- +# Echo long help message to standard output and exit. +func_help () +{ + $debug_cmd + + func_usage_message + $ECHO "$long_help_message" + exit 0 +} + + +# func_missing_arg ARGNAME +# ------------------------ +# Echo program name prefixed message to standard error and set global +# exit_cmd. +func_missing_arg () +{ + $debug_cmd + + func_error "Missing argument for '$1'." + exit_cmd=exit +} + + +# func_split_equals STRING +# ------------------------ +# Set func_split_equals_lhs and func_split_equals_rhs shell variables after +# splitting STRING at the '=' sign. +test -z "$_G_HAVE_XSI_OPS" \ + && (eval 'x=a/b/c; + test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \ + && _G_HAVE_XSI_OPS=yes + +if test yes = "$_G_HAVE_XSI_OPS" +then + # This is an XSI compatible shell, allowing a faster implementation... + eval 'func_split_equals () + { + $debug_cmd + + func_split_equals_lhs=${1%%=*} + func_split_equals_rhs=${1#*=} + test "x$func_split_equals_lhs" = "x$1" \ + && func_split_equals_rhs= + }' +else + # ...otherwise fall back to using expr, which is often a shell builtin. + func_split_equals () + { + $debug_cmd + + func_split_equals_lhs=`expr "x$1" : 'x\([^=]*\)'` + func_split_equals_rhs= + test "x$func_split_equals_lhs" = "x$1" \ + || func_split_equals_rhs=`expr "x$1" : 'x[^=]*=\(.*\)$'` + } +fi #func_split_equals + + +# func_split_short_opt SHORTOPT +# ----------------------------- +# Set func_split_short_opt_name and func_split_short_opt_arg shell +# variables after splitting SHORTOPT after the 2nd character. +if test yes = "$_G_HAVE_XSI_OPS" +then + # This is an XSI compatible shell, allowing a faster implementation... + eval 'func_split_short_opt () + { + $debug_cmd + + func_split_short_opt_arg=${1#??} + func_split_short_opt_name=${1%"$func_split_short_opt_arg"} + }' +else + # ...otherwise fall back to using expr, which is often a shell builtin. + func_split_short_opt () + { + $debug_cmd + + func_split_short_opt_name=`expr "x$1" : 'x-\(.\)'` + func_split_short_opt_arg=`expr "x$1" : 'x-.\(.*\)$'` + } +fi #func_split_short_opt + + +# func_usage +# ---------- +# Echo short help message to standard output and exit. +func_usage () +{ + $debug_cmd + + func_usage_message + $ECHO "Run '$progname --help |${PAGER-more}' for full usage" + exit 0 +} + + +# func_usage_message +# ------------------ +# Echo short help message to standard output. +func_usage_message () +{ + $debug_cmd + + eval \$ECHO \""Usage: $usage"\" + echo + $SED -n 's|^# || + /^Written by/{ + x;p;x + } + h + /^Written by/q' < "$progpath" + echo + eval \$ECHO \""$usage_message"\" +} + + +# func_version +# ------------ +# Echo version message to standard output and exit. +func_version () +{ + $debug_cmd + + printf '%s\n' "$progname $scriptversion" + $SED -n ' + /(C)/!b go + :more + /\./!{ + N + s|\n# | | + b more + } + :go + /^# Written by /,/# warranty; / { + s|^# || + s|^# *$|| + s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2| + p + } + /^# Written by / { + s|^# || + p + } + /^warranty; /q' < "$progpath" + + exit $? +} + + +# Local variables: +# mode: shell-script +# sh-indentation: 2 +# eval: (add-hook 'before-save-hook 'time-stamp) +# time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC" +# time-stamp-time-zone: "UTC" +# End: + +# Set a version string. +scriptversion='(GNU libtool) 2.4.6' + + +# func_echo ARG... +# ---------------- +# Libtool also displays the current mode in messages, so override +# funclib.sh func_echo with this custom definition. +func_echo () +{ + $debug_cmd + + _G_message=$* + + func_echo_IFS=$IFS + IFS=$nl + for _G_line in $_G_message; do + IFS=$func_echo_IFS + $ECHO "$progname${opt_mode+: $opt_mode}: $_G_line" + done + IFS=$func_echo_IFS +} + + +# func_warning ARG... +# ------------------- +# Libtool warnings are not categorized, so override funclib.sh +# func_warning with this simpler definition. +func_warning () +{ + $debug_cmd + + $warning_func ${1+"$@"} +} + + +## ---------------- ## +## Options parsing. ## +## ---------------- ## + +# Hook in the functions to make sure our own options are parsed during +# the option parsing loop. + +usage='$progpath [OPTION]... [MODE-ARG]...' + +# Short help message in response to '-h'. +usage_message="Options: + --config show all configuration variables + --debug enable verbose shell tracing + -n, --dry-run display commands without modifying any files + --features display basic configuration information and exit + --mode=MODE use operation mode MODE + --no-warnings equivalent to '-Wnone' + --preserve-dup-deps don't remove duplicate dependency libraries + --quiet, --silent don't print informational messages + --tag=TAG use configuration variables from tag TAG + -v, --verbose print more informational messages than default + --version print version information + -W, --warnings=CATEGORY report the warnings falling in CATEGORY [all] + -h, --help, --help-all print short, long, or detailed help message +" + +# Additional text appended to 'usage_message' in response to '--help'. +func_help () +{ + $debug_cmd + + func_usage_message + $ECHO "$long_help_message + +MODE must be one of the following: + + clean remove files from the build directory + compile compile a source file into a libtool object + execute automatically set library path, then run a program + finish complete the installation of libtool libraries + install install libraries or executables + link create a library or an executable + uninstall remove libraries from an installed directory + +MODE-ARGS vary depending on the MODE. When passed as first option, +'--mode=MODE' may be abbreviated as 'MODE' or a unique abbreviation of that. +Try '$progname --help --mode=MODE' for a more detailed description of MODE. + +When reporting a bug, please describe a test case to reproduce it and +include the following information: + + host-triplet: $host + shell: $SHELL + compiler: $LTCC + compiler flags: $LTCFLAGS + linker: $LD (gnu? $with_gnu_ld) + version: $progname (GNU libtool) 2.4.6 + automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q` + autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q` + +Report bugs to . +GNU libtool home page: . +General help using GNU software: ." + exit 0 +} + + +# func_lo2o OBJECT-NAME +# --------------------- +# Transform OBJECT-NAME from a '.lo' suffix to the platform specific +# object suffix. + +lo2o=s/\\.lo\$/.$objext/ +o2lo=s/\\.$objext\$/.lo/ + +if test yes = "$_G_HAVE_XSI_OPS"; then + eval 'func_lo2o () + { + case $1 in + *.lo) func_lo2o_result=${1%.lo}.$objext ;; + * ) func_lo2o_result=$1 ;; + esac + }' + + # func_xform LIBOBJ-OR-SOURCE + # --------------------------- + # Transform LIBOBJ-OR-SOURCE from a '.o' or '.c' (or otherwise) + # suffix to a '.lo' libtool-object suffix. + eval 'func_xform () + { + func_xform_result=${1%.*}.lo + }' +else + # ...otherwise fall back to using sed. + func_lo2o () + { + func_lo2o_result=`$ECHO "$1" | $SED "$lo2o"` + } + + func_xform () + { + func_xform_result=`$ECHO "$1" | $SED 's|\.[^.]*$|.lo|'` + } +fi + + +# func_fatal_configuration ARG... +# ------------------------------- +# Echo program name prefixed message to standard error, followed by +# a configuration failure hint, and exit. +func_fatal_configuration () +{ + func__fatal_error ${1+"$@"} \ + "See the $PACKAGE documentation for more information." \ + "Fatal configuration error." +} + + +# func_config +# ----------- +# Display the configuration for all the tags in this script. +func_config () +{ + re_begincf='^# ### BEGIN LIBTOOL' + re_endcf='^# ### END LIBTOOL' + + # Default configuration. + $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath" + + # Now print the configurations for the tags. + for tagname in $taglist; do + $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath" + done + + exit $? +} + + +# func_features +# ------------- +# Display the features supported by this script. +func_features () +{ + echo "host: $host" + if test yes = "$build_libtool_libs"; then + echo "enable shared libraries" + else + echo "disable shared libraries" + fi + if test yes = "$build_old_libs"; then + echo "enable static libraries" + else + echo "disable static libraries" + fi + + exit $? +} + + +# func_enable_tag TAGNAME +# ----------------------- +# Verify that TAGNAME is valid, and either flag an error and exit, or +# enable the TAGNAME tag. We also add TAGNAME to the global $taglist +# variable here. +func_enable_tag () +{ + # Global variable: + tagname=$1 + + re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$" + re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$" + sed_extractcf=/$re_begincf/,/$re_endcf/p + + # Validate tagname. + case $tagname in + *[!-_A-Za-z0-9,/]*) + func_fatal_error "invalid tag name: $tagname" + ;; + esac + + # Don't test for the "default" C tag, as we know it's + # there but not specially marked. + case $tagname in + CC) ;; + *) + if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then + taglist="$taglist $tagname" + + # Evaluate the configuration. Be careful to quote the path + # and the sed script, to avoid splitting on whitespace, but + # also don't use non-portable quotes within backquotes within + # quotes we have to do it in 2 steps: + extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"` + eval "$extractedcf" + else + func_error "ignoring unknown tag $tagname" + fi + ;; + esac +} + + +# func_check_version_match +# ------------------------ +# Ensure that we are using m4 macros, and libtool script from the same +# release of libtool. +func_check_version_match () +{ + if test "$package_revision" != "$macro_revision"; then + if test "$VERSION" != "$macro_version"; then + if test -z "$macro_version"; then + cat >&2 <<_LT_EOF +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the +$progname: definition of this LT_INIT comes from an older release. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION +$progname: and run autoconf again. +_LT_EOF + else + cat >&2 <<_LT_EOF +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the +$progname: definition of this LT_INIT comes from $PACKAGE $macro_version. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION +$progname: and run autoconf again. +_LT_EOF + fi + else + cat >&2 <<_LT_EOF +$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision, +$progname: but the definition of this LT_INIT comes from revision $macro_revision. +$progname: You should recreate aclocal.m4 with macros from revision $package_revision +$progname: of $PACKAGE $VERSION and run autoconf again. +_LT_EOF + fi + + exit $EXIT_MISMATCH + fi +} + + +# libtool_options_prep [ARG]... +# ----------------------------- +# Preparation for options parsed by libtool. +libtool_options_prep () +{ + $debug_mode + + # Option defaults: + opt_config=false + opt_dlopen= + opt_dry_run=false + opt_help=false + opt_mode= + opt_preserve_dup_deps=false + opt_quiet=false + + nonopt= + preserve_args= + + # Shorthand for --mode=foo, only valid as the first argument + case $1 in + clean|clea|cle|cl) + shift; set dummy --mode clean ${1+"$@"}; shift + ;; + compile|compil|compi|comp|com|co|c) + shift; set dummy --mode compile ${1+"$@"}; shift + ;; + execute|execut|execu|exec|exe|ex|e) + shift; set dummy --mode execute ${1+"$@"}; shift + ;; + finish|finis|fini|fin|fi|f) + shift; set dummy --mode finish ${1+"$@"}; shift + ;; + install|instal|insta|inst|ins|in|i) + shift; set dummy --mode install ${1+"$@"}; shift + ;; + link|lin|li|l) + shift; set dummy --mode link ${1+"$@"}; shift + ;; + uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) + shift; set dummy --mode uninstall ${1+"$@"}; shift + ;; + esac + + # Pass back the list of options. + func_quote_for_eval ${1+"$@"} + libtool_options_prep_result=$func_quote_for_eval_result +} +func_add_hook func_options_prep libtool_options_prep + + +# libtool_parse_options [ARG]... +# --------------------------------- +# Provide handling for libtool specific options. +libtool_parse_options () +{ + $debug_cmd + + # Perform our own loop to consume as many options as possible in + # each iteration. + while test $# -gt 0; do + _G_opt=$1 + shift + case $_G_opt in + --dry-run|--dryrun|-n) + opt_dry_run=: + ;; + + --config) func_config ;; + + --dlopen|-dlopen) + opt_dlopen="${opt_dlopen+$opt_dlopen +}$1" + shift + ;; + + --preserve-dup-deps) + opt_preserve_dup_deps=: ;; + + --features) func_features ;; + + --finish) set dummy --mode finish ${1+"$@"}; shift ;; + + --help) opt_help=: ;; + + --help-all) opt_help=': help-all' ;; + + --mode) test $# = 0 && func_missing_arg $_G_opt && break + opt_mode=$1 + case $1 in + # Valid mode arguments: + clean|compile|execute|finish|install|link|relink|uninstall) ;; + + # Catch anything else as an error + *) func_error "invalid argument for $_G_opt" + exit_cmd=exit + break + ;; + esac + shift + ;; + + --no-silent|--no-quiet) + opt_quiet=false + func_append preserve_args " $_G_opt" + ;; + + --no-warnings|--no-warning|--no-warn) + opt_warning=false + func_append preserve_args " $_G_opt" + ;; + + --no-verbose) + opt_verbose=false + func_append preserve_args " $_G_opt" + ;; + + --silent|--quiet) + opt_quiet=: + opt_verbose=false + func_append preserve_args " $_G_opt" + ;; + + --tag) test $# = 0 && func_missing_arg $_G_opt && break + opt_tag=$1 + func_append preserve_args " $_G_opt $1" + func_enable_tag "$1" + shift + ;; + + --verbose|-v) opt_quiet=false + opt_verbose=: + func_append preserve_args " $_G_opt" + ;; + + # An option not handled by this hook function: + *) set dummy "$_G_opt" ${1+"$@"}; shift; break ;; + esac + done + + + # save modified positional parameters for caller + func_quote_for_eval ${1+"$@"} + libtool_parse_options_result=$func_quote_for_eval_result +} +func_add_hook func_parse_options libtool_parse_options + + + +# libtool_validate_options [ARG]... +# --------------------------------- +# Perform any sanity checks on option settings and/or unconsumed +# arguments. +libtool_validate_options () +{ + # save first non-option argument + if test 0 -lt $#; then + nonopt=$1 + shift + fi + + # preserve --debug + test : = "$debug_cmd" || func_append preserve_args " --debug" + + case $host in + # Solaris2 added to fix http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16452 + # see also: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59788 + *cygwin* | *mingw* | *pw32* | *cegcc* | *solaris2* | *os2*) + # don't eliminate duplications in $postdeps and $predeps + opt_duplicate_compiler_generated_deps=: + ;; + *) + opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps + ;; + esac + + $opt_help || { + # Sanity checks first: + func_check_version_match + + test yes != "$build_libtool_libs" \ + && test yes != "$build_old_libs" \ + && func_fatal_configuration "not configured to build any kind of library" + + # Darwin sucks + eval std_shrext=\"$shrext_cmds\" + + # Only execute mode is allowed to have -dlopen flags. + if test -n "$opt_dlopen" && test execute != "$opt_mode"; then + func_error "unrecognized option '-dlopen'" + $ECHO "$help" 1>&2 + exit $EXIT_FAILURE + fi + + # Change the help message to a mode-specific one. + generic_help=$help + help="Try '$progname --help --mode=$opt_mode' for more information." + } + + # Pass back the unparsed argument list + func_quote_for_eval ${1+"$@"} + libtool_validate_options_result=$func_quote_for_eval_result +} +func_add_hook func_validate_options libtool_validate_options + + +# Process options as early as possible so that --help and --version +# can return quickly. +func_options ${1+"$@"} +eval set dummy "$func_options_result"; shift + + + +## ----------- ## +## Main. ## +## ----------- ## + +magic='%%%MAGIC variable%%%' +magic_exe='%%%MAGIC EXE variable%%%' + +# Global variables. +extracted_archives= +extracted_serial=0 + +# If this variable is set in any of the actions, the command in it +# will be execed at the end. This prevents here-documents from being +# left over by shells. +exec_cmd= + + +# A function that is used when there is no print builtin or printf. +func_fallback_echo () +{ + eval 'cat <<_LTECHO_EOF +$1 +_LTECHO_EOF' +} + +# func_generated_by_libtool +# True iff stdin has been generated by Libtool. This function is only +# a basic sanity check; it will hardly flush out determined imposters. +func_generated_by_libtool_p () +{ + $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1 +} + +# func_lalib_p file +# True iff FILE is a libtool '.la' library or '.lo' object file. +# This function is only a basic sanity check; it will hardly flush out +# determined imposters. +func_lalib_p () +{ + test -f "$1" && + $SED -e 4q "$1" 2>/dev/null | func_generated_by_libtool_p +} + +# func_lalib_unsafe_p file +# True iff FILE is a libtool '.la' library or '.lo' object file. +# This function implements the same check as func_lalib_p without +# resorting to external programs. To this end, it redirects stdin and +# closes it afterwards, without saving the original file descriptor. +# As a safety measure, use it only where a negative result would be +# fatal anyway. Works if 'file' does not exist. +func_lalib_unsafe_p () +{ + lalib_p=no + if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then + for lalib_p_l in 1 2 3 4 + do + read lalib_p_line + case $lalib_p_line in + \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;; + esac + done + exec 0<&5 5<&- + fi + test yes = "$lalib_p" +} + +# func_ltwrapper_script_p file +# True iff FILE is a libtool wrapper script +# This function is only a basic sanity check; it will hardly flush out +# determined imposters. +func_ltwrapper_script_p () +{ + test -f "$1" && + $lt_truncate_bin < "$1" 2>/dev/null | func_generated_by_libtool_p +} + +# func_ltwrapper_executable_p file +# True iff FILE is a libtool wrapper executable +# This function is only a basic sanity check; it will hardly flush out +# determined imposters. +func_ltwrapper_executable_p () +{ + func_ltwrapper_exec_suffix= + case $1 in + *.exe) ;; + *) func_ltwrapper_exec_suffix=.exe ;; + esac + $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1 +} + +# func_ltwrapper_scriptname file +# Assumes file is an ltwrapper_executable +# uses $file to determine the appropriate filename for a +# temporary ltwrapper_script. +func_ltwrapper_scriptname () +{ + func_dirname_and_basename "$1" "" "." + func_stripname '' '.exe' "$func_basename_result" + func_ltwrapper_scriptname_result=$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper +} + +# func_ltwrapper_p file +# True iff FILE is a libtool wrapper script or wrapper executable +# This function is only a basic sanity check; it will hardly flush out +# determined imposters. +func_ltwrapper_p () +{ + func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1" +} + + +# func_execute_cmds commands fail_cmd +# Execute tilde-delimited COMMANDS. +# If FAIL_CMD is given, eval that upon failure. +# FAIL_CMD may read-access the current command in variable CMD! +func_execute_cmds () +{ + $debug_cmd + + save_ifs=$IFS; IFS='~' + for cmd in $1; do + IFS=$sp$nl + eval cmd=\"$cmd\" + IFS=$save_ifs + func_show_eval "$cmd" "${2-:}" + done + IFS=$save_ifs +} + + +# func_source file +# Source FILE, adding directory component if necessary. +# Note that it is not necessary on cygwin/mingw to append a dot to +# FILE even if both FILE and FILE.exe exist: automatic-append-.exe +# behavior happens only for exec(3), not for open(2)! Also, sourcing +# 'FILE.' does not work on cygwin managed mounts. +func_source () +{ + $debug_cmd + + case $1 in + */* | *\\*) . "$1" ;; + *) . "./$1" ;; + esac +} + + +# func_resolve_sysroot PATH +# Replace a leading = in PATH with a sysroot. Store the result into +# func_resolve_sysroot_result +func_resolve_sysroot () +{ + func_resolve_sysroot_result=$1 + case $func_resolve_sysroot_result in + =*) + func_stripname '=' '' "$func_resolve_sysroot_result" + func_resolve_sysroot_result=$lt_sysroot$func_stripname_result + ;; + esac +} + +# func_replace_sysroot PATH +# If PATH begins with the sysroot, replace it with = and +# store the result into func_replace_sysroot_result. +func_replace_sysroot () +{ + case $lt_sysroot:$1 in + ?*:"$lt_sysroot"*) + func_stripname "$lt_sysroot" '' "$1" + func_replace_sysroot_result='='$func_stripname_result + ;; + *) + # Including no sysroot. + func_replace_sysroot_result=$1 + ;; + esac +} + +# func_infer_tag arg +# Infer tagged configuration to use if any are available and +# if one wasn't chosen via the "--tag" command line option. +# Only attempt this if the compiler in the base compile +# command doesn't match the default compiler. +# arg is usually of the form 'gcc ...' +func_infer_tag () +{ + $debug_cmd + + if test -n "$available_tags" && test -z "$tagname"; then + CC_quoted= + for arg in $CC; do + func_append_quoted CC_quoted "$arg" + done + CC_expanded=`func_echo_all $CC` + CC_quoted_expanded=`func_echo_all $CC_quoted` + case $@ in + # Blanks in the command may have been stripped by the calling shell, + # but not from the CC environment variable when configure was run. + " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ + " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;; + # Blanks at the start of $base_compile will cause this to fail + # if we don't check for them as well. + *) + for z in $available_tags; do + if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then + # Evaluate the configuration. + eval "`$SED -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" + CC_quoted= + for arg in $CC; do + # Double-quote args containing other shell metacharacters. + func_append_quoted CC_quoted "$arg" + done + CC_expanded=`func_echo_all $CC` + CC_quoted_expanded=`func_echo_all $CC_quoted` + case "$@ " in + " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ + " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) + # The compiler in the base compile command matches + # the one in the tagged configuration. + # Assume this is the tagged configuration we want. + tagname=$z + break + ;; + esac + fi + done + # If $tagname still isn't set, then no tagged configuration + # was found and let the user know that the "--tag" command + # line option must be used. + if test -z "$tagname"; then + func_echo "unable to infer tagged configuration" + func_fatal_error "specify a tag with '--tag'" +# else +# func_verbose "using $tagname tagged configuration" + fi + ;; + esac + fi +} + + + +# func_write_libtool_object output_name pic_name nonpic_name +# Create a libtool object file (analogous to a ".la" file), +# but don't create it if we're doing a dry run. +func_write_libtool_object () +{ + write_libobj=$1 + if test yes = "$build_libtool_libs"; then + write_lobj=\'$2\' + else + write_lobj=none + fi + + if test yes = "$build_old_libs"; then + write_oldobj=\'$3\' + else + write_oldobj=none + fi + + $opt_dry_run || { + cat >${write_libobj}T </dev/null` + if test "$?" -eq 0 && test -n "$func_convert_core_file_wine_to_w32_tmp"; then + func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" | + $SED -e "$sed_naive_backslashify"` + else + func_convert_core_file_wine_to_w32_result= + fi + fi +} +# end: func_convert_core_file_wine_to_w32 + + +# func_convert_core_path_wine_to_w32 ARG +# Helper function used by path conversion functions when $build is *nix, and +# $host is mingw, cygwin, or some other w32 environment. Relies on a correctly +# configured wine environment available, with the winepath program in $build's +# $PATH. Assumes ARG has no leading or trailing path separator characters. +# +# ARG is path to be converted from $build format to win32. +# Result is available in $func_convert_core_path_wine_to_w32_result. +# Unconvertible file (directory) names in ARG are skipped; if no directory names +# are convertible, then the result may be empty. +func_convert_core_path_wine_to_w32 () +{ + $debug_cmd + + # unfortunately, winepath doesn't convert paths, only file names + func_convert_core_path_wine_to_w32_result= + if test -n "$1"; then + oldIFS=$IFS + IFS=: + for func_convert_core_path_wine_to_w32_f in $1; do + IFS=$oldIFS + func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f" + if test -n "$func_convert_core_file_wine_to_w32_result"; then + if test -z "$func_convert_core_path_wine_to_w32_result"; then + func_convert_core_path_wine_to_w32_result=$func_convert_core_file_wine_to_w32_result + else + func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result" + fi + fi + done + IFS=$oldIFS + fi +} +# end: func_convert_core_path_wine_to_w32 + + +# func_cygpath ARGS... +# Wrapper around calling the cygpath program via LT_CYGPATH. This is used when +# when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2) +# $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or +# (2), returns the Cygwin file name or path in func_cygpath_result (input +# file name or path is assumed to be in w32 format, as previously converted +# from $build's *nix or MSYS format). In case (3), returns the w32 file name +# or path in func_cygpath_result (input file name or path is assumed to be in +# Cygwin format). Returns an empty string on error. +# +# ARGS are passed to cygpath, with the last one being the file name or path to +# be converted. +# +# Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH +# environment variable; do not put it in $PATH. +func_cygpath () +{ + $debug_cmd + + if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then + func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null` + if test "$?" -ne 0; then + # on failure, ensure result is empty + func_cygpath_result= + fi + else + func_cygpath_result= + func_error "LT_CYGPATH is empty or specifies non-existent file: '$LT_CYGPATH'" + fi +} +#end: func_cygpath + + +# func_convert_core_msys_to_w32 ARG +# Convert file name or path ARG from MSYS format to w32 format. Return +# result in func_convert_core_msys_to_w32_result. +func_convert_core_msys_to_w32 () +{ + $debug_cmd + + # awkward: cmd appends spaces to result + func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null | + $SED -e 's/[ ]*$//' -e "$sed_naive_backslashify"` +} +#end: func_convert_core_msys_to_w32 + + +# func_convert_file_check ARG1 ARG2 +# Verify that ARG1 (a file name in $build format) was converted to $host +# format in ARG2. Otherwise, emit an error message, but continue (resetting +# func_to_host_file_result to ARG1). +func_convert_file_check () +{ + $debug_cmd + + if test -z "$2" && test -n "$1"; then + func_error "Could not determine host file name corresponding to" + func_error " '$1'" + func_error "Continuing, but uninstalled executables may not work." + # Fallback: + func_to_host_file_result=$1 + fi +} +# end func_convert_file_check + + +# func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH +# Verify that FROM_PATH (a path in $build format) was converted to $host +# format in TO_PATH. Otherwise, emit an error message, but continue, resetting +# func_to_host_file_result to a simplistic fallback value (see below). +func_convert_path_check () +{ + $debug_cmd + + if test -z "$4" && test -n "$3"; then + func_error "Could not determine the host path corresponding to" + func_error " '$3'" + func_error "Continuing, but uninstalled executables may not work." + # Fallback. This is a deliberately simplistic "conversion" and + # should not be "improved". See libtool.info. + if test "x$1" != "x$2"; then + lt_replace_pathsep_chars="s|$1|$2|g" + func_to_host_path_result=`echo "$3" | + $SED -e "$lt_replace_pathsep_chars"` + else + func_to_host_path_result=$3 + fi + fi +} +# end func_convert_path_check + + +# func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG +# Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT +# and appending REPL if ORIG matches BACKPAT. +func_convert_path_front_back_pathsep () +{ + $debug_cmd + + case $4 in + $1 ) func_to_host_path_result=$3$func_to_host_path_result + ;; + esac + case $4 in + $2 ) func_append func_to_host_path_result "$3" + ;; + esac +} +# end func_convert_path_front_back_pathsep + + +################################################## +# $build to $host FILE NAME CONVERSION FUNCTIONS # +################################################## +# invoked via '$to_host_file_cmd ARG' +# +# In each case, ARG is the path to be converted from $build to $host format. +# Result will be available in $func_to_host_file_result. + + +# func_to_host_file ARG +# Converts the file name ARG from $build format to $host format. Return result +# in func_to_host_file_result. +func_to_host_file () +{ + $debug_cmd + + $to_host_file_cmd "$1" +} +# end func_to_host_file + + +# func_to_tool_file ARG LAZY +# converts the file name ARG from $build format to toolchain format. Return +# result in func_to_tool_file_result. If the conversion in use is listed +# in (the comma separated) LAZY, no conversion takes place. +func_to_tool_file () +{ + $debug_cmd + + case ,$2, in + *,"$to_tool_file_cmd",*) + func_to_tool_file_result=$1 + ;; + *) + $to_tool_file_cmd "$1" + func_to_tool_file_result=$func_to_host_file_result + ;; + esac +} +# end func_to_tool_file + + +# func_convert_file_noop ARG +# Copy ARG to func_to_host_file_result. +func_convert_file_noop () +{ + func_to_host_file_result=$1 +} +# end func_convert_file_noop + + +# func_convert_file_msys_to_w32 ARG +# Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic +# conversion to w32 is not available inside the cwrapper. Returns result in +# func_to_host_file_result. +func_convert_file_msys_to_w32 () +{ + $debug_cmd + + func_to_host_file_result=$1 + if test -n "$1"; then + func_convert_core_msys_to_w32 "$1" + func_to_host_file_result=$func_convert_core_msys_to_w32_result + fi + func_convert_file_check "$1" "$func_to_host_file_result" +} +# end func_convert_file_msys_to_w32 + + +# func_convert_file_cygwin_to_w32 ARG +# Convert file name ARG from Cygwin to w32 format. Returns result in +# func_to_host_file_result. +func_convert_file_cygwin_to_w32 () +{ + $debug_cmd + + func_to_host_file_result=$1 + if test -n "$1"; then + # because $build is cygwin, we call "the" cygpath in $PATH; no need to use + # LT_CYGPATH in this case. + func_to_host_file_result=`cygpath -m "$1"` + fi + func_convert_file_check "$1" "$func_to_host_file_result" +} +# end func_convert_file_cygwin_to_w32 + + +# func_convert_file_nix_to_w32 ARG +# Convert file name ARG from *nix to w32 format. Requires a wine environment +# and a working winepath. Returns result in func_to_host_file_result. +func_convert_file_nix_to_w32 () +{ + $debug_cmd + + func_to_host_file_result=$1 + if test -n "$1"; then + func_convert_core_file_wine_to_w32 "$1" + func_to_host_file_result=$func_convert_core_file_wine_to_w32_result + fi + func_convert_file_check "$1" "$func_to_host_file_result" +} +# end func_convert_file_nix_to_w32 + + +# func_convert_file_msys_to_cygwin ARG +# Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. +# Returns result in func_to_host_file_result. +func_convert_file_msys_to_cygwin () +{ + $debug_cmd + + func_to_host_file_result=$1 + if test -n "$1"; then + func_convert_core_msys_to_w32 "$1" + func_cygpath -u "$func_convert_core_msys_to_w32_result" + func_to_host_file_result=$func_cygpath_result + fi + func_convert_file_check "$1" "$func_to_host_file_result" +} +# end func_convert_file_msys_to_cygwin + + +# func_convert_file_nix_to_cygwin ARG +# Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed +# in a wine environment, working winepath, and LT_CYGPATH set. Returns result +# in func_to_host_file_result. +func_convert_file_nix_to_cygwin () +{ + $debug_cmd + + func_to_host_file_result=$1 + if test -n "$1"; then + # convert from *nix to w32, then use cygpath to convert from w32 to cygwin. + func_convert_core_file_wine_to_w32 "$1" + func_cygpath -u "$func_convert_core_file_wine_to_w32_result" + func_to_host_file_result=$func_cygpath_result + fi + func_convert_file_check "$1" "$func_to_host_file_result" +} +# end func_convert_file_nix_to_cygwin + + +############################################# +# $build to $host PATH CONVERSION FUNCTIONS # +############################################# +# invoked via '$to_host_path_cmd ARG' +# +# In each case, ARG is the path to be converted from $build to $host format. +# The result will be available in $func_to_host_path_result. +# +# Path separators are also converted from $build format to $host format. If +# ARG begins or ends with a path separator character, it is preserved (but +# converted to $host format) on output. +# +# All path conversion functions are named using the following convention: +# file name conversion function : func_convert_file_X_to_Y () +# path conversion function : func_convert_path_X_to_Y () +# where, for any given $build/$host combination the 'X_to_Y' value is the +# same. If conversion functions are added for new $build/$host combinations, +# the two new functions must follow this pattern, or func_init_to_host_path_cmd +# will break. + + +# func_init_to_host_path_cmd +# Ensures that function "pointer" variable $to_host_path_cmd is set to the +# appropriate value, based on the value of $to_host_file_cmd. +to_host_path_cmd= +func_init_to_host_path_cmd () +{ + $debug_cmd + + if test -z "$to_host_path_cmd"; then + func_stripname 'func_convert_file_' '' "$to_host_file_cmd" + to_host_path_cmd=func_convert_path_$func_stripname_result + fi +} + + +# func_to_host_path ARG +# Converts the path ARG from $build format to $host format. Return result +# in func_to_host_path_result. +func_to_host_path () +{ + $debug_cmd + + func_init_to_host_path_cmd + $to_host_path_cmd "$1" +} +# end func_to_host_path + + +# func_convert_path_noop ARG +# Copy ARG to func_to_host_path_result. +func_convert_path_noop () +{ + func_to_host_path_result=$1 +} +# end func_convert_path_noop + + +# func_convert_path_msys_to_w32 ARG +# Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic +# conversion to w32 is not available inside the cwrapper. Returns result in +# func_to_host_path_result. +func_convert_path_msys_to_w32 () +{ + $debug_cmd + + func_to_host_path_result=$1 + if test -n "$1"; then + # Remove leading and trailing path separator characters from ARG. MSYS + # behavior is inconsistent here; cygpath turns them into '.;' and ';.'; + # and winepath ignores them completely. + func_stripname : : "$1" + func_to_host_path_tmp1=$func_stripname_result + func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" + func_to_host_path_result=$func_convert_core_msys_to_w32_result + func_convert_path_check : ";" \ + "$func_to_host_path_tmp1" "$func_to_host_path_result" + func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" + fi +} +# end func_convert_path_msys_to_w32 + + +# func_convert_path_cygwin_to_w32 ARG +# Convert path ARG from Cygwin to w32 format. Returns result in +# func_to_host_file_result. +func_convert_path_cygwin_to_w32 () +{ + $debug_cmd + + func_to_host_path_result=$1 + if test -n "$1"; then + # See func_convert_path_msys_to_w32: + func_stripname : : "$1" + func_to_host_path_tmp1=$func_stripname_result + func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"` + func_convert_path_check : ";" \ + "$func_to_host_path_tmp1" "$func_to_host_path_result" + func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" + fi +} +# end func_convert_path_cygwin_to_w32 + + +# func_convert_path_nix_to_w32 ARG +# Convert path ARG from *nix to w32 format. Requires a wine environment and +# a working winepath. Returns result in func_to_host_file_result. +func_convert_path_nix_to_w32 () +{ + $debug_cmd + + func_to_host_path_result=$1 + if test -n "$1"; then + # See func_convert_path_msys_to_w32: + func_stripname : : "$1" + func_to_host_path_tmp1=$func_stripname_result + func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" + func_to_host_path_result=$func_convert_core_path_wine_to_w32_result + func_convert_path_check : ";" \ + "$func_to_host_path_tmp1" "$func_to_host_path_result" + func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" + fi +} +# end func_convert_path_nix_to_w32 + + +# func_convert_path_msys_to_cygwin ARG +# Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. +# Returns result in func_to_host_file_result. +func_convert_path_msys_to_cygwin () +{ + $debug_cmd + + func_to_host_path_result=$1 + if test -n "$1"; then + # See func_convert_path_msys_to_w32: + func_stripname : : "$1" + func_to_host_path_tmp1=$func_stripname_result + func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" + func_cygpath -u -p "$func_convert_core_msys_to_w32_result" + func_to_host_path_result=$func_cygpath_result + func_convert_path_check : : \ + "$func_to_host_path_tmp1" "$func_to_host_path_result" + func_convert_path_front_back_pathsep ":*" "*:" : "$1" + fi +} +# end func_convert_path_msys_to_cygwin + + +# func_convert_path_nix_to_cygwin ARG +# Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a +# a wine environment, working winepath, and LT_CYGPATH set. Returns result in +# func_to_host_file_result. +func_convert_path_nix_to_cygwin () +{ + $debug_cmd + + func_to_host_path_result=$1 + if test -n "$1"; then + # Remove leading and trailing path separator characters from + # ARG. msys behavior is inconsistent here, cygpath turns them + # into '.;' and ';.', and winepath ignores them completely. + func_stripname : : "$1" + func_to_host_path_tmp1=$func_stripname_result + func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" + func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result" + func_to_host_path_result=$func_cygpath_result + func_convert_path_check : : \ + "$func_to_host_path_tmp1" "$func_to_host_path_result" + func_convert_path_front_back_pathsep ":*" "*:" : "$1" + fi +} +# end func_convert_path_nix_to_cygwin + + +# func_dll_def_p FILE +# True iff FILE is a Windows DLL '.def' file. +# Keep in sync with _LT_DLL_DEF_P in libtool.m4 +func_dll_def_p () +{ + $debug_cmd + + func_dll_def_p_tmp=`$SED -n \ + -e 's/^[ ]*//' \ + -e '/^\(;.*\)*$/d' \ + -e 's/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p' \ + -e q \ + "$1"` + test DEF = "$func_dll_def_p_tmp" +} + + +# func_mode_compile arg... +func_mode_compile () +{ + $debug_cmd + + # Get the compilation command and the source file. + base_compile= + srcfile=$nonopt # always keep a non-empty value in "srcfile" + suppress_opt=yes + suppress_output= + arg_mode=normal + libobj= + later= + pie_flag= + + for arg + do + case $arg_mode in + arg ) + # do not "continue". Instead, add this to base_compile + lastarg=$arg + arg_mode=normal + ;; + + target ) + libobj=$arg + arg_mode=normal + continue + ;; + + normal ) + # Accept any command-line options. + case $arg in + -o) + test -n "$libobj" && \ + func_fatal_error "you cannot specify '-o' more than once" + arg_mode=target + continue + ;; + + -pie | -fpie | -fPIE) + func_append pie_flag " $arg" + continue + ;; + + -shared | -static | -prefer-pic | -prefer-non-pic) + func_append later " $arg" + continue + ;; + + -no-suppress) + suppress_opt=no + continue + ;; + + -Xcompiler) + arg_mode=arg # the next one goes into the "base_compile" arg list + continue # The current "srcfile" will either be retained or + ;; # replaced later. I would guess that would be a bug. + + -Wc,*) + func_stripname '-Wc,' '' "$arg" + args=$func_stripname_result + lastarg= + save_ifs=$IFS; IFS=, + for arg in $args; do + IFS=$save_ifs + func_append_quoted lastarg "$arg" + done + IFS=$save_ifs + func_stripname ' ' '' "$lastarg" + lastarg=$func_stripname_result + + # Add the arguments to base_compile. + func_append base_compile " $lastarg" + continue + ;; + + *) + # Accept the current argument as the source file. + # The previous "srcfile" becomes the current argument. + # + lastarg=$srcfile + srcfile=$arg + ;; + esac # case $arg + ;; + esac # case $arg_mode + + # Aesthetically quote the previous argument. + func_append_quoted base_compile "$lastarg" + done # for arg + + case $arg_mode in + arg) + func_fatal_error "you must specify an argument for -Xcompile" + ;; + target) + func_fatal_error "you must specify a target with '-o'" + ;; + *) + # Get the name of the library object. + test -z "$libobj" && { + func_basename "$srcfile" + libobj=$func_basename_result + } + ;; + esac + + # Recognize several different file suffixes. + # If the user specifies -o file.o, it is replaced with file.lo + case $libobj in + *.[cCFSifmso] | \ + *.ada | *.adb | *.ads | *.asm | \ + *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \ + *.[fF][09]? | *.for | *.java | *.go | *.obj | *.sx | *.cu | *.cup) + func_xform "$libobj" + libobj=$func_xform_result + ;; + esac + + case $libobj in + *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;; + *) + func_fatal_error "cannot determine name of library object from '$libobj'" + ;; + esac + + func_infer_tag $base_compile + + for arg in $later; do + case $arg in + -shared) + test yes = "$build_libtool_libs" \ + || func_fatal_configuration "cannot build a shared library" + build_old_libs=no + continue + ;; + + -static) + build_libtool_libs=no + build_old_libs=yes + continue + ;; + + -prefer-pic) + pic_mode=yes + continue + ;; + + -prefer-non-pic) + pic_mode=no + continue + ;; + esac + done + + func_quote_for_eval "$libobj" + test "X$libobj" != "X$func_quote_for_eval_result" \ + && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \ + && func_warning "libobj name '$libobj' may not contain shell special characters." + func_dirname_and_basename "$obj" "/" "" + objname=$func_basename_result + xdir=$func_dirname_result + lobj=$xdir$objdir/$objname + + test -z "$base_compile" && \ + func_fatal_help "you must specify a compilation command" + + # Delete any leftover library objects. + if test yes = "$build_old_libs"; then + removelist="$obj $lobj $libobj ${libobj}T" + else + removelist="$lobj $libobj ${libobj}T" + fi + + # On Cygwin there's no "real" PIC flag so we must build both object types + case $host_os in + cygwin* | mingw* | pw32* | os2* | cegcc*) + pic_mode=default + ;; + esac + if test no = "$pic_mode" && test pass_all != "$deplibs_check_method"; then + # non-PIC code in shared libraries is not supported + pic_mode=default + fi + + # Calculate the filename of the output object if compiler does + # not support -o with -c + if test no = "$compiler_c_o"; then + output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.$objext + lockfile=$output_obj.lock + else + output_obj= + need_locks=no + lockfile= + fi + + # Lock this critical section if it is needed + # We use this script file to make the link, it avoids creating a new file + if test yes = "$need_locks"; then + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do + func_echo "Waiting for $lockfile to be removed" + sleep 2 + done + elif test warn = "$need_locks"; then + if test -f "$lockfile"; then + $ECHO "\ +*** ERROR, $lockfile exists and contains: +`cat $lockfile 2>/dev/null` + +This indicates that another process is trying to use the same +temporary object file, and libtool could not work around it because +your compiler does not support '-c' and '-o' together. If you +repeat this compilation, it may succeed, by chance, but you had better +avoid parallel builds (make -j) in this platform, or get a better +compiler." + + $opt_dry_run || $RM $removelist + exit $EXIT_FAILURE + fi + func_append removelist " $output_obj" + $ECHO "$srcfile" > "$lockfile" + fi + + $opt_dry_run || $RM $removelist + func_append removelist " $lockfile" + trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15 + + func_to_tool_file "$srcfile" func_convert_file_msys_to_w32 + srcfile=$func_to_tool_file_result + func_quote_for_eval "$srcfile" + qsrcfile=$func_quote_for_eval_result + + # Only build a PIC object if we are building libtool libraries. + if test yes = "$build_libtool_libs"; then + # Without this assignment, base_compile gets emptied. + fbsd_hideous_sh_bug=$base_compile + + if test no != "$pic_mode"; then + command="$base_compile $qsrcfile $pic_flag" + else + # Don't build PIC code + command="$base_compile $qsrcfile" + fi + + func_mkdir_p "$xdir$objdir" + + if test -z "$output_obj"; then + # Place PIC objects in $objdir + func_append command " -o $lobj" + fi + + func_show_eval_locale "$command" \ + 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE' + + if test warn = "$need_locks" && + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then + $ECHO "\ +*** ERROR, $lockfile contains: +`cat $lockfile 2>/dev/null` + +but it should contain: +$srcfile + +This indicates that another process is trying to use the same +temporary object file, and libtool could not work around it because +your compiler does not support '-c' and '-o' together. If you +repeat this compilation, it may succeed, by chance, but you had better +avoid parallel builds (make -j) in this platform, or get a better +compiler." + + $opt_dry_run || $RM $removelist + exit $EXIT_FAILURE + fi + + # Just move the object if needed, then go on to compile the next one + if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then + func_show_eval '$MV "$output_obj" "$lobj"' \ + 'error=$?; $opt_dry_run || $RM $removelist; exit $error' + fi + + # Allow error messages only from the first compilation. + if test yes = "$suppress_opt"; then + suppress_output=' >/dev/null 2>&1' + fi + fi + + # Only build a position-dependent object if we build old libraries. + if test yes = "$build_old_libs"; then + if test yes != "$pic_mode"; then + # Don't build PIC code + command="$base_compile $qsrcfile$pie_flag" + else + command="$base_compile $qsrcfile $pic_flag" + fi + if test yes = "$compiler_c_o"; then + func_append command " -o $obj" + fi + + # Suppress compiler output if we already did a PIC compilation. + func_append command "$suppress_output" + func_show_eval_locale "$command" \ + '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' + + if test warn = "$need_locks" && + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then + $ECHO "\ +*** ERROR, $lockfile contains: +`cat $lockfile 2>/dev/null` + +but it should contain: +$srcfile + +This indicates that another process is trying to use the same +temporary object file, and libtool could not work around it because +your compiler does not support '-c' and '-o' together. If you +repeat this compilation, it may succeed, by chance, but you had better +avoid parallel builds (make -j) in this platform, or get a better +compiler." + + $opt_dry_run || $RM $removelist + exit $EXIT_FAILURE + fi + + # Just move the object if needed + if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then + func_show_eval '$MV "$output_obj" "$obj"' \ + 'error=$?; $opt_dry_run || $RM $removelist; exit $error' + fi + fi + + $opt_dry_run || { + func_write_libtool_object "$libobj" "$objdir/$objname" "$objname" + + # Unlock the critical section if it was locked + if test no != "$need_locks"; then + removelist=$lockfile + $RM "$lockfile" + fi + } + + exit $EXIT_SUCCESS +} + +$opt_help || { + test compile = "$opt_mode" && func_mode_compile ${1+"$@"} +} + +func_mode_help () +{ + # We need to display help for each of the modes. + case $opt_mode in + "") + # Generic help is extracted from the usage comments + # at the start of this file. + func_help + ;; + + clean) + $ECHO \ +"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE... + +Remove files from the build directory. + +RM is the name of the program to use to delete files associated with each FILE +(typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed +to RM. + +If FILE is a libtool library, object or program, all the files associated +with it are deleted. Otherwise, only FILE itself is deleted using RM." + ;; + + compile) + $ECHO \ +"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE + +Compile a source file into a libtool library object. + +This mode accepts the following additional options: + + -o OUTPUT-FILE set the output file name to OUTPUT-FILE + -no-suppress do not suppress compiler output for multiple passes + -prefer-pic try to build PIC objects only + -prefer-non-pic try to build non-PIC objects only + -shared do not build a '.o' file suitable for static linking + -static only build a '.o' file suitable for static linking + -Wc,FLAG pass FLAG directly to the compiler + +COMPILE-COMMAND is a command to be used in creating a 'standard' object file +from the given SOURCEFILE. + +The output file name is determined by removing the directory component from +SOURCEFILE, then substituting the C source code suffix '.c' with the +library object suffix, '.lo'." + ;; + + execute) + $ECHO \ +"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]... + +Automatically set library path, then run a program. + +This mode accepts the following additional options: + + -dlopen FILE add the directory containing FILE to the library path + +This mode sets the library path environment variable according to '-dlopen' +flags. + +If any of the ARGS are libtool executable wrappers, then they are translated +into their corresponding uninstalled binary, and any of their required library +directories are added to the library path. + +Then, COMMAND is executed, with ARGS as arguments." + ;; + + finish) + $ECHO \ +"Usage: $progname [OPTION]... --mode=finish [LIBDIR]... + +Complete the installation of libtool libraries. + +Each LIBDIR is a directory that contains libtool libraries. + +The commands that this mode executes may require superuser privileges. Use +the '--dry-run' option if you just want to see what would be executed." + ;; + + install) + $ECHO \ +"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND... + +Install executables or libraries. + +INSTALL-COMMAND is the installation command. The first component should be +either the 'install' or 'cp' program. + +The following components of INSTALL-COMMAND are treated specially: + + -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation + +The rest of the components are interpreted as arguments to that command (only +BSD-compatible install options are recognized)." + ;; + + link) + $ECHO \ +"Usage: $progname [OPTION]... --mode=link LINK-COMMAND... + +Link object files or libraries together to form another library, or to +create an executable program. + +LINK-COMMAND is a command using the C compiler that you would use to create +a program from several object files. + +The following components of LINK-COMMAND are treated specially: + + -all-static do not do any dynamic linking at all + -avoid-version do not add a version suffix if possible + -bindir BINDIR specify path to binaries directory (for systems where + libraries must be found in the PATH setting at runtime) + -dlopen FILE '-dlpreopen' FILE if it cannot be dlopened at runtime + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) + -export-symbols SYMFILE + try to export only the symbols listed in SYMFILE + -export-symbols-regex REGEX + try to export only the symbols matching REGEX + -LLIBDIR search LIBDIR for required installed libraries + -lNAME OUTPUT-FILE requires the installed library libNAME + -module build a library that can dlopened + -no-fast-install disable the fast-install mode + -no-install link a not-installable executable + -no-undefined declare that a library does not refer to external symbols + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects + -objectlist FILE use a list of object files found in FILE to specify objects + -os2dllname NAME force a short DLL name on OS/2 (no effect on other OSes) + -precious-files-regex REGEX + don't remove output files matching REGEX + -release RELEASE specify package release information + -rpath LIBDIR the created library will eventually be installed in LIBDIR + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries + -shared only do dynamic linking of libtool libraries + -shrext SUFFIX override the standard shared library file extension + -static do not do any dynamic linking of uninstalled libtool libraries + -static-libtool-libs + do not do any dynamic linking of libtool libraries + -version-info CURRENT[:REVISION[:AGE]] + specify library version info [each variable defaults to 0] + -weak LIBNAME declare that the target provides the LIBNAME interface + -Wc,FLAG + -Xcompiler FLAG pass linker-specific FLAG directly to the compiler + -Wl,FLAG + -Xlinker FLAG pass linker-specific FLAG directly to the linker + -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC) + +All other options (arguments beginning with '-') are ignored. + +Every other argument is treated as a filename. Files ending in '.la' are +treated as uninstalled libtool libraries, other files are standard or library +object files. + +If the OUTPUT-FILE ends in '.la', then a libtool library is created, +only library objects ('.lo' files) may be specified, and '-rpath' is +required, except when creating a convenience library. + +If OUTPUT-FILE ends in '.a' or '.lib', then a standard library is created +using 'ar' and 'ranlib', or on Windows using 'lib'. + +If OUTPUT-FILE ends in '.lo' or '.$objext', then a reloadable object file +is created, otherwise an executable program is created." + ;; + + uninstall) + $ECHO \ +"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... + +Remove libraries from an installation directory. + +RM is the name of the program to use to delete files associated with each FILE +(typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed +to RM. + +If FILE is a libtool library, all the files associated with it are deleted. +Otherwise, only FILE itself is deleted using RM." + ;; + + *) + func_fatal_help "invalid operation mode '$opt_mode'" + ;; + esac + + echo + $ECHO "Try '$progname --help' for more information about other modes." +} + +# Now that we've collected a possible --mode arg, show help if necessary +if $opt_help; then + if test : = "$opt_help"; then + func_mode_help + else + { + func_help noexit + for opt_mode in compile link execute install finish uninstall clean; do + func_mode_help + done + } | $SED -n '1p; 2,$s/^Usage:/ or: /p' + { + func_help noexit + for opt_mode in compile link execute install finish uninstall clean; do + echo + func_mode_help + done + } | + $SED '1d + /^When reporting/,/^Report/{ + H + d + } + $x + /information about other modes/d + /more detailed .*MODE/d + s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/' + fi + exit $? +fi + + +# func_mode_execute arg... +func_mode_execute () +{ + $debug_cmd + + # The first argument is the command name. + cmd=$nonopt + test -z "$cmd" && \ + func_fatal_help "you must specify a COMMAND" + + # Handle -dlopen flags immediately. + for file in $opt_dlopen; do + test -f "$file" \ + || func_fatal_help "'$file' is not a file" + + dir= + case $file in + *.la) + func_resolve_sysroot "$file" + file=$func_resolve_sysroot_result + + # Check to see that this really is a libtool archive. + func_lalib_unsafe_p "$file" \ + || func_fatal_help "'$lib' is not a valid libtool archive" + + # Read the libtool library. + dlname= + library_names= + func_source "$file" + + # Skip this library if it cannot be dlopened. + if test -z "$dlname"; then + # Warn if it was a shared library. + test -n "$library_names" && \ + func_warning "'$file' was not linked with '-export-dynamic'" + continue + fi + + func_dirname "$file" "" "." + dir=$func_dirname_result + + if test -f "$dir/$objdir/$dlname"; then + func_append dir "/$objdir" + else + if test ! -f "$dir/$dlname"; then + func_fatal_error "cannot find '$dlname' in '$dir' or '$dir/$objdir'" + fi + fi + ;; + + *.lo) + # Just add the directory containing the .lo file. + func_dirname "$file" "" "." + dir=$func_dirname_result + ;; + + *) + func_warning "'-dlopen' is ignored for non-libtool libraries and objects" + continue + ;; + esac + + # Get the absolute pathname. + absdir=`cd "$dir" && pwd` + test -n "$absdir" && dir=$absdir + + # Now add the directory to shlibpath_var. + if eval "test -z \"\$$shlibpath_var\""; then + eval "$shlibpath_var=\"\$dir\"" + else + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" + fi + done + + # This variable tells wrapper scripts just to set shlibpath_var + # rather than running their programs. + libtool_execute_magic=$magic + + # Check if any of the arguments is a wrapper script. + args= + for file + do + case $file in + -* | *.la | *.lo ) ;; + *) + # Do a test to see if this is really a libtool program. + if func_ltwrapper_script_p "$file"; then + func_source "$file" + # Transform arg to wrapped name. + file=$progdir/$program + elif func_ltwrapper_executable_p "$file"; then + func_ltwrapper_scriptname "$file" + func_source "$func_ltwrapper_scriptname_result" + # Transform arg to wrapped name. + file=$progdir/$program + fi + ;; + esac + # Quote arguments (to preserve shell metacharacters). + func_append_quoted args "$file" + done + + if $opt_dry_run; then + # Display what would be done. + if test -n "$shlibpath_var"; then + eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\"" + echo "export $shlibpath_var" + fi + $ECHO "$cmd$args" + exit $EXIT_SUCCESS + else + if test -n "$shlibpath_var"; then + # Export the shlibpath_var. + eval "export $shlibpath_var" + fi + + # Restore saved environment variables + for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES + do + eval "if test \"\${save_$lt_var+set}\" = set; then + $lt_var=\$save_$lt_var; export $lt_var + else + $lt_unset $lt_var + fi" + done + + # Now prepare to actually exec the command. + exec_cmd=\$cmd$args + fi +} + +test execute = "$opt_mode" && func_mode_execute ${1+"$@"} + + +# func_mode_finish arg... +func_mode_finish () +{ + $debug_cmd + + libs= + libdirs= + admincmds= + + for opt in "$nonopt" ${1+"$@"} + do + if test -d "$opt"; then + func_append libdirs " $opt" + + elif test -f "$opt"; then + if func_lalib_unsafe_p "$opt"; then + func_append libs " $opt" + else + func_warning "'$opt' is not a valid libtool archive" + fi + + else + func_fatal_error "invalid argument '$opt'" + fi + done + + if test -n "$libs"; then + if test -n "$lt_sysroot"; then + sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"` + sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;" + else + sysroot_cmd= + fi + + # Remove sysroot references + if $opt_dry_run; then + for lib in $libs; do + echo "removing references to $lt_sysroot and '=' prefixes from $lib" + done + else + tmpdir=`func_mktempdir` + for lib in $libs; do + $SED -e "$sysroot_cmd s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \ + > $tmpdir/tmp-la + mv -f $tmpdir/tmp-la $lib + done + ${RM}r "$tmpdir" + fi + fi + + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then + for libdir in $libdirs; do + if test -n "$finish_cmds"; then + # Do each command in the finish commands. + func_execute_cmds "$finish_cmds" 'admincmds="$admincmds +'"$cmd"'"' + fi + if test -n "$finish_eval"; then + # Do the single finish_eval. + eval cmds=\"$finish_eval\" + $opt_dry_run || eval "$cmds" || func_append admincmds " + $cmds" + fi + done + fi + + # Exit here if they wanted silent mode. + $opt_quiet && exit $EXIT_SUCCESS + + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then + echo "----------------------------------------------------------------------" + echo "Libraries have been installed in:" + for libdir in $libdirs; do + $ECHO " $libdir" + done + echo + echo "If you ever happen to want to link against installed libraries" + echo "in a given directory, LIBDIR, you must either use libtool, and" + echo "specify the full pathname of the library, or use the '-LLIBDIR'" + echo "flag during linking and do at least one of the following:" + if test -n "$shlibpath_var"; then + echo " - add LIBDIR to the '$shlibpath_var' environment variable" + echo " during execution" + fi + if test -n "$runpath_var"; then + echo " - add LIBDIR to the '$runpath_var' environment variable" + echo " during linking" + fi + if test -n "$hardcode_libdir_flag_spec"; then + libdir=LIBDIR + eval flag=\"$hardcode_libdir_flag_spec\" + + $ECHO " - use the '$flag' linker flag" + fi + if test -n "$admincmds"; then + $ECHO " - have your system administrator run these commands:$admincmds" + fi + if test -f /etc/ld.so.conf; then + echo " - have your system administrator add LIBDIR to '/etc/ld.so.conf'" + fi + echo + + echo "See any operating system documentation about shared libraries for" + case $host in + solaris2.[6789]|solaris2.1[0-9]) + echo "more information, such as the ld(1), crle(1) and ld.so(8) manual" + echo "pages." + ;; + *) + echo "more information, such as the ld(1) and ld.so(8) manual pages." + ;; + esac + echo "----------------------------------------------------------------------" + fi + exit $EXIT_SUCCESS +} + +test finish = "$opt_mode" && func_mode_finish ${1+"$@"} + + +# func_mode_install arg... +func_mode_install () +{ + $debug_cmd + + # There may be an optional sh(1) argument at the beginning of + # install_prog (especially on Windows NT). + if test "$SHELL" = "$nonopt" || test /bin/sh = "$nonopt" || + # Allow the use of GNU shtool's install command. + case $nonopt in *shtool*) :;; *) false;; esac + then + # Aesthetically quote it. + func_quote_for_eval "$nonopt" + install_prog="$func_quote_for_eval_result " + arg=$1 + shift + else + install_prog= + arg=$nonopt + fi + + # The real first argument should be the name of the installation program. + # Aesthetically quote it. + func_quote_for_eval "$arg" + func_append install_prog "$func_quote_for_eval_result" + install_shared_prog=$install_prog + case " $install_prog " in + *[\\\ /]cp\ *) install_cp=: ;; + *) install_cp=false ;; + esac + + # We need to accept at least all the BSD install flags. + dest= + files= + opts= + prev= + install_type= + isdir=false + stripme= + no_mode=: + for arg + do + arg2= + if test -n "$dest"; then + func_append files " $dest" + dest=$arg + continue + fi + + case $arg in + -d) isdir=: ;; + -f) + if $install_cp; then :; else + prev=$arg + fi + ;; + -g | -m | -o) + prev=$arg + ;; + -s) + stripme=" -s" + continue + ;; + -*) + ;; + *) + # If the previous option needed an argument, then skip it. + if test -n "$prev"; then + if test X-m = "X$prev" && test -n "$install_override_mode"; then + arg2=$install_override_mode + no_mode=false + fi + prev= + else + dest=$arg + continue + fi + ;; + esac + + # Aesthetically quote the argument. + func_quote_for_eval "$arg" + func_append install_prog " $func_quote_for_eval_result" + if test -n "$arg2"; then + func_quote_for_eval "$arg2" + fi + func_append install_shared_prog " $func_quote_for_eval_result" + done + + test -z "$install_prog" && \ + func_fatal_help "you must specify an install program" + + test -n "$prev" && \ + func_fatal_help "the '$prev' option requires an argument" + + if test -n "$install_override_mode" && $no_mode; then + if $install_cp; then :; else + func_quote_for_eval "$install_override_mode" + func_append install_shared_prog " -m $func_quote_for_eval_result" + fi + fi + + if test -z "$files"; then + if test -z "$dest"; then + func_fatal_help "no file or destination specified" + else + func_fatal_help "you must specify a destination" + fi + fi + + # Strip any trailing slash from the destination. + func_stripname '' '/' "$dest" + dest=$func_stripname_result + + # Check to see that the destination is a directory. + test -d "$dest" && isdir=: + if $isdir; then + destdir=$dest + destname= + else + func_dirname_and_basename "$dest" "" "." + destdir=$func_dirname_result + destname=$func_basename_result + + # Not a directory, so check to see that there is only one file specified. + set dummy $files; shift + test "$#" -gt 1 && \ + func_fatal_help "'$dest' is not a directory" + fi + case $destdir in + [\\/]* | [A-Za-z]:[\\/]*) ;; + *) + for file in $files; do + case $file in + *.lo) ;; + *) + func_fatal_help "'$destdir' must be an absolute directory name" + ;; + esac + done + ;; + esac + + # This variable tells wrapper scripts just to set variables rather + # than running their programs. + libtool_install_magic=$magic + + staticlibs= + future_libdirs= + current_libdirs= + for file in $files; do + + # Do each installation. + case $file in + *.$libext) + # Do the static libraries later. + func_append staticlibs " $file" + ;; + + *.la) + func_resolve_sysroot "$file" + file=$func_resolve_sysroot_result + + # Check to see that this really is a libtool archive. + func_lalib_unsafe_p "$file" \ + || func_fatal_help "'$file' is not a valid libtool archive" + + library_names= + old_library= + relink_command= + func_source "$file" + + # Add the libdir to current_libdirs if it is the destination. + if test "X$destdir" = "X$libdir"; then + case "$current_libdirs " in + *" $libdir "*) ;; + *) func_append current_libdirs " $libdir" ;; + esac + else + # Note the libdir as a future libdir. + case "$future_libdirs " in + *" $libdir "*) ;; + *) func_append future_libdirs " $libdir" ;; + esac + fi + + func_dirname "$file" "/" "" + dir=$func_dirname_result + func_append dir "$objdir" + + if test -n "$relink_command"; then + # Determine the prefix the user has applied to our future dir. + inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"` + + # Don't allow the user to place us outside of our expected + # location b/c this prevents finding dependent libraries that + # are installed to the same prefix. + # At present, this check doesn't affect windows .dll's that + # are installed into $libdir/../bin (currently, that works fine) + # but it's something to keep an eye on. + test "$inst_prefix_dir" = "$destdir" && \ + func_fatal_error "error: cannot install '$file' to a directory not ending in $libdir" + + if test -n "$inst_prefix_dir"; then + # Stick the inst_prefix_dir data into the link command. + relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` + else + relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"` + fi + + func_warning "relinking '$file'" + func_show_eval "$relink_command" \ + 'func_fatal_error "error: relink '\''$file'\'' with the above command before installing it"' + fi + + # See the names of the shared library. + set dummy $library_names; shift + if test -n "$1"; then + realname=$1 + shift + + srcname=$realname + test -n "$relink_command" && srcname=${realname}T + + # Install the shared library and build the symlinks. + func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \ + 'exit $?' + tstripme=$stripme + case $host_os in + cygwin* | mingw* | pw32* | cegcc*) + case $realname in + *.dll.a) + tstripme= + ;; + esac + ;; + os2*) + case $realname in + *_dll.a) + tstripme= + ;; + esac + ;; + esac + if test -n "$tstripme" && test -n "$striplib"; then + func_show_eval "$striplib $destdir/$realname" 'exit $?' + fi + + if test "$#" -gt 0; then + # Delete the old symlinks, and create new ones. + # Try 'ln -sf' first, because the 'ln' binary might depend on + # the symlink we replace! Solaris /bin/ln does not understand -f, + # so we also need to try rm && ln -s. + for linkname + do + test "$linkname" != "$realname" \ + && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })" + done + fi + + # Do each command in the postinstall commands. + lib=$destdir/$realname + func_execute_cmds "$postinstall_cmds" 'exit $?' + fi + + # Install the pseudo-library for information purposes. + func_basename "$file" + name=$func_basename_result + instname=$dir/${name}i + func_show_eval "$install_prog $instname $destdir/$name" 'exit $?' + + # Maybe install the static library, too. + test -n "$old_library" && func_append staticlibs " $dir/$old_library" + ;; + + *.lo) + # Install (i.e. copy) a libtool object. + + # Figure out destination file name, if it wasn't already specified. + if test -n "$destname"; then + destfile=$destdir/$destname + else + func_basename "$file" + destfile=$func_basename_result + destfile=$destdir/$destfile + fi + + # Deduce the name of the destination old-style object file. + case $destfile in + *.lo) + func_lo2o "$destfile" + staticdest=$func_lo2o_result + ;; + *.$objext) + staticdest=$destfile + destfile= + ;; + *) + func_fatal_help "cannot copy a libtool object to '$destfile'" + ;; + esac + + # Install the libtool object if requested. + test -n "$destfile" && \ + func_show_eval "$install_prog $file $destfile" 'exit $?' + + # Install the old object if enabled. + if test yes = "$build_old_libs"; then + # Deduce the name of the old-style object file. + func_lo2o "$file" + staticobj=$func_lo2o_result + func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?' + fi + exit $EXIT_SUCCESS + ;; + + *) + # Figure out destination file name, if it wasn't already specified. + if test -n "$destname"; then + destfile=$destdir/$destname + else + func_basename "$file" + destfile=$func_basename_result + destfile=$destdir/$destfile + fi + + # If the file is missing, and there is a .exe on the end, strip it + # because it is most likely a libtool script we actually want to + # install + stripped_ext= + case $file in + *.exe) + if test ! -f "$file"; then + func_stripname '' '.exe' "$file" + file=$func_stripname_result + stripped_ext=.exe + fi + ;; + esac + + # Do a test to see if this is really a libtool program. + case $host in + *cygwin* | *mingw*) + if func_ltwrapper_executable_p "$file"; then + func_ltwrapper_scriptname "$file" + wrapper=$func_ltwrapper_scriptname_result + else + func_stripname '' '.exe' "$file" + wrapper=$func_stripname_result + fi + ;; + *) + wrapper=$file + ;; + esac + if func_ltwrapper_script_p "$wrapper"; then + notinst_deplibs= + relink_command= + + func_source "$wrapper" + + # Check the variables that should have been set. + test -z "$generated_by_libtool_version" && \ + func_fatal_error "invalid libtool wrapper script '$wrapper'" + + finalize=: + for lib in $notinst_deplibs; do + # Check to see that each library is installed. + libdir= + if test -f "$lib"; then + func_source "$lib" + fi + libfile=$libdir/`$ECHO "$lib" | $SED 's%^.*/%%g'` + if test -n "$libdir" && test ! -f "$libfile"; then + func_warning "'$lib' has not been installed in '$libdir'" + finalize=false + fi + done + + relink_command= + func_source "$wrapper" + + outputname= + if test no = "$fast_install" && test -n "$relink_command"; then + $opt_dry_run || { + if $finalize; then + tmpdir=`func_mktempdir` + func_basename "$file$stripped_ext" + file=$func_basename_result + outputname=$tmpdir/$file + # Replace the output file specification. + relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'` + + $opt_quiet || { + func_quote_for_expand "$relink_command" + eval "func_echo $func_quote_for_expand_result" + } + if eval "$relink_command"; then : + else + func_error "error: relink '$file' with the above command before installing it" + $opt_dry_run || ${RM}r "$tmpdir" + continue + fi + file=$outputname + else + func_warning "cannot relink '$file'" + fi + } + else + # Install the binary that we compiled earlier. + file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"` + fi + fi + + # remove .exe since cygwin /usr/bin/install will append another + # one anyway + case $install_prog,$host in + */usr/bin/install*,*cygwin*) + case $file:$destfile in + *.exe:*.exe) + # this is ok + ;; + *.exe:*) + destfile=$destfile.exe + ;; + *:*.exe) + func_stripname '' '.exe' "$destfile" + destfile=$func_stripname_result + ;; + esac + ;; + esac + func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?' + $opt_dry_run || if test -n "$outputname"; then + ${RM}r "$tmpdir" + fi + ;; + esac + done + + for file in $staticlibs; do + func_basename "$file" + name=$func_basename_result + + # Set up the ranlib parameters. + oldlib=$destdir/$name + func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 + tool_oldlib=$func_to_tool_file_result + + func_show_eval "$install_prog \$file \$oldlib" 'exit $?' + + if test -n "$stripme" && test -n "$old_striplib"; then + func_show_eval "$old_striplib $tool_oldlib" 'exit $?' + fi + + # Do each command in the postinstall commands. + func_execute_cmds "$old_postinstall_cmds" 'exit $?' + done + + test -n "$future_libdirs" && \ + func_warning "remember to run '$progname --finish$future_libdirs'" + + if test -n "$current_libdirs"; then + # Maybe just do a dry run. + $opt_dry_run && current_libdirs=" -n$current_libdirs" + exec_cmd='$SHELL "$progpath" $preserve_args --finish$current_libdirs' + else + exit $EXIT_SUCCESS + fi +} + +test install = "$opt_mode" && func_mode_install ${1+"$@"} + + +# func_generate_dlsyms outputname originator pic_p +# Extract symbols from dlprefiles and create ${outputname}S.o with +# a dlpreopen symbol table. +func_generate_dlsyms () +{ + $debug_cmd + + my_outputname=$1 + my_originator=$2 + my_pic_p=${3-false} + my_prefix=`$ECHO "$my_originator" | $SED 's%[^a-zA-Z0-9]%_%g'` + my_dlsyms= + + if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then + if test -n "$NM" && test -n "$global_symbol_pipe"; then + my_dlsyms=${my_outputname}S.c + else + func_error "not configured to extract global symbols from dlpreopened files" + fi + fi + + if test -n "$my_dlsyms"; then + case $my_dlsyms in + "") ;; + *.c) + # Discover the nlist of each of the dlfiles. + nlist=$output_objdir/$my_outputname.nm + + func_show_eval "$RM $nlist ${nlist}S ${nlist}T" + + # Parse the name list into a source file. + func_verbose "creating $output_objdir/$my_dlsyms" + + $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\ +/* $my_dlsyms - symbol resolution table for '$my_outputname' dlsym emulation. */ +/* Generated by $PROGRAM (GNU $PACKAGE) $VERSION */ + +#ifdef __cplusplus +extern \"C\" { +#endif + +#if defined __GNUC__ && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4)) +#pragma GCC diagnostic ignored \"-Wstrict-prototypes\" +#endif + +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ +#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE +/* DATA imports from DLLs on WIN32 can't be const, because runtime + relocations are performed -- see ld's documentation on pseudo-relocs. */ +# define LT_DLSYM_CONST +#elif defined __osf__ +/* This system does not cope well with relocations in const data. */ +# define LT_DLSYM_CONST +#else +# define LT_DLSYM_CONST const +#endif + +#define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0) + +/* External symbol declarations for the compiler. */\ +" + + if test yes = "$dlself"; then + func_verbose "generating symbol list for '$output'" + + $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist" + + # Add our own program objects to the symbol list. + progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP` + for progfile in $progfiles; do + func_to_tool_file "$progfile" func_convert_file_msys_to_w32 + func_verbose "extracting global C symbols from '$func_to_tool_file_result'" + $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'" + done + + if test -n "$exclude_expsyms"; then + $opt_dry_run || { + eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' + eval '$MV "$nlist"T "$nlist"' + } + fi + + if test -n "$export_symbols_regex"; then + $opt_dry_run || { + eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' + eval '$MV "$nlist"T "$nlist"' + } + fi + + # Prepare the list of exported symbols + if test -z "$export_symbols"; then + export_symbols=$output_objdir/$outputname.exp + $opt_dry_run || { + $RM $export_symbols + eval "$SED -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' + case $host in + *cygwin* | *mingw* | *cegcc* ) + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' + eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' + ;; + esac + } + else + $opt_dry_run || { + eval "$SED -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' + eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' + eval '$MV "$nlist"T "$nlist"' + case $host in + *cygwin* | *mingw* | *cegcc* ) + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' + eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' + ;; + esac + } + fi + fi + + for dlprefile in $dlprefiles; do + func_verbose "extracting global C symbols from '$dlprefile'" + func_basename "$dlprefile" + name=$func_basename_result + case $host in + *cygwin* | *mingw* | *cegcc* ) + # if an import library, we need to obtain dlname + if func_win32_import_lib_p "$dlprefile"; then + func_tr_sh "$dlprefile" + eval "curr_lafile=\$libfile_$func_tr_sh_result" + dlprefile_dlbasename= + if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then + # Use subshell, to avoid clobbering current variable values + dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"` + if test -n "$dlprefile_dlname"; then + func_basename "$dlprefile_dlname" + dlprefile_dlbasename=$func_basename_result + else + # no lafile. user explicitly requested -dlpreopen . + $sharedlib_from_linklib_cmd "$dlprefile" + dlprefile_dlbasename=$sharedlib_from_linklib_result + fi + fi + $opt_dry_run || { + if test -n "$dlprefile_dlbasename"; then + eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"' + else + func_warning "Could not compute DLL name from $name" + eval '$ECHO ": $name " >> "$nlist"' + fi + func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 + eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe | + $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'" + } + else # not an import lib + $opt_dry_run || { + eval '$ECHO ": $name " >> "$nlist"' + func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 + eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" + } + fi + ;; + *) + $opt_dry_run || { + eval '$ECHO ": $name " >> "$nlist"' + func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 + eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" + } + ;; + esac + done + + $opt_dry_run || { + # Make sure we have at least an empty file. + test -f "$nlist" || : > "$nlist" + + if test -n "$exclude_expsyms"; then + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T + $MV "$nlist"T "$nlist" + fi + + # Try sorting and uniquifying the output. + if $GREP -v "^: " < "$nlist" | + if sort -k 3 /dev/null 2>&1; then + sort -k 3 + else + sort +2 + fi | + uniq > "$nlist"S; then + : + else + $GREP -v "^: " < "$nlist" > "$nlist"S + fi + + if test -f "$nlist"S; then + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"' + else + echo '/* NONE */' >> "$output_objdir/$my_dlsyms" + fi + + func_show_eval '$RM "${nlist}I"' + if test -n "$global_symbol_to_import"; then + eval "$global_symbol_to_import"' < "$nlist"S > "$nlist"I' + fi + + echo >> "$output_objdir/$my_dlsyms" "\ + +/* The mapping between symbol names and symbols. */ +typedef struct { + const char *name; + void *address; +} lt_dlsymlist; +extern LT_DLSYM_CONST lt_dlsymlist +lt_${my_prefix}_LTX_preloaded_symbols[];\ +" + + if test -s "$nlist"I; then + echo >> "$output_objdir/$my_dlsyms" "\ +static void lt_syminit(void) +{ + LT_DLSYM_CONST lt_dlsymlist *symbol = lt_${my_prefix}_LTX_preloaded_symbols; + for (; symbol->name; ++symbol) + {" + $SED 's/.*/ if (STREQ (symbol->name, \"&\")) symbol->address = (void *) \&&;/' < "$nlist"I >> "$output_objdir/$my_dlsyms" + echo >> "$output_objdir/$my_dlsyms" "\ + } +}" + fi + echo >> "$output_objdir/$my_dlsyms" "\ +LT_DLSYM_CONST lt_dlsymlist +lt_${my_prefix}_LTX_preloaded_symbols[] = +{ {\"$my_originator\", (void *) 0}," + + if test -s "$nlist"I; then + echo >> "$output_objdir/$my_dlsyms" "\ + {\"@INIT@\", (void *) <_syminit}," + fi + + case $need_lib_prefix in + no) + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms" + ;; + *) + eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms" + ;; + esac + echo >> "$output_objdir/$my_dlsyms" "\ + {0, (void *) 0} +}; + +/* This works around a problem in FreeBSD linker */ +#ifdef FREEBSD_WORKAROUND +static const void *lt_preloaded_setup() { + return lt_${my_prefix}_LTX_preloaded_symbols; +} +#endif + +#ifdef __cplusplus +} +#endif\ +" + } # !$opt_dry_run + + pic_flag_for_symtable= + case "$compile_command " in + *" -static "*) ;; + *) + case $host in + # compiling the symbol table file with pic_flag works around + # a FreeBSD bug that causes programs to crash when -lm is + # linked before any other PIC object. But we must not use + # pic_flag when linking with -static. The problem exists in + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. + *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) + pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;; + *-*-hpux*) + pic_flag_for_symtable=" $pic_flag" ;; + *) + $my_pic_p && pic_flag_for_symtable=" $pic_flag" + ;; + esac + ;; + esac + symtab_cflags= + for arg in $LTCFLAGS; do + case $arg in + -pie | -fpie | -fPIE) ;; + *) func_append symtab_cflags " $arg" ;; + esac + done + + # Now compile the dynamic symbol file. + func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?' + + # Clean up the generated files. + func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T" "${nlist}I"' + + # Transform the symbol file into the correct name. + symfileobj=$output_objdir/${my_outputname}S.$objext + case $host in + *cygwin* | *mingw* | *cegcc* ) + if test -f "$output_objdir/$my_outputname.def"; then + compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` + finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` + else + compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` + finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` + fi + ;; + *) + compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` + finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` + ;; + esac + ;; + *) + func_fatal_error "unknown suffix for '$my_dlsyms'" + ;; + esac + else + # We keep going just in case the user didn't refer to + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe + # really was required. + + # Nullify the symbol file. + compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"` + finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"` + fi +} + +# func_cygming_gnu_implib_p ARG +# This predicate returns with zero status (TRUE) if +# ARG is a GNU/binutils-style import library. Returns +# with nonzero status (FALSE) otherwise. +func_cygming_gnu_implib_p () +{ + $debug_cmd + + func_to_tool_file "$1" func_convert_file_msys_to_w32 + func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'` + test -n "$func_cygming_gnu_implib_tmp" +} + +# func_cygming_ms_implib_p ARG +# This predicate returns with zero status (TRUE) if +# ARG is an MS-style import library. Returns +# with nonzero status (FALSE) otherwise. +func_cygming_ms_implib_p () +{ + $debug_cmd + + func_to_tool_file "$1" func_convert_file_msys_to_w32 + func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'` + test -n "$func_cygming_ms_implib_tmp" +} + +# func_win32_libid arg +# return the library type of file 'arg' +# +# Need a lot of goo to handle *both* DLLs and import libs +# Has to be a shell function in order to 'eat' the argument +# that is supplied when $file_magic_command is called. +# Despite the name, also deal with 64 bit binaries. +func_win32_libid () +{ + $debug_cmd + + win32_libid_type=unknown + win32_fileres=`file -L $1 2>/dev/null` + case $win32_fileres in + *ar\ archive\ import\ library*) # definitely import + win32_libid_type="x86 archive import" + ;; + *ar\ archive*) # could be an import, or static + # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD. + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | + $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then + case $nm_interface in + "MS dumpbin") + if func_cygming_ms_implib_p "$1" || + func_cygming_gnu_implib_p "$1" + then + win32_nmres=import + else + win32_nmres= + fi + ;; + *) + func_to_tool_file "$1" func_convert_file_msys_to_w32 + win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" | + $SED -n -e ' + 1,100{ + / I /{ + s|.*|import| + p + q + } + }'` + ;; + esac + case $win32_nmres in + import*) win32_libid_type="x86 archive import";; + *) win32_libid_type="x86 archive static";; + esac + fi + ;; + *DLL*) + win32_libid_type="x86 DLL" + ;; + *executable*) # but shell scripts are "executable" too... + case $win32_fileres in + *MS\ Windows\ PE\ Intel*) + win32_libid_type="x86 DLL" + ;; + esac + ;; + esac + $ECHO "$win32_libid_type" +} + +# func_cygming_dll_for_implib ARG +# +# Platform-specific function to extract the +# name of the DLL associated with the specified +# import library ARG. +# Invoked by eval'ing the libtool variable +# $sharedlib_from_linklib_cmd +# Result is available in the variable +# $sharedlib_from_linklib_result +func_cygming_dll_for_implib () +{ + $debug_cmd + + sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"` +} + +# func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs +# +# The is the core of a fallback implementation of a +# platform-specific function to extract the name of the +# DLL associated with the specified import library LIBNAME. +# +# SECTION_NAME is either .idata$6 or .idata$7, depending +# on the platform and compiler that created the implib. +# +# Echos the name of the DLL associated with the +# specified import library. +func_cygming_dll_for_implib_fallback_core () +{ + $debug_cmd + + match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"` + $OBJDUMP -s --section "$1" "$2" 2>/dev/null | + $SED '/^Contents of section '"$match_literal"':/{ + # Place marker at beginning of archive member dllname section + s/.*/====MARK====/ + p + d + } + # These lines can sometimes be longer than 43 characters, but + # are always uninteresting + /:[ ]*file format pe[i]\{,1\}-/d + /^In archive [^:]*:/d + # Ensure marker is printed + /^====MARK====/p + # Remove all lines with less than 43 characters + /^.\{43\}/!d + # From remaining lines, remove first 43 characters + s/^.\{43\}//' | + $SED -n ' + # Join marker and all lines until next marker into a single line + /^====MARK====/ b para + H + $ b para + b + :para + x + s/\n//g + # Remove the marker + s/^====MARK====// + # Remove trailing dots and whitespace + s/[\. \t]*$// + # Print + /./p' | + # we now have a list, one entry per line, of the stringified + # contents of the appropriate section of all members of the + # archive that possess that section. Heuristic: eliminate + # all those that have a first or second character that is + # a '.' (that is, objdump's representation of an unprintable + # character.) This should work for all archives with less than + # 0x302f exports -- but will fail for DLLs whose name actually + # begins with a literal '.' or a single character followed by + # a '.'. + # + # Of those that remain, print the first one. + $SED -e '/^\./d;/^.\./d;q' +} + +# func_cygming_dll_for_implib_fallback ARG +# Platform-specific function to extract the +# name of the DLL associated with the specified +# import library ARG. +# +# This fallback implementation is for use when $DLLTOOL +# does not support the --identify-strict option. +# Invoked by eval'ing the libtool variable +# $sharedlib_from_linklib_cmd +# Result is available in the variable +# $sharedlib_from_linklib_result +func_cygming_dll_for_implib_fallback () +{ + $debug_cmd + + if func_cygming_gnu_implib_p "$1"; then + # binutils import library + sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"` + elif func_cygming_ms_implib_p "$1"; then + # ms-generated import library + sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"` + else + # unknown + sharedlib_from_linklib_result= + fi +} + + +# func_extract_an_archive dir oldlib +func_extract_an_archive () +{ + $debug_cmd + + f_ex_an_ar_dir=$1; shift + f_ex_an_ar_oldlib=$1 + if test yes = "$lock_old_archive_extraction"; then + lockfile=$f_ex_an_ar_oldlib.lock + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do + func_echo "Waiting for $lockfile to be removed" + sleep 2 + done + fi + func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \ + 'stat=$?; rm -f "$lockfile"; exit $stat' + if test yes = "$lock_old_archive_extraction"; then + $opt_dry_run || rm -f "$lockfile" + fi + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then + : + else + func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" + fi +} + + +# func_extract_archives gentop oldlib ... +func_extract_archives () +{ + $debug_cmd + + my_gentop=$1; shift + my_oldlibs=${1+"$@"} + my_oldobjs= + my_xlib= + my_xabs= + my_xdir= + + for my_xlib in $my_oldlibs; do + # Extract the objects. + case $my_xlib in + [\\/]* | [A-Za-z]:[\\/]*) my_xabs=$my_xlib ;; + *) my_xabs=`pwd`"/$my_xlib" ;; + esac + func_basename "$my_xlib" + my_xlib=$func_basename_result + my_xlib_u=$my_xlib + while :; do + case " $extracted_archives " in + *" $my_xlib_u "*) + func_arith $extracted_serial + 1 + extracted_serial=$func_arith_result + my_xlib_u=lt$extracted_serial-$my_xlib ;; + *) break ;; + esac + done + extracted_archives="$extracted_archives $my_xlib_u" + my_xdir=$my_gentop/$my_xlib_u + + func_mkdir_p "$my_xdir" + + case $host in + *-darwin*) + func_verbose "Extracting $my_xabs" + # Do not bother doing anything if just a dry run + $opt_dry_run || { + darwin_orig_dir=`pwd` + cd $my_xdir || exit $? + darwin_archive=$my_xabs + darwin_curdir=`pwd` + func_basename "$darwin_archive" + darwin_base_archive=$func_basename_result + darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true` + if test -n "$darwin_arches"; then + darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'` + darwin_arch= + func_verbose "$darwin_base_archive has multiple architectures $darwin_arches" + for darwin_arch in $darwin_arches; do + func_mkdir_p "unfat-$$/$darwin_base_archive-$darwin_arch" + $LIPO -thin $darwin_arch -output "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive" "$darwin_archive" + cd "unfat-$$/$darwin_base_archive-$darwin_arch" + func_extract_an_archive "`pwd`" "$darwin_base_archive" + cd "$darwin_curdir" + $RM "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive" + done # $darwin_arches + ## Okay now we've a bunch of thin objects, gotta fatten them up :) + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$sed_basename" | sort -u` + darwin_file= + darwin_files= + for darwin_file in $darwin_filelist; do + darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP` + $LIPO -create -output "$darwin_file" $darwin_files + done # $darwin_filelist + $RM -rf unfat-$$ + cd "$darwin_orig_dir" + else + cd $darwin_orig_dir + func_extract_an_archive "$my_xdir" "$my_xabs" + fi # $darwin_arches + } # !$opt_dry_run + ;; + *) + func_extract_an_archive "$my_xdir" "$my_xabs" + ;; + esac + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP` + done + + func_extract_archives_result=$my_oldobjs +} + + +# func_emit_wrapper [arg=no] +# +# Emit a libtool wrapper script on stdout. +# Don't directly open a file because we may want to +# incorporate the script contents within a cygwin/mingw +# wrapper executable. Must ONLY be called from within +# func_mode_link because it depends on a number of variables +# set therein. +# +# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR +# variable will take. If 'yes', then the emitted script +# will assume that the directory where it is stored is +# the $objdir directory. This is a cygwin/mingw-specific +# behavior. +func_emit_wrapper () +{ + func_emit_wrapper_arg1=${1-no} + + $ECHO "\ +#! $SHELL + +# $output - temporary wrapper script for $objdir/$outputname +# Generated by $PROGRAM (GNU $PACKAGE) $VERSION +# +# The $output program cannot be directly executed until all the libtool +# libraries that it depends on are installed. +# +# This wrapper script should never be moved out of the build directory. +# If it is, it will not operate correctly. + +# Sed substitution that helps us do robust quoting. It backslashifies +# metacharacters that are still active within double-quoted strings. +sed_quote_subst='$sed_quote_subst' + +# Be Bourne compatible +if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: + # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$@\"}'='\"\$@\"' + setopt NO_GLOB_SUBST +else + case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac +fi +BIN_SH=xpg4; export BIN_SH # for Tru64 +DUALCASE=1; export DUALCASE # for MKS sh + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +relink_command=\"$relink_command\" + +# This environment variable determines our operation mode. +if test \"\$libtool_install_magic\" = \"$magic\"; then + # install mode needs the following variables: + generated_by_libtool_version='$macro_version' + notinst_deplibs='$notinst_deplibs' +else + # When we are sourced in execute mode, \$file and \$ECHO are already set. + if test \"\$libtool_execute_magic\" != \"$magic\"; then + file=\"\$0\"" + + qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"` + $ECHO "\ + +# A function that is used when there is no print builtin or printf. +func_fallback_echo () +{ + eval 'cat <<_LTECHO_EOF +\$1 +_LTECHO_EOF' +} + ECHO=\"$qECHO\" + fi + +# Very basic option parsing. These options are (a) specific to +# the libtool wrapper, (b) are identical between the wrapper +# /script/ and the wrapper /executable/ that is used only on +# windows platforms, and (c) all begin with the string "--lt-" +# (application programs are unlikely to have options that match +# this pattern). +# +# There are only two supported options: --lt-debug and +# --lt-dump-script. There is, deliberately, no --lt-help. +# +# The first argument to this parsing function should be the +# script's $0 value, followed by "$@". +lt_option_debug= +func_parse_lt_options () +{ + lt_script_arg0=\$0 + shift + for lt_opt + do + case \"\$lt_opt\" in + --lt-debug) lt_option_debug=1 ;; + --lt-dump-script) + lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\` + test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=. + lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\` + cat \"\$lt_dump_D/\$lt_dump_F\" + exit 0 + ;; + --lt-*) + \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2 + exit 1 + ;; + esac + done + + # Print the debug banner immediately: + if test -n \"\$lt_option_debug\"; then + echo \"$outputname:$output:\$LINENO: libtool wrapper (GNU $PACKAGE) $VERSION\" 1>&2 + fi +} + +# Used when --lt-debug. Prints its arguments to stdout +# (redirection is the responsibility of the caller) +func_lt_dump_args () +{ + lt_dump_args_N=1; + for lt_arg + do + \$ECHO \"$outputname:$output:\$LINENO: newargv[\$lt_dump_args_N]: \$lt_arg\" + lt_dump_args_N=\`expr \$lt_dump_args_N + 1\` + done +} + +# Core function for launching the target application +func_exec_program_core () +{ +" + case $host in + # Backslashes separate directories on plain windows + *-*-mingw | *-*-os2* | *-cegcc*) + $ECHO "\ + if test -n \"\$lt_option_debug\"; then + \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir\\\\\$program\" 1>&2 + func_lt_dump_args \${1+\"\$@\"} 1>&2 + fi + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} +" + ;; + + *) + $ECHO "\ + if test -n \"\$lt_option_debug\"; then + \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir/\$program\" 1>&2 + func_lt_dump_args \${1+\"\$@\"} 1>&2 + fi + exec \"\$progdir/\$program\" \${1+\"\$@\"} +" + ;; + esac + $ECHO "\ + \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2 + exit 1 +} + +# A function to encapsulate launching the target application +# Strips options in the --lt-* namespace from \$@ and +# launches target application with the remaining arguments. +func_exec_program () +{ + case \" \$* \" in + *\\ --lt-*) + for lt_wr_arg + do + case \$lt_wr_arg in + --lt-*) ;; + *) set x \"\$@\" \"\$lt_wr_arg\"; shift;; + esac + shift + done ;; + esac + func_exec_program_core \${1+\"\$@\"} +} + + # Parse options + func_parse_lt_options \"\$0\" \${1+\"\$@\"} + + # Find the directory that this script lives in. + thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\` + test \"x\$thisdir\" = \"x\$file\" && thisdir=. + + # Follow symbolic links until we get to the real thisdir. + file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\` + while test -n \"\$file\"; do + destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\` + + # If there was a directory component, then change thisdir. + if test \"x\$destdir\" != \"x\$file\"; then + case \"\$destdir\" in + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; + *) thisdir=\"\$thisdir/\$destdir\" ;; + esac + fi + + file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\` + file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\` + done + + # Usually 'no', except on cygwin/mingw when embedded into + # the cwrapper. + WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1 + if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then + # special case for '.' + if test \"\$thisdir\" = \".\"; then + thisdir=\`pwd\` + fi + # remove .libs from thisdir + case \"\$thisdir\" in + *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;; + $objdir ) thisdir=. ;; + esac + fi + + # Try to get the absolute directory name. + absdir=\`cd \"\$thisdir\" && pwd\` + test -n \"\$absdir\" && thisdir=\"\$absdir\" +" + + if test yes = "$fast_install"; then + $ECHO "\ + program=lt-'$outputname'$exeext + progdir=\"\$thisdir/$objdir\" + + if test ! -f \"\$progdir/\$program\" || + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | $SED 1q\`; \\ + test \"X\$file\" != \"X\$progdir/\$program\"; }; then + + file=\"\$\$-\$program\" + + if test ! -d \"\$progdir\"; then + $MKDIR \"\$progdir\" + else + $RM \"\$progdir/\$file\" + fi" + + $ECHO "\ + + # relink executable if necessary + if test -n \"\$relink_command\"; then + if relink_command_output=\`eval \$relink_command 2>&1\`; then : + else + \$ECHO \"\$relink_command_output\" >&2 + $RM \"\$progdir/\$file\" + exit 1 + fi + fi + + $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || + { $RM \"\$progdir/\$program\"; + $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; } + $RM \"\$progdir/\$file\" + fi" + else + $ECHO "\ + program='$outputname' + progdir=\"\$thisdir/$objdir\" +" + fi + + $ECHO "\ + + if test -f \"\$progdir/\$program\"; then" + + # fixup the dll searchpath if we need to. + # + # Fix the DLL searchpath if we need to. Do this before prepending + # to shlibpath, because on Windows, both are PATH and uninstalled + # libraries must come first. + if test -n "$dllsearchpath"; then + $ECHO "\ + # Add the dll search path components to the executable PATH + PATH=$dllsearchpath:\$PATH +" + fi + + # Export our shlibpath_var if we have one. + if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath"; then + $ECHO "\ + # Add our own library path to $shlibpath_var + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" + + # Some systems cannot cope with colon-terminated $shlibpath_var + # The second colon is a workaround for a bug in BeOS R4 sed + $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\` + + export $shlibpath_var +" + fi + + $ECHO "\ + if test \"\$libtool_execute_magic\" != \"$magic\"; then + # Run the actual program with our arguments. + func_exec_program \${1+\"\$@\"} + fi + else + # The program doesn't exist. + \$ECHO \"\$0: error: '\$progdir/\$program' does not exist\" 1>&2 + \$ECHO \"This script is just a wrapper for \$program.\" 1>&2 + \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2 + exit 1 + fi +fi\ +" +} + + +# func_emit_cwrapperexe_src +# emit the source code for a wrapper executable on stdout +# Must ONLY be called from within func_mode_link because +# it depends on a number of variable set therein. +func_emit_cwrapperexe_src () +{ + cat < +#include +#ifdef _MSC_VER +# include +# include +# include +#else +# include +# include +# ifdef __CYGWIN__ +# include +# endif +#endif +#include +#include +#include +#include +#include +#include +#include +#include + +#define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0) + +/* declarations of non-ANSI functions */ +#if defined __MINGW32__ +# ifdef __STRICT_ANSI__ +int _putenv (const char *); +# endif +#elif defined __CYGWIN__ +# ifdef __STRICT_ANSI__ +char *realpath (const char *, char *); +int putenv (char *); +int setenv (const char *, const char *, int); +# endif +/* #elif defined other_platform || defined ... */ +#endif + +/* portability defines, excluding path handling macros */ +#if defined _MSC_VER +# define setmode _setmode +# define stat _stat +# define chmod _chmod +# define getcwd _getcwd +# define putenv _putenv +# define S_IXUSR _S_IEXEC +#elif defined __MINGW32__ +# define setmode _setmode +# define stat _stat +# define chmod _chmod +# define getcwd _getcwd +# define putenv _putenv +#elif defined __CYGWIN__ +# define HAVE_SETENV +# define FOPEN_WB "wb" +/* #elif defined other platforms ... */ +#endif + +#if defined PATH_MAX +# define LT_PATHMAX PATH_MAX +#elif defined MAXPATHLEN +# define LT_PATHMAX MAXPATHLEN +#else +# define LT_PATHMAX 1024 +#endif + +#ifndef S_IXOTH +# define S_IXOTH 0 +#endif +#ifndef S_IXGRP +# define S_IXGRP 0 +#endif + +/* path handling portability macros */ +#ifndef DIR_SEPARATOR +# define DIR_SEPARATOR '/' +# define PATH_SEPARATOR ':' +#endif + +#if defined _WIN32 || defined __MSDOS__ || defined __DJGPP__ || \ + defined __OS2__ +# define HAVE_DOS_BASED_FILE_SYSTEM +# define FOPEN_WB "wb" +# ifndef DIR_SEPARATOR_2 +# define DIR_SEPARATOR_2 '\\' +# endif +# ifndef PATH_SEPARATOR_2 +# define PATH_SEPARATOR_2 ';' +# endif +#endif + +#ifndef DIR_SEPARATOR_2 +# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) +#else /* DIR_SEPARATOR_2 */ +# define IS_DIR_SEPARATOR(ch) \ + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) +#endif /* DIR_SEPARATOR_2 */ + +#ifndef PATH_SEPARATOR_2 +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) +#else /* PATH_SEPARATOR_2 */ +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) +#endif /* PATH_SEPARATOR_2 */ + +#ifndef FOPEN_WB +# define FOPEN_WB "w" +#endif +#ifndef _O_BINARY +# define _O_BINARY 0 +#endif + +#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) +#define XFREE(stale) do { \ + if (stale) { free (stale); stale = 0; } \ +} while (0) + +#if defined LT_DEBUGWRAPPER +static int lt_debug = 1; +#else +static int lt_debug = 0; +#endif + +const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */ + +void *xmalloc (size_t num); +char *xstrdup (const char *string); +const char *base_name (const char *name); +char *find_executable (const char *wrapper); +char *chase_symlinks (const char *pathspec); +int make_executable (const char *path); +int check_executable (const char *path); +char *strendzap (char *str, const char *pat); +void lt_debugprintf (const char *file, int line, const char *fmt, ...); +void lt_fatal (const char *file, int line, const char *message, ...); +static const char *nonnull (const char *s); +static const char *nonempty (const char *s); +void lt_setenv (const char *name, const char *value); +char *lt_extend_str (const char *orig_value, const char *add, int to_end); +void lt_update_exe_path (const char *name, const char *value); +void lt_update_lib_path (const char *name, const char *value); +char **prepare_spawn (char **argv); +void lt_dump_script (FILE *f); +EOF + + cat <= 0) + && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))) + return 1; + else + return 0; +} + +int +make_executable (const char *path) +{ + int rval = 0; + struct stat st; + + lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n", + nonempty (path)); + if ((!path) || (!*path)) + return 0; + + if (stat (path, &st) >= 0) + { + rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR); + } + return rval; +} + +/* Searches for the full path of the wrapper. Returns + newly allocated full path name if found, NULL otherwise + Does not chase symlinks, even on platforms that support them. +*/ +char * +find_executable (const char *wrapper) +{ + int has_slash = 0; + const char *p; + const char *p_next; + /* static buffer for getcwd */ + char tmp[LT_PATHMAX + 1]; + size_t tmp_len; + char *concat_name; + + lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n", + nonempty (wrapper)); + + if ((wrapper == NULL) || (*wrapper == '\0')) + return NULL; + + /* Absolute path? */ +#if defined HAVE_DOS_BASED_FILE_SYSTEM + if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':') + { + concat_name = xstrdup (wrapper); + if (check_executable (concat_name)) + return concat_name; + XFREE (concat_name); + } + else + { +#endif + if (IS_DIR_SEPARATOR (wrapper[0])) + { + concat_name = xstrdup (wrapper); + if (check_executable (concat_name)) + return concat_name; + XFREE (concat_name); + } +#if defined HAVE_DOS_BASED_FILE_SYSTEM + } +#endif + + for (p = wrapper; *p; p++) + if (*p == '/') + { + has_slash = 1; + break; + } + if (!has_slash) + { + /* no slashes; search PATH */ + const char *path = getenv ("PATH"); + if (path != NULL) + { + for (p = path; *p; p = p_next) + { + const char *q; + size_t p_len; + for (q = p; *q; q++) + if (IS_PATH_SEPARATOR (*q)) + break; + p_len = (size_t) (q - p); + p_next = (*q == '\0' ? q : q + 1); + if (p_len == 0) + { + /* empty path: current directory */ + if (getcwd (tmp, LT_PATHMAX) == NULL) + lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", + nonnull (strerror (errno))); + tmp_len = strlen (tmp); + concat_name = + XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); + memcpy (concat_name, tmp, tmp_len); + concat_name[tmp_len] = '/'; + strcpy (concat_name + tmp_len + 1, wrapper); + } + else + { + concat_name = + XMALLOC (char, p_len + 1 + strlen (wrapper) + 1); + memcpy (concat_name, p, p_len); + concat_name[p_len] = '/'; + strcpy (concat_name + p_len + 1, wrapper); + } + if (check_executable (concat_name)) + return concat_name; + XFREE (concat_name); + } + } + /* not found in PATH; assume curdir */ + } + /* Relative path | not found in path: prepend cwd */ + if (getcwd (tmp, LT_PATHMAX) == NULL) + lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", + nonnull (strerror (errno))); + tmp_len = strlen (tmp); + concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); + memcpy (concat_name, tmp, tmp_len); + concat_name[tmp_len] = '/'; + strcpy (concat_name + tmp_len + 1, wrapper); + + if (check_executable (concat_name)) + return concat_name; + XFREE (concat_name); + return NULL; +} + +char * +chase_symlinks (const char *pathspec) +{ +#ifndef S_ISLNK + return xstrdup (pathspec); +#else + char buf[LT_PATHMAX]; + struct stat s; + char *tmp_pathspec = xstrdup (pathspec); + char *p; + int has_symlinks = 0; + while (strlen (tmp_pathspec) && !has_symlinks) + { + lt_debugprintf (__FILE__, __LINE__, + "checking path component for symlinks: %s\n", + tmp_pathspec); + if (lstat (tmp_pathspec, &s) == 0) + { + if (S_ISLNK (s.st_mode) != 0) + { + has_symlinks = 1; + break; + } + + /* search backwards for last DIR_SEPARATOR */ + p = tmp_pathspec + strlen (tmp_pathspec) - 1; + while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) + p--; + if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) + { + /* no more DIR_SEPARATORS left */ + break; + } + *p = '\0'; + } + else + { + lt_fatal (__FILE__, __LINE__, + "error accessing file \"%s\": %s", + tmp_pathspec, nonnull (strerror (errno))); + } + } + XFREE (tmp_pathspec); + + if (!has_symlinks) + { + return xstrdup (pathspec); + } + + tmp_pathspec = realpath (pathspec, buf); + if (tmp_pathspec == 0) + { + lt_fatal (__FILE__, __LINE__, + "could not follow symlinks for %s", pathspec); + } + return xstrdup (tmp_pathspec); +#endif +} + +char * +strendzap (char *str, const char *pat) +{ + size_t len, patlen; + + assert (str != NULL); + assert (pat != NULL); + + len = strlen (str); + patlen = strlen (pat); + + if (patlen <= len) + { + str += len - patlen; + if (STREQ (str, pat)) + *str = '\0'; + } + return str; +} + +void +lt_debugprintf (const char *file, int line, const char *fmt, ...) +{ + va_list args; + if (lt_debug) + { + (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line); + va_start (args, fmt); + (void) vfprintf (stderr, fmt, args); + va_end (args); + } +} + +static void +lt_error_core (int exit_status, const char *file, + int line, const char *mode, + const char *message, va_list ap) +{ + fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode); + vfprintf (stderr, message, ap); + fprintf (stderr, ".\n"); + + if (exit_status >= 0) + exit (exit_status); +} + +void +lt_fatal (const char *file, int line, const char *message, ...) +{ + va_list ap; + va_start (ap, message); + lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap); + va_end (ap); +} + +static const char * +nonnull (const char *s) +{ + return s ? s : "(null)"; +} + +static const char * +nonempty (const char *s) +{ + return (s && !*s) ? "(empty)" : nonnull (s); +} + +void +lt_setenv (const char *name, const char *value) +{ + lt_debugprintf (__FILE__, __LINE__, + "(lt_setenv) setting '%s' to '%s'\n", + nonnull (name), nonnull (value)); + { +#ifdef HAVE_SETENV + /* always make a copy, for consistency with !HAVE_SETENV */ + char *str = xstrdup (value); + setenv (name, str, 1); +#else + size_t len = strlen (name) + 1 + strlen (value) + 1; + char *str = XMALLOC (char, len); + sprintf (str, "%s=%s", name, value); + if (putenv (str) != EXIT_SUCCESS) + { + XFREE (str); + } +#endif + } +} + +char * +lt_extend_str (const char *orig_value, const char *add, int to_end) +{ + char *new_value; + if (orig_value && *orig_value) + { + size_t orig_value_len = strlen (orig_value); + size_t add_len = strlen (add); + new_value = XMALLOC (char, add_len + orig_value_len + 1); + if (to_end) + { + strcpy (new_value, orig_value); + strcpy (new_value + orig_value_len, add); + } + else + { + strcpy (new_value, add); + strcpy (new_value + add_len, orig_value); + } + } + else + { + new_value = xstrdup (add); + } + return new_value; +} + +void +lt_update_exe_path (const char *name, const char *value) +{ + lt_debugprintf (__FILE__, __LINE__, + "(lt_update_exe_path) modifying '%s' by prepending '%s'\n", + nonnull (name), nonnull (value)); + + if (name && *name && value && *value) + { + char *new_value = lt_extend_str (getenv (name), value, 0); + /* some systems can't cope with a ':'-terminated path #' */ + size_t len = strlen (new_value); + while ((len > 0) && IS_PATH_SEPARATOR (new_value[len-1])) + { + new_value[--len] = '\0'; + } + lt_setenv (name, new_value); + XFREE (new_value); + } +} + +void +lt_update_lib_path (const char *name, const char *value) +{ + lt_debugprintf (__FILE__, __LINE__, + "(lt_update_lib_path) modifying '%s' by prepending '%s'\n", + nonnull (name), nonnull (value)); + + if (name && *name && value && *value) + { + char *new_value = lt_extend_str (getenv (name), value, 0); + lt_setenv (name, new_value); + XFREE (new_value); + } +} + +EOF + case $host_os in + mingw*) + cat <<"EOF" + +/* Prepares an argument vector before calling spawn(). + Note that spawn() does not by itself call the command interpreter + (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") : + ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); + GetVersionEx(&v); + v.dwPlatformId == VER_PLATFORM_WIN32_NT; + }) ? "cmd.exe" : "command.com"). + Instead it simply concatenates the arguments, separated by ' ', and calls + CreateProcess(). We must quote the arguments since Win32 CreateProcess() + interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a + special way: + - Space and tab are interpreted as delimiters. They are not treated as + delimiters if they are surrounded by double quotes: "...". + - Unescaped double quotes are removed from the input. Their only effect is + that within double quotes, space and tab are treated like normal + characters. + - Backslashes not followed by double quotes are not special. + - But 2*n+1 backslashes followed by a double quote become + n backslashes followed by a double quote (n >= 0): + \" -> " + \\\" -> \" + \\\\\" -> \\" + */ +#define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" +#define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" +char ** +prepare_spawn (char **argv) +{ + size_t argc; + char **new_argv; + size_t i; + + /* Count number of arguments. */ + for (argc = 0; argv[argc] != NULL; argc++) + ; + + /* Allocate new argument vector. */ + new_argv = XMALLOC (char *, argc + 1); + + /* Put quoted arguments into the new argument vector. */ + for (i = 0; i < argc; i++) + { + const char *string = argv[i]; + + if (string[0] == '\0') + new_argv[i] = xstrdup ("\"\""); + else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL) + { + int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL); + size_t length; + unsigned int backslashes; + const char *s; + char *quoted_string; + char *p; + + length = 0; + backslashes = 0; + if (quote_around) + length++; + for (s = string; *s != '\0'; s++) + { + char c = *s; + if (c == '"') + length += backslashes + 1; + length++; + if (c == '\\') + backslashes++; + else + backslashes = 0; + } + if (quote_around) + length += backslashes + 1; + + quoted_string = XMALLOC (char, length + 1); + + p = quoted_string; + backslashes = 0; + if (quote_around) + *p++ = '"'; + for (s = string; *s != '\0'; s++) + { + char c = *s; + if (c == '"') + { + unsigned int j; + for (j = backslashes + 1; j > 0; j--) + *p++ = '\\'; + } + *p++ = c; + if (c == '\\') + backslashes++; + else + backslashes = 0; + } + if (quote_around) + { + unsigned int j; + for (j = backslashes; j > 0; j--) + *p++ = '\\'; + *p++ = '"'; + } + *p = '\0'; + + new_argv[i] = quoted_string; + } + else + new_argv[i] = (char *) string; + } + new_argv[argc] = NULL; + + return new_argv; +} +EOF + ;; + esac + + cat <<"EOF" +void lt_dump_script (FILE* f) +{ +EOF + func_emit_wrapper yes | + $SED -n -e ' +s/^\(.\{79\}\)\(..*\)/\1\ +\2/ +h +s/\([\\"]\)/\\\1/g +s/$/\\n/ +s/\([^\n]*\).*/ fputs ("\1", f);/p +g +D' + cat <<"EOF" +} +EOF +} +# end: func_emit_cwrapperexe_src + +# func_win32_import_lib_p ARG +# True if ARG is an import lib, as indicated by $file_magic_cmd +func_win32_import_lib_p () +{ + $debug_cmd + + case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in + *import*) : ;; + *) false ;; + esac +} + +# func_suncc_cstd_abi +# !!ONLY CALL THIS FOR SUN CC AFTER $compile_command IS FULLY EXPANDED!! +# Several compiler flags select an ABI that is incompatible with the +# Cstd library. Avoid specifying it if any are in CXXFLAGS. +func_suncc_cstd_abi () +{ + $debug_cmd + + case " $compile_command " in + *" -compat=g "*|*\ -std=c++[0-9][0-9]\ *|*" -library=stdcxx4 "*|*" -library=stlport4 "*) + suncc_use_cstd_abi=no + ;; + *) + suncc_use_cstd_abi=yes + ;; + esac +} + +# func_mode_link arg... +func_mode_link () +{ + $debug_cmd + + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) + # It is impossible to link a dll without this setting, and + # we shouldn't force the makefile maintainer to figure out + # what system we are compiling for in order to pass an extra + # flag for every libtool invocation. + # allow_undefined=no + + # FIXME: Unfortunately, there are problems with the above when trying + # to make a dll that has undefined symbols, in which case not + # even a static library is built. For now, we need to specify + # -no-undefined on the libtool link line when we can be certain + # that all symbols are satisfied, otherwise we get a static library. + allow_undefined=yes + ;; + *) + allow_undefined=yes + ;; + esac + libtool_args=$nonopt + base_compile="$nonopt $@" + compile_command=$nonopt + finalize_command=$nonopt + + compile_rpath= + finalize_rpath= + compile_shlibpath= + finalize_shlibpath= + convenience= + old_convenience= + deplibs= + old_deplibs= + compiler_flags= + linker_flags= + dllsearchpath= + lib_search_path=`pwd` + inst_prefix_dir= + new_inherited_linker_flags= + + avoid_version=no + bindir= + dlfiles= + dlprefiles= + dlself=no + export_dynamic=no + export_symbols= + export_symbols_regex= + generated= + libobjs= + ltlibs= + module=no + no_install=no + objs= + os2dllname= + non_pic_objects= + precious_files_regex= + prefer_static_libs=no + preload=false + prev= + prevarg= + release= + rpath= + xrpath= + perm_rpath= + temp_rpath= + thread_safe=no + vinfo= + vinfo_number=no + weak_libs= + single_module=$wl-single_module + func_infer_tag $base_compile + + # We need to know -static, to get the right output filenames. + for arg + do + case $arg in + -shared) + test yes != "$build_libtool_libs" \ + && func_fatal_configuration "cannot build a shared library" + build_old_libs=no + break + ;; + -all-static | -static | -static-libtool-libs) + case $arg in + -all-static) + if test yes = "$build_libtool_libs" && test -z "$link_static_flag"; then + func_warning "complete static linking is impossible in this configuration" + fi + if test -n "$link_static_flag"; then + dlopen_self=$dlopen_self_static + fi + prefer_static_libs=yes + ;; + -static) + if test -z "$pic_flag" && test -n "$link_static_flag"; then + dlopen_self=$dlopen_self_static + fi + prefer_static_libs=built + ;; + -static-libtool-libs) + if test -z "$pic_flag" && test -n "$link_static_flag"; then + dlopen_self=$dlopen_self_static + fi + prefer_static_libs=yes + ;; + esac + build_libtool_libs=no + build_old_libs=yes + break + ;; + esac + done + + # See if our shared archives depend on static archives. + test -n "$old_archive_from_new_cmds" && build_old_libs=yes + + # Go through the arguments, transforming them on the way. + while test "$#" -gt 0; do + arg=$1 + shift + func_quote_for_eval "$arg" + qarg=$func_quote_for_eval_unquoted_result + func_append libtool_args " $func_quote_for_eval_result" + + # If the previous option needs an argument, assign it. + if test -n "$prev"; then + case $prev in + output) + func_append compile_command " @OUTPUT@" + func_append finalize_command " @OUTPUT@" + ;; + esac + + case $prev in + bindir) + bindir=$arg + prev= + continue + ;; + dlfiles|dlprefiles) + $preload || { + # Add the symbol object into the linking commands. + func_append compile_command " @SYMFILE@" + func_append finalize_command " @SYMFILE@" + preload=: + } + case $arg in + *.la | *.lo) ;; # We handle these cases below. + force) + if test no = "$dlself"; then + dlself=needless + export_dynamic=yes + fi + prev= + continue + ;; + self) + if test dlprefiles = "$prev"; then + dlself=yes + elif test dlfiles = "$prev" && test yes != "$dlopen_self"; then + dlself=yes + else + dlself=needless + export_dynamic=yes + fi + prev= + continue + ;; + *) + if test dlfiles = "$prev"; then + func_append dlfiles " $arg" + else + func_append dlprefiles " $arg" + fi + prev= + continue + ;; + esac + ;; + expsyms) + export_symbols=$arg + test -f "$arg" \ + || func_fatal_error "symbol file '$arg' does not exist" + prev= + continue + ;; + expsyms_regex) + export_symbols_regex=$arg + prev= + continue + ;; + framework) + case $host in + *-*-darwin*) + case "$deplibs " in + *" $qarg.ltframework "*) ;; + *) func_append deplibs " $qarg.ltframework" # this is fixed later + ;; + esac + ;; + esac + prev= + continue + ;; + inst_prefix) + inst_prefix_dir=$arg + prev= + continue + ;; + mllvm) + # Clang does not use LLVM to link, so we can simply discard any + # '-mllvm $arg' options when doing the link step. + prev= + continue + ;; + objectlist) + if test -f "$arg"; then + save_arg=$arg + moreargs= + for fil in `cat "$save_arg"` + do +# func_append moreargs " $fil" + arg=$fil + # A libtool-controlled object. + + # Check to see that this really is a libtool object. + if func_lalib_unsafe_p "$arg"; then + pic_object= + non_pic_object= + + # Read the .lo file + func_source "$arg" + + if test -z "$pic_object" || + test -z "$non_pic_object" || + test none = "$pic_object" && + test none = "$non_pic_object"; then + func_fatal_error "cannot find name of object for '$arg'" + fi + + # Extract subdirectory from the argument. + func_dirname "$arg" "/" "" + xdir=$func_dirname_result + + if test none != "$pic_object"; then + # Prepend the subdirectory the object is found in. + pic_object=$xdir$pic_object + + if test dlfiles = "$prev"; then + if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then + func_append dlfiles " $pic_object" + prev= + continue + else + # If libtool objects are unsupported, then we need to preload. + prev=dlprefiles + fi + fi + + # CHECK ME: I think I busted this. -Ossama + if test dlprefiles = "$prev"; then + # Preload the old-style object. + func_append dlprefiles " $pic_object" + prev= + fi + + # A PIC object. + func_append libobjs " $pic_object" + arg=$pic_object + fi + + # Non-PIC object. + if test none != "$non_pic_object"; then + # Prepend the subdirectory the object is found in. + non_pic_object=$xdir$non_pic_object + + # A standard non-PIC object + func_append non_pic_objects " $non_pic_object" + if test -z "$pic_object" || test none = "$pic_object"; then + arg=$non_pic_object + fi + else + # If the PIC object exists, use it instead. + # $xdir was prepended to $pic_object above. + non_pic_object=$pic_object + func_append non_pic_objects " $non_pic_object" + fi + else + # Only an error if not doing a dry-run. + if $opt_dry_run; then + # Extract subdirectory from the argument. + func_dirname "$arg" "/" "" + xdir=$func_dirname_result + + func_lo2o "$arg" + pic_object=$xdir$objdir/$func_lo2o_result + non_pic_object=$xdir$func_lo2o_result + func_append libobjs " $pic_object" + func_append non_pic_objects " $non_pic_object" + else + func_fatal_error "'$arg' is not a valid libtool object" + fi + fi + done + else + func_fatal_error "link input file '$arg' does not exist" + fi + arg=$save_arg + prev= + continue + ;; + os2dllname) + os2dllname=$arg + prev= + continue + ;; + precious_regex) + precious_files_regex=$arg + prev= + continue + ;; + release) + release=-$arg + prev= + continue + ;; + rpath | xrpath) + # We need an absolute path. + case $arg in + [\\/]* | [A-Za-z]:[\\/]*) ;; + *) + func_fatal_error "only absolute run-paths are allowed" + ;; + esac + if test rpath = "$prev"; then + case "$rpath " in + *" $arg "*) ;; + *) func_append rpath " $arg" ;; + esac + else + case "$xrpath " in + *" $arg "*) ;; + *) func_append xrpath " $arg" ;; + esac + fi + prev= + continue + ;; + shrext) + shrext_cmds=$arg + prev= + continue + ;; + weak) + func_append weak_libs " $arg" + prev= + continue + ;; + xcclinker) + func_append linker_flags " $qarg" + func_append compiler_flags " $qarg" + prev= + func_append compile_command " $qarg" + func_append finalize_command " $qarg" + continue + ;; + xcompiler) + func_append compiler_flags " $qarg" + prev= + func_append compile_command " $qarg" + func_append finalize_command " $qarg" + continue + ;; + xlinker) + func_append linker_flags " $qarg" + func_append compiler_flags " $wl$qarg" + prev= + func_append compile_command " $wl$qarg" + func_append finalize_command " $wl$qarg" + continue + ;; + *) + eval "$prev=\"\$arg\"" + prev= + continue + ;; + esac + fi # test -n "$prev" + + prevarg=$arg + + case $arg in + -all-static) + if test -n "$link_static_flag"; then + # See comment for -static flag below, for more details. + func_append compile_command " $link_static_flag" + func_append finalize_command " $link_static_flag" + fi + continue + ;; + + -allow-undefined) + # FIXME: remove this flag sometime in the future. + func_fatal_error "'-allow-undefined' must not be used because it is the default" + ;; + + -avoid-version) + avoid_version=yes + continue + ;; + + -bindir) + prev=bindir + continue + ;; + + -dlopen) + prev=dlfiles + continue + ;; + + -dlpreopen) + prev=dlprefiles + continue + ;; + + -export-dynamic) + export_dynamic=yes + continue + ;; + + -export-symbols | -export-symbols-regex) + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then + func_fatal_error "more than one -exported-symbols argument is not allowed" + fi + if test X-export-symbols = "X$arg"; then + prev=expsyms + else + prev=expsyms_regex + fi + continue + ;; + + -framework) + prev=framework + continue + ;; + + -inst-prefix-dir) + prev=inst_prefix + continue + ;; + + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* + # so, if we see these flags be careful not to treat them like -L + -L[A-Z][A-Z]*:*) + case $with_gcc/$host in + no/*-*-irix* | /*-*-irix*) + func_append compile_command " $arg" + func_append finalize_command " $arg" + ;; + esac + continue + ;; + + -L*) + func_stripname "-L" '' "$arg" + if test -z "$func_stripname_result"; then + if test "$#" -gt 0; then + func_fatal_error "require no space between '-L' and '$1'" + else + func_fatal_error "need path for '-L' option" + fi + fi + func_resolve_sysroot "$func_stripname_result" + dir=$func_resolve_sysroot_result + # We need an absolute path. + case $dir in + [\\/]* | [A-Za-z]:[\\/]*) ;; + *) + absdir=`cd "$dir" && pwd` + test -z "$absdir" && \ + func_fatal_error "cannot determine absolute directory name of '$dir'" + dir=$absdir + ;; + esac + case "$deplibs " in + *" -L$dir "* | *" $arg "*) + # Will only happen for absolute or sysroot arguments + ;; + *) + # Preserve sysroot, but never include relative directories + case $dir in + [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;; + *) func_append deplibs " -L$dir" ;; + esac + func_append lib_search_path " $dir" + ;; + esac + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) + testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'` + case :$dllsearchpath: in + *":$dir:"*) ;; + ::) dllsearchpath=$dir;; + *) func_append dllsearchpath ":$dir";; + esac + case :$dllsearchpath: in + *":$testbindir:"*) ;; + ::) dllsearchpath=$testbindir;; + *) func_append dllsearchpath ":$testbindir";; + esac + ;; + esac + continue + ;; + + -l*) + if test X-lc = "X$arg" || test X-lm = "X$arg"; then + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*) + # These systems don't actually have a C or math library (as such) + continue + ;; + *-*-os2*) + # These systems don't actually have a C library (as such) + test X-lc = "X$arg" && continue + ;; + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*) + # Do not include libc due to us having libc/libc_r. + test X-lc = "X$arg" && continue + ;; + *-*-rhapsody* | *-*-darwin1.[012]) + # Rhapsody C and math libraries are in the System framework + func_append deplibs " System.ltframework" + continue + ;; + *-*-sco3.2v5* | *-*-sco5v6*) + # Causes problems with __ctype + test X-lc = "X$arg" && continue + ;; + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) + # Compiler inserts libc in the correct place for threads to work + test X-lc = "X$arg" && continue + ;; + esac + elif test X-lc_r = "X$arg"; then + case $host in + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*) + # Do not include libc_r directly, use -pthread flag. + continue + ;; + esac + fi + func_append deplibs " $arg" + continue + ;; + + -mllvm) + prev=mllvm + continue + ;; + + -module) + module=yes + continue + ;; + + # Tru64 UNIX uses -model [arg] to determine the layout of C++ + # classes, name mangling, and exception handling. + # Darwin uses the -arch flag to determine output architecture. + -model|-arch|-isysroot|--sysroot) + func_append compiler_flags " $arg" + func_append compile_command " $arg" + func_append finalize_command " $arg" + prev=xcompiler + continue + ;; + + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ + |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) + func_append compiler_flags " $arg" + func_append compile_command " $arg" + func_append finalize_command " $arg" + case "$new_inherited_linker_flags " in + *" $arg "*) ;; + * ) func_append new_inherited_linker_flags " $arg" ;; + esac + continue + ;; + + -multi_module) + single_module=$wl-multi_module + continue + ;; + + -no-fast-install) + fast_install=no + continue + ;; + + -no-install) + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*) + # The PATH hackery in wrapper scripts is required on Windows + # and Darwin in order for the loader to find any dlls it needs. + func_warning "'-no-install' is ignored for $host" + func_warning "assuming '-no-fast-install' instead" + fast_install=no + ;; + *) no_install=yes ;; + esac + continue + ;; + + -no-undefined) + allow_undefined=no + continue + ;; + + -objectlist) + prev=objectlist + continue + ;; + + -os2dllname) + prev=os2dllname + continue + ;; + + -o) prev=output ;; + + -precious-files-regex) + prev=precious_regex + continue + ;; + + -release) + prev=release + continue + ;; + + -rpath) + prev=rpath + continue + ;; + + -R) + prev=xrpath + continue + ;; + + -R*) + func_stripname '-R' '' "$arg" + dir=$func_stripname_result + # We need an absolute path. + case $dir in + [\\/]* | [A-Za-z]:[\\/]*) ;; + =*) + func_stripname '=' '' "$dir" + dir=$lt_sysroot$func_stripname_result + ;; + *) + func_fatal_error "only absolute run-paths are allowed" + ;; + esac + case "$xrpath " in + *" $dir "*) ;; + *) func_append xrpath " $dir" ;; + esac + continue + ;; + + -shared) + # The effects of -shared are defined in a previous loop. + continue + ;; + + -shrext) + prev=shrext + continue + ;; + + -static | -static-libtool-libs) + # The effects of -static are defined in a previous loop. + # We used to do the same as -all-static on platforms that + # didn't have a PIC flag, but the assumption that the effects + # would be equivalent was wrong. It would break on at least + # Digital Unix and AIX. + continue + ;; + + -thread-safe) + thread_safe=yes + continue + ;; + + -version-info) + prev=vinfo + continue + ;; + + -version-number) + prev=vinfo + vinfo_number=yes + continue + ;; + + -weak) + prev=weak + continue + ;; + + -Wc,*) + func_stripname '-Wc,' '' "$arg" + args=$func_stripname_result + arg= + save_ifs=$IFS; IFS=, + for flag in $args; do + IFS=$save_ifs + func_quote_for_eval "$flag" + func_append arg " $func_quote_for_eval_result" + func_append compiler_flags " $func_quote_for_eval_result" + done + IFS=$save_ifs + func_stripname ' ' '' "$arg" + arg=$func_stripname_result + ;; + + -Wl,*) + func_stripname '-Wl,' '' "$arg" + args=$func_stripname_result + arg= + save_ifs=$IFS; IFS=, + for flag in $args; do + IFS=$save_ifs + func_quote_for_eval "$flag" + func_append arg " $wl$func_quote_for_eval_result" + func_append compiler_flags " $wl$func_quote_for_eval_result" + func_append linker_flags " $func_quote_for_eval_result" + done + IFS=$save_ifs + func_stripname ' ' '' "$arg" + arg=$func_stripname_result + ;; + + -Xcompiler) + prev=xcompiler + continue + ;; + + -Xlinker) + prev=xlinker + continue + ;; + + -XCClinker) + prev=xcclinker + continue + ;; + + # -msg_* for osf cc + -msg_*) + func_quote_for_eval "$arg" + arg=$func_quote_for_eval_result + ;; + + # Flags to be passed through unchanged, with rationale: + # -64, -mips[0-9] enable 64-bit mode for the SGI compiler + # -r[0-9][0-9]* specify processor for the SGI compiler + # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler + # +DA*, +DD* enable 64-bit mode for the HP compiler + # -q* compiler args for the IBM compiler + # -m*, -t[45]*, -txscale* architecture-specific flags for GCC + # -F/path path to uninstalled frameworks, gcc on darwin + # -p, -pg, --coverage, -fprofile-* profiling flags for GCC + # -fstack-protector* stack protector flags for GCC + # @file GCC response files + # -tp=* Portland pgcc target processor selection + # --sysroot=* for sysroot support + # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization + # -stdlib=* select c++ std lib with clang + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ + -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*) + func_quote_for_eval "$arg" + arg=$func_quote_for_eval_result + func_append compile_command " $arg" + func_append finalize_command " $arg" + func_append compiler_flags " $arg" + continue + ;; + + -Z*) + if test os2 = "`expr $host : '.*\(os2\)'`"; then + # OS/2 uses -Zxxx to specify OS/2-specific options + compiler_flags="$compiler_flags $arg" + func_append compile_command " $arg" + func_append finalize_command " $arg" + case $arg in + -Zlinker | -Zstack) + prev=xcompiler + ;; + esac + continue + else + # Otherwise treat like 'Some other compiler flag' below + func_quote_for_eval "$arg" + arg=$func_quote_for_eval_result + fi + ;; + + # Some other compiler flag. + -* | +*) + func_quote_for_eval "$arg" + arg=$func_quote_for_eval_result + ;; + + *.$objext) + # A standard object. + func_append objs " $arg" + ;; + + *.lo) + # A libtool-controlled object. + + # Check to see that this really is a libtool object. + if func_lalib_unsafe_p "$arg"; then + pic_object= + non_pic_object= + + # Read the .lo file + func_source "$arg" + + if test -z "$pic_object" || + test -z "$non_pic_object" || + test none = "$pic_object" && + test none = "$non_pic_object"; then + func_fatal_error "cannot find name of object for '$arg'" + fi + + # Extract subdirectory from the argument. + func_dirname "$arg" "/" "" + xdir=$func_dirname_result + + test none = "$pic_object" || { + # Prepend the subdirectory the object is found in. + pic_object=$xdir$pic_object + + if test dlfiles = "$prev"; then + if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then + func_append dlfiles " $pic_object" + prev= + continue + else + # If libtool objects are unsupported, then we need to preload. + prev=dlprefiles + fi + fi + + # CHECK ME: I think I busted this. -Ossama + if test dlprefiles = "$prev"; then + # Preload the old-style object. + func_append dlprefiles " $pic_object" + prev= + fi + + # A PIC object. + func_append libobjs " $pic_object" + arg=$pic_object + } + + # Non-PIC object. + if test none != "$non_pic_object"; then + # Prepend the subdirectory the object is found in. + non_pic_object=$xdir$non_pic_object + + # A standard non-PIC object + func_append non_pic_objects " $non_pic_object" + if test -z "$pic_object" || test none = "$pic_object"; then + arg=$non_pic_object + fi + else + # If the PIC object exists, use it instead. + # $xdir was prepended to $pic_object above. + non_pic_object=$pic_object + func_append non_pic_objects " $non_pic_object" + fi + else + # Only an error if not doing a dry-run. + if $opt_dry_run; then + # Extract subdirectory from the argument. + func_dirname "$arg" "/" "" + xdir=$func_dirname_result + + func_lo2o "$arg" + pic_object=$xdir$objdir/$func_lo2o_result + non_pic_object=$xdir$func_lo2o_result + func_append libobjs " $pic_object" + func_append non_pic_objects " $non_pic_object" + else + func_fatal_error "'$arg' is not a valid libtool object" + fi + fi + ;; + + *.$libext) + # An archive. + func_append deplibs " $arg" + func_append old_deplibs " $arg" + continue + ;; + + *.la) + # A libtool-controlled library. + + func_resolve_sysroot "$arg" + if test dlfiles = "$prev"; then + # This library was specified with -dlopen. + func_append dlfiles " $func_resolve_sysroot_result" + prev= + elif test dlprefiles = "$prev"; then + # The library was specified with -dlpreopen. + func_append dlprefiles " $func_resolve_sysroot_result" + prev= + else + func_append deplibs " $func_resolve_sysroot_result" + fi + continue + ;; + + # Some other compiler argument. + *) + # Unknown arguments in both finalize_command and compile_command need + # to be aesthetically quoted because they are evaled later. + func_quote_for_eval "$arg" + arg=$func_quote_for_eval_result + ;; + esac # arg + + # Now actually substitute the argument into the commands. + if test -n "$arg"; then + func_append compile_command " $arg" + func_append finalize_command " $arg" + fi + done # argument parsing loop + + test -n "$prev" && \ + func_fatal_help "the '$prevarg' option requires an argument" + + if test yes = "$export_dynamic" && test -n "$export_dynamic_flag_spec"; then + eval arg=\"$export_dynamic_flag_spec\" + func_append compile_command " $arg" + func_append finalize_command " $arg" + fi + + oldlibs= + # calculate the name of the file, without its directory + func_basename "$output" + outputname=$func_basename_result + libobjs_save=$libobjs + + if test -n "$shlibpath_var"; then + # get the directories listed in $shlibpath_var + eval shlib_search_path=\`\$ECHO \"\$$shlibpath_var\" \| \$SED \'s/:/ /g\'\` + else + shlib_search_path= + fi + eval sys_lib_search_path=\"$sys_lib_search_path_spec\" + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" + + # Definition is injected by LT_CONFIG during libtool generation. + func_munge_path_list sys_lib_dlsearch_path "$LT_SYS_LIBRARY_PATH" + + func_dirname "$output" "/" "" + output_objdir=$func_dirname_result$objdir + func_to_tool_file "$output_objdir/" + tool_output_objdir=$func_to_tool_file_result + # Create the object directory. + func_mkdir_p "$output_objdir" + + # Determine the type of output + case $output in + "") + func_fatal_help "you must specify an output file" + ;; + *.$libext) linkmode=oldlib ;; + *.lo | *.$objext) linkmode=obj ;; + *.la) linkmode=lib ;; + *) linkmode=prog ;; # Anything else should be a program. + esac + + specialdeplibs= + + libs= + # Find all interdependent deplibs by searching for libraries + # that are linked more than once (e.g. -la -lb -la) + for deplib in $deplibs; do + if $opt_preserve_dup_deps; then + case "$libs " in + *" $deplib "*) func_append specialdeplibs " $deplib" ;; + esac + fi + func_append libs " $deplib" + done + + if test lib = "$linkmode"; then + libs="$predeps $libs $compiler_lib_search_path $postdeps" + + # Compute libraries that are listed more than once in $predeps + # $postdeps and mark them as special (i.e., whose duplicates are + # not to be eliminated). + pre_post_deps= + if $opt_duplicate_compiler_generated_deps; then + for pre_post_dep in $predeps $postdeps; do + case "$pre_post_deps " in + *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;; + esac + func_append pre_post_deps " $pre_post_dep" + done + fi + pre_post_deps= + fi + + deplibs= + newdependency_libs= + newlib_search_path= + need_relink=no # whether we're linking any uninstalled libtool libraries + notinst_deplibs= # not-installed libtool libraries + notinst_path= # paths that contain not-installed libtool libraries + + case $linkmode in + lib) + passes="conv dlpreopen link" + for file in $dlfiles $dlprefiles; do + case $file in + *.la) ;; + *) + func_fatal_help "libraries can '-dlopen' only libtool libraries: $file" + ;; + esac + done + ;; + prog) + compile_deplibs= + finalize_deplibs= + alldeplibs=false + newdlfiles= + newdlprefiles= + passes="conv scan dlopen dlpreopen link" + ;; + *) passes="conv" + ;; + esac + + for pass in $passes; do + # The preopen pass in lib mode reverses $deplibs; put it back here + # so that -L comes before libs that need it for instance... + if test lib,link = "$linkmode,$pass"; then + ## FIXME: Find the place where the list is rebuilt in the wrong + ## order, and fix it there properly + tmp_deplibs= + for deplib in $deplibs; do + tmp_deplibs="$deplib $tmp_deplibs" + done + deplibs=$tmp_deplibs + fi + + if test lib,link = "$linkmode,$pass" || + test prog,scan = "$linkmode,$pass"; then + libs=$deplibs + deplibs= + fi + if test prog = "$linkmode"; then + case $pass in + dlopen) libs=$dlfiles ;; + dlpreopen) libs=$dlprefiles ;; + link) libs="$deplibs %DEPLIBS% $dependency_libs" ;; + esac + fi + if test lib,dlpreopen = "$linkmode,$pass"; then + # Collect and forward deplibs of preopened libtool libs + for lib in $dlprefiles; do + # Ignore non-libtool-libs + dependency_libs= + func_resolve_sysroot "$lib" + case $lib in + *.la) func_source "$func_resolve_sysroot_result" ;; + esac + + # Collect preopened libtool deplibs, except any this library + # has declared as weak libs + for deplib in $dependency_libs; do + func_basename "$deplib" + deplib_base=$func_basename_result + case " $weak_libs " in + *" $deplib_base "*) ;; + *) func_append deplibs " $deplib" ;; + esac + done + done + libs=$dlprefiles + fi + if test dlopen = "$pass"; then + # Collect dlpreopened libraries + save_deplibs=$deplibs + deplibs= + fi + + for deplib in $libs; do + lib= + found=false + case $deplib in + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ + |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) + if test prog,link = "$linkmode,$pass"; then + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + func_append compiler_flags " $deplib" + if test lib = "$linkmode"; then + case "$new_inherited_linker_flags " in + *" $deplib "*) ;; + * ) func_append new_inherited_linker_flags " $deplib" ;; + esac + fi + fi + continue + ;; + -l*) + if test lib != "$linkmode" && test prog != "$linkmode"; then + func_warning "'-l' is ignored for archives/objects" + continue + fi + func_stripname '-l' '' "$deplib" + name=$func_stripname_result + if test lib = "$linkmode"; then + searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path" + else + searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path" + fi + for searchdir in $searchdirs; do + for search_ext in .la $std_shrext .so .a; do + # Search the libtool library + lib=$searchdir/lib$name$search_ext + if test -f "$lib"; then + if test .la = "$search_ext"; then + found=: + else + found=false + fi + break 2 + fi + done + done + if $found; then + # deplib is a libtool library + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, + # We need to do some special things here, and not later. + if test yes = "$allow_libtool_libs_with_static_runtimes"; then + case " $predeps $postdeps " in + *" $deplib "*) + if func_lalib_p "$lib"; then + library_names= + old_library= + func_source "$lib" + for l in $old_library $library_names; do + ll=$l + done + if test "X$ll" = "X$old_library"; then # only static version available + found=false + func_dirname "$lib" "" "." + ladir=$func_dirname_result + lib=$ladir/$old_library + if test prog,link = "$linkmode,$pass"; then + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + deplibs="$deplib $deplibs" + test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs" + fi + continue + fi + fi + ;; + *) ;; + esac + fi + else + # deplib doesn't seem to be a libtool library + if test prog,link = "$linkmode,$pass"; then + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + deplibs="$deplib $deplibs" + test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs" + fi + continue + fi + ;; # -l + *.ltframework) + if test prog,link = "$linkmode,$pass"; then + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + deplibs="$deplib $deplibs" + if test lib = "$linkmode"; then + case "$new_inherited_linker_flags " in + *" $deplib "*) ;; + * ) func_append new_inherited_linker_flags " $deplib" ;; + esac + fi + fi + continue + ;; + -L*) + case $linkmode in + lib) + deplibs="$deplib $deplibs" + test conv = "$pass" && continue + newdependency_libs="$deplib $newdependency_libs" + func_stripname '-L' '' "$deplib" + func_resolve_sysroot "$func_stripname_result" + func_append newlib_search_path " $func_resolve_sysroot_result" + ;; + prog) + if test conv = "$pass"; then + deplibs="$deplib $deplibs" + continue + fi + if test scan = "$pass"; then + deplibs="$deplib $deplibs" + else + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + fi + func_stripname '-L' '' "$deplib" + func_resolve_sysroot "$func_stripname_result" + func_append newlib_search_path " $func_resolve_sysroot_result" + ;; + *) + func_warning "'-L' is ignored for archives/objects" + ;; + esac # linkmode + continue + ;; # -L + -R*) + if test link = "$pass"; then + func_stripname '-R' '' "$deplib" + func_resolve_sysroot "$func_stripname_result" + dir=$func_resolve_sysroot_result + # Make sure the xrpath contains only unique directories. + case "$xrpath " in + *" $dir "*) ;; + *) func_append xrpath " $dir" ;; + esac + fi + deplibs="$deplib $deplibs" + continue + ;; + *.la) + func_resolve_sysroot "$deplib" + lib=$func_resolve_sysroot_result + ;; + *.$libext) + if test conv = "$pass"; then + deplibs="$deplib $deplibs" + continue + fi + case $linkmode in + lib) + # Linking convenience modules into shared libraries is allowed, + # but linking other static libraries is non-portable. + case " $dlpreconveniencelibs " in + *" $deplib "*) ;; + *) + valid_a_lib=false + case $deplibs_check_method in + match_pattern*) + set dummy $deplibs_check_method; shift + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` + if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \ + | $EGREP "$match_pattern_regex" > /dev/null; then + valid_a_lib=: + fi + ;; + pass_all) + valid_a_lib=: + ;; + esac + if $valid_a_lib; then + echo + $ECHO "*** Warning: Linking the shared library $output against the" + $ECHO "*** static library $deplib is not portable!" + deplibs="$deplib $deplibs" + else + echo + $ECHO "*** Warning: Trying to link with static lib archive $deplib." + echo "*** I have the capability to make that library automatically link in when" + echo "*** you link to this library. But I can only do this if you have a" + echo "*** shared version of the library, which you do not appear to have" + echo "*** because the file extensions .$libext of this argument makes me believe" + echo "*** that it is just a static archive that I should not use here." + fi + ;; + esac + continue + ;; + prog) + if test link != "$pass"; then + deplibs="$deplib $deplibs" + else + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + fi + continue + ;; + esac # linkmode + ;; # *.$libext + *.lo | *.$objext) + if test conv = "$pass"; then + deplibs="$deplib $deplibs" + elif test prog = "$linkmode"; then + if test dlpreopen = "$pass" || test yes != "$dlopen_support" || test no = "$build_libtool_libs"; then + # If there is no dlopen support or we're linking statically, + # we need to preload. + func_append newdlprefiles " $deplib" + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + func_append newdlfiles " $deplib" + fi + fi + continue + ;; + %DEPLIBS%) + alldeplibs=: + continue + ;; + esac # case $deplib + + $found || test -f "$lib" \ + || func_fatal_error "cannot find the library '$lib' or unhandled argument '$deplib'" + + # Check to see that this really is a libtool archive. + func_lalib_unsafe_p "$lib" \ + || func_fatal_error "'$lib' is not a valid libtool archive" + + func_dirname "$lib" "" "." + ladir=$func_dirname_result + + dlname= + dlopen= + dlpreopen= + libdir= + library_names= + old_library= + inherited_linker_flags= + # If the library was installed with an old release of libtool, + # it will not redefine variables installed, or shouldnotlink + installed=yes + shouldnotlink=no + avoidtemprpath= + + + # Read the .la file + func_source "$lib" + + # Convert "-framework foo" to "foo.ltframework" + if test -n "$inherited_linker_flags"; then + tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'` + for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do + case " $new_inherited_linker_flags " in + *" $tmp_inherited_linker_flag "*) ;; + *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";; + esac + done + fi + dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` + if test lib,link = "$linkmode,$pass" || + test prog,scan = "$linkmode,$pass" || + { test prog != "$linkmode" && test lib != "$linkmode"; }; then + test -n "$dlopen" && func_append dlfiles " $dlopen" + test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen" + fi + + if test conv = "$pass"; then + # Only check for convenience libraries + deplibs="$lib $deplibs" + if test -z "$libdir"; then + if test -z "$old_library"; then + func_fatal_error "cannot find name of link library for '$lib'" + fi + # It is a libtool convenience library, so add in its objects. + func_append convenience " $ladir/$objdir/$old_library" + func_append old_convenience " $ladir/$objdir/$old_library" + elif test prog != "$linkmode" && test lib != "$linkmode"; then + func_fatal_error "'$lib' is not a convenience library" + fi + tmp_libs= + for deplib in $dependency_libs; do + deplibs="$deplib $deplibs" + if $opt_preserve_dup_deps; then + case "$tmp_libs " in + *" $deplib "*) func_append specialdeplibs " $deplib" ;; + esac + fi + func_append tmp_libs " $deplib" + done + continue + fi # $pass = conv + + + # Get the name of the library we link against. + linklib= + if test -n "$old_library" && + { test yes = "$prefer_static_libs" || + test built,no = "$prefer_static_libs,$installed"; }; then + linklib=$old_library + else + for l in $old_library $library_names; do + linklib=$l + done + fi + if test -z "$linklib"; then + func_fatal_error "cannot find name of link library for '$lib'" + fi + + # This library was specified with -dlopen. + if test dlopen = "$pass"; then + test -z "$libdir" \ + && func_fatal_error "cannot -dlopen a convenience library: '$lib'" + if test -z "$dlname" || + test yes != "$dlopen_support" || + test no = "$build_libtool_libs" + then + # If there is no dlname, no dlopen support or we're linking + # statically, we need to preload. We also need to preload any + # dependent libraries so libltdl's deplib preloader doesn't + # bomb out in the load deplibs phase. + func_append dlprefiles " $lib $dependency_libs" + else + func_append newdlfiles " $lib" + fi + continue + fi # $pass = dlopen + + # We need an absolute path. + case $ladir in + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir=$ladir ;; + *) + abs_ladir=`cd "$ladir" && pwd` + if test -z "$abs_ladir"; then + func_warning "cannot determine absolute directory name of '$ladir'" + func_warning "passing it literally to the linker, although it might fail" + abs_ladir=$ladir + fi + ;; + esac + func_basename "$lib" + laname=$func_basename_result + + # Find the relevant object directory and library name. + if test yes = "$installed"; then + if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then + func_warning "library '$lib' was moved." + dir=$ladir + absdir=$abs_ladir + libdir=$abs_ladir + else + dir=$lt_sysroot$libdir + absdir=$lt_sysroot$libdir + fi + test yes = "$hardcode_automatic" && avoidtemprpath=yes + else + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then + dir=$ladir + absdir=$abs_ladir + # Remove this search path later + func_append notinst_path " $abs_ladir" + else + dir=$ladir/$objdir + absdir=$abs_ladir/$objdir + # Remove this search path later + func_append notinst_path " $abs_ladir" + fi + fi # $installed = yes + func_stripname 'lib' '.la' "$laname" + name=$func_stripname_result + + # This library was specified with -dlpreopen. + if test dlpreopen = "$pass"; then + if test -z "$libdir" && test prog = "$linkmode"; then + func_fatal_error "only libraries may -dlpreopen a convenience library: '$lib'" + fi + case $host in + # special handling for platforms with PE-DLLs. + *cygwin* | *mingw* | *cegcc* ) + # Linker will automatically link against shared library if both + # static and shared are present. Therefore, ensure we extract + # symbols from the import library if a shared library is present + # (otherwise, the dlopen module name will be incorrect). We do + # this by putting the import library name into $newdlprefiles. + # We recover the dlopen module name by 'saving' the la file + # name in a special purpose variable, and (later) extracting the + # dlname from the la file. + if test -n "$dlname"; then + func_tr_sh "$dir/$linklib" + eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname" + func_append newdlprefiles " $dir/$linklib" + else + func_append newdlprefiles " $dir/$old_library" + # Keep a list of preopened convenience libraries to check + # that they are being used correctly in the link pass. + test -z "$libdir" && \ + func_append dlpreconveniencelibs " $dir/$old_library" + fi + ;; + * ) + # Prefer using a static library (so that no silly _DYNAMIC symbols + # are required to link). + if test -n "$old_library"; then + func_append newdlprefiles " $dir/$old_library" + # Keep a list of preopened convenience libraries to check + # that they are being used correctly in the link pass. + test -z "$libdir" && \ + func_append dlpreconveniencelibs " $dir/$old_library" + # Otherwise, use the dlname, so that lt_dlopen finds it. + elif test -n "$dlname"; then + func_append newdlprefiles " $dir/$dlname" + else + func_append newdlprefiles " $dir/$linklib" + fi + ;; + esac + fi # $pass = dlpreopen + + if test -z "$libdir"; then + # Link the convenience library + if test lib = "$linkmode"; then + deplibs="$dir/$old_library $deplibs" + elif test prog,link = "$linkmode,$pass"; then + compile_deplibs="$dir/$old_library $compile_deplibs" + finalize_deplibs="$dir/$old_library $finalize_deplibs" + else + deplibs="$lib $deplibs" # used for prog,scan pass + fi + continue + fi + + + if test prog = "$linkmode" && test link != "$pass"; then + func_append newlib_search_path " $ladir" + deplibs="$lib $deplibs" + + linkalldeplibs=false + if test no != "$link_all_deplibs" || test -z "$library_names" || + test no = "$build_libtool_libs"; then + linkalldeplibs=: + fi + + tmp_libs= + for deplib in $dependency_libs; do + case $deplib in + -L*) func_stripname '-L' '' "$deplib" + func_resolve_sysroot "$func_stripname_result" + func_append newlib_search_path " $func_resolve_sysroot_result" + ;; + esac + # Need to link against all dependency_libs? + if $linkalldeplibs; then + deplibs="$deplib $deplibs" + else + # Need to hardcode shared library paths + # or/and link against static libraries + newdependency_libs="$deplib $newdependency_libs" + fi + if $opt_preserve_dup_deps; then + case "$tmp_libs " in + *" $deplib "*) func_append specialdeplibs " $deplib" ;; + esac + fi + func_append tmp_libs " $deplib" + done # for deplib + continue + fi # $linkmode = prog... + + if test prog,link = "$linkmode,$pass"; then + if test -n "$library_names" && + { { test no = "$prefer_static_libs" || + test built,yes = "$prefer_static_libs,$installed"; } || + test -z "$old_library"; }; then + # We need to hardcode the library path + if test -n "$shlibpath_var" && test -z "$avoidtemprpath"; then + # Make sure the rpath contains only unique directories. + case $temp_rpath: in + *"$absdir:"*) ;; + *) func_append temp_rpath "$absdir:" ;; + esac + fi + + # Hardcode the library path. + # Skip directories that are in the system default run-time + # search path. + case " $sys_lib_dlsearch_path " in + *" $absdir "*) ;; + *) + case "$compile_rpath " in + *" $absdir "*) ;; + *) func_append compile_rpath " $absdir" ;; + esac + ;; + esac + case " $sys_lib_dlsearch_path " in + *" $libdir "*) ;; + *) + case "$finalize_rpath " in + *" $libdir "*) ;; + *) func_append finalize_rpath " $libdir" ;; + esac + ;; + esac + fi # $linkmode,$pass = prog,link... + + if $alldeplibs && + { test pass_all = "$deplibs_check_method" || + { test yes = "$build_libtool_libs" && + test -n "$library_names"; }; }; then + # We only need to search for static libraries + continue + fi + fi + + link_static=no # Whether the deplib will be linked statically + use_static_libs=$prefer_static_libs + if test built = "$use_static_libs" && test yes = "$installed"; then + use_static_libs=no + fi + if test -n "$library_names" && + { test no = "$use_static_libs" || test -z "$old_library"; }; then + case $host in + *cygwin* | *mingw* | *cegcc* | *os2*) + # No point in relinking DLLs because paths are not encoded + func_append notinst_deplibs " $lib" + need_relink=no + ;; + *) + if test no = "$installed"; then + func_append notinst_deplibs " $lib" + need_relink=yes + fi + ;; + esac + # This is a shared library + + # Warn about portability, can't link against -module's on some + # systems (darwin). Don't bleat about dlopened modules though! + dlopenmodule= + for dlpremoduletest in $dlprefiles; do + if test "X$dlpremoduletest" = "X$lib"; then + dlopenmodule=$dlpremoduletest + break + fi + done + if test -z "$dlopenmodule" && test yes = "$shouldnotlink" && test link = "$pass"; then + echo + if test prog = "$linkmode"; then + $ECHO "*** Warning: Linking the executable $output against the loadable module" + else + $ECHO "*** Warning: Linking the shared library $output against the loadable module" + fi + $ECHO "*** $linklib is not portable!" + fi + if test lib = "$linkmode" && + test yes = "$hardcode_into_libs"; then + # Hardcode the library path. + # Skip directories that are in the system default run-time + # search path. + case " $sys_lib_dlsearch_path " in + *" $absdir "*) ;; + *) + case "$compile_rpath " in + *" $absdir "*) ;; + *) func_append compile_rpath " $absdir" ;; + esac + ;; + esac + case " $sys_lib_dlsearch_path " in + *" $libdir "*) ;; + *) + case "$finalize_rpath " in + *" $libdir "*) ;; + *) func_append finalize_rpath " $libdir" ;; + esac + ;; + esac + fi + + if test -n "$old_archive_from_expsyms_cmds"; then + # figure out the soname + set dummy $library_names + shift + realname=$1 + shift + libname=`eval "\\$ECHO \"$libname_spec\""` + # use dlname if we got it. it's perfectly good, no? + if test -n "$dlname"; then + soname=$dlname + elif test -n "$soname_spec"; then + # bleh windows + case $host in + *cygwin* | mingw* | *cegcc* | *os2*) + func_arith $current - $age + major=$func_arith_result + versuffix=-$major + ;; + esac + eval soname=\"$soname_spec\" + else + soname=$realname + fi + + # Make a new name for the extract_expsyms_cmds to use + soroot=$soname + func_basename "$soroot" + soname=$func_basename_result + func_stripname 'lib' '.dll' "$soname" + newlib=libimp-$func_stripname_result.a + + # If the library has no export list, then create one now + if test -f "$output_objdir/$soname-def"; then : + else + func_verbose "extracting exported symbol list from '$soname'" + func_execute_cmds "$extract_expsyms_cmds" 'exit $?' + fi + + # Create $newlib + if test -f "$output_objdir/$newlib"; then :; else + func_verbose "generating import library for '$soname'" + func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?' + fi + # make sure the library variables are pointing to the new library + dir=$output_objdir + linklib=$newlib + fi # test -n "$old_archive_from_expsyms_cmds" + + if test prog = "$linkmode" || test relink != "$opt_mode"; then + add_shlibpath= + add_dir= + add= + lib_linked=yes + case $hardcode_action in + immediate | unsupported) + if test no = "$hardcode_direct"; then + add=$dir/$linklib + case $host in + *-*-sco3.2v5.0.[024]*) add_dir=-L$dir ;; + *-*-sysv4*uw2*) add_dir=-L$dir ;; + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ + *-*-unixware7*) add_dir=-L$dir ;; + *-*-darwin* ) + # if the lib is a (non-dlopened) module then we cannot + # link against it, someone is ignoring the earlier warnings + if /usr/bin/file -L $add 2> /dev/null | + $GREP ": [^:]* bundle" >/dev/null; then + if test "X$dlopenmodule" != "X$lib"; then + $ECHO "*** Warning: lib $linklib is a module, not a shared library" + if test -z "$old_library"; then + echo + echo "*** And there doesn't seem to be a static archive available" + echo "*** The link will probably fail, sorry" + else + add=$dir/$old_library + fi + elif test -n "$old_library"; then + add=$dir/$old_library + fi + fi + esac + elif test no = "$hardcode_minus_L"; then + case $host in + *-*-sunos*) add_shlibpath=$dir ;; + esac + add_dir=-L$dir + add=-l$name + elif test no = "$hardcode_shlibpath_var"; then + add_shlibpath=$dir + add=-l$name + else + lib_linked=no + fi + ;; + relink) + if test yes = "$hardcode_direct" && + test no = "$hardcode_direct_absolute"; then + add=$dir/$linklib + elif test yes = "$hardcode_minus_L"; then + add_dir=-L$absdir + # Try looking first in the location we're being installed to. + if test -n "$inst_prefix_dir"; then + case $libdir in + [\\/]*) + func_append add_dir " -L$inst_prefix_dir$libdir" + ;; + esac + fi + add=-l$name + elif test yes = "$hardcode_shlibpath_var"; then + add_shlibpath=$dir + add=-l$name + else + lib_linked=no + fi + ;; + *) lib_linked=no ;; + esac + + if test yes != "$lib_linked"; then + func_fatal_configuration "unsupported hardcode properties" + fi + + if test -n "$add_shlibpath"; then + case :$compile_shlibpath: in + *":$add_shlibpath:"*) ;; + *) func_append compile_shlibpath "$add_shlibpath:" ;; + esac + fi + if test prog = "$linkmode"; then + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" + test -n "$add" && compile_deplibs="$add $compile_deplibs" + else + test -n "$add_dir" && deplibs="$add_dir $deplibs" + test -n "$add" && deplibs="$add $deplibs" + if test yes != "$hardcode_direct" && + test yes != "$hardcode_minus_L" && + test yes = "$hardcode_shlibpath_var"; then + case :$finalize_shlibpath: in + *":$libdir:"*) ;; + *) func_append finalize_shlibpath "$libdir:" ;; + esac + fi + fi + fi + + if test prog = "$linkmode" || test relink = "$opt_mode"; then + add_shlibpath= + add_dir= + add= + # Finalize command for both is simple: just hardcode it. + if test yes = "$hardcode_direct" && + test no = "$hardcode_direct_absolute"; then + add=$libdir/$linklib + elif test yes = "$hardcode_minus_L"; then + add_dir=-L$libdir + add=-l$name + elif test yes = "$hardcode_shlibpath_var"; then + case :$finalize_shlibpath: in + *":$libdir:"*) ;; + *) func_append finalize_shlibpath "$libdir:" ;; + esac + add=-l$name + elif test yes = "$hardcode_automatic"; then + if test -n "$inst_prefix_dir" && + test -f "$inst_prefix_dir$libdir/$linklib"; then + add=$inst_prefix_dir$libdir/$linklib + else + add=$libdir/$linklib + fi + else + # We cannot seem to hardcode it, guess we'll fake it. + add_dir=-L$libdir + # Try looking first in the location we're being installed to. + if test -n "$inst_prefix_dir"; then + case $libdir in + [\\/]*) + func_append add_dir " -L$inst_prefix_dir$libdir" + ;; + esac + fi + add=-l$name + fi + + if test prog = "$linkmode"; then + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" + test -n "$add" && finalize_deplibs="$add $finalize_deplibs" + else + test -n "$add_dir" && deplibs="$add_dir $deplibs" + test -n "$add" && deplibs="$add $deplibs" + fi + fi + elif test prog = "$linkmode"; then + # Here we assume that one of hardcode_direct or hardcode_minus_L + # is not unsupported. This is valid on all known static and + # shared platforms. + if test unsupported != "$hardcode_direct"; then + test -n "$old_library" && linklib=$old_library + compile_deplibs="$dir/$linklib $compile_deplibs" + finalize_deplibs="$dir/$linklib $finalize_deplibs" + else + compile_deplibs="-l$name -L$dir $compile_deplibs" + finalize_deplibs="-l$name -L$dir $finalize_deplibs" + fi + elif test yes = "$build_libtool_libs"; then + # Not a shared library + if test pass_all != "$deplibs_check_method"; then + # We're trying link a shared library against a static one + # but the system doesn't support it. + + # Just print a warning and add the library to dependency_libs so + # that the program can be linked against the static library. + echo + $ECHO "*** Warning: This system cannot link to static lib archive $lib." + echo "*** I have the capability to make that library automatically link in when" + echo "*** you link to this library. But I can only do this if you have a" + echo "*** shared version of the library, which you do not appear to have." + if test yes = "$module"; then + echo "*** But as you try to build a module library, libtool will still create " + echo "*** a static module, that should work as long as the dlopening application" + echo "*** is linked with the -dlopen flag to resolve symbols at runtime." + if test -z "$global_symbol_pipe"; then + echo + echo "*** However, this would only work if libtool was able to extract symbol" + echo "*** lists from a program, using 'nm' or equivalent, but libtool could" + echo "*** not find such a program. So, this module is probably useless." + echo "*** 'nm' from GNU binutils and a full rebuild may help." + fi + if test no = "$build_old_libs"; then + build_libtool_libs=module + build_old_libs=yes + else + build_libtool_libs=no + fi + fi + else + deplibs="$dir/$old_library $deplibs" + link_static=yes + fi + fi # link shared/static library? + + if test lib = "$linkmode"; then + if test -n "$dependency_libs" && + { test yes != "$hardcode_into_libs" || + test yes = "$build_old_libs" || + test yes = "$link_static"; }; then + # Extract -R from dependency_libs + temp_deplibs= + for libdir in $dependency_libs; do + case $libdir in + -R*) func_stripname '-R' '' "$libdir" + temp_xrpath=$func_stripname_result + case " $xrpath " in + *" $temp_xrpath "*) ;; + *) func_append xrpath " $temp_xrpath";; + esac;; + *) func_append temp_deplibs " $libdir";; + esac + done + dependency_libs=$temp_deplibs + fi + + func_append newlib_search_path " $absdir" + # Link against this library + test no = "$link_static" && newdependency_libs="$abs_ladir/$laname $newdependency_libs" + # ... and its dependency_libs + tmp_libs= + for deplib in $dependency_libs; do + newdependency_libs="$deplib $newdependency_libs" + case $deplib in + -L*) func_stripname '-L' '' "$deplib" + func_resolve_sysroot "$func_stripname_result";; + *) func_resolve_sysroot "$deplib" ;; + esac + if $opt_preserve_dup_deps; then + case "$tmp_libs " in + *" $func_resolve_sysroot_result "*) + func_append specialdeplibs " $func_resolve_sysroot_result" ;; + esac + fi + func_append tmp_libs " $func_resolve_sysroot_result" + done + + if test no != "$link_all_deplibs"; then + # Add the search paths of all dependency libraries + for deplib in $dependency_libs; do + path= + case $deplib in + -L*) path=$deplib ;; + *.la) + func_resolve_sysroot "$deplib" + deplib=$func_resolve_sysroot_result + func_dirname "$deplib" "" "." + dir=$func_dirname_result + # We need an absolute path. + case $dir in + [\\/]* | [A-Za-z]:[\\/]*) absdir=$dir ;; + *) + absdir=`cd "$dir" && pwd` + if test -z "$absdir"; then + func_warning "cannot determine absolute directory name of '$dir'" + absdir=$dir + fi + ;; + esac + if $GREP "^installed=no" $deplib > /dev/null; then + case $host in + *-*-darwin*) + depdepl= + eval deplibrary_names=`$SED -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` + if test -n "$deplibrary_names"; then + for tmp in $deplibrary_names; do + depdepl=$tmp + done + if test -f "$absdir/$objdir/$depdepl"; then + depdepl=$absdir/$objdir/$depdepl + darwin_install_name=`$OTOOL -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` + if test -z "$darwin_install_name"; then + darwin_install_name=`$OTOOL64 -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` + fi + func_append compiler_flags " $wl-dylib_file $wl$darwin_install_name:$depdepl" + func_append linker_flags " -dylib_file $darwin_install_name:$depdepl" + path= + fi + fi + ;; + *) + path=-L$absdir/$objdir + ;; + esac + else + eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` + test -z "$libdir" && \ + func_fatal_error "'$deplib' is not a valid libtool archive" + test "$absdir" != "$libdir" && \ + func_warning "'$deplib' seems to be moved" + + path=-L$absdir + fi + ;; + esac + case " $deplibs " in + *" $path "*) ;; + *) deplibs="$path $deplibs" ;; + esac + done + fi # link_all_deplibs != no + fi # linkmode = lib + done # for deplib in $libs + if test link = "$pass"; then + if test prog = "$linkmode"; then + compile_deplibs="$new_inherited_linker_flags $compile_deplibs" + finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs" + else + compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` + fi + fi + dependency_libs=$newdependency_libs + if test dlpreopen = "$pass"; then + # Link the dlpreopened libraries before other libraries + for deplib in $save_deplibs; do + deplibs="$deplib $deplibs" + done + fi + if test dlopen != "$pass"; then + test conv = "$pass" || { + # Make sure lib_search_path contains only unique directories. + lib_search_path= + for dir in $newlib_search_path; do + case "$lib_search_path " in + *" $dir "*) ;; + *) func_append lib_search_path " $dir" ;; + esac + done + newlib_search_path= + } + + if test prog,link = "$linkmode,$pass"; then + vars="compile_deplibs finalize_deplibs" + else + vars=deplibs + fi + for var in $vars dependency_libs; do + # Add libraries to $var in reverse order + eval tmp_libs=\"\$$var\" + new_libs= + for deplib in $tmp_libs; do + # FIXME: Pedantically, this is the right thing to do, so + # that some nasty dependency loop isn't accidentally + # broken: + #new_libs="$deplib $new_libs" + # Pragmatically, this seems to cause very few problems in + # practice: + case $deplib in + -L*) new_libs="$deplib $new_libs" ;; + -R*) ;; + *) + # And here is the reason: when a library appears more + # than once as an explicit dependence of a library, or + # is implicitly linked in more than once by the + # compiler, it is considered special, and multiple + # occurrences thereof are not removed. Compare this + # with having the same library being listed as a + # dependency of multiple other libraries: in this case, + # we know (pedantically, we assume) the library does not + # need to be listed more than once, so we keep only the + # last copy. This is not always right, but it is rare + # enough that we require users that really mean to play + # such unportable linking tricks to link the library + # using -Wl,-lname, so that libtool does not consider it + # for duplicate removal. + case " $specialdeplibs " in + *" $deplib "*) new_libs="$deplib $new_libs" ;; + *) + case " $new_libs " in + *" $deplib "*) ;; + *) new_libs="$deplib $new_libs" ;; + esac + ;; + esac + ;; + esac + done + tmp_libs= + for deplib in $new_libs; do + case $deplib in + -L*) + case " $tmp_libs " in + *" $deplib "*) ;; + *) func_append tmp_libs " $deplib" ;; + esac + ;; + *) func_append tmp_libs " $deplib" ;; + esac + done + eval $var=\"$tmp_libs\" + done # for var + fi + + # Add Sun CC postdeps if required: + test CXX = "$tagname" && { + case $host_os in + linux*) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) # Sun C++ 5.9 + func_suncc_cstd_abi + + if test no != "$suncc_use_cstd_abi"; then + func_append postdeps ' -library=Cstd -library=Crun' + fi + ;; + esac + ;; + + solaris*) + func_cc_basename "$CC" + case $func_cc_basename_result in + CC* | sunCC*) + func_suncc_cstd_abi + + if test no != "$suncc_use_cstd_abi"; then + func_append postdeps ' -library=Cstd -library=Crun' + fi + ;; + esac + ;; + esac + } + + # Last step: remove runtime libs from dependency_libs + # (they stay in deplibs) + tmp_libs= + for i in $dependency_libs; do + case " $predeps $postdeps $compiler_lib_search_path " in + *" $i "*) + i= + ;; + esac + if test -n "$i"; then + func_append tmp_libs " $i" + fi + done + dependency_libs=$tmp_libs + done # for pass + if test prog = "$linkmode"; then + dlfiles=$newdlfiles + fi + if test prog = "$linkmode" || test lib = "$linkmode"; then + dlprefiles=$newdlprefiles + fi + + case $linkmode in + oldlib) + if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then + func_warning "'-dlopen' is ignored for archives" + fi + + case " $deplibs" in + *\ -l* | *\ -L*) + func_warning "'-l' and '-L' are ignored for archives" ;; + esac + + test -n "$rpath" && \ + func_warning "'-rpath' is ignored for archives" + + test -n "$xrpath" && \ + func_warning "'-R' is ignored for archives" + + test -n "$vinfo" && \ + func_warning "'-version-info/-version-number' is ignored for archives" + + test -n "$release" && \ + func_warning "'-release' is ignored for archives" + + test -n "$export_symbols$export_symbols_regex" && \ + func_warning "'-export-symbols' is ignored for archives" + + # Now set the variables for building old libraries. + build_libtool_libs=no + oldlibs=$output + func_append objs "$old_deplibs" + ;; + + lib) + # Make sure we only generate libraries of the form 'libNAME.la'. + case $outputname in + lib*) + func_stripname 'lib' '.la' "$outputname" + name=$func_stripname_result + eval shared_ext=\"$shrext_cmds\" + eval libname=\"$libname_spec\" + ;; + *) + test no = "$module" \ + && func_fatal_help "libtool library '$output' must begin with 'lib'" + + if test no != "$need_lib_prefix"; then + # Add the "lib" prefix for modules if required + func_stripname '' '.la' "$outputname" + name=$func_stripname_result + eval shared_ext=\"$shrext_cmds\" + eval libname=\"$libname_spec\" + else + func_stripname '' '.la' "$outputname" + libname=$func_stripname_result + fi + ;; + esac + + if test -n "$objs"; then + if test pass_all != "$deplibs_check_method"; then + func_fatal_error "cannot build libtool library '$output' from non-libtool objects on this host:$objs" + else + echo + $ECHO "*** Warning: Linking the shared library $output against the non-libtool" + $ECHO "*** objects $objs is not portable!" + func_append libobjs " $objs" + fi + fi + + test no = "$dlself" \ + || func_warning "'-dlopen self' is ignored for libtool libraries" + + set dummy $rpath + shift + test 1 -lt "$#" \ + && func_warning "ignoring multiple '-rpath's for a libtool library" + + install_libdir=$1 + + oldlibs= + if test -z "$rpath"; then + if test yes = "$build_libtool_libs"; then + # Building a libtool convenience library. + # Some compilers have problems with a '.al' extension so + # convenience libraries should have the same extension an + # archive normally would. + oldlibs="$output_objdir/$libname.$libext $oldlibs" + build_libtool_libs=convenience + build_old_libs=yes + fi + + test -n "$vinfo" && \ + func_warning "'-version-info/-version-number' is ignored for convenience libraries" + + test -n "$release" && \ + func_warning "'-release' is ignored for convenience libraries" + else + + # Parse the version information argument. + save_ifs=$IFS; IFS=: + set dummy $vinfo 0 0 0 + shift + IFS=$save_ifs + + test -n "$7" && \ + func_fatal_help "too many parameters to '-version-info'" + + # convert absolute version numbers to libtool ages + # this retains compatibility with .la files and attempts + # to make the code below a bit more comprehensible + + case $vinfo_number in + yes) + number_major=$1 + number_minor=$2 + number_revision=$3 + # + # There are really only two kinds -- those that + # use the current revision as the major version + # and those that subtract age and use age as + # a minor version. But, then there is irix + # that has an extra 1 added just for fun + # + case $version_type in + # correct linux to gnu/linux during the next big refactor + darwin|freebsd-elf|linux|osf|windows|none) + func_arith $number_major + $number_minor + current=$func_arith_result + age=$number_minor + revision=$number_revision + ;; + freebsd-aout|qnx|sunos) + current=$number_major + revision=$number_minor + age=0 + ;; + irix|nonstopux) + func_arith $number_major + $number_minor + current=$func_arith_result + age=$number_minor + revision=$number_minor + lt_irix_increment=no + ;; + esac + ;; + no) + current=$1 + revision=$2 + age=$3 + ;; + esac + + # Check that each of the things are valid numbers. + case $current in + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; + *) + func_error "CURRENT '$current' must be a nonnegative integer" + func_fatal_error "'$vinfo' is not valid version information" + ;; + esac + + case $revision in + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; + *) + func_error "REVISION '$revision' must be a nonnegative integer" + func_fatal_error "'$vinfo' is not valid version information" + ;; + esac + + case $age in + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; + *) + func_error "AGE '$age' must be a nonnegative integer" + func_fatal_error "'$vinfo' is not valid version information" + ;; + esac + + if test "$age" -gt "$current"; then + func_error "AGE '$age' is greater than the current interface number '$current'" + func_fatal_error "'$vinfo' is not valid version information" + fi + + # Calculate the version variables. + major= + versuffix= + verstring= + case $version_type in + none) ;; + + darwin) + # Like Linux, but with the current version available in + # verstring for coding it into the library header + func_arith $current - $age + major=.$func_arith_result + versuffix=$major.$age.$revision + # Darwin ld doesn't like 0 for these options... + func_arith $current + 1 + minor_current=$func_arith_result + xlcverstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision" + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" + # On Darwin other compilers + case $CC in + nagfor*) + verstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision" + ;; + *) + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" + ;; + esac + ;; + + freebsd-aout) + major=.$current + versuffix=.$current.$revision + ;; + + freebsd-elf) + func_arith $current - $age + major=.$func_arith_result + versuffix=$major.$age.$revision + ;; + + irix | nonstopux) + if test no = "$lt_irix_increment"; then + func_arith $current - $age + else + func_arith $current - $age + 1 + fi + major=$func_arith_result + + case $version_type in + nonstopux) verstring_prefix=nonstopux ;; + *) verstring_prefix=sgi ;; + esac + verstring=$verstring_prefix$major.$revision + + # Add in all the interfaces that we are compatible with. + loop=$revision + while test 0 -ne "$loop"; do + func_arith $revision - $loop + iface=$func_arith_result + func_arith $loop - 1 + loop=$func_arith_result + verstring=$verstring_prefix$major.$iface:$verstring + done + + # Before this point, $major must not contain '.'. + major=.$major + versuffix=$major.$revision + ;; + + linux) # correct to gnu/linux during the next big refactor + func_arith $current - $age + major=.$func_arith_result + versuffix=$major.$age.$revision + ;; + + osf) + func_arith $current - $age + major=.$func_arith_result + versuffix=.$current.$age.$revision + verstring=$current.$age.$revision + + # Add in all the interfaces that we are compatible with. + loop=$age + while test 0 -ne "$loop"; do + func_arith $current - $loop + iface=$func_arith_result + func_arith $loop - 1 + loop=$func_arith_result + verstring=$verstring:$iface.0 + done + + # Make executables depend on our current version. + func_append verstring ":$current.0" + ;; + + qnx) + major=.$current + versuffix=.$current + ;; + + sco) + major=.$current + versuffix=.$current + ;; + + sunos) + major=.$current + versuffix=.$current.$revision + ;; + + windows) + # Use '-' rather than '.', since we only want one + # extension on DOS 8.3 file systems. + func_arith $current - $age + major=$func_arith_result + versuffix=-$major + ;; + + *) + func_fatal_configuration "unknown library version type '$version_type'" + ;; + esac + + # Clear the version info if we defaulted, and they specified a release. + if test -z "$vinfo" && test -n "$release"; then + major= + case $version_type in + darwin) + # we can't check for "0.0" in archive_cmds due to quoting + # problems, so we reset it completely + verstring= + ;; + *) + verstring=0.0 + ;; + esac + if test no = "$need_version"; then + versuffix= + else + versuffix=.0.0 + fi + fi + + # Remove version info from name if versioning should be avoided + if test yes,no = "$avoid_version,$need_version"; then + major= + versuffix= + verstring= + fi + + # Check to see if the archive will have undefined symbols. + if test yes = "$allow_undefined"; then + if test unsupported = "$allow_undefined_flag"; then + if test yes = "$build_old_libs"; then + func_warning "undefined symbols not allowed in $host shared libraries; building static only" + build_libtool_libs=no + else + func_fatal_error "can't build $host shared library unless -no-undefined is specified" + fi + fi + else + # Don't allow undefined symbols. + allow_undefined_flag=$no_undefined_flag + fi + + fi + + func_generate_dlsyms "$libname" "$libname" : + func_append libobjs " $symfileobj" + test " " = "$libobjs" && libobjs= + + if test relink != "$opt_mode"; then + # Remove our outputs, but don't remove object files since they + # may have been created when compiling PIC objects. + removelist= + tempremovelist=`$ECHO "$output_objdir/*"` + for p in $tempremovelist; do + case $p in + *.$objext | *.gcno) + ;; + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/$libname$release.*) + if test -n "$precious_files_regex"; then + if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 + then + continue + fi + fi + func_append removelist " $p" + ;; + *) ;; + esac + done + test -n "$removelist" && \ + func_show_eval "${RM}r \$removelist" + fi + + # Now set the variables for building old libraries. + if test yes = "$build_old_libs" && test convenience != "$build_libtool_libs"; then + func_append oldlibs " $output_objdir/$libname.$libext" + + # Transform .lo files to .o files. + oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; $lo2o" | $NL2SP` + fi + + # Eliminate all temporary directories. + #for path in $notinst_path; do + # lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"` + # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"` + # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"` + #done + + if test -n "$xrpath"; then + # If the user specified any rpath flags, then add them. + temp_xrpath= + for libdir in $xrpath; do + func_replace_sysroot "$libdir" + func_append temp_xrpath " -R$func_replace_sysroot_result" + case "$finalize_rpath " in + *" $libdir "*) ;; + *) func_append finalize_rpath " $libdir" ;; + esac + done + if test yes != "$hardcode_into_libs" || test yes = "$build_old_libs"; then + dependency_libs="$temp_xrpath $dependency_libs" + fi + fi + + # Make sure dlfiles contains only unique files that won't be dlpreopened + old_dlfiles=$dlfiles + dlfiles= + for lib in $old_dlfiles; do + case " $dlprefiles $dlfiles " in + *" $lib "*) ;; + *) func_append dlfiles " $lib" ;; + esac + done + + # Make sure dlprefiles contains only unique files + old_dlprefiles=$dlprefiles + dlprefiles= + for lib in $old_dlprefiles; do + case "$dlprefiles " in + *" $lib "*) ;; + *) func_append dlprefiles " $lib" ;; + esac + done + + if test yes = "$build_libtool_libs"; then + if test -n "$rpath"; then + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*) + # these systems don't actually have a c library (as such)! + ;; + *-*-rhapsody* | *-*-darwin1.[012]) + # Rhapsody C library is in the System framework + func_append deplibs " System.ltframework" + ;; + *-*-netbsd*) + # Don't link with libc until the a.out ld.so is fixed. + ;; + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) + # Do not include libc due to us having libc/libc_r. + ;; + *-*-sco3.2v5* | *-*-sco5v6*) + # Causes problems with __ctype + ;; + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) + # Compiler inserts libc in the correct place for threads to work + ;; + *) + # Add libc to deplibs on all other systems if necessary. + if test yes = "$build_libtool_need_lc"; then + func_append deplibs " -lc" + fi + ;; + esac + fi + + # Transform deplibs into only deplibs that can be linked in shared. + name_save=$name + libname_save=$libname + release_save=$release + versuffix_save=$versuffix + major_save=$major + # I'm not sure if I'm treating the release correctly. I think + # release should show up in the -l (ie -lgmp5) so we don't want to + # add it in twice. Is that correct? + release= + versuffix= + major= + newdeplibs= + droppeddeps=no + case $deplibs_check_method in + pass_all) + # Don't check for shared/static. Everything works. + # This might be a little naive. We might want to check + # whether the library exists or not. But this is on + # osf3 & osf4 and I'm not really sure... Just + # implementing what was already the behavior. + newdeplibs=$deplibs + ;; + test_compile) + # This code stresses the "libraries are programs" paradigm to its + # limits. Maybe even breaks it. We compile a program, linking it + # against the deplibs as a proxy for the library. Then we can check + # whether they linked in statically or dynamically with ldd. + $opt_dry_run || $RM conftest.c + cat > conftest.c </dev/null` + $nocaseglob + else + potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null` + fi + for potent_lib in $potential_libs; do + # Follow soft links. + if ls -lLd "$potent_lib" 2>/dev/null | + $GREP " -> " >/dev/null; then + continue + fi + # The statement above tries to avoid entering an + # endless loop below, in case of cyclic links. + # We might still enter an endless loop, since a link + # loop can be closed while we follow links, + # but so what? + potlib=$potent_lib + while test -h "$potlib" 2>/dev/null; do + potliblink=`ls -ld $potlib | $SED 's/.* -> //'` + case $potliblink in + [\\/]* | [A-Za-z]:[\\/]*) potlib=$potliblink;; + *) potlib=`$ECHO "$potlib" | $SED 's|[^/]*$||'`"$potliblink";; + esac + done + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null | + $SED -e 10q | + $EGREP "$file_magic_regex" > /dev/null; then + func_append newdeplibs " $a_deplib" + a_deplib= + break 2 + fi + done + done + fi + if test -n "$a_deplib"; then + droppeddeps=yes + echo + $ECHO "*** Warning: linker path does not have real file for library $a_deplib." + echo "*** I have the capability to make that library automatically link in when" + echo "*** you link to this library. But I can only do this if you have a" + echo "*** shared version of the library, which you do not appear to have" + echo "*** because I did check the linker path looking for a file starting" + if test -z "$potlib"; then + $ECHO "*** with $libname but no candidates were found. (...for file magic test)" + else + $ECHO "*** with $libname and none of the candidates passed a file format test" + $ECHO "*** using a file magic. Last file checked: $potlib" + fi + fi + ;; + *) + # Add a -L argument. + func_append newdeplibs " $a_deplib" + ;; + esac + done # Gone through all deplibs. + ;; + match_pattern*) + set dummy $deplibs_check_method; shift + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` + for a_deplib in $deplibs; do + case $a_deplib in + -l*) + func_stripname -l '' "$a_deplib" + name=$func_stripname_result + if test yes = "$allow_libtool_libs_with_static_runtimes"; then + case " $predeps $postdeps " in + *" $a_deplib "*) + func_append newdeplibs " $a_deplib" + a_deplib= + ;; + esac + fi + if test -n "$a_deplib"; then + libname=`eval "\\$ECHO \"$libname_spec\""` + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do + potential_libs=`ls $i/$libname[.-]* 2>/dev/null` + for potent_lib in $potential_libs; do + potlib=$potent_lib # see symlink-check above in file_magic test + if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \ + $EGREP "$match_pattern_regex" > /dev/null; then + func_append newdeplibs " $a_deplib" + a_deplib= + break 2 + fi + done + done + fi + if test -n "$a_deplib"; then + droppeddeps=yes + echo + $ECHO "*** Warning: linker path does not have real file for library $a_deplib." + echo "*** I have the capability to make that library automatically link in when" + echo "*** you link to this library. But I can only do this if you have a" + echo "*** shared version of the library, which you do not appear to have" + echo "*** because I did check the linker path looking for a file starting" + if test -z "$potlib"; then + $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)" + else + $ECHO "*** with $libname and none of the candidates passed a file format test" + $ECHO "*** using a regex pattern. Last file checked: $potlib" + fi + fi + ;; + *) + # Add a -L argument. + func_append newdeplibs " $a_deplib" + ;; + esac + done # Gone through all deplibs. + ;; + none | unknown | *) + newdeplibs= + tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'` + if test yes = "$allow_libtool_libs_with_static_runtimes"; then + for i in $predeps $postdeps; do + # can't use Xsed below, because $i might contain '/' + tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s|$i||"` + done + fi + case $tmp_deplibs in + *[!\ \ ]*) + echo + if test none = "$deplibs_check_method"; then + echo "*** Warning: inter-library dependencies are not supported in this platform." + else + echo "*** Warning: inter-library dependencies are not known to be supported." + fi + echo "*** All declared inter-library dependencies are being dropped." + droppeddeps=yes + ;; + esac + ;; + esac + versuffix=$versuffix_save + major=$major_save + release=$release_save + libname=$libname_save + name=$name_save + + case $host in + *-*-rhapsody* | *-*-darwin1.[012]) + # On Rhapsody replace the C library with the System framework + newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'` + ;; + esac + + if test yes = "$droppeddeps"; then + if test yes = "$module"; then + echo + echo "*** Warning: libtool could not satisfy all declared inter-library" + $ECHO "*** dependencies of module $libname. Therefore, libtool will create" + echo "*** a static module, that should work as long as the dlopening" + echo "*** application is linked with the -dlopen flag." + if test -z "$global_symbol_pipe"; then + echo + echo "*** However, this would only work if libtool was able to extract symbol" + echo "*** lists from a program, using 'nm' or equivalent, but libtool could" + echo "*** not find such a program. So, this module is probably useless." + echo "*** 'nm' from GNU binutils and a full rebuild may help." + fi + if test no = "$build_old_libs"; then + oldlibs=$output_objdir/$libname.$libext + build_libtool_libs=module + build_old_libs=yes + else + build_libtool_libs=no + fi + else + echo "*** The inter-library dependencies that have been dropped here will be" + echo "*** automatically added whenever a program is linked with this library" + echo "*** or is declared to -dlopen it." + + if test no = "$allow_undefined"; then + echo + echo "*** Since this library must not contain undefined symbols," + echo "*** because either the platform does not support them or" + echo "*** it was explicitly requested with -no-undefined," + echo "*** libtool will only create a static version of it." + if test no = "$build_old_libs"; then + oldlibs=$output_objdir/$libname.$libext + build_libtool_libs=module + build_old_libs=yes + else + build_libtool_libs=no + fi + fi + fi + fi + # Done checking deplibs! + deplibs=$newdeplibs + fi + # Time to change all our "foo.ltframework" stuff back to "-framework foo" + case $host in + *-*-darwin*) + newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` + new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` + deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` + ;; + esac + + # move library search paths that coincide with paths to not yet + # installed libraries to the beginning of the library search list + new_libs= + for path in $notinst_path; do + case " $new_libs " in + *" -L$path/$objdir "*) ;; + *) + case " $deplibs " in + *" -L$path/$objdir "*) + func_append new_libs " -L$path/$objdir" ;; + esac + ;; + esac + done + for deplib in $deplibs; do + case $deplib in + -L*) + case " $new_libs " in + *" $deplib "*) ;; + *) func_append new_libs " $deplib" ;; + esac + ;; + *) func_append new_libs " $deplib" ;; + esac + done + deplibs=$new_libs + + # All the library-specific variables (install_libdir is set above). + library_names= + old_library= + dlname= + + # Test again, we may have decided not to build it any more + if test yes = "$build_libtool_libs"; then + # Remove $wl instances when linking with ld. + # FIXME: should test the right _cmds variable. + case $archive_cmds in + *\$LD\ *) wl= ;; + esac + if test yes = "$hardcode_into_libs"; then + # Hardcode the library paths + hardcode_libdirs= + dep_rpath= + rpath=$finalize_rpath + test relink = "$opt_mode" || rpath=$compile_rpath$rpath + for libdir in $rpath; do + if test -n "$hardcode_libdir_flag_spec"; then + if test -n "$hardcode_libdir_separator"; then + func_replace_sysroot "$libdir" + libdir=$func_replace_sysroot_result + if test -z "$hardcode_libdirs"; then + hardcode_libdirs=$libdir + else + # Just accumulate the unique libdirs. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) + ;; + *) + func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" + ;; + esac + fi + else + eval flag=\"$hardcode_libdir_flag_spec\" + func_append dep_rpath " $flag" + fi + elif test -n "$runpath_var"; then + case "$perm_rpath " in + *" $libdir "*) ;; + *) func_append perm_rpath " $libdir" ;; + esac + fi + done + # Substitute the hardcoded libdirs into the rpath. + if test -n "$hardcode_libdir_separator" && + test -n "$hardcode_libdirs"; then + libdir=$hardcode_libdirs + eval "dep_rpath=\"$hardcode_libdir_flag_spec\"" + fi + if test -n "$runpath_var" && test -n "$perm_rpath"; then + # We should set the runpath_var. + rpath= + for dir in $perm_rpath; do + func_append rpath "$dir:" + done + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" + fi + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" + fi + + shlibpath=$finalize_shlibpath + test relink = "$opt_mode" || shlibpath=$compile_shlibpath$shlibpath + if test -n "$shlibpath"; then + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" + fi + + # Get the real and link names of the library. + eval shared_ext=\"$shrext_cmds\" + eval library_names=\"$library_names_spec\" + set dummy $library_names + shift + realname=$1 + shift + + if test -n "$soname_spec"; then + eval soname=\"$soname_spec\" + else + soname=$realname + fi + if test -z "$dlname"; then + dlname=$soname + fi + + lib=$output_objdir/$realname + linknames= + for link + do + func_append linknames " $link" + done + + # Use standard objects if they are pic + test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP` + test "X$libobjs" = "X " && libobjs= + + delfiles= + if test -n "$export_symbols" && test -n "$include_expsyms"; then + $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp" + export_symbols=$output_objdir/$libname.uexp + func_append delfiles " $export_symbols" + fi + + orig_export_symbols= + case $host_os in + cygwin* | mingw* | cegcc*) + if test -n "$export_symbols" && test -z "$export_symbols_regex"; then + # exporting using user supplied symfile + func_dll_def_p "$export_symbols" || { + # and it's NOT already a .def file. Must figure out + # which of the given symbols are data symbols and tag + # them as such. So, trigger use of export_symbols_cmds. + # export_symbols gets reassigned inside the "prepare + # the list of exported symbols" if statement, so the + # include_expsyms logic still works. + orig_export_symbols=$export_symbols + export_symbols= + always_export_symbols=yes + } + fi + ;; + esac + + # Prepare the list of exported symbols + if test -z "$export_symbols"; then + if test yes = "$always_export_symbols" || test -n "$export_symbols_regex"; then + func_verbose "generating symbol list for '$libname.la'" + export_symbols=$output_objdir/$libname.exp + $opt_dry_run || $RM $export_symbols + cmds=$export_symbols_cmds + save_ifs=$IFS; IFS='~' + for cmd1 in $cmds; do + IFS=$save_ifs + # Take the normal branch if the nm_file_list_spec branch + # doesn't work or if tool conversion is not needed. + case $nm_file_list_spec~$to_tool_file_cmd in + *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*) + try_normal_branch=yes + eval cmd=\"$cmd1\" + func_len " $cmd" + len=$func_len_result + ;; + *) + try_normal_branch=no + ;; + esac + if test yes = "$try_normal_branch" \ + && { test "$len" -lt "$max_cmd_len" \ + || test "$max_cmd_len" -le -1; } + then + func_show_eval "$cmd" 'exit $?' + skipped_export=false + elif test -n "$nm_file_list_spec"; then + func_basename "$output" + output_la=$func_basename_result + save_libobjs=$libobjs + save_output=$output + output=$output_objdir/$output_la.nm + func_to_tool_file "$output" + libobjs=$nm_file_list_spec$func_to_tool_file_result + func_append delfiles " $output" + func_verbose "creating $NM input file list: $output" + for obj in $save_libobjs; do + func_to_tool_file "$obj" + $ECHO "$func_to_tool_file_result" + done > "$output" + eval cmd=\"$cmd1\" + func_show_eval "$cmd" 'exit $?' + output=$save_output + libobjs=$save_libobjs + skipped_export=false + else + # The command line is too long to execute in one step. + func_verbose "using reloadable object file for export list..." + skipped_export=: + # Break out early, otherwise skipped_export may be + # set to false by a later but shorter cmd. + break + fi + done + IFS=$save_ifs + if test -n "$export_symbols_regex" && test : != "$skipped_export"; then + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' + func_show_eval '$MV "${export_symbols}T" "$export_symbols"' + fi + fi + fi + + if test -n "$export_symbols" && test -n "$include_expsyms"; then + tmp_export_symbols=$export_symbols + test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols + $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' + fi + + if test : != "$skipped_export" && test -n "$orig_export_symbols"; then + # The given exports_symbols file has to be filtered, so filter it. + func_verbose "filter symbol list for '$libname.la' to tag DATA exports" + # FIXME: $output_objdir/$libname.filter potentially contains lots of + # 's' commands, which not all seds can handle. GNU sed should be fine + # though. Also, the filter scales superlinearly with the number of + # global variables. join(1) would be nice here, but unfortunately + # isn't a blessed tool. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter + func_append delfiles " $export_symbols $output_objdir/$libname.filter" + export_symbols=$output_objdir/$libname.def + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols + fi + + tmp_deplibs= + for test_deplib in $deplibs; do + case " $convenience " in + *" $test_deplib "*) ;; + *) + func_append tmp_deplibs " $test_deplib" + ;; + esac + done + deplibs=$tmp_deplibs + + if test -n "$convenience"; then + if test -n "$whole_archive_flag_spec" && + test yes = "$compiler_needs_object" && + test -z "$libobjs"; then + # extract the archives, so we have objects to list. + # TODO: could optimize this to just extract one archive. + whole_archive_flag_spec= + fi + if test -n "$whole_archive_flag_spec"; then + save_libobjs=$libobjs + eval libobjs=\"\$libobjs $whole_archive_flag_spec\" + test "X$libobjs" = "X " && libobjs= + else + gentop=$output_objdir/${outputname}x + func_append generated " $gentop" + + func_extract_archives $gentop $convenience + func_append libobjs " $func_extract_archives_result" + test "X$libobjs" = "X " && libobjs= + fi + fi + + if test yes = "$thread_safe" && test -n "$thread_safe_flag_spec"; then + eval flag=\"$thread_safe_flag_spec\" + func_append linker_flags " $flag" + fi + + # Make a backup of the uninstalled library when relinking + if test relink = "$opt_mode"; then + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $? + fi + + # Do each of the archive commands. + if test yes = "$module" && test -n "$module_cmds"; then + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then + eval test_cmds=\"$module_expsym_cmds\" + cmds=$module_expsym_cmds + else + eval test_cmds=\"$module_cmds\" + cmds=$module_cmds + fi + else + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then + eval test_cmds=\"$archive_expsym_cmds\" + cmds=$archive_expsym_cmds + else + eval test_cmds=\"$archive_cmds\" + cmds=$archive_cmds + fi + fi + + if test : != "$skipped_export" && + func_len " $test_cmds" && + len=$func_len_result && + test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then + : + else + # The command line is too long to link in one step, link piecewise + # or, if using GNU ld and skipped_export is not :, use a linker + # script. + + # Save the value of $output and $libobjs because we want to + # use them later. If we have whole_archive_flag_spec, we + # want to use save_libobjs as it was before + # whole_archive_flag_spec was expanded, because we can't + # assume the linker understands whole_archive_flag_spec. + # This may have to be revisited, in case too many + # convenience libraries get linked in and end up exceeding + # the spec. + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then + save_libobjs=$libobjs + fi + save_output=$output + func_basename "$output" + output_la=$func_basename_result + + # Clear the reloadable object creation command queue and + # initialize k to one. + test_cmds= + concat_cmds= + objlist= + last_robj= + k=1 + + if test -n "$save_libobjs" && test : != "$skipped_export" && test yes = "$with_gnu_ld"; then + output=$output_objdir/$output_la.lnkscript + func_verbose "creating GNU ld script: $output" + echo 'INPUT (' > $output + for obj in $save_libobjs + do + func_to_tool_file "$obj" + $ECHO "$func_to_tool_file_result" >> $output + done + echo ')' >> $output + func_append delfiles " $output" + func_to_tool_file "$output" + output=$func_to_tool_file_result + elif test -n "$save_libobjs" && test : != "$skipped_export" && test -n "$file_list_spec"; then + output=$output_objdir/$output_la.lnk + func_verbose "creating linker input file list: $output" + : > $output + set x $save_libobjs + shift + firstobj= + if test yes = "$compiler_needs_object"; then + firstobj="$1 " + shift + fi + for obj + do + func_to_tool_file "$obj" + $ECHO "$func_to_tool_file_result" >> $output + done + func_append delfiles " $output" + func_to_tool_file "$output" + output=$firstobj\"$file_list_spec$func_to_tool_file_result\" + else + if test -n "$save_libobjs"; then + func_verbose "creating reloadable object files..." + output=$output_objdir/$output_la-$k.$objext + eval test_cmds=\"$reload_cmds\" + func_len " $test_cmds" + len0=$func_len_result + len=$len0 + + # Loop over the list of objects to be linked. + for obj in $save_libobjs + do + func_len " $obj" + func_arith $len + $func_len_result + len=$func_arith_result + if test -z "$objlist" || + test "$len" -lt "$max_cmd_len"; then + func_append objlist " $obj" + else + # The command $test_cmds is almost too long, add a + # command to the queue. + if test 1 -eq "$k"; then + # The first file doesn't have a previous command to add. + reload_objs=$objlist + eval concat_cmds=\"$reload_cmds\" + else + # All subsequent reloadable object files will link in + # the last one created. + reload_objs="$objlist $last_robj" + eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\" + fi + last_robj=$output_objdir/$output_la-$k.$objext + func_arith $k + 1 + k=$func_arith_result + output=$output_objdir/$output_la-$k.$objext + objlist=" $obj" + func_len " $last_robj" + func_arith $len0 + $func_len_result + len=$func_arith_result + fi + done + # Handle the remaining objects by creating one last + # reloadable object file. All subsequent reloadable object + # files will link in the last one created. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~ + reload_objs="$objlist $last_robj" + eval concat_cmds=\"\$concat_cmds$reload_cmds\" + if test -n "$last_robj"; then + eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" + fi + func_append delfiles " $output" + + else + output= + fi + + ${skipped_export-false} && { + func_verbose "generating symbol list for '$libname.la'" + export_symbols=$output_objdir/$libname.exp + $opt_dry_run || $RM $export_symbols + libobjs=$output + # Append the command to create the export file. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~ + eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\" + if test -n "$last_robj"; then + eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" + fi + } + + test -n "$save_libobjs" && + func_verbose "creating a temporary reloadable object file: $output" + + # Loop through the commands generated above and execute them. + save_ifs=$IFS; IFS='~' + for cmd in $concat_cmds; do + IFS=$save_ifs + $opt_quiet || { + func_quote_for_expand "$cmd" + eval "func_echo $func_quote_for_expand_result" + } + $opt_dry_run || eval "$cmd" || { + lt_exit=$? + + # Restore the uninstalled library and exit + if test relink = "$opt_mode"; then + ( cd "$output_objdir" && \ + $RM "${realname}T" && \ + $MV "${realname}U" "$realname" ) + fi + + exit $lt_exit + } + done + IFS=$save_ifs + + if test -n "$export_symbols_regex" && ${skipped_export-false}; then + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' + func_show_eval '$MV "${export_symbols}T" "$export_symbols"' + fi + fi + + ${skipped_export-false} && { + if test -n "$export_symbols" && test -n "$include_expsyms"; then + tmp_export_symbols=$export_symbols + test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols + $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' + fi + + if test -n "$orig_export_symbols"; then + # The given exports_symbols file has to be filtered, so filter it. + func_verbose "filter symbol list for '$libname.la' to tag DATA exports" + # FIXME: $output_objdir/$libname.filter potentially contains lots of + # 's' commands, which not all seds can handle. GNU sed should be fine + # though. Also, the filter scales superlinearly with the number of + # global variables. join(1) would be nice here, but unfortunately + # isn't a blessed tool. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter + func_append delfiles " $export_symbols $output_objdir/$libname.filter" + export_symbols=$output_objdir/$libname.def + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols + fi + } + + libobjs=$output + # Restore the value of output. + output=$save_output + + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then + eval libobjs=\"\$libobjs $whole_archive_flag_spec\" + test "X$libobjs" = "X " && libobjs= + fi + # Expand the library linking commands again to reset the + # value of $libobjs for piecewise linking. + + # Do each of the archive commands. + if test yes = "$module" && test -n "$module_cmds"; then + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then + cmds=$module_expsym_cmds + else + cmds=$module_cmds + fi + else + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then + cmds=$archive_expsym_cmds + else + cmds=$archive_cmds + fi + fi + fi + + if test -n "$delfiles"; then + # Append the command to remove temporary files to $cmds. + eval cmds=\"\$cmds~\$RM $delfiles\" + fi + + # Add any objects from preloaded convenience libraries + if test -n "$dlprefiles"; then + gentop=$output_objdir/${outputname}x + func_append generated " $gentop" + + func_extract_archives $gentop $dlprefiles + func_append libobjs " $func_extract_archives_result" + test "X$libobjs" = "X " && libobjs= + fi + + save_ifs=$IFS; IFS='~' + for cmd in $cmds; do + IFS=$sp$nl + eval cmd=\"$cmd\" + IFS=$save_ifs + $opt_quiet || { + func_quote_for_expand "$cmd" + eval "func_echo $func_quote_for_expand_result" + } + $opt_dry_run || eval "$cmd" || { + lt_exit=$? + + # Restore the uninstalled library and exit + if test relink = "$opt_mode"; then + ( cd "$output_objdir" && \ + $RM "${realname}T" && \ + $MV "${realname}U" "$realname" ) + fi + + exit $lt_exit + } + done + IFS=$save_ifs + + # Restore the uninstalled library and exit + if test relink = "$opt_mode"; then + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $? + + if test -n "$convenience"; then + if test -z "$whole_archive_flag_spec"; then + func_show_eval '${RM}r "$gentop"' + fi + fi + + exit $EXIT_SUCCESS + fi + + # Create links to the real library. + for linkname in $linknames; do + if test "$realname" != "$linkname"; then + func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?' + fi + done + + # If -module or -export-dynamic was specified, set the dlname. + if test yes = "$module" || test yes = "$export_dynamic"; then + # On all known operating systems, these are identical. + dlname=$soname + fi + fi + ;; + + obj) + if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then + func_warning "'-dlopen' is ignored for objects" + fi + + case " $deplibs" in + *\ -l* | *\ -L*) + func_warning "'-l' and '-L' are ignored for objects" ;; + esac + + test -n "$rpath" && \ + func_warning "'-rpath' is ignored for objects" + + test -n "$xrpath" && \ + func_warning "'-R' is ignored for objects" + + test -n "$vinfo" && \ + func_warning "'-version-info' is ignored for objects" + + test -n "$release" && \ + func_warning "'-release' is ignored for objects" + + case $output in + *.lo) + test -n "$objs$old_deplibs" && \ + func_fatal_error "cannot build library object '$output' from non-libtool objects" + + libobj=$output + func_lo2o "$libobj" + obj=$func_lo2o_result + ;; + *) + libobj= + obj=$output + ;; + esac + + # Delete the old objects. + $opt_dry_run || $RM $obj $libobj + + # Objects from convenience libraries. This assumes + # single-version convenience libraries. Whenever we create + # different ones for PIC/non-PIC, this we'll have to duplicate + # the extraction. + reload_conv_objs= + gentop= + # if reload_cmds runs $LD directly, get rid of -Wl from + # whole_archive_flag_spec and hope we can get by with turning comma + # into space. + case $reload_cmds in + *\$LD[\ \$]*) wl= ;; + esac + if test -n "$convenience"; then + if test -n "$whole_archive_flag_spec"; then + eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" + test -n "$wl" || tmp_whole_archive_flags=`$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'` + reload_conv_objs=$reload_objs\ $tmp_whole_archive_flags + else + gentop=$output_objdir/${obj}x + func_append generated " $gentop" + + func_extract_archives $gentop $convenience + reload_conv_objs="$reload_objs $func_extract_archives_result" + fi + fi + + # If we're not building shared, we need to use non_pic_objs + test yes = "$build_libtool_libs" || libobjs=$non_pic_objects + + # Create the old-style object. + reload_objs=$objs$old_deplibs' '`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; /\.lib$/d; $lo2o" | $NL2SP`' '$reload_conv_objs + + output=$obj + func_execute_cmds "$reload_cmds" 'exit $?' + + # Exit if we aren't doing a library object file. + if test -z "$libobj"; then + if test -n "$gentop"; then + func_show_eval '${RM}r "$gentop"' + fi + + exit $EXIT_SUCCESS + fi + + test yes = "$build_libtool_libs" || { + if test -n "$gentop"; then + func_show_eval '${RM}r "$gentop"' + fi + + # Create an invalid libtool object if no PIC, so that we don't + # accidentally link it into a program. + # $show "echo timestamp > $libobj" + # $opt_dry_run || eval "echo timestamp > $libobj" || exit $? + exit $EXIT_SUCCESS + } + + if test -n "$pic_flag" || test default != "$pic_mode"; then + # Only do commands if we really have different PIC objects. + reload_objs="$libobjs $reload_conv_objs" + output=$libobj + func_execute_cmds "$reload_cmds" 'exit $?' + fi + + if test -n "$gentop"; then + func_show_eval '${RM}r "$gentop"' + fi + + exit $EXIT_SUCCESS + ;; + + prog) + case $host in + *cygwin*) func_stripname '' '.exe' "$output" + output=$func_stripname_result.exe;; + esac + test -n "$vinfo" && \ + func_warning "'-version-info' is ignored for programs" + + test -n "$release" && \ + func_warning "'-release' is ignored for programs" + + $preload \ + && test unknown,unknown,unknown = "$dlopen_support,$dlopen_self,$dlopen_self_static" \ + && func_warning "'LT_INIT([dlopen])' not used. Assuming no dlopen support." + + case $host in + *-*-rhapsody* | *-*-darwin1.[012]) + # On Rhapsody replace the C library is the System framework + compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'` + finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'` + ;; + esac + + case $host in + *-*-darwin*) + # Don't allow lazy linking, it breaks C++ global constructors + # But is supposedly fixed on 10.4 or later (yay!). + if test CXX = "$tagname"; then + case ${MACOSX_DEPLOYMENT_TARGET-10.0} in + 10.[0123]) + func_append compile_command " $wl-bind_at_load" + func_append finalize_command " $wl-bind_at_load" + ;; + esac + fi + # Time to change all our "foo.ltframework" stuff back to "-framework foo" + compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` + finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` + ;; + esac + + + # move library search paths that coincide with paths to not yet + # installed libraries to the beginning of the library search list + new_libs= + for path in $notinst_path; do + case " $new_libs " in + *" -L$path/$objdir "*) ;; + *) + case " $compile_deplibs " in + *" -L$path/$objdir "*) + func_append new_libs " -L$path/$objdir" ;; + esac + ;; + esac + done + for deplib in $compile_deplibs; do + case $deplib in + -L*) + case " $new_libs " in + *" $deplib "*) ;; + *) func_append new_libs " $deplib" ;; + esac + ;; + *) func_append new_libs " $deplib" ;; + esac + done + compile_deplibs=$new_libs + + + func_append compile_command " $compile_deplibs" + func_append finalize_command " $finalize_deplibs" + + if test -n "$rpath$xrpath"; then + # If the user specified any rpath flags, then add them. + for libdir in $rpath $xrpath; do + # This is the magic to use -rpath. + case "$finalize_rpath " in + *" $libdir "*) ;; + *) func_append finalize_rpath " $libdir" ;; + esac + done + fi + + # Now hardcode the library paths + rpath= + hardcode_libdirs= + for libdir in $compile_rpath $finalize_rpath; do + if test -n "$hardcode_libdir_flag_spec"; then + if test -n "$hardcode_libdir_separator"; then + if test -z "$hardcode_libdirs"; then + hardcode_libdirs=$libdir + else + # Just accumulate the unique libdirs. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) + ;; + *) + func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" + ;; + esac + fi + else + eval flag=\"$hardcode_libdir_flag_spec\" + func_append rpath " $flag" + fi + elif test -n "$runpath_var"; then + case "$perm_rpath " in + *" $libdir "*) ;; + *) func_append perm_rpath " $libdir" ;; + esac + fi + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) + testbindir=`$ECHO "$libdir" | $SED -e 's*/lib$*/bin*'` + case :$dllsearchpath: in + *":$libdir:"*) ;; + ::) dllsearchpath=$libdir;; + *) func_append dllsearchpath ":$libdir";; + esac + case :$dllsearchpath: in + *":$testbindir:"*) ;; + ::) dllsearchpath=$testbindir;; + *) func_append dllsearchpath ":$testbindir";; + esac + ;; + esac + done + # Substitute the hardcoded libdirs into the rpath. + if test -n "$hardcode_libdir_separator" && + test -n "$hardcode_libdirs"; then + libdir=$hardcode_libdirs + eval rpath=\" $hardcode_libdir_flag_spec\" + fi + compile_rpath=$rpath + + rpath= + hardcode_libdirs= + for libdir in $finalize_rpath; do + if test -n "$hardcode_libdir_flag_spec"; then + if test -n "$hardcode_libdir_separator"; then + if test -z "$hardcode_libdirs"; then + hardcode_libdirs=$libdir + else + # Just accumulate the unique libdirs. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) + ;; + *) + func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" + ;; + esac + fi + else + eval flag=\"$hardcode_libdir_flag_spec\" + func_append rpath " $flag" + fi + elif test -n "$runpath_var"; then + case "$finalize_perm_rpath " in + *" $libdir "*) ;; + *) func_append finalize_perm_rpath " $libdir" ;; + esac + fi + done + # Substitute the hardcoded libdirs into the rpath. + if test -n "$hardcode_libdir_separator" && + test -n "$hardcode_libdirs"; then + libdir=$hardcode_libdirs + eval rpath=\" $hardcode_libdir_flag_spec\" + fi + finalize_rpath=$rpath + + if test -n "$libobjs" && test yes = "$build_old_libs"; then + # Transform all the library objects into standard objects. + compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP` + finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP` + fi + + func_generate_dlsyms "$outputname" "@PROGRAM@" false + + # template prelinking step + if test -n "$prelink_cmds"; then + func_execute_cmds "$prelink_cmds" 'exit $?' + fi + + wrappers_required=: + case $host in + *cegcc* | *mingw32ce*) + # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway. + wrappers_required=false + ;; + *cygwin* | *mingw* ) + test yes = "$build_libtool_libs" || wrappers_required=false + ;; + *) + if test no = "$need_relink" || test yes != "$build_libtool_libs"; then + wrappers_required=false + fi + ;; + esac + $wrappers_required || { + # Replace the output file specification. + compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'` + link_command=$compile_command$compile_rpath + + # We have no uninstalled library dependencies, so finalize right now. + exit_status=0 + func_show_eval "$link_command" 'exit_status=$?' + + if test -n "$postlink_cmds"; then + func_to_tool_file "$output" + postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` + func_execute_cmds "$postlink_cmds" 'exit $?' + fi + + # Delete the generated files. + if test -f "$output_objdir/${outputname}S.$objext"; then + func_show_eval '$RM "$output_objdir/${outputname}S.$objext"' + fi + + exit $exit_status + } + + if test -n "$compile_shlibpath$finalize_shlibpath"; then + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" + fi + if test -n "$finalize_shlibpath"; then + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" + fi + + compile_var= + finalize_var= + if test -n "$runpath_var"; then + if test -n "$perm_rpath"; then + # We should set the runpath_var. + rpath= + for dir in $perm_rpath; do + func_append rpath "$dir:" + done + compile_var="$runpath_var=\"$rpath\$$runpath_var\" " + fi + if test -n "$finalize_perm_rpath"; then + # We should set the runpath_var. + rpath= + for dir in $finalize_perm_rpath; do + func_append rpath "$dir:" + done + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " + fi + fi + + if test yes = "$no_install"; then + # We don't need to create a wrapper script. + link_command=$compile_var$compile_command$compile_rpath + # Replace the output file specification. + link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'` + # Delete the old output file. + $opt_dry_run || $RM $output + # Link the executable and exit + func_show_eval "$link_command" 'exit $?' + + if test -n "$postlink_cmds"; then + func_to_tool_file "$output" + postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` + func_execute_cmds "$postlink_cmds" 'exit $?' + fi + + exit $EXIT_SUCCESS + fi + + case $hardcode_action,$fast_install in + relink,*) + # Fast installation is not supported + link_command=$compile_var$compile_command$compile_rpath + relink_command=$finalize_var$finalize_command$finalize_rpath + + func_warning "this platform does not like uninstalled shared libraries" + func_warning "'$output' will be relinked during installation" + ;; + *,yes) + link_command=$finalize_var$compile_command$finalize_rpath + relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'` + ;; + *,no) + link_command=$compile_var$compile_command$compile_rpath + relink_command=$finalize_var$finalize_command$finalize_rpath + ;; + *,needless) + link_command=$finalize_var$compile_command$finalize_rpath + relink_command= + ;; + esac + + # Replace the output file specification. + link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` + + # Delete the old output files. + $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname + + func_show_eval "$link_command" 'exit $?' + + if test -n "$postlink_cmds"; then + func_to_tool_file "$output_objdir/$outputname" + postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` + func_execute_cmds "$postlink_cmds" 'exit $?' + fi + + # Now create the wrapper script. + func_verbose "creating $output" + + # Quote the relink command for shipping. + if test -n "$relink_command"; then + # Preserve any variables that may affect compiler behavior + for var in $variables_saved_for_relink; do + if eval test -z \"\${$var+set}\"; then + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" + elif eval var_value=\$$var; test -z "$var_value"; then + relink_command="$var=; export $var; $relink_command" + else + func_quote_for_eval "$var_value" + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" + fi + done + relink_command="(cd `pwd`; $relink_command)" + relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` + fi + + # Only actually do things if not in dry run mode. + $opt_dry_run || { + # win32 will think the script is a binary if it has + # a .exe suffix, so we strip it off here. + case $output in + *.exe) func_stripname '' '.exe' "$output" + output=$func_stripname_result ;; + esac + # test for cygwin because mv fails w/o .exe extensions + case $host in + *cygwin*) + exeext=.exe + func_stripname '' '.exe' "$outputname" + outputname=$func_stripname_result ;; + *) exeext= ;; + esac + case $host in + *cygwin* | *mingw* ) + func_dirname_and_basename "$output" "" "." + output_name=$func_basename_result + output_path=$func_dirname_result + cwrappersource=$output_path/$objdir/lt-$output_name.c + cwrapper=$output_path/$output_name.exe + $RM $cwrappersource $cwrapper + trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 + + func_emit_cwrapperexe_src > $cwrappersource + + # The wrapper executable is built using the $host compiler, + # because it contains $host paths and files. If cross- + # compiling, it, like the target executable, must be + # executed on the $host or under an emulation environment. + $opt_dry_run || { + $LTCC $LTCFLAGS -o $cwrapper $cwrappersource + $STRIP $cwrapper + } + + # Now, create the wrapper script for func_source use: + func_ltwrapper_scriptname $cwrapper + $RM $func_ltwrapper_scriptname_result + trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15 + $opt_dry_run || { + # note: this script will not be executed, so do not chmod. + if test "x$build" = "x$host"; then + $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result + else + func_emit_wrapper no > $func_ltwrapper_scriptname_result + fi + } + ;; + * ) + $RM $output + trap "$RM $output; exit $EXIT_FAILURE" 1 2 15 + + func_emit_wrapper no > $output + chmod +x $output + ;; + esac + } + exit $EXIT_SUCCESS + ;; + esac + + # See if we need to build an old-fashioned archive. + for oldlib in $oldlibs; do + + case $build_libtool_libs in + convenience) + oldobjs="$libobjs_save $symfileobj" + addlibs=$convenience + build_libtool_libs=no + ;; + module) + oldobjs=$libobjs_save + addlibs=$old_convenience + build_libtool_libs=no + ;; + *) + oldobjs="$old_deplibs $non_pic_objects" + $preload && test -f "$symfileobj" \ + && func_append oldobjs " $symfileobj" + addlibs=$old_convenience + ;; + esac + + if test -n "$addlibs"; then + gentop=$output_objdir/${outputname}x + func_append generated " $gentop" + + func_extract_archives $gentop $addlibs + func_append oldobjs " $func_extract_archives_result" + fi + + # Do each command in the archive commands. + if test -n "$old_archive_from_new_cmds" && test yes = "$build_libtool_libs"; then + cmds=$old_archive_from_new_cmds + else + + # Add any objects from preloaded convenience libraries + if test -n "$dlprefiles"; then + gentop=$output_objdir/${outputname}x + func_append generated " $gentop" + + func_extract_archives $gentop $dlprefiles + func_append oldobjs " $func_extract_archives_result" + fi + + # POSIX demands no paths to be encoded in archives. We have + # to avoid creating archives with duplicate basenames if we + # might have to extract them afterwards, e.g., when creating a + # static archive out of a convenience library, or when linking + # the entirety of a libtool archive into another (currently + # not supported by libtool). + if (for obj in $oldobjs + do + func_basename "$obj" + $ECHO "$func_basename_result" + done | sort | sort -uc >/dev/null 2>&1); then + : + else + echo "copying selected object files to avoid basename conflicts..." + gentop=$output_objdir/${outputname}x + func_append generated " $gentop" + func_mkdir_p "$gentop" + save_oldobjs=$oldobjs + oldobjs= + counter=1 + for obj in $save_oldobjs + do + func_basename "$obj" + objbase=$func_basename_result + case " $oldobjs " in + " ") oldobjs=$obj ;; + *[\ /]"$objbase "*) + while :; do + # Make sure we don't pick an alternate name that also + # overlaps. + newobj=lt$counter-$objbase + func_arith $counter + 1 + counter=$func_arith_result + case " $oldobjs " in + *[\ /]"$newobj "*) ;; + *) if test ! -f "$gentop/$newobj"; then break; fi ;; + esac + done + func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" + func_append oldobjs " $gentop/$newobj" + ;; + *) func_append oldobjs " $obj" ;; + esac + done + fi + func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 + tool_oldlib=$func_to_tool_file_result + eval cmds=\"$old_archive_cmds\" + + func_len " $cmds" + len=$func_len_result + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then + cmds=$old_archive_cmds + elif test -n "$archiver_list_spec"; then + func_verbose "using command file archive linking..." + for obj in $oldobjs + do + func_to_tool_file "$obj" + $ECHO "$func_to_tool_file_result" + done > $output_objdir/$libname.libcmd + func_to_tool_file "$output_objdir/$libname.libcmd" + oldobjs=" $archiver_list_spec$func_to_tool_file_result" + cmds=$old_archive_cmds + else + # the command line is too long to link in one step, link in parts + func_verbose "using piecewise archive linking..." + save_RANLIB=$RANLIB + RANLIB=: + objlist= + concat_cmds= + save_oldobjs=$oldobjs + oldobjs= + # Is there a better way of finding the last object in the list? + for obj in $save_oldobjs + do + last_oldobj=$obj + done + eval test_cmds=\"$old_archive_cmds\" + func_len " $test_cmds" + len0=$func_len_result + len=$len0 + for obj in $save_oldobjs + do + func_len " $obj" + func_arith $len + $func_len_result + len=$func_arith_result + func_append objlist " $obj" + if test "$len" -lt "$max_cmd_len"; then + : + else + # the above command should be used before it gets too long + oldobjs=$objlist + if test "$obj" = "$last_oldobj"; then + RANLIB=$save_RANLIB + fi + test -z "$concat_cmds" || concat_cmds=$concat_cmds~ + eval concat_cmds=\"\$concat_cmds$old_archive_cmds\" + objlist= + len=$len0 + fi + done + RANLIB=$save_RANLIB + oldobjs=$objlist + if test -z "$oldobjs"; then + eval cmds=\"\$concat_cmds\" + else + eval cmds=\"\$concat_cmds~\$old_archive_cmds\" + fi + fi + fi + func_execute_cmds "$cmds" 'exit $?' + done + + test -n "$generated" && \ + func_show_eval "${RM}r$generated" + + # Now create the libtool archive. + case $output in + *.la) + old_library= + test yes = "$build_old_libs" && old_library=$libname.$libext + func_verbose "creating $output" + + # Preserve any variables that may affect compiler behavior + for var in $variables_saved_for_relink; do + if eval test -z \"\${$var+set}\"; then + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" + elif eval var_value=\$$var; test -z "$var_value"; then + relink_command="$var=; export $var; $relink_command" + else + func_quote_for_eval "$var_value" + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" + fi + done + # Quote the link command for shipping. + relink_command="(cd `pwd`; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" + relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` + if test yes = "$hardcode_automatic"; then + relink_command= + fi + + # Only create the output if not a dry run. + $opt_dry_run || { + for installed in no yes; do + if test yes = "$installed"; then + if test -z "$install_libdir"; then + break + fi + output=$output_objdir/${outputname}i + # Replace all uninstalled libtool libraries with the installed ones + newdependency_libs= + for deplib in $dependency_libs; do + case $deplib in + *.la) + func_basename "$deplib" + name=$func_basename_result + func_resolve_sysroot "$deplib" + eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result` + test -z "$libdir" && \ + func_fatal_error "'$deplib' is not a valid libtool archive" + func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name" + ;; + -L*) + func_stripname -L '' "$deplib" + func_replace_sysroot "$func_stripname_result" + func_append newdependency_libs " -L$func_replace_sysroot_result" + ;; + -R*) + func_stripname -R '' "$deplib" + func_replace_sysroot "$func_stripname_result" + func_append newdependency_libs " -R$func_replace_sysroot_result" + ;; + *) func_append newdependency_libs " $deplib" ;; + esac + done + dependency_libs=$newdependency_libs + newdlfiles= + + for lib in $dlfiles; do + case $lib in + *.la) + func_basename "$lib" + name=$func_basename_result + eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib` + test -z "$libdir" && \ + func_fatal_error "'$lib' is not a valid libtool archive" + func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name" + ;; + *) func_append newdlfiles " $lib" ;; + esac + done + dlfiles=$newdlfiles + newdlprefiles= + for lib in $dlprefiles; do + case $lib in + *.la) + # Only pass preopened files to the pseudo-archive (for + # eventual linking with the app. that links it) if we + # didn't already link the preopened objects directly into + # the library: + func_basename "$lib" + name=$func_basename_result + eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib` + test -z "$libdir" && \ + func_fatal_error "'$lib' is not a valid libtool archive" + func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name" + ;; + esac + done + dlprefiles=$newdlprefiles + else + newdlfiles= + for lib in $dlfiles; do + case $lib in + [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;; + *) abs=`pwd`"/$lib" ;; + esac + func_append newdlfiles " $abs" + done + dlfiles=$newdlfiles + newdlprefiles= + for lib in $dlprefiles; do + case $lib in + [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;; + *) abs=`pwd`"/$lib" ;; + esac + func_append newdlprefiles " $abs" + done + dlprefiles=$newdlprefiles + fi + $RM $output + # place dlname in correct position for cygwin + # In fact, it would be nice if we could use this code for all target + # systems that can't hard-code library paths into their executables + # and that have no shared library path variable independent of PATH, + # but it turns out we can't easily determine that from inspecting + # libtool variables, so we have to hard-code the OSs to which it + # applies here; at the moment, that means platforms that use the PE + # object format with DLL files. See the long comment at the top of + # tests/bindir.at for full details. + tdlname=$dlname + case $host,$output,$installed,$module,$dlname in + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) + # If a -bindir argument was supplied, place the dll there. + if test -n "$bindir"; then + func_relative_path "$install_libdir" "$bindir" + tdlname=$func_relative_path_result/$dlname + else + # Otherwise fall back on heuristic. + tdlname=../bin/$dlname + fi + ;; + esac + $ECHO > $output "\ +# $outputname - a libtool library file +# Generated by $PROGRAM (GNU $PACKAGE) $VERSION +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# The name that we can dlopen(3). +dlname='$tdlname' + +# Names of this library. +library_names='$library_names' + +# The name of the static archive. +old_library='$old_library' + +# Linker flags that cannot go in dependency_libs. +inherited_linker_flags='$new_inherited_linker_flags' + +# Libraries that this one depends upon. +dependency_libs='$dependency_libs' + +# Names of additional weak libraries provided by this library +weak_library_names='$weak_libs' + +# Version information for $libname. +current=$current +age=$age +revision=$revision + +# Is this an already installed library? +installed=$installed + +# Should we warn about portability when linking against -modules? +shouldnotlink=$module + +# Files to dlopen/dlpreopen +dlopen='$dlfiles' +dlpreopen='$dlprefiles' + +# Directory that this library needs to be installed in: +libdir='$install_libdir'" + if test no,yes = "$installed,$need_relink"; then + $ECHO >> $output "\ +relink_command=\"$relink_command\"" + fi + done + } + + # Do a symbolic link so that the libtool archive can be found in + # LD_LIBRARY_PATH before the program is installed. + func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?' + ;; + esac + exit $EXIT_SUCCESS +} + +if test link = "$opt_mode" || test relink = "$opt_mode"; then + func_mode_link ${1+"$@"} +fi + + +# func_mode_uninstall arg... +func_mode_uninstall () +{ + $debug_cmd + + RM=$nonopt + files= + rmforce=false + exit_status=0 + + # This variable tells wrapper scripts just to set variables rather + # than running their programs. + libtool_install_magic=$magic + + for arg + do + case $arg in + -f) func_append RM " $arg"; rmforce=: ;; + -*) func_append RM " $arg" ;; + *) func_append files " $arg" ;; + esac + done + + test -z "$RM" && \ + func_fatal_help "you must specify an RM program" + + rmdirs= + + for file in $files; do + func_dirname "$file" "" "." + dir=$func_dirname_result + if test . = "$dir"; then + odir=$objdir + else + odir=$dir/$objdir + fi + func_basename "$file" + name=$func_basename_result + test uninstall = "$opt_mode" && odir=$dir + + # Remember odir for removal later, being careful to avoid duplicates + if test clean = "$opt_mode"; then + case " $rmdirs " in + *" $odir "*) ;; + *) func_append rmdirs " $odir" ;; + esac + fi + + # Don't error if the file doesn't exist and rm -f was used. + if { test -L "$file"; } >/dev/null 2>&1 || + { test -h "$file"; } >/dev/null 2>&1 || + test -f "$file"; then + : + elif test -d "$file"; then + exit_status=1 + continue + elif $rmforce; then + continue + fi + + rmfiles=$file + + case $name in + *.la) + # Possibly a libtool archive, so verify it. + if func_lalib_p "$file"; then + func_source $dir/$name + + # Delete the libtool libraries and symlinks. + for n in $library_names; do + func_append rmfiles " $odir/$n" + done + test -n "$old_library" && func_append rmfiles " $odir/$old_library" + + case $opt_mode in + clean) + case " $library_names " in + *" $dlname "*) ;; + *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;; + esac + test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i" + ;; + uninstall) + if test -n "$library_names"; then + # Do each command in the postuninstall commands. + func_execute_cmds "$postuninstall_cmds" '$rmforce || exit_status=1' + fi + + if test -n "$old_library"; then + # Do each command in the old_postuninstall commands. + func_execute_cmds "$old_postuninstall_cmds" '$rmforce || exit_status=1' + fi + # FIXME: should reinstall the best remaining shared library. + ;; + esac + fi + ;; + + *.lo) + # Possibly a libtool object, so verify it. + if func_lalib_p "$file"; then + + # Read the .lo file + func_source $dir/$name + + # Add PIC object to the list of files to remove. + if test -n "$pic_object" && test none != "$pic_object"; then + func_append rmfiles " $dir/$pic_object" + fi + + # Add non-PIC object to the list of files to remove. + if test -n "$non_pic_object" && test none != "$non_pic_object"; then + func_append rmfiles " $dir/$non_pic_object" + fi + fi + ;; + + *) + if test clean = "$opt_mode"; then + noexename=$name + case $file in + *.exe) + func_stripname '' '.exe' "$file" + file=$func_stripname_result + func_stripname '' '.exe' "$name" + noexename=$func_stripname_result + # $file with .exe has already been added to rmfiles, + # add $file without .exe + func_append rmfiles " $file" + ;; + esac + # Do a test to see if this is a libtool program. + if func_ltwrapper_p "$file"; then + if func_ltwrapper_executable_p "$file"; then + func_ltwrapper_scriptname "$file" + relink_command= + func_source $func_ltwrapper_scriptname_result + func_append rmfiles " $func_ltwrapper_scriptname_result" + else + relink_command= + func_source $dir/$noexename + fi + + # note $name still contains .exe if it was in $file originally + # as does the version of $file that was added into $rmfiles + func_append rmfiles " $odir/$name $odir/${name}S.$objext" + if test yes = "$fast_install" && test -n "$relink_command"; then + func_append rmfiles " $odir/lt-$name" + fi + if test "X$noexename" != "X$name"; then + func_append rmfiles " $odir/lt-$noexename.c" + fi + fi + fi + ;; + esac + func_show_eval "$RM $rmfiles" 'exit_status=1' + done + + # Try to remove the $objdir's in the directories where we deleted files + for dir in $rmdirs; do + if test -d "$dir"; then + func_show_eval "rmdir $dir >/dev/null 2>&1" + fi + done + + exit $exit_status +} + +if test uninstall = "$opt_mode" || test clean = "$opt_mode"; then + func_mode_uninstall ${1+"$@"} +fi + +test -z "$opt_mode" && { + help=$generic_help + func_fatal_help "you must specify a MODE" +} + +test -z "$exec_cmd" && \ + func_fatal_help "invalid operation mode '$opt_mode'" + +if test -n "$exec_cmd"; then + eval exec "$exec_cmd" + exit $EXIT_FAILURE +fi + +exit $exit_status + + +# The TAGs below are defined such that we never get into a situation +# where we disable both kinds of libraries. Given conflicting +# choices, we go for a static library, that is the most portable, +# since we can't tell whether shared libraries were disabled because +# the user asked for that or because the platform doesn't support +# them. This is particularly important on AIX, because we don't +# support having both static and shared libraries enabled at the same +# time on that platform, so we default to a shared-only configuration. +# If a disable-shared tag is given, we'll fallback to a static-only +# configuration. But we'll never go from static-only to shared-only. + +# ### BEGIN LIBTOOL TAG CONFIG: disable-shared +build_libtool_libs=no +build_old_libs=yes +# ### END LIBTOOL TAG CONFIG: disable-shared + +# ### BEGIN LIBTOOL TAG CONFIG: disable-static +build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` +# ### END LIBTOOL TAG CONFIG: disable-static + +# Local Variables: +# mode:shell-script +# sh-indentation:2 +# End: diff --git a/components/opus/libopus/m4/as-gcc-inline-assembly.m4 b/components/opus/libopus/m4/as-gcc-inline-assembly.m4 new file mode 100644 index 0000000..b0d2da4 --- /dev/null +++ b/components/opus/libopus/m4/as-gcc-inline-assembly.m4 @@ -0,0 +1,98 @@ +dnl as-gcc-inline-assembly.m4 0.1.0 + +dnl autostars m4 macro for detection of gcc inline assembly + +dnl David Schleef + +dnl AS_COMPILER_FLAG(ACTION-IF-ACCEPTED, [ACTION-IF-NOT-ACCEPTED]) +dnl Tries to compile with the given CFLAGS. +dnl Runs ACTION-IF-ACCEPTED if the compiler can compile with the flags, +dnl and ACTION-IF-NOT-ACCEPTED otherwise. + +AC_DEFUN([AS_GCC_INLINE_ASSEMBLY], +[ + AC_MSG_CHECKING([if compiler supports gcc-style inline assembly]) + + AC_TRY_COMPILE([], [ +#ifdef __GNUC_MINOR__ +#if (__GNUC__ * 1000 + __GNUC_MINOR__) < 3004 +#error GCC before 3.4 has critical bugs compiling inline assembly +#endif +#endif +__asm__ (""::) ], [flag_ok=yes], [flag_ok=no]) + + if test "X$flag_ok" = Xyes ; then + $1 + true + else + $2 + true + fi + AC_MSG_RESULT([$flag_ok]) +]) + +AC_DEFUN([AS_ASM_ARM_NEON], +[ + AC_MSG_CHECKING([if assembler supports NEON instructions on ARM]) + + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[__asm__("vorr d0,d0,d0")])], + [AC_MSG_RESULT([yes]) + $1], + [AC_MSG_RESULT([no]) + $2]) +]) + +AC_DEFUN([AS_ASM_ARM_NEON_FORCE], +[ + AC_MSG_CHECKING([if assembler supports NEON instructions on ARM]) + + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[__asm__(".arch armv7-a\n.fpu neon\n.object_arch armv4t\nvorr d0,d0,d0")])], + [AC_MSG_RESULT([yes]) + $1], + [AC_MSG_RESULT([no]) + $2]) +]) + +AC_DEFUN([AS_ASM_ARM_MEDIA], +[ + AC_MSG_CHECKING([if assembler supports ARMv6 media instructions on ARM]) + + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[__asm__("shadd8 r3,r3,r3")])], + [AC_MSG_RESULT([yes]) + $1], + [AC_MSG_RESULT([no]) + $2]) +]) + +AC_DEFUN([AS_ASM_ARM_MEDIA_FORCE], +[ + AC_MSG_CHECKING([if assembler supports ARMv6 media instructions on ARM]) + + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[__asm__(".arch armv6\n.object_arch armv4t\nshadd8 r3,r3,r3")])], + [AC_MSG_RESULT([yes]) + $1], + [AC_MSG_RESULT([no]) + $2]) +]) + +AC_DEFUN([AS_ASM_ARM_EDSP], +[ + AC_MSG_CHECKING([if assembler supports EDSP instructions on ARM]) + + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[__asm__("qadd r3,r3,r3")])], + [AC_MSG_RESULT([yes]) + $1], + [AC_MSG_RESULT([no]) + $2]) +]) + +AC_DEFUN([AS_ASM_ARM_EDSP_FORCE], +[ + AC_MSG_CHECKING([if assembler supports EDSP instructions on ARM]) + + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[__asm__(".arch armv5te\n.object_arch armv4t\nqadd r3,r3,r3")])], + [AC_MSG_RESULT([yes]) + $1], + [AC_MSG_RESULT([no]) + $2]) +]) diff --git a/components/opus/libopus/m4/ax_add_fortify_source.m4 b/components/opus/libopus/m4/ax_add_fortify_source.m4 new file mode 100644 index 0000000..1c89e41 --- /dev/null +++ b/components/opus/libopus/m4/ax_add_fortify_source.m4 @@ -0,0 +1,53 @@ +# =========================================================================== +# Modified from https://www.gnu.org/software/autoconf-archive/ax_add_fortify_source.html +# =========================================================================== +# +# SYNOPSIS +# +# AX_ADD_FORTIFY_SOURCE +# +# DESCRIPTION +# +# Check whether -D_FORTIFY_SOURCE=2 can be added to CFLAGS without macro +# redefinition warnings. Some distributions (such as Gentoo Linux) enable +# _FORTIFY_SOURCE globally in their compilers, leading to unnecessary +# warnings in the form of +# +# :0:0: error: "_FORTIFY_SOURCE" redefined [-Werror] +# : note: this is the location of the previous definition +# +# which is a problem if -Werror is enabled. This macro checks whether +# _FORTIFY_SOURCE is already defined, and if not, adds -D_FORTIFY_SOURCE=2 +# to CFLAGS. +# +# LICENSE +# +# Copyright (c) 2017 David Seifert +# +# Copying and distribution of this file, with or without modification, are +# permitted in any medium without royalty provided the copyright notice +# and this notice are preserved. This file is offered as-is, without any +# warranty. + +#serial 1 + +AC_DEFUN([AX_ADD_FORTIFY_SOURCE],[ + AC_MSG_CHECKING([whether to add -D_FORTIFY_SOURCE=2 to CFLAGS]) + AC_LINK_IFELSE([ + AC_LANG_SOURCE( + [[ + int main() { + #ifndef _FORTIFY_SOURCE + return 0; + #else + this_is_an_error; + #endif + } + ]] + )], [ + AC_MSG_RESULT([yes]) + CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2" + ], [ + AC_MSG_RESULT([no]) + ]) +]) diff --git a/components/opus/libopus/m4/libtool.m4 b/components/opus/libopus/m4/libtool.m4 new file mode 100644 index 0000000..a644432 --- /dev/null +++ b/components/opus/libopus/m4/libtool.m4 @@ -0,0 +1,8372 @@ +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- +# +# Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc. +# Written by Gordon Matzigkeit, 1996 +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. + +m4_define([_LT_COPYING], [dnl +# Copyright (C) 2014 Free Software Foundation, Inc. +# This is free software; see the source for copying conditions. There is NO +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + +# GNU Libtool is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of of the License, or +# (at your option) any later version. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program or library that is built +# using GNU Libtool, you may include this file under the same +# distribution terms that you use for the rest of that program. +# +# GNU Libtool is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +]) + +# serial 58 LT_INIT + + +# LT_PREREQ(VERSION) +# ------------------ +# Complain and exit if this libtool version is less that VERSION. +m4_defun([LT_PREREQ], +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, + [m4_default([$3], + [m4_fatal([Libtool version $1 or higher is required], + 63)])], + [$2])]) + + +# _LT_CHECK_BUILDDIR +# ------------------ +# Complain if the absolute build directory name contains unusual characters +m4_defun([_LT_CHECK_BUILDDIR], +[case `pwd` in + *\ * | *\ *) + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; +esac +]) + + +# LT_INIT([OPTIONS]) +# ------------------ +AC_DEFUN([LT_INIT], +[AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK +AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl +AC_BEFORE([$0], [LT_LANG])dnl +AC_BEFORE([$0], [LT_OUTPUT])dnl +AC_BEFORE([$0], [LTDL_INIT])dnl +m4_require([_LT_CHECK_BUILDDIR])dnl + +dnl Autoconf doesn't catch unexpanded LT_ macros by default: +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 +dnl unless we require an AC_DEFUNed macro: +AC_REQUIRE([LTOPTIONS_VERSION])dnl +AC_REQUIRE([LTSUGAR_VERSION])dnl +AC_REQUIRE([LTVERSION_VERSION])dnl +AC_REQUIRE([LTOBSOLETE_VERSION])dnl +m4_require([_LT_PROG_LTMAIN])dnl + +_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) + +dnl Parse OPTIONS +_LT_SET_OPTIONS([$0], [$1]) + +# This can be used to rebuild libtool when needed +LIBTOOL_DEPS=$ltmain + +# Always use our own libtool. +LIBTOOL='$(SHELL) $(top_builddir)/libtool' +AC_SUBST(LIBTOOL)dnl + +_LT_SETUP + +# Only expand once: +m4_define([LT_INIT]) +])# LT_INIT + +# Old names: +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_PROG_LIBTOOL], []) +dnl AC_DEFUN([AM_PROG_LIBTOOL], []) + + +# _LT_PREPARE_CC_BASENAME +# ----------------------- +m4_defun([_LT_PREPARE_CC_BASENAME], [ +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. +func_cc_basename () +{ + for cc_temp in @S|@*""; do + case $cc_temp in + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; + \-*) ;; + *) break;; + esac + done + func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` +} +])# _LT_PREPARE_CC_BASENAME + + +# _LT_CC_BASENAME(CC) +# ------------------- +# It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME, +# but that macro is also expanded into generated libtool script, which +# arranges for $SED and $ECHO to be set by different means. +m4_defun([_LT_CC_BASENAME], +[m4_require([_LT_PREPARE_CC_BASENAME])dnl +AC_REQUIRE([_LT_DECL_SED])dnl +AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl +func_cc_basename $1 +cc_basename=$func_cc_basename_result +]) + + +# _LT_FILEUTILS_DEFAULTS +# ---------------------- +# It is okay to use these file commands and assume they have been set +# sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'. +m4_defun([_LT_FILEUTILS_DEFAULTS], +[: ${CP="cp -f"} +: ${MV="mv -f"} +: ${RM="rm -f"} +])# _LT_FILEUTILS_DEFAULTS + + +# _LT_SETUP +# --------- +m4_defun([_LT_SETUP], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_CANONICAL_BUILD])dnl +AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl +AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl + +_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl +dnl +_LT_DECL([], [host_alias], [0], [The host system])dnl +_LT_DECL([], [host], [0])dnl +_LT_DECL([], [host_os], [0])dnl +dnl +_LT_DECL([], [build_alias], [0], [The build system])dnl +_LT_DECL([], [build], [0])dnl +_LT_DECL([], [build_os], [0])dnl +dnl +AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([LT_PATH_LD])dnl +AC_REQUIRE([LT_PATH_NM])dnl +dnl +AC_REQUIRE([AC_PROG_LN_S])dnl +test -z "$LN_S" && LN_S="ln -s" +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl +dnl +AC_REQUIRE([LT_CMD_MAX_LEN])dnl +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl +dnl +m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_CHECK_SHELL_FEATURES])dnl +m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl +m4_require([_LT_CMD_RELOAD])dnl +m4_require([_LT_CHECK_MAGIC_METHOD])dnl +m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl +m4_require([_LT_CMD_OLD_ARCHIVE])dnl +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl +m4_require([_LT_WITH_SYSROOT])dnl +m4_require([_LT_CMD_TRUNCATE])dnl + +_LT_CONFIG_LIBTOOL_INIT([ +# See if we are running on zsh, and set the options that allow our +# commands through without removal of \ escapes INIT. +if test -n "\${ZSH_VERSION+set}"; then + setopt NO_GLOB_SUBST +fi +]) +if test -n "${ZSH_VERSION+set}"; then + setopt NO_GLOB_SUBST +fi + +_LT_CHECK_OBJDIR + +m4_require([_LT_TAG_COMPILER])dnl + +case $host_os in +aix3*) + # AIX sometimes has problems with the GCC collect2 program. For some + # reason, if we set the COLLECT_NAMES environment variable, the problems + # vanish in a puff of smoke. + if test set != "${COLLECT_NAMES+set}"; then + COLLECT_NAMES= + export COLLECT_NAMES + fi + ;; +esac + +# Global variables: +ofile=libtool +can_build_shared=yes + +# All known linkers require a '.a' archive for static linking (except MSVC, +# which needs '.lib'). +libext=a + +with_gnu_ld=$lt_cv_prog_gnu_ld + +old_CC=$CC +old_CFLAGS=$CFLAGS + +# Set sane defaults for various variables +test -z "$CC" && CC=cc +test -z "$LTCC" && LTCC=$CC +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS +test -z "$LD" && LD=ld +test -z "$ac_objext" && ac_objext=o + +_LT_CC_BASENAME([$compiler]) + +# Only perform the check for file, if the check method requires it +test -z "$MAGIC_CMD" && MAGIC_CMD=file +case $deplibs_check_method in +file_magic*) + if test "$file_magic_cmd" = '$MAGIC_CMD'; then + _LT_PATH_MAGIC + fi + ;; +esac + +# Use C for the default configuration in the libtool script +LT_SUPPORTED_TAG([CC]) +_LT_LANG_C_CONFIG +_LT_LANG_DEFAULT_CONFIG +_LT_CONFIG_COMMANDS +])# _LT_SETUP + + +# _LT_PREPARE_SED_QUOTE_VARS +# -------------------------- +# Define a few sed substitution that help us do robust quoting. +m4_defun([_LT_PREPARE_SED_QUOTE_VARS], +[# Backslashify metacharacters that are still active within +# double-quoted strings. +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' + +# Same as above, but do not quote variable references. +double_quote_subst='s/\([["`\\]]\)/\\\1/g' + +# Sed substitution to delay expansion of an escaped shell variable in a +# double_quote_subst'ed string. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' + +# Sed substitution to delay expansion of an escaped single quote. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' + +# Sed substitution to avoid accidental globbing in evaled expressions +no_glob_subst='s/\*/\\\*/g' +]) + +# _LT_PROG_LTMAIN +# --------------- +# Note that this code is called both from 'configure', and 'config.status' +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, +# 'config.status' has no value for ac_aux_dir unless we are using Automake, +# so we pass a copy along to make sure it has a sensible value anyway. +m4_defun([_LT_PROG_LTMAIN], +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) +ltmain=$ac_aux_dir/ltmain.sh +])# _LT_PROG_LTMAIN + + +## ------------------------------------- ## +## Accumulate code for creating libtool. ## +## ------------------------------------- ## + +# So that we can recreate a full libtool script including additional +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS +# in macros and then make a single call at the end using the 'libtool' +# label. + + +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) +# ---------------------------------------- +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. +m4_define([_LT_CONFIG_LIBTOOL_INIT], +[m4_ifval([$1], + [m4_append([_LT_OUTPUT_LIBTOOL_INIT], + [$1 +])])]) + +# Initialize. +m4_define([_LT_OUTPUT_LIBTOOL_INIT]) + + +# _LT_CONFIG_LIBTOOL([COMMANDS]) +# ------------------------------ +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. +m4_define([_LT_CONFIG_LIBTOOL], +[m4_ifval([$1], + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], + [$1 +])])]) + +# Initialize. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) + + +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) +# ----------------------------------------------------- +m4_defun([_LT_CONFIG_SAVE_COMMANDS], +[_LT_CONFIG_LIBTOOL([$1]) +_LT_CONFIG_LIBTOOL_INIT([$2]) +]) + + +# _LT_FORMAT_COMMENT([COMMENT]) +# ----------------------------- +# Add leading comment marks to the start of each line, and a trailing +# full-stop to the whole comment if one is not present already. +m4_define([_LT_FORMAT_COMMENT], +[m4_ifval([$1], [ +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) +)]) + + + +## ------------------------ ## +## FIXME: Eliminate VARNAME ## +## ------------------------ ## + + +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) +# ------------------------------------------------------------------- +# CONFIGNAME is the name given to the value in the libtool script. +# VARNAME is the (base) name used in the configure script. +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on +# VARNAME. Any other value will be used directly. +m4_define([_LT_DECL], +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], + [m4_ifval([$1], [$1], [$2])]) + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) + m4_ifval([$4], + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) + lt_dict_add_subkey([lt_decl_dict], [$2], + [tagged?], [m4_ifval([$5], [yes], [no])])]) +]) + + +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) +# -------------------------------------------------------- +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) + + +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) +# ------------------------------------------------ +m4_define([lt_decl_tag_varnames], +[_lt_decl_filter([tagged?], [yes], $@)]) + + +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) +# --------------------------------------------------------- +m4_define([_lt_decl_filter], +[m4_case([$#], + [0], [m4_fatal([$0: too few arguments: $#])], + [1], [m4_fatal([$0: too few arguments: $#: $1])], + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], + [lt_dict_filter([lt_decl_dict], $@)])[]dnl +]) + + +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) +# -------------------------------------------------- +m4_define([lt_decl_quote_varnames], +[_lt_decl_filter([value], [1], $@)]) + + +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) +# --------------------------------------------------- +m4_define([lt_decl_dquote_varnames], +[_lt_decl_filter([value], [2], $@)]) + + +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) +# --------------------------------------------------- +m4_define([lt_decl_varnames_tagged], +[m4_assert([$# <= 2])dnl +_$0(m4_quote(m4_default([$1], [[, ]])), + m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), + m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) +m4_define([_lt_decl_varnames_tagged], +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) + + +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) +# ------------------------------------------------ +m4_define([lt_decl_all_varnames], +[_$0(m4_quote(m4_default([$1], [[, ]])), + m4_if([$2], [], + m4_quote(lt_decl_varnames), + m4_quote(m4_shift($@))))[]dnl +]) +m4_define([_lt_decl_all_varnames], +[lt_join($@, lt_decl_varnames_tagged([$1], + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl +]) + + +# _LT_CONFIG_STATUS_DECLARE([VARNAME]) +# ------------------------------------ +# Quote a variable value, and forward it to 'config.status' so that its +# declaration there will have the same value as in 'configure'. VARNAME +# must have a single quote delimited value for this to work. +m4_define([_LT_CONFIG_STATUS_DECLARE], +[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) + + +# _LT_CONFIG_STATUS_DECLARATIONS +# ------------------------------ +# We delimit libtool config variables with single quotes, so when +# we write them to config.status, we have to be sure to quote all +# embedded single quotes properly. In configure, this macro expands +# each variable declared with _LT_DECL (and _LT_TAGDECL) into: +# +# ='`$ECHO "$" | $SED "$delay_single_quote_subst"`' +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) + + +# _LT_LIBTOOL_TAGS +# ---------------- +# Output comment and list of tags supported by the script +m4_defun([_LT_LIBTOOL_TAGS], +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl +available_tags='_LT_TAGS'dnl +]) + + +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) +# ----------------------------------- +# Extract the dictionary values for VARNAME (optionally with TAG) and +# expand to a commented shell variable setting: +# +# # Some comment about what VAR is for. +# visible_name=$lt_internal_name +m4_define([_LT_LIBTOOL_DECLARE], +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], + [description])))[]dnl +m4_pushdef([_libtool_name], + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), + [0], [_libtool_name=[$]$1], + [1], [_libtool_name=$lt_[]$1], + [2], [_libtool_name=$lt_[]$1], + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl +]) + + +# _LT_LIBTOOL_CONFIG_VARS +# ----------------------- +# Produce commented declarations of non-tagged libtool config variables +# suitable for insertion in the LIBTOOL CONFIG section of the 'libtool' +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG +# section) are produced by _LT_LIBTOOL_TAG_VARS. +m4_defun([_LT_LIBTOOL_CONFIG_VARS], +[m4_foreach([_lt_var], + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) + + +# _LT_LIBTOOL_TAG_VARS(TAG) +# ------------------------- +m4_define([_LT_LIBTOOL_TAG_VARS], +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) + + +# _LT_TAGVAR(VARNAME, [TAGNAME]) +# ------------------------------ +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) + + +# _LT_CONFIG_COMMANDS +# ------------------- +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of +# variables for single and double quote escaping we saved from calls +# to _LT_DECL, we can put quote escaped variables declarations +# into 'config.status', and then the shell code to quote escape them in +# for loops in 'config.status'. Finally, any additional code accumulated +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. +m4_defun([_LT_CONFIG_COMMANDS], +[AC_PROVIDE_IFELSE([LT_OUTPUT], + dnl If the libtool generation code has been placed in $CONFIG_LT, + dnl instead of duplicating it all over again into config.status, + dnl then we will have config.status run $CONFIG_LT later, so it + dnl needs to know what name is stored there: + [AC_CONFIG_COMMANDS([libtool], + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], + dnl If the libtool generation code is destined for config.status, + dnl expand the accumulated commands and init code now: + [AC_CONFIG_COMMANDS([libtool], + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) +])#_LT_CONFIG_COMMANDS + + +# Initialize. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], +[ + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +sed_quote_subst='$sed_quote_subst' +double_quote_subst='$double_quote_subst' +delay_variable_subst='$delay_variable_subst' +_LT_CONFIG_STATUS_DECLARATIONS +LTCC='$LTCC' +LTCFLAGS='$LTCFLAGS' +compiler='$compiler_DEFAULT' + +# A function that is used when there is no print builtin or printf. +func_fallback_echo () +{ + eval 'cat <<_LTECHO_EOF +\$[]1 +_LTECHO_EOF' +} + +# Quote evaled strings. +for var in lt_decl_all_varnames([[ \ +]], lt_decl_quote_varnames); do + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in + *[[\\\\\\\`\\"\\\$]]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; + esac +done + +# Double-quote double-evaled strings. +for var in lt_decl_all_varnames([[ \ +]], lt_decl_dquote_varnames); do + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in + *[[\\\\\\\`\\"\\\$]]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; + esac +done + +_LT_OUTPUT_LIBTOOL_INIT +]) + +# _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) +# ------------------------------------ +# Generate a child script FILE with all initialization necessary to +# reuse the environment learned by the parent script, and make the +# file executable. If COMMENT is supplied, it is inserted after the +# '#!' sequence but before initialization text begins. After this +# macro, additional text can be appended to FILE to form the body of +# the child script. The macro ends with non-zero status if the +# file could not be fully written (such as if the disk is full). +m4_ifdef([AS_INIT_GENERATED], +[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], +[m4_defun([_LT_GENERATED_FILE_INIT], +[m4_require([AS_PREPARE])]dnl +[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl +[lt_write_fail=0 +cat >$1 <<_ASEOF || lt_write_fail=1 +#! $SHELL +# Generated by $as_me. +$2 +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$1 <<\_ASEOF || lt_write_fail=1 +AS_SHELL_SANITIZE +_AS_PREPARE +exec AS_MESSAGE_FD>&1 +_ASEOF +test 0 = "$lt_write_fail" && chmod +x $1[]dnl +m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT + +# LT_OUTPUT +# --------- +# This macro allows early generation of the libtool script (before +# AC_OUTPUT is called), incase it is used in configure for compilation +# tests. +AC_DEFUN([LT_OUTPUT], +[: ${CONFIG_LT=./config.lt} +AC_MSG_NOTICE([creating $CONFIG_LT]) +_LT_GENERATED_FILE_INIT(["$CONFIG_LT"], +[# Run this file to recreate a libtool stub with the current configuration.]) + +cat >>"$CONFIG_LT" <<\_LTEOF +lt_cl_silent=false +exec AS_MESSAGE_LOG_FD>>config.log +{ + echo + AS_BOX([Running $as_me.]) +} >&AS_MESSAGE_LOG_FD + +lt_cl_help="\ +'$as_me' creates a local libtool stub from the current configuration, +for use in further configure time tests before the real libtool is +generated. + +Usage: $[0] [[OPTIONS]] + + -h, --help print this help, then exit + -V, --version print version number, then exit + -q, --quiet do not print progress messages + -d, --debug don't remove temporary files + +Report bugs to ." + +lt_cl_version="\ +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) +configured by $[0], generated by m4_PACKAGE_STRING. + +Copyright (C) 2011 Free Software Foundation, Inc. +This config.lt script is free software; the Free Software Foundation +gives unlimited permision to copy, distribute and modify it." + +while test 0 != $[#] +do + case $[1] in + --version | --v* | -V ) + echo "$lt_cl_version"; exit 0 ;; + --help | --h* | -h ) + echo "$lt_cl_help"; exit 0 ;; + --debug | --d* | -d ) + debug=: ;; + --quiet | --q* | --silent | --s* | -q ) + lt_cl_silent=: ;; + + -*) AC_MSG_ERROR([unrecognized option: $[1] +Try '$[0] --help' for more information.]) ;; + + *) AC_MSG_ERROR([unrecognized argument: $[1] +Try '$[0] --help' for more information.]) ;; + esac + shift +done + +if $lt_cl_silent; then + exec AS_MESSAGE_FD>/dev/null +fi +_LTEOF + +cat >>"$CONFIG_LT" <<_LTEOF +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT +_LTEOF + +cat >>"$CONFIG_LT" <<\_LTEOF +AC_MSG_NOTICE([creating $ofile]) +_LT_OUTPUT_LIBTOOL_COMMANDS +AS_EXIT(0) +_LTEOF +chmod +x "$CONFIG_LT" + +# configure is writing to config.log, but config.lt does its own redirection, +# appending to config.log, which fails on DOS, as config.log is still kept +# open by configure. Here we exec the FD to /dev/null, effectively closing +# config.log, so it can be properly (re)opened and appended to by config.lt. +lt_cl_success=: +test yes = "$silent" && + lt_config_lt_args="$lt_config_lt_args --quiet" +exec AS_MESSAGE_LOG_FD>/dev/null +$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false +exec AS_MESSAGE_LOG_FD>>config.log +$lt_cl_success || AS_EXIT(1) +])# LT_OUTPUT + + +# _LT_CONFIG(TAG) +# --------------- +# If TAG is the built-in tag, create an initial libtool script with a +# default configuration from the untagged config vars. Otherwise add code +# to config.status for appending the configuration named by TAG from the +# matching tagged config vars. +m4_defun([_LT_CONFIG], +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl +_LT_CONFIG_SAVE_COMMANDS([ + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl + m4_if(_LT_TAG, [C], [ + # See if we are running on zsh, and set the options that allow our + # commands through without removal of \ escapes. + if test -n "${ZSH_VERSION+set}"; then + setopt NO_GLOB_SUBST + fi + + cfgfile=${ofile}T + trap "$RM \"$cfgfile\"; exit 1" 1 2 15 + $RM "$cfgfile" + + cat <<_LT_EOF >> "$cfgfile" +#! $SHELL +# Generated automatically by $as_me ($PACKAGE) $VERSION +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: +# NOTE: Changes made to this file will be lost: look at ltmain.sh. + +# Provide generalized library-building support services. +# Written by Gordon Matzigkeit, 1996 + +_LT_COPYING +_LT_LIBTOOL_TAGS + +# Configured defaults for sys_lib_dlsearch_path munging. +: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} + +# ### BEGIN LIBTOOL CONFIG +_LT_LIBTOOL_CONFIG_VARS +_LT_LIBTOOL_TAG_VARS +# ### END LIBTOOL CONFIG + +_LT_EOF + + cat <<'_LT_EOF' >> "$cfgfile" + +# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE + +_LT_PREPARE_MUNGE_PATH_LIST +_LT_PREPARE_CC_BASENAME + +# ### END FUNCTIONS SHARED WITH CONFIGURE + +_LT_EOF + + case $host_os in + aix3*) + cat <<\_LT_EOF >> "$cfgfile" +# AIX sometimes has problems with the GCC collect2 program. For some +# reason, if we set the COLLECT_NAMES environment variable, the problems +# vanish in a puff of smoke. +if test set != "${COLLECT_NAMES+set}"; then + COLLECT_NAMES= + export COLLECT_NAMES +fi +_LT_EOF + ;; + esac + + _LT_PROG_LTMAIN + + # We use sed instead of cat because bash on DJGPP gets confused if + # if finds mixed CR/LF and LF-only lines. Since sed operates in + # text mode, it properly converts lines to CR/LF. This bash problem + # is reportedly fixed, but why not run on old versions too? + sed '$q' "$ltmain" >> "$cfgfile" \ + || (rm -f "$cfgfile"; exit 1) + + mv -f "$cfgfile" "$ofile" || + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") + chmod +x "$ofile" +], +[cat <<_LT_EOF >> "$ofile" + +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded +dnl in a comment (ie after a #). +# ### BEGIN LIBTOOL TAG CONFIG: $1 +_LT_LIBTOOL_TAG_VARS(_LT_TAG) +# ### END LIBTOOL TAG CONFIG: $1 +_LT_EOF +])dnl /m4_if +], +[m4_if([$1], [], [ + PACKAGE='$PACKAGE' + VERSION='$VERSION' + RM='$RM' + ofile='$ofile'], []) +])dnl /_LT_CONFIG_SAVE_COMMANDS +])# _LT_CONFIG + + +# LT_SUPPORTED_TAG(TAG) +# --------------------- +# Trace this macro to discover what tags are supported by the libtool +# --tag option, using: +# autoconf --trace 'LT_SUPPORTED_TAG:$1' +AC_DEFUN([LT_SUPPORTED_TAG], []) + + +# C support is built-in for now +m4_define([_LT_LANG_C_enabled], []) +m4_define([_LT_TAGS], []) + + +# LT_LANG(LANG) +# ------------- +# Enable libtool support for the given language if not already enabled. +AC_DEFUN([LT_LANG], +[AC_BEFORE([$0], [LT_OUTPUT])dnl +m4_case([$1], + [C], [_LT_LANG(C)], + [C++], [_LT_LANG(CXX)], + [Go], [_LT_LANG(GO)], + [Java], [_LT_LANG(GCJ)], + [Fortran 77], [_LT_LANG(F77)], + [Fortran], [_LT_LANG(FC)], + [Windows Resource], [_LT_LANG(RC)], + [m4_ifdef([_LT_LANG_]$1[_CONFIG], + [_LT_LANG($1)], + [m4_fatal([$0: unsupported language: "$1"])])])dnl +])# LT_LANG + + +# _LT_LANG(LANGNAME) +# ------------------ +m4_defun([_LT_LANG], +[m4_ifdef([_LT_LANG_]$1[_enabled], [], + [LT_SUPPORTED_TAG([$1])dnl + m4_append([_LT_TAGS], [$1 ])dnl + m4_define([_LT_LANG_]$1[_enabled], [])dnl + _LT_LANG_$1_CONFIG($1)])dnl +])# _LT_LANG + + +m4_ifndef([AC_PROG_GO], [ +############################################################ +# NOTE: This macro has been submitted for inclusion into # +# GNU Autoconf as AC_PROG_GO. When it is available in # +# a released version of Autoconf we should remove this # +# macro and use it instead. # +############################################################ +m4_defun([AC_PROG_GO], +[AC_LANG_PUSH(Go)dnl +AC_ARG_VAR([GOC], [Go compiler command])dnl +AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl +_AC_ARG_VAR_LDFLAGS()dnl +AC_CHECK_TOOL(GOC, gccgo) +if test -z "$GOC"; then + if test -n "$ac_tool_prefix"; then + AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) + fi +fi +if test -z "$GOC"; then + AC_CHECK_PROG(GOC, gccgo, gccgo, false) +fi +])#m4_defun +])#m4_ifndef + + +# _LT_LANG_DEFAULT_CONFIG +# ----------------------- +m4_defun([_LT_LANG_DEFAULT_CONFIG], +[AC_PROVIDE_IFELSE([AC_PROG_CXX], + [LT_LANG(CXX)], + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) + +AC_PROVIDE_IFELSE([AC_PROG_F77], + [LT_LANG(F77)], + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) + +AC_PROVIDE_IFELSE([AC_PROG_FC], + [LT_LANG(FC)], + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) + +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal +dnl pulling things in needlessly. +AC_PROVIDE_IFELSE([AC_PROG_GCJ], + [LT_LANG(GCJ)], + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], + [LT_LANG(GCJ)], + [AC_PROVIDE_IFELSE([LT_PROG_GCJ], + [LT_LANG(GCJ)], + [m4_ifdef([AC_PROG_GCJ], + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) + m4_ifdef([A][M_PROG_GCJ], + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) + m4_ifdef([LT_PROG_GCJ], + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) + +AC_PROVIDE_IFELSE([AC_PROG_GO], + [LT_LANG(GO)], + [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) + +AC_PROVIDE_IFELSE([LT_PROG_RC], + [LT_LANG(RC)], + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) +])# _LT_LANG_DEFAULT_CONFIG + +# Obsolete macros: +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) +AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_CXX], []) +dnl AC_DEFUN([AC_LIBTOOL_F77], []) +dnl AC_DEFUN([AC_LIBTOOL_FC], []) +dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) +dnl AC_DEFUN([AC_LIBTOOL_RC], []) + + +# _LT_TAG_COMPILER +# ---------------- +m4_defun([_LT_TAG_COMPILER], +[AC_REQUIRE([AC_PROG_CC])dnl + +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC +])# _LT_TAG_COMPILER + + +# _LT_COMPILER_BOILERPLATE +# ------------------------ +# Check for compiler boilerplate output or warnings with +# the simple compiler test code. +m4_defun([_LT_COMPILER_BOILERPLATE], +[m4_require([_LT_DECL_SED])dnl +ac_outfile=conftest.$ac_objext +echo "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$RM conftest* +])# _LT_COMPILER_BOILERPLATE + + +# _LT_LINKER_BOILERPLATE +# ---------------------- +# Check for linker boilerplate output or warnings with +# the simple link test code. +m4_defun([_LT_LINKER_BOILERPLATE], +[m4_require([_LT_DECL_SED])dnl +ac_outfile=conftest.$ac_objext +echo "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$RM -r conftest* +])# _LT_LINKER_BOILERPLATE + +# _LT_REQUIRED_DARWIN_CHECKS +# ------------------------- +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ + case $host_os in + rhapsody* | darwin*) + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) + AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) + AC_CHECK_TOOL([LIPO], [lipo], [:]) + AC_CHECK_TOOL([OTOOL], [otool], [:]) + AC_CHECK_TOOL([OTOOL64], [otool64], [:]) + _LT_DECL([], [DSYMUTIL], [1], + [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) + _LT_DECL([], [NMEDIT], [1], + [Tool to change global to local symbols on Mac OS X]) + _LT_DECL([], [LIPO], [1], + [Tool to manipulate fat objects and archives on Mac OS X]) + _LT_DECL([], [OTOOL], [1], + [ldd/readelf like tool for Mach-O binaries on Mac OS X]) + _LT_DECL([], [OTOOL64], [1], + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) + + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], + [lt_cv_apple_cc_single_mod=no + if test -z "$LT_MULTI_MODULE"; then + # By default we will add the -single_module flag. You can override + # by either setting the environment variable LT_MULTI_MODULE + # non-empty at configure time, or by adding -multi_module to the + # link flags. + rm -rf libconftest.dylib* + echo "int foo(void){return 1;}" > conftest.c + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err + _lt_result=$? + # If there is a non-empty error log, and "single_module" + # appears in it, assume the flag caused a linker warning + if test -s conftest.err && $GREP single_module conftest.err; then + cat conftest.err >&AS_MESSAGE_LOG_FD + # Otherwise, if the output was created with a 0 exit code from + # the compiler, it worked. + elif test -f libconftest.dylib && test 0 = "$_lt_result"; then + lt_cv_apple_cc_single_mod=yes + else + cat conftest.err >&AS_MESSAGE_LOG_FD + fi + rm -rf libconftest.dylib* + rm -f conftest.* + fi]) + + AC_CACHE_CHECK([for -exported_symbols_list linker flag], + [lt_cv_ld_exported_symbols_list], + [lt_cv_ld_exported_symbols_list=no + save_LDFLAGS=$LDFLAGS + echo "_main" > conftest.sym + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], + [lt_cv_ld_exported_symbols_list=yes], + [lt_cv_ld_exported_symbols_list=no]) + LDFLAGS=$save_LDFLAGS + ]) + + AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], + [lt_cv_ld_force_load=no + cat > conftest.c << _LT_EOF +int forced_loaded() { return 2;} +_LT_EOF + echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD + $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD + echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD + $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD + echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD + $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD + cat > conftest.c << _LT_EOF +int main() { return 0;} +_LT_EOF + echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD + $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err + _lt_result=$? + if test -s conftest.err && $GREP force_load conftest.err; then + cat conftest.err >&AS_MESSAGE_LOG_FD + elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then + lt_cv_ld_force_load=yes + else + cat conftest.err >&AS_MESSAGE_LOG_FD + fi + rm -f conftest.err libconftest.a conftest conftest.c + rm -rf conftest.dSYM + ]) + case $host_os in + rhapsody* | darwin1.[[012]]) + _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; + darwin1.*) + _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; + darwin*) # darwin 5.x on + # if running on 10.5 or later, the deployment target defaults + # to the OS version, if on x86, and 10.4, the deployment + # target defaults to 10.4. Don't you love it? + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) + _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; + 10.[[012]][[,.]]*) + _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; + 10.*) + _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; + esac + ;; + esac + if test yes = "$lt_cv_apple_cc_single_mod"; then + _lt_dar_single_mod='$single_module' + fi + if test yes = "$lt_cv_ld_exported_symbols_list"; then + _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' + else + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' + fi + if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then + _lt_dsymutil='~$DSYMUTIL $lib || :' + else + _lt_dsymutil= + fi + ;; + esac +]) + + +# _LT_DARWIN_LINKER_FEATURES([TAG]) +# --------------------------------- +# Checks for linker and compiler features on darwin +m4_defun([_LT_DARWIN_LINKER_FEATURES], +[ + m4_require([_LT_REQUIRED_DARWIN_CHECKS]) + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_automatic, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported + if test yes = "$lt_cv_ld_force_load"; then + _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' + m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], + [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) + else + _LT_TAGVAR(whole_archive_flag_spec, $1)='' + fi + _LT_TAGVAR(link_all_deplibs, $1)=yes + _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined + case $cc_basename in + ifort*|nagfor*) _lt_dar_can_shared=yes ;; + *) _lt_dar_can_shared=$GCC ;; + esac + if test yes = "$_lt_dar_can_shared"; then + output_verbose_link_cmd=func_echo_all + _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" + _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" + _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" + m4_if([$1], [CXX], +[ if test yes != "$lt_cv_apple_cc_single_mod"; then + _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" + _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" + fi +],[]) + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi +]) + +# _LT_SYS_MODULE_PATH_AIX([TAGNAME]) +# ---------------------------------- +# Links a minimal program and checks the executable +# for the system default hardcoded library path. In most cases, +# this is /usr/lib:/lib, but when the MPI compilers are used +# the location of the communication and MPI libs are included too. +# If we don't find anything, use the default library path according +# to the aix ld manual. +# Store the results from the different compilers for each TAGNAME. +# Allow to override them for all tags through lt_cv_aix_libpath. +m4_defun([_LT_SYS_MODULE_PATH_AIX], +[m4_require([_LT_DECL_SED])dnl +if test set = "${lt_cv_aix_libpath+set}"; then + aix_libpath=$lt_cv_aix_libpath +else + AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], + [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ + lt_aix_libpath_sed='[ + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }]' + _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then + _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi],[]) + if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then + _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib + fi + ]) + aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) +fi +])# _LT_SYS_MODULE_PATH_AIX + + +# _LT_SHELL_INIT(ARG) +# ------------------- +m4_define([_LT_SHELL_INIT], +[m4_divert_text([M4SH-INIT], [$1 +])])# _LT_SHELL_INIT + + + +# _LT_PROG_ECHO_BACKSLASH +# ----------------------- +# Find how we can fake an echo command that does not interpret backslash. +# In particular, with Autoconf 2.60 or later we add some code to the start +# of the generated configure script that will find a shell with a builtin +# printf (that we can use as an echo command). +m4_defun([_LT_PROG_ECHO_BACKSLASH], +[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO + +AC_MSG_CHECKING([how to print strings]) +# Test print first, because it will be a builtin if present. +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ + test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='print -r --' +elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='printf %s\n' +else + # Use this function as a fallback that always works. + func_fallback_echo () + { + eval 'cat <<_LTECHO_EOF +$[]1 +_LTECHO_EOF' + } + ECHO='func_fallback_echo' +fi + +# func_echo_all arg... +# Invoke $ECHO with all args, space-separated. +func_echo_all () +{ + $ECHO "$*" +} + +case $ECHO in + printf*) AC_MSG_RESULT([printf]) ;; + print*) AC_MSG_RESULT([print -r]) ;; + *) AC_MSG_RESULT([cat]) ;; +esac + +m4_ifdef([_AS_DETECT_SUGGESTED], +[_AS_DETECT_SUGGESTED([ + test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( + ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' + ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO + ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO + PATH=/empty FPATH=/empty; export PATH FPATH + test "X`printf %s $ECHO`" = "X$ECHO" \ + || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) + +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) +_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) +])# _LT_PROG_ECHO_BACKSLASH + + +# _LT_WITH_SYSROOT +# ---------------- +AC_DEFUN([_LT_WITH_SYSROOT], +[AC_MSG_CHECKING([for sysroot]) +AC_ARG_WITH([sysroot], +[AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@], + [Search for dependent libraries within DIR (or the compiler's sysroot + if not specified).])], +[], [with_sysroot=no]) + +dnl lt_sysroot will always be passed unquoted. We quote it here +dnl in case the user passed a directory name. +lt_sysroot= +case $with_sysroot in #( + yes) + if test yes = "$GCC"; then + lt_sysroot=`$CC --print-sysroot 2>/dev/null` + fi + ;; #( + /*) + lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` + ;; #( + no|'') + ;; #( + *) + AC_MSG_RESULT([$with_sysroot]) + AC_MSG_ERROR([The sysroot must be an absolute path.]) + ;; +esac + + AC_MSG_RESULT([${lt_sysroot:-no}]) +_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl +[dependent libraries, and where our libraries should be installed.])]) + +# _LT_ENABLE_LOCK +# --------------- +m4_defun([_LT_ENABLE_LOCK], +[AC_ARG_ENABLE([libtool-lock], + [AS_HELP_STRING([--disable-libtool-lock], + [avoid locking (might break parallel builds)])]) +test no = "$enable_libtool_lock" || enable_libtool_lock=yes + +# Some flags need to be propagated to the compiler or linker for good +# libtool support. +case $host in +ia64-*-hpux*) + # Find out what ABI is being produced by ac_compile, and set mode + # options accordingly. + echo 'int i;' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + case `/usr/bin/file conftest.$ac_objext` in + *ELF-32*) + HPUX_IA64_MODE=32 + ;; + *ELF-64*) + HPUX_IA64_MODE=64 + ;; + esac + fi + rm -rf conftest* + ;; +*-*-irix6*) + # Find out what ABI is being produced by ac_compile, and set linker + # options accordingly. + echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + if test yes = "$lt_cv_prog_gnu_ld"; then + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -melf32bsmip" + ;; + *N32*) + LD="${LD-ld} -melf32bmipn32" + ;; + *64-bit*) + LD="${LD-ld} -melf64bmip" + ;; + esac + else + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -32" + ;; + *N32*) + LD="${LD-ld} -n32" + ;; + *64-bit*) + LD="${LD-ld} -64" + ;; + esac + fi + fi + rm -rf conftest* + ;; + +mips64*-*linux*) + # Find out what ABI is being produced by ac_compile, and set linker + # options accordingly. + echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + emul=elf + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + emul="${emul}32" + ;; + *64-bit*) + emul="${emul}64" + ;; + esac + case `/usr/bin/file conftest.$ac_objext` in + *MSB*) + emul="${emul}btsmip" + ;; + *LSB*) + emul="${emul}ltsmip" + ;; + esac + case `/usr/bin/file conftest.$ac_objext` in + *N32*) + emul="${emul}n32" + ;; + esac + LD="${LD-ld} -m $emul" + fi + rm -rf conftest* + ;; + +x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ +s390*-*linux*|s390*-*tpf*|sparc*-*linux*) + # Find out what ABI is being produced by ac_compile, and set linker + # options accordingly. Note that the listed cases only cover the + # situations where additional linker options are needed (such as when + # doing 32-bit compilation for a host where ld defaults to 64-bit, or + # vice versa); the common cases where no linker options are needed do + # not appear in the list. + echo 'int i;' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + case `/usr/bin/file conftest.o` in + *32-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_i386_fbsd" + ;; + x86_64-*linux*) + case `/usr/bin/file conftest.o` in + *x86-64*) + LD="${LD-ld} -m elf32_x86_64" + ;; + *) + LD="${LD-ld} -m elf_i386" + ;; + esac + ;; + powerpc64le-*linux*) + LD="${LD-ld} -m elf32lppclinux" + ;; + powerpc64-*linux*) + LD="${LD-ld} -m elf32ppclinux" + ;; + s390x-*linux*) + LD="${LD-ld} -m elf_s390" + ;; + sparc64-*linux*) + LD="${LD-ld} -m elf32_sparc" + ;; + esac + ;; + *64-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_x86_64_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_x86_64" + ;; + powerpcle-*linux*) + LD="${LD-ld} -m elf64lppc" + ;; + powerpc-*linux*) + LD="${LD-ld} -m elf64ppc" + ;; + s390*-*linux*|s390*-*tpf*) + LD="${LD-ld} -m elf64_s390" + ;; + sparc*-*linux*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; + +*-*-sco3.2v5*) + # On SCO OpenServer 5, we need -belf to get full-featured binaries. + SAVE_CFLAGS=$CFLAGS + CFLAGS="$CFLAGS -belf" + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, + [AC_LANG_PUSH(C) + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) + AC_LANG_POP]) + if test yes != "$lt_cv_cc_needs_belf"; then + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf + CFLAGS=$SAVE_CFLAGS + fi + ;; +*-*solaris*) + # Find out what ABI is being produced by ac_compile, and set linker + # options accordingly. + echo 'int i;' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + case `/usr/bin/file conftest.o` in + *64-bit*) + case $lt_cv_prog_gnu_ld in + yes*) + case $host in + i?86-*-solaris*|x86_64-*-solaris*) + LD="${LD-ld} -m elf_x86_64" + ;; + sparc*-*-solaris*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + # GNU ld 2.21 introduced _sol2 emulations. Use them if available. + if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then + LD=${LD-ld}_sol2 + fi + ;; + *) + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then + LD="${LD-ld} -64" + fi + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; +esac + +need_locks=$enable_libtool_lock +])# _LT_ENABLE_LOCK + + +# _LT_PROG_AR +# ----------- +m4_defun([_LT_PROG_AR], +[AC_CHECK_TOOLS(AR, [ar], false) +: ${AR=ar} +: ${AR_FLAGS=cru} +_LT_DECL([], [AR], [1], [The archiver]) +_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) + +AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], + [lt_cv_ar_at_file=no + AC_COMPILE_IFELSE([AC_LANG_PROGRAM], + [echo conftest.$ac_objext > conftest.lst + lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' + AC_TRY_EVAL([lt_ar_try]) + if test 0 -eq "$ac_status"; then + # Ensure the archiver fails upon bogus file names. + rm -f conftest.$ac_objext libconftest.a + AC_TRY_EVAL([lt_ar_try]) + if test 0 -ne "$ac_status"; then + lt_cv_ar_at_file=@ + fi + fi + rm -f conftest.* libconftest.a + ]) + ]) + +if test no = "$lt_cv_ar_at_file"; then + archiver_list_spec= +else + archiver_list_spec=$lt_cv_ar_at_file +fi +_LT_DECL([], [archiver_list_spec], [1], + [How to feed a file listing to the archiver]) +])# _LT_PROG_AR + + +# _LT_CMD_OLD_ARCHIVE +# ------------------- +m4_defun([_LT_CMD_OLD_ARCHIVE], +[_LT_PROG_AR + +AC_CHECK_TOOL(STRIP, strip, :) +test -z "$STRIP" && STRIP=: +_LT_DECL([], [STRIP], [1], [A symbol stripping program]) + +AC_CHECK_TOOL(RANLIB, ranlib, :) +test -z "$RANLIB" && RANLIB=: +_LT_DECL([], [RANLIB], [1], + [Commands used to install an old-style archive]) + +# Determine commands to create old-style static archives. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' +old_postinstall_cmds='chmod 644 $oldlib' +old_postuninstall_cmds= + +if test -n "$RANLIB"; then + case $host_os in + bitrig* | openbsd*) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" + ;; + *) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" + ;; + esac + old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" +fi + +case $host_os in + darwin*) + lock_old_archive_extraction=yes ;; + *) + lock_old_archive_extraction=no ;; +esac +_LT_DECL([], [old_postinstall_cmds], [2]) +_LT_DECL([], [old_postuninstall_cmds], [2]) +_LT_TAGDECL([], [old_archive_cmds], [2], + [Commands used to build an old-style archive]) +_LT_DECL([], [lock_old_archive_extraction], [0], + [Whether to use a lock for old archive extraction]) +])# _LT_CMD_OLD_ARCHIVE + + +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) +# ---------------------------------------------------------------- +# Check whether the given compiler option works +AC_DEFUN([_LT_COMPILER_OPTION], +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_SED])dnl +AC_CACHE_CHECK([$1], [$2], + [$2=no + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&AS_MESSAGE_LOG_FD + echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + $2=yes + fi + fi + $RM conftest* +]) + +if test yes = "[$]$2"; then + m4_if([$5], , :, [$5]) +else + m4_if([$6], , :, [$6]) +fi +])# _LT_COMPILER_OPTION + +# Old name: +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) + + +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, +# [ACTION-SUCCESS], [ACTION-FAILURE]) +# ---------------------------------------------------- +# Check whether the given linker option works +AC_DEFUN([_LT_LINKER_OPTION], +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_SED])dnl +AC_CACHE_CHECK([$1], [$2], + [$2=no + save_LDFLAGS=$LDFLAGS + LDFLAGS="$LDFLAGS $3" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&AS_MESSAGE_LOG_FD + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + $2=yes + fi + else + $2=yes + fi + fi + $RM -r conftest* + LDFLAGS=$save_LDFLAGS +]) + +if test yes = "[$]$2"; then + m4_if([$4], , :, [$4]) +else + m4_if([$5], , :, [$5]) +fi +])# _LT_LINKER_OPTION + +# Old name: +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) + + +# LT_CMD_MAX_LEN +#--------------- +AC_DEFUN([LT_CMD_MAX_LEN], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +# find the maximum length of command line arguments +AC_MSG_CHECKING([the maximum length of command line arguments]) +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl + i=0 + teststring=ABCD + + case $build_os in + msdosdjgpp*) + # On DJGPP, this test can blow up pretty badly due to problems in libc + # (any single argument exceeding 2000 bytes causes a buffer overrun + # during glob expansion). Even if it were fixed, the result of this + # check would be larger than it should be. + lt_cv_sys_max_cmd_len=12288; # 12K is about right + ;; + + gnu*) + # Under GNU Hurd, this test is not required because there is + # no limit to the length of command line arguments. + # Libtool will interpret -1 as no limit whatsoever + lt_cv_sys_max_cmd_len=-1; + ;; + + cygwin* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, + # you end up with a "frozen" computer, even though with patience + # the test eventually succeeds (with a max line length of 256k). + # Instead, let's just punt: use the minimum linelength reported by + # all of the supported platforms: 8192 (on NT/2K/XP). + lt_cv_sys_max_cmd_len=8192; + ;; + + mint*) + # On MiNT this can take a long time and run out of memory. + lt_cv_sys_max_cmd_len=8192; + ;; + + amigaos*) + # On AmigaOS with pdksh, this test takes hours, literally. + # So we just punt and use a minimum line length of 8192. + lt_cv_sys_max_cmd_len=8192; + ;; + + bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) + # This has been around since 386BSD, at least. Likely further. + if test -x /sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` + elif test -x /usr/sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` + else + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs + fi + # And add a safety zone + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + ;; + + interix*) + # We know the value 262144 and hardcode it with a safety zone (like BSD) + lt_cv_sys_max_cmd_len=196608 + ;; + + os2*) + # The test takes a long time on OS/2. + lt_cv_sys_max_cmd_len=8192 + ;; + + osf*) + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not + # nice to cause kernel panics so lets avoid the loop below. + # First set a reasonable default. + lt_cv_sys_max_cmd_len=16384 + # + if test -x /sbin/sysconfig; then + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in + *1*) lt_cv_sys_max_cmd_len=-1 ;; + esac + fi + ;; + sco3.2v5*) + lt_cv_sys_max_cmd_len=102400 + ;; + sysv5* | sco5v6* | sysv4.2uw2*) + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` + if test -n "$kargmax"; then + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` + else + lt_cv_sys_max_cmd_len=32768 + fi + ;; + *) + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` + if test -n "$lt_cv_sys_max_cmd_len" && \ + test undefined != "$lt_cv_sys_max_cmd_len"; then + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + else + # Make teststring a little bigger before we do anything with it. + # a 1K string should be a reasonable start. + for i in 1 2 3 4 5 6 7 8; do + teststring=$teststring$teststring + done + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} + # If test is not a shell built-in, we'll probably end up computing a + # maximum length that is only half of the actual maximum length, but + # we can't tell. + while { test X`env echo "$teststring$teststring" 2>/dev/null` \ + = "X$teststring$teststring"; } >/dev/null 2>&1 && + test 17 != "$i" # 1/2 MB should be enough + do + i=`expr $i + 1` + teststring=$teststring$teststring + done + # Only check the string length outside the loop. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` + teststring= + # Add a significant safety factor because C++ compilers can tack on + # massive amounts of additional arguments before passing them to the + # linker. It appears as though 1/2 is a usable value. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` + fi + ;; + esac +]) +if test -n "$lt_cv_sys_max_cmd_len"; then + AC_MSG_RESULT($lt_cv_sys_max_cmd_len) +else + AC_MSG_RESULT(none) +fi +max_cmd_len=$lt_cv_sys_max_cmd_len +_LT_DECL([], [max_cmd_len], [0], + [What is the maximum length of a command?]) +])# LT_CMD_MAX_LEN + +# Old name: +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) + + +# _LT_HEADER_DLFCN +# ---------------- +m4_defun([_LT_HEADER_DLFCN], +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl +])# _LT_HEADER_DLFCN + + +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) +# ---------------------------------------------------------------- +m4_defun([_LT_TRY_DLOPEN_SELF], +[m4_require([_LT_HEADER_DLFCN])dnl +if test yes = "$cross_compiling"; then : + [$4] +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext <<_LT_EOF +[#line $LINENO "configure" +#include "confdefs.h" + +#if HAVE_DLFCN_H +#include +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +/* When -fvisibility=hidden is used, assume the code has been annotated + correspondingly for the symbols needed. */ +#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) +int fnord () __attribute__((visibility("default"))); +#endif + +int fnord () { return 42; } +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else + { + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + else puts (dlerror ()); + } + /* dlclose (self); */ + } + else + puts (dlerror ()); + + return status; +}] +_LT_EOF + if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) $1 ;; + x$lt_dlneed_uscore) $2 ;; + x$lt_dlunknown|x*) $3 ;; + esac + else : + # compilation failed + $3 + fi +fi +rm -fr conftest* +])# _LT_TRY_DLOPEN_SELF + + +# LT_SYS_DLOPEN_SELF +# ------------------ +AC_DEFUN([LT_SYS_DLOPEN_SELF], +[m4_require([_LT_HEADER_DLFCN])dnl +if test yes != "$enable_dlopen"; then + enable_dlopen=unknown + enable_dlopen_self=unknown + enable_dlopen_self_static=unknown +else + lt_cv_dlopen=no + lt_cv_dlopen_libs= + + case $host_os in + beos*) + lt_cv_dlopen=load_add_on + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ;; + + mingw* | pw32* | cegcc*) + lt_cv_dlopen=LoadLibrary + lt_cv_dlopen_libs= + ;; + + cygwin*) + lt_cv_dlopen=dlopen + lt_cv_dlopen_libs= + ;; + + darwin*) + # if libdl is installed we need to link against it + AC_CHECK_LIB([dl], [dlopen], + [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[ + lt_cv_dlopen=dyld + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ]) + ;; + + tpf*) + # Don't try to run any link tests for TPF. We know it's impossible + # because TPF is a cross-compiler, and we know how we open DSOs. + lt_cv_dlopen=dlopen + lt_cv_dlopen_libs= + lt_cv_dlopen_self=no + ;; + + *) + AC_CHECK_FUNC([shl_load], + [lt_cv_dlopen=shl_load], + [AC_CHECK_LIB([dld], [shl_load], + [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld], + [AC_CHECK_FUNC([dlopen], + [lt_cv_dlopen=dlopen], + [AC_CHECK_LIB([dl], [dlopen], + [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl], + [AC_CHECK_LIB([svld], [dlopen], + [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld], + [AC_CHECK_LIB([dld], [dld_link], + [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld]) + ]) + ]) + ]) + ]) + ]) + ;; + esac + + if test no = "$lt_cv_dlopen"; then + enable_dlopen=no + else + enable_dlopen=yes + fi + + case $lt_cv_dlopen in + dlopen) + save_CPPFLAGS=$CPPFLAGS + test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" + + save_LDFLAGS=$LDFLAGS + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" + + save_LIBS=$LIBS + LIBS="$lt_cv_dlopen_libs $LIBS" + + AC_CACHE_CHECK([whether a program can dlopen itself], + lt_cv_dlopen_self, [dnl + _LT_TRY_DLOPEN_SELF( + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) + ]) + + if test yes = "$lt_cv_dlopen_self"; then + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" + AC_CACHE_CHECK([whether a statically linked program can dlopen itself], + lt_cv_dlopen_self_static, [dnl + _LT_TRY_DLOPEN_SELF( + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) + ]) + fi + + CPPFLAGS=$save_CPPFLAGS + LDFLAGS=$save_LDFLAGS + LIBS=$save_LIBS + ;; + esac + + case $lt_cv_dlopen_self in + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; + *) enable_dlopen_self=unknown ;; + esac + + case $lt_cv_dlopen_self_static in + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; + *) enable_dlopen_self_static=unknown ;; + esac +fi +_LT_DECL([dlopen_support], [enable_dlopen], [0], + [Whether dlopen is supported]) +_LT_DECL([dlopen_self], [enable_dlopen_self], [0], + [Whether dlopen of programs is supported]) +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], + [Whether dlopen of statically linked programs is supported]) +])# LT_SYS_DLOPEN_SELF + +# Old name: +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) + + +# _LT_COMPILER_C_O([TAGNAME]) +# --------------------------- +# Check to see if options -c and -o are simultaneously supported by compiler. +# This macro does not hard code the compiler like AC_PROG_CC_C_O. +m4_defun([_LT_COMPILER_C_O], +[m4_require([_LT_DECL_SED])dnl +m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_TAG_COMPILER])dnl +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&AS_MESSAGE_LOG_FD + echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes + fi + fi + chmod u+w . 2>&AS_MESSAGE_LOG_FD + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* +]) +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], + [Does compiler simultaneously support -c and -o options?]) +])# _LT_COMPILER_C_O + + +# _LT_COMPILER_FILE_LOCKS([TAGNAME]) +# ---------------------------------- +# Check to see if we can do hard links to lock some files if needed +m4_defun([_LT_COMPILER_FILE_LOCKS], +[m4_require([_LT_ENABLE_LOCK])dnl +m4_require([_LT_FILEUTILS_DEFAULTS])dnl +_LT_COMPILER_C_O([$1]) + +hard_links=nottested +if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then + # do not overwrite the value of need_locks provided by the user + AC_MSG_CHECKING([if we can lock with hard links]) + hard_links=yes + $RM conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + AC_MSG_RESULT([$hard_links]) + if test no = "$hard_links"; then + AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe]) + need_locks=warn + fi +else + need_locks=no +fi +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) +])# _LT_COMPILER_FILE_LOCKS + + +# _LT_CHECK_OBJDIR +# ---------------- +m4_defun([_LT_CHECK_OBJDIR], +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], +[rm -f .libs 2>/dev/null +mkdir .libs 2>/dev/null +if test -d .libs; then + lt_cv_objdir=.libs +else + # MS-DOS does not allow filenames that begin with a dot. + lt_cv_objdir=_libs +fi +rmdir .libs 2>/dev/null]) +objdir=$lt_cv_objdir +_LT_DECL([], [objdir], [0], + [The name of the directory that contains temporary libtool files])dnl +m4_pattern_allow([LT_OBJDIR])dnl +AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/", + [Define to the sub-directory where libtool stores uninstalled libraries.]) +])# _LT_CHECK_OBJDIR + + +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) +# -------------------------------------- +# Check hardcoding attributes. +m4_defun([_LT_LINKER_HARDCODE_LIBPATH], +[AC_MSG_CHECKING([how to hardcode library paths into programs]) +_LT_TAGVAR(hardcode_action, $1)= +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || + test -n "$_LT_TAGVAR(runpath_var, $1)" || + test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then + + # We can hardcode non-existent directories. + if test no != "$_LT_TAGVAR(hardcode_direct, $1)" && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" && + test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then + # Linking always hardcodes the temporary library directory. + _LT_TAGVAR(hardcode_action, $1)=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + _LT_TAGVAR(hardcode_action, $1)=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + _LT_TAGVAR(hardcode_action, $1)=unsupported +fi +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) + +if test relink = "$_LT_TAGVAR(hardcode_action, $1)" || + test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then + # Fast installation is not supported + enable_fast_install=no +elif test yes = "$shlibpath_overrides_runpath" || + test no = "$enable_shared"; then + # Fast installation is not necessary + enable_fast_install=needless +fi +_LT_TAGDECL([], [hardcode_action], [0], + [How to hardcode a shared library path into an executable]) +])# _LT_LINKER_HARDCODE_LIBPATH + + +# _LT_CMD_STRIPLIB +# ---------------- +m4_defun([_LT_CMD_STRIPLIB], +[m4_require([_LT_DECL_EGREP]) +striplib= +old_striplib= +AC_MSG_CHECKING([whether stripping libraries is possible]) +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" + test -z "$striplib" && striplib="$STRIP --strip-unneeded" + AC_MSG_RESULT([yes]) +else +# FIXME - insert some real tests, host_os isn't really good enough + case $host_os in + darwin*) + if test -n "$STRIP"; then + striplib="$STRIP -x" + old_striplib="$STRIP -S" + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + fi + ;; + *) + AC_MSG_RESULT([no]) + ;; + esac +fi +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) +_LT_DECL([], [striplib], [1]) +])# _LT_CMD_STRIPLIB + + +# _LT_PREPARE_MUNGE_PATH_LIST +# --------------------------- +# Make sure func_munge_path_list() is defined correctly. +m4_defun([_LT_PREPARE_MUNGE_PATH_LIST], +[[# func_munge_path_list VARIABLE PATH +# ----------------------------------- +# VARIABLE is name of variable containing _space_ separated list of +# directories to be munged by the contents of PATH, which is string +# having a format: +# "DIR[:DIR]:" +# string "DIR[ DIR]" will be prepended to VARIABLE +# ":DIR[:DIR]" +# string "DIR[ DIR]" will be appended to VARIABLE +# "DIRP[:DIRP]::[DIRA:]DIRA" +# string "DIRP[ DIRP]" will be prepended to VARIABLE and string +# "DIRA[ DIRA]" will be appended to VARIABLE +# "DIR[:DIR]" +# VARIABLE will be replaced by "DIR[ DIR]" +func_munge_path_list () +{ + case x@S|@2 in + x) + ;; + *:) + eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\" + ;; + x:*) + eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\" + ;; + *::*) + eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" + eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\" + ;; + *) + eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\" + ;; + esac +} +]])# _LT_PREPARE_PATH_LIST + + +# _LT_SYS_DYNAMIC_LINKER([TAG]) +# ----------------------------- +# PORTME Fill in your ld.so characteristics +m4_defun([_LT_SYS_DYNAMIC_LINKER], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +m4_require([_LT_DECL_EGREP])dnl +m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_OBJDUMP])dnl +m4_require([_LT_DECL_SED])dnl +m4_require([_LT_CHECK_SHELL_FEATURES])dnl +m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl +AC_MSG_CHECKING([dynamic linker characteristics]) +m4_if([$1], + [], [ +if test yes = "$GCC"; then + case $host_os in + darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; + *) lt_awk_arg='/^libraries:/' ;; + esac + case $host_os in + mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;; + *) lt_sed_strip_eq='s|=/|/|g' ;; + esac + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` + case $lt_search_path_spec in + *\;*) + # if the path contains ";" then we assume it to be the separator + # otherwise default to the standard path separator (i.e. ":") - it is + # assumed that no part of a normal pathname contains ";" but that should + # okay in the real world where ";" in dirpaths is itself problematic. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` + ;; + *) + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` + ;; + esac + # Ok, now we have the path, separated by spaces, we can step through it + # and add multilib dir if necessary... + lt_tmp_lt_search_path_spec= + lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` + # ...but if some path component already ends with the multilib dir we assume + # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). + case "$lt_multi_os_dir; $lt_search_path_spec " in + "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) + lt_multi_os_dir= + ;; + esac + for lt_sys_path in $lt_search_path_spec; do + if test -d "$lt_sys_path$lt_multi_os_dir"; then + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" + elif test -n "$lt_multi_os_dir"; then + test -d "$lt_sys_path" && \ + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" + fi + done + lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' +BEGIN {RS = " "; FS = "/|\n";} { + lt_foo = ""; + lt_count = 0; + for (lt_i = NF; lt_i > 0; lt_i--) { + if ($lt_i != "" && $lt_i != ".") { + if ($lt_i == "..") { + lt_count++; + } else { + if (lt_count == 0) { + lt_foo = "/" $lt_i lt_foo; + } else { + lt_count--; + } + } + } + } + if (lt_foo != "") { lt_freq[[lt_foo]]++; } + if (lt_freq[[lt_foo]] == 1) { print lt_foo; } +}'` + # AWK program above erroneously prepends '/' to C:/dos/paths + # for these hosts. + case $host_os in + mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ + $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;; + esac + sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` +else + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" +fi]) +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=.so +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + +AC_ARG_VAR([LT_SYS_LIBRARY_PATH], +[User-defined run-time library search path.]) + +case $host_os in +aix3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname$release$shared_ext$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='$libname$release$shared_ext$major' + ;; + +aix[[4-9]]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test ia64 = "$host_cpu"; then + # AIX 5 supports IA64 + library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line '#! .'. This would cause the generated library to + # depend on '.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[[01]] | aix4.[[01]].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # Using Import Files as archive members, it is possible to support + # filename-based versioning of shared library archives on AIX. While + # this would work for both with and without runtime linking, it will + # prevent static linking of such archives. So we do filename-based + # shared library versioning with .so extension only, which is used + # when both runtime linking and shared linking is enabled. + # Unfortunately, runtime linking may impact performance, so we do + # not want this to be the default eventually. Also, we use the + # versioned .so libs for executables only if there is the -brtl + # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. + # To allow for filename-based versioning support, we need to create + # libNAME.so.V as an archive file, containing: + # *) an Import File, referring to the versioned filename of the + # archive as well as the shared archive member, telling the + # bitwidth (32 or 64) of that shared object, and providing the + # list of exported symbols of that shared object, eventually + # decorated with the 'weak' keyword + # *) the shared object with the F_LOADONLY flag set, to really avoid + # it being seen by the linker. + # At run time we better use the real file rather than another symlink, + # but for link time we create the symlink libNAME.so -> libNAME.so.V + + case $with_aix_soname,$aix_use_runtimelinking in + # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + aix,yes) # traditional libtool + dynamic_linker='AIX unversionable lib.so' + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + ;; + aix,no) # traditional AIX only + dynamic_linker='AIX lib.a[(]lib.so.V[)]' + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='$libname$release.a $libname.a' + soname_spec='$libname$release$shared_ext$major' + ;; + svr4,*) # full svr4 only + dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]" + library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' + # We do not specify a path in Import Files, so LIBPATH fires. + shlibpath_overrides_runpath=yes + ;; + *,yes) # both, prefer svr4 + dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]" + library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' + # unpreferred sharedlib libNAME.a needs extra handling + postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' + postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' + # We do not specify a path in Import Files, so LIBPATH fires. + shlibpath_overrides_runpath=yes + ;; + *,no) # both, prefer aix + dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]" + library_names_spec='$libname$release.a $libname.a' + soname_spec='$libname$release$shared_ext$major' + # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling + postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' + postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' + ;; + esac + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + case $host_cpu in + powerpc) + # Since July 2007 AmigaOS4 officially supports .so libraries. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + ;; + m68k) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + esac + ;; + +beos*) + library_names_spec='$libname$shared_ext' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[[45]]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=.dll + need_version=no + need_lib_prefix=no + + case $GCC,$cc_basename in + yes,*) + # gcc + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \$file`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname~ + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; + fi' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' +m4_if([$1], [],[ + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) + ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' + ;; + esac + dynamic_linker='Win32 ld.exe' + ;; + + *,cl*) + # Native MSVC + libname_spec='$name' + soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' + library_names_spec='$libname.dll.lib' + + case $build_os in + mingw*) + sys_lib_search_path_spec= + lt_save_ifs=$IFS + IFS=';' + for lt_path in $LIB + do + IFS=$lt_save_ifs + # Let DOS variable expansion print the short 8.3 style file name. + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" + done + IFS=$lt_save_ifs + # Convert to MSYS style. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` + ;; + cygwin*) + # Convert to unix form, then to dos form, then back to unix form + # but this time dos style (no spaces!) so that the unix form looks + # like /cygdrive/c/PROGRA~1:/cygdr... + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + ;; + *) + sys_lib_search_path_spec=$LIB + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then + # It is most probably a Windows format PATH. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + # FIXME: find the short name or the path components, as spaces are + # common. (e.g. "Program Files" -> "PROGRA~1") + ;; + esac + + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \$file`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + dynamic_linker='Win32 link.exe' + ;; + + *) + # Assume MSVC wrapper + library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib' + dynamic_linker='Win32 ld.exe' + ;; + esac + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' + soname_spec='$libname$release$major$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' +m4_if([$1], [],[ + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[[23]].*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2.*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[[01]]* | freebsdelf3.[[01]]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + *) # from 4.6 on, and DragonFly + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + esac + ;; + +haiku*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + dynamic_linker="$host_os runtime_loader" + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LIBRARY_PATH + shlibpath_overrides_runpath=no + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + if test 32 = "$HPUX_IA64_MODE"; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + sys_lib_dlsearch_path_spec=/usr/lib/hpux32 + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + sys_lib_dlsearch_path_spec=/usr/lib/hpux64 + fi + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555, ... + postinstall_cmds='chmod 555 $lib' + # or fails outright, so override atomically: + install_override_mode=555 + ;; + +interix[[3-9]]*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test yes = "$lt_cv_prog_gnu_ld"; then + version_type=linux # correct to gnu/linux during the next big refactor + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='$libname$release$shared_ext$major' + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" + sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +linux*android*) + version_type=none # Android doesn't support versioned libraries. + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext' + soname_spec='$libname$release$shared_ext' + finish_cmds= + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + dynamic_linker='Android linker' + # Don't embed -rpath directories since the linker doesn't support them. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + ;; + +# This must be glibc/ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + + # Some binutils ld are patched to set DT_RUNPATH + AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], + [lt_cv_shlibpath_overrides_runpath=no + save_LDFLAGS=$LDFLAGS + save_libdir=$libdir + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], + [lt_cv_shlibpath_overrides_runpath=yes])]) + LDFLAGS=$save_LDFLAGS + libdir=$save_libdir + ]) + shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath + + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # Add ABI-specific directories to the system library path. + sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" + + # Ideally, we could use ldconfig to report *all* directores which are + # searched for libraries, however this is still not possible. Aside from not + # being certain /sbin/ldconfig is available, command + # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, + # even though it is searched at run-time. Try to do the best guess by + # appending ld.so.conf contents (and includes) to the search path. + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +*nto* | *qnx*) + version_type=qnx + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='ldqnx.so' + ;; + +openbsd* | bitrig*) + version_type=sunos + sys_lib_dlsearch_path_spec=/usr/lib + need_lib_prefix=no + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then + need_version=no + else + need_version=yes + fi + library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +os2*) + libname_spec='$name' + version_type=windows + shrext_cmds=.dll + need_version=no + need_lib_prefix=no + # OS/2 can only load a DLL with a base name of 8 characters or less. + soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; + v=$($ECHO $release$versuffix | tr -d .-); + n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); + $ECHO $n$v`$shared_ext' + library_names_spec='${libname}_dll.$libext' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=BEGINLIBPATH + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + postinstall_cmds='base_file=`basename \$file`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname~ + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; + fi' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='$libname$release$shared_ext$major' + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + +rdos*) + dynamic_linker=no + ;; + +solaris*) + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test yes = "$with_gnu_ld"; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.3*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec; then + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' + soname_spec='$libname$shared_ext.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + version_type=sco + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + if test yes = "$with_gnu_ld"; then + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' + else + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' + case $host_os in + sco3.2v5*) + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" + ;; + esac + fi + sys_lib_dlsearch_path_spec='/usr/lib' + ;; + +tpf*) + # TPF is a cross-target only. Preferred cross-host = GNU/Linux. + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +uts4*) + version_type=linux # correct to gnu/linux during the next big refactor + library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' + soname_spec='$libname$release$shared_ext$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +AC_MSG_RESULT([$dynamic_linker]) +test no = "$dynamic_linker" && can_build_shared=no + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test yes = "$GCC"; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then + sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec +fi + +if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then + sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec +fi + +# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... +configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec + +# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code +func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" + +# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool +configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH + +_LT_DECL([], [variables_saved_for_relink], [1], + [Variables whose values should be saved in libtool wrapper scripts and + restored at link time]) +_LT_DECL([], [need_lib_prefix], [0], + [Do we need the "lib" prefix for modules?]) +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) +_LT_DECL([], [version_type], [0], [Library versioning type]) +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) +_LT_DECL([], [shlibpath_overrides_runpath], [0], + [Is shlibpath searched before the hard-coded library search path?]) +_LT_DECL([], [libname_spec], [1], [Format of library name prefix]) +_LT_DECL([], [library_names_spec], [1], + [[List of archive names. First name is the real one, the rest are links. + The last name is the one that the linker finds with -lNAME]]) +_LT_DECL([], [soname_spec], [1], + [[The coded name of the library, if different from the real name]]) +_LT_DECL([], [install_override_mode], [1], + [Permission mode override for installation of shared libraries]) +_LT_DECL([], [postinstall_cmds], [2], + [Command to use after installation of a shared archive]) +_LT_DECL([], [postuninstall_cmds], [2], + [Command to use after uninstallation of a shared archive]) +_LT_DECL([], [finish_cmds], [2], + [Commands used to finish a libtool library installation in a directory]) +_LT_DECL([], [finish_eval], [1], + [[As "finish_cmds", except a single script fragment to be evaled but + not shown]]) +_LT_DECL([], [hardcode_into_libs], [0], + [Whether we should hardcode library paths into libraries]) +_LT_DECL([], [sys_lib_search_path_spec], [2], + [Compile-time system search path for libraries]) +_LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2], + [Detected run-time system search path for libraries]) +_LT_DECL([], [configure_time_lt_sys_library_path], [2], + [Explicit LT_SYS_LIBRARY_PATH set during ./configure time]) +])# _LT_SYS_DYNAMIC_LINKER + + +# _LT_PATH_TOOL_PREFIX(TOOL) +# -------------------------- +# find a file program that can recognize shared library +AC_DEFUN([_LT_PATH_TOOL_PREFIX], +[m4_require([_LT_DECL_EGREP])dnl +AC_MSG_CHECKING([for $1]) +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, +[case $MAGIC_CMD in +[[\\/*] | ?:[\\/]*]) + lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD=$MAGIC_CMD + lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR +dnl $ac_dummy forces splitting on constant user-supplied paths. +dnl POSIX.2 word splitting is done only on the output of word expansions, +dnl not every word. This closes a longstanding sh security hole. + ac_dummy="m4_if([$2], , $PATH, [$2])" + for ac_dir in $ac_dummy; do + IFS=$lt_save_ifs + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$1"; then + lt_cv_path_MAGIC_CMD=$ac_dir/"$1" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD=$lt_cv_path_MAGIC_CMD + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <<_LT_EOF 1>&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +_LT_EOF + fi ;; + esac + fi + break + fi + done + IFS=$lt_save_ifs + MAGIC_CMD=$lt_save_MAGIC_CMD + ;; +esac]) +MAGIC_CMD=$lt_cv_path_MAGIC_CMD +if test -n "$MAGIC_CMD"; then + AC_MSG_RESULT($MAGIC_CMD) +else + AC_MSG_RESULT(no) +fi +_LT_DECL([], [MAGIC_CMD], [0], + [Used to examine libraries when file_magic_cmd begins with "file"])dnl +])# _LT_PATH_TOOL_PREFIX + +# Old name: +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) + + +# _LT_PATH_MAGIC +# -------------- +# find a file program that can recognize a shared library +m4_defun([_LT_PATH_MAGIC], +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) +if test -z "$lt_cv_path_MAGIC_CMD"; then + if test -n "$ac_tool_prefix"; then + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) + else + MAGIC_CMD=: + fi +fi +])# _LT_PATH_MAGIC + + +# LT_PATH_LD +# ---------- +# find the pathname to the GNU or non-GNU linker +AC_DEFUN([LT_PATH_LD], +[AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_CANONICAL_BUILD])dnl +m4_require([_LT_DECL_SED])dnl +m4_require([_LT_DECL_EGREP])dnl +m4_require([_LT_PROG_ECHO_BACKSLASH])dnl + +AC_ARG_WITH([gnu-ld], + [AS_HELP_STRING([--with-gnu-ld], + [assume the C compiler uses GNU ld @<:@default=no@:>@])], + [test no = "$withval" || with_gnu_ld=yes], + [with_gnu_ld=no])dnl + +ac_prog=ld +if test yes = "$GCC"; then + # Check if gcc -print-prog-name=ld gives a path. + AC_MSG_CHECKING([for ld used by $CC]) + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return, which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [[\\/]]* | ?:[[\\/]]*) + re_direlt='/[[^/]][[^/]]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD=$ac_prog + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test yes = "$with_gnu_ld"; then + AC_MSG_CHECKING([for GNU ld]) +else + AC_MSG_CHECKING([for non-GNU ld]) +fi +AC_CACHE_VAL(lt_cv_path_LD, +[if test -z "$LD"; then + lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS=$lt_save_ifs + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD=$ac_dir/$ac_prog + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &1 conftest.i +cat conftest.i conftest.i >conftest2.i +: ${lt_DD:=$DD} +AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd], +[if "$ac_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then + cmp -s conftest.i conftest.out \ + && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: +fi]) +rm -f conftest.i conftest2.i conftest.out]) +])# _LT_PATH_DD + + +# _LT_CMD_TRUNCATE +# ---------------- +# find command to truncate a binary pipe +m4_defun([_LT_CMD_TRUNCATE], +[m4_require([_LT_PATH_DD]) +AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin], +[printf 0123456789abcdef0123456789abcdef >conftest.i +cat conftest.i conftest.i >conftest2.i +lt_cv_truncate_bin= +if "$ac_cv_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then + cmp -s conftest.i conftest.out \ + && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" +fi +rm -f conftest.i conftest2.i conftest.out +test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"]) +_LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1], + [Command to truncate a binary pipe]) +])# _LT_CMD_TRUNCATE + + +# _LT_CHECK_MAGIC_METHOD +# ---------------------- +# how to check for library dependencies +# -- PORTME fill in with the dynamic library characteristics +m4_defun([_LT_CHECK_MAGIC_METHOD], +[m4_require([_LT_DECL_EGREP]) +m4_require([_LT_DECL_OBJDUMP]) +AC_CACHE_CHECK([how to recognize dependent libraries], +lt_cv_deplibs_check_method, +[lt_cv_file_magic_cmd='$MAGIC_CMD' +lt_cv_file_magic_test_file= +lt_cv_deplibs_check_method='unknown' +# Need to set the preceding variable on all platforms that support +# interlibrary dependencies. +# 'none' -- dependencies not supported. +# 'unknown' -- same as none, but documents that we really don't know. +# 'pass_all' -- all dependencies passed with no checks. +# 'test_compile' -- check by making test program. +# 'file_magic [[regex]]' -- check by looking for files in library path +# that responds to the $file_magic_cmd with a given extended regex. +# If you have 'file' or equivalent on your system and you're not sure +# whether 'pass_all' will *always* work, you probably want this one. + +case $host_os in +aix[[4-9]]*) + lt_cv_deplibs_check_method=pass_all + ;; + +beos*) + lt_cv_deplibs_check_method=pass_all + ;; + +bsdi[[45]]*) + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' + lt_cv_file_magic_cmd='/usr/bin/file -L' + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +cygwin*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + ;; + +mingw* | pw32*) + # Base MSYS/MinGW do not provide the 'file' command needed by + # func_win32_libid shell function, so use a weaker test based on 'objdump', + # unless we find 'file', for example because we are cross-compiling. + if ( file / ) >/dev/null 2>&1; then + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + else + # Keep this pattern in sync with the one in func_win32_libid. + lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' + lt_cv_file_magic_cmd='$OBJDUMP -f' + fi + ;; + +cegcc*) + # use the weaker test based on 'objdump'. See mingw*. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' + lt_cv_file_magic_cmd='$OBJDUMP -f' + ;; + +darwin* | rhapsody*) + lt_cv_deplibs_check_method=pass_all + ;; + +freebsd* | dragonfly*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + case $host_cpu in + i*86 ) + # Not sure whether the presence of OpenBSD here was a mistake. + # Let's accept both of them until this is cleared up. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` + ;; + esac + else + lt_cv_deplibs_check_method=pass_all + fi + ;; + +haiku*) + lt_cv_deplibs_check_method=pass_all + ;; + +hpux10.20* | hpux11*) + lt_cv_file_magic_cmd=/usr/bin/file + case $host_cpu in + ia64*) + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so + ;; + hppa*64*) + [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'] + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl + ;; + *) + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' + lt_cv_file_magic_test_file=/usr/lib/libc.sl + ;; + esac + ;; + +interix[[3-9]]*) + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' + ;; + +irix5* | irix6* | nonstopux*) + case $LD in + *-32|*"-32 ") libmagic=32-bit;; + *-n32|*"-n32 ") libmagic=N32;; + *-64|*"-64 ") libmagic=64-bit;; + *) libmagic=never-match;; + esac + lt_cv_deplibs_check_method=pass_all + ;; + +# This must be glibc/ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + lt_cv_deplibs_check_method=pass_all + ;; + +netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' + fi + ;; + +newos6*) + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=/usr/lib/libnls.so + ;; + +*nto* | *qnx*) + lt_cv_deplibs_check_method=pass_all + ;; + +openbsd* | bitrig*) + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' + fi + ;; + +osf3* | osf4* | osf5*) + lt_cv_deplibs_check_method=pass_all + ;; + +rdos*) + lt_cv_deplibs_check_method=pass_all + ;; + +solaris*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv4 | sysv4.3*) + case $host_vendor in + motorola) + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` + ;; + ncr) + lt_cv_deplibs_check_method=pass_all + ;; + sequent) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' + ;; + sni) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" + lt_cv_file_magic_test_file=/lib/libc.so + ;; + siemens) + lt_cv_deplibs_check_method=pass_all + ;; + pc) + lt_cv_deplibs_check_method=pass_all + ;; + esac + ;; + +tpf*) + lt_cv_deplibs_check_method=pass_all + ;; +os2*) + lt_cv_deplibs_check_method=pass_all + ;; +esac +]) + +file_magic_glob= +want_nocaseglob=no +if test "$build" = "$host"; then + case $host_os in + mingw* | pw32*) + if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then + want_nocaseglob=yes + else + file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` + fi + ;; + esac +fi + +file_magic_cmd=$lt_cv_file_magic_cmd +deplibs_check_method=$lt_cv_deplibs_check_method +test -z "$deplibs_check_method" && deplibs_check_method=unknown + +_LT_DECL([], [deplibs_check_method], [1], + [Method to check whether dependent libraries are shared objects]) +_LT_DECL([], [file_magic_cmd], [1], + [Command to use when deplibs_check_method = "file_magic"]) +_LT_DECL([], [file_magic_glob], [1], + [How to find potential files when deplibs_check_method = "file_magic"]) +_LT_DECL([], [want_nocaseglob], [1], + [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) +])# _LT_CHECK_MAGIC_METHOD + + +# LT_PATH_NM +# ---------- +# find the pathname to a BSD- or MS-compatible name lister +AC_DEFUN([LT_PATH_NM], +[AC_REQUIRE([AC_PROG_CC])dnl +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, +[if test -n "$NM"; then + # Let the user override the test. + lt_cv_path_NM=$NM +else + lt_nm_to_check=${ac_tool_prefix}nm + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then + lt_nm_to_check="$lt_nm_to_check nm" + fi + for lt_tmp_nm in $lt_nm_to_check; do + lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do + IFS=$lt_save_ifs + test -z "$ac_dir" && ac_dir=. + tmp_nm=$ac_dir/$lt_tmp_nm + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then + # Check to see if the nm accepts a BSD-compat flag. + # Adding the 'sed 1q' prevents false positives on HP-UX, which says: + # nm: unknown option "B" ignored + # Tru64's nm complains that /dev/null is an invalid object file + # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty + case $build_os in + mingw*) lt_bad_file=conftest.nm/nofile ;; + *) lt_bad_file=/dev/null ;; + esac + case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in + *$lt_bad_file* | *'Invalid file or object type'*) + lt_cv_path_NM="$tmp_nm -B" + break 2 + ;; + *) + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in + */dev/null*) + lt_cv_path_NM="$tmp_nm -p" + break 2 + ;; + *) + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but + continue # so that we can try to find one that supports BSD flags + ;; + esac + ;; + esac + fi + done + IFS=$lt_save_ifs + done + : ${lt_cv_path_NM=no} +fi]) +if test no != "$lt_cv_path_NM"; then + NM=$lt_cv_path_NM +else + # Didn't find any BSD compatible name lister, look for dumpbin. + if test -n "$DUMPBIN"; then : + # Let the user override the test. + else + AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) + case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in + *COFF*) + DUMPBIN="$DUMPBIN -symbols -headers" + ;; + *) + DUMPBIN=: + ;; + esac + fi + AC_SUBST([DUMPBIN]) + if test : != "$DUMPBIN"; then + NM=$DUMPBIN + fi +fi +test -z "$NM" && NM=nm +AC_SUBST([NM]) +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl + +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], + [lt_cv_nm_interface="BSD nm" + echo "int some_variable = 0;" > conftest.$ac_ext + (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) + (eval "$ac_compile" 2>conftest.err) + cat conftest.err >&AS_MESSAGE_LOG_FD + (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) + cat conftest.err >&AS_MESSAGE_LOG_FD + (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) + cat conftest.out >&AS_MESSAGE_LOG_FD + if $GREP 'External.*some_variable' conftest.out > /dev/null; then + lt_cv_nm_interface="MS dumpbin" + fi + rm -f conftest*]) +])# LT_PATH_NM + +# Old names: +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AM_PROG_NM], []) +dnl AC_DEFUN([AC_PROG_NM], []) + +# _LT_CHECK_SHAREDLIB_FROM_LINKLIB +# -------------------------------- +# how to determine the name of the shared library +# associated with a specific link library. +# -- PORTME fill in with the dynamic library characteristics +m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], +[m4_require([_LT_DECL_EGREP]) +m4_require([_LT_DECL_OBJDUMP]) +m4_require([_LT_DECL_DLLTOOL]) +AC_CACHE_CHECK([how to associate runtime and link libraries], +lt_cv_sharedlib_from_linklib_cmd, +[lt_cv_sharedlib_from_linklib_cmd='unknown' + +case $host_os in +cygwin* | mingw* | pw32* | cegcc*) + # two different shell functions defined in ltmain.sh; + # decide which one to use based on capabilities of $DLLTOOL + case `$DLLTOOL --help 2>&1` in + *--identify-strict*) + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib + ;; + *) + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback + ;; + esac + ;; +*) + # fallback: assume linklib IS sharedlib + lt_cv_sharedlib_from_linklib_cmd=$ECHO + ;; +esac +]) +sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd +test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO + +_LT_DECL([], [sharedlib_from_linklib_cmd], [1], + [Command to associate shared and link libraries]) +])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB + + +# _LT_PATH_MANIFEST_TOOL +# ---------------------- +# locate the manifest tool +m4_defun([_LT_PATH_MANIFEST_TOOL], +[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) +test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt +AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], + [lt_cv_path_mainfest_tool=no + echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD + $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out + cat conftest.err >&AS_MESSAGE_LOG_FD + if $GREP 'Manifest Tool' conftest.out > /dev/null; then + lt_cv_path_mainfest_tool=yes + fi + rm -f conftest*]) +if test yes != "$lt_cv_path_mainfest_tool"; then + MANIFEST_TOOL=: +fi +_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl +])# _LT_PATH_MANIFEST_TOOL + + +# _LT_DLL_DEF_P([FILE]) +# --------------------- +# True iff FILE is a Windows DLL '.def' file. +# Keep in sync with func_dll_def_p in the libtool script +AC_DEFUN([_LT_DLL_DEF_P], +[dnl + test DEF = "`$SED -n dnl + -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace + -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments + -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl + -e q dnl Only consider the first "real" line + $1`" dnl +])# _LT_DLL_DEF_P + + +# LT_LIB_M +# -------- +# check for math library +AC_DEFUN([LT_LIB_M], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +LIBM= +case $host in +*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) + # These system don't have libm, or don't need it + ;; +*-ncr-sysv4.3*) + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw) + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") + ;; +*) + AC_CHECK_LIB(m, cos, LIBM=-lm) + ;; +esac +AC_SUBST([LIBM]) +])# LT_LIB_M + +# Old name: +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_CHECK_LIBM], []) + + +# _LT_COMPILER_NO_RTTI([TAGNAME]) +# ------------------------------- +m4_defun([_LT_COMPILER_NO_RTTI], +[m4_require([_LT_TAG_COMPILER])dnl + +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= + +if test yes = "$GCC"; then + case $cc_basename in + nvcc*) + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; + *) + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; + esac + + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], + lt_cv_prog_compiler_rtti_exceptions, + [-fno-rtti -fno-exceptions], [], + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) +fi +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], + [Compiler flag to turn off builtin functions]) +])# _LT_COMPILER_NO_RTTI + + +# _LT_CMD_GLOBAL_SYMBOLS +# ---------------------- +m4_defun([_LT_CMD_GLOBAL_SYMBOLS], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([AC_PROG_AWK])dnl +AC_REQUIRE([LT_PATH_NM])dnl +AC_REQUIRE([LT_PATH_LD])dnl +m4_require([_LT_DECL_SED])dnl +m4_require([_LT_DECL_EGREP])dnl +m4_require([_LT_TAG_COMPILER])dnl + +# Check for command to grab the raw symbol name followed by C symbol from nm. +AC_MSG_CHECKING([command to parse $NM output from $compiler object]) +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], +[ +# These are sane defaults that work on at least a few old systems. +# [They come from Ultrix. What could be older than Ultrix?!! ;)] + +# Character class describing NM global symbol codes. +symcode='[[BCDEGRST]]' + +# Regexp to match symbols that can be accessed directly from C. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' + +# Define system-specific variables. +case $host_os in +aix*) + symcode='[[BCDT]]' + ;; +cygwin* | mingw* | pw32* | cegcc*) + symcode='[[ABCDGISTW]]' + ;; +hpux*) + if test ia64 = "$host_cpu"; then + symcode='[[ABCDEGRST]]' + fi + ;; +irix* | nonstopux*) + symcode='[[BCDEGRST]]' + ;; +osf*) + symcode='[[BCDEGQRST]]' + ;; +solaris*) + symcode='[[BDRT]]' + ;; +sco3.2v5*) + symcode='[[DT]]' + ;; +sysv4.2uw2*) + symcode='[[DT]]' + ;; +sysv5* | sco5v6* | unixware* | OpenUNIX*) + symcode='[[ABDT]]' + ;; +sysv4) + symcode='[[DFNSTU]]' + ;; +esac + +# If we're using GNU nm, then use its standard symbol codes. +case `$NM -V 2>&1` in +*GNU* | *'with BFD'*) + symcode='[[ABCDGIRSTW]]' ;; +esac + +if test "$lt_cv_nm_interface" = "MS dumpbin"; then + # Gets list of data symbols to import. + lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" + # Adjust the below global symbol transforms to fixup imported variables. + lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" + lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" + lt_c_name_lib_hook="\ + -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ + -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" +else + # Disable hooks by default. + lt_cv_sys_global_symbol_to_import= + lt_cdecl_hook= + lt_c_name_hook= + lt_c_name_lib_hook= +fi + +# Transform an extracted symbol line into a proper C declaration. +# Some systems (esp. on ia64) link data and code symbols differently, +# so use this general approach. +lt_cv_sys_global_symbol_to_cdecl="sed -n"\ +$lt_cdecl_hook\ +" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ +" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" + +# Transform an extracted symbol line into symbol name and symbol address +lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ +$lt_c_name_hook\ +" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ +" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" + +# Transform an extracted symbol line into symbol name with lib prefix and +# symbol address. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ +$lt_c_name_lib_hook\ +" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ +" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ +" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" + +# Handle CRLF in mingw tool chain +opt_cr= +case $build_os in +mingw*) + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp + ;; +esac + +# Try without a prefix underscore, then with it. +for ac_symprfx in "" "_"; do + + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. + symxfrm="\\1 $ac_symprfx\\2 \\2" + + # Write the raw and C identifiers. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then + # Fake it for dumpbin and say T for any non-static function, + # D for any global variable and I for any imported variable. + # Also find C++ and __fastcall symbols from MSVC++, + # which start with @ or ?. + lt_cv_sys_global_symbol_pipe="$AWK ['"\ +" {last_section=section; section=\$ 3};"\ +" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ +" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ +" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ +" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ +" \$ 0!~/External *\|/{next};"\ +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ +" {if(hide[section]) next};"\ +" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ +" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ +" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ +" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ +" ' prfx=^$ac_symprfx]" + else + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" + fi + lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" + + # Check to see that the pipe works correctly. + pipe_works=no + + rm -f conftest* + cat > conftest.$ac_ext <<_LT_EOF +#ifdef __cplusplus +extern "C" { +#endif +char nm_test_var; +void nm_test_func(void); +void nm_test_func(void){} +#ifdef __cplusplus +} +#endif +int main(){nm_test_var='a';nm_test_func();return(0);} +_LT_EOF + + if AC_TRY_EVAL(ac_compile); then + # Now try to grab the symbols. + nlist=conftest.nm + if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then + # Try sorting and uniquifying the output. + if sort "$nlist" | uniq > "$nlist"T; then + mv -f "$nlist"T "$nlist" + else + rm -f "$nlist"T + fi + + # Make sure that we snagged all the symbols we need. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then + cat <<_LT_EOF > conftest.$ac_ext +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ +#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE +/* DATA imports from DLLs on WIN32 can't be const, because runtime + relocations are performed -- see ld's documentation on pseudo-relocs. */ +# define LT@&t@_DLSYM_CONST +#elif defined __osf__ +/* This system does not cope well with relocations in const data. */ +# define LT@&t@_DLSYM_CONST +#else +# define LT@&t@_DLSYM_CONST const +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +_LT_EOF + # Now generate the symbol file. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' + + cat <<_LT_EOF >> conftest.$ac_ext + +/* The mapping between symbol names and symbols. */ +LT@&t@_DLSYM_CONST struct { + const char *name; + void *address; +} +lt__PROGRAM__LTX_preloaded_symbols[[]] = +{ + { "@PROGRAM@", (void *) 0 }, +_LT_EOF + $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext + cat <<\_LT_EOF >> conftest.$ac_ext + {0, (void *) 0} +}; + +/* This works around a problem in FreeBSD linker */ +#ifdef FREEBSD_WORKAROUND +static const void *lt_preloaded_setup() { + return lt__PROGRAM__LTX_preloaded_symbols; +} +#endif + +#ifdef __cplusplus +} +#endif +_LT_EOF + # Now try linking the two files. + mv conftest.$ac_objext conftstm.$ac_objext + lt_globsym_save_LIBS=$LIBS + lt_globsym_save_CFLAGS=$CFLAGS + LIBS=conftstm.$ac_objext + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" + if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then + pipe_works=yes + fi + LIBS=$lt_globsym_save_LIBS + CFLAGS=$lt_globsym_save_CFLAGS + else + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD + fi + else + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD + fi + else + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD + fi + else + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD + cat conftest.$ac_ext >&5 + fi + rm -rf conftest* conftst* + + # Do not use the global_symbol_pipe unless it works. + if test yes = "$pipe_works"; then + break + else + lt_cv_sys_global_symbol_pipe= + fi +done +]) +if test -z "$lt_cv_sys_global_symbol_pipe"; then + lt_cv_sys_global_symbol_to_cdecl= +fi +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then + AC_MSG_RESULT(failed) +else + AC_MSG_RESULT(ok) +fi + +# Response file support. +if test "$lt_cv_nm_interface" = "MS dumpbin"; then + nm_file_list_spec='@' +elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then + nm_file_list_spec='@' +fi + +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], + [Take the output of nm and produce a listing of raw symbols and C names]) +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], + [Transform the output of nm in a proper C declaration]) +_LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1], + [Transform the output of nm into a list of symbols to manually relocate]) +_LT_DECL([global_symbol_to_c_name_address], + [lt_cv_sys_global_symbol_to_c_name_address], [1], + [Transform the output of nm in a C name address pair]) +_LT_DECL([global_symbol_to_c_name_address_lib_prefix], + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], + [Transform the output of nm in a C name address pair when lib prefix is needed]) +_LT_DECL([nm_interface], [lt_cv_nm_interface], [1], + [The name lister interface]) +_LT_DECL([], [nm_file_list_spec], [1], + [Specify filename containing input files for $NM]) +]) # _LT_CMD_GLOBAL_SYMBOLS + + +# _LT_COMPILER_PIC([TAGNAME]) +# --------------------------- +m4_defun([_LT_COMPILER_PIC], +[m4_require([_LT_TAG_COMPILER])dnl +_LT_TAGVAR(lt_prog_compiler_wl, $1)= +_LT_TAGVAR(lt_prog_compiler_pic, $1)= +_LT_TAGVAR(lt_prog_compiler_static, $1)= + +m4_if([$1], [CXX], [ + # C++ specific cases for pic, static, wl, etc. + if test yes = "$GXX"; then + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test ia64 = "$host_cpu"; then + # AIX 5 now supports IA64 processor + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + fi + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + m68k) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the '-m68020' flag to GCC prevents building anything better, + # like '-m68040'. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' + ;; + esac + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + mingw* | cygwin* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + m4_if([$1], [GCJ], [], + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) + case $host_os in + os2*) + _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' + ;; + esac + ;; + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' + ;; + *djgpp*) + # DJGPP does not support shared libraries at all + _LT_TAGVAR(lt_prog_compiler_pic, $1)= + ;; + haiku*) + # PIC is the default for Haiku. + # The "-static" flag exists, but is broken. + _LT_TAGVAR(lt_prog_compiler_static, $1)= + ;; + interix[[3-9]]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + sysv4*MP*) + if test -d /usr/nec; then + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic + fi + ;; + hpux*) + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. + case $host_cpu in + hppa*64*) + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + ;; + *qnx* | *nto*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + else + case $host_os in + aix[[4-9]]*) + # All AIX code is PIC. + if test ia64 = "$host_cpu"; then + # AIX 5 now supports IA64 processor + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + else + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' + fi + ;; + chorus*) + case $cc_basename in + cxch68*) + # Green Hills C++ Compiler + # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" + ;; + esac + ;; + mingw* | cygwin* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + m4_if([$1], [GCJ], [], + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) + ;; + dgux*) + case $cc_basename in + ec++*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + ;; + ghcx*) + # Green Hills C++ Compiler + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + ;; + *) + ;; + esac + ;; + freebsd* | dragonfly*) + # FreeBSD uses GNU C++ + ;; + hpux9* | hpux10* | hpux11*) + case $cc_basename in + CC*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' + if test ia64 != "$host_cpu"; then + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' + fi + ;; + aCC*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' + ;; + esac + ;; + *) + ;; + esac + ;; + interix*) + # This is c89, which is MS Visual C++ (no shared libs) + # Anyone wants to do a port? + ;; + irix5* | irix6* | nonstopux*) + case $cc_basename in + CC*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + # CC pic flag -KPIC is the default. + ;; + *) + ;; + esac + ;; + linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + case $cc_basename in + KCC*) + # KAI C++ Compiler + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + ecpc* ) + # old Intel C++ for x86_64, which still supported -KPIC. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + icpc* ) + # Intel C++, used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + cxx*) + # Compaq C++ + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + _LT_TAGVAR(lt_prog_compiler_pic, $1)= + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) + # IBM XL 8.0, 9.0 on PPC and BlueGene + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' + ;; + esac + ;; + esac + ;; + lynxos*) + ;; + m88k*) + ;; + mvs*) + case $cc_basename in + cxx*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' + ;; + *) + ;; + esac + ;; + netbsd*) + ;; + *qnx* | *nto*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' + ;; + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' + ;; + RCC*) + # Rational C++ 2.4.1 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + ;; + cxx*) + # Digital/Compaq C++ + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + _LT_TAGVAR(lt_prog_compiler_pic, $1)= + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + *) + ;; + esac + ;; + psos*) + ;; + solaris*) + case $cc_basename in + CC* | sunCC*) + # Sun C++ 4.2, 5.x and Centerline C++ + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' + ;; + gcx*) + # Green Hills C++ Compiler + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' + ;; + *) + ;; + esac + ;; + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + lcc*) + # Lucid + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + ;; + *) + ;; + esac + ;; + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + case $cc_basename in + CC*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + esac + ;; + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + ;; + *) + ;; + esac + ;; + vxworks*) + ;; + *) + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + ;; + esac + fi +], +[ + if test yes = "$GCC"; then + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test ia64 = "$host_cpu"; then + # AIX 5 now supports IA64 processor + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + fi + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + m68k) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the '-m68020' flag to GCC prevents building anything better, + # like '-m68040'. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' + ;; + esac + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + + mingw* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + m4_if([$1], [GCJ], [], + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) + case $host_os in + os2*) + _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' + ;; + esac + ;; + + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' + ;; + + haiku*) + # PIC is the default for Haiku. + # The "-static" flag exists, but is broken. + _LT_TAGVAR(lt_prog_compiler_static, $1)= + ;; + + hpux*) + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. + case $host_cpu in + hppa*64*) + # +Z the default + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + ;; + + interix[[3-9]]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + + msdosdjgpp*) + # Just because we use GCC doesn't mean we suddenly get shared libraries + # on systems that don't support them. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + enable_shared=no + ;; + + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic + fi + ;; + + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + + case $cc_basename in + nvcc*) # Cuda Compiler Driver 2.2 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' + if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then + _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)" + fi + ;; + esac + else + # PORTME Check for flag to pass linker flags through the system compiler. + case $host_os in + aix*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + if test ia64 = "$host_cpu"; then + # AIX 5 now supports IA64 processor + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + else + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' + fi + ;; + + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' + case $cc_basename in + nagfor*) + # NAG Fortran compiler + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + esac + ;; + + mingw* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + m4_if([$1], [GCJ], [], + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) + case $host_os in + os2*) + _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' + ;; + esac + ;; + + hpux9* | hpux10* | hpux11*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' + ;; + esac + # Is there a better lt_prog_compiler_static that works with the bundled CC? + _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' + ;; + + irix5* | irix6* | nonstopux*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # PIC (with -KPIC) is the default. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + + linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + case $cc_basename in + # old Intel for x86_64, which still supported -KPIC. + ecc*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + # icc used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + icc* | ifort*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + # Lahey Fortran 8.1. + lf95*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' + _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' + ;; + nagfor*) + # NAG Fortran compiler + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + tcc*) + # Fabrice Bellard et al's Tiny C Compiler + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) + # Portland Group compilers (*not* the Pentium gcc compiler, + # which looks to be a dead project) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + ccc*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # All Alpha code is PIC. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + xl* | bgxl* | bgf* | mpixl*) + # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*) + # Sun Fortran 8.3 passes all unrecognized flags to the linker + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_TAGVAR(lt_prog_compiler_wl, $1)='' + ;; + *Sun\ F* | *Sun*Fortran*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' + ;; + *Sun\ C*) + # Sun C 5.9 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + ;; + *Intel*\ [[CF]]*Compiler*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + *Portland\ Group*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + esac + ;; + esac + ;; + + newsos6) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' + ;; + + osf3* | osf4* | osf5*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # All OSF/1 code is PIC. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + + rdos*) + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + + solaris*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + case $cc_basename in + f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; + *) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; + esac + ;; + + sunos4*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + sysv4 | sysv4.2uw2* | sysv4.3*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + fi + ;; + + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + unicos*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + ;; + + uts4*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + *) + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + ;; + esac + fi +]) +case $host_os in + # For platforms that do not support PIC, -DPIC is meaningless: + *djgpp*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)= + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" + ;; +esac + +AC_CACHE_CHECK([for $compiler option to produce PIC], + [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], + [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) +_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in + "" | " "*) ;; + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; + esac], + [_LT_TAGVAR(lt_prog_compiler_pic, $1)= + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) +fi +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], + [Additional compiler flags for building library objects]) + +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], + [How to pass a linker flag through the compiler]) +# +# Check to make sure the static flag actually works. +# +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), + $lt_tmp_static_flag, + [], + [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], + [Compiler flag to prevent dynamic linking]) +])# _LT_COMPILER_PIC + + +# _LT_LINKER_SHLIBS([TAGNAME]) +# ---------------------------- +# See if the linker supports building shared libraries. +m4_defun([_LT_LINKER_SHLIBS], +[AC_REQUIRE([LT_PATH_LD])dnl +AC_REQUIRE([LT_PATH_NM])dnl +m4_require([_LT_PATH_MANIFEST_TOOL])dnl +m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_EGREP])dnl +m4_require([_LT_DECL_SED])dnl +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl +m4_require([_LT_TAG_COMPILER])dnl +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) +m4_if([$1], [CXX], [ + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] + case $host_os in + aix[[4-9]]*) + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to GNU nm, but means don't demangle to AIX nm. + # Without the "-l" option, or with the "-B" option, AIX nm treats + # weak defined symbols like other global defined symbols, whereas + # GNU nm marks them as "W". + # While the 'weak' keyword is ignored in the Export File, we need + # it in the Import File for the 'aix-soname' feature, so we have + # to replace the "-B" option with "-P" for AIX nm. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' + else + _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' + fi + ;; + pw32*) + _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds + ;; + cygwin* | mingw* | cegcc*) + case $cc_basename in + cl*) + _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' + ;; + *) + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' + _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] + ;; + esac + ;; + *) + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + ;; + esac +], [ + runpath_var= + _LT_TAGVAR(allow_undefined_flag, $1)= + _LT_TAGVAR(always_export_symbols, $1)=no + _LT_TAGVAR(archive_cmds, $1)= + _LT_TAGVAR(archive_expsym_cmds, $1)= + _LT_TAGVAR(compiler_needs_object, $1)=no + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no + _LT_TAGVAR(export_dynamic_flag_spec, $1)= + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + _LT_TAGVAR(hardcode_automatic, $1)=no + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_direct_absolute, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= + _LT_TAGVAR(hardcode_libdir_separator, $1)= + _LT_TAGVAR(hardcode_minus_L, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported + _LT_TAGVAR(inherit_rpath, $1)=no + _LT_TAGVAR(link_all_deplibs, $1)=unknown + _LT_TAGVAR(module_cmds, $1)= + _LT_TAGVAR(module_expsym_cmds, $1)= + _LT_TAGVAR(old_archive_from_new_cmds, $1)= + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= + _LT_TAGVAR(thread_safe_flag_spec, $1)= + _LT_TAGVAR(whole_archive_flag_spec, $1)= + # include_expsyms should be a list of space-separated symbols to be *always* + # included in the symbol list + _LT_TAGVAR(include_expsyms, $1)= + # exclude_expsyms can be an extended regexp of symbols to exclude + # it will be wrapped by ' (' and ')$', so one must not match beginning or + # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', + # as well as any symbol that contains 'd'. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out + # platforms (ab)use it in PIC code, but their linkers get confused if + # the symbol is explicitly referenced. Since portable code cannot + # rely on this symbol name, it's probably fine to never include it in + # preloaded symbol tables. + # Exclude shared library initialization/finalization symbols. +dnl Note also adjust exclude_expsyms for C++ above. + extract_expsyms_cmds= + + case $host_os in + cygwin* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + if test yes != "$GCC"; then + with_gnu_ld=no + fi + ;; + interix*) + # we just hope/assume this is gcc and not c89 (= MSVC++) + with_gnu_ld=yes + ;; + openbsd* | bitrig*) + with_gnu_ld=no + ;; + esac + + _LT_TAGVAR(ld_shlibs, $1)=yes + + # On some targets, GNU ld is compatible enough with the native linker + # that we're better off using the native interface for both. + lt_use_gnu_ld_interface=no + if test yes = "$with_gnu_ld"; then + case $host_os in + aix*) + # The AIX port of GNU ld has always aspired to compatibility + # with the native linker. However, as the warning in the GNU ld + # block says, versions before 2.19.5* couldn't really create working + # shared libraries, regardless of the interface used. + case `$LD -v 2>&1` in + *\ \(GNU\ Binutils\)\ 2.19.5*) ;; + *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; + *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; + *) + lt_use_gnu_ld_interface=yes + ;; + esac + ;; + *) + lt_use_gnu_ld_interface=yes + ;; + esac + fi + + if test yes = "$lt_use_gnu_ld_interface"; then + # If archive_cmds runs LD, not CC, wlarc should be empty + wlarc='$wl' + + # Set some defaults for GNU ld with shared library support. These + # are reset later if shared libraries are not supported. Putting them + # here allows them to be overridden if necessary. + runpath_var=LD_RUN_PATH + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' + # ancient GNU ld didn't support --whole-archive et. al. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then + _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' + else + _LT_TAGVAR(whole_archive_flag_spec, $1)= + fi + supports_anon_versioning=no + case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in + *GNU\ gold*) supports_anon_versioning=yes ;; + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... + *\ 2.11.*) ;; # other 2.11 versions + *) supports_anon_versioning=yes ;; + esac + + # See if GNU ld supports shared libraries. + case $host_os in + aix[[3-9]]*) + # On AIX/PPC, the GNU linker is very broken + if test ia64 != "$host_cpu"; then + _LT_TAGVAR(ld_shlibs, $1)=no + cat <<_LT_EOF 1>&2 + +*** Warning: the GNU linker, at least up to release 2.19, is reported +*** to be unable to reliably create shared libraries on AIX. +*** Therefore, libtool is disabling shared libraries support. If you +*** really care for shared libraries, you may want to install binutils +*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. +*** You will then need to restart the configuration process. + +_LT_EOF + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='' + ;; + m68k) + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_minus_L, $1)=yes + ;; + esac + ;; + + beos*) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + cygwin* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, + # as there is no search path for DLLs. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_TAGVAR(always_export_symbols, $1)=no + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' + _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] + + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file, use it as + # is; otherwise, prepend EXPORTS... + _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + haiku*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + _LT_TAGVAR(link_all_deplibs, $1)=yes + ;; + + os2*) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + shrext_cmds=.dll + _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ + $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ + $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ + $ECHO EXPORTS >> $output_objdir/$libname.def~ + emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ + $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ + emximp -o $lib $output_objdir/$libname.def' + _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ + $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ + $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ + $ECHO EXPORTS >> $output_objdir/$libname.def~ + prefix_cmds="$SED"~ + if test EXPORTS = "`$SED 1q $export_symbols`"; then + prefix_cmds="$prefix_cmds -e 1d"; + fi~ + prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ + cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ + $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ + emximp -o $lib $output_objdir/$libname.def' + _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + ;; + + interix[[3-9]]*) + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) + tmp_diet=no + if test linux-dietlibc = "$host_os"; then + case $cc_basename in + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) + esac + fi + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ + && test no = "$tmp_diet" + then + tmp_addflag=' $pic_flag' + tmp_sharedflag='-shared' + case $cc_basename,$host_cpu in + pgcc*) # Portland Group C compiler + _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' + tmp_addflag=' $pic_flag' + ;; + pgf77* | pgf90* | pgf95* | pgfortran*) + # Portland Group f77 and f90 compilers + _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' + tmp_addflag=' $pic_flag -Mnomain' ;; + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 + tmp_addflag=' -i_dynamic' ;; + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 + tmp_addflag=' -i_dynamic -nofor_main' ;; + ifc* | ifort*) # Intel Fortran compiler + tmp_addflag=' -nofor_main' ;; + lf95*) # Lahey Fortran 8.1 + _LT_TAGVAR(whole_archive_flag_spec, $1)= + tmp_sharedflag='--shared' ;; + nagfor*) # NAGFOR 5.3 + tmp_sharedflag='-Wl,-shared' ;; + xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) + tmp_sharedflag='-qmkshrobj' + tmp_addflag= ;; + nvcc*) # Cuda Compiler Driver 2.2 + _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' + _LT_TAGVAR(compiler_needs_object, $1)=yes + ;; + esac + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) # Sun C 5.9 + _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' + _LT_TAGVAR(compiler_needs_object, $1)=yes + tmp_sharedflag='-G' ;; + *Sun\ F*) # Sun Fortran 8.3 + tmp_sharedflag='-G' ;; + esac + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + + if test yes = "$supports_anon_versioning"; then + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' + fi + + case $cc_basename in + tcc*) + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic' + ;; + xlf* | bgf* | bgxlf* | mpixlf*) + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' + if test yes = "$supports_anon_versioning"; then + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' + fi + ;; + esac + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' + wlarc= + else + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' + fi + ;; + + solaris*) + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then + _LT_TAGVAR(ld_shlibs, $1)=no + cat <<_LT_EOF 1>&2 + +*** Warning: The releases 2.8.* of the GNU linker cannot reliably +*** create shared libraries on Solaris systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.9.1 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +_LT_EOF + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) + case `$LD -v 2>&1` in + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) + _LT_TAGVAR(ld_shlibs, $1)=no + cat <<_LT_EOF 1>&2 + +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot +*** reliably create shared libraries on SCO systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +_LT_EOF + ;; + *) + # For security reasons, it is highly recommended that you always + # use absolute paths for naming shared libraries, and exclude the + # DT_RUNPATH tag from executables and libraries. But doing so + # requires that you compile everything twice, which is a pain. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + + sunos4*) + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' + wlarc= + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + *) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + + if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then + runpath_var= + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= + _LT_TAGVAR(export_dynamic_flag_spec, $1)= + _LT_TAGVAR(whole_archive_flag_spec, $1)= + fi + else + # PORTME fill in a description of your system's linker (not GNU ld) + case $host_os in + aix3*) + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_TAGVAR(always_export_symbols, $1)=yes + _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + _LT_TAGVAR(hardcode_minus_L, $1)=yes + if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + _LT_TAGVAR(hardcode_direct, $1)=unsupported + fi + ;; + + aix[[4-9]]*) + if test ia64 = "$host_cpu"; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag= + else + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to GNU nm, but means don't demangle to AIX nm. + # Without the "-l" option, or with the "-B" option, AIX nm treats + # weak defined symbols like other global defined symbols, whereas + # GNU nm marks them as "W". + # While the 'weak' keyword is ignored in the Export File, we need + # it in the Import File for the 'aix-soname' feature, so we have + # to replace the "-B" option with "-P" for AIX nm. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' + else + _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' + fi + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # have runtime linking enabled, and use it for executables. + # For shared libraries, we enable/disable runtime linking + # depending on the kind of the shared library created - + # when "with_aix_soname,aix_use_runtimelinking" is: + # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables + # "aix,yes" lib.so shared, rtl:yes, for executables + # lib.a static archive + # "both,no" lib.so.V(shr.o) shared, rtl:yes + # lib.a(lib.so.V) shared, rtl:no, for executables + # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables + # lib.a(lib.so.V) shared, rtl:no + # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables + # lib.a static archive + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) + for ld_flag in $LDFLAGS; do + if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then + aix_use_runtimelinking=yes + break + fi + done + if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then + # With aix-soname=svr4, we create the lib.so.V shared archives only, + # so we don't have lib.a shared libs to link our executables. + # We have to force runtime linking in this case. + aix_use_runtimelinking=yes + LDFLAGS="$LDFLAGS -Wl,-brtl" + fi + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + _LT_TAGVAR(archive_cmds, $1)='' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_TAGVAR(link_all_deplibs, $1)=yes + _LT_TAGVAR(file_list_spec, $1)='$wl-f,' + case $with_aix_soname,$aix_use_runtimelinking in + aix,*) ;; # traditional, no import file + svr4,* | *,yes) # use import file + # The Import File defines what to hardcode. + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_direct_absolute, $1)=no + ;; + esac + + if test yes = "$GCC"; then + case $host_os in aix4.[[012]]|aix4.[[012]].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`$CC -print-prog-name=collect2` + if test -f "$collect2name" && + strings "$collect2name" | $GREP resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + _LT_TAGVAR(hardcode_direct, $1)=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)= + fi + ;; + esac + shared_flag='-shared' + if test yes = "$aix_use_runtimelinking"; then + shared_flag="$shared_flag "'$wl-G' + fi + # Need to ensure runtime linking is disabled for the traditional + # shared library, or the linker may eventually find shared libraries + # /with/ Import File - we do not want to mix them. + shared_flag_aix='-shared' + shared_flag_svr4='-shared $wl-G' + else + # not using gcc + if test ia64 = "$host_cpu"; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test yes = "$aix_use_runtimelinking"; then + shared_flag='$wl-G' + else + shared_flag='$wl-bM:SRE' + fi + shared_flag_aix='$wl-bM:SRE' + shared_flag_svr4='$wl-G' + fi + fi + + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + _LT_TAGVAR(always_export_symbols, $1)=yes + if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok' + # Determine the default libpath from the value encoded in an + # empty executable. + _LT_SYS_MODULE_PATH_AIX([$1]) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag + else + if test ia64 = "$host_cpu"; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an + # empty executable. + _LT_SYS_MODULE_PATH_AIX([$1]) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' + _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' + if test yes = "$with_gnu_ld"; then + # We only use this code for GNU lds that support --whole-archive. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' + else + # Exported symbols can be pulled into shared objects from archives + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' + fi + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes + _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' + # -brtl affects multiple linker settings, -berok does not and is overridden later + compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' + if test svr4 != "$with_aix_soname"; then + # This is similar to how AIX traditionally builds its shared libraries. + _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' + fi + if test aix != "$with_aix_soname"; then + _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' + else + # used by -dlpreopen to get the symbols + _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' + fi + _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' + fi + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='' + ;; + m68k) + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_minus_L, $1)=yes + ;; + esac + ;; + + bsdi[[45]]*) + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic + ;; + + cygwin* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + case $cc_basename in + cl*) + # Native MSVC + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_TAGVAR(always_export_symbols, $1)=yes + _LT_TAGVAR(file_list_spec, $1)='@' + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=.dll + # FIXME: Setting linknames here is a bad hack. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' + _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then + cp "$export_symbols" "$output_objdir/$soname.def"; + echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; + else + $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; + fi~ + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ + linknames=' + # The linker will not automatically build a static lib if we build a DLL. + # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' + # Don't use ranlib + _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' + _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ + lt_tool_outputfile="@TOOL_OUTPUT@"~ + case $lt_outputfile in + *.exe|*.EXE) ;; + *) + lt_outputfile=$lt_outputfile.exe + lt_tool_outputfile=$lt_tool_outputfile.exe + ;; + esac~ + if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; + $RM "$lt_outputfile.manifest"; + fi' + ;; + *) + # Assume MSVC wrapper + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=.dll + # FIXME: Setting linknames here is a bad hack. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' + # The linker will automatically build a .lib file if we build a DLL. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' + # FIXME: Should let the user specify the lib program. + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + ;; + esac + ;; + + darwin* | rhapsody*) + _LT_DARWIN_LINKER_FEATURES($1) + ;; + + dgux*) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor + # support. Future versions do this automatically, but an explicit c++rt0.o + # does not break anything, and helps significantly (at the cost of a little + # extra space). + freebsd2.2*) + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + # Unfortunately, older versions of FreeBSD 2 do not have this feature. + freebsd2.*) + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + # FreeBSD 3 and greater uses gcc -shared to do shared libraries. + freebsd* | dragonfly*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + hpux9*) + if test yes = "$GCC"; then + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' + else + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' + fi + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(hardcode_direct, $1)=yes + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' + ;; + + hpux10*) + if test yes,no = "$GCC,$with_gnu_ld"; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' + fi + if test no = "$with_gnu_ld"; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + _LT_TAGVAR(hardcode_minus_L, $1)=yes + fi + ;; + + hpux11*) + if test yes,no = "$GCC,$with_gnu_ld"; then + case $host_cpu in + hppa*64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + else + case $host_cpu in + hppa*64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + m4_if($1, [], [ + # Older versions of the 11.00 compiler do not understand -b yet + # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) + _LT_LINKER_OPTION([if $CC understands -b], + _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], + [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], + [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], + [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) + ;; + esac + fi + if test no = "$with_gnu_ld"; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + + case $host_cpu in + hppa*64*|ia64*) + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + *) + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + _LT_TAGVAR(hardcode_minus_L, $1)=yes + ;; + esac + fi + ;; + + irix5* | irix6* | nonstopux*) + if test yes = "$GCC"; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' + # Try to use the -exported_symbol ld option, if it does not + # work, assume that -exports_file does not work either and + # implicitly export all symbols. + # This should be the same for all languages, so no per-tag cache variable. + AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], + [lt_cv_irix_exported_symbol], + [save_LDFLAGS=$LDFLAGS + LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" + AC_LINK_IFELSE( + [AC_LANG_SOURCE( + [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], + [C++], [[int foo (void) { return 0; }]], + [Fortran 77], [[ + subroutine foo + end]], + [Fortran], [[ + subroutine foo + end]])])], + [lt_cv_irix_exported_symbol=yes], + [lt_cv_irix_exported_symbol=no]) + LDFLAGS=$save_LDFLAGS]) + if test yes = "$lt_cv_irix_exported_symbol"; then + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' + fi + else + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' + fi + _LT_TAGVAR(archive_cmds_need_lc, $1)='no' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(inherit_rpath, $1)=yes + _LT_TAGVAR(link_all_deplibs, $1)=yes + ;; + + linux*) + case $cc_basename in + tcc*) + # Fabrice Bellard et al's Tiny C Compiler + _LT_TAGVAR(ld_shlibs, $1)=yes + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out + else + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF + fi + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + newsos6) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + *nto* | *qnx*) + ;; + + openbsd* | bitrig*) + if test -f /usr/libexec/ld.so; then + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' + else + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' + fi + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + os2*) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + shrext_cmds=.dll + _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ + $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ + $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ + $ECHO EXPORTS >> $output_objdir/$libname.def~ + emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ + $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ + emximp -o $lib $output_objdir/$libname.def' + _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ + $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ + $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ + $ECHO EXPORTS >> $output_objdir/$libname.def~ + prefix_cmds="$SED"~ + if test EXPORTS = "`$SED 1q $export_symbols`"; then + prefix_cmds="$prefix_cmds -e 1d"; + fi~ + prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ + cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ + $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ + emximp -o $lib $output_objdir/$libname.def' + _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + ;; + + osf3*) + if test yes = "$GCC"; then + _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' + else + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' + fi + _LT_TAGVAR(archive_cmds_need_lc, $1)='no' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + ;; + + osf4* | osf5*) # as osf3* with the addition of -msym flag + if test yes = "$GCC"; then + _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' + else + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ + $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' + + # Both c and cxx compiler support -rpath directly + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' + fi + _LT_TAGVAR(archive_cmds_need_lc, $1)='no' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + ;; + + solaris*) + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' + if test yes = "$GCC"; then + wlarc='$wl' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + else + case `$CC -V 2>&1` in + *"Compilers 5.0"*) + wlarc='' + _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' + ;; + *) + wlarc='$wl' + _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + ;; + esac + fi + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + case $host_os in + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands '-z linker_flag'. GCC discards it without '$wl', + # but is careful enough not to reorder. + # Supported since Solaris 2.6 (maybe 2.5.1?) + if test yes = "$GCC"; then + _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' + else + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' + fi + ;; + esac + _LT_TAGVAR(link_all_deplibs, $1)=yes + ;; + + sunos4*) + if test sequent = "$host_vendor"; then + # Use $CC to link under sequent, because it throws in some extra .o + # files that make .init and .fini sections work. + _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' + fi + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + sysv4) + case $host_vendor in + sni) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? + ;; + siemens) + ## LD is ld it makes a PLAMLIB + ## CC just makes a GrossModule. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' + _LT_TAGVAR(hardcode_direct, $1)=no + ;; + motorola) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie + ;; + esac + runpath_var='LD_RUN_PATH' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + sysv4.3*) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + _LT_TAGVAR(ld_shlibs, $1)=yes + fi + ;; + + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) + _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + runpath_var='LD_RUN_PATH' + + if test yes = "$GCC"; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + sysv5* | sco3.2v5* | sco5v6*) + # Note: We CANNOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' + _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_TAGVAR(link_all_deplibs, $1)=yes + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' + runpath_var='LD_RUN_PATH' + + if test yes = "$GCC"; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + uts4*) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + *) + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + + if test sni = "$host_vendor"; then + case $host in + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym' + ;; + esac + fi + fi +]) +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) +test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no + +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld + +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl +_LT_DECL([], [extract_expsyms_cmds], [2], + [The commands to extract the exported symbol list from a shared archive]) + +# +# Do we need to explicitly link libc? +# +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in +x|xyes) + # Assume -lc should be added + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes + + if test yes,yes = "$GCC,$enable_shared"; then + case $_LT_TAGVAR(archive_cmds, $1) in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + AC_CACHE_CHECK([whether -lc should be explicitly linked in], + [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), + [$RM conftest* + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) + _LT_TAGVAR(allow_undefined_flag, $1)= + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) + then + lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no + else + lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes + fi + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $RM conftest* + ]) + _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) + ;; + esac + fi + ;; +esac + +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], + [Whether or not to add -lc for building shared libraries]) +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes], + [enable_shared_with_static_runtimes], [0], + [Whether or not to disallow shared libs when runtime libs are static]) +_LT_TAGDECL([], [export_dynamic_flag_spec], [1], + [Compiler flag to allow reflexive dlopens]) +_LT_TAGDECL([], [whole_archive_flag_spec], [1], + [Compiler flag to generate shared objects directly from archives]) +_LT_TAGDECL([], [compiler_needs_object], [1], + [Whether the compiler copes with passing no objects directly]) +_LT_TAGDECL([], [old_archive_from_new_cmds], [2], + [Create an old-style archive from a shared archive]) +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], + [Create a temporary old-style archive to link instead of a shared archive]) +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) +_LT_TAGDECL([], [archive_expsym_cmds], [2]) +_LT_TAGDECL([], [module_cmds], [2], + [Commands used to build a loadable module if different from building + a shared archive.]) +_LT_TAGDECL([], [module_expsym_cmds], [2]) +_LT_TAGDECL([], [with_gnu_ld], [1], + [Whether we are building with GNU ld or not]) +_LT_TAGDECL([], [allow_undefined_flag], [1], + [Flag that allows shared libraries with undefined symbols to be built]) +_LT_TAGDECL([], [no_undefined_flag], [1], + [Flag that enforces no undefined symbols]) +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], + [Flag to hardcode $libdir into a binary during linking. + This must work even if $libdir does not exist]) +_LT_TAGDECL([], [hardcode_libdir_separator], [1], + [Whether we need a single "-rpath" flag with a separated argument]) +_LT_TAGDECL([], [hardcode_direct], [0], + [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes + DIR into the resulting binary]) +_LT_TAGDECL([], [hardcode_direct_absolute], [0], + [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes + DIR into the resulting binary and the resulting library dependency is + "absolute", i.e impossible to change by setting $shlibpath_var if the + library is relocated]) +_LT_TAGDECL([], [hardcode_minus_L], [0], + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR + into the resulting binary]) +_LT_TAGDECL([], [hardcode_shlibpath_var], [0], + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR + into the resulting binary]) +_LT_TAGDECL([], [hardcode_automatic], [0], + [Set to "yes" if building a shared library automatically hardcodes DIR + into the library and all subsequent libraries and executables linked + against it]) +_LT_TAGDECL([], [inherit_rpath], [0], + [Set to yes if linker adds runtime paths of dependent libraries + to runtime path list]) +_LT_TAGDECL([], [link_all_deplibs], [0], + [Whether libtool must link a program against all its dependency libraries]) +_LT_TAGDECL([], [always_export_symbols], [0], + [Set to "yes" if exported symbols are required]) +_LT_TAGDECL([], [export_symbols_cmds], [2], + [The commands to list exported symbols]) +_LT_TAGDECL([], [exclude_expsyms], [1], + [Symbols that should not be listed in the preloaded symbols]) +_LT_TAGDECL([], [include_expsyms], [1], + [Symbols that must always be exported]) +_LT_TAGDECL([], [prelink_cmds], [2], + [Commands necessary for linking programs (against libraries) with templates]) +_LT_TAGDECL([], [postlink_cmds], [2], + [Commands necessary for finishing linking programs]) +_LT_TAGDECL([], [file_list_spec], [1], + [Specify filename containing input files]) +dnl FIXME: Not yet implemented +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], +dnl [Compiler flag to generate thread safe objects]) +])# _LT_LINKER_SHLIBS + + +# _LT_LANG_C_CONFIG([TAG]) +# ------------------------ +# Ensure that the configuration variables for a C compiler are suitably +# defined. These variables are subsequently used by _LT_CONFIG to write +# the compiler configuration to 'libtool'. +m4_defun([_LT_LANG_C_CONFIG], +[m4_require([_LT_DECL_EGREP])dnl +lt_save_CC=$CC +AC_LANG_PUSH(C) + +# Source file extension for C test sources. +ac_ext=c + +# Object file extension for compiled C test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="int some_variable = 0;" + +# Code to be used in simple link tests +lt_simple_link_test_code='int main(){return(0);}' + +_LT_TAG_COMPILER +# Save the default compiler, since it gets overwritten when the other +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. +compiler_DEFAULT=$CC + +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE + +## CAVEAT EMPTOR: +## There is no encapsulation within the following macros, do not change +## the running order or otherwise move them around unless you know exactly +## what you are doing... +if test -n "$compiler"; then + _LT_COMPILER_NO_RTTI($1) + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_SYS_DYNAMIC_LINKER($1) + _LT_LINKER_HARDCODE_LIBPATH($1) + LT_SYS_DLOPEN_SELF + _LT_CMD_STRIPLIB + + # Report what library types will actually be built + AC_MSG_CHECKING([if libtool supports shared libraries]) + AC_MSG_RESULT([$can_build_shared]) + + AC_MSG_CHECKING([whether to build shared libraries]) + test no = "$can_build_shared" && enable_shared=no + + # On AIX, shared libraries and static libraries use the same namespace, and + # are all built from PIC. + case $host_os in + aix3*) + test yes = "$enable_shared" && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + + aix[[4-9]]*) + if test ia64 != "$host_cpu"; then + case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in + yes,aix,yes) ;; # shared object as lib.so file only + yes,svr4,*) ;; # shared object as lib.so archive member only + yes,*) enable_static=no ;; # shared object in lib.a archive as well + esac + fi + ;; + esac + AC_MSG_RESULT([$enable_shared]) + + AC_MSG_CHECKING([whether to build static libraries]) + # Make sure either enable_shared or enable_static is yes. + test yes = "$enable_shared" || enable_static=yes + AC_MSG_RESULT([$enable_static]) + + _LT_CONFIG($1) +fi +AC_LANG_POP +CC=$lt_save_CC +])# _LT_LANG_C_CONFIG + + +# _LT_LANG_CXX_CONFIG([TAG]) +# -------------------------- +# Ensure that the configuration variables for a C++ compiler are suitably +# defined. These variables are subsequently used by _LT_CONFIG to write +# the compiler configuration to 'libtool'. +m4_defun([_LT_LANG_CXX_CONFIG], +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_EGREP])dnl +m4_require([_LT_PATH_MANIFEST_TOOL])dnl +if test -n "$CXX" && ( test no != "$CXX" && + ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || + (test g++ != "$CXX"))); then + AC_PROG_CXXCPP +else + _lt_caught_CXX_error=yes +fi + +AC_LANG_PUSH(C++) +_LT_TAGVAR(archive_cmds_need_lc, $1)=no +_LT_TAGVAR(allow_undefined_flag, $1)= +_LT_TAGVAR(always_export_symbols, $1)=no +_LT_TAGVAR(archive_expsym_cmds, $1)= +_LT_TAGVAR(compiler_needs_object, $1)=no +_LT_TAGVAR(export_dynamic_flag_spec, $1)= +_LT_TAGVAR(hardcode_direct, $1)=no +_LT_TAGVAR(hardcode_direct_absolute, $1)=no +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= +_LT_TAGVAR(hardcode_libdir_separator, $1)= +_LT_TAGVAR(hardcode_minus_L, $1)=no +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported +_LT_TAGVAR(hardcode_automatic, $1)=no +_LT_TAGVAR(inherit_rpath, $1)=no +_LT_TAGVAR(module_cmds, $1)= +_LT_TAGVAR(module_expsym_cmds, $1)= +_LT_TAGVAR(link_all_deplibs, $1)=unknown +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds +_LT_TAGVAR(reload_flag, $1)=$reload_flag +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds +_LT_TAGVAR(no_undefined_flag, $1)= +_LT_TAGVAR(whole_archive_flag_spec, $1)= +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no + +# Source file extension for C++ test sources. +ac_ext=cpp + +# Object file extension for compiled C++ test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext + +# No sense in running all these tests if we already determined that +# the CXX compiler isn't working. Some variables (like enable_shared) +# are currently assumed to apply to all compilers on this platform, +# and will be corrupted by setting them based on a non-working compiler. +if test yes != "$_lt_caught_CXX_error"; then + # Code to be used in simple compile tests + lt_simple_compile_test_code="int some_variable = 0;" + + # Code to be used in simple link tests + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' + + # ltmain only uses $CC for tagged configurations so make sure $CC is set. + _LT_TAG_COMPILER + + # save warnings/boilerplate of simple test code + _LT_COMPILER_BOILERPLATE + _LT_LINKER_BOILERPLATE + + # Allow CC to be a program name with arguments. + lt_save_CC=$CC + lt_save_CFLAGS=$CFLAGS + lt_save_LD=$LD + lt_save_GCC=$GCC + GCC=$GXX + lt_save_with_gnu_ld=$with_gnu_ld + lt_save_path_LD=$lt_cv_path_LD + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx + else + $as_unset lt_cv_prog_gnu_ld + fi + if test -n "${lt_cv_path_LDCXX+set}"; then + lt_cv_path_LD=$lt_cv_path_LDCXX + else + $as_unset lt_cv_path_LD + fi + test -z "${LDCXX+set}" || LD=$LDCXX + CC=${CXX-"c++"} + CFLAGS=$CXXFLAGS + compiler=$CC + _LT_TAGVAR(compiler, $1)=$CC + _LT_CC_BASENAME([$compiler]) + + if test -n "$compiler"; then + # We don't want -fno-exception when compiling C++ code, so set the + # no_builtin_flag separately + if test yes = "$GXX"; then + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' + else + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= + fi + + if test yes = "$GXX"; then + # Set up default GNU C++ configuration + + LT_PATH_LD + + # Check if GNU C++ uses GNU ld as the underlying linker, since the + # archiving commands below assume that GNU ld is being used. + if test yes = "$with_gnu_ld"; then + _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' + + # If archive_cmds runs LD, not CC, wlarc should be empty + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to + # investigate it a little bit more. (MM) + wlarc='$wl' + + # ancient GNU ld didn't support --whole-archive et. al. + if eval "`$CC -print-prog-name=ld` --help 2>&1" | + $GREP 'no-whole-archive' > /dev/null; then + _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' + else + _LT_TAGVAR(whole_archive_flag_spec, $1)= + fi + else + with_gnu_ld=no + wlarc= + + # A generic and very simple default shared library creation + # command for GNU C++ for the case where it uses the native + # linker, instead of GNU ld. If possible, this setting should + # overridden to take advantage of the native linker features on + # the platform it is being used on. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + fi + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + + else + GXX=no + with_gnu_ld=no + wlarc= + fi + + # PORTME: fill in a description of your system's C++ link characteristics + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) + _LT_TAGVAR(ld_shlibs, $1)=yes + case $host_os in + aix3*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + aix[[4-9]]*) + if test ia64 = "$host_cpu"; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag= + else + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # have runtime linking enabled, and use it for executables. + # For shared libraries, we enable/disable runtime linking + # depending on the kind of the shared library created - + # when "with_aix_soname,aix_use_runtimelinking" is: + # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables + # "aix,yes" lib.so shared, rtl:yes, for executables + # lib.a static archive + # "both,no" lib.so.V(shr.o) shared, rtl:yes + # lib.a(lib.so.V) shared, rtl:no, for executables + # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables + # lib.a(lib.so.V) shared, rtl:no + # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables + # lib.a static archive + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) + for ld_flag in $LDFLAGS; do + case $ld_flag in + *-brtl*) + aix_use_runtimelinking=yes + break + ;; + esac + done + if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then + # With aix-soname=svr4, we create the lib.so.V shared archives only, + # so we don't have lib.a shared libs to link our executables. + # We have to force runtime linking in this case. + aix_use_runtimelinking=yes + LDFLAGS="$LDFLAGS -Wl,-brtl" + fi + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + _LT_TAGVAR(archive_cmds, $1)='' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_TAGVAR(link_all_deplibs, $1)=yes + _LT_TAGVAR(file_list_spec, $1)='$wl-f,' + case $with_aix_soname,$aix_use_runtimelinking in + aix,*) ;; # no import file + svr4,* | *,yes) # use import file + # The Import File defines what to hardcode. + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_direct_absolute, $1)=no + ;; + esac + + if test yes = "$GXX"; then + case $host_os in aix4.[[012]]|aix4.[[012]].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`$CC -print-prog-name=collect2` + if test -f "$collect2name" && + strings "$collect2name" | $GREP resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + _LT_TAGVAR(hardcode_direct, $1)=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)= + fi + esac + shared_flag='-shared' + if test yes = "$aix_use_runtimelinking"; then + shared_flag=$shared_flag' $wl-G' + fi + # Need to ensure runtime linking is disabled for the traditional + # shared library, or the linker may eventually find shared libraries + # /with/ Import File - we do not want to mix them. + shared_flag_aix='-shared' + shared_flag_svr4='-shared $wl-G' + else + # not using gcc + if test ia64 = "$host_cpu"; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test yes = "$aix_use_runtimelinking"; then + shared_flag='$wl-G' + else + shared_flag='$wl-bM:SRE' + fi + shared_flag_aix='$wl-bM:SRE' + shared_flag_svr4='$wl-G' + fi + fi + + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to + # export. + _LT_TAGVAR(always_export_symbols, $1)=yes + if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + # The "-G" linker flag allows undefined symbols. + _LT_TAGVAR(no_undefined_flag, $1)='-bernotok' + # Determine the default libpath from the value encoded in an empty + # executable. + _LT_SYS_MODULE_PATH_AIX([$1]) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" + + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag + else + if test ia64 = "$host_cpu"; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an + # empty executable. + _LT_SYS_MODULE_PATH_AIX([$1]) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' + _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' + if test yes = "$with_gnu_ld"; then + # We only use this code for GNU lds that support --whole-archive. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' + else + # Exported symbols can be pulled into shared objects from archives + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' + fi + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes + _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' + # -brtl affects multiple linker settings, -berok does not and is overridden later + compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' + if test svr4 != "$with_aix_soname"; then + # This is similar to how AIX traditionally builds its shared + # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. + _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' + fi + if test aix != "$with_aix_soname"; then + _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' + else + # used by -dlpreopen to get the symbols + _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' + fi + _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' + fi + fi + ;; + + beos*) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + chorus*) + case $cc_basename in + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + + cygwin* | mingw* | pw32* | cegcc*) + case $GXX,$cc_basename in + ,cl* | no,cl*) + # Native MSVC + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_TAGVAR(always_export_symbols, $1)=yes + _LT_TAGVAR(file_list_spec, $1)='@' + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=.dll + # FIXME: Setting linknames here is a bad hack. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' + _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then + cp "$export_symbols" "$output_objdir/$soname.def"; + echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; + else + $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; + fi~ + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ + linknames=' + # The linker will not automatically build a static lib if we build a DLL. + # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + # Don't use ranlib + _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' + _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ + lt_tool_outputfile="@TOOL_OUTPUT@"~ + case $lt_outputfile in + *.exe|*.EXE) ;; + *) + lt_outputfile=$lt_outputfile.exe + lt_tool_outputfile=$lt_tool_outputfile.exe + ;; + esac~ + func_to_tool_file "$lt_outputfile"~ + if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; + $RM "$lt_outputfile.manifest"; + fi' + ;; + *) + # g++ + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, + # as there is no search path for DLLs. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_TAGVAR(always_export_symbols, $1)=no + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file, use it as + # is; otherwise, prepend EXPORTS... + _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + darwin* | rhapsody*) + _LT_DARWIN_LINKER_FEATURES($1) + ;; + + os2*) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + shrext_cmds=.dll + _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ + $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ + $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ + $ECHO EXPORTS >> $output_objdir/$libname.def~ + emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ + $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ + emximp -o $lib $output_objdir/$libname.def' + _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ + $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ + $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ + $ECHO EXPORTS >> $output_objdir/$libname.def~ + prefix_cmds="$SED"~ + if test EXPORTS = "`$SED 1q $export_symbols`"; then + prefix_cmds="$prefix_cmds -e 1d"; + fi~ + prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ + cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ + $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ + emximp -o $lib $output_objdir/$libname.def' + _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + ;; + + dgux*) + case $cc_basename in + ec++*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + ghcx*) + # Green Hills C++ Compiler + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + + freebsd2.*) + # C++ shared libraries reported to be fairly broken before + # switch to ELF + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + + freebsd-elf*) + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + ;; + + freebsd* | dragonfly*) + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF + # conventions + _LT_TAGVAR(ld_shlibs, $1)=yes + ;; + + haiku*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + _LT_TAGVAR(link_all_deplibs, $1)=yes + ;; + + hpux9*) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, + # but as the default + # location of the library. + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + aCC*) + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test yes = "$GXX"; then + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' + else + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + + hpux10*|hpux11*) + if test no = "$with_gnu_ld"; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + + case $host_cpu in + hppa*64*|ia64*) + ;; + *) + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' + ;; + esac + fi + case $host_cpu in + hppa*64*|ia64*) + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + *) + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, + # but as the default + # location of the library. + ;; + esac + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + aCC*) + case $host_cpu in + hppa*64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test yes = "$GXX"; then + if test no = "$with_gnu_ld"; then + case $host_cpu in + hppa*64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + fi + else + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + + interix[[3-9]]*) + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + irix5* | irix6*) + case $cc_basename in + CC*) + # SGI C++ + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' + + # Archives containing C++ object files must be created using + # "CC -ar", where "CC" is the IRIX C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' + ;; + *) + if test yes = "$GXX"; then + if test no = "$with_gnu_ld"; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' + else + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' + fi + fi + _LT_TAGVAR(link_all_deplibs, $1)=yes + ;; + esac + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(inherit_rpath, $1)=yes + ;; + + linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' + + # Archives containing C++ object files must be created using + # "CC -Bstatic", where "CC" is the KAI C++ compiler. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' + ;; + icpc* | ecpc* ) + # Intel C++ + with_gnu_ld=yes + # version 8.0 and above of icpc choke on multiply defined symbols + # if we add $predep_objects and $postdep_objects, however 7.1 and + # earlier do not add the objects themselves. + case `$CC -V 2>&1` in + *"Version 7."*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' + ;; + *) # Version 8.0 or newer + tmp_idyn= + case $host_cpu in + ia64*) tmp_idyn=' -i_dynamic';; + esac + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' + ;; + esac + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' + _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + case `$CC -V` in + *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ + compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ + $RANLIB $oldlib' + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' + ;; + *) # Version 6 and above use weak symbols + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' + ;; + esac + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' + _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' + ;; + cxx*) + # Compaq C++ + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols' + + runpath_var=LD_RUN_PATH + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' + ;; + xl* | mpixl* | bgxl*) + # IBM XL 8.0 on PPC, with GNU ld + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' + if test yes = "$supports_anon_versioning"; then + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' + fi + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' + _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' + _LT_TAGVAR(compiler_needs_object, $1)=yes + + # Not sure whether something based on + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 + # would be better. + output_verbose_link_cmd='func_echo_all' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' + ;; + esac + ;; + esac + ;; + + lynxos*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + + m88k*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + + mvs*) + case $cc_basename in + cxx*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' + wlarc= + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + fi + # Workaround some broken pre-1.5 toolchains + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' + ;; + + *nto* | *qnx*) + _LT_TAGVAR(ld_shlibs, $1)=yes + ;; + + openbsd* | bitrig*) + if test -f /usr/libexec/ld.so; then + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' + _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' + fi + output_verbose_link_cmd=func_echo_all + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + + # Archives containing C++ object files must be created using + # the KAI C++ compiler. + case $host in + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; + esac + ;; + RCC*) + # Rational C++ 2.4.1 + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + cxx*) + case $host in + osf3*) + _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' + ;; + *) + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ + echo "-hidden">> $lib.exp~ + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ + $RM $lib.exp' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' + ;; + esac + + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test yes,no = "$GXX,$with_gnu_ld"; then + _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' + case $host in + osf3*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' + ;; + esac + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + + else + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + + psos*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + lcc*) + # Lucid + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + + solaris*) + case $cc_basename in + CC* | sunCC*) + # Sun C++ 4.2, 5.x and Centerline C++ + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' + _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + case $host_os in + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands '-z linker_flag'. + # Supported since Solaris 2.6 (maybe 2.5.1?) + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' + ;; + esac + _LT_TAGVAR(link_all_deplibs, $1)=yes + + output_verbose_link_cmd='func_echo_all' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' + ;; + gcx*) + # Green Hills C++ Compiler + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' + + # The C++ compiler must be used to create the archive. + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' + ;; + *) + # GNU C++ compiler with Solaris linker + if test yes,no = "$GXX,$with_gnu_ld"; then + _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs' + if $CC --version | $GREP -v '^2\.7' > /dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + else + # g++ 2.7 appears to require '-G' NOT '-shared' on this + # platform. + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + fi + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir' + case $host_os in + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; + *) + _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' + ;; + esac + fi + ;; + esac + ;; + + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) + _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + + sysv5* | sco3.2v5* | sco5v6*) + # Note: We CANNOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' + _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_TAGVAR(link_all_deplibs, $1)=yes + _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ + '"$_LT_TAGVAR(old_archive_cmds, $1)" + _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ + '"$_LT_TAGVAR(reload_cmds, $1)" + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + + vxworks*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) + test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no + + _LT_TAGVAR(GCC, $1)=$GXX + _LT_TAGVAR(LD, $1)=$LD + + ## CAVEAT EMPTOR: + ## There is no encapsulation within the following macros, do not change + ## the running order or otherwise move them around unless you know exactly + ## what you are doing... + _LT_SYS_HIDDEN_LIBDEPS($1) + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_SYS_DYNAMIC_LINKER($1) + _LT_LINKER_HARDCODE_LIBPATH($1) + + _LT_CONFIG($1) + fi # test -n "$compiler" + + CC=$lt_save_CC + CFLAGS=$lt_save_CFLAGS + LDCXX=$LD + LD=$lt_save_LD + GCC=$lt_save_GCC + with_gnu_ld=$lt_save_with_gnu_ld + lt_cv_path_LDCXX=$lt_cv_path_LD + lt_cv_path_LD=$lt_save_path_LD + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld +fi # test yes != "$_lt_caught_CXX_error" + +AC_LANG_POP +])# _LT_LANG_CXX_CONFIG + + +# _LT_FUNC_STRIPNAME_CNF +# ---------------------- +# func_stripname_cnf prefix suffix name +# strip PREFIX and SUFFIX off of NAME. +# PREFIX and SUFFIX must not contain globbing or regex special +# characters, hashes, percent signs, but SUFFIX may contain a leading +# dot (in which case that matches only a dot). +# +# This function is identical to the (non-XSI) version of func_stripname, +# except this one can be used by m4 code that may be executed by configure, +# rather than the libtool script. +m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl +AC_REQUIRE([_LT_DECL_SED]) +AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) +func_stripname_cnf () +{ + case @S|@2 in + .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;; + *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;; + esac +} # func_stripname_cnf +])# _LT_FUNC_STRIPNAME_CNF + + +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) +# --------------------------------- +# Figure out "hidden" library dependencies from verbose +# compiler output when linking a shared library. +# Parse the compiler output and extract the necessary +# objects, libraries and library flags. +m4_defun([_LT_SYS_HIDDEN_LIBDEPS], +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl +AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl +# Dependencies to place before and after the object being linked: +_LT_TAGVAR(predep_objects, $1)= +_LT_TAGVAR(postdep_objects, $1)= +_LT_TAGVAR(predeps, $1)= +_LT_TAGVAR(postdeps, $1)= +_LT_TAGVAR(compiler_lib_search_path, $1)= + +dnl we can't use the lt_simple_compile_test_code here, +dnl because it contains code intended for an executable, +dnl not a library. It's possible we should let each +dnl tag define a new lt_????_link_test_code variable, +dnl but it's only used here... +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF +int a; +void foo (void) { a = 0; } +_LT_EOF +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF +class Foo +{ +public: + Foo (void) { a = 0; } +private: + int a; +}; +_LT_EOF +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF + subroutine foo + implicit none + integer*4 a + a=0 + return + end +_LT_EOF +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF + subroutine foo + implicit none + integer a + a=0 + return + end +_LT_EOF +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF +public class foo { + private int a; + public void bar (void) { + a = 0; + } +}; +_LT_EOF +], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF +package foo +func foo() { +} +_LT_EOF +]) + +_lt_libdeps_save_CFLAGS=$CFLAGS +case "$CC $CFLAGS " in #( +*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; +*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; +*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; +esac + +dnl Parse the compiler output and extract the necessary +dnl objects, libraries and library flags. +if AC_TRY_EVAL(ac_compile); then + # Parse the compiler output and extract the necessary + # objects, libraries and library flags. + + # Sentinel used to keep track of whether or not we are before + # the conftest object file. + pre_test_object_deps_done=no + + for p in `eval "$output_verbose_link_cmd"`; do + case $prev$p in + + -L* | -R* | -l*) + # Some compilers place space between "-{L,R}" and the path. + # Remove the space. + if test x-L = "$p" || + test x-R = "$p"; then + prev=$p + continue + fi + + # Expand the sysroot to ease extracting the directories later. + if test -z "$prev"; then + case $p in + -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; + -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; + -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; + esac + fi + case $p in + =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; + esac + if test no = "$pre_test_object_deps_done"; then + case $prev in + -L | -R) + # Internal compiler library paths should come after those + # provided the user. The postdeps already come after the + # user supplied libs so there is no need to process them. + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then + _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p + else + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p" + fi + ;; + # The "-l" case would never come before the object being + # linked, so don't bother handling this case. + esac + else + if test -z "$_LT_TAGVAR(postdeps, $1)"; then + _LT_TAGVAR(postdeps, $1)=$prev$p + else + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p" + fi + fi + prev= + ;; + + *.lto.$objext) ;; # Ignore GCC LTO objects + *.$objext) + # This assumes that the test object file only shows up + # once in the compiler output. + if test "$p" = "conftest.$objext"; then + pre_test_object_deps_done=yes + continue + fi + + if test no = "$pre_test_object_deps_done"; then + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then + _LT_TAGVAR(predep_objects, $1)=$p + else + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" + fi + else + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then + _LT_TAGVAR(postdep_objects, $1)=$p + else + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" + fi + fi + ;; + + *) ;; # Ignore the rest. + + esac + done + + # Clean up. + rm -f a.out a.exe +else + echo "libtool.m4: error: problem compiling $1 test program" +fi + +$RM -f confest.$objext +CFLAGS=$_lt_libdeps_save_CFLAGS + +# PORTME: override above test on systems where it is broken +m4_if([$1], [CXX], +[case $host_os in +interix[[3-9]]*) + # Interix 3.5 installs completely hosed .la files for C++, so rather than + # hack all around it, let's just trust "g++" to DTRT. + _LT_TAGVAR(predep_objects,$1)= + _LT_TAGVAR(postdep_objects,$1)= + _LT_TAGVAR(postdeps,$1)= + ;; +esac +]) + +case " $_LT_TAGVAR(postdeps, $1) " in +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; +esac + _LT_TAGVAR(compiler_lib_search_dirs, $1)= +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'` +fi +_LT_TAGDECL([], [compiler_lib_search_dirs], [1], + [The directories searched by this compiler when creating a shared library]) +_LT_TAGDECL([], [predep_objects], [1], + [Dependencies to place before and after the objects being linked to + create a shared library]) +_LT_TAGDECL([], [postdep_objects], [1]) +_LT_TAGDECL([], [predeps], [1]) +_LT_TAGDECL([], [postdeps], [1]) +_LT_TAGDECL([], [compiler_lib_search_path], [1], + [The library search path used internally by the compiler when linking + a shared library]) +])# _LT_SYS_HIDDEN_LIBDEPS + + +# _LT_LANG_F77_CONFIG([TAG]) +# -------------------------- +# Ensure that the configuration variables for a Fortran 77 compiler are +# suitably defined. These variables are subsequently used by _LT_CONFIG +# to write the compiler configuration to 'libtool'. +m4_defun([_LT_LANG_F77_CONFIG], +[AC_LANG_PUSH(Fortran 77) +if test -z "$F77" || test no = "$F77"; then + _lt_disable_F77=yes +fi + +_LT_TAGVAR(archive_cmds_need_lc, $1)=no +_LT_TAGVAR(allow_undefined_flag, $1)= +_LT_TAGVAR(always_export_symbols, $1)=no +_LT_TAGVAR(archive_expsym_cmds, $1)= +_LT_TAGVAR(export_dynamic_flag_spec, $1)= +_LT_TAGVAR(hardcode_direct, $1)=no +_LT_TAGVAR(hardcode_direct_absolute, $1)=no +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= +_LT_TAGVAR(hardcode_libdir_separator, $1)= +_LT_TAGVAR(hardcode_minus_L, $1)=no +_LT_TAGVAR(hardcode_automatic, $1)=no +_LT_TAGVAR(inherit_rpath, $1)=no +_LT_TAGVAR(module_cmds, $1)= +_LT_TAGVAR(module_expsym_cmds, $1)= +_LT_TAGVAR(link_all_deplibs, $1)=unknown +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds +_LT_TAGVAR(reload_flag, $1)=$reload_flag +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds +_LT_TAGVAR(no_undefined_flag, $1)= +_LT_TAGVAR(whole_archive_flag_spec, $1)= +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no + +# Source file extension for f77 test sources. +ac_ext=f + +# Object file extension for compiled f77 test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext + +# No sense in running all these tests if we already determined that +# the F77 compiler isn't working. Some variables (like enable_shared) +# are currently assumed to apply to all compilers on this platform, +# and will be corrupted by setting them based on a non-working compiler. +if test yes != "$_lt_disable_F77"; then + # Code to be used in simple compile tests + lt_simple_compile_test_code="\ + subroutine t + return + end +" + + # Code to be used in simple link tests + lt_simple_link_test_code="\ + program t + end +" + + # ltmain only uses $CC for tagged configurations so make sure $CC is set. + _LT_TAG_COMPILER + + # save warnings/boilerplate of simple test code + _LT_COMPILER_BOILERPLATE + _LT_LINKER_BOILERPLATE + + # Allow CC to be a program name with arguments. + lt_save_CC=$CC + lt_save_GCC=$GCC + lt_save_CFLAGS=$CFLAGS + CC=${F77-"f77"} + CFLAGS=$FFLAGS + compiler=$CC + _LT_TAGVAR(compiler, $1)=$CC + _LT_CC_BASENAME([$compiler]) + GCC=$G77 + if test -n "$compiler"; then + AC_MSG_CHECKING([if libtool supports shared libraries]) + AC_MSG_RESULT([$can_build_shared]) + + AC_MSG_CHECKING([whether to build shared libraries]) + test no = "$can_build_shared" && enable_shared=no + + # On AIX, shared libraries and static libraries use the same namespace, and + # are all built from PIC. + case $host_os in + aix3*) + test yes = "$enable_shared" && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + aix[[4-9]]*) + if test ia64 != "$host_cpu"; then + case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in + yes,aix,yes) ;; # shared object as lib.so file only + yes,svr4,*) ;; # shared object as lib.so archive member only + yes,*) enable_static=no ;; # shared object in lib.a archive as well + esac + fi + ;; + esac + AC_MSG_RESULT([$enable_shared]) + + AC_MSG_CHECKING([whether to build static libraries]) + # Make sure either enable_shared or enable_static is yes. + test yes = "$enable_shared" || enable_static=yes + AC_MSG_RESULT([$enable_static]) + + _LT_TAGVAR(GCC, $1)=$G77 + _LT_TAGVAR(LD, $1)=$LD + + ## CAVEAT EMPTOR: + ## There is no encapsulation within the following macros, do not change + ## the running order or otherwise move them around unless you know exactly + ## what you are doing... + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_SYS_DYNAMIC_LINKER($1) + _LT_LINKER_HARDCODE_LIBPATH($1) + + _LT_CONFIG($1) + fi # test -n "$compiler" + + GCC=$lt_save_GCC + CC=$lt_save_CC + CFLAGS=$lt_save_CFLAGS +fi # test yes != "$_lt_disable_F77" + +AC_LANG_POP +])# _LT_LANG_F77_CONFIG + + +# _LT_LANG_FC_CONFIG([TAG]) +# ------------------------- +# Ensure that the configuration variables for a Fortran compiler are +# suitably defined. These variables are subsequently used by _LT_CONFIG +# to write the compiler configuration to 'libtool'. +m4_defun([_LT_LANG_FC_CONFIG], +[AC_LANG_PUSH(Fortran) + +if test -z "$FC" || test no = "$FC"; then + _lt_disable_FC=yes +fi + +_LT_TAGVAR(archive_cmds_need_lc, $1)=no +_LT_TAGVAR(allow_undefined_flag, $1)= +_LT_TAGVAR(always_export_symbols, $1)=no +_LT_TAGVAR(archive_expsym_cmds, $1)= +_LT_TAGVAR(export_dynamic_flag_spec, $1)= +_LT_TAGVAR(hardcode_direct, $1)=no +_LT_TAGVAR(hardcode_direct_absolute, $1)=no +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= +_LT_TAGVAR(hardcode_libdir_separator, $1)= +_LT_TAGVAR(hardcode_minus_L, $1)=no +_LT_TAGVAR(hardcode_automatic, $1)=no +_LT_TAGVAR(inherit_rpath, $1)=no +_LT_TAGVAR(module_cmds, $1)= +_LT_TAGVAR(module_expsym_cmds, $1)= +_LT_TAGVAR(link_all_deplibs, $1)=unknown +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds +_LT_TAGVAR(reload_flag, $1)=$reload_flag +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds +_LT_TAGVAR(no_undefined_flag, $1)= +_LT_TAGVAR(whole_archive_flag_spec, $1)= +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no + +# Source file extension for fc test sources. +ac_ext=${ac_fc_srcext-f} + +# Object file extension for compiled fc test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext + +# No sense in running all these tests if we already determined that +# the FC compiler isn't working. Some variables (like enable_shared) +# are currently assumed to apply to all compilers on this platform, +# and will be corrupted by setting them based on a non-working compiler. +if test yes != "$_lt_disable_FC"; then + # Code to be used in simple compile tests + lt_simple_compile_test_code="\ + subroutine t + return + end +" + + # Code to be used in simple link tests + lt_simple_link_test_code="\ + program t + end +" + + # ltmain only uses $CC for tagged configurations so make sure $CC is set. + _LT_TAG_COMPILER + + # save warnings/boilerplate of simple test code + _LT_COMPILER_BOILERPLATE + _LT_LINKER_BOILERPLATE + + # Allow CC to be a program name with arguments. + lt_save_CC=$CC + lt_save_GCC=$GCC + lt_save_CFLAGS=$CFLAGS + CC=${FC-"f95"} + CFLAGS=$FCFLAGS + compiler=$CC + GCC=$ac_cv_fc_compiler_gnu + + _LT_TAGVAR(compiler, $1)=$CC + _LT_CC_BASENAME([$compiler]) + + if test -n "$compiler"; then + AC_MSG_CHECKING([if libtool supports shared libraries]) + AC_MSG_RESULT([$can_build_shared]) + + AC_MSG_CHECKING([whether to build shared libraries]) + test no = "$can_build_shared" && enable_shared=no + + # On AIX, shared libraries and static libraries use the same namespace, and + # are all built from PIC. + case $host_os in + aix3*) + test yes = "$enable_shared" && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + aix[[4-9]]*) + if test ia64 != "$host_cpu"; then + case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in + yes,aix,yes) ;; # shared object as lib.so file only + yes,svr4,*) ;; # shared object as lib.so archive member only + yes,*) enable_static=no ;; # shared object in lib.a archive as well + esac + fi + ;; + esac + AC_MSG_RESULT([$enable_shared]) + + AC_MSG_CHECKING([whether to build static libraries]) + # Make sure either enable_shared or enable_static is yes. + test yes = "$enable_shared" || enable_static=yes + AC_MSG_RESULT([$enable_static]) + + _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu + _LT_TAGVAR(LD, $1)=$LD + + ## CAVEAT EMPTOR: + ## There is no encapsulation within the following macros, do not change + ## the running order or otherwise move them around unless you know exactly + ## what you are doing... + _LT_SYS_HIDDEN_LIBDEPS($1) + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_SYS_DYNAMIC_LINKER($1) + _LT_LINKER_HARDCODE_LIBPATH($1) + + _LT_CONFIG($1) + fi # test -n "$compiler" + + GCC=$lt_save_GCC + CC=$lt_save_CC + CFLAGS=$lt_save_CFLAGS +fi # test yes != "$_lt_disable_FC" + +AC_LANG_POP +])# _LT_LANG_FC_CONFIG + + +# _LT_LANG_GCJ_CONFIG([TAG]) +# -------------------------- +# Ensure that the configuration variables for the GNU Java Compiler compiler +# are suitably defined. These variables are subsequently used by _LT_CONFIG +# to write the compiler configuration to 'libtool'. +m4_defun([_LT_LANG_GCJ_CONFIG], +[AC_REQUIRE([LT_PROG_GCJ])dnl +AC_LANG_SAVE + +# Source file extension for Java test sources. +ac_ext=java + +# Object file extension for compiled Java test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="class foo {}" + +# Code to be used in simple link tests +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' + +# ltmain only uses $CC for tagged configurations so make sure $CC is set. +_LT_TAG_COMPILER + +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE + +# Allow CC to be a program name with arguments. +lt_save_CC=$CC +lt_save_CFLAGS=$CFLAGS +lt_save_GCC=$GCC +GCC=yes +CC=${GCJ-"gcj"} +CFLAGS=$GCJFLAGS +compiler=$CC +_LT_TAGVAR(compiler, $1)=$CC +_LT_TAGVAR(LD, $1)=$LD +_LT_CC_BASENAME([$compiler]) + +# GCJ did not exist at the time GCC didn't implicitly link libc in. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no + +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds +_LT_TAGVAR(reload_flag, $1)=$reload_flag +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds + +## CAVEAT EMPTOR: +## There is no encapsulation within the following macros, do not change +## the running order or otherwise move them around unless you know exactly +## what you are doing... +if test -n "$compiler"; then + _LT_COMPILER_NO_RTTI($1) + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_LINKER_HARDCODE_LIBPATH($1) + + _LT_CONFIG($1) +fi + +AC_LANG_RESTORE + +GCC=$lt_save_GCC +CC=$lt_save_CC +CFLAGS=$lt_save_CFLAGS +])# _LT_LANG_GCJ_CONFIG + + +# _LT_LANG_GO_CONFIG([TAG]) +# -------------------------- +# Ensure that the configuration variables for the GNU Go compiler +# are suitably defined. These variables are subsequently used by _LT_CONFIG +# to write the compiler configuration to 'libtool'. +m4_defun([_LT_LANG_GO_CONFIG], +[AC_REQUIRE([LT_PROG_GO])dnl +AC_LANG_SAVE + +# Source file extension for Go test sources. +ac_ext=go + +# Object file extension for compiled Go test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="package main; func main() { }" + +# Code to be used in simple link tests +lt_simple_link_test_code='package main; func main() { }' + +# ltmain only uses $CC for tagged configurations so make sure $CC is set. +_LT_TAG_COMPILER + +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE + +# Allow CC to be a program name with arguments. +lt_save_CC=$CC +lt_save_CFLAGS=$CFLAGS +lt_save_GCC=$GCC +GCC=yes +CC=${GOC-"gccgo"} +CFLAGS=$GOFLAGS +compiler=$CC +_LT_TAGVAR(compiler, $1)=$CC +_LT_TAGVAR(LD, $1)=$LD +_LT_CC_BASENAME([$compiler]) + +# Go did not exist at the time GCC didn't implicitly link libc in. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no + +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds +_LT_TAGVAR(reload_flag, $1)=$reload_flag +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds + +## CAVEAT EMPTOR: +## There is no encapsulation within the following macros, do not change +## the running order or otherwise move them around unless you know exactly +## what you are doing... +if test -n "$compiler"; then + _LT_COMPILER_NO_RTTI($1) + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_LINKER_HARDCODE_LIBPATH($1) + + _LT_CONFIG($1) +fi + +AC_LANG_RESTORE + +GCC=$lt_save_GCC +CC=$lt_save_CC +CFLAGS=$lt_save_CFLAGS +])# _LT_LANG_GO_CONFIG + + +# _LT_LANG_RC_CONFIG([TAG]) +# ------------------------- +# Ensure that the configuration variables for the Windows resource compiler +# are suitably defined. These variables are subsequently used by _LT_CONFIG +# to write the compiler configuration to 'libtool'. +m4_defun([_LT_LANG_RC_CONFIG], +[AC_REQUIRE([LT_PROG_RC])dnl +AC_LANG_SAVE + +# Source file extension for RC test sources. +ac_ext=rc + +# Object file extension for compiled RC test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' + +# Code to be used in simple link tests +lt_simple_link_test_code=$lt_simple_compile_test_code + +# ltmain only uses $CC for tagged configurations so make sure $CC is set. +_LT_TAG_COMPILER + +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE + +# Allow CC to be a program name with arguments. +lt_save_CC=$CC +lt_save_CFLAGS=$CFLAGS +lt_save_GCC=$GCC +GCC= +CC=${RC-"windres"} +CFLAGS= +compiler=$CC +_LT_TAGVAR(compiler, $1)=$CC +_LT_CC_BASENAME([$compiler]) +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes + +if test -n "$compiler"; then + : + _LT_CONFIG($1) +fi + +GCC=$lt_save_GCC +AC_LANG_RESTORE +CC=$lt_save_CC +CFLAGS=$lt_save_CFLAGS +])# _LT_LANG_RC_CONFIG + + +# LT_PROG_GCJ +# ----------- +AC_DEFUN([LT_PROG_GCJ], +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], + [AC_CHECK_TOOL(GCJ, gcj,) + test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2" + AC_SUBST(GCJFLAGS)])])[]dnl +]) + +# Old name: +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([LT_AC_PROG_GCJ], []) + + +# LT_PROG_GO +# ---------- +AC_DEFUN([LT_PROG_GO], +[AC_CHECK_TOOL(GOC, gccgo,) +]) + + +# LT_PROG_RC +# ---------- +AC_DEFUN([LT_PROG_RC], +[AC_CHECK_TOOL(RC, windres,) +]) + +# Old name: +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([LT_AC_PROG_RC], []) + + +# _LT_DECL_EGREP +# -------------- +# If we don't have a new enough Autoconf to choose the best grep +# available, choose the one first in the user's PATH. +m4_defun([_LT_DECL_EGREP], +[AC_REQUIRE([AC_PROG_EGREP])dnl +AC_REQUIRE([AC_PROG_FGREP])dnl +test -z "$GREP" && GREP=grep +_LT_DECL([], [GREP], [1], [A grep program that handles long lines]) +_LT_DECL([], [EGREP], [1], [An ERE matcher]) +_LT_DECL([], [FGREP], [1], [A literal string matcher]) +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too +AC_SUBST([GREP]) +]) + + +# _LT_DECL_OBJDUMP +# -------------- +# If we don't have a new enough Autoconf to choose the best objdump +# available, choose the one first in the user's PATH. +m4_defun([_LT_DECL_OBJDUMP], +[AC_CHECK_TOOL(OBJDUMP, objdump, false) +test -z "$OBJDUMP" && OBJDUMP=objdump +_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) +AC_SUBST([OBJDUMP]) +]) + +# _LT_DECL_DLLTOOL +# ---------------- +# Ensure DLLTOOL variable is set. +m4_defun([_LT_DECL_DLLTOOL], +[AC_CHECK_TOOL(DLLTOOL, dlltool, false) +test -z "$DLLTOOL" && DLLTOOL=dlltool +_LT_DECL([], [DLLTOOL], [1], [DLL creation program]) +AC_SUBST([DLLTOOL]) +]) + +# _LT_DECL_SED +# ------------ +# Check for a fully-functional sed program, that truncates +# as few characters as possible. Prefer GNU sed if found. +m4_defun([_LT_DECL_SED], +[AC_PROG_SED +test -z "$SED" && SED=sed +Xsed="$SED -e 1s/^X//" +_LT_DECL([], [SED], [1], [A sed program that does not truncate output]) +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], + [Sed that helps us avoid accidentally triggering echo(1) options like -n]) +])# _LT_DECL_SED + +m4_ifndef([AC_PROG_SED], [ +############################################################ +# NOTE: This macro has been submitted for inclusion into # +# GNU Autoconf as AC_PROG_SED. When it is available in # +# a released version of Autoconf we should remove this # +# macro and use it instead. # +############################################################ + +m4_defun([AC_PROG_SED], +[AC_MSG_CHECKING([for a sed that does not truncate output]) +AC_CACHE_VAL(lt_cv_path_SED, +[# Loop through the user's path and test for sed and gsed. +# Then use that list of sed's as ones to test for truncation. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for lt_ac_prog in sed gsed; do + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" + fi + done + done +done +IFS=$as_save_IFS +lt_ac_max=0 +lt_ac_count=0 +# Add /usr/xpg4/bin/sed as it is typically found on Solaris +# along with /bin/sed that truncates output. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do + test ! -f "$lt_ac_sed" && continue + cat /dev/null > conftest.in + lt_ac_count=0 + echo $ECHO_N "0123456789$ECHO_C" >conftest.in + # Check for GNU sed and select it if it is found. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then + lt_cv_path_SED=$lt_ac_sed + break + fi + while true; do + cat conftest.in conftest.in >conftest.tmp + mv conftest.tmp conftest.in + cp conftest.in conftest.nl + echo >>conftest.nl + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break + cmp -s conftest.out conftest.nl || break + # 10000 chars as input seems more than enough + test 10 -lt "$lt_ac_count" && break + lt_ac_count=`expr $lt_ac_count + 1` + if test "$lt_ac_count" -gt "$lt_ac_max"; then + lt_ac_max=$lt_ac_count + lt_cv_path_SED=$lt_ac_sed + fi + done +done +]) +SED=$lt_cv_path_SED +AC_SUBST([SED]) +AC_MSG_RESULT([$SED]) +])#AC_PROG_SED +])#m4_ifndef + +# Old name: +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([LT_AC_PROG_SED], []) + + +# _LT_CHECK_SHELL_FEATURES +# ------------------------ +# Find out whether the shell is Bourne or XSI compatible, +# or has some other useful features. +m4_defun([_LT_CHECK_SHELL_FEATURES], +[if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then + lt_unset=unset +else + lt_unset=false +fi +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl + +# test EBCDIC or ASCII +case `echo X|tr X '\101'` in + A) # ASCII based system + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr + lt_SP2NL='tr \040 \012' + lt_NL2SP='tr \015\012 \040\040' + ;; + *) # EBCDIC based system + lt_SP2NL='tr \100 \n' + lt_NL2SP='tr \r\n \100\100' + ;; +esac +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl +])# _LT_CHECK_SHELL_FEATURES + + +# _LT_PATH_CONVERSION_FUNCTIONS +# ----------------------------- +# Determine what file name conversion functions should be used by +# func_to_host_file (and, implicitly, by func_to_host_path). These are needed +# for certain cross-compile configurations and native mingw. +m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_CANONICAL_BUILD])dnl +AC_MSG_CHECKING([how to convert $build file names to $host format]) +AC_CACHE_VAL(lt_cv_to_host_file_cmd, +[case $host in + *-*-mingw* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 + ;; + *-*-cygwin* ) + lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 + ;; + * ) # otherwise, assume *nix + lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 + ;; + esac + ;; + *-*-cygwin* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin + ;; + *-*-cygwin* ) + lt_cv_to_host_file_cmd=func_convert_file_noop + ;; + * ) # otherwise, assume *nix + lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin + ;; + esac + ;; + * ) # unhandled hosts (and "normal" native builds) + lt_cv_to_host_file_cmd=func_convert_file_noop + ;; +esac +]) +to_host_file_cmd=$lt_cv_to_host_file_cmd +AC_MSG_RESULT([$lt_cv_to_host_file_cmd]) +_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], + [0], [convert $build file names to $host format])dnl + +AC_MSG_CHECKING([how to convert $build file names to toolchain format]) +AC_CACHE_VAL(lt_cv_to_tool_file_cmd, +[#assume ordinary cross tools, or native build. +lt_cv_to_tool_file_cmd=func_convert_file_noop +case $host in + *-*-mingw* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 + ;; + esac + ;; +esac +]) +to_tool_file_cmd=$lt_cv_to_tool_file_cmd +AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) +_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], + [0], [convert $build files to toolchain format])dnl +])# _LT_PATH_CONVERSION_FUNCTIONS diff --git a/components/opus/libopus/m4/ltoptions.m4 b/components/opus/libopus/m4/ltoptions.m4 new file mode 100644 index 0000000..94b0829 --- /dev/null +++ b/components/opus/libopus/m4/ltoptions.m4 @@ -0,0 +1,437 @@ +# Helper functions for option handling. -*- Autoconf -*- +# +# Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software +# Foundation, Inc. +# Written by Gary V. Vaughan, 2004 +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. + +# serial 8 ltoptions.m4 + +# This is to help aclocal find these macros, as it can't see m4_define. +AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) + + +# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) +# ------------------------------------------ +m4_define([_LT_MANGLE_OPTION], +[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) + + +# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) +# --------------------------------------- +# Set option OPTION-NAME for macro MACRO-NAME, and if there is a +# matching handler defined, dispatch to it. Other OPTION-NAMEs are +# saved as a flag. +m4_define([_LT_SET_OPTION], +[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl +m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), + _LT_MANGLE_DEFUN([$1], [$2]), + [m4_warning([Unknown $1 option '$2'])])[]dnl +]) + + +# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) +# ------------------------------------------------------------ +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. +m4_define([_LT_IF_OPTION], +[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) + + +# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) +# ------------------------------------------------------- +# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME +# are set. +m4_define([_LT_UNLESS_OPTIONS], +[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), + [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), + [m4_define([$0_found])])])[]dnl +m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 +])[]dnl +]) + + +# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) +# ---------------------------------------- +# OPTION-LIST is a space-separated list of Libtool options associated +# with MACRO-NAME. If any OPTION has a matching handler declared with +# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about +# the unknown option and exit. +m4_defun([_LT_SET_OPTIONS], +[# Set options +m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), + [_LT_SET_OPTION([$1], _LT_Option)]) + +m4_if([$1],[LT_INIT],[ + dnl + dnl Simply set some default values (i.e off) if boolean options were not + dnl specified: + _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no + ]) + _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no + ]) + dnl + dnl If no reference was made to various pairs of opposing options, then + dnl we run the default mode handler for the pair. For example, if neither + dnl 'shared' nor 'disable-shared' was passed, we enable building of shared + dnl archives by default: + _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) + _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) + _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) + _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], + [_LT_ENABLE_FAST_INSTALL]) + _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4], + [_LT_WITH_AIX_SONAME([aix])]) + ]) +])# _LT_SET_OPTIONS + + +## --------------------------------- ## +## Macros to handle LT_INIT options. ## +## --------------------------------- ## + +# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) +# ----------------------------------------- +m4_define([_LT_MANGLE_DEFUN], +[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) + + +# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) +# ----------------------------------------------- +m4_define([LT_OPTION_DEFINE], +[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl +])# LT_OPTION_DEFINE + + +# dlopen +# ------ +LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes +]) + +AU_DEFUN([AC_LIBTOOL_DLOPEN], +[_LT_SET_OPTION([LT_INIT], [dlopen]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you +put the 'dlopen' option into LT_INIT's first parameter.]) +]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) + + +# win32-dll +# --------- +# Declare package support for building win32 dll's. +LT_OPTION_DEFINE([LT_INIT], [win32-dll], +[enable_win32_dll=yes + +case $host in +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) + AC_CHECK_TOOL(AS, as, false) + AC_CHECK_TOOL(DLLTOOL, dlltool, false) + AC_CHECK_TOOL(OBJDUMP, objdump, false) + ;; +esac + +test -z "$AS" && AS=as +_LT_DECL([], [AS], [1], [Assembler program])dnl + +test -z "$DLLTOOL" && DLLTOOL=dlltool +_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl + +test -z "$OBJDUMP" && OBJDUMP=objdump +_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl +])# win32-dll + +AU_DEFUN([AC_LIBTOOL_WIN32_DLL], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +_LT_SET_OPTION([LT_INIT], [win32-dll]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you +put the 'win32-dll' option into LT_INIT's first parameter.]) +]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) + + +# _LT_ENABLE_SHARED([DEFAULT]) +# ---------------------------- +# implement the --enable-shared flag, and supports the 'shared' and +# 'disable-shared' LT_INIT options. +# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. +m4_define([_LT_ENABLE_SHARED], +[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl +AC_ARG_ENABLE([shared], + [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], + [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], + [p=${PACKAGE-default} + case $enableval in + yes) enable_shared=yes ;; + no) enable_shared=no ;; + *) + enable_shared=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, + for pkg in $enableval; do + IFS=$lt_save_ifs + if test "X$pkg" = "X$p"; then + enable_shared=yes + fi + done + IFS=$lt_save_ifs + ;; + esac], + [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) + + _LT_DECL([build_libtool_libs], [enable_shared], [0], + [Whether or not to build shared libraries]) +])# _LT_ENABLE_SHARED + +LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) +LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) + +# Old names: +AC_DEFUN([AC_ENABLE_SHARED], +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) +]) + +AC_DEFUN([AC_DISABLE_SHARED], +[_LT_SET_OPTION([LT_INIT], [disable-shared]) +]) + +AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) +AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AM_ENABLE_SHARED], []) +dnl AC_DEFUN([AM_DISABLE_SHARED], []) + + + +# _LT_ENABLE_STATIC([DEFAULT]) +# ---------------------------- +# implement the --enable-static flag, and support the 'static' and +# 'disable-static' LT_INIT options. +# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. +m4_define([_LT_ENABLE_STATIC], +[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl +AC_ARG_ENABLE([static], + [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], + [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], + [p=${PACKAGE-default} + case $enableval in + yes) enable_static=yes ;; + no) enable_static=no ;; + *) + enable_static=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, + for pkg in $enableval; do + IFS=$lt_save_ifs + if test "X$pkg" = "X$p"; then + enable_static=yes + fi + done + IFS=$lt_save_ifs + ;; + esac], + [enable_static=]_LT_ENABLE_STATIC_DEFAULT) + + _LT_DECL([build_old_libs], [enable_static], [0], + [Whether or not to build static libraries]) +])# _LT_ENABLE_STATIC + +LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) +LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) + +# Old names: +AC_DEFUN([AC_ENABLE_STATIC], +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) +]) + +AC_DEFUN([AC_DISABLE_STATIC], +[_LT_SET_OPTION([LT_INIT], [disable-static]) +]) + +AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) +AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AM_ENABLE_STATIC], []) +dnl AC_DEFUN([AM_DISABLE_STATIC], []) + + + +# _LT_ENABLE_FAST_INSTALL([DEFAULT]) +# ---------------------------------- +# implement the --enable-fast-install flag, and support the 'fast-install' +# and 'disable-fast-install' LT_INIT options. +# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. +m4_define([_LT_ENABLE_FAST_INSTALL], +[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl +AC_ARG_ENABLE([fast-install], + [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], + [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], + [p=${PACKAGE-default} + case $enableval in + yes) enable_fast_install=yes ;; + no) enable_fast_install=no ;; + *) + enable_fast_install=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, + for pkg in $enableval; do + IFS=$lt_save_ifs + if test "X$pkg" = "X$p"; then + enable_fast_install=yes + fi + done + IFS=$lt_save_ifs + ;; + esac], + [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) + +_LT_DECL([fast_install], [enable_fast_install], [0], + [Whether or not to optimize for fast installation])dnl +])# _LT_ENABLE_FAST_INSTALL + +LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) +LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) + +# Old names: +AU_DEFUN([AC_ENABLE_FAST_INSTALL], +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you put +the 'fast-install' option into LT_INIT's first parameter.]) +]) + +AU_DEFUN([AC_DISABLE_FAST_INSTALL], +[_LT_SET_OPTION([LT_INIT], [disable-fast-install]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you put +the 'disable-fast-install' option into LT_INIT's first parameter.]) +]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) +dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) + + +# _LT_WITH_AIX_SONAME([DEFAULT]) +# ---------------------------------- +# implement the --with-aix-soname flag, and support the `aix-soname=aix' +# and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT +# is either `aix', `both' or `svr4'. If omitted, it defaults to `aix'. +m4_define([_LT_WITH_AIX_SONAME], +[m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl +shared_archive_member_spec= +case $host,$enable_shared in +power*-*-aix[[5-9]]*,yes) + AC_MSG_CHECKING([which variant of shared library versioning to provide]) + AC_ARG_WITH([aix-soname], + [AS_HELP_STRING([--with-aix-soname=aix|svr4|both], + [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])], + [case $withval in + aix|svr4|both) + ;; + *) + AC_MSG_ERROR([Unknown argument to --with-aix-soname]) + ;; + esac + lt_cv_with_aix_soname=$with_aix_soname], + [AC_CACHE_VAL([lt_cv_with_aix_soname], + [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT) + with_aix_soname=$lt_cv_with_aix_soname]) + AC_MSG_RESULT([$with_aix_soname]) + if test aix != "$with_aix_soname"; then + # For the AIX way of multilib, we name the shared archive member + # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', + # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. + # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, + # the AIX toolchain works better with OBJECT_MODE set (default 32). + if test 64 = "${OBJECT_MODE-32}"; then + shared_archive_member_spec=shr_64 + else + shared_archive_member_spec=shr + fi + fi + ;; +*) + with_aix_soname=aix + ;; +esac + +_LT_DECL([], [shared_archive_member_spec], [0], + [Shared archive member basename, for filename based shared library versioning on AIX])dnl +])# _LT_WITH_AIX_SONAME + +LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])]) +LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])]) +LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])]) + + +# _LT_WITH_PIC([MODE]) +# -------------------- +# implement the --with-pic flag, and support the 'pic-only' and 'no-pic' +# LT_INIT options. +# MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'. +m4_define([_LT_WITH_PIC], +[AC_ARG_WITH([pic], + [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@], + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], + [lt_p=${PACKAGE-default} + case $withval in + yes|no) pic_mode=$withval ;; + *) + pic_mode=default + # Look at the argument we got. We use all the common list separators. + lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, + for lt_pkg in $withval; do + IFS=$lt_save_ifs + if test "X$lt_pkg" = "X$lt_p"; then + pic_mode=yes + fi + done + IFS=$lt_save_ifs + ;; + esac], + [pic_mode=m4_default([$1], [default])]) + +_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl +])# _LT_WITH_PIC + +LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) +LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) + +# Old name: +AU_DEFUN([AC_LIBTOOL_PICMODE], +[_LT_SET_OPTION([LT_INIT], [pic-only]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you +put the 'pic-only' option into LT_INIT's first parameter.]) +]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) + +## ----------------- ## +## LTDL_INIT Options ## +## ----------------- ## + +m4_define([_LTDL_MODE], []) +LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], + [m4_define([_LTDL_MODE], [nonrecursive])]) +LT_OPTION_DEFINE([LTDL_INIT], [recursive], + [m4_define([_LTDL_MODE], [recursive])]) +LT_OPTION_DEFINE([LTDL_INIT], [subproject], + [m4_define([_LTDL_MODE], [subproject])]) + +m4_define([_LTDL_TYPE], []) +LT_OPTION_DEFINE([LTDL_INIT], [installable], + [m4_define([_LTDL_TYPE], [installable])]) +LT_OPTION_DEFINE([LTDL_INIT], [convenience], + [m4_define([_LTDL_TYPE], [convenience])]) diff --git a/components/opus/libopus/m4/ltsugar.m4 b/components/opus/libopus/m4/ltsugar.m4 new file mode 100644 index 0000000..48bc934 --- /dev/null +++ b/components/opus/libopus/m4/ltsugar.m4 @@ -0,0 +1,124 @@ +# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- +# +# Copyright (C) 2004-2005, 2007-2008, 2011-2015 Free Software +# Foundation, Inc. +# Written by Gary V. Vaughan, 2004 +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. + +# serial 6 ltsugar.m4 + +# This is to help aclocal find these macros, as it can't see m4_define. +AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) + + +# lt_join(SEP, ARG1, [ARG2...]) +# ----------------------------- +# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their +# associated separator. +# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier +# versions in m4sugar had bugs. +m4_define([lt_join], +[m4_if([$#], [1], [], + [$#], [2], [[$2]], + [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) +m4_define([_lt_join], +[m4_if([$#$2], [2], [], + [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) + + +# lt_car(LIST) +# lt_cdr(LIST) +# ------------ +# Manipulate m4 lists. +# These macros are necessary as long as will still need to support +# Autoconf-2.59, which quotes differently. +m4_define([lt_car], [[$1]]) +m4_define([lt_cdr], +[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], + [$#], 1, [], + [m4_dquote(m4_shift($@))])]) +m4_define([lt_unquote], $1) + + +# lt_append(MACRO-NAME, STRING, [SEPARATOR]) +# ------------------------------------------ +# Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'. +# Note that neither SEPARATOR nor STRING are expanded; they are appended +# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). +# No SEPARATOR is output if MACRO-NAME was previously undefined (different +# than defined and empty). +# +# This macro is needed until we can rely on Autoconf 2.62, since earlier +# versions of m4sugar mistakenly expanded SEPARATOR but not STRING. +m4_define([lt_append], +[m4_define([$1], + m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) + + + +# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) +# ---------------------------------------------------------- +# Produce a SEP delimited list of all paired combinations of elements of +# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list +# has the form PREFIXmINFIXSUFFIXn. +# Needed until we can rely on m4_combine added in Autoconf 2.62. +m4_define([lt_combine], +[m4_if(m4_eval([$# > 3]), [1], + [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl +[[m4_foreach([_Lt_prefix], [$2], + [m4_foreach([_Lt_suffix], + ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, + [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) + + +# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) +# ----------------------------------------------------------------------- +# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited +# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. +m4_define([lt_if_append_uniq], +[m4_ifdef([$1], + [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], + [lt_append([$1], [$2], [$3])$4], + [$5])], + [lt_append([$1], [$2], [$3])$4])]) + + +# lt_dict_add(DICT, KEY, VALUE) +# ----------------------------- +m4_define([lt_dict_add], +[m4_define([$1($2)], [$3])]) + + +# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) +# -------------------------------------------- +m4_define([lt_dict_add_subkey], +[m4_define([$1($2:$3)], [$4])]) + + +# lt_dict_fetch(DICT, KEY, [SUBKEY]) +# ---------------------------------- +m4_define([lt_dict_fetch], +[m4_ifval([$3], + m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), + m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) + + +# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) +# ----------------------------------------------------------------- +m4_define([lt_if_dict_fetch], +[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], + [$5], + [$6])]) + + +# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) +# -------------------------------------------------------------- +m4_define([lt_dict_filter], +[m4_if([$5], [], [], + [lt_join(m4_quote(m4_default([$4], [[, ]])), + lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), + [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl +]) diff --git a/components/opus/libopus/m4/ltversion.m4 b/components/opus/libopus/m4/ltversion.m4 new file mode 100644 index 0000000..fa04b52 --- /dev/null +++ b/components/opus/libopus/m4/ltversion.m4 @@ -0,0 +1,23 @@ +# ltversion.m4 -- version numbers -*- Autoconf -*- +# +# Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc. +# Written by Scott James Remnant, 2004 +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. + +# @configure_input@ + +# serial 4179 ltversion.m4 +# This file is part of GNU Libtool + +m4_define([LT_PACKAGE_VERSION], [2.4.6]) +m4_define([LT_PACKAGE_REVISION], [2.4.6]) + +AC_DEFUN([LTVERSION_VERSION], +[macro_version='2.4.6' +macro_revision='2.4.6' +_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) +_LT_DECL(, macro_revision, 0) +]) diff --git a/components/opus/libopus/m4/lt~obsolete.m4 b/components/opus/libopus/m4/lt~obsolete.m4 new file mode 100644 index 0000000..c6b26f8 --- /dev/null +++ b/components/opus/libopus/m4/lt~obsolete.m4 @@ -0,0 +1,99 @@ +# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- +# +# Copyright (C) 2004-2005, 2007, 2009, 2011-2015 Free Software +# Foundation, Inc. +# Written by Scott James Remnant, 2004. +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. + +# serial 5 lt~obsolete.m4 + +# These exist entirely to fool aclocal when bootstrapping libtool. +# +# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN), +# which have later been changed to m4_define as they aren't part of the +# exported API, or moved to Autoconf or Automake where they belong. +# +# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN +# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us +# using a macro with the same name in our local m4/libtool.m4 it'll +# pull the old libtool.m4 in (it doesn't see our shiny new m4_define +# and doesn't know about Autoconf macros at all.) +# +# So we provide this file, which has a silly filename so it's always +# included after everything else. This provides aclocal with the +# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything +# because those macros already exist, or will be overwritten later. +# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. +# +# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. +# Yes, that means every name once taken will need to remain here until +# we give up compatibility with versions before 1.7, at which point +# we need to keep only those names which we still refer to. + +# This is to help aclocal find these macros, as it can't see m4_define. +AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) + +m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) +m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) +m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) +m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) +m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) +m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) +m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) +m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) +m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) +m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) +m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) +m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) +m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) +m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) +m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) +m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) +m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) +m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) +m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) +m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) +m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) +m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) +m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) +m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) +m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) +m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) +m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) +m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) +m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) +m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) +m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) +m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) +m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) +m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) +m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) +m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) +m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) +m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) +m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) +m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) +m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) +m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) +m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) +m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) +m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) +m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) +m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) +m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) +m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) +m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) +m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) +m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])]) +m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])]) +m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])]) +m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])]) +m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])]) +m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) +m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])]) diff --git a/components/opus/libopus/m4/opus-intrinsics.m4 b/components/opus/libopus/m4/opus-intrinsics.m4 new file mode 100644 index 0000000..a262ca1 --- /dev/null +++ b/components/opus/libopus/m4/opus-intrinsics.m4 @@ -0,0 +1,29 @@ +dnl opus-intrinsics.m4 +dnl macro for testing for support for compiler intrinsics, either by default or with a compiler flag + +dnl OPUS_CHECK_INTRINSICS(NAME-OF-INTRINSICS, COMPILER-FLAG-FOR-INTRINSICS, VAR-IF-PRESENT, VAR-IF-DEFAULT, TEST-PROGRAM-HEADER, TEST-PROGRAM-BODY) +AC_DEFUN([OPUS_CHECK_INTRINSICS], +[ + AC_MSG_CHECKING([if compiler supports $1 intrinsics]) + AC_LINK_IFELSE( + [AC_LANG_PROGRAM($5, $6)], + [ + $3=1 + $4=1 + AC_MSG_RESULT([yes]) + ],[ + $4=0 + AC_MSG_RESULT([no]) + AC_MSG_CHECKING([if compiler supports $1 intrinsics with $2]) + save_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS $2" + AC_LINK_IFELSE([AC_LANG_PROGRAM($5, $6)], + [ + AC_MSG_RESULT([yes]) + $3=1 + ],[ + AC_MSG_RESULT([no]) + $3=0 + ]) + CFLAGS="$save_CFLAGS" + ]) +]) diff --git a/components/opus/libopus/missing b/components/opus/libopus/missing new file mode 100644 index 0000000..c6e3795 --- /dev/null +++ b/components/opus/libopus/missing @@ -0,0 +1,215 @@ +#! /bin/sh +# Common wrapper for a few potentially missing GNU programs. + +scriptversion=2016-01-11.22; # UTC + +# Copyright (C) 1996-2017 Free Software Foundation, Inc. +# Originally written by Fran,cois Pinard , 1996. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +if test $# -eq 0; then + echo 1>&2 "Try '$0 --help' for more information" + exit 1 +fi + +case $1 in + + --is-lightweight) + # Used by our autoconf macros to check whether the available missing + # script is modern enough. + exit 0 + ;; + + --run) + # Back-compat with the calling convention used by older automake. + shift + ;; + + -h|--h|--he|--hel|--help) + echo "\ +$0 [OPTION]... PROGRAM [ARGUMENT]... + +Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due +to PROGRAM being missing or too old. + +Options: + -h, --help display this help and exit + -v, --version output version information and exit + +Supported PROGRAM values: + aclocal autoconf autoheader autom4te automake makeinfo + bison yacc flex lex help2man + +Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and +'g' are ignored when checking the name. + +Send bug reports to ." + exit $? + ;; + + -v|--v|--ve|--ver|--vers|--versi|--versio|--version) + echo "missing $scriptversion (GNU Automake)" + exit $? + ;; + + -*) + echo 1>&2 "$0: unknown '$1' option" + echo 1>&2 "Try '$0 --help' for more information" + exit 1 + ;; + +esac + +# Run the given program, remember its exit status. +"$@"; st=$? + +# If it succeeded, we are done. +test $st -eq 0 && exit 0 + +# Also exit now if we it failed (or wasn't found), and '--version' was +# passed; such an option is passed most likely to detect whether the +# program is present and works. +case $2 in --version|--help) exit $st;; esac + +# Exit code 63 means version mismatch. This often happens when the user +# tries to use an ancient version of a tool on a file that requires a +# minimum version. +if test $st -eq 63; then + msg="probably too old" +elif test $st -eq 127; then + # Program was missing. + msg="missing on your system" +else + # Program was found and executed, but failed. Give up. + exit $st +fi + +perl_URL=http://www.perl.org/ +flex_URL=http://flex.sourceforge.net/ +gnu_software_URL=http://www.gnu.org/software + +program_details () +{ + case $1 in + aclocal|automake) + echo "The '$1' program is part of the GNU Automake package:" + echo "<$gnu_software_URL/automake>" + echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:" + echo "<$gnu_software_URL/autoconf>" + echo "<$gnu_software_URL/m4/>" + echo "<$perl_URL>" + ;; + autoconf|autom4te|autoheader) + echo "The '$1' program is part of the GNU Autoconf package:" + echo "<$gnu_software_URL/autoconf/>" + echo "It also requires GNU m4 and Perl in order to run:" + echo "<$gnu_software_URL/m4/>" + echo "<$perl_URL>" + ;; + esac +} + +give_advice () +{ + # Normalize program name to check for. + normalized_program=`echo "$1" | sed ' + s/^gnu-//; t + s/^gnu//; t + s/^g//; t'` + + printf '%s\n' "'$1' is $msg." + + configure_deps="'configure.ac' or m4 files included by 'configure.ac'" + case $normalized_program in + autoconf*) + echo "You should only need it if you modified 'configure.ac'," + echo "or m4 files included by it." + program_details 'autoconf' + ;; + autoheader*) + echo "You should only need it if you modified 'acconfig.h' or" + echo "$configure_deps." + program_details 'autoheader' + ;; + automake*) + echo "You should only need it if you modified 'Makefile.am' or" + echo "$configure_deps." + program_details 'automake' + ;; + aclocal*) + echo "You should only need it if you modified 'acinclude.m4' or" + echo "$configure_deps." + program_details 'aclocal' + ;; + autom4te*) + echo "You might have modified some maintainer files that require" + echo "the 'autom4te' program to be rebuilt." + program_details 'autom4te' + ;; + bison*|yacc*) + echo "You should only need it if you modified a '.y' file." + echo "You may want to install the GNU Bison package:" + echo "<$gnu_software_URL/bison/>" + ;; + lex*|flex*) + echo "You should only need it if you modified a '.l' file." + echo "You may want to install the Fast Lexical Analyzer package:" + echo "<$flex_URL>" + ;; + help2man*) + echo "You should only need it if you modified a dependency" \ + "of a man page." + echo "You may want to install the GNU Help2man package:" + echo "<$gnu_software_URL/help2man/>" + ;; + makeinfo*) + echo "You should only need it if you modified a '.texi' file, or" + echo "any other file indirectly affecting the aspect of the manual." + echo "You might want to install the Texinfo package:" + echo "<$gnu_software_URL/texinfo/>" + echo "The spurious makeinfo call might also be the consequence of" + echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might" + echo "want to install GNU make:" + echo "<$gnu_software_URL/make/>" + ;; + *) + echo "You might have modified some files without having the proper" + echo "tools for further handling them. Check the 'README' file, it" + echo "often tells you about the needed prerequisites for installing" + echo "this package. You may also peek at any GNU archive site, in" + echo "case some other package contains this missing '$1' program." + ;; + esac +} + +give_advice "$1" | sed -e '1s/^/WARNING: /' \ + -e '2,$s/^/ /' >&2 + +# Propagate the correct exit status (expected to be 127 for a program +# not found, 63 for a program that failed due to version mismatch). +exit $st + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-time-zone: "UTC0" +# time-stamp-end: "; # UTC" +# End: diff --git a/components/opus/libopus/opus-uninstalled.pc.in b/components/opus/libopus/opus-uninstalled.pc.in new file mode 100644 index 0000000..19f5c93 --- /dev/null +++ b/components/opus/libopus/opus-uninstalled.pc.in @@ -0,0 +1,12 @@ +# Opus codec reference implementation uninstalled pkg-config file + +libdir=${pcfiledir}/.libs +includedir=${pcfiledir} + +Name: opus uninstalled +Description: Opus IETF audio codec (not installed, @PC_BUILD@) +Version: @VERSION@ +Requires: +Conflicts: +Libs: ${libdir}/libopus.la @LIBM@ +Cflags: -I${pcfiledir}/@top_srcdir@/include diff --git a/components/opus/libopus/opus.m4 b/components/opus/libopus/opus.m4 new file mode 100644 index 0000000..47f5ec4 --- /dev/null +++ b/components/opus/libopus/opus.m4 @@ -0,0 +1,117 @@ +# Configure paths for libopus +# Gregory Maxwell 08-30-2012 +# Shamelessly stolen from Jack Moffitt (libogg) who +# Shamelessly stole from Owen Taylor and Manish Singh + +dnl XIPH_PATH_OPUS([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) +dnl Test for libopus, and define OPUS_CFLAGS and OPUS_LIBS +dnl +AC_DEFUN([XIPH_PATH_OPUS], +[dnl +dnl Get the cflags and libraries +dnl +AC_ARG_WITH(opus,AC_HELP_STRING([--with-opus=PFX],[Prefix where opus is installed (optional)]), opus_prefix="$withval", opus_prefix="") +AC_ARG_WITH(opus-libraries,AC_HELP_STRING([--with-opus-libraries=DIR],[Directory where the opus library is installed (optional)]), opus_libraries="$withval", opus_libraries="") +AC_ARG_WITH(opus-includes,AC_HELP_STRING([--with-opus-includes=DIR],[Directory where the opus header files are installed (optional)]), opus_includes="$withval", opus_includes="") +AC_ARG_ENABLE(opustest,AC_HELP_STRING([--disable-opustest],[Do not try to compile and run a test opus program]),, enable_opustest=yes) + + if test "x$opus_libraries" != "x" ; then + OPUS_LIBS="-L$opus_libraries" + elif test "x$opus_prefix" = "xno" || test "x$opus_prefix" = "xyes" ; then + OPUS_LIBS="" + elif test "x$opus_prefix" != "x" ; then + OPUS_LIBS="-L$opus_prefix/lib" + elif test "x$prefix" != "xNONE" ; then + OPUS_LIBS="-L$prefix/lib" + fi + + if test "x$opus_prefix" != "xno" ; then + OPUS_LIBS="$OPUS_LIBS -lopus" + fi + + if test "x$opus_includes" != "x" ; then + OPUS_CFLAGS="-I$opus_includes" + elif test "x$opus_prefix" = "xno" || test "x$opus_prefix" = "xyes" ; then + OPUS_CFLAGS="" + elif test "x$opus_prefix" != "x" ; then + OPUS_CFLAGS="-I$opus_prefix/include" + elif test "x$prefix" != "xNONE"; then + OPUS_CFLAGS="-I$prefix/include" + fi + + AC_MSG_CHECKING(for Opus) + if test "x$opus_prefix" = "xno" ; then + no_opus="disabled" + enable_opustest="no" + else + no_opus="" + fi + + + if test "x$enable_opustest" = "xyes" ; then + ac_save_CFLAGS="$CFLAGS" + ac_save_LIBS="$LIBS" + CFLAGS="$CFLAGS $OPUS_CFLAGS" + LIBS="$LIBS $OPUS_LIBS" +dnl +dnl Now check if the installed Opus is sufficiently new. +dnl + rm -f conf.opustest + AC_TRY_RUN([ +#include +#include +#include +#include + +int main () +{ + system("touch conf.opustest"); + return 0; +} + +],, no_opus=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) + CFLAGS="$ac_save_CFLAGS" + LIBS="$ac_save_LIBS" + fi + + if test "x$no_opus" = "xdisabled" ; then + AC_MSG_RESULT(no) + ifelse([$2], , :, [$2]) + elif test "x$no_opus" = "x" ; then + AC_MSG_RESULT(yes) + ifelse([$1], , :, [$1]) + else + AC_MSG_RESULT(no) + if test -f conf.opustest ; then + : + else + echo "*** Could not run Opus test program, checking why..." + CFLAGS="$CFLAGS $OPUS_CFLAGS" + LIBS="$LIBS $OPUS_LIBS" + AC_TRY_LINK([ +#include +#include +], [ return 0; ], + [ echo "*** The test program compiled, but did not run. This usually means" + echo "*** that the run-time linker is not finding Opus or finding the wrong" + echo "*** version of Opus. If it is not finding Opus, you'll need to set your" + echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" + echo "*** to the installed location Also, make sure you have run ldconfig if that" + echo "*** is required on your system" + echo "***" + echo "*** If you have an old version installed, it is best to remove it, although" + echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"], + [ echo "*** The test program failed to compile or link. See the file config.log for the" + echo "*** exact error that occurred. This usually means Opus was incorrectly installed" + echo "*** or that you have moved Opus since it was installed." ]) + CFLAGS="$ac_save_CFLAGS" + LIBS="$ac_save_LIBS" + fi + OPUS_CFLAGS="" + OPUS_LIBS="" + ifelse([$2], , :, [$2]) + fi + AC_SUBST(OPUS_CFLAGS) + AC_SUBST(OPUS_LIBS) + rm -f conf.opustest +]) diff --git a/components/opus/libopus/opus.pc.in b/components/opus/libopus/opus.pc.in new file mode 100644 index 0000000..6946e7d --- /dev/null +++ b/components/opus/libopus/opus.pc.in @@ -0,0 +1,16 @@ +# Opus codec reference implementation pkg-config file + +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: Opus +Description: Opus IETF audio codec (@PC_BUILD@ build) +URL: https://opus-codec.org/ +Version: @VERSION@ +Requires: +Conflicts: +Libs: -L${libdir} -lopus +Libs.private: @LIBM@ +Cflags: -I${includedir}/opus diff --git a/components/opus/libopus/opus_config.cmake b/components/opus/libopus/opus_config.cmake new file mode 100644 index 0000000..a0bfd58 --- /dev/null +++ b/components/opus/libopus/opus_config.cmake @@ -0,0 +1,43 @@ +include(opus_functions.cmake) + +configure_file(config.h.cmake.in config.h @ONLY) +add_definitions(-DHAVE_CONFIG_H) + +set_property(GLOBAL PROPERTY USE_FOLDERS ON) +set_property(GLOBAL PROPERTY C_STANDARD 99) + +if(MSVC) + add_definitions(-D_CRT_SECURE_NO_WARNINGS) +endif() + +include(CheckLibraryExists) +check_library_exists(m floor "" HAVE_LIBM) +if(HAVE_LIBM) + list(APPEND OPUS_REQUIRED_LIBRARIES m) +endif() + +if(CMAKE_SYSTEM_PROCESSOR MATCHES "(i[0-9]86|x86|X86|amd64|AMD64|x86_64)") + if(CMAKE_SIZEOF_VOID_P EQUAL 8) + set(OPUS_CPU_X64 1) + else() + set(OPUS_CPU_X86 1) + endif() +elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "arm") + set(OPUS_CPU_ARM 1) +endif() + +opus_supports_cpu_detection(RUNTIME_CPU_CAPABILITY_DETECTION) + +if(OPUS_CPU_X86 OR OPUS_CPU_X64) + opus_detect_sse(COMPILER_SUPPORT_SIMD) +elseif(OPUS_CPU_ARM) + opus_detect_neon(COMPILER_SUPPORT_NEON) + if(COMPILER_SUPPORT_NEON) + option(OPUS_USE_NEON "Option to turn off SSE" ON) + option(OPUS_MAY_SUPPORT_NEON "Does runtime check for neon support" ON) + option(OPUS_PRESUME_NEON "Assume target CPU has NEON support" OFF) + if(CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64") + set(OPUS_PRESUME_NEON ON) + endif() + endif() +endif() diff --git a/components/opus/libopus/opus_functions.cmake b/components/opus/libopus/opus_functions.cmake new file mode 100644 index 0000000..fe309c2 --- /dev/null +++ b/components/opus/libopus/opus_functions.cmake @@ -0,0 +1,262 @@ +#[[Cmake helper function to parse source files from make files +this is to avoid breaking existing make and auto make support +but still have the option to use CMake with only lists at one place]] + +cmake_minimum_required(VERSION 3.1) + +function(get_library_version OPUS_LIBRARY_VERSION OPUS_LIBRARY_VERSION_MAJOR) + file(STRINGS configure.ac opus_lt_current_string + LIMIT_COUNT 1 + REGEX "OPUS_LT_CURRENT=") + string(REGEX MATCH + "OPUS_LT_CURRENT=([0-9]*)" + _ + ${opus_lt_current_string}) + set(OPUS_LT_CURRENT ${CMAKE_MATCH_1}) + + file(STRINGS configure.ac opus_lt_revision_string + LIMIT_COUNT 1 + REGEX "OPUS_LT_REVISION=") + string(REGEX MATCH + "OPUS_LT_REVISION=([0-9]*)" + _ + ${opus_lt_revision_string}) + set(OPUS_LT_REVISION ${CMAKE_MATCH_1}) + + file(STRINGS configure.ac opus_lt_age_string + LIMIT_COUNT 1 + REGEX "OPUS_LT_AGE=") + string(REGEX MATCH + "OPUS_LT_AGE=([0-9]*)" + _ + ${opus_lt_age_string}) + set(OPUS_LT_AGE ${CMAKE_MATCH_1}) + + math(EXPR OPUS_LIBRARY_VERSION_MAJOR "${OPUS_LT_CURRENT} - ${OPUS_LT_AGE}") + set(OPUS_LIBRARY_VERSION_MINOR ${OPUS_LT_AGE}) + set(OPUS_LIBRARY_VERSION_PATCH ${OPUS_LT_REVISION}) + set( + OPUS_LIBRARY_VERSION + "${OPUS_LIBRARY_VERSION_MAJOR}.${OPUS_LIBRARY_VERSION_MINOR}.${OPUS_LIBRARY_VERSION_PATCH}" + PARENT_SCOPE) + set(OPUS_LIBRARY_VERSION_MAJOR ${OPUS_LIBRARY_VERSION_MAJOR} PARENT_SCOPE) +endfunction() + +function(get_package_version PACKAGE_VERSION) + find_package(Git) + if(GIT_FOUND) + execute_process(COMMAND ${GIT_EXECUTABLE} describe --tags --match "v*" + OUTPUT_VARIABLE OPUS_PACKAGE_VERSION) + if(OPUS_PACKAGE_VERSION) + string(STRIP ${OPUS_PACKAGE_VERSION}, OPUS_PACKAGE_VERSION) + string(REPLACE \n + "" + OPUS_PACKAGE_VERSION + ${OPUS_PACKAGE_VERSION}) + string(REPLACE , + "" + OPUS_PACKAGE_VERSION + ${OPUS_PACKAGE_VERSION}) + + string(SUBSTRING ${OPUS_PACKAGE_VERSION} + 1 + -1 + OPUS_PACKAGE_VERSION) + set(PACKAGE_VERSION ${OPUS_PACKAGE_VERSION} PARENT_SCOPE) + return() + endif() + endif() + + if(EXISTS "${CMAKE_SOURCE_DIR}/package_version") + # Not a git repo, lets' try to parse it from package_version file if exists + file(STRINGS package_version opus_package_version_string + LIMIT_COUNT 1 + REGEX "PACKAGE_VERSION=") + string(REPLACE "PACKAGE_VERSION=" + "" + opus_package_version_string + ${opus_package_version_string}) + string(REPLACE "\"" + "" + opus_package_version_string + ${opus_package_version_string}) + set(PACKAGE_VERSION ${opus_package_version_string} PARENT_SCOPE) + return() + endif() + + # if all else fails set to 0 + set(PACKAGE_VERSION 0 PARENT_SCOPE) +endfunction() + +function(check_and_set_flag NAME FLAG) + include(CheckCCompilerFlag) + check_c_compiler_flag(${FLAG} ${NAME}_SUPPORTED) + if(${NAME}_SUPPORTED) + add_definitions(${FLAG}) + endif() +endfunction() + +function(check_flag NAME FLAG) + include(CheckCCompilerFlag) + check_c_compiler_flag(${FLAG} ${NAME}_SUPPORTED) +endfunction() + +include(CheckIncludeFile) +# function to check if compiler supports SSE, SSE2, SSE4.1 and AVX if target +# systems may not have SSE support then use OPUS_MAY_HAVE_SSE option if target +# system is guaranteed to have SSE support then OPUS_PRESUME_SSE can be used to +# skip SSE runtime check +function(opus_detect_sse COMPILER_SUPPORT_SIMD) + message(STATUS "Check SIMD support by compiler") + check_include_file(xmmintrin.h HAVE_XMMINTRIN_H) # SSE1 + if(HAVE_XMMINTRIN_H) + if(MSVC) + # different arch options for 32 and 64 bit target for MSVC + if(CMAKE_SIZEOF_VOID_P EQUAL 4) + check_flag(SSE1 /arch:SSE) + else() + set(SSE1_SUPPORTED 1 PARENT_SCOPE) + endif() + else() + check_and_set_flag(SSE1 -msse) + endif() + else() + set(SSE1_SUPPORTED 0 PARENT_SCOPE) + endif() + + check_include_file(emmintrin.h HAVE_EMMINTRIN_H) # SSE2 + if(HAVE_EMMINTRIN_H) + if(MSVC) + if(CMAKE_SIZEOF_VOID_P EQUAL 4) + check_flag(SSE2 /arch:SSE2) + else() + set(SSE2_SUPPORTED 1 PARENT_SCOPE) + endif() + else() + check_and_set_flag(SSE2 -msse2) + endif() + else() + set(SSE2_SUPPORTED 0 PARENT_SCOPE) + endif() + + check_include_file(smmintrin.h HAVE_SMMINTRIN_H) # SSE4.1 + if(HAVE_SMMINTRIN_H) + if(MSVC) + if(CMAKE_SIZEOF_VOID_P EQUAL 4) + check_flag(SSE4_1 /arch:SSE2) # SSE2 and above + else() + set(SSE4_1_SUPPORTED 1 PARENT_SCOPE) + endif() + else() + check_and_set_flag(SSE4_1 -msse4.1) + endif() + else() + set(SSE4_1_SUPPORTED 0 PARENT_SCOPE) + endif() + + check_include_file(immintrin.h HAVE_IMMINTRIN_H) # AVX + if(HAVE_IMMINTRIN_H) + if(MSVC) + check_flag(AVX /arch:AVX) + else() + check_and_set_flag(AVX -mavx) + endif() + else() + set(AVX_SUPPORTED 0 PARENT_SCOPE) + endif() + + if(MSVC) # To avoid warning D9025 of overriding compiler options + if(AVX_SUPPORTED) # on 64 bit and 32 bits + add_definitions(/arch:AVX) + elseif(CMAKE_SIZEOF_VOID_P EQUAL 4) # if AVX not supported then set SSE flag + if(SSE4_1_SUPPORTED OR SSE2_SUPPORTED) + add_definitions(/arch:SSE2) + elseif(SSE1_SUPPORTED) + add_definitions(/arch:SSE) + endif() + endif() + endif() + + if(SSE1_SUPPORTED OR SSE2_SUPPORTED OR SSE4_1_SUPPORTED OR AVX_SUPPORTED) + set(COMPILER_SUPPORT_SIMD 1 PARENT_SCOPE) + else() + message(STATUS "No SIMD support in compiler") + endif() +endfunction() + +function(opus_detect_neon COMPILER_SUPPORT_NEON) + if(CMAKE_SYSTEM_PROCESSOR MATCHES "(armv7-a|aarch64)") + message(STATUS "Check NEON support by compiler") + check_include_file(arm_neon.h HAVE_ARM_NEON_H) + if(HAVE_ARM_NEON_H) + set(COMPILER_SUPPORT_NEON ${HAVE_ARM_NEON_H} PARENT_SCOPE) + endif() + endif() +endfunction() + +function(opus_supports_cpu_detection RUNTIME_CPU_CAPABILITY_DETECTION) + if(MSVC) + check_include_file(intrin.h HAVE_INTRIN_H) + else() + check_include_file(cpuid.h HAVE_CPUID_H) + endif() + if(HAVE_INTRIN_H OR HAVE_CPUID_H) + set(RUNTIME_CPU_CAPABILITY_DETECTION 1 PARENT_SCOPE) + else() + set(RUNTIME_CPU_CAPABILITY_DETECTION 0 PARENT_SCOPE) + endif() +endfunction() + +function(add_sources_group target group) + target_sources(${target} PRIVATE ${ARGN}) + source_group(${group} FILES ${ARGN}) +endfunction() + +function(get_opus_sources SOURCE_GROUP MAKE_FILE SOURCES) + # read file, each item in list is one group + file(STRINGS ${MAKE_FILE} opus_sources) + + # add wildcard for regex match + string(CONCAT SOURCE_GROUP ${SOURCE_GROUP} ".*$") + + # find group + foreach(val IN LISTS opus_sources) + if(val MATCHES ${SOURCE_GROUP}) + list(LENGTH val list_length) + if(${list_length} EQUAL 1) + # for tests split by '=' and clean up the rest into a list + string(FIND ${val} "=" index) + math(EXPR index "${index} + 1") + string(SUBSTRING ${val} + ${index} + -1 + sources) + string(REPLACE " " + ";" + sources + ${sources}) + else() + # discard the group + list(REMOVE_AT val 0) + set(sources ${val}) + endif() + break() + endif() + endforeach() + + list(LENGTH sources list_length) + if(${list_length} LESS 1) + message( + FATAL_ERROR + "No files parsed succesfully from ${SOURCE_GROUP} in ${MAKE_FILE}") + endif() + + # remove trailing whitespaces + set(list_var "") + foreach(source ${sources}) + string(STRIP "${source}" source) + list(APPEND list_var "${source}") + endforeach() + + set(${SOURCES} ${list_var} PARENT_SCOPE) +endfunction() diff --git a/components/opus/libopus/opus_headers.mk b/components/opus/libopus/opus_headers.mk new file mode 100644 index 0000000..27596f2 --- /dev/null +++ b/components/opus/libopus/opus_headers.mk @@ -0,0 +1,9 @@ +OPUS_HEAD = \ +include/opus.h \ +include/opus_multistream.h \ +include/opus_projection.h \ +src/opus_private.h \ +src/analysis.h \ +src/mapping_matrix.h \ +src/mlp.h \ +src/tansig_table.h diff --git a/components/opus/libopus/opus_sources.cmake b/components/opus/libopus/opus_sources.cmake new file mode 100644 index 0000000..225543a --- /dev/null +++ b/components/opus/libopus/opus_sources.cmake @@ -0,0 +1,38 @@ +include(opus_functions.cmake) + +get_opus_sources(SILK_SOURCES silk_sources.mk silk_sources) +get_opus_sources(SILK_SOURCES_FLOAT silk_sources.mk silk_sources_float) +get_opus_sources(SILK_SOURCES_FIXED silk_sources.mk silk_sources_fixed) +get_opus_sources(SILK_SOURCES_SSE4_1 silk_sources.mk silk_sources_sse4_1) +get_opus_sources(SILK_SOURCES_FIXED_SSE4_1 silk_sources.mk + silk_sources_fixed_sse4_1) +get_opus_sources(SILK_SOURCES_ARM_NEON_INTR silk_sources.mk + silk_sources_arm_neon_intr) +get_opus_sources(SILK_SOURCES_FIXED_ARM_NEON_INTR silk_sources.mk + silk_sources_fixed_arm_neon_intr) + +get_opus_sources(OPUS_SOURCES opus_sources.mk opus_sources) +get_opus_sources(OPUS_SOURCES_FLOAT opus_sources.mk opus_sources_float) + +get_opus_sources(CELT_SOURCES celt_sources.mk celt_sources) +get_opus_sources(CELT_SOURCES_SSE celt_sources.mk celt_sources_sse) +get_opus_sources(CELT_SOURCES_SSE2 celt_sources.mk celt_sources_sse2) +get_opus_sources(CELT_SOURCES_SSE4_1 celt_sources.mk celt_sources_sse4_1) +get_opus_sources(CELT_SOURCES_ARM celt_sources.mk celt_sources_arm) +get_opus_sources(CELT_SOURCES_ARM_ASM celt_sources.mk celt_sources_arm_asm) +get_opus_sources(CELT_AM_SOURCES_ARM_ASM celt_sources.mk + celt_am_sources_arm_asm) +get_opus_sources(CELT_SOURCES_ARM_NEON_INTR celt_sources.mk + celt_sources_arm_neon_intr) +get_opus_sources(CELT_SOURCES_ARM_NE10 celt_sources.mk celt_sources_arm_ne10) + +get_opus_sources(opus_demo_SOURCES Makefile.am opus_demo_sources) +get_opus_sources(opus_custom_demo_SOURCES Makefile.am opus_custom_demo_sources) +get_opus_sources(opus_compare_SOURCES Makefile.am opus_compare_sources) +get_opus_sources(tests_test_opus_api_SOURCES Makefile.am test_opus_api_sources) +get_opus_sources(tests_test_opus_encode_SOURCES Makefile.am + test_opus_encode_sources) +get_opus_sources(tests_test_opus_decode_SOURCES Makefile.am + test_opus_decode_sources) +get_opus_sources(tests_test_opus_padding_SOURCES Makefile.am + test_opus_padding_sources) diff --git a/components/opus/libopus/opus_sources.mk b/components/opus/libopus/opus_sources.mk new file mode 100644 index 0000000..44153b5 --- /dev/null +++ b/components/opus/libopus/opus_sources.mk @@ -0,0 +1,16 @@ +OPUS_SOURCES = \ +src/opus.c \ +src/opus_decoder.c \ +src/opus_encoder.c \ +src/opus_multistream.c \ +src/opus_multistream_encoder.c \ +src/opus_multistream_decoder.c \ +src/repacketizer.c \ +src/opus_projection_encoder.c \ +src/opus_projection_decoder.c \ +src/mapping_matrix.c + +OPUS_SOURCES_FLOAT = \ +src/analysis.c \ +src/mlp.c \ +src/mlp_data.c diff --git a/components/opus/libopus/package_version b/components/opus/libopus/package_version new file mode 100644 index 0000000..2b1720b --- /dev/null +++ b/components/opus/libopus/package_version @@ -0,0 +1 @@ +PACKAGE_VERSION="1.3.1" diff --git a/components/opus/libopus/silk/A2NLSF.c b/components/opus/libopus/silk/A2NLSF.c new file mode 100644 index 0000000..b487686 --- /dev/null +++ b/components/opus/libopus/silk/A2NLSF.c @@ -0,0 +1,267 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +/* Conversion between prediction filter coefficients and NLSFs */ +/* Requires the order to be an even number */ +/* A piecewise linear approximation maps LSF <-> cos(LSF) */ +/* Therefore the result is not accurate NLSFs, but the two */ +/* functions are accurate inverses of each other */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "SigProc_FIX.h" +#include "tables.h" + +/* Number of binary divisions, when not in low complexity mode */ +#define BIN_DIV_STEPS_A2NLSF_FIX 3 /* must be no higher than 16 - log2( LSF_COS_TAB_SZ_FIX ) */ +#define MAX_ITERATIONS_A2NLSF_FIX 16 + +/* Helper function for A2NLSF(..) */ +/* Transforms polynomials from cos(n*f) to cos(f)^n */ +static OPUS_INLINE void silk_A2NLSF_trans_poly( + opus_int32 *p, /* I/O Polynomial */ + const opus_int dd /* I Polynomial order (= filter order / 2 ) */ +) +{ + opus_int k, n; + + for( k = 2; k <= dd; k++ ) { + for( n = dd; n > k; n-- ) { + p[ n - 2 ] -= p[ n ]; + } + p[ k - 2 ] -= silk_LSHIFT( p[ k ], 1 ); + } +} +/* Helper function for A2NLSF(..) */ +/* Polynomial evaluation */ +static OPUS_INLINE opus_int32 silk_A2NLSF_eval_poly( /* return the polynomial evaluation, in Q16 */ + opus_int32 *p, /* I Polynomial, Q16 */ + const opus_int32 x, /* I Evaluation point, Q12 */ + const opus_int dd /* I Order */ +) +{ + opus_int n; + opus_int32 x_Q16, y32; + + y32 = p[ dd ]; /* Q16 */ + x_Q16 = silk_LSHIFT( x, 4 ); + + if ( opus_likely( 8 == dd ) ) + { + y32 = silk_SMLAWW( p[ 7 ], y32, x_Q16 ); + y32 = silk_SMLAWW( p[ 6 ], y32, x_Q16 ); + y32 = silk_SMLAWW( p[ 5 ], y32, x_Q16 ); + y32 = silk_SMLAWW( p[ 4 ], y32, x_Q16 ); + y32 = silk_SMLAWW( p[ 3 ], y32, x_Q16 ); + y32 = silk_SMLAWW( p[ 2 ], y32, x_Q16 ); + y32 = silk_SMLAWW( p[ 1 ], y32, x_Q16 ); + y32 = silk_SMLAWW( p[ 0 ], y32, x_Q16 ); + } + else + { + for( n = dd - 1; n >= 0; n-- ) { + y32 = silk_SMLAWW( p[ n ], y32, x_Q16 ); /* Q16 */ + } + } + return y32; +} + +static OPUS_INLINE void silk_A2NLSF_init( + const opus_int32 *a_Q16, + opus_int32 *P, + opus_int32 *Q, + const opus_int dd +) +{ + opus_int k; + + /* Convert filter coefs to even and odd polynomials */ + P[dd] = silk_LSHIFT( 1, 16 ); + Q[dd] = silk_LSHIFT( 1, 16 ); + for( k = 0; k < dd; k++ ) { + P[ k ] = -a_Q16[ dd - k - 1 ] - a_Q16[ dd + k ]; /* Q16 */ + Q[ k ] = -a_Q16[ dd - k - 1 ] + a_Q16[ dd + k ]; /* Q16 */ + } + + /* Divide out zeros as we have that for even filter orders, */ + /* z = 1 is always a root in Q, and */ + /* z = -1 is always a root in P */ + for( k = dd; k > 0; k-- ) { + P[ k - 1 ] -= P[ k ]; + Q[ k - 1 ] += Q[ k ]; + } + + /* Transform polynomials from cos(n*f) to cos(f)^n */ + silk_A2NLSF_trans_poly( P, dd ); + silk_A2NLSF_trans_poly( Q, dd ); +} + +/* Compute Normalized Line Spectral Frequencies (NLSFs) from whitening filter coefficients */ +/* If not all roots are found, the a_Q16 coefficients are bandwidth expanded until convergence. */ +void silk_A2NLSF( + opus_int16 *NLSF, /* O Normalized Line Spectral Frequencies in Q15 (0..2^15-1) [d] */ + opus_int32 *a_Q16, /* I/O Monic whitening filter coefficients in Q16 [d] */ + const opus_int d /* I Filter order (must be even) */ +) +{ + opus_int i, k, m, dd, root_ix, ffrac; + opus_int32 xlo, xhi, xmid; + opus_int32 ylo, yhi, ymid, thr; + opus_int32 nom, den; + opus_int32 P[ SILK_MAX_ORDER_LPC / 2 + 1 ]; + opus_int32 Q[ SILK_MAX_ORDER_LPC / 2 + 1 ]; + opus_int32 *PQ[ 2 ]; + opus_int32 *p; + + /* Store pointers to array */ + PQ[ 0 ] = P; + PQ[ 1 ] = Q; + + dd = silk_RSHIFT( d, 1 ); + + silk_A2NLSF_init( a_Q16, P, Q, dd ); + + /* Find roots, alternating between P and Q */ + p = P; /* Pointer to polynomial */ + + xlo = silk_LSFCosTab_FIX_Q12[ 0 ]; /* Q12*/ + ylo = silk_A2NLSF_eval_poly( p, xlo, dd ); + + if( ylo < 0 ) { + /* Set the first NLSF to zero and move on to the next */ + NLSF[ 0 ] = 0; + p = Q; /* Pointer to polynomial */ + ylo = silk_A2NLSF_eval_poly( p, xlo, dd ); + root_ix = 1; /* Index of current root */ + } else { + root_ix = 0; /* Index of current root */ + } + k = 1; /* Loop counter */ + i = 0; /* Counter for bandwidth expansions applied */ + thr = 0; + while( 1 ) { + /* Evaluate polynomial */ + xhi = silk_LSFCosTab_FIX_Q12[ k ]; /* Q12 */ + yhi = silk_A2NLSF_eval_poly( p, xhi, dd ); + + /* Detect zero crossing */ + if( ( ylo <= 0 && yhi >= thr ) || ( ylo >= 0 && yhi <= -thr ) ) { + if( yhi == 0 ) { + /* If the root lies exactly at the end of the current */ + /* interval, look for the next root in the next interval */ + thr = 1; + } else { + thr = 0; + } + /* Binary division */ + ffrac = -256; + for( m = 0; m < BIN_DIV_STEPS_A2NLSF_FIX; m++ ) { + /* Evaluate polynomial */ + xmid = silk_RSHIFT_ROUND( xlo + xhi, 1 ); + ymid = silk_A2NLSF_eval_poly( p, xmid, dd ); + + /* Detect zero crossing */ + if( ( ylo <= 0 && ymid >= 0 ) || ( ylo >= 0 && ymid <= 0 ) ) { + /* Reduce frequency */ + xhi = xmid; + yhi = ymid; + } else { + /* Increase frequency */ + xlo = xmid; + ylo = ymid; + ffrac = silk_ADD_RSHIFT( ffrac, 128, m ); + } + } + + /* Interpolate */ + if( silk_abs( ylo ) < 65536 ) { + /* Avoid dividing by zero */ + den = ylo - yhi; + nom = silk_LSHIFT( ylo, 8 - BIN_DIV_STEPS_A2NLSF_FIX ) + silk_RSHIFT( den, 1 ); + if( den != 0 ) { + ffrac += silk_DIV32( nom, den ); + } + } else { + /* No risk of dividing by zero because abs(ylo - yhi) >= abs(ylo) >= 65536 */ + ffrac += silk_DIV32( ylo, silk_RSHIFT( ylo - yhi, 8 - BIN_DIV_STEPS_A2NLSF_FIX ) ); + } + NLSF[ root_ix ] = (opus_int16)silk_min_32( silk_LSHIFT( (opus_int32)k, 8 ) + ffrac, silk_int16_MAX ); + + silk_assert( NLSF[ root_ix ] >= 0 ); + + root_ix++; /* Next root */ + if( root_ix >= d ) { + /* Found all roots */ + break; + } + /* Alternate pointer to polynomial */ + p = PQ[ root_ix & 1 ]; + + /* Evaluate polynomial */ + xlo = silk_LSFCosTab_FIX_Q12[ k - 1 ]; /* Q12*/ + ylo = silk_LSHIFT( 1 - ( root_ix & 2 ), 12 ); + } else { + /* Increment loop counter */ + k++; + xlo = xhi; + ylo = yhi; + thr = 0; + + if( k > LSF_COS_TAB_SZ_FIX ) { + i++; + if( i > MAX_ITERATIONS_A2NLSF_FIX ) { + /* Set NLSFs to white spectrum and exit */ + NLSF[ 0 ] = (opus_int16)silk_DIV32_16( 1 << 15, d + 1 ); + for( k = 1; k < d; k++ ) { + NLSF[ k ] = (opus_int16)silk_ADD16( NLSF[ k-1 ], NLSF[ 0 ] ); + } + return; + } + + /* Error: Apply progressively more bandwidth expansion and run again */ + silk_bwexpander_32( a_Q16, d, 65536 - silk_LSHIFT( 1, i ) ); + + silk_A2NLSF_init( a_Q16, P, Q, dd ); + p = P; /* Pointer to polynomial */ + xlo = silk_LSFCosTab_FIX_Q12[ 0 ]; /* Q12*/ + ylo = silk_A2NLSF_eval_poly( p, xlo, dd ); + if( ylo < 0 ) { + /* Set the first NLSF to zero and move on to the next */ + NLSF[ 0 ] = 0; + p = Q; /* Pointer to polynomial */ + ylo = silk_A2NLSF_eval_poly( p, xlo, dd ); + root_ix = 1; /* Index of current root */ + } else { + root_ix = 0; /* Index of current root */ + } + k = 1; /* Reset loop counter */ + } + } + } +} diff --git a/components/opus/libopus/silk/API.h b/components/opus/libopus/silk/API.h new file mode 100644 index 0000000..4d90ff9 --- /dev/null +++ b/components/opus/libopus/silk/API.h @@ -0,0 +1,135 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifndef SILK_API_H +#define SILK_API_H + +#include "control.h" +#include "typedef.h" +#include "errors.h" +#include "entenc.h" +#include "entdec.h" + +#ifdef __cplusplus +extern "C" +{ +#endif + +#define SILK_MAX_FRAMES_PER_PACKET 3 + +/* Struct for TOC (Table of Contents) */ +typedef struct { + opus_int VADFlag; /* Voice activity for packet */ + opus_int VADFlags[ SILK_MAX_FRAMES_PER_PACKET ]; /* Voice activity for each frame in packet */ + opus_int inbandFECFlag; /* Flag indicating if packet contains in-band FEC */ +} silk_TOC_struct; + +/****************************************/ +/* Encoder functions */ +/****************************************/ + +/***********************************************/ +/* Get size in bytes of the Silk encoder state */ +/***********************************************/ +opus_int silk_Get_Encoder_Size( /* O Returns error code */ + opus_int *encSizeBytes /* O Number of bytes in SILK encoder state */ +); + +/*************************/ +/* Init or reset encoder */ +/*************************/ +opus_int silk_InitEncoder( /* O Returns error code */ + void *encState, /* I/O State */ + int arch, /* I Run-time architecture */ + silk_EncControlStruct *encStatus /* O Encoder Status */ +); + +/**************************/ +/* Encode frame with Silk */ +/**************************/ +/* Note: if prefillFlag is set, the input must contain 10 ms of audio, irrespective of what */ +/* encControl->payloadSize_ms is set to */ +opus_int silk_Encode( /* O Returns error code */ + void *encState, /* I/O State */ + silk_EncControlStruct *encControl, /* I Control status */ + const opus_int16 *samplesIn, /* I Speech sample input vector */ + opus_int nSamplesIn, /* I Number of samples in input vector */ + ec_enc *psRangeEnc, /* I/O Compressor data structure */ + opus_int32 *nBytesOut, /* I/O Number of bytes in payload (input: Max bytes) */ + const opus_int prefillFlag, /* I Flag to indicate prefilling buffers no coding */ + int activity /* I Decision of Opus voice activity detector */ +); + +/****************************************/ +/* Decoder functions */ +/****************************************/ + +/***********************************************/ +/* Get size in bytes of the Silk decoder state */ +/***********************************************/ +opus_int silk_Get_Decoder_Size( /* O Returns error code */ + opus_int *decSizeBytes /* O Number of bytes in SILK decoder state */ +); + +/*************************/ +/* Init or Reset decoder */ +/*************************/ +opus_int silk_InitDecoder( /* O Returns error code */ + void *decState /* I/O State */ +); + +/******************/ +/* Decode a frame */ +/******************/ +opus_int silk_Decode( /* O Returns error code */ + void* decState, /* I/O State */ + silk_DecControlStruct* decControl, /* I/O Control Structure */ + opus_int lostFlag, /* I 0: no loss, 1 loss, 2 decode fec */ + opus_int newPacketFlag, /* I Indicates first decoder call for this packet */ + ec_dec *psRangeDec, /* I/O Compressor data structure */ + opus_int16 *samplesOut, /* O Decoded output speech vector */ + opus_int32 *nSamplesOut, /* O Number of samples decoded */ + int arch /* I Run-time architecture */ +); + +#if 0 +/**************************************/ +/* Get table of contents for a packet */ +/**************************************/ +opus_int silk_get_TOC( + const opus_uint8 *payload, /* I Payload data */ + const opus_int nBytesIn, /* I Number of input bytes */ + const opus_int nFramesPerPayload, /* I Number of SILK frames per payload */ + silk_TOC_struct *Silk_TOC /* O Type of content */ +); +#endif + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/components/opus/libopus/silk/CNG.c b/components/opus/libopus/silk/CNG.c new file mode 100644 index 0000000..ef8e38d --- /dev/null +++ b/components/opus/libopus/silk/CNG.c @@ -0,0 +1,184 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main.h" +#include "stack_alloc.h" + +/* Generates excitation for CNG LPC synthesis */ +static OPUS_INLINE void silk_CNG_exc( + opus_int32 exc_Q14[], /* O CNG excitation signal Q10 */ + opus_int32 exc_buf_Q14[], /* I Random samples buffer Q10 */ + opus_int length, /* I Length */ + opus_int32 *rand_seed /* I/O Seed to random index generator */ +) +{ + opus_int32 seed; + opus_int i, idx, exc_mask; + + exc_mask = CNG_BUF_MASK_MAX; + while( exc_mask > length ) { + exc_mask = silk_RSHIFT( exc_mask, 1 ); + } + + seed = *rand_seed; + for( i = 0; i < length; i++ ) { + seed = silk_RAND( seed ); + idx = (opus_int)( silk_RSHIFT( seed, 24 ) & exc_mask ); + silk_assert( idx >= 0 ); + silk_assert( idx <= CNG_BUF_MASK_MAX ); + exc_Q14[ i ] = exc_buf_Q14[ idx ]; + } + *rand_seed = seed; +} + +void silk_CNG_Reset( + silk_decoder_state *psDec /* I/O Decoder state */ +) +{ + opus_int i, NLSF_step_Q15, NLSF_acc_Q15; + + NLSF_step_Q15 = silk_DIV32_16( silk_int16_MAX, psDec->LPC_order + 1 ); + NLSF_acc_Q15 = 0; + for( i = 0; i < psDec->LPC_order; i++ ) { + NLSF_acc_Q15 += NLSF_step_Q15; + psDec->sCNG.CNG_smth_NLSF_Q15[ i ] = NLSF_acc_Q15; + } + psDec->sCNG.CNG_smth_Gain_Q16 = 0; + psDec->sCNG.rand_seed = 3176576; +} + +/* Updates CNG estimate, and applies the CNG when packet was lost */ +void silk_CNG( + silk_decoder_state *psDec, /* I/O Decoder state */ + silk_decoder_control *psDecCtrl, /* I/O Decoder control */ + opus_int16 frame[], /* I/O Signal */ + opus_int length /* I Length of residual */ +) +{ + opus_int i, subfr; + opus_int32 LPC_pred_Q10, max_Gain_Q16, gain_Q16, gain_Q10; + opus_int16 A_Q12[ MAX_LPC_ORDER ]; + silk_CNG_struct *psCNG = &psDec->sCNG; + SAVE_STACK; + + if( psDec->fs_kHz != psCNG->fs_kHz ) { + /* Reset state */ + silk_CNG_Reset( psDec ); + + psCNG->fs_kHz = psDec->fs_kHz; + } + if( psDec->lossCnt == 0 && psDec->prevSignalType == TYPE_NO_VOICE_ACTIVITY ) { + /* Update CNG parameters */ + + /* Smoothing of LSF's */ + for( i = 0; i < psDec->LPC_order; i++ ) { + psCNG->CNG_smth_NLSF_Q15[ i ] += silk_SMULWB( (opus_int32)psDec->prevNLSF_Q15[ i ] - (opus_int32)psCNG->CNG_smth_NLSF_Q15[ i ], CNG_NLSF_SMTH_Q16 ); + } + /* Find the subframe with the highest gain */ + max_Gain_Q16 = 0; + subfr = 0; + for( i = 0; i < psDec->nb_subfr; i++ ) { + if( psDecCtrl->Gains_Q16[ i ] > max_Gain_Q16 ) { + max_Gain_Q16 = psDecCtrl->Gains_Q16[ i ]; + subfr = i; + } + } + /* Update CNG excitation buffer with excitation from this subframe */ + silk_memmove( &psCNG->CNG_exc_buf_Q14[ psDec->subfr_length ], psCNG->CNG_exc_buf_Q14, ( psDec->nb_subfr - 1 ) * psDec->subfr_length * sizeof( opus_int32 ) ); + silk_memcpy( psCNG->CNG_exc_buf_Q14, &psDec->exc_Q14[ subfr * psDec->subfr_length ], psDec->subfr_length * sizeof( opus_int32 ) ); + + /* Smooth gains */ + for( i = 0; i < psDec->nb_subfr; i++ ) { + psCNG->CNG_smth_Gain_Q16 += silk_SMULWB( psDecCtrl->Gains_Q16[ i ] - psCNG->CNG_smth_Gain_Q16, CNG_GAIN_SMTH_Q16 ); + } + } + + /* Add CNG when packet is lost or during DTX */ + if( psDec->lossCnt ) { + VARDECL( opus_int32, CNG_sig_Q14 ); + ALLOC( CNG_sig_Q14, length + MAX_LPC_ORDER, opus_int32 ); + + /* Generate CNG excitation */ + gain_Q16 = silk_SMULWW( psDec->sPLC.randScale_Q14, psDec->sPLC.prevGain_Q16[1] ); + if( gain_Q16 >= (1 << 21) || psCNG->CNG_smth_Gain_Q16 > (1 << 23) ) { + gain_Q16 = silk_SMULTT( gain_Q16, gain_Q16 ); + gain_Q16 = silk_SUB_LSHIFT32(silk_SMULTT( psCNG->CNG_smth_Gain_Q16, psCNG->CNG_smth_Gain_Q16 ), gain_Q16, 5 ); + gain_Q16 = silk_LSHIFT32( silk_SQRT_APPROX( gain_Q16 ), 16 ); + } else { + gain_Q16 = silk_SMULWW( gain_Q16, gain_Q16 ); + gain_Q16 = silk_SUB_LSHIFT32(silk_SMULWW( psCNG->CNG_smth_Gain_Q16, psCNG->CNG_smth_Gain_Q16 ), gain_Q16, 5 ); + gain_Q16 = silk_LSHIFT32( silk_SQRT_APPROX( gain_Q16 ), 8 ); + } + gain_Q10 = silk_RSHIFT( gain_Q16, 6 ); + + silk_CNG_exc( CNG_sig_Q14 + MAX_LPC_ORDER, psCNG->CNG_exc_buf_Q14, length, &psCNG->rand_seed ); + + /* Convert CNG NLSF to filter representation */ + silk_NLSF2A( A_Q12, psCNG->CNG_smth_NLSF_Q15, psDec->LPC_order, psDec->arch ); + + /* Generate CNG signal, by synthesis filtering */ + silk_memcpy( CNG_sig_Q14, psCNG->CNG_synth_state, MAX_LPC_ORDER * sizeof( opus_int32 ) ); + celt_assert( psDec->LPC_order == 10 || psDec->LPC_order == 16 ); + for( i = 0; i < length; i++ ) { + /* Avoids introducing a bias because silk_SMLAWB() always rounds to -inf */ + LPC_pred_Q10 = silk_RSHIFT( psDec->LPC_order, 1 ); + LPC_pred_Q10 = silk_SMLAWB( LPC_pred_Q10, CNG_sig_Q14[ MAX_LPC_ORDER + i - 1 ], A_Q12[ 0 ] ); + LPC_pred_Q10 = silk_SMLAWB( LPC_pred_Q10, CNG_sig_Q14[ MAX_LPC_ORDER + i - 2 ], A_Q12[ 1 ] ); + LPC_pred_Q10 = silk_SMLAWB( LPC_pred_Q10, CNG_sig_Q14[ MAX_LPC_ORDER + i - 3 ], A_Q12[ 2 ] ); + LPC_pred_Q10 = silk_SMLAWB( LPC_pred_Q10, CNG_sig_Q14[ MAX_LPC_ORDER + i - 4 ], A_Q12[ 3 ] ); + LPC_pred_Q10 = silk_SMLAWB( LPC_pred_Q10, CNG_sig_Q14[ MAX_LPC_ORDER + i - 5 ], A_Q12[ 4 ] ); + LPC_pred_Q10 = silk_SMLAWB( LPC_pred_Q10, CNG_sig_Q14[ MAX_LPC_ORDER + i - 6 ], A_Q12[ 5 ] ); + LPC_pred_Q10 = silk_SMLAWB( LPC_pred_Q10, CNG_sig_Q14[ MAX_LPC_ORDER + i - 7 ], A_Q12[ 6 ] ); + LPC_pred_Q10 = silk_SMLAWB( LPC_pred_Q10, CNG_sig_Q14[ MAX_LPC_ORDER + i - 8 ], A_Q12[ 7 ] ); + LPC_pred_Q10 = silk_SMLAWB( LPC_pred_Q10, CNG_sig_Q14[ MAX_LPC_ORDER + i - 9 ], A_Q12[ 8 ] ); + LPC_pred_Q10 = silk_SMLAWB( LPC_pred_Q10, CNG_sig_Q14[ MAX_LPC_ORDER + i - 10 ], A_Q12[ 9 ] ); + if( psDec->LPC_order == 16 ) { + LPC_pred_Q10 = silk_SMLAWB( LPC_pred_Q10, CNG_sig_Q14[ MAX_LPC_ORDER + i - 11 ], A_Q12[ 10 ] ); + LPC_pred_Q10 = silk_SMLAWB( LPC_pred_Q10, CNG_sig_Q14[ MAX_LPC_ORDER + i - 12 ], A_Q12[ 11 ] ); + LPC_pred_Q10 = silk_SMLAWB( LPC_pred_Q10, CNG_sig_Q14[ MAX_LPC_ORDER + i - 13 ], A_Q12[ 12 ] ); + LPC_pred_Q10 = silk_SMLAWB( LPC_pred_Q10, CNG_sig_Q14[ MAX_LPC_ORDER + i - 14 ], A_Q12[ 13 ] ); + LPC_pred_Q10 = silk_SMLAWB( LPC_pred_Q10, CNG_sig_Q14[ MAX_LPC_ORDER + i - 15 ], A_Q12[ 14 ] ); + LPC_pred_Q10 = silk_SMLAWB( LPC_pred_Q10, CNG_sig_Q14[ MAX_LPC_ORDER + i - 16 ], A_Q12[ 15 ] ); + } + + /* Update states */ + CNG_sig_Q14[ MAX_LPC_ORDER + i ] = silk_ADD_SAT32( CNG_sig_Q14[ MAX_LPC_ORDER + i ], silk_LSHIFT_SAT32( LPC_pred_Q10, 4 ) ); + + /* Scale with Gain and add to input signal */ + frame[ i ] = (opus_int16)silk_ADD_SAT16( frame[ i ], silk_SAT16( silk_RSHIFT_ROUND( silk_SMULWW( CNG_sig_Q14[ MAX_LPC_ORDER + i ], gain_Q10 ), 8 ) ) ); + + } + silk_memcpy( psCNG->CNG_synth_state, &CNG_sig_Q14[ length ], MAX_LPC_ORDER * sizeof( opus_int32 ) ); + } else { + silk_memset( psCNG->CNG_synth_state, 0, psDec->LPC_order * sizeof( opus_int32 ) ); + } + RESTORE_STACK; +} diff --git a/components/opus/libopus/silk/HP_variable_cutoff.c b/components/opus/libopus/silk/HP_variable_cutoff.c new file mode 100644 index 0000000..bbe10f0 --- /dev/null +++ b/components/opus/libopus/silk/HP_variable_cutoff.c @@ -0,0 +1,77 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif +#ifdef FIXED_POINT +#include "main_FIX.h" +#else +#include "main_FLP.h" +#endif +#include "tuning_parameters.h" + +/* High-pass filter with cutoff frequency adaptation based on pitch lag statistics */ +void silk_HP_variable_cutoff( + silk_encoder_state_Fxx state_Fxx[] /* I/O Encoder states */ +) +{ + opus_int quality_Q15; + opus_int32 pitch_freq_Hz_Q16, pitch_freq_log_Q7, delta_freq_Q7; + silk_encoder_state *psEncC1 = &state_Fxx[ 0 ].sCmn; + + /* Adaptive cutoff frequency: estimate low end of pitch frequency range */ + if( psEncC1->prevSignalType == TYPE_VOICED ) { + /* difference, in log domain */ + pitch_freq_Hz_Q16 = silk_DIV32_16( silk_LSHIFT( silk_MUL( psEncC1->fs_kHz, 1000 ), 16 ), psEncC1->prevLag ); + pitch_freq_log_Q7 = silk_lin2log( pitch_freq_Hz_Q16 ) - ( 16 << 7 ); + + /* adjustment based on quality */ + quality_Q15 = psEncC1->input_quality_bands_Q15[ 0 ]; + pitch_freq_log_Q7 = silk_SMLAWB( pitch_freq_log_Q7, silk_SMULWB( silk_LSHIFT( -quality_Q15, 2 ), quality_Q15 ), + pitch_freq_log_Q7 - ( silk_lin2log( SILK_FIX_CONST( VARIABLE_HP_MIN_CUTOFF_HZ, 16 ) ) - ( 16 << 7 ) ) ); + + /* delta_freq = pitch_freq_log - psEnc->variable_HP_smth1; */ + delta_freq_Q7 = pitch_freq_log_Q7 - silk_RSHIFT( psEncC1->variable_HP_smth1_Q15, 8 ); + if( delta_freq_Q7 < 0 ) { + /* less smoothing for decreasing pitch frequency, to track something close to the minimum */ + delta_freq_Q7 = silk_MUL( delta_freq_Q7, 3 ); + } + + /* limit delta, to reduce impact of outliers in pitch estimation */ + delta_freq_Q7 = silk_LIMIT_32( delta_freq_Q7, -SILK_FIX_CONST( VARIABLE_HP_MAX_DELTA_FREQ, 7 ), SILK_FIX_CONST( VARIABLE_HP_MAX_DELTA_FREQ, 7 ) ); + + /* update smoother */ + psEncC1->variable_HP_smth1_Q15 = silk_SMLAWB( psEncC1->variable_HP_smth1_Q15, + silk_SMULBB( psEncC1->speech_activity_Q8, delta_freq_Q7 ), SILK_FIX_CONST( VARIABLE_HP_SMTH_COEF1, 16 ) ); + + /* limit frequency range */ + psEncC1->variable_HP_smth1_Q15 = silk_LIMIT_32( psEncC1->variable_HP_smth1_Q15, + silk_LSHIFT( silk_lin2log( VARIABLE_HP_MIN_CUTOFF_HZ ), 8 ), + silk_LSHIFT( silk_lin2log( VARIABLE_HP_MAX_CUTOFF_HZ ), 8 ) ); + } +} diff --git a/components/opus/libopus/silk/Inlines.h b/components/opus/libopus/silk/Inlines.h new file mode 100644 index 0000000..ec986cd --- /dev/null +++ b/components/opus/libopus/silk/Inlines.h @@ -0,0 +1,188 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +/*! \file silk_Inlines.h + * \brief silk_Inlines.h defines OPUS_INLINE signal processing functions. + */ + +#ifndef SILK_FIX_INLINES_H +#define SILK_FIX_INLINES_H + +#ifdef __cplusplus +extern "C" +{ +#endif + +/* count leading zeros of opus_int64 */ +static OPUS_INLINE opus_int32 silk_CLZ64( opus_int64 in ) +{ + opus_int32 in_upper; + + in_upper = (opus_int32)silk_RSHIFT64(in, 32); + if (in_upper == 0) { + /* Search in the lower 32 bits */ + return 32 + silk_CLZ32( (opus_int32) in ); + } else { + /* Search in the upper 32 bits */ + return silk_CLZ32( in_upper ); + } +} + +/* get number of leading zeros and fractional part (the bits right after the leading one */ +static OPUS_INLINE void silk_CLZ_FRAC( + opus_int32 in, /* I input */ + opus_int32 *lz, /* O number of leading zeros */ + opus_int32 *frac_Q7 /* O the 7 bits right after the leading one */ +) +{ + opus_int32 lzeros = silk_CLZ32(in); + + * lz = lzeros; + * frac_Q7 = silk_ROR32(in, 24 - lzeros) & 0x7f; +} + +/* Approximation of square root */ +/* Accuracy: < +/- 10% for output values > 15 */ +/* < +/- 2.5% for output values > 120 */ +static OPUS_INLINE opus_int32 silk_SQRT_APPROX( opus_int32 x ) +{ + opus_int32 y, lz, frac_Q7; + + if( x <= 0 ) { + return 0; + } + + silk_CLZ_FRAC(x, &lz, &frac_Q7); + + if( lz & 1 ) { + y = 32768; + } else { + y = 46214; /* 46214 = sqrt(2) * 32768 */ + } + + /* get scaling right */ + y >>= silk_RSHIFT(lz, 1); + + /* increment using fractional part of input */ + y = silk_SMLAWB(y, y, silk_SMULBB(213, frac_Q7)); + + return y; +} + +/* Divide two int32 values and return result as int32 in a given Q-domain */ +static OPUS_INLINE opus_int32 silk_DIV32_varQ( /* O returns a good approximation of "(a32 << Qres) / b32" */ + const opus_int32 a32, /* I numerator (Q0) */ + const opus_int32 b32, /* I denominator (Q0) */ + const opus_int Qres /* I Q-domain of result (>= 0) */ +) +{ + opus_int a_headrm, b_headrm, lshift; + opus_int32 b32_inv, a32_nrm, b32_nrm, result; + + silk_assert( b32 != 0 ); + silk_assert( Qres >= 0 ); + + /* Compute number of bits head room and normalize inputs */ + a_headrm = silk_CLZ32( silk_abs(a32) ) - 1; + a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm */ + b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; + b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ + + /* Inverse of b32, with 14 bits of precision */ + b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ + + /* First approximation */ + result = silk_SMULWB(a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ + + /* Compute residual by subtracting product of denominator and first approximation */ + /* It's OK to overflow because the final value of a32_nrm should always be small */ + a32_nrm = silk_SUB32_ovflw(a32_nrm, silk_LSHIFT_ovflw( silk_SMMUL(b32_nrm, result), 3 )); /* Q: a_headrm */ + + /* Refinement */ + result = silk_SMLAWB(result, a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ + + /* Convert to Qres domain */ + lshift = 29 + a_headrm - b_headrm - Qres; + if( lshift < 0 ) { + return silk_LSHIFT_SAT32(result, -lshift); + } else { + if( lshift < 32){ + return silk_RSHIFT(result, lshift); + } else { + /* Avoid undefined result */ + return 0; + } + } +} + +/* Invert int32 value and return result as int32 in a given Q-domain */ +static OPUS_INLINE opus_int32 silk_INVERSE32_varQ( /* O returns a good approximation of "(1 << Qres) / b32" */ + const opus_int32 b32, /* I denominator (Q0) */ + const opus_int Qres /* I Q-domain of result (> 0) */ +) +{ + opus_int b_headrm, lshift; + opus_int32 b32_inv, b32_nrm, err_Q32, result; + + silk_assert( b32 != 0 ); + silk_assert( Qres > 0 ); + + /* Compute number of bits head room and normalize input */ + b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; + b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ + + /* Inverse of b32, with 14 bits of precision */ + b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ + + /* First approximation */ + result = silk_LSHIFT(b32_inv, 16); /* Q: 61 - b_headrm */ + + /* Compute residual by subtracting product of denominator and first approximation from one */ + err_Q32 = silk_LSHIFT( ((opus_int32)1<<29) - silk_SMULWB(b32_nrm, b32_inv), 3 ); /* Q32 */ + + /* Refinement */ + result = silk_SMLAWW(result, err_Q32, b32_inv); /* Q: 61 - b_headrm */ + + /* Convert to Qres domain */ + lshift = 61 - b_headrm - Qres; + if( lshift <= 0 ) { + return silk_LSHIFT_SAT32(result, -lshift); + } else { + if( lshift < 32){ + return silk_RSHIFT(result, lshift); + }else{ + /* Avoid undefined result */ + return 0; + } + } +} + +#ifdef __cplusplus +} +#endif + +#endif /* SILK_FIX_INLINES_H */ diff --git a/components/opus/libopus/silk/LPC_analysis_filter.c b/components/opus/libopus/silk/LPC_analysis_filter.c new file mode 100644 index 0000000..d34b5eb --- /dev/null +++ b/components/opus/libopus/silk/LPC_analysis_filter.c @@ -0,0 +1,111 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "SigProc_FIX.h" +#include "celt_lpc.h" + +/*******************************************/ +/* LPC analysis filter */ +/* NB! State is kept internally and the */ +/* filter always starts with zero state */ +/* first d output samples are set to zero */ +/*******************************************/ + +/* OPT: Using celt_fir() for this function should be faster, but it may cause + integer overflows in intermediate values (not final results), which the + current implementation silences by casting to unsigned. Enabling + this should be safe in pretty much all cases, even though it is not technically + C89-compliant. */ +#define USE_CELT_FIR 0 + +void silk_LPC_analysis_filter( + opus_int16 *out, /* O Output signal */ + const opus_int16 *in, /* I Input signal */ + const opus_int16 *B, /* I MA prediction coefficients, Q12 [order] */ + const opus_int32 len, /* I Signal length */ + const opus_int32 d, /* I Filter order */ + int arch /* I Run-time architecture */ +) +{ + opus_int j; +#if defined(FIXED_POINT) && USE_CELT_FIR + opus_int16 num[SILK_MAX_ORDER_LPC]; +#else + int ix; + opus_int32 out32_Q12, out32; + const opus_int16 *in_ptr; +#endif + + celt_assert( d >= 6 ); + celt_assert( (d & 1) == 0 ); + celt_assert( d <= len ); + +#if defined(FIXED_POINT) && USE_CELT_FIR + celt_assert( d <= SILK_MAX_ORDER_LPC ); + for ( j = 0; j < d; j++ ) { + num[ j ] = -B[ j ]; + } + celt_fir( in + d, num, out + d, len - d, d, arch ); + for ( j = 0; j < d; j++ ) { + out[ j ] = 0; + } +#else + (void)arch; + for( ix = d; ix < len; ix++ ) { + in_ptr = &in[ ix - 1 ]; + + out32_Q12 = silk_SMULBB( in_ptr[ 0 ], B[ 0 ] ); + /* Allowing wrap around so that two wraps can cancel each other. The rare + cases where the result wraps around can only be triggered by invalid streams*/ + out32_Q12 = silk_SMLABB_ovflw( out32_Q12, in_ptr[ -1 ], B[ 1 ] ); + out32_Q12 = silk_SMLABB_ovflw( out32_Q12, in_ptr[ -2 ], B[ 2 ] ); + out32_Q12 = silk_SMLABB_ovflw( out32_Q12, in_ptr[ -3 ], B[ 3 ] ); + out32_Q12 = silk_SMLABB_ovflw( out32_Q12, in_ptr[ -4 ], B[ 4 ] ); + out32_Q12 = silk_SMLABB_ovflw( out32_Q12, in_ptr[ -5 ], B[ 5 ] ); + for( j = 6; j < d; j += 2 ) { + out32_Q12 = silk_SMLABB_ovflw( out32_Q12, in_ptr[ -j ], B[ j ] ); + out32_Q12 = silk_SMLABB_ovflw( out32_Q12, in_ptr[ -j - 1 ], B[ j + 1 ] ); + } + + /* Subtract prediction */ + out32_Q12 = silk_SUB32_ovflw( silk_LSHIFT( (opus_int32)in_ptr[ 1 ], 12 ), out32_Q12 ); + + /* Scale to Q0 */ + out32 = silk_RSHIFT_ROUND( out32_Q12, 12 ); + + /* Saturate output */ + out[ ix ] = (opus_int16)silk_SAT16( out32 ); + } + + /* Set first d output samples to zero */ + silk_memset( out, 0, d * sizeof( opus_int16 ) ); +#endif +} diff --git a/components/opus/libopus/silk/LPC_fit.c b/components/opus/libopus/silk/LPC_fit.c new file mode 100644 index 0000000..cdea4f3 --- /dev/null +++ b/components/opus/libopus/silk/LPC_fit.c @@ -0,0 +1,81 @@ +/*********************************************************************** +Copyright (c) 2013, Koen Vos. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "SigProc_FIX.h" + +/* Convert int32 coefficients to int16 coefs and make sure there's no wrap-around */ +void silk_LPC_fit( + opus_int16 *a_QOUT, /* O Output signal */ + opus_int32 *a_QIN, /* I/O Input signal */ + const opus_int QOUT, /* I Input Q domain */ + const opus_int QIN, /* I Input Q domain */ + const opus_int d /* I Filter order */ +) +{ + opus_int i, k, idx = 0; + opus_int32 maxabs, absval, chirp_Q16; + + /* Limit the maximum absolute value of the prediction coefficients, so that they'll fit in int16 */ + for( i = 0; i < 10; i++ ) { + /* Find maximum absolute value and its index */ + maxabs = 0; + for( k = 0; k < d; k++ ) { + absval = silk_abs( a_QIN[k] ); + if( absval > maxabs ) { + maxabs = absval; + idx = k; + } + } + maxabs = silk_RSHIFT_ROUND( maxabs, QIN - QOUT ); + + if( maxabs > silk_int16_MAX ) { + /* Reduce magnitude of prediction coefficients */ + maxabs = silk_min( maxabs, 163838 ); /* ( silk_int32_MAX >> 14 ) + silk_int16_MAX = 163838 */ + chirp_Q16 = SILK_FIX_CONST( 0.999, 16 ) - silk_DIV32( silk_LSHIFT( maxabs - silk_int16_MAX, 14 ), + silk_RSHIFT32( silk_MUL( maxabs, idx + 1), 2 ) ); + silk_bwexpander_32( a_QIN, d, chirp_Q16 ); + } else { + break; + } + } + + if( i == 10 ) { + /* Reached the last iteration, clip the coefficients */ + for( k = 0; k < d; k++ ) { + a_QOUT[ k ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( a_QIN[ k ], QIN - QOUT ) ); + a_QIN[ k ] = silk_LSHIFT( (opus_int32)a_QOUT[ k ], QIN - QOUT ); + } + } else { + for( k = 0; k < d; k++ ) { + a_QOUT[ k ] = (opus_int16)silk_RSHIFT_ROUND( a_QIN[ k ], QIN - QOUT ); + } + } +} diff --git a/components/opus/libopus/silk/LPC_inv_pred_gain.c b/components/opus/libopus/silk/LPC_inv_pred_gain.c new file mode 100644 index 0000000..a3746a6 --- /dev/null +++ b/components/opus/libopus/silk/LPC_inv_pred_gain.c @@ -0,0 +1,141 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "SigProc_FIX.h" +#include "define.h" + +#define QA 24 +#define A_LIMIT SILK_FIX_CONST( 0.99975, QA ) + +#define MUL32_FRAC_Q(a32, b32, Q) ((opus_int32)(silk_RSHIFT_ROUND64(silk_SMULL(a32, b32), Q))) + +/* Compute inverse of LPC prediction gain, and */ +/* test if LPC coefficients are stable (all poles within unit circle) */ +static opus_int32 LPC_inverse_pred_gain_QA_c( /* O Returns inverse prediction gain in energy domain, Q30 */ + opus_int32 A_QA[ SILK_MAX_ORDER_LPC ], /* I Prediction coefficients */ + const opus_int order /* I Prediction order */ +) +{ + opus_int k, n, mult2Q; + opus_int32 invGain_Q30, rc_Q31, rc_mult1_Q30, rc_mult2, tmp1, tmp2; + + invGain_Q30 = SILK_FIX_CONST( 1, 30 ); + for( k = order - 1; k > 0; k-- ) { + /* Check for stability */ + if( ( A_QA[ k ] > A_LIMIT ) || ( A_QA[ k ] < -A_LIMIT ) ) { + return 0; + } + + /* Set RC equal to negated AR coef */ + rc_Q31 = -silk_LSHIFT( A_QA[ k ], 31 - QA ); + + /* rc_mult1_Q30 range: [ 1 : 2^30 ] */ + rc_mult1_Q30 = silk_SUB32( SILK_FIX_CONST( 1, 30 ), silk_SMMUL( rc_Q31, rc_Q31 ) ); + silk_assert( rc_mult1_Q30 > ( 1 << 15 ) ); /* reduce A_LIMIT if fails */ + silk_assert( rc_mult1_Q30 <= ( 1 << 30 ) ); + + /* Update inverse gain */ + /* invGain_Q30 range: [ 0 : 2^30 ] */ + invGain_Q30 = silk_LSHIFT( silk_SMMUL( invGain_Q30, rc_mult1_Q30 ), 2 ); + silk_assert( invGain_Q30 >= 0 ); + silk_assert( invGain_Q30 <= ( 1 << 30 ) ); + if( invGain_Q30 < SILK_FIX_CONST( 1.0f / MAX_PREDICTION_POWER_GAIN, 30 ) ) { + return 0; + } + + /* rc_mult2 range: [ 2^30 : silk_int32_MAX ] */ + mult2Q = 32 - silk_CLZ32( silk_abs( rc_mult1_Q30 ) ); + rc_mult2 = silk_INVERSE32_varQ( rc_mult1_Q30, mult2Q + 30 ); + + /* Update AR coefficient */ + for( n = 0; n < (k + 1) >> 1; n++ ) { + opus_int64 tmp64; + tmp1 = A_QA[ n ]; + tmp2 = A_QA[ k - n - 1 ]; + tmp64 = silk_RSHIFT_ROUND64( silk_SMULL( silk_SUB_SAT32(tmp1, + MUL32_FRAC_Q( tmp2, rc_Q31, 31 ) ), rc_mult2 ), mult2Q); + if( tmp64 > silk_int32_MAX || tmp64 < silk_int32_MIN ) { + return 0; + } + A_QA[ n ] = ( opus_int32 )tmp64; + tmp64 = silk_RSHIFT_ROUND64( silk_SMULL( silk_SUB_SAT32(tmp2, + MUL32_FRAC_Q( tmp1, rc_Q31, 31 ) ), rc_mult2), mult2Q); + if( tmp64 > silk_int32_MAX || tmp64 < silk_int32_MIN ) { + return 0; + } + A_QA[ k - n - 1 ] = ( opus_int32 )tmp64; + } + } + + /* Check for stability */ + if( ( A_QA[ k ] > A_LIMIT ) || ( A_QA[ k ] < -A_LIMIT ) ) { + return 0; + } + + /* Set RC equal to negated AR coef */ + rc_Q31 = -silk_LSHIFT( A_QA[ 0 ], 31 - QA ); + + /* Range: [ 1 : 2^30 ] */ + rc_mult1_Q30 = silk_SUB32( SILK_FIX_CONST( 1, 30 ), silk_SMMUL( rc_Q31, rc_Q31 ) ); + + /* Update inverse gain */ + /* Range: [ 0 : 2^30 ] */ + invGain_Q30 = silk_LSHIFT( silk_SMMUL( invGain_Q30, rc_mult1_Q30 ), 2 ); + silk_assert( invGain_Q30 >= 0 ); + silk_assert( invGain_Q30 <= ( 1 << 30 ) ); + if( invGain_Q30 < SILK_FIX_CONST( 1.0f / MAX_PREDICTION_POWER_GAIN, 30 ) ) { + return 0; + } + + return invGain_Q30; +} + +/* For input in Q12 domain */ +opus_int32 silk_LPC_inverse_pred_gain_c( /* O Returns inverse prediction gain in energy domain, Q30 */ + const opus_int16 *A_Q12, /* I Prediction coefficients, Q12 [order] */ + const opus_int order /* I Prediction order */ +) +{ + opus_int k; + opus_int32 Atmp_QA[ SILK_MAX_ORDER_LPC ]; + opus_int32 DC_resp = 0; + + /* Increase Q domain of the AR coefficients */ + for( k = 0; k < order; k++ ) { + DC_resp += (opus_int32)A_Q12[ k ]; + Atmp_QA[ k ] = silk_LSHIFT32( (opus_int32)A_Q12[ k ], QA - 12 ); + } + /* If the DC is unstable, we don't even need to do the full calculations */ + if( DC_resp >= 4096 ) { + return 0; + } + return LPC_inverse_pred_gain_QA_c( Atmp_QA, order ); +} diff --git a/components/opus/libopus/silk/LP_variable_cutoff.c b/components/opus/libopus/silk/LP_variable_cutoff.c new file mode 100644 index 0000000..79112ad --- /dev/null +++ b/components/opus/libopus/silk/LP_variable_cutoff.c @@ -0,0 +1,135 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +/* + Elliptic/Cauer filters designed with 0.1 dB passband ripple, + 80 dB minimum stopband attenuation, and + [0.95 : 0.15 : 0.35] normalized cut off frequencies. +*/ + +#include "main.h" + +/* Helper function, interpolates the filter taps */ +static OPUS_INLINE void silk_LP_interpolate_filter_taps( + opus_int32 B_Q28[ TRANSITION_NB ], + opus_int32 A_Q28[ TRANSITION_NA ], + const opus_int ind, + const opus_int32 fac_Q16 +) +{ + opus_int nb, na; + + if( ind < TRANSITION_INT_NUM - 1 ) { + if( fac_Q16 > 0 ) { + if( fac_Q16 < 32768 ) { /* fac_Q16 is in range of a 16-bit int */ + /* Piece-wise linear interpolation of B and A */ + for( nb = 0; nb < TRANSITION_NB; nb++ ) { + B_Q28[ nb ] = silk_SMLAWB( + silk_Transition_LP_B_Q28[ ind ][ nb ], + silk_Transition_LP_B_Q28[ ind + 1 ][ nb ] - + silk_Transition_LP_B_Q28[ ind ][ nb ], + fac_Q16 ); + } + for( na = 0; na < TRANSITION_NA; na++ ) { + A_Q28[ na ] = silk_SMLAWB( + silk_Transition_LP_A_Q28[ ind ][ na ], + silk_Transition_LP_A_Q28[ ind + 1 ][ na ] - + silk_Transition_LP_A_Q28[ ind ][ na ], + fac_Q16 ); + } + } else { /* ( fac_Q16 - ( 1 << 16 ) ) is in range of a 16-bit int */ + silk_assert( fac_Q16 - ( 1 << 16 ) == silk_SAT16( fac_Q16 - ( 1 << 16 ) ) ); + /* Piece-wise linear interpolation of B and A */ + for( nb = 0; nb < TRANSITION_NB; nb++ ) { + B_Q28[ nb ] = silk_SMLAWB( + silk_Transition_LP_B_Q28[ ind + 1 ][ nb ], + silk_Transition_LP_B_Q28[ ind + 1 ][ nb ] - + silk_Transition_LP_B_Q28[ ind ][ nb ], + fac_Q16 - ( (opus_int32)1 << 16 ) ); + } + for( na = 0; na < TRANSITION_NA; na++ ) { + A_Q28[ na ] = silk_SMLAWB( + silk_Transition_LP_A_Q28[ ind + 1 ][ na ], + silk_Transition_LP_A_Q28[ ind + 1 ][ na ] - + silk_Transition_LP_A_Q28[ ind ][ na ], + fac_Q16 - ( (opus_int32)1 << 16 ) ); + } + } + } else { + silk_memcpy( B_Q28, silk_Transition_LP_B_Q28[ ind ], TRANSITION_NB * sizeof( opus_int32 ) ); + silk_memcpy( A_Q28, silk_Transition_LP_A_Q28[ ind ], TRANSITION_NA * sizeof( opus_int32 ) ); + } + } else { + silk_memcpy( B_Q28, silk_Transition_LP_B_Q28[ TRANSITION_INT_NUM - 1 ], TRANSITION_NB * sizeof( opus_int32 ) ); + silk_memcpy( A_Q28, silk_Transition_LP_A_Q28[ TRANSITION_INT_NUM - 1 ], TRANSITION_NA * sizeof( opus_int32 ) ); + } +} + +/* Low-pass filter with variable cutoff frequency based on */ +/* piece-wise linear interpolation between elliptic filters */ +/* Start by setting psEncC->mode <> 0; */ +/* Deactivate by setting psEncC->mode = 0; */ +void silk_LP_variable_cutoff( + silk_LP_state *psLP, /* I/O LP filter state */ + opus_int16 *frame, /* I/O Low-pass filtered output signal */ + const opus_int frame_length /* I Frame length */ +) +{ + opus_int32 B_Q28[ TRANSITION_NB ], A_Q28[ TRANSITION_NA ], fac_Q16 = 0; + opus_int ind = 0; + + silk_assert( psLP->transition_frame_no >= 0 && psLP->transition_frame_no <= TRANSITION_FRAMES ); + + /* Run filter if needed */ + if( psLP->mode != 0 ) { + /* Calculate index and interpolation factor for interpolation */ +#if( TRANSITION_INT_STEPS == 64 ) + fac_Q16 = silk_LSHIFT( TRANSITION_FRAMES - psLP->transition_frame_no, 16 - 6 ); +#else + fac_Q16 = silk_DIV32_16( silk_LSHIFT( TRANSITION_FRAMES - psLP->transition_frame_no, 16 ), TRANSITION_FRAMES ); +#endif + ind = silk_RSHIFT( fac_Q16, 16 ); + fac_Q16 -= silk_LSHIFT( ind, 16 ); + + silk_assert( ind >= 0 ); + silk_assert( ind < TRANSITION_INT_NUM ); + + /* Interpolate filter coefficients */ + silk_LP_interpolate_filter_taps( B_Q28, A_Q28, ind, fac_Q16 ); + + /* Update transition frame number for next frame */ + psLP->transition_frame_no = silk_LIMIT( psLP->transition_frame_no + psLP->mode, 0, TRANSITION_FRAMES ); + + /* ARMA low-pass filtering */ + silk_assert( TRANSITION_NB == 3 && TRANSITION_NA == 2 ); + silk_biquad_alt_stride1( frame, B_Q28, A_Q28, psLP->In_LP_State, frame, frame_length); + } +} diff --git a/components/opus/libopus/silk/MacroCount.h b/components/opus/libopus/silk/MacroCount.h new file mode 100644 index 0000000..78100ff --- /dev/null +++ b/components/opus/libopus/silk/MacroCount.h @@ -0,0 +1,710 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifndef SIGPROCFIX_API_MACROCOUNT_H +#define SIGPROCFIX_API_MACROCOUNT_H +#include + +#ifdef silk_MACRO_COUNT +#define varDefine opus_int64 ops_count = 0; + +extern opus_int64 ops_count; + +static OPUS_INLINE opus_int64 silk_SaveCount(){ + return(ops_count); +} + +static OPUS_INLINE opus_int64 silk_SaveResetCount(){ + opus_int64 ret; + + ret = ops_count; + ops_count = 0; + return(ret); +} + +static OPUS_INLINE silk_PrintCount(){ + printf("ops_count = %d \n ", (opus_int32)ops_count); +} + +#undef silk_MUL +static OPUS_INLINE opus_int32 silk_MUL(opus_int32 a32, opus_int32 b32){ + opus_int32 ret; + ops_count += 4; + ret = a32 * b32; + return ret; +} + +#undef silk_MUL_uint +static OPUS_INLINE opus_uint32 silk_MUL_uint(opus_uint32 a32, opus_uint32 b32){ + opus_uint32 ret; + ops_count += 4; + ret = a32 * b32; + return ret; +} +#undef silk_MLA +static OPUS_INLINE opus_int32 silk_MLA(opus_int32 a32, opus_int32 b32, opus_int32 c32){ + opus_int32 ret; + ops_count += 4; + ret = a32 + b32 * c32; + return ret; +} + +#undef silk_MLA_uint +static OPUS_INLINE opus_int32 silk_MLA_uint(opus_uint32 a32, opus_uint32 b32, opus_uint32 c32){ + opus_uint32 ret; + ops_count += 4; + ret = a32 + b32 * c32; + return ret; +} + +#undef silk_SMULWB +static OPUS_INLINE opus_int32 silk_SMULWB(opus_int32 a32, opus_int32 b32){ + opus_int32 ret; + ops_count += 5; + ret = (a32 >> 16) * (opus_int32)((opus_int16)b32) + (((a32 & 0x0000FFFF) * (opus_int32)((opus_int16)b32)) >> 16); + return ret; +} +#undef silk_SMLAWB +static OPUS_INLINE opus_int32 silk_SMLAWB(opus_int32 a32, opus_int32 b32, opus_int32 c32){ + opus_int32 ret; + ops_count += 5; + ret = ((a32) + ((((b32) >> 16) * (opus_int32)((opus_int16)(c32))) + ((((b32) & 0x0000FFFF) * (opus_int32)((opus_int16)(c32))) >> 16))); + return ret; +} + +#undef silk_SMULWT +static OPUS_INLINE opus_int32 silk_SMULWT(opus_int32 a32, opus_int32 b32){ + opus_int32 ret; + ops_count += 4; + ret = (a32 >> 16) * (b32 >> 16) + (((a32 & 0x0000FFFF) * (b32 >> 16)) >> 16); + return ret; +} +#undef silk_SMLAWT +static OPUS_INLINE opus_int32 silk_SMLAWT(opus_int32 a32, opus_int32 b32, opus_int32 c32){ + opus_int32 ret; + ops_count += 4; + ret = a32 + ((b32 >> 16) * (c32 >> 16)) + (((b32 & 0x0000FFFF) * ((c32 >> 16)) >> 16)); + return ret; +} + +#undef silk_SMULBB +static OPUS_INLINE opus_int32 silk_SMULBB(opus_int32 a32, opus_int32 b32){ + opus_int32 ret; + ops_count += 1; + ret = (opus_int32)((opus_int16)a32) * (opus_int32)((opus_int16)b32); + return ret; +} +#undef silk_SMLABB +static OPUS_INLINE opus_int32 silk_SMLABB(opus_int32 a32, opus_int32 b32, opus_int32 c32){ + opus_int32 ret; + ops_count += 1; + ret = a32 + (opus_int32)((opus_int16)b32) * (opus_int32)((opus_int16)c32); + return ret; +} + +#undef silk_SMULBT +static OPUS_INLINE opus_int32 silk_SMULBT(opus_int32 a32, opus_int32 b32 ){ + opus_int32 ret; + ops_count += 4; + ret = ((opus_int32)((opus_int16)a32)) * (b32 >> 16); + return ret; +} + +#undef silk_SMLABT +static OPUS_INLINE opus_int32 silk_SMLABT(opus_int32 a32, opus_int32 b32, opus_int32 c32){ + opus_int32 ret; + ops_count += 1; + ret = a32 + ((opus_int32)((opus_int16)b32)) * (c32 >> 16); + return ret; +} + +#undef silk_SMULTT +static OPUS_INLINE opus_int32 silk_SMULTT(opus_int32 a32, opus_int32 b32){ + opus_int32 ret; + ops_count += 1; + ret = (a32 >> 16) * (b32 >> 16); + return ret; +} + +#undef silk_SMLATT +static OPUS_INLINE opus_int32 silk_SMLATT(opus_int32 a32, opus_int32 b32, opus_int32 c32){ + opus_int32 ret; + ops_count += 1; + ret = a32 + (b32 >> 16) * (c32 >> 16); + return ret; +} + + +/* multiply-accumulate macros that allow overflow in the addition (ie, no asserts in debug mode)*/ +#undef silk_MLA_ovflw +#define silk_MLA_ovflw silk_MLA + +#undef silk_SMLABB_ovflw +#define silk_SMLABB_ovflw silk_SMLABB + +#undef silk_SMLABT_ovflw +#define silk_SMLABT_ovflw silk_SMLABT + +#undef silk_SMLATT_ovflw +#define silk_SMLATT_ovflw silk_SMLATT + +#undef silk_SMLAWB_ovflw +#define silk_SMLAWB_ovflw silk_SMLAWB + +#undef silk_SMLAWT_ovflw +#define silk_SMLAWT_ovflw silk_SMLAWT + +#undef silk_SMULL +static OPUS_INLINE opus_int64 silk_SMULL(opus_int32 a32, opus_int32 b32){ + opus_int64 ret; + ops_count += 8; + ret = ((opus_int64)(a32) * /*(opus_int64)*/(b32)); + return ret; +} + +#undef silk_SMLAL +static OPUS_INLINE opus_int64 silk_SMLAL(opus_int64 a64, opus_int32 b32, opus_int32 c32){ + opus_int64 ret; + ops_count += 8; + ret = a64 + ((opus_int64)(b32) * /*(opus_int64)*/(c32)); + return ret; +} +#undef silk_SMLALBB +static OPUS_INLINE opus_int64 silk_SMLALBB(opus_int64 a64, opus_int16 b16, opus_int16 c16){ + opus_int64 ret; + ops_count += 4; + ret = a64 + ((opus_int64)(b16) * /*(opus_int64)*/(c16)); + return ret; +} + +#undef SigProcFIX_CLZ16 +static OPUS_INLINE opus_int32 SigProcFIX_CLZ16(opus_int16 in16) +{ + opus_int32 out32 = 0; + ops_count += 10; + if( in16 == 0 ) { + return 16; + } + /* test nibbles */ + if( in16 & 0xFF00 ) { + if( in16 & 0xF000 ) { + in16 >>= 12; + } else { + out32 += 4; + in16 >>= 8; + } + } else { + if( in16 & 0xFFF0 ) { + out32 += 8; + in16 >>= 4; + } else { + out32 += 12; + } + } + /* test bits and return */ + if( in16 & 0xC ) { + if( in16 & 0x8 ) + return out32 + 0; + else + return out32 + 1; + } else { + if( in16 & 0xE ) + return out32 + 2; + else + return out32 + 3; + } +} + +#undef SigProcFIX_CLZ32 +static OPUS_INLINE opus_int32 SigProcFIX_CLZ32(opus_int32 in32) +{ + /* test highest 16 bits and convert to opus_int16 */ + ops_count += 2; + if( in32 & 0xFFFF0000 ) { + return SigProcFIX_CLZ16((opus_int16)(in32 >> 16)); + } else { + return SigProcFIX_CLZ16((opus_int16)in32) + 16; + } +} + +#undef silk_DIV32 +static OPUS_INLINE opus_int32 silk_DIV32(opus_int32 a32, opus_int32 b32){ + ops_count += 64; + return a32 / b32; +} + +#undef silk_DIV32_16 +static OPUS_INLINE opus_int32 silk_DIV32_16(opus_int32 a32, opus_int32 b32){ + ops_count += 32; + return a32 / b32; +} + +#undef silk_SAT8 +static OPUS_INLINE opus_int8 silk_SAT8(opus_int64 a){ + opus_int8 tmp; + ops_count += 1; + tmp = (opus_int8)((a) > silk_int8_MAX ? silk_int8_MAX : \ + ((a) < silk_int8_MIN ? silk_int8_MIN : (a))); + return(tmp); +} + +#undef silk_SAT16 +static OPUS_INLINE opus_int16 silk_SAT16(opus_int64 a){ + opus_int16 tmp; + ops_count += 1; + tmp = (opus_int16)((a) > silk_int16_MAX ? silk_int16_MAX : \ + ((a) < silk_int16_MIN ? silk_int16_MIN : (a))); + return(tmp); +} +#undef silk_SAT32 +static OPUS_INLINE opus_int32 silk_SAT32(opus_int64 a){ + opus_int32 tmp; + ops_count += 1; + tmp = (opus_int32)((a) > silk_int32_MAX ? silk_int32_MAX : \ + ((a) < silk_int32_MIN ? silk_int32_MIN : (a))); + return(tmp); +} +#undef silk_POS_SAT32 +static OPUS_INLINE opus_int32 silk_POS_SAT32(opus_int64 a){ + opus_int32 tmp; + ops_count += 1; + tmp = (opus_int32)((a) > silk_int32_MAX ? silk_int32_MAX : (a)); + return(tmp); +} + +#undef silk_ADD_POS_SAT8 +static OPUS_INLINE opus_int8 silk_ADD_POS_SAT8(opus_int64 a, opus_int64 b){ + opus_int8 tmp; + ops_count += 1; + tmp = (opus_int8)((((a)+(b)) & 0x80) ? silk_int8_MAX : ((a)+(b))); + return(tmp); +} +#undef silk_ADD_POS_SAT16 +static OPUS_INLINE opus_int16 silk_ADD_POS_SAT16(opus_int64 a, opus_int64 b){ + opus_int16 tmp; + ops_count += 1; + tmp = (opus_int16)((((a)+(b)) & 0x8000) ? silk_int16_MAX : ((a)+(b))); + return(tmp); +} + +#undef silk_ADD_POS_SAT32 +static OPUS_INLINE opus_int32 silk_ADD_POS_SAT32(opus_int64 a, opus_int64 b){ + opus_int32 tmp; + ops_count += 1; + tmp = (opus_int32)((((a)+(b)) & 0x80000000) ? silk_int32_MAX : ((a)+(b))); + return(tmp); +} + +#undef silk_LSHIFT8 +static OPUS_INLINE opus_int8 silk_LSHIFT8(opus_int8 a, opus_int32 shift){ + opus_int8 ret; + ops_count += 1; + ret = a << shift; + return ret; +} +#undef silk_LSHIFT16 +static OPUS_INLINE opus_int16 silk_LSHIFT16(opus_int16 a, opus_int32 shift){ + opus_int16 ret; + ops_count += 1; + ret = a << shift; + return ret; +} +#undef silk_LSHIFT32 +static OPUS_INLINE opus_int32 silk_LSHIFT32(opus_int32 a, opus_int32 shift){ + opus_int32 ret; + ops_count += 1; + ret = a << shift; + return ret; +} +#undef silk_LSHIFT64 +static OPUS_INLINE opus_int64 silk_LSHIFT64(opus_int64 a, opus_int shift){ + ops_count += 1; + return a << shift; +} + +#undef silk_LSHIFT_ovflw +static OPUS_INLINE opus_int32 silk_LSHIFT_ovflw(opus_int32 a, opus_int32 shift){ + ops_count += 1; + return a << shift; +} + +#undef silk_LSHIFT_uint +static OPUS_INLINE opus_uint32 silk_LSHIFT_uint(opus_uint32 a, opus_int32 shift){ + opus_uint32 ret; + ops_count += 1; + ret = a << shift; + return ret; +} + +#undef silk_RSHIFT8 +static OPUS_INLINE opus_int8 silk_RSHIFT8(opus_int8 a, opus_int32 shift){ + ops_count += 1; + return a >> shift; +} +#undef silk_RSHIFT16 +static OPUS_INLINE opus_int16 silk_RSHIFT16(opus_int16 a, opus_int32 shift){ + ops_count += 1; + return a >> shift; +} +#undef silk_RSHIFT32 +static OPUS_INLINE opus_int32 silk_RSHIFT32(opus_int32 a, opus_int32 shift){ + ops_count += 1; + return a >> shift; +} +#undef silk_RSHIFT64 +static OPUS_INLINE opus_int64 silk_RSHIFT64(opus_int64 a, opus_int64 shift){ + ops_count += 1; + return a >> shift; +} + +#undef silk_RSHIFT_uint +static OPUS_INLINE opus_uint32 silk_RSHIFT_uint(opus_uint32 a, opus_int32 shift){ + ops_count += 1; + return a >> shift; +} + +#undef silk_ADD_LSHIFT +static OPUS_INLINE opus_int32 silk_ADD_LSHIFT(opus_int32 a, opus_int32 b, opus_int32 shift){ + opus_int32 ret; + ops_count += 1; + ret = a + (b << shift); + return ret; /* shift >= 0*/ +} +#undef silk_ADD_LSHIFT32 +static OPUS_INLINE opus_int32 silk_ADD_LSHIFT32(opus_int32 a, opus_int32 b, opus_int32 shift){ + opus_int32 ret; + ops_count += 1; + ret = a + (b << shift); + return ret; /* shift >= 0*/ +} +#undef silk_ADD_LSHIFT_uint +static OPUS_INLINE opus_uint32 silk_ADD_LSHIFT_uint(opus_uint32 a, opus_uint32 b, opus_int32 shift){ + opus_uint32 ret; + ops_count += 1; + ret = a + (b << shift); + return ret; /* shift >= 0*/ +} +#undef silk_ADD_RSHIFT +static OPUS_INLINE opus_int32 silk_ADD_RSHIFT(opus_int32 a, opus_int32 b, opus_int32 shift){ + opus_int32 ret; + ops_count += 1; + ret = a + (b >> shift); + return ret; /* shift > 0*/ +} +#undef silk_ADD_RSHIFT32 +static OPUS_INLINE opus_int32 silk_ADD_RSHIFT32(opus_int32 a, opus_int32 b, opus_int32 shift){ + opus_int32 ret; + ops_count += 1; + ret = a + (b >> shift); + return ret; /* shift > 0*/ +} +#undef silk_ADD_RSHIFT_uint +static OPUS_INLINE opus_uint32 silk_ADD_RSHIFT_uint(opus_uint32 a, opus_uint32 b, opus_int32 shift){ + opus_uint32 ret; + ops_count += 1; + ret = a + (b >> shift); + return ret; /* shift > 0*/ +} +#undef silk_SUB_LSHIFT32 +static OPUS_INLINE opus_int32 silk_SUB_LSHIFT32(opus_int32 a, opus_int32 b, opus_int32 shift){ + opus_int32 ret; + ops_count += 1; + ret = a - (b << shift); + return ret; /* shift >= 0*/ +} +#undef silk_SUB_RSHIFT32 +static OPUS_INLINE opus_int32 silk_SUB_RSHIFT32(opus_int32 a, opus_int32 b, opus_int32 shift){ + opus_int32 ret; + ops_count += 1; + ret = a - (b >> shift); + return ret; /* shift > 0*/ +} + +#undef silk_RSHIFT_ROUND +static OPUS_INLINE opus_int32 silk_RSHIFT_ROUND(opus_int32 a, opus_int32 shift){ + opus_int32 ret; + ops_count += 3; + ret = shift == 1 ? (a >> 1) + (a & 1) : ((a >> (shift - 1)) + 1) >> 1; + return ret; +} + +#undef silk_RSHIFT_ROUND64 +static OPUS_INLINE opus_int64 silk_RSHIFT_ROUND64(opus_int64 a, opus_int32 shift){ + opus_int64 ret; + ops_count += 6; + ret = shift == 1 ? (a >> 1) + (a & 1) : ((a >> (shift - 1)) + 1) >> 1; + return ret; +} + +#undef silk_abs_int64 +static OPUS_INLINE opus_int64 silk_abs_int64(opus_int64 a){ + ops_count += 1; + return (((a) > 0) ? (a) : -(a)); /* Be careful, silk_abs returns wrong when input equals to silk_intXX_MIN*/ +} + +#undef silk_abs_int32 +static OPUS_INLINE opus_int32 silk_abs_int32(opus_int32 a){ + ops_count += 1; + return silk_abs(a); +} + + +#undef silk_min +static silk_min(a, b){ + ops_count += 1; + return (((a) < (b)) ? (a) : (b)); +} +#undef silk_max +static silk_max(a, b){ + ops_count += 1; + return (((a) > (b)) ? (a) : (b)); +} +#undef silk_sign +static silk_sign(a){ + ops_count += 1; + return ((a) > 0 ? 1 : ( (a) < 0 ? -1 : 0 )); +} + +#undef silk_ADD16 +static OPUS_INLINE opus_int16 silk_ADD16(opus_int16 a, opus_int16 b){ + opus_int16 ret; + ops_count += 1; + ret = a + b; + return ret; +} + +#undef silk_ADD32 +static OPUS_INLINE opus_int32 silk_ADD32(opus_int32 a, opus_int32 b){ + opus_int32 ret; + ops_count += 1; + ret = a + b; + return ret; +} + +#undef silk_ADD64 +static OPUS_INLINE opus_int64 silk_ADD64(opus_int64 a, opus_int64 b){ + opus_int64 ret; + ops_count += 2; + ret = a + b; + return ret; +} + +#undef silk_SUB16 +static OPUS_INLINE opus_int16 silk_SUB16(opus_int16 a, opus_int16 b){ + opus_int16 ret; + ops_count += 1; + ret = a - b; + return ret; +} + +#undef silk_SUB32 +static OPUS_INLINE opus_int32 silk_SUB32(opus_int32 a, opus_int32 b){ + opus_int32 ret; + ops_count += 1; + ret = a - b; + return ret; +} + +#undef silk_SUB64 +static OPUS_INLINE opus_int64 silk_SUB64(opus_int64 a, opus_int64 b){ + opus_int64 ret; + ops_count += 2; + ret = a - b; + return ret; +} + +#undef silk_ADD_SAT16 +static OPUS_INLINE opus_int16 silk_ADD_SAT16( opus_int16 a16, opus_int16 b16 ) { + opus_int16 res; + /* Nb will be counted in AKP_add32 and silk_SAT16*/ + res = (opus_int16)silk_SAT16( silk_ADD32( (opus_int32)(a16), (b16) ) ); + return res; +} + +#undef silk_ADD_SAT32 +static OPUS_INLINE opus_int32 silk_ADD_SAT32(opus_int32 a32, opus_int32 b32){ + opus_int32 res; + ops_count += 1; + res = ((((a32) + (b32)) & 0x80000000) == 0 ? \ + ((((a32) & (b32)) & 0x80000000) != 0 ? silk_int32_MIN : (a32)+(b32)) : \ + ((((a32) | (b32)) & 0x80000000) == 0 ? silk_int32_MAX : (a32)+(b32)) ); + return res; +} + +#undef silk_ADD_SAT64 +static OPUS_INLINE opus_int64 silk_ADD_SAT64( opus_int64 a64, opus_int64 b64 ) { + opus_int64 res; + ops_count += 1; + res = ((((a64) + (b64)) & 0x8000000000000000LL) == 0 ? \ + ((((a64) & (b64)) & 0x8000000000000000LL) != 0 ? silk_int64_MIN : (a64)+(b64)) : \ + ((((a64) | (b64)) & 0x8000000000000000LL) == 0 ? silk_int64_MAX : (a64)+(b64)) ); + return res; +} + +#undef silk_SUB_SAT16 +static OPUS_INLINE opus_int16 silk_SUB_SAT16( opus_int16 a16, opus_int16 b16 ) { + opus_int16 res; + silk_assert(0); + /* Nb will be counted in sub-macros*/ + res = (opus_int16)silk_SAT16( silk_SUB32( (opus_int32)(a16), (b16) ) ); + return res; +} + +#undef silk_SUB_SAT32 +static OPUS_INLINE opus_int32 silk_SUB_SAT32( opus_int32 a32, opus_int32 b32 ) { + opus_int32 res; + ops_count += 1; + res = ((((a32)-(b32)) & 0x80000000) == 0 ? \ + (( (a32) & ((b32)^0x80000000) & 0x80000000) ? silk_int32_MIN : (a32)-(b32)) : \ + ((((a32)^0x80000000) & (b32) & 0x80000000) ? silk_int32_MAX : (a32)-(b32)) ); + return res; +} + +#undef silk_SUB_SAT64 +static OPUS_INLINE opus_int64 silk_SUB_SAT64( opus_int64 a64, opus_int64 b64 ) { + opus_int64 res; + ops_count += 1; + res = ((((a64)-(b64)) & 0x8000000000000000LL) == 0 ? \ + (( (a64) & ((b64)^0x8000000000000000LL) & 0x8000000000000000LL) ? silk_int64_MIN : (a64)-(b64)) : \ + ((((a64)^0x8000000000000000LL) & (b64) & 0x8000000000000000LL) ? silk_int64_MAX : (a64)-(b64)) ); + + return res; +} + +#undef silk_SMULWW +static OPUS_INLINE opus_int32 silk_SMULWW(opus_int32 a32, opus_int32 b32){ + opus_int32 ret; + /* Nb will be counted in sub-macros*/ + ret = silk_MLA(silk_SMULWB((a32), (b32)), (a32), silk_RSHIFT_ROUND((b32), 16)); + return ret; +} + +#undef silk_SMLAWW +static OPUS_INLINE opus_int32 silk_SMLAWW(opus_int32 a32, opus_int32 b32, opus_int32 c32){ + opus_int32 ret; + /* Nb will be counted in sub-macros*/ + ret = silk_MLA(silk_SMLAWB((a32), (b32), (c32)), (b32), silk_RSHIFT_ROUND((c32), 16)); + return ret; +} + +#undef silk_min_int +static OPUS_INLINE opus_int silk_min_int(opus_int a, opus_int b) +{ + ops_count += 1; + return (((a) < (b)) ? (a) : (b)); +} + +#undef silk_min_16 +static OPUS_INLINE opus_int16 silk_min_16(opus_int16 a, opus_int16 b) +{ + ops_count += 1; + return (((a) < (b)) ? (a) : (b)); +} +#undef silk_min_32 +static OPUS_INLINE opus_int32 silk_min_32(opus_int32 a, opus_int32 b) +{ + ops_count += 1; + return (((a) < (b)) ? (a) : (b)); +} +#undef silk_min_64 +static OPUS_INLINE opus_int64 silk_min_64(opus_int64 a, opus_int64 b) +{ + ops_count += 1; + return (((a) < (b)) ? (a) : (b)); +} + +/* silk_min() versions with typecast in the function call */ +#undef silk_max_int +static OPUS_INLINE opus_int silk_max_int(opus_int a, opus_int b) +{ + ops_count += 1; + return (((a) > (b)) ? (a) : (b)); +} +#undef silk_max_16 +static OPUS_INLINE opus_int16 silk_max_16(opus_int16 a, opus_int16 b) +{ + ops_count += 1; + return (((a) > (b)) ? (a) : (b)); +} +#undef silk_max_32 +static OPUS_INLINE opus_int32 silk_max_32(opus_int32 a, opus_int32 b) +{ + ops_count += 1; + return (((a) > (b)) ? (a) : (b)); +} + +#undef silk_max_64 +static OPUS_INLINE opus_int64 silk_max_64(opus_int64 a, opus_int64 b) +{ + ops_count += 1; + return (((a) > (b)) ? (a) : (b)); +} + + +#undef silk_LIMIT_int +static OPUS_INLINE opus_int silk_LIMIT_int(opus_int a, opus_int limit1, opus_int limit2) +{ + opus_int ret; + ops_count += 6; + + ret = ((limit1) > (limit2) ? ((a) > (limit1) ? (limit1) : ((a) < (limit2) ? (limit2) : (a))) \ + : ((a) > (limit2) ? (limit2) : ((a) < (limit1) ? (limit1) : (a)))); + + return(ret); +} + +#undef silk_LIMIT_16 +static OPUS_INLINE opus_int16 silk_LIMIT_16(opus_int16 a, opus_int16 limit1, opus_int16 limit2) +{ + opus_int16 ret; + ops_count += 6; + + ret = ((limit1) > (limit2) ? ((a) > (limit1) ? (limit1) : ((a) < (limit2) ? (limit2) : (a))) \ + : ((a) > (limit2) ? (limit2) : ((a) < (limit1) ? (limit1) : (a)))); + +return(ret); +} + + +#undef silk_LIMIT_32 +static OPUS_INLINE opus_int32 silk_LIMIT_32(opus_int32 a, opus_int32 limit1, opus_int32 limit2) +{ + opus_int32 ret; + ops_count += 6; + + ret = ((limit1) > (limit2) ? ((a) > (limit1) ? (limit1) : ((a) < (limit2) ? (limit2) : (a))) \ + : ((a) > (limit2) ? (limit2) : ((a) < (limit1) ? (limit1) : (a)))); + return(ret); +} + +#else +#define varDefine +#define silk_SaveCount() + +#endif +#endif + diff --git a/components/opus/libopus/silk/MacroDebug.h b/components/opus/libopus/silk/MacroDebug.h new file mode 100644 index 0000000..8dd4ce2 --- /dev/null +++ b/components/opus/libopus/silk/MacroDebug.h @@ -0,0 +1,951 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Copyright (C) 2012 Xiph.Org Foundation +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifndef MACRO_DEBUG_H +#define MACRO_DEBUG_H + +/* Redefine macro functions with extensive assertion in DEBUG mode. + As functions can't be undefined, this file can't work with SigProcFIX_MacroCount.h */ + +#if ( defined (FIXED_DEBUG) || ( 0 && defined (_DEBUG) ) ) && !defined (silk_MACRO_COUNT) + +#undef silk_ADD16 +#define silk_ADD16(a,b) silk_ADD16_((a), (b), __FILE__, __LINE__) +static OPUS_INLINE opus_int16 silk_ADD16_(opus_int16 a, opus_int16 b, char *file, int line){ + opus_int16 ret; + + ret = a + b; + if ( ret != silk_ADD_SAT16( a, b ) ) + { + fprintf (stderr, "silk_ADD16(%d, %d) in %s: line %d\n", a, b, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return ret; +} + +#undef silk_ADD32 +#define silk_ADD32(a,b) silk_ADD32_((a), (b), __FILE__, __LINE__) +static OPUS_INLINE opus_int32 silk_ADD32_(opus_int32 a, opus_int32 b, char *file, int line){ + opus_int32 ret; + + ret = a + b; + if ( ret != silk_ADD_SAT32( a, b ) ) + { + fprintf (stderr, "silk_ADD32(%d, %d) in %s: line %d\n", a, b, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return ret; +} + +#undef silk_ADD64 +#define silk_ADD64(a,b) silk_ADD64_((a), (b), __FILE__, __LINE__) +static OPUS_INLINE opus_int64 silk_ADD64_(opus_int64 a, opus_int64 b, char *file, int line){ + opus_int64 ret; + + ret = a + b; + if ( ret != silk_ADD_SAT64( a, b ) ) + { + fprintf (stderr, "silk_ADD64(%lld, %lld) in %s: line %d\n", (long long)a, (long long)b, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return ret; +} + +#undef silk_SUB16 +#define silk_SUB16(a,b) silk_SUB16_((a), (b), __FILE__, __LINE__) +static OPUS_INLINE opus_int16 silk_SUB16_(opus_int16 a, opus_int16 b, char *file, int line){ + opus_int16 ret; + + ret = a - b; + if ( ret != silk_SUB_SAT16( a, b ) ) + { + fprintf (stderr, "silk_SUB16(%d, %d) in %s: line %d\n", a, b, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return ret; +} + +#undef silk_SUB32 +#define silk_SUB32(a,b) silk_SUB32_((a), (b), __FILE__, __LINE__) +static OPUS_INLINE opus_int32 silk_SUB32_(opus_int32 a, opus_int32 b, char *file, int line){ + opus_int32 ret; + + ret = a - b; + if ( ret != silk_SUB_SAT32( a, b ) ) + { + fprintf (stderr, "silk_SUB32(%d, %d) in %s: line %d\n", a, b, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return ret; +} + +#undef silk_SUB64 +#define silk_SUB64(a,b) silk_SUB64_((a), (b), __FILE__, __LINE__) +static OPUS_INLINE opus_int64 silk_SUB64_(opus_int64 a, opus_int64 b, char *file, int line){ + opus_int64 ret; + + ret = a - b; + if ( ret != silk_SUB_SAT64( a, b ) ) + { + fprintf (stderr, "silk_SUB64(%lld, %lld) in %s: line %d\n", (long long)a, (long long)b, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return ret; +} + +#undef silk_ADD_SAT16 +#define silk_ADD_SAT16(a,b) silk_ADD_SAT16_((a), (b), __FILE__, __LINE__) +static OPUS_INLINE opus_int16 silk_ADD_SAT16_( opus_int16 a16, opus_int16 b16, char *file, int line) { + opus_int16 res; + res = (opus_int16)silk_SAT16( silk_ADD32( (opus_int32)(a16), (b16) ) ); + if ( res != silk_SAT16( (opus_int32)a16 + (opus_int32)b16 ) ) + { + fprintf (stderr, "silk_ADD_SAT16(%d, %d) in %s: line %d\n", a16, b16, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return res; +} + +#undef silk_ADD_SAT32 +#define silk_ADD_SAT32(a,b) silk_ADD_SAT32_((a), (b), __FILE__, __LINE__) +static OPUS_INLINE opus_int32 silk_ADD_SAT32_(opus_int32 a32, opus_int32 b32, char *file, int line){ + opus_int32 res; + res = ((((opus_uint32)(a32) + (opus_uint32)(b32)) & 0x80000000) == 0 ? \ + ((((a32) & (b32)) & 0x80000000) != 0 ? silk_int32_MIN : (a32)+(b32)) : \ + ((((a32) | (b32)) & 0x80000000) == 0 ? silk_int32_MAX : (a32)+(b32)) ); + if ( res != silk_SAT32( (opus_int64)a32 + (opus_int64)b32 ) ) + { + fprintf (stderr, "silk_ADD_SAT32(%d, %d) in %s: line %d\n", a32, b32, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return res; +} + +#undef silk_ADD_SAT64 +#define silk_ADD_SAT64(a,b) silk_ADD_SAT64_((a), (b), __FILE__, __LINE__) +static OPUS_INLINE opus_int64 silk_ADD_SAT64_( opus_int64 a64, opus_int64 b64, char *file, int line) { + opus_int64 res; + int fail = 0; + res = ((((a64) + (b64)) & 0x8000000000000000LL) == 0 ? \ + ((((a64) & (b64)) & 0x8000000000000000LL) != 0 ? silk_int64_MIN : (a64)+(b64)) : \ + ((((a64) | (b64)) & 0x8000000000000000LL) == 0 ? silk_int64_MAX : (a64)+(b64)) ); + if( res != a64 + b64 ) { + /* Check that we saturated to the correct extreme value */ + if ( !(( res == silk_int64_MAX && ( ( a64 >> 1 ) + ( b64 >> 1 ) > ( silk_int64_MAX >> 3 ) ) ) || + ( res == silk_int64_MIN && ( ( a64 >> 1 ) + ( b64 >> 1 ) < ( silk_int64_MIN >> 3 ) ) ) ) ) + { + fail = 1; + } + } else { + /* Saturation not necessary */ + fail = res != a64 + b64; + } + if ( fail ) + { + fprintf (stderr, "silk_ADD_SAT64(%lld, %lld) in %s: line %d\n", (long long)a64, (long long)b64, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return res; +} + +#undef silk_SUB_SAT16 +#define silk_SUB_SAT16(a,b) silk_SUB_SAT16_((a), (b), __FILE__, __LINE__) +static OPUS_INLINE opus_int16 silk_SUB_SAT16_( opus_int16 a16, opus_int16 b16, char *file, int line ) { + opus_int16 res; + res = (opus_int16)silk_SAT16( silk_SUB32( (opus_int32)(a16), (b16) ) ); + if ( res != silk_SAT16( (opus_int32)a16 - (opus_int32)b16 ) ) + { + fprintf (stderr, "silk_SUB_SAT16(%d, %d) in %s: line %d\n", a16, b16, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return res; +} + +#undef silk_SUB_SAT32 +#define silk_SUB_SAT32(a,b) silk_SUB_SAT32_((a), (b), __FILE__, __LINE__) +static OPUS_INLINE opus_int32 silk_SUB_SAT32_( opus_int32 a32, opus_int32 b32, char *file, int line ) { + opus_int32 res; + res = ((((opus_uint32)(a32)-(opus_uint32)(b32)) & 0x80000000) == 0 ? \ + (( (a32) & ((b32)^0x80000000) & 0x80000000) ? silk_int32_MIN : (a32)-(b32)) : \ + ((((a32)^0x80000000) & (b32) & 0x80000000) ? silk_int32_MAX : (a32)-(b32)) ); + if ( res != silk_SAT32( (opus_int64)a32 - (opus_int64)b32 ) ) + { + fprintf (stderr, "silk_SUB_SAT32(%d, %d) in %s: line %d\n", a32, b32, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return res; +} + +#undef silk_SUB_SAT64 +#define silk_SUB_SAT64(a,b) silk_SUB_SAT64_((a), (b), __FILE__, __LINE__) +static OPUS_INLINE opus_int64 silk_SUB_SAT64_( opus_int64 a64, opus_int64 b64, char *file, int line ) { + opus_int64 res; + int fail = 0; + res = ((((a64)-(b64)) & 0x8000000000000000LL) == 0 ? \ + (( (a64) & ((b64)^0x8000000000000000LL) & 0x8000000000000000LL) ? silk_int64_MIN : (a64)-(b64)) : \ + ((((a64)^0x8000000000000000LL) & (b64) & 0x8000000000000000LL) ? silk_int64_MAX : (a64)-(b64)) ); + if( res != a64 - b64 ) { + /* Check that we saturated to the correct extreme value */ + if( !(( res == silk_int64_MAX && ( ( a64 >> 1 ) + ( b64 >> 1 ) > ( silk_int64_MAX >> 3 ) ) ) || + ( res == silk_int64_MIN && ( ( a64 >> 1 ) + ( b64 >> 1 ) < ( silk_int64_MIN >> 3 ) ) ) )) + { + fail = 1; + } + } else { + /* Saturation not necessary */ + fail = res != a64 - b64; + } + if ( fail ) + { + fprintf (stderr, "silk_SUB_SAT64(%lld, %lld) in %s: line %d\n", (long long)a64, (long long)b64, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return res; +} + +#undef silk_MUL +#define silk_MUL(a,b) silk_MUL_((a), (b), __FILE__, __LINE__) +static OPUS_INLINE opus_int32 silk_MUL_(opus_int32 a32, opus_int32 b32, char *file, int line){ + opus_int32 ret; + opus_int64 ret64; + ret = a32 * b32; + ret64 = (opus_int64)a32 * (opus_int64)b32; + if ( (opus_int64)ret != ret64 ) + { + fprintf (stderr, "silk_MUL(%d, %d) in %s: line %d\n", a32, b32, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return ret; +} + +#undef silk_MUL_uint +#define silk_MUL_uint(a,b) silk_MUL_uint_((a), (b), __FILE__, __LINE__) +static OPUS_INLINE opus_uint32 silk_MUL_uint_(opus_uint32 a32, opus_uint32 b32, char *file, int line){ + opus_uint32 ret; + ret = a32 * b32; + if ( (opus_uint64)ret != (opus_uint64)a32 * (opus_uint64)b32 ) + { + fprintf (stderr, "silk_MUL_uint(%u, %u) in %s: line %d\n", a32, b32, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return ret; +} + +#undef silk_MLA +#define silk_MLA(a,b,c) silk_MLA_((a), (b), (c), __FILE__, __LINE__) +static OPUS_INLINE opus_int32 silk_MLA_(opus_int32 a32, opus_int32 b32, opus_int32 c32, char *file, int line){ + opus_int32 ret; + ret = a32 + b32 * c32; + if ( (opus_int64)ret != (opus_int64)a32 + (opus_int64)b32 * (opus_int64)c32 ) + { + fprintf (stderr, "silk_MLA(%d, %d, %d) in %s: line %d\n", a32, b32, c32, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return ret; +} + +#undef silk_MLA_uint +#define silk_MLA_uint(a,b,c) silk_MLA_uint_((a), (b), (c), __FILE__, __LINE__) +static OPUS_INLINE opus_int32 silk_MLA_uint_(opus_uint32 a32, opus_uint32 b32, opus_uint32 c32, char *file, int line){ + opus_uint32 ret; + ret = a32 + b32 * c32; + if ( (opus_int64)ret != (opus_int64)a32 + (opus_int64)b32 * (opus_int64)c32 ) + { + fprintf (stderr, "silk_MLA_uint(%d, %d, %d) in %s: line %d\n", a32, b32, c32, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return ret; +} + +#undef silk_SMULWB +#define silk_SMULWB(a,b) silk_SMULWB_((a), (b), __FILE__, __LINE__) +static OPUS_INLINE opus_int32 silk_SMULWB_(opus_int32 a32, opus_int32 b32, char *file, int line){ + opus_int32 ret; + ret = (a32 >> 16) * (opus_int32)((opus_int16)b32) + (((a32 & 0x0000FFFF) * (opus_int32)((opus_int16)b32)) >> 16); + if ( (opus_int64)ret != ((opus_int64)a32 * (opus_int16)b32) >> 16 ) + { + fprintf (stderr, "silk_SMULWB(%d, %d) in %s: line %d\n", a32, b32, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return ret; +} + +#undef silk_SMLAWB +#define silk_SMLAWB(a,b,c) silk_SMLAWB_((a), (b), (c), __FILE__, __LINE__) +static OPUS_INLINE opus_int32 silk_SMLAWB_(opus_int32 a32, opus_int32 b32, opus_int32 c32, char *file, int line){ + opus_int32 ret; + ret = silk_ADD32( a32, silk_SMULWB( b32, c32 ) ); + if ( silk_ADD32( a32, silk_SMULWB( b32, c32 ) ) != silk_ADD_SAT32( a32, silk_SMULWB( b32, c32 ) ) ) + { + fprintf (stderr, "silk_SMLAWB(%d, %d, %d) in %s: line %d\n", a32, b32, c32, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return ret; +} + +#undef silk_SMULWT +#define silk_SMULWT(a,b) silk_SMULWT_((a), (b), __FILE__, __LINE__) +static OPUS_INLINE opus_int32 silk_SMULWT_(opus_int32 a32, opus_int32 b32, char *file, int line){ + opus_int32 ret; + ret = (a32 >> 16) * (b32 >> 16) + (((a32 & 0x0000FFFF) * (b32 >> 16)) >> 16); + if ( (opus_int64)ret != ((opus_int64)a32 * (b32 >> 16)) >> 16 ) + { + fprintf (stderr, "silk_SMULWT(%d, %d) in %s: line %d\n", a32, b32, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return ret; +} + +#undef silk_SMLAWT +#define silk_SMLAWT(a,b,c) silk_SMLAWT_((a), (b), (c), __FILE__, __LINE__) +static OPUS_INLINE opus_int32 silk_SMLAWT_(opus_int32 a32, opus_int32 b32, opus_int32 c32, char *file, int line){ + opus_int32 ret; + ret = a32 + ((b32 >> 16) * (c32 >> 16)) + (((b32 & 0x0000FFFF) * ((c32 >> 16)) >> 16)); + if ( (opus_int64)ret != (opus_int64)a32 + (((opus_int64)b32 * (c32 >> 16)) >> 16) ) + { + fprintf (stderr, "silk_SMLAWT(%d, %d, %d) in %s: line %d\n", a32, b32, c32, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return ret; +} + +#undef silk_SMULL +#define silk_SMULL(a,b) silk_SMULL_((a), (b), __FILE__, __LINE__) +static OPUS_INLINE opus_int64 silk_SMULL_(opus_int64 a64, opus_int64 b64, char *file, int line){ + opus_int64 ret64; + int fail = 0; + ret64 = a64 * b64; + if( b64 != 0 ) { + fail = a64 != (ret64 / b64); + } else if( a64 != 0 ) { + fail = b64 != (ret64 / a64); + } + if ( fail ) + { + fprintf (stderr, "silk_SMULL(%lld, %lld) in %s: line %d\n", (long long)a64, (long long)b64, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return ret64; +} + +/* no checking needed for silk_SMULBB */ +#undef silk_SMLABB +#define silk_SMLABB(a,b,c) silk_SMLABB_((a), (b), (c), __FILE__, __LINE__) +static OPUS_INLINE opus_int32 silk_SMLABB_(opus_int32 a32, opus_int32 b32, opus_int32 c32, char *file, int line){ + opus_int32 ret; + ret = a32 + (opus_int32)((opus_int16)b32) * (opus_int32)((opus_int16)c32); + if ( (opus_int64)ret != (opus_int64)a32 + (opus_int64)b32 * (opus_int16)c32 ) + { + fprintf (stderr, "silk_SMLABB(%d, %d, %d) in %s: line %d\n", a32, b32, c32, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return ret; +} + +/* no checking needed for silk_SMULBT */ +#undef silk_SMLABT +#define silk_SMLABT(a,b,c) silk_SMLABT_((a), (b), (c), __FILE__, __LINE__) +static OPUS_INLINE opus_int32 silk_SMLABT_(opus_int32 a32, opus_int32 b32, opus_int32 c32, char *file, int line){ + opus_int32 ret; + ret = a32 + ((opus_int32)((opus_int16)b32)) * (c32 >> 16); + if ( (opus_int64)ret != (opus_int64)a32 + (opus_int64)b32 * (c32 >> 16) ) + { + fprintf (stderr, "silk_SMLABT(%d, %d, %d) in %s: line %d\n", a32, b32, c32, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return ret; +} + +/* no checking needed for silk_SMULTT */ +#undef silk_SMLATT +#define silk_SMLATT(a,b,c) silk_SMLATT_((a), (b), (c), __FILE__, __LINE__) +static OPUS_INLINE opus_int32 silk_SMLATT_(opus_int32 a32, opus_int32 b32, opus_int32 c32, char *file, int line){ + opus_int32 ret; + ret = a32 + (b32 >> 16) * (c32 >> 16); + if ( (opus_int64)ret != (opus_int64)a32 + (b32 >> 16) * (c32 >> 16) ) + { + fprintf (stderr, "silk_SMLATT(%d, %d, %d) in %s: line %d\n", a32, b32, c32, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return ret; +} + +#undef silk_SMULWW +#define silk_SMULWW(a,b) silk_SMULWW_((a), (b), __FILE__, __LINE__) +static OPUS_INLINE opus_int32 silk_SMULWW_(opus_int32 a32, opus_int32 b32, char *file, int line){ + opus_int32 ret, tmp1, tmp2; + opus_int64 ret64; + int fail = 0; + + ret = silk_SMULWB( a32, b32 ); + tmp1 = silk_RSHIFT_ROUND( b32, 16 ); + tmp2 = silk_MUL( a32, tmp1 ); + + fail |= (opus_int64)tmp2 != (opus_int64) a32 * (opus_int64) tmp1; + + tmp1 = ret; + ret = silk_ADD32( tmp1, tmp2 ); + fail |= silk_ADD32( tmp1, tmp2 ) != silk_ADD_SAT32( tmp1, tmp2 ); + + ret64 = silk_RSHIFT64( silk_SMULL( a32, b32 ), 16 ); + fail |= (opus_int64)ret != ret64; + + if ( fail ) + { + fprintf (stderr, "silk_SMULWT(%d, %d) in %s: line %d\n", a32, b32, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + + return ret; +} + +#undef silk_SMLAWW +#define silk_SMLAWW(a,b,c) silk_SMLAWW_((a), (b), (c), __FILE__, __LINE__) +static OPUS_INLINE opus_int32 silk_SMLAWW_(opus_int32 a32, opus_int32 b32, opus_int32 c32, char *file, int line){ + opus_int32 ret, tmp; + + tmp = silk_SMULWW( b32, c32 ); + ret = silk_ADD32( a32, tmp ); + if ( ret != silk_ADD_SAT32( a32, tmp ) ) + { + fprintf (stderr, "silk_SMLAWW(%d, %d, %d) in %s: line %d\n", a32, b32, c32, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return ret; +} + +/* Multiply-accumulate macros that allow overflow in the addition (ie, no asserts in debug mode) */ +#undef silk_MLA_ovflw +#define silk_MLA_ovflw(a32, b32, c32) ((a32) + ((b32) * (c32))) +#undef silk_SMLABB_ovflw +#define silk_SMLABB_ovflw(a32, b32, c32) ((a32) + ((opus_int32)((opus_int16)(b32))) * (opus_int32)((opus_int16)(c32))) + +/* no checking needed for silk_SMULL + no checking needed for silk_SMLAL + no checking needed for silk_SMLALBB + no checking needed for SigProcFIX_CLZ16 + no checking needed for SigProcFIX_CLZ32*/ + +#undef silk_DIV32 +#define silk_DIV32(a,b) silk_DIV32_((a), (b), __FILE__, __LINE__) +static OPUS_INLINE opus_int32 silk_DIV32_(opus_int32 a32, opus_int32 b32, char *file, int line){ + if ( b32 == 0 ) + { + fprintf (stderr, "silk_DIV32(%d, %d) in %s: line %d\n", a32, b32, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return a32 / b32; +} + +#undef silk_DIV32_16 +#define silk_DIV32_16(a,b) silk_DIV32_16_((a), (b), __FILE__, __LINE__) +static OPUS_INLINE opus_int32 silk_DIV32_16_(opus_int32 a32, opus_int32 b32, char *file, int line){ + int fail = 0; + fail |= b32 == 0; + fail |= b32 > silk_int16_MAX; + fail |= b32 < silk_int16_MIN; + if ( fail ) + { + fprintf (stderr, "silk_DIV32_16(%d, %d) in %s: line %d\n", a32, b32, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return a32 / b32; +} + +/* no checking needed for silk_SAT8 + no checking needed for silk_SAT16 + no checking needed for silk_SAT32 + no checking needed for silk_POS_SAT32 + no checking needed for silk_ADD_POS_SAT8 + no checking needed for silk_ADD_POS_SAT16 + no checking needed for silk_ADD_POS_SAT32 */ + +#undef silk_LSHIFT8 +#define silk_LSHIFT8(a,b) silk_LSHIFT8_((a), (b), __FILE__, __LINE__) +static OPUS_INLINE opus_int8 silk_LSHIFT8_(opus_int8 a, opus_int32 shift, char *file, int line){ + opus_int8 ret; + int fail = 0; + ret = a << shift; + fail |= shift < 0; + fail |= shift >= 8; + fail |= (opus_int64)ret != ((opus_int64)a) << shift; + if ( fail ) + { + fprintf (stderr, "silk_LSHIFT8(%d, %d) in %s: line %d\n", a, shift, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return ret; +} + +#undef silk_LSHIFT16 +#define silk_LSHIFT16(a,b) silk_LSHIFT16_((a), (b), __FILE__, __LINE__) +static OPUS_INLINE opus_int16 silk_LSHIFT16_(opus_int16 a, opus_int32 shift, char *file, int line){ + opus_int16 ret; + int fail = 0; + ret = a << shift; + fail |= shift < 0; + fail |= shift >= 16; + fail |= (opus_int64)ret != ((opus_int64)a) << shift; + if ( fail ) + { + fprintf (stderr, "silk_LSHIFT16(%d, %d) in %s: line %d\n", a, shift, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return ret; +} + +#undef silk_LSHIFT32 +#define silk_LSHIFT32(a,b) silk_LSHIFT32_((a), (b), __FILE__, __LINE__) +static OPUS_INLINE opus_int32 silk_LSHIFT32_(opus_int32 a, opus_int32 shift, char *file, int line){ + opus_int32 ret; + int fail = 0; + ret = a << shift; + fail |= shift < 0; + fail |= shift >= 32; + fail |= (opus_int64)ret != ((opus_int64)a) << shift; + if ( fail ) + { + fprintf (stderr, "silk_LSHIFT32(%d, %d) in %s: line %d\n", a, shift, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return ret; +} + +#undef silk_LSHIFT64 +#define silk_LSHIFT64(a,b) silk_LSHIFT64_((a), (b), __FILE__, __LINE__) +static OPUS_INLINE opus_int64 silk_LSHIFT64_(opus_int64 a, opus_int shift, char *file, int line){ + opus_int64 ret; + int fail = 0; + ret = a << shift; + fail |= shift < 0; + fail |= shift >= 64; + fail |= (ret>>shift) != ((opus_int64)a); + if ( fail ) + { + fprintf (stderr, "silk_LSHIFT64(%lld, %d) in %s: line %d\n", (long long)a, shift, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return ret; +} + +#undef silk_LSHIFT_ovflw +#define silk_LSHIFT_ovflw(a,b) silk_LSHIFT_ovflw_((a), (b), __FILE__, __LINE__) +static OPUS_INLINE opus_int32 silk_LSHIFT_ovflw_(opus_int32 a, opus_int32 shift, char *file, int line){ + if ( (shift < 0) || (shift >= 32) ) /* no check for overflow */ + { + fprintf (stderr, "silk_LSHIFT_ovflw(%d, %d) in %s: line %d\n", a, shift, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return a << shift; +} + +#undef silk_LSHIFT_uint +#define silk_LSHIFT_uint(a,b) silk_LSHIFT_uint_((a), (b), __FILE__, __LINE__) +static OPUS_INLINE opus_uint32 silk_LSHIFT_uint_(opus_uint32 a, opus_int32 shift, char *file, int line){ + opus_uint32 ret; + ret = a << shift; + if ( (shift < 0) || ((opus_int64)ret != ((opus_int64)a) << shift)) + { + fprintf (stderr, "silk_LSHIFT_uint(%u, %d) in %s: line %d\n", a, shift, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return ret; +} + +#undef silk_RSHIFT8 +#define silk_RSHITF8(a,b) silk_RSHIFT8_((a), (b), __FILE__, __LINE__) +static OPUS_INLINE opus_int8 silk_RSHIFT8_(opus_int8 a, opus_int32 shift, char *file, int line){ + if ( (shift < 0) || (shift>=8) ) + { + fprintf (stderr, "silk_RSHITF8(%d, %d) in %s: line %d\n", a, shift, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return a >> shift; +} + +#undef silk_RSHIFT16 +#define silk_RSHITF16(a,b) silk_RSHIFT16_((a), (b), __FILE__, __LINE__) +static OPUS_INLINE opus_int16 silk_RSHIFT16_(opus_int16 a, opus_int32 shift, char *file, int line){ + if ( (shift < 0) || (shift>=16) ) + { + fprintf (stderr, "silk_RSHITF16(%d, %d) in %s: line %d\n", a, shift, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return a >> shift; +} + +#undef silk_RSHIFT32 +#define silk_RSHIFT32(a,b) silk_RSHIFT32_((a), (b), __FILE__, __LINE__) +static OPUS_INLINE opus_int32 silk_RSHIFT32_(opus_int32 a, opus_int32 shift, char *file, int line){ + if ( (shift < 0) || (shift>=32) ) + { + fprintf (stderr, "silk_RSHITF32(%d, %d) in %s: line %d\n", a, shift, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return a >> shift; +} + +#undef silk_RSHIFT64 +#define silk_RSHIFT64(a,b) silk_RSHIFT64_((a), (b), __FILE__, __LINE__) +static OPUS_INLINE opus_int64 silk_RSHIFT64_(opus_int64 a, opus_int64 shift, char *file, int line){ + if ( (shift < 0) || (shift>=64) ) + { + fprintf (stderr, "silk_RSHITF64(%lld, %lld) in %s: line %d\n", (long long)a, (long long)shift, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return a >> shift; +} + +#undef silk_RSHIFT_uint +#define silk_RSHIFT_uint(a,b) silk_RSHIFT_uint_((a), (b), __FILE__, __LINE__) +static OPUS_INLINE opus_uint32 silk_RSHIFT_uint_(opus_uint32 a, opus_int32 shift, char *file, int line){ + if ( (shift < 0) || (shift>32) ) + { + fprintf (stderr, "silk_RSHIFT_uint(%u, %d) in %s: line %d\n", a, shift, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return a >> shift; +} + +#undef silk_ADD_LSHIFT +#define silk_ADD_LSHIFT(a,b,c) silk_ADD_LSHIFT_((a), (b), (c), __FILE__, __LINE__) +static OPUS_INLINE int silk_ADD_LSHIFT_(int a, int b, int shift, char *file, int line){ + opus_int16 ret; + ret = a + (b << shift); + if ( (shift < 0) || (shift>15) || ((opus_int64)ret != (opus_int64)a + (((opus_int64)b) << shift)) ) + { + fprintf (stderr, "silk_ADD_LSHIFT(%d, %d, %d) in %s: line %d\n", a, b, shift, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return ret; /* shift >= 0 */ +} + +#undef silk_ADD_LSHIFT32 +#define silk_ADD_LSHIFT32(a,b,c) silk_ADD_LSHIFT32_((a), (b), (c), __FILE__, __LINE__) +static OPUS_INLINE opus_int32 silk_ADD_LSHIFT32_(opus_int32 a, opus_int32 b, opus_int32 shift, char *file, int line){ + opus_int32 ret; + ret = a + (b << shift); + if ( (shift < 0) || (shift>31) || ((opus_int64)ret != (opus_int64)a + (((opus_int64)b) << shift)) ) + { + fprintf (stderr, "silk_ADD_LSHIFT32(%d, %d, %d) in %s: line %d\n", a, b, shift, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return ret; /* shift >= 0 */ +} + +#undef silk_ADD_LSHIFT_uint +#define silk_ADD_LSHIFT_uint(a,b,c) silk_ADD_LSHIFT_uint_((a), (b), (c), __FILE__, __LINE__) +static OPUS_INLINE opus_uint32 silk_ADD_LSHIFT_uint_(opus_uint32 a, opus_uint32 b, opus_int32 shift, char *file, int line){ + opus_uint32 ret; + ret = a + (b << shift); + if ( (shift < 0) || (shift>32) || ((opus_int64)ret != (opus_int64)a + (((opus_int64)b) << shift)) ) + { + fprintf (stderr, "silk_ADD_LSHIFT_uint(%u, %u, %d) in %s: line %d\n", a, b, shift, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return ret; /* shift >= 0 */ +} + +#undef silk_ADD_RSHIFT +#define silk_ADD_RSHIFT(a,b,c) silk_ADD_RSHIFT_((a), (b), (c), __FILE__, __LINE__) +static OPUS_INLINE int silk_ADD_RSHIFT_(int a, int b, int shift, char *file, int line){ + opus_int16 ret; + ret = a + (b >> shift); + if ( (shift < 0) || (shift>15) || ((opus_int64)ret != (opus_int64)a + (((opus_int64)b) >> shift)) ) + { + fprintf (stderr, "silk_ADD_RSHIFT(%d, %d, %d) in %s: line %d\n", a, b, shift, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return ret; /* shift > 0 */ +} + +#undef silk_ADD_RSHIFT32 +#define silk_ADD_RSHIFT32(a,b,c) silk_ADD_RSHIFT32_((a), (b), (c), __FILE__, __LINE__) +static OPUS_INLINE opus_int32 silk_ADD_RSHIFT32_(opus_int32 a, opus_int32 b, opus_int32 shift, char *file, int line){ + opus_int32 ret; + ret = a + (b >> shift); + if ( (shift < 0) || (shift>31) || ((opus_int64)ret != (opus_int64)a + (((opus_int64)b) >> shift)) ) + { + fprintf (stderr, "silk_ADD_RSHIFT32(%d, %d, %d) in %s: line %d\n", a, b, shift, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return ret; /* shift > 0 */ +} + +#undef silk_ADD_RSHIFT_uint +#define silk_ADD_RSHIFT_uint(a,b,c) silk_ADD_RSHIFT_uint_((a), (b), (c), __FILE__, __LINE__) +static OPUS_INLINE opus_uint32 silk_ADD_RSHIFT_uint_(opus_uint32 a, opus_uint32 b, opus_int32 shift, char *file, int line){ + opus_uint32 ret; + ret = a + (b >> shift); + if ( (shift < 0) || (shift>32) || ((opus_int64)ret != (opus_int64)a + (((opus_int64)b) >> shift)) ) + { + fprintf (stderr, "silk_ADD_RSHIFT_uint(%u, %u, %d) in %s: line %d\n", a, b, shift, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return ret; /* shift > 0 */ +} + +#undef silk_SUB_LSHIFT32 +#define silk_SUB_LSHIFT32(a,b,c) silk_SUB_LSHIFT32_((a), (b), (c), __FILE__, __LINE__) +static OPUS_INLINE opus_int32 silk_SUB_LSHIFT32_(opus_int32 a, opus_int32 b, opus_int32 shift, char *file, int line){ + opus_int32 ret; + ret = a - (b << shift); + if ( (shift < 0) || (shift>31) || ((opus_int64)ret != (opus_int64)a - (((opus_int64)b) << shift)) ) + { + fprintf (stderr, "silk_SUB_LSHIFT32(%d, %d, %d) in %s: line %d\n", a, b, shift, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return ret; /* shift >= 0 */ +} + +#undef silk_SUB_RSHIFT32 +#define silk_SUB_RSHIFT32(a,b,c) silk_SUB_RSHIFT32_((a), (b), (c), __FILE__, __LINE__) +static OPUS_INLINE opus_int32 silk_SUB_RSHIFT32_(opus_int32 a, opus_int32 b, opus_int32 shift, char *file, int line){ + opus_int32 ret; + ret = a - (b >> shift); + if ( (shift < 0) || (shift>31) || ((opus_int64)ret != (opus_int64)a - (((opus_int64)b) >> shift)) ) + { + fprintf (stderr, "silk_SUB_RSHIFT32(%d, %d, %d) in %s: line %d\n", a, b, shift, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return ret; /* shift > 0 */ +} + +#undef silk_RSHIFT_ROUND +#define silk_RSHIFT_ROUND(a,b) silk_RSHIFT_ROUND_((a), (b), __FILE__, __LINE__) +static OPUS_INLINE opus_int32 silk_RSHIFT_ROUND_(opus_int32 a, opus_int32 shift, char *file, int line){ + opus_int32 ret; + ret = shift == 1 ? (a >> 1) + (a & 1) : ((a >> (shift - 1)) + 1) >> 1; + /* the marco definition can't handle a shift of zero */ + if ( (shift <= 0) || (shift>31) || ((opus_int64)ret != ((opus_int64)a + ((opus_int64)1 << (shift - 1))) >> shift) ) + { + fprintf (stderr, "silk_RSHIFT_ROUND(%d, %d) in %s: line %d\n", a, shift, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return ret; +} + +#undef silk_RSHIFT_ROUND64 +#define silk_RSHIFT_ROUND64(a,b) silk_RSHIFT_ROUND64_((a), (b), __FILE__, __LINE__) +static OPUS_INLINE opus_int64 silk_RSHIFT_ROUND64_(opus_int64 a, opus_int32 shift, char *file, int line){ + opus_int64 ret; + /* the marco definition can't handle a shift of zero */ + if ( (shift <= 0) || (shift>=64) ) + { + fprintf (stderr, "silk_RSHIFT_ROUND64(%lld, %d) in %s: line %d\n", (long long)a, shift, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + ret = shift == 1 ? (a >> 1) + (a & 1) : ((a >> (shift - 1)) + 1) >> 1; + return ret; +} + +/* silk_abs is used on floats also, so doesn't work... */ +/*#undef silk_abs +static OPUS_INLINE opus_int32 silk_abs(opus_int32 a){ + silk_assert(a != 0x80000000); + return (((a) > 0) ? (a) : -(a)); // Be careful, silk_abs returns wrong when input equals to silk_intXX_MIN +}*/ + +#undef silk_abs_int64 +#define silk_abs_int64(a) silk_abs_int64_((a), __FILE__, __LINE__) +static OPUS_INLINE opus_int64 silk_abs_int64_(opus_int64 a, char *file, int line){ + if ( a == silk_int64_MIN ) + { + fprintf (stderr, "silk_abs_int64(%lld) in %s: line %d\n", (long long)a, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return (((a) > 0) ? (a) : -(a)); /* Be careful, silk_abs returns wrong when input equals to silk_intXX_MIN */ +} + +#undef silk_abs_int32 +#define silk_abs_int32(a) silk_abs_int32_((a), __FILE__, __LINE__) +static OPUS_INLINE opus_int32 silk_abs_int32_(opus_int32 a, char *file, int line){ + if ( a == silk_int32_MIN ) + { + fprintf (stderr, "silk_abs_int32(%d) in %s: line %d\n", a, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return silk_abs(a); +} + +#undef silk_CHECK_FIT8 +#define silk_CHECK_FIT8(a) silk_CHECK_FIT8_((a), __FILE__, __LINE__) +static OPUS_INLINE opus_int8 silk_CHECK_FIT8_( opus_int64 a, char *file, int line ){ + opus_int8 ret; + ret = (opus_int8)a; + if ( (opus_int64)ret != a ) + { + fprintf (stderr, "silk_CHECK_FIT8(%lld) in %s: line %d\n", (long long)a, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return( ret ); +} + +#undef silk_CHECK_FIT16 +#define silk_CHECK_FIT16(a) silk_CHECK_FIT16_((a), __FILE__, __LINE__) +static OPUS_INLINE opus_int16 silk_CHECK_FIT16_( opus_int64 a, char *file, int line ){ + opus_int16 ret; + ret = (opus_int16)a; + if ( (opus_int64)ret != a ) + { + fprintf (stderr, "silk_CHECK_FIT16(%lld) in %s: line %d\n", (long long)a, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return( ret ); +} + +#undef silk_CHECK_FIT32 +#define silk_CHECK_FIT32(a) silk_CHECK_FIT32_((a), __FILE__, __LINE__) +static OPUS_INLINE opus_int32 silk_CHECK_FIT32_( opus_int64 a, char *file, int line ){ + opus_int32 ret; + ret = (opus_int32)a; + if ( (opus_int64)ret != a ) + { + fprintf (stderr, "silk_CHECK_FIT32(%lld) in %s: line %d\n", (long long)a, file, line); +#ifdef FIXED_DEBUG_ASSERT + silk_assert( 0 ); +#endif + } + return( ret ); +} + +/* no checking for silk_NSHIFT_MUL_32_32 + no checking for silk_NSHIFT_MUL_16_16 + no checking needed for silk_min + no checking needed for silk_max + no checking needed for silk_sign +*/ + +#endif +#endif /* MACRO_DEBUG_H */ diff --git a/components/opus/libopus/silk/NLSF2A.c b/components/opus/libopus/silk/NLSF2A.c new file mode 100644 index 0000000..d5b7730 --- /dev/null +++ b/components/opus/libopus/silk/NLSF2A.c @@ -0,0 +1,141 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +/* conversion between prediction filter coefficients and LSFs */ +/* order should be even */ +/* a piecewise linear approximation maps LSF <-> cos(LSF) */ +/* therefore the result is not accurate LSFs, but the two */ +/* functions are accurate inverses of each other */ + +#include "SigProc_FIX.h" +#include "tables.h" + +#define QA 16 + +/* helper function for NLSF2A(..) */ +static OPUS_INLINE void silk_NLSF2A_find_poly( + opus_int32 *out, /* O intermediate polynomial, QA [dd+1] */ + const opus_int32 *cLSF, /* I vector of interleaved 2*cos(LSFs), QA [d] */ + opus_int dd /* I polynomial order (= 1/2 * filter order) */ +) +{ + opus_int k, n; + opus_int32 ftmp; + + out[0] = silk_LSHIFT( 1, QA ); + out[1] = -cLSF[0]; + for( k = 1; k < dd; k++ ) { + ftmp = cLSF[2*k]; /* QA*/ + out[k+1] = silk_LSHIFT( out[k-1], 1 ) - (opus_int32)silk_RSHIFT_ROUND64( silk_SMULL( ftmp, out[k] ), QA ); + for( n = k; n > 1; n-- ) { + out[n] += out[n-2] - (opus_int32)silk_RSHIFT_ROUND64( silk_SMULL( ftmp, out[n-1] ), QA ); + } + out[1] -= ftmp; + } +} + +/* compute whitening filter coefficients from normalized line spectral frequencies */ +void silk_NLSF2A( + opus_int16 *a_Q12, /* O monic whitening filter coefficients in Q12, [ d ] */ + const opus_int16 *NLSF, /* I normalized line spectral frequencies in Q15, [ d ] */ + const opus_int d, /* I filter order (should be even) */ + int arch /* I Run-time architecture */ +) +{ + /* This ordering was found to maximize quality. It improves numerical accuracy of + silk_NLSF2A_find_poly() compared to "standard" ordering. */ + static const unsigned char ordering16[16] = { + 0, 15, 8, 7, 4, 11, 12, 3, 2, 13, 10, 5, 6, 9, 14, 1 + }; + static const unsigned char ordering10[10] = { + 0, 9, 6, 3, 4, 5, 8, 1, 2, 7 + }; + const unsigned char *ordering; + opus_int k, i, dd; + opus_int32 cos_LSF_QA[ SILK_MAX_ORDER_LPC ]; + opus_int32 P[ SILK_MAX_ORDER_LPC / 2 + 1 ], Q[ SILK_MAX_ORDER_LPC / 2 + 1 ]; + opus_int32 Ptmp, Qtmp, f_int, f_frac, cos_val, delta; + opus_int32 a32_QA1[ SILK_MAX_ORDER_LPC ]; + + silk_assert( LSF_COS_TAB_SZ_FIX == 128 ); + celt_assert( d==10 || d==16 ); + + /* convert LSFs to 2*cos(LSF), using piecewise linear curve from table */ + ordering = d == 16 ? ordering16 : ordering10; + for( k = 0; k < d; k++ ) { + silk_assert( NLSF[k] >= 0 ); + + /* f_int on a scale 0-127 (rounded down) */ + f_int = silk_RSHIFT( NLSF[k], 15 - 7 ); + + /* f_frac, range: 0..255 */ + f_frac = NLSF[k] - silk_LSHIFT( f_int, 15 - 7 ); + + silk_assert(f_int >= 0); + silk_assert(f_int < LSF_COS_TAB_SZ_FIX ); + + /* Read start and end value from table */ + cos_val = silk_LSFCosTab_FIX_Q12[ f_int ]; /* Q12 */ + delta = silk_LSFCosTab_FIX_Q12[ f_int + 1 ] - cos_val; /* Q12, with a range of 0..200 */ + + /* Linear interpolation */ + cos_LSF_QA[ordering[k]] = silk_RSHIFT_ROUND( silk_LSHIFT( cos_val, 8 ) + silk_MUL( delta, f_frac ), 20 - QA ); /* QA */ + } + + dd = silk_RSHIFT( d, 1 ); + + /* generate even and odd polynomials using convolution */ + silk_NLSF2A_find_poly( P, &cos_LSF_QA[ 0 ], dd ); + silk_NLSF2A_find_poly( Q, &cos_LSF_QA[ 1 ], dd ); + + /* convert even and odd polynomials to opus_int32 Q12 filter coefs */ + for( k = 0; k < dd; k++ ) { + Ptmp = P[ k+1 ] + P[ k ]; + Qtmp = Q[ k+1 ] - Q[ k ]; + + /* the Ptmp and Qtmp values at this stage need to fit in int32 */ + a32_QA1[ k ] = -Qtmp - Ptmp; /* QA+1 */ + a32_QA1[ d-k-1 ] = Qtmp - Ptmp; /* QA+1 */ + } + + /* Convert int32 coefficients to Q12 int16 coefs */ + silk_LPC_fit( a_Q12, a32_QA1, 12, QA + 1, d ); + + for( i = 0; silk_LPC_inverse_pred_gain( a_Q12, d, arch ) == 0 && i < MAX_LPC_STABILIZE_ITERATIONS; i++ ) { + /* Prediction coefficients are (too close to) unstable; apply bandwidth expansion */ + /* on the unscaled coefficients, convert to Q12 and measure again */ + silk_bwexpander_32( a32_QA1, d, 65536 - silk_LSHIFT( 2, i ) ); + for( k = 0; k < d; k++ ) { + a_Q12[ k ] = (opus_int16)silk_RSHIFT_ROUND( a32_QA1[ k ], QA + 1 - 12 ); /* QA+1 -> Q12 */ + } + } +} + diff --git a/components/opus/libopus/silk/NLSF_VQ.c b/components/opus/libopus/silk/NLSF_VQ.c new file mode 100644 index 0000000..b83182a --- /dev/null +++ b/components/opus/libopus/silk/NLSF_VQ.c @@ -0,0 +1,76 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main.h" + +/* Compute quantization errors for an LPC_order element input vector for a VQ codebook */ +void silk_NLSF_VQ( + opus_int32 err_Q24[], /* O Quantization errors [K] */ + const opus_int16 in_Q15[], /* I Input vectors to be quantized [LPC_order] */ + const opus_uint8 pCB_Q8[], /* I Codebook vectors [K*LPC_order] */ + const opus_int16 pWght_Q9[], /* I Codebook weights [K*LPC_order] */ + const opus_int K, /* I Number of codebook vectors */ + const opus_int LPC_order /* I Number of LPCs */ +) +{ + opus_int i, m; + opus_int32 diff_Q15, diffw_Q24, sum_error_Q24, pred_Q24; + const opus_int16 *w_Q9_ptr; + const opus_uint8 *cb_Q8_ptr; + + celt_assert( ( LPC_order & 1 ) == 0 ); + + /* Loop over codebook */ + cb_Q8_ptr = pCB_Q8; + w_Q9_ptr = pWght_Q9; + for( i = 0; i < K; i++ ) { + sum_error_Q24 = 0; + pred_Q24 = 0; + for( m = LPC_order-2; m >= 0; m -= 2 ) { + /* Compute weighted absolute predictive quantization error for index m + 1 */ + diff_Q15 = silk_SUB_LSHIFT32( in_Q15[ m + 1 ], (opus_int32)cb_Q8_ptr[ m + 1 ], 7 ); /* range: [ -32767 : 32767 ]*/ + diffw_Q24 = silk_SMULBB( diff_Q15, w_Q9_ptr[ m + 1 ] ); + sum_error_Q24 = silk_ADD32( sum_error_Q24, silk_abs( silk_SUB_RSHIFT32( diffw_Q24, pred_Q24, 1 ) ) ); + pred_Q24 = diffw_Q24; + + /* Compute weighted absolute predictive quantization error for index m */ + diff_Q15 = silk_SUB_LSHIFT32( in_Q15[ m ], (opus_int32)cb_Q8_ptr[ m ], 7 ); /* range: [ -32767 : 32767 ]*/ + diffw_Q24 = silk_SMULBB( diff_Q15, w_Q9_ptr[ m ] ); + sum_error_Q24 = silk_ADD32( sum_error_Q24, silk_abs( silk_SUB_RSHIFT32( diffw_Q24, pred_Q24, 1 ) ) ); + pred_Q24 = diffw_Q24; + + silk_assert( sum_error_Q24 >= 0 ); + } + err_Q24[ i ] = sum_error_Q24; + cb_Q8_ptr += LPC_order; + w_Q9_ptr += LPC_order; + } +} diff --git a/components/opus/libopus/silk/NLSF_VQ_weights_laroia.c b/components/opus/libopus/silk/NLSF_VQ_weights_laroia.c new file mode 100644 index 0000000..9873bcd --- /dev/null +++ b/components/opus/libopus/silk/NLSF_VQ_weights_laroia.c @@ -0,0 +1,80 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "define.h" +#include "SigProc_FIX.h" + +/* +R. Laroia, N. Phamdo and N. Farvardin, "Robust and Efficient Quantization of Speech LSP +Parameters Using Structured Vector Quantization", Proc. IEEE Int. Conf. Acoust., Speech, +Signal Processing, pp. 641-644, 1991. +*/ + +/* Laroia low complexity NLSF weights */ +void silk_NLSF_VQ_weights_laroia( + opus_int16 *pNLSFW_Q_OUT, /* O Pointer to input vector weights [D] */ + const opus_int16 *pNLSF_Q15, /* I Pointer to input vector [D] */ + const opus_int D /* I Input vector dimension (even) */ +) +{ + opus_int k; + opus_int32 tmp1_int, tmp2_int; + + celt_assert( D > 0 ); + celt_assert( ( D & 1 ) == 0 ); + + /* First value */ + tmp1_int = silk_max_int( pNLSF_Q15[ 0 ], 1 ); + tmp1_int = silk_DIV32_16( (opus_int32)1 << ( 15 + NLSF_W_Q ), tmp1_int ); + tmp2_int = silk_max_int( pNLSF_Q15[ 1 ] - pNLSF_Q15[ 0 ], 1 ); + tmp2_int = silk_DIV32_16( (opus_int32)1 << ( 15 + NLSF_W_Q ), tmp2_int ); + pNLSFW_Q_OUT[ 0 ] = (opus_int16)silk_min_int( tmp1_int + tmp2_int, silk_int16_MAX ); + silk_assert( pNLSFW_Q_OUT[ 0 ] > 0 ); + + /* Main loop */ + for( k = 1; k < D - 1; k += 2 ) { + tmp1_int = silk_max_int( pNLSF_Q15[ k + 1 ] - pNLSF_Q15[ k ], 1 ); + tmp1_int = silk_DIV32_16( (opus_int32)1 << ( 15 + NLSF_W_Q ), tmp1_int ); + pNLSFW_Q_OUT[ k ] = (opus_int16)silk_min_int( tmp1_int + tmp2_int, silk_int16_MAX ); + silk_assert( pNLSFW_Q_OUT[ k ] > 0 ); + + tmp2_int = silk_max_int( pNLSF_Q15[ k + 2 ] - pNLSF_Q15[ k + 1 ], 1 ); + tmp2_int = silk_DIV32_16( (opus_int32)1 << ( 15 + NLSF_W_Q ), tmp2_int ); + pNLSFW_Q_OUT[ k + 1 ] = (opus_int16)silk_min_int( tmp1_int + tmp2_int, silk_int16_MAX ); + silk_assert( pNLSFW_Q_OUT[ k + 1 ] > 0 ); + } + + /* Last value */ + tmp1_int = silk_max_int( ( 1 << 15 ) - pNLSF_Q15[ D - 1 ], 1 ); + tmp1_int = silk_DIV32_16( (opus_int32)1 << ( 15 + NLSF_W_Q ), tmp1_int ); + pNLSFW_Q_OUT[ D - 1 ] = (opus_int16)silk_min_int( tmp1_int + tmp2_int, silk_int16_MAX ); + silk_assert( pNLSFW_Q_OUT[ D - 1 ] > 0 ); +} diff --git a/components/opus/libopus/silk/NLSF_decode.c b/components/opus/libopus/silk/NLSF_decode.c new file mode 100644 index 0000000..eeb0ba8 --- /dev/null +++ b/components/opus/libopus/silk/NLSF_decode.c @@ -0,0 +1,93 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main.h" + +/* Predictive dequantizer for NLSF residuals */ +static OPUS_INLINE void silk_NLSF_residual_dequant( /* O Returns RD value in Q30 */ + opus_int16 x_Q10[], /* O Output [ order ] */ + const opus_int8 indices[], /* I Quantization indices [ order ] */ + const opus_uint8 pred_coef_Q8[], /* I Backward predictor coefs [ order ] */ + const opus_int quant_step_size_Q16, /* I Quantization step size */ + const opus_int16 order /* I Number of input values */ +) +{ + opus_int i, out_Q10, pred_Q10; + + out_Q10 = 0; + for( i = order-1; i >= 0; i-- ) { + pred_Q10 = silk_RSHIFT( silk_SMULBB( out_Q10, (opus_int16)pred_coef_Q8[ i ] ), 8 ); + out_Q10 = silk_LSHIFT( indices[ i ], 10 ); + if( out_Q10 > 0 ) { + out_Q10 = silk_SUB16( out_Q10, SILK_FIX_CONST( NLSF_QUANT_LEVEL_ADJ, 10 ) ); + } else if( out_Q10 < 0 ) { + out_Q10 = silk_ADD16( out_Q10, SILK_FIX_CONST( NLSF_QUANT_LEVEL_ADJ, 10 ) ); + } + out_Q10 = silk_SMLAWB( pred_Q10, (opus_int32)out_Q10, quant_step_size_Q16 ); + x_Q10[ i ] = out_Q10; + } +} + + +/***********************/ +/* NLSF vector decoder */ +/***********************/ +void silk_NLSF_decode( + opus_int16 *pNLSF_Q15, /* O Quantized NLSF vector [ LPC_ORDER ] */ + opus_int8 *NLSFIndices, /* I Codebook path vector [ LPC_ORDER + 1 ] */ + const silk_NLSF_CB_struct *psNLSF_CB /* I Codebook object */ +) +{ + opus_int i; + opus_uint8 pred_Q8[ MAX_LPC_ORDER ]; + opus_int16 ec_ix[ MAX_LPC_ORDER ]; + opus_int16 res_Q10[ MAX_LPC_ORDER ]; + opus_int32 NLSF_Q15_tmp; + const opus_uint8 *pCB_element; + const opus_int16 *pCB_Wght_Q9; + + /* Unpack entropy table indices and predictor for current CB1 index */ + silk_NLSF_unpack( ec_ix, pred_Q8, psNLSF_CB, NLSFIndices[ 0 ] ); + + /* Predictive residual dequantizer */ + silk_NLSF_residual_dequant( res_Q10, &NLSFIndices[ 1 ], pred_Q8, psNLSF_CB->quantStepSize_Q16, psNLSF_CB->order ); + + /* Apply inverse square-rooted weights to first stage and add to output */ + pCB_element = &psNLSF_CB->CB1_NLSF_Q8[ NLSFIndices[ 0 ] * psNLSF_CB->order ]; + pCB_Wght_Q9 = &psNLSF_CB->CB1_Wght_Q9[ NLSFIndices[ 0 ] * psNLSF_CB->order ]; + for( i = 0; i < psNLSF_CB->order; i++ ) { + NLSF_Q15_tmp = silk_ADD_LSHIFT32( silk_DIV32_16( silk_LSHIFT( (opus_int32)res_Q10[ i ], 14 ), pCB_Wght_Q9[ i ] ), (opus_int16)pCB_element[ i ], 7 ); + pNLSF_Q15[ i ] = (opus_int16)silk_LIMIT( NLSF_Q15_tmp, 0, 32767 ); + } + + /* NLSF stabilization */ + silk_NLSF_stabilize( pNLSF_Q15, psNLSF_CB->deltaMin_Q15, psNLSF_CB->order ); +} diff --git a/components/opus/libopus/silk/NLSF_del_dec_quant.c b/components/opus/libopus/silk/NLSF_del_dec_quant.c new file mode 100644 index 0000000..44a16ac --- /dev/null +++ b/components/opus/libopus/silk/NLSF_del_dec_quant.c @@ -0,0 +1,215 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main.h" + +/* Delayed-decision quantizer for NLSF residuals */ +opus_int32 silk_NLSF_del_dec_quant( /* O Returns RD value in Q25 */ + opus_int8 indices[], /* O Quantization indices [ order ] */ + const opus_int16 x_Q10[], /* I Input [ order ] */ + const opus_int16 w_Q5[], /* I Weights [ order ] */ + const opus_uint8 pred_coef_Q8[], /* I Backward predictor coefs [ order ] */ + const opus_int16 ec_ix[], /* I Indices to entropy coding tables [ order ] */ + const opus_uint8 ec_rates_Q5[], /* I Rates [] */ + const opus_int quant_step_size_Q16, /* I Quantization step size */ + const opus_int16 inv_quant_step_size_Q6, /* I Inverse quantization step size */ + const opus_int32 mu_Q20, /* I R/D tradeoff */ + const opus_int16 order /* I Number of input values */ +) +{ + opus_int i, j, nStates, ind_tmp, ind_min_max, ind_max_min, in_Q10, res_Q10; + opus_int pred_Q10, diff_Q10, rate0_Q5, rate1_Q5; + opus_int16 out0_Q10, out1_Q10; + opus_int32 RD_tmp_Q25, min_Q25, min_max_Q25, max_min_Q25; + opus_int ind_sort[ NLSF_QUANT_DEL_DEC_STATES ]; + opus_int8 ind[ NLSF_QUANT_DEL_DEC_STATES ][ MAX_LPC_ORDER ]; + opus_int16 prev_out_Q10[ 2 * NLSF_QUANT_DEL_DEC_STATES ]; + opus_int32 RD_Q25[ 2 * NLSF_QUANT_DEL_DEC_STATES ]; + opus_int32 RD_min_Q25[ NLSF_QUANT_DEL_DEC_STATES ]; + opus_int32 RD_max_Q25[ NLSF_QUANT_DEL_DEC_STATES ]; + const opus_uint8 *rates_Q5; + + opus_int out0_Q10_table[2 * NLSF_QUANT_MAX_AMPLITUDE_EXT]; + opus_int out1_Q10_table[2 * NLSF_QUANT_MAX_AMPLITUDE_EXT]; + + for (i = -NLSF_QUANT_MAX_AMPLITUDE_EXT; i <= NLSF_QUANT_MAX_AMPLITUDE_EXT-1; i++) + { + out0_Q10 = silk_LSHIFT( i, 10 ); + out1_Q10 = silk_ADD16( out0_Q10, 1024 ); + if( i > 0 ) { + out0_Q10 = silk_SUB16( out0_Q10, SILK_FIX_CONST( NLSF_QUANT_LEVEL_ADJ, 10 ) ); + out1_Q10 = silk_SUB16( out1_Q10, SILK_FIX_CONST( NLSF_QUANT_LEVEL_ADJ, 10 ) ); + } else if( i == 0 ) { + out1_Q10 = silk_SUB16( out1_Q10, SILK_FIX_CONST( NLSF_QUANT_LEVEL_ADJ, 10 ) ); + } else if( i == -1 ) { + out0_Q10 = silk_ADD16( out0_Q10, SILK_FIX_CONST( NLSF_QUANT_LEVEL_ADJ, 10 ) ); + } else { + out0_Q10 = silk_ADD16( out0_Q10, SILK_FIX_CONST( NLSF_QUANT_LEVEL_ADJ, 10 ) ); + out1_Q10 = silk_ADD16( out1_Q10, SILK_FIX_CONST( NLSF_QUANT_LEVEL_ADJ, 10 ) ); + } + out0_Q10_table[ i + NLSF_QUANT_MAX_AMPLITUDE_EXT ] = silk_RSHIFT( silk_SMULBB( out0_Q10, quant_step_size_Q16 ), 16 ); + out1_Q10_table[ i + NLSF_QUANT_MAX_AMPLITUDE_EXT ] = silk_RSHIFT( silk_SMULBB( out1_Q10, quant_step_size_Q16 ), 16 ); + } + + silk_assert( (NLSF_QUANT_DEL_DEC_STATES & (NLSF_QUANT_DEL_DEC_STATES-1)) == 0 ); /* must be power of two */ + + nStates = 1; + RD_Q25[ 0 ] = 0; + prev_out_Q10[ 0 ] = 0; + for( i = order - 1; i >= 0; i-- ) { + rates_Q5 = &ec_rates_Q5[ ec_ix[ i ] ]; + in_Q10 = x_Q10[ i ]; + for( j = 0; j < nStates; j++ ) { + pred_Q10 = silk_RSHIFT( silk_SMULBB( (opus_int16)pred_coef_Q8[ i ], prev_out_Q10[ j ] ), 8 ); + res_Q10 = silk_SUB16( in_Q10, pred_Q10 ); + ind_tmp = silk_RSHIFT( silk_SMULBB( inv_quant_step_size_Q6, res_Q10 ), 16 ); + ind_tmp = silk_LIMIT( ind_tmp, -NLSF_QUANT_MAX_AMPLITUDE_EXT, NLSF_QUANT_MAX_AMPLITUDE_EXT-1 ); + ind[ j ][ i ] = (opus_int8)ind_tmp; + + /* compute outputs for ind_tmp and ind_tmp + 1 */ + out0_Q10 = out0_Q10_table[ ind_tmp + NLSF_QUANT_MAX_AMPLITUDE_EXT ]; + out1_Q10 = out1_Q10_table[ ind_tmp + NLSF_QUANT_MAX_AMPLITUDE_EXT ]; + + out0_Q10 = silk_ADD16( out0_Q10, pred_Q10 ); + out1_Q10 = silk_ADD16( out1_Q10, pred_Q10 ); + prev_out_Q10[ j ] = out0_Q10; + prev_out_Q10[ j + nStates ] = out1_Q10; + + /* compute RD for ind_tmp and ind_tmp + 1 */ + if( ind_tmp + 1 >= NLSF_QUANT_MAX_AMPLITUDE ) { + if( ind_tmp + 1 == NLSF_QUANT_MAX_AMPLITUDE ) { + rate0_Q5 = rates_Q5[ ind_tmp + NLSF_QUANT_MAX_AMPLITUDE ]; + rate1_Q5 = 280; + } else { + rate0_Q5 = silk_SMLABB( 280 - 43 * NLSF_QUANT_MAX_AMPLITUDE, 43, ind_tmp ); + rate1_Q5 = silk_ADD16( rate0_Q5, 43 ); + } + } else if( ind_tmp <= -NLSF_QUANT_MAX_AMPLITUDE ) { + if( ind_tmp == -NLSF_QUANT_MAX_AMPLITUDE ) { + rate0_Q5 = 280; + rate1_Q5 = rates_Q5[ ind_tmp + 1 + NLSF_QUANT_MAX_AMPLITUDE ]; + } else { + rate0_Q5 = silk_SMLABB( 280 - 43 * NLSF_QUANT_MAX_AMPLITUDE, -43, ind_tmp ); + rate1_Q5 = silk_SUB16( rate0_Q5, 43 ); + } + } else { + rate0_Q5 = rates_Q5[ ind_tmp + NLSF_QUANT_MAX_AMPLITUDE ]; + rate1_Q5 = rates_Q5[ ind_tmp + 1 + NLSF_QUANT_MAX_AMPLITUDE ]; + } + RD_tmp_Q25 = RD_Q25[ j ]; + diff_Q10 = silk_SUB16( in_Q10, out0_Q10 ); + RD_Q25[ j ] = silk_SMLABB( silk_MLA( RD_tmp_Q25, silk_SMULBB( diff_Q10, diff_Q10 ), w_Q5[ i ] ), mu_Q20, rate0_Q5 ); + diff_Q10 = silk_SUB16( in_Q10, out1_Q10 ); + RD_Q25[ j + nStates ] = silk_SMLABB( silk_MLA( RD_tmp_Q25, silk_SMULBB( diff_Q10, diff_Q10 ), w_Q5[ i ] ), mu_Q20, rate1_Q5 ); + } + + if( nStates <= NLSF_QUANT_DEL_DEC_STATES/2 ) { + /* double number of states and copy */ + for( j = 0; j < nStates; j++ ) { + ind[ j + nStates ][ i ] = ind[ j ][ i ] + 1; + } + nStates = silk_LSHIFT( nStates, 1 ); + for( j = nStates; j < NLSF_QUANT_DEL_DEC_STATES; j++ ) { + ind[ j ][ i ] = ind[ j - nStates ][ i ]; + } + } else { + /* sort lower and upper half of RD_Q25, pairwise */ + for( j = 0; j < NLSF_QUANT_DEL_DEC_STATES; j++ ) { + if( RD_Q25[ j ] > RD_Q25[ j + NLSF_QUANT_DEL_DEC_STATES ] ) { + RD_max_Q25[ j ] = RD_Q25[ j ]; + RD_min_Q25[ j ] = RD_Q25[ j + NLSF_QUANT_DEL_DEC_STATES ]; + RD_Q25[ j ] = RD_min_Q25[ j ]; + RD_Q25[ j + NLSF_QUANT_DEL_DEC_STATES ] = RD_max_Q25[ j ]; + /* swap prev_out values */ + out0_Q10 = prev_out_Q10[ j ]; + prev_out_Q10[ j ] = prev_out_Q10[ j + NLSF_QUANT_DEL_DEC_STATES ]; + prev_out_Q10[ j + NLSF_QUANT_DEL_DEC_STATES ] = out0_Q10; + ind_sort[ j ] = j + NLSF_QUANT_DEL_DEC_STATES; + } else { + RD_min_Q25[ j ] = RD_Q25[ j ]; + RD_max_Q25[ j ] = RD_Q25[ j + NLSF_QUANT_DEL_DEC_STATES ]; + ind_sort[ j ] = j; + } + } + /* compare the highest RD values of the winning half with the lowest one in the losing half, and copy if necessary */ + /* afterwards ind_sort[] will contain the indices of the NLSF_QUANT_DEL_DEC_STATES winning RD values */ + while( 1 ) { + min_max_Q25 = silk_int32_MAX; + max_min_Q25 = 0; + ind_min_max = 0; + ind_max_min = 0; + for( j = 0; j < NLSF_QUANT_DEL_DEC_STATES; j++ ) { + if( min_max_Q25 > RD_max_Q25[ j ] ) { + min_max_Q25 = RD_max_Q25[ j ]; + ind_min_max = j; + } + if( max_min_Q25 < RD_min_Q25[ j ] ) { + max_min_Q25 = RD_min_Q25[ j ]; + ind_max_min = j; + } + } + if( min_max_Q25 >= max_min_Q25 ) { + break; + } + /* copy ind_min_max to ind_max_min */ + ind_sort[ ind_max_min ] = ind_sort[ ind_min_max ] ^ NLSF_QUANT_DEL_DEC_STATES; + RD_Q25[ ind_max_min ] = RD_Q25[ ind_min_max + NLSF_QUANT_DEL_DEC_STATES ]; + prev_out_Q10[ ind_max_min ] = prev_out_Q10[ ind_min_max + NLSF_QUANT_DEL_DEC_STATES ]; + RD_min_Q25[ ind_max_min ] = 0; + RD_max_Q25[ ind_min_max ] = silk_int32_MAX; + silk_memcpy( ind[ ind_max_min ], ind[ ind_min_max ], MAX_LPC_ORDER * sizeof( opus_int8 ) ); + } + /* increment index if it comes from the upper half */ + for( j = 0; j < NLSF_QUANT_DEL_DEC_STATES; j++ ) { + ind[ j ][ i ] += silk_RSHIFT( ind_sort[ j ], NLSF_QUANT_DEL_DEC_STATES_LOG2 ); + } + } + } + + /* last sample: find winner, copy indices and return RD value */ + ind_tmp = 0; + min_Q25 = silk_int32_MAX; + for( j = 0; j < 2 * NLSF_QUANT_DEL_DEC_STATES; j++ ) { + if( min_Q25 > RD_Q25[ j ] ) { + min_Q25 = RD_Q25[ j ]; + ind_tmp = j; + } + } + for( j = 0; j < order; j++ ) { + indices[ j ] = ind[ ind_tmp & ( NLSF_QUANT_DEL_DEC_STATES - 1 ) ][ j ]; + silk_assert( indices[ j ] >= -NLSF_QUANT_MAX_AMPLITUDE_EXT ); + silk_assert( indices[ j ] <= NLSF_QUANT_MAX_AMPLITUDE_EXT ); + } + indices[ 0 ] += silk_RSHIFT( ind_tmp, NLSF_QUANT_DEL_DEC_STATES_LOG2 ); + silk_assert( indices[ 0 ] <= NLSF_QUANT_MAX_AMPLITUDE_EXT ); + silk_assert( min_Q25 >= 0 ); + return min_Q25; +} diff --git a/components/opus/libopus/silk/NLSF_encode.c b/components/opus/libopus/silk/NLSF_encode.c new file mode 100644 index 0000000..01ac7db --- /dev/null +++ b/components/opus/libopus/silk/NLSF_encode.c @@ -0,0 +1,124 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main.h" +#include "stack_alloc.h" + +/***********************/ +/* NLSF vector encoder */ +/***********************/ +opus_int32 silk_NLSF_encode( /* O Returns RD value in Q25 */ + opus_int8 *NLSFIndices, /* I Codebook path vector [ LPC_ORDER + 1 ] */ + opus_int16 *pNLSF_Q15, /* I/O (Un)quantized NLSF vector [ LPC_ORDER ] */ + const silk_NLSF_CB_struct *psNLSF_CB, /* I Codebook object */ + const opus_int16 *pW_Q2, /* I NLSF weight vector [ LPC_ORDER ] */ + const opus_int NLSF_mu_Q20, /* I Rate weight for the RD optimization */ + const opus_int nSurvivors, /* I Max survivors after first stage */ + const opus_int signalType /* I Signal type: 0/1/2 */ +) +{ + opus_int i, s, ind1, bestIndex, prob_Q8, bits_q7; + opus_int32 W_tmp_Q9, ret; + VARDECL( opus_int32, err_Q24 ); + VARDECL( opus_int32, RD_Q25 ); + VARDECL( opus_int, tempIndices1 ); + VARDECL( opus_int8, tempIndices2 ); + opus_int16 res_Q10[ MAX_LPC_ORDER ]; + opus_int16 NLSF_tmp_Q15[ MAX_LPC_ORDER ]; + opus_int16 W_adj_Q5[ MAX_LPC_ORDER ]; + opus_uint8 pred_Q8[ MAX_LPC_ORDER ]; + opus_int16 ec_ix[ MAX_LPC_ORDER ]; + const opus_uint8 *pCB_element, *iCDF_ptr; + const opus_int16 *pCB_Wght_Q9; + SAVE_STACK; + + celt_assert( signalType >= 0 && signalType <= 2 ); + silk_assert( NLSF_mu_Q20 <= 32767 && NLSF_mu_Q20 >= 0 ); + + /* NLSF stabilization */ + silk_NLSF_stabilize( pNLSF_Q15, psNLSF_CB->deltaMin_Q15, psNLSF_CB->order ); + + /* First stage: VQ */ + ALLOC( err_Q24, psNLSF_CB->nVectors, opus_int32 ); + silk_NLSF_VQ( err_Q24, pNLSF_Q15, psNLSF_CB->CB1_NLSF_Q8, psNLSF_CB->CB1_Wght_Q9, psNLSF_CB->nVectors, psNLSF_CB->order ); + + /* Sort the quantization errors */ + ALLOC( tempIndices1, nSurvivors, opus_int ); + silk_insertion_sort_increasing( err_Q24, tempIndices1, psNLSF_CB->nVectors, nSurvivors ); + + ALLOC( RD_Q25, nSurvivors, opus_int32 ); + ALLOC( tempIndices2, nSurvivors * MAX_LPC_ORDER, opus_int8 ); + + /* Loop over survivors */ + for( s = 0; s < nSurvivors; s++ ) { + ind1 = tempIndices1[ s ]; + + /* Residual after first stage */ + pCB_element = &psNLSF_CB->CB1_NLSF_Q8[ ind1 * psNLSF_CB->order ]; + pCB_Wght_Q9 = &psNLSF_CB->CB1_Wght_Q9[ ind1 * psNLSF_CB->order ]; + for( i = 0; i < psNLSF_CB->order; i++ ) { + NLSF_tmp_Q15[ i ] = silk_LSHIFT16( (opus_int16)pCB_element[ i ], 7 ); + W_tmp_Q9 = pCB_Wght_Q9[ i ]; + res_Q10[ i ] = (opus_int16)silk_RSHIFT( silk_SMULBB( pNLSF_Q15[ i ] - NLSF_tmp_Q15[ i ], W_tmp_Q9 ), 14 ); + W_adj_Q5[ i ] = silk_DIV32_varQ( (opus_int32)pW_Q2[ i ], silk_SMULBB( W_tmp_Q9, W_tmp_Q9 ), 21 ); + } + + /* Unpack entropy table indices and predictor for current CB1 index */ + silk_NLSF_unpack( ec_ix, pred_Q8, psNLSF_CB, ind1 ); + + /* Trellis quantizer */ + RD_Q25[ s ] = silk_NLSF_del_dec_quant( &tempIndices2[ s * MAX_LPC_ORDER ], res_Q10, W_adj_Q5, pred_Q8, ec_ix, + psNLSF_CB->ec_Rates_Q5, psNLSF_CB->quantStepSize_Q16, psNLSF_CB->invQuantStepSize_Q6, NLSF_mu_Q20, psNLSF_CB->order ); + + /* Add rate for first stage */ + iCDF_ptr = &psNLSF_CB->CB1_iCDF[ ( signalType >> 1 ) * psNLSF_CB->nVectors ]; + if( ind1 == 0 ) { + prob_Q8 = 256 - iCDF_ptr[ ind1 ]; + } else { + prob_Q8 = iCDF_ptr[ ind1 - 1 ] - iCDF_ptr[ ind1 ]; + } + bits_q7 = ( 8 << 7 ) - silk_lin2log( prob_Q8 ); + RD_Q25[ s ] = silk_SMLABB( RD_Q25[ s ], bits_q7, silk_RSHIFT( NLSF_mu_Q20, 2 ) ); + } + + /* Find the lowest rate-distortion error */ + silk_insertion_sort_increasing( RD_Q25, &bestIndex, nSurvivors, 1 ); + + NLSFIndices[ 0 ] = (opus_int8)tempIndices1[ bestIndex ]; + silk_memcpy( &NLSFIndices[ 1 ], &tempIndices2[ bestIndex * MAX_LPC_ORDER ], psNLSF_CB->order * sizeof( opus_int8 ) ); + + /* Decode */ + silk_NLSF_decode( pNLSF_Q15, NLSFIndices, psNLSF_CB ); + + ret = RD_Q25[ 0 ]; + RESTORE_STACK; + return ret; +} diff --git a/components/opus/libopus/silk/NLSF_stabilize.c b/components/opus/libopus/silk/NLSF_stabilize.c new file mode 100644 index 0000000..8f3426b --- /dev/null +++ b/components/opus/libopus/silk/NLSF_stabilize.c @@ -0,0 +1,142 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +/* NLSF stabilizer: */ +/* */ +/* - Moves NLSFs further apart if they are too close */ +/* - Moves NLSFs away from borders if they are too close */ +/* - High effort to achieve a modification with minimum */ +/* Euclidean distance to input vector */ +/* - Output are sorted NLSF coefficients */ +/* */ + +#include "SigProc_FIX.h" + +/* Constant Definitions */ +#define MAX_LOOPS 20 + +/* NLSF stabilizer, for a single input data vector */ +void silk_NLSF_stabilize( + opus_int16 *NLSF_Q15, /* I/O Unstable/stabilized normalized LSF vector in Q15 [L] */ + const opus_int16 *NDeltaMin_Q15, /* I Min distance vector, NDeltaMin_Q15[L] must be >= 1 [L+1] */ + const opus_int L /* I Number of NLSF parameters in the input vector */ +) +{ + opus_int i, I=0, k, loops; + opus_int16 center_freq_Q15; + opus_int32 diff_Q15, min_diff_Q15, min_center_Q15, max_center_Q15; + + /* This is necessary to ensure an output within range of a opus_int16 */ + silk_assert( NDeltaMin_Q15[L] >= 1 ); + + for( loops = 0; loops < MAX_LOOPS; loops++ ) { + /**************************/ + /* Find smallest distance */ + /**************************/ + /* First element */ + min_diff_Q15 = NLSF_Q15[0] - NDeltaMin_Q15[0]; + I = 0; + /* Middle elements */ + for( i = 1; i <= L-1; i++ ) { + diff_Q15 = NLSF_Q15[i] - ( NLSF_Q15[i-1] + NDeltaMin_Q15[i] ); + if( diff_Q15 < min_diff_Q15 ) { + min_diff_Q15 = diff_Q15; + I = i; + } + } + /* Last element */ + diff_Q15 = ( 1 << 15 ) - ( NLSF_Q15[L-1] + NDeltaMin_Q15[L] ); + if( diff_Q15 < min_diff_Q15 ) { + min_diff_Q15 = diff_Q15; + I = L; + } + + /***************************************************/ + /* Now check if the smallest distance non-negative */ + /***************************************************/ + if( min_diff_Q15 >= 0 ) { + return; + } + + if( I == 0 ) { + /* Move away from lower limit */ + NLSF_Q15[0] = NDeltaMin_Q15[0]; + + } else if( I == L) { + /* Move away from higher limit */ + NLSF_Q15[L-1] = ( 1 << 15 ) - NDeltaMin_Q15[L]; + + } else { + /* Find the lower extreme for the location of the current center frequency */ + min_center_Q15 = 0; + for( k = 0; k < I; k++ ) { + min_center_Q15 += NDeltaMin_Q15[k]; + } + min_center_Q15 += silk_RSHIFT( NDeltaMin_Q15[I], 1 ); + + /* Find the upper extreme for the location of the current center frequency */ + max_center_Q15 = 1 << 15; + for( k = L; k > I; k-- ) { + max_center_Q15 -= NDeltaMin_Q15[k]; + } + max_center_Q15 -= silk_RSHIFT( NDeltaMin_Q15[I], 1 ); + + /* Move apart, sorted by value, keeping the same center frequency */ + center_freq_Q15 = (opus_int16)silk_LIMIT_32( silk_RSHIFT_ROUND( (opus_int32)NLSF_Q15[I-1] + (opus_int32)NLSF_Q15[I], 1 ), + min_center_Q15, max_center_Q15 ); + NLSF_Q15[I-1] = center_freq_Q15 - silk_RSHIFT( NDeltaMin_Q15[I], 1 ); + NLSF_Q15[I] = NLSF_Q15[I-1] + NDeltaMin_Q15[I]; + } + } + + /* Safe and simple fall back method, which is less ideal than the above */ + if( loops == MAX_LOOPS ) + { + /* Insertion sort (fast for already almost sorted arrays): */ + /* Best case: O(n) for an already sorted array */ + /* Worst case: O(n^2) for an inversely sorted array */ + silk_insertion_sort_increasing_all_values_int16( &NLSF_Q15[0], L ); + + /* First NLSF should be no less than NDeltaMin[0] */ + NLSF_Q15[0] = silk_max_int( NLSF_Q15[0], NDeltaMin_Q15[0] ); + + /* Keep delta_min distance between the NLSFs */ + for( i = 1; i < L; i++ ) + NLSF_Q15[i] = silk_max_int( NLSF_Q15[i], silk_ADD_SAT16( NLSF_Q15[i-1], NDeltaMin_Q15[i] ) ); + + /* Last NLSF should be no higher than 1 - NDeltaMin[L] */ + NLSF_Q15[L-1] = silk_min_int( NLSF_Q15[L-1], (1<<15) - NDeltaMin_Q15[L] ); + + /* Keep NDeltaMin distance between the NLSFs */ + for( i = L-2; i >= 0; i-- ) + NLSF_Q15[i] = silk_min_int( NLSF_Q15[i], NLSF_Q15[i+1] - NDeltaMin_Q15[i+1] ); + } +} diff --git a/components/opus/libopus/silk/NLSF_unpack.c b/components/opus/libopus/silk/NLSF_unpack.c new file mode 100644 index 0000000..17bd23f --- /dev/null +++ b/components/opus/libopus/silk/NLSF_unpack.c @@ -0,0 +1,55 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main.h" + +/* Unpack predictor values and indices for entropy coding tables */ +void silk_NLSF_unpack( + opus_int16 ec_ix[], /* O Indices to entropy tables [ LPC_ORDER ] */ + opus_uint8 pred_Q8[], /* O LSF predictor [ LPC_ORDER ] */ + const silk_NLSF_CB_struct *psNLSF_CB, /* I Codebook object */ + const opus_int CB1_index /* I Index of vector in first LSF codebook */ +) +{ + opus_int i; + opus_uint8 entry; + const opus_uint8 *ec_sel_ptr; + + ec_sel_ptr = &psNLSF_CB->ec_sel[ CB1_index * psNLSF_CB->order / 2 ]; + for( i = 0; i < psNLSF_CB->order; i += 2 ) { + entry = *ec_sel_ptr++; + ec_ix [ i ] = silk_SMULBB( silk_RSHIFT( entry, 1 ) & 7, 2 * NLSF_QUANT_MAX_AMPLITUDE + 1 ); + pred_Q8[ i ] = psNLSF_CB->pred_Q8[ i + ( entry & 1 ) * ( psNLSF_CB->order - 1 ) ]; + ec_ix [ i + 1 ] = silk_SMULBB( silk_RSHIFT( entry, 5 ) & 7, 2 * NLSF_QUANT_MAX_AMPLITUDE + 1 ); + pred_Q8[ i + 1 ] = psNLSF_CB->pred_Q8[ i + ( silk_RSHIFT( entry, 4 ) & 1 ) * ( psNLSF_CB->order - 1 ) + 1 ]; + } +} + diff --git a/components/opus/libopus/silk/NSQ.c b/components/opus/libopus/silk/NSQ.c new file mode 100644 index 0000000..1d64d8e --- /dev/null +++ b/components/opus/libopus/silk/NSQ.c @@ -0,0 +1,437 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main.h" +#include "stack_alloc.h" +#include "NSQ.h" + + +static OPUS_INLINE void silk_nsq_scale_states( + const silk_encoder_state *psEncC, /* I Encoder State */ + silk_nsq_state *NSQ, /* I/O NSQ state */ + const opus_int16 x16[], /* I input */ + opus_int32 x_sc_Q10[], /* O input scaled with 1/Gain */ + const opus_int16 sLTP[], /* I re-whitened LTP state in Q0 */ + opus_int32 sLTP_Q15[], /* O LTP state matching scaled input */ + opus_int subfr, /* I subframe number */ + const opus_int LTP_scale_Q14, /* I */ + const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I */ + const opus_int pitchL[ MAX_NB_SUBFR ], /* I Pitch lag */ + const opus_int signal_type /* I Signal type */ +); + +#if !defined(OPUS_X86_MAY_HAVE_SSE4_1) +static OPUS_INLINE void silk_noise_shape_quantizer( + silk_nsq_state *NSQ, /* I/O NSQ state */ + opus_int signalType, /* I Signal type */ + const opus_int32 x_sc_Q10[], /* I */ + opus_int8 pulses[], /* O */ + opus_int16 xq[], /* O */ + opus_int32 sLTP_Q15[], /* I/O LTP state */ + const opus_int16 a_Q12[], /* I Short term prediction coefs */ + const opus_int16 b_Q14[], /* I Long term prediction coefs */ + const opus_int16 AR_shp_Q13[], /* I Noise shaping AR coefs */ + opus_int lag, /* I Pitch lag */ + opus_int32 HarmShapeFIRPacked_Q14, /* I */ + opus_int Tilt_Q14, /* I Spectral tilt */ + opus_int32 LF_shp_Q14, /* I */ + opus_int32 Gain_Q16, /* I */ + opus_int Lambda_Q10, /* I */ + opus_int offset_Q10, /* I */ + opus_int length, /* I Input length */ + opus_int shapingLPCOrder, /* I Noise shaping AR filter order */ + opus_int predictLPCOrder, /* I Prediction filter order */ + int arch /* I Architecture */ +); +#endif + +void silk_NSQ_c +( + const silk_encoder_state *psEncC, /* I Encoder State */ + silk_nsq_state *NSQ, /* I/O NSQ state */ + SideInfoIndices *psIndices, /* I/O Quantization Indices */ + const opus_int16 x16[], /* I Input */ + opus_int8 pulses[], /* O Quantized pulse signal */ + const opus_int16 PredCoef_Q12[ 2 * MAX_LPC_ORDER ], /* I Short term prediction coefs */ + const opus_int16 LTPCoef_Q14[ LTP_ORDER * MAX_NB_SUBFR ], /* I Long term prediction coefs */ + const opus_int16 AR_Q13[ MAX_NB_SUBFR * MAX_SHAPE_LPC_ORDER ], /* I Noise shaping coefs */ + const opus_int HarmShapeGain_Q14[ MAX_NB_SUBFR ], /* I Long term shaping coefs */ + const opus_int Tilt_Q14[ MAX_NB_SUBFR ], /* I Spectral tilt */ + const opus_int32 LF_shp_Q14[ MAX_NB_SUBFR ], /* I Low frequency shaping coefs */ + const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I Quantization step sizes */ + const opus_int pitchL[ MAX_NB_SUBFR ], /* I Pitch lags */ + const opus_int Lambda_Q10, /* I Rate/distortion tradeoff */ + const opus_int LTP_scale_Q14 /* I LTP state scaling */ +) +{ + opus_int k, lag, start_idx, LSF_interpolation_flag; + const opus_int16 *A_Q12, *B_Q14, *AR_shp_Q13; + opus_int16 *pxq; + VARDECL( opus_int32, sLTP_Q15 ); + VARDECL( opus_int16, sLTP ); + opus_int32 HarmShapeFIRPacked_Q14; + opus_int offset_Q10; + VARDECL( opus_int32, x_sc_Q10 ); + SAVE_STACK; + + NSQ->rand_seed = psIndices->Seed; + + /* Set unvoiced lag to the previous one, overwrite later for voiced */ + lag = NSQ->lagPrev; + + silk_assert( NSQ->prev_gain_Q16 != 0 ); + + offset_Q10 = silk_Quantization_Offsets_Q10[ psIndices->signalType >> 1 ][ psIndices->quantOffsetType ]; + + if( psIndices->NLSFInterpCoef_Q2 == 4 ) { + LSF_interpolation_flag = 0; + } else { + LSF_interpolation_flag = 1; + } + + ALLOC( sLTP_Q15, psEncC->ltp_mem_length + psEncC->frame_length, opus_int32 ); + ALLOC( sLTP, psEncC->ltp_mem_length + psEncC->frame_length, opus_int16 ); + ALLOC( x_sc_Q10, psEncC->subfr_length, opus_int32 ); + /* Set up pointers to start of sub frame */ + NSQ->sLTP_shp_buf_idx = psEncC->ltp_mem_length; + NSQ->sLTP_buf_idx = psEncC->ltp_mem_length; + pxq = &NSQ->xq[ psEncC->ltp_mem_length ]; + for( k = 0; k < psEncC->nb_subfr; k++ ) { + A_Q12 = &PredCoef_Q12[ (( k >> 1 ) | ( 1 - LSF_interpolation_flag )) * MAX_LPC_ORDER ]; + B_Q14 = <PCoef_Q14[ k * LTP_ORDER ]; + AR_shp_Q13 = &AR_Q13[ k * MAX_SHAPE_LPC_ORDER ]; + + /* Noise shape parameters */ + silk_assert( HarmShapeGain_Q14[ k ] >= 0 ); + HarmShapeFIRPacked_Q14 = silk_RSHIFT( HarmShapeGain_Q14[ k ], 2 ); + HarmShapeFIRPacked_Q14 |= silk_LSHIFT( (opus_int32)silk_RSHIFT( HarmShapeGain_Q14[ k ], 1 ), 16 ); + + NSQ->rewhite_flag = 0; + if( psIndices->signalType == TYPE_VOICED ) { + /* Voiced */ + lag = pitchL[ k ]; + + /* Re-whitening */ + if( ( k & ( 3 - silk_LSHIFT( LSF_interpolation_flag, 1 ) ) ) == 0 ) { + /* Rewhiten with new A coefs */ + start_idx = psEncC->ltp_mem_length - lag - psEncC->predictLPCOrder - LTP_ORDER / 2; + celt_assert( start_idx > 0 ); + + silk_LPC_analysis_filter( &sLTP[ start_idx ], &NSQ->xq[ start_idx + k * psEncC->subfr_length ], + A_Q12, psEncC->ltp_mem_length - start_idx, psEncC->predictLPCOrder, psEncC->arch ); + + NSQ->rewhite_flag = 1; + NSQ->sLTP_buf_idx = psEncC->ltp_mem_length; + } + } + + silk_nsq_scale_states( psEncC, NSQ, x16, x_sc_Q10, sLTP, sLTP_Q15, k, LTP_scale_Q14, Gains_Q16, pitchL, psIndices->signalType ); + + silk_noise_shape_quantizer( NSQ, psIndices->signalType, x_sc_Q10, pulses, pxq, sLTP_Q15, A_Q12, B_Q14, + AR_shp_Q13, lag, HarmShapeFIRPacked_Q14, Tilt_Q14[ k ], LF_shp_Q14[ k ], Gains_Q16[ k ], Lambda_Q10, + offset_Q10, psEncC->subfr_length, psEncC->shapingLPCOrder, psEncC->predictLPCOrder, psEncC->arch ); + + x16 += psEncC->subfr_length; + pulses += psEncC->subfr_length; + pxq += psEncC->subfr_length; + } + + /* Update lagPrev for next frame */ + NSQ->lagPrev = pitchL[ psEncC->nb_subfr - 1 ]; + + /* Save quantized speech and noise shaping signals */ + silk_memmove( NSQ->xq, &NSQ->xq[ psEncC->frame_length ], psEncC->ltp_mem_length * sizeof( opus_int16 ) ); + silk_memmove( NSQ->sLTP_shp_Q14, &NSQ->sLTP_shp_Q14[ psEncC->frame_length ], psEncC->ltp_mem_length * sizeof( opus_int32 ) ); + RESTORE_STACK; +} + +/***********************************/ +/* silk_noise_shape_quantizer */ +/***********************************/ + +#if !defined(OPUS_X86_MAY_HAVE_SSE4_1) +static OPUS_INLINE +#endif +void silk_noise_shape_quantizer( + silk_nsq_state *NSQ, /* I/O NSQ state */ + opus_int signalType, /* I Signal type */ + const opus_int32 x_sc_Q10[], /* I */ + opus_int8 pulses[], /* O */ + opus_int16 xq[], /* O */ + opus_int32 sLTP_Q15[], /* I/O LTP state */ + const opus_int16 a_Q12[], /* I Short term prediction coefs */ + const opus_int16 b_Q14[], /* I Long term prediction coefs */ + const opus_int16 AR_shp_Q13[], /* I Noise shaping AR coefs */ + opus_int lag, /* I Pitch lag */ + opus_int32 HarmShapeFIRPacked_Q14, /* I */ + opus_int Tilt_Q14, /* I Spectral tilt */ + opus_int32 LF_shp_Q14, /* I */ + opus_int32 Gain_Q16, /* I */ + opus_int Lambda_Q10, /* I */ + opus_int offset_Q10, /* I */ + opus_int length, /* I Input length */ + opus_int shapingLPCOrder, /* I Noise shaping AR filter order */ + opus_int predictLPCOrder, /* I Prediction filter order */ + int arch /* I Architecture */ +) +{ + opus_int i; + opus_int32 LTP_pred_Q13, LPC_pred_Q10, n_AR_Q12, n_LTP_Q13; + opus_int32 n_LF_Q12, r_Q10, rr_Q10, q1_Q0, q1_Q10, q2_Q10, rd1_Q20, rd2_Q20; + opus_int32 exc_Q14, LPC_exc_Q14, xq_Q14, Gain_Q10; + opus_int32 tmp1, tmp2, sLF_AR_shp_Q14; + opus_int32 *psLPC_Q14, *shp_lag_ptr, *pred_lag_ptr; +#ifdef silk_short_prediction_create_arch_coef + opus_int32 a_Q12_arch[MAX_LPC_ORDER]; +#endif + + shp_lag_ptr = &NSQ->sLTP_shp_Q14[ NSQ->sLTP_shp_buf_idx - lag + HARM_SHAPE_FIR_TAPS / 2 ]; + pred_lag_ptr = &sLTP_Q15[ NSQ->sLTP_buf_idx - lag + LTP_ORDER / 2 ]; + Gain_Q10 = silk_RSHIFT( Gain_Q16, 6 ); + + /* Set up short term AR state */ + psLPC_Q14 = &NSQ->sLPC_Q14[ NSQ_LPC_BUF_LENGTH - 1 ]; + +#ifdef silk_short_prediction_create_arch_coef + silk_short_prediction_create_arch_coef(a_Q12_arch, a_Q12, predictLPCOrder); +#endif + + for( i = 0; i < length; i++ ) { + /* Generate dither */ + NSQ->rand_seed = silk_RAND( NSQ->rand_seed ); + + /* Short-term prediction */ + LPC_pred_Q10 = silk_noise_shape_quantizer_short_prediction(psLPC_Q14, a_Q12, a_Q12_arch, predictLPCOrder, arch); + + /* Long-term prediction */ + if( signalType == TYPE_VOICED ) { + /* Unrolled loop */ + /* Avoids introducing a bias because silk_SMLAWB() always rounds to -inf */ + LTP_pred_Q13 = 2; + LTP_pred_Q13 = silk_SMLAWB( LTP_pred_Q13, pred_lag_ptr[ 0 ], b_Q14[ 0 ] ); + LTP_pred_Q13 = silk_SMLAWB( LTP_pred_Q13, pred_lag_ptr[ -1 ], b_Q14[ 1 ] ); + LTP_pred_Q13 = silk_SMLAWB( LTP_pred_Q13, pred_lag_ptr[ -2 ], b_Q14[ 2 ] ); + LTP_pred_Q13 = silk_SMLAWB( LTP_pred_Q13, pred_lag_ptr[ -3 ], b_Q14[ 3 ] ); + LTP_pred_Q13 = silk_SMLAWB( LTP_pred_Q13, pred_lag_ptr[ -4 ], b_Q14[ 4 ] ); + pred_lag_ptr++; + } else { + LTP_pred_Q13 = 0; + } + + /* Noise shape feedback */ + celt_assert( ( shapingLPCOrder & 1 ) == 0 ); /* check that order is even */ + n_AR_Q12 = silk_NSQ_noise_shape_feedback_loop(&NSQ->sDiff_shp_Q14, NSQ->sAR2_Q14, AR_shp_Q13, shapingLPCOrder, arch); + + n_AR_Q12 = silk_SMLAWB( n_AR_Q12, NSQ->sLF_AR_shp_Q14, Tilt_Q14 ); + + n_LF_Q12 = silk_SMULWB( NSQ->sLTP_shp_Q14[ NSQ->sLTP_shp_buf_idx - 1 ], LF_shp_Q14 ); + n_LF_Q12 = silk_SMLAWT( n_LF_Q12, NSQ->sLF_AR_shp_Q14, LF_shp_Q14 ); + + celt_assert( lag > 0 || signalType != TYPE_VOICED ); + + /* Combine prediction and noise shaping signals */ + tmp1 = silk_SUB32( silk_LSHIFT32( LPC_pred_Q10, 2 ), n_AR_Q12 ); /* Q12 */ + tmp1 = silk_SUB32( tmp1, n_LF_Q12 ); /* Q12 */ + if( lag > 0 ) { + /* Symmetric, packed FIR coefficients */ + n_LTP_Q13 = silk_SMULWB( silk_ADD32( shp_lag_ptr[ 0 ], shp_lag_ptr[ -2 ] ), HarmShapeFIRPacked_Q14 ); + n_LTP_Q13 = silk_SMLAWT( n_LTP_Q13, shp_lag_ptr[ -1 ], HarmShapeFIRPacked_Q14 ); + n_LTP_Q13 = silk_LSHIFT( n_LTP_Q13, 1 ); + shp_lag_ptr++; + + tmp2 = silk_SUB32( LTP_pred_Q13, n_LTP_Q13 ); /* Q13 */ + tmp1 = silk_ADD_LSHIFT32( tmp2, tmp1, 1 ); /* Q13 */ + tmp1 = silk_RSHIFT_ROUND( tmp1, 3 ); /* Q10 */ + } else { + tmp1 = silk_RSHIFT_ROUND( tmp1, 2 ); /* Q10 */ + } + + r_Q10 = silk_SUB32( x_sc_Q10[ i ], tmp1 ); /* residual error Q10 */ + + /* Flip sign depending on dither */ + if( NSQ->rand_seed < 0 ) { + r_Q10 = -r_Q10; + } + r_Q10 = silk_LIMIT_32( r_Q10, -(31 << 10), 30 << 10 ); + + /* Find two quantization level candidates and measure their rate-distortion */ + q1_Q10 = silk_SUB32( r_Q10, offset_Q10 ); + q1_Q0 = silk_RSHIFT( q1_Q10, 10 ); + if (Lambda_Q10 > 2048) { + /* For aggressive RDO, the bias becomes more than one pulse. */ + int rdo_offset = Lambda_Q10/2 - 512; + if (q1_Q10 > rdo_offset) { + q1_Q0 = silk_RSHIFT( q1_Q10 - rdo_offset, 10 ); + } else if (q1_Q10 < -rdo_offset) { + q1_Q0 = silk_RSHIFT( q1_Q10 + rdo_offset, 10 ); + } else if (q1_Q10 < 0) { + q1_Q0 = -1; + } else { + q1_Q0 = 0; + } + } + if( q1_Q0 > 0 ) { + q1_Q10 = silk_SUB32( silk_LSHIFT( q1_Q0, 10 ), QUANT_LEVEL_ADJUST_Q10 ); + q1_Q10 = silk_ADD32( q1_Q10, offset_Q10 ); + q2_Q10 = silk_ADD32( q1_Q10, 1024 ); + rd1_Q20 = silk_SMULBB( q1_Q10, Lambda_Q10 ); + rd2_Q20 = silk_SMULBB( q2_Q10, Lambda_Q10 ); + } else if( q1_Q0 == 0 ) { + q1_Q10 = offset_Q10; + q2_Q10 = silk_ADD32( q1_Q10, 1024 - QUANT_LEVEL_ADJUST_Q10 ); + rd1_Q20 = silk_SMULBB( q1_Q10, Lambda_Q10 ); + rd2_Q20 = silk_SMULBB( q2_Q10, Lambda_Q10 ); + } else if( q1_Q0 == -1 ) { + q2_Q10 = offset_Q10; + q1_Q10 = silk_SUB32( q2_Q10, 1024 - QUANT_LEVEL_ADJUST_Q10 ); + rd1_Q20 = silk_SMULBB( -q1_Q10, Lambda_Q10 ); + rd2_Q20 = silk_SMULBB( q2_Q10, Lambda_Q10 ); + } else { /* Q1_Q0 < -1 */ + q1_Q10 = silk_ADD32( silk_LSHIFT( q1_Q0, 10 ), QUANT_LEVEL_ADJUST_Q10 ); + q1_Q10 = silk_ADD32( q1_Q10, offset_Q10 ); + q2_Q10 = silk_ADD32( q1_Q10, 1024 ); + rd1_Q20 = silk_SMULBB( -q1_Q10, Lambda_Q10 ); + rd2_Q20 = silk_SMULBB( -q2_Q10, Lambda_Q10 ); + } + rr_Q10 = silk_SUB32( r_Q10, q1_Q10 ); + rd1_Q20 = silk_SMLABB( rd1_Q20, rr_Q10, rr_Q10 ); + rr_Q10 = silk_SUB32( r_Q10, q2_Q10 ); + rd2_Q20 = silk_SMLABB( rd2_Q20, rr_Q10, rr_Q10 ); + + if( rd2_Q20 < rd1_Q20 ) { + q1_Q10 = q2_Q10; + } + + pulses[ i ] = (opus_int8)silk_RSHIFT_ROUND( q1_Q10, 10 ); + + /* Excitation */ + exc_Q14 = silk_LSHIFT( q1_Q10, 4 ); + if ( NSQ->rand_seed < 0 ) { + exc_Q14 = -exc_Q14; + } + + /* Add predictions */ + LPC_exc_Q14 = silk_ADD_LSHIFT32( exc_Q14, LTP_pred_Q13, 1 ); + xq_Q14 = silk_ADD_LSHIFT32( LPC_exc_Q14, LPC_pred_Q10, 4 ); + + /* Scale XQ back to normal level before saving */ + xq[ i ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( silk_SMULWW( xq_Q14, Gain_Q10 ), 8 ) ); + + /* Update states */ + psLPC_Q14++; + *psLPC_Q14 = xq_Q14; + NSQ->sDiff_shp_Q14 = silk_SUB_LSHIFT32( xq_Q14, x_sc_Q10[ i ], 4 ); + sLF_AR_shp_Q14 = silk_SUB_LSHIFT32( NSQ->sDiff_shp_Q14, n_AR_Q12, 2 ); + NSQ->sLF_AR_shp_Q14 = sLF_AR_shp_Q14; + + NSQ->sLTP_shp_Q14[ NSQ->sLTP_shp_buf_idx ] = silk_SUB_LSHIFT32( sLF_AR_shp_Q14, n_LF_Q12, 2 ); + sLTP_Q15[ NSQ->sLTP_buf_idx ] = silk_LSHIFT( LPC_exc_Q14, 1 ); + NSQ->sLTP_shp_buf_idx++; + NSQ->sLTP_buf_idx++; + + /* Make dither dependent on quantized signal */ + NSQ->rand_seed = silk_ADD32_ovflw( NSQ->rand_seed, pulses[ i ] ); + } + + /* Update LPC synth buffer */ + silk_memcpy( NSQ->sLPC_Q14, &NSQ->sLPC_Q14[ length ], NSQ_LPC_BUF_LENGTH * sizeof( opus_int32 ) ); +} + +static OPUS_INLINE void silk_nsq_scale_states( + const silk_encoder_state *psEncC, /* I Encoder State */ + silk_nsq_state *NSQ, /* I/O NSQ state */ + const opus_int16 x16[], /* I input */ + opus_int32 x_sc_Q10[], /* O input scaled with 1/Gain */ + const opus_int16 sLTP[], /* I re-whitened LTP state in Q0 */ + opus_int32 sLTP_Q15[], /* O LTP state matching scaled input */ + opus_int subfr, /* I subframe number */ + const opus_int LTP_scale_Q14, /* I */ + const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I */ + const opus_int pitchL[ MAX_NB_SUBFR ], /* I Pitch lag */ + const opus_int signal_type /* I Signal type */ +) +{ + opus_int i, lag; + opus_int32 gain_adj_Q16, inv_gain_Q31, inv_gain_Q26; + + lag = pitchL[ subfr ]; + inv_gain_Q31 = silk_INVERSE32_varQ( silk_max( Gains_Q16[ subfr ], 1 ), 47 ); + silk_assert( inv_gain_Q31 != 0 ); + + /* Scale input */ + inv_gain_Q26 = silk_RSHIFT_ROUND( inv_gain_Q31, 5 ); + for( i = 0; i < psEncC->subfr_length; i++ ) { + x_sc_Q10[ i ] = silk_SMULWW( x16[ i ], inv_gain_Q26 ); + } + + /* After rewhitening the LTP state is un-scaled, so scale with inv_gain_Q16 */ + if( NSQ->rewhite_flag ) { + if( subfr == 0 ) { + /* Do LTP downscaling */ + inv_gain_Q31 = silk_LSHIFT( silk_SMULWB( inv_gain_Q31, LTP_scale_Q14 ), 2 ); + } + for( i = NSQ->sLTP_buf_idx - lag - LTP_ORDER / 2; i < NSQ->sLTP_buf_idx; i++ ) { + silk_assert( i < MAX_FRAME_LENGTH ); + sLTP_Q15[ i ] = silk_SMULWB( inv_gain_Q31, sLTP[ i ] ); + } + } + + /* Adjust for changing gain */ + if( Gains_Q16[ subfr ] != NSQ->prev_gain_Q16 ) { + gain_adj_Q16 = silk_DIV32_varQ( NSQ->prev_gain_Q16, Gains_Q16[ subfr ], 16 ); + + /* Scale long-term shaping state */ + for( i = NSQ->sLTP_shp_buf_idx - psEncC->ltp_mem_length; i < NSQ->sLTP_shp_buf_idx; i++ ) { + NSQ->sLTP_shp_Q14[ i ] = silk_SMULWW( gain_adj_Q16, NSQ->sLTP_shp_Q14[ i ] ); + } + + /* Scale long-term prediction state */ + if( signal_type == TYPE_VOICED && NSQ->rewhite_flag == 0 ) { + for( i = NSQ->sLTP_buf_idx - lag - LTP_ORDER / 2; i < NSQ->sLTP_buf_idx; i++ ) { + sLTP_Q15[ i ] = silk_SMULWW( gain_adj_Q16, sLTP_Q15[ i ] ); + } + } + + NSQ->sLF_AR_shp_Q14 = silk_SMULWW( gain_adj_Q16, NSQ->sLF_AR_shp_Q14 ); + NSQ->sDiff_shp_Q14 = silk_SMULWW( gain_adj_Q16, NSQ->sDiff_shp_Q14 ); + + /* Scale short-term prediction and shaping states */ + for( i = 0; i < NSQ_LPC_BUF_LENGTH; i++ ) { + NSQ->sLPC_Q14[ i ] = silk_SMULWW( gain_adj_Q16, NSQ->sLPC_Q14[ i ] ); + } + for( i = 0; i < MAX_SHAPE_LPC_ORDER; i++ ) { + NSQ->sAR2_Q14[ i ] = silk_SMULWW( gain_adj_Q16, NSQ->sAR2_Q14[ i ] ); + } + + /* Save inverse gain */ + NSQ->prev_gain_Q16 = Gains_Q16[ subfr ]; + } +} diff --git a/components/opus/libopus/silk/NSQ.h b/components/opus/libopus/silk/NSQ.h new file mode 100644 index 0000000..971832f --- /dev/null +++ b/components/opus/libopus/silk/NSQ.h @@ -0,0 +1,101 @@ +/*********************************************************************** +Copyright (c) 2014 Vidyo. +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ +#ifndef SILK_NSQ_H +#define SILK_NSQ_H + +#include "SigProc_FIX.h" + +#undef silk_short_prediction_create_arch_coef + +static OPUS_INLINE opus_int32 silk_noise_shape_quantizer_short_prediction_c(const opus_int32 *buf32, const opus_int16 *coef16, opus_int order) +{ + opus_int32 out; + silk_assert( order == 10 || order == 16 ); + + /* Avoids introducing a bias because silk_SMLAWB() always rounds to -inf */ + out = silk_RSHIFT( order, 1 ); + out = silk_SMLAWB( out, buf32[ 0 ], coef16[ 0 ] ); + out = silk_SMLAWB( out, buf32[ -1 ], coef16[ 1 ] ); + out = silk_SMLAWB( out, buf32[ -2 ], coef16[ 2 ] ); + out = silk_SMLAWB( out, buf32[ -3 ], coef16[ 3 ] ); + out = silk_SMLAWB( out, buf32[ -4 ], coef16[ 4 ] ); + out = silk_SMLAWB( out, buf32[ -5 ], coef16[ 5 ] ); + out = silk_SMLAWB( out, buf32[ -6 ], coef16[ 6 ] ); + out = silk_SMLAWB( out, buf32[ -7 ], coef16[ 7 ] ); + out = silk_SMLAWB( out, buf32[ -8 ], coef16[ 8 ] ); + out = silk_SMLAWB( out, buf32[ -9 ], coef16[ 9 ] ); + + if( order == 16 ) + { + out = silk_SMLAWB( out, buf32[ -10 ], coef16[ 10 ] ); + out = silk_SMLAWB( out, buf32[ -11 ], coef16[ 11 ] ); + out = silk_SMLAWB( out, buf32[ -12 ], coef16[ 12 ] ); + out = silk_SMLAWB( out, buf32[ -13 ], coef16[ 13 ] ); + out = silk_SMLAWB( out, buf32[ -14 ], coef16[ 14 ] ); + out = silk_SMLAWB( out, buf32[ -15 ], coef16[ 15 ] ); + } + return out; +} + +#define silk_noise_shape_quantizer_short_prediction(in, coef, coefRev, order, arch) ((void)arch,silk_noise_shape_quantizer_short_prediction_c(in, coef, order)) + +static OPUS_INLINE opus_int32 silk_NSQ_noise_shape_feedback_loop_c(const opus_int32 *data0, opus_int32 *data1, const opus_int16 *coef, opus_int order) +{ + opus_int32 out; + opus_int32 tmp1, tmp2; + opus_int j; + + tmp2 = data0[0]; + tmp1 = data1[0]; + data1[0] = tmp2; + + out = silk_RSHIFT(order, 1); + out = silk_SMLAWB(out, tmp2, coef[0]); + + for (j = 2; j < order; j += 2) { + tmp2 = data1[j - 1]; + data1[j - 1] = tmp1; + out = silk_SMLAWB(out, tmp1, coef[j - 1]); + tmp1 = data1[j + 0]; + data1[j + 0] = tmp2; + out = silk_SMLAWB(out, tmp2, coef[j]); + } + data1[order - 1] = tmp1; + out = silk_SMLAWB(out, tmp1, coef[order - 1]); + /* Q11 -> Q12 */ + out = silk_LSHIFT32( out, 1 ); + return out; +} + +#define silk_NSQ_noise_shape_feedback_loop(data0, data1, coef, order, arch) ((void)arch,silk_NSQ_noise_shape_feedback_loop_c(data0, data1, coef, order)) + +#if defined(OPUS_ARM_MAY_HAVE_NEON_INTR) +#include "arm/NSQ_neon.h" +#endif + +#endif /* SILK_NSQ_H */ diff --git a/components/opus/libopus/silk/NSQ_del_dec.c b/components/opus/libopus/silk/NSQ_del_dec.c new file mode 100644 index 0000000..3fd9fa0 --- /dev/null +++ b/components/opus/libopus/silk/NSQ_del_dec.c @@ -0,0 +1,733 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main.h" +#include "stack_alloc.h" +#include "NSQ.h" + + +typedef struct { + opus_int32 sLPC_Q14[ MAX_SUB_FRAME_LENGTH + NSQ_LPC_BUF_LENGTH ]; + opus_int32 RandState[ DECISION_DELAY ]; + opus_int32 Q_Q10[ DECISION_DELAY ]; + opus_int32 Xq_Q14[ DECISION_DELAY ]; + opus_int32 Pred_Q15[ DECISION_DELAY ]; + opus_int32 Shape_Q14[ DECISION_DELAY ]; + opus_int32 sAR2_Q14[ MAX_SHAPE_LPC_ORDER ]; + opus_int32 LF_AR_Q14; + opus_int32 Diff_Q14; + opus_int32 Seed; + opus_int32 SeedInit; + opus_int32 RD_Q10; +} NSQ_del_dec_struct; + +typedef struct { + opus_int32 Q_Q10; + opus_int32 RD_Q10; + opus_int32 xq_Q14; + opus_int32 LF_AR_Q14; + opus_int32 Diff_Q14; + opus_int32 sLTP_shp_Q14; + opus_int32 LPC_exc_Q14; +} NSQ_sample_struct; + +typedef NSQ_sample_struct NSQ_sample_pair[ 2 ]; + +#if defined(MIPSr1_ASM) +#include "mips/NSQ_del_dec_mipsr1.h" +#endif +static OPUS_INLINE void silk_nsq_del_dec_scale_states( + const silk_encoder_state *psEncC, /* I Encoder State */ + silk_nsq_state *NSQ, /* I/O NSQ state */ + NSQ_del_dec_struct psDelDec[], /* I/O Delayed decision states */ + const opus_int16 x16[], /* I Input */ + opus_int32 x_sc_Q10[], /* O Input scaled with 1/Gain in Q10 */ + const opus_int16 sLTP[], /* I Re-whitened LTP state in Q0 */ + opus_int32 sLTP_Q15[], /* O LTP state matching scaled input */ + opus_int subfr, /* I Subframe number */ + opus_int nStatesDelayedDecision, /* I Number of del dec states */ + const opus_int LTP_scale_Q14, /* I LTP state scaling */ + const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I */ + const opus_int pitchL[ MAX_NB_SUBFR ], /* I Pitch lag */ + const opus_int signal_type, /* I Signal type */ + const opus_int decisionDelay /* I Decision delay */ +); + +/******************************************/ +/* Noise shape quantizer for one subframe */ +/******************************************/ +static OPUS_INLINE void silk_noise_shape_quantizer_del_dec( + silk_nsq_state *NSQ, /* I/O NSQ state */ + NSQ_del_dec_struct psDelDec[], /* I/O Delayed decision states */ + opus_int signalType, /* I Signal type */ + const opus_int32 x_Q10[], /* I */ + opus_int8 pulses[], /* O */ + opus_int16 xq[], /* O */ + opus_int32 sLTP_Q15[], /* I/O LTP filter state */ + opus_int32 delayedGain_Q10[], /* I/O Gain delay buffer */ + const opus_int16 a_Q12[], /* I Short term prediction coefs */ + const opus_int16 b_Q14[], /* I Long term prediction coefs */ + const opus_int16 AR_shp_Q13[], /* I Noise shaping coefs */ + opus_int lag, /* I Pitch lag */ + opus_int32 HarmShapeFIRPacked_Q14, /* I */ + opus_int Tilt_Q14, /* I Spectral tilt */ + opus_int32 LF_shp_Q14, /* I */ + opus_int32 Gain_Q16, /* I */ + opus_int Lambda_Q10, /* I */ + opus_int offset_Q10, /* I */ + opus_int length, /* I Input length */ + opus_int subfr, /* I Subframe number */ + opus_int shapingLPCOrder, /* I Shaping LPC filter order */ + opus_int predictLPCOrder, /* I Prediction filter order */ + opus_int warping_Q16, /* I */ + opus_int nStatesDelayedDecision, /* I Number of states in decision tree */ + opus_int *smpl_buf_idx, /* I/O Index to newest samples in buffers */ + opus_int decisionDelay, /* I */ + int arch /* I */ +); + +void silk_NSQ_del_dec_c( + const silk_encoder_state *psEncC, /* I Encoder State */ + silk_nsq_state *NSQ, /* I/O NSQ state */ + SideInfoIndices *psIndices, /* I/O Quantization Indices */ + const opus_int16 x16[], /* I Input */ + opus_int8 pulses[], /* O Quantized pulse signal */ + const opus_int16 PredCoef_Q12[ 2 * MAX_LPC_ORDER ], /* I Short term prediction coefs */ + const opus_int16 LTPCoef_Q14[ LTP_ORDER * MAX_NB_SUBFR ], /* I Long term prediction coefs */ + const opus_int16 AR_Q13[ MAX_NB_SUBFR * MAX_SHAPE_LPC_ORDER ], /* I Noise shaping coefs */ + const opus_int HarmShapeGain_Q14[ MAX_NB_SUBFR ], /* I Long term shaping coefs */ + const opus_int Tilt_Q14[ MAX_NB_SUBFR ], /* I Spectral tilt */ + const opus_int32 LF_shp_Q14[ MAX_NB_SUBFR ], /* I Low frequency shaping coefs */ + const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I Quantization step sizes */ + const opus_int pitchL[ MAX_NB_SUBFR ], /* I Pitch lags */ + const opus_int Lambda_Q10, /* I Rate/distortion tradeoff */ + const opus_int LTP_scale_Q14 /* I LTP state scaling */ +) +{ + opus_int i, k, lag, start_idx, LSF_interpolation_flag, Winner_ind, subfr; + opus_int last_smple_idx, smpl_buf_idx, decisionDelay; + const opus_int16 *A_Q12, *B_Q14, *AR_shp_Q13; + opus_int16 *pxq; + VARDECL( opus_int32, sLTP_Q15 ); + VARDECL( opus_int16, sLTP ); + opus_int32 HarmShapeFIRPacked_Q14; + opus_int offset_Q10; + opus_int32 RDmin_Q10, Gain_Q10; + VARDECL( opus_int32, x_sc_Q10 ); + VARDECL( opus_int32, delayedGain_Q10 ); + VARDECL( NSQ_del_dec_struct, psDelDec ); + NSQ_del_dec_struct *psDD; + SAVE_STACK; + + /* Set unvoiced lag to the previous one, overwrite later for voiced */ + lag = NSQ->lagPrev; + + silk_assert( NSQ->prev_gain_Q16 != 0 ); + + /* Initialize delayed decision states */ + ALLOC( psDelDec, psEncC->nStatesDelayedDecision, NSQ_del_dec_struct ); + silk_memset( psDelDec, 0, psEncC->nStatesDelayedDecision * sizeof( NSQ_del_dec_struct ) ); + for( k = 0; k < psEncC->nStatesDelayedDecision; k++ ) { + psDD = &psDelDec[ k ]; + psDD->Seed = ( k + psIndices->Seed ) & 3; + psDD->SeedInit = psDD->Seed; + psDD->RD_Q10 = 0; + psDD->LF_AR_Q14 = NSQ->sLF_AR_shp_Q14; + psDD->Diff_Q14 = NSQ->sDiff_shp_Q14; + psDD->Shape_Q14[ 0 ] = NSQ->sLTP_shp_Q14[ psEncC->ltp_mem_length - 1 ]; + silk_memcpy( psDD->sLPC_Q14, NSQ->sLPC_Q14, NSQ_LPC_BUF_LENGTH * sizeof( opus_int32 ) ); + silk_memcpy( psDD->sAR2_Q14, NSQ->sAR2_Q14, sizeof( NSQ->sAR2_Q14 ) ); + } + + offset_Q10 = silk_Quantization_Offsets_Q10[ psIndices->signalType >> 1 ][ psIndices->quantOffsetType ]; + smpl_buf_idx = 0; /* index of oldest samples */ + + decisionDelay = silk_min_int( DECISION_DELAY, psEncC->subfr_length ); + + /* For voiced frames limit the decision delay to lower than the pitch lag */ + if( psIndices->signalType == TYPE_VOICED ) { + for( k = 0; k < psEncC->nb_subfr; k++ ) { + decisionDelay = silk_min_int( decisionDelay, pitchL[ k ] - LTP_ORDER / 2 - 1 ); + } + } else { + if( lag > 0 ) { + decisionDelay = silk_min_int( decisionDelay, lag - LTP_ORDER / 2 - 1 ); + } + } + + if( psIndices->NLSFInterpCoef_Q2 == 4 ) { + LSF_interpolation_flag = 0; + } else { + LSF_interpolation_flag = 1; + } + + ALLOC( sLTP_Q15, psEncC->ltp_mem_length + psEncC->frame_length, opus_int32 ); + ALLOC( sLTP, psEncC->ltp_mem_length + psEncC->frame_length, opus_int16 ); + ALLOC( x_sc_Q10, psEncC->subfr_length, opus_int32 ); + ALLOC( delayedGain_Q10, DECISION_DELAY, opus_int32 ); + /* Set up pointers to start of sub frame */ + pxq = &NSQ->xq[ psEncC->ltp_mem_length ]; + NSQ->sLTP_shp_buf_idx = psEncC->ltp_mem_length; + NSQ->sLTP_buf_idx = psEncC->ltp_mem_length; + subfr = 0; + for( k = 0; k < psEncC->nb_subfr; k++ ) { + A_Q12 = &PredCoef_Q12[ ( ( k >> 1 ) | ( 1 - LSF_interpolation_flag ) ) * MAX_LPC_ORDER ]; + B_Q14 = <PCoef_Q14[ k * LTP_ORDER ]; + AR_shp_Q13 = &AR_Q13[ k * MAX_SHAPE_LPC_ORDER ]; + + /* Noise shape parameters */ + silk_assert( HarmShapeGain_Q14[ k ] >= 0 ); + HarmShapeFIRPacked_Q14 = silk_RSHIFT( HarmShapeGain_Q14[ k ], 2 ); + HarmShapeFIRPacked_Q14 |= silk_LSHIFT( (opus_int32)silk_RSHIFT( HarmShapeGain_Q14[ k ], 1 ), 16 ); + + NSQ->rewhite_flag = 0; + if( psIndices->signalType == TYPE_VOICED ) { + /* Voiced */ + lag = pitchL[ k ]; + + /* Re-whitening */ + if( ( k & ( 3 - silk_LSHIFT( LSF_interpolation_flag, 1 ) ) ) == 0 ) { + if( k == 2 ) { + /* RESET DELAYED DECISIONS */ + /* Find winner */ + RDmin_Q10 = psDelDec[ 0 ].RD_Q10; + Winner_ind = 0; + for( i = 1; i < psEncC->nStatesDelayedDecision; i++ ) { + if( psDelDec[ i ].RD_Q10 < RDmin_Q10 ) { + RDmin_Q10 = psDelDec[ i ].RD_Q10; + Winner_ind = i; + } + } + for( i = 0; i < psEncC->nStatesDelayedDecision; i++ ) { + if( i != Winner_ind ) { + psDelDec[ i ].RD_Q10 += ( silk_int32_MAX >> 4 ); + silk_assert( psDelDec[ i ].RD_Q10 >= 0 ); + } + } + + /* Copy final part of signals from winner state to output and long-term filter states */ + psDD = &psDelDec[ Winner_ind ]; + last_smple_idx = smpl_buf_idx + decisionDelay; + for( i = 0; i < decisionDelay; i++ ) { + last_smple_idx = ( last_smple_idx - 1 ) % DECISION_DELAY; + if( last_smple_idx < 0 ) last_smple_idx += DECISION_DELAY; + pulses[ i - decisionDelay ] = (opus_int8)silk_RSHIFT_ROUND( psDD->Q_Q10[ last_smple_idx ], 10 ); + pxq[ i - decisionDelay ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( + silk_SMULWW( psDD->Xq_Q14[ last_smple_idx ], Gains_Q16[ 1 ] ), 14 ) ); + NSQ->sLTP_shp_Q14[ NSQ->sLTP_shp_buf_idx - decisionDelay + i ] = psDD->Shape_Q14[ last_smple_idx ]; + } + + subfr = 0; + } + + /* Rewhiten with new A coefs */ + start_idx = psEncC->ltp_mem_length - lag - psEncC->predictLPCOrder - LTP_ORDER / 2; + celt_assert( start_idx > 0 ); + + silk_LPC_analysis_filter( &sLTP[ start_idx ], &NSQ->xq[ start_idx + k * psEncC->subfr_length ], + A_Q12, psEncC->ltp_mem_length - start_idx, psEncC->predictLPCOrder, psEncC->arch ); + + NSQ->sLTP_buf_idx = psEncC->ltp_mem_length; + NSQ->rewhite_flag = 1; + } + } + + silk_nsq_del_dec_scale_states( psEncC, NSQ, psDelDec, x16, x_sc_Q10, sLTP, sLTP_Q15, k, + psEncC->nStatesDelayedDecision, LTP_scale_Q14, Gains_Q16, pitchL, psIndices->signalType, decisionDelay ); + + silk_noise_shape_quantizer_del_dec( NSQ, psDelDec, psIndices->signalType, x_sc_Q10, pulses, pxq, sLTP_Q15, + delayedGain_Q10, A_Q12, B_Q14, AR_shp_Q13, lag, HarmShapeFIRPacked_Q14, Tilt_Q14[ k ], LF_shp_Q14[ k ], + Gains_Q16[ k ], Lambda_Q10, offset_Q10, psEncC->subfr_length, subfr++, psEncC->shapingLPCOrder, + psEncC->predictLPCOrder, psEncC->warping_Q16, psEncC->nStatesDelayedDecision, &smpl_buf_idx, decisionDelay, psEncC->arch ); + + x16 += psEncC->subfr_length; + pulses += psEncC->subfr_length; + pxq += psEncC->subfr_length; + } + + /* Find winner */ + RDmin_Q10 = psDelDec[ 0 ].RD_Q10; + Winner_ind = 0; + for( k = 1; k < psEncC->nStatesDelayedDecision; k++ ) { + if( psDelDec[ k ].RD_Q10 < RDmin_Q10 ) { + RDmin_Q10 = psDelDec[ k ].RD_Q10; + Winner_ind = k; + } + } + + /* Copy final part of signals from winner state to output and long-term filter states */ + psDD = &psDelDec[ Winner_ind ]; + psIndices->Seed = psDD->SeedInit; + last_smple_idx = smpl_buf_idx + decisionDelay; + Gain_Q10 = silk_RSHIFT32( Gains_Q16[ psEncC->nb_subfr - 1 ], 6 ); + for( i = 0; i < decisionDelay; i++ ) { + last_smple_idx = ( last_smple_idx - 1 ) % DECISION_DELAY; + if( last_smple_idx < 0 ) last_smple_idx += DECISION_DELAY; + + pulses[ i - decisionDelay ] = (opus_int8)silk_RSHIFT_ROUND( psDD->Q_Q10[ last_smple_idx ], 10 ); + pxq[ i - decisionDelay ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( + silk_SMULWW( psDD->Xq_Q14[ last_smple_idx ], Gain_Q10 ), 8 ) ); + NSQ->sLTP_shp_Q14[ NSQ->sLTP_shp_buf_idx - decisionDelay + i ] = psDD->Shape_Q14[ last_smple_idx ]; + } + silk_memcpy( NSQ->sLPC_Q14, &psDD->sLPC_Q14[ psEncC->subfr_length ], NSQ_LPC_BUF_LENGTH * sizeof( opus_int32 ) ); + silk_memcpy( NSQ->sAR2_Q14, psDD->sAR2_Q14, sizeof( psDD->sAR2_Q14 ) ); + + /* Update states */ + NSQ->sLF_AR_shp_Q14 = psDD->LF_AR_Q14; + NSQ->sDiff_shp_Q14 = psDD->Diff_Q14; + NSQ->lagPrev = pitchL[ psEncC->nb_subfr - 1 ]; + + /* Save quantized speech signal */ + silk_memmove( NSQ->xq, &NSQ->xq[ psEncC->frame_length ], psEncC->ltp_mem_length * sizeof( opus_int16 ) ); + silk_memmove( NSQ->sLTP_shp_Q14, &NSQ->sLTP_shp_Q14[ psEncC->frame_length ], psEncC->ltp_mem_length * sizeof( opus_int32 ) ); + RESTORE_STACK; +} + +/******************************************/ +/* Noise shape quantizer for one subframe */ +/******************************************/ +#ifndef OVERRIDE_silk_noise_shape_quantizer_del_dec +static OPUS_INLINE void silk_noise_shape_quantizer_del_dec( + silk_nsq_state *NSQ, /* I/O NSQ state */ + NSQ_del_dec_struct psDelDec[], /* I/O Delayed decision states */ + opus_int signalType, /* I Signal type */ + const opus_int32 x_Q10[], /* I */ + opus_int8 pulses[], /* O */ + opus_int16 xq[], /* O */ + opus_int32 sLTP_Q15[], /* I/O LTP filter state */ + opus_int32 delayedGain_Q10[], /* I/O Gain delay buffer */ + const opus_int16 a_Q12[], /* I Short term prediction coefs */ + const opus_int16 b_Q14[], /* I Long term prediction coefs */ + const opus_int16 AR_shp_Q13[], /* I Noise shaping coefs */ + opus_int lag, /* I Pitch lag */ + opus_int32 HarmShapeFIRPacked_Q14, /* I */ + opus_int Tilt_Q14, /* I Spectral tilt */ + opus_int32 LF_shp_Q14, /* I */ + opus_int32 Gain_Q16, /* I */ + opus_int Lambda_Q10, /* I */ + opus_int offset_Q10, /* I */ + opus_int length, /* I Input length */ + opus_int subfr, /* I Subframe number */ + opus_int shapingLPCOrder, /* I Shaping LPC filter order */ + opus_int predictLPCOrder, /* I Prediction filter order */ + opus_int warping_Q16, /* I */ + opus_int nStatesDelayedDecision, /* I Number of states in decision tree */ + opus_int *smpl_buf_idx, /* I/O Index to newest samples in buffers */ + opus_int decisionDelay, /* I */ + int arch /* I */ +) +{ + opus_int i, j, k, Winner_ind, RDmin_ind, RDmax_ind, last_smple_idx; + opus_int32 Winner_rand_state; + opus_int32 LTP_pred_Q14, LPC_pred_Q14, n_AR_Q14, n_LTP_Q14; + opus_int32 n_LF_Q14, r_Q10, rr_Q10, rd1_Q10, rd2_Q10, RDmin_Q10, RDmax_Q10; + opus_int32 q1_Q0, q1_Q10, q2_Q10, exc_Q14, LPC_exc_Q14, xq_Q14, Gain_Q10; + opus_int32 tmp1, tmp2, sLF_AR_shp_Q14; + opus_int32 *pred_lag_ptr, *shp_lag_ptr, *psLPC_Q14; +#ifdef silk_short_prediction_create_arch_coef + opus_int32 a_Q12_arch[MAX_LPC_ORDER]; +#endif + + VARDECL( NSQ_sample_pair, psSampleState ); + NSQ_del_dec_struct *psDD; + NSQ_sample_struct *psSS; + SAVE_STACK; + + celt_assert( nStatesDelayedDecision > 0 ); + ALLOC( psSampleState, nStatesDelayedDecision, NSQ_sample_pair ); + + shp_lag_ptr = &NSQ->sLTP_shp_Q14[ NSQ->sLTP_shp_buf_idx - lag + HARM_SHAPE_FIR_TAPS / 2 ]; + pred_lag_ptr = &sLTP_Q15[ NSQ->sLTP_buf_idx - lag + LTP_ORDER / 2 ]; + Gain_Q10 = silk_RSHIFT( Gain_Q16, 6 ); + +#ifdef silk_short_prediction_create_arch_coef + silk_short_prediction_create_arch_coef(a_Q12_arch, a_Q12, predictLPCOrder); +#endif + + for( i = 0; i < length; i++ ) { + /* Perform common calculations used in all states */ + + /* Long-term prediction */ + if( signalType == TYPE_VOICED ) { + /* Unrolled loop */ + /* Avoids introducing a bias because silk_SMLAWB() always rounds to -inf */ + LTP_pred_Q14 = 2; + LTP_pred_Q14 = silk_SMLAWB( LTP_pred_Q14, pred_lag_ptr[ 0 ], b_Q14[ 0 ] ); + LTP_pred_Q14 = silk_SMLAWB( LTP_pred_Q14, pred_lag_ptr[ -1 ], b_Q14[ 1 ] ); + LTP_pred_Q14 = silk_SMLAWB( LTP_pred_Q14, pred_lag_ptr[ -2 ], b_Q14[ 2 ] ); + LTP_pred_Q14 = silk_SMLAWB( LTP_pred_Q14, pred_lag_ptr[ -3 ], b_Q14[ 3 ] ); + LTP_pred_Q14 = silk_SMLAWB( LTP_pred_Q14, pred_lag_ptr[ -4 ], b_Q14[ 4 ] ); + LTP_pred_Q14 = silk_LSHIFT( LTP_pred_Q14, 1 ); /* Q13 -> Q14 */ + pred_lag_ptr++; + } else { + LTP_pred_Q14 = 0; + } + + /* Long-term shaping */ + if( lag > 0 ) { + /* Symmetric, packed FIR coefficients */ + n_LTP_Q14 = silk_SMULWB( silk_ADD32( shp_lag_ptr[ 0 ], shp_lag_ptr[ -2 ] ), HarmShapeFIRPacked_Q14 ); + n_LTP_Q14 = silk_SMLAWT( n_LTP_Q14, shp_lag_ptr[ -1 ], HarmShapeFIRPacked_Q14 ); + n_LTP_Q14 = silk_SUB_LSHIFT32( LTP_pred_Q14, n_LTP_Q14, 2 ); /* Q12 -> Q14 */ + shp_lag_ptr++; + } else { + n_LTP_Q14 = 0; + } + + for( k = 0; k < nStatesDelayedDecision; k++ ) { + /* Delayed decision state */ + psDD = &psDelDec[ k ]; + + /* Sample state */ + psSS = psSampleState[ k ]; + + /* Generate dither */ + psDD->Seed = silk_RAND( psDD->Seed ); + + /* Pointer used in short term prediction and shaping */ + psLPC_Q14 = &psDD->sLPC_Q14[ NSQ_LPC_BUF_LENGTH - 1 + i ]; + /* Short-term prediction */ + LPC_pred_Q14 = silk_noise_shape_quantizer_short_prediction(psLPC_Q14, a_Q12, a_Q12_arch, predictLPCOrder, arch); + LPC_pred_Q14 = silk_LSHIFT( LPC_pred_Q14, 4 ); /* Q10 -> Q14 */ + + /* Noise shape feedback */ + celt_assert( ( shapingLPCOrder & 1 ) == 0 ); /* check that order is even */ + /* Output of lowpass section */ + tmp2 = silk_SMLAWB( psDD->Diff_Q14, psDD->sAR2_Q14[ 0 ], warping_Q16 ); + /* Output of allpass section */ + tmp1 = silk_SMLAWB( psDD->sAR2_Q14[ 0 ], psDD->sAR2_Q14[ 1 ] - tmp2, warping_Q16 ); + psDD->sAR2_Q14[ 0 ] = tmp2; + n_AR_Q14 = silk_RSHIFT( shapingLPCOrder, 1 ); + n_AR_Q14 = silk_SMLAWB( n_AR_Q14, tmp2, AR_shp_Q13[ 0 ] ); + /* Loop over allpass sections */ + for( j = 2; j < shapingLPCOrder; j += 2 ) { + /* Output of allpass section */ + tmp2 = silk_SMLAWB( psDD->sAR2_Q14[ j - 1 ], psDD->sAR2_Q14[ j + 0 ] - tmp1, warping_Q16 ); + psDD->sAR2_Q14[ j - 1 ] = tmp1; + n_AR_Q14 = silk_SMLAWB( n_AR_Q14, tmp1, AR_shp_Q13[ j - 1 ] ); + /* Output of allpass section */ + tmp1 = silk_SMLAWB( psDD->sAR2_Q14[ j + 0 ], psDD->sAR2_Q14[ j + 1 ] - tmp2, warping_Q16 ); + psDD->sAR2_Q14[ j + 0 ] = tmp2; + n_AR_Q14 = silk_SMLAWB( n_AR_Q14, tmp2, AR_shp_Q13[ j ] ); + } + psDD->sAR2_Q14[ shapingLPCOrder - 1 ] = tmp1; + n_AR_Q14 = silk_SMLAWB( n_AR_Q14, tmp1, AR_shp_Q13[ shapingLPCOrder - 1 ] ); + + n_AR_Q14 = silk_LSHIFT( n_AR_Q14, 1 ); /* Q11 -> Q12 */ + n_AR_Q14 = silk_SMLAWB( n_AR_Q14, psDD->LF_AR_Q14, Tilt_Q14 ); /* Q12 */ + n_AR_Q14 = silk_LSHIFT( n_AR_Q14, 2 ); /* Q12 -> Q14 */ + + n_LF_Q14 = silk_SMULWB( psDD->Shape_Q14[ *smpl_buf_idx ], LF_shp_Q14 ); /* Q12 */ + n_LF_Q14 = silk_SMLAWT( n_LF_Q14, psDD->LF_AR_Q14, LF_shp_Q14 ); /* Q12 */ + n_LF_Q14 = silk_LSHIFT( n_LF_Q14, 2 ); /* Q12 -> Q14 */ + + /* Input minus prediction plus noise feedback */ + /* r = x[ i ] - LTP_pred - LPC_pred + n_AR + n_Tilt + n_LF + n_LTP */ + tmp1 = silk_ADD32( n_AR_Q14, n_LF_Q14 ); /* Q14 */ + tmp2 = silk_ADD32( n_LTP_Q14, LPC_pred_Q14 ); /* Q13 */ + tmp1 = silk_SUB32( tmp2, tmp1 ); /* Q13 */ + tmp1 = silk_RSHIFT_ROUND( tmp1, 4 ); /* Q10 */ + + r_Q10 = silk_SUB32( x_Q10[ i ], tmp1 ); /* residual error Q10 */ + + /* Flip sign depending on dither */ + if ( psDD->Seed < 0 ) { + r_Q10 = -r_Q10; + } + r_Q10 = silk_LIMIT_32( r_Q10, -(31 << 10), 30 << 10 ); + + /* Find two quantization level candidates and measure their rate-distortion */ + q1_Q10 = silk_SUB32( r_Q10, offset_Q10 ); + q1_Q0 = silk_RSHIFT( q1_Q10, 10 ); + if (Lambda_Q10 > 2048) { + /* For aggressive RDO, the bias becomes more than one pulse. */ + int rdo_offset = Lambda_Q10/2 - 512; + if (q1_Q10 > rdo_offset) { + q1_Q0 = silk_RSHIFT( q1_Q10 - rdo_offset, 10 ); + } else if (q1_Q10 < -rdo_offset) { + q1_Q0 = silk_RSHIFT( q1_Q10 + rdo_offset, 10 ); + } else if (q1_Q10 < 0) { + q1_Q0 = -1; + } else { + q1_Q0 = 0; + } + } + if( q1_Q0 > 0 ) { + q1_Q10 = silk_SUB32( silk_LSHIFT( q1_Q0, 10 ), QUANT_LEVEL_ADJUST_Q10 ); + q1_Q10 = silk_ADD32( q1_Q10, offset_Q10 ); + q2_Q10 = silk_ADD32( q1_Q10, 1024 ); + rd1_Q10 = silk_SMULBB( q1_Q10, Lambda_Q10 ); + rd2_Q10 = silk_SMULBB( q2_Q10, Lambda_Q10 ); + } else if( q1_Q0 == 0 ) { + q1_Q10 = offset_Q10; + q2_Q10 = silk_ADD32( q1_Q10, 1024 - QUANT_LEVEL_ADJUST_Q10 ); + rd1_Q10 = silk_SMULBB( q1_Q10, Lambda_Q10 ); + rd2_Q10 = silk_SMULBB( q2_Q10, Lambda_Q10 ); + } else if( q1_Q0 == -1 ) { + q2_Q10 = offset_Q10; + q1_Q10 = silk_SUB32( q2_Q10, 1024 - QUANT_LEVEL_ADJUST_Q10 ); + rd1_Q10 = silk_SMULBB( -q1_Q10, Lambda_Q10 ); + rd2_Q10 = silk_SMULBB( q2_Q10, Lambda_Q10 ); + } else { /* q1_Q0 < -1 */ + q1_Q10 = silk_ADD32( silk_LSHIFT( q1_Q0, 10 ), QUANT_LEVEL_ADJUST_Q10 ); + q1_Q10 = silk_ADD32( q1_Q10, offset_Q10 ); + q2_Q10 = silk_ADD32( q1_Q10, 1024 ); + rd1_Q10 = silk_SMULBB( -q1_Q10, Lambda_Q10 ); + rd2_Q10 = silk_SMULBB( -q2_Q10, Lambda_Q10 ); + } + rr_Q10 = silk_SUB32( r_Q10, q1_Q10 ); + rd1_Q10 = silk_RSHIFT( silk_SMLABB( rd1_Q10, rr_Q10, rr_Q10 ), 10 ); + rr_Q10 = silk_SUB32( r_Q10, q2_Q10 ); + rd2_Q10 = silk_RSHIFT( silk_SMLABB( rd2_Q10, rr_Q10, rr_Q10 ), 10 ); + + if( rd1_Q10 < rd2_Q10 ) { + psSS[ 0 ].RD_Q10 = silk_ADD32( psDD->RD_Q10, rd1_Q10 ); + psSS[ 1 ].RD_Q10 = silk_ADD32( psDD->RD_Q10, rd2_Q10 ); + psSS[ 0 ].Q_Q10 = q1_Q10; + psSS[ 1 ].Q_Q10 = q2_Q10; + } else { + psSS[ 0 ].RD_Q10 = silk_ADD32( psDD->RD_Q10, rd2_Q10 ); + psSS[ 1 ].RD_Q10 = silk_ADD32( psDD->RD_Q10, rd1_Q10 ); + psSS[ 0 ].Q_Q10 = q2_Q10; + psSS[ 1 ].Q_Q10 = q1_Q10; + } + + /* Update states for best quantization */ + + /* Quantized excitation */ + exc_Q14 = silk_LSHIFT32( psSS[ 0 ].Q_Q10, 4 ); + if ( psDD->Seed < 0 ) { + exc_Q14 = -exc_Q14; + } + + /* Add predictions */ + LPC_exc_Q14 = silk_ADD32( exc_Q14, LTP_pred_Q14 ); + xq_Q14 = silk_ADD32( LPC_exc_Q14, LPC_pred_Q14 ); + + /* Update states */ + psSS[ 0 ].Diff_Q14 = silk_SUB_LSHIFT32( xq_Q14, x_Q10[ i ], 4 ); + sLF_AR_shp_Q14 = silk_SUB32( psSS[ 0 ].Diff_Q14, n_AR_Q14 ); + psSS[ 0 ].sLTP_shp_Q14 = silk_SUB32( sLF_AR_shp_Q14, n_LF_Q14 ); + psSS[ 0 ].LF_AR_Q14 = sLF_AR_shp_Q14; + psSS[ 0 ].LPC_exc_Q14 = LPC_exc_Q14; + psSS[ 0 ].xq_Q14 = xq_Q14; + + /* Update states for second best quantization */ + + /* Quantized excitation */ + exc_Q14 = silk_LSHIFT32( psSS[ 1 ].Q_Q10, 4 ); + if ( psDD->Seed < 0 ) { + exc_Q14 = -exc_Q14; + } + + /* Add predictions */ + LPC_exc_Q14 = silk_ADD32( exc_Q14, LTP_pred_Q14 ); + xq_Q14 = silk_ADD32( LPC_exc_Q14, LPC_pred_Q14 ); + + /* Update states */ + psSS[ 1 ].Diff_Q14 = silk_SUB_LSHIFT32( xq_Q14, x_Q10[ i ], 4 ); + sLF_AR_shp_Q14 = silk_SUB32( psSS[ 1 ].Diff_Q14, n_AR_Q14 ); + psSS[ 1 ].sLTP_shp_Q14 = silk_SUB32( sLF_AR_shp_Q14, n_LF_Q14 ); + psSS[ 1 ].LF_AR_Q14 = sLF_AR_shp_Q14; + psSS[ 1 ].LPC_exc_Q14 = LPC_exc_Q14; + psSS[ 1 ].xq_Q14 = xq_Q14; + } + + *smpl_buf_idx = ( *smpl_buf_idx - 1 ) % DECISION_DELAY; + if( *smpl_buf_idx < 0 ) *smpl_buf_idx += DECISION_DELAY; + last_smple_idx = ( *smpl_buf_idx + decisionDelay ) % DECISION_DELAY; + + /* Find winner */ + RDmin_Q10 = psSampleState[ 0 ][ 0 ].RD_Q10; + Winner_ind = 0; + for( k = 1; k < nStatesDelayedDecision; k++ ) { + if( psSampleState[ k ][ 0 ].RD_Q10 < RDmin_Q10 ) { + RDmin_Q10 = psSampleState[ k ][ 0 ].RD_Q10; + Winner_ind = k; + } + } + + /* Increase RD values of expired states */ + Winner_rand_state = psDelDec[ Winner_ind ].RandState[ last_smple_idx ]; + for( k = 0; k < nStatesDelayedDecision; k++ ) { + if( psDelDec[ k ].RandState[ last_smple_idx ] != Winner_rand_state ) { + psSampleState[ k ][ 0 ].RD_Q10 = silk_ADD32( psSampleState[ k ][ 0 ].RD_Q10, silk_int32_MAX >> 4 ); + psSampleState[ k ][ 1 ].RD_Q10 = silk_ADD32( psSampleState[ k ][ 1 ].RD_Q10, silk_int32_MAX >> 4 ); + silk_assert( psSampleState[ k ][ 0 ].RD_Q10 >= 0 ); + } + } + + /* Find worst in first set and best in second set */ + RDmax_Q10 = psSampleState[ 0 ][ 0 ].RD_Q10; + RDmin_Q10 = psSampleState[ 0 ][ 1 ].RD_Q10; + RDmax_ind = 0; + RDmin_ind = 0; + for( k = 1; k < nStatesDelayedDecision; k++ ) { + /* find worst in first set */ + if( psSampleState[ k ][ 0 ].RD_Q10 > RDmax_Q10 ) { + RDmax_Q10 = psSampleState[ k ][ 0 ].RD_Q10; + RDmax_ind = k; + } + /* find best in second set */ + if( psSampleState[ k ][ 1 ].RD_Q10 < RDmin_Q10 ) { + RDmin_Q10 = psSampleState[ k ][ 1 ].RD_Q10; + RDmin_ind = k; + } + } + + /* Replace a state if best from second set outperforms worst in first set */ + if( RDmin_Q10 < RDmax_Q10 ) { + silk_memcpy( ( (opus_int32 *)&psDelDec[ RDmax_ind ] ) + i, + ( (opus_int32 *)&psDelDec[ RDmin_ind ] ) + i, sizeof( NSQ_del_dec_struct ) - i * sizeof( opus_int32) ); + silk_memcpy( &psSampleState[ RDmax_ind ][ 0 ], &psSampleState[ RDmin_ind ][ 1 ], sizeof( NSQ_sample_struct ) ); + } + + /* Write samples from winner to output and long-term filter states */ + psDD = &psDelDec[ Winner_ind ]; + if( subfr > 0 || i >= decisionDelay ) { + pulses[ i - decisionDelay ] = (opus_int8)silk_RSHIFT_ROUND( psDD->Q_Q10[ last_smple_idx ], 10 ); + xq[ i - decisionDelay ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( + silk_SMULWW( psDD->Xq_Q14[ last_smple_idx ], delayedGain_Q10[ last_smple_idx ] ), 8 ) ); + NSQ->sLTP_shp_Q14[ NSQ->sLTP_shp_buf_idx - decisionDelay ] = psDD->Shape_Q14[ last_smple_idx ]; + sLTP_Q15[ NSQ->sLTP_buf_idx - decisionDelay ] = psDD->Pred_Q15[ last_smple_idx ]; + } + NSQ->sLTP_shp_buf_idx++; + NSQ->sLTP_buf_idx++; + + /* Update states */ + for( k = 0; k < nStatesDelayedDecision; k++ ) { + psDD = &psDelDec[ k ]; + psSS = &psSampleState[ k ][ 0 ]; + psDD->LF_AR_Q14 = psSS->LF_AR_Q14; + psDD->Diff_Q14 = psSS->Diff_Q14; + psDD->sLPC_Q14[ NSQ_LPC_BUF_LENGTH + i ] = psSS->xq_Q14; + psDD->Xq_Q14[ *smpl_buf_idx ] = psSS->xq_Q14; + psDD->Q_Q10[ *smpl_buf_idx ] = psSS->Q_Q10; + psDD->Pred_Q15[ *smpl_buf_idx ] = silk_LSHIFT32( psSS->LPC_exc_Q14, 1 ); + psDD->Shape_Q14[ *smpl_buf_idx ] = psSS->sLTP_shp_Q14; + psDD->Seed = silk_ADD32_ovflw( psDD->Seed, silk_RSHIFT_ROUND( psSS->Q_Q10, 10 ) ); + psDD->RandState[ *smpl_buf_idx ] = psDD->Seed; + psDD->RD_Q10 = psSS->RD_Q10; + } + delayedGain_Q10[ *smpl_buf_idx ] = Gain_Q10; + } + /* Update LPC states */ + for( k = 0; k < nStatesDelayedDecision; k++ ) { + psDD = &psDelDec[ k ]; + silk_memcpy( psDD->sLPC_Q14, &psDD->sLPC_Q14[ length ], NSQ_LPC_BUF_LENGTH * sizeof( opus_int32 ) ); + } + RESTORE_STACK; +} +#endif /* OVERRIDE_silk_noise_shape_quantizer_del_dec */ + +static OPUS_INLINE void silk_nsq_del_dec_scale_states( + const silk_encoder_state *psEncC, /* I Encoder State */ + silk_nsq_state *NSQ, /* I/O NSQ state */ + NSQ_del_dec_struct psDelDec[], /* I/O Delayed decision states */ + const opus_int16 x16[], /* I Input */ + opus_int32 x_sc_Q10[], /* O Input scaled with 1/Gain in Q10 */ + const opus_int16 sLTP[], /* I Re-whitened LTP state in Q0 */ + opus_int32 sLTP_Q15[], /* O LTP state matching scaled input */ + opus_int subfr, /* I Subframe number */ + opus_int nStatesDelayedDecision, /* I Number of del dec states */ + const opus_int LTP_scale_Q14, /* I LTP state scaling */ + const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I */ + const opus_int pitchL[ MAX_NB_SUBFR ], /* I Pitch lag */ + const opus_int signal_type, /* I Signal type */ + const opus_int decisionDelay /* I Decision delay */ +) +{ + opus_int i, k, lag; + opus_int32 gain_adj_Q16, inv_gain_Q31, inv_gain_Q26; + NSQ_del_dec_struct *psDD; + + lag = pitchL[ subfr ]; + inv_gain_Q31 = silk_INVERSE32_varQ( silk_max( Gains_Q16[ subfr ], 1 ), 47 ); + silk_assert( inv_gain_Q31 != 0 ); + + /* Scale input */ + inv_gain_Q26 = silk_RSHIFT_ROUND( inv_gain_Q31, 5 ); + for( i = 0; i < psEncC->subfr_length; i++ ) { + x_sc_Q10[ i ] = silk_SMULWW( x16[ i ], inv_gain_Q26 ); + } + + /* After rewhitening the LTP state is un-scaled, so scale with inv_gain_Q16 */ + if( NSQ->rewhite_flag ) { + if( subfr == 0 ) { + /* Do LTP downscaling */ + inv_gain_Q31 = silk_LSHIFT( silk_SMULWB( inv_gain_Q31, LTP_scale_Q14 ), 2 ); + } + for( i = NSQ->sLTP_buf_idx - lag - LTP_ORDER / 2; i < NSQ->sLTP_buf_idx; i++ ) { + silk_assert( i < MAX_FRAME_LENGTH ); + sLTP_Q15[ i ] = silk_SMULWB( inv_gain_Q31, sLTP[ i ] ); + } + } + + /* Adjust for changing gain */ + if( Gains_Q16[ subfr ] != NSQ->prev_gain_Q16 ) { + gain_adj_Q16 = silk_DIV32_varQ( NSQ->prev_gain_Q16, Gains_Q16[ subfr ], 16 ); + + /* Scale long-term shaping state */ + for( i = NSQ->sLTP_shp_buf_idx - psEncC->ltp_mem_length; i < NSQ->sLTP_shp_buf_idx; i++ ) { + NSQ->sLTP_shp_Q14[ i ] = silk_SMULWW( gain_adj_Q16, NSQ->sLTP_shp_Q14[ i ] ); + } + + /* Scale long-term prediction state */ + if( signal_type == TYPE_VOICED && NSQ->rewhite_flag == 0 ) { + for( i = NSQ->sLTP_buf_idx - lag - LTP_ORDER / 2; i < NSQ->sLTP_buf_idx - decisionDelay; i++ ) { + sLTP_Q15[ i ] = silk_SMULWW( gain_adj_Q16, sLTP_Q15[ i ] ); + } + } + + for( k = 0; k < nStatesDelayedDecision; k++ ) { + psDD = &psDelDec[ k ]; + + /* Scale scalar states */ + psDD->LF_AR_Q14 = silk_SMULWW( gain_adj_Q16, psDD->LF_AR_Q14 ); + psDD->Diff_Q14 = silk_SMULWW( gain_adj_Q16, psDD->Diff_Q14 ); + + /* Scale short-term prediction and shaping states */ + for( i = 0; i < NSQ_LPC_BUF_LENGTH; i++ ) { + psDD->sLPC_Q14[ i ] = silk_SMULWW( gain_adj_Q16, psDD->sLPC_Q14[ i ] ); + } + for( i = 0; i < MAX_SHAPE_LPC_ORDER; i++ ) { + psDD->sAR2_Q14[ i ] = silk_SMULWW( gain_adj_Q16, psDD->sAR2_Q14[ i ] ); + } + for( i = 0; i < DECISION_DELAY; i++ ) { + psDD->Pred_Q15[ i ] = silk_SMULWW( gain_adj_Q16, psDD->Pred_Q15[ i ] ); + psDD->Shape_Q14[ i ] = silk_SMULWW( gain_adj_Q16, psDD->Shape_Q14[ i ] ); + } + } + + /* Save inverse gain */ + NSQ->prev_gain_Q16 = Gains_Q16[ subfr ]; + } +} diff --git a/components/opus/libopus/silk/PLC.c b/components/opus/libopus/silk/PLC.c new file mode 100644 index 0000000..f893916 --- /dev/null +++ b/components/opus/libopus/silk/PLC.c @@ -0,0 +1,448 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main.h" +#include "stack_alloc.h" +#include "PLC.h" + +#define NB_ATT 2 +static const opus_int16 HARM_ATT_Q15[NB_ATT] = { 32440, 31130 }; /* 0.99, 0.95 */ +static const opus_int16 PLC_RAND_ATTENUATE_V_Q15[NB_ATT] = { 31130, 26214 }; /* 0.95, 0.8 */ +static const opus_int16 PLC_RAND_ATTENUATE_UV_Q15[NB_ATT] = { 32440, 29491 }; /* 0.99, 0.9 */ + +static OPUS_INLINE void silk_PLC_update( + silk_decoder_state *psDec, /* I/O Decoder state */ + silk_decoder_control *psDecCtrl /* I/O Decoder control */ +); + +static OPUS_INLINE void silk_PLC_conceal( + silk_decoder_state *psDec, /* I/O Decoder state */ + silk_decoder_control *psDecCtrl, /* I/O Decoder control */ + opus_int16 frame[], /* O LPC residual signal */ + int arch /* I Run-time architecture */ +); + + +void silk_PLC_Reset( + silk_decoder_state *psDec /* I/O Decoder state */ +) +{ + psDec->sPLC.pitchL_Q8 = silk_LSHIFT( psDec->frame_length, 8 - 1 ); + psDec->sPLC.prevGain_Q16[ 0 ] = SILK_FIX_CONST( 1, 16 ); + psDec->sPLC.prevGain_Q16[ 1 ] = SILK_FIX_CONST( 1, 16 ); + psDec->sPLC.subfr_length = 20; + psDec->sPLC.nb_subfr = 2; +} + +void silk_PLC( + silk_decoder_state *psDec, /* I/O Decoder state */ + silk_decoder_control *psDecCtrl, /* I/O Decoder control */ + opus_int16 frame[], /* I/O signal */ + opus_int lost, /* I Loss flag */ + int arch /* I Run-time architecture */ +) +{ + /* PLC control function */ + if( psDec->fs_kHz != psDec->sPLC.fs_kHz ) { + silk_PLC_Reset( psDec ); + psDec->sPLC.fs_kHz = psDec->fs_kHz; + } + + if( lost ) { + /****************************/ + /* Generate Signal */ + /****************************/ + silk_PLC_conceal( psDec, psDecCtrl, frame, arch ); + + psDec->lossCnt++; + } else { + /****************************/ + /* Update state */ + /****************************/ + silk_PLC_update( psDec, psDecCtrl ); + } +} + +/**************************************************/ +/* Update state of PLC */ +/**************************************************/ +static OPUS_INLINE void silk_PLC_update( + silk_decoder_state *psDec, /* I/O Decoder state */ + silk_decoder_control *psDecCtrl /* I/O Decoder control */ +) +{ + opus_int32 LTP_Gain_Q14, temp_LTP_Gain_Q14; + opus_int i, j; + silk_PLC_struct *psPLC; + + psPLC = &psDec->sPLC; + + /* Update parameters used in case of packet loss */ + psDec->prevSignalType = psDec->indices.signalType; + LTP_Gain_Q14 = 0; + if( psDec->indices.signalType == TYPE_VOICED ) { + /* Find the parameters for the last subframe which contains a pitch pulse */ + for( j = 0; j * psDec->subfr_length < psDecCtrl->pitchL[ psDec->nb_subfr - 1 ]; j++ ) { + if( j == psDec->nb_subfr ) { + break; + } + temp_LTP_Gain_Q14 = 0; + for( i = 0; i < LTP_ORDER; i++ ) { + temp_LTP_Gain_Q14 += psDecCtrl->LTPCoef_Q14[ ( psDec->nb_subfr - 1 - j ) * LTP_ORDER + i ]; + } + if( temp_LTP_Gain_Q14 > LTP_Gain_Q14 ) { + LTP_Gain_Q14 = temp_LTP_Gain_Q14; + silk_memcpy( psPLC->LTPCoef_Q14, + &psDecCtrl->LTPCoef_Q14[ silk_SMULBB( psDec->nb_subfr - 1 - j, LTP_ORDER ) ], + LTP_ORDER * sizeof( opus_int16 ) ); + + psPLC->pitchL_Q8 = silk_LSHIFT( psDecCtrl->pitchL[ psDec->nb_subfr - 1 - j ], 8 ); + } + } + + silk_memset( psPLC->LTPCoef_Q14, 0, LTP_ORDER * sizeof( opus_int16 ) ); + psPLC->LTPCoef_Q14[ LTP_ORDER / 2 ] = LTP_Gain_Q14; + + /* Limit LT coefs */ + if( LTP_Gain_Q14 < V_PITCH_GAIN_START_MIN_Q14 ) { + opus_int scale_Q10; + opus_int32 tmp; + + tmp = silk_LSHIFT( V_PITCH_GAIN_START_MIN_Q14, 10 ); + scale_Q10 = silk_DIV32( tmp, silk_max( LTP_Gain_Q14, 1 ) ); + for( i = 0; i < LTP_ORDER; i++ ) { + psPLC->LTPCoef_Q14[ i ] = silk_RSHIFT( silk_SMULBB( psPLC->LTPCoef_Q14[ i ], scale_Q10 ), 10 ); + } + } else if( LTP_Gain_Q14 > V_PITCH_GAIN_START_MAX_Q14 ) { + opus_int scale_Q14; + opus_int32 tmp; + + tmp = silk_LSHIFT( V_PITCH_GAIN_START_MAX_Q14, 14 ); + scale_Q14 = silk_DIV32( tmp, silk_max( LTP_Gain_Q14, 1 ) ); + for( i = 0; i < LTP_ORDER; i++ ) { + psPLC->LTPCoef_Q14[ i ] = silk_RSHIFT( silk_SMULBB( psPLC->LTPCoef_Q14[ i ], scale_Q14 ), 14 ); + } + } + } else { + psPLC->pitchL_Q8 = silk_LSHIFT( silk_SMULBB( psDec->fs_kHz, 18 ), 8 ); + silk_memset( psPLC->LTPCoef_Q14, 0, LTP_ORDER * sizeof( opus_int16 )); + } + + /* Save LPC coeficients */ + silk_memcpy( psPLC->prevLPC_Q12, psDecCtrl->PredCoef_Q12[ 1 ], psDec->LPC_order * sizeof( opus_int16 ) ); + psPLC->prevLTP_scale_Q14 = psDecCtrl->LTP_scale_Q14; + + /* Save last two gains */ + silk_memcpy( psPLC->prevGain_Q16, &psDecCtrl->Gains_Q16[ psDec->nb_subfr - 2 ], 2 * sizeof( opus_int32 ) ); + + psPLC->subfr_length = psDec->subfr_length; + psPLC->nb_subfr = psDec->nb_subfr; +} + +static OPUS_INLINE void silk_PLC_energy(opus_int32 *energy1, opus_int *shift1, opus_int32 *energy2, opus_int *shift2, + const opus_int32 *exc_Q14, const opus_int32 *prevGain_Q10, int subfr_length, int nb_subfr) +{ + int i, k; + VARDECL( opus_int16, exc_buf ); + opus_int16 *exc_buf_ptr; + SAVE_STACK; + ALLOC( exc_buf, 2*subfr_length, opus_int16 ); + /* Find random noise component */ + /* Scale previous excitation signal */ + exc_buf_ptr = exc_buf; + for( k = 0; k < 2; k++ ) { + for( i = 0; i < subfr_length; i++ ) { + exc_buf_ptr[ i ] = (opus_int16)silk_SAT16( silk_RSHIFT( + silk_SMULWW( exc_Q14[ i + ( k + nb_subfr - 2 ) * subfr_length ], prevGain_Q10[ k ] ), 8 ) ); + } + exc_buf_ptr += subfr_length; + } + /* Find the subframe with lowest energy of the last two and use that as random noise generator */ + silk_sum_sqr_shift( energy1, shift1, exc_buf, subfr_length ); + silk_sum_sqr_shift( energy2, shift2, &exc_buf[ subfr_length ], subfr_length ); + RESTORE_STACK; +} + +static OPUS_INLINE void silk_PLC_conceal( + silk_decoder_state *psDec, /* I/O Decoder state */ + silk_decoder_control *psDecCtrl, /* I/O Decoder control */ + opus_int16 frame[], /* O LPC residual signal */ + int arch /* I Run-time architecture */ +) +{ + opus_int i, j, k; + opus_int lag, idx, sLTP_buf_idx, shift1, shift2; + opus_int32 rand_seed, harm_Gain_Q15, rand_Gain_Q15, inv_gain_Q30; + opus_int32 energy1, energy2, *rand_ptr, *pred_lag_ptr; + opus_int32 LPC_pred_Q10, LTP_pred_Q12; + opus_int16 rand_scale_Q14; + opus_int16 *B_Q14; + opus_int32 *sLPC_Q14_ptr; + opus_int16 A_Q12[ MAX_LPC_ORDER ]; +#ifdef SMALL_FOOTPRINT + opus_int16 *sLTP; +#else + VARDECL( opus_int16, sLTP ); +#endif + VARDECL( opus_int32, sLTP_Q14 ); + silk_PLC_struct *psPLC = &psDec->sPLC; + opus_int32 prevGain_Q10[2]; + SAVE_STACK; + + ALLOC( sLTP_Q14, psDec->ltp_mem_length + psDec->frame_length, opus_int32 ); +#ifdef SMALL_FOOTPRINT + /* Ugly hack that breaks aliasing rules to save stack: put sLTP at the very end of sLTP_Q14. */ + sLTP = ((opus_int16*)&sLTP_Q14[psDec->ltp_mem_length + psDec->frame_length])-psDec->ltp_mem_length; +#else + ALLOC( sLTP, psDec->ltp_mem_length, opus_int16 ); +#endif + + prevGain_Q10[0] = silk_RSHIFT( psPLC->prevGain_Q16[ 0 ], 6); + prevGain_Q10[1] = silk_RSHIFT( psPLC->prevGain_Q16[ 1 ], 6); + + if( psDec->first_frame_after_reset ) { + silk_memset( psPLC->prevLPC_Q12, 0, sizeof( psPLC->prevLPC_Q12 ) ); + } + + silk_PLC_energy(&energy1, &shift1, &energy2, &shift2, psDec->exc_Q14, prevGain_Q10, psDec->subfr_length, psDec->nb_subfr); + + if( silk_RSHIFT( energy1, shift2 ) < silk_RSHIFT( energy2, shift1 ) ) { + /* First sub-frame has lowest energy */ + rand_ptr = &psDec->exc_Q14[ silk_max_int( 0, ( psPLC->nb_subfr - 1 ) * psPLC->subfr_length - RAND_BUF_SIZE ) ]; + } else { + /* Second sub-frame has lowest energy */ + rand_ptr = &psDec->exc_Q14[ silk_max_int( 0, psPLC->nb_subfr * psPLC->subfr_length - RAND_BUF_SIZE ) ]; + } + + /* Set up Gain to random noise component */ + B_Q14 = psPLC->LTPCoef_Q14; + rand_scale_Q14 = psPLC->randScale_Q14; + + /* Set up attenuation gains */ + harm_Gain_Q15 = HARM_ATT_Q15[ silk_min_int( NB_ATT - 1, psDec->lossCnt ) ]; + if( psDec->prevSignalType == TYPE_VOICED ) { + rand_Gain_Q15 = PLC_RAND_ATTENUATE_V_Q15[ silk_min_int( NB_ATT - 1, psDec->lossCnt ) ]; + } else { + rand_Gain_Q15 = PLC_RAND_ATTENUATE_UV_Q15[ silk_min_int( NB_ATT - 1, psDec->lossCnt ) ]; + } + + /* LPC concealment. Apply BWE to previous LPC */ + silk_bwexpander( psPLC->prevLPC_Q12, psDec->LPC_order, SILK_FIX_CONST( BWE_COEF, 16 ) ); + + /* Preload LPC coeficients to array on stack. Gives small performance gain */ + silk_memcpy( A_Q12, psPLC->prevLPC_Q12, psDec->LPC_order * sizeof( opus_int16 ) ); + + /* First Lost frame */ + if( psDec->lossCnt == 0 ) { + rand_scale_Q14 = 1 << 14; + + /* Reduce random noise Gain for voiced frames */ + if( psDec->prevSignalType == TYPE_VOICED ) { + for( i = 0; i < LTP_ORDER; i++ ) { + rand_scale_Q14 -= B_Q14[ i ]; + } + rand_scale_Q14 = silk_max_16( 3277, rand_scale_Q14 ); /* 0.2 */ + rand_scale_Q14 = (opus_int16)silk_RSHIFT( silk_SMULBB( rand_scale_Q14, psPLC->prevLTP_scale_Q14 ), 14 ); + } else { + /* Reduce random noise for unvoiced frames with high LPC gain */ + opus_int32 invGain_Q30, down_scale_Q30; + + invGain_Q30 = silk_LPC_inverse_pred_gain( psPLC->prevLPC_Q12, psDec->LPC_order, arch ); + + down_scale_Q30 = silk_min_32( silk_RSHIFT( (opus_int32)1 << 30, LOG2_INV_LPC_GAIN_HIGH_THRES ), invGain_Q30 ); + down_scale_Q30 = silk_max_32( silk_RSHIFT( (opus_int32)1 << 30, LOG2_INV_LPC_GAIN_LOW_THRES ), down_scale_Q30 ); + down_scale_Q30 = silk_LSHIFT( down_scale_Q30, LOG2_INV_LPC_GAIN_HIGH_THRES ); + + rand_Gain_Q15 = silk_RSHIFT( silk_SMULWB( down_scale_Q30, rand_Gain_Q15 ), 14 ); + } + } + + rand_seed = psPLC->rand_seed; + lag = silk_RSHIFT_ROUND( psPLC->pitchL_Q8, 8 ); + sLTP_buf_idx = psDec->ltp_mem_length; + + /* Rewhiten LTP state */ + idx = psDec->ltp_mem_length - lag - psDec->LPC_order - LTP_ORDER / 2; + celt_assert( idx > 0 ); + silk_LPC_analysis_filter( &sLTP[ idx ], &psDec->outBuf[ idx ], A_Q12, psDec->ltp_mem_length - idx, psDec->LPC_order, arch ); + /* Scale LTP state */ + inv_gain_Q30 = silk_INVERSE32_varQ( psPLC->prevGain_Q16[ 1 ], 46 ); + inv_gain_Q30 = silk_min( inv_gain_Q30, silk_int32_MAX >> 1 ); + for( i = idx + psDec->LPC_order; i < psDec->ltp_mem_length; i++ ) { + sLTP_Q14[ i ] = silk_SMULWB( inv_gain_Q30, sLTP[ i ] ); + } + + /***************************/ + /* LTP synthesis filtering */ + /***************************/ + for( k = 0; k < psDec->nb_subfr; k++ ) { + /* Set up pointer */ + pred_lag_ptr = &sLTP_Q14[ sLTP_buf_idx - lag + LTP_ORDER / 2 ]; + for( i = 0; i < psDec->subfr_length; i++ ) { + /* Unrolled loop */ + /* Avoids introducing a bias because silk_SMLAWB() always rounds to -inf */ + LTP_pred_Q12 = 2; + LTP_pred_Q12 = silk_SMLAWB( LTP_pred_Q12, pred_lag_ptr[ 0 ], B_Q14[ 0 ] ); + LTP_pred_Q12 = silk_SMLAWB( LTP_pred_Q12, pred_lag_ptr[ -1 ], B_Q14[ 1 ] ); + LTP_pred_Q12 = silk_SMLAWB( LTP_pred_Q12, pred_lag_ptr[ -2 ], B_Q14[ 2 ] ); + LTP_pred_Q12 = silk_SMLAWB( LTP_pred_Q12, pred_lag_ptr[ -3 ], B_Q14[ 3 ] ); + LTP_pred_Q12 = silk_SMLAWB( LTP_pred_Q12, pred_lag_ptr[ -4 ], B_Q14[ 4 ] ); + pred_lag_ptr++; + + /* Generate LPC excitation */ + rand_seed = silk_RAND( rand_seed ); + idx = silk_RSHIFT( rand_seed, 25 ) & RAND_BUF_MASK; + sLTP_Q14[ sLTP_buf_idx ] = silk_LSHIFT32( silk_SMLAWB( LTP_pred_Q12, rand_ptr[ idx ], rand_scale_Q14 ), 2 ); + sLTP_buf_idx++; + } + + /* Gradually reduce LTP gain */ + for( j = 0; j < LTP_ORDER; j++ ) { + B_Q14[ j ] = silk_RSHIFT( silk_SMULBB( harm_Gain_Q15, B_Q14[ j ] ), 15 ); + } + if ( psDec->indices.signalType != TYPE_NO_VOICE_ACTIVITY ) { + /* Gradually reduce excitation gain */ + rand_scale_Q14 = silk_RSHIFT( silk_SMULBB( rand_scale_Q14, rand_Gain_Q15 ), 15 ); + } + + /* Slowly increase pitch lag */ + psPLC->pitchL_Q8 = silk_SMLAWB( psPLC->pitchL_Q8, psPLC->pitchL_Q8, PITCH_DRIFT_FAC_Q16 ); + psPLC->pitchL_Q8 = silk_min_32( psPLC->pitchL_Q8, silk_LSHIFT( silk_SMULBB( MAX_PITCH_LAG_MS, psDec->fs_kHz ), 8 ) ); + lag = silk_RSHIFT_ROUND( psPLC->pitchL_Q8, 8 ); + } + + /***************************/ + /* LPC synthesis filtering */ + /***************************/ + sLPC_Q14_ptr = &sLTP_Q14[ psDec->ltp_mem_length - MAX_LPC_ORDER ]; + + /* Copy LPC state */ + silk_memcpy( sLPC_Q14_ptr, psDec->sLPC_Q14_buf, MAX_LPC_ORDER * sizeof( opus_int32 ) ); + + celt_assert( psDec->LPC_order >= 10 ); /* check that unrolling works */ + for( i = 0; i < psDec->frame_length; i++ ) { + /* partly unrolled */ + /* Avoids introducing a bias because silk_SMLAWB() always rounds to -inf */ + LPC_pred_Q10 = silk_RSHIFT( psDec->LPC_order, 1 ); + LPC_pred_Q10 = silk_SMLAWB( LPC_pred_Q10, sLPC_Q14_ptr[ MAX_LPC_ORDER + i - 1 ], A_Q12[ 0 ] ); + LPC_pred_Q10 = silk_SMLAWB( LPC_pred_Q10, sLPC_Q14_ptr[ MAX_LPC_ORDER + i - 2 ], A_Q12[ 1 ] ); + LPC_pred_Q10 = silk_SMLAWB( LPC_pred_Q10, sLPC_Q14_ptr[ MAX_LPC_ORDER + i - 3 ], A_Q12[ 2 ] ); + LPC_pred_Q10 = silk_SMLAWB( LPC_pred_Q10, sLPC_Q14_ptr[ MAX_LPC_ORDER + i - 4 ], A_Q12[ 3 ] ); + LPC_pred_Q10 = silk_SMLAWB( LPC_pred_Q10, sLPC_Q14_ptr[ MAX_LPC_ORDER + i - 5 ], A_Q12[ 4 ] ); + LPC_pred_Q10 = silk_SMLAWB( LPC_pred_Q10, sLPC_Q14_ptr[ MAX_LPC_ORDER + i - 6 ], A_Q12[ 5 ] ); + LPC_pred_Q10 = silk_SMLAWB( LPC_pred_Q10, sLPC_Q14_ptr[ MAX_LPC_ORDER + i - 7 ], A_Q12[ 6 ] ); + LPC_pred_Q10 = silk_SMLAWB( LPC_pred_Q10, sLPC_Q14_ptr[ MAX_LPC_ORDER + i - 8 ], A_Q12[ 7 ] ); + LPC_pred_Q10 = silk_SMLAWB( LPC_pred_Q10, sLPC_Q14_ptr[ MAX_LPC_ORDER + i - 9 ], A_Q12[ 8 ] ); + LPC_pred_Q10 = silk_SMLAWB( LPC_pred_Q10, sLPC_Q14_ptr[ MAX_LPC_ORDER + i - 10 ], A_Q12[ 9 ] ); + for( j = 10; j < psDec->LPC_order; j++ ) { + LPC_pred_Q10 = silk_SMLAWB( LPC_pred_Q10, sLPC_Q14_ptr[ MAX_LPC_ORDER + i - j - 1 ], A_Q12[ j ] ); + } + + /* Add prediction to LPC excitation */ + sLPC_Q14_ptr[ MAX_LPC_ORDER + i ] = silk_ADD_SAT32( sLPC_Q14_ptr[ MAX_LPC_ORDER + i ], + silk_LSHIFT_SAT32( LPC_pred_Q10, 4 )); + + /* Scale with Gain */ + frame[ i ] = (opus_int16)silk_SAT16( silk_SAT16( silk_RSHIFT_ROUND( silk_SMULWW( sLPC_Q14_ptr[ MAX_LPC_ORDER + i ], prevGain_Q10[ 1 ] ), 8 ) ) ); + } + + /* Save LPC state */ + silk_memcpy( psDec->sLPC_Q14_buf, &sLPC_Q14_ptr[ psDec->frame_length ], MAX_LPC_ORDER * sizeof( opus_int32 ) ); + + /**************************************/ + /* Update states */ + /**************************************/ + psPLC->rand_seed = rand_seed; + psPLC->randScale_Q14 = rand_scale_Q14; + for( i = 0; i < MAX_NB_SUBFR; i++ ) { + psDecCtrl->pitchL[ i ] = lag; + } + RESTORE_STACK; +} + +/* Glues concealed frames with new good received frames */ +void silk_PLC_glue_frames( + silk_decoder_state *psDec, /* I/O decoder state */ + opus_int16 frame[], /* I/O signal */ + opus_int length /* I length of signal */ +) +{ + opus_int i, energy_shift; + opus_int32 energy; + silk_PLC_struct *psPLC; + psPLC = &psDec->sPLC; + + if( psDec->lossCnt ) { + /* Calculate energy in concealed residual */ + silk_sum_sqr_shift( &psPLC->conc_energy, &psPLC->conc_energy_shift, frame, length ); + + psPLC->last_frame_lost = 1; + } else { + if( psDec->sPLC.last_frame_lost ) { + /* Calculate residual in decoded signal if last frame was lost */ + silk_sum_sqr_shift( &energy, &energy_shift, frame, length ); + + /* Normalize energies */ + if( energy_shift > psPLC->conc_energy_shift ) { + psPLC->conc_energy = silk_RSHIFT( psPLC->conc_energy, energy_shift - psPLC->conc_energy_shift ); + } else if( energy_shift < psPLC->conc_energy_shift ) { + energy = silk_RSHIFT( energy, psPLC->conc_energy_shift - energy_shift ); + } + + /* Fade in the energy difference */ + if( energy > psPLC->conc_energy ) { + opus_int32 frac_Q24, LZ; + opus_int32 gain_Q16, slope_Q16; + + LZ = silk_CLZ32( psPLC->conc_energy ); + LZ = LZ - 1; + psPLC->conc_energy = silk_LSHIFT( psPLC->conc_energy, LZ ); + energy = silk_RSHIFT( energy, silk_max_32( 24 - LZ, 0 ) ); + + frac_Q24 = silk_DIV32( psPLC->conc_energy, silk_max( energy, 1 ) ); + + gain_Q16 = silk_LSHIFT( silk_SQRT_APPROX( frac_Q24 ), 4 ); + slope_Q16 = silk_DIV32_16( ( (opus_int32)1 << 16 ) - gain_Q16, length ); + /* Make slope 4x steeper to avoid missing onsets after DTX */ + slope_Q16 = silk_LSHIFT( slope_Q16, 2 ); + + for( i = 0; i < length; i++ ) { + frame[ i ] = silk_SMULWB( gain_Q16, frame[ i ] ); + gain_Q16 += slope_Q16; + if( gain_Q16 > (opus_int32)1 << 16 ) { + break; + } + } + } + } + psPLC->last_frame_lost = 0; + } +} diff --git a/components/opus/libopus/silk/PLC.h b/components/opus/libopus/silk/PLC.h new file mode 100644 index 0000000..6438f51 --- /dev/null +++ b/components/opus/libopus/silk/PLC.h @@ -0,0 +1,62 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifndef SILK_PLC_H +#define SILK_PLC_H + +#include "main.h" + +#define BWE_COEF 0.99 +#define V_PITCH_GAIN_START_MIN_Q14 11469 /* 0.7 in Q14 */ +#define V_PITCH_GAIN_START_MAX_Q14 15565 /* 0.95 in Q14 */ +#define MAX_PITCH_LAG_MS 18 +#define RAND_BUF_SIZE 128 +#define RAND_BUF_MASK ( RAND_BUF_SIZE - 1 ) +#define LOG2_INV_LPC_GAIN_HIGH_THRES 3 /* 2^3 = 8 dB LPC gain */ +#define LOG2_INV_LPC_GAIN_LOW_THRES 8 /* 2^8 = 24 dB LPC gain */ +#define PITCH_DRIFT_FAC_Q16 655 /* 0.01 in Q16 */ + +void silk_PLC_Reset( + silk_decoder_state *psDec /* I/O Decoder state */ +); + +void silk_PLC( + silk_decoder_state *psDec, /* I/O Decoder state */ + silk_decoder_control *psDecCtrl, /* I/O Decoder control */ + opus_int16 frame[], /* I/O signal */ + opus_int lost, /* I Loss flag */ + int arch /* I Run-time architecture */ +); + +void silk_PLC_glue_frames( + silk_decoder_state *psDec, /* I/O decoder state */ + opus_int16 frame[], /* I/O signal */ + opus_int length /* I length of signal */ +); + +#endif + diff --git a/components/opus/libopus/silk/SigProc_FIX.h b/components/opus/libopus/silk/SigProc_FIX.h new file mode 100644 index 0000000..f9ae326 --- /dev/null +++ b/components/opus/libopus/silk/SigProc_FIX.h @@ -0,0 +1,641 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifndef SILK_SIGPROC_FIX_H +#define SILK_SIGPROC_FIX_H + +#ifdef __cplusplus +extern "C" +{ +#endif + +/*#define silk_MACRO_COUNT */ /* Used to enable WMOPS counting */ + +#define SILK_MAX_ORDER_LPC 24 /* max order of the LPC analysis in schur() and k2a() */ + +#include /* for memset(), memcpy(), memmove() */ +#include "typedef.h" +#include "resampler_structs.h" +#include "macros.h" +#include "cpu_support.h" + +#if defined(OPUS_X86_MAY_HAVE_SSE4_1) +#include "x86/SigProc_FIX_sse.h" +#endif + +#if (defined(OPUS_ARM_ASM) || defined(OPUS_ARM_MAY_HAVE_NEON_INTR)) +#include "arm/biquad_alt_arm.h" +#include "arm/LPC_inv_pred_gain_arm.h" +#endif + +/********************************************************************/ +/* SIGNAL PROCESSING FUNCTIONS */ +/********************************************************************/ + +/*! + * Initialize/reset the resampler state for a given pair of input/output sampling rates +*/ +opus_int silk_resampler_init( + silk_resampler_state_struct *S, /* I/O Resampler state */ + opus_int32 Fs_Hz_in, /* I Input sampling rate (Hz) */ + opus_int32 Fs_Hz_out, /* I Output sampling rate (Hz) */ + opus_int forEnc /* I If 1: encoder; if 0: decoder */ +); + +/*! + * Resampler: convert from one sampling rate to another + */ +opus_int silk_resampler( + silk_resampler_state_struct *S, /* I/O Resampler state */ + opus_int16 out[], /* O Output signal */ + const opus_int16 in[], /* I Input signal */ + opus_int32 inLen /* I Number of input samples */ +); + +/*! +* Downsample 2x, mediocre quality +*/ +void silk_resampler_down2( + opus_int32 *S, /* I/O State vector [ 2 ] */ + opus_int16 *out, /* O Output signal [ len ] */ + const opus_int16 *in, /* I Input signal [ floor(len/2) ] */ + opus_int32 inLen /* I Number of input samples */ +); + +/*! + * Downsample by a factor 2/3, low quality +*/ +void silk_resampler_down2_3( + opus_int32 *S, /* I/O State vector [ 6 ] */ + opus_int16 *out, /* O Output signal [ floor(2*inLen/3) ] */ + const opus_int16 *in, /* I Input signal [ inLen ] */ + opus_int32 inLen /* I Number of input samples */ +); + +/*! + * second order ARMA filter; + * slower than biquad() but uses more precise coefficients + * can handle (slowly) varying coefficients + */ +void silk_biquad_alt_stride1( + const opus_int16 *in, /* I input signal */ + const opus_int32 *B_Q28, /* I MA coefficients [3] */ + const opus_int32 *A_Q28, /* I AR coefficients [2] */ + opus_int32 *S, /* I/O State vector [2] */ + opus_int16 *out, /* O output signal */ + const opus_int32 len /* I signal length (must be even) */ +); + +void silk_biquad_alt_stride2_c( + const opus_int16 *in, /* I input signal */ + const opus_int32 *B_Q28, /* I MA coefficients [3] */ + const opus_int32 *A_Q28, /* I AR coefficients [2] */ + opus_int32 *S, /* I/O State vector [4] */ + opus_int16 *out, /* O output signal */ + const opus_int32 len /* I signal length (must be even) */ +); + +/* Variable order MA prediction error filter. */ +void silk_LPC_analysis_filter( + opus_int16 *out, /* O Output signal */ + const opus_int16 *in, /* I Input signal */ + const opus_int16 *B, /* I MA prediction coefficients, Q12 [order] */ + const opus_int32 len, /* I Signal length */ + const opus_int32 d, /* I Filter order */ + int arch /* I Run-time architecture */ +); + +/* Chirp (bandwidth expand) LP AR filter */ +void silk_bwexpander( + opus_int16 *ar, /* I/O AR filter to be expanded (without leading 1) */ + const opus_int d, /* I Length of ar */ + opus_int32 chirp_Q16 /* I Chirp factor (typically in the range 0 to 1) */ +); + +/* Chirp (bandwidth expand) LP AR filter */ +void silk_bwexpander_32( + opus_int32 *ar, /* I/O AR filter to be expanded (without leading 1) */ + const opus_int d, /* I Length of ar */ + opus_int32 chirp_Q16 /* I Chirp factor in Q16 */ +); + +/* Compute inverse of LPC prediction gain, and */ +/* test if LPC coefficients are stable (all poles within unit circle) */ +opus_int32 silk_LPC_inverse_pred_gain_c( /* O Returns inverse prediction gain in energy domain, Q30 */ + const opus_int16 *A_Q12, /* I Prediction coefficients, Q12 [order] */ + const opus_int order /* I Prediction order */ +); + +/* Split signal in two decimated bands using first-order allpass filters */ +void silk_ana_filt_bank_1( + const opus_int16 *in, /* I Input signal [N] */ + opus_int32 *S, /* I/O State vector [2] */ + opus_int16 *outL, /* O Low band [N/2] */ + opus_int16 *outH, /* O High band [N/2] */ + const opus_int32 N /* I Number of input samples */ +); + +#if !defined(OVERRIDE_silk_biquad_alt_stride2) +#define silk_biquad_alt_stride2(in, B_Q28, A_Q28, S, out, len, arch) ((void)(arch), silk_biquad_alt_stride2_c(in, B_Q28, A_Q28, S, out, len)) +#endif + +#if !defined(OVERRIDE_silk_LPC_inverse_pred_gain) +#define silk_LPC_inverse_pred_gain(A_Q12, order, arch) ((void)(arch), silk_LPC_inverse_pred_gain_c(A_Q12, order)) +#endif + +/********************************************************************/ +/* SCALAR FUNCTIONS */ +/********************************************************************/ + +/* Approximation of 128 * log2() (exact inverse of approx 2^() below) */ +/* Convert input to a log scale */ +opus_int32 silk_lin2log( + const opus_int32 inLin /* I input in linear scale */ +); + +/* Approximation of a sigmoid function */ +opus_int silk_sigm_Q15( + opus_int in_Q5 /* I */ +); + +/* Approximation of 2^() (exact inverse of approx log2() above) */ +/* Convert input to a linear scale */ +opus_int32 silk_log2lin( + const opus_int32 inLog_Q7 /* I input on log scale */ +); + +/* Compute number of bits to right shift the sum of squares of a vector */ +/* of int16s to make it fit in an int32 */ +void silk_sum_sqr_shift( + opus_int32 *energy, /* O Energy of x, after shifting to the right */ + opus_int *shift, /* O Number of bits right shift applied to energy */ + const opus_int16 *x, /* I Input vector */ + opus_int len /* I Length of input vector */ +); + +/* Calculates the reflection coefficients from the correlation sequence */ +/* Faster than schur64(), but much less accurate. */ +/* uses SMLAWB(), requiring armv5E and higher. */ +opus_int32 silk_schur( /* O Returns residual energy */ + opus_int16 *rc_Q15, /* O reflection coefficients [order] Q15 */ + const opus_int32 *c, /* I correlations [order+1] */ + const opus_int32 order /* I prediction order */ +); + +/* Calculates the reflection coefficients from the correlation sequence */ +/* Slower than schur(), but more accurate. */ +/* Uses SMULL(), available on armv4 */ +opus_int32 silk_schur64( /* O returns residual energy */ + opus_int32 rc_Q16[], /* O Reflection coefficients [order] Q16 */ + const opus_int32 c[], /* I Correlations [order+1] */ + opus_int32 order /* I Prediction order */ +); + +/* Step up function, converts reflection coefficients to prediction coefficients */ +void silk_k2a( + opus_int32 *A_Q24, /* O Prediction coefficients [order] Q24 */ + const opus_int16 *rc_Q15, /* I Reflection coefficients [order] Q15 */ + const opus_int32 order /* I Prediction order */ +); + +/* Step up function, converts reflection coefficients to prediction coefficients */ +void silk_k2a_Q16( + opus_int32 *A_Q24, /* O Prediction coefficients [order] Q24 */ + const opus_int32 *rc_Q16, /* I Reflection coefficients [order] Q16 */ + const opus_int32 order /* I Prediction order */ +); + +/* Apply sine window to signal vector. */ +/* Window types: */ +/* 1 -> sine window from 0 to pi/2 */ +/* 2 -> sine window from pi/2 to pi */ +/* every other sample of window is linearly interpolated, for speed */ +void silk_apply_sine_window( + opus_int16 px_win[], /* O Pointer to windowed signal */ + const opus_int16 px[], /* I Pointer to input signal */ + const opus_int win_type, /* I Selects a window type */ + const opus_int length /* I Window length, multiple of 4 */ +); + +/* Compute autocorrelation */ +void silk_autocorr( + opus_int32 *results, /* O Result (length correlationCount) */ + opus_int *scale, /* O Scaling of the correlation vector */ + const opus_int16 *inputData, /* I Input data to correlate */ + const opus_int inputDataSize, /* I Length of input */ + const opus_int correlationCount, /* I Number of correlation taps to compute */ + int arch /* I Run-time architecture */ +); + +void silk_decode_pitch( + opus_int16 lagIndex, /* I */ + opus_int8 contourIndex, /* O */ + opus_int pitch_lags[], /* O 4 pitch values */ + const opus_int Fs_kHz, /* I sampling frequency (kHz) */ + const opus_int nb_subfr /* I number of sub frames */ +); + +opus_int silk_pitch_analysis_core( /* O Voicing estimate: 0 voiced, 1 unvoiced */ + const opus_int16 *frame, /* I Signal of length PE_FRAME_LENGTH_MS*Fs_kHz */ + opus_int *pitch_out, /* O 4 pitch lag values */ + opus_int16 *lagIndex, /* O Lag Index */ + opus_int8 *contourIndex, /* O Pitch contour Index */ + opus_int *LTPCorr_Q15, /* I/O Normalized correlation; input: value from previous frame */ + opus_int prevLag, /* I Last lag of previous frame; set to zero is unvoiced */ + const opus_int32 search_thres1_Q16, /* I First stage threshold for lag candidates 0 - 1 */ + const opus_int search_thres2_Q13, /* I Final threshold for lag candidates 0 - 1 */ + const opus_int Fs_kHz, /* I Sample frequency (kHz) */ + const opus_int complexity, /* I Complexity setting, 0-2, where 2 is highest */ + const opus_int nb_subfr, /* I number of 5 ms subframes */ + int arch /* I Run-time architecture */ +); + +/* Compute Normalized Line Spectral Frequencies (NLSFs) from whitening filter coefficients */ +/* If not all roots are found, the a_Q16 coefficients are bandwidth expanded until convergence. */ +void silk_A2NLSF( + opus_int16 *NLSF, /* O Normalized Line Spectral Frequencies in Q15 (0..2^15-1) [d] */ + opus_int32 *a_Q16, /* I/O Monic whitening filter coefficients in Q16 [d] */ + const opus_int d /* I Filter order (must be even) */ +); + +/* compute whitening filter coefficients from normalized line spectral frequencies */ +void silk_NLSF2A( + opus_int16 *a_Q12, /* O monic whitening filter coefficients in Q12, [ d ] */ + const opus_int16 *NLSF, /* I normalized line spectral frequencies in Q15, [ d ] */ + const opus_int d, /* I filter order (should be even) */ + int arch /* I Run-time architecture */ +); + +/* Convert int32 coefficients to int16 coefs and make sure there's no wrap-around */ +void silk_LPC_fit( + opus_int16 *a_QOUT, /* O Output signal */ + opus_int32 *a_QIN, /* I/O Input signal */ + const opus_int QOUT, /* I Input Q domain */ + const opus_int QIN, /* I Input Q domain */ + const opus_int d /* I Filter order */ +); + +void silk_insertion_sort_increasing( + opus_int32 *a, /* I/O Unsorted / Sorted vector */ + opus_int *idx, /* O Index vector for the sorted elements */ + const opus_int L, /* I Vector length */ + const opus_int K /* I Number of correctly sorted positions */ +); + +void silk_insertion_sort_decreasing_int16( + opus_int16 *a, /* I/O Unsorted / Sorted vector */ + opus_int *idx, /* O Index vector for the sorted elements */ + const opus_int L, /* I Vector length */ + const opus_int K /* I Number of correctly sorted positions */ +); + +void silk_insertion_sort_increasing_all_values_int16( + opus_int16 *a, /* I/O Unsorted / Sorted vector */ + const opus_int L /* I Vector length */ +); + +/* NLSF stabilizer, for a single input data vector */ +void silk_NLSF_stabilize( + opus_int16 *NLSF_Q15, /* I/O Unstable/stabilized normalized LSF vector in Q15 [L] */ + const opus_int16 *NDeltaMin_Q15, /* I Min distance vector, NDeltaMin_Q15[L] must be >= 1 [L+1] */ + const opus_int L /* I Number of NLSF parameters in the input vector */ +); + +/* Laroia low complexity NLSF weights */ +void silk_NLSF_VQ_weights_laroia( + opus_int16 *pNLSFW_Q_OUT, /* O Pointer to input vector weights [D] */ + const opus_int16 *pNLSF_Q15, /* I Pointer to input vector [D] */ + const opus_int D /* I Input vector dimension (even) */ +); + +/* Compute reflection coefficients from input signal */ +void silk_burg_modified_c( + opus_int32 *res_nrg, /* O Residual energy */ + opus_int *res_nrg_Q, /* O Residual energy Q value */ + opus_int32 A_Q16[], /* O Prediction coefficients (length order) */ + const opus_int16 x[], /* I Input signal, length: nb_subfr * ( D + subfr_length ) */ + const opus_int32 minInvGain_Q30, /* I Inverse of max prediction gain */ + const opus_int subfr_length, /* I Input signal subframe length (incl. D preceding samples) */ + const opus_int nb_subfr, /* I Number of subframes stacked in x */ + const opus_int D, /* I Order */ + int arch /* I Run-time architecture */ +); + +/* Copy and multiply a vector by a constant */ +void silk_scale_copy_vector16( + opus_int16 *data_out, + const opus_int16 *data_in, + opus_int32 gain_Q16, /* I Gain in Q16 */ + const opus_int dataSize /* I Length */ +); + +/* Some for the LTP related function requires Q26 to work.*/ +void silk_scale_vector32_Q26_lshift_18( + opus_int32 *data1, /* I/O Q0/Q18 */ + opus_int32 gain_Q26, /* I Q26 */ + opus_int dataSize /* I length */ +); + +/********************************************************************/ +/* INLINE ARM MATH */ +/********************************************************************/ + +/* return sum( inVec1[i] * inVec2[i] ) */ + +opus_int32 silk_inner_prod_aligned( + const opus_int16 *const inVec1, /* I input vector 1 */ + const opus_int16 *const inVec2, /* I input vector 2 */ + const opus_int len, /* I vector lengths */ + int arch /* I Run-time architecture */ +); + + +opus_int32 silk_inner_prod_aligned_scale( + const opus_int16 *const inVec1, /* I input vector 1 */ + const opus_int16 *const inVec2, /* I input vector 2 */ + const opus_int scale, /* I number of bits to shift */ + const opus_int len /* I vector lengths */ +); + +opus_int64 silk_inner_prod16_aligned_64_c( + const opus_int16 *inVec1, /* I input vector 1 */ + const opus_int16 *inVec2, /* I input vector 2 */ + const opus_int len /* I vector lengths */ +); + +/********************************************************************/ +/* MACROS */ +/********************************************************************/ + +/* Rotate a32 right by 'rot' bits. Negative rot values result in rotating + left. Output is 32bit int. + Note: contemporary compilers recognize the C expression below and + compile it into a 'ror' instruction if available. No need for OPUS_INLINE ASM! */ +static OPUS_INLINE opus_int32 silk_ROR32( opus_int32 a32, opus_int rot ) +{ + opus_uint32 x = (opus_uint32) a32; + opus_uint32 r = (opus_uint32) rot; + opus_uint32 m = (opus_uint32) -rot; + if( rot == 0 ) { + return a32; + } else if( rot < 0 ) { + return (opus_int32) ((x << m) | (x >> (32 - m))); + } else { + return (opus_int32) ((x << (32 - r)) | (x >> r)); + } +} + +/* Allocate opus_int16 aligned to 4-byte memory address */ +#if EMBEDDED_ARM +#define silk_DWORD_ALIGN __attribute__((aligned(4))) +#else +#define silk_DWORD_ALIGN +#endif + +/* Useful Macros that can be adjusted to other platforms */ +#define silk_memcpy(dest, src, size) memcpy((dest), (src), (size)) +#define silk_memset(dest, src, size) memset((dest), (src), (size)) +#define silk_memmove(dest, src, size) memmove((dest), (src), (size)) + +/* Fixed point macros */ + +/* (a32 * b32) output have to be 32bit int */ +#define silk_MUL(a32, b32) ((a32) * (b32)) + +/* (a32 * b32) output have to be 32bit uint */ +#define silk_MUL_uint(a32, b32) silk_MUL(a32, b32) + +/* a32 + (b32 * c32) output have to be 32bit int */ +#define silk_MLA(a32, b32, c32) silk_ADD32((a32),((b32) * (c32))) + +/* a32 + (b32 * c32) output have to be 32bit uint */ +#define silk_MLA_uint(a32, b32, c32) silk_MLA(a32, b32, c32) + +/* ((a32 >> 16) * (b32 >> 16)) output have to be 32bit int */ +#define silk_SMULTT(a32, b32) (((a32) >> 16) * ((b32) >> 16)) + +/* a32 + ((a32 >> 16) * (b32 >> 16)) output have to be 32bit int */ +#define silk_SMLATT(a32, b32, c32) silk_ADD32((a32),((b32) >> 16) * ((c32) >> 16)) + +#define silk_SMLALBB(a64, b16, c16) silk_ADD64((a64),(opus_int64)((opus_int32)(b16) * (opus_int32)(c16))) + +/* (a32 * b32) */ +#define silk_SMULL(a32, b32) ((opus_int64)(a32) * /*(opus_int64)*/(b32)) + +/* Adds two signed 32-bit values in a way that can overflow, while not relying on undefined behaviour + (just standard two's complement implementation-specific behaviour) */ +#define silk_ADD32_ovflw(a, b) ((opus_int32)((opus_uint32)(a) + (opus_uint32)(b))) +/* Subtractss two signed 32-bit values in a way that can overflow, while not relying on undefined behaviour + (just standard two's complement implementation-specific behaviour) */ +#define silk_SUB32_ovflw(a, b) ((opus_int32)((opus_uint32)(a) - (opus_uint32)(b))) + +/* Multiply-accumulate macros that allow overflow in the addition (ie, no asserts in debug mode) */ +#define silk_MLA_ovflw(a32, b32, c32) silk_ADD32_ovflw((a32), (opus_uint32)(b32) * (opus_uint32)(c32)) +#define silk_SMLABB_ovflw(a32, b32, c32) (silk_ADD32_ovflw((a32) , ((opus_int32)((opus_int16)(b32))) * (opus_int32)((opus_int16)(c32)))) + +#define silk_DIV32_16(a32, b16) ((opus_int32)((a32) / (b16))) +#define silk_DIV32(a32, b32) ((opus_int32)((a32) / (b32))) + +/* These macros enables checking for overflow in silk_API_Debug.h*/ +#define silk_ADD16(a, b) ((a) + (b)) +#define silk_ADD32(a, b) ((a) + (b)) +#define silk_ADD64(a, b) ((a) + (b)) + +#define silk_SUB16(a, b) ((a) - (b)) +#define silk_SUB32(a, b) ((a) - (b)) +#define silk_SUB64(a, b) ((a) - (b)) + +#define silk_SAT8(a) ((a) > silk_int8_MAX ? silk_int8_MAX : \ + ((a) < silk_int8_MIN ? silk_int8_MIN : (a))) +#define silk_SAT16(a) ((a) > silk_int16_MAX ? silk_int16_MAX : \ + ((a) < silk_int16_MIN ? silk_int16_MIN : (a))) +#define silk_SAT32(a) ((a) > silk_int32_MAX ? silk_int32_MAX : \ + ((a) < silk_int32_MIN ? silk_int32_MIN : (a))) + +#define silk_CHECK_FIT8(a) (a) +#define silk_CHECK_FIT16(a) (a) +#define silk_CHECK_FIT32(a) (a) + +#define silk_ADD_SAT16(a, b) (opus_int16)silk_SAT16( silk_ADD32( (opus_int32)(a), (b) ) ) +#define silk_ADD_SAT64(a, b) ((((a) + (b)) & 0x8000000000000000LL) == 0 ? \ + ((((a) & (b)) & 0x8000000000000000LL) != 0 ? silk_int64_MIN : (a)+(b)) : \ + ((((a) | (b)) & 0x8000000000000000LL) == 0 ? silk_int64_MAX : (a)+(b)) ) + +#define silk_SUB_SAT16(a, b) (opus_int16)silk_SAT16( silk_SUB32( (opus_int32)(a), (b) ) ) +#define silk_SUB_SAT64(a, b) ((((a)-(b)) & 0x8000000000000000LL) == 0 ? \ + (( (a) & ((b)^0x8000000000000000LL) & 0x8000000000000000LL) ? silk_int64_MIN : (a)-(b)) : \ + ((((a)^0x8000000000000000LL) & (b) & 0x8000000000000000LL) ? silk_int64_MAX : (a)-(b)) ) + +/* Saturation for positive input values */ +#define silk_POS_SAT32(a) ((a) > silk_int32_MAX ? silk_int32_MAX : (a)) + +/* Add with saturation for positive input values */ +#define silk_ADD_POS_SAT8(a, b) ((((a)+(b)) & 0x80) ? silk_int8_MAX : ((a)+(b))) +#define silk_ADD_POS_SAT16(a, b) ((((a)+(b)) & 0x8000) ? silk_int16_MAX : ((a)+(b))) +#define silk_ADD_POS_SAT32(a, b) ((((opus_uint32)(a)+(opus_uint32)(b)) & 0x80000000) ? silk_int32_MAX : ((a)+(b))) + +#define silk_LSHIFT8(a, shift) ((opus_int8)((opus_uint8)(a)<<(shift))) /* shift >= 0, shift < 8 */ +#define silk_LSHIFT16(a, shift) ((opus_int16)((opus_uint16)(a)<<(shift))) /* shift >= 0, shift < 16 */ +#define silk_LSHIFT32(a, shift) ((opus_int32)((opus_uint32)(a)<<(shift))) /* shift >= 0, shift < 32 */ +#define silk_LSHIFT64(a, shift) ((opus_int64)((opus_uint64)(a)<<(shift))) /* shift >= 0, shift < 64 */ +#define silk_LSHIFT(a, shift) silk_LSHIFT32(a, shift) /* shift >= 0, shift < 32 */ + +#define silk_RSHIFT8(a, shift) ((a)>>(shift)) /* shift >= 0, shift < 8 */ +#define silk_RSHIFT16(a, shift) ((a)>>(shift)) /* shift >= 0, shift < 16 */ +#define silk_RSHIFT32(a, shift) ((a)>>(shift)) /* shift >= 0, shift < 32 */ +#define silk_RSHIFT64(a, shift) ((a)>>(shift)) /* shift >= 0, shift < 64 */ +#define silk_RSHIFT(a, shift) silk_RSHIFT32(a, shift) /* shift >= 0, shift < 32 */ + +/* saturates before shifting */ +#define silk_LSHIFT_SAT32(a, shift) (silk_LSHIFT32( silk_LIMIT( (a), silk_RSHIFT32( silk_int32_MIN, (shift) ), \ + silk_RSHIFT32( silk_int32_MAX, (shift) ) ), (shift) )) + +#define silk_LSHIFT_ovflw(a, shift) ((opus_int32)((opus_uint32)(a) << (shift))) /* shift >= 0, allowed to overflow */ +#define silk_LSHIFT_uint(a, shift) ((a) << (shift)) /* shift >= 0 */ +#define silk_RSHIFT_uint(a, shift) ((a) >> (shift)) /* shift >= 0 */ + +#define silk_ADD_LSHIFT(a, b, shift) ((a) + silk_LSHIFT((b), (shift))) /* shift >= 0 */ +#define silk_ADD_LSHIFT32(a, b, shift) silk_ADD32((a), silk_LSHIFT32((b), (shift))) /* shift >= 0 */ +#define silk_ADD_LSHIFT_uint(a, b, shift) ((a) + silk_LSHIFT_uint((b), (shift))) /* shift >= 0 */ +#define silk_ADD_RSHIFT(a, b, shift) ((a) + silk_RSHIFT((b), (shift))) /* shift >= 0 */ +#define silk_ADD_RSHIFT32(a, b, shift) silk_ADD32((a), silk_RSHIFT32((b), (shift))) /* shift >= 0 */ +#define silk_ADD_RSHIFT_uint(a, b, shift) ((a) + silk_RSHIFT_uint((b), (shift))) /* shift >= 0 */ +#define silk_SUB_LSHIFT32(a, b, shift) silk_SUB32((a), silk_LSHIFT32((b), (shift))) /* shift >= 0 */ +#define silk_SUB_RSHIFT32(a, b, shift) silk_SUB32((a), silk_RSHIFT32((b), (shift))) /* shift >= 0 */ + +/* Requires that shift > 0 */ +#define silk_RSHIFT_ROUND(a, shift) ((shift) == 1 ? ((a) >> 1) + ((a) & 1) : (((a) >> ((shift) - 1)) + 1) >> 1) +#define silk_RSHIFT_ROUND64(a, shift) ((shift) == 1 ? ((a) >> 1) + ((a) & 1) : (((a) >> ((shift) - 1)) + 1) >> 1) + +/* Number of rightshift required to fit the multiplication */ +#define silk_NSHIFT_MUL_32_32(a, b) ( -(31- (32-silk_CLZ32(silk_abs(a)) + (32-silk_CLZ32(silk_abs(b))))) ) +#define silk_NSHIFT_MUL_16_16(a, b) ( -(15- (16-silk_CLZ16(silk_abs(a)) + (16-silk_CLZ16(silk_abs(b))))) ) + + +#define silk_min(a, b) (((a) < (b)) ? (a) : (b)) +#define silk_max(a, b) (((a) > (b)) ? (a) : (b)) + +/* Macro to convert floating-point constants to fixed-point */ +#define SILK_FIX_CONST( C, Q ) ((opus_int32)((C) * ((opus_int64)1 << (Q)) + 0.5)) + +/* silk_min() versions with typecast in the function call */ +static OPUS_INLINE opus_int silk_min_int(opus_int a, opus_int b) +{ + return (((a) < (b)) ? (a) : (b)); +} +static OPUS_INLINE opus_int16 silk_min_16(opus_int16 a, opus_int16 b) +{ + return (((a) < (b)) ? (a) : (b)); +} +static OPUS_INLINE opus_int32 silk_min_32(opus_int32 a, opus_int32 b) +{ + return (((a) < (b)) ? (a) : (b)); +} +static OPUS_INLINE opus_int64 silk_min_64(opus_int64 a, opus_int64 b) +{ + return (((a) < (b)) ? (a) : (b)); +} + +/* silk_min() versions with typecast in the function call */ +static OPUS_INLINE opus_int silk_max_int(opus_int a, opus_int b) +{ + return (((a) > (b)) ? (a) : (b)); +} +static OPUS_INLINE opus_int16 silk_max_16(opus_int16 a, opus_int16 b) +{ + return (((a) > (b)) ? (a) : (b)); +} +static OPUS_INLINE opus_int32 silk_max_32(opus_int32 a, opus_int32 b) +{ + return (((a) > (b)) ? (a) : (b)); +} +static OPUS_INLINE opus_int64 silk_max_64(opus_int64 a, opus_int64 b) +{ + return (((a) > (b)) ? (a) : (b)); +} + +#define silk_LIMIT( a, limit1, limit2) ((limit1) > (limit2) ? ((a) > (limit1) ? (limit1) : ((a) < (limit2) ? (limit2) : (a))) \ + : ((a) > (limit2) ? (limit2) : ((a) < (limit1) ? (limit1) : (a)))) + +#define silk_LIMIT_int silk_LIMIT +#define silk_LIMIT_16 silk_LIMIT +#define silk_LIMIT_32 silk_LIMIT + +#define silk_abs(a) (((a) > 0) ? (a) : -(a)) /* Be careful, silk_abs returns wrong when input equals to silk_intXX_MIN */ +#define silk_abs_int(a) (((a) ^ ((a) >> (8 * sizeof(a) - 1))) - ((a) >> (8 * sizeof(a) - 1))) +#define silk_abs_int32(a) (((a) ^ ((a) >> 31)) - ((a) >> 31)) +#define silk_abs_int64(a) (((a) > 0) ? (a) : -(a)) + +#define silk_sign(a) ((a) > 0 ? 1 : ( (a) < 0 ? -1 : 0 )) + +/* PSEUDO-RANDOM GENERATOR */ +/* Make sure to store the result as the seed for the next call (also in between */ +/* frames), otherwise result won't be random at all. When only using some of the */ +/* bits, take the most significant bits by right-shifting. */ +#define RAND_MULTIPLIER 196314165 +#define RAND_INCREMENT 907633515 +#define silk_RAND(seed) (silk_MLA_ovflw((RAND_INCREMENT), (seed), (RAND_MULTIPLIER))) + +/* Add some multiplication functions that can be easily mapped to ARM. */ + +/* silk_SMMUL: Signed top word multiply. + ARMv6 2 instruction cycles. + ARMv3M+ 3 instruction cycles. use SMULL and ignore LSB registers.(except xM)*/ +/*#define silk_SMMUL(a32, b32) (opus_int32)silk_RSHIFT(silk_SMLAL(silk_SMULWB((a32), (b32)), (a32), silk_RSHIFT_ROUND((b32), 16)), 16)*/ +/* the following seems faster on x86 */ +#define silk_SMMUL(a32, b32) (opus_int32)silk_RSHIFT64(silk_SMULL((a32), (b32)), 32) + +#if !defined(OPUS_X86_MAY_HAVE_SSE4_1) +#define silk_burg_modified(res_nrg, res_nrg_Q, A_Q16, x, minInvGain_Q30, subfr_length, nb_subfr, D, arch) \ + ((void)(arch), silk_burg_modified_c(res_nrg, res_nrg_Q, A_Q16, x, minInvGain_Q30, subfr_length, nb_subfr, D, arch)) + +#define silk_inner_prod16_aligned_64(inVec1, inVec2, len, arch) \ + ((void)(arch),silk_inner_prod16_aligned_64_c(inVec1, inVec2, len)) +#endif + +#include "Inlines.h" +#include "MacroCount.h" +#include "MacroDebug.h" + +#ifdef OPUS_ARM_INLINE_ASM +#include "arm/SigProc_FIX_armv4.h" +#endif + +#ifdef OPUS_ARM_INLINE_EDSP +#include "arm/SigProc_FIX_armv5e.h" +#endif + +#if defined(MIPSr1_ASM) +#include "mips/sigproc_fix_mipsr1.h" +#endif + + +#ifdef __cplusplus +} +#endif + +#endif /* SILK_SIGPROC_FIX_H */ diff --git a/components/opus/libopus/silk/VAD.c b/components/opus/libopus/silk/VAD.c new file mode 100644 index 0000000..d0cda52 --- /dev/null +++ b/components/opus/libopus/silk/VAD.c @@ -0,0 +1,360 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main.h" +#include "stack_alloc.h" + +/* Silk VAD noise level estimation */ +# if !defined(OPUS_X86_MAY_HAVE_SSE4_1) +static OPUS_INLINE void silk_VAD_GetNoiseLevels( + const opus_int32 pX[ VAD_N_BANDS ], /* I subband energies */ + silk_VAD_state *psSilk_VAD /* I/O Pointer to Silk VAD state */ +); +#endif + +/**********************************/ +/* Initialization of the Silk VAD */ +/**********************************/ +opus_int silk_VAD_Init( /* O Return value, 0 if success */ + silk_VAD_state *psSilk_VAD /* I/O Pointer to Silk VAD state */ +) +{ + opus_int b, ret = 0; + + /* reset state memory */ + silk_memset( psSilk_VAD, 0, sizeof( silk_VAD_state ) ); + + /* init noise levels */ + /* Initialize array with approx pink noise levels (psd proportional to inverse of frequency) */ + for( b = 0; b < VAD_N_BANDS; b++ ) { + psSilk_VAD->NoiseLevelBias[ b ] = silk_max_32( silk_DIV32_16( VAD_NOISE_LEVELS_BIAS, b + 1 ), 1 ); + } + + /* Initialize state */ + for( b = 0; b < VAD_N_BANDS; b++ ) { + psSilk_VAD->NL[ b ] = silk_MUL( 100, psSilk_VAD->NoiseLevelBias[ b ] ); + psSilk_VAD->inv_NL[ b ] = silk_DIV32( silk_int32_MAX, psSilk_VAD->NL[ b ] ); + } + psSilk_VAD->counter = 15; + + /* init smoothed energy-to-noise ratio*/ + for( b = 0; b < VAD_N_BANDS; b++ ) { + psSilk_VAD->NrgRatioSmth_Q8[ b ] = 100 * 256; /* 100 * 256 --> 20 dB SNR */ + } + + return( ret ); +} + +/* Weighting factors for tilt measure */ +static const opus_int32 tiltWeights[ VAD_N_BANDS ] = { 30000, 6000, -12000, -12000 }; + +/***************************************/ +/* Get the speech activity level in Q8 */ +/***************************************/ +opus_int silk_VAD_GetSA_Q8_c( /* O Return value, 0 if success */ + silk_encoder_state *psEncC, /* I/O Encoder state */ + const opus_int16 pIn[] /* I PCM input */ +) +{ + opus_int SA_Q15, pSNR_dB_Q7, input_tilt; + opus_int decimated_framelength1, decimated_framelength2; + opus_int decimated_framelength; + opus_int dec_subframe_length, dec_subframe_offset, SNR_Q7, i, b, s; + opus_int32 sumSquared, smooth_coef_Q16; + opus_int16 HPstateTmp; + VARDECL( opus_int16, X ); + opus_int32 Xnrg[ VAD_N_BANDS ]; + opus_int32 NrgToNoiseRatio_Q8[ VAD_N_BANDS ]; + opus_int32 speech_nrg, x_tmp; + opus_int X_offset[ VAD_N_BANDS ]; + opus_int ret = 0; + silk_VAD_state *psSilk_VAD = &psEncC->sVAD; + SAVE_STACK; + + /* Safety checks */ + silk_assert( VAD_N_BANDS == 4 ); + celt_assert( MAX_FRAME_LENGTH >= psEncC->frame_length ); + celt_assert( psEncC->frame_length <= 512 ); + celt_assert( psEncC->frame_length == 8 * silk_RSHIFT( psEncC->frame_length, 3 ) ); + + /***********************/ + /* Filter and Decimate */ + /***********************/ + decimated_framelength1 = silk_RSHIFT( psEncC->frame_length, 1 ); + decimated_framelength2 = silk_RSHIFT( psEncC->frame_length, 2 ); + decimated_framelength = silk_RSHIFT( psEncC->frame_length, 3 ); + /* Decimate into 4 bands: + 0 L 3L L 3L 5L + - -- - -- -- + 8 8 2 4 4 + + [0-1 kHz| temp. |1-2 kHz| 2-4 kHz | 4-8 kHz | + + They're arranged to allow the minimal ( frame_length / 4 ) extra + scratch space during the downsampling process */ + X_offset[ 0 ] = 0; + X_offset[ 1 ] = decimated_framelength + decimated_framelength2; + X_offset[ 2 ] = X_offset[ 1 ] + decimated_framelength; + X_offset[ 3 ] = X_offset[ 2 ] + decimated_framelength2; + ALLOC( X, X_offset[ 3 ] + decimated_framelength1, opus_int16 ); + + /* 0-8 kHz to 0-4 kHz and 4-8 kHz */ + silk_ana_filt_bank_1( pIn, &psSilk_VAD->AnaState[ 0 ], + X, &X[ X_offset[ 3 ] ], psEncC->frame_length ); + + /* 0-4 kHz to 0-2 kHz and 2-4 kHz */ + silk_ana_filt_bank_1( X, &psSilk_VAD->AnaState1[ 0 ], + X, &X[ X_offset[ 2 ] ], decimated_framelength1 ); + + /* 0-2 kHz to 0-1 kHz and 1-2 kHz */ + silk_ana_filt_bank_1( X, &psSilk_VAD->AnaState2[ 0 ], + X, &X[ X_offset[ 1 ] ], decimated_framelength2 ); + + /*********************************************/ + /* HP filter on lowest band (differentiator) */ + /*********************************************/ + X[ decimated_framelength - 1 ] = silk_RSHIFT( X[ decimated_framelength - 1 ], 1 ); + HPstateTmp = X[ decimated_framelength - 1 ]; + for( i = decimated_framelength - 1; i > 0; i-- ) { + X[ i - 1 ] = silk_RSHIFT( X[ i - 1 ], 1 ); + X[ i ] -= X[ i - 1 ]; + } + X[ 0 ] -= psSilk_VAD->HPstate; + psSilk_VAD->HPstate = HPstateTmp; + + /*************************************/ + /* Calculate the energy in each band */ + /*************************************/ + for( b = 0; b < VAD_N_BANDS; b++ ) { + /* Find the decimated framelength in the non-uniformly divided bands */ + decimated_framelength = silk_RSHIFT( psEncC->frame_length, silk_min_int( VAD_N_BANDS - b, VAD_N_BANDS - 1 ) ); + + /* Split length into subframe lengths */ + dec_subframe_length = silk_RSHIFT( decimated_framelength, VAD_INTERNAL_SUBFRAMES_LOG2 ); + dec_subframe_offset = 0; + + /* Compute energy per sub-frame */ + /* initialize with summed energy of last subframe */ + Xnrg[ b ] = psSilk_VAD->XnrgSubfr[ b ]; + for( s = 0; s < VAD_INTERNAL_SUBFRAMES; s++ ) { + sumSquared = 0; + for( i = 0; i < dec_subframe_length; i++ ) { + /* The energy will be less than dec_subframe_length * ( silk_int16_MIN / 8 ) ^ 2. */ + /* Therefore we can accumulate with no risk of overflow (unless dec_subframe_length > 128) */ + x_tmp = silk_RSHIFT( + X[ X_offset[ b ] + i + dec_subframe_offset ], 3 ); + sumSquared = silk_SMLABB( sumSquared, x_tmp, x_tmp ); + + /* Safety check */ + silk_assert( sumSquared >= 0 ); + } + + /* Add/saturate summed energy of current subframe */ + if( s < VAD_INTERNAL_SUBFRAMES - 1 ) { + Xnrg[ b ] = silk_ADD_POS_SAT32( Xnrg[ b ], sumSquared ); + } else { + /* Look-ahead subframe */ + Xnrg[ b ] = silk_ADD_POS_SAT32( Xnrg[ b ], silk_RSHIFT( sumSquared, 1 ) ); + } + + dec_subframe_offset += dec_subframe_length; + } + psSilk_VAD->XnrgSubfr[ b ] = sumSquared; + } + + /********************/ + /* Noise estimation */ + /********************/ + silk_VAD_GetNoiseLevels( &Xnrg[ 0 ], psSilk_VAD ); + + /***********************************************/ + /* Signal-plus-noise to noise ratio estimation */ + /***********************************************/ + sumSquared = 0; + input_tilt = 0; + for( b = 0; b < VAD_N_BANDS; b++ ) { + speech_nrg = Xnrg[ b ] - psSilk_VAD->NL[ b ]; + if( speech_nrg > 0 ) { + /* Divide, with sufficient resolution */ + if( ( Xnrg[ b ] & 0xFF800000 ) == 0 ) { + NrgToNoiseRatio_Q8[ b ] = silk_DIV32( silk_LSHIFT( Xnrg[ b ], 8 ), psSilk_VAD->NL[ b ] + 1 ); + } else { + NrgToNoiseRatio_Q8[ b ] = silk_DIV32( Xnrg[ b ], silk_RSHIFT( psSilk_VAD->NL[ b ], 8 ) + 1 ); + } + + /* Convert to log domain */ + SNR_Q7 = silk_lin2log( NrgToNoiseRatio_Q8[ b ] ) - 8 * 128; + + /* Sum-of-squares */ + sumSquared = silk_SMLABB( sumSquared, SNR_Q7, SNR_Q7 ); /* Q14 */ + + /* Tilt measure */ + if( speech_nrg < ( (opus_int32)1 << 20 ) ) { + /* Scale down SNR value for small subband speech energies */ + SNR_Q7 = silk_SMULWB( silk_LSHIFT( silk_SQRT_APPROX( speech_nrg ), 6 ), SNR_Q7 ); + } + input_tilt = silk_SMLAWB( input_tilt, tiltWeights[ b ], SNR_Q7 ); + } else { + NrgToNoiseRatio_Q8[ b ] = 256; + } + } + + /* Mean-of-squares */ + sumSquared = silk_DIV32_16( sumSquared, VAD_N_BANDS ); /* Q14 */ + + /* Root-mean-square approximation, scale to dBs, and write to output pointer */ + pSNR_dB_Q7 = (opus_int16)( 3 * silk_SQRT_APPROX( sumSquared ) ); /* Q7 */ + + /*********************************/ + /* Speech Probability Estimation */ + /*********************************/ + SA_Q15 = silk_sigm_Q15( silk_SMULWB( VAD_SNR_FACTOR_Q16, pSNR_dB_Q7 ) - VAD_NEGATIVE_OFFSET_Q5 ); + + /**************************/ + /* Frequency Tilt Measure */ + /**************************/ + psEncC->input_tilt_Q15 = silk_LSHIFT( silk_sigm_Q15( input_tilt ) - 16384, 1 ); + + /**************************************************/ + /* Scale the sigmoid output based on power levels */ + /**************************************************/ + speech_nrg = 0; + for( b = 0; b < VAD_N_BANDS; b++ ) { + /* Accumulate signal-without-noise energies, higher frequency bands have more weight */ + speech_nrg += ( b + 1 ) * silk_RSHIFT( Xnrg[ b ] - psSilk_VAD->NL[ b ], 4 ); + } + + if( psEncC->frame_length == 20 * psEncC->fs_kHz ) { + speech_nrg = silk_RSHIFT32( speech_nrg, 1 ); + } + /* Power scaling */ + if( speech_nrg <= 0 ) { + SA_Q15 = silk_RSHIFT( SA_Q15, 1 ); + } else if( speech_nrg < 16384 ) { + speech_nrg = silk_LSHIFT32( speech_nrg, 16 ); + + /* square-root */ + speech_nrg = silk_SQRT_APPROX( speech_nrg ); + SA_Q15 = silk_SMULWB( 32768 + speech_nrg, SA_Q15 ); + } + + /* Copy the resulting speech activity in Q8 */ + psEncC->speech_activity_Q8 = silk_min_int( silk_RSHIFT( SA_Q15, 7 ), silk_uint8_MAX ); + + /***********************************/ + /* Energy Level and SNR estimation */ + /***********************************/ + /* Smoothing coefficient */ + smooth_coef_Q16 = silk_SMULWB( VAD_SNR_SMOOTH_COEF_Q18, silk_SMULWB( (opus_int32)SA_Q15, SA_Q15 ) ); + + if( psEncC->frame_length == 10 * psEncC->fs_kHz ) { + smooth_coef_Q16 >>= 1; + } + + for( b = 0; b < VAD_N_BANDS; b++ ) { + /* compute smoothed energy-to-noise ratio per band */ + psSilk_VAD->NrgRatioSmth_Q8[ b ] = silk_SMLAWB( psSilk_VAD->NrgRatioSmth_Q8[ b ], + NrgToNoiseRatio_Q8[ b ] - psSilk_VAD->NrgRatioSmth_Q8[ b ], smooth_coef_Q16 ); + + /* signal to noise ratio in dB per band */ + SNR_Q7 = 3 * ( silk_lin2log( psSilk_VAD->NrgRatioSmth_Q8[b] ) - 8 * 128 ); + /* quality = sigmoid( 0.25 * ( SNR_dB - 16 ) ); */ + psEncC->input_quality_bands_Q15[ b ] = silk_sigm_Q15( silk_RSHIFT( SNR_Q7 - 16 * 128, 4 ) ); + } + + RESTORE_STACK; + return( ret ); +} + +/**************************/ +/* Noise level estimation */ +/**************************/ +# if !defined(OPUS_X86_MAY_HAVE_SSE4_1) +static OPUS_INLINE +#endif +void silk_VAD_GetNoiseLevels( + const opus_int32 pX[ VAD_N_BANDS ], /* I subband energies */ + silk_VAD_state *psSilk_VAD /* I/O Pointer to Silk VAD state */ +) +{ + opus_int k; + opus_int32 nl, nrg, inv_nrg; + opus_int coef, min_coef; + + /* Initially faster smoothing */ + if( psSilk_VAD->counter < 1000 ) { /* 1000 = 20 sec */ + min_coef = silk_DIV32_16( silk_int16_MAX, silk_RSHIFT( psSilk_VAD->counter, 4 ) + 1 ); + /* Increment frame counter */ + psSilk_VAD->counter++; + } else { + min_coef = 0; + } + + for( k = 0; k < VAD_N_BANDS; k++ ) { + /* Get old noise level estimate for current band */ + nl = psSilk_VAD->NL[ k ]; + silk_assert( nl >= 0 ); + + /* Add bias */ + nrg = silk_ADD_POS_SAT32( pX[ k ], psSilk_VAD->NoiseLevelBias[ k ] ); + silk_assert( nrg > 0 ); + + /* Invert energies */ + inv_nrg = silk_DIV32( silk_int32_MAX, nrg ); + silk_assert( inv_nrg >= 0 ); + + /* Less update when subband energy is high */ + if( nrg > silk_LSHIFT( nl, 3 ) ) { + coef = VAD_NOISE_LEVEL_SMOOTH_COEF_Q16 >> 3; + } else if( nrg < nl ) { + coef = VAD_NOISE_LEVEL_SMOOTH_COEF_Q16; + } else { + coef = silk_SMULWB( silk_SMULWW( inv_nrg, nl ), VAD_NOISE_LEVEL_SMOOTH_COEF_Q16 << 1 ); + } + + /* Initially faster smoothing */ + coef = silk_max_int( coef, min_coef ); + + /* Smooth inverse energies */ + psSilk_VAD->inv_NL[ k ] = silk_SMLAWB( psSilk_VAD->inv_NL[ k ], inv_nrg - psSilk_VAD->inv_NL[ k ], coef ); + silk_assert( psSilk_VAD->inv_NL[ k ] >= 0 ); + + /* Compute noise level by inverting again */ + nl = silk_DIV32( silk_int32_MAX, psSilk_VAD->inv_NL[ k ] ); + silk_assert( nl >= 0 ); + + /* Limit noise levels (guarantee 7 bits of head room) */ + nl = silk_min( nl, 0x00FFFFFF ); + + /* Store as part of state */ + psSilk_VAD->NL[ k ] = nl; + } +} diff --git a/components/opus/libopus/silk/VQ_WMat_EC.c b/components/opus/libopus/silk/VQ_WMat_EC.c new file mode 100644 index 0000000..0f3d545 --- /dev/null +++ b/components/opus/libopus/silk/VQ_WMat_EC.c @@ -0,0 +1,131 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main.h" + +/* Entropy constrained matrix-weighted VQ, hard-coded to 5-element vectors, for a single input data vector */ +void silk_VQ_WMat_EC_c( + opus_int8 *ind, /* O index of best codebook vector */ + opus_int32 *res_nrg_Q15, /* O best residual energy */ + opus_int32 *rate_dist_Q8, /* O best total bitrate */ + opus_int *gain_Q7, /* O sum of absolute LTP coefficients */ + const opus_int32 *XX_Q17, /* I correlation matrix */ + const opus_int32 *xX_Q17, /* I correlation vector */ + const opus_int8 *cb_Q7, /* I codebook */ + const opus_uint8 *cb_gain_Q7, /* I codebook effective gain */ + const opus_uint8 *cl_Q5, /* I code length for each codebook vector */ + const opus_int subfr_len, /* I number of samples per subframe */ + const opus_int32 max_gain_Q7, /* I maximum sum of absolute LTP coefficients */ + const opus_int L /* I number of vectors in codebook */ +) +{ + opus_int k, gain_tmp_Q7; + const opus_int8 *cb_row_Q7; + opus_int32 neg_xX_Q24[ 5 ]; + opus_int32 sum1_Q15, sum2_Q24; + opus_int32 bits_res_Q8, bits_tot_Q8; + + /* Negate and convert to new Q domain */ + neg_xX_Q24[ 0 ] = -silk_LSHIFT32( xX_Q17[ 0 ], 7 ); + neg_xX_Q24[ 1 ] = -silk_LSHIFT32( xX_Q17[ 1 ], 7 ); + neg_xX_Q24[ 2 ] = -silk_LSHIFT32( xX_Q17[ 2 ], 7 ); + neg_xX_Q24[ 3 ] = -silk_LSHIFT32( xX_Q17[ 3 ], 7 ); + neg_xX_Q24[ 4 ] = -silk_LSHIFT32( xX_Q17[ 4 ], 7 ); + + /* Loop over codebook */ + *rate_dist_Q8 = silk_int32_MAX; + *res_nrg_Q15 = silk_int32_MAX; + cb_row_Q7 = cb_Q7; + /* In things go really bad, at least *ind is set to something safe. */ + *ind = 0; + for( k = 0; k < L; k++ ) { + opus_int32 penalty; + gain_tmp_Q7 = cb_gain_Q7[k]; + /* Weighted rate */ + /* Quantization error: 1 - 2 * xX * cb + cb' * XX * cb */ + sum1_Q15 = SILK_FIX_CONST( 1.001, 15 ); + + /* Penalty for too large gain */ + penalty = silk_LSHIFT32( silk_max( silk_SUB32( gain_tmp_Q7, max_gain_Q7 ), 0 ), 11 ); + + /* first row of XX_Q17 */ + sum2_Q24 = silk_MLA( neg_xX_Q24[ 0 ], XX_Q17[ 1 ], cb_row_Q7[ 1 ] ); + sum2_Q24 = silk_MLA( sum2_Q24, XX_Q17[ 2 ], cb_row_Q7[ 2 ] ); + sum2_Q24 = silk_MLA( sum2_Q24, XX_Q17[ 3 ], cb_row_Q7[ 3 ] ); + sum2_Q24 = silk_MLA( sum2_Q24, XX_Q17[ 4 ], cb_row_Q7[ 4 ] ); + sum2_Q24 = silk_LSHIFT32( sum2_Q24, 1 ); + sum2_Q24 = silk_MLA( sum2_Q24, XX_Q17[ 0 ], cb_row_Q7[ 0 ] ); + sum1_Q15 = silk_SMLAWB( sum1_Q15, sum2_Q24, cb_row_Q7[ 0 ] ); + + /* second row of XX_Q17 */ + sum2_Q24 = silk_MLA( neg_xX_Q24[ 1 ], XX_Q17[ 7 ], cb_row_Q7[ 2 ] ); + sum2_Q24 = silk_MLA( sum2_Q24, XX_Q17[ 8 ], cb_row_Q7[ 3 ] ); + sum2_Q24 = silk_MLA( sum2_Q24, XX_Q17[ 9 ], cb_row_Q7[ 4 ] ); + sum2_Q24 = silk_LSHIFT32( sum2_Q24, 1 ); + sum2_Q24 = silk_MLA( sum2_Q24, XX_Q17[ 6 ], cb_row_Q7[ 1 ] ); + sum1_Q15 = silk_SMLAWB( sum1_Q15, sum2_Q24, cb_row_Q7[ 1 ] ); + + /* third row of XX_Q17 */ + sum2_Q24 = silk_MLA( neg_xX_Q24[ 2 ], XX_Q17[ 13 ], cb_row_Q7[ 3 ] ); + sum2_Q24 = silk_MLA( sum2_Q24, XX_Q17[ 14 ], cb_row_Q7[ 4 ] ); + sum2_Q24 = silk_LSHIFT32( sum2_Q24, 1 ); + sum2_Q24 = silk_MLA( sum2_Q24, XX_Q17[ 12 ], cb_row_Q7[ 2 ] ); + sum1_Q15 = silk_SMLAWB( sum1_Q15, sum2_Q24, cb_row_Q7[ 2 ] ); + + /* fourth row of XX_Q17 */ + sum2_Q24 = silk_MLA( neg_xX_Q24[ 3 ], XX_Q17[ 19 ], cb_row_Q7[ 4 ] ); + sum2_Q24 = silk_LSHIFT32( sum2_Q24, 1 ); + sum2_Q24 = silk_MLA( sum2_Q24, XX_Q17[ 18 ], cb_row_Q7[ 3 ] ); + sum1_Q15 = silk_SMLAWB( sum1_Q15, sum2_Q24, cb_row_Q7[ 3 ] ); + + /* last row of XX_Q17 */ + sum2_Q24 = silk_LSHIFT32( neg_xX_Q24[ 4 ], 1 ); + sum2_Q24 = silk_MLA( sum2_Q24, XX_Q17[ 24 ], cb_row_Q7[ 4 ] ); + sum1_Q15 = silk_SMLAWB( sum1_Q15, sum2_Q24, cb_row_Q7[ 4 ] ); + + /* find best */ + if( sum1_Q15 >= 0 ) { + /* Translate residual energy to bits using high-rate assumption (6 dB ==> 1 bit/sample) */ + bits_res_Q8 = silk_SMULBB( subfr_len, silk_lin2log( sum1_Q15 + penalty) - (15 << 7) ); + /* In the following line we reduce the codelength component by half ("-1"); seems to slghtly improve quality */ + bits_tot_Q8 = silk_ADD_LSHIFT32( bits_res_Q8, cl_Q5[ k ], 3-1 ); + if( bits_tot_Q8 <= *rate_dist_Q8 ) { + *rate_dist_Q8 = bits_tot_Q8; + *res_nrg_Q15 = sum1_Q15 + penalty; + *ind = (opus_int8)k; + *gain_Q7 = gain_tmp_Q7; + } + } + + /* Go to next cbk vector */ + cb_row_Q7 += LTP_ORDER; + } +} diff --git a/components/opus/libopus/silk/ana_filt_bank_1.c b/components/opus/libopus/silk/ana_filt_bank_1.c new file mode 100644 index 0000000..24cfb03 --- /dev/null +++ b/components/opus/libopus/silk/ana_filt_bank_1.c @@ -0,0 +1,74 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "SigProc_FIX.h" + +/* Coefficients for 2-band filter bank based on first-order allpass filters */ +static opus_int16 A_fb1_20 = 5394 << 1; +static opus_int16 A_fb1_21 = -24290; /* (opus_int16)(20623 << 1) */ + +/* Split signal into two decimated bands using first-order allpass filters */ +void silk_ana_filt_bank_1( + const opus_int16 *in, /* I Input signal [N] */ + opus_int32 *S, /* I/O State vector [2] */ + opus_int16 *outL, /* O Low band [N/2] */ + opus_int16 *outH, /* O High band [N/2] */ + const opus_int32 N /* I Number of input samples */ +) +{ + opus_int k, N2 = silk_RSHIFT( N, 1 ); + opus_int32 in32, X, Y, out_1, out_2; + + /* Internal variables and state are in Q10 format */ + for( k = 0; k < N2; k++ ) { + /* Convert to Q10 */ + in32 = silk_LSHIFT( (opus_int32)in[ 2 * k ], 10 ); + + /* All-pass section for even input sample */ + Y = silk_SUB32( in32, S[ 0 ] ); + X = silk_SMLAWB( Y, Y, A_fb1_21 ); + out_1 = silk_ADD32( S[ 0 ], X ); + S[ 0 ] = silk_ADD32( in32, X ); + + /* Convert to Q10 */ + in32 = silk_LSHIFT( (opus_int32)in[ 2 * k + 1 ], 10 ); + + /* All-pass section for odd input sample, and add to output of previous section */ + Y = silk_SUB32( in32, S[ 1 ] ); + X = silk_SMULWB( Y, A_fb1_20 ); + out_2 = silk_ADD32( S[ 1 ], X ); + S[ 1 ] = silk_ADD32( in32, X ); + + /* Add/subtract, convert back to int16 and store to output */ + outL[ k ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( silk_ADD32( out_2, out_1 ), 11 ) ); + outH[ k ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( silk_SUB32( out_2, out_1 ), 11 ) ); + } +} diff --git a/components/opus/libopus/silk/arm/LPC_inv_pred_gain_arm.h b/components/opus/libopus/silk/arm/LPC_inv_pred_gain_arm.h new file mode 100644 index 0000000..9895b55 --- /dev/null +++ b/components/opus/libopus/silk/arm/LPC_inv_pred_gain_arm.h @@ -0,0 +1,57 @@ +/*********************************************************************** +Copyright (c) 2017 Google Inc. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifndef SILK_LPC_INV_PRED_GAIN_ARM_H +# define SILK_LPC_INV_PRED_GAIN_ARM_H + +# include "celt/arm/armcpu.h" + +# if defined(OPUS_ARM_MAY_HAVE_NEON_INTR) +opus_int32 silk_LPC_inverse_pred_gain_neon( /* O Returns inverse prediction gain in energy domain, Q30 */ + const opus_int16 *A_Q12, /* I Prediction coefficients, Q12 [order] */ + const opus_int order /* I Prediction order */ +); + +# if !defined(OPUS_HAVE_RTCD) && defined(OPUS_ARM_PRESUME_NEON) +# define OVERRIDE_silk_LPC_inverse_pred_gain (1) +# define silk_LPC_inverse_pred_gain(A_Q12, order, arch) ((void)(arch), PRESUME_NEON(silk_LPC_inverse_pred_gain)(A_Q12, order)) +# endif +# endif + +# if !defined(OVERRIDE_silk_LPC_inverse_pred_gain) +/*Is run-time CPU detection enabled on this platform?*/ +# if defined(OPUS_HAVE_RTCD) && (defined(OPUS_ARM_MAY_HAVE_NEON_INTR) && !defined(OPUS_ARM_PRESUME_NEON_INTR)) +extern opus_int32 (*const SILK_LPC_INVERSE_PRED_GAIN_IMPL[OPUS_ARCHMASK+1])(const opus_int16 *A_Q12, const opus_int order); +# define OVERRIDE_silk_LPC_inverse_pred_gain (1) +# define silk_LPC_inverse_pred_gain(A_Q12, order, arch) ((*SILK_LPC_INVERSE_PRED_GAIN_IMPL[(arch)&OPUS_ARCHMASK])(A_Q12, order)) +# elif defined(OPUS_ARM_PRESUME_NEON_INTR) +# define OVERRIDE_silk_LPC_inverse_pred_gain (1) +# define silk_LPC_inverse_pred_gain(A_Q12, order, arch) ((void)(arch), silk_LPC_inverse_pred_gain_neon(A_Q12, order)) +# endif +# endif + +#endif /* end SILK_LPC_INV_PRED_GAIN_ARM_H */ diff --git a/components/opus/libopus/silk/arm/LPC_inv_pred_gain_neon_intr.c b/components/opus/libopus/silk/arm/LPC_inv_pred_gain_neon_intr.c new file mode 100644 index 0000000..ab426bc --- /dev/null +++ b/components/opus/libopus/silk/arm/LPC_inv_pred_gain_neon_intr.c @@ -0,0 +1,280 @@ +/*********************************************************************** +Copyright (c) 2017 Google Inc. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include "SigProc_FIX.h" +#include "define.h" + +#define QA 24 +#define A_LIMIT SILK_FIX_CONST( 0.99975, QA ) + +#define MUL32_FRAC_Q(a32, b32, Q) ((opus_int32)(silk_RSHIFT_ROUND64(silk_SMULL(a32, b32), Q))) + +/* The difficulty is how to judge a 64-bit signed integer tmp64 is 32-bit overflowed, + * since NEON has no 64-bit min, max or comparison instructions. + * A failed idea is to compare the results of vmovn(tmp64) and vqmovn(tmp64) whether they are equal or not. + * However, this idea fails when the tmp64 is something like 0xFFFFFFF980000000. + * Here we know that mult2Q >= 1, so the highest bit (bit 63, sign bit) of tmp64 must equal to bit 62. + * tmp64 was shifted left by 1 and we got tmp64'. If high_half(tmp64') != 0 and high_half(tmp64') != -1, + * then we know that bit 31 to bit 63 of tmp64 can not all be the sign bit, and therefore tmp64 is 32-bit overflowed. + * That is, we judge if tmp64' > 0x00000000FFFFFFFF, or tmp64' <= 0xFFFFFFFF00000000. + * We use narrowing shift right 31 bits to tmp32' to save data bandwidth and instructions. + * That is, we judge if tmp32' > 0x00000000, or tmp32' <= 0xFFFFFFFF. + */ + +/* Compute inverse of LPC prediction gain, and */ +/* test if LPC coefficients are stable (all poles within unit circle) */ +static OPUS_INLINE opus_int32 LPC_inverse_pred_gain_QA_neon( /* O Returns inverse prediction gain in energy domain, Q30 */ + opus_int32 A_QA[ SILK_MAX_ORDER_LPC ], /* I Prediction coefficients */ + const opus_int order /* I Prediction order */ +) +{ + opus_int k, n, mult2Q; + opus_int32 invGain_Q30, rc_Q31, rc_mult1_Q30, rc_mult2, tmp1, tmp2; + opus_int32 max, min; + int32x4_t max_s32x4, min_s32x4; + int32x2_t max_s32x2, min_s32x2; + + max_s32x4 = vdupq_n_s32( silk_int32_MIN ); + min_s32x4 = vdupq_n_s32( silk_int32_MAX ); + invGain_Q30 = SILK_FIX_CONST( 1, 30 ); + for( k = order - 1; k > 0; k-- ) { + int32x2_t rc_Q31_s32x2, rc_mult2_s32x2; + int64x2_t mult2Q_s64x2; + + /* Check for stability */ + if( ( A_QA[ k ] > A_LIMIT ) || ( A_QA[ k ] < -A_LIMIT ) ) { + return 0; + } + + /* Set RC equal to negated AR coef */ + rc_Q31 = -silk_LSHIFT( A_QA[ k ], 31 - QA ); + + /* rc_mult1_Q30 range: [ 1 : 2^30 ] */ + rc_mult1_Q30 = silk_SUB32( SILK_FIX_CONST( 1, 30 ), silk_SMMUL( rc_Q31, rc_Q31 ) ); + silk_assert( rc_mult1_Q30 > ( 1 << 15 ) ); /* reduce A_LIMIT if fails */ + silk_assert( rc_mult1_Q30 <= ( 1 << 30 ) ); + + /* Update inverse gain */ + /* invGain_Q30 range: [ 0 : 2^30 ] */ + invGain_Q30 = silk_LSHIFT( silk_SMMUL( invGain_Q30, rc_mult1_Q30 ), 2 ); + silk_assert( invGain_Q30 >= 0 ); + silk_assert( invGain_Q30 <= ( 1 << 30 ) ); + if( invGain_Q30 < SILK_FIX_CONST( 1.0f / MAX_PREDICTION_POWER_GAIN, 30 ) ) { + return 0; + } + + /* rc_mult2 range: [ 2^30 : silk_int32_MAX ] */ + mult2Q = 32 - silk_CLZ32( silk_abs( rc_mult1_Q30 ) ); + rc_mult2 = silk_INVERSE32_varQ( rc_mult1_Q30, mult2Q + 30 ); + + /* Update AR coefficient */ + rc_Q31_s32x2 = vdup_n_s32( rc_Q31 ); + mult2Q_s64x2 = vdupq_n_s64( -mult2Q ); + rc_mult2_s32x2 = vdup_n_s32( rc_mult2 ); + + for( n = 0; n < ( ( k + 1 ) >> 1 ) - 3; n += 4 ) { + /* We always calculate extra elements of A_QA buffer when ( k % 4 ) != 0, to take the advantage of SIMD parallelization. */ + int32x4_t tmp1_s32x4, tmp2_s32x4, t0_s32x4, t1_s32x4, s0_s32x4, s1_s32x4, t_QA0_s32x4, t_QA1_s32x4; + int64x2_t t0_s64x2, t1_s64x2, t2_s64x2, t3_s64x2; + tmp1_s32x4 = vld1q_s32( A_QA + n ); + tmp2_s32x4 = vld1q_s32( A_QA + k - n - 4 ); + tmp2_s32x4 = vrev64q_s32( tmp2_s32x4 ); + tmp2_s32x4 = vcombine_s32( vget_high_s32( tmp2_s32x4 ), vget_low_s32( tmp2_s32x4 ) ); + t0_s32x4 = vqrdmulhq_lane_s32( tmp2_s32x4, rc_Q31_s32x2, 0 ); + t1_s32x4 = vqrdmulhq_lane_s32( tmp1_s32x4, rc_Q31_s32x2, 0 ); + t_QA0_s32x4 = vqsubq_s32( tmp1_s32x4, t0_s32x4 ); + t_QA1_s32x4 = vqsubq_s32( tmp2_s32x4, t1_s32x4 ); + t0_s64x2 = vmull_s32( vget_low_s32 ( t_QA0_s32x4 ), rc_mult2_s32x2 ); + t1_s64x2 = vmull_s32( vget_high_s32( t_QA0_s32x4 ), rc_mult2_s32x2 ); + t2_s64x2 = vmull_s32( vget_low_s32 ( t_QA1_s32x4 ), rc_mult2_s32x2 ); + t3_s64x2 = vmull_s32( vget_high_s32( t_QA1_s32x4 ), rc_mult2_s32x2 ); + t0_s64x2 = vrshlq_s64( t0_s64x2, mult2Q_s64x2 ); + t1_s64x2 = vrshlq_s64( t1_s64x2, mult2Q_s64x2 ); + t2_s64x2 = vrshlq_s64( t2_s64x2, mult2Q_s64x2 ); + t3_s64x2 = vrshlq_s64( t3_s64x2, mult2Q_s64x2 ); + t0_s32x4 = vcombine_s32( vmovn_s64( t0_s64x2 ), vmovn_s64( t1_s64x2 ) ); + t1_s32x4 = vcombine_s32( vmovn_s64( t2_s64x2 ), vmovn_s64( t3_s64x2 ) ); + s0_s32x4 = vcombine_s32( vshrn_n_s64( t0_s64x2, 31 ), vshrn_n_s64( t1_s64x2, 31 ) ); + s1_s32x4 = vcombine_s32( vshrn_n_s64( t2_s64x2, 31 ), vshrn_n_s64( t3_s64x2, 31 ) ); + max_s32x4 = vmaxq_s32( max_s32x4, s0_s32x4 ); + min_s32x4 = vminq_s32( min_s32x4, s0_s32x4 ); + max_s32x4 = vmaxq_s32( max_s32x4, s1_s32x4 ); + min_s32x4 = vminq_s32( min_s32x4, s1_s32x4 ); + t1_s32x4 = vrev64q_s32( t1_s32x4 ); + t1_s32x4 = vcombine_s32( vget_high_s32( t1_s32x4 ), vget_low_s32( t1_s32x4 ) ); + vst1q_s32( A_QA + n, t0_s32x4 ); + vst1q_s32( A_QA + k - n - 4, t1_s32x4 ); + } + for( ; n < (k + 1) >> 1; n++ ) { + opus_int64 tmp64; + tmp1 = A_QA[ n ]; + tmp2 = A_QA[ k - n - 1 ]; + tmp64 = silk_RSHIFT_ROUND64( silk_SMULL( silk_SUB_SAT32(tmp1, + MUL32_FRAC_Q( tmp2, rc_Q31, 31 ) ), rc_mult2 ), mult2Q); + if( tmp64 > silk_int32_MAX || tmp64 < silk_int32_MIN ) { + return 0; + } + A_QA[ n ] = ( opus_int32 )tmp64; + tmp64 = silk_RSHIFT_ROUND64( silk_SMULL( silk_SUB_SAT32(tmp2, + MUL32_FRAC_Q( tmp1, rc_Q31, 31 ) ), rc_mult2), mult2Q); + if( tmp64 > silk_int32_MAX || tmp64 < silk_int32_MIN ) { + return 0; + } + A_QA[ k - n - 1 ] = ( opus_int32 )tmp64; + } + } + + /* Check for stability */ + if( ( A_QA[ k ] > A_LIMIT ) || ( A_QA[ k ] < -A_LIMIT ) ) { + return 0; + } + + max_s32x2 = vmax_s32( vget_low_s32( max_s32x4 ), vget_high_s32( max_s32x4 ) ); + min_s32x2 = vmin_s32( vget_low_s32( min_s32x4 ), vget_high_s32( min_s32x4 ) ); + max_s32x2 = vmax_s32( max_s32x2, vreinterpret_s32_s64( vshr_n_s64( vreinterpret_s64_s32( max_s32x2 ), 32 ) ) ); + min_s32x2 = vmin_s32( min_s32x2, vreinterpret_s32_s64( vshr_n_s64( vreinterpret_s64_s32( min_s32x2 ), 32 ) ) ); + max = vget_lane_s32( max_s32x2, 0 ); + min = vget_lane_s32( min_s32x2, 0 ); + if( ( max > 0 ) || ( min < -1 ) ) { + return 0; + } + + /* Set RC equal to negated AR coef */ + rc_Q31 = -silk_LSHIFT( A_QA[ 0 ], 31 - QA ); + + /* Range: [ 1 : 2^30 ] */ + rc_mult1_Q30 = silk_SUB32( SILK_FIX_CONST( 1, 30 ), silk_SMMUL( rc_Q31, rc_Q31 ) ); + + /* Update inverse gain */ + /* Range: [ 0 : 2^30 ] */ + invGain_Q30 = silk_LSHIFT( silk_SMMUL( invGain_Q30, rc_mult1_Q30 ), 2 ); + silk_assert( invGain_Q30 >= 0 ); + silk_assert( invGain_Q30 <= ( 1 << 30 ) ); + if( invGain_Q30 < SILK_FIX_CONST( 1.0f / MAX_PREDICTION_POWER_GAIN, 30 ) ) { + return 0; + } + + return invGain_Q30; +} + +/* For input in Q12 domain */ +opus_int32 silk_LPC_inverse_pred_gain_neon( /* O Returns inverse prediction gain in energy domain, Q30 */ + const opus_int16 *A_Q12, /* I Prediction coefficients, Q12 [order] */ + const opus_int order /* I Prediction order */ +) +{ +#ifdef OPUS_CHECK_ASM + const opus_int32 invGain_Q30_c = silk_LPC_inverse_pred_gain_c( A_Q12, order ); +#endif + + opus_int32 invGain_Q30; + if( ( SILK_MAX_ORDER_LPC != 24 ) || ( order & 1 )) { + invGain_Q30 = silk_LPC_inverse_pred_gain_c( A_Q12, order ); + } + else { + opus_int32 Atmp_QA[ SILK_MAX_ORDER_LPC ]; + opus_int32 DC_resp; + int16x8_t t0_s16x8, t1_s16x8, t2_s16x8; + int32x4_t t0_s32x4; + const opus_int leftover = order & 7; + + /* Increase Q domain of the AR coefficients */ + t0_s16x8 = vld1q_s16( A_Q12 + 0 ); + t1_s16x8 = vld1q_s16( A_Q12 + 8 ); + t2_s16x8 = vld1q_s16( A_Q12 + 16 ); + t0_s32x4 = vpaddlq_s16( t0_s16x8 ); + + switch( order - leftover ) + { + case 24: + t0_s32x4 = vpadalq_s16( t0_s32x4, t2_s16x8 ); + /* FALLTHROUGH */ + + case 16: + t0_s32x4 = vpadalq_s16( t0_s32x4, t1_s16x8 ); + vst1q_s32( Atmp_QA + 16, vshll_n_s16( vget_low_s16 ( t2_s16x8 ), QA - 12 ) ); + vst1q_s32( Atmp_QA + 20, vshll_n_s16( vget_high_s16( t2_s16x8 ), QA - 12 ) ); + /* FALLTHROUGH */ + + case 8: + { + const int32x2_t t_s32x2 = vpadd_s32( vget_low_s32( t0_s32x4 ), vget_high_s32( t0_s32x4 ) ); + const int64x1_t t_s64x1 = vpaddl_s32( t_s32x2 ); + DC_resp = vget_lane_s32( vreinterpret_s32_s64( t_s64x1 ), 0 ); + vst1q_s32( Atmp_QA + 8, vshll_n_s16( vget_low_s16 ( t1_s16x8 ), QA - 12 ) ); + vst1q_s32( Atmp_QA + 12, vshll_n_s16( vget_high_s16( t1_s16x8 ), QA - 12 ) ); + } + break; + + default: + DC_resp = 0; + break; + } + A_Q12 += order - leftover; + + switch( leftover ) + { + case 6: + DC_resp += (opus_int32)A_Q12[ 5 ]; + DC_resp += (opus_int32)A_Q12[ 4 ]; + /* FALLTHROUGH */ + + case 4: + DC_resp += (opus_int32)A_Q12[ 3 ]; + DC_resp += (opus_int32)A_Q12[ 2 ]; + /* FALLTHROUGH */ + + case 2: + DC_resp += (opus_int32)A_Q12[ 1 ]; + DC_resp += (opus_int32)A_Q12[ 0 ]; + /* FALLTHROUGH */ + + default: + break; + } + + /* If the DC is unstable, we don't even need to do the full calculations */ + if( DC_resp >= 4096 ) { + invGain_Q30 = 0; + } else { + vst1q_s32( Atmp_QA + 0, vshll_n_s16( vget_low_s16 ( t0_s16x8 ), QA - 12 ) ); + vst1q_s32( Atmp_QA + 4, vshll_n_s16( vget_high_s16( t0_s16x8 ), QA - 12 ) ); + invGain_Q30 = LPC_inverse_pred_gain_QA_neon( Atmp_QA, order ); + } + } + +#ifdef OPUS_CHECK_ASM + silk_assert( invGain_Q30_c == invGain_Q30 ); +#endif + + return invGain_Q30; +} diff --git a/components/opus/libopus/silk/arm/NSQ_del_dec_arm.h b/components/opus/libopus/silk/arm/NSQ_del_dec_arm.h new file mode 100644 index 0000000..9e76e16 --- /dev/null +++ b/components/opus/libopus/silk/arm/NSQ_del_dec_arm.h @@ -0,0 +1,100 @@ +/*********************************************************************** +Copyright (c) 2017 Google Inc. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifndef SILK_NSQ_DEL_DEC_ARM_H +#define SILK_NSQ_DEL_DEC_ARM_H + +#include "celt/arm/armcpu.h" + +#if defined(OPUS_ARM_MAY_HAVE_NEON_INTR) +void silk_NSQ_del_dec_neon( + const silk_encoder_state *psEncC, silk_nsq_state *NSQ, + SideInfoIndices *psIndices, const opus_int16 x16[], opus_int8 pulses[], + const opus_int16 PredCoef_Q12[2 * MAX_LPC_ORDER], + const opus_int16 LTPCoef_Q14[LTP_ORDER * MAX_NB_SUBFR], + const opus_int16 AR_Q13[MAX_NB_SUBFR * MAX_SHAPE_LPC_ORDER], + const opus_int HarmShapeGain_Q14[MAX_NB_SUBFR], + const opus_int Tilt_Q14[MAX_NB_SUBFR], + const opus_int32 LF_shp_Q14[MAX_NB_SUBFR], + const opus_int32 Gains_Q16[MAX_NB_SUBFR], + const opus_int pitchL[MAX_NB_SUBFR], const opus_int Lambda_Q10, + const opus_int LTP_scale_Q14); + +#if !defined(OPUS_HAVE_RTCD) +#define OVERRIDE_silk_NSQ_del_dec (1) +#define silk_NSQ_del_dec(psEncC, NSQ, psIndices, x16, pulses, PredCoef_Q12, \ + LTPCoef_Q14, AR_Q13, HarmShapeGain_Q14, Tilt_Q14, \ + LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, \ + LTP_scale_Q14, arch) \ + ((void)(arch), \ + PRESUME_NEON(silk_NSQ_del_dec)( \ + psEncC, NSQ, psIndices, x16, pulses, PredCoef_Q12, LTPCoef_Q14, \ + AR_Q13, HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, \ + Lambda_Q10, LTP_scale_Q14)) +#endif +#endif + +#if !defined(OVERRIDE_silk_NSQ_del_dec) +/*Is run-time CPU detection enabled on this platform?*/ +#if defined(OPUS_HAVE_RTCD) && (defined(OPUS_ARM_MAY_HAVE_NEON_INTR) && \ + !defined(OPUS_ARM_PRESUME_NEON_INTR)) +extern void (*const SILK_NSQ_DEL_DEC_IMPL[OPUS_ARCHMASK + 1])( + const silk_encoder_state *psEncC, silk_nsq_state *NSQ, + SideInfoIndices *psIndices, const opus_int16 x16[], opus_int8 pulses[], + const opus_int16 PredCoef_Q12[2 * MAX_LPC_ORDER], + const opus_int16 LTPCoef_Q14[LTP_ORDER * MAX_NB_SUBFR], + const opus_int16 AR_Q13[MAX_NB_SUBFR * MAX_SHAPE_LPC_ORDER], + const opus_int HarmShapeGain_Q14[MAX_NB_SUBFR], + const opus_int Tilt_Q14[MAX_NB_SUBFR], + const opus_int32 LF_shp_Q14[MAX_NB_SUBFR], + const opus_int32 Gains_Q16[MAX_NB_SUBFR], + const opus_int pitchL[MAX_NB_SUBFR], const opus_int Lambda_Q10, + const opus_int LTP_scale_Q14); +#define OVERRIDE_silk_NSQ_del_dec (1) +#define silk_NSQ_del_dec(psEncC, NSQ, psIndices, x16, pulses, PredCoef_Q12, \ + LTPCoef_Q14, AR_Q13, HarmShapeGain_Q14, Tilt_Q14, \ + LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, \ + LTP_scale_Q14, arch) \ + ((*SILK_NSQ_DEL_DEC_IMPL[(arch)&OPUS_ARCHMASK])( \ + psEncC, NSQ, psIndices, x16, pulses, PredCoef_Q12, LTPCoef_Q14, \ + AR_Q13, HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, \ + Lambda_Q10, LTP_scale_Q14)) +#elif defined(OPUS_ARM_PRESUME_NEON_INTR) +#define OVERRIDE_silk_NSQ_del_dec (1) +#define silk_NSQ_del_dec(psEncC, NSQ, psIndices, x16, pulses, PredCoef_Q12, \ + LTPCoef_Q14, AR_Q13, HarmShapeGain_Q14, Tilt_Q14, \ + LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, \ + LTP_scale_Q14, arch) \ + ((void)(arch), \ + silk_NSQ_del_dec_neon(psEncC, NSQ, psIndices, x16, pulses, PredCoef_Q12, \ + LTPCoef_Q14, AR_Q13, HarmShapeGain_Q14, Tilt_Q14, \ + LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, \ + LTP_scale_Q14)) +#endif +#endif + +#endif /* end SILK_NSQ_DEL_DEC_ARM_H */ diff --git a/components/opus/libopus/silk/arm/NSQ_del_dec_neon_intr.c b/components/opus/libopus/silk/arm/NSQ_del_dec_neon_intr.c new file mode 100644 index 0000000..212410f --- /dev/null +++ b/components/opus/libopus/silk/arm/NSQ_del_dec_neon_intr.c @@ -0,0 +1,1124 @@ +/*********************************************************************** +Copyright (c) 2017 Google Inc. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#ifdef OPUS_CHECK_ASM +# include +#endif +#include "main.h" +#include "stack_alloc.h" + +/* NEON intrinsics optimization now can only parallelize up to 4 delay decision states. */ +/* If there are more states, C function is called, and this optimization must be expanded. */ +#define NEON_MAX_DEL_DEC_STATES 4 + +typedef struct { + opus_int32 sLPC_Q14[ MAX_SUB_FRAME_LENGTH + NSQ_LPC_BUF_LENGTH ][ NEON_MAX_DEL_DEC_STATES ]; + opus_int32 RandState[ DECISION_DELAY ][ NEON_MAX_DEL_DEC_STATES ]; + opus_int32 Q_Q10[ DECISION_DELAY ][ NEON_MAX_DEL_DEC_STATES ]; + opus_int32 Xq_Q14[ DECISION_DELAY ][ NEON_MAX_DEL_DEC_STATES ]; + opus_int32 Pred_Q15[ DECISION_DELAY ][ NEON_MAX_DEL_DEC_STATES ]; + opus_int32 Shape_Q14[ DECISION_DELAY ][ NEON_MAX_DEL_DEC_STATES ]; + opus_int32 sAR2_Q14[ MAX_SHAPE_LPC_ORDER ][ NEON_MAX_DEL_DEC_STATES ]; + opus_int32 LF_AR_Q14[ NEON_MAX_DEL_DEC_STATES ]; + opus_int32 Diff_Q14[ NEON_MAX_DEL_DEC_STATES ]; + opus_int32 Seed[ NEON_MAX_DEL_DEC_STATES ]; + opus_int32 SeedInit[ NEON_MAX_DEL_DEC_STATES ]; + opus_int32 RD_Q10[ NEON_MAX_DEL_DEC_STATES ]; +} NSQ_del_decs_struct; + +typedef struct { + opus_int32 Q_Q10[ NEON_MAX_DEL_DEC_STATES ]; + opus_int32 RD_Q10[ NEON_MAX_DEL_DEC_STATES ]; + opus_int32 xq_Q14[ NEON_MAX_DEL_DEC_STATES ]; + opus_int32 LF_AR_Q14[ NEON_MAX_DEL_DEC_STATES ]; + opus_int32 Diff_Q14[ NEON_MAX_DEL_DEC_STATES ]; + opus_int32 sLTP_shp_Q14[ NEON_MAX_DEL_DEC_STATES ]; + opus_int32 LPC_exc_Q14[ NEON_MAX_DEL_DEC_STATES ]; +} NSQ_samples_struct; + +static OPUS_INLINE void silk_nsq_del_dec_scale_states_neon( + const silk_encoder_state *psEncC, /* I Encoder State */ + silk_nsq_state *NSQ, /* I/O NSQ state */ + NSQ_del_decs_struct psDelDec[], /* I/O Delayed decision states */ + const opus_int16 x16[], /* I Input */ + opus_int32 x_sc_Q10[], /* O Input scaled with 1/Gain in Q10 */ + const opus_int16 sLTP[], /* I Re-whitened LTP state in Q0 */ + opus_int32 sLTP_Q15[], /* O LTP state matching scaled input */ + opus_int subfr, /* I Subframe number */ + const opus_int LTP_scale_Q14, /* I LTP state scaling */ + const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I */ + const opus_int pitchL[ MAX_NB_SUBFR ], /* I Pitch lag */ + const opus_int signal_type, /* I Signal type */ + const opus_int decisionDelay /* I Decision delay */ +); + +/******************************************/ +/* Noise shape quantizer for one subframe */ +/******************************************/ +static OPUS_INLINE void silk_noise_shape_quantizer_del_dec_neon( + silk_nsq_state *NSQ, /* I/O NSQ state */ + NSQ_del_decs_struct psDelDec[], /* I/O Delayed decision states */ + opus_int signalType, /* I Signal type */ + const opus_int32 x_Q10[], /* I */ + opus_int8 pulses[], /* O */ + opus_int16 xq[], /* O */ + opus_int32 sLTP_Q15[], /* I/O LTP filter state */ + opus_int32 delayedGain_Q10[], /* I/O Gain delay buffer */ + const opus_int16 a_Q12[], /* I Short term prediction coefs */ + const opus_int16 b_Q14[], /* I Long term prediction coefs */ + const opus_int16 AR_shp_Q13[], /* I Noise shaping coefs */ + opus_int lag, /* I Pitch lag */ + opus_int32 HarmShapeFIRPacked_Q14, /* I */ + opus_int Tilt_Q14, /* I Spectral tilt */ + opus_int32 LF_shp_Q14, /* I */ + opus_int32 Gain_Q16, /* I */ + opus_int Lambda_Q10, /* I */ + opus_int offset_Q10, /* I */ + opus_int length, /* I Input length */ + opus_int subfr, /* I Subframe number */ + opus_int shapingLPCOrder, /* I Shaping LPC filter order */ + opus_int predictLPCOrder, /* I Prediction filter order */ + opus_int warping_Q16, /* I */ + opus_int nStatesDelayedDecision, /* I Number of states in decision tree */ + opus_int *smpl_buf_idx, /* I/O Index to newest samples in buffers */ + opus_int decisionDelay /* I */ +); + +static OPUS_INLINE void copy_winner_state_kernel( + const NSQ_del_decs_struct *psDelDec, + const opus_int offset, + const opus_int last_smple_idx, + const opus_int Winner_ind, + const int32x2_t gain_lo_s32x2, + const int32x2_t gain_hi_s32x2, + const int32x4_t shift_s32x4, + int32x4_t t0_s32x4, + int32x4_t t1_s32x4, + opus_int8 *const pulses, + opus_int16 *pxq, + silk_nsq_state *NSQ +) +{ + int16x8_t t_s16x8; + int32x4_t o0_s32x4, o1_s32x4; + + t0_s32x4 = vld1q_lane_s32( &psDelDec->Q_Q10[ last_smple_idx - 0 ][ Winner_ind ], t0_s32x4, 0 ); + t0_s32x4 = vld1q_lane_s32( &psDelDec->Q_Q10[ last_smple_idx - 1 ][ Winner_ind ], t0_s32x4, 1 ); + t0_s32x4 = vld1q_lane_s32( &psDelDec->Q_Q10[ last_smple_idx - 2 ][ Winner_ind ], t0_s32x4, 2 ); + t0_s32x4 = vld1q_lane_s32( &psDelDec->Q_Q10[ last_smple_idx - 3 ][ Winner_ind ], t0_s32x4, 3 ); + t1_s32x4 = vld1q_lane_s32( &psDelDec->Q_Q10[ last_smple_idx - 4 ][ Winner_ind ], t1_s32x4, 0 ); + t1_s32x4 = vld1q_lane_s32( &psDelDec->Q_Q10[ last_smple_idx - 5 ][ Winner_ind ], t1_s32x4, 1 ); + t1_s32x4 = vld1q_lane_s32( &psDelDec->Q_Q10[ last_smple_idx - 6 ][ Winner_ind ], t1_s32x4, 2 ); + t1_s32x4 = vld1q_lane_s32( &psDelDec->Q_Q10[ last_smple_idx - 7 ][ Winner_ind ], t1_s32x4, 3 ); + t_s16x8 = vcombine_s16( vrshrn_n_s32( t0_s32x4, 10 ), vrshrn_n_s32( t1_s32x4, 10 ) ); + vst1_s8( &pulses[ offset ], vmovn_s16( t_s16x8 ) ); + + t0_s32x4 = vld1q_lane_s32( &psDelDec->Xq_Q14[ last_smple_idx - 0 ][ Winner_ind ], t0_s32x4, 0 ); + t0_s32x4 = vld1q_lane_s32( &psDelDec->Xq_Q14[ last_smple_idx - 1 ][ Winner_ind ], t0_s32x4, 1 ); + t0_s32x4 = vld1q_lane_s32( &psDelDec->Xq_Q14[ last_smple_idx - 2 ][ Winner_ind ], t0_s32x4, 2 ); + t0_s32x4 = vld1q_lane_s32( &psDelDec->Xq_Q14[ last_smple_idx - 3 ][ Winner_ind ], t0_s32x4, 3 ); + t1_s32x4 = vld1q_lane_s32( &psDelDec->Xq_Q14[ last_smple_idx - 4 ][ Winner_ind ], t1_s32x4, 0 ); + t1_s32x4 = vld1q_lane_s32( &psDelDec->Xq_Q14[ last_smple_idx - 5 ][ Winner_ind ], t1_s32x4, 1 ); + t1_s32x4 = vld1q_lane_s32( &psDelDec->Xq_Q14[ last_smple_idx - 6 ][ Winner_ind ], t1_s32x4, 2 ); + t1_s32x4 = vld1q_lane_s32( &psDelDec->Xq_Q14[ last_smple_idx - 7 ][ Winner_ind ], t1_s32x4, 3 ); + o0_s32x4 = vqdmulhq_lane_s32( t0_s32x4, gain_lo_s32x2, 0 ); + o1_s32x4 = vqdmulhq_lane_s32( t1_s32x4, gain_lo_s32x2, 0 ); + o0_s32x4 = vmlaq_lane_s32( o0_s32x4, t0_s32x4, gain_hi_s32x2, 0 ); + o1_s32x4 = vmlaq_lane_s32( o1_s32x4, t1_s32x4, gain_hi_s32x2, 0 ); + o0_s32x4 = vrshlq_s32( o0_s32x4, shift_s32x4 ); + o1_s32x4 = vrshlq_s32( o1_s32x4, shift_s32x4 ); + vst1_s16( &pxq[ offset + 0 ], vqmovn_s32( o0_s32x4 ) ); + vst1_s16( &pxq[ offset + 4 ], vqmovn_s32( o1_s32x4 ) ); + + t0_s32x4 = vld1q_lane_s32( &psDelDec->Shape_Q14[ last_smple_idx - 0 ][ Winner_ind ], t0_s32x4, 0 ); + t0_s32x4 = vld1q_lane_s32( &psDelDec->Shape_Q14[ last_smple_idx - 1 ][ Winner_ind ], t0_s32x4, 1 ); + t0_s32x4 = vld1q_lane_s32( &psDelDec->Shape_Q14[ last_smple_idx - 2 ][ Winner_ind ], t0_s32x4, 2 ); + t0_s32x4 = vld1q_lane_s32( &psDelDec->Shape_Q14[ last_smple_idx - 3 ][ Winner_ind ], t0_s32x4, 3 ); + t1_s32x4 = vld1q_lane_s32( &psDelDec->Shape_Q14[ last_smple_idx - 4 ][ Winner_ind ], t1_s32x4, 0 ); + t1_s32x4 = vld1q_lane_s32( &psDelDec->Shape_Q14[ last_smple_idx - 5 ][ Winner_ind ], t1_s32x4, 1 ); + t1_s32x4 = vld1q_lane_s32( &psDelDec->Shape_Q14[ last_smple_idx - 6 ][ Winner_ind ], t1_s32x4, 2 ); + t1_s32x4 = vld1q_lane_s32( &psDelDec->Shape_Q14[ last_smple_idx - 7 ][ Winner_ind ], t1_s32x4, 3 ); + vst1q_s32( &NSQ->sLTP_shp_Q14[ NSQ->sLTP_shp_buf_idx + offset + 0 ], t0_s32x4 ); + vst1q_s32( &NSQ->sLTP_shp_Q14[ NSQ->sLTP_shp_buf_idx + offset + 4 ], t1_s32x4 ); +} + +static OPUS_INLINE void copy_winner_state( + const NSQ_del_decs_struct *psDelDec, + const opus_int decisionDelay, + const opus_int smpl_buf_idx, + const opus_int Winner_ind, + const opus_int32 gain, + const opus_int32 shift, + opus_int8 *const pulses, + opus_int16 *pxq, + silk_nsq_state *NSQ +) +{ + opus_int i, last_smple_idx; + const int32x2_t gain_lo_s32x2 = vdup_n_s32( silk_LSHIFT32( gain & 0x0000FFFF, 15 ) ); + const int32x2_t gain_hi_s32x2 = vdup_n_s32( gain >> 16 ); + const int32x4_t shift_s32x4 = vdupq_n_s32( -shift ); + int32x4_t t0_s32x4, t1_s32x4; + + t0_s32x4 = t1_s32x4 = vdupq_n_s32( 0 ); /* initialization */ + last_smple_idx = smpl_buf_idx + decisionDelay - 1 + DECISION_DELAY; + if( last_smple_idx >= DECISION_DELAY ) last_smple_idx -= DECISION_DELAY; + if( last_smple_idx >= DECISION_DELAY ) last_smple_idx -= DECISION_DELAY; + + for( i = 0; ( i < ( decisionDelay - 7 ) ) && ( last_smple_idx >= 7 ); i += 8, last_smple_idx -= 8 ) { + copy_winner_state_kernel( psDelDec, i - decisionDelay, last_smple_idx, Winner_ind, gain_lo_s32x2, gain_hi_s32x2, shift_s32x4, t0_s32x4, t1_s32x4, pulses, pxq, NSQ ); + } + for( ; ( i < decisionDelay ) && ( last_smple_idx >= 0 ); i++, last_smple_idx-- ) { + pulses[ i - decisionDelay ] = (opus_int8)silk_RSHIFT_ROUND( psDelDec->Q_Q10[ last_smple_idx ][ Winner_ind ], 10 ); + pxq[ i - decisionDelay ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( silk_SMULWW( psDelDec->Xq_Q14[ last_smple_idx ][ Winner_ind ], gain ), shift ) ); + NSQ->sLTP_shp_Q14[ NSQ->sLTP_shp_buf_idx - decisionDelay + i ] = psDelDec->Shape_Q14[ last_smple_idx ][ Winner_ind ]; + } + + last_smple_idx += DECISION_DELAY; + for( ; i < ( decisionDelay - 7 ); i++, last_smple_idx-- ) { + copy_winner_state_kernel( psDelDec, i - decisionDelay, last_smple_idx, Winner_ind, gain_lo_s32x2, gain_hi_s32x2, shift_s32x4, t0_s32x4, t1_s32x4, pulses, pxq, NSQ ); + } + for( ; i < decisionDelay; i++, last_smple_idx-- ) { + pulses[ i - decisionDelay ] = (opus_int8)silk_RSHIFT_ROUND( psDelDec->Q_Q10[ last_smple_idx ][ Winner_ind ], 10 ); + pxq[ i - decisionDelay ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( silk_SMULWW( psDelDec->Xq_Q14[ last_smple_idx ][ Winner_ind ], gain ), shift ) ); + NSQ->sLTP_shp_Q14[ NSQ->sLTP_shp_buf_idx - decisionDelay + i ] = psDelDec->Shape_Q14[ last_smple_idx ][ Winner_ind ]; + } +} + +void silk_NSQ_del_dec_neon( + const silk_encoder_state *psEncC, /* I Encoder State */ + silk_nsq_state *NSQ, /* I/O NSQ state */ + SideInfoIndices *psIndices, /* I/O Quantization Indices */ + const opus_int16 x16[], /* I Input */ + opus_int8 pulses[], /* O Quantized pulse signal */ + const opus_int16 PredCoef_Q12[ 2 * MAX_LPC_ORDER ], /* I Short term prediction coefs */ + const opus_int16 LTPCoef_Q14[ LTP_ORDER * MAX_NB_SUBFR ], /* I Long term prediction coefs */ + const opus_int16 AR_Q13[ MAX_NB_SUBFR * MAX_SHAPE_LPC_ORDER ], /* I Noise shaping coefs */ + const opus_int HarmShapeGain_Q14[ MAX_NB_SUBFR ], /* I Long term shaping coefs */ + const opus_int Tilt_Q14[ MAX_NB_SUBFR ], /* I Spectral tilt */ + const opus_int32 LF_shp_Q14[ MAX_NB_SUBFR ], /* I Low frequency shaping coefs */ + const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I Quantization step sizes */ + const opus_int pitchL[ MAX_NB_SUBFR ], /* I Pitch lags */ + const opus_int Lambda_Q10, /* I Rate/distortion tradeoff */ + const opus_int LTP_scale_Q14 /* I LTP state scaling */ +) +{ +#ifdef OPUS_CHECK_ASM + silk_nsq_state NSQ_c; + SideInfoIndices psIndices_c; + opus_int8 pulses_c[ MAX_FRAME_LENGTH ]; + const opus_int8 *const pulses_a = pulses; + + ( void )pulses_a; + silk_memcpy( &NSQ_c, NSQ, sizeof( NSQ_c ) ); + silk_memcpy( &psIndices_c, psIndices, sizeof( psIndices_c ) ); + silk_memcpy( pulses_c, pulses, sizeof( pulses_c ) ); + silk_NSQ_del_dec_c( psEncC, &NSQ_c, &psIndices_c, x16, pulses_c, PredCoef_Q12, LTPCoef_Q14, AR_Q13, HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, + pitchL, Lambda_Q10, LTP_scale_Q14 ); +#endif + + /* The optimization parallelizes the different delay decision states. */ + if(( psEncC->nStatesDelayedDecision > NEON_MAX_DEL_DEC_STATES ) || ( psEncC->nStatesDelayedDecision <= 2 )) { + /* NEON intrinsics optimization now can only parallelize up to 4 delay decision states. */ + /* If there are more states, C function is called, and this optimization must be expanded. */ + /* When the number of delay decision states is less than 3, there are penalties using this */ + /* optimization, and C function is called. */ + /* When the number of delay decision states is 2, it's better to specialize another */ + /* structure NSQ_del_dec2_struct and optimize with shorter NEON registers. (Low priority) */ + silk_NSQ_del_dec_c( psEncC, NSQ, psIndices, x16, pulses, PredCoef_Q12, LTPCoef_Q14, AR_Q13, HarmShapeGain_Q14, + Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14 ); + } else { + opus_int i, k, lag, start_idx, LSF_interpolation_flag, Winner_ind, subfr; + opus_int smpl_buf_idx, decisionDelay; + const opus_int16 *A_Q12, *B_Q14, *AR_shp_Q13; + opus_int16 *pxq; + VARDECL( opus_int32, sLTP_Q15 ); + VARDECL( opus_int16, sLTP ); + opus_int32 HarmShapeFIRPacked_Q14; + opus_int offset_Q10; + opus_int32 RDmin_Q10, Gain_Q10; + VARDECL( opus_int32, x_sc_Q10 ); + VARDECL( opus_int32, delayedGain_Q10 ); + VARDECL( NSQ_del_decs_struct, psDelDec ); + int32x4_t t_s32x4; + SAVE_STACK; + + /* Set unvoiced lag to the previous one, overwrite later for voiced */ + lag = NSQ->lagPrev; + + silk_assert( NSQ->prev_gain_Q16 != 0 ); + + /* Initialize delayed decision states */ + ALLOC( psDelDec, 1, NSQ_del_decs_struct ); + /* Only RandState and RD_Q10 need to be initialized to 0. */ + silk_memset( psDelDec->RandState, 0, sizeof( psDelDec->RandState ) ); + vst1q_s32( psDelDec->RD_Q10, vdupq_n_s32( 0 ) ); + + for( k = 0; k < psEncC->nStatesDelayedDecision; k++ ) { + psDelDec->SeedInit[ k ] = psDelDec->Seed[ k ] = ( k + psIndices->Seed ) & 3; + } + vst1q_s32( psDelDec->LF_AR_Q14, vld1q_dup_s32( &NSQ->sLF_AR_shp_Q14 ) ); + vst1q_s32( psDelDec->Diff_Q14, vld1q_dup_s32( &NSQ->sDiff_shp_Q14 ) ); + vst1q_s32( psDelDec->Shape_Q14[ 0 ], vld1q_dup_s32( &NSQ->sLTP_shp_Q14[ psEncC->ltp_mem_length - 1 ] ) ); + for( i = 0; i < NSQ_LPC_BUF_LENGTH; i++ ) { + vst1q_s32( psDelDec->sLPC_Q14[ i ], vld1q_dup_s32( &NSQ->sLPC_Q14[ i ] ) ); + } + for( i = 0; i < (opus_int)( sizeof( NSQ->sAR2_Q14 ) / sizeof( NSQ->sAR2_Q14[ 0 ] ) ); i++ ) { + vst1q_s32( psDelDec->sAR2_Q14[ i ], vld1q_dup_s32( &NSQ->sAR2_Q14[ i ] ) ); + } + + offset_Q10 = silk_Quantization_Offsets_Q10[ psIndices->signalType >> 1 ][ psIndices->quantOffsetType ]; + smpl_buf_idx = 0; /* index of oldest samples */ + + decisionDelay = silk_min_int( DECISION_DELAY, psEncC->subfr_length ); + + /* For voiced frames limit the decision delay to lower than the pitch lag */ + if( psIndices->signalType == TYPE_VOICED ) { + opus_int pitch_min = pitchL[ 0 ]; + for( k = 1; k < psEncC->nb_subfr; k++ ) { + pitch_min = silk_min_int( pitch_min, pitchL[ k ] ); + } + decisionDelay = silk_min_int( decisionDelay, pitch_min - LTP_ORDER / 2 - 1 ); + } else { + if( lag > 0 ) { + decisionDelay = silk_min_int( decisionDelay, lag - LTP_ORDER / 2 - 1 ); + } + } + + if( psIndices->NLSFInterpCoef_Q2 == 4 ) { + LSF_interpolation_flag = 0; + } else { + LSF_interpolation_flag = 1; + } + + ALLOC( sLTP_Q15, psEncC->ltp_mem_length + psEncC->frame_length, opus_int32 ); + ALLOC( sLTP, psEncC->ltp_mem_length + psEncC->frame_length, opus_int16 ); + ALLOC( x_sc_Q10, psEncC->subfr_length, opus_int32 ); + ALLOC( delayedGain_Q10, DECISION_DELAY, opus_int32 ); + /* Set up pointers to start of sub frame */ + pxq = &NSQ->xq[ psEncC->ltp_mem_length ]; + NSQ->sLTP_shp_buf_idx = psEncC->ltp_mem_length; + NSQ->sLTP_buf_idx = psEncC->ltp_mem_length; + subfr = 0; + for( k = 0; k < psEncC->nb_subfr; k++ ) { + A_Q12 = &PredCoef_Q12[ ( ( k >> 1 ) | ( 1 - LSF_interpolation_flag ) ) * MAX_LPC_ORDER ]; + B_Q14 = <PCoef_Q14[ k * LTP_ORDER ]; + AR_shp_Q13 = &AR_Q13[ k * MAX_SHAPE_LPC_ORDER ]; + + /* Noise shape parameters */ + silk_assert( HarmShapeGain_Q14[ k ] >= 0 ); + HarmShapeFIRPacked_Q14 = silk_RSHIFT( HarmShapeGain_Q14[ k ], 2 ); + HarmShapeFIRPacked_Q14 |= silk_LSHIFT( (opus_int32)silk_RSHIFT( HarmShapeGain_Q14[ k ], 1 ), 16 ); + + NSQ->rewhite_flag = 0; + if( psIndices->signalType == TYPE_VOICED ) { + /* Voiced */ + lag = pitchL[ k ]; + + /* Re-whitening */ + if( ( k & ( 3 - silk_LSHIFT( LSF_interpolation_flag, 1 ) ) ) == 0 ) { + if( k == 2 ) { + /* RESET DELAYED DECISIONS */ + /* Find winner */ + int32x4_t RD_Q10_s32x4; + RDmin_Q10 = psDelDec->RD_Q10[ 0 ]; + Winner_ind = 0; + for( i = 1; i < psEncC->nStatesDelayedDecision; i++ ) { + if( psDelDec->RD_Q10[ i ] < RDmin_Q10 ) { + RDmin_Q10 = psDelDec->RD_Q10[ i ]; + Winner_ind = i; + } + } + psDelDec->RD_Q10[ Winner_ind ] -= ( silk_int32_MAX >> 4 ); + RD_Q10_s32x4 = vld1q_s32( psDelDec->RD_Q10 ); + RD_Q10_s32x4 = vaddq_s32( RD_Q10_s32x4, vdupq_n_s32( silk_int32_MAX >> 4 ) ); + vst1q_s32( psDelDec->RD_Q10, RD_Q10_s32x4 ); + + /* Copy final part of signals from winner state to output and long-term filter states */ + copy_winner_state( psDelDec, decisionDelay, smpl_buf_idx, Winner_ind, Gains_Q16[ 1 ], 14, pulses, pxq, NSQ ); + + subfr = 0; + } + + /* Rewhiten with new A coefs */ + start_idx = psEncC->ltp_mem_length - lag - psEncC->predictLPCOrder - LTP_ORDER / 2; + silk_assert( start_idx > 0 ); + + silk_LPC_analysis_filter( &sLTP[ start_idx ], &NSQ->xq[ start_idx + k * psEncC->subfr_length ], + A_Q12, psEncC->ltp_mem_length - start_idx, psEncC->predictLPCOrder, psEncC->arch ); + + NSQ->sLTP_buf_idx = psEncC->ltp_mem_length; + NSQ->rewhite_flag = 1; + } + } + + silk_nsq_del_dec_scale_states_neon( psEncC, NSQ, psDelDec, x16, x_sc_Q10, sLTP, sLTP_Q15, k, + LTP_scale_Q14, Gains_Q16, pitchL, psIndices->signalType, decisionDelay ); + + silk_noise_shape_quantizer_del_dec_neon( NSQ, psDelDec, psIndices->signalType, x_sc_Q10, pulses, pxq, sLTP_Q15, + delayedGain_Q10, A_Q12, B_Q14, AR_shp_Q13, lag, HarmShapeFIRPacked_Q14, Tilt_Q14[ k ], LF_shp_Q14[ k ], + Gains_Q16[ k ], Lambda_Q10, offset_Q10, psEncC->subfr_length, subfr++, psEncC->shapingLPCOrder, + psEncC->predictLPCOrder, psEncC->warping_Q16, psEncC->nStatesDelayedDecision, &smpl_buf_idx, decisionDelay ); + + x16 += psEncC->subfr_length; + pulses += psEncC->subfr_length; + pxq += psEncC->subfr_length; + } + + /* Find winner */ + RDmin_Q10 = psDelDec->RD_Q10[ 0 ]; + Winner_ind = 0; + for( k = 1; k < psEncC->nStatesDelayedDecision; k++ ) { + if( psDelDec->RD_Q10[ k ] < RDmin_Q10 ) { + RDmin_Q10 = psDelDec->RD_Q10[ k ]; + Winner_ind = k; + } + } + + /* Copy final part of signals from winner state to output and long-term filter states */ + psIndices->Seed = psDelDec->SeedInit[ Winner_ind ]; + Gain_Q10 = silk_RSHIFT32( Gains_Q16[ psEncC->nb_subfr - 1 ], 6 ); + copy_winner_state( psDelDec, decisionDelay, smpl_buf_idx, Winner_ind, Gain_Q10, 8, pulses, pxq, NSQ ); + + t_s32x4 = vdupq_n_s32( 0 ); /* initialization */ + for( i = 0; i < ( NSQ_LPC_BUF_LENGTH - 3 ); i += 4 ) { + t_s32x4 = vld1q_lane_s32( &psDelDec->sLPC_Q14[ i + 0 ][ Winner_ind ], t_s32x4, 0 ); + t_s32x4 = vld1q_lane_s32( &psDelDec->sLPC_Q14[ i + 1 ][ Winner_ind ], t_s32x4, 1 ); + t_s32x4 = vld1q_lane_s32( &psDelDec->sLPC_Q14[ i + 2 ][ Winner_ind ], t_s32x4, 2 ); + t_s32x4 = vld1q_lane_s32( &psDelDec->sLPC_Q14[ i + 3 ][ Winner_ind ], t_s32x4, 3 ); + vst1q_s32( &NSQ->sLPC_Q14[ i ], t_s32x4 ); + } + + for( ; i < NSQ_LPC_BUF_LENGTH; i++ ) { + NSQ->sLPC_Q14[ i ] = psDelDec->sLPC_Q14[ i ][ Winner_ind ]; + } + + for( i = 0; i < (opus_int)( sizeof( NSQ->sAR2_Q14 ) / sizeof( NSQ->sAR2_Q14[ 0 ] ) - 3 ); i += 4 ) { + t_s32x4 = vld1q_lane_s32( &psDelDec->sAR2_Q14[ i + 0 ][ Winner_ind ], t_s32x4, 0 ); + t_s32x4 = vld1q_lane_s32( &psDelDec->sAR2_Q14[ i + 1 ][ Winner_ind ], t_s32x4, 1 ); + t_s32x4 = vld1q_lane_s32( &psDelDec->sAR2_Q14[ i + 2 ][ Winner_ind ], t_s32x4, 2 ); + t_s32x4 = vld1q_lane_s32( &psDelDec->sAR2_Q14[ i + 3 ][ Winner_ind ], t_s32x4, 3 ); + vst1q_s32( &NSQ->sAR2_Q14[ i ], t_s32x4 ); + } + + for( ; i < (opus_int)( sizeof( NSQ->sAR2_Q14 ) / sizeof( NSQ->sAR2_Q14[ 0 ] ) ); i++ ) { + NSQ->sAR2_Q14[ i ] = psDelDec->sAR2_Q14[ i ][ Winner_ind ]; + } + + /* Update states */ + NSQ->sLF_AR_shp_Q14 = psDelDec->LF_AR_Q14[ Winner_ind ]; + NSQ->sDiff_shp_Q14 = psDelDec->Diff_Q14[ Winner_ind ]; + NSQ->lagPrev = pitchL[ psEncC->nb_subfr - 1 ]; + + /* Save quantized speech signal */ + silk_memmove( NSQ->xq, &NSQ->xq[ psEncC->frame_length ], psEncC->ltp_mem_length * sizeof( opus_int16 ) ); + silk_memmove( NSQ->sLTP_shp_Q14, &NSQ->sLTP_shp_Q14[ psEncC->frame_length ], psEncC->ltp_mem_length * sizeof( opus_int32 ) ); + RESTORE_STACK; + } + +#ifdef OPUS_CHECK_ASM + silk_assert( !memcmp( &NSQ_c, NSQ, sizeof( NSQ_c ) ) ); + silk_assert( !memcmp( &psIndices_c, psIndices, sizeof( psIndices_c ) ) ); + silk_assert( !memcmp( pulses_c, pulses_a, sizeof( pulses_c ) ) ); +#endif +} + +/******************************************/ +/* Noise shape quantizer for one subframe */ +/******************************************/ +/* Note: Function silk_short_prediction_create_arch_coef_neon() defined in NSQ_neon.h is actually a hacking C function. */ +/* Therefore here we append "_local" to the NEON function name to avoid confusion. */ +static OPUS_INLINE void silk_short_prediction_create_arch_coef_neon_local(opus_int32 *out, const opus_int16 *in, opus_int order) +{ + int16x8_t t_s16x8; + int32x4_t t0_s32x4, t1_s32x4, t2_s32x4, t3_s32x4; + silk_assert( order == 10 || order == 16 ); + + t_s16x8 = vld1q_s16( in + 0 ); /* 7 6 5 4 3 2 1 0 */ + t_s16x8 = vrev64q_s16( t_s16x8 ); /* 4 5 6 7 0 1 2 3 */ + t2_s32x4 = vshll_n_s16( vget_high_s16( t_s16x8 ), 15 ); /* 4 5 6 7 */ + t3_s32x4 = vshll_n_s16( vget_low_s16( t_s16x8 ), 15 ); /* 0 1 2 3 */ + + if( order == 16 ) { + t_s16x8 = vld1q_s16( in + 8 ); /* F E D C B A 9 8 */ + t_s16x8 = vrev64q_s16( t_s16x8 ); /* C D E F 8 9 A B */ + t0_s32x4 = vshll_n_s16( vget_high_s16( t_s16x8 ), 15 ); /* C D E F */ + t1_s32x4 = vshll_n_s16( vget_low_s16( t_s16x8 ), 15 ); /* 8 9 A B */ + } else { + int16x4_t t_s16x4; + + t0_s32x4 = vdupq_n_s32( 0 ); /* zero zero zero zero */ + t_s16x4 = vld1_s16( in + 6 ); /* 9 8 7 6 */ + t_s16x4 = vrev64_s16( t_s16x4 ); /* 6 7 8 9 */ + t1_s32x4 = vshll_n_s16( t_s16x4, 15 ); + t1_s32x4 = vcombine_s32( vget_low_s32(t0_s32x4), vget_low_s32( t1_s32x4 ) ); /* 8 9 zero zero */ + } + vst1q_s32( out + 0, t0_s32x4 ); + vst1q_s32( out + 4, t1_s32x4 ); + vst1q_s32( out + 8, t2_s32x4 ); + vst1q_s32( out + 12, t3_s32x4 ); +} + +static OPUS_INLINE int32x4_t silk_SMLAWB_lane0_neon( + const int32x4_t out_s32x4, + const int32x4_t in_s32x4, + const int32x2_t coef_s32x2 +) +{ + return vaddq_s32( out_s32x4, vqdmulhq_lane_s32( in_s32x4, coef_s32x2, 0 ) ); +} + +static OPUS_INLINE int32x4_t silk_SMLAWB_lane1_neon( + const int32x4_t out_s32x4, + const int32x4_t in_s32x4, + const int32x2_t coef_s32x2 +) +{ + return vaddq_s32( out_s32x4, vqdmulhq_lane_s32( in_s32x4, coef_s32x2, 1 ) ); +} + +/* Note: This function has different return value than silk_noise_shape_quantizer_short_prediction_neon(). */ +/* Therefore here we append "_local" to the function name to avoid confusion. */ +static OPUS_INLINE int32x4_t silk_noise_shape_quantizer_short_prediction_neon_local(const opus_int32 *buf32, const opus_int32 *a_Q12_arch, opus_int order) +{ + const int32x4_t a_Q12_arch0_s32x4 = vld1q_s32( a_Q12_arch + 0 ); + const int32x4_t a_Q12_arch1_s32x4 = vld1q_s32( a_Q12_arch + 4 ); + const int32x4_t a_Q12_arch2_s32x4 = vld1q_s32( a_Q12_arch + 8 ); + const int32x4_t a_Q12_arch3_s32x4 = vld1q_s32( a_Q12_arch + 12 ); + int32x4_t LPC_pred_Q14_s32x4; + + silk_assert( order == 10 || order == 16 ); + /* Avoids introducing a bias because silk_SMLAWB() always rounds to -inf */ + LPC_pred_Q14_s32x4 = vdupq_n_s32( silk_RSHIFT( order, 1 ) ); + LPC_pred_Q14_s32x4 = silk_SMLAWB_lane0_neon( LPC_pred_Q14_s32x4, vld1q_s32( buf32 + 0 * NEON_MAX_DEL_DEC_STATES ), vget_low_s32( a_Q12_arch0_s32x4 ) ); + LPC_pred_Q14_s32x4 = silk_SMLAWB_lane1_neon( LPC_pred_Q14_s32x4, vld1q_s32( buf32 + 1 * NEON_MAX_DEL_DEC_STATES ), vget_low_s32( a_Q12_arch0_s32x4 ) ); + LPC_pred_Q14_s32x4 = silk_SMLAWB_lane0_neon( LPC_pred_Q14_s32x4, vld1q_s32( buf32 + 2 * NEON_MAX_DEL_DEC_STATES ), vget_high_s32( a_Q12_arch0_s32x4 ) ); + LPC_pred_Q14_s32x4 = silk_SMLAWB_lane1_neon( LPC_pred_Q14_s32x4, vld1q_s32( buf32 + 3 * NEON_MAX_DEL_DEC_STATES ), vget_high_s32( a_Q12_arch0_s32x4 ) ); + LPC_pred_Q14_s32x4 = silk_SMLAWB_lane0_neon( LPC_pred_Q14_s32x4, vld1q_s32( buf32 + 4 * NEON_MAX_DEL_DEC_STATES ), vget_low_s32( a_Q12_arch1_s32x4 ) ); + LPC_pred_Q14_s32x4 = silk_SMLAWB_lane1_neon( LPC_pred_Q14_s32x4, vld1q_s32( buf32 + 5 * NEON_MAX_DEL_DEC_STATES ), vget_low_s32( a_Q12_arch1_s32x4 ) ); + LPC_pred_Q14_s32x4 = silk_SMLAWB_lane0_neon( LPC_pred_Q14_s32x4, vld1q_s32( buf32 + 6 * NEON_MAX_DEL_DEC_STATES ), vget_high_s32( a_Q12_arch1_s32x4 ) ); + LPC_pred_Q14_s32x4 = silk_SMLAWB_lane1_neon( LPC_pred_Q14_s32x4, vld1q_s32( buf32 + 7 * NEON_MAX_DEL_DEC_STATES ), vget_high_s32( a_Q12_arch1_s32x4 ) ); + LPC_pred_Q14_s32x4 = silk_SMLAWB_lane0_neon( LPC_pred_Q14_s32x4, vld1q_s32( buf32 + 8 * NEON_MAX_DEL_DEC_STATES ), vget_low_s32( a_Q12_arch2_s32x4 ) ); + LPC_pred_Q14_s32x4 = silk_SMLAWB_lane1_neon( LPC_pred_Q14_s32x4, vld1q_s32( buf32 + 9 * NEON_MAX_DEL_DEC_STATES ), vget_low_s32( a_Q12_arch2_s32x4 ) ); + LPC_pred_Q14_s32x4 = silk_SMLAWB_lane0_neon( LPC_pred_Q14_s32x4, vld1q_s32( buf32 + 10 * NEON_MAX_DEL_DEC_STATES ), vget_high_s32( a_Q12_arch2_s32x4 ) ); + LPC_pred_Q14_s32x4 = silk_SMLAWB_lane1_neon( LPC_pred_Q14_s32x4, vld1q_s32( buf32 + 11 * NEON_MAX_DEL_DEC_STATES ), vget_high_s32( a_Q12_arch2_s32x4 ) ); + LPC_pred_Q14_s32x4 = silk_SMLAWB_lane0_neon( LPC_pred_Q14_s32x4, vld1q_s32( buf32 + 12 * NEON_MAX_DEL_DEC_STATES ), vget_low_s32( a_Q12_arch3_s32x4 ) ); + LPC_pred_Q14_s32x4 = silk_SMLAWB_lane1_neon( LPC_pred_Q14_s32x4, vld1q_s32( buf32 + 13 * NEON_MAX_DEL_DEC_STATES ), vget_low_s32( a_Q12_arch3_s32x4 ) ); + LPC_pred_Q14_s32x4 = silk_SMLAWB_lane0_neon( LPC_pred_Q14_s32x4, vld1q_s32( buf32 + 14 * NEON_MAX_DEL_DEC_STATES ), vget_high_s32( a_Q12_arch3_s32x4 ) ); + LPC_pred_Q14_s32x4 = silk_SMLAWB_lane1_neon( LPC_pred_Q14_s32x4, vld1q_s32( buf32 + 15 * NEON_MAX_DEL_DEC_STATES ), vget_high_s32( a_Q12_arch3_s32x4 ) ); + + return LPC_pred_Q14_s32x4; +} + +static OPUS_INLINE void silk_noise_shape_quantizer_del_dec_neon( + silk_nsq_state *NSQ, /* I/O NSQ state */ + NSQ_del_decs_struct psDelDec[], /* I/O Delayed decision states */ + opus_int signalType, /* I Signal type */ + const opus_int32 x_Q10[], /* I */ + opus_int8 pulses[], /* O */ + opus_int16 xq[], /* O */ + opus_int32 sLTP_Q15[], /* I/O LTP filter state */ + opus_int32 delayedGain_Q10[], /* I/O Gain delay buffer */ + const opus_int16 a_Q12[], /* I Short term prediction coefs */ + const opus_int16 b_Q14[], /* I Long term prediction coefs */ + const opus_int16 AR_shp_Q13[], /* I Noise shaping coefs */ + opus_int lag, /* I Pitch lag */ + opus_int32 HarmShapeFIRPacked_Q14, /* I */ + opus_int Tilt_Q14, /* I Spectral tilt */ + opus_int32 LF_shp_Q14, /* I */ + opus_int32 Gain_Q16, /* I */ + opus_int Lambda_Q10, /* I */ + opus_int offset_Q10, /* I */ + opus_int length, /* I Input length */ + opus_int subfr, /* I Subframe number */ + opus_int shapingLPCOrder, /* I Shaping LPC filter order */ + opus_int predictLPCOrder, /* I Prediction filter order */ + opus_int warping_Q16, /* I */ + opus_int nStatesDelayedDecision, /* I Number of states in decision tree */ + opus_int *smpl_buf_idx, /* I/O Index to newest samples in buffers */ + opus_int decisionDelay /* I */ +) +{ + opus_int i, j, k, Winner_ind, RDmin_ind, RDmax_ind, last_smple_idx; + opus_int32 Winner_rand_state; + opus_int32 LTP_pred_Q14, n_LTP_Q14; + opus_int32 RDmin_Q10, RDmax_Q10; + opus_int32 Gain_Q10; + opus_int32 *pred_lag_ptr, *shp_lag_ptr; + opus_int32 a_Q12_arch[MAX_LPC_ORDER]; + const int32x2_t warping_Q16_s32x2 = vdup_n_s32( silk_LSHIFT32( warping_Q16, 16 ) >> 1 ); + const opus_int32 LF_shp_Q29 = silk_LSHIFT32( LF_shp_Q14, 16 ) >> 1; + opus_int32 AR_shp_Q28[ MAX_SHAPE_LPC_ORDER ]; + const uint32x4_t rand_multiplier_u32x4 = vdupq_n_u32( RAND_MULTIPLIER ); + const uint32x4_t rand_increment_u32x4 = vdupq_n_u32( RAND_INCREMENT ); + + VARDECL( NSQ_samples_struct, psSampleState ); + SAVE_STACK; + + silk_assert( nStatesDelayedDecision > 0 ); + silk_assert( ( shapingLPCOrder & 1 ) == 0 ); /* check that order is even */ + ALLOC( psSampleState, 2, NSQ_samples_struct ); + + shp_lag_ptr = &NSQ->sLTP_shp_Q14[ NSQ->sLTP_shp_buf_idx - lag + HARM_SHAPE_FIR_TAPS / 2 ]; + pred_lag_ptr = &sLTP_Q15[ NSQ->sLTP_buf_idx - lag + LTP_ORDER / 2 ]; + Gain_Q10 = silk_RSHIFT( Gain_Q16, 6 ); + + for( i = 0; i < ( MAX_SHAPE_LPC_ORDER - 7 ); i += 8 ) { + const int16x8_t t_s16x8 = vld1q_s16( AR_shp_Q13 + i ); + vst1q_s32( AR_shp_Q28 + i + 0, vshll_n_s16( vget_low_s16( t_s16x8 ), 15 ) ); + vst1q_s32( AR_shp_Q28 + i + 4, vshll_n_s16( vget_high_s16( t_s16x8 ), 15 ) ); + } + + for( ; i < MAX_SHAPE_LPC_ORDER; i++ ) { + AR_shp_Q28[i] = silk_LSHIFT32( AR_shp_Q13[i], 15 ); + } + + silk_short_prediction_create_arch_coef_neon_local( a_Q12_arch, a_Q12, predictLPCOrder ); + + for( i = 0; i < length; i++ ) { + int32x4_t Seed_s32x4, LPC_pred_Q14_s32x4; + int32x4_t sign_s32x4, tmp1_s32x4, tmp2_s32x4; + int32x4_t n_AR_Q14_s32x4, n_LF_Q14_s32x4; + int32x2_t AR_shp_Q28_s32x2; + int16x4_t r_Q10_s16x4, rr_Q10_s16x4; + + /* Perform common calculations used in all states */ + + /* Long-term prediction */ + if( signalType == TYPE_VOICED ) { + /* Unrolled loop */ + /* Avoids introducing a bias because silk_SMLAWB() always rounds to -inf */ + LTP_pred_Q14 = 2; + LTP_pred_Q14 = silk_SMLAWB( LTP_pred_Q14, pred_lag_ptr[ 0 ], b_Q14[ 0 ] ); + LTP_pred_Q14 = silk_SMLAWB( LTP_pred_Q14, pred_lag_ptr[ -1 ], b_Q14[ 1 ] ); + LTP_pred_Q14 = silk_SMLAWB( LTP_pred_Q14, pred_lag_ptr[ -2 ], b_Q14[ 2 ] ); + LTP_pred_Q14 = silk_SMLAWB( LTP_pred_Q14, pred_lag_ptr[ -3 ], b_Q14[ 3 ] ); + LTP_pred_Q14 = silk_SMLAWB( LTP_pred_Q14, pred_lag_ptr[ -4 ], b_Q14[ 4 ] ); + LTP_pred_Q14 = silk_LSHIFT( LTP_pred_Q14, 1 ); /* Q13 -> Q14 */ + pred_lag_ptr++; + } else { + LTP_pred_Q14 = 0; + } + + /* Long-term shaping */ + if( lag > 0 ) { + /* Symmetric, packed FIR coefficients */ + n_LTP_Q14 = silk_SMULWB( silk_ADD32( shp_lag_ptr[ 0 ], shp_lag_ptr[ -2 ] ), HarmShapeFIRPacked_Q14 ); + n_LTP_Q14 = silk_SMLAWT( n_LTP_Q14, shp_lag_ptr[ -1 ], HarmShapeFIRPacked_Q14 ); + n_LTP_Q14 = silk_SUB_LSHIFT32( LTP_pred_Q14, n_LTP_Q14, 2 ); /* Q12 -> Q14 */ + shp_lag_ptr++; + } else { + n_LTP_Q14 = 0; + } + + /* Generate dither */ + Seed_s32x4 = vld1q_s32( psDelDec->Seed ); + Seed_s32x4 = vreinterpretq_s32_u32( vmlaq_u32( rand_increment_u32x4, vreinterpretq_u32_s32( Seed_s32x4 ), rand_multiplier_u32x4 ) ); + vst1q_s32( psDelDec->Seed, Seed_s32x4 ); + + /* Short-term prediction */ + LPC_pred_Q14_s32x4 = silk_noise_shape_quantizer_short_prediction_neon_local(psDelDec->sLPC_Q14[ NSQ_LPC_BUF_LENGTH - 16 + i ], a_Q12_arch, predictLPCOrder); + LPC_pred_Q14_s32x4 = vshlq_n_s32( LPC_pred_Q14_s32x4, 4 ); /* Q10 -> Q14 */ + + /* Noise shape feedback */ + /* Output of lowpass section */ + tmp2_s32x4 = silk_SMLAWB_lane0_neon( vld1q_s32( psDelDec->Diff_Q14 ), vld1q_s32( psDelDec->sAR2_Q14[ 0 ] ), warping_Q16_s32x2 ); + /* Output of allpass section */ + tmp1_s32x4 = vsubq_s32( vld1q_s32( psDelDec->sAR2_Q14[ 1 ] ), tmp2_s32x4 ); + tmp1_s32x4 = silk_SMLAWB_lane0_neon( vld1q_s32( psDelDec->sAR2_Q14[ 0 ] ), tmp1_s32x4, warping_Q16_s32x2 ); + vst1q_s32( psDelDec->sAR2_Q14[ 0 ], tmp2_s32x4 ); + AR_shp_Q28_s32x2 = vld1_s32( AR_shp_Q28 ); + n_AR_Q14_s32x4 = vaddq_s32( vdupq_n_s32( silk_RSHIFT( shapingLPCOrder, 1 ) ), vqdmulhq_lane_s32( tmp2_s32x4, AR_shp_Q28_s32x2, 0 ) ); + + /* Loop over allpass sections */ + for( j = 2; j < shapingLPCOrder; j += 2 ) { + /* Output of allpass section */ + tmp2_s32x4 = vsubq_s32( vld1q_s32( psDelDec->sAR2_Q14[ j + 0 ] ), tmp1_s32x4 ); + tmp2_s32x4 = silk_SMLAWB_lane0_neon( vld1q_s32( psDelDec->sAR2_Q14[ j - 1 ] ), tmp2_s32x4, warping_Q16_s32x2 ); + vst1q_s32( psDelDec->sAR2_Q14[ j - 1 ], tmp1_s32x4 ); + n_AR_Q14_s32x4 = vaddq_s32( n_AR_Q14_s32x4, vqdmulhq_lane_s32( tmp1_s32x4, AR_shp_Q28_s32x2, 1 ) ); + /* Output of allpass section */ + tmp1_s32x4 = vsubq_s32( vld1q_s32( psDelDec->sAR2_Q14[ j + 1 ] ), tmp2_s32x4 ); + tmp1_s32x4 = silk_SMLAWB_lane0_neon( vld1q_s32( psDelDec->sAR2_Q14[ j + 0 ] ), tmp1_s32x4, warping_Q16_s32x2 ); + vst1q_s32( psDelDec->sAR2_Q14[ j + 0 ], tmp2_s32x4 ); + AR_shp_Q28_s32x2 = vld1_s32( &AR_shp_Q28[ j ] ); + n_AR_Q14_s32x4 = vaddq_s32( n_AR_Q14_s32x4, vqdmulhq_lane_s32( tmp2_s32x4, AR_shp_Q28_s32x2, 0 ) ); + } + vst1q_s32( psDelDec->sAR2_Q14[ shapingLPCOrder - 1 ], tmp1_s32x4 ); + n_AR_Q14_s32x4 = vaddq_s32( n_AR_Q14_s32x4, vqdmulhq_lane_s32( tmp1_s32x4, AR_shp_Q28_s32x2, 1 ) ); + n_AR_Q14_s32x4 = vshlq_n_s32( n_AR_Q14_s32x4, 1 ); /* Q11 -> Q12 */ + n_AR_Q14_s32x4 = vaddq_s32( n_AR_Q14_s32x4, vqdmulhq_n_s32( vld1q_s32( psDelDec->LF_AR_Q14 ), silk_LSHIFT32( Tilt_Q14, 16 ) >> 1 ) ); /* Q12 */ + n_AR_Q14_s32x4 = vshlq_n_s32( n_AR_Q14_s32x4, 2 ); /* Q12 -> Q14 */ + n_LF_Q14_s32x4 = vqdmulhq_n_s32( vld1q_s32( psDelDec->Shape_Q14[ *smpl_buf_idx ] ), LF_shp_Q29 ); /* Q12 */ + n_LF_Q14_s32x4 = vaddq_s32( n_LF_Q14_s32x4, vqdmulhq_n_s32( vld1q_s32( psDelDec->LF_AR_Q14 ), silk_LSHIFT32( LF_shp_Q14 >> 16 , 15 ) ) ); /* Q12 */ + n_LF_Q14_s32x4 = vshlq_n_s32( n_LF_Q14_s32x4, 2 ); /* Q12 -> Q14 */ + + /* Input minus prediction plus noise feedback */ + /* r = x[ i ] - LTP_pred - LPC_pred + n_AR + n_Tilt + n_LF + n_LTP */ + tmp1_s32x4 = vaddq_s32( n_AR_Q14_s32x4, n_LF_Q14_s32x4 ); /* Q14 */ + tmp2_s32x4 = vaddq_s32( vdupq_n_s32( n_LTP_Q14 ), LPC_pred_Q14_s32x4 ); /* Q13 */ + tmp1_s32x4 = vsubq_s32( tmp2_s32x4, tmp1_s32x4 ); /* Q13 */ + tmp1_s32x4 = vrshrq_n_s32( tmp1_s32x4, 4 ); /* Q10 */ + tmp1_s32x4 = vsubq_s32( vdupq_n_s32( x_Q10[ i ] ), tmp1_s32x4 ); /* residual error Q10 */ + + /* Flip sign depending on dither */ + sign_s32x4 = vreinterpretq_s32_u32( vcltq_s32( Seed_s32x4, vdupq_n_s32( 0 ) ) ); + tmp1_s32x4 = veorq_s32( tmp1_s32x4, sign_s32x4 ); + tmp1_s32x4 = vsubq_s32( tmp1_s32x4, sign_s32x4 ); + tmp1_s32x4 = vmaxq_s32( tmp1_s32x4, vdupq_n_s32( -( 31 << 10 ) ) ); + tmp1_s32x4 = vminq_s32( tmp1_s32x4, vdupq_n_s32( 30 << 10 ) ); + r_Q10_s16x4 = vmovn_s32( tmp1_s32x4 ); + + /* Find two quantization level candidates and measure their rate-distortion */ + { + int16x4_t q1_Q10_s16x4 = vsub_s16( r_Q10_s16x4, vdup_n_s16( offset_Q10 ) ); + int16x4_t q1_Q0_s16x4 = vshr_n_s16( q1_Q10_s16x4, 10 ); + int16x4_t q2_Q10_s16x4; + int32x4_t rd1_Q10_s32x4, rd2_Q10_s32x4; + uint32x4_t t_u32x4; + + if( Lambda_Q10 > 2048 ) { + /* For aggressive RDO, the bias becomes more than one pulse. */ + const int rdo_offset = Lambda_Q10/2 - 512; + const uint16x4_t greaterThanRdo = vcgt_s16( q1_Q10_s16x4, vdup_n_s16( rdo_offset ) ); + const uint16x4_t lessThanMinusRdo = vclt_s16( q1_Q10_s16x4, vdup_n_s16( -rdo_offset ) ); + /* If Lambda_Q10 > 32767, then q1_Q0, q1_Q10 and q2_Q10 must change to 32-bit. */ + silk_assert( Lambda_Q10 <= 32767 ); + + q1_Q0_s16x4 = vreinterpret_s16_u16( vclt_s16( q1_Q10_s16x4, vdup_n_s16( 0 ) ) ); + q1_Q0_s16x4 = vbsl_s16( greaterThanRdo, vsub_s16( q1_Q10_s16x4, vdup_n_s16( rdo_offset ) ), q1_Q0_s16x4 ); + q1_Q0_s16x4 = vbsl_s16( lessThanMinusRdo, vadd_s16( q1_Q10_s16x4, vdup_n_s16( rdo_offset ) ), q1_Q0_s16x4 ); + q1_Q0_s16x4 = vshr_n_s16( q1_Q0_s16x4, 10 ); + } + { + const uint16x4_t equal0_u16x4 = vceq_s16( q1_Q0_s16x4, vdup_n_s16( 0 ) ); + const uint16x4_t equalMinus1_u16x4 = vceq_s16( q1_Q0_s16x4, vdup_n_s16( -1 ) ); + const uint16x4_t lessThanMinus1_u16x4 = vclt_s16( q1_Q0_s16x4, vdup_n_s16( -1 ) ); + int16x4_t tmp1_s16x4, tmp2_s16x4; + + q1_Q10_s16x4 = vshl_n_s16( q1_Q0_s16x4, 10 ); + tmp1_s16x4 = vadd_s16( q1_Q10_s16x4, vdup_n_s16( offset_Q10 - QUANT_LEVEL_ADJUST_Q10 ) ); + q1_Q10_s16x4 = vadd_s16( q1_Q10_s16x4, vdup_n_s16( offset_Q10 + QUANT_LEVEL_ADJUST_Q10 ) ); + q1_Q10_s16x4 = vbsl_s16( lessThanMinus1_u16x4, q1_Q10_s16x4, tmp1_s16x4 ); + q1_Q10_s16x4 = vbsl_s16( equal0_u16x4, vdup_n_s16( offset_Q10 ), q1_Q10_s16x4 ); + q1_Q10_s16x4 = vbsl_s16( equalMinus1_u16x4, vdup_n_s16( offset_Q10 - ( 1024 - QUANT_LEVEL_ADJUST_Q10 ) ), q1_Q10_s16x4 ); + q2_Q10_s16x4 = vadd_s16( q1_Q10_s16x4, vdup_n_s16( 1024 ) ); + q2_Q10_s16x4 = vbsl_s16( equal0_u16x4, vdup_n_s16( offset_Q10 + 1024 - QUANT_LEVEL_ADJUST_Q10 ), q2_Q10_s16x4 ); + q2_Q10_s16x4 = vbsl_s16( equalMinus1_u16x4, vdup_n_s16( offset_Q10 ), q2_Q10_s16x4 ); + tmp1_s16x4 = q1_Q10_s16x4; + tmp2_s16x4 = q2_Q10_s16x4; + tmp1_s16x4 = vbsl_s16( vorr_u16( equalMinus1_u16x4, lessThanMinus1_u16x4 ), vneg_s16( tmp1_s16x4 ), tmp1_s16x4 ); + tmp2_s16x4 = vbsl_s16( lessThanMinus1_u16x4, vneg_s16( tmp2_s16x4 ), tmp2_s16x4 ); + rd1_Q10_s32x4 = vmull_s16( tmp1_s16x4, vdup_n_s16( Lambda_Q10 ) ); + rd2_Q10_s32x4 = vmull_s16( tmp2_s16x4, vdup_n_s16( Lambda_Q10 ) ); + } + + rr_Q10_s16x4 = vsub_s16( r_Q10_s16x4, q1_Q10_s16x4 ); + rd1_Q10_s32x4 = vmlal_s16( rd1_Q10_s32x4, rr_Q10_s16x4, rr_Q10_s16x4 ); + rd1_Q10_s32x4 = vshrq_n_s32( rd1_Q10_s32x4, 10 ); + + rr_Q10_s16x4 = vsub_s16( r_Q10_s16x4, q2_Q10_s16x4 ); + rd2_Q10_s32x4 = vmlal_s16( rd2_Q10_s32x4, rr_Q10_s16x4, rr_Q10_s16x4 ); + rd2_Q10_s32x4 = vshrq_n_s32( rd2_Q10_s32x4, 10 ); + + tmp2_s32x4 = vld1q_s32( psDelDec->RD_Q10 ); + tmp1_s32x4 = vaddq_s32( tmp2_s32x4, vminq_s32( rd1_Q10_s32x4, rd2_Q10_s32x4 ) ); + tmp2_s32x4 = vaddq_s32( tmp2_s32x4, vmaxq_s32( rd1_Q10_s32x4, rd2_Q10_s32x4 ) ); + vst1q_s32( psSampleState[ 0 ].RD_Q10, tmp1_s32x4 ); + vst1q_s32( psSampleState[ 1 ].RD_Q10, tmp2_s32x4 ); + t_u32x4 = vcltq_s32( rd1_Q10_s32x4, rd2_Q10_s32x4 ); + tmp1_s32x4 = vbslq_s32( t_u32x4, vmovl_s16( q1_Q10_s16x4 ), vmovl_s16( q2_Q10_s16x4 ) ); + tmp2_s32x4 = vbslq_s32( t_u32x4, vmovl_s16( q2_Q10_s16x4 ), vmovl_s16( q1_Q10_s16x4 ) ); + vst1q_s32( psSampleState[ 0 ].Q_Q10, tmp1_s32x4 ); + vst1q_s32( psSampleState[ 1 ].Q_Q10, tmp2_s32x4 ); + } + + { + /* Update states for best quantization */ + int32x4_t exc_Q14_s32x4, LPC_exc_Q14_s32x4, xq_Q14_s32x4, sLF_AR_shp_Q14_s32x4; + + /* Quantized excitation */ + exc_Q14_s32x4 = vshlq_n_s32( tmp1_s32x4, 4 ); + exc_Q14_s32x4 = veorq_s32( exc_Q14_s32x4, sign_s32x4 ); + exc_Q14_s32x4 = vsubq_s32( exc_Q14_s32x4, sign_s32x4 ); + + /* Add predictions */ + LPC_exc_Q14_s32x4 = vaddq_s32( exc_Q14_s32x4, vdupq_n_s32( LTP_pred_Q14 ) ); + xq_Q14_s32x4 = vaddq_s32( LPC_exc_Q14_s32x4, LPC_pred_Q14_s32x4 ); + + /* Update states */ + tmp1_s32x4 = vsubq_s32( xq_Q14_s32x4, vshlq_n_s32( vdupq_n_s32( x_Q10[ i ] ), 4 ) ); + vst1q_s32( psSampleState[ 0 ].Diff_Q14, tmp1_s32x4 ); + sLF_AR_shp_Q14_s32x4 = vsubq_s32( tmp1_s32x4, n_AR_Q14_s32x4 ); + vst1q_s32( psSampleState[ 0 ].sLTP_shp_Q14, vsubq_s32( sLF_AR_shp_Q14_s32x4, n_LF_Q14_s32x4 ) ); + vst1q_s32( psSampleState[ 0 ].LF_AR_Q14, sLF_AR_shp_Q14_s32x4 ); + vst1q_s32( psSampleState[ 0 ].LPC_exc_Q14, LPC_exc_Q14_s32x4 ); + vst1q_s32( psSampleState[ 0 ].xq_Q14, xq_Q14_s32x4 ); + + /* Quantized excitation */ + exc_Q14_s32x4 = vshlq_n_s32( tmp2_s32x4, 4 ); + exc_Q14_s32x4 = veorq_s32( exc_Q14_s32x4, sign_s32x4 ); + exc_Q14_s32x4 = vsubq_s32( exc_Q14_s32x4, sign_s32x4 ); + + /* Add predictions */ + LPC_exc_Q14_s32x4 = vaddq_s32( exc_Q14_s32x4, vdupq_n_s32( LTP_pred_Q14 ) ); + xq_Q14_s32x4 = vaddq_s32( LPC_exc_Q14_s32x4, LPC_pred_Q14_s32x4 ); + + /* Update states */ + tmp1_s32x4 = vsubq_s32( xq_Q14_s32x4, vshlq_n_s32( vdupq_n_s32( x_Q10[ i ] ), 4 ) ); + vst1q_s32( psSampleState[ 1 ].Diff_Q14, tmp1_s32x4 ); + sLF_AR_shp_Q14_s32x4 = vsubq_s32( tmp1_s32x4, n_AR_Q14_s32x4 ); + vst1q_s32( psSampleState[ 1 ].sLTP_shp_Q14, vsubq_s32( sLF_AR_shp_Q14_s32x4, n_LF_Q14_s32x4 ) ); + vst1q_s32( psSampleState[ 1 ].LF_AR_Q14, sLF_AR_shp_Q14_s32x4 ); + vst1q_s32( psSampleState[ 1 ].LPC_exc_Q14, LPC_exc_Q14_s32x4 ); + vst1q_s32( psSampleState[ 1 ].xq_Q14, xq_Q14_s32x4 ); + } + + *smpl_buf_idx = *smpl_buf_idx ? ( *smpl_buf_idx - 1 ) : ( DECISION_DELAY - 1); + last_smple_idx = *smpl_buf_idx + decisionDelay + DECISION_DELAY; + if( last_smple_idx >= DECISION_DELAY ) last_smple_idx -= DECISION_DELAY; + if( last_smple_idx >= DECISION_DELAY ) last_smple_idx -= DECISION_DELAY; + + /* Find winner */ + RDmin_Q10 = psSampleState[ 0 ].RD_Q10[ 0 ]; + Winner_ind = 0; + for( k = 1; k < nStatesDelayedDecision; k++ ) { + if( psSampleState[ 0 ].RD_Q10[ k ] < RDmin_Q10 ) { + RDmin_Q10 = psSampleState[ 0 ].RD_Q10[ k ]; + Winner_ind = k; + } + } + + /* Increase RD values of expired states */ + { + uint32x4_t t_u32x4; + Winner_rand_state = psDelDec->RandState[ last_smple_idx ][ Winner_ind ]; + t_u32x4 = vceqq_s32( vld1q_s32( psDelDec->RandState[ last_smple_idx ] ), vdupq_n_s32( Winner_rand_state ) ); + t_u32x4 = vmvnq_u32( t_u32x4 ); + t_u32x4 = vshrq_n_u32( t_u32x4, 5 ); + tmp1_s32x4 = vld1q_s32( psSampleState[ 0 ].RD_Q10 ); + tmp2_s32x4 = vld1q_s32( psSampleState[ 1 ].RD_Q10 ); + tmp1_s32x4 = vaddq_s32( tmp1_s32x4, vreinterpretq_s32_u32( t_u32x4 ) ); + tmp2_s32x4 = vaddq_s32( tmp2_s32x4, vreinterpretq_s32_u32( t_u32x4 ) ); + vst1q_s32( psSampleState[ 0 ].RD_Q10, tmp1_s32x4 ); + vst1q_s32( psSampleState[ 1 ].RD_Q10, tmp2_s32x4 ); + + /* Find worst in first set and best in second set */ + RDmax_Q10 = psSampleState[ 0 ].RD_Q10[ 0 ]; + RDmin_Q10 = psSampleState[ 1 ].RD_Q10[ 0 ]; + RDmax_ind = 0; + RDmin_ind = 0; + for( k = 1; k < nStatesDelayedDecision; k++ ) { + /* find worst in first set */ + if( psSampleState[ 0 ].RD_Q10[ k ] > RDmax_Q10 ) { + RDmax_Q10 = psSampleState[ 0 ].RD_Q10[ k ]; + RDmax_ind = k; + } + /* find best in second set */ + if( psSampleState[ 1 ].RD_Q10[ k ] < RDmin_Q10 ) { + RDmin_Q10 = psSampleState[ 1 ].RD_Q10[ k ]; + RDmin_ind = k; + } + } + } + + /* Replace a state if best from second set outperforms worst in first set */ + if( RDmin_Q10 < RDmax_Q10 ) { + opus_int32 (*ptr)[NEON_MAX_DEL_DEC_STATES] = psDelDec->RandState; + const int numOthers = (int)( ( sizeof( NSQ_del_decs_struct ) - sizeof( ( (NSQ_del_decs_struct *)0 )->sLPC_Q14 ) ) + / ( NEON_MAX_DEL_DEC_STATES * sizeof( opus_int32 ) ) ); + /* Only ( predictLPCOrder - 1 ) of sLPC_Q14 buffer need to be updated, though the first several */ + /* useless sLPC_Q14[] will be different comparing with C when predictLPCOrder < NSQ_LPC_BUF_LENGTH. */ + /* Here just update constant ( NSQ_LPC_BUF_LENGTH - 1 ) for simplicity. */ + for( j = i + 1; j < i + NSQ_LPC_BUF_LENGTH; j++ ) { + psDelDec->sLPC_Q14[ j ][ RDmax_ind ] = psDelDec->sLPC_Q14[ j ][ RDmin_ind ]; + } + for( j = 0; j < numOthers; j++ ) { + ptr[ j ][ RDmax_ind ] = ptr[ j ][ RDmin_ind ]; + } + + psSampleState[ 0 ].Q_Q10[ RDmax_ind ] = psSampleState[ 1 ].Q_Q10[ RDmin_ind ]; + psSampleState[ 0 ].RD_Q10[ RDmax_ind ] = psSampleState[ 1 ].RD_Q10[ RDmin_ind ]; + psSampleState[ 0 ].xq_Q14[ RDmax_ind ] = psSampleState[ 1 ].xq_Q14[ RDmin_ind ]; + psSampleState[ 0 ].LF_AR_Q14[ RDmax_ind ] = psSampleState[ 1 ].LF_AR_Q14[ RDmin_ind ]; + psSampleState[ 0 ].Diff_Q14[ RDmax_ind ] = psSampleState[ 1 ].Diff_Q14[ RDmin_ind ]; + psSampleState[ 0 ].sLTP_shp_Q14[ RDmax_ind ] = psSampleState[ 1 ].sLTP_shp_Q14[ RDmin_ind ]; + psSampleState[ 0 ].LPC_exc_Q14[ RDmax_ind ] = psSampleState[ 1 ].LPC_exc_Q14[ RDmin_ind ]; + } + + /* Write samples from winner to output and long-term filter states */ + if( subfr > 0 || i >= decisionDelay ) { + pulses[ i - decisionDelay ] = (opus_int8)silk_RSHIFT_ROUND( psDelDec->Q_Q10[ last_smple_idx ][ Winner_ind ], 10 ); + xq[ i - decisionDelay ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( + silk_SMULWW( psDelDec->Xq_Q14[ last_smple_idx ][ Winner_ind ], delayedGain_Q10[ last_smple_idx ] ), 8 ) ); + NSQ->sLTP_shp_Q14[ NSQ->sLTP_shp_buf_idx - decisionDelay ] = psDelDec->Shape_Q14[ last_smple_idx ][ Winner_ind ]; + sLTP_Q15[ NSQ->sLTP_buf_idx - decisionDelay ] = psDelDec->Pred_Q15[ last_smple_idx ][ Winner_ind ]; + } + NSQ->sLTP_shp_buf_idx++; + NSQ->sLTP_buf_idx++; + + /* Update states */ + vst1q_s32( psDelDec->LF_AR_Q14, vld1q_s32( psSampleState[ 0 ].LF_AR_Q14 ) ); + vst1q_s32( psDelDec->Diff_Q14, vld1q_s32( psSampleState[ 0 ].Diff_Q14 ) ); + vst1q_s32( psDelDec->sLPC_Q14[ NSQ_LPC_BUF_LENGTH + i ], vld1q_s32( psSampleState[ 0 ].xq_Q14 ) ); + vst1q_s32( psDelDec->Xq_Q14[ *smpl_buf_idx ], vld1q_s32( psSampleState[ 0 ].xq_Q14 ) ); + tmp1_s32x4 = vld1q_s32( psSampleState[ 0 ].Q_Q10 ); + vst1q_s32( psDelDec->Q_Q10[ *smpl_buf_idx ], tmp1_s32x4 ); + vst1q_s32( psDelDec->Pred_Q15[ *smpl_buf_idx ], vshlq_n_s32( vld1q_s32( psSampleState[ 0 ].LPC_exc_Q14 ), 1 ) ); + vst1q_s32( psDelDec->Shape_Q14[ *smpl_buf_idx ], vld1q_s32( psSampleState[ 0 ].sLTP_shp_Q14 ) ); + tmp1_s32x4 = vrshrq_n_s32( tmp1_s32x4, 10 ); + tmp1_s32x4 = vaddq_s32( vld1q_s32( psDelDec->Seed ), tmp1_s32x4 ); + vst1q_s32( psDelDec->Seed, tmp1_s32x4 ); + vst1q_s32( psDelDec->RandState[ *smpl_buf_idx ], tmp1_s32x4 ); + vst1q_s32( psDelDec->RD_Q10, vld1q_s32( psSampleState[ 0 ].RD_Q10 ) ); + delayedGain_Q10[ *smpl_buf_idx ] = Gain_Q10; + } + /* Update LPC states */ + silk_memcpy( psDelDec->sLPC_Q14[ 0 ], psDelDec->sLPC_Q14[ length ], NEON_MAX_DEL_DEC_STATES * NSQ_LPC_BUF_LENGTH * sizeof( opus_int32 ) ); + + RESTORE_STACK; +} + +static OPUS_INLINE void silk_SMULWB_8_neon( + const opus_int16 *a, + const int32x2_t b, + opus_int32 *o +) +{ + const int16x8_t a_s16x8 = vld1q_s16( a ); + int32x4_t o0_s32x4, o1_s32x4; + + o0_s32x4 = vshll_n_s16( vget_low_s16( a_s16x8 ), 15 ); + o1_s32x4 = vshll_n_s16( vget_high_s16( a_s16x8 ), 15 ); + o0_s32x4 = vqdmulhq_lane_s32( o0_s32x4, b, 0 ); + o1_s32x4 = vqdmulhq_lane_s32( o1_s32x4, b, 0 ); + vst1q_s32( o, o0_s32x4 ); + vst1q_s32( o + 4, o1_s32x4 ); +} + +/* Only works when ( b >= -65536 ) && ( b < 65536 ). */ +static OPUS_INLINE void silk_SMULWW_small_b_4_neon( + opus_int32 *a, + const int32x2_t b_s32x2) +{ + int32x4_t o_s32x4; + + o_s32x4 = vld1q_s32( a ); + o_s32x4 = vqdmulhq_lane_s32( o_s32x4, b_s32x2, 0 ); + vst1q_s32( a, o_s32x4 ); +} + +/* Only works when ( b >= -65536 ) && ( b < 65536 ). */ +static OPUS_INLINE void silk_SMULWW_small_b_8_neon( + opus_int32 *a, + const int32x2_t b_s32x2 +) +{ + int32x4_t o0_s32x4, o1_s32x4; + + o0_s32x4 = vld1q_s32( a ); + o1_s32x4 = vld1q_s32( a + 4 ); + o0_s32x4 = vqdmulhq_lane_s32( o0_s32x4, b_s32x2, 0 ); + o1_s32x4 = vqdmulhq_lane_s32( o1_s32x4, b_s32x2, 0 ); + vst1q_s32( a, o0_s32x4 ); + vst1q_s32( a + 4, o1_s32x4 ); +} + +static OPUS_INLINE void silk_SMULWW_4_neon( + opus_int32 *a, + const int32x2_t b_s32x2) +{ + int32x4_t a_s32x4, o_s32x4; + + a_s32x4 = vld1q_s32( a ); + o_s32x4 = vqdmulhq_lane_s32( a_s32x4, b_s32x2, 0 ); + o_s32x4 = vmlaq_lane_s32( o_s32x4, a_s32x4, b_s32x2, 1 ); + vst1q_s32( a, o_s32x4 ); +} + +static OPUS_INLINE void silk_SMULWW_8_neon( + opus_int32 *a, + const int32x2_t b_s32x2 +) +{ + int32x4_t a0_s32x4, a1_s32x4, o0_s32x4, o1_s32x4; + + a0_s32x4 = vld1q_s32( a ); + a1_s32x4 = vld1q_s32( a + 4 ); + o0_s32x4 = vqdmulhq_lane_s32( a0_s32x4, b_s32x2, 0 ); + o1_s32x4 = vqdmulhq_lane_s32( a1_s32x4, b_s32x2, 0 ); + o0_s32x4 = vmlaq_lane_s32( o0_s32x4, a0_s32x4, b_s32x2, 1 ); + o1_s32x4 = vmlaq_lane_s32( o1_s32x4, a1_s32x4, b_s32x2, 1 ); + vst1q_s32( a, o0_s32x4 ); + vst1q_s32( a + 4, o1_s32x4 ); +} + +static OPUS_INLINE void silk_SMULWW_loop_neon( + const opus_int16 *a, + const opus_int32 b, + opus_int32 *o, + const opus_int loop_num +) +{ + opus_int i; + int32x2_t b_s32x2; + + b_s32x2 = vdup_n_s32( b ); + for( i = 0; i < loop_num - 7; i += 8 ) { + silk_SMULWB_8_neon( a + i, b_s32x2, o + i ); + } + for( ; i < loop_num; i++ ) { + o[ i ] = silk_SMULWW( a[ i ], b ); + } +} + +static OPUS_INLINE void silk_nsq_del_dec_scale_states_neon( + const silk_encoder_state *psEncC, /* I Encoder State */ + silk_nsq_state *NSQ, /* I/O NSQ state */ + NSQ_del_decs_struct psDelDec[], /* I/O Delayed decision states */ + const opus_int16 x16[], /* I Input */ + opus_int32 x_sc_Q10[], /* O Input scaled with 1/Gain in Q10 */ + const opus_int16 sLTP[], /* I Re-whitened LTP state in Q0 */ + opus_int32 sLTP_Q15[], /* O LTP state matching scaled input */ + opus_int subfr, /* I Subframe number */ + const opus_int LTP_scale_Q14, /* I LTP state scaling */ + const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I */ + const opus_int pitchL[ MAX_NB_SUBFR ], /* I Pitch lag */ + const opus_int signal_type, /* I Signal type */ + const opus_int decisionDelay /* I Decision delay */ +) +{ + opus_int i, lag; + opus_int32 gain_adj_Q16, inv_gain_Q31, inv_gain_Q26; + + lag = pitchL[ subfr ]; + inv_gain_Q31 = silk_INVERSE32_varQ( silk_max( Gains_Q16[ subfr ], 1 ), 47 ); + silk_assert( inv_gain_Q31 != 0 ); + + /* Scale input */ + inv_gain_Q26 = silk_RSHIFT_ROUND( inv_gain_Q31, 5 ); + silk_SMULWW_loop_neon( x16, inv_gain_Q26, x_sc_Q10, psEncC->subfr_length ); + + /* After rewhitening the LTP state is un-scaled, so scale with inv_gain_Q16 */ + if( NSQ->rewhite_flag ) { + if( subfr == 0 ) { + /* Do LTP downscaling */ + inv_gain_Q31 = silk_LSHIFT( silk_SMULWB( inv_gain_Q31, LTP_scale_Q14 ), 2 ); + } + silk_SMULWW_loop_neon( sLTP + NSQ->sLTP_buf_idx - lag - LTP_ORDER / 2, inv_gain_Q31, sLTP_Q15 + NSQ->sLTP_buf_idx - lag - LTP_ORDER / 2, lag + LTP_ORDER / 2 ); + } + + /* Adjust for changing gain */ + if( Gains_Q16[ subfr ] != NSQ->prev_gain_Q16 ) { + int32x2_t gain_adj_Q16_s32x2; + gain_adj_Q16 = silk_DIV32_varQ( NSQ->prev_gain_Q16, Gains_Q16[ subfr ], 16 ); + + /* Scale long-term shaping state */ + if( ( gain_adj_Q16 >= -65536 ) && ( gain_adj_Q16 < 65536 ) ) { + gain_adj_Q16_s32x2 = vdup_n_s32( silk_LSHIFT32( gain_adj_Q16, 15 ) ); + for( i = NSQ->sLTP_shp_buf_idx - psEncC->ltp_mem_length; i < NSQ->sLTP_shp_buf_idx - 7; i += 8 ) { + silk_SMULWW_small_b_8_neon( NSQ->sLTP_shp_Q14 + i, gain_adj_Q16_s32x2 ); + } + for( ; i < NSQ->sLTP_shp_buf_idx; i++ ) { + NSQ->sLTP_shp_Q14[ i ] = silk_SMULWW( gain_adj_Q16, NSQ->sLTP_shp_Q14[ i ] ); + } + + /* Scale long-term prediction state */ + if( signal_type == TYPE_VOICED && NSQ->rewhite_flag == 0 ) { + for( i = NSQ->sLTP_buf_idx - lag - LTP_ORDER / 2; i < NSQ->sLTP_buf_idx - decisionDelay - 7; i += 8 ) { + silk_SMULWW_small_b_8_neon( sLTP_Q15 + i, gain_adj_Q16_s32x2 ); + } + for( ; i < NSQ->sLTP_buf_idx - decisionDelay; i++ ) { + sLTP_Q15[ i ] = silk_SMULWW( gain_adj_Q16, sLTP_Q15[ i ] ); + } + } + + /* Scale scalar states */ + silk_SMULWW_small_b_4_neon( psDelDec->LF_AR_Q14, gain_adj_Q16_s32x2 ); + silk_SMULWW_small_b_4_neon( psDelDec->Diff_Q14, gain_adj_Q16_s32x2 ); + + /* Scale short-term prediction and shaping states */ + for( i = 0; i < NSQ_LPC_BUF_LENGTH; i++ ) { + silk_SMULWW_small_b_4_neon( psDelDec->sLPC_Q14[ i ], gain_adj_Q16_s32x2 ); + } + + for( i = 0; i < MAX_SHAPE_LPC_ORDER; i++ ) { + silk_SMULWW_small_b_4_neon( psDelDec->sAR2_Q14[ i ], gain_adj_Q16_s32x2 ); + } + + for( i = 0; i < DECISION_DELAY; i++ ) { + silk_SMULWW_small_b_4_neon( psDelDec->Pred_Q15[ i ], gain_adj_Q16_s32x2 ); + silk_SMULWW_small_b_4_neon( psDelDec->Shape_Q14[ i ], gain_adj_Q16_s32x2 ); + } + } else { + gain_adj_Q16_s32x2 = vdup_n_s32( silk_LSHIFT32( gain_adj_Q16 & 0x0000FFFF, 15 ) ); + gain_adj_Q16_s32x2 = vset_lane_s32( gain_adj_Q16 >> 16, gain_adj_Q16_s32x2, 1 ); + for( i = NSQ->sLTP_shp_buf_idx - psEncC->ltp_mem_length; i < NSQ->sLTP_shp_buf_idx - 7; i += 8 ) { + silk_SMULWW_8_neon( NSQ->sLTP_shp_Q14 + i, gain_adj_Q16_s32x2 ); + } + for( ; i < NSQ->sLTP_shp_buf_idx; i++ ) { + NSQ->sLTP_shp_Q14[ i ] = silk_SMULWW( gain_adj_Q16, NSQ->sLTP_shp_Q14[ i ] ); + } + + /* Scale long-term prediction state */ + if( signal_type == TYPE_VOICED && NSQ->rewhite_flag == 0 ) { + for( i = NSQ->sLTP_buf_idx - lag - LTP_ORDER / 2; i < NSQ->sLTP_buf_idx - decisionDelay - 7; i += 8 ) { + silk_SMULWW_8_neon( sLTP_Q15 + i, gain_adj_Q16_s32x2 ); + } + for( ; i < NSQ->sLTP_buf_idx - decisionDelay; i++ ) { + sLTP_Q15[ i ] = silk_SMULWW( gain_adj_Q16, sLTP_Q15[ i ] ); + } + } + + /* Scale scalar states */ + silk_SMULWW_4_neon( psDelDec->LF_AR_Q14, gain_adj_Q16_s32x2 ); + silk_SMULWW_4_neon( psDelDec->Diff_Q14, gain_adj_Q16_s32x2 ); + + /* Scale short-term prediction and shaping states */ + for( i = 0; i < NSQ_LPC_BUF_LENGTH; i++ ) { + silk_SMULWW_4_neon( psDelDec->sLPC_Q14[ i ], gain_adj_Q16_s32x2 ); + } + + for( i = 0; i < MAX_SHAPE_LPC_ORDER; i++ ) { + silk_SMULWW_4_neon( psDelDec->sAR2_Q14[ i ], gain_adj_Q16_s32x2 ); + } + + for( i = 0; i < DECISION_DELAY; i++ ) { + silk_SMULWW_4_neon( psDelDec->Pred_Q15[ i ], gain_adj_Q16_s32x2 ); + silk_SMULWW_4_neon( psDelDec->Shape_Q14[ i ], gain_adj_Q16_s32x2 ); + } + } + + /* Save inverse gain */ + NSQ->prev_gain_Q16 = Gains_Q16[ subfr ]; + } +} diff --git a/components/opus/libopus/silk/arm/NSQ_neon.c b/components/opus/libopus/silk/arm/NSQ_neon.c new file mode 100644 index 0000000..9642529 --- /dev/null +++ b/components/opus/libopus/silk/arm/NSQ_neon.c @@ -0,0 +1,112 @@ +/*********************************************************************** +Copyright (C) 2014 Vidyo +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include "main.h" +#include "stack_alloc.h" +#include "NSQ.h" +#include "celt/cpu_support.h" +#include "celt/arm/armcpu.h" + +opus_int32 silk_noise_shape_quantizer_short_prediction_neon(const opus_int32 *buf32, const opus_int32 *coef32, opus_int order) +{ + int32x4_t coef0 = vld1q_s32(coef32); + int32x4_t coef1 = vld1q_s32(coef32 + 4); + int32x4_t coef2 = vld1q_s32(coef32 + 8); + int32x4_t coef3 = vld1q_s32(coef32 + 12); + + int32x4_t a0 = vld1q_s32(buf32 - 15); + int32x4_t a1 = vld1q_s32(buf32 - 11); + int32x4_t a2 = vld1q_s32(buf32 - 7); + int32x4_t a3 = vld1q_s32(buf32 - 3); + + int32x4_t b0 = vqdmulhq_s32(coef0, a0); + int32x4_t b1 = vqdmulhq_s32(coef1, a1); + int32x4_t b2 = vqdmulhq_s32(coef2, a2); + int32x4_t b3 = vqdmulhq_s32(coef3, a3); + + int32x4_t c0 = vaddq_s32(b0, b1); + int32x4_t c1 = vaddq_s32(b2, b3); + + int32x4_t d = vaddq_s32(c0, c1); + + int64x2_t e = vpaddlq_s32(d); + + int64x1_t f = vadd_s64(vget_low_s64(e), vget_high_s64(e)); + + opus_int32 out = vget_lane_s32(vreinterpret_s32_s64(f), 0); + + out += silk_RSHIFT( order, 1 ); + + return out; +} + + +opus_int32 silk_NSQ_noise_shape_feedback_loop_neon(const opus_int32 *data0, opus_int32 *data1, const opus_int16 *coef, opus_int order) +{ + opus_int32 out; + if (order == 8) + { + int32x4_t a00 = vdupq_n_s32(data0[0]); + int32x4_t a01 = vld1q_s32(data1); /* data1[0] ... [3] */ + + int32x4_t a0 = vextq_s32 (a00, a01, 3); /* data0[0] data1[0] ...[2] */ + int32x4_t a1 = vld1q_s32(data1 + 3); /* data1[3] ... [6] */ + + /*TODO: Convert these once in advance instead of once per sample, like + silk_noise_shape_quantizer_short_prediction_neon() does.*/ + int16x8_t coef16 = vld1q_s16(coef); + int32x4_t coef0 = vmovl_s16(vget_low_s16(coef16)); + int32x4_t coef1 = vmovl_s16(vget_high_s16(coef16)); + + /*This is not bit-exact with the C version, since we do not drop the + lower 16 bits of each multiply, but wait until the end to truncate + precision. This is an encoder-specific calculation (and unlike + silk_noise_shape_quantizer_short_prediction_neon(), is not meant to + simulate what the decoder will do). We still could use vqdmulhq_s32() + like silk_noise_shape_quantizer_short_prediction_neon() and save + half the multiplies, but the speed difference is not large, since we + then need two extra adds.*/ + int64x2_t b0 = vmull_s32(vget_low_s32(a0), vget_low_s32(coef0)); + int64x2_t b1 = vmlal_s32(b0, vget_high_s32(a0), vget_high_s32(coef0)); + int64x2_t b2 = vmlal_s32(b1, vget_low_s32(a1), vget_low_s32(coef1)); + int64x2_t b3 = vmlal_s32(b2, vget_high_s32(a1), vget_high_s32(coef1)); + + int64x1_t c = vadd_s64(vget_low_s64(b3), vget_high_s64(b3)); + int64x1_t cS = vrshr_n_s64(c, 15); + int32x2_t d = vreinterpret_s32_s64(cS); + + out = vget_lane_s32(d, 0); + vst1q_s32(data1, a0); + vst1q_s32(data1 + 4, a1); + return out; + } + return silk_NSQ_noise_shape_feedback_loop_c(data0, data1, coef, order); +} diff --git a/components/opus/libopus/silk/arm/NSQ_neon.h b/components/opus/libopus/silk/arm/NSQ_neon.h new file mode 100644 index 0000000..b31d944 --- /dev/null +++ b/components/opus/libopus/silk/arm/NSQ_neon.h @@ -0,0 +1,114 @@ +/*********************************************************************** +Copyright (C) 2014 Vidyo +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ +#ifndef SILK_NSQ_NEON_H +#define SILK_NSQ_NEON_H + +#include "cpu_support.h" +#include "SigProc_FIX.h" + +#undef silk_short_prediction_create_arch_coef +/* For vectorized calc, reverse a_Q12 coefs, convert to 32-bit, and shift for vqdmulhq_s32. */ +static OPUS_INLINE void silk_short_prediction_create_arch_coef_neon(opus_int32 *out, const opus_int16 *in, opus_int order) +{ + out[15] = silk_LSHIFT32(in[0], 15); + out[14] = silk_LSHIFT32(in[1], 15); + out[13] = silk_LSHIFT32(in[2], 15); + out[12] = silk_LSHIFT32(in[3], 15); + out[11] = silk_LSHIFT32(in[4], 15); + out[10] = silk_LSHIFT32(in[5], 15); + out[9] = silk_LSHIFT32(in[6], 15); + out[8] = silk_LSHIFT32(in[7], 15); + out[7] = silk_LSHIFT32(in[8], 15); + out[6] = silk_LSHIFT32(in[9], 15); + + if (order == 16) + { + out[5] = silk_LSHIFT32(in[10], 15); + out[4] = silk_LSHIFT32(in[11], 15); + out[3] = silk_LSHIFT32(in[12], 15); + out[2] = silk_LSHIFT32(in[13], 15); + out[1] = silk_LSHIFT32(in[14], 15); + out[0] = silk_LSHIFT32(in[15], 15); + } + else + { + out[5] = 0; + out[4] = 0; + out[3] = 0; + out[2] = 0; + out[1] = 0; + out[0] = 0; + } +} + +#if defined(OPUS_ARM_PRESUME_NEON_INTR) + +#define silk_short_prediction_create_arch_coef(out, in, order) \ + (silk_short_prediction_create_arch_coef_neon(out, in, order)) + +#elif defined(OPUS_HAVE_RTCD) && defined(OPUS_ARM_MAY_HAVE_NEON_INTR) + +#define silk_short_prediction_create_arch_coef(out, in, order) \ + do { if (arch == OPUS_ARCH_ARM_NEON) { silk_short_prediction_create_arch_coef_neon(out, in, order); } } while (0) + +#endif + +opus_int32 silk_noise_shape_quantizer_short_prediction_neon(const opus_int32 *buf32, const opus_int32 *coef32, opus_int order); + +opus_int32 silk_NSQ_noise_shape_feedback_loop_neon(const opus_int32 *data0, opus_int32 *data1, const opus_int16 *coef, opus_int order); + +#if defined(OPUS_ARM_PRESUME_NEON_INTR) +#undef silk_noise_shape_quantizer_short_prediction +#define silk_noise_shape_quantizer_short_prediction(in, coef, coefRev, order, arch) \ + ((void)arch,silk_noise_shape_quantizer_short_prediction_neon(in, coefRev, order)) + +#undef silk_NSQ_noise_shape_feedback_loop +#define silk_NSQ_noise_shape_feedback_loop(data0, data1, coef, order, arch) ((void)arch,silk_NSQ_noise_shape_feedback_loop_neon(data0, data1, coef, order)) + +#elif defined(OPUS_HAVE_RTCD) && defined(OPUS_ARM_MAY_HAVE_NEON_INTR) + +/* silk_noise_shape_quantizer_short_prediction implementations take different parameters based on arch + (coef vs. coefRev) so can't use the usual IMPL table implementation */ +#undef silk_noise_shape_quantizer_short_prediction +#define silk_noise_shape_quantizer_short_prediction(in, coef, coefRev, order, arch) \ + (arch == OPUS_ARCH_ARM_NEON ? \ + silk_noise_shape_quantizer_short_prediction_neon(in, coefRev, order) : \ + silk_noise_shape_quantizer_short_prediction_c(in, coef, order)) + +extern opus_int32 + (*const SILK_NSQ_NOISE_SHAPE_FEEDBACK_LOOP_IMPL[OPUS_ARCHMASK+1])( + const opus_int32 *data0, opus_int32 *data1, const opus_int16 *coef, + opus_int order); + +#undef silk_NSQ_noise_shape_feedback_loop +#define silk_NSQ_noise_shape_feedback_loop(data0, data1, coef, order, arch) \ + (SILK_NSQ_NOISE_SHAPE_FEEDBACK_LOOP_IMPL[(arch)&OPUS_ARCHMASK](data0, data1, \ + coef, order)) + +#endif + +#endif /* SILK_NSQ_NEON_H */ diff --git a/components/opus/libopus/silk/arm/SigProc_FIX_armv4.h b/components/opus/libopus/silk/arm/SigProc_FIX_armv4.h new file mode 100644 index 0000000..ff62b1e --- /dev/null +++ b/components/opus/libopus/silk/arm/SigProc_FIX_armv4.h @@ -0,0 +1,47 @@ +/*********************************************************************** +Copyright (C) 2013 Xiph.Org Foundation and contributors +Copyright (c) 2013 Parrot +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifndef SILK_SIGPROC_FIX_ARMv4_H +#define SILK_SIGPROC_FIX_ARMv4_H + +#undef silk_MLA +static OPUS_INLINE opus_int32 silk_MLA_armv4(opus_int32 a, opus_int32 b, + opus_int32 c) +{ + opus_int32 res; + __asm__( + "#silk_MLA\n\t" + "mla %0, %1, %2, %3\n\t" + : "=&r"(res) + : "r"(b), "r"(c), "r"(a) + ); + return res; +} +#define silk_MLA(a, b, c) (silk_MLA_armv4(a, b, c)) + +#endif diff --git a/components/opus/libopus/silk/arm/SigProc_FIX_armv5e.h b/components/opus/libopus/silk/arm/SigProc_FIX_armv5e.h new file mode 100644 index 0000000..617a09c --- /dev/null +++ b/components/opus/libopus/silk/arm/SigProc_FIX_armv5e.h @@ -0,0 +1,61 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Copyright (c) 2013 Parrot +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifndef SILK_SIGPROC_FIX_ARMv5E_H +#define SILK_SIGPROC_FIX_ARMv5E_H + +#undef silk_SMULTT +static OPUS_INLINE opus_int32 silk_SMULTT_armv5e(opus_int32 a, opus_int32 b) +{ + opus_int32 res; + __asm__( + "#silk_SMULTT\n\t" + "smultt %0, %1, %2\n\t" + : "=r"(res) + : "%r"(a), "r"(b) + ); + return res; +} +#define silk_SMULTT(a, b) (silk_SMULTT_armv5e(a, b)) + +#undef silk_SMLATT +static OPUS_INLINE opus_int32 silk_SMLATT_armv5e(opus_int32 a, opus_int32 b, + opus_int32 c) +{ + opus_int32 res; + __asm__( + "#silk_SMLATT\n\t" + "smlatt %0, %1, %2, %3\n\t" + : "=r"(res) + : "%r"(b), "r"(c), "r"(a) + ); + return res; +} +#define silk_SMLATT(a, b, c) (silk_SMLATT_armv5e(a, b, c)) + +#endif diff --git a/components/opus/libopus/silk/arm/arm_silk_map.c b/components/opus/libopus/silk/arm/arm_silk_map.c new file mode 100644 index 0000000..0b9bfec --- /dev/null +++ b/components/opus/libopus/silk/arm/arm_silk_map.c @@ -0,0 +1,123 @@ +/*********************************************************************** +Copyright (C) 2014 Vidyo +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + +#include "main_FIX.h" +#include "NSQ.h" +#include "SigProc_FIX.h" + +#if defined(OPUS_HAVE_RTCD) + +# if (defined(OPUS_ARM_MAY_HAVE_NEON_INTR) && \ + !defined(OPUS_ARM_PRESUME_NEON_INTR)) + +void (*const SILK_BIQUAD_ALT_STRIDE2_IMPL[OPUS_ARCHMASK + 1])( + const opus_int16 *in, /* I input signal */ + const opus_int32 *B_Q28, /* I MA coefficients [3] */ + const opus_int32 *A_Q28, /* I AR coefficients [2] */ + opus_int32 *S, /* I/O State vector [4] */ + opus_int16 *out, /* O output signal */ + const opus_int32 len /* I signal length (must be even) */ +) = { + silk_biquad_alt_stride2_c, /* ARMv4 */ + silk_biquad_alt_stride2_c, /* EDSP */ + silk_biquad_alt_stride2_c, /* Media */ + silk_biquad_alt_stride2_neon, /* Neon */ +}; + +opus_int32 (*const SILK_LPC_INVERSE_PRED_GAIN_IMPL[OPUS_ARCHMASK + 1])( /* O Returns inverse prediction gain in energy domain, Q30 */ + const opus_int16 *A_Q12, /* I Prediction coefficients, Q12 [order] */ + const opus_int order /* I Prediction order */ +) = { + silk_LPC_inverse_pred_gain_c, /* ARMv4 */ + silk_LPC_inverse_pred_gain_c, /* EDSP */ + silk_LPC_inverse_pred_gain_c, /* Media */ + silk_LPC_inverse_pred_gain_neon, /* Neon */ +}; + +void (*const SILK_NSQ_DEL_DEC_IMPL[OPUS_ARCHMASK + 1])( + const silk_encoder_state *psEncC, /* I Encoder State */ + silk_nsq_state *NSQ, /* I/O NSQ state */ + SideInfoIndices *psIndices, /* I/O Quantization Indices */ + const opus_int16 x16[], /* I Input */ + opus_int8 pulses[], /* O Quantized pulse signal */ + const opus_int16 PredCoef_Q12[ 2 * MAX_LPC_ORDER ], /* I Short term prediction coefs */ + const opus_int16 LTPCoef_Q14[ LTP_ORDER * MAX_NB_SUBFR ], /* I Long term prediction coefs */ + const opus_int16 AR_Q13[ MAX_NB_SUBFR * MAX_SHAPE_LPC_ORDER ], /* I Noise shaping coefs */ + const opus_int HarmShapeGain_Q14[ MAX_NB_SUBFR ], /* I Long term shaping coefs */ + const opus_int Tilt_Q14[ MAX_NB_SUBFR ], /* I Spectral tilt */ + const opus_int32 LF_shp_Q14[ MAX_NB_SUBFR ], /* I Low frequency shaping coefs */ + const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I Quantization step sizes */ + const opus_int pitchL[ MAX_NB_SUBFR ], /* I Pitch lags */ + const opus_int Lambda_Q10, /* I Rate/distortion tradeoff */ + const opus_int LTP_scale_Q14 /* I LTP state scaling */ +) = { + silk_NSQ_del_dec_c, /* ARMv4 */ + silk_NSQ_del_dec_c, /* EDSP */ + silk_NSQ_del_dec_c, /* Media */ + silk_NSQ_del_dec_neon, /* Neon */ +}; + +/*There is no table for silk_noise_shape_quantizer_short_prediction because the + NEON version takes different parameters than the C version. + Instead RTCD is done via if statements at the call sites. + See NSQ_neon.h for details.*/ + +opus_int32 + (*const SILK_NSQ_NOISE_SHAPE_FEEDBACK_LOOP_IMPL[OPUS_ARCHMASK+1])( + const opus_int32 *data0, opus_int32 *data1, const opus_int16 *coef, + opus_int order) = { + silk_NSQ_noise_shape_feedback_loop_c, /* ARMv4 */ + silk_NSQ_noise_shape_feedback_loop_c, /* EDSP */ + silk_NSQ_noise_shape_feedback_loop_c, /* Media */ + silk_NSQ_noise_shape_feedback_loop_neon, /* NEON */ +}; + +# endif + +# if defined(FIXED_POINT) && \ + defined(OPUS_ARM_MAY_HAVE_NEON_INTR) && !defined(OPUS_ARM_PRESUME_NEON_INTR) + +void (*const SILK_WARPED_AUTOCORRELATION_FIX_IMPL[OPUS_ARCHMASK + 1])( + opus_int32 *corr, /* O Result [order + 1] */ + opus_int *scale, /* O Scaling of the correlation vector */ + const opus_int16 *input, /* I Input data to correlate */ + const opus_int warping_Q16, /* I Warping coefficient */ + const opus_int length, /* I Length of input */ + const opus_int order /* I Correlation order (even) */ +) = { + silk_warped_autocorrelation_FIX_c, /* ARMv4 */ + silk_warped_autocorrelation_FIX_c, /* EDSP */ + silk_warped_autocorrelation_FIX_c, /* Media */ + silk_warped_autocorrelation_FIX_neon, /* Neon */ +}; + +# endif + +#endif /* OPUS_HAVE_RTCD */ diff --git a/components/opus/libopus/silk/arm/biquad_alt_arm.h b/components/opus/libopus/silk/arm/biquad_alt_arm.h new file mode 100644 index 0000000..66ea9f4 --- /dev/null +++ b/components/opus/libopus/silk/arm/biquad_alt_arm.h @@ -0,0 +1,68 @@ +/*********************************************************************** +Copyright (c) 2017 Google Inc. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifndef SILK_BIQUAD_ALT_ARM_H +# define SILK_BIQUAD_ALT_ARM_H + +# include "celt/arm/armcpu.h" + +# if defined(OPUS_ARM_MAY_HAVE_NEON_INTR) +void silk_biquad_alt_stride2_neon( + const opus_int16 *in, /* I input signal */ + const opus_int32 *B_Q28, /* I MA coefficients [3] */ + const opus_int32 *A_Q28, /* I AR coefficients [2] */ + opus_int32 *S, /* I/O State vector [4] */ + opus_int16 *out, /* O output signal */ + const opus_int32 len /* I signal length (must be even) */ +); + +# if !defined(OPUS_HAVE_RTCD) && defined(OPUS_ARM_PRESUME_NEON) +# define OVERRIDE_silk_biquad_alt_stride2 (1) +# define silk_biquad_alt_stride2(in, B_Q28, A_Q28, S, out, len, arch) ((void)(arch), PRESUME_NEON(silk_biquad_alt_stride2)(in, B_Q28, A_Q28, S, out, len)) +# endif +# endif + +# if !defined(OVERRIDE_silk_biquad_alt_stride2) +/*Is run-time CPU detection enabled on this platform?*/ +# if defined(OPUS_HAVE_RTCD) && (defined(OPUS_ARM_MAY_HAVE_NEON_INTR) && !defined(OPUS_ARM_PRESUME_NEON_INTR)) +extern void (*const SILK_BIQUAD_ALT_STRIDE2_IMPL[OPUS_ARCHMASK+1])( + const opus_int16 *in, /* I input signal */ + const opus_int32 *B_Q28, /* I MA coefficients [3] */ + const opus_int32 *A_Q28, /* I AR coefficients [2] */ + opus_int32 *S, /* I/O State vector [4] */ + opus_int16 *out, /* O output signal */ + const opus_int32 len /* I signal length (must be even) */ + ); +# define OVERRIDE_silk_biquad_alt_stride2 (1) +# define silk_biquad_alt_stride2(in, B_Q28, A_Q28, S, out, len, arch) ((*SILK_BIQUAD_ALT_STRIDE2_IMPL[(arch)&OPUS_ARCHMASK])(in, B_Q28, A_Q28, S, out, len)) +# elif defined(OPUS_ARM_PRESUME_NEON_INTR) +# define OVERRIDE_silk_biquad_alt_stride2 (1) +# define silk_biquad_alt_stride2(in, B_Q28, A_Q28, S, out, len, arch) ((void)(arch), silk_biquad_alt_stride2_neon(in, B_Q28, A_Q28, S, out, len)) +# endif +# endif + +#endif /* end SILK_BIQUAD_ALT_ARM_H */ diff --git a/components/opus/libopus/silk/arm/biquad_alt_neon_intr.c b/components/opus/libopus/silk/arm/biquad_alt_neon_intr.c new file mode 100644 index 0000000..9715733 --- /dev/null +++ b/components/opus/libopus/silk/arm/biquad_alt_neon_intr.c @@ -0,0 +1,156 @@ +/*********************************************************************** +Copyright (c) 2017 Google Inc. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#ifdef OPUS_CHECK_ASM +# include +# include "stack_alloc.h" +#endif +#include "SigProc_FIX.h" + +static inline void silk_biquad_alt_stride2_kernel( const int32x4_t A_L_s32x4, const int32x4_t A_U_s32x4, const int32x4_t B_Q28_s32x4, const int32x2_t t_s32x2, const int32x4_t in_s32x4, int32x4_t *S_s32x4, int32x2_t *out32_Q14_s32x2 ) +{ + int32x4_t t_s32x4, out32_Q14_s32x4; + + *out32_Q14_s32x2 = vadd_s32( vget_low_s32( *S_s32x4 ), t_s32x2 ); /* silk_SMLAWB( S{0,1}, B_Q28[ 0 ], in{0,1} ) */ + *S_s32x4 = vcombine_s32( vget_high_s32( *S_s32x4 ), vdup_n_s32( 0 ) ); /* S{0,1} = S{2,3}; S{2,3} = 0; */ + *out32_Q14_s32x2 = vshl_n_s32( *out32_Q14_s32x2, 2 ); /* out32_Q14_{0,1} = silk_LSHIFT( silk_SMLAWB( S{0,1}, B_Q28[ 0 ], in{0,1} ), 2 ); */ + out32_Q14_s32x4 = vcombine_s32( *out32_Q14_s32x2, *out32_Q14_s32x2 ); /* out32_Q14_{0,1,0,1} */ + t_s32x4 = vqdmulhq_s32( out32_Q14_s32x4, A_L_s32x4 ); /* silk_SMULWB( out32_Q14_{0,1,0,1}, A{0,0,1,1}_L_Q28 ) */ + *S_s32x4 = vrsraq_n_s32( *S_s32x4, t_s32x4, 14 ); /* S{0,1} = S{2,3} + silk_RSHIFT_ROUND(); S{2,3} = silk_RSHIFT_ROUND(); */ + t_s32x4 = vqdmulhq_s32( out32_Q14_s32x4, A_U_s32x4 ); /* silk_SMULWB( out32_Q14_{0,1,0,1}, A{0,0,1,1}_U_Q28 ) */ + *S_s32x4 = vaddq_s32( *S_s32x4, t_s32x4 ); /* S0 = silk_SMLAWB( S{0,1,2,3}, out32_Q14_{0,1,0,1}, A{0,0,1,1}_U_Q28 ); */ + t_s32x4 = vqdmulhq_s32( in_s32x4, B_Q28_s32x4 ); /* silk_SMULWB( B_Q28[ {1,1,2,2} ], in{0,1,0,1} ) */ + *S_s32x4 = vaddq_s32( *S_s32x4, t_s32x4 ); /* S0 = silk_SMLAWB( S0, B_Q28[ {1,1,2,2} ], in{0,1,0,1} ); */ +} + +void silk_biquad_alt_stride2_neon( + const opus_int16 *in, /* I input signal */ + const opus_int32 *B_Q28, /* I MA coefficients [3] */ + const opus_int32 *A_Q28, /* I AR coefficients [2] */ + opus_int32 *S, /* I/O State vector [4] */ + opus_int16 *out, /* O output signal */ + const opus_int32 len /* I signal length (must be even) */ +) +{ + /* DIRECT FORM II TRANSPOSED (uses 2 element state vector) */ + opus_int k = 0; + const int32x2_t offset_s32x2 = vdup_n_s32( (1<<14) - 1 ); + const int32x4_t offset_s32x4 = vcombine_s32( offset_s32x2, offset_s32x2 ); + int16x4_t in_s16x4 = vdup_n_s16( 0 ); + int16x4_t out_s16x4; + int32x2_t A_Q28_s32x2, A_L_s32x2, A_U_s32x2, B_Q28_s32x2, t_s32x2; + int32x4_t A_L_s32x4, A_U_s32x4, B_Q28_s32x4, S_s32x4, out32_Q14_s32x4; + int32x2x2_t t0_s32x2x2, t1_s32x2x2, t2_s32x2x2, S_s32x2x2; + +#ifdef OPUS_CHECK_ASM + opus_int32 S_c[ 4 ]; + VARDECL( opus_int16, out_c ); + SAVE_STACK; + ALLOC( out_c, 2 * len, opus_int16 ); + + silk_memcpy( &S_c, S, sizeof( S_c ) ); + silk_biquad_alt_stride2_c( in, B_Q28, A_Q28, S_c, out_c, len ); +#endif + + /* Negate A_Q28 values and split in two parts */ + A_Q28_s32x2 = vld1_s32( A_Q28 ); + A_Q28_s32x2 = vneg_s32( A_Q28_s32x2 ); + A_L_s32x2 = vshl_n_s32( A_Q28_s32x2, 18 ); /* ( -A_Q28[] & 0x00003FFF ) << 18 */ + A_L_s32x2 = vreinterpret_s32_u32( vshr_n_u32( vreinterpret_u32_s32( A_L_s32x2 ), 3 ) ); /* ( -A_Q28[] & 0x00003FFF ) << 15 */ + A_U_s32x2 = vshr_n_s32( A_Q28_s32x2, 14 ); /* silk_RSHIFT( -A_Q28[], 14 ) */ + A_U_s32x2 = vshl_n_s32( A_U_s32x2, 16 ); /* silk_RSHIFT( -A_Q28[], 14 ) << 16 (Clip two leading bits to conform to C function.) */ + A_U_s32x2 = vshr_n_s32( A_U_s32x2, 1 ); /* silk_RSHIFT( -A_Q28[], 14 ) << 15 */ + + B_Q28_s32x2 = vld1_s32( B_Q28 ); + t_s32x2 = vld1_s32( B_Q28 + 1 ); + t0_s32x2x2 = vzip_s32( A_L_s32x2, A_L_s32x2 ); + t1_s32x2x2 = vzip_s32( A_U_s32x2, A_U_s32x2 ); + t2_s32x2x2 = vzip_s32( t_s32x2, t_s32x2 ); + A_L_s32x4 = vcombine_s32( t0_s32x2x2.val[ 0 ], t0_s32x2x2.val[ 1 ] ); /* A{0,0,1,1}_L_Q28 */ + A_U_s32x4 = vcombine_s32( t1_s32x2x2.val[ 0 ], t1_s32x2x2.val[ 1 ] ); /* A{0,0,1,1}_U_Q28 */ + B_Q28_s32x4 = vcombine_s32( t2_s32x2x2.val[ 0 ], t2_s32x2x2.val[ 1 ] ); /* B_Q28[ {1,1,2,2} ] */ + S_s32x4 = vld1q_s32( S ); /* S0 = S[ 0 ]; S3 = S[ 3 ]; */ + S_s32x2x2 = vtrn_s32( vget_low_s32( S_s32x4 ), vget_high_s32( S_s32x4 ) ); /* S2 = S[ 1 ]; S1 = S[ 2 ]; */ + S_s32x4 = vcombine_s32( S_s32x2x2.val[ 0 ], S_s32x2x2.val[ 1 ] ); + + for( ; k < len - 1; k += 2 ) { + int32x4_t in_s32x4[ 2 ], t_s32x4; + int32x2_t out32_Q14_s32x2[ 2 ]; + + /* S[ 2 * i + 0 ], S[ 2 * i + 1 ], S[ 2 * i + 2 ], S[ 2 * i + 3 ]: Q12 */ + in_s16x4 = vld1_s16( &in[ 2 * k ] ); /* in{0,1,2,3} = in[ 2 * k + {0,1,2,3} ]; */ + in_s32x4[ 0 ] = vshll_n_s16( in_s16x4, 15 ); /* in{0,1,2,3} << 15 */ + t_s32x4 = vqdmulhq_lane_s32( in_s32x4[ 0 ], B_Q28_s32x2, 0 ); /* silk_SMULWB( B_Q28[ 0 ], in{0,1,2,3} ) */ + in_s32x4[ 1 ] = vcombine_s32( vget_high_s32( in_s32x4[ 0 ] ), vget_high_s32( in_s32x4[ 0 ] ) ); /* in{2,3,2,3} << 15 */ + in_s32x4[ 0 ] = vcombine_s32( vget_low_s32 ( in_s32x4[ 0 ] ), vget_low_s32 ( in_s32x4[ 0 ] ) ); /* in{0,1,0,1} << 15 */ + silk_biquad_alt_stride2_kernel( A_L_s32x4, A_U_s32x4, B_Q28_s32x4, vget_low_s32 ( t_s32x4 ), in_s32x4[ 0 ], &S_s32x4, &out32_Q14_s32x2[ 0 ] ); + silk_biquad_alt_stride2_kernel( A_L_s32x4, A_U_s32x4, B_Q28_s32x4, vget_high_s32( t_s32x4 ), in_s32x4[ 1 ], &S_s32x4, &out32_Q14_s32x2[ 1 ] ); + + /* Scale back to Q0 and saturate */ + out32_Q14_s32x4 = vcombine_s32( out32_Q14_s32x2[ 0 ], out32_Q14_s32x2[ 1 ] ); /* out32_Q14_{0,1,2,3} */ + out32_Q14_s32x4 = vaddq_s32( out32_Q14_s32x4, offset_s32x4 ); /* out32_Q14_{0,1,2,3} + (1<<14) - 1 */ + out_s16x4 = vqshrn_n_s32( out32_Q14_s32x4, 14 ); /* (opus_int16)silk_SAT16( silk_RSHIFT( out32_Q14_{0,1,2,3} + (1<<14) - 1, 14 ) ) */ + vst1_s16( &out[ 2 * k ], out_s16x4 ); /* out[ 2 * k + {0,1,2,3} ] = (opus_int16)silk_SAT16( silk_RSHIFT( out32_Q14_{0,1,2,3} + (1<<14) - 1, 14 ) ); */ + } + + /* Process leftover. */ + if( k < len ) { + int32x4_t in_s32x4; + int32x2_t out32_Q14_s32x2; + + /* S[ 2 * i + 0 ], S[ 2 * i + 1 ]: Q12 */ + in_s16x4 = vld1_lane_s16( &in[ 2 * k + 0 ], in_s16x4, 0 ); /* in{0,1} = in[ 2 * k + {0,1} ]; */ + in_s16x4 = vld1_lane_s16( &in[ 2 * k + 1 ], in_s16x4, 1 ); /* in{0,1} = in[ 2 * k + {0,1} ]; */ + in_s32x4 = vshll_n_s16( in_s16x4, 15 ); /* in{0,1} << 15 */ + t_s32x2 = vqdmulh_lane_s32( vget_low_s32( in_s32x4 ), B_Q28_s32x2, 0 ); /* silk_SMULWB( B_Q28[ 0 ], in{0,1} ) */ + in_s32x4 = vcombine_s32( vget_low_s32( in_s32x4 ), vget_low_s32( in_s32x4 ) ); /* in{0,1,0,1} << 15 */ + silk_biquad_alt_stride2_kernel( A_L_s32x4, A_U_s32x4, B_Q28_s32x4, t_s32x2, in_s32x4, &S_s32x4, &out32_Q14_s32x2 ); + + /* Scale back to Q0 and saturate */ + out32_Q14_s32x2 = vadd_s32( out32_Q14_s32x2, offset_s32x2 ); /* out32_Q14_{0,1} + (1<<14) - 1 */ + out32_Q14_s32x4 = vcombine_s32( out32_Q14_s32x2, out32_Q14_s32x2 ); /* out32_Q14_{0,1,0,1} + (1<<14) - 1 */ + out_s16x4 = vqshrn_n_s32( out32_Q14_s32x4, 14 ); /* (opus_int16)silk_SAT16( silk_RSHIFT( out32_Q14_{0,1,0,1} + (1<<14) - 1, 14 ) ) */ + vst1_lane_s16( &out[ 2 * k + 0 ], out_s16x4, 0 ); /* out[ 2 * k + 0 ] = (opus_int16)silk_SAT16( silk_RSHIFT( out32_Q14_0 + (1<<14) - 1, 14 ) ); */ + vst1_lane_s16( &out[ 2 * k + 1 ], out_s16x4, 1 ); /* out[ 2 * k + 1 ] = (opus_int16)silk_SAT16( silk_RSHIFT( out32_Q14_1 + (1<<14) - 1, 14 ) ); */ + } + + vst1q_lane_s32( &S[ 0 ], S_s32x4, 0 ); /* S[ 0 ] = S0; */ + vst1q_lane_s32( &S[ 1 ], S_s32x4, 2 ); /* S[ 1 ] = S2; */ + vst1q_lane_s32( &S[ 2 ], S_s32x4, 1 ); /* S[ 2 ] = S1; */ + vst1q_lane_s32( &S[ 3 ], S_s32x4, 3 ); /* S[ 3 ] = S3; */ + +#ifdef OPUS_CHECK_ASM + silk_assert( !memcmp( S_c, S, sizeof( S_c ) ) ); + silk_assert( !memcmp( out_c, out, 2 * len * sizeof( opus_int16 ) ) ); + RESTORE_STACK; +#endif +} diff --git a/components/opus/libopus/silk/arm/macros_arm64.h b/components/opus/libopus/silk/arm/macros_arm64.h new file mode 100644 index 0000000..ed03041 --- /dev/null +++ b/components/opus/libopus/silk/arm/macros_arm64.h @@ -0,0 +1,39 @@ +/*********************************************************************** +Copyright (C) 2015 Vidyo +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifndef SILK_MACROS_ARM64_H +#define SILK_MACROS_ARM64_H + +#include + +#undef silk_ADD_SAT32 +#define silk_ADD_SAT32(a, b) (vqadds_s32((a), (b))) + +#undef silk_SUB_SAT32 +#define silk_SUB_SAT32(a, b) (vqsubs_s32((a), (b))) + +#endif /* SILK_MACROS_ARM64_H */ diff --git a/components/opus/libopus/silk/arm/macros_armv4.h b/components/opus/libopus/silk/arm/macros_armv4.h new file mode 100644 index 0000000..877eb18 --- /dev/null +++ b/components/opus/libopus/silk/arm/macros_armv4.h @@ -0,0 +1,110 @@ +/*********************************************************************** +Copyright (C) 2013 Xiph.Org Foundation and contributors. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifndef SILK_MACROS_ARMv4_H +#define SILK_MACROS_ARMv4_H + +/* This macro only avoids the undefined behaviour from a left shift of + a negative value. It should only be used in macros that can't include + SigProc_FIX.h. In other cases, use silk_LSHIFT32(). */ +#define SAFE_SHL(a,b) ((opus_int32)((opus_uint32)(a) << (b))) + +/* (a32 * (opus_int32)((opus_int16)(b32))) >> 16 output have to be 32bit int */ +#undef silk_SMULWB +static OPUS_INLINE opus_int32 silk_SMULWB_armv4(opus_int32 a, opus_int16 b) +{ + unsigned rd_lo; + int rd_hi; + __asm__( + "#silk_SMULWB\n\t" + "smull %0, %1, %2, %3\n\t" + : "=&r"(rd_lo), "=&r"(rd_hi) + : "%r"(a), "r"(SAFE_SHL(b,16)) + ); + return rd_hi; +} +#define silk_SMULWB(a, b) (silk_SMULWB_armv4(a, b)) + +/* a32 + (b32 * (opus_int32)((opus_int16)(c32))) >> 16 output have to be 32bit int */ +#undef silk_SMLAWB +#define silk_SMLAWB(a, b, c) ((a) + silk_SMULWB(b, c)) + +/* (a32 * (b32 >> 16)) >> 16 */ +#undef silk_SMULWT +static OPUS_INLINE opus_int32 silk_SMULWT_armv4(opus_int32 a, opus_int32 b) +{ + unsigned rd_lo; + int rd_hi; + __asm__( + "#silk_SMULWT\n\t" + "smull %0, %1, %2, %3\n\t" + : "=&r"(rd_lo), "=&r"(rd_hi) + : "%r"(a), "r"(b&~0xFFFF) + ); + return rd_hi; +} +#define silk_SMULWT(a, b) (silk_SMULWT_armv4(a, b)) + +/* a32 + (b32 * (c32 >> 16)) >> 16 */ +#undef silk_SMLAWT +#define silk_SMLAWT(a, b, c) ((a) + silk_SMULWT(b, c)) + +/* (a32 * b32) >> 16 */ +#undef silk_SMULWW +static OPUS_INLINE opus_int32 silk_SMULWW_armv4(opus_int32 a, opus_int32 b) +{ + unsigned rd_lo; + int rd_hi; + __asm__( + "#silk_SMULWW\n\t" + "smull %0, %1, %2, %3\n\t" + : "=&r"(rd_lo), "=&r"(rd_hi) + : "%r"(a), "r"(b) + ); + return SAFE_SHL(rd_hi,16)+(rd_lo>>16); +} +#define silk_SMULWW(a, b) (silk_SMULWW_armv4(a, b)) + +#undef silk_SMLAWW +static OPUS_INLINE opus_int32 silk_SMLAWW_armv4(opus_int32 a, opus_int32 b, + opus_int32 c) +{ + unsigned rd_lo; + int rd_hi; + __asm__( + "#silk_SMLAWW\n\t" + "smull %0, %1, %2, %3\n\t" + : "=&r"(rd_lo), "=&r"(rd_hi) + : "%r"(b), "r"(c) + ); + return a+SAFE_SHL(rd_hi,16)+(rd_lo>>16); +} +#define silk_SMLAWW(a, b, c) (silk_SMLAWW_armv4(a, b, c)) + +#undef SAFE_SHL + +#endif /* SILK_MACROS_ARMv4_H */ diff --git a/components/opus/libopus/silk/arm/macros_armv5e.h b/components/opus/libopus/silk/arm/macros_armv5e.h new file mode 100644 index 0000000..b14ec65 --- /dev/null +++ b/components/opus/libopus/silk/arm/macros_armv5e.h @@ -0,0 +1,220 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Copyright (c) 2013 Parrot +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifndef SILK_MACROS_ARMv5E_H +#define SILK_MACROS_ARMv5E_H + +/* This macro only avoids the undefined behaviour from a left shift of + a negative value. It should only be used in macros that can't include + SigProc_FIX.h. In other cases, use silk_LSHIFT32(). */ +#define SAFE_SHL(a,b) ((opus_int32)((opus_uint32)(a) << (b))) + +/* (a32 * (opus_int32)((opus_int16)(b32))) >> 16 output have to be 32bit int */ +#undef silk_SMULWB +static OPUS_INLINE opus_int32 silk_SMULWB_armv5e(opus_int32 a, opus_int16 b) +{ + int res; + __asm__( + "#silk_SMULWB\n\t" + "smulwb %0, %1, %2\n\t" + : "=r"(res) + : "r"(a), "r"(b) + ); + return res; +} +#define silk_SMULWB(a, b) (silk_SMULWB_armv5e(a, b)) + +/* a32 + (b32 * (opus_int32)((opus_int16)(c32))) >> 16 output have to be 32bit int */ +#undef silk_SMLAWB +static OPUS_INLINE opus_int32 silk_SMLAWB_armv5e(opus_int32 a, opus_int32 b, + opus_int16 c) +{ + int res; + __asm__( + "#silk_SMLAWB\n\t" + "smlawb %0, %1, %2, %3\n\t" + : "=r"(res) + : "r"(b), "r"(c), "r"(a) + ); + return res; +} +#define silk_SMLAWB(a, b, c) (silk_SMLAWB_armv5e(a, b, c)) + +/* (a32 * (b32 >> 16)) >> 16 */ +#undef silk_SMULWT +static OPUS_INLINE opus_int32 silk_SMULWT_armv5e(opus_int32 a, opus_int32 b) +{ + int res; + __asm__( + "#silk_SMULWT\n\t" + "smulwt %0, %1, %2\n\t" + : "=r"(res) + : "r"(a), "r"(b) + ); + return res; +} +#define silk_SMULWT(a, b) (silk_SMULWT_armv5e(a, b)) + +/* a32 + (b32 * (c32 >> 16)) >> 16 */ +#undef silk_SMLAWT +static OPUS_INLINE opus_int32 silk_SMLAWT_armv5e(opus_int32 a, opus_int32 b, + opus_int32 c) +{ + int res; + __asm__( + "#silk_SMLAWT\n\t" + "smlawt %0, %1, %2, %3\n\t" + : "=r"(res) + : "r"(b), "r"(c), "r"(a) + ); + return res; +} +#define silk_SMLAWT(a, b, c) (silk_SMLAWT_armv5e(a, b, c)) + +/* (opus_int32)((opus_int16)(a3))) * (opus_int32)((opus_int16)(b32)) output have to be 32bit int */ +#undef silk_SMULBB +static OPUS_INLINE opus_int32 silk_SMULBB_armv5e(opus_int32 a, opus_int32 b) +{ + int res; + __asm__( + "#silk_SMULBB\n\t" + "smulbb %0, %1, %2\n\t" + : "=r"(res) + : "%r"(a), "r"(b) + ); + return res; +} +#define silk_SMULBB(a, b) (silk_SMULBB_armv5e(a, b)) + +/* a32 + (opus_int32)((opus_int16)(b32)) * (opus_int32)((opus_int16)(c32)) output have to be 32bit int */ +#undef silk_SMLABB +static OPUS_INLINE opus_int32 silk_SMLABB_armv5e(opus_int32 a, opus_int32 b, + opus_int32 c) +{ + int res; + __asm__( + "#silk_SMLABB\n\t" + "smlabb %0, %1, %2, %3\n\t" + : "=r"(res) + : "%r"(b), "r"(c), "r"(a) + ); + return res; +} +#define silk_SMLABB(a, b, c) (silk_SMLABB_armv5e(a, b, c)) + +/* (opus_int32)((opus_int16)(a32)) * (b32 >> 16) */ +#undef silk_SMULBT +static OPUS_INLINE opus_int32 silk_SMULBT_armv5e(opus_int32 a, opus_int32 b) +{ + int res; + __asm__( + "#silk_SMULBT\n\t" + "smulbt %0, %1, %2\n\t" + : "=r"(res) + : "r"(a), "r"(b) + ); + return res; +} +#define silk_SMULBT(a, b) (silk_SMULBT_armv5e(a, b)) + +/* a32 + (opus_int32)((opus_int16)(b32)) * (c32 >> 16) */ +#undef silk_SMLABT +static OPUS_INLINE opus_int32 silk_SMLABT_armv5e(opus_int32 a, opus_int32 b, + opus_int32 c) +{ + int res; + __asm__( + "#silk_SMLABT\n\t" + "smlabt %0, %1, %2, %3\n\t" + : "=r"(res) + : "r"(b), "r"(c), "r"(a) + ); + return res; +} +#define silk_SMLABT(a, b, c) (silk_SMLABT_armv5e(a, b, c)) + +/* add/subtract with output saturated */ +#undef silk_ADD_SAT32 +static OPUS_INLINE opus_int32 silk_ADD_SAT32_armv5e(opus_int32 a, opus_int32 b) +{ + int res; + __asm__( + "#silk_ADD_SAT32\n\t" + "qadd %0, %1, %2\n\t" + : "=r"(res) + : "%r"(a), "r"(b) + ); + return res; +} +#define silk_ADD_SAT32(a, b) (silk_ADD_SAT32_armv5e(a, b)) + +#undef silk_SUB_SAT32 +static OPUS_INLINE opus_int32 silk_SUB_SAT32_armv5e(opus_int32 a, opus_int32 b) +{ + int res; + __asm__( + "#silk_SUB_SAT32\n\t" + "qsub %0, %1, %2\n\t" + : "=r"(res) + : "r"(a), "r"(b) + ); + return res; +} +#define silk_SUB_SAT32(a, b) (silk_SUB_SAT32_armv5e(a, b)) + +#undef silk_CLZ16 +static OPUS_INLINE opus_int32 silk_CLZ16_armv5(opus_int16 in16) +{ + int res; + __asm__( + "#silk_CLZ16\n\t" + "clz %0, %1;\n" + : "=r"(res) + : "r"(SAFE_SHL(in16,16)|0x8000) + ); + return res; +} +#define silk_CLZ16(in16) (silk_CLZ16_armv5(in16)) + +#undef silk_CLZ32 +static OPUS_INLINE opus_int32 silk_CLZ32_armv5(opus_int32 in32) +{ + int res; + __asm__( + "#silk_CLZ32\n\t" + "clz %0, %1\n\t" + : "=r"(res) + : "r"(in32) + ); + return res; +} +#define silk_CLZ32(in32) (silk_CLZ32_armv5(in32)) + +#undef SAFE_SHL + +#endif /* SILK_MACROS_ARMv5E_H */ diff --git a/components/opus/libopus/silk/biquad_alt.c b/components/opus/libopus/silk/biquad_alt.c new file mode 100644 index 0000000..54566a4 --- /dev/null +++ b/components/opus/libopus/silk/biquad_alt.c @@ -0,0 +1,121 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +/* * + * silk_biquad_alt.c * + * * + * Second order ARMA filter * + * Can handle slowly varying filter coefficients * + * */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "SigProc_FIX.h" + +/* Second order ARMA filter, alternative implementation */ +void silk_biquad_alt_stride1( + const opus_int16 *in, /* I input signal */ + const opus_int32 *B_Q28, /* I MA coefficients [3] */ + const opus_int32 *A_Q28, /* I AR coefficients [2] */ + opus_int32 *S, /* I/O State vector [2] */ + opus_int16 *out, /* O output signal */ + const opus_int32 len /* I signal length (must be even) */ +) +{ + /* DIRECT FORM II TRANSPOSED (uses 2 element state vector) */ + opus_int k; + opus_int32 inval, A0_U_Q28, A0_L_Q28, A1_U_Q28, A1_L_Q28, out32_Q14; + + /* Negate A_Q28 values and split in two parts */ + A0_L_Q28 = ( -A_Q28[ 0 ] ) & 0x00003FFF; /* lower part */ + A0_U_Q28 = silk_RSHIFT( -A_Q28[ 0 ], 14 ); /* upper part */ + A1_L_Q28 = ( -A_Q28[ 1 ] ) & 0x00003FFF; /* lower part */ + A1_U_Q28 = silk_RSHIFT( -A_Q28[ 1 ], 14 ); /* upper part */ + + for( k = 0; k < len; k++ ) { + /* S[ 0 ], S[ 1 ]: Q12 */ + inval = in[ k ]; + out32_Q14 = silk_LSHIFT( silk_SMLAWB( S[ 0 ], B_Q28[ 0 ], inval ), 2 ); + + S[ 0 ] = S[1] + silk_RSHIFT_ROUND( silk_SMULWB( out32_Q14, A0_L_Q28 ), 14 ); + S[ 0 ] = silk_SMLAWB( S[ 0 ], out32_Q14, A0_U_Q28 ); + S[ 0 ] = silk_SMLAWB( S[ 0 ], B_Q28[ 1 ], inval); + + S[ 1 ] = silk_RSHIFT_ROUND( silk_SMULWB( out32_Q14, A1_L_Q28 ), 14 ); + S[ 1 ] = silk_SMLAWB( S[ 1 ], out32_Q14, A1_U_Q28 ); + S[ 1 ] = silk_SMLAWB( S[ 1 ], B_Q28[ 2 ], inval ); + + /* Scale back to Q0 and saturate */ + out[ k ] = (opus_int16)silk_SAT16( silk_RSHIFT( out32_Q14 + (1<<14) - 1, 14 ) ); + } +} + +void silk_biquad_alt_stride2_c( + const opus_int16 *in, /* I input signal */ + const opus_int32 *B_Q28, /* I MA coefficients [3] */ + const opus_int32 *A_Q28, /* I AR coefficients [2] */ + opus_int32 *S, /* I/O State vector [4] */ + opus_int16 *out, /* O output signal */ + const opus_int32 len /* I signal length (must be even) */ +) +{ + /* DIRECT FORM II TRANSPOSED (uses 2 element state vector) */ + opus_int k; + opus_int32 A0_U_Q28, A0_L_Q28, A1_U_Q28, A1_L_Q28, out32_Q14[ 2 ]; + + /* Negate A_Q28 values and split in two parts */ + A0_L_Q28 = ( -A_Q28[ 0 ] ) & 0x00003FFF; /* lower part */ + A0_U_Q28 = silk_RSHIFT( -A_Q28[ 0 ], 14 ); /* upper part */ + A1_L_Q28 = ( -A_Q28[ 1 ] ) & 0x00003FFF; /* lower part */ + A1_U_Q28 = silk_RSHIFT( -A_Q28[ 1 ], 14 ); /* upper part */ + + for( k = 0; k < len; k++ ) { + /* S[ 0 ], S[ 1 ], S[ 2 ], S[ 3 ]: Q12 */ + out32_Q14[ 0 ] = silk_LSHIFT( silk_SMLAWB( S[ 0 ], B_Q28[ 0 ], in[ 2 * k + 0 ] ), 2 ); + out32_Q14[ 1 ] = silk_LSHIFT( silk_SMLAWB( S[ 2 ], B_Q28[ 0 ], in[ 2 * k + 1 ] ), 2 ); + + S[ 0 ] = S[ 1 ] + silk_RSHIFT_ROUND( silk_SMULWB( out32_Q14[ 0 ], A0_L_Q28 ), 14 ); + S[ 2 ] = S[ 3 ] + silk_RSHIFT_ROUND( silk_SMULWB( out32_Q14[ 1 ], A0_L_Q28 ), 14 ); + S[ 0 ] = silk_SMLAWB( S[ 0 ], out32_Q14[ 0 ], A0_U_Q28 ); + S[ 2 ] = silk_SMLAWB( S[ 2 ], out32_Q14[ 1 ], A0_U_Q28 ); + S[ 0 ] = silk_SMLAWB( S[ 0 ], B_Q28[ 1 ], in[ 2 * k + 0 ] ); + S[ 2 ] = silk_SMLAWB( S[ 2 ], B_Q28[ 1 ], in[ 2 * k + 1 ] ); + + S[ 1 ] = silk_RSHIFT_ROUND( silk_SMULWB( out32_Q14[ 0 ], A1_L_Q28 ), 14 ); + S[ 3 ] = silk_RSHIFT_ROUND( silk_SMULWB( out32_Q14[ 1 ], A1_L_Q28 ), 14 ); + S[ 1 ] = silk_SMLAWB( S[ 1 ], out32_Q14[ 0 ], A1_U_Q28 ); + S[ 3 ] = silk_SMLAWB( S[ 3 ], out32_Q14[ 1 ], A1_U_Q28 ); + S[ 1 ] = silk_SMLAWB( S[ 1 ], B_Q28[ 2 ], in[ 2 * k + 0 ] ); + S[ 3 ] = silk_SMLAWB( S[ 3 ], B_Q28[ 2 ], in[ 2 * k + 1 ] ); + + /* Scale back to Q0 and saturate */ + out[ 2 * k + 0 ] = (opus_int16)silk_SAT16( silk_RSHIFT( out32_Q14[ 0 ] + (1<<14) - 1, 14 ) ); + out[ 2 * k + 1 ] = (opus_int16)silk_SAT16( silk_RSHIFT( out32_Q14[ 1 ] + (1<<14) - 1, 14 ) ); + } +} diff --git a/components/opus/libopus/silk/bwexpander.c b/components/opus/libopus/silk/bwexpander.c new file mode 100644 index 0000000..afa9790 --- /dev/null +++ b/components/opus/libopus/silk/bwexpander.c @@ -0,0 +1,51 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "SigProc_FIX.h" + +/* Chirp (bandwidth expand) LP AR filter */ +void silk_bwexpander( + opus_int16 *ar, /* I/O AR filter to be expanded (without leading 1) */ + const opus_int d, /* I Length of ar */ + opus_int32 chirp_Q16 /* I Chirp factor (typically in the range 0 to 1) */ +) +{ + opus_int i; + opus_int32 chirp_minus_one_Q16 = chirp_Q16 - 65536; + + /* NB: Dont use silk_SMULWB, instead of silk_RSHIFT_ROUND( silk_MUL(), 16 ), below. */ + /* Bias in silk_SMULWB can lead to unstable filters */ + for( i = 0; i < d - 1; i++ ) { + ar[ i ] = (opus_int16)silk_RSHIFT_ROUND( silk_MUL( chirp_Q16, ar[ i ] ), 16 ); + chirp_Q16 += silk_RSHIFT_ROUND( silk_MUL( chirp_Q16, chirp_minus_one_Q16 ), 16 ); + } + ar[ d - 1 ] = (opus_int16)silk_RSHIFT_ROUND( silk_MUL( chirp_Q16, ar[ d - 1 ] ), 16 ); +} diff --git a/components/opus/libopus/silk/bwexpander_32.c b/components/opus/libopus/silk/bwexpander_32.c new file mode 100644 index 0000000..d0010f7 --- /dev/null +++ b/components/opus/libopus/silk/bwexpander_32.c @@ -0,0 +1,50 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "SigProc_FIX.h" + +/* Chirp (bandwidth expand) LP AR filter */ +void silk_bwexpander_32( + opus_int32 *ar, /* I/O AR filter to be expanded (without leading 1) */ + const opus_int d, /* I Length of ar */ + opus_int32 chirp_Q16 /* I Chirp factor in Q16 */ +) +{ + opus_int i; + opus_int32 chirp_minus_one_Q16 = chirp_Q16 - 65536; + + for( i = 0; i < d - 1; i++ ) { + ar[ i ] = silk_SMULWW( chirp_Q16, ar[ i ] ); + chirp_Q16 += silk_RSHIFT_ROUND( silk_MUL( chirp_Q16, chirp_minus_one_Q16 ), 16 ); + } + ar[ d - 1 ] = silk_SMULWW( chirp_Q16, ar[ d - 1 ] ); +} + diff --git a/components/opus/libopus/silk/check_control_input.c b/components/opus/libopus/silk/check_control_input.c new file mode 100644 index 0000000..739fb01 --- /dev/null +++ b/components/opus/libopus/silk/check_control_input.c @@ -0,0 +1,106 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main.h" +#include "control.h" +#include "errors.h" + +/* Check encoder control struct */ +opus_int check_control_input( + silk_EncControlStruct *encControl /* I Control structure */ +) +{ + celt_assert( encControl != NULL ); + + if( ( ( encControl->API_sampleRate != 8000 ) && + ( encControl->API_sampleRate != 12000 ) && + ( encControl->API_sampleRate != 16000 ) && + ( encControl->API_sampleRate != 24000 ) && + ( encControl->API_sampleRate != 32000 ) && + ( encControl->API_sampleRate != 44100 ) && + ( encControl->API_sampleRate != 48000 ) ) || + ( ( encControl->desiredInternalSampleRate != 8000 ) && + ( encControl->desiredInternalSampleRate != 12000 ) && + ( encControl->desiredInternalSampleRate != 16000 ) ) || + ( ( encControl->maxInternalSampleRate != 8000 ) && + ( encControl->maxInternalSampleRate != 12000 ) && + ( encControl->maxInternalSampleRate != 16000 ) ) || + ( ( encControl->minInternalSampleRate != 8000 ) && + ( encControl->minInternalSampleRate != 12000 ) && + ( encControl->minInternalSampleRate != 16000 ) ) || + ( encControl->minInternalSampleRate > encControl->desiredInternalSampleRate ) || + ( encControl->maxInternalSampleRate < encControl->desiredInternalSampleRate ) || + ( encControl->minInternalSampleRate > encControl->maxInternalSampleRate ) ) { + celt_assert( 0 ); + return SILK_ENC_FS_NOT_SUPPORTED; + } + if( encControl->payloadSize_ms != 10 && + encControl->payloadSize_ms != 20 && + encControl->payloadSize_ms != 40 && + encControl->payloadSize_ms != 60 ) { + celt_assert( 0 ); + return SILK_ENC_PACKET_SIZE_NOT_SUPPORTED; + } + if( encControl->packetLossPercentage < 0 || encControl->packetLossPercentage > 100 ) { + celt_assert( 0 ); + return SILK_ENC_INVALID_LOSS_RATE; + } + if( encControl->useDTX < 0 || encControl->useDTX > 1 ) { + celt_assert( 0 ); + return SILK_ENC_INVALID_DTX_SETTING; + } + if( encControl->useCBR < 0 || encControl->useCBR > 1 ) { + celt_assert( 0 ); + return SILK_ENC_INVALID_CBR_SETTING; + } + if( encControl->useInBandFEC < 0 || encControl->useInBandFEC > 1 ) { + celt_assert( 0 ); + return SILK_ENC_INVALID_INBAND_FEC_SETTING; + } + if( encControl->nChannelsAPI < 1 || encControl->nChannelsAPI > ENCODER_NUM_CHANNELS ) { + celt_assert( 0 ); + return SILK_ENC_INVALID_NUMBER_OF_CHANNELS_ERROR; + } + if( encControl->nChannelsInternal < 1 || encControl->nChannelsInternal > ENCODER_NUM_CHANNELS ) { + celt_assert( 0 ); + return SILK_ENC_INVALID_NUMBER_OF_CHANNELS_ERROR; + } + if( encControl->nChannelsInternal > encControl->nChannelsAPI ) { + celt_assert( 0 ); + return SILK_ENC_INVALID_NUMBER_OF_CHANNELS_ERROR; + } + if( encControl->complexity < 0 || encControl->complexity > 10 ) { + celt_assert( 0 ); + return SILK_ENC_INVALID_COMPLEXITY_SETTING; + } + + return SILK_NO_ERROR; +} diff --git a/components/opus/libopus/silk/code_signs.c b/components/opus/libopus/silk/code_signs.c new file mode 100644 index 0000000..dfd1dca --- /dev/null +++ b/components/opus/libopus/silk/code_signs.c @@ -0,0 +1,115 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main.h" + +/*#define silk_enc_map(a) ((a) > 0 ? 1 : 0)*/ +/*#define silk_dec_map(a) ((a) > 0 ? 1 : -1)*/ +/* shifting avoids if-statement */ +#define silk_enc_map(a) ( silk_RSHIFT( (a), 15 ) + 1 ) +#define silk_dec_map(a) ( silk_LSHIFT( (a), 1 ) - 1 ) + +/* Encodes signs of excitation */ +void silk_encode_signs( + ec_enc *psRangeEnc, /* I/O Compressor data structure */ + const opus_int8 pulses[], /* I pulse signal */ + opus_int length, /* I length of input */ + const opus_int signalType, /* I Signal type */ + const opus_int quantOffsetType, /* I Quantization offset type */ + const opus_int sum_pulses[ MAX_NB_SHELL_BLOCKS ] /* I Sum of absolute pulses per block */ +) +{ + opus_int i, j, p; + opus_uint8 icdf[ 2 ]; + const opus_int8 *q_ptr; + const opus_uint8 *icdf_ptr; + + icdf[ 1 ] = 0; + q_ptr = pulses; + i = silk_SMULBB( 7, silk_ADD_LSHIFT( quantOffsetType, signalType, 1 ) ); + icdf_ptr = &silk_sign_iCDF[ i ]; + length = silk_RSHIFT( length + SHELL_CODEC_FRAME_LENGTH/2, LOG2_SHELL_CODEC_FRAME_LENGTH ); + for( i = 0; i < length; i++ ) { + p = sum_pulses[ i ]; + if( p > 0 ) { + icdf[ 0 ] = icdf_ptr[ silk_min( p & 0x1F, 6 ) ]; + for( j = 0; j < SHELL_CODEC_FRAME_LENGTH; j++ ) { + if( q_ptr[ j ] != 0 ) { + ec_enc_icdf( psRangeEnc, silk_enc_map( q_ptr[ j ]), icdf, 8 ); + } + } + } + q_ptr += SHELL_CODEC_FRAME_LENGTH; + } +} + +/* Decodes signs of excitation */ +void silk_decode_signs( + ec_dec *psRangeDec, /* I/O Compressor data structure */ + opus_int16 pulses[], /* I/O pulse signal */ + opus_int length, /* I length of input */ + const opus_int signalType, /* I Signal type */ + const opus_int quantOffsetType, /* I Quantization offset type */ + const opus_int sum_pulses[ MAX_NB_SHELL_BLOCKS ] /* I Sum of absolute pulses per block */ +) +{ + opus_int i, j, p; + opus_uint8 icdf[ 2 ]; + opus_int16 *q_ptr; + const opus_uint8 *icdf_ptr; + + icdf[ 1 ] = 0; + q_ptr = pulses; + i = silk_SMULBB( 7, silk_ADD_LSHIFT( quantOffsetType, signalType, 1 ) ); + icdf_ptr = &silk_sign_iCDF[ i ]; + length = silk_RSHIFT( length + SHELL_CODEC_FRAME_LENGTH/2, LOG2_SHELL_CODEC_FRAME_LENGTH ); + for( i = 0; i < length; i++ ) { + p = sum_pulses[ i ]; + if( p > 0 ) { + icdf[ 0 ] = icdf_ptr[ silk_min( p & 0x1F, 6 ) ]; + for( j = 0; j < SHELL_CODEC_FRAME_LENGTH; j++ ) { + if( q_ptr[ j ] > 0 ) { + /* attach sign */ +#if 0 + /* conditional implementation */ + if( ec_dec_icdf( psRangeDec, icdf, 8 ) == 0 ) { + q_ptr[ j ] = -q_ptr[ j ]; + } +#else + /* implementation with shift, subtraction, multiplication */ + q_ptr[ j ] *= silk_dec_map( ec_dec_icdf( psRangeDec, icdf, 8 ) ); +#endif + } + } + } + q_ptr += SHELL_CODEC_FRAME_LENGTH; + } +} diff --git a/components/opus/libopus/silk/control.h b/components/opus/libopus/silk/control.h new file mode 100644 index 0000000..b76ec33 --- /dev/null +++ b/components/opus/libopus/silk/control.h @@ -0,0 +1,150 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifndef SILK_CONTROL_H +#define SILK_CONTROL_H + +#include "typedef.h" + +#ifdef __cplusplus +extern "C" +{ +#endif + +/* Decoder API flags */ +#define FLAG_DECODE_NORMAL 0 +#define FLAG_PACKET_LOST 1 +#define FLAG_DECODE_LBRR 2 + +/***********************************************/ +/* Structure for controlling encoder operation */ +/***********************************************/ +typedef struct { + /* I: Number of channels; 1/2 */ + opus_int32 nChannelsAPI; + + /* I: Number of channels; 1/2 */ + opus_int32 nChannelsInternal; + + /* I: Input signal sampling rate in Hertz; 8000/12000/16000/24000/32000/44100/48000 */ + opus_int32 API_sampleRate; + + /* I: Maximum internal sampling rate in Hertz; 8000/12000/16000 */ + opus_int32 maxInternalSampleRate; + + /* I: Minimum internal sampling rate in Hertz; 8000/12000/16000 */ + opus_int32 minInternalSampleRate; + + /* I: Soft request for internal sampling rate in Hertz; 8000/12000/16000 */ + opus_int32 desiredInternalSampleRate; + + /* I: Number of samples per packet in milliseconds; 10/20/40/60 */ + opus_int payloadSize_ms; + + /* I: Bitrate during active speech in bits/second; internally limited */ + opus_int32 bitRate; + + /* I: Uplink packet loss in percent (0-100) */ + opus_int packetLossPercentage; + + /* I: Complexity mode; 0 is lowest, 10 is highest complexity */ + opus_int complexity; + + /* I: Flag to enable in-band Forward Error Correction (FEC); 0/1 */ + opus_int useInBandFEC; + + /* I: Flag to actually code in-band Forward Error Correction (FEC) in the current packet; 0/1 */ + opus_int LBRR_coded; + + /* I: Flag to enable discontinuous transmission (DTX); 0/1 */ + opus_int useDTX; + + /* I: Flag to use constant bitrate */ + opus_int useCBR; + + /* I: Maximum number of bits allowed for the frame */ + opus_int maxBits; + + /* I: Causes a smooth downmix to mono */ + opus_int toMono; + + /* I: Opus encoder is allowing us to switch bandwidth */ + opus_int opusCanSwitch; + + /* I: Make frames as independent as possible (but still use LPC) */ + opus_int reducedDependency; + + /* O: Internal sampling rate used, in Hertz; 8000/12000/16000 */ + opus_int32 internalSampleRate; + + /* O: Flag that bandwidth switching is allowed (because low voice activity) */ + opus_int allowBandwidthSwitch; + + /* O: Flag that SILK runs in WB mode without variable LP filter (use for switching between WB/SWB/FB) */ + opus_int inWBmodeWithoutVariableLP; + + /* O: Stereo width */ + opus_int stereoWidth_Q14; + + /* O: Tells the Opus encoder we're ready to switch */ + opus_int switchReady; + + /* O: SILK Signal type */ + opus_int signalType; + + /* O: SILK offset (dithering) */ + opus_int offset; +} silk_EncControlStruct; + +/**************************************************************************/ +/* Structure for controlling decoder operation and reading decoder status */ +/**************************************************************************/ +typedef struct { + /* I: Number of channels; 1/2 */ + opus_int32 nChannelsAPI; + + /* I: Number of channels; 1/2 */ + opus_int32 nChannelsInternal; + + /* I: Output signal sampling rate in Hertz; 8000/12000/16000/24000/32000/44100/48000 */ + opus_int32 API_sampleRate; + + /* I: Internal sampling rate used, in Hertz; 8000/12000/16000 */ + opus_int32 internalSampleRate; + + /* I: Number of samples per packet in milliseconds; 10/20/40/60 */ + opus_int payloadSize_ms; + + /* O: Pitch lag of previous frame (0 if unvoiced), measured in samples at 48 kHz */ + opus_int prevPitchLag; +} silk_DecControlStruct; + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/components/opus/libopus/silk/control_SNR.c b/components/opus/libopus/silk/control_SNR.c new file mode 100644 index 0000000..9a6db27 --- /dev/null +++ b/components/opus/libopus/silk/control_SNR.c @@ -0,0 +1,113 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main.h" +#include "tuning_parameters.h" + +/* These tables hold SNR values divided by 21 (so they fit in 8 bits) + for different target bitrates spaced at 400 bps interval. The first + 10 values are omitted (0-4 kb/s) because they're all zeros. + These tables were obtained by running different SNRs through the + encoder and measuring the active bitrate. */ +static const unsigned char silk_TargetRate_NB_21[117 - 10] = { + 0, 15, 39, 52, 61, 68, + 74, 79, 84, 88, 92, 95, 99,102,105,108,111,114,117,119,122,124, + 126,129,131,133,135,137,139,142,143,145,147,149,151,153,155,157, + 158,160,162,163,165,167,168,170,171,173,174,176,177,179,180,182, + 183,185,186,187,189,190,192,193,194,196,197,199,200,201,203,204, + 205,207,208,209,211,212,213,215,216,217,219,220,221,223,224,225, + 227,228,230,231,232,234,235,236,238,239,241,242,243,245,246,248, + 249,250,252,253,255 +}; + +static const unsigned char silk_TargetRate_MB_21[165 - 10] = { + 0, 0, 28, 43, 52, 59, + 65, 70, 74, 78, 81, 85, 87, 90, 93, 95, 98,100,102,105,107,109, + 111,113,115,116,118,120,122,123,125,127,128,130,131,133,134,136, + 137,138,140,141,143,144,145,147,148,149,151,152,153,154,156,157, + 158,159,160,162,163,164,165,166,167,168,169,171,172,173,174,175, + 176,177,178,179,180,181,182,183,184,185,186,187,188,188,189,190, + 191,192,193,194,195,196,197,198,199,200,201,202,203,203,204,205, + 206,207,208,209,210,211,212,213,214,214,215,216,217,218,219,220, + 221,222,223,224,224,225,226,227,228,229,230,231,232,233,234,235, + 236,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250, + 251,252,253,254,255 +}; + +static const unsigned char silk_TargetRate_WB_21[201 - 10] = { + 0, 0, 0, 8, 29, 41, + 49, 56, 62, 66, 70, 74, 77, 80, 83, 86, 88, 91, 93, 95, 97, 99, + 101,103,105,107,108,110,112,113,115,116,118,119,121,122,123,125, + 126,127,129,130,131,132,134,135,136,137,138,140,141,142,143,144, + 145,146,147,148,149,150,151,152,153,154,156,157,158,159,159,160, + 161,162,163,164,165,166,167,168,169,170,171,171,172,173,174,175, + 176,177,177,178,179,180,181,181,182,183,184,185,185,186,187,188, + 189,189,190,191,192,192,193,194,195,195,196,197,198,198,199,200, + 200,201,202,203,203,204,205,206,206,207,208,209,209,210,211,211, + 212,213,214,214,215,216,216,217,218,219,219,220,221,221,222,223, + 224,224,225,226,226,227,228,229,229,230,231,232,232,233,234,234, + 235,236,237,237,238,239,240,240,241,242,243,243,244,245,246,246, + 247,248,249,249,250,251,252,253,255 +}; + +/* Control SNR of redidual quantizer */ +opus_int silk_control_SNR( + silk_encoder_state *psEncC, /* I/O Pointer to Silk encoder state */ + opus_int32 TargetRate_bps /* I Target max bitrate (bps) */ +) +{ + int id; + int bound; + const unsigned char *snr_table; + + psEncC->TargetRate_bps = TargetRate_bps; + if( psEncC->nb_subfr == 2 ) { + TargetRate_bps -= 2000 + psEncC->fs_kHz/16; + } + if( psEncC->fs_kHz == 8 ) { + bound = sizeof(silk_TargetRate_NB_21); + snr_table = silk_TargetRate_NB_21; + } else if( psEncC->fs_kHz == 12 ) { + bound = sizeof(silk_TargetRate_MB_21); + snr_table = silk_TargetRate_MB_21; + } else { + bound = sizeof(silk_TargetRate_WB_21); + snr_table = silk_TargetRate_WB_21; + } + id = (TargetRate_bps+200)/400; + id = silk_min(id - 10, bound-1); + if( id <= 0 ) { + psEncC->SNR_dB_Q7 = 0; + } else { + psEncC->SNR_dB_Q7 = snr_table[id]*21; + } + return SILK_NO_ERROR; +} diff --git a/components/opus/libopus/silk/control_audio_bandwidth.c b/components/opus/libopus/silk/control_audio_bandwidth.c new file mode 100644 index 0000000..f6d22d8 --- /dev/null +++ b/components/opus/libopus/silk/control_audio_bandwidth.c @@ -0,0 +1,132 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main.h" +#include "tuning_parameters.h" + +/* Control internal sampling rate */ +opus_int silk_control_audio_bandwidth( + silk_encoder_state *psEncC, /* I/O Pointer to Silk encoder state */ + silk_EncControlStruct *encControl /* I Control structure */ +) +{ + opus_int fs_kHz; + opus_int orig_kHz; + opus_int32 fs_Hz; + + orig_kHz = psEncC->fs_kHz; + /* Handle a bandwidth-switching reset where we need to be aware what the last sampling rate was. */ + if( orig_kHz == 0 ) { + orig_kHz = psEncC->sLP.saved_fs_kHz; + } + fs_kHz = orig_kHz; + fs_Hz = silk_SMULBB( fs_kHz, 1000 ); + if( fs_Hz == 0 ) { + /* Encoder has just been initialized */ + fs_Hz = silk_min( psEncC->desiredInternal_fs_Hz, psEncC->API_fs_Hz ); + fs_kHz = silk_DIV32_16( fs_Hz, 1000 ); + } else if( fs_Hz > psEncC->API_fs_Hz || fs_Hz > psEncC->maxInternal_fs_Hz || fs_Hz < psEncC->minInternal_fs_Hz ) { + /* Make sure internal rate is not higher than external rate or maximum allowed, or lower than minimum allowed */ + fs_Hz = psEncC->API_fs_Hz; + fs_Hz = silk_min( fs_Hz, psEncC->maxInternal_fs_Hz ); + fs_Hz = silk_max( fs_Hz, psEncC->minInternal_fs_Hz ); + fs_kHz = silk_DIV32_16( fs_Hz, 1000 ); + } else { + /* State machine for the internal sampling rate switching */ + if( psEncC->sLP.transition_frame_no >= TRANSITION_FRAMES ) { + /* Stop transition phase */ + psEncC->sLP.mode = 0; + } + if( psEncC->allow_bandwidth_switch || encControl->opusCanSwitch ) { + /* Check if we should switch down */ + if( silk_SMULBB( orig_kHz, 1000 ) > psEncC->desiredInternal_fs_Hz ) + { + /* Switch down */ + if( psEncC->sLP.mode == 0 ) { + /* New transition */ + psEncC->sLP.transition_frame_no = TRANSITION_FRAMES; + + /* Reset transition filter state */ + silk_memset( psEncC->sLP.In_LP_State, 0, sizeof( psEncC->sLP.In_LP_State ) ); + } + if( encControl->opusCanSwitch ) { + /* Stop transition phase */ + psEncC->sLP.mode = 0; + + /* Switch to a lower sample frequency */ + fs_kHz = orig_kHz == 16 ? 12 : 8; + } else { + if( psEncC->sLP.transition_frame_no <= 0 ) { + encControl->switchReady = 1; + /* Make room for redundancy */ + encControl->maxBits -= encControl->maxBits * 5 / ( encControl->payloadSize_ms + 5 ); + } else { + /* Direction: down (at double speed) */ + psEncC->sLP.mode = -2; + } + } + } + else + /* Check if we should switch up */ + if( silk_SMULBB( orig_kHz, 1000 ) < psEncC->desiredInternal_fs_Hz ) + { + /* Switch up */ + if( encControl->opusCanSwitch ) { + /* Switch to a higher sample frequency */ + fs_kHz = orig_kHz == 8 ? 12 : 16; + + /* New transition */ + psEncC->sLP.transition_frame_no = 0; + + /* Reset transition filter state */ + silk_memset( psEncC->sLP.In_LP_State, 0, sizeof( psEncC->sLP.In_LP_State ) ); + + /* Direction: up */ + psEncC->sLP.mode = 1; + } else { + if( psEncC->sLP.mode == 0 ) { + encControl->switchReady = 1; + /* Make room for redundancy */ + encControl->maxBits -= encControl->maxBits * 5 / ( encControl->payloadSize_ms + 5 ); + } else { + /* Direction: up */ + psEncC->sLP.mode = 1; + } + } + } else { + if (psEncC->sLP.mode<0) + psEncC->sLP.mode = 1; + } + } + } + + return fs_kHz; +} diff --git a/components/opus/libopus/silk/control_codec.c b/components/opus/libopus/silk/control_codec.c new file mode 100644 index 0000000..52aa8fd --- /dev/null +++ b/components/opus/libopus/silk/control_codec.c @@ -0,0 +1,423 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif +#ifdef FIXED_POINT +#include "main_FIX.h" +#define silk_encoder_state_Fxx silk_encoder_state_FIX +#else +#include "main_FLP.h" +#define silk_encoder_state_Fxx silk_encoder_state_FLP +#endif +#include "stack_alloc.h" +#include "tuning_parameters.h" +#include "pitch_est_defines.h" + +static opus_int silk_setup_resamplers( + silk_encoder_state_Fxx *psEnc, /* I/O */ + opus_int fs_kHz /* I */ +); + +static opus_int silk_setup_fs( + silk_encoder_state_Fxx *psEnc, /* I/O */ + opus_int fs_kHz, /* I */ + opus_int PacketSize_ms /* I */ +); + +static opus_int silk_setup_complexity( + silk_encoder_state *psEncC, /* I/O */ + opus_int Complexity /* I */ +); + +static OPUS_INLINE opus_int silk_setup_LBRR( + silk_encoder_state *psEncC, /* I/O */ + const silk_EncControlStruct *encControl /* I */ +); + + +/* Control encoder */ +opus_int silk_control_encoder( + silk_encoder_state_Fxx *psEnc, /* I/O Pointer to Silk encoder state */ + silk_EncControlStruct *encControl, /* I Control structure */ + const opus_int allow_bw_switch, /* I Flag to allow switching audio bandwidth */ + const opus_int channelNb, /* I Channel number */ + const opus_int force_fs_kHz +) +{ + opus_int fs_kHz, ret = 0; + + psEnc->sCmn.useDTX = encControl->useDTX; + psEnc->sCmn.useCBR = encControl->useCBR; + psEnc->sCmn.API_fs_Hz = encControl->API_sampleRate; + psEnc->sCmn.maxInternal_fs_Hz = encControl->maxInternalSampleRate; + psEnc->sCmn.minInternal_fs_Hz = encControl->minInternalSampleRate; + psEnc->sCmn.desiredInternal_fs_Hz = encControl->desiredInternalSampleRate; + psEnc->sCmn.useInBandFEC = encControl->useInBandFEC; + psEnc->sCmn.nChannelsAPI = encControl->nChannelsAPI; + psEnc->sCmn.nChannelsInternal = encControl->nChannelsInternal; + psEnc->sCmn.allow_bandwidth_switch = allow_bw_switch; + psEnc->sCmn.channelNb = channelNb; + + if( psEnc->sCmn.controlled_since_last_payload != 0 && psEnc->sCmn.prefillFlag == 0 ) { + if( psEnc->sCmn.API_fs_Hz != psEnc->sCmn.prev_API_fs_Hz && psEnc->sCmn.fs_kHz > 0 ) { + /* Change in API sampling rate in the middle of encoding a packet */ + ret += silk_setup_resamplers( psEnc, psEnc->sCmn.fs_kHz ); + } + return ret; + } + + /* Beyond this point we know that there are no previously coded frames in the payload buffer */ + + /********************************************/ + /* Determine internal sampling rate */ + /********************************************/ + fs_kHz = silk_control_audio_bandwidth( &psEnc->sCmn, encControl ); + if( force_fs_kHz ) { + fs_kHz = force_fs_kHz; + } + /********************************************/ + /* Prepare resampler and buffered data */ + /********************************************/ + ret += silk_setup_resamplers( psEnc, fs_kHz ); + + /********************************************/ + /* Set internal sampling frequency */ + /********************************************/ + ret += silk_setup_fs( psEnc, fs_kHz, encControl->payloadSize_ms ); + + /********************************************/ + /* Set encoding complexity */ + /********************************************/ + ret += silk_setup_complexity( &psEnc->sCmn, encControl->complexity ); + + /********************************************/ + /* Set packet loss rate measured by farend */ + /********************************************/ + psEnc->sCmn.PacketLoss_perc = encControl->packetLossPercentage; + + /********************************************/ + /* Set LBRR usage */ + /********************************************/ + ret += silk_setup_LBRR( &psEnc->sCmn, encControl ); + + psEnc->sCmn.controlled_since_last_payload = 1; + + return ret; +} + +static opus_int silk_setup_resamplers( + silk_encoder_state_Fxx *psEnc, /* I/O */ + opus_int fs_kHz /* I */ +) +{ + opus_int ret = SILK_NO_ERROR; + SAVE_STACK; + + if( psEnc->sCmn.fs_kHz != fs_kHz || psEnc->sCmn.prev_API_fs_Hz != psEnc->sCmn.API_fs_Hz ) + { + if( psEnc->sCmn.fs_kHz == 0 ) { + /* Initialize the resampler for enc_API.c preparing resampling from API_fs_Hz to fs_kHz */ + ret += silk_resampler_init( &psEnc->sCmn.resampler_state, psEnc->sCmn.API_fs_Hz, fs_kHz * 1000, 1 ); + } else { + VARDECL( opus_int16, x_buf_API_fs_Hz ); + VARDECL( silk_resampler_state_struct, temp_resampler_state ); +#ifdef FIXED_POINT + opus_int16 *x_bufFIX = psEnc->x_buf; +#else + VARDECL( opus_int16, x_bufFIX ); + opus_int32 new_buf_samples; +#endif + opus_int32 api_buf_samples; + opus_int32 old_buf_samples; + opus_int32 buf_length_ms; + + buf_length_ms = silk_LSHIFT( psEnc->sCmn.nb_subfr * 5, 1 ) + LA_SHAPE_MS; + old_buf_samples = buf_length_ms * psEnc->sCmn.fs_kHz; + +#ifndef FIXED_POINT + new_buf_samples = buf_length_ms * fs_kHz; + ALLOC( x_bufFIX, silk_max( old_buf_samples, new_buf_samples ), + opus_int16 ); + silk_float2short_array( x_bufFIX, psEnc->x_buf, old_buf_samples ); +#endif + + /* Initialize resampler for temporary resampling of x_buf data to API_fs_Hz */ + ALLOC( temp_resampler_state, 1, silk_resampler_state_struct ); + ret += silk_resampler_init( temp_resampler_state, silk_SMULBB( psEnc->sCmn.fs_kHz, 1000 ), psEnc->sCmn.API_fs_Hz, 0 ); + + /* Calculate number of samples to temporarily upsample */ + api_buf_samples = buf_length_ms * silk_DIV32_16( psEnc->sCmn.API_fs_Hz, 1000 ); + + /* Temporary resampling of x_buf data to API_fs_Hz */ + ALLOC( x_buf_API_fs_Hz, api_buf_samples, opus_int16 ); + ret += silk_resampler( temp_resampler_state, x_buf_API_fs_Hz, x_bufFIX, old_buf_samples ); + + /* Initialize the resampler for enc_API.c preparing resampling from API_fs_Hz to fs_kHz */ + ret += silk_resampler_init( &psEnc->sCmn.resampler_state, psEnc->sCmn.API_fs_Hz, silk_SMULBB( fs_kHz, 1000 ), 1 ); + + /* Correct resampler state by resampling buffered data from API_fs_Hz to fs_kHz */ + ret += silk_resampler( &psEnc->sCmn.resampler_state, x_bufFIX, x_buf_API_fs_Hz, api_buf_samples ); + +#ifndef FIXED_POINT + silk_short2float_array( psEnc->x_buf, x_bufFIX, new_buf_samples); +#endif + } + } + + psEnc->sCmn.prev_API_fs_Hz = psEnc->sCmn.API_fs_Hz; + + RESTORE_STACK; + return ret; +} + +static opus_int silk_setup_fs( + silk_encoder_state_Fxx *psEnc, /* I/O */ + opus_int fs_kHz, /* I */ + opus_int PacketSize_ms /* I */ +) +{ + opus_int ret = SILK_NO_ERROR; + + /* Set packet size */ + if( PacketSize_ms != psEnc->sCmn.PacketSize_ms ) { + if( ( PacketSize_ms != 10 ) && + ( PacketSize_ms != 20 ) && + ( PacketSize_ms != 40 ) && + ( PacketSize_ms != 60 ) ) { + ret = SILK_ENC_PACKET_SIZE_NOT_SUPPORTED; + } + if( PacketSize_ms <= 10 ) { + psEnc->sCmn.nFramesPerPacket = 1; + psEnc->sCmn.nb_subfr = PacketSize_ms == 10 ? 2 : 1; + psEnc->sCmn.frame_length = silk_SMULBB( PacketSize_ms, fs_kHz ); + psEnc->sCmn.pitch_LPC_win_length = silk_SMULBB( FIND_PITCH_LPC_WIN_MS_2_SF, fs_kHz ); + if( psEnc->sCmn.fs_kHz == 8 ) { + psEnc->sCmn.pitch_contour_iCDF = silk_pitch_contour_10_ms_NB_iCDF; + } else { + psEnc->sCmn.pitch_contour_iCDF = silk_pitch_contour_10_ms_iCDF; + } + } else { + psEnc->sCmn.nFramesPerPacket = silk_DIV32_16( PacketSize_ms, MAX_FRAME_LENGTH_MS ); + psEnc->sCmn.nb_subfr = MAX_NB_SUBFR; + psEnc->sCmn.frame_length = silk_SMULBB( 20, fs_kHz ); + psEnc->sCmn.pitch_LPC_win_length = silk_SMULBB( FIND_PITCH_LPC_WIN_MS, fs_kHz ); + if( psEnc->sCmn.fs_kHz == 8 ) { + psEnc->sCmn.pitch_contour_iCDF = silk_pitch_contour_NB_iCDF; + } else { + psEnc->sCmn.pitch_contour_iCDF = silk_pitch_contour_iCDF; + } + } + psEnc->sCmn.PacketSize_ms = PacketSize_ms; + psEnc->sCmn.TargetRate_bps = 0; /* trigger new SNR computation */ + } + + /* Set internal sampling frequency */ + celt_assert( fs_kHz == 8 || fs_kHz == 12 || fs_kHz == 16 ); + celt_assert( psEnc->sCmn.nb_subfr == 2 || psEnc->sCmn.nb_subfr == 4 ); + if( psEnc->sCmn.fs_kHz != fs_kHz ) { + /* reset part of the state */ + silk_memset( &psEnc->sShape, 0, sizeof( psEnc->sShape ) ); + silk_memset( &psEnc->sCmn.sNSQ, 0, sizeof( psEnc->sCmn.sNSQ ) ); + silk_memset( psEnc->sCmn.prev_NLSFq_Q15, 0, sizeof( psEnc->sCmn.prev_NLSFq_Q15 ) ); + silk_memset( &psEnc->sCmn.sLP.In_LP_State, 0, sizeof( psEnc->sCmn.sLP.In_LP_State ) ); + psEnc->sCmn.inputBufIx = 0; + psEnc->sCmn.nFramesEncoded = 0; + psEnc->sCmn.TargetRate_bps = 0; /* trigger new SNR computation */ + + /* Initialize non-zero parameters */ + psEnc->sCmn.prevLag = 100; + psEnc->sCmn.first_frame_after_reset = 1; + psEnc->sShape.LastGainIndex = 10; + psEnc->sCmn.sNSQ.lagPrev = 100; + psEnc->sCmn.sNSQ.prev_gain_Q16 = 65536; + psEnc->sCmn.prevSignalType = TYPE_NO_VOICE_ACTIVITY; + + psEnc->sCmn.fs_kHz = fs_kHz; + if( psEnc->sCmn.fs_kHz == 8 ) { + if( psEnc->sCmn.nb_subfr == MAX_NB_SUBFR ) { + psEnc->sCmn.pitch_contour_iCDF = silk_pitch_contour_NB_iCDF; + } else { + psEnc->sCmn.pitch_contour_iCDF = silk_pitch_contour_10_ms_NB_iCDF; + } + } else { + if( psEnc->sCmn.nb_subfr == MAX_NB_SUBFR ) { + psEnc->sCmn.pitch_contour_iCDF = silk_pitch_contour_iCDF; + } else { + psEnc->sCmn.pitch_contour_iCDF = silk_pitch_contour_10_ms_iCDF; + } + } + if( psEnc->sCmn.fs_kHz == 8 || psEnc->sCmn.fs_kHz == 12 ) { + psEnc->sCmn.predictLPCOrder = MIN_LPC_ORDER; + psEnc->sCmn.psNLSF_CB = &silk_NLSF_CB_NB_MB; + } else { + psEnc->sCmn.predictLPCOrder = MAX_LPC_ORDER; + psEnc->sCmn.psNLSF_CB = &silk_NLSF_CB_WB; + } + psEnc->sCmn.subfr_length = SUB_FRAME_LENGTH_MS * fs_kHz; + psEnc->sCmn.frame_length = silk_SMULBB( psEnc->sCmn.subfr_length, psEnc->sCmn.nb_subfr ); + psEnc->sCmn.ltp_mem_length = silk_SMULBB( LTP_MEM_LENGTH_MS, fs_kHz ); + psEnc->sCmn.la_pitch = silk_SMULBB( LA_PITCH_MS, fs_kHz ); + psEnc->sCmn.max_pitch_lag = silk_SMULBB( 18, fs_kHz ); + if( psEnc->sCmn.nb_subfr == MAX_NB_SUBFR ) { + psEnc->sCmn.pitch_LPC_win_length = silk_SMULBB( FIND_PITCH_LPC_WIN_MS, fs_kHz ); + } else { + psEnc->sCmn.pitch_LPC_win_length = silk_SMULBB( FIND_PITCH_LPC_WIN_MS_2_SF, fs_kHz ); + } + if( psEnc->sCmn.fs_kHz == 16 ) { + psEnc->sCmn.pitch_lag_low_bits_iCDF = silk_uniform8_iCDF; + } else if( psEnc->sCmn.fs_kHz == 12 ) { + psEnc->sCmn.pitch_lag_low_bits_iCDF = silk_uniform6_iCDF; + } else { + psEnc->sCmn.pitch_lag_low_bits_iCDF = silk_uniform4_iCDF; + } + } + + /* Check that settings are valid */ + celt_assert( ( psEnc->sCmn.subfr_length * psEnc->sCmn.nb_subfr ) == psEnc->sCmn.frame_length ); + + return ret; +} + +static opus_int silk_setup_complexity( + silk_encoder_state *psEncC, /* I/O */ + opus_int Complexity /* I */ +) +{ + opus_int ret = 0; + + /* Set encoding complexity */ + celt_assert( Complexity >= 0 && Complexity <= 10 ); + if( Complexity < 1 ) { + psEncC->pitchEstimationComplexity = SILK_PE_MIN_COMPLEX; + psEncC->pitchEstimationThreshold_Q16 = SILK_FIX_CONST( 0.8, 16 ); + psEncC->pitchEstimationLPCOrder = 6; + psEncC->shapingLPCOrder = 12; + psEncC->la_shape = 3 * psEncC->fs_kHz; + psEncC->nStatesDelayedDecision = 1; + psEncC->useInterpolatedNLSFs = 0; + psEncC->NLSF_MSVQ_Survivors = 2; + psEncC->warping_Q16 = 0; + } else if( Complexity < 2 ) { + psEncC->pitchEstimationComplexity = SILK_PE_MID_COMPLEX; + psEncC->pitchEstimationThreshold_Q16 = SILK_FIX_CONST( 0.76, 16 ); + psEncC->pitchEstimationLPCOrder = 8; + psEncC->shapingLPCOrder = 14; + psEncC->la_shape = 5 * psEncC->fs_kHz; + psEncC->nStatesDelayedDecision = 1; + psEncC->useInterpolatedNLSFs = 0; + psEncC->NLSF_MSVQ_Survivors = 3; + psEncC->warping_Q16 = 0; + } else if( Complexity < 3 ) { + psEncC->pitchEstimationComplexity = SILK_PE_MIN_COMPLEX; + psEncC->pitchEstimationThreshold_Q16 = SILK_FIX_CONST( 0.8, 16 ); + psEncC->pitchEstimationLPCOrder = 6; + psEncC->shapingLPCOrder = 12; + psEncC->la_shape = 3 * psEncC->fs_kHz; + psEncC->nStatesDelayedDecision = 2; + psEncC->useInterpolatedNLSFs = 0; + psEncC->NLSF_MSVQ_Survivors = 2; + psEncC->warping_Q16 = 0; + } else if( Complexity < 4 ) { + psEncC->pitchEstimationComplexity = SILK_PE_MID_COMPLEX; + psEncC->pitchEstimationThreshold_Q16 = SILK_FIX_CONST( 0.76, 16 ); + psEncC->pitchEstimationLPCOrder = 8; + psEncC->shapingLPCOrder = 14; + psEncC->la_shape = 5 * psEncC->fs_kHz; + psEncC->nStatesDelayedDecision = 2; + psEncC->useInterpolatedNLSFs = 0; + psEncC->NLSF_MSVQ_Survivors = 4; + psEncC->warping_Q16 = 0; + } else if( Complexity < 6 ) { + psEncC->pitchEstimationComplexity = SILK_PE_MID_COMPLEX; + psEncC->pitchEstimationThreshold_Q16 = SILK_FIX_CONST( 0.74, 16 ); + psEncC->pitchEstimationLPCOrder = 10; + psEncC->shapingLPCOrder = 16; + psEncC->la_shape = 5 * psEncC->fs_kHz; + psEncC->nStatesDelayedDecision = 2; + psEncC->useInterpolatedNLSFs = 1; + psEncC->NLSF_MSVQ_Survivors = 6; + psEncC->warping_Q16 = psEncC->fs_kHz * SILK_FIX_CONST( WARPING_MULTIPLIER, 16 ); + } else if( Complexity < 8 ) { + psEncC->pitchEstimationComplexity = SILK_PE_MID_COMPLEX; + psEncC->pitchEstimationThreshold_Q16 = SILK_FIX_CONST( 0.72, 16 ); + psEncC->pitchEstimationLPCOrder = 12; + psEncC->shapingLPCOrder = 20; + psEncC->la_shape = 5 * psEncC->fs_kHz; + psEncC->nStatesDelayedDecision = 3; + psEncC->useInterpolatedNLSFs = 1; + psEncC->NLSF_MSVQ_Survivors = 8; + psEncC->warping_Q16 = psEncC->fs_kHz * SILK_FIX_CONST( WARPING_MULTIPLIER, 16 ); + } else { + psEncC->pitchEstimationComplexity = SILK_PE_MAX_COMPLEX; + psEncC->pitchEstimationThreshold_Q16 = SILK_FIX_CONST( 0.7, 16 ); + psEncC->pitchEstimationLPCOrder = 16; + psEncC->shapingLPCOrder = 24; + psEncC->la_shape = 5 * psEncC->fs_kHz; + psEncC->nStatesDelayedDecision = MAX_DEL_DEC_STATES; + psEncC->useInterpolatedNLSFs = 1; + psEncC->NLSF_MSVQ_Survivors = 16; + psEncC->warping_Q16 = psEncC->fs_kHz * SILK_FIX_CONST( WARPING_MULTIPLIER, 16 ); + } + + /* Do not allow higher pitch estimation LPC order than predict LPC order */ + psEncC->pitchEstimationLPCOrder = silk_min_int( psEncC->pitchEstimationLPCOrder, psEncC->predictLPCOrder ); + psEncC->shapeWinLength = SUB_FRAME_LENGTH_MS * psEncC->fs_kHz + 2 * psEncC->la_shape; + psEncC->Complexity = Complexity; + + celt_assert( psEncC->pitchEstimationLPCOrder <= MAX_FIND_PITCH_LPC_ORDER ); + celt_assert( psEncC->shapingLPCOrder <= MAX_SHAPE_LPC_ORDER ); + celt_assert( psEncC->nStatesDelayedDecision <= MAX_DEL_DEC_STATES ); + celt_assert( psEncC->warping_Q16 <= 32767 ); + celt_assert( psEncC->la_shape <= LA_SHAPE_MAX ); + celt_assert( psEncC->shapeWinLength <= SHAPE_LPC_WIN_MAX ); + + return ret; +} + +static OPUS_INLINE opus_int silk_setup_LBRR( + silk_encoder_state *psEncC, /* I/O */ + const silk_EncControlStruct *encControl /* I */ +) +{ + opus_int LBRR_in_previous_packet, ret = SILK_NO_ERROR; + + LBRR_in_previous_packet = psEncC->LBRR_enabled; + psEncC->LBRR_enabled = encControl->LBRR_coded; + if( psEncC->LBRR_enabled ) { + /* Set gain increase for coding LBRR excitation */ + if( LBRR_in_previous_packet == 0 ) { + /* Previous packet did not have LBRR, and was therefore coded at a higher bitrate */ + psEncC->LBRR_GainIncreases = 7; + } else { + psEncC->LBRR_GainIncreases = silk_max_int( 7 - silk_SMULWB( (opus_int32)psEncC->PacketLoss_perc, SILK_FIX_CONST( 0.4, 16 ) ), 2 ); + } + } + + return ret; +} diff --git a/components/opus/libopus/silk/debug.c b/components/opus/libopus/silk/debug.c new file mode 100644 index 0000000..9253faf --- /dev/null +++ b/components/opus/libopus/silk/debug.c @@ -0,0 +1,170 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "debug.h" +#include "SigProc_FIX.h" + +#if SILK_TIC_TOC + +#ifdef _WIN32 + +#if (defined(_WIN32) || defined(_WINCE)) +#include /* timer */ +#else /* Linux or Mac*/ +#include +#endif + +unsigned long silk_GetHighResolutionTime(void) /* O time in usec*/ +{ + /* Returns a time counter in microsec */ + /* the resolution is platform dependent */ + /* but is typically 1.62 us resolution */ + LARGE_INTEGER lpPerformanceCount; + LARGE_INTEGER lpFrequency; + QueryPerformanceCounter(&lpPerformanceCount); + QueryPerformanceFrequency(&lpFrequency); + return (unsigned long)((1000000*(lpPerformanceCount.QuadPart)) / lpFrequency.QuadPart); +} +#else /* Linux or Mac*/ +unsigned long GetHighResolutionTime(void) /* O time in usec*/ +{ + struct timeval tv; + gettimeofday(&tv, 0); + return((tv.tv_sec*1000000)+(tv.tv_usec)); +} +#endif + +int silk_Timer_nTimers = 0; +int silk_Timer_depth_ctr = 0; +char silk_Timer_tags[silk_NUM_TIMERS_MAX][silk_NUM_TIMERS_MAX_TAG_LEN]; +#ifdef WIN32 +LARGE_INTEGER silk_Timer_start[silk_NUM_TIMERS_MAX]; +#else +unsigned long silk_Timer_start[silk_NUM_TIMERS_MAX]; +#endif +unsigned int silk_Timer_cnt[silk_NUM_TIMERS_MAX]; +opus_int64 silk_Timer_min[silk_NUM_TIMERS_MAX]; +opus_int64 silk_Timer_sum[silk_NUM_TIMERS_MAX]; +opus_int64 silk_Timer_max[silk_NUM_TIMERS_MAX]; +opus_int64 silk_Timer_depth[silk_NUM_TIMERS_MAX]; + +#ifdef WIN32 +void silk_TimerSave(char *file_name) +{ + if( silk_Timer_nTimers > 0 ) + { + int k; + FILE *fp; + LARGE_INTEGER lpFrequency; + LARGE_INTEGER lpPerformanceCount1, lpPerformanceCount2; + int del = 0x7FFFFFFF; + double avg, sum_avg; + /* estimate overhead of calling performance counters */ + for( k = 0; k < 1000; k++ ) { + QueryPerformanceCounter(&lpPerformanceCount1); + QueryPerformanceCounter(&lpPerformanceCount2); + lpPerformanceCount2.QuadPart -= lpPerformanceCount1.QuadPart; + if( (int)lpPerformanceCount2.LowPart < del ) + del = lpPerformanceCount2.LowPart; + } + QueryPerformanceFrequency(&lpFrequency); + /* print results to file */ + sum_avg = 0.0f; + for( k = 0; k < silk_Timer_nTimers; k++ ) { + if (silk_Timer_depth[k] == 0) { + sum_avg += (1e6 * silk_Timer_sum[k] / silk_Timer_cnt[k] - del) / lpFrequency.QuadPart * silk_Timer_cnt[k]; + } + } + fp = fopen(file_name, "w"); + fprintf(fp, " min avg %% max count\n"); + for( k = 0; k < silk_Timer_nTimers; k++ ) { + if (silk_Timer_depth[k] == 0) { + fprintf(fp, "%-28s", silk_Timer_tags[k]); + } else if (silk_Timer_depth[k] == 1) { + fprintf(fp, " %-27s", silk_Timer_tags[k]); + } else if (silk_Timer_depth[k] == 2) { + fprintf(fp, " %-26s", silk_Timer_tags[k]); + } else if (silk_Timer_depth[k] == 3) { + fprintf(fp, " %-25s", silk_Timer_tags[k]); + } else { + fprintf(fp, " %-24s", silk_Timer_tags[k]); + } + avg = (1e6 * silk_Timer_sum[k] / silk_Timer_cnt[k] - del) / lpFrequency.QuadPart; + fprintf(fp, "%8.2f", (1e6 * (silk_max_64(silk_Timer_min[k] - del, 0))) / lpFrequency.QuadPart); + fprintf(fp, "%12.2f %6.2f", avg, 100.0 * avg / sum_avg * silk_Timer_cnt[k]); + fprintf(fp, "%12.2f", (1e6 * (silk_max_64(silk_Timer_max[k] - del, 0))) / lpFrequency.QuadPart); + fprintf(fp, "%10d\n", silk_Timer_cnt[k]); + } + fprintf(fp, " microseconds\n"); + fclose(fp); + } +} +#else +void silk_TimerSave(char *file_name) +{ + if( silk_Timer_nTimers > 0 ) + { + int k; + FILE *fp; + /* print results to file */ + fp = fopen(file_name, "w"); + fprintf(fp, " min avg max count\n"); + for( k = 0; k < silk_Timer_nTimers; k++ ) + { + if (silk_Timer_depth[k] == 0) { + fprintf(fp, "%-28s", silk_Timer_tags[k]); + } else if (silk_Timer_depth[k] == 1) { + fprintf(fp, " %-27s", silk_Timer_tags[k]); + } else if (silk_Timer_depth[k] == 2) { + fprintf(fp, " %-26s", silk_Timer_tags[k]); + } else if (silk_Timer_depth[k] == 3) { + fprintf(fp, " %-25s", silk_Timer_tags[k]); + } else { + fprintf(fp, " %-24s", silk_Timer_tags[k]); + } + fprintf(fp, "%d ", silk_Timer_min[k]); + fprintf(fp, "%f ", (double)silk_Timer_sum[k] / (double)silk_Timer_cnt[k]); + fprintf(fp, "%d ", silk_Timer_max[k]); + fprintf(fp, "%10d\n", silk_Timer_cnt[k]); + } + fprintf(fp, " microseconds\n"); + fclose(fp); + } +} +#endif + +#endif /* SILK_TIC_TOC */ + +#if SILK_DEBUG +FILE *silk_debug_store_fp[ silk_NUM_STORES_MAX ]; +int silk_debug_store_count = 0; +#endif /* SILK_DEBUG */ + diff --git a/components/opus/libopus/silk/debug.h b/components/opus/libopus/silk/debug.h new file mode 100644 index 0000000..6f68c1c --- /dev/null +++ b/components/opus/libopus/silk/debug.h @@ -0,0 +1,266 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifndef SILK_DEBUG_H +#define SILK_DEBUG_H + +#include "typedef.h" +#include /* file writing */ +#include /* strcpy, strcmp */ + +#ifdef __cplusplus +extern "C" +{ +#endif + +unsigned long GetHighResolutionTime(void); /* O time in usec*/ + +/* Set to 1 to enable DEBUG_STORE_DATA() macros for dumping + * intermediate signals from the codec. + */ +#define SILK_DEBUG 0 + +/* Flag for using timers */ +#define SILK_TIC_TOC 0 + + +#if SILK_TIC_TOC + +#if (defined(_WIN32) || defined(_WINCE)) +#include /* timer */ +#else /* Linux or Mac*/ +#include +#endif + +/*********************************/ +/* timer functions for profiling */ +/*********************************/ +/* example: */ +/* */ +/* TIC(LPC) */ +/* do_LPC(in_vec, order, acoef); // do LPC analysis */ +/* TOC(LPC) */ +/* */ +/* and call the following just before exiting (from main) */ +/* */ +/* silk_TimerSave("silk_TimingData.txt"); */ +/* */ +/* results are now in silk_TimingData.txt */ + +void silk_TimerSave(char *file_name); + +/* max number of timers (in different locations) */ +#define silk_NUM_TIMERS_MAX 50 +/* max length of name tags in TIC(..), TOC(..) */ +#define silk_NUM_TIMERS_MAX_TAG_LEN 30 + +extern int silk_Timer_nTimers; +extern int silk_Timer_depth_ctr; +extern char silk_Timer_tags[silk_NUM_TIMERS_MAX][silk_NUM_TIMERS_MAX_TAG_LEN]; +#ifdef _WIN32 +extern LARGE_INTEGER silk_Timer_start[silk_NUM_TIMERS_MAX]; +#else +extern unsigned long silk_Timer_start[silk_NUM_TIMERS_MAX]; +#endif +extern unsigned int silk_Timer_cnt[silk_NUM_TIMERS_MAX]; +extern opus_int64 silk_Timer_sum[silk_NUM_TIMERS_MAX]; +extern opus_int64 silk_Timer_max[silk_NUM_TIMERS_MAX]; +extern opus_int64 silk_Timer_min[silk_NUM_TIMERS_MAX]; +extern opus_int64 silk_Timer_depth[silk_NUM_TIMERS_MAX]; + +/* WARNING: TIC()/TOC can measure only up to 0.1 seconds at a time */ +#ifdef _WIN32 +#define TIC(TAG_NAME) { \ + static int init = 0; \ + static int ID = -1; \ + if( init == 0 ) \ + { \ + int k; \ + init = 1; \ + for( k = 0; k < silk_Timer_nTimers; k++ ) { \ + if( strcmp(silk_Timer_tags[k], #TAG_NAME) == 0 ) { \ + ID = k; \ + break; \ + } \ + } \ + if (ID == -1) { \ + ID = silk_Timer_nTimers; \ + silk_Timer_nTimers++; \ + silk_Timer_depth[ID] = silk_Timer_depth_ctr; \ + strcpy(silk_Timer_tags[ID], #TAG_NAME); \ + silk_Timer_cnt[ID] = 0; \ + silk_Timer_sum[ID] = 0; \ + silk_Timer_min[ID] = 0xFFFFFFFF; \ + silk_Timer_max[ID] = 0; \ + } \ + } \ + silk_Timer_depth_ctr++; \ + QueryPerformanceCounter(&silk_Timer_start[ID]); \ +} +#else +#define TIC(TAG_NAME) { \ + static int init = 0; \ + static int ID = -1; \ + if( init == 0 ) \ + { \ + int k; \ + init = 1; \ + for( k = 0; k < silk_Timer_nTimers; k++ ) { \ + if( strcmp(silk_Timer_tags[k], #TAG_NAME) == 0 ) { \ + ID = k; \ + break; \ + } \ + } \ + if (ID == -1) { \ + ID = silk_Timer_nTimers; \ + silk_Timer_nTimers++; \ + silk_Timer_depth[ID] = silk_Timer_depth_ctr; \ + strcpy(silk_Timer_tags[ID], #TAG_NAME); \ + silk_Timer_cnt[ID] = 0; \ + silk_Timer_sum[ID] = 0; \ + silk_Timer_min[ID] = 0xFFFFFFFF; \ + silk_Timer_max[ID] = 0; \ + } \ + } \ + silk_Timer_depth_ctr++; \ + silk_Timer_start[ID] = GetHighResolutionTime(); \ +} +#endif + +#ifdef _WIN32 +#define TOC(TAG_NAME) { \ + LARGE_INTEGER lpPerformanceCount; \ + static int init = 0; \ + static int ID = 0; \ + if( init == 0 ) \ + { \ + int k; \ + init = 1; \ + for( k = 0; k < silk_Timer_nTimers; k++ ) { \ + if( strcmp(silk_Timer_tags[k], #TAG_NAME) == 0 ) { \ + ID = k; \ + break; \ + } \ + } \ + } \ + QueryPerformanceCounter(&lpPerformanceCount); \ + lpPerformanceCount.QuadPart -= silk_Timer_start[ID].QuadPart; \ + if((lpPerformanceCount.QuadPart < 100000000) && \ + (lpPerformanceCount.QuadPart >= 0)) { \ + silk_Timer_cnt[ID]++; \ + silk_Timer_sum[ID] += lpPerformanceCount.QuadPart; \ + if( lpPerformanceCount.QuadPart > silk_Timer_max[ID] ) \ + silk_Timer_max[ID] = lpPerformanceCount.QuadPart; \ + if( lpPerformanceCount.QuadPart < silk_Timer_min[ID] ) \ + silk_Timer_min[ID] = lpPerformanceCount.QuadPart; \ + } \ + silk_Timer_depth_ctr--; \ +} +#else +#define TOC(TAG_NAME) { \ + unsigned long endTime; \ + static int init = 0; \ + static int ID = 0; \ + if( init == 0 ) \ + { \ + int k; \ + init = 1; \ + for( k = 0; k < silk_Timer_nTimers; k++ ) { \ + if( strcmp(silk_Timer_tags[k], #TAG_NAME) == 0 ) { \ + ID = k; \ + break; \ + } \ + } \ + } \ + endTime = GetHighResolutionTime(); \ + endTime -= silk_Timer_start[ID]; \ + if((endTime < 100000000) && \ + (endTime >= 0)) { \ + silk_Timer_cnt[ID]++; \ + silk_Timer_sum[ID] += endTime; \ + if( endTime > silk_Timer_max[ID] ) \ + silk_Timer_max[ID] = endTime; \ + if( endTime < silk_Timer_min[ID] ) \ + silk_Timer_min[ID] = endTime; \ + } \ + silk_Timer_depth_ctr--; \ +} +#endif + +#else /* SILK_TIC_TOC */ + +/* define macros as empty strings */ +#define TIC(TAG_NAME) +#define TOC(TAG_NAME) +#define silk_TimerSave(FILE_NAME) + +#endif /* SILK_TIC_TOC */ + + +#if SILK_DEBUG +/************************************/ +/* write data to file for debugging */ +/************************************/ +/* Example: DEBUG_STORE_DATA(testfile.pcm, &RIN[0], 160*sizeof(opus_int16)); */ + +#define silk_NUM_STORES_MAX 100 +extern FILE *silk_debug_store_fp[ silk_NUM_STORES_MAX ]; +extern int silk_debug_store_count; + +/* Faster way of storing the data */ +#define DEBUG_STORE_DATA( FILE_NAME, DATA_PTR, N_BYTES ) { \ + static opus_int init = 0, cnt = 0; \ + static FILE **fp; \ + if (init == 0) { \ + init = 1; \ + cnt = silk_debug_store_count++; \ + silk_debug_store_fp[ cnt ] = fopen(#FILE_NAME, "wb"); \ + } \ + fwrite((DATA_PTR), (N_BYTES), 1, silk_debug_store_fp[ cnt ]); \ +} + +/* Call this at the end of main() */ +#define SILK_DEBUG_STORE_CLOSE_FILES { \ + opus_int i; \ + for( i = 0; i < silk_debug_store_count; i++ ) { \ + fclose( silk_debug_store_fp[ i ] ); \ + } \ +} + +#else /* SILK_DEBUG */ + +/* define macros as empty strings */ +#define DEBUG_STORE_DATA(FILE_NAME, DATA_PTR, N_BYTES) +#define SILK_DEBUG_STORE_CLOSE_FILES + +#endif /* SILK_DEBUG */ + +#ifdef __cplusplus +} +#endif + +#endif /* SILK_DEBUG_H */ diff --git a/components/opus/libopus/silk/dec_API.c b/components/opus/libopus/silk/dec_API.c new file mode 100644 index 0000000..7d5ca7f --- /dev/null +++ b/components/opus/libopus/silk/dec_API.c @@ -0,0 +1,419 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif +#include "API.h" +#include "main.h" +#include "stack_alloc.h" +#include "os_support.h" + +/************************/ +/* Decoder Super Struct */ +/************************/ +typedef struct { + silk_decoder_state channel_state[ DECODER_NUM_CHANNELS ]; + stereo_dec_state sStereo; + opus_int nChannelsAPI; + opus_int nChannelsInternal; + opus_int prev_decode_only_middle; +} silk_decoder; + +/*********************/ +/* Decoder functions */ +/*********************/ + +opus_int silk_Get_Decoder_Size( /* O Returns error code */ + opus_int *decSizeBytes /* O Number of bytes in SILK decoder state */ +) +{ + opus_int ret = SILK_NO_ERROR; + + *decSizeBytes = sizeof( silk_decoder ); + + return ret; +} + +/* Reset decoder state */ +opus_int silk_InitDecoder( /* O Returns error code */ + void *decState /* I/O State */ +) +{ + opus_int n, ret = SILK_NO_ERROR; + silk_decoder_state *channel_state = ((silk_decoder *)decState)->channel_state; + + for( n = 0; n < DECODER_NUM_CHANNELS; n++ ) { + ret = silk_init_decoder( &channel_state[ n ] ); + } + silk_memset(&((silk_decoder *)decState)->sStereo, 0, sizeof(((silk_decoder *)decState)->sStereo)); + /* Not strictly needed, but it's cleaner that way */ + ((silk_decoder *)decState)->prev_decode_only_middle = 0; + + return ret; +} + +/* Decode a frame */ +opus_int silk_Decode( /* O Returns error code */ + void* decState, /* I/O State */ + silk_DecControlStruct* decControl, /* I/O Control Structure */ + opus_int lostFlag, /* I 0: no loss, 1 loss, 2 decode fec */ + opus_int newPacketFlag, /* I Indicates first decoder call for this packet */ + ec_dec *psRangeDec, /* I/O Compressor data structure */ + opus_int16 *samplesOut, /* O Decoded output speech vector */ + opus_int32 *nSamplesOut, /* O Number of samples decoded */ + int arch /* I Run-time architecture */ +) +{ + opus_int i, n, decode_only_middle = 0, ret = SILK_NO_ERROR; + opus_int32 nSamplesOutDec, LBRR_symbol; + opus_int16 *samplesOut1_tmp[ 2 ]; + VARDECL( opus_int16, samplesOut1_tmp_storage1 ); + VARDECL( opus_int16, samplesOut1_tmp_storage2 ); + VARDECL( opus_int16, samplesOut2_tmp ); + opus_int32 MS_pred_Q13[ 2 ] = { 0 }; + opus_int16 *resample_out_ptr; + silk_decoder *psDec = ( silk_decoder * )decState; + silk_decoder_state *channel_state = psDec->channel_state; + opus_int has_side; + opus_int stereo_to_mono; + int delay_stack_alloc; + SAVE_STACK; + + celt_assert( decControl->nChannelsInternal == 1 || decControl->nChannelsInternal == 2 ); + + /**********************************/ + /* Test if first frame in payload */ + /**********************************/ + if( newPacketFlag ) { + for( n = 0; n < decControl->nChannelsInternal; n++ ) { + channel_state[ n ].nFramesDecoded = 0; /* Used to count frames in packet */ + } + } + + /* If Mono -> Stereo transition in bitstream: init state of second channel */ + if( decControl->nChannelsInternal > psDec->nChannelsInternal ) { + ret += silk_init_decoder( &channel_state[ 1 ] ); + } + + stereo_to_mono = decControl->nChannelsInternal == 1 && psDec->nChannelsInternal == 2 && + ( decControl->internalSampleRate == 1000*channel_state[ 0 ].fs_kHz ); + + if( channel_state[ 0 ].nFramesDecoded == 0 ) { + for( n = 0; n < decControl->nChannelsInternal; n++ ) { + opus_int fs_kHz_dec; + if( decControl->payloadSize_ms == 0 ) { + /* Assuming packet loss, use 10 ms */ + channel_state[ n ].nFramesPerPacket = 1; + channel_state[ n ].nb_subfr = 2; + } else if( decControl->payloadSize_ms == 10 ) { + channel_state[ n ].nFramesPerPacket = 1; + channel_state[ n ].nb_subfr = 2; + } else if( decControl->payloadSize_ms == 20 ) { + channel_state[ n ].nFramesPerPacket = 1; + channel_state[ n ].nb_subfr = 4; + } else if( decControl->payloadSize_ms == 40 ) { + channel_state[ n ].nFramesPerPacket = 2; + channel_state[ n ].nb_subfr = 4; + } else if( decControl->payloadSize_ms == 60 ) { + channel_state[ n ].nFramesPerPacket = 3; + channel_state[ n ].nb_subfr = 4; + } else { + celt_assert( 0 ); + RESTORE_STACK; + return SILK_DEC_INVALID_FRAME_SIZE; + } + fs_kHz_dec = ( decControl->internalSampleRate >> 10 ) + 1; + if( fs_kHz_dec != 8 && fs_kHz_dec != 12 && fs_kHz_dec != 16 ) { + celt_assert( 0 ); + RESTORE_STACK; + return SILK_DEC_INVALID_SAMPLING_FREQUENCY; + } + ret += silk_decoder_set_fs( &channel_state[ n ], fs_kHz_dec, decControl->API_sampleRate ); + } + } + + if( decControl->nChannelsAPI == 2 && decControl->nChannelsInternal == 2 && ( psDec->nChannelsAPI == 1 || psDec->nChannelsInternal == 1 ) ) { + silk_memset( psDec->sStereo.pred_prev_Q13, 0, sizeof( psDec->sStereo.pred_prev_Q13 ) ); + silk_memset( psDec->sStereo.sSide, 0, sizeof( psDec->sStereo.sSide ) ); + silk_memcpy( &channel_state[ 1 ].resampler_state, &channel_state[ 0 ].resampler_state, sizeof( silk_resampler_state_struct ) ); + } + psDec->nChannelsAPI = decControl->nChannelsAPI; + psDec->nChannelsInternal = decControl->nChannelsInternal; + + if( decControl->API_sampleRate > (opus_int32)MAX_API_FS_KHZ * 1000 || decControl->API_sampleRate < 8000 ) { + ret = SILK_DEC_INVALID_SAMPLING_FREQUENCY; + RESTORE_STACK; + return( ret ); + } + + if( lostFlag != FLAG_PACKET_LOST && channel_state[ 0 ].nFramesDecoded == 0 ) { + /* First decoder call for this payload */ + /* Decode VAD flags and LBRR flag */ + for( n = 0; n < decControl->nChannelsInternal; n++ ) { + for( i = 0; i < channel_state[ n ].nFramesPerPacket; i++ ) { + channel_state[ n ].VAD_flags[ i ] = ec_dec_bit_logp(psRangeDec, 1); + } + channel_state[ n ].LBRR_flag = ec_dec_bit_logp(psRangeDec, 1); + } + /* Decode LBRR flags */ + for( n = 0; n < decControl->nChannelsInternal; n++ ) { + silk_memset( channel_state[ n ].LBRR_flags, 0, sizeof( channel_state[ n ].LBRR_flags ) ); + if( channel_state[ n ].LBRR_flag ) { + if( channel_state[ n ].nFramesPerPacket == 1 ) { + channel_state[ n ].LBRR_flags[ 0 ] = 1; + } else { + LBRR_symbol = ec_dec_icdf( psRangeDec, silk_LBRR_flags_iCDF_ptr[ channel_state[ n ].nFramesPerPacket - 2 ], 8 ) + 1; + for( i = 0; i < channel_state[ n ].nFramesPerPacket; i++ ) { + channel_state[ n ].LBRR_flags[ i ] = silk_RSHIFT( LBRR_symbol, i ) & 1; + } + } + } + } + + if( lostFlag == FLAG_DECODE_NORMAL ) { + /* Regular decoding: skip all LBRR data */ + for( i = 0; i < channel_state[ 0 ].nFramesPerPacket; i++ ) { + for( n = 0; n < decControl->nChannelsInternal; n++ ) { + if( channel_state[ n ].LBRR_flags[ i ] ) { + opus_int16 pulses[ MAX_FRAME_LENGTH ]; + opus_int condCoding; + + if( decControl->nChannelsInternal == 2 && n == 0 ) { + silk_stereo_decode_pred( psRangeDec, MS_pred_Q13 ); + if( channel_state[ 1 ].LBRR_flags[ i ] == 0 ) { + silk_stereo_decode_mid_only( psRangeDec, &decode_only_middle ); + } + } + /* Use conditional coding if previous frame available */ + if( i > 0 && channel_state[ n ].LBRR_flags[ i - 1 ] ) { + condCoding = CODE_CONDITIONALLY; + } else { + condCoding = CODE_INDEPENDENTLY; + } + silk_decode_indices( &channel_state[ n ], psRangeDec, i, 1, condCoding ); + silk_decode_pulses( psRangeDec, pulses, channel_state[ n ].indices.signalType, + channel_state[ n ].indices.quantOffsetType, channel_state[ n ].frame_length ); + } + } + } + } + } + + /* Get MS predictor index */ + if( decControl->nChannelsInternal == 2 ) { + if( lostFlag == FLAG_DECODE_NORMAL || + ( lostFlag == FLAG_DECODE_LBRR && channel_state[ 0 ].LBRR_flags[ channel_state[ 0 ].nFramesDecoded ] == 1 ) ) + { + silk_stereo_decode_pred( psRangeDec, MS_pred_Q13 ); + /* For LBRR data, decode mid-only flag only if side-channel's LBRR flag is false */ + if( ( lostFlag == FLAG_DECODE_NORMAL && channel_state[ 1 ].VAD_flags[ channel_state[ 0 ].nFramesDecoded ] == 0 ) || + ( lostFlag == FLAG_DECODE_LBRR && channel_state[ 1 ].LBRR_flags[ channel_state[ 0 ].nFramesDecoded ] == 0 ) ) + { + silk_stereo_decode_mid_only( psRangeDec, &decode_only_middle ); + } else { + decode_only_middle = 0; + } + } else { + for( n = 0; n < 2; n++ ) { + MS_pred_Q13[ n ] = psDec->sStereo.pred_prev_Q13[ n ]; + } + } + } + + /* Reset side channel decoder prediction memory for first frame with side coding */ + if( decControl->nChannelsInternal == 2 && decode_only_middle == 0 && psDec->prev_decode_only_middle == 1 ) { + silk_memset( psDec->channel_state[ 1 ].outBuf, 0, sizeof(psDec->channel_state[ 1 ].outBuf) ); + silk_memset( psDec->channel_state[ 1 ].sLPC_Q14_buf, 0, sizeof(psDec->channel_state[ 1 ].sLPC_Q14_buf) ); + psDec->channel_state[ 1 ].lagPrev = 100; + psDec->channel_state[ 1 ].LastGainIndex = 10; + psDec->channel_state[ 1 ].prevSignalType = TYPE_NO_VOICE_ACTIVITY; + psDec->channel_state[ 1 ].first_frame_after_reset = 1; + } + + /* Check if the temp buffer fits into the output PCM buffer. If it fits, + we can delay allocating the temp buffer until after the SILK peak stack + usage. We need to use a < and not a <= because of the two extra samples. */ + delay_stack_alloc = decControl->internalSampleRate*decControl->nChannelsInternal + < decControl->API_sampleRate*decControl->nChannelsAPI; + ALLOC( samplesOut1_tmp_storage1, delay_stack_alloc ? ALLOC_NONE + : decControl->nChannelsInternal*(channel_state[ 0 ].frame_length + 2 ), + opus_int16 ); + if ( delay_stack_alloc ) + { + samplesOut1_tmp[ 0 ] = samplesOut; + samplesOut1_tmp[ 1 ] = samplesOut + channel_state[ 0 ].frame_length + 2; + } else { + samplesOut1_tmp[ 0 ] = samplesOut1_tmp_storage1; + samplesOut1_tmp[ 1 ] = samplesOut1_tmp_storage1 + channel_state[ 0 ].frame_length + 2; + } + + if( lostFlag == FLAG_DECODE_NORMAL ) { + has_side = !decode_only_middle; + } else { + has_side = !psDec->prev_decode_only_middle + || (decControl->nChannelsInternal == 2 && lostFlag == FLAG_DECODE_LBRR && channel_state[1].LBRR_flags[ channel_state[1].nFramesDecoded ] == 1 ); + } + /* Call decoder for one frame */ + for( n = 0; n < decControl->nChannelsInternal; n++ ) { + if( n == 0 || has_side ) { + opus_int FrameIndex; + opus_int condCoding; + + FrameIndex = channel_state[ 0 ].nFramesDecoded - n; + /* Use independent coding if no previous frame available */ + if( FrameIndex <= 0 ) { + condCoding = CODE_INDEPENDENTLY; + } else if( lostFlag == FLAG_DECODE_LBRR ) { + condCoding = channel_state[ n ].LBRR_flags[ FrameIndex - 1 ] ? CODE_CONDITIONALLY : CODE_INDEPENDENTLY; + } else if( n > 0 && psDec->prev_decode_only_middle ) { + /* If we skipped a side frame in this packet, we don't + need LTP scaling; the LTP state is well-defined. */ + condCoding = CODE_INDEPENDENTLY_NO_LTP_SCALING; + } else { + condCoding = CODE_CONDITIONALLY; + } + ret += silk_decode_frame( &channel_state[ n ], psRangeDec, &samplesOut1_tmp[ n ][ 2 ], &nSamplesOutDec, lostFlag, condCoding, arch); + } else { + silk_memset( &samplesOut1_tmp[ n ][ 2 ], 0, nSamplesOutDec * sizeof( opus_int16 ) ); + } + channel_state[ n ].nFramesDecoded++; + } + + if( decControl->nChannelsAPI == 2 && decControl->nChannelsInternal == 2 ) { + /* Convert Mid/Side to Left/Right */ + silk_stereo_MS_to_LR( &psDec->sStereo, samplesOut1_tmp[ 0 ], samplesOut1_tmp[ 1 ], MS_pred_Q13, channel_state[ 0 ].fs_kHz, nSamplesOutDec ); + } else { + /* Buffering */ + silk_memcpy( samplesOut1_tmp[ 0 ], psDec->sStereo.sMid, 2 * sizeof( opus_int16 ) ); + silk_memcpy( psDec->sStereo.sMid, &samplesOut1_tmp[ 0 ][ nSamplesOutDec ], 2 * sizeof( opus_int16 ) ); + } + + /* Number of output samples */ + *nSamplesOut = silk_DIV32( nSamplesOutDec * decControl->API_sampleRate, silk_SMULBB( channel_state[ 0 ].fs_kHz, 1000 ) ); + + /* Set up pointers to temp buffers */ + ALLOC( samplesOut2_tmp, + decControl->nChannelsAPI == 2 ? *nSamplesOut : ALLOC_NONE, opus_int16 ); + if( decControl->nChannelsAPI == 2 ) { + resample_out_ptr = samplesOut2_tmp; + } else { + resample_out_ptr = samplesOut; + } + + ALLOC( samplesOut1_tmp_storage2, delay_stack_alloc + ? decControl->nChannelsInternal*(channel_state[ 0 ].frame_length + 2 ) + : ALLOC_NONE, + opus_int16 ); + if ( delay_stack_alloc ) { + OPUS_COPY(samplesOut1_tmp_storage2, samplesOut, decControl->nChannelsInternal*(channel_state[ 0 ].frame_length + 2)); + samplesOut1_tmp[ 0 ] = samplesOut1_tmp_storage2; + samplesOut1_tmp[ 1 ] = samplesOut1_tmp_storage2 + channel_state[ 0 ].frame_length + 2; + } + for( n = 0; n < silk_min( decControl->nChannelsAPI, decControl->nChannelsInternal ); n++ ) { + + /* Resample decoded signal to API_sampleRate */ + ret += silk_resampler( &channel_state[ n ].resampler_state, resample_out_ptr, &samplesOut1_tmp[ n ][ 1 ], nSamplesOutDec ); + + /* Interleave if stereo output and stereo stream */ + if( decControl->nChannelsAPI == 2 ) { + for( i = 0; i < *nSamplesOut; i++ ) { + samplesOut[ n + 2 * i ] = resample_out_ptr[ i ]; + } + } + } + + /* Create two channel output from mono stream */ + if( decControl->nChannelsAPI == 2 && decControl->nChannelsInternal == 1 ) { + if ( stereo_to_mono ){ + /* Resample right channel for newly collapsed stereo just in case + we weren't doing collapsing when switching to mono */ + ret += silk_resampler( &channel_state[ 1 ].resampler_state, resample_out_ptr, &samplesOut1_tmp[ 0 ][ 1 ], nSamplesOutDec ); + + for( i = 0; i < *nSamplesOut; i++ ) { + samplesOut[ 1 + 2 * i ] = resample_out_ptr[ i ]; + } + } else { + for( i = 0; i < *nSamplesOut; i++ ) { + samplesOut[ 1 + 2 * i ] = samplesOut[ 0 + 2 * i ]; + } + } + } + + /* Export pitch lag, measured at 48 kHz sampling rate */ + if( channel_state[ 0 ].prevSignalType == TYPE_VOICED ) { + int mult_tab[ 3 ] = { 6, 4, 3 }; + decControl->prevPitchLag = channel_state[ 0 ].lagPrev * mult_tab[ ( channel_state[ 0 ].fs_kHz - 8 ) >> 2 ]; + } else { + decControl->prevPitchLag = 0; + } + + if( lostFlag == FLAG_PACKET_LOST ) { + /* On packet loss, remove the gain clamping to prevent having the energy "bounce back" + if we lose packets when the energy is going down */ + for ( i = 0; i < psDec->nChannelsInternal; i++ ) + psDec->channel_state[ i ].LastGainIndex = 10; + } else { + psDec->prev_decode_only_middle = decode_only_middle; + } + RESTORE_STACK; + return ret; +} + +#if 0 +/* Getting table of contents for a packet */ +opus_int silk_get_TOC( + const opus_uint8 *payload, /* I Payload data */ + const opus_int nBytesIn, /* I Number of input bytes */ + const opus_int nFramesPerPayload, /* I Number of SILK frames per payload */ + silk_TOC_struct *Silk_TOC /* O Type of content */ +) +{ + opus_int i, flags, ret = SILK_NO_ERROR; + + if( nBytesIn < 1 ) { + return -1; + } + if( nFramesPerPayload < 0 || nFramesPerPayload > 3 ) { + return -1; + } + + silk_memset( Silk_TOC, 0, sizeof( *Silk_TOC ) ); + + /* For stereo, extract the flags for the mid channel */ + flags = silk_RSHIFT( payload[ 0 ], 7 - nFramesPerPayload ) & ( silk_LSHIFT( 1, nFramesPerPayload + 1 ) - 1 ); + + Silk_TOC->inbandFECFlag = flags & 1; + for( i = nFramesPerPayload - 1; i >= 0 ; i-- ) { + flags = silk_RSHIFT( flags, 1 ); + Silk_TOC->VADFlags[ i ] = flags & 1; + Silk_TOC->VADFlag |= flags & 1; + } + + return ret; +} +#endif diff --git a/components/opus/libopus/silk/decode_core.c b/components/opus/libopus/silk/decode_core.c new file mode 100644 index 0000000..1c352a6 --- /dev/null +++ b/components/opus/libopus/silk/decode_core.c @@ -0,0 +1,237 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main.h" +#include "stack_alloc.h" + +/**********************************************************/ +/* Core decoder. Performs inverse NSQ operation LTP + LPC */ +/**********************************************************/ +void silk_decode_core( + silk_decoder_state *psDec, /* I/O Decoder state */ + silk_decoder_control *psDecCtrl, /* I Decoder control */ + opus_int16 xq[], /* O Decoded speech */ + const opus_int16 pulses[ MAX_FRAME_LENGTH ], /* I Pulse signal */ + int arch /* I Run-time architecture */ +) +{ + opus_int i, k, lag = 0, start_idx, sLTP_buf_idx, NLSF_interpolation_flag, signalType; + opus_int16 *A_Q12, *B_Q14, *pxq, A_Q12_tmp[ MAX_LPC_ORDER ]; + VARDECL( opus_int16, sLTP ); + VARDECL( opus_int32, sLTP_Q15 ); + opus_int32 LTP_pred_Q13, LPC_pred_Q10, Gain_Q10, inv_gain_Q31, gain_adj_Q16, rand_seed, offset_Q10; + opus_int32 *pred_lag_ptr, *pexc_Q14, *pres_Q14; + VARDECL( opus_int32, res_Q14 ); + VARDECL( opus_int32, sLPC_Q14 ); + SAVE_STACK; + + silk_assert( psDec->prev_gain_Q16 != 0 ); + + ALLOC( sLTP, psDec->ltp_mem_length, opus_int16 ); + ALLOC( sLTP_Q15, psDec->ltp_mem_length + psDec->frame_length, opus_int32 ); + ALLOC( res_Q14, psDec->subfr_length, opus_int32 ); + ALLOC( sLPC_Q14, psDec->subfr_length + MAX_LPC_ORDER, opus_int32 ); + + offset_Q10 = silk_Quantization_Offsets_Q10[ psDec->indices.signalType >> 1 ][ psDec->indices.quantOffsetType ]; + + if( psDec->indices.NLSFInterpCoef_Q2 < 1 << 2 ) { + NLSF_interpolation_flag = 1; + } else { + NLSF_interpolation_flag = 0; + } + + /* Decode excitation */ + rand_seed = psDec->indices.Seed; + for( i = 0; i < psDec->frame_length; i++ ) { + rand_seed = silk_RAND( rand_seed ); + psDec->exc_Q14[ i ] = silk_LSHIFT( (opus_int32)pulses[ i ], 14 ); + if( psDec->exc_Q14[ i ] > 0 ) { + psDec->exc_Q14[ i ] -= QUANT_LEVEL_ADJUST_Q10 << 4; + } else + if( psDec->exc_Q14[ i ] < 0 ) { + psDec->exc_Q14[ i ] += QUANT_LEVEL_ADJUST_Q10 << 4; + } + psDec->exc_Q14[ i ] += offset_Q10 << 4; + if( rand_seed < 0 ) { + psDec->exc_Q14[ i ] = -psDec->exc_Q14[ i ]; + } + + rand_seed = silk_ADD32_ovflw( rand_seed, pulses[ i ] ); + } + + /* Copy LPC state */ + silk_memcpy( sLPC_Q14, psDec->sLPC_Q14_buf, MAX_LPC_ORDER * sizeof( opus_int32 ) ); + + pexc_Q14 = psDec->exc_Q14; + pxq = xq; + sLTP_buf_idx = psDec->ltp_mem_length; + /* Loop over subframes */ + for( k = 0; k < psDec->nb_subfr; k++ ) { + pres_Q14 = res_Q14; + A_Q12 = psDecCtrl->PredCoef_Q12[ k >> 1 ]; + + /* Preload LPC coeficients to array on stack. Gives small performance gain */ + silk_memcpy( A_Q12_tmp, A_Q12, psDec->LPC_order * sizeof( opus_int16 ) ); + B_Q14 = &psDecCtrl->LTPCoef_Q14[ k * LTP_ORDER ]; + signalType = psDec->indices.signalType; + + Gain_Q10 = silk_RSHIFT( psDecCtrl->Gains_Q16[ k ], 6 ); + inv_gain_Q31 = silk_INVERSE32_varQ( psDecCtrl->Gains_Q16[ k ], 47 ); + + /* Calculate gain adjustment factor */ + if( psDecCtrl->Gains_Q16[ k ] != psDec->prev_gain_Q16 ) { + gain_adj_Q16 = silk_DIV32_varQ( psDec->prev_gain_Q16, psDecCtrl->Gains_Q16[ k ], 16 ); + + /* Scale short term state */ + for( i = 0; i < MAX_LPC_ORDER; i++ ) { + sLPC_Q14[ i ] = silk_SMULWW( gain_adj_Q16, sLPC_Q14[ i ] ); + } + } else { + gain_adj_Q16 = (opus_int32)1 << 16; + } + + /* Save inv_gain */ + silk_assert( inv_gain_Q31 != 0 ); + psDec->prev_gain_Q16 = psDecCtrl->Gains_Q16[ k ]; + + /* Avoid abrupt transition from voiced PLC to unvoiced normal decoding */ + if( psDec->lossCnt && psDec->prevSignalType == TYPE_VOICED && + psDec->indices.signalType != TYPE_VOICED && k < MAX_NB_SUBFR/2 ) { + + silk_memset( B_Q14, 0, LTP_ORDER * sizeof( opus_int16 ) ); + B_Q14[ LTP_ORDER/2 ] = SILK_FIX_CONST( 0.25, 14 ); + + signalType = TYPE_VOICED; + psDecCtrl->pitchL[ k ] = psDec->lagPrev; + } + + if( signalType == TYPE_VOICED ) { + /* Voiced */ + lag = psDecCtrl->pitchL[ k ]; + + /* Re-whitening */ + if( k == 0 || ( k == 2 && NLSF_interpolation_flag ) ) { + /* Rewhiten with new A coefs */ + start_idx = psDec->ltp_mem_length - lag - psDec->LPC_order - LTP_ORDER / 2; + celt_assert( start_idx > 0 ); + + if( k == 2 ) { + silk_memcpy( &psDec->outBuf[ psDec->ltp_mem_length ], xq, 2 * psDec->subfr_length * sizeof( opus_int16 ) ); + } + + silk_LPC_analysis_filter( &sLTP[ start_idx ], &psDec->outBuf[ start_idx + k * psDec->subfr_length ], + A_Q12, psDec->ltp_mem_length - start_idx, psDec->LPC_order, arch ); + + /* After rewhitening the LTP state is unscaled */ + if( k == 0 ) { + /* Do LTP downscaling to reduce inter-packet dependency */ + inv_gain_Q31 = silk_LSHIFT( silk_SMULWB( inv_gain_Q31, psDecCtrl->LTP_scale_Q14 ), 2 ); + } + for( i = 0; i < lag + LTP_ORDER/2; i++ ) { + sLTP_Q15[ sLTP_buf_idx - i - 1 ] = silk_SMULWB( inv_gain_Q31, sLTP[ psDec->ltp_mem_length - i - 1 ] ); + } + } else { + /* Update LTP state when Gain changes */ + if( gain_adj_Q16 != (opus_int32)1 << 16 ) { + for( i = 0; i < lag + LTP_ORDER/2; i++ ) { + sLTP_Q15[ sLTP_buf_idx - i - 1 ] = silk_SMULWW( gain_adj_Q16, sLTP_Q15[ sLTP_buf_idx - i - 1 ] ); + } + } + } + } + + /* Long-term prediction */ + if( signalType == TYPE_VOICED ) { + /* Set up pointer */ + pred_lag_ptr = &sLTP_Q15[ sLTP_buf_idx - lag + LTP_ORDER / 2 ]; + for( i = 0; i < psDec->subfr_length; i++ ) { + /* Unrolled loop */ + /* Avoids introducing a bias because silk_SMLAWB() always rounds to -inf */ + LTP_pred_Q13 = 2; + LTP_pred_Q13 = silk_SMLAWB( LTP_pred_Q13, pred_lag_ptr[ 0 ], B_Q14[ 0 ] ); + LTP_pred_Q13 = silk_SMLAWB( LTP_pred_Q13, pred_lag_ptr[ -1 ], B_Q14[ 1 ] ); + LTP_pred_Q13 = silk_SMLAWB( LTP_pred_Q13, pred_lag_ptr[ -2 ], B_Q14[ 2 ] ); + LTP_pred_Q13 = silk_SMLAWB( LTP_pred_Q13, pred_lag_ptr[ -3 ], B_Q14[ 3 ] ); + LTP_pred_Q13 = silk_SMLAWB( LTP_pred_Q13, pred_lag_ptr[ -4 ], B_Q14[ 4 ] ); + pred_lag_ptr++; + + /* Generate LPC excitation */ + pres_Q14[ i ] = silk_ADD_LSHIFT32( pexc_Q14[ i ], LTP_pred_Q13, 1 ); + + /* Update states */ + sLTP_Q15[ sLTP_buf_idx ] = silk_LSHIFT( pres_Q14[ i ], 1 ); + sLTP_buf_idx++; + } + } else { + pres_Q14 = pexc_Q14; + } + + for( i = 0; i < psDec->subfr_length; i++ ) { + /* Short-term prediction */ + celt_assert( psDec->LPC_order == 10 || psDec->LPC_order == 16 ); + /* Avoids introducing a bias because silk_SMLAWB() always rounds to -inf */ + LPC_pred_Q10 = silk_RSHIFT( psDec->LPC_order, 1 ); + LPC_pred_Q10 = silk_SMLAWB( LPC_pred_Q10, sLPC_Q14[ MAX_LPC_ORDER + i - 1 ], A_Q12_tmp[ 0 ] ); + LPC_pred_Q10 = silk_SMLAWB( LPC_pred_Q10, sLPC_Q14[ MAX_LPC_ORDER + i - 2 ], A_Q12_tmp[ 1 ] ); + LPC_pred_Q10 = silk_SMLAWB( LPC_pred_Q10, sLPC_Q14[ MAX_LPC_ORDER + i - 3 ], A_Q12_tmp[ 2 ] ); + LPC_pred_Q10 = silk_SMLAWB( LPC_pred_Q10, sLPC_Q14[ MAX_LPC_ORDER + i - 4 ], A_Q12_tmp[ 3 ] ); + LPC_pred_Q10 = silk_SMLAWB( LPC_pred_Q10, sLPC_Q14[ MAX_LPC_ORDER + i - 5 ], A_Q12_tmp[ 4 ] ); + LPC_pred_Q10 = silk_SMLAWB( LPC_pred_Q10, sLPC_Q14[ MAX_LPC_ORDER + i - 6 ], A_Q12_tmp[ 5 ] ); + LPC_pred_Q10 = silk_SMLAWB( LPC_pred_Q10, sLPC_Q14[ MAX_LPC_ORDER + i - 7 ], A_Q12_tmp[ 6 ] ); + LPC_pred_Q10 = silk_SMLAWB( LPC_pred_Q10, sLPC_Q14[ MAX_LPC_ORDER + i - 8 ], A_Q12_tmp[ 7 ] ); + LPC_pred_Q10 = silk_SMLAWB( LPC_pred_Q10, sLPC_Q14[ MAX_LPC_ORDER + i - 9 ], A_Q12_tmp[ 8 ] ); + LPC_pred_Q10 = silk_SMLAWB( LPC_pred_Q10, sLPC_Q14[ MAX_LPC_ORDER + i - 10 ], A_Q12_tmp[ 9 ] ); + if( psDec->LPC_order == 16 ) { + LPC_pred_Q10 = silk_SMLAWB( LPC_pred_Q10, sLPC_Q14[ MAX_LPC_ORDER + i - 11 ], A_Q12_tmp[ 10 ] ); + LPC_pred_Q10 = silk_SMLAWB( LPC_pred_Q10, sLPC_Q14[ MAX_LPC_ORDER + i - 12 ], A_Q12_tmp[ 11 ] ); + LPC_pred_Q10 = silk_SMLAWB( LPC_pred_Q10, sLPC_Q14[ MAX_LPC_ORDER + i - 13 ], A_Q12_tmp[ 12 ] ); + LPC_pred_Q10 = silk_SMLAWB( LPC_pred_Q10, sLPC_Q14[ MAX_LPC_ORDER + i - 14 ], A_Q12_tmp[ 13 ] ); + LPC_pred_Q10 = silk_SMLAWB( LPC_pred_Q10, sLPC_Q14[ MAX_LPC_ORDER + i - 15 ], A_Q12_tmp[ 14 ] ); + LPC_pred_Q10 = silk_SMLAWB( LPC_pred_Q10, sLPC_Q14[ MAX_LPC_ORDER + i - 16 ], A_Q12_tmp[ 15 ] ); + } + + /* Add prediction to LPC excitation */ + sLPC_Q14[ MAX_LPC_ORDER + i ] = silk_ADD_SAT32( pres_Q14[ i ], silk_LSHIFT_SAT32( LPC_pred_Q10, 4 ) ); + + /* Scale with gain */ + pxq[ i ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( silk_SMULWW( sLPC_Q14[ MAX_LPC_ORDER + i ], Gain_Q10 ), 8 ) ); + } + + /* Update LPC filter state */ + silk_memcpy( sLPC_Q14, &sLPC_Q14[ psDec->subfr_length ], MAX_LPC_ORDER * sizeof( opus_int32 ) ); + pexc_Q14 += psDec->subfr_length; + pxq += psDec->subfr_length; + } + + /* Save LPC state */ + silk_memcpy( psDec->sLPC_Q14_buf, sLPC_Q14, MAX_LPC_ORDER * sizeof( opus_int32 ) ); + RESTORE_STACK; +} diff --git a/components/opus/libopus/silk/decode_frame.c b/components/opus/libopus/silk/decode_frame.c new file mode 100644 index 0000000..e73825b --- /dev/null +++ b/components/opus/libopus/silk/decode_frame.c @@ -0,0 +1,130 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main.h" +#include "stack_alloc.h" +#include "PLC.h" + +/****************/ +/* Decode frame */ +/****************/ +opus_int silk_decode_frame( + silk_decoder_state *psDec, /* I/O Pointer to Silk decoder state */ + ec_dec *psRangeDec, /* I/O Compressor data structure */ + opus_int16 pOut[], /* O Pointer to output speech frame */ + opus_int32 *pN, /* O Pointer to size of output frame */ + opus_int lostFlag, /* I 0: no loss, 1 loss, 2 decode fec */ + opus_int condCoding, /* I The type of conditional coding to use */ + int arch /* I Run-time architecture */ +) +{ + VARDECL( silk_decoder_control, psDecCtrl ); + opus_int L, mv_len, ret = 0; + SAVE_STACK; + + L = psDec->frame_length; + ALLOC( psDecCtrl, 1, silk_decoder_control ); + psDecCtrl->LTP_scale_Q14 = 0; + + /* Safety checks */ + celt_assert( L > 0 && L <= MAX_FRAME_LENGTH ); + + if( lostFlag == FLAG_DECODE_NORMAL || + ( lostFlag == FLAG_DECODE_LBRR && psDec->LBRR_flags[ psDec->nFramesDecoded ] == 1 ) ) + { + VARDECL( opus_int16, pulses ); + ALLOC( pulses, (L + SHELL_CODEC_FRAME_LENGTH - 1) & + ~(SHELL_CODEC_FRAME_LENGTH - 1), opus_int16 ); + /*********************************************/ + /* Decode quantization indices of side info */ + /*********************************************/ + silk_decode_indices( psDec, psRangeDec, psDec->nFramesDecoded, lostFlag, condCoding ); + + /*********************************************/ + /* Decode quantization indices of excitation */ + /*********************************************/ + silk_decode_pulses( psRangeDec, pulses, psDec->indices.signalType, + psDec->indices.quantOffsetType, psDec->frame_length ); + + /********************************************/ + /* Decode parameters and pulse signal */ + /********************************************/ + silk_decode_parameters( psDec, psDecCtrl, condCoding ); + + /********************************************************/ + /* Run inverse NSQ */ + /********************************************************/ + silk_decode_core( psDec, psDecCtrl, pOut, pulses, arch ); + + /********************************************************/ + /* Update PLC state */ + /********************************************************/ + silk_PLC( psDec, psDecCtrl, pOut, 0, arch ); + + psDec->lossCnt = 0; + psDec->prevSignalType = psDec->indices.signalType; + celt_assert( psDec->prevSignalType >= 0 && psDec->prevSignalType <= 2 ); + + /* A frame has been decoded without errors */ + psDec->first_frame_after_reset = 0; + } else { + /* Handle packet loss by extrapolation */ + psDec->indices.signalType = psDec->prevSignalType; + silk_PLC( psDec, psDecCtrl, pOut, 1, arch ); + } + + /*************************/ + /* Update output buffer. */ + /*************************/ + celt_assert( psDec->ltp_mem_length >= psDec->frame_length ); + mv_len = psDec->ltp_mem_length - psDec->frame_length; + silk_memmove( psDec->outBuf, &psDec->outBuf[ psDec->frame_length ], mv_len * sizeof(opus_int16) ); + silk_memcpy( &psDec->outBuf[ mv_len ], pOut, psDec->frame_length * sizeof( opus_int16 ) ); + + /************************************************/ + /* Comfort noise generation / estimation */ + /************************************************/ + silk_CNG( psDec, psDecCtrl, pOut, L ); + + /****************************************************************/ + /* Ensure smooth connection of extrapolated and good frames */ + /****************************************************************/ + silk_PLC_glue_frames( psDec, pOut, L ); + + /* Update some decoder state variables */ + psDec->lagPrev = psDecCtrl->pitchL[ psDec->nb_subfr - 1 ]; + + /* Set output frame length */ + *pN = L; + + RESTORE_STACK; + return ret; +} diff --git a/components/opus/libopus/silk/decode_indices.c b/components/opus/libopus/silk/decode_indices.c new file mode 100644 index 0000000..0bb4a99 --- /dev/null +++ b/components/opus/libopus/silk/decode_indices.c @@ -0,0 +1,151 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main.h" + +/* Decode side-information parameters from payload */ +void silk_decode_indices( + silk_decoder_state *psDec, /* I/O State */ + ec_dec *psRangeDec, /* I/O Compressor data structure */ + opus_int FrameIndex, /* I Frame number */ + opus_int decode_LBRR, /* I Flag indicating LBRR data is being decoded */ + opus_int condCoding /* I The type of conditional coding to use */ +) +{ + opus_int i, k, Ix; + opus_int decode_absolute_lagIndex, delta_lagIndex; + opus_int16 ec_ix[ MAX_LPC_ORDER ]; + opus_uint8 pred_Q8[ MAX_LPC_ORDER ]; + + /*******************************************/ + /* Decode signal type and quantizer offset */ + /*******************************************/ + if( decode_LBRR || psDec->VAD_flags[ FrameIndex ] ) { + Ix = ec_dec_icdf( psRangeDec, silk_type_offset_VAD_iCDF, 8 ) + 2; + } else { + Ix = ec_dec_icdf( psRangeDec, silk_type_offset_no_VAD_iCDF, 8 ); + } + psDec->indices.signalType = (opus_int8)silk_RSHIFT( Ix, 1 ); + psDec->indices.quantOffsetType = (opus_int8)( Ix & 1 ); + + /****************/ + /* Decode gains */ + /****************/ + /* First subframe */ + if( condCoding == CODE_CONDITIONALLY ) { + /* Conditional coding */ + psDec->indices.GainsIndices[ 0 ] = (opus_int8)ec_dec_icdf( psRangeDec, silk_delta_gain_iCDF, 8 ); + } else { + /* Independent coding, in two stages: MSB bits followed by 3 LSBs */ + psDec->indices.GainsIndices[ 0 ] = (opus_int8)silk_LSHIFT( ec_dec_icdf( psRangeDec, silk_gain_iCDF[ psDec->indices.signalType ], 8 ), 3 ); + psDec->indices.GainsIndices[ 0 ] += (opus_int8)ec_dec_icdf( psRangeDec, silk_uniform8_iCDF, 8 ); + } + + /* Remaining subframes */ + for( i = 1; i < psDec->nb_subfr; i++ ) { + psDec->indices.GainsIndices[ i ] = (opus_int8)ec_dec_icdf( psRangeDec, silk_delta_gain_iCDF, 8 ); + } + + /**********************/ + /* Decode LSF Indices */ + /**********************/ + psDec->indices.NLSFIndices[ 0 ] = (opus_int8)ec_dec_icdf( psRangeDec, &psDec->psNLSF_CB->CB1_iCDF[ ( psDec->indices.signalType >> 1 ) * psDec->psNLSF_CB->nVectors ], 8 ); + silk_NLSF_unpack( ec_ix, pred_Q8, psDec->psNLSF_CB, psDec->indices.NLSFIndices[ 0 ] ); + celt_assert( psDec->psNLSF_CB->order == psDec->LPC_order ); + for( i = 0; i < psDec->psNLSF_CB->order; i++ ) { + Ix = ec_dec_icdf( psRangeDec, &psDec->psNLSF_CB->ec_iCDF[ ec_ix[ i ] ], 8 ); + if( Ix == 0 ) { + Ix -= ec_dec_icdf( psRangeDec, silk_NLSF_EXT_iCDF, 8 ); + } else if( Ix == 2 * NLSF_QUANT_MAX_AMPLITUDE ) { + Ix += ec_dec_icdf( psRangeDec, silk_NLSF_EXT_iCDF, 8 ); + } + psDec->indices.NLSFIndices[ i+1 ] = (opus_int8)( Ix - NLSF_QUANT_MAX_AMPLITUDE ); + } + + /* Decode LSF interpolation factor */ + if( psDec->nb_subfr == MAX_NB_SUBFR ) { + psDec->indices.NLSFInterpCoef_Q2 = (opus_int8)ec_dec_icdf( psRangeDec, silk_NLSF_interpolation_factor_iCDF, 8 ); + } else { + psDec->indices.NLSFInterpCoef_Q2 = 4; + } + + if( psDec->indices.signalType == TYPE_VOICED ) + { + /*********************/ + /* Decode pitch lags */ + /*********************/ + /* Get lag index */ + decode_absolute_lagIndex = 1; + if( condCoding == CODE_CONDITIONALLY && psDec->ec_prevSignalType == TYPE_VOICED ) { + /* Decode Delta index */ + delta_lagIndex = (opus_int16)ec_dec_icdf( psRangeDec, silk_pitch_delta_iCDF, 8 ); + if( delta_lagIndex > 0 ) { + delta_lagIndex = delta_lagIndex - 9; + psDec->indices.lagIndex = (opus_int16)( psDec->ec_prevLagIndex + delta_lagIndex ); + decode_absolute_lagIndex = 0; + } + } + if( decode_absolute_lagIndex ) { + /* Absolute decoding */ + psDec->indices.lagIndex = (opus_int16)ec_dec_icdf( psRangeDec, silk_pitch_lag_iCDF, 8 ) * silk_RSHIFT( psDec->fs_kHz, 1 ); + psDec->indices.lagIndex += (opus_int16)ec_dec_icdf( psRangeDec, psDec->pitch_lag_low_bits_iCDF, 8 ); + } + psDec->ec_prevLagIndex = psDec->indices.lagIndex; + + /* Get countour index */ + psDec->indices.contourIndex = (opus_int8)ec_dec_icdf( psRangeDec, psDec->pitch_contour_iCDF, 8 ); + + /********************/ + /* Decode LTP gains */ + /********************/ + /* Decode PERIndex value */ + psDec->indices.PERIndex = (opus_int8)ec_dec_icdf( psRangeDec, silk_LTP_per_index_iCDF, 8 ); + + for( k = 0; k < psDec->nb_subfr; k++ ) { + psDec->indices.LTPIndex[ k ] = (opus_int8)ec_dec_icdf( psRangeDec, silk_LTP_gain_iCDF_ptrs[ psDec->indices.PERIndex ], 8 ); + } + + /**********************/ + /* Decode LTP scaling */ + /**********************/ + if( condCoding == CODE_INDEPENDENTLY ) { + psDec->indices.LTP_scaleIndex = (opus_int8)ec_dec_icdf( psRangeDec, silk_LTPscale_iCDF, 8 ); + } else { + psDec->indices.LTP_scaleIndex = 0; + } + } + psDec->ec_prevSignalType = psDec->indices.signalType; + + /***************/ + /* Decode seed */ + /***************/ + psDec->indices.Seed = (opus_int8)ec_dec_icdf( psRangeDec, silk_uniform4_iCDF, 8 ); +} diff --git a/components/opus/libopus/silk/decode_parameters.c b/components/opus/libopus/silk/decode_parameters.c new file mode 100644 index 0000000..a56a409 --- /dev/null +++ b/components/opus/libopus/silk/decode_parameters.c @@ -0,0 +1,115 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main.h" + +/* Decode parameters from payload */ +void silk_decode_parameters( + silk_decoder_state *psDec, /* I/O State */ + silk_decoder_control *psDecCtrl, /* I/O Decoder control */ + opus_int condCoding /* I The type of conditional coding to use */ +) +{ + opus_int i, k, Ix; + opus_int16 pNLSF_Q15[ MAX_LPC_ORDER ], pNLSF0_Q15[ MAX_LPC_ORDER ]; + const opus_int8 *cbk_ptr_Q7; + + /* Dequant Gains */ + silk_gains_dequant( psDecCtrl->Gains_Q16, psDec->indices.GainsIndices, + &psDec->LastGainIndex, condCoding == CODE_CONDITIONALLY, psDec->nb_subfr ); + + /****************/ + /* Decode NLSFs */ + /****************/ + silk_NLSF_decode( pNLSF_Q15, psDec->indices.NLSFIndices, psDec->psNLSF_CB ); + + /* Convert NLSF parameters to AR prediction filter coefficients */ + silk_NLSF2A( psDecCtrl->PredCoef_Q12[ 1 ], pNLSF_Q15, psDec->LPC_order, psDec->arch ); + + /* If just reset, e.g., because internal Fs changed, do not allow interpolation */ + /* improves the case of packet loss in the first frame after a switch */ + if( psDec->first_frame_after_reset == 1 ) { + psDec->indices.NLSFInterpCoef_Q2 = 4; + } + + if( psDec->indices.NLSFInterpCoef_Q2 < 4 ) { + /* Calculation of the interpolated NLSF0 vector from the interpolation factor, */ + /* the previous NLSF1, and the current NLSF1 */ + for( i = 0; i < psDec->LPC_order; i++ ) { + pNLSF0_Q15[ i ] = psDec->prevNLSF_Q15[ i ] + silk_RSHIFT( silk_MUL( psDec->indices.NLSFInterpCoef_Q2, + pNLSF_Q15[ i ] - psDec->prevNLSF_Q15[ i ] ), 2 ); + } + + /* Convert NLSF parameters to AR prediction filter coefficients */ + silk_NLSF2A( psDecCtrl->PredCoef_Q12[ 0 ], pNLSF0_Q15, psDec->LPC_order, psDec->arch ); + } else { + /* Copy LPC coefficients for first half from second half */ + silk_memcpy( psDecCtrl->PredCoef_Q12[ 0 ], psDecCtrl->PredCoef_Q12[ 1 ], psDec->LPC_order * sizeof( opus_int16 ) ); + } + + silk_memcpy( psDec->prevNLSF_Q15, pNLSF_Q15, psDec->LPC_order * sizeof( opus_int16 ) ); + + /* After a packet loss do BWE of LPC coefs */ + if( psDec->lossCnt ) { + silk_bwexpander( psDecCtrl->PredCoef_Q12[ 0 ], psDec->LPC_order, BWE_AFTER_LOSS_Q16 ); + silk_bwexpander( psDecCtrl->PredCoef_Q12[ 1 ], psDec->LPC_order, BWE_AFTER_LOSS_Q16 ); + } + + if( psDec->indices.signalType == TYPE_VOICED ) { + /*********************/ + /* Decode pitch lags */ + /*********************/ + + /* Decode pitch values */ + silk_decode_pitch( psDec->indices.lagIndex, psDec->indices.contourIndex, psDecCtrl->pitchL, psDec->fs_kHz, psDec->nb_subfr ); + + /* Decode Codebook Index */ + cbk_ptr_Q7 = silk_LTP_vq_ptrs_Q7[ psDec->indices.PERIndex ]; /* set pointer to start of codebook */ + + for( k = 0; k < psDec->nb_subfr; k++ ) { + Ix = psDec->indices.LTPIndex[ k ]; + for( i = 0; i < LTP_ORDER; i++ ) { + psDecCtrl->LTPCoef_Q14[ k * LTP_ORDER + i ] = silk_LSHIFT( cbk_ptr_Q7[ Ix * LTP_ORDER + i ], 7 ); + } + } + + /**********************/ + /* Decode LTP scaling */ + /**********************/ + Ix = psDec->indices.LTP_scaleIndex; + psDecCtrl->LTP_scale_Q14 = silk_LTPScales_table_Q14[ Ix ]; + } else { + silk_memset( psDecCtrl->pitchL, 0, psDec->nb_subfr * sizeof( opus_int ) ); + silk_memset( psDecCtrl->LTPCoef_Q14, 0, LTP_ORDER * psDec->nb_subfr * sizeof( opus_int16 ) ); + psDec->indices.PERIndex = 0; + psDecCtrl->LTP_scale_Q14 = 0; + } +} diff --git a/components/opus/libopus/silk/decode_pitch.c b/components/opus/libopus/silk/decode_pitch.c new file mode 100644 index 0000000..fd1b6bf --- /dev/null +++ b/components/opus/libopus/silk/decode_pitch.c @@ -0,0 +1,77 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +/*********************************************************** +* Pitch analyser function +********************************************************** */ +#include "SigProc_FIX.h" +#include "pitch_est_defines.h" + +void silk_decode_pitch( + opus_int16 lagIndex, /* I */ + opus_int8 contourIndex, /* O */ + opus_int pitch_lags[], /* O 4 pitch values */ + const opus_int Fs_kHz, /* I sampling frequency (kHz) */ + const opus_int nb_subfr /* I number of sub frames */ +) +{ + opus_int lag, k, min_lag, max_lag, cbk_size; + const opus_int8 *Lag_CB_ptr; + + if( Fs_kHz == 8 ) { + if( nb_subfr == PE_MAX_NB_SUBFR ) { + Lag_CB_ptr = &silk_CB_lags_stage2[ 0 ][ 0 ]; + cbk_size = PE_NB_CBKS_STAGE2_EXT; + } else { + celt_assert( nb_subfr == PE_MAX_NB_SUBFR >> 1 ); + Lag_CB_ptr = &silk_CB_lags_stage2_10_ms[ 0 ][ 0 ]; + cbk_size = PE_NB_CBKS_STAGE2_10MS; + } + } else { + if( nb_subfr == PE_MAX_NB_SUBFR ) { + Lag_CB_ptr = &silk_CB_lags_stage3[ 0 ][ 0 ]; + cbk_size = PE_NB_CBKS_STAGE3_MAX; + } else { + celt_assert( nb_subfr == PE_MAX_NB_SUBFR >> 1 ); + Lag_CB_ptr = &silk_CB_lags_stage3_10_ms[ 0 ][ 0 ]; + cbk_size = PE_NB_CBKS_STAGE3_10MS; + } + } + + min_lag = silk_SMULBB( PE_MIN_LAG_MS, Fs_kHz ); + max_lag = silk_SMULBB( PE_MAX_LAG_MS, Fs_kHz ); + lag = min_lag + lagIndex; + + for( k = 0; k < nb_subfr; k++ ) { + pitch_lags[ k ] = lag + matrix_ptr( Lag_CB_ptr, k, contourIndex, cbk_size ); + pitch_lags[ k ] = silk_LIMIT( pitch_lags[ k ], min_lag, max_lag ); + } +} diff --git a/components/opus/libopus/silk/decode_pulses.c b/components/opus/libopus/silk/decode_pulses.c new file mode 100644 index 0000000..a56d2d3 --- /dev/null +++ b/components/opus/libopus/silk/decode_pulses.c @@ -0,0 +1,115 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main.h" + +/*********************************************/ +/* Decode quantization indices of excitation */ +/*********************************************/ +void silk_decode_pulses( + ec_dec *psRangeDec, /* I/O Compressor data structure */ + opus_int16 pulses[], /* O Excitation signal */ + const opus_int signalType, /* I Sigtype */ + const opus_int quantOffsetType, /* I quantOffsetType */ + const opus_int frame_length /* I Frame length */ +) +{ + opus_int i, j, k, iter, abs_q, nLS, RateLevelIndex; + opus_int sum_pulses[ MAX_NB_SHELL_BLOCKS ], nLshifts[ MAX_NB_SHELL_BLOCKS ]; + opus_int16 *pulses_ptr; + const opus_uint8 *cdf_ptr; + + /*********************/ + /* Decode rate level */ + /*********************/ + RateLevelIndex = ec_dec_icdf( psRangeDec, silk_rate_levels_iCDF[ signalType >> 1 ], 8 ); + + /* Calculate number of shell blocks */ + silk_assert( 1 << LOG2_SHELL_CODEC_FRAME_LENGTH == SHELL_CODEC_FRAME_LENGTH ); + iter = silk_RSHIFT( frame_length, LOG2_SHELL_CODEC_FRAME_LENGTH ); + if( iter * SHELL_CODEC_FRAME_LENGTH < frame_length ) { + celt_assert( frame_length == 12 * 10 ); /* Make sure only happens for 10 ms @ 12 kHz */ + iter++; + } + + /***************************************************/ + /* Sum-Weighted-Pulses Decoding */ + /***************************************************/ + cdf_ptr = silk_pulses_per_block_iCDF[ RateLevelIndex ]; + for( i = 0; i < iter; i++ ) { + nLshifts[ i ] = 0; + sum_pulses[ i ] = ec_dec_icdf( psRangeDec, cdf_ptr, 8 ); + + /* LSB indication */ + while( sum_pulses[ i ] == SILK_MAX_PULSES + 1 ) { + nLshifts[ i ]++; + /* When we've already got 10 LSBs, we shift the table to not allow (SILK_MAX_PULSES + 1) */ + sum_pulses[ i ] = ec_dec_icdf( psRangeDec, + silk_pulses_per_block_iCDF[ N_RATE_LEVELS - 1] + ( nLshifts[ i ] == 10 ), 8 ); + } + } + + /***************************************************/ + /* Shell decoding */ + /***************************************************/ + for( i = 0; i < iter; i++ ) { + if( sum_pulses[ i ] > 0 ) { + silk_shell_decoder( &pulses[ silk_SMULBB( i, SHELL_CODEC_FRAME_LENGTH ) ], psRangeDec, sum_pulses[ i ] ); + } else { + silk_memset( &pulses[ silk_SMULBB( i, SHELL_CODEC_FRAME_LENGTH ) ], 0, SHELL_CODEC_FRAME_LENGTH * sizeof( pulses[0] ) ); + } + } + + /***************************************************/ + /* LSB Decoding */ + /***************************************************/ + for( i = 0; i < iter; i++ ) { + if( nLshifts[ i ] > 0 ) { + nLS = nLshifts[ i ]; + pulses_ptr = &pulses[ silk_SMULBB( i, SHELL_CODEC_FRAME_LENGTH ) ]; + for( k = 0; k < SHELL_CODEC_FRAME_LENGTH; k++ ) { + abs_q = pulses_ptr[ k ]; + for( j = 0; j < nLS; j++ ) { + abs_q = silk_LSHIFT( abs_q, 1 ); + abs_q += ec_dec_icdf( psRangeDec, silk_lsb_iCDF, 8 ); + } + pulses_ptr[ k ] = abs_q; + } + /* Mark the number of pulses non-zero for sign decoding. */ + sum_pulses[ i ] |= nLS << 5; + } + } + + /****************************************/ + /* Decode and add signs to pulse signal */ + /****************************************/ + silk_decode_signs( psRangeDec, pulses, frame_length, signalType, quantOffsetType, sum_pulses ); +} diff --git a/components/opus/libopus/silk/decoder_set_fs.c b/components/opus/libopus/silk/decoder_set_fs.c new file mode 100644 index 0000000..d9a13d0 --- /dev/null +++ b/components/opus/libopus/silk/decoder_set_fs.c @@ -0,0 +1,108 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main.h" + +/* Set decoder sampling rate */ +opus_int silk_decoder_set_fs( + silk_decoder_state *psDec, /* I/O Decoder state pointer */ + opus_int fs_kHz, /* I Sampling frequency (kHz) */ + opus_int32 fs_API_Hz /* I API Sampling frequency (Hz) */ +) +{ + opus_int frame_length, ret = 0; + + celt_assert( fs_kHz == 8 || fs_kHz == 12 || fs_kHz == 16 ); + celt_assert( psDec->nb_subfr == MAX_NB_SUBFR || psDec->nb_subfr == MAX_NB_SUBFR/2 ); + + /* New (sub)frame length */ + psDec->subfr_length = silk_SMULBB( SUB_FRAME_LENGTH_MS, fs_kHz ); + frame_length = silk_SMULBB( psDec->nb_subfr, psDec->subfr_length ); + + /* Initialize resampler when switching internal or external sampling frequency */ + if( psDec->fs_kHz != fs_kHz || psDec->fs_API_hz != fs_API_Hz ) { + /* Initialize the resampler for dec_API.c preparing resampling from fs_kHz to API_fs_Hz */ + ret += silk_resampler_init( &psDec->resampler_state, silk_SMULBB( fs_kHz, 1000 ), fs_API_Hz, 0 ); + + psDec->fs_API_hz = fs_API_Hz; + } + + if( psDec->fs_kHz != fs_kHz || frame_length != psDec->frame_length ) { + if( fs_kHz == 8 ) { + if( psDec->nb_subfr == MAX_NB_SUBFR ) { + psDec->pitch_contour_iCDF = silk_pitch_contour_NB_iCDF; + } else { + psDec->pitch_contour_iCDF = silk_pitch_contour_10_ms_NB_iCDF; + } + } else { + if( psDec->nb_subfr == MAX_NB_SUBFR ) { + psDec->pitch_contour_iCDF = silk_pitch_contour_iCDF; + } else { + psDec->pitch_contour_iCDF = silk_pitch_contour_10_ms_iCDF; + } + } + if( psDec->fs_kHz != fs_kHz ) { + psDec->ltp_mem_length = silk_SMULBB( LTP_MEM_LENGTH_MS, fs_kHz ); + if( fs_kHz == 8 || fs_kHz == 12 ) { + psDec->LPC_order = MIN_LPC_ORDER; + psDec->psNLSF_CB = &silk_NLSF_CB_NB_MB; + } else { + psDec->LPC_order = MAX_LPC_ORDER; + psDec->psNLSF_CB = &silk_NLSF_CB_WB; + } + if( fs_kHz == 16 ) { + psDec->pitch_lag_low_bits_iCDF = silk_uniform8_iCDF; + } else if( fs_kHz == 12 ) { + psDec->pitch_lag_low_bits_iCDF = silk_uniform6_iCDF; + } else if( fs_kHz == 8 ) { + psDec->pitch_lag_low_bits_iCDF = silk_uniform4_iCDF; + } else { + /* unsupported sampling rate */ + celt_assert( 0 ); + } + psDec->first_frame_after_reset = 1; + psDec->lagPrev = 100; + psDec->LastGainIndex = 10; + psDec->prevSignalType = TYPE_NO_VOICE_ACTIVITY; + silk_memset( psDec->outBuf, 0, sizeof(psDec->outBuf)); + silk_memset( psDec->sLPC_Q14_buf, 0, sizeof(psDec->sLPC_Q14_buf) ); + } + + psDec->fs_kHz = fs_kHz; + psDec->frame_length = frame_length; + } + + /* Check that settings are valid */ + celt_assert( psDec->frame_length > 0 && psDec->frame_length <= MAX_FRAME_LENGTH ); + + return ret; +} + diff --git a/components/opus/libopus/silk/define.h b/components/opus/libopus/silk/define.h new file mode 100644 index 0000000..247cb0b --- /dev/null +++ b/components/opus/libopus/silk/define.h @@ -0,0 +1,234 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifndef SILK_DEFINE_H +#define SILK_DEFINE_H + +#include "errors.h" +#include "typedef.h" + +#ifdef __cplusplus +extern "C" +{ +#endif + +/* Max number of encoder channels (1/2) */ +#define ENCODER_NUM_CHANNELS 2 +/* Number of decoder channels (1/2) */ +#define DECODER_NUM_CHANNELS 2 + +#define MAX_FRAMES_PER_PACKET 3 + +/* Limits on bitrate */ +#define MIN_TARGET_RATE_BPS 5000 +#define MAX_TARGET_RATE_BPS 80000 + +/* LBRR thresholds */ +#define LBRR_NB_MIN_RATE_BPS 12000 +#define LBRR_MB_MIN_RATE_BPS 14000 +#define LBRR_WB_MIN_RATE_BPS 16000 + +/* DTX settings */ +#define NB_SPEECH_FRAMES_BEFORE_DTX 10 /* eq 200 ms */ +#define MAX_CONSECUTIVE_DTX 20 /* eq 400 ms */ +#define DTX_ACTIVITY_THRESHOLD 0.1f + +/* VAD decision */ +#define VAD_NO_DECISION -1 +#define VAD_NO_ACTIVITY 0 +#define VAD_ACTIVITY 1 + +/* Maximum sampling frequency */ +#define MAX_FS_KHZ 16 +#define MAX_API_FS_KHZ 48 + +/* Signal types */ +#define TYPE_NO_VOICE_ACTIVITY 0 +#define TYPE_UNVOICED 1 +#define TYPE_VOICED 2 + +/* Conditional coding types */ +#define CODE_INDEPENDENTLY 0 +#define CODE_INDEPENDENTLY_NO_LTP_SCALING 1 +#define CODE_CONDITIONALLY 2 + +/* Settings for stereo processing */ +#define STEREO_QUANT_TAB_SIZE 16 +#define STEREO_QUANT_SUB_STEPS 5 +#define STEREO_INTERP_LEN_MS 8 /* must be even */ +#define STEREO_RATIO_SMOOTH_COEF 0.01 /* smoothing coef for signal norms and stereo width */ + +/* Range of pitch lag estimates */ +#define PITCH_EST_MIN_LAG_MS 2 /* 2 ms -> 500 Hz */ +#define PITCH_EST_MAX_LAG_MS 18 /* 18 ms -> 56 Hz */ + +/* Maximum number of subframes */ +#define MAX_NB_SUBFR 4 + +/* Number of samples per frame */ +#define LTP_MEM_LENGTH_MS 20 +#define SUB_FRAME_LENGTH_MS 5 +#define MAX_SUB_FRAME_LENGTH ( SUB_FRAME_LENGTH_MS * MAX_FS_KHZ ) +#define MAX_FRAME_LENGTH_MS ( SUB_FRAME_LENGTH_MS * MAX_NB_SUBFR ) +#define MAX_FRAME_LENGTH ( MAX_FRAME_LENGTH_MS * MAX_FS_KHZ ) + +/* Milliseconds of lookahead for pitch analysis */ +#define LA_PITCH_MS 2 +#define LA_PITCH_MAX ( LA_PITCH_MS * MAX_FS_KHZ ) + +/* Order of LPC used in find pitch */ +#define MAX_FIND_PITCH_LPC_ORDER 16 + +/* Length of LPC window used in find pitch */ +#define FIND_PITCH_LPC_WIN_MS ( 20 + (LA_PITCH_MS << 1) ) +#define FIND_PITCH_LPC_WIN_MS_2_SF ( 10 + (LA_PITCH_MS << 1) ) +#define FIND_PITCH_LPC_WIN_MAX ( FIND_PITCH_LPC_WIN_MS * MAX_FS_KHZ ) + +/* Milliseconds of lookahead for noise shape analysis */ +#define LA_SHAPE_MS 5 +#define LA_SHAPE_MAX ( LA_SHAPE_MS * MAX_FS_KHZ ) + +/* Maximum length of LPC window used in noise shape analysis */ +#define SHAPE_LPC_WIN_MAX ( 15 * MAX_FS_KHZ ) + +/* dB level of lowest gain quantization level */ +#define MIN_QGAIN_DB 2 +/* dB level of highest gain quantization level */ +#define MAX_QGAIN_DB 88 +/* Number of gain quantization levels */ +#define N_LEVELS_QGAIN 64 +/* Max increase in gain quantization index */ +#define MAX_DELTA_GAIN_QUANT 36 +/* Max decrease in gain quantization index */ +#define MIN_DELTA_GAIN_QUANT -4 + +/* Quantization offsets (multiples of 4) */ +#define OFFSET_VL_Q10 32 +#define OFFSET_VH_Q10 100 +#define OFFSET_UVL_Q10 100 +#define OFFSET_UVH_Q10 240 + +#define QUANT_LEVEL_ADJUST_Q10 80 + +/* Maximum numbers of iterations used to stabilize an LPC vector */ +#define MAX_LPC_STABILIZE_ITERATIONS 16 +#define MAX_PREDICTION_POWER_GAIN 1e4f +#define MAX_PREDICTION_POWER_GAIN_AFTER_RESET 1e2f + +#define MAX_LPC_ORDER 16 +#define MIN_LPC_ORDER 10 + +/* Find Pred Coef defines */ +#define LTP_ORDER 5 + +/* LTP quantization settings */ +#define NB_LTP_CBKS 3 + +/* Flag to use harmonic noise shaping */ +#define USE_HARM_SHAPING 1 + +/* Max LPC order of noise shaping filters */ +#define MAX_SHAPE_LPC_ORDER 24 + +#define HARM_SHAPE_FIR_TAPS 3 + +/* Maximum number of delayed decision states */ +#define MAX_DEL_DEC_STATES 4 + +#define LTP_BUF_LENGTH 512 +#define LTP_MASK ( LTP_BUF_LENGTH - 1 ) + +#define DECISION_DELAY 40 + +/* Number of subframes for excitation entropy coding */ +#define SHELL_CODEC_FRAME_LENGTH 16 +#define LOG2_SHELL_CODEC_FRAME_LENGTH 4 +#define MAX_NB_SHELL_BLOCKS ( MAX_FRAME_LENGTH / SHELL_CODEC_FRAME_LENGTH ) + +/* Number of rate levels, for entropy coding of excitation */ +#define N_RATE_LEVELS 10 + +/* Maximum sum of pulses per shell coding frame */ +#define SILK_MAX_PULSES 16 + +#define MAX_MATRIX_SIZE MAX_LPC_ORDER /* Max of LPC Order and LTP order */ + +# define NSQ_LPC_BUF_LENGTH MAX_LPC_ORDER + +/***************************/ +/* Voice activity detector */ +/***************************/ +#define VAD_N_BANDS 4 + +#define VAD_INTERNAL_SUBFRAMES_LOG2 2 +#define VAD_INTERNAL_SUBFRAMES ( 1 << VAD_INTERNAL_SUBFRAMES_LOG2 ) + +#define VAD_NOISE_LEVEL_SMOOTH_COEF_Q16 1024 /* Must be < 4096 */ +#define VAD_NOISE_LEVELS_BIAS 50 + +/* Sigmoid settings */ +#define VAD_NEGATIVE_OFFSET_Q5 128 /* sigmoid is 0 at -128 */ +#define VAD_SNR_FACTOR_Q16 45000 + +/* smoothing for SNR measurement */ +#define VAD_SNR_SMOOTH_COEF_Q18 4096 + +/* Size of the piecewise linear cosine approximation table for the LSFs */ +#define LSF_COS_TAB_SZ_FIX 128 + +/******************/ +/* NLSF quantizer */ +/******************/ +#define NLSF_W_Q 2 +#define NLSF_VQ_MAX_VECTORS 32 +#define NLSF_QUANT_MAX_AMPLITUDE 4 +#define NLSF_QUANT_MAX_AMPLITUDE_EXT 10 +#define NLSF_QUANT_LEVEL_ADJ 0.1 +#define NLSF_QUANT_DEL_DEC_STATES_LOG2 2 +#define NLSF_QUANT_DEL_DEC_STATES ( 1 << NLSF_QUANT_DEL_DEC_STATES_LOG2 ) + +/* Transition filtering for mode switching */ +#define TRANSITION_TIME_MS 5120 /* 5120 = 64 * FRAME_LENGTH_MS * ( TRANSITION_INT_NUM - 1 ) = 64*(20*4)*/ +#define TRANSITION_NB 3 /* Hardcoded in tables */ +#define TRANSITION_NA 2 /* Hardcoded in tables */ +#define TRANSITION_INT_NUM 5 /* Hardcoded in tables */ +#define TRANSITION_FRAMES ( TRANSITION_TIME_MS / MAX_FRAME_LENGTH_MS ) +#define TRANSITION_INT_STEPS ( TRANSITION_FRAMES / ( TRANSITION_INT_NUM - 1 ) ) + +/* BWE factors to apply after packet loss */ +#define BWE_AFTER_LOSS_Q16 63570 + +/* Defines for CN generation */ +#define CNG_BUF_MASK_MAX 255 /* 2^floor(log2(MAX_FRAME_LENGTH))-1 */ +#define CNG_GAIN_SMTH_Q16 4634 /* 0.25^(1/4) */ +#define CNG_NLSF_SMTH_Q16 16348 /* 0.25 */ + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/components/opus/libopus/silk/enc_API.c b/components/opus/libopus/silk/enc_API.c new file mode 100644 index 0000000..55a33f3 --- /dev/null +++ b/components/opus/libopus/silk/enc_API.c @@ -0,0 +1,576 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif +#include "define.h" +#include "API.h" +#include "control.h" +#include "typedef.h" +#include "stack_alloc.h" +#include "structs.h" +#include "tuning_parameters.h" +#ifdef FIXED_POINT +#include "main_FIX.h" +#else +#include "main_FLP.h" +#endif + +/***************************************/ +/* Read control structure from encoder */ +/***************************************/ +static opus_int silk_QueryEncoder( /* O Returns error code */ + const void *encState, /* I State */ + silk_EncControlStruct *encStatus /* O Encoder Status */ +); + +/****************************************/ +/* Encoder functions */ +/****************************************/ + +opus_int silk_Get_Encoder_Size( /* O Returns error code */ + opus_int *encSizeBytes /* O Number of bytes in SILK encoder state */ +) +{ + opus_int ret = SILK_NO_ERROR; + + *encSizeBytes = sizeof( silk_encoder ); + + return ret; +} + +/*************************/ +/* Init or Reset encoder */ +/*************************/ +opus_int silk_InitEncoder( /* O Returns error code */ + void *encState, /* I/O State */ + int arch, /* I Run-time architecture */ + silk_EncControlStruct *encStatus /* O Encoder Status */ +) +{ + silk_encoder *psEnc; + opus_int n, ret = SILK_NO_ERROR; + + psEnc = (silk_encoder *)encState; + + /* Reset encoder */ + silk_memset( psEnc, 0, sizeof( silk_encoder ) ); + for( n = 0; n < ENCODER_NUM_CHANNELS; n++ ) { + if( ret += silk_init_encoder( &psEnc->state_Fxx[ n ], arch ) ) { + celt_assert( 0 ); + } + } + + psEnc->nChannelsAPI = 1; + psEnc->nChannelsInternal = 1; + + /* Read control structure */ + if( ret += silk_QueryEncoder( encState, encStatus ) ) { + celt_assert( 0 ); + } + + return ret; +} + +/***************************************/ +/* Read control structure from encoder */ +/***************************************/ +static opus_int silk_QueryEncoder( /* O Returns error code */ + const void *encState, /* I State */ + silk_EncControlStruct *encStatus /* O Encoder Status */ +) +{ + opus_int ret = SILK_NO_ERROR; + silk_encoder_state_Fxx *state_Fxx; + silk_encoder *psEnc = (silk_encoder *)encState; + + state_Fxx = psEnc->state_Fxx; + + encStatus->nChannelsAPI = psEnc->nChannelsAPI; + encStatus->nChannelsInternal = psEnc->nChannelsInternal; + encStatus->API_sampleRate = state_Fxx[ 0 ].sCmn.API_fs_Hz; + encStatus->maxInternalSampleRate = state_Fxx[ 0 ].sCmn.maxInternal_fs_Hz; + encStatus->minInternalSampleRate = state_Fxx[ 0 ].sCmn.minInternal_fs_Hz; + encStatus->desiredInternalSampleRate = state_Fxx[ 0 ].sCmn.desiredInternal_fs_Hz; + encStatus->payloadSize_ms = state_Fxx[ 0 ].sCmn.PacketSize_ms; + encStatus->bitRate = state_Fxx[ 0 ].sCmn.TargetRate_bps; + encStatus->packetLossPercentage = state_Fxx[ 0 ].sCmn.PacketLoss_perc; + encStatus->complexity = state_Fxx[ 0 ].sCmn.Complexity; + encStatus->useInBandFEC = state_Fxx[ 0 ].sCmn.useInBandFEC; + encStatus->useDTX = state_Fxx[ 0 ].sCmn.useDTX; + encStatus->useCBR = state_Fxx[ 0 ].sCmn.useCBR; + encStatus->internalSampleRate = silk_SMULBB( state_Fxx[ 0 ].sCmn.fs_kHz, 1000 ); + encStatus->allowBandwidthSwitch = state_Fxx[ 0 ].sCmn.allow_bandwidth_switch; + encStatus->inWBmodeWithoutVariableLP = state_Fxx[ 0 ].sCmn.fs_kHz == 16 && state_Fxx[ 0 ].sCmn.sLP.mode == 0; + + return ret; +} + + +/**************************/ +/* Encode frame with Silk */ +/**************************/ +/* Note: if prefillFlag is set, the input must contain 10 ms of audio, irrespective of what */ +/* encControl->payloadSize_ms is set to */ +opus_int silk_Encode( /* O Returns error code */ + void *encState, /* I/O State */ + silk_EncControlStruct *encControl, /* I Control status */ + const opus_int16 *samplesIn, /* I Speech sample input vector */ + opus_int nSamplesIn, /* I Number of samples in input vector */ + ec_enc *psRangeEnc, /* I/O Compressor data structure */ + opus_int32 *nBytesOut, /* I/O Number of bytes in payload (input: Max bytes) */ + const opus_int prefillFlag, /* I Flag to indicate prefilling buffers no coding */ + opus_int activity /* I Decision of Opus voice activity detector */ +) +{ + opus_int n, i, nBits, flags, tmp_payloadSize_ms = 0, tmp_complexity = 0, ret = 0; + opus_int nSamplesToBuffer, nSamplesToBufferMax, nBlocksOf10ms; + opus_int nSamplesFromInput = 0, nSamplesFromInputMax; + opus_int speech_act_thr_for_switch_Q8; + opus_int32 TargetRate_bps, MStargetRates_bps[ 2 ], channelRate_bps, LBRR_symbol, sum; + silk_encoder *psEnc = ( silk_encoder * )encState; + VARDECL( opus_int16, buf ); + opus_int transition, curr_block, tot_blocks; + SAVE_STACK; + + if (encControl->reducedDependency) + { + psEnc->state_Fxx[0].sCmn.first_frame_after_reset = 1; + psEnc->state_Fxx[1].sCmn.first_frame_after_reset = 1; + } + psEnc->state_Fxx[ 0 ].sCmn.nFramesEncoded = psEnc->state_Fxx[ 1 ].sCmn.nFramesEncoded = 0; + + /* Check values in encoder control structure */ + if( ( ret = check_control_input( encControl ) ) != 0 ) { + celt_assert( 0 ); + RESTORE_STACK; + return ret; + } + + encControl->switchReady = 0; + + if( encControl->nChannelsInternal > psEnc->nChannelsInternal ) { + /* Mono -> Stereo transition: init state of second channel and stereo state */ + ret += silk_init_encoder( &psEnc->state_Fxx[ 1 ], psEnc->state_Fxx[ 0 ].sCmn.arch ); + silk_memset( psEnc->sStereo.pred_prev_Q13, 0, sizeof( psEnc->sStereo.pred_prev_Q13 ) ); + silk_memset( psEnc->sStereo.sSide, 0, sizeof( psEnc->sStereo.sSide ) ); + psEnc->sStereo.mid_side_amp_Q0[ 0 ] = 0; + psEnc->sStereo.mid_side_amp_Q0[ 1 ] = 1; + psEnc->sStereo.mid_side_amp_Q0[ 2 ] = 0; + psEnc->sStereo.mid_side_amp_Q0[ 3 ] = 1; + psEnc->sStereo.width_prev_Q14 = 0; + psEnc->sStereo.smth_width_Q14 = SILK_FIX_CONST( 1, 14 ); + if( psEnc->nChannelsAPI == 2 ) { + silk_memcpy( &psEnc->state_Fxx[ 1 ].sCmn.resampler_state, &psEnc->state_Fxx[ 0 ].sCmn.resampler_state, sizeof( silk_resampler_state_struct ) ); + silk_memcpy( &psEnc->state_Fxx[ 1 ].sCmn.In_HP_State, &psEnc->state_Fxx[ 0 ].sCmn.In_HP_State, sizeof( psEnc->state_Fxx[ 1 ].sCmn.In_HP_State ) ); + } + } + + transition = (encControl->payloadSize_ms != psEnc->state_Fxx[ 0 ].sCmn.PacketSize_ms) || (psEnc->nChannelsInternal != encControl->nChannelsInternal); + + psEnc->nChannelsAPI = encControl->nChannelsAPI; + psEnc->nChannelsInternal = encControl->nChannelsInternal; + + nBlocksOf10ms = silk_DIV32( 100 * nSamplesIn, encControl->API_sampleRate ); + tot_blocks = ( nBlocksOf10ms > 1 ) ? nBlocksOf10ms >> 1 : 1; + curr_block = 0; + if( prefillFlag ) { + silk_LP_state save_LP; + /* Only accept input length of 10 ms */ + if( nBlocksOf10ms != 1 ) { + celt_assert( 0 ); + RESTORE_STACK; + return SILK_ENC_INPUT_INVALID_NO_OF_SAMPLES; + } + if ( prefillFlag == 2 ) { + save_LP = psEnc->state_Fxx[ 0 ].sCmn.sLP; + /* Save the sampling rate so the bandwidth switching code can keep handling transitions. */ + save_LP.saved_fs_kHz = psEnc->state_Fxx[ 0 ].sCmn.fs_kHz; + } + /* Reset Encoder */ + for( n = 0; n < encControl->nChannelsInternal; n++ ) { + ret = silk_init_encoder( &psEnc->state_Fxx[ n ], psEnc->state_Fxx[ n ].sCmn.arch ); + /* Restore the variable LP state. */ + if ( prefillFlag == 2 ) { + psEnc->state_Fxx[ n ].sCmn.sLP = save_LP; + } + celt_assert( !ret ); + } + tmp_payloadSize_ms = encControl->payloadSize_ms; + encControl->payloadSize_ms = 10; + tmp_complexity = encControl->complexity; + encControl->complexity = 0; + for( n = 0; n < encControl->nChannelsInternal; n++ ) { + psEnc->state_Fxx[ n ].sCmn.controlled_since_last_payload = 0; + psEnc->state_Fxx[ n ].sCmn.prefillFlag = 1; + } + } else { + /* Only accept input lengths that are a multiple of 10 ms */ + if( nBlocksOf10ms * encControl->API_sampleRate != 100 * nSamplesIn || nSamplesIn < 0 ) { + celt_assert( 0 ); + RESTORE_STACK; + return SILK_ENC_INPUT_INVALID_NO_OF_SAMPLES; + } + /* Make sure no more than one packet can be produced */ + if( 1000 * (opus_int32)nSamplesIn > encControl->payloadSize_ms * encControl->API_sampleRate ) { + celt_assert( 0 ); + RESTORE_STACK; + return SILK_ENC_INPUT_INVALID_NO_OF_SAMPLES; + } + } + + for( n = 0; n < encControl->nChannelsInternal; n++ ) { + /* Force the side channel to the same rate as the mid */ + opus_int force_fs_kHz = (n==1) ? psEnc->state_Fxx[0].sCmn.fs_kHz : 0; + if( ( ret = silk_control_encoder( &psEnc->state_Fxx[ n ], encControl, psEnc->allowBandwidthSwitch, n, force_fs_kHz ) ) != 0 ) { + silk_assert( 0 ); + RESTORE_STACK; + return ret; + } + if( psEnc->state_Fxx[n].sCmn.first_frame_after_reset || transition ) { + for( i = 0; i < psEnc->state_Fxx[ 0 ].sCmn.nFramesPerPacket; i++ ) { + psEnc->state_Fxx[ n ].sCmn.LBRR_flags[ i ] = 0; + } + } + psEnc->state_Fxx[ n ].sCmn.inDTX = psEnc->state_Fxx[ n ].sCmn.useDTX; + } + celt_assert( encControl->nChannelsInternal == 1 || psEnc->state_Fxx[ 0 ].sCmn.fs_kHz == psEnc->state_Fxx[ 1 ].sCmn.fs_kHz ); + + /* Input buffering/resampling and encoding */ + nSamplesToBufferMax = + 10 * nBlocksOf10ms * psEnc->state_Fxx[ 0 ].sCmn.fs_kHz; + nSamplesFromInputMax = + silk_DIV32_16( nSamplesToBufferMax * + psEnc->state_Fxx[ 0 ].sCmn.API_fs_Hz, + psEnc->state_Fxx[ 0 ].sCmn.fs_kHz * 1000 ); + ALLOC( buf, nSamplesFromInputMax, opus_int16 ); + while( 1 ) { + nSamplesToBuffer = psEnc->state_Fxx[ 0 ].sCmn.frame_length - psEnc->state_Fxx[ 0 ].sCmn.inputBufIx; + nSamplesToBuffer = silk_min( nSamplesToBuffer, nSamplesToBufferMax ); + nSamplesFromInput = silk_DIV32_16( nSamplesToBuffer * psEnc->state_Fxx[ 0 ].sCmn.API_fs_Hz, psEnc->state_Fxx[ 0 ].sCmn.fs_kHz * 1000 ); + /* Resample and write to buffer */ + if( encControl->nChannelsAPI == 2 && encControl->nChannelsInternal == 2 ) { + opus_int id = psEnc->state_Fxx[ 0 ].sCmn.nFramesEncoded; + for( n = 0; n < nSamplesFromInput; n++ ) { + buf[ n ] = samplesIn[ 2 * n ]; + } + /* Making sure to start both resamplers from the same state when switching from mono to stereo */ + if( psEnc->nPrevChannelsInternal == 1 && id==0 ) { + silk_memcpy( &psEnc->state_Fxx[ 1 ].sCmn.resampler_state, &psEnc->state_Fxx[ 0 ].sCmn.resampler_state, sizeof(psEnc->state_Fxx[ 1 ].sCmn.resampler_state)); + } + + ret += silk_resampler( &psEnc->state_Fxx[ 0 ].sCmn.resampler_state, + &psEnc->state_Fxx[ 0 ].sCmn.inputBuf[ psEnc->state_Fxx[ 0 ].sCmn.inputBufIx + 2 ], buf, nSamplesFromInput ); + psEnc->state_Fxx[ 0 ].sCmn.inputBufIx += nSamplesToBuffer; + + nSamplesToBuffer = psEnc->state_Fxx[ 1 ].sCmn.frame_length - psEnc->state_Fxx[ 1 ].sCmn.inputBufIx; + nSamplesToBuffer = silk_min( nSamplesToBuffer, 10 * nBlocksOf10ms * psEnc->state_Fxx[ 1 ].sCmn.fs_kHz ); + for( n = 0; n < nSamplesFromInput; n++ ) { + buf[ n ] = samplesIn[ 2 * n + 1 ]; + } + ret += silk_resampler( &psEnc->state_Fxx[ 1 ].sCmn.resampler_state, + &psEnc->state_Fxx[ 1 ].sCmn.inputBuf[ psEnc->state_Fxx[ 1 ].sCmn.inputBufIx + 2 ], buf, nSamplesFromInput ); + + psEnc->state_Fxx[ 1 ].sCmn.inputBufIx += nSamplesToBuffer; + } else if( encControl->nChannelsAPI == 2 && encControl->nChannelsInternal == 1 ) { + /* Combine left and right channels before resampling */ + for( n = 0; n < nSamplesFromInput; n++ ) { + sum = samplesIn[ 2 * n ] + samplesIn[ 2 * n + 1 ]; + buf[ n ] = (opus_int16)silk_RSHIFT_ROUND( sum, 1 ); + } + ret += silk_resampler( &psEnc->state_Fxx[ 0 ].sCmn.resampler_state, + &psEnc->state_Fxx[ 0 ].sCmn.inputBuf[ psEnc->state_Fxx[ 0 ].sCmn.inputBufIx + 2 ], buf, nSamplesFromInput ); + /* On the first mono frame, average the results for the two resampler states */ + if( psEnc->nPrevChannelsInternal == 2 && psEnc->state_Fxx[ 0 ].sCmn.nFramesEncoded == 0 ) { + ret += silk_resampler( &psEnc->state_Fxx[ 1 ].sCmn.resampler_state, + &psEnc->state_Fxx[ 1 ].sCmn.inputBuf[ psEnc->state_Fxx[ 1 ].sCmn.inputBufIx + 2 ], buf, nSamplesFromInput ); + for( n = 0; n < psEnc->state_Fxx[ 0 ].sCmn.frame_length; n++ ) { + psEnc->state_Fxx[ 0 ].sCmn.inputBuf[ psEnc->state_Fxx[ 0 ].sCmn.inputBufIx+n+2 ] = + silk_RSHIFT(psEnc->state_Fxx[ 0 ].sCmn.inputBuf[ psEnc->state_Fxx[ 0 ].sCmn.inputBufIx+n+2 ] + + psEnc->state_Fxx[ 1 ].sCmn.inputBuf[ psEnc->state_Fxx[ 1 ].sCmn.inputBufIx+n+2 ], 1); + } + } + psEnc->state_Fxx[ 0 ].sCmn.inputBufIx += nSamplesToBuffer; + } else { + celt_assert( encControl->nChannelsAPI == 1 && encControl->nChannelsInternal == 1 ); + silk_memcpy(buf, samplesIn, nSamplesFromInput*sizeof(opus_int16)); + ret += silk_resampler( &psEnc->state_Fxx[ 0 ].sCmn.resampler_state, + &psEnc->state_Fxx[ 0 ].sCmn.inputBuf[ psEnc->state_Fxx[ 0 ].sCmn.inputBufIx + 2 ], buf, nSamplesFromInput ); + psEnc->state_Fxx[ 0 ].sCmn.inputBufIx += nSamplesToBuffer; + } + + samplesIn += nSamplesFromInput * encControl->nChannelsAPI; + nSamplesIn -= nSamplesFromInput; + + /* Default */ + psEnc->allowBandwidthSwitch = 0; + + /* Silk encoder */ + if( psEnc->state_Fxx[ 0 ].sCmn.inputBufIx >= psEnc->state_Fxx[ 0 ].sCmn.frame_length ) { + /* Enough data in input buffer, so encode */ + celt_assert( psEnc->state_Fxx[ 0 ].sCmn.inputBufIx == psEnc->state_Fxx[ 0 ].sCmn.frame_length ); + celt_assert( encControl->nChannelsInternal == 1 || psEnc->state_Fxx[ 1 ].sCmn.inputBufIx == psEnc->state_Fxx[ 1 ].sCmn.frame_length ); + + /* Deal with LBRR data */ + if( psEnc->state_Fxx[ 0 ].sCmn.nFramesEncoded == 0 && !prefillFlag ) { + /* Create space at start of payload for VAD and FEC flags */ + opus_uint8 iCDF[ 2 ] = { 0, 0 }; + iCDF[ 0 ] = 256 - silk_RSHIFT( 256, ( psEnc->state_Fxx[ 0 ].sCmn.nFramesPerPacket + 1 ) * encControl->nChannelsInternal ); + ec_enc_icdf( psRangeEnc, 0, iCDF, 8 ); + + /* Encode any LBRR data from previous packet */ + /* Encode LBRR flags */ + for( n = 0; n < encControl->nChannelsInternal; n++ ) { + LBRR_symbol = 0; + for( i = 0; i < psEnc->state_Fxx[ n ].sCmn.nFramesPerPacket; i++ ) { + LBRR_symbol |= silk_LSHIFT( psEnc->state_Fxx[ n ].sCmn.LBRR_flags[ i ], i ); + } + psEnc->state_Fxx[ n ].sCmn.LBRR_flag = LBRR_symbol > 0 ? 1 : 0; + if( LBRR_symbol && psEnc->state_Fxx[ n ].sCmn.nFramesPerPacket > 1 ) { + ec_enc_icdf( psRangeEnc, LBRR_symbol - 1, silk_LBRR_flags_iCDF_ptr[ psEnc->state_Fxx[ n ].sCmn.nFramesPerPacket - 2 ], 8 ); + } + } + + /* Code LBRR indices and excitation signals */ + for( i = 0; i < psEnc->state_Fxx[ 0 ].sCmn.nFramesPerPacket; i++ ) { + for( n = 0; n < encControl->nChannelsInternal; n++ ) { + if( psEnc->state_Fxx[ n ].sCmn.LBRR_flags[ i ] ) { + opus_int condCoding; + + if( encControl->nChannelsInternal == 2 && n == 0 ) { + silk_stereo_encode_pred( psRangeEnc, psEnc->sStereo.predIx[ i ] ); + /* For LBRR data there's no need to code the mid-only flag if the side-channel LBRR flag is set */ + if( psEnc->state_Fxx[ 1 ].sCmn.LBRR_flags[ i ] == 0 ) { + silk_stereo_encode_mid_only( psRangeEnc, psEnc->sStereo.mid_only_flags[ i ] ); + } + } + /* Use conditional coding if previous frame available */ + if( i > 0 && psEnc->state_Fxx[ n ].sCmn.LBRR_flags[ i - 1 ] ) { + condCoding = CODE_CONDITIONALLY; + } else { + condCoding = CODE_INDEPENDENTLY; + } + silk_encode_indices( &psEnc->state_Fxx[ n ].sCmn, psRangeEnc, i, 1, condCoding ); + silk_encode_pulses( psRangeEnc, psEnc->state_Fxx[ n ].sCmn.indices_LBRR[i].signalType, psEnc->state_Fxx[ n ].sCmn.indices_LBRR[i].quantOffsetType, + psEnc->state_Fxx[ n ].sCmn.pulses_LBRR[ i ], psEnc->state_Fxx[ n ].sCmn.frame_length ); + } + } + } + + /* Reset LBRR flags */ + for( n = 0; n < encControl->nChannelsInternal; n++ ) { + silk_memset( psEnc->state_Fxx[ n ].sCmn.LBRR_flags, 0, sizeof( psEnc->state_Fxx[ n ].sCmn.LBRR_flags ) ); + } + + psEnc->nBitsUsedLBRR = ec_tell( psRangeEnc ); + } + + silk_HP_variable_cutoff( psEnc->state_Fxx ); + + /* Total target bits for packet */ + nBits = silk_DIV32_16( silk_MUL( encControl->bitRate, encControl->payloadSize_ms ), 1000 ); + /* Subtract bits used for LBRR */ + if( !prefillFlag ) { + nBits -= psEnc->nBitsUsedLBRR; + } + /* Divide by number of uncoded frames left in packet */ + nBits = silk_DIV32_16( nBits, psEnc->state_Fxx[ 0 ].sCmn.nFramesPerPacket ); + /* Convert to bits/second */ + if( encControl->payloadSize_ms == 10 ) { + TargetRate_bps = silk_SMULBB( nBits, 100 ); + } else { + TargetRate_bps = silk_SMULBB( nBits, 50 ); + } + /* Subtract fraction of bits in excess of target in previous frames and packets */ + TargetRate_bps -= silk_DIV32_16( silk_MUL( psEnc->nBitsExceeded, 1000 ), BITRESERVOIR_DECAY_TIME_MS ); + if( !prefillFlag && psEnc->state_Fxx[ 0 ].sCmn.nFramesEncoded > 0 ) { + /* Compare actual vs target bits so far in this packet */ + opus_int32 bitsBalance = ec_tell( psRangeEnc ) - psEnc->nBitsUsedLBRR - nBits * psEnc->state_Fxx[ 0 ].sCmn.nFramesEncoded; + TargetRate_bps -= silk_DIV32_16( silk_MUL( bitsBalance, 1000 ), BITRESERVOIR_DECAY_TIME_MS ); + } + /* Never exceed input bitrate */ + TargetRate_bps = silk_LIMIT( TargetRate_bps, encControl->bitRate, 5000 ); + + /* Convert Left/Right to Mid/Side */ + if( encControl->nChannelsInternal == 2 ) { + silk_stereo_LR_to_MS( &psEnc->sStereo, &psEnc->state_Fxx[ 0 ].sCmn.inputBuf[ 2 ], &psEnc->state_Fxx[ 1 ].sCmn.inputBuf[ 2 ], + psEnc->sStereo.predIx[ psEnc->state_Fxx[ 0 ].sCmn.nFramesEncoded ], &psEnc->sStereo.mid_only_flags[ psEnc->state_Fxx[ 0 ].sCmn.nFramesEncoded ], + MStargetRates_bps, TargetRate_bps, psEnc->state_Fxx[ 0 ].sCmn.speech_activity_Q8, encControl->toMono, + psEnc->state_Fxx[ 0 ].sCmn.fs_kHz, psEnc->state_Fxx[ 0 ].sCmn.frame_length ); + if( psEnc->sStereo.mid_only_flags[ psEnc->state_Fxx[ 0 ].sCmn.nFramesEncoded ] == 0 ) { + /* Reset side channel encoder memory for first frame with side coding */ + if( psEnc->prev_decode_only_middle == 1 ) { + silk_memset( &psEnc->state_Fxx[ 1 ].sShape, 0, sizeof( psEnc->state_Fxx[ 1 ].sShape ) ); + silk_memset( &psEnc->state_Fxx[ 1 ].sCmn.sNSQ, 0, sizeof( psEnc->state_Fxx[ 1 ].sCmn.sNSQ ) ); + silk_memset( psEnc->state_Fxx[ 1 ].sCmn.prev_NLSFq_Q15, 0, sizeof( psEnc->state_Fxx[ 1 ].sCmn.prev_NLSFq_Q15 ) ); + silk_memset( &psEnc->state_Fxx[ 1 ].sCmn.sLP.In_LP_State, 0, sizeof( psEnc->state_Fxx[ 1 ].sCmn.sLP.In_LP_State ) ); + psEnc->state_Fxx[ 1 ].sCmn.prevLag = 100; + psEnc->state_Fxx[ 1 ].sCmn.sNSQ.lagPrev = 100; + psEnc->state_Fxx[ 1 ].sShape.LastGainIndex = 10; + psEnc->state_Fxx[ 1 ].sCmn.prevSignalType = TYPE_NO_VOICE_ACTIVITY; + psEnc->state_Fxx[ 1 ].sCmn.sNSQ.prev_gain_Q16 = 65536; + psEnc->state_Fxx[ 1 ].sCmn.first_frame_after_reset = 1; + } + silk_encode_do_VAD_Fxx( &psEnc->state_Fxx[ 1 ], activity ); + } else { + psEnc->state_Fxx[ 1 ].sCmn.VAD_flags[ psEnc->state_Fxx[ 0 ].sCmn.nFramesEncoded ] = 0; + } + if( !prefillFlag ) { + silk_stereo_encode_pred( psRangeEnc, psEnc->sStereo.predIx[ psEnc->state_Fxx[ 0 ].sCmn.nFramesEncoded ] ); + if( psEnc->state_Fxx[ 1 ].sCmn.VAD_flags[ psEnc->state_Fxx[ 0 ].sCmn.nFramesEncoded ] == 0 ) { + silk_stereo_encode_mid_only( psRangeEnc, psEnc->sStereo.mid_only_flags[ psEnc->state_Fxx[ 0 ].sCmn.nFramesEncoded ] ); + } + } + } else { + /* Buffering */ + silk_memcpy( psEnc->state_Fxx[ 0 ].sCmn.inputBuf, psEnc->sStereo.sMid, 2 * sizeof( opus_int16 ) ); + silk_memcpy( psEnc->sStereo.sMid, &psEnc->state_Fxx[ 0 ].sCmn.inputBuf[ psEnc->state_Fxx[ 0 ].sCmn.frame_length ], 2 * sizeof( opus_int16 ) ); + } + silk_encode_do_VAD_Fxx( &psEnc->state_Fxx[ 0 ], activity ); + + /* Encode */ + for( n = 0; n < encControl->nChannelsInternal; n++ ) { + opus_int maxBits, useCBR; + + /* Handling rate constraints */ + maxBits = encControl->maxBits; + if( tot_blocks == 2 && curr_block == 0 ) { + maxBits = maxBits * 3 / 5; + } else if( tot_blocks == 3 ) { + if( curr_block == 0 ) { + maxBits = maxBits * 2 / 5; + } else if( curr_block == 1 ) { + maxBits = maxBits * 3 / 4; + } + } + useCBR = encControl->useCBR && curr_block == tot_blocks - 1; + + if( encControl->nChannelsInternal == 1 ) { + channelRate_bps = TargetRate_bps; + } else { + channelRate_bps = MStargetRates_bps[ n ]; + if( n == 0 && MStargetRates_bps[ 1 ] > 0 ) { + useCBR = 0; + /* Give mid up to 1/2 of the max bits for that frame */ + maxBits -= encControl->maxBits / ( tot_blocks * 2 ); + } + } + + if( channelRate_bps > 0 ) { + opus_int condCoding; + + silk_control_SNR( &psEnc->state_Fxx[ n ].sCmn, channelRate_bps ); + + /* Use independent coding if no previous frame available */ + if( psEnc->state_Fxx[ 0 ].sCmn.nFramesEncoded - n <= 0 ) { + condCoding = CODE_INDEPENDENTLY; + } else if( n > 0 && psEnc->prev_decode_only_middle ) { + /* If we skipped a side frame in this packet, we don't + need LTP scaling; the LTP state is well-defined. */ + condCoding = CODE_INDEPENDENTLY_NO_LTP_SCALING; + } else { + condCoding = CODE_CONDITIONALLY; + } + if( ( ret = silk_encode_frame_Fxx( &psEnc->state_Fxx[ n ], nBytesOut, psRangeEnc, condCoding, maxBits, useCBR ) ) != 0 ) { + silk_assert( 0 ); + } + } + psEnc->state_Fxx[ n ].sCmn.controlled_since_last_payload = 0; + psEnc->state_Fxx[ n ].sCmn.inputBufIx = 0; + psEnc->state_Fxx[ n ].sCmn.nFramesEncoded++; + } + psEnc->prev_decode_only_middle = psEnc->sStereo.mid_only_flags[ psEnc->state_Fxx[ 0 ].sCmn.nFramesEncoded - 1 ]; + + /* Insert VAD and FEC flags at beginning of bitstream */ + if( *nBytesOut > 0 && psEnc->state_Fxx[ 0 ].sCmn.nFramesEncoded == psEnc->state_Fxx[ 0 ].sCmn.nFramesPerPacket) { + flags = 0; + for( n = 0; n < encControl->nChannelsInternal; n++ ) { + for( i = 0; i < psEnc->state_Fxx[ n ].sCmn.nFramesPerPacket; i++ ) { + flags = silk_LSHIFT( flags, 1 ); + flags |= psEnc->state_Fxx[ n ].sCmn.VAD_flags[ i ]; + } + flags = silk_LSHIFT( flags, 1 ); + flags |= psEnc->state_Fxx[ n ].sCmn.LBRR_flag; + } + if( !prefillFlag ) { + ec_enc_patch_initial_bits( psRangeEnc, flags, ( psEnc->state_Fxx[ 0 ].sCmn.nFramesPerPacket + 1 ) * encControl->nChannelsInternal ); + } + + /* Return zero bytes if all channels DTXed */ + if( psEnc->state_Fxx[ 0 ].sCmn.inDTX && ( encControl->nChannelsInternal == 1 || psEnc->state_Fxx[ 1 ].sCmn.inDTX ) ) { + *nBytesOut = 0; + } + + psEnc->nBitsExceeded += *nBytesOut * 8; + psEnc->nBitsExceeded -= silk_DIV32_16( silk_MUL( encControl->bitRate, encControl->payloadSize_ms ), 1000 ); + psEnc->nBitsExceeded = silk_LIMIT( psEnc->nBitsExceeded, 0, 10000 ); + + /* Update flag indicating if bandwidth switching is allowed */ + speech_act_thr_for_switch_Q8 = silk_SMLAWB( SILK_FIX_CONST( SPEECH_ACTIVITY_DTX_THRES, 8 ), + SILK_FIX_CONST( ( 1 - SPEECH_ACTIVITY_DTX_THRES ) / MAX_BANDWIDTH_SWITCH_DELAY_MS, 16 + 8 ), psEnc->timeSinceSwitchAllowed_ms ); + if( psEnc->state_Fxx[ 0 ].sCmn.speech_activity_Q8 < speech_act_thr_for_switch_Q8 ) { + psEnc->allowBandwidthSwitch = 1; + psEnc->timeSinceSwitchAllowed_ms = 0; + } else { + psEnc->allowBandwidthSwitch = 0; + psEnc->timeSinceSwitchAllowed_ms += encControl->payloadSize_ms; + } + } + + if( nSamplesIn == 0 ) { + break; + } + } else { + break; + } + curr_block++; + } + + psEnc->nPrevChannelsInternal = encControl->nChannelsInternal; + + encControl->allowBandwidthSwitch = psEnc->allowBandwidthSwitch; + encControl->inWBmodeWithoutVariableLP = psEnc->state_Fxx[ 0 ].sCmn.fs_kHz == 16 && psEnc->state_Fxx[ 0 ].sCmn.sLP.mode == 0; + encControl->internalSampleRate = silk_SMULBB( psEnc->state_Fxx[ 0 ].sCmn.fs_kHz, 1000 ); + encControl->stereoWidth_Q14 = encControl->toMono ? 0 : psEnc->sStereo.smth_width_Q14; + if( prefillFlag ) { + encControl->payloadSize_ms = tmp_payloadSize_ms; + encControl->complexity = tmp_complexity; + for( n = 0; n < encControl->nChannelsInternal; n++ ) { + psEnc->state_Fxx[ n ].sCmn.controlled_since_last_payload = 0; + psEnc->state_Fxx[ n ].sCmn.prefillFlag = 0; + } + } + + encControl->signalType = psEnc->state_Fxx[0].sCmn.indices.signalType; + encControl->offset = silk_Quantization_Offsets_Q10 + [ psEnc->state_Fxx[0].sCmn.indices.signalType >> 1 ] + [ psEnc->state_Fxx[0].sCmn.indices.quantOffsetType ]; + RESTORE_STACK; + return ret; +} + diff --git a/components/opus/libopus/silk/encode_indices.c b/components/opus/libopus/silk/encode_indices.c new file mode 100644 index 0000000..4bcbc33 --- /dev/null +++ b/components/opus/libopus/silk/encode_indices.c @@ -0,0 +1,181 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main.h" + +/* Encode side-information parameters to payload */ +void silk_encode_indices( + silk_encoder_state *psEncC, /* I/O Encoder state */ + ec_enc *psRangeEnc, /* I/O Compressor data structure */ + opus_int FrameIndex, /* I Frame number */ + opus_int encode_LBRR, /* I Flag indicating LBRR data is being encoded */ + opus_int condCoding /* I The type of conditional coding to use */ +) +{ + opus_int i, k, typeOffset; + opus_int encode_absolute_lagIndex, delta_lagIndex; + opus_int16 ec_ix[ MAX_LPC_ORDER ]; + opus_uint8 pred_Q8[ MAX_LPC_ORDER ]; + const SideInfoIndices *psIndices; + + if( encode_LBRR ) { + psIndices = &psEncC->indices_LBRR[ FrameIndex ]; + } else { + psIndices = &psEncC->indices; + } + + /*******************************************/ + /* Encode signal type and quantizer offset */ + /*******************************************/ + typeOffset = 2 * psIndices->signalType + psIndices->quantOffsetType; + celt_assert( typeOffset >= 0 && typeOffset < 6 ); + celt_assert( encode_LBRR == 0 || typeOffset >= 2 ); + if( encode_LBRR || typeOffset >= 2 ) { + ec_enc_icdf( psRangeEnc, typeOffset - 2, silk_type_offset_VAD_iCDF, 8 ); + } else { + ec_enc_icdf( psRangeEnc, typeOffset, silk_type_offset_no_VAD_iCDF, 8 ); + } + + /****************/ + /* Encode gains */ + /****************/ + /* first subframe */ + if( condCoding == CODE_CONDITIONALLY ) { + /* conditional coding */ + silk_assert( psIndices->GainsIndices[ 0 ] >= 0 && psIndices->GainsIndices[ 0 ] < MAX_DELTA_GAIN_QUANT - MIN_DELTA_GAIN_QUANT + 1 ); + ec_enc_icdf( psRangeEnc, psIndices->GainsIndices[ 0 ], silk_delta_gain_iCDF, 8 ); + } else { + /* independent coding, in two stages: MSB bits followed by 3 LSBs */ + silk_assert( psIndices->GainsIndices[ 0 ] >= 0 && psIndices->GainsIndices[ 0 ] < N_LEVELS_QGAIN ); + ec_enc_icdf( psRangeEnc, silk_RSHIFT( psIndices->GainsIndices[ 0 ], 3 ), silk_gain_iCDF[ psIndices->signalType ], 8 ); + ec_enc_icdf( psRangeEnc, psIndices->GainsIndices[ 0 ] & 7, silk_uniform8_iCDF, 8 ); + } + + /* remaining subframes */ + for( i = 1; i < psEncC->nb_subfr; i++ ) { + silk_assert( psIndices->GainsIndices[ i ] >= 0 && psIndices->GainsIndices[ i ] < MAX_DELTA_GAIN_QUANT - MIN_DELTA_GAIN_QUANT + 1 ); + ec_enc_icdf( psRangeEnc, psIndices->GainsIndices[ i ], silk_delta_gain_iCDF, 8 ); + } + + /****************/ + /* Encode NLSFs */ + /****************/ + ec_enc_icdf( psRangeEnc, psIndices->NLSFIndices[ 0 ], &psEncC->psNLSF_CB->CB1_iCDF[ ( psIndices->signalType >> 1 ) * psEncC->psNLSF_CB->nVectors ], 8 ); + silk_NLSF_unpack( ec_ix, pred_Q8, psEncC->psNLSF_CB, psIndices->NLSFIndices[ 0 ] ); + celt_assert( psEncC->psNLSF_CB->order == psEncC->predictLPCOrder ); + for( i = 0; i < psEncC->psNLSF_CB->order; i++ ) { + if( psIndices->NLSFIndices[ i+1 ] >= NLSF_QUANT_MAX_AMPLITUDE ) { + ec_enc_icdf( psRangeEnc, 2 * NLSF_QUANT_MAX_AMPLITUDE, &psEncC->psNLSF_CB->ec_iCDF[ ec_ix[ i ] ], 8 ); + ec_enc_icdf( psRangeEnc, psIndices->NLSFIndices[ i+1 ] - NLSF_QUANT_MAX_AMPLITUDE, silk_NLSF_EXT_iCDF, 8 ); + } else if( psIndices->NLSFIndices[ i+1 ] <= -NLSF_QUANT_MAX_AMPLITUDE ) { + ec_enc_icdf( psRangeEnc, 0, &psEncC->psNLSF_CB->ec_iCDF[ ec_ix[ i ] ], 8 ); + ec_enc_icdf( psRangeEnc, -psIndices->NLSFIndices[ i+1 ] - NLSF_QUANT_MAX_AMPLITUDE, silk_NLSF_EXT_iCDF, 8 ); + } else { + ec_enc_icdf( psRangeEnc, psIndices->NLSFIndices[ i+1 ] + NLSF_QUANT_MAX_AMPLITUDE, &psEncC->psNLSF_CB->ec_iCDF[ ec_ix[ i ] ], 8 ); + } + } + + /* Encode NLSF interpolation factor */ + if( psEncC->nb_subfr == MAX_NB_SUBFR ) { + silk_assert( psIndices->NLSFInterpCoef_Q2 >= 0 && psIndices->NLSFInterpCoef_Q2 < 5 ); + ec_enc_icdf( psRangeEnc, psIndices->NLSFInterpCoef_Q2, silk_NLSF_interpolation_factor_iCDF, 8 ); + } + + if( psIndices->signalType == TYPE_VOICED ) + { + /*********************/ + /* Encode pitch lags */ + /*********************/ + /* lag index */ + encode_absolute_lagIndex = 1; + if( condCoding == CODE_CONDITIONALLY && psEncC->ec_prevSignalType == TYPE_VOICED ) { + /* Delta Encoding */ + delta_lagIndex = psIndices->lagIndex - psEncC->ec_prevLagIndex; + if( delta_lagIndex < -8 || delta_lagIndex > 11 ) { + delta_lagIndex = 0; + } else { + delta_lagIndex = delta_lagIndex + 9; + encode_absolute_lagIndex = 0; /* Only use delta */ + } + silk_assert( delta_lagIndex >= 0 && delta_lagIndex < 21 ); + ec_enc_icdf( psRangeEnc, delta_lagIndex, silk_pitch_delta_iCDF, 8 ); + } + if( encode_absolute_lagIndex ) { + /* Absolute encoding */ + opus_int32 pitch_high_bits, pitch_low_bits; + pitch_high_bits = silk_DIV32_16( psIndices->lagIndex, silk_RSHIFT( psEncC->fs_kHz, 1 ) ); + pitch_low_bits = psIndices->lagIndex - silk_SMULBB( pitch_high_bits, silk_RSHIFT( psEncC->fs_kHz, 1 ) ); + silk_assert( pitch_low_bits < psEncC->fs_kHz / 2 ); + silk_assert( pitch_high_bits < 32 ); + ec_enc_icdf( psRangeEnc, pitch_high_bits, silk_pitch_lag_iCDF, 8 ); + ec_enc_icdf( psRangeEnc, pitch_low_bits, psEncC->pitch_lag_low_bits_iCDF, 8 ); + } + psEncC->ec_prevLagIndex = psIndices->lagIndex; + + /* Countour index */ + silk_assert( psIndices->contourIndex >= 0 ); + silk_assert( ( psIndices->contourIndex < 34 && psEncC->fs_kHz > 8 && psEncC->nb_subfr == 4 ) || + ( psIndices->contourIndex < 11 && psEncC->fs_kHz == 8 && psEncC->nb_subfr == 4 ) || + ( psIndices->contourIndex < 12 && psEncC->fs_kHz > 8 && psEncC->nb_subfr == 2 ) || + ( psIndices->contourIndex < 3 && psEncC->fs_kHz == 8 && psEncC->nb_subfr == 2 ) ); + ec_enc_icdf( psRangeEnc, psIndices->contourIndex, psEncC->pitch_contour_iCDF, 8 ); + + /********************/ + /* Encode LTP gains */ + /********************/ + /* PERIndex value */ + silk_assert( psIndices->PERIndex >= 0 && psIndices->PERIndex < 3 ); + ec_enc_icdf( psRangeEnc, psIndices->PERIndex, silk_LTP_per_index_iCDF, 8 ); + + /* Codebook Indices */ + for( k = 0; k < psEncC->nb_subfr; k++ ) { + silk_assert( psIndices->LTPIndex[ k ] >= 0 && psIndices->LTPIndex[ k ] < ( 8 << psIndices->PERIndex ) ); + ec_enc_icdf( psRangeEnc, psIndices->LTPIndex[ k ], silk_LTP_gain_iCDF_ptrs[ psIndices->PERIndex ], 8 ); + } + + /**********************/ + /* Encode LTP scaling */ + /**********************/ + if( condCoding == CODE_INDEPENDENTLY ) { + silk_assert( psIndices->LTP_scaleIndex >= 0 && psIndices->LTP_scaleIndex < 3 ); + ec_enc_icdf( psRangeEnc, psIndices->LTP_scaleIndex, silk_LTPscale_iCDF, 8 ); + } + silk_assert( !condCoding || psIndices->LTP_scaleIndex == 0 ); + } + + psEncC->ec_prevSignalType = psIndices->signalType; + + /***************/ + /* Encode seed */ + /***************/ + silk_assert( psIndices->Seed >= 0 && psIndices->Seed < 4 ); + ec_enc_icdf( psRangeEnc, psIndices->Seed, silk_uniform4_iCDF, 8 ); +} diff --git a/components/opus/libopus/silk/encode_pulses.c b/components/opus/libopus/silk/encode_pulses.c new file mode 100644 index 0000000..8a19991 --- /dev/null +++ b/components/opus/libopus/silk/encode_pulses.c @@ -0,0 +1,206 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main.h" +#include "stack_alloc.h" + +/*********************************************/ +/* Encode quantization indices of excitation */ +/*********************************************/ + +static OPUS_INLINE opus_int combine_and_check( /* return ok */ + opus_int *pulses_comb, /* O */ + const opus_int *pulses_in, /* I */ + opus_int max_pulses, /* I max value for sum of pulses */ + opus_int len /* I number of output values */ +) +{ + opus_int k, sum; + + for( k = 0; k < len; k++ ) { + sum = pulses_in[ 2 * k ] + pulses_in[ 2 * k + 1 ]; + if( sum > max_pulses ) { + return 1; + } + pulses_comb[ k ] = sum; + } + + return 0; +} + +/* Encode quantization indices of excitation */ +void silk_encode_pulses( + ec_enc *psRangeEnc, /* I/O compressor data structure */ + const opus_int signalType, /* I Signal type */ + const opus_int quantOffsetType, /* I quantOffsetType */ + opus_int8 pulses[], /* I quantization indices */ + const opus_int frame_length /* I Frame length */ +) +{ + opus_int i, k, j, iter, bit, nLS, scale_down, RateLevelIndex = 0; + opus_int32 abs_q, minSumBits_Q5, sumBits_Q5; + VARDECL( opus_int, abs_pulses ); + VARDECL( opus_int, sum_pulses ); + VARDECL( opus_int, nRshifts ); + opus_int pulses_comb[ 8 ]; + opus_int *abs_pulses_ptr; + const opus_int8 *pulses_ptr; + const opus_uint8 *cdf_ptr; + const opus_uint8 *nBits_ptr; + SAVE_STACK; + + silk_memset( pulses_comb, 0, 8 * sizeof( opus_int ) ); /* Fixing Valgrind reported problem*/ + + /****************************/ + /* Prepare for shell coding */ + /****************************/ + /* Calculate number of shell blocks */ + silk_assert( 1 << LOG2_SHELL_CODEC_FRAME_LENGTH == SHELL_CODEC_FRAME_LENGTH ); + iter = silk_RSHIFT( frame_length, LOG2_SHELL_CODEC_FRAME_LENGTH ); + if( iter * SHELL_CODEC_FRAME_LENGTH < frame_length ) { + celt_assert( frame_length == 12 * 10 ); /* Make sure only happens for 10 ms @ 12 kHz */ + iter++; + silk_memset( &pulses[ frame_length ], 0, SHELL_CODEC_FRAME_LENGTH * sizeof(opus_int8)); + } + + /* Take the absolute value of the pulses */ + ALLOC( abs_pulses, iter * SHELL_CODEC_FRAME_LENGTH, opus_int ); + silk_assert( !( SHELL_CODEC_FRAME_LENGTH & 3 ) ); + for( i = 0; i < iter * SHELL_CODEC_FRAME_LENGTH; i+=4 ) { + abs_pulses[i+0] = ( opus_int )silk_abs( pulses[ i + 0 ] ); + abs_pulses[i+1] = ( opus_int )silk_abs( pulses[ i + 1 ] ); + abs_pulses[i+2] = ( opus_int )silk_abs( pulses[ i + 2 ] ); + abs_pulses[i+3] = ( opus_int )silk_abs( pulses[ i + 3 ] ); + } + + /* Calc sum pulses per shell code frame */ + ALLOC( sum_pulses, iter, opus_int ); + ALLOC( nRshifts, iter, opus_int ); + abs_pulses_ptr = abs_pulses; + for( i = 0; i < iter; i++ ) { + nRshifts[ i ] = 0; + + while( 1 ) { + /* 1+1 -> 2 */ + scale_down = combine_and_check( pulses_comb, abs_pulses_ptr, silk_max_pulses_table[ 0 ], 8 ); + /* 2+2 -> 4 */ + scale_down += combine_and_check( pulses_comb, pulses_comb, silk_max_pulses_table[ 1 ], 4 ); + /* 4+4 -> 8 */ + scale_down += combine_and_check( pulses_comb, pulses_comb, silk_max_pulses_table[ 2 ], 2 ); + /* 8+8 -> 16 */ + scale_down += combine_and_check( &sum_pulses[ i ], pulses_comb, silk_max_pulses_table[ 3 ], 1 ); + + if( scale_down ) { + /* We need to downscale the quantization signal */ + nRshifts[ i ]++; + for( k = 0; k < SHELL_CODEC_FRAME_LENGTH; k++ ) { + abs_pulses_ptr[ k ] = silk_RSHIFT( abs_pulses_ptr[ k ], 1 ); + } + } else { + /* Jump out of while(1) loop and go to next shell coding frame */ + break; + } + } + abs_pulses_ptr += SHELL_CODEC_FRAME_LENGTH; + } + + /**************/ + /* Rate level */ + /**************/ + /* find rate level that leads to fewest bits for coding of pulses per block info */ + minSumBits_Q5 = silk_int32_MAX; + for( k = 0; k < N_RATE_LEVELS - 1; k++ ) { + nBits_ptr = silk_pulses_per_block_BITS_Q5[ k ]; + sumBits_Q5 = silk_rate_levels_BITS_Q5[ signalType >> 1 ][ k ]; + for( i = 0; i < iter; i++ ) { + if( nRshifts[ i ] > 0 ) { + sumBits_Q5 += nBits_ptr[ SILK_MAX_PULSES + 1 ]; + } else { + sumBits_Q5 += nBits_ptr[ sum_pulses[ i ] ]; + } + } + if( sumBits_Q5 < minSumBits_Q5 ) { + minSumBits_Q5 = sumBits_Q5; + RateLevelIndex = k; + } + } + ec_enc_icdf( psRangeEnc, RateLevelIndex, silk_rate_levels_iCDF[ signalType >> 1 ], 8 ); + + /***************************************************/ + /* Sum-Weighted-Pulses Encoding */ + /***************************************************/ + cdf_ptr = silk_pulses_per_block_iCDF[ RateLevelIndex ]; + for( i = 0; i < iter; i++ ) { + if( nRshifts[ i ] == 0 ) { + ec_enc_icdf( psRangeEnc, sum_pulses[ i ], cdf_ptr, 8 ); + } else { + ec_enc_icdf( psRangeEnc, SILK_MAX_PULSES + 1, cdf_ptr, 8 ); + for( k = 0; k < nRshifts[ i ] - 1; k++ ) { + ec_enc_icdf( psRangeEnc, SILK_MAX_PULSES + 1, silk_pulses_per_block_iCDF[ N_RATE_LEVELS - 1 ], 8 ); + } + ec_enc_icdf( psRangeEnc, sum_pulses[ i ], silk_pulses_per_block_iCDF[ N_RATE_LEVELS - 1 ], 8 ); + } + } + + /******************/ + /* Shell Encoding */ + /******************/ + for( i = 0; i < iter; i++ ) { + if( sum_pulses[ i ] > 0 ) { + silk_shell_encoder( psRangeEnc, &abs_pulses[ i * SHELL_CODEC_FRAME_LENGTH ] ); + } + } + + /****************/ + /* LSB Encoding */ + /****************/ + for( i = 0; i < iter; i++ ) { + if( nRshifts[ i ] > 0 ) { + pulses_ptr = &pulses[ i * SHELL_CODEC_FRAME_LENGTH ]; + nLS = nRshifts[ i ] - 1; + for( k = 0; k < SHELL_CODEC_FRAME_LENGTH; k++ ) { + abs_q = (opus_int8)silk_abs( pulses_ptr[ k ] ); + for( j = nLS; j > 0; j-- ) { + bit = silk_RSHIFT( abs_q, j ) & 1; + ec_enc_icdf( psRangeEnc, bit, silk_lsb_iCDF, 8 ); + } + bit = abs_q & 1; + ec_enc_icdf( psRangeEnc, bit, silk_lsb_iCDF, 8 ); + } + } + } + + /****************/ + /* Encode signs */ + /****************/ + silk_encode_signs( psRangeEnc, pulses, frame_length, signalType, quantOffsetType, sum_pulses ); + RESTORE_STACK; +} diff --git a/components/opus/libopus/silk/errors.h b/components/opus/libopus/silk/errors.h new file mode 100644 index 0000000..4507080 --- /dev/null +++ b/components/opus/libopus/silk/errors.h @@ -0,0 +1,98 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifndef SILK_ERRORS_H +#define SILK_ERRORS_H + +#ifdef __cplusplus +extern "C" +{ +#endif + +/******************/ +/* Error messages */ +/******************/ +#define SILK_NO_ERROR 0 + +/**************************/ +/* Encoder error messages */ +/**************************/ + +/* Input length is not a multiple of 10 ms, or length is longer than the packet length */ +#define SILK_ENC_INPUT_INVALID_NO_OF_SAMPLES -101 + +/* Sampling frequency not 8000, 12000 or 16000 Hertz */ +#define SILK_ENC_FS_NOT_SUPPORTED -102 + +/* Packet size not 10, 20, 40, or 60 ms */ +#define SILK_ENC_PACKET_SIZE_NOT_SUPPORTED -103 + +/* Allocated payload buffer too short */ +#define SILK_ENC_PAYLOAD_BUF_TOO_SHORT -104 + +/* Loss rate not between 0 and 100 percent */ +#define SILK_ENC_INVALID_LOSS_RATE -105 + +/* Complexity setting not valid, use 0...10 */ +#define SILK_ENC_INVALID_COMPLEXITY_SETTING -106 + +/* Inband FEC setting not valid, use 0 or 1 */ +#define SILK_ENC_INVALID_INBAND_FEC_SETTING -107 + +/* DTX setting not valid, use 0 or 1 */ +#define SILK_ENC_INVALID_DTX_SETTING -108 + +/* CBR setting not valid, use 0 or 1 */ +#define SILK_ENC_INVALID_CBR_SETTING -109 + +/* Internal encoder error */ +#define SILK_ENC_INTERNAL_ERROR -110 + +/* Internal encoder error */ +#define SILK_ENC_INVALID_NUMBER_OF_CHANNELS_ERROR -111 + +/**************************/ +/* Decoder error messages */ +/**************************/ + +/* Output sampling frequency lower than internal decoded sampling frequency */ +#define SILK_DEC_INVALID_SAMPLING_FREQUENCY -200 + +/* Payload size exceeded the maximum allowed 1024 bytes */ +#define SILK_DEC_PAYLOAD_TOO_LARGE -201 + +/* Payload has bit errors */ +#define SILK_DEC_PAYLOAD_ERROR -202 + +/* Payload has bit errors */ +#define SILK_DEC_INVALID_FRAME_SIZE -203 + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/components/opus/libopus/silk/fixed/LTP_analysis_filter_FIX.c b/components/opus/libopus/silk/fixed/LTP_analysis_filter_FIX.c new file mode 100644 index 0000000..5574e70 --- /dev/null +++ b/components/opus/libopus/silk/fixed/LTP_analysis_filter_FIX.c @@ -0,0 +1,90 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main_FIX.h" + +void silk_LTP_analysis_filter_FIX( + opus_int16 *LTP_res, /* O LTP residual signal of length MAX_NB_SUBFR * ( pre_length + subfr_length ) */ + const opus_int16 *x, /* I Pointer to input signal with at least max( pitchL ) preceding samples */ + const opus_int16 LTPCoef_Q14[ LTP_ORDER * MAX_NB_SUBFR ],/* I LTP_ORDER LTP coefficients for each MAX_NB_SUBFR subframe */ + const opus_int pitchL[ MAX_NB_SUBFR ], /* I Pitch lag, one for each subframe */ + const opus_int32 invGains_Q16[ MAX_NB_SUBFR ], /* I Inverse quantization gains, one for each subframe */ + const opus_int subfr_length, /* I Length of each subframe */ + const opus_int nb_subfr, /* I Number of subframes */ + const opus_int pre_length /* I Length of the preceding samples starting at &x[0] for each subframe */ +) +{ + const opus_int16 *x_ptr, *x_lag_ptr; + opus_int16 Btmp_Q14[ LTP_ORDER ]; + opus_int16 *LTP_res_ptr; + opus_int k, i; + opus_int32 LTP_est; + + x_ptr = x; + LTP_res_ptr = LTP_res; + for( k = 0; k < nb_subfr; k++ ) { + + x_lag_ptr = x_ptr - pitchL[ k ]; + + Btmp_Q14[ 0 ] = LTPCoef_Q14[ k * LTP_ORDER ]; + Btmp_Q14[ 1 ] = LTPCoef_Q14[ k * LTP_ORDER + 1 ]; + Btmp_Q14[ 2 ] = LTPCoef_Q14[ k * LTP_ORDER + 2 ]; + Btmp_Q14[ 3 ] = LTPCoef_Q14[ k * LTP_ORDER + 3 ]; + Btmp_Q14[ 4 ] = LTPCoef_Q14[ k * LTP_ORDER + 4 ]; + + /* LTP analysis FIR filter */ + for( i = 0; i < subfr_length + pre_length; i++ ) { + LTP_res_ptr[ i ] = x_ptr[ i ]; + + /* Long-term prediction */ + LTP_est = silk_SMULBB( x_lag_ptr[ LTP_ORDER / 2 ], Btmp_Q14[ 0 ] ); + LTP_est = silk_SMLABB_ovflw( LTP_est, x_lag_ptr[ 1 ], Btmp_Q14[ 1 ] ); + LTP_est = silk_SMLABB_ovflw( LTP_est, x_lag_ptr[ 0 ], Btmp_Q14[ 2 ] ); + LTP_est = silk_SMLABB_ovflw( LTP_est, x_lag_ptr[ -1 ], Btmp_Q14[ 3 ] ); + LTP_est = silk_SMLABB_ovflw( LTP_est, x_lag_ptr[ -2 ], Btmp_Q14[ 4 ] ); + + LTP_est = silk_RSHIFT_ROUND( LTP_est, 14 ); /* round and -> Q0*/ + + /* Subtract long-term prediction */ + LTP_res_ptr[ i ] = (opus_int16)silk_SAT16( (opus_int32)x_ptr[ i ] - LTP_est ); + + /* Scale residual */ + LTP_res_ptr[ i ] = silk_SMULWB( invGains_Q16[ k ], LTP_res_ptr[ i ] ); + + x_lag_ptr++; + } + + /* Update pointers */ + LTP_res_ptr += subfr_length + pre_length; + x_ptr += subfr_length; + } +} + diff --git a/components/opus/libopus/silk/fixed/LTP_scale_ctrl_FIX.c b/components/opus/libopus/silk/fixed/LTP_scale_ctrl_FIX.c new file mode 100644 index 0000000..3dcedef --- /dev/null +++ b/components/opus/libopus/silk/fixed/LTP_scale_ctrl_FIX.c @@ -0,0 +1,53 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main_FIX.h" + +/* Calculation of LTP state scaling */ +void silk_LTP_scale_ctrl_FIX( + silk_encoder_state_FIX *psEnc, /* I/O encoder state */ + silk_encoder_control_FIX *psEncCtrl, /* I/O encoder control */ + opus_int condCoding /* I The type of conditional coding to use */ +) +{ + opus_int round_loss; + + if( condCoding == CODE_INDEPENDENTLY ) { + /* Only scale if first frame in packet */ + round_loss = psEnc->sCmn.PacketLoss_perc + psEnc->sCmn.nFramesPerPacket; + psEnc->sCmn.indices.LTP_scaleIndex = (opus_int8)silk_LIMIT( + silk_SMULWB( silk_SMULBB( round_loss, psEncCtrl->LTPredCodGain_Q7 ), SILK_FIX_CONST( 0.1, 9 ) ), 0, 2 ); + } else { + /* Default is minimum scaling */ + psEnc->sCmn.indices.LTP_scaleIndex = 0; + } + psEncCtrl->LTP_scale_Q14 = silk_LTPScales_table_Q14[ psEnc->sCmn.indices.LTP_scaleIndex ]; +} diff --git a/components/opus/libopus/silk/fixed/apply_sine_window_FIX.c b/components/opus/libopus/silk/fixed/apply_sine_window_FIX.c new file mode 100644 index 0000000..03e088a --- /dev/null +++ b/components/opus/libopus/silk/fixed/apply_sine_window_FIX.c @@ -0,0 +1,101 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "SigProc_FIX.h" + +/* Apply sine window to signal vector. */ +/* Window types: */ +/* 1 -> sine window from 0 to pi/2 */ +/* 2 -> sine window from pi/2 to pi */ +/* Every other sample is linearly interpolated, for speed. */ +/* Window length must be between 16 and 120 (incl) and a multiple of 4. */ + +/* Matlab code for table: + for k=16:9*4:16+2*9*4, fprintf(' %7.d,', -round(65536*pi ./ (k:4:k+8*4))); fprintf('\n'); end +*/ +static const opus_int16 freq_table_Q16[ 27 ] = { + 12111, 9804, 8235, 7100, 6239, 5565, 5022, 4575, 4202, + 3885, 3612, 3375, 3167, 2984, 2820, 2674, 2542, 2422, + 2313, 2214, 2123, 2038, 1961, 1889, 1822, 1760, 1702, +}; + +void silk_apply_sine_window( + opus_int16 px_win[], /* O Pointer to windowed signal */ + const opus_int16 px[], /* I Pointer to input signal */ + const opus_int win_type, /* I Selects a window type */ + const opus_int length /* I Window length, multiple of 4 */ +) +{ + opus_int k, f_Q16, c_Q16; + opus_int32 S0_Q16, S1_Q16; + + celt_assert( win_type == 1 || win_type == 2 ); + + /* Length must be in a range from 16 to 120 and a multiple of 4 */ + celt_assert( length >= 16 && length <= 120 ); + celt_assert( ( length & 3 ) == 0 ); + + /* Frequency */ + k = ( length >> 2 ) - 4; + celt_assert( k >= 0 && k <= 26 ); + f_Q16 = (opus_int)freq_table_Q16[ k ]; + + /* Factor used for cosine approximation */ + c_Q16 = silk_SMULWB( (opus_int32)f_Q16, -f_Q16 ); + silk_assert( c_Q16 >= -32768 ); + + /* initialize state */ + if( win_type == 1 ) { + /* start from 0 */ + S0_Q16 = 0; + /* approximation of sin(f) */ + S1_Q16 = f_Q16 + silk_RSHIFT( length, 3 ); + } else { + /* start from 1 */ + S0_Q16 = ( (opus_int32)1 << 16 ); + /* approximation of cos(f) */ + S1_Q16 = ( (opus_int32)1 << 16 ) + silk_RSHIFT( c_Q16, 1 ) + silk_RSHIFT( length, 4 ); + } + + /* Uses the recursive equation: sin(n*f) = 2 * cos(f) * sin((n-1)*f) - sin((n-2)*f) */ + /* 4 samples at a time */ + for( k = 0; k < length; k += 4 ) { + px_win[ k ] = (opus_int16)silk_SMULWB( silk_RSHIFT( S0_Q16 + S1_Q16, 1 ), px[ k ] ); + px_win[ k + 1 ] = (opus_int16)silk_SMULWB( S1_Q16, px[ k + 1] ); + S0_Q16 = silk_SMULWB( S1_Q16, c_Q16 ) + silk_LSHIFT( S1_Q16, 1 ) - S0_Q16 + 1; + S0_Q16 = silk_min( S0_Q16, ( (opus_int32)1 << 16 ) ); + + px_win[ k + 2 ] = (opus_int16)silk_SMULWB( silk_RSHIFT( S0_Q16 + S1_Q16, 1 ), px[ k + 2] ); + px_win[ k + 3 ] = (opus_int16)silk_SMULWB( S0_Q16, px[ k + 3 ] ); + S1_Q16 = silk_SMULWB( S0_Q16, c_Q16 ) + silk_LSHIFT( S0_Q16, 1 ) - S1_Q16; + S1_Q16 = silk_min( S1_Q16, ( (opus_int32)1 << 16 ) ); + } +} diff --git a/components/opus/libopus/silk/fixed/arm/warped_autocorrelation_FIX_arm.h b/components/opus/libopus/silk/fixed/arm/warped_autocorrelation_FIX_arm.h new file mode 100644 index 0000000..1992e43 --- /dev/null +++ b/components/opus/libopus/silk/fixed/arm/warped_autocorrelation_FIX_arm.h @@ -0,0 +1,68 @@ +/*********************************************************************** +Copyright (c) 2017 Google Inc. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifndef SILK_WARPED_AUTOCORRELATION_FIX_ARM_H +# define SILK_WARPED_AUTOCORRELATION_FIX_ARM_H + +# include "celt/arm/armcpu.h" + +# if defined(FIXED_POINT) + +# if defined(OPUS_ARM_MAY_HAVE_NEON_INTR) +void silk_warped_autocorrelation_FIX_neon( + opus_int32 *corr, /* O Result [order + 1] */ + opus_int *scale, /* O Scaling of the correlation vector */ + const opus_int16 *input, /* I Input data to correlate */ + const opus_int warping_Q16, /* I Warping coefficient */ + const opus_int length, /* I Length of input */ + const opus_int order /* I Correlation order (even) */ +); + +# if !defined(OPUS_HAVE_RTCD) && defined(OPUS_ARM_PRESUME_NEON) +# define OVERRIDE_silk_warped_autocorrelation_FIX (1) +# define silk_warped_autocorrelation_FIX(corr, scale, input, warping_Q16, length, order, arch) \ + ((void)(arch), PRESUME_NEON(silk_warped_autocorrelation_FIX)(corr, scale, input, warping_Q16, length, order)) +# endif +# endif + +# if !defined(OVERRIDE_silk_warped_autocorrelation_FIX) +/*Is run-time CPU detection enabled on this platform?*/ +# if defined(OPUS_HAVE_RTCD) && (defined(OPUS_ARM_MAY_HAVE_NEON_INTR) && !defined(OPUS_ARM_PRESUME_NEON_INTR)) +extern void (*const SILK_WARPED_AUTOCORRELATION_FIX_IMPL[OPUS_ARCHMASK+1])(opus_int32*, opus_int*, const opus_int16*, const opus_int, const opus_int, const opus_int); +# define OVERRIDE_silk_warped_autocorrelation_FIX (1) +# define silk_warped_autocorrelation_FIX(corr, scale, input, warping_Q16, length, order, arch) \ + ((*SILK_WARPED_AUTOCORRELATION_FIX_IMPL[(arch)&OPUS_ARCHMASK])(corr, scale, input, warping_Q16, length, order)) +# elif defined(OPUS_ARM_PRESUME_NEON_INTR) +# define OVERRIDE_silk_warped_autocorrelation_FIX (1) +# define silk_warped_autocorrelation_FIX(corr, scale, input, warping_Q16, length, order, arch) \ + ((void)(arch), silk_warped_autocorrelation_FIX_neon(corr, scale, input, warping_Q16, length, order)) +# endif +# endif + +# endif /* end FIXED_POINT */ + +#endif /* end SILK_WARPED_AUTOCORRELATION_FIX_ARM_H */ diff --git a/components/opus/libopus/silk/fixed/arm/warped_autocorrelation_FIX_neon_intr.c b/components/opus/libopus/silk/fixed/arm/warped_autocorrelation_FIX_neon_intr.c new file mode 100644 index 0000000..00a70cb --- /dev/null +++ b/components/opus/libopus/silk/fixed/arm/warped_autocorrelation_FIX_neon_intr.c @@ -0,0 +1,260 @@ +/*********************************************************************** +Copyright (c) 2017 Google Inc., Jean-Marc Valin +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#ifdef OPUS_CHECK_ASM +# include +#endif +#include "stack_alloc.h" +#include "main_FIX.h" + +static OPUS_INLINE void calc_corr( const opus_int32 *const input_QS, opus_int64 *const corr_QC, const opus_int offset, const int32x4_t state_QS_s32x4 ) +{ + int64x2_t corr_QC_s64x2[ 2 ], t_s64x2[ 2 ]; + const int32x4_t input_QS_s32x4 = vld1q_s32( input_QS + offset ); + corr_QC_s64x2[ 0 ] = vld1q_s64( corr_QC + offset + 0 ); + corr_QC_s64x2[ 1 ] = vld1q_s64( corr_QC + offset + 2 ); + t_s64x2[ 0 ] = vmull_s32( vget_low_s32( state_QS_s32x4 ), vget_low_s32( input_QS_s32x4 ) ); + t_s64x2[ 1 ] = vmull_s32( vget_high_s32( state_QS_s32x4 ), vget_high_s32( input_QS_s32x4 ) ); + corr_QC_s64x2[ 0 ] = vsraq_n_s64( corr_QC_s64x2[ 0 ], t_s64x2[ 0 ], 2 * QS - QC ); + corr_QC_s64x2[ 1 ] = vsraq_n_s64( corr_QC_s64x2[ 1 ], t_s64x2[ 1 ], 2 * QS - QC ); + vst1q_s64( corr_QC + offset + 0, corr_QC_s64x2[ 0 ] ); + vst1q_s64( corr_QC + offset + 2, corr_QC_s64x2[ 1 ] ); +} + +static OPUS_INLINE int32x4_t calc_state( const int32x4_t state_QS0_s32x4, const int32x4_t state_QS0_1_s32x4, const int32x4_t state_QS1_1_s32x4, const int32x4_t warping_Q16_s32x4 ) +{ + int32x4_t t_s32x4 = vsubq_s32( state_QS0_s32x4, state_QS0_1_s32x4 ); + t_s32x4 = vqdmulhq_s32( t_s32x4, warping_Q16_s32x4 ); + return vaddq_s32( state_QS1_1_s32x4, t_s32x4 ); +} + +void silk_warped_autocorrelation_FIX_neon( + opus_int32 *corr, /* O Result [order + 1] */ + opus_int *scale, /* O Scaling of the correlation vector */ + const opus_int16 *input, /* I Input data to correlate */ + const opus_int warping_Q16, /* I Warping coefficient */ + const opus_int length, /* I Length of input */ + const opus_int order /* I Correlation order (even) */ +) +{ + if( ( MAX_SHAPE_LPC_ORDER > 24 ) || ( order < 6 ) ) { + silk_warped_autocorrelation_FIX_c( corr, scale, input, warping_Q16, length, order ); + } else { + opus_int n, i, lsh; + opus_int64 corr_QC[ MAX_SHAPE_LPC_ORDER + 1 ] = { 0 }; /* In reverse order */ + opus_int64 corr_QC_orderT; + int64x2_t lsh_s64x2; + const opus_int orderT = ( order + 3 ) & ~3; + opus_int64 *corr_QCT; + opus_int32 *input_QS; + VARDECL( opus_int32, input_QST ); + VARDECL( opus_int32, state ); + SAVE_STACK; + + /* Order must be even */ + silk_assert( ( order & 1 ) == 0 ); + silk_assert( 2 * QS - QC >= 0 ); + + ALLOC( input_QST, length + 2 * MAX_SHAPE_LPC_ORDER, opus_int32 ); + + input_QS = input_QST; + /* input_QS has zero paddings in the beginning and end. */ + vst1q_s32( input_QS, vdupq_n_s32( 0 ) ); + input_QS += 4; + vst1q_s32( input_QS, vdupq_n_s32( 0 ) ); + input_QS += 4; + vst1q_s32( input_QS, vdupq_n_s32( 0 ) ); + input_QS += 4; + vst1q_s32( input_QS, vdupq_n_s32( 0 ) ); + input_QS += 4; + vst1q_s32( input_QS, vdupq_n_s32( 0 ) ); + input_QS += 4; + vst1q_s32( input_QS, vdupq_n_s32( 0 ) ); + input_QS += 4; + + /* Loop over samples */ + for( n = 0; n < length - 7; n += 8, input_QS += 8 ) { + const int16x8_t t0_s16x4 = vld1q_s16( input + n ); + vst1q_s32( input_QS + 0, vshll_n_s16( vget_low_s16( t0_s16x4 ), QS ) ); + vst1q_s32( input_QS + 4, vshll_n_s16( vget_high_s16( t0_s16x4 ), QS ) ); + } + for( ; n < length; n++, input_QS++ ) { + input_QS[ 0 ] = silk_LSHIFT32( (opus_int32)input[ n ], QS ); + } + vst1q_s32( input_QS, vdupq_n_s32( 0 ) ); + input_QS += 4; + vst1q_s32( input_QS, vdupq_n_s32( 0 ) ); + input_QS += 4; + vst1q_s32( input_QS, vdupq_n_s32( 0 ) ); + input_QS += 4; + vst1q_s32( input_QS, vdupq_n_s32( 0 ) ); + input_QS += 4; + vst1q_s32( input_QS, vdupq_n_s32( 0 ) ); + input_QS += 4; + vst1q_s32( input_QS, vdupq_n_s32( 0 ) ); + input_QS = input_QST + MAX_SHAPE_LPC_ORDER - orderT; + + /* The following loop runs ( length + order ) times, with ( order ) extra epilogues. */ + /* The zero paddings in input_QS guarantee corr_QC's correctness even with the extra epilogues. */ + /* The values of state_QS will be polluted by the extra epilogues, however they are temporary values. */ + + /* Keep the C code here to help understand the intrinsics optimization. */ + /* + { + opus_int32 state_QS[ 2 ][ MAX_SHAPE_LPC_ORDER + 1 ] = { 0 }; + opus_int32 *state_QST[ 3 ]; + state_QST[ 0 ] = state_QS[ 0 ]; + state_QST[ 1 ] = state_QS[ 1 ]; + for( n = 0; n < length + order; n++, input_QS++ ) { + state_QST[ 0 ][ orderT ] = input_QS[ orderT ]; + for( i = 0; i < orderT; i++ ) { + corr_QC[ i ] += silk_RSHIFT64( silk_SMULL( state_QST[ 0 ][ i ], input_QS[ i ] ), 2 * QS - QC ); + state_QST[ 1 ][ i ] = silk_SMLAWB( state_QST[ 1 ][ i + 1 ], state_QST[ 0 ][ i ] - state_QST[ 0 ][ i + 1 ], warping_Q16 ); + } + state_QST[ 2 ] = state_QST[ 0 ]; + state_QST[ 0 ] = state_QST[ 1 ]; + state_QST[ 1 ] = state_QST[ 2 ]; + } + } + */ + + { + const int32x4_t warping_Q16_s32x4 = vdupq_n_s32( warping_Q16 << 15 ); + const opus_int32 *in = input_QS + orderT; + opus_int o = orderT; + int32x4_t state_QS_s32x4[ 3 ][ 2 ]; + + ALLOC( state, length + orderT, opus_int32 ); + state_QS_s32x4[ 2 ][ 1 ] = vdupq_n_s32( 0 ); + + /* Calculate 8 taps of all inputs in each loop. */ + do { + state_QS_s32x4[ 0 ][ 0 ] = state_QS_s32x4[ 0 ][ 1 ] = + state_QS_s32x4[ 1 ][ 0 ] = state_QS_s32x4[ 1 ][ 1 ] = vdupq_n_s32( 0 ); + n = 0; + do { + calc_corr( input_QS + n, corr_QC, o - 8, state_QS_s32x4[ 0 ][ 0 ] ); + calc_corr( input_QS + n, corr_QC, o - 4, state_QS_s32x4[ 0 ][ 1 ] ); + state_QS_s32x4[ 2 ][ 1 ] = vld1q_s32( in + n ); + vst1q_lane_s32( state + n, state_QS_s32x4[ 0 ][ 0 ], 0 ); + state_QS_s32x4[ 2 ][ 0 ] = vextq_s32( state_QS_s32x4[ 0 ][ 0 ], state_QS_s32x4[ 0 ][ 1 ], 1 ); + state_QS_s32x4[ 2 ][ 1 ] = vextq_s32( state_QS_s32x4[ 0 ][ 1 ], state_QS_s32x4[ 2 ][ 1 ], 1 ); + state_QS_s32x4[ 0 ][ 0 ] = calc_state( state_QS_s32x4[ 0 ][ 0 ], state_QS_s32x4[ 2 ][ 0 ], state_QS_s32x4[ 1 ][ 0 ], warping_Q16_s32x4 ); + state_QS_s32x4[ 0 ][ 1 ] = calc_state( state_QS_s32x4[ 0 ][ 1 ], state_QS_s32x4[ 2 ][ 1 ], state_QS_s32x4[ 1 ][ 1 ], warping_Q16_s32x4 ); + state_QS_s32x4[ 1 ][ 0 ] = state_QS_s32x4[ 2 ][ 0 ]; + state_QS_s32x4[ 1 ][ 1 ] = state_QS_s32x4[ 2 ][ 1 ]; + } while( ++n < ( length + order ) ); + in = state; + o -= 8; + } while( o > 4 ); + + if( o ) { + /* Calculate the last 4 taps of all inputs. */ + opus_int32 *stateT = state; + silk_assert( o == 4 ); + state_QS_s32x4[ 0 ][ 0 ] = state_QS_s32x4[ 1 ][ 0 ] = vdupq_n_s32( 0 ); + n = length + order; + do { + calc_corr( input_QS, corr_QC, 0, state_QS_s32x4[ 0 ][ 0 ] ); + state_QS_s32x4[ 2 ][ 0 ] = vld1q_s32( stateT ); + vst1q_lane_s32( stateT, state_QS_s32x4[ 0 ][ 0 ], 0 ); + state_QS_s32x4[ 2 ][ 0 ] = vextq_s32( state_QS_s32x4[ 0 ][ 0 ], state_QS_s32x4[ 2 ][ 0 ], 1 ); + state_QS_s32x4[ 0 ][ 0 ] = calc_state( state_QS_s32x4[ 0 ][ 0 ], state_QS_s32x4[ 2 ][ 0 ], state_QS_s32x4[ 1 ][ 0 ], warping_Q16_s32x4 ); + state_QS_s32x4[ 1 ][ 0 ] = state_QS_s32x4[ 2 ][ 0 ]; + input_QS++; + stateT++; + } while( --n ); + } + } + + { + const opus_int16 *inputT = input; + int32x4_t t_s32x4; + int64x1_t t_s64x1; + int64x2_t t_s64x2 = vdupq_n_s64( 0 ); + for( n = 0; n <= length - 8; n += 8 ) { + int16x8_t input_s16x8 = vld1q_s16( inputT ); + t_s32x4 = vmull_s16( vget_low_s16( input_s16x8 ), vget_low_s16( input_s16x8 ) ); + t_s32x4 = vmlal_s16( t_s32x4, vget_high_s16( input_s16x8 ), vget_high_s16( input_s16x8 ) ); + t_s64x2 = vaddw_s32( t_s64x2, vget_low_s32( t_s32x4 ) ); + t_s64x2 = vaddw_s32( t_s64x2, vget_high_s32( t_s32x4 ) ); + inputT += 8; + } + t_s64x1 = vadd_s64( vget_low_s64( t_s64x2 ), vget_high_s64( t_s64x2 ) ); + corr_QC_orderT = vget_lane_s64( t_s64x1, 0 ); + for( ; n < length; n++ ) { + corr_QC_orderT += silk_SMULL( input[ n ], input[ n ] ); + } + corr_QC_orderT = silk_LSHIFT64( corr_QC_orderT, QC ); + corr_QC[ orderT ] = corr_QC_orderT; + } + + corr_QCT = corr_QC + orderT - order; + lsh = silk_CLZ64( corr_QC_orderT ) - 35; + lsh = silk_LIMIT( lsh, -12 - QC, 30 - QC ); + *scale = -( QC + lsh ); + silk_assert( *scale >= -30 && *scale <= 12 ); + lsh_s64x2 = vdupq_n_s64( lsh ); + for( i = 0; i <= order - 3; i += 4 ) { + int32x4_t corr_s32x4; + int64x2_t corr_QC0_s64x2, corr_QC1_s64x2; + corr_QC0_s64x2 = vld1q_s64( corr_QCT + i ); + corr_QC1_s64x2 = vld1q_s64( corr_QCT + i + 2 ); + corr_QC0_s64x2 = vshlq_s64( corr_QC0_s64x2, lsh_s64x2 ); + corr_QC1_s64x2 = vshlq_s64( corr_QC1_s64x2, lsh_s64x2 ); + corr_s32x4 = vcombine_s32( vmovn_s64( corr_QC1_s64x2 ), vmovn_s64( corr_QC0_s64x2 ) ); + corr_s32x4 = vrev64q_s32( corr_s32x4 ); + vst1q_s32( corr + order - i - 3, corr_s32x4 ); + } + if( lsh >= 0 ) { + for( ; i < order + 1; i++ ) { + corr[ order - i ] = (opus_int32)silk_CHECK_FIT32( silk_LSHIFT64( corr_QCT[ i ], lsh ) ); + } + } else { + for( ; i < order + 1; i++ ) { + corr[ order - i ] = (opus_int32)silk_CHECK_FIT32( silk_RSHIFT64( corr_QCT[ i ], -lsh ) ); + } + } + silk_assert( corr_QCT[ order ] >= 0 ); /* If breaking, decrease QC*/ + RESTORE_STACK; + } + +#ifdef OPUS_CHECK_ASM + { + opus_int32 corr_c[ MAX_SHAPE_LPC_ORDER + 1 ]; + opus_int scale_c; + silk_warped_autocorrelation_FIX_c( corr_c, &scale_c, input, warping_Q16, length, order ); + silk_assert( !memcmp( corr_c, corr, sizeof( corr_c[ 0 ] ) * ( order + 1 ) ) ); + silk_assert( scale_c == *scale ); + } +#endif +} diff --git a/components/opus/libopus/silk/fixed/autocorr_FIX.c b/components/opus/libopus/silk/fixed/autocorr_FIX.c new file mode 100644 index 0000000..de95c98 --- /dev/null +++ b/components/opus/libopus/silk/fixed/autocorr_FIX.c @@ -0,0 +1,48 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "SigProc_FIX.h" +#include "celt_lpc.h" + +/* Compute autocorrelation */ +void silk_autocorr( + opus_int32 *results, /* O Result (length correlationCount) */ + opus_int *scale, /* O Scaling of the correlation vector */ + const opus_int16 *inputData, /* I Input data to correlate */ + const opus_int inputDataSize, /* I Length of input */ + const opus_int correlationCount, /* I Number of correlation taps to compute */ + int arch /* I Run-time architecture */ +) +{ + opus_int corrCount; + corrCount = silk_min_int( inputDataSize, correlationCount ); + *scale = _celt_autocorr(inputData, results, NULL, 0, corrCount-1, inputDataSize, arch); +} diff --git a/components/opus/libopus/silk/fixed/burg_modified_FIX.c b/components/opus/libopus/silk/fixed/burg_modified_FIX.c new file mode 100644 index 0000000..274d4b2 --- /dev/null +++ b/components/opus/libopus/silk/fixed/burg_modified_FIX.c @@ -0,0 +1,280 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "SigProc_FIX.h" +#include "define.h" +#include "tuning_parameters.h" +#include "pitch.h" + +#define MAX_FRAME_SIZE 384 /* subfr_length * nb_subfr = ( 0.005 * 16000 + 16 ) * 4 = 384 */ + +#define QA 25 +#define N_BITS_HEAD_ROOM 3 +#define MIN_RSHIFTS -16 +#define MAX_RSHIFTS (32 - QA) + +/* Compute reflection coefficients from input signal */ +void silk_burg_modified_c( + opus_int32 *res_nrg, /* O Residual energy */ + opus_int *res_nrg_Q, /* O Residual energy Q value */ + opus_int32 A_Q16[], /* O Prediction coefficients (length order) */ + const opus_int16 x[], /* I Input signal, length: nb_subfr * ( D + subfr_length ) */ + const opus_int32 minInvGain_Q30, /* I Inverse of max prediction gain */ + const opus_int subfr_length, /* I Input signal subframe length (incl. D preceding samples) */ + const opus_int nb_subfr, /* I Number of subframes stacked in x */ + const opus_int D, /* I Order */ + int arch /* I Run-time architecture */ +) +{ + opus_int k, n, s, lz, rshifts, reached_max_gain; + opus_int32 C0, num, nrg, rc_Q31, invGain_Q30, Atmp_QA, Atmp1, tmp1, tmp2, x1, x2; + const opus_int16 *x_ptr; + opus_int32 C_first_row[ SILK_MAX_ORDER_LPC ]; + opus_int32 C_last_row[ SILK_MAX_ORDER_LPC ]; + opus_int32 Af_QA[ SILK_MAX_ORDER_LPC ]; + opus_int32 CAf[ SILK_MAX_ORDER_LPC + 1 ]; + opus_int32 CAb[ SILK_MAX_ORDER_LPC + 1 ]; + opus_int32 xcorr[ SILK_MAX_ORDER_LPC ]; + opus_int64 C0_64; + + celt_assert( subfr_length * nb_subfr <= MAX_FRAME_SIZE ); + + /* Compute autocorrelations, added over subframes */ + C0_64 = silk_inner_prod16_aligned_64( x, x, subfr_length*nb_subfr, arch ); + lz = silk_CLZ64(C0_64); + rshifts = 32 + 1 + N_BITS_HEAD_ROOM - lz; + if (rshifts > MAX_RSHIFTS) rshifts = MAX_RSHIFTS; + if (rshifts < MIN_RSHIFTS) rshifts = MIN_RSHIFTS; + + if (rshifts > 0) { + C0 = (opus_int32)silk_RSHIFT64(C0_64, rshifts ); + } else { + C0 = silk_LSHIFT32((opus_int32)C0_64, -rshifts ); + } + + CAb[ 0 ] = CAf[ 0 ] = C0 + silk_SMMUL( SILK_FIX_CONST( FIND_LPC_COND_FAC, 32 ), C0 ) + 1; /* Q(-rshifts) */ + silk_memset( C_first_row, 0, SILK_MAX_ORDER_LPC * sizeof( opus_int32 ) ); + if( rshifts > 0 ) { + for( s = 0; s < nb_subfr; s++ ) { + x_ptr = x + s * subfr_length; + for( n = 1; n < D + 1; n++ ) { + C_first_row[ n - 1 ] += (opus_int32)silk_RSHIFT64( + silk_inner_prod16_aligned_64( x_ptr, x_ptr + n, subfr_length - n, arch ), rshifts ); + } + } + } else { + for( s = 0; s < nb_subfr; s++ ) { + int i; + opus_int32 d; + x_ptr = x + s * subfr_length; + celt_pitch_xcorr(x_ptr, x_ptr + 1, xcorr, subfr_length - D, D, arch ); + for( n = 1; n < D + 1; n++ ) { + for ( i = n + subfr_length - D, d = 0; i < subfr_length; i++ ) + d = MAC16_16( d, x_ptr[ i ], x_ptr[ i - n ] ); + xcorr[ n - 1 ] += d; + } + for( n = 1; n < D + 1; n++ ) { + C_first_row[ n - 1 ] += silk_LSHIFT32( xcorr[ n - 1 ], -rshifts ); + } + } + } + silk_memcpy( C_last_row, C_first_row, SILK_MAX_ORDER_LPC * sizeof( opus_int32 ) ); + + /* Initialize */ + CAb[ 0 ] = CAf[ 0 ] = C0 + silk_SMMUL( SILK_FIX_CONST( FIND_LPC_COND_FAC, 32 ), C0 ) + 1; /* Q(-rshifts) */ + + invGain_Q30 = (opus_int32)1 << 30; + reached_max_gain = 0; + for( n = 0; n < D; n++ ) { + /* Update first row of correlation matrix (without first element) */ + /* Update last row of correlation matrix (without last element, stored in reversed order) */ + /* Update C * Af */ + /* Update C * flipud(Af) (stored in reversed order) */ + if( rshifts > -2 ) { + for( s = 0; s < nb_subfr; s++ ) { + x_ptr = x + s * subfr_length; + x1 = -silk_LSHIFT32( (opus_int32)x_ptr[ n ], 16 - rshifts ); /* Q(16-rshifts) */ + x2 = -silk_LSHIFT32( (opus_int32)x_ptr[ subfr_length - n - 1 ], 16 - rshifts ); /* Q(16-rshifts) */ + tmp1 = silk_LSHIFT32( (opus_int32)x_ptr[ n ], QA - 16 ); /* Q(QA-16) */ + tmp2 = silk_LSHIFT32( (opus_int32)x_ptr[ subfr_length - n - 1 ], QA - 16 ); /* Q(QA-16) */ + for( k = 0; k < n; k++ ) { + C_first_row[ k ] = silk_SMLAWB( C_first_row[ k ], x1, x_ptr[ n - k - 1 ] ); /* Q( -rshifts ) */ + C_last_row[ k ] = silk_SMLAWB( C_last_row[ k ], x2, x_ptr[ subfr_length - n + k ] ); /* Q( -rshifts ) */ + Atmp_QA = Af_QA[ k ]; + tmp1 = silk_SMLAWB( tmp1, Atmp_QA, x_ptr[ n - k - 1 ] ); /* Q(QA-16) */ + tmp2 = silk_SMLAWB( tmp2, Atmp_QA, x_ptr[ subfr_length - n + k ] ); /* Q(QA-16) */ + } + tmp1 = silk_LSHIFT32( -tmp1, 32 - QA - rshifts ); /* Q(16-rshifts) */ + tmp2 = silk_LSHIFT32( -tmp2, 32 - QA - rshifts ); /* Q(16-rshifts) */ + for( k = 0; k <= n; k++ ) { + CAf[ k ] = silk_SMLAWB( CAf[ k ], tmp1, x_ptr[ n - k ] ); /* Q( -rshift ) */ + CAb[ k ] = silk_SMLAWB( CAb[ k ], tmp2, x_ptr[ subfr_length - n + k - 1 ] ); /* Q( -rshift ) */ + } + } + } else { + for( s = 0; s < nb_subfr; s++ ) { + x_ptr = x + s * subfr_length; + x1 = -silk_LSHIFT32( (opus_int32)x_ptr[ n ], -rshifts ); /* Q( -rshifts ) */ + x2 = -silk_LSHIFT32( (opus_int32)x_ptr[ subfr_length - n - 1 ], -rshifts ); /* Q( -rshifts ) */ + tmp1 = silk_LSHIFT32( (opus_int32)x_ptr[ n ], 17 ); /* Q17 */ + tmp2 = silk_LSHIFT32( (opus_int32)x_ptr[ subfr_length - n - 1 ], 17 ); /* Q17 */ + for( k = 0; k < n; k++ ) { + C_first_row[ k ] = silk_MLA( C_first_row[ k ], x1, x_ptr[ n - k - 1 ] ); /* Q( -rshifts ) */ + C_last_row[ k ] = silk_MLA( C_last_row[ k ], x2, x_ptr[ subfr_length - n + k ] ); /* Q( -rshifts ) */ + Atmp1 = silk_RSHIFT_ROUND( Af_QA[ k ], QA - 17 ); /* Q17 */ + /* We sometimes have get overflows in the multiplications (even beyond +/- 2^32), + but they cancel each other and the real result seems to always fit in a 32-bit + signed integer. This was determined experimentally, not theoretically (unfortunately). */ + tmp1 = silk_MLA_ovflw( tmp1, x_ptr[ n - k - 1 ], Atmp1 ); /* Q17 */ + tmp2 = silk_MLA_ovflw( tmp2, x_ptr[ subfr_length - n + k ], Atmp1 ); /* Q17 */ + } + tmp1 = -tmp1; /* Q17 */ + tmp2 = -tmp2; /* Q17 */ + for( k = 0; k <= n; k++ ) { + CAf[ k ] = silk_SMLAWW( CAf[ k ], tmp1, + silk_LSHIFT32( (opus_int32)x_ptr[ n - k ], -rshifts - 1 ) ); /* Q( -rshift ) */ + CAb[ k ] = silk_SMLAWW( CAb[ k ], tmp2, + silk_LSHIFT32( (opus_int32)x_ptr[ subfr_length - n + k - 1 ], -rshifts - 1 ) ); /* Q( -rshift ) */ + } + } + } + + /* Calculate nominator and denominator for the next order reflection (parcor) coefficient */ + tmp1 = C_first_row[ n ]; /* Q( -rshifts ) */ + tmp2 = C_last_row[ n ]; /* Q( -rshifts ) */ + num = 0; /* Q( -rshifts ) */ + nrg = silk_ADD32( CAb[ 0 ], CAf[ 0 ] ); /* Q( 1-rshifts ) */ + for( k = 0; k < n; k++ ) { + Atmp_QA = Af_QA[ k ]; + lz = silk_CLZ32( silk_abs( Atmp_QA ) ) - 1; + lz = silk_min( 32 - QA, lz ); + Atmp1 = silk_LSHIFT32( Atmp_QA, lz ); /* Q( QA + lz ) */ + + tmp1 = silk_ADD_LSHIFT32( tmp1, silk_SMMUL( C_last_row[ n - k - 1 ], Atmp1 ), 32 - QA - lz ); /* Q( -rshifts ) */ + tmp2 = silk_ADD_LSHIFT32( tmp2, silk_SMMUL( C_first_row[ n - k - 1 ], Atmp1 ), 32 - QA - lz ); /* Q( -rshifts ) */ + num = silk_ADD_LSHIFT32( num, silk_SMMUL( CAb[ n - k ], Atmp1 ), 32 - QA - lz ); /* Q( -rshifts ) */ + nrg = silk_ADD_LSHIFT32( nrg, silk_SMMUL( silk_ADD32( CAb[ k + 1 ], CAf[ k + 1 ] ), + Atmp1 ), 32 - QA - lz ); /* Q( 1-rshifts ) */ + } + CAf[ n + 1 ] = tmp1; /* Q( -rshifts ) */ + CAb[ n + 1 ] = tmp2; /* Q( -rshifts ) */ + num = silk_ADD32( num, tmp2 ); /* Q( -rshifts ) */ + num = silk_LSHIFT32( -num, 1 ); /* Q( 1-rshifts ) */ + + /* Calculate the next order reflection (parcor) coefficient */ + if( silk_abs( num ) < nrg ) { + rc_Q31 = silk_DIV32_varQ( num, nrg, 31 ); + } else { + rc_Q31 = ( num > 0 ) ? silk_int32_MAX : silk_int32_MIN; + } + + /* Update inverse prediction gain */ + tmp1 = ( (opus_int32)1 << 30 ) - silk_SMMUL( rc_Q31, rc_Q31 ); + tmp1 = silk_LSHIFT( silk_SMMUL( invGain_Q30, tmp1 ), 2 ); + if( tmp1 <= minInvGain_Q30 ) { + /* Max prediction gain exceeded; set reflection coefficient such that max prediction gain is exactly hit */ + tmp2 = ( (opus_int32)1 << 30 ) - silk_DIV32_varQ( minInvGain_Q30, invGain_Q30, 30 ); /* Q30 */ + rc_Q31 = silk_SQRT_APPROX( tmp2 ); /* Q15 */ + if( rc_Q31 > 0 ) { + /* Newton-Raphson iteration */ + rc_Q31 = silk_RSHIFT32( rc_Q31 + silk_DIV32( tmp2, rc_Q31 ), 1 ); /* Q15 */ + rc_Q31 = silk_LSHIFT32( rc_Q31, 16 ); /* Q31 */ + if( num < 0 ) { + /* Ensure adjusted reflection coefficients has the original sign */ + rc_Q31 = -rc_Q31; + } + } + invGain_Q30 = minInvGain_Q30; + reached_max_gain = 1; + } else { + invGain_Q30 = tmp1; + } + + /* Update the AR coefficients */ + for( k = 0; k < (n + 1) >> 1; k++ ) { + tmp1 = Af_QA[ k ]; /* QA */ + tmp2 = Af_QA[ n - k - 1 ]; /* QA */ + Af_QA[ k ] = silk_ADD_LSHIFT32( tmp1, silk_SMMUL( tmp2, rc_Q31 ), 1 ); /* QA */ + Af_QA[ n - k - 1 ] = silk_ADD_LSHIFT32( tmp2, silk_SMMUL( tmp1, rc_Q31 ), 1 ); /* QA */ + } + Af_QA[ n ] = silk_RSHIFT32( rc_Q31, 31 - QA ); /* QA */ + + if( reached_max_gain ) { + /* Reached max prediction gain; set remaining coefficients to zero and exit loop */ + for( k = n + 1; k < D; k++ ) { + Af_QA[ k ] = 0; + } + break; + } + + /* Update C * Af and C * Ab */ + for( k = 0; k <= n + 1; k++ ) { + tmp1 = CAf[ k ]; /* Q( -rshifts ) */ + tmp2 = CAb[ n - k + 1 ]; /* Q( -rshifts ) */ + CAf[ k ] = silk_ADD_LSHIFT32( tmp1, silk_SMMUL( tmp2, rc_Q31 ), 1 ); /* Q( -rshifts ) */ + CAb[ n - k + 1 ] = silk_ADD_LSHIFT32( tmp2, silk_SMMUL( tmp1, rc_Q31 ), 1 ); /* Q( -rshifts ) */ + } + } + + if( reached_max_gain ) { + for( k = 0; k < D; k++ ) { + /* Scale coefficients */ + A_Q16[ k ] = -silk_RSHIFT_ROUND( Af_QA[ k ], QA - 16 ); + } + /* Subtract energy of preceding samples from C0 */ + if( rshifts > 0 ) { + for( s = 0; s < nb_subfr; s++ ) { + x_ptr = x + s * subfr_length; + C0 -= (opus_int32)silk_RSHIFT64( silk_inner_prod16_aligned_64( x_ptr, x_ptr, D, arch ), rshifts ); + } + } else { + for( s = 0; s < nb_subfr; s++ ) { + x_ptr = x + s * subfr_length; + C0 -= silk_LSHIFT32( silk_inner_prod_aligned( x_ptr, x_ptr, D, arch), -rshifts); + } + } + /* Approximate residual energy */ + *res_nrg = silk_LSHIFT( silk_SMMUL( invGain_Q30, C0 ), 2 ); + *res_nrg_Q = -rshifts; + } else { + /* Return residual energy */ + nrg = CAf[ 0 ]; /* Q( -rshifts ) */ + tmp1 = (opus_int32)1 << 16; /* Q16 */ + for( k = 0; k < D; k++ ) { + Atmp1 = silk_RSHIFT_ROUND( Af_QA[ k ], QA - 16 ); /* Q16 */ + nrg = silk_SMLAWW( nrg, CAf[ k + 1 ], Atmp1 ); /* Q( -rshifts ) */ + tmp1 = silk_SMLAWW( tmp1, Atmp1, Atmp1 ); /* Q16 */ + A_Q16[ k ] = -Atmp1; + } + *res_nrg = silk_SMLAWW( nrg, silk_SMMUL( SILK_FIX_CONST( FIND_LPC_COND_FAC, 32 ), C0 ), -tmp1 );/* Q( -rshifts ) */ + *res_nrg_Q = -rshifts; + } +} diff --git a/components/opus/libopus/silk/fixed/corrMatrix_FIX.c b/components/opus/libopus/silk/fixed/corrMatrix_FIX.c new file mode 100644 index 0000000..1b4a29c --- /dev/null +++ b/components/opus/libopus/silk/fixed/corrMatrix_FIX.c @@ -0,0 +1,150 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +/********************************************************************** + * Correlation Matrix Computations for LS estimate. + **********************************************************************/ + +#include "main_FIX.h" + +/* Calculates correlation vector X'*t */ +void silk_corrVector_FIX( + const opus_int16 *x, /* I x vector [L + order - 1] used to form data matrix X */ + const opus_int16 *t, /* I Target vector [L] */ + const opus_int L, /* I Length of vectors */ + const opus_int order, /* I Max lag for correlation */ + opus_int32 *Xt, /* O Pointer to X'*t correlation vector [order] */ + const opus_int rshifts, /* I Right shifts of correlations */ + int arch /* I Run-time architecture */ +) +{ + opus_int lag, i; + const opus_int16 *ptr1, *ptr2; + opus_int32 inner_prod; + + ptr1 = &x[ order - 1 ]; /* Points to first sample of column 0 of X: X[:,0] */ + ptr2 = t; + /* Calculate X'*t */ + if( rshifts > 0 ) { + /* Right shifting used */ + for( lag = 0; lag < order; lag++ ) { + inner_prod = 0; + for( i = 0; i < L; i++ ) { + inner_prod = silk_ADD_RSHIFT32( inner_prod, silk_SMULBB( ptr1[ i ], ptr2[i] ), rshifts ); + } + Xt[ lag ] = inner_prod; /* X[:,lag]'*t */ + ptr1--; /* Go to next column of X */ + } + } else { + silk_assert( rshifts == 0 ); + for( lag = 0; lag < order; lag++ ) { + Xt[ lag ] = silk_inner_prod_aligned( ptr1, ptr2, L, arch ); /* X[:,lag]'*t */ + ptr1--; /* Go to next column of X */ + } + } +} + +/* Calculates correlation matrix X'*X */ +void silk_corrMatrix_FIX( + const opus_int16 *x, /* I x vector [L + order - 1] used to form data matrix X */ + const opus_int L, /* I Length of vectors */ + const opus_int order, /* I Max lag for correlation */ + opus_int32 *XX, /* O Pointer to X'*X correlation matrix [ order x order ] */ + opus_int32 *nrg, /* O Energy of x vector */ + opus_int *rshifts, /* O Right shifts of correlations and energy */ + int arch /* I Run-time architecture */ +) +{ + opus_int i, j, lag; + opus_int32 energy; + const opus_int16 *ptr1, *ptr2; + + /* Calculate energy to find shift used to fit in 32 bits */ + silk_sum_sqr_shift( nrg, rshifts, x, L + order - 1 ); + energy = *nrg; + + /* Calculate energy of first column (0) of X: X[:,0]'*X[:,0] */ + /* Remove contribution of first order - 1 samples */ + for( i = 0; i < order - 1; i++ ) { + energy -= silk_RSHIFT32( silk_SMULBB( x[ i ], x[ i ] ), *rshifts ); + } + + /* Calculate energy of remaining columns of X: X[:,j]'*X[:,j] */ + /* Fill out the diagonal of the correlation matrix */ + matrix_ptr( XX, 0, 0, order ) = energy; + silk_assert( energy >= 0 ); + ptr1 = &x[ order - 1 ]; /* First sample of column 0 of X */ + for( j = 1; j < order; j++ ) { + energy = silk_SUB32( energy, silk_RSHIFT32( silk_SMULBB( ptr1[ L - j ], ptr1[ L - j ] ), *rshifts ) ); + energy = silk_ADD32( energy, silk_RSHIFT32( silk_SMULBB( ptr1[ -j ], ptr1[ -j ] ), *rshifts ) ); + matrix_ptr( XX, j, j, order ) = energy; + silk_assert( energy >= 0 ); + } + + ptr2 = &x[ order - 2 ]; /* First sample of column 1 of X */ + /* Calculate the remaining elements of the correlation matrix */ + if( *rshifts > 0 ) { + /* Right shifting used */ + for( lag = 1; lag < order; lag++ ) { + /* Inner product of column 0 and column lag: X[:,0]'*X[:,lag] */ + energy = 0; + for( i = 0; i < L; i++ ) { + energy += silk_RSHIFT32( silk_SMULBB( ptr1[ i ], ptr2[i] ), *rshifts ); + } + /* Calculate remaining off diagonal: X[:,j]'*X[:,j + lag] */ + matrix_ptr( XX, lag, 0, order ) = energy; + matrix_ptr( XX, 0, lag, order ) = energy; + for( j = 1; j < ( order - lag ); j++ ) { + energy = silk_SUB32( energy, silk_RSHIFT32( silk_SMULBB( ptr1[ L - j ], ptr2[ L - j ] ), *rshifts ) ); + energy = silk_ADD32( energy, silk_RSHIFT32( silk_SMULBB( ptr1[ -j ], ptr2[ -j ] ), *rshifts ) ); + matrix_ptr( XX, lag + j, j, order ) = energy; + matrix_ptr( XX, j, lag + j, order ) = energy; + } + ptr2--; /* Update pointer to first sample of next column (lag) in X */ + } + } else { + for( lag = 1; lag < order; lag++ ) { + /* Inner product of column 0 and column lag: X[:,0]'*X[:,lag] */ + energy = silk_inner_prod_aligned( ptr1, ptr2, L, arch ); + matrix_ptr( XX, lag, 0, order ) = energy; + matrix_ptr( XX, 0, lag, order ) = energy; + /* Calculate remaining off diagonal: X[:,j]'*X[:,j + lag] */ + for( j = 1; j < ( order - lag ); j++ ) { + energy = silk_SUB32( energy, silk_SMULBB( ptr1[ L - j ], ptr2[ L - j ] ) ); + energy = silk_SMLABB( energy, ptr1[ -j ], ptr2[ -j ] ); + matrix_ptr( XX, lag + j, j, order ) = energy; + matrix_ptr( XX, j, lag + j, order ) = energy; + } + ptr2--;/* Update pointer to first sample of next column (lag) in X */ + } + } +} + diff --git a/components/opus/libopus/silk/fixed/encode_frame_FIX.c b/components/opus/libopus/silk/fixed/encode_frame_FIX.c new file mode 100644 index 0000000..a02bf87 --- /dev/null +++ b/components/opus/libopus/silk/fixed/encode_frame_FIX.c @@ -0,0 +1,448 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include "main_FIX.h" +#include "stack_alloc.h" +#include "tuning_parameters.h" + +/* Low Bitrate Redundancy (LBRR) encoding. Reuse all parameters but encode with lower bitrate */ +static OPUS_INLINE void silk_LBRR_encode_FIX( + silk_encoder_state_FIX *psEnc, /* I/O Pointer to Silk FIX encoder state */ + silk_encoder_control_FIX *psEncCtrl, /* I/O Pointer to Silk FIX encoder control struct */ + const opus_int16 x16[], /* I Input signal */ + opus_int condCoding /* I The type of conditional coding used so far for this frame */ +); + +void silk_encode_do_VAD_FIX( + silk_encoder_state_FIX *psEnc, /* I/O Pointer to Silk FIX encoder state */ + opus_int activity /* I Decision of Opus voice activity detector */ +) +{ + const opus_int activity_threshold = SILK_FIX_CONST( SPEECH_ACTIVITY_DTX_THRES, 8 ); + + /****************************/ + /* Voice Activity Detection */ + /****************************/ + silk_VAD_GetSA_Q8( &psEnc->sCmn, psEnc->sCmn.inputBuf + 1, psEnc->sCmn.arch ); + /* If Opus VAD is inactive and Silk VAD is active: lower Silk VAD to just under the threshold */ + if( activity == VAD_NO_ACTIVITY && psEnc->sCmn.speech_activity_Q8 >= activity_threshold ) { + psEnc->sCmn.speech_activity_Q8 = activity_threshold - 1; + } + + /**************************************************/ + /* Convert speech activity into VAD and DTX flags */ + /**************************************************/ + if( psEnc->sCmn.speech_activity_Q8 < activity_threshold ) { + psEnc->sCmn.indices.signalType = TYPE_NO_VOICE_ACTIVITY; + psEnc->sCmn.noSpeechCounter++; + if( psEnc->sCmn.noSpeechCounter <= NB_SPEECH_FRAMES_BEFORE_DTX ) { + psEnc->sCmn.inDTX = 0; + } else if( psEnc->sCmn.noSpeechCounter > MAX_CONSECUTIVE_DTX + NB_SPEECH_FRAMES_BEFORE_DTX ) { + psEnc->sCmn.noSpeechCounter = NB_SPEECH_FRAMES_BEFORE_DTX; + psEnc->sCmn.inDTX = 0; + } + psEnc->sCmn.VAD_flags[ psEnc->sCmn.nFramesEncoded ] = 0; + } else { + psEnc->sCmn.noSpeechCounter = 0; + psEnc->sCmn.inDTX = 0; + psEnc->sCmn.indices.signalType = TYPE_UNVOICED; + psEnc->sCmn.VAD_flags[ psEnc->sCmn.nFramesEncoded ] = 1; + } +} + +/****************/ +/* Encode frame */ +/****************/ +opus_int silk_encode_frame_FIX( + silk_encoder_state_FIX *psEnc, /* I/O Pointer to Silk FIX encoder state */ + opus_int32 *pnBytesOut, /* O Pointer to number of payload bytes; */ + ec_enc *psRangeEnc, /* I/O compressor data structure */ + opus_int condCoding, /* I The type of conditional coding to use */ + opus_int maxBits, /* I If > 0: maximum number of output bits */ + opus_int useCBR /* I Flag to force constant-bitrate operation */ +) +{ + silk_encoder_control_FIX sEncCtrl; + opus_int i, iter, maxIter, found_upper, found_lower, ret = 0; + opus_int16 *x_frame; + ec_enc sRangeEnc_copy, sRangeEnc_copy2; + silk_nsq_state sNSQ_copy, sNSQ_copy2; + opus_int32 seed_copy, nBits, nBits_lower, nBits_upper, gainMult_lower, gainMult_upper; + opus_int32 gainsID, gainsID_lower, gainsID_upper; + opus_int16 gainMult_Q8; + opus_int16 ec_prevLagIndex_copy; + opus_int ec_prevSignalType_copy; + opus_int8 LastGainIndex_copy2; + opus_int gain_lock[ MAX_NB_SUBFR ] = {0}; + opus_int16 best_gain_mult[ MAX_NB_SUBFR ]; + opus_int best_sum[ MAX_NB_SUBFR ]; + SAVE_STACK; + + /* This is totally unnecessary but many compilers (including gcc) are too dumb to realise it */ + LastGainIndex_copy2 = nBits_lower = nBits_upper = gainMult_lower = gainMult_upper = 0; + + psEnc->sCmn.indices.Seed = psEnc->sCmn.frameCounter++ & 3; + + /**************************************************************/ + /* Set up Input Pointers, and insert frame in input buffer */ + /*************************************************************/ + /* start of frame to encode */ + x_frame = psEnc->x_buf + psEnc->sCmn.ltp_mem_length; + + /***************************************/ + /* Ensure smooth bandwidth transitions */ + /***************************************/ + silk_LP_variable_cutoff( &psEnc->sCmn.sLP, psEnc->sCmn.inputBuf + 1, psEnc->sCmn.frame_length ); + + /*******************************************/ + /* Copy new frame to front of input buffer */ + /*******************************************/ + silk_memcpy( x_frame + LA_SHAPE_MS * psEnc->sCmn.fs_kHz, psEnc->sCmn.inputBuf + 1, psEnc->sCmn.frame_length * sizeof( opus_int16 ) ); + + if( !psEnc->sCmn.prefillFlag ) { + VARDECL( opus_int16, res_pitch ); + VARDECL( opus_uint8, ec_buf_copy ); + opus_int16 *res_pitch_frame; + + ALLOC( res_pitch, + psEnc->sCmn.la_pitch + psEnc->sCmn.frame_length + + psEnc->sCmn.ltp_mem_length, opus_int16 ); + /* start of pitch LPC residual frame */ + res_pitch_frame = res_pitch + psEnc->sCmn.ltp_mem_length; + + /*****************************************/ + /* Find pitch lags, initial LPC analysis */ + /*****************************************/ + silk_find_pitch_lags_FIX( psEnc, &sEncCtrl, res_pitch, x_frame - psEnc->sCmn.ltp_mem_length, psEnc->sCmn.arch ); + + /************************/ + /* Noise shape analysis */ + /************************/ + silk_noise_shape_analysis_FIX( psEnc, &sEncCtrl, res_pitch_frame, x_frame, psEnc->sCmn.arch ); + + /***************************************************/ + /* Find linear prediction coefficients (LPC + LTP) */ + /***************************************************/ + silk_find_pred_coefs_FIX( psEnc, &sEncCtrl, res_pitch_frame, x_frame, condCoding ); + + /****************************************/ + /* Process gains */ + /****************************************/ + silk_process_gains_FIX( psEnc, &sEncCtrl, condCoding ); + + /****************************************/ + /* Low Bitrate Redundant Encoding */ + /****************************************/ + silk_LBRR_encode_FIX( psEnc, &sEncCtrl, x_frame, condCoding ); + + /* Loop over quantizer and entropy coding to control bitrate */ + maxIter = 6; + gainMult_Q8 = SILK_FIX_CONST( 1, 8 ); + found_lower = 0; + found_upper = 0; + gainsID = silk_gains_ID( psEnc->sCmn.indices.GainsIndices, psEnc->sCmn.nb_subfr ); + gainsID_lower = -1; + gainsID_upper = -1; + /* Copy part of the input state */ + silk_memcpy( &sRangeEnc_copy, psRangeEnc, sizeof( ec_enc ) ); + silk_memcpy( &sNSQ_copy, &psEnc->sCmn.sNSQ, sizeof( silk_nsq_state ) ); + seed_copy = psEnc->sCmn.indices.Seed; + ec_prevLagIndex_copy = psEnc->sCmn.ec_prevLagIndex; + ec_prevSignalType_copy = psEnc->sCmn.ec_prevSignalType; + ALLOC( ec_buf_copy, 1275, opus_uint8 ); + for( iter = 0; ; iter++ ) { + if( gainsID == gainsID_lower ) { + nBits = nBits_lower; + } else if( gainsID == gainsID_upper ) { + nBits = nBits_upper; + } else { + /* Restore part of the input state */ + if( iter > 0 ) { + silk_memcpy( psRangeEnc, &sRangeEnc_copy, sizeof( ec_enc ) ); + silk_memcpy( &psEnc->sCmn.sNSQ, &sNSQ_copy, sizeof( silk_nsq_state ) ); + psEnc->sCmn.indices.Seed = seed_copy; + psEnc->sCmn.ec_prevLagIndex = ec_prevLagIndex_copy; + psEnc->sCmn.ec_prevSignalType = ec_prevSignalType_copy; + } + + /*****************************************/ + /* Noise shaping quantization */ + /*****************************************/ + if( psEnc->sCmn.nStatesDelayedDecision > 1 || psEnc->sCmn.warping_Q16 > 0 ) { + silk_NSQ_del_dec( &psEnc->sCmn, &psEnc->sCmn.sNSQ, &psEnc->sCmn.indices, x_frame, psEnc->sCmn.pulses, + sEncCtrl.PredCoef_Q12[ 0 ], sEncCtrl.LTPCoef_Q14, sEncCtrl.AR_Q13, sEncCtrl.HarmShapeGain_Q14, + sEncCtrl.Tilt_Q14, sEncCtrl.LF_shp_Q14, sEncCtrl.Gains_Q16, sEncCtrl.pitchL, sEncCtrl.Lambda_Q10, sEncCtrl.LTP_scale_Q14, + psEnc->sCmn.arch ); + } else { + silk_NSQ( &psEnc->sCmn, &psEnc->sCmn.sNSQ, &psEnc->sCmn.indices, x_frame, psEnc->sCmn.pulses, + sEncCtrl.PredCoef_Q12[ 0 ], sEncCtrl.LTPCoef_Q14, sEncCtrl.AR_Q13, sEncCtrl.HarmShapeGain_Q14, + sEncCtrl.Tilt_Q14, sEncCtrl.LF_shp_Q14, sEncCtrl.Gains_Q16, sEncCtrl.pitchL, sEncCtrl.Lambda_Q10, sEncCtrl.LTP_scale_Q14, + psEnc->sCmn.arch); + } + + if ( iter == maxIter && !found_lower ) { + silk_memcpy( &sRangeEnc_copy2, psRangeEnc, sizeof( ec_enc ) ); + } + + /****************************************/ + /* Encode Parameters */ + /****************************************/ + silk_encode_indices( &psEnc->sCmn, psRangeEnc, psEnc->sCmn.nFramesEncoded, 0, condCoding ); + + /****************************************/ + /* Encode Excitation Signal */ + /****************************************/ + silk_encode_pulses( psRangeEnc, psEnc->sCmn.indices.signalType, psEnc->sCmn.indices.quantOffsetType, + psEnc->sCmn.pulses, psEnc->sCmn.frame_length ); + + nBits = ec_tell( psRangeEnc ); + + /* If we still bust after the last iteration, do some damage control. */ + if ( iter == maxIter && !found_lower && nBits > maxBits ) { + silk_memcpy( psRangeEnc, &sRangeEnc_copy2, sizeof( ec_enc ) ); + + /* Keep gains the same as the last frame. */ + psEnc->sShape.LastGainIndex = sEncCtrl.lastGainIndexPrev; + for ( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { + psEnc->sCmn.indices.GainsIndices[ i ] = 4; + } + if (condCoding != CODE_CONDITIONALLY) { + psEnc->sCmn.indices.GainsIndices[ 0 ] = sEncCtrl.lastGainIndexPrev; + } + psEnc->sCmn.ec_prevLagIndex = ec_prevLagIndex_copy; + psEnc->sCmn.ec_prevSignalType = ec_prevSignalType_copy; + /* Clear all pulses. */ + for ( i = 0; i < psEnc->sCmn.frame_length; i++ ) { + psEnc->sCmn.pulses[ i ] = 0; + } + + silk_encode_indices( &psEnc->sCmn, psRangeEnc, psEnc->sCmn.nFramesEncoded, 0, condCoding ); + + silk_encode_pulses( psRangeEnc, psEnc->sCmn.indices.signalType, psEnc->sCmn.indices.quantOffsetType, + psEnc->sCmn.pulses, psEnc->sCmn.frame_length ); + + nBits = ec_tell( psRangeEnc ); + } + + if( useCBR == 0 && iter == 0 && nBits <= maxBits ) { + break; + } + } + + if( iter == maxIter ) { + if( found_lower && ( gainsID == gainsID_lower || nBits > maxBits ) ) { + /* Restore output state from earlier iteration that did meet the bitrate budget */ + silk_memcpy( psRangeEnc, &sRangeEnc_copy2, sizeof( ec_enc ) ); + celt_assert( sRangeEnc_copy2.offs <= 1275 ); + silk_memcpy( psRangeEnc->buf, ec_buf_copy, sRangeEnc_copy2.offs ); + silk_memcpy( &psEnc->sCmn.sNSQ, &sNSQ_copy2, sizeof( silk_nsq_state ) ); + psEnc->sShape.LastGainIndex = LastGainIndex_copy2; + } + break; + } + + if( nBits > maxBits ) { + if( found_lower == 0 && iter >= 2 ) { + /* Adjust the quantizer's rate/distortion tradeoff and discard previous "upper" results */ + sEncCtrl.Lambda_Q10 = silk_ADD_RSHIFT32( sEncCtrl.Lambda_Q10, sEncCtrl.Lambda_Q10, 1 ); + found_upper = 0; + gainsID_upper = -1; + } else { + found_upper = 1; + nBits_upper = nBits; + gainMult_upper = gainMult_Q8; + gainsID_upper = gainsID; + } + } else if( nBits < maxBits - 5 ) { + found_lower = 1; + nBits_lower = nBits; + gainMult_lower = gainMult_Q8; + if( gainsID != gainsID_lower ) { + gainsID_lower = gainsID; + /* Copy part of the output state */ + silk_memcpy( &sRangeEnc_copy2, psRangeEnc, sizeof( ec_enc ) ); + celt_assert( psRangeEnc->offs <= 1275 ); + silk_memcpy( ec_buf_copy, psRangeEnc->buf, psRangeEnc->offs ); + silk_memcpy( &sNSQ_copy2, &psEnc->sCmn.sNSQ, sizeof( silk_nsq_state ) ); + LastGainIndex_copy2 = psEnc->sShape.LastGainIndex; + } + } else { + /* Within 5 bits of budget: close enough */ + break; + } + + if ( !found_lower && nBits > maxBits ) { + int j; + for ( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { + int sum=0; + for ( j = i*psEnc->sCmn.subfr_length; j < (i+1)*psEnc->sCmn.subfr_length; j++ ) { + sum += abs( psEnc->sCmn.pulses[j] ); + } + if ( iter == 0 || (sum < best_sum[i] && !gain_lock[i]) ) { + best_sum[i] = sum; + best_gain_mult[i] = gainMult_Q8; + } else { + gain_lock[i] = 1; + } + } + } + if( ( found_lower & found_upper ) == 0 ) { + /* Adjust gain according to high-rate rate/distortion curve */ + if( nBits > maxBits ) { + if (gainMult_Q8 < 16384) { + gainMult_Q8 *= 2; + } else { + gainMult_Q8 = 32767; + } + } else { + opus_int32 gain_factor_Q16; + gain_factor_Q16 = silk_log2lin( silk_LSHIFT( nBits - maxBits, 7 ) / psEnc->sCmn.frame_length + SILK_FIX_CONST( 16, 7 ) ); + gainMult_Q8 = silk_SMULWB( gain_factor_Q16, gainMult_Q8 ); + } + + } else { + /* Adjust gain by interpolating */ + gainMult_Q8 = gainMult_lower + silk_DIV32_16( silk_MUL( gainMult_upper - gainMult_lower, maxBits - nBits_lower ), nBits_upper - nBits_lower ); + /* New gain multplier must be between 25% and 75% of old range (note that gainMult_upper < gainMult_lower) */ + if( gainMult_Q8 > silk_ADD_RSHIFT32( gainMult_lower, gainMult_upper - gainMult_lower, 2 ) ) { + gainMult_Q8 = silk_ADD_RSHIFT32( gainMult_lower, gainMult_upper - gainMult_lower, 2 ); + } else + if( gainMult_Q8 < silk_SUB_RSHIFT32( gainMult_upper, gainMult_upper - gainMult_lower, 2 ) ) { + gainMult_Q8 = silk_SUB_RSHIFT32( gainMult_upper, gainMult_upper - gainMult_lower, 2 ); + } + } + + for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { + opus_int16 tmp; + if ( gain_lock[i] ) { + tmp = best_gain_mult[i]; + } else { + tmp = gainMult_Q8; + } + sEncCtrl.Gains_Q16[ i ] = silk_LSHIFT_SAT32( silk_SMULWB( sEncCtrl.GainsUnq_Q16[ i ], tmp ), 8 ); + } + + /* Quantize gains */ + psEnc->sShape.LastGainIndex = sEncCtrl.lastGainIndexPrev; + silk_gains_quant( psEnc->sCmn.indices.GainsIndices, sEncCtrl.Gains_Q16, + &psEnc->sShape.LastGainIndex, condCoding == CODE_CONDITIONALLY, psEnc->sCmn.nb_subfr ); + + /* Unique identifier of gains vector */ + gainsID = silk_gains_ID( psEnc->sCmn.indices.GainsIndices, psEnc->sCmn.nb_subfr ); + } + } + + /* Update input buffer */ + silk_memmove( psEnc->x_buf, &psEnc->x_buf[ psEnc->sCmn.frame_length ], + ( psEnc->sCmn.ltp_mem_length + LA_SHAPE_MS * psEnc->sCmn.fs_kHz ) * sizeof( opus_int16 ) ); + + /* Exit without entropy coding */ + if( psEnc->sCmn.prefillFlag ) { + /* No payload */ + *pnBytesOut = 0; + RESTORE_STACK; + return ret; + } + + /* Parameters needed for next frame */ + psEnc->sCmn.prevLag = sEncCtrl.pitchL[ psEnc->sCmn.nb_subfr - 1 ]; + psEnc->sCmn.prevSignalType = psEnc->sCmn.indices.signalType; + + /****************************************/ + /* Finalize payload */ + /****************************************/ + psEnc->sCmn.first_frame_after_reset = 0; + /* Payload size */ + *pnBytesOut = silk_RSHIFT( ec_tell( psRangeEnc ) + 7, 3 ); + + RESTORE_STACK; + return ret; +} + +/* Low-Bitrate Redundancy (LBRR) encoding. Reuse all parameters but encode excitation at lower bitrate */ +static OPUS_INLINE void silk_LBRR_encode_FIX( + silk_encoder_state_FIX *psEnc, /* I/O Pointer to Silk FIX encoder state */ + silk_encoder_control_FIX *psEncCtrl, /* I/O Pointer to Silk FIX encoder control struct */ + const opus_int16 x16[], /* I Input signal */ + opus_int condCoding /* I The type of conditional coding used so far for this frame */ +) +{ + opus_int32 TempGains_Q16[ MAX_NB_SUBFR ]; + SideInfoIndices *psIndices_LBRR = &psEnc->sCmn.indices_LBRR[ psEnc->sCmn.nFramesEncoded ]; + silk_nsq_state sNSQ_LBRR; + + /*******************************************/ + /* Control use of inband LBRR */ + /*******************************************/ + if( psEnc->sCmn.LBRR_enabled && psEnc->sCmn.speech_activity_Q8 > SILK_FIX_CONST( LBRR_SPEECH_ACTIVITY_THRES, 8 ) ) { + psEnc->sCmn.LBRR_flags[ psEnc->sCmn.nFramesEncoded ] = 1; + + /* Copy noise shaping quantizer state and quantization indices from regular encoding */ + silk_memcpy( &sNSQ_LBRR, &psEnc->sCmn.sNSQ, sizeof( silk_nsq_state ) ); + silk_memcpy( psIndices_LBRR, &psEnc->sCmn.indices, sizeof( SideInfoIndices ) ); + + /* Save original gains */ + silk_memcpy( TempGains_Q16, psEncCtrl->Gains_Q16, psEnc->sCmn.nb_subfr * sizeof( opus_int32 ) ); + + if( psEnc->sCmn.nFramesEncoded == 0 || psEnc->sCmn.LBRR_flags[ psEnc->sCmn.nFramesEncoded - 1 ] == 0 ) { + /* First frame in packet or previous frame not LBRR coded */ + psEnc->sCmn.LBRRprevLastGainIndex = psEnc->sShape.LastGainIndex; + + /* Increase Gains to get target LBRR rate */ + psIndices_LBRR->GainsIndices[ 0 ] = psIndices_LBRR->GainsIndices[ 0 ] + psEnc->sCmn.LBRR_GainIncreases; + psIndices_LBRR->GainsIndices[ 0 ] = silk_min_int( psIndices_LBRR->GainsIndices[ 0 ], N_LEVELS_QGAIN - 1 ); + } + + /* Decode to get gains in sync with decoder */ + /* Overwrite unquantized gains with quantized gains */ + silk_gains_dequant( psEncCtrl->Gains_Q16, psIndices_LBRR->GainsIndices, + &psEnc->sCmn.LBRRprevLastGainIndex, condCoding == CODE_CONDITIONALLY, psEnc->sCmn.nb_subfr ); + + /*****************************************/ + /* Noise shaping quantization */ + /*****************************************/ + if( psEnc->sCmn.nStatesDelayedDecision > 1 || psEnc->sCmn.warping_Q16 > 0 ) { + silk_NSQ_del_dec( &psEnc->sCmn, &sNSQ_LBRR, psIndices_LBRR, x16, + psEnc->sCmn.pulses_LBRR[ psEnc->sCmn.nFramesEncoded ], psEncCtrl->PredCoef_Q12[ 0 ], psEncCtrl->LTPCoef_Q14, + psEncCtrl->AR_Q13, psEncCtrl->HarmShapeGain_Q14, psEncCtrl->Tilt_Q14, psEncCtrl->LF_shp_Q14, + psEncCtrl->Gains_Q16, psEncCtrl->pitchL, psEncCtrl->Lambda_Q10, psEncCtrl->LTP_scale_Q14, psEnc->sCmn.arch ); + } else { + silk_NSQ( &psEnc->sCmn, &sNSQ_LBRR, psIndices_LBRR, x16, + psEnc->sCmn.pulses_LBRR[ psEnc->sCmn.nFramesEncoded ], psEncCtrl->PredCoef_Q12[ 0 ], psEncCtrl->LTPCoef_Q14, + psEncCtrl->AR_Q13, psEncCtrl->HarmShapeGain_Q14, psEncCtrl->Tilt_Q14, psEncCtrl->LF_shp_Q14, + psEncCtrl->Gains_Q16, psEncCtrl->pitchL, psEncCtrl->Lambda_Q10, psEncCtrl->LTP_scale_Q14, psEnc->sCmn.arch ); + } + + /* Restore original gains */ + silk_memcpy( psEncCtrl->Gains_Q16, TempGains_Q16, psEnc->sCmn.nb_subfr * sizeof( opus_int32 ) ); + } +} diff --git a/components/opus/libopus/silk/fixed/find_LPC_FIX.c b/components/opus/libopus/silk/fixed/find_LPC_FIX.c new file mode 100644 index 0000000..c762a0f --- /dev/null +++ b/components/opus/libopus/silk/fixed/find_LPC_FIX.c @@ -0,0 +1,151 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main_FIX.h" +#include "stack_alloc.h" +#include "tuning_parameters.h" + +/* Finds LPC vector from correlations, and converts to NLSF */ +void silk_find_LPC_FIX( + silk_encoder_state *psEncC, /* I/O Encoder state */ + opus_int16 NLSF_Q15[], /* O NLSFs */ + const opus_int16 x[], /* I Input signal */ + const opus_int32 minInvGain_Q30 /* I Inverse of max prediction gain */ +) +{ + opus_int k, subfr_length; + opus_int32 a_Q16[ MAX_LPC_ORDER ]; + opus_int isInterpLower, shift; + opus_int32 res_nrg0, res_nrg1; + opus_int rshift0, rshift1; + + /* Used only for LSF interpolation */ + opus_int32 a_tmp_Q16[ MAX_LPC_ORDER ], res_nrg_interp, res_nrg, res_tmp_nrg; + opus_int res_nrg_interp_Q, res_nrg_Q, res_tmp_nrg_Q; + opus_int16 a_tmp_Q12[ MAX_LPC_ORDER ]; + opus_int16 NLSF0_Q15[ MAX_LPC_ORDER ]; + SAVE_STACK; + + subfr_length = psEncC->subfr_length + psEncC->predictLPCOrder; + + /* Default: no interpolation */ + psEncC->indices.NLSFInterpCoef_Q2 = 4; + + /* Burg AR analysis for the full frame */ + silk_burg_modified( &res_nrg, &res_nrg_Q, a_Q16, x, minInvGain_Q30, subfr_length, psEncC->nb_subfr, psEncC->predictLPCOrder, psEncC->arch ); + + if( psEncC->useInterpolatedNLSFs && !psEncC->first_frame_after_reset && psEncC->nb_subfr == MAX_NB_SUBFR ) { + VARDECL( opus_int16, LPC_res ); + + /* Optimal solution for last 10 ms */ + silk_burg_modified( &res_tmp_nrg, &res_tmp_nrg_Q, a_tmp_Q16, x + 2 * subfr_length, minInvGain_Q30, subfr_length, 2, psEncC->predictLPCOrder, psEncC->arch ); + + /* subtract residual energy here, as that's easier than adding it to the */ + /* residual energy of the first 10 ms in each iteration of the search below */ + shift = res_tmp_nrg_Q - res_nrg_Q; + if( shift >= 0 ) { + if( shift < 32 ) { + res_nrg = res_nrg - silk_RSHIFT( res_tmp_nrg, shift ); + } + } else { + silk_assert( shift > -32 ); + res_nrg = silk_RSHIFT( res_nrg, -shift ) - res_tmp_nrg; + res_nrg_Q = res_tmp_nrg_Q; + } + + /* Convert to NLSFs */ + silk_A2NLSF( NLSF_Q15, a_tmp_Q16, psEncC->predictLPCOrder ); + + ALLOC( LPC_res, 2 * subfr_length, opus_int16 ); + + /* Search over interpolation indices to find the one with lowest residual energy */ + for( k = 3; k >= 0; k-- ) { + /* Interpolate NLSFs for first half */ + silk_interpolate( NLSF0_Q15, psEncC->prev_NLSFq_Q15, NLSF_Q15, k, psEncC->predictLPCOrder ); + + /* Convert to LPC for residual energy evaluation */ + silk_NLSF2A( a_tmp_Q12, NLSF0_Q15, psEncC->predictLPCOrder, psEncC->arch ); + + /* Calculate residual energy with NLSF interpolation */ + silk_LPC_analysis_filter( LPC_res, x, a_tmp_Q12, 2 * subfr_length, psEncC->predictLPCOrder, psEncC->arch ); + + silk_sum_sqr_shift( &res_nrg0, &rshift0, LPC_res + psEncC->predictLPCOrder, subfr_length - psEncC->predictLPCOrder ); + silk_sum_sqr_shift( &res_nrg1, &rshift1, LPC_res + psEncC->predictLPCOrder + subfr_length, subfr_length - psEncC->predictLPCOrder ); + + /* Add subframe energies from first half frame */ + shift = rshift0 - rshift1; + if( shift >= 0 ) { + res_nrg1 = silk_RSHIFT( res_nrg1, shift ); + res_nrg_interp_Q = -rshift0; + } else { + res_nrg0 = silk_RSHIFT( res_nrg0, -shift ); + res_nrg_interp_Q = -rshift1; + } + res_nrg_interp = silk_ADD32( res_nrg0, res_nrg1 ); + + /* Compare with first half energy without NLSF interpolation, or best interpolated value so far */ + shift = res_nrg_interp_Q - res_nrg_Q; + if( shift >= 0 ) { + if( silk_RSHIFT( res_nrg_interp, shift ) < res_nrg ) { + isInterpLower = silk_TRUE; + } else { + isInterpLower = silk_FALSE; + } + } else { + if( -shift < 32 ) { + if( res_nrg_interp < silk_RSHIFT( res_nrg, -shift ) ) { + isInterpLower = silk_TRUE; + } else { + isInterpLower = silk_FALSE; + } + } else { + isInterpLower = silk_FALSE; + } + } + + /* Determine whether current interpolated NLSFs are best so far */ + if( isInterpLower == silk_TRUE ) { + /* Interpolation has lower residual energy */ + res_nrg = res_nrg_interp; + res_nrg_Q = res_nrg_interp_Q; + psEncC->indices.NLSFInterpCoef_Q2 = (opus_int8)k; + } + } + } + + if( psEncC->indices.NLSFInterpCoef_Q2 == 4 ) { + /* NLSF interpolation is currently inactive, calculate NLSFs from full frame AR coefficients */ + silk_A2NLSF( NLSF_Q15, a_Q16, psEncC->predictLPCOrder ); + } + + celt_assert( psEncC->indices.NLSFInterpCoef_Q2 == 4 || ( psEncC->useInterpolatedNLSFs && !psEncC->first_frame_after_reset && psEncC->nb_subfr == MAX_NB_SUBFR ) ); + RESTORE_STACK; +} diff --git a/components/opus/libopus/silk/fixed/find_LTP_FIX.c b/components/opus/libopus/silk/fixed/find_LTP_FIX.c new file mode 100644 index 0000000..62d4afb --- /dev/null +++ b/components/opus/libopus/silk/fixed/find_LTP_FIX.c @@ -0,0 +1,99 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main_FIX.h" +#include "tuning_parameters.h" + +void silk_find_LTP_FIX( + opus_int32 XXLTP_Q17[ MAX_NB_SUBFR * LTP_ORDER * LTP_ORDER ], /* O Correlation matrix */ + opus_int32 xXLTP_Q17[ MAX_NB_SUBFR * LTP_ORDER ], /* O Correlation vector */ + const opus_int16 r_ptr[], /* I Residual signal after LPC */ + const opus_int lag[ MAX_NB_SUBFR ], /* I LTP lags */ + const opus_int subfr_length, /* I Subframe length */ + const opus_int nb_subfr, /* I Number of subframes */ + int arch /* I Run-time architecture */ +) +{ + opus_int i, k, extra_shifts; + opus_int xx_shifts, xX_shifts, XX_shifts; + const opus_int16 *lag_ptr; + opus_int32 *XXLTP_Q17_ptr, *xXLTP_Q17_ptr; + opus_int32 xx, nrg, temp; + + xXLTP_Q17_ptr = xXLTP_Q17; + XXLTP_Q17_ptr = XXLTP_Q17; + for( k = 0; k < nb_subfr; k++ ) { + lag_ptr = r_ptr - ( lag[ k ] + LTP_ORDER / 2 ); + + silk_sum_sqr_shift( &xx, &xx_shifts, r_ptr, subfr_length + LTP_ORDER ); /* xx in Q( -xx_shifts ) */ + silk_corrMatrix_FIX( lag_ptr, subfr_length, LTP_ORDER, XXLTP_Q17_ptr, &nrg, &XX_shifts, arch ); /* XXLTP_Q17_ptr and nrg in Q( -XX_shifts ) */ + extra_shifts = xx_shifts - XX_shifts; + if( extra_shifts > 0 ) { + /* Shift XX */ + xX_shifts = xx_shifts; + for( i = 0; i < LTP_ORDER * LTP_ORDER; i++ ) { + XXLTP_Q17_ptr[ i ] = silk_RSHIFT32( XXLTP_Q17_ptr[ i ], extra_shifts ); /* Q( -xX_shifts ) */ + } + nrg = silk_RSHIFT32( nrg, extra_shifts ); /* Q( -xX_shifts ) */ + } else if( extra_shifts < 0 ) { + /* Shift xx */ + xX_shifts = XX_shifts; + xx = silk_RSHIFT32( xx, -extra_shifts ); /* Q( -xX_shifts ) */ + } else { + xX_shifts = xx_shifts; + } + silk_corrVector_FIX( lag_ptr, r_ptr, subfr_length, LTP_ORDER, xXLTP_Q17_ptr, xX_shifts, arch ); /* xXLTP_Q17_ptr in Q( -xX_shifts ) */ + + /* At this point all correlations are in Q(-xX_shifts) */ + temp = silk_SMLAWB( 1, nrg, SILK_FIX_CONST( LTP_CORR_INV_MAX, 16 ) ); + temp = silk_max( temp, xx ); +TIC(div) +#if 0 + for( i = 0; i < LTP_ORDER * LTP_ORDER; i++ ) { + XXLTP_Q17_ptr[ i ] = silk_DIV32_varQ( XXLTP_Q17_ptr[ i ], temp, 17 ); + } + for( i = 0; i < LTP_ORDER; i++ ) { + xXLTP_Q17_ptr[ i ] = silk_DIV32_varQ( xXLTP_Q17_ptr[ i ], temp, 17 ); + } +#else + for( i = 0; i < LTP_ORDER * LTP_ORDER; i++ ) { + XXLTP_Q17_ptr[ i ] = (opus_int32)( silk_LSHIFT64( (opus_int64)XXLTP_Q17_ptr[ i ], 17 ) / temp ); + } + for( i = 0; i < LTP_ORDER; i++ ) { + xXLTP_Q17_ptr[ i ] = (opus_int32)( silk_LSHIFT64( (opus_int64)xXLTP_Q17_ptr[ i ], 17 ) / temp ); + } +#endif +TOC(div) + r_ptr += subfr_length; + XXLTP_Q17_ptr += LTP_ORDER * LTP_ORDER; + xXLTP_Q17_ptr += LTP_ORDER; + } +} diff --git a/components/opus/libopus/silk/fixed/find_pitch_lags_FIX.c b/components/opus/libopus/silk/fixed/find_pitch_lags_FIX.c new file mode 100644 index 0000000..6c3379f --- /dev/null +++ b/components/opus/libopus/silk/fixed/find_pitch_lags_FIX.c @@ -0,0 +1,143 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main_FIX.h" +#include "stack_alloc.h" +#include "tuning_parameters.h" + +/* Find pitch lags */ +void silk_find_pitch_lags_FIX( + silk_encoder_state_FIX *psEnc, /* I/O encoder state */ + silk_encoder_control_FIX *psEncCtrl, /* I/O encoder control */ + opus_int16 res[], /* O residual */ + const opus_int16 x[], /* I Speech signal */ + int arch /* I Run-time architecture */ +) +{ + opus_int buf_len, i, scale; + opus_int32 thrhld_Q13, res_nrg; + const opus_int16 *x_ptr; + VARDECL( opus_int16, Wsig ); + opus_int16 *Wsig_ptr; + opus_int32 auto_corr[ MAX_FIND_PITCH_LPC_ORDER + 1 ]; + opus_int16 rc_Q15[ MAX_FIND_PITCH_LPC_ORDER ]; + opus_int32 A_Q24[ MAX_FIND_PITCH_LPC_ORDER ]; + opus_int16 A_Q12[ MAX_FIND_PITCH_LPC_ORDER ]; + SAVE_STACK; + + /******************************************/ + /* Set up buffer lengths etc based on Fs */ + /******************************************/ + buf_len = psEnc->sCmn.la_pitch + psEnc->sCmn.frame_length + psEnc->sCmn.ltp_mem_length; + + /* Safety check */ + celt_assert( buf_len >= psEnc->sCmn.pitch_LPC_win_length ); + + /*************************************/ + /* Estimate LPC AR coefficients */ + /*************************************/ + + /* Calculate windowed signal */ + + ALLOC( Wsig, psEnc->sCmn.pitch_LPC_win_length, opus_int16 ); + + /* First LA_LTP samples */ + x_ptr = x + buf_len - psEnc->sCmn.pitch_LPC_win_length; + Wsig_ptr = Wsig; + silk_apply_sine_window( Wsig_ptr, x_ptr, 1, psEnc->sCmn.la_pitch ); + + /* Middle un - windowed samples */ + Wsig_ptr += psEnc->sCmn.la_pitch; + x_ptr += psEnc->sCmn.la_pitch; + silk_memcpy( Wsig_ptr, x_ptr, ( psEnc->sCmn.pitch_LPC_win_length - silk_LSHIFT( psEnc->sCmn.la_pitch, 1 ) ) * sizeof( opus_int16 ) ); + + /* Last LA_LTP samples */ + Wsig_ptr += psEnc->sCmn.pitch_LPC_win_length - silk_LSHIFT( psEnc->sCmn.la_pitch, 1 ); + x_ptr += psEnc->sCmn.pitch_LPC_win_length - silk_LSHIFT( psEnc->sCmn.la_pitch, 1 ); + silk_apply_sine_window( Wsig_ptr, x_ptr, 2, psEnc->sCmn.la_pitch ); + + /* Calculate autocorrelation sequence */ + silk_autocorr( auto_corr, &scale, Wsig, psEnc->sCmn.pitch_LPC_win_length, psEnc->sCmn.pitchEstimationLPCOrder + 1, arch ); + + /* Add white noise, as fraction of energy */ + auto_corr[ 0 ] = silk_SMLAWB( auto_corr[ 0 ], auto_corr[ 0 ], SILK_FIX_CONST( FIND_PITCH_WHITE_NOISE_FRACTION, 16 ) ) + 1; + + /* Calculate the reflection coefficients using schur */ + res_nrg = silk_schur( rc_Q15, auto_corr, psEnc->sCmn.pitchEstimationLPCOrder ); + + /* Prediction gain */ + psEncCtrl->predGain_Q16 = silk_DIV32_varQ( auto_corr[ 0 ], silk_max_int( res_nrg, 1 ), 16 ); + + /* Convert reflection coefficients to prediction coefficients */ + silk_k2a( A_Q24, rc_Q15, psEnc->sCmn.pitchEstimationLPCOrder ); + + /* Convert From 32 bit Q24 to 16 bit Q12 coefs */ + for( i = 0; i < psEnc->sCmn.pitchEstimationLPCOrder; i++ ) { + A_Q12[ i ] = (opus_int16)silk_SAT16( silk_RSHIFT( A_Q24[ i ], 12 ) ); + } + + /* Do BWE */ + silk_bwexpander( A_Q12, psEnc->sCmn.pitchEstimationLPCOrder, SILK_FIX_CONST( FIND_PITCH_BANDWIDTH_EXPANSION, 16 ) ); + + /*****************************************/ + /* LPC analysis filtering */ + /*****************************************/ + silk_LPC_analysis_filter( res, x, A_Q12, buf_len, psEnc->sCmn.pitchEstimationLPCOrder, psEnc->sCmn.arch ); + + if( psEnc->sCmn.indices.signalType != TYPE_NO_VOICE_ACTIVITY && psEnc->sCmn.first_frame_after_reset == 0 ) { + /* Threshold for pitch estimator */ + thrhld_Q13 = SILK_FIX_CONST( 0.6, 13 ); + thrhld_Q13 = silk_SMLABB( thrhld_Q13, SILK_FIX_CONST( -0.004, 13 ), psEnc->sCmn.pitchEstimationLPCOrder ); + thrhld_Q13 = silk_SMLAWB( thrhld_Q13, SILK_FIX_CONST( -0.1, 21 ), psEnc->sCmn.speech_activity_Q8 ); + thrhld_Q13 = silk_SMLABB( thrhld_Q13, SILK_FIX_CONST( -0.15, 13 ), silk_RSHIFT( psEnc->sCmn.prevSignalType, 1 ) ); + thrhld_Q13 = silk_SMLAWB( thrhld_Q13, SILK_FIX_CONST( -0.1, 14 ), psEnc->sCmn.input_tilt_Q15 ); + thrhld_Q13 = silk_SAT16( thrhld_Q13 ); + + /*****************************************/ + /* Call pitch estimator */ + /*****************************************/ + if( silk_pitch_analysis_core( res, psEncCtrl->pitchL, &psEnc->sCmn.indices.lagIndex, &psEnc->sCmn.indices.contourIndex, + &psEnc->LTPCorr_Q15, psEnc->sCmn.prevLag, psEnc->sCmn.pitchEstimationThreshold_Q16, + (opus_int)thrhld_Q13, psEnc->sCmn.fs_kHz, psEnc->sCmn.pitchEstimationComplexity, psEnc->sCmn.nb_subfr, + psEnc->sCmn.arch) == 0 ) + { + psEnc->sCmn.indices.signalType = TYPE_VOICED; + } else { + psEnc->sCmn.indices.signalType = TYPE_UNVOICED; + } + } else { + silk_memset( psEncCtrl->pitchL, 0, sizeof( psEncCtrl->pitchL ) ); + psEnc->sCmn.indices.lagIndex = 0; + psEnc->sCmn.indices.contourIndex = 0; + psEnc->LTPCorr_Q15 = 0; + } + RESTORE_STACK; +} diff --git a/components/opus/libopus/silk/fixed/find_pred_coefs_FIX.c b/components/opus/libopus/silk/fixed/find_pred_coefs_FIX.c new file mode 100644 index 0000000..606d863 --- /dev/null +++ b/components/opus/libopus/silk/fixed/find_pred_coefs_FIX.c @@ -0,0 +1,145 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main_FIX.h" +#include "stack_alloc.h" + +void silk_find_pred_coefs_FIX( + silk_encoder_state_FIX *psEnc, /* I/O encoder state */ + silk_encoder_control_FIX *psEncCtrl, /* I/O encoder control */ + const opus_int16 res_pitch[], /* I Residual from pitch analysis */ + const opus_int16 x[], /* I Speech signal */ + opus_int condCoding /* I The type of conditional coding to use */ +) +{ + opus_int i; + opus_int32 invGains_Q16[ MAX_NB_SUBFR ], local_gains[ MAX_NB_SUBFR ]; + opus_int16 NLSF_Q15[ MAX_LPC_ORDER ]; + const opus_int16 *x_ptr; + opus_int16 *x_pre_ptr; + VARDECL( opus_int16, LPC_in_pre ); + opus_int32 min_gain_Q16, minInvGain_Q30; + SAVE_STACK; + + /* weighting for weighted least squares */ + min_gain_Q16 = silk_int32_MAX >> 6; + for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { + min_gain_Q16 = silk_min( min_gain_Q16, psEncCtrl->Gains_Q16[ i ] ); + } + for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { + /* Divide to Q16 */ + silk_assert( psEncCtrl->Gains_Q16[ i ] > 0 ); + /* Invert and normalize gains, and ensure that maximum invGains_Q16 is within range of a 16 bit int */ + invGains_Q16[ i ] = silk_DIV32_varQ( min_gain_Q16, psEncCtrl->Gains_Q16[ i ], 16 - 2 ); + + /* Limit inverse */ + invGains_Q16[ i ] = silk_max( invGains_Q16[ i ], 100 ); + + /* Square the inverted gains */ + silk_assert( invGains_Q16[ i ] == silk_SAT16( invGains_Q16[ i ] ) ); + + /* Invert the inverted and normalized gains */ + local_gains[ i ] = silk_DIV32( ( (opus_int32)1 << 16 ), invGains_Q16[ i ] ); + } + + ALLOC( LPC_in_pre, + psEnc->sCmn.nb_subfr * psEnc->sCmn.predictLPCOrder + + psEnc->sCmn.frame_length, opus_int16 ); + if( psEnc->sCmn.indices.signalType == TYPE_VOICED ) { + VARDECL( opus_int32, xXLTP_Q17 ); + VARDECL( opus_int32, XXLTP_Q17 ); + + /**********/ + /* VOICED */ + /**********/ + celt_assert( psEnc->sCmn.ltp_mem_length - psEnc->sCmn.predictLPCOrder >= psEncCtrl->pitchL[ 0 ] + LTP_ORDER / 2 ); + + ALLOC( xXLTP_Q17, psEnc->sCmn.nb_subfr * LTP_ORDER, opus_int32 ); + ALLOC( XXLTP_Q17, psEnc->sCmn.nb_subfr * LTP_ORDER * LTP_ORDER, opus_int32 ); + + /* LTP analysis */ + silk_find_LTP_FIX( XXLTP_Q17, xXLTP_Q17, res_pitch, + psEncCtrl->pitchL, psEnc->sCmn.subfr_length, psEnc->sCmn.nb_subfr, psEnc->sCmn.arch ); + + /* Quantize LTP gain parameters */ + silk_quant_LTP_gains( psEncCtrl->LTPCoef_Q14, psEnc->sCmn.indices.LTPIndex, &psEnc->sCmn.indices.PERIndex, + &psEnc->sCmn.sum_log_gain_Q7, &psEncCtrl->LTPredCodGain_Q7, XXLTP_Q17, xXLTP_Q17, psEnc->sCmn.subfr_length, psEnc->sCmn.nb_subfr, psEnc->sCmn.arch ); + + /* Control LTP scaling */ + silk_LTP_scale_ctrl_FIX( psEnc, psEncCtrl, condCoding ); + + /* Create LTP residual */ + silk_LTP_analysis_filter_FIX( LPC_in_pre, x - psEnc->sCmn.predictLPCOrder, psEncCtrl->LTPCoef_Q14, + psEncCtrl->pitchL, invGains_Q16, psEnc->sCmn.subfr_length, psEnc->sCmn.nb_subfr, psEnc->sCmn.predictLPCOrder ); + + } else { + /************/ + /* UNVOICED */ + /************/ + /* Create signal with prepended subframes, scaled by inverse gains */ + x_ptr = x - psEnc->sCmn.predictLPCOrder; + x_pre_ptr = LPC_in_pre; + for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { + silk_scale_copy_vector16( x_pre_ptr, x_ptr, invGains_Q16[ i ], + psEnc->sCmn.subfr_length + psEnc->sCmn.predictLPCOrder ); + x_pre_ptr += psEnc->sCmn.subfr_length + psEnc->sCmn.predictLPCOrder; + x_ptr += psEnc->sCmn.subfr_length; + } + + silk_memset( psEncCtrl->LTPCoef_Q14, 0, psEnc->sCmn.nb_subfr * LTP_ORDER * sizeof( opus_int16 ) ); + psEncCtrl->LTPredCodGain_Q7 = 0; + psEnc->sCmn.sum_log_gain_Q7 = 0; + } + + /* Limit on total predictive coding gain */ + if( psEnc->sCmn.first_frame_after_reset ) { + minInvGain_Q30 = SILK_FIX_CONST( 1.0f / MAX_PREDICTION_POWER_GAIN_AFTER_RESET, 30 ); + } else { + minInvGain_Q30 = silk_log2lin( silk_SMLAWB( 16 << 7, (opus_int32)psEncCtrl->LTPredCodGain_Q7, SILK_FIX_CONST( 1.0 / 3, 16 ) ) ); /* Q16 */ + minInvGain_Q30 = silk_DIV32_varQ( minInvGain_Q30, + silk_SMULWW( SILK_FIX_CONST( MAX_PREDICTION_POWER_GAIN, 0 ), + silk_SMLAWB( SILK_FIX_CONST( 0.25, 18 ), SILK_FIX_CONST( 0.75, 18 ), psEncCtrl->coding_quality_Q14 ) ), 14 ); + } + + /* LPC_in_pre contains the LTP-filtered input for voiced, and the unfiltered input for unvoiced */ + silk_find_LPC_FIX( &psEnc->sCmn, NLSF_Q15, LPC_in_pre, minInvGain_Q30 ); + + /* Quantize LSFs */ + silk_process_NLSFs( &psEnc->sCmn, psEncCtrl->PredCoef_Q12, NLSF_Q15, psEnc->sCmn.prev_NLSFq_Q15 ); + + /* Calculate residual energy using quantized LPC coefficients */ + silk_residual_energy_FIX( psEncCtrl->ResNrg, psEncCtrl->ResNrgQ, LPC_in_pre, psEncCtrl->PredCoef_Q12, local_gains, + psEnc->sCmn.subfr_length, psEnc->sCmn.nb_subfr, psEnc->sCmn.predictLPCOrder, psEnc->sCmn.arch ); + + /* Copy to prediction struct for use in next frame for interpolation */ + silk_memcpy( psEnc->sCmn.prev_NLSFq_Q15, NLSF_Q15, sizeof( psEnc->sCmn.prev_NLSFq_Q15 ) ); + RESTORE_STACK; +} diff --git a/components/opus/libopus/silk/fixed/k2a_FIX.c b/components/opus/libopus/silk/fixed/k2a_FIX.c new file mode 100644 index 0000000..549f6ea --- /dev/null +++ b/components/opus/libopus/silk/fixed/k2a_FIX.c @@ -0,0 +1,54 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "SigProc_FIX.h" + +/* Step up function, converts reflection coefficients to prediction coefficients */ +void silk_k2a( + opus_int32 *A_Q24, /* O Prediction coefficients [order] Q24 */ + const opus_int16 *rc_Q15, /* I Reflection coefficients [order] Q15 */ + const opus_int32 order /* I Prediction order */ +) +{ + opus_int k, n; + opus_int32 rc, tmp1, tmp2; + + for( k = 0; k < order; k++ ) { + rc = rc_Q15[ k ]; + for( n = 0; n < (k + 1) >> 1; n++ ) { + tmp1 = A_Q24[ n ]; + tmp2 = A_Q24[ k - n - 1 ]; + A_Q24[ n ] = silk_SMLAWB( tmp1, silk_LSHIFT( tmp2, 1 ), rc ); + A_Q24[ k - n - 1 ] = silk_SMLAWB( tmp2, silk_LSHIFT( tmp1, 1 ), rc ); + } + A_Q24[ k ] = -silk_LSHIFT( (opus_int32)rc_Q15[ k ], 9 ); + } +} diff --git a/components/opus/libopus/silk/fixed/k2a_Q16_FIX.c b/components/opus/libopus/silk/fixed/k2a_Q16_FIX.c new file mode 100644 index 0000000..1595aa6 --- /dev/null +++ b/components/opus/libopus/silk/fixed/k2a_Q16_FIX.c @@ -0,0 +1,54 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "SigProc_FIX.h" + +/* Step up function, converts reflection coefficients to prediction coefficients */ +void silk_k2a_Q16( + opus_int32 *A_Q24, /* O Prediction coefficients [order] Q24 */ + const opus_int32 *rc_Q16, /* I Reflection coefficients [order] Q16 */ + const opus_int32 order /* I Prediction order */ +) +{ + opus_int k, n; + opus_int32 rc, tmp1, tmp2; + + for( k = 0; k < order; k++ ) { + rc = rc_Q16[ k ]; + for( n = 0; n < (k + 1) >> 1; n++ ) { + tmp1 = A_Q24[ n ]; + tmp2 = A_Q24[ k - n - 1 ]; + A_Q24[ n ] = silk_SMLAWW( tmp1, tmp2, rc ); + A_Q24[ k - n - 1 ] = silk_SMLAWW( tmp2, tmp1, rc ); + } + A_Q24[ k ] = -silk_LSHIFT( rc, 8 ); + } +} diff --git a/components/opus/libopus/silk/fixed/main_FIX.h b/components/opus/libopus/silk/fixed/main_FIX.h new file mode 100644 index 0000000..6d2112e --- /dev/null +++ b/components/opus/libopus/silk/fixed/main_FIX.h @@ -0,0 +1,244 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifndef SILK_MAIN_FIX_H +#define SILK_MAIN_FIX_H + +#include "SigProc_FIX.h" +#include "structs_FIX.h" +#include "control.h" +#include "main.h" +#include "PLC.h" +#include "debug.h" +#include "entenc.h" + +#if ((defined(OPUS_ARM_ASM) && defined(FIXED_POINT)) \ + || defined(OPUS_ARM_MAY_HAVE_NEON_INTR)) +#include "fixed/arm/warped_autocorrelation_FIX_arm.h" +#endif + +#ifndef FORCE_CPP_BUILD +#ifdef __cplusplus +extern "C" +{ +#endif +#endif + +#define silk_encoder_state_Fxx silk_encoder_state_FIX +#define silk_encode_do_VAD_Fxx silk_encode_do_VAD_FIX +#define silk_encode_frame_Fxx silk_encode_frame_FIX + +#define QC 10 +#define QS 13 + +/*********************/ +/* Encoder Functions */ +/*********************/ + +/* High-pass filter with cutoff frequency adaptation based on pitch lag statistics */ +void silk_HP_variable_cutoff( + silk_encoder_state_Fxx state_Fxx[] /* I/O Encoder states */ +); + +/* Encoder main function */ +void silk_encode_do_VAD_FIX( + silk_encoder_state_FIX *psEnc, /* I/O Pointer to Silk FIX encoder state */ + opus_int activity /* I Decision of Opus voice activity detector */ +); + +/* Encoder main function */ +opus_int silk_encode_frame_FIX( + silk_encoder_state_FIX *psEnc, /* I/O Pointer to Silk FIX encoder state */ + opus_int32 *pnBytesOut, /* O Pointer to number of payload bytes; */ + ec_enc *psRangeEnc, /* I/O compressor data structure */ + opus_int condCoding, /* I The type of conditional coding to use */ + opus_int maxBits, /* I If > 0: maximum number of output bits */ + opus_int useCBR /* I Flag to force constant-bitrate operation */ +); + +/* Initializes the Silk encoder state */ +opus_int silk_init_encoder( + silk_encoder_state_Fxx *psEnc, /* I/O Pointer to Silk FIX encoder state */ + int arch /* I Run-time architecture */ +); + +/* Control the Silk encoder */ +opus_int silk_control_encoder( + silk_encoder_state_Fxx *psEnc, /* I/O Pointer to Silk encoder state */ + silk_EncControlStruct *encControl, /* I Control structure */ + const opus_int allow_bw_switch, /* I Flag to allow switching audio bandwidth */ + const opus_int channelNb, /* I Channel number */ + const opus_int force_fs_kHz +); + +/**************************/ +/* Noise shaping analysis */ +/**************************/ +/* Compute noise shaping coefficients and initial gain values */ +void silk_noise_shape_analysis_FIX( + silk_encoder_state_FIX *psEnc, /* I/O Encoder state FIX */ + silk_encoder_control_FIX *psEncCtrl, /* I/O Encoder control FIX */ + const opus_int16 *pitch_res, /* I LPC residual from pitch analysis */ + const opus_int16 *x, /* I Input signal [ frame_length + la_shape ] */ + int arch /* I Run-time architecture */ +); + +/* Autocorrelations for a warped frequency axis */ +void silk_warped_autocorrelation_FIX_c( + opus_int32 *corr, /* O Result [order + 1] */ + opus_int *scale, /* O Scaling of the correlation vector */ + const opus_int16 *input, /* I Input data to correlate */ + const opus_int warping_Q16, /* I Warping coefficient */ + const opus_int length, /* I Length of input */ + const opus_int order /* I Correlation order (even) */ +); + +#if !defined(OVERRIDE_silk_warped_autocorrelation_FIX) +#define silk_warped_autocorrelation_FIX(corr, scale, input, warping_Q16, length, order, arch) \ + ((void)(arch), silk_warped_autocorrelation_FIX_c(corr, scale, input, warping_Q16, length, order)) +#endif + +/* Calculation of LTP state scaling */ +void silk_LTP_scale_ctrl_FIX( + silk_encoder_state_FIX *psEnc, /* I/O encoder state */ + silk_encoder_control_FIX *psEncCtrl, /* I/O encoder control */ + opus_int condCoding /* I The type of conditional coding to use */ +); + +/**********************************************/ +/* Prediction Analysis */ +/**********************************************/ +/* Find pitch lags */ +void silk_find_pitch_lags_FIX( + silk_encoder_state_FIX *psEnc, /* I/O encoder state */ + silk_encoder_control_FIX *psEncCtrl, /* I/O encoder control */ + opus_int16 res[], /* O residual */ + const opus_int16 x[], /* I Speech signal */ + int arch /* I Run-time architecture */ +); + +/* Find LPC and LTP coefficients */ +void silk_find_pred_coefs_FIX( + silk_encoder_state_FIX *psEnc, /* I/O encoder state */ + silk_encoder_control_FIX *psEncCtrl, /* I/O encoder control */ + const opus_int16 res_pitch[], /* I Residual from pitch analysis */ + const opus_int16 x[], /* I Speech signal */ + opus_int condCoding /* I The type of conditional coding to use */ +); + +/* LPC analysis */ +void silk_find_LPC_FIX( + silk_encoder_state *psEncC, /* I/O Encoder state */ + opus_int16 NLSF_Q15[], /* O NLSFs */ + const opus_int16 x[], /* I Input signal */ + const opus_int32 minInvGain_Q30 /* I Inverse of max prediction gain */ +); + +/* LTP analysis */ +void silk_find_LTP_FIX( + opus_int32 XXLTP_Q17[ MAX_NB_SUBFR * LTP_ORDER * LTP_ORDER ], /* O Correlation matrix */ + opus_int32 xXLTP_Q17[ MAX_NB_SUBFR * LTP_ORDER ], /* O Correlation vector */ + const opus_int16 r_lpc[], /* I Residual signal after LPC */ + const opus_int lag[ MAX_NB_SUBFR ], /* I LTP lags */ + const opus_int subfr_length, /* I Subframe length */ + const opus_int nb_subfr, /* I Number of subframes */ + int arch /* I Run-time architecture */ +); + +void silk_LTP_analysis_filter_FIX( + opus_int16 *LTP_res, /* O LTP residual signal of length MAX_NB_SUBFR * ( pre_length + subfr_length ) */ + const opus_int16 *x, /* I Pointer to input signal with at least max( pitchL ) preceding samples */ + const opus_int16 LTPCoef_Q14[ LTP_ORDER * MAX_NB_SUBFR ],/* I LTP_ORDER LTP coefficients for each MAX_NB_SUBFR subframe */ + const opus_int pitchL[ MAX_NB_SUBFR ], /* I Pitch lag, one for each subframe */ + const opus_int32 invGains_Q16[ MAX_NB_SUBFR ], /* I Inverse quantization gains, one for each subframe */ + const opus_int subfr_length, /* I Length of each subframe */ + const opus_int nb_subfr, /* I Number of subframes */ + const opus_int pre_length /* I Length of the preceding samples starting at &x[0] for each subframe */ +); + +/* Calculates residual energies of input subframes where all subframes have LPC_order */ +/* of preceding samples */ +void silk_residual_energy_FIX( + opus_int32 nrgs[ MAX_NB_SUBFR ], /* O Residual energy per subframe */ + opus_int nrgsQ[ MAX_NB_SUBFR ], /* O Q value per subframe */ + const opus_int16 x[], /* I Input signal */ + opus_int16 a_Q12[ 2 ][ MAX_LPC_ORDER ], /* I AR coefs for each frame half */ + const opus_int32 gains[ MAX_NB_SUBFR ], /* I Quantization gains */ + const opus_int subfr_length, /* I Subframe length */ + const opus_int nb_subfr, /* I Number of subframes */ + const opus_int LPC_order, /* I LPC order */ + int arch /* I Run-time architecture */ +); + +/* Residual energy: nrg = wxx - 2 * wXx * c + c' * wXX * c */ +opus_int32 silk_residual_energy16_covar_FIX( + const opus_int16 *c, /* I Prediction vector */ + const opus_int32 *wXX, /* I Correlation matrix */ + const opus_int32 *wXx, /* I Correlation vector */ + opus_int32 wxx, /* I Signal energy */ + opus_int D, /* I Dimension */ + opus_int cQ /* I Q value for c vector 0 - 15 */ +); + +/* Processing of gains */ +void silk_process_gains_FIX( + silk_encoder_state_FIX *psEnc, /* I/O Encoder state */ + silk_encoder_control_FIX *psEncCtrl, /* I/O Encoder control */ + opus_int condCoding /* I The type of conditional coding to use */ +); + +/******************/ +/* Linear Algebra */ +/******************/ +/* Calculates correlation matrix X'*X */ +void silk_corrMatrix_FIX( + const opus_int16 *x, /* I x vector [L + order - 1] used to form data matrix X */ + const opus_int L, /* I Length of vectors */ + const opus_int order, /* I Max lag for correlation */ + opus_int32 *XX, /* O Pointer to X'*X correlation matrix [ order x order ] */ + opus_int32 *nrg, /* O Energy of x vector */ + opus_int *rshifts, /* O Right shifts of correlations */ + int arch /* I Run-time architecture */ +); + +/* Calculates correlation vector X'*t */ +void silk_corrVector_FIX( + const opus_int16 *x, /* I x vector [L + order - 1] used to form data matrix X */ + const opus_int16 *t, /* I Target vector [L] */ + const opus_int L, /* I Length of vectors */ + const opus_int order, /* I Max lag for correlation */ + opus_int32 *Xt, /* O Pointer to X'*t correlation vector [order] */ + const opus_int rshifts, /* I Right shifts of correlations */ + int arch /* I Run-time architecture */ +); + +#ifndef FORCE_CPP_BUILD +#ifdef __cplusplus +} +#endif /* __cplusplus */ +#endif /* FORCE_CPP_BUILD */ +#endif /* SILK_MAIN_FIX_H */ diff --git a/components/opus/libopus/silk/fixed/mips/noise_shape_analysis_FIX_mipsr1.h b/components/opus/libopus/silk/fixed/mips/noise_shape_analysis_FIX_mipsr1.h new file mode 100644 index 0000000..3999b5b --- /dev/null +++ b/components/opus/libopus/silk/fixed/mips/noise_shape_analysis_FIX_mipsr1.h @@ -0,0 +1,336 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + + +/**************************************************************/ +/* Compute noise shaping coefficients and initial gain values */ +/**************************************************************/ +#define OVERRIDE_silk_noise_shape_analysis_FIX + +void silk_noise_shape_analysis_FIX( + silk_encoder_state_FIX *psEnc, /* I/O Encoder state FIX */ + silk_encoder_control_FIX *psEncCtrl, /* I/O Encoder control FIX */ + const opus_int16 *pitch_res, /* I LPC residual from pitch analysis */ + const opus_int16 *x, /* I Input signal [ frame_length + la_shape ] */ + int arch /* I Run-time architecture */ +) +{ + silk_shape_state_FIX *psShapeSt = &psEnc->sShape; + opus_int k, i, nSamples, Qnrg, b_Q14, warping_Q16, scale = 0; + opus_int32 SNR_adj_dB_Q7, HarmBoost_Q16, HarmShapeGain_Q16, Tilt_Q16, tmp32; + opus_int32 nrg, pre_nrg_Q30, log_energy_Q7, log_energy_prev_Q7, energy_variation_Q7; + opus_int32 delta_Q16, BWExp1_Q16, BWExp2_Q16, gain_mult_Q16, gain_add_Q16, strength_Q16, b_Q8; + opus_int32 auto_corr[ MAX_SHAPE_LPC_ORDER + 1 ]; + opus_int32 refl_coef_Q16[ MAX_SHAPE_LPC_ORDER ]; + opus_int32 AR1_Q24[ MAX_SHAPE_LPC_ORDER ]; + opus_int32 AR2_Q24[ MAX_SHAPE_LPC_ORDER ]; + VARDECL( opus_int16, x_windowed ); + const opus_int16 *x_ptr, *pitch_res_ptr; + SAVE_STACK; + + /* Point to start of first LPC analysis block */ + x_ptr = x - psEnc->sCmn.la_shape; + + /****************/ + /* GAIN CONTROL */ + /****************/ + SNR_adj_dB_Q7 = psEnc->sCmn.SNR_dB_Q7; + + /* Input quality is the average of the quality in the lowest two VAD bands */ + psEncCtrl->input_quality_Q14 = ( opus_int )silk_RSHIFT( (opus_int32)psEnc->sCmn.input_quality_bands_Q15[ 0 ] + + psEnc->sCmn.input_quality_bands_Q15[ 1 ], 2 ); + + /* Coding quality level, between 0.0_Q0 and 1.0_Q0, but in Q14 */ + psEncCtrl->coding_quality_Q14 = silk_RSHIFT( silk_sigm_Q15( silk_RSHIFT_ROUND( SNR_adj_dB_Q7 - + SILK_FIX_CONST( 20.0, 7 ), 4 ) ), 1 ); + + /* Reduce coding SNR during low speech activity */ + if( psEnc->sCmn.useCBR == 0 ) { + b_Q8 = SILK_FIX_CONST( 1.0, 8 ) - psEnc->sCmn.speech_activity_Q8; + b_Q8 = silk_SMULWB( silk_LSHIFT( b_Q8, 8 ), b_Q8 ); + SNR_adj_dB_Q7 = silk_SMLAWB( SNR_adj_dB_Q7, + silk_SMULBB( SILK_FIX_CONST( -BG_SNR_DECR_dB, 7 ) >> ( 4 + 1 ), b_Q8 ), /* Q11*/ + silk_SMULWB( SILK_FIX_CONST( 1.0, 14 ) + psEncCtrl->input_quality_Q14, psEncCtrl->coding_quality_Q14 ) ); /* Q12*/ + } + + if( psEnc->sCmn.indices.signalType == TYPE_VOICED ) { + /* Reduce gains for periodic signals */ + SNR_adj_dB_Q7 = silk_SMLAWB( SNR_adj_dB_Q7, SILK_FIX_CONST( HARM_SNR_INCR_dB, 8 ), psEnc->LTPCorr_Q15 ); + } else { + /* For unvoiced signals and low-quality input, adjust the quality slower than SNR_dB setting */ + SNR_adj_dB_Q7 = silk_SMLAWB( SNR_adj_dB_Q7, + silk_SMLAWB( SILK_FIX_CONST( 6.0, 9 ), -SILK_FIX_CONST( 0.4, 18 ), psEnc->sCmn.SNR_dB_Q7 ), + SILK_FIX_CONST( 1.0, 14 ) - psEncCtrl->input_quality_Q14 ); + } + + /*************************/ + /* SPARSENESS PROCESSING */ + /*************************/ + /* Set quantizer offset */ + if( psEnc->sCmn.indices.signalType == TYPE_VOICED ) { + /* Initially set to 0; may be overruled in process_gains(..) */ + psEnc->sCmn.indices.quantOffsetType = 0; + psEncCtrl->sparseness_Q8 = 0; + } else { + /* Sparseness measure, based on relative fluctuations of energy per 2 milliseconds */ + nSamples = silk_LSHIFT( psEnc->sCmn.fs_kHz, 1 ); + energy_variation_Q7 = 0; + log_energy_prev_Q7 = 0; + pitch_res_ptr = pitch_res; + for( k = 0; k < silk_SMULBB( SUB_FRAME_LENGTH_MS, psEnc->sCmn.nb_subfr ) / 2; k++ ) { + silk_sum_sqr_shift( &nrg, &scale, pitch_res_ptr, nSamples ); + nrg += silk_RSHIFT( nSamples, scale ); /* Q(-scale)*/ + + log_energy_Q7 = silk_lin2log( nrg ); + if( k > 0 ) { + energy_variation_Q7 += silk_abs( log_energy_Q7 - log_energy_prev_Q7 ); + } + log_energy_prev_Q7 = log_energy_Q7; + pitch_res_ptr += nSamples; + } + + psEncCtrl->sparseness_Q8 = silk_RSHIFT( silk_sigm_Q15( silk_SMULWB( energy_variation_Q7 - + SILK_FIX_CONST( 5.0, 7 ), SILK_FIX_CONST( 0.1, 16 ) ) ), 7 ); + + /* Set quantization offset depending on sparseness measure */ + if( psEncCtrl->sparseness_Q8 > SILK_FIX_CONST( SPARSENESS_THRESHOLD_QNT_OFFSET, 8 ) ) { + psEnc->sCmn.indices.quantOffsetType = 0; + } else { + psEnc->sCmn.indices.quantOffsetType = 1; + } + + /* Increase coding SNR for sparse signals */ + SNR_adj_dB_Q7 = silk_SMLAWB( SNR_adj_dB_Q7, SILK_FIX_CONST( SPARSE_SNR_INCR_dB, 15 ), psEncCtrl->sparseness_Q8 - SILK_FIX_CONST( 0.5, 8 ) ); + } + + /*******************************/ + /* Control bandwidth expansion */ + /*******************************/ + /* More BWE for signals with high prediction gain */ + strength_Q16 = silk_SMULWB( psEncCtrl->predGain_Q16, SILK_FIX_CONST( FIND_PITCH_WHITE_NOISE_FRACTION, 16 ) ); + BWExp1_Q16 = BWExp2_Q16 = silk_DIV32_varQ( SILK_FIX_CONST( BANDWIDTH_EXPANSION, 16 ), + silk_SMLAWW( SILK_FIX_CONST( 1.0, 16 ), strength_Q16, strength_Q16 ), 16 ); + delta_Q16 = silk_SMULWB( SILK_FIX_CONST( 1.0, 16 ) - silk_SMULBB( 3, psEncCtrl->coding_quality_Q14 ), + SILK_FIX_CONST( LOW_RATE_BANDWIDTH_EXPANSION_DELTA, 16 ) ); + BWExp1_Q16 = silk_SUB32( BWExp1_Q16, delta_Q16 ); + BWExp2_Q16 = silk_ADD32( BWExp2_Q16, delta_Q16 ); + /* BWExp1 will be applied after BWExp2, so make it relative */ + BWExp1_Q16 = silk_DIV32_16( silk_LSHIFT( BWExp1_Q16, 14 ), silk_RSHIFT( BWExp2_Q16, 2 ) ); + + if( psEnc->sCmn.warping_Q16 > 0 ) { + /* Slightly more warping in analysis will move quantization noise up in frequency, where it's better masked */ + warping_Q16 = silk_SMLAWB( psEnc->sCmn.warping_Q16, (opus_int32)psEncCtrl->coding_quality_Q14, SILK_FIX_CONST( 0.01, 18 ) ); + } else { + warping_Q16 = 0; + } + + /********************************************/ + /* Compute noise shaping AR coefs and gains */ + /********************************************/ + ALLOC( x_windowed, psEnc->sCmn.shapeWinLength, opus_int16 ); + for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { + /* Apply window: sine slope followed by flat part followed by cosine slope */ + opus_int shift, slope_part, flat_part; + flat_part = psEnc->sCmn.fs_kHz * 3; + slope_part = silk_RSHIFT( psEnc->sCmn.shapeWinLength - flat_part, 1 ); + + silk_apply_sine_window( x_windowed, x_ptr, 1, slope_part ); + shift = slope_part; + silk_memcpy( x_windowed + shift, x_ptr + shift, flat_part * sizeof(opus_int16) ); + shift += flat_part; + silk_apply_sine_window( x_windowed + shift, x_ptr + shift, 2, slope_part ); + + /* Update pointer: next LPC analysis block */ + x_ptr += psEnc->sCmn.subfr_length; + + if( psEnc->sCmn.warping_Q16 > 0 ) { + /* Calculate warped auto correlation */ + silk_warped_autocorrelation_FIX( auto_corr, &scale, x_windowed, warping_Q16, psEnc->sCmn.shapeWinLength, psEnc->sCmn.shapingLPCOrder, arch ); + } else { + /* Calculate regular auto correlation */ + silk_autocorr( auto_corr, &scale, x_windowed, psEnc->sCmn.shapeWinLength, psEnc->sCmn.shapingLPCOrder + 1, arch ); + } + + /* Add white noise, as a fraction of energy */ + auto_corr[0] = silk_ADD32( auto_corr[0], silk_max_32( silk_SMULWB( silk_RSHIFT( auto_corr[ 0 ], 4 ), + SILK_FIX_CONST( SHAPE_WHITE_NOISE_FRACTION, 20 ) ), 1 ) ); + + /* Calculate the reflection coefficients using schur */ + nrg = silk_schur64( refl_coef_Q16, auto_corr, psEnc->sCmn.shapingLPCOrder ); + silk_assert( nrg >= 0 ); + + /* Convert reflection coefficients to prediction coefficients */ + silk_k2a_Q16( AR2_Q24, refl_coef_Q16, psEnc->sCmn.shapingLPCOrder ); + + Qnrg = -scale; /* range: -12...30*/ + silk_assert( Qnrg >= -12 ); + silk_assert( Qnrg <= 30 ); + + /* Make sure that Qnrg is an even number */ + if( Qnrg & 1 ) { + Qnrg -= 1; + nrg >>= 1; + } + + tmp32 = silk_SQRT_APPROX( nrg ); + Qnrg >>= 1; /* range: -6...15*/ + + psEncCtrl->Gains_Q16[ k ] = (silk_LSHIFT32( silk_LIMIT( (tmp32), silk_RSHIFT32( silk_int32_MIN, (16 - Qnrg) ), \ + silk_RSHIFT32( silk_int32_MAX, (16 - Qnrg) ) ), (16 - Qnrg) )); + + if( psEnc->sCmn.warping_Q16 > 0 ) { + /* Adjust gain for warping */ + gain_mult_Q16 = warped_gain( AR2_Q24, warping_Q16, psEnc->sCmn.shapingLPCOrder ); + silk_assert( psEncCtrl->Gains_Q16[ k ] >= 0 ); + if ( silk_SMULWW( silk_RSHIFT_ROUND( psEncCtrl->Gains_Q16[ k ], 1 ), gain_mult_Q16 ) >= ( silk_int32_MAX >> 1 ) ) { + psEncCtrl->Gains_Q16[ k ] = silk_int32_MAX; + } else { + psEncCtrl->Gains_Q16[ k ] = silk_SMULWW( psEncCtrl->Gains_Q16[ k ], gain_mult_Q16 ); + } + } + + /* Bandwidth expansion for synthesis filter shaping */ + silk_bwexpander_32( AR2_Q24, psEnc->sCmn.shapingLPCOrder, BWExp2_Q16 ); + + /* Compute noise shaping filter coefficients */ + silk_memcpy( AR1_Q24, AR2_Q24, psEnc->sCmn.shapingLPCOrder * sizeof( opus_int32 ) ); + + /* Bandwidth expansion for analysis filter shaping */ + silk_assert( BWExp1_Q16 <= SILK_FIX_CONST( 1.0, 16 ) ); + silk_bwexpander_32( AR1_Q24, psEnc->sCmn.shapingLPCOrder, BWExp1_Q16 ); + + /* Ratio of prediction gains, in energy domain */ + pre_nrg_Q30 = silk_LPC_inverse_pred_gain_Q24( AR2_Q24, psEnc->sCmn.shapingLPCOrder, arch ); + nrg = silk_LPC_inverse_pred_gain_Q24( AR1_Q24, psEnc->sCmn.shapingLPCOrder, arch ); + + /*psEncCtrl->GainsPre[ k ] = 1.0f - 0.7f * ( 1.0f - pre_nrg / nrg ) = 0.3f + 0.7f * pre_nrg / nrg;*/ + pre_nrg_Q30 = silk_LSHIFT32( silk_SMULWB( pre_nrg_Q30, SILK_FIX_CONST( 0.7, 15 ) ), 1 ); + psEncCtrl->GainsPre_Q14[ k ] = ( opus_int ) SILK_FIX_CONST( 0.3, 14 ) + silk_DIV32_varQ( pre_nrg_Q30, nrg, 14 ); + + /* Convert to monic warped prediction coefficients and limit absolute values */ + limit_warped_coefs( AR2_Q24, AR1_Q24, warping_Q16, SILK_FIX_CONST( 3.999, 24 ), psEnc->sCmn.shapingLPCOrder ); + + /* Convert from Q24 to Q13 and store in int16 */ + for( i = 0; i < psEnc->sCmn.shapingLPCOrder; i++ ) { + psEncCtrl->AR1_Q13[ k * MAX_SHAPE_LPC_ORDER + i ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( AR1_Q24[ i ], 11 ) ); + psEncCtrl->AR2_Q13[ k * MAX_SHAPE_LPC_ORDER + i ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( AR2_Q24[ i ], 11 ) ); + } + } + + /*****************/ + /* Gain tweaking */ + /*****************/ + /* Increase gains during low speech activity and put lower limit on gains */ + gain_mult_Q16 = silk_log2lin( -silk_SMLAWB( -SILK_FIX_CONST( 16.0, 7 ), SNR_adj_dB_Q7, SILK_FIX_CONST( 0.16, 16 ) ) ); + gain_add_Q16 = silk_log2lin( silk_SMLAWB( SILK_FIX_CONST( 16.0, 7 ), SILK_FIX_CONST( MIN_QGAIN_DB, 7 ), SILK_FIX_CONST( 0.16, 16 ) ) ); + silk_assert( gain_mult_Q16 > 0 ); + for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { + psEncCtrl->Gains_Q16[ k ] = silk_SMULWW( psEncCtrl->Gains_Q16[ k ], gain_mult_Q16 ); + silk_assert( psEncCtrl->Gains_Q16[ k ] >= 0 ); + psEncCtrl->Gains_Q16[ k ] = silk_ADD_POS_SAT32( psEncCtrl->Gains_Q16[ k ], gain_add_Q16 ); + } + + gain_mult_Q16 = SILK_FIX_CONST( 1.0, 16 ) + silk_RSHIFT_ROUND( silk_MLA( SILK_FIX_CONST( INPUT_TILT, 26 ), + psEncCtrl->coding_quality_Q14, SILK_FIX_CONST( HIGH_RATE_INPUT_TILT, 12 ) ), 10 ); + for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { + psEncCtrl->GainsPre_Q14[ k ] = silk_SMULWB( gain_mult_Q16, psEncCtrl->GainsPre_Q14[ k ] ); + } + + /************************************************/ + /* Control low-frequency shaping and noise tilt */ + /************************************************/ + /* Less low frequency shaping for noisy inputs */ + strength_Q16 = silk_MUL( SILK_FIX_CONST( LOW_FREQ_SHAPING, 4 ), silk_SMLAWB( SILK_FIX_CONST( 1.0, 12 ), + SILK_FIX_CONST( LOW_QUALITY_LOW_FREQ_SHAPING_DECR, 13 ), psEnc->sCmn.input_quality_bands_Q15[ 0 ] - SILK_FIX_CONST( 1.0, 15 ) ) ); + strength_Q16 = silk_RSHIFT( silk_MUL( strength_Q16, psEnc->sCmn.speech_activity_Q8 ), 8 ); + if( psEnc->sCmn.indices.signalType == TYPE_VOICED ) { + /* Reduce low frequencies quantization noise for periodic signals, depending on pitch lag */ + /*f = 400; freqz([1, -0.98 + 2e-4 * f], [1, -0.97 + 7e-4 * f], 2^12, Fs); axis([0, 1000, -10, 1])*/ + opus_int fs_kHz_inv = silk_DIV32_16( SILK_FIX_CONST( 0.2, 14 ), psEnc->sCmn.fs_kHz ); + for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { + b_Q14 = fs_kHz_inv + silk_DIV32_16( SILK_FIX_CONST( 3.0, 14 ), psEncCtrl->pitchL[ k ] ); + /* Pack two coefficients in one int32 */ + psEncCtrl->LF_shp_Q14[ k ] = silk_LSHIFT( SILK_FIX_CONST( 1.0, 14 ) - b_Q14 - silk_SMULWB( strength_Q16, b_Q14 ), 16 ); + psEncCtrl->LF_shp_Q14[ k ] |= (opus_uint16)( b_Q14 - SILK_FIX_CONST( 1.0, 14 ) ); + } + silk_assert( SILK_FIX_CONST( HARM_HP_NOISE_COEF, 24 ) < SILK_FIX_CONST( 0.5, 24 ) ); /* Guarantees that second argument to SMULWB() is within range of an opus_int16*/ + Tilt_Q16 = - SILK_FIX_CONST( HP_NOISE_COEF, 16 ) - + silk_SMULWB( SILK_FIX_CONST( 1.0, 16 ) - SILK_FIX_CONST( HP_NOISE_COEF, 16 ), + silk_SMULWB( SILK_FIX_CONST( HARM_HP_NOISE_COEF, 24 ), psEnc->sCmn.speech_activity_Q8 ) ); + } else { + b_Q14 = silk_DIV32_16( 21299, psEnc->sCmn.fs_kHz ); /* 1.3_Q0 = 21299_Q14*/ + /* Pack two coefficients in one int32 */ + psEncCtrl->LF_shp_Q14[ 0 ] = silk_LSHIFT( SILK_FIX_CONST( 1.0, 14 ) - b_Q14 - + silk_SMULWB( strength_Q16, silk_SMULWB( SILK_FIX_CONST( 0.6, 16 ), b_Q14 ) ), 16 ); + psEncCtrl->LF_shp_Q14[ 0 ] |= (opus_uint16)( b_Q14 - SILK_FIX_CONST( 1.0, 14 ) ); + for( k = 1; k < psEnc->sCmn.nb_subfr; k++ ) { + psEncCtrl->LF_shp_Q14[ k ] = psEncCtrl->LF_shp_Q14[ 0 ]; + } + Tilt_Q16 = -SILK_FIX_CONST( HP_NOISE_COEF, 16 ); + } + + /****************************/ + /* HARMONIC SHAPING CONTROL */ + /****************************/ + /* Control boosting of harmonic frequencies */ + HarmBoost_Q16 = silk_SMULWB( silk_SMULWB( SILK_FIX_CONST( 1.0, 17 ) - silk_LSHIFT( psEncCtrl->coding_quality_Q14, 3 ), + psEnc->LTPCorr_Q15 ), SILK_FIX_CONST( LOW_RATE_HARMONIC_BOOST, 16 ) ); + + /* More harmonic boost for noisy input signals */ + HarmBoost_Q16 = silk_SMLAWB( HarmBoost_Q16, + SILK_FIX_CONST( 1.0, 16 ) - silk_LSHIFT( psEncCtrl->input_quality_Q14, 2 ), SILK_FIX_CONST( LOW_INPUT_QUALITY_HARMONIC_BOOST, 16 ) ); + + if( USE_HARM_SHAPING && psEnc->sCmn.indices.signalType == TYPE_VOICED ) { + /* More harmonic noise shaping for high bitrates or noisy input */ + HarmShapeGain_Q16 = silk_SMLAWB( SILK_FIX_CONST( HARMONIC_SHAPING, 16 ), + SILK_FIX_CONST( 1.0, 16 ) - silk_SMULWB( SILK_FIX_CONST( 1.0, 18 ) - silk_LSHIFT( psEncCtrl->coding_quality_Q14, 4 ), + psEncCtrl->input_quality_Q14 ), SILK_FIX_CONST( HIGH_RATE_OR_LOW_QUALITY_HARMONIC_SHAPING, 16 ) ); + + /* Less harmonic noise shaping for less periodic signals */ + HarmShapeGain_Q16 = silk_SMULWB( silk_LSHIFT( HarmShapeGain_Q16, 1 ), + silk_SQRT_APPROX( silk_LSHIFT( psEnc->LTPCorr_Q15, 15 ) ) ); + } else { + HarmShapeGain_Q16 = 0; + } + + /*************************/ + /* Smooth over subframes */ + /*************************/ + for( k = 0; k < MAX_NB_SUBFR; k++ ) { + psShapeSt->HarmBoost_smth_Q16 = + silk_SMLAWB( psShapeSt->HarmBoost_smth_Q16, HarmBoost_Q16 - psShapeSt->HarmBoost_smth_Q16, SILK_FIX_CONST( SUBFR_SMTH_COEF, 16 ) ); + psShapeSt->HarmShapeGain_smth_Q16 = + silk_SMLAWB( psShapeSt->HarmShapeGain_smth_Q16, HarmShapeGain_Q16 - psShapeSt->HarmShapeGain_smth_Q16, SILK_FIX_CONST( SUBFR_SMTH_COEF, 16 ) ); + psShapeSt->Tilt_smth_Q16 = + silk_SMLAWB( psShapeSt->Tilt_smth_Q16, Tilt_Q16 - psShapeSt->Tilt_smth_Q16, SILK_FIX_CONST( SUBFR_SMTH_COEF, 16 ) ); + + psEncCtrl->HarmBoost_Q14[ k ] = ( opus_int )silk_RSHIFT_ROUND( psShapeSt->HarmBoost_smth_Q16, 2 ); + psEncCtrl->HarmShapeGain_Q14[ k ] = ( opus_int )silk_RSHIFT_ROUND( psShapeSt->HarmShapeGain_smth_Q16, 2 ); + psEncCtrl->Tilt_Q14[ k ] = ( opus_int )silk_RSHIFT_ROUND( psShapeSt->Tilt_smth_Q16, 2 ); + } + RESTORE_STACK; +} diff --git a/components/opus/libopus/silk/fixed/mips/warped_autocorrelation_FIX_mipsr1.h b/components/opus/libopus/silk/fixed/mips/warped_autocorrelation_FIX_mipsr1.h new file mode 100644 index 0000000..66eb2ed --- /dev/null +++ b/components/opus/libopus/silk/fixed/mips/warped_autocorrelation_FIX_mipsr1.h @@ -0,0 +1,165 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifndef __WARPED_AUTOCORRELATION_FIX_MIPSR1_H__ +#define __WARPED_AUTOCORRELATION_FIX_MIPSR1_H__ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main_FIX.h" + +#undef QC +#define QC 10 + +#undef QS +#define QS 14 + +/* Autocorrelations for a warped frequency axis */ +#define OVERRIDE_silk_warped_autocorrelation_FIX_c +void silk_warped_autocorrelation_FIX_c( + opus_int32 *corr, /* O Result [order + 1] */ + opus_int *scale, /* O Scaling of the correlation vector */ + const opus_int16 *input, /* I Input data to correlate */ + const opus_int warping_Q16, /* I Warping coefficient */ + const opus_int length, /* I Length of input */ + const opus_int order /* I Correlation order (even) */ +) +{ + opus_int n, i, lsh; + opus_int32 tmp1_QS=0, tmp2_QS=0, tmp3_QS=0, tmp4_QS=0, tmp5_QS=0, tmp6_QS=0, tmp7_QS=0, tmp8_QS=0, start_1=0, start_2=0, start_3=0; + opus_int32 state_QS[ MAX_SHAPE_LPC_ORDER + 1 ] = { 0 }; + opus_int64 corr_QC[ MAX_SHAPE_LPC_ORDER + 1 ] = { 0 }; + opus_int64 temp64; + + opus_int32 val; + val = 2 * QS - QC; + + /* Order must be even */ + silk_assert( ( order & 1 ) == 0 ); + silk_assert( 2 * QS - QC >= 0 ); + + /* Loop over samples */ + for( n = 0; n < length; n=n+4 ) { + + tmp1_QS = silk_LSHIFT32( (opus_int32)input[ n ], QS ); + start_1 = tmp1_QS; + tmp3_QS = silk_LSHIFT32( (opus_int32)input[ n+1], QS ); + start_2 = tmp3_QS; + tmp5_QS = silk_LSHIFT32( (opus_int32)input[ n+2], QS ); + start_3 = tmp5_QS; + tmp7_QS = silk_LSHIFT32( (opus_int32)input[ n+3], QS ); + + /* Loop over allpass sections */ + for( i = 0; i < order; i += 2 ) { + /* Output of allpass section */ + tmp2_QS = silk_SMLAWB( state_QS[ i ], state_QS[ i + 1 ] - tmp1_QS, warping_Q16 ); + corr_QC[ i ] = __builtin_mips_madd( corr_QC[ i ], tmp1_QS, start_1); + + tmp4_QS = silk_SMLAWB( tmp1_QS, tmp2_QS - tmp3_QS, warping_Q16 ); + corr_QC[ i ] = __builtin_mips_madd( corr_QC[ i ], tmp3_QS, start_2); + + tmp6_QS = silk_SMLAWB( tmp3_QS, tmp4_QS - tmp5_QS, warping_Q16 ); + corr_QC[ i ] = __builtin_mips_madd( corr_QC[ i ], tmp5_QS, start_3); + + tmp8_QS = silk_SMLAWB( tmp5_QS, tmp6_QS - tmp7_QS, warping_Q16 ); + state_QS[ i ] = tmp7_QS; + corr_QC[ i ] = __builtin_mips_madd( corr_QC[ i ], tmp7_QS, state_QS[0]); + + /* Output of allpass section */ + tmp1_QS = silk_SMLAWB( state_QS[ i + 1 ], state_QS[ i + 2 ] - tmp2_QS, warping_Q16 ); + corr_QC[ i+1 ] = __builtin_mips_madd( corr_QC[ i+1 ], tmp2_QS, start_1); + + tmp3_QS = silk_SMLAWB( tmp2_QS, tmp1_QS - tmp4_QS, warping_Q16 ); + corr_QC[ i+1 ] = __builtin_mips_madd( corr_QC[ i+1 ], tmp4_QS, start_2); + + tmp5_QS = silk_SMLAWB( tmp4_QS, tmp3_QS - tmp6_QS, warping_Q16 ); + corr_QC[ i+1 ] = __builtin_mips_madd( corr_QC[ i+1 ], tmp6_QS, start_3); + + tmp7_QS = silk_SMLAWB( tmp6_QS, tmp5_QS - tmp8_QS, warping_Q16 ); + state_QS[ i + 1 ] = tmp8_QS; + corr_QC[ i+1 ] = __builtin_mips_madd( corr_QC[ i+1 ], tmp8_QS, state_QS[ 0 ]); + + } + state_QS[ order ] = tmp7_QS; + + corr_QC[ order ] = __builtin_mips_madd( corr_QC[ order ], tmp1_QS, start_1); + corr_QC[ order ] = __builtin_mips_madd( corr_QC[ order ], tmp3_QS, start_2); + corr_QC[ order ] = __builtin_mips_madd( corr_QC[ order ], tmp5_QS, start_3); + corr_QC[ order ] = __builtin_mips_madd( corr_QC[ order ], tmp7_QS, state_QS[ 0 ]); + } + + for(;n< length; n++ ) { + + tmp1_QS = silk_LSHIFT32( (opus_int32)input[ n ], QS ); + + /* Loop over allpass sections */ + for( i = 0; i < order; i += 2 ) { + + /* Output of allpass section */ + tmp2_QS = silk_SMLAWB( state_QS[ i ], state_QS[ i + 1 ] - tmp1_QS, warping_Q16 ); + state_QS[ i ] = tmp1_QS; + corr_QC[ i ] = __builtin_mips_madd( corr_QC[ i ], tmp1_QS, state_QS[ 0 ]); + + /* Output of allpass section */ + tmp1_QS = silk_SMLAWB( state_QS[ i + 1 ], state_QS[ i + 2 ] - tmp2_QS, warping_Q16 ); + state_QS[ i + 1 ] = tmp2_QS; + corr_QC[ i+1 ] = __builtin_mips_madd( corr_QC[ i+1 ], tmp2_QS, state_QS[ 0 ]); + } + state_QS[ order ] = tmp1_QS; + corr_QC[ order ] = __builtin_mips_madd( corr_QC[ order ], tmp1_QS, state_QS[ 0 ]); + } + + temp64 = corr_QC[ 0 ]; + temp64 = __builtin_mips_shilo(temp64, val); + + lsh = silk_CLZ64( temp64 ) - 35; + lsh = silk_LIMIT( lsh, -12 - QC, 30 - QC ); + *scale = -( QC + lsh ); + silk_assert( *scale >= -30 && *scale <= 12 ); + if( lsh >= 0 ) { + for( i = 0; i < order + 1; i++ ) { + temp64 = corr_QC[ i ]; + //temp64 = __builtin_mips_shilo(temp64, val); + temp64 = (val >= 0) ? (temp64 >> val) : (temp64 << -val); + corr[ i ] = (opus_int32)silk_CHECK_FIT32( __builtin_mips_shilo( temp64, -lsh ) ); + } + } else { + for( i = 0; i < order + 1; i++ ) { + temp64 = corr_QC[ i ]; + //temp64 = __builtin_mips_shilo(temp64, val); + temp64 = (val >= 0) ? (temp64 >> val) : (temp64 << -val); + corr[ i ] = (opus_int32)silk_CHECK_FIT32( __builtin_mips_shilo( temp64, -lsh ) ); + } + } + + corr_QC[ 0 ] = __builtin_mips_shilo(corr_QC[ 0 ], val); + + silk_assert( corr_QC[ 0 ] >= 0 ); /* If breaking, decrease QC*/ +} +#endif /* __WARPED_AUTOCORRELATION_FIX_MIPSR1_H__ */ diff --git a/components/opus/libopus/silk/fixed/noise_shape_analysis_FIX.c b/components/opus/libopus/silk/fixed/noise_shape_analysis_FIX.c new file mode 100644 index 0000000..85fea0b --- /dev/null +++ b/components/opus/libopus/silk/fixed/noise_shape_analysis_FIX.c @@ -0,0 +1,407 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main_FIX.h" +#include "stack_alloc.h" +#include "tuning_parameters.h" + +/* Compute gain to make warped filter coefficients have a zero mean log frequency response on a */ +/* non-warped frequency scale. (So that it can be implemented with a minimum-phase monic filter.) */ +/* Note: A monic filter is one with the first coefficient equal to 1.0. In Silk we omit the first */ +/* coefficient in an array of coefficients, for monic filters. */ +static OPUS_INLINE opus_int32 warped_gain( /* gain in Q16*/ + const opus_int32 *coefs_Q24, + opus_int lambda_Q16, + opus_int order +) { + opus_int i; + opus_int32 gain_Q24; + + lambda_Q16 = -lambda_Q16; + gain_Q24 = coefs_Q24[ order - 1 ]; + for( i = order - 2; i >= 0; i-- ) { + gain_Q24 = silk_SMLAWB( coefs_Q24[ i ], gain_Q24, lambda_Q16 ); + } + gain_Q24 = silk_SMLAWB( SILK_FIX_CONST( 1.0, 24 ), gain_Q24, -lambda_Q16 ); + return silk_INVERSE32_varQ( gain_Q24, 40 ); +} + +/* Convert warped filter coefficients to monic pseudo-warped coefficients and limit maximum */ +/* amplitude of monic warped coefficients by using bandwidth expansion on the true coefficients */ +static OPUS_INLINE void limit_warped_coefs( + opus_int32 *coefs_Q24, + opus_int lambda_Q16, + opus_int32 limit_Q24, + opus_int order +) { + opus_int i, iter, ind = 0; + opus_int32 tmp, maxabs_Q24, chirp_Q16, gain_Q16; + opus_int32 nom_Q16, den_Q24; + opus_int32 limit_Q20, maxabs_Q20; + + /* Convert to monic coefficients */ + lambda_Q16 = -lambda_Q16; + for( i = order - 1; i > 0; i-- ) { + coefs_Q24[ i - 1 ] = silk_SMLAWB( coefs_Q24[ i - 1 ], coefs_Q24[ i ], lambda_Q16 ); + } + lambda_Q16 = -lambda_Q16; + nom_Q16 = silk_SMLAWB( SILK_FIX_CONST( 1.0, 16 ), -(opus_int32)lambda_Q16, lambda_Q16 ); + den_Q24 = silk_SMLAWB( SILK_FIX_CONST( 1.0, 24 ), coefs_Q24[ 0 ], lambda_Q16 ); + gain_Q16 = silk_DIV32_varQ( nom_Q16, den_Q24, 24 ); + for( i = 0; i < order; i++ ) { + coefs_Q24[ i ] = silk_SMULWW( gain_Q16, coefs_Q24[ i ] ); + } + limit_Q20 = silk_RSHIFT(limit_Q24, 4); + for( iter = 0; iter < 10; iter++ ) { + /* Find maximum absolute value */ + maxabs_Q24 = -1; + for( i = 0; i < order; i++ ) { + tmp = silk_abs_int32( coefs_Q24[ i ] ); + if( tmp > maxabs_Q24 ) { + maxabs_Q24 = tmp; + ind = i; + } + } + /* Use Q20 to avoid any overflow when multiplying by (ind + 1) later. */ + maxabs_Q20 = silk_RSHIFT(maxabs_Q24, 4); + if( maxabs_Q20 <= limit_Q20 ) { + /* Coefficients are within range - done */ + return; + } + + /* Convert back to true warped coefficients */ + for( i = 1; i < order; i++ ) { + coefs_Q24[ i - 1 ] = silk_SMLAWB( coefs_Q24[ i - 1 ], coefs_Q24[ i ], lambda_Q16 ); + } + gain_Q16 = silk_INVERSE32_varQ( gain_Q16, 32 ); + for( i = 0; i < order; i++ ) { + coefs_Q24[ i ] = silk_SMULWW( gain_Q16, coefs_Q24[ i ] ); + } + + /* Apply bandwidth expansion */ + chirp_Q16 = SILK_FIX_CONST( 0.99, 16 ) - silk_DIV32_varQ( + silk_SMULWB( maxabs_Q20 - limit_Q20, silk_SMLABB( SILK_FIX_CONST( 0.8, 10 ), SILK_FIX_CONST( 0.1, 10 ), iter ) ), + silk_MUL( maxabs_Q20, ind + 1 ), 22 ); + silk_bwexpander_32( coefs_Q24, order, chirp_Q16 ); + + /* Convert to monic warped coefficients */ + lambda_Q16 = -lambda_Q16; + for( i = order - 1; i > 0; i-- ) { + coefs_Q24[ i - 1 ] = silk_SMLAWB( coefs_Q24[ i - 1 ], coefs_Q24[ i ], lambda_Q16 ); + } + lambda_Q16 = -lambda_Q16; + nom_Q16 = silk_SMLAWB( SILK_FIX_CONST( 1.0, 16 ), -(opus_int32)lambda_Q16, lambda_Q16 ); + den_Q24 = silk_SMLAWB( SILK_FIX_CONST( 1.0, 24 ), coefs_Q24[ 0 ], lambda_Q16 ); + gain_Q16 = silk_DIV32_varQ( nom_Q16, den_Q24, 24 ); + for( i = 0; i < order; i++ ) { + coefs_Q24[ i ] = silk_SMULWW( gain_Q16, coefs_Q24[ i ] ); + } + } + silk_assert( 0 ); +} + +/* Disable MIPS version until it's updated. */ +#if 0 && defined(MIPSr1_ASM) +#include "mips/noise_shape_analysis_FIX_mipsr1.h" +#endif + +/**************************************************************/ +/* Compute noise shaping coefficients and initial gain values */ +/**************************************************************/ +#ifndef OVERRIDE_silk_noise_shape_analysis_FIX +void silk_noise_shape_analysis_FIX( + silk_encoder_state_FIX *psEnc, /* I/O Encoder state FIX */ + silk_encoder_control_FIX *psEncCtrl, /* I/O Encoder control FIX */ + const opus_int16 *pitch_res, /* I LPC residual from pitch analysis */ + const opus_int16 *x, /* I Input signal [ frame_length + la_shape ] */ + int arch /* I Run-time architecture */ +) +{ + silk_shape_state_FIX *psShapeSt = &psEnc->sShape; + opus_int k, i, nSamples, nSegs, Qnrg, b_Q14, warping_Q16, scale = 0; + opus_int32 SNR_adj_dB_Q7, HarmShapeGain_Q16, Tilt_Q16, tmp32; + opus_int32 nrg, log_energy_Q7, log_energy_prev_Q7, energy_variation_Q7; + opus_int32 BWExp_Q16, gain_mult_Q16, gain_add_Q16, strength_Q16, b_Q8; + opus_int32 auto_corr[ MAX_SHAPE_LPC_ORDER + 1 ]; + opus_int32 refl_coef_Q16[ MAX_SHAPE_LPC_ORDER ]; + opus_int32 AR_Q24[ MAX_SHAPE_LPC_ORDER ]; + VARDECL( opus_int16, x_windowed ); + const opus_int16 *x_ptr, *pitch_res_ptr; + SAVE_STACK; + + /* Point to start of first LPC analysis block */ + x_ptr = x - psEnc->sCmn.la_shape; + + /****************/ + /* GAIN CONTROL */ + /****************/ + SNR_adj_dB_Q7 = psEnc->sCmn.SNR_dB_Q7; + + /* Input quality is the average of the quality in the lowest two VAD bands */ + psEncCtrl->input_quality_Q14 = ( opus_int )silk_RSHIFT( (opus_int32)psEnc->sCmn.input_quality_bands_Q15[ 0 ] + + psEnc->sCmn.input_quality_bands_Q15[ 1 ], 2 ); + + /* Coding quality level, between 0.0_Q0 and 1.0_Q0, but in Q14 */ + psEncCtrl->coding_quality_Q14 = silk_RSHIFT( silk_sigm_Q15( silk_RSHIFT_ROUND( SNR_adj_dB_Q7 - + SILK_FIX_CONST( 20.0, 7 ), 4 ) ), 1 ); + + /* Reduce coding SNR during low speech activity */ + if( psEnc->sCmn.useCBR == 0 ) { + b_Q8 = SILK_FIX_CONST( 1.0, 8 ) - psEnc->sCmn.speech_activity_Q8; + b_Q8 = silk_SMULWB( silk_LSHIFT( b_Q8, 8 ), b_Q8 ); + SNR_adj_dB_Q7 = silk_SMLAWB( SNR_adj_dB_Q7, + silk_SMULBB( SILK_FIX_CONST( -BG_SNR_DECR_dB, 7 ) >> ( 4 + 1 ), b_Q8 ), /* Q11*/ + silk_SMULWB( SILK_FIX_CONST( 1.0, 14 ) + psEncCtrl->input_quality_Q14, psEncCtrl->coding_quality_Q14 ) ); /* Q12*/ + } + + if( psEnc->sCmn.indices.signalType == TYPE_VOICED ) { + /* Reduce gains for periodic signals */ + SNR_adj_dB_Q7 = silk_SMLAWB( SNR_adj_dB_Q7, SILK_FIX_CONST( HARM_SNR_INCR_dB, 8 ), psEnc->LTPCorr_Q15 ); + } else { + /* For unvoiced signals and low-quality input, adjust the quality slower than SNR_dB setting */ + SNR_adj_dB_Q7 = silk_SMLAWB( SNR_adj_dB_Q7, + silk_SMLAWB( SILK_FIX_CONST( 6.0, 9 ), -SILK_FIX_CONST( 0.4, 18 ), psEnc->sCmn.SNR_dB_Q7 ), + SILK_FIX_CONST( 1.0, 14 ) - psEncCtrl->input_quality_Q14 ); + } + + /*************************/ + /* SPARSENESS PROCESSING */ + /*************************/ + /* Set quantizer offset */ + if( psEnc->sCmn.indices.signalType == TYPE_VOICED ) { + /* Initially set to 0; may be overruled in process_gains(..) */ + psEnc->sCmn.indices.quantOffsetType = 0; + } else { + /* Sparseness measure, based on relative fluctuations of energy per 2 milliseconds */ + nSamples = silk_LSHIFT( psEnc->sCmn.fs_kHz, 1 ); + energy_variation_Q7 = 0; + log_energy_prev_Q7 = 0; + pitch_res_ptr = pitch_res; + nSegs = silk_SMULBB( SUB_FRAME_LENGTH_MS, psEnc->sCmn.nb_subfr ) / 2; + for( k = 0; k < nSegs; k++ ) { + silk_sum_sqr_shift( &nrg, &scale, pitch_res_ptr, nSamples ); + nrg += silk_RSHIFT( nSamples, scale ); /* Q(-scale)*/ + + log_energy_Q7 = silk_lin2log( nrg ); + if( k > 0 ) { + energy_variation_Q7 += silk_abs( log_energy_Q7 - log_energy_prev_Q7 ); + } + log_energy_prev_Q7 = log_energy_Q7; + pitch_res_ptr += nSamples; + } + + /* Set quantization offset depending on sparseness measure */ + if( energy_variation_Q7 > SILK_FIX_CONST( ENERGY_VARIATION_THRESHOLD_QNT_OFFSET, 7 ) * (nSegs-1) ) { + psEnc->sCmn.indices.quantOffsetType = 0; + } else { + psEnc->sCmn.indices.quantOffsetType = 1; + } + } + + /*******************************/ + /* Control bandwidth expansion */ + /*******************************/ + /* More BWE for signals with high prediction gain */ + strength_Q16 = silk_SMULWB( psEncCtrl->predGain_Q16, SILK_FIX_CONST( FIND_PITCH_WHITE_NOISE_FRACTION, 16 ) ); + BWExp_Q16 = silk_DIV32_varQ( SILK_FIX_CONST( BANDWIDTH_EXPANSION, 16 ), + silk_SMLAWW( SILK_FIX_CONST( 1.0, 16 ), strength_Q16, strength_Q16 ), 16 ); + + if( psEnc->sCmn.warping_Q16 > 0 ) { + /* Slightly more warping in analysis will move quantization noise up in frequency, where it's better masked */ + warping_Q16 = silk_SMLAWB( psEnc->sCmn.warping_Q16, (opus_int32)psEncCtrl->coding_quality_Q14, SILK_FIX_CONST( 0.01, 18 ) ); + } else { + warping_Q16 = 0; + } + + /********************************************/ + /* Compute noise shaping AR coefs and gains */ + /********************************************/ + ALLOC( x_windowed, psEnc->sCmn.shapeWinLength, opus_int16 ); + for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { + /* Apply window: sine slope followed by flat part followed by cosine slope */ + opus_int shift, slope_part, flat_part; + flat_part = psEnc->sCmn.fs_kHz * 3; + slope_part = silk_RSHIFT( psEnc->sCmn.shapeWinLength - flat_part, 1 ); + + silk_apply_sine_window( x_windowed, x_ptr, 1, slope_part ); + shift = slope_part; + silk_memcpy( x_windowed + shift, x_ptr + shift, flat_part * sizeof(opus_int16) ); + shift += flat_part; + silk_apply_sine_window( x_windowed + shift, x_ptr + shift, 2, slope_part ); + + /* Update pointer: next LPC analysis block */ + x_ptr += psEnc->sCmn.subfr_length; + + if( psEnc->sCmn.warping_Q16 > 0 ) { + /* Calculate warped auto correlation */ + silk_warped_autocorrelation_FIX( auto_corr, &scale, x_windowed, warping_Q16, psEnc->sCmn.shapeWinLength, psEnc->sCmn.shapingLPCOrder, arch ); + } else { + /* Calculate regular auto correlation */ + silk_autocorr( auto_corr, &scale, x_windowed, psEnc->sCmn.shapeWinLength, psEnc->sCmn.shapingLPCOrder + 1, arch ); + } + + /* Add white noise, as a fraction of energy */ + auto_corr[0] = silk_ADD32( auto_corr[0], silk_max_32( silk_SMULWB( silk_RSHIFT( auto_corr[ 0 ], 4 ), + SILK_FIX_CONST( SHAPE_WHITE_NOISE_FRACTION, 20 ) ), 1 ) ); + + /* Calculate the reflection coefficients using schur */ + nrg = silk_schur64( refl_coef_Q16, auto_corr, psEnc->sCmn.shapingLPCOrder ); + silk_assert( nrg >= 0 ); + + /* Convert reflection coefficients to prediction coefficients */ + silk_k2a_Q16( AR_Q24, refl_coef_Q16, psEnc->sCmn.shapingLPCOrder ); + + Qnrg = -scale; /* range: -12...30*/ + silk_assert( Qnrg >= -12 ); + silk_assert( Qnrg <= 30 ); + + /* Make sure that Qnrg is an even number */ + if( Qnrg & 1 ) { + Qnrg -= 1; + nrg >>= 1; + } + + tmp32 = silk_SQRT_APPROX( nrg ); + Qnrg >>= 1; /* range: -6...15*/ + + psEncCtrl->Gains_Q16[ k ] = silk_LSHIFT_SAT32( tmp32, 16 - Qnrg ); + + if( psEnc->sCmn.warping_Q16 > 0 ) { + /* Adjust gain for warping */ + gain_mult_Q16 = warped_gain( AR_Q24, warping_Q16, psEnc->sCmn.shapingLPCOrder ); + silk_assert( psEncCtrl->Gains_Q16[ k ] > 0 ); + if( psEncCtrl->Gains_Q16[ k ] < SILK_FIX_CONST( 0.25, 16 ) ) { + psEncCtrl->Gains_Q16[ k ] = silk_SMULWW( psEncCtrl->Gains_Q16[ k ], gain_mult_Q16 ); + } else { + psEncCtrl->Gains_Q16[ k ] = silk_SMULWW( silk_RSHIFT_ROUND( psEncCtrl->Gains_Q16[ k ], 1 ), gain_mult_Q16 ); + if ( psEncCtrl->Gains_Q16[ k ] >= ( silk_int32_MAX >> 1 ) ) { + psEncCtrl->Gains_Q16[ k ] = silk_int32_MAX; + } else { + psEncCtrl->Gains_Q16[ k ] = silk_LSHIFT32( psEncCtrl->Gains_Q16[ k ], 1 ); + } + } + silk_assert( psEncCtrl->Gains_Q16[ k ] > 0 ); + } + + /* Bandwidth expansion */ + silk_bwexpander_32( AR_Q24, psEnc->sCmn.shapingLPCOrder, BWExp_Q16 ); + + if( psEnc->sCmn.warping_Q16 > 0 ) { + /* Convert to monic warped prediction coefficients and limit absolute values */ + limit_warped_coefs( AR_Q24, warping_Q16, SILK_FIX_CONST( 3.999, 24 ), psEnc->sCmn.shapingLPCOrder ); + + /* Convert from Q24 to Q13 and store in int16 */ + for( i = 0; i < psEnc->sCmn.shapingLPCOrder; i++ ) { + psEncCtrl->AR_Q13[ k * MAX_SHAPE_LPC_ORDER + i ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( AR_Q24[ i ], 11 ) ); + } + } else { + silk_LPC_fit( &psEncCtrl->AR_Q13[ k * MAX_SHAPE_LPC_ORDER ], AR_Q24, 13, 24, psEnc->sCmn.shapingLPCOrder ); + } + } + + /*****************/ + /* Gain tweaking */ + /*****************/ + /* Increase gains during low speech activity and put lower limit on gains */ + gain_mult_Q16 = silk_log2lin( -silk_SMLAWB( -SILK_FIX_CONST( 16.0, 7 ), SNR_adj_dB_Q7, SILK_FIX_CONST( 0.16, 16 ) ) ); + gain_add_Q16 = silk_log2lin( silk_SMLAWB( SILK_FIX_CONST( 16.0, 7 ), SILK_FIX_CONST( MIN_QGAIN_DB, 7 ), SILK_FIX_CONST( 0.16, 16 ) ) ); + silk_assert( gain_mult_Q16 > 0 ); + for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { + psEncCtrl->Gains_Q16[ k ] = silk_SMULWW( psEncCtrl->Gains_Q16[ k ], gain_mult_Q16 ); + silk_assert( psEncCtrl->Gains_Q16[ k ] >= 0 ); + psEncCtrl->Gains_Q16[ k ] = silk_ADD_POS_SAT32( psEncCtrl->Gains_Q16[ k ], gain_add_Q16 ); + } + + + /************************************************/ + /* Control low-frequency shaping and noise tilt */ + /************************************************/ + /* Less low frequency shaping for noisy inputs */ + strength_Q16 = silk_MUL( SILK_FIX_CONST( LOW_FREQ_SHAPING, 4 ), silk_SMLAWB( SILK_FIX_CONST( 1.0, 12 ), + SILK_FIX_CONST( LOW_QUALITY_LOW_FREQ_SHAPING_DECR, 13 ), psEnc->sCmn.input_quality_bands_Q15[ 0 ] - SILK_FIX_CONST( 1.0, 15 ) ) ); + strength_Q16 = silk_RSHIFT( silk_MUL( strength_Q16, psEnc->sCmn.speech_activity_Q8 ), 8 ); + if( psEnc->sCmn.indices.signalType == TYPE_VOICED ) { + /* Reduce low frequencies quantization noise for periodic signals, depending on pitch lag */ + /*f = 400; freqz([1, -0.98 + 2e-4 * f], [1, -0.97 + 7e-4 * f], 2^12, Fs); axis([0, 1000, -10, 1])*/ + opus_int fs_kHz_inv = silk_DIV32_16( SILK_FIX_CONST( 0.2, 14 ), psEnc->sCmn.fs_kHz ); + for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { + b_Q14 = fs_kHz_inv + silk_DIV32_16( SILK_FIX_CONST( 3.0, 14 ), psEncCtrl->pitchL[ k ] ); + /* Pack two coefficients in one int32 */ + psEncCtrl->LF_shp_Q14[ k ] = silk_LSHIFT( SILK_FIX_CONST( 1.0, 14 ) - b_Q14 - silk_SMULWB( strength_Q16, b_Q14 ), 16 ); + psEncCtrl->LF_shp_Q14[ k ] |= (opus_uint16)( b_Q14 - SILK_FIX_CONST( 1.0, 14 ) ); + } + silk_assert( SILK_FIX_CONST( HARM_HP_NOISE_COEF, 24 ) < SILK_FIX_CONST( 0.5, 24 ) ); /* Guarantees that second argument to SMULWB() is within range of an opus_int16*/ + Tilt_Q16 = - SILK_FIX_CONST( HP_NOISE_COEF, 16 ) - + silk_SMULWB( SILK_FIX_CONST( 1.0, 16 ) - SILK_FIX_CONST( HP_NOISE_COEF, 16 ), + silk_SMULWB( SILK_FIX_CONST( HARM_HP_NOISE_COEF, 24 ), psEnc->sCmn.speech_activity_Q8 ) ); + } else { + b_Q14 = silk_DIV32_16( 21299, psEnc->sCmn.fs_kHz ); /* 1.3_Q0 = 21299_Q14*/ + /* Pack two coefficients in one int32 */ + psEncCtrl->LF_shp_Q14[ 0 ] = silk_LSHIFT( SILK_FIX_CONST( 1.0, 14 ) - b_Q14 - + silk_SMULWB( strength_Q16, silk_SMULWB( SILK_FIX_CONST( 0.6, 16 ), b_Q14 ) ), 16 ); + psEncCtrl->LF_shp_Q14[ 0 ] |= (opus_uint16)( b_Q14 - SILK_FIX_CONST( 1.0, 14 ) ); + for( k = 1; k < psEnc->sCmn.nb_subfr; k++ ) { + psEncCtrl->LF_shp_Q14[ k ] = psEncCtrl->LF_shp_Q14[ 0 ]; + } + Tilt_Q16 = -SILK_FIX_CONST( HP_NOISE_COEF, 16 ); + } + + /****************************/ + /* HARMONIC SHAPING CONTROL */ + /****************************/ + if( USE_HARM_SHAPING && psEnc->sCmn.indices.signalType == TYPE_VOICED ) { + /* More harmonic noise shaping for high bitrates or noisy input */ + HarmShapeGain_Q16 = silk_SMLAWB( SILK_FIX_CONST( HARMONIC_SHAPING, 16 ), + SILK_FIX_CONST( 1.0, 16 ) - silk_SMULWB( SILK_FIX_CONST( 1.0, 18 ) - silk_LSHIFT( psEncCtrl->coding_quality_Q14, 4 ), + psEncCtrl->input_quality_Q14 ), SILK_FIX_CONST( HIGH_RATE_OR_LOW_QUALITY_HARMONIC_SHAPING, 16 ) ); + + /* Less harmonic noise shaping for less periodic signals */ + HarmShapeGain_Q16 = silk_SMULWB( silk_LSHIFT( HarmShapeGain_Q16, 1 ), + silk_SQRT_APPROX( silk_LSHIFT( psEnc->LTPCorr_Q15, 15 ) ) ); + } else { + HarmShapeGain_Q16 = 0; + } + + /*************************/ + /* Smooth over subframes */ + /*************************/ + for( k = 0; k < MAX_NB_SUBFR; k++ ) { + psShapeSt->HarmShapeGain_smth_Q16 = + silk_SMLAWB( psShapeSt->HarmShapeGain_smth_Q16, HarmShapeGain_Q16 - psShapeSt->HarmShapeGain_smth_Q16, SILK_FIX_CONST( SUBFR_SMTH_COEF, 16 ) ); + psShapeSt->Tilt_smth_Q16 = + silk_SMLAWB( psShapeSt->Tilt_smth_Q16, Tilt_Q16 - psShapeSt->Tilt_smth_Q16, SILK_FIX_CONST( SUBFR_SMTH_COEF, 16 ) ); + + psEncCtrl->HarmShapeGain_Q14[ k ] = ( opus_int )silk_RSHIFT_ROUND( psShapeSt->HarmShapeGain_smth_Q16, 2 ); + psEncCtrl->Tilt_Q14[ k ] = ( opus_int )silk_RSHIFT_ROUND( psShapeSt->Tilt_smth_Q16, 2 ); + } + RESTORE_STACK; +} +#endif /* OVERRIDE_silk_noise_shape_analysis_FIX */ diff --git a/components/opus/libopus/silk/fixed/pitch_analysis_core_FIX.c b/components/opus/libopus/silk/fixed/pitch_analysis_core_FIX.c new file mode 100644 index 0000000..1472904 --- /dev/null +++ b/components/opus/libopus/silk/fixed/pitch_analysis_core_FIX.c @@ -0,0 +1,721 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +/*********************************************************** +* Pitch analyser function +********************************************************** */ +#include "SigProc_FIX.h" +#include "pitch_est_defines.h" +#include "stack_alloc.h" +#include "debug.h" +#include "pitch.h" + +#define SCRATCH_SIZE 22 +#define SF_LENGTH_4KHZ ( PE_SUBFR_LENGTH_MS * 4 ) +#define SF_LENGTH_8KHZ ( PE_SUBFR_LENGTH_MS * 8 ) +#define MIN_LAG_4KHZ ( PE_MIN_LAG_MS * 4 ) +#define MIN_LAG_8KHZ ( PE_MIN_LAG_MS * 8 ) +#define MAX_LAG_4KHZ ( PE_MAX_LAG_MS * 4 ) +#define MAX_LAG_8KHZ ( PE_MAX_LAG_MS * 8 - 1 ) +#define CSTRIDE_4KHZ ( MAX_LAG_4KHZ + 1 - MIN_LAG_4KHZ ) +#define CSTRIDE_8KHZ ( MAX_LAG_8KHZ + 3 - ( MIN_LAG_8KHZ - 2 ) ) +#define D_COMP_MIN ( MIN_LAG_8KHZ - 3 ) +#define D_COMP_MAX ( MAX_LAG_8KHZ + 4 ) +#define D_COMP_STRIDE ( D_COMP_MAX - D_COMP_MIN ) + +typedef opus_int32 silk_pe_stage3_vals[ PE_NB_STAGE3_LAGS ]; + +/************************************************************/ +/* Internally used functions */ +/************************************************************/ +static void silk_P_Ana_calc_corr_st3( + silk_pe_stage3_vals cross_corr_st3[], /* O 3 DIM correlation array */ + const opus_int16 frame[], /* I vector to correlate */ + opus_int start_lag, /* I lag offset to search around */ + opus_int sf_length, /* I length of a 5 ms subframe */ + opus_int nb_subfr, /* I number of subframes */ + opus_int complexity, /* I Complexity setting */ + int arch /* I Run-time architecture */ +); + +static void silk_P_Ana_calc_energy_st3( + silk_pe_stage3_vals energies_st3[], /* O 3 DIM energy array */ + const opus_int16 frame[], /* I vector to calc energy in */ + opus_int start_lag, /* I lag offset to search around */ + opus_int sf_length, /* I length of one 5 ms subframe */ + opus_int nb_subfr, /* I number of subframes */ + opus_int complexity, /* I Complexity setting */ + int arch /* I Run-time architecture */ +); + +/*************************************************************/ +/* FIXED POINT CORE PITCH ANALYSIS FUNCTION */ +/*************************************************************/ +opus_int silk_pitch_analysis_core( /* O Voicing estimate: 0 voiced, 1 unvoiced */ + const opus_int16 *frame_unscaled, /* I Signal of length PE_FRAME_LENGTH_MS*Fs_kHz */ + opus_int *pitch_out, /* O 4 pitch lag values */ + opus_int16 *lagIndex, /* O Lag Index */ + opus_int8 *contourIndex, /* O Pitch contour Index */ + opus_int *LTPCorr_Q15, /* I/O Normalized correlation; input: value from previous frame */ + opus_int prevLag, /* I Last lag of previous frame; set to zero is unvoiced */ + const opus_int32 search_thres1_Q16, /* I First stage threshold for lag candidates 0 - 1 */ + const opus_int search_thres2_Q13, /* I Final threshold for lag candidates 0 - 1 */ + const opus_int Fs_kHz, /* I Sample frequency (kHz) */ + const opus_int complexity, /* I Complexity setting, 0-2, where 2 is highest */ + const opus_int nb_subfr, /* I number of 5 ms subframes */ + int arch /* I Run-time architecture */ +) +{ + VARDECL( opus_int16, frame_8kHz_buf ); + VARDECL( opus_int16, frame_4kHz ); + VARDECL( opus_int16, frame_scaled ); + opus_int32 filt_state[ 6 ]; + const opus_int16 *frame, *frame_8kHz; + opus_int i, k, d, j; + VARDECL( opus_int16, C ); + VARDECL( opus_int32, xcorr32 ); + const opus_int16 *target_ptr, *basis_ptr; + opus_int32 cross_corr, normalizer, energy, energy_basis, energy_target; + opus_int d_srch[ PE_D_SRCH_LENGTH ], Cmax, length_d_srch, length_d_comp, shift; + VARDECL( opus_int16, d_comp ); + opus_int32 sum, threshold, lag_counter; + opus_int CBimax, CBimax_new, CBimax_old, lag, start_lag, end_lag, lag_new; + opus_int32 CC[ PE_NB_CBKS_STAGE2_EXT ], CCmax, CCmax_b, CCmax_new_b, CCmax_new; + VARDECL( silk_pe_stage3_vals, energies_st3 ); + VARDECL( silk_pe_stage3_vals, cross_corr_st3 ); + opus_int frame_length, frame_length_8kHz, frame_length_4kHz; + opus_int sf_length; + opus_int min_lag; + opus_int max_lag; + opus_int32 contour_bias_Q15, diff; + opus_int nb_cbk_search, cbk_size; + opus_int32 delta_lag_log2_sqr_Q7, lag_log2_Q7, prevLag_log2_Q7, prev_lag_bias_Q13; + const opus_int8 *Lag_CB_ptr; + SAVE_STACK; + + /* Check for valid sampling frequency */ + celt_assert( Fs_kHz == 8 || Fs_kHz == 12 || Fs_kHz == 16 ); + + /* Check for valid complexity setting */ + celt_assert( complexity >= SILK_PE_MIN_COMPLEX ); + celt_assert( complexity <= SILK_PE_MAX_COMPLEX ); + + silk_assert( search_thres1_Q16 >= 0 && search_thres1_Q16 <= (1<<16) ); + silk_assert( search_thres2_Q13 >= 0 && search_thres2_Q13 <= (1<<13) ); + + /* Set up frame lengths max / min lag for the sampling frequency */ + frame_length = ( PE_LTP_MEM_LENGTH_MS + nb_subfr * PE_SUBFR_LENGTH_MS ) * Fs_kHz; + frame_length_4kHz = ( PE_LTP_MEM_LENGTH_MS + nb_subfr * PE_SUBFR_LENGTH_MS ) * 4; + frame_length_8kHz = ( PE_LTP_MEM_LENGTH_MS + nb_subfr * PE_SUBFR_LENGTH_MS ) * 8; + sf_length = PE_SUBFR_LENGTH_MS * Fs_kHz; + min_lag = PE_MIN_LAG_MS * Fs_kHz; + max_lag = PE_MAX_LAG_MS * Fs_kHz - 1; + + /* Downscale input if necessary */ + silk_sum_sqr_shift( &energy, &shift, frame_unscaled, frame_length ); + shift += 3 - silk_CLZ32( energy ); /* at least two bits headroom */ + ALLOC( frame_scaled, frame_length, opus_int16 ); + if( shift > 0 ) { + shift = silk_RSHIFT( shift + 1, 1 ); + for( i = 0; i < frame_length; i++ ) { + frame_scaled[ i ] = silk_RSHIFT( frame_unscaled[ i ], shift ); + } + frame = frame_scaled; + } else { + frame = frame_unscaled; + } + + ALLOC( frame_8kHz_buf, ( Fs_kHz == 8 ) ? 1 : frame_length_8kHz, opus_int16 ); + /* Resample from input sampled at Fs_kHz to 8 kHz */ + if( Fs_kHz == 16 ) { + silk_memset( filt_state, 0, 2 * sizeof( opus_int32 ) ); + silk_resampler_down2( filt_state, frame_8kHz_buf, frame, frame_length ); + frame_8kHz = frame_8kHz_buf; + } else if( Fs_kHz == 12 ) { + silk_memset( filt_state, 0, 6 * sizeof( opus_int32 ) ); + silk_resampler_down2_3( filt_state, frame_8kHz_buf, frame, frame_length ); + frame_8kHz = frame_8kHz_buf; + } else { + celt_assert( Fs_kHz == 8 ); + frame_8kHz = frame; + } + + /* Decimate again to 4 kHz */ + silk_memset( filt_state, 0, 2 * sizeof( opus_int32 ) );/* Set state to zero */ + ALLOC( frame_4kHz, frame_length_4kHz, opus_int16 ); + silk_resampler_down2( filt_state, frame_4kHz, frame_8kHz, frame_length_8kHz ); + + /* Low-pass filter */ + for( i = frame_length_4kHz - 1; i > 0; i-- ) { + frame_4kHz[ i ] = silk_ADD_SAT16( frame_4kHz[ i ], frame_4kHz[ i - 1 ] ); + } + + + /****************************************************************************** + * FIRST STAGE, operating in 4 khz + ******************************************************************************/ + ALLOC( C, nb_subfr * CSTRIDE_8KHZ, opus_int16 ); + ALLOC( xcorr32, MAX_LAG_4KHZ-MIN_LAG_4KHZ+1, opus_int32 ); + silk_memset( C, 0, (nb_subfr >> 1) * CSTRIDE_4KHZ * sizeof( opus_int16 ) ); + target_ptr = &frame_4kHz[ silk_LSHIFT( SF_LENGTH_4KHZ, 2 ) ]; + for( k = 0; k < nb_subfr >> 1; k++ ) { + /* Check that we are within range of the array */ + celt_assert( target_ptr >= frame_4kHz ); + celt_assert( target_ptr + SF_LENGTH_8KHZ <= frame_4kHz + frame_length_4kHz ); + + basis_ptr = target_ptr - MIN_LAG_4KHZ; + + /* Check that we are within range of the array */ + celt_assert( basis_ptr >= frame_4kHz ); + celt_assert( basis_ptr + SF_LENGTH_8KHZ <= frame_4kHz + frame_length_4kHz ); + + celt_pitch_xcorr( target_ptr, target_ptr - MAX_LAG_4KHZ, xcorr32, SF_LENGTH_8KHZ, MAX_LAG_4KHZ - MIN_LAG_4KHZ + 1, arch ); + + /* Calculate first vector products before loop */ + cross_corr = xcorr32[ MAX_LAG_4KHZ - MIN_LAG_4KHZ ]; + normalizer = silk_inner_prod_aligned( target_ptr, target_ptr, SF_LENGTH_8KHZ, arch ); + normalizer = silk_ADD32( normalizer, silk_inner_prod_aligned( basis_ptr, basis_ptr, SF_LENGTH_8KHZ, arch ) ); + normalizer = silk_ADD32( normalizer, silk_SMULBB( SF_LENGTH_8KHZ, 4000 ) ); + + matrix_ptr( C, k, 0, CSTRIDE_4KHZ ) = + (opus_int16)silk_DIV32_varQ( cross_corr, normalizer, 13 + 1 ); /* Q13 */ + + /* From now on normalizer is computed recursively */ + for( d = MIN_LAG_4KHZ + 1; d <= MAX_LAG_4KHZ; d++ ) { + basis_ptr--; + + /* Check that we are within range of the array */ + silk_assert( basis_ptr >= frame_4kHz ); + silk_assert( basis_ptr + SF_LENGTH_8KHZ <= frame_4kHz + frame_length_4kHz ); + + cross_corr = xcorr32[ MAX_LAG_4KHZ - d ]; + + /* Add contribution of new sample and remove contribution from oldest sample */ + normalizer = silk_ADD32( normalizer, + silk_SMULBB( basis_ptr[ 0 ], basis_ptr[ 0 ] ) - + silk_SMULBB( basis_ptr[ SF_LENGTH_8KHZ ], basis_ptr[ SF_LENGTH_8KHZ ] ) ); + + matrix_ptr( C, k, d - MIN_LAG_4KHZ, CSTRIDE_4KHZ) = + (opus_int16)silk_DIV32_varQ( cross_corr, normalizer, 13 + 1 ); /* Q13 */ + } + /* Update target pointer */ + target_ptr += SF_LENGTH_8KHZ; + } + + /* Combine two subframes into single correlation measure and apply short-lag bias */ + if( nb_subfr == PE_MAX_NB_SUBFR ) { + for( i = MAX_LAG_4KHZ; i >= MIN_LAG_4KHZ; i-- ) { + sum = (opus_int32)matrix_ptr( C, 0, i - MIN_LAG_4KHZ, CSTRIDE_4KHZ ) + + (opus_int32)matrix_ptr( C, 1, i - MIN_LAG_4KHZ, CSTRIDE_4KHZ ); /* Q14 */ + sum = silk_SMLAWB( sum, sum, silk_LSHIFT( -i, 4 ) ); /* Q14 */ + C[ i - MIN_LAG_4KHZ ] = (opus_int16)sum; /* Q14 */ + } + } else { + /* Only short-lag bias */ + for( i = MAX_LAG_4KHZ; i >= MIN_LAG_4KHZ; i-- ) { + sum = silk_LSHIFT( (opus_int32)C[ i - MIN_LAG_4KHZ ], 1 ); /* Q14 */ + sum = silk_SMLAWB( sum, sum, silk_LSHIFT( -i, 4 ) ); /* Q14 */ + C[ i - MIN_LAG_4KHZ ] = (opus_int16)sum; /* Q14 */ + } + } + + /* Sort */ + length_d_srch = silk_ADD_LSHIFT32( 4, complexity, 1 ); + celt_assert( 3 * length_d_srch <= PE_D_SRCH_LENGTH ); + silk_insertion_sort_decreasing_int16( C, d_srch, CSTRIDE_4KHZ, + length_d_srch ); + + /* Escape if correlation is very low already here */ + Cmax = (opus_int)C[ 0 ]; /* Q14 */ + if( Cmax < SILK_FIX_CONST( 0.2, 14 ) ) { + silk_memset( pitch_out, 0, nb_subfr * sizeof( opus_int ) ); + *LTPCorr_Q15 = 0; + *lagIndex = 0; + *contourIndex = 0; + RESTORE_STACK; + return 1; + } + + threshold = silk_SMULWB( search_thres1_Q16, Cmax ); + for( i = 0; i < length_d_srch; i++ ) { + /* Convert to 8 kHz indices for the sorted correlation that exceeds the threshold */ + if( C[ i ] > threshold ) { + d_srch[ i ] = silk_LSHIFT( d_srch[ i ] + MIN_LAG_4KHZ, 1 ); + } else { + length_d_srch = i; + break; + } + } + celt_assert( length_d_srch > 0 ); + + ALLOC( d_comp, D_COMP_STRIDE, opus_int16 ); + for( i = D_COMP_MIN; i < D_COMP_MAX; i++ ) { + d_comp[ i - D_COMP_MIN ] = 0; + } + for( i = 0; i < length_d_srch; i++ ) { + d_comp[ d_srch[ i ] - D_COMP_MIN ] = 1; + } + + /* Convolution */ + for( i = D_COMP_MAX - 1; i >= MIN_LAG_8KHZ; i-- ) { + d_comp[ i - D_COMP_MIN ] += + d_comp[ i - 1 - D_COMP_MIN ] + d_comp[ i - 2 - D_COMP_MIN ]; + } + + length_d_srch = 0; + for( i = MIN_LAG_8KHZ; i < MAX_LAG_8KHZ + 1; i++ ) { + if( d_comp[ i + 1 - D_COMP_MIN ] > 0 ) { + d_srch[ length_d_srch ] = i; + length_d_srch++; + } + } + + /* Convolution */ + for( i = D_COMP_MAX - 1; i >= MIN_LAG_8KHZ; i-- ) { + d_comp[ i - D_COMP_MIN ] += d_comp[ i - 1 - D_COMP_MIN ] + + d_comp[ i - 2 - D_COMP_MIN ] + d_comp[ i - 3 - D_COMP_MIN ]; + } + + length_d_comp = 0; + for( i = MIN_LAG_8KHZ; i < D_COMP_MAX; i++ ) { + if( d_comp[ i - D_COMP_MIN ] > 0 ) { + d_comp[ length_d_comp ] = i - 2; + length_d_comp++; + } + } + + /********************************************************************************** + ** SECOND STAGE, operating at 8 kHz, on lag sections with high correlation + *************************************************************************************/ + + /********************************************************************************* + * Find energy of each subframe projected onto its history, for a range of delays + *********************************************************************************/ + silk_memset( C, 0, nb_subfr * CSTRIDE_8KHZ * sizeof( opus_int16 ) ); + + target_ptr = &frame_8kHz[ PE_LTP_MEM_LENGTH_MS * 8 ]; + for( k = 0; k < nb_subfr; k++ ) { + + /* Check that we are within range of the array */ + celt_assert( target_ptr >= frame_8kHz ); + celt_assert( target_ptr + SF_LENGTH_8KHZ <= frame_8kHz + frame_length_8kHz ); + + energy_target = silk_ADD32( silk_inner_prod_aligned( target_ptr, target_ptr, SF_LENGTH_8KHZ, arch ), 1 ); + for( j = 0; j < length_d_comp; j++ ) { + d = d_comp[ j ]; + basis_ptr = target_ptr - d; + + /* Check that we are within range of the array */ + silk_assert( basis_ptr >= frame_8kHz ); + silk_assert( basis_ptr + SF_LENGTH_8KHZ <= frame_8kHz + frame_length_8kHz ); + + cross_corr = silk_inner_prod_aligned( target_ptr, basis_ptr, SF_LENGTH_8KHZ, arch ); + if( cross_corr > 0 ) { + energy_basis = silk_inner_prod_aligned( basis_ptr, basis_ptr, SF_LENGTH_8KHZ, arch ); + matrix_ptr( C, k, d - ( MIN_LAG_8KHZ - 2 ), CSTRIDE_8KHZ ) = + (opus_int16)silk_DIV32_varQ( cross_corr, + silk_ADD32( energy_target, + energy_basis ), + 13 + 1 ); /* Q13 */ + } else { + matrix_ptr( C, k, d - ( MIN_LAG_8KHZ - 2 ), CSTRIDE_8KHZ ) = 0; + } + } + target_ptr += SF_LENGTH_8KHZ; + } + + /* search over lag range and lags codebook */ + /* scale factor for lag codebook, as a function of center lag */ + + CCmax = silk_int32_MIN; + CCmax_b = silk_int32_MIN; + + CBimax = 0; /* To avoid returning undefined lag values */ + lag = -1; /* To check if lag with strong enough correlation has been found */ + + if( prevLag > 0 ) { + if( Fs_kHz == 12 ) { + prevLag = silk_DIV32_16( silk_LSHIFT( prevLag, 1 ), 3 ); + } else if( Fs_kHz == 16 ) { + prevLag = silk_RSHIFT( prevLag, 1 ); + } + prevLag_log2_Q7 = silk_lin2log( (opus_int32)prevLag ); + } else { + prevLag_log2_Q7 = 0; + } + silk_assert( search_thres2_Q13 == silk_SAT16( search_thres2_Q13 ) ); + /* Set up stage 2 codebook based on number of subframes */ + if( nb_subfr == PE_MAX_NB_SUBFR ) { + cbk_size = PE_NB_CBKS_STAGE2_EXT; + Lag_CB_ptr = &silk_CB_lags_stage2[ 0 ][ 0 ]; + if( Fs_kHz == 8 && complexity > SILK_PE_MIN_COMPLEX ) { + /* If input is 8 khz use a larger codebook here because it is last stage */ + nb_cbk_search = PE_NB_CBKS_STAGE2_EXT; + } else { + nb_cbk_search = PE_NB_CBKS_STAGE2; + } + } else { + cbk_size = PE_NB_CBKS_STAGE2_10MS; + Lag_CB_ptr = &silk_CB_lags_stage2_10_ms[ 0 ][ 0 ]; + nb_cbk_search = PE_NB_CBKS_STAGE2_10MS; + } + + for( k = 0; k < length_d_srch; k++ ) { + d = d_srch[ k ]; + for( j = 0; j < nb_cbk_search; j++ ) { + CC[ j ] = 0; + for( i = 0; i < nb_subfr; i++ ) { + opus_int d_subfr; + /* Try all codebooks */ + d_subfr = d + matrix_ptr( Lag_CB_ptr, i, j, cbk_size ); + CC[ j ] = CC[ j ] + + (opus_int32)matrix_ptr( C, i, + d_subfr - ( MIN_LAG_8KHZ - 2 ), + CSTRIDE_8KHZ ); + } + } + /* Find best codebook */ + CCmax_new = silk_int32_MIN; + CBimax_new = 0; + for( i = 0; i < nb_cbk_search; i++ ) { + if( CC[ i ] > CCmax_new ) { + CCmax_new = CC[ i ]; + CBimax_new = i; + } + } + + /* Bias towards shorter lags */ + lag_log2_Q7 = silk_lin2log( d ); /* Q7 */ + silk_assert( lag_log2_Q7 == silk_SAT16( lag_log2_Q7 ) ); + silk_assert( nb_subfr * SILK_FIX_CONST( PE_SHORTLAG_BIAS, 13 ) == silk_SAT16( nb_subfr * SILK_FIX_CONST( PE_SHORTLAG_BIAS, 13 ) ) ); + CCmax_new_b = CCmax_new - silk_RSHIFT( silk_SMULBB( nb_subfr * SILK_FIX_CONST( PE_SHORTLAG_BIAS, 13 ), lag_log2_Q7 ), 7 ); /* Q13 */ + + /* Bias towards previous lag */ + silk_assert( nb_subfr * SILK_FIX_CONST( PE_PREVLAG_BIAS, 13 ) == silk_SAT16( nb_subfr * SILK_FIX_CONST( PE_PREVLAG_BIAS, 13 ) ) ); + if( prevLag > 0 ) { + delta_lag_log2_sqr_Q7 = lag_log2_Q7 - prevLag_log2_Q7; + silk_assert( delta_lag_log2_sqr_Q7 == silk_SAT16( delta_lag_log2_sqr_Q7 ) ); + delta_lag_log2_sqr_Q7 = silk_RSHIFT( silk_SMULBB( delta_lag_log2_sqr_Q7, delta_lag_log2_sqr_Q7 ), 7 ); + prev_lag_bias_Q13 = silk_RSHIFT( silk_SMULBB( nb_subfr * SILK_FIX_CONST( PE_PREVLAG_BIAS, 13 ), *LTPCorr_Q15 ), 15 ); /* Q13 */ + prev_lag_bias_Q13 = silk_DIV32( silk_MUL( prev_lag_bias_Q13, delta_lag_log2_sqr_Q7 ), delta_lag_log2_sqr_Q7 + SILK_FIX_CONST( 0.5, 7 ) ); + CCmax_new_b -= prev_lag_bias_Q13; /* Q13 */ + } + + if( CCmax_new_b > CCmax_b && /* Find maximum biased correlation */ + CCmax_new > silk_SMULBB( nb_subfr, search_thres2_Q13 ) && /* Correlation needs to be high enough to be voiced */ + silk_CB_lags_stage2[ 0 ][ CBimax_new ] <= MIN_LAG_8KHZ /* Lag must be in range */ + ) { + CCmax_b = CCmax_new_b; + CCmax = CCmax_new; + lag = d; + CBimax = CBimax_new; + } + } + + if( lag == -1 ) { + /* No suitable candidate found */ + silk_memset( pitch_out, 0, nb_subfr * sizeof( opus_int ) ); + *LTPCorr_Q15 = 0; + *lagIndex = 0; + *contourIndex = 0; + RESTORE_STACK; + return 1; + } + + /* Output normalized correlation */ + *LTPCorr_Q15 = (opus_int)silk_LSHIFT( silk_DIV32_16( CCmax, nb_subfr ), 2 ); + silk_assert( *LTPCorr_Q15 >= 0 ); + + if( Fs_kHz > 8 ) { + /* Search in original signal */ + + CBimax_old = CBimax; + /* Compensate for decimation */ + silk_assert( lag == silk_SAT16( lag ) ); + if( Fs_kHz == 12 ) { + lag = silk_RSHIFT( silk_SMULBB( lag, 3 ), 1 ); + } else if( Fs_kHz == 16 ) { + lag = silk_LSHIFT( lag, 1 ); + } else { + lag = silk_SMULBB( lag, 3 ); + } + + lag = silk_LIMIT_int( lag, min_lag, max_lag ); + start_lag = silk_max_int( lag - 2, min_lag ); + end_lag = silk_min_int( lag + 2, max_lag ); + lag_new = lag; /* to avoid undefined lag */ + CBimax = 0; /* to avoid undefined lag */ + + CCmax = silk_int32_MIN; + /* pitch lags according to second stage */ + for( k = 0; k < nb_subfr; k++ ) { + pitch_out[ k ] = lag + 2 * silk_CB_lags_stage2[ k ][ CBimax_old ]; + } + + /* Set up codebook parameters according to complexity setting and frame length */ + if( nb_subfr == PE_MAX_NB_SUBFR ) { + nb_cbk_search = (opus_int)silk_nb_cbk_searchs_stage3[ complexity ]; + cbk_size = PE_NB_CBKS_STAGE3_MAX; + Lag_CB_ptr = &silk_CB_lags_stage3[ 0 ][ 0 ]; + } else { + nb_cbk_search = PE_NB_CBKS_STAGE3_10MS; + cbk_size = PE_NB_CBKS_STAGE3_10MS; + Lag_CB_ptr = &silk_CB_lags_stage3_10_ms[ 0 ][ 0 ]; + } + + /* Calculate the correlations and energies needed in stage 3 */ + ALLOC( energies_st3, nb_subfr * nb_cbk_search, silk_pe_stage3_vals ); + ALLOC( cross_corr_st3, nb_subfr * nb_cbk_search, silk_pe_stage3_vals ); + silk_P_Ana_calc_corr_st3( cross_corr_st3, frame, start_lag, sf_length, nb_subfr, complexity, arch ); + silk_P_Ana_calc_energy_st3( energies_st3, frame, start_lag, sf_length, nb_subfr, complexity, arch ); + + lag_counter = 0; + silk_assert( lag == silk_SAT16( lag ) ); + contour_bias_Q15 = silk_DIV32_16( SILK_FIX_CONST( PE_FLATCONTOUR_BIAS, 15 ), lag ); + + target_ptr = &frame[ PE_LTP_MEM_LENGTH_MS * Fs_kHz ]; + energy_target = silk_ADD32( silk_inner_prod_aligned( target_ptr, target_ptr, nb_subfr * sf_length, arch ), 1 ); + for( d = start_lag; d <= end_lag; d++ ) { + for( j = 0; j < nb_cbk_search; j++ ) { + cross_corr = 0; + energy = energy_target; + for( k = 0; k < nb_subfr; k++ ) { + cross_corr = silk_ADD32( cross_corr, + matrix_ptr( cross_corr_st3, k, j, + nb_cbk_search )[ lag_counter ] ); + energy = silk_ADD32( energy, + matrix_ptr( energies_st3, k, j, + nb_cbk_search )[ lag_counter ] ); + silk_assert( energy >= 0 ); + } + if( cross_corr > 0 ) { + CCmax_new = silk_DIV32_varQ( cross_corr, energy, 13 + 1 ); /* Q13 */ + /* Reduce depending on flatness of contour */ + diff = silk_int16_MAX - silk_MUL( contour_bias_Q15, j ); /* Q15 */ + silk_assert( diff == silk_SAT16( diff ) ); + CCmax_new = silk_SMULWB( CCmax_new, diff ); /* Q14 */ + } else { + CCmax_new = 0; + } + + if( CCmax_new > CCmax && ( d + silk_CB_lags_stage3[ 0 ][ j ] ) <= max_lag ) { + CCmax = CCmax_new; + lag_new = d; + CBimax = j; + } + } + lag_counter++; + } + + for( k = 0; k < nb_subfr; k++ ) { + pitch_out[ k ] = lag_new + matrix_ptr( Lag_CB_ptr, k, CBimax, cbk_size ); + pitch_out[ k ] = silk_LIMIT( pitch_out[ k ], min_lag, PE_MAX_LAG_MS * Fs_kHz ); + } + *lagIndex = (opus_int16)( lag_new - min_lag); + *contourIndex = (opus_int8)CBimax; + } else { /* Fs_kHz == 8 */ + /* Save Lags */ + for( k = 0; k < nb_subfr; k++ ) { + pitch_out[ k ] = lag + matrix_ptr( Lag_CB_ptr, k, CBimax, cbk_size ); + pitch_out[ k ] = silk_LIMIT( pitch_out[ k ], MIN_LAG_8KHZ, PE_MAX_LAG_MS * 8 ); + } + *lagIndex = (opus_int16)( lag - MIN_LAG_8KHZ ); + *contourIndex = (opus_int8)CBimax; + } + celt_assert( *lagIndex >= 0 ); + /* return as voiced */ + RESTORE_STACK; + return 0; +} + +/*********************************************************************** + * Calculates the correlations used in stage 3 search. In order to cover + * the whole lag codebook for all the searched offset lags (lag +- 2), + * the following correlations are needed in each sub frame: + * + * sf1: lag range [-8,...,7] total 16 correlations + * sf2: lag range [-4,...,4] total 9 correlations + * sf3: lag range [-3,....4] total 8 correltions + * sf4: lag range [-6,....8] total 15 correlations + * + * In total 48 correlations. The direct implementation computed in worst + * case 4*12*5 = 240 correlations, but more likely around 120. + ***********************************************************************/ +static void silk_P_Ana_calc_corr_st3( + silk_pe_stage3_vals cross_corr_st3[], /* O 3 DIM correlation array */ + const opus_int16 frame[], /* I vector to correlate */ + opus_int start_lag, /* I lag offset to search around */ + opus_int sf_length, /* I length of a 5 ms subframe */ + opus_int nb_subfr, /* I number of subframes */ + opus_int complexity, /* I Complexity setting */ + int arch /* I Run-time architecture */ +) +{ + const opus_int16 *target_ptr; + opus_int i, j, k, lag_counter, lag_low, lag_high; + opus_int nb_cbk_search, delta, idx, cbk_size; + VARDECL( opus_int32, scratch_mem ); + VARDECL( opus_int32, xcorr32 ); + const opus_int8 *Lag_range_ptr, *Lag_CB_ptr; + SAVE_STACK; + + celt_assert( complexity >= SILK_PE_MIN_COMPLEX ); + celt_assert( complexity <= SILK_PE_MAX_COMPLEX ); + + if( nb_subfr == PE_MAX_NB_SUBFR ) { + Lag_range_ptr = &silk_Lag_range_stage3[ complexity ][ 0 ][ 0 ]; + Lag_CB_ptr = &silk_CB_lags_stage3[ 0 ][ 0 ]; + nb_cbk_search = silk_nb_cbk_searchs_stage3[ complexity ]; + cbk_size = PE_NB_CBKS_STAGE3_MAX; + } else { + celt_assert( nb_subfr == PE_MAX_NB_SUBFR >> 1); + Lag_range_ptr = &silk_Lag_range_stage3_10_ms[ 0 ][ 0 ]; + Lag_CB_ptr = &silk_CB_lags_stage3_10_ms[ 0 ][ 0 ]; + nb_cbk_search = PE_NB_CBKS_STAGE3_10MS; + cbk_size = PE_NB_CBKS_STAGE3_10MS; + } + ALLOC( scratch_mem, SCRATCH_SIZE, opus_int32 ); + ALLOC( xcorr32, SCRATCH_SIZE, opus_int32 ); + + target_ptr = &frame[ silk_LSHIFT( sf_length, 2 ) ]; /* Pointer to middle of frame */ + for( k = 0; k < nb_subfr; k++ ) { + lag_counter = 0; + + /* Calculate the correlations for each subframe */ + lag_low = matrix_ptr( Lag_range_ptr, k, 0, 2 ); + lag_high = matrix_ptr( Lag_range_ptr, k, 1, 2 ); + celt_assert(lag_high-lag_low+1 <= SCRATCH_SIZE); + celt_pitch_xcorr( target_ptr, target_ptr - start_lag - lag_high, xcorr32, sf_length, lag_high - lag_low + 1, arch ); + for( j = lag_low; j <= lag_high; j++ ) { + silk_assert( lag_counter < SCRATCH_SIZE ); + scratch_mem[ lag_counter ] = xcorr32[ lag_high - j ]; + lag_counter++; + } + + delta = matrix_ptr( Lag_range_ptr, k, 0, 2 ); + for( i = 0; i < nb_cbk_search; i++ ) { + /* Fill out the 3 dim array that stores the correlations for */ + /* each code_book vector for each start lag */ + idx = matrix_ptr( Lag_CB_ptr, k, i, cbk_size ) - delta; + for( j = 0; j < PE_NB_STAGE3_LAGS; j++ ) { + silk_assert( idx + j < SCRATCH_SIZE ); + silk_assert( idx + j < lag_counter ); + matrix_ptr( cross_corr_st3, k, i, nb_cbk_search )[ j ] = + scratch_mem[ idx + j ]; + } + } + target_ptr += sf_length; + } + RESTORE_STACK; +} + +/********************************************************************/ +/* Calculate the energies for first two subframes. The energies are */ +/* calculated recursively. */ +/********************************************************************/ +static void silk_P_Ana_calc_energy_st3( + silk_pe_stage3_vals energies_st3[], /* O 3 DIM energy array */ + const opus_int16 frame[], /* I vector to calc energy in */ + opus_int start_lag, /* I lag offset to search around */ + opus_int sf_length, /* I length of one 5 ms subframe */ + opus_int nb_subfr, /* I number of subframes */ + opus_int complexity, /* I Complexity setting */ + int arch /* I Run-time architecture */ +) +{ + const opus_int16 *target_ptr, *basis_ptr; + opus_int32 energy; + opus_int k, i, j, lag_counter; + opus_int nb_cbk_search, delta, idx, cbk_size, lag_diff; + VARDECL( opus_int32, scratch_mem ); + const opus_int8 *Lag_range_ptr, *Lag_CB_ptr; + SAVE_STACK; + + celt_assert( complexity >= SILK_PE_MIN_COMPLEX ); + celt_assert( complexity <= SILK_PE_MAX_COMPLEX ); + + if( nb_subfr == PE_MAX_NB_SUBFR ) { + Lag_range_ptr = &silk_Lag_range_stage3[ complexity ][ 0 ][ 0 ]; + Lag_CB_ptr = &silk_CB_lags_stage3[ 0 ][ 0 ]; + nb_cbk_search = silk_nb_cbk_searchs_stage3[ complexity ]; + cbk_size = PE_NB_CBKS_STAGE3_MAX; + } else { + celt_assert( nb_subfr == PE_MAX_NB_SUBFR >> 1); + Lag_range_ptr = &silk_Lag_range_stage3_10_ms[ 0 ][ 0 ]; + Lag_CB_ptr = &silk_CB_lags_stage3_10_ms[ 0 ][ 0 ]; + nb_cbk_search = PE_NB_CBKS_STAGE3_10MS; + cbk_size = PE_NB_CBKS_STAGE3_10MS; + } + ALLOC( scratch_mem, SCRATCH_SIZE, opus_int32 ); + + target_ptr = &frame[ silk_LSHIFT( sf_length, 2 ) ]; + for( k = 0; k < nb_subfr; k++ ) { + lag_counter = 0; + + /* Calculate the energy for first lag */ + basis_ptr = target_ptr - ( start_lag + matrix_ptr( Lag_range_ptr, k, 0, 2 ) ); + energy = silk_inner_prod_aligned( basis_ptr, basis_ptr, sf_length, arch ); + silk_assert( energy >= 0 ); + scratch_mem[ lag_counter ] = energy; + lag_counter++; + + lag_diff = ( matrix_ptr( Lag_range_ptr, k, 1, 2 ) - matrix_ptr( Lag_range_ptr, k, 0, 2 ) + 1 ); + for( i = 1; i < lag_diff; i++ ) { + /* remove part outside new window */ + energy -= silk_SMULBB( basis_ptr[ sf_length - i ], basis_ptr[ sf_length - i ] ); + silk_assert( energy >= 0 ); + + /* add part that comes into window */ + energy = silk_ADD_SAT32( energy, silk_SMULBB( basis_ptr[ -i ], basis_ptr[ -i ] ) ); + silk_assert( energy >= 0 ); + silk_assert( lag_counter < SCRATCH_SIZE ); + scratch_mem[ lag_counter ] = energy; + lag_counter++; + } + + delta = matrix_ptr( Lag_range_ptr, k, 0, 2 ); + for( i = 0; i < nb_cbk_search; i++ ) { + /* Fill out the 3 dim array that stores the correlations for */ + /* each code_book vector for each start lag */ + idx = matrix_ptr( Lag_CB_ptr, k, i, cbk_size ) - delta; + for( j = 0; j < PE_NB_STAGE3_LAGS; j++ ) { + silk_assert( idx + j < SCRATCH_SIZE ); + silk_assert( idx + j < lag_counter ); + matrix_ptr( energies_st3, k, i, nb_cbk_search )[ j ] = + scratch_mem[ idx + j ]; + silk_assert( + matrix_ptr( energies_st3, k, i, nb_cbk_search )[ j ] >= 0 ); + } + } + target_ptr += sf_length; + } + RESTORE_STACK; +} diff --git a/components/opus/libopus/silk/fixed/process_gains_FIX.c b/components/opus/libopus/silk/fixed/process_gains_FIX.c new file mode 100644 index 0000000..05aba31 --- /dev/null +++ b/components/opus/libopus/silk/fixed/process_gains_FIX.c @@ -0,0 +1,117 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main_FIX.h" +#include "tuning_parameters.h" + +/* Processing of gains */ +void silk_process_gains_FIX( + silk_encoder_state_FIX *psEnc, /* I/O Encoder state */ + silk_encoder_control_FIX *psEncCtrl, /* I/O Encoder control */ + opus_int condCoding /* I The type of conditional coding to use */ +) +{ + silk_shape_state_FIX *psShapeSt = &psEnc->sShape; + opus_int k; + opus_int32 s_Q16, InvMaxSqrVal_Q16, gain, gain_squared, ResNrg, ResNrgPart, quant_offset_Q10; + + /* Gain reduction when LTP coding gain is high */ + if( psEnc->sCmn.indices.signalType == TYPE_VOICED ) { + /*s = -0.5f * silk_sigmoid( 0.25f * ( psEncCtrl->LTPredCodGain - 12.0f ) ); */ + s_Q16 = -silk_sigm_Q15( silk_RSHIFT_ROUND( psEncCtrl->LTPredCodGain_Q7 - SILK_FIX_CONST( 12.0, 7 ), 4 ) ); + for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { + psEncCtrl->Gains_Q16[ k ] = silk_SMLAWB( psEncCtrl->Gains_Q16[ k ], psEncCtrl->Gains_Q16[ k ], s_Q16 ); + } + } + + /* Limit the quantized signal */ + /* InvMaxSqrVal = pow( 2.0f, 0.33f * ( 21.0f - SNR_dB ) ) / subfr_length; */ + InvMaxSqrVal_Q16 = silk_DIV32_16( silk_log2lin( + silk_SMULWB( SILK_FIX_CONST( 21 + 16 / 0.33, 7 ) - psEnc->sCmn.SNR_dB_Q7, SILK_FIX_CONST( 0.33, 16 ) ) ), psEnc->sCmn.subfr_length ); + + for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { + /* Soft limit on ratio residual energy and squared gains */ + ResNrg = psEncCtrl->ResNrg[ k ]; + ResNrgPart = silk_SMULWW( ResNrg, InvMaxSqrVal_Q16 ); + if( psEncCtrl->ResNrgQ[ k ] > 0 ) { + ResNrgPart = silk_RSHIFT_ROUND( ResNrgPart, psEncCtrl->ResNrgQ[ k ] ); + } else { + if( ResNrgPart >= silk_RSHIFT( silk_int32_MAX, -psEncCtrl->ResNrgQ[ k ] ) ) { + ResNrgPart = silk_int32_MAX; + } else { + ResNrgPart = silk_LSHIFT( ResNrgPart, -psEncCtrl->ResNrgQ[ k ] ); + } + } + gain = psEncCtrl->Gains_Q16[ k ]; + gain_squared = silk_ADD_SAT32( ResNrgPart, silk_SMMUL( gain, gain ) ); + if( gain_squared < silk_int16_MAX ) { + /* recalculate with higher precision */ + gain_squared = silk_SMLAWW( silk_LSHIFT( ResNrgPart, 16 ), gain, gain ); + silk_assert( gain_squared > 0 ); + gain = silk_SQRT_APPROX( gain_squared ); /* Q8 */ + gain = silk_min( gain, silk_int32_MAX >> 8 ); + psEncCtrl->Gains_Q16[ k ] = silk_LSHIFT_SAT32( gain, 8 ); /* Q16 */ + } else { + gain = silk_SQRT_APPROX( gain_squared ); /* Q0 */ + gain = silk_min( gain, silk_int32_MAX >> 16 ); + psEncCtrl->Gains_Q16[ k ] = silk_LSHIFT_SAT32( gain, 16 ); /* Q16 */ + } + } + + /* Save unquantized gains and gain Index */ + silk_memcpy( psEncCtrl->GainsUnq_Q16, psEncCtrl->Gains_Q16, psEnc->sCmn.nb_subfr * sizeof( opus_int32 ) ); + psEncCtrl->lastGainIndexPrev = psShapeSt->LastGainIndex; + + /* Quantize gains */ + silk_gains_quant( psEnc->sCmn.indices.GainsIndices, psEncCtrl->Gains_Q16, + &psShapeSt->LastGainIndex, condCoding == CODE_CONDITIONALLY, psEnc->sCmn.nb_subfr ); + + /* Set quantizer offset for voiced signals. Larger offset when LTP coding gain is low or tilt is high (ie low-pass) */ + if( psEnc->sCmn.indices.signalType == TYPE_VOICED ) { + if( psEncCtrl->LTPredCodGain_Q7 + silk_RSHIFT( psEnc->sCmn.input_tilt_Q15, 8 ) > SILK_FIX_CONST( 1.0, 7 ) ) { + psEnc->sCmn.indices.quantOffsetType = 0; + } else { + psEnc->sCmn.indices.quantOffsetType = 1; + } + } + + /* Quantizer boundary adjustment */ + quant_offset_Q10 = silk_Quantization_Offsets_Q10[ psEnc->sCmn.indices.signalType >> 1 ][ psEnc->sCmn.indices.quantOffsetType ]; + psEncCtrl->Lambda_Q10 = SILK_FIX_CONST( LAMBDA_OFFSET, 10 ) + + silk_SMULBB( SILK_FIX_CONST( LAMBDA_DELAYED_DECISIONS, 10 ), psEnc->sCmn.nStatesDelayedDecision ) + + silk_SMULWB( SILK_FIX_CONST( LAMBDA_SPEECH_ACT, 18 ), psEnc->sCmn.speech_activity_Q8 ) + + silk_SMULWB( SILK_FIX_CONST( LAMBDA_INPUT_QUALITY, 12 ), psEncCtrl->input_quality_Q14 ) + + silk_SMULWB( SILK_FIX_CONST( LAMBDA_CODING_QUALITY, 12 ), psEncCtrl->coding_quality_Q14 ) + + silk_SMULWB( SILK_FIX_CONST( LAMBDA_QUANT_OFFSET, 16 ), quant_offset_Q10 ); + + silk_assert( psEncCtrl->Lambda_Q10 > 0 ); + silk_assert( psEncCtrl->Lambda_Q10 < SILK_FIX_CONST( 2, 10 ) ); +} diff --git a/components/opus/libopus/silk/fixed/regularize_correlations_FIX.c b/components/opus/libopus/silk/fixed/regularize_correlations_FIX.c new file mode 100644 index 0000000..a2836b0 --- /dev/null +++ b/components/opus/libopus/silk/fixed/regularize_correlations_FIX.c @@ -0,0 +1,47 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main_FIX.h" + +/* Add noise to matrix diagonal */ +void silk_regularize_correlations_FIX( + opus_int32 *XX, /* I/O Correlation matrices */ + opus_int32 *xx, /* I/O Correlation values */ + opus_int32 noise, /* I Noise to add */ + opus_int D /* I Dimension of XX */ +) +{ + opus_int i; + for( i = 0; i < D; i++ ) { + matrix_ptr( &XX[ 0 ], i, i, D ) = silk_ADD32( matrix_ptr( &XX[ 0 ], i, i, D ), noise ); + } + xx[ 0 ] += noise; +} diff --git a/components/opus/libopus/silk/fixed/residual_energy16_FIX.c b/components/opus/libopus/silk/fixed/residual_energy16_FIX.c new file mode 100644 index 0000000..7f130f3 --- /dev/null +++ b/components/opus/libopus/silk/fixed/residual_energy16_FIX.c @@ -0,0 +1,103 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main_FIX.h" + +/* Residual energy: nrg = wxx - 2 * wXx * c + c' * wXX * c */ +opus_int32 silk_residual_energy16_covar_FIX( + const opus_int16 *c, /* I Prediction vector */ + const opus_int32 *wXX, /* I Correlation matrix */ + const opus_int32 *wXx, /* I Correlation vector */ + opus_int32 wxx, /* I Signal energy */ + opus_int D, /* I Dimension */ + opus_int cQ /* I Q value for c vector 0 - 15 */ +) +{ + opus_int i, j, lshifts, Qxtra; + opus_int32 c_max, w_max, tmp, tmp2, nrg; + opus_int cn[ MAX_MATRIX_SIZE ]; + const opus_int32 *pRow; + + /* Safety checks */ + celt_assert( D >= 0 ); + celt_assert( D <= 16 ); + celt_assert( cQ > 0 ); + celt_assert( cQ < 16 ); + + lshifts = 16 - cQ; + Qxtra = lshifts; + + c_max = 0; + for( i = 0; i < D; i++ ) { + c_max = silk_max_32( c_max, silk_abs( (opus_int32)c[ i ] ) ); + } + Qxtra = silk_min_int( Qxtra, silk_CLZ32( c_max ) - 17 ); + + w_max = silk_max_32( wXX[ 0 ], wXX[ D * D - 1 ] ); + Qxtra = silk_min_int( Qxtra, silk_CLZ32( silk_MUL( D, silk_RSHIFT( silk_SMULWB( w_max, c_max ), 4 ) ) ) - 5 ); + Qxtra = silk_max_int( Qxtra, 0 ); + for( i = 0; i < D; i++ ) { + cn[ i ] = silk_LSHIFT( ( opus_int )c[ i ], Qxtra ); + silk_assert( silk_abs(cn[i]) <= ( silk_int16_MAX + 1 ) ); /* Check that silk_SMLAWB can be used */ + } + lshifts -= Qxtra; + + /* Compute wxx - 2 * wXx * c */ + tmp = 0; + for( i = 0; i < D; i++ ) { + tmp = silk_SMLAWB( tmp, wXx[ i ], cn[ i ] ); + } + nrg = silk_RSHIFT( wxx, 1 + lshifts ) - tmp; /* Q: -lshifts - 1 */ + + /* Add c' * wXX * c, assuming wXX is symmetric */ + tmp2 = 0; + for( i = 0; i < D; i++ ) { + tmp = 0; + pRow = &wXX[ i * D ]; + for( j = i + 1; j < D; j++ ) { + tmp = silk_SMLAWB( tmp, pRow[ j ], cn[ j ] ); + } + tmp = silk_SMLAWB( tmp, silk_RSHIFT( pRow[ i ], 1 ), cn[ i ] ); + tmp2 = silk_SMLAWB( tmp2, tmp, cn[ i ] ); + } + nrg = silk_ADD_LSHIFT32( nrg, tmp2, lshifts ); /* Q: -lshifts - 1 */ + + /* Keep one bit free always, because we add them for LSF interpolation */ + if( nrg < 1 ) { + nrg = 1; + } else if( nrg > silk_RSHIFT( silk_int32_MAX, lshifts + 2 ) ) { + nrg = silk_int32_MAX >> 1; + } else { + nrg = silk_LSHIFT( nrg, lshifts + 1 ); /* Q0 */ + } + return nrg; + +} diff --git a/components/opus/libopus/silk/fixed/residual_energy_FIX.c b/components/opus/libopus/silk/fixed/residual_energy_FIX.c new file mode 100644 index 0000000..6c7cade --- /dev/null +++ b/components/opus/libopus/silk/fixed/residual_energy_FIX.c @@ -0,0 +1,98 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main_FIX.h" +#include "stack_alloc.h" + +/* Calculates residual energies of input subframes where all subframes have LPC_order */ +/* of preceding samples */ +void silk_residual_energy_FIX( + opus_int32 nrgs[ MAX_NB_SUBFR ], /* O Residual energy per subframe */ + opus_int nrgsQ[ MAX_NB_SUBFR ], /* O Q value per subframe */ + const opus_int16 x[], /* I Input signal */ + opus_int16 a_Q12[ 2 ][ MAX_LPC_ORDER ], /* I AR coefs for each frame half */ + const opus_int32 gains[ MAX_NB_SUBFR ], /* I Quantization gains */ + const opus_int subfr_length, /* I Subframe length */ + const opus_int nb_subfr, /* I Number of subframes */ + const opus_int LPC_order, /* I LPC order */ + int arch /* I Run-time architecture */ +) +{ + opus_int offset, i, j, rshift, lz1, lz2; + opus_int16 *LPC_res_ptr; + VARDECL( opus_int16, LPC_res ); + const opus_int16 *x_ptr; + opus_int32 tmp32; + SAVE_STACK; + + x_ptr = x; + offset = LPC_order + subfr_length; + + /* Filter input to create the LPC residual for each frame half, and measure subframe energies */ + ALLOC( LPC_res, ( MAX_NB_SUBFR >> 1 ) * offset, opus_int16 ); + celt_assert( ( nb_subfr >> 1 ) * ( MAX_NB_SUBFR >> 1 ) == nb_subfr ); + for( i = 0; i < nb_subfr >> 1; i++ ) { + /* Calculate half frame LPC residual signal including preceding samples */ + silk_LPC_analysis_filter( LPC_res, x_ptr, a_Q12[ i ], ( MAX_NB_SUBFR >> 1 ) * offset, LPC_order, arch ); + + /* Point to first subframe of the just calculated LPC residual signal */ + LPC_res_ptr = LPC_res + LPC_order; + for( j = 0; j < ( MAX_NB_SUBFR >> 1 ); j++ ) { + /* Measure subframe energy */ + silk_sum_sqr_shift( &nrgs[ i * ( MAX_NB_SUBFR >> 1 ) + j ], &rshift, LPC_res_ptr, subfr_length ); + + /* Set Q values for the measured energy */ + nrgsQ[ i * ( MAX_NB_SUBFR >> 1 ) + j ] = -rshift; + + /* Move to next subframe */ + LPC_res_ptr += offset; + } + /* Move to next frame half */ + x_ptr += ( MAX_NB_SUBFR >> 1 ) * offset; + } + + /* Apply the squared subframe gains */ + for( i = 0; i < nb_subfr; i++ ) { + /* Fully upscale gains and energies */ + lz1 = silk_CLZ32( nrgs[ i ] ) - 1; + lz2 = silk_CLZ32( gains[ i ] ) - 1; + + tmp32 = silk_LSHIFT32( gains[ i ], lz2 ); + + /* Find squared gains */ + tmp32 = silk_SMMUL( tmp32, tmp32 ); /* Q( 2 * lz2 - 32 )*/ + + /* Scale energies */ + nrgs[ i ] = silk_SMMUL( tmp32, silk_LSHIFT32( nrgs[ i ], lz1 ) ); /* Q( nrgsQ[ i ] + lz1 + 2 * lz2 - 32 - 32 )*/ + nrgsQ[ i ] += lz1 + 2 * lz2 - 32 - 32; + } + RESTORE_STACK; +} diff --git a/components/opus/libopus/silk/fixed/schur64_FIX.c b/components/opus/libopus/silk/fixed/schur64_FIX.c new file mode 100644 index 0000000..4b7e19e --- /dev/null +++ b/components/opus/libopus/silk/fixed/schur64_FIX.c @@ -0,0 +1,93 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "SigProc_FIX.h" + +/* Slower than schur(), but more accurate. */ +/* Uses SMULL(), available on armv4 */ +opus_int32 silk_schur64( /* O returns residual energy */ + opus_int32 rc_Q16[], /* O Reflection coefficients [order] Q16 */ + const opus_int32 c[], /* I Correlations [order+1] */ + opus_int32 order /* I Prediction order */ +) +{ + opus_int k, n; + opus_int32 C[ SILK_MAX_ORDER_LPC + 1 ][ 2 ]; + opus_int32 Ctmp1_Q30, Ctmp2_Q30, rc_tmp_Q31; + + celt_assert( order >= 0 && order <= SILK_MAX_ORDER_LPC ); + + /* Check for invalid input */ + if( c[ 0 ] <= 0 ) { + silk_memset( rc_Q16, 0, order * sizeof( opus_int32 ) ); + return 0; + } + + k = 0; + do { + C[ k ][ 0 ] = C[ k ][ 1 ] = c[ k ]; + } while( ++k <= order ); + + for( k = 0; k < order; k++ ) { + /* Check that we won't be getting an unstable rc, otherwise stop here. */ + if (silk_abs_int32(C[ k + 1 ][ 0 ]) >= C[ 0 ][ 1 ]) { + if ( C[ k + 1 ][ 0 ] > 0 ) { + rc_Q16[ k ] = -SILK_FIX_CONST( .99f, 16 ); + } else { + rc_Q16[ k ] = SILK_FIX_CONST( .99f, 16 ); + } + k++; + break; + } + + /* Get reflection coefficient: divide two Q30 values and get result in Q31 */ + rc_tmp_Q31 = silk_DIV32_varQ( -C[ k + 1 ][ 0 ], C[ 0 ][ 1 ], 31 ); + + /* Save the output */ + rc_Q16[ k ] = silk_RSHIFT_ROUND( rc_tmp_Q31, 15 ); + + /* Update correlations */ + for( n = 0; n < order - k; n++ ) { + Ctmp1_Q30 = C[ n + k + 1 ][ 0 ]; + Ctmp2_Q30 = C[ n ][ 1 ]; + + /* Multiply and add the highest int32 */ + C[ n + k + 1 ][ 0 ] = Ctmp1_Q30 + silk_SMMUL( silk_LSHIFT( Ctmp2_Q30, 1 ), rc_tmp_Q31 ); + C[ n ][ 1 ] = Ctmp2_Q30 + silk_SMMUL( silk_LSHIFT( Ctmp1_Q30, 1 ), rc_tmp_Q31 ); + } + } + + for(; k < order; k++ ) { + rc_Q16[ k ] = 0; + } + + return silk_max_32( 1, C[ 0 ][ 1 ] ); +} diff --git a/components/opus/libopus/silk/fixed/schur_FIX.c b/components/opus/libopus/silk/fixed/schur_FIX.c new file mode 100644 index 0000000..2840f6b --- /dev/null +++ b/components/opus/libopus/silk/fixed/schur_FIX.c @@ -0,0 +1,107 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "SigProc_FIX.h" + +/* Faster than schur64(), but much less accurate. */ +/* uses SMLAWB(), requiring armv5E and higher. */ +opus_int32 silk_schur( /* O Returns residual energy */ + opus_int16 *rc_Q15, /* O reflection coefficients [order] Q15 */ + const opus_int32 *c, /* I correlations [order+1] */ + const opus_int32 order /* I prediction order */ +) +{ + opus_int k, n, lz; + opus_int32 C[ SILK_MAX_ORDER_LPC + 1 ][ 2 ]; + opus_int32 Ctmp1, Ctmp2, rc_tmp_Q15; + + celt_assert( order >= 0 && order <= SILK_MAX_ORDER_LPC ); + + /* Get number of leading zeros */ + lz = silk_CLZ32( c[ 0 ] ); + + /* Copy correlations and adjust level to Q30 */ + k = 0; + if( lz < 2 ) { + /* lz must be 1, so shift one to the right */ + do { + C[ k ][ 0 ] = C[ k ][ 1 ] = silk_RSHIFT( c[ k ], 1 ); + } while( ++k <= order ); + } else if( lz > 2 ) { + /* Shift to the left */ + lz -= 2; + do { + C[ k ][ 0 ] = C[ k ][ 1 ] = silk_LSHIFT( c[ k ], lz ); + } while( ++k <= order ); + } else { + /* No need to shift */ + do { + C[ k ][ 0 ] = C[ k ][ 1 ] = c[ k ]; + } while( ++k <= order ); + } + + for( k = 0; k < order; k++ ) { + /* Check that we won't be getting an unstable rc, otherwise stop here. */ + if (silk_abs_int32(C[ k + 1 ][ 0 ]) >= C[ 0 ][ 1 ]) { + if ( C[ k + 1 ][ 0 ] > 0 ) { + rc_Q15[ k ] = -SILK_FIX_CONST( .99f, 15 ); + } else { + rc_Q15[ k ] = SILK_FIX_CONST( .99f, 15 ); + } + k++; + break; + } + + /* Get reflection coefficient */ + rc_tmp_Q15 = -silk_DIV32_16( C[ k + 1 ][ 0 ], silk_max_32( silk_RSHIFT( C[ 0 ][ 1 ], 15 ), 1 ) ); + + /* Clip (shouldn't happen for properly conditioned inputs) */ + rc_tmp_Q15 = silk_SAT16( rc_tmp_Q15 ); + + /* Store */ + rc_Q15[ k ] = (opus_int16)rc_tmp_Q15; + + /* Update correlations */ + for( n = 0; n < order - k; n++ ) { + Ctmp1 = C[ n + k + 1 ][ 0 ]; + Ctmp2 = C[ n ][ 1 ]; + C[ n + k + 1 ][ 0 ] = silk_SMLAWB( Ctmp1, silk_LSHIFT( Ctmp2, 1 ), rc_tmp_Q15 ); + C[ n ][ 1 ] = silk_SMLAWB( Ctmp2, silk_LSHIFT( Ctmp1, 1 ), rc_tmp_Q15 ); + } + } + + for(; k < order; k++ ) { + rc_Q15[ k ] = 0; + } + + /* return residual energy */ + return silk_max_32( 1, C[ 0 ][ 1 ] ); +} diff --git a/components/opus/libopus/silk/fixed/structs_FIX.h b/components/opus/libopus/silk/fixed/structs_FIX.h new file mode 100644 index 0000000..2774a97 --- /dev/null +++ b/components/opus/libopus/silk/fixed/structs_FIX.h @@ -0,0 +1,116 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifndef SILK_STRUCTS_FIX_H +#define SILK_STRUCTS_FIX_H + +#include "typedef.h" +#include "main.h" +#include "structs.h" + +#ifdef __cplusplus +extern "C" +{ +#endif + +/********************************/ +/* Noise shaping analysis state */ +/********************************/ +typedef struct { + opus_int8 LastGainIndex; + opus_int32 HarmBoost_smth_Q16; + opus_int32 HarmShapeGain_smth_Q16; + opus_int32 Tilt_smth_Q16; +} silk_shape_state_FIX; + +/********************************/ +/* Encoder state FIX */ +/********************************/ +typedef struct { + silk_encoder_state sCmn; /* Common struct, shared with floating-point code */ + silk_shape_state_FIX sShape; /* Shape state */ + + /* Buffer for find pitch and noise shape analysis */ + silk_DWORD_ALIGN opus_int16 x_buf[ 2 * MAX_FRAME_LENGTH + LA_SHAPE_MAX ];/* Buffer for find pitch and noise shape analysis */ + opus_int LTPCorr_Q15; /* Normalized correlation from pitch lag estimator */ + opus_int32 resNrgSmth; +} silk_encoder_state_FIX; + +/************************/ +/* Encoder control FIX */ +/************************/ +typedef struct { + /* Prediction and coding parameters */ + opus_int32 Gains_Q16[ MAX_NB_SUBFR ]; + silk_DWORD_ALIGN opus_int16 PredCoef_Q12[ 2 ][ MAX_LPC_ORDER ]; + opus_int16 LTPCoef_Q14[ LTP_ORDER * MAX_NB_SUBFR ]; + opus_int LTP_scale_Q14; + opus_int pitchL[ MAX_NB_SUBFR ]; + + /* Noise shaping parameters */ + /* Testing */ + silk_DWORD_ALIGN opus_int16 AR_Q13[ MAX_NB_SUBFR * MAX_SHAPE_LPC_ORDER ]; + opus_int32 LF_shp_Q14[ MAX_NB_SUBFR ]; /* Packs two int16 coefficients per int32 value */ + opus_int Tilt_Q14[ MAX_NB_SUBFR ]; + opus_int HarmShapeGain_Q14[ MAX_NB_SUBFR ]; + opus_int Lambda_Q10; + opus_int input_quality_Q14; + opus_int coding_quality_Q14; + + /* measures */ + opus_int32 predGain_Q16; + opus_int LTPredCodGain_Q7; + opus_int32 ResNrg[ MAX_NB_SUBFR ]; /* Residual energy per subframe */ + opus_int ResNrgQ[ MAX_NB_SUBFR ]; /* Q domain for the residual energy > 0 */ + + /* Parameters for CBR mode */ + opus_int32 GainsUnq_Q16[ MAX_NB_SUBFR ]; + opus_int8 lastGainIndexPrev; +} silk_encoder_control_FIX; + +/************************/ +/* Encoder Super Struct */ +/************************/ +typedef struct { + silk_encoder_state_FIX state_Fxx[ ENCODER_NUM_CHANNELS ]; + stereo_enc_state sStereo; + opus_int32 nBitsUsedLBRR; + opus_int32 nBitsExceeded; + opus_int nChannelsAPI; + opus_int nChannelsInternal; + opus_int nPrevChannelsInternal; + opus_int timeSinceSwitchAllowed_ms; + opus_int allowBandwidthSwitch; + opus_int prev_decode_only_middle; +} silk_encoder; + + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/components/opus/libopus/silk/fixed/vector_ops_FIX.c b/components/opus/libopus/silk/fixed/vector_ops_FIX.c new file mode 100644 index 0000000..d949800 --- /dev/null +++ b/components/opus/libopus/silk/fixed/vector_ops_FIX.c @@ -0,0 +1,102 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "SigProc_FIX.h" +#include "pitch.h" + +/* Copy and multiply a vector by a constant */ +void silk_scale_copy_vector16( + opus_int16 *data_out, + const opus_int16 *data_in, + opus_int32 gain_Q16, /* I Gain in Q16 */ + const opus_int dataSize /* I Length */ +) +{ + opus_int i; + opus_int32 tmp32; + + for( i = 0; i < dataSize; i++ ) { + tmp32 = silk_SMULWB( gain_Q16, data_in[ i ] ); + data_out[ i ] = (opus_int16)silk_CHECK_FIT16( tmp32 ); + } +} + +/* Multiply a vector by a constant */ +void silk_scale_vector32_Q26_lshift_18( + opus_int32 *data1, /* I/O Q0/Q18 */ + opus_int32 gain_Q26, /* I Q26 */ + opus_int dataSize /* I length */ +) +{ + opus_int i; + + for( i = 0; i < dataSize; i++ ) { + data1[ i ] = (opus_int32)silk_CHECK_FIT32( silk_RSHIFT64( silk_SMULL( data1[ i ], gain_Q26 ), 8 ) ); /* OUTPUT: Q18 */ + } +} + +/* sum = for(i=0;i6, memory access can be reduced by half. */ +opus_int32 silk_inner_prod_aligned( + const opus_int16 *const inVec1, /* I input vector 1 */ + const opus_int16 *const inVec2, /* I input vector 2 */ + const opus_int len, /* I vector lengths */ + int arch /* I Run-time architecture */ +) +{ +#ifdef FIXED_POINT + return celt_inner_prod(inVec1, inVec2, len, arch); +#else + opus_int i; + opus_int32 sum = 0; + for( i = 0; i < len; i++ ) { + sum = silk_SMLABB( sum, inVec1[ i ], inVec2[ i ] ); + } + return sum; +#endif +} + +opus_int64 silk_inner_prod16_aligned_64_c( + const opus_int16 *inVec1, /* I input vector 1 */ + const opus_int16 *inVec2, /* I input vector 2 */ + const opus_int len /* I vector lengths */ +) +{ + opus_int i; + opus_int64 sum = 0; + for( i = 0; i < len; i++ ) { + sum = silk_SMLALBB( sum, inVec1[ i ], inVec2[ i ] ); + } + return sum; +} diff --git a/components/opus/libopus/silk/fixed/warped_autocorrelation_FIX.c b/components/opus/libopus/silk/fixed/warped_autocorrelation_FIX.c new file mode 100644 index 0000000..5c79553 --- /dev/null +++ b/components/opus/libopus/silk/fixed/warped_autocorrelation_FIX.c @@ -0,0 +1,92 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main_FIX.h" + +#if defined(MIPSr1_ASM) +#include "mips/warped_autocorrelation_FIX_mipsr1.h" +#endif + + +/* Autocorrelations for a warped frequency axis */ +#ifndef OVERRIDE_silk_warped_autocorrelation_FIX_c +void silk_warped_autocorrelation_FIX_c( + opus_int32 *corr, /* O Result [order + 1] */ + opus_int *scale, /* O Scaling of the correlation vector */ + const opus_int16 *input, /* I Input data to correlate */ + const opus_int warping_Q16, /* I Warping coefficient */ + const opus_int length, /* I Length of input */ + const opus_int order /* I Correlation order (even) */ +) +{ + opus_int n, i, lsh; + opus_int32 tmp1_QS, tmp2_QS; + opus_int32 state_QS[ MAX_SHAPE_LPC_ORDER + 1 ] = { 0 }; + opus_int64 corr_QC[ MAX_SHAPE_LPC_ORDER + 1 ] = { 0 }; + + /* Order must be even */ + celt_assert( ( order & 1 ) == 0 ); + silk_assert( 2 * QS - QC >= 0 ); + + /* Loop over samples */ + for( n = 0; n < length; n++ ) { + tmp1_QS = silk_LSHIFT32( (opus_int32)input[ n ], QS ); + /* Loop over allpass sections */ + for( i = 0; i < order; i += 2 ) { + /* Output of allpass section */ + tmp2_QS = silk_SMLAWB( state_QS[ i ], state_QS[ i + 1 ] - tmp1_QS, warping_Q16 ); + state_QS[ i ] = tmp1_QS; + corr_QC[ i ] += silk_RSHIFT64( silk_SMULL( tmp1_QS, state_QS[ 0 ] ), 2 * QS - QC ); + /* Output of allpass section */ + tmp1_QS = silk_SMLAWB( state_QS[ i + 1 ], state_QS[ i + 2 ] - tmp2_QS, warping_Q16 ); + state_QS[ i + 1 ] = tmp2_QS; + corr_QC[ i + 1 ] += silk_RSHIFT64( silk_SMULL( tmp2_QS, state_QS[ 0 ] ), 2 * QS - QC ); + } + state_QS[ order ] = tmp1_QS; + corr_QC[ order ] += silk_RSHIFT64( silk_SMULL( tmp1_QS, state_QS[ 0 ] ), 2 * QS - QC ); + } + + lsh = silk_CLZ64( corr_QC[ 0 ] ) - 35; + lsh = silk_LIMIT( lsh, -12 - QC, 30 - QC ); + *scale = -( QC + lsh ); + silk_assert( *scale >= -30 && *scale <= 12 ); + if( lsh >= 0 ) { + for( i = 0; i < order + 1; i++ ) { + corr[ i ] = (opus_int32)silk_CHECK_FIT32( silk_LSHIFT64( corr_QC[ i ], lsh ) ); + } + } else { + for( i = 0; i < order + 1; i++ ) { + corr[ i ] = (opus_int32)silk_CHECK_FIT32( silk_RSHIFT64( corr_QC[ i ], -lsh ) ); + } + } + silk_assert( corr_QC[ 0 ] >= 0 ); /* If breaking, decrease QC*/ +} +#endif /* OVERRIDE_silk_warped_autocorrelation_FIX_c */ diff --git a/components/opus/libopus/silk/fixed/x86/burg_modified_FIX_sse4_1.c b/components/opus/libopus/silk/fixed/x86/burg_modified_FIX_sse4_1.c new file mode 100644 index 0000000..bbb1ce0 --- /dev/null +++ b/components/opus/libopus/silk/fixed/x86/burg_modified_FIX_sse4_1.c @@ -0,0 +1,377 @@ +/* Copyright (c) 2014, Cisco Systems, INC + Written by XiangMingZhu WeiZhou MinPeng YanWang + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include +#include + +#include "SigProc_FIX.h" +#include "define.h" +#include "tuning_parameters.h" +#include "pitch.h" +#include "celt/x86/x86cpu.h" + +#define MAX_FRAME_SIZE 384 /* subfr_length * nb_subfr = ( 0.005 * 16000 + 16 ) * 4 = 384 */ + +#define QA 25 +#define N_BITS_HEAD_ROOM 2 +#define MIN_RSHIFTS -16 +#define MAX_RSHIFTS (32 - QA) + +/* Compute reflection coefficients from input signal */ +void silk_burg_modified_sse4_1( + opus_int32 *res_nrg, /* O Residual energy */ + opus_int *res_nrg_Q, /* O Residual energy Q value */ + opus_int32 A_Q16[], /* O Prediction coefficients (length order) */ + const opus_int16 x[], /* I Input signal, length: nb_subfr * ( D + subfr_length ) */ + const opus_int32 minInvGain_Q30, /* I Inverse of max prediction gain */ + const opus_int subfr_length, /* I Input signal subframe length (incl. D preceding samples) */ + const opus_int nb_subfr, /* I Number of subframes stacked in x */ + const opus_int D, /* I Order */ + int arch /* I Run-time architecture */ +) +{ + opus_int k, n, s, lz, rshifts, rshifts_extra, reached_max_gain; + opus_int32 C0, num, nrg, rc_Q31, invGain_Q30, Atmp_QA, Atmp1, tmp1, tmp2, x1, x2; + const opus_int16 *x_ptr; + opus_int32 C_first_row[ SILK_MAX_ORDER_LPC ]; + opus_int32 C_last_row[ SILK_MAX_ORDER_LPC ]; + opus_int32 Af_QA[ SILK_MAX_ORDER_LPC ]; + opus_int32 CAf[ SILK_MAX_ORDER_LPC + 1 ]; + opus_int32 CAb[ SILK_MAX_ORDER_LPC + 1 ]; + opus_int32 xcorr[ SILK_MAX_ORDER_LPC ]; + + __m128i FIRST_3210, LAST_3210, ATMP_3210, TMP1_3210, TMP2_3210, T1_3210, T2_3210, PTR_3210, SUBFR_3210, X1_3210, X2_3210; + __m128i CONST1 = _mm_set1_epi32(1); + + celt_assert( subfr_length * nb_subfr <= MAX_FRAME_SIZE ); + + /* Compute autocorrelations, added over subframes */ + silk_sum_sqr_shift( &C0, &rshifts, x, nb_subfr * subfr_length ); + if( rshifts > MAX_RSHIFTS ) { + C0 = silk_LSHIFT32( C0, rshifts - MAX_RSHIFTS ); + silk_assert( C0 > 0 ); + rshifts = MAX_RSHIFTS; + } else { + lz = silk_CLZ32( C0 ) - 1; + rshifts_extra = N_BITS_HEAD_ROOM - lz; + if( rshifts_extra > 0 ) { + rshifts_extra = silk_min( rshifts_extra, MAX_RSHIFTS - rshifts ); + C0 = silk_RSHIFT32( C0, rshifts_extra ); + } else { + rshifts_extra = silk_max( rshifts_extra, MIN_RSHIFTS - rshifts ); + C0 = silk_LSHIFT32( C0, -rshifts_extra ); + } + rshifts += rshifts_extra; + } + CAb[ 0 ] = CAf[ 0 ] = C0 + silk_SMMUL( SILK_FIX_CONST( FIND_LPC_COND_FAC, 32 ), C0 ) + 1; /* Q(-rshifts) */ + silk_memset( C_first_row, 0, SILK_MAX_ORDER_LPC * sizeof( opus_int32 ) ); + if( rshifts > 0 ) { + for( s = 0; s < nb_subfr; s++ ) { + x_ptr = x + s * subfr_length; + for( n = 1; n < D + 1; n++ ) { + C_first_row[ n - 1 ] += (opus_int32)silk_RSHIFT64( + silk_inner_prod16_aligned_64( x_ptr, x_ptr + n, subfr_length - n, arch ), rshifts ); + } + } + } else { + for( s = 0; s < nb_subfr; s++ ) { + int i; + opus_int32 d; + x_ptr = x + s * subfr_length; + celt_pitch_xcorr(x_ptr, x_ptr + 1, xcorr, subfr_length - D, D, arch ); + for( n = 1; n < D + 1; n++ ) { + for ( i = n + subfr_length - D, d = 0; i < subfr_length; i++ ) + d = MAC16_16( d, x_ptr[ i ], x_ptr[ i - n ] ); + xcorr[ n - 1 ] += d; + } + for( n = 1; n < D + 1; n++ ) { + C_first_row[ n - 1 ] += silk_LSHIFT32( xcorr[ n - 1 ], -rshifts ); + } + } + } + silk_memcpy( C_last_row, C_first_row, SILK_MAX_ORDER_LPC * sizeof( opus_int32 ) ); + + /* Initialize */ + CAb[ 0 ] = CAf[ 0 ] = C0 + silk_SMMUL( SILK_FIX_CONST( FIND_LPC_COND_FAC, 32 ), C0 ) + 1; /* Q(-rshifts) */ + + invGain_Q30 = (opus_int32)1 << 30; + reached_max_gain = 0; + for( n = 0; n < D; n++ ) { + /* Update first row of correlation matrix (without first element) */ + /* Update last row of correlation matrix (without last element, stored in reversed order) */ + /* Update C * Af */ + /* Update C * flipud(Af) (stored in reversed order) */ + if( rshifts > -2 ) { + for( s = 0; s < nb_subfr; s++ ) { + x_ptr = x + s * subfr_length; + x1 = -silk_LSHIFT32( (opus_int32)x_ptr[ n ], 16 - rshifts ); /* Q(16-rshifts) */ + x2 = -silk_LSHIFT32( (opus_int32)x_ptr[ subfr_length - n - 1 ], 16 - rshifts ); /* Q(16-rshifts) */ + tmp1 = silk_LSHIFT32( (opus_int32)x_ptr[ n ], QA - 16 ); /* Q(QA-16) */ + tmp2 = silk_LSHIFT32( (opus_int32)x_ptr[ subfr_length - n - 1 ], QA - 16 ); /* Q(QA-16) */ + for( k = 0; k < n; k++ ) { + C_first_row[ k ] = silk_SMLAWB( C_first_row[ k ], x1, x_ptr[ n - k - 1 ] ); /* Q( -rshifts ) */ + C_last_row[ k ] = silk_SMLAWB( C_last_row[ k ], x2, x_ptr[ subfr_length - n + k ] ); /* Q( -rshifts ) */ + Atmp_QA = Af_QA[ k ]; + tmp1 = silk_SMLAWB( tmp1, Atmp_QA, x_ptr[ n - k - 1 ] ); /* Q(QA-16) */ + tmp2 = silk_SMLAWB( tmp2, Atmp_QA, x_ptr[ subfr_length - n + k ] ); /* Q(QA-16) */ + } + tmp1 = silk_LSHIFT32( -tmp1, 32 - QA - rshifts ); /* Q(16-rshifts) */ + tmp2 = silk_LSHIFT32( -tmp2, 32 - QA - rshifts ); /* Q(16-rshifts) */ + for( k = 0; k <= n; k++ ) { + CAf[ k ] = silk_SMLAWB( CAf[ k ], tmp1, x_ptr[ n - k ] ); /* Q( -rshift ) */ + CAb[ k ] = silk_SMLAWB( CAb[ k ], tmp2, x_ptr[ subfr_length - n + k - 1 ] ); /* Q( -rshift ) */ + } + } + } else { + for( s = 0; s < nb_subfr; s++ ) { + x_ptr = x + s * subfr_length; + x1 = -silk_LSHIFT32( (opus_int32)x_ptr[ n ], -rshifts ); /* Q( -rshifts ) */ + x2 = -silk_LSHIFT32( (opus_int32)x_ptr[ subfr_length - n - 1 ], -rshifts ); /* Q( -rshifts ) */ + tmp1 = silk_LSHIFT32( (opus_int32)x_ptr[ n ], 17 ); /* Q17 */ + tmp2 = silk_LSHIFT32( (opus_int32)x_ptr[ subfr_length - n - 1 ], 17 ); /* Q17 */ + + X1_3210 = _mm_set1_epi32( x1 ); + X2_3210 = _mm_set1_epi32( x2 ); + TMP1_3210 = _mm_setzero_si128(); + TMP2_3210 = _mm_setzero_si128(); + for( k = 0; k < n - 3; k += 4 ) { + PTR_3210 = OP_CVTEPI16_EPI32_M64( &x_ptr[ n - k - 1 - 3 ] ); + SUBFR_3210 = OP_CVTEPI16_EPI32_M64( &x_ptr[ subfr_length - n + k ] ); + FIRST_3210 = _mm_loadu_si128( (__m128i *)&C_first_row[ k ] ); + PTR_3210 = _mm_shuffle_epi32( PTR_3210, _MM_SHUFFLE( 0, 1, 2, 3 ) ); + LAST_3210 = _mm_loadu_si128( (__m128i *)&C_last_row[ k ] ); + ATMP_3210 = _mm_loadu_si128( (__m128i *)&Af_QA[ k ] ); + + T1_3210 = _mm_mullo_epi32( PTR_3210, X1_3210 ); + T2_3210 = _mm_mullo_epi32( SUBFR_3210, X2_3210 ); + + ATMP_3210 = _mm_srai_epi32( ATMP_3210, 7 ); + ATMP_3210 = _mm_add_epi32( ATMP_3210, CONST1 ); + ATMP_3210 = _mm_srai_epi32( ATMP_3210, 1 ); + + FIRST_3210 = _mm_add_epi32( FIRST_3210, T1_3210 ); + LAST_3210 = _mm_add_epi32( LAST_3210, T2_3210 ); + + PTR_3210 = _mm_mullo_epi32( ATMP_3210, PTR_3210 ); + SUBFR_3210 = _mm_mullo_epi32( ATMP_3210, SUBFR_3210 ); + + _mm_storeu_si128( (__m128i *)&C_first_row[ k ], FIRST_3210 ); + _mm_storeu_si128( (__m128i *)&C_last_row[ k ], LAST_3210 ); + + TMP1_3210 = _mm_add_epi32( TMP1_3210, PTR_3210 ); + TMP2_3210 = _mm_add_epi32( TMP2_3210, SUBFR_3210 ); + } + + TMP1_3210 = _mm_add_epi32( TMP1_3210, _mm_unpackhi_epi64(TMP1_3210, TMP1_3210 ) ); + TMP2_3210 = _mm_add_epi32( TMP2_3210, _mm_unpackhi_epi64(TMP2_3210, TMP2_3210 ) ); + TMP1_3210 = _mm_add_epi32( TMP1_3210, _mm_shufflelo_epi16(TMP1_3210, 0x0E ) ); + TMP2_3210 = _mm_add_epi32( TMP2_3210, _mm_shufflelo_epi16(TMP2_3210, 0x0E ) ); + + tmp1 += _mm_cvtsi128_si32( TMP1_3210 ); + tmp2 += _mm_cvtsi128_si32( TMP2_3210 ); + + for( ; k < n; k++ ) { + C_first_row[ k ] = silk_MLA( C_first_row[ k ], x1, x_ptr[ n - k - 1 ] ); /* Q( -rshifts ) */ + C_last_row[ k ] = silk_MLA( C_last_row[ k ], x2, x_ptr[ subfr_length - n + k ] ); /* Q( -rshifts ) */ + Atmp1 = silk_RSHIFT_ROUND( Af_QA[ k ], QA - 17 ); /* Q17 */ + tmp1 = silk_MLA( tmp1, x_ptr[ n - k - 1 ], Atmp1 ); /* Q17 */ + tmp2 = silk_MLA( tmp2, x_ptr[ subfr_length - n + k ], Atmp1 ); /* Q17 */ + } + + tmp1 = -tmp1; /* Q17 */ + tmp2 = -tmp2; /* Q17 */ + + { + __m128i xmm_tmp1, xmm_tmp2; + __m128i xmm_x_ptr_n_k_x2x0, xmm_x_ptr_n_k_x3x1; + __m128i xmm_x_ptr_sub_x2x0, xmm_x_ptr_sub_x3x1; + + xmm_tmp1 = _mm_set1_epi32( tmp1 ); + xmm_tmp2 = _mm_set1_epi32( tmp2 ); + + for( k = 0; k <= n - 3; k += 4 ) { + xmm_x_ptr_n_k_x2x0 = OP_CVTEPI16_EPI32_M64( &x_ptr[ n - k - 3 ] ); + xmm_x_ptr_sub_x2x0 = OP_CVTEPI16_EPI32_M64( &x_ptr[ subfr_length - n + k - 1 ] ); + + xmm_x_ptr_n_k_x2x0 = _mm_shuffle_epi32( xmm_x_ptr_n_k_x2x0, _MM_SHUFFLE( 0, 1, 2, 3 ) ); + + xmm_x_ptr_n_k_x2x0 = _mm_slli_epi32( xmm_x_ptr_n_k_x2x0, -rshifts - 1 ); + xmm_x_ptr_sub_x2x0 = _mm_slli_epi32( xmm_x_ptr_sub_x2x0, -rshifts - 1 ); + + /* equal shift right 4 bytes, xmm_x_ptr_n_k_x3x1 = _mm_srli_si128(xmm_x_ptr_n_k_x2x0, 4)*/ + xmm_x_ptr_n_k_x3x1 = _mm_shuffle_epi32( xmm_x_ptr_n_k_x2x0, _MM_SHUFFLE( 0, 3, 2, 1 ) ); + xmm_x_ptr_sub_x3x1 = _mm_shuffle_epi32( xmm_x_ptr_sub_x2x0, _MM_SHUFFLE( 0, 3, 2, 1 ) ); + + xmm_x_ptr_n_k_x2x0 = _mm_mul_epi32( xmm_x_ptr_n_k_x2x0, xmm_tmp1 ); + xmm_x_ptr_n_k_x3x1 = _mm_mul_epi32( xmm_x_ptr_n_k_x3x1, xmm_tmp1 ); + xmm_x_ptr_sub_x2x0 = _mm_mul_epi32( xmm_x_ptr_sub_x2x0, xmm_tmp2 ); + xmm_x_ptr_sub_x3x1 = _mm_mul_epi32( xmm_x_ptr_sub_x3x1, xmm_tmp2 ); + + xmm_x_ptr_n_k_x2x0 = _mm_srli_epi64( xmm_x_ptr_n_k_x2x0, 16 ); + xmm_x_ptr_n_k_x3x1 = _mm_slli_epi64( xmm_x_ptr_n_k_x3x1, 16 ); + xmm_x_ptr_sub_x2x0 = _mm_srli_epi64( xmm_x_ptr_sub_x2x0, 16 ); + xmm_x_ptr_sub_x3x1 = _mm_slli_epi64( xmm_x_ptr_sub_x3x1, 16 ); + + xmm_x_ptr_n_k_x2x0 = _mm_blend_epi16( xmm_x_ptr_n_k_x2x0, xmm_x_ptr_n_k_x3x1, 0xCC ); + xmm_x_ptr_sub_x2x0 = _mm_blend_epi16( xmm_x_ptr_sub_x2x0, xmm_x_ptr_sub_x3x1, 0xCC ); + + X1_3210 = _mm_loadu_si128( (__m128i *)&CAf[ k ] ); + PTR_3210 = _mm_loadu_si128( (__m128i *)&CAb[ k ] ); + + X1_3210 = _mm_add_epi32( X1_3210, xmm_x_ptr_n_k_x2x0 ); + PTR_3210 = _mm_add_epi32( PTR_3210, xmm_x_ptr_sub_x2x0 ); + + _mm_storeu_si128( (__m128i *)&CAf[ k ], X1_3210 ); + _mm_storeu_si128( (__m128i *)&CAb[ k ], PTR_3210 ); + } + + for( ; k <= n; k++ ) { + CAf[ k ] = silk_SMLAWW( CAf[ k ], tmp1, + silk_LSHIFT32( (opus_int32)x_ptr[ n - k ], -rshifts - 1 ) ); /* Q( -rshift ) */ + CAb[ k ] = silk_SMLAWW( CAb[ k ], tmp2, + silk_LSHIFT32( (opus_int32)x_ptr[ subfr_length - n + k - 1 ], -rshifts - 1 ) ); /* Q( -rshift ) */ + } + } + } + } + + /* Calculate nominator and denominator for the next order reflection (parcor) coefficient */ + tmp1 = C_first_row[ n ]; /* Q( -rshifts ) */ + tmp2 = C_last_row[ n ]; /* Q( -rshifts ) */ + num = 0; /* Q( -rshifts ) */ + nrg = silk_ADD32( CAb[ 0 ], CAf[ 0 ] ); /* Q( 1-rshifts ) */ + for( k = 0; k < n; k++ ) { + Atmp_QA = Af_QA[ k ]; + lz = silk_CLZ32( silk_abs( Atmp_QA ) ) - 1; + lz = silk_min( 32 - QA, lz ); + Atmp1 = silk_LSHIFT32( Atmp_QA, lz ); /* Q( QA + lz ) */ + + tmp1 = silk_ADD_LSHIFT32( tmp1, silk_SMMUL( C_last_row[ n - k - 1 ], Atmp1 ), 32 - QA - lz ); /* Q( -rshifts ) */ + tmp2 = silk_ADD_LSHIFT32( tmp2, silk_SMMUL( C_first_row[ n - k - 1 ], Atmp1 ), 32 - QA - lz ); /* Q( -rshifts ) */ + num = silk_ADD_LSHIFT32( num, silk_SMMUL( CAb[ n - k ], Atmp1 ), 32 - QA - lz ); /* Q( -rshifts ) */ + nrg = silk_ADD_LSHIFT32( nrg, silk_SMMUL( silk_ADD32( CAb[ k + 1 ], CAf[ k + 1 ] ), + Atmp1 ), 32 - QA - lz ); /* Q( 1-rshifts ) */ + } + CAf[ n + 1 ] = tmp1; /* Q( -rshifts ) */ + CAb[ n + 1 ] = tmp2; /* Q( -rshifts ) */ + num = silk_ADD32( num, tmp2 ); /* Q( -rshifts ) */ + num = silk_LSHIFT32( -num, 1 ); /* Q( 1-rshifts ) */ + + /* Calculate the next order reflection (parcor) coefficient */ + if( silk_abs( num ) < nrg ) { + rc_Q31 = silk_DIV32_varQ( num, nrg, 31 ); + } else { + rc_Q31 = ( num > 0 ) ? silk_int32_MAX : silk_int32_MIN; + } + + /* Update inverse prediction gain */ + tmp1 = ( (opus_int32)1 << 30 ) - silk_SMMUL( rc_Q31, rc_Q31 ); + tmp1 = silk_LSHIFT( silk_SMMUL( invGain_Q30, tmp1 ), 2 ); + if( tmp1 <= minInvGain_Q30 ) { + /* Max prediction gain exceeded; set reflection coefficient such that max prediction gain is exactly hit */ + tmp2 = ( (opus_int32)1 << 30 ) - silk_DIV32_varQ( minInvGain_Q30, invGain_Q30, 30 ); /* Q30 */ + rc_Q31 = silk_SQRT_APPROX( tmp2 ); /* Q15 */ + if( rc_Q31 > 0 ) { + /* Newton-Raphson iteration */ + rc_Q31 = silk_RSHIFT32( rc_Q31 + silk_DIV32( tmp2, rc_Q31 ), 1 ); /* Q15 */ + rc_Q31 = silk_LSHIFT32( rc_Q31, 16 ); /* Q31 */ + if( num < 0 ) { + /* Ensure adjusted reflection coefficients has the original sign */ + rc_Q31 = -rc_Q31; + } + } + invGain_Q30 = minInvGain_Q30; + reached_max_gain = 1; + } else { + invGain_Q30 = tmp1; + } + + /* Update the AR coefficients */ + for( k = 0; k < (n + 1) >> 1; k++ ) { + tmp1 = Af_QA[ k ]; /* QA */ + tmp2 = Af_QA[ n - k - 1 ]; /* QA */ + Af_QA[ k ] = silk_ADD_LSHIFT32( tmp1, silk_SMMUL( tmp2, rc_Q31 ), 1 ); /* QA */ + Af_QA[ n - k - 1 ] = silk_ADD_LSHIFT32( tmp2, silk_SMMUL( tmp1, rc_Q31 ), 1 ); /* QA */ + } + Af_QA[ n ] = silk_RSHIFT32( rc_Q31, 31 - QA ); /* QA */ + + if( reached_max_gain ) { + /* Reached max prediction gain; set remaining coefficients to zero and exit loop */ + for( k = n + 1; k < D; k++ ) { + Af_QA[ k ] = 0; + } + break; + } + + /* Update C * Af and C * Ab */ + for( k = 0; k <= n + 1; k++ ) { + tmp1 = CAf[ k ]; /* Q( -rshifts ) */ + tmp2 = CAb[ n - k + 1 ]; /* Q( -rshifts ) */ + CAf[ k ] = silk_ADD_LSHIFT32( tmp1, silk_SMMUL( tmp2, rc_Q31 ), 1 ); /* Q( -rshifts ) */ + CAb[ n - k + 1 ] = silk_ADD_LSHIFT32( tmp2, silk_SMMUL( tmp1, rc_Q31 ), 1 ); /* Q( -rshifts ) */ + } + } + + if( reached_max_gain ) { + for( k = 0; k < D; k++ ) { + /* Scale coefficients */ + A_Q16[ k ] = -silk_RSHIFT_ROUND( Af_QA[ k ], QA - 16 ); + } + /* Subtract energy of preceding samples from C0 */ + if( rshifts > 0 ) { + for( s = 0; s < nb_subfr; s++ ) { + x_ptr = x + s * subfr_length; + C0 -= (opus_int32)silk_RSHIFT64( silk_inner_prod16_aligned_64( x_ptr, x_ptr, D, arch ), rshifts ); + } + } else { + for( s = 0; s < nb_subfr; s++ ) { + x_ptr = x + s * subfr_length; + C0 -= silk_LSHIFT32( silk_inner_prod_aligned( x_ptr, x_ptr, D, arch ), -rshifts ); + } + } + /* Approximate residual energy */ + *res_nrg = silk_LSHIFT( silk_SMMUL( invGain_Q30, C0 ), 2 ); + *res_nrg_Q = -rshifts; + } else { + /* Return residual energy */ + nrg = CAf[ 0 ]; /* Q( -rshifts ) */ + tmp1 = (opus_int32)1 << 16; /* Q16 */ + for( k = 0; k < D; k++ ) { + Atmp1 = silk_RSHIFT_ROUND( Af_QA[ k ], QA - 16 ); /* Q16 */ + nrg = silk_SMLAWW( nrg, CAf[ k + 1 ], Atmp1 ); /* Q( -rshifts ) */ + tmp1 = silk_SMLAWW( tmp1, Atmp1, Atmp1 ); /* Q16 */ + A_Q16[ k ] = -Atmp1; + } + *res_nrg = silk_SMLAWW( nrg, silk_SMMUL( SILK_FIX_CONST( FIND_LPC_COND_FAC, 32 ), C0 ), -tmp1 );/* Q( -rshifts ) */ + *res_nrg_Q = -rshifts; + } +} diff --git a/components/opus/libopus/silk/fixed/x86/vector_ops_FIX_sse4_1.c b/components/opus/libopus/silk/fixed/x86/vector_ops_FIX_sse4_1.c new file mode 100644 index 0000000..c1e9056 --- /dev/null +++ b/components/opus/libopus/silk/fixed/x86/vector_ops_FIX_sse4_1.c @@ -0,0 +1,88 @@ +/* Copyright (c) 2014, Cisco Systems, INC + Written by XiangMingZhu WeiZhou MinPeng YanWang + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include +#include +#include "main.h" + +#include "SigProc_FIX.h" +#include "pitch.h" + +opus_int64 silk_inner_prod16_aligned_64_sse4_1( + const opus_int16 *inVec1, /* I input vector 1 */ + const opus_int16 *inVec2, /* I input vector 2 */ + const opus_int len /* I vector lengths */ +) +{ + opus_int i, dataSize8; + opus_int64 sum; + + __m128i xmm_tempa; + __m128i inVec1_76543210, acc1; + __m128i inVec2_76543210, acc2; + + sum = 0; + dataSize8 = len & ~7; + + acc1 = _mm_setzero_si128(); + acc2 = _mm_setzero_si128(); + + for( i = 0; i < dataSize8; i += 8 ) { + inVec1_76543210 = _mm_loadu_si128( (__m128i *)(&inVec1[i + 0] ) ); + inVec2_76543210 = _mm_loadu_si128( (__m128i *)(&inVec2[i + 0] ) ); + + /* only when all 4 operands are -32768 (0x8000), this results in wrap around */ + inVec1_76543210 = _mm_madd_epi16( inVec1_76543210, inVec2_76543210 ); + + xmm_tempa = _mm_cvtepi32_epi64( inVec1_76543210 ); + /* equal shift right 8 bytes */ + inVec1_76543210 = _mm_shuffle_epi32( inVec1_76543210, _MM_SHUFFLE( 0, 0, 3, 2 ) ); + inVec1_76543210 = _mm_cvtepi32_epi64( inVec1_76543210 ); + + acc1 = _mm_add_epi64( acc1, xmm_tempa ); + acc2 = _mm_add_epi64( acc2, inVec1_76543210 ); + } + + acc1 = _mm_add_epi64( acc1, acc2 ); + + /* equal shift right 8 bytes */ + acc2 = _mm_shuffle_epi32( acc1, _MM_SHUFFLE( 0, 0, 3, 2 ) ); + acc1 = _mm_add_epi64( acc1, acc2 ); + + _mm_storel_epi64( (__m128i *)&sum, acc1 ); + + for( ; i < len; i++ ) { + sum = silk_SMLABB( sum, inVec1[ i ], inVec2[ i ] ); + } + + return sum; +} diff --git a/components/opus/libopus/silk/float/LPC_analysis_filter_FLP.c b/components/opus/libopus/silk/float/LPC_analysis_filter_FLP.c new file mode 100644 index 0000000..0e1a1fe --- /dev/null +++ b/components/opus/libopus/silk/float/LPC_analysis_filter_FLP.c @@ -0,0 +1,249 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include "main_FLP.h" + +/************************************************/ +/* LPC analysis filter */ +/* NB! State is kept internally and the */ +/* filter always starts with zero state */ +/* first Order output samples are set to zero */ +/************************************************/ + +/* 16th order LPC analysis filter, does not write first 16 samples */ +static OPUS_INLINE void silk_LPC_analysis_filter16_FLP( + silk_float r_LPC[], /* O LPC residual signal */ + const silk_float PredCoef[], /* I LPC coefficients */ + const silk_float s[], /* I Input signal */ + const opus_int length /* I Length of input signal */ +) +{ + opus_int ix; + silk_float LPC_pred; + const silk_float *s_ptr; + + for( ix = 16; ix < length; ix++ ) { + s_ptr = &s[ix - 1]; + + /* short-term prediction */ + LPC_pred = s_ptr[ 0 ] * PredCoef[ 0 ] + + s_ptr[ -1 ] * PredCoef[ 1 ] + + s_ptr[ -2 ] * PredCoef[ 2 ] + + s_ptr[ -3 ] * PredCoef[ 3 ] + + s_ptr[ -4 ] * PredCoef[ 4 ] + + s_ptr[ -5 ] * PredCoef[ 5 ] + + s_ptr[ -6 ] * PredCoef[ 6 ] + + s_ptr[ -7 ] * PredCoef[ 7 ] + + s_ptr[ -8 ] * PredCoef[ 8 ] + + s_ptr[ -9 ] * PredCoef[ 9 ] + + s_ptr[ -10 ] * PredCoef[ 10 ] + + s_ptr[ -11 ] * PredCoef[ 11 ] + + s_ptr[ -12 ] * PredCoef[ 12 ] + + s_ptr[ -13 ] * PredCoef[ 13 ] + + s_ptr[ -14 ] * PredCoef[ 14 ] + + s_ptr[ -15 ] * PredCoef[ 15 ]; + + /* prediction error */ + r_LPC[ix] = s_ptr[ 1 ] - LPC_pred; + } +} + +/* 12th order LPC analysis filter, does not write first 12 samples */ +static OPUS_INLINE void silk_LPC_analysis_filter12_FLP( + silk_float r_LPC[], /* O LPC residual signal */ + const silk_float PredCoef[], /* I LPC coefficients */ + const silk_float s[], /* I Input signal */ + const opus_int length /* I Length of input signal */ +) +{ + opus_int ix; + silk_float LPC_pred; + const silk_float *s_ptr; + + for( ix = 12; ix < length; ix++ ) { + s_ptr = &s[ix - 1]; + + /* short-term prediction */ + LPC_pred = s_ptr[ 0 ] * PredCoef[ 0 ] + + s_ptr[ -1 ] * PredCoef[ 1 ] + + s_ptr[ -2 ] * PredCoef[ 2 ] + + s_ptr[ -3 ] * PredCoef[ 3 ] + + s_ptr[ -4 ] * PredCoef[ 4 ] + + s_ptr[ -5 ] * PredCoef[ 5 ] + + s_ptr[ -6 ] * PredCoef[ 6 ] + + s_ptr[ -7 ] * PredCoef[ 7 ] + + s_ptr[ -8 ] * PredCoef[ 8 ] + + s_ptr[ -9 ] * PredCoef[ 9 ] + + s_ptr[ -10 ] * PredCoef[ 10 ] + + s_ptr[ -11 ] * PredCoef[ 11 ]; + + /* prediction error */ + r_LPC[ix] = s_ptr[ 1 ] - LPC_pred; + } +} + +/* 10th order LPC analysis filter, does not write first 10 samples */ +static OPUS_INLINE void silk_LPC_analysis_filter10_FLP( + silk_float r_LPC[], /* O LPC residual signal */ + const silk_float PredCoef[], /* I LPC coefficients */ + const silk_float s[], /* I Input signal */ + const opus_int length /* I Length of input signal */ +) +{ + opus_int ix; + silk_float LPC_pred; + const silk_float *s_ptr; + + for( ix = 10; ix < length; ix++ ) { + s_ptr = &s[ix - 1]; + + /* short-term prediction */ + LPC_pred = s_ptr[ 0 ] * PredCoef[ 0 ] + + s_ptr[ -1 ] * PredCoef[ 1 ] + + s_ptr[ -2 ] * PredCoef[ 2 ] + + s_ptr[ -3 ] * PredCoef[ 3 ] + + s_ptr[ -4 ] * PredCoef[ 4 ] + + s_ptr[ -5 ] * PredCoef[ 5 ] + + s_ptr[ -6 ] * PredCoef[ 6 ] + + s_ptr[ -7 ] * PredCoef[ 7 ] + + s_ptr[ -8 ] * PredCoef[ 8 ] + + s_ptr[ -9 ] * PredCoef[ 9 ]; + + /* prediction error */ + r_LPC[ix] = s_ptr[ 1 ] - LPC_pred; + } +} + +/* 8th order LPC analysis filter, does not write first 8 samples */ +static OPUS_INLINE void silk_LPC_analysis_filter8_FLP( + silk_float r_LPC[], /* O LPC residual signal */ + const silk_float PredCoef[], /* I LPC coefficients */ + const silk_float s[], /* I Input signal */ + const opus_int length /* I Length of input signal */ +) +{ + opus_int ix; + silk_float LPC_pred; + const silk_float *s_ptr; + + for( ix = 8; ix < length; ix++ ) { + s_ptr = &s[ix - 1]; + + /* short-term prediction */ + LPC_pred = s_ptr[ 0 ] * PredCoef[ 0 ] + + s_ptr[ -1 ] * PredCoef[ 1 ] + + s_ptr[ -2 ] * PredCoef[ 2 ] + + s_ptr[ -3 ] * PredCoef[ 3 ] + + s_ptr[ -4 ] * PredCoef[ 4 ] + + s_ptr[ -5 ] * PredCoef[ 5 ] + + s_ptr[ -6 ] * PredCoef[ 6 ] + + s_ptr[ -7 ] * PredCoef[ 7 ]; + + /* prediction error */ + r_LPC[ix] = s_ptr[ 1 ] - LPC_pred; + } +} + +/* 6th order LPC analysis filter, does not write first 6 samples */ +static OPUS_INLINE void silk_LPC_analysis_filter6_FLP( + silk_float r_LPC[], /* O LPC residual signal */ + const silk_float PredCoef[], /* I LPC coefficients */ + const silk_float s[], /* I Input signal */ + const opus_int length /* I Length of input signal */ +) +{ + opus_int ix; + silk_float LPC_pred; + const silk_float *s_ptr; + + for( ix = 6; ix < length; ix++ ) { + s_ptr = &s[ix - 1]; + + /* short-term prediction */ + LPC_pred = s_ptr[ 0 ] * PredCoef[ 0 ] + + s_ptr[ -1 ] * PredCoef[ 1 ] + + s_ptr[ -2 ] * PredCoef[ 2 ] + + s_ptr[ -3 ] * PredCoef[ 3 ] + + s_ptr[ -4 ] * PredCoef[ 4 ] + + s_ptr[ -5 ] * PredCoef[ 5 ]; + + /* prediction error */ + r_LPC[ix] = s_ptr[ 1 ] - LPC_pred; + } +} + +/************************************************/ +/* LPC analysis filter */ +/* NB! State is kept internally and the */ +/* filter always starts with zero state */ +/* first Order output samples are set to zero */ +/************************************************/ +void silk_LPC_analysis_filter_FLP( + silk_float r_LPC[], /* O LPC residual signal */ + const silk_float PredCoef[], /* I LPC coefficients */ + const silk_float s[], /* I Input signal */ + const opus_int length, /* I Length of input signal */ + const opus_int Order /* I LPC order */ +) +{ + celt_assert( Order <= length ); + + switch( Order ) { + case 6: + silk_LPC_analysis_filter6_FLP( r_LPC, PredCoef, s, length ); + break; + + case 8: + silk_LPC_analysis_filter8_FLP( r_LPC, PredCoef, s, length ); + break; + + case 10: + silk_LPC_analysis_filter10_FLP( r_LPC, PredCoef, s, length ); + break; + + case 12: + silk_LPC_analysis_filter12_FLP( r_LPC, PredCoef, s, length ); + break; + + case 16: + silk_LPC_analysis_filter16_FLP( r_LPC, PredCoef, s, length ); + break; + + default: + celt_assert( 0 ); + break; + } + + /* Set first Order output samples to zero */ + silk_memset( r_LPC, 0, Order * sizeof( silk_float ) ); +} + diff --git a/components/opus/libopus/silk/float/LPC_inv_pred_gain_FLP.c b/components/opus/libopus/silk/float/LPC_inv_pred_gain_FLP.c new file mode 100644 index 0000000..2be2122 --- /dev/null +++ b/components/opus/libopus/silk/float/LPC_inv_pred_gain_FLP.c @@ -0,0 +1,73 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "SigProc_FIX.h" +#include "SigProc_FLP.h" +#include "define.h" + +/* compute inverse of LPC prediction gain, and */ +/* test if LPC coefficients are stable (all poles within unit circle) */ +/* this code is based on silk_a2k_FLP() */ +silk_float silk_LPC_inverse_pred_gain_FLP( /* O return inverse prediction gain, energy domain */ + const silk_float *A, /* I prediction coefficients [order] */ + opus_int32 order /* I prediction order */ +) +{ + opus_int k, n; + double invGain, rc, rc_mult1, rc_mult2, tmp1, tmp2; + silk_float Atmp[ SILK_MAX_ORDER_LPC ]; + + silk_memcpy( Atmp, A, order * sizeof(silk_float) ); + + invGain = 1.0; + for( k = order - 1; k > 0; k-- ) { + rc = -Atmp[ k ]; + rc_mult1 = 1.0f - rc * rc; + invGain *= rc_mult1; + if( invGain * MAX_PREDICTION_POWER_GAIN < 1.0f ) { + return 0.0f; + } + rc_mult2 = 1.0f / rc_mult1; + for( n = 0; n < (k + 1) >> 1; n++ ) { + tmp1 = Atmp[ n ]; + tmp2 = Atmp[ k - n - 1 ]; + Atmp[ n ] = (silk_float)( ( tmp1 - tmp2 * rc ) * rc_mult2 ); + Atmp[ k - n - 1 ] = (silk_float)( ( tmp2 - tmp1 * rc ) * rc_mult2 ); + } + } + rc = -Atmp[ 0 ]; + rc_mult1 = 1.0f - rc * rc; + invGain *= rc_mult1; + if( invGain * MAX_PREDICTION_POWER_GAIN < 1.0f ) { + return 0.0f; + } + return (silk_float)invGain; +} diff --git a/components/opus/libopus/silk/float/LTP_analysis_filter_FLP.c b/components/opus/libopus/silk/float/LTP_analysis_filter_FLP.c new file mode 100644 index 0000000..849b7c1 --- /dev/null +++ b/components/opus/libopus/silk/float/LTP_analysis_filter_FLP.c @@ -0,0 +1,75 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main_FLP.h" + +void silk_LTP_analysis_filter_FLP( + silk_float *LTP_res, /* O LTP res MAX_NB_SUBFR*(pre_lgth+subfr_lngth) */ + const silk_float *x, /* I Input signal, with preceding samples */ + const silk_float B[ LTP_ORDER * MAX_NB_SUBFR ], /* I LTP coefficients for each subframe */ + const opus_int pitchL[ MAX_NB_SUBFR ], /* I Pitch lags */ + const silk_float invGains[ MAX_NB_SUBFR ], /* I Inverse quantization gains */ + const opus_int subfr_length, /* I Length of each subframe */ + const opus_int nb_subfr, /* I number of subframes */ + const opus_int pre_length /* I Preceding samples for each subframe */ +) +{ + const silk_float *x_ptr, *x_lag_ptr; + silk_float Btmp[ LTP_ORDER ]; + silk_float *LTP_res_ptr; + silk_float inv_gain; + opus_int k, i, j; + + x_ptr = x; + LTP_res_ptr = LTP_res; + for( k = 0; k < nb_subfr; k++ ) { + x_lag_ptr = x_ptr - pitchL[ k ]; + inv_gain = invGains[ k ]; + for( i = 0; i < LTP_ORDER; i++ ) { + Btmp[ i ] = B[ k * LTP_ORDER + i ]; + } + + /* LTP analysis FIR filter */ + for( i = 0; i < subfr_length + pre_length; i++ ) { + LTP_res_ptr[ i ] = x_ptr[ i ]; + /* Subtract long-term prediction */ + for( j = 0; j < LTP_ORDER; j++ ) { + LTP_res_ptr[ i ] -= Btmp[ j ] * x_lag_ptr[ LTP_ORDER / 2 - j ]; + } + LTP_res_ptr[ i ] *= inv_gain; + x_lag_ptr++; + } + + /* Update pointers */ + LTP_res_ptr += subfr_length + pre_length; + x_ptr += subfr_length; + } +} diff --git a/components/opus/libopus/silk/float/LTP_scale_ctrl_FLP.c b/components/opus/libopus/silk/float/LTP_scale_ctrl_FLP.c new file mode 100644 index 0000000..8dbe29d --- /dev/null +++ b/components/opus/libopus/silk/float/LTP_scale_ctrl_FLP.c @@ -0,0 +1,52 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main_FLP.h" + +void silk_LTP_scale_ctrl_FLP( + silk_encoder_state_FLP *psEnc, /* I/O Encoder state FLP */ + silk_encoder_control_FLP *psEncCtrl, /* I/O Encoder control FLP */ + opus_int condCoding /* I The type of conditional coding to use */ +) +{ + opus_int round_loss; + + if( condCoding == CODE_INDEPENDENTLY ) { + /* Only scale if first frame in packet */ + round_loss = psEnc->sCmn.PacketLoss_perc + psEnc->sCmn.nFramesPerPacket; + psEnc->sCmn.indices.LTP_scaleIndex = (opus_int8)silk_LIMIT( round_loss * psEncCtrl->LTPredCodGain * 0.1f, 0.0f, 2.0f ); + } else { + /* Default is minimum scaling */ + psEnc->sCmn.indices.LTP_scaleIndex = 0; + } + + psEncCtrl->LTP_scale = (silk_float)silk_LTPScales_table_Q14[ psEnc->sCmn.indices.LTP_scaleIndex ] / 16384.0f; +} diff --git a/components/opus/libopus/silk/float/SigProc_FLP.h b/components/opus/libopus/silk/float/SigProc_FLP.h new file mode 100644 index 0000000..953de8b --- /dev/null +++ b/components/opus/libopus/silk/float/SigProc_FLP.h @@ -0,0 +1,197 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifndef SILK_SIGPROC_FLP_H +#define SILK_SIGPROC_FLP_H + +#include "SigProc_FIX.h" +#include "float_cast.h" +#include + +#ifdef __cplusplus +extern "C" +{ +#endif + +/********************************************************************/ +/* SIGNAL PROCESSING FUNCTIONS */ +/********************************************************************/ + +/* Chirp (bw expand) LP AR filter */ +void silk_bwexpander_FLP( + silk_float *ar, /* I/O AR filter to be expanded (without leading 1) */ + const opus_int d, /* I length of ar */ + const silk_float chirp /* I chirp factor (typically in range (0..1) ) */ +); + +/* compute inverse of LPC prediction gain, and */ +/* test if LPC coefficients are stable (all poles within unit circle) */ +/* this code is based on silk_FLP_a2k() */ +silk_float silk_LPC_inverse_pred_gain_FLP( /* O return inverse prediction gain, energy domain */ + const silk_float *A, /* I prediction coefficients [order] */ + opus_int32 order /* I prediction order */ +); + +silk_float silk_schur_FLP( /* O returns residual energy */ + silk_float refl_coef[], /* O reflection coefficients (length order) */ + const silk_float auto_corr[], /* I autocorrelation sequence (length order+1) */ + opus_int order /* I order */ +); + +void silk_k2a_FLP( + silk_float *A, /* O prediction coefficients [order] */ + const silk_float *rc, /* I reflection coefficients [order] */ + opus_int32 order /* I prediction order */ +); + +/* compute autocorrelation */ +void silk_autocorrelation_FLP( + silk_float *results, /* O result (length correlationCount) */ + const silk_float *inputData, /* I input data to correlate */ + opus_int inputDataSize, /* I length of input */ + opus_int correlationCount /* I number of correlation taps to compute */ +); + +opus_int silk_pitch_analysis_core_FLP( /* O Voicing estimate: 0 voiced, 1 unvoiced */ + const silk_float *frame, /* I Signal of length PE_FRAME_LENGTH_MS*Fs_kHz */ + opus_int *pitch_out, /* O Pitch lag values [nb_subfr] */ + opus_int16 *lagIndex, /* O Lag Index */ + opus_int8 *contourIndex, /* O Pitch contour Index */ + silk_float *LTPCorr, /* I/O Normalized correlation; input: value from previous frame */ + opus_int prevLag, /* I Last lag of previous frame; set to zero is unvoiced */ + const silk_float search_thres1, /* I First stage threshold for lag candidates 0 - 1 */ + const silk_float search_thres2, /* I Final threshold for lag candidates 0 - 1 */ + const opus_int Fs_kHz, /* I sample frequency (kHz) */ + const opus_int complexity, /* I Complexity setting, 0-2, where 2 is highest */ + const opus_int nb_subfr, /* I Number of 5 ms subframes */ + int arch /* I Run-time architecture */ +); + +void silk_insertion_sort_decreasing_FLP( + silk_float *a, /* I/O Unsorted / Sorted vector */ + opus_int *idx, /* O Index vector for the sorted elements */ + const opus_int L, /* I Vector length */ + const opus_int K /* I Number of correctly sorted positions */ +); + +/* Compute reflection coefficients from input signal */ +silk_float silk_burg_modified_FLP( /* O returns residual energy */ + silk_float A[], /* O prediction coefficients (length order) */ + const silk_float x[], /* I input signal, length: nb_subfr*(D+L_sub) */ + const silk_float minInvGain, /* I minimum inverse prediction gain */ + const opus_int subfr_length, /* I input signal subframe length (incl. D preceding samples) */ + const opus_int nb_subfr, /* I number of subframes stacked in x */ + const opus_int D /* I order */ +); + +/* multiply a vector by a constant */ +void silk_scale_vector_FLP( + silk_float *data1, + silk_float gain, + opus_int dataSize +); + +/* copy and multiply a vector by a constant */ +void silk_scale_copy_vector_FLP( + silk_float *data_out, + const silk_float *data_in, + silk_float gain, + opus_int dataSize +); + +/* inner product of two silk_float arrays, with result as double */ +double silk_inner_product_FLP( + const silk_float *data1, + const silk_float *data2, + opus_int dataSize +); + +/* sum of squares of a silk_float array, with result as double */ +double silk_energy_FLP( + const silk_float *data, + opus_int dataSize +); + +/********************************************************************/ +/* MACROS */ +/********************************************************************/ + +#define PI (3.1415926536f) + +#define silk_min_float( a, b ) (((a) < (b)) ? (a) : (b)) +#define silk_max_float( a, b ) (((a) > (b)) ? (a) : (b)) +#define silk_abs_float( a ) ((silk_float)fabs(a)) + +/* sigmoid function */ +static OPUS_INLINE silk_float silk_sigmoid( silk_float x ) +{ + return (silk_float)(1.0 / (1.0 + exp(-x))); +} + +/* floating-point to integer conversion (rounding) */ +static OPUS_INLINE opus_int32 silk_float2int( silk_float x ) +{ + return (opus_int32)float2int( x ); +} + +/* floating-point to integer conversion (rounding) */ +static OPUS_INLINE void silk_float2short_array( + opus_int16 *out, + const silk_float *in, + opus_int32 length +) +{ + opus_int32 k; + for( k = length - 1; k >= 0; k-- ) { + out[k] = silk_SAT16( (opus_int32)float2int( in[k] ) ); + } +} + +/* integer to floating-point conversion */ +static OPUS_INLINE void silk_short2float_array( + silk_float *out, + const opus_int16 *in, + opus_int32 length +) +{ + opus_int32 k; + for( k = length - 1; k >= 0; k-- ) { + out[k] = (silk_float)in[k]; + } +} + +/* using log2() helps the fixed-point conversion */ +static OPUS_INLINE silk_float silk_log2( double x ) +{ + return ( silk_float )( 3.32192809488736 * log10( x ) ); +} + +#ifdef __cplusplus +} +#endif + +#endif /* SILK_SIGPROC_FLP_H */ diff --git a/components/opus/libopus/silk/float/apply_sine_window_FLP.c b/components/opus/libopus/silk/float/apply_sine_window_FLP.c new file mode 100644 index 0000000..e49e717 --- /dev/null +++ b/components/opus/libopus/silk/float/apply_sine_window_FLP.c @@ -0,0 +1,81 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main_FLP.h" + +/* Apply sine window to signal vector */ +/* Window types: */ +/* 1 -> sine window from 0 to pi/2 */ +/* 2 -> sine window from pi/2 to pi */ +void silk_apply_sine_window_FLP( + silk_float px_win[], /* O Pointer to windowed signal */ + const silk_float px[], /* I Pointer to input signal */ + const opus_int win_type, /* I Selects a window type */ + const opus_int length /* I Window length, multiple of 4 */ +) +{ + opus_int k; + silk_float freq, c, S0, S1; + + celt_assert( win_type == 1 || win_type == 2 ); + + /* Length must be multiple of 4 */ + celt_assert( ( length & 3 ) == 0 ); + + freq = PI / ( length + 1 ); + + /* Approximation of 2 * cos(f) */ + c = 2.0f - freq * freq; + + /* Initialize state */ + if( win_type < 2 ) { + /* Start from 0 */ + S0 = 0.0f; + /* Approximation of sin(f) */ + S1 = freq; + } else { + /* Start from 1 */ + S0 = 1.0f; + /* Approximation of cos(f) */ + S1 = 0.5f * c; + } + + /* Uses the recursive equation: sin(n*f) = 2 * cos(f) * sin((n-1)*f) - sin((n-2)*f) */ + /* 4 samples at a time */ + for( k = 0; k < length; k += 4 ) { + px_win[ k + 0 ] = px[ k + 0 ] * 0.5f * ( S0 + S1 ); + px_win[ k + 1 ] = px[ k + 1 ] * S1; + S0 = c * S1 - S0; + px_win[ k + 2 ] = px[ k + 2 ] * 0.5f * ( S1 + S0 ); + px_win[ k + 3 ] = px[ k + 3 ] * S0; + S1 = c * S0 - S1; + } +} diff --git a/components/opus/libopus/silk/float/autocorrelation_FLP.c b/components/opus/libopus/silk/float/autocorrelation_FLP.c new file mode 100644 index 0000000..8b8a9e6 --- /dev/null +++ b/components/opus/libopus/silk/float/autocorrelation_FLP.c @@ -0,0 +1,52 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "typedef.h" +#include "SigProc_FLP.h" + +/* compute autocorrelation */ +void silk_autocorrelation_FLP( + silk_float *results, /* O result (length correlationCount) */ + const silk_float *inputData, /* I input data to correlate */ + opus_int inputDataSize, /* I length of input */ + opus_int correlationCount /* I number of correlation taps to compute */ +) +{ + opus_int i; + + if( correlationCount > inputDataSize ) { + correlationCount = inputDataSize; + } + + for( i = 0; i < correlationCount; i++ ) { + results[ i ] = (silk_float)silk_inner_product_FLP( inputData, inputData + i, inputDataSize - i ); + } +} diff --git a/components/opus/libopus/silk/float/burg_modified_FLP.c b/components/opus/libopus/silk/float/burg_modified_FLP.c new file mode 100644 index 0000000..756b76a --- /dev/null +++ b/components/opus/libopus/silk/float/burg_modified_FLP.c @@ -0,0 +1,186 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "SigProc_FLP.h" +#include "tuning_parameters.h" +#include "define.h" + +#define MAX_FRAME_SIZE 384 /* subfr_length * nb_subfr = ( 0.005 * 16000 + 16 ) * 4 = 384*/ + +/* Compute reflection coefficients from input signal */ +silk_float silk_burg_modified_FLP( /* O returns residual energy */ + silk_float A[], /* O prediction coefficients (length order) */ + const silk_float x[], /* I input signal, length: nb_subfr*(D+L_sub) */ + const silk_float minInvGain, /* I minimum inverse prediction gain */ + const opus_int subfr_length, /* I input signal subframe length (incl. D preceding samples) */ + const opus_int nb_subfr, /* I number of subframes stacked in x */ + const opus_int D /* I order */ +) +{ + opus_int k, n, s, reached_max_gain; + double C0, invGain, num, nrg_f, nrg_b, rc, Atmp, tmp1, tmp2; + const silk_float *x_ptr; + double C_first_row[ SILK_MAX_ORDER_LPC ], C_last_row[ SILK_MAX_ORDER_LPC ]; + double CAf[ SILK_MAX_ORDER_LPC + 1 ], CAb[ SILK_MAX_ORDER_LPC + 1 ]; + double Af[ SILK_MAX_ORDER_LPC ]; + + celt_assert( subfr_length * nb_subfr <= MAX_FRAME_SIZE ); + + /* Compute autocorrelations, added over subframes */ + C0 = silk_energy_FLP( x, nb_subfr * subfr_length ); + silk_memset( C_first_row, 0, SILK_MAX_ORDER_LPC * sizeof( double ) ); + for( s = 0; s < nb_subfr; s++ ) { + x_ptr = x + s * subfr_length; + for( n = 1; n < D + 1; n++ ) { + C_first_row[ n - 1 ] += silk_inner_product_FLP( x_ptr, x_ptr + n, subfr_length - n ); + } + } + silk_memcpy( C_last_row, C_first_row, SILK_MAX_ORDER_LPC * sizeof( double ) ); + + /* Initialize */ + CAb[ 0 ] = CAf[ 0 ] = C0 + FIND_LPC_COND_FAC * C0 + 1e-9f; + invGain = 1.0f; + reached_max_gain = 0; + for( n = 0; n < D; n++ ) { + /* Update first row of correlation matrix (without first element) */ + /* Update last row of correlation matrix (without last element, stored in reversed order) */ + /* Update C * Af */ + /* Update C * flipud(Af) (stored in reversed order) */ + for( s = 0; s < nb_subfr; s++ ) { + x_ptr = x + s * subfr_length; + tmp1 = x_ptr[ n ]; + tmp2 = x_ptr[ subfr_length - n - 1 ]; + for( k = 0; k < n; k++ ) { + C_first_row[ k ] -= x_ptr[ n ] * x_ptr[ n - k - 1 ]; + C_last_row[ k ] -= x_ptr[ subfr_length - n - 1 ] * x_ptr[ subfr_length - n + k ]; + Atmp = Af[ k ]; + tmp1 += x_ptr[ n - k - 1 ] * Atmp; + tmp2 += x_ptr[ subfr_length - n + k ] * Atmp; + } + for( k = 0; k <= n; k++ ) { + CAf[ k ] -= tmp1 * x_ptr[ n - k ]; + CAb[ k ] -= tmp2 * x_ptr[ subfr_length - n + k - 1 ]; + } + } + tmp1 = C_first_row[ n ]; + tmp2 = C_last_row[ n ]; + for( k = 0; k < n; k++ ) { + Atmp = Af[ k ]; + tmp1 += C_last_row[ n - k - 1 ] * Atmp; + tmp2 += C_first_row[ n - k - 1 ] * Atmp; + } + CAf[ n + 1 ] = tmp1; + CAb[ n + 1 ] = tmp2; + + /* Calculate nominator and denominator for the next order reflection (parcor) coefficient */ + num = CAb[ n + 1 ]; + nrg_b = CAb[ 0 ]; + nrg_f = CAf[ 0 ]; + for( k = 0; k < n; k++ ) { + Atmp = Af[ k ]; + num += CAb[ n - k ] * Atmp; + nrg_b += CAb[ k + 1 ] * Atmp; + nrg_f += CAf[ k + 1 ] * Atmp; + } + silk_assert( nrg_f > 0.0 ); + silk_assert( nrg_b > 0.0 ); + + /* Calculate the next order reflection (parcor) coefficient */ + rc = -2.0 * num / ( nrg_f + nrg_b ); + silk_assert( rc > -1.0 && rc < 1.0 ); + + /* Update inverse prediction gain */ + tmp1 = invGain * ( 1.0 - rc * rc ); + if( tmp1 <= minInvGain ) { + /* Max prediction gain exceeded; set reflection coefficient such that max prediction gain is exactly hit */ + rc = sqrt( 1.0 - minInvGain / invGain ); + if( num > 0 ) { + /* Ensure adjusted reflection coefficients has the original sign */ + rc = -rc; + } + invGain = minInvGain; + reached_max_gain = 1; + } else { + invGain = tmp1; + } + + /* Update the AR coefficients */ + for( k = 0; k < (n + 1) >> 1; k++ ) { + tmp1 = Af[ k ]; + tmp2 = Af[ n - k - 1 ]; + Af[ k ] = tmp1 + rc * tmp2; + Af[ n - k - 1 ] = tmp2 + rc * tmp1; + } + Af[ n ] = rc; + + if( reached_max_gain ) { + /* Reached max prediction gain; set remaining coefficients to zero and exit loop */ + for( k = n + 1; k < D; k++ ) { + Af[ k ] = 0.0; + } + break; + } + + /* Update C * Af and C * Ab */ + for( k = 0; k <= n + 1; k++ ) { + tmp1 = CAf[ k ]; + CAf[ k ] += rc * CAb[ n - k + 1 ]; + CAb[ n - k + 1 ] += rc * tmp1; + } + } + + if( reached_max_gain ) { + /* Convert to silk_float */ + for( k = 0; k < D; k++ ) { + A[ k ] = (silk_float)( -Af[ k ] ); + } + /* Subtract energy of preceding samples from C0 */ + for( s = 0; s < nb_subfr; s++ ) { + C0 -= silk_energy_FLP( x + s * subfr_length, D ); + } + /* Approximate residual energy */ + nrg_f = C0 * invGain; + } else { + /* Compute residual energy and store coefficients as silk_float */ + nrg_f = CAf[ 0 ]; + tmp1 = 1.0; + for( k = 0; k < D; k++ ) { + Atmp = Af[ k ]; + nrg_f += CAf[ k + 1 ] * Atmp; + tmp1 += Atmp * Atmp; + A[ k ] = (silk_float)(-Atmp); + } + nrg_f -= FIND_LPC_COND_FAC * C0 * tmp1; + } + + /* Return residual energy */ + return (silk_float)nrg_f; +} diff --git a/components/opus/libopus/silk/float/bwexpander_FLP.c b/components/opus/libopus/silk/float/bwexpander_FLP.c new file mode 100644 index 0000000..d55a4d7 --- /dev/null +++ b/components/opus/libopus/silk/float/bwexpander_FLP.c @@ -0,0 +1,49 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "SigProc_FLP.h" + +/* Chirp (bw expand) LP AR filter */ +void silk_bwexpander_FLP( + silk_float *ar, /* I/O AR filter to be expanded (without leading 1) */ + const opus_int d, /* I length of ar */ + const silk_float chirp /* I chirp factor (typically in range (0..1) ) */ +) +{ + opus_int i; + silk_float cfac = chirp; + + for( i = 0; i < d - 1; i++ ) { + ar[ i ] *= cfac; + cfac *= chirp; + } + ar[ d - 1 ] *= cfac; +} diff --git a/components/opus/libopus/silk/float/corrMatrix_FLP.c b/components/opus/libopus/silk/float/corrMatrix_FLP.c new file mode 100644 index 0000000..eae6a1c --- /dev/null +++ b/components/opus/libopus/silk/float/corrMatrix_FLP.c @@ -0,0 +1,93 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +/********************************************************************** + * Correlation matrix computations for LS estimate. + **********************************************************************/ + +#include "main_FLP.h" + +/* Calculates correlation vector X'*t */ +void silk_corrVector_FLP( + const silk_float *x, /* I x vector [L+order-1] used to create X */ + const silk_float *t, /* I Target vector [L] */ + const opus_int L, /* I Length of vecors */ + const opus_int Order, /* I Max lag for correlation */ + silk_float *Xt /* O X'*t correlation vector [order] */ +) +{ + opus_int lag; + const silk_float *ptr1; + + ptr1 = &x[ Order - 1 ]; /* Points to first sample of column 0 of X: X[:,0] */ + for( lag = 0; lag < Order; lag++ ) { + /* Calculate X[:,lag]'*t */ + Xt[ lag ] = (silk_float)silk_inner_product_FLP( ptr1, t, L ); + ptr1--; /* Next column of X */ + } +} + +/* Calculates correlation matrix X'*X */ +void silk_corrMatrix_FLP( + const silk_float *x, /* I x vector [ L+order-1 ] used to create X */ + const opus_int L, /* I Length of vectors */ + const opus_int Order, /* I Max lag for correlation */ + silk_float *XX /* O X'*X correlation matrix [order x order] */ +) +{ + opus_int j, lag; + double energy; + const silk_float *ptr1, *ptr2; + + ptr1 = &x[ Order - 1 ]; /* First sample of column 0 of X */ + energy = silk_energy_FLP( ptr1, L ); /* X[:,0]'*X[:,0] */ + matrix_ptr( XX, 0, 0, Order ) = ( silk_float )energy; + for( j = 1; j < Order; j++ ) { + /* Calculate X[:,j]'*X[:,j] */ + energy += ptr1[ -j ] * ptr1[ -j ] - ptr1[ L - j ] * ptr1[ L - j ]; + matrix_ptr( XX, j, j, Order ) = ( silk_float )energy; + } + + ptr2 = &x[ Order - 2 ]; /* First sample of column 1 of X */ + for( lag = 1; lag < Order; lag++ ) { + /* Calculate X[:,0]'*X[:,lag] */ + energy = silk_inner_product_FLP( ptr1, ptr2, L ); + matrix_ptr( XX, lag, 0, Order ) = ( silk_float )energy; + matrix_ptr( XX, 0, lag, Order ) = ( silk_float )energy; + /* Calculate X[:,j]'*X[:,j + lag] */ + for( j = 1; j < ( Order - lag ); j++ ) { + energy += ptr1[ -j ] * ptr2[ -j ] - ptr1[ L - j ] * ptr2[ L - j ]; + matrix_ptr( XX, lag + j, j, Order ) = ( silk_float )energy; + matrix_ptr( XX, j, lag + j, Order ) = ( silk_float )energy; + } + ptr2--; /* Next column of X */ + } +} diff --git a/components/opus/libopus/silk/float/encode_frame_FLP.c b/components/opus/libopus/silk/float/encode_frame_FLP.c new file mode 100644 index 0000000..b029c3f --- /dev/null +++ b/components/opus/libopus/silk/float/encode_frame_FLP.c @@ -0,0 +1,435 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include "main_FLP.h" +#include "tuning_parameters.h" + +/* Low Bitrate Redundancy (LBRR) encoding. Reuse all parameters but encode with lower bitrate */ +static OPUS_INLINE void silk_LBRR_encode_FLP( + silk_encoder_state_FLP *psEnc, /* I/O Encoder state FLP */ + silk_encoder_control_FLP *psEncCtrl, /* I/O Encoder control FLP */ + const silk_float xfw[], /* I Input signal */ + opus_int condCoding /* I The type of conditional coding used so far for this frame */ +); + +void silk_encode_do_VAD_FLP( + silk_encoder_state_FLP *psEnc, /* I/O Encoder state FLP */ + opus_int activity /* I Decision of Opus voice activity detector */ +) +{ + const opus_int activity_threshold = SILK_FIX_CONST( SPEECH_ACTIVITY_DTX_THRES, 8 ); + + /****************************/ + /* Voice Activity Detection */ + /****************************/ + silk_VAD_GetSA_Q8( &psEnc->sCmn, psEnc->sCmn.inputBuf + 1, psEnc->sCmn.arch ); + /* If Opus VAD is inactive and Silk VAD is active: lower Silk VAD to just under the threshold */ + if( activity == VAD_NO_ACTIVITY && psEnc->sCmn.speech_activity_Q8 >= activity_threshold ) { + psEnc->sCmn.speech_activity_Q8 = activity_threshold - 1; + } + + /**************************************************/ + /* Convert speech activity into VAD and DTX flags */ + /**************************************************/ + if( psEnc->sCmn.speech_activity_Q8 < activity_threshold ) { + psEnc->sCmn.indices.signalType = TYPE_NO_VOICE_ACTIVITY; + psEnc->sCmn.noSpeechCounter++; + if( psEnc->sCmn.noSpeechCounter <= NB_SPEECH_FRAMES_BEFORE_DTX ) { + psEnc->sCmn.inDTX = 0; + } else if( psEnc->sCmn.noSpeechCounter > MAX_CONSECUTIVE_DTX + NB_SPEECH_FRAMES_BEFORE_DTX ) { + psEnc->sCmn.noSpeechCounter = NB_SPEECH_FRAMES_BEFORE_DTX; + psEnc->sCmn.inDTX = 0; + } + psEnc->sCmn.VAD_flags[ psEnc->sCmn.nFramesEncoded ] = 0; + } else { + psEnc->sCmn.noSpeechCounter = 0; + psEnc->sCmn.inDTX = 0; + psEnc->sCmn.indices.signalType = TYPE_UNVOICED; + psEnc->sCmn.VAD_flags[ psEnc->sCmn.nFramesEncoded ] = 1; + } +} + +/****************/ +/* Encode frame */ +/****************/ +opus_int silk_encode_frame_FLP( + silk_encoder_state_FLP *psEnc, /* I/O Encoder state FLP */ + opus_int32 *pnBytesOut, /* O Number of payload bytes; */ + ec_enc *psRangeEnc, /* I/O compressor data structure */ + opus_int condCoding, /* I The type of conditional coding to use */ + opus_int maxBits, /* I If > 0: maximum number of output bits */ + opus_int useCBR /* I Flag to force constant-bitrate operation */ +) +{ + silk_encoder_control_FLP sEncCtrl; + opus_int i, iter, maxIter, found_upper, found_lower, ret = 0; + silk_float *x_frame, *res_pitch_frame; + silk_float res_pitch[ 2 * MAX_FRAME_LENGTH + LA_PITCH_MAX ]; + ec_enc sRangeEnc_copy, sRangeEnc_copy2; + silk_nsq_state sNSQ_copy, sNSQ_copy2; + opus_int32 seed_copy, nBits, nBits_lower, nBits_upper, gainMult_lower, gainMult_upper; + opus_int32 gainsID, gainsID_lower, gainsID_upper; + opus_int16 gainMult_Q8; + opus_int16 ec_prevLagIndex_copy; + opus_int ec_prevSignalType_copy; + opus_int8 LastGainIndex_copy2; + opus_int32 pGains_Q16[ MAX_NB_SUBFR ]; + opus_uint8 ec_buf_copy[ 1275 ]; + opus_int gain_lock[ MAX_NB_SUBFR ] = {0}; + opus_int16 best_gain_mult[ MAX_NB_SUBFR ]; + opus_int best_sum[ MAX_NB_SUBFR ]; + + /* This is totally unnecessary but many compilers (including gcc) are too dumb to realise it */ + LastGainIndex_copy2 = nBits_lower = nBits_upper = gainMult_lower = gainMult_upper = 0; + + psEnc->sCmn.indices.Seed = psEnc->sCmn.frameCounter++ & 3; + + /**************************************************************/ + /* Set up Input Pointers, and insert frame in input buffer */ + /**************************************************************/ + /* pointers aligned with start of frame to encode */ + x_frame = psEnc->x_buf + psEnc->sCmn.ltp_mem_length; /* start of frame to encode */ + res_pitch_frame = res_pitch + psEnc->sCmn.ltp_mem_length; /* start of pitch LPC residual frame */ + + /***************************************/ + /* Ensure smooth bandwidth transitions */ + /***************************************/ + silk_LP_variable_cutoff( &psEnc->sCmn.sLP, psEnc->sCmn.inputBuf + 1, psEnc->sCmn.frame_length ); + + /*******************************************/ + /* Copy new frame to front of input buffer */ + /*******************************************/ + silk_short2float_array( x_frame + LA_SHAPE_MS * psEnc->sCmn.fs_kHz, psEnc->sCmn.inputBuf + 1, psEnc->sCmn.frame_length ); + + /* Add tiny signal to avoid high CPU load from denormalized floating point numbers */ + for( i = 0; i < 8; i++ ) { + x_frame[ LA_SHAPE_MS * psEnc->sCmn.fs_kHz + i * ( psEnc->sCmn.frame_length >> 3 ) ] += ( 1 - ( i & 2 ) ) * 1e-6f; + } + + if( !psEnc->sCmn.prefillFlag ) { + /*****************************************/ + /* Find pitch lags, initial LPC analysis */ + /*****************************************/ + silk_find_pitch_lags_FLP( psEnc, &sEncCtrl, res_pitch, x_frame, psEnc->sCmn.arch ); + + /************************/ + /* Noise shape analysis */ + /************************/ + silk_noise_shape_analysis_FLP( psEnc, &sEncCtrl, res_pitch_frame, x_frame ); + + /***************************************************/ + /* Find linear prediction coefficients (LPC + LTP) */ + /***************************************************/ + silk_find_pred_coefs_FLP( psEnc, &sEncCtrl, res_pitch_frame, x_frame, condCoding ); + + /****************************************/ + /* Process gains */ + /****************************************/ + silk_process_gains_FLP( psEnc, &sEncCtrl, condCoding ); + + /****************************************/ + /* Low Bitrate Redundant Encoding */ + /****************************************/ + silk_LBRR_encode_FLP( psEnc, &sEncCtrl, x_frame, condCoding ); + + /* Loop over quantizer and entroy coding to control bitrate */ + maxIter = 6; + gainMult_Q8 = SILK_FIX_CONST( 1, 8 ); + found_lower = 0; + found_upper = 0; + gainsID = silk_gains_ID( psEnc->sCmn.indices.GainsIndices, psEnc->sCmn.nb_subfr ); + gainsID_lower = -1; + gainsID_upper = -1; + /* Copy part of the input state */ + silk_memcpy( &sRangeEnc_copy, psRangeEnc, sizeof( ec_enc ) ); + silk_memcpy( &sNSQ_copy, &psEnc->sCmn.sNSQ, sizeof( silk_nsq_state ) ); + seed_copy = psEnc->sCmn.indices.Seed; + ec_prevLagIndex_copy = psEnc->sCmn.ec_prevLagIndex; + ec_prevSignalType_copy = psEnc->sCmn.ec_prevSignalType; + for( iter = 0; ; iter++ ) { + if( gainsID == gainsID_lower ) { + nBits = nBits_lower; + } else if( gainsID == gainsID_upper ) { + nBits = nBits_upper; + } else { + /* Restore part of the input state */ + if( iter > 0 ) { + silk_memcpy( psRangeEnc, &sRangeEnc_copy, sizeof( ec_enc ) ); + silk_memcpy( &psEnc->sCmn.sNSQ, &sNSQ_copy, sizeof( silk_nsq_state ) ); + psEnc->sCmn.indices.Seed = seed_copy; + psEnc->sCmn.ec_prevLagIndex = ec_prevLagIndex_copy; + psEnc->sCmn.ec_prevSignalType = ec_prevSignalType_copy; + } + + /*****************************************/ + /* Noise shaping quantization */ + /*****************************************/ + silk_NSQ_wrapper_FLP( psEnc, &sEncCtrl, &psEnc->sCmn.indices, &psEnc->sCmn.sNSQ, psEnc->sCmn.pulses, x_frame ); + + if ( iter == maxIter && !found_lower ) { + silk_memcpy( &sRangeEnc_copy2, psRangeEnc, sizeof( ec_enc ) ); + } + + /****************************************/ + /* Encode Parameters */ + /****************************************/ + silk_encode_indices( &psEnc->sCmn, psRangeEnc, psEnc->sCmn.nFramesEncoded, 0, condCoding ); + + /****************************************/ + /* Encode Excitation Signal */ + /****************************************/ + silk_encode_pulses( psRangeEnc, psEnc->sCmn.indices.signalType, psEnc->sCmn.indices.quantOffsetType, + psEnc->sCmn.pulses, psEnc->sCmn.frame_length ); + + nBits = ec_tell( psRangeEnc ); + + /* If we still bust after the last iteration, do some damage control. */ + if ( iter == maxIter && !found_lower && nBits > maxBits ) { + silk_memcpy( psRangeEnc, &sRangeEnc_copy2, sizeof( ec_enc ) ); + + /* Keep gains the same as the last frame. */ + psEnc->sShape.LastGainIndex = sEncCtrl.lastGainIndexPrev; + for ( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { + psEnc->sCmn.indices.GainsIndices[ i ] = 4; + } + if (condCoding != CODE_CONDITIONALLY) { + psEnc->sCmn.indices.GainsIndices[ 0 ] = sEncCtrl.lastGainIndexPrev; + } + psEnc->sCmn.ec_prevLagIndex = ec_prevLagIndex_copy; + psEnc->sCmn.ec_prevSignalType = ec_prevSignalType_copy; + /* Clear all pulses. */ + for ( i = 0; i < psEnc->sCmn.frame_length; i++ ) { + psEnc->sCmn.pulses[ i ] = 0; + } + + silk_encode_indices( &psEnc->sCmn, psRangeEnc, psEnc->sCmn.nFramesEncoded, 0, condCoding ); + + silk_encode_pulses( psRangeEnc, psEnc->sCmn.indices.signalType, psEnc->sCmn.indices.quantOffsetType, + psEnc->sCmn.pulses, psEnc->sCmn.frame_length ); + + nBits = ec_tell( psRangeEnc ); + } + + if( useCBR == 0 && iter == 0 && nBits <= maxBits ) { + break; + } + } + + if( iter == maxIter ) { + if( found_lower && ( gainsID == gainsID_lower || nBits > maxBits ) ) { + /* Restore output state from earlier iteration that did meet the bitrate budget */ + silk_memcpy( psRangeEnc, &sRangeEnc_copy2, sizeof( ec_enc ) ); + celt_assert( sRangeEnc_copy2.offs <= 1275 ); + silk_memcpy( psRangeEnc->buf, ec_buf_copy, sRangeEnc_copy2.offs ); + silk_memcpy( &psEnc->sCmn.sNSQ, &sNSQ_copy2, sizeof( silk_nsq_state ) ); + psEnc->sShape.LastGainIndex = LastGainIndex_copy2; + } + break; + } + + if( nBits > maxBits ) { + if( found_lower == 0 && iter >= 2 ) { + /* Adjust the quantizer's rate/distortion tradeoff and discard previous "upper" results */ + sEncCtrl.Lambda = silk_max_float(sEncCtrl.Lambda*1.5f, 1.5f); + /* Reducing dithering can help us hit the target. */ + psEnc->sCmn.indices.quantOffsetType = 0; + found_upper = 0; + gainsID_upper = -1; + } else { + found_upper = 1; + nBits_upper = nBits; + gainMult_upper = gainMult_Q8; + gainsID_upper = gainsID; + } + } else if( nBits < maxBits - 5 ) { + found_lower = 1; + nBits_lower = nBits; + gainMult_lower = gainMult_Q8; + if( gainsID != gainsID_lower ) { + gainsID_lower = gainsID; + /* Copy part of the output state */ + silk_memcpy( &sRangeEnc_copy2, psRangeEnc, sizeof( ec_enc ) ); + celt_assert( psRangeEnc->offs <= 1275 ); + silk_memcpy( ec_buf_copy, psRangeEnc->buf, psRangeEnc->offs ); + silk_memcpy( &sNSQ_copy2, &psEnc->sCmn.sNSQ, sizeof( silk_nsq_state ) ); + LastGainIndex_copy2 = psEnc->sShape.LastGainIndex; + } + } else { + /* Within 5 bits of budget: close enough */ + break; + } + + if ( !found_lower && nBits > maxBits ) { + int j; + for ( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { + int sum=0; + for ( j = i*psEnc->sCmn.subfr_length; j < (i+1)*psEnc->sCmn.subfr_length; j++ ) { + sum += abs( psEnc->sCmn.pulses[j] ); + } + if ( iter == 0 || (sum < best_sum[i] && !gain_lock[i]) ) { + best_sum[i] = sum; + best_gain_mult[i] = gainMult_Q8; + } else { + gain_lock[i] = 1; + } + } + } + if( ( found_lower & found_upper ) == 0 ) { + /* Adjust gain according to high-rate rate/distortion curve */ + if( nBits > maxBits ) { + if (gainMult_Q8 < 16384) { + gainMult_Q8 *= 2; + } else { + gainMult_Q8 = 32767; + } + } else { + opus_int32 gain_factor_Q16; + gain_factor_Q16 = silk_log2lin( silk_LSHIFT( nBits - maxBits, 7 ) / psEnc->sCmn.frame_length + SILK_FIX_CONST( 16, 7 ) ); + gainMult_Q8 = silk_SMULWB( gain_factor_Q16, gainMult_Q8 ); + } + } else { + /* Adjust gain by interpolating */ + gainMult_Q8 = gainMult_lower + ( ( gainMult_upper - gainMult_lower ) * ( maxBits - nBits_lower ) ) / ( nBits_upper - nBits_lower ); + /* New gain multplier must be between 25% and 75% of old range (note that gainMult_upper < gainMult_lower) */ + if( gainMult_Q8 > silk_ADD_RSHIFT32( gainMult_lower, gainMult_upper - gainMult_lower, 2 ) ) { + gainMult_Q8 = silk_ADD_RSHIFT32( gainMult_lower, gainMult_upper - gainMult_lower, 2 ); + } else + if( gainMult_Q8 < silk_SUB_RSHIFT32( gainMult_upper, gainMult_upper - gainMult_lower, 2 ) ) { + gainMult_Q8 = silk_SUB_RSHIFT32( gainMult_upper, gainMult_upper - gainMult_lower, 2 ); + } + } + + for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { + opus_int16 tmp; + if ( gain_lock[i] ) { + tmp = best_gain_mult[i]; + } else { + tmp = gainMult_Q8; + } + pGains_Q16[ i ] = silk_LSHIFT_SAT32( silk_SMULWB( sEncCtrl.GainsUnq_Q16[ i ], tmp ), 8 ); + } + + /* Quantize gains */ + psEnc->sShape.LastGainIndex = sEncCtrl.lastGainIndexPrev; + silk_gains_quant( psEnc->sCmn.indices.GainsIndices, pGains_Q16, + &psEnc->sShape.LastGainIndex, condCoding == CODE_CONDITIONALLY, psEnc->sCmn.nb_subfr ); + + /* Unique identifier of gains vector */ + gainsID = silk_gains_ID( psEnc->sCmn.indices.GainsIndices, psEnc->sCmn.nb_subfr ); + + /* Overwrite unquantized gains with quantized gains and convert back to Q0 from Q16 */ + for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { + sEncCtrl.Gains[ i ] = pGains_Q16[ i ] / 65536.0f; + } + } + } + + /* Update input buffer */ + silk_memmove( psEnc->x_buf, &psEnc->x_buf[ psEnc->sCmn.frame_length ], + ( psEnc->sCmn.ltp_mem_length + LA_SHAPE_MS * psEnc->sCmn.fs_kHz ) * sizeof( silk_float ) ); + + /* Exit without entropy coding */ + if( psEnc->sCmn.prefillFlag ) { + /* No payload */ + *pnBytesOut = 0; + return ret; + } + + /* Parameters needed for next frame */ + psEnc->sCmn.prevLag = sEncCtrl.pitchL[ psEnc->sCmn.nb_subfr - 1 ]; + psEnc->sCmn.prevSignalType = psEnc->sCmn.indices.signalType; + + /****************************************/ + /* Finalize payload */ + /****************************************/ + psEnc->sCmn.first_frame_after_reset = 0; + /* Payload size */ + *pnBytesOut = silk_RSHIFT( ec_tell( psRangeEnc ) + 7, 3 ); + + return ret; +} + +/* Low-Bitrate Redundancy (LBRR) encoding. Reuse all parameters but encode excitation at lower bitrate */ +static OPUS_INLINE void silk_LBRR_encode_FLP( + silk_encoder_state_FLP *psEnc, /* I/O Encoder state FLP */ + silk_encoder_control_FLP *psEncCtrl, /* I/O Encoder control FLP */ + const silk_float xfw[], /* I Input signal */ + opus_int condCoding /* I The type of conditional coding used so far for this frame */ +) +{ + opus_int k; + opus_int32 Gains_Q16[ MAX_NB_SUBFR ]; + silk_float TempGains[ MAX_NB_SUBFR ]; + SideInfoIndices *psIndices_LBRR = &psEnc->sCmn.indices_LBRR[ psEnc->sCmn.nFramesEncoded ]; + silk_nsq_state sNSQ_LBRR; + + /*******************************************/ + /* Control use of inband LBRR */ + /*******************************************/ + if( psEnc->sCmn.LBRR_enabled && psEnc->sCmn.speech_activity_Q8 > SILK_FIX_CONST( LBRR_SPEECH_ACTIVITY_THRES, 8 ) ) { + psEnc->sCmn.LBRR_flags[ psEnc->sCmn.nFramesEncoded ] = 1; + + /* Copy noise shaping quantizer state and quantization indices from regular encoding */ + silk_memcpy( &sNSQ_LBRR, &psEnc->sCmn.sNSQ, sizeof( silk_nsq_state ) ); + silk_memcpy( psIndices_LBRR, &psEnc->sCmn.indices, sizeof( SideInfoIndices ) ); + + /* Save original gains */ + silk_memcpy( TempGains, psEncCtrl->Gains, psEnc->sCmn.nb_subfr * sizeof( silk_float ) ); + + if( psEnc->sCmn.nFramesEncoded == 0 || psEnc->sCmn.LBRR_flags[ psEnc->sCmn.nFramesEncoded - 1 ] == 0 ) { + /* First frame in packet or previous frame not LBRR coded */ + psEnc->sCmn.LBRRprevLastGainIndex = psEnc->sShape.LastGainIndex; + + /* Increase Gains to get target LBRR rate */ + psIndices_LBRR->GainsIndices[ 0 ] += psEnc->sCmn.LBRR_GainIncreases; + psIndices_LBRR->GainsIndices[ 0 ] = silk_min_int( psIndices_LBRR->GainsIndices[ 0 ], N_LEVELS_QGAIN - 1 ); + } + + /* Decode to get gains in sync with decoder */ + silk_gains_dequant( Gains_Q16, psIndices_LBRR->GainsIndices, + &psEnc->sCmn.LBRRprevLastGainIndex, condCoding == CODE_CONDITIONALLY, psEnc->sCmn.nb_subfr ); + + /* Overwrite unquantized gains with quantized gains and convert back to Q0 from Q16 */ + for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { + psEncCtrl->Gains[ k ] = Gains_Q16[ k ] * ( 1.0f / 65536.0f ); + } + + /*****************************************/ + /* Noise shaping quantization */ + /*****************************************/ + silk_NSQ_wrapper_FLP( psEnc, psEncCtrl, psIndices_LBRR, &sNSQ_LBRR, + psEnc->sCmn.pulses_LBRR[ psEnc->sCmn.nFramesEncoded ], xfw ); + + /* Restore original gains */ + silk_memcpy( psEncCtrl->Gains, TempGains, psEnc->sCmn.nb_subfr * sizeof( silk_float ) ); + } +} diff --git a/components/opus/libopus/silk/float/energy_FLP.c b/components/opus/libopus/silk/float/energy_FLP.c new file mode 100644 index 0000000..7bc7173 --- /dev/null +++ b/components/opus/libopus/silk/float/energy_FLP.c @@ -0,0 +1,59 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "SigProc_FLP.h" + +/* sum of squares of a silk_float array, with result as double */ +double silk_energy_FLP( + const silk_float *data, + opus_int dataSize +) +{ + opus_int i; + double result; + + /* 4x unrolled loop */ + result = 0.0; + for( i = 0; i < dataSize - 3; i += 4 ) { + result += data[ i + 0 ] * (double)data[ i + 0 ] + + data[ i + 1 ] * (double)data[ i + 1 ] + + data[ i + 2 ] * (double)data[ i + 2 ] + + data[ i + 3 ] * (double)data[ i + 3 ]; + } + + /* add any remaining products */ + for( ; i < dataSize; i++ ) { + result += data[ i ] * (double)data[ i ]; + } + + silk_assert( result >= 0.0 ); + return result; +} diff --git a/components/opus/libopus/silk/float/find_LPC_FLP.c b/components/opus/libopus/silk/float/find_LPC_FLP.c new file mode 100644 index 0000000..fa3ffe7 --- /dev/null +++ b/components/opus/libopus/silk/float/find_LPC_FLP.c @@ -0,0 +1,104 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "define.h" +#include "main_FLP.h" +#include "tuning_parameters.h" + +/* LPC analysis */ +void silk_find_LPC_FLP( + silk_encoder_state *psEncC, /* I/O Encoder state */ + opus_int16 NLSF_Q15[], /* O NLSFs */ + const silk_float x[], /* I Input signal */ + const silk_float minInvGain /* I Inverse of max prediction gain */ +) +{ + opus_int k, subfr_length; + silk_float a[ MAX_LPC_ORDER ]; + + /* Used only for NLSF interpolation */ + silk_float res_nrg, res_nrg_2nd, res_nrg_interp; + opus_int16 NLSF0_Q15[ MAX_LPC_ORDER ]; + silk_float a_tmp[ MAX_LPC_ORDER ]; + silk_float LPC_res[ MAX_FRAME_LENGTH + MAX_NB_SUBFR * MAX_LPC_ORDER ]; + + subfr_length = psEncC->subfr_length + psEncC->predictLPCOrder; + + /* Default: No interpolation */ + psEncC->indices.NLSFInterpCoef_Q2 = 4; + + /* Burg AR analysis for the full frame */ + res_nrg = silk_burg_modified_FLP( a, x, minInvGain, subfr_length, psEncC->nb_subfr, psEncC->predictLPCOrder ); + + if( psEncC->useInterpolatedNLSFs && !psEncC->first_frame_after_reset && psEncC->nb_subfr == MAX_NB_SUBFR ) { + /* Optimal solution for last 10 ms; subtract residual energy here, as that's easier than */ + /* adding it to the residual energy of the first 10 ms in each iteration of the search below */ + res_nrg -= silk_burg_modified_FLP( a_tmp, x + ( MAX_NB_SUBFR / 2 ) * subfr_length, minInvGain, subfr_length, MAX_NB_SUBFR / 2, psEncC->predictLPCOrder ); + + /* Convert to NLSFs */ + silk_A2NLSF_FLP( NLSF_Q15, a_tmp, psEncC->predictLPCOrder ); + + /* Search over interpolation indices to find the one with lowest residual energy */ + res_nrg_2nd = silk_float_MAX; + for( k = 3; k >= 0; k-- ) { + /* Interpolate NLSFs for first half */ + silk_interpolate( NLSF0_Q15, psEncC->prev_NLSFq_Q15, NLSF_Q15, k, psEncC->predictLPCOrder ); + + /* Convert to LPC for residual energy evaluation */ + silk_NLSF2A_FLP( a_tmp, NLSF0_Q15, psEncC->predictLPCOrder, psEncC->arch ); + + /* Calculate residual energy with LSF interpolation */ + silk_LPC_analysis_filter_FLP( LPC_res, a_tmp, x, 2 * subfr_length, psEncC->predictLPCOrder ); + res_nrg_interp = (silk_float)( + silk_energy_FLP( LPC_res + psEncC->predictLPCOrder, subfr_length - psEncC->predictLPCOrder ) + + silk_energy_FLP( LPC_res + psEncC->predictLPCOrder + subfr_length, subfr_length - psEncC->predictLPCOrder ) ); + + /* Determine whether current interpolated NLSFs are best so far */ + if( res_nrg_interp < res_nrg ) { + /* Interpolation has lower residual energy */ + res_nrg = res_nrg_interp; + psEncC->indices.NLSFInterpCoef_Q2 = (opus_int8)k; + } else if( res_nrg_interp > res_nrg_2nd ) { + /* No reason to continue iterating - residual energies will continue to climb */ + break; + } + res_nrg_2nd = res_nrg_interp; + } + } + + if( psEncC->indices.NLSFInterpCoef_Q2 == 4 ) { + /* NLSF interpolation is currently inactive, calculate NLSFs from full frame AR coefficients */ + silk_A2NLSF_FLP( NLSF_Q15, a, psEncC->predictLPCOrder ); + } + + celt_assert( psEncC->indices.NLSFInterpCoef_Q2 == 4 || + ( psEncC->useInterpolatedNLSFs && !psEncC->first_frame_after_reset && psEncC->nb_subfr == MAX_NB_SUBFR ) ); +} diff --git a/components/opus/libopus/silk/float/find_LTP_FLP.c b/components/opus/libopus/silk/float/find_LTP_FLP.c new file mode 100644 index 0000000..f970649 --- /dev/null +++ b/components/opus/libopus/silk/float/find_LTP_FLP.c @@ -0,0 +1,64 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main_FLP.h" +#include "tuning_parameters.h" + +void silk_find_LTP_FLP( + silk_float XX[ MAX_NB_SUBFR * LTP_ORDER * LTP_ORDER ], /* O Weight for LTP quantization */ + silk_float xX[ MAX_NB_SUBFR * LTP_ORDER ], /* O Weight for LTP quantization */ + const silk_float r_ptr[], /* I LPC residual */ + const opus_int lag[ MAX_NB_SUBFR ], /* I LTP lags */ + const opus_int subfr_length, /* I Subframe length */ + const opus_int nb_subfr /* I number of subframes */ +) +{ + opus_int k; + silk_float *xX_ptr, *XX_ptr; + const silk_float *lag_ptr; + silk_float xx, temp; + + xX_ptr = xX; + XX_ptr = XX; + for( k = 0; k < nb_subfr; k++ ) { + lag_ptr = r_ptr - ( lag[ k ] + LTP_ORDER / 2 ); + silk_corrMatrix_FLP( lag_ptr, subfr_length, LTP_ORDER, XX_ptr ); + silk_corrVector_FLP( lag_ptr, r_ptr, subfr_length, LTP_ORDER, xX_ptr ); + xx = ( silk_float )silk_energy_FLP( r_ptr, subfr_length + LTP_ORDER ); + temp = 1.0f / silk_max( xx, LTP_CORR_INV_MAX * 0.5f * ( XX_ptr[ 0 ] + XX_ptr[ 24 ] ) + 1.0f ); + silk_scale_vector_FLP( XX_ptr, temp, LTP_ORDER * LTP_ORDER ); + silk_scale_vector_FLP( xX_ptr, temp, LTP_ORDER ); + + r_ptr += subfr_length; + XX_ptr += LTP_ORDER * LTP_ORDER; + xX_ptr += LTP_ORDER; + } +} diff --git a/components/opus/libopus/silk/float/find_pitch_lags_FLP.c b/components/opus/libopus/silk/float/find_pitch_lags_FLP.c new file mode 100644 index 0000000..dedbcd2 --- /dev/null +++ b/components/opus/libopus/silk/float/find_pitch_lags_FLP.c @@ -0,0 +1,132 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include "main_FLP.h" +#include "tuning_parameters.h" + +void silk_find_pitch_lags_FLP( + silk_encoder_state_FLP *psEnc, /* I/O Encoder state FLP */ + silk_encoder_control_FLP *psEncCtrl, /* I/O Encoder control FLP */ + silk_float res[], /* O Residual */ + const silk_float x[], /* I Speech signal */ + int arch /* I Run-time architecture */ +) +{ + opus_int buf_len; + silk_float thrhld, res_nrg; + const silk_float *x_buf_ptr, *x_buf; + silk_float auto_corr[ MAX_FIND_PITCH_LPC_ORDER + 1 ]; + silk_float A[ MAX_FIND_PITCH_LPC_ORDER ]; + silk_float refl_coef[ MAX_FIND_PITCH_LPC_ORDER ]; + silk_float Wsig[ FIND_PITCH_LPC_WIN_MAX ]; + silk_float *Wsig_ptr; + + /******************************************/ + /* Set up buffer lengths etc based on Fs */ + /******************************************/ + buf_len = psEnc->sCmn.la_pitch + psEnc->sCmn.frame_length + psEnc->sCmn.ltp_mem_length; + + /* Safety check */ + celt_assert( buf_len >= psEnc->sCmn.pitch_LPC_win_length ); + + x_buf = x - psEnc->sCmn.ltp_mem_length; + + /******************************************/ + /* Estimate LPC AR coeficients */ + /******************************************/ + + /* Calculate windowed signal */ + + /* First LA_LTP samples */ + x_buf_ptr = x_buf + buf_len - psEnc->sCmn.pitch_LPC_win_length; + Wsig_ptr = Wsig; + silk_apply_sine_window_FLP( Wsig_ptr, x_buf_ptr, 1, psEnc->sCmn.la_pitch ); + + /* Middle non-windowed samples */ + Wsig_ptr += psEnc->sCmn.la_pitch; + x_buf_ptr += psEnc->sCmn.la_pitch; + silk_memcpy( Wsig_ptr, x_buf_ptr, ( psEnc->sCmn.pitch_LPC_win_length - ( psEnc->sCmn.la_pitch << 1 ) ) * sizeof( silk_float ) ); + + /* Last LA_LTP samples */ + Wsig_ptr += psEnc->sCmn.pitch_LPC_win_length - ( psEnc->sCmn.la_pitch << 1 ); + x_buf_ptr += psEnc->sCmn.pitch_LPC_win_length - ( psEnc->sCmn.la_pitch << 1 ); + silk_apply_sine_window_FLP( Wsig_ptr, x_buf_ptr, 2, psEnc->sCmn.la_pitch ); + + /* Calculate autocorrelation sequence */ + silk_autocorrelation_FLP( auto_corr, Wsig, psEnc->sCmn.pitch_LPC_win_length, psEnc->sCmn.pitchEstimationLPCOrder + 1 ); + + /* Add white noise, as a fraction of the energy */ + auto_corr[ 0 ] += auto_corr[ 0 ] * FIND_PITCH_WHITE_NOISE_FRACTION + 1; + + /* Calculate the reflection coefficients using Schur */ + res_nrg = silk_schur_FLP( refl_coef, auto_corr, psEnc->sCmn.pitchEstimationLPCOrder ); + + /* Prediction gain */ + psEncCtrl->predGain = auto_corr[ 0 ] / silk_max_float( res_nrg, 1.0f ); + + /* Convert reflection coefficients to prediction coefficients */ + silk_k2a_FLP( A, refl_coef, psEnc->sCmn.pitchEstimationLPCOrder ); + + /* Bandwidth expansion */ + silk_bwexpander_FLP( A, psEnc->sCmn.pitchEstimationLPCOrder, FIND_PITCH_BANDWIDTH_EXPANSION ); + + /*****************************************/ + /* LPC analysis filtering */ + /*****************************************/ + silk_LPC_analysis_filter_FLP( res, A, x_buf, buf_len, psEnc->sCmn.pitchEstimationLPCOrder ); + + if( psEnc->sCmn.indices.signalType != TYPE_NO_VOICE_ACTIVITY && psEnc->sCmn.first_frame_after_reset == 0 ) { + /* Threshold for pitch estimator */ + thrhld = 0.6f; + thrhld -= 0.004f * psEnc->sCmn.pitchEstimationLPCOrder; + thrhld -= 0.1f * psEnc->sCmn.speech_activity_Q8 * ( 1.0f / 256.0f ); + thrhld -= 0.15f * (psEnc->sCmn.prevSignalType >> 1); + thrhld -= 0.1f * psEnc->sCmn.input_tilt_Q15 * ( 1.0f / 32768.0f ); + + /*****************************************/ + /* Call Pitch estimator */ + /*****************************************/ + if( silk_pitch_analysis_core_FLP( res, psEncCtrl->pitchL, &psEnc->sCmn.indices.lagIndex, + &psEnc->sCmn.indices.contourIndex, &psEnc->LTPCorr, psEnc->sCmn.prevLag, psEnc->sCmn.pitchEstimationThreshold_Q16 / 65536.0f, + thrhld, psEnc->sCmn.fs_kHz, psEnc->sCmn.pitchEstimationComplexity, psEnc->sCmn.nb_subfr, arch ) == 0 ) + { + psEnc->sCmn.indices.signalType = TYPE_VOICED; + } else { + psEnc->sCmn.indices.signalType = TYPE_UNVOICED; + } + } else { + silk_memset( psEncCtrl->pitchL, 0, sizeof( psEncCtrl->pitchL ) ); + psEnc->sCmn.indices.lagIndex = 0; + psEnc->sCmn.indices.contourIndex = 0; + psEnc->LTPCorr = 0; + } +} diff --git a/components/opus/libopus/silk/float/find_pred_coefs_FLP.c b/components/opus/libopus/silk/float/find_pred_coefs_FLP.c new file mode 100644 index 0000000..dcf7c52 --- /dev/null +++ b/components/opus/libopus/silk/float/find_pred_coefs_FLP.c @@ -0,0 +1,116 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main_FLP.h" + +/* Find LPC and LTP coefficients */ +void silk_find_pred_coefs_FLP( + silk_encoder_state_FLP *psEnc, /* I/O Encoder state FLP */ + silk_encoder_control_FLP *psEncCtrl, /* I/O Encoder control FLP */ + const silk_float res_pitch[], /* I Residual from pitch analysis */ + const silk_float x[], /* I Speech signal */ + opus_int condCoding /* I The type of conditional coding to use */ +) +{ + opus_int i; + silk_float XXLTP[ MAX_NB_SUBFR * LTP_ORDER * LTP_ORDER ]; + silk_float xXLTP[ MAX_NB_SUBFR * LTP_ORDER ]; + silk_float invGains[ MAX_NB_SUBFR ]; + opus_int16 NLSF_Q15[ MAX_LPC_ORDER ]; + const silk_float *x_ptr; + silk_float *x_pre_ptr, LPC_in_pre[ MAX_NB_SUBFR * MAX_LPC_ORDER + MAX_FRAME_LENGTH ]; + silk_float minInvGain; + + /* Weighting for weighted least squares */ + for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { + silk_assert( psEncCtrl->Gains[ i ] > 0.0f ); + invGains[ i ] = 1.0f / psEncCtrl->Gains[ i ]; + } + + if( psEnc->sCmn.indices.signalType == TYPE_VOICED ) { + /**********/ + /* VOICED */ + /**********/ + celt_assert( psEnc->sCmn.ltp_mem_length - psEnc->sCmn.predictLPCOrder >= psEncCtrl->pitchL[ 0 ] + LTP_ORDER / 2 ); + + /* LTP analysis */ + silk_find_LTP_FLP( XXLTP, xXLTP, res_pitch, psEncCtrl->pitchL, psEnc->sCmn.subfr_length, psEnc->sCmn.nb_subfr ); + + /* Quantize LTP gain parameters */ + silk_quant_LTP_gains_FLP( psEncCtrl->LTPCoef, psEnc->sCmn.indices.LTPIndex, &psEnc->sCmn.indices.PERIndex, + &psEnc->sCmn.sum_log_gain_Q7, &psEncCtrl->LTPredCodGain, XXLTP, xXLTP, psEnc->sCmn.subfr_length, psEnc->sCmn.nb_subfr, psEnc->sCmn.arch ); + + /* Control LTP scaling */ + silk_LTP_scale_ctrl_FLP( psEnc, psEncCtrl, condCoding ); + + /* Create LTP residual */ + silk_LTP_analysis_filter_FLP( LPC_in_pre, x - psEnc->sCmn.predictLPCOrder, psEncCtrl->LTPCoef, + psEncCtrl->pitchL, invGains, psEnc->sCmn.subfr_length, psEnc->sCmn.nb_subfr, psEnc->sCmn.predictLPCOrder ); + } else { + /************/ + /* UNVOICED */ + /************/ + /* Create signal with prepended subframes, scaled by inverse gains */ + x_ptr = x - psEnc->sCmn.predictLPCOrder; + x_pre_ptr = LPC_in_pre; + for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { + silk_scale_copy_vector_FLP( x_pre_ptr, x_ptr, invGains[ i ], + psEnc->sCmn.subfr_length + psEnc->sCmn.predictLPCOrder ); + x_pre_ptr += psEnc->sCmn.subfr_length + psEnc->sCmn.predictLPCOrder; + x_ptr += psEnc->sCmn.subfr_length; + } + silk_memset( psEncCtrl->LTPCoef, 0, psEnc->sCmn.nb_subfr * LTP_ORDER * sizeof( silk_float ) ); + psEncCtrl->LTPredCodGain = 0.0f; + psEnc->sCmn.sum_log_gain_Q7 = 0; + } + + /* Limit on total predictive coding gain */ + if( psEnc->sCmn.first_frame_after_reset ) { + minInvGain = 1.0f / MAX_PREDICTION_POWER_GAIN_AFTER_RESET; + } else { + minInvGain = (silk_float)pow( 2, psEncCtrl->LTPredCodGain / 3 ) / MAX_PREDICTION_POWER_GAIN; + minInvGain /= 0.25f + 0.75f * psEncCtrl->coding_quality; + } + + /* LPC_in_pre contains the LTP-filtered input for voiced, and the unfiltered input for unvoiced */ + silk_find_LPC_FLP( &psEnc->sCmn, NLSF_Q15, LPC_in_pre, minInvGain ); + + /* Quantize LSFs */ + silk_process_NLSFs_FLP( &psEnc->sCmn, psEncCtrl->PredCoef, NLSF_Q15, psEnc->sCmn.prev_NLSFq_Q15 ); + + /* Calculate residual energy using quantized LPC coefficients */ + silk_residual_energy_FLP( psEncCtrl->ResNrg, LPC_in_pre, psEncCtrl->PredCoef, psEncCtrl->Gains, + psEnc->sCmn.subfr_length, psEnc->sCmn.nb_subfr, psEnc->sCmn.predictLPCOrder ); + + /* Copy to prediction struct for use in next frame for interpolation */ + silk_memcpy( psEnc->sCmn.prev_NLSFq_Q15, NLSF_Q15, sizeof( psEnc->sCmn.prev_NLSFq_Q15 ) ); +} + diff --git a/components/opus/libopus/silk/float/inner_product_FLP.c b/components/opus/libopus/silk/float/inner_product_FLP.c new file mode 100644 index 0000000..cdd39d2 --- /dev/null +++ b/components/opus/libopus/silk/float/inner_product_FLP.c @@ -0,0 +1,59 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "SigProc_FLP.h" + +/* inner product of two silk_float arrays, with result as double */ +double silk_inner_product_FLP( + const silk_float *data1, + const silk_float *data2, + opus_int dataSize +) +{ + opus_int i; + double result; + + /* 4x unrolled loop */ + result = 0.0; + for( i = 0; i < dataSize - 3; i += 4 ) { + result += data1[ i + 0 ] * (double)data2[ i + 0 ] + + data1[ i + 1 ] * (double)data2[ i + 1 ] + + data1[ i + 2 ] * (double)data2[ i + 2 ] + + data1[ i + 3 ] * (double)data2[ i + 3 ]; + } + + /* add any remaining products */ + for( ; i < dataSize; i++ ) { + result += data1[ i ] * (double)data2[ i ]; + } + + return result; +} diff --git a/components/opus/libopus/silk/float/k2a_FLP.c b/components/opus/libopus/silk/float/k2a_FLP.c new file mode 100644 index 0000000..1448008 --- /dev/null +++ b/components/opus/libopus/silk/float/k2a_FLP.c @@ -0,0 +1,54 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "SigProc_FLP.h" + +/* step up function, converts reflection coefficients to prediction coefficients */ +void silk_k2a_FLP( + silk_float *A, /* O prediction coefficients [order] */ + const silk_float *rc, /* I reflection coefficients [order] */ + opus_int32 order /* I prediction order */ +) +{ + opus_int k, n; + silk_float rck, tmp1, tmp2; + + for( k = 0; k < order; k++ ) { + rck = rc[ k ]; + for( n = 0; n < (k + 1) >> 1; n++ ) { + tmp1 = A[ n ]; + tmp2 = A[ k - n - 1 ]; + A[ n ] = tmp1 + tmp2 * rck; + A[ k - n - 1 ] = tmp2 + tmp1 * rck; + } + A[ k ] = -rck; + } +} diff --git a/components/opus/libopus/silk/float/main_FLP.h b/components/opus/libopus/silk/float/main_FLP.h new file mode 100644 index 0000000..5dc0ccf --- /dev/null +++ b/components/opus/libopus/silk/float/main_FLP.h @@ -0,0 +1,286 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifndef SILK_MAIN_FLP_H +#define SILK_MAIN_FLP_H + +#include "SigProc_FLP.h" +#include "SigProc_FIX.h" +#include "structs_FLP.h" +#include "main.h" +#include "define.h" +#include "debug.h" +#include "entenc.h" + +#ifdef __cplusplus +extern "C" +{ +#endif + +#define silk_encoder_state_Fxx silk_encoder_state_FLP +#define silk_encode_do_VAD_Fxx silk_encode_do_VAD_FLP +#define silk_encode_frame_Fxx silk_encode_frame_FLP + +/*********************/ +/* Encoder Functions */ +/*********************/ + +/* High-pass filter with cutoff frequency adaptation based on pitch lag statistics */ +void silk_HP_variable_cutoff( + silk_encoder_state_Fxx state_Fxx[] /* I/O Encoder states */ +); + +/* Encoder main function */ +void silk_encode_do_VAD_FLP( + silk_encoder_state_FLP *psEnc, /* I/O Encoder state FLP */ + opus_int activity /* I Decision of Opus voice activity detector */ +); + +/* Encoder main function */ +opus_int silk_encode_frame_FLP( + silk_encoder_state_FLP *psEnc, /* I/O Encoder state FLP */ + opus_int32 *pnBytesOut, /* O Number of payload bytes; */ + ec_enc *psRangeEnc, /* I/O compressor data structure */ + opus_int condCoding, /* I The type of conditional coding to use */ + opus_int maxBits, /* I If > 0: maximum number of output bits */ + opus_int useCBR /* I Flag to force constant-bitrate operation */ +); + +/* Initializes the Silk encoder state */ +opus_int silk_init_encoder( + silk_encoder_state_FLP *psEnc, /* I/O Encoder state FLP */ + int arch /* I Run-tim architecture */ +); + +/* Control the Silk encoder */ +opus_int silk_control_encoder( + silk_encoder_state_FLP *psEnc, /* I/O Pointer to Silk encoder state FLP */ + silk_EncControlStruct *encControl, /* I Control structure */ + const opus_int allow_bw_switch, /* I Flag to allow switching audio bandwidth */ + const opus_int channelNb, /* I Channel number */ + const opus_int force_fs_kHz +); + +/**************************/ +/* Noise shaping analysis */ +/**************************/ +/* Compute noise shaping coefficients and initial gain values */ +void silk_noise_shape_analysis_FLP( + silk_encoder_state_FLP *psEnc, /* I/O Encoder state FLP */ + silk_encoder_control_FLP *psEncCtrl, /* I/O Encoder control FLP */ + const silk_float *pitch_res, /* I LPC residual from pitch analysis */ + const silk_float *x /* I Input signal [frame_length + la_shape] */ +); + +/* Autocorrelations for a warped frequency axis */ +void silk_warped_autocorrelation_FLP( + silk_float *corr, /* O Result [order + 1] */ + const silk_float *input, /* I Input data to correlate */ + const silk_float warping, /* I Warping coefficient */ + const opus_int length, /* I Length of input */ + const opus_int order /* I Correlation order (even) */ +); + +/* Calculation of LTP state scaling */ +void silk_LTP_scale_ctrl_FLP( + silk_encoder_state_FLP *psEnc, /* I/O Encoder state FLP */ + silk_encoder_control_FLP *psEncCtrl, /* I/O Encoder control FLP */ + opus_int condCoding /* I The type of conditional coding to use */ +); + +/**********************************************/ +/* Prediction Analysis */ +/**********************************************/ +/* Find pitch lags */ +void silk_find_pitch_lags_FLP( + silk_encoder_state_FLP *psEnc, /* I/O Encoder state FLP */ + silk_encoder_control_FLP *psEncCtrl, /* I/O Encoder control FLP */ + silk_float res[], /* O Residual */ + const silk_float x[], /* I Speech signal */ + int arch /* I Run-time architecture */ +); + +/* Find LPC and LTP coefficients */ +void silk_find_pred_coefs_FLP( + silk_encoder_state_FLP *psEnc, /* I/O Encoder state FLP */ + silk_encoder_control_FLP *psEncCtrl, /* I/O Encoder control FLP */ + const silk_float res_pitch[], /* I Residual from pitch analysis */ + const silk_float x[], /* I Speech signal */ + opus_int condCoding /* I The type of conditional coding to use */ +); + +/* LPC analysis */ +void silk_find_LPC_FLP( + silk_encoder_state *psEncC, /* I/O Encoder state */ + opus_int16 NLSF_Q15[], /* O NLSFs */ + const silk_float x[], /* I Input signal */ + const silk_float minInvGain /* I Prediction gain from LTP (dB) */ +); + +/* LTP analysis */ +void silk_find_LTP_FLP( + silk_float XX[ MAX_NB_SUBFR * LTP_ORDER * LTP_ORDER ], /* O Weight for LTP quantization */ + silk_float xX[ MAX_NB_SUBFR * LTP_ORDER ], /* O Weight for LTP quantization */ + const silk_float r_ptr[], /* I LPC residual */ + const opus_int lag[ MAX_NB_SUBFR ], /* I LTP lags */ + const opus_int subfr_length, /* I Subframe length */ + const opus_int nb_subfr /* I number of subframes */ +); + +void silk_LTP_analysis_filter_FLP( + silk_float *LTP_res, /* O LTP res MAX_NB_SUBFR*(pre_lgth+subfr_lngth) */ + const silk_float *x, /* I Input signal, with preceding samples */ + const silk_float B[ LTP_ORDER * MAX_NB_SUBFR ], /* I LTP coefficients for each subframe */ + const opus_int pitchL[ MAX_NB_SUBFR ], /* I Pitch lags */ + const silk_float invGains[ MAX_NB_SUBFR ], /* I Inverse quantization gains */ + const opus_int subfr_length, /* I Length of each subframe */ + const opus_int nb_subfr, /* I number of subframes */ + const opus_int pre_length /* I Preceding samples for each subframe */ +); + +/* Calculates residual energies of input subframes where all subframes have LPC_order */ +/* of preceding samples */ +void silk_residual_energy_FLP( + silk_float nrgs[ MAX_NB_SUBFR ], /* O Residual energy per subframe */ + const silk_float x[], /* I Input signal */ + silk_float a[ 2 ][ MAX_LPC_ORDER ], /* I AR coefs for each frame half */ + const silk_float gains[], /* I Quantization gains */ + const opus_int subfr_length, /* I Subframe length */ + const opus_int nb_subfr, /* I number of subframes */ + const opus_int LPC_order /* I LPC order */ +); + +/* 16th order LPC analysis filter */ +void silk_LPC_analysis_filter_FLP( + silk_float r_LPC[], /* O LPC residual signal */ + const silk_float PredCoef[], /* I LPC coefficients */ + const silk_float s[], /* I Input signal */ + const opus_int length, /* I Length of input signal */ + const opus_int Order /* I LPC order */ +); + +/* LTP tap quantizer */ +void silk_quant_LTP_gains_FLP( + silk_float B[ MAX_NB_SUBFR * LTP_ORDER ], /* O Quantized LTP gains */ + opus_int8 cbk_index[ MAX_NB_SUBFR ], /* O Codebook index */ + opus_int8 *periodicity_index, /* O Periodicity index */ + opus_int32 *sum_log_gain_Q7, /* I/O Cumulative max prediction gain */ + silk_float *pred_gain_dB, /* O LTP prediction gain */ + const silk_float XX[ MAX_NB_SUBFR * LTP_ORDER * LTP_ORDER ], /* I Correlation matrix */ + const silk_float xX[ MAX_NB_SUBFR * LTP_ORDER ], /* I Correlation vector */ + const opus_int subfr_len, /* I Number of samples per subframe */ + const opus_int nb_subfr, /* I Number of subframes */ + int arch /* I Run-time architecture */ +); + +/* Residual energy: nrg = wxx - 2 * wXx * c + c' * wXX * c */ +silk_float silk_residual_energy_covar_FLP( /* O Weighted residual energy */ + const silk_float *c, /* I Filter coefficients */ + silk_float *wXX, /* I/O Weighted correlation matrix, reg. out */ + const silk_float *wXx, /* I Weighted correlation vector */ + const silk_float wxx, /* I Weighted correlation value */ + const opus_int D /* I Dimension */ +); + +/* Processing of gains */ +void silk_process_gains_FLP( + silk_encoder_state_FLP *psEnc, /* I/O Encoder state FLP */ + silk_encoder_control_FLP *psEncCtrl, /* I/O Encoder control FLP */ + opus_int condCoding /* I The type of conditional coding to use */ +); + +/******************/ +/* Linear Algebra */ +/******************/ +/* Calculates correlation matrix X'*X */ +void silk_corrMatrix_FLP( + const silk_float *x, /* I x vector [ L+order-1 ] used to create X */ + const opus_int L, /* I Length of vectors */ + const opus_int Order, /* I Max lag for correlation */ + silk_float *XX /* O X'*X correlation matrix [order x order] */ +); + +/* Calculates correlation vector X'*t */ +void silk_corrVector_FLP( + const silk_float *x, /* I x vector [L+order-1] used to create X */ + const silk_float *t, /* I Target vector [L] */ + const opus_int L, /* I Length of vecors */ + const opus_int Order, /* I Max lag for correlation */ + silk_float *Xt /* O X'*t correlation vector [order] */ +); + +/* Apply sine window to signal vector. */ +/* Window types: */ +/* 1 -> sine window from 0 to pi/2 */ +/* 2 -> sine window from pi/2 to pi */ +void silk_apply_sine_window_FLP( + silk_float px_win[], /* O Pointer to windowed signal */ + const silk_float px[], /* I Pointer to input signal */ + const opus_int win_type, /* I Selects a window type */ + const opus_int length /* I Window length, multiple of 4 */ +); + +/* Wrapper functions. Call flp / fix code */ + +/* Convert AR filter coefficients to NLSF parameters */ +void silk_A2NLSF_FLP( + opus_int16 *NLSF_Q15, /* O NLSF vector [ LPC_order ] */ + const silk_float *pAR, /* I LPC coefficients [ LPC_order ] */ + const opus_int LPC_order /* I LPC order */ +); + +/* Convert NLSF parameters to AR prediction filter coefficients */ +void silk_NLSF2A_FLP( + silk_float *pAR, /* O LPC coefficients [ LPC_order ] */ + const opus_int16 *NLSF_Q15, /* I NLSF vector [ LPC_order ] */ + const opus_int LPC_order, /* I LPC order */ + int arch /* I Run-time architecture */ +); + +/* Limit, stabilize, and quantize NLSFs */ +void silk_process_NLSFs_FLP( + silk_encoder_state *psEncC, /* I/O Encoder state */ + silk_float PredCoef[ 2 ][ MAX_LPC_ORDER ], /* O Prediction coefficients */ + opus_int16 NLSF_Q15[ MAX_LPC_ORDER ], /* I/O Normalized LSFs (quant out) (0 - (2^15-1)) */ + const opus_int16 prev_NLSF_Q15[ MAX_LPC_ORDER ] /* I Previous Normalized LSFs (0 - (2^15-1)) */ +); + +/* Floating-point Silk NSQ wrapper */ +void silk_NSQ_wrapper_FLP( + silk_encoder_state_FLP *psEnc, /* I/O Encoder state FLP */ + silk_encoder_control_FLP *psEncCtrl, /* I/O Encoder control FLP */ + SideInfoIndices *psIndices, /* I/O Quantization indices */ + silk_nsq_state *psNSQ, /* I/O Noise Shaping Quantzation state */ + opus_int8 pulses[], /* O Quantized pulse signal */ + const silk_float x[] /* I Prefiltered input signal */ +); + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/components/opus/libopus/silk/float/noise_shape_analysis_FLP.c b/components/opus/libopus/silk/float/noise_shape_analysis_FLP.c new file mode 100644 index 0000000..cb3d8a5 --- /dev/null +++ b/components/opus/libopus/silk/float/noise_shape_analysis_FLP.c @@ -0,0 +1,350 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main_FLP.h" +#include "tuning_parameters.h" + +/* Compute gain to make warped filter coefficients have a zero mean log frequency response on a */ +/* non-warped frequency scale. (So that it can be implemented with a minimum-phase monic filter.) */ +/* Note: A monic filter is one with the first coefficient equal to 1.0. In Silk we omit the first */ +/* coefficient in an array of coefficients, for monic filters. */ +static OPUS_INLINE silk_float warped_gain( + const silk_float *coefs, + silk_float lambda, + opus_int order +) { + opus_int i; + silk_float gain; + + lambda = -lambda; + gain = coefs[ order - 1 ]; + for( i = order - 2; i >= 0; i-- ) { + gain = lambda * gain + coefs[ i ]; + } + return (silk_float)( 1.0f / ( 1.0f - lambda * gain ) ); +} + +/* Convert warped filter coefficients to monic pseudo-warped coefficients and limit maximum */ +/* amplitude of monic warped coefficients by using bandwidth expansion on the true coefficients */ +static OPUS_INLINE void warped_true2monic_coefs( + silk_float *coefs, + silk_float lambda, + silk_float limit, + opus_int order +) { + opus_int i, iter, ind = 0; + silk_float tmp, maxabs, chirp, gain; + + /* Convert to monic coefficients */ + for( i = order - 1; i > 0; i-- ) { + coefs[ i - 1 ] -= lambda * coefs[ i ]; + } + gain = ( 1.0f - lambda * lambda ) / ( 1.0f + lambda * coefs[ 0 ] ); + for( i = 0; i < order; i++ ) { + coefs[ i ] *= gain; + } + + /* Limit */ + for( iter = 0; iter < 10; iter++ ) { + /* Find maximum absolute value */ + maxabs = -1.0f; + for( i = 0; i < order; i++ ) { + tmp = silk_abs_float( coefs[ i ] ); + if( tmp > maxabs ) { + maxabs = tmp; + ind = i; + } + } + if( maxabs <= limit ) { + /* Coefficients are within range - done */ + return; + } + + /* Convert back to true warped coefficients */ + for( i = 1; i < order; i++ ) { + coefs[ i - 1 ] += lambda * coefs[ i ]; + } + gain = 1.0f / gain; + for( i = 0; i < order; i++ ) { + coefs[ i ] *= gain; + } + + /* Apply bandwidth expansion */ + chirp = 0.99f - ( 0.8f + 0.1f * iter ) * ( maxabs - limit ) / ( maxabs * ( ind + 1 ) ); + silk_bwexpander_FLP( coefs, order, chirp ); + + /* Convert to monic warped coefficients */ + for( i = order - 1; i > 0; i-- ) { + coefs[ i - 1 ] -= lambda * coefs[ i ]; + } + gain = ( 1.0f - lambda * lambda ) / ( 1.0f + lambda * coefs[ 0 ] ); + for( i = 0; i < order; i++ ) { + coefs[ i ] *= gain; + } + } + silk_assert( 0 ); +} + +static OPUS_INLINE void limit_coefs( + silk_float *coefs, + silk_float limit, + opus_int order +) { + opus_int i, iter, ind = 0; + silk_float tmp, maxabs, chirp; + + for( iter = 0; iter < 10; iter++ ) { + /* Find maximum absolute value */ + maxabs = -1.0f; + for( i = 0; i < order; i++ ) { + tmp = silk_abs_float( coefs[ i ] ); + if( tmp > maxabs ) { + maxabs = tmp; + ind = i; + } + } + if( maxabs <= limit ) { + /* Coefficients are within range - done */ + return; + } + + /* Apply bandwidth expansion */ + chirp = 0.99f - ( 0.8f + 0.1f * iter ) * ( maxabs - limit ) / ( maxabs * ( ind + 1 ) ); + silk_bwexpander_FLP( coefs, order, chirp ); + } + silk_assert( 0 ); +} + +/* Compute noise shaping coefficients and initial gain values */ +void silk_noise_shape_analysis_FLP( + silk_encoder_state_FLP *psEnc, /* I/O Encoder state FLP */ + silk_encoder_control_FLP *psEncCtrl, /* I/O Encoder control FLP */ + const silk_float *pitch_res, /* I LPC residual from pitch analysis */ + const silk_float *x /* I Input signal [frame_length + la_shape] */ +) +{ + silk_shape_state_FLP *psShapeSt = &psEnc->sShape; + opus_int k, nSamples, nSegs; + silk_float SNR_adj_dB, HarmShapeGain, Tilt; + silk_float nrg, log_energy, log_energy_prev, energy_variation; + silk_float BWExp, gain_mult, gain_add, strength, b, warping; + silk_float x_windowed[ SHAPE_LPC_WIN_MAX ]; + silk_float auto_corr[ MAX_SHAPE_LPC_ORDER + 1 ]; + silk_float rc[ MAX_SHAPE_LPC_ORDER + 1 ]; + const silk_float *x_ptr, *pitch_res_ptr; + + /* Point to start of first LPC analysis block */ + x_ptr = x - psEnc->sCmn.la_shape; + + /****************/ + /* GAIN CONTROL */ + /****************/ + SNR_adj_dB = psEnc->sCmn.SNR_dB_Q7 * ( 1 / 128.0f ); + + /* Input quality is the average of the quality in the lowest two VAD bands */ + psEncCtrl->input_quality = 0.5f * ( psEnc->sCmn.input_quality_bands_Q15[ 0 ] + psEnc->sCmn.input_quality_bands_Q15[ 1 ] ) * ( 1.0f / 32768.0f ); + + /* Coding quality level, between 0.0 and 1.0 */ + psEncCtrl->coding_quality = silk_sigmoid( 0.25f * ( SNR_adj_dB - 20.0f ) ); + + if( psEnc->sCmn.useCBR == 0 ) { + /* Reduce coding SNR during low speech activity */ + b = 1.0f - psEnc->sCmn.speech_activity_Q8 * ( 1.0f / 256.0f ); + SNR_adj_dB -= BG_SNR_DECR_dB * psEncCtrl->coding_quality * ( 0.5f + 0.5f * psEncCtrl->input_quality ) * b * b; + } + + if( psEnc->sCmn.indices.signalType == TYPE_VOICED ) { + /* Reduce gains for periodic signals */ + SNR_adj_dB += HARM_SNR_INCR_dB * psEnc->LTPCorr; + } else { + /* For unvoiced signals and low-quality input, adjust the quality slower than SNR_dB setting */ + SNR_adj_dB += ( -0.4f * psEnc->sCmn.SNR_dB_Q7 * ( 1 / 128.0f ) + 6.0f ) * ( 1.0f - psEncCtrl->input_quality ); + } + + /*************************/ + /* SPARSENESS PROCESSING */ + /*************************/ + /* Set quantizer offset */ + if( psEnc->sCmn.indices.signalType == TYPE_VOICED ) { + /* Initially set to 0; may be overruled in process_gains(..) */ + psEnc->sCmn.indices.quantOffsetType = 0; + } else { + /* Sparseness measure, based on relative fluctuations of energy per 2 milliseconds */ + nSamples = 2 * psEnc->sCmn.fs_kHz; + energy_variation = 0.0f; + log_energy_prev = 0.0f; + pitch_res_ptr = pitch_res; + nSegs = silk_SMULBB( SUB_FRAME_LENGTH_MS, psEnc->sCmn.nb_subfr ) / 2; + for( k = 0; k < nSegs; k++ ) { + nrg = ( silk_float )nSamples + ( silk_float )silk_energy_FLP( pitch_res_ptr, nSamples ); + log_energy = silk_log2( nrg ); + if( k > 0 ) { + energy_variation += silk_abs_float( log_energy - log_energy_prev ); + } + log_energy_prev = log_energy; + pitch_res_ptr += nSamples; + } + + /* Set quantization offset depending on sparseness measure */ + if( energy_variation > ENERGY_VARIATION_THRESHOLD_QNT_OFFSET * (nSegs-1) ) { + psEnc->sCmn.indices.quantOffsetType = 0; + } else { + psEnc->sCmn.indices.quantOffsetType = 1; + } + } + + /*******************************/ + /* Control bandwidth expansion */ + /*******************************/ + /* More BWE for signals with high prediction gain */ + strength = FIND_PITCH_WHITE_NOISE_FRACTION * psEncCtrl->predGain; /* between 0.0 and 1.0 */ + BWExp = BANDWIDTH_EXPANSION / ( 1.0f + strength * strength ); + + /* Slightly more warping in analysis will move quantization noise up in frequency, where it's better masked */ + warping = (silk_float)psEnc->sCmn.warping_Q16 / 65536.0f + 0.01f * psEncCtrl->coding_quality; + + /********************************************/ + /* Compute noise shaping AR coefs and gains */ + /********************************************/ + for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { + /* Apply window: sine slope followed by flat part followed by cosine slope */ + opus_int shift, slope_part, flat_part; + flat_part = psEnc->sCmn.fs_kHz * 3; + slope_part = ( psEnc->sCmn.shapeWinLength - flat_part ) / 2; + + silk_apply_sine_window_FLP( x_windowed, x_ptr, 1, slope_part ); + shift = slope_part; + silk_memcpy( x_windowed + shift, x_ptr + shift, flat_part * sizeof(silk_float) ); + shift += flat_part; + silk_apply_sine_window_FLP( x_windowed + shift, x_ptr + shift, 2, slope_part ); + + /* Update pointer: next LPC analysis block */ + x_ptr += psEnc->sCmn.subfr_length; + + if( psEnc->sCmn.warping_Q16 > 0 ) { + /* Calculate warped auto correlation */ + silk_warped_autocorrelation_FLP( auto_corr, x_windowed, warping, + psEnc->sCmn.shapeWinLength, psEnc->sCmn.shapingLPCOrder ); + } else { + /* Calculate regular auto correlation */ + silk_autocorrelation_FLP( auto_corr, x_windowed, psEnc->sCmn.shapeWinLength, psEnc->sCmn.shapingLPCOrder + 1 ); + } + + /* Add white noise, as a fraction of energy */ + auto_corr[ 0 ] += auto_corr[ 0 ] * SHAPE_WHITE_NOISE_FRACTION + 1.0f; + + /* Convert correlations to prediction coefficients, and compute residual energy */ + nrg = silk_schur_FLP( rc, auto_corr, psEnc->sCmn.shapingLPCOrder ); + silk_k2a_FLP( &psEncCtrl->AR[ k * MAX_SHAPE_LPC_ORDER ], rc, psEnc->sCmn.shapingLPCOrder ); + psEncCtrl->Gains[ k ] = ( silk_float )sqrt( nrg ); + + if( psEnc->sCmn.warping_Q16 > 0 ) { + /* Adjust gain for warping */ + psEncCtrl->Gains[ k ] *= warped_gain( &psEncCtrl->AR[ k * MAX_SHAPE_LPC_ORDER ], warping, psEnc->sCmn.shapingLPCOrder ); + } + + /* Bandwidth expansion for synthesis filter shaping */ + silk_bwexpander_FLP( &psEncCtrl->AR[ k * MAX_SHAPE_LPC_ORDER ], psEnc->sCmn.shapingLPCOrder, BWExp ); + + if( psEnc->sCmn.warping_Q16 > 0 ) { + /* Convert to monic warped prediction coefficients and limit absolute values */ + warped_true2monic_coefs( &psEncCtrl->AR[ k * MAX_SHAPE_LPC_ORDER ], warping, 3.999f, psEnc->sCmn.shapingLPCOrder ); + } else { + /* Limit absolute values */ + limit_coefs( &psEncCtrl->AR[ k * MAX_SHAPE_LPC_ORDER ], 3.999f, psEnc->sCmn.shapingLPCOrder ); + } + } + + /*****************/ + /* Gain tweaking */ + /*****************/ + /* Increase gains during low speech activity */ + gain_mult = (silk_float)pow( 2.0f, -0.16f * SNR_adj_dB ); + gain_add = (silk_float)pow( 2.0f, 0.16f * MIN_QGAIN_DB ); + for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { + psEncCtrl->Gains[ k ] *= gain_mult; + psEncCtrl->Gains[ k ] += gain_add; + } + + /************************************************/ + /* Control low-frequency shaping and noise tilt */ + /************************************************/ + /* Less low frequency shaping for noisy inputs */ + strength = LOW_FREQ_SHAPING * ( 1.0f + LOW_QUALITY_LOW_FREQ_SHAPING_DECR * ( psEnc->sCmn.input_quality_bands_Q15[ 0 ] * ( 1.0f / 32768.0f ) - 1.0f ) ); + strength *= psEnc->sCmn.speech_activity_Q8 * ( 1.0f / 256.0f ); + if( psEnc->sCmn.indices.signalType == TYPE_VOICED ) { + /* Reduce low frequencies quantization noise for periodic signals, depending on pitch lag */ + /*f = 400; freqz([1, -0.98 + 2e-4 * f], [1, -0.97 + 7e-4 * f], 2^12, Fs); axis([0, 1000, -10, 1])*/ + for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { + b = 0.2f / psEnc->sCmn.fs_kHz + 3.0f / psEncCtrl->pitchL[ k ]; + psEncCtrl->LF_MA_shp[ k ] = -1.0f + b; + psEncCtrl->LF_AR_shp[ k ] = 1.0f - b - b * strength; + } + Tilt = - HP_NOISE_COEF - + (1 - HP_NOISE_COEF) * HARM_HP_NOISE_COEF * psEnc->sCmn.speech_activity_Q8 * ( 1.0f / 256.0f ); + } else { + b = 1.3f / psEnc->sCmn.fs_kHz; + psEncCtrl->LF_MA_shp[ 0 ] = -1.0f + b; + psEncCtrl->LF_AR_shp[ 0 ] = 1.0f - b - b * strength * 0.6f; + for( k = 1; k < psEnc->sCmn.nb_subfr; k++ ) { + psEncCtrl->LF_MA_shp[ k ] = psEncCtrl->LF_MA_shp[ 0 ]; + psEncCtrl->LF_AR_shp[ k ] = psEncCtrl->LF_AR_shp[ 0 ]; + } + Tilt = -HP_NOISE_COEF; + } + + /****************************/ + /* HARMONIC SHAPING CONTROL */ + /****************************/ + if( USE_HARM_SHAPING && psEnc->sCmn.indices.signalType == TYPE_VOICED ) { + /* Harmonic noise shaping */ + HarmShapeGain = HARMONIC_SHAPING; + + /* More harmonic noise shaping for high bitrates or noisy input */ + HarmShapeGain += HIGH_RATE_OR_LOW_QUALITY_HARMONIC_SHAPING * + ( 1.0f - ( 1.0f - psEncCtrl->coding_quality ) * psEncCtrl->input_quality ); + + /* Less harmonic noise shaping for less periodic signals */ + HarmShapeGain *= ( silk_float )sqrt( psEnc->LTPCorr ); + } else { + HarmShapeGain = 0.0f; + } + + /*************************/ + /* Smooth over subframes */ + /*************************/ + for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { + psShapeSt->HarmShapeGain_smth += SUBFR_SMTH_COEF * ( HarmShapeGain - psShapeSt->HarmShapeGain_smth ); + psEncCtrl->HarmShapeGain[ k ] = psShapeSt->HarmShapeGain_smth; + psShapeSt->Tilt_smth += SUBFR_SMTH_COEF * ( Tilt - psShapeSt->Tilt_smth ); + psEncCtrl->Tilt[ k ] = psShapeSt->Tilt_smth; + } +} diff --git a/components/opus/libopus/silk/float/pitch_analysis_core_FLP.c b/components/opus/libopus/silk/float/pitch_analysis_core_FLP.c new file mode 100644 index 0000000..f351bc3 --- /dev/null +++ b/components/opus/libopus/silk/float/pitch_analysis_core_FLP.c @@ -0,0 +1,630 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +/***************************************************************************** +* Pitch analyser function +******************************************************************************/ +#include "SigProc_FLP.h" +#include "SigProc_FIX.h" +#include "pitch_est_defines.h" +#include "pitch.h" + +#define SCRATCH_SIZE 22 + +/************************************************************/ +/* Internally used functions */ +/************************************************************/ +static void silk_P_Ana_calc_corr_st3( + silk_float cross_corr_st3[ PE_MAX_NB_SUBFR ][ PE_NB_CBKS_STAGE3_MAX ][ PE_NB_STAGE3_LAGS ], /* O 3 DIM correlation array */ + const silk_float frame[], /* I vector to correlate */ + opus_int start_lag, /* I start lag */ + opus_int sf_length, /* I sub frame length */ + opus_int nb_subfr, /* I number of subframes */ + opus_int complexity, /* I Complexity setting */ + int arch /* I Run-time architecture */ +); + +static void silk_P_Ana_calc_energy_st3( + silk_float energies_st3[ PE_MAX_NB_SUBFR ][ PE_NB_CBKS_STAGE3_MAX ][ PE_NB_STAGE3_LAGS ], /* O 3 DIM correlation array */ + const silk_float frame[], /* I vector to correlate */ + opus_int start_lag, /* I start lag */ + opus_int sf_length, /* I sub frame length */ + opus_int nb_subfr, /* I number of subframes */ + opus_int complexity /* I Complexity setting */ +); + +/************************************************************/ +/* CORE PITCH ANALYSIS FUNCTION */ +/************************************************************/ +opus_int silk_pitch_analysis_core_FLP( /* O Voicing estimate: 0 voiced, 1 unvoiced */ + const silk_float *frame, /* I Signal of length PE_FRAME_LENGTH_MS*Fs_kHz */ + opus_int *pitch_out, /* O Pitch lag values [nb_subfr] */ + opus_int16 *lagIndex, /* O Lag Index */ + opus_int8 *contourIndex, /* O Pitch contour Index */ + silk_float *LTPCorr, /* I/O Normalized correlation; input: value from previous frame */ + opus_int prevLag, /* I Last lag of previous frame; set to zero is unvoiced */ + const silk_float search_thres1, /* I First stage threshold for lag candidates 0 - 1 */ + const silk_float search_thres2, /* I Final threshold for lag candidates 0 - 1 */ + const opus_int Fs_kHz, /* I sample frequency (kHz) */ + const opus_int complexity, /* I Complexity setting, 0-2, where 2 is highest */ + const opus_int nb_subfr, /* I Number of 5 ms subframes */ + int arch /* I Run-time architecture */ +) +{ + opus_int i, k, d, j; + silk_float frame_8kHz[ PE_MAX_FRAME_LENGTH_MS * 8 ]; + silk_float frame_4kHz[ PE_MAX_FRAME_LENGTH_MS * 4 ]; + opus_int16 frame_8_FIX[ PE_MAX_FRAME_LENGTH_MS * 8 ]; + opus_int16 frame_4_FIX[ PE_MAX_FRAME_LENGTH_MS * 4 ]; + opus_int32 filt_state[ 6 ]; + silk_float threshold, contour_bias; + silk_float C[ PE_MAX_NB_SUBFR][ (PE_MAX_LAG >> 1) + 5 ]; + opus_val32 xcorr[ PE_MAX_LAG_MS * 4 - PE_MIN_LAG_MS * 4 + 1 ]; + silk_float CC[ PE_NB_CBKS_STAGE2_EXT ]; + const silk_float *target_ptr, *basis_ptr; + double cross_corr, normalizer, energy, energy_tmp; + opus_int d_srch[ PE_D_SRCH_LENGTH ]; + opus_int16 d_comp[ (PE_MAX_LAG >> 1) + 5 ]; + opus_int length_d_srch, length_d_comp; + silk_float Cmax, CCmax, CCmax_b, CCmax_new_b, CCmax_new; + opus_int CBimax, CBimax_new, lag, start_lag, end_lag, lag_new; + opus_int cbk_size; + silk_float lag_log2, prevLag_log2, delta_lag_log2_sqr; + silk_float energies_st3[ PE_MAX_NB_SUBFR ][ PE_NB_CBKS_STAGE3_MAX ][ PE_NB_STAGE3_LAGS ]; + silk_float cross_corr_st3[ PE_MAX_NB_SUBFR ][ PE_NB_CBKS_STAGE3_MAX ][ PE_NB_STAGE3_LAGS ]; + opus_int lag_counter; + opus_int frame_length, frame_length_8kHz, frame_length_4kHz; + opus_int sf_length, sf_length_8kHz, sf_length_4kHz; + opus_int min_lag, min_lag_8kHz, min_lag_4kHz; + opus_int max_lag, max_lag_8kHz, max_lag_4kHz; + opus_int nb_cbk_search; + const opus_int8 *Lag_CB_ptr; + + /* Check for valid sampling frequency */ + celt_assert( Fs_kHz == 8 || Fs_kHz == 12 || Fs_kHz == 16 ); + + /* Check for valid complexity setting */ + celt_assert( complexity >= SILK_PE_MIN_COMPLEX ); + celt_assert( complexity <= SILK_PE_MAX_COMPLEX ); + + silk_assert( search_thres1 >= 0.0f && search_thres1 <= 1.0f ); + silk_assert( search_thres2 >= 0.0f && search_thres2 <= 1.0f ); + + /* Set up frame lengths max / min lag for the sampling frequency */ + frame_length = ( PE_LTP_MEM_LENGTH_MS + nb_subfr * PE_SUBFR_LENGTH_MS ) * Fs_kHz; + frame_length_4kHz = ( PE_LTP_MEM_LENGTH_MS + nb_subfr * PE_SUBFR_LENGTH_MS ) * 4; + frame_length_8kHz = ( PE_LTP_MEM_LENGTH_MS + nb_subfr * PE_SUBFR_LENGTH_MS ) * 8; + sf_length = PE_SUBFR_LENGTH_MS * Fs_kHz; + sf_length_4kHz = PE_SUBFR_LENGTH_MS * 4; + sf_length_8kHz = PE_SUBFR_LENGTH_MS * 8; + min_lag = PE_MIN_LAG_MS * Fs_kHz; + min_lag_4kHz = PE_MIN_LAG_MS * 4; + min_lag_8kHz = PE_MIN_LAG_MS * 8; + max_lag = PE_MAX_LAG_MS * Fs_kHz - 1; + max_lag_4kHz = PE_MAX_LAG_MS * 4; + max_lag_8kHz = PE_MAX_LAG_MS * 8 - 1; + + /* Resample from input sampled at Fs_kHz to 8 kHz */ + if( Fs_kHz == 16 ) { + /* Resample to 16 -> 8 khz */ + opus_int16 frame_16_FIX[ 16 * PE_MAX_FRAME_LENGTH_MS ]; + silk_float2short_array( frame_16_FIX, frame, frame_length ); + silk_memset( filt_state, 0, 2 * sizeof( opus_int32 ) ); + silk_resampler_down2( filt_state, frame_8_FIX, frame_16_FIX, frame_length ); + silk_short2float_array( frame_8kHz, frame_8_FIX, frame_length_8kHz ); + } else if( Fs_kHz == 12 ) { + /* Resample to 12 -> 8 khz */ + opus_int16 frame_12_FIX[ 12 * PE_MAX_FRAME_LENGTH_MS ]; + silk_float2short_array( frame_12_FIX, frame, frame_length ); + silk_memset( filt_state, 0, 6 * sizeof( opus_int32 ) ); + silk_resampler_down2_3( filt_state, frame_8_FIX, frame_12_FIX, frame_length ); + silk_short2float_array( frame_8kHz, frame_8_FIX, frame_length_8kHz ); + } else { + celt_assert( Fs_kHz == 8 ); + silk_float2short_array( frame_8_FIX, frame, frame_length_8kHz ); + } + + /* Decimate again to 4 kHz */ + silk_memset( filt_state, 0, 2 * sizeof( opus_int32 ) ); + silk_resampler_down2( filt_state, frame_4_FIX, frame_8_FIX, frame_length_8kHz ); + silk_short2float_array( frame_4kHz, frame_4_FIX, frame_length_4kHz ); + + /* Low-pass filter */ + for( i = frame_length_4kHz - 1; i > 0; i-- ) { + frame_4kHz[ i ] = silk_ADD_SAT16( frame_4kHz[ i ], frame_4kHz[ i - 1 ] ); + } + + /****************************************************************************** + * FIRST STAGE, operating in 4 khz + ******************************************************************************/ + silk_memset(C, 0, sizeof(silk_float) * nb_subfr * ((PE_MAX_LAG >> 1) + 5)); + target_ptr = &frame_4kHz[ silk_LSHIFT( sf_length_4kHz, 2 ) ]; + for( k = 0; k < nb_subfr >> 1; k++ ) { + /* Check that we are within range of the array */ + celt_assert( target_ptr >= frame_4kHz ); + celt_assert( target_ptr + sf_length_8kHz <= frame_4kHz + frame_length_4kHz ); + + basis_ptr = target_ptr - min_lag_4kHz; + + /* Check that we are within range of the array */ + celt_assert( basis_ptr >= frame_4kHz ); + celt_assert( basis_ptr + sf_length_8kHz <= frame_4kHz + frame_length_4kHz ); + + celt_pitch_xcorr( target_ptr, target_ptr-max_lag_4kHz, xcorr, sf_length_8kHz, max_lag_4kHz - min_lag_4kHz + 1, arch ); + + /* Calculate first vector products before loop */ + cross_corr = xcorr[ max_lag_4kHz - min_lag_4kHz ]; + normalizer = silk_energy_FLP( target_ptr, sf_length_8kHz ) + + silk_energy_FLP( basis_ptr, sf_length_8kHz ) + + sf_length_8kHz * 4000.0f; + + C[ 0 ][ min_lag_4kHz ] += (silk_float)( 2 * cross_corr / normalizer ); + + /* From now on normalizer is computed recursively */ + for( d = min_lag_4kHz + 1; d <= max_lag_4kHz; d++ ) { + basis_ptr--; + + /* Check that we are within range of the array */ + silk_assert( basis_ptr >= frame_4kHz ); + silk_assert( basis_ptr + sf_length_8kHz <= frame_4kHz + frame_length_4kHz ); + + cross_corr = xcorr[ max_lag_4kHz - d ]; + + /* Add contribution of new sample and remove contribution from oldest sample */ + normalizer += + basis_ptr[ 0 ] * (double)basis_ptr[ 0 ] - + basis_ptr[ sf_length_8kHz ] * (double)basis_ptr[ sf_length_8kHz ]; + C[ 0 ][ d ] += (silk_float)( 2 * cross_corr / normalizer ); + } + /* Update target pointer */ + target_ptr += sf_length_8kHz; + } + + /* Apply short-lag bias */ + for( i = max_lag_4kHz; i >= min_lag_4kHz; i-- ) { + C[ 0 ][ i ] -= C[ 0 ][ i ] * i / 4096.0f; + } + + /* Sort */ + length_d_srch = 4 + 2 * complexity; + celt_assert( 3 * length_d_srch <= PE_D_SRCH_LENGTH ); + silk_insertion_sort_decreasing_FLP( &C[ 0 ][ min_lag_4kHz ], d_srch, max_lag_4kHz - min_lag_4kHz + 1, length_d_srch ); + + /* Escape if correlation is very low already here */ + Cmax = C[ 0 ][ min_lag_4kHz ]; + if( Cmax < 0.2f ) { + silk_memset( pitch_out, 0, nb_subfr * sizeof( opus_int ) ); + *LTPCorr = 0.0f; + *lagIndex = 0; + *contourIndex = 0; + return 1; + } + + threshold = search_thres1 * Cmax; + for( i = 0; i < length_d_srch; i++ ) { + /* Convert to 8 kHz indices for the sorted correlation that exceeds the threshold */ + if( C[ 0 ][ min_lag_4kHz + i ] > threshold ) { + d_srch[ i ] = silk_LSHIFT( d_srch[ i ] + min_lag_4kHz, 1 ); + } else { + length_d_srch = i; + break; + } + } + celt_assert( length_d_srch > 0 ); + + for( i = min_lag_8kHz - 5; i < max_lag_8kHz + 5; i++ ) { + d_comp[ i ] = 0; + } + for( i = 0; i < length_d_srch; i++ ) { + d_comp[ d_srch[ i ] ] = 1; + } + + /* Convolution */ + for( i = max_lag_8kHz + 3; i >= min_lag_8kHz; i-- ) { + d_comp[ i ] += d_comp[ i - 1 ] + d_comp[ i - 2 ]; + } + + length_d_srch = 0; + for( i = min_lag_8kHz; i < max_lag_8kHz + 1; i++ ) { + if( d_comp[ i + 1 ] > 0 ) { + d_srch[ length_d_srch ] = i; + length_d_srch++; + } + } + + /* Convolution */ + for( i = max_lag_8kHz + 3; i >= min_lag_8kHz; i-- ) { + d_comp[ i ] += d_comp[ i - 1 ] + d_comp[ i - 2 ] + d_comp[ i - 3 ]; + } + + length_d_comp = 0; + for( i = min_lag_8kHz; i < max_lag_8kHz + 4; i++ ) { + if( d_comp[ i ] > 0 ) { + d_comp[ length_d_comp ] = (opus_int16)( i - 2 ); + length_d_comp++; + } + } + + /********************************************************************************** + ** SECOND STAGE, operating at 8 kHz, on lag sections with high correlation + *************************************************************************************/ + /********************************************************************************* + * Find energy of each subframe projected onto its history, for a range of delays + *********************************************************************************/ + silk_memset( C, 0, PE_MAX_NB_SUBFR*((PE_MAX_LAG >> 1) + 5) * sizeof(silk_float)); + + if( Fs_kHz == 8 ) { + target_ptr = &frame[ PE_LTP_MEM_LENGTH_MS * 8 ]; + } else { + target_ptr = &frame_8kHz[ PE_LTP_MEM_LENGTH_MS * 8 ]; + } + for( k = 0; k < nb_subfr; k++ ) { + energy_tmp = silk_energy_FLP( target_ptr, sf_length_8kHz ) + 1.0; + for( j = 0; j < length_d_comp; j++ ) { + d = d_comp[ j ]; + basis_ptr = target_ptr - d; + cross_corr = silk_inner_product_FLP( basis_ptr, target_ptr, sf_length_8kHz ); + if( cross_corr > 0.0f ) { + energy = silk_energy_FLP( basis_ptr, sf_length_8kHz ); + C[ k ][ d ] = (silk_float)( 2 * cross_corr / ( energy + energy_tmp ) ); + } else { + C[ k ][ d ] = 0.0f; + } + } + target_ptr += sf_length_8kHz; + } + + /* search over lag range and lags codebook */ + /* scale factor for lag codebook, as a function of center lag */ + + CCmax = 0.0f; /* This value doesn't matter */ + CCmax_b = -1000.0f; + + CBimax = 0; /* To avoid returning undefined lag values */ + lag = -1; /* To check if lag with strong enough correlation has been found */ + + if( prevLag > 0 ) { + if( Fs_kHz == 12 ) { + prevLag = silk_LSHIFT( prevLag, 1 ) / 3; + } else if( Fs_kHz == 16 ) { + prevLag = silk_RSHIFT( prevLag, 1 ); + } + prevLag_log2 = silk_log2( (silk_float)prevLag ); + } else { + prevLag_log2 = 0; + } + + /* Set up stage 2 codebook based on number of subframes */ + if( nb_subfr == PE_MAX_NB_SUBFR ) { + cbk_size = PE_NB_CBKS_STAGE2_EXT; + Lag_CB_ptr = &silk_CB_lags_stage2[ 0 ][ 0 ]; + if( Fs_kHz == 8 && complexity > SILK_PE_MIN_COMPLEX ) { + /* If input is 8 khz use a larger codebook here because it is last stage */ + nb_cbk_search = PE_NB_CBKS_STAGE2_EXT; + } else { + nb_cbk_search = PE_NB_CBKS_STAGE2; + } + } else { + cbk_size = PE_NB_CBKS_STAGE2_10MS; + Lag_CB_ptr = &silk_CB_lags_stage2_10_ms[ 0 ][ 0 ]; + nb_cbk_search = PE_NB_CBKS_STAGE2_10MS; + } + + for( k = 0; k < length_d_srch; k++ ) { + d = d_srch[ k ]; + for( j = 0; j < nb_cbk_search; j++ ) { + CC[j] = 0.0f; + for( i = 0; i < nb_subfr; i++ ) { + /* Try all codebooks */ + CC[ j ] += C[ i ][ d + matrix_ptr( Lag_CB_ptr, i, j, cbk_size )]; + } + } + /* Find best codebook */ + CCmax_new = -1000.0f; + CBimax_new = 0; + for( i = 0; i < nb_cbk_search; i++ ) { + if( CC[ i ] > CCmax_new ) { + CCmax_new = CC[ i ]; + CBimax_new = i; + } + } + + /* Bias towards shorter lags */ + lag_log2 = silk_log2( (silk_float)d ); + CCmax_new_b = CCmax_new - PE_SHORTLAG_BIAS * nb_subfr * lag_log2; + + /* Bias towards previous lag */ + if( prevLag > 0 ) { + delta_lag_log2_sqr = lag_log2 - prevLag_log2; + delta_lag_log2_sqr *= delta_lag_log2_sqr; + CCmax_new_b -= PE_PREVLAG_BIAS * nb_subfr * (*LTPCorr) * delta_lag_log2_sqr / ( delta_lag_log2_sqr + 0.5f ); + } + + if( CCmax_new_b > CCmax_b && /* Find maximum biased correlation */ + CCmax_new > nb_subfr * search_thres2 /* Correlation needs to be high enough to be voiced */ + ) { + CCmax_b = CCmax_new_b; + CCmax = CCmax_new; + lag = d; + CBimax = CBimax_new; + } + } + + if( lag == -1 ) { + /* No suitable candidate found */ + silk_memset( pitch_out, 0, PE_MAX_NB_SUBFR * sizeof(opus_int) ); + *LTPCorr = 0.0f; + *lagIndex = 0; + *contourIndex = 0; + return 1; + } + + /* Output normalized correlation */ + *LTPCorr = (silk_float)( CCmax / nb_subfr ); + silk_assert( *LTPCorr >= 0.0f ); + + if( Fs_kHz > 8 ) { + /* Search in original signal */ + + /* Compensate for decimation */ + silk_assert( lag == silk_SAT16( lag ) ); + if( Fs_kHz == 12 ) { + lag = silk_RSHIFT_ROUND( silk_SMULBB( lag, 3 ), 1 ); + } else { /* Fs_kHz == 16 */ + lag = silk_LSHIFT( lag, 1 ); + } + + lag = silk_LIMIT_int( lag, min_lag, max_lag ); + start_lag = silk_max_int( lag - 2, min_lag ); + end_lag = silk_min_int( lag + 2, max_lag ); + lag_new = lag; /* to avoid undefined lag */ + CBimax = 0; /* to avoid undefined lag */ + + CCmax = -1000.0f; + + /* Calculate the correlations and energies needed in stage 3 */ + silk_P_Ana_calc_corr_st3( cross_corr_st3, frame, start_lag, sf_length, nb_subfr, complexity, arch ); + silk_P_Ana_calc_energy_st3( energies_st3, frame, start_lag, sf_length, nb_subfr, complexity ); + + lag_counter = 0; + silk_assert( lag == silk_SAT16( lag ) ); + contour_bias = PE_FLATCONTOUR_BIAS / lag; + + /* Set up cbk parameters according to complexity setting and frame length */ + if( nb_subfr == PE_MAX_NB_SUBFR ) { + nb_cbk_search = (opus_int)silk_nb_cbk_searchs_stage3[ complexity ]; + cbk_size = PE_NB_CBKS_STAGE3_MAX; + Lag_CB_ptr = &silk_CB_lags_stage3[ 0 ][ 0 ]; + } else { + nb_cbk_search = PE_NB_CBKS_STAGE3_10MS; + cbk_size = PE_NB_CBKS_STAGE3_10MS; + Lag_CB_ptr = &silk_CB_lags_stage3_10_ms[ 0 ][ 0 ]; + } + + target_ptr = &frame[ PE_LTP_MEM_LENGTH_MS * Fs_kHz ]; + energy_tmp = silk_energy_FLP( target_ptr, nb_subfr * sf_length ) + 1.0; + for( d = start_lag; d <= end_lag; d++ ) { + for( j = 0; j < nb_cbk_search; j++ ) { + cross_corr = 0.0; + energy = energy_tmp; + for( k = 0; k < nb_subfr; k++ ) { + cross_corr += cross_corr_st3[ k ][ j ][ lag_counter ]; + energy += energies_st3[ k ][ j ][ lag_counter ]; + } + if( cross_corr > 0.0 ) { + CCmax_new = (silk_float)( 2 * cross_corr / energy ); + /* Reduce depending on flatness of contour */ + CCmax_new *= 1.0f - contour_bias * j; + } else { + CCmax_new = 0.0f; + } + + if( CCmax_new > CCmax && ( d + (opus_int)silk_CB_lags_stage3[ 0 ][ j ] ) <= max_lag ) { + CCmax = CCmax_new; + lag_new = d; + CBimax = j; + } + } + lag_counter++; + } + + for( k = 0; k < nb_subfr; k++ ) { + pitch_out[ k ] = lag_new + matrix_ptr( Lag_CB_ptr, k, CBimax, cbk_size ); + pitch_out[ k ] = silk_LIMIT( pitch_out[ k ], min_lag, PE_MAX_LAG_MS * Fs_kHz ); + } + *lagIndex = (opus_int16)( lag_new - min_lag ); + *contourIndex = (opus_int8)CBimax; + } else { /* Fs_kHz == 8 */ + /* Save Lags */ + for( k = 0; k < nb_subfr; k++ ) { + pitch_out[ k ] = lag + matrix_ptr( Lag_CB_ptr, k, CBimax, cbk_size ); + pitch_out[ k ] = silk_LIMIT( pitch_out[ k ], min_lag_8kHz, PE_MAX_LAG_MS * 8 ); + } + *lagIndex = (opus_int16)( lag - min_lag_8kHz ); + *contourIndex = (opus_int8)CBimax; + } + celt_assert( *lagIndex >= 0 ); + /* return as voiced */ + return 0; +} + +/*********************************************************************** + * Calculates the correlations used in stage 3 search. In order to cover + * the whole lag codebook for all the searched offset lags (lag +- 2), + * the following correlations are needed in each sub frame: + * + * sf1: lag range [-8,...,7] total 16 correlations + * sf2: lag range [-4,...,4] total 9 correlations + * sf3: lag range [-3,....4] total 8 correltions + * sf4: lag range [-6,....8] total 15 correlations + * + * In total 48 correlations. The direct implementation computed in worst + * case 4*12*5 = 240 correlations, but more likely around 120. + ***********************************************************************/ +static void silk_P_Ana_calc_corr_st3( + silk_float cross_corr_st3[ PE_MAX_NB_SUBFR ][ PE_NB_CBKS_STAGE3_MAX ][ PE_NB_STAGE3_LAGS ], /* O 3 DIM correlation array */ + const silk_float frame[], /* I vector to correlate */ + opus_int start_lag, /* I start lag */ + opus_int sf_length, /* I sub frame length */ + opus_int nb_subfr, /* I number of subframes */ + opus_int complexity, /* I Complexity setting */ + int arch /* I Run-time architecture */ +) +{ + const silk_float *target_ptr; + opus_int i, j, k, lag_counter, lag_low, lag_high; + opus_int nb_cbk_search, delta, idx, cbk_size; + silk_float scratch_mem[ SCRATCH_SIZE ]; + opus_val32 xcorr[ SCRATCH_SIZE ]; + const opus_int8 *Lag_range_ptr, *Lag_CB_ptr; + + celt_assert( complexity >= SILK_PE_MIN_COMPLEX ); + celt_assert( complexity <= SILK_PE_MAX_COMPLEX ); + + if( nb_subfr == PE_MAX_NB_SUBFR ) { + Lag_range_ptr = &silk_Lag_range_stage3[ complexity ][ 0 ][ 0 ]; + Lag_CB_ptr = &silk_CB_lags_stage3[ 0 ][ 0 ]; + nb_cbk_search = silk_nb_cbk_searchs_stage3[ complexity ]; + cbk_size = PE_NB_CBKS_STAGE3_MAX; + } else { + celt_assert( nb_subfr == PE_MAX_NB_SUBFR >> 1); + Lag_range_ptr = &silk_Lag_range_stage3_10_ms[ 0 ][ 0 ]; + Lag_CB_ptr = &silk_CB_lags_stage3_10_ms[ 0 ][ 0 ]; + nb_cbk_search = PE_NB_CBKS_STAGE3_10MS; + cbk_size = PE_NB_CBKS_STAGE3_10MS; + } + + target_ptr = &frame[ silk_LSHIFT( sf_length, 2 ) ]; /* Pointer to middle of frame */ + for( k = 0; k < nb_subfr; k++ ) { + lag_counter = 0; + + /* Calculate the correlations for each subframe */ + lag_low = matrix_ptr( Lag_range_ptr, k, 0, 2 ); + lag_high = matrix_ptr( Lag_range_ptr, k, 1, 2 ); + silk_assert(lag_high-lag_low+1 <= SCRATCH_SIZE); + celt_pitch_xcorr( target_ptr, target_ptr - start_lag - lag_high, xcorr, sf_length, lag_high - lag_low + 1, arch ); + for( j = lag_low; j <= lag_high; j++ ) { + silk_assert( lag_counter < SCRATCH_SIZE ); + scratch_mem[ lag_counter ] = xcorr[ lag_high - j ]; + lag_counter++; + } + + delta = matrix_ptr( Lag_range_ptr, k, 0, 2 ); + for( i = 0; i < nb_cbk_search; i++ ) { + /* Fill out the 3 dim array that stores the correlations for */ + /* each code_book vector for each start lag */ + idx = matrix_ptr( Lag_CB_ptr, k, i, cbk_size ) - delta; + for( j = 0; j < PE_NB_STAGE3_LAGS; j++ ) { + silk_assert( idx + j < SCRATCH_SIZE ); + silk_assert( idx + j < lag_counter ); + cross_corr_st3[ k ][ i ][ j ] = scratch_mem[ idx + j ]; + } + } + target_ptr += sf_length; + } +} + +/********************************************************************/ +/* Calculate the energies for first two subframes. The energies are */ +/* calculated recursively. */ +/********************************************************************/ +static void silk_P_Ana_calc_energy_st3( + silk_float energies_st3[ PE_MAX_NB_SUBFR ][ PE_NB_CBKS_STAGE3_MAX ][ PE_NB_STAGE3_LAGS ], /* O 3 DIM correlation array */ + const silk_float frame[], /* I vector to correlate */ + opus_int start_lag, /* I start lag */ + opus_int sf_length, /* I sub frame length */ + opus_int nb_subfr, /* I number of subframes */ + opus_int complexity /* I Complexity setting */ +) +{ + const silk_float *target_ptr, *basis_ptr; + double energy; + opus_int k, i, j, lag_counter; + opus_int nb_cbk_search, delta, idx, cbk_size, lag_diff; + silk_float scratch_mem[ SCRATCH_SIZE ]; + const opus_int8 *Lag_range_ptr, *Lag_CB_ptr; + + celt_assert( complexity >= SILK_PE_MIN_COMPLEX ); + celt_assert( complexity <= SILK_PE_MAX_COMPLEX ); + + if( nb_subfr == PE_MAX_NB_SUBFR ) { + Lag_range_ptr = &silk_Lag_range_stage3[ complexity ][ 0 ][ 0 ]; + Lag_CB_ptr = &silk_CB_lags_stage3[ 0 ][ 0 ]; + nb_cbk_search = silk_nb_cbk_searchs_stage3[ complexity ]; + cbk_size = PE_NB_CBKS_STAGE3_MAX; + } else { + celt_assert( nb_subfr == PE_MAX_NB_SUBFR >> 1); + Lag_range_ptr = &silk_Lag_range_stage3_10_ms[ 0 ][ 0 ]; + Lag_CB_ptr = &silk_CB_lags_stage3_10_ms[ 0 ][ 0 ]; + nb_cbk_search = PE_NB_CBKS_STAGE3_10MS; + cbk_size = PE_NB_CBKS_STAGE3_10MS; + } + + target_ptr = &frame[ silk_LSHIFT( sf_length, 2 ) ]; + for( k = 0; k < nb_subfr; k++ ) { + lag_counter = 0; + + /* Calculate the energy for first lag */ + basis_ptr = target_ptr - ( start_lag + matrix_ptr( Lag_range_ptr, k, 0, 2 ) ); + energy = silk_energy_FLP( basis_ptr, sf_length ) + 1e-3; + silk_assert( energy >= 0.0 ); + scratch_mem[lag_counter] = (silk_float)energy; + lag_counter++; + + lag_diff = ( matrix_ptr( Lag_range_ptr, k, 1, 2 ) - matrix_ptr( Lag_range_ptr, k, 0, 2 ) + 1 ); + for( i = 1; i < lag_diff; i++ ) { + /* remove part outside new window */ + energy -= basis_ptr[sf_length - i] * (double)basis_ptr[sf_length - i]; + silk_assert( energy >= 0.0 ); + + /* add part that comes into window */ + energy += basis_ptr[ -i ] * (double)basis_ptr[ -i ]; + silk_assert( energy >= 0.0 ); + silk_assert( lag_counter < SCRATCH_SIZE ); + scratch_mem[lag_counter] = (silk_float)energy; + lag_counter++; + } + + delta = matrix_ptr( Lag_range_ptr, k, 0, 2 ); + for( i = 0; i < nb_cbk_search; i++ ) { + /* Fill out the 3 dim array that stores the correlations for */ + /* each code_book vector for each start lag */ + idx = matrix_ptr( Lag_CB_ptr, k, i, cbk_size ) - delta; + for( j = 0; j < PE_NB_STAGE3_LAGS; j++ ) { + silk_assert( idx + j < SCRATCH_SIZE ); + silk_assert( idx + j < lag_counter ); + energies_st3[ k ][ i ][ j ] = scratch_mem[ idx + j ]; + silk_assert( energies_st3[ k ][ i ][ j ] >= 0.0f ); + } + } + target_ptr += sf_length; + } +} diff --git a/components/opus/libopus/silk/float/process_gains_FLP.c b/components/opus/libopus/silk/float/process_gains_FLP.c new file mode 100644 index 0000000..c0da0da --- /dev/null +++ b/components/opus/libopus/silk/float/process_gains_FLP.c @@ -0,0 +1,103 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main_FLP.h" +#include "tuning_parameters.h" + +/* Processing of gains */ +void silk_process_gains_FLP( + silk_encoder_state_FLP *psEnc, /* I/O Encoder state FLP */ + silk_encoder_control_FLP *psEncCtrl, /* I/O Encoder control FLP */ + opus_int condCoding /* I The type of conditional coding to use */ +) +{ + silk_shape_state_FLP *psShapeSt = &psEnc->sShape; + opus_int k; + opus_int32 pGains_Q16[ MAX_NB_SUBFR ]; + silk_float s, InvMaxSqrVal, gain, quant_offset; + + /* Gain reduction when LTP coding gain is high */ + if( psEnc->sCmn.indices.signalType == TYPE_VOICED ) { + s = 1.0f - 0.5f * silk_sigmoid( 0.25f * ( psEncCtrl->LTPredCodGain - 12.0f ) ); + for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { + psEncCtrl->Gains[ k ] *= s; + } + } + + /* Limit the quantized signal */ + InvMaxSqrVal = ( silk_float )( pow( 2.0f, 0.33f * ( 21.0f - psEnc->sCmn.SNR_dB_Q7 * ( 1 / 128.0f ) ) ) / psEnc->sCmn.subfr_length ); + + for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { + /* Soft limit on ratio residual energy and squared gains */ + gain = psEncCtrl->Gains[ k ]; + gain = ( silk_float )sqrt( gain * gain + psEncCtrl->ResNrg[ k ] * InvMaxSqrVal ); + psEncCtrl->Gains[ k ] = silk_min_float( gain, 32767.0f ); + } + + /* Prepare gains for noise shaping quantization */ + for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { + pGains_Q16[ k ] = (opus_int32)( psEncCtrl->Gains[ k ] * 65536.0f ); + } + + /* Save unquantized gains and gain Index */ + silk_memcpy( psEncCtrl->GainsUnq_Q16, pGains_Q16, psEnc->sCmn.nb_subfr * sizeof( opus_int32 ) ); + psEncCtrl->lastGainIndexPrev = psShapeSt->LastGainIndex; + + /* Quantize gains */ + silk_gains_quant( psEnc->sCmn.indices.GainsIndices, pGains_Q16, + &psShapeSt->LastGainIndex, condCoding == CODE_CONDITIONALLY, psEnc->sCmn.nb_subfr ); + + /* Overwrite unquantized gains with quantized gains and convert back to Q0 from Q16 */ + for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { + psEncCtrl->Gains[ k ] = pGains_Q16[ k ] / 65536.0f; + } + + /* Set quantizer offset for voiced signals. Larger offset when LTP coding gain is low or tilt is high (ie low-pass) */ + if( psEnc->sCmn.indices.signalType == TYPE_VOICED ) { + if( psEncCtrl->LTPredCodGain + psEnc->sCmn.input_tilt_Q15 * ( 1.0f / 32768.0f ) > 1.0f ) { + psEnc->sCmn.indices.quantOffsetType = 0; + } else { + psEnc->sCmn.indices.quantOffsetType = 1; + } + } + + /* Quantizer boundary adjustment */ + quant_offset = silk_Quantization_Offsets_Q10[ psEnc->sCmn.indices.signalType >> 1 ][ psEnc->sCmn.indices.quantOffsetType ] / 1024.0f; + psEncCtrl->Lambda = LAMBDA_OFFSET + + LAMBDA_DELAYED_DECISIONS * psEnc->sCmn.nStatesDelayedDecision + + LAMBDA_SPEECH_ACT * psEnc->sCmn.speech_activity_Q8 * ( 1.0f / 256.0f ) + + LAMBDA_INPUT_QUALITY * psEncCtrl->input_quality + + LAMBDA_CODING_QUALITY * psEncCtrl->coding_quality + + LAMBDA_QUANT_OFFSET * quant_offset; + + silk_assert( psEncCtrl->Lambda > 0.0f ); + silk_assert( psEncCtrl->Lambda < 2.0f ); +} diff --git a/components/opus/libopus/silk/float/regularize_correlations_FLP.c b/components/opus/libopus/silk/float/regularize_correlations_FLP.c new file mode 100644 index 0000000..df46126 --- /dev/null +++ b/components/opus/libopus/silk/float/regularize_correlations_FLP.c @@ -0,0 +1,48 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main_FLP.h" + +/* Add noise to matrix diagonal */ +void silk_regularize_correlations_FLP( + silk_float *XX, /* I/O Correlation matrices */ + silk_float *xx, /* I/O Correlation values */ + const silk_float noise, /* I Noise energy to add */ + const opus_int D /* I Dimension of XX */ +) +{ + opus_int i; + + for( i = 0; i < D; i++ ) { + matrix_ptr( &XX[ 0 ], i, i, D ) += noise; + } + xx[ 0 ] += noise; +} diff --git a/components/opus/libopus/silk/float/residual_energy_FLP.c b/components/opus/libopus/silk/float/residual_energy_FLP.c new file mode 100644 index 0000000..1bd07b3 --- /dev/null +++ b/components/opus/libopus/silk/float/residual_energy_FLP.c @@ -0,0 +1,117 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main_FLP.h" + +#define MAX_ITERATIONS_RESIDUAL_NRG 10 +#define REGULARIZATION_FACTOR 1e-8f + +/* Residual energy: nrg = wxx - 2 * wXx * c + c' * wXX * c */ +silk_float silk_residual_energy_covar_FLP( /* O Weighted residual energy */ + const silk_float *c, /* I Filter coefficients */ + silk_float *wXX, /* I/O Weighted correlation matrix, reg. out */ + const silk_float *wXx, /* I Weighted correlation vector */ + const silk_float wxx, /* I Weighted correlation value */ + const opus_int D /* I Dimension */ +) +{ + opus_int i, j, k; + silk_float tmp, nrg = 0.0f, regularization; + + /* Safety checks */ + celt_assert( D >= 0 ); + + regularization = REGULARIZATION_FACTOR * ( wXX[ 0 ] + wXX[ D * D - 1 ] ); + for( k = 0; k < MAX_ITERATIONS_RESIDUAL_NRG; k++ ) { + nrg = wxx; + + tmp = 0.0f; + for( i = 0; i < D; i++ ) { + tmp += wXx[ i ] * c[ i ]; + } + nrg -= 2.0f * tmp; + + /* compute c' * wXX * c, assuming wXX is symmetric */ + for( i = 0; i < D; i++ ) { + tmp = 0.0f; + for( j = i + 1; j < D; j++ ) { + tmp += matrix_c_ptr( wXX, i, j, D ) * c[ j ]; + } + nrg += c[ i ] * ( 2.0f * tmp + matrix_c_ptr( wXX, i, i, D ) * c[ i ] ); + } + if( nrg > 0 ) { + break; + } else { + /* Add white noise */ + for( i = 0; i < D; i++ ) { + matrix_c_ptr( wXX, i, i, D ) += regularization; + } + /* Increase noise for next run */ + regularization *= 2.0f; + } + } + if( k == MAX_ITERATIONS_RESIDUAL_NRG ) { + silk_assert( nrg == 0 ); + nrg = 1.0f; + } + + return nrg; +} + +/* Calculates residual energies of input subframes where all subframes have LPC_order */ +/* of preceding samples */ +void silk_residual_energy_FLP( + silk_float nrgs[ MAX_NB_SUBFR ], /* O Residual energy per subframe */ + const silk_float x[], /* I Input signal */ + silk_float a[ 2 ][ MAX_LPC_ORDER ], /* I AR coefs for each frame half */ + const silk_float gains[], /* I Quantization gains */ + const opus_int subfr_length, /* I Subframe length */ + const opus_int nb_subfr, /* I number of subframes */ + const opus_int LPC_order /* I LPC order */ +) +{ + opus_int shift; + silk_float *LPC_res_ptr, LPC_res[ ( MAX_FRAME_LENGTH + MAX_NB_SUBFR * MAX_LPC_ORDER ) / 2 ]; + + LPC_res_ptr = LPC_res + LPC_order; + shift = LPC_order + subfr_length; + + /* Filter input to create the LPC residual for each frame half, and measure subframe energies */ + silk_LPC_analysis_filter_FLP( LPC_res, a[ 0 ], x + 0 * shift, 2 * shift, LPC_order ); + nrgs[ 0 ] = ( silk_float )( gains[ 0 ] * gains[ 0 ] * silk_energy_FLP( LPC_res_ptr + 0 * shift, subfr_length ) ); + nrgs[ 1 ] = ( silk_float )( gains[ 1 ] * gains[ 1 ] * silk_energy_FLP( LPC_res_ptr + 1 * shift, subfr_length ) ); + + if( nb_subfr == MAX_NB_SUBFR ) { + silk_LPC_analysis_filter_FLP( LPC_res, a[ 1 ], x + 2 * shift, 2 * shift, LPC_order ); + nrgs[ 2 ] = ( silk_float )( gains[ 2 ] * gains[ 2 ] * silk_energy_FLP( LPC_res_ptr + 0 * shift, subfr_length ) ); + nrgs[ 3 ] = ( silk_float )( gains[ 3 ] * gains[ 3 ] * silk_energy_FLP( LPC_res_ptr + 1 * shift, subfr_length ) ); + } +} diff --git a/components/opus/libopus/silk/float/scale_copy_vector_FLP.c b/components/opus/libopus/silk/float/scale_copy_vector_FLP.c new file mode 100644 index 0000000..20db32b --- /dev/null +++ b/components/opus/libopus/silk/float/scale_copy_vector_FLP.c @@ -0,0 +1,57 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "SigProc_FLP.h" + +/* copy and multiply a vector by a constant */ +void silk_scale_copy_vector_FLP( + silk_float *data_out, + const silk_float *data_in, + silk_float gain, + opus_int dataSize +) +{ + opus_int i, dataSize4; + + /* 4x unrolled loop */ + dataSize4 = dataSize & 0xFFFC; + for( i = 0; i < dataSize4; i += 4 ) { + data_out[ i + 0 ] = gain * data_in[ i + 0 ]; + data_out[ i + 1 ] = gain * data_in[ i + 1 ]; + data_out[ i + 2 ] = gain * data_in[ i + 2 ]; + data_out[ i + 3 ] = gain * data_in[ i + 3 ]; + } + + /* any remaining elements */ + for( ; i < dataSize; i++ ) { + data_out[ i ] = gain * data_in[ i ]; + } +} diff --git a/components/opus/libopus/silk/float/scale_vector_FLP.c b/components/opus/libopus/silk/float/scale_vector_FLP.c new file mode 100644 index 0000000..108fdcb --- /dev/null +++ b/components/opus/libopus/silk/float/scale_vector_FLP.c @@ -0,0 +1,56 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "SigProc_FLP.h" + +/* multiply a vector by a constant */ +void silk_scale_vector_FLP( + silk_float *data1, + silk_float gain, + opus_int dataSize +) +{ + opus_int i, dataSize4; + + /* 4x unrolled loop */ + dataSize4 = dataSize & 0xFFFC; + for( i = 0; i < dataSize4; i += 4 ) { + data1[ i + 0 ] *= gain; + data1[ i + 1 ] *= gain; + data1[ i + 2 ] *= gain; + data1[ i + 3 ] *= gain; + } + + /* any remaining elements */ + for( ; i < dataSize; i++ ) { + data1[ i ] *= gain; + } +} diff --git a/components/opus/libopus/silk/float/schur_FLP.c b/components/opus/libopus/silk/float/schur_FLP.c new file mode 100644 index 0000000..8526c74 --- /dev/null +++ b/components/opus/libopus/silk/float/schur_FLP.c @@ -0,0 +1,70 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "SigProc_FLP.h" + +silk_float silk_schur_FLP( /* O returns residual energy */ + silk_float refl_coef[], /* O reflection coefficients (length order) */ + const silk_float auto_corr[], /* I autocorrelation sequence (length order+1) */ + opus_int order /* I order */ +) +{ + opus_int k, n; + double C[ SILK_MAX_ORDER_LPC + 1 ][ 2 ]; + double Ctmp1, Ctmp2, rc_tmp; + + celt_assert( order >= 0 && order <= SILK_MAX_ORDER_LPC ); + + /* Copy correlations */ + k = 0; + do { + C[ k ][ 0 ] = C[ k ][ 1 ] = auto_corr[ k ]; + } while( ++k <= order ); + + for( k = 0; k < order; k++ ) { + /* Get reflection coefficient */ + rc_tmp = -C[ k + 1 ][ 0 ] / silk_max_float( C[ 0 ][ 1 ], 1e-9f ); + + /* Save the output */ + refl_coef[ k ] = (silk_float)rc_tmp; + + /* Update correlations */ + for( n = 0; n < order - k; n++ ) { + Ctmp1 = C[ n + k + 1 ][ 0 ]; + Ctmp2 = C[ n ][ 1 ]; + C[ n + k + 1 ][ 0 ] = Ctmp1 + Ctmp2 * rc_tmp; + C[ n ][ 1 ] = Ctmp2 + Ctmp1 * rc_tmp; + } + } + + /* Return residual energy */ + return (silk_float)C[ 0 ][ 1 ]; +} diff --git a/components/opus/libopus/silk/float/sort_FLP.c b/components/opus/libopus/silk/float/sort_FLP.c new file mode 100644 index 0000000..0e18f31 --- /dev/null +++ b/components/opus/libopus/silk/float/sort_FLP.c @@ -0,0 +1,83 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +/* Insertion sort (fast for already almost sorted arrays): */ +/* Best case: O(n) for an already sorted array */ +/* Worst case: O(n^2) for an inversely sorted array */ + +#include "typedef.h" +#include "SigProc_FLP.h" + +void silk_insertion_sort_decreasing_FLP( + silk_float *a, /* I/O Unsorted / Sorted vector */ + opus_int *idx, /* O Index vector for the sorted elements */ + const opus_int L, /* I Vector length */ + const opus_int K /* I Number of correctly sorted positions */ +) +{ + silk_float value; + opus_int i, j; + + /* Safety checks */ + celt_assert( K > 0 ); + celt_assert( L > 0 ); + celt_assert( L >= K ); + + /* Write start indices in index vector */ + for( i = 0; i < K; i++ ) { + idx[ i ] = i; + } + + /* Sort vector elements by value, decreasing order */ + for( i = 1; i < K; i++ ) { + value = a[ i ]; + for( j = i - 1; ( j >= 0 ) && ( value > a[ j ] ); j-- ) { + a[ j + 1 ] = a[ j ]; /* Shift value */ + idx[ j + 1 ] = idx[ j ]; /* Shift index */ + } + a[ j + 1 ] = value; /* Write value */ + idx[ j + 1 ] = i; /* Write index */ + } + + /* If less than L values are asked check the remaining values, */ + /* but only spend CPU to ensure that the K first values are correct */ + for( i = K; i < L; i++ ) { + value = a[ i ]; + if( value > a[ K - 1 ] ) { + for( j = K - 2; ( j >= 0 ) && ( value > a[ j ] ); j-- ) { + a[ j + 1 ] = a[ j ]; /* Shift value */ + idx[ j + 1 ] = idx[ j ]; /* Shift index */ + } + a[ j + 1 ] = value; /* Write value */ + idx[ j + 1 ] = i; /* Write index */ + } + } +} diff --git a/components/opus/libopus/silk/float/structs_FLP.h b/components/opus/libopus/silk/float/structs_FLP.h new file mode 100644 index 0000000..3150b38 --- /dev/null +++ b/components/opus/libopus/silk/float/structs_FLP.h @@ -0,0 +1,112 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifndef SILK_STRUCTS_FLP_H +#define SILK_STRUCTS_FLP_H + +#include "typedef.h" +#include "main.h" +#include "structs.h" + +#ifdef __cplusplus +extern "C" +{ +#endif + +/********************************/ +/* Noise shaping analysis state */ +/********************************/ +typedef struct { + opus_int8 LastGainIndex; + silk_float HarmShapeGain_smth; + silk_float Tilt_smth; +} silk_shape_state_FLP; + +/********************************/ +/* Encoder state FLP */ +/********************************/ +typedef struct { + silk_encoder_state sCmn; /* Common struct, shared with fixed-point code */ + silk_shape_state_FLP sShape; /* Noise shaping state */ + + /* Buffer for find pitch and noise shape analysis */ + silk_float x_buf[ 2 * MAX_FRAME_LENGTH + LA_SHAPE_MAX ];/* Buffer for find pitch and noise shape analysis */ + silk_float LTPCorr; /* Normalized correlation from pitch lag estimator */ +} silk_encoder_state_FLP; + +/************************/ +/* Encoder control FLP */ +/************************/ +typedef struct { + /* Prediction and coding parameters */ + silk_float Gains[ MAX_NB_SUBFR ]; + silk_float PredCoef[ 2 ][ MAX_LPC_ORDER ]; /* holds interpolated and final coefficients */ + silk_float LTPCoef[LTP_ORDER * MAX_NB_SUBFR]; + silk_float LTP_scale; + opus_int pitchL[ MAX_NB_SUBFR ]; + + /* Noise shaping parameters */ + silk_float AR[ MAX_NB_SUBFR * MAX_SHAPE_LPC_ORDER ]; + silk_float LF_MA_shp[ MAX_NB_SUBFR ]; + silk_float LF_AR_shp[ MAX_NB_SUBFR ]; + silk_float Tilt[ MAX_NB_SUBFR ]; + silk_float HarmShapeGain[ MAX_NB_SUBFR ]; + silk_float Lambda; + silk_float input_quality; + silk_float coding_quality; + + /* Measures */ + silk_float predGain; + silk_float LTPredCodGain; + silk_float ResNrg[ MAX_NB_SUBFR ]; /* Residual energy per subframe */ + + /* Parameters for CBR mode */ + opus_int32 GainsUnq_Q16[ MAX_NB_SUBFR ]; + opus_int8 lastGainIndexPrev; +} silk_encoder_control_FLP; + +/************************/ +/* Encoder Super Struct */ +/************************/ +typedef struct { + silk_encoder_state_FLP state_Fxx[ ENCODER_NUM_CHANNELS ]; + stereo_enc_state sStereo; + opus_int32 nBitsUsedLBRR; + opus_int32 nBitsExceeded; + opus_int nChannelsAPI; + opus_int nChannelsInternal; + opus_int nPrevChannelsInternal; + opus_int timeSinceSwitchAllowed_ms; + opus_int allowBandwidthSwitch; + opus_int prev_decode_only_middle; +} silk_encoder; + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/components/opus/libopus/silk/float/warped_autocorrelation_FLP.c b/components/opus/libopus/silk/float/warped_autocorrelation_FLP.c new file mode 100644 index 0000000..09186e7 --- /dev/null +++ b/components/opus/libopus/silk/float/warped_autocorrelation_FLP.c @@ -0,0 +1,73 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main_FLP.h" + +/* Autocorrelations for a warped frequency axis */ +void silk_warped_autocorrelation_FLP( + silk_float *corr, /* O Result [order + 1] */ + const silk_float *input, /* I Input data to correlate */ + const silk_float warping, /* I Warping coefficient */ + const opus_int length, /* I Length of input */ + const opus_int order /* I Correlation order (even) */ +) +{ + opus_int n, i; + double tmp1, tmp2; + double state[ MAX_SHAPE_LPC_ORDER + 1 ] = { 0 }; + double C[ MAX_SHAPE_LPC_ORDER + 1 ] = { 0 }; + + /* Order must be even */ + celt_assert( ( order & 1 ) == 0 ); + + /* Loop over samples */ + for( n = 0; n < length; n++ ) { + tmp1 = input[ n ]; + /* Loop over allpass sections */ + for( i = 0; i < order; i += 2 ) { + /* Output of allpass section */ + tmp2 = state[ i ] + warping * ( state[ i + 1 ] - tmp1 ); + state[ i ] = tmp1; + C[ i ] += state[ 0 ] * tmp1; + /* Output of allpass section */ + tmp1 = state[ i + 1 ] + warping * ( state[ i + 2 ] - tmp2 ); + state[ i + 1 ] = tmp2; + C[ i + 1 ] += state[ 0 ] * tmp2; + } + state[ order ] = tmp1; + C[ order ] += state[ 0 ] * tmp1; + } + + /* Copy correlations in silk_float output format */ + for( i = 0; i < order + 1; i++ ) { + corr[ i ] = ( silk_float )C[ i ]; + } +} diff --git a/components/opus/libopus/silk/float/wrappers_FLP.c b/components/opus/libopus/silk/float/wrappers_FLP.c new file mode 100644 index 0000000..ad90b87 --- /dev/null +++ b/components/opus/libopus/silk/float/wrappers_FLP.c @@ -0,0 +1,207 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main_FLP.h" + +/* Wrappers. Calls flp / fix code */ + +/* Convert AR filter coefficients to NLSF parameters */ +void silk_A2NLSF_FLP( + opus_int16 *NLSF_Q15, /* O NLSF vector [ LPC_order ] */ + const silk_float *pAR, /* I LPC coefficients [ LPC_order ] */ + const opus_int LPC_order /* I LPC order */ +) +{ + opus_int i; + opus_int32 a_fix_Q16[ MAX_LPC_ORDER ]; + + for( i = 0; i < LPC_order; i++ ) { + a_fix_Q16[ i ] = silk_float2int( pAR[ i ] * 65536.0f ); + } + + silk_A2NLSF( NLSF_Q15, a_fix_Q16, LPC_order ); +} + +/* Convert LSF parameters to AR prediction filter coefficients */ +void silk_NLSF2A_FLP( + silk_float *pAR, /* O LPC coefficients [ LPC_order ] */ + const opus_int16 *NLSF_Q15, /* I NLSF vector [ LPC_order ] */ + const opus_int LPC_order, /* I LPC order */ + int arch /* I Run-time architecture */ +) +{ + opus_int i; + opus_int16 a_fix_Q12[ MAX_LPC_ORDER ]; + + silk_NLSF2A( a_fix_Q12, NLSF_Q15, LPC_order, arch ); + + for( i = 0; i < LPC_order; i++ ) { + pAR[ i ] = ( silk_float )a_fix_Q12[ i ] * ( 1.0f / 4096.0f ); + } +} + +/******************************************/ +/* Floating-point NLSF processing wrapper */ +/******************************************/ +void silk_process_NLSFs_FLP( + silk_encoder_state *psEncC, /* I/O Encoder state */ + silk_float PredCoef[ 2 ][ MAX_LPC_ORDER ], /* O Prediction coefficients */ + opus_int16 NLSF_Q15[ MAX_LPC_ORDER ], /* I/O Normalized LSFs (quant out) (0 - (2^15-1)) */ + const opus_int16 prev_NLSF_Q15[ MAX_LPC_ORDER ] /* I Previous Normalized LSFs (0 - (2^15-1)) */ +) +{ + opus_int i, j; + opus_int16 PredCoef_Q12[ 2 ][ MAX_LPC_ORDER ]; + + silk_process_NLSFs( psEncC, PredCoef_Q12, NLSF_Q15, prev_NLSF_Q15); + + for( j = 0; j < 2; j++ ) { + for( i = 0; i < psEncC->predictLPCOrder; i++ ) { + PredCoef[ j ][ i ] = ( silk_float )PredCoef_Q12[ j ][ i ] * ( 1.0f / 4096.0f ); + } + } +} + +/****************************************/ +/* Floating-point Silk NSQ wrapper */ +/****************************************/ +void silk_NSQ_wrapper_FLP( + silk_encoder_state_FLP *psEnc, /* I/O Encoder state FLP */ + silk_encoder_control_FLP *psEncCtrl, /* I/O Encoder control FLP */ + SideInfoIndices *psIndices, /* I/O Quantization indices */ + silk_nsq_state *psNSQ, /* I/O Noise Shaping Quantzation state */ + opus_int8 pulses[], /* O Quantized pulse signal */ + const silk_float x[] /* I Prefiltered input signal */ +) +{ + opus_int i, j; + opus_int16 x16[ MAX_FRAME_LENGTH ]; + opus_int32 Gains_Q16[ MAX_NB_SUBFR ]; + silk_DWORD_ALIGN opus_int16 PredCoef_Q12[ 2 ][ MAX_LPC_ORDER ]; + opus_int16 LTPCoef_Q14[ LTP_ORDER * MAX_NB_SUBFR ]; + opus_int LTP_scale_Q14; + + /* Noise shaping parameters */ + opus_int16 AR_Q13[ MAX_NB_SUBFR * MAX_SHAPE_LPC_ORDER ]; + opus_int32 LF_shp_Q14[ MAX_NB_SUBFR ]; /* Packs two int16 coefficients per int32 value */ + opus_int Lambda_Q10; + opus_int Tilt_Q14[ MAX_NB_SUBFR ]; + opus_int HarmShapeGain_Q14[ MAX_NB_SUBFR ]; + + /* Convert control struct to fix control struct */ + /* Noise shape parameters */ + for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { + for( j = 0; j < psEnc->sCmn.shapingLPCOrder; j++ ) { + AR_Q13[ i * MAX_SHAPE_LPC_ORDER + j ] = silk_float2int( psEncCtrl->AR[ i * MAX_SHAPE_LPC_ORDER + j ] * 8192.0f ); + } + } + + for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { + LF_shp_Q14[ i ] = silk_LSHIFT32( silk_float2int( psEncCtrl->LF_AR_shp[ i ] * 16384.0f ), 16 ) | + (opus_uint16)silk_float2int( psEncCtrl->LF_MA_shp[ i ] * 16384.0f ); + Tilt_Q14[ i ] = (opus_int)silk_float2int( psEncCtrl->Tilt[ i ] * 16384.0f ); + HarmShapeGain_Q14[ i ] = (opus_int)silk_float2int( psEncCtrl->HarmShapeGain[ i ] * 16384.0f ); + } + Lambda_Q10 = ( opus_int )silk_float2int( psEncCtrl->Lambda * 1024.0f ); + + /* prediction and coding parameters */ + for( i = 0; i < psEnc->sCmn.nb_subfr * LTP_ORDER; i++ ) { + LTPCoef_Q14[ i ] = (opus_int16)silk_float2int( psEncCtrl->LTPCoef[ i ] * 16384.0f ); + } + + for( j = 0; j < 2; j++ ) { + for( i = 0; i < psEnc->sCmn.predictLPCOrder; i++ ) { + PredCoef_Q12[ j ][ i ] = (opus_int16)silk_float2int( psEncCtrl->PredCoef[ j ][ i ] * 4096.0f ); + } + } + + for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { + Gains_Q16[ i ] = silk_float2int( psEncCtrl->Gains[ i ] * 65536.0f ); + silk_assert( Gains_Q16[ i ] > 0 ); + } + + if( psIndices->signalType == TYPE_VOICED ) { + LTP_scale_Q14 = silk_LTPScales_table_Q14[ psIndices->LTP_scaleIndex ]; + } else { + LTP_scale_Q14 = 0; + } + + /* Convert input to fix */ + for( i = 0; i < psEnc->sCmn.frame_length; i++ ) { + x16[ i ] = silk_float2int( x[ i ] ); + } + + /* Call NSQ */ + if( psEnc->sCmn.nStatesDelayedDecision > 1 || psEnc->sCmn.warping_Q16 > 0 ) { + silk_NSQ_del_dec( &psEnc->sCmn, psNSQ, psIndices, x16, pulses, PredCoef_Q12[ 0 ], LTPCoef_Q14, + AR_Q13, HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, psEncCtrl->pitchL, Lambda_Q10, LTP_scale_Q14, psEnc->sCmn.arch ); + } else { + silk_NSQ( &psEnc->sCmn, psNSQ, psIndices, x16, pulses, PredCoef_Q12[ 0 ], LTPCoef_Q14, + AR_Q13, HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, psEncCtrl->pitchL, Lambda_Q10, LTP_scale_Q14, psEnc->sCmn.arch ); + } +} + +/***********************************************/ +/* Floating-point Silk LTP quantiation wrapper */ +/***********************************************/ +void silk_quant_LTP_gains_FLP( + silk_float B[ MAX_NB_SUBFR * LTP_ORDER ], /* O Quantized LTP gains */ + opus_int8 cbk_index[ MAX_NB_SUBFR ], /* O Codebook index */ + opus_int8 *periodicity_index, /* O Periodicity index */ + opus_int32 *sum_log_gain_Q7, /* I/O Cumulative max prediction gain */ + silk_float *pred_gain_dB, /* O LTP prediction gain */ + const silk_float XX[ MAX_NB_SUBFR * LTP_ORDER * LTP_ORDER ], /* I Correlation matrix */ + const silk_float xX[ MAX_NB_SUBFR * LTP_ORDER ], /* I Correlation vector */ + const opus_int subfr_len, /* I Number of samples per subframe */ + const opus_int nb_subfr, /* I Number of subframes */ + int arch /* I Run-time architecture */ +) +{ + opus_int i, pred_gain_dB_Q7; + opus_int16 B_Q14[ MAX_NB_SUBFR * LTP_ORDER ]; + opus_int32 XX_Q17[ MAX_NB_SUBFR * LTP_ORDER * LTP_ORDER ]; + opus_int32 xX_Q17[ MAX_NB_SUBFR * LTP_ORDER ]; + + for( i = 0; i < nb_subfr * LTP_ORDER * LTP_ORDER; i++ ) { + XX_Q17[ i ] = (opus_int32)silk_float2int( XX[ i ] * 131072.0f ); + } + for( i = 0; i < nb_subfr * LTP_ORDER; i++ ) { + xX_Q17[ i ] = (opus_int32)silk_float2int( xX[ i ] * 131072.0f ); + } + + silk_quant_LTP_gains( B_Q14, cbk_index, periodicity_index, sum_log_gain_Q7, &pred_gain_dB_Q7, XX_Q17, xX_Q17, subfr_len, nb_subfr, arch ); + + for( i = 0; i < nb_subfr * LTP_ORDER; i++ ) { + B[ i ] = (silk_float)B_Q14[ i ] * ( 1.0f / 16384.0f ); + } + + *pred_gain_dB = (silk_float)pred_gain_dB_Q7 * ( 1.0f / 128.0f ); +} diff --git a/components/opus/libopus/silk/gain_quant.c b/components/opus/libopus/silk/gain_quant.c new file mode 100644 index 0000000..ee65245 --- /dev/null +++ b/components/opus/libopus/silk/gain_quant.c @@ -0,0 +1,142 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main.h" + +#define OFFSET ( ( MIN_QGAIN_DB * 128 ) / 6 + 16 * 128 ) +#define SCALE_Q16 ( ( 65536 * ( N_LEVELS_QGAIN - 1 ) ) / ( ( ( MAX_QGAIN_DB - MIN_QGAIN_DB ) * 128 ) / 6 ) ) +#define INV_SCALE_Q16 ( ( 65536 * ( ( ( MAX_QGAIN_DB - MIN_QGAIN_DB ) * 128 ) / 6 ) ) / ( N_LEVELS_QGAIN - 1 ) ) + +/* Gain scalar quantization with hysteresis, uniform on log scale */ +void silk_gains_quant( + opus_int8 ind[ MAX_NB_SUBFR ], /* O gain indices */ + opus_int32 gain_Q16[ MAX_NB_SUBFR ], /* I/O gains (quantized out) */ + opus_int8 *prev_ind, /* I/O last index in previous frame */ + const opus_int conditional, /* I first gain is delta coded if 1 */ + const opus_int nb_subfr /* I number of subframes */ +) +{ + opus_int k, double_step_size_threshold; + + for( k = 0; k < nb_subfr; k++ ) { + /* Convert to log scale, scale, floor() */ + ind[ k ] = silk_SMULWB( SCALE_Q16, silk_lin2log( gain_Q16[ k ] ) - OFFSET ); + + /* Round towards previous quantized gain (hysteresis) */ + if( ind[ k ] < *prev_ind ) { + ind[ k ]++; + } + ind[ k ] = silk_LIMIT_int( ind[ k ], 0, N_LEVELS_QGAIN - 1 ); + + /* Compute delta indices and limit */ + if( k == 0 && conditional == 0 ) { + /* Full index */ + ind[ k ] = silk_LIMIT_int( ind[ k ], *prev_ind + MIN_DELTA_GAIN_QUANT, N_LEVELS_QGAIN - 1 ); + *prev_ind = ind[ k ]; + } else { + /* Delta index */ + ind[ k ] = ind[ k ] - *prev_ind; + + /* Double the quantization step size for large gain increases, so that the max gain level can be reached */ + double_step_size_threshold = 2 * MAX_DELTA_GAIN_QUANT - N_LEVELS_QGAIN + *prev_ind; + if( ind[ k ] > double_step_size_threshold ) { + ind[ k ] = double_step_size_threshold + silk_RSHIFT( ind[ k ] - double_step_size_threshold + 1, 1 ); + } + + ind[ k ] = silk_LIMIT_int( ind[ k ], MIN_DELTA_GAIN_QUANT, MAX_DELTA_GAIN_QUANT ); + + /* Accumulate deltas */ + if( ind[ k ] > double_step_size_threshold ) { + *prev_ind += silk_LSHIFT( ind[ k ], 1 ) - double_step_size_threshold; + *prev_ind = silk_min_int( *prev_ind, N_LEVELS_QGAIN - 1 ); + } else { + *prev_ind += ind[ k ]; + } + + /* Shift to make non-negative */ + ind[ k ] -= MIN_DELTA_GAIN_QUANT; + } + + /* Scale and convert to linear scale */ + gain_Q16[ k ] = silk_log2lin( silk_min_32( silk_SMULWB( INV_SCALE_Q16, *prev_ind ) + OFFSET, 3967 ) ); /* 3967 = 31 in Q7 */ + } +} + +/* Gains scalar dequantization, uniform on log scale */ +void silk_gains_dequant( + opus_int32 gain_Q16[ MAX_NB_SUBFR ], /* O quantized gains */ + const opus_int8 ind[ MAX_NB_SUBFR ], /* I gain indices */ + opus_int8 *prev_ind, /* I/O last index in previous frame */ + const opus_int conditional, /* I first gain is delta coded if 1 */ + const opus_int nb_subfr /* I number of subframes */ +) +{ + opus_int k, ind_tmp, double_step_size_threshold; + + for( k = 0; k < nb_subfr; k++ ) { + if( k == 0 && conditional == 0 ) { + /* Gain index is not allowed to go down more than 16 steps (~21.8 dB) */ + *prev_ind = silk_max_int( ind[ k ], *prev_ind - 16 ); + } else { + /* Delta index */ + ind_tmp = ind[ k ] + MIN_DELTA_GAIN_QUANT; + + /* Accumulate deltas */ + double_step_size_threshold = 2 * MAX_DELTA_GAIN_QUANT - N_LEVELS_QGAIN + *prev_ind; + if( ind_tmp > double_step_size_threshold ) { + *prev_ind += silk_LSHIFT( ind_tmp, 1 ) - double_step_size_threshold; + } else { + *prev_ind += ind_tmp; + } + } + *prev_ind = silk_LIMIT_int( *prev_ind, 0, N_LEVELS_QGAIN - 1 ); + + /* Scale and convert to linear scale */ + gain_Q16[ k ] = silk_log2lin( silk_min_32( silk_SMULWB( INV_SCALE_Q16, *prev_ind ) + OFFSET, 3967 ) ); /* 3967 = 31 in Q7 */ + } +} + +/* Compute unique identifier of gain indices vector */ +opus_int32 silk_gains_ID( /* O returns unique identifier of gains */ + const opus_int8 ind[ MAX_NB_SUBFR ], /* I gain indices */ + const opus_int nb_subfr /* I number of subframes */ +) +{ + opus_int k; + opus_int32 gainsID; + + gainsID = 0; + for( k = 0; k < nb_subfr; k++ ) { + gainsID = silk_ADD_LSHIFT32( ind[ k ], gainsID, 8 ); + } + + return gainsID; +} diff --git a/components/opus/libopus/silk/init_decoder.c b/components/opus/libopus/silk/init_decoder.c new file mode 100644 index 0000000..16c03dc --- /dev/null +++ b/components/opus/libopus/silk/init_decoder.c @@ -0,0 +1,57 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main.h" + +/************************/ +/* Init Decoder State */ +/************************/ +opus_int silk_init_decoder( + silk_decoder_state *psDec /* I/O Decoder state pointer */ +) +{ + /* Clear the entire encoder state, except anything copied */ + silk_memset( psDec, 0, sizeof( silk_decoder_state ) ); + + /* Used to deactivate LSF interpolation */ + psDec->first_frame_after_reset = 1; + psDec->prev_gain_Q16 = 65536; + psDec->arch = opus_select_arch(); + + /* Reset CNG state */ + silk_CNG_Reset( psDec ); + + /* Reset PLC state */ + silk_PLC_Reset( psDec ); + + return(0); +} + diff --git a/components/opus/libopus/silk/init_encoder.c b/components/opus/libopus/silk/init_encoder.c new file mode 100644 index 0000000..65995c3 --- /dev/null +++ b/components/opus/libopus/silk/init_encoder.c @@ -0,0 +1,64 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif +#ifdef FIXED_POINT +#include "main_FIX.h" +#else +#include "main_FLP.h" +#endif +#include "tuning_parameters.h" +#include "cpu_support.h" + +/*********************************/ +/* Initialize Silk Encoder state */ +/*********************************/ +opus_int silk_init_encoder( + silk_encoder_state_Fxx *psEnc, /* I/O Pointer to Silk FIX encoder state */ + int arch /* I Run-time architecture */ +) +{ + opus_int ret = 0; + + /* Clear the entire encoder state */ + silk_memset( psEnc, 0, sizeof( silk_encoder_state_Fxx ) ); + + psEnc->sCmn.arch = arch; + + psEnc->sCmn.variable_HP_smth1_Q15 = silk_LSHIFT( silk_lin2log( SILK_FIX_CONST( VARIABLE_HP_MIN_CUTOFF_HZ, 16 ) ) - ( 16 << 7 ), 8 ); + psEnc->sCmn.variable_HP_smth2_Q15 = psEnc->sCmn.variable_HP_smth1_Q15; + + /* Used to deactivate LSF interpolation, pitch prediction */ + psEnc->sCmn.first_frame_after_reset = 1; + + /* Initialize Silk VAD */ + ret += silk_VAD_Init( &psEnc->sCmn.sVAD ); + + return ret; +} diff --git a/components/opus/libopus/silk/inner_prod_aligned.c b/components/opus/libopus/silk/inner_prod_aligned.c new file mode 100644 index 0000000..257ae9e --- /dev/null +++ b/components/opus/libopus/silk/inner_prod_aligned.c @@ -0,0 +1,47 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "SigProc_FIX.h" + +opus_int32 silk_inner_prod_aligned_scale( + const opus_int16 *const inVec1, /* I input vector 1 */ + const opus_int16 *const inVec2, /* I input vector 2 */ + const opus_int scale, /* I number of bits to shift */ + const opus_int len /* I vector lengths */ +) +{ + opus_int i; + opus_int32 sum = 0; + for( i = 0; i < len; i++ ) { + sum = silk_ADD_RSHIFT32( sum, silk_SMULBB( inVec1[ i ], inVec2[ i ] ), scale ); + } + return sum; +} diff --git a/components/opus/libopus/silk/interpolate.c b/components/opus/libopus/silk/interpolate.c new file mode 100644 index 0000000..833c28e --- /dev/null +++ b/components/opus/libopus/silk/interpolate.c @@ -0,0 +1,51 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main.h" + +/* Interpolate two vectors */ +void silk_interpolate( + opus_int16 xi[ MAX_LPC_ORDER ], /* O interpolated vector */ + const opus_int16 x0[ MAX_LPC_ORDER ], /* I first vector */ + const opus_int16 x1[ MAX_LPC_ORDER ], /* I second vector */ + const opus_int ifact_Q2, /* I interp. factor, weight on 2nd vector */ + const opus_int d /* I number of parameters */ +) +{ + opus_int i; + + celt_assert( ifact_Q2 >= 0 ); + celt_assert( ifact_Q2 <= 4 ); + + for( i = 0; i < d; i++ ) { + xi[ i ] = (opus_int16)silk_ADD_RSHIFT( x0[ i ], silk_SMULBB( x1[ i ] - x0[ i ], ifact_Q2 ), 2 ); + } +} diff --git a/components/opus/libopus/silk/lin2log.c b/components/opus/libopus/silk/lin2log.c new file mode 100644 index 0000000..0d5155a --- /dev/null +++ b/components/opus/libopus/silk/lin2log.c @@ -0,0 +1,46 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "SigProc_FIX.h" +/* Approximation of 128 * log2() (very close inverse of silk_log2lin()) */ +/* Convert input to a log scale */ +opus_int32 silk_lin2log( + const opus_int32 inLin /* I input in linear scale */ +) +{ + opus_int32 lz, frac_Q7; + + silk_CLZ_FRAC( inLin, &lz, &frac_Q7 ); + + /* Piece-wise parabolic approximation */ + return silk_ADD_LSHIFT32( silk_SMLAWB( frac_Q7, silk_MUL( frac_Q7, 128 - frac_Q7 ), 179 ), 31 - lz, 7 ); +} + diff --git a/components/opus/libopus/silk/log2lin.c b/components/opus/libopus/silk/log2lin.c new file mode 100644 index 0000000..b7c48e4 --- /dev/null +++ b/components/opus/libopus/silk/log2lin.c @@ -0,0 +1,58 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "SigProc_FIX.h" + +/* Approximation of 2^() (very close inverse of silk_lin2log()) */ +/* Convert input to a linear scale */ +opus_int32 silk_log2lin( + const opus_int32 inLog_Q7 /* I input on log scale */ +) +{ + opus_int32 out, frac_Q7; + + if( inLog_Q7 < 0 ) { + return 0; + } else if ( inLog_Q7 >= 3967 ) { + return silk_int32_MAX; + } + + out = silk_LSHIFT( 1, silk_RSHIFT( inLog_Q7, 7 ) ); + frac_Q7 = inLog_Q7 & 0x7F; + if( inLog_Q7 < 2048 ) { + /* Piece-wise parabolic approximation */ + out = silk_ADD_RSHIFT32( out, silk_MUL( out, silk_SMLAWB( frac_Q7, silk_SMULBB( frac_Q7, 128 - frac_Q7 ), -174 ) ), 7 ); + } else { + /* Piece-wise parabolic approximation */ + out = silk_MLA( out, silk_RSHIFT( out, 7 ), silk_SMLAWB( frac_Q7, silk_SMULBB( frac_Q7, 128 - frac_Q7 ), -174 ) ); + } + return out; +} diff --git a/components/opus/libopus/silk/macros.h b/components/opus/libopus/silk/macros.h new file mode 100644 index 0000000..3c67b6e --- /dev/null +++ b/components/opus/libopus/silk/macros.h @@ -0,0 +1,151 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifndef SILK_MACROS_H +#define SILK_MACROS_H + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "opus_types.h" +#include "opus_defines.h" +#include "arch.h" + +/* This is an OPUS_INLINE header file for general platform. */ + +/* (a32 * (opus_int32)((opus_int16)(b32))) >> 16 output have to be 32bit int */ +#if OPUS_FAST_INT64 +#define silk_SMULWB(a32, b32) ((opus_int32)(((a32) * (opus_int64)((opus_int16)(b32))) >> 16)) +#else +#define silk_SMULWB(a32, b32) ((((a32) >> 16) * (opus_int32)((opus_int16)(b32))) + ((((a32) & 0x0000FFFF) * (opus_int32)((opus_int16)(b32))) >> 16)) +#endif + +/* a32 + (b32 * (opus_int32)((opus_int16)(c32))) >> 16 output have to be 32bit int */ +#if OPUS_FAST_INT64 +#define silk_SMLAWB(a32, b32, c32) ((opus_int32)((a32) + (((b32) * (opus_int64)((opus_int16)(c32))) >> 16))) +#else +#define silk_SMLAWB(a32, b32, c32) ((a32) + ((((b32) >> 16) * (opus_int32)((opus_int16)(c32))) + ((((b32) & 0x0000FFFF) * (opus_int32)((opus_int16)(c32))) >> 16))) +#endif + +/* (a32 * (b32 >> 16)) >> 16 */ +#if OPUS_FAST_INT64 +#define silk_SMULWT(a32, b32) ((opus_int32)(((a32) * (opus_int64)((b32) >> 16)) >> 16)) +#else +#define silk_SMULWT(a32, b32) (((a32) >> 16) * ((b32) >> 16) + ((((a32) & 0x0000FFFF) * ((b32) >> 16)) >> 16)) +#endif + +/* a32 + (b32 * (c32 >> 16)) >> 16 */ +#if OPUS_FAST_INT64 +#define silk_SMLAWT(a32, b32, c32) ((opus_int32)((a32) + (((b32) * ((opus_int64)(c32) >> 16)) >> 16))) +#else +#define silk_SMLAWT(a32, b32, c32) ((a32) + (((b32) >> 16) * ((c32) >> 16)) + ((((b32) & 0x0000FFFF) * ((c32) >> 16)) >> 16)) +#endif + +/* (opus_int32)((opus_int16)(a3))) * (opus_int32)((opus_int16)(b32)) output have to be 32bit int */ +#define silk_SMULBB(a32, b32) ((opus_int32)((opus_int16)(a32)) * (opus_int32)((opus_int16)(b32))) + +/* a32 + (opus_int32)((opus_int16)(b32)) * (opus_int32)((opus_int16)(c32)) output have to be 32bit int */ +#define silk_SMLABB(a32, b32, c32) ((a32) + ((opus_int32)((opus_int16)(b32))) * (opus_int32)((opus_int16)(c32))) + +/* (opus_int32)((opus_int16)(a32)) * (b32 >> 16) */ +#define silk_SMULBT(a32, b32) ((opus_int32)((opus_int16)(a32)) * ((b32) >> 16)) + +/* a32 + (opus_int32)((opus_int16)(b32)) * (c32 >> 16) */ +#define silk_SMLABT(a32, b32, c32) ((a32) + ((opus_int32)((opus_int16)(b32))) * ((c32) >> 16)) + +/* a64 + (b32 * c32) */ +#define silk_SMLAL(a64, b32, c32) (silk_ADD64((a64), ((opus_int64)(b32) * (opus_int64)(c32)))) + +/* (a32 * b32) >> 16 */ +#if OPUS_FAST_INT64 +#define silk_SMULWW(a32, b32) ((opus_int32)(((opus_int64)(a32) * (b32)) >> 16)) +#else +#define silk_SMULWW(a32, b32) silk_MLA(silk_SMULWB((a32), (b32)), (a32), silk_RSHIFT_ROUND((b32), 16)) +#endif + +/* a32 + ((b32 * c32) >> 16) */ +#if OPUS_FAST_INT64 +#define silk_SMLAWW(a32, b32, c32) ((opus_int32)((a32) + (((opus_int64)(b32) * (c32)) >> 16))) +#else +#define silk_SMLAWW(a32, b32, c32) silk_MLA(silk_SMLAWB((a32), (b32), (c32)), (b32), silk_RSHIFT_ROUND((c32), 16)) +#endif + +/* add/subtract with output saturated */ +#define silk_ADD_SAT32(a, b) ((((opus_uint32)(a) + (opus_uint32)(b)) & 0x80000000) == 0 ? \ + ((((a) & (b)) & 0x80000000) != 0 ? silk_int32_MIN : (a)+(b)) : \ + ((((a) | (b)) & 0x80000000) == 0 ? silk_int32_MAX : (a)+(b)) ) + +#define silk_SUB_SAT32(a, b) ((((opus_uint32)(a)-(opus_uint32)(b)) & 0x80000000) == 0 ? \ + (( (a) & ((b)^0x80000000) & 0x80000000) ? silk_int32_MIN : (a)-(b)) : \ + ((((a)^0x80000000) & (b) & 0x80000000) ? silk_int32_MAX : (a)-(b)) ) + +#if defined(MIPSr1_ASM) +#include "mips/macros_mipsr1.h" +#endif + +#include "ecintrin.h" +#ifndef OVERRIDE_silk_CLZ16 +static OPUS_INLINE opus_int32 silk_CLZ16(opus_int16 in16) +{ + return 32 - EC_ILOG(in16<<16|0x8000); +} +#endif + +#ifndef OVERRIDE_silk_CLZ32 +static OPUS_INLINE opus_int32 silk_CLZ32(opus_int32 in32) +{ + return in32 ? 32 - EC_ILOG(in32) : 32; +} +#endif + +/* Row based */ +#define matrix_ptr(Matrix_base_adr, row, column, N) \ + (*((Matrix_base_adr) + ((row)*(N)+(column)))) +#define matrix_adr(Matrix_base_adr, row, column, N) \ + ((Matrix_base_adr) + ((row)*(N)+(column))) + +/* Column based */ +#ifndef matrix_c_ptr +# define matrix_c_ptr(Matrix_base_adr, row, column, M) \ + (*((Matrix_base_adr) + ((row)+(M)*(column)))) +#endif + +#ifdef OPUS_ARM_INLINE_ASM +#include "arm/macros_armv4.h" +#endif + +#ifdef OPUS_ARM_INLINE_EDSP +#include "arm/macros_armv5e.h" +#endif + +#ifdef OPUS_ARM_PRESUME_AARCH64_NEON_INTR +#include "arm/macros_arm64.h" +#endif + +#endif /* SILK_MACROS_H */ + diff --git a/components/opus/libopus/silk/main.h b/components/opus/libopus/silk/main.h new file mode 100644 index 0000000..1a33eed --- /dev/null +++ b/components/opus/libopus/silk/main.h @@ -0,0 +1,476 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifndef SILK_MAIN_H +#define SILK_MAIN_H + +#include "SigProc_FIX.h" +#include "define.h" +#include "structs.h" +#include "tables.h" +#include "PLC.h" +#include "control.h" +#include "debug.h" +#include "entenc.h" +#include "entdec.h" + +#if defined(OPUS_X86_MAY_HAVE_SSE4_1) +#include "x86/main_sse.h" +#endif + +#if (defined(OPUS_ARM_ASM) || defined(OPUS_ARM_MAY_HAVE_NEON_INTR)) +#include "arm/NSQ_del_dec_arm.h" +#endif + +/* Convert Left/Right stereo signal to adaptive Mid/Side representation */ +void silk_stereo_LR_to_MS( + stereo_enc_state *state, /* I/O State */ + opus_int16 x1[], /* I/O Left input signal, becomes mid signal */ + opus_int16 x2[], /* I/O Right input signal, becomes side signal */ + opus_int8 ix[ 2 ][ 3 ], /* O Quantization indices */ + opus_int8 *mid_only_flag, /* O Flag: only mid signal coded */ + opus_int32 mid_side_rates_bps[], /* O Bitrates for mid and side signals */ + opus_int32 total_rate_bps, /* I Total bitrate */ + opus_int prev_speech_act_Q8, /* I Speech activity level in previous frame */ + opus_int toMono, /* I Last frame before a stereo->mono transition */ + opus_int fs_kHz, /* I Sample rate (kHz) */ + opus_int frame_length /* I Number of samples */ +); + +/* Convert adaptive Mid/Side representation to Left/Right stereo signal */ +void silk_stereo_MS_to_LR( + stereo_dec_state *state, /* I/O State */ + opus_int16 x1[], /* I/O Left input signal, becomes mid signal */ + opus_int16 x2[], /* I/O Right input signal, becomes side signal */ + const opus_int32 pred_Q13[], /* I Predictors */ + opus_int fs_kHz, /* I Samples rate (kHz) */ + opus_int frame_length /* I Number of samples */ +); + +/* Find least-squares prediction gain for one signal based on another and quantize it */ +opus_int32 silk_stereo_find_predictor( /* O Returns predictor in Q13 */ + opus_int32 *ratio_Q14, /* O Ratio of residual and mid energies */ + const opus_int16 x[], /* I Basis signal */ + const opus_int16 y[], /* I Target signal */ + opus_int32 mid_res_amp_Q0[], /* I/O Smoothed mid, residual norms */ + opus_int length, /* I Number of samples */ + opus_int smooth_coef_Q16 /* I Smoothing coefficient */ +); + +/* Quantize mid/side predictors */ +void silk_stereo_quant_pred( + opus_int32 pred_Q13[], /* I/O Predictors (out: quantized) */ + opus_int8 ix[ 2 ][ 3 ] /* O Quantization indices */ +); + +/* Entropy code the mid/side quantization indices */ +void silk_stereo_encode_pred( + ec_enc *psRangeEnc, /* I/O Compressor data structure */ + opus_int8 ix[ 2 ][ 3 ] /* I Quantization indices */ +); + +/* Entropy code the mid-only flag */ +void silk_stereo_encode_mid_only( + ec_enc *psRangeEnc, /* I/O Compressor data structure */ + opus_int8 mid_only_flag +); + +/* Decode mid/side predictors */ +void silk_stereo_decode_pred( + ec_dec *psRangeDec, /* I/O Compressor data structure */ + opus_int32 pred_Q13[] /* O Predictors */ +); + +/* Decode mid-only flag */ +void silk_stereo_decode_mid_only( + ec_dec *psRangeDec, /* I/O Compressor data structure */ + opus_int *decode_only_mid /* O Flag that only mid channel has been coded */ +); + +/* Encodes signs of excitation */ +void silk_encode_signs( + ec_enc *psRangeEnc, /* I/O Compressor data structure */ + const opus_int8 pulses[], /* I pulse signal */ + opus_int length, /* I length of input */ + const opus_int signalType, /* I Signal type */ + const opus_int quantOffsetType, /* I Quantization offset type */ + const opus_int sum_pulses[ MAX_NB_SHELL_BLOCKS ] /* I Sum of absolute pulses per block */ +); + +/* Decodes signs of excitation */ +void silk_decode_signs( + ec_dec *psRangeDec, /* I/O Compressor data structure */ + opus_int16 pulses[], /* I/O pulse signal */ + opus_int length, /* I length of input */ + const opus_int signalType, /* I Signal type */ + const opus_int quantOffsetType, /* I Quantization offset type */ + const opus_int sum_pulses[ MAX_NB_SHELL_BLOCKS ] /* I Sum of absolute pulses per block */ +); + +/* Check encoder control struct */ +opus_int check_control_input( + silk_EncControlStruct *encControl /* I Control structure */ +); + +/* Control internal sampling rate */ +opus_int silk_control_audio_bandwidth( + silk_encoder_state *psEncC, /* I/O Pointer to Silk encoder state */ + silk_EncControlStruct *encControl /* I Control structure */ +); + +/* Control SNR of redidual quantizer */ +opus_int silk_control_SNR( + silk_encoder_state *psEncC, /* I/O Pointer to Silk encoder state */ + opus_int32 TargetRate_bps /* I Target max bitrate (bps) */ +); + +/***************/ +/* Shell coder */ +/***************/ + +/* Encode quantization indices of excitation */ +void silk_encode_pulses( + ec_enc *psRangeEnc, /* I/O compressor data structure */ + const opus_int signalType, /* I Signal type */ + const opus_int quantOffsetType, /* I quantOffsetType */ + opus_int8 pulses[], /* I quantization indices */ + const opus_int frame_length /* I Frame length */ +); + +/* Shell encoder, operates on one shell code frame of 16 pulses */ +void silk_shell_encoder( + ec_enc *psRangeEnc, /* I/O compressor data structure */ + const opus_int *pulses0 /* I data: nonnegative pulse amplitudes */ +); + +/* Shell decoder, operates on one shell code frame of 16 pulses */ +void silk_shell_decoder( + opus_int16 *pulses0, /* O data: nonnegative pulse amplitudes */ + ec_dec *psRangeDec, /* I/O Compressor data structure */ + const opus_int pulses4 /* I number of pulses per pulse-subframe */ +); + +/* Gain scalar quantization with hysteresis, uniform on log scale */ +void silk_gains_quant( + opus_int8 ind[ MAX_NB_SUBFR ], /* O gain indices */ + opus_int32 gain_Q16[ MAX_NB_SUBFR ], /* I/O gains (quantized out) */ + opus_int8 *prev_ind, /* I/O last index in previous frame */ + const opus_int conditional, /* I first gain is delta coded if 1 */ + const opus_int nb_subfr /* I number of subframes */ +); + +/* Gains scalar dequantization, uniform on log scale */ +void silk_gains_dequant( + opus_int32 gain_Q16[ MAX_NB_SUBFR ], /* O quantized gains */ + const opus_int8 ind[ MAX_NB_SUBFR ], /* I gain indices */ + opus_int8 *prev_ind, /* I/O last index in previous frame */ + const opus_int conditional, /* I first gain is delta coded if 1 */ + const opus_int nb_subfr /* I number of subframes */ +); + +/* Compute unique identifier of gain indices vector */ +opus_int32 silk_gains_ID( /* O returns unique identifier of gains */ + const opus_int8 ind[ MAX_NB_SUBFR ], /* I gain indices */ + const opus_int nb_subfr /* I number of subframes */ +); + +/* Interpolate two vectors */ +void silk_interpolate( + opus_int16 xi[ MAX_LPC_ORDER ], /* O interpolated vector */ + const opus_int16 x0[ MAX_LPC_ORDER ], /* I first vector */ + const opus_int16 x1[ MAX_LPC_ORDER ], /* I second vector */ + const opus_int ifact_Q2, /* I interp. factor, weight on 2nd vector */ + const opus_int d /* I number of parameters */ +); + +/* LTP tap quantizer */ +void silk_quant_LTP_gains( + opus_int16 B_Q14[ MAX_NB_SUBFR * LTP_ORDER ], /* O Quantized LTP gains */ + opus_int8 cbk_index[ MAX_NB_SUBFR ], /* O Codebook Index */ + opus_int8 *periodicity_index, /* O Periodicity Index */ + opus_int32 *sum_gain_dB_Q7, /* I/O Cumulative max prediction gain */ + opus_int *pred_gain_dB_Q7, /* O LTP prediction gain */ + const opus_int32 XX_Q17[ MAX_NB_SUBFR*LTP_ORDER*LTP_ORDER ], /* I Correlation matrix in Q18 */ + const opus_int32 xX_Q17[ MAX_NB_SUBFR*LTP_ORDER ], /* I Correlation vector in Q18 */ + const opus_int subfr_len, /* I Number of samples per subframe */ + const opus_int nb_subfr, /* I Number of subframes */ + int arch /* I Run-time architecture */ +); + +/* Entropy constrained matrix-weighted VQ, for a single input data vector */ +void silk_VQ_WMat_EC_c( + opus_int8 *ind, /* O index of best codebook vector */ + opus_int32 *res_nrg_Q15, /* O best residual energy */ + opus_int32 *rate_dist_Q8, /* O best total bitrate */ + opus_int *gain_Q7, /* O sum of absolute LTP coefficients */ + const opus_int32 *XX_Q17, /* I correlation matrix */ + const opus_int32 *xX_Q17, /* I correlation vector */ + const opus_int8 *cb_Q7, /* I codebook */ + const opus_uint8 *cb_gain_Q7, /* I codebook effective gain */ + const opus_uint8 *cl_Q5, /* I code length for each codebook vector */ + const opus_int subfr_len, /* I number of samples per subframe */ + const opus_int32 max_gain_Q7, /* I maximum sum of absolute LTP coefficients */ + const opus_int L /* I number of vectors in codebook */ +); + +#if !defined(OVERRIDE_silk_VQ_WMat_EC) +#define silk_VQ_WMat_EC(ind, res_nrg_Q15, rate_dist_Q8, gain_Q7, XX_Q17, xX_Q17, cb_Q7, cb_gain_Q7, cl_Q5, subfr_len, max_gain_Q7, L, arch) \ + ((void)(arch),silk_VQ_WMat_EC_c(ind, res_nrg_Q15, rate_dist_Q8, gain_Q7, XX_Q17, xX_Q17, cb_Q7, cb_gain_Q7, cl_Q5, subfr_len, max_gain_Q7, L)) +#endif + +/************************************/ +/* Noise shaping quantization (NSQ) */ +/************************************/ + +void silk_NSQ_c( + const silk_encoder_state *psEncC, /* I Encoder State */ + silk_nsq_state *NSQ, /* I/O NSQ state */ + SideInfoIndices *psIndices, /* I/O Quantization Indices */ + const opus_int16 x16[], /* I Input */ + opus_int8 pulses[], /* O Quantized pulse signal */ + const opus_int16 PredCoef_Q12[ 2 * MAX_LPC_ORDER ], /* I Short term prediction coefs */ + const opus_int16 LTPCoef_Q14[ LTP_ORDER * MAX_NB_SUBFR ], /* I Long term prediction coefs */ + const opus_int16 AR_Q13[ MAX_NB_SUBFR * MAX_SHAPE_LPC_ORDER ], /* I Noise shaping coefs */ + const opus_int HarmShapeGain_Q14[ MAX_NB_SUBFR ], /* I Long term shaping coefs */ + const opus_int Tilt_Q14[ MAX_NB_SUBFR ], /* I Spectral tilt */ + const opus_int32 LF_shp_Q14[ MAX_NB_SUBFR ], /* I Low frequency shaping coefs */ + const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I Quantization step sizes */ + const opus_int pitchL[ MAX_NB_SUBFR ], /* I Pitch lags */ + const opus_int Lambda_Q10, /* I Rate/distortion tradeoff */ + const opus_int LTP_scale_Q14 /* I LTP state scaling */ +); + +#if !defined(OVERRIDE_silk_NSQ) +#define silk_NSQ(psEncC, NSQ, psIndices, x16, pulses, PredCoef_Q12, LTPCoef_Q14, AR_Q13, \ + HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14, arch) \ + ((void)(arch),silk_NSQ_c(psEncC, NSQ, psIndices, x16, pulses, PredCoef_Q12, LTPCoef_Q14, AR_Q13, \ + HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14)) +#endif + +/* Noise shaping using delayed decision */ +void silk_NSQ_del_dec_c( + const silk_encoder_state *psEncC, /* I Encoder State */ + silk_nsq_state *NSQ, /* I/O NSQ state */ + SideInfoIndices *psIndices, /* I/O Quantization Indices */ + const opus_int16 x16[], /* I Input */ + opus_int8 pulses[], /* O Quantized pulse signal */ + const opus_int16 PredCoef_Q12[ 2 * MAX_LPC_ORDER ], /* I Short term prediction coefs */ + const opus_int16 LTPCoef_Q14[ LTP_ORDER * MAX_NB_SUBFR ], /* I Long term prediction coefs */ + const opus_int16 AR_Q13[ MAX_NB_SUBFR * MAX_SHAPE_LPC_ORDER ], /* I Noise shaping coefs */ + const opus_int HarmShapeGain_Q14[ MAX_NB_SUBFR ], /* I Long term shaping coefs */ + const opus_int Tilt_Q14[ MAX_NB_SUBFR ], /* I Spectral tilt */ + const opus_int32 LF_shp_Q14[ MAX_NB_SUBFR ], /* I Low frequency shaping coefs */ + const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I Quantization step sizes */ + const opus_int pitchL[ MAX_NB_SUBFR ], /* I Pitch lags */ + const opus_int Lambda_Q10, /* I Rate/distortion tradeoff */ + const opus_int LTP_scale_Q14 /* I LTP state scaling */ +); + +#if !defined(OVERRIDE_silk_NSQ_del_dec) +#define silk_NSQ_del_dec(psEncC, NSQ, psIndices, x16, pulses, PredCoef_Q12, LTPCoef_Q14, AR_Q13, \ + HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14, arch) \ + ((void)(arch),silk_NSQ_del_dec_c(psEncC, NSQ, psIndices, x16, pulses, PredCoef_Q12, LTPCoef_Q14, AR_Q13, \ + HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14)) +#endif + +/************/ +/* Silk VAD */ +/************/ +/* Initialize the Silk VAD */ +opus_int silk_VAD_Init( /* O Return value, 0 if success */ + silk_VAD_state *psSilk_VAD /* I/O Pointer to Silk VAD state */ +); + +/* Get speech activity level in Q8 */ +opus_int silk_VAD_GetSA_Q8_c( /* O Return value, 0 if success */ + silk_encoder_state *psEncC, /* I/O Encoder state */ + const opus_int16 pIn[] /* I PCM input */ +); + +#if !defined(OVERRIDE_silk_VAD_GetSA_Q8) +#define silk_VAD_GetSA_Q8(psEnC, pIn, arch) ((void)(arch),silk_VAD_GetSA_Q8_c(psEnC, pIn)) +#endif + +/* Low-pass filter with variable cutoff frequency based on */ +/* piece-wise linear interpolation between elliptic filters */ +/* Start by setting transition_frame_no = 1; */ +void silk_LP_variable_cutoff( + silk_LP_state *psLP, /* I/O LP filter state */ + opus_int16 *frame, /* I/O Low-pass filtered output signal */ + const opus_int frame_length /* I Frame length */ +); + +/******************/ +/* NLSF Quantizer */ +/******************/ +/* Limit, stabilize, convert and quantize NLSFs */ +void silk_process_NLSFs( + silk_encoder_state *psEncC, /* I/O Encoder state */ + opus_int16 PredCoef_Q12[ 2 ][ MAX_LPC_ORDER ], /* O Prediction coefficients */ + opus_int16 pNLSF_Q15[ MAX_LPC_ORDER ], /* I/O Normalized LSFs (quant out) (0 - (2^15-1)) */ + const opus_int16 prev_NLSFq_Q15[ MAX_LPC_ORDER ] /* I Previous Normalized LSFs (0 - (2^15-1)) */ +); + +opus_int32 silk_NLSF_encode( /* O Returns RD value in Q25 */ + opus_int8 *NLSFIndices, /* I Codebook path vector [ LPC_ORDER + 1 ] */ + opus_int16 *pNLSF_Q15, /* I/O Quantized NLSF vector [ LPC_ORDER ] */ + const silk_NLSF_CB_struct *psNLSF_CB, /* I Codebook object */ + const opus_int16 *pW_QW, /* I NLSF weight vector [ LPC_ORDER ] */ + const opus_int NLSF_mu_Q20, /* I Rate weight for the RD optimization */ + const opus_int nSurvivors, /* I Max survivors after first stage */ + const opus_int signalType /* I Signal type: 0/1/2 */ +); + +/* Compute quantization errors for an LPC_order element input vector for a VQ codebook */ +void silk_NLSF_VQ( + opus_int32 err_Q26[], /* O Quantization errors [K] */ + const opus_int16 in_Q15[], /* I Input vectors to be quantized [LPC_order] */ + const opus_uint8 pCB_Q8[], /* I Codebook vectors [K*LPC_order] */ + const opus_int16 pWght_Q9[], /* I Codebook weights [K*LPC_order] */ + const opus_int K, /* I Number of codebook vectors */ + const opus_int LPC_order /* I Number of LPCs */ +); + +/* Delayed-decision quantizer for NLSF residuals */ +opus_int32 silk_NLSF_del_dec_quant( /* O Returns RD value in Q25 */ + opus_int8 indices[], /* O Quantization indices [ order ] */ + const opus_int16 x_Q10[], /* I Input [ order ] */ + const opus_int16 w_Q5[], /* I Weights [ order ] */ + const opus_uint8 pred_coef_Q8[], /* I Backward predictor coefs [ order ] */ + const opus_int16 ec_ix[], /* I Indices to entropy coding tables [ order ] */ + const opus_uint8 ec_rates_Q5[], /* I Rates [] */ + const opus_int quant_step_size_Q16, /* I Quantization step size */ + const opus_int16 inv_quant_step_size_Q6, /* I Inverse quantization step size */ + const opus_int32 mu_Q20, /* I R/D tradeoff */ + const opus_int16 order /* I Number of input values */ +); + +/* Unpack predictor values and indices for entropy coding tables */ +void silk_NLSF_unpack( + opus_int16 ec_ix[], /* O Indices to entropy tables [ LPC_ORDER ] */ + opus_uint8 pred_Q8[], /* O LSF predictor [ LPC_ORDER ] */ + const silk_NLSF_CB_struct *psNLSF_CB, /* I Codebook object */ + const opus_int CB1_index /* I Index of vector in first LSF codebook */ +); + +/***********************/ +/* NLSF vector decoder */ +/***********************/ +void silk_NLSF_decode( + opus_int16 *pNLSF_Q15, /* O Quantized NLSF vector [ LPC_ORDER ] */ + opus_int8 *NLSFIndices, /* I Codebook path vector [ LPC_ORDER + 1 ] */ + const silk_NLSF_CB_struct *psNLSF_CB /* I Codebook object */ +); + +/****************************************************/ +/* Decoder Functions */ +/****************************************************/ +opus_int silk_init_decoder( + silk_decoder_state *psDec /* I/O Decoder state pointer */ +); + +/* Set decoder sampling rate */ +opus_int silk_decoder_set_fs( + silk_decoder_state *psDec, /* I/O Decoder state pointer */ + opus_int fs_kHz, /* I Sampling frequency (kHz) */ + opus_int32 fs_API_Hz /* I API Sampling frequency (Hz) */ +); + +/****************/ +/* Decode frame */ +/****************/ +opus_int silk_decode_frame( + silk_decoder_state *psDec, /* I/O Pointer to Silk decoder state */ + ec_dec *psRangeDec, /* I/O Compressor data structure */ + opus_int16 pOut[], /* O Pointer to output speech frame */ + opus_int32 *pN, /* O Pointer to size of output frame */ + opus_int lostFlag, /* I 0: no loss, 1 loss, 2 decode fec */ + opus_int condCoding, /* I The type of conditional coding to use */ + int arch /* I Run-time architecture */ +); + +/* Decode indices from bitstream */ +void silk_decode_indices( + silk_decoder_state *psDec, /* I/O State */ + ec_dec *psRangeDec, /* I/O Compressor data structure */ + opus_int FrameIndex, /* I Frame number */ + opus_int decode_LBRR, /* I Flag indicating LBRR data is being decoded */ + opus_int condCoding /* I The type of conditional coding to use */ +); + +/* Decode parameters from payload */ +void silk_decode_parameters( + silk_decoder_state *psDec, /* I/O State */ + silk_decoder_control *psDecCtrl, /* I/O Decoder control */ + opus_int condCoding /* I The type of conditional coding to use */ +); + +/* Core decoder. Performs inverse NSQ operation LTP + LPC */ +void silk_decode_core( + silk_decoder_state *psDec, /* I/O Decoder state */ + silk_decoder_control *psDecCtrl, /* I Decoder control */ + opus_int16 xq[], /* O Decoded speech */ + const opus_int16 pulses[ MAX_FRAME_LENGTH ], /* I Pulse signal */ + int arch /* I Run-time architecture */ +); + +/* Decode quantization indices of excitation (Shell coding) */ +void silk_decode_pulses( + ec_dec *psRangeDec, /* I/O Compressor data structure */ + opus_int16 pulses[], /* O Excitation signal */ + const opus_int signalType, /* I Sigtype */ + const opus_int quantOffsetType, /* I quantOffsetType */ + const opus_int frame_length /* I Frame length */ +); + +/******************/ +/* CNG */ +/******************/ + +/* Reset CNG */ +void silk_CNG_Reset( + silk_decoder_state *psDec /* I/O Decoder state */ +); + +/* Updates CNG estimate, and applies the CNG when packet was lost */ +void silk_CNG( + silk_decoder_state *psDec, /* I/O Decoder state */ + silk_decoder_control *psDecCtrl, /* I/O Decoder control */ + opus_int16 frame[], /* I/O Signal */ + opus_int length /* I Length of residual */ +); + +/* Encoding of various parameters */ +void silk_encode_indices( + silk_encoder_state *psEncC, /* I/O Encoder state */ + ec_enc *psRangeEnc, /* I/O Compressor data structure */ + opus_int FrameIndex, /* I Frame number */ + opus_int encode_LBRR, /* I Flag indicating LBRR data is being encoded */ + opus_int condCoding /* I The type of conditional coding to use */ +); + +#endif diff --git a/components/opus/libopus/silk/mips/NSQ_del_dec_mipsr1.h b/components/opus/libopus/silk/mips/NSQ_del_dec_mipsr1.h new file mode 100644 index 0000000..cd70713 --- /dev/null +++ b/components/opus/libopus/silk/mips/NSQ_del_dec_mipsr1.h @@ -0,0 +1,410 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifndef __NSQ_DEL_DEC_MIPSR1_H__ +#define __NSQ_DEL_DEC_MIPSR1_H__ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main.h" +#include "stack_alloc.h" + +#define OVERRIDE_silk_noise_shape_quantizer_del_dec +static inline void silk_noise_shape_quantizer_del_dec( + silk_nsq_state *NSQ, /* I/O NSQ state */ + NSQ_del_dec_struct psDelDec[], /* I/O Delayed decision states */ + opus_int signalType, /* I Signal type */ + const opus_int32 x_Q10[], /* I */ + opus_int8 pulses[], /* O */ + opus_int16 xq[], /* O */ + opus_int32 sLTP_Q15[], /* I/O LTP filter state */ + opus_int32 delayedGain_Q10[], /* I/O Gain delay buffer */ + const opus_int16 a_Q12[], /* I Short term prediction coefs */ + const opus_int16 b_Q14[], /* I Long term prediction coefs */ + const opus_int16 AR_shp_Q13[], /* I Noise shaping coefs */ + opus_int lag, /* I Pitch lag */ + opus_int32 HarmShapeFIRPacked_Q14, /* I */ + opus_int Tilt_Q14, /* I Spectral tilt */ + opus_int32 LF_shp_Q14, /* I */ + opus_int32 Gain_Q16, /* I */ + opus_int Lambda_Q10, /* I */ + opus_int offset_Q10, /* I */ + opus_int length, /* I Input length */ + opus_int subfr, /* I Subframe number */ + opus_int shapingLPCOrder, /* I Shaping LPC filter order */ + opus_int predictLPCOrder, /* I Prediction filter order */ + opus_int warping_Q16, /* I */ + opus_int nStatesDelayedDecision, /* I Number of states in decision tree */ + opus_int *smpl_buf_idx, /* I/O Index to newest samples in buffers */ + opus_int decisionDelay, /* I */ + int arch /* I */ +) +{ + opus_int i, j, k, Winner_ind, RDmin_ind, RDmax_ind, last_smple_idx; + opus_int32 Winner_rand_state; + opus_int32 LTP_pred_Q14, LPC_pred_Q14, n_AR_Q14, n_LTP_Q14; + opus_int32 n_LF_Q14, r_Q10, rr_Q10, rd1_Q10, rd2_Q10, RDmin_Q10, RDmax_Q10; + opus_int32 q1_Q0, q1_Q10, q2_Q10, exc_Q14, LPC_exc_Q14, xq_Q14, Gain_Q10; + opus_int32 tmp1, tmp2, sLF_AR_shp_Q14; + opus_int32 *pred_lag_ptr, *shp_lag_ptr, *psLPC_Q14; + NSQ_sample_struct psSampleState[ MAX_DEL_DEC_STATES ][ 2 ]; + NSQ_del_dec_struct *psDD; + NSQ_sample_struct *psSS; + opus_int16 b_Q14_0, b_Q14_1, b_Q14_2, b_Q14_3, b_Q14_4; + opus_int16 a_Q12_0, a_Q12_1, a_Q12_2, a_Q12_3, a_Q12_4, a_Q12_5, a_Q12_6; + opus_int16 a_Q12_7, a_Q12_8, a_Q12_9, a_Q12_10, a_Q12_11, a_Q12_12, a_Q12_13; + opus_int16 a_Q12_14, a_Q12_15; + + opus_int32 cur, prev, next; + + /*Unused.*/ + (void)arch; + + //Intialize b_Q14 variables + b_Q14_0 = b_Q14[ 0 ]; + b_Q14_1 = b_Q14[ 1 ]; + b_Q14_2 = b_Q14[ 2 ]; + b_Q14_3 = b_Q14[ 3 ]; + b_Q14_4 = b_Q14[ 4 ]; + + //Intialize a_Q12 variables + a_Q12_0 = a_Q12[0]; + a_Q12_1 = a_Q12[1]; + a_Q12_2 = a_Q12[2]; + a_Q12_3 = a_Q12[3]; + a_Q12_4 = a_Q12[4]; + a_Q12_5 = a_Q12[5]; + a_Q12_6 = a_Q12[6]; + a_Q12_7 = a_Q12[7]; + a_Q12_8 = a_Q12[8]; + a_Q12_9 = a_Q12[9]; + a_Q12_10 = a_Q12[10]; + a_Q12_11 = a_Q12[11]; + a_Q12_12 = a_Q12[12]; + a_Q12_13 = a_Q12[13]; + a_Q12_14 = a_Q12[14]; + a_Q12_15 = a_Q12[15]; + + long long temp64; + + silk_assert( nStatesDelayedDecision > 0 ); + + shp_lag_ptr = &NSQ->sLTP_shp_Q14[ NSQ->sLTP_shp_buf_idx - lag + HARM_SHAPE_FIR_TAPS / 2 ]; + pred_lag_ptr = &sLTP_Q15[ NSQ->sLTP_buf_idx - lag + LTP_ORDER / 2 ]; + Gain_Q10 = silk_RSHIFT( Gain_Q16, 6 ); + + for( i = 0; i < length; i++ ) { + /* Perform common calculations used in all states */ + + /* Long-term prediction */ + if( signalType == TYPE_VOICED ) { + /* Unrolled loop */ + /* Avoids introducing a bias because silk_SMLAWB() always rounds to -inf */ + temp64 = __builtin_mips_mult(pred_lag_ptr[ 0 ], b_Q14_0 ); + temp64 = __builtin_mips_madd( temp64, pred_lag_ptr[ -1 ], b_Q14_1 ); + temp64 = __builtin_mips_madd( temp64, pred_lag_ptr[ -2 ], b_Q14_2 ); + temp64 = __builtin_mips_madd( temp64, pred_lag_ptr[ -3 ], b_Q14_3 ); + temp64 = __builtin_mips_madd( temp64, pred_lag_ptr[ -4 ], b_Q14_4 ); + temp64 += 32768; + LTP_pred_Q14 = __builtin_mips_extr_w(temp64, 16); + LTP_pred_Q14 = silk_LSHIFT( LTP_pred_Q14, 1 ); /* Q13 -> Q14 */ + pred_lag_ptr++; + } else { + LTP_pred_Q14 = 0; + } + + /* Long-term shaping */ + if( lag > 0 ) { + /* Symmetric, packed FIR coefficients */ + n_LTP_Q14 = silk_SMULWB( silk_ADD32( shp_lag_ptr[ 0 ], shp_lag_ptr[ -2 ] ), HarmShapeFIRPacked_Q14 ); + n_LTP_Q14 = silk_SMLAWT( n_LTP_Q14, shp_lag_ptr[ -1 ], HarmShapeFIRPacked_Q14 ); + n_LTP_Q14 = silk_SUB_LSHIFT32( LTP_pred_Q14, n_LTP_Q14, 2 ); /* Q12 -> Q14 */ + shp_lag_ptr++; + } else { + n_LTP_Q14 = 0; + } + + for( k = 0; k < nStatesDelayedDecision; k++ ) { + /* Delayed decision state */ + psDD = &psDelDec[ k ]; + + /* Sample state */ + psSS = psSampleState[ k ]; + + /* Generate dither */ + psDD->Seed = silk_RAND( psDD->Seed ); + + /* Pointer used in short term prediction and shaping */ + psLPC_Q14 = &psDD->sLPC_Q14[ NSQ_LPC_BUF_LENGTH - 1 + i ]; + /* Short-term prediction */ + silk_assert( predictLPCOrder == 10 || predictLPCOrder == 16 ); + temp64 = __builtin_mips_mult(psLPC_Q14[ 0 ], a_Q12_0 ); + temp64 = __builtin_mips_madd( temp64, psLPC_Q14[ -1 ], a_Q12_1 ); + temp64 = __builtin_mips_madd( temp64, psLPC_Q14[ -2 ], a_Q12_2 ); + temp64 = __builtin_mips_madd( temp64, psLPC_Q14[ -3 ], a_Q12_3 ); + temp64 = __builtin_mips_madd( temp64, psLPC_Q14[ -4 ], a_Q12_4 ); + temp64 = __builtin_mips_madd( temp64, psLPC_Q14[ -5 ], a_Q12_5 ); + temp64 = __builtin_mips_madd( temp64, psLPC_Q14[ -6 ], a_Q12_6 ); + temp64 = __builtin_mips_madd( temp64, psLPC_Q14[ -7 ], a_Q12_7 ); + temp64 = __builtin_mips_madd( temp64, psLPC_Q14[ -8 ], a_Q12_8 ); + temp64 = __builtin_mips_madd( temp64, psLPC_Q14[ -9 ], a_Q12_9 ); + if( predictLPCOrder == 16 ) { + temp64 = __builtin_mips_madd( temp64, psLPC_Q14[ -10 ], a_Q12_10 ); + temp64 = __builtin_mips_madd( temp64, psLPC_Q14[ -11 ], a_Q12_11 ); + temp64 = __builtin_mips_madd( temp64, psLPC_Q14[ -12 ], a_Q12_12 ); + temp64 = __builtin_mips_madd( temp64, psLPC_Q14[ -13 ], a_Q12_13 ); + temp64 = __builtin_mips_madd( temp64, psLPC_Q14[ -14 ], a_Q12_14 ); + temp64 = __builtin_mips_madd( temp64, psLPC_Q14[ -15 ], a_Q12_15 ); + } + temp64 += 32768; + LPC_pred_Q14 = __builtin_mips_extr_w(temp64, 16); + + LPC_pred_Q14 = silk_LSHIFT( LPC_pred_Q14, 4 ); /* Q10 -> Q14 */ + + /* Noise shape feedback */ + silk_assert( ( shapingLPCOrder & 1 ) == 0 ); /* check that order is even */ + /* Output of lowpass section */ + tmp2 = silk_SMLAWB( psLPC_Q14[ 0 ], psDD->sAR2_Q14[ 0 ], warping_Q16 ); + /* Output of allpass section */ + tmp1 = silk_SMLAWB( psDD->sAR2_Q14[ 0 ], psDD->sAR2_Q14[ 1 ] - tmp2, warping_Q16 ); + psDD->sAR2_Q14[ 0 ] = tmp2; + + temp64 = __builtin_mips_mult(tmp2, AR_shp_Q13[ 0 ] ); + + prev = psDD->sAR2_Q14[ 1 ]; + + /* Loop over allpass sections */ + for( j = 2; j < shapingLPCOrder; j += 2 ) { + cur = psDD->sAR2_Q14[ j ]; + next = psDD->sAR2_Q14[ j+1 ]; + /* Output of allpass section */ + tmp2 = silk_SMLAWB( prev, cur - tmp1, warping_Q16 ); + psDD->sAR2_Q14[ j - 1 ] = tmp1; + temp64 = __builtin_mips_madd( temp64, tmp1, AR_shp_Q13[ j - 1 ] ); + temp64 = __builtin_mips_madd( temp64, tmp2, AR_shp_Q13[ j ] ); + /* Output of allpass section */ + tmp1 = silk_SMLAWB( cur, next - tmp2, warping_Q16 ); + psDD->sAR2_Q14[ j + 0 ] = tmp2; + prev = next; + } + psDD->sAR2_Q14[ shapingLPCOrder - 1 ] = tmp1; + temp64 = __builtin_mips_madd( temp64, tmp1, AR_shp_Q13[ shapingLPCOrder - 1 ] ); + temp64 += 32768; + n_AR_Q14 = __builtin_mips_extr_w(temp64, 16); + n_AR_Q14 = silk_LSHIFT( n_AR_Q14, 1 ); /* Q11 -> Q12 */ + n_AR_Q14 = silk_SMLAWB( n_AR_Q14, psDD->LF_AR_Q14, Tilt_Q14 ); /* Q12 */ + n_AR_Q14 = silk_LSHIFT( n_AR_Q14, 2 ); /* Q12 -> Q14 */ + + n_LF_Q14 = silk_SMULWB( psDD->Shape_Q14[ *smpl_buf_idx ], LF_shp_Q14 ); /* Q12 */ + n_LF_Q14 = silk_SMLAWT( n_LF_Q14, psDD->LF_AR_Q14, LF_shp_Q14 ); /* Q12 */ + n_LF_Q14 = silk_LSHIFT( n_LF_Q14, 2 ); /* Q12 -> Q14 */ + + /* Input minus prediction plus noise feedback */ + /* r = x[ i ] - LTP_pred - LPC_pred + n_AR + n_Tilt + n_LF + n_LTP */ + tmp1 = silk_ADD32( n_AR_Q14, n_LF_Q14 ); /* Q14 */ + tmp2 = silk_ADD32( n_LTP_Q14, LPC_pred_Q14 ); /* Q13 */ + tmp1 = silk_SUB32( tmp2, tmp1 ); /* Q13 */ + tmp1 = silk_RSHIFT_ROUND( tmp1, 4 ); /* Q10 */ + + r_Q10 = silk_SUB32( x_Q10[ i ], tmp1 ); /* residual error Q10 */ + + /* Flip sign depending on dither */ + if ( psDD->Seed < 0 ) { + r_Q10 = -r_Q10; + } + r_Q10 = silk_LIMIT_32( r_Q10, -(31 << 10), 30 << 10 ); + + /* Find two quantization level candidates and measure their rate-distortion */ + q1_Q10 = silk_SUB32( r_Q10, offset_Q10 ); + q1_Q0 = silk_RSHIFT( q1_Q10, 10 ); + if( q1_Q0 > 0 ) { + q1_Q10 = silk_SUB32( silk_LSHIFT( q1_Q0, 10 ), QUANT_LEVEL_ADJUST_Q10 ); + q1_Q10 = silk_ADD32( q1_Q10, offset_Q10 ); + q2_Q10 = silk_ADD32( q1_Q10, 1024 ); + rd1_Q10 = silk_SMULBB( q1_Q10, Lambda_Q10 ); + rd2_Q10 = silk_SMULBB( q2_Q10, Lambda_Q10 ); + } else if( q1_Q0 == 0 ) { + q1_Q10 = offset_Q10; + q2_Q10 = silk_ADD32( q1_Q10, 1024 - QUANT_LEVEL_ADJUST_Q10 ); + rd1_Q10 = silk_SMULBB( q1_Q10, Lambda_Q10 ); + rd2_Q10 = silk_SMULBB( q2_Q10, Lambda_Q10 ); + } else if( q1_Q0 == -1 ) { + q2_Q10 = offset_Q10; + q1_Q10 = silk_SUB32( q2_Q10, 1024 - QUANT_LEVEL_ADJUST_Q10 ); + rd1_Q10 = silk_SMULBB( -q1_Q10, Lambda_Q10 ); + rd2_Q10 = silk_SMULBB( q2_Q10, Lambda_Q10 ); + } else { /* q1_Q0 < -1 */ + q1_Q10 = silk_ADD32( silk_LSHIFT( q1_Q0, 10 ), QUANT_LEVEL_ADJUST_Q10 ); + q1_Q10 = silk_ADD32( q1_Q10, offset_Q10 ); + q2_Q10 = silk_ADD32( q1_Q10, 1024 ); + rd1_Q10 = silk_SMULBB( -q1_Q10, Lambda_Q10 ); + rd2_Q10 = silk_SMULBB( -q2_Q10, Lambda_Q10 ); + } + rr_Q10 = silk_SUB32( r_Q10, q1_Q10 ); + rd1_Q10 = silk_RSHIFT( silk_SMLABB( rd1_Q10, rr_Q10, rr_Q10 ), 10 ); + rr_Q10 = silk_SUB32( r_Q10, q2_Q10 ); + rd2_Q10 = silk_RSHIFT( silk_SMLABB( rd2_Q10, rr_Q10, rr_Q10 ), 10 ); + + if( rd1_Q10 < rd2_Q10 ) { + psSS[ 0 ].RD_Q10 = silk_ADD32( psDD->RD_Q10, rd1_Q10 ); + psSS[ 1 ].RD_Q10 = silk_ADD32( psDD->RD_Q10, rd2_Q10 ); + psSS[ 0 ].Q_Q10 = q1_Q10; + psSS[ 1 ].Q_Q10 = q2_Q10; + } else { + psSS[ 0 ].RD_Q10 = silk_ADD32( psDD->RD_Q10, rd2_Q10 ); + psSS[ 1 ].RD_Q10 = silk_ADD32( psDD->RD_Q10, rd1_Q10 ); + psSS[ 0 ].Q_Q10 = q2_Q10; + psSS[ 1 ].Q_Q10 = q1_Q10; + } + + /* Update states for best quantization */ + + /* Quantized excitation */ + exc_Q14 = silk_LSHIFT32( psSS[ 0 ].Q_Q10, 4 ); + if ( psDD->Seed < 0 ) { + exc_Q14 = -exc_Q14; + } + + /* Add predictions */ + LPC_exc_Q14 = silk_ADD32( exc_Q14, LTP_pred_Q14 ); + xq_Q14 = silk_ADD32( LPC_exc_Q14, LPC_pred_Q14 ); + + /* Update states */ + sLF_AR_shp_Q14 = silk_SUB32( xq_Q14, n_AR_Q14 ); + psSS[ 0 ].sLTP_shp_Q14 = silk_SUB32( sLF_AR_shp_Q14, n_LF_Q14 ); + psSS[ 0 ].LF_AR_Q14 = sLF_AR_shp_Q14; + psSS[ 0 ].LPC_exc_Q14 = LPC_exc_Q14; + psSS[ 0 ].xq_Q14 = xq_Q14; + + /* Update states for second best quantization */ + + /* Quantized excitation */ + exc_Q14 = silk_LSHIFT32( psSS[ 1 ].Q_Q10, 4 ); + if ( psDD->Seed < 0 ) { + exc_Q14 = -exc_Q14; + } + + + /* Add predictions */ + LPC_exc_Q14 = silk_ADD32( exc_Q14, LTP_pred_Q14 ); + xq_Q14 = silk_ADD32( LPC_exc_Q14, LPC_pred_Q14 ); + + /* Update states */ + sLF_AR_shp_Q14 = silk_SUB32( xq_Q14, n_AR_Q14 ); + psSS[ 1 ].sLTP_shp_Q14 = silk_SUB32( sLF_AR_shp_Q14, n_LF_Q14 ); + psSS[ 1 ].LF_AR_Q14 = sLF_AR_shp_Q14; + psSS[ 1 ].LPC_exc_Q14 = LPC_exc_Q14; + psSS[ 1 ].xq_Q14 = xq_Q14; + } + + *smpl_buf_idx = ( *smpl_buf_idx - 1 ) % DECISION_DELAY; + if( *smpl_buf_idx < 0 ) *smpl_buf_idx += DECISION_DELAY; + last_smple_idx = ( *smpl_buf_idx + decisionDelay ) % DECISION_DELAY; + + /* Find winner */ + RDmin_Q10 = psSampleState[ 0 ][ 0 ].RD_Q10; + Winner_ind = 0; + for( k = 1; k < nStatesDelayedDecision; k++ ) { + if( psSampleState[ k ][ 0 ].RD_Q10 < RDmin_Q10 ) { + RDmin_Q10 = psSampleState[ k ][ 0 ].RD_Q10; + Winner_ind = k; + } + } + + /* Increase RD values of expired states */ + Winner_rand_state = psDelDec[ Winner_ind ].RandState[ last_smple_idx ]; + for( k = 0; k < nStatesDelayedDecision; k++ ) { + if( psDelDec[ k ].RandState[ last_smple_idx ] != Winner_rand_state ) { + psSampleState[ k ][ 0 ].RD_Q10 = silk_ADD32( psSampleState[ k ][ 0 ].RD_Q10, silk_int32_MAX >> 4 ); + psSampleState[ k ][ 1 ].RD_Q10 = silk_ADD32( psSampleState[ k ][ 1 ].RD_Q10, silk_int32_MAX >> 4 ); + silk_assert( psSampleState[ k ][ 0 ].RD_Q10 >= 0 ); + } + } + + /* Find worst in first set and best in second set */ + RDmax_Q10 = psSampleState[ 0 ][ 0 ].RD_Q10; + RDmin_Q10 = psSampleState[ 0 ][ 1 ].RD_Q10; + RDmax_ind = 0; + RDmin_ind = 0; + for( k = 1; k < nStatesDelayedDecision; k++ ) { + /* find worst in first set */ + if( psSampleState[ k ][ 0 ].RD_Q10 > RDmax_Q10 ) { + RDmax_Q10 = psSampleState[ k ][ 0 ].RD_Q10; + RDmax_ind = k; + } + /* find best in second set */ + if( psSampleState[ k ][ 1 ].RD_Q10 < RDmin_Q10 ) { + RDmin_Q10 = psSampleState[ k ][ 1 ].RD_Q10; + RDmin_ind = k; + } + } + + /* Replace a state if best from second set outperforms worst in first set */ + if( RDmin_Q10 < RDmax_Q10 ) { + silk_memcpy( ( (opus_int32 *)&psDelDec[ RDmax_ind ] ) + i, + ( (opus_int32 *)&psDelDec[ RDmin_ind ] ) + i, sizeof( NSQ_del_dec_struct ) - i * sizeof( opus_int32) ); + silk_memcpy( &psSampleState[ RDmax_ind ][ 0 ], &psSampleState[ RDmin_ind ][ 1 ], sizeof( NSQ_sample_struct ) ); + } + + /* Write samples from winner to output and long-term filter states */ + psDD = &psDelDec[ Winner_ind ]; + if( subfr > 0 || i >= decisionDelay ) { + pulses[ i - decisionDelay ] = (opus_int8)silk_RSHIFT_ROUND( psDD->Q_Q10[ last_smple_idx ], 10 ); + xq[ i - decisionDelay ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( + silk_SMULWW( psDD->Xq_Q14[ last_smple_idx ], delayedGain_Q10[ last_smple_idx ] ), 8 ) ); + NSQ->sLTP_shp_Q14[ NSQ->sLTP_shp_buf_idx - decisionDelay ] = psDD->Shape_Q14[ last_smple_idx ]; + sLTP_Q15[ NSQ->sLTP_buf_idx - decisionDelay ] = psDD->Pred_Q15[ last_smple_idx ]; + } + NSQ->sLTP_shp_buf_idx++; + NSQ->sLTP_buf_idx++; + + /* Update states */ + for( k = 0; k < nStatesDelayedDecision; k++ ) { + psDD = &psDelDec[ k ]; + psSS = &psSampleState[ k ][ 0 ]; + psDD->LF_AR_Q14 = psSS->LF_AR_Q14; + psDD->sLPC_Q14[ NSQ_LPC_BUF_LENGTH + i ] = psSS->xq_Q14; + psDD->Xq_Q14[ *smpl_buf_idx ] = psSS->xq_Q14; + psDD->Q_Q10[ *smpl_buf_idx ] = psSS->Q_Q10; + psDD->Pred_Q15[ *smpl_buf_idx ] = silk_LSHIFT32( psSS->LPC_exc_Q14, 1 ); + psDD->Shape_Q14[ *smpl_buf_idx ] = psSS->sLTP_shp_Q14; + psDD->Seed = silk_ADD32_ovflw( psDD->Seed, silk_RSHIFT_ROUND( psSS->Q_Q10, 10 ) ); + psDD->RandState[ *smpl_buf_idx ] = psDD->Seed; + psDD->RD_Q10 = psSS->RD_Q10; + } + delayedGain_Q10[ *smpl_buf_idx ] = Gain_Q10; + } + /* Update LPC states */ + for( k = 0; k < nStatesDelayedDecision; k++ ) { + psDD = &psDelDec[ k ]; + silk_memcpy( psDD->sLPC_Q14, &psDD->sLPC_Q14[ length ], NSQ_LPC_BUF_LENGTH * sizeof( opus_int32 ) ); + } +} + +#endif /* __NSQ_DEL_DEC_MIPSR1_H__ */ diff --git a/components/opus/libopus/silk/mips/macros_mipsr1.h b/components/opus/libopus/silk/mips/macros_mipsr1.h new file mode 100644 index 0000000..12ed981 --- /dev/null +++ b/components/opus/libopus/silk/mips/macros_mipsr1.h @@ -0,0 +1,92 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + + +#ifndef __SILK_MACROS_MIPSR1_H__ +#define __SILK_MACROS_MIPSR1_H__ + +#define mips_clz(x) __builtin_clz(x) + +#undef silk_SMULWB +static inline int silk_SMULWB(int a, int b) +{ + long long ac; + int c; + + ac = __builtin_mips_mult(a, (opus_int32)(opus_int16)b); + c = __builtin_mips_extr_w(ac, 16); + + return c; +} + +#undef silk_SMLAWB +#define silk_SMLAWB(a32, b32, c32) ((a32) + silk_SMULWB(b32, c32)) + +#undef silk_SMULWW +static inline int silk_SMULWW(int a, int b) +{ + long long ac; + int c; + + ac = __builtin_mips_mult(a, b); + c = __builtin_mips_extr_w(ac, 16); + + return c; +} + +#undef silk_SMLAWW +static inline int silk_SMLAWW(int a, int b, int c) +{ + long long ac; + int res; + + ac = __builtin_mips_mult(b, c); + res = __builtin_mips_extr_w(ac, 16); + res += a; + + return res; +} + +#define OVERRIDE_silk_CLZ16 +static inline opus_int32 silk_CLZ16(opus_int16 in16) +{ + int re32; + opus_int32 in32 = (opus_int32 )in16; + re32 = mips_clz(in32); + re32-=16; + return re32; +} + +#define OVERRIDE_silk_CLZ32 +static inline opus_int32 silk_CLZ32(opus_int32 in32) +{ + int re32; + re32 = mips_clz(in32); + return re32; +} + +#endif /* __SILK_MACROS_MIPSR1_H__ */ diff --git a/components/opus/libopus/silk/mips/sigproc_fix_mipsr1.h b/components/opus/libopus/silk/mips/sigproc_fix_mipsr1.h new file mode 100644 index 0000000..51520c0 --- /dev/null +++ b/components/opus/libopus/silk/mips/sigproc_fix_mipsr1.h @@ -0,0 +1,60 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifndef SILK_SIGPROC_FIX_MIPSR1_H +#define SILK_SIGPROC_FIX_MIPSR1_H + +#undef silk_SAT16 +static inline short int silk_SAT16(int a) +{ + int c; + c = __builtin_mips_shll_s_w(a, 16); + c = c>>16; + + return c; +} + +#undef silk_LSHIFT_SAT32 +static inline int silk_LSHIFT_SAT32(int a, int shift) +{ + int r; + + r = __builtin_mips_shll_s_w(a, shift); + + return r; +} + +#undef silk_RSHIFT_ROUND +static inline int silk_RSHIFT_ROUND(int a, int shift) +{ + int r; + + r = __builtin_mips_shra_r_w(a, shift); + return r; +} + +#endif /* SILK_SIGPROC_FIX_MIPSR1_H */ diff --git a/components/opus/libopus/silk/pitch_est_defines.h b/components/opus/libopus/silk/pitch_est_defines.h new file mode 100644 index 0000000..e1e4b5d --- /dev/null +++ b/components/opus/libopus/silk/pitch_est_defines.h @@ -0,0 +1,88 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifndef SILK_PE_DEFINES_H +#define SILK_PE_DEFINES_H + +#include "SigProc_FIX.h" + +/********************************************************/ +/* Definitions for pitch estimator */ +/********************************************************/ + +#define PE_MAX_FS_KHZ 16 /* Maximum sampling frequency used */ + +#define PE_MAX_NB_SUBFR 4 +#define PE_SUBFR_LENGTH_MS 5 /* 5 ms */ + +#define PE_LTP_MEM_LENGTH_MS ( 4 * PE_SUBFR_LENGTH_MS ) + +#define PE_MAX_FRAME_LENGTH_MS ( PE_LTP_MEM_LENGTH_MS + PE_MAX_NB_SUBFR * PE_SUBFR_LENGTH_MS ) +#define PE_MAX_FRAME_LENGTH ( PE_MAX_FRAME_LENGTH_MS * PE_MAX_FS_KHZ ) +#define PE_MAX_FRAME_LENGTH_ST_1 ( PE_MAX_FRAME_LENGTH >> 2 ) +#define PE_MAX_FRAME_LENGTH_ST_2 ( PE_MAX_FRAME_LENGTH >> 1 ) + +#define PE_MAX_LAG_MS 18 /* 18 ms -> 56 Hz */ +#define PE_MIN_LAG_MS 2 /* 2 ms -> 500 Hz */ +#define PE_MAX_LAG ( PE_MAX_LAG_MS * PE_MAX_FS_KHZ ) +#define PE_MIN_LAG ( PE_MIN_LAG_MS * PE_MAX_FS_KHZ ) + +#define PE_D_SRCH_LENGTH 24 + +#define PE_NB_STAGE3_LAGS 5 + +#define PE_NB_CBKS_STAGE2 3 +#define PE_NB_CBKS_STAGE2_EXT 11 + +#define PE_NB_CBKS_STAGE3_MAX 34 +#define PE_NB_CBKS_STAGE3_MID 24 +#define PE_NB_CBKS_STAGE3_MIN 16 + +#define PE_NB_CBKS_STAGE3_10MS 12 +#define PE_NB_CBKS_STAGE2_10MS 3 + +#define PE_SHORTLAG_BIAS 0.2f /* for logarithmic weighting */ +#define PE_PREVLAG_BIAS 0.2f /* for logarithmic weighting */ +#define PE_FLATCONTOUR_BIAS 0.05f + +#define SILK_PE_MIN_COMPLEX 0 +#define SILK_PE_MID_COMPLEX 1 +#define SILK_PE_MAX_COMPLEX 2 + +/* Tables for 20 ms frames */ +extern const opus_int8 silk_CB_lags_stage2[ PE_MAX_NB_SUBFR ][ PE_NB_CBKS_STAGE2_EXT ]; +extern const opus_int8 silk_CB_lags_stage3[ PE_MAX_NB_SUBFR ][ PE_NB_CBKS_STAGE3_MAX ]; +extern const opus_int8 silk_Lag_range_stage3[ SILK_PE_MAX_COMPLEX + 1 ] [ PE_MAX_NB_SUBFR ][ 2 ]; +extern const opus_int8 silk_nb_cbk_searchs_stage3[ SILK_PE_MAX_COMPLEX + 1 ]; + +/* Tables for 10 ms frames */ +extern const opus_int8 silk_CB_lags_stage2_10_ms[ PE_MAX_NB_SUBFR >> 1][ 3 ]; +extern const opus_int8 silk_CB_lags_stage3_10_ms[ PE_MAX_NB_SUBFR >> 1 ][ 12 ]; +extern const opus_int8 silk_Lag_range_stage3_10_ms[ PE_MAX_NB_SUBFR >> 1 ][ 2 ]; + +#endif + diff --git a/components/opus/libopus/silk/pitch_est_tables.c b/components/opus/libopus/silk/pitch_est_tables.c new file mode 100644 index 0000000..81a8bac --- /dev/null +++ b/components/opus/libopus/silk/pitch_est_tables.c @@ -0,0 +1,99 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "typedef.h" +#include "pitch_est_defines.h" + +const opus_int8 silk_CB_lags_stage2_10_ms[ PE_MAX_NB_SUBFR >> 1][ PE_NB_CBKS_STAGE2_10MS ] = +{ + {0, 1, 0}, + {0, 0, 1} +}; + +const opus_int8 silk_CB_lags_stage3_10_ms[ PE_MAX_NB_SUBFR >> 1 ][ PE_NB_CBKS_STAGE3_10MS ] = +{ + { 0, 0, 1,-1, 1,-1, 2,-2, 2,-2, 3,-3}, + { 0, 1, 0, 1,-1, 2,-1, 2,-2, 3,-2, 3} +}; + +const opus_int8 silk_Lag_range_stage3_10_ms[ PE_MAX_NB_SUBFR >> 1 ][ 2 ] = +{ + {-3, 7}, + {-2, 7} +}; + +const opus_int8 silk_CB_lags_stage2[ PE_MAX_NB_SUBFR ][ PE_NB_CBKS_STAGE2_EXT ] = +{ + {0, 2,-1,-1,-1, 0, 0, 1, 1, 0, 1}, + {0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0}, + {0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0}, + {0,-1, 2, 1, 0, 1, 1, 0, 0,-1,-1} +}; + +const opus_int8 silk_CB_lags_stage3[ PE_MAX_NB_SUBFR ][ PE_NB_CBKS_STAGE3_MAX ] = +{ + {0, 0, 1,-1, 0, 1,-1, 0,-1, 1,-2, 2,-2,-2, 2,-3, 2, 3,-3,-4, 3,-4, 4, 4,-5, 5,-6,-5, 6,-7, 6, 5, 8,-9}, + {0, 0, 1, 0, 0, 0, 0, 0, 0, 0,-1, 1, 0, 0, 1,-1, 0, 1,-1,-1, 1,-1, 2, 1,-1, 2,-2,-2, 2,-2, 2, 2, 3,-3}, + {0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 1,-1, 1, 0, 0, 2, 1,-1, 2,-1,-1, 2,-1, 2, 2,-1, 3,-2,-2,-2, 3}, + {0, 1, 0, 0, 1, 0, 1,-1, 2,-1, 2,-1, 2, 3,-2, 3,-2,-2, 4, 4,-3, 5,-3,-4, 6,-4, 6, 5,-5, 8,-6,-5,-7, 9} +}; + +const opus_int8 silk_Lag_range_stage3[ SILK_PE_MAX_COMPLEX + 1 ] [ PE_MAX_NB_SUBFR ][ 2 ] = +{ + /* Lags to search for low number of stage3 cbks */ + { + {-5,8}, + {-1,6}, + {-1,6}, + {-4,10} + }, + /* Lags to search for middle number of stage3 cbks */ + { + {-6,10}, + {-2,6}, + {-1,6}, + {-5,10} + }, + /* Lags to search for max number of stage3 cbks */ + { + {-9,12}, + {-3,7}, + {-2,7}, + {-7,13} + } +}; + +const opus_int8 silk_nb_cbk_searchs_stage3[ SILK_PE_MAX_COMPLEX + 1 ] = +{ + PE_NB_CBKS_STAGE3_MIN, + PE_NB_CBKS_STAGE3_MID, + PE_NB_CBKS_STAGE3_MAX +}; diff --git a/components/opus/libopus/silk/process_NLSFs.c b/components/opus/libopus/silk/process_NLSFs.c new file mode 100644 index 0000000..d130809 --- /dev/null +++ b/components/opus/libopus/silk/process_NLSFs.c @@ -0,0 +1,107 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main.h" + +/* Limit, stabilize, convert and quantize NLSFs */ +void silk_process_NLSFs( + silk_encoder_state *psEncC, /* I/O Encoder state */ + opus_int16 PredCoef_Q12[ 2 ][ MAX_LPC_ORDER ], /* O Prediction coefficients */ + opus_int16 pNLSF_Q15[ MAX_LPC_ORDER ], /* I/O Normalized LSFs (quant out) (0 - (2^15-1)) */ + const opus_int16 prev_NLSFq_Q15[ MAX_LPC_ORDER ] /* I Previous Normalized LSFs (0 - (2^15-1)) */ +) +{ + opus_int i, doInterpolate; + opus_int NLSF_mu_Q20; + opus_int16 i_sqr_Q15; + opus_int16 pNLSF0_temp_Q15[ MAX_LPC_ORDER ]; + opus_int16 pNLSFW_QW[ MAX_LPC_ORDER ]; + opus_int16 pNLSFW0_temp_QW[ MAX_LPC_ORDER ]; + + silk_assert( psEncC->speech_activity_Q8 >= 0 ); + silk_assert( psEncC->speech_activity_Q8 <= SILK_FIX_CONST( 1.0, 8 ) ); + celt_assert( psEncC->useInterpolatedNLSFs == 1 || psEncC->indices.NLSFInterpCoef_Q2 == ( 1 << 2 ) ); + + /***********************/ + /* Calculate mu values */ + /***********************/ + /* NLSF_mu = 0.003 - 0.0015 * psEnc->speech_activity; */ + NLSF_mu_Q20 = silk_SMLAWB( SILK_FIX_CONST( 0.003, 20 ), SILK_FIX_CONST( -0.001, 28 ), psEncC->speech_activity_Q8 ); + if( psEncC->nb_subfr == 2 ) { + /* Multiply by 1.5 for 10 ms packets */ + NLSF_mu_Q20 = silk_ADD_RSHIFT( NLSF_mu_Q20, NLSF_mu_Q20, 1 ); + } + + celt_assert( NLSF_mu_Q20 > 0 ); + silk_assert( NLSF_mu_Q20 <= SILK_FIX_CONST( 0.005, 20 ) ); + + /* Calculate NLSF weights */ + silk_NLSF_VQ_weights_laroia( pNLSFW_QW, pNLSF_Q15, psEncC->predictLPCOrder ); + + /* Update NLSF weights for interpolated NLSFs */ + doInterpolate = ( psEncC->useInterpolatedNLSFs == 1 ) && ( psEncC->indices.NLSFInterpCoef_Q2 < 4 ); + if( doInterpolate ) { + /* Calculate the interpolated NLSF vector for the first half */ + silk_interpolate( pNLSF0_temp_Q15, prev_NLSFq_Q15, pNLSF_Q15, + psEncC->indices.NLSFInterpCoef_Q2, psEncC->predictLPCOrder ); + + /* Calculate first half NLSF weights for the interpolated NLSFs */ + silk_NLSF_VQ_weights_laroia( pNLSFW0_temp_QW, pNLSF0_temp_Q15, psEncC->predictLPCOrder ); + + /* Update NLSF weights with contribution from first half */ + i_sqr_Q15 = silk_LSHIFT( silk_SMULBB( psEncC->indices.NLSFInterpCoef_Q2, psEncC->indices.NLSFInterpCoef_Q2 ), 11 ); + for( i = 0; i < psEncC->predictLPCOrder; i++ ) { + pNLSFW_QW[ i ] = silk_ADD16( silk_RSHIFT( pNLSFW_QW[ i ], 1 ), silk_RSHIFT( + silk_SMULBB( pNLSFW0_temp_QW[ i ], i_sqr_Q15 ), 16) ); + silk_assert( pNLSFW_QW[ i ] >= 1 ); + } + } + + silk_NLSF_encode( psEncC->indices.NLSFIndices, pNLSF_Q15, psEncC->psNLSF_CB, pNLSFW_QW, + NLSF_mu_Q20, psEncC->NLSF_MSVQ_Survivors, psEncC->indices.signalType ); + + /* Convert quantized NLSFs back to LPC coefficients */ + silk_NLSF2A( PredCoef_Q12[ 1 ], pNLSF_Q15, psEncC->predictLPCOrder, psEncC->arch ); + + if( doInterpolate ) { + /* Calculate the interpolated, quantized LSF vector for the first half */ + silk_interpolate( pNLSF0_temp_Q15, prev_NLSFq_Q15, pNLSF_Q15, + psEncC->indices.NLSFInterpCoef_Q2, psEncC->predictLPCOrder ); + + /* Convert back to LPC coefficients */ + silk_NLSF2A( PredCoef_Q12[ 0 ], pNLSF0_temp_Q15, psEncC->predictLPCOrder, psEncC->arch ); + + } else { + /* Copy LPC coefficients for first half from second half */ + celt_assert( psEncC->predictLPCOrder <= MAX_LPC_ORDER ); + silk_memcpy( PredCoef_Q12[ 0 ], PredCoef_Q12[ 1 ], psEncC->predictLPCOrder * sizeof( opus_int16 ) ); + } +} diff --git a/components/opus/libopus/silk/quant_LTP_gains.c b/components/opus/libopus/silk/quant_LTP_gains.c new file mode 100644 index 0000000..d6b8eff --- /dev/null +++ b/components/opus/libopus/silk/quant_LTP_gains.c @@ -0,0 +1,132 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main.h" +#include "tuning_parameters.h" + +void silk_quant_LTP_gains( + opus_int16 B_Q14[ MAX_NB_SUBFR * LTP_ORDER ], /* O Quantized LTP gains */ + opus_int8 cbk_index[ MAX_NB_SUBFR ], /* O Codebook Index */ + opus_int8 *periodicity_index, /* O Periodicity Index */ + opus_int32 *sum_log_gain_Q7, /* I/O Cumulative max prediction gain */ + opus_int *pred_gain_dB_Q7, /* O LTP prediction gain */ + const opus_int32 XX_Q17[ MAX_NB_SUBFR*LTP_ORDER*LTP_ORDER ], /* I Correlation matrix in Q18 */ + const opus_int32 xX_Q17[ MAX_NB_SUBFR*LTP_ORDER ], /* I Correlation vector in Q18 */ + const opus_int subfr_len, /* I Number of samples per subframe */ + const opus_int nb_subfr, /* I Number of subframes */ + int arch /* I Run-time architecture */ +) +{ + opus_int j, k, cbk_size; + opus_int8 temp_idx[ MAX_NB_SUBFR ]; + const opus_uint8 *cl_ptr_Q5; + const opus_int8 *cbk_ptr_Q7; + const opus_uint8 *cbk_gain_ptr_Q7; + const opus_int32 *XX_Q17_ptr, *xX_Q17_ptr; + opus_int32 res_nrg_Q15_subfr, res_nrg_Q15, rate_dist_Q7_subfr, rate_dist_Q7, min_rate_dist_Q7; + opus_int32 sum_log_gain_tmp_Q7, best_sum_log_gain_Q7, max_gain_Q7; + opus_int gain_Q7; + + /***************************************************/ + /* iterate over different codebooks with different */ + /* rates/distortions, and choose best */ + /***************************************************/ + min_rate_dist_Q7 = silk_int32_MAX; + best_sum_log_gain_Q7 = 0; + for( k = 0; k < 3; k++ ) { + /* Safety margin for pitch gain control, to take into account factors + such as state rescaling/rewhitening. */ + opus_int32 gain_safety = SILK_FIX_CONST( 0.4, 7 ); + + cl_ptr_Q5 = silk_LTP_gain_BITS_Q5_ptrs[ k ]; + cbk_ptr_Q7 = silk_LTP_vq_ptrs_Q7[ k ]; + cbk_gain_ptr_Q7 = silk_LTP_vq_gain_ptrs_Q7[ k ]; + cbk_size = silk_LTP_vq_sizes[ k ]; + + /* Set up pointers to first subframe */ + XX_Q17_ptr = XX_Q17; + xX_Q17_ptr = xX_Q17; + + res_nrg_Q15 = 0; + rate_dist_Q7 = 0; + sum_log_gain_tmp_Q7 = *sum_log_gain_Q7; + for( j = 0; j < nb_subfr; j++ ) { + max_gain_Q7 = silk_log2lin( ( SILK_FIX_CONST( MAX_SUM_LOG_GAIN_DB / 6.0, 7 ) - sum_log_gain_tmp_Q7 ) + + SILK_FIX_CONST( 7, 7 ) ) - gain_safety; + silk_VQ_WMat_EC( + &temp_idx[ j ], /* O index of best codebook vector */ + &res_nrg_Q15_subfr, /* O residual energy */ + &rate_dist_Q7_subfr, /* O best weighted quantization error + mu * rate */ + &gain_Q7, /* O sum of absolute LTP coefficients */ + XX_Q17_ptr, /* I correlation matrix */ + xX_Q17_ptr, /* I correlation vector */ + cbk_ptr_Q7, /* I codebook */ + cbk_gain_ptr_Q7, /* I codebook effective gains */ + cl_ptr_Q5, /* I code length for each codebook vector */ + subfr_len, /* I number of samples per subframe */ + max_gain_Q7, /* I maximum sum of absolute LTP coefficients */ + cbk_size, /* I number of vectors in codebook */ + arch /* I Run-time architecture */ + ); + + res_nrg_Q15 = silk_ADD_POS_SAT32( res_nrg_Q15, res_nrg_Q15_subfr ); + rate_dist_Q7 = silk_ADD_POS_SAT32( rate_dist_Q7, rate_dist_Q7_subfr ); + sum_log_gain_tmp_Q7 = silk_max(0, sum_log_gain_tmp_Q7 + + silk_lin2log( gain_safety + gain_Q7 ) - SILK_FIX_CONST( 7, 7 )); + + XX_Q17_ptr += LTP_ORDER * LTP_ORDER; + xX_Q17_ptr += LTP_ORDER; + } + + if( rate_dist_Q7 <= min_rate_dist_Q7 ) { + min_rate_dist_Q7 = rate_dist_Q7; + *periodicity_index = (opus_int8)k; + silk_memcpy( cbk_index, temp_idx, nb_subfr * sizeof( opus_int8 ) ); + best_sum_log_gain_Q7 = sum_log_gain_tmp_Q7; + } + } + + cbk_ptr_Q7 = silk_LTP_vq_ptrs_Q7[ *periodicity_index ]; + for( j = 0; j < nb_subfr; j++ ) { + for( k = 0; k < LTP_ORDER; k++ ) { + B_Q14[ j * LTP_ORDER + k ] = silk_LSHIFT( cbk_ptr_Q7[ cbk_index[ j ] * LTP_ORDER + k ], 7 ); + } + } + + if( nb_subfr == 2 ) { + res_nrg_Q15 = silk_RSHIFT32( res_nrg_Q15, 1 ); + } else { + res_nrg_Q15 = silk_RSHIFT32( res_nrg_Q15, 2 ); + } + + *sum_log_gain_Q7 = best_sum_log_gain_Q7; + *pred_gain_dB_Q7 = (opus_int)silk_SMULBB( -3, silk_lin2log( res_nrg_Q15 ) - ( 15 << 7 ) ); +} diff --git a/components/opus/libopus/silk/resampler.c b/components/opus/libopus/silk/resampler.c new file mode 100644 index 0000000..1f11e50 --- /dev/null +++ b/components/opus/libopus/silk/resampler.c @@ -0,0 +1,215 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +/* + * Matrix of resampling methods used: + * Fs_out (kHz) + * 8 12 16 24 48 + * + * 8 C UF U UF UF + * 12 AF C UF U UF + * Fs_in (kHz) 16 D AF C UF UF + * 24 AF D AF C U + * 48 AF AF AF D C + * + * C -> Copy (no resampling) + * D -> Allpass-based 2x downsampling + * U -> Allpass-based 2x upsampling + * UF -> Allpass-based 2x upsampling followed by FIR interpolation + * AF -> AR2 filter followed by FIR interpolation + */ + +#include "resampler_private.h" + +/* Tables with delay compensation values to equalize total delay for different modes */ +static const opus_int8 delay_matrix_enc[ 5 ][ 3 ] = { +/* in \ out 8 12 16 */ +/* 8 */ { 6, 0, 3 }, +/* 12 */ { 0, 7, 3 }, +/* 16 */ { 0, 1, 10 }, +/* 24 */ { 0, 2, 6 }, +/* 48 */ { 18, 10, 12 } +}; + +static const opus_int8 delay_matrix_dec[ 3 ][ 5 ] = { +/* in \ out 8 12 16 24 48 */ +/* 8 */ { 4, 0, 2, 0, 0 }, +/* 12 */ { 0, 9, 4, 7, 4 }, +/* 16 */ { 0, 3, 12, 7, 7 } +}; + +/* Simple way to make [8000, 12000, 16000, 24000, 48000] to [0, 1, 2, 3, 4] */ +#define rateID(R) ( ( ( ((R)>>12) - ((R)>16000) ) >> ((R)>24000) ) - 1 ) + +#define USE_silk_resampler_copy (0) +#define USE_silk_resampler_private_up2_HQ_wrapper (1) +#define USE_silk_resampler_private_IIR_FIR (2) +#define USE_silk_resampler_private_down_FIR (3) + +/* Initialize/reset the resampler state for a given pair of input/output sampling rates */ +opus_int silk_resampler_init( + silk_resampler_state_struct *S, /* I/O Resampler state */ + opus_int32 Fs_Hz_in, /* I Input sampling rate (Hz) */ + opus_int32 Fs_Hz_out, /* I Output sampling rate (Hz) */ + opus_int forEnc /* I If 1: encoder; if 0: decoder */ +) +{ + opus_int up2x; + + /* Clear state */ + silk_memset( S, 0, sizeof( silk_resampler_state_struct ) ); + + /* Input checking */ + if( forEnc ) { + if( ( Fs_Hz_in != 8000 && Fs_Hz_in != 12000 && Fs_Hz_in != 16000 && Fs_Hz_in != 24000 && Fs_Hz_in != 48000 ) || + ( Fs_Hz_out != 8000 && Fs_Hz_out != 12000 && Fs_Hz_out != 16000 ) ) { + celt_assert( 0 ); + return -1; + } + S->inputDelay = delay_matrix_enc[ rateID( Fs_Hz_in ) ][ rateID( Fs_Hz_out ) ]; + } else { + if( ( Fs_Hz_in != 8000 && Fs_Hz_in != 12000 && Fs_Hz_in != 16000 ) || + ( Fs_Hz_out != 8000 && Fs_Hz_out != 12000 && Fs_Hz_out != 16000 && Fs_Hz_out != 24000 && Fs_Hz_out != 48000 ) ) { + celt_assert( 0 ); + return -1; + } + S->inputDelay = delay_matrix_dec[ rateID( Fs_Hz_in ) ][ rateID( Fs_Hz_out ) ]; + } + + S->Fs_in_kHz = silk_DIV32_16( Fs_Hz_in, 1000 ); + S->Fs_out_kHz = silk_DIV32_16( Fs_Hz_out, 1000 ); + + /* Number of samples processed per batch */ + S->batchSize = S->Fs_in_kHz * RESAMPLER_MAX_BATCH_SIZE_MS; + + /* Find resampler with the right sampling ratio */ + up2x = 0; + if( Fs_Hz_out > Fs_Hz_in ) { + /* Upsample */ + if( Fs_Hz_out == silk_MUL( Fs_Hz_in, 2 ) ) { /* Fs_out : Fs_in = 2 : 1 */ + /* Special case: directly use 2x upsampler */ + S->resampler_function = USE_silk_resampler_private_up2_HQ_wrapper; + } else { + /* Default resampler */ + S->resampler_function = USE_silk_resampler_private_IIR_FIR; + up2x = 1; + } + } else if ( Fs_Hz_out < Fs_Hz_in ) { + /* Downsample */ + S->resampler_function = USE_silk_resampler_private_down_FIR; + if( silk_MUL( Fs_Hz_out, 4 ) == silk_MUL( Fs_Hz_in, 3 ) ) { /* Fs_out : Fs_in = 3 : 4 */ + S->FIR_Fracs = 3; + S->FIR_Order = RESAMPLER_DOWN_ORDER_FIR0; + S->Coefs = silk_Resampler_3_4_COEFS; + } else if( silk_MUL( Fs_Hz_out, 3 ) == silk_MUL( Fs_Hz_in, 2 ) ) { /* Fs_out : Fs_in = 2 : 3 */ + S->FIR_Fracs = 2; + S->FIR_Order = RESAMPLER_DOWN_ORDER_FIR0; + S->Coefs = silk_Resampler_2_3_COEFS; + } else if( silk_MUL( Fs_Hz_out, 2 ) == Fs_Hz_in ) { /* Fs_out : Fs_in = 1 : 2 */ + S->FIR_Fracs = 1; + S->FIR_Order = RESAMPLER_DOWN_ORDER_FIR1; + S->Coefs = silk_Resampler_1_2_COEFS; + } else if( silk_MUL( Fs_Hz_out, 3 ) == Fs_Hz_in ) { /* Fs_out : Fs_in = 1 : 3 */ + S->FIR_Fracs = 1; + S->FIR_Order = RESAMPLER_DOWN_ORDER_FIR2; + S->Coefs = silk_Resampler_1_3_COEFS; + } else if( silk_MUL( Fs_Hz_out, 4 ) == Fs_Hz_in ) { /* Fs_out : Fs_in = 1 : 4 */ + S->FIR_Fracs = 1; + S->FIR_Order = RESAMPLER_DOWN_ORDER_FIR2; + S->Coefs = silk_Resampler_1_4_COEFS; + } else if( silk_MUL( Fs_Hz_out, 6 ) == Fs_Hz_in ) { /* Fs_out : Fs_in = 1 : 6 */ + S->FIR_Fracs = 1; + S->FIR_Order = RESAMPLER_DOWN_ORDER_FIR2; + S->Coefs = silk_Resampler_1_6_COEFS; + } else { + /* None available */ + celt_assert( 0 ); + return -1; + } + } else { + /* Input and output sampling rates are equal: copy */ + S->resampler_function = USE_silk_resampler_copy; + } + + /* Ratio of input/output samples */ + S->invRatio_Q16 = silk_LSHIFT32( silk_DIV32( silk_LSHIFT32( Fs_Hz_in, 14 + up2x ), Fs_Hz_out ), 2 ); + /* Make sure the ratio is rounded up */ + while( silk_SMULWW( S->invRatio_Q16, Fs_Hz_out ) < silk_LSHIFT32( Fs_Hz_in, up2x ) ) { + S->invRatio_Q16++; + } + + return 0; +} + +/* Resampler: convert from one sampling rate to another */ +/* Input and output sampling rate are at most 48000 Hz */ +opus_int silk_resampler( + silk_resampler_state_struct *S, /* I/O Resampler state */ + opus_int16 out[], /* O Output signal */ + const opus_int16 in[], /* I Input signal */ + opus_int32 inLen /* I Number of input samples */ +) +{ + opus_int nSamples; + + /* Need at least 1 ms of input data */ + celt_assert( inLen >= S->Fs_in_kHz ); + /* Delay can't exceed the 1 ms of buffering */ + celt_assert( S->inputDelay <= S->Fs_in_kHz ); + + nSamples = S->Fs_in_kHz - S->inputDelay; + + /* Copy to delay buffer */ + silk_memcpy( &S->delayBuf[ S->inputDelay ], in, nSamples * sizeof( opus_int16 ) ); + + switch( S->resampler_function ) { + case USE_silk_resampler_private_up2_HQ_wrapper: + silk_resampler_private_up2_HQ_wrapper( S, out, S->delayBuf, S->Fs_in_kHz ); + silk_resampler_private_up2_HQ_wrapper( S, &out[ S->Fs_out_kHz ], &in[ nSamples ], inLen - S->Fs_in_kHz ); + break; + case USE_silk_resampler_private_IIR_FIR: + silk_resampler_private_IIR_FIR( S, out, S->delayBuf, S->Fs_in_kHz ); + silk_resampler_private_IIR_FIR( S, &out[ S->Fs_out_kHz ], &in[ nSamples ], inLen - S->Fs_in_kHz ); + break; + case USE_silk_resampler_private_down_FIR: + silk_resampler_private_down_FIR( S, out, S->delayBuf, S->Fs_in_kHz ); + silk_resampler_private_down_FIR( S, &out[ S->Fs_out_kHz ], &in[ nSamples ], inLen - S->Fs_in_kHz ); + break; + default: + silk_memcpy( out, S->delayBuf, S->Fs_in_kHz * sizeof( opus_int16 ) ); + silk_memcpy( &out[ S->Fs_out_kHz ], &in[ nSamples ], ( inLen - S->Fs_in_kHz ) * sizeof( opus_int16 ) ); + } + + /* Copy to delay buffer */ + silk_memcpy( S->delayBuf, &in[ inLen - S->inputDelay ], S->inputDelay * sizeof( opus_int16 ) ); + + return 0; +} diff --git a/components/opus/libopus/silk/resampler_down2.c b/components/opus/libopus/silk/resampler_down2.c new file mode 100644 index 0000000..971d7bf --- /dev/null +++ b/components/opus/libopus/silk/resampler_down2.c @@ -0,0 +1,74 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "SigProc_FIX.h" +#include "resampler_rom.h" + +/* Downsample by a factor 2 */ +void silk_resampler_down2( + opus_int32 *S, /* I/O State vector [ 2 ] */ + opus_int16 *out, /* O Output signal [ floor(len/2) ] */ + const opus_int16 *in, /* I Input signal [ len ] */ + opus_int32 inLen /* I Number of input samples */ +) +{ + opus_int32 k, len2 = silk_RSHIFT32( inLen, 1 ); + opus_int32 in32, out32, Y, X; + + celt_assert( silk_resampler_down2_0 > 0 ); + celt_assert( silk_resampler_down2_1 < 0 ); + + /* Internal variables and state are in Q10 format */ + for( k = 0; k < len2; k++ ) { + /* Convert to Q10 */ + in32 = silk_LSHIFT( (opus_int32)in[ 2 * k ], 10 ); + + /* All-pass section for even input sample */ + Y = silk_SUB32( in32, S[ 0 ] ); + X = silk_SMLAWB( Y, Y, silk_resampler_down2_1 ); + out32 = silk_ADD32( S[ 0 ], X ); + S[ 0 ] = silk_ADD32( in32, X ); + + /* Convert to Q10 */ + in32 = silk_LSHIFT( (opus_int32)in[ 2 * k + 1 ], 10 ); + + /* All-pass section for odd input sample, and add to output of previous section */ + Y = silk_SUB32( in32, S[ 1 ] ); + X = silk_SMULWB( Y, silk_resampler_down2_0 ); + out32 = silk_ADD32( out32, S[ 1 ] ); + out32 = silk_ADD32( out32, X ); + S[ 1 ] = silk_ADD32( in32, X ); + + /* Add, convert back to int16 and store to output */ + out[ k ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( out32, 11 ) ); + } +} + diff --git a/components/opus/libopus/silk/resampler_down2_3.c b/components/opus/libopus/silk/resampler_down2_3.c new file mode 100644 index 0000000..4342614 --- /dev/null +++ b/components/opus/libopus/silk/resampler_down2_3.c @@ -0,0 +1,103 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "SigProc_FIX.h" +#include "resampler_private.h" +#include "stack_alloc.h" + +#define ORDER_FIR 4 + +/* Downsample by a factor 2/3, low quality */ +void silk_resampler_down2_3( + opus_int32 *S, /* I/O State vector [ 6 ] */ + opus_int16 *out, /* O Output signal [ floor(2*inLen/3) ] */ + const opus_int16 *in, /* I Input signal [ inLen ] */ + opus_int32 inLen /* I Number of input samples */ +) +{ + opus_int32 nSamplesIn, counter, res_Q6; + VARDECL( opus_int32, buf ); + opus_int32 *buf_ptr; + SAVE_STACK; + + ALLOC( buf, RESAMPLER_MAX_BATCH_SIZE_IN + ORDER_FIR, opus_int32 ); + + /* Copy buffered samples to start of buffer */ + silk_memcpy( buf, S, ORDER_FIR * sizeof( opus_int32 ) ); + + /* Iterate over blocks of frameSizeIn input samples */ + while( 1 ) { + nSamplesIn = silk_min( inLen, RESAMPLER_MAX_BATCH_SIZE_IN ); + + /* Second-order AR filter (output in Q8) */ + silk_resampler_private_AR2( &S[ ORDER_FIR ], &buf[ ORDER_FIR ], in, + silk_Resampler_2_3_COEFS_LQ, nSamplesIn ); + + /* Interpolate filtered signal */ + buf_ptr = buf; + counter = nSamplesIn; + while( counter > 2 ) { + /* Inner product */ + res_Q6 = silk_SMULWB( buf_ptr[ 0 ], silk_Resampler_2_3_COEFS_LQ[ 2 ] ); + res_Q6 = silk_SMLAWB( res_Q6, buf_ptr[ 1 ], silk_Resampler_2_3_COEFS_LQ[ 3 ] ); + res_Q6 = silk_SMLAWB( res_Q6, buf_ptr[ 2 ], silk_Resampler_2_3_COEFS_LQ[ 5 ] ); + res_Q6 = silk_SMLAWB( res_Q6, buf_ptr[ 3 ], silk_Resampler_2_3_COEFS_LQ[ 4 ] ); + + /* Scale down, saturate and store in output array */ + *out++ = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( res_Q6, 6 ) ); + + res_Q6 = silk_SMULWB( buf_ptr[ 1 ], silk_Resampler_2_3_COEFS_LQ[ 4 ] ); + res_Q6 = silk_SMLAWB( res_Q6, buf_ptr[ 2 ], silk_Resampler_2_3_COEFS_LQ[ 5 ] ); + res_Q6 = silk_SMLAWB( res_Q6, buf_ptr[ 3 ], silk_Resampler_2_3_COEFS_LQ[ 3 ] ); + res_Q6 = silk_SMLAWB( res_Q6, buf_ptr[ 4 ], silk_Resampler_2_3_COEFS_LQ[ 2 ] ); + + /* Scale down, saturate and store in output array */ + *out++ = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( res_Q6, 6 ) ); + + buf_ptr += 3; + counter -= 3; + } + + in += nSamplesIn; + inLen -= nSamplesIn; + + if( inLen > 0 ) { + /* More iterations to do; copy last part of filtered signal to beginning of buffer */ + silk_memcpy( buf, &buf[ nSamplesIn ], ORDER_FIR * sizeof( opus_int32 ) ); + } else { + break; + } + } + + /* Copy last part of filtered signal to the state for the next call */ + silk_memcpy( S, &buf[ nSamplesIn ], ORDER_FIR * sizeof( opus_int32 ) ); + RESTORE_STACK; +} diff --git a/components/opus/libopus/silk/resampler_private.h b/components/opus/libopus/silk/resampler_private.h new file mode 100644 index 0000000..422a7d9 --- /dev/null +++ b/components/opus/libopus/silk/resampler_private.h @@ -0,0 +1,88 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifndef SILK_RESAMPLER_PRIVATE_H +#define SILK_RESAMPLER_PRIVATE_H + +#ifdef __cplusplus +extern "C" { +#endif + +#include "SigProc_FIX.h" +#include "resampler_structs.h" +#include "resampler_rom.h" + +/* Number of input samples to process in the inner loop */ +#define RESAMPLER_MAX_BATCH_SIZE_MS 10 +#define RESAMPLER_MAX_FS_KHZ 48 +#define RESAMPLER_MAX_BATCH_SIZE_IN ( RESAMPLER_MAX_BATCH_SIZE_MS * RESAMPLER_MAX_FS_KHZ ) + +/* Description: Hybrid IIR/FIR polyphase implementation of resampling */ +void silk_resampler_private_IIR_FIR( + void *SS, /* I/O Resampler state */ + opus_int16 out[], /* O Output signal */ + const opus_int16 in[], /* I Input signal */ + opus_int32 inLen /* I Number of input samples */ +); + +/* Description: Hybrid IIR/FIR polyphase implementation of resampling */ +void silk_resampler_private_down_FIR( + void *SS, /* I/O Resampler state */ + opus_int16 out[], /* O Output signal */ + const opus_int16 in[], /* I Input signal */ + opus_int32 inLen /* I Number of input samples */ +); + +/* Upsample by a factor 2, high quality */ +void silk_resampler_private_up2_HQ_wrapper( + void *SS, /* I/O Resampler state (unused) */ + opus_int16 *out, /* O Output signal [ 2 * len ] */ + const opus_int16 *in, /* I Input signal [ len ] */ + opus_int32 len /* I Number of input samples */ +); + +/* Upsample by a factor 2, high quality */ +void silk_resampler_private_up2_HQ( + opus_int32 *S, /* I/O Resampler state [ 6 ] */ + opus_int16 *out, /* O Output signal [ 2 * len ] */ + const opus_int16 *in, /* I Input signal [ len ] */ + opus_int32 len /* I Number of input samples */ +); + +/* Second order AR filter */ +void silk_resampler_private_AR2( + opus_int32 S[], /* I/O State vector [ 2 ] */ + opus_int32 out_Q8[], /* O Output signal */ + const opus_int16 in[], /* I Input signal */ + const opus_int16 A_Q14[], /* I AR coefficients, Q14 */ + opus_int32 len /* I Signal length */ +); + +#ifdef __cplusplus +} +#endif +#endif /* SILK_RESAMPLER_PRIVATE_H */ diff --git a/components/opus/libopus/silk/resampler_private_AR2.c b/components/opus/libopus/silk/resampler_private_AR2.c new file mode 100644 index 0000000..5fff237 --- /dev/null +++ b/components/opus/libopus/silk/resampler_private_AR2.c @@ -0,0 +1,55 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "SigProc_FIX.h" +#include "resampler_private.h" + +/* Second order AR filter with single delay elements */ +void silk_resampler_private_AR2( + opus_int32 S[], /* I/O State vector [ 2 ] */ + opus_int32 out_Q8[], /* O Output signal */ + const opus_int16 in[], /* I Input signal */ + const opus_int16 A_Q14[], /* I AR coefficients, Q14 */ + opus_int32 len /* I Signal length */ +) +{ + opus_int32 k; + opus_int32 out32; + + for( k = 0; k < len; k++ ) { + out32 = silk_ADD_LSHIFT32( S[ 0 ], (opus_int32)in[ k ], 8 ); + out_Q8[ k ] = out32; + out32 = silk_LSHIFT( out32, 2 ); + S[ 0 ] = silk_SMLAWB( S[ 1 ], out32, A_Q14[ 0 ] ); + S[ 1 ] = silk_SMULWB( out32, A_Q14[ 1 ] ); + } +} + diff --git a/components/opus/libopus/silk/resampler_private_IIR_FIR.c b/components/opus/libopus/silk/resampler_private_IIR_FIR.c new file mode 100644 index 0000000..6b2b3a2 --- /dev/null +++ b/components/opus/libopus/silk/resampler_private_IIR_FIR.c @@ -0,0 +1,107 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "SigProc_FIX.h" +#include "resampler_private.h" +#include "stack_alloc.h" + +static OPUS_INLINE opus_int16 *silk_resampler_private_IIR_FIR_INTERPOL( + opus_int16 *out, + opus_int16 *buf, + opus_int32 max_index_Q16, + opus_int32 index_increment_Q16 +) +{ + opus_int32 index_Q16, res_Q15; + opus_int16 *buf_ptr; + opus_int32 table_index; + + /* Interpolate upsampled signal and store in output array */ + for( index_Q16 = 0; index_Q16 < max_index_Q16; index_Q16 += index_increment_Q16 ) { + table_index = silk_SMULWB( index_Q16 & 0xFFFF, 12 ); + buf_ptr = &buf[ index_Q16 >> 16 ]; + + res_Q15 = silk_SMULBB( buf_ptr[ 0 ], silk_resampler_frac_FIR_12[ table_index ][ 0 ] ); + res_Q15 = silk_SMLABB( res_Q15, buf_ptr[ 1 ], silk_resampler_frac_FIR_12[ table_index ][ 1 ] ); + res_Q15 = silk_SMLABB( res_Q15, buf_ptr[ 2 ], silk_resampler_frac_FIR_12[ table_index ][ 2 ] ); + res_Q15 = silk_SMLABB( res_Q15, buf_ptr[ 3 ], silk_resampler_frac_FIR_12[ table_index ][ 3 ] ); + res_Q15 = silk_SMLABB( res_Q15, buf_ptr[ 4 ], silk_resampler_frac_FIR_12[ 11 - table_index ][ 3 ] ); + res_Q15 = silk_SMLABB( res_Q15, buf_ptr[ 5 ], silk_resampler_frac_FIR_12[ 11 - table_index ][ 2 ] ); + res_Q15 = silk_SMLABB( res_Q15, buf_ptr[ 6 ], silk_resampler_frac_FIR_12[ 11 - table_index ][ 1 ] ); + res_Q15 = silk_SMLABB( res_Q15, buf_ptr[ 7 ], silk_resampler_frac_FIR_12[ 11 - table_index ][ 0 ] ); + *out++ = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( res_Q15, 15 ) ); + } + return out; +} +/* Upsample using a combination of allpass-based 2x upsampling and FIR interpolation */ +void silk_resampler_private_IIR_FIR( + void *SS, /* I/O Resampler state */ + opus_int16 out[], /* O Output signal */ + const opus_int16 in[], /* I Input signal */ + opus_int32 inLen /* I Number of input samples */ +) +{ + silk_resampler_state_struct *S = (silk_resampler_state_struct *)SS; + opus_int32 nSamplesIn; + opus_int32 max_index_Q16, index_increment_Q16; + VARDECL( opus_int16, buf ); + SAVE_STACK; + + ALLOC( buf, 2 * S->batchSize + RESAMPLER_ORDER_FIR_12, opus_int16 ); + + /* Copy buffered samples to start of buffer */ + silk_memcpy( buf, S->sFIR.i16, RESAMPLER_ORDER_FIR_12 * sizeof( opus_int16 ) ); + + /* Iterate over blocks of frameSizeIn input samples */ + index_increment_Q16 = S->invRatio_Q16; + while( 1 ) { + nSamplesIn = silk_min( inLen, S->batchSize ); + + /* Upsample 2x */ + silk_resampler_private_up2_HQ( S->sIIR, &buf[ RESAMPLER_ORDER_FIR_12 ], in, nSamplesIn ); + + max_index_Q16 = silk_LSHIFT32( nSamplesIn, 16 + 1 ); /* + 1 because 2x upsampling */ + out = silk_resampler_private_IIR_FIR_INTERPOL( out, buf, max_index_Q16, index_increment_Q16 ); + in += nSamplesIn; + inLen -= nSamplesIn; + + if( inLen > 0 ) { + /* More iterations to do; copy last part of filtered signal to beginning of buffer */ + silk_memcpy( buf, &buf[ nSamplesIn << 1 ], RESAMPLER_ORDER_FIR_12 * sizeof( opus_int16 ) ); + } else { + break; + } + } + + /* Copy last part of filtered signal to the state for the next call */ + silk_memcpy( S->sFIR.i16, &buf[ nSamplesIn << 1 ], RESAMPLER_ORDER_FIR_12 * sizeof( opus_int16 ) ); + RESTORE_STACK; +} diff --git a/components/opus/libopus/silk/resampler_private_down_FIR.c b/components/opus/libopus/silk/resampler_private_down_FIR.c new file mode 100644 index 0000000..3e8735a --- /dev/null +++ b/components/opus/libopus/silk/resampler_private_down_FIR.c @@ -0,0 +1,194 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "SigProc_FIX.h" +#include "resampler_private.h" +#include "stack_alloc.h" + +static OPUS_INLINE opus_int16 *silk_resampler_private_down_FIR_INTERPOL( + opus_int16 *out, + opus_int32 *buf, + const opus_int16 *FIR_Coefs, + opus_int FIR_Order, + opus_int FIR_Fracs, + opus_int32 max_index_Q16, + opus_int32 index_increment_Q16 +) +{ + opus_int32 index_Q16, res_Q6; + opus_int32 *buf_ptr; + opus_int32 interpol_ind; + const opus_int16 *interpol_ptr; + + switch( FIR_Order ) { + case RESAMPLER_DOWN_ORDER_FIR0: + for( index_Q16 = 0; index_Q16 < max_index_Q16; index_Q16 += index_increment_Q16 ) { + /* Integer part gives pointer to buffered input */ + buf_ptr = buf + silk_RSHIFT( index_Q16, 16 ); + + /* Fractional part gives interpolation coefficients */ + interpol_ind = silk_SMULWB( index_Q16 & 0xFFFF, FIR_Fracs ); + + /* Inner product */ + interpol_ptr = &FIR_Coefs[ RESAMPLER_DOWN_ORDER_FIR0 / 2 * interpol_ind ]; + res_Q6 = silk_SMULWB( buf_ptr[ 0 ], interpol_ptr[ 0 ] ); + res_Q6 = silk_SMLAWB( res_Q6, buf_ptr[ 1 ], interpol_ptr[ 1 ] ); + res_Q6 = silk_SMLAWB( res_Q6, buf_ptr[ 2 ], interpol_ptr[ 2 ] ); + res_Q6 = silk_SMLAWB( res_Q6, buf_ptr[ 3 ], interpol_ptr[ 3 ] ); + res_Q6 = silk_SMLAWB( res_Q6, buf_ptr[ 4 ], interpol_ptr[ 4 ] ); + res_Q6 = silk_SMLAWB( res_Q6, buf_ptr[ 5 ], interpol_ptr[ 5 ] ); + res_Q6 = silk_SMLAWB( res_Q6, buf_ptr[ 6 ], interpol_ptr[ 6 ] ); + res_Q6 = silk_SMLAWB( res_Q6, buf_ptr[ 7 ], interpol_ptr[ 7 ] ); + res_Q6 = silk_SMLAWB( res_Q6, buf_ptr[ 8 ], interpol_ptr[ 8 ] ); + interpol_ptr = &FIR_Coefs[ RESAMPLER_DOWN_ORDER_FIR0 / 2 * ( FIR_Fracs - 1 - interpol_ind ) ]; + res_Q6 = silk_SMLAWB( res_Q6, buf_ptr[ 17 ], interpol_ptr[ 0 ] ); + res_Q6 = silk_SMLAWB( res_Q6, buf_ptr[ 16 ], interpol_ptr[ 1 ] ); + res_Q6 = silk_SMLAWB( res_Q6, buf_ptr[ 15 ], interpol_ptr[ 2 ] ); + res_Q6 = silk_SMLAWB( res_Q6, buf_ptr[ 14 ], interpol_ptr[ 3 ] ); + res_Q6 = silk_SMLAWB( res_Q6, buf_ptr[ 13 ], interpol_ptr[ 4 ] ); + res_Q6 = silk_SMLAWB( res_Q6, buf_ptr[ 12 ], interpol_ptr[ 5 ] ); + res_Q6 = silk_SMLAWB( res_Q6, buf_ptr[ 11 ], interpol_ptr[ 6 ] ); + res_Q6 = silk_SMLAWB( res_Q6, buf_ptr[ 10 ], interpol_ptr[ 7 ] ); + res_Q6 = silk_SMLAWB( res_Q6, buf_ptr[ 9 ], interpol_ptr[ 8 ] ); + + /* Scale down, saturate and store in output array */ + *out++ = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( res_Q6, 6 ) ); + } + break; + case RESAMPLER_DOWN_ORDER_FIR1: + for( index_Q16 = 0; index_Q16 < max_index_Q16; index_Q16 += index_increment_Q16 ) { + /* Integer part gives pointer to buffered input */ + buf_ptr = buf + silk_RSHIFT( index_Q16, 16 ); + + /* Inner product */ + res_Q6 = silk_SMULWB( silk_ADD32( buf_ptr[ 0 ], buf_ptr[ 23 ] ), FIR_Coefs[ 0 ] ); + res_Q6 = silk_SMLAWB( res_Q6, silk_ADD32( buf_ptr[ 1 ], buf_ptr[ 22 ] ), FIR_Coefs[ 1 ] ); + res_Q6 = silk_SMLAWB( res_Q6, silk_ADD32( buf_ptr[ 2 ], buf_ptr[ 21 ] ), FIR_Coefs[ 2 ] ); + res_Q6 = silk_SMLAWB( res_Q6, silk_ADD32( buf_ptr[ 3 ], buf_ptr[ 20 ] ), FIR_Coefs[ 3 ] ); + res_Q6 = silk_SMLAWB( res_Q6, silk_ADD32( buf_ptr[ 4 ], buf_ptr[ 19 ] ), FIR_Coefs[ 4 ] ); + res_Q6 = silk_SMLAWB( res_Q6, silk_ADD32( buf_ptr[ 5 ], buf_ptr[ 18 ] ), FIR_Coefs[ 5 ] ); + res_Q6 = silk_SMLAWB( res_Q6, silk_ADD32( buf_ptr[ 6 ], buf_ptr[ 17 ] ), FIR_Coefs[ 6 ] ); + res_Q6 = silk_SMLAWB( res_Q6, silk_ADD32( buf_ptr[ 7 ], buf_ptr[ 16 ] ), FIR_Coefs[ 7 ] ); + res_Q6 = silk_SMLAWB( res_Q6, silk_ADD32( buf_ptr[ 8 ], buf_ptr[ 15 ] ), FIR_Coefs[ 8 ] ); + res_Q6 = silk_SMLAWB( res_Q6, silk_ADD32( buf_ptr[ 9 ], buf_ptr[ 14 ] ), FIR_Coefs[ 9 ] ); + res_Q6 = silk_SMLAWB( res_Q6, silk_ADD32( buf_ptr[ 10 ], buf_ptr[ 13 ] ), FIR_Coefs[ 10 ] ); + res_Q6 = silk_SMLAWB( res_Q6, silk_ADD32( buf_ptr[ 11 ], buf_ptr[ 12 ] ), FIR_Coefs[ 11 ] ); + + /* Scale down, saturate and store in output array */ + *out++ = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( res_Q6, 6 ) ); + } + break; + case RESAMPLER_DOWN_ORDER_FIR2: + for( index_Q16 = 0; index_Q16 < max_index_Q16; index_Q16 += index_increment_Q16 ) { + /* Integer part gives pointer to buffered input */ + buf_ptr = buf + silk_RSHIFT( index_Q16, 16 ); + + /* Inner product */ + res_Q6 = silk_SMULWB( silk_ADD32( buf_ptr[ 0 ], buf_ptr[ 35 ] ), FIR_Coefs[ 0 ] ); + res_Q6 = silk_SMLAWB( res_Q6, silk_ADD32( buf_ptr[ 1 ], buf_ptr[ 34 ] ), FIR_Coefs[ 1 ] ); + res_Q6 = silk_SMLAWB( res_Q6, silk_ADD32( buf_ptr[ 2 ], buf_ptr[ 33 ] ), FIR_Coefs[ 2 ] ); + res_Q6 = silk_SMLAWB( res_Q6, silk_ADD32( buf_ptr[ 3 ], buf_ptr[ 32 ] ), FIR_Coefs[ 3 ] ); + res_Q6 = silk_SMLAWB( res_Q6, silk_ADD32( buf_ptr[ 4 ], buf_ptr[ 31 ] ), FIR_Coefs[ 4 ] ); + res_Q6 = silk_SMLAWB( res_Q6, silk_ADD32( buf_ptr[ 5 ], buf_ptr[ 30 ] ), FIR_Coefs[ 5 ] ); + res_Q6 = silk_SMLAWB( res_Q6, silk_ADD32( buf_ptr[ 6 ], buf_ptr[ 29 ] ), FIR_Coefs[ 6 ] ); + res_Q6 = silk_SMLAWB( res_Q6, silk_ADD32( buf_ptr[ 7 ], buf_ptr[ 28 ] ), FIR_Coefs[ 7 ] ); + res_Q6 = silk_SMLAWB( res_Q6, silk_ADD32( buf_ptr[ 8 ], buf_ptr[ 27 ] ), FIR_Coefs[ 8 ] ); + res_Q6 = silk_SMLAWB( res_Q6, silk_ADD32( buf_ptr[ 9 ], buf_ptr[ 26 ] ), FIR_Coefs[ 9 ] ); + res_Q6 = silk_SMLAWB( res_Q6, silk_ADD32( buf_ptr[ 10 ], buf_ptr[ 25 ] ), FIR_Coefs[ 10 ] ); + res_Q6 = silk_SMLAWB( res_Q6, silk_ADD32( buf_ptr[ 11 ], buf_ptr[ 24 ] ), FIR_Coefs[ 11 ] ); + res_Q6 = silk_SMLAWB( res_Q6, silk_ADD32( buf_ptr[ 12 ], buf_ptr[ 23 ] ), FIR_Coefs[ 12 ] ); + res_Q6 = silk_SMLAWB( res_Q6, silk_ADD32( buf_ptr[ 13 ], buf_ptr[ 22 ] ), FIR_Coefs[ 13 ] ); + res_Q6 = silk_SMLAWB( res_Q6, silk_ADD32( buf_ptr[ 14 ], buf_ptr[ 21 ] ), FIR_Coefs[ 14 ] ); + res_Q6 = silk_SMLAWB( res_Q6, silk_ADD32( buf_ptr[ 15 ], buf_ptr[ 20 ] ), FIR_Coefs[ 15 ] ); + res_Q6 = silk_SMLAWB( res_Q6, silk_ADD32( buf_ptr[ 16 ], buf_ptr[ 19 ] ), FIR_Coefs[ 16 ] ); + res_Q6 = silk_SMLAWB( res_Q6, silk_ADD32( buf_ptr[ 17 ], buf_ptr[ 18 ] ), FIR_Coefs[ 17 ] ); + + /* Scale down, saturate and store in output array */ + *out++ = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( res_Q6, 6 ) ); + } + break; + default: + celt_assert( 0 ); + } + return out; +} + +/* Resample with a 2nd order AR filter followed by FIR interpolation */ +void silk_resampler_private_down_FIR( + void *SS, /* I/O Resampler state */ + opus_int16 out[], /* O Output signal */ + const opus_int16 in[], /* I Input signal */ + opus_int32 inLen /* I Number of input samples */ +) +{ + silk_resampler_state_struct *S = (silk_resampler_state_struct *)SS; + opus_int32 nSamplesIn; + opus_int32 max_index_Q16, index_increment_Q16; + VARDECL( opus_int32, buf ); + const opus_int16 *FIR_Coefs; + SAVE_STACK; + + ALLOC( buf, S->batchSize + S->FIR_Order, opus_int32 ); + + /* Copy buffered samples to start of buffer */ + silk_memcpy( buf, S->sFIR.i32, S->FIR_Order * sizeof( opus_int32 ) ); + + FIR_Coefs = &S->Coefs[ 2 ]; + + /* Iterate over blocks of frameSizeIn input samples */ + index_increment_Q16 = S->invRatio_Q16; + while( 1 ) { + nSamplesIn = silk_min( inLen, S->batchSize ); + + /* Second-order AR filter (output in Q8) */ + silk_resampler_private_AR2( S->sIIR, &buf[ S->FIR_Order ], in, S->Coefs, nSamplesIn ); + + max_index_Q16 = silk_LSHIFT32( nSamplesIn, 16 ); + + /* Interpolate filtered signal */ + out = silk_resampler_private_down_FIR_INTERPOL( out, buf, FIR_Coefs, S->FIR_Order, + S->FIR_Fracs, max_index_Q16, index_increment_Q16 ); + + in += nSamplesIn; + inLen -= nSamplesIn; + + if( inLen > 1 ) { + /* More iterations to do; copy last part of filtered signal to beginning of buffer */ + silk_memcpy( buf, &buf[ nSamplesIn ], S->FIR_Order * sizeof( opus_int32 ) ); + } else { + break; + } + } + + /* Copy last part of filtered signal to the state for the next call */ + silk_memcpy( S->sFIR.i32, &buf[ nSamplesIn ], S->FIR_Order * sizeof( opus_int32 ) ); + RESTORE_STACK; +} diff --git a/components/opus/libopus/silk/resampler_private_up2_HQ.c b/components/opus/libopus/silk/resampler_private_up2_HQ.c new file mode 100644 index 0000000..c7ec8de --- /dev/null +++ b/components/opus/libopus/silk/resampler_private_up2_HQ.c @@ -0,0 +1,113 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "SigProc_FIX.h" +#include "resampler_private.h" + +/* Upsample by a factor 2, high quality */ +/* Uses 2nd order allpass filters for the 2x upsampling, followed by a */ +/* notch filter just above Nyquist. */ +void silk_resampler_private_up2_HQ( + opus_int32 *S, /* I/O Resampler state [ 6 ] */ + opus_int16 *out, /* O Output signal [ 2 * len ] */ + const opus_int16 *in, /* I Input signal [ len ] */ + opus_int32 len /* I Number of input samples */ +) +{ + opus_int32 k; + opus_int32 in32, out32_1, out32_2, Y, X; + + silk_assert( silk_resampler_up2_hq_0[ 0 ] > 0 ); + silk_assert( silk_resampler_up2_hq_0[ 1 ] > 0 ); + silk_assert( silk_resampler_up2_hq_0[ 2 ] < 0 ); + silk_assert( silk_resampler_up2_hq_1[ 0 ] > 0 ); + silk_assert( silk_resampler_up2_hq_1[ 1 ] > 0 ); + silk_assert( silk_resampler_up2_hq_1[ 2 ] < 0 ); + + /* Internal variables and state are in Q10 format */ + for( k = 0; k < len; k++ ) { + /* Convert to Q10 */ + in32 = silk_LSHIFT( (opus_int32)in[ k ], 10 ); + + /* First all-pass section for even output sample */ + Y = silk_SUB32( in32, S[ 0 ] ); + X = silk_SMULWB( Y, silk_resampler_up2_hq_0[ 0 ] ); + out32_1 = silk_ADD32( S[ 0 ], X ); + S[ 0 ] = silk_ADD32( in32, X ); + + /* Second all-pass section for even output sample */ + Y = silk_SUB32( out32_1, S[ 1 ] ); + X = silk_SMULWB( Y, silk_resampler_up2_hq_0[ 1 ] ); + out32_2 = silk_ADD32( S[ 1 ], X ); + S[ 1 ] = silk_ADD32( out32_1, X ); + + /* Third all-pass section for even output sample */ + Y = silk_SUB32( out32_2, S[ 2 ] ); + X = silk_SMLAWB( Y, Y, silk_resampler_up2_hq_0[ 2 ] ); + out32_1 = silk_ADD32( S[ 2 ], X ); + S[ 2 ] = silk_ADD32( out32_2, X ); + + /* Apply gain in Q15, convert back to int16 and store to output */ + out[ 2 * k ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( out32_1, 10 ) ); + + /* First all-pass section for odd output sample */ + Y = silk_SUB32( in32, S[ 3 ] ); + X = silk_SMULWB( Y, silk_resampler_up2_hq_1[ 0 ] ); + out32_1 = silk_ADD32( S[ 3 ], X ); + S[ 3 ] = silk_ADD32( in32, X ); + + /* Second all-pass section for odd output sample */ + Y = silk_SUB32( out32_1, S[ 4 ] ); + X = silk_SMULWB( Y, silk_resampler_up2_hq_1[ 1 ] ); + out32_2 = silk_ADD32( S[ 4 ], X ); + S[ 4 ] = silk_ADD32( out32_1, X ); + + /* Third all-pass section for odd output sample */ + Y = silk_SUB32( out32_2, S[ 5 ] ); + X = silk_SMLAWB( Y, Y, silk_resampler_up2_hq_1[ 2 ] ); + out32_1 = silk_ADD32( S[ 5 ], X ); + S[ 5 ] = silk_ADD32( out32_2, X ); + + /* Apply gain in Q15, convert back to int16 and store to output */ + out[ 2 * k + 1 ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( out32_1, 10 ) ); + } +} + +void silk_resampler_private_up2_HQ_wrapper( + void *SS, /* I/O Resampler state (unused) */ + opus_int16 *out, /* O Output signal [ 2 * len ] */ + const opus_int16 *in, /* I Input signal [ len ] */ + opus_int32 len /* I Number of input samples */ +) +{ + silk_resampler_state_struct *S = (silk_resampler_state_struct *)SS; + silk_resampler_private_up2_HQ( S->sIIR, out, in, len ); +} diff --git a/components/opus/libopus/silk/resampler_rom.c b/components/opus/libopus/silk/resampler_rom.c new file mode 100644 index 0000000..5e6b044 --- /dev/null +++ b/components/opus/libopus/silk/resampler_rom.c @@ -0,0 +1,96 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +/* Filter coefficients for IIR/FIR polyphase resampling * + * Total size: 179 Words (358 Bytes) */ + +#include "resampler_private.h" + +/* Matlab code for the notch filter coefficients: */ +/* B = [1, 0.147, 1]; A = [1, 0.107, 0.89]; G = 0.93; freqz(G * B, A, 2^14, 16e3); axis([0, 8000, -10, 1]) */ +/* fprintf('\t%6d, %6d, %6d, %6d\n', round(B(2)*2^16), round(-A(2)*2^16), round((1-A(3))*2^16), round(G*2^15)) */ +/* const opus_int16 silk_resampler_up2_hq_notch[ 4 ] = { 9634, -7012, 7209, 30474 }; */ + +/* Tables with IIR and FIR coefficients for fractional downsamplers (123 Words) */ +silk_DWORD_ALIGN const opus_int16 silk_Resampler_3_4_COEFS[ 2 + 3 * RESAMPLER_DOWN_ORDER_FIR0 / 2 ] = { + -20694, -13867, + -49, 64, 17, -157, 353, -496, 163, 11047, 22205, + -39, 6, 91, -170, 186, 23, -896, 6336, 19928, + -19, -36, 102, -89, -24, 328, -951, 2568, 15909, +}; + +silk_DWORD_ALIGN const opus_int16 silk_Resampler_2_3_COEFS[ 2 + 2 * RESAMPLER_DOWN_ORDER_FIR0 / 2 ] = { + -14457, -14019, + 64, 128, -122, 36, 310, -768, 584, 9267, 17733, + 12, 128, 18, -142, 288, -117, -865, 4123, 14459, +}; + +silk_DWORD_ALIGN const opus_int16 silk_Resampler_1_2_COEFS[ 2 + RESAMPLER_DOWN_ORDER_FIR1 / 2 ] = { + 616, -14323, + -10, 39, 58, -46, -84, 120, 184, -315, -541, 1284, 5380, 9024, +}; + +silk_DWORD_ALIGN const opus_int16 silk_Resampler_1_3_COEFS[ 2 + RESAMPLER_DOWN_ORDER_FIR2 / 2 ] = { + 16102, -15162, + -13, 0, 20, 26, 5, -31, -43, -4, 65, 90, 7, -157, -248, -44, 593, 1583, 2612, 3271, +}; + +silk_DWORD_ALIGN const opus_int16 silk_Resampler_1_4_COEFS[ 2 + RESAMPLER_DOWN_ORDER_FIR2 / 2 ] = { + 22500, -15099, + 3, -14, -20, -15, 2, 25, 37, 25, -16, -71, -107, -79, 50, 292, 623, 982, 1288, 1464, +}; + +silk_DWORD_ALIGN const opus_int16 silk_Resampler_1_6_COEFS[ 2 + RESAMPLER_DOWN_ORDER_FIR2 / 2 ] = { + 27540, -15257, + 17, 12, 8, 1, -10, -22, -30, -32, -22, 3, 44, 100, 168, 243, 317, 381, 429, 455, +}; + +silk_DWORD_ALIGN const opus_int16 silk_Resampler_2_3_COEFS_LQ[ 2 + 2 * 2 ] = { + -2797, -6507, + 4697, 10739, + 1567, 8276, +}; + +/* Table with interplation fractions of 1/24, 3/24, 5/24, ... , 23/24 : 23/24 (46 Words) */ +silk_DWORD_ALIGN const opus_int16 silk_resampler_frac_FIR_12[ 12 ][ RESAMPLER_ORDER_FIR_12 / 2 ] = { + { 189, -600, 617, 30567 }, + { 117, -159, -1070, 29704 }, + { 52, 221, -2392, 28276 }, + { -4, 529, -3350, 26341 }, + { -48, 758, -3956, 23973 }, + { -80, 905, -4235, 21254 }, + { -99, 972, -4222, 18278 }, + { -107, 967, -3957, 15143 }, + { -103, 896, -3487, 11950 }, + { -91, 773, -2865, 8798 }, + { -71, 611, -2143, 5784 }, + { -46, 425, -1375, 2996 }, +}; diff --git a/components/opus/libopus/silk/resampler_rom.h b/components/opus/libopus/silk/resampler_rom.h new file mode 100644 index 0000000..490b338 --- /dev/null +++ b/components/opus/libopus/silk/resampler_rom.h @@ -0,0 +1,68 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifndef SILK_FIX_RESAMPLER_ROM_H +#define SILK_FIX_RESAMPLER_ROM_H + +#ifdef __cplusplus +extern "C" +{ +#endif + +#include "typedef.h" +#include "resampler_structs.h" + +#define RESAMPLER_DOWN_ORDER_FIR0 18 +#define RESAMPLER_DOWN_ORDER_FIR1 24 +#define RESAMPLER_DOWN_ORDER_FIR2 36 +#define RESAMPLER_ORDER_FIR_12 8 + +/* Tables for 2x downsampler */ +static const opus_int16 silk_resampler_down2_0 = 9872; +static const opus_int16 silk_resampler_down2_1 = 39809 - 65536; + +/* Tables for 2x upsampler, high quality */ +static const opus_int16 silk_resampler_up2_hq_0[ 3 ] = { 1746, 14986, 39083 - 65536 }; +static const opus_int16 silk_resampler_up2_hq_1[ 3 ] = { 6854, 25769, 55542 - 65536 }; + +/* Tables with IIR and FIR coefficients for fractional downsamplers */ +extern const opus_int16 silk_Resampler_3_4_COEFS[ 2 + 3 * RESAMPLER_DOWN_ORDER_FIR0 / 2 ]; +extern const opus_int16 silk_Resampler_2_3_COEFS[ 2 + 2 * RESAMPLER_DOWN_ORDER_FIR0 / 2 ]; +extern const opus_int16 silk_Resampler_1_2_COEFS[ 2 + RESAMPLER_DOWN_ORDER_FIR1 / 2 ]; +extern const opus_int16 silk_Resampler_1_3_COEFS[ 2 + RESAMPLER_DOWN_ORDER_FIR2 / 2 ]; +extern const opus_int16 silk_Resampler_1_4_COEFS[ 2 + RESAMPLER_DOWN_ORDER_FIR2 / 2 ]; +extern const opus_int16 silk_Resampler_1_6_COEFS[ 2 + RESAMPLER_DOWN_ORDER_FIR2 / 2 ]; +extern const opus_int16 silk_Resampler_2_3_COEFS_LQ[ 2 + 2 * 2 ]; + +/* Table with interplation fractions of 1/24, 3/24, ..., 23/24 */ +extern const opus_int16 silk_resampler_frac_FIR_12[ 12 ][ RESAMPLER_ORDER_FIR_12 / 2 ]; + +#ifdef __cplusplus +} +#endif + +#endif /* SILK_FIX_RESAMPLER_ROM_H */ diff --git a/components/opus/libopus/silk/resampler_structs.h b/components/opus/libopus/silk/resampler_structs.h new file mode 100644 index 0000000..9e9457d --- /dev/null +++ b/components/opus/libopus/silk/resampler_structs.h @@ -0,0 +1,60 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifndef SILK_RESAMPLER_STRUCTS_H +#define SILK_RESAMPLER_STRUCTS_H + +#ifdef __cplusplus +extern "C" { +#endif + +#define SILK_RESAMPLER_MAX_FIR_ORDER 36 +#define SILK_RESAMPLER_MAX_IIR_ORDER 6 + +typedef struct _silk_resampler_state_struct{ + opus_int32 sIIR[ SILK_RESAMPLER_MAX_IIR_ORDER ]; /* this must be the first element of this struct */ + union{ + opus_int32 i32[ SILK_RESAMPLER_MAX_FIR_ORDER ]; + opus_int16 i16[ SILK_RESAMPLER_MAX_FIR_ORDER ]; + } sFIR; + opus_int16 delayBuf[ 48 ]; + opus_int resampler_function; + opus_int batchSize; + opus_int32 invRatio_Q16; + opus_int FIR_Order; + opus_int FIR_Fracs; + opus_int Fs_in_kHz; + opus_int Fs_out_kHz; + opus_int inputDelay; + const opus_int16 *Coefs; +} silk_resampler_state_struct; + +#ifdef __cplusplus +} +#endif +#endif /* SILK_RESAMPLER_STRUCTS_H */ + diff --git a/components/opus/libopus/silk/shell_coder.c b/components/opus/libopus/silk/shell_coder.c new file mode 100644 index 0000000..4af3414 --- /dev/null +++ b/components/opus/libopus/silk/shell_coder.c @@ -0,0 +1,151 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main.h" + +/* shell coder; pulse-subframe length is hardcoded */ + +static OPUS_INLINE void combine_pulses( + opus_int *out, /* O combined pulses vector [len] */ + const opus_int *in, /* I input vector [2 * len] */ + const opus_int len /* I number of OUTPUT samples */ +) +{ + opus_int k; + for( k = 0; k < len; k++ ) { + out[ k ] = in[ 2 * k ] + in[ 2 * k + 1 ]; + } +} + +static OPUS_INLINE void encode_split( + ec_enc *psRangeEnc, /* I/O compressor data structure */ + const opus_int p_child1, /* I pulse amplitude of first child subframe */ + const opus_int p, /* I pulse amplitude of current subframe */ + const opus_uint8 *shell_table /* I table of shell cdfs */ +) +{ + if( p > 0 ) { + ec_enc_icdf( psRangeEnc, p_child1, &shell_table[ silk_shell_code_table_offsets[ p ] ], 8 ); + } +} + +static OPUS_INLINE void decode_split( + opus_int16 *p_child1, /* O pulse amplitude of first child subframe */ + opus_int16 *p_child2, /* O pulse amplitude of second child subframe */ + ec_dec *psRangeDec, /* I/O Compressor data structure */ + const opus_int p, /* I pulse amplitude of current subframe */ + const opus_uint8 *shell_table /* I table of shell cdfs */ +) +{ + if( p > 0 ) { + p_child1[ 0 ] = ec_dec_icdf( psRangeDec, &shell_table[ silk_shell_code_table_offsets[ p ] ], 8 ); + p_child2[ 0 ] = p - p_child1[ 0 ]; + } else { + p_child1[ 0 ] = 0; + p_child2[ 0 ] = 0; + } +} + +/* Shell encoder, operates on one shell code frame of 16 pulses */ +void silk_shell_encoder( + ec_enc *psRangeEnc, /* I/O compressor data structure */ + const opus_int *pulses0 /* I data: nonnegative pulse amplitudes */ +) +{ + opus_int pulses1[ 8 ], pulses2[ 4 ], pulses3[ 2 ], pulses4[ 1 ]; + + /* this function operates on one shell code frame of 16 pulses */ + silk_assert( SHELL_CODEC_FRAME_LENGTH == 16 ); + + /* tree representation per pulse-subframe */ + combine_pulses( pulses1, pulses0, 8 ); + combine_pulses( pulses2, pulses1, 4 ); + combine_pulses( pulses3, pulses2, 2 ); + combine_pulses( pulses4, pulses3, 1 ); + + encode_split( psRangeEnc, pulses3[ 0 ], pulses4[ 0 ], silk_shell_code_table3 ); + + encode_split( psRangeEnc, pulses2[ 0 ], pulses3[ 0 ], silk_shell_code_table2 ); + + encode_split( psRangeEnc, pulses1[ 0 ], pulses2[ 0 ], silk_shell_code_table1 ); + encode_split( psRangeEnc, pulses0[ 0 ], pulses1[ 0 ], silk_shell_code_table0 ); + encode_split( psRangeEnc, pulses0[ 2 ], pulses1[ 1 ], silk_shell_code_table0 ); + + encode_split( psRangeEnc, pulses1[ 2 ], pulses2[ 1 ], silk_shell_code_table1 ); + encode_split( psRangeEnc, pulses0[ 4 ], pulses1[ 2 ], silk_shell_code_table0 ); + encode_split( psRangeEnc, pulses0[ 6 ], pulses1[ 3 ], silk_shell_code_table0 ); + + encode_split( psRangeEnc, pulses2[ 2 ], pulses3[ 1 ], silk_shell_code_table2 ); + + encode_split( psRangeEnc, pulses1[ 4 ], pulses2[ 2 ], silk_shell_code_table1 ); + encode_split( psRangeEnc, pulses0[ 8 ], pulses1[ 4 ], silk_shell_code_table0 ); + encode_split( psRangeEnc, pulses0[ 10 ], pulses1[ 5 ], silk_shell_code_table0 ); + + encode_split( psRangeEnc, pulses1[ 6 ], pulses2[ 3 ], silk_shell_code_table1 ); + encode_split( psRangeEnc, pulses0[ 12 ], pulses1[ 6 ], silk_shell_code_table0 ); + encode_split( psRangeEnc, pulses0[ 14 ], pulses1[ 7 ], silk_shell_code_table0 ); +} + + +/* Shell decoder, operates on one shell code frame of 16 pulses */ +void silk_shell_decoder( + opus_int16 *pulses0, /* O data: nonnegative pulse amplitudes */ + ec_dec *psRangeDec, /* I/O Compressor data structure */ + const opus_int pulses4 /* I number of pulses per pulse-subframe */ +) +{ + opus_int16 pulses3[ 2 ], pulses2[ 4 ], pulses1[ 8 ]; + + /* this function operates on one shell code frame of 16 pulses */ + silk_assert( SHELL_CODEC_FRAME_LENGTH == 16 ); + + decode_split( &pulses3[ 0 ], &pulses3[ 1 ], psRangeDec, pulses4, silk_shell_code_table3 ); + + decode_split( &pulses2[ 0 ], &pulses2[ 1 ], psRangeDec, pulses3[ 0 ], silk_shell_code_table2 ); + + decode_split( &pulses1[ 0 ], &pulses1[ 1 ], psRangeDec, pulses2[ 0 ], silk_shell_code_table1 ); + decode_split( &pulses0[ 0 ], &pulses0[ 1 ], psRangeDec, pulses1[ 0 ], silk_shell_code_table0 ); + decode_split( &pulses0[ 2 ], &pulses0[ 3 ], psRangeDec, pulses1[ 1 ], silk_shell_code_table0 ); + + decode_split( &pulses1[ 2 ], &pulses1[ 3 ], psRangeDec, pulses2[ 1 ], silk_shell_code_table1 ); + decode_split( &pulses0[ 4 ], &pulses0[ 5 ], psRangeDec, pulses1[ 2 ], silk_shell_code_table0 ); + decode_split( &pulses0[ 6 ], &pulses0[ 7 ], psRangeDec, pulses1[ 3 ], silk_shell_code_table0 ); + + decode_split( &pulses2[ 2 ], &pulses2[ 3 ], psRangeDec, pulses3[ 1 ], silk_shell_code_table2 ); + + decode_split( &pulses1[ 4 ], &pulses1[ 5 ], psRangeDec, pulses2[ 2 ], silk_shell_code_table1 ); + decode_split( &pulses0[ 8 ], &pulses0[ 9 ], psRangeDec, pulses1[ 4 ], silk_shell_code_table0 ); + decode_split( &pulses0[ 10 ], &pulses0[ 11 ], psRangeDec, pulses1[ 5 ], silk_shell_code_table0 ); + + decode_split( &pulses1[ 6 ], &pulses1[ 7 ], psRangeDec, pulses2[ 3 ], silk_shell_code_table1 ); + decode_split( &pulses0[ 12 ], &pulses0[ 13 ], psRangeDec, pulses1[ 6 ], silk_shell_code_table0 ); + decode_split( &pulses0[ 14 ], &pulses0[ 15 ], psRangeDec, pulses1[ 7 ], silk_shell_code_table0 ); +} diff --git a/components/opus/libopus/silk/sigm_Q15.c b/components/opus/libopus/silk/sigm_Q15.c new file mode 100644 index 0000000..3c507d2 --- /dev/null +++ b/components/opus/libopus/silk/sigm_Q15.c @@ -0,0 +1,76 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +/* Approximate sigmoid function */ + +#include "SigProc_FIX.h" + +/* fprintf(1, '%d, ', round(1024 * ([1 ./ (1 + exp(-(1:5))), 1] - 1 ./ (1 + exp(-(0:5)))))); */ +static const opus_int32 sigm_LUT_slope_Q10[ 6 ] = { + 237, 153, 73, 30, 12, 7 +}; +/* fprintf(1, '%d, ', round(32767 * 1 ./ (1 + exp(-(0:5))))); */ +static const opus_int32 sigm_LUT_pos_Q15[ 6 ] = { + 16384, 23955, 28861, 31213, 32178, 32548 +}; +/* fprintf(1, '%d, ', round(32767 * 1 ./ (1 + exp((0:5))))); */ +static const opus_int32 sigm_LUT_neg_Q15[ 6 ] = { + 16384, 8812, 3906, 1554, 589, 219 +}; + +opus_int silk_sigm_Q15( + opus_int in_Q5 /* I */ +) +{ + opus_int ind; + + if( in_Q5 < 0 ) { + /* Negative input */ + in_Q5 = -in_Q5; + if( in_Q5 >= 6 * 32 ) { + return 0; /* Clip */ + } else { + /* Linear interpolation of look up table */ + ind = silk_RSHIFT( in_Q5, 5 ); + return( sigm_LUT_neg_Q15[ ind ] - silk_SMULBB( sigm_LUT_slope_Q10[ ind ], in_Q5 & 0x1F ) ); + } + } else { + /* Positive input */ + if( in_Q5 >= 6 * 32 ) { + return 32767; /* clip */ + } else { + /* Linear interpolation of look up table */ + ind = silk_RSHIFT( in_Q5, 5 ); + return( sigm_LUT_pos_Q15[ ind ] + silk_SMULBB( sigm_LUT_slope_Q10[ ind ], in_Q5 & 0x1F ) ); + } + } +} + diff --git a/components/opus/libopus/silk/sort.c b/components/opus/libopus/silk/sort.c new file mode 100644 index 0000000..4fba16f --- /dev/null +++ b/components/opus/libopus/silk/sort.c @@ -0,0 +1,154 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +/* Insertion sort (fast for already almost sorted arrays): */ +/* Best case: O(n) for an already sorted array */ +/* Worst case: O(n^2) for an inversely sorted array */ +/* */ +/* Shell short: https://en.wikipedia.org/wiki/Shell_sort */ + +#include "SigProc_FIX.h" + +void silk_insertion_sort_increasing( + opus_int32 *a, /* I/O Unsorted / Sorted vector */ + opus_int *idx, /* O Index vector for the sorted elements */ + const opus_int L, /* I Vector length */ + const opus_int K /* I Number of correctly sorted positions */ +) +{ + opus_int32 value; + opus_int i, j; + + /* Safety checks */ + celt_assert( K > 0 ); + celt_assert( L > 0 ); + celt_assert( L >= K ); + + /* Write start indices in index vector */ + for( i = 0; i < K; i++ ) { + idx[ i ] = i; + } + + /* Sort vector elements by value, increasing order */ + for( i = 1; i < K; i++ ) { + value = a[ i ]; + for( j = i - 1; ( j >= 0 ) && ( value < a[ j ] ); j-- ) { + a[ j + 1 ] = a[ j ]; /* Shift value */ + idx[ j + 1 ] = idx[ j ]; /* Shift index */ + } + a[ j + 1 ] = value; /* Write value */ + idx[ j + 1 ] = i; /* Write index */ + } + + /* If less than L values are asked for, check the remaining values, */ + /* but only spend CPU to ensure that the K first values are correct */ + for( i = K; i < L; i++ ) { + value = a[ i ]; + if( value < a[ K - 1 ] ) { + for( j = K - 2; ( j >= 0 ) && ( value < a[ j ] ); j-- ) { + a[ j + 1 ] = a[ j ]; /* Shift value */ + idx[ j + 1 ] = idx[ j ]; /* Shift index */ + } + a[ j + 1 ] = value; /* Write value */ + idx[ j + 1 ] = i; /* Write index */ + } + } +} + +#ifdef FIXED_POINT +/* This function is only used by the fixed-point build */ +void silk_insertion_sort_decreasing_int16( + opus_int16 *a, /* I/O Unsorted / Sorted vector */ + opus_int *idx, /* O Index vector for the sorted elements */ + const opus_int L, /* I Vector length */ + const opus_int K /* I Number of correctly sorted positions */ +) +{ + opus_int i, j; + opus_int value; + + /* Safety checks */ + celt_assert( K > 0 ); + celt_assert( L > 0 ); + celt_assert( L >= K ); + + /* Write start indices in index vector */ + for( i = 0; i < K; i++ ) { + idx[ i ] = i; + } + + /* Sort vector elements by value, decreasing order */ + for( i = 1; i < K; i++ ) { + value = a[ i ]; + for( j = i - 1; ( j >= 0 ) && ( value > a[ j ] ); j-- ) { + a[ j + 1 ] = a[ j ]; /* Shift value */ + idx[ j + 1 ] = idx[ j ]; /* Shift index */ + } + a[ j + 1 ] = value; /* Write value */ + idx[ j + 1 ] = i; /* Write index */ + } + + /* If less than L values are asked for, check the remaining values, */ + /* but only spend CPU to ensure that the K first values are correct */ + for( i = K; i < L; i++ ) { + value = a[ i ]; + if( value > a[ K - 1 ] ) { + for( j = K - 2; ( j >= 0 ) && ( value > a[ j ] ); j-- ) { + a[ j + 1 ] = a[ j ]; /* Shift value */ + idx[ j + 1 ] = idx[ j ]; /* Shift index */ + } + a[ j + 1 ] = value; /* Write value */ + idx[ j + 1 ] = i; /* Write index */ + } + } +} +#endif + +void silk_insertion_sort_increasing_all_values_int16( + opus_int16 *a, /* I/O Unsorted / Sorted vector */ + const opus_int L /* I Vector length */ +) +{ + opus_int value; + opus_int i, j; + + /* Safety checks */ + celt_assert( L > 0 ); + + /* Sort vector elements by value, increasing order */ + for( i = 1; i < L; i++ ) { + value = a[ i ]; + for( j = i - 1; ( j >= 0 ) && ( value < a[ j ] ); j-- ) { + a[ j + 1 ] = a[ j ]; /* Shift value */ + } + a[ j + 1 ] = value; /* Write value */ + } +} diff --git a/components/opus/libopus/silk/stereo_LR_to_MS.c b/components/opus/libopus/silk/stereo_LR_to_MS.c new file mode 100644 index 0000000..c822666 --- /dev/null +++ b/components/opus/libopus/silk/stereo_LR_to_MS.c @@ -0,0 +1,229 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main.h" +#include "stack_alloc.h" + +/* Convert Left/Right stereo signal to adaptive Mid/Side representation */ +void silk_stereo_LR_to_MS( + stereo_enc_state *state, /* I/O State */ + opus_int16 x1[], /* I/O Left input signal, becomes mid signal */ + opus_int16 x2[], /* I/O Right input signal, becomes side signal */ + opus_int8 ix[ 2 ][ 3 ], /* O Quantization indices */ + opus_int8 *mid_only_flag, /* O Flag: only mid signal coded */ + opus_int32 mid_side_rates_bps[], /* O Bitrates for mid and side signals */ + opus_int32 total_rate_bps, /* I Total bitrate */ + opus_int prev_speech_act_Q8, /* I Speech activity level in previous frame */ + opus_int toMono, /* I Last frame before a stereo->mono transition */ + opus_int fs_kHz, /* I Sample rate (kHz) */ + opus_int frame_length /* I Number of samples */ +) +{ + opus_int n, is10msFrame, denom_Q16, delta0_Q13, delta1_Q13; + opus_int32 sum, diff, smooth_coef_Q16, pred_Q13[ 2 ], pred0_Q13, pred1_Q13; + opus_int32 LP_ratio_Q14, HP_ratio_Q14, frac_Q16, frac_3_Q16, min_mid_rate_bps, width_Q14, w_Q24, deltaw_Q24; + VARDECL( opus_int16, side ); + VARDECL( opus_int16, LP_mid ); + VARDECL( opus_int16, HP_mid ); + VARDECL( opus_int16, LP_side ); + VARDECL( opus_int16, HP_side ); + opus_int16 *mid = &x1[ -2 ]; + SAVE_STACK; + + ALLOC( side, frame_length + 2, opus_int16 ); + /* Convert to basic mid/side signals */ + for( n = 0; n < frame_length + 2; n++ ) { + sum = x1[ n - 2 ] + (opus_int32)x2[ n - 2 ]; + diff = x1[ n - 2 ] - (opus_int32)x2[ n - 2 ]; + mid[ n ] = (opus_int16)silk_RSHIFT_ROUND( sum, 1 ); + side[ n ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( diff, 1 ) ); + } + + /* Buffering */ + silk_memcpy( mid, state->sMid, 2 * sizeof( opus_int16 ) ); + silk_memcpy( side, state->sSide, 2 * sizeof( opus_int16 ) ); + silk_memcpy( state->sMid, &mid[ frame_length ], 2 * sizeof( opus_int16 ) ); + silk_memcpy( state->sSide, &side[ frame_length ], 2 * sizeof( opus_int16 ) ); + + /* LP and HP filter mid signal */ + ALLOC( LP_mid, frame_length, opus_int16 ); + ALLOC( HP_mid, frame_length, opus_int16 ); + for( n = 0; n < frame_length; n++ ) { + sum = silk_RSHIFT_ROUND( silk_ADD_LSHIFT( mid[ n ] + (opus_int32)mid[ n + 2 ], mid[ n + 1 ], 1 ), 2 ); + LP_mid[ n ] = sum; + HP_mid[ n ] = mid[ n + 1 ] - sum; + } + + /* LP and HP filter side signal */ + ALLOC( LP_side, frame_length, opus_int16 ); + ALLOC( HP_side, frame_length, opus_int16 ); + for( n = 0; n < frame_length; n++ ) { + sum = silk_RSHIFT_ROUND( silk_ADD_LSHIFT( side[ n ] + (opus_int32)side[ n + 2 ], side[ n + 1 ], 1 ), 2 ); + LP_side[ n ] = sum; + HP_side[ n ] = side[ n + 1 ] - sum; + } + + /* Find energies and predictors */ + is10msFrame = frame_length == 10 * fs_kHz; + smooth_coef_Q16 = is10msFrame ? + SILK_FIX_CONST( STEREO_RATIO_SMOOTH_COEF / 2, 16 ) : + SILK_FIX_CONST( STEREO_RATIO_SMOOTH_COEF, 16 ); + smooth_coef_Q16 = silk_SMULWB( silk_SMULBB( prev_speech_act_Q8, prev_speech_act_Q8 ), smooth_coef_Q16 ); + + pred_Q13[ 0 ] = silk_stereo_find_predictor( &LP_ratio_Q14, LP_mid, LP_side, &state->mid_side_amp_Q0[ 0 ], frame_length, smooth_coef_Q16 ); + pred_Q13[ 1 ] = silk_stereo_find_predictor( &HP_ratio_Q14, HP_mid, HP_side, &state->mid_side_amp_Q0[ 2 ], frame_length, smooth_coef_Q16 ); + /* Ratio of the norms of residual and mid signals */ + frac_Q16 = silk_SMLABB( HP_ratio_Q14, LP_ratio_Q14, 3 ); + frac_Q16 = silk_min( frac_Q16, SILK_FIX_CONST( 1, 16 ) ); + + /* Determine bitrate distribution between mid and side, and possibly reduce stereo width */ + total_rate_bps -= is10msFrame ? 1200 : 600; /* Subtract approximate bitrate for coding stereo parameters */ + if( total_rate_bps < 1 ) { + total_rate_bps = 1; + } + min_mid_rate_bps = silk_SMLABB( 2000, fs_kHz, 600 ); + silk_assert( min_mid_rate_bps < 32767 ); + /* Default bitrate distribution: 8 parts for Mid and (5+3*frac) parts for Side. so: mid_rate = ( 8 / ( 13 + 3 * frac ) ) * total_ rate */ + frac_3_Q16 = silk_MUL( 3, frac_Q16 ); + mid_side_rates_bps[ 0 ] = silk_DIV32_varQ( total_rate_bps, SILK_FIX_CONST( 8 + 5, 16 ) + frac_3_Q16, 16+3 ); + /* If Mid bitrate below minimum, reduce stereo width */ + if( mid_side_rates_bps[ 0 ] < min_mid_rate_bps ) { + mid_side_rates_bps[ 0 ] = min_mid_rate_bps; + mid_side_rates_bps[ 1 ] = total_rate_bps - mid_side_rates_bps[ 0 ]; + /* width = 4 * ( 2 * side_rate - min_rate ) / ( ( 1 + 3 * frac ) * min_rate ) */ + width_Q14 = silk_DIV32_varQ( silk_LSHIFT( mid_side_rates_bps[ 1 ], 1 ) - min_mid_rate_bps, + silk_SMULWB( SILK_FIX_CONST( 1, 16 ) + frac_3_Q16, min_mid_rate_bps ), 14+2 ); + width_Q14 = silk_LIMIT( width_Q14, 0, SILK_FIX_CONST( 1, 14 ) ); + } else { + mid_side_rates_bps[ 1 ] = total_rate_bps - mid_side_rates_bps[ 0 ]; + width_Q14 = SILK_FIX_CONST( 1, 14 ); + } + + /* Smoother */ + state->smth_width_Q14 = (opus_int16)silk_SMLAWB( state->smth_width_Q14, width_Q14 - state->smth_width_Q14, smooth_coef_Q16 ); + + /* At very low bitrates or for inputs that are nearly amplitude panned, switch to panned-mono coding */ + *mid_only_flag = 0; + if( toMono ) { + /* Last frame before stereo->mono transition; collapse stereo width */ + width_Q14 = 0; + pred_Q13[ 0 ] = 0; + pred_Q13[ 1 ] = 0; + silk_stereo_quant_pred( pred_Q13, ix ); + } else if( state->width_prev_Q14 == 0 && + ( 8 * total_rate_bps < 13 * min_mid_rate_bps || silk_SMULWB( frac_Q16, state->smth_width_Q14 ) < SILK_FIX_CONST( 0.05, 14 ) ) ) + { + /* Code as panned-mono; previous frame already had zero width */ + /* Scale down and quantize predictors */ + pred_Q13[ 0 ] = silk_RSHIFT( silk_SMULBB( state->smth_width_Q14, pred_Q13[ 0 ] ), 14 ); + pred_Q13[ 1 ] = silk_RSHIFT( silk_SMULBB( state->smth_width_Q14, pred_Q13[ 1 ] ), 14 ); + silk_stereo_quant_pred( pred_Q13, ix ); + /* Collapse stereo width */ + width_Q14 = 0; + pred_Q13[ 0 ] = 0; + pred_Q13[ 1 ] = 0; + mid_side_rates_bps[ 0 ] = total_rate_bps; + mid_side_rates_bps[ 1 ] = 0; + *mid_only_flag = 1; + } else if( state->width_prev_Q14 != 0 && + ( 8 * total_rate_bps < 11 * min_mid_rate_bps || silk_SMULWB( frac_Q16, state->smth_width_Q14 ) < SILK_FIX_CONST( 0.02, 14 ) ) ) + { + /* Transition to zero-width stereo */ + /* Scale down and quantize predictors */ + pred_Q13[ 0 ] = silk_RSHIFT( silk_SMULBB( state->smth_width_Q14, pred_Q13[ 0 ] ), 14 ); + pred_Q13[ 1 ] = silk_RSHIFT( silk_SMULBB( state->smth_width_Q14, pred_Q13[ 1 ] ), 14 ); + silk_stereo_quant_pred( pred_Q13, ix ); + /* Collapse stereo width */ + width_Q14 = 0; + pred_Q13[ 0 ] = 0; + pred_Q13[ 1 ] = 0; + } else if( state->smth_width_Q14 > SILK_FIX_CONST( 0.95, 14 ) ) { + /* Full-width stereo coding */ + silk_stereo_quant_pred( pred_Q13, ix ); + width_Q14 = SILK_FIX_CONST( 1, 14 ); + } else { + /* Reduced-width stereo coding; scale down and quantize predictors */ + pred_Q13[ 0 ] = silk_RSHIFT( silk_SMULBB( state->smth_width_Q14, pred_Q13[ 0 ] ), 14 ); + pred_Q13[ 1 ] = silk_RSHIFT( silk_SMULBB( state->smth_width_Q14, pred_Q13[ 1 ] ), 14 ); + silk_stereo_quant_pred( pred_Q13, ix ); + width_Q14 = state->smth_width_Q14; + } + + /* Make sure to keep on encoding until the tapered output has been transmitted */ + if( *mid_only_flag == 1 ) { + state->silent_side_len += frame_length - STEREO_INTERP_LEN_MS * fs_kHz; + if( state->silent_side_len < LA_SHAPE_MS * fs_kHz ) { + *mid_only_flag = 0; + } else { + /* Limit to avoid wrapping around */ + state->silent_side_len = 10000; + } + } else { + state->silent_side_len = 0; + } + + if( *mid_only_flag == 0 && mid_side_rates_bps[ 1 ] < 1 ) { + mid_side_rates_bps[ 1 ] = 1; + mid_side_rates_bps[ 0 ] = silk_max_int( 1, total_rate_bps - mid_side_rates_bps[ 1 ]); + } + + /* Interpolate predictors and subtract prediction from side channel */ + pred0_Q13 = -state->pred_prev_Q13[ 0 ]; + pred1_Q13 = -state->pred_prev_Q13[ 1 ]; + w_Q24 = silk_LSHIFT( state->width_prev_Q14, 10 ); + denom_Q16 = silk_DIV32_16( (opus_int32)1 << 16, STEREO_INTERP_LEN_MS * fs_kHz ); + delta0_Q13 = -silk_RSHIFT_ROUND( silk_SMULBB( pred_Q13[ 0 ] - state->pred_prev_Q13[ 0 ], denom_Q16 ), 16 ); + delta1_Q13 = -silk_RSHIFT_ROUND( silk_SMULBB( pred_Q13[ 1 ] - state->pred_prev_Q13[ 1 ], denom_Q16 ), 16 ); + deltaw_Q24 = silk_LSHIFT( silk_SMULWB( width_Q14 - state->width_prev_Q14, denom_Q16 ), 10 ); + for( n = 0; n < STEREO_INTERP_LEN_MS * fs_kHz; n++ ) { + pred0_Q13 += delta0_Q13; + pred1_Q13 += delta1_Q13; + w_Q24 += deltaw_Q24; + sum = silk_LSHIFT( silk_ADD_LSHIFT( mid[ n ] + (opus_int32)mid[ n + 2 ], mid[ n + 1 ], 1 ), 9 ); /* Q11 */ + sum = silk_SMLAWB( silk_SMULWB( w_Q24, side[ n + 1 ] ), sum, pred0_Q13 ); /* Q8 */ + sum = silk_SMLAWB( sum, silk_LSHIFT( (opus_int32)mid[ n + 1 ], 11 ), pred1_Q13 ); /* Q8 */ + x2[ n - 1 ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( sum, 8 ) ); + } + + pred0_Q13 = -pred_Q13[ 0 ]; + pred1_Q13 = -pred_Q13[ 1 ]; + w_Q24 = silk_LSHIFT( width_Q14, 10 ); + for( n = STEREO_INTERP_LEN_MS * fs_kHz; n < frame_length; n++ ) { + sum = silk_LSHIFT( silk_ADD_LSHIFT( mid[ n ] + (opus_int32)mid[ n + 2 ], mid[ n + 1 ], 1 ), 9 ); /* Q11 */ + sum = silk_SMLAWB( silk_SMULWB( w_Q24, side[ n + 1 ] ), sum, pred0_Q13 ); /* Q8 */ + sum = silk_SMLAWB( sum, silk_LSHIFT( (opus_int32)mid[ n + 1 ], 11 ), pred1_Q13 ); /* Q8 */ + x2[ n - 1 ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( sum, 8 ) ); + } + state->pred_prev_Q13[ 0 ] = (opus_int16)pred_Q13[ 0 ]; + state->pred_prev_Q13[ 1 ] = (opus_int16)pred_Q13[ 1 ]; + state->width_prev_Q14 = (opus_int16)width_Q14; + RESTORE_STACK; +} diff --git a/components/opus/libopus/silk/stereo_MS_to_LR.c b/components/opus/libopus/silk/stereo_MS_to_LR.c new file mode 100644 index 0000000..62521a4 --- /dev/null +++ b/components/opus/libopus/silk/stereo_MS_to_LR.c @@ -0,0 +1,85 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main.h" + +/* Convert adaptive Mid/Side representation to Left/Right stereo signal */ +void silk_stereo_MS_to_LR( + stereo_dec_state *state, /* I/O State */ + opus_int16 x1[], /* I/O Left input signal, becomes mid signal */ + opus_int16 x2[], /* I/O Right input signal, becomes side signal */ + const opus_int32 pred_Q13[], /* I Predictors */ + opus_int fs_kHz, /* I Samples rate (kHz) */ + opus_int frame_length /* I Number of samples */ +) +{ + opus_int n, denom_Q16, delta0_Q13, delta1_Q13; + opus_int32 sum, diff, pred0_Q13, pred1_Q13; + + /* Buffering */ + silk_memcpy( x1, state->sMid, 2 * sizeof( opus_int16 ) ); + silk_memcpy( x2, state->sSide, 2 * sizeof( opus_int16 ) ); + silk_memcpy( state->sMid, &x1[ frame_length ], 2 * sizeof( opus_int16 ) ); + silk_memcpy( state->sSide, &x2[ frame_length ], 2 * sizeof( opus_int16 ) ); + + /* Interpolate predictors and add prediction to side channel */ + pred0_Q13 = state->pred_prev_Q13[ 0 ]; + pred1_Q13 = state->pred_prev_Q13[ 1 ]; + denom_Q16 = silk_DIV32_16( (opus_int32)1 << 16, STEREO_INTERP_LEN_MS * fs_kHz ); + delta0_Q13 = silk_RSHIFT_ROUND( silk_SMULBB( pred_Q13[ 0 ] - state->pred_prev_Q13[ 0 ], denom_Q16 ), 16 ); + delta1_Q13 = silk_RSHIFT_ROUND( silk_SMULBB( pred_Q13[ 1 ] - state->pred_prev_Q13[ 1 ], denom_Q16 ), 16 ); + for( n = 0; n < STEREO_INTERP_LEN_MS * fs_kHz; n++ ) { + pred0_Q13 += delta0_Q13; + pred1_Q13 += delta1_Q13; + sum = silk_LSHIFT( silk_ADD_LSHIFT( x1[ n ] + x1[ n + 2 ], x1[ n + 1 ], 1 ), 9 ); /* Q11 */ + sum = silk_SMLAWB( silk_LSHIFT( (opus_int32)x2[ n + 1 ], 8 ), sum, pred0_Q13 ); /* Q8 */ + sum = silk_SMLAWB( sum, silk_LSHIFT( (opus_int32)x1[ n + 1 ], 11 ), pred1_Q13 ); /* Q8 */ + x2[ n + 1 ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( sum, 8 ) ); + } + pred0_Q13 = pred_Q13[ 0 ]; + pred1_Q13 = pred_Q13[ 1 ]; + for( n = STEREO_INTERP_LEN_MS * fs_kHz; n < frame_length; n++ ) { + sum = silk_LSHIFT( silk_ADD_LSHIFT( x1[ n ] + x1[ n + 2 ], x1[ n + 1 ], 1 ), 9 ); /* Q11 */ + sum = silk_SMLAWB( silk_LSHIFT( (opus_int32)x2[ n + 1 ], 8 ), sum, pred0_Q13 ); /* Q8 */ + sum = silk_SMLAWB( sum, silk_LSHIFT( (opus_int32)x1[ n + 1 ], 11 ), pred1_Q13 ); /* Q8 */ + x2[ n + 1 ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( sum, 8 ) ); + } + state->pred_prev_Q13[ 0 ] = pred_Q13[ 0 ]; + state->pred_prev_Q13[ 1 ] = pred_Q13[ 1 ]; + + /* Convert to left/right signals */ + for( n = 0; n < frame_length; n++ ) { + sum = x1[ n + 1 ] + (opus_int32)x2[ n + 1 ]; + diff = x1[ n + 1 ] - (opus_int32)x2[ n + 1 ]; + x1[ n + 1 ] = (opus_int16)silk_SAT16( sum ); + x2[ n + 1 ] = (opus_int16)silk_SAT16( diff ); + } +} diff --git a/components/opus/libopus/silk/stereo_decode_pred.c b/components/opus/libopus/silk/stereo_decode_pred.c new file mode 100644 index 0000000..56ba392 --- /dev/null +++ b/components/opus/libopus/silk/stereo_decode_pred.c @@ -0,0 +1,73 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main.h" + +/* Decode mid/side predictors */ +void silk_stereo_decode_pred( + ec_dec *psRangeDec, /* I/O Compressor data structure */ + opus_int32 pred_Q13[] /* O Predictors */ +) +{ + opus_int n, ix[ 2 ][ 3 ]; + opus_int32 low_Q13, step_Q13; + + /* Entropy decoding */ + n = ec_dec_icdf( psRangeDec, silk_stereo_pred_joint_iCDF, 8 ); + ix[ 0 ][ 2 ] = silk_DIV32_16( n, 5 ); + ix[ 1 ][ 2 ] = n - 5 * ix[ 0 ][ 2 ]; + for( n = 0; n < 2; n++ ) { + ix[ n ][ 0 ] = ec_dec_icdf( psRangeDec, silk_uniform3_iCDF, 8 ); + ix[ n ][ 1 ] = ec_dec_icdf( psRangeDec, silk_uniform5_iCDF, 8 ); + } + + /* Dequantize */ + for( n = 0; n < 2; n++ ) { + ix[ n ][ 0 ] += 3 * ix[ n ][ 2 ]; + low_Q13 = silk_stereo_pred_quant_Q13[ ix[ n ][ 0 ] ]; + step_Q13 = silk_SMULWB( silk_stereo_pred_quant_Q13[ ix[ n ][ 0 ] + 1 ] - low_Q13, + SILK_FIX_CONST( 0.5 / STEREO_QUANT_SUB_STEPS, 16 ) ); + pred_Q13[ n ] = silk_SMLABB( low_Q13, step_Q13, 2 * ix[ n ][ 1 ] + 1 ); + } + + /* Subtract second from first predictor (helps when actually applying these) */ + pred_Q13[ 0 ] -= pred_Q13[ 1 ]; +} + +/* Decode mid-only flag */ +void silk_stereo_decode_mid_only( + ec_dec *psRangeDec, /* I/O Compressor data structure */ + opus_int *decode_only_mid /* O Flag that only mid channel has been coded */ +) +{ + /* Decode flag that only mid channel is coded */ + *decode_only_mid = ec_dec_icdf( psRangeDec, silk_stereo_only_code_mid_iCDF, 8 ); +} diff --git a/components/opus/libopus/silk/stereo_encode_pred.c b/components/opus/libopus/silk/stereo_encode_pred.c new file mode 100644 index 0000000..03becb6 --- /dev/null +++ b/components/opus/libopus/silk/stereo_encode_pred.c @@ -0,0 +1,62 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main.h" + +/* Entropy code the mid/side quantization indices */ +void silk_stereo_encode_pred( + ec_enc *psRangeEnc, /* I/O Compressor data structure */ + opus_int8 ix[ 2 ][ 3 ] /* I Quantization indices */ +) +{ + opus_int n; + + /* Entropy coding */ + n = 5 * ix[ 0 ][ 2 ] + ix[ 1 ][ 2 ]; + celt_assert( n < 25 ); + ec_enc_icdf( psRangeEnc, n, silk_stereo_pred_joint_iCDF, 8 ); + for( n = 0; n < 2; n++ ) { + celt_assert( ix[ n ][ 0 ] < 3 ); + celt_assert( ix[ n ][ 1 ] < STEREO_QUANT_SUB_STEPS ); + ec_enc_icdf( psRangeEnc, ix[ n ][ 0 ], silk_uniform3_iCDF, 8 ); + ec_enc_icdf( psRangeEnc, ix[ n ][ 1 ], silk_uniform5_iCDF, 8 ); + } +} + +/* Entropy code the mid-only flag */ +void silk_stereo_encode_mid_only( + ec_enc *psRangeEnc, /* I/O Compressor data structure */ + opus_int8 mid_only_flag +) +{ + /* Encode flag that only mid channel is coded */ + ec_enc_icdf( psRangeEnc, mid_only_flag, silk_stereo_only_code_mid_iCDF, 8 ); +} diff --git a/components/opus/libopus/silk/stereo_find_predictor.c b/components/opus/libopus/silk/stereo_find_predictor.c new file mode 100644 index 0000000..e30e90b --- /dev/null +++ b/components/opus/libopus/silk/stereo_find_predictor.c @@ -0,0 +1,79 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main.h" + +/* Find least-squares prediction gain for one signal based on another and quantize it */ +opus_int32 silk_stereo_find_predictor( /* O Returns predictor in Q13 */ + opus_int32 *ratio_Q14, /* O Ratio of residual and mid energies */ + const opus_int16 x[], /* I Basis signal */ + const opus_int16 y[], /* I Target signal */ + opus_int32 mid_res_amp_Q0[], /* I/O Smoothed mid, residual norms */ + opus_int length, /* I Number of samples */ + opus_int smooth_coef_Q16 /* I Smoothing coefficient */ +) +{ + opus_int scale, scale1, scale2; + opus_int32 nrgx, nrgy, corr, pred_Q13, pred2_Q10; + + /* Find predictor */ + silk_sum_sqr_shift( &nrgx, &scale1, x, length ); + silk_sum_sqr_shift( &nrgy, &scale2, y, length ); + scale = silk_max_int( scale1, scale2 ); + scale = scale + ( scale & 1 ); /* make even */ + nrgy = silk_RSHIFT32( nrgy, scale - scale2 ); + nrgx = silk_RSHIFT32( nrgx, scale - scale1 ); + nrgx = silk_max_int( nrgx, 1 ); + corr = silk_inner_prod_aligned_scale( x, y, scale, length ); + pred_Q13 = silk_DIV32_varQ( corr, nrgx, 13 ); + pred_Q13 = silk_LIMIT( pred_Q13, -(1 << 14), 1 << 14 ); + pred2_Q10 = silk_SMULWB( pred_Q13, pred_Q13 ); + + /* Faster update for signals with large prediction parameters */ + smooth_coef_Q16 = (opus_int)silk_max_int( smooth_coef_Q16, silk_abs( pred2_Q10 ) ); + + /* Smoothed mid and residual norms */ + silk_assert( smooth_coef_Q16 < 32768 ); + scale = silk_RSHIFT( scale, 1 ); + mid_res_amp_Q0[ 0 ] = silk_SMLAWB( mid_res_amp_Q0[ 0 ], silk_LSHIFT( silk_SQRT_APPROX( nrgx ), scale ) - mid_res_amp_Q0[ 0 ], + smooth_coef_Q16 ); + /* Residual energy = nrgy - 2 * pred * corr + pred^2 * nrgx */ + nrgy = silk_SUB_LSHIFT32( nrgy, silk_SMULWB( corr, pred_Q13 ), 3 + 1 ); + nrgy = silk_ADD_LSHIFT32( nrgy, silk_SMULWB( nrgx, pred2_Q10 ), 6 ); + mid_res_amp_Q0[ 1 ] = silk_SMLAWB( mid_res_amp_Q0[ 1 ], silk_LSHIFT( silk_SQRT_APPROX( nrgy ), scale ) - mid_res_amp_Q0[ 1 ], + smooth_coef_Q16 ); + + /* Ratio of smoothed residual and mid norms */ + *ratio_Q14 = silk_DIV32_varQ( mid_res_amp_Q0[ 1 ], silk_max( mid_res_amp_Q0[ 0 ], 1 ), 14 ); + *ratio_Q14 = silk_LIMIT( *ratio_Q14, 0, 32767 ); + + return pred_Q13; +} diff --git a/components/opus/libopus/silk/stereo_quant_pred.c b/components/opus/libopus/silk/stereo_quant_pred.c new file mode 100644 index 0000000..d4ced6c --- /dev/null +++ b/components/opus/libopus/silk/stereo_quant_pred.c @@ -0,0 +1,73 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "main.h" + +/* Quantize mid/side predictors */ +void silk_stereo_quant_pred( + opus_int32 pred_Q13[], /* I/O Predictors (out: quantized) */ + opus_int8 ix[ 2 ][ 3 ] /* O Quantization indices */ +) +{ + opus_int i, j, n; + opus_int32 low_Q13, step_Q13, lvl_Q13, err_min_Q13, err_Q13, quant_pred_Q13 = 0; + + /* Quantize */ + for( n = 0; n < 2; n++ ) { + /* Brute-force search over quantization levels */ + err_min_Q13 = silk_int32_MAX; + for( i = 0; i < STEREO_QUANT_TAB_SIZE - 1; i++ ) { + low_Q13 = silk_stereo_pred_quant_Q13[ i ]; + step_Q13 = silk_SMULWB( silk_stereo_pred_quant_Q13[ i + 1 ] - low_Q13, + SILK_FIX_CONST( 0.5 / STEREO_QUANT_SUB_STEPS, 16 ) ); + for( j = 0; j < STEREO_QUANT_SUB_STEPS; j++ ) { + lvl_Q13 = silk_SMLABB( low_Q13, step_Q13, 2 * j + 1 ); + err_Q13 = silk_abs( pred_Q13[ n ] - lvl_Q13 ); + if( err_Q13 < err_min_Q13 ) { + err_min_Q13 = err_Q13; + quant_pred_Q13 = lvl_Q13; + ix[ n ][ 0 ] = i; + ix[ n ][ 1 ] = j; + } else { + /* Error increasing, so we're past the optimum */ + goto done; + } + } + } + done: + ix[ n ][ 2 ] = silk_DIV32_16( ix[ n ][ 0 ], 3 ); + ix[ n ][ 0 ] -= ix[ n ][ 2 ] * 3; + pred_Q13[ n ] = quant_pred_Q13; + } + + /* Subtract second from first predictor (helps when actually applying these) */ + pred_Q13[ 0 ] -= pred_Q13[ 1 ]; +} diff --git a/components/opus/libopus/silk/structs.h b/components/opus/libopus/silk/structs.h new file mode 100644 index 0000000..3380c75 --- /dev/null +++ b/components/opus/libopus/silk/structs.h @@ -0,0 +1,329 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifndef SILK_STRUCTS_H +#define SILK_STRUCTS_H + +#include "typedef.h" +#include "SigProc_FIX.h" +#include "define.h" +#include "entenc.h" +#include "entdec.h" + +#ifdef __cplusplus +extern "C" +{ +#endif + +/************************************/ +/* Noise shaping quantization state */ +/************************************/ +typedef struct { + opus_int16 xq[ 2 * MAX_FRAME_LENGTH ]; /* Buffer for quantized output signal */ + opus_int32 sLTP_shp_Q14[ 2 * MAX_FRAME_LENGTH ]; + opus_int32 sLPC_Q14[ MAX_SUB_FRAME_LENGTH + NSQ_LPC_BUF_LENGTH ]; + opus_int32 sAR2_Q14[ MAX_SHAPE_LPC_ORDER ]; + opus_int32 sLF_AR_shp_Q14; + opus_int32 sDiff_shp_Q14; + opus_int lagPrev; + opus_int sLTP_buf_idx; + opus_int sLTP_shp_buf_idx; + opus_int32 rand_seed; + opus_int32 prev_gain_Q16; + opus_int rewhite_flag; +} silk_nsq_state; + +/********************************/ +/* VAD state */ +/********************************/ +typedef struct { + opus_int32 AnaState[ 2 ]; /* Analysis filterbank state: 0-8 kHz */ + opus_int32 AnaState1[ 2 ]; /* Analysis filterbank state: 0-4 kHz */ + opus_int32 AnaState2[ 2 ]; /* Analysis filterbank state: 0-2 kHz */ + opus_int32 XnrgSubfr[ VAD_N_BANDS ]; /* Subframe energies */ + opus_int32 NrgRatioSmth_Q8[ VAD_N_BANDS ]; /* Smoothed energy level in each band */ + opus_int16 HPstate; /* State of differentiator in the lowest band */ + opus_int32 NL[ VAD_N_BANDS ]; /* Noise energy level in each band */ + opus_int32 inv_NL[ VAD_N_BANDS ]; /* Inverse noise energy level in each band */ + opus_int32 NoiseLevelBias[ VAD_N_BANDS ]; /* Noise level estimator bias/offset */ + opus_int32 counter; /* Frame counter used in the initial phase */ +} silk_VAD_state; + +/* Variable cut-off low-pass filter state */ +typedef struct { + opus_int32 In_LP_State[ 2 ]; /* Low pass filter state */ + opus_int32 transition_frame_no; /* Counter which is mapped to a cut-off frequency */ + opus_int mode; /* Operating mode, <0: switch down, >0: switch up; 0: do nothing */ + opus_int32 saved_fs_kHz; /* If non-zero, holds the last sampling rate before a bandwidth switching reset. */ +} silk_LP_state; + +/* Structure containing NLSF codebook */ +typedef struct { + const opus_int16 nVectors; + const opus_int16 order; + const opus_int16 quantStepSize_Q16; + const opus_int16 invQuantStepSize_Q6; + const opus_uint8 *CB1_NLSF_Q8; + const opus_int16 *CB1_Wght_Q9; + const opus_uint8 *CB1_iCDF; + const opus_uint8 *pred_Q8; + const opus_uint8 *ec_sel; + const opus_uint8 *ec_iCDF; + const opus_uint8 *ec_Rates_Q5; + const opus_int16 *deltaMin_Q15; +} silk_NLSF_CB_struct; + +typedef struct { + opus_int16 pred_prev_Q13[ 2 ]; + opus_int16 sMid[ 2 ]; + opus_int16 sSide[ 2 ]; + opus_int32 mid_side_amp_Q0[ 4 ]; + opus_int16 smth_width_Q14; + opus_int16 width_prev_Q14; + opus_int16 silent_side_len; + opus_int8 predIx[ MAX_FRAMES_PER_PACKET ][ 2 ][ 3 ]; + opus_int8 mid_only_flags[ MAX_FRAMES_PER_PACKET ]; +} stereo_enc_state; + +typedef struct { + opus_int16 pred_prev_Q13[ 2 ]; + opus_int16 sMid[ 2 ]; + opus_int16 sSide[ 2 ]; +} stereo_dec_state; + +typedef struct { + opus_int8 GainsIndices[ MAX_NB_SUBFR ]; + opus_int8 LTPIndex[ MAX_NB_SUBFR ]; + opus_int8 NLSFIndices[ MAX_LPC_ORDER + 1 ]; + opus_int16 lagIndex; + opus_int8 contourIndex; + opus_int8 signalType; + opus_int8 quantOffsetType; + opus_int8 NLSFInterpCoef_Q2; + opus_int8 PERIndex; + opus_int8 LTP_scaleIndex; + opus_int8 Seed; +} SideInfoIndices; + +/********************************/ +/* Encoder state */ +/********************************/ +typedef struct { + opus_int32 In_HP_State[ 2 ]; /* High pass filter state */ + opus_int32 variable_HP_smth1_Q15; /* State of first smoother */ + opus_int32 variable_HP_smth2_Q15; /* State of second smoother */ + silk_LP_state sLP; /* Low pass filter state */ + silk_VAD_state sVAD; /* Voice activity detector state */ + silk_nsq_state sNSQ; /* Noise Shape Quantizer State */ + opus_int16 prev_NLSFq_Q15[ MAX_LPC_ORDER ]; /* Previously quantized NLSF vector */ + opus_int speech_activity_Q8; /* Speech activity */ + opus_int allow_bandwidth_switch; /* Flag indicating that switching of internal bandwidth is allowed */ + opus_int8 LBRRprevLastGainIndex; + opus_int8 prevSignalType; + opus_int prevLag; + opus_int pitch_LPC_win_length; + opus_int max_pitch_lag; /* Highest possible pitch lag (samples) */ + opus_int32 API_fs_Hz; /* API sampling frequency (Hz) */ + opus_int32 prev_API_fs_Hz; /* Previous API sampling frequency (Hz) */ + opus_int maxInternal_fs_Hz; /* Maximum internal sampling frequency (Hz) */ + opus_int minInternal_fs_Hz; /* Minimum internal sampling frequency (Hz) */ + opus_int desiredInternal_fs_Hz; /* Soft request for internal sampling frequency (Hz) */ + opus_int fs_kHz; /* Internal sampling frequency (kHz) */ + opus_int nb_subfr; /* Number of 5 ms subframes in a frame */ + opus_int frame_length; /* Frame length (samples) */ + opus_int subfr_length; /* Subframe length (samples) */ + opus_int ltp_mem_length; /* Length of LTP memory */ + opus_int la_pitch; /* Look-ahead for pitch analysis (samples) */ + opus_int la_shape; /* Look-ahead for noise shape analysis (samples) */ + opus_int shapeWinLength; /* Window length for noise shape analysis (samples) */ + opus_int32 TargetRate_bps; /* Target bitrate (bps) */ + opus_int PacketSize_ms; /* Number of milliseconds to put in each packet */ + opus_int PacketLoss_perc; /* Packet loss rate measured by farend */ + opus_int32 frameCounter; + opus_int Complexity; /* Complexity setting */ + opus_int nStatesDelayedDecision; /* Number of states in delayed decision quantization */ + opus_int useInterpolatedNLSFs; /* Flag for using NLSF interpolation */ + opus_int shapingLPCOrder; /* Filter order for noise shaping filters */ + opus_int predictLPCOrder; /* Filter order for prediction filters */ + opus_int pitchEstimationComplexity; /* Complexity level for pitch estimator */ + opus_int pitchEstimationLPCOrder; /* Whitening filter order for pitch estimator */ + opus_int32 pitchEstimationThreshold_Q16; /* Threshold for pitch estimator */ + opus_int32 sum_log_gain_Q7; /* Cumulative max prediction gain */ + opus_int NLSF_MSVQ_Survivors; /* Number of survivors in NLSF MSVQ */ + opus_int first_frame_after_reset; /* Flag for deactivating NLSF interpolation, pitch prediction */ + opus_int controlled_since_last_payload; /* Flag for ensuring codec_control only runs once per packet */ + opus_int warping_Q16; /* Warping parameter for warped noise shaping */ + opus_int useCBR; /* Flag to enable constant bitrate */ + opus_int prefillFlag; /* Flag to indicate that only buffers are prefilled, no coding */ + const opus_uint8 *pitch_lag_low_bits_iCDF; /* Pointer to iCDF table for low bits of pitch lag index */ + const opus_uint8 *pitch_contour_iCDF; /* Pointer to iCDF table for pitch contour index */ + const silk_NLSF_CB_struct *psNLSF_CB; /* Pointer to NLSF codebook */ + opus_int input_quality_bands_Q15[ VAD_N_BANDS ]; + opus_int input_tilt_Q15; + opus_int SNR_dB_Q7; /* Quality setting */ + + opus_int8 VAD_flags[ MAX_FRAMES_PER_PACKET ]; + opus_int8 LBRR_flag; + opus_int LBRR_flags[ MAX_FRAMES_PER_PACKET ]; + + SideInfoIndices indices; + opus_int8 pulses[ MAX_FRAME_LENGTH ]; + + int arch; + + /* Input/output buffering */ + opus_int16 inputBuf[ MAX_FRAME_LENGTH + 2 ]; /* Buffer containing input signal */ + opus_int inputBufIx; + opus_int nFramesPerPacket; + opus_int nFramesEncoded; /* Number of frames analyzed in current packet */ + + opus_int nChannelsAPI; + opus_int nChannelsInternal; + opus_int channelNb; + + /* Parameters For LTP scaling Control */ + opus_int frames_since_onset; + + /* Specifically for entropy coding */ + opus_int ec_prevSignalType; + opus_int16 ec_prevLagIndex; + + silk_resampler_state_struct resampler_state; + + /* DTX */ + opus_int useDTX; /* Flag to enable DTX */ + opus_int inDTX; /* Flag to signal DTX period */ + opus_int noSpeechCounter; /* Counts concecutive nonactive frames, used by DTX */ + + /* Inband Low Bitrate Redundancy (LBRR) data */ + opus_int useInBandFEC; /* Saves the API setting for query */ + opus_int LBRR_enabled; /* Depends on useInBandFRC, bitrate and packet loss rate */ + opus_int LBRR_GainIncreases; /* Gains increment for coding LBRR frames */ + SideInfoIndices indices_LBRR[ MAX_FRAMES_PER_PACKET ]; + opus_int8 pulses_LBRR[ MAX_FRAMES_PER_PACKET ][ MAX_FRAME_LENGTH ]; +} silk_encoder_state; + + +/* Struct for Packet Loss Concealment */ +typedef struct { + opus_int32 pitchL_Q8; /* Pitch lag to use for voiced concealment */ + opus_int16 LTPCoef_Q14[ LTP_ORDER ]; /* LTP coeficients to use for voiced concealment */ + opus_int16 prevLPC_Q12[ MAX_LPC_ORDER ]; + opus_int last_frame_lost; /* Was previous frame lost */ + opus_int32 rand_seed; /* Seed for unvoiced signal generation */ + opus_int16 randScale_Q14; /* Scaling of unvoiced random signal */ + opus_int32 conc_energy; + opus_int conc_energy_shift; + opus_int16 prevLTP_scale_Q14; + opus_int32 prevGain_Q16[ 2 ]; + opus_int fs_kHz; + opus_int nb_subfr; + opus_int subfr_length; +} silk_PLC_struct; + +/* Struct for CNG */ +typedef struct { + opus_int32 CNG_exc_buf_Q14[ MAX_FRAME_LENGTH ]; + opus_int16 CNG_smth_NLSF_Q15[ MAX_LPC_ORDER ]; + opus_int32 CNG_synth_state[ MAX_LPC_ORDER ]; + opus_int32 CNG_smth_Gain_Q16; + opus_int32 rand_seed; + opus_int fs_kHz; +} silk_CNG_struct; + +/********************************/ +/* Decoder state */ +/********************************/ +typedef struct { + opus_int32 prev_gain_Q16; + opus_int32 exc_Q14[ MAX_FRAME_LENGTH ]; + opus_int32 sLPC_Q14_buf[ MAX_LPC_ORDER ]; + opus_int16 outBuf[ MAX_FRAME_LENGTH + 2 * MAX_SUB_FRAME_LENGTH ]; /* Buffer for output signal */ + opus_int lagPrev; /* Previous Lag */ + opus_int8 LastGainIndex; /* Previous gain index */ + opus_int fs_kHz; /* Sampling frequency in kHz */ + opus_int32 fs_API_hz; /* API sample frequency (Hz) */ + opus_int nb_subfr; /* Number of 5 ms subframes in a frame */ + opus_int frame_length; /* Frame length (samples) */ + opus_int subfr_length; /* Subframe length (samples) */ + opus_int ltp_mem_length; /* Length of LTP memory */ + opus_int LPC_order; /* LPC order */ + opus_int16 prevNLSF_Q15[ MAX_LPC_ORDER ]; /* Used to interpolate LSFs */ + opus_int first_frame_after_reset; /* Flag for deactivating NLSF interpolation */ + const opus_uint8 *pitch_lag_low_bits_iCDF; /* Pointer to iCDF table for low bits of pitch lag index */ + const opus_uint8 *pitch_contour_iCDF; /* Pointer to iCDF table for pitch contour index */ + + /* For buffering payload in case of more frames per packet */ + opus_int nFramesDecoded; + opus_int nFramesPerPacket; + + /* Specifically for entropy coding */ + opus_int ec_prevSignalType; + opus_int16 ec_prevLagIndex; + + opus_int VAD_flags[ MAX_FRAMES_PER_PACKET ]; + opus_int LBRR_flag; + opus_int LBRR_flags[ MAX_FRAMES_PER_PACKET ]; + + silk_resampler_state_struct resampler_state; + + const silk_NLSF_CB_struct *psNLSF_CB; /* Pointer to NLSF codebook */ + + /* Quantization indices */ + SideInfoIndices indices; + + /* CNG state */ + silk_CNG_struct sCNG; + + /* Stuff used for PLC */ + opus_int lossCnt; + opus_int prevSignalType; + int arch; + + silk_PLC_struct sPLC; + +} silk_decoder_state; + +/************************/ +/* Decoder control */ +/************************/ +typedef struct { + /* Prediction and coding parameters */ + opus_int pitchL[ MAX_NB_SUBFR ]; + opus_int32 Gains_Q16[ MAX_NB_SUBFR ]; + /* Holds interpolated and final coefficients, 4-byte aligned */ + silk_DWORD_ALIGN opus_int16 PredCoef_Q12[ 2 ][ MAX_LPC_ORDER ]; + opus_int16 LTPCoef_Q14[ LTP_ORDER * MAX_NB_SUBFR ]; + opus_int LTP_scale_Q14; +} silk_decoder_control; + + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/components/opus/libopus/silk/sum_sqr_shift.c b/components/opus/libopus/silk/sum_sqr_shift.c new file mode 100644 index 0000000..4fd0c3d --- /dev/null +++ b/components/opus/libopus/silk/sum_sqr_shift.c @@ -0,0 +1,83 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "SigProc_FIX.h" + +/* Compute number of bits to right shift the sum of squares of a vector */ +/* of int16s to make it fit in an int32 */ +void silk_sum_sqr_shift( + opus_int32 *energy, /* O Energy of x, after shifting to the right */ + opus_int *shift, /* O Number of bits right shift applied to energy */ + const opus_int16 *x, /* I Input vector */ + opus_int len /* I Length of input vector */ +) +{ + opus_int i, shft; + opus_uint32 nrg_tmp; + opus_int32 nrg; + + /* Do a first run with the maximum shift we could have. */ + shft = 31-silk_CLZ32(len); + /* Let's be conservative with rounding and start with nrg=len. */ + nrg = len; + for( i = 0; i < len - 1; i += 2 ) { + nrg_tmp = silk_SMULBB( x[ i ], x[ i ] ); + nrg_tmp = silk_SMLABB_ovflw( nrg_tmp, x[ i + 1 ], x[ i + 1 ] ); + nrg = (opus_int32)silk_ADD_RSHIFT_uint( nrg, nrg_tmp, shft ); + } + if( i < len ) { + /* One sample left to process */ + nrg_tmp = silk_SMULBB( x[ i ], x[ i ] ); + nrg = (opus_int32)silk_ADD_RSHIFT_uint( nrg, nrg_tmp, shft ); + } + silk_assert( nrg >= 0 ); + /* Make sure the result will fit in a 32-bit signed integer with two bits + of headroom. */ + shft = silk_max_32(0, shft+3 - silk_CLZ32(nrg)); + nrg = 0; + for( i = 0 ; i < len - 1; i += 2 ) { + nrg_tmp = silk_SMULBB( x[ i ], x[ i ] ); + nrg_tmp = silk_SMLABB_ovflw( nrg_tmp, x[ i + 1 ], x[ i + 1 ] ); + nrg = (opus_int32)silk_ADD_RSHIFT_uint( nrg, nrg_tmp, shft ); + } + if( i < len ) { + /* One sample left to process */ + nrg_tmp = silk_SMULBB( x[ i ], x[ i ] ); + nrg = (opus_int32)silk_ADD_RSHIFT_uint( nrg, nrg_tmp, shft ); + } + + silk_assert( nrg >= 0 ); + + /* Output arguments */ + *shift = shft; + *energy = nrg; +} + diff --git a/components/opus/libopus/silk/table_LSF_cos.c b/components/opus/libopus/silk/table_LSF_cos.c new file mode 100644 index 0000000..ec9dc63 --- /dev/null +++ b/components/opus/libopus/silk/table_LSF_cos.c @@ -0,0 +1,70 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "tables.h" + +/* Cosine approximation table for LSF conversion */ +/* Q12 values (even) */ +const opus_int16 silk_LSFCosTab_FIX_Q12[ LSF_COS_TAB_SZ_FIX + 1 ] = { + 8192, 8190, 8182, 8170, + 8152, 8130, 8104, 8072, + 8034, 7994, 7946, 7896, + 7840, 7778, 7714, 7644, + 7568, 7490, 7406, 7318, + 7226, 7128, 7026, 6922, + 6812, 6698, 6580, 6458, + 6332, 6204, 6070, 5934, + 5792, 5648, 5502, 5352, + 5198, 5040, 4880, 4718, + 4552, 4382, 4212, 4038, + 3862, 3684, 3502, 3320, + 3136, 2948, 2760, 2570, + 2378, 2186, 1990, 1794, + 1598, 1400, 1202, 1002, + 802, 602, 402, 202, + 0, -202, -402, -602, + -802, -1002, -1202, -1400, + -1598, -1794, -1990, -2186, + -2378, -2570, -2760, -2948, + -3136, -3320, -3502, -3684, + -3862, -4038, -4212, -4382, + -4552, -4718, -4880, -5040, + -5198, -5352, -5502, -5648, + -5792, -5934, -6070, -6204, + -6332, -6458, -6580, -6698, + -6812, -6922, -7026, -7128, + -7226, -7318, -7406, -7490, + -7568, -7644, -7714, -7778, + -7840, -7896, -7946, -7994, + -8034, -8072, -8104, -8130, + -8152, -8170, -8182, -8190, + -8192 +}; diff --git a/components/opus/libopus/silk/tables.h b/components/opus/libopus/silk/tables.h new file mode 100644 index 0000000..95230c4 --- /dev/null +++ b/components/opus/libopus/silk/tables.h @@ -0,0 +1,114 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifndef SILK_TABLES_H +#define SILK_TABLES_H + +#include "define.h" +#include "structs.h" + +#ifdef __cplusplus +extern "C" +{ +#endif + +/* Entropy coding tables (with size in bytes indicated) */ +extern const opus_uint8 silk_gain_iCDF[ 3 ][ N_LEVELS_QGAIN / 8 ]; /* 24 */ +extern const opus_uint8 silk_delta_gain_iCDF[ MAX_DELTA_GAIN_QUANT - MIN_DELTA_GAIN_QUANT + 1 ]; /* 41 */ + +extern const opus_uint8 silk_pitch_lag_iCDF[ 2 * ( PITCH_EST_MAX_LAG_MS - PITCH_EST_MIN_LAG_MS ) ];/* 32 */ +extern const opus_uint8 silk_pitch_delta_iCDF[ 21 ]; /* 21 */ +extern const opus_uint8 silk_pitch_contour_iCDF[ 34 ]; /* 34 */ +extern const opus_uint8 silk_pitch_contour_NB_iCDF[ 11 ]; /* 11 */ +extern const opus_uint8 silk_pitch_contour_10_ms_iCDF[ 12 ]; /* 12 */ +extern const opus_uint8 silk_pitch_contour_10_ms_NB_iCDF[ 3 ]; /* 3 */ + +extern const opus_uint8 silk_pulses_per_block_iCDF[ N_RATE_LEVELS ][ SILK_MAX_PULSES + 2 ]; /* 180 */ +extern const opus_uint8 silk_pulses_per_block_BITS_Q5[ N_RATE_LEVELS - 1 ][ SILK_MAX_PULSES + 2 ]; /* 162 */ + +extern const opus_uint8 silk_rate_levels_iCDF[ 2 ][ N_RATE_LEVELS - 1 ]; /* 18 */ +extern const opus_uint8 silk_rate_levels_BITS_Q5[ 2 ][ N_RATE_LEVELS - 1 ]; /* 18 */ + +extern const opus_uint8 silk_max_pulses_table[ 4 ]; /* 4 */ + +extern const opus_uint8 silk_shell_code_table0[ 152 ]; /* 152 */ +extern const opus_uint8 silk_shell_code_table1[ 152 ]; /* 152 */ +extern const opus_uint8 silk_shell_code_table2[ 152 ]; /* 152 */ +extern const opus_uint8 silk_shell_code_table3[ 152 ]; /* 152 */ +extern const opus_uint8 silk_shell_code_table_offsets[ SILK_MAX_PULSES + 1 ]; /* 17 */ + +extern const opus_uint8 silk_lsb_iCDF[ 2 ]; /* 2 */ + +extern const opus_uint8 silk_sign_iCDF[ 42 ]; /* 42 */ + +extern const opus_uint8 silk_uniform3_iCDF[ 3 ]; /* 3 */ +extern const opus_uint8 silk_uniform4_iCDF[ 4 ]; /* 4 */ +extern const opus_uint8 silk_uniform5_iCDF[ 5 ]; /* 5 */ +extern const opus_uint8 silk_uniform6_iCDF[ 6 ]; /* 6 */ +extern const opus_uint8 silk_uniform8_iCDF[ 8 ]; /* 8 */ + +extern const opus_uint8 silk_NLSF_EXT_iCDF[ 7 ]; /* 7 */ + +extern const opus_uint8 silk_LTP_per_index_iCDF[ 3 ]; /* 3 */ +extern const opus_uint8 * const silk_LTP_gain_iCDF_ptrs[ NB_LTP_CBKS ]; /* 3 */ +extern const opus_uint8 * const silk_LTP_gain_BITS_Q5_ptrs[ NB_LTP_CBKS ]; /* 3 */ +extern const opus_int8 * const silk_LTP_vq_ptrs_Q7[ NB_LTP_CBKS ]; /* 168 */ +extern const opus_uint8 * const silk_LTP_vq_gain_ptrs_Q7[NB_LTP_CBKS]; +extern const opus_int8 silk_LTP_vq_sizes[ NB_LTP_CBKS ]; /* 3 */ + +extern const opus_uint8 silk_LTPscale_iCDF[ 3 ]; /* 4 */ +extern const opus_int16 silk_LTPScales_table_Q14[ 3 ]; /* 6 */ + +extern const opus_uint8 silk_type_offset_VAD_iCDF[ 4 ]; /* 4 */ +extern const opus_uint8 silk_type_offset_no_VAD_iCDF[ 2 ]; /* 2 */ + +extern const opus_int16 silk_stereo_pred_quant_Q13[ STEREO_QUANT_TAB_SIZE ]; /* 32 */ +extern const opus_uint8 silk_stereo_pred_joint_iCDF[ 25 ]; /* 25 */ +extern const opus_uint8 silk_stereo_only_code_mid_iCDF[ 2 ]; /* 2 */ + +extern const opus_uint8 * const silk_LBRR_flags_iCDF_ptr[ 2 ]; /* 10 */ + +extern const opus_uint8 silk_NLSF_interpolation_factor_iCDF[ 5 ]; /* 5 */ + +extern const silk_NLSF_CB_struct silk_NLSF_CB_WB; /* 1040 */ +extern const silk_NLSF_CB_struct silk_NLSF_CB_NB_MB; /* 728 */ + +/* Quantization offsets */ +extern const opus_int16 silk_Quantization_Offsets_Q10[ 2 ][ 2 ]; /* 8 */ + +/* Interpolation points for filter coefficients used in the bandwidth transition smoother */ +extern const opus_int32 silk_Transition_LP_B_Q28[ TRANSITION_INT_NUM ][ TRANSITION_NB ]; /* 60 */ +extern const opus_int32 silk_Transition_LP_A_Q28[ TRANSITION_INT_NUM ][ TRANSITION_NA ]; /* 60 */ + +/* Rom table with cosine values */ +extern const opus_int16 silk_LSFCosTab_FIX_Q12[ LSF_COS_TAB_SZ_FIX + 1 ]; /* 258 */ + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/components/opus/libopus/silk/tables_LTP.c b/components/opus/libopus/silk/tables_LTP.c new file mode 100644 index 0000000..5e12c86 --- /dev/null +++ b/components/opus/libopus/silk/tables_LTP.c @@ -0,0 +1,294 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "tables.h" + +const opus_uint8 silk_LTP_per_index_iCDF[3] = { + 179, 99, 0 +}; + +static const opus_uint8 silk_LTP_gain_iCDF_0[8] = { + 71, 56, 43, 30, 21, 12, 6, 0 +}; + +static const opus_uint8 silk_LTP_gain_iCDF_1[16] = { + 199, 165, 144, 124, 109, 96, 84, 71, + 61, 51, 42, 32, 23, 15, 8, 0 +}; + +static const opus_uint8 silk_LTP_gain_iCDF_2[32] = { + 241, 225, 211, 199, 187, 175, 164, 153, + 142, 132, 123, 114, 105, 96, 88, 80, + 72, 64, 57, 50, 44, 38, 33, 29, + 24, 20, 16, 12, 9, 5, 2, 0 +}; + +static const opus_uint8 silk_LTP_gain_BITS_Q5_0[8] = { + 15, 131, 138, 138, 155, 155, 173, 173 +}; + +static const opus_uint8 silk_LTP_gain_BITS_Q5_1[16] = { + 69, 93, 115, 118, 131, 138, 141, 138, + 150, 150, 155, 150, 155, 160, 166, 160 +}; + +static const opus_uint8 silk_LTP_gain_BITS_Q5_2[32] = { + 131, 128, 134, 141, 141, 141, 145, 145, + 145, 150, 155, 155, 155, 155, 160, 160, + 160, 160, 166, 166, 173, 173, 182, 192, + 182, 192, 192, 192, 205, 192, 205, 224 +}; + +const opus_uint8 * const silk_LTP_gain_iCDF_ptrs[NB_LTP_CBKS] = { + silk_LTP_gain_iCDF_0, + silk_LTP_gain_iCDF_1, + silk_LTP_gain_iCDF_2 +}; + +const opus_uint8 * const silk_LTP_gain_BITS_Q5_ptrs[NB_LTP_CBKS] = { + silk_LTP_gain_BITS_Q5_0, + silk_LTP_gain_BITS_Q5_1, + silk_LTP_gain_BITS_Q5_2 +}; + +static const opus_int8 silk_LTP_gain_vq_0[8][5] = +{ +{ + 4, 6, 24, 7, 5 +}, +{ + 0, 0, 2, 0, 0 +}, +{ + 12, 28, 41, 13, -4 +}, +{ + -9, 15, 42, 25, 14 +}, +{ + 1, -2, 62, 41, -9 +}, +{ + -10, 37, 65, -4, 3 +}, +{ + -6, 4, 66, 7, -8 +}, +{ + 16, 14, 38, -3, 33 +} +}; + +static const opus_int8 silk_LTP_gain_vq_1[16][5] = +{ +{ + 13, 22, 39, 23, 12 +}, +{ + -1, 36, 64, 27, -6 +}, +{ + -7, 10, 55, 43, 17 +}, +{ + 1, 1, 8, 1, 1 +}, +{ + 6, -11, 74, 53, -9 +}, +{ + -12, 55, 76, -12, 8 +}, +{ + -3, 3, 93, 27, -4 +}, +{ + 26, 39, 59, 3, -8 +}, +{ + 2, 0, 77, 11, 9 +}, +{ + -8, 22, 44, -6, 7 +}, +{ + 40, 9, 26, 3, 9 +}, +{ + -7, 20, 101, -7, 4 +}, +{ + 3, -8, 42, 26, 0 +}, +{ + -15, 33, 68, 2, 23 +}, +{ + -2, 55, 46, -2, 15 +}, +{ + 3, -1, 21, 16, 41 +} +}; + +static const opus_int8 silk_LTP_gain_vq_2[32][5] = +{ +{ + -6, 27, 61, 39, 5 +}, +{ + -11, 42, 88, 4, 1 +}, +{ + -2, 60, 65, 6, -4 +}, +{ + -1, -5, 73, 56, 1 +}, +{ + -9, 19, 94, 29, -9 +}, +{ + 0, 12, 99, 6, 4 +}, +{ + 8, -19, 102, 46, -13 +}, +{ + 3, 2, 13, 3, 2 +}, +{ + 9, -21, 84, 72, -18 +}, +{ + -11, 46, 104, -22, 8 +}, +{ + 18, 38, 48, 23, 0 +}, +{ + -16, 70, 83, -21, 11 +}, +{ + 5, -11, 117, 22, -8 +}, +{ + -6, 23, 117, -12, 3 +}, +{ + 3, -8, 95, 28, 4 +}, +{ + -10, 15, 77, 60, -15 +}, +{ + -1, 4, 124, 2, -4 +}, +{ + 3, 38, 84, 24, -25 +}, +{ + 2, 13, 42, 13, 31 +}, +{ + 21, -4, 56, 46, -1 +}, +{ + -1, 35, 79, -13, 19 +}, +{ + -7, 65, 88, -9, -14 +}, +{ + 20, 4, 81, 49, -29 +}, +{ + 20, 0, 75, 3, -17 +}, +{ + 5, -9, 44, 92, -8 +}, +{ + 1, -3, 22, 69, 31 +}, +{ + -6, 95, 41, -12, 5 +}, +{ + 39, 67, 16, -4, 1 +}, +{ + 0, -6, 120, 55, -36 +}, +{ + -13, 44, 122, 4, -24 +}, +{ + 81, 5, 11, 3, 7 +}, +{ + 2, 0, 9, 10, 88 +} +}; + +const opus_int8 * const silk_LTP_vq_ptrs_Q7[NB_LTP_CBKS] = { + (opus_int8 *)&silk_LTP_gain_vq_0[0][0], + (opus_int8 *)&silk_LTP_gain_vq_1[0][0], + (opus_int8 *)&silk_LTP_gain_vq_2[0][0] +}; + +/* Maximum frequency-dependent response of the pitch taps above, + computed as max(abs(freqz(taps))) */ +static const opus_uint8 silk_LTP_gain_vq_0_gain[8] = { + 46, 2, 90, 87, 93, 91, 82, 98 +}; + +static const opus_uint8 silk_LTP_gain_vq_1_gain[16] = { + 109, 120, 118, 12, 113, 115, 117, 119, + 99, 59, 87, 111, 63, 111, 112, 80 +}; + +static const opus_uint8 silk_LTP_gain_vq_2_gain[32] = { + 126, 124, 125, 124, 129, 121, 126, 23, + 132, 127, 127, 127, 126, 127, 122, 133, + 130, 134, 101, 118, 119, 145, 126, 86, + 124, 120, 123, 119, 170, 173, 107, 109 +}; + +const opus_uint8 * const silk_LTP_vq_gain_ptrs_Q7[NB_LTP_CBKS] = { + &silk_LTP_gain_vq_0_gain[0], + &silk_LTP_gain_vq_1_gain[0], + &silk_LTP_gain_vq_2_gain[0] +}; + +const opus_int8 silk_LTP_vq_sizes[NB_LTP_CBKS] = { + 8, 16, 32 +}; diff --git a/components/opus/libopus/silk/tables_NLSF_CB_NB_MB.c b/components/opus/libopus/silk/tables_NLSF_CB_NB_MB.c new file mode 100644 index 0000000..195d5b9 --- /dev/null +++ b/components/opus/libopus/silk/tables_NLSF_CB_NB_MB.c @@ -0,0 +1,195 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "tables.h" + +static const opus_uint8 silk_NLSF_CB1_NB_MB_Q8[ 320 ] = { + 12, 35, 60, 83, 108, 132, 157, 180, + 206, 228, 15, 32, 55, 77, 101, 125, + 151, 175, 201, 225, 19, 42, 66, 89, + 114, 137, 162, 184, 209, 230, 12, 25, + 50, 72, 97, 120, 147, 172, 200, 223, + 26, 44, 69, 90, 114, 135, 159, 180, + 205, 225, 13, 22, 53, 80, 106, 130, + 156, 180, 205, 228, 15, 25, 44, 64, + 90, 115, 142, 168, 196, 222, 19, 24, + 62, 82, 100, 120, 145, 168, 190, 214, + 22, 31, 50, 79, 103, 120, 151, 170, + 203, 227, 21, 29, 45, 65, 106, 124, + 150, 171, 196, 224, 30, 49, 75, 97, + 121, 142, 165, 186, 209, 229, 19, 25, + 52, 70, 93, 116, 143, 166, 192, 219, + 26, 34, 62, 75, 97, 118, 145, 167, + 194, 217, 25, 33, 56, 70, 91, 113, + 143, 165, 196, 223, 21, 34, 51, 72, + 97, 117, 145, 171, 196, 222, 20, 29, + 50, 67, 90, 117, 144, 168, 197, 221, + 22, 31, 48, 66, 95, 117, 146, 168, + 196, 222, 24, 33, 51, 77, 116, 134, + 158, 180, 200, 224, 21, 28, 70, 87, + 106, 124, 149, 170, 194, 217, 26, 33, + 53, 64, 83, 117, 152, 173, 204, 225, + 27, 34, 65, 95, 108, 129, 155, 174, + 210, 225, 20, 26, 72, 99, 113, 131, + 154, 176, 200, 219, 34, 43, 61, 78, + 93, 114, 155, 177, 205, 229, 23, 29, + 54, 97, 124, 138, 163, 179, 209, 229, + 30, 38, 56, 89, 118, 129, 158, 178, + 200, 231, 21, 29, 49, 63, 85, 111, + 142, 163, 193, 222, 27, 48, 77, 103, + 133, 158, 179, 196, 215, 232, 29, 47, + 74, 99, 124, 151, 176, 198, 220, 237, + 33, 42, 61, 76, 93, 121, 155, 174, + 207, 225, 29, 53, 87, 112, 136, 154, + 170, 188, 208, 227, 24, 30, 52, 84, + 131, 150, 166, 186, 203, 229, 37, 48, + 64, 84, 104, 118, 156, 177, 201, 230 +}; + +static const opus_int16 silk_NLSF_CB1_Wght_Q9[ 320 ] = { + 2897, 2314, 2314, 2314, 2287, 2287, 2314, 2300, 2327, 2287, + 2888, 2580, 2394, 2367, 2314, 2274, 2274, 2274, 2274, 2194, + 2487, 2340, 2340, 2314, 2314, 2314, 2340, 2340, 2367, 2354, + 3216, 2766, 2340, 2340, 2314, 2274, 2221, 2207, 2261, 2194, + 2460, 2474, 2367, 2394, 2394, 2394, 2394, 2367, 2407, 2314, + 3479, 3056, 2127, 2207, 2274, 2274, 2274, 2287, 2314, 2261, + 3282, 3141, 2580, 2394, 2247, 2221, 2207, 2194, 2194, 2114, + 4096, 3845, 2221, 2620, 2620, 2407, 2314, 2394, 2367, 2074, + 3178, 3244, 2367, 2221, 2553, 2434, 2340, 2314, 2167, 2221, + 3338, 3488, 2726, 2194, 2261, 2460, 2354, 2367, 2207, 2101, + 2354, 2420, 2327, 2367, 2394, 2420, 2420, 2420, 2460, 2367, + 3779, 3629, 2434, 2527, 2367, 2274, 2274, 2300, 2207, 2048, + 3254, 3225, 2713, 2846, 2447, 2327, 2300, 2300, 2274, 2127, + 3263, 3300, 2753, 2806, 2447, 2261, 2261, 2247, 2127, 2101, + 2873, 2981, 2633, 2367, 2407, 2354, 2194, 2247, 2247, 2114, + 3225, 3197, 2633, 2580, 2274, 2181, 2247, 2221, 2221, 2141, + 3178, 3310, 2740, 2407, 2274, 2274, 2274, 2287, 2194, 2114, + 3141, 3272, 2460, 2061, 2287, 2500, 2367, 2487, 2434, 2181, + 3507, 3282, 2314, 2700, 2647, 2474, 2367, 2394, 2340, 2127, + 3423, 3535, 3038, 3056, 2300, 1950, 2221, 2274, 2274, 2274, + 3404, 3366, 2087, 2687, 2873, 2354, 2420, 2274, 2474, 2540, + 3760, 3488, 1950, 2660, 2897, 2527, 2394, 2367, 2460, 2261, + 3028, 3272, 2740, 2888, 2740, 2154, 2127, 2287, 2234, 2247, + 3695, 3657, 2025, 1969, 2660, 2700, 2580, 2500, 2327, 2367, + 3207, 3413, 2354, 2074, 2888, 2888, 2340, 2487, 2247, 2167, + 3338, 3366, 2846, 2780, 2327, 2154, 2274, 2287, 2114, 2061, + 2327, 2300, 2181, 2167, 2181, 2367, 2633, 2700, 2700, 2553, + 2407, 2434, 2221, 2261, 2221, 2221, 2340, 2420, 2607, 2700, + 3038, 3244, 2806, 2888, 2474, 2074, 2300, 2314, 2354, 2380, + 2221, 2154, 2127, 2287, 2500, 2793, 2793, 2620, 2580, 2367, + 3676, 3713, 2234, 1838, 2181, 2753, 2726, 2673, 2513, 2207, + 2793, 3160, 2726, 2553, 2846, 2513, 2181, 2394, 2221, 2181 +}; + +static const opus_uint8 silk_NLSF_CB1_iCDF_NB_MB[ 64 ] = { + 212, 178, 148, 129, 108, 96, 85, 82, + 79, 77, 61, 59, 57, 56, 51, 49, + 48, 45, 42, 41, 40, 38, 36, 34, + 31, 30, 21, 12, 10, 3, 1, 0, + 255, 245, 244, 236, 233, 225, 217, 203, + 190, 176, 175, 161, 149, 136, 125, 114, + 102, 91, 81, 71, 60, 52, 43, 35, + 28, 20, 19, 18, 12, 11, 5, 0 +}; + +static const opus_uint8 silk_NLSF_CB2_SELECT_NB_MB[ 160 ] = { + 16, 0, 0, 0, 0, 99, 66, 36, + 36, 34, 36, 34, 34, 34, 34, 83, + 69, 36, 52, 34, 116, 102, 70, 68, + 68, 176, 102, 68, 68, 34, 65, 85, + 68, 84, 36, 116, 141, 152, 139, 170, + 132, 187, 184, 216, 137, 132, 249, 168, + 185, 139, 104, 102, 100, 68, 68, 178, + 218, 185, 185, 170, 244, 216, 187, 187, + 170, 244, 187, 187, 219, 138, 103, 155, + 184, 185, 137, 116, 183, 155, 152, 136, + 132, 217, 184, 184, 170, 164, 217, 171, + 155, 139, 244, 169, 184, 185, 170, 164, + 216, 223, 218, 138, 214, 143, 188, 218, + 168, 244, 141, 136, 155, 170, 168, 138, + 220, 219, 139, 164, 219, 202, 216, 137, + 168, 186, 246, 185, 139, 116, 185, 219, + 185, 138, 100, 100, 134, 100, 102, 34, + 68, 68, 100, 68, 168, 203, 221, 218, + 168, 167, 154, 136, 104, 70, 164, 246, + 171, 137, 139, 137, 155, 218, 219, 139 +}; + +static const opus_uint8 silk_NLSF_CB2_iCDF_NB_MB[ 72 ] = { + 255, 254, 253, 238, 14, 3, 2, 1, + 0, 255, 254, 252, 218, 35, 3, 2, + 1, 0, 255, 254, 250, 208, 59, 4, + 2, 1, 0, 255, 254, 246, 194, 71, + 10, 2, 1, 0, 255, 252, 236, 183, + 82, 8, 2, 1, 0, 255, 252, 235, + 180, 90, 17, 2, 1, 0, 255, 248, + 224, 171, 97, 30, 4, 1, 0, 255, + 254, 236, 173, 95, 37, 7, 1, 0 +}; + +static const opus_uint8 silk_NLSF_CB2_BITS_NB_MB_Q5[ 72 ] = { + 255, 255, 255, 131, 6, 145, 255, 255, + 255, 255, 255, 236, 93, 15, 96, 255, + 255, 255, 255, 255, 194, 83, 25, 71, + 221, 255, 255, 255, 255, 162, 73, 34, + 66, 162, 255, 255, 255, 210, 126, 73, + 43, 57, 173, 255, 255, 255, 201, 125, + 71, 48, 58, 130, 255, 255, 255, 166, + 110, 73, 57, 62, 104, 210, 255, 255, + 251, 123, 65, 55, 68, 100, 171, 255 +}; + +static const opus_uint8 silk_NLSF_PRED_NB_MB_Q8[ 18 ] = { + 179, 138, 140, 148, 151, 149, 153, 151, + 163, 116, 67, 82, 59, 92, 72, 100, + 89, 92 +}; + +static const opus_int16 silk_NLSF_DELTA_MIN_NB_MB_Q15[ 11 ] = { + 250, 3, 6, 3, 3, 3, 4, 3, + 3, 3, 461 +}; + +const silk_NLSF_CB_struct silk_NLSF_CB_NB_MB = +{ + 32, + 10, + SILK_FIX_CONST( 0.18, 16 ), + SILK_FIX_CONST( 1.0 / 0.18, 6 ), + silk_NLSF_CB1_NB_MB_Q8, + silk_NLSF_CB1_Wght_Q9, + silk_NLSF_CB1_iCDF_NB_MB, + silk_NLSF_PRED_NB_MB_Q8, + silk_NLSF_CB2_SELECT_NB_MB, + silk_NLSF_CB2_iCDF_NB_MB, + silk_NLSF_CB2_BITS_NB_MB_Q5, + silk_NLSF_DELTA_MIN_NB_MB_Q15, +}; diff --git a/components/opus/libopus/silk/tables_NLSF_CB_WB.c b/components/opus/libopus/silk/tables_NLSF_CB_WB.c new file mode 100644 index 0000000..5cc9f57 --- /dev/null +++ b/components/opus/libopus/silk/tables_NLSF_CB_WB.c @@ -0,0 +1,234 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "tables.h" + +static const opus_uint8 silk_NLSF_CB1_WB_Q8[ 512 ] = { + 7, 23, 38, 54, 69, 85, 100, 116, + 131, 147, 162, 178, 193, 208, 223, 239, + 13, 25, 41, 55, 69, 83, 98, 112, + 127, 142, 157, 171, 187, 203, 220, 236, + 15, 21, 34, 51, 61, 78, 92, 106, + 126, 136, 152, 167, 185, 205, 225, 240, + 10, 21, 36, 50, 63, 79, 95, 110, + 126, 141, 157, 173, 189, 205, 221, 237, + 17, 20, 37, 51, 59, 78, 89, 107, + 123, 134, 150, 164, 184, 205, 224, 240, + 10, 15, 32, 51, 67, 81, 96, 112, + 129, 142, 158, 173, 189, 204, 220, 236, + 8, 21, 37, 51, 65, 79, 98, 113, + 126, 138, 155, 168, 179, 192, 209, 218, + 12, 15, 34, 55, 63, 78, 87, 108, + 118, 131, 148, 167, 185, 203, 219, 236, + 16, 19, 32, 36, 56, 79, 91, 108, + 118, 136, 154, 171, 186, 204, 220, 237, + 11, 28, 43, 58, 74, 89, 105, 120, + 135, 150, 165, 180, 196, 211, 226, 241, + 6, 16, 33, 46, 60, 75, 92, 107, + 123, 137, 156, 169, 185, 199, 214, 225, + 11, 19, 30, 44, 57, 74, 89, 105, + 121, 135, 152, 169, 186, 202, 218, 234, + 12, 19, 29, 46, 57, 71, 88, 100, + 120, 132, 148, 165, 182, 199, 216, 233, + 17, 23, 35, 46, 56, 77, 92, 106, + 123, 134, 152, 167, 185, 204, 222, 237, + 14, 17, 45, 53, 63, 75, 89, 107, + 115, 132, 151, 171, 188, 206, 221, 240, + 9, 16, 29, 40, 56, 71, 88, 103, + 119, 137, 154, 171, 189, 205, 222, 237, + 16, 19, 36, 48, 57, 76, 87, 105, + 118, 132, 150, 167, 185, 202, 218, 236, + 12, 17, 29, 54, 71, 81, 94, 104, + 126, 136, 149, 164, 182, 201, 221, 237, + 15, 28, 47, 62, 79, 97, 115, 129, + 142, 155, 168, 180, 194, 208, 223, 238, + 8, 14, 30, 45, 62, 78, 94, 111, + 127, 143, 159, 175, 192, 207, 223, 239, + 17, 30, 49, 62, 79, 92, 107, 119, + 132, 145, 160, 174, 190, 204, 220, 235, + 14, 19, 36, 45, 61, 76, 91, 108, + 121, 138, 154, 172, 189, 205, 222, 238, + 12, 18, 31, 45, 60, 76, 91, 107, + 123, 138, 154, 171, 187, 204, 221, 236, + 13, 17, 31, 43, 53, 70, 83, 103, + 114, 131, 149, 167, 185, 203, 220, 237, + 17, 22, 35, 42, 58, 78, 93, 110, + 125, 139, 155, 170, 188, 206, 224, 240, + 8, 15, 34, 50, 67, 83, 99, 115, + 131, 146, 162, 178, 193, 209, 224, 239, + 13, 16, 41, 66, 73, 86, 95, 111, + 128, 137, 150, 163, 183, 206, 225, 241, + 17, 25, 37, 52, 63, 75, 92, 102, + 119, 132, 144, 160, 175, 191, 212, 231, + 19, 31, 49, 65, 83, 100, 117, 133, + 147, 161, 174, 187, 200, 213, 227, 242, + 18, 31, 52, 68, 88, 103, 117, 126, + 138, 149, 163, 177, 192, 207, 223, 239, + 16, 29, 47, 61, 76, 90, 106, 119, + 133, 147, 161, 176, 193, 209, 224, 240, + 15, 21, 35, 50, 61, 73, 86, 97, + 110, 119, 129, 141, 175, 198, 218, 237 +}; + +static const opus_int16 silk_NLSF_CB1_WB_Wght_Q9[ 512 ] = { + 3657, 2925, 2925, 2925, 2925, 2925, 2925, 2925, 2925, 2925, 2925, 2925, 2963, 2963, 2925, 2846, + 3216, 3085, 2972, 3056, 3056, 3010, 3010, 3010, 2963, 2963, 3010, 2972, 2888, 2846, 2846, 2726, + 3920, 4014, 2981, 3207, 3207, 2934, 3056, 2846, 3122, 3244, 2925, 2846, 2620, 2553, 2780, 2925, + 3516, 3197, 3010, 3103, 3019, 2888, 2925, 2925, 2925, 2925, 2888, 2888, 2888, 2888, 2888, 2753, + 5054, 5054, 2934, 3573, 3385, 3056, 3085, 2793, 3160, 3160, 2972, 2846, 2513, 2540, 2753, 2888, + 4428, 4149, 2700, 2753, 2972, 3010, 2925, 2846, 2981, 3019, 2925, 2925, 2925, 2925, 2888, 2726, + 3620, 3019, 2972, 3056, 3056, 2873, 2806, 3056, 3216, 3047, 2981, 3291, 3291, 2981, 3310, 2991, + 5227, 5014, 2540, 3338, 3526, 3385, 3197, 3094, 3376, 2981, 2700, 2647, 2687, 2793, 2846, 2673, + 5081, 5174, 4615, 4428, 2460, 2897, 3047, 3207, 3169, 2687, 2740, 2888, 2846, 2793, 2846, 2700, + 3122, 2888, 2963, 2925, 2925, 2925, 2925, 2963, 2963, 2963, 2963, 2925, 2925, 2963, 2963, 2963, + 4202, 3207, 2981, 3103, 3010, 2888, 2888, 2925, 2972, 2873, 2916, 3019, 2972, 3010, 3197, 2873, + 3760, 3760, 3244, 3103, 2981, 2888, 2925, 2888, 2972, 2934, 2793, 2793, 2846, 2888, 2888, 2660, + 3854, 4014, 3207, 3122, 3244, 2934, 3047, 2963, 2963, 3085, 2846, 2793, 2793, 2793, 2793, 2580, + 3845, 4080, 3357, 3516, 3094, 2740, 3010, 2934, 3122, 3085, 2846, 2846, 2647, 2647, 2846, 2806, + 5147, 4894, 3225, 3845, 3441, 3169, 2897, 3413, 3451, 2700, 2580, 2673, 2740, 2846, 2806, 2753, + 4109, 3789, 3291, 3160, 2925, 2888, 2888, 2925, 2793, 2740, 2793, 2740, 2793, 2846, 2888, 2806, + 5081, 5054, 3047, 3545, 3244, 3056, 3085, 2944, 3103, 2897, 2740, 2740, 2740, 2846, 2793, 2620, + 4309, 4309, 2860, 2527, 3207, 3376, 3376, 3075, 3075, 3376, 3056, 2846, 2647, 2580, 2726, 2753, + 3056, 2916, 2806, 2888, 2740, 2687, 2897, 3103, 3150, 3150, 3216, 3169, 3056, 3010, 2963, 2846, + 4375, 3882, 2925, 2888, 2846, 2888, 2846, 2846, 2888, 2888, 2888, 2846, 2888, 2925, 2888, 2846, + 2981, 2916, 2916, 2981, 2981, 3056, 3122, 3216, 3150, 3056, 3010, 2972, 2972, 2972, 2925, 2740, + 4229, 4149, 3310, 3347, 2925, 2963, 2888, 2981, 2981, 2846, 2793, 2740, 2846, 2846, 2846, 2793, + 4080, 4014, 3103, 3010, 2925, 2925, 2925, 2888, 2925, 2925, 2846, 2846, 2846, 2793, 2888, 2780, + 4615, 4575, 3169, 3441, 3207, 2981, 2897, 3038, 3122, 2740, 2687, 2687, 2687, 2740, 2793, 2700, + 4149, 4269, 3789, 3657, 2726, 2780, 2888, 2888, 3010, 2972, 2925, 2846, 2687, 2687, 2793, 2888, + 4215, 3554, 2753, 2846, 2846, 2888, 2888, 2888, 2925, 2925, 2888, 2925, 2925, 2925, 2963, 2888, + 5174, 4921, 2261, 3432, 3789, 3479, 3347, 2846, 3310, 3479, 3150, 2897, 2460, 2487, 2753, 2925, + 3451, 3685, 3122, 3197, 3357, 3047, 3207, 3207, 2981, 3216, 3085, 2925, 2925, 2687, 2540, 2434, + 2981, 3010, 2793, 2793, 2740, 2793, 2846, 2972, 3056, 3103, 3150, 3150, 3150, 3103, 3010, 3010, + 2944, 2873, 2687, 2726, 2780, 3010, 3432, 3545, 3357, 3244, 3056, 3010, 2963, 2925, 2888, 2846, + 3019, 2944, 2897, 3010, 3010, 2972, 3019, 3103, 3056, 3056, 3010, 2888, 2846, 2925, 2925, 2888, + 3920, 3967, 3010, 3197, 3357, 3216, 3291, 3291, 3479, 3704, 3441, 2726, 2181, 2460, 2580, 2607 +}; + +static const opus_uint8 silk_NLSF_CB1_iCDF_WB[ 64 ] = { + 225, 204, 201, 184, 183, 175, 158, 154, + 153, 135, 119, 115, 113, 110, 109, 99, + 98, 95, 79, 68, 52, 50, 48, 45, + 43, 32, 31, 27, 18, 10, 3, 0, + 255, 251, 235, 230, 212, 201, 196, 182, + 167, 166, 163, 151, 138, 124, 110, 104, + 90, 78, 76, 70, 69, 57, 45, 34, + 24, 21, 11, 6, 5, 4, 3, 0 +}; + +static const opus_uint8 silk_NLSF_CB2_SELECT_WB[ 256 ] = { + 0, 0, 0, 0, 0, 0, 0, 1, + 100, 102, 102, 68, 68, 36, 34, 96, + 164, 107, 158, 185, 180, 185, 139, 102, + 64, 66, 36, 34, 34, 0, 1, 32, + 208, 139, 141, 191, 152, 185, 155, 104, + 96, 171, 104, 166, 102, 102, 102, 132, + 1, 0, 0, 0, 0, 16, 16, 0, + 80, 109, 78, 107, 185, 139, 103, 101, + 208, 212, 141, 139, 173, 153, 123, 103, + 36, 0, 0, 0, 0, 0, 0, 1, + 48, 0, 0, 0, 0, 0, 0, 32, + 68, 135, 123, 119, 119, 103, 69, 98, + 68, 103, 120, 118, 118, 102, 71, 98, + 134, 136, 157, 184, 182, 153, 139, 134, + 208, 168, 248, 75, 189, 143, 121, 107, + 32, 49, 34, 34, 34, 0, 17, 2, + 210, 235, 139, 123, 185, 137, 105, 134, + 98, 135, 104, 182, 100, 183, 171, 134, + 100, 70, 68, 70, 66, 66, 34, 131, + 64, 166, 102, 68, 36, 2, 1, 0, + 134, 166, 102, 68, 34, 34, 66, 132, + 212, 246, 158, 139, 107, 107, 87, 102, + 100, 219, 125, 122, 137, 118, 103, 132, + 114, 135, 137, 105, 171, 106, 50, 34, + 164, 214, 141, 143, 185, 151, 121, 103, + 192, 34, 0, 0, 0, 0, 0, 1, + 208, 109, 74, 187, 134, 249, 159, 137, + 102, 110, 154, 118, 87, 101, 119, 101, + 0, 2, 0, 36, 36, 66, 68, 35, + 96, 164, 102, 100, 36, 0, 2, 33, + 167, 138, 174, 102, 100, 84, 2, 2, + 100, 107, 120, 119, 36, 197, 24, 0 +}; + +static const opus_uint8 silk_NLSF_CB2_iCDF_WB[ 72 ] = { + 255, 254, 253, 244, 12, 3, 2, 1, + 0, 255, 254, 252, 224, 38, 3, 2, + 1, 0, 255, 254, 251, 209, 57, 4, + 2, 1, 0, 255, 254, 244, 195, 69, + 4, 2, 1, 0, 255, 251, 232, 184, + 84, 7, 2, 1, 0, 255, 254, 240, + 186, 86, 14, 2, 1, 0, 255, 254, + 239, 178, 91, 30, 5, 1, 0, 255, + 248, 227, 177, 100, 19, 2, 1, 0 +}; + +static const opus_uint8 silk_NLSF_CB2_BITS_WB_Q5[ 72 ] = { + 255, 255, 255, 156, 4, 154, 255, 255, + 255, 255, 255, 227, 102, 15, 92, 255, + 255, 255, 255, 255, 213, 83, 24, 72, + 236, 255, 255, 255, 255, 150, 76, 33, + 63, 214, 255, 255, 255, 190, 121, 77, + 43, 55, 185, 255, 255, 255, 245, 137, + 71, 43, 59, 139, 255, 255, 255, 255, + 131, 66, 50, 66, 107, 194, 255, 255, + 166, 116, 76, 55, 53, 125, 255, 255 +}; + +static const opus_uint8 silk_NLSF_PRED_WB_Q8[ 30 ] = { + 175, 148, 160, 176, 178, 173, 174, 164, + 177, 174, 196, 182, 198, 192, 182, 68, + 62, 66, 60, 72, 117, 85, 90, 118, + 136, 151, 142, 160, 142, 155 +}; + +static const opus_int16 silk_NLSF_DELTA_MIN_WB_Q15[ 17 ] = { + 100, 3, 40, 3, 3, 3, 5, 14, + 14, 10, 11, 3, 8, 9, 7, 3, + 347 +}; + +const silk_NLSF_CB_struct silk_NLSF_CB_WB = +{ + 32, + 16, + SILK_FIX_CONST( 0.15, 16 ), + SILK_FIX_CONST( 1.0 / 0.15, 6 ), + silk_NLSF_CB1_WB_Q8, + silk_NLSF_CB1_WB_Wght_Q9, + silk_NLSF_CB1_iCDF_WB, + silk_NLSF_PRED_WB_Q8, + silk_NLSF_CB2_SELECT_WB, + silk_NLSF_CB2_iCDF_WB, + silk_NLSF_CB2_BITS_WB_Q5, + silk_NLSF_DELTA_MIN_WB_Q15, +}; + diff --git a/components/opus/libopus/silk/tables_gain.c b/components/opus/libopus/silk/tables_gain.c new file mode 100644 index 0000000..37e41d8 --- /dev/null +++ b/components/opus/libopus/silk/tables_gain.c @@ -0,0 +1,63 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "tables.h" + +#ifdef __cplusplus +extern "C" +{ +#endif + +const opus_uint8 silk_gain_iCDF[ 3 ][ N_LEVELS_QGAIN / 8 ] = +{ +{ + 224, 112, 44, 15, 3, 2, 1, 0 +}, +{ + 254, 237, 192, 132, 70, 23, 4, 0 +}, +{ + 255, 252, 226, 155, 61, 11, 2, 0 +} +}; + +const opus_uint8 silk_delta_gain_iCDF[ MAX_DELTA_GAIN_QUANT - MIN_DELTA_GAIN_QUANT + 1 ] = { + 250, 245, 234, 203, 71, 50, 42, 38, + 35, 33, 31, 29, 28, 27, 26, 25, + 24, 23, 22, 21, 20, 19, 18, 17, + 16, 15, 14, 13, 12, 11, 10, 9, + 8, 7, 6, 5, 4, 3, 2, 1, + 0 +}; + +#ifdef __cplusplus +} +#endif diff --git a/components/opus/libopus/silk/tables_other.c b/components/opus/libopus/silk/tables_other.c new file mode 100644 index 0000000..e34d907 --- /dev/null +++ b/components/opus/libopus/silk/tables_other.c @@ -0,0 +1,124 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "structs.h" +#include "define.h" +#include "tables.h" + +#ifdef __cplusplus +extern "C" +{ +#endif + +/* Tables for stereo predictor coding */ +const opus_int16 silk_stereo_pred_quant_Q13[ STEREO_QUANT_TAB_SIZE ] = { + -13732, -10050, -8266, -7526, -6500, -5000, -2950, -820, + 820, 2950, 5000, 6500, 7526, 8266, 10050, 13732 +}; +const opus_uint8 silk_stereo_pred_joint_iCDF[ 25 ] = { + 249, 247, 246, 245, 244, + 234, 210, 202, 201, 200, + 197, 174, 82, 59, 56, + 55, 54, 46, 22, 12, + 11, 10, 9, 7, 0 +}; +const opus_uint8 silk_stereo_only_code_mid_iCDF[ 2 ] = { 64, 0 }; + +/* Tables for LBRR flags */ +static const opus_uint8 silk_LBRR_flags_2_iCDF[ 3 ] = { 203, 150, 0 }; +static const opus_uint8 silk_LBRR_flags_3_iCDF[ 7 ] = { 215, 195, 166, 125, 110, 82, 0 }; +const opus_uint8 * const silk_LBRR_flags_iCDF_ptr[ 2 ] = { + silk_LBRR_flags_2_iCDF, + silk_LBRR_flags_3_iCDF +}; + +/* Table for LSB coding */ +const opus_uint8 silk_lsb_iCDF[ 2 ] = { 120, 0 }; + +/* Tables for LTPScale */ +const opus_uint8 silk_LTPscale_iCDF[ 3 ] = { 128, 64, 0 }; + +/* Tables for signal type and offset coding */ +const opus_uint8 silk_type_offset_VAD_iCDF[ 4 ] = { + 232, 158, 10, 0 +}; +const opus_uint8 silk_type_offset_no_VAD_iCDF[ 2 ] = { + 230, 0 +}; + +/* Tables for NLSF interpolation factor */ +const opus_uint8 silk_NLSF_interpolation_factor_iCDF[ 5 ] = { 243, 221, 192, 181, 0 }; + +/* Quantization offsets */ +const opus_int16 silk_Quantization_Offsets_Q10[ 2 ][ 2 ] = { + { OFFSET_UVL_Q10, OFFSET_UVH_Q10 }, { OFFSET_VL_Q10, OFFSET_VH_Q10 } +}; + +/* Table for LTPScale */ +const opus_int16 silk_LTPScales_table_Q14[ 3 ] = { 15565, 12288, 8192 }; + +/* Uniform entropy tables */ +const opus_uint8 silk_uniform3_iCDF[ 3 ] = { 171, 85, 0 }; +const opus_uint8 silk_uniform4_iCDF[ 4 ] = { 192, 128, 64, 0 }; +const opus_uint8 silk_uniform5_iCDF[ 5 ] = { 205, 154, 102, 51, 0 }; +const opus_uint8 silk_uniform6_iCDF[ 6 ] = { 213, 171, 128, 85, 43, 0 }; +const opus_uint8 silk_uniform8_iCDF[ 8 ] = { 224, 192, 160, 128, 96, 64, 32, 0 }; + +const opus_uint8 silk_NLSF_EXT_iCDF[ 7 ] = { 100, 40, 16, 7, 3, 1, 0 }; + +/* Elliptic/Cauer filters designed with 0.1 dB passband ripple, + 80 dB minimum stopband attenuation, and + [0.95 : 0.15 : 0.35] normalized cut off frequencies. */ + +/* Interpolation points for filter coefficients used in the bandwidth transition smoother */ +const opus_int32 silk_Transition_LP_B_Q28[ TRANSITION_INT_NUM ][ TRANSITION_NB ] = +{ +{ 250767114, 501534038, 250767114 }, +{ 209867381, 419732057, 209867381 }, +{ 170987846, 341967853, 170987846 }, +{ 131531482, 263046905, 131531482 }, +{ 89306658, 178584282, 89306658 } +}; + +/* Interpolation points for filter coefficients used in the bandwidth transition smoother */ +const opus_int32 silk_Transition_LP_A_Q28[ TRANSITION_INT_NUM ][ TRANSITION_NA ] = +{ +{ 506393414, 239854379 }, +{ 411067935, 169683996 }, +{ 306733530, 116694253 }, +{ 185807084, 77959395 }, +{ 35497197, 57401098 } +}; + +#ifdef __cplusplus +} +#endif + diff --git a/components/opus/libopus/silk/tables_pitch_lag.c b/components/opus/libopus/silk/tables_pitch_lag.c new file mode 100644 index 0000000..e80cc59 --- /dev/null +++ b/components/opus/libopus/silk/tables_pitch_lag.c @@ -0,0 +1,69 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "tables.h" + +const opus_uint8 silk_pitch_lag_iCDF[ 2 * ( PITCH_EST_MAX_LAG_MS - PITCH_EST_MIN_LAG_MS ) ] = { + 253, 250, 244, 233, 212, 182, 150, 131, + 120, 110, 98, 85, 72, 60, 49, 40, + 32, 25, 19, 15, 13, 11, 9, 8, + 7, 6, 5, 4, 3, 2, 1, 0 +}; + +const opus_uint8 silk_pitch_delta_iCDF[21] = { + 210, 208, 206, 203, 199, 193, 183, 168, + 142, 104, 74, 52, 37, 27, 20, 14, + 10, 6, 4, 2, 0 +}; + +const opus_uint8 silk_pitch_contour_iCDF[34] = { + 223, 201, 183, 167, 152, 138, 124, 111, + 98, 88, 79, 70, 62, 56, 50, 44, + 39, 35, 31, 27, 24, 21, 18, 16, + 14, 12, 10, 8, 6, 4, 3, 2, + 1, 0 +}; + +const opus_uint8 silk_pitch_contour_NB_iCDF[11] = { + 188, 176, 155, 138, 119, 97, 67, 43, + 26, 10, 0 +}; + +const opus_uint8 silk_pitch_contour_10_ms_iCDF[12] = { + 165, 119, 80, 61, 47, 35, 27, 20, + 14, 9, 4, 0 +}; + +const opus_uint8 silk_pitch_contour_10_ms_NB_iCDF[3] = { + 113, 63, 0 +}; + + diff --git a/components/opus/libopus/silk/tables_pulses_per_block.c b/components/opus/libopus/silk/tables_pulses_per_block.c new file mode 100644 index 0000000..c7c01c8 --- /dev/null +++ b/components/opus/libopus/silk/tables_pulses_per_block.c @@ -0,0 +1,264 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "tables.h" + +const opus_uint8 silk_max_pulses_table[ 4 ] = { + 8, 10, 12, 16 +}; + +const opus_uint8 silk_pulses_per_block_iCDF[ 10 ][ 18 ] = { +{ + 125, 51, 26, 18, 15, 12, 11, 10, + 9, 8, 7, 6, 5, 4, 3, 2, + 1, 0 +}, +{ + 198, 105, 45, 22, 15, 12, 11, 10, + 9, 8, 7, 6, 5, 4, 3, 2, + 1, 0 +}, +{ + 213, 162, 116, 83, 59, 43, 32, 24, + 18, 15, 12, 9, 7, 6, 5, 3, + 2, 0 +}, +{ + 239, 187, 116, 59, 28, 16, 11, 10, + 9, 8, 7, 6, 5, 4, 3, 2, + 1, 0 +}, +{ + 250, 229, 188, 135, 86, 51, 30, 19, + 13, 10, 8, 6, 5, 4, 3, 2, + 1, 0 +}, +{ + 249, 235, 213, 185, 156, 128, 103, 83, + 66, 53, 42, 33, 26, 21, 17, 13, + 10, 0 +}, +{ + 254, 249, 235, 206, 164, 118, 77, 46, + 27, 16, 10, 7, 5, 4, 3, 2, + 1, 0 +}, +{ + 255, 253, 249, 239, 220, 191, 156, 119, + 85, 57, 37, 23, 15, 10, 6, 4, + 2, 0 +}, +{ + 255, 253, 251, 246, 237, 223, 203, 179, + 152, 124, 98, 75, 55, 40, 29, 21, + 15, 0 +}, +{ + 255, 254, 253, 247, 220, 162, 106, 67, + 42, 28, 18, 12, 9, 6, 4, 3, + 2, 0 +} +}; + +const opus_uint8 silk_pulses_per_block_BITS_Q5[ 9 ][ 18 ] = { +{ + 31, 57, 107, 160, 205, 205, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, + 255, 255 +}, +{ + 69, 47, 67, 111, 166, 205, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, + 255, 255 +}, +{ + 82, 74, 79, 95, 109, 128, 145, 160, + 173, 205, 205, 205, 224, 255, 255, 224, + 255, 224 +}, +{ + 125, 74, 59, 69, 97, 141, 182, 255, + 255, 255, 255, 255, 255, 255, 255, 255, + 255, 255 +}, +{ + 173, 115, 85, 73, 76, 92, 115, 145, + 173, 205, 224, 224, 255, 255, 255, 255, + 255, 255 +}, +{ + 166, 134, 113, 102, 101, 102, 107, 118, + 125, 138, 145, 155, 166, 182, 192, 192, + 205, 150 +}, +{ + 224, 182, 134, 101, 83, 79, 85, 97, + 120, 145, 173, 205, 224, 255, 255, 255, + 255, 255 +}, +{ + 255, 224, 192, 150, 120, 101, 92, 89, + 93, 102, 118, 134, 160, 182, 192, 224, + 224, 224 +}, +{ + 255, 224, 224, 182, 155, 134, 118, 109, + 104, 102, 106, 111, 118, 131, 145, 160, + 173, 131 +} +}; + +const opus_uint8 silk_rate_levels_iCDF[ 2 ][ 9 ] = +{ +{ + 241, 190, 178, 132, 87, 74, 41, 14, + 0 +}, +{ + 223, 193, 157, 140, 106, 57, 39, 18, + 0 +} +}; + +const opus_uint8 silk_rate_levels_BITS_Q5[ 2 ][ 9 ] = +{ +{ + 131, 74, 141, 79, 80, 138, 95, 104, + 134 +}, +{ + 95, 99, 91, 125, 93, 76, 123, 115, + 123 +} +}; + +const opus_uint8 silk_shell_code_table0[ 152 ] = { + 128, 0, 214, 42, 0, 235, 128, 21, + 0, 244, 184, 72, 11, 0, 248, 214, + 128, 42, 7, 0, 248, 225, 170, 80, + 25, 5, 0, 251, 236, 198, 126, 54, + 18, 3, 0, 250, 238, 211, 159, 82, + 35, 15, 5, 0, 250, 231, 203, 168, + 128, 88, 53, 25, 6, 0, 252, 238, + 216, 185, 148, 108, 71, 40, 18, 4, + 0, 253, 243, 225, 199, 166, 128, 90, + 57, 31, 13, 3, 0, 254, 246, 233, + 212, 183, 147, 109, 73, 44, 23, 10, + 2, 0, 255, 250, 240, 223, 198, 166, + 128, 90, 58, 33, 16, 6, 1, 0, + 255, 251, 244, 231, 210, 181, 146, 110, + 75, 46, 25, 12, 5, 1, 0, 255, + 253, 248, 238, 221, 196, 164, 128, 92, + 60, 35, 18, 8, 3, 1, 0, 255, + 253, 249, 242, 229, 208, 180, 146, 110, + 76, 48, 27, 14, 7, 3, 1, 0 +}; + +const opus_uint8 silk_shell_code_table1[ 152 ] = { + 129, 0, 207, 50, 0, 236, 129, 20, + 0, 245, 185, 72, 10, 0, 249, 213, + 129, 42, 6, 0, 250, 226, 169, 87, + 27, 4, 0, 251, 233, 194, 130, 62, + 20, 4, 0, 250, 236, 207, 160, 99, + 47, 17, 3, 0, 255, 240, 217, 182, + 131, 81, 41, 11, 1, 0, 255, 254, + 233, 201, 159, 107, 61, 20, 2, 1, + 0, 255, 249, 233, 206, 170, 128, 86, + 50, 23, 7, 1, 0, 255, 250, 238, + 217, 186, 148, 108, 70, 39, 18, 6, + 1, 0, 255, 252, 243, 226, 200, 166, + 128, 90, 56, 30, 13, 4, 1, 0, + 255, 252, 245, 231, 209, 180, 146, 110, + 76, 47, 25, 11, 4, 1, 0, 255, + 253, 248, 237, 219, 194, 163, 128, 93, + 62, 37, 19, 8, 3, 1, 0, 255, + 254, 250, 241, 226, 205, 177, 145, 111, + 79, 51, 30, 15, 6, 2, 1, 0 +}; + +const opus_uint8 silk_shell_code_table2[ 152 ] = { + 129, 0, 203, 54, 0, 234, 129, 23, + 0, 245, 184, 73, 10, 0, 250, 215, + 129, 41, 5, 0, 252, 232, 173, 86, + 24, 3, 0, 253, 240, 200, 129, 56, + 15, 2, 0, 253, 244, 217, 164, 94, + 38, 10, 1, 0, 253, 245, 226, 189, + 132, 71, 27, 7, 1, 0, 253, 246, + 231, 203, 159, 105, 56, 23, 6, 1, + 0, 255, 248, 235, 213, 179, 133, 85, + 47, 19, 5, 1, 0, 255, 254, 243, + 221, 194, 159, 117, 70, 37, 12, 2, + 1, 0, 255, 254, 248, 234, 208, 171, + 128, 85, 48, 22, 8, 2, 1, 0, + 255, 254, 250, 240, 220, 189, 149, 107, + 67, 36, 16, 6, 2, 1, 0, 255, + 254, 251, 243, 227, 201, 166, 128, 90, + 55, 29, 13, 5, 2, 1, 0, 255, + 254, 252, 246, 234, 213, 183, 147, 109, + 73, 43, 22, 10, 4, 2, 1, 0 +}; + +const opus_uint8 silk_shell_code_table3[ 152 ] = { + 130, 0, 200, 58, 0, 231, 130, 26, + 0, 244, 184, 76, 12, 0, 249, 214, + 130, 43, 6, 0, 252, 232, 173, 87, + 24, 3, 0, 253, 241, 203, 131, 56, + 14, 2, 0, 254, 246, 221, 167, 94, + 35, 8, 1, 0, 254, 249, 232, 193, + 130, 65, 23, 5, 1, 0, 255, 251, + 239, 211, 162, 99, 45, 15, 4, 1, + 0, 255, 251, 243, 223, 186, 131, 74, + 33, 11, 3, 1, 0, 255, 252, 245, + 230, 202, 158, 105, 57, 24, 8, 2, + 1, 0, 255, 253, 247, 235, 214, 179, + 132, 84, 44, 19, 7, 2, 1, 0, + 255, 254, 250, 240, 223, 196, 159, 112, + 69, 36, 15, 6, 2, 1, 0, 255, + 254, 253, 245, 231, 209, 176, 136, 93, + 55, 27, 11, 3, 2, 1, 0, 255, + 254, 253, 252, 239, 221, 194, 158, 117, + 76, 42, 18, 4, 3, 2, 1, 0 +}; + +const opus_uint8 silk_shell_code_table_offsets[ 17 ] = { + 0, 0, 2, 5, 9, 14, 20, 27, + 35, 44, 54, 65, 77, 90, 104, 119, + 135 +}; + +const opus_uint8 silk_sign_iCDF[ 42 ] = { + 254, 49, 67, 77, 82, 93, 99, + 198, 11, 18, 24, 31, 36, 45, + 255, 46, 66, 78, 87, 94, 104, + 208, 14, 21, 32, 42, 51, 66, + 255, 94, 104, 109, 112, 115, 118, + 248, 53, 69, 80, 88, 95, 102 +}; diff --git a/components/opus/libopus/silk/tests/test_unit_LPC_inv_pred_gain.c b/components/opus/libopus/silk/tests/test_unit_LPC_inv_pred_gain.c new file mode 100644 index 0000000..67067ce --- /dev/null +++ b/components/opus/libopus/silk/tests/test_unit_LPC_inv_pred_gain.c @@ -0,0 +1,129 @@ +/*********************************************************************** +Copyright (c) 2017 Google Inc., Jean-Marc Valin +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include +#include "celt/stack_alloc.h" +#include "cpu_support.h" +#include "SigProc_FIX.h" + +/* Computes the impulse response of the filter so we + can catch filters that are definitely unstable. Some + unstable filters may be classified as stable, but not + the other way around. */ +int check_stability(opus_int16 *A_Q12, int order) { + int i; + int j; + int sum_a, sum_abs_a; + sum_a = sum_abs_a = 0; + for( j = 0; j < order; j++ ) { + sum_a += A_Q12[ j ]; + sum_abs_a += silk_abs( A_Q12[ j ] ); + } + /* Check DC stability. */ + if( sum_a >= 4096 ) { + return 0; + } + /* If the sum of absolute values is less than 1, the filter + has to be stable. */ + if( sum_abs_a < 4096 ) { + return 1; + } + double y[SILK_MAX_ORDER_LPC] = {0}; + y[0] = 1; + for( i = 0; i < 10000; i++ ) { + double sum = 0; + for( j = 0; j < order; j++ ) { + sum += y[ j ]*A_Q12[ j ]; + } + for( j = order - 1; j > 0; j-- ) { + y[ j ] = y[ j - 1 ]; + } + y[ 0 ] = sum*(1./4096); + /* If impulse response reaches +/- 10000, the filter + is definitely unstable. */ + if( !(y[ 0 ] < 10000 && y[ 0 ] > -10000) ) { + return 0; + } + /* Test every 8 sample for low amplitude. */ + if( ( i & 0x7 ) == 0 ) { + double amp = 0; + for( j = 0; j < order; j++ ) { + amp += fabs(y[j]); + } + if( amp < 0.00001 ) { + return 1; + } + } + } + return 1; +} + +int main(void) { + const int arch = opus_select_arch(); + /* Set to 10000 so all branches in C function are triggered */ + const int loop_num = 10000; + int count = 0; + ALLOC_STACK; + + /* FIXME: Make the seed random (with option to set it explicitly) + so we get wider coverage. */ + srand(0); + + printf("Testing silk_LPC_inverse_pred_gain() optimization ...\n"); + for( count = 0; count < loop_num; count++ ) { + unsigned int i; + opus_int order; + unsigned int shift; + opus_int16 A_Q12[ SILK_MAX_ORDER_LPC ]; + opus_int32 gain; + + for( order = 2; order <= SILK_MAX_ORDER_LPC; order += 2 ) { /* order must be even. */ + for( shift = 0; shift < 16; shift++ ) { /* Different dynamic range. */ + for( i = 0; i < SILK_MAX_ORDER_LPC; i++ ) { + A_Q12[i] = ((opus_int16)rand()) >> shift; + } + gain = silk_LPC_inverse_pred_gain(A_Q12, order, arch); + /* Look for filters that silk_LPC_inverse_pred_gain() thinks are + stable but definitely aren't. */ + if( gain != 0 && !check_stability(A_Q12, order) ) { + fprintf(stderr, "**Loop %4d failed!**\n", count); + return 1; + } + } + } + if( !(count % 500) ) { + printf("Loop %4d passed\n", count); + } + } + printf("silk_LPC_inverse_pred_gain() optimization passed\n"); + return 0; +} diff --git a/components/opus/libopus/silk/tuning_parameters.h b/components/opus/libopus/silk/tuning_parameters.h new file mode 100644 index 0000000..d70275f --- /dev/null +++ b/components/opus/libopus/silk/tuning_parameters.h @@ -0,0 +1,155 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifndef SILK_TUNING_PARAMETERS_H +#define SILK_TUNING_PARAMETERS_H + +#ifdef __cplusplus +extern "C" +{ +#endif + +/* Decay time for bitreservoir */ +#define BITRESERVOIR_DECAY_TIME_MS 500 + +/*******************/ +/* Pitch estimator */ +/*******************/ + +/* Level of noise floor for whitening filter LPC analysis in pitch analysis */ +#define FIND_PITCH_WHITE_NOISE_FRACTION 1e-3f + +/* Bandwidth expansion for whitening filter in pitch analysis */ +#define FIND_PITCH_BANDWIDTH_EXPANSION 0.99f + +/*********************/ +/* Linear prediction */ +/*********************/ + +/* LPC analysis regularization */ +#define FIND_LPC_COND_FAC 1e-5f + +/* Max cumulative LTP gain */ +#define MAX_SUM_LOG_GAIN_DB 250.0f + +/* LTP analysis defines */ +#define LTP_CORR_INV_MAX 0.03f + +/***********************/ +/* High pass filtering */ +/***********************/ + +/* Smoothing parameters for low end of pitch frequency range estimation */ +#define VARIABLE_HP_SMTH_COEF1 0.1f +#define VARIABLE_HP_SMTH_COEF2 0.015f +#define VARIABLE_HP_MAX_DELTA_FREQ 0.4f + +/* Min and max cut-off frequency values (-3 dB points) */ +#define VARIABLE_HP_MIN_CUTOFF_HZ 60 +#define VARIABLE_HP_MAX_CUTOFF_HZ 100 + +/***********/ +/* Various */ +/***********/ + +/* VAD threshold */ +#define SPEECH_ACTIVITY_DTX_THRES 0.05f + +/* Speech Activity LBRR enable threshold */ +#define LBRR_SPEECH_ACTIVITY_THRES 0.3f + +/*************************/ +/* Perceptual parameters */ +/*************************/ + +/* reduction in coding SNR during low speech activity */ +#define BG_SNR_DECR_dB 2.0f + +/* factor for reducing quantization noise during voiced speech */ +#define HARM_SNR_INCR_dB 2.0f + +/* factor for reducing quantization noise for unvoiced sparse signals */ +#define SPARSE_SNR_INCR_dB 2.0f + +/* threshold for sparseness measure above which to use lower quantization offset during unvoiced */ +#define ENERGY_VARIATION_THRESHOLD_QNT_OFFSET 0.6f + +/* warping control */ +#define WARPING_MULTIPLIER 0.015f + +/* fraction added to first autocorrelation value */ +#define SHAPE_WHITE_NOISE_FRACTION 3e-5f + +/* noise shaping filter chirp factor */ +#define BANDWIDTH_EXPANSION 0.94f + +/* harmonic noise shaping */ +#define HARMONIC_SHAPING 0.3f + +/* extra harmonic noise shaping for high bitrates or noisy input */ +#define HIGH_RATE_OR_LOW_QUALITY_HARMONIC_SHAPING 0.2f + +/* parameter for shaping noise towards higher frequencies */ +#define HP_NOISE_COEF 0.25f + +/* parameter for shaping noise even more towards higher frequencies during voiced speech */ +#define HARM_HP_NOISE_COEF 0.35f + +/* parameter for applying a high-pass tilt to the input signal */ +#define INPUT_TILT 0.05f + +/* parameter for extra high-pass tilt to the input signal at high rates */ +#define HIGH_RATE_INPUT_TILT 0.1f + +/* parameter for reducing noise at the very low frequencies */ +#define LOW_FREQ_SHAPING 4.0f + +/* less reduction of noise at the very low frequencies for signals with low SNR at low frequencies */ +#define LOW_QUALITY_LOW_FREQ_SHAPING_DECR 0.5f + +/* subframe smoothing coefficient for HarmBoost, HarmShapeGain, Tilt (lower -> more smoothing) */ +#define SUBFR_SMTH_COEF 0.4f + +/* parameters defining the R/D tradeoff in the residual quantizer */ +#define LAMBDA_OFFSET 1.2f +#define LAMBDA_SPEECH_ACT -0.2f +#define LAMBDA_DELAYED_DECISIONS -0.05f +#define LAMBDA_INPUT_QUALITY -0.1f +#define LAMBDA_CODING_QUALITY -0.2f +#define LAMBDA_QUANT_OFFSET 0.8f + +/* Compensation in bitrate calculations for 10 ms modes */ +#define REDUCE_BITRATE_10_MS_BPS 2200 + +/* Maximum time before allowing a bandwidth transition */ +#define MAX_BANDWIDTH_SWITCH_DELAY_MS 5000 + +#ifdef __cplusplus +} +#endif + +#endif /* SILK_TUNING_PARAMETERS_H */ diff --git a/components/opus/libopus/silk/typedef.h b/components/opus/libopus/silk/typedef.h new file mode 100644 index 0000000..97b7e70 --- /dev/null +++ b/components/opus/libopus/silk/typedef.h @@ -0,0 +1,78 @@ +/*********************************************************************** +Copyright (c) 2006-2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifndef SILK_TYPEDEF_H +#define SILK_TYPEDEF_H + +#include "opus_types.h" +#include "opus_defines.h" + +#ifndef FIXED_POINT +# include +# define silk_float float +# define silk_float_MAX FLT_MAX +#endif + +#define silk_int64_MAX ((opus_int64)0x7FFFFFFFFFFFFFFFLL) /* 2^63 - 1 */ +#define silk_int64_MIN ((opus_int64)0x8000000000000000LL) /* -2^63 */ +#define silk_int32_MAX 0x7FFFFFFF /* 2^31 - 1 = 2147483647 */ +#define silk_int32_MIN ((opus_int32)0x80000000) /* -2^31 = -2147483648 */ +#define silk_int16_MAX 0x7FFF /* 2^15 - 1 = 32767 */ +#define silk_int16_MIN ((opus_int16)0x8000) /* -2^15 = -32768 */ +#define silk_int8_MAX 0x7F /* 2^7 - 1 = 127 */ +#define silk_int8_MIN ((opus_int8)0x80) /* -2^7 = -128 */ +#define silk_uint8_MAX 0xFF /* 2^8 - 1 = 255 */ + +#define silk_TRUE 1 +#define silk_FALSE 0 + +/* assertions */ +#if (defined _WIN32 && !defined _WINCE && !defined(__GNUC__) && !defined(NO_ASSERTS)) +# ifndef silk_assert +# include /* ASSERTE() */ +# define silk_assert(COND) _ASSERTE(COND) +# endif +#else +# ifdef ENABLE_ASSERTIONS +# include +# include +#define silk_fatal(str) _silk_fatal(str, __FILE__, __LINE__); +#ifdef __GNUC__ +__attribute__((noreturn)) +#endif +static OPUS_INLINE void _silk_fatal(const char *str, const char *file, int line) +{ + fprintf (stderr, "Fatal (internal) error in %s, line %d: %s\n", file, line, str); + abort(); +} +# define silk_assert(COND) {if (!(COND)) {silk_fatal("assertion failed: " #COND);}} +# else +# define silk_assert(COND) +# endif +#endif + +#endif /* SILK_TYPEDEF_H */ diff --git a/components/opus/libopus/silk/x86/NSQ_del_dec_sse4_1.c b/components/opus/libopus/silk/x86/NSQ_del_dec_sse4_1.c new file mode 100644 index 0000000..2c75ede --- /dev/null +++ b/components/opus/libopus/silk/x86/NSQ_del_dec_sse4_1.c @@ -0,0 +1,859 @@ +/* Copyright (c) 2014, Cisco Systems, INC + Written by XiangMingZhu WeiZhou MinPeng YanWang + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include +#include +#include "main.h" +#include "celt/x86/x86cpu.h" + +#include "stack_alloc.h" + +typedef struct { + opus_int32 sLPC_Q14[ MAX_SUB_FRAME_LENGTH + NSQ_LPC_BUF_LENGTH ]; + opus_int32 RandState[ DECISION_DELAY ]; + opus_int32 Q_Q10[ DECISION_DELAY ]; + opus_int32 Xq_Q14[ DECISION_DELAY ]; + opus_int32 Pred_Q15[ DECISION_DELAY ]; + opus_int32 Shape_Q14[ DECISION_DELAY ]; + opus_int32 sAR2_Q14[ MAX_SHAPE_LPC_ORDER ]; + opus_int32 LF_AR_Q14; + opus_int32 Seed; + opus_int32 SeedInit; + opus_int32 RD_Q10; +} NSQ_del_dec_struct; + +typedef struct { + opus_int32 Q_Q10; + opus_int32 RD_Q10; + opus_int32 xq_Q14; + opus_int32 LF_AR_Q14; + opus_int32 sLTP_shp_Q14; + opus_int32 LPC_exc_Q14; +} NSQ_sample_struct; + +typedef NSQ_sample_struct NSQ_sample_pair[ 2 ]; + +static OPUS_INLINE void silk_nsq_del_dec_scale_states_sse4_1( + const silk_encoder_state *psEncC, /* I Encoder State */ + silk_nsq_state *NSQ, /* I/O NSQ state */ + NSQ_del_dec_struct psDelDec[], /* I/O Delayed decision states */ + const opus_int32 x_Q3[], /* I Input in Q3 */ + opus_int32 x_sc_Q10[], /* O Input scaled with 1/Gain in Q10 */ + const opus_int16 sLTP[], /* I Re-whitened LTP state in Q0 */ + opus_int32 sLTP_Q15[], /* O LTP state matching scaled input */ + opus_int subfr, /* I Subframe number */ + opus_int nStatesDelayedDecision, /* I Number of del dec states */ + const opus_int LTP_scale_Q14, /* I LTP state scaling */ + const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I */ + const opus_int pitchL[ MAX_NB_SUBFR ], /* I Pitch lag */ + const opus_int signal_type, /* I Signal type */ + const opus_int decisionDelay /* I Decision delay */ +); + +/******************************************/ +/* Noise shape quantizer for one subframe */ +/******************************************/ +static OPUS_INLINE void silk_noise_shape_quantizer_del_dec_sse4_1( + silk_nsq_state *NSQ, /* I/O NSQ state */ + NSQ_del_dec_struct psDelDec[], /* I/O Delayed decision states */ + opus_int signalType, /* I Signal type */ + const opus_int32 x_Q10[], /* I */ + opus_int8 pulses[], /* O */ + opus_int16 xq[], /* O */ + opus_int32 sLTP_Q15[], /* I/O LTP filter state */ + opus_int32 delayedGain_Q10[], /* I/O Gain delay buffer */ + const opus_int16 a_Q12[], /* I Short term prediction coefs */ + const opus_int16 b_Q14[], /* I Long term prediction coefs */ + const opus_int16 AR_shp_Q13[], /* I Noise shaping coefs */ + opus_int lag, /* I Pitch lag */ + opus_int32 HarmShapeFIRPacked_Q14, /* I */ + opus_int Tilt_Q14, /* I Spectral tilt */ + opus_int32 LF_shp_Q14, /* I */ + opus_int32 Gain_Q16, /* I */ + opus_int Lambda_Q10, /* I */ + opus_int offset_Q10, /* I */ + opus_int length, /* I Input length */ + opus_int subfr, /* I Subframe number */ + opus_int shapingLPCOrder, /* I Shaping LPC filter order */ + opus_int predictLPCOrder, /* I Prediction filter order */ + opus_int warping_Q16, /* I */ + opus_int nStatesDelayedDecision, /* I Number of states in decision tree */ + opus_int *smpl_buf_idx, /* I/O Index to newest samples in buffers */ + opus_int decisionDelay /* I */ +); + +void silk_NSQ_del_dec_sse4_1( + const silk_encoder_state *psEncC, /* I Encoder State */ + silk_nsq_state *NSQ, /* I/O NSQ state */ + SideInfoIndices *psIndices, /* I/O Quantization Indices */ + const opus_int32 x_Q3[], /* I Prefiltered input signal */ + opus_int8 pulses[], /* O Quantized pulse signal */ + const opus_int16 PredCoef_Q12[ 2 * MAX_LPC_ORDER ], /* I Short term prediction coefs */ + const opus_int16 LTPCoef_Q14[ LTP_ORDER * MAX_NB_SUBFR ], /* I Long term prediction coefs */ + const opus_int16 AR2_Q13[ MAX_NB_SUBFR * MAX_SHAPE_LPC_ORDER ], /* I Noise shaping coefs */ + const opus_int HarmShapeGain_Q14[ MAX_NB_SUBFR ], /* I Long term shaping coefs */ + const opus_int Tilt_Q14[ MAX_NB_SUBFR ], /* I Spectral tilt */ + const opus_int32 LF_shp_Q14[ MAX_NB_SUBFR ], /* I Low frequency shaping coefs */ + const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I Quantization step sizes */ + const opus_int pitchL[ MAX_NB_SUBFR ], /* I Pitch lags */ + const opus_int Lambda_Q10, /* I Rate/distortion tradeoff */ + const opus_int LTP_scale_Q14 /* I LTP state scaling */ +) +{ + opus_int i, k, lag, start_idx, LSF_interpolation_flag, Winner_ind, subfr; + opus_int last_smple_idx, smpl_buf_idx, decisionDelay; + const opus_int16 *A_Q12, *B_Q14, *AR_shp_Q13; + opus_int16 *pxq; + VARDECL( opus_int32, sLTP_Q15 ); + VARDECL( opus_int16, sLTP ); + opus_int32 HarmShapeFIRPacked_Q14; + opus_int offset_Q10; + opus_int32 RDmin_Q10, Gain_Q10; + VARDECL( opus_int32, x_sc_Q10 ); + VARDECL( opus_int32, delayedGain_Q10 ); + VARDECL( NSQ_del_dec_struct, psDelDec ); + NSQ_del_dec_struct *psDD; + SAVE_STACK; + + /* Set unvoiced lag to the previous one, overwrite later for voiced */ + lag = NSQ->lagPrev; + + silk_assert( NSQ->prev_gain_Q16 != 0 ); + + /* Initialize delayed decision states */ + ALLOC( psDelDec, psEncC->nStatesDelayedDecision, NSQ_del_dec_struct ); + silk_memset( psDelDec, 0, psEncC->nStatesDelayedDecision * sizeof( NSQ_del_dec_struct ) ); + for( k = 0; k < psEncC->nStatesDelayedDecision; k++ ) { + psDD = &psDelDec[ k ]; + psDD->Seed = ( k + psIndices->Seed ) & 3; + psDD->SeedInit = psDD->Seed; + psDD->RD_Q10 = 0; + psDD->LF_AR_Q14 = NSQ->sLF_AR_shp_Q14; + psDD->Shape_Q14[ 0 ] = NSQ->sLTP_shp_Q14[ psEncC->ltp_mem_length - 1 ]; + silk_memcpy( psDD->sLPC_Q14, NSQ->sLPC_Q14, NSQ_LPC_BUF_LENGTH * sizeof( opus_int32 ) ); + silk_memcpy( psDD->sAR2_Q14, NSQ->sAR2_Q14, sizeof( NSQ->sAR2_Q14 ) ); + } + + offset_Q10 = silk_Quantization_Offsets_Q10[ psIndices->signalType >> 1 ][ psIndices->quantOffsetType ]; + smpl_buf_idx = 0; /* index of oldest samples */ + + decisionDelay = silk_min_int( DECISION_DELAY, psEncC->subfr_length ); + + /* For voiced frames limit the decision delay to lower than the pitch lag */ + if( psIndices->signalType == TYPE_VOICED ) { + for( k = 0; k < psEncC->nb_subfr; k++ ) { + decisionDelay = silk_min_int( decisionDelay, pitchL[ k ] - LTP_ORDER / 2 - 1 ); + } + } else { + if( lag > 0 ) { + decisionDelay = silk_min_int( decisionDelay, lag - LTP_ORDER / 2 - 1 ); + } + } + + if( psIndices->NLSFInterpCoef_Q2 == 4 ) { + LSF_interpolation_flag = 0; + } else { + LSF_interpolation_flag = 1; + } + + ALLOC( sLTP_Q15, + psEncC->ltp_mem_length + psEncC->frame_length, opus_int32 ); + ALLOC( sLTP, psEncC->ltp_mem_length + psEncC->frame_length, opus_int16 ); + ALLOC( x_sc_Q10, psEncC->subfr_length, opus_int32 ); + ALLOC( delayedGain_Q10, DECISION_DELAY, opus_int32 ); + /* Set up pointers to start of sub frame */ + pxq = &NSQ->xq[ psEncC->ltp_mem_length ]; + NSQ->sLTP_shp_buf_idx = psEncC->ltp_mem_length; + NSQ->sLTP_buf_idx = psEncC->ltp_mem_length; + subfr = 0; + for( k = 0; k < psEncC->nb_subfr; k++ ) { + A_Q12 = &PredCoef_Q12[ ( ( k >> 1 ) | ( 1 - LSF_interpolation_flag ) ) * MAX_LPC_ORDER ]; + B_Q14 = <PCoef_Q14[ k * LTP_ORDER ]; + AR_shp_Q13 = &AR2_Q13[ k * MAX_SHAPE_LPC_ORDER ]; + + /* Noise shape parameters */ + silk_assert( HarmShapeGain_Q14[ k ] >= 0 ); + HarmShapeFIRPacked_Q14 = silk_RSHIFT( HarmShapeGain_Q14[ k ], 2 ); + HarmShapeFIRPacked_Q14 |= silk_LSHIFT( (opus_int32)silk_RSHIFT( HarmShapeGain_Q14[ k ], 1 ), 16 ); + + NSQ->rewhite_flag = 0; + if( psIndices->signalType == TYPE_VOICED ) { + /* Voiced */ + lag = pitchL[ k ]; + + /* Re-whitening */ + if( ( k & ( 3 - silk_LSHIFT( LSF_interpolation_flag, 1 ) ) ) == 0 ) { + if( k == 2 ) { + /* RESET DELAYED DECISIONS */ + /* Find winner */ + RDmin_Q10 = psDelDec[ 0 ].RD_Q10; + Winner_ind = 0; + for( i = 1; i < psEncC->nStatesDelayedDecision; i++ ) { + if( psDelDec[ i ].RD_Q10 < RDmin_Q10 ) { + RDmin_Q10 = psDelDec[ i ].RD_Q10; + Winner_ind = i; + } + } + for( i = 0; i < psEncC->nStatesDelayedDecision; i++ ) { + if( i != Winner_ind ) { + psDelDec[ i ].RD_Q10 += ( silk_int32_MAX >> 4 ); + silk_assert( psDelDec[ i ].RD_Q10 >= 0 ); + } + } + + /* Copy final part of signals from winner state to output and long-term filter states */ + psDD = &psDelDec[ Winner_ind ]; + last_smple_idx = smpl_buf_idx + decisionDelay; + for( i = 0; i < decisionDelay; i++ ) { + last_smple_idx = ( last_smple_idx - 1 ) % DECISION_DELAY; + if( last_smple_idx < 0 ) last_smple_idx += DECISION_DELAY; + pulses[ i - decisionDelay ] = (opus_int8)silk_RSHIFT_ROUND( psDD->Q_Q10[ last_smple_idx ], 10 ); + pxq[ i - decisionDelay ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( + silk_SMULWW( psDD->Xq_Q14[ last_smple_idx ], Gains_Q16[ 1 ] ), 14 ) ); + NSQ->sLTP_shp_Q14[ NSQ->sLTP_shp_buf_idx - decisionDelay + i ] = psDD->Shape_Q14[ last_smple_idx ]; + } + + subfr = 0; + } + + /* Rewhiten with new A coefs */ + start_idx = psEncC->ltp_mem_length - lag - psEncC->predictLPCOrder - LTP_ORDER / 2; + celt_assert( start_idx > 0 ); + + silk_LPC_analysis_filter( &sLTP[ start_idx ], &NSQ->xq[ start_idx + k * psEncC->subfr_length ], + A_Q12, psEncC->ltp_mem_length - start_idx, psEncC->predictLPCOrder, psEncC->arch ); + + NSQ->sLTP_buf_idx = psEncC->ltp_mem_length; + NSQ->rewhite_flag = 1; + } + } + + silk_nsq_del_dec_scale_states_sse4_1( psEncC, NSQ, psDelDec, x_Q3, x_sc_Q10, sLTP, sLTP_Q15, k, + psEncC->nStatesDelayedDecision, LTP_scale_Q14, Gains_Q16, pitchL, psIndices->signalType, decisionDelay ); + + silk_noise_shape_quantizer_del_dec_sse4_1( NSQ, psDelDec, psIndices->signalType, x_sc_Q10, pulses, pxq, sLTP_Q15, + delayedGain_Q10, A_Q12, B_Q14, AR_shp_Q13, lag, HarmShapeFIRPacked_Q14, Tilt_Q14[ k ], LF_shp_Q14[ k ], + Gains_Q16[ k ], Lambda_Q10, offset_Q10, psEncC->subfr_length, subfr++, psEncC->shapingLPCOrder, + psEncC->predictLPCOrder, psEncC->warping_Q16, psEncC->nStatesDelayedDecision, &smpl_buf_idx, decisionDelay ); + + x_Q3 += psEncC->subfr_length; + pulses += psEncC->subfr_length; + pxq += psEncC->subfr_length; + } + + /* Find winner */ + RDmin_Q10 = psDelDec[ 0 ].RD_Q10; + Winner_ind = 0; + for( k = 1; k < psEncC->nStatesDelayedDecision; k++ ) { + if( psDelDec[ k ].RD_Q10 < RDmin_Q10 ) { + RDmin_Q10 = psDelDec[ k ].RD_Q10; + Winner_ind = k; + } + } + + /* Copy final part of signals from winner state to output and long-term filter states */ + psDD = &psDelDec[ Winner_ind ]; + psIndices->Seed = psDD->SeedInit; + last_smple_idx = smpl_buf_idx + decisionDelay; + Gain_Q10 = silk_RSHIFT32( Gains_Q16[ psEncC->nb_subfr - 1 ], 6 ); + for( i = 0; i < decisionDelay; i++ ) { + last_smple_idx = ( last_smple_idx - 1 ) % DECISION_DELAY; + if( last_smple_idx < 0 ) last_smple_idx += DECISION_DELAY; + pulses[ i - decisionDelay ] = (opus_int8)silk_RSHIFT_ROUND( psDD->Q_Q10[ last_smple_idx ], 10 ); + pxq[ i - decisionDelay ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( + silk_SMULWW( psDD->Xq_Q14[ last_smple_idx ], Gain_Q10 ), 8 ) ); + NSQ->sLTP_shp_Q14[ NSQ->sLTP_shp_buf_idx - decisionDelay + i ] = psDD->Shape_Q14[ last_smple_idx ]; + } + silk_memcpy( NSQ->sLPC_Q14, &psDD->sLPC_Q14[ psEncC->subfr_length ], NSQ_LPC_BUF_LENGTH * sizeof( opus_int32 ) ); + silk_memcpy( NSQ->sAR2_Q14, psDD->sAR2_Q14, sizeof( psDD->sAR2_Q14 ) ); + + /* Update states */ + NSQ->sLF_AR_shp_Q14 = psDD->LF_AR_Q14; + NSQ->lagPrev = pitchL[ psEncC->nb_subfr - 1 ]; + + /* Save quantized speech signal */ + silk_memmove( NSQ->xq, &NSQ->xq[ psEncC->frame_length ], psEncC->ltp_mem_length * sizeof( opus_int16 ) ); + silk_memmove( NSQ->sLTP_shp_Q14, &NSQ->sLTP_shp_Q14[ psEncC->frame_length ], psEncC->ltp_mem_length * sizeof( opus_int32 ) ); + RESTORE_STACK; +} + +/******************************************/ +/* Noise shape quantizer for one subframe */ +/******************************************/ +static OPUS_INLINE void silk_noise_shape_quantizer_del_dec_sse4_1( + silk_nsq_state *NSQ, /* I/O NSQ state */ + NSQ_del_dec_struct psDelDec[], /* I/O Delayed decision states */ + opus_int signalType, /* I Signal type */ + const opus_int32 x_Q10[], /* I */ + opus_int8 pulses[], /* O */ + opus_int16 xq[], /* O */ + opus_int32 sLTP_Q15[], /* I/O LTP filter state */ + opus_int32 delayedGain_Q10[], /* I/O Gain delay buffer */ + const opus_int16 a_Q12[], /* I Short term prediction coefs */ + const opus_int16 b_Q14[], /* I Long term prediction coefs */ + const opus_int16 AR_shp_Q13[], /* I Noise shaping coefs */ + opus_int lag, /* I Pitch lag */ + opus_int32 HarmShapeFIRPacked_Q14, /* I */ + opus_int Tilt_Q14, /* I Spectral tilt */ + opus_int32 LF_shp_Q14, /* I */ + opus_int32 Gain_Q16, /* I */ + opus_int Lambda_Q10, /* I */ + opus_int offset_Q10, /* I */ + opus_int length, /* I Input length */ + opus_int subfr, /* I Subframe number */ + opus_int shapingLPCOrder, /* I Shaping LPC filter order */ + opus_int predictLPCOrder, /* I Prediction filter order */ + opus_int warping_Q16, /* I */ + opus_int nStatesDelayedDecision, /* I Number of states in decision tree */ + opus_int *smpl_buf_idx, /* I/O Index to newest samples in buffers */ + opus_int decisionDelay /* I */ +) +{ + opus_int i, j, k, Winner_ind, RDmin_ind, RDmax_ind, last_smple_idx; + opus_int32 Winner_rand_state; + opus_int32 LTP_pred_Q14, LPC_pred_Q14, n_AR_Q14, n_LTP_Q14; + opus_int32 n_LF_Q14, r_Q10, rr_Q10, rd1_Q10, rd2_Q10, RDmin_Q10, RDmax_Q10; + opus_int32 q1_Q0, q1_Q10, q2_Q10, exc_Q14, LPC_exc_Q14, xq_Q14, Gain_Q10; + opus_int32 tmp1, tmp2, sLF_AR_shp_Q14; + opus_int32 *pred_lag_ptr, *shp_lag_ptr, *psLPC_Q14; + VARDECL( NSQ_sample_pair, psSampleState ); + NSQ_del_dec_struct *psDD; + NSQ_sample_struct *psSS; + + __m128i a_Q12_0123, a_Q12_4567, a_Q12_89AB, a_Q12_CDEF; + __m128i b_Q12_0123, b_sr_Q12_0123; + SAVE_STACK; + + celt_assert( nStatesDelayedDecision > 0 ); + ALLOC( psSampleState, nStatesDelayedDecision, NSQ_sample_pair ); + + shp_lag_ptr = &NSQ->sLTP_shp_Q14[ NSQ->sLTP_shp_buf_idx - lag + HARM_SHAPE_FIR_TAPS / 2 ]; + pred_lag_ptr = &sLTP_Q15[ NSQ->sLTP_buf_idx - lag + LTP_ORDER / 2 ]; + Gain_Q10 = silk_RSHIFT( Gain_Q16, 6 ); + + a_Q12_0123 = OP_CVTEPI16_EPI32_M64( a_Q12 ); + a_Q12_4567 = OP_CVTEPI16_EPI32_M64( a_Q12 + 4 ); + + if( opus_likely( predictLPCOrder == 16 ) ) { + a_Q12_89AB = OP_CVTEPI16_EPI32_M64( a_Q12 + 8 ); + a_Q12_CDEF = OP_CVTEPI16_EPI32_M64( a_Q12 + 12 ); + } + + if( signalType == TYPE_VOICED ){ + b_Q12_0123 = OP_CVTEPI16_EPI32_M64( b_Q14 ); + b_sr_Q12_0123 = _mm_shuffle_epi32( b_Q12_0123, _MM_SHUFFLE( 0, 3, 2, 1 ) ); /* equal shift right 4 bytes */ + } + for( i = 0; i < length; i++ ) { + /* Perform common calculations used in all states */ + + /* Long-term prediction */ + if( signalType == TYPE_VOICED ) { + /* Unrolled loop */ + /* Avoids introducing a bias because silk_SMLAWB() always rounds to -inf */ + LTP_pred_Q14 = 2; + { + __m128i tmpa, tmpb, pred_lag_ptr_tmp; + pred_lag_ptr_tmp = _mm_loadu_si128( (__m128i *)(&pred_lag_ptr[ -3 ] ) ); + pred_lag_ptr_tmp = _mm_shuffle_epi32( pred_lag_ptr_tmp, 0x1B ); + tmpa = _mm_mul_epi32( pred_lag_ptr_tmp, b_Q12_0123 ); + tmpa = _mm_srli_si128( tmpa, 2 ); + + pred_lag_ptr_tmp = _mm_shuffle_epi32( pred_lag_ptr_tmp, _MM_SHUFFLE( 0, 3, 2, 1 ) );/* equal shift right 4 bytes */ + pred_lag_ptr_tmp = _mm_mul_epi32( pred_lag_ptr_tmp, b_sr_Q12_0123 ); + pred_lag_ptr_tmp = _mm_srli_si128( pred_lag_ptr_tmp, 2 ); + pred_lag_ptr_tmp = _mm_add_epi32( pred_lag_ptr_tmp, tmpa ); + + tmpb = _mm_shuffle_epi32( pred_lag_ptr_tmp, _MM_SHUFFLE( 0, 0, 3, 2 ) );/* equal shift right 8 bytes */ + pred_lag_ptr_tmp = _mm_add_epi32( pred_lag_ptr_tmp, tmpb ); + LTP_pred_Q14 += _mm_cvtsi128_si32( pred_lag_ptr_tmp ); + + LTP_pred_Q14 = silk_SMLAWB( LTP_pred_Q14, pred_lag_ptr[ -4 ], b_Q14[ 4 ] ); + LTP_pred_Q14 = silk_LSHIFT( LTP_pred_Q14, 1 ); /* Q13 -> Q14 */ + pred_lag_ptr++; + } + } else { + LTP_pred_Q14 = 0; + } + + /* Long-term shaping */ + if( lag > 0 ) { + /* Symmetric, packed FIR coefficients */ + n_LTP_Q14 = silk_SMULWB( silk_ADD32( shp_lag_ptr[ 0 ], shp_lag_ptr[ -2 ] ), HarmShapeFIRPacked_Q14 ); + n_LTP_Q14 = silk_SMLAWT( n_LTP_Q14, shp_lag_ptr[ -1 ], HarmShapeFIRPacked_Q14 ); + n_LTP_Q14 = silk_SUB_LSHIFT32( LTP_pred_Q14, n_LTP_Q14, 2 ); /* Q12 -> Q14 */ + shp_lag_ptr++; + } else { + n_LTP_Q14 = 0; + } + { + __m128i tmpa, tmpb, psLPC_Q14_tmp, a_Q12_tmp; + + for( k = 0; k < nStatesDelayedDecision; k++ ) { + /* Delayed decision state */ + psDD = &psDelDec[ k ]; + + /* Sample state */ + psSS = psSampleState[ k ]; + + /* Generate dither */ + psDD->Seed = silk_RAND( psDD->Seed ); + + /* Pointer used in short term prediction and shaping */ + psLPC_Q14 = &psDD->sLPC_Q14[ NSQ_LPC_BUF_LENGTH - 1 + i ]; + /* Short-term prediction */ + silk_assert( predictLPCOrder == 10 || predictLPCOrder == 16 ); + /* Avoids introducing a bias because silk_SMLAWB() always rounds to -inf */ + LPC_pred_Q14 = silk_RSHIFT( predictLPCOrder, 1 ); + + tmpb = _mm_setzero_si128(); + + /* step 1 */ + psLPC_Q14_tmp = _mm_loadu_si128( (__m128i *)(&psLPC_Q14[ -3 ] ) ); /* -3, -2 , -1, 0 */ + psLPC_Q14_tmp = _mm_shuffle_epi32( psLPC_Q14_tmp, 0x1B ); /* 0, -1, -2, -3 */ + tmpa = _mm_mul_epi32( psLPC_Q14_tmp, a_Q12_0123 ); /* 0, -1, -2, -3 * 0123 -> 0*0, 2*-2 */ + + tmpa = _mm_srli_epi64( tmpa, 16 ); + tmpb = _mm_add_epi32( tmpb, tmpa ); + + psLPC_Q14_tmp = _mm_shuffle_epi32( psLPC_Q14_tmp, _MM_SHUFFLE( 0, 3, 2, 1 ) ); /* equal shift right 4 bytes */ + a_Q12_tmp = _mm_shuffle_epi32( a_Q12_0123, _MM_SHUFFLE(0, 3, 2, 1 ) ); /* equal shift right 4 bytes */ + psLPC_Q14_tmp = _mm_mul_epi32( psLPC_Q14_tmp, a_Q12_tmp ); /* 1*-1, 3*-3 */ + psLPC_Q14_tmp = _mm_srli_epi64( psLPC_Q14_tmp, 16 ); + tmpb = _mm_add_epi32( tmpb, psLPC_Q14_tmp ); + + /* step 2 */ + psLPC_Q14_tmp = _mm_loadu_si128( (__m128i *)(&psLPC_Q14[ -7 ] ) ); + psLPC_Q14_tmp = _mm_shuffle_epi32( psLPC_Q14_tmp, 0x1B ); + tmpa = _mm_mul_epi32( psLPC_Q14_tmp, a_Q12_4567 ); + tmpa = _mm_srli_epi64( tmpa, 16 ); + tmpb = _mm_add_epi32( tmpb, tmpa ); + + psLPC_Q14_tmp = _mm_shuffle_epi32( psLPC_Q14_tmp, _MM_SHUFFLE( 0, 3, 2, 1 ) ); /* equal shift right 4 bytes */ + a_Q12_tmp = _mm_shuffle_epi32( a_Q12_4567, _MM_SHUFFLE(0, 3, 2, 1 ) ); /* equal shift right 4 bytes */ + psLPC_Q14_tmp = _mm_mul_epi32( psLPC_Q14_tmp, a_Q12_tmp ); + psLPC_Q14_tmp = _mm_srli_epi64( psLPC_Q14_tmp, 16 ); + tmpb = _mm_add_epi32( tmpb, psLPC_Q14_tmp ); + + if ( opus_likely( predictLPCOrder == 16 ) ) + { + /* step 3 */ + psLPC_Q14_tmp = _mm_loadu_si128( (__m128i *)(&psLPC_Q14[ -11 ] ) ); + psLPC_Q14_tmp = _mm_shuffle_epi32( psLPC_Q14_tmp, 0x1B ); + tmpa = _mm_mul_epi32( psLPC_Q14_tmp, a_Q12_89AB ); + tmpa = _mm_srli_epi64( tmpa, 16 ); + tmpb = _mm_add_epi32( tmpb, tmpa ); + + psLPC_Q14_tmp = _mm_shuffle_epi32( psLPC_Q14_tmp, _MM_SHUFFLE( 0, 3, 2, 1 ) ); /* equal shift right 4 bytes */ + a_Q12_tmp = _mm_shuffle_epi32( a_Q12_89AB, _MM_SHUFFLE(0, 3, 2, 1 ) );/* equal shift right 4 bytes */ + psLPC_Q14_tmp = _mm_mul_epi32( psLPC_Q14_tmp, a_Q12_tmp ); + psLPC_Q14_tmp = _mm_srli_epi64( psLPC_Q14_tmp, 16 ); + tmpb = _mm_add_epi32( tmpb, psLPC_Q14_tmp ); + + /* setp 4 */ + psLPC_Q14_tmp = _mm_loadu_si128( (__m128i *)(&psLPC_Q14[ -15 ] ) ); + psLPC_Q14_tmp = _mm_shuffle_epi32( psLPC_Q14_tmp, 0x1B ); + tmpa = _mm_mul_epi32( psLPC_Q14_tmp, a_Q12_CDEF ); + tmpa = _mm_srli_epi64( tmpa, 16 ); + tmpb = _mm_add_epi32( tmpb, tmpa ); + + psLPC_Q14_tmp = _mm_shuffle_epi32( psLPC_Q14_tmp, _MM_SHUFFLE( 0, 3, 2, 1 ) ); /* equal shift right 4 bytes */ + a_Q12_tmp = _mm_shuffle_epi32( a_Q12_CDEF, _MM_SHUFFLE(0, 3, 2, 1 ) ); /* equal shift right 4 bytes */ + psLPC_Q14_tmp = _mm_mul_epi32( psLPC_Q14_tmp, a_Q12_tmp ); + psLPC_Q14_tmp = _mm_srli_epi64( psLPC_Q14_tmp, 16 ); + tmpb = _mm_add_epi32( tmpb, psLPC_Q14_tmp ); + + /* add at last */ + /* equal shift right 8 bytes*/ + tmpa = _mm_shuffle_epi32( tmpb, _MM_SHUFFLE( 0, 0, 3, 2 ) ); + tmpb = _mm_add_epi32( tmpb, tmpa ); + LPC_pred_Q14 += _mm_cvtsi128_si32( tmpb ); + } + else + { + /* add at last */ + tmpa = _mm_shuffle_epi32( tmpb, _MM_SHUFFLE( 0, 0, 3, 2 ) ); /* equal shift right 8 bytes*/ + tmpb = _mm_add_epi32( tmpb, tmpa ); + LPC_pred_Q14 += _mm_cvtsi128_si32( tmpb ); + + LPC_pred_Q14 = silk_SMLAWB( LPC_pred_Q14, psLPC_Q14[ -8 ], a_Q12[ 8 ] ); + LPC_pred_Q14 = silk_SMLAWB( LPC_pred_Q14, psLPC_Q14[ -9 ], a_Q12[ 9 ] ); + } + + LPC_pred_Q14 = silk_LSHIFT( LPC_pred_Q14, 4 ); /* Q10 -> Q14 */ + + /* Noise shape feedback */ + silk_assert( ( shapingLPCOrder & 1 ) == 0 ); /* check that order is even */ + /* Output of lowpass section */ + tmp2 = silk_SMLAWB( psLPC_Q14[ 0 ], psDD->sAR2_Q14[ 0 ], warping_Q16 ); + /* Output of allpass section */ + tmp1 = silk_SMLAWB( psDD->sAR2_Q14[ 0 ], psDD->sAR2_Q14[ 1 ] - tmp2, warping_Q16 ); + psDD->sAR2_Q14[ 0 ] = tmp2; + n_AR_Q14 = silk_RSHIFT( shapingLPCOrder, 1 ); + n_AR_Q14 = silk_SMLAWB( n_AR_Q14, tmp2, AR_shp_Q13[ 0 ] ); + /* Loop over allpass sections */ + for( j = 2; j < shapingLPCOrder; j += 2 ) { + /* Output of allpass section */ + tmp2 = silk_SMLAWB( psDD->sAR2_Q14[ j - 1 ], psDD->sAR2_Q14[ j + 0 ] - tmp1, warping_Q16 ); + psDD->sAR2_Q14[ j - 1 ] = tmp1; + n_AR_Q14 = silk_SMLAWB( n_AR_Q14, tmp1, AR_shp_Q13[ j - 1 ] ); + /* Output of allpass section */ + tmp1 = silk_SMLAWB( psDD->sAR2_Q14[ j + 0 ], psDD->sAR2_Q14[ j + 1 ] - tmp2, warping_Q16 ); + psDD->sAR2_Q14[ j + 0 ] = tmp2; + n_AR_Q14 = silk_SMLAWB( n_AR_Q14, tmp2, AR_shp_Q13[ j ] ); + } + psDD->sAR2_Q14[ shapingLPCOrder - 1 ] = tmp1; + n_AR_Q14 = silk_SMLAWB( n_AR_Q14, tmp1, AR_shp_Q13[ shapingLPCOrder - 1 ] ); + + n_AR_Q14 = silk_LSHIFT( n_AR_Q14, 1 ); /* Q11 -> Q12 */ + n_AR_Q14 = silk_SMLAWB( n_AR_Q14, psDD->LF_AR_Q14, Tilt_Q14 ); /* Q12 */ + n_AR_Q14 = silk_LSHIFT( n_AR_Q14, 2 ); /* Q12 -> Q14 */ + + n_LF_Q14 = silk_SMULWB( psDD->Shape_Q14[ *smpl_buf_idx ], LF_shp_Q14 ); /* Q12 */ + n_LF_Q14 = silk_SMLAWT( n_LF_Q14, psDD->LF_AR_Q14, LF_shp_Q14 ); /* Q12 */ + n_LF_Q14 = silk_LSHIFT( n_LF_Q14, 2 ); /* Q12 -> Q14 */ + + /* Input minus prediction plus noise feedback */ + /* r = x[ i ] - LTP_pred - LPC_pred + n_AR + n_Tilt + n_LF + n_LTP */ + tmp1 = silk_ADD32( n_AR_Q14, n_LF_Q14 ); /* Q14 */ + tmp2 = silk_ADD32( n_LTP_Q14, LPC_pred_Q14 ); /* Q13 */ + tmp1 = silk_SUB32( tmp2, tmp1 ); /* Q13 */ + tmp1 = silk_RSHIFT_ROUND( tmp1, 4 ); /* Q10 */ + + r_Q10 = silk_SUB32( x_Q10[ i ], tmp1 ); /* residual error Q10 */ + + /* Flip sign depending on dither */ + if ( psDD->Seed < 0 ) { + r_Q10 = -r_Q10; + } + r_Q10 = silk_LIMIT_32( r_Q10, -(31 << 10), 30 << 10 ); + + /* Find two quantization level candidates and measure their rate-distortion */ + q1_Q10 = silk_SUB32( r_Q10, offset_Q10 ); + q1_Q0 = silk_RSHIFT( q1_Q10, 10 ); + if( q1_Q0 > 0 ) { + q1_Q10 = silk_SUB32( silk_LSHIFT( q1_Q0, 10 ), QUANT_LEVEL_ADJUST_Q10 ); + q1_Q10 = silk_ADD32( q1_Q10, offset_Q10 ); + q2_Q10 = silk_ADD32( q1_Q10, 1024 ); + rd1_Q10 = silk_SMULBB( q1_Q10, Lambda_Q10 ); + rd2_Q10 = silk_SMULBB( q2_Q10, Lambda_Q10 ); + } else if( q1_Q0 == 0 ) { + q1_Q10 = offset_Q10; + q2_Q10 = silk_ADD32( q1_Q10, 1024 - QUANT_LEVEL_ADJUST_Q10 ); + rd1_Q10 = silk_SMULBB( q1_Q10, Lambda_Q10 ); + rd2_Q10 = silk_SMULBB( q2_Q10, Lambda_Q10 ); + } else if( q1_Q0 == -1 ) { + q2_Q10 = offset_Q10; + q1_Q10 = silk_SUB32( q2_Q10, 1024 - QUANT_LEVEL_ADJUST_Q10 ); + rd1_Q10 = silk_SMULBB( -q1_Q10, Lambda_Q10 ); + rd2_Q10 = silk_SMULBB( q2_Q10, Lambda_Q10 ); + } else { /* q1_Q0 < -1 */ + q1_Q10 = silk_ADD32( silk_LSHIFT( q1_Q0, 10 ), QUANT_LEVEL_ADJUST_Q10 ); + q1_Q10 = silk_ADD32( q1_Q10, offset_Q10 ); + q2_Q10 = silk_ADD32( q1_Q10, 1024 ); + rd1_Q10 = silk_SMULBB( -q1_Q10, Lambda_Q10 ); + rd2_Q10 = silk_SMULBB( -q2_Q10, Lambda_Q10 ); + } + rr_Q10 = silk_SUB32( r_Q10, q1_Q10 ); + rd1_Q10 = silk_RSHIFT( silk_SMLABB( rd1_Q10, rr_Q10, rr_Q10 ), 10 ); + rr_Q10 = silk_SUB32( r_Q10, q2_Q10 ); + rd2_Q10 = silk_RSHIFT( silk_SMLABB( rd2_Q10, rr_Q10, rr_Q10 ), 10 ); + + if( rd1_Q10 < rd2_Q10 ) { + psSS[ 0 ].RD_Q10 = silk_ADD32( psDD->RD_Q10, rd1_Q10 ); + psSS[ 1 ].RD_Q10 = silk_ADD32( psDD->RD_Q10, rd2_Q10 ); + psSS[ 0 ].Q_Q10 = q1_Q10; + psSS[ 1 ].Q_Q10 = q2_Q10; + } else { + psSS[ 0 ].RD_Q10 = silk_ADD32( psDD->RD_Q10, rd2_Q10 ); + psSS[ 1 ].RD_Q10 = silk_ADD32( psDD->RD_Q10, rd1_Q10 ); + psSS[ 0 ].Q_Q10 = q2_Q10; + psSS[ 1 ].Q_Q10 = q1_Q10; + } + + /* Update states for best quantization */ + + /* Quantized excitation */ + exc_Q14 = silk_LSHIFT32( psSS[ 0 ].Q_Q10, 4 ); + if ( psDD->Seed < 0 ) { + exc_Q14 = -exc_Q14; + } + + /* Add predictions */ + LPC_exc_Q14 = silk_ADD32( exc_Q14, LTP_pred_Q14 ); + xq_Q14 = silk_ADD32( LPC_exc_Q14, LPC_pred_Q14 ); + + /* Update states */ + sLF_AR_shp_Q14 = silk_SUB32( xq_Q14, n_AR_Q14 ); + psSS[ 0 ].sLTP_shp_Q14 = silk_SUB32( sLF_AR_shp_Q14, n_LF_Q14 ); + psSS[ 0 ].LF_AR_Q14 = sLF_AR_shp_Q14; + psSS[ 0 ].LPC_exc_Q14 = LPC_exc_Q14; + psSS[ 0 ].xq_Q14 = xq_Q14; + + /* Update states for second best quantization */ + + /* Quantized excitation */ + exc_Q14 = silk_LSHIFT32( psSS[ 1 ].Q_Q10, 4 ); + if ( psDD->Seed < 0 ) { + exc_Q14 = -exc_Q14; + } + + + /* Add predictions */ + LPC_exc_Q14 = silk_ADD32( exc_Q14, LTP_pred_Q14 ); + xq_Q14 = silk_ADD32( LPC_exc_Q14, LPC_pred_Q14 ); + + /* Update states */ + sLF_AR_shp_Q14 = silk_SUB32( xq_Q14, n_AR_Q14 ); + psSS[ 1 ].sLTP_shp_Q14 = silk_SUB32( sLF_AR_shp_Q14, n_LF_Q14 ); + psSS[ 1 ].LF_AR_Q14 = sLF_AR_shp_Q14; + psSS[ 1 ].LPC_exc_Q14 = LPC_exc_Q14; + psSS[ 1 ].xq_Q14 = xq_Q14; + } + } + *smpl_buf_idx = ( *smpl_buf_idx - 1 ) % DECISION_DELAY; + if( *smpl_buf_idx < 0 ) *smpl_buf_idx += DECISION_DELAY; + last_smple_idx = ( *smpl_buf_idx + decisionDelay ) % DECISION_DELAY; + + /* Find winner */ + RDmin_Q10 = psSampleState[ 0 ][ 0 ].RD_Q10; + Winner_ind = 0; + for( k = 1; k < nStatesDelayedDecision; k++ ) { + if( psSampleState[ k ][ 0 ].RD_Q10 < RDmin_Q10 ) { + RDmin_Q10 = psSampleState[ k ][ 0 ].RD_Q10; + Winner_ind = k; + } + } + + /* Increase RD values of expired states */ + Winner_rand_state = psDelDec[ Winner_ind ].RandState[ last_smple_idx ]; + for( k = 0; k < nStatesDelayedDecision; k++ ) { + if( psDelDec[ k ].RandState[ last_smple_idx ] != Winner_rand_state ) { + psSampleState[ k ][ 0 ].RD_Q10 = silk_ADD32( psSampleState[ k ][ 0 ].RD_Q10, silk_int32_MAX >> 4 ); + psSampleState[ k ][ 1 ].RD_Q10 = silk_ADD32( psSampleState[ k ][ 1 ].RD_Q10, silk_int32_MAX >> 4 ); + silk_assert( psSampleState[ k ][ 0 ].RD_Q10 >= 0 ); + } + } + + /* Find worst in first set and best in second set */ + RDmax_Q10 = psSampleState[ 0 ][ 0 ].RD_Q10; + RDmin_Q10 = psSampleState[ 0 ][ 1 ].RD_Q10; + RDmax_ind = 0; + RDmin_ind = 0; + for( k = 1; k < nStatesDelayedDecision; k++ ) { + /* find worst in first set */ + if( psSampleState[ k ][ 0 ].RD_Q10 > RDmax_Q10 ) { + RDmax_Q10 = psSampleState[ k ][ 0 ].RD_Q10; + RDmax_ind = k; + } + /* find best in second set */ + if( psSampleState[ k ][ 1 ].RD_Q10 < RDmin_Q10 ) { + RDmin_Q10 = psSampleState[ k ][ 1 ].RD_Q10; + RDmin_ind = k; + } + } + + /* Replace a state if best from second set outperforms worst in first set */ + if( RDmin_Q10 < RDmax_Q10 ) { + silk_memcpy( ( (opus_int32 *)&psDelDec[ RDmax_ind ] ) + i, + ( (opus_int32 *)&psDelDec[ RDmin_ind ] ) + i, sizeof( NSQ_del_dec_struct ) - i * sizeof( opus_int32) ); + silk_memcpy( &psSampleState[ RDmax_ind ][ 0 ], &psSampleState[ RDmin_ind ][ 1 ], sizeof( NSQ_sample_struct ) ); + } + + /* Write samples from winner to output and long-term filter states */ + psDD = &psDelDec[ Winner_ind ]; + if( subfr > 0 || i >= decisionDelay ) { + pulses[ i - decisionDelay ] = (opus_int8)silk_RSHIFT_ROUND( psDD->Q_Q10[ last_smple_idx ], 10 ); + xq[ i - decisionDelay ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( + silk_SMULWW( psDD->Xq_Q14[ last_smple_idx ], delayedGain_Q10[ last_smple_idx ] ), 8 ) ); + NSQ->sLTP_shp_Q14[ NSQ->sLTP_shp_buf_idx - decisionDelay ] = psDD->Shape_Q14[ last_smple_idx ]; + sLTP_Q15[ NSQ->sLTP_buf_idx - decisionDelay ] = psDD->Pred_Q15[ last_smple_idx ]; + } + NSQ->sLTP_shp_buf_idx++; + NSQ->sLTP_buf_idx++; + + /* Update states */ + for( k = 0; k < nStatesDelayedDecision; k++ ) { + psDD = &psDelDec[ k ]; + psSS = &psSampleState[ k ][ 0 ]; + psDD->LF_AR_Q14 = psSS->LF_AR_Q14; + psDD->sLPC_Q14[ NSQ_LPC_BUF_LENGTH + i ] = psSS->xq_Q14; + psDD->Xq_Q14[ *smpl_buf_idx ] = psSS->xq_Q14; + psDD->Q_Q10[ *smpl_buf_idx ] = psSS->Q_Q10; + psDD->Pred_Q15[ *smpl_buf_idx ] = silk_LSHIFT32( psSS->LPC_exc_Q14, 1 ); + psDD->Shape_Q14[ *smpl_buf_idx ] = psSS->sLTP_shp_Q14; + psDD->Seed = silk_ADD32_ovflw( psDD->Seed, silk_RSHIFT_ROUND( psSS->Q_Q10, 10 ) ); + psDD->RandState[ *smpl_buf_idx ] = psDD->Seed; + psDD->RD_Q10 = psSS->RD_Q10; + } + delayedGain_Q10[ *smpl_buf_idx ] = Gain_Q10; + } + /* Update LPC states */ + for( k = 0; k < nStatesDelayedDecision; k++ ) { + psDD = &psDelDec[ k ]; + silk_memcpy( psDD->sLPC_Q14, &psDD->sLPC_Q14[ length ], NSQ_LPC_BUF_LENGTH * sizeof( opus_int32 ) ); + } + RESTORE_STACK; +} + +static OPUS_INLINE void silk_nsq_del_dec_scale_states_sse4_1( + const silk_encoder_state *psEncC, /* I Encoder State */ + silk_nsq_state *NSQ, /* I/O NSQ state */ + NSQ_del_dec_struct psDelDec[], /* I/O Delayed decision states */ + const opus_int32 x_Q3[], /* I Input in Q3 */ + opus_int32 x_sc_Q10[], /* O Input scaled with 1/Gain in Q10 */ + const opus_int16 sLTP[], /* I Re-whitened LTP state in Q0 */ + opus_int32 sLTP_Q15[], /* O LTP state matching scaled input */ + opus_int subfr, /* I Subframe number */ + opus_int nStatesDelayedDecision, /* I Number of del dec states */ + const opus_int LTP_scale_Q14, /* I LTP state scaling */ + const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I */ + const opus_int pitchL[ MAX_NB_SUBFR ], /* I Pitch lag */ + const opus_int signal_type, /* I Signal type */ + const opus_int decisionDelay /* I Decision delay */ +) +{ + opus_int i, k, lag; + opus_int32 gain_adj_Q16, inv_gain_Q31, inv_gain_Q23; + NSQ_del_dec_struct *psDD; + __m128i xmm_inv_gain_Q23, xmm_x_Q3_x2x0, xmm_x_Q3_x3x1; + + lag = pitchL[ subfr ]; + inv_gain_Q31 = silk_INVERSE32_varQ( silk_max( Gains_Q16[ subfr ], 1 ), 47 ); + + silk_assert( inv_gain_Q31 != 0 ); + + /* Calculate gain adjustment factor */ + if( Gains_Q16[ subfr ] != NSQ->prev_gain_Q16 ) { + gain_adj_Q16 = silk_DIV32_varQ( NSQ->prev_gain_Q16, Gains_Q16[ subfr ], 16 ); + } else { + gain_adj_Q16 = (opus_int32)1 << 16; + } + + /* Scale input */ + inv_gain_Q23 = silk_RSHIFT_ROUND( inv_gain_Q31, 8 ); + + /* prepare inv_gain_Q23 in packed 4 32-bits */ + xmm_inv_gain_Q23 = _mm_set1_epi32(inv_gain_Q23); + + for( i = 0; i < psEncC->subfr_length - 3; i += 4 ) { + xmm_x_Q3_x2x0 = _mm_loadu_si128( (__m128i *)(&(x_Q3[ i ] ) ) ); + /* equal shift right 4 bytes*/ + xmm_x_Q3_x3x1 = _mm_shuffle_epi32( xmm_x_Q3_x2x0, _MM_SHUFFLE( 0, 3, 2, 1 ) ); + + xmm_x_Q3_x2x0 = _mm_mul_epi32( xmm_x_Q3_x2x0, xmm_inv_gain_Q23 ); + xmm_x_Q3_x3x1 = _mm_mul_epi32( xmm_x_Q3_x3x1, xmm_inv_gain_Q23 ); + + xmm_x_Q3_x2x0 = _mm_srli_epi64( xmm_x_Q3_x2x0, 16 ); + xmm_x_Q3_x3x1 = _mm_slli_epi64( xmm_x_Q3_x3x1, 16 ); + + xmm_x_Q3_x2x0 = _mm_blend_epi16( xmm_x_Q3_x2x0, xmm_x_Q3_x3x1, 0xCC ); + + _mm_storeu_si128( (__m128i *)(&(x_sc_Q10[ i ])), xmm_x_Q3_x2x0 ); + } + + for( ; i < psEncC->subfr_length; i++ ) { + x_sc_Q10[ i ] = silk_SMULWW( x_Q3[ i ], inv_gain_Q23 ); + } + + /* Save inverse gain */ + NSQ->prev_gain_Q16 = Gains_Q16[ subfr ]; + + /* After rewhitening the LTP state is un-scaled, so scale with inv_gain_Q16 */ + if( NSQ->rewhite_flag ) { + if( subfr == 0 ) { + /* Do LTP downscaling */ + inv_gain_Q31 = silk_LSHIFT( silk_SMULWB( inv_gain_Q31, LTP_scale_Q14 ), 2 ); + } + for( i = NSQ->sLTP_buf_idx - lag - LTP_ORDER / 2; i < NSQ->sLTP_buf_idx; i++ ) { + silk_assert( i < MAX_FRAME_LENGTH ); + sLTP_Q15[ i ] = silk_SMULWB( inv_gain_Q31, sLTP[ i ] ); + } + } + + /* Adjust for changing gain */ + if( gain_adj_Q16 != (opus_int32)1 << 16 ) { + /* Scale long-term shaping state */ + { + __m128i xmm_gain_adj_Q16, xmm_sLTP_shp_Q14_x2x0, xmm_sLTP_shp_Q14_x3x1; + + /* prepare gain_adj_Q16 in packed 4 32-bits */ + xmm_gain_adj_Q16 = _mm_set1_epi32( gain_adj_Q16 ); + + for( i = NSQ->sLTP_shp_buf_idx - psEncC->ltp_mem_length; i < NSQ->sLTP_shp_buf_idx - 3; i += 4 ) + { + xmm_sLTP_shp_Q14_x2x0 = _mm_loadu_si128( (__m128i *)(&(NSQ->sLTP_shp_Q14[ i ] ) ) ); + /* equal shift right 4 bytes*/ + xmm_sLTP_shp_Q14_x3x1 = _mm_shuffle_epi32( xmm_sLTP_shp_Q14_x2x0, _MM_SHUFFLE( 0, 3, 2, 1 ) ); + + xmm_sLTP_shp_Q14_x2x0 = _mm_mul_epi32( xmm_sLTP_shp_Q14_x2x0, xmm_gain_adj_Q16 ); + xmm_sLTP_shp_Q14_x3x1 = _mm_mul_epi32( xmm_sLTP_shp_Q14_x3x1, xmm_gain_adj_Q16 ); + + xmm_sLTP_shp_Q14_x2x0 = _mm_srli_epi64( xmm_sLTP_shp_Q14_x2x0, 16 ); + xmm_sLTP_shp_Q14_x3x1 = _mm_slli_epi64( xmm_sLTP_shp_Q14_x3x1, 16 ); + + xmm_sLTP_shp_Q14_x2x0 = _mm_blend_epi16( xmm_sLTP_shp_Q14_x2x0, xmm_sLTP_shp_Q14_x3x1, 0xCC ); + + _mm_storeu_si128( (__m128i *)(&(NSQ->sLTP_shp_Q14[ i ] ) ), xmm_sLTP_shp_Q14_x2x0 ); + } + + for( ; i < NSQ->sLTP_shp_buf_idx; i++ ) { + NSQ->sLTP_shp_Q14[ i ] = silk_SMULWW( gain_adj_Q16, NSQ->sLTP_shp_Q14[ i ] ); + } + + /* Scale long-term prediction state */ + if( signal_type == TYPE_VOICED && NSQ->rewhite_flag == 0 ) { + for( i = NSQ->sLTP_buf_idx - lag - LTP_ORDER / 2; i < NSQ->sLTP_buf_idx - decisionDelay; i++ ) { + sLTP_Q15[ i ] = silk_SMULWW( gain_adj_Q16, sLTP_Q15[ i ] ); + } + } + + for( k = 0; k < nStatesDelayedDecision; k++ ) { + psDD = &psDelDec[ k ]; + + /* Scale scalar states */ + psDD->LF_AR_Q14 = silk_SMULWW( gain_adj_Q16, psDD->LF_AR_Q14 ); + + /* Scale short-term prediction and shaping states */ + for( i = 0; i < NSQ_LPC_BUF_LENGTH; i++ ) { + psDD->sLPC_Q14[ i ] = silk_SMULWW( gain_adj_Q16, psDD->sLPC_Q14[ i ] ); + } + for( i = 0; i < MAX_SHAPE_LPC_ORDER; i++ ) { + psDD->sAR2_Q14[ i ] = silk_SMULWW( gain_adj_Q16, psDD->sAR2_Q14[ i ] ); + } + for( i = 0; i < DECISION_DELAY; i++ ) { + psDD->Pred_Q15[ i ] = silk_SMULWW( gain_adj_Q16, psDD->Pred_Q15[ i ] ); + psDD->Shape_Q14[ i ] = silk_SMULWW( gain_adj_Q16, psDD->Shape_Q14[ i ] ); + } + } + } + } +} diff --git a/components/opus/libopus/silk/x86/NSQ_sse4_1.c b/components/opus/libopus/silk/x86/NSQ_sse4_1.c new file mode 100644 index 0000000..b0315e3 --- /dev/null +++ b/components/opus/libopus/silk/x86/NSQ_sse4_1.c @@ -0,0 +1,719 @@ +/* Copyright (c) 2014, Cisco Systems, INC + Written by XiangMingZhu WeiZhou MinPeng YanWang + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include +#include +#include "main.h" +#include "celt/x86/x86cpu.h" +#include "stack_alloc.h" + +static OPUS_INLINE void silk_nsq_scale_states_sse4_1( + const silk_encoder_state *psEncC, /* I Encoder State */ + silk_nsq_state *NSQ, /* I/O NSQ state */ + const opus_int32 x_Q3[], /* I input in Q3 */ + opus_int32 x_sc_Q10[], /* O input scaled with 1/Gain */ + const opus_int16 sLTP[], /* I re-whitened LTP state in Q0 */ + opus_int32 sLTP_Q15[], /* O LTP state matching scaled input */ + opus_int subfr, /* I subframe number */ + const opus_int LTP_scale_Q14, /* I */ + const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I */ + const opus_int pitchL[ MAX_NB_SUBFR ], /* I Pitch lag */ + const opus_int signal_type /* I Signal type */ +); + +static OPUS_INLINE void silk_noise_shape_quantizer_10_16_sse4_1( + silk_nsq_state *NSQ, /* I/O NSQ state */ + opus_int signalType, /* I Signal type */ + const opus_int32 x_sc_Q10[], /* I */ + opus_int8 pulses[], /* O */ + opus_int16 xq[], /* O */ + opus_int32 sLTP_Q15[], /* I/O LTP state */ + const opus_int16 a_Q12[], /* I Short term prediction coefs */ + const opus_int16 b_Q14[], /* I Long term prediction coefs */ + const opus_int16 AR_shp_Q13[], /* I Noise shaping AR coefs */ + opus_int lag, /* I Pitch lag */ + opus_int32 HarmShapeFIRPacked_Q14, /* I */ + opus_int Tilt_Q14, /* I Spectral tilt */ + opus_int32 LF_shp_Q14, /* I */ + opus_int32 Gain_Q16, /* I */ + opus_int offset_Q10, /* I */ + opus_int length, /* I Input length */ + opus_int32 table[][4] /* I */ +); + +void silk_NSQ_sse4_1( + const silk_encoder_state *psEncC, /* I Encoder State */ + silk_nsq_state *NSQ, /* I/O NSQ state */ + SideInfoIndices *psIndices, /* I/O Quantization Indices */ + const opus_int32 x_Q3[], /* I Prefiltered input signal */ + opus_int8 pulses[], /* O Quantized pulse signal */ + const opus_int16 PredCoef_Q12[ 2 * MAX_LPC_ORDER ], /* I Short term prediction coefs */ + const opus_int16 LTPCoef_Q14[ LTP_ORDER * MAX_NB_SUBFR ], /* I Long term prediction coefs */ + const opus_int16 AR2_Q13[ MAX_NB_SUBFR * MAX_SHAPE_LPC_ORDER ], /* I Noise shaping coefs */ + const opus_int HarmShapeGain_Q14[ MAX_NB_SUBFR ], /* I Long term shaping coefs */ + const opus_int Tilt_Q14[ MAX_NB_SUBFR ], /* I Spectral tilt */ + const opus_int32 LF_shp_Q14[ MAX_NB_SUBFR ], /* I Low frequency shaping coefs */ + const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I Quantization step sizes */ + const opus_int pitchL[ MAX_NB_SUBFR ], /* I Pitch lags */ + const opus_int Lambda_Q10, /* I Rate/distortion tradeoff */ + const opus_int LTP_scale_Q14 /* I LTP state scaling */ +) +{ + opus_int k, lag, start_idx, LSF_interpolation_flag; + const opus_int16 *A_Q12, *B_Q14, *AR_shp_Q13; + opus_int16 *pxq; + VARDECL( opus_int32, sLTP_Q15 ); + VARDECL( opus_int16, sLTP ); + opus_int32 HarmShapeFIRPacked_Q14; + opus_int offset_Q10; + VARDECL( opus_int32, x_sc_Q10 ); + + opus_int32 table[ 64 ][ 4 ]; + opus_int32 tmp1; + opus_int32 q1_Q10, q2_Q10, rd1_Q20, rd2_Q20; + + SAVE_STACK; + + NSQ->rand_seed = psIndices->Seed; + + /* Set unvoiced lag to the previous one, overwrite later for voiced */ + lag = NSQ->lagPrev; + + silk_assert( NSQ->prev_gain_Q16 != 0 ); + + offset_Q10 = silk_Quantization_Offsets_Q10[ psIndices->signalType >> 1 ][ psIndices->quantOffsetType ]; + + /* 0 */ + q1_Q10 = offset_Q10; + q2_Q10 = offset_Q10 + ( 1024 - QUANT_LEVEL_ADJUST_Q10 ); + rd1_Q20 = q1_Q10 * Lambda_Q10; + rd2_Q20 = q2_Q10 * Lambda_Q10; + + table[ 32 ][ 0 ] = q1_Q10; + table[ 32 ][ 1 ] = q2_Q10; + table[ 32 ][ 2 ] = 2 * (q1_Q10 - q2_Q10); + table[ 32 ][ 3 ] = (rd1_Q20 - rd2_Q20) + (q1_Q10 * q1_Q10 - q2_Q10 * q2_Q10); + + /* -1 */ + q1_Q10 = offset_Q10 - ( 1024 - QUANT_LEVEL_ADJUST_Q10 ); + q2_Q10 = offset_Q10; + rd1_Q20 = - q1_Q10 * Lambda_Q10; + rd2_Q20 = q2_Q10 * Lambda_Q10; + + table[ 31 ][ 0 ] = q1_Q10; + table[ 31 ][ 1 ] = q2_Q10; + table[ 31 ][ 2 ] = 2 * (q1_Q10 - q2_Q10); + table[ 31 ][ 3 ] = (rd1_Q20 - rd2_Q20) + (q1_Q10 * q1_Q10 - q2_Q10 * q2_Q10); + + /* > 0 */ + for (k = 1; k <= 31; k++) + { + tmp1 = offset_Q10 + silk_LSHIFT( k, 10 ); + + q1_Q10 = tmp1 - QUANT_LEVEL_ADJUST_Q10; + q2_Q10 = tmp1 - QUANT_LEVEL_ADJUST_Q10 + 1024; + rd1_Q20 = q1_Q10 * Lambda_Q10; + rd2_Q20 = q2_Q10 * Lambda_Q10; + + table[ 32 + k ][ 0 ] = q1_Q10; + table[ 32 + k ][ 1 ] = q2_Q10; + table[ 32 + k ][ 2 ] = 2 * (q1_Q10 - q2_Q10); + table[ 32 + k ][ 3 ] = (rd1_Q20 - rd2_Q20) + (q1_Q10 * q1_Q10 - q2_Q10 * q2_Q10); + } + + /* < -1 */ + for (k = -32; k <= -2; k++) + { + tmp1 = offset_Q10 + silk_LSHIFT( k, 10 ); + + q1_Q10 = tmp1 + QUANT_LEVEL_ADJUST_Q10; + q2_Q10 = tmp1 + QUANT_LEVEL_ADJUST_Q10 + 1024; + rd1_Q20 = - q1_Q10 * Lambda_Q10; + rd2_Q20 = - q2_Q10 * Lambda_Q10; + + table[ 32 + k ][ 0 ] = q1_Q10; + table[ 32 + k ][ 1 ] = q2_Q10; + table[ 32 + k ][ 2 ] = 2 * (q1_Q10 - q2_Q10); + table[ 32 + k ][ 3 ] = (rd1_Q20 - rd2_Q20) + (q1_Q10 * q1_Q10 - q2_Q10 * q2_Q10); + } + + if( psIndices->NLSFInterpCoef_Q2 == 4 ) { + LSF_interpolation_flag = 0; + } else { + LSF_interpolation_flag = 1; + } + + ALLOC( sLTP_Q15, + psEncC->ltp_mem_length + psEncC->frame_length, opus_int32 ); + ALLOC( sLTP, psEncC->ltp_mem_length + psEncC->frame_length, opus_int16 ); + ALLOC( x_sc_Q10, psEncC->subfr_length, opus_int32 ); + /* Set up pointers to start of sub frame */ + NSQ->sLTP_shp_buf_idx = psEncC->ltp_mem_length; + NSQ->sLTP_buf_idx = psEncC->ltp_mem_length; + pxq = &NSQ->xq[ psEncC->ltp_mem_length ]; + for( k = 0; k < psEncC->nb_subfr; k++ ) { + A_Q12 = &PredCoef_Q12[ (( k >> 1 ) | ( 1 - LSF_interpolation_flag )) * MAX_LPC_ORDER ]; + B_Q14 = <PCoef_Q14[ k * LTP_ORDER ]; + AR_shp_Q13 = &AR2_Q13[ k * MAX_SHAPE_LPC_ORDER ]; + + /* Noise shape parameters */ + silk_assert( HarmShapeGain_Q14[ k ] >= 0 ); + HarmShapeFIRPacked_Q14 = silk_RSHIFT( HarmShapeGain_Q14[ k ], 2 ); + HarmShapeFIRPacked_Q14 |= silk_LSHIFT( (opus_int32)silk_RSHIFT( HarmShapeGain_Q14[ k ], 1 ), 16 ); + + NSQ->rewhite_flag = 0; + if( psIndices->signalType == TYPE_VOICED ) { + /* Voiced */ + lag = pitchL[ k ]; + + /* Re-whitening */ + if( ( k & ( 3 - silk_LSHIFT( LSF_interpolation_flag, 1 ) ) ) == 0 ) { + /* Rewhiten with new A coefs */ + start_idx = psEncC->ltp_mem_length - lag - psEncC->predictLPCOrder - LTP_ORDER / 2; + celt_assert( start_idx > 0 ); + + silk_LPC_analysis_filter( &sLTP[ start_idx ], &NSQ->xq[ start_idx + k * psEncC->subfr_length ], + A_Q12, psEncC->ltp_mem_length - start_idx, psEncC->predictLPCOrder, psEncC->arch ); + + NSQ->rewhite_flag = 1; + NSQ->sLTP_buf_idx = psEncC->ltp_mem_length; + } + } + + silk_nsq_scale_states_sse4_1( psEncC, NSQ, x_Q3, x_sc_Q10, sLTP, sLTP_Q15, k, LTP_scale_Q14, Gains_Q16, pitchL, psIndices->signalType ); + + if ( opus_likely( ( 10 == psEncC->shapingLPCOrder ) && ( 16 == psEncC->predictLPCOrder) ) ) + { + silk_noise_shape_quantizer_10_16_sse4_1( NSQ, psIndices->signalType, x_sc_Q10, pulses, pxq, sLTP_Q15, A_Q12, B_Q14, + AR_shp_Q13, lag, HarmShapeFIRPacked_Q14, Tilt_Q14[ k ], LF_shp_Q14[ k ], Gains_Q16[ k ], + offset_Q10, psEncC->subfr_length, &(table[32]) ); + } + else + { + silk_noise_shape_quantizer( NSQ, psIndices->signalType, x_sc_Q10, pulses, pxq, sLTP_Q15, A_Q12, B_Q14, + AR_shp_Q13, lag, HarmShapeFIRPacked_Q14, Tilt_Q14[ k ], LF_shp_Q14[ k ], Gains_Q16[ k ], Lambda_Q10, + offset_Q10, psEncC->subfr_length, psEncC->shapingLPCOrder, psEncC->predictLPCOrder, psEncC->arch ); + } + + x_Q3 += psEncC->subfr_length; + pulses += psEncC->subfr_length; + pxq += psEncC->subfr_length; + } + + /* Update lagPrev for next frame */ + NSQ->lagPrev = pitchL[ psEncC->nb_subfr - 1 ]; + + /* Save quantized speech and noise shaping signals */ + silk_memmove( NSQ->xq, &NSQ->xq[ psEncC->frame_length ], psEncC->ltp_mem_length * sizeof( opus_int16 ) ); + silk_memmove( NSQ->sLTP_shp_Q14, &NSQ->sLTP_shp_Q14[ psEncC->frame_length ], psEncC->ltp_mem_length * sizeof( opus_int32 ) ); + RESTORE_STACK; +} + +/***********************************/ +/* silk_noise_shape_quantizer_10_16 */ +/***********************************/ +static OPUS_INLINE void silk_noise_shape_quantizer_10_16_sse4_1( + silk_nsq_state *NSQ, /* I/O NSQ state */ + opus_int signalType, /* I Signal type */ + const opus_int32 x_sc_Q10[], /* I */ + opus_int8 pulses[], /* O */ + opus_int16 xq[], /* O */ + opus_int32 sLTP_Q15[], /* I/O LTP state */ + const opus_int16 a_Q12[], /* I Short term prediction coefs */ + const opus_int16 b_Q14[], /* I Long term prediction coefs */ + const opus_int16 AR_shp_Q13[], /* I Noise shaping AR coefs */ + opus_int lag, /* I Pitch lag */ + opus_int32 HarmShapeFIRPacked_Q14, /* I */ + opus_int Tilt_Q14, /* I Spectral tilt */ + opus_int32 LF_shp_Q14, /* I */ + opus_int32 Gain_Q16, /* I */ + opus_int offset_Q10, /* I */ + opus_int length, /* I Input length */ + opus_int32 table[][4] /* I */ +) +{ + opus_int i; + opus_int32 LTP_pred_Q13, LPC_pred_Q10, n_AR_Q12, n_LTP_Q13; + opus_int32 n_LF_Q12, r_Q10, q1_Q0, q1_Q10, q2_Q10; + opus_int32 exc_Q14, LPC_exc_Q14, xq_Q14, Gain_Q10; + opus_int32 tmp1, tmp2, sLF_AR_shp_Q14; + opus_int32 *psLPC_Q14, *shp_lag_ptr, *pred_lag_ptr; + + __m128i xmm_tempa, xmm_tempb; + + __m128i xmm_one; + + __m128i psLPC_Q14_hi_01234567, psLPC_Q14_hi_89ABCDEF; + __m128i psLPC_Q14_lo_01234567, psLPC_Q14_lo_89ABCDEF; + __m128i a_Q12_01234567, a_Q12_89ABCDEF; + + __m128i sAR2_Q14_hi_76543210, sAR2_Q14_lo_76543210; + __m128i AR_shp_Q13_76543210; + + shp_lag_ptr = &NSQ->sLTP_shp_Q14[ NSQ->sLTP_shp_buf_idx - lag + HARM_SHAPE_FIR_TAPS / 2 ]; + pred_lag_ptr = &sLTP_Q15[ NSQ->sLTP_buf_idx - lag + LTP_ORDER / 2 ]; + Gain_Q10 = silk_RSHIFT( Gain_Q16, 6 ); + + /* Set up short term AR state */ + psLPC_Q14 = &NSQ->sLPC_Q14[ NSQ_LPC_BUF_LENGTH - 1 ]; + + sLF_AR_shp_Q14 = NSQ->sLF_AR_shp_Q14; + xq_Q14 = psLPC_Q14[ 0 ]; + LTP_pred_Q13 = 0; + + /* load a_Q12 */ + xmm_one = _mm_set_epi8( 1, 0, 3, 2, 5, 4, 7, 6, 9, 8, 11, 10, 13, 12, 15, 14 ); + + /* load a_Q12[0] - a_Q12[7] */ + a_Q12_01234567 = _mm_loadu_si128( (__m128i *)(&a_Q12[ 0 ] ) ); + /* load a_Q12[ 8 ] - a_Q12[ 15 ] */ + a_Q12_89ABCDEF = _mm_loadu_si128( (__m128i *)(&a_Q12[ 8 ] ) ); + + a_Q12_01234567 = _mm_shuffle_epi8( a_Q12_01234567, xmm_one ); + a_Q12_89ABCDEF = _mm_shuffle_epi8( a_Q12_89ABCDEF, xmm_one ); + + /* load AR_shp_Q13 */ + AR_shp_Q13_76543210 = _mm_loadu_si128( (__m128i *)(&AR_shp_Q13[0] ) ); + + /* load psLPC_Q14 */ + xmm_one = _mm_set_epi8(15, 14, 11, 10, 7, 6, 3, 2, 13, 12, 9, 8, 5, 4, 1, 0 ); + + xmm_tempa = _mm_loadu_si128( (__m128i *)(&psLPC_Q14[-16]) ); + xmm_tempb = _mm_loadu_si128( (__m128i *)(&psLPC_Q14[-12]) ); + + xmm_tempa = _mm_shuffle_epi8( xmm_tempa, xmm_one ); + xmm_tempb = _mm_shuffle_epi8( xmm_tempb, xmm_one ); + + psLPC_Q14_hi_89ABCDEF = _mm_unpackhi_epi64( xmm_tempa, xmm_tempb ); + psLPC_Q14_lo_89ABCDEF = _mm_unpacklo_epi64( xmm_tempa, xmm_tempb ); + + xmm_tempa = _mm_loadu_si128( (__m128i *)(&psLPC_Q14[ -8 ]) ); + xmm_tempb = _mm_loadu_si128( (__m128i *)(&psLPC_Q14[ -4 ]) ); + + xmm_tempa = _mm_shuffle_epi8( xmm_tempa, xmm_one ); + xmm_tempb = _mm_shuffle_epi8( xmm_tempb, xmm_one ); + + psLPC_Q14_hi_01234567 = _mm_unpackhi_epi64( xmm_tempa, xmm_tempb ); + psLPC_Q14_lo_01234567 = _mm_unpacklo_epi64( xmm_tempa, xmm_tempb ); + + /* load sAR2_Q14 */ + xmm_tempa = _mm_loadu_si128( (__m128i *)(&(NSQ->sAR2_Q14[ 0 ]) ) ); + xmm_tempb = _mm_loadu_si128( (__m128i *)(&(NSQ->sAR2_Q14[ 4 ]) ) ); + + xmm_tempa = _mm_shuffle_epi8( xmm_tempa, xmm_one ); + xmm_tempb = _mm_shuffle_epi8( xmm_tempb, xmm_one ); + + sAR2_Q14_hi_76543210 = _mm_unpackhi_epi64( xmm_tempa, xmm_tempb ); + sAR2_Q14_lo_76543210 = _mm_unpacklo_epi64( xmm_tempa, xmm_tempb ); + + /* prepare 1 in 8 * 16bit */ + xmm_one = _mm_set1_epi16(1); + + for( i = 0; i < length; i++ ) + { + /* Short-term prediction */ + __m128i xmm_hi_07, xmm_hi_8F, xmm_lo_07, xmm_lo_8F; + + /* Avoids introducing a bias because silk_SMLAWB() always rounds to -inf */ + LPC_pred_Q10 = 8; /* silk_RSHIFT( predictLPCOrder, 1 ); */ + + /* shift psLPC_Q14 */ + psLPC_Q14_hi_89ABCDEF = _mm_alignr_epi8( psLPC_Q14_hi_01234567, psLPC_Q14_hi_89ABCDEF, 2 ); + psLPC_Q14_lo_89ABCDEF = _mm_alignr_epi8( psLPC_Q14_lo_01234567, psLPC_Q14_lo_89ABCDEF, 2 ); + + psLPC_Q14_hi_01234567 = _mm_srli_si128( psLPC_Q14_hi_01234567, 2 ); + psLPC_Q14_lo_01234567 = _mm_srli_si128( psLPC_Q14_lo_01234567, 2 ); + + psLPC_Q14_hi_01234567 = _mm_insert_epi16( psLPC_Q14_hi_01234567, (xq_Q14 >> 16), 7 ); + psLPC_Q14_lo_01234567 = _mm_insert_epi16( psLPC_Q14_lo_01234567, (xq_Q14), 7 ); + + /* high part, use pmaddwd, results in 4 32-bit */ + xmm_hi_07 = _mm_madd_epi16( psLPC_Q14_hi_01234567, a_Q12_01234567 ); + xmm_hi_8F = _mm_madd_epi16( psLPC_Q14_hi_89ABCDEF, a_Q12_89ABCDEF ); + + /* low part, use pmulhw, results in 8 16-bit, note we need simulate unsigned * signed, _mm_srai_epi16(psLPC_Q14_lo_01234567, 15) */ + xmm_tempa = _mm_cmpgt_epi16( _mm_setzero_si128(), psLPC_Q14_lo_01234567 ); + xmm_tempb = _mm_cmpgt_epi16( _mm_setzero_si128(), psLPC_Q14_lo_89ABCDEF ); + + xmm_tempa = _mm_and_si128( xmm_tempa, a_Q12_01234567 ); + xmm_tempb = _mm_and_si128( xmm_tempb, a_Q12_89ABCDEF ); + + xmm_lo_07 = _mm_mulhi_epi16( psLPC_Q14_lo_01234567, a_Q12_01234567 ); + xmm_lo_8F = _mm_mulhi_epi16( psLPC_Q14_lo_89ABCDEF, a_Q12_89ABCDEF ); + + xmm_lo_07 = _mm_add_epi16( xmm_lo_07, xmm_tempa ); + xmm_lo_8F = _mm_add_epi16( xmm_lo_8F, xmm_tempb ); + + xmm_lo_07 = _mm_madd_epi16( xmm_lo_07, xmm_one ); + xmm_lo_8F = _mm_madd_epi16( xmm_lo_8F, xmm_one ); + + /* accumulate */ + xmm_hi_07 = _mm_add_epi32( xmm_hi_07, xmm_hi_8F ); + xmm_lo_07 = _mm_add_epi32( xmm_lo_07, xmm_lo_8F ); + + xmm_hi_07 = _mm_add_epi32( xmm_hi_07, xmm_lo_07 ); + + xmm_hi_07 = _mm_add_epi32( xmm_hi_07, _mm_unpackhi_epi64(xmm_hi_07, xmm_hi_07 ) ); + xmm_hi_07 = _mm_add_epi32( xmm_hi_07, _mm_shufflelo_epi16(xmm_hi_07, 0x0E ) ); + + LPC_pred_Q10 += _mm_cvtsi128_si32( xmm_hi_07 ); + + /* Long-term prediction */ + if ( opus_likely( signalType == TYPE_VOICED ) ) { + /* Unrolled loop */ + /* Avoids introducing a bias because silk_SMLAWB() always rounds to -inf */ + LTP_pred_Q13 = 2; + { + __m128i b_Q14_3210, b_Q14_0123, pred_lag_ptr_0123; + + b_Q14_3210 = OP_CVTEPI16_EPI32_M64( b_Q14 ); + b_Q14_0123 = _mm_shuffle_epi32( b_Q14_3210, 0x1B ); + + /* loaded: [0] [-1] [-2] [-3] */ + pred_lag_ptr_0123 = _mm_loadu_si128( (__m128i *)(&pred_lag_ptr[ -3 ] ) ); + /* shuffle to [-3] [-2] [-1] [0] and to new xmm */ + xmm_tempa = _mm_shuffle_epi32( pred_lag_ptr_0123, 0x1B ); + /*64-bit multiply, a[2] * b[-2], a[0] * b[0] */ + xmm_tempa = _mm_mul_epi32( xmm_tempa, b_Q14_3210 ); + /* right shift 2 bytes (16 bits), zero extended */ + xmm_tempa = _mm_srli_si128( xmm_tempa, 2 ); + + /* a[1] * b[-1], a[3] * b[-3] */ + pred_lag_ptr_0123 = _mm_mul_epi32( pred_lag_ptr_0123, b_Q14_0123 ); + pred_lag_ptr_0123 = _mm_srli_si128( pred_lag_ptr_0123, 2 ); + + pred_lag_ptr_0123 = _mm_add_epi32( pred_lag_ptr_0123, xmm_tempa ); + /* equal shift right 8 bytes*/ + xmm_tempa = _mm_shuffle_epi32( pred_lag_ptr_0123, _MM_SHUFFLE( 0, 0, 3, 2 ) ); + xmm_tempa = _mm_add_epi32( xmm_tempa, pred_lag_ptr_0123 ); + + LTP_pred_Q13 += _mm_cvtsi128_si32( xmm_tempa ); + + LTP_pred_Q13 = silk_SMLAWB( LTP_pred_Q13, pred_lag_ptr[ -4 ], b_Q14[ 4 ] ); + pred_lag_ptr++; + } + } + + /* Noise shape feedback */ + NSQ->sAR2_Q14[ 9 ] = NSQ->sAR2_Q14[ 8 ]; + NSQ->sAR2_Q14[ 8 ] = _mm_cvtsi128_si32( _mm_srli_si128(_mm_unpackhi_epi16( sAR2_Q14_lo_76543210, sAR2_Q14_hi_76543210 ), 12 ) ); + + sAR2_Q14_hi_76543210 = _mm_slli_si128( sAR2_Q14_hi_76543210, 2 ); + sAR2_Q14_lo_76543210 = _mm_slli_si128( sAR2_Q14_lo_76543210, 2 ); + + sAR2_Q14_hi_76543210 = _mm_insert_epi16( sAR2_Q14_hi_76543210, (xq_Q14 >> 16), 0 ); + sAR2_Q14_lo_76543210 = _mm_insert_epi16( sAR2_Q14_lo_76543210, (xq_Q14), 0 ); + + /* high part, use pmaddwd, results in 4 32-bit */ + xmm_hi_07 = _mm_madd_epi16( sAR2_Q14_hi_76543210, AR_shp_Q13_76543210 ); + + /* low part, use pmulhw, results in 8 16-bit, note we need simulate unsigned * signed,_mm_srai_epi16(sAR2_Q14_lo_76543210, 15) */ + xmm_tempa = _mm_cmpgt_epi16( _mm_setzero_si128(), sAR2_Q14_lo_76543210 ); + xmm_tempa = _mm_and_si128( xmm_tempa, AR_shp_Q13_76543210 ); + + xmm_lo_07 = _mm_mulhi_epi16( sAR2_Q14_lo_76543210, AR_shp_Q13_76543210 ); + xmm_lo_07 = _mm_add_epi16( xmm_lo_07, xmm_tempa ); + + xmm_lo_07 = _mm_madd_epi16( xmm_lo_07, xmm_one ); + + /* accumulate */ + xmm_hi_07 = _mm_add_epi32( xmm_hi_07, xmm_lo_07 ); + + xmm_hi_07 = _mm_add_epi32( xmm_hi_07, _mm_unpackhi_epi64(xmm_hi_07, xmm_hi_07 ) ); + xmm_hi_07 = _mm_add_epi32( xmm_hi_07, _mm_shufflelo_epi16(xmm_hi_07, 0x0E ) ); + + n_AR_Q12 = 5 + _mm_cvtsi128_si32( xmm_hi_07 ); + + n_AR_Q12 = silk_SMLAWB( n_AR_Q12, NSQ->sAR2_Q14[ 8 ], AR_shp_Q13[ 8 ] ); + n_AR_Q12 = silk_SMLAWB( n_AR_Q12, NSQ->sAR2_Q14[ 9 ], AR_shp_Q13[ 9 ] ); + + n_AR_Q12 = silk_LSHIFT32( n_AR_Q12, 1 ); /* Q11 -> Q12 */ + n_AR_Q12 = silk_SMLAWB( n_AR_Q12, sLF_AR_shp_Q14, Tilt_Q14 ); + + n_LF_Q12 = silk_SMULWB( NSQ->sLTP_shp_Q14[ NSQ->sLTP_shp_buf_idx - 1 ], LF_shp_Q14 ); + n_LF_Q12 = silk_SMLAWT( n_LF_Q12, sLF_AR_shp_Q14, LF_shp_Q14 ); + + silk_assert( lag > 0 || signalType != TYPE_VOICED ); + + /* Combine prediction and noise shaping signals */ + tmp1 = silk_SUB32( silk_LSHIFT32( LPC_pred_Q10, 2 ), n_AR_Q12 ); /* Q12 */ + tmp1 = silk_SUB32( tmp1, n_LF_Q12 ); /* Q12 */ + if( lag > 0 ) { + /* Symmetric, packed FIR coefficients */ + n_LTP_Q13 = silk_SMULWB( silk_ADD32( shp_lag_ptr[ 0 ], shp_lag_ptr[ -2 ] ), HarmShapeFIRPacked_Q14 ); + n_LTP_Q13 = silk_SMLAWT( n_LTP_Q13, shp_lag_ptr[ -1 ], HarmShapeFIRPacked_Q14 ); + n_LTP_Q13 = silk_LSHIFT( n_LTP_Q13, 1 ); + shp_lag_ptr++; + + tmp2 = silk_SUB32( LTP_pred_Q13, n_LTP_Q13 ); /* Q13 */ + tmp1 = silk_ADD_LSHIFT32( tmp2, tmp1, 1 ); /* Q13 */ + tmp1 = silk_RSHIFT_ROUND( tmp1, 3 ); /* Q10 */ + } else { + tmp1 = silk_RSHIFT_ROUND( tmp1, 2 ); /* Q10 */ + } + + r_Q10 = silk_SUB32( x_sc_Q10[ i ], tmp1 ); /* residual error Q10 */ + + /* Generate dither */ + NSQ->rand_seed = silk_RAND( NSQ->rand_seed ); + + /* Flip sign depending on dither */ + tmp2 = -r_Q10; + if ( NSQ->rand_seed < 0 ) r_Q10 = tmp2; + + r_Q10 = silk_LIMIT_32( r_Q10, -(31 << 10), 30 << 10 ); + + /* Find two quantization level candidates and measure their rate-distortion */ + q1_Q10 = silk_SUB32( r_Q10, offset_Q10 ); + q1_Q0 = silk_RSHIFT( q1_Q10, 10 ); + + q1_Q10 = table[q1_Q0][0]; + q2_Q10 = table[q1_Q0][1]; + + if (r_Q10 * table[q1_Q0][2] - table[q1_Q0][3] < 0) + { + q1_Q10 = q2_Q10; + } + + pulses[ i ] = (opus_int8)silk_RSHIFT_ROUND( q1_Q10, 10 ); + + /* Excitation */ + exc_Q14 = silk_LSHIFT( q1_Q10, 4 ); + + tmp2 = -exc_Q14; + if ( NSQ->rand_seed < 0 ) exc_Q14 = tmp2; + + /* Add predictions */ + LPC_exc_Q14 = silk_ADD_LSHIFT32( exc_Q14, LTP_pred_Q13, 1 ); + xq_Q14 = silk_ADD_LSHIFT32( LPC_exc_Q14, LPC_pred_Q10, 4 ); + + /* Update states */ + psLPC_Q14++; + *psLPC_Q14 = xq_Q14; + sLF_AR_shp_Q14 = silk_SUB_LSHIFT32( xq_Q14, n_AR_Q12, 2 ); + + NSQ->sLTP_shp_Q14[ NSQ->sLTP_shp_buf_idx ] = silk_SUB_LSHIFT32( sLF_AR_shp_Q14, n_LF_Q12, 2 ); + sLTP_Q15[ NSQ->sLTP_buf_idx ] = silk_LSHIFT( LPC_exc_Q14, 1 ); + NSQ->sLTP_shp_buf_idx++; + NSQ->sLTP_buf_idx++; + + /* Make dither dependent on quantized signal */ + NSQ->rand_seed = silk_ADD32_ovflw( NSQ->rand_seed, pulses[ i ] ); + } + + NSQ->sLF_AR_shp_Q14 = sLF_AR_shp_Q14; + + /* Scale XQ back to normal level before saving */ + psLPC_Q14 = &NSQ->sLPC_Q14[ NSQ_LPC_BUF_LENGTH ]; + + /* write back sAR2_Q14 */ + xmm_tempa = _mm_unpackhi_epi16( sAR2_Q14_lo_76543210, sAR2_Q14_hi_76543210 ); + xmm_tempb = _mm_unpacklo_epi16( sAR2_Q14_lo_76543210, sAR2_Q14_hi_76543210 ); + _mm_storeu_si128( (__m128i *)(&NSQ->sAR2_Q14[ 4 ]), xmm_tempa ); + _mm_storeu_si128( (__m128i *)(&NSQ->sAR2_Q14[ 0 ]), xmm_tempb ); + + /* xq[ i ] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( silk_SMULWW( psLPC_Q14[ i ], Gain_Q10 ), 8 ) ); */ + { + __m128i xmm_Gain_Q10; + __m128i xmm_xq_Q14_3210, xmm_xq_Q14_x3x1, xmm_xq_Q14_7654, xmm_xq_Q14_x7x5; + + /* prepare (1 << 7) in packed 4 32-bits */ + xmm_tempa = _mm_set1_epi32( (1 << 7) ); + + /* prepare Gain_Q10 in packed 4 32-bits */ + xmm_Gain_Q10 = _mm_set1_epi32( Gain_Q10 ); + + /* process xq */ + for (i = 0; i < length - 7; i += 8) + { + xmm_xq_Q14_3210 = _mm_loadu_si128( (__m128i *)(&(psLPC_Q14[ i + 0 ] ) ) ); + xmm_xq_Q14_7654 = _mm_loadu_si128( (__m128i *)(&(psLPC_Q14[ i + 4 ] ) ) ); + + /* equal shift right 4 bytes*/ + xmm_xq_Q14_x3x1 = _mm_shuffle_epi32( xmm_xq_Q14_3210, _MM_SHUFFLE( 0, 3, 2, 1 ) ); + /* equal shift right 4 bytes*/ + xmm_xq_Q14_x7x5 = _mm_shuffle_epi32( xmm_xq_Q14_7654, _MM_SHUFFLE( 0, 3, 2, 1 ) ); + + xmm_xq_Q14_3210 = _mm_mul_epi32( xmm_xq_Q14_3210, xmm_Gain_Q10 ); + xmm_xq_Q14_x3x1 = _mm_mul_epi32( xmm_xq_Q14_x3x1, xmm_Gain_Q10 ); + xmm_xq_Q14_7654 = _mm_mul_epi32( xmm_xq_Q14_7654, xmm_Gain_Q10 ); + xmm_xq_Q14_x7x5 = _mm_mul_epi32( xmm_xq_Q14_x7x5, xmm_Gain_Q10 ); + + xmm_xq_Q14_3210 = _mm_srli_epi64( xmm_xq_Q14_3210, 16 ); + xmm_xq_Q14_x3x1 = _mm_slli_epi64( xmm_xq_Q14_x3x1, 16 ); + xmm_xq_Q14_7654 = _mm_srli_epi64( xmm_xq_Q14_7654, 16 ); + xmm_xq_Q14_x7x5 = _mm_slli_epi64( xmm_xq_Q14_x7x5, 16 ); + + xmm_xq_Q14_3210 = _mm_blend_epi16( xmm_xq_Q14_3210, xmm_xq_Q14_x3x1, 0xCC ); + xmm_xq_Q14_7654 = _mm_blend_epi16( xmm_xq_Q14_7654, xmm_xq_Q14_x7x5, 0xCC ); + + /* silk_RSHIFT_ROUND(xq, 8) */ + xmm_xq_Q14_3210 = _mm_add_epi32( xmm_xq_Q14_3210, xmm_tempa ); + xmm_xq_Q14_7654 = _mm_add_epi32( xmm_xq_Q14_7654, xmm_tempa ); + + xmm_xq_Q14_3210 = _mm_srai_epi32( xmm_xq_Q14_3210, 8 ); + xmm_xq_Q14_7654 = _mm_srai_epi32( xmm_xq_Q14_7654, 8 ); + + /* silk_SAT16 */ + xmm_xq_Q14_3210 = _mm_packs_epi32( xmm_xq_Q14_3210, xmm_xq_Q14_7654 ); + + /* save to xq */ + _mm_storeu_si128( (__m128i *)(&xq[ i ] ), xmm_xq_Q14_3210 ); + } + } + for ( ; i < length; i++) + { + xq[i] = (opus_int16)silk_SAT16( silk_RSHIFT_ROUND( silk_SMULWW( psLPC_Q14[ i ], Gain_Q10 ), 8 ) ); + } + + /* Update LPC synth buffer */ + silk_memcpy( NSQ->sLPC_Q14, &NSQ->sLPC_Q14[ length ], NSQ_LPC_BUF_LENGTH * sizeof( opus_int32 ) ); +} + +static OPUS_INLINE void silk_nsq_scale_states_sse4_1( + const silk_encoder_state *psEncC, /* I Encoder State */ + silk_nsq_state *NSQ, /* I/O NSQ state */ + const opus_int32 x_Q3[], /* I input in Q3 */ + opus_int32 x_sc_Q10[], /* O input scaled with 1/Gain */ + const opus_int16 sLTP[], /* I re-whitened LTP state in Q0 */ + opus_int32 sLTP_Q15[], /* O LTP state matching scaled input */ + opus_int subfr, /* I subframe number */ + const opus_int LTP_scale_Q14, /* I */ + const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I */ + const opus_int pitchL[ MAX_NB_SUBFR ], /* I Pitch lag */ + const opus_int signal_type /* I Signal type */ +) +{ + opus_int i, lag; + opus_int32 gain_adj_Q16, inv_gain_Q31, inv_gain_Q23; + __m128i xmm_inv_gain_Q23, xmm_x_Q3_x2x0, xmm_x_Q3_x3x1; + + lag = pitchL[ subfr ]; + inv_gain_Q31 = silk_INVERSE32_varQ( silk_max( Gains_Q16[ subfr ], 1 ), 47 ); + silk_assert( inv_gain_Q31 != 0 ); + + /* Calculate gain adjustment factor */ + if( Gains_Q16[ subfr ] != NSQ->prev_gain_Q16 ) { + gain_adj_Q16 = silk_DIV32_varQ( NSQ->prev_gain_Q16, Gains_Q16[ subfr ], 16 ); + } else { + gain_adj_Q16 = (opus_int32)1 << 16; + } + + /* Scale input */ + inv_gain_Q23 = silk_RSHIFT_ROUND( inv_gain_Q31, 8 ); + + /* prepare inv_gain_Q23 in packed 4 32-bits */ + xmm_inv_gain_Q23 = _mm_set1_epi32(inv_gain_Q23); + + for( i = 0; i < psEncC->subfr_length - 3; i += 4 ) { + xmm_x_Q3_x2x0 = _mm_loadu_si128( (__m128i *)(&(x_Q3[ i ] ) ) ); + + /* equal shift right 4 bytes*/ + xmm_x_Q3_x3x1 = _mm_shuffle_epi32( xmm_x_Q3_x2x0, _MM_SHUFFLE( 0, 3, 2, 1 ) ); + + xmm_x_Q3_x2x0 = _mm_mul_epi32( xmm_x_Q3_x2x0, xmm_inv_gain_Q23 ); + xmm_x_Q3_x3x1 = _mm_mul_epi32( xmm_x_Q3_x3x1, xmm_inv_gain_Q23 ); + + xmm_x_Q3_x2x0 = _mm_srli_epi64( xmm_x_Q3_x2x0, 16 ); + xmm_x_Q3_x3x1 = _mm_slli_epi64( xmm_x_Q3_x3x1, 16 ); + + xmm_x_Q3_x2x0 = _mm_blend_epi16( xmm_x_Q3_x2x0, xmm_x_Q3_x3x1, 0xCC ); + + _mm_storeu_si128( (__m128i *)(&(x_sc_Q10[ i ] ) ), xmm_x_Q3_x2x0 ); + } + + for( ; i < psEncC->subfr_length; i++ ) { + x_sc_Q10[ i ] = silk_SMULWW( x_Q3[ i ], inv_gain_Q23 ); + } + + /* Save inverse gain */ + NSQ->prev_gain_Q16 = Gains_Q16[ subfr ]; + + /* After rewhitening the LTP state is un-scaled, so scale with inv_gain_Q16 */ + if( NSQ->rewhite_flag ) { + if( subfr == 0 ) { + /* Do LTP downscaling */ + inv_gain_Q31 = silk_LSHIFT( silk_SMULWB( inv_gain_Q31, LTP_scale_Q14 ), 2 ); + } + for( i = NSQ->sLTP_buf_idx - lag - LTP_ORDER / 2; i < NSQ->sLTP_buf_idx; i++ ) { + silk_assert( i < MAX_FRAME_LENGTH ); + sLTP_Q15[ i ] = silk_SMULWB( inv_gain_Q31, sLTP[ i ] ); + } + } + + /* Adjust for changing gain */ + if( gain_adj_Q16 != (opus_int32)1 << 16 ) { + /* Scale long-term shaping state */ + __m128i xmm_gain_adj_Q16, xmm_sLTP_shp_Q14_x2x0, xmm_sLTP_shp_Q14_x3x1; + + /* prepare gain_adj_Q16 in packed 4 32-bits */ + xmm_gain_adj_Q16 = _mm_set1_epi32(gain_adj_Q16); + + for( i = NSQ->sLTP_shp_buf_idx - psEncC->ltp_mem_length; i < NSQ->sLTP_shp_buf_idx - 3; i += 4 ) + { + xmm_sLTP_shp_Q14_x2x0 = _mm_loadu_si128( (__m128i *)(&(NSQ->sLTP_shp_Q14[ i ] ) ) ); + /* equal shift right 4 bytes*/ + xmm_sLTP_shp_Q14_x3x1 = _mm_shuffle_epi32( xmm_sLTP_shp_Q14_x2x0, _MM_SHUFFLE( 0, 3, 2, 1 ) ); + + xmm_sLTP_shp_Q14_x2x0 = _mm_mul_epi32( xmm_sLTP_shp_Q14_x2x0, xmm_gain_adj_Q16 ); + xmm_sLTP_shp_Q14_x3x1 = _mm_mul_epi32( xmm_sLTP_shp_Q14_x3x1, xmm_gain_adj_Q16 ); + + xmm_sLTP_shp_Q14_x2x0 = _mm_srli_epi64( xmm_sLTP_shp_Q14_x2x0, 16 ); + xmm_sLTP_shp_Q14_x3x1 = _mm_slli_epi64( xmm_sLTP_shp_Q14_x3x1, 16 ); + + xmm_sLTP_shp_Q14_x2x0 = _mm_blend_epi16( xmm_sLTP_shp_Q14_x2x0, xmm_sLTP_shp_Q14_x3x1, 0xCC ); + + _mm_storeu_si128( (__m128i *)(&(NSQ->sLTP_shp_Q14[ i ] ) ), xmm_sLTP_shp_Q14_x2x0 ); + } + + for( ; i < NSQ->sLTP_shp_buf_idx; i++ ) { + NSQ->sLTP_shp_Q14[ i ] = silk_SMULWW( gain_adj_Q16, NSQ->sLTP_shp_Q14[ i ] ); + } + + /* Scale long-term prediction state */ + if( signal_type == TYPE_VOICED && NSQ->rewhite_flag == 0 ) { + for( i = NSQ->sLTP_buf_idx - lag - LTP_ORDER / 2; i < NSQ->sLTP_buf_idx; i++ ) { + sLTP_Q15[ i ] = silk_SMULWW( gain_adj_Q16, sLTP_Q15[ i ] ); + } + } + + NSQ->sLF_AR_shp_Q14 = silk_SMULWW( gain_adj_Q16, NSQ->sLF_AR_shp_Q14 ); + + /* Scale short-term prediction and shaping states */ + for( i = 0; i < NSQ_LPC_BUF_LENGTH; i++ ) { + NSQ->sLPC_Q14[ i ] = silk_SMULWW( gain_adj_Q16, NSQ->sLPC_Q14[ i ] ); + } + for( i = 0; i < MAX_SHAPE_LPC_ORDER; i++ ) { + NSQ->sAR2_Q14[ i ] = silk_SMULWW( gain_adj_Q16, NSQ->sAR2_Q14[ i ] ); + } + } +} diff --git a/components/opus/libopus/silk/x86/SigProc_FIX_sse.h b/components/opus/libopus/silk/x86/SigProc_FIX_sse.h new file mode 100644 index 0000000..61efa8d --- /dev/null +++ b/components/opus/libopus/silk/x86/SigProc_FIX_sse.h @@ -0,0 +1,94 @@ +/* Copyright (c) 2014, Cisco Systems, INC + Written by XiangMingZhu WeiZhou MinPeng YanWang + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifndef SIGPROC_FIX_SSE_H +#define SIGPROC_FIX_SSE_H + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#if defined(OPUS_X86_MAY_HAVE_SSE4_1) +void silk_burg_modified_sse4_1( + opus_int32 *res_nrg, /* O Residual energy */ + opus_int *res_nrg_Q, /* O Residual energy Q value */ + opus_int32 A_Q16[], /* O Prediction coefficients (length order) */ + const opus_int16 x[], /* I Input signal, length: nb_subfr * ( D + subfr_length ) */ + const opus_int32 minInvGain_Q30, /* I Inverse of max prediction gain */ + const opus_int subfr_length, /* I Input signal subframe length (incl. D preceding samples) */ + const opus_int nb_subfr, /* I Number of subframes stacked in x */ + const opus_int D, /* I Order */ + int arch /* I Run-time architecture */ +); + +#if defined(OPUS_X86_PRESUME_SSE4_1) +#define silk_burg_modified(res_nrg, res_nrg_Q, A_Q16, x, minInvGain_Q30, subfr_length, nb_subfr, D, arch) \ + ((void)(arch), silk_burg_modified_sse4_1(res_nrg, res_nrg_Q, A_Q16, x, minInvGain_Q30, subfr_length, nb_subfr, D, arch)) + +#else + +extern void (*const SILK_BURG_MODIFIED_IMPL[OPUS_ARCHMASK + 1])( + opus_int32 *res_nrg, /* O Residual energy */ + opus_int *res_nrg_Q, /* O Residual energy Q value */ + opus_int32 A_Q16[], /* O Prediction coefficients (length order) */ + const opus_int16 x[], /* I Input signal, length: nb_subfr * ( D + subfr_length ) */ + const opus_int32 minInvGain_Q30, /* I Inverse of max prediction gain */ + const opus_int subfr_length, /* I Input signal subframe length (incl. D preceding samples) */ + const opus_int nb_subfr, /* I Number of subframes stacked in x */ + const opus_int D, /* I Order */ + int arch /* I Run-time architecture */); + +# define silk_burg_modified(res_nrg, res_nrg_Q, A_Q16, x, minInvGain_Q30, subfr_length, nb_subfr, D, arch) \ + ((*SILK_BURG_MODIFIED_IMPL[(arch) & OPUS_ARCHMASK])(res_nrg, res_nrg_Q, A_Q16, x, minInvGain_Q30, subfr_length, nb_subfr, D, arch)) + +#endif + +opus_int64 silk_inner_prod16_aligned_64_sse4_1( + const opus_int16 *inVec1, + const opus_int16 *inVec2, + const opus_int len +); + + +#if defined(OPUS_X86_PRESUME_SSE4_1) + +#define silk_inner_prod16_aligned_64(inVec1, inVec2, len, arch) \ + ((void)(arch),silk_inner_prod16_aligned_64_sse4_1(inVec1, inVec2, len)) + +#else + +extern opus_int64 (*const SILK_INNER_PROD16_ALIGNED_64_IMPL[OPUS_ARCHMASK + 1])( + const opus_int16 *inVec1, + const opus_int16 *inVec2, + const opus_int len); + +# define silk_inner_prod16_aligned_64(inVec1, inVec2, len, arch) \ + ((*SILK_INNER_PROD16_ALIGNED_64_IMPL[(arch) & OPUS_ARCHMASK])(inVec1, inVec2, len)) + +#endif +#endif +#endif diff --git a/components/opus/libopus/silk/x86/VAD_sse4_1.c b/components/opus/libopus/silk/x86/VAD_sse4_1.c new file mode 100644 index 0000000..d02ddf4 --- /dev/null +++ b/components/opus/libopus/silk/x86/VAD_sse4_1.c @@ -0,0 +1,277 @@ +/* Copyright (c) 2014, Cisco Systems, INC + Written by XiangMingZhu WeiZhou MinPeng YanWang + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include +#include + +#include "main.h" +#include "stack_alloc.h" + +/* Weighting factors for tilt measure */ +static const opus_int32 tiltWeights[ VAD_N_BANDS ] = { 30000, 6000, -12000, -12000 }; + +/***************************************/ +/* Get the speech activity level in Q8 */ +/***************************************/ +opus_int silk_VAD_GetSA_Q8_sse4_1( /* O Return value, 0 if success */ + silk_encoder_state *psEncC, /* I/O Encoder state */ + const opus_int16 pIn[] /* I PCM input */ +) +{ + opus_int SA_Q15, pSNR_dB_Q7, input_tilt; + opus_int decimated_framelength1, decimated_framelength2; + opus_int decimated_framelength; + opus_int dec_subframe_length, dec_subframe_offset, SNR_Q7, i, b, s; + opus_int32 sumSquared, smooth_coef_Q16; + opus_int16 HPstateTmp; + VARDECL( opus_int16, X ); + opus_int32 Xnrg[ VAD_N_BANDS ]; + opus_int32 NrgToNoiseRatio_Q8[ VAD_N_BANDS ]; + opus_int32 speech_nrg, x_tmp; + opus_int X_offset[ VAD_N_BANDS ]; + opus_int ret = 0; + silk_VAD_state *psSilk_VAD = &psEncC->sVAD; + + SAVE_STACK; + + /* Safety checks */ + silk_assert( VAD_N_BANDS == 4 ); + celt_assert( MAX_FRAME_LENGTH >= psEncC->frame_length ); + celt_assert( psEncC->frame_length <= 512 ); + celt_assert( psEncC->frame_length == 8 * silk_RSHIFT( psEncC->frame_length, 3 ) ); + + /***********************/ + /* Filter and Decimate */ + /***********************/ + decimated_framelength1 = silk_RSHIFT( psEncC->frame_length, 1 ); + decimated_framelength2 = silk_RSHIFT( psEncC->frame_length, 2 ); + decimated_framelength = silk_RSHIFT( psEncC->frame_length, 3 ); + /* Decimate into 4 bands: + 0 L 3L L 3L 5L + - -- - -- -- + 8 8 2 4 4 + + [0-1 kHz| temp. |1-2 kHz| 2-4 kHz | 4-8 kHz | + + They're arranged to allow the minimal ( frame_length / 4 ) extra + scratch space during the downsampling process */ + X_offset[ 0 ] = 0; + X_offset[ 1 ] = decimated_framelength + decimated_framelength2; + X_offset[ 2 ] = X_offset[ 1 ] + decimated_framelength; + X_offset[ 3 ] = X_offset[ 2 ] + decimated_framelength2; + ALLOC( X, X_offset[ 3 ] + decimated_framelength1, opus_int16 ); + + /* 0-8 kHz to 0-4 kHz and 4-8 kHz */ + silk_ana_filt_bank_1( pIn, &psSilk_VAD->AnaState[ 0 ], + X, &X[ X_offset[ 3 ] ], psEncC->frame_length ); + + /* 0-4 kHz to 0-2 kHz and 2-4 kHz */ + silk_ana_filt_bank_1( X, &psSilk_VAD->AnaState1[ 0 ], + X, &X[ X_offset[ 2 ] ], decimated_framelength1 ); + + /* 0-2 kHz to 0-1 kHz and 1-2 kHz */ + silk_ana_filt_bank_1( X, &psSilk_VAD->AnaState2[ 0 ], + X, &X[ X_offset[ 1 ] ], decimated_framelength2 ); + + /*********************************************/ + /* HP filter on lowest band (differentiator) */ + /*********************************************/ + X[ decimated_framelength - 1 ] = silk_RSHIFT( X[ decimated_framelength - 1 ], 1 ); + HPstateTmp = X[ decimated_framelength - 1 ]; + for( i = decimated_framelength - 1; i > 0; i-- ) { + X[ i - 1 ] = silk_RSHIFT( X[ i - 1 ], 1 ); + X[ i ] -= X[ i - 1 ]; + } + X[ 0 ] -= psSilk_VAD->HPstate; + psSilk_VAD->HPstate = HPstateTmp; + + /*************************************/ + /* Calculate the energy in each band */ + /*************************************/ + for( b = 0; b < VAD_N_BANDS; b++ ) { + /* Find the decimated framelength in the non-uniformly divided bands */ + decimated_framelength = silk_RSHIFT( psEncC->frame_length, silk_min_int( VAD_N_BANDS - b, VAD_N_BANDS - 1 ) ); + + /* Split length into subframe lengths */ + dec_subframe_length = silk_RSHIFT( decimated_framelength, VAD_INTERNAL_SUBFRAMES_LOG2 ); + dec_subframe_offset = 0; + + /* Compute energy per sub-frame */ + /* initialize with summed energy of last subframe */ + Xnrg[ b ] = psSilk_VAD->XnrgSubfr[ b ]; + for( s = 0; s < VAD_INTERNAL_SUBFRAMES; s++ ) { + __m128i xmm_X, xmm_acc; + sumSquared = 0; + + xmm_acc = _mm_setzero_si128(); + + for( i = 0; i < dec_subframe_length - 7; i += 8 ) + { + xmm_X = _mm_loadu_si128( (__m128i *)&(X[ X_offset[ b ] + i + dec_subframe_offset ] ) ); + xmm_X = _mm_srai_epi16( xmm_X, 3 ); + xmm_X = _mm_madd_epi16( xmm_X, xmm_X ); + xmm_acc = _mm_add_epi32( xmm_acc, xmm_X ); + } + + xmm_acc = _mm_add_epi32( xmm_acc, _mm_unpackhi_epi64( xmm_acc, xmm_acc ) ); + xmm_acc = _mm_add_epi32( xmm_acc, _mm_shufflelo_epi16( xmm_acc, 0x0E ) ); + + sumSquared += _mm_cvtsi128_si32( xmm_acc ); + + for( ; i < dec_subframe_length; i++ ) { + /* The energy will be less than dec_subframe_length * ( silk_int16_MIN / 8 ) ^ 2. */ + /* Therefore we can accumulate with no risk of overflow (unless dec_subframe_length > 128) */ + x_tmp = silk_RSHIFT( + X[ X_offset[ b ] + i + dec_subframe_offset ], 3 ); + sumSquared = silk_SMLABB( sumSquared, x_tmp, x_tmp ); + + /* Safety check */ + silk_assert( sumSquared >= 0 ); + } + + /* Add/saturate summed energy of current subframe */ + if( s < VAD_INTERNAL_SUBFRAMES - 1 ) { + Xnrg[ b ] = silk_ADD_POS_SAT32( Xnrg[ b ], sumSquared ); + } else { + /* Look-ahead subframe */ + Xnrg[ b ] = silk_ADD_POS_SAT32( Xnrg[ b ], silk_RSHIFT( sumSquared, 1 ) ); + } + + dec_subframe_offset += dec_subframe_length; + } + psSilk_VAD->XnrgSubfr[ b ] = sumSquared; + } + + /********************/ + /* Noise estimation */ + /********************/ + silk_VAD_GetNoiseLevels( &Xnrg[ 0 ], psSilk_VAD ); + + /***********************************************/ + /* Signal-plus-noise to noise ratio estimation */ + /***********************************************/ + sumSquared = 0; + input_tilt = 0; + for( b = 0; b < VAD_N_BANDS; b++ ) { + speech_nrg = Xnrg[ b ] - psSilk_VAD->NL[ b ]; + if( speech_nrg > 0 ) { + /* Divide, with sufficient resolution */ + if( ( Xnrg[ b ] & 0xFF800000 ) == 0 ) { + NrgToNoiseRatio_Q8[ b ] = silk_DIV32( silk_LSHIFT( Xnrg[ b ], 8 ), psSilk_VAD->NL[ b ] + 1 ); + } else { + NrgToNoiseRatio_Q8[ b ] = silk_DIV32( Xnrg[ b ], silk_RSHIFT( psSilk_VAD->NL[ b ], 8 ) + 1 ); + } + + /* Convert to log domain */ + SNR_Q7 = silk_lin2log( NrgToNoiseRatio_Q8[ b ] ) - 8 * 128; + + /* Sum-of-squares */ + sumSquared = silk_SMLABB( sumSquared, SNR_Q7, SNR_Q7 ); /* Q14 */ + + /* Tilt measure */ + if( speech_nrg < ( (opus_int32)1 << 20 ) ) { + /* Scale down SNR value for small subband speech energies */ + SNR_Q7 = silk_SMULWB( silk_LSHIFT( silk_SQRT_APPROX( speech_nrg ), 6 ), SNR_Q7 ); + } + input_tilt = silk_SMLAWB( input_tilt, tiltWeights[ b ], SNR_Q7 ); + } else { + NrgToNoiseRatio_Q8[ b ] = 256; + } + } + + /* Mean-of-squares */ + sumSquared = silk_DIV32_16( sumSquared, VAD_N_BANDS ); /* Q14 */ + + /* Root-mean-square approximation, scale to dBs, and write to output pointer */ + pSNR_dB_Q7 = (opus_int16)( 3 * silk_SQRT_APPROX( sumSquared ) ); /* Q7 */ + + /*********************************/ + /* Speech Probability Estimation */ + /*********************************/ + SA_Q15 = silk_sigm_Q15( silk_SMULWB( VAD_SNR_FACTOR_Q16, pSNR_dB_Q7 ) - VAD_NEGATIVE_OFFSET_Q5 ); + + /**************************/ + /* Frequency Tilt Measure */ + /**************************/ + psEncC->input_tilt_Q15 = silk_LSHIFT( silk_sigm_Q15( input_tilt ) - 16384, 1 ); + + /**************************************************/ + /* Scale the sigmoid output based on power levels */ + /**************************************************/ + speech_nrg = 0; + for( b = 0; b < VAD_N_BANDS; b++ ) { + /* Accumulate signal-without-noise energies, higher frequency bands have more weight */ + speech_nrg += ( b + 1 ) * silk_RSHIFT( Xnrg[ b ] - psSilk_VAD->NL[ b ], 4 ); + } + + /* Power scaling */ + if( speech_nrg <= 0 ) { + SA_Q15 = silk_RSHIFT( SA_Q15, 1 ); + } else if( speech_nrg < 32768 ) { + if( psEncC->frame_length == 10 * psEncC->fs_kHz ) { + speech_nrg = silk_LSHIFT_SAT32( speech_nrg, 16 ); + } else { + speech_nrg = silk_LSHIFT_SAT32( speech_nrg, 15 ); + } + + /* square-root */ + speech_nrg = silk_SQRT_APPROX( speech_nrg ); + SA_Q15 = silk_SMULWB( 32768 + speech_nrg, SA_Q15 ); + } + + /* Copy the resulting speech activity in Q8 */ + psEncC->speech_activity_Q8 = silk_min_int( silk_RSHIFT( SA_Q15, 7 ), silk_uint8_MAX ); + + /***********************************/ + /* Energy Level and SNR estimation */ + /***********************************/ + /* Smoothing coefficient */ + smooth_coef_Q16 = silk_SMULWB( VAD_SNR_SMOOTH_COEF_Q18, silk_SMULWB( (opus_int32)SA_Q15, SA_Q15 ) ); + + if( psEncC->frame_length == 10 * psEncC->fs_kHz ) { + smooth_coef_Q16 >>= 1; + } + + for( b = 0; b < VAD_N_BANDS; b++ ) { + /* compute smoothed energy-to-noise ratio per band */ + psSilk_VAD->NrgRatioSmth_Q8[ b ] = silk_SMLAWB( psSilk_VAD->NrgRatioSmth_Q8[ b ], + NrgToNoiseRatio_Q8[ b ] - psSilk_VAD->NrgRatioSmth_Q8[ b ], smooth_coef_Q16 ); + + /* signal to noise ratio in dB per band */ + SNR_Q7 = 3 * ( silk_lin2log( psSilk_VAD->NrgRatioSmth_Q8[b] ) - 8 * 128 ); + /* quality = sigmoid( 0.25 * ( SNR_dB - 16 ) ); */ + psEncC->input_quality_bands_Q15[ b ] = silk_sigm_Q15( silk_RSHIFT( SNR_Q7 - 16 * 128, 4 ) ); + } + + RESTORE_STACK; + return( ret ); +} diff --git a/components/opus/libopus/silk/x86/VQ_WMat_EC_sse4_1.c b/components/opus/libopus/silk/x86/VQ_WMat_EC_sse4_1.c new file mode 100644 index 0000000..74d6c6d --- /dev/null +++ b/components/opus/libopus/silk/x86/VQ_WMat_EC_sse4_1.c @@ -0,0 +1,142 @@ +/* Copyright (c) 2014, Cisco Systems, INC + Written by XiangMingZhu WeiZhou MinPeng YanWang + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include +#include +#include "main.h" +#include "celt/x86/x86cpu.h" + +/* Entropy constrained matrix-weighted VQ, hard-coded to 5-element vectors, for a single input data vector */ +void silk_VQ_WMat_EC_sse4_1( + opus_int8 *ind, /* O index of best codebook vector */ + opus_int32 *rate_dist_Q14, /* O best weighted quant error + mu * rate */ + opus_int *gain_Q7, /* O sum of absolute LTP coefficients */ + const opus_int16 *in_Q14, /* I input vector to be quantized */ + const opus_int32 *W_Q18, /* I weighting matrix */ + const opus_int8 *cb_Q7, /* I codebook */ + const opus_uint8 *cb_gain_Q7, /* I codebook effective gain */ + const opus_uint8 *cl_Q5, /* I code length for each codebook vector */ + const opus_int mu_Q9, /* I tradeoff betw. weighted error and rate */ + const opus_int32 max_gain_Q7, /* I maximum sum of absolute LTP coefficients */ + opus_int L /* I number of vectors in codebook */ +) +{ + opus_int k, gain_tmp_Q7; + const opus_int8 *cb_row_Q7; + opus_int16 diff_Q14[ 5 ]; + opus_int32 sum1_Q14, sum2_Q16; + + __m128i C_tmp1, C_tmp2, C_tmp3, C_tmp4, C_tmp5; + /* Loop over codebook */ + *rate_dist_Q14 = silk_int32_MAX; + cb_row_Q7 = cb_Q7; + for( k = 0; k < L; k++ ) { + gain_tmp_Q7 = cb_gain_Q7[k]; + + diff_Q14[ 0 ] = in_Q14[ 0 ] - silk_LSHIFT( cb_row_Q7[ 0 ], 7 ); + + C_tmp1 = OP_CVTEPI16_EPI32_M64( &in_Q14[ 1 ] ); + C_tmp2 = OP_CVTEPI8_EPI32_M32( &cb_row_Q7[ 1 ] ); + C_tmp2 = _mm_slli_epi32( C_tmp2, 7 ); + C_tmp1 = _mm_sub_epi32( C_tmp1, C_tmp2 ); + + diff_Q14[ 1 ] = _mm_extract_epi16( C_tmp1, 0 ); + diff_Q14[ 2 ] = _mm_extract_epi16( C_tmp1, 2 ); + diff_Q14[ 3 ] = _mm_extract_epi16( C_tmp1, 4 ); + diff_Q14[ 4 ] = _mm_extract_epi16( C_tmp1, 6 ); + + /* Weighted rate */ + sum1_Q14 = silk_SMULBB( mu_Q9, cl_Q5[ k ] ); + + /* Penalty for too large gain */ + sum1_Q14 = silk_ADD_LSHIFT32( sum1_Q14, silk_max( silk_SUB32( gain_tmp_Q7, max_gain_Q7 ), 0 ), 10 ); + + silk_assert( sum1_Q14 >= 0 ); + + /* first row of W_Q18 */ + C_tmp3 = _mm_loadu_si128( (__m128i *)(&W_Q18[ 1 ] ) ); + C_tmp4 = _mm_mul_epi32( C_tmp3, C_tmp1 ); + C_tmp4 = _mm_srli_si128( C_tmp4, 2 ); + + C_tmp1 = _mm_shuffle_epi32( C_tmp1, _MM_SHUFFLE( 0, 3, 2, 1 ) ); /* shift right 4 bytes */ + C_tmp3 = _mm_shuffle_epi32( C_tmp3, _MM_SHUFFLE( 0, 3, 2, 1 ) ); /* shift right 4 bytes */ + + C_tmp5 = _mm_mul_epi32( C_tmp3, C_tmp1 ); + C_tmp5 = _mm_srli_si128( C_tmp5, 2 ); + + C_tmp5 = _mm_add_epi32( C_tmp4, C_tmp5 ); + C_tmp5 = _mm_slli_epi32( C_tmp5, 1 ); + + C_tmp5 = _mm_add_epi32( C_tmp5, _mm_shuffle_epi32( C_tmp5, _MM_SHUFFLE( 0, 0, 0, 2 ) ) ); + sum2_Q16 = _mm_cvtsi128_si32( C_tmp5 ); + + sum2_Q16 = silk_SMLAWB( sum2_Q16, W_Q18[ 0 ], diff_Q14[ 0 ] ); + sum1_Q14 = silk_SMLAWB( sum1_Q14, sum2_Q16, diff_Q14[ 0 ] ); + + /* second row of W_Q18 */ + sum2_Q16 = silk_SMULWB( W_Q18[ 7 ], diff_Q14[ 2 ] ); + sum2_Q16 = silk_SMLAWB( sum2_Q16, W_Q18[ 8 ], diff_Q14[ 3 ] ); + sum2_Q16 = silk_SMLAWB( sum2_Q16, W_Q18[ 9 ], diff_Q14[ 4 ] ); + sum2_Q16 = silk_LSHIFT( sum2_Q16, 1 ); + sum2_Q16 = silk_SMLAWB( sum2_Q16, W_Q18[ 6 ], diff_Q14[ 1 ] ); + sum1_Q14 = silk_SMLAWB( sum1_Q14, sum2_Q16, diff_Q14[ 1 ] ); + + /* third row of W_Q18 */ + sum2_Q16 = silk_SMULWB( W_Q18[ 13 ], diff_Q14[ 3 ] ); + sum2_Q16 = silk_SMLAWB( sum2_Q16, W_Q18[ 14 ], diff_Q14[ 4 ] ); + sum2_Q16 = silk_LSHIFT( sum2_Q16, 1 ); + sum2_Q16 = silk_SMLAWB( sum2_Q16, W_Q18[ 12 ], diff_Q14[ 2 ] ); + sum1_Q14 = silk_SMLAWB( sum1_Q14, sum2_Q16, diff_Q14[ 2 ] ); + + /* fourth row of W_Q18 */ + sum2_Q16 = silk_SMULWB( W_Q18[ 19 ], diff_Q14[ 4 ] ); + sum2_Q16 = silk_LSHIFT( sum2_Q16, 1 ); + sum2_Q16 = silk_SMLAWB( sum2_Q16, W_Q18[ 18 ], diff_Q14[ 3 ] ); + sum1_Q14 = silk_SMLAWB( sum1_Q14, sum2_Q16, diff_Q14[ 3 ] ); + + /* last row of W_Q18 */ + sum2_Q16 = silk_SMULWB( W_Q18[ 24 ], diff_Q14[ 4 ] ); + sum1_Q14 = silk_SMLAWB( sum1_Q14, sum2_Q16, diff_Q14[ 4 ] ); + + silk_assert( sum1_Q14 >= 0 ); + + /* find best */ + if( sum1_Q14 < *rate_dist_Q14 ) { + *rate_dist_Q14 = sum1_Q14; + *ind = (opus_int8)k; + *gain_Q7 = gain_tmp_Q7; + } + + /* Go to next cbk vector */ + cb_row_Q7 += LTP_ORDER; + } +} diff --git a/components/opus/libopus/silk/x86/main_sse.h b/components/opus/libopus/silk/x86/main_sse.h new file mode 100644 index 0000000..2f15d44 --- /dev/null +++ b/components/opus/libopus/silk/x86/main_sse.h @@ -0,0 +1,248 @@ +/* Copyright (c) 2014, Cisco Systems, INC + Written by XiangMingZhu WeiZhou MinPeng YanWang + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifndef MAIN_SSE_H +#define MAIN_SSE_H + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +# if defined(OPUS_X86_MAY_HAVE_SSE4_1) + +#if 0 /* FIXME: SSE disabled until silk_VQ_WMat_EC_sse4_1() gets updated. */ +# define OVERRIDE_silk_VQ_WMat_EC + +void silk_VQ_WMat_EC_sse4_1( + opus_int8 *ind, /* O index of best codebook vector */ + opus_int32 *rate_dist_Q14, /* O best weighted quant error + mu * rate */ + opus_int *gain_Q7, /* O sum of absolute LTP coefficients */ + const opus_int16 *in_Q14, /* I input vector to be quantized */ + const opus_int32 *W_Q18, /* I weighting matrix */ + const opus_int8 *cb_Q7, /* I codebook */ + const opus_uint8 *cb_gain_Q7, /* I codebook effective gain */ + const opus_uint8 *cl_Q5, /* I code length for each codebook vector */ + const opus_int mu_Q9, /* I tradeoff betw. weighted error and rate */ + const opus_int32 max_gain_Q7, /* I maximum sum of absolute LTP coefficients */ + opus_int L /* I number of vectors in codebook */ +); + +#if defined OPUS_X86_PRESUME_SSE4_1 + +#define silk_VQ_WMat_EC(ind, rate_dist_Q14, gain_Q7, in_Q14, W_Q18, cb_Q7, cb_gain_Q7, cl_Q5, \ + mu_Q9, max_gain_Q7, L, arch) \ + ((void)(arch),silk_VQ_WMat_EC_sse4_1(ind, rate_dist_Q14, gain_Q7, in_Q14, W_Q18, cb_Q7, cb_gain_Q7, cl_Q5, \ + mu_Q9, max_gain_Q7, L)) + +#else + +extern void (*const SILK_VQ_WMAT_EC_IMPL[OPUS_ARCHMASK + 1])( + opus_int8 *ind, /* O index of best codebook vector */ + opus_int32 *rate_dist_Q14, /* O best weighted quant error + mu * rate */ + opus_int *gain_Q7, /* O sum of absolute LTP coefficients */ + const opus_int16 *in_Q14, /* I input vector to be quantized */ + const opus_int32 *W_Q18, /* I weighting matrix */ + const opus_int8 *cb_Q7, /* I codebook */ + const opus_uint8 *cb_gain_Q7, /* I codebook effective gain */ + const opus_uint8 *cl_Q5, /* I code length for each codebook vector */ + const opus_int mu_Q9, /* I tradeoff betw. weighted error and rate */ + const opus_int32 max_gain_Q7, /* I maximum sum of absolute LTP coefficients */ + opus_int L /* I number of vectors in codebook */ +); + +# define silk_VQ_WMat_EC(ind, rate_dist_Q14, gain_Q7, in_Q14, W_Q18, cb_Q7, cb_gain_Q7, cl_Q5, \ + mu_Q9, max_gain_Q7, L, arch) \ + ((*SILK_VQ_WMAT_EC_IMPL[(arch) & OPUS_ARCHMASK])(ind, rate_dist_Q14, gain_Q7, in_Q14, W_Q18, cb_Q7, cb_gain_Q7, cl_Q5, \ + mu_Q9, max_gain_Q7, L)) + +#endif +#endif + +#if 0 /* FIXME: SSE disabled until the NSQ code gets updated. */ +# define OVERRIDE_silk_NSQ + +void silk_NSQ_sse4_1( + const silk_encoder_state *psEncC, /* I Encoder State */ + silk_nsq_state *NSQ, /* I/O NSQ state */ + SideInfoIndices *psIndices, /* I/O Quantization Indices */ + const opus_int32 x_Q3[], /* I Prefiltered input signal */ + opus_int8 pulses[], /* O Quantized pulse signal */ + const opus_int16 PredCoef_Q12[ 2 * MAX_LPC_ORDER ], /* I Short term prediction coefs */ + const opus_int16 LTPCoef_Q14[ LTP_ORDER * MAX_NB_SUBFR ], /* I Long term prediction coefs */ + const opus_int16 AR2_Q13[ MAX_NB_SUBFR * MAX_SHAPE_LPC_ORDER ], /* I Noise shaping coefs */ + const opus_int HarmShapeGain_Q14[ MAX_NB_SUBFR ], /* I Long term shaping coefs */ + const opus_int Tilt_Q14[ MAX_NB_SUBFR ], /* I Spectral tilt */ + const opus_int32 LF_shp_Q14[ MAX_NB_SUBFR ], /* I Low frequency shaping coefs */ + const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I Quantization step sizes */ + const opus_int pitchL[ MAX_NB_SUBFR ], /* I Pitch lags */ + const opus_int Lambda_Q10, /* I Rate/distortion tradeoff */ + const opus_int LTP_scale_Q14 /* I LTP state scaling */ +); + +#if defined OPUS_X86_PRESUME_SSE4_1 + +#define silk_NSQ(psEncC, NSQ, psIndices, x_Q3, pulses, PredCoef_Q12, LTPCoef_Q14, AR2_Q13, \ + HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14, arch) \ + ((void)(arch),silk_NSQ_sse4_1(psEncC, NSQ, psIndices, x_Q3, pulses, PredCoef_Q12, LTPCoef_Q14, AR2_Q13, \ + HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14)) + +#else + +extern void (*const SILK_NSQ_IMPL[OPUS_ARCHMASK + 1])( + const silk_encoder_state *psEncC, /* I Encoder State */ + silk_nsq_state *NSQ, /* I/O NSQ state */ + SideInfoIndices *psIndices, /* I/O Quantization Indices */ + const opus_int32 x_Q3[], /* I Prefiltered input signal */ + opus_int8 pulses[], /* O Quantized pulse signal */ + const opus_int16 PredCoef_Q12[ 2 * MAX_LPC_ORDER ], /* I Short term prediction coefs */ + const opus_int16 LTPCoef_Q14[ LTP_ORDER * MAX_NB_SUBFR ], /* I Long term prediction coefs */ + const opus_int16 AR2_Q13[ MAX_NB_SUBFR * MAX_SHAPE_LPC_ORDER ], /* I Noise shaping coefs */ + const opus_int HarmShapeGain_Q14[ MAX_NB_SUBFR ], /* I Long term shaping coefs */ + const opus_int Tilt_Q14[ MAX_NB_SUBFR ], /* I Spectral tilt */ + const opus_int32 LF_shp_Q14[ MAX_NB_SUBFR ], /* I Low frequency shaping coefs */ + const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I Quantization step sizes */ + const opus_int pitchL[ MAX_NB_SUBFR ], /* I Pitch lags */ + const opus_int Lambda_Q10, /* I Rate/distortion tradeoff */ + const opus_int LTP_scale_Q14 /* I LTP state scaling */ +); + +# define silk_NSQ(psEncC, NSQ, psIndices, x_Q3, pulses, PredCoef_Q12, LTPCoef_Q14, AR2_Q13, \ + HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14, arch) \ + ((*SILK_NSQ_IMPL[(arch) & OPUS_ARCHMASK])(psEncC, NSQ, psIndices, x_Q3, pulses, PredCoef_Q12, LTPCoef_Q14, AR2_Q13, \ + HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14)) + +#endif + +# define OVERRIDE_silk_NSQ_del_dec + +void silk_NSQ_del_dec_sse4_1( + const silk_encoder_state *psEncC, /* I Encoder State */ + silk_nsq_state *NSQ, /* I/O NSQ state */ + SideInfoIndices *psIndices, /* I/O Quantization Indices */ + const opus_int32 x_Q3[], /* I Prefiltered input signal */ + opus_int8 pulses[], /* O Quantized pulse signal */ + const opus_int16 PredCoef_Q12[ 2 * MAX_LPC_ORDER ], /* I Short term prediction coefs */ + const opus_int16 LTPCoef_Q14[ LTP_ORDER * MAX_NB_SUBFR ], /* I Long term prediction coefs */ + const opus_int16 AR2_Q13[ MAX_NB_SUBFR * MAX_SHAPE_LPC_ORDER ], /* I Noise shaping coefs */ + const opus_int HarmShapeGain_Q14[ MAX_NB_SUBFR ], /* I Long term shaping coefs */ + const opus_int Tilt_Q14[ MAX_NB_SUBFR ], /* I Spectral tilt */ + const opus_int32 LF_shp_Q14[ MAX_NB_SUBFR ], /* I Low frequency shaping coefs */ + const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I Quantization step sizes */ + const opus_int pitchL[ MAX_NB_SUBFR ], /* I Pitch lags */ + const opus_int Lambda_Q10, /* I Rate/distortion tradeoff */ + const opus_int LTP_scale_Q14 /* I LTP state scaling */ +); + +#if defined OPUS_X86_PRESUME_SSE4_1 + +#define silk_NSQ_del_dec(psEncC, NSQ, psIndices, x_Q3, pulses, PredCoef_Q12, LTPCoef_Q14, AR2_Q13, \ + HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14, arch) \ + ((void)(arch),silk_NSQ_del_dec_sse4_1(psEncC, NSQ, psIndices, x_Q3, pulses, PredCoef_Q12, LTPCoef_Q14, AR2_Q13, \ + HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14)) + +#else + +extern void (*const SILK_NSQ_DEL_DEC_IMPL[OPUS_ARCHMASK + 1])( + const silk_encoder_state *psEncC, /* I Encoder State */ + silk_nsq_state *NSQ, /* I/O NSQ state */ + SideInfoIndices *psIndices, /* I/O Quantization Indices */ + const opus_int32 x_Q3[], /* I Prefiltered input signal */ + opus_int8 pulses[], /* O Quantized pulse signal */ + const opus_int16 PredCoef_Q12[ 2 * MAX_LPC_ORDER ], /* I Short term prediction coefs */ + const opus_int16 LTPCoef_Q14[ LTP_ORDER * MAX_NB_SUBFR ], /* I Long term prediction coefs */ + const opus_int16 AR2_Q13[ MAX_NB_SUBFR * MAX_SHAPE_LPC_ORDER ], /* I Noise shaping coefs */ + const opus_int HarmShapeGain_Q14[ MAX_NB_SUBFR ], /* I Long term shaping coefs */ + const opus_int Tilt_Q14[ MAX_NB_SUBFR ], /* I Spectral tilt */ + const opus_int32 LF_shp_Q14[ MAX_NB_SUBFR ], /* I Low frequency shaping coefs */ + const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I Quantization step sizes */ + const opus_int pitchL[ MAX_NB_SUBFR ], /* I Pitch lags */ + const opus_int Lambda_Q10, /* I Rate/distortion tradeoff */ + const opus_int LTP_scale_Q14 /* I LTP state scaling */ +); + +# define silk_NSQ_del_dec(psEncC, NSQ, psIndices, x_Q3, pulses, PredCoef_Q12, LTPCoef_Q14, AR2_Q13, \ + HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14, arch) \ + ((*SILK_NSQ_DEL_DEC_IMPL[(arch) & OPUS_ARCHMASK])(psEncC, NSQ, psIndices, x_Q3, pulses, PredCoef_Q12, LTPCoef_Q14, AR2_Q13, \ + HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14)) + +#endif +#endif + +void silk_noise_shape_quantizer( + silk_nsq_state *NSQ, /* I/O NSQ state */ + opus_int signalType, /* I Signal type */ + const opus_int32 x_sc_Q10[], /* I */ + opus_int8 pulses[], /* O */ + opus_int16 xq[], /* O */ + opus_int32 sLTP_Q15[], /* I/O LTP state */ + const opus_int16 a_Q12[], /* I Short term prediction coefs */ + const opus_int16 b_Q14[], /* I Long term prediction coefs */ + const opus_int16 AR_shp_Q13[], /* I Noise shaping AR coefs */ + opus_int lag, /* I Pitch lag */ + opus_int32 HarmShapeFIRPacked_Q14, /* I */ + opus_int Tilt_Q14, /* I Spectral tilt */ + opus_int32 LF_shp_Q14, /* I */ + opus_int32 Gain_Q16, /* I */ + opus_int Lambda_Q10, /* I */ + opus_int offset_Q10, /* I */ + opus_int length, /* I Input length */ + opus_int shapingLPCOrder, /* I Noise shaping AR filter order */ + opus_int predictLPCOrder, /* I Prediction filter order */ + int arch /* I Architecture */ +); + +/**************************/ +/* Noise level estimation */ +/**************************/ +void silk_VAD_GetNoiseLevels( + const opus_int32 pX[ VAD_N_BANDS ], /* I subband energies */ + silk_VAD_state *psSilk_VAD /* I/O Pointer to Silk VAD state */ +); + +# define OVERRIDE_silk_VAD_GetSA_Q8 + +opus_int silk_VAD_GetSA_Q8_sse4_1( + silk_encoder_state *psEnC, + const opus_int16 pIn[] +); + +#if defined(OPUS_X86_PRESUME_SSE4_1) +#define silk_VAD_GetSA_Q8(psEnC, pIn, arch) ((void)(arch),silk_VAD_GetSA_Q8_sse4_1(psEnC, pIn)) + +#else + +# define silk_VAD_GetSA_Q8(psEnC, pIn, arch) \ + ((*SILK_VAD_GETSA_Q8_IMPL[(arch) & OPUS_ARCHMASK])(psEnC, pIn)) + +extern opus_int (*const SILK_VAD_GETSA_Q8_IMPL[OPUS_ARCHMASK + 1])( + silk_encoder_state *psEnC, + const opus_int16 pIn[]); + +#endif + +# endif +#endif diff --git a/components/opus/libopus/silk/x86/x86_silk_map.c b/components/opus/libopus/silk/x86/x86_silk_map.c new file mode 100644 index 0000000..32dcc3c --- /dev/null +++ b/components/opus/libopus/silk/x86/x86_silk_map.c @@ -0,0 +1,164 @@ +/* Copyright (c) 2014, Cisco Systems, INC + Written by XiangMingZhu WeiZhou MinPeng YanWang + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#if defined(HAVE_CONFIG_H) +#include "config.h" +#endif + +#include "celt/x86/x86cpu.h" +#include "structs.h" +#include "SigProc_FIX.h" +#include "pitch.h" +#include "main.h" + +#if !defined(OPUS_X86_PRESUME_SSE4_1) + +#if defined(FIXED_POINT) + +#include "fixed/main_FIX.h" + +opus_int64 (*const SILK_INNER_PROD16_ALIGNED_64_IMPL[ OPUS_ARCHMASK + 1 ] )( + const opus_int16 *inVec1, + const opus_int16 *inVec2, + const opus_int len +) = { + silk_inner_prod16_aligned_64_c, /* non-sse */ + silk_inner_prod16_aligned_64_c, + silk_inner_prod16_aligned_64_c, + MAY_HAVE_SSE4_1( silk_inner_prod16_aligned_64 ), /* sse4.1 */ + MAY_HAVE_SSE4_1( silk_inner_prod16_aligned_64 ) /* avx */ +}; + +#endif + +opus_int (*const SILK_VAD_GETSA_Q8_IMPL[ OPUS_ARCHMASK + 1 ] )( + silk_encoder_state *psEncC, + const opus_int16 pIn[] +) = { + silk_VAD_GetSA_Q8_c, /* non-sse */ + silk_VAD_GetSA_Q8_c, + silk_VAD_GetSA_Q8_c, + MAY_HAVE_SSE4_1( silk_VAD_GetSA_Q8 ), /* sse4.1 */ + MAY_HAVE_SSE4_1( silk_VAD_GetSA_Q8 ) /* avx */ +}; + +#if 0 /* FIXME: SSE disabled until the NSQ code gets updated. */ +void (*const SILK_NSQ_IMPL[ OPUS_ARCHMASK + 1 ] )( + const silk_encoder_state *psEncC, /* I Encoder State */ + silk_nsq_state *NSQ, /* I/O NSQ state */ + SideInfoIndices *psIndices, /* I/O Quantization Indices */ + const opus_int32 x_Q3[], /* I Prefiltered input signal */ + opus_int8 pulses[], /* O Quantized pulse signal */ + const opus_int16 PredCoef_Q12[ 2 * MAX_LPC_ORDER ], /* I Short term prediction coefs */ + const opus_int16 LTPCoef_Q14[ LTP_ORDER * MAX_NB_SUBFR ], /* I Long term prediction coefs */ + const opus_int16 AR2_Q13[ MAX_NB_SUBFR * MAX_SHAPE_LPC_ORDER ], /* I Noise shaping coefs */ + const opus_int HarmShapeGain_Q14[ MAX_NB_SUBFR ], /* I Long term shaping coefs */ + const opus_int Tilt_Q14[ MAX_NB_SUBFR ], /* I Spectral tilt */ + const opus_int32 LF_shp_Q14[ MAX_NB_SUBFR ], /* I Low frequency shaping coefs */ + const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I Quantization step sizes */ + const opus_int pitchL[ MAX_NB_SUBFR ], /* I Pitch lags */ + const opus_int Lambda_Q10, /* I Rate/distortion tradeoff */ + const opus_int LTP_scale_Q14 /* I LTP state scaling */ +) = { + silk_NSQ_c, /* non-sse */ + silk_NSQ_c, + silk_NSQ_c, + MAY_HAVE_SSE4_1( silk_NSQ ), /* sse4.1 */ + MAY_HAVE_SSE4_1( silk_NSQ ) /* avx */ +}; +#endif + +#if 0 /* FIXME: SSE disabled until silk_VQ_WMat_EC_sse4_1() gets updated. */ +void (*const SILK_VQ_WMAT_EC_IMPL[ OPUS_ARCHMASK + 1 ] )( + opus_int8 *ind, /* O index of best codebook vector */ + opus_int32 *rate_dist_Q14, /* O best weighted quant error + mu * rate */ + opus_int *gain_Q7, /* O sum of absolute LTP coefficients */ + const opus_int16 *in_Q14, /* I input vector to be quantized */ + const opus_int32 *W_Q18, /* I weighting matrix */ + const opus_int8 *cb_Q7, /* I codebook */ + const opus_uint8 *cb_gain_Q7, /* I codebook effective gain */ + const opus_uint8 *cl_Q5, /* I code length for each codebook vector */ + const opus_int mu_Q9, /* I tradeoff betw. weighted error and rate */ + const opus_int32 max_gain_Q7, /* I maximum sum of absolute LTP coefficients */ + opus_int L /* I number of vectors in codebook */ +) = { + silk_VQ_WMat_EC_c, /* non-sse */ + silk_VQ_WMat_EC_c, + silk_VQ_WMat_EC_c, + MAY_HAVE_SSE4_1( silk_VQ_WMat_EC ), /* sse4.1 */ + MAY_HAVE_SSE4_1( silk_VQ_WMat_EC ) /* avx */ +}; +#endif + +#if 0 /* FIXME: SSE disabled until the NSQ code gets updated. */ +void (*const SILK_NSQ_DEL_DEC_IMPL[ OPUS_ARCHMASK + 1 ] )( + const silk_encoder_state *psEncC, /* I Encoder State */ + silk_nsq_state *NSQ, /* I/O NSQ state */ + SideInfoIndices *psIndices, /* I/O Quantization Indices */ + const opus_int32 x_Q3[], /* I Prefiltered input signal */ + opus_int8 pulses[], /* O Quantized pulse signal */ + const opus_int16 PredCoef_Q12[ 2 * MAX_LPC_ORDER ], /* I Short term prediction coefs */ + const opus_int16 LTPCoef_Q14[ LTP_ORDER * MAX_NB_SUBFR ], /* I Long term prediction coefs */ + const opus_int16 AR2_Q13[ MAX_NB_SUBFR * MAX_SHAPE_LPC_ORDER ], /* I Noise shaping coefs */ + const opus_int HarmShapeGain_Q14[ MAX_NB_SUBFR ], /* I Long term shaping coefs */ + const opus_int Tilt_Q14[ MAX_NB_SUBFR ], /* I Spectral tilt */ + const opus_int32 LF_shp_Q14[ MAX_NB_SUBFR ], /* I Low frequency shaping coefs */ + const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I Quantization step sizes */ + const opus_int pitchL[ MAX_NB_SUBFR ], /* I Pitch lags */ + const opus_int Lambda_Q10, /* I Rate/distortion tradeoff */ + const opus_int LTP_scale_Q14 /* I LTP state scaling */ +) = { + silk_NSQ_del_dec_c, /* non-sse */ + silk_NSQ_del_dec_c, + silk_NSQ_del_dec_c, + MAY_HAVE_SSE4_1( silk_NSQ_del_dec ), /* sse4.1 */ + MAY_HAVE_SSE4_1( silk_NSQ_del_dec ) /* avx */ +}; +#endif + +#if defined(FIXED_POINT) + +void (*const SILK_BURG_MODIFIED_IMPL[ OPUS_ARCHMASK + 1 ] )( + opus_int32 *res_nrg, /* O Residual energy */ + opus_int *res_nrg_Q, /* O Residual energy Q value */ + opus_int32 A_Q16[], /* O Prediction coefficients (length order) */ + const opus_int16 x[], /* I Input signal, length: nb_subfr * ( D + subfr_length ) */ + const opus_int32 minInvGain_Q30, /* I Inverse of max prediction gain */ + const opus_int subfr_length, /* I Input signal subframe length (incl. D preceding samples) */ + const opus_int nb_subfr, /* I Number of subframes stacked in x */ + const opus_int D, /* I Order */ + int arch /* I Run-time architecture */ +) = { + silk_burg_modified_c, /* non-sse */ + silk_burg_modified_c, + silk_burg_modified_c, + MAY_HAVE_SSE4_1( silk_burg_modified ), /* sse4.1 */ + MAY_HAVE_SSE4_1( silk_burg_modified ) /* avx */ +}; + +#endif +#endif diff --git a/components/opus/libopus/silk_headers.mk b/components/opus/libopus/silk_headers.mk new file mode 100644 index 0000000..2588067 --- /dev/null +++ b/components/opus/libopus/silk_headers.mk @@ -0,0 +1,44 @@ +SILK_HEAD = \ +silk/debug.h \ +silk/control.h \ +silk/errors.h \ +silk/API.h \ +silk/typedef.h \ +silk/define.h \ +silk/main.h \ +silk/x86/main_sse.h \ +silk/PLC.h \ +silk/structs.h \ +silk/tables.h \ +silk/tuning_parameters.h \ +silk/Inlines.h \ +silk/MacroCount.h \ +silk/MacroDebug.h \ +silk/macros.h \ +silk/NSQ.h \ +silk/pitch_est_defines.h \ +silk/resampler_private.h \ +silk/resampler_rom.h \ +silk/resampler_structs.h \ +silk/SigProc_FIX.h \ +silk/x86/SigProc_FIX_sse.h \ +silk/arm/biquad_alt_arm.h \ +silk/arm/LPC_inv_pred_gain_arm.h \ +silk/arm/macros_armv4.h \ +silk/arm/macros_armv5e.h \ +silk/arm/macros_arm64.h \ +silk/arm/SigProc_FIX_armv4.h \ +silk/arm/SigProc_FIX_armv5e.h \ +silk/arm/NSQ_del_dec_arm.h \ +silk/arm/NSQ_neon.h \ +silk/fixed/main_FIX.h \ +silk/fixed/structs_FIX.h \ +silk/fixed/arm/warped_autocorrelation_FIX_arm.h \ +silk/fixed/mips/noise_shape_analysis_FIX_mipsr1.h \ +silk/fixed/mips/warped_autocorrelation_FIX_mipsr1.h \ +silk/float/main_FLP.h \ +silk/float/structs_FLP.h \ +silk/float/SigProc_FLP.h \ +silk/mips/macros_mipsr1.h \ +silk/mips/NSQ_del_dec_mipsr1.h \ +silk/mips/sigproc_fix_mipsr1.h diff --git a/components/opus/libopus/silk_sources.mk b/components/opus/libopus/silk_sources.mk new file mode 100644 index 0000000..d2666e6 --- /dev/null +++ b/components/opus/libopus/silk_sources.mk @@ -0,0 +1,154 @@ +SILK_SOURCES = \ +silk/CNG.c \ +silk/code_signs.c \ +silk/init_decoder.c \ +silk/decode_core.c \ +silk/decode_frame.c \ +silk/decode_parameters.c \ +silk/decode_indices.c \ +silk/decode_pulses.c \ +silk/decoder_set_fs.c \ +silk/dec_API.c \ +silk/enc_API.c \ +silk/encode_indices.c \ +silk/encode_pulses.c \ +silk/gain_quant.c \ +silk/interpolate.c \ +silk/LP_variable_cutoff.c \ +silk/NLSF_decode.c \ +silk/NSQ.c \ +silk/NSQ_del_dec.c \ +silk/PLC.c \ +silk/shell_coder.c \ +silk/tables_gain.c \ +silk/tables_LTP.c \ +silk/tables_NLSF_CB_NB_MB.c \ +silk/tables_NLSF_CB_WB.c \ +silk/tables_other.c \ +silk/tables_pitch_lag.c \ +silk/tables_pulses_per_block.c \ +silk/VAD.c \ +silk/control_audio_bandwidth.c \ +silk/quant_LTP_gains.c \ +silk/VQ_WMat_EC.c \ +silk/HP_variable_cutoff.c \ +silk/NLSF_encode.c \ +silk/NLSF_VQ.c \ +silk/NLSF_unpack.c \ +silk/NLSF_del_dec_quant.c \ +silk/process_NLSFs.c \ +silk/stereo_LR_to_MS.c \ +silk/stereo_MS_to_LR.c \ +silk/check_control_input.c \ +silk/control_SNR.c \ +silk/init_encoder.c \ +silk/control_codec.c \ +silk/A2NLSF.c \ +silk/ana_filt_bank_1.c \ +silk/biquad_alt.c \ +silk/bwexpander_32.c \ +silk/bwexpander.c \ +silk/debug.c \ +silk/decode_pitch.c \ +silk/inner_prod_aligned.c \ +silk/lin2log.c \ +silk/log2lin.c \ +silk/LPC_analysis_filter.c \ +silk/LPC_inv_pred_gain.c \ +silk/table_LSF_cos.c \ +silk/NLSF2A.c \ +silk/NLSF_stabilize.c \ +silk/NLSF_VQ_weights_laroia.c \ +silk/pitch_est_tables.c \ +silk/resampler.c \ +silk/resampler_down2_3.c \ +silk/resampler_down2.c \ +silk/resampler_private_AR2.c \ +silk/resampler_private_down_FIR.c \ +silk/resampler_private_IIR_FIR.c \ +silk/resampler_private_up2_HQ.c \ +silk/resampler_rom.c \ +silk/sigm_Q15.c \ +silk/sort.c \ +silk/sum_sqr_shift.c \ +silk/stereo_decode_pred.c \ +silk/stereo_encode_pred.c \ +silk/stereo_find_predictor.c \ +silk/stereo_quant_pred.c \ +silk/LPC_fit.c + +SILK_SOURCES_SSE4_1 = \ +silk/x86/NSQ_sse4_1.c \ +silk/x86/NSQ_del_dec_sse4_1.c \ +silk/x86/x86_silk_map.c \ +silk/x86/VAD_sse4_1.c \ +silk/x86/VQ_WMat_EC_sse4_1.c + +SILK_SOURCES_ARM_NEON_INTR = \ +silk/arm/arm_silk_map.c \ +silk/arm/biquad_alt_neon_intr.c \ +silk/arm/LPC_inv_pred_gain_neon_intr.c \ +silk/arm/NSQ_del_dec_neon_intr.c \ +silk/arm/NSQ_neon.c + +SILK_SOURCES_FIXED = \ +silk/fixed/LTP_analysis_filter_FIX.c \ +silk/fixed/LTP_scale_ctrl_FIX.c \ +silk/fixed/corrMatrix_FIX.c \ +silk/fixed/encode_frame_FIX.c \ +silk/fixed/find_LPC_FIX.c \ +silk/fixed/find_LTP_FIX.c \ +silk/fixed/find_pitch_lags_FIX.c \ +silk/fixed/find_pred_coefs_FIX.c \ +silk/fixed/noise_shape_analysis_FIX.c \ +silk/fixed/process_gains_FIX.c \ +silk/fixed/regularize_correlations_FIX.c \ +silk/fixed/residual_energy16_FIX.c \ +silk/fixed/residual_energy_FIX.c \ +silk/fixed/warped_autocorrelation_FIX.c \ +silk/fixed/apply_sine_window_FIX.c \ +silk/fixed/autocorr_FIX.c \ +silk/fixed/burg_modified_FIX.c \ +silk/fixed/k2a_FIX.c \ +silk/fixed/k2a_Q16_FIX.c \ +silk/fixed/pitch_analysis_core_FIX.c \ +silk/fixed/vector_ops_FIX.c \ +silk/fixed/schur64_FIX.c \ +silk/fixed/schur_FIX.c + +SILK_SOURCES_FIXED_SSE4_1 = \ +silk/fixed/x86/vector_ops_FIX_sse4_1.c \ +silk/fixed/x86/burg_modified_FIX_sse4_1.c + +SILK_SOURCES_FIXED_ARM_NEON_INTR = \ +silk/fixed/arm/warped_autocorrelation_FIX_neon_intr.c + +SILK_SOURCES_FLOAT = \ +silk/float/apply_sine_window_FLP.c \ +silk/float/corrMatrix_FLP.c \ +silk/float/encode_frame_FLP.c \ +silk/float/find_LPC_FLP.c \ +silk/float/find_LTP_FLP.c \ +silk/float/find_pitch_lags_FLP.c \ +silk/float/find_pred_coefs_FLP.c \ +silk/float/LPC_analysis_filter_FLP.c \ +silk/float/LTP_analysis_filter_FLP.c \ +silk/float/LTP_scale_ctrl_FLP.c \ +silk/float/noise_shape_analysis_FLP.c \ +silk/float/process_gains_FLP.c \ +silk/float/regularize_correlations_FLP.c \ +silk/float/residual_energy_FLP.c \ +silk/float/warped_autocorrelation_FLP.c \ +silk/float/wrappers_FLP.c \ +silk/float/autocorrelation_FLP.c \ +silk/float/burg_modified_FLP.c \ +silk/float/bwexpander_FLP.c \ +silk/float/energy_FLP.c \ +silk/float/inner_product_FLP.c \ +silk/float/k2a_FLP.c \ +silk/float/LPC_inv_pred_gain_FLP.c \ +silk/float/pitch_analysis_core_FLP.c \ +silk/float/scale_copy_vector_FLP.c \ +silk/float/scale_vector_FLP.c \ +silk/float/schur_FLP.c \ +silk/float/sort_FLP.c diff --git a/components/opus/libopus/src/analysis.c b/components/opus/libopus/src/analysis.c new file mode 100644 index 0000000..cb46dec --- /dev/null +++ b/components/opus/libopus/src/analysis.c @@ -0,0 +1,981 @@ +/* Copyright (c) 2011 Xiph.Org Foundation + Written by Jean-Marc Valin */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR + CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#define ANALYSIS_C + +#include + +#include "mathops.h" +#include "kiss_fft.h" +#include "celt.h" +#include "modes.h" +#include "arch.h" +#include "quant_bands.h" +#include "analysis.h" +#include "mlp.h" +#include "stack_alloc.h" +#include "float_cast.h" + +#ifndef M_PI +#define M_PI 3.141592653 +#endif + +#ifndef DISABLE_FLOAT_API + +#define TRANSITION_PENALTY 10 + +static const float dct_table[128] = { + 0.250000f, 0.250000f, 0.250000f, 0.250000f, 0.250000f, 0.250000f, 0.250000f, 0.250000f, + 0.250000f, 0.250000f, 0.250000f, 0.250000f, 0.250000f, 0.250000f, 0.250000f, 0.250000f, + 0.351851f, 0.338330f, 0.311806f, 0.273300f, 0.224292f, 0.166664f, 0.102631f, 0.034654f, + -0.034654f,-0.102631f,-0.166664f,-0.224292f,-0.273300f,-0.311806f,-0.338330f,-0.351851f, + 0.346760f, 0.293969f, 0.196424f, 0.068975f,-0.068975f,-0.196424f,-0.293969f,-0.346760f, + -0.346760f,-0.293969f,-0.196424f,-0.068975f, 0.068975f, 0.196424f, 0.293969f, 0.346760f, + 0.338330f, 0.224292f, 0.034654f,-0.166664f,-0.311806f,-0.351851f,-0.273300f,-0.102631f, + 0.102631f, 0.273300f, 0.351851f, 0.311806f, 0.166664f,-0.034654f,-0.224292f,-0.338330f, + 0.326641f, 0.135299f,-0.135299f,-0.326641f,-0.326641f,-0.135299f, 0.135299f, 0.326641f, + 0.326641f, 0.135299f,-0.135299f,-0.326641f,-0.326641f,-0.135299f, 0.135299f, 0.326641f, + 0.311806f, 0.034654f,-0.273300f,-0.338330f,-0.102631f, 0.224292f, 0.351851f, 0.166664f, + -0.166664f,-0.351851f,-0.224292f, 0.102631f, 0.338330f, 0.273300f,-0.034654f,-0.311806f, + 0.293969f,-0.068975f,-0.346760f,-0.196424f, 0.196424f, 0.346760f, 0.068975f,-0.293969f, + -0.293969f, 0.068975f, 0.346760f, 0.196424f,-0.196424f,-0.346760f,-0.068975f, 0.293969f, + 0.273300f,-0.166664f,-0.338330f, 0.034654f, 0.351851f, 0.102631f,-0.311806f,-0.224292f, + 0.224292f, 0.311806f,-0.102631f,-0.351851f,-0.034654f, 0.338330f, 0.166664f,-0.273300f, +}; + +static const float analysis_window[240] = { + 0.000043f, 0.000171f, 0.000385f, 0.000685f, 0.001071f, 0.001541f, 0.002098f, 0.002739f, + 0.003466f, 0.004278f, 0.005174f, 0.006156f, 0.007222f, 0.008373f, 0.009607f, 0.010926f, + 0.012329f, 0.013815f, 0.015385f, 0.017037f, 0.018772f, 0.020590f, 0.022490f, 0.024472f, + 0.026535f, 0.028679f, 0.030904f, 0.033210f, 0.035595f, 0.038060f, 0.040604f, 0.043227f, + 0.045928f, 0.048707f, 0.051564f, 0.054497f, 0.057506f, 0.060591f, 0.063752f, 0.066987f, + 0.070297f, 0.073680f, 0.077136f, 0.080665f, 0.084265f, 0.087937f, 0.091679f, 0.095492f, + 0.099373f, 0.103323f, 0.107342f, 0.111427f, 0.115579f, 0.119797f, 0.124080f, 0.128428f, + 0.132839f, 0.137313f, 0.141849f, 0.146447f, 0.151105f, 0.155823f, 0.160600f, 0.165435f, + 0.170327f, 0.175276f, 0.180280f, 0.185340f, 0.190453f, 0.195619f, 0.200838f, 0.206107f, + 0.211427f, 0.216797f, 0.222215f, 0.227680f, 0.233193f, 0.238751f, 0.244353f, 0.250000f, + 0.255689f, 0.261421f, 0.267193f, 0.273005f, 0.278856f, 0.284744f, 0.290670f, 0.296632f, + 0.302628f, 0.308658f, 0.314721f, 0.320816f, 0.326941f, 0.333097f, 0.339280f, 0.345492f, + 0.351729f, 0.357992f, 0.364280f, 0.370590f, 0.376923f, 0.383277f, 0.389651f, 0.396044f, + 0.402455f, 0.408882f, 0.415325f, 0.421783f, 0.428254f, 0.434737f, 0.441231f, 0.447736f, + 0.454249f, 0.460770f, 0.467298f, 0.473832f, 0.480370f, 0.486912f, 0.493455f, 0.500000f, + 0.506545f, 0.513088f, 0.519630f, 0.526168f, 0.532702f, 0.539230f, 0.545751f, 0.552264f, + 0.558769f, 0.565263f, 0.571746f, 0.578217f, 0.584675f, 0.591118f, 0.597545f, 0.603956f, + 0.610349f, 0.616723f, 0.623077f, 0.629410f, 0.635720f, 0.642008f, 0.648271f, 0.654508f, + 0.660720f, 0.666903f, 0.673059f, 0.679184f, 0.685279f, 0.691342f, 0.697372f, 0.703368f, + 0.709330f, 0.715256f, 0.721144f, 0.726995f, 0.732807f, 0.738579f, 0.744311f, 0.750000f, + 0.755647f, 0.761249f, 0.766807f, 0.772320f, 0.777785f, 0.783203f, 0.788573f, 0.793893f, + 0.799162f, 0.804381f, 0.809547f, 0.814660f, 0.819720f, 0.824724f, 0.829673f, 0.834565f, + 0.839400f, 0.844177f, 0.848895f, 0.853553f, 0.858151f, 0.862687f, 0.867161f, 0.871572f, + 0.875920f, 0.880203f, 0.884421f, 0.888573f, 0.892658f, 0.896677f, 0.900627f, 0.904508f, + 0.908321f, 0.912063f, 0.915735f, 0.919335f, 0.922864f, 0.926320f, 0.929703f, 0.933013f, + 0.936248f, 0.939409f, 0.942494f, 0.945503f, 0.948436f, 0.951293f, 0.954072f, 0.956773f, + 0.959396f, 0.961940f, 0.964405f, 0.966790f, 0.969096f, 0.971321f, 0.973465f, 0.975528f, + 0.977510f, 0.979410f, 0.981228f, 0.982963f, 0.984615f, 0.986185f, 0.987671f, 0.989074f, + 0.990393f, 0.991627f, 0.992778f, 0.993844f, 0.994826f, 0.995722f, 0.996534f, 0.997261f, + 0.997902f, 0.998459f, 0.998929f, 0.999315f, 0.999615f, 0.999829f, 0.999957f, 1.000000f, +}; + +static const int tbands[NB_TBANDS+1] = { + 4, 8, 12, 16, 20, 24, 28, 32, 40, 48, 56, 64, 80, 96, 112, 136, 160, 192, 240 +}; + +#define NB_TONAL_SKIP_BANDS 9 + +static opus_val32 silk_resampler_down2_hp( + opus_val32 *S, /* I/O State vector [ 2 ] */ + opus_val32 *out, /* O Output signal [ floor(len/2) ] */ + const opus_val32 *in, /* I Input signal [ len ] */ + int inLen /* I Number of input samples */ +) +{ + int k, len2 = inLen/2; + opus_val32 in32, out32, out32_hp, Y, X; + opus_val64 hp_ener = 0; + /* Internal variables and state are in Q10 format */ + for( k = 0; k < len2; k++ ) { + /* Convert to Q10 */ + in32 = in[ 2 * k ]; + + /* All-pass section for even input sample */ + Y = SUB32( in32, S[ 0 ] ); + X = MULT16_32_Q15(QCONST16(0.6074371f, 15), Y); + out32 = ADD32( S[ 0 ], X ); + S[ 0 ] = ADD32( in32, X ); + out32_hp = out32; + /* Convert to Q10 */ + in32 = in[ 2 * k + 1 ]; + + /* All-pass section for odd input sample, and add to output of previous section */ + Y = SUB32( in32, S[ 1 ] ); + X = MULT16_32_Q15(QCONST16(0.15063f, 15), Y); + out32 = ADD32( out32, S[ 1 ] ); + out32 = ADD32( out32, X ); + S[ 1 ] = ADD32( in32, X ); + + Y = SUB32( -in32, S[ 2 ] ); + X = MULT16_32_Q15(QCONST16(0.15063f, 15), Y); + out32_hp = ADD32( out32_hp, S[ 2 ] ); + out32_hp = ADD32( out32_hp, X ); + S[ 2 ] = ADD32( -in32, X ); + + hp_ener += out32_hp*(opus_val64)out32_hp; + /* Add, convert back to int16 and store to output */ + out[ k ] = HALF32(out32); + } +#ifdef FIXED_POINT + /* len2 can be up to 480, so we shift by 8 more to make it fit. */ + hp_ener = hp_ener >> (2*SIG_SHIFT + 8); +#endif + return (opus_val32)hp_ener; +} + +static opus_val32 downmix_and_resample(downmix_func downmix, const void *_x, opus_val32 *y, opus_val32 S[3], int subframe, int offset, int c1, int c2, int C, int Fs) +{ + VARDECL(opus_val32, tmp); + opus_val32 scale; + int j; + opus_val32 ret = 0; + SAVE_STACK; + + if (subframe==0) return 0; + if (Fs == 48000) + { + subframe *= 2; + offset *= 2; + } else if (Fs == 16000) { + subframe = subframe*2/3; + offset = offset*2/3; + } + ALLOC(tmp, subframe, opus_val32); + + downmix(_x, tmp, subframe, offset, c1, c2, C); +#ifdef FIXED_POINT + scale = (1<-1) + scale /= 2; + for (j=0;jarch = opus_select_arch(); + tonal->Fs = Fs; + /* Clear remaining fields. */ + tonality_analysis_reset(tonal); +} + +void tonality_analysis_reset(TonalityAnalysisState *tonal) +{ + /* Clear non-reusable fields. */ + char *start = (char*)&tonal->TONALITY_ANALYSIS_RESET_START; + OPUS_CLEAR(start, sizeof(TonalityAnalysisState) - (start - (char*)tonal)); +} + +void tonality_get_info(TonalityAnalysisState *tonal, AnalysisInfo *info_out, int len) +{ + int pos; + int curr_lookahead; + float tonality_max; + float tonality_avg; + int tonality_count; + int i; + int pos0; + float prob_avg; + float prob_count; + float prob_min, prob_max; + float vad_prob; + int mpos, vpos; + int bandwidth_span; + + pos = tonal->read_pos; + curr_lookahead = tonal->write_pos-tonal->read_pos; + if (curr_lookahead<0) + curr_lookahead += DETECT_SIZE; + + tonal->read_subframe += len/(tonal->Fs/400); + while (tonal->read_subframe>=8) + { + tonal->read_subframe -= 8; + tonal->read_pos++; + } + if (tonal->read_pos>=DETECT_SIZE) + tonal->read_pos-=DETECT_SIZE; + + /* On long frames, look at the second analysis window rather than the first. */ + if (len > tonal->Fs/50 && pos != tonal->write_pos) + { + pos++; + if (pos==DETECT_SIZE) + pos=0; + } + if (pos == tonal->write_pos) + pos--; + if (pos<0) + pos = DETECT_SIZE-1; + pos0 = pos; + OPUS_COPY(info_out, &tonal->info[pos], 1); + if (!info_out->valid) + return; + tonality_max = tonality_avg = info_out->tonality; + tonality_count = 1; + /* Look at the neighbouring frames and pick largest bandwidth found (to be safe). */ + bandwidth_span = 6; + /* If possible, look ahead for a tone to compensate for the delay in the tone detector. */ + for (i=0;i<3;i++) + { + pos++; + if (pos==DETECT_SIZE) + pos = 0; + if (pos == tonal->write_pos) + break; + tonality_max = MAX32(tonality_max, tonal->info[pos].tonality); + tonality_avg += tonal->info[pos].tonality; + tonality_count++; + info_out->bandwidth = IMAX(info_out->bandwidth, tonal->info[pos].bandwidth); + bandwidth_span--; + } + pos = pos0; + /* Look back in time to see if any has a wider bandwidth than the current frame. */ + for (i=0;iwrite_pos) + break; + info_out->bandwidth = IMAX(info_out->bandwidth, tonal->info[pos].bandwidth); + } + info_out->tonality = MAX32(tonality_avg/tonality_count, tonality_max-.2f); + + mpos = vpos = pos0; + /* If we have enough look-ahead, compensate for the ~5-frame delay in the music prob and + ~1 frame delay in the VAD prob. */ + if (curr_lookahead > 15) + { + mpos += 5; + if (mpos>=DETECT_SIZE) + mpos -= DETECT_SIZE; + vpos += 1; + if (vpos>=DETECT_SIZE) + vpos -= DETECT_SIZE; + } + + /* The following calculations attempt to minimize a "badness function" + for the transition. When switching from speech to music, the badness + of switching at frame k is + b_k = S*v_k + \sum_{i=0}^{k-1} v_i*(p_i - T) + where + v_i is the activity probability (VAD) at frame i, + p_i is the music probability at frame i + T is the probability threshold for switching + S is the penalty for switching during active audio rather than silence + the current frame has index i=0 + + Rather than apply badness to directly decide when to switch, what we compute + instead is the threshold for which the optimal switching point is now. When + considering whether to switch now (frame 0) or at frame k, we have: + S*v_0 = S*v_k + \sum_{i=0}^{k-1} v_i*(p_i - T) + which gives us: + T = ( \sum_{i=0}^{k-1} v_i*p_i + S*(v_k-v_0) ) / ( \sum_{i=0}^{k-1} v_i ) + We take the min threshold across all positive values of k (up to the maximum + amount of lookahead we have) to give us the threshold for which the current + frame is the optimal switch point. + + The last step is that we need to consider whether we want to switch at all. + For that we use the average of the music probability over the entire window. + If the threshold is higher than that average we're not going to + switch, so we compute a min with the average as well. The result of all these + min operations is music_prob_min, which gives the threshold for switching to music + if we're currently encoding for speech. + + We do the exact opposite to compute music_prob_max which is used for switching + from music to speech. + */ + prob_min = 1.f; + prob_max = 0.f; + vad_prob = tonal->info[vpos].activity_probability; + prob_count = MAX16(.1f, vad_prob); + prob_avg = MAX16(.1f, vad_prob)*tonal->info[mpos].music_prob; + while (1) + { + float pos_vad; + mpos++; + if (mpos==DETECT_SIZE) + mpos = 0; + if (mpos == tonal->write_pos) + break; + vpos++; + if (vpos==DETECT_SIZE) + vpos = 0; + if (vpos == tonal->write_pos) + break; + pos_vad = tonal->info[vpos].activity_probability; + prob_min = MIN16((prob_avg - TRANSITION_PENALTY*(vad_prob - pos_vad))/prob_count, prob_min); + prob_max = MAX16((prob_avg + TRANSITION_PENALTY*(vad_prob - pos_vad))/prob_count, prob_max); + prob_count += MAX16(.1f, pos_vad); + prob_avg += MAX16(.1f, pos_vad)*tonal->info[mpos].music_prob; + } + info_out->music_prob = prob_avg/prob_count; + prob_min = MIN16(prob_avg/prob_count, prob_min); + prob_max = MAX16(prob_avg/prob_count, prob_max); + prob_min = MAX16(prob_min, 0.f); + prob_max = MIN16(prob_max, 1.f); + + /* If we don't have enough look-ahead, do our best to make a decent decision. */ + if (curr_lookahead < 10) + { + float pmin, pmax; + pmin = prob_min; + pmax = prob_max; + pos = pos0; + /* Look for min/max in the past. */ + for (i=0;icount-1, 15);i++) + { + pos--; + if (pos < 0) + pos = DETECT_SIZE-1; + pmin = MIN16(pmin, tonal->info[pos].music_prob); + pmax = MAX16(pmax, tonal->info[pos].music_prob); + } + /* Bias against switching on active audio. */ + pmin = MAX16(0.f, pmin - .1f*vad_prob); + pmax = MIN16(1.f, pmax + .1f*vad_prob); + prob_min += (1.f-.1f*curr_lookahead)*(pmin - prob_min); + prob_max += (1.f-.1f*curr_lookahead)*(pmax - prob_max); + } + info_out->music_prob_min = prob_min; + info_out->music_prob_max = prob_max; + + /* printf("%f %f %f %f %f\n", prob_min, prob_max, prob_avg/prob_count, vad_prob, info_out->music_prob); */ +} + +static const float std_feature_bias[9] = { + 5.684947f, 3.475288f, 1.770634f, 1.599784f, 3.773215f, + 2.163313f, 1.260756f, 1.116868f, 1.918795f +}; + +#define LEAKAGE_OFFSET 2.5f +#define LEAKAGE_SLOPE 2.f + +#ifdef FIXED_POINT +/* For fixed-point, the input is +/-2^15 shifted up by SIG_SHIFT, so we need to + compensate for that in the energy. */ +#define SCALE_COMPENS (1.f/((opus_int32)1<<(15+SIG_SHIFT))) +#define SCALE_ENER(e) ((SCALE_COMPENS*SCALE_COMPENS)*(e)) +#else +#define SCALE_ENER(e) (e) +#endif + +#ifdef FIXED_POINT +static int is_digital_silence32(const opus_val32* pcm, int frame_size, int channels, int lsb_depth) +{ + int silence = 0; + opus_val32 sample_max = 0; +#ifdef MLP_TRAINING + return 0; +#endif + sample_max = celt_maxabs32(pcm, frame_size*channels); + + silence = (sample_max == 0); + (void)lsb_depth; + return silence; +} +#else +#define is_digital_silence32(pcm, frame_size, channels, lsb_depth) is_digital_silence(pcm, frame_size, channels, lsb_depth) +#endif + +static void tonality_analysis(TonalityAnalysisState *tonal, const CELTMode *celt_mode, const void *x, int len, int offset, int c1, int c2, int C, int lsb_depth, downmix_func downmix) +{ + int i, b; + const kiss_fft_state *kfft; + VARDECL(kiss_fft_cpx, in); + VARDECL(kiss_fft_cpx, out); + int N = 480, N2=240; + float * OPUS_RESTRICT A = tonal->angle; + float * OPUS_RESTRICT dA = tonal->d_angle; + float * OPUS_RESTRICT d2A = tonal->d2_angle; + VARDECL(float, tonality); + VARDECL(float, noisiness); + float band_tonality[NB_TBANDS]; + float logE[NB_TBANDS]; + float BFCC[8]; + float features[25]; + float frame_tonality; + float max_frame_tonality; + /*float tw_sum=0;*/ + float frame_noisiness; + const float pi4 = (float)(M_PI*M_PI*M_PI*M_PI); + float slope=0; + float frame_stationarity; + float relativeE; + float frame_probs[2]; + float alpha, alphaE, alphaE2; + float frame_loudness; + float bandwidth_mask; + int is_masked[NB_TBANDS+1]; + int bandwidth=0; + float maxE = 0; + float noise_floor; + int remaining; + AnalysisInfo *info; + float hp_ener; + float tonality2[240]; + float midE[8]; + float spec_variability=0; + float band_log2[NB_TBANDS+1]; + float leakage_from[NB_TBANDS+1]; + float leakage_to[NB_TBANDS+1]; + float layer_out[MAX_NEURONS]; + float below_max_pitch; + float above_max_pitch; + int is_silence; + SAVE_STACK; + + if (!tonal->initialized) + { + tonal->mem_fill = 240; + tonal->initialized = 1; + } + alpha = 1.f/IMIN(10, 1+tonal->count); + alphaE = 1.f/IMIN(25, 1+tonal->count); + /* Noise floor related decay for bandwidth detection: -2.2 dB/second */ + alphaE2 = 1.f/IMIN(100, 1+tonal->count); + if (tonal->count <= 1) alphaE2 = 1; + + if (tonal->Fs == 48000) + { + /* len and offset are now at 24 kHz. */ + len/= 2; + offset /= 2; + } else if (tonal->Fs == 16000) { + len = 3*len/2; + offset = 3*offset/2; + } + + kfft = celt_mode->mdct.kfft[0]; + tonal->hp_ener_accum += (float)downmix_and_resample(downmix, x, + &tonal->inmem[tonal->mem_fill], tonal->downmix_state, + IMIN(len, ANALYSIS_BUF_SIZE-tonal->mem_fill), offset, c1, c2, C, tonal->Fs); + if (tonal->mem_fill+len < ANALYSIS_BUF_SIZE) + { + tonal->mem_fill += len; + /* Don't have enough to update the analysis */ + RESTORE_STACK; + return; + } + hp_ener = tonal->hp_ener_accum; + info = &tonal->info[tonal->write_pos++]; + if (tonal->write_pos>=DETECT_SIZE) + tonal->write_pos-=DETECT_SIZE; + + is_silence = is_digital_silence32(tonal->inmem, ANALYSIS_BUF_SIZE, 1, lsb_depth); + + ALLOC(in, 480, kiss_fft_cpx); + ALLOC(out, 480, kiss_fft_cpx); + ALLOC(tonality, 240, float); + ALLOC(noisiness, 240, float); + for (i=0;iinmem[i]); + in[i].i = (kiss_fft_scalar)(w*tonal->inmem[N2+i]); + in[N-i-1].r = (kiss_fft_scalar)(w*tonal->inmem[N-i-1]); + in[N-i-1].i = (kiss_fft_scalar)(w*tonal->inmem[N+N2-i-1]); + } + OPUS_MOVE(tonal->inmem, tonal->inmem+ANALYSIS_BUF_SIZE-240, 240); + remaining = len - (ANALYSIS_BUF_SIZE-tonal->mem_fill); + tonal->hp_ener_accum = (float)downmix_and_resample(downmix, x, + &tonal->inmem[240], tonal->downmix_state, remaining, + offset+ANALYSIS_BUF_SIZE-tonal->mem_fill, c1, c2, C, tonal->Fs); + tonal->mem_fill = 240 + remaining; + if (is_silence) + { + /* On silence, copy the previous analysis. */ + int prev_pos = tonal->write_pos-2; + if (prev_pos < 0) + prev_pos += DETECT_SIZE; + OPUS_COPY(info, &tonal->info[prev_pos], 1); + RESTORE_STACK; + return; + } + opus_fft(kfft, in, out, tonal->arch); +#ifndef FIXED_POINT + /* If there's any NaN on the input, the entire output will be NaN, so we only need to check one value. */ + if (celt_isnan(out[0].r)) + { + info->valid = 0; + RESTORE_STACK; + return; + } +#endif + + for (i=1;iactivity = 0; + frame_noisiness = 0; + frame_stationarity = 0; + if (!tonal->count) + { + for (b=0;blowE[b] = 1e10; + tonal->highE[b] = -1e10; + } + } + relativeE = 0; + frame_loudness = 0; + /* The energy of the very first band is special because of DC. */ + { + float E = 0; + float X1r, X2r; + X1r = 2*(float)out[0].r; + X2r = 2*(float)out[0].i; + E = X1r*X1r + X2r*X2r; + for (i=1;i<4;i++) + { + float binE = out[i].r*(float)out[i].r + out[N-i].r*(float)out[N-i].r + + out[i].i*(float)out[i].i + out[N-i].i*(float)out[N-i].i; + E += binE; + } + E = SCALE_ENER(E); + band_log2[0] = .5f*1.442695f*(float)log(E+1e-10f); + } + for (b=0;bvalid = 0; + RESTORE_STACK; + return; + } +#endif + + tonal->E[tonal->E_count][b] = E; + frame_noisiness += nE/(1e-15f+E); + + frame_loudness += (float)sqrt(E+1e-10f); + logE[b] = (float)log(E+1e-10f); + band_log2[b+1] = .5f*1.442695f*(float)log(E+1e-10f); + tonal->logE[tonal->E_count][b] = logE[b]; + if (tonal->count==0) + tonal->highE[b] = tonal->lowE[b] = logE[b]; + if (tonal->highE[b] > tonal->lowE[b] + 7.5) + { + if (tonal->highE[b] - logE[b] > logE[b] - tonal->lowE[b]) + tonal->highE[b] -= .01f; + else + tonal->lowE[b] += .01f; + } + if (logE[b] > tonal->highE[b]) + { + tonal->highE[b] = logE[b]; + tonal->lowE[b] = MAX32(tonal->highE[b]-15, tonal->lowE[b]); + } else if (logE[b] < tonal->lowE[b]) + { + tonal->lowE[b] = logE[b]; + tonal->highE[b] = MIN32(tonal->lowE[b]+15, tonal->highE[b]); + } + relativeE += (logE[b]-tonal->lowE[b])/(1e-5f + (tonal->highE[b]-tonal->lowE[b])); + + L1=L2=0; + for (i=0;iE[i][b]); + L2 += tonal->E[i][b]; + } + + stationarity = MIN16(0.99f,L1/(float)sqrt(1e-15+NB_FRAMES*L2)); + stationarity *= stationarity; + stationarity *= stationarity; + frame_stationarity += stationarity; + /*band_tonality[b] = tE/(1e-15+E)*/; + band_tonality[b] = MAX16(tE/(1e-15f+E), stationarity*tonal->prev_band_tonality[b]); +#if 0 + if (b>=NB_TONAL_SKIP_BANDS) + { + frame_tonality += tweight[b]*band_tonality[b]; + tw_sum += tweight[b]; + } +#else + frame_tonality += band_tonality[b]; + if (b>=NB_TBANDS-NB_TONAL_SKIP_BANDS) + frame_tonality -= band_tonality[b-NB_TBANDS+NB_TONAL_SKIP_BANDS]; +#endif + max_frame_tonality = MAX16(max_frame_tonality, (1.f+.03f*(b-NB_TBANDS))*frame_tonality); + slope += band_tonality[b]*(b-8); + /*printf("%f %f ", band_tonality[b], stationarity);*/ + tonal->prev_band_tonality[b] = band_tonality[b]; + } + + leakage_from[0] = band_log2[0]; + leakage_to[0] = band_log2[0] - LEAKAGE_OFFSET; + for (b=1;b=0;b--) + { + float leak_slope = LEAKAGE_SLOPE*(tbands[b+1]-tbands[b])/4; + leakage_from[b] = MIN16(leakage_from[b+1]+leak_slope, leakage_from[b]); + leakage_to[b] = MAX16(leakage_to[b+1]-leak_slope, leakage_to[b]); + } + celt_assert(NB_TBANDS+1 <= LEAK_BANDS); + for (b=0;bleak_boost[b] = IMIN(255, (int)floor(.5 + 64.f*boost)); + } + for (;bleak_boost[b] = 0; + + for (i=0;ilogE[i][k] - tonal->logE[j][k]; + dist += tmp*tmp; + } + if (j!=i) + mindist = MIN32(mindist, dist); + } + spec_variability += mindist; + } + spec_variability = (float)sqrt(spec_variability/NB_FRAMES/NB_TBANDS); + bandwidth_mask = 0; + bandwidth = 0; + maxE = 0; + noise_floor = 5.7e-4f/(1<<(IMAX(0,lsb_depth-8))); + noise_floor *= noise_floor; + below_max_pitch=0; + above_max_pitch=0; + for (b=0;bmeanE[b] = MAX32((1-alphaE2)*tonal->meanE[b], E); + Em = MAX32(E, tonal->meanE[b]); + /* Consider the band "active" only if all these conditions are met: + 1) less than 90 dB below the peak band (maximal masking possible considering + both the ATH and the loudness-dependent slope of the spreading function) + 2) above the PCM quantization noise floor + We use b+1 because the first CELT band isn't included in tbands[] + */ + if (E*1e9f > maxE && (Em > 3*noise_floor*(band_end-band_start) || E > noise_floor*(band_end-band_start))) + bandwidth = b+1; + /* Check if the band is masked (see below). */ + is_masked[b] = E < (tonal->prev_bandwidth >= b+1 ? .01f : .05f)*bandwidth_mask; + /* Use a simple follower with 13 dB/Bark slope for spreading function. */ + bandwidth_mask = MAX32(.05f*bandwidth_mask, E); + } + /* Special case for the last two bands, for which we don't have spectrum but only + the energy above 12 kHz. The difficulty here is that the high-pass we use + leaks some LF energy, so we need to increase the threshold without accidentally cutting + off the band. */ + if (tonal->Fs == 48000) { + float noise_ratio; + float Em; + float E = hp_ener*(1.f/(60*60)); + noise_ratio = tonal->prev_bandwidth==20 ? 10.f : 30.f; + +#ifdef FIXED_POINT + /* silk_resampler_down2_hp() shifted right by an extra 8 bits. */ + E *= 256.f*(1.f/Q15ONE)*(1.f/Q15ONE); +#endif + above_max_pitch += E; + tonal->meanE[b] = MAX32((1-alphaE2)*tonal->meanE[b], E); + Em = MAX32(E, tonal->meanE[b]); + if (Em > 3*noise_ratio*noise_floor*160 || E > noise_ratio*noise_floor*160) + bandwidth = 20; + /* Check if the band is masked (see below). */ + is_masked[b] = E < (tonal->prev_bandwidth == 20 ? .01f : .05f)*bandwidth_mask; + } + if (above_max_pitch > below_max_pitch) + info->max_pitch_ratio = below_max_pitch/above_max_pitch; + else + info->max_pitch_ratio = 1; + /* In some cases, resampling aliasing can create a small amount of energy in the first band + being cut. So if the last band is masked, we don't include it. */ + if (bandwidth == 20 && is_masked[NB_TBANDS]) + bandwidth-=2; + else if (bandwidth > 0 && bandwidth <= NB_TBANDS && is_masked[bandwidth-1]) + bandwidth--; + if (tonal->count<=2) + bandwidth = 20; + frame_loudness = 20*(float)log10(frame_loudness); + tonal->Etracker = MAX32(tonal->Etracker-.003f, frame_loudness); + tonal->lowECount *= (1-alphaE); + if (frame_loudness < tonal->Etracker-30) + tonal->lowECount += alphaE; + + for (i=0;i<8;i++) + { + float sum=0; + for (b=0;b<16;b++) + sum += dct_table[i*16+b]*logE[b]; + BFCC[i] = sum; + } + for (i=0;i<8;i++) + { + float sum=0; + for (b=0;b<16;b++) + sum += dct_table[i*16+b]*.5f*(tonal->highE[b]+tonal->lowE[b]); + midE[i] = sum; + } + + frame_stationarity /= NB_TBANDS; + relativeE /= NB_TBANDS; + if (tonal->count<10) + relativeE = .5f; + frame_noisiness /= NB_TBANDS; +#if 1 + info->activity = frame_noisiness + (1-frame_noisiness)*relativeE; +#else + info->activity = .5*(1+frame_noisiness-frame_stationarity); +#endif + frame_tonality = (max_frame_tonality/(NB_TBANDS-NB_TONAL_SKIP_BANDS)); + frame_tonality = MAX16(frame_tonality, tonal->prev_tonality*.8f); + tonal->prev_tonality = frame_tonality; + + slope /= 8*8; + info->tonality_slope = slope; + + tonal->E_count = (tonal->E_count+1)%NB_FRAMES; + tonal->count = IMIN(tonal->count+1, ANALYSIS_COUNT_MAX); + info->tonality = frame_tonality; + + for (i=0;i<4;i++) + features[i] = -0.12299f*(BFCC[i]+tonal->mem[i+24]) + 0.49195f*(tonal->mem[i]+tonal->mem[i+16]) + 0.69693f*tonal->mem[i+8] - 1.4349f*tonal->cmean[i]; + + for (i=0;i<4;i++) + tonal->cmean[i] = (1-alpha)*tonal->cmean[i] + alpha*BFCC[i]; + + for (i=0;i<4;i++) + features[4+i] = 0.63246f*(BFCC[i]-tonal->mem[i+24]) + 0.31623f*(tonal->mem[i]-tonal->mem[i+16]); + for (i=0;i<3;i++) + features[8+i] = 0.53452f*(BFCC[i]+tonal->mem[i+24]) - 0.26726f*(tonal->mem[i]+tonal->mem[i+16]) -0.53452f*tonal->mem[i+8]; + + if (tonal->count > 5) + { + for (i=0;i<9;i++) + tonal->std[i] = (1-alpha)*tonal->std[i] + alpha*features[i]*features[i]; + } + for (i=0;i<4;i++) + features[i] = BFCC[i]-midE[i]; + + for (i=0;i<8;i++) + { + tonal->mem[i+24] = tonal->mem[i+16]; + tonal->mem[i+16] = tonal->mem[i+8]; + tonal->mem[i+8] = tonal->mem[i]; + tonal->mem[i] = BFCC[i]; + } + for (i=0;i<9;i++) + features[11+i] = (float)sqrt(tonal->std[i]) - std_feature_bias[i]; + features[18] = spec_variability - 0.78f; + features[20] = info->tonality - 0.154723f; + features[21] = info->activity - 0.724643f; + features[22] = frame_stationarity - 0.743717f; + features[23] = info->tonality_slope + 0.069216f; + features[24] = tonal->lowECount - 0.067930f; + + compute_dense(&layer0, layer_out, features); + compute_gru(&layer1, tonal->rnn_state, layer_out); + compute_dense(&layer2, frame_probs, tonal->rnn_state); + + /* Probability of speech or music vs noise */ + info->activity_probability = frame_probs[1]; + info->music_prob = frame_probs[0]; + + /*printf("%f %f %f\n", frame_probs[0], frame_probs[1], info->music_prob);*/ +#ifdef MLP_TRAINING + for (i=0;i<25;i++) + printf("%f ", features[i]); + printf("\n"); +#endif + + info->bandwidth = bandwidth; + tonal->prev_bandwidth = bandwidth; + /*printf("%d %d\n", info->bandwidth, info->opus_bandwidth);*/ + info->noisiness = frame_noisiness; + info->valid = 1; + RESTORE_STACK; +} + +void run_analysis(TonalityAnalysisState *analysis, const CELTMode *celt_mode, const void *analysis_pcm, + int analysis_frame_size, int frame_size, int c1, int c2, int C, opus_int32 Fs, + int lsb_depth, downmix_func downmix, AnalysisInfo *analysis_info) +{ + int offset; + int pcm_len; + + analysis_frame_size -= analysis_frame_size&1; + if (analysis_pcm != NULL) + { + /* Avoid overflow/wrap-around of the analysis buffer */ + analysis_frame_size = IMIN((DETECT_SIZE-5)*Fs/50, analysis_frame_size); + + pcm_len = analysis_frame_size - analysis->analysis_offset; + offset = analysis->analysis_offset; + while (pcm_len>0) { + tonality_analysis(analysis, celt_mode, analysis_pcm, IMIN(Fs/50, pcm_len), offset, c1, c2, C, lsb_depth, downmix); + offset += Fs/50; + pcm_len -= Fs/50; + } + analysis->analysis_offset = analysis_frame_size; + + analysis->analysis_offset -= frame_size; + } + + tonality_get_info(analysis, analysis_info, frame_size); +} + +#endif /* DISABLE_FLOAT_API */ diff --git a/components/opus/libopus/src/analysis.h b/components/opus/libopus/src/analysis.h new file mode 100644 index 0000000..0b66555 --- /dev/null +++ b/components/opus/libopus/src/analysis.h @@ -0,0 +1,103 @@ +/* Copyright (c) 2011 Xiph.Org Foundation + Written by Jean-Marc Valin */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR + CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifndef ANALYSIS_H +#define ANALYSIS_H + +#include "celt.h" +#include "opus_private.h" +#include "mlp.h" + +#define NB_FRAMES 8 +#define NB_TBANDS 18 +#define ANALYSIS_BUF_SIZE 720 /* 30 ms at 24 kHz */ + +/* At that point we can stop counting frames because it no longer matters. */ +#define ANALYSIS_COUNT_MAX 10000 + +#define DETECT_SIZE 100 + +/* Uncomment this to print the MLP features on stdout. */ +/*#define MLP_TRAINING*/ + +typedef struct { + int arch; + int application; + opus_int32 Fs; +#define TONALITY_ANALYSIS_RESET_START angle + float angle[240]; + float d_angle[240]; + float d2_angle[240]; + opus_val32 inmem[ANALYSIS_BUF_SIZE]; + int mem_fill; /* number of usable samples in the buffer */ + float prev_band_tonality[NB_TBANDS]; + float prev_tonality; + int prev_bandwidth; + float E[NB_FRAMES][NB_TBANDS]; + float logE[NB_FRAMES][NB_TBANDS]; + float lowE[NB_TBANDS]; + float highE[NB_TBANDS]; + float meanE[NB_TBANDS+1]; + float mem[32]; + float cmean[8]; + float std[9]; + float Etracker; + float lowECount; + int E_count; + int count; + int analysis_offset; + int write_pos; + int read_pos; + int read_subframe; + float hp_ener_accum; + int initialized; + float rnn_state[MAX_NEURONS]; + opus_val32 downmix_state[3]; + AnalysisInfo info[DETECT_SIZE]; +} TonalityAnalysisState; + +/** Initialize a TonalityAnalysisState struct. + * + * This performs some possibly slow initialization steps which should + * not be repeated every analysis step. No allocated memory is retained + * by the state struct, so no cleanup call is required. + */ +void tonality_analysis_init(TonalityAnalysisState *analysis, opus_int32 Fs); + +/** Reset a TonalityAnalysisState stuct. + * + * Call this when there's a discontinuity in the data. + */ +void tonality_analysis_reset(TonalityAnalysisState *analysis); + +void tonality_get_info(TonalityAnalysisState *tonal, AnalysisInfo *info_out, int len); + +void run_analysis(TonalityAnalysisState *analysis, const CELTMode *celt_mode, const void *analysis_pcm, + int analysis_frame_size, int frame_size, int c1, int c2, int C, opus_int32 Fs, + int lsb_depth, downmix_func downmix, AnalysisInfo *analysis_info); + +#endif diff --git a/components/opus/libopus/src/mapping_matrix.c b/components/opus/libopus/src/mapping_matrix.c new file mode 100644 index 0000000..31298af --- /dev/null +++ b/components/opus/libopus/src/mapping_matrix.c @@ -0,0 +1,378 @@ +/* Copyright (c) 2017 Google Inc. + Written by Andrew Allen */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "arch.h" +#include "float_cast.h" +#include "opus_private.h" +#include "opus_defines.h" +#include "mapping_matrix.h" + +#define MATRIX_INDEX(nb_rows, row, col) (nb_rows * col + row) + +opus_int32 mapping_matrix_get_size(int rows, int cols) +{ + opus_int32 size; + + /* Mapping Matrix must only support up to 255 channels in or out. + * Additionally, the total cell count must be <= 65004 octets in order + * for the matrix to be stored in an OGG header. + */ + if (rows > 255 || cols > 255) + return 0; + size = rows * (opus_int32)cols * sizeof(opus_int16); + if (size > 65004) + return 0; + + return align(sizeof(MappingMatrix)) + align(size); +} + +opus_int16 *mapping_matrix_get_data(const MappingMatrix *matrix) +{ + /* void* cast avoids clang -Wcast-align warning */ + return (opus_int16*)(void*)((char*)matrix + align(sizeof(MappingMatrix))); +} + +void mapping_matrix_init(MappingMatrix * const matrix, + int rows, int cols, int gain, const opus_int16 *data, opus_int32 data_size) +{ + int i; + opus_int16 *ptr; + +#if !defined(ENABLE_ASSERTIONS) + (void)data_size; +#endif + celt_assert(align(data_size) == align(rows * cols * sizeof(opus_int16))); + + matrix->rows = rows; + matrix->cols = cols; + matrix->gain = gain; + ptr = mapping_matrix_get_data(matrix); + for (i = 0; i < rows * cols; i++) + { + ptr[i] = data[i]; + } +} + +#ifndef DISABLE_FLOAT_API +void mapping_matrix_multiply_channel_in_float( + const MappingMatrix *matrix, + const float *input, + int input_rows, + opus_val16 *output, + int output_row, + int output_rows, + int frame_size) +{ + /* Matrix data is ordered col-wise. */ + opus_int16* matrix_data; + int i, col; + + celt_assert(input_rows <= matrix->cols && output_rows <= matrix->rows); + + matrix_data = mapping_matrix_get_data(matrix); + + for (i = 0; i < frame_size; i++) + { + float tmp = 0; + for (col = 0; col < input_rows; col++) + { + tmp += + matrix_data[MATRIX_INDEX(matrix->rows, output_row, col)] * + input[MATRIX_INDEX(input_rows, col, i)]; + } +#if defined(FIXED_POINT) + output[output_rows * i] = FLOAT2INT16((1/32768.f)*tmp); +#else + output[output_rows * i] = (1/32768.f)*tmp; +#endif + } +} + +void mapping_matrix_multiply_channel_out_float( + const MappingMatrix *matrix, + const opus_val16 *input, + int input_row, + int input_rows, + float *output, + int output_rows, + int frame_size +) +{ + /* Matrix data is ordered col-wise. */ + opus_int16* matrix_data; + int i, row; + float input_sample; + + celt_assert(input_rows <= matrix->cols && output_rows <= matrix->rows); + + matrix_data = mapping_matrix_get_data(matrix); + + for (i = 0; i < frame_size; i++) + { +#if defined(FIXED_POINT) + input_sample = (1/32768.f)*input[input_rows * i]; +#else + input_sample = input[input_rows * i]; +#endif + for (row = 0; row < output_rows; row++) + { + float tmp = + (1/32768.f)*matrix_data[MATRIX_INDEX(matrix->rows, row, input_row)] * + input_sample; + output[MATRIX_INDEX(output_rows, row, i)] += tmp; + } + } +} +#endif /* DISABLE_FLOAT_API */ + +void mapping_matrix_multiply_channel_in_short( + const MappingMatrix *matrix, + const opus_int16 *input, + int input_rows, + opus_val16 *output, + int output_row, + int output_rows, + int frame_size) +{ + /* Matrix data is ordered col-wise. */ + opus_int16* matrix_data; + int i, col; + + celt_assert(input_rows <= matrix->cols && output_rows <= matrix->rows); + + matrix_data = mapping_matrix_get_data(matrix); + + for (i = 0; i < frame_size; i++) + { + opus_val32 tmp = 0; + for (col = 0; col < input_rows; col++) + { +#if defined(FIXED_POINT) + tmp += + ((opus_int32)matrix_data[MATRIX_INDEX(matrix->rows, output_row, col)] * + (opus_int32)input[MATRIX_INDEX(input_rows, col, i)]) >> 8; +#else + tmp += + matrix_data[MATRIX_INDEX(matrix->rows, output_row, col)] * + input[MATRIX_INDEX(input_rows, col, i)]; +#endif + } +#if defined(FIXED_POINT) + output[output_rows * i] = (opus_int16)((tmp + 64) >> 7); +#else + output[output_rows * i] = (1/(32768.f*32768.f))*tmp; +#endif + } +} + +void mapping_matrix_multiply_channel_out_short( + const MappingMatrix *matrix, + const opus_val16 *input, + int input_row, + int input_rows, + opus_int16 *output, + int output_rows, + int frame_size) +{ + /* Matrix data is ordered col-wise. */ + opus_int16* matrix_data; + int i, row; + opus_int32 input_sample; + + celt_assert(input_rows <= matrix->cols && output_rows <= matrix->rows); + + matrix_data = mapping_matrix_get_data(matrix); + + for (i = 0; i < frame_size; i++) + { +#if defined(FIXED_POINT) + input_sample = (opus_int32)input[input_rows * i]; +#else + input_sample = (opus_int32)FLOAT2INT16(input[input_rows * i]); +#endif + for (row = 0; row < output_rows; row++) + { + opus_int32 tmp = + (opus_int32)matrix_data[MATRIX_INDEX(matrix->rows, row, input_row)] * + input_sample; + output[MATRIX_INDEX(output_rows, row, i)] += (tmp + 16384) >> 15; + } + } +} + +const MappingMatrix mapping_matrix_foa_mixing = { 6, 6, 0 }; +const opus_int16 mapping_matrix_foa_mixing_data[36] = { + 16384, 0, -16384, 23170, 0, 0, 16384, 23170, + 16384, 0, 0, 0, 16384, 0, -16384, -23170, + 0, 0, 16384, -23170, 16384, 0, 0, 0, + 0, 0, 0, 0, 32767, 0, 0, 0, + 0, 0, 0, 32767 +}; + +const MappingMatrix mapping_matrix_soa_mixing = { 11, 11, 0 }; +const opus_int16 mapping_matrix_soa_mixing_data[121] = { + 10923, 7723, 13377, -13377, 11585, 9459, 7723, -16384, + -6689, 0, 0, 10923, 7723, 13377, 13377, -11585, + 9459, 7723, 16384, -6689, 0, 0, 10923, -15447, + 13377, 0, 0, -18919, 7723, 0, 13377, 0, + 0, 10923, 7723, -13377, -13377, 11585, -9459, 7723, + 16384, -6689, 0, 0, 10923, -7723, 0, 13377, + -16384, 0, -15447, 0, 9459, 0, 0, 10923, + -7723, 0, -13377, 16384, 0, -15447, 0, 9459, + 0, 0, 10923, 15447, 0, 0, 0, 0, + -15447, 0, -18919, 0, 0, 10923, 7723, -13377, + 13377, -11585, -9459, 7723, -16384, -6689, 0, 0, + 10923, -15447, -13377, 0, 0, 18919, 7723, 0, + 13377, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 32767, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 32767 +}; + +const MappingMatrix mapping_matrix_toa_mixing = { 18, 18, 0 }; +const opus_int16 mapping_matrix_toa_mixing_data[324] = { + 8208, 0, -881, 14369, 0, 0, -8192, -4163, + 13218, 0, 0, 0, 11095, -8836, -6218, 14833, + 0, 0, 8208, -10161, 881, 10161, -13218, -2944, + -8192, 2944, 0, -10488, -6218, 6248, -11095, -6248, + 0, -10488, 0, 0, 8208, 10161, 881, -10161, + -13218, 2944, -8192, -2944, 0, 10488, -6218, -6248, + -11095, 6248, 0, 10488, 0, 0, 8176, 5566, + -11552, 5566, 9681, -11205, 8192, -11205, 0, 4920, + -15158, 9756, -3334, 9756, 0, -4920, 0, 0, + 8176, 7871, 11552, 0, 0, 15846, 8192, 0, + -9681, -6958, 0, 13797, 3334, 0, -15158, 0, + 0, 0, 8176, 0, 11552, 7871, 0, 0, + 8192, 15846, 9681, 0, 0, 0, 3334, 13797, + 15158, 6958, 0, 0, 8176, 5566, -11552, -5566, + -9681, -11205, 8192, 11205, 0, 4920, 15158, 9756, + -3334, -9756, 0, 4920, 0, 0, 8208, 14369, + -881, 0, 0, -4163, -8192, 0, -13218, -14833, + 0, -8836, 11095, 0, 6218, 0, 0, 0, + 8208, 10161, 881, 10161, 13218, 2944, -8192, 2944, + 0, 10488, 6218, -6248, -11095, -6248, 0, -10488, + 0, 0, 8208, -14369, -881, 0, 0, 4163, + -8192, 0, -13218, 14833, 0, 8836, 11095, 0, + 6218, 0, 0, 0, 8208, 0, -881, -14369, + 0, 0, -8192, 4163, 13218, 0, 0, 0, + 11095, 8836, -6218, -14833, 0, 0, 8176, -5566, + -11552, 5566, -9681, 11205, 8192, -11205, 0, -4920, + 15158, -9756, -3334, 9756, 0, -4920, 0, 0, + 8176, 0, 11552, -7871, 0, 0, 8192, -15846, + 9681, 0, 0, 0, 3334, -13797, 15158, -6958, + 0, 0, 8176, -7871, 11552, 0, 0, -15846, + 8192, 0, -9681, 6958, 0, -13797, 3334, 0, + -15158, 0, 0, 0, 8176, -5566, -11552, -5566, + 9681, 11205, 8192, 11205, 0, -4920, -15158, -9756, + -3334, -9756, 0, 4920, 0, 0, 8208, -10161, + 881, -10161, 13218, -2944, -8192, -2944, 0, -10488, + 6218, 6248, -11095, 6248, 0, 10488, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 32767, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 32767 +}; + +const MappingMatrix mapping_matrix_foa_demixing = { 6, 6, 0 }; +const opus_int16 mapping_matrix_foa_demixing_data[36] = { + 16384, 16384, 16384, 16384, 0, 0, 0, 23170, + 0, -23170, 0, 0, -16384, 16384, -16384, 16384, + 0, 0, 23170, 0, -23170, 0, 0, 0, + 0, 0, 0, 0, 32767, 0, 0, 0, + 0, 0, 0, 32767 +}; + +const MappingMatrix mapping_matrix_soa_demixing = { 11, 11, 3050 }; +const opus_int16 mapping_matrix_soa_demixing_data[121] = { + 2771, 2771, 2771, 2771, 2771, 2771, 2771, 2771, + 2771, 0, 0, 10033, 10033, -20066, 10033, 14189, + 14189, -28378, 10033, -20066, 0, 0, 3393, 3393, + 3393, -3393, 0, 0, 0, -3393, -3393, 0, + 0, -17378, 17378, 0, -17378, -24576, 24576, 0, + 17378, 0, 0, 0, -14189, 14189, 0, -14189, + -28378, 28378, 0, 14189, 0, 0, 0, 2399, + 2399, -4799, -2399, 0, 0, 0, -2399, 4799, + 0, 0, 1959, 1959, 1959, 1959, -3918, -3918, + -3918, 1959, 1959, 0, 0, -4156, 4156, 0, + 4156, 0, 0, 0, -4156, 0, 0, 0, + 8192, 8192, -16384, 8192, 16384, 16384, -32768, 8192, + -16384, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 8312, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 8312 +}; + +const MappingMatrix mapping_matrix_toa_demixing = { 18, 18, 0 }; +const opus_int16 mapping_matrix_toa_demixing_data[324] = { + 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, + 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, + 0, 0, 0, -9779, 9779, 6263, 8857, 0, + 6263, 13829, 9779, -13829, 0, -6263, 0, -8857, + -6263, -9779, 0, 0, -3413, 3413, 3413, -11359, + 11359, 11359, -11359, -3413, 3413, -3413, -3413, -11359, + 11359, 11359, -11359, 3413, 0, 0, 13829, 9779, + -9779, 6263, 0, 8857, -6263, 0, 9779, 0, + -13829, 6263, -8857, 0, -6263, -9779, 0, 0, + 0, -15617, -15617, 6406, 0, 0, -6406, 0, + 15617, 0, 0, -6406, 0, 0, 6406, 15617, + 0, 0, 0, -5003, 5003, -10664, 15081, 0, + -10664, -7075, 5003, 7075, 0, 10664, 0, -15081, + 10664, -5003, 0, 0, -8176, -8176, -8176, 8208, + 8208, 8208, 8208, -8176, -8176, -8176, -8176, 8208, + 8208, 8208, 8208, -8176, 0, 0, -7075, 5003, + -5003, -10664, 0, 15081, 10664, 0, 5003, 0, + 7075, -10664, -15081, 0, 10664, -5003, 0, 0, + 15617, 0, 0, 0, -6406, 6406, 0, -15617, + 0, -15617, 15617, 0, 6406, -6406, 0, 0, + 0, 0, 0, -11393, 11393, 2993, -4233, 0, + 2993, -16112, 11393, 16112, 0, -2993, 0, 4233, + -2993, -11393, 0, 0, 0, -9974, -9974, -13617, + 0, 0, 13617, 0, 9974, 0, 0, 13617, + 0, 0, -13617, 9974, 0, 0, 0, 5579, + -5579, 10185, 14403, 0, 10185, -7890, -5579, 7890, + 0, -10185, 0, -14403, -10185, 5579, 0, 0, + 11826, -11826, -11826, -901, 901, 901, -901, 11826, + -11826, 11826, 11826, -901, 901, 901, -901, -11826, + 0, 0, -7890, -5579, 5579, 10185, 0, 14403, + -10185, 0, -5579, 0, 7890, 10185, -14403, 0, + -10185, 5579, 0, 0, -9974, 0, 0, 0, + -13617, 13617, 0, 9974, 0, 9974, -9974, 0, + 13617, -13617, 0, 0, 0, 0, 16112, -11393, + 11393, -2993, 0, 4233, 2993, 0, -11393, 0, + -16112, -2993, -4233, 0, 2993, 11393, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 32767, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 32767 +}; + diff --git a/components/opus/libopus/src/mapping_matrix.h b/components/opus/libopus/src/mapping_matrix.h new file mode 100644 index 0000000..98bc82d --- /dev/null +++ b/components/opus/libopus/src/mapping_matrix.h @@ -0,0 +1,133 @@ +/* Copyright (c) 2017 Google Inc. + Written by Andrew Allen */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/** + * @file mapping_matrix.h + * @brief Opus reference implementation mapping matrix API + */ + +#ifndef MAPPING_MATRIX_H +#define MAPPING_MATRIX_H + +#include "opus_types.h" +#include "opus_projection.h" + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct MappingMatrix +{ + int rows; /* number of channels outputted from matrix. */ + int cols; /* number of channels inputted to matrix. */ + int gain; /* in dB. S7.8-format. */ + /* Matrix cell data goes here using col-wise ordering. */ +} MappingMatrix; + +opus_int32 mapping_matrix_get_size(int rows, int cols); + +opus_int16 *mapping_matrix_get_data(const MappingMatrix *matrix); + +void mapping_matrix_init( + MappingMatrix * const matrix, + int rows, + int cols, + int gain, + const opus_int16 *data, + opus_int32 data_size +); + +#ifndef DISABLE_FLOAT_API +void mapping_matrix_multiply_channel_in_float( + const MappingMatrix *matrix, + const float *input, + int input_rows, + opus_val16 *output, + int output_row, + int output_rows, + int frame_size +); + +void mapping_matrix_multiply_channel_out_float( + const MappingMatrix *matrix, + const opus_val16 *input, + int input_row, + int input_rows, + float *output, + int output_rows, + int frame_size +); +#endif /* DISABLE_FLOAT_API */ + +void mapping_matrix_multiply_channel_in_short( + const MappingMatrix *matrix, + const opus_int16 *input, + int input_rows, + opus_val16 *output, + int output_row, + int output_rows, + int frame_size +); + +void mapping_matrix_multiply_channel_out_short( + const MappingMatrix *matrix, + const opus_val16 *input, + int input_row, + int input_rows, + opus_int16 *output, + int output_rows, + int frame_size +); + +/* Pre-computed mixing and demixing matrices for 1st to 3rd-order ambisonics. + * foa: first-order ambisonics + * soa: second-order ambisonics + * toa: third-order ambisonics + */ +extern const MappingMatrix mapping_matrix_foa_mixing; +extern const opus_int16 mapping_matrix_foa_mixing_data[36]; + +extern const MappingMatrix mapping_matrix_soa_mixing; +extern const opus_int16 mapping_matrix_soa_mixing_data[121]; + +extern const MappingMatrix mapping_matrix_toa_mixing; +extern const opus_int16 mapping_matrix_toa_mixing_data[324]; + +extern const MappingMatrix mapping_matrix_foa_demixing; +extern const opus_int16 mapping_matrix_foa_demixing_data[36]; + +extern const MappingMatrix mapping_matrix_soa_demixing; +extern const opus_int16 mapping_matrix_soa_demixing_data[121]; + +extern const MappingMatrix mapping_matrix_toa_demixing; +extern const opus_int16 mapping_matrix_toa_demixing_data[324]; + +#ifdef __cplusplus +} +#endif + +#endif /* MAPPING_MATRIX_H */ diff --git a/components/opus/libopus/src/mlp.c b/components/opus/libopus/src/mlp.c new file mode 100644 index 0000000..964c6a9 --- /dev/null +++ b/components/opus/libopus/src/mlp.c @@ -0,0 +1,144 @@ +/* Copyright (c) 2008-2011 Octasic Inc. + 2012-2017 Jean-Marc Valin */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR + CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include "opus_types.h" +#include "opus_defines.h" +#include "arch.h" +#include "tansig_table.h" +#include "mlp.h" + +static OPUS_INLINE float tansig_approx(float x) +{ + int i; + float y, dy; + float sign=1; + /* Tests are reversed to catch NaNs */ + if (!(x<8)) + return 1; + if (!(x>-8)) + return -1; +#ifndef FIXED_POINT + /* Another check in case of -ffast-math */ + if (celt_isnan(x)) + return 0; +#endif + if (x<0) + { + x=-x; + sign=-1; + } + i = (int)floor(.5f+25*x); + x -= .04f*i; + y = tansig_table[i]; + dy = 1-y*y; + y = y + x*dy*(1 - y*x); + return sign*y; +} + +static OPUS_INLINE float sigmoid_approx(float x) +{ + return .5f + .5f*tansig_approx(.5f*x); +} + +static void gemm_accum(float *out, const opus_int8 *weights, int rows, int cols, int col_stride, const float *x) +{ + int i, j; + for (i=0;inb_inputs; + N = layer->nb_neurons; + stride = N; + for (i=0;ibias[i]; + gemm_accum(output, layer->input_weights, N, M, stride, input); + for (i=0;isigmoid) { + for (i=0;inb_inputs; + N = gru->nb_neurons; + stride = 3*N; + /* Compute update gate. */ + for (i=0;ibias[i]; + gemm_accum(z, gru->input_weights, N, M, stride, input); + gemm_accum(z, gru->recurrent_weights, N, N, stride, state); + for (i=0;ibias[N + i]; + gemm_accum(r, &gru->input_weights[N], N, M, stride, input); + gemm_accum(r, &gru->recurrent_weights[N], N, N, stride, state); + for (i=0;ibias[2*N + i]; + for (i=0;iinput_weights[2*N], N, M, stride, input); + gemm_accum(h, &gru->recurrent_weights[2*N], N, N, stride, tmp); + for (i=0;i=0) + break; + x[i*C] = x[i*C]+a*x[i*C]*x[i*C]; + } + + curr=0; + x0 = x[0]; + while(1) + { + int start, end; + float maxval; + int special=0; + int peak_pos; + for (i=curr;i1 || x[i*C]<-1) + break; + } + if (i==N) + { + a=0; + break; + } + peak_pos = i; + start=end=i; + maxval=ABS16(x[i*C]); + /* Look for first zero crossing before clipping */ + while (start>0 && x[i*C]*x[(start-1)*C]>=0) + start--; + /* Look for first zero crossing after clipping */ + while (end=0) + { + /* Look for other peaks until the next zero-crossing. */ + if (ABS16(x[end*C])>maxval) + { + maxval = ABS16(x[end*C]); + peak_pos = end; + } + end++; + } + /* Detect the special case where we clip before the first zero crossing */ + special = (start==0 && x[i*C]*x[0]>=0); + + /* Compute a such that maxval + a*maxval^2 = 1 */ + a=(maxval-1)/(maxval*maxval); + /* Slightly boost "a" by 2^-22. This is just enough to ensure -ffast-math + does not cause output values larger than +/-1, but small enough not + to matter even for 24-bit output. */ + a += a*2.4e-7f; + if (x[i*C]>0) + a = -a; + /* Apply soft clipping */ + for (i=start;i=2) + { + /* Add a linear ramp from the first sample to the signal peak. + This avoids a discontinuity at the beginning of the frame. */ + float delta; + float offset = x0-x[0]; + delta = offset / peak_pos; + for (i=curr;i>2; + return 2; + } +} + +static int parse_size(const unsigned char *data, opus_int32 len, opus_int16 *size) +{ + if (len<1) + { + *size = -1; + return -1; + } else if (data[0]<252) + { + *size = data[0]; + return 1; + } else if (len<2) + { + *size = -1; + return -1; + } else { + *size = 4*data[1] + data[0]; + return 2; + } +} + +int opus_packet_get_samples_per_frame(const unsigned char *data, + opus_int32 Fs) +{ + int audiosize; + if (data[0]&0x80) + { + audiosize = ((data[0]>>3)&0x3); + audiosize = (Fs<>3)&0x3); + if (audiosize == 3) + audiosize = Fs*60/1000; + else + audiosize = (Fs< len) + return OPUS_INVALID_PACKET; + data += bytes; + last_size = len-size[0]; + break; + /* Multiple CBR/VBR frames (from 0 to 120 ms) */ + default: /*case 3:*/ + if (len<1) + return OPUS_INVALID_PACKET; + /* Number of frames encoded in bits 0 to 5 */ + ch = *data++; + count = ch&0x3F; + if (count <= 0 || framesize*(opus_int32)count > 5760) + return OPUS_INVALID_PACKET; + len--; + /* Padding flag is bit 6 */ + if (ch&0x40) + { + int p; + do { + int tmp; + if (len<=0) + return OPUS_INVALID_PACKET; + p = *data++; + len--; + tmp = p==255 ? 254: p; + len -= tmp; + pad += tmp; + } while (p==255); + } + if (len<0) + return OPUS_INVALID_PACKET; + /* VBR flag is bit 7 */ + cbr = !(ch&0x80); + if (!cbr) + { + /* VBR case */ + last_size = len; + for (i=0;i len) + return OPUS_INVALID_PACKET; + data += bytes; + last_size -= bytes+size[i]; + } + if (last_size<0) + return OPUS_INVALID_PACKET; + } else if (!self_delimited) + { + /* CBR case */ + last_size = len/count; + if (last_size*count!=len) + return OPUS_INVALID_PACKET; + for (i=0;i len) + return OPUS_INVALID_PACKET; + data += bytes; + /* For CBR packets, apply the size to all the frames. */ + if (cbr) + { + if (size[count-1]*count > len) + return OPUS_INVALID_PACKET; + for (i=0;i last_size) + return OPUS_INVALID_PACKET; + } else + { + /* Because it's not encoded explicitly, it's possible the size of the + last packet (or all the packets, for the CBR case) is larger than + 1275. Reject them here.*/ + if (last_size > 1275) + return OPUS_INVALID_PACKET; + size[count-1] = (opus_int16)last_size; + } + + if (payload_offset) + *payload_offset = (int)(data-data0); + + for (i=0;i +#include +#include +#include + +#define OPUS_PI (3.14159265F) + +#define OPUS_COSF(_x) ((float)cos(_x)) +#define OPUS_SINF(_x) ((float)sin(_x)) + +static void *check_alloc(void *_ptr){ + if(_ptr==NULL){ + fprintf(stderr,"Out of memory.\n"); + exit(EXIT_FAILURE); + } + return _ptr; +} + +static void *opus_malloc(size_t _size){ + return check_alloc(malloc(_size)); +} + +static void *opus_realloc(void *_ptr,size_t _size){ + return check_alloc(realloc(_ptr,_size)); +} + +static size_t read_pcm16(float **_samples,FILE *_fin,int _nchannels){ + unsigned char buf[1024]; + float *samples; + size_t nsamples; + size_t csamples; + size_t xi; + size_t nread; + samples=NULL; + nsamples=csamples=0; + for(;;){ + nread=fread(buf,2*_nchannels,1024/(2*_nchannels),_fin); + if(nread<=0)break; + if(nsamples+nread>csamples){ + do csamples=csamples<<1|1; + while(nsamples+nread>csamples); + samples=(float *)opus_realloc(samples, + _nchannels*csamples*sizeof(*samples)); + } + for(xi=0;xi=_window_sz)ti-=_window_sz; + } + re*=_downsample; + im*=_downsample; + _ps[(xi*ps_sz+xj)*_nchannels+ci]=re*re+im*im+100000; + p[ci]+=_ps[(xi*ps_sz+xj)*_nchannels+ci]; + } + } + if(_out){ + _out[(xi*_nbands+bi)*_nchannels]=p[0]/(_bands[bi+1]-_bands[bi]); + if(_nchannels==2){ + _out[(xi*_nbands+bi)*_nchannels+1]=p[1]/(_bands[bi+1]-_bands[bi]); + } + } + } + } + free(window); +} + +#define NBANDS (21) +#define NFREQS (240) + +/*Bands on which we compute the pseudo-NMR (Bark-derived + CELT bands).*/ +static const int BANDS[NBANDS+1]={ + 0,2,4,6,8,10,12,14,16,20,24,28,32,40,48,56,68,80,96,120,156,200 +}; + +#define TEST_WIN_SIZE (480) +#define TEST_WIN_STEP (120) + +int main(int _argc,const char **_argv){ + FILE *fin1; + FILE *fin2; + float *x; + float *y; + float *xb; + float *X; + float *Y; + double err; + float Q; + size_t xlength; + size_t ylength; + size_t nframes; + size_t xi; + int ci; + int xj; + int bi; + int nchannels; + unsigned rate; + int downsample; + int ybands; + int yfreqs; + int max_compare; + if(_argc<3||_argc>6){ + fprintf(stderr,"Usage: %s [-s] [-r rate2] \n", + _argv[0]); + return EXIT_FAILURE; + } + nchannels=1; + if(strcmp(_argv[1],"-s")==0){ + nchannels=2; + _argv++; + } + rate=48000; + ybands=NBANDS; + yfreqs=NFREQS; + downsample=1; + if(strcmp(_argv[1],"-r")==0){ + rate=atoi(_argv[2]); + if(rate!=8000&&rate!=12000&&rate!=16000&&rate!=24000&&rate!=48000){ + fprintf(stderr, + "Sampling rate must be 8000, 12000, 16000, 24000, or 48000\n"); + return EXIT_FAILURE; + } + downsample=48000/rate; + switch(rate){ + case 8000:ybands=13;break; + case 12000:ybands=15;break; + case 16000:ybands=17;break; + case 24000:ybands=19;break; + } + yfreqs=NFREQS/downsample; + _argv+=2; + } + fin1=fopen(_argv[1],"rb"); + if(fin1==NULL){ + fprintf(stderr,"Error opening '%s'.\n",_argv[1]); + return EXIT_FAILURE; + } + fin2=fopen(_argv[2],"rb"); + if(fin2==NULL){ + fprintf(stderr,"Error opening '%s'.\n",_argv[2]); + fclose(fin1); + return EXIT_FAILURE; + } + /*Read in the data and allocate scratch space.*/ + xlength=read_pcm16(&x,fin1,2); + if(nchannels==1){ + for(xi=0;xi0;){ + for(ci=0;ci0){ + /*Temporal masking: -3 dB/2.5ms slope.*/ + for(bi=0;bi=79&&xj<=81)im*=0.1F; + if(xj==80)im*=0.1F; + Eb+=im; + } + } + Eb /= (BANDS[bi+1]-BANDS[bi])*nchannels; + Ef += Eb*Eb; + } + /*Using a fixed normalization value means we're willing to accept slightly + lower quality for lower sampling rates.*/ + Ef/=NBANDS; + Ef*=Ef; + err+=Ef*Ef; + } + free(xb); + free(X); + free(Y); + err=pow(err/nframes,1.0/16); + Q=100*(1-0.5*log(1+err)/log(1.13)); + if(Q<0){ + fprintf(stderr,"Test vector FAILS\n"); + fprintf(stderr,"Internal weighted error is %f\n",err); + return EXIT_FAILURE; + } + else{ + fprintf(stderr,"Test vector PASSES\n"); + fprintf(stderr, + "Opus quality metric: %.1f %% (internal weighted error is %f)\n",Q,err); + return EXIT_SUCCESS; + } +} diff --git a/components/opus/libopus/src/opus_decoder.c b/components/opus/libopus/src/opus_decoder.c new file mode 100644 index 0000000..9113638 --- /dev/null +++ b/components/opus/libopus/src/opus_decoder.c @@ -0,0 +1,1032 @@ +/* Copyright (c) 2010 Xiph.Org Foundation, Skype Limited + Written by Jean-Marc Valin and Koen Vos */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + +#ifndef OPUS_BUILD +# error "OPUS_BUILD _MUST_ be defined to build Opus. This probably means you need other defines as well, as in a config.h. See the included build files for details." +#endif + +#if defined(__GNUC__) && (__GNUC__ >= 2) && !defined(__OPTIMIZE__) && !defined(OPUS_WILL_BE_SLOW) +# pragma message "You appear to be compiling without optimization, if so opus will be very slow." +#endif + +#include +#include "celt.h" +#include "opus.h" +#include "entdec.h" +#include "modes.h" +#include "API.h" +#include "stack_alloc.h" +#include "float_cast.h" +#include "opus_private.h" +#include "os_support.h" +#include "structs.h" +#include "define.h" +#include "mathops.h" +#include "cpu_support.h" + +struct OpusDecoder { + int celt_dec_offset; + int silk_dec_offset; + int channels; + opus_int32 Fs; /** Sampling rate (at the API level) */ + silk_DecControlStruct DecControl; + int decode_gain; + int arch; + + /* Everything beyond this point gets cleared on a reset */ +#define OPUS_DECODER_RESET_START stream_channels + int stream_channels; + + int bandwidth; + int mode; + int prev_mode; + int frame_size; + int prev_redundancy; + int last_packet_duration; +#ifndef FIXED_POINT + opus_val16 softclip_mem[2]; +#endif + + opus_uint32 rangeFinal; +}; + +#if defined(ENABLE_HARDENING) || defined(ENABLE_ASSERTIONS) +static void validate_opus_decoder(OpusDecoder *st) +{ + celt_assert(st->channels == 1 || st->channels == 2); + celt_assert(st->Fs == 48000 || st->Fs == 24000 || st->Fs == 16000 || st->Fs == 12000 || st->Fs == 8000); + celt_assert(st->DecControl.API_sampleRate == st->Fs); + celt_assert(st->DecControl.internalSampleRate == 0 || st->DecControl.internalSampleRate == 16000 || st->DecControl.internalSampleRate == 12000 || st->DecControl.internalSampleRate == 8000); + celt_assert(st->DecControl.nChannelsAPI == st->channels); + celt_assert(st->DecControl.nChannelsInternal == 0 || st->DecControl.nChannelsInternal == 1 || st->DecControl.nChannelsInternal == 2); + celt_assert(st->DecControl.payloadSize_ms == 0 || st->DecControl.payloadSize_ms == 10 || st->DecControl.payloadSize_ms == 20 || st->DecControl.payloadSize_ms == 40 || st->DecControl.payloadSize_ms == 60); +#ifdef OPUS_ARCHMASK + celt_assert(st->arch >= 0); + celt_assert(st->arch <= OPUS_ARCHMASK); +#endif + celt_assert(st->stream_channels == 1 || st->stream_channels == 2); +} +#define VALIDATE_OPUS_DECODER(st) validate_opus_decoder(st) +#else +#define VALIDATE_OPUS_DECODER(st) +#endif + +int opus_decoder_get_size(int channels) +{ + int silkDecSizeBytes, celtDecSizeBytes; + int ret; + if (channels<1 || channels > 2) + return 0; + ret = silk_Get_Decoder_Size( &silkDecSizeBytes ); + if(ret) + return 0; + silkDecSizeBytes = align(silkDecSizeBytes); + celtDecSizeBytes = celt_decoder_get_size(channels); + return align(sizeof(OpusDecoder))+silkDecSizeBytes+celtDecSizeBytes; +} + +int opus_decoder_init(OpusDecoder *st, opus_int32 Fs, int channels) +{ + void *silk_dec; + CELTDecoder *celt_dec; + int ret, silkDecSizeBytes; + + if ((Fs!=48000&&Fs!=24000&&Fs!=16000&&Fs!=12000&&Fs!=8000) + || (channels!=1&&channels!=2)) + return OPUS_BAD_ARG; + + OPUS_CLEAR((char*)st, opus_decoder_get_size(channels)); + /* Initialize SILK decoder */ + ret = silk_Get_Decoder_Size(&silkDecSizeBytes); + if (ret) + return OPUS_INTERNAL_ERROR; + + silkDecSizeBytes = align(silkDecSizeBytes); + st->silk_dec_offset = align(sizeof(OpusDecoder)); + st->celt_dec_offset = st->silk_dec_offset+silkDecSizeBytes; + silk_dec = (char*)st+st->silk_dec_offset; + celt_dec = (CELTDecoder*)((char*)st+st->celt_dec_offset); + st->stream_channels = st->channels = channels; + + st->Fs = Fs; + st->DecControl.API_sampleRate = st->Fs; + st->DecControl.nChannelsAPI = st->channels; + + /* Reset decoder */ + ret = silk_InitDecoder( silk_dec ); + if(ret)return OPUS_INTERNAL_ERROR; + + /* Initialize CELT decoder */ + ret = celt_decoder_init(celt_dec, Fs, channels); + if(ret!=OPUS_OK)return OPUS_INTERNAL_ERROR; + + celt_decoder_ctl(celt_dec, CELT_SET_SIGNALLING(0)); + + st->prev_mode = 0; + st->frame_size = Fs/400; + st->arch = opus_select_arch(); + return OPUS_OK; +} + +OpusDecoder *opus_decoder_create(opus_int32 Fs, int channels, int *error) +{ + int ret; + OpusDecoder *st; + if ((Fs!=48000&&Fs!=24000&&Fs!=16000&&Fs!=12000&&Fs!=8000) + || (channels!=1&&channels!=2)) + { + if (error) + *error = OPUS_BAD_ARG; + return NULL; + } + st = (OpusDecoder *)opus_alloc(opus_decoder_get_size(channels)); + if (st == NULL) + { + if (error) + *error = OPUS_ALLOC_FAIL; + return NULL; + } + ret = opus_decoder_init(st, Fs, channels); + if (error) + *error = ret; + if (ret != OPUS_OK) + { + opus_free(st); + st = NULL; + } + return st; +} + +static void smooth_fade(const opus_val16 *in1, const opus_val16 *in2, + opus_val16 *out, int overlap, int channels, + const opus_val16 *window, opus_int32 Fs) +{ + int i, c; + int inc = 48000/Fs; + for (c=0;csilk_dec_offset; + celt_dec = (CELTDecoder*)((char*)st+st->celt_dec_offset); + F20 = st->Fs/50; + F10 = F20>>1; + F5 = F10>>1; + F2_5 = F5>>1; + if (frame_size < F2_5) + { + RESTORE_STACK; + return OPUS_BUFFER_TOO_SMALL; + } + /* Limit frame_size to avoid excessive stack allocations. */ + frame_size = IMIN(frame_size, st->Fs/25*3); + /* Payloads of 1 (2 including ToC) or 0 trigger the PLC/DTX */ + if (len<=1) + { + data = NULL; + /* In that case, don't conceal more than what the ToC says */ + frame_size = IMIN(frame_size, st->frame_size); + } + if (data != NULL) + { + audiosize = st->frame_size; + mode = st->mode; + bandwidth = st->bandwidth; + ec_dec_init(&dec,(unsigned char*)data,len); + } else { + audiosize = frame_size; + mode = st->prev_mode; + bandwidth = 0; + + if (mode == 0) + { + /* If we haven't got any packet yet, all we can do is return zeros */ + for (i=0;ichannels;i++) + pcm[i] = 0; + RESTORE_STACK; + return audiosize; + } + + /* Avoids trying to run the PLC on sizes other than 2.5 (CELT), 5 (CELT), + 10, or 20 (e.g. 12.5 or 30 ms). */ + if (audiosize > F20) + { + do { + int ret = opus_decode_frame(st, NULL, 0, pcm, IMIN(audiosize, F20), 0); + if (ret<0) + { + RESTORE_STACK; + return ret; + } + pcm += ret*st->channels; + audiosize -= ret; + } while (audiosize > 0); + RESTORE_STACK; + return frame_size; + } else if (audiosize < F20) + { + if (audiosize > F10) + audiosize = F10; + else if (mode != MODE_SILK_ONLY && audiosize > F5 && audiosize < F10) + audiosize = F5; + } + } + + /* In fixed-point, we can tell CELT to do the accumulation on top of the + SILK PCM buffer. This saves some stack space. */ +#ifdef FIXED_POINT + celt_accum = (mode != MODE_CELT_ONLY) && (frame_size >= F10); +#else + celt_accum = 0; +#endif + + pcm_transition_silk_size = ALLOC_NONE; + pcm_transition_celt_size = ALLOC_NONE; + if (data!=NULL && st->prev_mode > 0 && ( + (mode == MODE_CELT_ONLY && st->prev_mode != MODE_CELT_ONLY && !st->prev_redundancy) + || (mode != MODE_CELT_ONLY && st->prev_mode == MODE_CELT_ONLY) ) + ) + { + transition = 1; + /* Decide where to allocate the stack memory for pcm_transition */ + if (mode == MODE_CELT_ONLY) + pcm_transition_celt_size = F5*st->channels; + else + pcm_transition_silk_size = F5*st->channels; + } + ALLOC(pcm_transition_celt, pcm_transition_celt_size, opus_val16); + if (transition && mode == MODE_CELT_ONLY) + { + pcm_transition = pcm_transition_celt; + opus_decode_frame(st, NULL, 0, pcm_transition, IMIN(F5, audiosize), 0); + } + if (audiosize > frame_size) + { + /*fprintf(stderr, "PCM buffer too small: %d vs %d (mode = %d)\n", audiosize, frame_size, mode);*/ + RESTORE_STACK; + return OPUS_BAD_ARG; + } else { + frame_size = audiosize; + } + + /* Don't allocate any memory when in CELT-only mode */ + pcm_silk_size = (mode != MODE_CELT_ONLY && !celt_accum) ? IMAX(F10, frame_size)*st->channels : ALLOC_NONE; + ALLOC(pcm_silk, pcm_silk_size, opus_int16); + + /* SILK processing */ + if (mode != MODE_CELT_ONLY) + { + int lost_flag, decoded_samples; + opus_int16 *pcm_ptr; +#ifdef FIXED_POINT + if (celt_accum) + pcm_ptr = pcm; + else +#endif + pcm_ptr = pcm_silk; + + if (st->prev_mode==MODE_CELT_ONLY) + silk_InitDecoder( silk_dec ); + + /* The SILK PLC cannot produce frames of less than 10 ms */ + st->DecControl.payloadSize_ms = IMAX(10, 1000 * audiosize / st->Fs); + + if (data != NULL) + { + st->DecControl.nChannelsInternal = st->stream_channels; + if( mode == MODE_SILK_ONLY ) { + if( bandwidth == OPUS_BANDWIDTH_NARROWBAND ) { + st->DecControl.internalSampleRate = 8000; + } else if( bandwidth == OPUS_BANDWIDTH_MEDIUMBAND ) { + st->DecControl.internalSampleRate = 12000; + } else if( bandwidth == OPUS_BANDWIDTH_WIDEBAND ) { + st->DecControl.internalSampleRate = 16000; + } else { + st->DecControl.internalSampleRate = 16000; + celt_assert( 0 ); + } + } else { + /* Hybrid mode */ + st->DecControl.internalSampleRate = 16000; + } + } + + lost_flag = data == NULL ? 1 : 2 * decode_fec; + decoded_samples = 0; + do { + /* Call SILK decoder */ + int first_frame = decoded_samples == 0; + silk_ret = silk_Decode( silk_dec, &st->DecControl, + lost_flag, first_frame, &dec, pcm_ptr, &silk_frame_size, st->arch ); + if( silk_ret ) { + if (lost_flag) { + /* PLC failure should not be fatal */ + silk_frame_size = frame_size; + for (i=0;ichannels;i++) + pcm_ptr[i] = 0; + } else { + RESTORE_STACK; + return OPUS_INTERNAL_ERROR; + } + } + pcm_ptr += silk_frame_size * st->channels; + decoded_samples += silk_frame_size; + } while( decoded_samples < frame_size ); + } + + start_band = 0; + if (!decode_fec && mode != MODE_CELT_ONLY && data != NULL + && ec_tell(&dec)+17+20*(st->mode == MODE_HYBRID) <= 8*len) + { + /* Check if we have a redundant 0-8 kHz band */ + if (mode == MODE_HYBRID) + redundancy = ec_dec_bit_logp(&dec, 12); + else + redundancy = 1; + if (redundancy) + { + celt_to_silk = ec_dec_bit_logp(&dec, 1); + /* redundancy_bytes will be at least two, in the non-hybrid + case due to the ec_tell() check above */ + redundancy_bytes = mode==MODE_HYBRID ? + (opus_int32)ec_dec_uint(&dec, 256)+2 : + len-((ec_tell(&dec)+7)>>3); + len -= redundancy_bytes; + /* This is a sanity check. It should never happen for a valid + packet, so the exact behaviour is not normative. */ + if (len*8 < ec_tell(&dec)) + { + len = 0; + redundancy_bytes = 0; + redundancy = 0; + } + /* Shrink decoder because of raw bits */ + dec.storage -= redundancy_bytes; + } + } + if (mode != MODE_CELT_ONLY) + start_band = 17; + + if (redundancy) + { + transition = 0; + pcm_transition_silk_size=ALLOC_NONE; + } + + ALLOC(pcm_transition_silk, pcm_transition_silk_size, opus_val16); + + if (transition && mode != MODE_CELT_ONLY) + { + pcm_transition = pcm_transition_silk; + opus_decode_frame(st, NULL, 0, pcm_transition, IMIN(F5, audiosize), 0); + } + + + if (bandwidth) + { + int endband=21; + + switch(bandwidth) + { + case OPUS_BANDWIDTH_NARROWBAND: + endband = 13; + break; + case OPUS_BANDWIDTH_MEDIUMBAND: + case OPUS_BANDWIDTH_WIDEBAND: + endband = 17; + break; + case OPUS_BANDWIDTH_SUPERWIDEBAND: + endband = 19; + break; + case OPUS_BANDWIDTH_FULLBAND: + endband = 21; + break; + default: + celt_assert(0); + break; + } + MUST_SUCCEED(celt_decoder_ctl(celt_dec, CELT_SET_END_BAND(endband))); + } + MUST_SUCCEED(celt_decoder_ctl(celt_dec, CELT_SET_CHANNELS(st->stream_channels))); + + /* Only allocation memory for redundancy if/when needed */ + redundant_audio_size = redundancy ? F5*st->channels : ALLOC_NONE; + ALLOC(redundant_audio, redundant_audio_size, opus_val16); + + /* 5 ms redundant frame for CELT->SILK*/ + if (redundancy && celt_to_silk) + { + MUST_SUCCEED(celt_decoder_ctl(celt_dec, CELT_SET_START_BAND(0))); + celt_decode_with_ec(celt_dec, data+len, redundancy_bytes, + redundant_audio, F5, NULL, 0); + MUST_SUCCEED(celt_decoder_ctl(celt_dec, OPUS_GET_FINAL_RANGE(&redundant_rng))); + } + + /* MUST be after PLC */ + MUST_SUCCEED(celt_decoder_ctl(celt_dec, CELT_SET_START_BAND(start_band))); + + if (mode != MODE_SILK_ONLY) + { + int celt_frame_size = IMIN(F20, frame_size); + /* Make sure to discard any previous CELT state */ + if (mode != st->prev_mode && st->prev_mode > 0 && !st->prev_redundancy) + MUST_SUCCEED(celt_decoder_ctl(celt_dec, OPUS_RESET_STATE)); + /* Decode CELT */ + celt_ret = celt_decode_with_ec(celt_dec, decode_fec ? NULL : data, + len, pcm, celt_frame_size, &dec, celt_accum); + } else { + unsigned char silence[2] = {0xFF, 0xFF}; + if (!celt_accum) + { + for (i=0;ichannels;i++) + pcm[i] = 0; + } + /* For hybrid -> SILK transitions, we let the CELT MDCT + do a fade-out by decoding a silence frame */ + if (st->prev_mode == MODE_HYBRID && !(redundancy && celt_to_silk && st->prev_redundancy) ) + { + MUST_SUCCEED(celt_decoder_ctl(celt_dec, CELT_SET_START_BAND(0))); + celt_decode_with_ec(celt_dec, silence, 2, pcm, F2_5, NULL, celt_accum); + } + } + + if (mode != MODE_CELT_ONLY && !celt_accum) + { +#ifdef FIXED_POINT + for (i=0;ichannels;i++) + pcm[i] = SAT16(ADD32(pcm[i], pcm_silk[i])); +#else + for (i=0;ichannels;i++) + pcm[i] = pcm[i] + (opus_val16)((1.f/32768.f)*pcm_silk[i]); +#endif + } + + { + const CELTMode *celt_mode; + MUST_SUCCEED(celt_decoder_ctl(celt_dec, CELT_GET_MODE(&celt_mode))); + window = celt_mode->window; + } + + /* 5 ms redundant frame for SILK->CELT */ + if (redundancy && !celt_to_silk) + { + MUST_SUCCEED(celt_decoder_ctl(celt_dec, OPUS_RESET_STATE)); + MUST_SUCCEED(celt_decoder_ctl(celt_dec, CELT_SET_START_BAND(0))); + + celt_decode_with_ec(celt_dec, data+len, redundancy_bytes, redundant_audio, F5, NULL, 0); + MUST_SUCCEED(celt_decoder_ctl(celt_dec, OPUS_GET_FINAL_RANGE(&redundant_rng))); + smooth_fade(pcm+st->channels*(frame_size-F2_5), redundant_audio+st->channels*F2_5, + pcm+st->channels*(frame_size-F2_5), F2_5, st->channels, window, st->Fs); + } + if (redundancy && celt_to_silk) + { + for (c=0;cchannels;c++) + { + for (i=0;ichannels*i+c] = redundant_audio[st->channels*i+c]; + } + smooth_fade(redundant_audio+st->channels*F2_5, pcm+st->channels*F2_5, + pcm+st->channels*F2_5, F2_5, st->channels, window, st->Fs); + } + if (transition) + { + if (audiosize >= F5) + { + for (i=0;ichannels*F2_5;i++) + pcm[i] = pcm_transition[i]; + smooth_fade(pcm_transition+st->channels*F2_5, pcm+st->channels*F2_5, + pcm+st->channels*F2_5, F2_5, + st->channels, window, st->Fs); + } else { + /* Not enough time to do a clean transition, but we do it anyway + This will not preserve amplitude perfectly and may introduce + a bit of temporal aliasing, but it shouldn't be too bad and + that's pretty much the best we can do. In any case, generating this + transition it pretty silly in the first place */ + smooth_fade(pcm_transition, pcm, + pcm, F2_5, + st->channels, window, st->Fs); + } + } + + if(st->decode_gain) + { + opus_val32 gain; + gain = celt_exp2(MULT16_16_P15(QCONST16(6.48814081e-4f, 25), st->decode_gain)); + for (i=0;ichannels;i++) + { + opus_val32 x; + x = MULT16_32_P16(pcm[i],gain); + pcm[i] = SATURATE(x, 32767); + } + } + + if (len <= 1) + st->rangeFinal = 0; + else + st->rangeFinal = dec.rng ^ redundant_rng; + + st->prev_mode = mode; + st->prev_redundancy = redundancy && !celt_to_silk; + + if (celt_ret>=0) + { + if (OPUS_CHECK_ARRAY(pcm, audiosize*st->channels)) + OPUS_PRINT_INT(audiosize); + } + + RESTORE_STACK; + return celt_ret < 0 ? celt_ret : audiosize; + +} + +int opus_decode_native(OpusDecoder *st, const unsigned char *data, + opus_int32 len, opus_val16 *pcm, int frame_size, int decode_fec, + int self_delimited, opus_int32 *packet_offset, int soft_clip) +{ + int i, nb_samples; + int count, offset; + unsigned char toc; + int packet_frame_size, packet_bandwidth, packet_mode, packet_stream_channels; + /* 48 x 2.5 ms = 120 ms */ + opus_int16 size[48]; + VALIDATE_OPUS_DECODER(st); + if (decode_fec<0 || decode_fec>1) + return OPUS_BAD_ARG; + /* For FEC/PLC, frame_size has to be to have a multiple of 2.5 ms */ + if ((decode_fec || len==0 || data==NULL) && frame_size%(st->Fs/400)!=0) + return OPUS_BAD_ARG; + if (len==0 || data==NULL) + { + int pcm_count=0; + do { + int ret; + ret = opus_decode_frame(st, NULL, 0, pcm+pcm_count*st->channels, frame_size-pcm_count, 0); + if (ret<0) + return ret; + pcm_count += ret; + } while (pcm_count < frame_size); + celt_assert(pcm_count == frame_size); + if (OPUS_CHECK_ARRAY(pcm, pcm_count*st->channels)) + OPUS_PRINT_INT(pcm_count); + st->last_packet_duration = pcm_count; + return pcm_count; + } else if (len<0) + return OPUS_BAD_ARG; + + packet_mode = opus_packet_get_mode(data); + packet_bandwidth = opus_packet_get_bandwidth(data); + packet_frame_size = opus_packet_get_samples_per_frame(data, st->Fs); + packet_stream_channels = opus_packet_get_nb_channels(data); + + count = opus_packet_parse_impl(data, len, self_delimited, &toc, NULL, + size, &offset, packet_offset); + if (count<0) + return count; + + data += offset; + + if (decode_fec) + { + int duration_copy; + int ret; + /* If no FEC can be present, run the PLC (recursive call) */ + if (frame_size < packet_frame_size || packet_mode == MODE_CELT_ONLY || st->mode == MODE_CELT_ONLY) + return opus_decode_native(st, NULL, 0, pcm, frame_size, 0, 0, NULL, soft_clip); + /* Otherwise, run the PLC on everything except the size for which we might have FEC */ + duration_copy = st->last_packet_duration; + if (frame_size-packet_frame_size!=0) + { + ret = opus_decode_native(st, NULL, 0, pcm, frame_size-packet_frame_size, 0, 0, NULL, soft_clip); + if (ret<0) + { + st->last_packet_duration = duration_copy; + return ret; + } + celt_assert(ret==frame_size-packet_frame_size); + } + /* Complete with FEC */ + st->mode = packet_mode; + st->bandwidth = packet_bandwidth; + st->frame_size = packet_frame_size; + st->stream_channels = packet_stream_channels; + ret = opus_decode_frame(st, data, size[0], pcm+st->channels*(frame_size-packet_frame_size), + packet_frame_size, 1); + if (ret<0) + return ret; + else { + if (OPUS_CHECK_ARRAY(pcm, frame_size*st->channels)) + OPUS_PRINT_INT(frame_size); + st->last_packet_duration = frame_size; + return frame_size; + } + } + + if (count*packet_frame_size > frame_size) + return OPUS_BUFFER_TOO_SMALL; + + /* Update the state as the last step to avoid updating it on an invalid packet */ + st->mode = packet_mode; + st->bandwidth = packet_bandwidth; + st->frame_size = packet_frame_size; + st->stream_channels = packet_stream_channels; + + nb_samples=0; + for (i=0;ichannels, frame_size-nb_samples, 0); + if (ret<0) + return ret; + celt_assert(ret==packet_frame_size); + data += size[i]; + nb_samples += ret; + } + st->last_packet_duration = nb_samples; + if (OPUS_CHECK_ARRAY(pcm, nb_samples*st->channels)) + OPUS_PRINT_INT(nb_samples); +#ifndef FIXED_POINT + if (soft_clip) + opus_pcm_soft_clip(pcm, nb_samples, st->channels, st->softclip_mem); + else + st->softclip_mem[0]=st->softclip_mem[1]=0; +#endif + return nb_samples; +} + +#ifdef FIXED_POINT + +int opus_decode(OpusDecoder *st, const unsigned char *data, + opus_int32 len, opus_val16 *pcm, int frame_size, int decode_fec) +{ + if(frame_size<=0) + return OPUS_BAD_ARG; + return opus_decode_native(st, data, len, pcm, frame_size, decode_fec, 0, NULL, 0); +} + +#ifndef DISABLE_FLOAT_API +int opus_decode_float(OpusDecoder *st, const unsigned char *data, + opus_int32 len, float *pcm, int frame_size, int decode_fec) +{ + VARDECL(opus_int16, out); + int ret, i; + int nb_samples; + ALLOC_STACK; + + if(frame_size<=0) + { + RESTORE_STACK; + return OPUS_BAD_ARG; + } + if (data != NULL && len > 0 && !decode_fec) + { + nb_samples = opus_decoder_get_nb_samples(st, data, len); + if (nb_samples>0) + frame_size = IMIN(frame_size, nb_samples); + else + return OPUS_INVALID_PACKET; + } + celt_assert(st->channels == 1 || st->channels == 2); + ALLOC(out, frame_size*st->channels, opus_int16); + + ret = opus_decode_native(st, data, len, out, frame_size, decode_fec, 0, NULL, 0); + if (ret > 0) + { + for (i=0;ichannels;i++) + pcm[i] = (1.f/32768.f)*(out[i]); + } + RESTORE_STACK; + return ret; +} +#endif + + +#else +int opus_decode(OpusDecoder *st, const unsigned char *data, + opus_int32 len, opus_int16 *pcm, int frame_size, int decode_fec) +{ + VARDECL(float, out); + int ret, i; + int nb_samples; + ALLOC_STACK; + + if(frame_size<=0) + { + RESTORE_STACK; + return OPUS_BAD_ARG; + } + + if (data != NULL && len > 0 && !decode_fec) + { + nb_samples = opus_decoder_get_nb_samples(st, data, len); + if (nb_samples>0) + frame_size = IMIN(frame_size, nb_samples); + else + return OPUS_INVALID_PACKET; + } + celt_assert(st->channels == 1 || st->channels == 2); + ALLOC(out, frame_size*st->channels, float); + + ret = opus_decode_native(st, data, len, out, frame_size, decode_fec, 0, NULL, 1); + if (ret > 0) + { + for (i=0;ichannels;i++) + pcm[i] = FLOAT2INT16(out[i]); + } + RESTORE_STACK; + return ret; +} + +int opus_decode_float(OpusDecoder *st, const unsigned char *data, + opus_int32 len, opus_val16 *pcm, int frame_size, int decode_fec) +{ + if(frame_size<=0) + return OPUS_BAD_ARG; + return opus_decode_native(st, data, len, pcm, frame_size, decode_fec, 0, NULL, 0); +} + +#endif + +int opus_decoder_ctl(OpusDecoder *st, int request, ...) +{ + int ret = OPUS_OK; + va_list ap; + void *silk_dec; + CELTDecoder *celt_dec; + + silk_dec = (char*)st+st->silk_dec_offset; + celt_dec = (CELTDecoder*)((char*)st+st->celt_dec_offset); + + + va_start(ap, request); + + switch (request) + { + case OPUS_GET_BANDWIDTH_REQUEST: + { + opus_int32 *value = va_arg(ap, opus_int32*); + if (!value) + { + goto bad_arg; + } + *value = st->bandwidth; + } + break; + case OPUS_GET_FINAL_RANGE_REQUEST: + { + opus_uint32 *value = va_arg(ap, opus_uint32*); + if (!value) + { + goto bad_arg; + } + *value = st->rangeFinal; + } + break; + case OPUS_RESET_STATE: + { + OPUS_CLEAR((char*)&st->OPUS_DECODER_RESET_START, + sizeof(OpusDecoder)- + ((char*)&st->OPUS_DECODER_RESET_START - (char*)st)); + + celt_decoder_ctl(celt_dec, OPUS_RESET_STATE); + silk_InitDecoder( silk_dec ); + st->stream_channels = st->channels; + st->frame_size = st->Fs/400; + } + break; + case OPUS_GET_SAMPLE_RATE_REQUEST: + { + opus_int32 *value = va_arg(ap, opus_int32*); + if (!value) + { + goto bad_arg; + } + *value = st->Fs; + } + break; + case OPUS_GET_PITCH_REQUEST: + { + opus_int32 *value = va_arg(ap, opus_int32*); + if (!value) + { + goto bad_arg; + } + if (st->prev_mode == MODE_CELT_ONLY) + ret = celt_decoder_ctl(celt_dec, OPUS_GET_PITCH(value)); + else + *value = st->DecControl.prevPitchLag; + } + break; + case OPUS_GET_GAIN_REQUEST: + { + opus_int32 *value = va_arg(ap, opus_int32*); + if (!value) + { + goto bad_arg; + } + *value = st->decode_gain; + } + break; + case OPUS_SET_GAIN_REQUEST: + { + opus_int32 value = va_arg(ap, opus_int32); + if (value<-32768 || value>32767) + { + goto bad_arg; + } + st->decode_gain = value; + } + break; + case OPUS_GET_LAST_PACKET_DURATION_REQUEST: + { + opus_int32 *value = va_arg(ap, opus_int32*); + if (!value) + { + goto bad_arg; + } + *value = st->last_packet_duration; + } + break; + case OPUS_SET_PHASE_INVERSION_DISABLED_REQUEST: + { + opus_int32 value = va_arg(ap, opus_int32); + if(value<0 || value>1) + { + goto bad_arg; + } + ret = celt_decoder_ctl(celt_dec, OPUS_SET_PHASE_INVERSION_DISABLED(value)); + } + break; + case OPUS_GET_PHASE_INVERSION_DISABLED_REQUEST: + { + opus_int32 *value = va_arg(ap, opus_int32*); + if (!value) + { + goto bad_arg; + } + ret = celt_decoder_ctl(celt_dec, OPUS_GET_PHASE_INVERSION_DISABLED(value)); + } + break; + default: + /*fprintf(stderr, "unknown opus_decoder_ctl() request: %d", request);*/ + ret = OPUS_UNIMPLEMENTED; + break; + } + + va_end(ap); + return ret; +bad_arg: + va_end(ap); + return OPUS_BAD_ARG; +} + +void opus_decoder_destroy(OpusDecoder *st) +{ + opus_free(st); +} + + +int opus_packet_get_bandwidth(const unsigned char *data) +{ + int bandwidth; + if (data[0]&0x80) + { + bandwidth = OPUS_BANDWIDTH_MEDIUMBAND + ((data[0]>>5)&0x3); + if (bandwidth == OPUS_BANDWIDTH_MEDIUMBAND) + bandwidth = OPUS_BANDWIDTH_NARROWBAND; + } else if ((data[0]&0x60) == 0x60) + { + bandwidth = (data[0]&0x10) ? OPUS_BANDWIDTH_FULLBAND : + OPUS_BANDWIDTH_SUPERWIDEBAND; + } else { + bandwidth = OPUS_BANDWIDTH_NARROWBAND + ((data[0]>>5)&0x3); + } + return bandwidth; +} + +int opus_packet_get_nb_channels(const unsigned char *data) +{ + return (data[0]&0x4) ? 2 : 1; +} + +int opus_packet_get_nb_frames(const unsigned char packet[], opus_int32 len) +{ + int count; + if (len<1) + return OPUS_BAD_ARG; + count = packet[0]&0x3; + if (count==0) + return 1; + else if (count!=3) + return 2; + else if (len<2) + return OPUS_INVALID_PACKET; + else + return packet[1]&0x3F; +} + +int opus_packet_get_nb_samples(const unsigned char packet[], opus_int32 len, + opus_int32 Fs) +{ + int samples; + int count = opus_packet_get_nb_frames(packet, len); + + if (count<0) + return count; + + samples = count*opus_packet_get_samples_per_frame(packet, Fs); + /* Can't have more than 120 ms */ + if (samples*25 > Fs*3) + return OPUS_INVALID_PACKET; + else + return samples; +} + +int opus_decoder_get_nb_samples(const OpusDecoder *dec, + const unsigned char packet[], opus_int32 len) +{ + return opus_packet_get_nb_samples(packet, len, dec->Fs); +} diff --git a/components/opus/libopus/src/opus_demo.c b/components/opus/libopus/src/opus_demo.c new file mode 100644 index 0000000..4cc26a6 --- /dev/null +++ b/components/opus/libopus/src/opus_demo.c @@ -0,0 +1,892 @@ +/* Copyright (c) 2007-2008 CSIRO + Copyright (c) 2007-2009 Xiph.Org Foundation + Written by Jean-Marc Valin */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include +#include +#include +#include "opus.h" +#include "debug.h" +#include "opus_types.h" +#include "opus_private.h" +#include "opus_multistream.h" + +#define MAX_PACKET 1500 + +void print_usage( char* argv[] ) +{ + fprintf(stderr, "Usage: %s [-e] " + " [options] \n", argv[0]); + fprintf(stderr, " %s -d " + "[options] \n\n", argv[0]); + fprintf(stderr, "application: voip | audio | restricted-lowdelay\n" ); + fprintf(stderr, "options:\n" ); + fprintf(stderr, "-e : only runs the encoder (output the bit-stream)\n" ); + fprintf(stderr, "-d : only runs the decoder (reads the bit-stream as input)\n" ); + fprintf(stderr, "-cbr : enable constant bitrate; default: variable bitrate\n" ); + fprintf(stderr, "-cvbr : enable constrained variable bitrate; default: unconstrained\n" ); + fprintf(stderr, "-delayed-decision : use look-ahead for speech/music detection (experts only); default: disabled\n" ); + fprintf(stderr, "-bandwidth : audio bandwidth (from narrowband to fullband); default: sampling rate\n" ); + fprintf(stderr, "-framesize <2.5|5|10|20|40|60|80|100|120> : frame size in ms; default: 20 \n" ); + fprintf(stderr, "-max_payload : maximum payload size in bytes, default: 1024\n" ); + fprintf(stderr, "-complexity : complexity, 0 (lowest) ... 10 (highest); default: 10\n" ); + fprintf(stderr, "-inbandfec : enable SILK inband FEC\n" ); + fprintf(stderr, "-forcemono : force mono encoding, even for stereo input\n" ); + fprintf(stderr, "-dtx : enable SILK DTX\n" ); + fprintf(stderr, "-loss : simulate packet loss, in percent (0-100); default: 0\n" ); +} + +static void int_to_char(opus_uint32 i, unsigned char ch[4]) +{ + ch[0] = i>>24; + ch[1] = (i>>16)&0xFF; + ch[2] = (i>>8)&0xFF; + ch[3] = i&0xFF; +} + +static opus_uint32 char_to_int(unsigned char ch[4]) +{ + return ((opus_uint32)ch[0]<<24) | ((opus_uint32)ch[1]<<16) + | ((opus_uint32)ch[2]<< 8) | (opus_uint32)ch[3]; +} + +#define check_encoder_option(decode_only, opt) do {if (decode_only) {fprintf(stderr, "option %s is only for encoding\n", opt); goto failure;}} while(0) + +static const int silk8_test[][4] = { + {MODE_SILK_ONLY, OPUS_BANDWIDTH_NARROWBAND, 960*3, 1}, + {MODE_SILK_ONLY, OPUS_BANDWIDTH_NARROWBAND, 960*2, 1}, + {MODE_SILK_ONLY, OPUS_BANDWIDTH_NARROWBAND, 960, 1}, + {MODE_SILK_ONLY, OPUS_BANDWIDTH_NARROWBAND, 480, 1}, + {MODE_SILK_ONLY, OPUS_BANDWIDTH_NARROWBAND, 960*3, 2}, + {MODE_SILK_ONLY, OPUS_BANDWIDTH_NARROWBAND, 960*2, 2}, + {MODE_SILK_ONLY, OPUS_BANDWIDTH_NARROWBAND, 960, 2}, + {MODE_SILK_ONLY, OPUS_BANDWIDTH_NARROWBAND, 480, 2} +}; + +static const int silk12_test[][4] = { + {MODE_SILK_ONLY, OPUS_BANDWIDTH_MEDIUMBAND, 960*3, 1}, + {MODE_SILK_ONLY, OPUS_BANDWIDTH_MEDIUMBAND, 960*2, 1}, + {MODE_SILK_ONLY, OPUS_BANDWIDTH_MEDIUMBAND, 960, 1}, + {MODE_SILK_ONLY, OPUS_BANDWIDTH_MEDIUMBAND, 480, 1}, + {MODE_SILK_ONLY, OPUS_BANDWIDTH_MEDIUMBAND, 960*3, 2}, + {MODE_SILK_ONLY, OPUS_BANDWIDTH_MEDIUMBAND, 960*2, 2}, + {MODE_SILK_ONLY, OPUS_BANDWIDTH_MEDIUMBAND, 960, 2}, + {MODE_SILK_ONLY, OPUS_BANDWIDTH_MEDIUMBAND, 480, 2} +}; + +static const int silk16_test[][4] = { + {MODE_SILK_ONLY, OPUS_BANDWIDTH_WIDEBAND, 960*3, 1}, + {MODE_SILK_ONLY, OPUS_BANDWIDTH_WIDEBAND, 960*2, 1}, + {MODE_SILK_ONLY, OPUS_BANDWIDTH_WIDEBAND, 960, 1}, + {MODE_SILK_ONLY, OPUS_BANDWIDTH_WIDEBAND, 480, 1}, + {MODE_SILK_ONLY, OPUS_BANDWIDTH_WIDEBAND, 960*3, 2}, + {MODE_SILK_ONLY, OPUS_BANDWIDTH_WIDEBAND, 960*2, 2}, + {MODE_SILK_ONLY, OPUS_BANDWIDTH_WIDEBAND, 960, 2}, + {MODE_SILK_ONLY, OPUS_BANDWIDTH_WIDEBAND, 480, 2} +}; + +static const int hybrid24_test[][4] = { + {MODE_SILK_ONLY, OPUS_BANDWIDTH_SUPERWIDEBAND, 960, 1}, + {MODE_SILK_ONLY, OPUS_BANDWIDTH_SUPERWIDEBAND, 480, 1}, + {MODE_SILK_ONLY, OPUS_BANDWIDTH_SUPERWIDEBAND, 960, 2}, + {MODE_SILK_ONLY, OPUS_BANDWIDTH_SUPERWIDEBAND, 480, 2} +}; + +static const int hybrid48_test[][4] = { + {MODE_SILK_ONLY, OPUS_BANDWIDTH_FULLBAND, 960, 1}, + {MODE_SILK_ONLY, OPUS_BANDWIDTH_FULLBAND, 480, 1}, + {MODE_SILK_ONLY, OPUS_BANDWIDTH_FULLBAND, 960, 2}, + {MODE_SILK_ONLY, OPUS_BANDWIDTH_FULLBAND, 480, 2} +}; + +static const int celt_test[][4] = { + {MODE_CELT_ONLY, OPUS_BANDWIDTH_FULLBAND, 960, 1}, + {MODE_CELT_ONLY, OPUS_BANDWIDTH_SUPERWIDEBAND, 960, 1}, + {MODE_CELT_ONLY, OPUS_BANDWIDTH_WIDEBAND, 960, 1}, + {MODE_CELT_ONLY, OPUS_BANDWIDTH_NARROWBAND, 960, 1}, + + {MODE_CELT_ONLY, OPUS_BANDWIDTH_FULLBAND, 480, 1}, + {MODE_CELT_ONLY, OPUS_BANDWIDTH_SUPERWIDEBAND, 480, 1}, + {MODE_CELT_ONLY, OPUS_BANDWIDTH_WIDEBAND, 480, 1}, + {MODE_CELT_ONLY, OPUS_BANDWIDTH_NARROWBAND, 480, 1}, + + {MODE_CELT_ONLY, OPUS_BANDWIDTH_FULLBAND, 240, 1}, + {MODE_CELT_ONLY, OPUS_BANDWIDTH_SUPERWIDEBAND, 240, 1}, + {MODE_CELT_ONLY, OPUS_BANDWIDTH_WIDEBAND, 240, 1}, + {MODE_CELT_ONLY, OPUS_BANDWIDTH_NARROWBAND, 240, 1}, + + {MODE_CELT_ONLY, OPUS_BANDWIDTH_FULLBAND, 120, 1}, + {MODE_CELT_ONLY, OPUS_BANDWIDTH_SUPERWIDEBAND, 120, 1}, + {MODE_CELT_ONLY, OPUS_BANDWIDTH_WIDEBAND, 120, 1}, + {MODE_CELT_ONLY, OPUS_BANDWIDTH_NARROWBAND, 120, 1}, + + {MODE_CELT_ONLY, OPUS_BANDWIDTH_FULLBAND, 960, 2}, + {MODE_CELT_ONLY, OPUS_BANDWIDTH_SUPERWIDEBAND, 960, 2}, + {MODE_CELT_ONLY, OPUS_BANDWIDTH_WIDEBAND, 960, 2}, + {MODE_CELT_ONLY, OPUS_BANDWIDTH_NARROWBAND, 960, 2}, + + {MODE_CELT_ONLY, OPUS_BANDWIDTH_FULLBAND, 480, 2}, + {MODE_CELT_ONLY, OPUS_BANDWIDTH_SUPERWIDEBAND, 480, 2}, + {MODE_CELT_ONLY, OPUS_BANDWIDTH_WIDEBAND, 480, 2}, + {MODE_CELT_ONLY, OPUS_BANDWIDTH_NARROWBAND, 480, 2}, + + {MODE_CELT_ONLY, OPUS_BANDWIDTH_FULLBAND, 240, 2}, + {MODE_CELT_ONLY, OPUS_BANDWIDTH_SUPERWIDEBAND, 240, 2}, + {MODE_CELT_ONLY, OPUS_BANDWIDTH_WIDEBAND, 240, 2}, + {MODE_CELT_ONLY, OPUS_BANDWIDTH_NARROWBAND, 240, 2}, + + {MODE_CELT_ONLY, OPUS_BANDWIDTH_FULLBAND, 120, 2}, + {MODE_CELT_ONLY, OPUS_BANDWIDTH_SUPERWIDEBAND, 120, 2}, + {MODE_CELT_ONLY, OPUS_BANDWIDTH_WIDEBAND, 120, 2}, + {MODE_CELT_ONLY, OPUS_BANDWIDTH_NARROWBAND, 120, 2}, + +}; + +static const int celt_hq_test[][4] = { + {MODE_CELT_ONLY, OPUS_BANDWIDTH_FULLBAND, 960, 2}, + {MODE_CELT_ONLY, OPUS_BANDWIDTH_FULLBAND, 480, 2}, + {MODE_CELT_ONLY, OPUS_BANDWIDTH_FULLBAND, 240, 2}, + {MODE_CELT_ONLY, OPUS_BANDWIDTH_FULLBAND, 120, 2}, +}; + +#if 0 /* This is a hack that replaces the normal encoder/decoder with the multistream version */ +#define OpusEncoder OpusMSEncoder +#define OpusDecoder OpusMSDecoder +#define opus_encode opus_multistream_encode +#define opus_decode opus_multistream_decode +#define opus_encoder_ctl opus_multistream_encoder_ctl +#define opus_decoder_ctl opus_multistream_decoder_ctl +#define opus_encoder_create ms_opus_encoder_create +#define opus_decoder_create ms_opus_decoder_create +#define opus_encoder_destroy opus_multistream_encoder_destroy +#define opus_decoder_destroy opus_multistream_decoder_destroy + +static OpusEncoder *ms_opus_encoder_create(opus_int32 Fs, int channels, int application, int *error) +{ + int streams, coupled_streams; + unsigned char mapping[256]; + return (OpusEncoder *)opus_multistream_surround_encoder_create(Fs, channels, 1, &streams, &coupled_streams, mapping, application, error); +} +static OpusDecoder *ms_opus_decoder_create(opus_int32 Fs, int channels, int *error) +{ + int streams; + int coupled_streams; + unsigned char mapping[256]={0,1}; + streams = 1; + coupled_streams = channels==2; + return (OpusDecoder *)opus_multistream_decoder_create(Fs, channels, streams, coupled_streams, mapping, error); +} +#endif + +int main(int argc, char *argv[]) +{ + int err; + char *inFile, *outFile; + FILE *fin=NULL; + FILE *fout=NULL; + OpusEncoder *enc=NULL; + OpusDecoder *dec=NULL; + int args; + int len[2]; + int frame_size, channels; + opus_int32 bitrate_bps=0; + unsigned char *data[2] = {NULL, NULL}; + unsigned char *fbytes=NULL; + opus_int32 sampling_rate; + int use_vbr; + int max_payload_bytes; + int complexity; + int use_inbandfec; + int use_dtx; + int forcechannels; + int cvbr = 0; + int packet_loss_perc; + opus_int32 count=0, count_act=0; + int k; + opus_int32 skip=0; + int stop=0; + short *in=NULL; + short *out=NULL; + int application=OPUS_APPLICATION_AUDIO; + double bits=0.0, bits_max=0.0, bits_act=0.0, bits2=0.0, nrg; + double tot_samples=0; + opus_uint64 tot_in, tot_out; + int bandwidth=OPUS_AUTO; + const char *bandwidth_string; + int lost = 0, lost_prev = 1; + int toggle = 0; + opus_uint32 enc_final_range[2]; + opus_uint32 dec_final_range; + int encode_only=0, decode_only=0; + int max_frame_size = 48000*2; + size_t num_read; + int curr_read=0; + int sweep_bps = 0; + int random_framesize=0, newsize=0, delayed_celt=0; + int sweep_max=0, sweep_min=0; + int random_fec=0; + const int (*mode_list)[4]=NULL; + int nb_modes_in_list=0; + int curr_mode=0; + int curr_mode_count=0; + int mode_switch_time = 48000; + int nb_encoded=0; + int remaining=0; + int variable_duration=OPUS_FRAMESIZE_ARG; + int delayed_decision=0; + int ret = EXIT_FAILURE; + + if (argc < 5 ) + { + print_usage( argv ); + goto failure; + } + + tot_in=tot_out=0; + fprintf(stderr, "%s\n", opus_get_version_string()); + + args = 1; + if (strcmp(argv[args], "-e")==0) + { + encode_only = 1; + args++; + } else if (strcmp(argv[args], "-d")==0) + { + decode_only = 1; + args++; + } + if (!decode_only && argc < 7 ) + { + print_usage( argv ); + goto failure; + } + + if (!decode_only) + { + if (strcmp(argv[args], "voip")==0) + application = OPUS_APPLICATION_VOIP; + else if (strcmp(argv[args], "restricted-lowdelay")==0) + application = OPUS_APPLICATION_RESTRICTED_LOWDELAY; + else if (strcmp(argv[args], "audio")!=0) { + fprintf(stderr, "unknown application: %s\n", argv[args]); + print_usage(argv); + goto failure; + } + args++; + } + sampling_rate = (opus_int32)atol(argv[args]); + args++; + + if (sampling_rate != 8000 && sampling_rate != 12000 + && sampling_rate != 16000 && sampling_rate != 24000 + && sampling_rate != 48000) + { + fprintf(stderr, "Supported sampling rates are 8000, 12000, " + "16000, 24000 and 48000.\n"); + goto failure; + } + frame_size = sampling_rate/50; + + channels = atoi(argv[args]); + args++; + + if (channels < 1 || channels > 2) + { + fprintf(stderr, "Opus_demo supports only 1 or 2 channels.\n"); + goto failure; + } + + if (!decode_only) + { + bitrate_bps = (opus_int32)atol(argv[args]); + args++; + } + + /* defaults: */ + use_vbr = 1; + max_payload_bytes = MAX_PACKET; + complexity = 10; + use_inbandfec = 0; + forcechannels = OPUS_AUTO; + use_dtx = 0; + packet_loss_perc = 0; + + while( args < argc - 2 ) { + /* process command line options */ + if( strcmp( argv[ args ], "-cbr" ) == 0 ) { + check_encoder_option(decode_only, "-cbr"); + use_vbr = 0; + args++; + } else if( strcmp( argv[ args ], "-bandwidth" ) == 0 ) { + check_encoder_option(decode_only, "-bandwidth"); + if (strcmp(argv[ args + 1 ], "NB")==0) + bandwidth = OPUS_BANDWIDTH_NARROWBAND; + else if (strcmp(argv[ args + 1 ], "MB")==0) + bandwidth = OPUS_BANDWIDTH_MEDIUMBAND; + else if (strcmp(argv[ args + 1 ], "WB")==0) + bandwidth = OPUS_BANDWIDTH_WIDEBAND; + else if (strcmp(argv[ args + 1 ], "SWB")==0) + bandwidth = OPUS_BANDWIDTH_SUPERWIDEBAND; + else if (strcmp(argv[ args + 1 ], "FB")==0) + bandwidth = OPUS_BANDWIDTH_FULLBAND; + else { + fprintf(stderr, "Unknown bandwidth %s. " + "Supported are NB, MB, WB, SWB, FB.\n", + argv[ args + 1 ]); + goto failure; + } + args += 2; + } else if( strcmp( argv[ args ], "-framesize" ) == 0 ) { + check_encoder_option(decode_only, "-framesize"); + if (strcmp(argv[ args + 1 ], "2.5")==0) + frame_size = sampling_rate/400; + else if (strcmp(argv[ args + 1 ], "5")==0) + frame_size = sampling_rate/200; + else if (strcmp(argv[ args + 1 ], "10")==0) + frame_size = sampling_rate/100; + else if (strcmp(argv[ args + 1 ], "20")==0) + frame_size = sampling_rate/50; + else if (strcmp(argv[ args + 1 ], "40")==0) + frame_size = sampling_rate/25; + else if (strcmp(argv[ args + 1 ], "60")==0) + frame_size = 3*sampling_rate/50; + else if (strcmp(argv[ args + 1 ], "80")==0) + frame_size = 4*sampling_rate/50; + else if (strcmp(argv[ args + 1 ], "100")==0) + frame_size = 5*sampling_rate/50; + else if (strcmp(argv[ args + 1 ], "120")==0) + frame_size = 6*sampling_rate/50; + else { + fprintf(stderr, "Unsupported frame size: %s ms. " + "Supported are 2.5, 5, 10, 20, 40, 60, 80, 100, 120.\n", + argv[ args + 1 ]); + goto failure; + } + args += 2; + } else if( strcmp( argv[ args ], "-max_payload" ) == 0 ) { + check_encoder_option(decode_only, "-max_payload"); + max_payload_bytes = atoi( argv[ args + 1 ] ); + args += 2; + } else if( strcmp( argv[ args ], "-complexity" ) == 0 ) { + check_encoder_option(decode_only, "-complexity"); + complexity = atoi( argv[ args + 1 ] ); + args += 2; + } else if( strcmp( argv[ args ], "-inbandfec" ) == 0 ) { + use_inbandfec = 1; + args++; + } else if( strcmp( argv[ args ], "-forcemono" ) == 0 ) { + check_encoder_option(decode_only, "-forcemono"); + forcechannels = 1; + args++; + } else if( strcmp( argv[ args ], "-cvbr" ) == 0 ) { + check_encoder_option(decode_only, "-cvbr"); + cvbr = 1; + args++; + } else if( strcmp( argv[ args ], "-delayed-decision" ) == 0 ) { + check_encoder_option(decode_only, "-delayed-decision"); + delayed_decision = 1; + args++; + } else if( strcmp( argv[ args ], "-dtx") == 0 ) { + check_encoder_option(decode_only, "-dtx"); + use_dtx = 1; + args++; + } else if( strcmp( argv[ args ], "-loss" ) == 0 ) { + packet_loss_perc = atoi( argv[ args + 1 ] ); + args += 2; + } else if( strcmp( argv[ args ], "-sweep" ) == 0 ) { + check_encoder_option(decode_only, "-sweep"); + sweep_bps = atoi( argv[ args + 1 ] ); + args += 2; + } else if( strcmp( argv[ args ], "-random_framesize" ) == 0 ) { + check_encoder_option(decode_only, "-random_framesize"); + random_framesize = 1; + args++; + } else if( strcmp( argv[ args ], "-sweep_max" ) == 0 ) { + check_encoder_option(decode_only, "-sweep_max"); + sweep_max = atoi( argv[ args + 1 ] ); + args += 2; + } else if( strcmp( argv[ args ], "-random_fec" ) == 0 ) { + check_encoder_option(decode_only, "-random_fec"); + random_fec = 1; + args++; + } else if( strcmp( argv[ args ], "-silk8k_test" ) == 0 ) { + check_encoder_option(decode_only, "-silk8k_test"); + mode_list = silk8_test; + nb_modes_in_list = 8; + args++; + } else if( strcmp( argv[ args ], "-silk12k_test" ) == 0 ) { + check_encoder_option(decode_only, "-silk12k_test"); + mode_list = silk12_test; + nb_modes_in_list = 8; + args++; + } else if( strcmp( argv[ args ], "-silk16k_test" ) == 0 ) { + check_encoder_option(decode_only, "-silk16k_test"); + mode_list = silk16_test; + nb_modes_in_list = 8; + args++; + } else if( strcmp( argv[ args ], "-hybrid24k_test" ) == 0 ) { + check_encoder_option(decode_only, "-hybrid24k_test"); + mode_list = hybrid24_test; + nb_modes_in_list = 4; + args++; + } else if( strcmp( argv[ args ], "-hybrid48k_test" ) == 0 ) { + check_encoder_option(decode_only, "-hybrid48k_test"); + mode_list = hybrid48_test; + nb_modes_in_list = 4; + args++; + } else if( strcmp( argv[ args ], "-celt_test" ) == 0 ) { + check_encoder_option(decode_only, "-celt_test"); + mode_list = celt_test; + nb_modes_in_list = 32; + args++; + } else if( strcmp( argv[ args ], "-celt_hq_test" ) == 0 ) { + check_encoder_option(decode_only, "-celt_hq_test"); + mode_list = celt_hq_test; + nb_modes_in_list = 4; + args++; + } else { + printf( "Error: unrecognized setting: %s\n\n", argv[ args ] ); + print_usage( argv ); + goto failure; + } + } + + if (sweep_max) + sweep_min = bitrate_bps; + + if (max_payload_bytes < 0 || max_payload_bytes > MAX_PACKET) + { + fprintf (stderr, "max_payload_bytes must be between 0 and %d\n", + MAX_PACKET); + goto failure; + } + + inFile = argv[argc-2]; + fin = fopen(inFile, "rb"); + if (!fin) + { + fprintf (stderr, "Could not open input file %s\n", argv[argc-2]); + goto failure; + } + if (mode_list) + { + int size; + fseek(fin, 0, SEEK_END); + size = ftell(fin); + fprintf(stderr, "File size is %d bytes\n", size); + fseek(fin, 0, SEEK_SET); + mode_switch_time = size/sizeof(short)/channels/nb_modes_in_list; + fprintf(stderr, "Switching mode every %d samples\n", mode_switch_time); + } + + outFile = argv[argc-1]; + fout = fopen(outFile, "wb+"); + if (!fout) + { + fprintf (stderr, "Could not open output file %s\n", argv[argc-1]); + goto failure; + } + + if (!decode_only) + { + enc = opus_encoder_create(sampling_rate, channels, application, &err); + if (err != OPUS_OK) + { + fprintf(stderr, "Cannot create encoder: %s\n", opus_strerror(err)); + goto failure; + } + opus_encoder_ctl(enc, OPUS_SET_BITRATE(bitrate_bps)); + opus_encoder_ctl(enc, OPUS_SET_BANDWIDTH(bandwidth)); + opus_encoder_ctl(enc, OPUS_SET_VBR(use_vbr)); + opus_encoder_ctl(enc, OPUS_SET_VBR_CONSTRAINT(cvbr)); + opus_encoder_ctl(enc, OPUS_SET_COMPLEXITY(complexity)); + opus_encoder_ctl(enc, OPUS_SET_INBAND_FEC(use_inbandfec)); + opus_encoder_ctl(enc, OPUS_SET_FORCE_CHANNELS(forcechannels)); + opus_encoder_ctl(enc, OPUS_SET_DTX(use_dtx)); + opus_encoder_ctl(enc, OPUS_SET_PACKET_LOSS_PERC(packet_loss_perc)); + + opus_encoder_ctl(enc, OPUS_GET_LOOKAHEAD(&skip)); + opus_encoder_ctl(enc, OPUS_SET_LSB_DEPTH(16)); + opus_encoder_ctl(enc, OPUS_SET_EXPERT_FRAME_DURATION(variable_duration)); + } + if (!encode_only) + { + dec = opus_decoder_create(sampling_rate, channels, &err); + if (err != OPUS_OK) + { + fprintf(stderr, "Cannot create decoder: %s\n", opus_strerror(err)); + goto failure; + } + } + + + switch(bandwidth) + { + case OPUS_BANDWIDTH_NARROWBAND: + bandwidth_string = "narrowband"; + break; + case OPUS_BANDWIDTH_MEDIUMBAND: + bandwidth_string = "mediumband"; + break; + case OPUS_BANDWIDTH_WIDEBAND: + bandwidth_string = "wideband"; + break; + case OPUS_BANDWIDTH_SUPERWIDEBAND: + bandwidth_string = "superwideband"; + break; + case OPUS_BANDWIDTH_FULLBAND: + bandwidth_string = "fullband"; + break; + case OPUS_AUTO: + bandwidth_string = "auto bandwidth"; + break; + default: + bandwidth_string = "unknown"; + break; + } + + if (decode_only) + fprintf(stderr, "Decoding with %ld Hz output (%d channels)\n", + (long)sampling_rate, channels); + else + fprintf(stderr, "Encoding %ld Hz input at %.3f kb/s " + "in %s with %d-sample frames.\n", + (long)sampling_rate, bitrate_bps*0.001, + bandwidth_string, frame_size); + + in = (short*)malloc(max_frame_size*channels*sizeof(short)); + out = (short*)malloc(max_frame_size*channels*sizeof(short)); + /* We need to allocate for 16-bit PCM data, but we store it as unsigned char. */ + fbytes = (unsigned char*)malloc(max_frame_size*channels*sizeof(short)); + data[0] = (unsigned char*)calloc(max_payload_bytes,sizeof(unsigned char)); + if ( use_inbandfec ) { + data[1] = (unsigned char*)calloc(max_payload_bytes,sizeof(unsigned char)); + } + if(delayed_decision) + { + if (frame_size==sampling_rate/400) + variable_duration = OPUS_FRAMESIZE_2_5_MS; + else if (frame_size==sampling_rate/200) + variable_duration = OPUS_FRAMESIZE_5_MS; + else if (frame_size==sampling_rate/100) + variable_duration = OPUS_FRAMESIZE_10_MS; + else if (frame_size==sampling_rate/50) + variable_duration = OPUS_FRAMESIZE_20_MS; + else if (frame_size==sampling_rate/25) + variable_duration = OPUS_FRAMESIZE_40_MS; + else if (frame_size==3*sampling_rate/50) + variable_duration = OPUS_FRAMESIZE_60_MS; + else if (frame_size==4*sampling_rate/50) + variable_duration = OPUS_FRAMESIZE_80_MS; + else if (frame_size==5*sampling_rate/50) + variable_duration = OPUS_FRAMESIZE_100_MS; + else + variable_duration = OPUS_FRAMESIZE_120_MS; + opus_encoder_ctl(enc, OPUS_SET_EXPERT_FRAME_DURATION(variable_duration)); + frame_size = 2*48000; + } + while (!stop) + { + if (delayed_celt) + { + frame_size = newsize; + delayed_celt = 0; + } else if (random_framesize && rand()%20==0) + { + newsize = rand()%6; + switch(newsize) + { + case 0: newsize=sampling_rate/400; break; + case 1: newsize=sampling_rate/200; break; + case 2: newsize=sampling_rate/100; break; + case 3: newsize=sampling_rate/50; break; + case 4: newsize=sampling_rate/25; break; + case 5: newsize=3*sampling_rate/50; break; + } + while (newsize < sampling_rate/25 && bitrate_bps-abs(sweep_bps) <= 3*12*sampling_rate/newsize) + newsize*=2; + if (newsize < sampling_rate/100 && frame_size >= sampling_rate/100) + { + opus_encoder_ctl(enc, OPUS_SET_FORCE_MODE(MODE_CELT_ONLY)); + delayed_celt=1; + } else { + frame_size = newsize; + } + } + if (random_fec && rand()%30==0) + { + opus_encoder_ctl(enc, OPUS_SET_INBAND_FEC(rand()%4==0)); + } + if (decode_only) + { + unsigned char ch[4]; + num_read = fread(ch, 1, 4, fin); + if (num_read!=4) + break; + len[toggle] = char_to_int(ch); + if (len[toggle]>max_payload_bytes || len[toggle]<0) + { + fprintf(stderr, "Invalid payload length: %d\n",len[toggle]); + break; + } + num_read = fread(ch, 1, 4, fin); + if (num_read!=4) + break; + enc_final_range[toggle] = char_to_int(ch); + num_read = fread(data[toggle], 1, len[toggle], fin); + if (num_read!=(size_t)len[toggle]) + { + fprintf(stderr, "Ran out of input, " + "expecting %d bytes got %d\n", + len[toggle],(int)num_read); + break; + } + } else { + int i; + if (mode_list!=NULL) + { + opus_encoder_ctl(enc, OPUS_SET_BANDWIDTH(mode_list[curr_mode][1])); + opus_encoder_ctl(enc, OPUS_SET_FORCE_MODE(mode_list[curr_mode][0])); + opus_encoder_ctl(enc, OPUS_SET_FORCE_CHANNELS(mode_list[curr_mode][3])); + frame_size = mode_list[curr_mode][2]; + } + num_read = fread(fbytes, sizeof(short)*channels, frame_size-remaining, fin); + curr_read = (int)num_read; + tot_in += curr_read; + for(i=0;i sweep_max) + sweep_bps = -sweep_bps; + else if (bitrate_bps < sweep_min) + sweep_bps = -sweep_bps; + } + /* safety */ + if (bitrate_bps<1000) + bitrate_bps = 1000; + opus_encoder_ctl(enc, OPUS_SET_BITRATE(bitrate_bps)); + } + opus_encoder_ctl(enc, OPUS_GET_FINAL_RANGE(&enc_final_range[toggle])); + if (len[toggle] < 0) + { + fprintf (stderr, "opus_encode() returned %d\n", len[toggle]); + goto failure; + } + curr_mode_count += frame_size; + if (curr_mode_count > mode_switch_time && curr_mode < nb_modes_in_list-1) + { + curr_mode++; + curr_mode_count = 0; + } + } + +#if 0 /* This is for testing the padding code, do not enable by default */ + if (len[toggle]<1275) + { + int new_len = len[toggle]+rand()%(max_payload_bytes-len[toggle]); + if ((err = opus_packet_pad(data[toggle], len[toggle], new_len)) != OPUS_OK) + { + fprintf(stderr, "padding failed: %s\n", opus_strerror(err)); + goto failure; + } + len[toggle] = new_len; + } +#endif + if (encode_only) + { + unsigned char int_field[4]; + int_to_char(len[toggle], int_field); + if (fwrite(int_field, 1, 4, fout) != 4) { + fprintf(stderr, "Error writing.\n"); + goto failure; + } + int_to_char(enc_final_range[toggle], int_field); + if (fwrite(int_field, 1, 4, fout) != 4) { + fprintf(stderr, "Error writing.\n"); + goto failure; + } + if (fwrite(data[toggle], 1, len[toggle], fout) != (unsigned)len[toggle]) { + fprintf(stderr, "Error writing.\n"); + goto failure; + } + tot_samples += nb_encoded; + } else { + opus_int32 output_samples; + lost = len[toggle]==0 || (packet_loss_perc>0 && rand()%100 < packet_loss_perc); + if (lost) + opus_decoder_ctl(dec, OPUS_GET_LAST_PACKET_DURATION(&output_samples)); + else + output_samples = max_frame_size; + if( count >= use_inbandfec ) { + /* delay by one packet when using in-band FEC */ + if( use_inbandfec ) { + if( lost_prev ) { + /* attempt to decode with in-band FEC from next packet */ + opus_decoder_ctl(dec, OPUS_GET_LAST_PACKET_DURATION(&output_samples)); + output_samples = opus_decode(dec, lost ? NULL : data[toggle], len[toggle], out, output_samples, 1); + } else { + /* regular decode */ + output_samples = max_frame_size; + output_samples = opus_decode(dec, data[1-toggle], len[1-toggle], out, output_samples, 0); + } + } else { + output_samples = opus_decode(dec, lost ? NULL : data[toggle], len[toggle], out, output_samples, 0); + } + if (output_samples>0) + { + if (!decode_only && tot_out + output_samples > tot_in) + { + stop=1; + output_samples = (opus_int32)(tot_in - tot_out); + } + if (output_samples>skip) { + int i; + for(i=0;i<(output_samples-skip)*channels;i++) + { + short s; + s=out[i+(skip*channels)]; + fbytes[2*i]=s&0xFF; + fbytes[2*i+1]=(s>>8)&0xFF; + } + if (fwrite(fbytes, sizeof(short)*channels, output_samples-skip, fout) != (unsigned)(output_samples-skip)){ + fprintf(stderr, "Error writing.\n"); + goto failure; + } + tot_out += output_samples-skip; + } + if (output_samples= use_inbandfec ) { + /* count bits */ + bits += len[toggle]*8; + bits_max = ( len[toggle]*8 > bits_max ) ? len[toggle]*8 : bits_max; + bits2 += len[toggle]*len[toggle]*64; + if (!decode_only) + { + nrg = 0.0; + for ( k = 0; k < frame_size * channels; k++ ) { + nrg += in[ k ] * (double)in[ k ]; + } + nrg /= frame_size * channels; + if( nrg > 1e5 ) { + bits_act += len[toggle]*8; + count_act++; + } + } + } + count++; + toggle = (toggle + use_inbandfec) & 1; + } + + if(decode_only && count > 0) + frame_size = (int)(tot_samples / count); + count -= use_inbandfec; + if (tot_samples >= 1 && count > 0 && frame_size) + { + /* Print out bitrate statistics */ + double var; + fprintf (stderr, "average bitrate: %7.3f kb/s\n", + 1e-3*bits*sampling_rate/tot_samples); + fprintf (stderr, "maximum bitrate: %7.3f kb/s\n", + 1e-3*bits_max*sampling_rate/frame_size); + if (!decode_only) + fprintf (stderr, "active bitrate: %7.3f kb/s\n", + 1e-3*bits_act*sampling_rate/(1e-15+frame_size*(double)count_act)); + var = bits2/count - bits*bits/(count*(double)count); + if (var < 0) + var = 0; + fprintf (stderr, "bitrate standard deviation: %7.3f kb/s\n", + 1e-3*sqrt(var)*sampling_rate/frame_size); + } else { + fprintf(stderr, "bitrate statistics are undefined\n"); + } + silk_TimerSave("opus_timing.txt"); + ret = EXIT_SUCCESS; +failure: + opus_encoder_destroy(enc); + opus_decoder_destroy(dec); + free(data[0]); + free(data[1]); + if (fin) + fclose(fin); + if (fout) + fclose(fout); + free(in); + free(out); + free(fbytes); + return ret; +} diff --git a/components/opus/libopus/src/opus_encoder.c b/components/opus/libopus/src/opus_encoder.c new file mode 100644 index 0000000..e98ac5b --- /dev/null +++ b/components/opus/libopus/src/opus_encoder.c @@ -0,0 +1,2783 @@ +/* Copyright (c) 2010-2011 Xiph.Org Foundation, Skype Limited + Written by Jean-Marc Valin and Koen Vos */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include "celt.h" +#include "entenc.h" +#include "modes.h" +#include "API.h" +#include "stack_alloc.h" +#include "float_cast.h" +#include "opus.h" +#include "arch.h" +#include "pitch.h" +#include "opus_private.h" +#include "os_support.h" +#include "cpu_support.h" +#include "analysis.h" +#include "mathops.h" +#include "tuning_parameters.h" +#ifdef FIXED_POINT +#include "fixed/structs_FIX.h" +#else +#include "float/structs_FLP.h" +#endif + +#define MAX_ENCODER_BUFFER 480 + +#ifndef DISABLE_FLOAT_API +#define PSEUDO_SNR_THRESHOLD 316.23f /* 10^(25/10) */ +#endif + +typedef struct { + opus_val32 XX, XY, YY; + opus_val16 smoothed_width; + opus_val16 max_follower; +} StereoWidthState; + +struct OpusEncoder { + int celt_enc_offset; + int silk_enc_offset; + silk_EncControlStruct silk_mode; + int application; + int channels; + int delay_compensation; + int force_channels; + int signal_type; + int user_bandwidth; + int max_bandwidth; + int user_forced_mode; + int voice_ratio; + opus_int32 Fs; + int use_vbr; + int vbr_constraint; + int variable_duration; + opus_int32 bitrate_bps; + opus_int32 user_bitrate_bps; + int lsb_depth; + int encoder_buffer; + int lfe; + int arch; + int use_dtx; /* general DTX for both SILK and CELT */ +#ifndef DISABLE_FLOAT_API + TonalityAnalysisState analysis; +#endif + +#define OPUS_ENCODER_RESET_START stream_channels + int stream_channels; + opus_int16 hybrid_stereo_width_Q14; + opus_int32 variable_HP_smth2_Q15; + opus_val16 prev_HB_gain; + opus_val32 hp_mem[4]; + int mode; + int prev_mode; + int prev_channels; + int prev_framesize; + int bandwidth; + /* Bandwidth determined automatically from the rate (before any other adjustment) */ + int auto_bandwidth; + int silk_bw_switch; + /* Sampling rate (at the API level) */ + int first; + opus_val16 * energy_masking; + StereoWidthState width_mem; + opus_val16 delay_buffer[MAX_ENCODER_BUFFER*2]; +#ifndef DISABLE_FLOAT_API + int detected_bandwidth; + int nb_no_activity_frames; + opus_val32 peak_signal_energy; +#endif + int nonfinal_frame; /* current frame is not the final in a packet */ + opus_uint32 rangeFinal; +}; + +/* Transition tables for the voice and music. First column is the + middle (memoriless) threshold. The second column is the hysteresis + (difference with the middle) */ +static const opus_int32 mono_voice_bandwidth_thresholds[8] = { + 9000, 700, /* NB<->MB */ + 9000, 700, /* MB<->WB */ + 13500, 1000, /* WB<->SWB */ + 14000, 2000, /* SWB<->FB */ +}; +static const opus_int32 mono_music_bandwidth_thresholds[8] = { + 9000, 700, /* NB<->MB */ + 9000, 700, /* MB<->WB */ + 11000, 1000, /* WB<->SWB */ + 12000, 2000, /* SWB<->FB */ +}; +static const opus_int32 stereo_voice_bandwidth_thresholds[8] = { + 9000, 700, /* NB<->MB */ + 9000, 700, /* MB<->WB */ + 13500, 1000, /* WB<->SWB */ + 14000, 2000, /* SWB<->FB */ +}; +static const opus_int32 stereo_music_bandwidth_thresholds[8] = { + 9000, 700, /* NB<->MB */ + 9000, 700, /* MB<->WB */ + 11000, 1000, /* WB<->SWB */ + 12000, 2000, /* SWB<->FB */ +}; +/* Threshold bit-rates for switching between mono and stereo */ +static const opus_int32 stereo_voice_threshold = 19000; +static const opus_int32 stereo_music_threshold = 17000; + +/* Threshold bit-rate for switching between SILK/hybrid and CELT-only */ +static const opus_int32 mode_thresholds[2][2] = { + /* voice */ /* music */ + { 64000, 10000}, /* mono */ + { 44000, 10000}, /* stereo */ +}; + +static const opus_int32 fec_thresholds[] = { + 12000, 1000, /* NB */ + 14000, 1000, /* MB */ + 16000, 1000, /* WB */ + 20000, 1000, /* SWB */ + 22000, 1000, /* FB */ +}; + +int opus_encoder_get_size(int channels) +{ + int silkEncSizeBytes, celtEncSizeBytes; + int ret; + if (channels<1 || channels > 2) + return 0; + ret = silk_Get_Encoder_Size( &silkEncSizeBytes ); + if (ret) + return 0; + silkEncSizeBytes = align(silkEncSizeBytes); + celtEncSizeBytes = celt_encoder_get_size(channels); + return align(sizeof(OpusEncoder))+silkEncSizeBytes+celtEncSizeBytes; +} + +int opus_encoder_init(OpusEncoder* st, opus_int32 Fs, int channels, int application) +{ + void *silk_enc; + CELTEncoder *celt_enc; + int err; + int ret, silkEncSizeBytes; + + if((Fs!=48000&&Fs!=24000&&Fs!=16000&&Fs!=12000&&Fs!=8000)||(channels!=1&&channels!=2)|| + (application != OPUS_APPLICATION_VOIP && application != OPUS_APPLICATION_AUDIO + && application != OPUS_APPLICATION_RESTRICTED_LOWDELAY)) + return OPUS_BAD_ARG; + + OPUS_CLEAR((char*)st, opus_encoder_get_size(channels)); + /* Create SILK encoder */ + ret = silk_Get_Encoder_Size( &silkEncSizeBytes ); + if (ret) + return OPUS_BAD_ARG; + silkEncSizeBytes = align(silkEncSizeBytes); + st->silk_enc_offset = align(sizeof(OpusEncoder)); + st->celt_enc_offset = st->silk_enc_offset+silkEncSizeBytes; + silk_enc = (char*)st+st->silk_enc_offset; + celt_enc = (CELTEncoder*)((char*)st+st->celt_enc_offset); + + st->stream_channels = st->channels = channels; + + st->Fs = Fs; + + st->arch = opus_select_arch(); + + ret = silk_InitEncoder( silk_enc, st->arch, &st->silk_mode ); + if(ret)return OPUS_INTERNAL_ERROR; + + /* default SILK parameters */ + st->silk_mode.nChannelsAPI = channels; + st->silk_mode.nChannelsInternal = channels; + st->silk_mode.API_sampleRate = st->Fs; + st->silk_mode.maxInternalSampleRate = 16000; + st->silk_mode.minInternalSampleRate = 8000; + st->silk_mode.desiredInternalSampleRate = 16000; + st->silk_mode.payloadSize_ms = 20; + st->silk_mode.bitRate = 25000; + st->silk_mode.packetLossPercentage = 0; + st->silk_mode.complexity = 9; + st->silk_mode.useInBandFEC = 0; + st->silk_mode.useDTX = 0; + st->silk_mode.useCBR = 0; + st->silk_mode.reducedDependency = 0; + + /* Create CELT encoder */ + /* Initialize CELT encoder */ + err = celt_encoder_init(celt_enc, Fs, channels, st->arch); + if(err!=OPUS_OK)return OPUS_INTERNAL_ERROR; + + celt_encoder_ctl(celt_enc, CELT_SET_SIGNALLING(0)); + celt_encoder_ctl(celt_enc, OPUS_SET_COMPLEXITY(st->silk_mode.complexity)); + + st->use_vbr = 1; + /* Makes constrained VBR the default (safer for real-time use) */ + st->vbr_constraint = 1; + st->user_bitrate_bps = OPUS_AUTO; + st->bitrate_bps = 3000+Fs*channels; + st->application = application; + st->signal_type = OPUS_AUTO; + st->user_bandwidth = OPUS_AUTO; + st->max_bandwidth = OPUS_BANDWIDTH_FULLBAND; + st->force_channels = OPUS_AUTO; + st->user_forced_mode = OPUS_AUTO; + st->voice_ratio = -1; + st->encoder_buffer = st->Fs/100; + st->lsb_depth = 24; + st->variable_duration = OPUS_FRAMESIZE_ARG; + + /* Delay compensation of 4 ms (2.5 ms for SILK's extra look-ahead + + 1.5 ms for SILK resamplers and stereo prediction) */ + st->delay_compensation = st->Fs/250; + + st->hybrid_stereo_width_Q14 = 1 << 14; + st->prev_HB_gain = Q15ONE; + st->variable_HP_smth2_Q15 = silk_LSHIFT( silk_lin2log( VARIABLE_HP_MIN_CUTOFF_HZ ), 8 ); + st->first = 1; + st->mode = MODE_HYBRID; + st->bandwidth = OPUS_BANDWIDTH_FULLBAND; + +#ifndef DISABLE_FLOAT_API + tonality_analysis_init(&st->analysis, st->Fs); + st->analysis.application = st->application; +#endif + + return OPUS_OK; +} + +static unsigned char gen_toc(int mode, int framerate, int bandwidth, int channels) +{ + int period; + unsigned char toc; + period = 0; + while (framerate < 400) + { + framerate <<= 1; + period++; + } + if (mode == MODE_SILK_ONLY) + { + toc = (bandwidth-OPUS_BANDWIDTH_NARROWBAND)<<5; + toc |= (period-2)<<3; + } else if (mode == MODE_CELT_ONLY) + { + int tmp = bandwidth-OPUS_BANDWIDTH_MEDIUMBAND; + if (tmp < 0) + tmp = 0; + toc = 0x80; + toc |= tmp << 5; + toc |= period<<3; + } else /* Hybrid */ + { + toc = 0x60; + toc |= (bandwidth-OPUS_BANDWIDTH_SUPERWIDEBAND)<<4; + toc |= (period-2)<<3; + } + toc |= (channels==2)<<2; + return toc; +} + +#ifndef FIXED_POINT +static void silk_biquad_float( + const opus_val16 *in, /* I: Input signal */ + const opus_int32 *B_Q28, /* I: MA coefficients [3] */ + const opus_int32 *A_Q28, /* I: AR coefficients [2] */ + opus_val32 *S, /* I/O: State vector [2] */ + opus_val16 *out, /* O: Output signal */ + const opus_int32 len, /* I: Signal length (must be even) */ + int stride +) +{ + /* DIRECT FORM II TRANSPOSED (uses 2 element state vector) */ + opus_int k; + opus_val32 vout; + opus_val32 inval; + opus_val32 A[2], B[3]; + + A[0] = (opus_val32)(A_Q28[0] * (1.f/((opus_int32)1<<28))); + A[1] = (opus_val32)(A_Q28[1] * (1.f/((opus_int32)1<<28))); + B[0] = (opus_val32)(B_Q28[0] * (1.f/((opus_int32)1<<28))); + B[1] = (opus_val32)(B_Q28[1] * (1.f/((opus_int32)1<<28))); + B[2] = (opus_val32)(B_Q28[2] * (1.f/((opus_int32)1<<28))); + + /* Negate A_Q28 values and split in two parts */ + + for( k = 0; k < len; k++ ) { + /* S[ 0 ], S[ 1 ]: Q12 */ + inval = in[ k*stride ]; + vout = S[ 0 ] + B[0]*inval; + + S[ 0 ] = S[1] - vout*A[0] + B[1]*inval; + + S[ 1 ] = - vout*A[1] + B[2]*inval + VERY_SMALL; + + /* Scale back to Q0 and saturate */ + out[ k*stride ] = vout; + } +} +#endif + +static void hp_cutoff(const opus_val16 *in, opus_int32 cutoff_Hz, opus_val16 *out, opus_val32 *hp_mem, int len, int channels, opus_int32 Fs, int arch) +{ + opus_int32 B_Q28[ 3 ], A_Q28[ 2 ]; + opus_int32 Fc_Q19, r_Q28, r_Q22; + (void)arch; + + silk_assert( cutoff_Hz <= silk_int32_MAX / SILK_FIX_CONST( 1.5 * 3.14159 / 1000, 19 ) ); + Fc_Q19 = silk_DIV32_16( silk_SMULBB( SILK_FIX_CONST( 1.5 * 3.14159 / 1000, 19 ), cutoff_Hz ), Fs/1000 ); + silk_assert( Fc_Q19 > 0 && Fc_Q19 < 32768 ); + + r_Q28 = SILK_FIX_CONST( 1.0, 28 ) - silk_MUL( SILK_FIX_CONST( 0.92, 9 ), Fc_Q19 ); + + /* b = r * [ 1; -2; 1 ]; */ + /* a = [ 1; -2 * r * ( 1 - 0.5 * Fc^2 ); r^2 ]; */ + B_Q28[ 0 ] = r_Q28; + B_Q28[ 1 ] = silk_LSHIFT( -r_Q28, 1 ); + B_Q28[ 2 ] = r_Q28; + + /* -r * ( 2 - Fc * Fc ); */ + r_Q22 = silk_RSHIFT( r_Q28, 6 ); + A_Q28[ 0 ] = silk_SMULWW( r_Q22, silk_SMULWW( Fc_Q19, Fc_Q19 ) - SILK_FIX_CONST( 2.0, 22 ) ); + A_Q28[ 1 ] = silk_SMULWW( r_Q22, r_Q22 ); + +#ifdef FIXED_POINT + if( channels == 1 ) { + silk_biquad_alt_stride1( in, B_Q28, A_Q28, hp_mem, out, len ); + } else { + silk_biquad_alt_stride2( in, B_Q28, A_Q28, hp_mem, out, len, arch ); + } +#else + silk_biquad_float( in, B_Q28, A_Q28, hp_mem, out, len, channels ); + if( channels == 2 ) { + silk_biquad_float( in+1, B_Q28, A_Q28, hp_mem+2, out+1, len, channels ); + } +#endif +} + +#ifdef FIXED_POINT +static void dc_reject(const opus_val16 *in, opus_int32 cutoff_Hz, opus_val16 *out, opus_val32 *hp_mem, int len, int channels, opus_int32 Fs) +{ + int c, i; + int shift; + + /* Approximates -round(log2(6.3*cutoff_Hz/Fs)) */ + shift=celt_ilog2(Fs/(cutoff_Hz*4)); + for (c=0;cFs/400; + if (st->user_bitrate_bps==OPUS_AUTO) + return 60*st->Fs/frame_size + st->Fs*st->channels; + else if (st->user_bitrate_bps==OPUS_BITRATE_MAX) + return max_data_bytes*8*st->Fs/frame_size; + else + return st->user_bitrate_bps; +} + +#ifndef DISABLE_FLOAT_API +#ifdef FIXED_POINT +#define PCM2VAL(x) FLOAT2INT16(x) +#else +#define PCM2VAL(x) SCALEIN(x) +#endif + +void downmix_float(const void *_x, opus_val32 *y, int subframe, int offset, int c1, int c2, int C) +{ + const float *x; + int j; + + x = (const float *)_x; + for (j=0;j-1) + { + for (j=0;j-1) + { + for (j=0;j= OPUS_FRAMESIZE_2_5_MS && variable_duration <= OPUS_FRAMESIZE_120_MS) + { + if (variable_duration <= OPUS_FRAMESIZE_40_MS) + new_size = (Fs/400)<<(variable_duration-OPUS_FRAMESIZE_2_5_MS); + else + new_size = (variable_duration-OPUS_FRAMESIZE_2_5_MS-2)*Fs/50; + } + else + return -1; + if (new_size>frame_size) + return -1; + if (400*new_size!=Fs && 200*new_size!=Fs && 100*new_size!=Fs && + 50*new_size!=Fs && 25*new_size!=Fs && 50*new_size!=3*Fs && + 50*new_size!=4*Fs && 50*new_size!=5*Fs && 50*new_size!=6*Fs) + return -1; + return new_size; +} + +opus_val16 compute_stereo_width(const opus_val16 *pcm, int frame_size, opus_int32 Fs, StereoWidthState *mem) +{ + opus_val32 xx, xy, yy; + opus_val16 sqrt_xx, sqrt_yy; + opus_val16 qrrt_xx, qrrt_yy; + int frame_rate; + int i; + opus_val16 short_alpha; + + frame_rate = Fs/frame_size; + short_alpha = Q15ONE - MULT16_16(25, Q15ONE)/IMAX(50,frame_rate); + xx=xy=yy=0; + /* Unroll by 4. The frame size is always a multiple of 4 *except* for + 2.5 ms frames at 12 kHz. Since this setting is very rare (and very + stupid), we just discard the last two samples. */ + for (i=0;iXX += MULT16_32_Q15(short_alpha, xx-mem->XX); + mem->XY += MULT16_32_Q15(short_alpha, xy-mem->XY); + mem->YY += MULT16_32_Q15(short_alpha, yy-mem->YY); + mem->XX = MAX32(0, mem->XX); + mem->XY = MAX32(0, mem->XY); + mem->YY = MAX32(0, mem->YY); + if (MAX32(mem->XX, mem->YY)>QCONST16(8e-4f, 18)) + { + opus_val16 corr; + opus_val16 ldiff; + opus_val16 width; + sqrt_xx = celt_sqrt(mem->XX); + sqrt_yy = celt_sqrt(mem->YY); + qrrt_xx = celt_sqrt(sqrt_xx); + qrrt_yy = celt_sqrt(sqrt_yy); + /* Inter-channel correlation */ + mem->XY = MIN32(mem->XY, sqrt_xx*sqrt_yy); + corr = SHR32(frac_div32(mem->XY,EPSILON+MULT16_16(sqrt_xx,sqrt_yy)),16); + /* Approximate loudness difference */ + ldiff = MULT16_16(Q15ONE, ABS16(qrrt_xx-qrrt_yy))/(EPSILON+qrrt_xx+qrrt_yy); + width = MULT16_16_Q15(celt_sqrt(QCONST32(1.f,30)-MULT16_16(corr,corr)), ldiff); + /* Smoothing over one second */ + mem->smoothed_width += (width-mem->smoothed_width)/frame_rate; + /* Peak follower */ + mem->max_follower = MAX16(mem->max_follower-QCONST16(.02f,15)/frame_rate, mem->smoothed_width); + } + /*printf("%f %f %f %f %f ", corr/(float)Q15ONE, ldiff/(float)Q15ONE, width/(float)Q15ONE, mem->smoothed_width/(float)Q15ONE, mem->max_follower/(float)Q15ONE);*/ + return EXTRACT16(MIN32(Q15ONE, MULT16_16(20, mem->max_follower))); +} + +static int decide_fec(int useInBandFEC, int PacketLoss_perc, int last_fec, int mode, int *bandwidth, opus_int32 rate) +{ + int orig_bandwidth; + if (!useInBandFEC || PacketLoss_perc == 0 || mode == MODE_CELT_ONLY) + return 0; + orig_bandwidth = *bandwidth; + for (;;) + { + opus_int32 hysteresis; + opus_int32 LBRR_rate_thres_bps; + /* Compute threshold for using FEC at the current bandwidth setting */ + LBRR_rate_thres_bps = fec_thresholds[2*(*bandwidth - OPUS_BANDWIDTH_NARROWBAND)]; + hysteresis = fec_thresholds[2*(*bandwidth - OPUS_BANDWIDTH_NARROWBAND) + 1]; + if (last_fec == 1) LBRR_rate_thres_bps -= hysteresis; + if (last_fec == 0) LBRR_rate_thres_bps += hysteresis; + LBRR_rate_thres_bps = silk_SMULWB( silk_MUL( LBRR_rate_thres_bps, + 125 - silk_min( PacketLoss_perc, 25 ) ), SILK_FIX_CONST( 0.01, 16 ) ); + /* If loss <= 5%, we look at whether we have enough rate to enable FEC. + If loss > 5%, we decrease the bandwidth until we can enable FEC. */ + if (rate > LBRR_rate_thres_bps) + return 1; + else if (PacketLoss_perc <= 5) + return 0; + else if (*bandwidth > OPUS_BANDWIDTH_NARROWBAND) + (*bandwidth)--; + else + break; + } + /* Couldn't find any bandwidth to enable FEC, keep original bandwidth. */ + *bandwidth = orig_bandwidth; + return 0; +} + +static int compute_silk_rate_for_hybrid(int rate, int bandwidth, int frame20ms, int vbr, int fec, int channels) { + int entry; + int i; + int N; + int silk_rate; + static int rate_table[][5] = { + /* |total| |-------- SILK------------| + |-- No FEC -| |--- FEC ---| + 10ms 20ms 10ms 20ms */ + { 0, 0, 0, 0, 0}, + {12000, 10000, 10000, 11000, 11000}, + {16000, 13500, 13500, 15000, 15000}, + {20000, 16000, 16000, 18000, 18000}, + {24000, 18000, 18000, 21000, 21000}, + {32000, 22000, 22000, 28000, 28000}, + {64000, 38000, 38000, 50000, 50000} + }; + /* Do the allocation per-channel. */ + rate /= channels; + entry = 1 + frame20ms + 2*fec; + N = sizeof(rate_table)/sizeof(rate_table[0]); + for (i=1;i rate) break; + } + if (i == N) + { + silk_rate = rate_table[i-1][entry]; + /* For now, just give 50% of the extra bits to SILK. */ + silk_rate += (rate-rate_table[i-1][0])/2; + } else { + opus_int32 lo, hi, x0, x1; + lo = rate_table[i-1][entry]; + hi = rate_table[i][entry]; + x0 = rate_table[i-1][0]; + x1 = rate_table[i][0]; + silk_rate = (lo*(x1-rate) + hi*(rate-x0))/(x1-x0); + } + if (!vbr) + { + /* Tiny boost to SILK for CBR. We should probably tune this better. */ + silk_rate += 100; + } + if (bandwidth==OPUS_BANDWIDTH_SUPERWIDEBAND) + silk_rate += 300; + silk_rate *= channels; + /* Small adjustment for stereo (calibrated for 32 kb/s, haven't tried other bitrates). */ + if (channels == 2 && rate >= 12000) + silk_rate -= 1000; + return silk_rate; +} + +/* Returns the equivalent bitrate corresponding to 20 ms frames, + complexity 10 VBR operation. */ +static opus_int32 compute_equiv_rate(opus_int32 bitrate, int channels, + int frame_rate, int vbr, int mode, int complexity, int loss) +{ + opus_int32 equiv; + equiv = bitrate; + /* Take into account overhead from smaller frames. */ + if (frame_rate > 50) + equiv -= (40*channels+20)*(frame_rate - 50); + /* CBR is about a 8% penalty for both SILK and CELT. */ + if (!vbr) + equiv -= equiv/12; + /* Complexity makes about 10% difference (from 0 to 10) in general. */ + equiv = equiv * (90+complexity)/100; + if (mode == MODE_SILK_ONLY || mode == MODE_HYBRID) + { + /* SILK complexity 0-1 uses the non-delayed-decision NSQ, which + costs about 20%. */ + if (complexity<2) + equiv = equiv*4/5; + equiv -= equiv*loss/(6*loss + 10); + } else if (mode == MODE_CELT_ONLY) { + /* CELT complexity 0-4 doesn't have the pitch filter, which costs + about 10%. */ + if (complexity<5) + equiv = equiv*9/10; + } else { + /* Mode not known yet */ + /* Half the SILK loss*/ + equiv -= equiv*loss/(12*loss + 20); + } + return equiv; +} + +#ifndef DISABLE_FLOAT_API + +int is_digital_silence(const opus_val16* pcm, int frame_size, int channels, int lsb_depth) +{ + int silence = 0; + opus_val32 sample_max = 0; +#ifdef MLP_TRAINING + return 0; +#endif + sample_max = celt_maxabs16(pcm, frame_size*channels); + +#ifdef FIXED_POINT + silence = (sample_max == 0); + (void)lsb_depth; +#else + silence = (sample_max <= (opus_val16) 1 / (1 << lsb_depth)); +#endif + + return silence; +} + +#ifdef FIXED_POINT +static opus_val32 compute_frame_energy(const opus_val16 *pcm, int frame_size, int channels, int arch) +{ + int i; + opus_val32 sample_max; + int max_shift; + int shift; + opus_val32 energy = 0; + int len = frame_size*channels; + (void)arch; + /* Max amplitude in the signal */ + sample_max = celt_maxabs16(pcm, len); + + /* Compute the right shift required in the MAC to avoid an overflow */ + max_shift = celt_ilog2(len); + shift = IMAX(0, (celt_ilog2(sample_max) << 1) + max_shift - 28); + + /* Compute the energy */ + for (i=0; i= (PSEUDO_SNR_THRESHOLD * noise_energy); + } + } + + if (is_silence) + { + /* The number of consecutive DTX frames should be within the allowed bounds */ + (*nb_no_activity_frames)++; + + if (*nb_no_activity_frames > NB_SPEECH_FRAMES_BEFORE_DTX) + { + if (*nb_no_activity_frames <= (NB_SPEECH_FRAMES_BEFORE_DTX + MAX_CONSECUTIVE_DTX)) + /* Valid frame for DTX! */ + return 1; + else + (*nb_no_activity_frames) = NB_SPEECH_FRAMES_BEFORE_DTX; + } + } else + (*nb_no_activity_frames) = 0; + + return 0; +} + +#endif + +static opus_int32 encode_multiframe_packet(OpusEncoder *st, + const opus_val16 *pcm, + int nb_frames, + int frame_size, + unsigned char *data, + opus_int32 out_data_bytes, + int to_celt, + int lsb_depth, + int float_api) +{ + int i; + int ret = 0; + VARDECL(unsigned char, tmp_data); + int bak_mode, bak_bandwidth, bak_channels, bak_to_mono; + VARDECL(OpusRepacketizer, rp); + int max_header_bytes; + opus_int32 bytes_per_frame; + opus_int32 cbr_bytes; + opus_int32 repacketize_len; + int tmp_len; + ALLOC_STACK; + + /* Worst cases: + * 2 frames: Code 2 with different compressed sizes + * >2 frames: Code 3 VBR */ + max_header_bytes = nb_frames == 2 ? 3 : (2+(nb_frames-1)*2); + + if (st->use_vbr || st->user_bitrate_bps==OPUS_BITRATE_MAX) + repacketize_len = out_data_bytes; + else { + cbr_bytes = 3*st->bitrate_bps/(3*8*st->Fs/(frame_size*nb_frames)); + repacketize_len = IMIN(cbr_bytes, out_data_bytes); + } + bytes_per_frame = IMIN(1276, 1+(repacketize_len-max_header_bytes)/nb_frames); + + ALLOC(tmp_data, nb_frames*bytes_per_frame, unsigned char); + ALLOC(rp, 1, OpusRepacketizer); + opus_repacketizer_init(rp); + + bak_mode = st->user_forced_mode; + bak_bandwidth = st->user_bandwidth; + bak_channels = st->force_channels; + + st->user_forced_mode = st->mode; + st->user_bandwidth = st->bandwidth; + st->force_channels = st->stream_channels; + + bak_to_mono = st->silk_mode.toMono; + if (bak_to_mono) + st->force_channels = 1; + else + st->prev_channels = st->stream_channels; + + for (i=0;isilk_mode.toMono = 0; + st->nonfinal_frame = i<(nb_frames-1); + + /* When switching from SILK/Hybrid to CELT, only ask for a switch at the last frame */ + if (to_celt && i==nb_frames-1) + st->user_forced_mode = MODE_CELT_ONLY; + + tmp_len = opus_encode_native(st, pcm+i*(st->channels*frame_size), frame_size, + tmp_data+i*bytes_per_frame, bytes_per_frame, lsb_depth, NULL, 0, 0, 0, 0, + NULL, float_api); + + if (tmp_len<0) + { + RESTORE_STACK; + return OPUS_INTERNAL_ERROR; + } + + ret = opus_repacketizer_cat(rp, tmp_data+i*bytes_per_frame, tmp_len); + + if (ret<0) + { + RESTORE_STACK; + return OPUS_INTERNAL_ERROR; + } + } + + ret = opus_repacketizer_out_range_impl(rp, 0, nb_frames, data, repacketize_len, 0, !st->use_vbr); + + if (ret<0) + { + RESTORE_STACK; + return OPUS_INTERNAL_ERROR; + } + + /* Discard configs that were forced locally for the purpose of repacketization */ + st->user_forced_mode = bak_mode; + st->user_bandwidth = bak_bandwidth; + st->force_channels = bak_channels; + st->silk_mode.toMono = bak_to_mono; + + RESTORE_STACK; + return ret; +} + +static int compute_redundancy_bytes(opus_int32 max_data_bytes, opus_int32 bitrate_bps, int frame_rate, int channels) +{ + int redundancy_bytes_cap; + int redundancy_bytes; + opus_int32 redundancy_rate; + int base_bits; + opus_int32 available_bits; + base_bits = (40*channels+20); + + /* Equivalent rate for 5 ms frames. */ + redundancy_rate = bitrate_bps + base_bits*(200 - frame_rate); + /* For VBR, further increase the bitrate if we can afford it. It's pretty short + and we'll avoid artefacts. */ + redundancy_rate = 3*redundancy_rate/2; + redundancy_bytes = redundancy_rate/1600; + + /* Compute the max rate we can use given CBR or VBR with cap. */ + available_bits = max_data_bytes*8 - 2*base_bits; + redundancy_bytes_cap = (available_bits*240/(240+48000/frame_rate) + base_bits)/8; + redundancy_bytes = IMIN(redundancy_bytes, redundancy_bytes_cap); + /* It we can't get enough bits for redundancy to be worth it, rely on the decoder PLC. */ + if (redundancy_bytes > 4 + 8*channels) + redundancy_bytes = IMIN(257, redundancy_bytes); + else + redundancy_bytes = 0; + return redundancy_bytes; +} + +opus_int32 opus_encode_native(OpusEncoder *st, const opus_val16 *pcm, int frame_size, + unsigned char *data, opus_int32 out_data_bytes, int lsb_depth, + const void *analysis_pcm, opus_int32 analysis_size, int c1, int c2, + int analysis_channels, downmix_func downmix, int float_api) +{ + void *silk_enc; + CELTEncoder *celt_enc; + int i; + int ret=0; + opus_int32 nBytes; + ec_enc enc; + int bytes_target; + int prefill=0; + int start_band = 0; + int redundancy = 0; + int redundancy_bytes = 0; /* Number of bytes to use for redundancy frame */ + int celt_to_silk = 0; + VARDECL(opus_val16, pcm_buf); + int nb_compr_bytes; + int to_celt = 0; + opus_uint32 redundant_rng = 0; + int cutoff_Hz, hp_freq_smth1; + int voice_est; /* Probability of voice in Q7 */ + opus_int32 equiv_rate; + int delay_compensation; + int frame_rate; + opus_int32 max_rate; /* Max bitrate we're allowed to use */ + int curr_bandwidth; + opus_val16 HB_gain; + opus_int32 max_data_bytes; /* Max number of bytes we're allowed to use */ + int total_buffer; + opus_val16 stereo_width; + const CELTMode *celt_mode; +#ifndef DISABLE_FLOAT_API + AnalysisInfo analysis_info; + int analysis_read_pos_bak=-1; + int analysis_read_subframe_bak=-1; + int is_silence = 0; +#endif + VARDECL(opus_val16, tmp_prefill); + + ALLOC_STACK; + + max_data_bytes = IMIN(1276, out_data_bytes); + + st->rangeFinal = 0; + if (frame_size <= 0 || max_data_bytes <= 0) + { + RESTORE_STACK; + return OPUS_BAD_ARG; + } + + /* Cannot encode 100 ms in 1 byte */ + if (max_data_bytes==1 && st->Fs==(frame_size*10)) + { + RESTORE_STACK; + return OPUS_BUFFER_TOO_SMALL; + } + + silk_enc = (char*)st+st->silk_enc_offset; + celt_enc = (CELTEncoder*)((char*)st+st->celt_enc_offset); + if (st->application == OPUS_APPLICATION_RESTRICTED_LOWDELAY) + delay_compensation = 0; + else + delay_compensation = st->delay_compensation; + + lsb_depth = IMIN(lsb_depth, st->lsb_depth); + + celt_encoder_ctl(celt_enc, CELT_GET_MODE(&celt_mode)); +#ifndef DISABLE_FLOAT_API + analysis_info.valid = 0; +#ifdef FIXED_POINT + if (st->silk_mode.complexity >= 10 && st->Fs>=16000) +#else + if (st->silk_mode.complexity >= 7 && st->Fs>=16000) +#endif + { + is_silence = is_digital_silence(pcm, frame_size, st->channels, lsb_depth); + analysis_read_pos_bak = st->analysis.read_pos; + analysis_read_subframe_bak = st->analysis.read_subframe; + run_analysis(&st->analysis, celt_mode, analysis_pcm, analysis_size, frame_size, + c1, c2, analysis_channels, st->Fs, + lsb_depth, downmix, &analysis_info); + + /* Track the peak signal energy */ + if (!is_silence && analysis_info.activity_probability > DTX_ACTIVITY_THRESHOLD) + st->peak_signal_energy = MAX32(MULT16_32_Q15(QCONST16(0.999f, 15), st->peak_signal_energy), + compute_frame_energy(pcm, frame_size, st->channels, st->arch)); + } else if (st->analysis.initialized) { + tonality_analysis_reset(&st->analysis); + } +#else + (void)analysis_pcm; + (void)analysis_size; + (void)c1; + (void)c2; + (void)analysis_channels; + (void)downmix; +#endif + +#ifndef DISABLE_FLOAT_API + /* Reset voice_ratio if this frame is not silent or if analysis is disabled. + * Otherwise, preserve voice_ratio from the last non-silent frame */ + if (!is_silence) + st->voice_ratio = -1; + + st->detected_bandwidth = 0; + if (analysis_info.valid) + { + int analysis_bandwidth; + if (st->signal_type == OPUS_AUTO) + { + float prob; + if (st->prev_mode == 0) + prob = analysis_info.music_prob; + else if (st->prev_mode == MODE_CELT_ONLY) + prob = analysis_info.music_prob_max; + else + prob = analysis_info.music_prob_min; + st->voice_ratio = (int)floor(.5+100*(1-prob)); + } + + analysis_bandwidth = analysis_info.bandwidth; + if (analysis_bandwidth<=12) + st->detected_bandwidth = OPUS_BANDWIDTH_NARROWBAND; + else if (analysis_bandwidth<=14) + st->detected_bandwidth = OPUS_BANDWIDTH_MEDIUMBAND; + else if (analysis_bandwidth<=16) + st->detected_bandwidth = OPUS_BANDWIDTH_WIDEBAND; + else if (analysis_bandwidth<=18) + st->detected_bandwidth = OPUS_BANDWIDTH_SUPERWIDEBAND; + else + st->detected_bandwidth = OPUS_BANDWIDTH_FULLBAND; + } +#else + st->voice_ratio = -1; +#endif + + if (st->channels==2 && st->force_channels!=1) + stereo_width = compute_stereo_width(pcm, frame_size, st->Fs, &st->width_mem); + else + stereo_width = 0; + total_buffer = delay_compensation; + st->bitrate_bps = user_bitrate_to_bitrate(st, frame_size, max_data_bytes); + + frame_rate = st->Fs/frame_size; + if (!st->use_vbr) + { + int cbrBytes; + /* Multiply by 12 to make sure the division is exact. */ + int frame_rate12 = 12*st->Fs/frame_size; + /* We need to make sure that "int" values always fit in 16 bits. */ + cbrBytes = IMIN( (12*st->bitrate_bps/8 + frame_rate12/2)/frame_rate12, max_data_bytes); + st->bitrate_bps = cbrBytes*(opus_int32)frame_rate12*8/12; + /* Make sure we provide at least one byte to avoid failing. */ + max_data_bytes = IMAX(1, cbrBytes); + } + if (max_data_bytes<3 || st->bitrate_bps < 3*frame_rate*8 + || (frame_rate<50 && (max_data_bytes*frame_rate<300 || st->bitrate_bps < 2400))) + { + /*If the space is too low to do something useful, emit 'PLC' frames.*/ + int tocmode = st->mode; + int bw = st->bandwidth == 0 ? OPUS_BANDWIDTH_NARROWBAND : st->bandwidth; + int packet_code = 0; + int num_multiframes = 0; + + if (tocmode==0) + tocmode = MODE_SILK_ONLY; + if (frame_rate>100) + tocmode = MODE_CELT_ONLY; + /* 40 ms -> 2 x 20 ms if in CELT_ONLY or HYBRID mode */ + if (frame_rate==25 && tocmode!=MODE_SILK_ONLY) + { + frame_rate = 50; + packet_code = 1; + } + + /* >= 60 ms frames */ + if (frame_rate<=16) + { + /* 1 x 60 ms, 2 x 40 ms, 2 x 60 ms */ + if (out_data_bytes==1 || (tocmode==MODE_SILK_ONLY && frame_rate!=10)) + { + tocmode = MODE_SILK_ONLY; + + packet_code = frame_rate <= 12; + frame_rate = frame_rate == 12 ? 25 : 16; + } + else + { + num_multiframes = 50/frame_rate; + frame_rate = 50; + packet_code = 3; + } + } + + if(tocmode==MODE_SILK_ONLY&&bw>OPUS_BANDWIDTH_WIDEBAND) + bw=OPUS_BANDWIDTH_WIDEBAND; + else if (tocmode==MODE_CELT_ONLY&&bw==OPUS_BANDWIDTH_MEDIUMBAND) + bw=OPUS_BANDWIDTH_NARROWBAND; + else if (tocmode==MODE_HYBRID&&bw<=OPUS_BANDWIDTH_SUPERWIDEBAND) + bw=OPUS_BANDWIDTH_SUPERWIDEBAND; + + data[0] = gen_toc(tocmode, frame_rate, bw, st->stream_channels); + data[0] |= packet_code; + + ret = packet_code <= 1 ? 1 : 2; + + max_data_bytes = IMAX(max_data_bytes, ret); + + if (packet_code==3) + data[1] = num_multiframes; + + if (!st->use_vbr) + { + ret = opus_packet_pad(data, ret, max_data_bytes); + if (ret == OPUS_OK) + ret = max_data_bytes; + else + ret = OPUS_INTERNAL_ERROR; + } + RESTORE_STACK; + return ret; + } + max_rate = frame_rate*max_data_bytes*8; + + /* Equivalent 20-ms rate for mode/channel/bandwidth decisions */ + equiv_rate = compute_equiv_rate(st->bitrate_bps, st->channels, st->Fs/frame_size, + st->use_vbr, 0, st->silk_mode.complexity, st->silk_mode.packetLossPercentage); + + if (st->signal_type == OPUS_SIGNAL_VOICE) + voice_est = 127; + else if (st->signal_type == OPUS_SIGNAL_MUSIC) + voice_est = 0; + else if (st->voice_ratio >= 0) + { + voice_est = st->voice_ratio*327>>8; + /* For AUDIO, never be more than 90% confident of having speech */ + if (st->application == OPUS_APPLICATION_AUDIO) + voice_est = IMIN(voice_est, 115); + } else if (st->application == OPUS_APPLICATION_VOIP) + voice_est = 115; + else + voice_est = 48; + + if (st->force_channels!=OPUS_AUTO && st->channels == 2) + { + st->stream_channels = st->force_channels; + } else { +#ifdef FUZZING + /* Random mono/stereo decision */ + if (st->channels == 2 && (rand()&0x1F)==0) + st->stream_channels = 3-st->stream_channels; +#else + /* Rate-dependent mono-stereo decision */ + if (st->channels == 2) + { + opus_int32 stereo_threshold; + stereo_threshold = stereo_music_threshold + ((voice_est*voice_est*(stereo_voice_threshold-stereo_music_threshold))>>14); + if (st->stream_channels == 2) + stereo_threshold -= 1000; + else + stereo_threshold += 1000; + st->stream_channels = (equiv_rate > stereo_threshold) ? 2 : 1; + } else { + st->stream_channels = st->channels; + } +#endif + } + /* Update equivalent rate for channels decision. */ + equiv_rate = compute_equiv_rate(st->bitrate_bps, st->stream_channels, st->Fs/frame_size, + st->use_vbr, 0, st->silk_mode.complexity, st->silk_mode.packetLossPercentage); + + /* Allow SILK DTX if DTX is enabled but the generalized DTX cannot be used, + e.g. because of the complexity setting or sample rate. */ +#ifndef DISABLE_FLOAT_API + st->silk_mode.useDTX = st->use_dtx && !(analysis_info.valid || is_silence); +#else + st->silk_mode.useDTX = st->use_dtx; +#endif + + /* Mode selection depending on application and signal type */ + if (st->application == OPUS_APPLICATION_RESTRICTED_LOWDELAY) + { + st->mode = MODE_CELT_ONLY; + } else if (st->user_forced_mode == OPUS_AUTO) + { +#ifdef FUZZING + /* Random mode switching */ + if ((rand()&0xF)==0) + { + if ((rand()&0x1)==0) + st->mode = MODE_CELT_ONLY; + else + st->mode = MODE_SILK_ONLY; + } else { + if (st->prev_mode==MODE_CELT_ONLY) + st->mode = MODE_CELT_ONLY; + else + st->mode = MODE_SILK_ONLY; + } +#else + opus_int32 mode_voice, mode_music; + opus_int32 threshold; + + /* Interpolate based on stereo width */ + mode_voice = (opus_int32)(MULT16_32_Q15(Q15ONE-stereo_width,mode_thresholds[0][0]) + + MULT16_32_Q15(stereo_width,mode_thresholds[1][0])); + mode_music = (opus_int32)(MULT16_32_Q15(Q15ONE-stereo_width,mode_thresholds[1][1]) + + MULT16_32_Q15(stereo_width,mode_thresholds[1][1])); + /* Interpolate based on speech/music probability */ + threshold = mode_music + ((voice_est*voice_est*(mode_voice-mode_music))>>14); + /* Bias towards SILK for VoIP because of some useful features */ + if (st->application == OPUS_APPLICATION_VOIP) + threshold += 8000; + + /*printf("%f %d\n", stereo_width/(float)Q15ONE, threshold);*/ + /* Hysteresis */ + if (st->prev_mode == MODE_CELT_ONLY) + threshold -= 4000; + else if (st->prev_mode>0) + threshold += 4000; + + st->mode = (equiv_rate >= threshold) ? MODE_CELT_ONLY: MODE_SILK_ONLY; + + /* When FEC is enabled and there's enough packet loss, use SILK */ + if (st->silk_mode.useInBandFEC && st->silk_mode.packetLossPercentage > (128-voice_est)>>4) + st->mode = MODE_SILK_ONLY; + /* When encoding voice and DTX is enabled but the generalized DTX cannot be used, + use SILK in order to make use of its DTX. */ + if (st->silk_mode.useDTX && voice_est > 100) + st->mode = MODE_SILK_ONLY; +#endif + + /* If max_data_bytes represents less than 6 kb/s, switch to CELT-only mode */ + if (max_data_bytes < (frame_rate > 50 ? 9000 : 6000)*frame_size / (st->Fs * 8)) + st->mode = MODE_CELT_ONLY; + } else { + st->mode = st->user_forced_mode; + } + + /* Override the chosen mode to make sure we meet the requested frame size */ + if (st->mode != MODE_CELT_ONLY && frame_size < st->Fs/100) + st->mode = MODE_CELT_ONLY; + if (st->lfe) + st->mode = MODE_CELT_ONLY; + + if (st->prev_mode > 0 && + ((st->mode != MODE_CELT_ONLY && st->prev_mode == MODE_CELT_ONLY) || + (st->mode == MODE_CELT_ONLY && st->prev_mode != MODE_CELT_ONLY))) + { + redundancy = 1; + celt_to_silk = (st->mode != MODE_CELT_ONLY); + if (!celt_to_silk) + { + /* Switch to SILK/hybrid if frame size is 10 ms or more*/ + if (frame_size >= st->Fs/100) + { + st->mode = st->prev_mode; + to_celt = 1; + } else { + redundancy=0; + } + } + } + + /* When encoding multiframes, we can ask for a switch to CELT only in the last frame. This switch + * is processed above as the requested mode shouldn't interrupt stereo->mono transition. */ + if (st->stream_channels == 1 && st->prev_channels ==2 && st->silk_mode.toMono==0 + && st->mode != MODE_CELT_ONLY && st->prev_mode != MODE_CELT_ONLY) + { + /* Delay stereo->mono transition by two frames so that SILK can do a smooth downmix */ + st->silk_mode.toMono = 1; + st->stream_channels = 2; + } else { + st->silk_mode.toMono = 0; + } + + /* Update equivalent rate with mode decision. */ + equiv_rate = compute_equiv_rate(st->bitrate_bps, st->stream_channels, st->Fs/frame_size, + st->use_vbr, st->mode, st->silk_mode.complexity, st->silk_mode.packetLossPercentage); + + if (st->mode != MODE_CELT_ONLY && st->prev_mode == MODE_CELT_ONLY) + { + silk_EncControlStruct dummy; + silk_InitEncoder( silk_enc, st->arch, &dummy); + prefill=1; + } + + /* Automatic (rate-dependent) bandwidth selection */ + if (st->mode == MODE_CELT_ONLY || st->first || st->silk_mode.allowBandwidthSwitch) + { + const opus_int32 *voice_bandwidth_thresholds, *music_bandwidth_thresholds; + opus_int32 bandwidth_thresholds[8]; + int bandwidth = OPUS_BANDWIDTH_FULLBAND; + + if (st->channels==2 && st->force_channels!=1) + { + voice_bandwidth_thresholds = stereo_voice_bandwidth_thresholds; + music_bandwidth_thresholds = stereo_music_bandwidth_thresholds; + } else { + voice_bandwidth_thresholds = mono_voice_bandwidth_thresholds; + music_bandwidth_thresholds = mono_music_bandwidth_thresholds; + } + /* Interpolate bandwidth thresholds depending on voice estimation */ + for (i=0;i<8;i++) + { + bandwidth_thresholds[i] = music_bandwidth_thresholds[i] + + ((voice_est*voice_est*(voice_bandwidth_thresholds[i]-music_bandwidth_thresholds[i]))>>14); + } + do { + int threshold, hysteresis; + threshold = bandwidth_thresholds[2*(bandwidth-OPUS_BANDWIDTH_MEDIUMBAND)]; + hysteresis = bandwidth_thresholds[2*(bandwidth-OPUS_BANDWIDTH_MEDIUMBAND)+1]; + if (!st->first) + { + if (st->auto_bandwidth >= bandwidth) + threshold -= hysteresis; + else + threshold += hysteresis; + } + if (equiv_rate >= threshold) + break; + } while (--bandwidth>OPUS_BANDWIDTH_NARROWBAND); + /* We don't use mediumband anymore, except when explicitly requested or during + mode transitions. */ + if (bandwidth == OPUS_BANDWIDTH_MEDIUMBAND) + bandwidth = OPUS_BANDWIDTH_WIDEBAND; + st->bandwidth = st->auto_bandwidth = bandwidth; + /* Prevents any transition to SWB/FB until the SILK layer has fully + switched to WB mode and turned the variable LP filter off */ + if (!st->first && st->mode != MODE_CELT_ONLY && !st->silk_mode.inWBmodeWithoutVariableLP && st->bandwidth > OPUS_BANDWIDTH_WIDEBAND) + st->bandwidth = OPUS_BANDWIDTH_WIDEBAND; + } + + if (st->bandwidth>st->max_bandwidth) + st->bandwidth = st->max_bandwidth; + + if (st->user_bandwidth != OPUS_AUTO) + st->bandwidth = st->user_bandwidth; + + /* This prevents us from using hybrid at unsafe CBR/max rates */ + if (st->mode != MODE_CELT_ONLY && max_rate < 15000) + { + st->bandwidth = IMIN(st->bandwidth, OPUS_BANDWIDTH_WIDEBAND); + } + + /* Prevents Opus from wasting bits on frequencies that are above + the Nyquist rate of the input signal */ + if (st->Fs <= 24000 && st->bandwidth > OPUS_BANDWIDTH_SUPERWIDEBAND) + st->bandwidth = OPUS_BANDWIDTH_SUPERWIDEBAND; + if (st->Fs <= 16000 && st->bandwidth > OPUS_BANDWIDTH_WIDEBAND) + st->bandwidth = OPUS_BANDWIDTH_WIDEBAND; + if (st->Fs <= 12000 && st->bandwidth > OPUS_BANDWIDTH_MEDIUMBAND) + st->bandwidth = OPUS_BANDWIDTH_MEDIUMBAND; + if (st->Fs <= 8000 && st->bandwidth > OPUS_BANDWIDTH_NARROWBAND) + st->bandwidth = OPUS_BANDWIDTH_NARROWBAND; +#ifndef DISABLE_FLOAT_API + /* Use detected bandwidth to reduce the encoded bandwidth. */ + if (st->detected_bandwidth && st->user_bandwidth == OPUS_AUTO) + { + int min_detected_bandwidth; + /* Makes bandwidth detection more conservative just in case the detector + gets it wrong when we could have coded a high bandwidth transparently. + When operating in SILK/hybrid mode, we don't go below wideband to avoid + more complicated switches that require redundancy. */ + if (equiv_rate <= 18000*st->stream_channels && st->mode == MODE_CELT_ONLY) + min_detected_bandwidth = OPUS_BANDWIDTH_NARROWBAND; + else if (equiv_rate <= 24000*st->stream_channels && st->mode == MODE_CELT_ONLY) + min_detected_bandwidth = OPUS_BANDWIDTH_MEDIUMBAND; + else if (equiv_rate <= 30000*st->stream_channels) + min_detected_bandwidth = OPUS_BANDWIDTH_WIDEBAND; + else if (equiv_rate <= 44000*st->stream_channels) + min_detected_bandwidth = OPUS_BANDWIDTH_SUPERWIDEBAND; + else + min_detected_bandwidth = OPUS_BANDWIDTH_FULLBAND; + + st->detected_bandwidth = IMAX(st->detected_bandwidth, min_detected_bandwidth); + st->bandwidth = IMIN(st->bandwidth, st->detected_bandwidth); + } +#endif + st->silk_mode.LBRR_coded = decide_fec(st->silk_mode.useInBandFEC, st->silk_mode.packetLossPercentage, + st->silk_mode.LBRR_coded, st->mode, &st->bandwidth, equiv_rate); + celt_encoder_ctl(celt_enc, OPUS_SET_LSB_DEPTH(lsb_depth)); + + /* CELT mode doesn't support mediumband, use wideband instead */ + if (st->mode == MODE_CELT_ONLY && st->bandwidth == OPUS_BANDWIDTH_MEDIUMBAND) + st->bandwidth = OPUS_BANDWIDTH_WIDEBAND; + if (st->lfe) + st->bandwidth = OPUS_BANDWIDTH_NARROWBAND; + + curr_bandwidth = st->bandwidth; + + /* Chooses the appropriate mode for speech + *NEVER* switch to/from CELT-only mode here as this will invalidate some assumptions */ + if (st->mode == MODE_SILK_ONLY && curr_bandwidth > OPUS_BANDWIDTH_WIDEBAND) + st->mode = MODE_HYBRID; + if (st->mode == MODE_HYBRID && curr_bandwidth <= OPUS_BANDWIDTH_WIDEBAND) + st->mode = MODE_SILK_ONLY; + + /* Can't support higher than >60 ms frames, and >20 ms when in Hybrid or CELT-only modes */ + if ((frame_size > st->Fs/50 && (st->mode != MODE_SILK_ONLY)) || frame_size > 3*st->Fs/50) + { + int enc_frame_size; + int nb_frames; + + if (st->mode == MODE_SILK_ONLY) + { + if (frame_size == 2*st->Fs/25) /* 80 ms -> 2x 40 ms */ + enc_frame_size = st->Fs/25; + else if (frame_size == 3*st->Fs/25) /* 120 ms -> 2x 60 ms */ + enc_frame_size = 3*st->Fs/50; + else /* 100 ms -> 5x 20 ms */ + enc_frame_size = st->Fs/50; + } + else + enc_frame_size = st->Fs/50; + + nb_frames = frame_size/enc_frame_size; + +#ifndef DISABLE_FLOAT_API + if (analysis_read_pos_bak!= -1) + { + st->analysis.read_pos = analysis_read_pos_bak; + st->analysis.read_subframe = analysis_read_subframe_bak; + } +#endif + + ret = encode_multiframe_packet(st, pcm, nb_frames, enc_frame_size, data, + out_data_bytes, to_celt, lsb_depth, float_api); + + RESTORE_STACK; + return ret; + } + + /* For the first frame at a new SILK bandwidth */ + if (st->silk_bw_switch) + { + redundancy = 1; + celt_to_silk = 1; + st->silk_bw_switch = 0; + /* Do a prefill without reseting the sampling rate control. */ + prefill=2; + } + + /* If we decided to go with CELT, make sure redundancy is off, no matter what + we decided earlier. */ + if (st->mode == MODE_CELT_ONLY) + redundancy = 0; + + if (redundancy) + { + redundancy_bytes = compute_redundancy_bytes(max_data_bytes, st->bitrate_bps, frame_rate, st->stream_channels); + if (redundancy_bytes == 0) + redundancy = 0; + } + + /* printf("%d %d %d %d\n", st->bitrate_bps, st->stream_channels, st->mode, curr_bandwidth); */ + bytes_target = IMIN(max_data_bytes-redundancy_bytes, st->bitrate_bps * frame_size / (st->Fs * 8)) - 1; + + data += 1; + + ec_enc_init(&enc, data, max_data_bytes-1); + + ALLOC(pcm_buf, (total_buffer+frame_size)*st->channels, opus_val16); + OPUS_COPY(pcm_buf, &st->delay_buffer[(st->encoder_buffer-total_buffer)*st->channels], total_buffer*st->channels); + + if (st->mode == MODE_CELT_ONLY) + hp_freq_smth1 = silk_LSHIFT( silk_lin2log( VARIABLE_HP_MIN_CUTOFF_HZ ), 8 ); + else + hp_freq_smth1 = ((silk_encoder*)silk_enc)->state_Fxx[0].sCmn.variable_HP_smth1_Q15; + + st->variable_HP_smth2_Q15 = silk_SMLAWB( st->variable_HP_smth2_Q15, + hp_freq_smth1 - st->variable_HP_smth2_Q15, SILK_FIX_CONST( VARIABLE_HP_SMTH_COEF2, 16 ) ); + + /* convert from log scale to Hertz */ + cutoff_Hz = silk_log2lin( silk_RSHIFT( st->variable_HP_smth2_Q15, 8 ) ); + + if (st->application == OPUS_APPLICATION_VOIP) + { + hp_cutoff(pcm, cutoff_Hz, &pcm_buf[total_buffer*st->channels], st->hp_mem, frame_size, st->channels, st->Fs, st->arch); + } else { + dc_reject(pcm, 3, &pcm_buf[total_buffer*st->channels], st->hp_mem, frame_size, st->channels, st->Fs); + } +#ifndef FIXED_POINT + if (float_api) + { + opus_val32 sum; + sum = celt_inner_prod(&pcm_buf[total_buffer*st->channels], &pcm_buf[total_buffer*st->channels], frame_size*st->channels, st->arch); + /* This should filter out both NaNs and ridiculous signals that could + cause NaNs further down. */ + if (!(sum < 1e9f) || celt_isnan(sum)) + { + OPUS_CLEAR(&pcm_buf[total_buffer*st->channels], frame_size*st->channels); + st->hp_mem[0] = st->hp_mem[1] = st->hp_mem[2] = st->hp_mem[3] = 0; + } + } +#endif + + + /* SILK processing */ + HB_gain = Q15ONE; + if (st->mode != MODE_CELT_ONLY) + { + opus_int32 total_bitRate, celt_rate; + opus_int activity; +#ifdef FIXED_POINT + const opus_int16 *pcm_silk; +#else + VARDECL(opus_int16, pcm_silk); + ALLOC(pcm_silk, st->channels*frame_size, opus_int16); +#endif + + activity = VAD_NO_DECISION; +#ifndef DISABLE_FLOAT_API + if( analysis_info.valid ) { + /* Inform SILK about the Opus VAD decision */ + activity = ( analysis_info.activity_probability >= DTX_ACTIVITY_THRESHOLD ); + } +#endif + + /* Distribute bits between SILK and CELT */ + total_bitRate = 8 * bytes_target * frame_rate; + if( st->mode == MODE_HYBRID ) { + /* Base rate for SILK */ + st->silk_mode.bitRate = compute_silk_rate_for_hybrid(total_bitRate, + curr_bandwidth, st->Fs == 50 * frame_size, st->use_vbr, st->silk_mode.LBRR_coded, + st->stream_channels); + if (!st->energy_masking) + { + /* Increasingly attenuate high band when it gets allocated fewer bits */ + celt_rate = total_bitRate - st->silk_mode.bitRate; + HB_gain = Q15ONE - SHR32(celt_exp2(-celt_rate * QCONST16(1.f/1024, 10)), 1); + } + } else { + /* SILK gets all bits */ + st->silk_mode.bitRate = total_bitRate; + } + + /* Surround masking for SILK */ + if (st->energy_masking && st->use_vbr && !st->lfe) + { + opus_val32 mask_sum=0; + opus_val16 masking_depth; + opus_int32 rate_offset; + int c; + int end = 17; + opus_int16 srate = 16000; + if (st->bandwidth == OPUS_BANDWIDTH_NARROWBAND) + { + end = 13; + srate = 8000; + } else if (st->bandwidth == OPUS_BANDWIDTH_MEDIUMBAND) + { + end = 15; + srate = 12000; + } + for (c=0;cchannels;c++) + { + for(i=0;ienergy_masking[21*c+i], + QCONST16(.5f, DB_SHIFT)), -QCONST16(2.0f, DB_SHIFT)); + if (mask > 0) + mask = HALF16(mask); + mask_sum += mask; + } + } + /* Conservative rate reduction, we cut the masking in half */ + masking_depth = mask_sum / end*st->channels; + masking_depth += QCONST16(.2f, DB_SHIFT); + rate_offset = (opus_int32)PSHR32(MULT16_16(srate, masking_depth), DB_SHIFT); + rate_offset = MAX32(rate_offset, -2*st->silk_mode.bitRate/3); + /* Split the rate change between the SILK and CELT part for hybrid. */ + if (st->bandwidth==OPUS_BANDWIDTH_SUPERWIDEBAND || st->bandwidth==OPUS_BANDWIDTH_FULLBAND) + st->silk_mode.bitRate += 3*rate_offset/5; + else + st->silk_mode.bitRate += rate_offset; + } + + st->silk_mode.payloadSize_ms = 1000 * frame_size / st->Fs; + st->silk_mode.nChannelsAPI = st->channels; + st->silk_mode.nChannelsInternal = st->stream_channels; + if (curr_bandwidth == OPUS_BANDWIDTH_NARROWBAND) { + st->silk_mode.desiredInternalSampleRate = 8000; + } else if (curr_bandwidth == OPUS_BANDWIDTH_MEDIUMBAND) { + st->silk_mode.desiredInternalSampleRate = 12000; + } else { + celt_assert( st->mode == MODE_HYBRID || curr_bandwidth == OPUS_BANDWIDTH_WIDEBAND ); + st->silk_mode.desiredInternalSampleRate = 16000; + } + if( st->mode == MODE_HYBRID ) { + /* Don't allow bandwidth reduction at lowest bitrates in hybrid mode */ + st->silk_mode.minInternalSampleRate = 16000; + } else { + st->silk_mode.minInternalSampleRate = 8000; + } + + st->silk_mode.maxInternalSampleRate = 16000; + if (st->mode == MODE_SILK_ONLY) + { + opus_int32 effective_max_rate = max_rate; + if (frame_rate > 50) + effective_max_rate = effective_max_rate*2/3; + if (effective_max_rate < 8000) + { + st->silk_mode.maxInternalSampleRate = 12000; + st->silk_mode.desiredInternalSampleRate = IMIN(12000, st->silk_mode.desiredInternalSampleRate); + } + if (effective_max_rate < 7000) + { + st->silk_mode.maxInternalSampleRate = 8000; + st->silk_mode.desiredInternalSampleRate = IMIN(8000, st->silk_mode.desiredInternalSampleRate); + } + } + + st->silk_mode.useCBR = !st->use_vbr; + + /* Call SILK encoder for the low band */ + + /* Max bits for SILK, counting ToC, redundancy bytes, and optionally redundancy. */ + st->silk_mode.maxBits = (max_data_bytes-1)*8; + if (redundancy && redundancy_bytes >= 2) + { + /* Counting 1 bit for redundancy position and 20 bits for flag+size (only for hybrid). */ + st->silk_mode.maxBits -= redundancy_bytes*8 + 1; + if (st->mode == MODE_HYBRID) + st->silk_mode.maxBits -= 20; + } + if (st->silk_mode.useCBR) + { + if (st->mode == MODE_HYBRID) + { + st->silk_mode.maxBits = IMIN(st->silk_mode.maxBits, st->silk_mode.bitRate * frame_size / st->Fs); + } + } else { + /* Constrained VBR. */ + if (st->mode == MODE_HYBRID) + { + /* Compute SILK bitrate corresponding to the max total bits available */ + opus_int32 maxBitRate = compute_silk_rate_for_hybrid(st->silk_mode.maxBits*st->Fs / frame_size, + curr_bandwidth, st->Fs == 50 * frame_size, st->use_vbr, st->silk_mode.LBRR_coded, + st->stream_channels); + st->silk_mode.maxBits = maxBitRate * frame_size / st->Fs; + } + } + + if (prefill) + { + opus_int32 zero=0; + int prefill_offset; + /* Use a smooth onset for the SILK prefill to avoid the encoder trying to encode + a discontinuity. The exact location is what we need to avoid leaving any "gap" + in the audio when mixing with the redundant CELT frame. Here we can afford to + overwrite st->delay_buffer because the only thing that uses it before it gets + rewritten is tmp_prefill[] and even then only the part after the ramp really + gets used (rather than sent to the encoder and discarded) */ + prefill_offset = st->channels*(st->encoder_buffer-st->delay_compensation-st->Fs/400); + gain_fade(st->delay_buffer+prefill_offset, st->delay_buffer+prefill_offset, + 0, Q15ONE, celt_mode->overlap, st->Fs/400, st->channels, celt_mode->window, st->Fs); + OPUS_CLEAR(st->delay_buffer, prefill_offset); +#ifdef FIXED_POINT + pcm_silk = st->delay_buffer; +#else + for (i=0;iencoder_buffer*st->channels;i++) + pcm_silk[i] = FLOAT2INT16(st->delay_buffer[i]); +#endif + silk_Encode( silk_enc, &st->silk_mode, pcm_silk, st->encoder_buffer, NULL, &zero, prefill, activity ); + /* Prevent a second switch in the real encode call. */ + st->silk_mode.opusCanSwitch = 0; + } + +#ifdef FIXED_POINT + pcm_silk = pcm_buf+total_buffer*st->channels; +#else + for (i=0;ichannels;i++) + pcm_silk[i] = FLOAT2INT16(pcm_buf[total_buffer*st->channels + i]); +#endif + ret = silk_Encode( silk_enc, &st->silk_mode, pcm_silk, frame_size, &enc, &nBytes, 0, activity ); + if( ret ) { + /*fprintf (stderr, "SILK encode error: %d\n", ret);*/ + /* Handle error */ + RESTORE_STACK; + return OPUS_INTERNAL_ERROR; + } + + /* Extract SILK internal bandwidth for signaling in first byte */ + if( st->mode == MODE_SILK_ONLY ) { + if( st->silk_mode.internalSampleRate == 8000 ) { + curr_bandwidth = OPUS_BANDWIDTH_NARROWBAND; + } else if( st->silk_mode.internalSampleRate == 12000 ) { + curr_bandwidth = OPUS_BANDWIDTH_MEDIUMBAND; + } else if( st->silk_mode.internalSampleRate == 16000 ) { + curr_bandwidth = OPUS_BANDWIDTH_WIDEBAND; + } + } else { + celt_assert( st->silk_mode.internalSampleRate == 16000 ); + } + + st->silk_mode.opusCanSwitch = st->silk_mode.switchReady && !st->nonfinal_frame; + + if (nBytes==0) + { + st->rangeFinal = 0; + data[-1] = gen_toc(st->mode, st->Fs/frame_size, curr_bandwidth, st->stream_channels); + RESTORE_STACK; + return 1; + } + + /* FIXME: How do we allocate the redundancy for CBR? */ + if (st->silk_mode.opusCanSwitch) + { + redundancy_bytes = compute_redundancy_bytes(max_data_bytes, st->bitrate_bps, frame_rate, st->stream_channels); + redundancy = (redundancy_bytes != 0); + celt_to_silk = 0; + st->silk_bw_switch = 1; + } + } + + /* CELT processing */ + { + int endband=21; + + switch(curr_bandwidth) + { + case OPUS_BANDWIDTH_NARROWBAND: + endband = 13; + break; + case OPUS_BANDWIDTH_MEDIUMBAND: + case OPUS_BANDWIDTH_WIDEBAND: + endband = 17; + break; + case OPUS_BANDWIDTH_SUPERWIDEBAND: + endband = 19; + break; + case OPUS_BANDWIDTH_FULLBAND: + endband = 21; + break; + } + celt_encoder_ctl(celt_enc, CELT_SET_END_BAND(endband)); + celt_encoder_ctl(celt_enc, CELT_SET_CHANNELS(st->stream_channels)); + } + celt_encoder_ctl(celt_enc, OPUS_SET_BITRATE(OPUS_BITRATE_MAX)); + if (st->mode != MODE_SILK_ONLY) + { + opus_val32 celt_pred=2; + celt_encoder_ctl(celt_enc, OPUS_SET_VBR(0)); + /* We may still decide to disable prediction later */ + if (st->silk_mode.reducedDependency) + celt_pred = 0; + celt_encoder_ctl(celt_enc, CELT_SET_PREDICTION(celt_pred)); + + if (st->mode == MODE_HYBRID) + { + if( st->use_vbr ) { + celt_encoder_ctl(celt_enc, OPUS_SET_BITRATE(st->bitrate_bps-st->silk_mode.bitRate)); + celt_encoder_ctl(celt_enc, OPUS_SET_VBR_CONSTRAINT(0)); + } + } else { + if (st->use_vbr) + { + celt_encoder_ctl(celt_enc, OPUS_SET_VBR(1)); + celt_encoder_ctl(celt_enc, OPUS_SET_VBR_CONSTRAINT(st->vbr_constraint)); + celt_encoder_ctl(celt_enc, OPUS_SET_BITRATE(st->bitrate_bps)); + } + } + } + + ALLOC(tmp_prefill, st->channels*st->Fs/400, opus_val16); + if (st->mode != MODE_SILK_ONLY && st->mode != st->prev_mode && st->prev_mode > 0) + { + OPUS_COPY(tmp_prefill, &st->delay_buffer[(st->encoder_buffer-total_buffer-st->Fs/400)*st->channels], st->channels*st->Fs/400); + } + + if (st->channels*(st->encoder_buffer-(frame_size+total_buffer)) > 0) + { + OPUS_MOVE(st->delay_buffer, &st->delay_buffer[st->channels*frame_size], st->channels*(st->encoder_buffer-frame_size-total_buffer)); + OPUS_COPY(&st->delay_buffer[st->channels*(st->encoder_buffer-frame_size-total_buffer)], + &pcm_buf[0], + (frame_size+total_buffer)*st->channels); + } else { + OPUS_COPY(st->delay_buffer, &pcm_buf[(frame_size+total_buffer-st->encoder_buffer)*st->channels], st->encoder_buffer*st->channels); + } + /* gain_fade() and stereo_fade() need to be after the buffer copying + because we don't want any of this to affect the SILK part */ + if( st->prev_HB_gain < Q15ONE || HB_gain < Q15ONE ) { + gain_fade(pcm_buf, pcm_buf, + st->prev_HB_gain, HB_gain, celt_mode->overlap, frame_size, st->channels, celt_mode->window, st->Fs); + } + st->prev_HB_gain = HB_gain; + if (st->mode != MODE_HYBRID || st->stream_channels==1) + { + if (equiv_rate > 32000) + st->silk_mode.stereoWidth_Q14 = 16384; + else if (equiv_rate < 16000) + st->silk_mode.stereoWidth_Q14 = 0; + else + st->silk_mode.stereoWidth_Q14 = 16384 - 2048*(opus_int32)(32000-equiv_rate)/(equiv_rate-14000); + } + if( !st->energy_masking && st->channels == 2 ) { + /* Apply stereo width reduction (at low bitrates) */ + if( st->hybrid_stereo_width_Q14 < (1 << 14) || st->silk_mode.stereoWidth_Q14 < (1 << 14) ) { + opus_val16 g1, g2; + g1 = st->hybrid_stereo_width_Q14; + g2 = (opus_val16)(st->silk_mode.stereoWidth_Q14); +#ifdef FIXED_POINT + g1 = g1==16384 ? Q15ONE : SHL16(g1,1); + g2 = g2==16384 ? Q15ONE : SHL16(g2,1); +#else + g1 *= (1.f/16384); + g2 *= (1.f/16384); +#endif + stereo_fade(pcm_buf, pcm_buf, g1, g2, celt_mode->overlap, + frame_size, st->channels, celt_mode->window, st->Fs); + st->hybrid_stereo_width_Q14 = st->silk_mode.stereoWidth_Q14; + } + } + + if ( st->mode != MODE_CELT_ONLY && ec_tell(&enc)+17+20*(st->mode == MODE_HYBRID) <= 8*(max_data_bytes-1)) + { + /* For SILK mode, the redundancy is inferred from the length */ + if (st->mode == MODE_HYBRID) + ec_enc_bit_logp(&enc, redundancy, 12); + if (redundancy) + { + int max_redundancy; + ec_enc_bit_logp(&enc, celt_to_silk, 1); + if (st->mode == MODE_HYBRID) + { + /* Reserve the 8 bits needed for the redundancy length, + and at least a few bits for CELT if possible */ + max_redundancy = (max_data_bytes-1)-((ec_tell(&enc)+8+3+7)>>3); + } + else + max_redundancy = (max_data_bytes-1)-((ec_tell(&enc)+7)>>3); + /* Target the same bit-rate for redundancy as for the rest, + up to a max of 257 bytes */ + redundancy_bytes = IMIN(max_redundancy, redundancy_bytes); + redundancy_bytes = IMIN(257, IMAX(2, redundancy_bytes)); + if (st->mode == MODE_HYBRID) + ec_enc_uint(&enc, redundancy_bytes-2, 256); + } + } else { + redundancy = 0; + } + + if (!redundancy) + { + st->silk_bw_switch = 0; + redundancy_bytes = 0; + } + if (st->mode != MODE_CELT_ONLY)start_band=17; + + if (st->mode == MODE_SILK_ONLY) + { + ret = (ec_tell(&enc)+7)>>3; + ec_enc_done(&enc); + nb_compr_bytes = ret; + } else { + nb_compr_bytes = (max_data_bytes-1)-redundancy_bytes; + ec_enc_shrink(&enc, nb_compr_bytes); + } + +#ifndef DISABLE_FLOAT_API + if (redundancy || st->mode != MODE_SILK_ONLY) + celt_encoder_ctl(celt_enc, CELT_SET_ANALYSIS(&analysis_info)); +#endif + if (st->mode == MODE_HYBRID) { + SILKInfo info; + info.signalType = st->silk_mode.signalType; + info.offset = st->silk_mode.offset; + celt_encoder_ctl(celt_enc, CELT_SET_SILK_INFO(&info)); + } + + /* 5 ms redundant frame for CELT->SILK */ + if (redundancy && celt_to_silk) + { + int err; + celt_encoder_ctl(celt_enc, CELT_SET_START_BAND(0)); + celt_encoder_ctl(celt_enc, OPUS_SET_VBR(0)); + celt_encoder_ctl(celt_enc, OPUS_SET_BITRATE(OPUS_BITRATE_MAX)); + err = celt_encode_with_ec(celt_enc, pcm_buf, st->Fs/200, data+nb_compr_bytes, redundancy_bytes, NULL); + if (err < 0) + { + RESTORE_STACK; + return OPUS_INTERNAL_ERROR; + } + celt_encoder_ctl(celt_enc, OPUS_GET_FINAL_RANGE(&redundant_rng)); + celt_encoder_ctl(celt_enc, OPUS_RESET_STATE); + } + + celt_encoder_ctl(celt_enc, CELT_SET_START_BAND(start_band)); + + if (st->mode != MODE_SILK_ONLY) + { + if (st->mode != st->prev_mode && st->prev_mode > 0) + { + unsigned char dummy[2]; + celt_encoder_ctl(celt_enc, OPUS_RESET_STATE); + + /* Prefilling */ + celt_encode_with_ec(celt_enc, tmp_prefill, st->Fs/400, dummy, 2, NULL); + celt_encoder_ctl(celt_enc, CELT_SET_PREDICTION(0)); + } + /* If false, we already busted the budget and we'll end up with a "PLC frame" */ + if (ec_tell(&enc) <= 8*nb_compr_bytes) + { + /* Set the bitrate again if it was overridden in the redundancy code above*/ + if (redundancy && celt_to_silk && st->mode==MODE_HYBRID && st->use_vbr) + celt_encoder_ctl(celt_enc, OPUS_SET_BITRATE(st->bitrate_bps-st->silk_mode.bitRate)); + celt_encoder_ctl(celt_enc, OPUS_SET_VBR(st->use_vbr)); + ret = celt_encode_with_ec(celt_enc, pcm_buf, frame_size, NULL, nb_compr_bytes, &enc); + if (ret < 0) + { + RESTORE_STACK; + return OPUS_INTERNAL_ERROR; + } + /* Put CELT->SILK redundancy data in the right place. */ + if (redundancy && celt_to_silk && st->mode==MODE_HYBRID && st->use_vbr) + { + OPUS_MOVE(data+ret, data+nb_compr_bytes, redundancy_bytes); + nb_compr_bytes = nb_compr_bytes+redundancy_bytes; + } + } + } + + /* 5 ms redundant frame for SILK->CELT */ + if (redundancy && !celt_to_silk) + { + int err; + unsigned char dummy[2]; + int N2, N4; + N2 = st->Fs/200; + N4 = st->Fs/400; + + celt_encoder_ctl(celt_enc, OPUS_RESET_STATE); + celt_encoder_ctl(celt_enc, CELT_SET_START_BAND(0)); + celt_encoder_ctl(celt_enc, CELT_SET_PREDICTION(0)); + celt_encoder_ctl(celt_enc, OPUS_SET_VBR(0)); + celt_encoder_ctl(celt_enc, OPUS_SET_BITRATE(OPUS_BITRATE_MAX)); + + if (st->mode == MODE_HYBRID) + { + /* Shrink packet to what the encoder actually used. */ + nb_compr_bytes = ret; + ec_enc_shrink(&enc, nb_compr_bytes); + } + /* NOTE: We could speed this up slightly (at the expense of code size) by just adding a function that prefills the buffer */ + celt_encode_with_ec(celt_enc, pcm_buf+st->channels*(frame_size-N2-N4), N4, dummy, 2, NULL); + + err = celt_encode_with_ec(celt_enc, pcm_buf+st->channels*(frame_size-N2), N2, data+nb_compr_bytes, redundancy_bytes, NULL); + if (err < 0) + { + RESTORE_STACK; + return OPUS_INTERNAL_ERROR; + } + celt_encoder_ctl(celt_enc, OPUS_GET_FINAL_RANGE(&redundant_rng)); + } + + + + /* Signalling the mode in the first byte */ + data--; + data[0] = gen_toc(st->mode, st->Fs/frame_size, curr_bandwidth, st->stream_channels); + + st->rangeFinal = enc.rng ^ redundant_rng; + + if (to_celt) + st->prev_mode = MODE_CELT_ONLY; + else + st->prev_mode = st->mode; + st->prev_channels = st->stream_channels; + st->prev_framesize = frame_size; + + st->first = 0; + + /* DTX decision */ +#ifndef DISABLE_FLOAT_API + if (st->use_dtx && (analysis_info.valid || is_silence)) + { + if (decide_dtx_mode(analysis_info.activity_probability, &st->nb_no_activity_frames, + st->peak_signal_energy, pcm, frame_size, st->channels, is_silence, st->arch)) + { + st->rangeFinal = 0; + data[0] = gen_toc(st->mode, st->Fs/frame_size, curr_bandwidth, st->stream_channels); + RESTORE_STACK; + return 1; + } + } else { + st->nb_no_activity_frames = 0; + } +#endif + + /* In the unlikely case that the SILK encoder busted its target, tell + the decoder to call the PLC */ + if (ec_tell(&enc) > (max_data_bytes-1)*8) + { + if (max_data_bytes < 2) + { + RESTORE_STACK; + return OPUS_BUFFER_TOO_SMALL; + } + data[1] = 0; + ret = 1; + st->rangeFinal = 0; + } else if (st->mode==MODE_SILK_ONLY&&!redundancy) + { + /*When in LPC only mode it's perfectly + reasonable to strip off trailing zero bytes as + the required range decoder behavior is to + fill these in. This can't be done when the MDCT + modes are used because the decoder needs to know + the actual length for allocation purposes.*/ + while(ret>2&&data[ret]==0)ret--; + } + /* Count ToC and redundancy */ + ret += 1+redundancy_bytes; + if (!st->use_vbr) + { + if (opus_packet_pad(data, ret, max_data_bytes) != OPUS_OK) + { + RESTORE_STACK; + return OPUS_INTERNAL_ERROR; + } + ret = max_data_bytes; + } + RESTORE_STACK; + return ret; +} + +#ifdef FIXED_POINT + +#ifndef DISABLE_FLOAT_API +opus_int32 opus_encode_float(OpusEncoder *st, const float *pcm, int analysis_frame_size, + unsigned char *data, opus_int32 max_data_bytes) +{ + int i, ret; + int frame_size; + VARDECL(opus_int16, in); + ALLOC_STACK; + + frame_size = frame_size_select(analysis_frame_size, st->variable_duration, st->Fs); + if (frame_size <= 0) + { + RESTORE_STACK; + return OPUS_BAD_ARG; + } + ALLOC(in, frame_size*st->channels, opus_int16); + + for (i=0;ichannels;i++) + in[i] = FLOAT2INT16(pcm[i]); + ret = opus_encode_native(st, in, frame_size, data, max_data_bytes, 16, + pcm, analysis_frame_size, 0, -2, st->channels, downmix_float, 1); + RESTORE_STACK; + return ret; +} +#endif + +opus_int32 opus_encode(OpusEncoder *st, const opus_int16 *pcm, int analysis_frame_size, + unsigned char *data, opus_int32 out_data_bytes) +{ + int frame_size; + frame_size = frame_size_select(analysis_frame_size, st->variable_duration, st->Fs); + return opus_encode_native(st, pcm, frame_size, data, out_data_bytes, 16, + pcm, analysis_frame_size, 0, -2, st->channels, downmix_int, 0); +} + +#else +opus_int32 opus_encode(OpusEncoder *st, const opus_int16 *pcm, int analysis_frame_size, + unsigned char *data, opus_int32 max_data_bytes) +{ + int i, ret; + int frame_size; + VARDECL(float, in); + ALLOC_STACK; + + frame_size = frame_size_select(analysis_frame_size, st->variable_duration, st->Fs); + if (frame_size <= 0) + { + RESTORE_STACK; + return OPUS_BAD_ARG; + } + ALLOC(in, frame_size*st->channels, float); + + for (i=0;ichannels;i++) + in[i] = (1.0f/32768)*pcm[i]; + ret = opus_encode_native(st, in, frame_size, data, max_data_bytes, 16, + pcm, analysis_frame_size, 0, -2, st->channels, downmix_int, 0); + RESTORE_STACK; + return ret; +} +opus_int32 opus_encode_float(OpusEncoder *st, const float *pcm, int analysis_frame_size, + unsigned char *data, opus_int32 out_data_bytes) +{ + int frame_size; + frame_size = frame_size_select(analysis_frame_size, st->variable_duration, st->Fs); + return opus_encode_native(st, pcm, frame_size, data, out_data_bytes, 24, + pcm, analysis_frame_size, 0, -2, st->channels, downmix_float, 1); +} +#endif + + +int opus_encoder_ctl(OpusEncoder *st, int request, ...) +{ + int ret; + CELTEncoder *celt_enc; + va_list ap; + + ret = OPUS_OK; + va_start(ap, request); + + celt_enc = (CELTEncoder*)((char*)st+st->celt_enc_offset); + + switch (request) + { + case OPUS_SET_APPLICATION_REQUEST: + { + opus_int32 value = va_arg(ap, opus_int32); + if ( (value != OPUS_APPLICATION_VOIP && value != OPUS_APPLICATION_AUDIO + && value != OPUS_APPLICATION_RESTRICTED_LOWDELAY) + || (!st->first && st->application != value)) + { + ret = OPUS_BAD_ARG; + break; + } + st->application = value; +#ifndef DISABLE_FLOAT_API + st->analysis.application = value; +#endif + } + break; + case OPUS_GET_APPLICATION_REQUEST: + { + opus_int32 *value = va_arg(ap, opus_int32*); + if (!value) + { + goto bad_arg; + } + *value = st->application; + } + break; + case OPUS_SET_BITRATE_REQUEST: + { + opus_int32 value = va_arg(ap, opus_int32); + if (value != OPUS_AUTO && value != OPUS_BITRATE_MAX) + { + if (value <= 0) + goto bad_arg; + else if (value <= 500) + value = 500; + else if (value > (opus_int32)300000*st->channels) + value = (opus_int32)300000*st->channels; + } + st->user_bitrate_bps = value; + } + break; + case OPUS_GET_BITRATE_REQUEST: + { + opus_int32 *value = va_arg(ap, opus_int32*); + if (!value) + { + goto bad_arg; + } + *value = user_bitrate_to_bitrate(st, st->prev_framesize, 1276); + } + break; + case OPUS_SET_FORCE_CHANNELS_REQUEST: + { + opus_int32 value = va_arg(ap, opus_int32); + if((value<1 || value>st->channels) && value != OPUS_AUTO) + { + goto bad_arg; + } + st->force_channels = value; + } + break; + case OPUS_GET_FORCE_CHANNELS_REQUEST: + { + opus_int32 *value = va_arg(ap, opus_int32*); + if (!value) + { + goto bad_arg; + } + *value = st->force_channels; + } + break; + case OPUS_SET_MAX_BANDWIDTH_REQUEST: + { + opus_int32 value = va_arg(ap, opus_int32); + if (value < OPUS_BANDWIDTH_NARROWBAND || value > OPUS_BANDWIDTH_FULLBAND) + { + goto bad_arg; + } + st->max_bandwidth = value; + if (st->max_bandwidth == OPUS_BANDWIDTH_NARROWBAND) { + st->silk_mode.maxInternalSampleRate = 8000; + } else if (st->max_bandwidth == OPUS_BANDWIDTH_MEDIUMBAND) { + st->silk_mode.maxInternalSampleRate = 12000; + } else { + st->silk_mode.maxInternalSampleRate = 16000; + } + } + break; + case OPUS_GET_MAX_BANDWIDTH_REQUEST: + { + opus_int32 *value = va_arg(ap, opus_int32*); + if (!value) + { + goto bad_arg; + } + *value = st->max_bandwidth; + } + break; + case OPUS_SET_BANDWIDTH_REQUEST: + { + opus_int32 value = va_arg(ap, opus_int32); + if ((value < OPUS_BANDWIDTH_NARROWBAND || value > OPUS_BANDWIDTH_FULLBAND) && value != OPUS_AUTO) + { + goto bad_arg; + } + st->user_bandwidth = value; + if (st->user_bandwidth == OPUS_BANDWIDTH_NARROWBAND) { + st->silk_mode.maxInternalSampleRate = 8000; + } else if (st->user_bandwidth == OPUS_BANDWIDTH_MEDIUMBAND) { + st->silk_mode.maxInternalSampleRate = 12000; + } else { + st->silk_mode.maxInternalSampleRate = 16000; + } + } + break; + case OPUS_GET_BANDWIDTH_REQUEST: + { + opus_int32 *value = va_arg(ap, opus_int32*); + if (!value) + { + goto bad_arg; + } + *value = st->bandwidth; + } + break; + case OPUS_SET_DTX_REQUEST: + { + opus_int32 value = va_arg(ap, opus_int32); + if(value<0 || value>1) + { + goto bad_arg; + } + st->use_dtx = value; + } + break; + case OPUS_GET_DTX_REQUEST: + { + opus_int32 *value = va_arg(ap, opus_int32*); + if (!value) + { + goto bad_arg; + } + *value = st->use_dtx; + } + break; + case OPUS_SET_COMPLEXITY_REQUEST: + { + opus_int32 value = va_arg(ap, opus_int32); + if(value<0 || value>10) + { + goto bad_arg; + } + st->silk_mode.complexity = value; + celt_encoder_ctl(celt_enc, OPUS_SET_COMPLEXITY(value)); + } + break; + case OPUS_GET_COMPLEXITY_REQUEST: + { + opus_int32 *value = va_arg(ap, opus_int32*); + if (!value) + { + goto bad_arg; + } + *value = st->silk_mode.complexity; + } + break; + case OPUS_SET_INBAND_FEC_REQUEST: + { + opus_int32 value = va_arg(ap, opus_int32); + if(value<0 || value>1) + { + goto bad_arg; + } + st->silk_mode.useInBandFEC = value; + } + break; + case OPUS_GET_INBAND_FEC_REQUEST: + { + opus_int32 *value = va_arg(ap, opus_int32*); + if (!value) + { + goto bad_arg; + } + *value = st->silk_mode.useInBandFEC; + } + break; + case OPUS_SET_PACKET_LOSS_PERC_REQUEST: + { + opus_int32 value = va_arg(ap, opus_int32); + if (value < 0 || value > 100) + { + goto bad_arg; + } + st->silk_mode.packetLossPercentage = value; + celt_encoder_ctl(celt_enc, OPUS_SET_PACKET_LOSS_PERC(value)); + } + break; + case OPUS_GET_PACKET_LOSS_PERC_REQUEST: + { + opus_int32 *value = va_arg(ap, opus_int32*); + if (!value) + { + goto bad_arg; + } + *value = st->silk_mode.packetLossPercentage; + } + break; + case OPUS_SET_VBR_REQUEST: + { + opus_int32 value = va_arg(ap, opus_int32); + if(value<0 || value>1) + { + goto bad_arg; + } + st->use_vbr = value; + st->silk_mode.useCBR = 1-value; + } + break; + case OPUS_GET_VBR_REQUEST: + { + opus_int32 *value = va_arg(ap, opus_int32*); + if (!value) + { + goto bad_arg; + } + *value = st->use_vbr; + } + break; + case OPUS_SET_VOICE_RATIO_REQUEST: + { + opus_int32 value = va_arg(ap, opus_int32); + if (value<-1 || value>100) + { + goto bad_arg; + } + st->voice_ratio = value; + } + break; + case OPUS_GET_VOICE_RATIO_REQUEST: + { + opus_int32 *value = va_arg(ap, opus_int32*); + if (!value) + { + goto bad_arg; + } + *value = st->voice_ratio; + } + break; + case OPUS_SET_VBR_CONSTRAINT_REQUEST: + { + opus_int32 value = va_arg(ap, opus_int32); + if(value<0 || value>1) + { + goto bad_arg; + } + st->vbr_constraint = value; + } + break; + case OPUS_GET_VBR_CONSTRAINT_REQUEST: + { + opus_int32 *value = va_arg(ap, opus_int32*); + if (!value) + { + goto bad_arg; + } + *value = st->vbr_constraint; + } + break; + case OPUS_SET_SIGNAL_REQUEST: + { + opus_int32 value = va_arg(ap, opus_int32); + if(value!=OPUS_AUTO && value!=OPUS_SIGNAL_VOICE && value!=OPUS_SIGNAL_MUSIC) + { + goto bad_arg; + } + st->signal_type = value; + } + break; + case OPUS_GET_SIGNAL_REQUEST: + { + opus_int32 *value = va_arg(ap, opus_int32*); + if (!value) + { + goto bad_arg; + } + *value = st->signal_type; + } + break; + case OPUS_GET_LOOKAHEAD_REQUEST: + { + opus_int32 *value = va_arg(ap, opus_int32*); + if (!value) + { + goto bad_arg; + } + *value = st->Fs/400; + if (st->application != OPUS_APPLICATION_RESTRICTED_LOWDELAY) + *value += st->delay_compensation; + } + break; + case OPUS_GET_SAMPLE_RATE_REQUEST: + { + opus_int32 *value = va_arg(ap, opus_int32*); + if (!value) + { + goto bad_arg; + } + *value = st->Fs; + } + break; + case OPUS_GET_FINAL_RANGE_REQUEST: + { + opus_uint32 *value = va_arg(ap, opus_uint32*); + if (!value) + { + goto bad_arg; + } + *value = st->rangeFinal; + } + break; + case OPUS_SET_LSB_DEPTH_REQUEST: + { + opus_int32 value = va_arg(ap, opus_int32); + if (value<8 || value>24) + { + goto bad_arg; + } + st->lsb_depth=value; + } + break; + case OPUS_GET_LSB_DEPTH_REQUEST: + { + opus_int32 *value = va_arg(ap, opus_int32*); + if (!value) + { + goto bad_arg; + } + *value = st->lsb_depth; + } + break; + case OPUS_SET_EXPERT_FRAME_DURATION_REQUEST: + { + opus_int32 value = va_arg(ap, opus_int32); + if (value != OPUS_FRAMESIZE_ARG && value != OPUS_FRAMESIZE_2_5_MS && + value != OPUS_FRAMESIZE_5_MS && value != OPUS_FRAMESIZE_10_MS && + value != OPUS_FRAMESIZE_20_MS && value != OPUS_FRAMESIZE_40_MS && + value != OPUS_FRAMESIZE_60_MS && value != OPUS_FRAMESIZE_80_MS && + value != OPUS_FRAMESIZE_100_MS && value != OPUS_FRAMESIZE_120_MS) + { + goto bad_arg; + } + st->variable_duration = value; + } + break; + case OPUS_GET_EXPERT_FRAME_DURATION_REQUEST: + { + opus_int32 *value = va_arg(ap, opus_int32*); + if (!value) + { + goto bad_arg; + } + *value = st->variable_duration; + } + break; + case OPUS_SET_PREDICTION_DISABLED_REQUEST: + { + opus_int32 value = va_arg(ap, opus_int32); + if (value > 1 || value < 0) + goto bad_arg; + st->silk_mode.reducedDependency = value; + } + break; + case OPUS_GET_PREDICTION_DISABLED_REQUEST: + { + opus_int32 *value = va_arg(ap, opus_int32*); + if (!value) + goto bad_arg; + *value = st->silk_mode.reducedDependency; + } + break; + case OPUS_SET_PHASE_INVERSION_DISABLED_REQUEST: + { + opus_int32 value = va_arg(ap, opus_int32); + if(value<0 || value>1) + { + goto bad_arg; + } + celt_encoder_ctl(celt_enc, OPUS_SET_PHASE_INVERSION_DISABLED(value)); + } + break; + case OPUS_GET_PHASE_INVERSION_DISABLED_REQUEST: + { + opus_int32 *value = va_arg(ap, opus_int32*); + if (!value) + { + goto bad_arg; + } + celt_encoder_ctl(celt_enc, OPUS_GET_PHASE_INVERSION_DISABLED(value)); + } + break; + case OPUS_RESET_STATE: + { + void *silk_enc; + silk_EncControlStruct dummy; + char *start; + silk_enc = (char*)st+st->silk_enc_offset; +#ifndef DISABLE_FLOAT_API + tonality_analysis_reset(&st->analysis); +#endif + + start = (char*)&st->OPUS_ENCODER_RESET_START; + OPUS_CLEAR(start, sizeof(OpusEncoder) - (start - (char*)st)); + + celt_encoder_ctl(celt_enc, OPUS_RESET_STATE); + silk_InitEncoder( silk_enc, st->arch, &dummy ); + st->stream_channels = st->channels; + st->hybrid_stereo_width_Q14 = 1 << 14; + st->prev_HB_gain = Q15ONE; + st->first = 1; + st->mode = MODE_HYBRID; + st->bandwidth = OPUS_BANDWIDTH_FULLBAND; + st->variable_HP_smth2_Q15 = silk_LSHIFT( silk_lin2log( VARIABLE_HP_MIN_CUTOFF_HZ ), 8 ); + } + break; + case OPUS_SET_FORCE_MODE_REQUEST: + { + opus_int32 value = va_arg(ap, opus_int32); + if ((value < MODE_SILK_ONLY || value > MODE_CELT_ONLY) && value != OPUS_AUTO) + { + goto bad_arg; + } + st->user_forced_mode = value; + } + break; + case OPUS_SET_LFE_REQUEST: + { + opus_int32 value = va_arg(ap, opus_int32); + st->lfe = value; + ret = celt_encoder_ctl(celt_enc, OPUS_SET_LFE(value)); + } + break; + case OPUS_SET_ENERGY_MASK_REQUEST: + { + opus_val16 *value = va_arg(ap, opus_val16*); + st->energy_masking = value; + ret = celt_encoder_ctl(celt_enc, OPUS_SET_ENERGY_MASK(value)); + } + break; + case OPUS_GET_IN_DTX_REQUEST: + { + opus_int32 *value = va_arg(ap, opus_int32*); + if (!value) + { + goto bad_arg; + } + if (st->silk_mode.useDTX && (st->prev_mode == MODE_SILK_ONLY || st->prev_mode == MODE_HYBRID)) { + /* DTX determined by Silk. */ + int n; + void *silk_enc = (char*)st+st->silk_enc_offset; + *value = 1; + for (n=0;nsilk_mode.nChannelsInternal;n++) { + *value = *value && ((silk_encoder*)silk_enc)->state_Fxx[n].sCmn.noSpeechCounter >= NB_SPEECH_FRAMES_BEFORE_DTX; + } + } +#ifndef DISABLE_FLOAT_API + else if (st->use_dtx) { + /* DTX determined by Opus. */ + *value = st->nb_no_activity_frames >= NB_SPEECH_FRAMES_BEFORE_DTX; + } +#endif + else { + *value = 0; + } + } + break; + + case CELT_GET_MODE_REQUEST: + { + const CELTMode ** value = va_arg(ap, const CELTMode**); + if (!value) + { + goto bad_arg; + } + ret = celt_encoder_ctl(celt_enc, CELT_GET_MODE(value)); + } + break; + default: + /* fprintf(stderr, "unknown opus_encoder_ctl() request: %d", request);*/ + ret = OPUS_UNIMPLEMENTED; + break; + } + va_end(ap); + return ret; +bad_arg: + va_end(ap); + return OPUS_BAD_ARG; +} + +void opus_encoder_destroy(OpusEncoder *st) +{ + opus_free(st); +} diff --git a/components/opus/libopus/src/opus_multistream.c b/components/opus/libopus/src/opus_multistream.c new file mode 100644 index 0000000..09c3639 --- /dev/null +++ b/components/opus/libopus/src/opus_multistream.c @@ -0,0 +1,92 @@ +/* Copyright (c) 2011 Xiph.Org Foundation + Written by Jean-Marc Valin */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "opus_multistream.h" +#include "opus.h" +#include "opus_private.h" +#include "stack_alloc.h" +#include +#include "float_cast.h" +#include "os_support.h" + + +int validate_layout(const ChannelLayout *layout) +{ + int i, max_channel; + + max_channel = layout->nb_streams+layout->nb_coupled_streams; + if (max_channel>255) + return 0; + for (i=0;inb_channels;i++) + { + if (layout->mapping[i] >= max_channel && layout->mapping[i] != 255) + return 0; + } + return 1; +} + + +int get_left_channel(const ChannelLayout *layout, int stream_id, int prev) +{ + int i; + i = (prev<0) ? 0 : prev+1; + for (;inb_channels;i++) + { + if (layout->mapping[i]==stream_id*2) + return i; + } + return -1; +} + +int get_right_channel(const ChannelLayout *layout, int stream_id, int prev) +{ + int i; + i = (prev<0) ? 0 : prev+1; + for (;inb_channels;i++) + { + if (layout->mapping[i]==stream_id*2+1) + return i; + } + return -1; +} + +int get_mono_channel(const ChannelLayout *layout, int stream_id, int prev) +{ + int i; + i = (prev<0) ? 0 : prev+1; + for (;inb_channels;i++) + { + if (layout->mapping[i]==stream_id+layout->nb_coupled_streams) + return i; + } + return -1; +} + diff --git a/components/opus/libopus/src/opus_multistream_decoder.c b/components/opus/libopus/src/opus_multistream_decoder.c new file mode 100644 index 0000000..0018517 --- /dev/null +++ b/components/opus/libopus/src/opus_multistream_decoder.c @@ -0,0 +1,549 @@ +/* Copyright (c) 2011 Xiph.Org Foundation + Written by Jean-Marc Valin */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "opus_multistream.h" +#include "opus.h" +#include "opus_private.h" +#include "stack_alloc.h" +#include +#include "float_cast.h" +#include "os_support.h" + +/* DECODER */ + +#if defined(ENABLE_HARDENING) || defined(ENABLE_ASSERTIONS) +static void validate_ms_decoder(OpusMSDecoder *st) +{ + validate_layout(&st->layout); +} +#define VALIDATE_MS_DECODER(st) validate_ms_decoder(st) +#else +#define VALIDATE_MS_DECODER(st) +#endif + + +opus_int32 opus_multistream_decoder_get_size(int nb_streams, int nb_coupled_streams) +{ + int coupled_size; + int mono_size; + + if(nb_streams<1||nb_coupled_streams>nb_streams||nb_coupled_streams<0)return 0; + coupled_size = opus_decoder_get_size(2); + mono_size = opus_decoder_get_size(1); + return align(sizeof(OpusMSDecoder)) + + nb_coupled_streams * align(coupled_size) + + (nb_streams-nb_coupled_streams) * align(mono_size); +} + +int opus_multistream_decoder_init( + OpusMSDecoder *st, + opus_int32 Fs, + int channels, + int streams, + int coupled_streams, + const unsigned char *mapping +) +{ + int coupled_size; + int mono_size; + int i, ret; + char *ptr; + + if ((channels>255) || (channels<1) || (coupled_streams>streams) || + (streams<1) || (coupled_streams<0) || (streams>255-coupled_streams)) + return OPUS_BAD_ARG; + + st->layout.nb_channels = channels; + st->layout.nb_streams = streams; + st->layout.nb_coupled_streams = coupled_streams; + + for (i=0;ilayout.nb_channels;i++) + st->layout.mapping[i] = mapping[i]; + if (!validate_layout(&st->layout)) + return OPUS_BAD_ARG; + + ptr = (char*)st + align(sizeof(OpusMSDecoder)); + coupled_size = opus_decoder_get_size(2); + mono_size = opus_decoder_get_size(1); + + for (i=0;ilayout.nb_coupled_streams;i++) + { + ret=opus_decoder_init((OpusDecoder*)ptr, Fs, 2); + if(ret!=OPUS_OK)return ret; + ptr += align(coupled_size); + } + for (;ilayout.nb_streams;i++) + { + ret=opus_decoder_init((OpusDecoder*)ptr, Fs, 1); + if(ret!=OPUS_OK)return ret; + ptr += align(mono_size); + } + return OPUS_OK; +} + + +OpusMSDecoder *opus_multistream_decoder_create( + opus_int32 Fs, + int channels, + int streams, + int coupled_streams, + const unsigned char *mapping, + int *error +) +{ + int ret; + OpusMSDecoder *st; + if ((channels>255) || (channels<1) || (coupled_streams>streams) || + (streams<1) || (coupled_streams<0) || (streams>255-coupled_streams)) + { + if (error) + *error = OPUS_BAD_ARG; + return NULL; + } + st = (OpusMSDecoder *)opus_alloc(opus_multistream_decoder_get_size(streams, coupled_streams)); + if (st==NULL) + { + if (error) + *error = OPUS_ALLOC_FAIL; + return NULL; + } + ret = opus_multistream_decoder_init(st, Fs, channels, streams, coupled_streams, mapping); + if (error) + *error = ret; + if (ret != OPUS_OK) + { + opus_free(st); + st = NULL; + } + return st; +} + +static int opus_multistream_packet_validate(const unsigned char *data, + opus_int32 len, int nb_streams, opus_int32 Fs) +{ + int s; + int count; + unsigned char toc; + opus_int16 size[48]; + int samples=0; + opus_int32 packet_offset; + + for (s=0;slayout.nb_streams-1) + { + RESTORE_STACK; + return OPUS_INVALID_PACKET; + } + if (!do_plc) + { + int ret = opus_multistream_packet_validate(data, len, st->layout.nb_streams, Fs); + if (ret < 0) + { + RESTORE_STACK; + return ret; + } else if (ret > frame_size) + { + RESTORE_STACK; + return OPUS_BUFFER_TOO_SMALL; + } + } + for (s=0;slayout.nb_streams;s++) + { + OpusDecoder *dec; + opus_int32 packet_offset; + int ret; + + dec = (OpusDecoder*)ptr; + ptr += (s < st->layout.nb_coupled_streams) ? align(coupled_size) : align(mono_size); + + if (!do_plc && len<=0) + { + RESTORE_STACK; + return OPUS_INTERNAL_ERROR; + } + packet_offset = 0; + ret = opus_decode_native(dec, data, len, buf, frame_size, decode_fec, s!=st->layout.nb_streams-1, &packet_offset, soft_clip); + data += packet_offset; + len -= packet_offset; + if (ret <= 0) + { + RESTORE_STACK; + return ret; + } + frame_size = ret; + if (s < st->layout.nb_coupled_streams) + { + int chan, prev; + prev = -1; + /* Copy "left" audio to the channel(s) where it belongs */ + while ( (chan = get_left_channel(&st->layout, s, prev)) != -1) + { + (*copy_channel_out)(pcm, st->layout.nb_channels, chan, + buf, 2, frame_size, user_data); + prev = chan; + } + prev = -1; + /* Copy "right" audio to the channel(s) where it belongs */ + while ( (chan = get_right_channel(&st->layout, s, prev)) != -1) + { + (*copy_channel_out)(pcm, st->layout.nb_channels, chan, + buf+1, 2, frame_size, user_data); + prev = chan; + } + } else { + int chan, prev; + prev = -1; + /* Copy audio to the channel(s) where it belongs */ + while ( (chan = get_mono_channel(&st->layout, s, prev)) != -1) + { + (*copy_channel_out)(pcm, st->layout.nb_channels, chan, + buf, 1, frame_size, user_data); + prev = chan; + } + } + } + /* Handle muted channels */ + for (c=0;clayout.nb_channels;c++) + { + if (st->layout.mapping[c] == 255) + { + (*copy_channel_out)(pcm, st->layout.nb_channels, c, + NULL, 0, frame_size, user_data); + } + } + RESTORE_STACK; + return frame_size; +} + +#if !defined(DISABLE_FLOAT_API) +static void opus_copy_channel_out_float( + void *dst, + int dst_stride, + int dst_channel, + const opus_val16 *src, + int src_stride, + int frame_size, + void *user_data +) +{ + float *float_dst; + opus_int32 i; + (void)user_data; + float_dst = (float*)dst; + if (src != NULL) + { + for (i=0;ilayout.nb_streams;s++) + { + OpusDecoder *dec; + dec = (OpusDecoder*)ptr; + if (s < st->layout.nb_coupled_streams) + ptr += align(coupled_size); + else + ptr += align(mono_size); + ret = opus_decoder_ctl(dec, request, &tmp); + if (ret != OPUS_OK) break; + *value ^= tmp; + } + } + break; + case OPUS_RESET_STATE: + { + int s; + for (s=0;slayout.nb_streams;s++) + { + OpusDecoder *dec; + + dec = (OpusDecoder*)ptr; + if (s < st->layout.nb_coupled_streams) + ptr += align(coupled_size); + else + ptr += align(mono_size); + ret = opus_decoder_ctl(dec, OPUS_RESET_STATE); + if (ret != OPUS_OK) + break; + } + } + break; + case OPUS_MULTISTREAM_GET_DECODER_STATE_REQUEST: + { + int s; + opus_int32 stream_id; + OpusDecoder **value; + stream_id = va_arg(ap, opus_int32); + if (stream_id<0 || stream_id >= st->layout.nb_streams) + goto bad_arg; + value = va_arg(ap, OpusDecoder**); + if (!value) + { + goto bad_arg; + } + for (s=0;slayout.nb_coupled_streams) + ptr += align(coupled_size); + else + ptr += align(mono_size); + } + *value = (OpusDecoder*)ptr; + } + break; + case OPUS_SET_GAIN_REQUEST: + case OPUS_SET_PHASE_INVERSION_DISABLED_REQUEST: + { + int s; + /* This works for int32 params */ + opus_int32 value = va_arg(ap, opus_int32); + for (s=0;slayout.nb_streams;s++) + { + OpusDecoder *dec; + + dec = (OpusDecoder*)ptr; + if (s < st->layout.nb_coupled_streams) + ptr += align(coupled_size); + else + ptr += align(mono_size); + ret = opus_decoder_ctl(dec, request, value); + if (ret != OPUS_OK) + break; + } + } + break; + default: + ret = OPUS_UNIMPLEMENTED; + break; + } + return ret; +bad_arg: + return OPUS_BAD_ARG; +} + +int opus_multistream_decoder_ctl(OpusMSDecoder *st, int request, ...) +{ + int ret; + va_list ap; + va_start(ap, request); + ret = opus_multistream_decoder_ctl_va_list(st, request, ap); + va_end(ap); + return ret; +} + +void opus_multistream_decoder_destroy(OpusMSDecoder *st) +{ + opus_free(st); +} diff --git a/components/opus/libopus/src/opus_multistream_encoder.c b/components/opus/libopus/src/opus_multistream_encoder.c new file mode 100644 index 0000000..93204a1 --- /dev/null +++ b/components/opus/libopus/src/opus_multistream_encoder.c @@ -0,0 +1,1328 @@ +/* Copyright (c) 2011 Xiph.Org Foundation + Written by Jean-Marc Valin */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "opus_multistream.h" +#include "opus.h" +#include "opus_private.h" +#include "stack_alloc.h" +#include +#include "float_cast.h" +#include "os_support.h" +#include "mathops.h" +#include "mdct.h" +#include "modes.h" +#include "bands.h" +#include "quant_bands.h" +#include "pitch.h" + +typedef struct { + int nb_streams; + int nb_coupled_streams; + unsigned char mapping[8]; +} VorbisLayout; + +/* Index is nb_channel-1*/ +static const VorbisLayout vorbis_mappings[8] = { + {1, 0, {0}}, /* 1: mono */ + {1, 1, {0, 1}}, /* 2: stereo */ + {2, 1, {0, 2, 1}}, /* 3: 1-d surround */ + {2, 2, {0, 1, 2, 3}}, /* 4: quadraphonic surround */ + {3, 2, {0, 4, 1, 2, 3}}, /* 5: 5-channel surround */ + {4, 2, {0, 4, 1, 2, 3, 5}}, /* 6: 5.1 surround */ + {4, 3, {0, 4, 1, 2, 3, 5, 6}}, /* 7: 6.1 surround */ + {5, 3, {0, 6, 1, 2, 3, 4, 5, 7}}, /* 8: 7.1 surround */ +}; + +static opus_val32 *ms_get_preemph_mem(OpusMSEncoder *st) +{ + int s; + char *ptr; + int coupled_size, mono_size; + + coupled_size = opus_encoder_get_size(2); + mono_size = opus_encoder_get_size(1); + ptr = (char*)st + align(sizeof(OpusMSEncoder)); + for (s=0;slayout.nb_streams;s++) + { + if (s < st->layout.nb_coupled_streams) + ptr += align(coupled_size); + else + ptr += align(mono_size); + } + /* void* cast avoids clang -Wcast-align warning */ + return (opus_val32*)(void*)(ptr+st->layout.nb_channels*120*sizeof(opus_val32)); +} + +static opus_val32 *ms_get_window_mem(OpusMSEncoder *st) +{ + int s; + char *ptr; + int coupled_size, mono_size; + + coupled_size = opus_encoder_get_size(2); + mono_size = opus_encoder_get_size(1); + ptr = (char*)st + align(sizeof(OpusMSEncoder)); + for (s=0;slayout.nb_streams;s++) + { + if (s < st->layout.nb_coupled_streams) + ptr += align(coupled_size); + else + ptr += align(mono_size); + } + /* void* cast avoids clang -Wcast-align warning */ + return (opus_val32*)(void*)ptr; +} + +static int validate_ambisonics(int nb_channels, int *nb_streams, int *nb_coupled_streams) +{ + int order_plus_one; + int acn_channels; + int nondiegetic_channels; + + if (nb_channels < 1 || nb_channels > 227) + return 0; + + order_plus_one = isqrt32(nb_channels); + acn_channels = order_plus_one * order_plus_one; + nondiegetic_channels = nb_channels - acn_channels; + + if (nondiegetic_channels != 0 && nondiegetic_channels != 2) + return 0; + + if (nb_streams) + *nb_streams = acn_channels + (nondiegetic_channels != 0); + if (nb_coupled_streams) + *nb_coupled_streams = nondiegetic_channels != 0; + return 1; +} + +static int validate_encoder_layout(const ChannelLayout *layout) +{ + int s; + for (s=0;snb_streams;s++) + { + if (s < layout->nb_coupled_streams) + { + if (get_left_channel(layout, s, -1)==-1) + return 0; + if (get_right_channel(layout, s, -1)==-1) + return 0; + } else { + if (get_mono_channel(layout, s, -1)==-1) + return 0; + } + } + return 1; +} + +static void channel_pos(int channels, int pos[8]) +{ + /* Position in the mix: 0 don't mix, 1: left, 2: center, 3:right */ + if (channels==4) + { + pos[0]=1; + pos[1]=3; + pos[2]=1; + pos[3]=3; + } else if (channels==3||channels==5||channels==6) + { + pos[0]=1; + pos[1]=2; + pos[2]=3; + pos[3]=1; + pos[4]=3; + pos[5]=0; + } else if (channels==7) + { + pos[0]=1; + pos[1]=2; + pos[2]=3; + pos[3]=1; + pos[4]=3; + pos[5]=2; + pos[6]=0; + } else if (channels==8) + { + pos[0]=1; + pos[1]=2; + pos[2]=3; + pos[3]=1; + pos[4]=3; + pos[5]=1; + pos[6]=3; + pos[7]=0; + } +} + +#if 1 +/* Computes a rough approximation of log2(2^a + 2^b) */ +static opus_val16 logSum(opus_val16 a, opus_val16 b) +{ + opus_val16 max; + opus_val32 diff; + opus_val16 frac; + static const opus_val16 diff_table[17] = { + QCONST16(0.5000000f, DB_SHIFT), QCONST16(0.2924813f, DB_SHIFT), QCONST16(0.1609640f, DB_SHIFT), QCONST16(0.0849625f, DB_SHIFT), + QCONST16(0.0437314f, DB_SHIFT), QCONST16(0.0221971f, DB_SHIFT), QCONST16(0.0111839f, DB_SHIFT), QCONST16(0.0056136f, DB_SHIFT), + QCONST16(0.0028123f, DB_SHIFT) + }; + int low; + if (a>b) + { + max = a; + diff = SUB32(EXTEND32(a),EXTEND32(b)); + } else { + max = b; + diff = SUB32(EXTEND32(b),EXTEND32(a)); + } + if (!(diff < QCONST16(8.f, DB_SHIFT))) /* inverted to catch NaNs */ + return max; +#ifdef FIXED_POINT + low = SHR32(diff, DB_SHIFT-1); + frac = SHL16(diff - SHL16(low, DB_SHIFT-1), 16-DB_SHIFT); +#else + low = (int)floor(2*diff); + frac = 2*diff - low; +#endif + return max + diff_table[low] + MULT16_16_Q15(frac, SUB16(diff_table[low+1], diff_table[low])); +} +#else +opus_val16 logSum(opus_val16 a, opus_val16 b) +{ + return log2(pow(4, a)+ pow(4, b))/2; +} +#endif + +void surround_analysis(const CELTMode *celt_mode, const void *pcm, opus_val16 *bandLogE, opus_val32 *mem, opus_val32 *preemph_mem, + int len, int overlap, int channels, int rate, opus_copy_channel_in_func copy_channel_in, int arch +) +{ + int c; + int i; + int LM; + int pos[8] = {0}; + int upsample; + int frame_size; + int freq_size; + opus_val16 channel_offset; + opus_val32 bandE[21]; + opus_val16 maskLogE[3][21]; + VARDECL(opus_val32, in); + VARDECL(opus_val16, x); + VARDECL(opus_val32, freq); + SAVE_STACK; + + upsample = resampling_factor(rate); + frame_size = len*upsample; + freq_size = IMIN(960, frame_size); + + /* LM = log2(frame_size / 120) */ + for (LM=0;LMmaxLM;LM++) + if (celt_mode->shortMdctSize<preemph, preemph_mem+c, 0); +#ifndef FIXED_POINT + { + opus_val32 sum; + sum = celt_inner_prod(in, in, frame_size+overlap, 0); + /* This should filter out both NaNs and ridiculous signals that could + cause NaNs further down. */ + if (!(sum < 1e18f) || celt_isnan(sum)) + { + OPUS_CLEAR(in, frame_size+overlap); + preemph_mem[c] = 0; + } + } +#endif + OPUS_CLEAR(bandE, 21); + for (frame=0;framemdct, in+960*frame, freq, celt_mode->window, + overlap, celt_mode->maxLM-LM, 1, arch); + if (upsample != 1) + { + int bound = freq_size/upsample; + for (i=0;i=0;i--) + bandLogE[21*c+i] = MAX16(bandLogE[21*c+i], bandLogE[21*c+i+1]-QCONST16(2.f, DB_SHIFT)); + if (pos[c]==1) + { + for (i=0;i<21;i++) + maskLogE[0][i] = logSum(maskLogE[0][i], bandLogE[21*c+i]); + } else if (pos[c]==3) + { + for (i=0;i<21;i++) + maskLogE[2][i] = logSum(maskLogE[2][i], bandLogE[21*c+i]); + } else if (pos[c]==2) + { + for (i=0;i<21;i++) + { + maskLogE[0][i] = logSum(maskLogE[0][i], bandLogE[21*c+i]-QCONST16(.5f, DB_SHIFT)); + maskLogE[2][i] = logSum(maskLogE[2][i], bandLogE[21*c+i]-QCONST16(.5f, DB_SHIFT)); + } + } +#if 0 + for (i=0;i<21;i++) + printf("%f ", bandLogE[21*c+i]); + float sum=0; + for (i=0;i<21;i++) + sum += bandLogE[21*c+i]; + printf("%f ", sum/21); +#endif + OPUS_COPY(mem+c*overlap, in+frame_size, overlap); + } + for (i=0;i<21;i++) + maskLogE[1][i] = MIN32(maskLogE[0][i],maskLogE[2][i]); + channel_offset = HALF16(celt_log2(QCONST32(2.f,14)/(channels-1))); + for (c=0;c<3;c++) + for (i=0;i<21;i++) + maskLogE[c][i] += channel_offset; +#if 0 + for (c=0;c<3;c++) + { + for (i=0;i<21;i++) + printf("%f ", maskLogE[c][i]); + } +#endif + for (c=0;cnb_streams||nb_coupled_streams<0)return 0; + coupled_size = opus_encoder_get_size(2); + mono_size = opus_encoder_get_size(1); + return align(sizeof(OpusMSEncoder)) + + nb_coupled_streams * align(coupled_size) + + (nb_streams-nb_coupled_streams) * align(mono_size); +} + +opus_int32 opus_multistream_surround_encoder_get_size(int channels, int mapping_family) +{ + int nb_streams; + int nb_coupled_streams; + opus_int32 size; + + if (mapping_family==0) + { + if (channels==1) + { + nb_streams=1; + nb_coupled_streams=0; + } else if (channels==2) + { + nb_streams=1; + nb_coupled_streams=1; + } else + return 0; + } else if (mapping_family==1 && channels<=8 && channels>=1) + { + nb_streams=vorbis_mappings[channels-1].nb_streams; + nb_coupled_streams=vorbis_mappings[channels-1].nb_coupled_streams; + } else if (mapping_family==255) + { + nb_streams=channels; + nb_coupled_streams=0; + } else if (mapping_family==2) + { + if (!validate_ambisonics(channels, &nb_streams, &nb_coupled_streams)) + return 0; + } else + return 0; + size = opus_multistream_encoder_get_size(nb_streams, nb_coupled_streams); + if (channels>2) + { + size += channels*(120*sizeof(opus_val32) + sizeof(opus_val32)); + } + return size; +} + +static int opus_multistream_encoder_init_impl( + OpusMSEncoder *st, + opus_int32 Fs, + int channels, + int streams, + int coupled_streams, + const unsigned char *mapping, + int application, + MappingType mapping_type +) +{ + int coupled_size; + int mono_size; + int i, ret; + char *ptr; + + if ((channels>255) || (channels<1) || (coupled_streams>streams) || + (streams<1) || (coupled_streams<0) || (streams>255-coupled_streams)) + return OPUS_BAD_ARG; + + st->arch = opus_select_arch(); + st->layout.nb_channels = channels; + st->layout.nb_streams = streams; + st->layout.nb_coupled_streams = coupled_streams; + if (mapping_type != MAPPING_TYPE_SURROUND) + st->lfe_stream = -1; + st->bitrate_bps = OPUS_AUTO; + st->application = application; + st->variable_duration = OPUS_FRAMESIZE_ARG; + for (i=0;ilayout.nb_channels;i++) + st->layout.mapping[i] = mapping[i]; + if (!validate_layout(&st->layout)) + return OPUS_BAD_ARG; + if (mapping_type == MAPPING_TYPE_SURROUND && + !validate_encoder_layout(&st->layout)) + return OPUS_BAD_ARG; + if (mapping_type == MAPPING_TYPE_AMBISONICS && + !validate_ambisonics(st->layout.nb_channels, NULL, NULL)) + return OPUS_BAD_ARG; + ptr = (char*)st + align(sizeof(OpusMSEncoder)); + coupled_size = opus_encoder_get_size(2); + mono_size = opus_encoder_get_size(1); + + for (i=0;ilayout.nb_coupled_streams;i++) + { + ret = opus_encoder_init((OpusEncoder*)ptr, Fs, 2, application); + if(ret!=OPUS_OK)return ret; + if (i==st->lfe_stream) + opus_encoder_ctl((OpusEncoder*)ptr, OPUS_SET_LFE(1)); + ptr += align(coupled_size); + } + for (;ilayout.nb_streams;i++) + { + ret = opus_encoder_init((OpusEncoder*)ptr, Fs, 1, application); + if (i==st->lfe_stream) + opus_encoder_ctl((OpusEncoder*)ptr, OPUS_SET_LFE(1)); + if(ret!=OPUS_OK)return ret; + ptr += align(mono_size); + } + if (mapping_type == MAPPING_TYPE_SURROUND) + { + OPUS_CLEAR(ms_get_preemph_mem(st), channels); + OPUS_CLEAR(ms_get_window_mem(st), channels*120); + } + st->mapping_type = mapping_type; + return OPUS_OK; +} + +int opus_multistream_encoder_init( + OpusMSEncoder *st, + opus_int32 Fs, + int channels, + int streams, + int coupled_streams, + const unsigned char *mapping, + int application +) +{ + return opus_multistream_encoder_init_impl(st, Fs, channels, streams, + coupled_streams, mapping, + application, MAPPING_TYPE_NONE); +} + +int opus_multistream_surround_encoder_init( + OpusMSEncoder *st, + opus_int32 Fs, + int channels, + int mapping_family, + int *streams, + int *coupled_streams, + unsigned char *mapping, + int application +) +{ + MappingType mapping_type; + + if ((channels>255) || (channels<1)) + return OPUS_BAD_ARG; + st->lfe_stream = -1; + if (mapping_family==0) + { + if (channels==1) + { + *streams=1; + *coupled_streams=0; + mapping[0]=0; + } else if (channels==2) + { + *streams=1; + *coupled_streams=1; + mapping[0]=0; + mapping[1]=1; + } else + return OPUS_UNIMPLEMENTED; + } else if (mapping_family==1 && channels<=8 && channels>=1) + { + int i; + *streams=vorbis_mappings[channels-1].nb_streams; + *coupled_streams=vorbis_mappings[channels-1].nb_coupled_streams; + for (i=0;i=6) + st->lfe_stream = *streams-1; + } else if (mapping_family==255) + { + int i; + *streams=channels; + *coupled_streams=0; + for(i=0;i2 && mapping_family==1) { + mapping_type = MAPPING_TYPE_SURROUND; + } else if (mapping_family==2) + { + mapping_type = MAPPING_TYPE_AMBISONICS; + } else + { + mapping_type = MAPPING_TYPE_NONE; + } + return opus_multistream_encoder_init_impl(st, Fs, channels, *streams, + *coupled_streams, mapping, + application, mapping_type); +} + +OpusMSEncoder *opus_multistream_encoder_create( + opus_int32 Fs, + int channels, + int streams, + int coupled_streams, + const unsigned char *mapping, + int application, + int *error +) +{ + int ret; + OpusMSEncoder *st; + if ((channels>255) || (channels<1) || (coupled_streams>streams) || + (streams<1) || (coupled_streams<0) || (streams>255-coupled_streams)) + { + if (error) + *error = OPUS_BAD_ARG; + return NULL; + } + st = (OpusMSEncoder *)opus_alloc(opus_multistream_encoder_get_size(streams, coupled_streams)); + if (st==NULL) + { + if (error) + *error = OPUS_ALLOC_FAIL; + return NULL; + } + ret = opus_multistream_encoder_init(st, Fs, channels, streams, coupled_streams, mapping, application); + if (ret != OPUS_OK) + { + opus_free(st); + st = NULL; + } + if (error) + *error = ret; + return st; +} + +OpusMSEncoder *opus_multistream_surround_encoder_create( + opus_int32 Fs, + int channels, + int mapping_family, + int *streams, + int *coupled_streams, + unsigned char *mapping, + int application, + int *error +) +{ + int ret; + opus_int32 size; + OpusMSEncoder *st; + if ((channels>255) || (channels<1)) + { + if (error) + *error = OPUS_BAD_ARG; + return NULL; + } + size = opus_multistream_surround_encoder_get_size(channels, mapping_family); + if (!size) + { + if (error) + *error = OPUS_UNIMPLEMENTED; + return NULL; + } + st = (OpusMSEncoder *)opus_alloc(size); + if (st==NULL) + { + if (error) + *error = OPUS_ALLOC_FAIL; + return NULL; + } + ret = opus_multistream_surround_encoder_init(st, Fs, channels, mapping_family, streams, coupled_streams, mapping, application); + if (ret != OPUS_OK) + { + opus_free(st); + st = NULL; + } + if (error) + *error = ret; + return st; +} + +static void surround_rate_allocation( + OpusMSEncoder *st, + opus_int32 *rate, + int frame_size, + opus_int32 Fs + ) +{ + int i; + opus_int32 channel_rate; + int stream_offset; + int lfe_offset; + int coupled_ratio; /* Q8 */ + int lfe_ratio; /* Q8 */ + int nb_lfe; + int nb_uncoupled; + int nb_coupled; + int nb_normal; + opus_int32 channel_offset; + opus_int32 bitrate; + int total; + + nb_lfe = (st->lfe_stream!=-1); + nb_coupled = st->layout.nb_coupled_streams; + nb_uncoupled = st->layout.nb_streams-nb_coupled-nb_lfe; + nb_normal = 2*nb_coupled + nb_uncoupled; + + /* Give each non-LFE channel enough bits per channel for coding band energy. */ + channel_offset = 40*IMAX(50, Fs/frame_size); + + if (st->bitrate_bps==OPUS_AUTO) + { + bitrate = nb_normal*(channel_offset + Fs + 10000) + 8000*nb_lfe; + } else if (st->bitrate_bps==OPUS_BITRATE_MAX) + { + bitrate = nb_normal*300000 + nb_lfe*128000; + } else { + bitrate = st->bitrate_bps; + } + + /* Give LFE some basic stream_channel allocation but never exceed 1/20 of the + total rate for the non-energy part to avoid problems at really low rate. */ + lfe_offset = IMIN(bitrate/20, 3000) + 15*IMAX(50, Fs/frame_size); + + /* We give each stream (coupled or uncoupled) a starting bitrate. + This models the main saving of coupled channels over uncoupled. */ + stream_offset = (bitrate - channel_offset*nb_normal - lfe_offset*nb_lfe)/nb_normal/2; + stream_offset = IMAX(0, IMIN(20000, stream_offset)); + + /* Coupled streams get twice the mono rate after the offset is allocated. */ + coupled_ratio = 512; + /* Should depend on the bitrate, for now we assume LFE gets 1/8 the bits of mono */ + lfe_ratio = 32; + + total = (nb_uncoupled<<8) /* mono */ + + coupled_ratio*nb_coupled /* stereo */ + + nb_lfe*lfe_ratio; + channel_rate = 256*(opus_int64)(bitrate - lfe_offset*nb_lfe - stream_offset*(nb_coupled+nb_uncoupled) - channel_offset*nb_normal)/total; + + for (i=0;ilayout.nb_streams;i++) + { + if (ilayout.nb_coupled_streams) + rate[i] = 2*channel_offset + IMAX(0, stream_offset+(channel_rate*coupled_ratio>>8)); + else if (i!=st->lfe_stream) + rate[i] = channel_offset + IMAX(0, stream_offset + channel_rate); + else + rate[i] = IMAX(0, lfe_offset+(channel_rate*lfe_ratio>>8)); + } +} + +static void ambisonics_rate_allocation( + OpusMSEncoder *st, + opus_int32 *rate, + int frame_size, + opus_int32 Fs + ) +{ + int i; + opus_int32 total_rate; + opus_int32 per_stream_rate; + + const int nb_channels = st->layout.nb_streams + st->layout.nb_coupled_streams; + + if (st->bitrate_bps==OPUS_AUTO) + { + total_rate = (st->layout.nb_coupled_streams + st->layout.nb_streams) * + (Fs+60*Fs/frame_size) + st->layout.nb_streams * (opus_int32)15000; + } else if (st->bitrate_bps==OPUS_BITRATE_MAX) + { + total_rate = nb_channels * 320000; + } else + { + total_rate = st->bitrate_bps; + } + + /* Allocate equal number of bits to Ambisonic (uncoupled) and non-diegetic + * (coupled) streams */ + per_stream_rate = total_rate / st->layout.nb_streams; + for (i = 0; i < st->layout.nb_streams; i++) + { + rate[i] = per_stream_rate; + } +} + +static opus_int32 rate_allocation( + OpusMSEncoder *st, + opus_int32 *rate, + int frame_size + ) +{ + int i; + opus_int32 rate_sum=0; + opus_int32 Fs; + char *ptr; + + ptr = (char*)st + align(sizeof(OpusMSEncoder)); + opus_encoder_ctl((OpusEncoder*)ptr, OPUS_GET_SAMPLE_RATE(&Fs)); + + if (st->mapping_type == MAPPING_TYPE_AMBISONICS) { + ambisonics_rate_allocation(st, rate, frame_size, Fs); + } else + { + surround_rate_allocation(st, rate, frame_size, Fs); + } + + for (i=0;ilayout.nb_streams;i++) + { + rate[i] = IMAX(rate[i], 500); + rate_sum += rate[i]; + } + return rate_sum; +} + +/* Max size in case the encoder decides to return six frames (6 x 20 ms = 120 ms) */ +#define MS_FRAME_TMP (6*1275+12) +int opus_multistream_encode_native +( + OpusMSEncoder *st, + opus_copy_channel_in_func copy_channel_in, + const void *pcm, + int analysis_frame_size, + unsigned char *data, + opus_int32 max_data_bytes, + int lsb_depth, + downmix_func downmix, + int float_api, + void *user_data +) +{ + opus_int32 Fs; + int coupled_size; + int mono_size; + int s; + char *ptr; + int tot_size; + VARDECL(opus_val16, buf); + VARDECL(opus_val16, bandSMR); + unsigned char tmp_data[MS_FRAME_TMP]; + OpusRepacketizer rp; + opus_int32 vbr; + const CELTMode *celt_mode; + opus_int32 bitrates[256]; + opus_val16 bandLogE[42]; + opus_val32 *mem = NULL; + opus_val32 *preemph_mem=NULL; + int frame_size; + opus_int32 rate_sum; + opus_int32 smallest_packet; + ALLOC_STACK; + + if (st->mapping_type == MAPPING_TYPE_SURROUND) + { + preemph_mem = ms_get_preemph_mem(st); + mem = ms_get_window_mem(st); + } + + ptr = (char*)st + align(sizeof(OpusMSEncoder)); + opus_encoder_ctl((OpusEncoder*)ptr, OPUS_GET_SAMPLE_RATE(&Fs)); + opus_encoder_ctl((OpusEncoder*)ptr, OPUS_GET_VBR(&vbr)); + opus_encoder_ctl((OpusEncoder*)ptr, CELT_GET_MODE(&celt_mode)); + + frame_size = frame_size_select(analysis_frame_size, st->variable_duration, Fs); + if (frame_size <= 0) + { + RESTORE_STACK; + return OPUS_BAD_ARG; + } + + /* Smallest packet the encoder can produce. */ + smallest_packet = st->layout.nb_streams*2-1; + /* 100 ms needs an extra byte per stream for the ToC. */ + if (Fs/frame_size == 10) + smallest_packet += st->layout.nb_streams; + if (max_data_bytes < smallest_packet) + { + RESTORE_STACK; + return OPUS_BUFFER_TOO_SMALL; + } + ALLOC(buf, 2*frame_size, opus_val16); + coupled_size = opus_encoder_get_size(2); + mono_size = opus_encoder_get_size(1); + + ALLOC(bandSMR, 21*st->layout.nb_channels, opus_val16); + if (st->mapping_type == MAPPING_TYPE_SURROUND) + { + surround_analysis(celt_mode, pcm, bandSMR, mem, preemph_mem, frame_size, 120, st->layout.nb_channels, Fs, copy_channel_in, st->arch); + } + + /* Compute bitrate allocation between streams (this could be a lot better) */ + rate_sum = rate_allocation(st, bitrates, frame_size); + + if (!vbr) + { + if (st->bitrate_bps == OPUS_AUTO) + { + max_data_bytes = IMIN(max_data_bytes, 3*rate_sum/(3*8*Fs/frame_size)); + } else if (st->bitrate_bps != OPUS_BITRATE_MAX) + { + max_data_bytes = IMIN(max_data_bytes, IMAX(smallest_packet, + 3*st->bitrate_bps/(3*8*Fs/frame_size))); + } + } + ptr = (char*)st + align(sizeof(OpusMSEncoder)); + for (s=0;slayout.nb_streams;s++) + { + OpusEncoder *enc; + enc = (OpusEncoder*)ptr; + if (s < st->layout.nb_coupled_streams) + ptr += align(coupled_size); + else + ptr += align(mono_size); + opus_encoder_ctl(enc, OPUS_SET_BITRATE(bitrates[s])); + if (st->mapping_type == MAPPING_TYPE_SURROUND) + { + opus_int32 equiv_rate; + equiv_rate = st->bitrate_bps; + if (frame_size*50 < Fs) + equiv_rate -= 60*(Fs/frame_size - 50)*st->layout.nb_channels; + if (equiv_rate > 10000*st->layout.nb_channels) + opus_encoder_ctl(enc, OPUS_SET_BANDWIDTH(OPUS_BANDWIDTH_FULLBAND)); + else if (equiv_rate > 7000*st->layout.nb_channels) + opus_encoder_ctl(enc, OPUS_SET_BANDWIDTH(OPUS_BANDWIDTH_SUPERWIDEBAND)); + else if (equiv_rate > 5000*st->layout.nb_channels) + opus_encoder_ctl(enc, OPUS_SET_BANDWIDTH(OPUS_BANDWIDTH_WIDEBAND)); + else + opus_encoder_ctl(enc, OPUS_SET_BANDWIDTH(OPUS_BANDWIDTH_NARROWBAND)); + if (s < st->layout.nb_coupled_streams) + { + /* To preserve the spatial image, force stereo CELT on coupled streams */ + opus_encoder_ctl(enc, OPUS_SET_FORCE_MODE(MODE_CELT_ONLY)); + opus_encoder_ctl(enc, OPUS_SET_FORCE_CHANNELS(2)); + } + } + else if (st->mapping_type == MAPPING_TYPE_AMBISONICS) { + opus_encoder_ctl(enc, OPUS_SET_FORCE_MODE(MODE_CELT_ONLY)); + } + } + + ptr = (char*)st + align(sizeof(OpusMSEncoder)); + /* Counting ToC */ + tot_size = 0; + for (s=0;slayout.nb_streams;s++) + { + OpusEncoder *enc; + int len; + int curr_max; + int c1, c2; + int ret; + + opus_repacketizer_init(&rp); + enc = (OpusEncoder*)ptr; + if (s < st->layout.nb_coupled_streams) + { + int i; + int left, right; + left = get_left_channel(&st->layout, s, -1); + right = get_right_channel(&st->layout, s, -1); + (*copy_channel_in)(buf, 2, + pcm, st->layout.nb_channels, left, frame_size, user_data); + (*copy_channel_in)(buf+1, 2, + pcm, st->layout.nb_channels, right, frame_size, user_data); + ptr += align(coupled_size); + if (st->mapping_type == MAPPING_TYPE_SURROUND) + { + for (i=0;i<21;i++) + { + bandLogE[i] = bandSMR[21*left+i]; + bandLogE[21+i] = bandSMR[21*right+i]; + } + } + c1 = left; + c2 = right; + } else { + int i; + int chan = get_mono_channel(&st->layout, s, -1); + (*copy_channel_in)(buf, 1, + pcm, st->layout.nb_channels, chan, frame_size, user_data); + ptr += align(mono_size); + if (st->mapping_type == MAPPING_TYPE_SURROUND) + { + for (i=0;i<21;i++) + bandLogE[i] = bandSMR[21*chan+i]; + } + c1 = chan; + c2 = -1; + } + if (st->mapping_type == MAPPING_TYPE_SURROUND) + opus_encoder_ctl(enc, OPUS_SET_ENERGY_MASK(bandLogE)); + /* number of bytes left (+Toc) */ + curr_max = max_data_bytes - tot_size; + /* Reserve one byte for the last stream and two for the others */ + curr_max -= IMAX(0,2*(st->layout.nb_streams-s-1)-1); + /* For 100 ms, reserve an extra byte per stream for the ToC */ + if (Fs/frame_size == 10) + curr_max -= st->layout.nb_streams-s-1; + curr_max = IMIN(curr_max,MS_FRAME_TMP); + /* Repacketizer will add one or two bytes for self-delimited frames */ + if (s != st->layout.nb_streams-1) curr_max -= curr_max>253 ? 2 : 1; + if (!vbr && s == st->layout.nb_streams-1) + opus_encoder_ctl(enc, OPUS_SET_BITRATE(curr_max*(8*Fs/frame_size))); + len = opus_encode_native(enc, buf, frame_size, tmp_data, curr_max, lsb_depth, + pcm, analysis_frame_size, c1, c2, st->layout.nb_channels, downmix, float_api); + if (len<0) + { + RESTORE_STACK; + return len; + } + /* We need to use the repacketizer to add the self-delimiting lengths + while taking into account the fact that the encoder can now return + more than one frame at a time (e.g. 60 ms CELT-only) */ + ret = opus_repacketizer_cat(&rp, tmp_data, len); + /* If the opus_repacketizer_cat() fails, then something's seriously wrong + with the encoder. */ + if (ret != OPUS_OK) + { + RESTORE_STACK; + return OPUS_INTERNAL_ERROR; + } + len = opus_repacketizer_out_range_impl(&rp, 0, opus_repacketizer_get_nb_frames(&rp), + data, max_data_bytes-tot_size, s != st->layout.nb_streams-1, !vbr && s == st->layout.nb_streams-1); + data += len; + tot_size += len; + } + /*printf("\n");*/ + RESTORE_STACK; + return tot_size; +} + +#if !defined(DISABLE_FLOAT_API) +static void opus_copy_channel_in_float( + opus_val16 *dst, + int dst_stride, + const void *src, + int src_stride, + int src_channel, + int frame_size, + void *user_data +) +{ + const float *float_src; + opus_int32 i; + (void)user_data; + float_src = (const float *)src; + for (i=0;ilayout.nb_channels, IMAX(500*st->layout.nb_channels, value)); + } + st->bitrate_bps = value; + } + break; + case OPUS_GET_BITRATE_REQUEST: + { + int s; + opus_int32 *value = va_arg(ap, opus_int32*); + if (!value) + { + goto bad_arg; + } + *value = 0; + for (s=0;slayout.nb_streams;s++) + { + opus_int32 rate; + OpusEncoder *enc; + enc = (OpusEncoder*)ptr; + if (s < st->layout.nb_coupled_streams) + ptr += align(coupled_size); + else + ptr += align(mono_size); + opus_encoder_ctl(enc, request, &rate); + *value += rate; + } + } + break; + case OPUS_GET_LSB_DEPTH_REQUEST: + case OPUS_GET_VBR_REQUEST: + case OPUS_GET_APPLICATION_REQUEST: + case OPUS_GET_BANDWIDTH_REQUEST: + case OPUS_GET_COMPLEXITY_REQUEST: + case OPUS_GET_PACKET_LOSS_PERC_REQUEST: + case OPUS_GET_DTX_REQUEST: + case OPUS_GET_VOICE_RATIO_REQUEST: + case OPUS_GET_VBR_CONSTRAINT_REQUEST: + case OPUS_GET_SIGNAL_REQUEST: + case OPUS_GET_LOOKAHEAD_REQUEST: + case OPUS_GET_SAMPLE_RATE_REQUEST: + case OPUS_GET_INBAND_FEC_REQUEST: + case OPUS_GET_FORCE_CHANNELS_REQUEST: + case OPUS_GET_PREDICTION_DISABLED_REQUEST: + case OPUS_GET_PHASE_INVERSION_DISABLED_REQUEST: + { + OpusEncoder *enc; + /* For int32* GET params, just query the first stream */ + opus_int32 *value = va_arg(ap, opus_int32*); + enc = (OpusEncoder*)ptr; + ret = opus_encoder_ctl(enc, request, value); + } + break; + case OPUS_GET_FINAL_RANGE_REQUEST: + { + int s; + opus_uint32 *value = va_arg(ap, opus_uint32*); + opus_uint32 tmp; + if (!value) + { + goto bad_arg; + } + *value=0; + for (s=0;slayout.nb_streams;s++) + { + OpusEncoder *enc; + enc = (OpusEncoder*)ptr; + if (s < st->layout.nb_coupled_streams) + ptr += align(coupled_size); + else + ptr += align(mono_size); + ret = opus_encoder_ctl(enc, request, &tmp); + if (ret != OPUS_OK) break; + *value ^= tmp; + } + } + break; + case OPUS_SET_LSB_DEPTH_REQUEST: + case OPUS_SET_COMPLEXITY_REQUEST: + case OPUS_SET_VBR_REQUEST: + case OPUS_SET_VBR_CONSTRAINT_REQUEST: + case OPUS_SET_MAX_BANDWIDTH_REQUEST: + case OPUS_SET_BANDWIDTH_REQUEST: + case OPUS_SET_SIGNAL_REQUEST: + case OPUS_SET_APPLICATION_REQUEST: + case OPUS_SET_INBAND_FEC_REQUEST: + case OPUS_SET_PACKET_LOSS_PERC_REQUEST: + case OPUS_SET_DTX_REQUEST: + case OPUS_SET_FORCE_MODE_REQUEST: + case OPUS_SET_FORCE_CHANNELS_REQUEST: + case OPUS_SET_PREDICTION_DISABLED_REQUEST: + case OPUS_SET_PHASE_INVERSION_DISABLED_REQUEST: + { + int s; + /* This works for int32 params */ + opus_int32 value = va_arg(ap, opus_int32); + for (s=0;slayout.nb_streams;s++) + { + OpusEncoder *enc; + + enc = (OpusEncoder*)ptr; + if (s < st->layout.nb_coupled_streams) + ptr += align(coupled_size); + else + ptr += align(mono_size); + ret = opus_encoder_ctl(enc, request, value); + if (ret != OPUS_OK) + break; + } + } + break; + case OPUS_MULTISTREAM_GET_ENCODER_STATE_REQUEST: + { + int s; + opus_int32 stream_id; + OpusEncoder **value; + stream_id = va_arg(ap, opus_int32); + if (stream_id<0 || stream_id >= st->layout.nb_streams) + goto bad_arg; + value = va_arg(ap, OpusEncoder**); + if (!value) + { + goto bad_arg; + } + for (s=0;slayout.nb_coupled_streams) + ptr += align(coupled_size); + else + ptr += align(mono_size); + } + *value = (OpusEncoder*)ptr; + } + break; + case OPUS_SET_EXPERT_FRAME_DURATION_REQUEST: + { + opus_int32 value = va_arg(ap, opus_int32); + st->variable_duration = value; + } + break; + case OPUS_GET_EXPERT_FRAME_DURATION_REQUEST: + { + opus_int32 *value = va_arg(ap, opus_int32*); + if (!value) + { + goto bad_arg; + } + *value = st->variable_duration; + } + break; + case OPUS_RESET_STATE: + { + int s; + if (st->mapping_type == MAPPING_TYPE_SURROUND) + { + OPUS_CLEAR(ms_get_preemph_mem(st), st->layout.nb_channels); + OPUS_CLEAR(ms_get_window_mem(st), st->layout.nb_channels*120); + } + for (s=0;slayout.nb_streams;s++) + { + OpusEncoder *enc; + enc = (OpusEncoder*)ptr; + if (s < st->layout.nb_coupled_streams) + ptr += align(coupled_size); + else + ptr += align(mono_size); + ret = opus_encoder_ctl(enc, OPUS_RESET_STATE); + if (ret != OPUS_OK) + break; + } + } + break; + default: + ret = OPUS_UNIMPLEMENTED; + break; + } + return ret; +bad_arg: + return OPUS_BAD_ARG; +} + +int opus_multistream_encoder_ctl(OpusMSEncoder *st, int request, ...) +{ + int ret; + va_list ap; + va_start(ap, request); + ret = opus_multistream_encoder_ctl_va_list(st, request, ap); + va_end(ap); + return ret; +} + +void opus_multistream_encoder_destroy(OpusMSEncoder *st) +{ + opus_free(st); +} diff --git a/components/opus/libopus/src/opus_private.h b/components/opus/libopus/src/opus_private.h new file mode 100644 index 0000000..5e2463f --- /dev/null +++ b/components/opus/libopus/src/opus_private.h @@ -0,0 +1,201 @@ +/* Copyright (c) 2012 Xiph.Org Foundation + Written by Jean-Marc Valin */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +#ifndef OPUS_PRIVATE_H +#define OPUS_PRIVATE_H + +#include "arch.h" +#include "opus.h" +#include "celt.h" + +#include /* va_list */ +#include /* offsetof */ + +struct OpusRepacketizer { + unsigned char toc; + int nb_frames; + const unsigned char *frames[48]; + opus_int16 len[48]; + int framesize; +}; + +typedef struct ChannelLayout { + int nb_channels; + int nb_streams; + int nb_coupled_streams; + unsigned char mapping[256]; +} ChannelLayout; + +typedef enum { + MAPPING_TYPE_NONE, + MAPPING_TYPE_SURROUND, + MAPPING_TYPE_AMBISONICS +} MappingType; + +struct OpusMSEncoder { + ChannelLayout layout; + int arch; + int lfe_stream; + int application; + int variable_duration; + MappingType mapping_type; + opus_int32 bitrate_bps; + /* Encoder states go here */ + /* then opus_val32 window_mem[channels*120]; */ + /* then opus_val32 preemph_mem[channels]; */ +}; + +struct OpusMSDecoder { + ChannelLayout layout; + /* Decoder states go here */ +}; + +int opus_multistream_encoder_ctl_va_list(struct OpusMSEncoder *st, int request, + va_list ap); +int opus_multistream_decoder_ctl_va_list(struct OpusMSDecoder *st, int request, + va_list ap); + +int validate_layout(const ChannelLayout *layout); +int get_left_channel(const ChannelLayout *layout, int stream_id, int prev); +int get_right_channel(const ChannelLayout *layout, int stream_id, int prev); +int get_mono_channel(const ChannelLayout *layout, int stream_id, int prev); + +typedef void (*opus_copy_channel_in_func)( + opus_val16 *dst, + int dst_stride, + const void *src, + int src_stride, + int src_channel, + int frame_size, + void *user_data +); + +typedef void (*opus_copy_channel_out_func)( + void *dst, + int dst_stride, + int dst_channel, + const opus_val16 *src, + int src_stride, + int frame_size, + void *user_data +); + +#define MODE_SILK_ONLY 1000 +#define MODE_HYBRID 1001 +#define MODE_CELT_ONLY 1002 + +#define OPUS_SET_VOICE_RATIO_REQUEST 11018 +#define OPUS_GET_VOICE_RATIO_REQUEST 11019 + +/** Configures the encoder's expected percentage of voice + * opposed to music or other signals. + * + * @note This interface is currently more aspiration than actuality. It's + * ultimately expected to bias an automatic signal classifier, but it currently + * just shifts the static bitrate to mode mapping around a little bit. + * + * @param[in] x int: Voice percentage in the range 0-100, inclusive. + * @hideinitializer */ +#define OPUS_SET_VOICE_RATIO(x) OPUS_SET_VOICE_RATIO_REQUEST, __opus_check_int(x) +/** Gets the encoder's configured voice ratio value, @see OPUS_SET_VOICE_RATIO + * + * @param[out] x int*: Voice percentage in the range 0-100, inclusive. + * @hideinitializer */ +#define OPUS_GET_VOICE_RATIO(x) OPUS_GET_VOICE_RATIO_REQUEST, __opus_check_int_ptr(x) + + +#define OPUS_SET_FORCE_MODE_REQUEST 11002 +#define OPUS_SET_FORCE_MODE(x) OPUS_SET_FORCE_MODE_REQUEST, __opus_check_int(x) + +typedef void (*downmix_func)(const void *, opus_val32 *, int, int, int, int, int); +void downmix_float(const void *_x, opus_val32 *sub, int subframe, int offset, int c1, int c2, int C); +void downmix_int(const void *_x, opus_val32 *sub, int subframe, int offset, int c1, int c2, int C); +int is_digital_silence(const opus_val16* pcm, int frame_size, int channels, int lsb_depth); + +int encode_size(int size, unsigned char *data); + +opus_int32 frame_size_select(opus_int32 frame_size, int variable_duration, opus_int32 Fs); + +opus_int32 opus_encode_native(OpusEncoder *st, const opus_val16 *pcm, int frame_size, + unsigned char *data, opus_int32 out_data_bytes, int lsb_depth, + const void *analysis_pcm, opus_int32 analysis_size, int c1, int c2, + int analysis_channels, downmix_func downmix, int float_api); + +int opus_decode_native(OpusDecoder *st, const unsigned char *data, opus_int32 len, + opus_val16 *pcm, int frame_size, int decode_fec, int self_delimited, + opus_int32 *packet_offset, int soft_clip); + +/* Make sure everything is properly aligned. */ +static OPUS_INLINE int align(int i) +{ + struct foo {char c; union { void* p; opus_int32 i; opus_val32 v; } u;}; + + unsigned int alignment = offsetof(struct foo, u); + + /* Optimizing compilers should optimize div and multiply into and + for all sensible alignment values. */ + return ((i + alignment - 1) / alignment) * alignment; +} + +int opus_packet_parse_impl(const unsigned char *data, opus_int32 len, + int self_delimited, unsigned char *out_toc, + const unsigned char *frames[48], opus_int16 size[48], + int *payload_offset, opus_int32 *packet_offset); + +opus_int32 opus_repacketizer_out_range_impl(OpusRepacketizer *rp, int begin, int end, + unsigned char *data, opus_int32 maxlen, int self_delimited, int pad); + +int pad_frame(unsigned char *data, opus_int32 len, opus_int32 new_len); + +int opus_multistream_encode_native +( + struct OpusMSEncoder *st, + opus_copy_channel_in_func copy_channel_in, + const void *pcm, + int analysis_frame_size, + unsigned char *data, + opus_int32 max_data_bytes, + int lsb_depth, + downmix_func downmix, + int float_api, + void *user_data +); + +int opus_multistream_decode_native( + struct OpusMSDecoder *st, + const unsigned char *data, + opus_int32 len, + void *pcm, + opus_copy_channel_out_func copy_channel_out, + int frame_size, + int decode_fec, + int soft_clip, + void *user_data +); + +#endif /* OPUS_PRIVATE_H */ diff --git a/components/opus/libopus/src/opus_projection_decoder.c b/components/opus/libopus/src/opus_projection_decoder.c new file mode 100644 index 0000000..c2e07d5 --- /dev/null +++ b/components/opus/libopus/src/opus_projection_decoder.c @@ -0,0 +1,258 @@ +/* Copyright (c) 2017 Google Inc. + Written by Andrew Allen */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "mathops.h" +#include "os_support.h" +#include "opus_private.h" +#include "opus_defines.h" +#include "opus_projection.h" +#include "opus_multistream.h" +#include "mapping_matrix.h" +#include "stack_alloc.h" + +struct OpusProjectionDecoder +{ + opus_int32 demixing_matrix_size_in_bytes; + /* Encoder states go here */ +}; + +#if !defined(DISABLE_FLOAT_API) +static void opus_projection_copy_channel_out_float( + void *dst, + int dst_stride, + int dst_channel, + const opus_val16 *src, + int src_stride, + int frame_size, + void *user_data) +{ + float *float_dst; + const MappingMatrix *matrix; + float_dst = (float *)dst; + matrix = (const MappingMatrix *)user_data; + + if (dst_channel == 0) + OPUS_CLEAR(float_dst, frame_size * dst_stride); + + if (src != NULL) + mapping_matrix_multiply_channel_out_float(matrix, src, dst_channel, + src_stride, float_dst, dst_stride, frame_size); +} +#endif + +static void opus_projection_copy_channel_out_short( + void *dst, + int dst_stride, + int dst_channel, + const opus_val16 *src, + int src_stride, + int frame_size, + void *user_data) +{ + opus_int16 *short_dst; + const MappingMatrix *matrix; + short_dst = (opus_int16 *)dst; + matrix = (const MappingMatrix *)user_data; + if (dst_channel == 0) + OPUS_CLEAR(short_dst, frame_size * dst_stride); + + if (src != NULL) + mapping_matrix_multiply_channel_out_short(matrix, src, dst_channel, + src_stride, short_dst, dst_stride, frame_size); +} + +static MappingMatrix *get_dec_demixing_matrix(OpusProjectionDecoder *st) +{ + /* void* cast avoids clang -Wcast-align warning */ + return (MappingMatrix*)(void*)((char*)st + + align(sizeof(OpusProjectionDecoder))); +} + +static OpusMSDecoder *get_multistream_decoder(OpusProjectionDecoder *st) +{ + /* void* cast avoids clang -Wcast-align warning */ + return (OpusMSDecoder*)(void*)((char*)st + + align(sizeof(OpusProjectionDecoder) + + st->demixing_matrix_size_in_bytes)); +} + +opus_int32 opus_projection_decoder_get_size(int channels, int streams, + int coupled_streams) +{ + opus_int32 matrix_size; + opus_int32 decoder_size; + + matrix_size = + mapping_matrix_get_size(streams + coupled_streams, channels); + if (!matrix_size) + return 0; + + decoder_size = opus_multistream_decoder_get_size(streams, coupled_streams); + if (!decoder_size) + return 0; + + return align(sizeof(OpusProjectionDecoder)) + matrix_size + decoder_size; +} + +int opus_projection_decoder_init(OpusProjectionDecoder *st, opus_int32 Fs, + int channels, int streams, int coupled_streams, + unsigned char *demixing_matrix, opus_int32 demixing_matrix_size) +{ + int nb_input_streams; + opus_int32 expected_matrix_size; + int i, ret; + unsigned char mapping[255]; + VARDECL(opus_int16, buf); + ALLOC_STACK; + + /* Verify supplied matrix size. */ + nb_input_streams = streams + coupled_streams; + expected_matrix_size = nb_input_streams * channels * sizeof(opus_int16); + if (expected_matrix_size != demixing_matrix_size) + { + RESTORE_STACK; + return OPUS_BAD_ARG; + } + + /* Convert demixing matrix input into internal format. */ + ALLOC(buf, nb_input_streams * channels, opus_int16); + for (i = 0; i < nb_input_streams * channels; i++) + { + int s = demixing_matrix[2*i + 1] << 8 | demixing_matrix[2*i]; + s = ((s & 0xFFFF) ^ 0x8000) - 0x8000; + buf[i] = (opus_int16)s; + } + + /* Assign demixing matrix. */ + st->demixing_matrix_size_in_bytes = + mapping_matrix_get_size(channels, nb_input_streams); + if (!st->demixing_matrix_size_in_bytes) + { + RESTORE_STACK; + return OPUS_BAD_ARG; + } + + mapping_matrix_init(get_dec_demixing_matrix(st), channels, nb_input_streams, 0, + buf, demixing_matrix_size); + + /* Set trivial mapping so each input channel pairs with a matrix column. */ + for (i = 0; i < channels; i++) + mapping[i] = i; + + ret = opus_multistream_decoder_init( + get_multistream_decoder(st), Fs, channels, streams, coupled_streams, mapping); + RESTORE_STACK; + return ret; +} + +OpusProjectionDecoder *opus_projection_decoder_create( + opus_int32 Fs, int channels, int streams, int coupled_streams, + unsigned char *demixing_matrix, opus_int32 demixing_matrix_size, int *error) +{ + int size; + int ret; + OpusProjectionDecoder *st; + + /* Allocate space for the projection decoder. */ + size = opus_projection_decoder_get_size(channels, streams, coupled_streams); + if (!size) { + if (error) + *error = OPUS_ALLOC_FAIL; + return NULL; + } + st = (OpusProjectionDecoder *)opus_alloc(size); + if (!st) + { + if (error) + *error = OPUS_ALLOC_FAIL; + return NULL; + } + + /* Initialize projection decoder with provided settings. */ + ret = opus_projection_decoder_init(st, Fs, channels, streams, coupled_streams, + demixing_matrix, demixing_matrix_size); + if (ret != OPUS_OK) + { + opus_free(st); + st = NULL; + } + if (error) + *error = ret; + return st; +} + +#ifdef FIXED_POINT +int opus_projection_decode(OpusProjectionDecoder *st, const unsigned char *data, + opus_int32 len, opus_int16 *pcm, int frame_size, + int decode_fec) +{ + return opus_multistream_decode_native(get_multistream_decoder(st), data, len, + pcm, opus_projection_copy_channel_out_short, frame_size, decode_fec, 0, + get_dec_demixing_matrix(st)); +} +#else +int opus_projection_decode(OpusProjectionDecoder *st, const unsigned char *data, + opus_int32 len, opus_int16 *pcm, int frame_size, + int decode_fec) +{ + return opus_multistream_decode_native(get_multistream_decoder(st), data, len, + pcm, opus_projection_copy_channel_out_short, frame_size, decode_fec, 1, + get_dec_demixing_matrix(st)); +} +#endif + +#ifndef DISABLE_FLOAT_API +int opus_projection_decode_float(OpusProjectionDecoder *st, const unsigned char *data, + opus_int32 len, float *pcm, int frame_size, int decode_fec) +{ + return opus_multistream_decode_native(get_multistream_decoder(st), data, len, + pcm, opus_projection_copy_channel_out_float, frame_size, decode_fec, 0, + get_dec_demixing_matrix(st)); +} +#endif + +int opus_projection_decoder_ctl(OpusProjectionDecoder *st, int request, ...) +{ + va_list ap; + int ret = OPUS_OK; + + va_start(ap, request); + ret = opus_multistream_decoder_ctl_va_list(get_multistream_decoder(st), + request, ap); + va_end(ap); + return ret; +} + +void opus_projection_decoder_destroy(OpusProjectionDecoder *st) +{ + opus_free(st); +} + diff --git a/components/opus/libopus/src/opus_projection_encoder.c b/components/opus/libopus/src/opus_projection_encoder.c new file mode 100644 index 0000000..06fb2d2 --- /dev/null +++ b/components/opus/libopus/src/opus_projection_encoder.c @@ -0,0 +1,468 @@ +/* Copyright (c) 2017 Google Inc. + Written by Andrew Allen */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "mathops.h" +#include "os_support.h" +#include "opus_private.h" +#include "opus_defines.h" +#include "opus_projection.h" +#include "opus_multistream.h" +#include "stack_alloc.h" +#include "mapping_matrix.h" + +struct OpusProjectionEncoder +{ + opus_int32 mixing_matrix_size_in_bytes; + opus_int32 demixing_matrix_size_in_bytes; + /* Encoder states go here */ +}; + +#if !defined(DISABLE_FLOAT_API) +static void opus_projection_copy_channel_in_float( + opus_val16 *dst, + int dst_stride, + const void *src, + int src_stride, + int src_channel, + int frame_size, + void *user_data +) +{ + mapping_matrix_multiply_channel_in_float((const MappingMatrix*)user_data, + (const float*)src, src_stride, dst, src_channel, dst_stride, frame_size); +} +#endif + +static void opus_projection_copy_channel_in_short( + opus_val16 *dst, + int dst_stride, + const void *src, + int src_stride, + int src_channel, + int frame_size, + void *user_data +) +{ + mapping_matrix_multiply_channel_in_short((const MappingMatrix*)user_data, + (const opus_int16*)src, src_stride, dst, src_channel, dst_stride, frame_size); +} + +static int get_order_plus_one_from_channels(int channels, int *order_plus_one) +{ + int order_plus_one_; + int acn_channels; + int nondiegetic_channels; + + /* Allowed numbers of channels: + * (1 + n)^2 + 2j, for n = 0...14 and j = 0 or 1. + */ + if (channels < 1 || channels > 227) + return OPUS_BAD_ARG; + + order_plus_one_ = isqrt32(channels); + acn_channels = order_plus_one_ * order_plus_one_; + nondiegetic_channels = channels - acn_channels; + if (nondiegetic_channels != 0 && nondiegetic_channels != 2) + return OPUS_BAD_ARG; + + if (order_plus_one) + *order_plus_one = order_plus_one_; + return OPUS_OK; +} + +static int get_streams_from_channels(int channels, int mapping_family, + int *streams, int *coupled_streams, + int *order_plus_one) +{ + if (mapping_family == 3) + { + if (get_order_plus_one_from_channels(channels, order_plus_one) != OPUS_OK) + return OPUS_BAD_ARG; + if (streams) + *streams = (channels + 1) / 2; + if (coupled_streams) + *coupled_streams = channels / 2; + return OPUS_OK; + } + return OPUS_BAD_ARG; +} + +static MappingMatrix *get_mixing_matrix(OpusProjectionEncoder *st) +{ + /* void* cast avoids clang -Wcast-align warning */ + return (MappingMatrix *)(void*)((char*)st + + align(sizeof(OpusProjectionEncoder))); +} + +static MappingMatrix *get_enc_demixing_matrix(OpusProjectionEncoder *st) +{ + /* void* cast avoids clang -Wcast-align warning */ + return (MappingMatrix *)(void*)((char*)st + + align(sizeof(OpusProjectionEncoder) + + st->mixing_matrix_size_in_bytes)); +} + +static OpusMSEncoder *get_multistream_encoder(OpusProjectionEncoder *st) +{ + /* void* cast avoids clang -Wcast-align warning */ + return (OpusMSEncoder *)(void*)((char*)st + + align(sizeof(OpusProjectionEncoder) + + st->mixing_matrix_size_in_bytes + + st->demixing_matrix_size_in_bytes)); +} + +opus_int32 opus_projection_ambisonics_encoder_get_size(int channels, + int mapping_family) +{ + int nb_streams; + int nb_coupled_streams; + int order_plus_one; + int mixing_matrix_rows, mixing_matrix_cols; + int demixing_matrix_rows, demixing_matrix_cols; + opus_int32 mixing_matrix_size, demixing_matrix_size; + opus_int32 encoder_size; + int ret; + + ret = get_streams_from_channels(channels, mapping_family, &nb_streams, + &nb_coupled_streams, &order_plus_one); + if (ret != OPUS_OK) + return 0; + + if (order_plus_one == 2) + { + mixing_matrix_rows = mapping_matrix_foa_mixing.rows; + mixing_matrix_cols = mapping_matrix_foa_mixing.cols; + demixing_matrix_rows = mapping_matrix_foa_demixing.rows; + demixing_matrix_cols = mapping_matrix_foa_demixing.cols; + } + else if (order_plus_one == 3) + { + mixing_matrix_rows = mapping_matrix_soa_mixing.rows; + mixing_matrix_cols = mapping_matrix_soa_mixing.cols; + demixing_matrix_rows = mapping_matrix_soa_demixing.rows; + demixing_matrix_cols = mapping_matrix_soa_demixing.cols; + } + else if (order_plus_one == 4) + { + mixing_matrix_rows = mapping_matrix_toa_mixing.rows; + mixing_matrix_cols = mapping_matrix_toa_mixing.cols; + demixing_matrix_rows = mapping_matrix_toa_demixing.rows; + demixing_matrix_cols = mapping_matrix_toa_demixing.cols; + } + else + return 0; + + mixing_matrix_size = + mapping_matrix_get_size(mixing_matrix_rows, mixing_matrix_cols); + if (!mixing_matrix_size) + return 0; + + demixing_matrix_size = + mapping_matrix_get_size(demixing_matrix_rows, demixing_matrix_cols); + if (!demixing_matrix_size) + return 0; + + encoder_size = + opus_multistream_encoder_get_size(nb_streams, nb_coupled_streams); + if (!encoder_size) + return 0; + + return align(sizeof(OpusProjectionEncoder)) + + mixing_matrix_size + demixing_matrix_size + encoder_size; +} + +int opus_projection_ambisonics_encoder_init(OpusProjectionEncoder *st, opus_int32 Fs, + int channels, int mapping_family, + int *streams, int *coupled_streams, + int application) +{ + MappingMatrix *mixing_matrix; + MappingMatrix *demixing_matrix; + OpusMSEncoder *ms_encoder; + int i; + int ret; + int order_plus_one; + unsigned char mapping[255]; + + if (streams == NULL || coupled_streams == NULL) { + return OPUS_BAD_ARG; + } + + if (get_streams_from_channels(channels, mapping_family, streams, + coupled_streams, &order_plus_one) != OPUS_OK) + return OPUS_BAD_ARG; + + if (mapping_family == 3) + { + /* Assign mixing matrix based on available pre-computed matrices. */ + mixing_matrix = get_mixing_matrix(st); + if (order_plus_one == 2) + { + mapping_matrix_init(mixing_matrix, mapping_matrix_foa_mixing.rows, + mapping_matrix_foa_mixing.cols, mapping_matrix_foa_mixing.gain, + mapping_matrix_foa_mixing_data, + sizeof(mapping_matrix_foa_mixing_data)); + } + else if (order_plus_one == 3) + { + mapping_matrix_init(mixing_matrix, mapping_matrix_soa_mixing.rows, + mapping_matrix_soa_mixing.cols, mapping_matrix_soa_mixing.gain, + mapping_matrix_soa_mixing_data, + sizeof(mapping_matrix_soa_mixing_data)); + } + else if (order_plus_one == 4) + { + mapping_matrix_init(mixing_matrix, mapping_matrix_toa_mixing.rows, + mapping_matrix_toa_mixing.cols, mapping_matrix_toa_mixing.gain, + mapping_matrix_toa_mixing_data, + sizeof(mapping_matrix_toa_mixing_data)); + } + else + return OPUS_BAD_ARG; + + st->mixing_matrix_size_in_bytes = mapping_matrix_get_size( + mixing_matrix->rows, mixing_matrix->cols); + if (!st->mixing_matrix_size_in_bytes) + return OPUS_BAD_ARG; + + /* Assign demixing matrix based on available pre-computed matrices. */ + demixing_matrix = get_enc_demixing_matrix(st); + if (order_plus_one == 2) + { + mapping_matrix_init(demixing_matrix, mapping_matrix_foa_demixing.rows, + mapping_matrix_foa_demixing.cols, mapping_matrix_foa_demixing.gain, + mapping_matrix_foa_demixing_data, + sizeof(mapping_matrix_foa_demixing_data)); + } + else if (order_plus_one == 3) + { + mapping_matrix_init(demixing_matrix, mapping_matrix_soa_demixing.rows, + mapping_matrix_soa_demixing.cols, mapping_matrix_soa_demixing.gain, + mapping_matrix_soa_demixing_data, + sizeof(mapping_matrix_soa_demixing_data)); + } + else if (order_plus_one == 4) + { + mapping_matrix_init(demixing_matrix, mapping_matrix_toa_demixing.rows, + mapping_matrix_toa_demixing.cols, mapping_matrix_toa_demixing.gain, + mapping_matrix_toa_demixing_data, + sizeof(mapping_matrix_toa_demixing_data)); + } + else + return OPUS_BAD_ARG; + + st->demixing_matrix_size_in_bytes = mapping_matrix_get_size( + demixing_matrix->rows, demixing_matrix->cols); + if (!st->demixing_matrix_size_in_bytes) + return OPUS_BAD_ARG; + } + else + return OPUS_UNIMPLEMENTED; + + /* Ensure matrices are large enough for desired coding scheme. */ + if (*streams + *coupled_streams > mixing_matrix->rows || + channels > mixing_matrix->cols || + channels > demixing_matrix->rows || + *streams + *coupled_streams > demixing_matrix->cols) + return OPUS_BAD_ARG; + + /* Set trivial mapping so each input channel pairs with a matrix column. */ + for (i = 0; i < channels; i++) + mapping[i] = i; + + /* Initialize multistream encoder with provided settings. */ + ms_encoder = get_multistream_encoder(st); + ret = opus_multistream_encoder_init(ms_encoder, Fs, channels, *streams, + *coupled_streams, mapping, application); + return ret; +} + +OpusProjectionEncoder *opus_projection_ambisonics_encoder_create( + opus_int32 Fs, int channels, int mapping_family, int *streams, + int *coupled_streams, int application, int *error) +{ + int size; + int ret; + OpusProjectionEncoder *st; + + /* Allocate space for the projection encoder. */ + size = opus_projection_ambisonics_encoder_get_size(channels, mapping_family); + if (!size) { + if (error) + *error = OPUS_ALLOC_FAIL; + return NULL; + } + st = (OpusProjectionEncoder *)opus_alloc(size); + if (!st) + { + if (error) + *error = OPUS_ALLOC_FAIL; + return NULL; + } + + /* Initialize projection encoder with provided settings. */ + ret = opus_projection_ambisonics_encoder_init(st, Fs, channels, + mapping_family, streams, coupled_streams, application); + if (ret != OPUS_OK) + { + opus_free(st); + st = NULL; + } + if (error) + *error = ret; + return st; +} + +int opus_projection_encode(OpusProjectionEncoder *st, const opus_int16 *pcm, + int frame_size, unsigned char *data, + opus_int32 max_data_bytes) +{ + return opus_multistream_encode_native(get_multistream_encoder(st), + opus_projection_copy_channel_in_short, pcm, frame_size, data, + max_data_bytes, 16, downmix_int, 0, get_mixing_matrix(st)); +} + +#ifndef DISABLE_FLOAT_API +#ifdef FIXED_POINT +int opus_projection_encode_float(OpusProjectionEncoder *st, const float *pcm, + int frame_size, unsigned char *data, + opus_int32 max_data_bytes) +{ + return opus_multistream_encode_native(get_multistream_encoder(st), + opus_projection_copy_channel_in_float, pcm, frame_size, data, + max_data_bytes, 16, downmix_float, 1, get_mixing_matrix(st)); +} +#else +int opus_projection_encode_float(OpusProjectionEncoder *st, const float *pcm, + int frame_size, unsigned char *data, + opus_int32 max_data_bytes) +{ + return opus_multistream_encode_native(get_multistream_encoder(st), + opus_projection_copy_channel_in_float, pcm, frame_size, data, + max_data_bytes, 24, downmix_float, 1, get_mixing_matrix(st)); +} +#endif +#endif + +void opus_projection_encoder_destroy(OpusProjectionEncoder *st) +{ + opus_free(st); +} + +int opus_projection_encoder_ctl(OpusProjectionEncoder *st, int request, ...) +{ + va_list ap; + MappingMatrix *demixing_matrix; + OpusMSEncoder *ms_encoder; + int ret = OPUS_OK; + + ms_encoder = get_multistream_encoder(st); + demixing_matrix = get_enc_demixing_matrix(st); + + va_start(ap, request); + switch(request) + { + case OPUS_PROJECTION_GET_DEMIXING_MATRIX_SIZE_REQUEST: + { + opus_int32 *value = va_arg(ap, opus_int32*); + if (!value) + { + goto bad_arg; + } + *value = + ms_encoder->layout.nb_channels * (ms_encoder->layout.nb_streams + + ms_encoder->layout.nb_coupled_streams) * sizeof(opus_int16); + } + break; + case OPUS_PROJECTION_GET_DEMIXING_MATRIX_GAIN_REQUEST: + { + opus_int32 *value = va_arg(ap, opus_int32*); + if (!value) + { + goto bad_arg; + } + *value = demixing_matrix->gain; + } + break; + case OPUS_PROJECTION_GET_DEMIXING_MATRIX_REQUEST: + { + int i, j, k, l; + int nb_input_streams; + int nb_output_streams; + unsigned char *external_char; + opus_int16 *internal_short; + opus_int32 external_size; + opus_int32 internal_size; + + /* (I/O is in relation to the decoder's perspective). */ + nb_input_streams = ms_encoder->layout.nb_streams + + ms_encoder->layout.nb_coupled_streams; + nb_output_streams = ms_encoder->layout.nb_channels; + + external_char = va_arg(ap, unsigned char *); + external_size = va_arg(ap, opus_int32); + if (!external_char) + { + goto bad_arg; + } + internal_short = mapping_matrix_get_data(demixing_matrix); + internal_size = nb_input_streams * nb_output_streams * sizeof(opus_int16); + if (external_size != internal_size) + { + goto bad_arg; + } + + /* Copy demixing matrix subset to output destination. */ + l = 0; + for (i = 0; i < nb_input_streams; i++) { + for (j = 0; j < nb_output_streams; j++) { + k = demixing_matrix->rows * i + j; + external_char[2*l] = (unsigned char)internal_short[k]; + external_char[2*l+1] = (unsigned char)(internal_short[k] >> 8); + l++; + } + } + } + break; + default: + { + ret = opus_multistream_encoder_ctl_va_list(ms_encoder, request, ap); + } + break; + } + va_end(ap); + return ret; + +bad_arg: + va_end(ap); + return OPUS_BAD_ARG; +} + diff --git a/components/opus/libopus/src/repacketizer.c b/components/opus/libopus/src/repacketizer.c new file mode 100644 index 0000000..bda44a1 --- /dev/null +++ b/components/opus/libopus/src/repacketizer.c @@ -0,0 +1,349 @@ +/* Copyright (c) 2011 Xiph.Org Foundation + Written by Jean-Marc Valin */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "opus.h" +#include "opus_private.h" +#include "os_support.h" + + +int opus_repacketizer_get_size(void) +{ + return sizeof(OpusRepacketizer); +} + +OpusRepacketizer *opus_repacketizer_init(OpusRepacketizer *rp) +{ + rp->nb_frames = 0; + return rp; +} + +OpusRepacketizer *opus_repacketizer_create(void) +{ + OpusRepacketizer *rp; + rp=(OpusRepacketizer *)opus_alloc(opus_repacketizer_get_size()); + if(rp==NULL)return NULL; + return opus_repacketizer_init(rp); +} + +void opus_repacketizer_destroy(OpusRepacketizer *rp) +{ + opus_free(rp); +} + +static int opus_repacketizer_cat_impl(OpusRepacketizer *rp, const unsigned char *data, opus_int32 len, int self_delimited) +{ + unsigned char tmp_toc; + int curr_nb_frames,ret; + /* Set of check ToC */ + if (len<1) return OPUS_INVALID_PACKET; + if (rp->nb_frames == 0) + { + rp->toc = data[0]; + rp->framesize = opus_packet_get_samples_per_frame(data, 8000); + } else if ((rp->toc&0xFC) != (data[0]&0xFC)) + { + /*fprintf(stderr, "toc mismatch: 0x%x vs 0x%x\n", rp->toc, data[0]);*/ + return OPUS_INVALID_PACKET; + } + curr_nb_frames = opus_packet_get_nb_frames(data, len); + if(curr_nb_frames<1) return OPUS_INVALID_PACKET; + + /* Check the 120 ms maximum packet size */ + if ((curr_nb_frames+rp->nb_frames)*rp->framesize > 960) + { + return OPUS_INVALID_PACKET; + } + + ret=opus_packet_parse_impl(data, len, self_delimited, &tmp_toc, &rp->frames[rp->nb_frames], &rp->len[rp->nb_frames], NULL, NULL); + if(ret<1)return ret; + + rp->nb_frames += curr_nb_frames; + return OPUS_OK; +} + +int opus_repacketizer_cat(OpusRepacketizer *rp, const unsigned char *data, opus_int32 len) +{ + return opus_repacketizer_cat_impl(rp, data, len, 0); +} + +int opus_repacketizer_get_nb_frames(OpusRepacketizer *rp) +{ + return rp->nb_frames; +} + +opus_int32 opus_repacketizer_out_range_impl(OpusRepacketizer *rp, int begin, int end, + unsigned char *data, opus_int32 maxlen, int self_delimited, int pad) +{ + int i, count; + opus_int32 tot_size; + opus_int16 *len; + const unsigned char **frames; + unsigned char * ptr; + + if (begin<0 || begin>=end || end>rp->nb_frames) + { + /*fprintf(stderr, "%d %d %d\n", begin, end, rp->nb_frames);*/ + return OPUS_BAD_ARG; + } + count = end-begin; + + len = rp->len+begin; + frames = rp->frames+begin; + if (self_delimited) + tot_size = 1 + (len[count-1]>=252); + else + tot_size = 0; + + ptr = data; + if (count==1) + { + /* Code 0 */ + tot_size += len[0]+1; + if (tot_size > maxlen) + return OPUS_BUFFER_TOO_SMALL; + *ptr++ = rp->toc&0xFC; + } else if (count==2) + { + if (len[1] == len[0]) + { + /* Code 1 */ + tot_size += 2*len[0]+1; + if (tot_size > maxlen) + return OPUS_BUFFER_TOO_SMALL; + *ptr++ = (rp->toc&0xFC) | 0x1; + } else { + /* Code 2 */ + tot_size += len[0]+len[1]+2+(len[0]>=252); + if (tot_size > maxlen) + return OPUS_BUFFER_TOO_SMALL; + *ptr++ = (rp->toc&0xFC) | 0x2; + ptr += encode_size(len[0], ptr); + } + } + if (count > 2 || (pad && tot_size < maxlen)) + { + /* Code 3 */ + int vbr; + int pad_amount=0; + + /* Restart the process for the padding case */ + ptr = data; + if (self_delimited) + tot_size = 1 + (len[count-1]>=252); + else + tot_size = 0; + vbr = 0; + for (i=1;i=252) + len[i]; + tot_size += len[count-1]; + + if (tot_size > maxlen) + return OPUS_BUFFER_TOO_SMALL; + *ptr++ = (rp->toc&0xFC) | 0x3; + *ptr++ = count | 0x80; + } else { + tot_size += count*len[0]+2; + if (tot_size > maxlen) + return OPUS_BUFFER_TOO_SMALL; + *ptr++ = (rp->toc&0xFC) | 0x3; + *ptr++ = count; + } + pad_amount = pad ? (maxlen-tot_size) : 0; + if (pad_amount != 0) + { + int nb_255s; + data[1] |= 0x40; + nb_255s = (pad_amount-1)/255; + for (i=0;inb_frames, data, maxlen, 0, 0); +} + +int opus_packet_pad(unsigned char *data, opus_int32 len, opus_int32 new_len) +{ + OpusRepacketizer rp; + opus_int32 ret; + if (len < 1) + return OPUS_BAD_ARG; + if (len==new_len) + return OPUS_OK; + else if (len > new_len) + return OPUS_BAD_ARG; + opus_repacketizer_init(&rp); + /* Moving payload to the end of the packet so we can do in-place padding */ + OPUS_MOVE(data+new_len-len, data, len); + ret = opus_repacketizer_cat(&rp, data+new_len-len, len); + if (ret != OPUS_OK) + return ret; + ret = opus_repacketizer_out_range_impl(&rp, 0, rp.nb_frames, data, new_len, 0, 1); + if (ret > 0) + return OPUS_OK; + else + return ret; +} + +opus_int32 opus_packet_unpad(unsigned char *data, opus_int32 len) +{ + OpusRepacketizer rp; + opus_int32 ret; + if (len < 1) + return OPUS_BAD_ARG; + opus_repacketizer_init(&rp); + ret = opus_repacketizer_cat(&rp, data, len); + if (ret < 0) + return ret; + ret = opus_repacketizer_out_range_impl(&rp, 0, rp.nb_frames, data, len, 0, 0); + celt_assert(ret > 0 && ret <= len); + return ret; +} + +int opus_multistream_packet_pad(unsigned char *data, opus_int32 len, opus_int32 new_len, int nb_streams) +{ + int s; + int count; + unsigned char toc; + opus_int16 size[48]; + opus_int32 packet_offset; + opus_int32 amount; + + if (len < 1) + return OPUS_BAD_ARG; + if (len==new_len) + return OPUS_OK; + else if (len > new_len) + return OPUS_BAD_ARG; + amount = new_len - len; + /* Seek to last stream */ + for (s=0;s +#include +#include + +#define MAX_PACKETOUT 32000 + +void usage(char *argv0) +{ + fprintf(stderr, "usage: %s [options] input_file output_file\n", argv0); +} + +static void int_to_char(opus_uint32 i, unsigned char ch[4]) +{ + ch[0] = i>>24; + ch[1] = (i>>16)&0xFF; + ch[2] = (i>>8)&0xFF; + ch[3] = i&0xFF; +} + +static opus_uint32 char_to_int(unsigned char ch[4]) +{ + return ((opus_uint32)ch[0]<<24) | ((opus_uint32)ch[1]<<16) + | ((opus_uint32)ch[2]<< 8) | (opus_uint32)ch[3]; +} + +int main(int argc, char *argv[]) +{ + int i, eof=0; + FILE *fin, *fout; + unsigned char packets[48][1500]; + int len[48]; + int rng[48]; + OpusRepacketizer *rp; + unsigned char output_packet[MAX_PACKETOUT]; + int merge = 1, split=0; + + if (argc < 3) + { + usage(argv[0]); + return EXIT_FAILURE; + } + for (i=1;i48) + { + fprintf(stderr, "-merge parameter must be less than 48.\n"); + return EXIT_FAILURE; + } + i++; + } else if (strcmp(argv[i], "-split")==0) + split = 1; + else + { + fprintf(stderr, "Unknown option: %s\n", argv[i]); + usage(argv[0]); + return EXIT_FAILURE; + } + } + fin = fopen(argv[argc-2], "r"); + if(fin==NULL) + { + fprintf(stderr, "Error opening input file: %s\n", argv[argc-2]); + return EXIT_FAILURE; + } + fout = fopen(argv[argc-1], "w"); + if(fout==NULL) + { + fprintf(stderr, "Error opening output file: %s\n", argv[argc-1]); + fclose(fin); + return EXIT_FAILURE; + } + + rp = opus_repacketizer_create(); + while (!eof) + { + int err; + int nb_packets=merge; + opus_repacketizer_init(rp); + for (i=0;i1500 || len[i]<0) + { + if (feof(fin)) + { + eof = 1; + } else { + fprintf(stderr, "Invalid payload length\n"); + fclose(fin); + fclose(fout); + return EXIT_FAILURE; + } + break; + } + err = fread(ch, 1, 4, fin); + rng[i] = char_to_int(ch); + err = fread(packets[i], 1, len[i], fin); + if (feof(fin)) + { + eof = 1; + break; + } + err = opus_repacketizer_cat(rp, packets[i], len[i]); + if (err!=OPUS_OK) + { + fprintf(stderr, "opus_repacketizer_cat() failed: %s\n", opus_strerror(err)); + break; + } + } + nb_packets = i; + + if (eof) + break; + + if (!split) + { + err = opus_repacketizer_out(rp, output_packet, MAX_PACKETOUT); + if (err>0) { + unsigned char int_field[4]; + int_to_char(err, int_field); + if(fwrite(int_field, 1, 4, fout)!=4){ + fprintf(stderr, "Error writing.\n"); + return EXIT_FAILURE; + } + int_to_char(rng[nb_packets-1], int_field); + if (fwrite(int_field, 1, 4, fout)!=4) { + fprintf(stderr, "Error writing.\n"); + return EXIT_FAILURE; + } + if (fwrite(output_packet, 1, err, fout)!=(unsigned)err) { + fprintf(stderr, "Error writing.\n"); + return EXIT_FAILURE; + } + /*fprintf(stderr, "out len = %d\n", err);*/ + } else { + fprintf(stderr, "opus_repacketizer_out() failed: %s\n", opus_strerror(err)); + } + } else { + int nb_frames = opus_repacketizer_get_nb_frames(rp); + for (i=0;i0) { + unsigned char int_field[4]; + int_to_char(err, int_field); + if (fwrite(int_field, 1, 4, fout)!=4) { + fprintf(stderr, "Error writing.\n"); + return EXIT_FAILURE; + } + if (i==nb_frames-1) + int_to_char(rng[nb_packets-1], int_field); + else + int_to_char(0, int_field); + if (fwrite(int_field, 1, 4, fout)!=4) { + fprintf(stderr, "Error writing.\n"); + return EXIT_FAILURE; + } + if (fwrite(output_packet, 1, err, fout)!=(unsigned)err) { + fprintf(stderr, "Error writing.\n"); + return EXIT_FAILURE; + } + /*fprintf(stderr, "out len = %d\n", err);*/ + } else { + fprintf(stderr, "opus_repacketizer_out() failed: %s\n", opus_strerror(err)); + } + + } + } + } + + fclose(fin); + fclose(fout); + return EXIT_SUCCESS; +} diff --git a/components/opus/libopus/src/tansig_table.h b/components/opus/libopus/src/tansig_table.h new file mode 100644 index 0000000..c76f844 --- /dev/null +++ b/components/opus/libopus/src/tansig_table.h @@ -0,0 +1,45 @@ +/* This file is auto-generated by gen_tables */ + +static const float tansig_table[201] = { +0.000000f, 0.039979f, 0.079830f, 0.119427f, 0.158649f, +0.197375f, 0.235496f, 0.272905f, 0.309507f, 0.345214f, +0.379949f, 0.413644f, 0.446244f, 0.477700f, 0.507977f, +0.537050f, 0.564900f, 0.591519f, 0.616909f, 0.641077f, +0.664037f, 0.685809f, 0.706419f, 0.725897f, 0.744277f, +0.761594f, 0.777888f, 0.793199f, 0.807569f, 0.821040f, +0.833655f, 0.845456f, 0.856485f, 0.866784f, 0.876393f, +0.885352f, 0.893698f, 0.901468f, 0.908698f, 0.915420f, +0.921669f, 0.927473f, 0.932862f, 0.937863f, 0.942503f, +0.946806f, 0.950795f, 0.954492f, 0.957917f, 0.961090f, +0.964028f, 0.966747f, 0.969265f, 0.971594f, 0.973749f, +0.975743f, 0.977587f, 0.979293f, 0.980869f, 0.982327f, +0.983675f, 0.984921f, 0.986072f, 0.987136f, 0.988119f, +0.989027f, 0.989867f, 0.990642f, 0.991359f, 0.992020f, +0.992631f, 0.993196f, 0.993718f, 0.994199f, 0.994644f, +0.995055f, 0.995434f, 0.995784f, 0.996108f, 0.996407f, +0.996682f, 0.996937f, 0.997172f, 0.997389f, 0.997590f, +0.997775f, 0.997946f, 0.998104f, 0.998249f, 0.998384f, +0.998508f, 0.998623f, 0.998728f, 0.998826f, 0.998916f, +0.999000f, 0.999076f, 0.999147f, 0.999213f, 0.999273f, +0.999329f, 0.999381f, 0.999428f, 0.999472f, 0.999513f, +0.999550f, 0.999585f, 0.999617f, 0.999646f, 0.999673f, +0.999699f, 0.999722f, 0.999743f, 0.999763f, 0.999781f, +0.999798f, 0.999813f, 0.999828f, 0.999841f, 0.999853f, +0.999865f, 0.999875f, 0.999885f, 0.999893f, 0.999902f, +0.999909f, 0.999916f, 0.999923f, 0.999929f, 0.999934f, +0.999939f, 0.999944f, 0.999948f, 0.999952f, 0.999956f, +0.999959f, 0.999962f, 0.999965f, 0.999968f, 0.999970f, +0.999973f, 0.999975f, 0.999977f, 0.999978f, 0.999980f, +0.999982f, 0.999983f, 0.999984f, 0.999986f, 0.999987f, +0.999988f, 0.999989f, 0.999990f, 0.999990f, 0.999991f, +0.999992f, 0.999992f, 0.999993f, 0.999994f, 0.999994f, +0.999994f, 0.999995f, 0.999995f, 0.999996f, 0.999996f, +0.999996f, 0.999997f, 0.999997f, 0.999997f, 0.999997f, +0.999997f, 0.999998f, 0.999998f, 0.999998f, 0.999998f, +0.999998f, 0.999998f, 0.999999f, 0.999999f, 0.999999f, +0.999999f, 0.999999f, 0.999999f, 0.999999f, 0.999999f, +0.999999f, 0.999999f, 0.999999f, 0.999999f, 0.999999f, +1.000000f, 1.000000f, 1.000000f, 1.000000f, 1.000000f, +1.000000f, 1.000000f, 1.000000f, 1.000000f, 1.000000f, +1.000000f, +}; diff --git a/components/opus/libopus/test-driver b/components/opus/libopus/test-driver new file mode 100644 index 0000000..0218a01 --- /dev/null +++ b/components/opus/libopus/test-driver @@ -0,0 +1,148 @@ +#! /bin/sh +# test-driver - basic testsuite driver script. + +scriptversion=2016-01-11.22; # UTC + +# Copyright (C) 2011-2017 Free Software Foundation, Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# This file is maintained in Automake, please report +# bugs to or send patches to +# . + +# Make unconditional expansion of undefined variables an error. This +# helps a lot in preventing typo-related bugs. +set -u + +usage_error () +{ + echo "$0: $*" >&2 + print_usage >&2 + exit 2 +} + +print_usage () +{ + cat <$log_file 2>&1 +estatus=$? + +if test $enable_hard_errors = no && test $estatus -eq 99; then + tweaked_estatus=1 +else + tweaked_estatus=$estatus +fi + +case $tweaked_estatus:$expect_failure in + 0:yes) col=$red res=XPASS recheck=yes gcopy=yes;; + 0:*) col=$grn res=PASS recheck=no gcopy=no;; + 77:*) col=$blu res=SKIP recheck=no gcopy=yes;; + 99:*) col=$mgn res=ERROR recheck=yes gcopy=yes;; + *:yes) col=$lgn res=XFAIL recheck=no gcopy=yes;; + *:*) col=$red res=FAIL recheck=yes gcopy=yes;; +esac + +# Report the test outcome and exit status in the logs, so that one can +# know whether the test passed or failed simply by looking at the '.log' +# file, without the need of also peaking into the corresponding '.trs' +# file (automake bug#11814). +echo "$res $test_name (exit status: $estatus)" >>$log_file + +# Report outcome to console. +echo "${col}${res}${std}: $test_name" + +# Register the test result, and other relevant metadata. +echo ":test-result: $res" > $trs_file +echo ":global-test-result: $res" >> $trs_file +echo ":recheck: $recheck" >> $trs_file +echo ":copy-in-global-log: $gcopy" >> $trs_file + +# Local Variables: +# mode: shell-script +# sh-indentation: 2 +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-time-zone: "UTC0" +# time-stamp-end: "; # UTC" +# End: diff --git a/components/opus/libopus/tests/opus_encode_regressions.c b/components/opus/libopus/tests/opus_encode_regressions.c new file mode 100644 index 0000000..2923473 --- /dev/null +++ b/components/opus/libopus/tests/opus_encode_regressions.c @@ -0,0 +1,1035 @@ +/* Copyright (c) 2016 Mark Harris, Jean-Marc Valin */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include +#include +#include +#include +#include +#include +#include "opus_multistream.h" +#include "opus.h" +#include "test_opus_common.h" + + +static int celt_ec_internal_error(void) +{ + OpusMSEncoder *enc; + int err; + unsigned char data[2460]; + int streams; + int coupled_streams; + unsigned char mapping[1]; + + enc = opus_multistream_surround_encoder_create(16000, 1, 1, &streams, + &coupled_streams, mapping, OPUS_APPLICATION_VOIP, &err); + opus_multistream_encoder_ctl(enc, OPUS_SET_SIGNAL(OPUS_SIGNAL_MUSIC)); + opus_multistream_encoder_ctl(enc, OPUS_SET_VBR(0)); + opus_multistream_encoder_ctl(enc, OPUS_SET_VBR_CONSTRAINT(0)); + opus_multistream_encoder_ctl(enc, OPUS_SET_PREDICTION_DISABLED(1)); + opus_multistream_encoder_ctl(enc, OPUS_SET_PHASE_INVERSION_DISABLED(0)); + opus_multistream_encoder_ctl(enc, OPUS_SET_DTX(0)); + opus_multistream_encoder_ctl(enc, OPUS_SET_COMPLEXITY(0)); + opus_multistream_encoder_ctl(enc, OPUS_SET_MAX_BANDWIDTH(OPUS_BANDWIDTH_NARROWBAND)); + opus_multistream_encoder_ctl(enc, OPUS_SET_BANDWIDTH(OPUS_AUTO)); + opus_multistream_encoder_ctl(enc, OPUS_SET_LSB_DEPTH(8)); + opus_multistream_encoder_ctl(enc, OPUS_SET_INBAND_FEC(0)); + opus_multistream_encoder_ctl(enc, OPUS_SET_PACKET_LOSS_PERC(0)); + opus_multistream_encoder_ctl(enc, OPUS_SET_BITRATE(OPUS_AUTO)); + { + static const short pcm[320] = + { + 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 1792, 1799, 1799, + 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, + 1799, 1799, 1799, 1799, 1799, 0, 25600, 1799, 1799, + 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, + 1799, 1799, 1799, 1799, 7, 0, 255, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 32767, -1, + 0, 0, 0, 100, 0, 16384, 0, 0, 0, + 0, 0, 0, 4, 0, 0, -256, 255, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0,-32768, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 128, 0, 0, 0, 0, + 0, 0, 0, 0, -256, 0, 0, 32, 0, + 0, 0, 0, 0, 0, 0, 4352, 4, 228, + 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 5632, 0, 0, + 0, 0,-32768, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 256, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, + -3944, 10500, 4285, 10459, -6474, 10204, -6539, 11601, -6824, + 13385, -7142, 13872,-11553, 13670, -7725, 13463, -6887, 7874, + -5580, 12600, -4964, 12480, 3254, 11741, -4210, 9741, -3155, + 7558, -5468, 5431, -1073, 3641, -1304, 0, -1, 343, + 26, 0, 0, 150, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 1799, 1799, 1799, 1799, 1799, -2553, + 7, 1792, 1799, 1799, 1799, 1799, 1799, 1799, 1799, + 1799, 1799, 1799, 1799, -9721 + }; + err = opus_multistream_encode(enc, pcm, 320, data, 2460); + assert(err > 0); + } + opus_multistream_encoder_ctl(enc, OPUS_SET_SIGNAL(OPUS_SIGNAL_MUSIC)); + opus_multistream_encoder_ctl(enc, OPUS_SET_VBR(0)); + opus_multistream_encoder_ctl(enc, OPUS_SET_VBR_CONSTRAINT(1)); + opus_multistream_encoder_ctl(enc, OPUS_SET_PREDICTION_DISABLED(1)); + opus_multistream_encoder_ctl(enc, OPUS_SET_PHASE_INVERSION_DISABLED(0)); + opus_multistream_encoder_ctl(enc, OPUS_SET_DTX(1)); + opus_multistream_encoder_ctl(enc, OPUS_SET_COMPLEXITY(10)); + opus_multistream_encoder_ctl(enc, OPUS_SET_MAX_BANDWIDTH(OPUS_BANDWIDTH_FULLBAND)); + opus_multistream_encoder_ctl(enc, OPUS_SET_BANDWIDTH(OPUS_BANDWIDTH_FULLBAND)); + opus_multistream_encoder_ctl(enc, OPUS_SET_LSB_DEPTH(18)); + opus_multistream_encoder_ctl(enc, OPUS_SET_INBAND_FEC(1)); + opus_multistream_encoder_ctl(enc, OPUS_SET_PACKET_LOSS_PERC(90)); + opus_multistream_encoder_ctl(enc, OPUS_SET_BITRATE(280130)); + { + static const short pcm[160] = + { + -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, + -9510, -9510, -9510, -9510, -9510, -9510, -9526, -9510, -9510, + -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, + -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, + -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, + -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, + -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, + -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, + -9510, -9510, -9510, -9510, -9510, 25600, -9510, -9510, -9510, + -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, + -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, + -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, + -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, + -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, + -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, + -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, + -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, + -9510, -9510, -9510, -9510, -9510, -9510, -9510 + }; + err = opus_multistream_encode(enc, pcm, 160, data, 2460); + assert(err > 0); + } + opus_multistream_encoder_ctl(enc, OPUS_SET_SIGNAL(OPUS_SIGNAL_MUSIC)); + opus_multistream_encoder_ctl(enc, OPUS_SET_VBR(0)); + opus_multistream_encoder_ctl(enc, OPUS_SET_VBR_CONSTRAINT(1)); + opus_multistream_encoder_ctl(enc, OPUS_SET_PREDICTION_DISABLED(1)); + opus_multistream_encoder_ctl(enc, OPUS_SET_PHASE_INVERSION_DISABLED(0)); + opus_multistream_encoder_ctl(enc, OPUS_SET_DTX(1)); + opus_multistream_encoder_ctl(enc, OPUS_SET_COMPLEXITY(10)); + opus_multistream_encoder_ctl(enc, OPUS_SET_MAX_BANDWIDTH(OPUS_BANDWIDTH_FULLBAND)); + opus_multistream_encoder_ctl(enc, OPUS_SET_BANDWIDTH(OPUS_BANDWIDTH_FULLBAND)); + opus_multistream_encoder_ctl(enc, OPUS_SET_LSB_DEPTH(18)); + opus_multistream_encoder_ctl(enc, OPUS_SET_INBAND_FEC(1)); + opus_multistream_encoder_ctl(enc, OPUS_SET_PACKET_LOSS_PERC(90)); + opus_multistream_encoder_ctl(enc, OPUS_SET_BITRATE(280130)); + { + static const short pcm[160] = + { + -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, + -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, + -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, + -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, + -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, + -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, + -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, + -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, + -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, + -9510, -9494, -9510, -9510, -9510, -9510, -9510, -9510, -9510, + -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, + -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, + -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, + -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, + -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, + -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, + -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, + -9510, -9510, -9510, -9510, -9510, -9510, -9510 + }; + err = opus_multistream_encode(enc, pcm, 160, data, 2460); + assert(err > 0); + } + opus_multistream_encoder_ctl(enc, OPUS_SET_SIGNAL(OPUS_SIGNAL_MUSIC)); + opus_multistream_encoder_ctl(enc, OPUS_SET_VBR(0)); + opus_multistream_encoder_ctl(enc, OPUS_SET_VBR_CONSTRAINT(1)); + opus_multistream_encoder_ctl(enc, OPUS_SET_PREDICTION_DISABLED(1)); + opus_multistream_encoder_ctl(enc, OPUS_SET_PHASE_INVERSION_DISABLED(0)); + opus_multistream_encoder_ctl(enc, OPUS_SET_DTX(1)); + opus_multistream_encoder_ctl(enc, OPUS_SET_COMPLEXITY(10)); + opus_multistream_encoder_ctl(enc, OPUS_SET_MAX_BANDWIDTH(OPUS_BANDWIDTH_FULLBAND)); + opus_multistream_encoder_ctl(enc, OPUS_SET_BANDWIDTH(OPUS_BANDWIDTH_FULLBAND)); + opus_multistream_encoder_ctl(enc, OPUS_SET_LSB_DEPTH(18)); + opus_multistream_encoder_ctl(enc, OPUS_SET_INBAND_FEC(1)); + opus_multistream_encoder_ctl(enc, OPUS_SET_PACKET_LOSS_PERC(90)); + opus_multistream_encoder_ctl(enc, OPUS_SET_BITRATE(280130)); + { + static const short pcm[160] = + { + -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, + -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, + -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, + -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, + -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, + -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, + -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, + -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, + -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, + -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, + -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, + -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, + -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, + -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, + -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9479, -9510, + -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, + -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, -9510, + -9510, -9510, -9510, -9510, -9510, -9510, -9510 + }; + err = opus_multistream_encode(enc, pcm, 160, data, 2460); + assert(err > 0); + } + opus_multistream_encoder_ctl(enc, OPUS_SET_SIGNAL(OPUS_SIGNAL_MUSIC)); + opus_multistream_encoder_ctl(enc, OPUS_SET_VBR(0)); + opus_multistream_encoder_ctl(enc, OPUS_SET_VBR_CONSTRAINT(1)); + opus_multistream_encoder_ctl(enc, OPUS_SET_PREDICTION_DISABLED(1)); + opus_multistream_encoder_ctl(enc, OPUS_SET_PHASE_INVERSION_DISABLED(0)); + opus_multistream_encoder_ctl(enc, OPUS_SET_DTX(1)); + opus_multistream_encoder_ctl(enc, OPUS_SET_COMPLEXITY(10)); + opus_multistream_encoder_ctl(enc, OPUS_SET_MAX_BANDWIDTH(OPUS_BANDWIDTH_FULLBAND)); + opus_multistream_encoder_ctl(enc, OPUS_SET_BANDWIDTH(OPUS_BANDWIDTH_FULLBAND)); + opus_multistream_encoder_ctl(enc, OPUS_SET_LSB_DEPTH(18)); + opus_multistream_encoder_ctl(enc, OPUS_SET_INBAND_FEC(1)); + opus_multistream_encoder_ctl(enc, OPUS_SET_PACKET_LOSS_PERC(90)); + opus_multistream_encoder_ctl(enc, OPUS_SET_BITRATE(280130)); + { + static const short pcm[160] = + { + -9510, -9510, 1799, 1799, 1799, 1799, 1799, 1799, 1799, + 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, + -256, 255, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 128, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 32, 0, 0, 0, 0, 0, 0, 0, + 4352, 4, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 148, 0, 0, 0, 0, + 5632 + }; + err = opus_multistream_encode(enc, pcm, 160, data, 2460); + assert(err > 0); + } + opus_multistream_encoder_ctl(enc, OPUS_SET_SIGNAL(OPUS_SIGNAL_VOICE)); + opus_multistream_encoder_ctl(enc, OPUS_SET_VBR(0)); + opus_multistream_encoder_ctl(enc, OPUS_SET_VBR_CONSTRAINT(1)); + opus_multistream_encoder_ctl(enc, OPUS_SET_PREDICTION_DISABLED(1)); + opus_multistream_encoder_ctl(enc, OPUS_SET_PHASE_INVERSION_DISABLED(1)); + opus_multistream_encoder_ctl(enc, OPUS_SET_DTX(1)); + opus_multistream_encoder_ctl(enc, OPUS_SET_COMPLEXITY(0)); + opus_multistream_encoder_ctl(enc, OPUS_SET_MAX_BANDWIDTH(OPUS_BANDWIDTH_NARROWBAND)); + opus_multistream_encoder_ctl(enc, OPUS_SET_BANDWIDTH(OPUS_AUTO)); + opus_multistream_encoder_ctl(enc, OPUS_SET_LSB_DEPTH(12)); + opus_multistream_encoder_ctl(enc, OPUS_SET_INBAND_FEC(0)); + opus_multistream_encoder_ctl(enc, OPUS_SET_PACKET_LOSS_PERC(41)); + opus_multistream_encoder_ctl(enc, OPUS_SET_BITRATE(21425)); + { + static const short pcm[40] = + { + 10459, -6474, 10204, -6539, 11601, -6824, 13385, -7142, 13872, + -11553, 13670, -7725, 13463, -6887, 12482, -5580, 12600, -4964, + 12480, 3254, 11741, -4210, 9741, -3155, 7558, -5468, 5431, + -1073, 3641, -1304, 0, -1, 343, 26, 0, 0, + 0, 0, -256, 226 + }; + err = opus_multistream_encode(enc, pcm, 40, data, 2460); + assert(err > 0); + /* returns -3 */ + } + opus_multistream_encoder_destroy(enc); + return 0; +} + +static int mscbr_encode_fail10(void) +{ + OpusMSEncoder *enc; + int err; + unsigned char data[627300]; + static const unsigned char mapping[255] = + { + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, + 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, + 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, + 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, + 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99,100,101, + 102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118, + 119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135, + 136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152, + 153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169, + 170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186, + 187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203, + 204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220, + 221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237, + 238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254 + }; + + enc = opus_multistream_encoder_create(8000, 255, 254, 1, mapping, + OPUS_APPLICATION_RESTRICTED_LOWDELAY, &err); + opus_multistream_encoder_ctl(enc, OPUS_SET_SIGNAL(OPUS_SIGNAL_VOICE)); + opus_multistream_encoder_ctl(enc, OPUS_SET_VBR(0)); + opus_multistream_encoder_ctl(enc, OPUS_SET_VBR_CONSTRAINT(0)); + opus_multistream_encoder_ctl(enc, OPUS_SET_PREDICTION_DISABLED(0)); + opus_multistream_encoder_ctl(enc, OPUS_SET_FORCE_CHANNELS(2)); + opus_multistream_encoder_ctl(enc, OPUS_SET_PHASE_INVERSION_DISABLED(1)); + opus_multistream_encoder_ctl(enc, OPUS_SET_DTX(1)); + opus_multistream_encoder_ctl(enc, OPUS_SET_COMPLEXITY(2)); + opus_multistream_encoder_ctl(enc, OPUS_SET_MAX_BANDWIDTH(OPUS_BANDWIDTH_NARROWBAND)); + opus_multistream_encoder_ctl(enc, OPUS_SET_BANDWIDTH(OPUS_AUTO)); + opus_multistream_encoder_ctl(enc, OPUS_SET_LSB_DEPTH(14)); + opus_multistream_encoder_ctl(enc, OPUS_SET_INBAND_FEC(0)); + opus_multistream_encoder_ctl(enc, OPUS_SET_PACKET_LOSS_PERC(57)); + opus_multistream_encoder_ctl(enc, OPUS_SET_BITRATE(3642675)); + { + static const short pcm[20*255] = + { + 0 + }; + err = opus_multistream_encode(enc, pcm, 20, data, 627300); + assert(err > 0); + /* returns -1 */ + } + opus_multistream_encoder_destroy(enc); + return 0; +} + +static int mscbr_encode_fail(void) +{ + OpusMSEncoder *enc; + int err; + unsigned char data[472320]; + static const unsigned char mapping[192] = + { + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, + 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, + 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, + 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, + 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99,100,101, + 102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118, + 119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135, + 136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152, + 153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169, + 170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186, + 187,188,189,190,191 + }; + + enc = opus_multistream_encoder_create(8000, 192, 189, 3, mapping, + OPUS_APPLICATION_RESTRICTED_LOWDELAY, &err); + opus_multistream_encoder_ctl(enc, OPUS_SET_SIGNAL(OPUS_SIGNAL_MUSIC)); + opus_multistream_encoder_ctl(enc, OPUS_SET_VBR(0)); + opus_multistream_encoder_ctl(enc, OPUS_SET_VBR_CONSTRAINT(0)); + opus_multistream_encoder_ctl(enc, OPUS_SET_PREDICTION_DISABLED(0)); + opus_multistream_encoder_ctl(enc, OPUS_SET_FORCE_CHANNELS(OPUS_AUTO)); + opus_multistream_encoder_ctl(enc, OPUS_SET_PHASE_INVERSION_DISABLED(0)); + opus_multistream_encoder_ctl(enc, OPUS_SET_DTX(0)); + opus_multistream_encoder_ctl(enc, OPUS_SET_COMPLEXITY(0)); + opus_multistream_encoder_ctl(enc, OPUS_SET_MAX_BANDWIDTH(OPUS_BANDWIDTH_MEDIUMBAND)); + opus_multistream_encoder_ctl(enc, OPUS_SET_BANDWIDTH(OPUS_AUTO)); + opus_multistream_encoder_ctl(enc, OPUS_SET_LSB_DEPTH(8)); + opus_multistream_encoder_ctl(enc, OPUS_SET_INBAND_FEC(0)); + opus_multistream_encoder_ctl(enc, OPUS_SET_PACKET_LOSS_PERC(0)); + opus_multistream_encoder_ctl(enc, OPUS_SET_BITRATE(15360)); + { + static const short pcm[20*192] = + { + 0 + }; + err = opus_multistream_encode(enc, pcm, 20, data, 472320); + assert(err > 0); + /* returns -1 */ + } + opus_multistream_encoder_destroy(enc); + return 0; +} + +static int surround_analysis_uninit(void) +{ + OpusMSEncoder *enc; + int err; + unsigned char data[7380]; + int streams; + int coupled_streams; + unsigned char mapping[3]; + + enc = opus_multistream_surround_encoder_create(24000, 3, 1, &streams, + &coupled_streams, mapping, OPUS_APPLICATION_AUDIO, &err); + opus_multistream_encoder_ctl(enc, OPUS_SET_SIGNAL(OPUS_SIGNAL_VOICE)); + opus_multistream_encoder_ctl(enc, OPUS_SET_VBR(1)); + opus_multistream_encoder_ctl(enc, OPUS_SET_VBR_CONSTRAINT(1)); + opus_multistream_encoder_ctl(enc, OPUS_SET_PREDICTION_DISABLED(0)); + opus_multistream_encoder_ctl(enc, OPUS_SET_FORCE_CHANNELS(OPUS_AUTO)); + opus_multistream_encoder_ctl(enc, OPUS_SET_PHASE_INVERSION_DISABLED(0)); + opus_multistream_encoder_ctl(enc, OPUS_SET_DTX(0)); + opus_multistream_encoder_ctl(enc, OPUS_SET_COMPLEXITY(0)); + opus_multistream_encoder_ctl(enc, OPUS_SET_MAX_BANDWIDTH(OPUS_BANDWIDTH_NARROWBAND)); + opus_multistream_encoder_ctl(enc, OPUS_SET_BANDWIDTH(OPUS_BANDWIDTH_NARROWBAND)); + opus_multistream_encoder_ctl(enc, OPUS_SET_LSB_DEPTH(8)); + opus_multistream_encoder_ctl(enc, OPUS_SET_INBAND_FEC(1)); + opus_multistream_encoder_ctl(enc, OPUS_SET_BITRATE(84315)); + { + static const short pcm[960*3] = + { + -6896, 4901, -6158, 4120, -5164, 3631, -4442, 3153, -4070, + 3349, -4577, 4474, -5541, 5058, -6701, 3881, -7933, 1863, + -8041, 697, -6738,-31464, 14330,-12523, 4096, -6130, 29178, + -250,-21252, 10467, 16907, -3359, -6644, 31965, 14607,-21544, + -32497, 24020, 12557,-26926,-18421, -1842, 24587, 19659, 4878, + 10954, 23060, 8907,-10215,-16179, 31772,-11825,-15590,-23089, + 17173,-25903,-17387, 11733, 4884, 10204,-16476,-14367, 516, + 20453,-16898, 20967,-23813, -20, 22011,-17167, 9459, 32499, + -25855, -523, -3883, -390, -4206, 634, -3767, 2325, -2751, + 3115, -2392, 2746, -2173, 2317, -1147, 2326, 23142, 11314, + -15350,-24529, 3026, 6146, 2150, 2476, 1105, -830, 1775, + -3425, 3674,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + 4293,-14023, 3879,-15553, 3158,-16161, 2629, 18433,-12535, + -6645,-20735,-32763,-13824,-20992, 25859, 13052, -8731, 2292, + -3860, 24049, 10225,-19220, 10478,-22294, 22773, 28137, 13816, + 30953,-25863,-24598, 16888,-14612,-28942, 20974,-27397,-18944, + -18690, 20991,-16638, 5632,-14330, 28911,-25594, 17408, 29958, + -517,-20984, -1800, 11281, 9977,-21221,-14854, 23840, -9477, + 3362,-12805,-22493, 32507, 156, 16384, -1163, 2301, -1874, + 4600, -1748, 6950, 16557, 8192, -7372, -1033, -3278, 2806, + 20275, 3317, -717, 9792, -767, 9099, -613, 8362, 5027, + 7774, 2597, 8549, 5278, 8743, 9343, 6940, 13038, 4826, + 14086, 2964, 13215, 1355, 11596, 455, 9850, -519, 10680, + -2287, 12551, -3736, 13639, -4291, 13790, -2722, 14544, -866, + 15050, -304, 22833, -1196, 13520, -2063, 13051, -2317, 13066, + -2737, 13773, -2664, 14105, -3447, 13854, 24589, 24672, -5280, + 10388, -4933, 7543, -4149, 3654, -1552, 1726, 661, 57, + 2922, -751, 3917, 8419, 3840, -5218, 3435, 5540, -1073, + 4153, -6656, 1649, -769, -7276,-13072, 6380, -7948, 20717, + 18425, 17392, 14335,-18190, -1842, 24587, 19659, 11790, 10954, + 23060, 8907,-10215,-16179, 31772,-11825,-15590,-23101, 17173, + -25903,-17387, 11733, 4884, 10192,-16627,-14367, 516, 20453, + -16898, 20967,-23813, -20, 22011,-17167, 9468, 32499,-25607, + -523, -3883, -390, -4206, 634, -3767, 2325, -2751, 3115, + -2392, 2746, -2161, 2317, -1147, 2326, 23142, 11314,-15350, + -29137, 3026,-15056, -491,-15170, -386,-16015, -641,-16505, + -930,-16206, -717,-16175, -2839,-16374, -4558,-16237, -5207, + -15903, -6421, 6373, -1403, 5431, -1073, 3641, -1304, -4495, + -769, -7276, 2856, -7870, 3314, -8730, 3964,-10183, 4011, + -11135, 3421,-11727, 2966,-12360, 2818,-13472, 3660,-13805, + 5162,-13478, 6434,-12840, 7335,-12420, 6865,-12349, 5541, + -11965, 5530,-10820, 5132, -9197, 3367, -7745, 1223, -6910, + -433, -6211, -1711, -4958, -1025, -3755, -836, -3292, -1666, + -2661,-10755, 31472,-27906, 31471, 18690, 5617, 16649, 11253, + -22516,-17674,-31990, 3575,-31479, 5883, 26121, 12890, -6612, + 12228,-11634, 523, 26136,-21496, 20745,-15868, -4100,-24826, + 23282, 22798, 491, -1774, 15075,-27373,-13094, 6417,-29487, + 14608, 10185, 16143, 22211, -8436, 4288, -8694, 2375, 3023, + 486, 1455, 128, 202, 942, -923, 2068, -1233, -717, + -1042, -2167, 32255, -4632, 310, -4458, -3639, -5258, 2106, + -6857, 2681, -7497, 2765, -6601, 1945, -5219, 19154, -4877, + 619, -5719, -1928, -6208, -121, 593, 188, 1558, -4152, + 1648, 156, 1604, -3664, -6862, -2851, -5112, -3600, -3747, + -5081, -4428, -5592, 20974,-27397,-18944,-18690, 20991,-17406, + 5632,-14330, 28911, 15934, 15934, 15934, 15934, 15934, 15934, + 15934, 15934, 15934, 15934, 15934, 15934,-25594, 17408, 29958, + -7173,-16888, 9098, -613, 8362, 675, 7774, 2597, 8549, + 5278, 8743, 9375, 6940, 13038, 4826, 14598, 7721,-24308, + -29905,-19703,-17106,-16124, -3287,-26118,-19709,-10769, 24353, + 28648, 6946, -1363, 12485, -1187, 26074,-25055, 10004,-24798, + 7204, -4581, -9678, 1554, 10553, 3102, 12193, 2443, 11955, + 1213, 10689, -1293, 921, -4173, 10709, -6049, 8815, -7128, + 8147, -8308, 6847, -2977, 4920,-11447,-22426,-11794, 3514, + -10220, 3430, -7993, 1926, -7072, 327, -7569, -608, -7605, + 3695, -6271, -1579, -4877, -1419, -3103, -2197, 128, -3904, + 3760, -5401, 4906, -6051, 4250, -6272, 3492, -6343, 3197, + -6397, 4041, -6341, 6255, -6381, 7905, 16504, 0, -6144, + 8062, -5606, 8622, -5555, -9, -1, 7423, 0, 1, + 238, 5148, 1309, 4700, 2218, 4403, 2573, 3568, 28303, + 1758, 3454, -1247, 3434, -4912, 2862, -7844, 1718,-10095, + 369,-12631, 128, -3904, 3632, -5401, 4906, -6051, 4250, + -6272, 3492, -6343, 3197, -6397, 4041, -6341, 6255, -6381, + 7905, 16504, 0, -6144, 8062, -5606, 8622, -5555, 8439, + -3382, 7398, -1170, 6132, 238, 5148, 1309, 4700, 2218, + 4403, 2573, 3568, 2703, 1758, 3454, -1247, 3434, -4912, + 2862, -7844, 1718,-10095, 369,-12631, -259,-14632, 234, + -15056, -521,-15170, -386,-16015, -641,-16505, -930,-16206, + -1209,-16146, -2839,-16374, -4558,-16218, -5207,-15903, -6421, + -15615, -6925,-14871, -6149,-13759, -5233,-12844, 18313, -4357, + -5696, 2804, 12992,-22802, -6720, -9770, -7088, -8998, 14330, + -12523, 14843, -6130, 29178, -250,-27396, 10467, 16907, -3359, + -6644, 31965, 14607,-21544,-32497, 24020, 12557,-26926, -173, + -129, -6401, -130,-25089, -3841, -4916, -3048, 224, -237, + -3969, -189, -3529, -535, -3464,-14863,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14395,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907, 0, 32512,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907, 9925, -718, 9753, -767, + 9099, -613, 8362, 675, 7774, 2597, 8549, 5278, 8743, + 9375, 6940, 13038, 4826, 14598, 7721,-24308,-29905,-19703, + -17106,-16124, -3287,-26118,-19709, 0, 24353, 28648, 10274, + -11292,-29665,-16417, 24346, 14553, 18707, 26323, -4596,-17711, + 5133, 26328, 13,-31168, 24583, 18404,-28927,-24350, 19453, + 28642, 1019,-10777, -3079, 30188, -7686, 27635,-32521,-16384, + 12528, -6386, 10986, 23827,-25880,-32752,-23321, 14605, 32231, + 780,-13849, 15119, 28647, 4888, -7705, 30750, 64, 0, + 32488, 6687,-20758, 19745, -2070,-13792, -6414, 28188, -2821, + -4585, 7168, 7444, 23557,-21998, 13064, 3345, -4086,-28915, + -8694, 32262, 8461, 27387,-12275, 12012, 23563,-18719,-28410, + 29144,-22271, -562, -9986, -5434, 12288, 5573,-16642, 32448, + 29182, 32705,-30723, 24255,-19716, 18368, -4357, -5696, 2804, + 12992,-22802,-22080, -7701, -5183, 486, -3133, -5660, -1083, + 16871,-28726,-11029,-30259, -1209,-16146, -2839,-16374, -4558, + -16218,-10523, 20697, -9500, -1316, 5431, -1073, 3641, -1304, + 1649, -769, -7276, 2856, -7870, 3314, -8730, 3964,-10183, + 4011,-11135, 3421,-11727, 21398, 32767, -1, 32486, -1, + 6301,-13071, 6380, -7948, -1, 32767, 240, 14081, -5646, + 30973, -3598,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907, 32767,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907, 8901, 9375, 6940, 13038, 4826, 14598, 7721,-24308, + -29905,-19703,-17106,-16124, -3287,-26118,-19709,-10769, 24361, + 28648, 10274,-11292,-29665,-16417, 24346, 14580, 18707, 26323, + -4440,-17711, 5133, 26328,-14579,-31008, 24583, 18404, 28417, + -24350, 19453, 28642,-32513,-10777, -3079, 30188, -7686, 27635, + -32521,-16384,-20240, -6386, 10986, 23827,-25880,-32752,-23321, + 14605, 32231, 780,-13849, 15119, 28647, 4888, -7705,-15074, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907, 8192,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14897,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -15931,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907, 26121, 12890, 2604, + 12228,-11634, 12299, 5573,-16642, 32452, 29182, 32705,-30723, + 24255,-19716, 13248,-11779, -5696, 2804, 12992,-27666,-22080, + -7701, -5183, -6682,-31464, 14330,-12523, 14843, -6130, 29178, + -18,-27396, 10467, 16907, -3359, -6644, 31965, 14607,-21544, + -32497, 24020, 12557,-26926,-18421, 706, 24587, 19659, 4878, + 10954, 23060, 8907,-10215,-22579, 31772,-11825,-15590,-23089, + 17173,-25903,-17387, 3285, 4884, 10204,-16627,-14367, 516, + 20453,-16898, 20967,-23815, -20, 22011,-17167, 9468, 32499, + -25607, -523, -3883, -390, -4206, 634, -3767, 2325, -2751, + 3115, -2392, 2746, -2173, 2317, -1147, 2326, 23142, 11314, + -15130,-29137, 3026, 6146, 2150, 2476, 1105, -830, 1775, + -3425, 3674, -5287, 4609, -7175, 4922, -9579, 4556,-12007, + 4236,-14023, 3879,-15553, 3158,-16161, 2576, 18398,-12535, + -6645,-20735,-32763,-13824,-20992, 25859, 5372, 12040, 13307, + -4355,-30213, -9, -6019, 14061,-31487,-13842, 30449, 15083, + 14088, 31205,-18678,-12830, 14090,-26138,-25337,-11541, -3254, + 27628,-22270, 30953,-16136,-30745, 20991,-17406, 5632,-14330, + 28911,-25594, 17408,-20474, 13041, -8731, 2292, -3860, 24049, + 10225,-19220, 10478, -4374, -1199, 148, -330, -74, 593, + 188, 1558, -4152, 15984, 15934, 15934, 15934, 15934, 15934, + 15934, 15934, 15934, 15934, 15934, 15934, 1598, 156, 1604, + -1163, 2278,-30018,-25821,-21763,-23776, 24066, 9502, 25866, + -25055, 10004,-24798, 7204, -4581, -9678, 1554, 10553, 3102, + 12193, 2443, 11955, 1213, 10689, -1293, 921, -4173, 8661, + -6049, 8815,-21221,-14854, 23840, -9477, 8549, 5278, 8743, + 9375, 6940, 13038, 4826, 14598, 7721,-24308,-29905,-19703, + -17106,-16124, -3287,-26118,-19709,-10769, 24361, 28648, 10274, + -11292,-29665,-16417, 24346, 14580, 18707, 26323, -4410,-17711, + 5133, 26328,-14579,-31008, 24583, 18404, 28417,-24350, 19453, + 28642,-32513,-10777, -3079, 30188, -7686, 27635,-32521,-16384, + -20240, -6386, 10986, 23827,-25880,-32752,-23321, 14605, 32231, + 780,-13849, 15119, 28647, 4888, -7705, 30750, 64, 0, + 32488, 6687,-20758, 19745, -2070, -1, -1, 28, 256, + -4608, 7168, 7444, 23557,-21998, 13064, 3345, -4086,-28915, + -8594, 32262, 8461, 27387,-12275, 12012, 23563,-18719,-28410, + 29144,-22271,-32562,-16384, 12528, -6386, 10986, 23827,-25880, + -32752,-23321, 14605, 32231, 780,-13849, 15119, 28647, 4888, + -7705, 30750, 64, 0, 32488, 6687,-20758, 19745, -2070, + -13792, -6414, 28188, -2821, -4585, 7168, 7444, 23557,-21998, + 13064, 3345, -4086,-28915, -8694, 32262, 8461, 27387,-12275, + 12012, 23563,-18719,-28410, 29144,-22271, -562, -9986, -5434, + 12288, -2107,-16643, 32452, 29182, 32705,-30723, 24255,-19716, + 18368, -4357, -5696, 2804, 12992,-22802,-22080, -7701, -5183, + 486, -3133, -5660, -1083, 16871,-28726,-11029,-30259, -1209, + -16146, -2839,-16374, -4558,-16218,-10523, 20697, -9500, -1316, + 5431, -1073, 3641, -1304, 1649, -769, -7276, 2856, -7870, + 3314, -8730, 3964,-10183, 4011,-11135, 3421,-11727, 21398, + 32767, -1, 32486, -1, -99,-13072, 6380, -7948, 4864, + 32767, 17392, 14335, -5646, 30973, -3598,-10299,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14905,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-19771,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-16443,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-15931,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907, -1,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907, 7877, 7710, 7710, 7710, 7710, 7710, 7710, + 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, + 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, + 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, + 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, + 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, + 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, + 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, + 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, + 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, + 7710, 7710, 7710, 7710, 7710, -994, -7276, 2856, -7870, + 3314, -8730, 3964,-10183, 4011,-11135, 3421,-11727, 21398, + 32767, -1, 32486, -1, -99,-13072, 6380, -7948, 4864, + 32767, 17392, 14335, -5646, 30973, -3598,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14905,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907, 197, 0,-14977,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907, 12838, 6653, 294, + -29699,-25821,-21763,-23776, 24066, 9502, 25866,-25055, 10004, + -24798, 7204, -4581, -9678, 1554, 10553, 3102, 12193, 2443, + 11955, 1213, 10689, -1293, 921, 179, 8448, -6049, 8815, + -7128, 8147, -8308, 6847, -9889, 4920,-11447, 3174,-11794, + 3514,-10220, 3430, 16384, 1926, -7072, 327, -7537, -608, + -7605, -1169, -6397, -1579, -4877, -1419, -3103, -2197, 128, + -3904, 3632, -5401, 4906, -6051, 4250, -6272, 3492, -6343, + 3197, -6397, 4041, -6341, 6255, -6381, 7905, 16504, 0, + -6144, 8062, -5606, 8622, -5555, 8439, -3382, 7398, -1170, + 6132, 238, 5148, 1309, 4700, 2218, 4403, 2573, 3568, + 2703, 1758, 3454, -1247, 3434, -4912, 2862, -7844, 1718, + -10095, 369,-12631, -259,-14632, 234,-15056, -491,-16194, + -386,-16015, -641,-16505, -930,-16206, -1209,-16146, -2839, + -16374, -4558,-16218, -5207,-15903, -6421,-15615, -6925,-14871, + -6149,-13759, -5233,-12844, 18313, -4357, -5696, 2804, 12992, + -22802, -6720, -9770, -7088, -8998, 14330,-12523, 14843, -6130, + 29178, -250,-27396, 10467, 16907, -3359, -6644, 31965, 14607, + -21544,-32497, 24020, 12557,-26926, -173, -129, -6401, -130, + -25089, -3816, -4916, -3048, -32, -1, -3969, 256, -3529, + -535, -3464,-14863,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -1209,-16146, -2839,-16374, -4558,-16218,-10523, 20697, -9500, + -1316, 5431, -1073, 3641, -1304, 1649, -769, -7276, 2856, + -7870, 3314, -8730, 3964,-10183, 4011,-11135, 3421,-11727, + 21398, 32767, -1, 32486, -1, 6301,-13071, 6380, -7948, + -1, 32767, 240, 14081, -5646, 30973, -3598,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + 32767,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907, 8901, 9375, 6940, + 13038, 4826, 14598, 7721,-24308,-29905,-19703,-17106,-16124, + -3287,-26118,-19709,-10769, 24361, 28648, 10274,-11292,-29665, + -16417, 24346, 14580, 18707, 26323, -4440,-17711, 5133, 26328, + -14579,-31008, 24583, 18404, 28417,-24350, 19453, 28642,-32513, + -10777, -3079, 30188, -7686, 27635,-32521,-16384,-20240, -6386, + 10986, 23827,-25880,-32752,-23321, 14605, 32231, 780,-13849, + 15119, 28647, 4888, -7705,-15074,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, 8192, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14897, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-15931,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907, 26121, 12890, 2604, 12228,-11634, 12299, 5573, + -16642, 32452, 29182, 32705,-30723, 24255,-19716, 13248,-11779, + -5696, 2804, 12992,-27666,-22080, -7701, -5183, -6682,-31464, + 14330,-12523, 14843, -6130, 29178, -18,-27396, 10467, 16907, + -3359, -6644, 31965, 14607,-21544,-32497, 24020, 12557,-26926, + -18421, 706, 24587, 19659, 4878, 10954, 23060, 8907,-10215, + -22579, 31772,-11825,-15590,-23089, 17173,-25903,-17387, 3285, + 4884, 10204,-16627,-14367, 516, 20453,-16898, 20967,-23815, + -20, 22011,-17167, 9468, 32499,-25607, -523, -3883, -390, + -4206, 634, -3767, 2325, -2751, 3115, -2392, 2746, -2173, + 2317, -1147, 2326, 23142, 11314,-15130,-29137, 3026, 6146, + 2150, 2476, 1105, -830, 1775, -3425, 3674, -5287, 4609, + -7175, 4922, -9579, 4556,-12007, 4236,-14023, 3879,-15553, + 3158,-16161, 2576, 18398,-12535, -6645,-20735,-32763,-13824, + -20992, 25859, 5372, 12040, 13307, -4355,-30213, -9, -6019 + }; + err = opus_multistream_encode(enc, pcm, 960, data, 7380); + assert(err > 0); + } + opus_multistream_encoder_ctl(enc, OPUS_SET_SIGNAL(OPUS_SIGNAL_MUSIC)); + opus_multistream_encoder_ctl(enc, OPUS_SET_VBR(1)); + opus_multistream_encoder_ctl(enc, OPUS_SET_VBR_CONSTRAINT(0)); + opus_multistream_encoder_ctl(enc, OPUS_SET_PREDICTION_DISABLED(1)); + opus_multistream_encoder_ctl(enc, OPUS_SET_FORCE_CHANNELS(OPUS_AUTO)); + opus_multistream_encoder_ctl(enc, OPUS_SET_PHASE_INVERSION_DISABLED(1)); + opus_multistream_encoder_ctl(enc, OPUS_SET_DTX(1)); + opus_multistream_encoder_ctl(enc, OPUS_SET_COMPLEXITY(6)); + opus_multistream_encoder_ctl(enc, OPUS_SET_MAX_BANDWIDTH(OPUS_BANDWIDTH_NARROWBAND)); + opus_multistream_encoder_ctl(enc, OPUS_SET_BANDWIDTH(OPUS_AUTO)); + opus_multistream_encoder_ctl(enc, OPUS_SET_LSB_DEPTH(9)); + opus_multistream_encoder_ctl(enc, OPUS_SET_INBAND_FEC(1)); + opus_multistream_encoder_ctl(enc, OPUS_SET_PACKET_LOSS_PERC(5)); + opus_multistream_encoder_ctl(enc, OPUS_SET_BITRATE(775410)); + { + static const short pcm[1440*3] = + { + 30449, 15083, 14088, 31205,-18678,-12830, 14090,-26138,-25337, + -11541, -3254, 27628,-22270, 30953,-16136,-30745, 20991,-17406, + 5632,-14330, 28911,-25594, 17408,-20474, 13041, -8731, 2292, + -3860, 24049, 10225,-19220, 10478, -4374, -1199, 148, -330, + -74, 593, 188, 1558, -4152, 15984, 15934, 15934, 15934, + 15934, 15934, 15934, 15934, 15934, 15934, 15934, 15934, 1598, + 156, 1604, -1163, 2278,-30018,-25821,-21763,-23776, 24066, + 9502, 25866,-25055, 10004,-24798, 7204, -4581, -9678, 1554, + 10553, 3102, 12193, 2443, 11955, 1213, 10689, -1293, 921, + -4173, 8661, -6049, 8815,-21221,-14854, 23840, -9477, 8549, + 5278, 8743, 9375, 6940, 13038, 4826, 14598, 7721,-24308, + -29905,-19703,-17106,-16124, -3287,-26118,-19709,-10769, 24361, + 28648, 10274,-11292,-29665,-16417, 24346, 14580, 18707, 26323, + -4410,-17711, 5133, 26328,-14579,-31008, 24583, 18404, 28417, + -24350, 19453, 28642,-32513,-10777, -3079, 30188, -7686, 27635, + -32521,-16384,-20240, -6386, 10986, 23827,-25880,-32752,-23321, + 14605, 32231, 780,-13849, 15119, 28647, 4888, -7705, 30750, + 64, 0, 32488, 6687,-20758, 19745, -2070, -1, -1, + 28, 256, -4608, 7168, 7444, 23557,-21998, 13064, 3345, + -4086,-28915, -8594, 32262, 8461, 27387,-12275, 12012, 23563, + -18719,-28410, 29144,-22271,-32562,-16384, 12528, -6386, 10986, + 23827,-25880,-32752,-23321, 14605, 32231, 780,-13849, 15119, + 28647, 4888, -7705, 30750, 64, 0, 32488, 6687,-20758, + 19745, -2070,-13792, -6414, 28188, -2821, -4585, 7168, 7444, + 23557,-21998, 13064, 3345, -4086,-28915, -8694, 32262, 8461, + -14853,-14907,-14907,-14907,-14907, 32767,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14891,-14907,-14907,-14907, + -14907,-14907, 8901, 9375, 6940, 13038, 4826, 14598, 7721, + -24308,-29905,-19703,-17106,-16124, -3287,-26118,-19709,-10769, + 24361, 28648, 10274,-11292,-29665,-16417, 24346, 14580, 18707, + 26323, -4440,-17711, 5133, 26328,-14579,-31008, 24583, 18404, + 28417,-24350, 19453, 28642,-32513,-10777, -3079, 30188, -7686, + 27635,-32521,-16384,-20240, -6386, 10986, 23827,-25880,-32752, + -23321, 14605, 32231, 780,-13849, 15119, 28647, 4888, -7705, + -15074,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907, 8192,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14897,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-15931,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907, 26121, 12890, + 2604, 12228,-11634, 12299, 5573,-16642, 32452, 29182, 7710, + 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, + 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, + 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, + 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, + 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, + 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, + 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, + 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, + 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, + 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, + 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, + 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, + 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, + 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, + 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, + 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, + 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, + 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, + 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, + 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, + 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, + 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, + 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, + 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, 7710, + 7710,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-10811,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14917,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14938,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907,-14907, + -14907,-14907,-14907,-14907, -571, -9986, -58, 12542,-18491, + 32507, 12838, 6653, 294, -1, 0,-19968, 18368, -4357, + -5696, 2804, 12998,-22802,-22080, -7701, -5183, 486, -3133, + -5660, -1083, 13799,-28726,-11029, 205,-14848, 32464, -1, + -129,-13072, 6380, -7948, 20717, 18425, 17392, 14335, -5646, + 30973, -3598, 7188, -3867, 3055, -4247, 5597, -4011,-26427, + -11,-30418, 7922, 2614, 237, -5839,-27413,-17624,-29716, + -13539, 239, 20991, 18164, -4082,-16647,-27386, 19458, 20224, + 4619, 19728, -7409,-18186,-25073, 27627,-23539, -7945,-31464, + 14330,-12523,-22021, -7701, -5183, 486, -3133, -5660, -1083, + 13799,-28726,-11029, 205,-14848, 32464, -1, -129,-13072, + 6380, -7948, 20717, 18425, 17392, 14093, -5646, 30973, -3598, + 7188, -3867, 3055, 3689, -5401, 4906, -6051, 4250, -6272, + 3492, -6343, 3197, -6397, 4041, -6341, 6255, -6381, 239, + 20991, 18164, -4082,-16647,-27386, 19458, 20224, 4619, 19728, + -7409,-18186,-25073, 27627,-23539, -7945,-31464, 14330,-12523, + 14843, -6130, 30202, -250,-28420, 10467, 16907, -3359, -6644, + 31965, 3343,-11727, 2966,-12616, 3064,-13472, 6732,-12349, + 5541,-11965, 5530,-10820, -1912, -3637, 32285, -4607, 310, + -32768, 0, -5258, 2106, -6857, 2681, -5449, -3606, -6717, + -5482, -3606, -1853, 4082, -7631, -9808, -1742, -2851, -5112, + 64, -868,-13546,-13365,-13365,-13365,-13365,-13365,-13365, + -13365,-13365,-13365,-13365,-13365,-13365,-13365,-13365,-13365, + -13365,-13365,-13365,-13365,-13365,-13365,-13365,-13365,-13365, + -13365,-13365,-13365,-13365,-13365,-13365,-13365,-13365,-13365, + -13365,-13365,-13365,-13365,-13365,-13365,-13365, 7883, -2316, + 9086, -3944, 10500, 4285, 10459, -6474, 10204, -6539, 11601, + -6824, 13385, -7142, 13872, -7457, 13670, -7725, 13463, -6887, + 12482, -5580, 12600, -4964, 12480, 3254, 11741, -4210,-24819, + 23282, 22798, 491, -1774, -1073, 3641, -1304, 28928, -250, + -27396, 6657, -8961, 22524, 19987, 10231, 1791, 8947,-32763, + -26385,-31227, -792,-30461, 8926, 4866, 27863, 27756, 27756, + 27756, 27756, 27756, 27756, 27756, 27756, 5630,-11070,-16136, + 20671,-11530, 27328, 8179, 5059,-31503,-24379,-19472, 17863, + -29202, 22986, -23, 8909, 8422, 10450 + }; + err = opus_multistream_encode(enc, pcm, 1440, data, 7380); + /* reads uninitialized data at src/opus_multistream_encoder.c:293 */ + assert(err > 0); + } + opus_multistream_encoder_destroy(enc); + return 0; +} + +static int ec_enc_shrink_assert(void) +{ + OpusEncoder *enc; + int err; + int data_len; + unsigned char data[2000]; + static const short pcm1[960] = { 5140 }; + static const short pcm2[2880] = + { + -256,-12033, 0, -2817, 6912, 0, -5359, 5200, 3061, + 0, -2903, 5652, -1281,-24656,-14433,-24678, 32,-29793, + 2870, 0, 4096, 5120, 5140, -234,-20230,-24673,-24633, + -24673,-24705, 0,-32768,-25444,-25444, 0,-25444,-25444, + 156,-20480, -7948, -5920, -7968, -7968, 224, 0, 20480, + 11, 20496, 13, 20496, 11,-20480, 2292,-20240, 244, + 20480, 11, 20496, 11,-20480, 244,-20240, 7156, 20456, + -246,-20243, 244, 128, 244, 20480, 11, 20496, 11, + -20480, 244,-20256, 244, 20480, 256, 0, -246, 16609, + -176, 0, 29872, -4096, -2888, 516, 2896, 4096, 2896, + -20480, -3852, -2896, -1025,-31056,-14433, 244, 1792, -256, + -12033, 0, -2817, 0, 0, -5359, 5200, 3061, 16, + -2903, 5652, -1281,-24656,-14433,-24678, 32,-29793, 2870, + 0, 4096, 5120, 5140, -234,-20230,-24673,-24633,-24673, + -24705, 0,-32768,-25444,-25444, 0,-25444,-25444, 156, + -20480, -7973, -5920, -7968, -7968, 224, 0, 20480, 11, + 20496, 11, 20496, 11,-20480, 2292,-20213, 244, 20480, + 11, 20496, 11,-24698, -2873, 0, 7, -1, 208, + -256, 244, 0, 4352, 20715, -2796, 11,-22272, 5364, + -234,-20230,-24673,-25913, 8351,-24832, 13963, 11, 0, + 16, 5140, 5652, -1281,-24656,-14433,-24673, 32671, 159, + 0,-25472,-25444, 156,-25600,-25444,-25444, 0, -2896, + -7968, -7960, -7968, -7968, 0, 0, 2896, 4096, 2896, + 4096, 2896, 0, -2896, -4088, -2896, 0, 2896, 0, + -2896, -4096, -2896, 11, 2640, -4609, -2896,-32768, -3072, + 0, 2896, 4096, 2896, 0, -2896, -4096, -2896, 0, + 80, 1, 2816, 0, 20656, 255,-20480, 116,-18192 + }; + static const short pcm3[2880] = { 0 }; + + enc = opus_encoder_create(48000, 1, OPUS_APPLICATION_AUDIO, &err); + opus_encoder_ctl(enc, OPUS_SET_COMPLEXITY(10)); + opus_encoder_ctl(enc, OPUS_SET_PACKET_LOSS_PERC(6)); + opus_encoder_ctl(enc, OPUS_SET_BITRATE(6000)); + data_len = opus_encode(enc, pcm1, 960, data, 2000); + assert(data_len > 0); + + opus_encoder_ctl(enc, OPUS_SET_SIGNAL(OPUS_SIGNAL_VOICE)); + opus_encoder_ctl(enc, OPUS_SET_PREDICTION_DISABLED(1)); + opus_encoder_ctl(enc, OPUS_SET_BANDWIDTH(OPUS_BANDWIDTH_SUPERWIDEBAND)); + opus_encoder_ctl(enc, OPUS_SET_INBAND_FEC(1)); + opus_encoder_ctl(enc, OPUS_SET_BITRATE(15600)); + data_len = opus_encode(enc, pcm2, 2880, data, 122); + assert(data_len > 0); + + opus_encoder_ctl(enc, OPUS_SET_SIGNAL(OPUS_SIGNAL_MUSIC)); + opus_encoder_ctl(enc, OPUS_SET_BITRATE(27000)); + data_len = opus_encode(enc, pcm3, 2880, data, 122); /* assertion failure */ + assert(data_len > 0); + + opus_encoder_destroy(enc); + return 0; +} + +static int ec_enc_shrink_assert2(void) +{ + OpusEncoder *enc; + int err; + int data_len; + unsigned char data[2000]; + + enc = opus_encoder_create(48000, 1, OPUS_APPLICATION_AUDIO, &err); + opus_encoder_ctl(enc, OPUS_SET_COMPLEXITY(6)); + opus_encoder_ctl(enc, OPUS_SET_SIGNAL(OPUS_SIGNAL_VOICE)); + opus_encoder_ctl(enc, OPUS_SET_BANDWIDTH(OPUS_BANDWIDTH_FULLBAND)); + opus_encoder_ctl(enc, OPUS_SET_PACKET_LOSS_PERC(26)); + opus_encoder_ctl(enc, OPUS_SET_BITRATE(27000)); + { + static const short pcm[960] = { 0 }; + data_len = opus_encode(enc, pcm, 960, data, 2000); + assert(data_len > 0); + } + opus_encoder_ctl(enc, OPUS_SET_SIGNAL(OPUS_SIGNAL_MUSIC)); + { + static const short pcm[480] = + { + 32767, 32767, 0, 0, 32767, 32767, 0, 0, 32767, 32767, + -32768, -32768, 0, 0, -32768, -32768, 0, 0, -32768, -32768 + }; + data_len = opus_encode(enc, pcm, 480, data, 19); + assert(data_len > 0); + } + opus_encoder_destroy(enc); + return 0; +} + +static int silk_gain_assert(void) +{ + OpusEncoder *enc; + int err; + int data_len; + unsigned char data[1000]; + static const short pcm1[160] = { 0 }; + static const short pcm2[960] = + { + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 32767, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 32767 + }; + + enc = opus_encoder_create(8000, 1, OPUS_APPLICATION_AUDIO, &err); + opus_encoder_ctl(enc, OPUS_SET_COMPLEXITY(3)); + opus_encoder_ctl(enc, OPUS_SET_MAX_BANDWIDTH(OPUS_BANDWIDTH_NARROWBAND)); + opus_encoder_ctl(enc, OPUS_SET_BITRATE(6000)); + data_len = opus_encode(enc, pcm1, 160, data, 1000); + assert(data_len > 0); + + opus_encoder_ctl(enc, OPUS_SET_VBR(0)); + opus_encoder_ctl(enc, OPUS_SET_COMPLEXITY(0)); + opus_encoder_ctl(enc, OPUS_SET_MAX_BANDWIDTH(OPUS_BANDWIDTH_MEDIUMBAND)); + opus_encoder_ctl(enc, OPUS_SET_BITRATE(2867)); + data_len = opus_encode(enc, pcm2, 960, data, 1000); + assert(data_len > 0); + + opus_encoder_destroy(enc); + return 0; +} + +void regression_test(void) +{ + fprintf(stderr, "Running simple tests for bugs that have been fixed previously\n"); + celt_ec_internal_error(); + mscbr_encode_fail10(); + mscbr_encode_fail(); + surround_analysis_uninit(); + ec_enc_shrink_assert(); + ec_enc_shrink_assert2(); + silk_gain_assert(); +} diff --git a/components/opus/libopus/tests/run_vectors.sh b/components/opus/libopus/tests/run_vectors.sh new file mode 100644 index 0000000..dcb76cf --- /dev/null +++ b/components/opus/libopus/tests/run_vectors.sh @@ -0,0 +1,143 @@ +#!/bin/sh + +# Copyright (c) 2011-2012 Jean-Marc Valin +# +# This file is extracted from RFC6716. Please see that RFC for additional +# information. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# +# - Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# - Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# +# - Neither the name of Internet Society, IETF or IETF Trust, nor the +# names of specific contributors, may be used to endorse or promote +# products derived from this software without specific prior written +# permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER +# OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +rm -f logs_mono.txt logs_mono2.txt +rm -f logs_stereo.txt logs_stereo2.txt + +if [ "$#" -ne "3" ]; then + echo "usage: run_vectors.sh " + exit 1 +fi + +CMD_PATH=$1 +VECTOR_PATH=$2 +RATE=$3 + +: ${OPUS_DEMO:=$CMD_PATH/opus_demo} +: ${OPUS_COMPARE:=$CMD_PATH/opus_compare} + +if [ -d "$VECTOR_PATH" ]; then + echo "Test vectors found in $VECTOR_PATH" +else + echo "No test vectors found" + #Don't make the test fail here because the test vectors + #will be distributed separately + exit 0 +fi + +if [ ! -x "$OPUS_COMPARE" ]; then + echo "ERROR: Compare program not found: $OPUS_COMPARE" + exit 1 +fi + +if [ -x "$OPUS_DEMO" ]; then + echo "Decoding with $OPUS_DEMO" +else + echo "ERROR: Decoder not found: $OPUS_DEMO" + exit 1 +fi + +echo "==============" +echo "Testing mono" +echo "==============" +echo + +for file in 01 02 03 04 05 06 07 08 09 10 11 12 +do + if [ -e "$VECTOR_PATH/testvector$file.bit" ]; then + echo "Testing testvector$file" + else + echo "Bitstream file not found: testvector$file.bit" + fi + if "$OPUS_DEMO" -d "$RATE" 1 "$VECTOR_PATH/testvector$file.bit" tmp.out >> logs_mono.txt 2>&1; then + echo "successfully decoded" + else + echo "ERROR: decoding failed" + exit 1 + fi + "$OPUS_COMPARE" -r "$RATE" "$VECTOR_PATH/testvector${file}.dec" tmp.out >> logs_mono.txt 2>&1 + float_ret=$? + "$OPUS_COMPARE" -r "$RATE" "$VECTOR_PATH/testvector${file}m.dec" tmp.out >> logs_mono2.txt 2>&1 + float_ret2=$? + if [ "$float_ret" -eq "0" ] || [ "$float_ret2" -eq "0" ]; then + echo "output matches reference" + else + echo "ERROR: output does not match reference" + exit 1 + fi + echo +done + +echo "==============" +echo Testing stereo +echo "==============" +echo + +for file in 01 02 03 04 05 06 07 08 09 10 11 12 +do + if [ -e "$VECTOR_PATH/testvector$file.bit" ]; then + echo "Testing testvector$file" + else + echo "Bitstream file not found: testvector$file" + fi + if "$OPUS_DEMO" -d "$RATE" 2 "$VECTOR_PATH/testvector$file.bit" tmp.out >> logs_stereo.txt 2>&1; then + echo "successfully decoded" + else + echo "ERROR: decoding failed" + exit 1 + fi + "$OPUS_COMPARE" -s -r "$RATE" "$VECTOR_PATH/testvector${file}.dec" tmp.out >> logs_stereo.txt 2>&1 + float_ret=$? + "$OPUS_COMPARE" -s -r "$RATE" "$VECTOR_PATH/testvector${file}m.dec" tmp.out >> logs_stereo2.txt 2>&1 + float_ret2=$? + if [ "$float_ret" -eq "0" ] || [ "$float_ret2" -eq "0" ]; then + echo "output matches reference" + else + echo "ERROR: output does not match reference" + exit 1 + fi + echo +done + + + +echo "All tests have passed successfully" +mono1=`grep quality logs_mono.txt | awk '{sum+=$4}END{if (NR == 12) sum /= 12; else sum = 0; print sum}'` +mono2=`grep quality logs_mono2.txt | awk '{sum+=$4}END{if (NR == 12) sum /= 12; else sum = 0; print sum}'` +echo $mono1 $mono2 | awk '{if ($2 > $1) $1 = $2; print "Average mono quality is", $1, "%"}' + +stereo1=`grep quality logs_stereo.txt | awk '{sum+=$4}END{if (NR == 12) sum /= 12; else sum = 0; print sum}'` +stereo2=`grep quality logs_stereo2.txt | awk '{sum+=$4}END{if (NR == 12) sum /= 12; else sum = 0; print sum}'` +echo $stereo1 $stereo2 | awk '{if ($2 > $1) $1 = $2; print "Average stereo quality is", $1, "%"}' diff --git a/components/opus/libopus/tests/test_opus_api.c b/components/opus/libopus/tests/test_opus_api.c new file mode 100644 index 0000000..fb385c6 --- /dev/null +++ b/components/opus/libopus/tests/test_opus_api.c @@ -0,0 +1,1904 @@ +/* Copyright (c) 2011-2013 Xiph.Org Foundation + Written by Gregory Maxwell */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/* This tests the API presented by the libopus system. + It does not attempt to extensively exercise the codec internals. + The strategy here is to simply the API interface invariants: + That sane options are accepted, insane options are rejected, + and that nothing blows up. In particular we don't actually test + that settings are heeded by the codec (though we do check that + get after set returns a sane value when it should). Other + tests check the actual codec behavior. + In cases where its reasonable to do so we test exhaustively, + but its not reasonable to do so in all cases. + Although these tests are simple they found several library bugs + when they were initially developed. */ + +/* These tests are more sensitive if compiled with -DVALGRIND and + run inside valgrind. Malloc failure testing requires glibc. */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include +#include +#include +#include "arch.h" +#include "opus_multistream.h" +#include "opus.h" +#include "test_opus_common.h" + +#ifdef VALGRIND +#include +#define VG_UNDEF(x,y) VALGRIND_MAKE_MEM_UNDEFINED((x),(y)) +#define VG_CHECK(x,y) VALGRIND_CHECK_MEM_IS_DEFINED((x),(y)) +#else +#define VG_UNDEF(x,y) +#define VG_CHECK(x,y) +#endif + +#if defined(HAVE___MALLOC_HOOK) +#define MALLOC_FAIL +#include "os_support.h" +#include + +static const opus_int32 opus_apps[3] = {OPUS_APPLICATION_VOIP, + OPUS_APPLICATION_AUDIO,OPUS_APPLICATION_RESTRICTED_LOWDELAY}; + +void *malloc_hook(__attribute__((unused)) size_t size, + __attribute__((unused)) const void *caller) +{ + return 0; +} +#endif + +opus_int32 *null_int_ptr = (opus_int32 *)NULL; +opus_uint32 *null_uint_ptr = (opus_uint32 *)NULL; + +static const opus_int32 opus_rates[5] = {48000,24000,16000,12000,8000}; + +opus_int32 test_dec_api(void) +{ + opus_uint32 dec_final_range; + OpusDecoder *dec; + OpusDecoder *dec2; + opus_int32 i,j,cfgs; + unsigned char packet[1276]; +#ifndef DISABLE_FLOAT_API + float fbuf[960*2]; +#endif + short sbuf[960*2]; + int c,err; + + cfgs=0; + /*First test invalid configurations which should fail*/ + fprintf(stdout,"\n Decoder basic API tests\n"); + fprintf(stdout," ---------------------------------------------------\n"); + for(c=0;c<4;c++) + { + i=opus_decoder_get_size(c); + if(((c==1||c==2)&&(i<=2048||i>1<<16))||((c!=1&&c!=2)&&i!=0))test_failed(); + fprintf(stdout," opus_decoder_get_size(%d)=%d ...............%s OK.\n",c,i,i>0?"":"...."); + cfgs++; + } + + /*Test with unsupported sample rates*/ + for(c=0;c<4;c++) + { + for(i=-7;i<=96000;i++) + { + int fs; + if((i==8000||i==12000||i==16000||i==24000||i==48000)&&(c==1||c==2))continue; + switch(i) + { + case(-5):fs=-8000;break; + case(-6):fs=INT32_MAX;break; + case(-7):fs=INT32_MIN;break; + default:fs=i; + } + err = OPUS_OK; + VG_UNDEF(&err,sizeof(err)); + dec = opus_decoder_create(fs, c, &err); + if(err!=OPUS_BAD_ARG || dec!=NULL)test_failed(); + cfgs++; + dec = opus_decoder_create(fs, c, 0); + if(dec!=NULL)test_failed(); + cfgs++; + dec=malloc(opus_decoder_get_size(2)); + if(dec==NULL)test_failed(); + err = opus_decoder_init(dec,fs,c); + if(err!=OPUS_BAD_ARG)test_failed(); + cfgs++; + free(dec); + } + } + + VG_UNDEF(&err,sizeof(err)); + dec = opus_decoder_create(48000, 2, &err); + if(err!=OPUS_OK || dec==NULL)test_failed(); + VG_CHECK(dec,opus_decoder_get_size(2)); + cfgs++; + + fprintf(stdout," opus_decoder_create() ........................ OK.\n"); + fprintf(stdout," opus_decoder_init() .......................... OK.\n"); + + err=opus_decoder_ctl(dec, OPUS_GET_FINAL_RANGE(null_uint_ptr)); + if(err != OPUS_BAD_ARG)test_failed(); + VG_UNDEF(&dec_final_range,sizeof(dec_final_range)); + err=opus_decoder_ctl(dec, OPUS_GET_FINAL_RANGE(&dec_final_range)); + if(err!=OPUS_OK)test_failed(); + VG_CHECK(&dec_final_range,sizeof(dec_final_range)); + fprintf(stdout," OPUS_GET_FINAL_RANGE ......................... OK.\n"); + cfgs++; + + err=opus_decoder_ctl(dec,OPUS_UNIMPLEMENTED); + if(err!=OPUS_UNIMPLEMENTED)test_failed(); + fprintf(stdout," OPUS_UNIMPLEMENTED ........................... OK.\n"); + cfgs++; + + err=opus_decoder_ctl(dec, OPUS_GET_BANDWIDTH(null_int_ptr)); + if(err != OPUS_BAD_ARG)test_failed(); + VG_UNDEF(&i,sizeof(i)); + err=opus_decoder_ctl(dec, OPUS_GET_BANDWIDTH(&i)); + if(err != OPUS_OK || i!=0)test_failed(); + fprintf(stdout," OPUS_GET_BANDWIDTH ........................... OK.\n"); + cfgs++; + + err=opus_decoder_ctl(dec, OPUS_GET_SAMPLE_RATE(null_int_ptr)); + if(err != OPUS_BAD_ARG)test_failed(); + VG_UNDEF(&i,sizeof(i)); + err=opus_decoder_ctl(dec, OPUS_GET_SAMPLE_RATE(&i)); + if(err != OPUS_OK || i!=48000)test_failed(); + fprintf(stdout," OPUS_GET_SAMPLE_RATE ......................... OK.\n"); + cfgs++; + + /*GET_PITCH has different execution paths depending on the previously decoded frame.*/ + err=opus_decoder_ctl(dec, OPUS_GET_PITCH(null_int_ptr)); + if(err!=OPUS_BAD_ARG)test_failed(); + cfgs++; + VG_UNDEF(&i,sizeof(i)); + err=opus_decoder_ctl(dec, OPUS_GET_PITCH(&i)); + if(err != OPUS_OK || i>0 || i<-1)test_failed(); + cfgs++; + VG_UNDEF(packet,sizeof(packet)); + packet[0]=63<<2;packet[1]=packet[2]=0; + if(opus_decode(dec, packet, 3, sbuf, 960, 0)!=960)test_failed(); + cfgs++; + VG_UNDEF(&i,sizeof(i)); + err=opus_decoder_ctl(dec, OPUS_GET_PITCH(&i)); + if(err != OPUS_OK || i>0 || i<-1)test_failed(); + cfgs++; + packet[0]=1; + if(opus_decode(dec, packet, 1, sbuf, 960, 0)!=960)test_failed(); + cfgs++; + VG_UNDEF(&i,sizeof(i)); + err=opus_decoder_ctl(dec, OPUS_GET_PITCH(&i)); + if(err != OPUS_OK || i>0 || i<-1)test_failed(); + cfgs++; + fprintf(stdout," OPUS_GET_PITCH ............................... OK.\n"); + + err=opus_decoder_ctl(dec, OPUS_GET_LAST_PACKET_DURATION(null_int_ptr)); + if(err != OPUS_BAD_ARG)test_failed(); + VG_UNDEF(&i,sizeof(i)); + err=opus_decoder_ctl(dec, OPUS_GET_LAST_PACKET_DURATION(&i)); + if(err != OPUS_OK || i!=960)test_failed(); + cfgs++; + fprintf(stdout," OPUS_GET_LAST_PACKET_DURATION ................ OK.\n"); + + VG_UNDEF(&i,sizeof(i)); + err=opus_decoder_ctl(dec, OPUS_GET_GAIN(&i)); + VG_CHECK(&i,sizeof(i)); + if(err != OPUS_OK || i!=0)test_failed(); + cfgs++; + err=opus_decoder_ctl(dec, OPUS_GET_GAIN(null_int_ptr)); + if(err != OPUS_BAD_ARG)test_failed(); + cfgs++; + err=opus_decoder_ctl(dec, OPUS_SET_GAIN(-32769)); + if(err != OPUS_BAD_ARG)test_failed(); + cfgs++; + err=opus_decoder_ctl(dec, OPUS_SET_GAIN(32768)); + if(err != OPUS_BAD_ARG)test_failed(); + cfgs++; + err=opus_decoder_ctl(dec, OPUS_SET_GAIN(-15)); + if(err != OPUS_OK)test_failed(); + cfgs++; + VG_UNDEF(&i,sizeof(i)); + err=opus_decoder_ctl(dec, OPUS_GET_GAIN(&i)); + VG_CHECK(&i,sizeof(i)); + if(err != OPUS_OK || i!=-15)test_failed(); + cfgs++; + fprintf(stdout," OPUS_SET_GAIN ................................ OK.\n"); + fprintf(stdout," OPUS_GET_GAIN ................................ OK.\n"); + + /*Reset the decoder*/ + dec2=malloc(opus_decoder_get_size(2)); + memcpy(dec2,dec,opus_decoder_get_size(2)); + if(opus_decoder_ctl(dec, OPUS_RESET_STATE)!=OPUS_OK)test_failed(); + if(memcmp(dec2,dec,opus_decoder_get_size(2))==0)test_failed(); + free(dec2); + fprintf(stdout," OPUS_RESET_STATE ............................. OK.\n"); + cfgs++; + + VG_UNDEF(packet,sizeof(packet)); + packet[0]=0; + if(opus_decoder_get_nb_samples(dec,packet,1)!=480)test_failed(); + if(opus_packet_get_nb_samples(packet,1,48000)!=480)test_failed(); + if(opus_packet_get_nb_samples(packet,1,96000)!=960)test_failed(); + if(opus_packet_get_nb_samples(packet,1,32000)!=320)test_failed(); + if(opus_packet_get_nb_samples(packet,1,8000)!=80)test_failed(); + packet[0]=3; + if(opus_packet_get_nb_samples(packet,1,24000)!=OPUS_INVALID_PACKET)test_failed(); + packet[0]=(63<<2)|3; + packet[1]=63; + if(opus_packet_get_nb_samples(packet,0,24000)!=OPUS_BAD_ARG)test_failed(); + if(opus_packet_get_nb_samples(packet,2,48000)!=OPUS_INVALID_PACKET)test_failed(); + if(opus_decoder_get_nb_samples(dec,packet,2)!=OPUS_INVALID_PACKET)test_failed(); + fprintf(stdout," opus_{packet,decoder}_get_nb_samples() ....... OK.\n"); + cfgs+=9; + + if(OPUS_BAD_ARG!=opus_packet_get_nb_frames(packet,0))test_failed(); + for(i=0;i<256;i++) { + int l1res[4]={1,2,2,OPUS_INVALID_PACKET}; + packet[0]=i; + if(l1res[packet[0]&3]!=opus_packet_get_nb_frames(packet,1))test_failed(); + cfgs++; + for(j=0;j<256;j++) { + packet[1]=j; + if(((packet[0]&3)!=3?l1res[packet[0]&3]:packet[1]&63)!=opus_packet_get_nb_frames(packet,2))test_failed(); + cfgs++; + } + } + fprintf(stdout," opus_packet_get_nb_frames() .................. OK.\n"); + + for(i=0;i<256;i++) { + int bw; + packet[0]=i; + bw=packet[0]>>4; + bw=OPUS_BANDWIDTH_NARROWBAND+(((((bw&7)*9)&(63-(bw&8)))+2+12*((bw&8)!=0))>>4); + if(bw!=opus_packet_get_bandwidth(packet))test_failed(); + cfgs++; + } + fprintf(stdout," opus_packet_get_bandwidth() .................. OK.\n"); + + for(i=0;i<256;i++) { + int fp3s,rate; + packet[0]=i; + fp3s=packet[0]>>3; + fp3s=((((3-(fp3s&3))*13&119)+9)>>2)*((fp3s>13)*(3-((fp3s&3)==3))+1)*25; + for(rate=0;rate<5;rate++) { + if((opus_rates[rate]*3/fp3s)!=opus_packet_get_samples_per_frame(packet,opus_rates[rate]))test_failed(); + cfgs++; + } + } + fprintf(stdout," opus_packet_get_samples_per_frame() .......... OK.\n"); + + packet[0]=(63<<2)+3; + packet[1]=49; + for(j=2;j<51;j++)packet[j]=0; + VG_UNDEF(sbuf,sizeof(sbuf)); + if(opus_decode(dec, packet, 51, sbuf, 960, 0)!=OPUS_INVALID_PACKET)test_failed(); + cfgs++; + packet[0]=(63<<2); + packet[1]=packet[2]=0; + if(opus_decode(dec, packet, -1, sbuf, 960, 0)!=OPUS_BAD_ARG)test_failed(); + cfgs++; + if(opus_decode(dec, packet, 3, sbuf, 60, 0)!=OPUS_BUFFER_TOO_SMALL)test_failed(); + cfgs++; + if(opus_decode(dec, packet, 3, sbuf, 480, 0)!=OPUS_BUFFER_TOO_SMALL)test_failed(); + cfgs++; + if(opus_decode(dec, packet, 3, sbuf, 960, 0)!=960)test_failed(); + cfgs++; + fprintf(stdout," opus_decode() ................................ OK.\n"); +#ifndef DISABLE_FLOAT_API + VG_UNDEF(fbuf,sizeof(fbuf)); + if(opus_decode_float(dec, packet, 3, fbuf, 960, 0)!=960)test_failed(); + cfgs++; + fprintf(stdout," opus_decode_float() .......................... OK.\n"); +#endif + +#if 0 + /*These tests are disabled because the library crashes with null states*/ + if(opus_decoder_ctl(0,OPUS_RESET_STATE) !=OPUS_INVALID_STATE)test_failed(); + if(opus_decoder_init(0,48000,1) !=OPUS_INVALID_STATE)test_failed(); + if(opus_decode(0,packet,1,outbuf,2880,0) !=OPUS_INVALID_STATE)test_failed(); + if(opus_decode_float(0,packet,1,0,2880,0) !=OPUS_INVALID_STATE)test_failed(); + if(opus_decoder_get_nb_samples(0,packet,1) !=OPUS_INVALID_STATE)test_failed(); + if(opus_packet_get_nb_frames(NULL,1) !=OPUS_BAD_ARG)test_failed(); + if(opus_packet_get_bandwidth(NULL) !=OPUS_BAD_ARG)test_failed(); + if(opus_packet_get_samples_per_frame(NULL,48000)!=OPUS_BAD_ARG)test_failed(); +#endif + opus_decoder_destroy(dec); + cfgs++; + fprintf(stdout," All decoder interface tests passed\n"); + fprintf(stdout," (%6d API invocations)\n",cfgs); + return cfgs; +} + +opus_int32 test_msdec_api(void) +{ + opus_uint32 dec_final_range; + OpusMSDecoder *dec; + OpusDecoder *streamdec; + opus_int32 i,j,cfgs; + unsigned char packet[1276]; + unsigned char mapping[256]; +#ifndef DISABLE_FLOAT_API + float fbuf[960*2]; +#endif + short sbuf[960*2]; + int a,b,c,err; + + mapping[0]=0; + mapping[1]=1; + for(i=2;i<256;i++)VG_UNDEF(&mapping[i],sizeof(unsigned char)); + + cfgs=0; + /*First test invalid configurations which should fail*/ + fprintf(stdout,"\n Multistream decoder basic API tests\n"); + fprintf(stdout," ---------------------------------------------------\n"); + for(a=-1;a<4;a++) + { + for(b=-1;b<4;b++) + { + i=opus_multistream_decoder_get_size(a,b); + if(((a>0&&b<=a&&b>=0)&&(i<=2048||i>((1<<16)*a)))||((a<1||b>a||b<0)&&i!=0))test_failed(); + fprintf(stdout," opus_multistream_decoder_get_size(%2d,%2d)=%d %sOK.\n",a,b,i,i>0?"":"... "); + cfgs++; + } + } + + /*Test with unsupported sample rates*/ + for(c=1;c<3;c++) + { + for(i=-7;i<=96000;i++) + { + int fs; + if((i==8000||i==12000||i==16000||i==24000||i==48000)&&(c==1||c==2))continue; + switch(i) + { + case(-5):fs=-8000;break; + case(-6):fs=INT32_MAX;break; + case(-7):fs=INT32_MIN;break; + default:fs=i; + } + err = OPUS_OK; + VG_UNDEF(&err,sizeof(err)); + dec = opus_multistream_decoder_create(fs, c, 1, c-1, mapping, &err); + if(err!=OPUS_BAD_ARG || dec!=NULL)test_failed(); + cfgs++; + dec = opus_multistream_decoder_create(fs, c, 1, c-1, mapping, 0); + if(dec!=NULL)test_failed(); + cfgs++; + dec=malloc(opus_multistream_decoder_get_size(1,1)); + if(dec==NULL)test_failed(); + err = opus_multistream_decoder_init(dec,fs,c,1,c-1, mapping); + if(err!=OPUS_BAD_ARG)test_failed(); + cfgs++; + free(dec); + } + } + + for(c=0;c<2;c++) + { + int *ret_err; + ret_err = c?0:&err; + + mapping[0]=0; + mapping[1]=1; + for(i=2;i<256;i++)VG_UNDEF(&mapping[i],sizeof(unsigned char)); + + VG_UNDEF(ret_err,sizeof(*ret_err)); + dec = opus_multistream_decoder_create(48000, 2, 1, 0, mapping, ret_err); + if(ret_err){VG_CHECK(ret_err,sizeof(*ret_err));} + if((ret_err && *ret_err!=OPUS_BAD_ARG) || dec!=NULL)test_failed(); + cfgs++; + + VG_UNDEF(ret_err,sizeof(*ret_err)); + mapping[0]=mapping[1]=0; + dec = opus_multistream_decoder_create(48000, 2, 1, 0, mapping, ret_err); + if(ret_err){VG_CHECK(ret_err,sizeof(*ret_err));} + if((ret_err && *ret_err!=OPUS_OK) || dec==NULL)test_failed(); + cfgs++; + opus_multistream_decoder_destroy(dec); + cfgs++; + + VG_UNDEF(ret_err,sizeof(*ret_err)); + dec = opus_multistream_decoder_create(48000, 1, 4, 1, mapping, ret_err); + if(ret_err){VG_CHECK(ret_err,sizeof(*ret_err));} + if((ret_err && *ret_err!=OPUS_OK) || dec==NULL)test_failed(); + cfgs++; + + err = opus_multistream_decoder_init(dec,48000, 1, 0, 0, mapping); + if(err!=OPUS_BAD_ARG)test_failed(); + cfgs++; + + err = opus_multistream_decoder_init(dec,48000, 1, 1, -1, mapping); + if(err!=OPUS_BAD_ARG)test_failed(); + cfgs++; + + opus_multistream_decoder_destroy(dec); + cfgs++; + + VG_UNDEF(ret_err,sizeof(*ret_err)); + dec = opus_multistream_decoder_create(48000, 2, 1, 1, mapping, ret_err); + if(ret_err){VG_CHECK(ret_err,sizeof(*ret_err));} + if((ret_err && *ret_err!=OPUS_OK) || dec==NULL)test_failed(); + cfgs++; + opus_multistream_decoder_destroy(dec); + cfgs++; + + VG_UNDEF(ret_err,sizeof(*ret_err)); + dec = opus_multistream_decoder_create(48000, 255, 255, 1, mapping, ret_err); + if(ret_err){VG_CHECK(ret_err,sizeof(*ret_err));} + if((ret_err && *ret_err!=OPUS_BAD_ARG) || dec!=NULL)test_failed(); + cfgs++; + + VG_UNDEF(ret_err,sizeof(*ret_err)); + dec = opus_multistream_decoder_create(48000, -1, 1, 1, mapping, ret_err); + if(ret_err){VG_CHECK(ret_err,sizeof(*ret_err));} + if((ret_err && *ret_err!=OPUS_BAD_ARG) || dec!=NULL)test_failed(); + cfgs++; + + VG_UNDEF(ret_err,sizeof(*ret_err)); + dec = opus_multistream_decoder_create(48000, 0, 1, 1, mapping, ret_err); + if(ret_err){VG_CHECK(ret_err,sizeof(*ret_err));} + if((ret_err && *ret_err!=OPUS_BAD_ARG) || dec!=NULL)test_failed(); + cfgs++; + + VG_UNDEF(ret_err,sizeof(*ret_err)); + dec = opus_multistream_decoder_create(48000, 1, -1, 2, mapping, ret_err); + if(ret_err){VG_CHECK(ret_err,sizeof(*ret_err));} + if((ret_err && *ret_err!=OPUS_BAD_ARG) || dec!=NULL)test_failed(); + cfgs++; + + VG_UNDEF(ret_err,sizeof(*ret_err)); + dec = opus_multistream_decoder_create(48000, 1, -1, -1, mapping, ret_err); + if(ret_err){VG_CHECK(ret_err,sizeof(*ret_err));} + if((ret_err && *ret_err!=OPUS_BAD_ARG) || dec!=NULL)test_failed(); + cfgs++; + + VG_UNDEF(ret_err,sizeof(*ret_err)); + dec = opus_multistream_decoder_create(48000, 256, 255, 1, mapping, ret_err); + if(ret_err){VG_CHECK(ret_err,sizeof(*ret_err));} + if((ret_err && *ret_err!=OPUS_BAD_ARG) || dec!=NULL)test_failed(); + cfgs++; + + VG_UNDEF(ret_err,sizeof(*ret_err)); + dec = opus_multistream_decoder_create(48000, 256, 255, 0, mapping, ret_err); + if(ret_err){VG_CHECK(ret_err,sizeof(*ret_err));} + if((ret_err && *ret_err!=OPUS_BAD_ARG) || dec!=NULL)test_failed(); + cfgs++; + + VG_UNDEF(ret_err,sizeof(*ret_err)); + mapping[0]=255; + mapping[1]=1; + mapping[2]=2; + dec = opus_multistream_decoder_create(48000, 3, 2, 0, mapping, ret_err); + if(ret_err){VG_CHECK(ret_err,sizeof(*ret_err));} + if((ret_err && *ret_err!=OPUS_BAD_ARG) || dec!=NULL)test_failed(); + cfgs++; + + VG_UNDEF(ret_err,sizeof(*ret_err)); + mapping[0]=0; + mapping[1]=0; + mapping[2]=0; + dec = opus_multistream_decoder_create(48000, 3, 2, 1, mapping, ret_err); + if(ret_err){VG_CHECK(ret_err,sizeof(*ret_err));} + if((ret_err && *ret_err!=OPUS_OK) || dec==NULL)test_failed(); + cfgs++; + opus_multistream_decoder_destroy(dec); + cfgs++; + + VG_UNDEF(ret_err,sizeof(*ret_err)); + mapping[0]=0; + mapping[1]=255; + mapping[2]=1; + mapping[3]=2; + mapping[4]=3; + dec = opus_multistream_decoder_create(48001, 5, 4, 1, mapping, ret_err); + if(ret_err){VG_CHECK(ret_err,sizeof(*ret_err));} + if((ret_err && *ret_err!=OPUS_BAD_ARG) || dec!=NULL)test_failed(); + cfgs++; + } + + VG_UNDEF(&err,sizeof(err)); + mapping[0]=0; + mapping[1]=255; + mapping[2]=1; + mapping[3]=2; + dec = opus_multistream_decoder_create(48000, 4, 2, 1, mapping, &err); + VG_CHECK(&err,sizeof(err)); + if(err!=OPUS_OK || dec==NULL)test_failed(); + cfgs++; + + fprintf(stdout," opus_multistream_decoder_create() ............ OK.\n"); + fprintf(stdout," opus_multistream_decoder_init() .............. OK.\n"); + + VG_UNDEF(&dec_final_range,sizeof(dec_final_range)); + err=opus_multistream_decoder_ctl(dec, OPUS_GET_FINAL_RANGE(&dec_final_range)); + if(err!=OPUS_OK)test_failed(); + VG_CHECK(&dec_final_range,sizeof(dec_final_range)); + fprintf(stdout," OPUS_GET_FINAL_RANGE ......................... OK.\n"); + cfgs++; + + streamdec=0; + VG_UNDEF(&streamdec,sizeof(streamdec)); + err=opus_multistream_decoder_ctl(dec, OPUS_MULTISTREAM_GET_DECODER_STATE(-1,&streamdec)); + if(err!=OPUS_BAD_ARG)test_failed(); + cfgs++; + err=opus_multistream_decoder_ctl(dec, OPUS_MULTISTREAM_GET_DECODER_STATE(1,&streamdec)); + if(err!=OPUS_OK||streamdec==NULL)test_failed(); + VG_CHECK(streamdec,opus_decoder_get_size(1)); + cfgs++; + err=opus_multistream_decoder_ctl(dec, OPUS_MULTISTREAM_GET_DECODER_STATE(2,&streamdec)); + if(err!=OPUS_BAD_ARG)test_failed(); + cfgs++; + err=opus_multistream_decoder_ctl(dec, OPUS_MULTISTREAM_GET_DECODER_STATE(0,&streamdec)); + if(err!=OPUS_OK||streamdec==NULL)test_failed(); + VG_CHECK(streamdec,opus_decoder_get_size(1)); + fprintf(stdout," OPUS_MULTISTREAM_GET_DECODER_STATE ........... OK.\n"); + cfgs++; + + for(j=0;j<2;j++) + { + OpusDecoder *od; + err=opus_multistream_decoder_ctl(dec,OPUS_MULTISTREAM_GET_DECODER_STATE(j,&od)); + if(err != OPUS_OK)test_failed(); + VG_UNDEF(&i,sizeof(i)); + err=opus_decoder_ctl(od, OPUS_GET_GAIN(&i)); + VG_CHECK(&i,sizeof(i)); + if(err != OPUS_OK || i!=0)test_failed(); + cfgs++; + } + err=opus_multistream_decoder_ctl(dec,OPUS_SET_GAIN(15)); + if(err!=OPUS_OK)test_failed(); + fprintf(stdout," OPUS_SET_GAIN ................................ OK.\n"); + for(j=0;j<2;j++) + { + OpusDecoder *od; + err=opus_multistream_decoder_ctl(dec,OPUS_MULTISTREAM_GET_DECODER_STATE(j,&od)); + if(err != OPUS_OK)test_failed(); + VG_UNDEF(&i,sizeof(i)); + err=opus_decoder_ctl(od, OPUS_GET_GAIN(&i)); + VG_CHECK(&i,sizeof(i)); + if(err != OPUS_OK || i!=15)test_failed(); + cfgs++; + } + fprintf(stdout," OPUS_GET_GAIN ................................ OK.\n"); + + VG_UNDEF(&i,sizeof(i)); + err=opus_multistream_decoder_ctl(dec, OPUS_GET_BANDWIDTH(&i)); + if(err != OPUS_OK || i!=0)test_failed(); + fprintf(stdout," OPUS_GET_BANDWIDTH ........................... OK.\n"); + cfgs++; + + err=opus_multistream_decoder_ctl(dec,OPUS_UNIMPLEMENTED); + if(err!=OPUS_UNIMPLEMENTED)test_failed(); + fprintf(stdout," OPUS_UNIMPLEMENTED ........................... OK.\n"); + cfgs++; + +#if 0 + /*Currently unimplemented for multistream*/ + /*GET_PITCH has different execution paths depending on the previously decoded frame.*/ + err=opus_multistream_decoder_ctl(dec, OPUS_GET_PITCH(null_int_ptr)); + if(err!=OPUS_BAD_ARG)test_failed(); + cfgs++; + VG_UNDEF(&i,sizeof(i)); + err=opus_multistream_decoder_ctl(dec, OPUS_GET_PITCH(&i)); + if(err != OPUS_OK || i>0 || i<-1)test_failed(); + cfgs++; + VG_UNDEF(packet,sizeof(packet)); + packet[0]=63<<2;packet[1]=packet[2]=0; + if(opus_multistream_decode(dec, packet, 3, sbuf, 960, 0)!=960)test_failed(); + cfgs++; + VG_UNDEF(&i,sizeof(i)); + err=opus_multistream_decoder_ctl(dec, OPUS_GET_PITCH(&i)); + if(err != OPUS_OK || i>0 || i<-1)test_failed(); + cfgs++; + packet[0]=1; + if(opus_multistream_decode(dec, packet, 1, sbuf, 960, 0)!=960)test_failed(); + cfgs++; + VG_UNDEF(&i,sizeof(i)); + err=opus_multistream_decoder_ctl(dec, OPUS_GET_PITCH(&i)); + if(err != OPUS_OK || i>0 || i<-1)test_failed(); + cfgs++; + fprintf(stdout," OPUS_GET_PITCH ............................... OK.\n"); +#endif + + /*Reset the decoder*/ + if(opus_multistream_decoder_ctl(dec, OPUS_RESET_STATE)!=OPUS_OK)test_failed(); + fprintf(stdout," OPUS_RESET_STATE ............................. OK.\n"); + cfgs++; + + opus_multistream_decoder_destroy(dec); + cfgs++; + VG_UNDEF(&err,sizeof(err)); + dec = opus_multistream_decoder_create(48000, 2, 1, 1, mapping, &err); + if(err!=OPUS_OK || dec==NULL)test_failed(); + cfgs++; + + packet[0]=(63<<2)+3; + packet[1]=49; + for(j=2;j<51;j++)packet[j]=0; + VG_UNDEF(sbuf,sizeof(sbuf)); + if(opus_multistream_decode(dec, packet, 51, sbuf, 960, 0)!=OPUS_INVALID_PACKET)test_failed(); + cfgs++; + packet[0]=(63<<2); + packet[1]=packet[2]=0; + if(opus_multistream_decode(dec, packet, -1, sbuf, 960, 0)!=OPUS_BAD_ARG){printf("%d\n",opus_multistream_decode(dec, packet, -1, sbuf, 960, 0));test_failed();} + cfgs++; + if(opus_multistream_decode(dec, packet, 3, sbuf, -960, 0)!=OPUS_BAD_ARG)test_failed(); + cfgs++; + if(opus_multistream_decode(dec, packet, 3, sbuf, 60, 0)!=OPUS_BUFFER_TOO_SMALL)test_failed(); + cfgs++; + if(opus_multistream_decode(dec, packet, 3, sbuf, 480, 0)!=OPUS_BUFFER_TOO_SMALL)test_failed(); + cfgs++; + if(opus_multistream_decode(dec, packet, 3, sbuf, 960, 0)!=960)test_failed(); + cfgs++; + fprintf(stdout," opus_multistream_decode() .................... OK.\n"); +#ifndef DISABLE_FLOAT_API + VG_UNDEF(fbuf,sizeof(fbuf)); + if(opus_multistream_decode_float(dec, packet, 3, fbuf, 960, 0)!=960)test_failed(); + cfgs++; + fprintf(stdout," opus_multistream_decode_float() .............. OK.\n"); +#endif + +#if 0 + /*These tests are disabled because the library crashes with null states*/ + if(opus_multistream_decoder_ctl(0,OPUS_RESET_STATE) !=OPUS_INVALID_STATE)test_failed(); + if(opus_multistream_decoder_init(0,48000,1) !=OPUS_INVALID_STATE)test_failed(); + if(opus_multistream_decode(0,packet,1,outbuf,2880,0) !=OPUS_INVALID_STATE)test_failed(); + if(opus_multistream_decode_float(0,packet,1,0,2880,0) !=OPUS_INVALID_STATE)test_failed(); + if(opus_multistream_decoder_get_nb_samples(0,packet,1) !=OPUS_INVALID_STATE)test_failed(); +#endif + opus_multistream_decoder_destroy(dec); + cfgs++; + fprintf(stdout," All multistream decoder interface tests passed\n"); + fprintf(stdout," (%6d API invocations)\n",cfgs); + return cfgs; +} + +#ifdef VALGRIND +#define UNDEFINE_FOR_PARSE toc=-1; \ + frames[0]=(unsigned char *)0; \ + frames[1]=(unsigned char *)0; \ + payload_offset=-1; \ + VG_UNDEF(&toc,sizeof(toc)); \ + VG_UNDEF(frames,sizeof(frames));\ + VG_UNDEF(&payload_offset,sizeof(payload_offset)); +#else +#define UNDEFINE_FOR_PARSE toc=-1; \ + frames[0]=(unsigned char *)0; \ + frames[1]=(unsigned char *)0; \ + payload_offset=-1; +#endif + +/* This test exercises the heck out of the libopus parser. + It is much larger than the parser itself in part because + it tries to hit a lot of corner cases that could never + fail with the libopus code, but might be problematic for + other implementations. */ +opus_int32 test_parse(void) +{ + opus_int32 i,j,jj,sz; + unsigned char packet[1276]; + opus_int32 cfgs,cfgs_total; + unsigned char toc; + const unsigned char *frames[48]; + short size[48]; + int payload_offset, ret; + fprintf(stdout,"\n Packet header parsing tests\n"); + fprintf(stdout," ---------------------------------------------------\n"); + memset(packet,0,sizeof(char)*1276); + packet[0]=63<<2; + if(opus_packet_parse(packet,1,&toc,frames,0,&payload_offset)!=OPUS_BAD_ARG)test_failed(); + cfgs_total=cfgs=1; + /*code 0*/ + for(i=0;i<64;i++) + { + packet[0]=i<<2; + UNDEFINE_FOR_PARSE + ret=opus_packet_parse(packet,4,&toc,frames,size,&payload_offset); + cfgs++; + if(ret!=1)test_failed(); + if(size[0]!=3)test_failed(); + if(frames[0]!=packet+1)test_failed(); + } + fprintf(stdout," code 0 (%2d cases) ............................ OK.\n",cfgs); + cfgs_total+=cfgs;cfgs=0; + + /*code 1, two frames of the same size*/ + for(i=0;i<64;i++) + { + packet[0]=(i<<2)+1; + for(jj=0;jj<=1275*2+3;jj++) + { + UNDEFINE_FOR_PARSE + ret=opus_packet_parse(packet,jj,&toc,frames,size,&payload_offset); + cfgs++; + if((jj&1)==1 && jj<=2551) + { + /* Must pass if payload length even (packet length odd) and + size<=2551, must fail otherwise. */ + if(ret!=2)test_failed(); + if(size[0]!=size[1] || size[0]!=((jj-1)>>1))test_failed(); + if(frames[0]!=packet+1)test_failed(); + if(frames[1]!=frames[0]+size[0])test_failed(); + if((toc>>2)!=i)test_failed(); + } else if(ret!=OPUS_INVALID_PACKET)test_failed(); + } + } + fprintf(stdout," code 1 (%6d cases) ........................ OK.\n",cfgs); + cfgs_total+=cfgs;cfgs=0; + + for(i=0;i<64;i++) + { + /*code 2, length code overflow*/ + packet[0]=(i<<2)+2; + UNDEFINE_FOR_PARSE + ret=opus_packet_parse(packet,1,&toc,frames,size,&payload_offset); + cfgs++; + if(ret!=OPUS_INVALID_PACKET)test_failed(); + packet[1]=252; + UNDEFINE_FOR_PARSE + ret=opus_packet_parse(packet,2,&toc,frames,size,&payload_offset); + cfgs++; + if(ret!=OPUS_INVALID_PACKET)test_failed(); + for(j=0;j<1275;j++) + { + if(j<252)packet[1]=j; + else{packet[1]=252+(j&3);packet[2]=(j-252)>>2;} + /*Code 2, one too short*/ + UNDEFINE_FOR_PARSE + ret=opus_packet_parse(packet,j+(j<252?2:3)-1,&toc,frames,size,&payload_offset); + cfgs++; + if(ret!=OPUS_INVALID_PACKET)test_failed(); + /*Code 2, one too long*/ + UNDEFINE_FOR_PARSE + ret=opus_packet_parse(packet,j+(j<252?2:3)+1276,&toc,frames,size,&payload_offset); + cfgs++; + if(ret!=OPUS_INVALID_PACKET)test_failed(); + /*Code 2, second zero*/ + UNDEFINE_FOR_PARSE + ret=opus_packet_parse(packet,j+(j<252?2:3),&toc,frames,size,&payload_offset); + cfgs++; + if(ret!=2)test_failed(); + if(size[0]!=j||size[1]!=0)test_failed(); + if(frames[1]!=frames[0]+size[0])test_failed(); + if((toc>>2)!=i)test_failed(); + /*Code 2, normal*/ + UNDEFINE_FOR_PARSE + ret=opus_packet_parse(packet,(j<<1)+4,&toc,frames,size,&payload_offset); + cfgs++; + if(ret!=2)test_failed(); + if(size[0]!=j||size[1]!=(j<<1)+3-j-(j<252?1:2))test_failed(); + if(frames[1]!=frames[0]+size[0])test_failed(); + if((toc>>2)!=i)test_failed(); + } + } + fprintf(stdout," code 2 (%6d cases) ........................ OK.\n",cfgs); + cfgs_total+=cfgs;cfgs=0; + + for(i=0;i<64;i++) + { + packet[0]=(i<<2)+3; + /*code 3, length code overflow*/ + UNDEFINE_FOR_PARSE + ret=opus_packet_parse(packet,1,&toc,frames,size,&payload_offset); + cfgs++; + if(ret!=OPUS_INVALID_PACKET)test_failed(); + } + fprintf(stdout," code 3 m-truncation (%2d cases) ............... OK.\n",cfgs); + cfgs_total+=cfgs;cfgs=0; + + for(i=0;i<64;i++) + { + /*code 3, m is zero or 49-63*/ + packet[0]=(i<<2)+3; + for(jj=49;jj<=64;jj++) + { + packet[1]=0+(jj&63); /*CBR, no padding*/ + UNDEFINE_FOR_PARSE + ret=opus_packet_parse(packet,1275,&toc,frames,size,&payload_offset); + cfgs++; + if(ret!=OPUS_INVALID_PACKET)test_failed(); + packet[1]=128+(jj&63); /*VBR, no padding*/ + UNDEFINE_FOR_PARSE + ret=opus_packet_parse(packet,1275,&toc,frames,size,&payload_offset); + cfgs++; + if(ret!=OPUS_INVALID_PACKET)test_failed(); + packet[1]=64+(jj&63); /*CBR, padding*/ + UNDEFINE_FOR_PARSE + ret=opus_packet_parse(packet,1275,&toc,frames,size,&payload_offset); + cfgs++; + if(ret!=OPUS_INVALID_PACKET)test_failed(); + packet[1]=128+64+(jj&63); /*VBR, padding*/ + UNDEFINE_FOR_PARSE + ret=opus_packet_parse(packet,1275,&toc,frames,size,&payload_offset); + cfgs++; + if(ret!=OPUS_INVALID_PACKET)test_failed(); + } + } + fprintf(stdout," code 3 m=0,49-64 (%2d cases) ................ OK.\n",cfgs); + cfgs_total+=cfgs;cfgs=0; + + for(i=0;i<64;i++) + { + packet[0]=(i<<2)+3; + /*code 3, m is one, cbr*/ + packet[1]=1; + for(j=0;j<1276;j++) + { + UNDEFINE_FOR_PARSE + ret=opus_packet_parse(packet,j+2,&toc,frames,size,&payload_offset); + cfgs++; + if(ret!=1)test_failed(); + if(size[0]!=j)test_failed(); + if((toc>>2)!=i)test_failed(); + } + UNDEFINE_FOR_PARSE + ret=opus_packet_parse(packet,1276+2,&toc,frames,size,&payload_offset); + cfgs++; + if(ret!=OPUS_INVALID_PACKET)test_failed(); + } + fprintf(stdout," code 3 m=1 CBR (%2d cases) ................. OK.\n",cfgs); + cfgs_total+=cfgs;cfgs=0; + + for(i=0;i<64;i++) + { + int frame_samp; + /*code 3, m>1 CBR*/ + packet[0]=(i<<2)+3; + frame_samp=opus_packet_get_samples_per_frame(packet,48000); + for(j=2;j<49;j++) + { + packet[1]=j; + for(sz=2;sz<((j+2)*1275);sz++) + { + UNDEFINE_FOR_PARSE + ret=opus_packet_parse(packet,sz,&toc,frames,size,&payload_offset); + cfgs++; + /*Must be <=120ms, must be evenly divisible, can't have frames>1275 bytes*/ + if(frame_samp*j<=5760 && (sz-2)%j==0 && (sz-2)/j<1276) + { + if(ret!=j)test_failed(); + for(jj=1;jj>2)!=i)test_failed(); + } else if(ret!=OPUS_INVALID_PACKET)test_failed(); + } + } + /*Super jumbo packets*/ + packet[1]=5760/frame_samp; + UNDEFINE_FOR_PARSE + ret=opus_packet_parse(packet,1275*packet[1]+2,&toc,frames,size,&payload_offset); + cfgs++; + if(ret!=packet[1])test_failed(); + for(jj=0;jj>2)!=i)test_failed(); + } + UNDEFINE_FOR_PARSE + ret=opus_packet_parse(packet,2+1276,&toc,frames,size,&payload_offset); + cfgs++; + if(ret!=OPUS_INVALID_PACKET)test_failed(); + for(j=2;j<49;j++) + { + packet[1]=128+j; + /*Length code overflow*/ + UNDEFINE_FOR_PARSE + ret=opus_packet_parse(packet,2+j-2,&toc,frames,size,&payload_offset); + cfgs++; + if(ret!=OPUS_INVALID_PACKET)test_failed(); + packet[2]=252; + packet[3]=0; + for(jj=4;jj<2+j;jj++)packet[jj]=0; + UNDEFINE_FOR_PARSE + ret=opus_packet_parse(packet,2+j,&toc,frames,size,&payload_offset); + cfgs++; + if(ret!=OPUS_INVALID_PACKET)test_failed(); + /*One byte too short*/ + for(jj=2;jj<2+j;jj++)packet[jj]=0; + UNDEFINE_FOR_PARSE + ret=opus_packet_parse(packet,2+j-2,&toc,frames,size,&payload_offset); + cfgs++; + if(ret!=OPUS_INVALID_PACKET)test_failed(); + /*One byte too short thanks to length coding*/ + packet[2]=252; + packet[3]=0; + for(jj=4;jj<2+j;jj++)packet[jj]=0; + UNDEFINE_FOR_PARSE + ret=opus_packet_parse(packet,2+j+252-1,&toc,frames,size,&payload_offset); + cfgs++; + if(ret!=OPUS_INVALID_PACKET)test_failed(); + /*Most expensive way of coding zeros*/ + for(jj=2;jj<2+j;jj++)packet[jj]=0; + UNDEFINE_FOR_PARSE + ret=opus_packet_parse(packet,2+j-1,&toc,frames,size,&payload_offset); + cfgs++; + if(frame_samp*j<=5760){ + if(ret!=j)test_failed(); + for(jj=0;jj>2)!=i)test_failed(); + } else if(ret!=OPUS_INVALID_PACKET)test_failed(); + /*Quasi-CBR use of mode 3*/ + for(sz=0;sz<8;sz++) + { + const int tsz[8]={50,201,403,700,1472,5110,20400,61298}; + int pos=0; + int as=(tsz[sz]+i-j-2)/j; + for(jj=0;jj>2;pos+=2;} + } + UNDEFINE_FOR_PARSE + ret=opus_packet_parse(packet,tsz[sz]+i,&toc,frames,size,&payload_offset); + cfgs++; + if(frame_samp*j<=5760 && as<1276 && (tsz[sz]+i-2-pos-as*(j-1))<1276){ + if(ret!=j)test_failed(); + for(jj=0;jj>2)!=i)test_failed(); + } else if(ret!=OPUS_INVALID_PACKET)test_failed(); + } + } + } + fprintf(stdout," code 3 m=1-48 VBR (%2d cases) ............. OK.\n",cfgs); + cfgs_total+=cfgs;cfgs=0; + + for(i=0;i<64;i++) + { + packet[0]=(i<<2)+3; + /*Padding*/ + packet[1]=128+1+64; + /*Overflow the length coding*/ + for(jj=2;jj<127;jj++)packet[jj]=255; + UNDEFINE_FOR_PARSE + ret=opus_packet_parse(packet,127,&toc,frames,size,&payload_offset); + cfgs++; + if(ret!=OPUS_INVALID_PACKET)test_failed(); + + for(sz=0;sz<4;sz++) + { + const int tsz[4]={0,72,512,1275}; + for(jj=sz;jj<65025;jj+=11) + { + int pos; + for(pos=0;pos>2)!=i)test_failed(); + } else if (ret!=OPUS_INVALID_PACKET)test_failed(); + } + } + } + fprintf(stdout," code 3 padding (%2d cases) ............... OK.\n",cfgs); + cfgs_total+=cfgs; + fprintf(stdout," opus_packet_parse ............................ OK.\n"); + fprintf(stdout," All packet parsing tests passed\n"); + fprintf(stdout," (%d API invocations)\n",cfgs_total); + return cfgs_total; +} + +/* This is a helper macro for the encoder tests. + The encoder api tests all have a pattern of set-must-fail, set-must-fail, + set-must-pass, get-and-compare, set-must-pass, get-and-compare. */ +#define CHECK_SETGET(setcall,getcall,badv,badv2,goodv,goodv2,sok,gok) \ + i=(badv);\ + if(opus_encoder_ctl(enc,setcall)==OPUS_OK)test_failed();\ + i=(badv2);\ + if(opus_encoder_ctl(enc,setcall)==OPUS_OK)test_failed();\ + j=i=(goodv);\ + if(opus_encoder_ctl(enc,setcall)!=OPUS_OK)test_failed();\ + i=-12345;\ + VG_UNDEF(&i,sizeof(i)); \ + err=opus_encoder_ctl(enc,getcall);\ + if(err!=OPUS_OK || i!=j)test_failed();\ + j=i=(goodv2);\ + if(opus_encoder_ctl(enc,setcall)!=OPUS_OK)test_failed();\ + fprintf(stdout,sok);\ + i=-12345;\ + VG_UNDEF(&i,sizeof(i)); \ + err=opus_encoder_ctl(enc,getcall);\ + if(err!=OPUS_OK || i!=j)test_failed();\ + fprintf(stdout,gok);\ + cfgs+=6; + +opus_int32 test_enc_api(void) +{ + opus_uint32 enc_final_range; + OpusEncoder *enc; + opus_int32 i,j; + unsigned char packet[1276]; +#ifndef DISABLE_FLOAT_API + float fbuf[960*2]; +#endif + short sbuf[960*2]; + int c,err,cfgs; + + cfgs=0; + /*First test invalid configurations which should fail*/ + fprintf(stdout,"\n Encoder basic API tests\n"); + fprintf(stdout," ---------------------------------------------------\n"); + for(c=0;c<4;c++) + { + i=opus_encoder_get_size(c); + if(((c==1||c==2)&&(i<=2048||i>1<<17))||((c!=1&&c!=2)&&i!=0))test_failed(); + fprintf(stdout," opus_encoder_get_size(%d)=%d ...............%s OK.\n",c,i,i>0?"":"...."); + cfgs++; + } + + /*Test with unsupported sample rates, channel counts*/ + for(c=0;c<4;c++) + { + for(i=-7;i<=96000;i++) + { + int fs; + if((i==8000||i==12000||i==16000||i==24000||i==48000)&&(c==1||c==2))continue; + switch(i) + { + case(-5):fs=-8000;break; + case(-6):fs=INT32_MAX;break; + case(-7):fs=INT32_MIN;break; + default:fs=i; + } + err = OPUS_OK; + VG_UNDEF(&err,sizeof(err)); + enc = opus_encoder_create(fs, c, OPUS_APPLICATION_VOIP, &err); + if(err!=OPUS_BAD_ARG || enc!=NULL)test_failed(); + cfgs++; + enc = opus_encoder_create(fs, c, OPUS_APPLICATION_VOIP, 0); + if(enc!=NULL)test_failed(); + cfgs++; + opus_encoder_destroy(enc); + enc=malloc(opus_encoder_get_size(2)); + if(enc==NULL)test_failed(); + err = opus_encoder_init(enc, fs, c, OPUS_APPLICATION_VOIP); + if(err!=OPUS_BAD_ARG)test_failed(); + cfgs++; + free(enc); + } + } + + enc = opus_encoder_create(48000, 2, OPUS_AUTO, NULL); + if(enc!=NULL)test_failed(); + cfgs++; + + VG_UNDEF(&err,sizeof(err)); + enc = opus_encoder_create(48000, 2, OPUS_AUTO, &err); + if(err!=OPUS_BAD_ARG || enc!=NULL)test_failed(); + cfgs++; + + VG_UNDEF(&err,sizeof(err)); + enc = opus_encoder_create(48000, 2, OPUS_APPLICATION_VOIP, NULL); + if(enc==NULL)test_failed(); + opus_encoder_destroy(enc); + cfgs++; + + VG_UNDEF(&err,sizeof(err)); + enc = opus_encoder_create(48000, 2, OPUS_APPLICATION_RESTRICTED_LOWDELAY, &err); + if(err!=OPUS_OK || enc==NULL)test_failed(); + cfgs++; + err=opus_encoder_ctl(enc,OPUS_GET_LOOKAHEAD(&i)); + if(err!=OPUS_OK || i<0 || i>32766)test_failed(); + cfgs++; + opus_encoder_destroy(enc); + + VG_UNDEF(&err,sizeof(err)); + enc = opus_encoder_create(48000, 2, OPUS_APPLICATION_AUDIO, &err); + if(err!=OPUS_OK || enc==NULL)test_failed(); + cfgs++; + err=opus_encoder_ctl(enc,OPUS_GET_LOOKAHEAD(&i)); + if(err!=OPUS_OK || i<0 || i>32766)test_failed(); + opus_encoder_destroy(enc); + cfgs++; + + VG_UNDEF(&err,sizeof(err)); + enc = opus_encoder_create(48000, 2, OPUS_APPLICATION_VOIP, &err); + if(err!=OPUS_OK || enc==NULL)test_failed(); + cfgs++; + + fprintf(stdout," opus_encoder_create() ........................ OK.\n"); + fprintf(stdout," opus_encoder_init() .......................... OK.\n"); + + i=-12345; + VG_UNDEF(&i,sizeof(i)); + err=opus_encoder_ctl(enc,OPUS_GET_LOOKAHEAD(&i)); + if(err!=OPUS_OK || i<0 || i>32766)test_failed(); + cfgs++; + err=opus_encoder_ctl(enc,OPUS_GET_LOOKAHEAD(null_int_ptr)); + if(err!=OPUS_BAD_ARG)test_failed(); + cfgs++; + fprintf(stdout," OPUS_GET_LOOKAHEAD ........................... OK.\n"); + + err=opus_encoder_ctl(enc,OPUS_GET_SAMPLE_RATE(&i)); + if(err!=OPUS_OK || i!=48000)test_failed(); + cfgs++; + err=opus_encoder_ctl(enc,OPUS_GET_SAMPLE_RATE(null_int_ptr)); + if(err!=OPUS_BAD_ARG)test_failed(); + cfgs++; + fprintf(stdout," OPUS_GET_SAMPLE_RATE ......................... OK.\n"); + + if(opus_encoder_ctl(enc,OPUS_UNIMPLEMENTED)!=OPUS_UNIMPLEMENTED)test_failed(); + fprintf(stdout," OPUS_UNIMPLEMENTED ........................... OK.\n"); + cfgs++; + + err=opus_encoder_ctl(enc,OPUS_GET_APPLICATION(null_int_ptr)); + if(err!=OPUS_BAD_ARG)test_failed(); + cfgs++; + CHECK_SETGET(OPUS_SET_APPLICATION(i),OPUS_GET_APPLICATION(&i),-1,OPUS_AUTO, + OPUS_APPLICATION_AUDIO,OPUS_APPLICATION_RESTRICTED_LOWDELAY, + " OPUS_SET_APPLICATION ......................... OK.\n", + " OPUS_GET_APPLICATION ......................... OK.\n") + + err=opus_encoder_ctl(enc,OPUS_GET_BITRATE(null_int_ptr)); + if(err!=OPUS_BAD_ARG)test_failed(); + cfgs++; + if(opus_encoder_ctl(enc,OPUS_SET_BITRATE(1073741832))!=OPUS_OK)test_failed(); + cfgs++; + VG_UNDEF(&i,sizeof(i)); + if(opus_encoder_ctl(enc,OPUS_GET_BITRATE(&i))!=OPUS_OK)test_failed(); + if(i>700000||i<256000)test_failed(); + cfgs++; + CHECK_SETGET(OPUS_SET_BITRATE(i),OPUS_GET_BITRATE(&i),-12345,0, + 500,256000, + " OPUS_SET_BITRATE ............................. OK.\n", + " OPUS_GET_BITRATE ............................. OK.\n") + + err=opus_encoder_ctl(enc,OPUS_GET_FORCE_CHANNELS(null_int_ptr)); + if(err!=OPUS_BAD_ARG)test_failed(); + cfgs++; + CHECK_SETGET(OPUS_SET_FORCE_CHANNELS(i),OPUS_GET_FORCE_CHANNELS(&i),-1,3, + 1,OPUS_AUTO, + " OPUS_SET_FORCE_CHANNELS ...................... OK.\n", + " OPUS_GET_FORCE_CHANNELS ...................... OK.\n") + + i=-2; + if(opus_encoder_ctl(enc,OPUS_SET_BANDWIDTH(i))==OPUS_OK)test_failed(); + cfgs++; + i=OPUS_BANDWIDTH_FULLBAND+1; + if(opus_encoder_ctl(enc,OPUS_SET_BANDWIDTH(i))==OPUS_OK)test_failed(); + cfgs++; + i=OPUS_BANDWIDTH_NARROWBAND; + if(opus_encoder_ctl(enc,OPUS_SET_BANDWIDTH(i))!=OPUS_OK)test_failed(); + cfgs++; + i=OPUS_BANDWIDTH_FULLBAND; + if(opus_encoder_ctl(enc,OPUS_SET_BANDWIDTH(i))!=OPUS_OK)test_failed(); + cfgs++; + i=OPUS_BANDWIDTH_WIDEBAND; + if(opus_encoder_ctl(enc,OPUS_SET_BANDWIDTH(i))!=OPUS_OK)test_failed(); + cfgs++; + i=OPUS_BANDWIDTH_MEDIUMBAND; + if(opus_encoder_ctl(enc,OPUS_SET_BANDWIDTH(i))!=OPUS_OK)test_failed(); + cfgs++; + fprintf(stdout," OPUS_SET_BANDWIDTH ........................... OK.\n"); + /*We don't test if the bandwidth has actually changed. + because the change may be delayed until the encoder is advanced.*/ + i=-12345; + VG_UNDEF(&i,sizeof(i)); + err=opus_encoder_ctl(enc,OPUS_GET_BANDWIDTH(&i)); + if(err!=OPUS_OK || (i!=OPUS_BANDWIDTH_NARROWBAND&& + i!=OPUS_BANDWIDTH_MEDIUMBAND&&i!=OPUS_BANDWIDTH_WIDEBAND&& + i!=OPUS_BANDWIDTH_FULLBAND&&i!=OPUS_AUTO))test_failed(); + cfgs++; + if(opus_encoder_ctl(enc,OPUS_SET_BANDWIDTH(OPUS_AUTO))!=OPUS_OK)test_failed(); + cfgs++; + err=opus_encoder_ctl(enc,OPUS_GET_BANDWIDTH(null_int_ptr)); + if(err!=OPUS_BAD_ARG)test_failed(); + cfgs++; + fprintf(stdout," OPUS_GET_BANDWIDTH ........................... OK.\n"); + + i=-2; + if(opus_encoder_ctl(enc,OPUS_SET_MAX_BANDWIDTH(i))==OPUS_OK)test_failed(); + cfgs++; + i=OPUS_BANDWIDTH_FULLBAND+1; + if(opus_encoder_ctl(enc,OPUS_SET_MAX_BANDWIDTH(i))==OPUS_OK)test_failed(); + cfgs++; + i=OPUS_BANDWIDTH_NARROWBAND; + if(opus_encoder_ctl(enc,OPUS_SET_MAX_BANDWIDTH(i))!=OPUS_OK)test_failed(); + cfgs++; + i=OPUS_BANDWIDTH_FULLBAND; + if(opus_encoder_ctl(enc,OPUS_SET_MAX_BANDWIDTH(i))!=OPUS_OK)test_failed(); + cfgs++; + i=OPUS_BANDWIDTH_WIDEBAND; + if(opus_encoder_ctl(enc,OPUS_SET_MAX_BANDWIDTH(i))!=OPUS_OK)test_failed(); + cfgs++; + i=OPUS_BANDWIDTH_MEDIUMBAND; + if(opus_encoder_ctl(enc,OPUS_SET_MAX_BANDWIDTH(i))!=OPUS_OK)test_failed(); + cfgs++; + fprintf(stdout," OPUS_SET_MAX_BANDWIDTH ....................... OK.\n"); + /*We don't test if the bandwidth has actually changed. + because the change may be delayed until the encoder is advanced.*/ + i=-12345; + VG_UNDEF(&i,sizeof(i)); + err=opus_encoder_ctl(enc,OPUS_GET_MAX_BANDWIDTH(&i)); + if(err!=OPUS_OK || (i!=OPUS_BANDWIDTH_NARROWBAND&& + i!=OPUS_BANDWIDTH_MEDIUMBAND&&i!=OPUS_BANDWIDTH_WIDEBAND&& + i!=OPUS_BANDWIDTH_FULLBAND))test_failed(); + cfgs++; + err=opus_encoder_ctl(enc,OPUS_GET_MAX_BANDWIDTH(null_int_ptr)); + if(err!=OPUS_BAD_ARG)test_failed(); + cfgs++; + fprintf(stdout," OPUS_GET_MAX_BANDWIDTH ....................... OK.\n"); + + err=opus_encoder_ctl(enc,OPUS_GET_DTX(null_int_ptr)); + if(err!=OPUS_BAD_ARG)test_failed(); + cfgs++; + CHECK_SETGET(OPUS_SET_DTX(i),OPUS_GET_DTX(&i),-1,2, + 1,0, + " OPUS_SET_DTX ................................. OK.\n", + " OPUS_GET_DTX ................................. OK.\n") + + err=opus_encoder_ctl(enc,OPUS_GET_COMPLEXITY(null_int_ptr)); + if(err!=OPUS_BAD_ARG)test_failed(); + cfgs++; + CHECK_SETGET(OPUS_SET_COMPLEXITY(i),OPUS_GET_COMPLEXITY(&i),-1,11, + 0,10, + " OPUS_SET_COMPLEXITY .......................... OK.\n", + " OPUS_GET_COMPLEXITY .......................... OK.\n") + + err=opus_encoder_ctl(enc,OPUS_GET_INBAND_FEC(null_int_ptr)); + if(err!=OPUS_BAD_ARG)test_failed(); + cfgs++; + CHECK_SETGET(OPUS_SET_INBAND_FEC(i),OPUS_GET_INBAND_FEC(&i),-1,2, + 1,0, + " OPUS_SET_INBAND_FEC .......................... OK.\n", + " OPUS_GET_INBAND_FEC .......................... OK.\n") + + err=opus_encoder_ctl(enc,OPUS_GET_PACKET_LOSS_PERC(null_int_ptr)); + if(err!=OPUS_BAD_ARG)test_failed(); + cfgs++; + CHECK_SETGET(OPUS_SET_PACKET_LOSS_PERC(i),OPUS_GET_PACKET_LOSS_PERC(&i),-1,101, + 100,0, + " OPUS_SET_PACKET_LOSS_PERC .................... OK.\n", + " OPUS_GET_PACKET_LOSS_PERC .................... OK.\n") + + err=opus_encoder_ctl(enc,OPUS_GET_VBR(null_int_ptr)); + if(err!=OPUS_BAD_ARG)test_failed(); + cfgs++; + CHECK_SETGET(OPUS_SET_VBR(i),OPUS_GET_VBR(&i),-1,2, + 1,0, + " OPUS_SET_VBR ................................. OK.\n", + " OPUS_GET_VBR ................................. OK.\n") + +/* err=opus_encoder_ctl(enc,OPUS_GET_VOICE_RATIO(null_int_ptr)); + if(err!=OPUS_BAD_ARG)test_failed(); + cfgs++; + CHECK_SETGET(OPUS_SET_VOICE_RATIO(i),OPUS_GET_VOICE_RATIO(&i),-2,101, + 0,50, + " OPUS_SET_VOICE_RATIO ......................... OK.\n", + " OPUS_GET_VOICE_RATIO ......................... OK.\n")*/ + + err=opus_encoder_ctl(enc,OPUS_GET_VBR_CONSTRAINT(null_int_ptr)); + if(err!=OPUS_BAD_ARG)test_failed(); + cfgs++; + CHECK_SETGET(OPUS_SET_VBR_CONSTRAINT(i),OPUS_GET_VBR_CONSTRAINT(&i),-1,2, + 1,0, + " OPUS_SET_VBR_CONSTRAINT ...................... OK.\n", + " OPUS_GET_VBR_CONSTRAINT ...................... OK.\n") + + err=opus_encoder_ctl(enc,OPUS_GET_SIGNAL(null_int_ptr)); + if(err!=OPUS_BAD_ARG)test_failed(); + cfgs++; + CHECK_SETGET(OPUS_SET_SIGNAL(i),OPUS_GET_SIGNAL(&i),-12345,0x7FFFFFFF, + OPUS_SIGNAL_MUSIC,OPUS_AUTO, + " OPUS_SET_SIGNAL .............................. OK.\n", + " OPUS_GET_SIGNAL .............................. OK.\n") + + err=opus_encoder_ctl(enc,OPUS_GET_LSB_DEPTH(null_int_ptr)); + if(err!=OPUS_BAD_ARG)test_failed(); + cfgs++; + CHECK_SETGET(OPUS_SET_LSB_DEPTH(i),OPUS_GET_LSB_DEPTH(&i),7,25,16,24, + " OPUS_SET_LSB_DEPTH ........................... OK.\n", + " OPUS_GET_LSB_DEPTH ........................... OK.\n") + + err=opus_encoder_ctl(enc,OPUS_GET_PREDICTION_DISABLED(&i)); + if(i!=0)test_failed(); + cfgs++; + err=opus_encoder_ctl(enc,OPUS_GET_PREDICTION_DISABLED(null_int_ptr)); + if(err!=OPUS_BAD_ARG)test_failed(); + cfgs++; + CHECK_SETGET(OPUS_SET_PREDICTION_DISABLED(i),OPUS_GET_PREDICTION_DISABLED(&i),-1,2,1,0, + " OPUS_SET_PREDICTION_DISABLED ................. OK.\n", + " OPUS_GET_PREDICTION_DISABLED ................. OK.\n") + + err=opus_encoder_ctl(enc,OPUS_GET_EXPERT_FRAME_DURATION(null_int_ptr)); + if(err!=OPUS_BAD_ARG)test_failed(); + cfgs++; + err=opus_encoder_ctl(enc,OPUS_SET_EXPERT_FRAME_DURATION(OPUS_FRAMESIZE_2_5_MS)); + if(err!=OPUS_OK)test_failed(); + cfgs++; + err=opus_encoder_ctl(enc,OPUS_SET_EXPERT_FRAME_DURATION(OPUS_FRAMESIZE_5_MS)); + if(err!=OPUS_OK)test_failed(); + cfgs++; + err=opus_encoder_ctl(enc,OPUS_SET_EXPERT_FRAME_DURATION(OPUS_FRAMESIZE_10_MS)); + if(err!=OPUS_OK)test_failed(); + cfgs++; + err=opus_encoder_ctl(enc,OPUS_SET_EXPERT_FRAME_DURATION(OPUS_FRAMESIZE_20_MS)); + if(err!=OPUS_OK)test_failed(); + cfgs++; + err=opus_encoder_ctl(enc,OPUS_SET_EXPERT_FRAME_DURATION(OPUS_FRAMESIZE_40_MS)); + if(err!=OPUS_OK)test_failed(); + cfgs++; + err=opus_encoder_ctl(enc,OPUS_SET_EXPERT_FRAME_DURATION(OPUS_FRAMESIZE_60_MS)); + if(err!=OPUS_OK)test_failed(); + cfgs++; + err=opus_encoder_ctl(enc,OPUS_SET_EXPERT_FRAME_DURATION(OPUS_FRAMESIZE_80_MS)); + if(err!=OPUS_OK)test_failed(); + cfgs++; + err=opus_encoder_ctl(enc,OPUS_SET_EXPERT_FRAME_DURATION(OPUS_FRAMESIZE_100_MS)); + if(err!=OPUS_OK)test_failed(); + cfgs++; + err=opus_encoder_ctl(enc,OPUS_SET_EXPERT_FRAME_DURATION(OPUS_FRAMESIZE_120_MS)); + if(err!=OPUS_OK)test_failed(); + cfgs++; + CHECK_SETGET(OPUS_SET_EXPERT_FRAME_DURATION(i),OPUS_GET_EXPERT_FRAME_DURATION(&i),0,-1, + OPUS_FRAMESIZE_60_MS,OPUS_FRAMESIZE_ARG, + " OPUS_SET_EXPERT_FRAME_DURATION ............... OK.\n", + " OPUS_GET_EXPERT_FRAME_DURATION ............... OK.\n") + + /*OPUS_SET_FORCE_MODE is not tested here because it's not a public API, however the encoder tests use it*/ + + err=opus_encoder_ctl(enc,OPUS_GET_FINAL_RANGE(null_uint_ptr)); + if(err!=OPUS_BAD_ARG)test_failed(); + cfgs++; + if(opus_encoder_ctl(enc,OPUS_GET_FINAL_RANGE(&enc_final_range))!=OPUS_OK)test_failed(); + cfgs++; + fprintf(stdout," OPUS_GET_FINAL_RANGE ......................... OK.\n"); + + /*Reset the encoder*/ + if(opus_encoder_ctl(enc, OPUS_RESET_STATE)!=OPUS_OK)test_failed(); + cfgs++; + fprintf(stdout," OPUS_RESET_STATE ............................. OK.\n"); + + memset(sbuf,0,sizeof(short)*2*960); + VG_UNDEF(packet,sizeof(packet)); + i=opus_encode(enc, sbuf, 960, packet, sizeof(packet)); + if(i<1 || (i>(opus_int32)sizeof(packet)))test_failed(); + VG_CHECK(packet,i); + cfgs++; + fprintf(stdout," opus_encode() ................................ OK.\n"); +#ifndef DISABLE_FLOAT_API + memset(fbuf,0,sizeof(float)*2*960); + VG_UNDEF(packet,sizeof(packet)); + i=opus_encode_float(enc, fbuf, 960, packet, sizeof(packet)); + if(i<1 || (i>(opus_int32)sizeof(packet)))test_failed(); + VG_CHECK(packet,i); + cfgs++; + fprintf(stdout," opus_encode_float() .......................... OK.\n"); +#endif + +#if 0 + /*These tests are disabled because the library crashes with null states*/ + if(opus_encoder_ctl(0,OPUS_RESET_STATE) !=OPUS_INVALID_STATE)test_failed(); + if(opus_encoder_init(0,48000,1,OPUS_APPLICATION_VOIP) !=OPUS_INVALID_STATE)test_failed(); + if(opus_encode(0,sbuf,960,packet,sizeof(packet)) !=OPUS_INVALID_STATE)test_failed(); + if(opus_encode_float(0,fbuf,960,packet,sizeof(packet))!=OPUS_INVALID_STATE)test_failed(); +#endif + opus_encoder_destroy(enc); + cfgs++; + fprintf(stdout," All encoder interface tests passed\n"); + fprintf(stdout," (%d API invocations)\n",cfgs); + return cfgs; +} + +#define max_out (1276*48+48*2+2) +int test_repacketizer_api(void) +{ + int ret,cfgs,i,j,k; + OpusRepacketizer *rp; + unsigned char *packet; + unsigned char *po; + cfgs=0; + fprintf(stdout,"\n Repacketizer tests\n"); + fprintf(stdout," ---------------------------------------------------\n"); + + packet=malloc(max_out); + if(packet==NULL)test_failed(); + memset(packet,0,max_out); + po=malloc(max_out+256); + if(po==NULL)test_failed(); + + i=opus_repacketizer_get_size(); + if(i<=0)test_failed(); + cfgs++; + fprintf(stdout," opus_repacketizer_get_size()=%d ............. OK.\n",i); + + rp=malloc(i); + rp=opus_repacketizer_init(rp); + if(rp==NULL)test_failed(); + cfgs++; + free(rp); + fprintf(stdout," opus_repacketizer_init ....................... OK.\n"); + + rp=opus_repacketizer_create(); + if(rp==NULL)test_failed(); + cfgs++; + fprintf(stdout," opus_repacketizer_create ..................... OK.\n"); + + if(opus_repacketizer_get_nb_frames(rp)!=0)test_failed(); + cfgs++; + fprintf(stdout," opus_repacketizer_get_nb_frames .............. OK.\n"); + + /*Length overflows*/ + VG_UNDEF(packet,4); + if(opus_repacketizer_cat(rp,packet,0)!=OPUS_INVALID_PACKET)test_failed(); /* Zero len */ + cfgs++; + packet[0]=1; + if(opus_repacketizer_cat(rp,packet,2)!=OPUS_INVALID_PACKET)test_failed(); /* Odd payload code 1 */ + cfgs++; + packet[0]=2; + if(opus_repacketizer_cat(rp,packet,1)!=OPUS_INVALID_PACKET)test_failed(); /* Code 2 overflow one */ + cfgs++; + packet[0]=3; + if(opus_repacketizer_cat(rp,packet,1)!=OPUS_INVALID_PACKET)test_failed(); /* Code 3 no count */ + cfgs++; + packet[0]=2; + packet[1]=255; + if(opus_repacketizer_cat(rp,packet,2)!=OPUS_INVALID_PACKET)test_failed(); /* Code 2 overflow two */ + cfgs++; + packet[0]=2; + packet[1]=250; + if(opus_repacketizer_cat(rp,packet,251)!=OPUS_INVALID_PACKET)test_failed(); /* Code 2 overflow three */ + cfgs++; + packet[0]=3; + packet[1]=0; + if(opus_repacketizer_cat(rp,packet,2)!=OPUS_INVALID_PACKET)test_failed(); /* Code 3 m=0 */ + cfgs++; + packet[1]=49; + if(opus_repacketizer_cat(rp,packet,100)!=OPUS_INVALID_PACKET)test_failed(); /* Code 3 m=49 */ + cfgs++; + packet[0]=0; + if(opus_repacketizer_cat(rp,packet,3)!=OPUS_OK)test_failed(); + cfgs++; + packet[0]=1<<2; + if(opus_repacketizer_cat(rp,packet,3)!=OPUS_INVALID_PACKET)test_failed(); /* Change in TOC */ + cfgs++; + + /* Code 0,1,3 CBR -> Code 0,1,3 CBR */ + opus_repacketizer_init(rp); + for(j=0;j<32;j++) + { + /* TOC types, test half with stereo */ + int maxi; + packet[0]=((j<<1)+(j&1))<<2; + maxi=960/opus_packet_get_samples_per_frame(packet,8000); + for(i=1;i<=maxi;i++) + { + /* Number of CBR frames in the input packets */ + int maxp; + packet[0]=((j<<1)+(j&1))<<2; + if(i>1)packet[0]+=i==2?1:3; + packet[1]=i>2?i:0; + maxp=960/(i*opus_packet_get_samples_per_frame(packet,8000)); + for(k=0;k<=(1275+75);k+=3) + { + /*Payload size*/ + opus_int32 cnt,rcnt; + if(k%i!=0)continue; /* Only testing CBR here, payload must be a multiple of the count */ + for(cnt=0;cnt0) + { + ret=opus_repacketizer_cat(rp,packet,k+(i>2?2:1)); + if((cnt<=maxp&&k<=(1275*i))?ret!=OPUS_OK:ret!=OPUS_INVALID_PACKET)test_failed(); + cfgs++; + } + rcnt=k<=(1275*i)?(cnt0) + { + int len; + len=k*rcnt+((rcnt*i)>2?2:1); + if(ret!=len)test_failed(); + if((rcnt*i)<2&&(po[0]&3)!=0)test_failed(); /* Code 0 */ + if((rcnt*i)==2&&(po[0]&3)!=1)test_failed(); /* Code 1 */ + if((rcnt*i)>2&&(((po[0]&3)!=3)||(po[1]!=rcnt*i)))test_failed(); /* Code 3 CBR */ + cfgs++; + if(opus_repacketizer_out(rp,po,len)!=len)test_failed(); + cfgs++; + if(opus_packet_unpad(po,len)!=len)test_failed(); + cfgs++; + if(opus_packet_pad(po,len,len+1)!=OPUS_OK)test_failed(); + cfgs++; + if(opus_packet_pad(po,len+1,len+256)!=OPUS_OK)test_failed(); + cfgs++; + if(opus_packet_unpad(po,len+256)!=len)test_failed(); + cfgs++; + if(opus_multistream_packet_unpad(po,len,1)!=len)test_failed(); + cfgs++; + if(opus_multistream_packet_pad(po,len,len+1,1)!=OPUS_OK)test_failed(); + cfgs++; + if(opus_multistream_packet_pad(po,len+1,len+256,1)!=OPUS_OK)test_failed(); + cfgs++; + if(opus_multistream_packet_unpad(po,len+256,1)!=len)test_failed(); + cfgs++; + if(opus_repacketizer_out(rp,po,len-1)!=OPUS_BUFFER_TOO_SMALL)test_failed(); + cfgs++; + if(len>1) + { + if(opus_repacketizer_out(rp,po,1)!=OPUS_BUFFER_TOO_SMALL)test_failed(); + cfgs++; + } + if(opus_repacketizer_out(rp,po,0)!=OPUS_BUFFER_TOO_SMALL)test_failed(); + cfgs++; + } else if (ret!=OPUS_BAD_ARG)test_failed(); /* M must not be 0 */ + } + opus_repacketizer_init(rp); + } + } + } + + /*Change in input count code, CBR out*/ + opus_repacketizer_init(rp); + packet[0]=0; + if(opus_repacketizer_cat(rp,packet,5)!=OPUS_OK)test_failed(); + cfgs++; + packet[0]+=1; + if(opus_repacketizer_cat(rp,packet,9)!=OPUS_OK)test_failed(); + cfgs++; + i=opus_repacketizer_out(rp,po,max_out); + if((i!=(4+8+2))||((po[0]&3)!=3)||((po[1]&63)!=3)||((po[1]>>7)!=0))test_failed(); + cfgs++; + i=opus_repacketizer_out_range(rp,0,1,po,max_out); + if(i!=5||(po[0]&3)!=0)test_failed(); + cfgs++; + i=opus_repacketizer_out_range(rp,1,2,po,max_out); + if(i!=5||(po[0]&3)!=0)test_failed(); + cfgs++; + + /*Change in input count code, VBR out*/ + opus_repacketizer_init(rp); + packet[0]=1; + if(opus_repacketizer_cat(rp,packet,9)!=OPUS_OK)test_failed(); + cfgs++; + packet[0]=0; + if(opus_repacketizer_cat(rp,packet,3)!=OPUS_OK)test_failed(); + cfgs++; + i=opus_repacketizer_out(rp,po,max_out); + if((i!=(2+8+2+2))||((po[0]&3)!=3)||((po[1]&63)!=3)||((po[1]>>7)!=1))test_failed(); + cfgs++; + + /*VBR in, VBR out*/ + opus_repacketizer_init(rp); + packet[0]=2; + packet[1]=4; + if(opus_repacketizer_cat(rp,packet,8)!=OPUS_OK)test_failed(); + cfgs++; + if(opus_repacketizer_cat(rp,packet,8)!=OPUS_OK)test_failed(); + cfgs++; + i=opus_repacketizer_out(rp,po,max_out); + if((i!=(2+1+1+1+4+2+4+2))||((po[0]&3)!=3)||((po[1]&63)!=4)||((po[1]>>7)!=1))test_failed(); + cfgs++; + + /*VBR in, CBR out*/ + opus_repacketizer_init(rp); + packet[0]=2; + packet[1]=4; + if(opus_repacketizer_cat(rp,packet,10)!=OPUS_OK)test_failed(); + cfgs++; + if(opus_repacketizer_cat(rp,packet,10)!=OPUS_OK)test_failed(); + cfgs++; + i=opus_repacketizer_out(rp,po,max_out); + if((i!=(2+4+4+4+4))||((po[0]&3)!=3)||((po[1]&63)!=4)||((po[1]>>7)!=0))test_failed(); + cfgs++; + + /*Count 0 in, VBR out*/ + for(j=0;j<32;j++) + { + /* TOC types, test half with stereo */ + int maxi,sum,rcnt; + packet[0]=((j<<1)+(j&1))<<2; + maxi=960/opus_packet_get_samples_per_frame(packet,8000); + sum=0; + rcnt=0; + opus_repacketizer_init(rp); + for(i=1;i<=maxi+2;i++) + { + int len; + ret=opus_repacketizer_cat(rp,packet,i); + if(rcnt2&&(po[1]&63)!=rcnt)test_failed(); + if(rcnt==2&&(po[0]&3)!=2)test_failed(); + if(rcnt==1&&(po[0]&3)!=0)test_failed(); + cfgs++; + if(opus_repacketizer_out(rp,po,len)!=len)test_failed(); + cfgs++; + if(opus_packet_unpad(po,len)!=len)test_failed(); + cfgs++; + if(opus_packet_pad(po,len,len+1)!=OPUS_OK)test_failed(); + cfgs++; + if(opus_packet_pad(po,len+1,len+256)!=OPUS_OK)test_failed(); + cfgs++; + if(opus_packet_unpad(po,len+256)!=len)test_failed(); + cfgs++; + if(opus_multistream_packet_unpad(po,len,1)!=len)test_failed(); + cfgs++; + if(opus_multistream_packet_pad(po,len,len+1,1)!=OPUS_OK)test_failed(); + cfgs++; + if(opus_multistream_packet_pad(po,len+1,len+256,1)!=OPUS_OK)test_failed(); + cfgs++; + if(opus_multistream_packet_unpad(po,len+256,1)!=len)test_failed(); + cfgs++; + if(opus_repacketizer_out(rp,po,len-1)!=OPUS_BUFFER_TOO_SMALL)test_failed(); + cfgs++; + if(len>1) + { + if(opus_repacketizer_out(rp,po,1)!=OPUS_BUFFER_TOO_SMALL)test_failed(); + cfgs++; + } + if(opus_repacketizer_out(rp,po,0)!=OPUS_BUFFER_TOO_SMALL)test_failed(); + cfgs++; + } + } + + po[0]='O'; + po[1]='p'; + if(opus_packet_pad(po,4,4)!=OPUS_OK)test_failed(); + cfgs++; + if(opus_multistream_packet_pad(po,4,4,1)!=OPUS_OK)test_failed(); + cfgs++; + if(opus_packet_pad(po,4,5)!=OPUS_INVALID_PACKET)test_failed(); + cfgs++; + if(opus_multistream_packet_pad(po,4,5,1)!=OPUS_INVALID_PACKET)test_failed(); + cfgs++; + if(opus_packet_pad(po,0,5)!=OPUS_BAD_ARG)test_failed(); + cfgs++; + if(opus_multistream_packet_pad(po,0,5,1)!=OPUS_BAD_ARG)test_failed(); + cfgs++; + if(opus_packet_unpad(po,0)!=OPUS_BAD_ARG)test_failed(); + cfgs++; + if(opus_multistream_packet_unpad(po,0,1)!=OPUS_BAD_ARG)test_failed(); + cfgs++; + if(opus_packet_unpad(po,4)!=OPUS_INVALID_PACKET)test_failed(); + cfgs++; + if(opus_multistream_packet_unpad(po,4,1)!=OPUS_INVALID_PACKET)test_failed(); + cfgs++; + po[0]=0; + po[1]=0; + po[2]=0; + if(opus_packet_pad(po,5,4)!=OPUS_BAD_ARG)test_failed(); + cfgs++; + if(opus_multistream_packet_pad(po,5,4,1)!=OPUS_BAD_ARG)test_failed(); + cfgs++; + + fprintf(stdout," opus_repacketizer_cat ........................ OK.\n"); + fprintf(stdout," opus_repacketizer_out ........................ OK.\n"); + fprintf(stdout," opus_repacketizer_out_range .................. OK.\n"); + fprintf(stdout," opus_packet_pad .............................. OK.\n"); + fprintf(stdout," opus_packet_unpad ............................ OK.\n"); + fprintf(stdout," opus_multistream_packet_pad .................. OK.\n"); + fprintf(stdout," opus_multistream_packet_unpad ................ OK.\n"); + + opus_repacketizer_destroy(rp); + cfgs++; + free(packet); + free(po); + fprintf(stdout," All repacketizer tests passed\n"); + fprintf(stdout," (%7d API invocations)\n",cfgs); + + return cfgs; +} + +#ifdef MALLOC_FAIL +/* GLIBC 2.14 declares __malloc_hook as deprecated, generating a warning + * under GCC. However, this is the cleanest way to test malloc failure + * handling in our codebase, and the lack of thread safety isn't an + * issue here. We therefore disable the warning for this function. + */ +#if OPUS_GNUC_PREREQ(4,6) +/* Save the current warning settings */ +#pragma GCC diagnostic push +#endif +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +typedef void *(*mhook)(size_t __size, __const void *); +#endif + +int test_malloc_fail(void) +{ +#ifdef MALLOC_FAIL + OpusDecoder *dec; + OpusEncoder *enc; + OpusRepacketizer *rp; + unsigned char mapping[256] = {0,1}; + OpusMSDecoder *msdec; + OpusMSEncoder *msenc; + int rate,c,app,cfgs,err,useerr; + int *ep; + mhook orig_malloc; + cfgs=0; +#endif + fprintf(stdout,"\n malloc() failure tests\n"); + fprintf(stdout," ---------------------------------------------------\n"); +#ifdef MALLOC_FAIL + orig_malloc=__malloc_hook; + __malloc_hook=malloc_hook; + ep=(int *)opus_alloc(sizeof(int)); + if(ep!=NULL) + { + if(ep)free(ep); + __malloc_hook=orig_malloc; +#endif + fprintf(stdout," opus_decoder_create() ................... SKIPPED.\n"); + fprintf(stdout," opus_encoder_create() ................... SKIPPED.\n"); + fprintf(stdout," opus_repacketizer_create() .............. SKIPPED.\n"); + fprintf(stdout," opus_multistream_decoder_create() ....... SKIPPED.\n"); + fprintf(stdout," opus_multistream_encoder_create() ....... SKIPPED.\n"); + fprintf(stdout,"(Test only supported with GLIBC and without valgrind)\n"); + return 0; +#ifdef MALLOC_FAIL + } + for(useerr=0;useerr<2;useerr++) + { + ep=useerr?&err:0; + for(rate=0;rate<5;rate++) + { + for(c=1;c<3;c++) + { + err=1; + if(useerr) + { + VG_UNDEF(&err,sizeof(err)); + } + dec=opus_decoder_create(opus_rates[rate], c, ep); + if(dec!=NULL||(useerr&&err!=OPUS_ALLOC_FAIL)) + { + __malloc_hook=orig_malloc; + test_failed(); + } + cfgs++; + msdec=opus_multistream_decoder_create(opus_rates[rate], c, 1, c-1, mapping, ep); + if(msdec!=NULL||(useerr&&err!=OPUS_ALLOC_FAIL)) + { + __malloc_hook=orig_malloc; + test_failed(); + } + cfgs++; + for(app=0;app<3;app++) + { + if(useerr) + { + VG_UNDEF(&err,sizeof(err)); + } + enc=opus_encoder_create(opus_rates[rate], c, opus_apps[app],ep); + if(enc!=NULL||(useerr&&err!=OPUS_ALLOC_FAIL)) + { + __malloc_hook=orig_malloc; + test_failed(); + } + cfgs++; + msenc=opus_multistream_encoder_create(opus_rates[rate], c, 1, c-1, mapping, opus_apps[app],ep); + if(msenc!=NULL||(useerr&&err!=OPUS_ALLOC_FAIL)) + { + __malloc_hook=orig_malloc; + test_failed(); + } + cfgs++; + } + } + } + } + rp=opus_repacketizer_create(); + if(rp!=NULL) + { + __malloc_hook=orig_malloc; + test_failed(); + } + cfgs++; + __malloc_hook=orig_malloc; + fprintf(stdout," opus_decoder_create() ........................ OK.\n"); + fprintf(stdout," opus_encoder_create() ........................ OK.\n"); + fprintf(stdout," opus_repacketizer_create() ................... OK.\n"); + fprintf(stdout," opus_multistream_decoder_create() ............ OK.\n"); + fprintf(stdout," opus_multistream_encoder_create() ............ OK.\n"); + fprintf(stdout," All malloc failure tests passed\n"); + fprintf(stdout," (%2d API invocations)\n",cfgs); + return cfgs; +#endif +} + +#ifdef MALLOC_FAIL +#if __GNUC_PREREQ(4,6) +#pragma GCC diagnostic pop /* restore -Wdeprecated-declarations */ +#endif +#endif + +int main(int _argc, char **_argv) +{ + opus_int32 total; + const char * oversion; + if(_argc>1) + { + fprintf(stderr,"Usage: %s\n",_argv[0]); + return 1; + } + iseed=0; + + oversion=opus_get_version_string(); + if(!oversion)test_failed(); + fprintf(stderr,"Testing the %s API deterministically\n", oversion); + if(opus_strerror(-32768)==NULL)test_failed(); + if(opus_strerror(32767)==NULL)test_failed(); + if(strlen(opus_strerror(0))<1)test_failed(); + total=4; + + total+=test_dec_api(); + total+=test_msdec_api(); + total+=test_parse(); + total+=test_enc_api(); + total+=test_repacketizer_api(); + total+=test_malloc_fail(); + + fprintf(stderr,"\nAll API tests passed.\nThe libopus API was invoked %d times.\n",total); + + return 0; +} diff --git a/components/opus/libopus/tests/test_opus_common.h b/components/opus/libopus/tests/test_opus_common.h new file mode 100644 index 0000000..235cf1c --- /dev/null +++ b/components/opus/libopus/tests/test_opus_common.h @@ -0,0 +1,82 @@ +/* Copyright (c) 2011 Xiph.Org Foundation + Written by Gregory Maxwell */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +static OPUS_INLINE void deb2_impl(unsigned char *_t,unsigned char **_p,int _k,int _x,int _y) +{ + int i; + if(_x>2){ + if(_y<3)for(i=0;i<_y;i++)*(--*_p)=_t[i+1]; + }else{ + _t[_x]=_t[_x-_y]; + deb2_impl(_t,_p,_k,_x+1,_y); + for(i=_t[_x-_y]+1;i<_k;i++){ + _t[_x]=i; + deb2_impl(_t,_p,_k,_x+1,_x); + } + } +} + +/*Generates a De Bruijn sequence (k,2) with length k^2*/ +static OPUS_INLINE void debruijn2(int _k, unsigned char *_res) +{ + unsigned char *p; + unsigned char *t; + t=malloc(sizeof(unsigned char)*_k*2); + memset(t,0,sizeof(unsigned char)*_k*2); + p=&_res[_k*_k]; + deb2_impl(t,&p,_k,1,1); + free(t); +} + +/*MWC RNG of George Marsaglia*/ +static opus_uint32 Rz, Rw; +static OPUS_INLINE opus_uint32 fast_rand(void) +{ + Rz=36969*(Rz&65535)+(Rz>>16); + Rw=18000*(Rw&65535)+(Rw>>16); + return (Rz<<16)+Rw; +} +static opus_uint32 iseed; + +#ifdef __GNUC__ +__attribute__((noreturn)) +#elif defined(_MSC_VER) +__declspec(noreturn) +#endif +static OPUS_INLINE void _test_failed(const char *file, int line) +{ + fprintf(stderr,"\n ***************************************************\n"); + fprintf(stderr," *** A fatal error was detected. ***\n"); + fprintf(stderr," ***************************************************\n"); + fprintf(stderr,"Please report this failure and include\n"); + fprintf(stderr,"'make check SEED=%u fails %s at line %d for %s'\n",iseed,file,line,opus_get_version_string()); + fprintf(stderr,"and any relevant details about your system.\n\n"); + abort(); +} +#define test_failed() _test_failed(__FILE__, __LINE__); + +void regression_test(void); diff --git a/components/opus/libopus/tests/test_opus_decode.c b/components/opus/libopus/tests/test_opus_decode.c new file mode 100644 index 0000000..5197fa1 --- /dev/null +++ b/components/opus/libopus/tests/test_opus_decode.c @@ -0,0 +1,463 @@ +/* Copyright (c) 2011-2013 Xiph.Org Foundation + Written by Gregory Maxwell */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include +#include +#include +#include +#include +#include +#if (!defined WIN32 && !defined _WIN32) || defined(__MINGW32__) +#include +#else +#include +#define getpid _getpid +#endif +#include "opus.h" +#include "test_opus_common.h" + +#define MAX_PACKET (1500) +#define MAX_FRAME_SAMP (5760) + +int test_decoder_code0(int no_fuzz) +{ + static const opus_int32 fsv[5]={48000,24000,16000,12000,8000}; + int err,skip,plen; + int out_samples,fec; + int t; + opus_int32 i; + OpusDecoder *dec[5*2]; + opus_int32 decsize; + OpusDecoder *decbak; + opus_uint32 dec_final_range1,dec_final_range2,dec_final_acc; + unsigned char *packet; + unsigned char modes[4096]; + short *outbuf_int; + short *outbuf; + + dec_final_range1=dec_final_range2=2; + + packet=malloc(sizeof(unsigned char)*MAX_PACKET); + if(packet==NULL)test_failed(); + + outbuf_int=malloc(sizeof(short)*(MAX_FRAME_SAMP+16)*2); + for(i=0;i<(MAX_FRAME_SAMP+16)*2;i++)outbuf_int[i]=32749; + outbuf=&outbuf_int[8*2]; + + fprintf(stdout," Starting %d decoders...\n",5*2); + for(t=0;t<5*2;t++) + { + int fs=fsv[t>>1]; + int c=(t&1)+1; + err=OPUS_INTERNAL_ERROR; + dec[t] = opus_decoder_create(fs, c, &err); + if(err!=OPUS_OK || dec[t]==NULL)test_failed(); + fprintf(stdout," opus_decoder_create(%5d,%d) OK. Copy ",fs,c); + { + OpusDecoder *dec2; + /*The opus state structures contain no pointers and can be freely copied*/ + dec2=(OpusDecoder *)malloc(opus_decoder_get_size(c)); + if(dec2==NULL)test_failed(); + memcpy(dec2,dec[t],opus_decoder_get_size(c)); + memset(dec[t],255,opus_decoder_get_size(c)); + opus_decoder_destroy(dec[t]); + printf("OK.\n"); + dec[t]=dec2; + } + } + + decsize=opus_decoder_get_size(1); + decbak=(OpusDecoder *)malloc(decsize); + if(decbak==NULL)test_failed(); + + for(t=0;t<5*2;t++) + { + int factor=48000/fsv[t>>1]; + for(fec=0;fec<2;fec++) + { + opus_int32 dur; + /*Test PLC on a fresh decoder*/ + out_samples = opus_decode(dec[t], 0, 0, outbuf, 120/factor, fec); + if(out_samples!=120/factor)test_failed(); + if(opus_decoder_ctl(dec[t], OPUS_GET_LAST_PACKET_DURATION(&dur))!=OPUS_OK)test_failed(); + if(dur!=120/factor)test_failed(); + + /*Test on a size which isn't a multiple of 2.5ms*/ + out_samples = opus_decode(dec[t], 0, 0, outbuf, 120/factor+2, fec); + if(out_samples!=OPUS_BAD_ARG)test_failed(); + + /*Test null pointer input*/ + out_samples = opus_decode(dec[t], 0, -1, outbuf, 120/factor, fec); + if(out_samples!=120/factor)test_failed(); + out_samples = opus_decode(dec[t], 0, 1, outbuf, 120/factor, fec); + if(out_samples!=120/factor)test_failed(); + out_samples = opus_decode(dec[t], 0, 10, outbuf, 120/factor, fec); + if(out_samples!=120/factor)test_failed(); + out_samples = opus_decode(dec[t], 0, fast_rand(), outbuf, 120/factor, fec); + if(out_samples!=120/factor)test_failed(); + if(opus_decoder_ctl(dec[t], OPUS_GET_LAST_PACKET_DURATION(&dur))!=OPUS_OK)test_failed(); + if(dur!=120/factor)test_failed(); + + /*Zero lengths*/ + out_samples = opus_decode(dec[t], packet, 0, outbuf, 120/factor, fec); + if(out_samples!=120/factor)test_failed(); + + /*Zero buffer*/ + outbuf[0]=32749; + out_samples = opus_decode(dec[t], packet, 0, outbuf, 0, fec); + if(out_samples>0)test_failed(); +#if !defined(OPUS_BUILD) && (OPUS_GNUC_PREREQ(4, 6) || (defined(__clang_major__) && __clang_major__ >= 3)) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wnonnull" +#endif + out_samples = opus_decode(dec[t], packet, 0, 0, 0, fec); +#if !defined(OPUS_BUILD) && (OPUS_GNUC_PREREQ(4, 6) || (defined(__clang_major__) && __clang_major__ >= 3)) +#pragma GCC diagnostic pop +#endif + if(out_samples>0)test_failed(); + if(outbuf[0]!=32749)test_failed(); + + /*Invalid lengths*/ + out_samples = opus_decode(dec[t], packet, -1, outbuf, MAX_FRAME_SAMP, fec); + if(out_samples>=0)test_failed(); + out_samples = opus_decode(dec[t], packet, INT_MIN, outbuf, MAX_FRAME_SAMP, fec); + if(out_samples>=0)test_failed(); + out_samples = opus_decode(dec[t], packet, -1, outbuf, -1, fec); + if(out_samples>=0)test_failed(); + + /*Crazy FEC values*/ + out_samples = opus_decode(dec[t], packet, 1, outbuf, MAX_FRAME_SAMP, fec?-1:2); + if(out_samples>=0)test_failed(); + + /*Reset the decoder*/ + if(opus_decoder_ctl(dec[t], OPUS_RESET_STATE)!=OPUS_OK)test_failed(); + } + } + fprintf(stdout," dec[all] initial frame PLC OK.\n"); + + /*Count code 0 tests*/ + for(i=0;i<64;i++) + { + opus_int32 dur; + int j,expected[5*2]; + packet[0]=i<<2; + packet[1]=255; + packet[2]=255; + err=opus_packet_get_nb_channels(packet); + if(err!=(i&1)+1)test_failed(); + + for(t=0;t<5*2;t++){ + expected[t]=opus_decoder_get_nb_samples(dec[t],packet,1); + if(expected[t]>2880)test_failed(); + } + + for(j=0;j<256;j++) + { + packet[1]=j; + for(t=0;t<5*2;t++) + { + out_samples = opus_decode(dec[t], packet, 3, outbuf, MAX_FRAME_SAMP, 0); + if(out_samples!=expected[t])test_failed(); + if(opus_decoder_ctl(dec[t], OPUS_GET_LAST_PACKET_DURATION(&dur))!=OPUS_OK)test_failed(); + if(dur!=out_samples)test_failed(); + opus_decoder_ctl(dec[t], OPUS_GET_FINAL_RANGE(&dec_final_range1)); + if(t==0)dec_final_range2=dec_final_range1; + else if(dec_final_range1!=dec_final_range2)test_failed(); + } + } + + for(t=0;t<5*2;t++){ + int factor=48000/fsv[t>>1]; + /* The PLC is run for 6 frames in order to get better PLC coverage. */ + for(j=0;j<6;j++) + { + out_samples = opus_decode(dec[t], 0, 0, outbuf, expected[t], 0); + if(out_samples!=expected[t])test_failed(); + if(opus_decoder_ctl(dec[t], OPUS_GET_LAST_PACKET_DURATION(&dur))!=OPUS_OK)test_failed(); + if(dur!=out_samples)test_failed(); + } + /* Run the PLC once at 2.5ms, as a simulation of someone trying to + do small drift corrections. */ + if(expected[t]!=120/factor) + { + out_samples = opus_decode(dec[t], 0, 0, outbuf, 120/factor, 0); + if(out_samples!=120/factor)test_failed(); + if(opus_decoder_ctl(dec[t], OPUS_GET_LAST_PACKET_DURATION(&dur))!=OPUS_OK)test_failed(); + if(dur!=out_samples)test_failed(); + } + out_samples = opus_decode(dec[t], packet, 2, outbuf, expected[t]-1, 0); + if(out_samples>0)test_failed(); + } + } + fprintf(stdout," dec[all] all 2-byte prefix for length 3 and PLC, all modes (64) OK.\n"); + + if(no_fuzz) + { + fprintf(stdout," Skipping many tests which fuzz the decoder as requested.\n"); + free(decbak); + for(t=0;t<5*2;t++)opus_decoder_destroy(dec[t]); + printf(" Decoders stopped.\n"); + + err=0; + for(i=0;i<8*2;i++)err|=outbuf_int[i]!=32749; + for(i=MAX_FRAME_SAMP*2;i<(MAX_FRAME_SAMP+8)*2;i++)err|=outbuf[i]!=32749; + if(err)test_failed(); + + free(outbuf_int); + free(packet); + return 0; + } + + { + /*We only test a subset of the modes here simply because the longer + durations end up taking a long time.*/ + static const int cmodes[4]={16,20,24,28}; + static const opus_uint32 cres[4]={116290185,2172123586u,2172123586u,2172123586u}; + static const opus_uint32 lres[3]={3285687739u,1481572662,694350475}; + static const int lmodes[3]={0,4,8}; + int mode=fast_rand()%4; + + packet[0]=cmodes[mode]<<3; + dec_final_acc=0; + t=fast_rand()%10; + + for(i=0;i<65536;i++) + { + int factor=48000/fsv[t>>1]; + packet[1]=i>>8; + packet[2]=i&255; + packet[3]=255; + out_samples = opus_decode(dec[t], packet, 4, outbuf, MAX_FRAME_SAMP, 0); + if(out_samples!=120/factor)test_failed(); + opus_decoder_ctl(dec[t], OPUS_GET_FINAL_RANGE(&dec_final_range1)); + dec_final_acc+=dec_final_range1; + } + if(dec_final_acc!=cres[mode])test_failed(); + fprintf(stdout," dec[%3d] all 3-byte prefix for length 4, mode %2d OK.\n",t,cmodes[mode]); + + mode=fast_rand()%3; + packet[0]=lmodes[mode]<<3; + dec_final_acc=0; + t=fast_rand()%10; + for(i=0;i<65536;i++) + { + int factor=48000/fsv[t>>1]; + packet[1]=i>>8; + packet[2]=i&255; + packet[3]=255; + out_samples = opus_decode(dec[t], packet, 4, outbuf, MAX_FRAME_SAMP, 0); + if(out_samples!=480/factor)test_failed(); + opus_decoder_ctl(dec[t], OPUS_GET_FINAL_RANGE(&dec_final_range1)); + dec_final_acc+=dec_final_range1; + } + if(dec_final_acc!=lres[mode])test_failed(); + fprintf(stdout," dec[%3d] all 3-byte prefix for length 4, mode %2d OK.\n",t,lmodes[mode]); + } + + skip=fast_rand()%7; + for(i=0;i<64;i++) + { + int j,expected[5*2]; + packet[0]=i<<2; + for(t=0;t<5*2;t++)expected[t]=opus_decoder_get_nb_samples(dec[t],packet,1); + for(j=2+skip;j<1275;j+=4) + { + int jj; + for(jj=0;jj1.f)test_failed(); + if(x[j]<-1.f)test_failed(); + } + } + for(i=1;i<9;i++) + { + for (j=0;j<1024;j++) + { + x[j]=(j&255)*(1/32.f)-4.f; + } + opus_pcm_soft_clip(x,1024/i,i,s); + for (j=0;j<(1024/i)*i;j++) + { + if(x[j]>1.f)test_failed(); + if(x[j]<-1.f)test_failed(); + } + } + opus_pcm_soft_clip(x,0,1,s); + opus_pcm_soft_clip(x,1,0,s); + opus_pcm_soft_clip(x,1,1,0); + opus_pcm_soft_clip(x,1,-1,s); + opus_pcm_soft_clip(x,-1,1,s); + opus_pcm_soft_clip(0,1,1,s); + printf("OK.\n"); +} +#endif + +int main(int _argc, char **_argv) +{ + const char * oversion; + const char * env_seed; + int env_used; + + if(_argc>2) + { + fprintf(stderr,"Usage: %s []\n",_argv[0]); + return 1; + } + + env_used=0; + env_seed=getenv("SEED"); + if(_argc>1)iseed=atoi(_argv[1]); + else if(env_seed) + { + iseed=atoi(env_seed); + env_used=1; + } + else iseed=(opus_uint32)time(NULL)^(((opus_uint32)getpid()&65535)<<16); + Rw=Rz=iseed; + + oversion=opus_get_version_string(); + if(!oversion)test_failed(); + fprintf(stderr,"Testing %s decoder. Random seed: %u (%.4X)\n", oversion, iseed, fast_rand() % 65535); + if(env_used)fprintf(stderr," Random seed set from the environment (SEED=%s).\n", env_seed); + + /*Setting TEST_OPUS_NOFUZZ tells the tool not to send garbage data + into the decoders. This is helpful because garbage data + may cause the decoders to clip, which angers CLANG IOC.*/ + test_decoder_code0(getenv("TEST_OPUS_NOFUZZ")!=NULL); +#ifndef DISABLE_FLOAT_API + test_soft_clip(); +#endif + + return 0; +} diff --git a/components/opus/libopus/tests/test_opus_encode.c b/components/opus/libopus/tests/test_opus_encode.c new file mode 100644 index 0000000..00795a1 --- /dev/null +++ b/components/opus/libopus/tests/test_opus_encode.c @@ -0,0 +1,703 @@ +/* Copyright (c) 2011-2013 Xiph.Org Foundation + Written by Gregory Maxwell */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include +#include +#include +#include +#include +#include +#if (!defined WIN32 && !defined _WIN32) || defined(__MINGW32__) +#include +#else +#include +#define getpid _getpid +#endif +#include "opus_multistream.h" +#include "opus.h" +#include "../src/opus_private.h" +#include "test_opus_common.h" + +#define MAX_PACKET (1500) +#define SAMPLES (48000*30) +#define SSAMPLES (SAMPLES/3) +#define MAX_FRAME_SAMP (5760) +#define PI (3.141592653589793238462643f) +#define RAND_SAMPLE(a) (a[fast_rand() % sizeof(a)/sizeof(a[0])]) + +void generate_music(short *buf, opus_int32 len) +{ + opus_int32 a1,b1,a2,b2; + opus_int32 c1,c2,d1,d2; + opus_int32 i,j; + a1=b1=a2=b2=0; + c1=c2=d1=d2=0; + j=0; + /*60ms silence*/ + for(i=0;i<2880;i++)buf[i*2]=buf[i*2+1]=0; + for(i=2880;i>12)^((j>>10|j>>12)&26&j>>7)))&128)+128)<<15; + r=fast_rand();v1+=r&65535;v1-=r>>16; + r=fast_rand();v2+=r&65535;v2-=r>>16; + b1=v1-a1+((b1*61+32)>>6);a1=v1; + b2=v2-a2+((b2*61+32)>>6);a2=v2; + c1=(30*(c1+b1+d1)+32)>>6;d1=b1; + c2=(30*(c2+b2+d2)+32)>>6;d2=b2; + v1=(c1+128)>>8; + v2=(c2+128)>>8; + buf[i*2]=v1>32767?32767:(v1<-32768?-32768:v1); + buf[i*2+1]=v2>32767?32767:(v2<-32768?-32768:v2); + if(i%6==0)j++; + } +} + +#if 0 +static int save_ctr = 0; +static void int_to_char(opus_uint32 i, unsigned char ch[4]) +{ + ch[0] = i>>24; + ch[1] = (i>>16)&0xFF; + ch[2] = (i>>8)&0xFF; + ch[3] = i&0xFF; +} + +static OPUS_INLINE void save_packet(unsigned char* p, int len, opus_uint32 rng) +{ + FILE *fout; + unsigned char int_field[4]; + char name[256]; + snprintf(name,255,"test_opus_encode.%llu.%d.bit",(unsigned long long)iseed,save_ctr); + fprintf(stdout,"writing %d byte packet to %s\n",len,name); + fout=fopen(name, "wb+"); + if(fout==NULL)test_failed(); + int_to_char(len, int_field); + fwrite(int_field, 1, 4, fout); + int_to_char(rng, int_field); + fwrite(int_field, 1, 4, fout); + fwrite(p, 1, len, fout); + fclose(fout); + save_ctr++; +} +#endif + +int get_frame_size_enum(int frame_size, int sampling_rate) +{ + int frame_size_enum; + + if(frame_size==sampling_rate/400) + frame_size_enum = OPUS_FRAMESIZE_2_5_MS; + else if(frame_size==sampling_rate/200) + frame_size_enum = OPUS_FRAMESIZE_5_MS; + else if(frame_size==sampling_rate/100) + frame_size_enum = OPUS_FRAMESIZE_10_MS; + else if(frame_size==sampling_rate/50) + frame_size_enum = OPUS_FRAMESIZE_20_MS; + else if(frame_size==sampling_rate/25) + frame_size_enum = OPUS_FRAMESIZE_40_MS; + else if(frame_size==3*sampling_rate/50) + frame_size_enum = OPUS_FRAMESIZE_60_MS; + else if(frame_size==4*sampling_rate/50) + frame_size_enum = OPUS_FRAMESIZE_80_MS; + else if(frame_size==5*sampling_rate/50) + frame_size_enum = OPUS_FRAMESIZE_100_MS; + else if(frame_size==6*sampling_rate/50) + frame_size_enum = OPUS_FRAMESIZE_120_MS; + else + test_failed(); + + return frame_size_enum; +} + +int test_encode(OpusEncoder *enc, int channels, int frame_size, OpusDecoder *dec) +{ + int samp_count = 0; + opus_int16 *inbuf; + unsigned char packet[MAX_PACKET+257]; + int len; + opus_int16 *outbuf; + int out_samples; + int ret = 0; + + /* Generate input data */ + inbuf = (opus_int16*)malloc(sizeof(*inbuf)*SSAMPLES); + generate_music(inbuf, SSAMPLES/2); + + /* Allocate memory for output data */ + outbuf = (opus_int16*)malloc(sizeof(*outbuf)*MAX_FRAME_SAMP*3); + + /* Encode data, then decode for sanity check */ + do { + len = opus_encode(enc, &inbuf[samp_count*channels], frame_size, packet, MAX_PACKET); + if(len<0 || len>MAX_PACKET) { + fprintf(stderr,"opus_encode() returned %d\n",len); + ret = -1; + break; + } + + out_samples = opus_decode(dec, packet, len, outbuf, MAX_FRAME_SAMP, 0); + if(out_samples!=frame_size) { + fprintf(stderr,"opus_decode() returned %d\n",out_samples); + ret = -1; + break; + } + + samp_count += frame_size; + } while (samp_count < ((SSAMPLES/2)-MAX_FRAME_SAMP)); + + /* Clean up */ + free(inbuf); + free(outbuf); + return ret; +} + +void fuzz_encoder_settings(const int num_encoders, const int num_setting_changes) +{ + OpusEncoder *enc; + OpusDecoder *dec; + int i,j,err; + + /* Parameters to fuzz. Some values are duplicated to increase their probability of being tested. */ + int sampling_rates[5] = {8000, 12000, 16000, 24000, 48000}; + int channels[2] = {1, 2}; + int applications[3] = {OPUS_APPLICATION_AUDIO, OPUS_APPLICATION_VOIP, OPUS_APPLICATION_RESTRICTED_LOWDELAY}; + int bitrates[11] = {6000, 12000, 16000, 24000, 32000, 48000, 64000, 96000, 510000, OPUS_AUTO, OPUS_BITRATE_MAX}; + int force_channels[4] = {OPUS_AUTO, OPUS_AUTO, 1, 2}; + int use_vbr[3] = {0, 1, 1}; + int vbr_constraints[3] = {0, 1, 1}; + int complexities[11] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; + int max_bandwidths[6] = {OPUS_BANDWIDTH_NARROWBAND, OPUS_BANDWIDTH_MEDIUMBAND, + OPUS_BANDWIDTH_WIDEBAND, OPUS_BANDWIDTH_SUPERWIDEBAND, + OPUS_BANDWIDTH_FULLBAND, OPUS_BANDWIDTH_FULLBAND}; + int signals[4] = {OPUS_AUTO, OPUS_AUTO, OPUS_SIGNAL_VOICE, OPUS_SIGNAL_MUSIC}; + int inband_fecs[3] = {0, 0, 1}; + int packet_loss_perc[4] = {0, 1, 2, 5}; + int lsb_depths[2] = {8, 24}; + int prediction_disabled[3] = {0, 0, 1}; + int use_dtx[2] = {0, 1}; + int frame_sizes_ms_x2[9] = {5, 10, 20, 40, 80, 120, 160, 200, 240}; /* x2 to avoid 2.5 ms */ + + for (i=0; i=64000?2:1)))!=OPUS_OK)test_failed(); + if(opus_encoder_ctl(enc, OPUS_SET_COMPLEXITY((count>>2)%11))!=OPUS_OK)test_failed(); + if(opus_encoder_ctl(enc, OPUS_SET_PACKET_LOSS_PERC((fast_rand()&15)&(fast_rand()%15)))!=OPUS_OK)test_failed(); + bw=modes[j]==0?OPUS_BANDWIDTH_NARROWBAND+(fast_rand()%3): + modes[j]==1?OPUS_BANDWIDTH_SUPERWIDEBAND+(fast_rand()&1): + OPUS_BANDWIDTH_NARROWBAND+(fast_rand()%5); + if(modes[j]==2&&bw==OPUS_BANDWIDTH_MEDIUMBAND)bw+=3; + if(opus_encoder_ctl(enc, OPUS_SET_BANDWIDTH(bw))!=OPUS_OK)test_failed(); + len = opus_encode(enc, &inbuf[i<<1], frame_size, packet, MAX_PACKET); + if(len<0 || len>MAX_PACKET)test_failed(); + if(opus_encoder_ctl(enc, OPUS_GET_FINAL_RANGE(&enc_final_range))!=OPUS_OK)test_failed(); + if((fast_rand()&3)==0) + { + if(opus_packet_pad(packet,len,len+1)!=OPUS_OK)test_failed(); + len++; + } + if((fast_rand()&7)==0) + { + if(opus_packet_pad(packet,len,len+256)!=OPUS_OK)test_failed(); + len+=256; + } + if((fast_rand()&3)==0) + { + len=opus_packet_unpad(packet,len); + if(len<1)test_failed(); + } + out_samples = opus_decode(dec, packet, len, &outbuf[i<<1], MAX_FRAME_SAMP, 0); + if(out_samples!=frame_size)test_failed(); + if(opus_decoder_ctl(dec, OPUS_GET_FINAL_RANGE(&dec_final_range))!=OPUS_OK)test_failed(); + if(enc_final_range!=dec_final_range)test_failed(); + /*LBRR decode*/ + out_samples = opus_decode(dec_err[0], packet, len, out2buf, frame_size, (fast_rand()&3)!=0); + if(out_samples!=frame_size)test_failed(); + out_samples = opus_decode(dec_err[1], packet, (fast_rand()&3)==0?0:len, out2buf, MAX_FRAME_SAMP, (fast_rand()&7)!=0); + if(out_samples<120)test_failed(); + i+=frame_size; + count++; + }while(i<(SSAMPLES-MAX_FRAME_SAMP)); + fprintf(stdout," Mode %s FB encode %s, %6d bps OK.\n",mstrings[modes[j]],rc==0?" VBR":rc==1?"CVBR":" CBR",rate); + } + } + + if(opus_encoder_ctl(enc, OPUS_SET_FORCE_MODE(OPUS_AUTO))!=OPUS_OK)test_failed(); + if(opus_encoder_ctl(enc, OPUS_SET_FORCE_CHANNELS(OPUS_AUTO))!=OPUS_OK)test_failed(); + if(opus_encoder_ctl(enc, OPUS_SET_INBAND_FEC(0))!=OPUS_OK)test_failed(); + if(opus_encoder_ctl(enc, OPUS_SET_DTX(0))!=OPUS_OK)test_failed(); + + for(rc=0;rc<3;rc++) + { + if(opus_multistream_encoder_ctl(MSenc, OPUS_SET_VBR(rc<2))!=OPUS_OK)test_failed(); + if(opus_multistream_encoder_ctl(MSenc, OPUS_SET_VBR_CONSTRAINT(rc==1))!=OPUS_OK)test_failed(); + if(opus_multistream_encoder_ctl(MSenc, OPUS_SET_VBR_CONSTRAINT(rc==1))!=OPUS_OK)test_failed(); + if(opus_multistream_encoder_ctl(MSenc, OPUS_SET_INBAND_FEC(rc==0))!=OPUS_OK)test_failed(); + for(j=0;j<16;j++) + { + int rate; + int modes[16]={0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2}; + int rates[16]={4000,12000,32000,8000,16000,32000,48000,88000,4000,12000,32000,8000,16000,32000,48000,88000}; + int frame[16]={160*1,160,80,160,160,80,40,20,160*1,160,80,160,160,80,40,20}; + if(opus_multistream_encoder_ctl(MSenc, OPUS_SET_INBAND_FEC(rc==0&&j==1))!=OPUS_OK)test_failed(); + if(opus_multistream_encoder_ctl(MSenc, OPUS_SET_FORCE_MODE(MODE_SILK_ONLY+modes[j]))!=OPUS_OK)test_failed(); + rate=rates[j]+fast_rand()%rates[j]; + if(opus_multistream_encoder_ctl(MSenc, OPUS_SET_DTX(fast_rand()&1))!=OPUS_OK)test_failed(); + if(opus_multistream_encoder_ctl(MSenc, OPUS_SET_BITRATE(rate))!=OPUS_OK)test_failed(); + count=i=0; + do { + int len,out_samples,frame_size,loss; + opus_int32 pred; + if(opus_multistream_encoder_ctl(MSenc, OPUS_GET_PREDICTION_DISABLED(&pred))!=OPUS_OK)test_failed(); + if(opus_multistream_encoder_ctl(MSenc, OPUS_SET_PREDICTION_DISABLED((int)(fast_rand()&15)<(pred?11:4)))!=OPUS_OK)test_failed(); + frame_size=frame[j]; + if(opus_multistream_encoder_ctl(MSenc, OPUS_SET_COMPLEXITY((count>>2)%11))!=OPUS_OK)test_failed(); + if(opus_multistream_encoder_ctl(MSenc, OPUS_SET_PACKET_LOSS_PERC((fast_rand()&15)&(fast_rand()%15)))!=OPUS_OK)test_failed(); + if((fast_rand()&255)==0) + { + if(opus_multistream_encoder_ctl(MSenc, OPUS_RESET_STATE)!=OPUS_OK)test_failed(); + if(opus_multistream_decoder_ctl(MSdec, OPUS_RESET_STATE)!=OPUS_OK)test_failed(); + if((fast_rand()&3)!=0) + { + if(opus_multistream_decoder_ctl(MSdec_err, OPUS_RESET_STATE)!=OPUS_OK)test_failed(); + } + } + if((fast_rand()&255)==0) + { + if(opus_multistream_decoder_ctl(MSdec_err, OPUS_RESET_STATE)!=OPUS_OK)test_failed(); + } + len = opus_multistream_encode(MSenc, &inbuf[i<<1], frame_size, packet, MAX_PACKET); + if(len<0 || len>MAX_PACKET)test_failed(); + if(opus_multistream_encoder_ctl(MSenc, OPUS_GET_FINAL_RANGE(&enc_final_range))!=OPUS_OK)test_failed(); + if((fast_rand()&3)==0) + { + if(opus_multistream_packet_pad(packet,len,len+1,2)!=OPUS_OK)test_failed(); + len++; + } + if((fast_rand()&7)==0) + { + if(opus_multistream_packet_pad(packet,len,len+256,2)!=OPUS_OK)test_failed(); + len+=256; + } + if((fast_rand()&3)==0) + { + len=opus_multistream_packet_unpad(packet,len,2); + if(len<1)test_failed(); + } + out_samples = opus_multistream_decode(MSdec, packet, len, out2buf, MAX_FRAME_SAMP, 0); + if(out_samples!=frame_size*6)test_failed(); + if(opus_multistream_decoder_ctl(MSdec, OPUS_GET_FINAL_RANGE(&dec_final_range))!=OPUS_OK)test_failed(); + if(enc_final_range!=dec_final_range)test_failed(); + /*LBRR decode*/ + loss=(fast_rand()&63)==0; + out_samples = opus_multistream_decode(MSdec_err, packet, loss?0:len, out2buf, frame_size*6, (fast_rand()&3)!=0); + if(out_samples!=(frame_size*6))test_failed(); + i+=frame_size; + count++; + }while(i<(SSAMPLES/12-MAX_FRAME_SAMP)); + fprintf(stdout," Mode %s NB dual-mono MS encode %s, %6d bps OK.\n",mstrings[modes[j]],rc==0?" VBR":rc==1?"CVBR":" CBR",rate); + } + } + + bitrate_bps=512000; + fsize=fast_rand()%31; + fswitch=100; + + debruijn2(6,db62); + count=i=0; + do { + unsigned char toc; + const unsigned char *frames[48]; + short size[48]; + int payload_offset; + opus_uint32 dec_final_range2; + int jj,dec2; + int len,out_samples; + int frame_size=fsizes[db62[fsize]]; + opus_int32 offset=i%(SAMPLES-MAX_FRAME_SAMP); + + opus_encoder_ctl(enc, OPUS_SET_BITRATE(bitrate_bps)); + + len = opus_encode(enc, &inbuf[offset<<1], frame_size, packet, MAX_PACKET); + if(len<0 || len>MAX_PACKET)test_failed(); + count++; + + opus_encoder_ctl(enc, OPUS_GET_FINAL_RANGE(&enc_final_range)); + + out_samples = opus_decode(dec, packet, len, &outbuf[offset<<1], MAX_FRAME_SAMP, 0); + if(out_samples!=frame_size)test_failed(); + + opus_decoder_ctl(dec, OPUS_GET_FINAL_RANGE(&dec_final_range)); + + /* compare final range encoder rng values of encoder and decoder */ + if(dec_final_range!=enc_final_range)test_failed(); + + /* We fuzz the packet, but take care not to only corrupt the payload + Corrupted headers are tested elsewhere and we need to actually run + the decoders in order to compare them. */ + if(opus_packet_parse(packet,len,&toc,frames,size,&payload_offset)<=0)test_failed(); + if((fast_rand()&1023)==0)len=0; + for(j=(opus_int32)(frames[0]-packet);j0?packet:NULL, len, out2buf, MAX_FRAME_SAMP, 0); + if(out_samples<0||out_samples>MAX_FRAME_SAMP)test_failed(); + if((len>0&&out_samples!=frame_size))test_failed(); /*FIXME use lastframe*/ + + opus_decoder_ctl(dec_err[0], OPUS_GET_FINAL_RANGE(&dec_final_range)); + + /*randomly select one of the decoders to compare with*/ + dec2=fast_rand()%9+1; + out_samples = opus_decode(dec_err[dec2], len>0?packet:NULL, len, out2buf, MAX_FRAME_SAMP, 0); + if(out_samples<0||out_samples>MAX_FRAME_SAMP)test_failed(); /*FIXME, use factor, lastframe for loss*/ + + opus_decoder_ctl(dec_err[dec2], OPUS_GET_FINAL_RANGE(&dec_final_range2)); + if(len>0&&dec_final_range!=dec_final_range2)test_failed(); + + fswitch--; + if(fswitch<1) + { + int new_size; + fsize=(fsize+1)%36; + new_size=fsizes[db62[fsize]]; + if(new_size==960||new_size==480)fswitch=2880/new_size*(fast_rand()%19+1); + else fswitch=(fast_rand()%(2880/new_size))+1; + } + bitrate_bps=((fast_rand()%508000+4000)+bitrate_bps)>>1; + i+=frame_size; + }while(i] [-fuzz ]\n",_argv[0]); +} + +int main(int _argc, char **_argv) +{ + int args=1; + char * strtol_str=NULL; + const char * oversion; + const char * env_seed; + int env_used; + int num_encoders_to_fuzz=5; + int num_setting_changes=40; + + env_used=0; + env_seed=getenv("SEED"); + if(_argc>1) + iseed=strtol(_argv[1], &strtol_str, 10); /* the first input argument might be the seed */ + if(strtol_str!=NULL && strtol_str[0]=='\0') /* iseed is a valid number */ + args++; + else if(env_seed) { + iseed=atoi(env_seed); + env_used=1; + } + else iseed=(opus_uint32)time(NULL)^(((opus_uint32)getpid()&65535)<<16); + Rw=Rz=iseed; + + while(args<_argc) + { + if(strcmp(_argv[args], "-fuzz")==0 && _argc==(args+3)) { + num_encoders_to_fuzz=strtol(_argv[args+1], &strtol_str, 10); + if(strtol_str[0]!='\0' || num_encoders_to_fuzz<=0) { + print_usage(_argv); + return EXIT_FAILURE; + } + num_setting_changes=strtol(_argv[args+2], &strtol_str, 10); + if(strtol_str[0]!='\0' || num_setting_changes<=0) { + print_usage(_argv); + return EXIT_FAILURE; + } + args+=3; + } + else { + print_usage(_argv); + return EXIT_FAILURE; + } + } + + oversion=opus_get_version_string(); + if(!oversion)test_failed(); + fprintf(stderr,"Testing %s encoder. Random seed: %u (%.4X)\n", oversion, iseed, fast_rand() % 65535); + if(env_used)fprintf(stderr," Random seed set from the environment (SEED=%s).\n", env_seed); + + regression_test(); + + /*Setting TEST_OPUS_NOFUZZ tells the tool not to send garbage data + into the decoders. This is helpful because garbage data + may cause the decoders to clip, which angers CLANG IOC.*/ + run_test1(getenv("TEST_OPUS_NOFUZZ")!=NULL); + + /* Fuzz encoder settings online */ + if(getenv("TEST_OPUS_NOFUZZ")==NULL) { + fprintf(stderr,"Running fuzz_encoder_settings with %d encoder(s) and %d setting change(s) each.\n", + num_encoders_to_fuzz, num_setting_changes); + fuzz_encoder_settings(num_encoders_to_fuzz, num_setting_changes); + } + + fprintf(stderr,"Tests completed successfully.\n"); + + return 0; +} diff --git a/components/opus/libopus/tests/test_opus_padding.c b/components/opus/libopus/tests/test_opus_padding.c new file mode 100644 index 0000000..c22e8f0 --- /dev/null +++ b/components/opus/libopus/tests/test_opus_padding.c @@ -0,0 +1,93 @@ +/* Copyright (c) 2012 Xiph.Org Foundation + Written by Jüri Aedla and Ralph Giles */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/* Check for overflow in reading the padding length. + * http://lists.xiph.org/pipermail/opus/2012-November/001834.html + */ + +#include +#include +#include +#include "opus.h" +#include "test_opus_common.h" + +#define PACKETSIZE 16909318 +#define CHANNELS 2 +#define FRAMESIZE 5760 + +int test_overflow(void) +{ + OpusDecoder *decoder; + int result; + int error; + + unsigned char *in = malloc(PACKETSIZE); + opus_int16 *out = malloc(FRAMESIZE*CHANNELS*sizeof(*out)); + + fprintf(stderr, " Checking for padding overflow... "); + if (!in || !out) { + fprintf(stderr, "FAIL (out of memory)\n"); + return -1; + } + in[0] = 0xff; + in[1] = 0x41; + memset(in + 2, 0xff, PACKETSIZE - 3); + in[PACKETSIZE-1] = 0x0b; + + decoder = opus_decoder_create(48000, CHANNELS, &error); + result = opus_decode(decoder, in, PACKETSIZE, out, FRAMESIZE, 0); + opus_decoder_destroy(decoder); + + free(in); + free(out); + + if (result != OPUS_INVALID_PACKET) { + fprintf(stderr, "FAIL!\n"); + test_failed(); + } + + fprintf(stderr, "OK.\n"); + + return 1; +} + +int main(void) +{ + const char *oversion; + int tests = 0;; + + iseed = 0; + oversion = opus_get_version_string(); + if (!oversion) test_failed(); + fprintf(stderr, "Testing %s padding.\n", oversion); + + tests += test_overflow(); + + fprintf(stderr, "All padding tests passed.\n"); + + return 0; +} diff --git a/components/opus/libopus/tests/test_opus_projection.c b/components/opus/libopus/tests/test_opus_projection.c new file mode 100644 index 0000000..5f0d672 --- /dev/null +++ b/components/opus/libopus/tests/test_opus_projection.c @@ -0,0 +1,394 @@ +/* Copyright (c) 2017 Google Inc. + Written by Andrew Allen */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include +#include +#include +#include +#include "float_cast.h" +#include "opus.h" +#include "test_opus_common.h" +#include "opus_projection.h" +#include "mathops.h" +#include "../src/mapping_matrix.h" +#include "mathops.h" + +#define BUFFER_SIZE 960 +#define MAX_DATA_BYTES 32768 +#define MAX_FRAME_SAMPLES 5760 +#define ERROR_TOLERANCE 1 + +#define SIMPLE_MATRIX_SIZE 12 +#define SIMPLE_MATRIX_FRAME_SIZE 10 +#define SIMPLE_MATRIX_INPUT_SIZE 30 +#define SIMPLE_MATRIX_OUTPUT_SIZE 40 + +int assert_is_equal( + const opus_val16 *a, const opus_int16 *b, int size, opus_int16 tolerance) +{ + int i; + for (i = 0; i < size; i++) + { +#ifdef FIXED_POINT + opus_int16 val = a[i]; +#else + opus_int16 val = FLOAT2INT16(a[i]); +#endif + if (abs(val - b[i]) > tolerance) + return 1; + } + return 0; +} + +int assert_is_equal_short( + const opus_int16 *a, const opus_int16 *b, int size, opus_int16 tolerance) +{ + int i; + for (i = 0; i < size; i++) + if (abs(a[i] - b[i]) > tolerance) + return 1; + return 0; +} + +void test_simple_matrix(void) +{ + const MappingMatrix simple_matrix_params = {4, 3, 0}; + const opus_int16 simple_matrix_data[SIMPLE_MATRIX_SIZE] = {0, 32767, 0, 0, 32767, 0, 0, 0, 0, 0, 0, 32767}; + const opus_int16 input_int16[SIMPLE_MATRIX_INPUT_SIZE] = { + 32767, 0, -32768, 29491, -3277, -29491, 26214, -6554, -26214, 22938, -9830, + -22938, 19661, -13107, -19661, 16384, -16384, -16384, 13107, -19661, -13107, + 9830, -22938, -9830, 6554, -26214, -6554, 3277, -29491, -3277}; + const opus_int16 expected_output_int16[SIMPLE_MATRIX_OUTPUT_SIZE] = { + 0, 32767, 0, -32768, -3277, 29491, 0, -29491, -6554, 26214, 0, -26214, + -9830, 22938, 0, -22938, -13107, 19661, 0, -19661, -16384, 16384, 0, -16384, + -19661, 13107, 0, -13107, -22938, 9830, 0, -9830, -26214, 6554, 0, -6554, + -29491, 3277, 0, -3277}; + + int i, ret; + opus_int32 simple_matrix_size; + opus_val16 *input_val16; + opus_val16 *output_val16; + opus_int16 *output_int16; + MappingMatrix *simple_matrix; + + /* Allocate input/output buffers. */ + input_val16 = (opus_val16 *)opus_alloc(sizeof(opus_val16) * SIMPLE_MATRIX_INPUT_SIZE); + output_int16 = (opus_int16 *)opus_alloc(sizeof(opus_int16) * SIMPLE_MATRIX_OUTPUT_SIZE); + output_val16 = (opus_val16 *)opus_alloc(sizeof(opus_val16) * SIMPLE_MATRIX_OUTPUT_SIZE); + + /* Initialize matrix */ + simple_matrix_size = mapping_matrix_get_size(simple_matrix_params.rows, + simple_matrix_params.cols); + if (!simple_matrix_size) + test_failed(); + + simple_matrix = (MappingMatrix *)opus_alloc(simple_matrix_size); + mapping_matrix_init(simple_matrix, simple_matrix_params.rows, + simple_matrix_params.cols, simple_matrix_params.gain, simple_matrix_data, + sizeof(simple_matrix_data)); + + /* Copy inputs. */ + for (i = 0; i < SIMPLE_MATRIX_INPUT_SIZE; i++) + { +#ifdef FIXED_POINT + input_val16[i] = input_int16[i]; +#else + input_val16[i] = (1/32768.f)*input_int16[i]; +#endif + } + + /* _in_short */ + for (i = 0; i < SIMPLE_MATRIX_OUTPUT_SIZE; i++) + output_val16[i] = 0; + for (i = 0; i < simple_matrix->rows; i++) + { + mapping_matrix_multiply_channel_in_short(simple_matrix, + input_int16, simple_matrix->cols, &output_val16[i], i, + simple_matrix->rows, SIMPLE_MATRIX_FRAME_SIZE); + } + ret = assert_is_equal(output_val16, expected_output_int16, SIMPLE_MATRIX_OUTPUT_SIZE, ERROR_TOLERANCE); + if (ret) + test_failed(); + + /* _out_short */ + for (i = 0; i < SIMPLE_MATRIX_OUTPUT_SIZE; i++) + output_int16[i] = 0; + for (i = 0; i < simple_matrix->cols; i++) + { + mapping_matrix_multiply_channel_out_short(simple_matrix, + &input_val16[i], i, simple_matrix->cols, output_int16, + simple_matrix->rows, SIMPLE_MATRIX_FRAME_SIZE); + } + ret = assert_is_equal_short(output_int16, expected_output_int16, SIMPLE_MATRIX_OUTPUT_SIZE, ERROR_TOLERANCE); + if (ret) + test_failed(); + +#if !defined(DISABLE_FLOAT_API) && !defined(FIXED_POINT) + /* _in_float */ + for (i = 0; i < SIMPLE_MATRIX_OUTPUT_SIZE; i++) + output_val16[i] = 0; + for (i = 0; i < simple_matrix->rows; i++) + { + mapping_matrix_multiply_channel_in_float(simple_matrix, + input_val16, simple_matrix->cols, &output_val16[i], i, + simple_matrix->rows, SIMPLE_MATRIX_FRAME_SIZE); + } + ret = assert_is_equal(output_val16, expected_output_int16, SIMPLE_MATRIX_OUTPUT_SIZE, ERROR_TOLERANCE); + if (ret) + test_failed(); + + /* _out_float */ + for (i = 0; i < SIMPLE_MATRIX_OUTPUT_SIZE; i++) + output_val16[i] = 0; + for (i = 0; i < simple_matrix->cols; i++) + { + mapping_matrix_multiply_channel_out_float(simple_matrix, + &input_val16[i], i, simple_matrix->cols, output_val16, + simple_matrix->rows, SIMPLE_MATRIX_FRAME_SIZE); + } + ret = assert_is_equal(output_val16, expected_output_int16, SIMPLE_MATRIX_OUTPUT_SIZE, ERROR_TOLERANCE); + if (ret) + test_failed(); +#endif + + opus_free(input_val16); + opus_free(output_int16); + opus_free(output_val16); + opus_free(simple_matrix); +} + +void test_creation_arguments(const int channels, const int mapping_family) +{ + int streams; + int coupled_streams; + int enc_error; + int dec_error; + int ret; + OpusProjectionEncoder *st_enc = NULL; + OpusProjectionDecoder *st_dec = NULL; + + const opus_int32 Fs = 48000; + const int application = OPUS_APPLICATION_AUDIO; + + int order_plus_one = (int)floor(sqrt((float)channels)); + int nondiegetic_channels = channels - order_plus_one * order_plus_one; + + int is_channels_valid = 0; + int is_projection_valid = 0; + + st_enc = opus_projection_ambisonics_encoder_create(Fs, channels, + mapping_family, &streams, &coupled_streams, application, &enc_error); + if (st_enc != NULL) + { + opus_int32 matrix_size; + unsigned char *matrix; + + ret = opus_projection_encoder_ctl(st_enc, + OPUS_PROJECTION_GET_DEMIXING_MATRIX_SIZE_REQUEST, &matrix_size); + if (ret != OPUS_OK || !matrix_size) + test_failed(); + + matrix = (unsigned char *)opus_alloc(matrix_size); + ret = opus_projection_encoder_ctl(st_enc, + OPUS_PROJECTION_GET_DEMIXING_MATRIX_REQUEST, matrix, matrix_size); + + opus_projection_encoder_destroy(st_enc); + + st_dec = opus_projection_decoder_create(Fs, channels, streams, + coupled_streams, matrix, matrix_size, &dec_error); + if (st_dec != NULL) + { + opus_projection_decoder_destroy(st_dec); + } + opus_free(matrix); + } + + is_channels_valid = (order_plus_one >= 2 && order_plus_one <= 4) && + (nondiegetic_channels == 0 || nondiegetic_channels == 2); + is_projection_valid = (enc_error == OPUS_OK && dec_error == OPUS_OK); + if (is_channels_valid ^ is_projection_valid) + { + fprintf(stderr, "Channels: %d, Family: %d\n", channels, mapping_family); + fprintf(stderr, "Order+1: %d, Non-diegetic Channels: %d\n", + order_plus_one, nondiegetic_channels); + fprintf(stderr, "Streams: %d, Coupled Streams: %d\n", + streams, coupled_streams); + test_failed(); + } +} + +void generate_music(short *buf, opus_int32 len, opus_int32 channels) +{ + opus_int32 i,j,k; + opus_int32 *a,*b,*c,*d; + a = (opus_int32 *)malloc(sizeof(opus_int32) * channels); + b = (opus_int32 *)malloc(sizeof(opus_int32) * channels); + c = (opus_int32 *)malloc(sizeof(opus_int32) * channels); + d = (opus_int32 *)malloc(sizeof(opus_int32) * channels); + memset(a, 0, sizeof(opus_int32) * channels); + memset(b, 0, sizeof(opus_int32) * channels); + memset(c, 0, sizeof(opus_int32) * channels); + memset(d, 0, sizeof(opus_int32) * channels); + j=0; + + for(i=0;i>12)^((j>>10|j>>12)&26&j>>7)))&128)+128)<<15; + r=fast_rand();v+=r&65535;v-=r>>16; + b[k]=v-a[k]+((b[k]*61+32)>>6);a[k]=v; + c[k]=(30*(c[k]+b[k]+d[k])+32)>>6;d[k]=b[k]; + v=(c[k]+128)>>8; + buf[i*channels+k]=v>32767?32767:(v<-32768?-32768:v); + if(i%6==0)j++; + } + } + + free(a); + free(b); + free(c); + free(d); +} + +void test_encode_decode(opus_int32 bitrate, opus_int32 channels, + const int mapping_family) +{ + const opus_int32 Fs = 48000; + const int application = OPUS_APPLICATION_AUDIO; + + OpusProjectionEncoder *st_enc; + OpusProjectionDecoder *st_dec; + int streams; + int coupled; + int error; + short *buffer_in; + short *buffer_out; + unsigned char data[MAX_DATA_BYTES] = { 0 }; + int len; + int out_samples; + opus_int32 matrix_size = 0; + unsigned char *matrix = NULL; + + buffer_in = (short *)malloc(sizeof(short) * BUFFER_SIZE * channels); + buffer_out = (short *)malloc(sizeof(short) * BUFFER_SIZE * channels); + + st_enc = opus_projection_ambisonics_encoder_create(Fs, channels, + mapping_family, &streams, &coupled, application, &error); + if (error != OPUS_OK) { + fprintf(stderr, + "Couldn\'t create encoder with %d channels and mapping family %d.\n", + channels, mapping_family); + free(buffer_in); + free(buffer_out); + test_failed(); + } + + error = opus_projection_encoder_ctl(st_enc, + OPUS_SET_BITRATE(bitrate * 1000 * (streams + coupled))); + if (error != OPUS_OK) + { + goto bad_cleanup; + } + + error = opus_projection_encoder_ctl(st_enc, + OPUS_PROJECTION_GET_DEMIXING_MATRIX_SIZE_REQUEST, &matrix_size); + if (error != OPUS_OK || !matrix_size) + { + goto bad_cleanup; + } + + matrix = (unsigned char *)opus_alloc(matrix_size); + error = opus_projection_encoder_ctl(st_enc, + OPUS_PROJECTION_GET_DEMIXING_MATRIX_REQUEST, matrix, matrix_size); + + st_dec = opus_projection_decoder_create(Fs, channels, streams, coupled, + matrix, matrix_size, &error); + opus_free(matrix); + + if (error != OPUS_OK) { + fprintf(stderr, + "Couldn\'t create decoder with %d channels, %d streams " + "and %d coupled streams.\n", channels, streams, coupled); + goto bad_cleanup; + } + + generate_music(buffer_in, BUFFER_SIZE, channels); + + len = opus_projection_encode( + st_enc, buffer_in, BUFFER_SIZE, data, MAX_DATA_BYTES); + if(len<0 || len>MAX_DATA_BYTES) { + fprintf(stderr,"opus_encode() returned %d\n", len); + goto bad_cleanup; + } + + out_samples = opus_projection_decode( + st_dec, data, len, buffer_out, MAX_FRAME_SAMPLES, 0); + if(out_samples!=BUFFER_SIZE) { + fprintf(stderr,"opus_decode() returned %d\n", out_samples); + goto bad_cleanup; + } + + opus_projection_decoder_destroy(st_dec); + opus_projection_encoder_destroy(st_enc); + free(buffer_in); + free(buffer_out); + return; +bad_cleanup: + free(buffer_in); + free(buffer_out); + test_failed(); +} + +int main(int _argc, char **_argv) +{ + unsigned int i; + + (void)_argc; + (void)_argv; + + /* Test simple matrix multiplication routines. */ + test_simple_matrix(); + + /* Test full range of channels in creation arguments. */ + for (i = 0; i < 255; i++) + test_creation_arguments(i, 3); + + /* Test encode/decode pipeline. */ + test_encode_decode(64 * 18, 18, 3); + + fprintf(stderr, "All projection tests passed.\n"); + return 0; +} + diff --git a/components/opus/libopus/win32/VS2015/common.props b/components/opus/libopus/win32/VS2015/common.props new file mode 100644 index 0000000..6c757d8 --- /dev/null +++ b/components/opus/libopus/win32/VS2015/common.props @@ -0,0 +1,82 @@ + + + + + + $(Platform)\$(Configuration)\ + $(Platform)\$(Configuration)\$(ProjectName)\ + Unicode + + + true + true + false + + + false + false + true + + + + Level3 + false + false + ..\..;..\..\include;..\..\silk;..\..\celt;..\..\win32;%(AdditionalIncludeDirectories) + HAVE_CONFIG_H;WIN32;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + false + false + + + Console + + + true + Console + + + + + Guard + ProgramDatabase + NoExtensions + false + true + false + Disabled + false + false + Disabled + MultiThreadedDebug + MultiThreadedDebugDLL + true + false + + + true + + + + + false + None + true + true + false + Speed + Fast + Precise + true + true + true + MaxSpeed + MultiThreaded + MultiThreadedDLL + 16Bytes + + + false + + + + \ No newline at end of file diff --git a/components/opus/libopus/win32/VS2015/opus.sln b/components/opus/libopus/win32/VS2015/opus.sln new file mode 100644 index 0000000..7b678e7 --- /dev/null +++ b/components/opus/libopus/win32/VS2015/opus.sln @@ -0,0 +1,168 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 14 +VisualStudioVersion = 14.0.25420.1 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "opus", "opus.vcxproj", "{219EC965-228A-1824-174D-96449D05F88A}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "opus_demo", "opus_demo.vcxproj", "{016C739D-6389-43BF-8D88-24B2BF6F620F}" + ProjectSection(ProjectDependencies) = postProject + {219EC965-228A-1824-174D-96449D05F88A} = {219EC965-228A-1824-174D-96449D05F88A} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test_opus_api", "test_opus_api.vcxproj", "{1D257A17-D254-42E5-82D6-1C87A6EC775A}" + ProjectSection(ProjectDependencies) = postProject + {219EC965-228A-1824-174D-96449D05F88A} = {219EC965-228A-1824-174D-96449D05F88A} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test_opus_decode", "test_opus_decode.vcxproj", "{8578322A-1883-486B-B6FA-E0094B65C9F2}" + ProjectSection(ProjectDependencies) = postProject + {219EC965-228A-1824-174D-96449D05F88A} = {219EC965-228A-1824-174D-96449D05F88A} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test_opus_encode", "test_opus_encode.vcxproj", "{84DAA768-1A38-4312-BB61-4C78BB59E5B8}" + ProjectSection(ProjectDependencies) = postProject + {219EC965-228A-1824-174D-96449D05F88A} = {219EC965-228A-1824-174D-96449D05F88A} + EndProjectSection +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Debug|x64 = Debug|x64 + DebugDLL_fixed|Win32 = DebugDLL_fixed|Win32 + DebugDLL_fixed|x64 = DebugDLL_fixed|x64 + DebugDLL|Win32 = DebugDLL|Win32 + DebugDLL|x64 = DebugDLL|x64 + Release|Win32 = Release|Win32 + Release|x64 = Release|x64 + ReleaseDLL_fixed|Win32 = ReleaseDLL_fixed|Win32 + ReleaseDLL_fixed|x64 = ReleaseDLL_fixed|x64 + ReleaseDLL|Win32 = ReleaseDLL|Win32 + ReleaseDLL|x64 = ReleaseDLL|x64 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {219EC965-228A-1824-174D-96449D05F88A}.Debug|Win32.ActiveCfg = Debug|Win32 + {219EC965-228A-1824-174D-96449D05F88A}.Debug|Win32.Build.0 = Debug|Win32 + {219EC965-228A-1824-174D-96449D05F88A}.Debug|x64.ActiveCfg = Debug|x64 + {219EC965-228A-1824-174D-96449D05F88A}.Debug|x64.Build.0 = Debug|x64 + {219EC965-228A-1824-174D-96449D05F88A}.DebugDLL_fixed|Win32.ActiveCfg = DebugDLL_fixed|Win32 + {219EC965-228A-1824-174D-96449D05F88A}.DebugDLL_fixed|Win32.Build.0 = DebugDLL_fixed|Win32 + {219EC965-228A-1824-174D-96449D05F88A}.DebugDLL_fixed|x64.ActiveCfg = DebugDLL_fixed|x64 + {219EC965-228A-1824-174D-96449D05F88A}.DebugDLL_fixed|x64.Build.0 = DebugDLL_fixed|x64 + {219EC965-228A-1824-174D-96449D05F88A}.DebugDLL|Win32.ActiveCfg = DebugDLL|Win32 + {219EC965-228A-1824-174D-96449D05F88A}.DebugDLL|Win32.Build.0 = DebugDLL|Win32 + {219EC965-228A-1824-174D-96449D05F88A}.DebugDLL|x64.ActiveCfg = DebugDLL|x64 + {219EC965-228A-1824-174D-96449D05F88A}.DebugDLL|x64.Build.0 = DebugDLL|x64 + {219EC965-228A-1824-174D-96449D05F88A}.Release|Win32.ActiveCfg = Release|Win32 + {219EC965-228A-1824-174D-96449D05F88A}.Release|Win32.Build.0 = Release|Win32 + {219EC965-228A-1824-174D-96449D05F88A}.Release|x64.ActiveCfg = Release|x64 + {219EC965-228A-1824-174D-96449D05F88A}.Release|x64.Build.0 = Release|x64 + {219EC965-228A-1824-174D-96449D05F88A}.ReleaseDLL_fixed|Win32.ActiveCfg = ReleaseDLL_fixed|Win32 + {219EC965-228A-1824-174D-96449D05F88A}.ReleaseDLL_fixed|Win32.Build.0 = ReleaseDLL_fixed|Win32 + {219EC965-228A-1824-174D-96449D05F88A}.ReleaseDLL_fixed|x64.ActiveCfg = ReleaseDLL_fixed|x64 + {219EC965-228A-1824-174D-96449D05F88A}.ReleaseDLL_fixed|x64.Build.0 = ReleaseDLL_fixed|x64 + {219EC965-228A-1824-174D-96449D05F88A}.ReleaseDLL|Win32.ActiveCfg = ReleaseDLL|Win32 + {219EC965-228A-1824-174D-96449D05F88A}.ReleaseDLL|Win32.Build.0 = ReleaseDLL|Win32 + {219EC965-228A-1824-174D-96449D05F88A}.ReleaseDLL|x64.ActiveCfg = ReleaseDLL|x64 + {219EC965-228A-1824-174D-96449D05F88A}.ReleaseDLL|x64.Build.0 = ReleaseDLL|x64 + {016C739D-6389-43BF-8D88-24B2BF6F620F}.Debug|Win32.ActiveCfg = Debug|Win32 + {016C739D-6389-43BF-8D88-24B2BF6F620F}.Debug|Win32.Build.0 = Debug|Win32 + {016C739D-6389-43BF-8D88-24B2BF6F620F}.Debug|x64.ActiveCfg = Debug|x64 + {016C739D-6389-43BF-8D88-24B2BF6F620F}.Debug|x64.Build.0 = Debug|x64 + {016C739D-6389-43BF-8D88-24B2BF6F620F}.DebugDLL_fixed|Win32.ActiveCfg = DebugDLL_fixed|Win32 + {016C739D-6389-43BF-8D88-24B2BF6F620F}.DebugDLL_fixed|Win32.Build.0 = DebugDLL_fixed|Win32 + {016C739D-6389-43BF-8D88-24B2BF6F620F}.DebugDLL_fixed|x64.ActiveCfg = DebugDLL_fixed|x64 + {016C739D-6389-43BF-8D88-24B2BF6F620F}.DebugDLL_fixed|x64.Build.0 = DebugDLL_fixed|x64 + {016C739D-6389-43BF-8D88-24B2BF6F620F}.DebugDLL|Win32.ActiveCfg = DebugDLL|Win32 + {016C739D-6389-43BF-8D88-24B2BF6F620F}.DebugDLL|Win32.Build.0 = DebugDLL|Win32 + {016C739D-6389-43BF-8D88-24B2BF6F620F}.DebugDLL|x64.ActiveCfg = DebugDLL|x64 + {016C739D-6389-43BF-8D88-24B2BF6F620F}.DebugDLL|x64.Build.0 = DebugDLL|x64 + {016C739D-6389-43BF-8D88-24B2BF6F620F}.Release|Win32.ActiveCfg = Release|Win32 + {016C739D-6389-43BF-8D88-24B2BF6F620F}.Release|Win32.Build.0 = Release|Win32 + {016C739D-6389-43BF-8D88-24B2BF6F620F}.Release|x64.ActiveCfg = Release|x64 + {016C739D-6389-43BF-8D88-24B2BF6F620F}.Release|x64.Build.0 = Release|x64 + {016C739D-6389-43BF-8D88-24B2BF6F620F}.ReleaseDLL_fixed|Win32.ActiveCfg = ReleaseDLL_fixed|Win32 + {016C739D-6389-43BF-8D88-24B2BF6F620F}.ReleaseDLL_fixed|Win32.Build.0 = ReleaseDLL_fixed|Win32 + {016C739D-6389-43BF-8D88-24B2BF6F620F}.ReleaseDLL_fixed|x64.ActiveCfg = ReleaseDLL_fixed|x64 + {016C739D-6389-43BF-8D88-24B2BF6F620F}.ReleaseDLL_fixed|x64.Build.0 = ReleaseDLL_fixed|x64 + {016C739D-6389-43BF-8D88-24B2BF6F620F}.ReleaseDLL|Win32.ActiveCfg = ReleaseDLL|Win32 + {016C739D-6389-43BF-8D88-24B2BF6F620F}.ReleaseDLL|Win32.Build.0 = ReleaseDLL|Win32 + {016C739D-6389-43BF-8D88-24B2BF6F620F}.ReleaseDLL|x64.ActiveCfg = ReleaseDLL|x64 + {016C739D-6389-43BF-8D88-24B2BF6F620F}.ReleaseDLL|x64.Build.0 = ReleaseDLL|x64 + {1D257A17-D254-42E5-82D6-1C87A6EC775A}.Debug|Win32.ActiveCfg = Debug|Win32 + {1D257A17-D254-42E5-82D6-1C87A6EC775A}.Debug|Win32.Build.0 = Debug|Win32 + {1D257A17-D254-42E5-82D6-1C87A6EC775A}.Debug|x64.ActiveCfg = Debug|x64 + {1D257A17-D254-42E5-82D6-1C87A6EC775A}.Debug|x64.Build.0 = Debug|x64 + {1D257A17-D254-42E5-82D6-1C87A6EC775A}.DebugDLL_fixed|Win32.ActiveCfg = DebugDLL_fixed|Win32 + {1D257A17-D254-42E5-82D6-1C87A6EC775A}.DebugDLL_fixed|Win32.Build.0 = DebugDLL_fixed|Win32 + {1D257A17-D254-42E5-82D6-1C87A6EC775A}.DebugDLL_fixed|x64.ActiveCfg = DebugDLL_fixed|x64 + {1D257A17-D254-42E5-82D6-1C87A6EC775A}.DebugDLL_fixed|x64.Build.0 = DebugDLL_fixed|x64 + {1D257A17-D254-42E5-82D6-1C87A6EC775A}.DebugDLL|Win32.ActiveCfg = DebugDLL|Win32 + {1D257A17-D254-42E5-82D6-1C87A6EC775A}.DebugDLL|Win32.Build.0 = DebugDLL|Win32 + {1D257A17-D254-42E5-82D6-1C87A6EC775A}.DebugDLL|x64.ActiveCfg = DebugDLL|x64 + {1D257A17-D254-42E5-82D6-1C87A6EC775A}.DebugDLL|x64.Build.0 = DebugDLL|x64 + {1D257A17-D254-42E5-82D6-1C87A6EC775A}.Release|Win32.ActiveCfg = Release|Win32 + {1D257A17-D254-42E5-82D6-1C87A6EC775A}.Release|Win32.Build.0 = Release|Win32 + {1D257A17-D254-42E5-82D6-1C87A6EC775A}.Release|x64.ActiveCfg = Release|x64 + {1D257A17-D254-42E5-82D6-1C87A6EC775A}.Release|x64.Build.0 = Release|x64 + {1D257A17-D254-42E5-82D6-1C87A6EC775A}.ReleaseDLL_fixed|Win32.ActiveCfg = ReleaseDLL_fixed|Win32 + {1D257A17-D254-42E5-82D6-1C87A6EC775A}.ReleaseDLL_fixed|Win32.Build.0 = ReleaseDLL_fixed|Win32 + {1D257A17-D254-42E5-82D6-1C87A6EC775A}.ReleaseDLL_fixed|x64.ActiveCfg = ReleaseDLL_fixed|x64 + {1D257A17-D254-42E5-82D6-1C87A6EC775A}.ReleaseDLL_fixed|x64.Build.0 = ReleaseDLL_fixed|x64 + {1D257A17-D254-42E5-82D6-1C87A6EC775A}.ReleaseDLL|Win32.ActiveCfg = ReleaseDLL|Win32 + {1D257A17-D254-42E5-82D6-1C87A6EC775A}.ReleaseDLL|Win32.Build.0 = ReleaseDLL|Win32 + {1D257A17-D254-42E5-82D6-1C87A6EC775A}.ReleaseDLL|x64.ActiveCfg = ReleaseDLL|x64 + {1D257A17-D254-42E5-82D6-1C87A6EC775A}.ReleaseDLL|x64.Build.0 = ReleaseDLL|x64 + {8578322A-1883-486B-B6FA-E0094B65C9F2}.Debug|Win32.ActiveCfg = Debug|Win32 + {8578322A-1883-486B-B6FA-E0094B65C9F2}.Debug|Win32.Build.0 = Debug|Win32 + {8578322A-1883-486B-B6FA-E0094B65C9F2}.Debug|x64.ActiveCfg = Debug|x64 + {8578322A-1883-486B-B6FA-E0094B65C9F2}.Debug|x64.Build.0 = Debug|x64 + {8578322A-1883-486B-B6FA-E0094B65C9F2}.DebugDLL_fixed|Win32.ActiveCfg = DebugDLL_fixed|Win32 + {8578322A-1883-486B-B6FA-E0094B65C9F2}.DebugDLL_fixed|Win32.Build.0 = DebugDLL_fixed|Win32 + {8578322A-1883-486B-B6FA-E0094B65C9F2}.DebugDLL_fixed|x64.ActiveCfg = DebugDLL_fixed|x64 + {8578322A-1883-486B-B6FA-E0094B65C9F2}.DebugDLL_fixed|x64.Build.0 = DebugDLL_fixed|x64 + {8578322A-1883-486B-B6FA-E0094B65C9F2}.DebugDLL|Win32.ActiveCfg = DebugDLL|Win32 + {8578322A-1883-486B-B6FA-E0094B65C9F2}.DebugDLL|Win32.Build.0 = DebugDLL|Win32 + {8578322A-1883-486B-B6FA-E0094B65C9F2}.DebugDLL|x64.ActiveCfg = DebugDLL|x64 + {8578322A-1883-486B-B6FA-E0094B65C9F2}.DebugDLL|x64.Build.0 = DebugDLL|x64 + {8578322A-1883-486B-B6FA-E0094B65C9F2}.Release|Win32.ActiveCfg = Release|Win32 + {8578322A-1883-486B-B6FA-E0094B65C9F2}.Release|Win32.Build.0 = Release|Win32 + {8578322A-1883-486B-B6FA-E0094B65C9F2}.Release|x64.ActiveCfg = Release|x64 + {8578322A-1883-486B-B6FA-E0094B65C9F2}.Release|x64.Build.0 = Release|x64 + {8578322A-1883-486B-B6FA-E0094B65C9F2}.ReleaseDLL_fixed|Win32.ActiveCfg = ReleaseDLL_fixed|Win32 + {8578322A-1883-486B-B6FA-E0094B65C9F2}.ReleaseDLL_fixed|Win32.Build.0 = ReleaseDLL_fixed|Win32 + {8578322A-1883-486B-B6FA-E0094B65C9F2}.ReleaseDLL_fixed|x64.ActiveCfg = ReleaseDLL_fixed|x64 + {8578322A-1883-486B-B6FA-E0094B65C9F2}.ReleaseDLL_fixed|x64.Build.0 = ReleaseDLL_fixed|x64 + {8578322A-1883-486B-B6FA-E0094B65C9F2}.ReleaseDLL|Win32.ActiveCfg = ReleaseDLL|Win32 + {8578322A-1883-486B-B6FA-E0094B65C9F2}.ReleaseDLL|Win32.Build.0 = ReleaseDLL|Win32 + {8578322A-1883-486B-B6FA-E0094B65C9F2}.ReleaseDLL|x64.ActiveCfg = ReleaseDLL|x64 + {8578322A-1883-486B-B6FA-E0094B65C9F2}.ReleaseDLL|x64.Build.0 = ReleaseDLL|x64 + {84DAA768-1A38-4312-BB61-4C78BB59E5B8}.Debug|Win32.ActiveCfg = Debug|Win32 + {84DAA768-1A38-4312-BB61-4C78BB59E5B8}.Debug|Win32.Build.0 = Debug|Win32 + {84DAA768-1A38-4312-BB61-4C78BB59E5B8}.Debug|x64.ActiveCfg = Debug|x64 + {84DAA768-1A38-4312-BB61-4C78BB59E5B8}.Debug|x64.Build.0 = Debug|x64 + {84DAA768-1A38-4312-BB61-4C78BB59E5B8}.DebugDLL_fixed|Win32.ActiveCfg = DebugDLL_fixed|Win32 + {84DAA768-1A38-4312-BB61-4C78BB59E5B8}.DebugDLL_fixed|Win32.Build.0 = DebugDLL_fixed|Win32 + {84DAA768-1A38-4312-BB61-4C78BB59E5B8}.DebugDLL_fixed|x64.ActiveCfg = DebugDLL_fixed|x64 + {84DAA768-1A38-4312-BB61-4C78BB59E5B8}.DebugDLL_fixed|x64.Build.0 = DebugDLL_fixed|x64 + {84DAA768-1A38-4312-BB61-4C78BB59E5B8}.DebugDLL|Win32.ActiveCfg = DebugDLL|Win32 + {84DAA768-1A38-4312-BB61-4C78BB59E5B8}.DebugDLL|Win32.Build.0 = DebugDLL|Win32 + {84DAA768-1A38-4312-BB61-4C78BB59E5B8}.DebugDLL|x64.ActiveCfg = DebugDLL|x64 + {84DAA768-1A38-4312-BB61-4C78BB59E5B8}.DebugDLL|x64.Build.0 = DebugDLL|x64 + {84DAA768-1A38-4312-BB61-4C78BB59E5B8}.Release|Win32.ActiveCfg = Release|Win32 + {84DAA768-1A38-4312-BB61-4C78BB59E5B8}.Release|Win32.Build.0 = Release|Win32 + {84DAA768-1A38-4312-BB61-4C78BB59E5B8}.Release|x64.ActiveCfg = Release|x64 + {84DAA768-1A38-4312-BB61-4C78BB59E5B8}.Release|x64.Build.0 = Release|x64 + {84DAA768-1A38-4312-BB61-4C78BB59E5B8}.ReleaseDLL_fixed|Win32.ActiveCfg = ReleaseDLL_fixed|Win32 + {84DAA768-1A38-4312-BB61-4C78BB59E5B8}.ReleaseDLL_fixed|Win32.Build.0 = ReleaseDLL_fixed|Win32 + {84DAA768-1A38-4312-BB61-4C78BB59E5B8}.ReleaseDLL_fixed|x64.ActiveCfg = ReleaseDLL_fixed|x64 + {84DAA768-1A38-4312-BB61-4C78BB59E5B8}.ReleaseDLL_fixed|x64.Build.0 = ReleaseDLL_fixed|x64 + {84DAA768-1A38-4312-BB61-4C78BB59E5B8}.ReleaseDLL|Win32.ActiveCfg = ReleaseDLL|Win32 + {84DAA768-1A38-4312-BB61-4C78BB59E5B8}.ReleaseDLL|Win32.Build.0 = ReleaseDLL|Win32 + {84DAA768-1A38-4312-BB61-4C78BB59E5B8}.ReleaseDLL|x64.ActiveCfg = ReleaseDLL|x64 + {84DAA768-1A38-4312-BB61-4C78BB59E5B8}.ReleaseDLL|x64.Build.0 = ReleaseDLL|x64 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/components/opus/libopus/win32/VS2015/opus.vcxproj b/components/opus/libopus/win32/VS2015/opus.vcxproj new file mode 100644 index 0000000..34b1233 --- /dev/null +++ b/components/opus/libopus/win32/VS2015/opus.vcxproj @@ -0,0 +1,399 @@ + + + + + DebugDLL_fixed + Win32 + + + DebugDLL_fixed + x64 + + + DebugDLL + Win32 + + + DebugDLL + x64 + + + Debug + Win32 + + + Debug + x64 + + + ReleaseDLL_fixed + Win32 + + + ReleaseDLL_fixed + x64 + + + ReleaseDLL + Win32 + + + ReleaseDLL + x64 + + + Release + Win32 + + + Release + x64 + + + + Win32Proj + opus + {219EC965-228A-1824-174D-96449D05F88A} + + + + StaticLibrary + v140 + + + DynamicLibrary + v140 + + + DynamicLibrary + v140 + + + StaticLibrary + v140 + + + DynamicLibrary + v140 + + + DynamicLibrary + v140 + + + StaticLibrary + v140 + + + DynamicLibrary + v140 + + + DynamicLibrary + v140 + + + StaticLibrary + v140 + + + DynamicLibrary + v140 + + + DynamicLibrary + v140 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ..\..\silk\fixed;..\..\silk\float;%(AdditionalIncludeDirectories) + DLL_EXPORT;%(PreprocessorDefinitions) + FIXED_POINT;%(PreprocessorDefinitions) + /arch:IA32 %(AdditionalOptions) + + + /ignore:4221 %(AdditionalOptions) + + + "$(ProjectDir)..\..\win32\genversion.bat" "$(ProjectDir)..\..\win32\version.h" PACKAGE_VERSION + Generating version.h + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 4244;%(DisableSpecificWarnings) + + + + + + + + + + + + + + + false + + + false + + + true + + + + + + + true + + + true + + + false + + + + + + + + diff --git a/components/opus/libopus/win32/VS2015/opus.vcxproj.filters b/components/opus/libopus/win32/VS2015/opus.vcxproj.filters new file mode 100644 index 0000000..8c61d6a --- /dev/null +++ b/components/opus/libopus/win32/VS2015/opus.vcxproj.filters @@ -0,0 +1,585 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav + + + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + diff --git a/components/opus/libopus/win32/VS2015/opus_demo.vcxproj b/components/opus/libopus/win32/VS2015/opus_demo.vcxproj new file mode 100644 index 0000000..f4344e5 --- /dev/null +++ b/components/opus/libopus/win32/VS2015/opus_demo.vcxproj @@ -0,0 +1,171 @@ + + + + + DebugDLL_fixed + Win32 + + + DebugDLL_fixed + x64 + + + DebugDLL + Win32 + + + DebugDLL + x64 + + + Debug + Win32 + + + Debug + x64 + + + ReleaseDLL_fixed + Win32 + + + ReleaseDLL_fixed + x64 + + + ReleaseDLL + Win32 + + + ReleaseDLL + x64 + + + Release + Win32 + + + Release + x64 + + + + + {219ec965-228a-1824-174d-96449d05f88a} + + + + + + + {016C739D-6389-43BF-8D88-24B2BF6F620F} + Win32Proj + opus_demo + + + + Application + v140 + + + Application + v140 + + + Application + v140 + + + Application + v140 + + + Application + v140 + + + Application + v140 + + + Application + v140 + + + Application + v140 + + + Application + v140 + + + Application + v140 + + + Application + v140 + + + Application + v140 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/components/opus/libopus/win32/VS2015/opus_demo.vcxproj.filters b/components/opus/libopus/win32/VS2015/opus_demo.vcxproj.filters new file mode 100644 index 0000000..2eb113a --- /dev/null +++ b/components/opus/libopus/win32/VS2015/opus_demo.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Source Files + + + \ No newline at end of file diff --git a/components/opus/libopus/win32/VS2015/test_opus_api.vcxproj b/components/opus/libopus/win32/VS2015/test_opus_api.vcxproj new file mode 100644 index 0000000..7cae131 --- /dev/null +++ b/components/opus/libopus/win32/VS2015/test_opus_api.vcxproj @@ -0,0 +1,171 @@ + + + + + DebugDLL_fixed + Win32 + + + DebugDLL_fixed + x64 + + + DebugDLL + Win32 + + + DebugDLL + x64 + + + Debug + Win32 + + + Debug + x64 + + + ReleaseDLL_fixed + Win32 + + + ReleaseDLL_fixed + x64 + + + ReleaseDLL + Win32 + + + ReleaseDLL + x64 + + + Release + Win32 + + + Release + x64 + + + + + + + + {219ec965-228a-1824-174d-96449d05f88a} + + + + {1D257A17-D254-42E5-82D6-1C87A6EC775A} + Win32Proj + test_opus_api + + + + Application + v140 + + + Application + v140 + + + Application + v140 + + + Application + v140 + + + Application + v140 + + + Application + v140 + + + Application + v140 + + + Application + v140 + + + Application + v140 + + + Application + v140 + + + Application + v140 + + + Application + v140 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/components/opus/libopus/win32/VS2015/test_opus_api.vcxproj.filters b/components/opus/libopus/win32/VS2015/test_opus_api.vcxproj.filters new file mode 100644 index 0000000..383d19f --- /dev/null +++ b/components/opus/libopus/win32/VS2015/test_opus_api.vcxproj.filters @@ -0,0 +1,14 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + + + Source Files + + + \ No newline at end of file diff --git a/components/opus/libopus/win32/VS2015/test_opus_decode.vcxproj b/components/opus/libopus/win32/VS2015/test_opus_decode.vcxproj new file mode 100644 index 0000000..df01dca --- /dev/null +++ b/components/opus/libopus/win32/VS2015/test_opus_decode.vcxproj @@ -0,0 +1,171 @@ + + + + + DebugDLL_fixed + Win32 + + + DebugDLL_fixed + x64 + + + DebugDLL + Win32 + + + DebugDLL + x64 + + + Debug + Win32 + + + Debug + x64 + + + ReleaseDLL_fixed + Win32 + + + ReleaseDLL_fixed + x64 + + + ReleaseDLL + Win32 + + + ReleaseDLL + x64 + + + Release + Win32 + + + Release + x64 + + + + + + + + {219ec965-228a-1824-174d-96449d05f88a} + + + + {8578322A-1883-486B-B6FA-E0094B65C9F2} + Win32Proj + test_opus_api + + + + Application + v140 + + + Application + v140 + + + Application + v140 + + + Application + v140 + + + Application + v140 + + + Application + v140 + + + Application + v140 + + + Application + v140 + + + Application + v140 + + + Application + v140 + + + Application + v140 + + + Application + v140 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/components/opus/libopus/win32/VS2015/test_opus_decode.vcxproj.filters b/components/opus/libopus/win32/VS2015/test_opus_decode.vcxproj.filters new file mode 100644 index 0000000..3036a4e --- /dev/null +++ b/components/opus/libopus/win32/VS2015/test_opus_decode.vcxproj.filters @@ -0,0 +1,14 @@ + + + + + {4a0dd677-931f-4728-afe5-b761149fc7eb} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + + + Source Files + + + \ No newline at end of file diff --git a/components/opus/libopus/win32/VS2015/test_opus_encode.vcxproj b/components/opus/libopus/win32/VS2015/test_opus_encode.vcxproj new file mode 100644 index 0000000..405efee --- /dev/null +++ b/components/opus/libopus/win32/VS2015/test_opus_encode.vcxproj @@ -0,0 +1,172 @@ + + + + + DebugDLL_fixed + Win32 + + + DebugDLL_fixed + x64 + + + DebugDLL + Win32 + + + DebugDLL + x64 + + + Debug + Win32 + + + Debug + x64 + + + ReleaseDLL_fixed + Win32 + + + ReleaseDLL_fixed + x64 + + + ReleaseDLL + Win32 + + + ReleaseDLL + x64 + + + Release + Win32 + + + Release + x64 + + + + + + + + + {219ec965-228a-1824-174d-96449d05f88a} + + + + {84DAA768-1A38-4312-BB61-4C78BB59E5B8} + Win32Proj + test_opus_api + + + + Application + v140 + + + Application + v140 + + + Application + v140 + + + Application + v140 + + + Application + v140 + + + Application + v140 + + + Application + v140 + + + Application + v140 + + + Application + v140 + + + Application + v140 + + + Application + v140 + + + Application + v140 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/components/opus/libopus/win32/VS2015/test_opus_encode.vcxproj.filters b/components/opus/libopus/win32/VS2015/test_opus_encode.vcxproj.filters new file mode 100644 index 0000000..4ed3bb9 --- /dev/null +++ b/components/opus/libopus/win32/VS2015/test_opus_encode.vcxproj.filters @@ -0,0 +1,17 @@ + + + + + {546c8d9a-103e-4f78-972b-b44e8d3c8aba} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + + + Source Files + + + Source Files + + + \ No newline at end of file diff --git a/components/opus/libopus/win32/config.h b/components/opus/libopus/win32/config.h new file mode 100644 index 0000000..3e54bcb --- /dev/null +++ b/components/opus/libopus/win32/config.h @@ -0,0 +1,64 @@ +/*********************************************************************** +Copyright (c) 2011, Skype Limited. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +- Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +***********************************************************************/ + +#ifndef CONFIG_H +#define CONFIG_H + +#define USE_ALLOCA 1 + +/* Comment out the next line for floating-point code */ +/*#define FIXED_POINT 1 */ + +#define OPUS_BUILD 1 + +#if defined(_M_IX86) || defined(_M_X64) +/* Can always compile SSE intrinsics (no special compiler flags necessary) */ +#define OPUS_X86_MAY_HAVE_SSE +#define OPUS_X86_MAY_HAVE_SSE2 +#define OPUS_X86_MAY_HAVE_SSE4_1 + +/* Presume SSE functions, if compiled to use SSE/SSE2/AVX (note that AMD64 implies SSE2, and AVX + implies SSE4.1) */ +#if defined(_M_X64) || (defined(_M_IX86_FP) && (_M_IX86_FP >= 1)) || defined(__AVX__) +#define OPUS_X86_PRESUME_SSE 1 +#endif +#if defined(_M_X64) || (defined(_M_IX86_FP) && (_M_IX86_FP >= 2)) || defined(__AVX__) +#define OPUS_X86_PRESUME_SSE2 1 +#endif +#if defined(__AVX__) +#define OPUS_X86_PRESUME_SSE4_1 1 +#endif + +#if !defined(OPUS_X86_PRESUME_SSE4_1) || !defined(OPUS_X86_PRESUME_SSE2) || !defined(OPUS_X86_PRESUME_SSE) +#define OPUS_HAVE_RTCD 1 +#endif + +#endif + +#include "version.h" + +#endif /* CONFIG_H */ diff --git a/components/opus/libopus/win32/genversion.bat b/components/opus/libopus/win32/genversion.bat new file mode 100644 index 0000000..1def746 --- /dev/null +++ b/components/opus/libopus/win32/genversion.bat @@ -0,0 +1,37 @@ +@echo off + +setlocal enableextensions enabledelayedexpansion + +for /f %%v in ('cd "%~dp0.." ^&^& git status ^>NUL 2^>NUL ^&^& git describe --tags --match "v*" --dirty 2^>NUL') do set version=%%v + +if not "%version%"=="" set version=!version:~1! && goto :gotversion + +if exist "%~dp0..\package_version" goto :getversion + +echo Git cannot be found, nor can package_version. Generating unknown version. + +set version=unknown + +goto :gotversion + +:getversion + +for /f "delims== tokens=2" %%v in (%~dps0..\package_version) do set version=%%v +set version=!version:"=! + +:gotversion + +set version=!version: =! +set version_out=#define %~2 "%version%" + +echo %version_out%> "%~1_temp" + +echo n | comp "%~1_temp" "%~1" > NUL 2> NUL + +if not errorlevel 1 goto exit + +copy /y "%~1_temp" "%~1" + +:exit + +del "%~1_temp" diff --git a/configure/README.md b/configure/README.md new file mode 100644 index 0000000..5a9b06c --- /dev/null +++ b/configure/README.md @@ -0,0 +1,55 @@ +

简体中文 · English

+ +# Offline badge configuration + +Edit `page.html`, `profile-core.js` and `app.js`, then run `python tools/build_config_page.py` from the repository root. CMake runs the same generator when inputs change. `index.html` and `main/assets/configure.html.gz` are generated standalone/embedded copies. No CDN, external API or cloud service is used. + +The serial and hotspot transports share protocol 2. On connection the editor reads persisted identity, theme, icon, avatar, QR and Wi-Fi status. Wi-Fi passwords are not returned; an empty password retains an existing password only for the same SSID. Supported station credentials are open networks or personal passwords of 8–63 UTF-8 bytes. The board supports 2.4 GHz Wi-Fi. + +Hotspot setup: System → OK Network → OK Enable. Join the displayed WPA2 hotspot with its per-session random password and open `http://192.168.4.1`. The server is restricted to the AP interface, rejects foreign origins, and requires a per-session header token for API calls. Ten minutes of HTTP inactivity closes the hotspot. Uploaded data is committed in two banks, with transaction ownership and timeout shared across USB/HTTP. Wi-Fi credentials use a separate NVS blob and are not embedded in profile exports. + +Brand text is rasterized at 148 × 44, icon at 32 × 32, and avatar at 72 × 88. The identity card is 208 × 148 RGB565. QR images are decoded locally, regenerated with integer-sized modules and a quiet zone, then re-decoded to verify identical bytes before accepting the image. Codes too dense for 192 × 192 at two pixels per module are rejected. QR display retains black/white contrast regardless of theme. Actual phone/WeChat scanning must still be checked on the physical display. + +## Third-party libraries + +- jsQR 1.4.0 from the official npm package, upstream https://github.com/cozmo/jsQR, Apache-2.0; see `vendor/jsQR.LICENSE`. +- Project Nayuki QR Code generator, upstream https://github.com/nayuki/QR-Code-generator/blob/master/typescript-javascript/qrcodegen.ts, retrieved 2026-09-15, MIT; see `vendor/qrcodegen.LICENSE`. Compiled with TypeScript 5.9.3; both libraries minified with Terser 5.44.0. These runtime copies are bundled inline. +- `assets/images/cyber-badge/test-qr.bin` encodes the public fixture `https://example.com/test-contact`; it contains no real contact information. + +## Quick QR display + +Starting with 1.3.1, DOWN on badge home immediately displays the saved QR. DOWN, OK or long OK returns to badge home. Opening QR from the terminal returns to that terminal instead. Games remain accessible from the employee terminal. + +## Nearby networks (1.3.2) + +Connecting scans automatically; Refresh List starts another scan. Up to 16 strongest networks are shown, merging duplicate SSID/security pairs. At most 64 raw records are read per scan. Hidden SSIDs are omitted and can be entered manually. WEP, WPA-only and enterprise networks cannot be selected. Choosing a different SSID clears any unsaved password to avoid applying it to another network. + +The badge scans through shared USB/HTTP `wifi_scan` and `wifi_scan_results` operations. A network worker scans while the page polls asynchronously; buttons and protocol services keep running. Failed/busy scans retain the previous list and offer refresh. Scanning never automatically selects or saves a network. + +## Five badge profiles (1.6.0) + +The configuration page stores five independent badges. Select a slot in the badge library, edit its name, brand, colors, avatar and QR, then save. Editing or saving another slot does not change the displayed badge. Use **Display this badge** to activate a saved slot. The page distinguishes the edited slot from the active slot and reads back saved data when connected. Clear affects only the selected slot. Wi-Fi settings are shared by the device. + +On badge home, **double-click OK** to open the badge list. UP/DOWN selects a slot, OK displays it, and long OK returns. Empty slots are marked and cannot be activated from the list. Single OK still opens the terminal; DOWN still shows the active badge's QR. The active slot is remembered across restarts. Existing profile data stays in slot 1 during the upgrade. + +Both USB and hotspot configuration support all five slots. Refresh an already-open configuration page after upgrading. Writes explicitly target a slot and check its loaded revision, so changes made by another connection require a fresh read. Updating the displayed slot refreshes the screen; saving an inactive slot preserves the active identity and QR. + +### Multi-profile protocol + +Card IDs are zero-based (`badge: 0` through `4`). `info` and `read` accept an explicit `badge`; omitting it reads the active card. `info` returns `badge`, `badgeRevision`, `activeBadge`, `badgeCount`, and a `badges` array with each slot's ID, revision, configured flag, name and brand. `badges` returns just the catalog and runtime revision. + +`begin` and `clear` require `badge` on five-slot firmware. Include `baseRevision` from the last read to reject stale writes. After `begin`, `chunk`/`commit` remain bound to that slot and transaction owner; they cannot be redirected by switching the display. `badge_select` with `badge` persists the active slot. Switching and another write are rejected while a transfer is active or the UI has not released references to the previous committed images; retry after the current operation completes. Card revisions are independent; `revision` remains a runtime UI refresh counter. + +The active badge palette also controls the built-in game in firmware 1.7.0 and later. Save the active profile to refresh a running game; saving another slot leaves the current theme unchanged until that card is displayed. + +## Name wrapping and card numbers (1.7.1) + +Names wrap automatically into at most two lines, with English word boundaries preferred. Long names use a smaller font; only names exceeding both lines at the minimum size get an ellipsis. The complete name remains in metadata. The saved image region stays 112 x 32, preserving the storage format and other fields. Existing cards must be read and saved once in the updated editor to regenerate their name image. Home and preview show `1/5` without zero padding; picker row numbers are 1–5. + +## Information spacing (1.9.0) + +Name, department and title now use the updated firmware positions while preserving source crops and profile format. Existing badges require no resave for hardware spacing; reload the configuration page to view the matching preview. + +## Company-name typography (2.6.31) + +Company names use embedded Noto Sans SC 700 Latin proportional glyphs, with the existing Chinese fallback. The editor reduces font size uniformly to fit a 144-pixel safe width inside the 148-pixel brand image; it does not stretch or squeeze characters. Existing badge images remain unchanged until that badge is saved again. USB and hotspot editors share this renderer. diff --git a/configure/README.zh_CN.md b/configure/README.zh_CN.md new file mode 100644 index 0000000..6d79543 --- /dev/null +++ b/configure/README.zh_CN.md @@ -0,0 +1,55 @@ +

简体中文 · English

+ +# 离线工牌�置 + +编辑 `page.html`�`profile-core.js` 和 `app.js`,在仓库根目录�行 `python tools/build_config_page.py`。CMake 会在输入�化�执行�一生�器。`index.html` 与 `main/assets/configure.html.gz` 分别为独立网页和固件内嵌页�,��赖 CDN�外部 API 或云�务。 + +USB 与热点共用�议 2。连接�读�已�存的身份资料��色�图标�头��二维�和 Wi-Fi 状�。�会回传 Wi-Fi 密�;仅�一网络支�密�留空�留。支�开放网络和密�为 8–63 个 UTF-8 字节的个人网络,硬件支� 2.4 GHz Wi-Fi。 + +热点�置:系统设置 → OK 网络设置 → OK 开�热点。连接�幕显示的 WPA2 热点,输入本次生�的�机密�,打开 `http://192.168.4.1`。�务器仅�许通过热点网�访问,拒�外部 Origin,API 需�本次会�的请求头令牌。�分钟没有 HTTP 请求会关闭热点。USB 与 HTTP 共用�存档区�写入会�归属和超时控制。Wi-Fi 凭��存在独立 NVS 数�项,�进入资料导出。 + +�牌文字栅格为 148 × 44,图标为 32 × 32,头�为 72 × 88,资料�为 208 × 148 RGB565。二维�在本机识别,以整数�素模�和留白�新生�,�次识别并对比原始字节��接�。192 × 192 区域内�能���模�至少两个�素的��二维�会被拒�。二维�始终使用黑白对比,��主题�色;�需用手机在实物�幕上验�微信扫�。 + +## 第三方库 + +- jsQR 1.4.0 �自官方 npm 包,上游 https://github.com/cozmo/jsQR,Apache-2.0;� `vendor/jsQR.LICENSE`。 +- Project Nayuki 二维�生�器,上游 https://github.com/nayuki/QR-Code-generator/blob/master/typescript-javascript/qrcodegen.ts,获�日期 2026-09-15,MIT;� `vendor/qrcodegen.LICENSE`。使用 TypeScript 5.9.3 编译,两个库�使用 Terser 5.44.0 压缩,并内嵌到页�。 +- `assets/images/cyber-badge/test-qr.bin` 编�的是公开测试地� `https://example.com/test-contact`,��真实�系方�。 + +## 一键亮� + +1.3.1 起,工牌首页按下键直接显示已�存二维�;�按下键�OK 或长按 OK 返回工牌。从��进入二维�时,以上返回�作回到��。�游�从员工终端进入。 + +## 附近网络列表(1.3.2) + +连接�自动扫�,也�点击“刷新列表�。列表最多显示信�最强的 16 个网络,按 SSID 与加密方��并��热点。�次扫�最多读� 64 �原始记录;�� SSID �列出,�手动填写。WEP�仅 WPA 和�业网络暂�支�选择。选择��网络时清除尚未�交的密�,��将密�填到其他网络。 + +扫�由工牌执行,USB 与 HTTP 共用 `wifi_scan` / `wifi_scan_results` 接�。网络工作任务执行扫�,网页异步轮询结果,设备按键和�议�务继续工作。扫�失败或连接忙时�留原列表并�示刷新,�自动切�或�存网络。 + +## 五张工牌(1.6.0) + +�置页支��存五张独立工牌。在工牌库选择�置,分别设置姓���牌��色�头�和二维�,然��存。编辑或�存�一张工牌�会切�硬件显示;点击**显示这张工牌**�会切�。页�明确区分“正在编辑�和“当�显示�,连接时�读�已�存资料。清空仅影�选中的一张。Wi-Fi 设置由设备共用。 + +工牌首页**�击 OK**打开工牌列表;上下键选择,OK 切�显示,长按 OK 返回。空白�置标记为“未设置�,在硬件列表中�能�用。�击 OK �打开终端,下键�显示当�工牌的二维�。���记�上次显示的工牌。�级时原有资料�留在第 1 张。 + +USB 和热点�置�支�五张工牌。�级�请刷新已打开的�置页。写入明确指定工牌,并核对读�时的版本;如果其他连接已修改这张工牌,需��新读����存。�存当�显示的工牌会更新�幕,�存其他工牌则��当�身份和二维�。 + +### 多工牌�议 + +工牌 ID 从零开始(`badge: 0` 至 `4`)。`info` 和 `read` �传入 `badge` 指定工牌,�略时读�当�显示工牌。`info` 返回 `badge`�`badgeRevision`�`activeBadge`�`badgeCount`,以�包���置 ID�版本�是�设置�姓�和�牌的 `badges` 数组。`badges` �作仅返回工牌目录和�行时版本。 + +五张工牌固件的 `begin` 和 `clear` 必须显�传入 `badge`。�时传入上次读�的 `baseRevision`,�拒�过期写入。`begin` 之�的 `chunk`/`commit` 始终绑定该工牌和事务所有者,切�显示�会�定�上传。`badge_select` �带 `badge` �切�并记�显示�置。上传未结�或界�尚未释放上一份图片引用时,切��下一次写入会被拒�,当��作完����试。�张工牌的版本独立;`revision` �是�行期间的界�刷新计数。 + +1.7.0 起,当�工牌�色也会应用到内置游�。�存当�工牌�刷新正在�行的游�;�存其他�置�会改�当�主题,需�切�显示该工牌�会应用。 + +## 姓��行和工牌��(1.7.1) + +姓�自动�行,最多两行,英文优先按空格分�。较长姓�会缩�字�,最�字��超出两行时�显示�略�;完整姓��留在资料中。�存图片的姓�区域�为 112 × 32,�改�存储格��其他字段。旧工牌需�在新版�置页读�并�存一次,�新生�姓�图片。首页和预览使用 `1/5`,工牌列表行�为 1–5,��补零。 + +## 资料区域留白(1.9.0) + +姓��部门与��的显示区域�步调整为固件新�标,�留原有�剪��和资料格�。已有工牌无需�新�存��在硬件上看到新间�;刷新�置页查看�步�的预览。 + +## 公��称排版(2.6.31) + +公��称使用内嵌 Noto Sans SC 700 的拉�比例字形,中文沿用现有回退字体。�置页等比例调整字�,在 148 �素�牌图片内预留 144 �素安全宽度,�横�拉伸或挤压字符。已�存的工牌图片需��新�存该工牌�会更新。USB 和热点�置页共用该绘制逻辑。 diff --git a/configure/app.js b/configure/app.js new file mode 100644 index 0000000..fd07b38 --- /dev/null +++ b/configure/app.js @@ -0,0 +1,322 @@ +const $=id=>document.getElementById(id),ids=['alias','name','department','title','employeeId','signature','brandName','badgeCaption']; +const avatar=$('cropPreview'),av=avatar.getContext('2d'),preview=$('badgePreview'),pc=preview.getContext('2d'),logo=$('logoPreview'),lc=logo.getContext('2d'),qr=$('qrPreview'),qc=qr.getContext('2d'); +function canvas(w,h){const c=document.createElement('canvas');c.width=w;c.height=h;return c} +const card=canvas(84,148),cc=card.getContext('2d'),brand=canvas(148,32),bc=brand.getContext('2d'),footer=canvas(208,40),fc=footer.getContext('2d'),headerId=canvas(168,12),hc=headerId.getContext('2d'); +const fontsReady=Promise.all([document.fonts.load('700 20px BadgeDisplay'),document.fonts.load('600 18px BadgeSignature'),document.fonts.load('700 18px BadgeBrand')]); +let maxProfileVersion=0,maxBadgeLayout=0; +let source=null,logoSource=null,qrReady=false,device=null,busy=false,dirty=false,previewQr=false,wifi={},wifiDirty=false,xiaozhiBackend={},xiaozhiBackendDirty=false; +let loadedAvatarBytes=null,loadedLogoBytes=null,loadedQrBytes=null,avatarDirty=false,logoDirty=false,qrDirty=false; +let scanBusy=false,networks=[]; +let editingBadge=0,activeBadge=0,badgeCount=5,badges=[],loadedBadgeRevision=null,staleBadge=false; +const viaHotspot=location.protocol==='http:'&&location.hostname==='192.168.4.1'; +function fields(){return {...Object.fromEntries(ids.map(k=>[k,$(k).value.trim()])),theme:Object.fromEntries(THEME_KEYS.map(k=>[k,$(k).value])),logoCustom:!!logoSource,qrPresent:qrReady}} +function message(text,error=false){$('status').textContent=text;$('status').className='status '+(error?'error':'success')} +function controls(){const connected=device&&!device.closed;$('connect').disabled=busy;$('connect').textContent=connected?'断开连接':'连接工牌';for(const k of ['save','reload','saveWifi','saveXiaozhiBackend'])$(k).disabled=busy||!connected;$('resetXiaozhiBackend').disabled=busy||!connected;$('scanWifi').disabled=busy||scanBusy||!connected;$('scanWifi').textContent=scanBusy?'扫�中…':'刷新列表';for(const el of $('networkList').querySelectorAll('button'))el.disabled=busy||!connected||el.dataset.supported!=='true';$('hotspot').disabled=busy||!connected||viaHotspot;$('hotspot').textContent=wifi.apActive?'关闭工牌热点':'开�工牌热点';$('led').className='led'+(connected?' on':'');$('connectionText').textContent=connected?(viaHotspot?'热点已连接':'USB 已连接'):'未连接';for(const el of $('form').elements)el.disabled=busy;for(const k of ['ssid','wifiPassword','openWifi','xiaozhiBackend'])$(k).disabled=busy;$('badgeSelect').disabled=busy||!connected||badgeCount<2;$('displayBadge').disabled=busy||!connected||dirty||!badges[editingBadge]?.configured||editingBadge===activeBadge;$('clearBadge').disabled=busy||!connected||!badges[editingBadge]?.configured;$('save').disabled=busy||!connected||staleBadge;$('stateText').textContent=connected?(dirty?'有未�存的资料修改。':'已读�设备�置,�编辑并�存。'):'连接工牌以读�已�存资料。'} +function drawLogo(ctx,size,t){ctx.fillStyle=t.background;ctx.fillRect(0,0,size,size);if(logoSource){const scale=Math.min(size/logoSource.width,size/logoSource.height),w=logoSource.width*scale,h=logoSource.height*scale;ctx.drawImage(logoSource,(size-w)/2,(size-h)/2,w,h);return}const s=size/64;ctx.save();ctx.scale(s,s);ctx.strokeStyle=t.accent;ctx.fillStyle=t.accent;ctx.lineWidth=3;ctx.beginPath();ctx.arc(32,32,28,0,Math.PI*2);ctx.stroke();ctx.beginPath();ctx.moveTo(32,59);ctx.lineTo(32,17);ctx.moveTo(32,39);ctx.lineTo(14,28);ctx.moveTo(32,39);ctx.lineTo(50,28);ctx.stroke();for(const [x,y]of[[32,17],[14,28],[50,28]]){ctx.beginPath();ctx.arc(x,y,6,0,Math.PI*2);ctx.fill()}ctx.restore()} +// Legacy crop locations stay documented for compatibility tests. +const badgeRegions=[[8,8,72,88,66,74,384],[88,4,112,32,14,211,256],[88,35,112,20,14,246,230],[88,60,112,20,122,246,230],[8,105,192,18,14,263,230],[0,126,208,20,14,279,128]]; +function badgeFrame(ctx,t){ + ctx.save();ctx.fillStyle=t.accent; + ctx.beginPath();ctx.moveTo(0,30);ctx.lineTo(240,30);ctx.lineTo(240,79);ctx.lineTo(137,79);ctx.lineTo(125,89);ctx.lineTo(0,89);ctx.closePath();ctx.fill(); + const ink=luminance(t.accent)>.179?'#08090b':'#ffffff'; + ctx.fillStyle=ink;for(let i=0;i<3;i++){ctx.globalAlpha=i===1?.4:1;ctx.fillRect(213+i*6,38,3,3)}ctx.globalAlpha=1; + ctx.strokeStyle=t.accent;ctx.lineWidth=1; + ctx.beginPath();ctx.moveTo(0,293);ctx.lineTo(25,293);ctx.lineTo(34,288);ctx.lineTo(129,288);ctx.lineTo(139,293);ctx.lineTo(240,293);ctx.stroke(); + ctx.beginPath();ctx.moveTo(222,293);ctx.lineTo(231,285);ctx.lineTo(239,285);ctx.stroke(); + ctx.fillRect(33,287,2,2);ctx.fillRect(138,292,2,2); + ctx.restore(); +} +function wrapRows(ctx,text,width,limit){ + const rows=[];let row=''; + // Keep Latin words together; split oversized tokens only at grapheme boundaries. + const tokens=text.match(/[A-Za-z0-9\u00c0-\u024f]+|\s+|[^A-Za-z0-9\u00c0-\u024f\s]+/gu)||[]; + const glyphs=s=>typeof Intl.Segmenter==='function'?[...new Intl.Segmenter(undefined,{granularity:'grapheme'}).segment(s)].map(x=>x.segment):Array.from(s); + for(const token of tokens){ + if(!token.trim()){if(row)row+=' ';continue} + if(ctx.measureText(token).width<=width){if(row&&ctx.measureText(row+token).width>width){rows.push(row.trim());row=''}row+=token;continue} + for(const ch of glyphs(token)){if(row&&ctx.measureText(row+ch).width>width){rows.push(row.trim());row=''}row+=ch} + } + if(row.trim())rows.push(row.trim()); + if(rows.length>limit){const tail=rows.slice(limit-1).join('');rows.splice(limit-1);rows.push(fit(ctx,tail,width))} + return rows; +} +function drawRows(ctx,text,x,y,width,limit,lineHeight){const rows=wrapRows(ctx,text,width,limit);rows.forEach((line,i)=>ctx.fillText(line,x,y+i*lineHeight));return rows;} +const badgeBodyFont='"Microsoft YaHei","PingFang SC",sans-serif'; +function textBlock(ctx,key,text,size,lineHeight,font,color,limit=2,width=84){ + ctx.font=font(size);return {key,size,lineHeight,font:font(size),color,rows:wrapRows(ctx,text,width,limit)}; +} +function identityTextLayout(ctx,p){ + const display=n=>`700 ${n}px BadgeDisplay,${badgeBodyFont}`,body=n=>`500 ${n}px ${badgeBodyFont}`,department=n=>`600 ${n}px ${badgeBodyFont}`; + let nameSize=16;ctx.font=display(nameSize); + while(nameSize>14&&ctx.measureText(p.name).width>84)ctx.font=display(--nameSize); + const name=textBlock(ctx,'name',p.name,nameSize,nameSize===16?21:16,display,p.theme.text); + if(name.rows.length===1)name.lineHeight=32; + const blocks=[name,textBlock(ctx,'department',p.department,12,17,department,p.theme.text),textBlock(ctx,'title',p.title,11,16,body,p.theme.muted)]; + const tops=[0,44,90],heights=[32,34,32]; + blocks.forEach((b,i)=>{b.top=tops[i];b.height=heights[i]}); + return blocks; +} +function paintTextBlock(ctx,b,x=0,width=84,align='left'){ + if(!b.rows.length)return; + ctx.save();ctx.font=b.font;ctx.fillStyle=b.color;ctx.textAlign=align; + // Center actual ink in each line box, including Chinese and Latin descenders. + const samples=b.rows.map(s=>ctx.measureText(s)),ascent=Math.max(...samples.map(m=>m.actualBoundingBoxAscent??b.size*.85)),descent=Math.max(...samples.map(m=>m.actualBoundingBoxDescent??b.size*.2)); + const baseline=b.top+(b.height-b.rows.length*b.lineHeight)/2+Math.max(ascent,(b.lineHeight-ascent-descent)/2+ascent); + ctx.beginPath();ctx.rect(x,b.top,width,b.height);ctx.clip(); + b.rows.forEach((line,i)=>ctx.fillText(line,align==='right'?x+width:x,Math.round(baseline+i*b.lineHeight)));ctx.restore(); +} +function signatureTextLayout(ctx,p){ + const cjk=/[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}]/u.test(p.signature),font=n=>cjk?`${n}px "KaiTi","STKaiti",${badgeBodyFont}`:`600 ${n}px BadgeSignature,cursive`; + let b; + for(let size=cjk?13:18;size>=10;size--){ + b=textBlock(ctx,'signature',p.signature,size,size+3,font,p.theme.accent,99,88); + if(b.rows.length*b.lineHeight<=38)break; + } + // Long signatures use three readable 13px line boxes rather than overlapping cursive. + b.rows=wrapRows(ctx,p.signature,88,Math.floor(40/b.lineHeight));b.height=b.rows.length*b.lineHeight;b.top=Math.floor((40-b.height)/2);return b; +} +function paintBrandName(ctx,text,color){ + ctx.save();ctx.fillStyle=color;ctx.textAlign='left';ctx.textBaseline='alphabetic'; + ctx.fontKerning='normal';ctx.letterSpacing='0px';ctx.wordSpacing='0px'; + const font=size=>`700 ${size}px BadgeBrand,${badgeBodyFont}`; + let size=18;ctx.font=font(size); + while(size>11&&ctx.measureText(text).width>144)ctx.font=font(--size); + // Reduce font size uniformly; never squeeze a wide name horizontally. + const fitted=fit(ctx,text,144),metrics=ctx.measureText(fitted); + const left=Math.max(0,metrics.actualBoundingBoxLeft||0); + ctx.fillText(fitted,2+left,16);ctx.restore(); +} +function renderPortraitAssets(p){ + const t=p.theme,aw=112,ah=144,ink=luminance(t.accent)>.179?'#08090b':'#ffffff'; + av.fillStyle=t.panel;av.fillRect(0,0,aw,ah); + if(source){const scale=Math.max(aw/source.width,ah/source.height)*Number($('zoom').value),w=source.width*scale,h=source.height*scale;av.drawImage(source,(aw-w)/2+Number($('cropX').value)/100*(w-aw)/2,(ah-h)/2+Number($('cropY').value)/100*(h-ah)/2,w,h)} + else{av.fillStyle=t.muted;av.beginPath();av.arc(56,47,24,0,Math.PI*2);av.fill();av.beginPath();av.ellipse(56,137,45,51,0,0,Math.PI*2);av.fill()} + cc.fillStyle=t.background;cc.fillRect(0,0,84,148); + const blocks=identityTextLayout(cc,p); + for(let i=0;i`700 ${n}px BadgeDisplay,"Microsoft YaHei",sans-serif`; + fc.font=font(size);while(size>24&&fc.measureText(title).width>108/.65){fc.font=font(--size)}title=fit(fc,title,108/.65); + const widthScale=Math.min(1,108/Math.max(1,fc.measureText(title).width)); + const letters=Array.from(title),split=Math.max(1,Math.ceil(letters.length*.6)),solid=letters.slice(0,split).join(''),outline=letters.slice(split).join(''); + fc.save();fc.beginPath();fc.rect(0,0,115,40);fc.clip();fc.transform(widthScale,0,-.13,1,5,0);fc.fillStyle=t.accent;fc.strokeStyle=t.accent;fc.lineWidth=1;fc.fillText(solid,0,36);fc.strokeText(outline,fc.measureText(solid).width,36);fc.restore(); + const signature=signatureTextLayout(fc,p);if(signature.rows.length)paintTextBlock(fc,signature,120,88,'right'); + hc.fillStyle=t.accent;hc.fillRect(0,0,168,12);hc.fillStyle=ink;hc.font=`10px Consolas,${badgeBodyFont}`;hc.textAlign='right';hc.fillText(fit(hc,p.employeeId,164),168,10); + drawLogo(lc,32,{...t,background:t.accent,accent:ink}); + bc.fillStyle=t.accent;bc.fillRect(0,0,148,32);paintBrandName(bc,p.brandName,ink); + bc.fillStyle=ink;bc.font=`600 9px ${badgeBodyFont}`;bc.globalAlpha=.8;bc.fillText(fit(bc,p.badgeCaption,148),0,30);bc.globalAlpha=1; +} +function assetOrRender(existing,dirty,expected,render){return !dirty&&existing&&existing.length===expected?existing:render()} +function portraitPayload(){ + const atlas=new Uint8Array(43264);atlas.set(to565(cc.getImageData(0,0,84,124)));atlas.set(to565(hc.getImageData(0,0,168,12)),20832);atlas.set(to565(fc.getImageData(0,0,208,40)),24864);atlas.set([73,68,72,49],41504); + const avatarBytes=assetOrRender(loadedAvatarBytes,avatarDirty,112*144*2,()=>to565(av.getImageData(0,0,112,144))); + const logoBytes=logoSource?assetOrRender(loadedLogoBytes,logoDirty,32*32*2,()=>to565(lc.getImageData(0,0,32,32))):to565(lc.getImageData(0,0,32,32)); + const qrBytes=qrReady?assetOrRender(loadedQrBytes,qrDirty,4608,()=>packQr(qc.getImageData(0,0,192,192))):new Uint8Array(4608); + const parts=[atlas,avatarBytes,to565(bc.getImageData(0,0,148,32)),logoBytes,qrBytes]; + const bytes=new Uint8Array(91648);let cursor=0;for(const part of parts){bytes.set(part,cursor);cursor+=part.length}if(cursor!==bytes.length)throw Error('资料格�错误');return bytes; +} +function drawTacticalPhoto(ctx,t){ + ctx.drawImage(avatar,0,90,140,180); + const rgba=(hex,a)=>`rgba(${parseInt(hex.slice(1,3),16)},${parseInt(hex.slice(3,5),16)},${parseInt(hex.slice(5,7),16)},${a})`; + let g=ctx.createLinearGradient(87,0,140,0);g.addColorStop(0,rgba(t.background,0));g.addColorStop(1,t.background);ctx.fillStyle=g;ctx.fillRect(87,90,53,180); + g=ctx.createLinearGradient(0,226,0,270);g.addColorStop(0,rgba(t.background,0));g.addColorStop(1,t.background);ctx.fillStyle=g;ctx.fillRect(0,226,140,44); +} +function render(){const p=fields(),t=p.theme;document.documentElement.style.setProperty('--bg',t.background);document.documentElement.style.setProperty('--panel',t.panel);document.documentElement.style.setProperty('--red',t.accent);document.documentElement.style.setProperty('--ink',t.text);document.documentElement.style.setProperty('--muted',t.muted);document.documentElement.style.setProperty('--button-ink',luminance(t.accent)>.179?'#08090b':'#ffffff');$('brandHeading').textContent=p.brandName||'BADGE'; + const ratio=Math.min(contrast(t.text,t.panel),contrast(t.muted,t.panel),contrast(t.text,t.background),contrast(t.muted,t.background));$('contrast').textContent=ratio<4.5?'文字对比度�低,建议调亮文字或调暗背景。':'文字与背景对比度良好。'; + renderPortraitAssets(p); + pc.fillStyle=t.background;pc.fillRect(0,0,240,320);pc.fillStyle=t.muted;pc.font='10px monospace';pc.fillText('AI Passport',14,20);pc.textAlign='right';pc.fillText((editingBadge+1)+'/'+badgeCount,172,20);pc.textAlign='left';pc.fillStyle=t.text;pc.textAlign='right';pc.fillText('86%',226,20);pc.textAlign='left';pc.fillStyle=t.accent;pc.globalAlpha=.4;pc.fillRect(14,28,212,1);pc.fillRect(14,291,212,1);pc.globalAlpha=1; + badgeFrame(pc,t);pc.drawImage(brand,46,43);pc.drawImage(logo,12,43,26,26);pc.drawImage(headerId,60,31); + if(previewQr){ + if(qrReady){const view=canvas(176,176),vc=view.getContext('2d'),pixels=qrDisplayPixels(qc.getImageData(0,0,192,192).data);vc.putImageData(new ImageData(pixels,176,176),0,0);pc.drawImage(view,32,100);} + else{pc.textAlign='center';pc.fillStyle=t.text;pc.font='14px "Microsoft YaHei",sans-serif';pc.fillText('还没有上传二维�',120,170);pc.fillStyle=t.muted;pc.fillText('请在�置页上传微信二维�',120,197);pc.textAlign='left';} + pc.fillStyle=t.muted;pc.font='10px "Microsoft YaHei",sans-serif';pc.textAlign='center';pc.fillText('下/OK返回工牌 长OK返回',120,310);pc.textAlign='left'; + }else{drawTacticalPhoto(pc,t);pc.drawImage(card,0,0,84,124,145,98,84,124);pc.drawImage(footer,0,0,120,40,8,250,120,40);pc.drawImage(footer,120,0,88,40,128,244,88,40);pc.fillStyle=t.text;pc.font='10px "Microsoft YaHei",sans-serif';pc.textAlign='center';pc.fillStyle=t.muted;pc.fillText('上�程� 下亮� OK�� 长OK切� 长上�智',120,310);pc.textAlign='left'} + $('showBadge').className=previewQr?'':'selected';$('showQr').className=previewQr?'selected':''; +} +function changed(){dirty=true;render();controls()} +for(const id of [...ids,...THEME_KEYS])$(id).addEventListener('input',()=>{if(THEME_KEYS.includes(id))$('preset').value='custom';changed()}); +for(const id of ['zoom','cropX','cropY'])$(id).addEventListener('input',()=>{avatarDirty=true;loadedAvatarBytes=null;changed()}); +$('showBadge').onclick=()=>{previewQr=false;render()};$('showQr').onclick=()=>{previewQr=true;render()}; +const presets={arasaka:DEFAULT_THEME,cyan:{background:'#091115',panel:'#102028',accent:'#55d9f3',text:'#edf5f5',muted:'#a0b7bf'},amber:{background:'#120e09',panel:'#241b11',accent:'#f5b84b',text:'#f0e4cf',muted:'#bcb09a'},green:{background:'#090f0c',panel:'#132019',accent:'#9ad875',text:'#e6efe2',muted:'#a5b7a5'}}; +$('preset').onchange=()=>{const t=presets[$('preset').value];if(t){for(const k of THEME_KEYS)$(k).value=t[k];changed()}}; +async function readImage(file){if(!file||!['image/jpeg','image/png','image/webp'].includes(file.type)||file.size>10*1024*1024)throw Error('请选择 10 MB 以内的 JPG�PNG 或 WebP 图片');const url=URL.createObjectURL(file);try{const img=new Image();img.src=url;await img.decode();return img}finally{URL.revokeObjectURL(url)}} +$('photo').onchange=async()=>{if(!$('photo').files[0])return;try{source=await readImage($('photo').files[0]);loadedAvatarBytes=null;avatarDirty=true;$('zoom').value=1;$('cropX').value=$('cropY').value=0;changed();message('头�已载入,请�存到工牌。')}catch(e){message(e.message,true)}}; +$('logo').onchange=async()=>{if(!$('logo').files[0])return;try{logoSource=await readImage($('logo').files[0]);loadedLogoBytes=null;logoDirty=true;changed();message('�牌图标已载入。')}catch(e){message(e.message,true)}}; +$('resetLogo').onclick=()=>{logoSource=null;loadedLogoBytes=null;logoDirty=true;$('logo').value='';changed()}; +$('removePhoto').onclick=()=>{source=null;loadedAvatarBytes=null;avatarDirty=true;$('photo').value='';$('zoom').value=1;$('cropX').value=$('cropY').value=0;changed()}; +function drawQrCandidate(img,rect,maxSide,enhance=false,smooth=true){ + const scale=Math.min(1,maxSide/Math.max(rect.w,rect.h)),w=Math.max(1,Math.round(rect.w*scale)),h=Math.max(1,Math.round(rect.h*scale)),c=canvas(w,h),ctx=c.getContext('2d',{willReadFrequently:true}); + ctx.fillStyle='#fff';ctx.fillRect(0,0,w,h);ctx.imageSmoothingEnabled=smooth;ctx.drawImage(img,rect.x,rect.y,rect.w,rect.h,0,0,w,h); + const raw=ctx.getImageData(0,0,w,h); + if(enhance){ + const p=raw.data;let min=255,max=0; + for(let i=0;imax)max=y} + const stretch=max-min>12?255/(max-min):1; + for(let i=0;ih*.2&&(lum<205||(sat>32&&lum<246))?1:0; + } + for(let y=1;y<=h;y++){ + let row=0; + for(let x=1;x<=w;x++){row+=mask[(y-1)*w+x-1];ii[y*(w+1)+x]=ii[(y-1)*(w+1)+x]+row} + } + const sum=(x,y,s)=>ii[(y+s)*(w+1)+x+s]-ii[y*(w+1)+x+s]-ii[(y+s)*(w+1)+x]+ii[y*(w+1)+x]; + const minSide=Math.min(w,h),hits=[]; + for(const ratio of [.8,.72,.64,.56,.5,.44,.38,.32]){ + const s=Math.max(96,Math.round(minSide*ratio)),step=Math.max(14,Math.round(s/7)); + if(s>w||s>h)continue; + for(let y=Math.floor(h*.2);y<=h-s;y+=step)for(let x=0;x<=w-s;x+=step){ + const count=sum(x,y,s),density=count/(s*s); + if(density>.035)hits.push({x,y,s,count,density,score:count*Math.min(1,density/.22)}); + } + } + hits.sort((a,b)=>b.score-a.score); + const rects=[]; + for(const hit of hits.slice(0,8)){ + const cx=hit.x+hit.s/2,cy=hit.y+hit.s/2; + for(const mul of [1.14,1,.88]){ + const side=hit.s*mul,x=Math.max(0,(cx-side/2)/scale),y=Math.max(0,(cy-side/2)/scale),s=Math.min(side/scale,img.width-x,img.height-y); + if(s>120)rects.push({x,y,w:s,h:s}); + } + } + return rects; +} +function qrDecodeAttempts(img){ + const rects=[...qrCandidateRects(img),{x:0,y:0,w:img.width,h:img.height}]; + const minSide=Math.min(img.width,img.height),cx=img.width/2,cy=img.height/2; + for(const ratio of [.96,.86,.76,.66,.56,.46,.36]){ + const side=Math.round(minSide*ratio),x=Math.max(0,Math.round(cx-side/2)),y=Math.max(0,Math.round(cy-side/2)); + rects.push({x,y,w:Math.min(side,img.width-x),h:Math.min(side,img.height-y)}); + } + const seen=new Set(),attempts=[]; + for(const rect of rects)for(const maxSide of [512,384,640,900,1200,1600]){ + const key=[rect.x,rect.y,rect.w,rect.h,maxSide].join(','); + if(seen.has(key))continue;seen.add(key);attempts.push({rect,maxSide,enhance:false,smooth:true});attempts.push({rect,maxSide,enhance:false,smooth:false});attempts.push({rect,maxSide,enhance:true,smooth:false}); + } + return attempts; +} +function sameBytes(a,b){if(!a||!b||a.length!==b.length)return false;for(let i=0;isetTimeout(r,30)); + for(const attempt of qrDecodeAttempts(img)){ + const {raw,w,h}=drawQrCandidate(img,attempt.rect,attempt.maxSide,attempt.enhance,attempt.smooth),result=jsQR(raw.data,w,h,{inversionAttempts:'attemptBoth'}); + if(result)return result; + } + return null; +} +function qrPlaceholder(){qc.fillStyle='#181216';qc.fillRect(0,0,192,192);qc.fillStyle='#a69c9f';qc.font='13px sans-serif';qc.fillText('等待上传二维�',49,101)} +$('qrFile').onchange=async()=>{if(!$('qrFile').files[0])return;busy=true;controls();try{message('正在本机识别二维�…');const img=await readImage($('qrFile').files[0]),result=await decodeUploadedQr(img);if(!result)throw Error('没有识别到二维�,请上传微信�存的原图或更清晰的截图');const pixels=qrPixels(result.binaryData),check=jsQR(pixels,192,192);if(!check||!sameBytes(check.binaryData,result.binaryData))throw Error('二维�过于��,缩放�无法��识别');const displayCheck=jsQR(qrDisplayPixels(pixels),176,176);if(!displayCheck||!sameBytes(displayCheck.binaryData,result.binaryData))throw Error('二维�过于��,无法在工牌亮�区域清晰识别');qc.putImageData(new ImageData(pixels,192,192),0,0);loadedQrBytes=null;qrDirty=true;qrReady=true;$('qrStatus').textContent='二维�已识别并校验,�存��在工牌��中展示。';previewQr=true;changed();message('二维�已准备好,点击「�存到工牌�。')}catch(e){message(e.message,true)}finally{busy=false;controls()}}; +$('removeQr').onclick=()=>{qrReady=false;loadedQrBytes=null;qrDirty=true;$('qrFile').value='';qrPlaceholder();$('qrStatus').textContent='尚未上传二维�。';changed()}; +async function readAsset(asset,size,badge=editingBadge){const bytes=new Uint8Array(size);for(let offset=0;offsetc.charCodeAt(0)),offset)}return bytes} +function from565(bytes,w,h){const c=canvas(w,h);c.getContext('2d').putImageData(new ImageData(rgba565(bytes,w,h),w,h),0,0);return c} +function showWifi(w,loadFields=false){wifi=w||{};if(loadFields&&!wifiDirty){$('ssid').value=wifi.ssid||'';$('wifiPassword').value='';$('openWifi').checked=!!wifi.ssid&&!wifi.passwordSet;$('wifiPassword').placeholder=wifi.passwordSet?'已�存密�,留空�留':'输入 Wi-Fi 密�'}let info=wifi.connected?'已连接 '+wifi.ssid+' · '+wifi.ip:(wifi.ssid?'已�存 '+wifi.ssid+' · '+(wifi.message||'未连接'):'尚未设置 Wi-Fi');if(wifi.apActive)info+='\n热点:'+wifi.apSsid+'\n热点密�:'+wifi.apPassword+'\n手机打开:http://192.168.4.1';$('wifiStatus').textContent=info;controls()} +function showXiaozhiBackend(xz,loadFields=false){xiaozhiBackend=xz||{};const url=xiaozhiBackend.backendUrl||'https://api.tenclass.net/xiaozhi/ota/';if(loadFields&&!xiaozhiBackendDirty)$('xiaozhiBackend').value=xiaozhiBackend.backendCustom?url:'';$('xiaozhiBackendStatus').textContent=(xiaozhiBackend.backendCustom?'当�使用自定义�端:':'当�使用官方默认�端:')+url;controls()} +function xiaozhiBackendPayload(){const url=$('xiaozhiBackend').value.trim();if(!url)return {url:''};if(url.length>255||(!url.startsWith('https://')&&!url.startsWith('http://'))||/[\s\x00-\x20\x7f]/.test(url))throw Error('�智�端地�必须以 http:// 或 https:// 开头,且�能包�空格。');return {url}} +function showCatalog(info){ + activeBadge=info.activeBadge??0;badgeCount=info.badgeCount??1; + badges=info.badges??[{id:0,configured:!!info.custom,name:info.profile?.name||'',revision:info.badgeRevision??info.revision}]; + const select=$('badgeSelect');select.replaceChildren(); + for(const b of badges){const o=document.createElement('option');o.value=String(b.id);o.textContent=`${b.id+1} · ${b.configured?(b.name||'已设置'):'未设置'}${b.id===activeBadge?' · 当�显示':''}`;select.append(o)} + select.value=String(editingBadge); + staleBadge=loadedBadgeRevision!==null&&badges[editingBadge]?.revision!==loadedBadgeRevision; + $('badgeStatus').textContent=`正在编辑:工牌 ${editingBadge+1} 当�显示:工牌 ${activeBadge+1}`+(staleBadge?'。设备上的这张资料已�更,请�新读�。':''); + $('displayBadge').textContent=editingBadge===activeBadge?'正在显示这张工牌':'显示这张工牌';controls(); +} +async function load(target=null){ + const info=await device.rpc('info',target===null?{}:{badge:target}); + if(info.protocol!==2||info.cardWidth!==208||![76,104,148].includes(info.cardHeight))throw Error('请先安装 1.3.0 或更新版本固件'); + maxProfileVersion=info.maxProfileVersion??2;maxBadgeLayout=info.maxBadgeLayout??1; + target=info.badge??0; + const p={...DEFAULT_PROFILE,...info.profile,theme:{...DEFAULT_THEME,...info.profile?.theme}}; + let nextAvatar=null,nextLogo=null,nextQr=null,nextAvatarBytes=null,nextLogoBytes=null; + if(info.custom){nextAvatarBytes=await readAsset('avatar',info.avatarWidth*info.avatarHeight*2,target);nextAvatar=from565(nextAvatarBytes,info.avatarWidth,info.avatarHeight);if(info.profileVersion>=2&&p.logoCustom){nextLogoBytes=await readAsset('logo',2048,target);nextLogo=from565(nextLogoBytes,32,32)}if(info.qrPresent)nextQr=await readAsset('qr',4608,target)} + const check=await device.rpc('info',{badge:target}); + if((check.badgeRevision??check.revision)!==(info.badgeRevision??info.revision))throw Error('读�期间这张工牌资料�生�化,请�新读�'); + editingBadge=target;loadedBadgeRevision=info.badgeRevision??info.revision; + for(const k of ids)$(k).value=p[k];for(const k of THEME_KEYS)$(k).value=p.theme[k]; + $('preset').value='custom';source=nextAvatar;logoSource=nextLogo;qrReady=!!nextQr;loadedAvatarBytes=nextAvatarBytes;loadedLogoBytes=nextLogoBytes;loadedQrBytes=nextQr;avatarDirty=false;logoDirty=false;qrDirty=false; + if(nextQr)qc.putImageData(new ImageData(unpackQr(nextQr),192,192),0,0);else qrPlaceholder(); + $('qrStatus').textContent=qrReady?'已读�这张工牌的二维�。':'尚未上传二维�。'; + $('zoom').value=1;$('cropX').value=$('cropY').value=0;dirty=false;wifiDirty=false;xiaozhiBackendDirty=false; + showYaoTime(info.yaoTime,info.yaoLocationStatus);showWifi(info.wifi,true);showXiaozhiBackend(info.xiaozhi,true);showCatalog(check);render();message(`已读�工牌 ${editingBadge+1} 的�牌�头��资料和二维�。`); +} +$('badgeSelect').onchange=async()=>{ + const next=Number($('badgeSelect').value);$('badgeSelect').value=String(editingBadge); + if((dirty||wifiDirty||xiaozhiBackendDirty)&&!confirm('切�编辑会放弃尚未�存的修改,继续�?'))return; + busy=true;controls();try{await load(next)}catch(e){message(e.message,true)}finally{busy=false;controls()} +}; +$('displayBadge').onclick=async()=>{ + if(dirty){message('请先�存这张工牌,�切�显示。',true);return} + busy=true;controls();try{const result=await device.rpc('badge_select',{badge:editingBadge});showCatalog(result);message(`设备已切�显示工牌 ${editingBadge+1}。`)}catch(e){message('切�失败,请���试。'+e.message,true)}finally{busy=false;controls()} +}; +$('clearBadge').onclick=async()=>{ + if(!confirm(`清空工牌 ${editingBadge+1} 的资料�头���牌和二维�?其他工牌��影�。`))return; + busy=true;controls();try{await device.rpc('clear',{badge:editingBadge,baseRevision:loadedBadgeRevision});await new Promise(r=>setTimeout(r,350));await load(editingBadge)}catch(e){message('清空结果待确认,请�新读�。'+e.message,true)}finally{busy=false;controls()} +}; +$('connect').onclick=async()=>{if(device&&!device.closed){await device.disconnect();device=null;networks=[];renderNetworks();$('scanStatus').textContent='连接工牌��扫�附近网络。';controls();message('已断开连接。');return}if((dirty||xiaozhiBackendDirty)&&!confirm('连接�将读�设备资料,并替�当�未�存的编辑。继续�?'))return;busy=true;controls();try{device=viaHotspot?new BadgeHttp():new BadgeSerial();device.onClose=()=>{if(!busy){controls();message('USB 连接已断开。',true)}};await device.connect();await load()}catch(e){try{await device?.disconnect()}catch(_){}device=null;message(e.name==='NotFoundError'?'已�消连接。':e.message,true)}finally{busy=false;controls()}if(device&&!device.closed)scanWifi()}; +$('reload').onclick=async()=>{if((dirty||wifiDirty||xiaozhiBackendDirty)&&!confirm('�新读�会放弃尚未�存的修改,继续�?'))return;busy=true;controls();try{await load(editingBadge)}catch(e){message(e.message,true)}finally{busy=false;controls()}}; +$('save').onclick=async()=>{if(busy)return;let committed=false,begun=false;try{if(maxProfileVersion<4||maxBadgeLayout<2)throw Error('请先安装支��牌�编�的 2.4.4 固件');const p=validateExtended(fields());busy=true;controls();await fontsReady;render();const bytes=portraitPayload();$('progress').hidden=false;$('progress').value=0;message('正在写入工牌,请��连接…');await beginProfileUpload(device,{badge:editingBadge,baseRevision:loadedBadgeRevision,profile:p,format:4});begun=true;for(let offset=0;offsetsetTimeout(r,400));const info=await device.rpc('info',{badge:editingBadge});if(!info.custom||JSON.stringify(info.profile)!==JSON.stringify(p))throw Error('资料回读�一致');dirty=false;loadedBadgeRevision=info.badgeRevision??info.revision;showCatalog(info);message(`工牌 ${editingBadge+1} 已�存。${editingBadge===activeBadge?'�幕已更新。':'点击「显示这张工牌��切��幕。'}`)}catch(e){if(!committed){if(begun){try{await device?.rpc('abort')}catch(_){}}message('�存未完�,原资料��留。'+e.message,true)}else message('�存结果待确认,请�新读�。'+e.message,true)}finally{busy=false;$('progress').hidden=true;controls()}}; +for(const id of ['ssid','wifiPassword','openWifi'])$(id).oninput=()=>{wifiDirty=true}; +function wifiFormPayload(allowKeep=true){ + const ssid=$('ssid').value.trim(),password=$('wifiPassword').value,open=$('openWifi').checked; + const keepPassword=allowKeep&&!open&&!password&&wifi.passwordSet&&ssid===wifi.ssid; + const enc=new TextEncoder(); + if(!ssid||enc.encode(ssid).length>32||enc.encode(password).length>63||(!open&&!keepPassword&&enc.encode(password).length<8))throw Error('网络�称最多 32 字节;Wi-Fi 密�为 8–63 字节。'); + return {ssid,password,open,keepPassword}; +} +$('saveWifi').onclick=async()=>{let payload;try{payload=wifiFormPayload(true)}catch(e){message(e.message,true);return}busy=true;controls();try{await device.rpc('wifi_save',payload);wifiDirty=false;$('wifiPassword').value='';message('网络设置已�存,正在连接。�在下方查看连接结果。');await new Promise(r=>setTimeout(r,1000));showWifi((await device.rpc('wifi_info')).wifi,true)}catch(e){message('网络设置结果待确认,请�新读�。'+e.message,true)}finally{busy=false;controls()}}; +$('hotspot').onclick=async()=>{busy=true;controls();try{await device.rpc('hotspot');message('已请求切�热点,请查看工牌网络设置页。');await new Promise(r=>setTimeout(r,1200));showWifi((await device.rpc('wifi_info')).wifi)}catch(e){message(e.message,true)}finally{busy=false;controls()}}; +$('xiaozhiBackend').oninput=()=>{xiaozhiBackendDirty=true;controls()}; +$('resetXiaozhiBackend').onclick=()=>{$('xiaozhiBackend').value='';xiaozhiBackendDirty=true;controls();message('已切�为��官方默认,点击「�存�智�端��生效。')}; +$('saveXiaozhiBackend').onclick=async()=>{let payload;try{payload=xiaozhiBackendPayload()}catch(e){message(e.message,true);return}busy=true;controls();try{await device.rpc('xiaozhi_backend_save',payload);xiaozhiBackendDirty=false;const result=await device.rpc('xiaozhi_backend');showXiaozhiBackend(result,true);message(payload.url?'�智�端已�存,下次连接�智时生效。':'已���智官方默认�端。')}catch(e){message(e.message==='ESP_ERR_INVALID_STATE'?'�智正在�行,请退出�智���存�端。':'�智�端�存失败。'+e.message,true)}finally{busy=false;controls()}}; + +function renderNetworks(){ + const list=$('networkList');list.replaceChildren(); + for(const network of networks){ + const button=document.createElement('button');button.type='button';button.className='network-row'+($('ssid').value===network.ssid?' selected':'');button.dataset.supported=String(network.supported); + const name=document.createElement('span');name.className='network-name';name.textContent=network.ssid; + const detail=document.createElement('span');detail.className='network-detail';const strength=network.rssi>=-55?'强':network.rssi>=-70?'良好':'较弱'; + detail.textContent=strength+' · '+network.rssi+' dBm · '+(network.open?'开放':network.security)+(network.supported?'':' · 暂�支�'); + button.append(name,detail);button.onclick=()=>{if($('ssid').value!==network.ssid)$('wifiPassword').value='';$('ssid').value=network.ssid;$('openWifi').checked=network.open;wifiDirty=true;$('wifiPassword').placeholder=network.ssid===wifi.ssid&&wifi.passwordSet?'已�存密�,留空�留':network.open?'此网络无需密�':'输入此网络的密�';renderNetworks();controls()};list.append(button); + } + controls(); +} +async function scanWifi(){ + if(scanBusy||busy||!device||device.closed)return; + const target=device;scanBusy=true;controls();$('scanStatus').textContent='正在扫�附近的 2.4 GHz 网络…'; + try{ + let result=await target.rpc('wifi_scan'); + const deadline=Date.now()+20000; + while(result.scanning&&Date.now()setTimeout(r,500));if(device!==target||target.closed)return;result=await target.rpc('wifi_scan_results')} + if(device!==target||target.closed)return; + if(result.scanning)throw Error('扫�超时,请��刷新'); + if(result.scanError)throw Error(result.scanError==='ESP_ERR_WIFI_STATE'?'工牌正在连接网络,请��刷新':'扫�失败,请��刷新'); + networks=result.networks||[];renderNetworks();$('scanStatus').textContent=networks.length?'找到 '+networks.length+' 个网络,按信�强度排�。':'未�现��网络。请�近路由器并确认已开� 2.4 GHz,或手动输入网络�称。'; + }catch(e){if(device===target)$('scanStatus').textContent=e.message==='ESP_ERR_INVALID_ARG'?'请先安装支� Wi-Fi 扫�的 1.3.2 固件。':e.message} + finally{scanBusy=false;controls()} +} +$('scanWifi').onclick=scanWifi; + +let polling=false;setInterval(async()=>{if(!device||device.closed||busy||polling)return;polling=true;try{const net=await device.rpc('wifi_info');showWifi(net.wifi);showYaoTime(net.yaoTime,net.yaoLocationStatus);if(badgeCount>1)showCatalog(await device.rpc('badges'))}catch(e){$('wifiStatus').textContent='暂时无法读�网络状�,请检查连接。'}finally{polling=false}},5000); +$('form').onsubmit=e=>e.preventDefault();qrPlaceholder();render();controls();fontsReady.then(()=>render()).catch(()=>message('字体加载失败,请�新打开�置页。',true));if(viaHotspot)$('connect').click(); + +function showYaoTime(t,status){ + if(!t||!status){$('yaoTimeStatus').textContent='�级到 2.6.29 �,�网自动获��置,无需填写。';return;} + const states={offline:'尚未�网,未校准真太阳时',pending:'已排队自动定�和校时',fetching:'正在自动获��置并校准真太阳时',retrying:'本次定�失败,设备将在 15 秒�自动�试',unavailable:'未获�到�置,直接使用系统时间,�校准真太阳时'}; + $('yaoTimeStatus').textContent=(t.location_set?`网络定�(近似):${t.region} · �度 ${t.longitude_east}°`:states[status]||'无�用�置,直接使用系统时间')+'\n'+(t.clock_valid?`读�时北京时间:${t.beijing_utc8}(UTC+8)`:'设备尚未校时,�推断起�时间')+(t.true_solar_time?`\n当地真太阳时(近似):${t.true_solar_time}`:''); +} diff --git a/configure/index.html b/configure/index.html new file mode 100644 index 0000000..b83bcad --- /dev/null +++ b/configure/index.html @@ -0,0 +1,668 @@ +工牌控制� · 本地�置 +
ARASAKABADGE CONTROL / LOCAL CONNECTION
未连接
+
PERSONNEL / IDENTITY / NETWORK

你的身份,你的风格。

�牌�头��二维�与无线网络,都由你设置。连接�读�已�存内容;通过 USB 或工牌热点在本机完��置。

+

工牌库 最多 5 张

连接�读�工牌列表。编辑其他工牌�会改�设备当�显示。

工牌首页长按 OK 打开列表,上下选择,OK 切�,长按 OK 返回。Wi-Fi 为所有工牌共用。

+
+

01�牌与�色

+

02肖�与身份信�

JPG / PNG / WebP,最大 10 MB。

姓��部门����自固定预留两行高度,�行居中显示;姓�支�中文和英文自动�行,最多两行;较长姓�自动缩�,�超出时显示�略�。完整内容�会�存。签�支�多行显示。旧工牌读���存��更新排版。

+

03微信二维�

从微信�存个人二维�图片�上传,也�以使用截图。自动识别并生�清晰�图,�留原二维�内容。

尚未上传。工牌首页按下键,��一键亮�。

+
+

04Wi-Fi 与热点�置

支� 2.4 GHz Wi-Fi。密�留空��留�一网络的已存密�。

附近的 Wi-Fi

连接工牌�自动扫�附近的 2.4 GHz 网络。

点击网络选择。找�到网络时,�以刷新,或手动输入��网络的�称。

连接工牌�读�网络设置。

完整资料�置:工牌 → 系统设置 → OK 网络设置 → OK 开�热点。连接�幕显示的热点,输入其密�,�打开 http://192.168.4.1。热点空闲 10 分钟自动关闭。

+

05�智 AI �端

默认使用�智官方�务。需�接入自建或兼容�端时,在这里填写�务�现地�;留空并�存����官方默认。

连接工牌�读��智�端设置。

自定义�端需�兼容�智官方 OTA / �务�现返回格�。�存时�智�能正在�行;�存�下次连接�智生效。

+
+

06辅助功能说明

+

六爻时间:�网�自动校时,并�试用网络定�估算真太阳时;获��到�置时直接使用北京时间,�影�起�。状�会显示在起�程�内,解读时会把��时间�校准状�和�象一起传给�智。

+

连接工牌�读�自动定�与时间状�。

+

NFC:用安� NFC 写入应用(如 NXP TagWriter)写入一个网�,之�手机碰一碰工牌��打开。NFC 网�由手机写入,��员工牌切��化,也�通过“�存到工牌�写入。

+
+
+
LOCAL FIRST / 资料仅写入当�工牌,头��二维�和密����到云端。
+ + + + + + diff --git a/configure/page.html b/configure/page.html new file mode 100644 index 0000000..3bb8fb3 --- /dev/null +++ b/configure/page.html @@ -0,0 +1,28 @@ +工牌控制� · 本地�置 +
ARASAKABADGE CONTROL / LOCAL CONNECTION
未连接
+
PERSONNEL / IDENTITY / NETWORK

你的身份,你的风格。

�牌�头��二维�与无线网络,都由你设置。连接�读�已�存内容;通过 USB 或工牌热点在本机完��置。

+

工牌库 最多 5 张

连接�读�工牌列表。编辑其他工牌�会改�设备当�显示。

工牌首页长按 OK 打开列表,上下选择,OK 切�,长按 OK 返回。Wi-Fi 为所有工牌共用。

+
+

01�牌与�色

+

02肖�与身份信�

JPG / PNG / WebP,最大 10 MB。

姓��部门����自固定预留两行高度,�行居中显示;姓�支�中文和英文自动�行,最多两行;较长姓�自动缩�,�超出时显示�略�。完整内容�会�存。签�支�多行显示。旧工牌读���存��更新排版。

+

03微信二维�

从微信�存个人二维�图片�上传,也�以使用截图。自动识别并生�清晰�图,�留原二维�内容。

尚未上传。工牌首页按下键,��一键亮�。

+
+

04Wi-Fi 与热点�置

支� 2.4 GHz Wi-Fi。密�留空��留�一网络的已存密�。

附近的 Wi-Fi

连接工牌�自动扫�附近的 2.4 GHz 网络。

点击网络选择。找�到网络时,�以刷新,或手动输入��网络的�称。

连接工牌�读�网络设置。

完整资料�置:工牌 → 系统设置 → OK 网络设置 → OK 开�热点。连接�幕显示的热点,输入其密�,�打开 http://192.168.4.1。热点空闲 10 分钟自动关闭。

+

05�智 AI �端

默认使用�智官方�务。需�接入自建或兼容�端时,在这里填写�务�现地�;留空并�存����官方默认。

连接工牌�读��智�端设置。

自定义�端需�兼容�智官方 OTA / �务�现返回格�。�存时�智�能正在�行;�存�下次连接�智生效。

+
+

06辅助功能说明

+

六爻时间:�网�自动校时,并�试用网络定�估算真太阳时;获��到�置时直接使用北京时间,�影�起�。状�会显示在起�程�内,解读时会把��时间�校准状�和�象一起传给�智。

+

连接工牌�读�自动定�与时间状�。

+

NFC:用安� NFC 写入应用(如 NXP TagWriter)写入一个网�,之�手机碰一碰工牌��打开。NFC 网�由手机写入,��员工牌切��化,也�通过“�存到工牌�写入。

+
+
+
LOCAL FIRST / 资料仅写入当�工牌,头��二维�和密����到云端。
+ + + diff --git a/configure/profile-core.js b/configure/profile-core.js new file mode 100644 index 0000000..88aa964 --- /dev/null +++ b/configure/profile-core.js @@ -0,0 +1,78 @@ + +const FORMAT={w:208,h:148,aw:72,ah:88,chunk:768}; +function to565(image){const bytes=new Uint8Array(image.width*image.height*2),p=image.data;for(let i=0,j=0;i>3)<<11)|((p[i+1]>>2)<<5)|(p[i+2]>>3);bytes[j]=v&255;bytes[j+1]=v>>8}return bytes} +function rgba565(bytes,w,h){if(bytes.length!==w*h*2)throw Error('图�数�长度�正确');const rgba=new Uint8ClampedArray(w*h*4);for(let i=0,j=0;i>11)&31)*255/31;rgba[j+1]=((v>>5)&63)*255/63;rgba[j+2]=(v&31)*255/31;rgba[j+3]=255}return rgba} +function validateProfile(p){for(const k of ['name','department','title','employeeId','signature']){if(typeof p[k]!=='string'||new TextEncoder().encode(p[k]).length>128||/[\x00-\x1f\x7f]/.test(p[k]))throw Error('资料内容过长或�有��显示字符')}if(!p.name.trim())throw Error('请填写姓�或昵称');return p} +function fit(ctx,text,width){if(ctx.measureText(text).width<=width)return text;const chars=Array.from(text);while(chars.length&&ctx.measureText(chars.join('')+'…').width>width)chars.pop();return chars.join('')+'…'} +// Name region is 112x32 in the persisted card; never overwrite adjacent fields. +function nameLayout(ctx,text,width=112,family='"Microsoft YaHei","PingFang SC",sans-serif'){ + const value=String(text).trim().replace(/\s+/gu,' '); + const graphemes=s=>typeof Intl.Segmenter==='function'?[...new Intl.Segmenter(undefined,{granularity:'grapheme'}).segment(s)].map(x=>x.segment):Array.from(s); + const font=size=>{ctx.font=`700 ${size}px ${family}`}; + function wrap(){ + const lines=[];let line=''; + for(const word of value.split(' ')){ + const next=line?line+' '+word:word; + if(ctx.measureText(next).width<=width){line=next;continue} + if(line){lines.push(line);line=''} + for(const ch of graphemes(word)){ + if(line&&ctx.measureText(line+ch).width>width){lines.push(line);line=''} + line+=ch; + } + } + if(line)lines.push(line);return lines; + } + font(20);if(ctx.measureText(value).width<=width)return {size:20,lines:[value],truncated:false}; + let lines=wrap(); + // Preserve useful word breaks from the heading size; two compact rows fit the slot. + if(lines.length<=2){font(14);return {size:14,lines,truncated:false}} + for(const size of [14,12,10]){font(size);lines=wrap();if(lines.length<=2)return {size,lines,truncated:false}} + let tail=graphemes(lines.slice(1).join(' '));while(tail.length&&ctx.measureText(tail.join('')+'…').width>width)tail.pop(); + return {size:10,lines:[lines[0],tail.join('')+'…'],truncated:true}; +} +function drawName(ctx,text,x=88,y=4,width=112,height=32,family){ + ctx.save();ctx.beginPath();ctx.rect(x,y,width,height);ctx.clip(); + const layout=nameLayout(ctx,text,width,family);ctx.textBaseline='alphabetic';ctx.textAlign='left'; + if(layout.lines.length===1)ctx.fillText(layout.lines[0],x,y+24); + else layout.lines.forEach((line,i)=>ctx.fillText(line,x,y+13+i*16)); + ctx.restore();return layout; +} +function deviceError(reply){ + const messages={display_pending:'工牌正在刷新资料,请�候�试。',profile_changed:'这张工牌已被其他页�或�智修改。当�编辑已�留,请核对并�新读�设备资料��存。',upload_busy:'�一个�置页�正在上传,请等待其完�或断开。'}; + const error=Error(messages[reply.reason]||reply.error||'设备拒�请求');error.code=reply.error;error.reason=reply.reason;return error; +} +async function beginProfileUpload(device,args){ + // Retry only an explicitly transient display barrier. Never replace a stale + // baseRevision or automatically overwrite another client's changes. + for(let attempt=0;;attempt++){ + try{return await device.rpc('begin',args)}catch(e){ + if(e.reason!=='display_pending'||attempt>=15)throw e; + await new Promise(resolve=>setTimeout(resolve,250)); + } + } +} +class BadgeSerial{ + constructor(){this.id=0;this.session=Math.random().toString(36).slice(2)+Date.now().toString(36);this.pending=new Map();this.buffer='';this.closed=true} + async connect(){if(!navigator.serial)throw Error('请在电脑 Chrome 或 Edge 中打开此�置页');this.port=await navigator.serial.requestPort({filters:[{usbVendorId:0x303a,usbProductId:0x1001}]});await this.port.open({baudRate:115200,bufferSize:4096});await this.port.setSignals({dataTerminalReady:false,requestToSend:false});this.writer=this.port.writable.getWriter();this.reader=this.port.readable.getReader();this.closed=false;this.readTask=this.readLoop()} + async readLoop(){const decoder=new TextDecoder();try{while(true){const {value,done}=await this.reader.read();if(done)break;this.buffer+=decoder.decode(value,{stream:true});let n;while((n=this.buffer.indexOf('\n'))>=0){const line=this.buffer.slice(0,n);this.buffer=this.buffer.slice(n+1);const start=line.indexOf('@BADGE ');if(start<0)continue;try{const r=JSON.parse(line.slice(start+7)),p=this.pending.get(r.id);if(p){clearTimeout(p.timer);this.pending.delete(r.id);r.ok?p.resolve(r):p.reject(deviceError(r))}}catch(e){}}if(this.buffer.length>8192)this.buffer=''}}catch(e){}finally{this.closed=true;this.reader.releaseLock();for(const p of this.pending.values()){clearTimeout(p.timer);p.reject(Error('USB 连接已断开'))}this.pending.clear();this.onClose?.()}} + async rpc(op,extra={}){if(this.closed)throw Error('请先连接工牌');const id=++this.id;const response=new Promise((resolve,reject)=>{const timer=setTimeout(()=>{this.pending.delete(id);reject(Error('设备�应超时,请检查连接和固件版本'))},12000);this.pending.set(id,{resolve,reject,timer})});try{await this.writer.write(new TextEncoder().encode(JSON.stringify({id,op,session:this.session,...extra})+'\n'))}catch(e){const p=this.pending.get(id);if(p){clearTimeout(p.timer);this.pending.delete(id);p.reject(e)}}return response} + async disconnect(){if(this.reader&&!this.closed){await this.reader.cancel();await this.readTask}this.writer?.releaseLock();if(this.port)await this.port.close();this.port=null;this.writer=null} +} + +const THEME_KEYS=['background','panel','accent','text','muted']; +const DEFAULT_THEME={background:'#08090b',panel:'#181216',accent:'#f03543',text:'#e8e6df',muted:'#a69c9f'}; +const DEFAULT_PROFILE={alias:'',name:'FOLO MAKER',department:'网络安全部',title:'安全工程师',employeeId:'NC-2077',signature:'',brandName:'ARASAKA',badgeCaption:'员工身份档案',theme:DEFAULT_THEME,logoCustom:false,qrPresent:false}; +function validateExtended(p){validateProfile(p);if(typeof p.alias!=='string'||new TextEncoder().encode(p.alias).length>128||/[\x00-\x1f\x7f]/.test(p.alias))throw Error('请输入有效的代�');for(const k of ['brandName','badgeCaption']){if(typeof p[k]!=='string'||!p[k].trim()||new TextEncoder().encode(p[k]).length>128||/[\x00-\x1f\x7f]/.test(p[k]))throw Error('请填写有效的�牌�称和工牌标题')}for(const k of THEME_KEYS)if(!/^#[0-9a-f]{6}$/i.test(p.theme[k]))throw Error('颜色格��正确');return p} +function luminance(h){const c=[1,3,5].map(i=>parseInt(h.slice(i,i+2),16)/255).map(x=>x<=.04045?x/12.92:((x+.055)/1.055)**2.4);return c[0]*.2126+c[1]*.7152+c[2]*.0722} +function contrast(a,b){const x=luminance(a),y=luminance(b);return(Math.max(x,y)+.05)/(Math.min(x,y)+.05)} +function packQr(image){const result=new Uint8Array(4608);if(image.width!==192||image.height!==192)throw Error('二维�尺寸�正确');for(let i=0;i<192*192;i++)if(image.data[i*4]<128)result[i>>3]|=128>>(i&7);return result} +function unpackQr(bytes){if(bytes.length!==4608)throw Error('二维�数��完整');const p=new Uint8ClampedArray(192*192*4);for(let i=0;i<192*192;i++){const c=bytes[i>>3]&(128>>(i&7))?0:255;p.set([c,c,c,255],i*4)}return p} +// Match the device's binary, nearest-center 176px display; keep storage at 192px. +function qrDisplayPixels(source){const data=new Uint8ClampedArray(176*176*4);for(let y=0;y<176;y++)for(let x=0;x<176;x++){const sx=Math.floor((x*192+88)/176),sy=Math.floor((y*192+88)/176),c=source[(sy*192+sx)*4]<128?0:255;data.set([c,c,c,255],(y*176+x)*4)}return data} +function qrPixels(payload){if(!payload.length||payload.length>1200)throw Error('二维�内容过长');const q=qrcodegen.QrCode.encodeSegments([qrcodegen.QrSegment.makeBytes(payload)],qrcodegen.QrCode.Ecc.MEDIUM,1,17,-1,true),scale=Math.floor(192/(q.size+8));if(scale<2)throw Error('二维�过于��,无法清晰显示');const data=new Uint8ClampedArray(192*192*4);data.fill(255);const offset=Math.floor((192-q.size*scale)/2);for(let y=0;y=this.width||e<0||e>=this.height)&&!!this.data[e*this.width+o]},o.prototype.set=function(o,e,r){this.data[e*this.width+o]=r?1:0},o.prototype.setRegion=function(o,e,r,t,c){for(var s=e;s=this.size&&(c=(c^this.primitive)&this.size-1);for(s=0;s1&&0===e[0]){for(var t=1;ts.length&&(c=(r=[s,c])[0],s=r[1]);for(var a=new Uint8ClampedArray(s.length),n=s.length-c.length,d=0;dr?r:o}var s=function(){function o(o,e){this.width=o,this.data=new Uint8ClampedArray(o*e)}return o.prototype.get=function(o,e){return this.data[e*this.width+o]},o.prototype.set=function(o,e,r){this.data[e*this.width+o]=r},o}();e.binarize=function(o,e,r,a){if(o.length!==e*r*4)throw new Error("Malformed data passed to binarizer.");for(var n=new s(e,r),d=0;d0&&w>0)){var b=(m.get(w,f-1)+2*m.get(w-1,f)+m.get(w-1,f-1))/4;v6&&(r.setRegion(e-11,0,3,6,!0),r.setRegion(0,e-11,6,3,!0)),r}(e),n=[],l=0,B=0,k=!0,u=s-1;u>0;u-=2){6===u&&u--;for(var C=0;C=0;c--)for(var s=e-9;s>=e-11;s--)t=d(o.get(s,c),t);var l=0;for(s=5;s>=0;s--)for(c=e-9;c>=e-11;c--)l=d(o.get(s,c),l);for(var i,B=1/0,k=0,u=a.VERSIONS;k=0;t--)6!==t&&(e=d(o.get(8,t),e));var c=o.height,s=0;for(t=c-1;t>=c-7;t--)s=d(o.get(8,t),s);for(r=c-8;r1){var i=t.ecBlocks[0].numBlocks,B=t.ecBlocks[1].numBlocks;for(n=0;n0;)for(var k=0,u=c;k=3;){if((l=o.readBits(10))>=1e3)throw new Error("Invalid numeric value above 999");var a=Math.floor(l/100),n=Math.floor(l/10)%10,d=l%10;r.push(48+a,48+n,48+d),t+=a.toString()+n.toString()+d.toString(),s-=3}if(2===s){if((l=o.readBits(7))>=100)throw new Error("Invalid numeric value above 99");a=Math.floor(l/10),n=l%10;r.push(48+a,48+n),t+=a.toString()+n.toString()}else if(1===s){var l;if((l=o.readBits(4))>=10)throw new Error("Invalid numeric value above 9");r.push(48+l),t+=l.toString()}return{bytes:r,text:t}}!function(o){o.Numeric="numeric",o.Alphanumeric="alphanumeric",o.Byte="byte",o.Kanji="kanji",o.ECI="eci"}(t=e.Mode||(e.Mode={})),function(o){o[o.Terminator=0]="Terminator",o[o.Numeric=1]="Numeric",o[o.Alphanumeric=2]="Alphanumeric",o[o.Byte=4]="Byte",o[o.Kanji=8]="Kanji",o[o.ECI=7]="ECI"}(c||(c={}));var d=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function l(o,e){for(var r=[],t="",c=[9,11,13][e],s=o.readBits(c);s>=2;){var a=o.readBits(11),n=Math.floor(a/45),l=a%45;r.push(d[n].charCodeAt(0),d[l].charCodeAt(0)),t+=d[n]+d[l],s-=2}if(1===s){n=o.readBits(6);r.push(d[n].charCodeAt(0)),t+=d[n]}return{bytes:r,text:t}}function i(o,e){for(var r=[],t="",c=[8,16,16][e],s=o.readBits(c),a=0;a>8,255&l),t+=String.fromCharCode(a.shiftJISTable[l])}return{bytes:r,text:t}}e.decode=function(o,e){for(var r,a,d,k,u=new s.BitStream(o),C=e<=9?0:e<=26?1:2,m={text:"",bytes:[],chunks:[],version:e};u.available()>=4;){var f=u.readBits(4);if(f===c.Terminator)return m;if(f===c.ECI)0===u.readBits(1)?m.chunks.push({type:t.ECI,assignmentNumber:u.readBits(7)}):0===u.readBits(1)?m.chunks.push({type:t.ECI,assignmentNumber:u.readBits(14)}):0===u.readBits(1)?m.chunks.push({type:t.ECI,assignmentNumber:u.readBits(21)}):m.chunks.push({type:t.ECI,assignmentNumber:-1});else if(f===c.Numeric){var w=n(u,C);m.text+=w.text,(r=m.bytes).push.apply(r,w.bytes),m.chunks.push({type:t.Numeric,text:w.text})}else if(f===c.Alphanumeric){var P=l(u,C);m.text+=P.text,(a=m.bytes).push.apply(a,P.bytes),m.chunks.push({type:t.Alphanumeric,text:P.text})}else if(f===c.Byte){var v=i(u,C);m.text+=v.text,(d=m.bytes).push.apply(d,v.bytes),m.chunks.push({type:t.Byte,bytes:v.bytes,text:v.text})}else if(f===c.Kanji){var h=B(u,C);m.text+=h.text,(k=m.bytes).push.apply(k,h.bytes),m.chunks.push({type:t.Kanji,bytes:h.bytes,text:h.text})}}if(0===u.available()||0===u.readBits(u.available()))return m}},function(o,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function o(o){this.byteOffset=0,this.bitOffset=0,this.bytes=o}return o.prototype.readBits=function(o){if(o<1||o>32||o>this.available())throw new Error("Cannot read "+o.toString()+" bits");var e=0;if(this.bitOffset>0){var r=8-this.bitOffset,t=o>8-t<<(s=r-t);e=(this.bytes[this.byteOffset]&c)>>s,o-=t,this.bitOffset+=t,8===this.bitOffset&&(this.bitOffset=0,this.byteOffset++)}if(o>0){for(;o>=8;)e=e<<8|255&this.bytes[this.byteOffset],this.byteOffset++,o-=8;if(o>0){var s;c=255>>(s=8-o)<>s,this.bitOffset+=o}}return e},o.prototype.available=function(){return 8*(this.bytes.length-this.byteOffset)-this.bitOffset},o}();e.BitStream=t},function(o,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.shiftJISTable={32:32,33:33,34:34,35:35,36:36,37:37,38:38,39:39,40:40,41:41,42:42,43:43,44:44,45:45,46:46,47:47,48:48,49:49,50:50,51:51,52:52,53:53,54:54,55:55,56:56,57:57,58:58,59:59,60:60,61:61,62:62,63:63,64:64,65:65,66:66,67:67,68:68,69:69,70:70,71:71,72:72,73:73,74:74,75:75,76:76,77:77,78:78,79:79,80:80,81:81,82:82,83:83,84:84,85:85,86:86,87:87,88:88,89:89,90:90,91:91,92:165,93:93,94:94,95:95,96:96,97:97,98:98,99:99,100:100,101:101,102:102,103:103,104:104,105:105,106:106,107:107,108:108,109:109,110:110,111:111,112:112,113:113,114:114,115:115,116:116,117:117,118:118,119:119,120:120,121:121,122:122,123:123,124:124,125:125,126:8254,33088:12288,33089:12289,33090:12290,33091:65292,33092:65294,33093:12539,33094:65306,33095:65307,33096:65311,33097:65281,33098:12443,33099:12444,33100:180,33101:65344,33102:168,33103:65342,33104:65507,33105:65343,33106:12541,33107:12542,33108:12445,33109:12446,33110:12291,33111:20189,33112:12293,33113:12294,33114:12295,33115:12540,33116:8213,33117:8208,33118:65295,33119:92,33120:12316,33121:8214,33122:65372,33123:8230,33124:8229,33125:8216,33126:8217,33127:8220,33128:8221,33129:65288,33130:65289,33131:12308,33132:12309,33133:65339,33134:65341,33135:65371,33136:65373,33137:12296,33138:12297,33139:12298,33140:12299,33141:12300,33142:12301,33143:12302,33144:12303,33145:12304,33146:12305,33147:65291,33148:8722,33149:177,33150:215,33152:247,33153:65309,33154:8800,33155:65308,33156:65310,33157:8806,33158:8807,33159:8734,33160:8756,33161:9794,33162:9792,33163:176,33164:8242,33165:8243,33166:8451,33167:65509,33168:65284,33169:162,33170:163,33171:65285,33172:65283,33173:65286,33174:65290,33175:65312,33176:167,33177:9734,33178:9733,33179:9675,33180:9679,33181:9678,33182:9671,33183:9670,33184:9633,33185:9632,33186:9651,33187:9650,33188:9661,33189:9660,33190:8251,33191:12306,33192:8594,33193:8592,33194:8593,33195:8595,33196:12307,33208:8712,33209:8715,33210:8838,33211:8839,33212:8834,33213:8835,33214:8746,33215:8745,33224:8743,33225:8744,33226:172,33227:8658,33228:8660,33229:8704,33230:8707,33242:8736,33243:8869,33244:8978,33245:8706,33246:8711,33247:8801,33248:8786,33249:8810,33250:8811,33251:8730,33252:8765,33253:8733,33254:8757,33255:8747,33256:8748,33264:8491,33265:8240,33266:9839,33267:9837,33268:9834,33269:8224,33270:8225,33271:182,33276:9711,33359:65296,33360:65297,33361:65298,33362:65299,33363:65300,33364:65301,33365:65302,33366:65303,33367:65304,33368:65305,33376:65313,33377:65314,33378:65315,33379:65316,33380:65317,33381:65318,33382:65319,33383:65320,33384:65321,33385:65322,33386:65323,33387:65324,33388:65325,33389:65326,33390:65327,33391:65328,33392:65329,33393:65330,33394:65331,33395:65332,33396:65333,33397:65334,33398:65335,33399:65336,33400:65337,33401:65338,33409:65345,33410:65346,33411:65347,33412:65348,33413:65349,33414:65350,33415:65351,33416:65352,33417:65353,33418:65354,33419:65355,33420:65356,33421:65357,33422:65358,33423:65359,33424:65360,33425:65361,33426:65362,33427:65363,33428:65364,33429:65365,33430:65366,33431:65367,33432:65368,33433:65369,33434:65370,33439:12353,33440:12354,33441:12355,33442:12356,33443:12357,33444:12358,33445:12359,33446:12360,33447:12361,33448:12362,33449:12363,33450:12364,33451:12365,33452:12366,33453:12367,33454:12368,33455:12369,33456:12370,33457:12371,33458:12372,33459:12373,33460:12374,33461:12375,33462:12376,33463:12377,33464:12378,33465:12379,33466:12380,33467:12381,33468:12382,33469:12383,33470:12384,33471:12385,33472:12386,33473:12387,33474:12388,33475:12389,33476:12390,33477:12391,33478:12392,33479:12393,33480:12394,33481:12395,33482:12396,33483:12397,33484:12398,33485:12399,33486:12400,33487:12401,33488:12402,33489:12403,33490:12404,33491:12405,33492:12406,33493:12407,33494:12408,33495:12409,33496:12410,33497:12411,33498:12412,33499:12413,33500:12414,33501:12415,33502:12416,33503:12417,33504:12418,33505:12419,33506:12420,33507:12421,33508:12422,33509:12423,33510:12424,33511:12425,33512:12426,33513:12427,33514:12428,33515:12429,33516:12430,33517:12431,33518:12432,33519:12433,33520:12434,33521:12435,33600:12449,33601:12450,33602:12451,33603:12452,33604:12453,33605:12454,33606:12455,33607:12456,33608:12457,33609:12458,33610:12459,33611:12460,33612:12461,33613:12462,33614:12463,33615:12464,33616:12465,33617:12466,33618:12467,33619:12468,33620:12469,33621:12470,33622:12471,33623:12472,33624:12473,33625:12474,33626:12475,33627:12476,33628:12477,33629:12478,33630:12479,33631:12480,33632:12481,33633:12482,33634:12483,33635:12484,33636:12485,33637:12486,33638:12487,33639:12488,33640:12489,33641:12490,33642:12491,33643:12492,33644:12493,33645:12494,33646:12495,33647:12496,33648:12497,33649:12498,33650:12499,33651:12500,33652:12501,33653:12502,33654:12503,33655:12504,33656:12505,33657:12506,33658:12507,33659:12508,33660:12509,33661:12510,33662:12511,33664:12512,33665:12513,33666:12514,33667:12515,33668:12516,33669:12517,33670:12518,33671:12519,33672:12520,33673:12521,33674:12522,33675:12523,33676:12524,33677:12525,33678:12526,33679:12527,33680:12528,33681:12529,33682:12530,33683:12531,33684:12532,33685:12533,33686:12534,33695:913,33696:914,33697:915,33698:916,33699:917,33700:918,33701:919,33702:920,33703:921,33704:922,33705:923,33706:924,33707:925,33708:926,33709:927,33710:928,33711:929,33712:931,33713:932,33714:933,33715:934,33716:935,33717:936,33718:937,33727:945,33728:946,33729:947,33730:948,33731:949,33732:950,33733:951,33734:952,33735:953,33736:954,33737:955,33738:956,33739:957,33740:958,33741:959,33742:960,33743:961,33744:963,33745:964,33746:965,33747:966,33748:967,33749:968,33750:969,33856:1040,33857:1041,33858:1042,33859:1043,33860:1044,33861:1045,33862:1025,33863:1046,33864:1047,33865:1048,33866:1049,33867:1050,33868:1051,33869:1052,33870:1053,33871:1054,33872:1055,33873:1056,33874:1057,33875:1058,33876:1059,33877:1060,33878:1061,33879:1062,33880:1063,33881:1064,33882:1065,33883:1066,33884:1067,33885:1068,33886:1069,33887:1070,33888:1071,33904:1072,33905:1073,33906:1074,33907:1075,33908:1076,33909:1077,33910:1105,33911:1078,33912:1079,33913:1080,33914:1081,33915:1082,33916:1083,33917:1084,33918:1085,33920:1086,33921:1087,33922:1088,33923:1089,33924:1090,33925:1091,33926:1092,33927:1093,33928:1094,33929:1095,33930:1096,33931:1097,33932:1098,33933:1099,33934:1100,33935:1101,33936:1102,33937:1103,33951:9472,33952:9474,33953:9484,33954:9488,33955:9496,33956:9492,33957:9500,33958:9516,33959:9508,33960:9524,33961:9532,33962:9473,33963:9475,33964:9487,33965:9491,33966:9499,33967:9495,33968:9507,33969:9523,33970:9515,33971:9531,33972:9547,33973:9504,33974:9519,33975:9512,33976:9527,33977:9535,33978:9501,33979:9520,33980:9509,33981:9528,33982:9538,34975:20124,34976:21782,34977:23043,34978:38463,34979:21696,34980:24859,34981:25384,34982:23030,34983:36898,34984:33909,34985:33564,34986:31312,34987:24746,34988:25569,34989:28197,34990:26093,34991:33894,34992:33446,34993:39925,34994:26771,34995:22311,34996:26017,34997:25201,34998:23451,34999:22992,35e3:34427,35001:39156,35002:32098,35003:32190,35004:39822,35005:25110,35006:31903,35007:34999,35008:23433,35009:24245,35010:25353,35011:26263,35012:26696,35013:38343,35014:38797,35015:26447,35016:20197,35017:20234,35018:20301,35019:20381,35020:20553,35021:22258,35022:22839,35023:22996,35024:23041,35025:23561,35026:24799,35027:24847,35028:24944,35029:26131,35030:26885,35031:28858,35032:30031,35033:30064,35034:31227,35035:32173,35036:32239,35037:32963,35038:33806,35039:34915,35040:35586,35041:36949,35042:36986,35043:21307,35044:20117,35045:20133,35046:22495,35047:32946,35048:37057,35049:30959,35050:19968,35051:22769,35052:28322,35053:36920,35054:31282,35055:33576,35056:33419,35057:39983,35058:20801,35059:21360,35060:21693,35061:21729,35062:22240,35063:23035,35064:24341,35065:39154,35066:28139,35067:32996,35068:34093,35136:38498,35137:38512,35138:38560,35139:38907,35140:21515,35141:21491,35142:23431,35143:28879,35144:32701,35145:36802,35146:38632,35147:21359,35148:40284,35149:31418,35150:19985,35151:30867,35152:33276,35153:28198,35154:22040,35155:21764,35156:27421,35157:34074,35158:39995,35159:23013,35160:21417,35161:28006,35162:29916,35163:38287,35164:22082,35165:20113,35166:36939,35167:38642,35168:33615,35169:39180,35170:21473,35171:21942,35172:23344,35173:24433,35174:26144,35175:26355,35176:26628,35177:27704,35178:27891,35179:27945,35180:29787,35181:30408,35182:31310,35183:38964,35184:33521,35185:34907,35186:35424,35187:37613,35188:28082,35189:30123,35190:30410,35191:39365,35192:24742,35193:35585,35194:36234,35195:38322,35196:27022,35197:21421,35198:20870,35200:22290,35201:22576,35202:22852,35203:23476,35204:24310,35205:24616,35206:25513,35207:25588,35208:27839,35209:28436,35210:28814,35211:28948,35212:29017,35213:29141,35214:29503,35215:32257,35216:33398,35217:33489,35218:34199,35219:36960,35220:37467,35221:40219,35222:22633,35223:26044,35224:27738,35225:29989,35226:20985,35227:22830,35228:22885,35229:24448,35230:24540,35231:25276,35232:26106,35233:27178,35234:27431,35235:27572,35236:29579,35237:32705,35238:35158,35239:40236,35240:40206,35241:40644,35242:23713,35243:27798,35244:33659,35245:20740,35246:23627,35247:25014,35248:33222,35249:26742,35250:29281,35251:20057,35252:20474,35253:21368,35254:24681,35255:28201,35256:31311,35257:38899,35258:19979,35259:21270,35260:20206,35261:20309,35262:20285,35263:20385,35264:20339,35265:21152,35266:21487,35267:22025,35268:22799,35269:23233,35270:23478,35271:23521,35272:31185,35273:26247,35274:26524,35275:26550,35276:27468,35277:27827,35278:28779,35279:29634,35280:31117,35281:31166,35282:31292,35283:31623,35284:33457,35285:33499,35286:33540,35287:33655,35288:33775,35289:33747,35290:34662,35291:35506,35292:22057,35293:36008,35294:36838,35295:36942,35296:38686,35297:34442,35298:20420,35299:23784,35300:25105,35301:29273,35302:30011,35303:33253,35304:33469,35305:34558,35306:36032,35307:38597,35308:39187,35309:39381,35310:20171,35311:20250,35312:35299,35313:22238,35314:22602,35315:22730,35316:24315,35317:24555,35318:24618,35319:24724,35320:24674,35321:25040,35322:25106,35323:25296,35324:25913,35392:39745,35393:26214,35394:26800,35395:28023,35396:28784,35397:30028,35398:30342,35399:32117,35400:33445,35401:34809,35402:38283,35403:38542,35404:35997,35405:20977,35406:21182,35407:22806,35408:21683,35409:23475,35410:23830,35411:24936,35412:27010,35413:28079,35414:30861,35415:33995,35416:34903,35417:35442,35418:37799,35419:39608,35420:28012,35421:39336,35422:34521,35423:22435,35424:26623,35425:34510,35426:37390,35427:21123,35428:22151,35429:21508,35430:24275,35431:25313,35432:25785,35433:26684,35434:26680,35435:27579,35436:29554,35437:30906,35438:31339,35439:35226,35440:35282,35441:36203,35442:36611,35443:37101,35444:38307,35445:38548,35446:38761,35447:23398,35448:23731,35449:27005,35450:38989,35451:38990,35452:25499,35453:31520,35454:27179,35456:27263,35457:26806,35458:39949,35459:28511,35460:21106,35461:21917,35462:24688,35463:25324,35464:27963,35465:28167,35466:28369,35467:33883,35468:35088,35469:36676,35470:19988,35471:39993,35472:21494,35473:26907,35474:27194,35475:38788,35476:26666,35477:20828,35478:31427,35479:33970,35480:37340,35481:37772,35482:22107,35483:40232,35484:26658,35485:33541,35486:33841,35487:31909,35488:21e3,35489:33477,35490:29926,35491:20094,35492:20355,35493:20896,35494:23506,35495:21002,35496:21208,35497:21223,35498:24059,35499:21914,35500:22570,35501:23014,35502:23436,35503:23448,35504:23515,35505:24178,35506:24185,35507:24739,35508:24863,35509:24931,35510:25022,35511:25563,35512:25954,35513:26577,35514:26707,35515:26874,35516:27454,35517:27475,35518:27735,35519:28450,35520:28567,35521:28485,35522:29872,35523:29976,35524:30435,35525:30475,35526:31487,35527:31649,35528:31777,35529:32233,35530:32566,35531:32752,35532:32925,35533:33382,35534:33694,35535:35251,35536:35532,35537:36011,35538:36996,35539:37969,35540:38291,35541:38289,35542:38306,35543:38501,35544:38867,35545:39208,35546:33304,35547:20024,35548:21547,35549:23736,35550:24012,35551:29609,35552:30284,35553:30524,35554:23721,35555:32747,35556:36107,35557:38593,35558:38929,35559:38996,35560:39e3,35561:20225,35562:20238,35563:21361,35564:21916,35565:22120,35566:22522,35567:22855,35568:23305,35569:23492,35570:23696,35571:24076,35572:24190,35573:24524,35574:25582,35575:26426,35576:26071,35577:26082,35578:26399,35579:26827,35580:26820,35648:27231,35649:24112,35650:27589,35651:27671,35652:27773,35653:30079,35654:31048,35655:23395,35656:31232,35657:32e3,35658:24509,35659:35215,35660:35352,35661:36020,35662:36215,35663:36556,35664:36637,35665:39138,35666:39438,35667:39740,35668:20096,35669:20605,35670:20736,35671:22931,35672:23452,35673:25135,35674:25216,35675:25836,35676:27450,35677:29344,35678:30097,35679:31047,35680:32681,35681:34811,35682:35516,35683:35696,35684:25516,35685:33738,35686:38816,35687:21513,35688:21507,35689:21931,35690:26708,35691:27224,35692:35440,35693:30759,35694:26485,35695:40653,35696:21364,35697:23458,35698:33050,35699:34384,35700:36870,35701:19992,35702:20037,35703:20167,35704:20241,35705:21450,35706:21560,35707:23470,35708:24339,35709:24613,35710:25937,35712:26429,35713:27714,35714:27762,35715:27875,35716:28792,35717:29699,35718:31350,35719:31406,35720:31496,35721:32026,35722:31998,35723:32102,35724:26087,35725:29275,35726:21435,35727:23621,35728:24040,35729:25298,35730:25312,35731:25369,35732:28192,35733:34394,35734:35377,35735:36317,35736:37624,35737:28417,35738:31142,35739:39770,35740:20136,35741:20139,35742:20140,35743:20379,35744:20384,35745:20689,35746:20807,35747:31478,35748:20849,35749:20982,35750:21332,35751:21281,35752:21375,35753:21483,35754:21932,35755:22659,35756:23777,35757:24375,35758:24394,35759:24623,35760:24656,35761:24685,35762:25375,35763:25945,35764:27211,35765:27841,35766:29378,35767:29421,35768:30703,35769:33016,35770:33029,35771:33288,35772:34126,35773:37111,35774:37857,35775:38911,35776:39255,35777:39514,35778:20208,35779:20957,35780:23597,35781:26241,35782:26989,35783:23616,35784:26354,35785:26997,35786:29577,35787:26704,35788:31873,35789:20677,35790:21220,35791:22343,35792:24062,35793:37670,35794:26020,35795:27427,35796:27453,35797:29748,35798:31105,35799:31165,35800:31563,35801:32202,35802:33465,35803:33740,35804:34943,35805:35167,35806:35641,35807:36817,35808:37329,35809:21535,35810:37504,35811:20061,35812:20534,35813:21477,35814:21306,35815:29399,35816:29590,35817:30697,35818:33510,35819:36527,35820:39366,35821:39368,35822:39378,35823:20855,35824:24858,35825:34398,35826:21936,35827:31354,35828:20598,35829:23507,35830:36935,35831:38533,35832:20018,35833:27355,35834:37351,35835:23633,35836:23624,35904:25496,35905:31391,35906:27795,35907:38772,35908:36705,35909:31402,35910:29066,35911:38536,35912:31874,35913:26647,35914:32368,35915:26705,35916:37740,35917:21234,35918:21531,35919:34219,35920:35347,35921:32676,35922:36557,35923:37089,35924:21350,35925:34952,35926:31041,35927:20418,35928:20670,35929:21009,35930:20804,35931:21843,35932:22317,35933:29674,35934:22411,35935:22865,35936:24418,35937:24452,35938:24693,35939:24950,35940:24935,35941:25001,35942:25522,35943:25658,35944:25964,35945:26223,35946:26690,35947:28179,35948:30054,35949:31293,35950:31995,35951:32076,35952:32153,35953:32331,35954:32619,35955:33550,35956:33610,35957:34509,35958:35336,35959:35427,35960:35686,35961:36605,35962:38938,35963:40335,35964:33464,35965:36814,35966:39912,35968:21127,35969:25119,35970:25731,35971:28608,35972:38553,35973:26689,35974:20625,35975:27424,35976:27770,35977:28500,35978:31348,35979:32080,35980:34880,35981:35363,35982:26376,35983:20214,35984:20537,35985:20518,35986:20581,35987:20860,35988:21048,35989:21091,35990:21927,35991:22287,35992:22533,35993:23244,35994:24314,35995:25010,35996:25080,35997:25331,35998:25458,35999:26908,36e3:27177,36001:29309,36002:29356,36003:29486,36004:30740,36005:30831,36006:32121,36007:30476,36008:32937,36009:35211,36010:35609,36011:36066,36012:36562,36013:36963,36014:37749,36015:38522,36016:38997,36017:39443,36018:40568,36019:20803,36020:21407,36021:21427,36022:24187,36023:24358,36024:28187,36025:28304,36026:29572,36027:29694,36028:32067,36029:33335,36030:35328,36031:35578,36032:38480,36033:20046,36034:20491,36035:21476,36036:21628,36037:22266,36038:22993,36039:23396,36040:24049,36041:24235,36042:24359,36043:25144,36044:25925,36045:26543,36046:28246,36047:29392,36048:31946,36049:34996,36050:32929,36051:32993,36052:33776,36053:34382,36054:35463,36055:36328,36056:37431,36057:38599,36058:39015,36059:40723,36060:20116,36061:20114,36062:20237,36063:21320,36064:21577,36065:21566,36066:23087,36067:24460,36068:24481,36069:24735,36070:26791,36071:27278,36072:29786,36073:30849,36074:35486,36075:35492,36076:35703,36077:37264,36078:20062,36079:39881,36080:20132,36081:20348,36082:20399,36083:20505,36084:20502,36085:20809,36086:20844,36087:21151,36088:21177,36089:21246,36090:21402,36091:21475,36092:21521,36160:21518,36161:21897,36162:22353,36163:22434,36164:22909,36165:23380,36166:23389,36167:23439,36168:24037,36169:24039,36170:24055,36171:24184,36172:24195,36173:24218,36174:24247,36175:24344,36176:24658,36177:24908,36178:25239,36179:25304,36180:25511,36181:25915,36182:26114,36183:26179,36184:26356,36185:26477,36186:26657,36187:26775,36188:27083,36189:27743,36190:27946,36191:28009,36192:28207,36193:28317,36194:30002,36195:30343,36196:30828,36197:31295,36198:31968,36199:32005,36200:32024,36201:32094,36202:32177,36203:32789,36204:32771,36205:32943,36206:32945,36207:33108,36208:33167,36209:33322,36210:33618,36211:34892,36212:34913,36213:35611,36214:36002,36215:36092,36216:37066,36217:37237,36218:37489,36219:30783,36220:37628,36221:38308,36222:38477,36224:38917,36225:39321,36226:39640,36227:40251,36228:21083,36229:21163,36230:21495,36231:21512,36232:22741,36233:25335,36234:28640,36235:35946,36236:36703,36237:40633,36238:20811,36239:21051,36240:21578,36241:22269,36242:31296,36243:37239,36244:40288,36245:40658,36246:29508,36247:28425,36248:33136,36249:29969,36250:24573,36251:24794,36252:39592,36253:29403,36254:36796,36255:27492,36256:38915,36257:20170,36258:22256,36259:22372,36260:22718,36261:23130,36262:24680,36263:25031,36264:26127,36265:26118,36266:26681,36267:26801,36268:28151,36269:30165,36270:32058,36271:33390,36272:39746,36273:20123,36274:20304,36275:21449,36276:21766,36277:23919,36278:24038,36279:24046,36280:26619,36281:27801,36282:29811,36283:30722,36284:35408,36285:37782,36286:35039,36287:22352,36288:24231,36289:25387,36290:20661,36291:20652,36292:20877,36293:26368,36294:21705,36295:22622,36296:22971,36297:23472,36298:24425,36299:25165,36300:25505,36301:26685,36302:27507,36303:28168,36304:28797,36305:37319,36306:29312,36307:30741,36308:30758,36309:31085,36310:25998,36311:32048,36312:33756,36313:35009,36314:36617,36315:38555,36316:21092,36317:22312,36318:26448,36319:32618,36320:36001,36321:20916,36322:22338,36323:38442,36324:22586,36325:27018,36326:32948,36327:21682,36328:23822,36329:22524,36330:30869,36331:40442,36332:20316,36333:21066,36334:21643,36335:25662,36336:26152,36337:26388,36338:26613,36339:31364,36340:31574,36341:32034,36342:37679,36343:26716,36344:39853,36345:31545,36346:21273,36347:20874,36348:21047,36416:23519,36417:25334,36418:25774,36419:25830,36420:26413,36421:27578,36422:34217,36423:38609,36424:30352,36425:39894,36426:25420,36427:37638,36428:39851,36429:30399,36430:26194,36431:19977,36432:20632,36433:21442,36434:23665,36435:24808,36436:25746,36437:25955,36438:26719,36439:29158,36440:29642,36441:29987,36442:31639,36443:32386,36444:34453,36445:35715,36446:36059,36447:37240,36448:39184,36449:26028,36450:26283,36451:27531,36452:20181,36453:20180,36454:20282,36455:20351,36456:21050,36457:21496,36458:21490,36459:21987,36460:22235,36461:22763,36462:22987,36463:22985,36464:23039,36465:23376,36466:23629,36467:24066,36468:24107,36469:24535,36470:24605,36471:25351,36472:25903,36473:23388,36474:26031,36475:26045,36476:26088,36477:26525,36478:27490,36480:27515,36481:27663,36482:29509,36483:31049,36484:31169,36485:31992,36486:32025,36487:32043,36488:32930,36489:33026,36490:33267,36491:35222,36492:35422,36493:35433,36494:35430,36495:35468,36496:35566,36497:36039,36498:36060,36499:38604,36500:39164,36501:27503,36502:20107,36503:20284,36504:20365,36505:20816,36506:23383,36507:23546,36508:24904,36509:25345,36510:26178,36511:27425,36512:28363,36513:27835,36514:29246,36515:29885,36516:30164,36517:30913,36518:31034,36519:32780,36520:32819,36521:33258,36522:33940,36523:36766,36524:27728,36525:40575,36526:24335,36527:35672,36528:40235,36529:31482,36530:36600,36531:23437,36532:38635,36533:19971,36534:21489,36535:22519,36536:22833,36537:23241,36538:23460,36539:24713,36540:28287,36541:28422,36542:30142,36543:36074,36544:23455,36545:34048,36546:31712,36547:20594,36548:26612,36549:33437,36550:23649,36551:34122,36552:32286,36553:33294,36554:20889,36555:23556,36556:25448,36557:36198,36558:26012,36559:29038,36560:31038,36561:32023,36562:32773,36563:35613,36564:36554,36565:36974,36566:34503,36567:37034,36568:20511,36569:21242,36570:23610,36571:26451,36572:28796,36573:29237,36574:37196,36575:37320,36576:37675,36577:33509,36578:23490,36579:24369,36580:24825,36581:20027,36582:21462,36583:23432,36584:25163,36585:26417,36586:27530,36587:29417,36588:29664,36589:31278,36590:33131,36591:36259,36592:37202,36593:39318,36594:20754,36595:21463,36596:21610,36597:23551,36598:25480,36599:27193,36600:32172,36601:38656,36602:22234,36603:21454,36604:21608,36672:23447,36673:23601,36674:24030,36675:20462,36676:24833,36677:25342,36678:27954,36679:31168,36680:31179,36681:32066,36682:32333,36683:32722,36684:33261,36685:33311,36686:33936,36687:34886,36688:35186,36689:35728,36690:36468,36691:36655,36692:36913,36693:37195,36694:37228,36695:38598,36696:37276,36697:20160,36698:20303,36699:20805,36700:21313,36701:24467,36702:25102,36703:26580,36704:27713,36705:28171,36706:29539,36707:32294,36708:37325,36709:37507,36710:21460,36711:22809,36712:23487,36713:28113,36714:31069,36715:32302,36716:31899,36717:22654,36718:29087,36719:20986,36720:34899,36721:36848,36722:20426,36723:23803,36724:26149,36725:30636,36726:31459,36727:33308,36728:39423,36729:20934,36730:24490,36731:26092,36732:26991,36733:27529,36734:28147,36736:28310,36737:28516,36738:30462,36739:32020,36740:24033,36741:36981,36742:37255,36743:38918,36744:20966,36745:21021,36746:25152,36747:26257,36748:26329,36749:28186,36750:24246,36751:32210,36752:32626,36753:26360,36754:34223,36755:34295,36756:35576,36757:21161,36758:21465,36759:22899,36760:24207,36761:24464,36762:24661,36763:37604,36764:38500,36765:20663,36766:20767,36767:21213,36768:21280,36769:21319,36770:21484,36771:21736,36772:21830,36773:21809,36774:22039,36775:22888,36776:22974,36777:23100,36778:23477,36779:23558,36780:23567,36781:23569,36782:23578,36783:24196,36784:24202,36785:24288,36786:24432,36787:25215,36788:25220,36789:25307,36790:25484,36791:25463,36792:26119,36793:26124,36794:26157,36795:26230,36796:26494,36797:26786,36798:27167,36799:27189,36800:27836,36801:28040,36802:28169,36803:28248,36804:28988,36805:28966,36806:29031,36807:30151,36808:30465,36809:30813,36810:30977,36811:31077,36812:31216,36813:31456,36814:31505,36815:31911,36816:32057,36817:32918,36818:33750,36819:33931,36820:34121,36821:34909,36822:35059,36823:35359,36824:35388,36825:35412,36826:35443,36827:35937,36828:36062,36829:37284,36830:37478,36831:37758,36832:37912,36833:38556,36834:38808,36835:19978,36836:19976,36837:19998,36838:20055,36839:20887,36840:21104,36841:22478,36842:22580,36843:22732,36844:23330,36845:24120,36846:24773,36847:25854,36848:26465,36849:26454,36850:27972,36851:29366,36852:30067,36853:31331,36854:33976,36855:35698,36856:37304,36857:37664,36858:22065,36859:22516,36860:39166,36928:25325,36929:26893,36930:27542,36931:29165,36932:32340,36933:32887,36934:33394,36935:35302,36936:39135,36937:34645,36938:36785,36939:23611,36940:20280,36941:20449,36942:20405,36943:21767,36944:23072,36945:23517,36946:23529,36947:24515,36948:24910,36949:25391,36950:26032,36951:26187,36952:26862,36953:27035,36954:28024,36955:28145,36956:30003,36957:30137,36958:30495,36959:31070,36960:31206,36961:32051,36962:33251,36963:33455,36964:34218,36965:35242,36966:35386,36967:36523,36968:36763,36969:36914,36970:37341,36971:38663,36972:20154,36973:20161,36974:20995,36975:22645,36976:22764,36977:23563,36978:29978,36979:23613,36980:33102,36981:35338,36982:36805,36983:38499,36984:38765,36985:31525,36986:35535,36987:38920,36988:37218,36989:22259,36990:21416,36992:36887,36993:21561,36994:22402,36995:24101,36996:25512,36997:27700,36998:28810,36999:30561,37e3:31883,37001:32736,37002:34928,37003:36930,37004:37204,37005:37648,37006:37656,37007:38543,37008:29790,37009:39620,37010:23815,37011:23913,37012:25968,37013:26530,37014:36264,37015:38619,37016:25454,37017:26441,37018:26905,37019:33733,37020:38935,37021:38592,37022:35070,37023:28548,37024:25722,37025:23544,37026:19990,37027:28716,37028:30045,37029:26159,37030:20932,37031:21046,37032:21218,37033:22995,37034:24449,37035:24615,37036:25104,37037:25919,37038:25972,37039:26143,37040:26228,37041:26866,37042:26646,37043:27491,37044:28165,37045:29298,37046:29983,37047:30427,37048:31934,37049:32854,37050:22768,37051:35069,37052:35199,37053:35488,37054:35475,37055:35531,37056:36893,37057:37266,37058:38738,37059:38745,37060:25993,37061:31246,37062:33030,37063:38587,37064:24109,37065:24796,37066:25114,37067:26021,37068:26132,37069:26512,37070:30707,37071:31309,37072:31821,37073:32318,37074:33034,37075:36012,37076:36196,37077:36321,37078:36447,37079:30889,37080:20999,37081:25305,37082:25509,37083:25666,37084:25240,37085:35373,37086:31363,37087:31680,37088:35500,37089:38634,37090:32118,37091:33292,37092:34633,37093:20185,37094:20808,37095:21315,37096:21344,37097:23459,37098:23554,37099:23574,37100:24029,37101:25126,37102:25159,37103:25776,37104:26643,37105:26676,37106:27849,37107:27973,37108:27927,37109:26579,37110:28508,37111:29006,37112:29053,37113:26059,37114:31359,37115:31661,37116:32218,37184:32330,37185:32680,37186:33146,37187:33307,37188:33337,37189:34214,37190:35438,37191:36046,37192:36341,37193:36984,37194:36983,37195:37549,37196:37521,37197:38275,37198:39854,37199:21069,37200:21892,37201:28472,37202:28982,37203:20840,37204:31109,37205:32341,37206:33203,37207:31950,37208:22092,37209:22609,37210:23720,37211:25514,37212:26366,37213:26365,37214:26970,37215:29401,37216:30095,37217:30094,37218:30990,37219:31062,37220:31199,37221:31895,37222:32032,37223:32068,37224:34311,37225:35380,37226:38459,37227:36961,37228:40736,37229:20711,37230:21109,37231:21452,37232:21474,37233:20489,37234:21930,37235:22766,37236:22863,37237:29245,37238:23435,37239:23652,37240:21277,37241:24803,37242:24819,37243:25436,37244:25475,37245:25407,37246:25531,37248:25805,37249:26089,37250:26361,37251:24035,37252:27085,37253:27133,37254:28437,37255:29157,37256:20105,37257:30185,37258:30456,37259:31379,37260:31967,37261:32207,37262:32156,37263:32865,37264:33609,37265:33624,37266:33900,37267:33980,37268:34299,37269:35013,37270:36208,37271:36865,37272:36973,37273:37783,37274:38684,37275:39442,37276:20687,37277:22679,37278:24974,37279:33235,37280:34101,37281:36104,37282:36896,37283:20419,37284:20596,37285:21063,37286:21363,37287:24687,37288:25417,37289:26463,37290:28204,37291:36275,37292:36895,37293:20439,37294:23646,37295:36042,37296:26063,37297:32154,37298:21330,37299:34966,37300:20854,37301:25539,37302:23384,37303:23403,37304:23562,37305:25613,37306:26449,37307:36956,37308:20182,37309:22810,37310:22826,37311:27760,37312:35409,37313:21822,37314:22549,37315:22949,37316:24816,37317:25171,37318:26561,37319:33333,37320:26965,37321:38464,37322:39364,37323:39464,37324:20307,37325:22534,37326:23550,37327:32784,37328:23729,37329:24111,37330:24453,37331:24608,37332:24907,37333:25140,37334:26367,37335:27888,37336:28382,37337:32974,37338:33151,37339:33492,37340:34955,37341:36024,37342:36864,37343:36910,37344:38538,37345:40667,37346:39899,37347:20195,37348:21488,37349:22823,37350:31532,37351:37261,37352:38988,37353:40441,37354:28381,37355:28711,37356:21331,37357:21828,37358:23429,37359:25176,37360:25246,37361:25299,37362:27810,37363:28655,37364:29730,37365:35351,37366:37944,37367:28609,37368:35582,37369:33592,37370:20967,37371:34552,37372:21482,37440:21481,37441:20294,37442:36948,37443:36784,37444:22890,37445:33073,37446:24061,37447:31466,37448:36799,37449:26842,37450:35895,37451:29432,37452:40008,37453:27197,37454:35504,37455:20025,37456:21336,37457:22022,37458:22374,37459:25285,37460:25506,37461:26086,37462:27470,37463:28129,37464:28251,37465:28845,37466:30701,37467:31471,37468:31658,37469:32187,37470:32829,37471:32966,37472:34507,37473:35477,37474:37723,37475:22243,37476:22727,37477:24382,37478:26029,37479:26262,37480:27264,37481:27573,37482:30007,37483:35527,37484:20516,37485:30693,37486:22320,37487:24347,37488:24677,37489:26234,37490:27744,37491:30196,37492:31258,37493:32622,37494:33268,37495:34584,37496:36933,37497:39347,37498:31689,37499:30044,37500:31481,37501:31569,37502:33988,37504:36880,37505:31209,37506:31378,37507:33590,37508:23265,37509:30528,37510:20013,37511:20210,37512:23449,37513:24544,37514:25277,37515:26172,37516:26609,37517:27880,37518:34411,37519:34935,37520:35387,37521:37198,37522:37619,37523:39376,37524:27159,37525:28710,37526:29482,37527:33511,37528:33879,37529:36015,37530:19969,37531:20806,37532:20939,37533:21899,37534:23541,37535:24086,37536:24115,37537:24193,37538:24340,37539:24373,37540:24427,37541:24500,37542:25074,37543:25361,37544:26274,37545:26397,37546:28526,37547:29266,37548:30010,37549:30522,37550:32884,37551:33081,37552:33144,37553:34678,37554:35519,37555:35548,37556:36229,37557:36339,37558:37530,37559:38263,37560:38914,37561:40165,37562:21189,37563:25431,37564:30452,37565:26389,37566:27784,37567:29645,37568:36035,37569:37806,37570:38515,37571:27941,37572:22684,37573:26894,37574:27084,37575:36861,37576:37786,37577:30171,37578:36890,37579:22618,37580:26626,37581:25524,37582:27131,37583:20291,37584:28460,37585:26584,37586:36795,37587:34086,37588:32180,37589:37716,37590:26943,37591:28528,37592:22378,37593:22775,37594:23340,37595:32044,37596:29226,37597:21514,37598:37347,37599:40372,37600:20141,37601:20302,37602:20572,37603:20597,37604:21059,37605:35998,37606:21576,37607:22564,37608:23450,37609:24093,37610:24213,37611:24237,37612:24311,37613:24351,37614:24716,37615:25269,37616:25402,37617:25552,37618:26799,37619:27712,37620:30855,37621:31118,37622:31243,37623:32224,37624:33351,37625:35330,37626:35558,37627:36420,37628:36883,37696:37048,37697:37165,37698:37336,37699:40718,37700:27877,37701:25688,37702:25826,37703:25973,37704:28404,37705:30340,37706:31515,37707:36969,37708:37841,37709:28346,37710:21746,37711:24505,37712:25764,37713:36685,37714:36845,37715:37444,37716:20856,37717:22635,37718:22825,37719:23637,37720:24215,37721:28155,37722:32399,37723:29980,37724:36028,37725:36578,37726:39003,37727:28857,37728:20253,37729:27583,37730:28593,37731:3e4,37732:38651,37733:20814,37734:21520,37735:22581,37736:22615,37737:22956,37738:23648,37739:24466,37740:26007,37741:26460,37742:28193,37743:30331,37744:33759,37745:36077,37746:36884,37747:37117,37748:37709,37749:30757,37750:30778,37751:21162,37752:24230,37753:22303,37754:22900,37755:24594,37756:20498,37757:20826,37758:20908,37760:20941,37761:20992,37762:21776,37763:22612,37764:22616,37765:22871,37766:23445,37767:23798,37768:23947,37769:24764,37770:25237,37771:25645,37772:26481,37773:26691,37774:26812,37775:26847,37776:30423,37777:28120,37778:28271,37779:28059,37780:28783,37781:29128,37782:24403,37783:30168,37784:31095,37785:31561,37786:31572,37787:31570,37788:31958,37789:32113,37790:21040,37791:33891,37792:34153,37793:34276,37794:35342,37795:35588,37796:35910,37797:36367,37798:36867,37799:36879,37800:37913,37801:38518,37802:38957,37803:39472,37804:38360,37805:20685,37806:21205,37807:21516,37808:22530,37809:23566,37810:24999,37811:25758,37812:27934,37813:30643,37814:31461,37815:33012,37816:33796,37817:36947,37818:37509,37819:23776,37820:40199,37821:21311,37822:24471,37823:24499,37824:28060,37825:29305,37826:30563,37827:31167,37828:31716,37829:27602,37830:29420,37831:35501,37832:26627,37833:27233,37834:20984,37835:31361,37836:26932,37837:23626,37838:40182,37839:33515,37840:23493,37841:37193,37842:28702,37843:22136,37844:23663,37845:24775,37846:25958,37847:27788,37848:35930,37849:36929,37850:38931,37851:21585,37852:26311,37853:37389,37854:22856,37855:37027,37856:20869,37857:20045,37858:20970,37859:34201,37860:35598,37861:28760,37862:25466,37863:37707,37864:26978,37865:39348,37866:32260,37867:30071,37868:21335,37869:26976,37870:36575,37871:38627,37872:27741,37873:20108,37874:23612,37875:24336,37876:36841,37877:21250,37878:36049,37879:32905,37880:34425,37881:24319,37882:26085,37883:20083,37884:20837,37952:22914,37953:23615,37954:38894,37955:20219,37956:22922,37957:24525,37958:35469,37959:28641,37960:31152,37961:31074,37962:23527,37963:33905,37964:29483,37965:29105,37966:24180,37967:24565,37968:25467,37969:25754,37970:29123,37971:31896,37972:20035,37973:24316,37974:20043,37975:22492,37976:22178,37977:24745,37978:28611,37979:32013,37980:33021,37981:33075,37982:33215,37983:36786,37984:35223,37985:34468,37986:24052,37987:25226,37988:25773,37989:35207,37990:26487,37991:27874,37992:27966,37993:29750,37994:30772,37995:23110,37996:32629,37997:33453,37998:39340,37999:20467,38e3:24259,38001:25309,38002:25490,38003:25943,38004:26479,38005:30403,38006:29260,38007:32972,38008:32954,38009:36649,38010:37197,38011:20493,38012:22521,38013:23186,38014:26757,38016:26995,38017:29028,38018:29437,38019:36023,38020:22770,38021:36064,38022:38506,38023:36889,38024:34687,38025:31204,38026:30695,38027:33833,38028:20271,38029:21093,38030:21338,38031:25293,38032:26575,38033:27850,38034:30333,38035:31636,38036:31893,38037:33334,38038:34180,38039:36843,38040:26333,38041:28448,38042:29190,38043:32283,38044:33707,38045:39361,38046:40614,38047:20989,38048:31665,38049:30834,38050:31672,38051:32903,38052:31560,38053:27368,38054:24161,38055:32908,38056:30033,38057:30048,38058:20843,38059:37474,38060:28300,38061:30330,38062:37271,38063:39658,38064:20240,38065:32624,38066:25244,38067:31567,38068:38309,38069:40169,38070:22138,38071:22617,38072:34532,38073:38588,38074:20276,38075:21028,38076:21322,38077:21453,38078:21467,38079:24070,38080:25644,38081:26001,38082:26495,38083:27710,38084:27726,38085:29256,38086:29359,38087:29677,38088:30036,38089:32321,38090:33324,38091:34281,38092:36009,38093:31684,38094:37318,38095:29033,38096:38930,38097:39151,38098:25405,38099:26217,38100:30058,38101:30436,38102:30928,38103:34115,38104:34542,38105:21290,38106:21329,38107:21542,38108:22915,38109:24199,38110:24444,38111:24754,38112:25161,38113:25209,38114:25259,38115:26e3,38116:27604,38117:27852,38118:30130,38119:30382,38120:30865,38121:31192,38122:32203,38123:32631,38124:32933,38125:34987,38126:35513,38127:36027,38128:36991,38129:38750,38130:39131,38131:27147,38132:31800,38133:20633,38134:23614,38135:24494,38136:26503,38137:27608,38138:29749,38139:30473,38140:32654,38208:40763,38209:26570,38210:31255,38211:21305,38212:30091,38213:39661,38214:24422,38215:33181,38216:33777,38217:32920,38218:24380,38219:24517,38220:30050,38221:31558,38222:36924,38223:26727,38224:23019,38225:23195,38226:32016,38227:30334,38228:35628,38229:20469,38230:24426,38231:27161,38232:27703,38233:28418,38234:29922,38235:31080,38236:34920,38237:35413,38238:35961,38239:24287,38240:25551,38241:30149,38242:31186,38243:33495,38244:37672,38245:37618,38246:33948,38247:34541,38248:39981,38249:21697,38250:24428,38251:25996,38252:27996,38253:28693,38254:36007,38255:36051,38256:38971,38257:25935,38258:29942,38259:19981,38260:20184,38261:22496,38262:22827,38263:23142,38264:23500,38265:20904,38266:24067,38267:24220,38268:24598,38269:25206,38270:25975,38272:26023,38273:26222,38274:28014,38275:29238,38276:31526,38277:33104,38278:33178,38279:33433,38280:35676,38281:36e3,38282:36070,38283:36212,38284:38428,38285:38468,38286:20398,38287:25771,38288:27494,38289:33310,38290:33889,38291:34154,38292:37096,38293:23553,38294:26963,38295:39080,38296:33914,38297:34135,38298:20239,38299:21103,38300:24489,38301:24133,38302:26381,38303:31119,38304:33145,38305:35079,38306:35206,38307:28149,38308:24343,38309:25173,38310:27832,38311:20175,38312:29289,38313:39826,38314:20998,38315:21563,38316:22132,38317:22707,38318:24996,38319:25198,38320:28954,38321:22894,38322:31881,38323:31966,38324:32027,38325:38640,38326:25991,38327:32862,38328:19993,38329:20341,38330:20853,38331:22592,38332:24163,38333:24179,38334:24330,38335:26564,38336:20006,38337:34109,38338:38281,38339:38491,38340:31859,38341:38913,38342:20731,38343:22721,38344:30294,38345:30887,38346:21029,38347:30629,38348:34065,38349:31622,38350:20559,38351:22793,38352:29255,38353:31687,38354:32232,38355:36794,38356:36820,38357:36941,38358:20415,38359:21193,38360:23081,38361:24321,38362:38829,38363:20445,38364:33303,38365:37610,38366:22275,38367:25429,38368:27497,38369:29995,38370:35036,38371:36628,38372:31298,38373:21215,38374:22675,38375:24917,38376:25098,38377:26286,38378:27597,38379:31807,38380:33769,38381:20515,38382:20472,38383:21253,38384:21574,38385:22577,38386:22857,38387:23453,38388:23792,38389:23791,38390:23849,38391:24214,38392:25265,38393:25447,38394:25918,38395:26041,38396:26379,38464:27861,38465:27873,38466:28921,38467:30770,38468:32299,38469:32990,38470:33459,38471:33804,38472:34028,38473:34562,38474:35090,38475:35370,38476:35914,38477:37030,38478:37586,38479:39165,38480:40179,38481:40300,38482:20047,38483:20129,38484:20621,38485:21078,38486:22346,38487:22952,38488:24125,38489:24536,38490:24537,38491:25151,38492:26292,38493:26395,38494:26576,38495:26834,38496:20882,38497:32033,38498:32938,38499:33192,38500:35584,38501:35980,38502:36031,38503:37502,38504:38450,38505:21536,38506:38956,38507:21271,38508:20693,38509:21340,38510:22696,38511:25778,38512:26420,38513:29287,38514:30566,38515:31302,38516:37350,38517:21187,38518:27809,38519:27526,38520:22528,38521:24140,38522:22868,38523:26412,38524:32763,38525:20961,38526:30406,38528:25705,38529:30952,38530:39764,38531:40635,38532:22475,38533:22969,38534:26151,38535:26522,38536:27598,38537:21737,38538:27097,38539:24149,38540:33180,38541:26517,38542:39850,38543:26622,38544:40018,38545:26717,38546:20134,38547:20451,38548:21448,38549:25273,38550:26411,38551:27819,38552:36804,38553:20397,38554:32365,38555:40639,38556:19975,38557:24930,38558:28288,38559:28459,38560:34067,38561:21619,38562:26410,38563:39749,38564:24051,38565:31637,38566:23724,38567:23494,38568:34588,38569:28234,38570:34001,38571:31252,38572:33032,38573:22937,38574:31885,38575:27665,38576:30496,38577:21209,38578:22818,38579:28961,38580:29279,38581:30683,38582:38695,38583:40289,38584:26891,38585:23167,38586:23064,38587:20901,38588:21517,38589:21629,38590:26126,38591:30431,38592:36855,38593:37528,38594:40180,38595:23018,38596:29277,38597:28357,38598:20813,38599:26825,38600:32191,38601:32236,38602:38754,38603:40634,38604:25720,38605:27169,38606:33538,38607:22916,38608:23391,38609:27611,38610:29467,38611:30450,38612:32178,38613:32791,38614:33945,38615:20786,38616:26408,38617:40665,38618:30446,38619:26466,38620:21247,38621:39173,38622:23588,38623:25147,38624:31870,38625:36016,38626:21839,38627:24758,38628:32011,38629:38272,38630:21249,38631:20063,38632:20918,38633:22812,38634:29242,38635:32822,38636:37326,38637:24357,38638:30690,38639:21380,38640:24441,38641:32004,38642:34220,38643:35379,38644:36493,38645:38742,38646:26611,38647:34222,38648:37971,38649:24841,38650:24840,38651:27833,38652:30290,38720:35565,38721:36664,38722:21807,38723:20305,38724:20778,38725:21191,38726:21451,38727:23461,38728:24189,38729:24736,38730:24962,38731:25558,38732:26377,38733:26586,38734:28263,38735:28044,38736:29494,38737:29495,38738:30001,38739:31056,38740:35029,38741:35480,38742:36938,38743:37009,38744:37109,38745:38596,38746:34701,38747:22805,38748:20104,38749:20313,38750:19982,38751:35465,38752:36671,38753:38928,38754:20653,38755:24188,38756:22934,38757:23481,38758:24248,38759:25562,38760:25594,38761:25793,38762:26332,38763:26954,38764:27096,38765:27915,38766:28342,38767:29076,38768:29992,38769:31407,38770:32650,38771:32768,38772:33865,38773:33993,38774:35201,38775:35617,38776:36362,38777:36965,38778:38525,38779:39178,38780:24958,38781:25233,38782:27442,38784:27779,38785:28020,38786:32716,38787:32764,38788:28096,38789:32645,38790:34746,38791:35064,38792:26469,38793:33713,38794:38972,38795:38647,38796:27931,38797:32097,38798:33853,38799:37226,38800:20081,38801:21365,38802:23888,38803:27396,38804:28651,38805:34253,38806:34349,38807:35239,38808:21033,38809:21519,38810:23653,38811:26446,38812:26792,38813:29702,38814:29827,38815:30178,38816:35023,38817:35041,38818:37324,38819:38626,38820:38520,38821:24459,38822:29575,38823:31435,38824:33870,38825:25504,38826:30053,38827:21129,38828:27969,38829:28316,38830:29705,38831:30041,38832:30827,38833:31890,38834:38534,38835:31452,38836:40845,38837:20406,38838:24942,38839:26053,38840:34396,38841:20102,38842:20142,38843:20698,38844:20001,38845:20940,38846:23534,38847:26009,38848:26753,38849:28092,38850:29471,38851:30274,38852:30637,38853:31260,38854:31975,38855:33391,38856:35538,38857:36988,38858:37327,38859:38517,38860:38936,38861:21147,38862:32209,38863:20523,38864:21400,38865:26519,38866:28107,38867:29136,38868:29747,38869:33256,38870:36650,38871:38563,38872:40023,38873:40607,38874:29792,38875:22593,38876:28057,38877:32047,38878:39006,38879:20196,38880:20278,38881:20363,38882:20919,38883:21169,38884:23994,38885:24604,38886:29618,38887:31036,38888:33491,38889:37428,38890:38583,38891:38646,38892:38666,38893:40599,38894:40802,38895:26278,38896:27508,38897:21015,38898:21155,38899:28872,38900:35010,38901:24265,38902:24651,38903:24976,38904:28451,38905:29001,38906:31806,38907:32244,38908:32879,38976:34030,38977:36899,38978:37676,38979:21570,38980:39791,38981:27347,38982:28809,38983:36034,38984:36335,38985:38706,38986:21172,38987:23105,38988:24266,38989:24324,38990:26391,38991:27004,38992:27028,38993:28010,38994:28431,38995:29282,38996:29436,38997:31725,38998:32769,38999:32894,39e3:34635,39001:37070,39002:20845,39003:40595,39004:31108,39005:32907,39006:37682,39007:35542,39008:20525,39009:21644,39010:35441,39011:27498,39012:36036,39013:33031,39014:24785,39015:26528,39016:40434,39017:20121,39018:20120,39019:39952,39020:35435,39021:34241,39022:34152,39023:26880,39024:28286,39025:30871,39026:33109,39071:24332,39072:19984,39073:19989,39074:20010,39075:20017,39076:20022,39077:20028,39078:20031,39079:20034,39080:20054,39081:20056,39082:20098,39083:20101,39084:35947,39085:20106,39086:33298,39087:24333,39088:20110,39089:20126,39090:20127,39091:20128,39092:20130,39093:20144,39094:20147,39095:20150,39096:20174,39097:20173,39098:20164,39099:20166,39100:20162,39101:20183,39102:20190,39103:20205,39104:20191,39105:20215,39106:20233,39107:20314,39108:20272,39109:20315,39110:20317,39111:20311,39112:20295,39113:20342,39114:20360,39115:20367,39116:20376,39117:20347,39118:20329,39119:20336,39120:20369,39121:20335,39122:20358,39123:20374,39124:20760,39125:20436,39126:20447,39127:20430,39128:20440,39129:20443,39130:20433,39131:20442,39132:20432,39133:20452,39134:20453,39135:20506,39136:20520,39137:20500,39138:20522,39139:20517,39140:20485,39141:20252,39142:20470,39143:20513,39144:20521,39145:20524,39146:20478,39147:20463,39148:20497,39149:20486,39150:20547,39151:20551,39152:26371,39153:20565,39154:20560,39155:20552,39156:20570,39157:20566,39158:20588,39159:20600,39160:20608,39161:20634,39162:20613,39163:20660,39164:20658,39232:20681,39233:20682,39234:20659,39235:20674,39236:20694,39237:20702,39238:20709,39239:20717,39240:20707,39241:20718,39242:20729,39243:20725,39244:20745,39245:20737,39246:20738,39247:20758,39248:20757,39249:20756,39250:20762,39251:20769,39252:20794,39253:20791,39254:20796,39255:20795,39256:20799,39257:20800,39258:20818,39259:20812,39260:20820,39261:20834,39262:31480,39263:20841,39264:20842,39265:20846,39266:20864,39267:20866,39268:22232,39269:20876,39270:20873,39271:20879,39272:20881,39273:20883,39274:20885,39275:20886,39276:20900,39277:20902,39278:20898,39279:20905,39280:20906,39281:20907,39282:20915,39283:20913,39284:20914,39285:20912,39286:20917,39287:20925,39288:20933,39289:20937,39290:20955,39291:20960,39292:34389,39293:20969,39294:20973,39296:20976,39297:20981,39298:20990,39299:20996,39300:21003,39301:21012,39302:21006,39303:21031,39304:21034,39305:21038,39306:21043,39307:21049,39308:21071,39309:21060,39310:21067,39311:21068,39312:21086,39313:21076,39314:21098,39315:21108,39316:21097,39317:21107,39318:21119,39319:21117,39320:21133,39321:21140,39322:21138,39323:21105,39324:21128,39325:21137,39326:36776,39327:36775,39328:21164,39329:21165,39330:21180,39331:21173,39332:21185,39333:21197,39334:21207,39335:21214,39336:21219,39337:21222,39338:39149,39339:21216,39340:21235,39341:21237,39342:21240,39343:21241,39344:21254,39345:21256,39346:30008,39347:21261,39348:21264,39349:21263,39350:21269,39351:21274,39352:21283,39353:21295,39354:21297,39355:21299,39356:21304,39357:21312,39358:21318,39359:21317,39360:19991,39361:21321,39362:21325,39363:20950,39364:21342,39365:21353,39366:21358,39367:22808,39368:21371,39369:21367,39370:21378,39371:21398,39372:21408,39373:21414,39374:21413,39375:21422,39376:21424,39377:21430,39378:21443,39379:31762,39380:38617,39381:21471,39382:26364,39383:29166,39384:21486,39385:21480,39386:21485,39387:21498,39388:21505,39389:21565,39390:21568,39391:21548,39392:21549,39393:21564,39394:21550,39395:21558,39396:21545,39397:21533,39398:21582,39399:21647,39400:21621,39401:21646,39402:21599,39403:21617,39404:21623,39405:21616,39406:21650,39407:21627,39408:21632,39409:21622,39410:21636,39411:21648,39412:21638,39413:21703,39414:21666,39415:21688,39416:21669,39417:21676,39418:21700,39419:21704,39420:21672,39488:21675,39489:21698,39490:21668,39491:21694,39492:21692,39493:21720,39494:21733,39495:21734,39496:21775,39497:21780,39498:21757,39499:21742,39500:21741,39501:21754,39502:21730,39503:21817,39504:21824,39505:21859,39506:21836,39507:21806,39508:21852,39509:21829,39510:21846,39511:21847,39512:21816,39513:21811,39514:21853,39515:21913,39516:21888,39517:21679,39518:21898,39519:21919,39520:21883,39521:21886,39522:21912,39523:21918,39524:21934,39525:21884,39526:21891,39527:21929,39528:21895,39529:21928,39530:21978,39531:21957,39532:21983,39533:21956,39534:21980,39535:21988,39536:21972,39537:22036,39538:22007,39539:22038,39540:22014,39541:22013,39542:22043,39543:22009,39544:22094,39545:22096,39546:29151,39547:22068,39548:22070,39549:22066,39550:22072,39552:22123,39553:22116,39554:22063,39555:22124,39556:22122,39557:22150,39558:22144,39559:22154,39560:22176,39561:22164,39562:22159,39563:22181,39564:22190,39565:22198,39566:22196,39567:22210,39568:22204,39569:22209,39570:22211,39571:22208,39572:22216,39573:22222,39574:22225,39575:22227,39576:22231,39577:22254,39578:22265,39579:22272,39580:22271,39581:22276,39582:22281,39583:22280,39584:22283,39585:22285,39586:22291,39587:22296,39588:22294,39589:21959,39590:22300,39591:22310,39592:22327,39593:22328,39594:22350,39595:22331,39596:22336,39597:22351,39598:22377,39599:22464,39600:22408,39601:22369,39602:22399,39603:22409,39604:22419,39605:22432,39606:22451,39607:22436,39608:22442,39609:22448,39610:22467,39611:22470,39612:22484,39613:22482,39614:22483,39615:22538,39616:22486,39617:22499,39618:22539,39619:22553,39620:22557,39621:22642,39622:22561,39623:22626,39624:22603,39625:22640,39626:27584,39627:22610,39628:22589,39629:22649,39630:22661,39631:22713,39632:22687,39633:22699,39634:22714,39635:22750,39636:22715,39637:22712,39638:22702,39639:22725,39640:22739,39641:22737,39642:22743,39643:22745,39644:22744,39645:22757,39646:22748,39647:22756,39648:22751,39649:22767,39650:22778,39651:22777,39652:22779,39653:22780,39654:22781,39655:22786,39656:22794,39657:22800,39658:22811,39659:26790,39660:22821,39661:22828,39662:22829,39663:22834,39664:22840,39665:22846,39666:31442,39667:22869,39668:22864,39669:22862,39670:22874,39671:22872,39672:22882,39673:22880,39674:22887,39675:22892,39676:22889,39744:22904,39745:22913,39746:22941,39747:20318,39748:20395,39749:22947,39750:22962,39751:22982,39752:23016,39753:23004,39754:22925,39755:23001,39756:23002,39757:23077,39758:23071,39759:23057,39760:23068,39761:23049,39762:23066,39763:23104,39764:23148,39765:23113,39766:23093,39767:23094,39768:23138,39769:23146,39770:23194,39771:23228,39772:23230,39773:23243,39774:23234,39775:23229,39776:23267,39777:23255,39778:23270,39779:23273,39780:23254,39781:23290,39782:23291,39783:23308,39784:23307,39785:23318,39786:23346,39787:23248,39788:23338,39789:23350,39790:23358,39791:23363,39792:23365,39793:23360,39794:23377,39795:23381,39796:23386,39797:23387,39798:23397,39799:23401,39800:23408,39801:23411,39802:23413,39803:23416,39804:25992,39805:23418,39806:23424,39808:23427,39809:23462,39810:23480,39811:23491,39812:23495,39813:23497,39814:23508,39815:23504,39816:23524,39817:23526,39818:23522,39819:23518,39820:23525,39821:23531,39822:23536,39823:23542,39824:23539,39825:23557,39826:23559,39827:23560,39828:23565,39829:23571,39830:23584,39831:23586,39832:23592,39833:23608,39834:23609,39835:23617,39836:23622,39837:23630,39838:23635,39839:23632,39840:23631,39841:23409,39842:23660,39843:23662,39844:20066,39845:23670,39846:23673,39847:23692,39848:23697,39849:23700,39850:22939,39851:23723,39852:23739,39853:23734,39854:23740,39855:23735,39856:23749,39857:23742,39858:23751,39859:23769,39860:23785,39861:23805,39862:23802,39863:23789,39864:23948,39865:23786,39866:23819,39867:23829,39868:23831,39869:23900,39870:23839,39871:23835,39872:23825,39873:23828,39874:23842,39875:23834,39876:23833,39877:23832,39878:23884,39879:23890,39880:23886,39881:23883,39882:23916,39883:23923,39884:23926,39885:23943,39886:23940,39887:23938,39888:23970,39889:23965,39890:23980,39891:23982,39892:23997,39893:23952,39894:23991,39895:23996,39896:24009,39897:24013,39898:24019,39899:24018,39900:24022,39901:24027,39902:24043,39903:24050,39904:24053,39905:24075,39906:24090,39907:24089,39908:24081,39909:24091,39910:24118,39911:24119,39912:24132,39913:24131,39914:24128,39915:24142,39916:24151,39917:24148,39918:24159,39919:24162,39920:24164,39921:24135,39922:24181,39923:24182,39924:24186,39925:40636,39926:24191,39927:24224,39928:24257,39929:24258,39930:24264,39931:24272,39932:24271,4e4:24278,40001:24291,40002:24285,40003:24282,40004:24283,40005:24290,40006:24289,40007:24296,40008:24297,40009:24300,40010:24305,40011:24307,40012:24304,40013:24308,40014:24312,40015:24318,40016:24323,40017:24329,40018:24413,40019:24412,40020:24331,40021:24337,40022:24342,40023:24361,40024:24365,40025:24376,40026:24385,40027:24392,40028:24396,40029:24398,40030:24367,40031:24401,40032:24406,40033:24407,40034:24409,40035:24417,40036:24429,40037:24435,40038:24439,40039:24451,40040:24450,40041:24447,40042:24458,40043:24456,40044:24465,40045:24455,40046:24478,40047:24473,40048:24472,40049:24480,40050:24488,40051:24493,40052:24508,40053:24534,40054:24571,40055:24548,40056:24568,40057:24561,40058:24541,40059:24755,40060:24575,40061:24609,40062:24672,40064:24601,40065:24592,40066:24617,40067:24590,40068:24625,40069:24603,40070:24597,40071:24619,40072:24614,40073:24591,40074:24634,40075:24666,40076:24641,40077:24682,40078:24695,40079:24671,40080:24650,40081:24646,40082:24653,40083:24675,40084:24643,40085:24676,40086:24642,40087:24684,40088:24683,40089:24665,40090:24705,40091:24717,40092:24807,40093:24707,40094:24730,40095:24708,40096:24731,40097:24726,40098:24727,40099:24722,40100:24743,40101:24715,40102:24801,40103:24760,40104:24800,40105:24787,40106:24756,40107:24560,40108:24765,40109:24774,40110:24757,40111:24792,40112:24909,40113:24853,40114:24838,40115:24822,40116:24823,40117:24832,40118:24820,40119:24826,40120:24835,40121:24865,40122:24827,40123:24817,40124:24845,40125:24846,40126:24903,40127:24894,40128:24872,40129:24871,40130:24906,40131:24895,40132:24892,40133:24876,40134:24884,40135:24893,40136:24898,40137:24900,40138:24947,40139:24951,40140:24920,40141:24921,40142:24922,40143:24939,40144:24948,40145:24943,40146:24933,40147:24945,40148:24927,40149:24925,40150:24915,40151:24949,40152:24985,40153:24982,40154:24967,40155:25004,40156:24980,40157:24986,40158:24970,40159:24977,40160:25003,40161:25006,40162:25036,40163:25034,40164:25033,40165:25079,40166:25032,40167:25027,40168:25030,40169:25018,40170:25035,40171:32633,40172:25037,40173:25062,40174:25059,40175:25078,40176:25082,40177:25076,40178:25087,40179:25085,40180:25084,40181:25086,40182:25088,40183:25096,40184:25097,40185:25101,40186:25100,40187:25108,40188:25115,40256:25118,40257:25121,40258:25130,40259:25134,40260:25136,40261:25138,40262:25139,40263:25153,40264:25166,40265:25182,40266:25187,40267:25179,40268:25184,40269:25192,40270:25212,40271:25218,40272:25225,40273:25214,40274:25234,40275:25235,40276:25238,40277:25300,40278:25219,40279:25236,40280:25303,40281:25297,40282:25275,40283:25295,40284:25343,40285:25286,40286:25812,40287:25288,40288:25308,40289:25292,40290:25290,40291:25282,40292:25287,40293:25243,40294:25289,40295:25356,40296:25326,40297:25329,40298:25383,40299:25346,40300:25352,40301:25327,40302:25333,40303:25424,40304:25406,40305:25421,40306:25628,40307:25423,40308:25494,40309:25486,40310:25472,40311:25515,40312:25462,40313:25507,40314:25487,40315:25481,40316:25503,40317:25525,40318:25451,40320:25449,40321:25534,40322:25577,40323:25536,40324:25542,40325:25571,40326:25545,40327:25554,40328:25590,40329:25540,40330:25622,40331:25652,40332:25606,40333:25619,40334:25638,40335:25654,40336:25885,40337:25623,40338:25640,40339:25615,40340:25703,40341:25711,40342:25718,40343:25678,40344:25898,40345:25749,40346:25747,40347:25765,40348:25769,40349:25736,40350:25788,40351:25818,40352:25810,40353:25797,40354:25799,40355:25787,40356:25816,40357:25794,40358:25841,40359:25831,40360:33289,40361:25824,40362:25825,40363:25260,40364:25827,40365:25839,40366:25900,40367:25846,40368:25844,40369:25842,40370:25850,40371:25856,40372:25853,40373:25880,40374:25884,40375:25861,40376:25892,40377:25891,40378:25899,40379:25908,40380:25909,40381:25911,40382:25910,40383:25912,40384:30027,40385:25928,40386:25942,40387:25941,40388:25933,40389:25944,40390:25950,40391:25949,40392:25970,40393:25976,40394:25986,40395:25987,40396:35722,40397:26011,40398:26015,40399:26027,40400:26039,40401:26051,40402:26054,40403:26049,40404:26052,40405:26060,40406:26066,40407:26075,40408:26073,40409:26080,40410:26081,40411:26097,40412:26482,40413:26122,40414:26115,40415:26107,40416:26483,40417:26165,40418:26166,40419:26164,40420:26140,40421:26191,40422:26180,40423:26185,40424:26177,40425:26206,40426:26205,40427:26212,40428:26215,40429:26216,40430:26207,40431:26210,40432:26224,40433:26243,40434:26248,40435:26254,40436:26249,40437:26244,40438:26264,40439:26269,40440:26305,40441:26297,40442:26313,40443:26302,40444:26300,40512:26308,40513:26296,40514:26326,40515:26330,40516:26336,40517:26175,40518:26342,40519:26345,40520:26352,40521:26357,40522:26359,40523:26383,40524:26390,40525:26398,40526:26406,40527:26407,40528:38712,40529:26414,40530:26431,40531:26422,40532:26433,40533:26424,40534:26423,40535:26438,40536:26462,40537:26464,40538:26457,40539:26467,40540:26468,40541:26505,40542:26480,40543:26537,40544:26492,40545:26474,40546:26508,40547:26507,40548:26534,40549:26529,40550:26501,40551:26551,40552:26607,40553:26548,40554:26604,40555:26547,40556:26601,40557:26552,40558:26596,40559:26590,40560:26589,40561:26594,40562:26606,40563:26553,40564:26574,40565:26566,40566:26599,40567:27292,40568:26654,40569:26694,40570:26665,40571:26688,40572:26701,40573:26674,40574:26702,40576:26803,40577:26667,40578:26713,40579:26723,40580:26743,40581:26751,40582:26783,40583:26767,40584:26797,40585:26772,40586:26781,40587:26779,40588:26755,40589:27310,40590:26809,40591:26740,40592:26805,40593:26784,40594:26810,40595:26895,40596:26765,40597:26750,40598:26881,40599:26826,40600:26888,40601:26840,40602:26914,40603:26918,40604:26849,40605:26892,40606:26829,40607:26836,40608:26855,40609:26837,40610:26934,40611:26898,40612:26884,40613:26839,40614:26851,40615:26917,40616:26873,40617:26848,40618:26863,40619:26920,40620:26922,40621:26906,40622:26915,40623:26913,40624:26822,40625:27001,40626:26999,40627:26972,40628:27e3,40629:26987,40630:26964,40631:27006,40632:26990,40633:26937,40634:26996,40635:26941,40636:26969,40637:26928,40638:26977,40639:26974,40640:26973,40641:27009,40642:26986,40643:27058,40644:27054,40645:27088,40646:27071,40647:27073,40648:27091,40649:27070,40650:27086,40651:23528,40652:27082,40653:27101,40654:27067,40655:27075,40656:27047,40657:27182,40658:27025,40659:27040,40660:27036,40661:27029,40662:27060,40663:27102,40664:27112,40665:27138,40666:27163,40667:27135,40668:27402,40669:27129,40670:27122,40671:27111,40672:27141,40673:27057,40674:27166,40675:27117,40676:27156,40677:27115,40678:27146,40679:27154,40680:27329,40681:27171,40682:27155,40683:27204,40684:27148,40685:27250,40686:27190,40687:27256,40688:27207,40689:27234,40690:27225,40691:27238,40692:27208,40693:27192,40694:27170,40695:27280,40696:27277,40697:27296,40698:27268,40699:27298,40700:27299,40768:27287,40769:34327,40770:27323,40771:27331,40772:27330,40773:27320,40774:27315,40775:27308,40776:27358,40777:27345,40778:27359,40779:27306,40780:27354,40781:27370,40782:27387,40783:27397,40784:34326,40785:27386,40786:27410,40787:27414,40788:39729,40789:27423,40790:27448,40791:27447,40792:30428,40793:27449,40794:39150,40795:27463,40796:27459,40797:27465,40798:27472,40799:27481,40800:27476,40801:27483,40802:27487,40803:27489,40804:27512,40805:27513,40806:27519,40807:27520,40808:27524,40809:27523,40810:27533,40811:27544,40812:27541,40813:27550,40814:27556,40815:27562,40816:27563,40817:27567,40818:27570,40819:27569,40820:27571,40821:27575,40822:27580,40823:27590,40824:27595,40825:27603,40826:27615,40827:27628,40828:27627,40829:27635,40830:27631,40832:40638,40833:27656,40834:27667,40835:27668,40836:27675,40837:27684,40838:27683,40839:27742,40840:27733,40841:27746,40842:27754,40843:27778,40844:27789,40845:27802,40846:27777,40847:27803,40848:27774,40849:27752,40850:27763,40851:27794,40852:27792,40853:27844,40854:27889,40855:27859,40856:27837,40857:27863,40858:27845,40859:27869,40860:27822,40861:27825,40862:27838,40863:27834,40864:27867,40865:27887,40866:27865,40867:27882,40868:27935,40869:34893,40870:27958,40871:27947,40872:27965,40873:27960,40874:27929,40875:27957,40876:27955,40877:27922,40878:27916,40879:28003,40880:28051,40881:28004,40882:27994,40883:28025,40884:27993,40885:28046,40886:28053,40887:28644,40888:28037,40889:28153,40890:28181,40891:28170,40892:28085,40893:28103,40894:28134,40895:28088,40896:28102,40897:28140,40898:28126,40899:28108,40900:28136,40901:28114,40902:28101,40903:28154,40904:28121,40905:28132,40906:28117,40907:28138,40908:28142,40909:28205,40910:28270,40911:28206,40912:28185,40913:28274,40914:28255,40915:28222,40916:28195,40917:28267,40918:28203,40919:28278,40920:28237,40921:28191,40922:28227,40923:28218,40924:28238,40925:28196,40926:28415,40927:28189,40928:28216,40929:28290,40930:28330,40931:28312,40932:28361,40933:28343,40934:28371,40935:28349,40936:28335,40937:28356,40938:28338,40939:28372,40940:28373,40941:28303,40942:28325,40943:28354,40944:28319,40945:28481,40946:28433,40947:28748,40948:28396,40949:28408,40950:28414,40951:28479,40952:28402,40953:28465,40954:28399,40955:28466,40956:28364,161:65377,162:65378,163:65379,164:65380,165:65381,166:65382,167:65383,168:65384,169:65385,170:65386,171:65387,172:65388,173:65389,174:65390,175:65391,176:65392,177:65393,178:65394,179:65395,180:65396,181:65397,182:65398,183:65399,184:65400,185:65401,186:65402,187:65403,188:65404,189:65405,190:65406,191:65407,192:65408,193:65409,194:65410,195:65411,196:65412,197:65413,198:65414,199:65415,200:65416,201:65417,202:65418,203:65419,204:65420,205:65421,206:65422,207:65423,208:65424,209:65425,210:65426,211:65427,212:65428,213:65429,214:65430,215:65431,216:65432,217:65433,218:65434,219:65435,220:65436,221:65437,222:65438,223:65439,57408:28478,57409:28435,57410:28407,57411:28550,57412:28538,57413:28536,57414:28545,57415:28544,57416:28527,57417:28507,57418:28659,57419:28525,57420:28546,57421:28540,57422:28504,57423:28558,57424:28561,57425:28610,57426:28518,57427:28595,57428:28579,57429:28577,57430:28580,57431:28601,57432:28614,57433:28586,57434:28639,57435:28629,57436:28652,57437:28628,57438:28632,57439:28657,57440:28654,57441:28635,57442:28681,57443:28683,57444:28666,57445:28689,57446:28673,57447:28687,57448:28670,57449:28699,57450:28698,57451:28532,57452:28701,57453:28696,57454:28703,57455:28720,57456:28734,57457:28722,57458:28753,57459:28771,57460:28825,57461:28818,57462:28847,57463:28913,57464:28844,57465:28856,57466:28851,57467:28846,57468:28895,57469:28875,57470:28893,57472:28889,57473:28937,57474:28925,57475:28956,57476:28953,57477:29029,57478:29013,57479:29064,57480:29030,57481:29026,57482:29004,57483:29014,57484:29036,57485:29071,57486:29179,57487:29060,57488:29077,57489:29096,57490:29100,57491:29143,57492:29113,57493:29118,57494:29138,57495:29129,57496:29140,57497:29134,57498:29152,57499:29164,57500:29159,57501:29173,57502:29180,57503:29177,57504:29183,57505:29197,57506:29200,57507:29211,57508:29224,57509:29229,57510:29228,57511:29232,57512:29234,57513:29243,57514:29244,57515:29247,57516:29248,57517:29254,57518:29259,57519:29272,57520:29300,57521:29310,57522:29314,57523:29313,57524:29319,57525:29330,57526:29334,57527:29346,57528:29351,57529:29369,57530:29362,57531:29379,57532:29382,57533:29380,57534:29390,57535:29394,57536:29410,57537:29408,57538:29409,57539:29433,57540:29431,57541:20495,57542:29463,57543:29450,57544:29468,57545:29462,57546:29469,57547:29492,57548:29487,57549:29481,57550:29477,57551:29502,57552:29518,57553:29519,57554:40664,57555:29527,57556:29546,57557:29544,57558:29552,57559:29560,57560:29557,57561:29563,57562:29562,57563:29640,57564:29619,57565:29646,57566:29627,57567:29632,57568:29669,57569:29678,57570:29662,57571:29858,57572:29701,57573:29807,57574:29733,57575:29688,57576:29746,57577:29754,57578:29781,57579:29759,57580:29791,57581:29785,57582:29761,57583:29788,57584:29801,57585:29808,57586:29795,57587:29802,57588:29814,57589:29822,57590:29835,57591:29854,57592:29863,57593:29898,57594:29903,57595:29908,57596:29681,57664:29920,57665:29923,57666:29927,57667:29929,57668:29934,57669:29938,57670:29936,57671:29937,57672:29944,57673:29943,57674:29956,57675:29955,57676:29957,57677:29964,57678:29966,57679:29965,57680:29973,57681:29971,57682:29982,57683:29990,57684:29996,57685:30012,57686:30020,57687:30029,57688:30026,57689:30025,57690:30043,57691:30022,57692:30042,57693:30057,57694:30052,57695:30055,57696:30059,57697:30061,57698:30072,57699:30070,57700:30086,57701:30087,57702:30068,57703:30090,57704:30089,57705:30082,57706:30100,57707:30106,57708:30109,57709:30117,57710:30115,57711:30146,57712:30131,57713:30147,57714:30133,57715:30141,57716:30136,57717:30140,57718:30129,57719:30157,57720:30154,57721:30162,57722:30169,57723:30179,57724:30174,57725:30206,57726:30207,57728:30204,57729:30209,57730:30192,57731:30202,57732:30194,57733:30195,57734:30219,57735:30221,57736:30217,57737:30239,57738:30247,57739:30240,57740:30241,57741:30242,57742:30244,57743:30260,57744:30256,57745:30267,57746:30279,57747:30280,57748:30278,57749:30300,57750:30296,57751:30305,57752:30306,57753:30312,57754:30313,57755:30314,57756:30311,57757:30316,57758:30320,57759:30322,57760:30326,57761:30328,57762:30332,57763:30336,57764:30339,57765:30344,57766:30347,57767:30350,57768:30358,57769:30355,57770:30361,57771:30362,57772:30384,57773:30388,57774:30392,57775:30393,57776:30394,57777:30402,57778:30413,57779:30422,57780:30418,57781:30430,57782:30433,57783:30437,57784:30439,57785:30442,57786:34351,57787:30459,57788:30472,57789:30471,57790:30468,57791:30505,57792:30500,57793:30494,57794:30501,57795:30502,57796:30491,57797:30519,57798:30520,57799:30535,57800:30554,57801:30568,57802:30571,57803:30555,57804:30565,57805:30591,57806:30590,57807:30585,57808:30606,57809:30603,57810:30609,57811:30624,57812:30622,57813:30640,57814:30646,57815:30649,57816:30655,57817:30652,57818:30653,57819:30651,57820:30663,57821:30669,57822:30679,57823:30682,57824:30684,57825:30691,57826:30702,57827:30716,57828:30732,57829:30738,57830:31014,57831:30752,57832:31018,57833:30789,57834:30862,57835:30836,57836:30854,57837:30844,57838:30874,57839:30860,57840:30883,57841:30901,57842:30890,57843:30895,57844:30929,57845:30918,57846:30923,57847:30932,57848:30910,57849:30908,57850:30917,57851:30922,57852:30956,57920:30951,57921:30938,57922:30973,57923:30964,57924:30983,57925:30994,57926:30993,57927:31001,57928:31020,57929:31019,57930:31040,57931:31072,57932:31063,57933:31071,57934:31066,57935:31061,57936:31059,57937:31098,57938:31103,57939:31114,57940:31133,57941:31143,57942:40779,57943:31146,57944:31150,57945:31155,57946:31161,57947:31162,57948:31177,57949:31189,57950:31207,57951:31212,57952:31201,57953:31203,57954:31240,57955:31245,57956:31256,57957:31257,57958:31264,57959:31263,57960:31104,57961:31281,57962:31291,57963:31294,57964:31287,57965:31299,57966:31319,57967:31305,57968:31329,57969:31330,57970:31337,57971:40861,57972:31344,57973:31353,57974:31357,57975:31368,57976:31383,57977:31381,57978:31384,57979:31382,57980:31401,57981:31432,57982:31408,57984:31414,57985:31429,57986:31428,57987:31423,57988:36995,57989:31431,57990:31434,57991:31437,57992:31439,57993:31445,57994:31443,57995:31449,57996:31450,57997:31453,57998:31457,57999:31458,58e3:31462,58001:31469,58002:31472,58003:31490,58004:31503,58005:31498,58006:31494,58007:31539,58008:31512,58009:31513,58010:31518,58011:31541,58012:31528,58013:31542,58014:31568,58015:31610,58016:31492,58017:31565,58018:31499,58019:31564,58020:31557,58021:31605,58022:31589,58023:31604,58024:31591,58025:31600,58026:31601,58027:31596,58028:31598,58029:31645,58030:31640,58031:31647,58032:31629,58033:31644,58034:31642,58035:31627,58036:31634,58037:31631,58038:31581,58039:31641,58040:31691,58041:31681,58042:31692,58043:31695,58044:31668,58045:31686,58046:31709,58047:31721,58048:31761,58049:31764,58050:31718,58051:31717,58052:31840,58053:31744,58054:31751,58055:31763,58056:31731,58057:31735,58058:31767,58059:31757,58060:31734,58061:31779,58062:31783,58063:31786,58064:31775,58065:31799,58066:31787,58067:31805,58068:31820,58069:31811,58070:31828,58071:31823,58072:31808,58073:31824,58074:31832,58075:31839,58076:31844,58077:31830,58078:31845,58079:31852,58080:31861,58081:31875,58082:31888,58083:31908,58084:31917,58085:31906,58086:31915,58087:31905,58088:31912,58089:31923,58090:31922,58091:31921,58092:31918,58093:31929,58094:31933,58095:31936,58096:31941,58097:31938,58098:31960,58099:31954,58100:31964,58101:31970,58102:39739,58103:31983,58104:31986,58105:31988,58106:31990,58107:31994,58108:32006,58176:32002,58177:32028,58178:32021,58179:32010,58180:32069,58181:32075,58182:32046,58183:32050,58184:32063,58185:32053,58186:32070,58187:32115,58188:32086,58189:32078,58190:32114,58191:32104,58192:32110,58193:32079,58194:32099,58195:32147,58196:32137,58197:32091,58198:32143,58199:32125,58200:32155,58201:32186,58202:32174,58203:32163,58204:32181,58205:32199,58206:32189,58207:32171,58208:32317,58209:32162,58210:32175,58211:32220,58212:32184,58213:32159,58214:32176,58215:32216,58216:32221,58217:32228,58218:32222,58219:32251,58220:32242,58221:32225,58222:32261,58223:32266,58224:32291,58225:32289,58226:32274,58227:32305,58228:32287,58229:32265,58230:32267,58231:32290,58232:32326,58233:32358,58234:32315,58235:32309,58236:32313,58237:32323,58238:32311,58240:32306,58241:32314,58242:32359,58243:32349,58244:32342,58245:32350,58246:32345,58247:32346,58248:32377,58249:32362,58250:32361,58251:32380,58252:32379,58253:32387,58254:32213,58255:32381,58256:36782,58257:32383,58258:32392,58259:32393,58260:32396,58261:32402,58262:32400,58263:32403,58264:32404,58265:32406,58266:32398,58267:32411,58268:32412,58269:32568,58270:32570,58271:32581,58272:32588,58273:32589,58274:32590,58275:32592,58276:32593,58277:32597,58278:32596,58279:32600,58280:32607,58281:32608,58282:32616,58283:32617,58284:32615,58285:32632,58286:32642,58287:32646,58288:32643,58289:32648,58290:32647,58291:32652,58292:32660,58293:32670,58294:32669,58295:32666,58296:32675,58297:32687,58298:32690,58299:32697,58300:32686,58301:32694,58302:32696,58303:35697,58304:32709,58305:32710,58306:32714,58307:32725,58308:32724,58309:32737,58310:32742,58311:32745,58312:32755,58313:32761,58314:39132,58315:32774,58316:32772,58317:32779,58318:32786,58319:32792,58320:32793,58321:32796,58322:32801,58323:32808,58324:32831,58325:32827,58326:32842,58327:32838,58328:32850,58329:32856,58330:32858,58331:32863,58332:32866,58333:32872,58334:32883,58335:32882,58336:32880,58337:32886,58338:32889,58339:32893,58340:32895,58341:32900,58342:32902,58343:32901,58344:32923,58345:32915,58346:32922,58347:32941,58348:20880,58349:32940,58350:32987,58351:32997,58352:32985,58353:32989,58354:32964,58355:32986,58356:32982,58357:33033,58358:33007,58359:33009,58360:33051,58361:33065,58362:33059,58363:33071,58364:33099,58432:38539,58433:33094,58434:33086,58435:33107,58436:33105,58437:33020,58438:33137,58439:33134,58440:33125,58441:33126,58442:33140,58443:33155,58444:33160,58445:33162,58446:33152,58447:33154,58448:33184,58449:33173,58450:33188,58451:33187,58452:33119,58453:33171,58454:33193,58455:33200,58456:33205,58457:33214,58458:33208,58459:33213,58460:33216,58461:33218,58462:33210,58463:33225,58464:33229,58465:33233,58466:33241,58467:33240,58468:33224,58469:33242,58470:33247,58471:33248,58472:33255,58473:33274,58474:33275,58475:33278,58476:33281,58477:33282,58478:33285,58479:33287,58480:33290,58481:33293,58482:33296,58483:33302,58484:33321,58485:33323,58486:33336,58487:33331,58488:33344,58489:33369,58490:33368,58491:33373,58492:33370,58493:33375,58494:33380,58496:33378,58497:33384,58498:33386,58499:33387,58500:33326,58501:33393,58502:33399,58503:33400,58504:33406,58505:33421,58506:33426,58507:33451,58508:33439,58509:33467,58510:33452,58511:33505,58512:33507,58513:33503,58514:33490,58515:33524,58516:33523,58517:33530,58518:33683,58519:33539,58520:33531,58521:33529,58522:33502,58523:33542,58524:33500,58525:33545,58526:33497,58527:33589,58528:33588,58529:33558,58530:33586,58531:33585,58532:33600,58533:33593,58534:33616,58535:33605,58536:33583,58537:33579,58538:33559,58539:33560,58540:33669,58541:33690,58542:33706,58543:33695,58544:33698,58545:33686,58546:33571,58547:33678,58548:33671,58549:33674,58550:33660,58551:33717,58552:33651,58553:33653,58554:33696,58555:33673,58556:33704,58557:33780,58558:33811,58559:33771,58560:33742,58561:33789,58562:33795,58563:33752,58564:33803,58565:33729,58566:33783,58567:33799,58568:33760,58569:33778,58570:33805,58571:33826,58572:33824,58573:33725,58574:33848,58575:34054,58576:33787,58577:33901,58578:33834,58579:33852,58580:34138,58581:33924,58582:33911,58583:33899,58584:33965,58585:33902,58586:33922,58587:33897,58588:33862,58589:33836,58590:33903,58591:33913,58592:33845,58593:33994,58594:33890,58595:33977,58596:33983,58597:33951,58598:34009,58599:33997,58600:33979,58601:34010,58602:34e3,58603:33985,58604:33990,58605:34006,58606:33953,58607:34081,58608:34047,58609:34036,58610:34071,58611:34072,58612:34092,58613:34079,58614:34069,58615:34068,58616:34044,58617:34112,58618:34147,58619:34136,58620:34120,58688:34113,58689:34306,58690:34123,58691:34133,58692:34176,58693:34212,58694:34184,58695:34193,58696:34186,58697:34216,58698:34157,58699:34196,58700:34203,58701:34282,58702:34183,58703:34204,58704:34167,58705:34174,58706:34192,58707:34249,58708:34234,58709:34255,58710:34233,58711:34256,58712:34261,58713:34269,58714:34277,58715:34268,58716:34297,58717:34314,58718:34323,58719:34315,58720:34302,58721:34298,58722:34310,58723:34338,58724:34330,58725:34352,58726:34367,58727:34381,58728:20053,58729:34388,58730:34399,58731:34407,58732:34417,58733:34451,58734:34467,58735:34473,58736:34474,58737:34443,58738:34444,58739:34486,58740:34479,58741:34500,58742:34502,58743:34480,58744:34505,58745:34851,58746:34475,58747:34516,58748:34526,58749:34537,58750:34540,58752:34527,58753:34523,58754:34543,58755:34578,58756:34566,58757:34568,58758:34560,58759:34563,58760:34555,58761:34577,58762:34569,58763:34573,58764:34553,58765:34570,58766:34612,58767:34623,58768:34615,58769:34619,58770:34597,58771:34601,58772:34586,58773:34656,58774:34655,58775:34680,58776:34636,58777:34638,58778:34676,58779:34647,58780:34664,58781:34670,58782:34649,58783:34643,58784:34659,58785:34666,58786:34821,58787:34722,58788:34719,58789:34690,58790:34735,58791:34763,58792:34749,58793:34752,58794:34768,58795:38614,58796:34731,58797:34756,58798:34739,58799:34759,58800:34758,58801:34747,58802:34799,58803:34802,58804:34784,58805:34831,58806:34829,58807:34814,58808:34806,58809:34807,58810:34830,58811:34770,58812:34833,58813:34838,58814:34837,58815:34850,58816:34849,58817:34865,58818:34870,58819:34873,58820:34855,58821:34875,58822:34884,58823:34882,58824:34898,58825:34905,58826:34910,58827:34914,58828:34923,58829:34945,58830:34942,58831:34974,58832:34933,58833:34941,58834:34997,58835:34930,58836:34946,58837:34967,58838:34962,58839:34990,58840:34969,58841:34978,58842:34957,58843:34980,58844:34992,58845:35007,58846:34993,58847:35011,58848:35012,58849:35028,58850:35032,58851:35033,58852:35037,58853:35065,58854:35074,58855:35068,58856:35060,58857:35048,58858:35058,58859:35076,58860:35084,58861:35082,58862:35091,58863:35139,58864:35102,58865:35109,58866:35114,58867:35115,58868:35137,58869:35140,58870:35131,58871:35126,58872:35128,58873:35148,58874:35101,58875:35168,58876:35166,58944:35174,58945:35172,58946:35181,58947:35178,58948:35183,58949:35188,58950:35191,58951:35198,58952:35203,58953:35208,58954:35210,58955:35219,58956:35224,58957:35233,58958:35241,58959:35238,58960:35244,58961:35247,58962:35250,58963:35258,58964:35261,58965:35263,58966:35264,58967:35290,58968:35292,58969:35293,58970:35303,58971:35316,58972:35320,58973:35331,58974:35350,58975:35344,58976:35340,58977:35355,58978:35357,58979:35365,58980:35382,58981:35393,58982:35419,58983:35410,58984:35398,58985:35400,58986:35452,58987:35437,58988:35436,58989:35426,58990:35461,58991:35458,58992:35460,58993:35496,58994:35489,58995:35473,58996:35493,58997:35494,58998:35482,58999:35491,59e3:35524,59001:35533,59002:35522,59003:35546,59004:35563,59005:35571,59006:35559,59008:35556,59009:35569,59010:35604,59011:35552,59012:35554,59013:35575,59014:35550,59015:35547,59016:35596,59017:35591,59018:35610,59019:35553,59020:35606,59021:35600,59022:35607,59023:35616,59024:35635,59025:38827,59026:35622,59027:35627,59028:35646,59029:35624,59030:35649,59031:35660,59032:35663,59033:35662,59034:35657,59035:35670,59036:35675,59037:35674,59038:35691,59039:35679,59040:35692,59041:35695,59042:35700,59043:35709,59044:35712,59045:35724,59046:35726,59047:35730,59048:35731,59049:35734,59050:35737,59051:35738,59052:35898,59053:35905,59054:35903,59055:35912,59056:35916,59057:35918,59058:35920,59059:35925,59060:35938,59061:35948,59062:35960,59063:35962,59064:35970,59065:35977,59066:35973,59067:35978,59068:35981,59069:35982,59070:35988,59071:35964,59072:35992,59073:25117,59074:36013,59075:36010,59076:36029,59077:36018,59078:36019,59079:36014,59080:36022,59081:36040,59082:36033,59083:36068,59084:36067,59085:36058,59086:36093,59087:36090,59088:36091,59089:36100,59090:36101,59091:36106,59092:36103,59093:36111,59094:36109,59095:36112,59096:40782,59097:36115,59098:36045,59099:36116,59100:36118,59101:36199,59102:36205,59103:36209,59104:36211,59105:36225,59106:36249,59107:36290,59108:36286,59109:36282,59110:36303,59111:36314,59112:36310,59113:36300,59114:36315,59115:36299,59116:36330,59117:36331,59118:36319,59119:36323,59120:36348,59121:36360,59122:36361,59123:36351,59124:36381,59125:36382,59126:36368,59127:36383,59128:36418,59129:36405,59130:36400,59131:36404,59132:36426,59200:36423,59201:36425,59202:36428,59203:36432,59204:36424,59205:36441,59206:36452,59207:36448,59208:36394,59209:36451,59210:36437,59211:36470,59212:36466,59213:36476,59214:36481,59215:36487,59216:36485,59217:36484,59218:36491,59219:36490,59220:36499,59221:36497,59222:36500,59223:36505,59224:36522,59225:36513,59226:36524,59227:36528,59228:36550,59229:36529,59230:36542,59231:36549,59232:36552,59233:36555,59234:36571,59235:36579,59236:36604,59237:36603,59238:36587,59239:36606,59240:36618,59241:36613,59242:36629,59243:36626,59244:36633,59245:36627,59246:36636,59247:36639,59248:36635,59249:36620,59250:36646,59251:36659,59252:36667,59253:36665,59254:36677,59255:36674,59256:36670,59257:36684,59258:36681,59259:36678,59260:36686,59261:36695,59262:36700,59264:36706,59265:36707,59266:36708,59267:36764,59268:36767,59269:36771,59270:36781,59271:36783,59272:36791,59273:36826,59274:36837,59275:36834,59276:36842,59277:36847,59278:36999,59279:36852,59280:36869,59281:36857,59282:36858,59283:36881,59284:36885,59285:36897,59286:36877,59287:36894,59288:36886,59289:36875,59290:36903,59291:36918,59292:36917,59293:36921,59294:36856,59295:36943,59296:36944,59297:36945,59298:36946,59299:36878,59300:36937,59301:36926,59302:36950,59303:36952,59304:36958,59305:36968,59306:36975,59307:36982,59308:38568,59309:36978,59310:36994,59311:36989,59312:36993,59313:36992,59314:37002,59315:37001,59316:37007,59317:37032,59318:37039,59319:37041,59320:37045,59321:37090,59322:37092,59323:25160,59324:37083,59325:37122,59326:37138,59327:37145,59328:37170,59329:37168,59330:37194,59331:37206,59332:37208,59333:37219,59334:37221,59335:37225,59336:37235,59337:37234,59338:37259,59339:37257,59340:37250,59341:37282,59342:37291,59343:37295,59344:37290,59345:37301,59346:37300,59347:37306,59348:37312,59349:37313,59350:37321,59351:37323,59352:37328,59353:37334,59354:37343,59355:37345,59356:37339,59357:37372,59358:37365,59359:37366,59360:37406,59361:37375,59362:37396,59363:37420,59364:37397,59365:37393,59366:37470,59367:37463,59368:37445,59369:37449,59370:37476,59371:37448,59372:37525,59373:37439,59374:37451,59375:37456,59376:37532,59377:37526,59378:37523,59379:37531,59380:37466,59381:37583,59382:37561,59383:37559,59384:37609,59385:37647,59386:37626,59387:37700,59388:37678,59456:37657,59457:37666,59458:37658,59459:37667,59460:37690,59461:37685,59462:37691,59463:37724,59464:37728,59465:37756,59466:37742,59467:37718,59468:37808,59469:37804,59470:37805,59471:37780,59472:37817,59473:37846,59474:37847,59475:37864,59476:37861,59477:37848,59478:37827,59479:37853,59480:37840,59481:37832,59482:37860,59483:37914,59484:37908,59485:37907,59486:37891,59487:37895,59488:37904,59489:37942,59490:37931,59491:37941,59492:37921,59493:37946,59494:37953,59495:37970,59496:37956,59497:37979,59498:37984,59499:37986,59500:37982,59501:37994,59502:37417,59503:38e3,59504:38005,59505:38007,59506:38013,59507:37978,59508:38012,59509:38014,59510:38017,59511:38015,59512:38274,59513:38279,59514:38282,59515:38292,59516:38294,59517:38296,59518:38297,59520:38304,59521:38312,59522:38311,59523:38317,59524:38332,59525:38331,59526:38329,59527:38334,59528:38346,59529:28662,59530:38339,59531:38349,59532:38348,59533:38357,59534:38356,59535:38358,59536:38364,59537:38369,59538:38373,59539:38370,59540:38433,59541:38440,59542:38446,59543:38447,59544:38466,59545:38476,59546:38479,59547:38475,59548:38519,59549:38492,59550:38494,59551:38493,59552:38495,59553:38502,59554:38514,59555:38508,59556:38541,59557:38552,59558:38549,59559:38551,59560:38570,59561:38567,59562:38577,59563:38578,59564:38576,59565:38580,59566:38582,59567:38584,59568:38585,59569:38606,59570:38603,59571:38601,59572:38605,59573:35149,59574:38620,59575:38669,59576:38613,59577:38649,59578:38660,59579:38662,59580:38664,59581:38675,59582:38670,59583:38673,59584:38671,59585:38678,59586:38681,59587:38692,59588:38698,59589:38704,59590:38713,59591:38717,59592:38718,59593:38724,59594:38726,59595:38728,59596:38722,59597:38729,59598:38748,59599:38752,59600:38756,59601:38758,59602:38760,59603:21202,59604:38763,59605:38769,59606:38777,59607:38789,59608:38780,59609:38785,59610:38778,59611:38790,59612:38795,59613:38799,59614:38800,59615:38812,59616:38824,59617:38822,59618:38819,59619:38835,59620:38836,59621:38851,59622:38854,59623:38856,59624:38859,59625:38876,59626:38893,59627:40783,59628:38898,59629:31455,59630:38902,59631:38901,59632:38927,59633:38924,59634:38968,59635:38948,59636:38945,59637:38967,59638:38973,59639:38982,59640:38991,59641:38987,59642:39019,59643:39023,59644:39024,59712:39025,59713:39028,59714:39027,59715:39082,59716:39087,59717:39089,59718:39094,59719:39108,59720:39107,59721:39110,59722:39145,59723:39147,59724:39171,59725:39177,59726:39186,59727:39188,59728:39192,59729:39201,59730:39197,59731:39198,59732:39204,59733:39200,59734:39212,59735:39214,59736:39229,59737:39230,59738:39234,59739:39241,59740:39237,59741:39248,59742:39243,59743:39249,59744:39250,59745:39244,59746:39253,59747:39319,59748:39320,59749:39333,59750:39341,59751:39342,59752:39356,59753:39391,59754:39387,59755:39389,59756:39384,59757:39377,59758:39405,59759:39406,59760:39409,59761:39410,59762:39419,59763:39416,59764:39425,59765:39439,59766:39429,59767:39394,59768:39449,59769:39467,59770:39479,59771:39493,59772:39490,59773:39488,59774:39491,59776:39486,59777:39509,59778:39501,59779:39515,59780:39511,59781:39519,59782:39522,59783:39525,59784:39524,59785:39529,59786:39531,59787:39530,59788:39597,59789:39600,59790:39612,59791:39616,59792:39631,59793:39633,59794:39635,59795:39636,59796:39646,59797:39647,59798:39650,59799:39651,59800:39654,59801:39663,59802:39659,59803:39662,59804:39668,59805:39665,59806:39671,59807:39675,59808:39686,59809:39704,59810:39706,59811:39711,59812:39714,59813:39715,59814:39717,59815:39719,59816:39720,59817:39721,59818:39722,59819:39726,59820:39727,59821:39730,59822:39748,59823:39747,59824:39759,59825:39757,59826:39758,59827:39761,59828:39768,59829:39796,59830:39827,59831:39811,59832:39825,59833:39830,59834:39831,59835:39839,59836:39840,59837:39848,59838:39860,59839:39872,59840:39882,59841:39865,59842:39878,59843:39887,59844:39889,59845:39890,59846:39907,59847:39906,59848:39908,59849:39892,59850:39905,59851:39994,59852:39922,59853:39921,59854:39920,59855:39957,59856:39956,59857:39945,59858:39955,59859:39948,59860:39942,59861:39944,59862:39954,59863:39946,59864:39940,59865:39982,59866:39963,59867:39973,59868:39972,59869:39969,59870:39984,59871:40007,59872:39986,59873:40006,59874:39998,59875:40026,59876:40032,59877:40039,59878:40054,59879:40056,59880:40167,59881:40172,59882:40176,59883:40201,59884:40200,59885:40171,59886:40195,59887:40198,59888:40234,59889:40230,59890:40367,59891:40227,59892:40223,59893:40260,59894:40213,59895:40210,59896:40257,59897:40255,59898:40254,59899:40262,59900:40264,59968:40285,59969:40286,59970:40292,59971:40273,59972:40272,59973:40281,59974:40306,59975:40329,59976:40327,59977:40363,59978:40303,59979:40314,59980:40346,59981:40356,59982:40361,59983:40370,59984:40388,59985:40385,59986:40379,59987:40376,59988:40378,59989:40390,59990:40399,59991:40386,59992:40409,59993:40403,59994:40440,59995:40422,59996:40429,59997:40431,59998:40445,59999:40474,6e4:40475,60001:40478,60002:40565,60003:40569,60004:40573,60005:40577,60006:40584,60007:40587,60008:40588,60009:40594,60010:40597,60011:40593,60012:40605,60013:40613,60014:40617,60015:40632,60016:40618,60017:40621,60018:38753,60019:40652,60020:40654,60021:40655,60022:40656,60023:40660,60024:40668,60025:40670,60026:40669,60027:40672,60028:40677,60029:40680,60030:40687,60032:40692,60033:40694,60034:40695,60035:40697,60036:40699,60037:40700,60038:40701,60039:40711,60040:40712,60041:30391,60042:40725,60043:40737,60044:40748,60045:40766,60046:40778,60047:40786,60048:40788,60049:40803,60050:40799,60051:40800,60052:40801,60053:40806,60054:40807,60055:40812,60056:40810,60057:40823,60058:40818,60059:40822,60060:40853,60061:40860,60062:40864,60063:22575,60064:27079,60065:36953,60066:29796,60067:20956,60068:29081}},function(o,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=r(1),c=r(2);e.decode=function(o,e){var r=new Uint8ClampedArray(o.length);r.set(o);for(var s=new t.default(285,256,0),a=new c.default(s,r),n=new Uint8ClampedArray(e),d=!1,l=0;l=t/2;){var l=s,i=n;if(n=d,(s=a).isZero())return null;a=l;for(var B=o.zero,k=s.getCoefficient(s.degree()),u=o.inverse(k);a.degree()>=s.degree()&&!a.isZero();){var C=a.degree()-s.degree(),m=o.multiply(a.getCoefficient(a.degree()),u);B=B.addOrSubtract(o.buildMonomial(C,m)),a=a.addOrSubtract(s.multiplyByMonomial(C,m))}if(d=B.multiplyPoly(n).addOrSubtract(i),a.degree()>=s.degree())return null}var f=d.getCoefficient(0);if(0===f)return null;var w=o.inverse(f);return[d.multiply(w),a.multiply(w)]}(s,s.buildMonomial(e,1),B,e);if(null===k)return null;var u=function(o,e){var r=e.degree();if(1===r)return[e.getCoefficient(1)];for(var t=new Array(r),c=0,s=1;sMath.abs(e.x-o.x);i?(s=Math.floor(o.y),a=Math.floor(o.x),n=Math.floor(e.y),d=Math.floor(e.x)):(s=Math.floor(o.x),a=Math.floor(o.y),n=Math.floor(e.x),d=Math.floor(e.y));for(var B=Math.abs(n-s),k=Math.abs(d-a),u=Math.floor(-B/2),C=s0){if(P===d)break;P+=m,u-=B}}for(var y=[],p=0;p=15&&w.length?w[0]:f,dimension:i}}e.locate=function(o){for(var e=[],r=[],s=[],a=[],n=function(t){for(var n=0,d=!1,l=[0,0,0,0,0],i=function(e){var s=o.get(e,t);if(s===d)n++;else{l=[l[1],l[2],l[3],l[4],n],n=1,d=s;var i=c(l)/7,B=Math.abs(l[0]-i)=o.bottom.startX&&m<=o.bottom.endX||C>=o.bottom.startX&&m<=o.bottom.endX||m<=o.bottom.startX&&C>=o.bottom.endX&&l[2]/(o.bottom.endX-o.bottom.startX)<1.5&&l[2]/(o.bottom.endX-o.bottom.startX)>.5})).length>0?w[0].bottom=f:r.push({top:f,bottom:f})}if(u){var w,P=e-l[4],v=P-l[3];f={startX:v,y:t,endX:P};(w=a.filter(function(o){return v>=o.bottom.startX&&v<=o.bottom.endX||P>=o.bottom.startX&&v<=o.bottom.endX||v<=o.bottom.startX&&P>=o.bottom.endX&&l[2]/(o.bottom.endX-o.bottom.startX)<1.5&&l[2]/(o.bottom.endX-o.bottom.startX)>.5})).length>0?w[0].bottom=f:a.push({top:f,bottom:f})}}},B=-1;B<=o.width;B++)i(B);e.push.apply(e,r.filter(function(o){return o.bottom.y!==t&&o.bottom.y-o.top.y>=2})),r=r.filter(function(o){return o.bottom.y===t}),s.push.apply(s,a.filter(function(o){return o.bottom.y!==t})),a=a.filter(function(o){return o.bottom.y===t})},B=0;B<=o.height;B++)n(B);e.push.apply(e,r.filter(function(o){return o.bottom.y-o.top.y>=2})),s.push.apply(s,a);var k=e.filter(function(o){return o.bottom.y-o.top.y>=2}).map(function(e){var r=(e.top.startX+e.top.endX+e.bottom.startX+e.bottom.endX)/4,t=(e.top.y+e.bottom.y+1)/2;if(o.get(Math.round(r),Math.round(t))){var s=[e.top.endX-e.top.startX,e.bottom.endX-e.bottom.startX,e.bottom.y-e.top.y+1],a=c(s)/s.length;return{score:d({x:Math.round(r),y:Math.round(t)},[1,1,3,1,1],o),x:r,y:t,size:a}}}).filter(function(o){return!!o}).sort(function(o,e){return o.score-e.score}).map(function(o,e,r){if(e>4)return null;var t=r.filter(function(o,r){return e!==r}).map(function(e){return{x:e.x,y:e.y,score:e.score+Math.pow(e.size-o.size,2)/o.size,size:e.size}}).sort(function(o,e){return o.score-e.score});if(t.length<2)return null;var c=o.score+t[0].score+t[1].score;return{points:[o].concat(t.slice(0,2)),score:c}}).filter(function(o){return!!o}).sort(function(o,e){return o.score-e.score});if(0===k.length)return null;var u=function(o,e,r){var c,s,a,n,d,l,i,B=t(o,e),k=t(e,r),u=t(o,r);return k>=B&&k>=u?(d=(c=[e,o,r])[0],l=c[1],i=c[2]):u>=k&&u>=B?(d=(s=[o,e,r])[0],l=s[1],i=s[2]):(d=(a=[o,r,e])[0],l=a[1],i=a[2]),(i.x-l.x)*(d.y-l.y)-(i.y-l.y)*(d.x-l.x)<0&&(d=(n=[i,d])[0],i=n[1]),{bottomLeft:d,topLeft:l,topRight:i}}(k[0].points[0],k[0].points[1],k[0].points[2]),C=u.topRight,m=u.topLeft,f=u.bottomLeft,w=i(o,s,C,m,f),P=[];w&&P.push({alignmentPattern:{x:w.alignmentPattern.x,y:w.alignmentPattern.y},bottomLeft:{x:f.x,y:f.y},dimension:w.dimension,topLeft:{x:m.x,y:m.y},topRight:{x:C.x,y:C.y}});var v=l(o,C),h=l(o,m),y=l(o,f),p=i(o,s,v,h,y);return p&&P.push({alignmentPattern:{x:p.alignmentPattern.x,y:p.alignmentPattern.y},bottomLeft:{x:y.x,y:y.y},topLeft:{x:h.x,y:h.y},topRight:{x:v.x,y:v.y},dimension:p.dimension}),0===P.length?null:P}}]).default}); \ No newline at end of file diff --git a/configure/vendor/qrcodegen.LICENSE b/configure/vendor/qrcodegen.LICENSE new file mode 100644 index 0000000..e3cdd4c --- /dev/null +++ b/configure/vendor/qrcodegen.LICENSE @@ -0,0 +1,22 @@ +/* + * QR Code generator library (TypeScript) + * + * Copyright (c) Project Nayuki. (MIT License) + * https://www.nayuki.io/page/qr-code-generator-library + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * - The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * - The Software is provided "as is", without warranty of any kind, express or + * implied, including but not limited to the warranties of merchantability, + * fitness for a particular purpose and noninfringement. In no event shall the + * authors or copyright holders be liable for any claim, damages or other + * liability, whether in an action of contract, tort or otherwise, arising from, + * out of or in connection with the Software or the use or other dealings in the + * Software. + */ diff --git a/configure/vendor/qrcodegen.js b/configure/vendor/qrcodegen.js new file mode 100644 index 0000000..0abbd5d --- /dev/null +++ b/configure/vendor/qrcodegen.js @@ -0,0 +1,23 @@ +/* + * QR Code generator library (TypeScript) + * + * Copyright (c) Project Nayuki. (MIT License) + * https://www.nayuki.io/page/qr-code-generator-library + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * - The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * - The Software is provided "as is", without warranty of any kind, express or + * implied, including but not limited to the warranties of merchantability, + * fitness for a particular purpose and noninfringement. In no event shall the + * authors or copyright holders be liable for any claim, damages or other + * liability, whether in an action of contract, tort or otherwise, arising from, + * out of or in connection with the Software or the use or other dealings in the + * Software. + */ +"use strict";var qrcodegen;!function(t){class e{static encodeText(r,n){const o=t.QrSegment.makeSegments(r);return e.encodeSegments(o,n)}static encodeBinary(r,n){const o=t.QrSegment.makeBytes(r);return e.encodeSegments([o],n)}static encodeSegments(t,n,i=1,a=40,l=-1,h=!0){if(!(e.MIN_VERSION<=i&&i<=a&&a<=e.MAX_VERSION)||l<-1||l>7)throw new RangeError("Invalid value");let u,c;for(u=i;;u++){const r=8*e.getNumDataCodewords(u,n),o=s.getTotalBits(t,u);if(o<=r){c=o;break}if(u>=a)throw new RangeError("Data too long")}for(const t of[e.Ecc.MEDIUM,e.Ecc.QUARTILE,e.Ecc.HIGH])h&&c<=8*e.getNumDataCodewords(u,t)&&(n=t);let d=[];for(const e of t){r(e.mode.modeBits,4,d),r(e.numChars,e.mode.numCharCountBits(u),d);for(const t of e.getData())d.push(t)}o(d.length==c);const f=8*e.getNumDataCodewords(u,n);o(d.length<=f),r(0,Math.min(4,f-d.length),d),r(0,(8-d.length%8)%8,d),o(d.length%8==0);for(let t=236;d.lengthm[e>>>3]|=t<<7-(7&e)),new e(u,n,m,l)}constructor(t,r,n,s){if(this.version=t,this.errorCorrectionLevel=r,this.modules=[],this.isFunction=[],te.MAX_VERSION)throw new RangeError("Version value out of range");if(s<-1||s>7)throw new RangeError("Mask value out of range");this.size=4*t+17;let i=[];for(let t=0;t>>9);const s=21522^(e<<10|r);o(s>>>15==0);for(let t=0;t<=5;t++)this.setFunctionModule(8,t,n(s,t));this.setFunctionModule(8,7,n(s,6)),this.setFunctionModule(8,8,n(s,7)),this.setFunctionModule(7,8,n(s,8));for(let t=9;t<15;t++)this.setFunctionModule(14-t,8,n(s,t));for(let t=0;t<8;t++)this.setFunctionModule(this.size-1-t,8,n(s,t));for(let t=8;t<15;t++)this.setFunctionModule(8,this.size-15+t,n(s,t));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let t=this.version;for(let e=0;e<12;e++)t=t<<1^7973*(t>>>11);const e=this.version<<12|t;o(e>>>18==0);for(let t=0;t<18;t++){const r=n(e,t),o=this.size-11+t%3,s=Math.floor(t/3);this.setFunctionModule(o,s,r),this.setFunctionModule(s,o,r)}}drawFinderPattern(t,e){for(let r=-4;r<=4;r++)for(let n=-4;n<=4;n++){const o=Math.max(Math.abs(n),Math.abs(r)),s=t+n,i=e+r;0<=s&&s{(t!=h-i||r>=l)&&d.push(e[t])});return o(d.length==a),d}drawCodewords(t){if(t.length!=Math.floor(e.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let r=0;for(let e=this.size-1;e>=1;e-=2){6==e&&(e=5);for(let o=0;o>>3],7-(7&r)),r++)}}o(r==8*t.length)}applyMask(t){if(t<0||t>7)throw new RangeError("Mask value out of range");for(let e=0;e5&&t++):(this.finderPenaltyAddHistory(o,s),n||(t+=this.finderPenaltyCountPatterns(s)*e.PENALTY_N3),n=this.modules[r][i],o=1);t+=this.finderPenaltyTerminateAndCount(n,o,s)*e.PENALTY_N3}for(let r=0;r5&&t++):(this.finderPenaltyAddHistory(o,s),n||(t+=this.finderPenaltyCountPatterns(s)*e.PENALTY_N3),n=this.modules[i][r],o=1);t+=this.finderPenaltyTerminateAndCount(n,o,s)*e.PENALTY_N3}for(let r=0;rt+(e?1:0),r);const n=this.size*this.size,s=Math.ceil(Math.abs(20*r-10*n)/n)-1;return o(0<=s&&s<=9),t+=s*e.PENALTY_N4,o(0<=t&&t<=2568888),t}getAlignmentPatternPositions(){if(1==this.version)return[];{const t=Math.floor(this.version/7)+2,e=2*Math.floor((8*this.version+3*t+5)/(4*t-4));let r=[6];for(let n=this.size-7;r.lengthe.MAX_VERSION)throw new RangeError("Version number out of range");let r=(16*t+128)*t+64;if(t>=2){const e=Math.floor(t/7)+2;r-=(25*e-10)*e-55,t>=7&&(r-=36)}return o(208<=r&&r<=29648),r}static getNumDataCodewords(t,r){return Math.floor(e.getNumRawDataModules(t)/8)-e.ECC_CODEWORDS_PER_BLOCK[r.ordinal][t]*e.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][t]}static reedSolomonComputeDivisor(t){if(t<1||t>255)throw new RangeError("Degree out of range");let r=[];for(let e=0;e0);for(const o of t){const t=o^n.shift();n.push(0),r.forEach((r,o)=>n[o]^=e.reedSolomonMultiply(r,t))}return n}static reedSolomonMultiply(t,e){if(t>>>8!=0||e>>>8!=0)throw new RangeError("Byte out of range");let r=0;for(let n=7;n>=0;n--)r=r<<1^285*(r>>>7),r^=(e>>>n&1)*t;return o(r>>>8==0),r}finderPenaltyCountPatterns(t){const e=t[1];o(e<=3*this.size);const r=e>0&&t[2]==e&&t[3]==3*e&&t[4]==e&&t[5]==e;return(r&&t[0]>=4*e&&t[6]>=e?1:0)+(r&&t[6]>=4*e&&t[0]>=e?1:0)}finderPenaltyTerminateAndCount(t,e,r){return t&&(this.finderPenaltyAddHistory(e,r),e=0),e+=this.size,this.finderPenaltyAddHistory(e,r),this.finderPenaltyCountPatterns(r)}finderPenaltyAddHistory(t,e){0==e[0]&&(t+=this.size),e.pop(),e.unshift(t)}}function r(t,e,r){if(e<0||e>31||t>>>e!=0)throw new RangeError("Value out of range");for(let n=e-1;n>=0;n--)r.push(t>>>n&1)}function n(t,e){return!!(t>>>e&1)}function o(t){if(!t)throw new Error("Assertion error")}e.MIN_VERSION=1,e.MAX_VERSION=40,e.PENALTY_N1=3,e.PENALTY_N2=3,e.PENALTY_N3=40,e.PENALTY_N4=10,e.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],e.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],t.QrCode=e;class s{static makeBytes(t){let e=[];for(const n of t)r(n,8,e);return new s(s.Mode.BYTE,t.length,e)}static makeNumeric(t){if(!s.isNumeric(t))throw new RangeError("String contains non-numeric characters");let e=[];for(let n=0;n=1<=5.0' + source: + registry_url: https://components.espressif.com + type: service + version: 0.7.0 + espressif/esp-dsp: + component_hash: 619639efc18cfa361a9e423739b9b0ffc14991effc6c027f955c2f2c3bf1754b + dependencies: + - name: idf + require: private + version: '>=4.2' + source: + registry_url: https://components.espressif.com + type: service + version: 1.6.0 + espressif/esp-sr: + component_hash: cc923dabf2baef161e39ec81f2ed0a86e3ebcb6615045e780a13f20d0ee157c5 + dependencies: + - name: espressif/dl_fft + registry_url: https://components.espressif.com + require: private + version: '>=0.1.0' + - name: espressif/esp-dsp + registry_url: https://components.espressif.com + require: private + version: 1.6.0 + - name: idf + require: private + version: '>=5.0' + source: + registry_url: https://components.espressif.com/ + type: service + version: 2.1.3 + espressif/esp_audio_codec: + component_hash: 16e2880dbdd5a72264051f750f33a6e5a38fd25621c83e3a32a85a152d2d2643 + dependencies: + - name: idf + require: private + version: '>=4.4' + source: + registry_url: https://components.espressif.com/ + type: service + version: 2.5.0 espressif/esp_codec_dev: component_hash: 4779f31a3ba3f9b38aee1afe6ccb9ba8f6108dc3a6e77d39d7d714e9a215371b dependencies: @@ -60,10 +108,12 @@ dependencies: version: 9.5.0 direct_dependencies: - espressif/button +- espressif/esp-sr +- espressif/esp_audio_codec - espressif/esp_codec_dev - espressif/esp_lvgl_port - idf - lvgl/lvgl -manifest_hash: db5703744958b4654342908988a87f1da9cac5e5612d3aceb0191f6bec59ba49 +manifest_hash: b48194090cd9806b367621bcf1a9d80884e0cde59c4c32185246cca576edf493 target: esp32c3 version: 2.0.0 diff --git a/docs/README.md b/docs/README.md index 6739d3e..445d6ee 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,111 +1,76 @@ -**English** · [简体中文](/docs/README.zh_CN.md) +# FoloToy AI Passport -

FoloToy AI PASSPORT

+English | [简体中文](README.zh_CN.md) -

- - - FoloToy wordmark - -

+Fork application: [Arasaka Personnel Badge](../README.md) · [Validation report](muyu-validation.md). -

- Wear it. Flash it. Make it anything.
- Simple and open. Anyone can build. -

+FoloToy AI Passport is open wearable AI hardware. This repository is the development baseline for the device. It keeps the **hardware facts, stable interfaces, resource boundaries, reference implementations, and validation methods** needed to build applications in one place. -

- Open firmware - Wearable AI - Built for makers - MIT License -

+The repository is organized around the following principles: -

- Website · - Start building · - Community projects · - Documentation -

+- `main` is the smallest complete runnable baseline and an executable description of the current hardware capabilities. +- `components/bsp` isolates board-level details and exposes stable APIs to applications. +- `demo/*` branches show different paths from a product requirement to a working implementation. +- Development conventions for AI assistants live in [`AGENTS.md`](../AGENTS.md) and [`docs/development/ai-guide.md`](development/ai-guide.md); the complete hardware context and troubleshooting knowledge is in [`docs/hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.md`](hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.md). +- Build results and physical-device results are reported separately. A successful build must never be presented as successful hardware validation. ---- +## Hardware capability contract -**FoloToy AI Passport** is an open wearable AI platform made for people to shape, -remix, and create. Start with a simple idea, build your own experience, and make -it anything—from a pocket companion to something no one has imagined yet. +The table below describes the application capabilities implemented by the current `main` branch. It is not a list of everything that might be possible according to the chip datasheet. -

- FoloToy AI Passport wearable device shown from the front, side, and back. -

+| Capability | Confirmed implementation | Application interface | Boundaries that must be respected | +| --- | --- | --- | --- | +| Display | ST7789P3, 240 × 320 portrait RGB565, SPI2 at 40 MHz; LEDC backlight | `bsp_display_*`, `bsp_lvgl_*` | The ESP32-C3 has no PSRAM; the current design uses a small single DMA buffer; the BSP exposes no LCD MISO, touch, or TE interface | +| Input | `UP`, `DOWN`, and `OK` share an ADC resistor ladder on GPIO0 | `bsp_button_init()`, `bsp_button_read_mv()` | Callbacks run in the button component task and must not block; do not create a second ADC1 unit | +| Audio | ES8311 with full-duplex PCM over I2S0, supporting playback, microphone capture, and software suspend/resume | `bsp_audio_*` | PCM reads and writes block and belong in a worker task; stop PCM I/O before codec sleep; format changes must retain the BSP close/open sequence | +| Battery | CW2017 state-of-charge and voltage readings | `bsp_battery_*` | This capability is optional at runtime; accuracy depends on the cell and battery profile and is not equivalent to a calibrated result | +| Wi-Fi | On-demand 2.4 GHz STA scan demo | `main/demo_wifi.c` | Scans only; it does not connect, store credentials, or validate antenna/RF performance | +| Bluetooth LE | On-demand non-connectable NimBLE advertising as `FoloPassport` | `main/demo_ble.c` | ESP32-C3 does not support Bluetooth Classic; radio range, coexistence, and power draw require device measurements | +| Low power | Two-second light sleep and five-second deep sleep, both with RTC timer wakeup | `main/demo_low_power.c` | Both modes force and verify ES8311 suspend; light sleep restores audio, while deep sleep first suspends CW2017, releases I2S/shared-I2C pins, sleeps and holds the LCD pins, then restarts on wake; the current demo exposes RTC timer wake only | +| Shared bus | ES8311 and CW2017 share I2C0 | `bsp_i2c_*` | Every device must reuse the bus owned by the BSP; do not create another bus on the same port for scanning or a new device | +| Logging and flashing | Native ESP32-C3 USB Serial/JTAG | ESP-IDF console | GPIO18/19 are reserved for USB; the default UART0 TX on GPIO21 conflicts with the backlight | -| Open and remixable | Easy to start | Yours to create | -| --- | --- | --- | -| Open firmware and reusable examples give you room to shape your own experience. | Start from an idea and follow clear guides to make it real, even if this is your first build. | Make a companion, a tool, a game—or anything you can imagine. | +All pins, addresses, panel parameters, and button voltage windows are defined only in [`components/bsp/include/bsp_pins.h`](../components/bsp/include/bsp_pins.h). Application code must not duplicate these constants. See the [AI Hardware Development Guide](hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.md) for the complete pin map, panel initialization, ADC thresholds, I2C addressing rules, audio clocks, and memory details. -## Find your starting point +Applications may also use ESP-IDF timers, FreeRTOS tasks, and internal Flash/NVS; the Pomodoro branch contains an NVS example. Wi-Fi and Bluetooth LE remain ESP-IDF application services rather than BSP APIs: their menu pages initialize each stack only while open and release it on exit. `demo/claude-buddy-port` remains a fuller BLE application architecture reference, not a substitute for measuring the current board's antenna, RF performance, power consumption, and coexistence behavior. The default custom-firmware baseline uses 8 MB Flash with only NVS, PHY data, and one factory-app partition spanning the remaining space; user firmware may replace it with another valid 8 MB layout. -| I want to… | Start here | -| --- | --- | -| Use the device or try an official play | [Getting started](https://ai-passport.folotoy.cn/guides/getting-started/) · [Official plays](https://ai-passport.folotoy.cn/plays/) | -| Build a custom application with AI | [Agent instructions](../AGENTS.md) · [AI development guide](development/ai-guide.md) · [Required skills](../skills/README.md) | -| Prepare my environment and build firmware | [Environment setup](development/engineering/environment-setup.md) · [Build and test](development/engineering/build-and-test.md) | -| Explore the board or contribute | [Hardware guide](hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.md) · [Contributing](../.github/CONTRIBUTING.md) | +### Capabilities outside the current contract -> [!IMPORTANT] -> `main` is a minimal, runnable **hardware-test baseline**, not a finished application. -> Derivative applications must design their own UI; the current demo test menu and -> screens must not be reused. BSP APIs and non-UI logic remain reusable. +The public firmware contract is limited to the interfaces listed above. Do not infer additional board interfaces from the ESP32-C3 feature list. New hardware interfaces require an explicit BSP definition and on-device acceptance criteria. ## Start development with one requirement -1. Open the repository in your AI coding tool and have it read [`AGENTS.md`](../AGENTS.md). -2. Let it check and install the [five required skills](../skills/README.md), with any permissions your environment requires. -3. Describe what you want to build. Start from `main` on a new `feature/*` branch. - -Copy this prompt and adapt it to your idea: +A simple request can be given directly to an AI assistant: ```text Build an offline habit-tracking application for FoloToy AI Passport. Use the three physical buttons and the 240×320 display, and preserve records across power loss. Start from `main`, create a `feature/*` branch, and develop the application there. -Follow AGENTS.md and docs/hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.md. -Inspect relevant demo branches and docs/reference/ application archives first. -Keep hardware logic in components/bsp and application logic in main. -Deliver a runnable implementation with tests; report build results, -unexecuted device checks, and on-device acceptance steps separately. -Redesign the application's UI; do not use the current demo test menu or screens. +Follow AGENTS.md and docs/hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.md. Inspect relevant demo branches and plays/ applications first, +keep hardware logic in components/bsp and application logic in main, deliver a runnable +implementation with tests, and report the build result, unexecuted device checks, and exact +on-device acceptance steps separately. ``` -Before starting, check [`docs/reference/`](reference/README.md) for an existing or +Before starting, check [`reference/`](reference/README.md) for an existing or reference application and previously recorded, reusable experience, and the demo branches. See what is already built and reusable. -
-Write a clearer requirement — pages, controls, data, and acceptance - The more specific the requirement, the more likely the assistant is to implement it correctly in one pass. Useful details include: - User flow: what each page displays and what short press, double press, and long press do for each button. - State and data: whether the application needs timing, persistence across power loss, networking, recording, or communication with a computer. - Experience goals: fonts, colors, animation, sound, response time, and error states. -- Constraints: application navigation and controls, permitted dependencies, and Flash/data usage. The baseline test menu is not an application UI option. +- Constraints: whether the main menu may be replaced, dependencies added, Flash used, or default interactions changed. - Acceptance criteria: which behaviors require automated tests and which must be observed on real hardware. When details are omitted, the assistant may choose conservative defaults that do not change the product direction, but it must list those assumptions in the delivery. Decisions involving new wiring, electrical safety, board revisions, or irreversible data formats require confirmation first. -
- -> [!NOTE] -> A successful build is not hardware validation. Test the application on a real -> device after implementation; flashing requires your approval. Deliver a verified -> merged `full.bin` for flashing at `0x0`. No original-firmware backup is required, -> but a merged flash may reset stored data. See the [flashing policy](development/engineering/firmware-layout.md#flashing-and-stored-data). - ## Demo branches are design cases, not a feature pile Each `demo/*` branch evolves the baseline into an independent application. The branches demonstrate how specific problems were solved. New applications should normally branch from `main` and consult relevant examples instead of merging multiple demos wholesale. -The menu and `demo_*.c` pages on `main` are hardware-capability tests, not an application UI. Every derivative application must redesign and implement its own screens and interaction flow; using the current test menu, screens, or visual shell is prohibited. Renaming or recoloring them does not satisfy this requirement. BSP APIs, ordinary LVGL widgets, lifecycle patterns, and isolated logic may still be reused. See the [mandatory UI redesign rule](development/ai-guide.md#mandatory-ui-redesign-for-derivative-applications); maintenance of the baseline hardware-test demo itself is a separate task. +The menu and `demo_*.c` pages on `main` are also hardware-capability demonstrations, not a ready-made product UI. A new application must redesign and implement its screens and interaction flow for its own requirements rather than directly using or copying the current demo interface. BSP APIs, lifecycle patterns, and isolated logic may still be reused. | Branch | Application | Patterns worth reusing | | --- | --- | --- | @@ -115,9 +80,6 @@ The menu and `demo_*.c` pages on `main` are hardware-capability tests, not an ap | `demo/tetris-game` | Three-button Tetris | Real-time game loop, low-latency `PRESS` input, partial refresh, a pure game model, audio, and microphone interaction | | `demo/claude-buddy-port` | Desktop AI hardware companion | Replacing the demo menu with a complete application, encrypted BLE, protocol parsing, state reduction, task communication, and extensive host tests | -
-Explore a demo and create your application branch - Inspect an example without switching the current working tree: ```bash @@ -135,51 +97,8 @@ git switch -c feature/my-passport-app Example branches may change the same menu, configuration, or driver in incompatible ways. Understand the differences before extracting a state model, asset pipeline, or concurrency pattern. Code appearing in an example branch is not automatically part of the current `main` BSP contract. -
- -## Hardware capability contract - -**ESP32-C3 · 8 MB Flash · no PSRAM · 240 × 320 display · three physical buttons** - -The default layout contains only **NVS, PHY data, and one factory application** -spanning the remaining Flash. User firmware may use another valid 8 MB layout. -See [firmware layout](development/engineering/firmware-layout.md). - -
-Expand the capability table — interfaces, limits, and implementation details - -The table below describes the application capabilities implemented by the current `main` branch. It is not a list of everything that might be possible according to the chip datasheet. - -| Capability | Confirmed implementation | Application interface | Boundaries that must be respected | -| --- | --- | --- | --- | -| Display | ST7789P3, 240 × 320 portrait RGB565, SPI2 at 40 MHz; LEDC backlight | `bsp_display_*`, `bsp_lvgl_*` | The ESP32-C3 has no PSRAM; the current design uses a small single DMA buffer; the BSP exposes no LCD MISO, touch, or TE interface | -| Input | `UP`, `DOWN`, and `OK` share an ADC resistor ladder on GPIO0 | `bsp_button_init()`, `bsp_button_read_mv()` | Callbacks run in the button component task and must not block; do not create a second ADC1 unit | -| Audio | ES8311 with full-duplex PCM over I2S0, supporting playback, microphone capture, and software suspend/resume | `bsp_audio_*` | PCM reads and writes block and belong in a worker task; stop PCM I/O before codec sleep; format changes must retain the BSP close/open sequence | -| Battery | CW2017 state-of-charge and voltage readings | `bsp_battery_*` | This capability is optional at runtime; accuracy depends on the cell and battery profile and is not equivalent to a calibrated result | -| Wi-Fi | On-demand 2.4 GHz STA scan demo | `main/demo_wifi.c` | Scans only; it does not connect, store credentials, or validate antenna/RF performance | -| Bluetooth LE | On-demand non-connectable NimBLE advertising as `FoloPassport` | `main/demo_ble.c` | ESP32-C3 does not support Bluetooth Classic; radio range, coexistence, and power draw require device measurements | -| Low power | Two-second light sleep and five-second deep sleep, both with RTC timer wakeup | `main/demo_low_power.c` | Both modes force and verify ES8311 suspend; light sleep restores audio, while deep sleep first suspends CW2017, releases I2S/shared-I2C pins, sleeps and holds the LCD pins, then restarts on wake; the current demo exposes RTC timer wake only | -| Shared bus | ES8311 and CW2017 share I2C0 | `bsp_i2c_*` | Every device must reuse the bus owned by the BSP; do not create another bus on the same port for scanning or a new device | -| Logging and flashing | Native ESP32-C3 USB Serial/JTAG | ESP-IDF console | GPIO18/19 are reserved for USB; the default UART0 TX on GPIO21 conflicts with the backlight | - -All pins, addresses, panel parameters, and button voltage windows are defined only in [`components/bsp/include/bsp_pins.h`](../components/bsp/include/bsp_pins.h). Application code must not duplicate these constants. See the [AI Hardware Development Guide](hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.md) for the complete pin map, panel initialization, ADC thresholds, I2C addressing rules, audio clocks, and memory details. - -Applications may also use ESP-IDF timers, FreeRTOS tasks, and internal Flash/NVS; the Pomodoro branch contains an NVS example. Wi-Fi and Bluetooth LE remain ESP-IDF application services rather than BSP APIs: their menu pages initialize each stack only while open and release it on exit. `demo/claude-buddy-port` remains a fuller BLE application architecture reference, not a substitute for measuring the current board's antenna, RF performance, power consumption, and coexistence behavior. - -### Capabilities outside the current contract - -The public firmware contract is limited to the interfaces listed above. Do not infer additional board interfaces from the ESP32-C3 feature list. New hardware interfaces require an explicit BSP definition and on-device acceptance criteria. - -
- ## Project structure -Board support lives in `components/bsp`; application pages, state, and tasks live -in `main`. Keep that boundary when building your own firmware. - -
-Browse the repository map - ```text components/bsp/include/ Public BSP APIs and bsp_pins.h hardware facts components/bsp/src/ Display, button, audio, battery, and shared-I2C implementations @@ -189,34 +108,43 @@ tools/ Shared local/CI validation and firmware verification sc docs/ Project docs, changelog, engineering/contribution rules, and design references .github/ GitHub community files, PR template, issue forms, and CI workflows sdkconfig.defaults ESP32-C3, USB console, Flash, and LVGL defaults -partitions.csv Minimal default: NVS, PHY data, and one factory application +partitions.csv App plus protected identity layout dependencies.lock Reproducible ESP-IDF Managed Component resolution AGENTS.md Mandatory AI-agent entry point (paired with AGENTS.zh_CN.md) CLAUDE.md Claude Code pointer to AGENTS.md (paired Chinese version) LICENSE Repository license ``` -
- ## Documentation index -Engineering and contribution guides define the rules; examples and archives -provide reference material. Choose the entry that matches your task. +Repository documentation is organized by function area. `authoritative` documents define development or collaboration requirements; `reference` documents provide background or an index. -| Resource | What you will find | -| --- | --- | -| [Development](development/README.md) | AI workflow, engineering conventions, CI, and release guidance | -| [AI skills](../skills/README.md) | Development, environment setup, builds, device testing, and debugging | -| [Hardware](hardware-design/README.md) | Board facts, interface boundaries, acceptance checklists, and troubleshooting | -| [Chinese fonts](development/engineering/lvgl-chinese-fonts.md) | Glyph coverage, widget font selection, and blank-text troubleshooting | -| [Wi-Fi provisioning](development/engineering/wifi-provisioning.md) | Bluetooth provisioning reference and companion mini program | -| [Community projects and experience](reference/README.md) | Playbooks and reusable knowledge under `docs/reference//` | -| [Contributing](contribution/README.md) | Documentation, commits, and pull-request conventions | -| [Brand assets](brand/README.md) | Product visual references and [brand language](brand/brand-and-product.md) | -| [Fork guide](fork-guide.md) · [Changelog](CHANGELOG.md) | Downstream workflows and release history | +- [`docs/development/`](development/README.md) — engineering rules and reusable workflows: the `ai-guide.md`, `engineering/`, `ci/`, and `release/` areas. Its README lists them. +- [`docs/contribution/`](contribution/README.md) — collaboration, documentation, and commit/PR conventions. +- [`docs/hardware-design/`](hardware-design/README.md) — board facts, constraints, acceptance matrix, and troubleshooting. +- [`docs/reference/`](reference/README.md) — reference material: reusable development experience and archived application playbooks, grouped by contributor (`reference//`). +- [`docs/brand/`](brand/README.md) — public brand and product language (`brand-and-product.md`) and the official product visual references. +- [`docs/`](README.md) top-level — [`CHANGELOG.md`](CHANGELOG.md), [`brand-and-product.md`](brand/brand-and-product.md), and [`fork-guide.md`](fork-guide.md). ---- +GitHub community documents: [CONTRIBUTING.md](../.github/CONTRIBUTING.md), [CODE_OF_CONDUCT.md](../.github/CODE_OF_CONDUCT.md), [SECURITY.md](../.github/SECURITY.md), and [SUPPORT.md](../.github/SUPPORT.md). -[Contribute](../.github/CONTRIBUTING.md) · [Get help](../.github/SUPPORT.md) · [Code of conduct](../.github/CODE_OF_CONDUCT.md) · [Security](../.github/SECURITY.md) · [MIT License](../LICENSE) +> This README describes the product and repository. AI agents must begin with `AGENTS.md` and follow its task-specific routing. -AI agents: start with [`AGENTS.md`](../AGENTS.md) and follow its task-specific routing. +## Voice Keychain + +[1.8.0 integration, controls, partition migration and validation](voice-keychain.md). + +[1.9.0 first setup and return navigation](setup-navigation.md). + +[1.9.1 audio selection, layout and validation](voice-pruning.md). + +- [City Radio integration, MIT source and themed previews](./leo-radio.md): provenance in `assets/radio/`; production LVGL renders in `assets/images/leo-radio/`. + +[XiaoZhi integration, shared settings and activation](xiaozhi.md). + +[2.3.0 portrait homepage, fonts and compatible profile storage](portrait-home.md). + +[2.4.0 tactical identity layout, alias and V4 compatibility](tactical-home.md). + +- [Cyber Yao mini-app and XiaoZhi interpretation](cyber-yao.md) +- Holy Cup oracle decision mini-app (`holy-cup`) diff --git a/docs/README.zh_CN.md b/docs/README.zh_CN.md index 7582a43..9ae84a5 100644 --- a/docs/README.zh_CN.md +++ b/docs/README.zh_CN.md @@ -1,107 +1,74 @@ -[English](/docs/README.md) · **简体中文** +# FoloToy AI Passport -

FoloToy AI PASSPORT

+[English](README.md) | 简体中文 -

- - - FoloToy å­—æ ‡ - -

+当�分支应用:[��员工牌](../README.zh_CN.md) · [验�报告](muyu-validation.zh_CN.md)。 -

- 戴上它,刷入固件,把它��任何你想�的东西。
- 简�开放,人人�造。 -

+FoloToy AI Passport 是一个开放��穿戴 AI 硬件,本仓库是这款 AI 硬件的开�基线。它��展示"��能�行什么",还把开�应用所需的**硬件事实�稳定接��资�边界��考实现和验收方法**放在�一仓库中。 -

- 开放固件 - �穿戴 AI - 为创作者而造 - MIT 许�� -

+这个仓库的组织方�是: -

- 产�官网 · - 开始开� · - 社区作� · - 开�文档 -

+- `main` 是最�但完整的��行基线,也是当�硬件能力的�执行说明; +- `components/bsp` 隔离�级差异,为应用�供稳定 API; +- `demo/*` 分支展示从需求到��的��实现路径; +- AI 开�约定� [`AGENTS.zh_CN.md`](../AGENTS.zh_CN.md) 与 [`docs/development/ai-guide.zh_CN.md`](development/ai-guide.zh_CN.md);完整硬件上下文和故障知识� [`docs/hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.zh_CN.md`](hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.zh_CN.md); +- 构建结果与真机结果分开记录,�止把"编译通过"�述�"硬件验�通过"。 ---- +## 硬件能力契约 -**FoloToy AI Passport** 是开放的�穿戴 AI 平�,人人都�以动手改造�自由创作。 -从一个简�想法开始,打造专属体验——无论是�身伙伴��工具�游�,还是任何新点�。 +下表�述的是当� `main` 已�供的应用能力,而�是芯片数�手册中所有�能的能力。 -

- FoloToy AI Passport �穿戴设备的正��侧�和背�展示。 -

+| 能力 | 已确认实现 | 应用接� | 必须�守的边界 | +| --- | --- | --- | --- | +| 显示 | ST7789P3,240 × 320,竖� RGB565,SPI2 40 MHz;LEDC 背光 | `bsp_display_*`�`bsp_lvgl_*` | ESP32-C3 无 PSRAM;当�为�型� DMA 缓冲;BSP 未暴露 LCD MISO�触摸或 TE 接� | +| 输入 | `UP` / `DOWN` / `OK` 三键,共用 GPIO0 的 ADC 电阻分压 | `bsp_button_init()`�`bsp_button_read_mv()` | 回调�行在 button 组件任务中,�能阻塞;�能�创建第二个 ADC1 unit | +| 音频 | ES8311,I2S0 全�工 PCM,支�播放�麦克风录音�软件休眠/�� | `bsp_audio_*` | PCM 读写为阻塞调用,应放工作任务;codec 休眠�必须�止 PCM I/O;格�切�必须�留 BSP 内的 close/open �程 | +| 电池 | CW2017 的 SOC 与电压读� | `bsp_battery_*` | 是�缺�能力;读数精度�决于电芯与 profile,�能等�于已标定结果 | +| Wi-Fi | 按需 2.4 GHz STA 扫� demo | `main/demo_wifi.c` | 仅扫�;�连接��存凭���验�天线/射频表现 | +| Bluetooth LE | 按需以 `FoloPassport` �义���连接的 NimBLE 广播 | `main/demo_ble.c` | ESP32-C3 �支��牙�典;射频范围�共存与功耗需实测 | +| 低功耗 | 两秒浅�眠与五秒深�眠,�以 RTC 定时器唤醒 | `main/demo_low_power.c` | 两�模�都强制暂� ES8311 并回读校验;浅�眠��音频,深�眠则先暂� CW2017�释放 I2S/共享 I2C 引脚�休眠并�� LCD 引脚,唤醒时��应用;当� demo ��供 RTC 定时器唤醒 | +| 共享总线 | ES8311 与 CW2017 共用 I2C0 | `bsp_i2c_*` | 所有设备�用 BSP �有的总线;�能为扫�或新设备�创建�端�总线 | +| 日志与烧录 | ESP32-C3 原生 USB Serial/JTAG | ESP-IDF console | GPIO18/19 �留给 USB;UART0 默认 TX GPIO21 与背光冲� | -| 开放自由,�心改造 | 人人都能开始 | 创造专属玩法 | -| --- | --- | --- | -| 开放固件与��用示例,为你的创�留出�挥空间。 | 从一个简�想法出�,跟�清晰指�把它��现实。 | 打造�身伙伴��工具�游�,或任何你能想到的东西。 | +所有引脚�地�����数和按键电压窗��在 [`components/bsp/include/bsp_pins.h`](../components/bsp/include/bsp_pins.h) 定义。应用代��得�制这些常�。完整引脚表����始化�ADC 阈值�I2C 地�规则�音频时钟和内存说明� [AI 硬件开�指�](hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.zh_CN.md)。 -## 找到你的起点 +应用也�以使用 ESP-IDF �供的定时器�FreeRTOS 任务和内部 Flash/NVS;番茄钟分支�供了 NVS 示例。Wi-Fi 和 Bluetooth LE �是 ESP-IDF 应用�务而� BSP API:其��页�仅在打开时�始化对应�议栈�退出时释放。`demo/claude-buddy-port` �是更完整的 BLE 应用架构�考,�能替代对当���天线�射频表现�功耗和共存行为的实测。默认自定义固件基线使用 8 MB Flash,�包� NVS�PHY data,以��用剩余空间的�个 factory-app 分区;用户固件�以替��其它�法的 8 MB 布局。 -| 我想�…… | 从这里开始 | -| --- | --- | -| 使用设备�体验官方玩法 | [快速上手](https://ai-passport.folotoy.cn/guides/getting-started/) · [官方玩法](https://ai-passport.folotoy.cn/plays/) | -| 让 AI 开�自定义应用 | [Agent 规范](../AGENTS.zh_CN.md) · [AI 开�指�](development/ai-guide.zh_CN.md) · [必需技能](../skills/README.zh_CN.md) | -| 准备环境�编译固件 | [环境准备](development/engineering/environment-setup.zh_CN.md) · [构建与测试](development/engineering/build-and-test.zh_CN.md) | -| 了解硬件��与贡献 | [硬件指�](hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.zh_CN.md) · [贡献指�](../.github/CONTRIBUTING.zh_CN.md) | +### �属于当�能力契约的事项 -> [!IMPORTANT] -> `main` 是最���行的**硬件测试基线**,�是��应用。 -> 二次开�必须�新设计 UI,�止沿用当� demo 测试��和页�; -> BSP API 与� UI 逻辑���用。 +公开固件能力以表中接�为�,�能仅凭 ESP32-C3 芯片能力推断其他�级接�。新增硬件接�必须�供明确的 BSP 定义和实机验收标准。 ## 用一�需求开始开� -1. 在 AI 编程工具中打开仓库,让它先阅读 [`AGENTS.md`](../AGENTS.md)。 -2. 由 AI 自行检查�安装[五个必需技能](../skills/README.zh_CN.md),按当�环境�求�得必���。 -3. �述你想�的应用,从 `main` 创建新的 `feature/*` 分支开始开�。 - -�制这段�示�,替��你的创�: +简�需求�以直接交给 AI 助手: ```text 请为 FoloToy AI Passport 开�一个离线习惯打�应用。 使用三个实体按键和 240×320 �幕,记录�存在掉电�丢失的存储中。 从 `main` 开始,创建 `feature/*` 分支并在该分支上开�。 -�守 AGENTS.md 和 docs/hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.md。 -先查找相关 demo 分支与 docs/reference/ 应用档案。 -硬件逻辑放在 components/bsp,应用逻辑放在 main。 -完���行实现与测试,分别报告构建结果�未执行的真机项目和�项验收方法。 -必须�新设计应用 UI,�止使用当� demo 测试��和页�。 +�守 AGENTS.md 和 docs/hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.md;先查找相关 demo 分支与 plays/ 应用, +��硬件逻辑在 components/bsp�应用逻辑在 main,完���行实现与测试, +最�分别报告构建结果�未执行的真机项目和�项验收方法。 ``` -开始�先看 [`docs/reference/`](reference/README.zh_CN.md) 中已有的应用与开��验, -���相关 demo 分支,确认哪些实现�以�考和�用。 - -
-把需求说得更清楚 — 页��按键�数�与验收 +开始�先看 [`reference/`](reference/README.zh_CN.md) 有没有已存在或��考的应用�以�已沉淀���用的�验,���相关 demo 分支。 +这些列出了已�构建好���用的东西。 需求越具体,AI 助手越容易一次实现正确。建议说明: - 用户�程:�个页�显示什么,三个按键的短按��击�长按分别�什么; - 状�与数�:是�计时�断电�存��网�录音或与电脑通信; - 体验目标:字体�颜色�动画�声音��应时间和异常状�; -- �制�件:应用导航与按键设计��许的�赖以� Flash�数�使用范围;基线测试���能作为应用 UI 选项; +- �制�件:是��许替�主���增加�赖�使用 Flash 或改�默认交互; - 验收标准:哪些行为必须自动测试,哪些必须在真实硬件观察。 若需求没有给出所有细节,AI 助手�以在�改�产�方�的范围内采用�守默认值,但应在交付中列出这些�设。涉�新接线�电�安全�硬件版本或����数�格�的决定必须先确认。 -
- -> [!NOTE] -> 编译通过�等于硬件验�通过。实现完��应在真实设备上验收,刷写需�获得用户��。 -> 交付固件须为已校验��从 `0x0` 烧录的�并 `full.bin`。 -> 无需备份设备原有固件,但�并烧录�能�置已存数�,详�[烧录说明](development/engineering/firmware-layout.zh_CN.md#烧录与已存数�)。 - ## 示例分支是设计案例,�是功能堆� �个 `demo/*` 分支都从基线演化出一个独立应用。它们的价值是展示具体问题的实现方�;新应用通常应从 `main` 建分支,按需�考,而�是把多个 demo 整体�并。 -`main` 上的��和 `demo_*.c` 页��是硬件能力测试界�,�是应用 UI。所有二次开�应用都必须�新设计并实现页�与交互�程,�止使用当�测试���页�或界�外壳;改���颜色�算满足�求。BSP API�普通 LVGL 控件�生命周期模�和独立逻辑���用。详�[强制 UI �新设计规则](development/ai-guide.zh_CN.md#二次开�-ui-强制�新设计);维护基线硬件测试 demo 本身属于�一类任务。 +`main` 上的��和 `demo_*.c` 页��样�是硬件能力展示与验�界�,�是�直接使用的�� UI。新开�应用必须根�自身需求�新设计并实现页�与交互�程,�能直接使用或照�当� demo 界�;BSP API�生命周期模�和已拆分的纯逻辑��按需�用。 | 分支 | 展示的应用 | 值得�用的模� | | --- | --- | --- | @@ -111,9 +78,6 @@ | `demo/tetris-game` | 三键俄罗斯方� | 实时游�循环�低延迟 `PRESS` 输入�局部刷新�纯游�模型�音效与麦克风交互 | | `demo/claude-buddy-port` | 桌� AI 硬件伴侣 | 用完整应用替� demo ���加密 BLE��议解��状�归约�任务通信和较完整的主机测试 | -
-查看示例并创建应用分支 - 查看示例而�切�当�工作区: ```bash @@ -131,50 +95,8 @@ git switch -c feature/my-passport-app 示例分支之间�能改�了�一����置或驱动。应先�解差异,���状�模型�资��水线或并�模�;�能因为代�曾出现在示例分支,就把它当�当� `main` 的 BSP ��。 -
- -## 硬件能力契约 - -**ESP32-C3 · 8 MB Flash · 无 PSRAM · 240 × 320 �幕 · 三个实体按键** - -默认分区仅包� **NVS�PHY data 和�用剩余 Flash 的�个 factory 应用**。 -用户固件�按需调整为其他�法的 8 MB 布局,详�[固件布局](development/engineering/firmware-layout.zh_CN.md)。 - -
-展开完整能力表 — 接���制与实现细节 - -下表�述的是当� `main` 已�供的应用能力,而�是芯片数�手册中所有�能的能力。 - -| 能力 | 已确认实现 | 应用接� | 必须�守的边界 | -| --- | --- | --- | --- | -| 显示 | ST7789P3,240 × 320,竖� RGB565,SPI2 40 MHz;LEDC 背光 | `bsp_display_*`�`bsp_lvgl_*` | ESP32-C3 无 PSRAM;当�为�型� DMA 缓冲;BSP 未暴露 LCD MISO�触摸或 TE 接� | -| 输入 | `UP` / `DOWN` / `OK` 三键,共用 GPIO0 的 ADC 电阻分压 | `bsp_button_init()`�`bsp_button_read_mv()` | 回调�行在 button 组件任务中,�能阻塞;�能�创建第二个 ADC1 unit | -| 音频 | ES8311,I2S0 全�工 PCM,支�播放�麦克风录音�软件休眠/�� | `bsp_audio_*` | PCM 读写为阻塞调用,应放工作任务;codec 休眠�必须�止 PCM I/O;格�切�必须�留 BSP 内的 close/open �程 | -| 电池 | CW2017 的 SOC 与电压读� | `bsp_battery_*` | 是�缺�能力;读数精度�决于电芯与 profile,�能等�于已标定结果 | -| Wi-Fi | 按需 2.4 GHz STA 扫� demo | `main/demo_wifi.c` | 仅扫�;�连接��存凭���验�天线/射频表现 | -| Bluetooth LE | 按需以 `FoloPassport` �义���连接的 NimBLE 广播 | `main/demo_ble.c` | ESP32-C3 �支��牙�典;射频范围�共存与功耗需实测 | -| 低功耗 | 两秒浅�眠与五秒深�眠,�以 RTC 定时器唤醒 | `main/demo_low_power.c` | 两�模�都强制暂� ES8311 并回读校验;浅�眠��音频,深�眠则先暂� CW2017�释放 I2S/共享 I2C 引脚�休眠并�� LCD 引脚,唤醒时��应用;当� demo ��供 RTC 定时器唤醒 | -| 共享总线 | ES8311 与 CW2017 共用 I2C0 | `bsp_i2c_*` | 所有设备�用 BSP �有的总线;�能为扫�或新设备�创建�端�总线 | -| 日志与烧录 | ESP32-C3 原生 USB Serial/JTAG | ESP-IDF console | GPIO18/19 �留给 USB;UART0 默认 TX GPIO21 与背光冲� | - -所有引脚�地�����数和按键电压窗��在 [`components/bsp/include/bsp_pins.h`](../components/bsp/include/bsp_pins.h) 定义。应用代��得�制这些常�。完整引脚表����始化�ADC 阈值�I2C 地�规则�音频时钟和内存说明� [AI 硬件开�指�](hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.zh_CN.md)。 - -应用也�以使用 ESP-IDF �供的定时器�FreeRTOS 任务和内部 Flash/NVS;番茄钟分支�供了 NVS 示例。Wi-Fi 和 Bluetooth LE �是 ESP-IDF 应用�务而� BSP API:其��页�仅在打开时�始化对应�议栈�退出时释放。`demo/claude-buddy-port` �是更完整的 BLE 应用架构�考,�能替代对当���天线�射频表现�功耗和共存行为的实测。 - -### �属于当�能力契约的事项 - -公开固件能力以表中接�为�,�能仅凭 ESP32-C3 芯片能力推断其他�级接�。新增硬件接�必须�供明确的 BSP 定义和实机验收标准。 - -
- ## 项目结构 -�级支�放在 `components/bsp`;应用页��状�与任务放在 `main`。 -开�自定义固件时继续��这�边界。 - -
-展开仓库目录说明 - ```text components/bsp/include/ BSP 公开 API 与 bsp_pins.h 硬件事实 components/bsp/src/ 显示�按键�音频�电池�共享 I2C 实现 @@ -184,33 +106,43 @@ tools/ 本地与 CI 共用的验��固件校验脚本 docs/ 项目说明��更记录�工程/�作规范与设计�考 .github/ GitHub 社区文档�PR 模��Issue Form 与 CI 工作� sdkconfig.defaults ESP32-C3�USB console�Flash�LVGL 默认�置 -partitions.csv 最简默认分区:NVS�PHY data 和�个 factory 应用 +partitions.csv 应用与设备身份�护分区布局 dependencies.lock ��现的 ESP-IDF Managed Component 解�结果 AGENTS.md AI agent 必读入�(与 AGENTS.zh_CN.md �对) CLAUDE.md Claude Code 指� AGENTS.md 的入�(�中文�对) LICENSE 仓库许�� ``` -
- ## 文档索引 -工程与�作文档定义开�规则,示例与档案�供�考资料。按当�任务选择入���。 +本仓库文档按功能域组织。`authoritative` 指对开�与�作有约�力的文档;`�考` 指�供背景或索引的文档。 -| 入� | 你�以找到 | -| --- | --- | -| [开�指�](development/README.zh_CN.md) | AI 工作��工程规范�CI 与�布�程 | -| [AI 技能](../skills/README.zh_CN.md) | 开��环境准备�构建�真机测试与故障诊断 | -| [硬件资料](hardware-design/README.zh_CN.md) | ��事实�接�边界�验收清�与排障 | -| [中文字体](development/engineering/lvgl-chinese-fonts.zh_CN.md) | 字形覆盖�控件字体选择,以�中文空白排查 | -| [Wi-Fi �网](development/engineering/wifi-provisioning.zh_CN.md) | �牙�网实现�考与�套�程� | -| [社区作�与�验](reference/README.zh_CN.md) | `docs/reference//` 下的应用档案和��用知识 | -| [�与贡献](contribution/README.zh_CN.md) | 文档��交与 Pull Request 约定 | -| [�牌素�](brand/README.zh_CN.md) | 产�视觉�考与[�牌说明](brand/brand-and-product.zh_CN.md) | -| [Fork 指�](fork-guide.zh_CN.md) · [更新记录](CHANGELOG.zh_CN.md) | 下游工作�与版本历� | +- [`docs/development/`](development/README.zh_CN.md) — 工程规则与��用工作�:`ai-guide.md`�`engineering/`�`ci/`�`release/` 区。其 README 列明它们。 +- [`docs/contribution/`](contribution/README.zh_CN.md) — �作�文档与�交/PR 约定。 +- [`docs/hardware-design/`](hardware-design/README.zh_CN.md) — ��事实�约��验收矩阵与排障。 +- [`docs/reference/`](reference/README.zh_CN.md) — �考资料:按贡献者(`reference//`)组织��用开��验与已归档应用于册。 +- [`docs/brand/`](brand/README.zh_CN.md) — 公开�牌与产�语言(`brand-and-product.zh_CN.md`)与官方产�视觉�考。 +- [`docs/`](README.zh_CN.md) 顶层 — [`CHANGELOG.zh_CN.md`](CHANGELOG.zh_CN.md)�[`brand-and-product.zh_CN.md`](brand/brand-and-product.zh_CN.md)�[`fork-guide.zh_CN.md`](fork-guide.zh_CN.md)。 ---- +GitHub 社区治�文档:[CONTRIBUTING.zh_CN.md](../.github/CONTRIBUTING.zh_CN.md)�[CODE_OF_CONDUCT.zh_CN.md](../.github/CODE_OF_CONDUCT.zh_CN.md)�[SECURITY.zh_CN.md](../.github/SECURITY.zh_CN.md)�[SUPPORT.zh_CN.md](../.github/SUPPORT.zh_CN.md)。 -[�与贡献](../.github/CONTRIBUTING.zh_CN.md) · [获�帮助](../.github/SUPPORT.zh_CN.md) · [行为准则](../.github/CODE_OF_CONDUCT.zh_CN.md) · [安全说明](../.github/SECURITY.zh_CN.md) · [MIT 许��](../LICENSE) +> 注:本 README ��述产�与仓库,��给 AI 的执行说明;AI 开始开��请先读根目录 `AGENTS.zh_CN.md`,�按任务路由读�相关文档。 -AI 助手请从 [`AGENTS.md`](../AGENTS.md) 开始,�按任务路由读�相关文档。 +## 音效钥匙扣 + +[1.8.0 集���作�分区�移与验�](voice-keychain.zh_CN.md)。 + +[1.9.0 首次�置与统一返回](setup-navigation.zh_CN.md)。 + +[1.9.1 音效精简�分区与验�](voice-pruning.zh_CN.md)。 + +- [城市电�集��MIT ���主题预览](./leo-radio.zh_CN.md):���� `assets/radio/`,实际 LVGL 预览 `assets/images/leo-radio/`。 + +[�智对�集��共用设置与激活](xiaozhi.zh_CN.md)。 + +[2.3.0 竖版肖�首页�字体与兼容存储](portrait-home.zh_CN.md)。 + +[2.4.0 机能身份牌布局�代�� V4 兼容](tactical-home.zh_CN.md)。 + +- [赛�摇��程�与�智解读](cyber-yao.zh_CN.md) +- 圣�决策�程�(`holy-cup`) diff --git a/docs/assistant-control.md b/docs/assistant-control.md new file mode 100644 index 0000000..4b2fec0 --- /dev/null +++ b/docs/assistant-control.md @@ -0,0 +1,182 @@ +

简体中文 · English

+ +# Xiaozhi device tools (2.6.23) + +## Current capabilities + +There are 19 tools. Version 2.6.23 extends the existing reminder tools and adds profile and system operations. Older sections below are historical; this section supersedes their single, volatile reminder behavior. + +- Eight persistent reminders: 1–86400 second delays, UTC+8 clock times, calendar dates, daily or selected weekday repetition. Creation requires a synchronized clock. NVS retains schedules across restarts and power loss. Shutdown does not ring; startup resumes after clock synchronization. Overdue one-shot reminders ring, recurring occurrences missed by more than ten minutes are skipped, and already pending alerts remain until acknowledged. Simultaneous alerts are shown one at a time. OK acknowledges. Chimes use 90% without changing application preferences. +- `self.reminder.set`: choose `seconds` or `time:"HH:mm"`; optionally add either `date:"YYYY-MM-DD"` or `weekdays:[1..7]`, Monday=1. Text is limited to 32 characters/96 UTF-8 bytes. `get` lists IDs, local time, next occurrences, remaining seconds and weekdays. `cancel(id)` cancels exactly one entry. +- `self.badge.get_profile(number?)` defaults to the active badge and returns name, department, title, revision and editability. `self.badge.update_profile(number,revision,field,value)` modifies `name`, `department` or `title`. A freshly read revision prevents overwriting concurrent web edits. +- Text metadata and display pixels commit together through the existing dual-bank storage. Name: 20 characters; department/title: 24. Two display rows use ellipsis on overflow; metadata retains the full string. Only V4 profiles can be edited; re-save older profiles through the configuration page. Missing font glyphs are rejected. Avatar, QR, brand and bottom lettering assets are preserved. +- `self.system.action`: `home` returns directly to home; `shutdown` stops network/audio/display and enters deep sleep, with UP as the wake button. This is software sleep, not physical disconnection of power. Both end the current conversation. + +Validation: `test_badge_alarms.c` (define `BADGE_ALARM_SERVICE_TEST` for persistence failure tests), `test_profile_text.c`, `test_profile_edit.c`, `test_profile_store.c`, and `test_xiaozhi_tools.c`. Bench-only `BADGE_ASSISTANT_DEVICE_PROBE` adds temporary reminders and enables a timer wake during its shutdown test; it must be OFF in releases. Discovery retains flash-backed raw JSON and a preallocated send buffer, with host checks for a catalog below 7 KiB and construction allocations below 1 KiB. + +## Historical behavior: 2.5.x + +The existing MCP connection exposes fourteen tools for device status, apps, +sounds, QR display, badges, brightness, Xiaozhi volume, radio and reminders. +No separate Wi-Fi, profile, volume or asset configuration is added. +Cloud speech recognition and tool selection still require the configured +Xiaozhi service to be connected and support device MCP tools. + +| Tool | Arguments / behavior | +| --- | --- | +| `self.get_device_status` | Volume, actual Wi-Fi state, brightness, configured badge numbers, active badge, QR presence, last action result (0 pending/initial, 1 success, -1 failure). | +| `self.apps.open` | `app`: `zen-muyu`, `leo-radio`, or `voice-keychain`. Opens the existing app. Radio requires Wi-Fi. | +| `self.audio.search` | `query` matches title/category; optional `offset`. At most six matches with clip IDs per page. Empty query browses the catalog. | +| `self.audio.play` | `clip_id` from search. Opens the matching sound category and starts that clip. | +| `self.badge.show_qr` | Shows the active badge's uploaded QR. Missing QR returns a tool error. | +| `self.badge.switch` | `number` 1–5, configured slots only. Returns to the badge home. | +| `self.display.set_brightness` | `percent` 20/40/60/80/100, persisted using the existing system setting. Conversation continues. | + +Requests use strict argument validation; an unknown tool or invalid schema +does not enqueue an action. Missing resources and a busy mailbox are reported +as tool errors. Search returns real catalog IDs rather than guessed indexes. + +Navigation actions send an acceptance response before committing, so stopping +Xiaozhi cannot discard the response; acceptance is not completion. In-place volume, +brightness and reminder changes wake the main task immediately and await completion +for up to two seconds, returning execution=completed/pending/failed. If sending an +in-place result fails, the action may already have taken effect: query before retrying. +A failed navigation acknowledgement cancels its uncommitted action. Disconnects and +app exit invalidate unconsumed tickets. A critical section protects the mailbox and a navigation +snapshot; the voice worker never reads live navigation or touches LVGL. + +The navigation task rechecks mutable profile data, stops Xiaozhi, waits for +its worker to release microphone/codecs/network resources, and only then +deletes its screen and starts the target. Stop failure preserves the existing +screen. A target startup failure attempts to return home. Late execution +failures are logged; Xiaozhi cannot announce them after its session has ended. +Brightness stays in Xiaozhi; app/page switches end voice conversation. Voice +control is not available in the background of the launched mini app. + +## Validation + +`tests/test_xiaozhi_tools.c` uses the project's cJSON and generated voice +catalog, checks discovery, arguments, error replies, bounded searches, +deferred/failed/stale tickets, and selection of all 726 audio entries. Build +with `BADGE_CONTROL_HOST_TEST` and link `xiaozhi_tools.c`, `badge_control.c`, +`voice_navigation.c`, the generated `voice_catalog.c` and ESP-IDF's `cJSON.c`. + +`BADGE_CONTROL_DEVICE_PROBE=ON` is a temporary bench-only firmware option. +It drives tools from the navigation task, tests app lifecycles, a short sound, +available QR, badge selection, brightness save/restore and cancellation. +It restores the original selected badge and brightness. Normal release builds +must use `BADGE_CONTROL_DEVICE_PROBE=OFF`. This local probe does not test cloud +intent recognition; spoken commands must also be checked with the live service. + +## 2.5.0: volume, names, stations and reminders + +- `self.xiaozhi.set_volume(percent)` accepts 0–100, with zero meaning mute. + It changes only Xiaozhi reply volume through the existing deferred-save and + exit-flush path. Radio, woodfish and soundboard preferences remain independent. + Status identifies `volume_scope=xiaozhi`; this is not a global volume tool. +- `self.get_device_status` adds `battery_percent` (-1 means unavailable), + `active_badge_name` and `badge_names`. Battery sampling updates about every + 30 seconds while awake and pauses when the screen sleeps. +- `self.badge.switch` accepts either `number` or `name`, never both. Names must + exactly match saved profiles. Duplicate names require choosing a number. + The navigation task rechecks names before switching to avoid stale selections. +- `self.radio.search(query, offset)` searches curated station names, six per page. + `self.radio.play(station_id)` uses a returned ID and starts that preset without + waiting for initial city discovery. Additional online city-directory entries + are not currently included in voice search. +- `self.reminder.set(seconds, text)` creates one countdown of 1–86400 seconds, + with at most 32 characters / 96 UTF-8 bytes. Existing reminders are never silently + replaced. `self.reminder.get` reports remaining time and `self.reminder.cancel` + cancels it. These tools keep the conversation open. + +The main task owns the reminder and uses monotonic time, so leaving Xiaozhi, +switching apps and light sleep do not cancel it. At expiry it wakes the display, +stops the active app, waits for audio ownership to be released, and displays a +theme-colored reminder over the home screen. Failed app stops are retried before +starting the chime. Checks run about every 250 ms, or every second with the screen +off; stopping network/audio workers can add seconds, so this is not precision timing. + +The three-tone chime uses a fixed 90% volume, restores the previous shared codec +volume, then suspends audio. It never changes an app's saved preference. OK dismisses +the reminder to home; interrupted playback does not resume automatically. A failed +chime-task allocation still leaves the visual reminder. Reminders live only in RAM: +reboot or power loss clears them. Daily repeats and wall-clock alarms are not supported. +The existing GB2312 font may not render rare characters or emoji. + +### Added validation + +`tests/test_badge_reminder.c` covers duration boundaries, exact expiry, duplicate +rejection, cancellation and long uptime. `tests/test_xiaozhi_tools.c` adds duplicate +names, volume bounds, actual station search, offline rejection, reminder lifecycle +and failed-send checks. Link `radio_tool_catalog.cc` and `radio_presets.cc` into this +test, compiling C and C++ sources separately. + +The bench probe adds saved-volume reentry, name switching, a specific station, +reminders after leaving Xiaozhi, cancellation and display-sleep wakeup. It restores +the original badge, brightness, Xiaozhi volume and radio settings. Disable the probe +in production; real speech interpretation and external station availability still +need on-site confirmation. + +## 2.5.1: tool-progress captions and completion receipts + +An on-device cloud trace captured `% self.xiaozhi.set_volume...` in a TTS sentence +event before the normal reply. It is a tool-progress marker, previously displayed as +a caption, rather than an unsubstituted C format argument. The caption ingress now +filters only a complete `% self.method.name...` marker (including Unicode ellipsis). +Ordinary percentages, method names in prose and explanations of `%s` remain intact. +Audio and final replies retain their existing paths. + +Tool descriptions clarify that a specific radio/sound play already opens its app: +do not call apps.open first. Compound tasks must apply settings before the final app +switch. Badge number/name exclusivity is also expressed in the schema. Completion +receipts for in-place actions prevent the common stale-read/second-command-busy race. +A timeout remains pending rather than claiming completion. App switches still end +the conversation. + +`tests/test_xiaozhi.c` distinguishes progress markers from ordinary percentages and +code. Tool tests cover wakeup, completion, cancellation, failure and stale receipts. +`BADGE_TOOL_CLOUD_PROBE` is a temporary diagnostic flag using fixed synthesized audio, +never real microphone input. Raw diagnostics stay in private local logs. Production +must disable it. The generated cloud_probe_pcm.h lives in the build directory and +is neither a release resource nor included in production firmware. + +## 2.6.3: Random sounds and repeated wake-up + +`self.audio.play_random(query)` selects and plays a random matching clip directly. Omit `query` or pass an empty string for all clips; otherwise filter by title or category. No prior search or app-open call is required. With multiple candidates the previous random selection is excluded; a single match may repeat. No match returns an error without navigation. The response reports the real clip ID, title and category and retains acknowledgement-before-execution. Explicit ID playback is unchanged. + +Once soundboard initialization finishes and no sound is queued or playing, the navigation task joins the player, releases its decoder and stack, keeps the list visible, and resumes local wake detection. Key actions first join the detector before restarting playback. Queued requests retain audio ownership; an old completion cannot release a newer request. Wake-up works again after playback or manual stop. A detected phrase leaves the soundboard for Xiaozhi; closing the conversation returns to the originating home or app list. Wake remains paused during playback; wooden fish and radio retain their audio exclusion policy. + +2.6.3 validation: host tests cover random selection bounds, category filters, no consecutive repeat with multiple matches, invalid arguments/no matches, and retaining newer audio ownership when an old request completes. Device probes use real microphone frames and injected wake triggers to check idle-list recovery, playback exclusion, recovery after manual stop, and three playback-to-wake cycles. Five detector start/stop cycles finish with the same idle heap as baseline. Acoustic wake accuracy and cloud selection of the random tool still require real conversation checks. + +## Direct page transitions (2.6.6) + +Voice actions that open a mini app, play a specific/random clip, select a radio +station, show a QR code or switch badges no longer render the badge home as an +intermediate page. The navigation task joins audio producers while preserving +the conversation screen, then destroys it and creates/renders the destination +under one LVGL lock. Badge switching renders the selected badge only once. +In-place actions (volume, brightness, reminders) keep the conversation as before. +If destination preparation fails, the existing conversation producer is restarted. +If an app fails to start after its page is created, it is stopped and the badge +home is restored. All task joins stay outside the LVGL lock. + +The opt-in control probe counts home renders around each action, checks the +badge identity rendered, and injects preparation/start failures. Production builds +must disable the probe. The probe temporarily disables background wake for the +screen-off reminder check and restores its original setting at completion. + +Hardware validation passed all three app entries, specific/random audio, +QR display, preset radio, and badge switching by number/name. Instrumented +successful actions rendered home zero times, except badge switches which +rendered the target badge exactly once. Preparation failure restored the chat; +injected app-start failure restored home. Existing volume persistence, failed +send cancellation, reminders, screen-off wake and setting restoration passed. +The probe uses real UI/audio lifecycle and device tool dispatch, with cloud +connection disabled; it does not measure physical panel timing with a camera. + +## 2.6.20: Cyber Yao + +`self.apps.open` also accepts `cyber-yao` for manual casting. +`self.yao.cast` and `self.yao.get` return structured results without navigating +or interrupting the conversation. See [Cyber Yao](cyber-yao.md) for replay +limits, parameters, interpretation handoff and storage behavior. diff --git a/docs/assistant-control.zh_CN.md b/docs/assistant-control.zh_CN.md new file mode 100644 index 0000000..e45ef50 --- /dev/null +++ b/docs/assistant-control.zh_CN.md @@ -0,0 +1,149 @@ +

简体中文 · English

+ +# �智设备控制(2.6.23) + +## 当�新增能力 + +现在共 19 个工具。2.6.23 扩展原有�醒工具,增加资料读写�系统�作工具;下文旧版本段��留为历�记录,以本节为准。 + +- �醒最多 8 �,支� 1~86400 秒倒计时�北京时间钟点�指定日期��日或指定星期��。创建�需�网校时;存入 NVS,退出�智���或断电�会删除。关机期间��铃,开机校时���;过期一次性�醒补�,错过超过 10 分钟的���醒跳到下一次,已��起但未确认的�醒�留。多个到期�醒��显示,OK 确认。�示音固定 90%,�修改程�音��好。 +- `self.reminder.set`:`seconds` 或 `time:"HH:mm"` 二选一;钟点�选 `date:"YYYY-MM-DD"` 或 `weekdays:[1..7]`(周一为 1,周日为 7),两者互斥。文字最多 32 字/96 字节。`get` 返回编��下次时间�剩余秒数与��星期;`cancel(id)` ��消指定编�。 +- `self.badge.get_profile(number?)`:�略编�读�当�工牌,返回姓��部门����是��编辑和版本。`self.badge.update_profile(number,revision,field,value)`:修改 `name`�`department` 或 `title`;必须先读�版本,网页�时修改时拒�覆盖旧资料。 +- 资料文字��幕�素一起�备份�交。姓�最多 20 字,部门/��最多 24 字;�幕两行,放�下显示�略�,完整文字�存在资料中。�支� V4 资料,旧版请先在�置网页�新�存。使用已有中文字库,缺字会拒�修改;头��二维���牌�底部艺术字资���原样。 +- `self.system.action(action)`:`home` 直接回首页;`shutdown` 关闭�网�音频和�幕并深度休眠,上键唤醒。这是软件休眠关机,物�电�键�真正断电。系统�作结�当�对�。 + +示例:“�天下�三点�醒我�水�“工作日上��点�醒我开会�“�分钟��醒我休��“�消编� 2 的�醒�“把当�工牌的��改�产�设计师�“返回首页�“关机�。 + +验�入�:`test_badge_alarms.c`(定义 `BADGE_ALARM_SERVICE_TEST` �加�久�务故障测试)�`test_profile_text.c`�`test_profile_edit.c`�`test_profile_store.c`�`test_xiaozhi_tools.c`。`BADGE_ASSISTANT_DEVICE_PROBE` 仅用于�架,会添加测试�醒并用定时器从深�唤醒;正�版必须关闭。工具目录�使用�读 JSON 与预分���缓冲,主机验�目录低于 7 KiB�构建分�低于 1 KiB。 + +## 历�行为:2.5.x + +沿用现有 MCP 连接,�供状���程��音效�二维��工牌�亮度��智音�� +电�和定时�醒共�四个工具。�用已有 Wi-Fi�资料�音��资�设置。 +语音识别和工具选择�需连接已�置的�智�务,�务端需支�设备 MCP 工具。 + +| 工具 | �数与行为 | +| --- | --- | +| `self.get_device_status` | 音��真实 Wi-Fi 状��亮度�已�置工牌编��当�工牌�二维�状�和上次动作结果(0 等待/�始,1 �功,-1 失败)。 | +| `self.apps.open` | `app` 为 `zen-muyu`(木鱼)�`leo-radio`(城市电�)或 `voice-keychain`(音效钥匙扣)。电��求 Wi-Fi 已连接。 | +| `self.audio.search` | `query` 按标题或分类匹�,`offset` �选;�页最多六�,返回真实音效编�。关键�为空�分页�览。 | +| `self.audio.play` | `clip_id` 使用�索结果中的编�,打开对应分类并播放指定音效。 | +| `self.badge.show_qr` | 显示当�工牌已上传的二维�,未上传时返回工具错误。 | +| `self.badge.switch` | `number` 为 1~5,仅�许已�置工牌,切��回首页。 | +| `self.display.set_brightness` | `percent` 为 20/40/60/80/100,沿用系统设置�存,对�继续。 | + +所有�数严格校验;未知工具�无效�数�产生动作。资�缺失�已有动作等待处�时 +返回工具错误。音效先�索�播放,使用真实资�编�,�猜测编�。 + +切�页�的指令先返回接收�应,传输层接��应���交给主任务,���止�智时 +丢失回�;此类�应�冒充执行完�。音��亮度��醒设置/�消属于原地�作, +会立�唤醒主任务,等待最多两秒�返回 execution=completed/pending/failed。 +原地�作的回�若��失败,�作�能已�生效,�试�应查询状�;切�指令的 +��失败则�消尚未�交的指令。断线和退出会�消�未执行的指令。 +命令槽和导航快照由临界区�护,语音任务�直接读�导航对象或访问 LVGL。 + +导航任务�新检查资料状�,�止�智,等待麦克风�编解�器�网络资�释放��删除 +页���动目标�程�。�止失败时�留现有页�;目标�动失败时�试返回首页。 +执行阶段失败会记录日志,�智会�结��无法�语音报告失败。亮度调整�留对�; +切�页�或�程�会结�对�,进入目标程���支���继续�语音指令。 + +## 验� + +`tests/test_xiaozhi_tools.c` 使用项目中的 cJSON 和生�音效目录,覆盖工具�现� +�数校验�错误�应�分页�索�延迟�交/��失败/过期指令,以�全部 726 段音效选择。 +以 `BADGE_CONTROL_HOST_TEST` 编译,链接 `xiaozhi_tools.c`�`badge_control.c`� +`voice_navigation.c`�生�的 `voice_catalog.c` 和 ESP-IDF 中的 `cJSON.c`。 + +`BADGE_CONTROL_DEVICE_PROBE=ON` �用于临时�架固件,由导航任务驱动工具调用, +检查��程�生命周期�短音效�已有二维��工牌切��亮度�存��和�消指令。 +测试���原身份牌和亮度。正�固件必须关闭该选项。此项本地测试�验�云端语义 +识别,�需使用真实�智�务实际说�验�。 + +## 2.5.0:音��姓��电�与定时�醒 + +- `self.xiaozhi.set_volume(percent)`:0~100,0 为�音。�改�智回�音�, + 使用原有延迟�存和退出写入机制;电��木鱼�音效的设置��独立。 + 状��应标记 `volume_scope=xiaozhi`,�应把该工具解释为全局音�。 +- `self.get_device_status` 增加 `battery_percent`(-1 表示��用)� + `active_badge_name` 和 `badge_names`。电�为最近一次采样,清醒时约� 30 秒更新,��时暂�采样。 +- `self.badge.switch` 接� `number` 或 `name`,�能选一�。 + 姓�必须与已�存资料完全一致;��时�求用户指定编�。执行��新校验姓�, + 防止�置页修改资料�切�到错误身份。 +- `self.radio.search(query, offset)` 分页�索现有精选电�,�页最多六�; + `self.radio.play(station_id)` 使用�索返回的真实编�。直接�动对应频�, + 跳过首次城市定�等待。在线城市目录中的�外频�暂�在语音�索范围。 +- `self.reminder.set(seconds, text)` 设置一� 1~86400 秒倒计时,文字最多 32 字� + 96 UTF-8 字节;已有�醒时拒�覆盖。`self.reminder.get` 查询剩余时间, + `self.reminder.cancel` �消。��留当�对�。 + +�醒由主任务�有,基于�调时钟,退出�智�切��程��轻�眠期间继续计时。 +到期�唤醒�幕,先�止当��程�并等待音频资�释放,�回首页显示主题色�醒层。 +若应用�止失败则�试,�让�示音与�在�行的音频并�。倒计时检查约� 250 毫秒 +执行一次,��时约�秒一次;�止网络/音频任务�能增加几秒延迟,因此�用于精确计时。 + +�示音固定使用 90% 音�,三声��止,����共享芯片原音�并休眠音频; +�改任何程�的音��好。OK �关闭�醒并回到首页,�会自动��被中断的播放。 +�示音任务分�失败时�显示文字。�醒��存在本次开机的内存中,��/断电�清除, +暂�支��日��或具体钟点闹钟。文字使用现有 GB2312 字体,生僻字与表情�能无法显示。 + +### 新增验� + +`tests/test_badge_reminder.c` 覆盖边界秒数�到期时刻���拒���消和长�行时间。 +`tests/test_xiaozhi_tools.c` 增加姓����音�范围�真实电��索�断网拒�� +�醒生命周期���失败�执行测试。该测试�外链接 `radio_tool_catalog.cc`� +`radio_presets.cc`,C 和 C++ 分别编译�链接。 + +�架探针增加音��存��新进入�姓�切��指定电��离开�智��醒� +�消和��唤醒;��原工牌�亮度��智音��电�设置。 +正�构建必须关闭探针;真实语音�解与外部电��用性�需现场确认。 + +## 2.5.1:工具进度字幕与完�回执 + +实机云端测试�获到�务端下� `% self.xiaozhi.set_volume...` 作为 TTS ��事件, +���下�正常�天回�。�者是工具调用进度标记,旧版直接进入了字幕,并� C 格�串 +忘记替��数。字幕入�现在仅过滤完整的 `% self.方法�...` 标记(也接��略�), +�删除普通百分比�正文中的方法�或对 `%s` 的解释。语音和最终回���原有路径。 + +工具说明明确:指定电�或音效的 play 已包�打开应用,�应先调用 apps.open; +组�任务应先完�设置,最��切�应用。工牌编�与姓�的互斥约�也写入 schema。 +原地�作的完�回执解决紧接�查询读到旧值�连续�交第二�收到忙碌错误的常�时�。 +等待超时�返回 pending,�能当作完�;切�应用�会结�会�。 + +`tests/test_xiaozhi.c` 覆盖进度标记和正常百分比/代�文本的区别;工具测试覆盖唤醒� +完���消�失败和过期回执。`BADGE_TOOL_CLOUD_PROBE` 为临时云端诊断开关, +使用固定��音频,�读�真实麦克风。诊断原文仅�存在本地�有日志,生产必须关闭。 +探针音频头 cloud_probe_pcm.h 放在构建目录,�属于�布资�,也�会嵌入正�固件。 + +## 2.6.3:�机音效与�次唤醒 + +`self.audio.play_random(query)` 直接从匹�的音效中�机选择并播放,`query` ��略或留空以�索全部,也��定分类�标题关键�。�需�先�索或打开应用。候选多于一�时排除上一次�机选择;仅一�时�许��;无匹�返回错误,�跳转页�。返回真实编��标题和分类,沿用确认����执行的�程。指定编�播放����。 + +音效库�始化完�且没有排队或正在播放的音效时,导航任务�止播放器�释放解�器和任务栈,�留列表界�,�����唤醒。按键�作时先�止唤醒检测,���播放器。排队请求�样�用音频,旧请求完��能清除新请求的�用。播放结�或手动�止���次说“你好�智�;识别�退出音效库进入�智,关闭对�返回原�的首页或�程�列表。播放期间�暂�唤醒,木鱼与电���原�的互斥策略。 + +2.6.3 验�:主机测试覆盖�机结果范围�分类过滤�多候选�连续���未知�数�空结果拒�,以��消旧请求�能释放新音效的�用。硬件探针使用真实麦克风采样�模拟唤醒触�,验�音效列表空闲���播放期间互斥�手动�止����三次自然播完��次唤醒;五次���的空闲堆内存与基线相�。真实说�的唤醒率与云端对�机指令的工具选择�需实际交�验�。 + +## 直接切�目标页�(2.6.6) + +语音打开�程��播放指定或�机音效�播放指定电��显示二维��切�工牌时,�� +中途绘制首页。导航任务�止并等待音频任务退出时�留�智画�,��在�一次 LVGL +�内销�旧页��创建并绘制目标页�。切�工牌�绘制一次所选工牌。音��亮度� +�醒等原地�作��留当�对�。 + +目标页�准备失败时,�新�动现有对�的��任务;已创建�程�页�但�动失败时, +�止该�程�并��首页。等待任务退出的�作�在 LVGL �外执行。 + +�选控制测试会统计��指令的首页绘制次数�检查所绘制工牌编�,并模拟准备失败� +�动失败。�行固件必须关闭测试。测试为了检查���醒会临时关闭��唤醒,结�时 +��原设置。 + +实机已通过三个�程�入��指定/�机音效�二维��指定电��按编�/姓�切�工牌。 +�功�作的首页绘制计数�为零;切�工牌则�绘制一次目标工牌。模拟准备失败能�� +对�,模拟程��动失败能��首页。原有音��存���失败�消��醒���唤醒和 +设置��也通过。测试使用真实 UI�音频生命周期�设备工具分�,关闭云端连接;未 +使用相机测�物��幕的�帧时�。 + +## 2.6.20:赛�摇� + +`self.apps.open` 新增 `cyber-yao`,打开手动起�页�。 +`self.yao.cast` 和 `self.yao.get` 直接返回结构化结果,�切�页�或中断对�。 +�数���调用�护范围�解读交接和�存方��[赛�摇�](cyber-yao.zh_CN.md)。 diff --git a/docs/auto-screen.md b/docs/auto-screen.md new file mode 100644 index 0000000..56f14a3 --- /dev/null +++ b/docs/auto-screen.md @@ -0,0 +1,46 @@ +[简体中文](auto-screen.zh_CN.md) · **English** + +# Automatic screen sleep + +From the home menu open Settings → Automatic screen sleep. Choose Always on, +30 seconds, 1 minute (default), 2 minutes or 5 minutes with Up/Down. OK saves +the selection across restarts. Long OK opens the usual return chooser; leaving +without confirming preserves the previous choice. This preference applies to +all pages, independently of whether XiaoZhi background wake is enabled. + +Listening, thinking and speaking keep the screen awake. Waiting for a local +wake word does not. A recognized wake word opens XiaoZhi and wakes the display. +When the screen is asleep, the first physical button gesture only wakes it; +the next gesture operates the current page. Reminders also wake the screen. +Screen sleep does not pause radio or soundboard playback. + +The shell alone controls the panel, backlight, LVGL and display performance +leases. The exclusive audio worker holds separate performance leases, suspends +the codec and both I2S channels after 15 silent seconds, and restores performance +and audio before playback. Leaving an audio app suspends audio immediately. +Being on a mini-app page no longer blocks light sleep by itself. Boot also +suspends the codec before the first playback. + +Version 2.6.26 uses MAX modem sleep in silent screen-off standby while retaining +the Wi-Fi connection. Playback and conversation restore responsive networking. +Enabled voice wake continues sampling and detection, retaining its performance +requirements; it cannot achieve microphone-off standby power. Automatic wooden +fish strikes, radio and sound playback continue with the screen off. Silent +screen-off wooden fish and soundboard tasks poll less and skip unused UI work. + +The read-only USB `info` response exposes screen/audio sleep and application +performance leases in `power`, plus the configured Wi-Fi mode in +`wifi.powerSave`. Reading it does not wake the display. This is not a current +measurement. USB connection protection prevents automatic light sleep while a +computer remains connected, preserving serial configuration. Measure battery +standby current with the computer disconnected; an enabled setup hotspot also +has different power requirements from station-only standby. + +The saved choice uses `screen_timeout` in `cyber_badge_v1` NVS. Missing or invalid +values fall back to one minute without clearing existing data. Saving failure +retains the prior active preference and leaves the selection page open. + +Validation: `tests/test_badge_power.c` covers choices and deadline arithmetic; +`tests/test_badge_power_runtime.c` exercises the real power coordinator with +stubbed time/display/audio (including wake retry, owner handoff and microphone +restore); `tests/test_badge_navigation.c` covers selection, save and cancel. diff --git a/docs/auto-screen.zh_CN.md b/docs/auto-screen.zh_CN.md new file mode 100644 index 0000000..97d425b --- /dev/null +++ b/docs/auto-screen.zh_CN.md @@ -0,0 +1,35 @@ +**简体中文** · [English](auto-screen.md) + +# 自动�� + +从首页��进入“设置 → 自动���,通过上下键选择常亮�30 秒�1 分钟(默认)� +2 分钟或 5 分钟,按 OK 确认�存,����然有效。长按 OK 打开返回选项, +未确认便离开时�留原设置。该设置对所有页�生效,��赖是�开��智��唤醒。 + +�智正在����考�回�时��亮�;��等待唤醒��阻止��,识别到唤醒�� +亮�并进入�智。���的第一次实体按键�作仅用于唤醒,下一次�作�作用于页�。 +�醒到期也会亮�。���会暂�电�或音效库的播放。 + +�有系统任务负责�幕�背光�LVGL 的暂�与��以�显示性能�。音频工作任务独� +管�音频芯片,并�有独立的播放性能�;暂�或无声 15 秒�关闭收�通�并释放�, +�次播放先��性能和音频硬件。退出音频应用立�关闭通�。�留在�程�页�本身 +��阻止轻�眠,开机�从未播放也会先让音频芯片进入休眠。 + +2.6.26 将普通��且无音频工作时的 Wi-Fi 改为 MAX modem sleep,��网络连接。 +播放或对����应优先策略。��语音唤醒开�时��续采集和检测,并�留所需 +性能,�能�时获得关闭麦克风时的低耗电;木鱼自动敲击�电�播放�音效播放也�会 +因为熄�被中断。木鱼和音效库�默��时�少任务轮询,并跳过无用的界�刷新。 + +�读 USB `info` �应中的 `power` �供�幕�音频休眠和应用性能�状�, +`wifi.powerSave` �供实际�置的 Wi-Fi �电模�;查询�会亮�。该快照�代表电�测�。 +当� USB 连接�护会在电脑�� USB 连接时阻止自动轻�眠,以��串��置�用; +最终续航和��电�应在断开电脑 USB �测�。热点开�期间的功耗也�能按普通 +Wi-Fi 客户端待机估算。 + +选择�存在 `cyber_badge_v1` NVS 的 `screen_timeout` 键中。缺失或异常值回退为 +1 分钟,�清空现有数�。�存失败时�留原有生效设置,并�留在选择页。 + +验�:`tests/test_badge_power.c` 覆盖档�和计时边界; +`tests/test_badge_power_runtime.c` 使用模拟时间��幕和音频测试真实电��调代�, +覆盖唤醒�试�任务交接与麦克风��;`tests/test_badge_navigation.c` 覆盖选择� +确认和�消。 diff --git a/docs/contribution/doc-conventions.md b/docs/contribution/doc-conventions.md index a333646..c8b63dd 100644 --- a/docs/contribution/doc-conventions.md +++ b/docs/contribution/doc-conventions.md @@ -15,21 +15,6 @@ These rules apply equally to human contributors and AI agents. Documentation is - Code, commands, paths, URLs, identifiers, and data fields remain unchanged between translations where appropriate. - The repository check rejects an unpaired document, a missing language switch, or CJK prose in an English default file. -### GitHub community-document links - -GitHub also renders `.github/CONTRIBUTING`, `CODE_OF_CONDUCT`, `SECURITY`, and -`SUPPORT` documents outside their file view. In both language versions, put a -Markdown language switch on the first nonempty line, outside HTML blocks, with -a repository-root path, for example -`[简体中文](/.github/CODE_OF_CONDUCT.zh_CN.md)`, and use repository-root paths for -other internal links, such as `/docs/README.md`. Bare filenames in HTML language -switches can lose the `.github/` directory in the repository overview. Do not -hardcode the upstream owner or `main` into these document links: root-relative -links keep the current repository and branch. See GitHub's -[relative-link rules](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#relative-links). -The repository gate checks these community-document links; after deployment, -also click both language directions from the overview and individual file views. - ## Vendored third-party documentation Preserve upstream documentation when copying a third-party component into the diff --git a/docs/contribution/doc-conventions.zh_CN.md b/docs/contribution/doc-conventions.zh_CN.md index 8546488..1fd7d8d 100644 --- a/docs/contribution/doc-conventions.zh_CN.md +++ b/docs/contribution/doc-conventions.zh_CN.md @@ -14,18 +14,6 @@ - 新增�移动或删除任一语言文件时,必须�步处��对文件和所有索引。 - `tools/check_repo.py` 与 CI 会拒�缺少�对文件�缺少切�链接或英文默认页包�中文正文的�更。 -### GitHub 社区文档链接 - -GitHub 还会在文件页�之外展示 `.github/` 中的 `CONTRIBUTING`�`CODE_OF_CONDUCT`� -`SECURITY` 和 `SUPPORT` 文档。两�语言的切��须放在第一个�空行�HTML �之外, -使用仓库根路径的 Markdown 链接,例如 `[简体中文](/.github/CODE_OF_CONDUCT.zh_CN.md)`;其他仓库内链接也使用 -根路径,例如 `/docs/README.md`。HTML 语言切�中的裸文件�在仓库首页�能丢失 -`.github/` 目录。��把上游仓库所有者或 `main` 写死在这些文档链接中,根相对 -链接会�留当�仓库与分支。�� GitHub 的 -[相对链接规则](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#relative-links)。 -仓库门�会检查这些社区文档链接;上线�还需从首页和�文件页�实际点击中英文 -��切�。 - ## �仓库引入的第三方文档 把第三方组件�制到仓库时,应�留其上游原始文档。如需��其中 Markdown diff --git a/docs/cyber-yao.md b/docs/cyber-yao.md new file mode 100644 index 0000000..5453803 --- /dev/null +++ b/docs/cyber-yao.md @@ -0,0 +1,82 @@ +

简体中文 · English

+ +# Cyber Yao and XiaoZhi interpretation + +Version 2.6.20 adds a themed six-line divination mini-app and two MCP tools. +The core derives from [CyberYAO](https://github.com/XadillaX/CyberYAO/tree/3c4780feea04737e6e59b6e1849e591710e6656c). +Its MIT notice is retained in [LICENSE](../assets/cyberyao/LICENSE). +No upstream fonts, pictures, audio, recovery firmware, network manager or standby page are included. + +## Use + +Open the mini-app from the mini-app list. Think of a question, then press OK +six times, one three-coin cast per press. Lines grow from bottom to top. +The completed page shows the original and changed hexagrams, marks moving +lines. From 2.6.21, up/down browse each hexagram’s complete judgement, all six line passages and the special Qian/Kun texts, retaining primary/secondary reading marks. Unchanged hexagrams are shown only once. Scrolling stops at both ends. +Hold Down to start over. Hold OK opens the standard previous-page/home menu. + +On a completed result, press OK to request XiaoZhi interpretation. A working +system Wi-Fi connection and an activated XiaoZhi service are required. The conversation retains a complete snapshot of the selected result, returned by `self.yao.get`: ID, original/changed hexagrams, six lines, moving lines, reading rule, complete judgements, all six line passages for each hexagram and Qian/Kun special texts. Both `name` fields and reading references (`hexagram_name`) use full names such as Water over Fire (Ji Ji), Water over Mountain (Jian), and Qian as Heaven; `short_name` preserves the source abbreviation and `number` remains the hexagram index. From 2.6.27, the complete source passages remain available as context. By default, the model is asked to give the conclusion, trend, cautions and practical suggestions in plain language, informed by the primary reading and moving lines, without reciting or translating every passage. Original text or line-by-line explanation is provided only when explicitly requested; unchanged hexagrams are not interpreted twice. This policy applies to page handoff, voice casting and result queries; the cloud model generates the actual wording. After tool discovery, a fixed synthetic spoken request asks XiaoZhi to query and interpret the retained result through the normal manual listen/audio/stop protocol. The 4.7-second Opus clip occupies about 5.3 KB, is uploaded directly, never played locally, and does not record the microphone. Cloud detect rejects long text and did not answer short triggers in device tests, so it is not used for this handoff. The caption shows both hexagram names. The app does not recast or open a transient home page. The initial interpretation turn rejects cast calls in firmware. Use previous-page in XiaoZhi to return to the retained result. A missing +question is discussed in the subsequent conversation. Source passages and +AI interpretation are distinct; the application does not generate predictions +from a separate prewritten commentary database. + +## Question, time and automatic location + +When neither the record nor the conversation identifies a question, XiaoZhi asks for the specific matter and necessary background, waits for an answer, and interprets the same result without recasting or inventing a question. + +From 2.6.29, no region or longitude entry is required. Obtaining a Wi-Fi IP without a valid cache marks a lookup pending. App entry reuses region and longitude obtained within the past hour and leaves an active request running. With a valid clock, awake screen, idle audio hardware and enough memory, the worker queries ipwho.is and falls back to ip-api.com for an approximate city and longitude. Playback or screen sleep defers it; background wake-word listening does not. Failures retry every 15 seconds. Reconnects and network changes reuse a still-valid cache. Casting never waits for location. + +Region and longitude are cached in RAM for one monotonic hour after a successful lookup; rebooting clears them. Clock adjustments do not change this lifetime. Old manual settings are ignored and no flash writes occur. Time values are never cached: the system clock keeps running, and each cast calculates solar time from its actual UTC timestamp, longitude and equation of time. Expiry queues a refresh when resources permit. Timeout, service failure, missing fields, task creation failure or insufficient memory never blocks casting. Without a location, interpretation uses the existing system time without apparent solar correction and does not ask for manual entry. The casting page shows queued, fetching, retrying, calibrated or waiting-for-Wi-Fi state; the configuration page mirrors it. + +Manual casts capture `cast_time` at the sixth throw; voice casts capture it on completion. The snapshot includes UTC, explicitly labeled Beijing time (UTC+8), and any available approximate region, longitude, apparent solar time and equation of time. If a manual cast finishes while lookup is still running, that record accepts the location when it arrives and recomputes solar time from the original cast timestamp; handoff to XiaoZhi checks once more. `current_time` separately reports the query instant. + +The [NOAA approximate solar equations](https://gml.noaa.gov/grad/solcalc/solareqns.PDF) compute apparent solar time from UTC plus four minutes per longitude degree plus the equation of time, handling date rollover and leap years. The result is local solar wall time, not a UTC timestamp. System clocks, reminders and header time remain unchanged. No sexagenary calendar or Na Jia chart engine is added; interpretation still uses source judgements, line passages and moving-line rules. + +An invalid clock produces `clock_valid=false`; an unavailable location produces `location_set=false`. Invalid clocks must not lead to invented time-dependent claims, and missing locations do not block interpretation. Location is marked `network_ip_approx`, never precise positioning. The lookup service receives the device public IP. Source texts, question, time and region are sent to the configured XiaoZhi service as context; the cloud model generates the final response. + +## Tools and storage + +- `self.yao.cast(request_id, question?)`: performs all six casts in one call, + returning structured data without leaving the conversation. Identifiers + accept 1–48 ASCII letters, digits, underscores or hyphens. Questions accept + at most 96 Unicode characters / 384 UTF-8 bytes. +- `self.yao.get(result_id?)`: retrieves a retained result without drawing + randomness. Omit the ID for the latest result. + +The most recent four completed records are held in RAM across page changes +and AI reconnects, and are lost on reboot. Repeating an identifier still in +this cache with the same question returns the exact saved result. Reusing it +with a different question fails. Replay protection is limited to these four +records; it is not durable or unbounded. Use get for follow-up questions and +never automatically recast when a result is unavailable. + +Manual and voice casts share one core and record store. The navigation task +accesses it while the mini-app is active; the joined/stopped AI lifecycle +transfers ownership to the voice worker. LVGL callbacks never access the store. +Results contain bottom-to-top line values, moving line numbers, original and +changed hexagrams, guaci, and one or two prioritized readings. Rules cover +zero through six moving lines, including Qian/Kun special passages. + +## Resource and network behavior + +The app uses shared theme, header, footer and caption glyphs. It has no audio +worker, animation timer, independent Wi-Fi credentials or dedicated partition. +Shared RF preparation can start the existing station without connecting to a +network, scanning, opening an AP, stopping or deinitializing Wi-Fi. Random +draws fail until RF is ready; there is no seeded pseudo-random fallback. +XiaoZhi remains online for interpretation and subsequent questions. + +## Validation + +`tests/test_yao.c` checks all 4096 line combinations, all 64 hexagrams, +reading priorities, coin probabilities, replay, missing entropy, invalid +arguments, result retention and prompt construction. `test_xiaozhi_tools.c` +also checks discovery and zero-navigation-ticket tool responses. Run both +with the core, text table, service and cJSON; define `BADGE_CONTROL_HOST_TEST` +to inject deterministic entropy. UI rendering and actual cloud interpretation +must be reported separately from those host checks. + +The result reader starts with the true solar time captured when the sixth line was cast (approximate IP location), followed by Beijing time and the complete texts. UP/DOWN scroll through it. Missing location or an unsynchronized clock is shown explicitly; reopening a result never substitutes the current time or location. The configuration page displays the live time separately. + +Returning from XiaoZhi reuses a valid longitude cache. Without one, the navigation task releases the parked AI connection to make RAM available for geolocation rather than leaving it queued behind that connection. Current time, historic cast time and location cache lifetime remain independent. diff --git a/docs/cyber-yao.zh_CN.md b/docs/cyber-yao.zh_CN.md new file mode 100644 index 0000000..0528967 --- /dev/null +++ b/docs/cyber-yao.zh_CN.md @@ -0,0 +1,78 @@ +

简体中文 · English

+ +# 赛�摇�与�智解读 + +2.6.20 增加适�工牌主题的六爻�程�和两个 MCP 方法。 +核心�自 [CyberYAO](https://github.com/XadillaX/CyberYAO/tree/3c4780feea04737e6e59b6e1849e591710e6656c), +�留其 [MIT 许�](../assets/cyberyao/LICENSE)。未引入上游字体�图片�音频� +Recovery 固件�独立网络管�或待机页�。 + +## �作 + +从�程�列表打开「赛�摇��,心中想好所问,按六次 OK,�次投掷三枚铜钱, +六爻自下而上生�。完��显示本��之�并标记动爻。2.6.21 起支�滚动�览本�和之��自的完整�辞�六�爻辞,以�乾�的用��用六,�留主读��读标记;无动爻时���显示�一�。 +上下键滚动阅读;长按下键�新开始;长按 OK 打开统一的返回上一页�首页��。 + +在结果页按 OK,请�智解读。需�系统 Wi-Fi 已连接��智�务已激活。 +进入对�时�留本次结果的完整快照,由 `self.yao.get` 查询返回, +包括结果编��本��之��六爻�动爻�主读规则以�两��自完整的�辞�六�爻辞和特殊用辞。 +本��之�的 `name` 和选读引用的 `hexagram_name` 使用完整��(例如“水�既济�“水山蹇�“乾为天�);`short_name` 仅�留原数�简称,`number` 为��。 +从 2.6.27 起,完整原文仅作解读��,默认直接用白�给出结论�趋势�注�事项和建议,结�主读和动爻综�解释,�先朗读原文或�爻翻译。�有用户明确�求原文或�爻详解时�展开;无动爻���解读。此规则�时用于页�解读和语音起��查询,实际措辞由云端模型生�。 +方法�现�功�,通过正常语音输入通���固定��语音“请查询刚�摇出的�象,并根�原文解读�。 +这段约 4.7 秒�约 5.3 KB 的 Opus 音频直接上传,�在本地播放,也�录制麦克风; +使用 manual 模�并在��完�� stop,�智通过查询方法读�原记录。 +云端的 `listen/detect` �接�长文本,短触�文本实测也�回�,因此�使用该通�传递请求。 +界��示显示本次本�和之�的�称。 +固件在首次解读轮次拒��新起�的方法调用,也��过首页。�智中选择返回上一页,会回到�留的结果。 +没有说明问题时,�智会在�续对�中询问。原文与 AI 解读分开; +本程�没有�一个预先编写的个性化批文库。 + +## 所问事项�时间与自动定� + +若结果和对�中�没有明确的所问事项,�智先询问具体事情和必�背景,等待补充��解读,�自行�定问题。补充事项沿用当��象,��新起�。 + +从 2.6.29 起��手填地区或�度。Wi-Fi 获得 IP 且没有有效缓存时标记定�任务;进入起�程��用一�时内�功获�的地区和�度,��消正在执行的请求。网络任务在完�系统校时��幕点亮�无音频程��用且内存�许时查询公网 IP 的近似城市和�度,先用 ipwho.is,失败�用 ip-api.com。正在播放或��时延�;��语音唤醒监���阻止定�,定�也�唤醒�幕。失败�� 15 秒自动�试;有效缓存期间断线�连或�网���定�。定�与起�互�等待。 + +地区和�度从获��功开始在内存中缓存一�时,使用��校时影�的�调计时;��失效,�读�旧版手填�置,也�写入闪存。缓存�包括时间值:系统时钟�续走时,�次��根�当时 UTC��度�当天�时差�新计算真太阳时。缓存过期�在资��许时自动刷新。超时�接�异常�字段缺失�任务创建失败或内存�足时�阻塞起�,没有�用�置就用已有系统时间��校准真太阳时,��求补填地区。起�页�续显示准备定��定�中�等待�试�已校准或等待 Wi-Fi;�置页也显示�一状�。 + +手动起�在第六次投掷完�时�存 `cast_time`,语音起�在��时�存;包括 UTC�北京时间(明确标注 UTC+8)�当时�用的近似地区��度�真太阳时和�时差。若手动��时定�尚未返回,页�会在定��功�为这�结果补入�置,但�使用原��时间计算;交给�智�还会�检查一次。`current_time` ��供查询时刻,�代替起�时刻。 + +真太阳时使用 [NOAA 天文近似公�](https://gml.noaa.gov/grad/solcalc/solareqns.PDF):UTC 加�度�度 4 分钟,�加当天�时差,处�跨日与闰年。结果是当地太阳时,�是 UTC 时间戳;�会更改系统时钟��醒或顶部时间。未增加干支历法或纳甲排盘,�以原项目的�辞�爻辞�动爻规则解读。 + +设备时间��信时返回 `clock_valid=false`,�置��用时返回 `location_set=false`;未校时�编造时间相关推断,未定��阻止解读。网络�置标记 `network_ip_approx`,�能当�精确定�。定��务收到设备公网 IP;原文�事项与时间地区��给当��智�务,最终回�由云端模型生�。 + +## 方法与�存 + +- `self.yao.cast(request_id, question?)`:一次完�六爻,直接返回结构化结果, + ��对�。请求标识�许 1~48 个英文字��数字�下划线或短横线; + 所问最多 96 个 Unicode 字符�384 个 UTF-8 字节。 +- `self.yao.get(result_id?)`:查询�留的结果,�生��机数;�传编��最近一�。 + +内存�留最近四次完整结果,切�页���智�连���查询,��清空。 +缓存内相�请求标识和问题��调用,返回�一结果;�一标识����问题报错。 +��调用�护�覆盖这四�缓存,�是无�历�或�久化去�。 +追问使用查询方法,找�到结果时�应自动�新起�。 + +手动和语音起�共用核心逻辑和记录。�程�活跃时由导航任务访问, +页�切�完��由�智工作任务访问;LVGL 回调�访问记录。 +返回内容包括自下而上的六爻数值�动爻编��本��之��完整�辞和六�爻辞(`yaoci` 数组),以�一至两段主次读原文;乾�附加 `special` 用辞。 +规则涵盖零至六个动爻以�乾�用��用六。 + +## 资�与网络 + +�用主题�顶部�底部�示和字幕字体,没有音频任务�动画定时器�独立 Wi-Fi +凭�或专用分区。通过已有网络任务准备射频,�在�连接网络的情况下�动已有 +STA 模�,�扫���打开热点���止或释放 Wi-Fi。 +�机�就绪�会报错,�使用伪�机回退。�智解读�追问需��网。 + +## 验� + +`tests/test_yao.c` 覆盖全部 4096 �六爻组��64 ��选读优先级�铜钱概率� +��调用��机���用�无效�数�结果�留和�示�构建。 +`test_xiaozhi_tools.c` 还检查方法�现���交导航动作的返回路径。 +链接核心�原文数���务与 cJSON,以 `BADGE_CONTROL_HOST_TEST` 注入确定性�机�。 +界�渲染和真实云端解读需�与这些主机检查分开报告。 + +页�标题下方�续显示自动定�与校时状�。结果正文顶部显示第六爻��时间对应的真太阳时(网络定�近似值),下方为北京时间�完整�爻辞,上下键�滚动�览。定�缺失或起�时未校时会明确�示;一�时内�新进入�会�新定�,已有��时间�会改�。网页�置页�行显示实时校准时间。 + +从�智返回时,有效�度缓存直接�用;若没有有效缓存,则释放�智�留的空闲连接,为定�请求腾出内存,��一直�留在准备状�。当�时间�历�起�时间和定�缓存有效期分别处�。 diff --git a/docs/development/README.md b/docs/development/README.md index 49295fb..4869392 100644 --- a/docs/development/README.md +++ b/docs/development/README.md @@ -9,16 +9,13 @@ This directory contains AI Passport engineering rules and reusable workflows, gr ## AI workflow - [ai-guide.md](ai-guide.md): AI-assisted development workflow. -- [Core AI skills](../../skills/README.md): development, setup, build, device testing, and diagnosis; installation and usage examples. ## Engineering - [environment-setup.md](engineering/environment-setup.md): clean-machine bootstrap for AI agents, including international and mainland China download routes. - [build-and-test.md](engineering/build-and-test.md): ESP-IDF build and validation. - [firmware-layout.md](engineering/firmware-layout.md): default and user-defined partition layouts and merged-artifact validation. -- [coding-conventions.md](engineering/coding-conventions.md): source-code and resource conventions, including Chinese font integration, blank/boxed text troubleshooting, and display acceptance. -- [lvgl-chinese-fonts.md](engineering/lvgl-chinese-fonts.md): step-by-step CJK configuration, font generation/linking, fallback examples, glyph checks, and troubleshooting. -- [wifi-provisioning.md](engineering/wifi-provisioning.md): Bluetooth-based Wi-Fi setup using the BLUFI reference branch, the companion mini program, and integration checks. +- [coding-conventions.md](engineering/coding-conventions.md): source-code and resource conventions. ## CI diff --git a/docs/development/README.zh_CN.md b/docs/development/README.zh_CN.md index e92606b..7f820c6 100644 --- a/docs/development/README.zh_CN.md +++ b/docs/development/README.zh_CN.md @@ -18,16 +18,13 @@ ## AI 工作� - [ai-guide.zh_CN.md](ai-guide.zh_CN.md):AI 开�工作�(�� AI 编程助手:上下文建立�需求拆解�BSP 边界�验收交付格�)。 -- [核心 AI 技能](../../skills/README.zh_CN.md):开��环境准备�构建�真机测试�诊断,包�安装和使用示例。 ## 工程约定(engineering) - [environment-setup.zh_CN.md](engineering/environment-setup.zh_CN.md):AI 在全新机器上的环境引导,包�国际与中国大陆下载线路。 - [build-and-test.zh_CN.md](engineering/build-and-test.zh_CN.md):构建与验�(ESP-IDF 命令�逻辑测试�改动验��求)。 - [firmware-layout.zh_CN.md](engineering/firmware-layout.zh_CN.md):默认/用户自定义分区布局与�并产物验�。 -- [coding-conventions.zh_CN.md](engineering/coding-conventions.zh_CN.md):代�约定(语言风格��用�注释�测试�步�资�约�等),包�中文字体接入�空白/方框排查与显示验收。 -- [lvgl-chinese-fonts.zh_CN.md](engineering/lvgl-chinese-fonts.zh_CN.md):CJK �置�字体生�/链接�fallback 示例�缺字检查和故障排查的分步指�。 -- [wifi-provisioning.zh_CN.md](engineering/wifi-provisioning.zh_CN.md):�考 BLUFI 分支实现�牙 Wi-Fi �网,包��套�程��称�接入检查。 +- [coding-conventions.zh_CN.md](engineering/coding-conventions.zh_CN.md):代�约定(语言风格��用�注释�测试�步�资�约�等)。 ## CI(ci) diff --git a/docs/development/ai-guide.md b/docs/development/ai-guide.md index 44d7529..93a5871 100644 --- a/docs/development/ai-guide.md +++ b/docs/development/ai-guide.md @@ -9,7 +9,7 @@ This guide is for AI coding assistants. `AGENTS.md` is the only mandatory starti ## Establish context 1. Read `AGENTS.md` and follow its task routing. Do not load every README or the entire hardware guide by default. -2. Run `git status --short --branch` and preserve existing changes. Ensure the five required skills are available as specified in [AGENTS.md](../../AGENTS.md#required-ai-skills); the AI chooses and performs any missing installation, rather than handing setup to the user. +2. Run `git status --short --branch` and preserve existing changes. 3. Read affected public headers, implementations, and neighboring code. Do not infer this board's behavior from a generic ESP32-C3 board. 4. Search `origin/demo/*` for a relevant example and reuse only applicable design ideas. 5. Decompose the request into inputs, outputs, state, tasks, persistence, memory budget, and failure behavior before choosing `main` or `components/bsp`. @@ -37,92 +37,27 @@ requirement └─ bsp_pins.h pin and hardware-parameter source of truth ``` -When maintaining the baseline hardware-test demo, a new test page implements the `enter`, `exit`, and `key` interface in `main/demo_.c`, is declared in `main/demo.h`, added to `main/CMakeLists.txt`, and registered in `main.c`. Extend demo-menu initialization and failure degradation for new optional peripherals. This registration pattern is not the required UI structure for derivative applications. +A new page implements the `enter`, `exit`, and `key` interface in `main/demo_.c`, is declared in `main/demo.h`, added to `main/CMakeLists.txt`, and registered in `main.c`. Extend menu initialization and failure degradation for new optional peripherals. Only reusable hardware capabilities belong in the BSP. Document blocking behavior, task context, ownership, failures, and initialization order. Pins and I2C addresses belong only in `bsp_pins.h`. -### Mandatory UI redesign for derivative applications - -Every derivative application must redesign and implement its own screens, -layout, visual presentation, navigation, and button interactions around its -requirements. This is a delivery requirement, not a default theme suggestion. - -- Do not use the baseline `main` test menu, `demo_*.c` test screens, or the existing - `ui_pixel` demo visual shell as the application's UI, including by copying them - into renamed files. Renaming labels, changing colors, hiding test entries, or - adding a feature page to the same test shell does not satisfy this requirement. -- Reuse BSP drivers/APIs, ordinary LVGL widgets, isolated logic, and applicable - lifecycle/concurrency patterns. UI redesign does not require rewriting drivers - or banning a general visual style such as pixel art. -- Before declaring the UI implementation complete, inspect startup and navigation - paths to confirm they use the redesigned application screens, and describe the - new pages and controls in the handoff. An inherited test UI is incomplete work, - even if it builds. Report actual screen rendering as a separate device check. - -The existing test UI may remain when the task is maintenance of the baseline -hardware-test demo itself; that is not derivative application development. This -rule does not require deleting the reference demo from the baseline repository. - ## Runtime invariants - Hold `bsp_lvgl_lock()` whenever non-LVGL context accesses LVGL objects. - Button callbacks dispatch lightweight events only; move audio, storage, networking, and other slow work to worker tasks. - Stop tasks and timers that may access a page before deleting its screen. -- When maintaining the baseline demo, preserve menu `UP`/`DOWN`, `OK` click to enter, and page `OK` long-press to return unless the change explicitly redefines them. Derivative applications define their own controls and navigation under the mandatory UI redesign rule above. -- Only hardware-validation pages remaining in the baseline demo use `ui_pixel_screen_create()` / `ui_pixel_panel_create()` to preserve that demo's presentation; do not carry its test shell into derivative applications. -- By default show the battery level in the top-right corner of a user interface (read via `bsp_battery_soc()`), unless the developer specifies a different placement or explicitly does not want it. Degrade gracefully when the reading is `-1` (unavailable) instead of drawing a number. Avoid overlapping the application's own content; when maintaining the baseline demo, also avoid its cloud decoration (`add_cloud`, around `x≈188, y≈8`). +- Preserve menu `UP`/`DOWN`, `OK` click to enter, and page `OK` long-press to return unless the change explicitly redefines them. +- The `main` menu, `demo_*.c` pages, and `ui_pixel` visuals are a board-capability demonstration, not a production application shell. A newly developed application must redesign and implement its own screens and interaction flow from its product requirements instead of directly shipping or copying the current demo UI. Reuse BSP interfaces and applicable implementation patterns; inherit the demo menu or visual theme only when the developer explicitly requests it. A hardware-validation page that intentionally remains part of the baseline demo should still use `ui_pixel_screen_create()` / `ui_pixel_panel_create()` for consistency. +- By default show the battery level in the top-right corner of a user interface (read via `bsp_battery_soc()`), unless the developer specifies a different placement or explicitly does not want it. Degrade gracefully when the reading is `-1` (unavailable) instead of drawing a number. Place it so it does not overlap the cloud decoration (`add_cloud`, around `x≈188, y≈8`) in the top-right; use the clear sky space rather than covering the cloud. - Budget internal RAM for images, fonts, networking, audio, LVGL, and task stacks; this board has no PSRAM. -- Treat Chinese text as a font-integration task, not just a string translation. Follow the [Chinese font checklist](engineering/coding-conventions.md#chinese-fonts-and-missing-glyphs) when changing text, fonts, sizes, themes, or dynamic content; never hide missing-glyph boxes as a fix. - Isolate testable state machines, protocols, timing, and layout calculations from ESP-IDF/LVGL and cover them with host tests. ## Material placement -When the developer submits a reusable asset through you — an image, font, audio clip, or similar project material — save it under the repository-root [`assets/`](../../assets/README.md) by default so it stays available for development and later reuse. Place it in the matching subdirectory (`assets/images/`, `assets/fonts/`, `assets/music/`) and record the destination, naming, integration method, and source/license in the [`assets/` README](../../assets/README.md). Never mix binary assets with Markdown documentation. Text-only application archives (cover metadata, manual, summary) belong in the repository-relative `docs/reference///`; experience entries belong in `docs/reference//`. Do not put those records in `assets/` or commit cover images into the archive. For reusable assets, deviate from `assets/` only when the developer explicitly directs another location. +When the developer submits a reusable asset through you — an image, font, audio clip, or similar project material — save it under the repository-root [`assets/`](../../assets/README.md) by default so it stays available for development and later reuse. Place it in the matching subdirectory (`assets/images/`, `assets/fonts/`, `assets/music/`) and record the destination, naming, integration method, and source/license in the [`assets/` README](../../assets/README.md). Never mix binary assets with Markdown documentation. Application or experience archive records (cover, manual, summary) belong in `reference//`, not in `assets/`; deviate from `assets/` only when the developer explicitly directs another location. ## Delivery The automated gate is not hardware acceptance. Report `Build`, `Host tests`, `Device tests`, and `Unverified` separately. Use the [hardware guide](../hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.md) for the applicable on-device matrix. -### Offer on-device testing - -After fully implementing each user-requested firmware feature or fix and -running the applicable validation, proactively ask whether to flash the result -to the device for testing. This applies to each completed development iteration, -not just a project release. Do not end the handoff with only a build result or -firmware path. For example: - -> The requested implementation is complete. Would you like me to flash the -> validated firmware to your device and test it now? - -1. When device access is available, perform read-only USB/serial discovery - during handoff. Do not open/reset arbitrary ports or flash a device just - because it is connected. If multiple candidates exist or the target is - uncertain, ask the user to identify the intended device and port. -2. If no device is detected, explicitly prompt: - - > No device was detected. Please turn the device on, then connect it to a - > USB port on your computer using a data-capable USB cable, not a charge-only - > cable. Let me know when it is connected so I can check again. - - Recheck after the user connects it. If this environment cannot access the - user's USB devices, state that limitation instead of claiming no device is - connected; guide the user through local detection/flashing and request the - test results. -3. Before writing, confirm the target device, the exact validated firmware, - and its [flashing/data impact](engineering/firmware-layout.md#flashing-and-stored-data), - then obtain explicit approval for this flash. A connected device or a past - approval for another build is not authorization. Do not make a backup of the - original firmware a prerequisite, and do not assume permission for a - full-chip erase. -4. After approved flashing, verify startup and the requested behavior using - the applicable hardware checklist, with user observations where needed. - Successful flashing alone is not `Device tests: PASS`. If the user declines - or postpones testing, no device is available, or access is unavailable, - report `Device tests: NOT RUN` and list the pending checks in `Unverified`. - -For documentation-only or other tasks that do not change firmware, explain -that on-device testing is not applicable; do not flash unrelated firmware just -to satisfy this workflow. This test invitation does not authorize commits, -pushes, or any of the optional [project-closing actions](release/project-completion.md). - Related documents: [build and test](engineering/build-and-test.md), [coding conventions](engineering/coding-conventions.md), [hardware guide](../hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.md), [documentation index](../README.md), and [root `AGENTS.md`](../../AGENTS.md). diff --git a/docs/development/ai-guide.zh_CN.md b/docs/development/ai-guide.zh_CN.md index 545127f..424221b 100644 --- a/docs/development/ai-guide.zh_CN.md +++ b/docs/development/ai-guide.zh_CN.md @@ -12,7 +12,7 @@ 开始开��,按以下顺�建立上下文: 1. 阅读 `AGENTS.zh_CN.md`,根�其中的任务路由�加载当�修改所需文档;��默认读�全部 README 或完整硬件指�。 -2. 执行 `git status --short --branch`,�留用户已有改动。按 [AGENTS.md](../../AGENTS.zh_CN.md#必需-ai-技能) 确认五个必需技能�用;缺少时由 AI 自行选择方�并完�安装,�把安装准备交给用户。 +2. 执行 `git status --short --branch`,�留用户已有改动。 3. 阅读需求会触�的 `components/bsp/include/*.h` �其实现,�根�芯片或开��的常��置猜测本�行为。 4. 用 `git branch -r --list 'origin/demo/*'` 查找接近需求的示例,��用相关设计,�默认�并整个示例分支。 5. 将需求拆�输入�输出�状��并�任务��久化�内存预算和失败�级,�决定修改 `main` 还是扩展 `components/bsp`。 @@ -42,49 +42,29 @@ Natural-language requirement └─ bsp_pins.h Single source of truth for pins and hardware parameters ``` -维护基线硬件测试 demo�添加测试页�时,创建 `main/demo_.c` 并实现 `enter`�`exit`�`key` 接�,然��步修改: +新增普通页�时,创建 `main/demo_.c` 并实现 `enter`�`exit`�`key` 接�,然��步修改: - `main/demo.h` 中的声明; - `main/CMakeLists.txt` 中的�文件; - `main/main.c` 的 `DEMOS[]` 注册; - 若有新的�选外设,��的�始化状�与失败�级。 -上述注册方�仅用于基线测试 demo,�是二次开�应用必须采用的 UI 结构。 - �有多个应用都会使用的硬件能力�进入 `components/bsp`。BSP API 需�说明阻塞性�线程上下文�内存所有��失败值和�始化顺�;引脚或 I2C 地��能加入 `bsp_pins.h`。 -### 二次开� UI 强制�新设计 - -所有二次开�应用都必须围绕自身需求,�新设计并实现页��布局�视觉呈现� -导航�程和按键交互。这是交付�求,�是默认主题建议。 - -- �止将基线 `main` 测试���`demo_*.c` 测试页�或现有 `ui_pixel` demo - 界�外壳作为应用 UI,也�能�制到改�文件�继续使用。仅改文字��颜色� - ��测试入�,或在原测试外壳上增加功能页,都�算完��新设计。 -- �以�用 BSP 驱动�API�普通 LVGL 控件�独立逻辑,以�适用的生命周期� - 并�模�。�新设计 UI ��求�写驱动,也��止�素风等通用视觉风格。 -- 宣布 UI 实现完��,检查�动与导航路径,确认进入的是�新设计的应用页�, - 并在交付中说明新页�和按键交互。�使编译通过,沿用测试 UI �属于未完�; - 实际�幕显示须�独记录真机验�结果。 - -仅在任务本身是维护基线硬件测试 demo 时,�以�留其测试 UI;这�属于二次 -开�应用。本规则��求从基线仓库删除�考 demo。 - ## 4. �行时��破�的规则(Runtime invariants) - LVGL �是线程安全的;� LVGL 上下文�作 `lv_*` 对象必须�有 `bsp_lvgl_lock()`。 - 按键回调�派�轻�事件;录音�播放�存储和其他慢�作放到工作任务。 - 页�退出时先�止�能访问 UI 的任务或定时器,�删除 screen 并清空对象指针。 -- 维护基线 demo 时,除�任务明确修改交互,�则�留��中 `UP`/`DOWN` 导航�`OK` �击进入�页�中 `OK` 长按返回。二次开�应用按上�的强制 UI �新设计规则,自行定义按键和导航。 -- �有继续留在基线 demo 中的硬件验�页�使用 `ui_pixel_screen_create()` / `ui_pixel_panel_create()` ��该 demo 的视觉一致;�得把测试外壳带入二次开�应用。 -- 默认情况下,在用户界�的�上角显示电�信�(读� `bsp_battery_soc()`),除�开�者指定其他�置或明确�需�。读值为 `-1`(��用)时优雅�级。���挡应用自己的内容;维护基线 demo 时,还需�开白云装饰(`add_cloud`,约 `x≈188, y≈8`)。 +- 全局交互默认是��中 `UP`/`DOWN` 导航�`OK` �击进入�页�中 `OK` 长按返回;改动时�明确说明。 +- 当� `main` ���`demo_*.c` 页�和 `ui_pixel` 视觉仅用于展示与验��级能力,�是��应用界�。新开�应用必须根�产�需求�新设计并实现页�与交互�程,�能直接交付或照�当� demo UI;�以�用 BSP 接�和适用的实现模�,�有开�者明确�求时�沿用 demo ��或视觉主题。若新增页�本身就是继续留在基础 demo 中的硬件验�页,则�应使用 `ui_pixel_screen_create()` / `ui_pixel_panel_create()` ��一致。 +- 默认情况下,在用户界�的**�上角显示电�信�**(读� `bsp_battery_soc()`),除�开�者明确指定其它�置或明确�需�。读值为 `-1`(��用)时优雅�级,而�是画一个数字。�置��开�上角已有的**白云装饰**(`add_cloud`,约 `x≈188, y≈8`),用空闲的�天区,��盖�白云。 - 新图片�字体�网络栈�音频缓存�LVGL buffer 或任务栈都�评估内部 RAM;总空闲堆足够�代表存在足够大的连续内存�。 -- 中文显示属于字体集�任务,��是翻译字符串。修改文案�字体�字��主题或动�内容时,必须执行[中文字体检查清�](engineering/coding-conventions.zh_CN.md#中文字体与缺字排查);�得通过��缺字方框��装修�显示问题。 - �测试的状�机��议�计时和布局计算应与 ESP-IDF/LVGL 分离,优先加入主机逻辑测试。 ## 5. 素�放置(Material placement) -当开�者通过你�交��用素�(图片�字库�音频或类似的工程素�)时,默认�存到仓库根目录 [`assets/`](../../assets/README.zh_CN.md),以便开���续�用。将其放入对应的�目录(`assets/images/`�`assets/fonts/`�`assets/music/`),并在 [`assets/` README](../../assets/README.zh_CN.md) 中记录放置路径�命�规则�集�方�与��/授�。二进制素��得与 Markdown 文档混放。纯文本应用档案(��元数��手册�摘�)放在相对仓库根目录的 `docs/reference///`,�验�目放在 `docs/reference//`。这些记录�放入 `assets/`,也�把��图片�交到档案中。��用素��默认放在 `assets/`,除�开�者明确指定其它�置。 +当开�者通过你�交��用素�(图片�字库�音频或类似的工程素�)时,默认�存到仓库根目录 [`assets/`](../../assets/README.zh_CN.md),以便开���续�用。将其放入对应的�目录(`assets/images/`�`assets/fonts/`�`assets/music/`),并在 [`assets/` README](../../assets/README.zh_CN.md) 中记录放置路径�命�规则�集�方�与��/授�。二进制素��得与 Markdown 文档混放。应用或�验归档记录(���手册�摘�)属于 `reference//`,�放入 `assets/`;除�开�者明确指定其它�置,�则���离 `assets/`。 ## 6. 验收与交付格� @@ -99,39 +79,6 @@ Unverified: �需���仪器或用户确认的事项 上�验收矩阵按修改类型(引脚�LCD�ADC�codec�I2C�DMA 等)� [AI 硬件开�指� §构建与验�](../hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.zh_CN.md#构建与验�),本文档���完整验收清�。真机结果�与"编译通过"分开记录。 -### 主动询问真机测试 - -�次完整实现用户�出的固件功能或修�需求,并执行相应验��,必须主动询问 -用户是�将本次固件刷写到设备中进行测试。该�求适用于�轮完整的开�迭代, -��适用于项目�布;交接时�能�给出编译结果或固件路径。例如: - -> 本次需求已完整实现,是�现在将验�通过的固件刷写到设备中进行测试? - -1. 当�环境具备设备访问能力时,在交接阶段�读检查 USB�串�设备。�能仅因 - 设备已连接就打开或��任�串�,更�能自动烧录。如果存在多个候选设备, - 或�能确定目标,先请用户确认�测试的设备和端�。 -2. 未检测到设备时,明确�示: - - > 暂未检测到设备。请先将设备开机,�使用支�数�传输的数�线(�能是 - > 仅充电线)连接电脑的 USB 接�。连接好�告诉我,我会�新检测。 - - 用户连接��新检测。若当�环境无法访问用户电脑的 USB 设备,应说明访问 - 能力�制,�能声称设备没有连接;改为指导用户在本机检测�烧录,并�馈 - 测试结果。 -3. 写入�确认目标设备�本次验�通过的具体固件�其 - [烧录�数�影�](engineering/firmware-layout.zh_CN.md#烧录与已存数�), - 并�得本次烧录的明确��。设备已连接�以���过其他版本烧录,都�构� - 本次授�。�得把备份设备原有固件作为�置�件,也�得默认获得全片擦除 - 授�。 -4. ���烧录�,按对应硬件验收清�检查�动和用户�求的功能,必�时请用户 - 观察实机并�馈。仅烧录�功�能报告 `Device tests: PASS`。用户拒�或暂缓 - 测试�没有�用设备或无法访问设备时,报告 `Device tests: NOT RUN`,并在 - `Unverified` 中列出待验�项目。 - -纯文档等�改�固件的任务,应说明真机测试�适用,��为满足�程而烧录无关 -固件。邀请真机测试�代表获得 commit�push 或任��选 -[项目收尾动作](release/project-completion.zh_CN.md)的授�。 - ## 7. 相关文档 - 构建与验�命令:[build-and-test.zh_CN.md](engineering/build-and-test.zh_CN.md) diff --git a/docs/development/ci/CI-build-and-release.md b/docs/development/ci/CI-build-and-release.md index be01a74..4687d3f 100644 --- a/docs/development/ci/CI-build-and-release.md +++ b/docs/development/ci/CI-build-and-release.md @@ -26,8 +26,8 @@ make sure the release title shows both. - **Tag naming convention**: name tags as `v-` in lowercase-kebab-case, e.g. `v0.1.0-voice-keychain`, `v1.0.0-pocket-pomodoro`. The `` is the application this release builds (see the - repository-relative `docs/reference///` archive naming). - A tag that only says a version is ambiguous when several apps share the tree. + `plays///` archive naming). A tag that only says a version + is ambiguous when several apps share the tree. - **After the release is published, confirm the release title.** The workflow sets the title to the tag name, so a correctly-named tag already reads `v0.1.0-voice-keychain`. If the tag did not include the app, or the title is @@ -68,11 +68,9 @@ things: - **What's new**: the features, behaviors, or fixes this release adds or changes compared with the previous one. Keep it user-facing, not a commit log. -- **How to build**: run `./tools/validate.sh --firmware` to produce and verify - the merged firmware, then identify `FoloToy-AI-Passport-full.bin` as the file - to flash from `0x0`. `idf.py build` alone performs incremental compilation; - it does not create or verify the merged full image and is not an alternative - delivery command. +- **How to build**: how to produce and verify the merged firmware + (`./tools/validate.sh --firmware` or `idf.py build`), and the artifact file to + flash (`FoloToy-AI-Passport-full.bin` flashed from `0x0`). - **How to use**: how to flash the build (the browser flasher above) and the key interactions or hardware requirements of the release. diff --git a/docs/development/ci/CI-build-and-release.zh_CN.md b/docs/development/ci/CI-build-and-release.zh_CN.md index d940445..d2b77af 100644 --- a/docs/development/ci/CI-build-and-release.zh_CN.md +++ b/docs/development/ci/CI-build-and-release.zh_CN.md @@ -44,7 +44,7 @@ - **Tag 命�约定**:按 `v<版本>-<应用�>` �写连字符命�,例如 `v0.1.0-voice-keychain`� `v1.0.0-pocket-pomodoro`。`<应用�>` 是该 Release 构建的应用(� - 相对仓库根目录的 `docs/reference///` 档案命�)。多应用共享�一棵树时,�写版本�的 tag 会有歧义。 + `plays///` 档案命�)。多应用共享�一棵树时,�写版本�的 tag 会有歧义。 - **�布�功�,核对 Release 标题**:workflow 会把标题设为 tag �,因此命�正确的 tag 本身就显示� `v0.1.0-voice-keychain`。若 tag 没带应用�,或标题一眼看�出是哪个应用,就编辑该 Release (GitHub:`Edit release`;GitLab:编辑 tag),让标题为 `<版本> <应用�>`,例如 `v0.1.0 Voice @@ -71,9 +71,8 @@ tag 触�的 Release �有在�并固件与它的 Release 说明一起�布 - **功能(What's new / 功能)**:本次 Release 相对上一版新增或�更的功能�行为或修�。��用户, �是 commit 日志。 -- **方法(How to build / 方法)**:�行 `./tools/validate.sh --firmware` 生�并校验�并固件, - 明确从 `0x0` 烧录的产物为 `FoloToy-AI-Passport-full.bin`。�独执行 `idf.py build` - 仅�增�编译,�生�也�校验�并完整镜�,�能作为交付命令的替代。 +- **方法(How to build / 方法)**:如何生�并校验�并固件(`./tools/validate.sh --firmware` 或 + `idf.py build`),以��烧录的产物文件(从 `0x0` 烧录的 `FoloToy-AI-Passport-full.bin`)。 - **使用(How to use / 使用)**:如何烧录(上方在线刷机工具),以�本次 Release 的关键交互或硬件 �求。 diff --git a/docs/development/ci/CI-sync-main.md b/docs/development/ci/CI-sync-main.md index affdbca..9a8f33b 100644 --- a/docs/development/ci/CI-sync-main.md +++ b/docs/development/ci/CI-sync-main.md @@ -10,9 +10,4 @@ The workflow checks out the target `main` without persisting credentials and use Keep fork-specific firmware and documentation on feature branches so `main` stays synchronized. If development must happen directly on `main`, disable this workflow first to avoid automatic merges or conflicts. Fork owners must explicitly enable Actions after forking. -The checkout explicitly sets `ref: main`, even when a manual dispatch selects -another branch. The sync Action expects a local `main` branch before fetching; -without that explicit checkout, `git checkout main` can interpret this -repository's `main/` directory as a path instead of switching branches. - When upgrading an Action, verify the release and full commit SHA from the official repository and update the inline version comment. diff --git a/docs/development/ci/CI-sync-main.zh_CN.md b/docs/development/ci/CI-sync-main.zh_CN.md index d2cbbc6..b54b047 100644 --- a/docs/development/ci/CI-sync-main.zh_CN.md +++ b/docs/development/ci/CI-sync-main.zh_CN.md @@ -17,7 +17,7 @@ ## �水线�了什么 -1. **Checkout 目标仓库**:`actions/checkout` 显�设置 `ref: main`,�使手动触�选择其他分支,也检出当� fork 的 `main`,并关闭 Git 凭��久化。�步 Action 在 fetch �需�本地 `main`;�则 `git checkout main` �能把仓库内的 `main/` 目录作为路径处�,并未切�分支。 +1. **Checkout 目标仓库**:`actions/checkout` 检出当� fork 的 `main` 分支,并关闭 Git 凭��久化。 2. **�步上游**:使用固定到完整 commit SHA 的 `aormsby/fork-sync-with-upstream-action`(对应 v3.4.3),把 `FoloToy/ai-passport` 的 `main` �步到本 fork 的 `main`。`target_repo_token` 使用自动生�且仅具 `contents: write` ��的 `GITHUB_TOKEN`,无需手动�置。 3. **失败检查**:�步失败时输出�示——上游 workflow 文件�更�能导致 GitHub 暂�自动�步,需手动 Sync Fork 一次。 diff --git a/docs/development/engineering/build-and-test.md b/docs/development/engineering/build-and-test.md index d70bf8f..2a75c61 100644 --- a/docs/development/engineering/build-and-test.md +++ b/docs/development/engineering/build-and-test.md @@ -7,13 +7,6 @@ Use ESP-IDF 5.5.3. On a clean machine or when the toolchain is missing, follow the [environment bootstrap](environment-setup.md) first. -> **No original-firmware backup is required before downloading (flashing) new -> firmware to the device.** Reading out the installed firmware is not a -> prerequisite. Flashing replaces the installed firmware and does not provide -> automatic restoration of it. This does not mean user data is preserved: if -> you need existing settings or records, export or otherwise save them first. -> See [flashing and stored data](firmware-layout.md#flashing-and-stored-data). - > Prefer `./tools/validate.sh --firmware` for firmware builds. Flash its > verified `build/FoloToy-AI-Passport-full.bin` at offset `0x0` for a blank > device or an intentional complete refresh. The merged image may reset NVS; @@ -36,116 +29,16 @@ changed defaults. Preserve intentional local settings, then run `idf.py set-target esp32c3` when the target or tracked defaults must be regenerated. -### Speeding up repeated builds - -ccache can reuse previous compiler results when sources need to be compiled -again. ESP-IDF 5.5.3 disables it by default. After activating ESP-IDF, check that -ccache is available and enable it for an individual build (the same command -works in Linux/macOS shells and native Windows ESP-IDF terminals): - -```text -ccache --version -idf.py --ccache build -``` - -Alternatively, enable it for the current Linux/macOS shell and its child -processes, including the validation script: - -```bash -export IDF_CCACHE_ENABLE=1 -idf.py build -``` - -This is an `idf.py` option, not a `sdkconfig` or `menuconfig` setting. For -repeatable project or CI builds, pass `--ccache` explicitly or set -`IDF_CCACHE_ENABLE=1` in that build environment; do not silently edit shell -startup files. See the [ESP-IDF 5.5.3 option definition](https://github.com/espressif/esp-idf/blob/v5.5.3/tools/idf_py_actions/core_ext.py). - -Inspect the active cache configuration instead of assuming a fixed path: - -```text -ccache --show-config -ccache --show-stats -``` - -The effective `cache_dir` depends on the ccache version, platform, -configuration, and `CCACHE_DIR`; it is not always `~/.ccache`. Keep it outside -`build/` and temporary validation directories so their removal preserves it. -Cache clearing is not a routine build step. Only when intentionally clearing -the active cache, use `ccache --clear`, which preserves the configuration file, -instead of deleting the directory. This also discards cached compiler results -for other projects sharing that cache. See the [ccache manual](https://ccache.dev/manual/latest.html). - -On Windows, real-time antivirus or endpoint scanning can contribute to slow -builds, but diagnose the bottleneck first. For Microsoft Defender, use its -[performance analyzer](https://learn.microsoft.com/en-us/defender-endpoint/performance-analyzer-reference); -its results are not automatic exclusion recommendations. Exclusions reduce -protection and are optional: obtain user or administrator approval under the -applicable security policy, then limit any exception to the smallest confirmed -scope. Do not routinely exclude the entire ESP-IDF installation, tools tree, -or project, and do not disable real-time protection. +This badge derivative requires `CONFIG_COMPILER_OPTIMIZATION_SIZE=y` in the +active configuration. CMake rejects a stale debug build by default. Use +`-D BADGE_ALLOW_DEBUG_BUILD=ON` only for intentional diagnostic builds, never +for a release artifact. Verify the generated configuration, not just defaults. The tracked `dependencies.lock` pins Managed Component resolution. After changing an `idf_component.yml`, regenerate the lock with ESP-IDF 5.5.3, review version changes, and commit it with the manifest. An ordinary build must not leave an unexplained lock-file diff. -Firmware validation uses a fresh temporary build directory and an isolated `sdkconfig` generated from the tracked defaults. It does not consume or overwrite a developer's root `sdkconfig`. Before cleaning the temporary build, it archives the verified firmware and matching debug artifacts, then copies the verified merged image to `build/FoloToy-AI-Passport-full.bin`. The gate also validates the [configured firmware layout](firmware-layout.md): image offsets from `flash_args`, partition-table MD5, bounds and non-overlap, and an application that starts in and fits its configured app partition. User-defined partition layouts are allowed. +Firmware validation uses a fresh temporary build directory and an isolated `sdkconfig` generated from the tracked defaults. It does not consume or overwrite a developer's root `sdkconfig`, and it copies only the verified merged image to `build/FoloToy-AI-Passport-full.bin`. The gate also validates the [configured firmware layout](firmware-layout.md): image offsets from `flash_args`, partition-table MD5, bounds and non-overlap, and an application that starts in and fits its configured app partition. User-defined partition layouts are allowed. -### Retain matching crash-debugging artifacts - -Each successful firmware gate retains a local bundle under -`build/firmware//`. Its `manifest.json` records full-image and ELF -SHA-256 values, project/application/IDF version fields, offsets, and each retained -file's size and hash. The archive includes: - -- The verified merged image and its application ELF, MAP, and application image. -- `bootloader/bootloader.bin`, `partition_table/partition-table.bin`, and `flash_args`. - -Verify a bundle without rebuilding or writing to it: - -```text -python3 tools/archive_firmware.py verify -``` - -For an existing build directory, `python3 tools/archive_firmware.py create -` performs the same archival checks, but does not run host -tests or prove that the build used the current source/configuration. It is not a -replacement for the gate. The archive tool needs no activated ESP-IDF environment. - -The tool checks that the ELF's SHA-256 matches the identity embedded in the -application image and that the retained component images match the merged image. -Use that ELF to decode a crash from the corresponding firmware, not an ELF from -a later rebuild, especially when the version contains `-dirty`. MAP files have -no embedded identity: they are retained with the build and protected by the -manifest checksum. For byte-identical firmware/ELF and other retained files, -repeat archival reuses the first verified bundle and MAP; temporary build paths -may otherwise change MAP contents. Existing conflicting bundles are not replaced. - -Extra custom partition images are not retained as separate files. Their payloads -can still be inside the merged image; this is **not** a complete segmented-flash -package or a sanitization guarantee. Preserve any additional matching images -needed for a user-specific segmented workflow separately, after reviewing their -content. Treat `flash_args` as data, not a shell script. - -A failed validation may leave a previous `build/FoloToy-AI-Passport-full.bin` -and older bundles intact. Never present those as the failed run's new output. -Hand off the exact successful bundle path and full-image hash. Hash consistency -is not proof of hardware behavior or a trusted publisher. - -`build/` remains Git-ignored. Firmware and debug artifacts can contain embedded -credentials or other private data; do not commit or upload bundles automatically. -Existing CI/release workflows still upload only their configured artifacts, not -these debug bundles; runner-local archives disappear when the runner is removed. -Any additional retention/upload policy needs an explicit content and access review. -No build/archive command flashes a device. - -The static gate also compiles the actual BSP and demo implementations against -small platform stubs. These fault-injection tests cover task handoff and stop -retries, recording failures, Wi-Fi/BLE startup rollback, button allocation and -ADC failures, LVGL initialization locking/retry, and codec open/sleep/wake -recovery. They need only a host C compiler and Python, not ESP-IDF or downloaded -Managed Components. They do not establish real timing, electrical behavior or -device compatibility; the firmware gate compiles against the pinned dependencies. - -To run an individual pure-logic test: +The baseline also has a hardware-independent logic test: ```bash cc -std=c11 -Wall -Wextra -Werror -Imain \ diff --git a/docs/development/engineering/build-and-test.zh_CN.md b/docs/development/engineering/build-and-test.zh_CN.md index 39b3ba9..00949a8 100644 --- a/docs/development/engineering/build-and-test.zh_CN.md +++ b/docs/development/engineering/build-and-test.zh_CN.md @@ -7,11 +7,6 @@ 使用 ESP-IDF 5.5.3。全新机器或缺少工具链时,先按 [环境引导](environment-setup.zh_CN.md)完�安装。 -> **�设备下载(烧录)新固件�,无需备份设备内部原有固件。** ��求先读出 -> 原固件,也�把原固件备份作为烧录�置�件。烧录会覆盖原固件,�会自动�� -> 原固件。这�代表用户数�会被�留:如果需��留已有设置或记录,应事先 -> 导出或�行�存。详�[烧录与已存数�](firmware-layout.zh_CN.md#烧录与已存数�)。 - > 固件编译优先�行 `./tools/validate.sh --firmware`。空白设备�始化或有�完整 > 刷新时,把验�通过的 `build/FoloToy-AI-Passport-full.bin` 从 `0x0` 写入; > �并镜��能�置 NVS,需��留已有 NVS 状�时使用分段 `idf.py flash`。 @@ -32,92 +27,14 @@ idf.py fullclean # �清空过期生�状�(勿用于清�用 target 或已跟踪 defaults 时,先�留有�的本地设置,��行 `idf.py set-target esp32c3`。 -### 加速��编译 - -ccache 能在��需��新编译时�用已有编译结果。ESP-IDF 5.5.3 默认��用 -ccache。激活 ESP-IDF �,先确认 ccache �用,�为�次构建�用(以下命令 -�样适用于 Linux/macOS shell 和 Windows 原生 ESP-IDF 终端): - -```text -ccache --version -idf.py --ccache build -``` - -也�以在当� Linux/macOS shell �其�进程中�用,让验�脚本一并使用: - -```bash -export IDF_CCACHE_ENABLE=1 -idf.py build -``` - -这是 `idf.py` 选项,�是 `sdkconfig` 或 `menuconfig` �置。需�在项目或 CI -中���用时,显�传入 `--ccache`,或在该构建环境设置 -`IDF_CCACHE_ENABLE=1`;��擅自修改 shell �动文件。�� -[ESP-IDF 5.5.3 选项定义](https://github.com/espressif/esp-idf/blob/v5.5.3/tools/idf_py_actions/core_ext.py)。 - -先检查当�缓存�置,���定固定路径: - -```text -ccache --show-config -ccache --show-stats -``` - -实际 `cache_dir` �决于 ccache 版本�平���置以� `CCACHE_DIR`,并�总是 -`~/.ccache`。把它放在 `build/` 和临时验�目录之外,清�这些目录时�能�留 -缓存。清缓存�是日常构建步骤。�有明确需�清空当�缓存时,�使用�留 -�置文件的 `ccache --clear`,而�是删除整个目录;这也会清除共用该缓存的 -其他项目的编译结果。�� [ccache 手册](https://ccache.dev/manual/latest.html)。 - -Windows 上的�毒或终端安全软件实时扫��能拖慢构建,但应先诊断瓶颈。 -Microsoft Defender �使用其 -[性能分�器](https://learn.microsoft.com/en-us/defender-endpoint/performance-analyzer-reference), -分�结果�等于自动建议添加排除项。排除项会�低防护能力,且属于�选措施: -必须按适用安全策略�得用户或管�员批准,�把例外�制在已确认问题的最� -范围内。��例行排除整个 ESP-IDF 安装目录�工具链目录或工程,也��关闭 -实时防护。 +本工牌分支�求实际生效的�置包� `CONFIG_COMPILER_OPTIMIZATION_SIZE=y`。 +CMake 默认拒�沿用旧的调试�置;�有明确进行诊断构建时�使用 +`-D BADGE_ALLOW_DEBUG_BUILD=ON`,�得将其作为�布包。检查生��的�置, +�能�看 defaults 文件。 仓库�交 `dependencies.lock` 以固定 ESP-IDF Managed Components 的解�结果。修改 `idf_component.yml` �必须使用 ESP-IDF 5.5.3 �新生��文件�review 版本�化并与 manifest 一起�交;普通构建�应产生未�交的�文件差异。 -固件门�使用全新的临时构建目录,并从仓库 `sdkconfig.defaults` 生�隔离的 `sdkconfig`。它�会读�或覆盖开�者根目录的 `sdkconfig`。清�临时构建�,先归档已验�固件�匹�的调试产物,�把已验��并镜��制到 `build/FoloToy-AI-Passport-full.bin`。门��时验�[当��置的固件布局](firmware-layout.zh_CN.md):从 `flash_args` 读�镜��移,检查分区表 MD5�边界和���,并确认应用从所�置的 app 分区起点开始且未超出分区。�许用户自定义分区布局。 - -### �留匹�的崩溃调试产物 - -�次�功的固件门�都会在本地�留 `build/firmware//` -归档。`manifest.json` 记录完整镜�与 ELF 的 SHA-256�项目�应用�IDF -版本字段��移,以��个�留文件的大�和哈希。归档包�: - -- 已校验�并镜��其应用 ELF�MAP�应用镜�。 -- `bootloader/bootloader.bin`�`partition_table/partition-table.bin` 和 `flash_args`。 - -��新构建��写入归档���验: - -```text -python3 tools/archive_firmware.py verify -``` - -对已有构建目录,`python3 tools/archive_firmware.py create ` -会执行�样的归档校验,但�会�行 host tests,也�能�明使用了当���� -�置;�能代替门�。归档工具本身��求激活 ESP-IDF。 - -工具检查 ELF 的 SHA-256 是�与应用镜�内嵌身份一致,并检查�留的分段 -镜�是�与�并镜�一致。分�对应固件崩溃时使用该 ELF,�拿�续�新编译 -的 ELF 替代,尤其是版本带 `-dirty` 时。MAP 没有内嵌身份,���次构建 -留存和清�哈希�护;固件�ELF 与其他�留文件�字节一致时,��归档�用 -首份已验�归档� MAP,因为临时构建路径�能改� MAP 内容。�覆盖冲�归档。 - -�外自定义分区镜��作为独立文件留存,但其内容��能包�在�并镜�中; -这**�是**完整的分段烧录包,也���已脱�。用户特定分段烧录需�的�外 -匹�镜�,应在审核内容��行�留。把 `flash_args` 当作数�,�作为 shell -脚本执行。 - -验�失败�能��留旧 `build/FoloToy-AI-Passport-full.bin` 和历�归档, -�能将它们当�本轮失败构建的新产物。交接时给出实际�功归档路径和完整 -镜�哈希;哈希一致�代表硬件通过验收,也�能�明�布者�信。 - -`build/` �被 Git 忽略。固件与调试文件�能�内嵌凭�或其他�密数�, -�能自动�交或上传。现有 CI��布�程��上传其�置的产物,�上传这些 -调试包;runner 删除时,本地归档也会消失。扩大留存�上传范围�须明确审核 -内容和访问��。构建�归档命令�会烧录设备。 +固件门�使用全新的临时构建目录,并从仓库 `sdkconfig.defaults` 生�隔离的 `sdkconfig`。它�会读�或覆盖开�者根目录的 `sdkconfig`,�把验�通过的�并镜��制到 `build/FoloToy-AI-Passport-full.bin`。门��时验�[当��置的固件布局](firmware-layout.zh_CN.md):从 `flash_args` 读�镜��移,检查分区表 MD5�边界和���,并确认应用从所�置的 app 分区起点开始且未超出分区。�许用户自定义分区布局。 当�基线�一个�独立�行的纯逻辑测试: @@ -128,8 +45,6 @@ cc -std=c11 -Wall -Wextra -Werror -Imain \ /tmp/test_ui_pixel_math ``` -��门�还将真实 BSP 和 demo 实现与轻�平�桩编译在一起,故障注入覆盖任务退出交接与�止�试�录音失败�Wi-Fi/BLE �动回滚�按键分�与 ADC 错误�LVGL �始化�与�试�codec 打开/休眠/唤醒��。�需主机 C 编译器和 Python,��赖 ESP-IDF 或已下载的 Managed Components。这些测试�代表真实时��电气行为或设备兼容性;固件门�会使用�定�赖进行编译。 - 统一验�入�: ```bash diff --git a/docs/development/engineering/coding-conventions.md b/docs/development/engineering/coding-conventions.md index 3b5c053..8886de3 100644 --- a/docs/development/engineering/coding-conventions.md +++ b/docs/development/engineering/coding-conventions.md @@ -5,55 +5,13 @@ # Coding Conventions - Write C with four-space indentation and K&R braces, following neighboring files. Use `snake_case`, `BSP_*` public constants, `s_` file-local state, `bsp_` public BSP APIs, and `demo__` demo entry points. Prefer `static` for internal symbols. -- Keep baseline-demo UI text and default documentation in English. Application UI may use Chinese when its font support is implemented and verified. Explanatory source comments may use Chinese while retaining established English technical terms. -- Before adding Chinese UI text, complete the [font checklist](#chinese-fonts-and-missing-glyphs); changing strings to UTF-8 alone does not add missing glyphs. +- Keep UI text and default documentation in English. Explanatory source comments may use Chinese while retaining established English technical terms. +- The baseline enables only LVGL Montserrat 14 and 20, which do not contain CJK glyphs. Chinese UTF-8 text therefore renders as missing-glyph boxes; changing source-file encoding does not fix it. Before adding Chinese UI text, compile and select a CJK font that covers every displayed character, prefer a glyph subset over a full font, configure a suitable fallback for mixed-language text, budget Flash and internal RAM, and verify the result on the device. - Put reusable hardware behavior in `components/bsp`; keep menus, animations, product interaction, and validation pages in `main`. -- Derivative applications must implement a redesigned UI and must not reuse the current demo test screens or `ui_pixel` visual shell. Renaming or recoloring the demo is not a redesign; follow the [mandatory UI redesign rule](../ai-guide.md#mandatory-ui-redesign-for-derivative-applications). Preserving the existing theme applies only to maintenance of the baseline hardware-test demo itself, not to application development. -- Show the battery level in the top-right corner of a user interface by default, unless the developer specifies a different placement or explicitly does not want it. Read it from `bsp_battery_soc()` (and `bsp_battery_mv()` where useful); render it as a small battery indicator or percentage in the top-right area of the screen, and degrade gracefully when it reads `-1` (unavailable). Avoid overlapping the application's own content. When maintaining the baseline theme, also avoid its cloud decoration (`add_cloud`, around `x≈188, y≈8`). +- The `ui_pixel` theme (sky background, grass, title plate, mascot, ink-outlined panels) is part of the user interface, not a removable component. When trimming components or routing straight to a feature screen, keep the theme and build the screen through `ui_pixel_screen_create()` / `ui_pixel_panel_create()`. +- Show the battery level in the top-right corner of a user interface by default, unless the developer specifies a different placement or explicitly does not want it. Read it from `bsp_battery_soc()` (and `bsp_battery_mv()` where useful); render it as a small battery indicator or percentage in the top-right area of the screen, and degrade gracefully when it reads `-1` (unavailable). Place it where it does not overlap the existing cloud decoration (`add_cloud`, around `x≈188, y≈8`): use the clear sky space beside or below the cloud, or the very top-right edge, rather than covering the cloud. - Document non-trivial functions, state, ownership, blocking behavior, task context, initialization order, failure values, register choices, timing, synchronization, and hardware-specific constants. Explain why, not merely what. - Add or update tests with code changes. If automation is not practical, record the test gap and exact manual validation path. - If adding a cache, define expiration and cleanup unless durable retention is explicitly justified. - The ESP32-C3 has no PSRAM. Review internal RAM and largest-contiguous-block impact before increasing LVGL buffers, audio allocations, network state, or task stacks. - **Watch power consumption.** This is a wearable powered by a small battery; keep it efficient. Avoid keeping the screen lit for long periods: dim or turn off the backlight, and return to a low-power state (light/deep sleep) whenever the screen is idle, so the device is not left displaying a bright screen while doing nothing. See the guidance on sleep in [`../hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.md`](../../hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.md). - -## Chinese fonts and missing glyphs - -For configuration, converter commands, CMake integration, safe fallback code, and glyph-check examples, follow the [detailed LVGL Chinese text guide](lvgl-chinese-fonts.md). - -The baseline enables Montserrat 14 and 20 in [`sdkconfig.defaults`](../../../sdkconfig.defaults); neither contains Chinese glyphs. A correct UTF-8 string can therefore appear as boxes or blank text. Serial-console output, an installed computer font, and a successful firmware build do not prove that LVGL can render that text. - -### Before implementing or changing Chinese UI - -1. **Define coverage.** Collect all displayed text: titles, buttons, hints, empty/error states, units, punctuation, and dynamic content. Include Latin letters, digits, full-width punctuation, and any `LV_SYMBOL_*` icons in the chosen font or fallback chain. Regenerate each affected size/subset when text changes. A built-in CJK subset or a subset extracted from fixed UI strings does not guarantee arbitrary Chinese names, Wi-Fi SSIDs, or server/user input; define the supported character set and an explicit unsupported-character policy. -2. **Generate reproducible assets.** Select a licensed font whose source actually contains the required glyphs. Prefer a subset at the sizes needed by the application instead of embedding an entire font family. Keep reusable sources/generated files under `assets/fonts/` and record the license, converter version, command, character inventory, size, and bit depth in the [assets documentation](../../../assets/README.md). Use output compatible with the LVGL version pinned in [`dependencies.lock`](../../../dependencies.lock) (currently 9.5.0). See the [official font converter](https://github.com/lvgl/lv_font_conv) for generation options; this baseline does not bundle an application-specific Chinese font. -3. **Compile and select the font.** Add the generated `.c` file to the consuming component's CMake `SRCS`, declare its exported symbol with `LV_FONT_DECLARE`, and assign it to the actual text widget/part. Copying a TTF/OTF or `.c` into `assets/` does not automatically compile, load, or select it. Check the generated `sdkconfig` has `CONFIG_LV_TXT_ENC_UTF8=y`; changing defaults alone does not necessarily update an existing configuration (see [build and test](build-and-test.md)). -4. **Check style overrides and fallback.** Changing the default font or a screen's inherited font does not override explicit child fonts. [`main/ui_pixel.c`](../../../main/ui_pixel.c) sets a local font in `ui_pixel_label()` and explicitly uses Montserrat 20 for its title; menu/demo labels also select fonts directly. Audit titles, labels, widget parts, and focused/pressed/disabled states. For mixed text, use a font containing all required glyphs or a deliberate fallback chain. Do not cast away `const` to modify Flash-resident font descriptors, create fallback cycles, or free a font while widgets still use it. -5. **Budget resources.** Inspect Flash/static RAM after generation and free heap/largest free block at runtime, including when networking is active. Constant bitmap font data can reside in Flash; runtime font loading, decoding, and caches may need RAM. Do not blindly enlarge the LVGL heap or display buffers to treat missing glyphs; more memory cannot supply glyphs absent from the font. - -For example, after generating and linking `app_font_20` with the required glyphs, select it explicitly. This symbol is illustrative, not a font supplied by this repository. Run object operations in the LVGL task or while holding `bsp_lvgl_lock()`: - -```c -LV_FONT_DECLARE(app_font_20); - -/* Inside the application's UI creation function. */ -lv_obj_t *label = lv_label_create(parent); -lv_obj_set_style_text_font(label, &app_font_20, LV_PART_MAIN | LV_STATE_DEFAULT); -lv_label_set_text(label, "\u4E2D\u6587 ABC 123"); -``` - -### Troubleshooting order - -| Symptom | Check first | -| --- | --- | -| Latin text works; Chinese is blank or boxed | Actual widget font and its fallback coverage, UTF-8 input, and `CONFIG_LV_TXT_ENC_UTF8`; disabling `CONFIG_LV_USE_FONT_PLACEHOLDER` only hides the missing-glyph indicator, not the defect | -| Only some characters or new text fail | Missing subset entries, punctuation, each font size, and dynamic text outside the supported set; regenerate and relink the affected assets | -| Body text works but titles/buttons or selected states fail | Explicit local fonts, theme/state overrides, and the font on the widget part that draws the text | -| Glyph coverage is correct but text is invisible or cut off | Text color/opacity, hidden flags, label size, line height, parent clipping, and draw/allocation errors; do not assume every blank label is a font defect | - -### Required acceptance - -- Check every required printable Unicode code point against each font/fallback chain actually used. With the pinned LVGL API, `lv_font_get_glyph_dsc()` must succeed and `is_placeholder` must be false; a placeholder is not coverage. Decode UTF-8 into code points rather than testing individual bytes. Record uncovered code points and add a repeatable coverage check alongside the application's font-generation pipeline. -- On the device, verify all pages and error/empty states, Chinese/Latin/digit/punctuation/icon mixtures, different sizes and interaction states, long text, and dynamic content both inside and outside the declared supported set. Check for boxes, blanks, clipping, and fallback baseline/line-height mismatches; do not accept one successful sample label as whole-application validation. -- Report the tested text/character set, font sizes, and resource changes. The baseline's host tests do not validate a derivative application's font coverage or screen output. Without a physical-device check, report `Device tests: NOT RUN` and explicitly list Chinese rendering under `Unverified`. - -Font selection and fallback semantics: [LVGL 9.5 font overview](https://docs.lvgl.io/9.5/main-modules/fonts/overview.html). Missing-glyph handling: [LVGL 9.5 implementation](https://github.com/lvgl/lvgl/blob/v9.5.0/src/font/lv_font.c). diff --git a/docs/development/engineering/coding-conventions.zh_CN.md b/docs/development/engineering/coding-conventions.zh_CN.md index fdaa91a..5c5f8c3 100644 --- a/docs/development/engineering/coding-conventions.zh_CN.md +++ b/docs/development/engineering/coding-conventions.zh_CN.md @@ -4,11 +4,11 @@ # 代�约定(Coding Conventions) -- **语言/风格**:C 用四空格缩进 + K&R 大括�,跟�相邻文件;函数/局部�� `snake_case`,公开硬件常� `BSP_*`,文件内状� `s_` �缀;BSP API 用 `bsp_` �缀,demo 入� `demo__`;内部符�优先 `static`。基础 demo UI 文案与默认文档用英文;应用 UI �以使用中文,但必须实现并验�字体支�。解释性注释�用中文并�留通用英文技术术语;�留记录硬件寄存器值与内存约�的注释。 -- **中文空白/方框陷阱**:添加中文 UI �必须完�[字体检查清�](#中文字体与缺字排查);仅把字符串改� UTF-8 �会补�缺失的字形。 +- **语言/风格**:C 用四空格缩进 + K&R 大括�,跟�相邻文件;函数/局部�� `snake_case`,公开硬件常� `BSP_*`,文件内状� `s_` �缀;BSP API 用 `bsp_` �缀,demo 入� `demo__`;内部符�优先 `static`。UI 文案用英文,解释性注释�用中文;�留记录硬件寄存器值与内存约�的注释。 +- **中文方框字陷阱**:当�基线��用 LVGL Montserrat 14 和 20,这些字体�包� CJK glyph。�使��和字符串�为 UTF-8,中文也会显示为缺字方框,修改�文件编��能解决。添加中文 UI �,必须编译并选用覆盖全部实际字符的 CJK 字体,优先生� glyph �集而�引入完整字库;中英文混排时�置�适的 fallback,�时核对 Flash�内部 RAM �用并在真机�字验�。 - **�用既有组件**:��用硬件逻辑放 `components/bsp`;��/动画/业务交互/验�页�放 `main`。���造轮�,�循既有 BSP API。 -- **二次开�必须�新设计 UI**:�止沿用当� demo 测试页�或 `ui_pixel` 界�外壳,改���颜色�算�新设计;�循[强制 UI �新设计规则](../ai-guide.zh_CN.md#二次开�-ui-强制�新设计)。�留既有主题仅适用于维护基线硬件测试 demo 本身,�适用于应用开�。 -- **默认�上角电�**:用户界�默认在�上角显示电�信�,除�开�者指定其他�置或明确�需�。读� `bsp_battery_soc()`(需�时用 `bsp_battery_mv()`),以�型电池图标或百分比展示;读值为 `-1`(��用)时优雅�级。���挡应用自己的内容;维护基线主题时,还需�开白云装饰(`add_cloud`,约 `x≈188, y≈8`)。 +- **主题�是�删组件**:`ui_pixel` 主题体系(天空底色��地�标题牌��祥物�墨色�边��)属于用户界�的一部分,�是�删除的"�必�组件"。精简组件或直接载入功能界�时,�留该主题,并通过 `ui_pixel_screen_create()` / `ui_pixel_panel_create()` 建�。 +- **默认�上角电�**:用户界�在没有默认�求的情况下,默认在**�上角显示电�信�**;除�开�者明确指定其它�置或明确�需�。电�读� `bsp_battery_soc()`(需�时用 `bsp_battery_mv()`),以�型电池图标或百分比呈现在�幕�上区域;读值为 `-1`(��用)时优雅�级,��画一个数字。**�置�能和�上角已有的白云装饰冲�**(`add_cloud`,约 `x≈188, y≈8`):放在白云�边或下方的空闲�天区,或�幕最�上边角,��盖�白云。 - **注释�求(尽�能详细)**:项目��需�尽�能详细地编写函数说明���说明,增加完善的代�注释。 - **函数说明**:�个�平凡函数都�有注释,说明:用途/�责��数�义�返回值�失败值�副作用�阻塞行为�线程/任务上下文�内存所有��调用��与�始化顺�。涉�硬件的函数�外注明寄存器�作�时�约�与已知陷阱。 - **��说明**:模�级/文件级�����结构体字段都�有语义注释,说明其用途��值范围�生命周期/所有��跨任务共享时的�步�求。硬件常�注释注明��(数�手册/实测/推导)。 @@ -18,45 +18,3 @@ - **缓存组件**:若引入缓存组件(如 NVS 缓存�内存缓存等),默认设置过期时间;长期缓存需说明�留原因�过期风险与清�机制。当�固件��需� TTL 约�的缓存,无需特别处�。 - **资�约�**:ESP32-C3 无 PSRAM,�增加 LVGL buffer / 音频分� / 任务栈�先核对内部 RAM;足够的总空闲堆���有足够大连续�。 - **关注功耗**:本设备是�电池供电的�穿戴产�,编写固件时�留�功耗。��让�幕长时间点亮:�幕空闲时调暗或关闭背光,并�时回到低功耗状�(light/deep sleep),��让它无事��地一直亮�。�眠相关指引� [`../hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.md`](../../hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.zh_CN.md)。 - -## 中文字体与缺字排查 - -�置项�转�命令�CMake 接入�安全 fallback 代�和缺字检查示例� [LVGL 中文显示详细指�](lvgl-chinese-fonts.zh_CN.md)。 - -基线在 [`sdkconfig.defaults`](../../../sdkconfig.defaults) 中�用 Montserrat 14 和 20,两者都�包�中文字形。因此,�使字符串是正确的 UTF-8,中文��能显示为方框或空白。串�能打�中文�电脑安装了中文字体�固件编译�功,都�能�明 LVGL 能显示这些文字。 - -### 开�或修改中文 UI � - -1. **明确字符范围。** 收集所有显示文案,包括标题�按钮��示�空状�/错误状�����标点和动�内容。所选字体或 fallback 链必须覆盖实际使用的英文字��数字�全角标点以� `LV_SYMBOL_*` 图标。文案�化时,�新生��影�的�字�/�集。内置 CJK �集或从固定 UI 文案��的�集���覆盖任�中文姓��Wi-Fi SSID��务器/用户输入;必须声明支�的字符范围和明确的超范围字符处�策略。 -2. **生���现的素�。** 选用授��许且�字库确实包�所需字形的字体。优先按应用实际字�生��集,�直接塞入整套字体家�。��用�文件/生�文件放在 `assets/fonts/`,并在[素�文档](../../../assets/README.zh_CN.md)记录授��转�工具版本�命令�字符清��字�和�深。生�结果须兼容 [`dependencies.lock`](../../../dependencies.lock) �定的 LVGL 版本(当�为 9.5.0)。生�选项�[官方字体转�工具](https://github.com/lvgl/lv_font_conv);本基线�自带应用专用中文字库。 -3. **编译并实际选用字体。** 把生�的 `.c` 加入使用方组件的 CMake `SRCS`,用 `LV_FONT_DECLARE` 声明导出的字体符�,�绑定到实际绘制文字的控件/部件。�把 TTF/OTF 或 `.c` �制进 `assets/`,�会自动完�编译�加载或选用。检查生�的 `sdkconfig` 中 `CONFIG_LV_TXT_ENC_UTF8=y`;仅修改默认值�一定更新已有�置(�[构建与验�](build-and-test.zh_CN.md))。 -4. **检查样�覆盖与 fallback。** 修改默认字体或 screen 上�继承的字体,并�会覆盖�控件显�指定的字体。[`main/ui_pixel.c`](../../../main/ui_pixel.c) 的 `ui_pixel_label()` 会设置局部字体,标题明确使用 Montserrat 20;��/demo 标签也有直接选用字体的代�。�项检查标题�标签�控件部件�焦点/按下/�用状�。混排�使用覆盖全部所需字形的字体,或明确�置 fallback 链。�得通过强制去掉 `const` �修改 Flash 中的字体�述符,�得形� fallback 环路,也�得在控件�使用字体时释放它。 -5. **评估资�。** 生��检查 Flash/�� RAM,�行时检查 free heap/largest free block,并包�网络�时�用的场景。常��图字体数��以驻留 Flash;动�加载�解�和缓存��能消耗 RAM。��为解决缺字而盲目扩大 LVGL 内存池或显示缓冲;更多内存�会生�字库中�存在的字形。 - -例如,生�并链接包�所需字形的 `app_font_20` �,显�选用它。此符�仅作示例,�是仓库已��供的字体。对象�作必须在 LVGL 任务中执行,或�有 `bsp_lvgl_lock()`: - -```c -LV_FONT_DECLARE(app_font_20); - -/* Inside the application's UI creation function. */ -lv_obj_t *label = lv_label_create(parent); -lv_obj_set_style_text_font(label, &app_font_20, LV_PART_MAIN | LV_STATE_DEFAULT); -lv_label_set_text(label, "\u4E2D\u6587 ABC 123"); -``` - -### 排查顺� - -| 现象 | 优先检查 | -| --- | --- | -| 英文正常,中文空白或方框 | 控件实际字体� fallback 覆盖�UTF-8 输入和 `CONFIG_LV_TXT_ENC_UTF8`;关闭 `CONFIG_LV_USE_FONT_PLACEHOLDER` �会��缺字�示,�会修�缺字 | -| �有部分字符或新文案异常 | �集�字�标点��字�字库�超出支�范围的动�内容;�新生�并链接�影�的素� | -| 正文正常,标题/按钮或选中状�异常 | 局部显�字体�主题/状�覆盖,以�真正绘制文字的控件部件所用字体 | -| 字形覆盖正确,但文字���或被截断 | 文字颜色/�明度���标志�标签尺寸�行高�父容器�剪�绘制/内存分�错误;�能把所有空白标签都认定为字库问题 | - -### 必须完�的验收 - -- 对实际使用的�个字体/fallback 链检查全部所需�打� Unicode �点。在当��定的 LVGL API 中,`lv_font_get_glyph_dsc()` 必须�功且 `is_placeholder` 为 false;��字形�算覆盖。应先将 UTF-8 解�为�点,�能�字节检查。记录未覆盖的�点,并在应用的字体生��程中加入���执行的覆盖检查。 -- 真机检查所有页��错误/空状�,中英数/标点/图标混排,��字�和交互状��长文本,以�支�范围内外的动�内容。确认无方框�空白��剪和 fallback 基线/行高错�;�能�凭一个测试标签显示�功就认定整个应用通过。 -- 交付时记录测试文案/字符范围�字�与资��化。基线 host tests �会验��生应用的字库覆盖或�幕输出。没有进行真机检查时,报告 `Device tests: NOT RUN`,并在 `Unverified` 中明确列出中文显示。 - -字体选择与 fallback 语义� [LVGL 9.5 字体概览](https://docs.lvgl.io/9.5/main-modules/fonts/overview.html),缺字处�� [LVGL 9.5 实现](https://github.com/lvgl/lvgl/blob/v9.5.0/src/font/lv_font.c)。 diff --git a/docs/development/engineering/environment-setup.md b/docs/development/engineering/environment-setup.md index bf24aa1..503f4c0 100644 --- a/docs/development/engineering/environment-setup.md +++ b/docs/development/engineering/environment-setup.md @@ -307,58 +307,6 @@ printf 'IDF_PATH=%s\n' "${IDF_PATH}" Stop if the reported version is not exactly `ESP-IDF v5.5.3`. Do not generate project configuration with another version. -Activation is shell-scoped: run `export.sh` with a leading dot (or `source`), -never as `./export.sh`, which spawns a subshell and leaves the current shell -unconfigured (`IDF_PATH is not set` or `idf.py: command not found` afterward). -If a custom `IDF_TOOLS_PATH` was used during install, set it again before every -`export.sh` call — the script does not remember it from an earlier session. - -### Toolchain install failures - -For a checksum mismatch or corrupted toolchain download, first rerun the -installer from the selected ESP-IDF 5.5.3 checkout, keeping the same -`IDF_TOOLS_PATH` and download-route settings. For example, on Linux/macOS: - -```bash -"${AI_PASSPORT_IDF_ROOT}/install.sh" esp32c3 -``` - -If using the mainland China route, apply `IDF_GITHUB_ASSETS` to this invocation -as shown in [Choose a download route](#choose-a-download-route). The -[ESP-IDF 5.5.3 installer](https://github.com/espressif/esp-idf/blob/v5.5.3/tools/idf_tools.py) -validates existing archives and replaces the failed archive rather than -clearing all cached downloads. - -The download cache is `dist` under the effective `IDF_TOOLS_PATH`. Without an -override, this is normally `~/.espressif/dist` on Linux/macOS or -`%USERPROFILE%\.espressif\dist` on Windows. Do not clear the whole directory: -it can contain valid offline archives shared by other ESP-IDF versions. If a -manual intervention is still needed, identify the exact failed archive from -the log and the actual tools path, obtain approval, and move only that file -aside for recovery before retrying. On Windows, retry the official installer -or rerun `install.bat esp32c3` in an ESP-IDF Command Prompt from the selected -checkout, with the same custom tools path and route settings in that terminal. - -On macOS, `[SSL: CERTIFICATE_VERIFY_FAILED]` means certificate verification -failed; it does not identify one universal fix. Confirm which Python -interpreter the installer uses and how it was installed, then check that -interpreter's trust store and any approved proxy. The -[`Install Certificates.command` helper](https://docs.python.org/3.13/using/mac.html#installation-steps) -belongs to the python.org macOS installer: use it only for the matching Python -installation that provides it. Homebrew and other Python distributions may -not include it; follow their certificate setup instead. Obtain approval for -trust-store changes and never disable TLS verification. - -On Apple Silicon, `tool riscv32-esp-elf has no installed versions` can mean the -tool has not been installed or the tools path is wrong; it does not establish -an architecture mismatch. Verify `IDF_TOOLS_PATH` and rerun the ESP32-C3 -installer first. For `bad CPU type in executable`, check the host, active -shell/Python, and failing binary architectures. ESP-IDF 5.5.3 provides a -[native macOS ARM64 ESP32-C3 toolchain](https://github.com/espressif/esp-idf/blob/v5.5.3/tools/tools.json); -prefer it. Only consider Rosetta after confirming that a required executable -is x86-64-only, and obtain approval before installing it. It is not a routine -ESP32-C3 prerequisite. - For mainland China, optionally accelerate Managed Component archives in the current terminal: diff --git a/docs/development/engineering/environment-setup.zh_CN.md b/docs/development/engineering/environment-setup.zh_CN.md index 338c541..12afd39 100644 --- a/docs/development/engineering/environment-setup.zh_CN.md +++ b/docs/development/engineering/environment-setup.zh_CN.md @@ -267,52 +267,6 @@ printf 'IDF_PATH=%s\n' "${IDF_PATH}" 版本�是严格的 `ESP-IDF v5.5.3` 时必须�止,�得用其他版本生�项目�置。 -激活�对当� shell 生效:�行 `export.sh` 必须用带点的形�(或 `source`), -�能写� `./export.sh`——那会在� shell 中执行,当� shell �会�置�功 -(之�报 `IDF_PATH is not set` 或 `idf.py: command not found`)。安装时使用过 -自定义 `IDF_TOOLS_PATH` 的,�次 `export.sh` �都��新设置——脚本�会记� -上一个 session 的值。 - -### 工具链安装失败 - -工具链下载出现校验和�匹�或归档��时,先从选定的 ESP-IDF 5.5.3 checkout -�新�行安装器,��相�的 `IDF_TOOLS_PATH` 和下载路线设置。例如在 -Linux/macOS 上: - -```bash -"${AI_PASSPORT_IDF_ROOT}/install.sh" esp32c3 -``` - -使用中国大陆路线时,按[选择下载路线](#选择下载路线)中的示例,把 -`IDF_GITHUB_ASSETS` 应用于这次调用。 -[ESP-IDF 5.5.3 安装器](https://github.com/espressif/esp-idf/blob/v5.5.3/tools/idf_tools.py) -会校验已有归档并替�失败的归档,而�是清空全部下载缓存。 - -下载缓存�于实际 `IDF_TOOLS_PATH` 下的 `dist` 目录。未覆盖路径时,通常为 -Linux/macOS 的 `~/.espressif/dist` 或 Windows 的 -`%USERPROFILE%\.espressif\dist`。��清空整个目录,其中�能�其他 ESP-IDF -版本共用的有效离线归档。若�需手动处�,先根�日志和实际工具路径确认 -具体失败的归档,�得批准�仅把该文件移到���的�置,��试。 -Windows 上�试官方安装器,或在 ESP-IDF Command Prompt 中进入选定 checkout -��新�行 `install.bat esp32c3`;在该终端中�留相�的自定义工具路径和下载 -路线设置。 - -macOS 上的 `[SSL: CERTIFICATE_VERIFY_FAILED]` �表示�书校验失败,并�能 -确定唯一修�方�。先确认安装器实际使用的 Python 解释器�其安装��, -�检查该解释器的信任�书和已批准使用的代�。 -[`Install Certificates.command` 辅助脚本](https://docs.python.org/3.13/using/mac.html#installation-steps) -属于 python.org 的 macOS 安装器�程,�对�供该脚本的对应 Python 安装使用。 -Homebrew 等其他 Python �行方��一定�供它,应按其�书�置�程处�。 -更改信任�书�需�得批准,�止通过关闭 TLS 校验绕过错误。 - -Apple Silicon 上的 `tool riscv32-esp-elf has no installed versions` �能�是 -工具未安装或工具路径错误,�能�此判断架构�匹�。先核对 `IDF_TOOLS_PATH` -并�新�行 ESP32-C3 安装器。若出现 `bad CPU type in executable`,�检查 -主机�当� shell�Python 和失败二进制的架构。ESP-IDF 5.5.3 �供 -[原生 macOS ARM64 ESP32-C3 工具链](https://github.com/espressif/esp-idf/blob/v5.5.3/tools/tools.json), -应优先使用。�有确认必须使用仅支� x86-64 的�执行程��,�考虑 Rosetta, -且安装�必须�得批准;它�是 ESP32-C3 的常规�置�件。 - 中国大陆环境�在当�终端临时加速 Managed Component 归档下载: ```bash diff --git a/docs/development/engineering/firmware-layout.md b/docs/development/engineering/firmware-layout.md index 3982b87..51d5bde 100644 --- a/docs/development/engineering/firmware-layout.md +++ b/docs/development/engineering/firmware-layout.md @@ -8,6 +8,27 @@ This repository is a minimal base for user-defined firmware targeting an ESP32-C3 with 8 MB Flash. Its default does not reserve product-specific identity, OTA, or unused data partitions. +## Profile-enabled derivative layout + +This branch's 2.6.19 firmware uses the following intentional custom layout. NVS and PHY stay at their original addresses. The template baseline described below remains a reference. + +| Partition | Offset | Size | +| --- | --- | --- | +| nvs | 0x9000 | 0x6000 | +| phy_init | 0xF000 | 0x1000 | +| factory | 0x10000 | 0x3C0000 | +| voice_data | 0x3D0000 | 0x2C0000 | +| badge_slots | 0x690000 | 0xC0000 | +| voice_tail | 0x750000 | 0x80000 | +| badge_user | 0x7D0000 | 0x30000 | + +`badge_user` contains two 0x18000-byte banks. Each bank has a 32-byte CRC-protected header, up to 2048 JSON bytes after the header, a 61,568-byte identity panel at bank offset 0x1000, and a 12,672-byte avatar immediately after it. Header commit is last; sequence plus payload/header CRCs select the newest complete bank at boot. Segmented firmware flashing preserves this partition and NVS. Do not erase the whole flash when updating. + +`badge_slots` holds four additional profiles, each with two 0x18000-byte banks. Slot 1 stays at the unchanged `badge_user` address. Format 2 also stores brand (13,024 bytes), logo (2,048 bytes), and QR (4,608 bytes), totaling 93,920 payload bytes per bank. The active slot is stored in the separate `badge_cards` NVS namespace. Each profile has its own sequence and commit marker; interrupted writes preserve its previous bank. Before migrating an installed device, back up NVS and profile regions and ensure the added partition does not overlap existing application or user data. + + +2.6.8 reclaims 128 KiB of voice headroom for the application. Only `voice_data` moves; NVS, PHY and both profile partition offsets/sizes remain unchanged. All 726 clips still contain 4,270,480 payload bytes, with 50,800 bytes of bundle headroom. Format 4 profiles contain 91,648 payload bytes and retain two 96 KiB banks per badge. Migration must rewrite both voice images, not merely the application or partition table. Back up the full flash and validate its layout, write and verify segmented resources, commit the new table last, and verify NVS/PHY and all profile bytes before resetting. + ## Default layout The default partition table contains exactly: @@ -44,37 +65,18 @@ partition bounds, unique labels, and non-overlap, then ensures the application offset matches an app partition large enough to contain it. It intentionally does not require the default partition list. CI runs the same gate. -Every image listed in `flash_args`, including user-defined resources and OTA -data, must exist, be nonempty and match the merged bytes at its configured -offset. Image ranges must stay within 8 MB and must not overlap. Additional -images must fit entirely inside a configured partition; an offset inside that -partition is allowed. Merely declaring a resource partition does not require a -preloaded image, but listing an image in `flash_args` makes it mandatory. - Upload only `build/FoloToy-AI-Passport-full.bin`; the similarly named app-only `build/FoloToy-AI-Passport.bin` does not contain the bootloader or partition table. ## Flashing and stored data -> **No backup of the firmware already installed on the device is required -> before downloading (flashing) new firmware.** Do not make reading out the -> original firmware or saving a full-Flash dump a prerequisite for this -> workflow. The new firmware replaces the original firmware; this workflow -> does not retain an automatic rollback copy or promise that the original -> firmware can be restored. - -Firmware and user data are different. If existing NVS settings, application -records, or files must be kept, export or otherwise save them before flashing -using a method supported by that application. Not requiring an original-firmware -backup does not guarantee data preservation or authorize a full-chip erase. - The verified merged image is written from `0x0`. Because the merged file pads the gaps between images, flashing it can reset the NVS and PHY data regions. Use the merged image for blank-device provisioning or an intentional complete refresh. During normal development, use segmented `idf.py flash` when existing -NVS state should be preserved; this also requires a compatible partition layout -and flash targets that do not overwrite those data regions. `idf.py erase-flash` -erases all user data. Do not add it as a routine prerequisite: use it only when -a complete erase is explicitly intended and any data that must be kept has -been saved. +NVS state should be preserved. `idf.py erase-flash` erases all user data. + +Voice resources use a contiguous logical stream split around the profile partitions, without filesystem formatting. `tools/flash_badge.py` backs up and validates before segmented installation. Merged-image padding also covers profiles 2–5; it must not be used for preserving updates. + +2.6.19 moves 896 KiB from voice capacity into the application after the approved selection: factory capacity is 0x3C0000 (3.75 MiB); voice head starts at 0x3D0000 with size 0x2C0000, and the tail stays at 0x750000 / 0x80000. The 695 clips contain 3,293,101 payload bytes, leaving 110,675 bytes after the 4,096-byte header. NVS, PHY, all profile/image/QR regions and the bootloader retain their addresses. Migration requires a verified full 8 MiB backup, writing and verifying the application and both repacked voice images, committing the partition table last, then verifying protected data. An app-only update is insufficient. diff --git a/docs/development/engineering/firmware-layout.zh_CN.md b/docs/development/engineering/firmware-layout.zh_CN.md index 4300401..3e4db07 100644 --- a/docs/development/engineering/firmware-layout.zh_CN.md +++ b/docs/development/engineering/firmware-layout.zh_CN.md @@ -7,6 +7,27 @@ 本仓库是供用户自定义固件使用的最�基础示例,目标为带 8 MB Flash 的 ESP32-C3。默认布局�预留产�专用身份�OTA 或未使用的数�分区。 +## 支�头�资料的当�分支布局 + +本分支 2.6.19 固件采用下�的自定义布局,NVS 和 PHY 地�����。�文默认模�布局仅作为开�基线�考。 + +| 分区 | 地� | 大� | +| --- | --- | --- | +| nvs | 0x9000 | 0x6000 | +| phy_init | 0xF000 | 0x1000 | +| factory | 0x10000 | 0x3C0000 | +| voice_data | 0x3D0000 | 0x2C0000 | +| badge_slots | 0x690000 | 0xC0000 | +| voice_tail | 0x750000 | 0x80000 | +| badge_user | 0x7D0000 | 0x30000 | + +`badge_user` 分为两份 0x18000 字节存档。�份包� 32 字节带 CRC 的头部�头部�最多 2048 字节 JSON�存档内 0x1000 地�起的 61,568 字节身份��,以��� 12,672 字节头�。最��写入�交头部,�动时通过��和头部/数� CRC 选择最新完整存档。分段更新固件会�留此分区和 NVS,请勿在更新时擦除整个 Flash。 + +`badge_slots` �存�外四张工牌,�张��两个 0x18000 字节存储槽。第 1 张继续使用地���的 `badge_user`。格� 2 还�存�牌(13,024 字节)�图标(2,048 字节)和二维�(4,608 字节),�个槽的有效载�共 93,920 字节。当�显示�置�存在独立的 `badge_cards` NVS 命�空间。�工牌有独立��和�交标记,写入中断��留上一份完整资料。�移已安装设备�,应备份 NVS 和工牌区域,并确认新增分区未覆盖现有应用或用户数�。 + + +2.6.8 从音效预留空间回收 128 KiB 给应用:�移动 `voice_data`,NVS�PHY 与两处工牌分区地��大����。726 段音效有效载��为 4,270,480 字节,分区总余�为 50,800 字节。格� 4 的工牌有效载�为 91,648 字节;�张工牌��留两份 96 KiB 存储槽。�移必须�新写入两个音效镜�;�止�写新应用或�改分区表。先完整备份�校验布局,�分段写入并校验资�,最��交新分区表,���校验 NVS/PHY 和所有工牌原始字节。 + ## 默认布局 默认分区表�包�: @@ -38,27 +59,16 @@ ESP32-C3。默认布局�预留产�专用身份�OTA 或未使用的数� 校验分区表 MD5�分区边界�标签唯一性和分区���,并确认应用�移对应一个 容�足够的 app 分区。门��会强制�求默认分区列表。CI 执行�一门�。 -`flash_args` 列出的�个镜�(包括自定义资�� OTA 数�)都必须存在��空, -且与�并文件中�置�移处的字节一致。镜�范围�能超过 8 MB,也�能相互��。 -�外镜�必须完整�在一个实际�置的分区内,�许从该分区内部�移开始。 -仅声明资�分区��求预装镜�,但一旦在 `flash_args` 列出镜�就必须校验它。 - �上传 `build/FoloToy-AI-Passport-full.bin`。�称相近的应用�镜� `build/FoloToy-AI-Passport.bin` �包� bootloader 和分区表。 ## 烧录与已存数� -> **�设备下载(烧录)新固件�,无需备份设备内部原有固件。** 本�程��求 -> 先读出原固件,也�把�存整片 Flash 镜�作为�置�件。新固件会覆盖原固件; -> 本�程�会�留�自动回滚的副本,也�承诺能够��原固件。 - -固件本体与用户数���。如果需��留已有 NVS 设置�应用记录或文件,应在 -烧录�通过原应用支�的方�导出或�行�存。无需备份原固件,�代表用户数� -一定�留,也�代表�以默认执行全片擦除。 - 验�通过的�并镜�从 `0x0` 写入。�并文件会对�镜�之间的空隙�填充,因此 烧录时�能�置 NVS 与 PHY data 区域。空白设备�始化或有�完整刷新时使用�并 -镜�;日常开�若��留已有 NVS 状�,应使用分段 `idf.py flash`,并且�求分区 -布局兼容�烧录目标�会覆盖这些数�区域。`idf.py erase-flash` 会擦除全部用户 -数�,�应作为常规�置步骤;仅在明确需�全片擦除且已�存需��留的数�时 -执行。 +镜�;日常开�若��留已有 NVS 状�,应使用分段 `idf.py flash`。 +`idf.py erase-flash` 会擦除全部用户数�。 + +音效打包为连续逻辑地�,跨过工牌分区�继续读�第二音效区,无需格�化文件系统。`tools/flash_badge.py` 先备份�检查,�分段安装;�并镜�内的填充会覆盖第 2–5 张工牌,�适��留资料更新。 + +2.6.19 在用户确认精简�,将音效空间中的 896 KiB 转给应用:应用容�为 0x3C0000(3.75 MiB);音效首段从 0x3D0000 开始�容� 0x2C0000,尾段�为 0x750000 / 0x80000。695 段音效共 3,293,101 字节,连� 4,096 字节头部�剩余 110,675 字节。NVS�PHY�工牌资料�头��二维�和引导程���留原地�。�移须先完�并校验整个 8 MiB 备份,�写入与校验应用和�排�的两份音效镜�,最��交分区表,并校验用户区域未�。旧版“仅刷应用�的�级方��适用于本次�移。 diff --git a/docs/development/engineering/lvgl-chinese-fonts.md b/docs/development/engineering/lvgl-chinese-fonts.md deleted file mode 100644 index 9e4b613..0000000 --- a/docs/development/engineering/lvgl-chinese-fonts.md +++ /dev/null @@ -1,164 +0,0 @@ -

- 简体中文 · English -

- -# LVGL Chinese Text: Integration and Troubleshooting - -Use this guide when adding Chinese text, changing fonts/sizes, or displaying user/network content. The [coding checklist](coding-conventions.md#chinese-fonts-and-missing-glyphs) defines acceptance; this page provides the integration procedure for the LVGL 9.5.0 version pinned in this repository. These are application examples, not changes already enabled in the baseline. - -## 1. Keep encoding, coverage, and style selection separate - -Correct rendering requires all of the following: - -| Layer | Required condition | Typical failure | -| --- | --- | --- | -| Text input | Valid UTF-8, with no truncated multibyte characters | Corrupted text even with the correct font | -| Font asset | Each requested Unicode code point exists in the font or fallback chain | Chinese is blank/boxed while Latin text works | -| Build integration | Font source is compiled, linked, and enabled | Undefined font symbol or the intended font never being used | -| Widget style | The text-drawing part actually selects that font in the active state | Only titles, popups, or selected items fail | -| Layout/rendering | Visible color/opacity, sufficient space, valid font lifetime and draw memory | Clipped or invisible text despite correct coverage | - -Montserrat 14/20 in the default configuration has no Chinese glyphs. UTF-8 only describes how to decode text; it does not install a font. Source Han Sans SC built into this LVGL version is also a subset, not the complete Chinese character set. The font asset and widget style must both be checked; see the [LVGL font overview](https://docs.lvgl.io/9.5/main-modules/fonts/overview.html). - -## 2. Verify the configuration actually used by the application - -In `idf.py menuconfig`, search for the following symbols and check the generated `sdkconfig`: - -```text -CONFIG_LV_TXT_ENC_UTF8=y -CONFIG_LV_USE_FONT_PLACEHOLDER=y -``` - -Keep placeholders enabled while developing so missing glyphs remain visible. Disabling them can turn missing text into blanks; it does not repair coverage. Do not edit generated headers or files under `managed_components/` to force these settings. - -Save source files and text resources as UTF-8. Decode JSON escapes before display, and convert any legacy-encoded input at the application boundary. Do not truncate UTF-8 by an arbitrary byte count; leave space for the terminating NUL and cut only at a character boundary. `lv_label_set_text()` copies its string, while `lv_label_set_text_static()` requires the supplied buffer to remain valid; a stack-local buffer must not outlive its scope through the latter API. - -For local builds, inspect the generated root `sdkconfig`, not just `sdkconfig.defaults`. The repository's firmware gate instead generates an isolated configuration from tracked defaults. Persist intentional settings in your application's tracked defaults and verify both configurations as described in [build and test](build-and-test.md). - -## 3. Option A: validate a built-in CJK subset - -For a small initial experiment, enable this font in your application's configuration: - -```text -CONFIG_LV_FONT_SOURCE_HAN_SANS_SC_16_CJK=y -``` - -Rebuild, then explicitly select it on a label. The following function is called only after LVGL/display initialization, in the LVGL task or while holding `bsp_lvgl_lock()`. Supply a visible parent with adequate space: - -```c -#include "lvgl.h" - -lv_obj_t *app_create_cjk_probe(lv_obj_t *parent) -{ - lv_obj_t *label = lv_label_create(parent); - lv_obj_set_style_text_font(label, &lv_font_source_han_sans_sc_16_cjk, - LV_PART_MAIN | LV_STATE_DEFAULT); - lv_label_set_text(label, "\u4E2D\u6587 ABC 123"); - return label; -} -``` - -The escapes identify U+4E2D and U+6587 and keep the example identical in both document languages. Valid UTF-8 source literals work too. This probe tests a few characters only. Before choosing this font for a product, check every actual label, punctuation mark, name, and supported input. Enabling the font does not select it globally; setting a theme/default font still does not replace explicit fonts in existing widgets. - -## 4. Option B: generate a reproducible application subset - -Prepare a licensed TTF/OTF font that contains the required glyphs. Store reusable materials under `assets/fonts/` and record their source/license in the [assets README](../../../assets/README.md). Install a pinned version of the [official converter](https://github.com/lvgl/lv_font_conv), record its version, and confirm the options with `lv_font_conv --help`. - -Run from the repository root, after creating the asset directory and replacing the example input path with your font: - -```bash -lv_font_conv \ - --font /path/to/licensed-cjk-font.otf \ - --range 0x20-0x7E,0x4E2D,0x6587,0xFF0C,0x3002 \ - --size 20 --bpp 4 --format lvgl --no-compress \ - --lv-font-name app_font_20 --lv-include lvgl.h \ - --output assets/fonts/app_font_20.c -``` - -This example requests printable ASCII, two Chinese characters, a full-width comma, and an ideographic full stop. It is not a production character inventory. Replace the range with every required code point, or use the converter's `--symbols` input with your real text. An absent glyph in the source font cannot be created by requesting its code point. Check conversion diagnostics and the generated coverage rather than assuming success means completeness. - -Keep the character inventory and conversion command under version control. Generate each required size separately, using distinct names such as `app_font_16` and `app_font_20`. Start uncompressed to avoid a decoder/configuration mismatch; if compression is introduced, enable `CONFIG_LV_USE_FONT_COMPRESSED=y` and measure its rendering and memory impact. Avoid enabling every size or a full CJK family merely to fix one missing character. - -### Compile and declare the generated source - -For this repository's `main` component, append this after the existing `idf_component_register(...)` in `main/CMakeLists.txt`; do not replace its source or dependency lists: - -```cmake -target_sources(${COMPONENT_LIB} PRIVATE - "${CMAKE_CURRENT_LIST_DIR}/../assets/fonts/app_font_20.c" -) -``` - -Alternatively, add that source to the component's existing `SRCS` list. Use only one method: do not compile the same font twice or `#include` its `.c` in another source. Include `lvgl.h` and use `LV_FONT_DECLARE(app_font_20)` in the application file or shared font header. The declaration must match the generated symbol; it does not define or link the font by itself. A separate font component must declare its LVGL dependency. - -## 5. Bind text and icons without modifying read-only fonts - -If `app_font_20` covers Chinese and ASCII but lacks the application's LVGL icons, it can fall back to the already enabled Montserrat 20. For these static generated fonts, keep a writable descriptor with application lifetime and initialize it once before any widget uses it: - -```c -#include "lvgl.h" - -LV_FONT_DECLARE(app_font_20); -static lv_font_t s_app_font_with_symbols; - -void app_fonts_init(void) -{ - s_app_font_with_symbols = app_font_20; - s_app_font_with_symbols.fallback = &lv_font_montserrat_20; -} - -lv_obj_t *app_create_font_probe(lv_obj_t *parent) -{ - lv_obj_t *label = lv_label_create(parent); - lv_obj_set_style_text_font(label, &s_app_font_with_symbols, - LV_PART_MAIN | LV_STATE_DEFAULT); - lv_label_set_text(label, "\u4E2D\u6587\uFF0C ABC 123\u3002 " LV_SYMBOL_OK); - return label; -} -``` - -Call `app_fonts_init()` first, after LVGL initialization and before creating labels. Run UI operations in the LVGL task or under `bsp_lvgl_lock()`. This shallow descriptor copy is for the static bitmap font in this example, not a general cloning method for dynamically loaded font engines. Keep the descriptor and referenced data alive for all users; never cast away `const` on an existing font or create a fallback loop. - -Fallback is directional: here the application font is tried first and Montserrat supplies only missing glyphs. It cannot supply additional Chinese characters absent from both fonts. Equal nominal sizes do not guarantee matching baselines or line heights; inspect mixed lines and reserve enough height, or regenerate compatible metrics. For Latin-first typography, deliberately reverse the primary/fallback choice using an application-owned descriptor and recheck metrics and coverage. - -Audit actual widget bindings, not just the screen/default font. `ui_pixel_label()` sets local fonts, `ui_pixel_screen_create()` uses Montserrat 20 for its title, and menu/demo labels select Montserrat explicitly. New applications should implement their own UI/font helpers. For compound widgets, inspect the part that draws text and any separately created popup list; check focused, pressed, checked, and disabled states too. - -## 6. Prove glyph coverage and identify the active font - -This helper checks a Unicode code point, not a UTF-8 byte or a multicharacter C literal: - -```c -#include "lvgl.h" - -bool app_font_has_glyph(const lv_font_t *font, uint32_t codepoint) -{ - if (font == NULL) return false; - lv_font_glyph_dsc_t glyph = {0}; - return lv_font_get_glyph_dsc(font, &glyph, codepoint, 0) - && !glyph.is_placeholder; -} -``` - -For an existing label, get `lv_obj_get_style_text_font(label, LV_PART_MAIN)` under the LVGL lock, then check that font rather than an unrelated global symbol. This getter resolves the current state; repeat after each relevant state transition. A positive result checks descriptors/fallback coverage, not successful bitmap decoding or final screen output. - -Decode all fixed text into Unicode code points and check the ones required by each size/style; omit control characters such as newline from printable-glyph checks. Log missing values as `U+XXXX`. For the generated subset above, U+4E2D/U+6587/U+FF0C/U+3002 should pass if the source provides them; U+9F98 is intentionally absent and should fail with the shown Montserrat fallback. Include a known-missing negative case so the coverage test cannot pass unconditionally. - -Dynamic content needs an explicit contract: accept a documented character set, add verified glyph coverage, or show a deliberate supported replacement/unsupported-text message. Do not silently drop unknown characters or claim that a fixed menu subset supports arbitrary names and network text. When the supported inventory changes, regenerate fonts and rerun coverage checks. - -## 7. Diagnose failures in order - -| Symptom | Next action | -| --- | --- | -| Undefined reference to a font | Check symbol spelling, CMake source registration, font enable macro, and a C-compatible declaration when consumed by C++ | -| Font file exists but nothing changes | Check the actual selected font; copying assets or declaring a symbol is insufficient | -| ASCII works, Chinese is blank/boxed | Check encoding, per-code-point coverage, and the actual fallback chain; do not disable placeholders | -| Body text works, title/popup fails | Inspect local fonts, widget parts, separately created children/popups, and state overrides | -| Glyph check passes but text is blank | Check the bitmap format/decoder, font lifetime, text color/opacity, hidden flags, and LVGL allocation errors | -| Characters overlap or lose their top/bottom | Check line height, baseline, parent clipping, label width/height, and fallback metrics | -| New strings fail after an otherwise successful build | Regenerate all affected subsets/sizes, inspect the actual configuration, and confirm the device is running the intended build | - -## 8. Validate without overstating the result - -Run the [complete repository gate](build-and-test.md) and your application's character-coverage tests. Inspect `idf.py size-components`/`idf.py size-files` for Flash/static RAM, and record runtime free heap and largest free block with the real UI and networking active. A font compiled into read-only Flash is not equivalent to allocating the whole font on the heap, but drawing/loading/caching can still require internal RAM. - -On the device, inspect every page and state, mixed text/icons, long lines, different sizes, and dynamic input at both sides of the supported-set boundary. Test after page recreation and restart, not just the first label. Record the firmware version, font/converter versions, tested character inventory, screenshots where useful, and any missing characters or layout defects. Without this check, Chinese rendering remains `Unverified`; neither the baseline host tests nor a successful firmware build verifies the examples' visual output. diff --git a/docs/development/engineering/lvgl-chinese-fonts.zh_CN.md b/docs/development/engineering/lvgl-chinese-fonts.zh_CN.md deleted file mode 100644 index fb1099a..0000000 --- a/docs/development/engineering/lvgl-chinese-fonts.zh_CN.md +++ /dev/null @@ -1,164 +0,0 @@ -

- 简体中文 · English -

- -# LVGL 中文显示:接入与排查 - -添加中文文案�修改字体/字�或显示用户/网络内容时使用本指�。[代�检查清�](coding-conventions.zh_CN.md#中文字体与缺字排查)定义验收�求,本文�供当�仓库�定的 LVGL 9.5.0 的具体接入步骤。以下都是应用开�示例,�代表基线已��用了这些�置。 - -## 1. 区分编��字形覆盖和样�选择 - -正确显示需��时满足以下�件: - -| 层次 | 必须满足 | 常�错误表现 | -| --- | --- | --- | -| 文本输入 | 有效 UTF-8,�能截断多字节字符 | �使字体正确也显示乱� | -| 字体素� | �个所需 Unicode �点都在字体或 fallback 链中 | 英文正常,中文空白/方框 | -| 编译接入 | 字体�文件已编译�链接并�用 | 字体符�未定义,或预期字体根本没用上 | -| 控件样� | 当�状�下,实际绘制文字的部件选用了该字体 | �有标题�弹窗或选中项异常 | -| 布局/绘制 | 颜色/�明度���空间足够,字体生命周期和绘制内存有效 | 字形存在,但文字被�剪或��� | - -默认�置中的 Montserrat 14/20 ��中文字形。UTF-8 �规定怎样解�文本,�会安装字库。此版本 LVGL 内置的 Source Han Sans SC 也�是�集,�是完整中文字库。必须�时核对字体素�和控件样�;�� [LVGL 字体概览](https://docs.lvgl.io/9.5/main-modules/fonts/overview.html)。 - -## 2. 核对应用实际使用的�置 - -在 `idf.py menuconfig` 中�索以下符�,并检查生�的 `sdkconfig`: - -```text -CONFIG_LV_TXT_ENC_UTF8=y -CONFIG_LV_USE_FONT_PLACEHOLDER=y -``` - -开�时�留缺字��,让问题��。关闭���能把缺字��空白,并没有补�字形。��修改生�的头文件或 `managed_components/` 内的文件�强行覆盖这些�置。 - -��和文本资��存为 UTF-8。JSON 转义应先解��显示,旧编�输入应在应用边界转�。��按任�字节数截断 UTF-8;既�给结尾 NUL 留空间,也�确�截断�置在完整字符边界。`lv_label_set_text()` 会�制字符串,`lv_label_set_text_static()` 则�求传入缓冲�续有效,�能让它在栈局部缓冲离开作用域�继续使用该地�。 - -本地构建检查生�的根目录 `sdkconfig`,�能�看 `sdkconfig.defaults`。仓库固件门�会从已跟踪的 defaults 生�隔离�置。把应用有�使用的设置写入该应用已跟踪的 defaults,并按[构建与验�](build-and-test.zh_CN.md)核对两��置。 - -## 3. 方案 A:用内置 CJK �集快速验� - -�范围�步实验�以在应用�置中�用: - -```text -CONFIG_LV_FONT_SOURCE_HAN_SANS_SC_16_CJK=y -``` - -�新编译,然�在标签上显�指定字体。以下函数�在 LVGL/显示�始化�调用,必须处于 LVGL 任务或�有 `bsp_lvgl_lock()`;传入��且有足够空间的父对象: - -```c -#include "lvgl.h" - -lv_obj_t *app_create_cjk_probe(lv_obj_t *parent) -{ - lv_obj_t *label = lv_label_create(parent); - lv_obj_set_style_text_font(label, &lv_font_source_han_sans_sc_16_cjk, - LV_PART_MAIN | LV_STATE_DEFAULT); - lv_label_set_text(label, "\u4E2D\u6587 ABC 123"); - return label; -} -``` - -转义表示 U+4E2D�U+6587,�“中文�,用���中英文文档示例一致;�法 UTF-8 ��也�直接写中文。这个探针�测试少�字符。用于产��,必须检查实际文案�标点�姓�和支�的输入。�用字体�等于全局选用它;设置主题/默认字体也�会替�现有控件显�指定的字体。 - -## 4. 方案 B:生���现的应用�集 - -准备授��许且覆盖所需字形的 TTF/OTF 字体。��用素�放在 `assets/fonts/`,��/授�记录在[素� README](../../../assets/README.zh_CN.md)。安装固定版本的[官方字体转�工具](https://github.com/lvgl/lv_font_conv),记录版本,并通过 `lv_font_conv --help` 核对�数。 - -先创建素�目录,把输入路径��实际字体,�从仓库根目录�行: - -```bash -lv_font_conv \ - --font /path/to/licensed-cjk-font.otf \ - --range 0x20-0x7E,0x4E2D,0x6587,0xFF0C,0x3002 \ - --size 20 --bpp 4 --format lvgl --no-compress \ - --lv-font-name app_font_20 --lv-include lvgl.h \ - --output assets/fonts/app_font_20.c -``` - -示例�请求�打� ASCII�“中文��全角逗�和中文��,�是正�应用的字符清�。请把范围替�为全部所需�点,或使用转�器的 `--symbols` 输入实际文案。�字体没有的字形,�能�填写�点生�;必须检查转��示�生�结果的覆盖范围,�能把命令�功等�于字形�全。 - -将字符清�和转�命令纳入版本管�。�个实际字�分别生�,使用 `app_font_16`�`app_font_20` 等���称。首次接入先�压缩,��解�器/�置�匹�;�续若使用压缩字体,�用 `CONFIG_LV_USE_FONT_COMPRESSED=y` 并测�绘制与内存影�。��为了补一个字就�用所有字�或整套 CJK 字体家�。 - -### 编译并声明生�的�文件 - -对于当�仓库的 `main` 组件,在 `main/CMakeLists.txt` 现有 `idf_component_register(...)` 之�追加以下内容,��替�原有�文件或�赖列表: - -```cmake -target_sources(${COMPONENT_LIB} PRIVATE - "${CMAKE_CURRENT_LIST_DIR}/../assets/fonts/app_font_20.c" -) -``` - -也�以把�文件加入组件已有的 `SRCS` 列表,两�方�选一���。����编译�一字体,也��在其他��里 `#include` 字体 `.c`。在应用�文件或共享字体头文件中包� `lvgl.h` 并使用 `LV_FONT_DECLARE(app_font_20)`;声明必须匹�生�的符�,声明本身�会定义或链接字体。若独立建立字体组件,该组件必须声明 LVGL �赖。 - -## 5. 绑定文字与图标,�修改�读字体 - -若 `app_font_20` 包�中文和 ASCII,但没有应用使用的 LVGL 图标,�以 fallback 到默认已��用的 Montserrat 20。对于这里的��生�字体,�留一个与应用�寿命的�写�述符,并在任何控件使用它之��始化一次: - -```c -#include "lvgl.h" - -LV_FONT_DECLARE(app_font_20); -static lv_font_t s_app_font_with_symbols; - -void app_fonts_init(void) -{ - s_app_font_with_symbols = app_font_20; - s_app_font_with_symbols.fallback = &lv_font_montserrat_20; -} - -lv_obj_t *app_create_font_probe(lv_obj_t *parent) -{ - lv_obj_t *label = lv_label_create(parent); - lv_obj_set_style_text_font(label, &s_app_font_with_symbols, - LV_PART_MAIN | LV_STATE_DEFAULT); - lv_label_set_text(label, "\u4E2D\u6587\uFF0C ABC 123\u3002 " LV_SYMBOL_OK); - return label; -} -``` - -先完� LVGL �始化,�调用 `app_fonts_init()`,最�创建标签。UI �作�须在 LVGL 任务或 `bsp_lvgl_lock()` 内执行。此处�述符浅拷��针对示例的���图字体,�是动�加载字体引擎的通用�制方�。�述符�引用的数�必须覆盖全部使用期;�得强制去掉原字体的 `const`,也�得形� fallback 环路。 - -Fallback 有方�:这里先查应用字体,仅在缺字时使用 Montserrat。两边都没有的中文�然无法显示。标称字�相����基线�行高相�;必须检查混排行并留足高度,必�时�新生�度�兼容的字体。若希望英文优先使用�一�字体,应通过应用�有的�述符明确调整主字体/fallback 方�,并�新核对度�与覆盖。 - -检查实际控件绑定,�能�看 screen/默认字体。`ui_pixel_label()` 设置局部字体,`ui_pixel_screen_create()` 的标题使用 Montserrat 20,��/demo 标签也有显� Montserrat �置。新应用应实现自己的 UI/字体辅助函数。��控件需检查真正绘制文字的部件,以��独创建的弹出列表;焦点�按下�选中和�用状�都�检查。 - -## 6. 验�字形覆盖,查明当�字体 - -以下辅助函数检查 Unicode �点,而�是 UTF-8 �字节或 C 的多字符字符常�: - -```c -#include "lvgl.h" - -bool app_font_has_glyph(const lv_font_t *font, uint32_t codepoint) -{ - if (font == NULL) return false; - lv_font_glyph_dsc_t glyph = {0}; - return lv_font_get_glyph_dsc(font, &glyph, codepoint, 0) - && !glyph.is_placeholder; -} -``` - -对于已有标签,在 LVGL �内调用 `lv_obj_get_style_text_font(label, LV_PART_MAIN)`,对获�的实际字体进行检查,而�是验�一个无关的全局字体符�。这个 getter 解�当�状�,�相关状�切��都���检查。返回�功�说明�述符/fallback 字形覆盖,��明�图解�和�幕输出�功。 - -把所有固定文案解�为 Unicode �点,按�字�/样�真正需�的字符检查;�行等控制字符�纳入�打�字形检查。缺字记录为 `U+XXXX`。对于上述生��集,若�字体包�所请求字形,U+4E2D/U+6587/U+FF0C/U+3002 应通过;U+9F98 刻�未收录,使用示例中的 Montserrat fallback 时应失败。加入已知缺字的�例,��覆盖测试无�件通过。 - -动�内容必须有明确约定:�接�已声明字符集�补��过验�的字形,或显示有�设计且能正确显示的替代字符/�支��示。��悄悄丢弃未知字符,也��把固定���集�述�支�任�姓�和网络文本。支�范围�化�,�新生�字体并�行覆盖检查。 - -## 7. 按顺�定�故障 - -| 现象 | 下一步 | -| --- | --- | -| 字体 undefined reference | 检查符�拼写�CMake �文件注册�字体�用�,以� C++ 使用时是�有兼容 C 的声明 | -| 字体文件存在但界�没�化 | 检查实际选中的字体;�制素�或声明符�都�够 | -| ASCII 正常,中文空白/方框 | 检查编����点覆盖和实际 fallback 链;��关闭�� | -| 正文正常,标题/弹窗异常 | 检查局部字体�控件部件��独创建的�对象/弹窗�状�覆盖 | -| 字形检查通过但�空白 | 检查�图格�/解�器�字体生命周期�文字颜色/�明度���标志和 LVGL 分�错误 | -| 字符��或上下被切掉 | 检查行高�基线�父容器�剪�标签宽高和 fallback 度� | -| 编译�功但新文案异常 | �新生��影�的所有�集/字�,检查实际�置,并确认设备�行的是目标构建 | - -## 8. 验�与交付边界 - -�行[完整仓库门�](build-and-test.zh_CN.md)和应用自己的字符覆盖测试。用 `idf.py size-components`/`idf.py size-files` 检查 Flash/�� RAM,�时记录真实 UI 和网络�用时的 free heap�largest free block。�读 Flash 中的字体并�等于把整个字库分�到堆中,但绘制/加载/缓存��能需�内部 RAM。 - -真机�页�状�检查混排/图标�长文本���字�和支�范围内外的动�输入。页��建����也�测,�能�看第一个标签。记录固件版本�字体/转�器版本�测试字符清�,必�时留截图,列出任何缺字与排版问题。未完�这些检查时,中文显示�属于 `Unverified`;基线 host tests 或固件编译通过都�能验�这些示例的实际显示效果。 diff --git a/docs/development/engineering/wifi-provisioning.md b/docs/development/engineering/wifi-provisioning.md deleted file mode 100644 index 4f629f2..0000000 --- a/docs/development/engineering/wifi-provisioning.md +++ /dev/null @@ -1,59 +0,0 @@ -

- 简体中文 · English -

- -# Wi-Fi Connection via Bluetooth Provisioning - -When a user needs the device to connect to a Wi-Fi network, the -[`demo/blufi-provisioning` branch](https://github.com/FoloToy/ai-passport/tree/demo/blufi-provisioning) -provides a reference for Bluetooth-based Wi-Fi setup. The phone supplies the -SSID and password over BLE using BLUFI; the device connects as a Wi-Fi station -and reports connection status. Bluetooth carries the provisioning exchange, -not the application's Internet traffic. - -This is an optional application reference. The current `main` Wi-Fi demo only -scans networks; it does not implement connection or provisioning. Do not enable -networking for applications that do not need it. - -## Mini program name - -Use the companion mini program identified by the -[exact Chinese search name](wifi-provisioning.zh_CN.md#mini-program-name). -Keep that name unchanged in setup instructions rather than inventing a -translated search name. It is the mini program's name, not the device's BLE -advertising name. The reference firmware advertises as `BLUFI_FoloPassport`. - -The intended flow is to open provisioning on the device, enable Bluetooth and -the required permissions on the phone, open the mini program, select the target -device, and provide a 2.4 GHz Wi-Fi network's credentials. Confirm that the -device obtains an IP address, then test the application's actual network -request; a successful BLE connection alone does not prove Internet access. - -## Code to inspect - -- [`main/demo_blufi.c`](https://github.com/FoloToy/ai-passport/blob/demo/blufi-provisioning/main/demo_blufi.c): BLUFI callbacks, Wi-Fi scanning/connection, credential handling, status reporting, and lifecycle. -- [`main/demo_blufi_security.c`](https://github.com/FoloToy/ai-passport/blob/demo/blufi-provisioning/main/demo_blufi_security.c) and its header: BLUFI security negotiation callbacks; do not discard them when extracting the example. -- [`main/demo_radio.c`](https://github.com/FoloToy/ai-passport/blob/demo/blufi-provisioning/main/demo_radio.c): shared initialization of NVS, `esp_netif`, and the default event loop. -- [`main/CMakeLists.txt`](https://github.com/FoloToy/ai-passport/blob/demo/blufi-provisioning/main/CMakeLists.txt) and [`sdkconfig.defaults`](https://github.com/FoloToy/ai-passport/blob/demo/blufi-provisioning/sdkconfig.defaults): source registration, dependencies, NimBLE/BLUFI, and cryptographic configuration. Copying a single C file is not sufficient. - -## Integration and acceptance - -Start from the application's current baseline, record the reference commit, -and adapt only the relevant networking logic. Do not merge the entire demo or -overwrite current BSP, partitions, or configuration with the branch's older -versions. Implement the application's own UI and keep provisioning state, -tasks, and Wi-Fi/BLE services in the application layer. - -Define provisioning entry/exit, timeouts, retry limits, credential persistence, -and an explicit way to clear saved credentials. Never log or commit Wi-Fi -passwords. Preserve LVGL locking, non-blocking callbacks, and cleanup of tasks -and event handlers; budget internal RAM for concurrent Wi-Fi, BLE, and UI use. -The example is not a complete production authorization or security design. - -Run the [validation gate](build-and-test.md), then follow the -[on-device testing handoff](../ai-guide.md#offer-on-device-testing). Test with -the named mini program: discovery, successful provisioning, wrong-password and -unavailable-network failures, reconnect/restart behavior, credential clearing, -repeated entry/exit, and an actual application network request. Build success -does not prove mini program compatibility or on-device networking; keep -unperformed checks under `Unverified`. diff --git a/docs/development/engineering/wifi-provisioning.zh_CN.md b/docs/development/engineering/wifi-provisioning.zh_CN.md deleted file mode 100644 index f98e73e..0000000 --- a/docs/development/engineering/wifi-provisioning.zh_CN.md +++ /dev/null @@ -1,52 +0,0 @@ -

- 简体中文 · English -

- -# 通过�牙�网连接 Wi-Fi - -当用户需�设备通过 Wi-Fi 连接网络时,�以�考 -[`demo/blufi-provisioning` 分支](https://github.com/FoloToy/ai-passport/tree/demo/blufi-provisioning) -的代�实现�牙�网。手机通过 BLE 上的 BLUFI �议�� Wi-Fi �称(SSID)和 -密�,设备以 Wi-Fi STA 模�连接网络并回报连接状�。�牙用于传递�网信�, -�是承载应用的互�网��。 - -这是�选的应用�考。当� `main` 的 Wi-Fi demo 仅扫�网络,并未实现�网或 -�牙�网;没有�网需求的应用�必�用网络功能。 - - - -## �程��称 - -�套�程�的准确�称为:**�牙�网-FoloToy AI PASSPORT**。 - -�用户说明或�索�程�时,请使用上述完整�称,��自行翻译或改写。 -这是�程��称,�是设备的�牙广播�;�考固件的广播�为 -`BLUFI_FoloPassport`。 - -预期�程:设备进入�网状�,手机打开�牙并授予所需��,打开该�程�, -选择目标设备,�供 2.4 GHz Wi-Fi 的�称和密�。确认设备�得 IP 地��, -�验�应用实际需�的网络请求;仅�牙连接�功�能�明能够访问互�网。 - -## 代��考入� - -- [`main/demo_blufi.c`](https://github.com/FoloToy/ai-passport/blob/demo/blufi-provisioning/main/demo_blufi.c):BLUFI 回调�Wi-Fi 扫�与连接�凭�处��状�回报和生命周期。 -- [`main/demo_blufi_security.c`](https://github.com/FoloToy/ai-passport/blob/demo/blufi-provisioning/main/demo_blufi_security.c) �其头文件:BLUFI 安全�商回调,��示例时��丢弃这些逻辑。 -- [`main/demo_radio.c`](https://github.com/FoloToy/ai-passport/blob/demo/blufi-provisioning/main/demo_radio.c):NVS�`esp_netif` 和默认事件循环的共享�始化。 -- [`main/CMakeLists.txt`](https://github.com/FoloToy/ai-passport/blob/demo/blufi-provisioning/main/CMakeLists.txt) 和 [`sdkconfig.defaults`](https://github.com/FoloToy/ai-passport/blob/demo/blufi-provisioning/sdkconfig.defaults):�文件注册��赖�NimBLE/BLUFI 和加密�置。�能��制�个 C 文件就认为完�接入。 - -## 接入与验收 - -从应用当�基线出�,记录�考�交,仅移�适用的�网逻辑。��直接�并整个 -demo,也��用该分支的旧版 BSP�分区表或�置覆盖当�版本。�新实现应用 -自己的界�,将�网状��任务� Wi-Fi/BLE �务放在应用层。 - -明确�网入�与退出�超时��试上��凭��久化�主动清除凭�的方�。 -�止记录或�交 Wi-Fi 密�。�留 LVGL ���阻塞回调�任务与事件处�器清� -机制,并评估 Wi-Fi�BLE 和 UI �时�行的内部 RAM �用。示例�等于完整的 -生产环境授�或安全设计。 - -�行[验�门�](build-and-test.zh_CN.md),��循 -[真机测试交接�程](../ai-guide.zh_CN.md#主动询问真机测试)。使用上述�程� -验�:�现设备��功�网�密�错误与网络��用��连与���清除凭�� -��进入退出�网,以�应用实际需�的网络请求。编译�功�能�明�程� -兼容性或实机�网正常;未执行的检查列入 `Unverified`。 diff --git a/docs/development/release/project-completion.md b/docs/development/release/project-completion.md index 413a823..16e418d 100644 --- a/docs/development/release/project-completion.md +++ b/docs/development/release/project-completion.md @@ -27,13 +27,6 @@ Offer the six-action menu when either signal occurs: In both cases, remind the developer that the following six closing actions are available, each selectable on its own or with others. -The [on-device testing invitation](../ai-guide.md#offer-on-device-testing) -is required after every completed firmware implementation, independently of -this menu; do not defer it until a release or a closing action is selected. -Asking is mandatory, but flashing still requires the user's approval. Follow -that handoff for device discovery, the power-on/data-cable/USB prompt when no -device is detected, and reporting tests that remain unperformed. - ## The six actions The actions are grouped by purpose. Delivery actions publish the result of the @@ -51,7 +44,7 @@ project; recording actions capture documentation and open collaboration. | ID | Action | Detail | | --- | --- | --- | | C | Publish experience | [Action C](#action-c) | -| D | Archive the application to reference | [Action D](#action-d) | +| D | Archive the application to plays | [Action D](#action-d) | | E | Update the root README | [Action E](#action-e) | | F | File an issue | [Action F](#action-f) | @@ -77,7 +70,7 @@ flowchart TD subgraph RECORDING["Recording"] CHOOSE -- C --> C["Publish experience"] - CHOOSE -- D --> D["Archive to reference"] + CHOOSE -- D --> D["Archive to plays"] CHOOSE -- E --> E["Update root README"] CHOOSE -- F --> F["File an issue"] end @@ -129,11 +122,6 @@ stop and fix before closing out. See [`CI-build-and-release.md`](../ci/CI-build-and-release.md) for the artifact and flashing. -Apply the same [device-access and consent checks](../ai-guide.md#offer-on-device-testing) -to this release artifact. Approval to publish is not approval to flash. If -device testing cannot proceed, keep it explicitly unverified rather than -treating a successful upload as completed hardware acceptance. - ## Shared safety and consent gates Every action follows the same non-negotiable rules: @@ -286,9 +274,9 @@ Decide where each learning belongs before submitting: Related: [experience index](../../reference/README.md), [fork workflow](../../fork-guide.md). -## Action D: Archive the Application to Reference +## Action D: Archive the Application to plays -This action archives a published application into the upstream `docs/reference/` application +This action archives a published application into the upstream `plays/` application archive so it is discoverable in-repository for later querying. The workflow is driven by the `plays-archive` skill. @@ -301,10 +289,8 @@ driven by the `plays-archive` skill. ### Steps 1. Confirm consent and a GitHub channel (GitHub MCP, a GitHub skill, or `gh`). -2. Generate a bilingual AI-functional summary under the repository-relative - `docs/reference///` (`README.md` / `.zh_CN.md`), merging - the root README when one exists, and register it in both language versions - of `docs/reference/README.md`. +2. Generate a bilingual AI-functional summary under `plays///` + (`README.md` / `.zh_CN.md`), merging the root README when one exists. 3. Record the publish metadata — the bilingual title and description and the source address — which include the cover image by file name and format, but do not commit the cover image itself. The archive is text-only. @@ -340,7 +326,7 @@ separate decisions. ### When this is recommended The README update is an **optional** action like the other five, and it is also -the default companion to archiving: when the application is archived to `docs/reference/` +the default companion to archiving: when the application is archived to `plays/` (action D), the README sync runs as part of that action. Archiving itself is optional — the developer may decline — but whenever a project is completed, the README should be refreshed on the hosting branch and on fork `main` so the @@ -352,9 +338,6 @@ application is registered where it is developed. modify the upstream project overview at `docs/README.md`. - Check the root README on each relevant branch (`main` and the current `feature/*` branch), not just one branch. -- A `feature/*` branch's root README describes **only that branch's application** — - what it does, its interactions, and its notes. The catalog belongs on fork `main` - alone: do not repeat it on the branch, and do not reduce it to links. - The fork `main` root README is the **catalog of the fork's projects**: it **fully includes** the content of each project's own README — a complete description of what the application does and how to use it (its interactions, diff --git a/docs/development/release/project-completion.zh_CN.md b/docs/development/release/project-completion.zh_CN.md index d13a69f..bfa5a20 100644 --- a/docs/development/release/project-completion.zh_CN.md +++ b/docs/development/release/project-completion.zh_CN.md @@ -19,11 +19,6 @@ 两�情况下都�醒开�者:下�六项收尾动作�用,�项都��独选择或组�选择。 -[主动邀请真机测试](../ai-guide.zh_CN.md#主动询问真机测试)独立于该��, -�次完整实现固件需求�都必须执行,�能推迟到�布或选择收尾动作时�询问。 -询问是必需的,但实际刷写�须用户��。设备检测�未检测到设备时的开机� -数�线�电脑 USB �示,以�未执行测试的报告方�,都�循该交接�程。 - ## 六项动作 动作用途分组。交付类动作�布项目结果;沉淀类动作�获文档与开放�作。 @@ -40,7 +35,7 @@ | 编� | 动作 | 详情 | | --- | --- | --- | | C | �布�验 | [动作 C](#action-c) | -| D | 归档应用到�考区 | [动作 D](#action-d) | +| D | 归档应用到 plays | [动作 D](#action-d) | | E | 更新根 README | [动作 E](#action-e) | | F | �交 issue | [动作 F](#action-f) | @@ -65,7 +60,7 @@ flowchart TD subgraph RECORDING["沉淀"] CHOOSE -- C --> C["�布�验"] - CHOOSE -- D --> D["归档到�考区"] + CHOOSE -- D --> D["归档到 plays"] CHOOSE -- E --> E["更新根 README"] CHOOSE -- F --> F["�交 issue"] end @@ -94,10 +89,6 @@ flowchart TD 当交付动作(A 或 B)产出了�并完整构建时,在把项目视为完��先到真机验�。下载该 release 的�并完整固件(`FoloToy-AI-Passport-full.bin`,从 `0x0` 烧录的完整构建),烧录到设备并确认正常�行。��把一次�功的构建或上传当作硬件验�:这一步�明 release 实际指�的产物能在真实硬件上�动并工作。产物�自 release 资产(CI/CD 的 `full.bin`),或对无 CI 产物的 Git release,�自开�者本地构建的 `full.bin`。若�能�行,先�下修�,�继续收�。产物与烧录� [`CI-build-and-release.md`](../ci/CI-build-and-release.zh_CN.md)。 -对�布产物�样执行[设备访问与��检查](../ai-guide.zh_CN.md#主动询问真机测试)。 -���布�等于��烧录。无法开展真机测试时,应明确�留未验�状�,�能把 -上传�功当作已�完�硬件验收。 - ## 共�的安全与��门槛 �项动作都�守下�这些���商的规则: @@ -203,9 +194,9 @@ flowchart TD 相关:[�验索引](../../reference/README.zh_CN.md)�[fork 工作�](../../fork-guide.zh_CN.md)。 -## 动作 D:归档应用到�考区 +## 动作 D:归档应用到 plays -本动作把已�布应用归档到上游 `docs/reference/` 应用归档,使其在仓库内�被�现�供�续查询。工作�由 `plays-archive` skill 驱动。 +本动作把已�布应用归档到上游 `plays/` 应用归档,使其在仓库内�被�现�供�续查询。工作�由 `plays-archive` skill 驱动。 ### 输入 @@ -215,7 +206,7 @@ flowchart TD ### 步骤 1. 确认��与�用 GitHub 通�(GitHub MCP�GitHub skill 或 `gh`)。 -2. 在相对仓库根目录的 `docs/reference///` 下生��语 AI 功能摘�(`README.md` / `.zh_CN.md`),存在根 README 时�并它,并在 `docs/reference/README.md` 的中英文索引中登记。 +2. 在 `plays///` 下生��语 AI 功能摘�(`README.md` / `.zh_CN.md`),存在根 README 时�并它。 3. 记录�布元数�——�语标题与简介���地�——其中以文件�和格�记录��图,但**��交��图本身**。归档仅文本。 4. 独立处��个分支的根 README(必需 README �步� [动作 E](#action-e))。 5. �在独立分支�交摘�;�存储固件 `.bin` 或��图。 @@ -238,13 +229,12 @@ fork 让 `main` 与上游�步�把产�工作放在 `feature/*` 分支上, ### 何时推� -README 更新与其他五项一样是**�选**动作,也是归档的默认伴�动作:当应用归档到 `docs/reference/`(动作 D)时,README �步�该动作�行。归档本身�选——开�者�拒�——但�当项目完�,都应在承载分支与 fork `main` 上刷新 README,让应用在它被开�的地方被登记。 +README 更新与其他五项一样是**�选**动作,也是归档的默认伴�动作:当应用归档到 `plays/`(动作 D)时,README �步�该动作�行。归档本身�选——开�者�拒�——但�当项目完�,都应在承载分支与 fork `main` 上刷新 README,让应用在它被开�的地方被登记。 ### 规则 - �碰 fork 拥有的根 README(`README.md` / `README.zh_CN.md`);�改 `docs/README.md` 的上游项目概览。 - 检查�个相关分支(`main` 与当� `feature/*` 分支)的根 README,而��是分支其一。 -- `feature/*` 分支的根 README **�介�本分支自己的应用**——�什么�怎么用�相关说明;全项目目录�放在 fork `main`,��在分支上��它,也��把目录简化�链接。 - fork `main` 的根 README 是 **fork 项目的目录**:它**完整包�**�项目自身 README 的内容——应用�什么�怎么用的完整�述(交互�模��按键��久化与说明)——而�是一行简介加分支链接。内容�自承载分支的 README。 - fork 根 README 与承载分支的根 README 都是 fork 拥有内容,直接�交(merge)而�开 PR;�有�图�上游时�开 PR。 - �守仓库语言规则:默认 `.md` 用英文��对的 `.zh_CN.md` 用简体中文,�一�更里对�。 diff --git a/docs/development/release/publish-to-community.md b/docs/development/release/publish-to-community.md index 8bb63c3..2e3061b 100644 --- a/docs/development/release/publish-to-community.md +++ b/docs/development/release/publish-to-community.md @@ -12,7 +12,7 @@ Use this when the project is being **released** — that is, when the code is fi When the developer says "publish" or "release", the first thing to decide is **where** to publish. Do not assume a route. -- **To the community** — release the firmware to the [AI Passport Community market](https://ai-passport.folotoy.cn). Use the publisher workflow below. See also the [project completion flow](project-completion.md) once it is published. +- **To the community** — release the firmware to the [AI Passport Community market](https://ai-passport.folotoy.cn). Use the publisher workflow below. See also the project completion flow (`docs/development/project-completion.md`) once it is published. - **To Git** — publish the finished code to a version-controlled repository. The flow is: commit the finished code, then open a release for it. The release artifact may be produced by the CI/CD pipeline (**recommended**, tag-triggered via `.github/workflows/build-firmware.yml`), or it may be a local `.bin` the developer already built. Follow the repository commit and PR rules (`docs/contribution/commit-and-pr.md`) and the fork workflow (`docs/fork-guide.md`); see [`CI-build-and-release.md`](../ci/CI-build-and-release.md) for the automated build and release artifacts. - **Neither yet** — the code is not finished and usable; keep developing, do not publish. @@ -47,17 +47,15 @@ The skill's `SKILL.md` defines the exact workflow: inspect the project, prepare The assistant fetches the official bundle from the URL in the prompt and follows the workflow described in its `SKILL.md`. No skill needs to be kept or committed in this repository; the prompt reproduces the official install source each time. -## After publishing: archive to reference +## After publishing: archive to plays Once the firmware is published, ask the developer whether to archive this application -into the upstream repository's [`docs/reference/`](../../reference/README.md) application +into the upstream repository's [`plays/`](../../reference/README.md) application archive. If they agree, generate an AI-generated functional summary for the application under -the repository-relative `docs/reference///` (bilingual -`README.md` / `.zh_CN.md`). The archive is +`plays///` (bilingual `README.md` / `.zh_CN.md`). The archive is **text-only**: record the cover image only by its file name and format as publish -metadata, and do **not** commit the cover image into `docs/reference/` (see the convention in -[`docs/reference/README.md`](../../reference/README.md)). Register the application -in both language versions of that index. Do not store the firmware `.bin` here +metadata, and do **not** commit the cover image into `plays/` (see the convention in +[`plays/README.md`](../../reference/README.md)). Do not store the firmware `.bin` here either. Use the `plays-archive` skill, which opens the archive PR against the upstream `FoloToy/ai-passport`. diff --git a/docs/development/release/publish-to-community.zh_CN.md b/docs/development/release/publish-to-community.zh_CN.md index e788371..2973e2f 100644 --- a/docs/development/release/publish-to-community.zh_CN.md +++ b/docs/development/release/publish-to-community.zh_CN.md @@ -12,7 +12,7 @@ 当开�者说"�布"或"�版"时,第一件事是决定**�到哪里**。��默认其中一�。 -- **�布到社区** —— 把固件�布到 [AI Passport 社区市场](https://ai-passport.folotoy.cn)。走下�的 publisher 工作�;�布��[项目开�完��程](project-completion.zh_CN.md)。 +- **�布到社区** —— 把固件�布到 [AI Passport 社区市场](https://ai-passport.folotoy.cn)。走下�的 publisher 工作�;�布��项目开�完��程(`docs/development/project-completion.md`)。 - **�布到 Git** —— 把开�完�的代��布到版本仓库。逻辑:先**�交**完��的代�,�为它**开 release �程**。release 产物�由 **CI/CD �水线生�(推�)**,tag 触� `.github/workflows/build-firmware.yml` 自动构建;也**�用开�者本地已构建的 `.bin` 文件**。�循仓库�交与 PR 规则(`docs/contribution/commit-and-pr.md`)与 fork 工作�(`docs/fork-guide.md`);自动构建与产物� [`CI-build-and-release.md`](../ci/CI-build-and-release.zh_CN.md)。 - **还没到�布时机** —— 代�尚未开�完���能使用;继续开�,��布。 @@ -49,13 +49,12 @@ skill 的 `SKILL.md` 定义了精确�程:检查项目�准备中英文标 助手从�示�里的 URL 拉�官方包,并按其中 `SKILL.md` �述的工作�执行。本仓库无需�留或�交该 skill;�示��次都会�现官方安装�。 -## �布之�:归档到�考区 +## �布之�:归档到 plays -固件�布�,询问开�者是�把该应用归档到上游仓库的 [`docs/reference/`](../../reference/README.zh_CN.md) -应用档案。若��,在相对仓库根目录的 `docs/reference///` 下生�该应用的 AI 功能总结(�语 +固件�布�,询问开�者是�把该应用归档到上游仓库的 [`plays/`](../../reference/README.zh_CN.md) +应用档案。若��,在 `plays///` 下生�该应用的 AI 功能总结(�语 `README.md` / `.zh_CN.md`)。档案为**纯文本**:��图�记录文件�与格�作为�布元数�, -**��**把��图�交进 `docs/reference/`(约定� [`docs/reference/README.md`](../../reference/README.zh_CN.md)), -并在该索引的中英文版本中登记应用。 +**��**把��图�交进 `plays/`(约定� [`plays/README.md`](../../reference/README.zh_CN.md))。 也��在这里存固件 `.bin`。用 `plays-archive` skill,它会�上游 `FoloToy/ai-passport` 开归档 PR。 diff --git a/docs/face-clock.md b/docs/face-clock.md new file mode 100644 index 0000000..9e886b5 --- /dev/null +++ b/docs/face-clock.md @@ -0,0 +1,41 @@ +

简体中文 · English

+ +# XiaoZhi expressions and shared clock + +Version 2.6.17 offers four switchable styles: a cute character, a male portrait with a rounded bald head, soft reflection and small glint and a female portrait with a rounded bob, hair clips and earrings, and King of the Road. Both portraits use a balanced facial grid, small nose and rounded cheeks. The cute character is rounded with short ears, a curled tuft, cheeks and small paws. It supports all 21 XiaoZhi emotion tags, with three curated poses per tag (63 poses per style, 252 total). Original SVG sources are in `assets/images/xiaozhi-face/`. Run `python tools/generate_face_assets.py` with Pillow to regenerate the checked-in A8 masks. The offline converter deliberately accepts only the SVG elements used by these assets. Firmware builds use the generated arrays and do not require an SVG/GIF decoder. + +The cropped, deduplicated, losslessly compressed alpha masks occupy 136,196 bytes before image descriptors: three silhouettes, bald highlights, portrait nose/ear details, female hair and accessories, and 26 shared portrait eye shapes (21 emotions, a blink and four extra eye styles), 24 mouth shapes (21 emotions plus three PCM-driven speaking shapes), and eight shared decorations. SVG sources can be recreated with `python tools/draw_face_sources.py`; run `python tools/draw_abstract_sources.py` for the cartoon portrait, then regenerate the arrays. Alpha masks use the badge accent/text/background colors, selecting contrasting facial ink. A changed emotion refreshes the character area once; ordinary mouth/blink changes invalidate only their small rectangles; no full-screen animation buffer or frame queue is added. The UI's existing timer performs updates and is stopped with LVGL on screen sleep; it is deleted before page teardown. + +Cloud `llm.emotion` selects a dedicated three-pose pool for each of these tags: `neutral`, `happy`, `laughing`, `funny`, `sad`, `angry`, `crying`, `loving`, `embarrassed`, `surprised`, `shocked`, `thinking`, `winking`, `cool`, `relaxed`, `delicious`, `kissy`, `confident`, `sleepy`, `silly`, `confused`. Glasses, tears, hearts, blush, a thinking hand and small symbols distinguish the character poses. Listening/thinking/error states take precedence. Unsupported emotions fall back to neutral. Speaking mouth size follows the latest successfully written PCM envelope, not caption progress or receipt of a server speaking message. Its monotonic deadline is 100 ms after a successful write, allowing for the existing six 240-sample DMA buffers at 16 kHz. The UI returns stale speaking mouths to the current emotion's static mouth on its next tick even if the server still reports speaking. Pausing, interruption and state changes also end the speaking motion. Static laughter or surprise may have an open mouth by design. Automatic blinking does not overwrite glasses or a deliberate wink. This is an amplitude visualization, not phoneme-accurate lip synchronization; final physical timing still needs a speaker/display measurement. + +The voice worker owns a RAM-only shuffle bag for each emotion. All three poses are used before refilling the bag; the last pose is excluded from the first draw of the next bag. Repeated copies of the same tag within a reply hold the current pose and do not consume the bag. A new conversation turn or an explicit change to a different emotion allows another choice. Leaving the session or rebooting resets this history. Missing emotion fields are ignored; unknown nonempty tags fall back to neutral. Rendering never draws a random choice on every timer tick. The eye/mouth offsets and shared hearts, tears, stars and hand positions belong to the selected pose; after PCM expires the same pose's static mouth is restored. + +The common header displays only `HH:mm` in 24-hour China standard time (UTC+8), without a date. After Wi-Fi obtains an IP address, asynchronous SNTP synchronizes UTC through `ntp.aliyun.com`; reconnection restarts synchronization. A clock that has not yet been set displays `--:--`. No Chinese clock placeholder is drawn. Once synchronized, the system clock continues while temporarily offline; a cold boot without network cannot recover wall-clock time. No global timezone or saved profiles are changed. Existing once-per-second status processing updates the text only when it changes and skips screen-off rendering. + +Host tests cover clock rollover, unset time, emotion fallback, silence/interruption, stale audio and 32-bit monotonic wraparound. Tests also cover a unique mapping for every tag, restoration of each static mouth after expiry and unknown-tag fallback. Rendering checks must include the longest header (100% battery, badge count, Wi-Fi), both clock states, mouth expiry without a new network message and repeated page lifecycles. Builds and host tests do not establish real speaker/animation synchronization or cloud recognition quality. + +Settings → XiaoZhi AI → Expression style switches between the cute, male, female and King of the Road styles with OK. The choice is persisted in NVS `xiaozhi/face_style`; existing installations keep the cute style by default. Navigation performs writes outside the LVGL lock; rendering only reads an atomic cache. Missing/invalid values default to cute, and a failed save preserves the previous selection. + +Thinking is visually held for at least 900 ms. If reply audio starts sooner, only the thinking eyes are retained: PCM-driven mouth movement, audio and subtitles continue immediately. The latest emotion appears after the deadline. Listening, pause, error and activation cancel the hold immediately. The UI refresh period can add one tick to the visual deadline. Host coverage includes timer wraparound, cancellation, NVS failures and 252 rendered poses; real conversation timing still requires device observation. + +Persisted style IDs remain compatible: 0 is cute, 1 is the redesigned male portrait and 2 is the female portrait and 3 is King of the Road. Settings cycle through all four and restore the choice on reboot. Existing cartoon-portrait selections become the redesigned male avatar. Female contour, hair and accessories reuse the portrait facial parts, avoiding a full image per emotion. + +Conversation shortcuts: hold Up to cycle and save cute, male, female and King of the Road styles without stopping the audio worker or recreating the conversation UI. Hold Down to open XiaoZhi settings directly, using the existing stop/connection-reuse path. Back or Start conversation from this entry returns to chat, preserving its earlier return destination. Short Up/Down adjusts volume, OK starts/pauses/interrupts and long OK opens the return chooser. Host tests verify glyph coverage and width for the single bottom hint row. + +2.6.15 redraws all 21 human mouth shapes and curved eyelids and uses dedicated human three-pose combinations instead of mascot lips. A shorter nose, restrained brows/blush and smaller tear drops avoid feature collisions. Only the third funny pose retains a laughter tear. Bald-head reflection and glint are static theme-aware alpha layers, adding no high-frequency animation timer or audio delay. + +2.6.16 adds King of the Road (persisted ID 3), redrawn from the user reference with a broad round face, fluffy short hair, horizontal brows, tiny eyes and restrained lips. The source image scene/text is not included. Skin, hair, features, nose, collar, blush and tears derive from the badge palette with contrasting facial ink, rather than fixed reference colors. Its 21 emotions and three small PCM mouth shapes use the human three-pose recipes. Run `python tools/draw_round_sources.py` before the shared asset converter. Eye halves are cropped and deduplicated separately to remove transparent space without changing pixels or introducing runtime decompression. Hold Up in conversation to cycle/save four styles, or hold Down to open XiaoZhi settings. + +2.6.17 uses row-indexed lossless run-length encoding, retaining raw A8 for small assets that do not shrink. Each draw session decodes only visible rows into one scanline (at most 160 pixel bytes plus LVGL bookkeeping); no full-face cache or grayscale reduction is used. All 252 complete renders match 2.6.16 pixel for pixel. Screen teardown removes the decoder and its header cache entries. + +Recognized input has its own two-line area and persists until the next recognition, including automatic re-listening. Long input starts at the beginning and advances two lines every three seconds, holding the final page before looping. The reply below keeps its independent audio clock and typewriter effect; audio and reply text never wait for input reading. Error and activation pages hide the conversation areas. + +## Road King default expression (2.6.32) + +Only Road King remaps neutral/default expressions: variants A and B use angry poses, and C uses a confident pose. The existing three-variant shuffle yields two angry and one confident pose per completed neutral cycle, not a fixed time ratio. Explicit emotions, thinking/error overrides and PCM-driven mouth timing retain their existing meaning. Automatic blinks preserve angry brows. Other portrait styles are unchanged. + +2.6.33 gives Road King matching left/right eye geometry and mirrored pixel masks. Winking is represented by a coordinated two-eye blink; anger/confidence mapping is retained. Other avatar assets are unchanged. + +## Paired eyes and tears (2.6.34) + +All four styles use mirrored left/right eye masks. Winks are coordinated two-eye blinks; crying and laughter render two matching tears at the same height, following the eye offset. Sweat drops are also paired. This symmetry is baked offline and adds no runtime mirroring. Source SVG left halves are the authoring reference; the asset generator also normalizes eye highlights and tear masks. Road King retains its angry/confident default mapping. Each of the four styles retains 21 emotions and three distinct poses per emotion. diff --git a/docs/face-clock.zh_CN.md b/docs/face-clock.zh_CN.md new file mode 100644 index 0000000..c2e19ff --- /dev/null +++ b/docs/face-clock.zh_CN.md @@ -0,0 +1,41 @@ +

简体中文 · English

+ +# �智表情与通用时钟 + +2.6.17 �供四套�切�风格:圆�精��男生头��女生头�和公路之王。男生采用圆润光头�柔和�光和�高光,女生采用圆弧短���夹与耳饰;两版使用统一的眉眼间���鼻�与圆润脸型;圆�精�使用圆脸�短耳朵���毛�腮红和�爪�的角色,支��智全部 21 �情绪标签,��有三款专属造型,�套 63 款,四套共 252 款。原创 SVG �文件�于 `assets/images/xiaozhi-face/`。安装 Pillow �,�行 `python tools/generate_face_assets.py` ��新生�已纳入��的 A8 �明度图片。离线转�器�接�这些素�实际使用的 SVG 元素。固件构建直接使用生�的数组,�需� SVG 或 GIF 解�器。 + +�剪空白�去�并无�压缩�的�明度图片共 136,196 字节,��图片�述符:三套头�轮廓�光头高光�男女头�的鼻耳细节�女生�型与�饰;人�共用 26 �眼�与 24 �嘴形,精��留自身部件。眼�涵盖 21 �情绪�眨眼和四�新增样�;嘴形涵盖 21 �情绪和三档说�动作。�有八�共用装饰。��行 `python tools/draw_face_sources.py` �建 SVG �文件,�行 `python tools/draw_abstract_sources.py` �建男女头�,然��生�数组。颜色�自工牌强调色�文字色和背景色,并自动选择对比度较高的五官颜色。情绪改�时刷新一次角色区域,普通嘴部和眨眼�化��绘�区域,�增加全�动画缓存或动画帧队列。使用界�已有定时器,��时� LVGL �止,退出页��删除。 + +云端 `llm.emotion` 为以下��标签选择一个专属的三款造型池:`neutral`�`happy`�`laughing`�`funny`�`sad`�`angry`�`crying`�`loving`�`embarrassed`�`surprised`�`shocked`�`thinking`�`winking`�`cool`�`relaxed`�`delicious`�`kissy`�`confident`�`sleepy`�`silly`�`confused`。使用墨镜�眼泪�爱心�腮红��考手势等区分造型。倾���考和错误状�优先;未支�的情绪回退为普通表情。说�时的嘴形跟�最近一次�功写入的 PCM 音频能�,�跟�字幕进度或�务器的说�通知。�次�功写入�设置 100 毫秒有效期,以覆盖现有 16 kHz 下六个 240 采样 DMA 缓冲区。�便�务器�标记说�,超过有效期也会在下次界�刷新时��当�情绪的��嘴形。暂��打断�状�切�会结�说�动作。大笑或惊讶的��嘴形本身�以张开;自动眨眼�会替�墨镜或�眼眨眼。这是振幅�视化,�是�音素对�型;实际声画结�时间�需扬声器和�幕��测�。 + +语音任务在内存中为��情绪维护轮�池,三款用完���新装入,下一轮首次选择会�开上次最�一款。�一�回�中��收到相�标签时,��原造型且�消耗池中的选项;新一轮对�或情绪明确切�为其他标签时,��许�新选择。会�销�或���清空历�。缺少情绪字段的消�被忽略,未知的�空标签回退为普通表情。界�刷新定时器�会���机选款。眼��嘴巴�移以�爱心�眼泪�星光和手势�置�属于选定造型;音频过期����一款造型的��嘴形。 + +通用顶部�显示 24 �时制北京时间(UTC+8)`HH:mm`,�显示日期。Wi-Fi 获�地��通过 `ntp.aliyun.com` 异步 SNTP 校时,�连会�新�起校时。尚未校时显示 `--:--`,�显示中文时间�示。校时�暂时断网��走时;完全断电�若无法�网,则�能��真实时间。�修改全局时区或已�存工牌。�用�秒状�检查,仅在文字改�时刷新,��跳过绘制。 + +主机测试覆盖跨日�未校时�未知情绪��音和打断�音频过期�32 ��调时钟回绕。�时测试全部标签的独立映射�过期����自��嘴形�未知标签回退。绘图检查包括顶部最大内容(100% 电��工牌���Wi-Fi)�校时���没有新网络消�时自动闭嘴���进出页�。编译�主机测试�能代替实际声画�步和云端识别验�。 + +在设置 → �智 AI → 表情风格按 OK 切�「圆�精� / 男生头� / 女生头� / 公路之王�。选择�存到 NVS 的 `xiaozhi/face_style`,�����;旧固件�级默认沿用圆�精�。写入在导航任务中�LVGL �外进行,绘制�读原�缓存。读�到或�到�法值回退默认风格,�存失败�留原选择。 + +进入�考状��,�考表情最少展示 900 毫秒;��开始回�时��留�考眼神,嘴形立�跟� PCM,字幕与声音�等待。900 毫秒结��显示最新情绪。暂���新倾��错误和绑定状�会立��消�留。该时间是视觉下�,界�刷新�能�增加一个刷新周期。主机测试覆盖跨计时回绕��消�NVS �存失败和四�风格的 252 个渲染结果,实机音画体验需实际对�验�。 + +风格编���兼容:0 为圆�精�,1 为�新设计的男生头�,2 为女生头�,3 为公路之王。设置�次轮�这四�风格,�存�����;已选择旧涂鸦人�的设备�级�使用新版男生头�。女生独有的轮廓��型��夹与耳饰和人�共用五官组�,无需为��情绪存储整张图片。 + +对�页快��作:长按上键�次切�圆�精��男生头��女生头��公路之王并�存,��止语音任务或�建对�界�。长按下键直接进入�智设置,沿用�止/�用连接�程;从该设置入�选择返回上一页或开始对�会回到�智,对�页原�的返回目标�留。短按上下调音�,OK 控制开始/暂�/打断,长按 OK 打开返回选择。底部�示使用�一行,字库覆盖和总宽度�由主机测试检查。 + +2.6.15 为人��独�画全部 21 �嘴形和圆弧眼�,�新��人�专用的三款情绪�体,���用精�嘴形。缩短鼻部��少夸张眉眼和腮红,泪滴缩�至独立部件;有趣表情仅第三款�留笑泪。男生光头的柔光和�高光为���明度层,�主题�色,�增加高频动画定时器或音频等待。 + +2.6.16 新增「公路之王�(�存编� 3),按用户�供的�考图�绘宽圆脸�蓬�短��横眉��眼�和收敛嘴形;周围场景与�考图上的文字�属于头�素�。肤色�头��五官�鼻线�衣领�腮红和泪滴全部从当�工牌主题计算,选择对比度较高的五官颜色,�固定使用�考图原色。独立绘制 21 �情绪�三档�幅说�嘴形,使用人�三款组�规则。�行 `python tools/draw_round_sources.py` 更新 SVG,��行通用转�器。左�眼分开�剪并去�,去掉�明间�,�留原�素;此版本�在设备上解压或解� SVG;2.6.17 改为下述�行无�解�。对�中长按上键�次切�四�风格并�存,长按下键进入�智设置。 + +2.6.17 将�明度数�按行进行无�游程压缩,�值得压缩的�图�留原始 A8。�行带�移索引,�解�需��绘的行;�次绘图会��分�一行(最多 160 字节�素,�� LVGL 管�开销),�缓存整张脸,也�改��度�主题颜色或表情组�。252 张完整渲染画�与 2.6.16 ��素一致。退出页�清�解�器�其头信�缓存。 + +输入字幕使用独立的两行区域,�留到下一次识别,��被回�瞬间替�;��倾�时也�留。长�从开头显示,�三秒翻动两行,到末页�留�循环。下方回���独立音频时钟和�字显示,声音与回�字幕�等待输入阅读。错误和绑定页���对�区域。 + +## 公路之王默认神�(2.6.32) + +仅公路之王调整 neutral�默认表情:�体 A�B 使用愤怒神�,C 使用自信神�。沿用三�体轮�,�轮完整的默认表情选择中为两次愤怒�一次自信,并�固定时间�比。明确情绪��考和错误状�覆盖�音频驱动嘴形��原有�义;自动眨眼�留愤怒眉形。其他头�风格��。 + +2.6.33 将公路之王的左�眼统一为�对几何形状,并在�素层镜�,���尺寸下两眼粗细�一。眨眼改为�眼�步;愤怒�自信映射�留,其他头�资���。 + +## �眼与泪滴�对(2.6.34) + +四套风格统一使用左�镜�眉眼;眨眼为�眼�步,哭泣与笑哭�显示两滴等高�相�大�的眼泪,并跟�眼��移。汗滴也改为左��对。对称处�在离线素�生�时完�,�增加设备�行时镜�计算。SVG 左�边为绘制�考,生�器也统一瞳孔高光和泪滴�素。「公路之王��留愤怒�自信默认映射,�套风格��留 21 �情绪�� 3 个��造型。 diff --git a/docs/firmware-optimization.md b/docs/firmware-optimization.md new file mode 100644 index 0000000..e3a59a5 --- /dev/null +++ b/docs/firmware-optimization.md @@ -0,0 +1,65 @@ +

简体中文 · English

+ +# Firmware size and conversation stability — 2.6.1 + +## Flash and RAM are different budgets + +The 2.6.0 application occupied 2,869,952 bytes of a 2,883,584-byte factory +partition, leaving 13,632 bytes. That limit concerns stored firmware, not free +runtime heap. A nearly full application partition does not establish that a +conversation disconnected because of RAM exhaustion. + +The application was still built with `CONFIG_COMPILER_OPTIMIZATION_DEBUG`. +Use `CONFIG_COMPILER_OPTIMIZATION_SIZE=y` for release builds. The initial size-only +build occupied 2,689,312 bytes, saving 180,640 bytes and leaving 194,272 bytes. +The final image also contains the connection diagnostics/recovery changes, so its +size must be read from `verify_firmware.py` rather than this intermediate result. +No partitions, image quality, font coverage, wake models or sound clips were removed. +Assertions and TLS certificate verification remain enabled. + +Size optimization also exposed a compiler warning in radio display-name assembly. +The city prefix now reserves room for the frequency suffix and ends on a UTF-8 +boundary before bounded copies; compiler warnings were not globally disabled. + +## Unwanted exit and disconnect handling + +2.6.0 considered 20 seconds of low PCM amplitude while listening to be inactivity. +When background wake was enabled, navigation could close an active conversation +on that basis. The new policy only returns paused or normally ended sessions to +local wake after 60 seconds. Listening/thinking/speaking and displayed errors do +not qualify. This is a confirmed code issue, not proof that every reported drop +had that cause. + +Classified faults distinguish transport, timeout, allocation, message/PCM queue, +protocol, audio and a service `goodbye`. The first failure logs numeric state, +free heap, largest allocatable block and minimum heap; no credentials or transcript +are added. MQTT errors include numeric TLS/socket details. Intentional teardown +does not produce another failure. A service goodbye shows a normally ended +conversation instead of reporting every closure as a network fault. + +An active conversation interrupted by transport/response timeout can retry at +1/2/4 seconds, at most three attempts. A completed answer resets the retry budget; +merely connecting does not. User exit stops recovery. Memory/protocol/audio/queue +errors are kept visible for explicit retry rather than repeatedly reconnecting. +Activation still requires user action. Reconnection starts a new session and +does not replay a partial utterance or pending device-control commands. + +## Validation + +Host tests exercise active silence, the paused/ended timeout, visible errors, +retry bounds and non-retryable faults. Existing navigation and resource gates +remain required. `BADGE_XIAOZHI_STABILITY_PROBE` uses a fixed synthetic greeting, +not microphone recordings. It exercises five cloud replies, a 22-second silent +listening interval and one injected transport fault followed by reconnection. +The probe records packet counts, heap, largest block and worker stack margin. +Always disable it in release firmware. + +Finite bench runs cannot prove arbitrary Wi-Fi/server reliability, long-term heap +stability or acoustic performance. The user's original disconnection was not +captured by the initial passive log; do not label it a confirmed memory failure. + +## Measured results + +The release app is 2,689,072 bytes, leaving 194,512 bytes (about 190 KiB), a reduction of 180,880 bytes from 2.6.0. + +Five device replies decoded 49/49, 36/36, 49/49, 62/62 and 49/49 packets. The conversation survived 22 seconds of silence; the first reconnect recovered the injected fault and replies continued. Reply-time free heap was 36,660–36,872 bytes, largest block 17,408 bytes, historical minimum at injection 11,276 bytes and worker stack margin 3,008 bytes. No actual allocation failure occurred; finite samples do not establish that all workloads are safe from memory pressure. diff --git a/docs/firmware-optimization.zh_CN.md b/docs/firmware-optimization.zh_CN.md new file mode 100644 index 0000000..8a09794 --- /dev/null +++ b/docs/firmware-optimization.zh_CN.md @@ -0,0 +1,49 @@ +

简体中文 · English

+ +# 固件体积与对�稳定性 — 2.6.1 + +## Flash 与 RAM 是��的空间 + +2.6.0 应用� 2,869,952 字节,应用分区为 2,883,584 字节,剩余 13,632 字节。 +这是存储固件的�制,�是�行时空闲堆内存;应用分区快满,�能�明对�因 RAM �足而断开。 + +原应用�使用 `CONFIG_COMPILER_OPTIMIZATION_DEBUG`,�布改为 +`CONFIG_COMPILER_OPTIMIZATION_SIZE=y`。首次��体积优化的构建为 2,689,312 字节, +�少 180,640 字节�剩余 194,272 字节。最终镜�还包�断线诊断与��功能, +最终体积以 `verify_firmware.py` 为准,�使用这个中间结果代替。 +没有删除分区��低图片质���剪字体覆盖�移除唤醒模型或删�音效,�留断言与 TLS �书校验。 + +体积优化使编译器�现电�显示�称的截断警告。已为频率�缀预留空间, +城市�缀在完整 UTF-8 字符边界截断�进行有界�制,没有全局关闭编译告警。 + +## 自动退出与断开处� + +2.6.0 将连续 20 秒低 PCM 音�的��判为空闲,��唤醒开�时,导航�能�此 +主动关闭�活跃的对�。新策略仅对暂�或正常结�的会�闲置 60 秒�返回��等待; +����考�回答�错误�示�适用。该代�问题已确认,但�能�此断言用户所有断线都由它造�。 + +新增故障分类:传输�超时�内存分��消��音频队列��议�音频处���务端 goodbye。 +首次失败记录状�编���用堆�最大连续��历�最�堆,�新增凭�或对�原文日志。 +MQTT 错误记录数字形�的 TLS�socket 信�;主动清����报错。 +�务端 goodbye 显示正常结�,��将所有关闭都�述�网络断开。 + +活跃对�中的传输失败或�应超时,最多按 1�2�4 秒间隔�连三次; +完整回答�功���置�试预算,仅连接�功�会�置。用户退出会�止��。 +内存��议�音频和队列异常�留错误�示,需主动�试;激活�需用户�作。 +�连建立新会�,��放已说一�的录音或待执行设备指令。 + +## 验� + +主机测试覆盖活跃���顿�暂��结�超时�错误�留��试次数与�应�试的故障类型, +继续执行既有导航和资�检查。`BADGE_XIAOZHI_STABILITY_PROBE` 使用固定��问候语, +�上传真实麦克风录音;检查五轮云端回��22 秒�默��,以�一次模拟传输故障�的�连, +记录音频包数�堆内存�最大连续�和线程栈余�。�布时必须关闭。 + +有��架测试�能�明任� Wi-Fi��务端环境�长时间内存稳定性或实际声学表现。 +最�被动日志未�获用户所说的断开,�能将其标为已确认的内存�足故障。 + +## 实测结果 + +正�应用 2,689,072 字节,应用分区剩余 194,512 字节(约 190 KiB),比 2.6.0 �少 180,880 字节。 + +实机五轮回�分别为 49/49�36/36�49/49�62/62�49/49 个音频包;22 秒�默�会��在,模拟故障�第 1 次�连�功并继续回答。回�阶段空闲堆约 36,660~36,872 字节,最大连续� 17,408 字节,故障注入时历�最�堆 11,276 字节,语音线程栈余� 3,008 字节。未出现实际分�失败;这些有�采样�能�明所有�行情况都�会内存�足。 diff --git a/docs/fork-guide.md b/docs/fork-guide.md index 927fcc4..44802ab 100644 --- a/docs/fork-guide.md +++ b/docs/fork-guide.md @@ -20,13 +20,6 @@ sdkconfig.defaults reproducible ESP32-C3 defaults The root `README.md` path is intentionally available to a fork owner. Upstream's project overview is `docs/README.md`, which GitHub displays when no root README exists. A fork may add its own root README to explain its product without replacing upstream documentation. -Root README content follows the branch model. A `feature/*` branch's root README -describes only that branch's application: what it does, its interactions, and its -notes. The fork `main` root README is the catalog of every hosted project and keeps -one section per application, refreshed when an application is released or archived. -Do not repeat the whole catalog on a feature branch, and do not reduce the `main` -catalog to a list of links. - ## Fork rules - Keep fork `main` synchronized with `FoloToy/ai-passport:main`. @@ -37,6 +30,6 @@ catalog to a list of links. Use `docs/assets/` for architecture notes, product design, and images that supplement a fork's README. Upstream keeps that directory empty except for `.gitkeep`; fork-private content must not be proposed back to upstream. -Documentation and experience follow the same split. Fork-specific product customization (architecture notes, product design, fork-only assets) stays in the fork under `docs/assets/` and is not proposed back upstream. General, upstream-benefiting documentation or experience improvements — durable facts, reusable interfaces, build or release-flow improvements that help any AI Passport user — are submitted back upstream as a pull request. Application archives under the repository-relative `docs/reference///` and post-release experience notes under `docs/reference//` belong upstream and are proposed back as pull requests. Use the `experience-pr` and `plays-archive` skills for post-release work; see `docs/development/release/project-completion.md`. +Documentation and experience follow the same split. Fork-specific product customization (architecture notes, product design, fork-only assets) stays in the fork under `docs/assets/` and is not proposed back upstream. General, upstream-benefiting documentation or experience improvements — durable facts, reusable interfaces, build or release-flow improvements that help any AI Passport user — are submitted back upstream as a pull request. The `plays/` application archive and the post-release experience notes belong upstream and are proposed back as pull requests. Use the `experience-pr` and `plays-archive` skills for post-release work; see `docs/development/release/project-completion.md`. All fork documentation follows the repository language rule: English at the default `.md` path and Simplified Chinese at `.zh_CN.md`, with reciprocal switches. diff --git a/docs/fork-guide.zh_CN.md b/docs/fork-guide.zh_CN.md index a3cf8a6..2b8c024 100644 --- a/docs/fork-guide.zh_CN.md +++ b/docs/fork-guide.zh_CN.md @@ -49,8 +49,6 @@ fork �,`main` 分支**��许增加/修改根目录的 `README.md` 和 `do - 上游 main 的根目录**故��放 README**,把这一�置预留给 fork 开�者。上游项目说明�于 `docs/README.md`(GitHub 从 docs/ 识别主 README),��用根目录。 - 开�者 fork 项目�,�将**自己的内容**写到根目录的 `README.md`,以介� fork �的项目——例如改动���二次开�说明�自定义用法等。这样 fork 的根目录 README 与上游互�冲�,也无需覆盖上游文档。 -根 README 的内容跟分支模型一致:`feature/*` 分支的根 README �介�本分支自己的应用——�什么�怎么用�相关说明;fork `main` 的根 README �是全部项目的目录,�个应用一段,在应用�布或归档时刷新。��把整份目录�制到功能分支,也��把 `main` 的目录简化�一串链接。 - > **GitHub 显示行为**:GitHub 显示优先级为根目录 `README.md` > `docs/README.md`,因此 fork 用户在根目录自建 `README.md` ��覆盖 `docs/README.md` 的显示——正契�上�"根目录 README 预留给开�者"的设计�图。 ## docs/assets 使用约定 @@ -67,6 +65,5 @@ fork �,`main` 分支**��许增加/修改根目录的 `README.md` 和 `do 文档与�验�循�样的分�原则。fork 专属产�定制(架构说明�产�设计�fork 专属素�)留在 fork,放在 `docs/assets/` 下,��交回上游。通用�上游也�益的文档或�验改进——�续的硬件事实� ��用的接��能帮助任何 AI Passport 用户的构建或�布�程改进——作为 PR �交回上游。 -相对仓库根目录的 `docs/reference///` 应用档案与 -`docs/reference//` �布��验�目属于上游,作为 PR �案回上游。�布�的工作请用 +`plays/` 应用档案与�布�的�验沉淀属于上游,作为 PR �案回上游。�布�的工作请用 `experience-pr` 与 `plays-archive` skill,� `docs/development/release/project-completion.md`。 diff --git a/docs/hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.md b/docs/hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.md index a21ac24..12870d9 100644 --- a/docs/hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.md +++ b/docs/hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.md @@ -29,7 +29,7 @@ The target is the ESP32-C3 FoloToy AI Passport with ESP-IDF 5.5.3. It has 8 MB F | Subsystem | Device or mode | Resource | Firmware support | | --- | --- | --- | --- | | MCU | ESP32-C3 | 8 MB Flash, no PSRAM | Configured | -| Display | ST7789P3, 240 × 320, RGB565 | SPI2, 80 MHz, mode 0 | Driver and validation page | +| Display | ST7789P3, 240 × 320, RGB565 | SPI2, 40 MHz, mode 0 | Driver and validation page | | Backlight | LCD LED | GPIO21, LEDC 5 kHz/10 bit | PWM brightness control | | Buttons | UP/DOWN/OK resistor ladder | GPIO0 / ADC1_CH0 | Events and live-voltage page | | Audio | ES8311 playback and microphone | shared I2C + I2S0 full duplex | Playback and recording page | @@ -53,7 +53,7 @@ This table describes the signals allocated by the current BSP and build configur | 5 | I2S BCLK | output | shared by TX/RX | | 6 | I2S MCLK | output | required by codec configuration | | 7 | I2C SCL | bidirectional open drain | ES8311 and CW2017 share I2C0 | -| 8 | LCD SCLK | SPI output | SPI2, 80 MHz, mode 0 | +| 8 | LCD SCLK | SPI output | SPI2, 40 MHz, mode 0 | | 9 | LCD MOSI | SPI output | no MISO; display cannot be read | | 10 | I2C SDA | bidirectional open drain | internal pull-up enabled; suitable external pull-ups still expected | | 18/19 | USB Serial/JTAG | USB | reserve for console | @@ -97,23 +97,15 @@ app_main └─ LVGL menu and independent demo pages ``` -Display/LVGL is a hard dependency. Buttons, audio, and battery are soft dependencies whose pages show `[FAIL]` while other pages remain available. Public BSP APIs are under `components/bsp/include/`. Successful display, button, audio, and LVGL initialization is idempotent. Display, button, and audio partial failures release resources acquired by the BSP. Failed LVGL display/callback registration removes the display but retains the initialized port for retry; port initialization itself failing requires a reboot because its asynchronous cleanup has no public completion handshake. Other incomplete lower-level rollbacks are reported and prevent live handles from being overwritten. Serialize BSP initialization from one owner; there is no universal BSP deinitialization API. +Display/LVGL is a hard dependency. Buttons, audio, and battery are soft dependencies whose pages show `[FAIL]` while other pages remain available. Public BSP APIs are under `components/bsp/include/`. Successful display, button, audio, and LVGL initialization is idempotent. Display, button, and audio partial failures release resources acquired by the BSP; failed LVGL display registration deinitializes its port. The caller can correct the fault and retry, while an incomplete lower-level rollback is reported and prevents a handle from being overwritten. There is no universal BSP deinitialization API. Button callbacks run in the shared `esp_timer` task. They only enqueue input and return; the demo lifecycle task handles navigation and starts or stops slow services without holding the LVGL lock. Page exit first completes a bounded producer stop, then deletes timers and UI objects while holding the lock. Audio and light-sleep workers use cooperative cancellation and an explicit exit handshake rather than forced task deletion. The low-power worker force-suspends and verifies ES8311 before either sleep mode and resumes it after light sleep. For deep sleep it suspends and verifies CW2017 first, force-suspends ES8311, stops and releases I2S, releases the shared I2C pins, blocks further LVGL flushes, sleeps the LCD, and holds its safe pin levels before entering deep sleep. Individual peripheral failures are logged but do not strand the system awake; an unexpected return after terminal pin release causes a restart. Deep-sleep wake also restarts the application and follows normal BSP initialization. Wi-Fi, NimBLE, and sleep use ESP-IDF directly rather than the BSP. `demo_radio.c` owns shared NVS, `esp_netif`, and default-event-loop setup. Wi-Fi and Bluetooth pages allocate their radio stacks after page creation and stop/deinitialize them before page deletion. Do not erase NVS to hide partition errors. Deep sleep restarts the application and the demo uses RTC slow memory for the wake counter. -Audio, low-power, and BLE workers acknowledge completion only after their final -shared-state access, then park until the lifecycle owner deletes them. A timed-out -stop retains the task handle and completion semaphore for retry; do not let an -old worker clear a replacement task's handle. Wi-Fi uses checked netif creation, -attachment and handler registration; BLE checks host task creation and cleans up -without calling host-stop when no task was created. Allocation failure must not -be hidden behind an SDK helper that asserts or ignores task-creation results. - ## 5. Display and LVGL -- Panel: ST7789P3, 240 × 320 portrait, RGB565, SPI2 MOSI-only at 80 MHz, mode 0. +- Panel: ST7789P3, 240 × 320 portrait, RGB565, SPI2 MOSI-only at 40 MHz, mode 0. - `BSP_LCD_INVERT_COLOR=1`; change inversion only after measurement with the replacement panel. - Reset is software-only, gap is `(0, 0)`, X/Y mirroring is disabled, and LVGL rotation may override lower-level mirror settings. - The vendor porch, power, and gamma sequence in `bsp_display.c` is panel-specific. Do not treat it as a universal ST7789 sequence. @@ -123,10 +115,6 @@ The LVGL DMA buffer is one `240 × 20` RGB565 buffer, about 9.6 KB; the LVGL int The final LVGL RGB565 flush is masked to a global 30 px radius, so the four areas outside the rounded screen remain pure black during page changes as well as normal rendering. The mask is applied directly to the partial draw buffer and does not use root-screen `clip_corner`; full-screen rounded clipping requires an ARGB intermediate layer that can exhaust the 24 KB LVGL pool on this no-PSRAM target. Keep this behavior in the display integration instead of duplicating corner decorations in individual pages. -Register the display and rounding callback under the same recursive LVGL port -lock, before the first flush. Registration failure must not leave an unmasked -display running or reinitialize a port whose previous task may still be alive. - Before terminal deep sleep, stop new page work and hold the LVGL lock long enough to finish any current flush. `bsp_display_prepare_deep_sleep()` then sends display-off and Sleep In, stops the backlight PWM at low level, drives CS high and SCLK/MOSI/DC/backlight low, enables per-pin hold, and enables the ESP32-C3 global deep-sleep hold. `bsp_display_init()` disables the global and per-pin holds before SPI or LEDC takes ownership after wake. This terminal API is not a reversible display blanking operation and must be followed immediately by deep sleep or restart. LVGL is not thread-safe. Timer callbacks in LVGL context may access objects directly. Button callbacks must not access LVGL; they enqueue input for the lifecycle task. The lifecycle task and other workers must use `bsp_lvgl_lock()`/`bsp_lvgl_unlock()` for short UI operations. Stop producers before deleting a page and clear static object pointers afterward. @@ -142,7 +130,7 @@ GPIO0 has an external 10 kΩ pull-up to 3.3 V. UP, DOWN, and OK connect it to gr | OK | about 595 mV | `[447, 1900)` mV | | Released | about 3300 mV | outside all windows | -Do not replace the external resistor with the inaccurate internal pull-up. The BSP owns one ADC1 oneshot unit and calibration handle, shared by its static drivers through the public `iot_button` driver interface and by voltage reads. Attenuation is `ADC_ATTEN_DB_12`; one averaged sample is reused across the three keys in each polling cycle. Half-open windows prevent overlapping keys at a boundary. Calibration failure aborts initialization and rolls back; read/conversion failures are inactive readings, never a zero-voltage UP press. The BSP avoids the dependency's ADC index registry so partial allocation failure cannot strand an occupied index on retry. Callbacks originate in the button component's shared `esp_timer` task and must only enqueue work or perform similarly bounded operations. +Do not replace the external resistor with the inaccurate internal pull-up. The BSP creates one ADC1 oneshot unit and shares it with all button devices and voltage reads. Attenuation is `ADC_ATTEN_DB_12`. Callbacks originate in the button component's shared `esp_timer` task and must only enqueue work or perform similarly bounded operations. Calibrate thresholds using multiple boards, charge levels, and reasonable temperatures; leave margin between measured distributions rather than relying only on divider theory. @@ -165,7 +153,6 @@ The MCU is I2S master and the ES8311 is slave. I2S0 TX/RX shares MCLK GPIO6, BCL - Call `bsp_audio_set_format()` before PCM I/O. - A format change must close and reopen `esp_codec_dev`; an already open device is not reconfigured. - Preserve the I2S enable/disable sequence around close/open. -- Track underlying I2C and I2S configuration errors even when codec-dev drops their return values. Failed opens and format changes release codec objects, force suspend and stop I2S; retries recreate the codec instead of reusing partial opened/enabled state. Sleep also releases codec objects before the final forced register sequence; wake recreates them and restores format and volume while retaining the shared bus and channels. A failed codec-reference release requires reboot rather than a false successful recovery. Repeated sleep calls retain an earlier failure result until recovery. - Do not write ES8311 clock-divider registers after open; the driver derives them from sample rate and 256×fs MCLK. - Keep `no_dac_ref=true` for mono microphone input; false can produce all-zero capture. - Microphone analog gain is 30 dB; output volume is a separate 0–100% value. @@ -179,9 +166,6 @@ The MCU is I2S master and the ES8311 is slave. I2S0 TX/RX shares MCLK GPIO6, BCL The audio demo's three-second recording buffer is about 96 KB and is the largest transient heap allocation. Prefer chunked streaming for longer audio. Its worker checks cancellation between PCM chunks and acknowledges exit before the page is deleted; retain that bounded handshake when extending the demo. -Failed recording reads show `recording failed` and discard the partial capture; -only a complete recording and playback may show `done`. - ### 8.1 Crackles while navigating or saving When extending the tone demo into continuous BGM with UI updates and NVS saves, button-correlated crackles can come from interrupted PCM delivery, even if that button plays no sound. Check these two paths separately before changing the sound effect or volume: @@ -260,16 +244,10 @@ General board acceptance: - Stable USB Serial/JTAG logs without reboot loops, assertions, watchdogs, or persistent errors. - I2C scan sees ES8311 at `0x18` and, when fitted, CW2017 at `0x63`. -- In the baseline test demo, UP/DOWN wraps menu navigation, OK click enters, and OK long press returns. Derivative applications validate their own redesigned navigation and controls. -- An optional peripheral failure degrades only the dependent feature (disabling its test page in the baseline demo), without blocking unrelated functionality. +- UP/DOWN wraps menu navigation, OK click enters, and OK long press returns. +- An optional peripheral failure disables only its page. - Repeated navigation and operation do not leak heap, tasks, timers, or objects. -The menu operations, page names, and timings below are baseline hardware-test -examples, not a required application UI. Derivative applications must follow the -[mandatory UI redesign rule](../development/ai-guide.md#mandatory-ui-redesign-for-derivative-applications) -and exercise the relevant hardware checks through their own flows; do not retain -the demo test UI just to follow these examples. - | Change | Required physical observations | | --- | --- | | Pin/I2C | scan, all shared devices, boot straps, USB logs | diff --git a/docs/hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.zh_CN.md b/docs/hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.zh_CN.md index 2a43df6..8e67410 100644 --- a/docs/hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.zh_CN.md +++ b/docs/hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.zh_CN.md @@ -31,7 +31,7 @@ AI 应先完�以下检查: | �系统 | 器件/方� | 总线或资� | 固件支� | | --- | --- | --- | --- | | MCU | ESP32-C3 | 8 MB Flash�无 PSRAM | 已�置 | -| 显示 | ST7789P3,240 × 320,RGB565 | SPI2,80 MHz,mode 0 | 驱动与验�页 | +| 显示 | ST7789P3,240 × 320,RGB565 | SPI2,40 MHz,mode 0 | 驱动与验�页 | | 背光 | LCD LED 背光 | GPIO21,LEDC 5 kHz/10 bit | PWM 亮度控制 | | 按键 | UP/DOWN/OK 三键电阻分压 | GPIO0 / ADC1_CH0 | 事件与实时电压页 | | 音频 | ES8311,播放 + 麦克风录音 | I2C 控制 + I2S0 全�工 | 播放与录音页 | @@ -55,7 +55,7 @@ AI 应先完�以下检查: | 5 | I2S BCLK | 输出 | 与收�共用 | | 6 | I2S MCLK | 输出 | codec �置�求使用 MCLK | | 7 | I2C SCL | ��开� | ES8311 与 CW2017 共用 I2C0 | -| 8 | LCD SCLK | SPI 输出 | SPI2,80 MHz,mode 0 | +| 8 | LCD SCLK | SPI 输出 | SPI2,40 MHz,mode 0 | | 9 | LCD MOSI | SPI 输出 | 当�没有 MISO,�能读� | | 10 | I2C SDA | ��开� | 软件�用内部上拉;实际硬件�应有�适外部上拉 | | 18/19 | USB Serial/JTAG | USB | 控制�使用,��改作普通 GPIO | @@ -119,20 +119,18 @@ app_main - `bsp_battery.h`:SOC 与电压。 - `bsp_pins.h`:硬件常�,�承载业务逻辑。 -显示�按键�音频和 LVGL �功�始化����调用。显示�按键与音频在 BSP 中途失败时会释放本次�得的资�;LVGL display/回调注册失败时�移除 display,�留已�始化的 port 供�试。port 自身�始化失败需���,因为�赖的异步清�没有公开的完��手。其他底层回滚失败也会明确报错并拒�覆盖�存活的�柄。BSP �始化由�一所有者串行执行;当�没有统一 deinit API,���设�以在�行时任�销�和�建总线/驱动。 +显示�按键�音频和 LVGL �功�始化����调用。显示�按键与音频在 BSP 中途失败时会释放本次�得的资�;LVGL display 注册失败时会 deinit port。调用方修正故障��以�试;若底层回滚本身失败,会明确报错并拒�覆盖�存活的�柄。当�没有统一 deinit API,���设�以在�行时任�销�和�建总线/驱动。 按键回调�行在共享 `esp_timer` 任务中,�负责将输入加入队列并立�返回。demo 生命周期任务负责页�导航,并在��有 LVGL �时�动或�止慢�务。退出页�时先以有界等待�止 producer,���删除定时器和 UI 对象。音频与 light-sleep 工作任务使用�作�消和明确的退出�手,��强制删除��能访问外设或 UI 的任务。低功耗工作任务会在两��眠�强制暂� ES8311 并回读校验,在 light sleep 返回���。deep sleep 时则先暂�并校验 CW2017,�强制暂� ES8311,�止和释放 I2S,释放共享 I2C 引脚,阻止�续 LVGL 刷�,休眠 LCD 并��安全引脚电平,最�进入 deep sleep。�个外设失败会记录日志,但�会让系统�在唤醒状�;终端引脚释放�若�外返回则��。deep sleep 唤醒�样会��应用并走正常 BSP �始化�程。 Wi-Fi�NimBLE 和 light/deep sleep 直接使用 ESP-IDF API,�属于�级 BSP。`demo_radio.c` �管� NVS�`esp_netif` 和默认 event loop 这些应用级共享�置。Wi-Fi 和 BLE 页在页�创建��始化高内存�用的无线栈,在删除页���止并释放;�自动抹除已有 NVS 数��掩盖分区错误。deep sleep 会按 ESP32-C3 语义��应用,示例用 RTC slow memory 记录唤醒次数。 -音频�低功耗和 BLE 工作任务在最�一次共享状�访问之����完�确认,��挂起,由生命周期所有者删除。�止超时��留任务�柄和完�信��,供�续�试;�能让旧任务清空新任务的�柄。Wi-Fi 分别检查 netif 创建�驱动绑定和事件注册结果;BLE 检查 host 任务创建结果,没有创建任务时直接清�,�调用 host-stop。�能�赖内部断言退出或忽略任务创建结果的 SDK 辅助函数处�内存�足。 - ## 5. 显示与 LVGL ### 5.1 ��事实 - ST7789P3,物�/逻辑分辨率�为 240 × 320,当�为竖�。 -- SPI2_HOST�MOSI-only�80 MHz�SPI mode 0�8 bit 命令/�数�RGB565。 +- SPI2_HOST�MOSI-only�40 MHz�SPI mode 0�8 bit 命令/�数�RGB565。 - LCD 需��色命令,`BSP_LCD_INVERT_COLOR=1`。若��出现负片,�能在实测�调整。 - RST 为 `-1`,`esp_lcd_panel_reset()` 走 SWRESET。 - 当� gap 为 `(0, 0)`,镜� X/Y 都关闭。 @@ -157,15 +155,13 @@ LVGL �线程安全: `swap_bytes=true` 是必��置:LVGL 产生�端 RGB565,而 LCD 的 SPI 数�需�高字节在�。颜色异常时应先核对该标志�RGB/BGR 顺���色和���列,��一次修改多个��。 -显示和圆角回调必须在�一个�递归 LVGL port �内注册,先于第一帧 flush。注册失败��能留下未�罩的显示,也�能�新�始化旧任务�能�在�行的 port。 - ## 6. ADC 三按键 三个物�按键共享 GPIO0:3.3 V �外部 10 kΩ 上拉到 ADC 节点,按键按下�分别通过 0 Ω�1 kΩ�2.2 kΩ 接地。 | 状� | �论电压 | 当�识别窗� | | --- | ---: | ---: | -| UP | 约 0 mV | `[0, 150)` mV | +| UP | 约 0 mV | `[0, 150)` mV(边界语义最终以 button 组件实现为准) | | DOWN | 约 300 mV | `[150, 447)` mV | | OK | 约 595 mV | `[447, 1900)` mV | | �开 | 约 3300 mV | �属于任何按键窗� | @@ -174,9 +170,9 @@ LVGL �线程安全: 实现上的关键�制: -- BSP 拥有唯一的 ADC1 oneshot unit 和校准�柄,通过公开 `iot_button` 驱动接�管�三个��驱动;`bsp_button_read_mv()` 也�用它们。��为电压显示�建 ADC1 unit。 -- ADC 衰�为 `ADC_ATTEN_DB_12`,�轮轮询三个按键�用一次平�采样,�开窗���边界�时命中两个键。 -- 校准创建失败会中止�始化并回滚;读�或�算失败视为未按下,而�是把无效电压作为 0 mV 触� UP。BSP �使用�赖的 ADC 索引注册表,��部分分�失败��留�用索引�阻止�试。 +- BSP 先创建唯一的 ADC1 oneshot unit,�把�一�柄交给三个 `iot_button` ADC 设备;`bsp_button_read_mv()` 也�用它。��为电压显示�建 ADC1 unit。 +- ADC 衰�为 `ADC_ATTEN_DB_12`,必须与�赖的 button 组件内部�置��一致。�级组件���新核对。 +- ADC 校准�柄创建失败�影�按键事件,但 `bsp_button_read_mv()` 返回 `-1`。 - 回调�自 button 组件使用的共享 `esp_timer` 任务,�能入队或执行�等级的有界�作,�能阻塞�录音�播放或访问 UI。 - 事件包括 PRESS�CLICK�DOUBLE�LONG。应用��主�消费 CLICK;页�中的 OK LONG 被全局拦截用于返回。 @@ -214,7 +210,6 @@ MCU 是 I2S master,ES8311 是 slave;I2S0 的 TX/RX 全�工通�共享 MCL - `bsp_audio_set_format(hz, bits, ch)` 是使用 PCM �的必�步骤。 - `esp_codec_dev_open()` 对已打开设备会直接返回而��新�置采样率。因此格��化时必须 close �� open;现有 BSP 已处�,�能删掉。 - close/open 周围的 I2S enable 是为满足驱动内部 disable 状�机,�� READY 状�报错。 -- �使 codec-dev �掉返回值,也检查底层 I2C/I2S �置错误。打开或格�切�失败时释放 codec 对象�强制暂�并�止 I2S;�试时�新创建,�能�用�打开或错误 enabled 状�。休眠�样先释放 codec,�执行最终强制寄存器�列;唤醒�建 codec���格�和音�,共享总线和 channel �留。codec 引用释放失败需���,�能�报���功;未�����休眠�留此�失败结果。 - ��在 open �手写 ES8311 REG01–REG06 时钟分频;驱动已根�采样率和 256×fs MCLK �置。 - `no_dac_ref=true` 对�声�麦克风录音是必�的;改为 false 会让读入通��为 DAC reference,表现为录音�零。 - 麦克风模拟输入增益当�为 30 dB;输出音� API 为 0–100%。增益和音��是�一个概念。 @@ -230,8 +225,6 @@ Audio demo 使用独立 4 KB 栈任务:OK 播放 1 秒 1 kHz 方波,UP 录 3 Audio demo 的工作任务在 PCM 分�之间检查�消状�,并在页�删除�确认退出;扩展该页�时必须�留这一有界退出�手,�能强制删除阻塞于 codec I/O 的任务。 -录音读�失败显示 `recording failed` 并丢弃�完整录音;�有录音和回放�完整�功�显示 `done`。 - ### 8.1 切�选项或存档时出现�音 将音调 demo 扩展为�续 BGM�界�刷新和 NVS 存档并行的应用时,按键�出现的�音�能�自 PCM 供给中断,�使该按键没有播放音效。修改音效或音�之�,先分别检查以下两�路径: @@ -440,16 +433,12 @@ idf.py flash monitor - USB Serial/JTAG 有稳定�动日志,无��循环�assert�watchdog 和�续错误。 - I2C 扫�看到预期的 0x18;装有 CW2017 的�还应看到 0x63。 -- 基线测试 demo 中,���用 UP/DOWN 循环导航,OK �击进入,OK 长按返回;二次开�应用验收自己�新设计的导航和按键交互。 -- �个�选外设故障��级�赖它的功能(基线 demo 中为�用对应测试页�),�影�其他功能。 +- ���用 UP/DOWN 循环导航,OK �击进入,OK 长按返回。 +- �个�选外设故障��用对应页�,�影�其他功能。 - 连续切�页�和���作�无堆�续下��对象悬挂或任务泄�。 ### 按修改类型追加验收 -下表中的���作�页��称和时长是基线硬件测试示例,�是应用必须沿用的 UI。 -二次开�应用必须�守[强制 UI �新设计规则](../development/ai-guide.zh_CN.md#二次开�-ui-强制�新设计), -通过自身�程完�适用的硬件检查,�得为了照�测试示例而�留 demo 测试 UI。 - | 修改类型 | 必须观察的实机结果 | | --- | --- | | 引脚/I2C | 扫��所有共享设备��动冲��USB 日志 | diff --git a/docs/leo-radio.md b/docs/leo-radio.md new file mode 100644 index 0000000..914da5c --- /dev/null +++ b/docs/leo-radio.md @@ -0,0 +1,115 @@ +

简体中文 · English

+ +# LEO Radio integration — 2.0.2 + +The third badge mini-app adapts [leo0183/leo-radio](https://github.com/leo0183/leo-radio), commit `e28b8adafb2ca95e386e8b6e7db0db042cf09523`. It shares the badge Wi-Fi, audio device, game lifecycle and five-color theme. Muyu and Voice Keychain remain available; the 24 packs / 726 selected clips and all flash partition addresses are unchanged. + +## Use + +Open badge home → OK → Mini Apps → City Radio. With saved Wi-Fi connected, it discovers stations by network location and starts playback. The list combines local discoveries with 57 built-in curated MP3 streams, removing duplicate stream IDs. The curated list remains available when local discovery fails. This is internet radio: the FM scale is a visual dial, not an FM receiver. + +| Control | Action | +| --- | --- | +| Up / Down | Previous / next station | +| OK | Pause / resume | +| Long Up | Open radio settings | +| Long Down | Stop playback | +| Long OK | Choose Previous Page, Badge Home or Continue | + +Settings include volume (0–100%, steps of 5), automatic location or seven preset cities, a 15/30/60/90-minute stop timer. Up/down selects, OK confirms. The timer stops radio playback without powering off the badge. Volume, selected city and station are remembered in the independent `badge_radio_v1` NVS namespace; the timer resets on exit. Set Wi-Fi through the existing USB or hotspot configuration page. No separate radio account or setup page is required. + +The background, panels, dial, amplitude bars, title and text follow the active badge theme, including custom palettes. All mini-apps reuse the exact home header: AI Passport, a connected Wi-Fi icon, battery percentage and divider. Wi-Fi configuration is available only in the badge system settings. The animated bars show actual decoded PCM amplitude, not frequency bands. Unknown station frequencies display NET rather than an invented frequency. + +## Integration and memory + +- `radio_app.cc` is the game adapter. UI objects and the refresh timer are owned under the LVGL lock; worker status uses a synchronized snapshot without touching LVGL. +- One 10 KB worker performs discovery, HTTP reads, MP3 decode, mono downmix and audio output. Cancellation closes streaming resources before the screen is destroyed. A stop timeout retains the page for another exit attempt. +- Only the MP3 decoder from pinned `espressif/esp_audio_codec` 2.5.0 is registered. The PCM buffer is 4,608 bytes (one maximum stereo MP3 frame); input is 1,024 bytes. Unsupported formats fail cleanly. +- Directory responses are split into bounded 4 KB objects and parsed one at a time. Response bytes and request duration are bounded; oversized entries are skipped. No complete directory JSON tree remains in memory. +- Muyu's 4,480-byte tone and Voice Keychain's 3,420-byte packet/PCM buffers are allocated only while their games need them, then released after workers stop. This avoids keeping inactive game buffers resident on the no-PSRAM ESP32-C3. +- The original standalone Wi-Fi manager, power controller and video Easter egg are not started. The badge continues to own network setup, sleep and navigation. + +## Sources and limitations + +The upstream MIT notice is preserved in `assets/radio/LICENSE.txt`; see `assets/radio/SOURCE.txt`. The decoder license is Espressif Modified MIT, restricted to Espressif products; its full notice is retained in `assets/radio/ESP_AUDIO_CODEC_LICENSE.txt`. Station directory and IP location use third-party internet services. Automatic location is approximate; station addresses and availability may change. Supported streams are directly playable MP3, not HLS/AAC. Public directory titles may be simplified to fit the included font. No broadcast audio is bundled or recorded in the source or firmware. + +## Validation and installation + +`./tools/validate.sh --static` covers frequency parsing, mono conversion, timer boundaries, nested navigation, fragmented/oversized JSON entries and existing badge/voice tests. `python3 tools/render_radio_host.py` renders the actual production LVGL UI in all four preset palettes and all five views, including 100 create/destroy cycles under the same 40 KB LVGL pool. + +The opt-in `-D BADGE_RADIO_DEVICE_PROBE=ON` build injects bench navigation only. **Normal production builds must set `-D BADGE_RADIO_DEVICE_PROBE=OFF`**, particularly after reusing a probe build directory. The distributed image has this option disabled. + +Use segmented bootloader/partition/application writes to update a 1.9.1 device. Sound partitions did not change. The merged image is for blank devices; writing it over an existing badge overwrites gaps containing user data. Keep private backups outside distributed artifacts. + +## Historical 2.0.0 installed-device results, 2026-09-15 + +| Field | Result | +| --- | --- | +| Build | PASS — native Windows ESP-IDF 5.5.3 production build, probe OFF, merged-image and all five segment checks | +| Host tests | PASS — full static gate in WSL, radio logic/JSON/control tests and badge/726-clip regression; actual LVGL renders | +| Device tests | PASS — COM6 segmented installation with device hashes, normal badge-home startup with three games; city directory, 48 kHz stereo MP3 decode/downmix/output, pause/resume, station change and repeated returns; Muyu/Voice Keychain startup and exit | +| Unverified | Human listening/physical-key acceptance, all third-party stations and cities, long-duration timer and battery/endurance tests | + +The city lookup returned two playable stations. Station-name resume was exercised across boots. Radio returned to 72,700 / 72,276 / 72,084 free heap bytes over three exits; after visiting Muyu and Voice Keychain, free heap was 72,460 bytes. These are short-run total-heap samples, not a long-term leak or endurance guarantee. Minimum observed radio worker stack headroom was 2,468 bytes; Voice Keychain reported 9,328 bytes. The radio UI host test reported 15,680 free bytes (15,616 before) and 21,520 peak usage in its 40 KB LVGL pool after 100 lifecycle cycles. + +The production application is **2,066,960 bytes**, with **816,624 bytes** free in the 2,883,584-byte application partition. It is 315,344 bytes larger than 1.9.1. The merged image remains **8,192,000 bytes**, including partition gaps and padded sound regions; it is not the actual occupied application size. Sound payload remains 4,270,480 bytes and both sound images match 1.9.1 byte for byte. + +Both profile regions were read back and matched their private pre-install backups byte for byte. USB readback confirmed all five profiles, active card and Wi-Fi settings unchanged, and the saved Wi-Fi connected. Normal boot reported buttons, battery, storage, profile service and USB configuration ready. The serial port was closed after verification. The distributed source and image do not contain private device backups or broadcast recordings. + +Merged-image SHA-256: `a7d41d6698636940b75a2f0ffa70bec1462cf2e954d9b3b3e8a93ca67d7ce5cd`. + +## 2.0.1 — Mini Apps, shared header and responsive controls + +The terminal entry is now **Mini Apps**. Radio settings contain only volume, city and stop timer; Wi-Fi configuration stays in the badge system. Home, Muyu, Voice Keychain and Radio all attach `badge_header.c`, with identical title, Wi-Fi icon, battery and divider geometry. The shell continues polling network status while an app is active. + +Up/down short presses act on the new BSP release event, without waiting for single/double-click classification. Duplicate click/double events are ignored after physical edges; releasing a long press does not change the station. An eight-tap stream test and six setting moves exercised these paths on the board. + +Radio UI skips unchanged values and redraws only affected regions. The host renderer measured 0 pixels for an unchanged frame, 6,360/76,800 for a meter update and 10,176/76,800 for a settings selection. The connected MP3 read timeout is 100 ms with nonfatal EAGAIN handling, so cancellation checks no longer wait for the former 2.5-second read timeout. Establishing a new connection still depends on the radio server and network. + +Host tests compare the first 29 pixel rows of all four screens across four palettes, disconnected/connected Wi-Fi and unknown/0/100% battery. All comparisons passed. 100 radio UI cycles returned 16,032 free bytes (16,032 before), with 21,368 peak bytes in the 40 KB pool. Board-injected release events updated selection state in 1–59 ms; the six settings moves took 26–36 ms. These timings cover event processing/state changes, not physical-button debounce or measured display scanout. Human button feel, audio quality and long-duration operation remain acceptance checks. + +### 2.0.1 production installation + +Build: PASS — production probe OFF, application 2,068,432 bytes, merged image 8,192,000 bytes, all image/partition checks. + +Host tests: PASS — complete repository/host gate, release-event boundaries and duplicate suppression, four-screen header pixel comparisons, partial redraw checks and 100 UI cycles. + +Device tests: PASS — live 48 kHz stereo MP3 playback/downmix, eight short station moves, delayed click/double suppression, long-press release suppression, three-item settings wrap and return home. COM6 production image hashes and startup passed; all five profile banks match the pre-update backup byte for byte. USB confirms the active profile and Wi-Fi settings unchanged, with Wi-Fi connected. Serial closed after verification. + +Unverified: human button feel, acoustic quality and long-duration operation. The 1–59 ms timing is the injected release-to-selection-state interval. The application partition has 815,152 free bytes; audio payload and partitions are unchanged. + +Production merged-image SHA-256: `fe5106f950d1148dd3daeac395f64ddb829410305786395a9251f13318eeaa5d`. + +## 2.0.2 — Curated stations and menu font coverage + +The directory keeps 57 curated MP3 endpoints alongside up to 10 local results. HTTP/HTTPS and Qingting/Qtfm aliases with the same live ID are deduplicated. A two-result local discovery no longer replaces the full curated list; a failed discovery preserves all curated entries. + +Candidates came from a [public station directory](https://github.com/gaotianliuyun/gao/blob/master/radio.txt) and the upstream presets; per-entry provenance is recorded in `assets/radio/STATIONS.txt`. On 2026-09-15, roughly 24 KB samples were fetched from 80 candidates. 57 passed download, MP3 identification and PCM decoding; the others were excluded. Names follow the directory. Short-sample checks do not establish programme identity or continuous availability. Broadcast samples are not distributed in firmware or source. + +Curated records remain in flash. The ESP32-C3 runtime directory occupies 4,252 bytes (4,264 in the 64-bit host test) for 10 local records and up to 64 preset indices; the worker stack remains 10 KB. Host tests cover merging, alias deduplication, lookalike hostnames, capacity, wraparound and recovery from empty discovery. + +The second app description uses the generated `VOICE_SUMMARY`; its generator's three Chinese glyphs were absent from the original font scan. The font generator now includes that text source. Coverage tests check the actual generated summary and every curated station name. Actual LVGL rendering confirms the complete 24-category / 726-clip caption. + +### 2.0.2 installation validation + +Build: PASS — production probe OFF; application 2,093,568 bytes, 790,016 bytes free in its partition, merged image 8,192,000 bytes. Sound images and partition layout are unchanged. + +Host tests: PASS — complete static gate, font coverage, directory boundaries, four-palette header pixel comparisons, partial redraw and 100 UI cycles; 57 downloaded stream samples decoded successfully. + +Device tests: PASS — COM6 merged list contained 61 stations. Huaiji Music, Qingdao Economy and Huizhou Music decoded/output at 44.1/32/48 kHz respectively. Eight short press selections took 1–57 ms; three-setting navigation and return home passed. Segmented production flashing, hashes and normal startup passed. All five profile banks match the private backup byte for byte; active card and Wi-Fi settings are retained. Serial closed after verification. + +Unverified: all 57 stations have not been individually auditioned on the board. Programme identity, long-term availability, sound quality, physical-button feel and endurance remain unchecked. Timings measure injected release-to-selection-state latency, excluding physical debounce and display scanout. + +The target linker map places the 57 presets in 23,826 bytes of read-only flash and the directory in 4,252 bytes of RAM, 72 bytes above the old ten-record array. Free heap after exit was 71,760 bytes; minimum worker stack headroom was 2,476 bytes. + +Production merged-image SHA-256: `e15401e8e3e2126f359286f4abf1f3524c860588fa14d63234af8eb3adf46998`. + +## 2.0.3 — complete battery percentage + +The compact 10 px font previously assigned percent a 6 px advance even though its ink occupied 10 px. Right-aligned battery text could therefore clip the last glyph. The generator now reserves the full percent width. The shared battery field is 32 px wide with the same right edge; the Wi-Fi icon moves 4 px left to preserve spacing. All home and mini-app headers inherit the fix. + +Host validation compares 0%, 9%, 10%, 99% and 100% against a wide, unclipped reference label, including four palettes and connected/disconnected Wi-Fi. It also checks full glyph bounds, identical headers and 100 UI lifecycle cycles. Unknown battery remains `--`. This covers actual LVGL pixels, not a physical screen photograph. + +2.0.3 validation: Build PASS; Host tests PASS; Device tests PASS for segmented installation, normal startup, byte-identical five-profile banks and preserved active profile/Wi-Fi. Unverified: physical screen visual acceptance. Application size remains 2,093,568 bytes. Serial released after verification. + +The on-screen English title is **CITY RADIO** as of 2.6.4; upstream attribution and stored station settings are unchanged. diff --git a/docs/leo-radio.zh_CN.md b/docs/leo-radio.zh_CN.md new file mode 100644 index 0000000..271b514 --- /dev/null +++ b/docs/leo-radio.zh_CN.md @@ -0,0 +1,115 @@ +

简体中文 · English

+ +# LEO Radio 集� — 2.0.2 + +第三个工牌�程�基于 [leo0183/leo-radio](https://github.com/leo0183/leo-radio),�考�交 `e28b8adafb2ca95e386e8b6e7db0db042cf09523`。电�共用工牌 Wi-Fi�音频设备�游�生命周期�五�主题颜色。木鱼和语音钥匙扣继续�留,24 个音效包 / 726 段精选音效与所有 Flash 分区地���。 + +## 使用 + +工牌首页 → OK → �程� → 城市电�。连接已�存的 Wi-Fi �,根�网络�置查找电�并开始播放。本地结果与 57 个内置精选 MP3 频��并并去�;本地查询失败时��留精选列表。这是网络电�;FM 刻度为视觉转盘,硬件�接收调频无线电信�。 + +| �作 | 功能 | +| --- | --- | +| 上 / 下 | 上一个 / 下一个电� | +| 短按 OK | 暂� / 继续 | +| 长按上键 | 电�设置 | +| 长按下键 | �止播放 | +| 长按 OK | 选择返回上一页�工牌首页或继续 | + +设置包�音�(0–100%,�次 5%)�自动定�或七个预设城市�15/30/60/90 分钟定时�止。上下选择,OK 确认。定时��止电�,�关闭工牌。音��城市�选中的电��存在独立的 `badge_radio_v1` NVS 空间;退出会清除定时。Wi-Fi 沿用现有 USB 或热点�置页,无需�独账户或电�网页。 + +背景����刻度�音�振幅��标题和文案跟�当�工牌主题,也支�自定义�色。全部�程��用首页相�的顶部�:AI Passport�已连接 Wi-Fi 图标�电�百分比�分隔线。Wi-Fi �置仅�留在工牌系统设置中。动���映解�� PCM 的实际振幅,�是频谱分�。未知频率的电�显示 NET,�虚构频率。 + +## 集��内存 + +- `radio_app.cc` 接入游�框架。UI 和刷新定时器在 LVGL �内�作,��通过�步快照更新状�,�直接访问界�对象。 +- �个 10 KB 栈工作任务顺�执行目录查询�HTTP 读��MP3 解���声�混音�播放。�消�关闭�资�,�删除�幕;�止超时则�留页�供�次退出。 +- �定 `espressif/esp_audio_codec` 2.5.0,仅注册 MP3 解�器。PCM 缓冲为 4,608 字节(一个最大立体声 MP3 帧),输入为 1,024 字节。�支�的格�会正常退出播放。 +- 目录�应按最多 4 KB 的��对象拆分�解�,�制总字节数和请求时长,跳过超大�目,�在内存中�留完整目录树。 +- 木鱼 4,480 字节音色缓存和语音钥匙扣 3,420 字节包/PCM 缓存改为游��行时分�,任务�止�释放,��无 PSRAM 的 ESP32-C3 常驻存放未使用的游�缓存。 +- ��动原项目独立的 Wi-Fi 管�器�电�控制器或视频彩蛋;网络�置�休眠与返回导航由工牌管�。 + +## ��与�制 + +上游 MIT 许��留在 `assets/radio/LICENSE.txt`,��� `assets/radio/SOURCE.txt`。解�器采用仅� Espressif 产�使用的 Espressif Modified MIT 许�,完整声明�于 `assets/radio/ESP_AUDIO_CODEC_LICENSE.txt`。目录和 IP 定��赖第三方网络�务;定�是近似值,电�地���用性�能�化。支�直接 MP3 直播,�支� HLS/AAC。公共目录标题�能简化以适应内置字体。��和固件�未打包或录制广播音频。 + +## 验��安装 + +`./tools/validate.sh --static` 覆盖频率解���声�转��定时边界�分层导航�分段/超大 JSON 对象�已有工牌与音效测试。`python3 tools/render_radio_host.py` 用实际生产 LVGL 界�渲染四套预设主题和五�页�,并在相� 40 KB LVGL 内存池下循环创建/销� 100 次。 + +`-D BADGE_RADIO_DEVICE_PROBE=ON` 为�选�架测试,会注入导航事件。**正常固件必须设置 `-D BADGE_RADIO_DEVICE_PROBE=OFF`**,尤其是�用测试构建目录时。交付镜�关闭此选项。 + +从 1.9.1 更新使用分段写入引导�分区表和应用,音效分区无需改写。�并镜�用于空白设备;在已�置工牌上整包覆盖会改写包�用户数�的间隙。�有备份必须放在交付目录之外。 + +## 2.0.0 历�安装结果,2026-09-15 + +| 字段 | 结果 | +| --- | --- | +| Build | PASS — Windows 原生 ESP-IDF 5.5.3 正�构建,关闭测试探针,�并镜��五个分段校验通过 | +| Host tests | PASS — WSL 完整��门��电�逻辑/JSON/导航�工牌/726 段音效回归�实际 LVGL 渲染 | +| Device tests | PASS — COM6 分段安装和设备哈希校验;正常从工牌首页�动,三款游�;城市目录�48 kHz 立体声 MP3 解�/混音/输出�暂����切����返回;木鱼/音效钥匙扣�动和退出 | +| Unverified | 人工试�与实体按键验收�所有第三方电�/城市�长时间定时�电池续航测试 | + +城市查询返回两段�播放直播,跨��验�了记�的电��称��。三次退出电��空闲内存分别为 72,700 / 72,276 / 72,084 字节;访问木鱼和音效钥匙扣�为 72,460 字节。这是短时总堆采样,�代表长期无泄�或续航��。电�任务观测到的最�栈余�为 2,468 字节;语音钥匙扣为 9,328 字节。电� UI 主机测试循环 100 次�,40 KB LVGL 池剩余 15,680 字节(循环� 15,616),峰值使用 21,520 字节。 + +正�应用 **2,066,960 字节**,2,883,584 字节应用分区还剩 **816,624 字节**。比 1.9.1 增加 315,344 字节。�并镜��为 **8,192,000 字节**,包�分区间隙与音效填充,�等于应用实际�用。音效负载�� 4,270,480 字节,两个音效镜�与 1.9.1 �字节一致。 + +读回两个工牌分区,与安装��有备份�字节一致。USB 读回确认五张资料�当�工牌� Wi-Fi 设置��,Wi-Fi 已连接。正常�动日志显示按键�电��存储�工牌�务与 USB �置�就绪。验��已关闭串�。交付��和镜���设备�有备份或广播录音。 + +�并镜� SHA-256:`a7d41d6698636940b75a2f0ffa70bec1462cf2e954d9b3b3e8a93ca67d7ce5cd`。 + +## 2.0.1 — �程��统一顶部与按键�应 + +员工终端入�改�为 **�程�**。电�设置仅�留音��城市�定时�止;Wi-Fi �置统一在工牌系统设置中。首页�木鱼�语音钥匙扣和电��用 `badge_header.c`,标题�Wi-Fi 图标�电�和分隔线�置完全一致。�行�程�时,系统继续刷新网络状�。 + +上下键短按在新增的 BSP �键事件上�应,�等待�击/�击判定;收到实体边沿�忽略��的�击/�击事件,长按�开�会误切�。实机注入连续八次切�和六次设置项移动,覆盖这些路径。 + +电�界�跳过未�化的文字�样�,�刷新影�区域。主机渲染测得�止画�刷新 0 �素,振幅更新为 6,360/76,800 �素,设置选择为 10,176/76,800 �素。已连接 MP3 �的读�超时缩短到 100 毫秒,正常处� EAGAIN,因此�消检查��等待原�的 2.5 秒读�超时。新电�建立连接��决于�务器和网络。 + +主机测试��素比较四�页�顶部 29 行,覆盖四套�色�Wi-Fi 连接/断开和电�未知/0/100%,全部一致。电� UI 循环 100 次�剩余 16,032 字节(循环��为 16,032),40 KB 池峰值使用 21,368 字节。实机注入�键事件到选中状�更新为 1–59 毫秒,六次设置项移动为 26–36 毫秒。该计时覆盖事件处�和状�更新,�包�实体按键消抖或�幕扫�输出测�。人工按键手感�音质和长期�行�需体验验收。 + +### 2.0.1 正�安装结果 + +Build:PASS — 已关闭自动测试;应用 2,068,432 字节,�并镜� 8,192,000 字节,镜��分区校验全部通过。 + +Host tests:PASS — 完整仓库/主机门���键事件边界与��事件抑制�四�页�顶部�素比较�局部刷新� 100 次界�循环。 + +Device tests:PASS — 48 kHz 立体声 MP3 直播与�声�输出�八次短按切��延迟�击/�击去��长按�键抑制�三项设置循环�返回首页。COM6 正�镜�哈希和开机检查通过;五张工牌分区与本次更新�备份�字节一致。USB 确认当�工牌和 Wi-Fi 设置未�,Wi-Fi 已连接。验��已关闭串�。 + +Unverified:人工按键手感�音质�长期�行。1–59 毫秒计时是注入�键事件到选中状�更新的间隔。应用分区还剩 815,152 字节,音效负载和分区����。 + +正��并镜� SHA-256:`fe5106f950d1148dd3daeac395f64ddb829410305786395a9251f13318eeaa5d`。 + +## 2.0.2 — 精选频�与列表字形 + +电�列表�留 57 个内置精选 MP3 频�,并与最多 10 个本地结果�并。�一直播的 HTTP/HTTPS�Qingting/Qtfm 域�别�按直播 ID 去�。�使本地仅�现两�,也�会覆盖完整精选列表;本地目录��用时��留精选频�。 + +候选�自 [公开电�目录](https://github.com/gaotianliuyun/gao/blob/master/radio.txt) 和原项目预设,�项���存在 `assets/radio/STATIONS.txt`。2026-09-15 对 80 个候选抓�约 24 KB 短样本,57 个通过下载�MP3 编�识别与 PCM 解�检查,其余排除。频��称�公开目录;短样本验��代表节目内容核验或长期�用性。未将广播样本打包进固件或��。 + +精选记录�存在 Flash �读区;ESP32-C3 �行时目录共 4,252 字节(64 �主机测试为 4,264 字节),包� 10 个本地记录和最多 64 个索引,工作任务栈�� 10 KB。主机测试覆盖�并�别�去��伪域��容��首尾循环�空结果��。 + +第二个�程�说明�自自动生�的 `VOICE_SUMMARY`;原字库扫���了生�器中的“个�类�段�。字体生�器现在包�该文本��,并对实际生�说明和全部精选频��执行字形覆盖检查。实际 LVGL 预览确认“24 个分类 / 726 段音效�完整显示。 + +### 2.0.2 安装验� + +Build: PASS — 正�版关闭测试探针;应用 2,093,568 字节,应用分区空余 790,016 字节,�并镜� 8,192,000 字节。音效与分区布局��。 + +Host tests: PASS — 完整��门��字形覆盖�目录�并边界�四主题顶部��素比较�局部刷新和 100 次界�循环;57 个直播短样本通过下载和解�。 + +Device tests: PASS — COM6 实测�并� 61 �;怀集音�之声��岛�济广播�惠州音�广播分别以 44.1/32/48 kHz 解�并输出。八次短按状��应 1–57 ms,三项设置切�与返回首页通过。正�固件分段写入�哈希和正常�动通过;五张资料分区�字节��一致,当�工牌与 Wi-Fi 设置�留,验��关闭串�。 + +Unverified: 未在硬件��试�全部 57 个频�,未验�节目身份�长期在线率�音质�实体按键手感或续航。�应时间为注入按键�开事件到选中状�的时间,�包�实体消抖或�幕扫�。 + +目录链接映射确认:57 个精选记录��读 Flash 23,826 字节,目录 RAM 4,252 字节;比原 10 �记录数组多 72 字节。实机退出�空闲堆 71,760 字节,任务最�栈余� 2,476 字节。 + +正��并镜� SHA-256:`e15401e8e3e2126f359286f4abf1f3524c860588fa14d63234af8eb3adf46998`。 + +## 2.0.3 — 电�百分�完整显示 + +10 �素�字库原先给百分�分� 6 �素推进宽度,但实际字形� 10 �素,导致电��对�时末尾字形被�切。字体生�器现按百分�实际宽度预留空间,共用电�框扩大为 32 �素并���边缘��;Wi-Fi 图标左移 4 �素,留出间隔。首页和所有�程��步生效。 + +主机渲染将 0%�9%�10%�99%�100% 与宽框内无�挡文字��素比较,覆盖四套主题� Wi-Fi 连接/断开;�时检查字形边界�共用顶部一致性和 100 次界�循环。未知电��显示 `--`。验�使用实际 LVGL 渲染,未�摄实体�幕照片。 + +2.0.3 验�:Build PASS;Host tests PASS;Device tests PASS(分段安装�正常�动�五张工牌分区�字节���当�工牌� Wi-Fi 设置�留)。Unverified:实体�幕目视验收。应用大��为 2,093,568 字节。验��已释放串�。 + +从 2.6.4 起,界�英文标题为 **CITY RADIO**;上游��说明和已�存的电�设置��。 diff --git a/docs/muyu-validation.md b/docs/muyu-validation.md new file mode 100644 index 0000000..7d9c09b --- /dev/null +++ b/docs/muyu-validation.md @@ -0,0 +1,124 @@ +

简体中文 · English

+ +# Personnel Badge 1.7.1 validation + +Date: 2026-09-15. ESP-IDF 5.5.3 / ESP32-C3 / 8 MB flash / LVGL 9.5.0. + +| Field | Result | +| --- | --- | +| Build | PASS — native Windows build, merged image and partition verification | +| Host tests | PASS — eight C programs, 31 Python tests, repository checks, actionlint, Node web and QR tests | +| Device tests | PASS — 1.7.1 segmented installation, startup, unchanged five-profile catalog/active card/Wi-Fi; physical game appearance remains unverified | +| Unverified | Physical controls, physical icon appearance and reconnect transitions, WeChat scanning the physical display, audio, brightness, power removal and long runs | + +## Firmware + +- Application: 1,511,664 bytes at 0x10000; factory capacity: 6,815,744 bytes. +- Bootloader: 21,024 bytes; partition table: 3,072 bytes; merged image: 1,577,200 bytes. +- Merged image SHA-256: `5668e8537962d8208eb79a7b660e80929ed41bdb2e1bb2ab311a6e0a3a6a4c8f`. +- Version 1.6.0 hardware record: NVS, PHY and original profile addresses retained; four extra profiles occupy the old application partition tail, with a private pre-install backup. Segmented flashing verifies each segment and preserves NVS, PHY and `badge_user`. Startup succeeded; profile storage and USB service reported ESP_OK. +- Static gate ran in WSL; corresponding build, merge and image verification ran natively on Windows. This is not a claim that the single POSIX complete gate invocation passed in this environment. + +## Data and protocol (1.3.0) + +- Host tests cover legacy reads, v1-to-v2 upgrade, the complete 93,920-byte layout, bounds, CRC, incomplete uploads, partial commits, reboot recovery, QR removal and sequence wraparound. +- Uploaded non-personal test branding, palette, fields, icon and QR to hardware; all 93,920 bytes and metadata matched on complete readback. +- A competing writer session was rejected. Hardware restart during a later incomplete upload retained the previous committed profile and QR. +- Original data was backed up and restored after testing. Private backups and raw test logs remain in the work directory and are not distributed in source archives. + +## Hotspot (1.3.0) + +- The device started a WPA2 setup hotspot with a random password; USB remained responsive. +- An idle host wireless adapter joined the real hotspot and downloaded the embedded compressed HTML and offline QR libraries. +- HTTP metadata matched USB. Read the existing profile fully and saved it unchanged through HTTP. +- Missing header tokens and foreign Origin requests returned 403. Host regression tests cover IPv4 and mapped IPv6 AP-interface matching and reject non-AP addresses. +- Invalid SSID/password bounds were rejected. Testing closed the hotspot, disconnected temporary Wi-Fi and removed the newly created WLAN profile. +- No real user Wi-Fi password was used to test router association. NVS credential storage and boot connection are implemented; actual network acceptance remains to be checked. + +## UI and QR (1.3.0) + +- Browser checks exercised Chinese brand/caption edits, live cyan theme changes, and QR file selection, decoding, regeneration and validation feedback. +- Node tests cover RGB565 roundtrip, input validation, QR encode/decode identity, monochrome packing and capacity limits. +- Real LVGL code rendered badge, terminal, library, settings, QR, network and Muyu pages. The 192 × 192 QR render decoded with jsQR to the public test URL without changing content. +- Fixed missing glyphs in network labels and inspected the final network page. Native browser serial-picker and complete mobile-browser interactions were not automated; hardware USB/HTTP protocols were tested. +- The 40 KB LVGL pool had 23,016 bytes free after 1,000 strikes, peak usage 15,976 bytes, fragmentation 3%. After 100 cycles including new pages, free space was 22,952 bytes, equal to the warmed baseline. Synchronous active-screen replacement emits LVGL warnings; the cycles completed. These are host LVGL measurements, not long-term whole-device heap measurements. + +## 1.3.1 quick QR + +- DOWN on home opens QR immediately. DOWN, OK and long OK return to home. Opening QR from the terminal returns to that terminal and preserves selection. Games remain accessible from the terminal. +- Repeated Windows build/merge/image checks, WSL static checks, Node web tests, LVGL rendering and 100 page cycles. Navigation regressions cover all three close inputs, origin-aware return and the game entry path. +- Inspected final home/QR button hints. Version 1.3.1 was installed and booted successfully; physical button acceptance remains. + +## 1.3.2 nearby Wi-Fi list + +- USB and hotspot configuration scan automatically after connection. Manual refresh, strongest-first ordering, SSID/security deduplication and up to 16 entries are supported. Selecting an entry fills SSID; hidden networks remain editable manually. +- Host tests cover deduplication, signal ordering, capacity and hidden entries. Node tests cover selection, password drafts, open networks, unsupported security, disconnected controls and literal SSID text rendering. +- Windows build/merge checks, the WSL static gate (eight C programs, 31 Python tests and supporting checks) and both Node suites passed. Version 1.3.2 was installed through COM6 with segment hash verification and booted successfully. +- Real USB scanning found 3 networks; the start request returned in approximately 0.2 seconds. Profile reads stayed responsive, and profile and saved network settings matched before and after scanning. +- An idle wireless adapter joined the real badge hotspot, fetched the updated offline page and found 5 networks through HTTP scanning. The hotspot and configuration API remained available, and the profile revision stayed unchanged. Cleanup removed the temporary WLAN profile, closed the hotspot opened by this test and released serial. +- Counts reflect separate scans in the local environment. Router association with user credentials and the complete mobile-browser selection flow were not exercised. + +## 1.3.3 header Wi-Fi status icon + +- Badge pages reserve a slot before the battery and use the configured text color. The icon appears after the station obtains an IP, hides on disconnect and updates about once per second. Setup AP alone does not indicate station connectivity. The Muyu game retains its separate UI. +- Production LVGL rendering tests exercise connected, disconnected and AP-only states. Pixel assertions confine changes to the icon slot and verify exact restoration after disconnect. Title and battery stay unobstructed; the rendered image was inspected. +- Windows build/merge verification, WSL static checks and real LVGL rendering passed. Free memory after 100 page cycles matched the baseline. Previous Node web-test results remain applicable to the unchanged configuration page. +- Installed 1.3.3 through COM6 with segment hash verification. Startup and profile storage succeeded. USB readback confirmed connection using the saved network (connected=true); no network password or profile data was written. Serial was released. +- Physical icon appearance has not been checked by camera or a person, and the user's network was not interrupted to test reconnect behavior. Connected status does not verify Internet reachability. + +## 1.3.4 compact header + +- Removed the BAT prefix: battery is a right-aligned percentage, or -- when unavailable. The Wi-Fi icon is approximately 8 pixels high to match the small header text and sits beside the battery. The configuration preview also removes BAT. +- Windows build/image verification, WSL static checks and Node web tests passed. Production LVGL rendering verified icon visibility, reserved bounds and 100 page cycles. The render was visually inspected; physical screen appearance remains for user confirmation. +- Installed 1.3.4 through COM6 with segment hash verification. Startup and profile storage succeeded. Post-install USB readback confirmed Wi-Fi connectivity and the same profile revision as before installation. Serial was released. + +## 1.4.0 home design and AI Passport heading + +- Retains the saved five-color palette, adding an orbital emblem, portrait framing, side scales and an engraved classification strip. The three footer actions are spaced separately. Every badge-shell page uses AI Passport at top left, with a matching configuration preview. +- Profile image format, dimensions, position and storage protocol remain compatible. Decorations occupy existing gutters without resaving or replacing the avatar, text, palette or QR. Host renders use synthetic example identity data; user profile data is not distributed. +- Native Windows build/merge verification, WSL static checks and Node web tests passed. Production LVGL renders of default and configured home pages were inspected; Wi-Fi state transitions and bounds passed. The 40 KB LVGL pool retained 23,032 bytes after 1,000 strikes, with peak usage of 16,592 bytes. After 100 page cycles, free memory was 22,992 bytes, matching the warmed baseline. +- Installed 1.4.0 through COM6 with segment hash verification; startup and profile storage succeeded. USB readback confirmed Wi-Fi connectivity and the same profile revision as before installation. Serial was released. Physical screen appearance and controls remain for user confirmation. + +## 1.5.0 asymmetric portrait layout + +- Rebuilt the home composition: upper-left brand, upper-right emblem, right portrait enlarged from 72 x 88 to 90 x 110, left-aligned name/department/title and a separate bottom ID/signature strip. Saved colors and compact header status remain; the configuration preview matches. +- Read-only image views reuse regions of the existing stored card without writing profile data. Views retain source stride; the signature uses the complete source row width so the final row and buffer stay within the original card allocation. +- Initial rendering caught image-view sizes that did not satisfy LVGL full-stride requirements; corrected them before installation. Final production LVGL rendering passed exact text-pixel comparisons, region bounds, Wi-Fi states and 100 page cycles. Only the portrait is scaled; all other profile-region pixels exactly match their source. +- Windows build/merge verification, WSL static checks and Node web tests passed. The 40 KB LVGL pool retained 23,016 bytes after 1,000 strikes, with peak usage of 18,016 bytes. After 100 page cycles, free memory was 22,952 bytes, matching the warmed baseline. Render examples use synthetic profiles. +- Installed 1.5.0 with segmented flashing and hash verification. Startup, profile storage and Wi-Fi readback succeeded. Profile revision matched its pre-install value; serial was released. Physical appearance and button operation remain for user confirmation. + +## 1.5.1 remove DIVISION heading + +- Removed DIVISION from the home page and configuration preview according to the final request. Actual department content, existing font metrics, palette and layout remain. The earlier spacing proposal was not shipped. +- Windows build/merge verification, WSL static checks and Node web checks passed. Production LVGL rendering confirmed heading removal and exact profile-region pixels. Free memory after 100 page cycles matched baseline; after 1,000 strikes, 23,016 bytes remained with peak usage of 17,656 bytes. +- After serial became available, installed 1.5.1 using segmented flashing with hash verification. Startup, profile storage and USB Wi-Fi readback succeeded. Serial was released after testing; physical appearance remains for user confirmation. + +## 1.6.0 five independent badges + +- Each card has an independent pair of committed banks. Slot 1 keeps the original data address; slots 2–5 use the new partition. Host tests cover isolation, switching barriers, an interrupted inactive write, partial commit, clearing one slot and reload. Navigation tests cover home double-OK entry, selection, wrap, empty-slot rejection and return, while retaining the QR and game paths. +- Three Node suites cover profile/QR conversion, Wi-Fi selection and multi-badge editing. Multi-badge tests verify literal catalog names, independent editing/display selection, explicit write targets and stale-revision protection. +- Real LVGL rendering includes all five list rows and current/selected indicators. Header Wi-Fi bounds and exact profile-field pixels pass. The 40 KB pool retains 23,016 bytes after 1,000 strikes, with peak usage 18,016 bytes; after 100 cycles including the badge picker, free space is 22,952 bytes, identical to the warmed baseline. +- Segmented COM6 installation verified hashes. The existing profile metadata and revision matched the private pre-install backup. A temporary fifth card was uploaded without changing the active card; all 93,920 payload bytes matched on readback. Incomplete upload cancellation, switching during upload, implicit legacy writes and stale clear requests were tested. +- Selecting card 5 survived a hardware reset, including its QR. A spare wireless adapter joined the real setup hotspot, downloaded the five-card editor, read specific cards/QR and switched the displayed card through HTTP; USB saw the same selection. Missing token and foreign Origin requests were rejected. +- Cleanup restored card 1, cleared the temporary card, closed the test hotspot, removed only the temporary WLAN profile and released COM6. All original profile assets matched the pre-install backup byte-for-byte; saved Wi-Fi settings remained unchanged and connected. Private raw backups/logs are excluded from deliverables. +- Physical double-click timing and button feel, real screen appearance and phone WeChat scanning remain manual checks. The native browser serial picker and complete mobile browser form were not automated; shared USB/HTTP endpoints and host editor logic were tested. + +## 1.6.1 compact switching hint + +- Home renders the switching hint and active/total number on one 10 px line. Header badge numbering is removed from all shell pages. The browser preview matches. Four Chinese glyphs are added to the 10 px font; existing ASCII advances are preserved. +- Windows build/merge/image checks, the WSL static gate, Node profile/QR checks and real LVGL renders passed. Profile pixels and Wi-Fi bounds remain intact; 100 page cycles retain the same free memory as the warmed baseline. This change does not modify storage or controls. +- Installed 1.6.1 through COM6 using segmented flashing; all three image hashes verified. Startup reported ready, with buttons, battery and storage available. Readback of all five profiles, their revisions, current selection and saved Wi-Fi settings matched the pre-install snapshot. Saved Wi-Fi connected successfully. COM6 was released. Physical appearance remains unverified. + +## 1.7.0 built-in game theme + +- `badge_theme` is the shared five-color source for shell and games. Active profile reload updates it under the LVGL lock; Muyu applies palette revisions during its existing UI refresh, including while mounted. No counters, timing, audio or storage behavior changes. New games have a documented theme integration contract. +- Muyu uses original vector percussion artwork and theme-colored striker, feedback, labels and footer. Its AI Passport header and battery use the shell's 10 px font. The old orange bitmap is no longer embedded. +- Production LVGL renders default red, cyan, amber and a custom light palette. Switching themes on a mounted game verifies exact background/panel colors, text and percussion accent pixels, and unchanged count. Existing profile-image and Wi-Fi bounds regressions pass. After 1,000 strikes the 40 KB pool has 22,232 bytes free, peak usage 17,656 bytes; after 100 theme/page cycles it retains 22,216 bytes, equal to its warmed baseline. +- Windows firmware build/merge/partition verification and the complete WSL static gate pass. Screenshot comparisons were visually inspected. This feature shipped with 1.7.1 below. Physical gameplay/theme appearance and audio remain unverified. + +## 1.7.1 name wrapping and plain card numbers + +- The editor rasterizes names into a clipped 112 x 32 two-row region, preferring word boundaries and reducing the font for longer names. Very long names retain their complete metadata and use an ellipsis only after exhausting both rows at the minimum font. Existing saved images require one read/save in the updated editor. Default firmware text enables wrapping. Home/preview counters use 1/5 and picker rows use 1–5. +- Node tests cover English words, CJK, long unbroken strings, repeated spaces, supplementary Unicode and the two-row limit. A real local browser rendered FOLO / MAKER and a long Chinese name across two rows; its updated help text was checked. No device writes were made by that test browser. +- Real LVGL screenshots use a synthetic two-row fixture, verifying unchanged image-region bounds and the 1/5 counter. The full WSL static gate, Windows build/merge/image checks and existing live-game-theme/page-cycle regressions passed. +- COM6 segmented installation verified all three image hashes and booted 1.7.1. Before/after USB readback matched every slot's profile/revision, active selection and Wi-Fi settings; saved Wi-Fi connected. Serial and the temporary local preview service were released. Actual display appearance, resaving an existing personal name and physical game operation remain unverified. diff --git a/docs/muyu-validation.zh_CN.md b/docs/muyu-validation.zh_CN.md new file mode 100644 index 0000000..a9f9cd6 --- /dev/null +++ b/docs/muyu-validation.zh_CN.md @@ -0,0 +1,124 @@ +

简体中文 · English

+ +# 员工牌 1.7.1 验�报告 + +日期:2026-09-15。ESP-IDF 5.5.3 / ESP32-C3 / 8 MB Flash / LVGL 9.5.0。 + +| 字段 | 结果 | +| --- | --- | +| Build | PASS — Windows 原生编译��并镜�和分区验� | +| Host tests | PASS — 八个 C 程��31 项 Python 测试�仓库检查�actionlint�Node 网页和二维�测试 | +| Device tests | PASS — 1.7.1 分段安装��动�五张工牌/当�显示/Wi-Fi �留检查;实物游�效果尚未验� | +| Unverified | 实体按键�作�实物图标显示与断线�连�手机微信扫�实物�幕�音质�亮度�物�断电和长时间�行 | + +## 固件 + +- 应用 1,511,664 字节,�于 0x10000;factory 容� 6,815,744 字节。 +- 引导程� 21,024 字节,分区表 3,072 字节;�并镜� 1,577,200 字节。 +- �并镜� SHA-256:`5668e8537962d8208eb79a7b660e80929ed41bdb2e1bb2ab311a6e0a3a6a4c8f`。 +- 1.6.0 硬件记录:�留 NVS�PHY 和原工牌地�,�外四张使用旧应用区未使用的尾部,安装�已完��有备份;采用分段刷写并校验�段哈希,未覆盖 NVS�PHY � `badge_user`。�动�功,资料存储和 USB �务�返回 ESP_OK。 +- WSL 执行��门�;Windows 原生执行对应的编译��并�镜�验�。没有声称�次 POSIX 完整门�脚本在此环境中通过。 + +## 数�与�议验�(1.3.0) + +- 主机测试覆盖旧版资料读��v1 → v2 �级�完整 93,920 字节布局�边界�CRC�上传未完��部分�交������二维�移除和��回绕。 +- 实机上传�个人测试�牌��色�字段�图标和二维�,回读全部 93,920 字节与元数�,�字节一致。 +- ��会�抢�写入被拒�。在�一笔未完�上传中��硬件,�一份完整资料和二维�����。 +- 测试�备份原有资料,结����。测试记录和�人备份仅�存在工作目录,未进入交付��。 + +## 热点验�(1.3.0) + +- 工牌�功�动带�机密�的 WPA2 热点;开�期间 USB 继续�应。 +- 用空闲无线网�真实连接工牌,�功下载内置压缩 HTML 和离线二维�库。 +- HTTP 读�结果与 USB 一致;通过 HTTP 完整回读并原样�新�存了已有资料。 +- 缺失请求头令牌和外部 Origin 请求�返回 403;IPv4 与 IPv6 映射地�的热点网�判定�有回归测试,�热点地�被拒�。 +- 无效 SSID/密�边界请求被拒�。测试�关闭热点�断开临时无线连接并删除本次创建的 WLAN �置。 +- 未使用用户真实 Wi-Fi 密�测试路由器接入;网络凭�的 NVS �存与�动连接路径已实现,需�使用实际网络验�结果。 + +## 页�与二维�(1.3.0) + +- �览器验�了中文�牌/标题与冰��色实时修改,以�二维�图片选择�识别��建和校验�馈。 +- Node 测试覆盖 RGB565 往返�文本校验�二维�编�/解�一致性��色打包与容��制。 +- 使用真实 LVGL 代�渲染工牌�终端�应用库�设置�二维��网络与木鱼页。192 × 192 二维�渲染图能被 jsQR 解�为公开测试地�,�留正确内容。 +- 修正了网络页��字库缺字,并检查最终网络页文字。�览器原生串�选择器和手机端�览器完整交互未自动执行;USB 与 HTTP �议已在硬件上验�。 +- 40 KB LVGL 池在 1,000 次敲击�剩余 23,016 字节,最高使用 15,976 字节,碎片率 3%;�新页�的 100 次循环�剩余 22,952 字节,与预热基线一致。活动�幕�步替�时会打� LVGL 警告,循环正常完�;这些是主机 LVGL 数�,�是整机长期内存测�。 + +## 1.3.1 一键亮� + +- 首页下键立�进入二维�;下键�OK�长按 OK 返回首页。从终端打开二维�时返回终端,�留��选中项。�游�入��在终端。 +- �新通过 Windows 编译/�并/镜�检查�WSL ��检查�Node 网页测试�LVGL 渲染和 100 次页�循环。导航回归测试覆盖三个收起按键���入�的返回目标以�游�入�。 +- 已检查最终首页与二维�页按键�示。1.3.1 已安装并正常�动,实体按键�待实际�作验�。 + +## 1.3.2 附近 Wi-Fi 列表 + +- USB 和热点�置页连接�自动扫�,支�手动刷新�按信�强度排���并��且�加密方�的热点,最多显示 16 项;点击网络填写 SSID,��网络�手动输入。 +- 主机测试覆盖扫�列表去��强弱排��容��制与��网络;Node 测试验�选网�密��稿处��开放网络��用�支�的加密方��断开状�和 SSID 文本安全显示。 +- Windows 编译�镜��并检查�WSL ��门�(八个 C 程��31 项 Python 测试等)�两个 Node 测试�通过。1.3.2 已通过 COM6 分段安装�哈希校验并正常�动。 +- USB 实机扫��现 3 个网络,�动扫�请求约 0.2 秒返回;扫�期间资料读�正常,扫���资料和已�存网络设置一致。 +- 空闲无线网�真实连接工牌热点,下载新版离线页�,并通过 HTTP 扫��现 5 个网络;扫�期间热点与�置接��续�用,资料版本未�化。测试�删除临时 WLAN �置�关闭本次开�的热点并释放串�。 +- 两次扫�的数��映�次现场结果。未使用用户网络密�测试选网�的路由器接入,未自动�作手机端完整选网�程。 + +## 1.3.3 顶部 Wi-Fi 状�图标 + +- 工牌�页�在顶部电�左侧预留图标�置,使用当�文案颜色。连接网络并获得 IP �显示;断开��,状�约一秒更新一次。仅开��置热点�显示�网图标。木鱼游�沿用独立界�。 +- 使用实际 LVGL 绘制代�验�连接�断开�仅热点三�状�,并��素断言�化仅出现在图标预留区域,断开�完整��原画�。标题和电�未被�挡,已检查渲染图。 +- Windows 编译��并镜�验��WSL ��检查与真实 LVGL 渲染通过。100 次页�循环��用内存与基线一致;之�的 Node 网页测试结果�适用于本次未修改的�置页。 +- 通过 COM6 分段安装 1.3.3 并校验哈希;�动和资料存储正常。USB 回读确认工牌已使用�存的网络连接�功(connected=true);本次没有写入网络密�或工牌资料。串�已释放。 +- 尚未通过摄�头或人工检查实物�幕的图标,也未主动中断用户网络测试断线�连;连接状��代表已验�互�网访问。 + +## 1.3.4 紧凑顶部状�� + +- 去除电��的 BAT,�显示百分比,读数��用时显示 --;电��对�。Wi-Fi 图标缩�至约 8 �素高,与顶部�字匹�,并�近电�排列。�置页预览�步去除 BAT。 +- Windows 编译和镜�验��WSL ��门��Node 网页测试�通过。实际 LVGL 渲染验�了图标显示/���预留区域和 100 次页�循环;已人工检查渲染图,实物�幕效果�待用户确认。 +- 1.3.4 已通过 COM6 分段安装并校验哈希,�动�资料存储正常。安装� USB 回读确认 Wi-Fi 已连接,资料版本与安装�一致,串�已释放。 + +## 1.4.0 首页视觉与 AI Passport 标题 + +- 沿用已�存的五色�色方案,首页加入轨�徽记�头��景框�刻度边�和铭刻分类�,�排三个底部�作�示。工牌�页�左上角统一显示 AI Passport,�置页预览�步更新。 +- 资料图�格��尺寸�显示�置与存储�议��兼容;在留白区域绘制装饰,��新�存或替�已有头��文案��色和二维�。主机渲染使用��示例资料,未将用户资料放入交付文件。 +- 原生 Windows 编译�镜��并验��WSL ��门�与 Node 网页测试通过。已检查实际 LVGL 渲染的未�置/已�置首页,验� Wi-Fi 图标状��边界。40 KB LVGL 池在 1,000 次敲击�剩余 23,032 字节,最大使用 16,592 字节;100 次页�循环�剩余 22,992 字节,与预热基线一致。 +- 1.4.0 已通过 COM6 分段安装并校验哈希,�动�资料存储正常。USB 回读确认 Wi-Fi 已连接,资料版本与安装�一致;串�已释放。实物�幕观感和按键�作�待用户确认。 + +## 1.5.0 �对称人�布局 + +- 全��排首页:�牌左上�图标�上,头�移到�侧并从 72 × 88 放大到 90 × 110;姓��部门和��左侧纵�排列,工�和签�独立放在底部横�。�留原�色�顶部状�显示,�置页预览�步布局。 +- 从旧资料图按区域创建�读图�视图,�写入用户资料。视图使用原图行�;签��留完整行宽,确�最�一行�图�缓冲区在原资料边界内。 +- �次渲染检查�现图�视图大��满足 LVGL 完整行��求,已修�;最终实际 LVGL 渲染通过��素文字比对�区域边界�Wi-Fi 图标状�与 100 次页�循环。头�为唯一缩放区域,其余资料�素与原图�字一致。 +- Windows 编译/�并验��WSL ��门�和 Node 网页测试通过。40 KB LVGL 池在 1,000 次敲击�剩余 23,016 字节,峰值使用 18,016 字节;100 次页�循环�剩余 22,952 字节,与预热基线一致。渲染示例使用��资料。 +- 已分段安装 1.5.0 并校验�段哈希,�动�资料存储和�网状�正常;资料版本与安装�一致,串�已释放。实物�幕观感�实体按键�待用户确认。 + +## 1.5.1 移除 DIVISION 标题 + +- 按最终需求删除工牌首页与�置预览的 DIVISION 标题,�留实际部门内容�既有字体��色和布局。原字�调整方案未�布。 +- Windows 编译/�并验��WSL ��门��Node 网页检查通过。实际 LVGL 渲染确认标题移除�资料区域�素完整,100 次页�循环��用内存与基线一致;1,000 次敲击��用内存 23,016 字节,峰值使用 17,656 字节。 +- 串�释放�已分段安装 1.5.1,�段哈希校验通过。�动�资料存储� USB �网状�回读正常,测试�释放串�;实物显示�待用户确认。 + +## 1.6.0 五张独立工牌 + +- �张工牌有独立的两份�交存档。第 1 张�留原存储地�,第 2–5 张使用新增分区。主机测试覆盖隔离�切��障���工牌写入中断��交�完整��张清空和�新加载。导航测试覆盖首页�击 OK 进入�选择�循环�空�置�用和返回,并��二维��游�路径。 +- 三组 Node 测试覆盖资料/二维�转��Wi-Fi 选择和多工牌编辑。多工牌测试验��称按纯文本显示�编辑与显示�置独立�明确写入目标�过期版本�护。 +- 真实 LVGL 渲染包�五行工牌列表�当�显示和选中标记。顶部 Wi-Fi �素边界�资料字段�素一致性通过。40 KB 内存池在 1,000 次敲击�剩余 23,016 字节,峰值使用 18,016 字节;包�工牌列表的 100 次页�循环�剩余 22,952 字节,与预热基线相�。 +- COM6 分段安装通过哈希校验。原资料�版本与安装��有备份一致。临时第 5 张写入�未改�当�显示工牌,全部 93,920 字节有效载�回读一致。验�了�消中断上传�上传时拒�切��拒�旧版��写入�过期清空请求。 +- 切�到第 5 张�,硬件���记�该工牌和二维�。备用无线网�连接真实�置热点,下载五张工牌编辑页,读�指定工牌�二维�,通过 HTTP 切�显示;USB 读��样的选择结果。缺失令牌和外部 Origin 请求�被拒�。 +- 清���第 1 张显示,清空临时工牌,关闭测试热点,仅删除临时 WLAN �置并释放 COM6。原工牌全部图�与安装�备份�字节一致,已�存 Wi-Fi 设置未改�且��连接。�有原始备份和日志�包�在交付包中。 +- 实体�击时机和按键手感�实际�幕效果�手机微信扫��待手工确认。未自动�作�览器原生串�选择器�完整手机表�,已验�共用 USB/HTTP 接�和主机端编辑逻辑。 + +## 1.6.1 紧凑切��示 + +- 首页将切��示和当�/总工牌��放在�一行,使用 10 �素文字。�工牌页���在顶部显示��,�览器预览�步。10 �素字库新增四个汉字,已有 ASCII 字符间�����。 +- Windows 编译��并�镜�检查,WSL ��门�,Node 资料/二维�检查和真实 LVGL 渲染�通过。资料�素和 Wi-Fi 边界��正确,100 次页�循环��用内存与预热基线一致。本次�修改存储和按键逻辑。 +- 已通过 COM6 分段安装 1.6.1,三个镜�段哈希�通过校验。�动就绪,按键�电�和存储�正常。五张工牌资料�版本�当�选择�已�存 Wi-Fi 设置与安装�记录一致;Wi-Fi 已连接。COM6 已释放。实物显示效果尚未验�。 + +## 1.7.0 内置游�跟�主题 + +- `badge_theme` 为工牌和游��供共用五色主题。当�工牌资料�载时在 LVGL �内更新,木鱼在既有界�刷新中应用主题版本,包括�行期间更新。�改�计数�定时�音频或存储行为,新增游�有明确的主题接入约定。 +- 木鱼采用原创矢�绘制,木槌�敲击�馈�文字和底�跟�主题。AI Passport 标题�电�使用与工牌一致的 10 �素字库,��嵌入旧橙色背景图。 +- 真实 LVGL 渲染验�默认红黑��色���和自定义浅色。游��行中切�主题,检查背景/��精确颜色�文字和木鱼强调色�素,并确认计数��。原有资料图片� Wi-Fi 边界回归通过。40 KB 内存池在 1,000 次敲击�剩余 22,232 字节,峰值使用 17,656 字节;100 次�主题�页�循环�剩余 22,216 字节,与预热基线一致。 +- Windows 编译��并�分区验�� WSL 完整��门�通过,已查看主题对比渲染图。本功能�下方 1.7.1 一并安装,实体游�/�色效果和音频尚未验�。 + +## 1.7.1 姓��行与简化�� + +- �置页将姓�绘制在�切范围为 112 × 32 的两行区域,优先按空格分�,较长姓�会缩�字�。最�字��无法容纳时�显示�略�,完整文字始终�存。旧版已�存图片需在新版�置页读�并�存一次,默认固件文字也�用�行。首页/预览计数改为 1/5,工牌列表行�为 1–5。 +- Node 测试覆盖英文���中文�连续长��多空格�补充平� Unicode 和两行边界。在本地真实�览器中确认 FOLO / MAKER 和中文长姓�分两行完整显示,并核对更新�的�作说明。该测试�览器未写入设备。 +- 真实 LVGL 截图使用两行姓�示例,验�图片区域边界� 1/5 ��;WSL 完整��门��Windows 编译/�并/镜�验��游�实时�主题�页�循环回归通过。 +- COM6 分段安装的三个镜�哈希�通过,1.7.1 �动就绪。安装�� USB 回读确认��置资料�版本�当�选择�Wi-Fi 设置一致,已�存 Wi-Fi 连接�功。串�和临时本地预览�务已释放。实物显示�旧个人姓��新�存�实体游��作尚待确认。 diff --git a/docs/nfc-web.md b/docs/nfc-web.md new file mode 100644 index 0000000..8d243db --- /dev/null +++ b/docs/nfc-web.md @@ -0,0 +1,20 @@ +

简体中文 · English

+ +# NFC usage instructions (2.4.8) + +The configuration page contains a static Android phone guide, with no URL +input, transfer QR generator, Web NFC write/read controls or NFC JavaScript. +The NTAG213 is independent of the MCU: saving badge profiles over USB or +the hotspot does not write NFC. One tag URL applies to all five profiles. + +Enable phone NFC, open an NFC writing app such as NXP TagWriter, add a URL +record, enter the desired website and hold the phone against the badge until +writing completes. Writing replaces the previous tag content; leave the tag +writable for future changes. Exit the app, move the phone away, then tap +again and follow the phone's prompt to verify the destination. + +The displayed URL is an example, not a readback or a claim of successful tag +programming. Internet destinations need phone connectivity; the hotspot +configuration URL requires joining the badge hotspot first. Changing NFC +content needs no firmware update. Version 2.4.8 updates the embedded hotspot +help page only; it does not program the NFC chip. diff --git a/docs/nfc-web.zh_CN.md b/docs/nfc-web.zh_CN.md new file mode 100644 index 0000000..78beca8 --- /dev/null +++ b/docs/nfc-web.zh_CN.md @@ -0,0 +1,15 @@ +

简体中文 · English

+ +# NFC 使用说明(2.4.8) + +�置页仅�留安�手机�作说明,移除网�输入�传递二维��Web NFC 读写按钮 +� NFC JavaScript。NTAG213 独立于主控,USB 或热点�存工牌资料�会写入 NFC。 +一�标签的网�由全部五张身份牌共用。 + +开�手机 NFC,打开 NFC 写入应用(例如 NXP TagWriter),添加网�记录,填写 +目标网站,将手机贴近工牌直到写入�功。写入替�原标签内容;�留�写状�以便 +以�修改。退出应用,移开手机��次碰一碰,按手机�示验�打开的网�。 + +页�中的网��是示例,�是标签回读结果,也�表示已写入。公网网页需�手机 +�网;热点�置页需先连接工牌热点。修改 NFC 内容无需更新固件。2.4.8 �是�步 +更新内置热点帮助页�,并�对 NFC 芯片进行编程。 diff --git a/docs/portrait-home.md b/docs/portrait-home.md new file mode 100644 index 0000000..e1ddfe7 --- /dev/null +++ b/docs/portrait-home.md @@ -0,0 +1,50 @@ +

简体中文 · English

+ +# Portrait homepage (2.3.0) + +The 240 × 320 homepage uses a centered 112 × 136 portrait, compact brand row, +full-width name with up to two lines, paired department/title, identifier and +signature. Each badge retains its own palette and custom logo. The shared +status bar and four button hints keep their existing actions. + +The offline USB/hotspot editor embeds Orbitron 700 for Latin headings and +Caveat 600 for Latin signatures; Chinese uses the browser's available Chinese +font. The browser rasterizes text into RGB565 before upload so the device +does not need a large multilingual font library. Long metadata fields use +an ellipsis; names wrap to two lines before falling back to an ellipsis. + +## Storage and compatibility + +V3 payload order: information strip (208 × 76, 31,616 bytes), portrait +(112 × 136, 30,464), brand (148 × 32, 9,472), logo (32 × 32, 2,048), QR +(192 × 192, one bit per pixel, 4,608). Total: 78,208 bytes. Partition locations +and 0x18000-byte alternating banks are unchanged; the header commits last. +V1/V2 remain readable and writable. The protocol stays at version 2 and +advertises `maxProfileVersion: 3`; dimensions describe the requested badge's +stored format. New uploads explicitly request format 3. + +Old badges can be displayed immediately using legacy crops. Reading and +saving them in the new editor upgrades that badge. Old 72 × 88 photos are +resampled; upload the original photograph again for native portrait detail. +The previous full-flash backup remains a rollback option. Application-only +updates preserve NVS, profile banks and voice partitions. + +## Font sources + +- [Orbitron](https://github.com/google/fonts/tree/main/ofl/orbitron), SIL OFL, + `assets/fonts/Orbitron.ttf` and `Orbitron-OFL.txt`. +- [Caveat](https://github.com/google/fonts/tree/main/ofl/caveat), SIL OFL, + `assets/fonts/Caveat.ttf` and `Caveat-OFL.txt`. + +The `*-latin.woff2` subsets include U+0020–00FF and U+2010–2027, generated +with fontTools `pyftsubset INPUT --unicodes=U+0020-00FF,U+2010-2027 +--flavor=woff2 --output-file=OUTPUT`. `tools/build_config_page.py` embeds them +as data URLs; no internet connection is needed while configuring the badge. + +## Validation + +Persistence tests cover mixed V2/V3 badges, all asset offsets and bounds, +interrupted uploads/commits and unchanged neighboring badges. Browser checks +cover fonts, exact payload size, metadata and QR preservation. The actual +LVGL homepage renderer survives 200 home/list transitions in a 32 KiB pool +(18,128 bytes maximum used in the native renderer). diff --git a/docs/portrait-home.zh_CN.md b/docs/portrait-home.zh_CN.md new file mode 100644 index 0000000..1824b1e --- /dev/null +++ b/docs/portrait-home.zh_CN.md @@ -0,0 +1,41 @@ +

简体中文 · English

+ +# 竖版肖�首页(2.3.0) + +240 × 320 首页采用居中的 112 × 136 肖��紧凑�牌区�最多两行的通�姓�� +并排部门与���编�和签�。�张工牌继续使用自己的�色和自定义图标; +共用状���底部四项按键�示�留原有功能。 + +USB�热点离线�置页内置 Orbitron 700 拉�标题字体和 Caveat 600 拉�签�字体, +中文使用�览器�用的中文字体。网页把文字栅格化为 RGB565 �上传,硬件无需 +�存庞大的多语言字库。过长资料显示�略�;姓�优先�行,最多两行。 + +## 存储与兼容 + +V3 数��次为:信�区(208 × 76,31,616 字节)�肖�(112 × 136,30,464)� +�牌区(148 × 32,9,472)�图标(32 × 32,2,048)�二维�(192 × 192, +��素一�,4,608)。�计 78,208 字节。分区�置��个 0x18000 字节的�存储区 +����,最�写入头部�完��交。继续支�读写 V1�V2。 +通信�议�为 2,通过 `maxProfileVersion: 3` 声明支�的新格�;返回的尺寸对应 +所请求工牌的实际存储格�,新上传明确指定格� 3。 + +旧工牌�直接使用兼容�剪显示,在新版�置页读�并�存�,该工牌会�级格�。 +旧版 72 × 88 头�会�采样,�新上传原始照片�获得新尺寸的清晰度。 +原�的完整 Flash 备份��用于回退。仅更新程�分区会�留 NVS�工牌和音效分区。 + +## 字体�� + +- [Orbitron](https://github.com/google/fonts/tree/main/ofl/orbitron),SIL OFL, + 文件为 `assets/fonts/Orbitron.ttf` 与 `Orbitron-OFL.txt`。 +- [Caveat](https://github.com/google/fonts/tree/main/ofl/caveat),SIL OFL, + 文件为 `assets/fonts/Caveat.ttf` 与 `Caveat-OFL.txt`。 + +`*-latin.woff2` �集�留 U+0020–00FF�U+2010–2027,使用 fontTools 命令 +`pyftsubset INPUT --unicodes=U+0020-00FF,U+2010-2027 --flavor=woff2 --output-file=OUTPUT` +生�。`tools/build_config_page.py` 将其以内�数�嵌入�置页,�置时无需互�网。 + +## 验� + +存储测试覆盖 V2�V3 混用�全部素��移�边界�上传或�交中断�相邻工牌����。 +�览器检查覆盖字体�数�包长度�资料�二维�����。实际 LVGL 绘制代�在 +32 KiB 内存池中完� 200 次首页�列表切�,原生渲染器记录的最大�用为 18,128 字节。 diff --git a/docs/power-recovery.md b/docs/power-recovery.md new file mode 100644 index 0000000..9b66fbe --- /dev/null +++ b/docs/power-recovery.md @@ -0,0 +1,78 @@ +

简体中文 · English

+ +# Power recovery in 2.6.35 + +This release adapts the audio recovery and BSP lifetime protections from +[FoloToy/ai-passport 31759c4](https://github.com/FoloToy/ai-passport/tree/31759c4d63dd0d0d6580d6f74639ed5315bcd2c3). +It preserves this application's audio ownership, volume, display capture, +ten-row display buffer, background wake-word detector and deep-sleep button wake. + +## Audio + +- Control/data wrappers retain errors swallowed by codec-dev, including TX errors + otherwise hidden by successful RX operations. +- Sleep deletes codec objects before applying and checking the full ES8311 sleep + sequence, then stops I2S. Shared I2C and I2S resources remain allocated for wake. +- Wake and format changes rebuild the codec through public APIs, restore the + saved format and volume, and revoke PCM access on failure. Failed opens return + to stopped I2S and forced codec sleep. Releasing an uncertain codec reference + fails closed until reboot. +- `bsp_audio_init()` retains the product contract: an initialized, sleeping codec + is awakened. `bsp_audio_is_sleeping()` reports verified sleep, whereas + `bsp_audio_needs_wake()` also covers partial open/suspend failures. +- A failed sleep remains an error and can be retried. Status flags used across + tasks are atomic; lifecycle and PCM operations still require one joined owner. + +## Audio ownership and retries + +`badge_power_leave()` returns the real suspend error but releases ownership. +Workers signal completion without indefinitely waiting for broken hardware. +The shell retries unowned audio sleep at most once per second, with a mutex +covering both that check/operation and owner entry/exit. A new worker owns audio +before it initializes or resumes its stream. Main-thread setup remains serialized +with shell maintenance. Reminder chimes also use this ownership protocol. +Audio performance locks remain held until sleep has actually succeeded. + +Only the shell changes screen state. If a failed panel suspend also fails to roll +back, the shell records the actual suspended state and retries waking it. Existing +brightness fallback remains. Power-management setup failures release acquired +locks so a later setup attempt can succeed. + +## Resource lifetime and shutdown + +Button cleanup retains ADC/calibration resources while any button deletion fails. +LVGL initialization retains a successfully initialized port for display retries; +partial port initialization requires reboot instead of racing asynchronous deinit. +Display, rounding callback and task-discovery timer registration occur under the +same lock; failed registration never publishes a partially ready display. + +System shutdown, including the Xiaozhi shutdown tool, preserves the existing +CW2017 → ES8311 → I2S → shared I2C → LCD → deep-sleep ordering and now logs errors +from each pin/display shutdown stage. It still attempts remaining peripheral +stops after an individual failure. Failure to establish wake or display locking +retains the existing restart-to-recover behavior. + +CW2017 mode/profile timing and sleep readback continue to match upstream. +Deep-sleep wake activates the gauge again; the transient `0.00%` emitted while +it rebuilds SOC is no longer accepted as a real reading. Firmware waits for a +valid SOC, retains the latest valid runtime value, and retries initialization +after a temporary failure. Normal screen-off does not suspend the gauge. +Wake-word listening keeps microphone/I2S processing active; +screen-off is not whole-device deep sleep. The board has no independent PA +control pin, so codec sleep is not a claim of physically removing amplifier power. + +## Verification + +Host tests exercise audio control/data faults, 64 format/sleep/wake cycles with +volume retention, failed release, ADC retention, LVGL initialization and wake +rollback, unowned retry and new-owner exclusion, PM initialization failures, wake +detector and reminder/display behavior. The existing broader host suite passes. + +`BADGE_BSP_POWER_PROBE` is an opt-in boot test for twelve real codec/display sleep +cycles with 8/16 kHz format changes, silent playback, discarded microphone samples +and volume/brightness checks. It must be OFF in release artifacts. This test does +not transmit or save microphone data and does not measure current. + +At preparation time the USB device was unavailable. Device testing and actual +current measurements remain pending; no battery-life improvement is quantified. +Partitions and persistent configuration formats are unchanged. diff --git a/docs/power-recovery.zh_CN.md b/docs/power-recovery.zh_CN.md new file mode 100644 index 0000000..fb69916 --- /dev/null +++ b/docs/power-recovery.zh_CN.md @@ -0,0 +1,37 @@ +

简体中文 · English

+ +# 2.6.35 功耗与异常�� + +本版适� [FoloToy/ai-passport 31759c4](https://github.com/FoloToy/ai-passport/tree/31759c4d63dd0d0d6580d6f74639ed5315bcd2c3) 的音频��和 BSP 资��护,�留本项目的音频任务归属�音���幕采集��行显示缓冲���语音唤醒�深�按键唤醒。 + +## 音频 + +- 控制与数�接��留被 codec-dev 忽略的错误,包括被 RX �功结果覆盖的 TX 失败。 +- 休眠先删除 codec 对象,�执行完整 ES8311 休眠�列和读回校验,最��止 I2S。共享 I2C 和 I2S 资��留,供唤醒使用。 +- 唤醒和格�切�通过公开 API �建 codec,���存的格�与音�;失败撤销 PCM 访问,并�次�止 I2S�强制休眠。codec 引用释放���时�止继续�建,需����。 +- �留 `bsp_audio_init()` 对已�始化休眠设备的唤醒语义。`bsp_audio_is_sleeping()` 表示休眠已验�;`bsp_audio_needs_wake()` �时覆盖打开或休眠中途失败。 +- 休眠失败返回错误,�续调用�以�新�试。跨任务查询的状�使用原���;生命周期与 PCM �作�由�个�退出时已完�交接的任务负责。 + +## 音频任务交接与�试 + +`badge_power_leave()` 返回真实休眠错误,�时释放任务归属;工作任务�会因为硬件故障而无�等待退出。主循环最多�秒�试一次无人使用的音频休眠,互斥��时覆盖检查�休眠�作和任务进入�退出。新任务先�得归属��始化或��音频;主线程内的�动准备与主循环维护串行执行。定时�醒铃声也使用�一套音频归属机制。 + +�有确认音频休眠�功��释放音频性能�。��语音唤醒��留麦克风链路,正常���会关闭正在工作的唤醒�检测。 + +�有主循环改��幕状�。若�幕休眠失败,且回滚��也失败,系统记录真实暂�状�并继续�试唤醒,�留亮度��兜底。电�管��始化失败时释放已申请��有的性能�,�许�续�试。 + +## 资�生命周期与关机 + +按钮删除失败且�存活时,�留它使用的 ADC 和校准资�。LVGL 显示注册失败�留已�始化的 port 供�试;port �始化中途失败时�求��,��与异步释放竞争。显示�圆角回调和任务识别定时器在�一把�内注册,任何失败都��布��始化的显示�柄。 + +系统关机(包括�智关机工具)�� CW2017 → ES8311 → I2S → 共享 I2C → LCD → 深�顺�,补充�步引脚和�幕关闭错误日志。�个外围设备�止失败���试其余步骤。唤醒�置或�幕加�失败时沿用����机制。 + +CW2017 的模�切��profile 时�和休眠读回沿用上游逻辑。深�唤醒�会�新激活电�计;芯片�新估算期间返回的临时 `0.00%` ��当作真实电�,固件等待有效 SOC,并在�行中�留最近一次有效值。若�始化暂时失败,主循环会继续�试。普通���休眠电�计。开�语音唤醒时�留麦克风�I2S 和检测计算,���等于整机深�。本�无独立 PA 控制引脚,codec 休眠�代表切断外部功放供电。 + +## 验� + +主机测试覆盖音频控制�数�故障注入�64 次格�切�和�醒�的音����释放失败�ADC �留�LVGL �始化和��失败�无人使用时�试�新任务排除�电�管��始化失败���唤醒��醒��幕行为。已有较完整主机测试套件也已通过。 + +`BADGE_BSP_POWER_PROBE` 是�选实机�动测试:�二次 codec�显示�醒,交替 8/16kHz 格�,�音播放�读��丢弃麦克风样本,以�音��亮度检查。正�固件必须关闭该开关。该测试��存或��录音,也�测�电�。 + +准备时 USB 设备���,实机验�与实际电�测�尚待完�,未�化续航��。分区��久化�置格���。 diff --git a/docs/preserving-upgrade.md b/docs/preserving-upgrade.md new file mode 100644 index 0000000..902274a --- /dev/null +++ b/docs/preserving-upgrade.md @@ -0,0 +1,65 @@ +[简体中文](preserving-upgrade.zh_CN.md) · **English** + +# Upgrade an existing badge while keeping its data + +Use the separate preserving upgrade ZIP for an existing installation. The +community merged firmware is for a fresh installation: writing it at 0x0 +overwrites NVS and additional badge slots, even without a full-chip erase. +Installing a new application cannot recover bytes the installer has erased. +No change to the community website installer is included in this package. + +## Compatibility + +The locally archived 2.6.7 image matches the original community submission hash. +Its application partition was 0x2C0000 bytes and voice data began at 0x2D0000. +The current application partition is 0x3C0000 bytes and voice data begins at +0x3D0000. NVS/PHY (0x9000–0x10000), four extra badges (0x690000–0x750000), and +the first badge (0x7D0000–0x800000) retain their addresses. Profile formats 1–4 +remain readable. Preserving those regions retains profiles and their images, +QR codes, themes, active badge and persisted Wi-Fi/app preferences. New features +use their defaults; built-in sounds are replaced by the current catalog. + +Only recognized partition layouts are accepted. Unknown layouts stop before +writing; do not bypass that check. These guarantees apply to this upgrade tool, +not an arbitrary third-party or community web installer. + +## Install from the ZIP + +1. Extract the entire ZIP into a local folder. Install Python 3.10 or newer. +2. In that folder run `python -m pip install -r requirements.txt` once. +3. Connect the badge by USB and disconnect it in any web configuration page. +4. On Windows double-click `upgrade-windows.cmd`, then enter the badge's COM + port. Alternatively run `python tools/upgrade_badge.py --port COM6` (replace + COM6 with the actual port; on Linux/macOS use the actual device path). +5. Keep USB connected until the tool reports successful verification. + +The tool verifies package hashes, backs up the full 8 MiB flash privately, and +validates the old layout before writing. It writes and verifies only the +bootloader, application and bundled sound resources, then commits the partition +table last. It checks NVS/PHY and all badge storage byte-for-byte against the +backup before resetting. It never flashes a merged image or erases the chip. + +The default backup folder on Windows is +`%LOCALAPPDATA%/AI-Passport/Backups//`. On other systems it is +`~/AI-Passport/Backups//`. Backups contain personal data and credentials: +keep them private. `--backup-dir` can choose another new private folder. Existing +backups are never overwritten. `--check-only` verifies the package without USB. + +## Failure and recovery + +If backup or compatibility checks fail, no write starts. If power is lost during +writing, the device may not boot; this single-application layout is not an atomic +or power-loss-proof update. Keep the complete `flash-before.bin` and its SHA-256 +file. The backup can restore the previous firmware and data on the same badge. +Do not select a different device's backup or erase flash to troubleshoot. + +From the extracted folder, after verifying the backup SHA-256 matches +`backup-sha256.txt`, a same-device full rollback is: + +```text +python -m esptool --chip esp32c3 --port COM6 --after no_reset write_flash --flash_mode dio --flash_freq 80m --flash_size 8MB 0x0 "PATH/flash-before.bin" +python -m esptool --chip esp32c3 --port COM6 --after hard_reset verify_flash 0x0 "PATH/flash-before.bin" +``` + +This is a deliberate full rollback. Use the actual port and original private +backup path. It replaces the entire device state with the saved state. diff --git a/docs/preserving-upgrade.zh_CN.md b/docs/preserving-upgrade.zh_CN.md new file mode 100644 index 0000000..ea10c8b --- /dev/null +++ b/docs/preserving-upgrade.zh_CN.md @@ -0,0 +1,56 @@ +**简体中文** · [English](preserving-upgrade.md) + +# �用户�留数��级 + +已有资料的工牌请使用独立的“�留数��级包�。社区整包固件适用于全新安装: +�使没有勾选整片擦除,从 0x0 写入整包也会覆盖系统设置和�外工牌存储区。 +新固件�动�无法找回已�被安装器擦掉的数�。本�级包没有修改社区网站安装器。 + +## 兼容范围 + +本地归档的 2.6.7 固件与当时社区�交记录的哈希一致。旧应用分区为 0x2C0000 +字节,音效起点为 0x2D0000;当�应用分区为 0x3C0000 字节,音效起点改为 +0x3D0000。以下用户数�区域�置没有�化:系统设置�校准 0x9000–0x10000, +四张�外工牌 0x690000–0x750000,首张工牌 0x7D0000–0x800000。 +新版��读� 1–4 版工牌资料格�。 + +�留这些区域,就能�留工牌文字�图片�二维��主题�当�工牌�Wi-Fi �已�存的 +应用�好。新增功能采用默认值;内置音效会更新为新版目录。 + +工具�接�已识别的分区布局。�现未知布局会在写入��止,��绕过检查。 +此�留数��程适用于本�级工具,�代表任�第三方或社区网页安装器都能�留资料。 + +## 使用�级包 + +1. 完整解压 ZIP,安装 Python 3.10 或更新版本。 +2. 在解压目录打开终端,首次执行:`python -m pip install -r requirements.txt`。 +3. USB 连接工牌,在�置网页中点击“断开连接�,释放串�。 +4. Windows �击 `upgrade-windows.cmd`,按�示输入工牌实际 COM 端�。 + 也�以执行 `python tools/upgrade_badge.py --port COM6`,把 COM6 ��实际端�。 + Linux/macOS 使用对应设备路径。 +5. �� USB 连接,直到�示校验�功。 + +�程:校验�级包 → 完整备份 8 MiB Flash → 识别旧分区 → 分段更新�动程��应用 +和音效并校验 → 最�写入分区表 → 将系统设置�全部工牌区域与备份�字节校验 → ��。 +工具�会刷写整包固件,也�会擦除整片 Flash。 + +Windows 默认备份到 `%LOCALAPPDATA%/AI-Passport/Backups/<时间>/`,其他系统默认 +备份到 `~/AI-Passport/Backups/<时间>/`。备份�个人资料和凭�,请�下�存。 +�用 `--backup-dir` 指定�一个新的�有目录;�会覆盖已有备份。 +`--check-only` �检查�级包,�连接设备。 + +## 失败与�� + +备份失败或布局�兼容时,�开始写入。写入中断电�能导致暂时无法�动;当��有 +一个应用分区,�是断电��自动回退的�级方案。请�留完整 `flash-before.bin` +和 SHA-256 文件,�在�一�工牌上��原固件和资料。��混用其他人的备份, +也��为了排错清空 Flash。 + +先确认备份文件 SHA-256 与 `backup-sha256.txt` 一致。确需整机回退时,在�级包目录执行: + +```text +python -m esptool --chip esp32c3 --port COM6 --after no_reset write_flash --flash_mode dio --flash_freq 80m --flash_size 8MB 0x0 "备份路径/flash-before.bin" +python -m esptool --chip esp32c3 --port COM6 --after hard_reset verify_flash 0x0 "备份路径/flash-before.bin" +``` + +这里必须使用实际端�和这�工牌原先的�有备份路径。此�作会将整机状���到备份时。 diff --git a/docs/profile-upload.md b/docs/profile-upload.md new file mode 100644 index 0000000..1001927 --- /dev/null +++ b/docs/profile-upload.md @@ -0,0 +1,24 @@ +

简体中文 · English

+ +# Profile upload recovery — 2.6.24 + +Profile uploads use an inactive flash bank. After commit, the navigation task +must refresh all UI references before the former bank can be reused. Previously, +screen sleep skipped that refresh indefinitely, leaving subsequent uploads rejected +with `ESP_ERR_INVALID_STATE`, including otherwise valid QR uploads. + +The navigation task now requests a wake when a committed revision is awaiting +display acknowledgement. Configuration writes also request activity through the +existing power owner; protocol tasks never invoke LVGL directly. The flash reuse +barrier remains enforced. + +Protocol errors distinguish `display_pending`, `profile_changed`, and `upload_busy`. +USB and hotspot clients preserve these reasons. The configuration page retries only +`display_pending`, up to 15 times at 250 ms intervals. It does not replace a stale +base revision or retry another client's upload. Failed preparation preserves the +browser draft; an abort is sent only after this client successfully began an upload. +`info` additionally reports `profileReady` and `refreshPending` for diagnostics. + +Regression tests: `tests/test_profile_upload.cjs`, `tests/test_badges_ui.cjs`, and +`tests/test_profile_store.c`. Device testing must include upload after display idle, +QR readback, an immediately following upload, and preservation of other profile data. diff --git a/docs/profile-upload.zh_CN.md b/docs/profile-upload.zh_CN.md new file mode 100644 index 0000000..c79fd7f --- /dev/null +++ b/docs/profile-upload.zh_CN.md @@ -0,0 +1,21 @@ +

简体中文 · English

+ +# 工牌上传�� — 2.6.24 + +工牌资料上传到备用 Flash 存储区。�交�,导航任务必须更新全部界�引用, +�能�次使用旧存储区。旧�程在��时跳过这一步,导致�续上传一直返回 +`ESP_ERR_INVALID_STATE`,有效的二维�上传也会被拒�。 + +现在,已�交资料尚未获得界�确认时,导航任务会请求唤醒�幕。�置写入也会 +通过原有电�管�任务请求��唤醒;�议任务�直接�作 LVGL。存储区安全�用 +检查继续�留。 + +�议错误区分 `display_pending`(等待界�刷新)�`profile_changed`(资料版本 +冲�)和 `upload_busy`(其他�置端正在上传)。USB 与热点�置页��留原因。 +页�仅对等待刷新自动�试,间隔 250 毫秒,最多�试 15 次;�会替�旧版本�, +也�会�试其他�置端的上传。准备失败时�留�览器中的编辑,�在本页��功 +开始上传����中止请求。`info` 新增 `profileReady` 和 `refreshPending` 诊断字段。 + +回归测试:`tests/test_profile_upload.cjs`�`tests/test_badges_ui.cjs`� +`tests/test_profile_store.c`。实机测试应覆盖���上传�二维�回读�立��次上传, +以�其他工牌资料����。 diff --git a/docs/reference/README.md b/docs/reference/README.md index c34ae8c..491b089 100644 --- a/docs/reference/README.md +++ b/docs/reference/README.md @@ -8,8 +8,8 @@ This area holds reference material for AI Passport development that is not a binding requirement: reusable development experience and archived application playbooks. These are consulted when developing something new, not enforced as rules. Reference is organized by contributing developer's GitHub username: under -each repository-relative `docs/reference//` folder, experience entries -are stored as flat files and application playbooks as subdirectories. +each `reference//` folder, experience entries are stored as flat files +and application playbooks as subdirectories. The engineering rules themselves live under [`../development/`](../development/README.md); the collaboration conventions under @@ -25,16 +25,11 @@ The engineering rules themselves live under - [Post-Release Follow-up for the AI Passport Publishing Flow](shinku-chen/post-release-follow-up.md) — confirm the publish destination, include the data partition in a release, and the consent gates for the post-release tracks. - [Display Refresh and Deep-sleep on ESP32-C3 (No PSRAM)](shinku-chen/display-refresh-and-deep-sleep.md) — direct panel refresh of a single image rect, RTC-GPIO deep-sleep wakeup, and the LVGL object-type misuse crash signature. - [Shutting Down On-Board Peripherals Before Deep-Sleep](shinku-chen/deep-sleep-peripheral-power-off.md) — verified register shutdown, shared-bus ordering, terminal GPIO states, LCD deep-sleep holds, the `esp_codec_dev_close()` opened-state trap, and remaining hardware loads. -- [Landscape Rotation and a Deep-sleep Key Wake](shinku-chen/landscape-rotation-and-deep-sleep-key-wake.md) — rotating a portrait panel to a 320 × 240 landscape screen through LVGL, why the corner mask must follow the logical resolution, and how an ADC-owned pin makes a low-level deep-sleep wake fire at sleep entry. -- [Wall-clock Budgets for On-Device Game AI](shinku-chen/on-device-game-ai-wall-clock-budget.md) — why node-count limits misfire on this board (about 15k nodes per second), iterative deepening against a time budget, yielding to keep the idle task fed, and difficulty as a blunder rate. -- [Size Static Buffers from the Panel, and Verify the Release Artifact](shinku-chen/release-artifact-verification.md) — a 51 KB buffer mistake that left 8 KB of free heap, reading the startup log of the published merged image, and replacing a just-published release instead of shipping a follow-up. -- [Two-Device BLE Link Between AI Passport Boards (No PSRAM)](shinku-chen/two-device-ble-link.md) — symmetric peer discovery with an address tiebreak instead of host/join, measured link heap on a no-PSRAM part and its conflict with a static screenshot buffer, two hardware-only NimBLE GATT traps (missing `access_cb`, `EDONE` after a successful subscribe), NVS for RF calibration, and a stop-and-wait layer for turn-based play. **Application playbooks:** - [Voice Keychain](shinku-chen/voice-keychain/README.md) — a sound-effects keychain that turns the AI Passport into a pocket audio player. - [What to Eat Today](shinku-chen/eat-what/README.md) — a button-driven food roulette that turns the AI Passport into a "what should I eat?" spinner. -- [Connect Four](shinku-chen/connect-four/README.md) — a landscape 10 × 7 four-in-a-row game with three computer difficulty levels, a two-player mode, synthesized sound, and an idle deep sleep. ### PhoenixZHC @@ -64,7 +59,7 @@ repository language rule: keep the default `.md` path in English and the paired `.zh_CN.md` in Simplified Chinese, aligned in the same change. An entry is a single `.md` file (with its `.zh_CN.md` peer) stored flat under -`docs/reference//` and named after the entry's content summary in +`reference//` and named after the entry's content summary in lowercase-kebab-case (e.g. `audio-compression-trade-offs.md`), describing the topic rather than an opaque timestamp. Each entry is routed before submission: general, upstream-benefiting experience goes to the upstream @@ -73,13 +68,11 @@ general, upstream-benefiting experience goes to the upstream ## Archiving an application -When an application is published, archive it under the repository-relative -`docs/reference///` +When an application is published, archive it under `reference///` with an AI-generated bilingual functional summary (`README.md` / `.zh_CN.md`) and optionally a how-to guide. The archive is **text-only** — record the cover image by file name and format only, and do not store the firmware `.bin`. The `plays-archive` -skill drives the archive and its convention. Add the application to this index -and its Simplified Chinese peer in the same change. +skill drives the archive and its convention. ## Related diff --git a/docs/reference/README.zh_CN.md b/docs/reference/README.zh_CN.md index 58cac0f..08e5dd8 100644 --- a/docs/reference/README.zh_CN.md +++ b/docs/reference/README.zh_CN.md @@ -4,7 +4,7 @@ # �考(Reference) -本目录存放 AI Passport 开�中**�构�硬性�求**的�考资料:��用的开��验与已归档的应用档案。开�新东西时�考它们,而�是把它们当作强制规则。�考资料按贡献者的 GitHub 用户�组织:�个相对仓库根目录的 `docs/reference//` 目录下,�验�目以平铺文件存放,应用档案以�目录存放。 +本目录存放 AI Passport 开�中**�构�硬性�求**的�考资料:��用的开��验与已归档的应用档案。开�新东西时�考它们,而�是把它们当作强制规则。�考资料按贡献者的 GitHub 用户�组织:�个 `reference//` 目录下,�验�目以平铺文件存放,应用档案以�目录存放。 工程规则本身�于 [`../development/`](../development/README.zh_CN.md);�作规范�于 [`../contribution/`](../contribution/README.zh_CN.md)。 @@ -18,16 +18,11 @@ - [�布�收尾:AI Passport �布�程的衔接](shinku-chen/post-release-follow-up.zh_CN.md) — 确认�布目的地��布时包�数�分区�以��布�收尾�轨�的��门槛。 - [ESP32-C3(无 PSRAM)上的显示刷新与深�](shinku-chen/display-refresh-and-deep-sleep.zh_CN.md) — 直接刷新�个图片矩形�RTC GPIO 深�唤醒,以� LVGL 对象类型误用的崩溃特�。 - [深��关闭�载外设](shinku-chen/deep-sleep-peripheral-power-off.zh_CN.md) — 寄存器校验关闭�共享总线顺��终端 GPIO 状��LCD deep-sleep hold�`esp_codec_dev_close()` 打开状�陷阱�剩余硬件负载。 -- [横�旋转与深�按键唤醒](shinku-chen/landscape-rotation-and-deep-sleep-key-wake.zh_CN.md) — 通过 LVGL 把竖���转� 320 × 240 横��圆角�罩为何必须跟�逻辑分辨率,以�被 ADC �用的引脚如何让低电平深�唤醒在入�瞬间就�立。 -- [设备端对弈 AI 的墙钟预算](shinku-chen/on-device-game-ai-wall-clock-budget.zh_CN.md) — 为什么节点数上�在这��上会跑�(约�秒 1.5 万节点)�用时间预算迭代加深�让出 CPU ��饿死空闲任务,以�用失误率表达难度。 -- [��缓冲按��算,并验�已�布的产物](shinku-chen/release-artifact-verification.zh_CN.md) — 一处 51KB 缓冲错误导致空闲堆�剩 8KB�读已�布�并镜�的�动日志,以�替�刚�布的版本而�是���续版本。 -- [无 PSRAM 的 AI Passport �机 BLE �机](shinku-chen/two-device-ble-link.zh_CN.md) — 用地�大��对等�现�把角色选择从界�里去掉;无 PSRAM 上�机的实测堆开销�其与��截图缓冲的冲�;两个�在真机暴露的 NimBLE GATT 陷阱(缺 `access_cb`�订阅�功�的 `EDONE`);NVS 与射频校准;回�制对战的�等��层。 **应用档案:** - [音效钥匙扣](shinku-chen/voice-keychain/README.zh_CN.md) — 把 AI Passport ���袋音频播放器的音效钥匙扣。 - [今天�啥](shinku-chen/eat-what/README.zh_CN.md) — 按键驱动的食物轮盘,把 AI Passport ��「今天�什么��转盘。 -- [四�棋](shinku-chen/connect-four/README.zh_CN.md) — 横� 10 列 × 7 行的四�连�游�,带三档电脑难度��人模����音效与空闲自动深�。 ### PhoenixZHC @@ -53,11 +48,11 @@ 一次�布�沉淀**一�或多�**��用�验,��作为独立�目新增,以�布版本(tag 或 commit)作为上下文。�守仓库语言规则:默认 `.md` 路径用英文��套 `.zh_CN.md` 用简体中文,并在�一次�更中对�。 -�目是放在 `docs/reference//` 下的�个 `.md`(�其 `.zh_CN.md`),按�目内容概�命�(�写连字符,例如 `audio-compression-trade-offs.md`),�述主题而�时间戳。���验在�交�分�:通用�上游也�益的�验作为 PR �交到上游 `FoloToy/ai-passport`;纯 fork 定制按 [`docs/fork-guide.md`](../fork-guide.zh_CN.md) 留在 fork。 +�目是放在 `reference//` 下的�个 `.md`(�其 `.zh_CN.md`),按�目内容概�命�(�写连字符,例如 `audio-compression-trade-offs.md`),�述主题而�时间戳。���验在�交�分�:通用�上游也�益的�验作为 PR �交到上游 `FoloToy/ai-passport`;纯 fork 定制按 [`docs/fork-guide.md`](../fork-guide.zh_CN.md) 留在 fork。 ## 归档应用 -应用�布�,在相对仓库根目录的 `docs/reference///` 下归档,附一份 AI 生�的�语功能说明(`README.md` / `.zh_CN.md`),�选�一份使用指�。档案为**纯文本**——��图仅记录文件�与格�,�存放固件 `.bin`。`plays-archive` skill 驱动归档�其约定。�一次�更中,在本索引�其英文版本中登记该应用。 +应用�布�,在 `reference///` 下归档,附一份 AI 生�的�语功能说明(`README.md` / `.zh_CN.md`),�选�一份使用指�。档案为**纯文本**——��图仅记录文件�与格�,�存放固件 `.bin`。`plays-archive` skill 驱动归档�其约定。 ## 相关 diff --git a/docs/reference/shinku-chen/connect-four/README.md b/docs/reference/shinku-chen/connect-four/README.md deleted file mode 100644 index 9e0f1c0..0000000 --- a/docs/reference/shinku-chen/connect-four/README.md +++ /dev/null @@ -1,87 +0,0 @@ -

- 简体中文 · English -

- -# Connect Four - -A landscape Connect Four for the AI Passport. Hold the device sideways and play on -a 10 × 7 board: face the computer at three difficulty levels, or pass the device -back and forth with a second player. - -## Publish information - -- **Title**: Connect Four -- **Description**: submitted as: - - > Turn the AI Passport into a pocket Connect Four board. - > - > Hold it sideways and play on a 10 x 7 grid: move the column cursor with the up and down keys, drop a disc with OK, and connect four to win. - > - > - Choose who starts: play first yourself, or let the computer open the game and watch it move. - > - Play against the computer at three difficulty levels: pick the easy one for a relaxed win, or the hard one for a real match. - > - Or hand the device back and forth: two players take turns on the same board. - > - Choose how your next move is previewed: show exactly which slot the disc will land in, or only mark the top row of that column. - > - Column moves, drops, wins and draws each have their own sound, and the device dims itself when idle - press any key to keep playing. - > - > Hold OK to return to the settings screen at any time and switch mode, difficulty or preview style. - -- **Category**: games -- **Cover**: `comm_cover.png` (PNG, 1152 × 1536, 3:4) — publish metadata only; the - cover image is not committed here. -- **Source**: - -## What it does - -- **Boots straight into the game**: the firmware opens its own settings screen, - with no test menu and no network use. -- **10 × 7 board**: 70 slots with four-in-a-row detection horizontally, vertically - and on both diagonals; the winning four are ringed, and a full board is a draw. -- **Three modes**: `HUMAN vs AI` (you move first), `AI vs HUMAN` (the computer - opens the game and moves immediately), or `TWO PLAYERS` taking turns on the same - device with a turn indicator. The two computer modes differ only in who moves - first. -- **Three difficulty levels**: easy, medium and hard. Every move is capped by a - search time budget, so the computer answers well inside a second, and the lower - levels deliberately play a weak move at a fixed rate so a new player can win. -- **Selectable drop preview**: either the slot the disc will really land in, or - only the top row of the selected column. -- **Sound**: column moves, drops, wins, losses and draws each have their own cue; - the cues are synthesized, so no audio files are stored. -- **Idle deep sleep**: after 60 seconds on the settings screen or 180 seconds in a - match, the device shows `SLEEPING`, powers down and sleeps; any key wakes it and - the game restarts at the settings screen. -- **Battery readout**: live percentage in the top-right corner, turning red below - 20% and showing `--` when no reading is available. - -## Interaction - -Three keys drive the whole app. Hold the device with its long edge horizontal; the -"up" key is then the right-hand key. - -Settings screen: - -- **UP / DOWN**: pick a row (`MODE`, `LEVEL`, `PREVIEW`, `START`). -- **OK**: change the value of the selected row, or start a match when `START` is - selected. The `MODE` values are `HUMAN vs AI`, `AI vs HUMAN` and `TWO PLAYERS`; - `LEVEL` is disabled in two-player mode. - -In a match: - -- **UP / DOWN**: move the column cursor right or left. -- **OK**: drop a disc in the selected column. -- **OK (hold)**: return to the settings screen, discarding the current match. - -After a win or a draw: - -- **OK**: start another match with the same settings. -- **OK (hold)**: return to the settings screen. - -Press timing: a press shorter than 120 ms is ignored, and holding a key for 300 ms -triggers the long-press action. - -## Source - -- Repository: `Shinku-Chen/ai-passport`, branch `feature/connect-four` - (), - release `v1.6.0-connect-four`. -- Released to the community as project `community-7dc95814`. diff --git a/docs/reference/shinku-chen/connect-four/README.zh_CN.md b/docs/reference/shinku-chen/connect-four/README.zh_CN.md deleted file mode 100644 index c246ae0..0000000 --- a/docs/reference/shinku-chen/connect-four/README.zh_CN.md +++ /dev/null @@ -1,68 +0,0 @@ -

- 简体中文 · English -

- -# 四�棋(Connect Four) - -AI Passport 上的横�四�棋。把设备横过�,在 10 列 × 7 行的棋盘上��:�与电脑对战(三档难度),也�以两个人轮�玩�一�设备。 - -## �布信� - -- **标题**:四�棋(Connect Four) -- **简介**:�交原文: - - > 把 AI Passport ���身的四�棋棋盘。 - > - > 横过�玩:棋盘 10 列 7 行,上/下键左�选列,确定键��,�先连�四��赢。 - > - > · 先手�选:玩家先手,或让电脑先下(开局它就会自动��)。 - > · 人机对战分低�中�高三档难度:想轻�赢就选低档,想认真过招就选高档。 - > · 也�以两个人轮�玩�一�设备,一局接一局。 - > · ����以选预览方�:显示这一�真正会�在哪一格,或者�在最上�一行�示。 - > · �列����胜负都有音效;闲置一会儿会自动熄��电,按任�键继续。 - > - > 长按确定�以�时回到设置界�,�模��难度或预览方�。 - -- **分类**:games -- **��**:`comm_cover.png`(PNG,1152 × 1536,3:4)—— 仅记录�布元数�,��图�进本仓库。 -- **��**: - -## 功能 - -- **开机直接进游�**:固件打开自己的设置�,没有测试��,也�使用网络。 -- **10 列 × 7 行棋盘**:70 个格�,横�竖�两�对角线都能四连�胜;�胜的四�会加高亮环,棋盘填满为平局。 -- **三�模�**:`HUMAN vs AI`(玩家先手)�`AI vs HUMAN`(电脑先手,开局立���)与 `TWO PLAYERS`(两人�机轮�,状���示轮到�);两个电脑模��差先�手。 -- **三档难度**:低�中�高。�步都用�索时间预算�时,电脑总在 1 秒内��;低/中难度带固定失误率放水,新手也打得赢。 -- **�选��预览**:显示这一�真正的�点,或�在所选列的最上一行�示。 -- **音效**:�列����胜�负�平局�有�示音;音效为实时��,��存储。 -- **空闲自动深�**:设置�闲置 60 秒�对局中闲置 180 秒�显示 `SLEEPING` 并进入深�;按任�键唤醒,唤醒�回到设置�。 -- **电�显示**:�上角实时显示电�百分比,低于 20% �红,读�到时显示 `--`。 - -## 交互 - -三个按键驱动整个应用。请把设备长边横放,「上�键此时�于�手边。 - -设置�: - -- **上 / 下**:选择行(`MODE`�`LEVEL`�`PREVIEW`�`START`)。 -- **确定**:切�当�行的�值;光标在 `START` 上时开始对局。`MODE` 的�值是 `HUMAN vs AI` / `AI vs HUMAN` / `TWO PLAYERS`;�人模�下 `LEVEL` 行��用。 - -对局中: - -- **上 / 下**:左�移动��列。 -- **确定**:在选中的列��。 -- **长按确定**:回到设置�(当�对局作废)。 - -分出胜负�: - -- **确定**:用�一套设置��一局。 -- **长按确定**:回到设置�。 - -按键时长:短于 120ms 的按压�生效;按� 300ms 触�长按动作。 - -## �� - -- 仓库:`Shinku-Chen/ai-passport` 分支 `feature/connect-four` - (), - release `v1.6.0-connect-four`。 -- 已�布到社区市场,项目� `community-7dc95814`。 diff --git a/docs/reference/shinku-chen/landscape-rotation-and-deep-sleep-key-wake.md b/docs/reference/shinku-chen/landscape-rotation-and-deep-sleep-key-wake.md deleted file mode 100644 index e74031c..0000000 --- a/docs/reference/shinku-chen/landscape-rotation-and-deep-sleep-key-wake.md +++ /dev/null @@ -1,65 +0,0 @@ -

- 简体中文 · English -

- -# Landscape Rotation and a Deep-sleep Key Wake - -Collected after releasing the **Connect Four** game, which runs on a 320 × 240 -landscape screen and powers itself down when idle. Both topics are about the same -board: the panel and the three-key ADC ladder. - -## Rotate the panel in LVGL, not in the pages - -The panel is a portrait 240 × 320 ST7789P3. The application wanted a landscape -320 × 240 logical screen, so `bsp_lvgl_set_landscape()` calls -`lv_display_set_rotation(disp, LV_DISPLAY_ROTATION_90)` after `bsp_lvgl_init()`. -The rotation itself costs nothing: `esp_lvgl_port` receives the resulting -resolution-change event and writes the panel's MADCTL (MV plus one mirror), so the -panel does the transform and no extra buffer or CPU is needed. - -Two consequences are easy to miss: - -- **Every page must read the current logical resolution.** The display integration - masks the four rounded corners by writing black into the partial flush buffer. - That mask used hard-coded `240 × 320` constants and silently blacked out a strip - of the landscape screen; it now asks the display for its logical size, so one - 30 px radius works in both orientations. -- **The rotation direction is only observable on the device.** MV plus MX is a - proper 90° rotation, and MV plus MY is the same rotation 180° away; which one - reads upright depends on how the product is held. Keep the constant in one place - with a comment that says what to change if the picture is upside down, and check - it on hardware instead of reasoning about the datasheet. - -Build the UI after the rotation, not before: layout code that runs first computes -geometry from the portrait size and stays wrong until the next rebuild. - -## A low-level GPIO wake can be satisfied before the chip sleeps - -The three keys share one ADC pin (GPIO0) through a resistor ladder, and it is the -only deep-sleep wake source on this board. A low-level wake was armed with -`esp_deep_sleep_enable_gpio_wakeup(1ULL << 0, ESP_GPIO_WAKEUP_GPIO_LOW)` and the -device woke up by itself within a second of every sleep attempt. - -The cause is the pad, not the wake source: **while the ADC owns GPIO0 its digital -level reads 0**, even with the board's external 10 kΩ pull-up fitted. A low-level -comparator on that value is already satisfied when the chip enters deep sleep. - -The fix has two parts, both in the BSP: - -1. Before sleeping, release the shared ADC unit and hand the pin back as a normal - digital input with a pull-up (`bsp_button_prepare_deep_sleep()`). The function - returns the pin level so the caller can refuse to sleep while a key is held. -2. Log that level, and keep a marker in RTC memory so the next boot can tell a real - deep-sleep wake from a cold start or a reset. - -After the change the pad reads 1 with no key pressed, the device stays asleep, and -`esp_sleep_get_wakeup_cause()` reports the GPIO wake when a key is pressed. Note -that the ESP32-C3 has no classic RTC-IO API (`SOC_RTCIO_PIN_COUNT` is 0), so the -ordinary GPIO pull configuration is the only option. - -## Press timing belongs in the board header - -The button component's defaults (180 ms to count as a click, 1500 ms for a long -press) make a game feel unresponsive. The BSP now takes both values from -`bsp_pins.h` next to the voltage windows, which keeps the electrical facts and the -input feel in one reviewed place. diff --git a/docs/reference/shinku-chen/landscape-rotation-and-deep-sleep-key-wake.zh_CN.md b/docs/reference/shinku-chen/landscape-rotation-and-deep-sleep-key-wake.zh_CN.md deleted file mode 100644 index f7243a4..0000000 --- a/docs/reference/shinku-chen/landscape-rotation-and-deep-sleep-key-wake.zh_CN.md +++ /dev/null @@ -1,35 +0,0 @@ -

- 简体中文 · English -

- -# 横�旋转与深�按键唤醒 - -�验�自 **四�棋** 的�布:它跑在 320 × 240 的横�上,并且在闲置时自行关机�觉。两件事都�在�一��上——��与三键共用的 ADC 分压。 - -## 旋转放在 LVGL 层,别放进页� - -��是竖� 240 × 320 的 ST7789P3。应用�的是横� 320 × 240 的逻辑�,于是 `bsp_lvgl_set_landscape()` 在 `bsp_lvgl_init()` 之�调用 `lv_display_set_rotation(disp, LV_DISPLAY_ROTATION_90)`。旋转本身�花钱:`esp_lvgl_port` 会收到分辨率�更事件并改写�� MADCTL(MV 加一个 mirror),由��完���,既�需��外缓冲也�� CPU。 - -两个容易忽略的连带�果: - -- **�个页�都必须读当�逻辑分辨率。** 显示接入层�往局部刷�缓冲里写黑��出四角圆角。这个�罩原�写死 `240 × 320`,横�下会�默把一�边涂黑;现在它�显示驱动询问逻辑尺寸,�一个 30px �径在横竖�都�立。 -- **旋转方��能在设备上确认。** MV+MX 是一个 90° 旋转,MV+MY 是�一旋转的 180° ��;哪个方�是正的需�看产�的��方�。把这个常�放在一处并注明“画�上下一�就改��一个�,然�在硬件上看,而�是�数�手册推断。 - -界��在旋转之�构建:先跑布局�旋转,会按竖�尺寸算一�几何,而且�等下一次�建�会正确。 - -## 低电平 GPIO 唤醒�能在入��就�立 - -三个按键通过电阻分压共用一路 ADC 引脚(GPIO0),它也是本�唯一的深�唤醒�。我们按 `esp_deep_sleep_enable_gpio_wakeup(1ULL << 0, ESP_GPIO_WAKEUP_GPIO_LOW)` 武装了低电平唤醒,结果设备�次�下�到一秒就自己醒了。 - -根因在焊盘而�在唤醒�:**�� ADC �� GPIO0,它的数字电平就读回 0**,�使�上装了 10 kΩ 外部上拉也一样。基于这个值的低电平比较器在芯片进入深�的那一刻就已�满足。 - -修�分两步,都放在 BSP: - -1. 入��释放共享 ADC unit,把该脚交回普通数字输入并开�上拉(`bsp_button_prepare_deep_sleep()`)。该函数回填引脚电平,调用方�此在按键被按�时拒�入�。 -2. 把这个电平写进日志,并在 RTC 内存里留一个记�,让下次�动能区分“真·深�唤醒�与冷�动/��。 - -改完之�,没有按键时该脚读回 1,设备能稳定���眠;按下按键时 `esp_sleep_get_wakeup_cause()` 报告 GPIO 唤醒。注� ESP32-C3 没有�典 RTC-IO API(`SOC_RTCIO_PIN_COUNT` 为 0),普通 GPIO 上拉�置是唯一�选项。 - -## 按键时长门�应该放在�级头文件里 - -button 组件的默认值(�击判定 180ms�长按 1500ms)会让游�显得迟�。现在 BSP 从 `bsp_pins.h` �这两个值,与电压窗�放在一起——电气事实与输入手感在�一个被评审的地方。 diff --git a/docs/reference/shinku-chen/on-device-game-ai-wall-clock-budget.md b/docs/reference/shinku-chen/on-device-game-ai-wall-clock-budget.md deleted file mode 100644 index 2a67af9..0000000 --- a/docs/reference/shinku-chen/on-device-game-ai-wall-clock-budget.md +++ /dev/null @@ -1,51 +0,0 @@ -

- 简体中文 · English -

- -# Wall-clock Budgets for On-Device Game AI - -Collected after releasing **Connect Four**, whose computer opponent searches a -10 × 7 board on an ESP32-C3 with no PSRAM. - -## Do not bound a search by node count - -The first implementation capped the search at a fixed number of nodes. Measured on -the device, 150,000 nodes took about 11 seconds — roughly 15,000 nodes per second, -an order of magnitude slower than a desktop estimate, because the core is a -single-issue RISC-V part running from flash cache. The move also starved the idle -task for long enough to trip the task watchdog. - -The fix is to bound the search by **wall-clock time** and let the depth adapt: -iterative deepening from depth 2 upward, one complete iteration always kept as the -answer, and a budget of about half a second per move. On this board that lands -around 8,000 to 12,000 nodes and plays a solid casual game, and a slower or faster -board automatically searches shallower or deeper instead of hanging. - -## Yield, and check the budget at a useful granularity - -A CPU-bound worker above idle priority that runs for seconds will trip the task -watchdog, so the search calls back into the platform every N nodes. That callback -does two things: `vTaskDelay(1)` to let the idle task run, and compare the current -time against the deadline; returning false abandons the iteration and the previous -complete result is used. - -Pick N from the platform's node rate, not from taste: 4,096 nodes was about 270 ms -of overshoot here, so the interval is 1,024 nodes (roughly 70 ms of overshoot, well -under 2% overhead from the yields). - -## Keep the search platform-free, and make difficulty a product decision - -The search itself has no ESP-IDF dependency. The time budget, the clock, and the -yield are all injected through an options struct, which keeps the module -host-testable: unit tests run deterministic searches with the budget disabled, -assert immediate wins and blocks, and play full self-play games. - -Difficulty is expressed as a **blunder rate** rather than a shallower search. A -shallow search does not play a weaker game — it stops seeing threats and looks -broken. A small probability of playing a random legal move, evaluated before the -forced win/block checks, produces an opponent that is clearly beatable while still -punishing an obvious mistake. - -Host tests cover the model, the geometry, the menu state machine, and the search; -the device gives the AI roughly half a second per move, which reads as thinking -rather than waiting. diff --git a/docs/reference/shinku-chen/on-device-game-ai-wall-clock-budget.zh_CN.md b/docs/reference/shinku-chen/on-device-game-ai-wall-clock-budget.zh_CN.md deleted file mode 100644 index c146d8a..0000000 --- a/docs/reference/shinku-chen/on-device-game-ai-wall-clock-budget.zh_CN.md +++ /dev/null @@ -1,27 +0,0 @@ -

- 简体中文 · English -

- -# 设备端对弈 AI 的墙钟预算 - -�验�自 **四�棋** 的�布:它的电脑对手�在无 PSRAM 的 ESP32-C3 上�索 10 × 7 棋盘。 - -## ��用节点数给�索�时 - -最�版本用一个固定节点数上�。在设备上实测,150,000 个节点耗时约 11 秒——大约�秒 1.5 万节点,比桌�估算慢一个数�级,因为这是��射 RISC-V 核�代�还在 flash 缓存里跑。�时它把空闲任务饿�的时间足够触�看门狗。 - -修法是改�**墙钟�时**并让深度自适应:从深度 2 起迭代加深,永远�留一层完整结果为答案,�步预算约�秒。在这��上大约对应 8k–12k 节点,已�是�样的休闲对手;��更快或更慢的��会自动�得更深或更浅,而�是�死。 - -## 让出 CPU,并选�适的检查粒度 - -优先级高于 idle 的 CPU 密集任务连续跑几秒就会触�任务看门狗,所以�索� N 个节点回调一次平�层:`vTaskDelay(1)` 让空闲任务�行,�时比较当�时间与截止时刻;返回 false �放弃本层,沿用上一次完整结果。 - -N 应该按实测节点速率�定,而�是凭感觉:这里 4,096 个节点约等于 270ms 超调,于是改� 1,024 个节点(约 70ms 超调,让出带�的开销�到 2%)。 - -## �索层��赖平�,难度��产�决策 - -�索本身��赖 ESP-IDF:时间预算�时钟�让出动作都通过 options 结构注入,因此这个模��以跑宿主测试——�元测试用关闭预算的确定性�索断言“一步�胜�“必堵�,并跑完整自对弈。 - -难度用**失误率**表达,而�是�低�索深度。浅层�索并�会下得更弱,它�是看����,看起���了;在“必胜/必堵�判断之�按固定概率�机走一步,既能造出明显打得赢的对手,��会惩罚明显失误。 - -模型�几何���状�机与�索都有宿主测试覆盖;设备上�步约�秒,感觉是“在�考�而�是“在��。 diff --git a/docs/reference/shinku-chen/post-release-follow-up.md b/docs/reference/shinku-chen/post-release-follow-up.md index c8b0813..f0b368e 100644 --- a/docs/reference/shinku-chen/post-release-follow-up.md +++ b/docs/reference/shinku-chen/post-release-follow-up.md @@ -41,9 +41,8 @@ rejected upload automatically. ## Post-release follow-up has its own consent gates After publishing, three independent tracks can follow: archive the application -to the repository-relative `docs/reference///`, gather -improvement suggestions as an upstream issue, and submit reusable development -experience as an upstream documentation PR. Each touches +to `plays/`, gather improvement suggestions as an upstream issue, and submit +reusable development experience as an upstream documentation PR. Each touches project-private content and each requires explicit developer consent, an available GitHub channel, and no submission before review. All three keep the change off the developer's current branch. diff --git a/docs/reference/shinku-chen/post-release-follow-up.zh_CN.md b/docs/reference/shinku-chen/post-release-follow-up.zh_CN.md index 6616e13..646ee9f 100644 --- a/docs/reference/shinku-chen/post-release-follow-up.zh_CN.md +++ b/docs/reference/shinku-chen/post-release-follow-up.zh_CN.md @@ -28,7 +28,7 @@ publisher skill 用设备��程:跑 `authorize` 会打开官方创作者页 ## �布�收尾有它自己的��门槛 -�布��跟三�独立轨�:把应用归档到相对仓库根目录的 `docs/reference///`�把改进建议�交�上游 issue�把��用开��验 +�布��跟三�独立轨�:把应用归档到 `plays/`�把改进建议�交�上游 issue�把��用开��验 �交�上游文档 PR。��都涉�项目�有内容,都需�开�者明确����用的 GitHub 通�� 以��交�先审查。三者都�得改到开�者当�分支。 diff --git a/docs/reference/shinku-chen/release-artifact-verification.md b/docs/reference/shinku-chen/release-artifact-verification.md deleted file mode 100644 index 82da0f9..0000000 --- a/docs/reference/shinku-chen/release-artifact-verification.md +++ /dev/null @@ -1,49 +0,0 @@ -

- 简体中文 · English -

- -# Size Static Buffers from the Panel, and Verify the Release Artifact - -Collected after releasing **Connect Four**, where the first published firmware -booted with only 8 KB of free heap and had to be rebuilt before the community -submission. - -## A convenient constant can cost 50 KB - -The release adds a serial screenshot command (`FAP_SCREENSHOT_V1`) whose frame -buffer must be reserved statically: with LVGL, the codec and the DMA buffers -already running, the heap cannot produce a 150 KB contiguous block. The buffer was -declared as "the largest of the two orientations" — 320 × 320 pixels, 204,800 -bytes — while one frame is exactly the panel's pixel count: 240 × 320 = -**153,600 bytes, the same in portrait and landscape**. - -The extra 51 KB does not show up in a flash-size report, and it is not a build -error. On the device the free heap fell from 227 KB to 8.3 KB with a largest block -of 7.7 KB, which happens to still boot and play, so nothing fails loudly. Derive -such buffers from the panel geometry (`BSP_LCD_W * BSP_LCD_H * 2`) instead of from -a round number, and give the feature a compile-time switch so a build can hand the -RAM back. - -## Flash the artifact you published, and read the boot log - -The workflow already says to verify a release on hardware; the practical version of -that is: download the **released** merged image, flash it from offset 0, and read -the startup log for the numbers that matter — logical resolution, task readiness, -and free heap. That check caught the buffer mistake in minutes. - -Reproducing the issue locally also required flashing the same artifact rather than -a local build, because the two differ: the CI build produced different bytes for -the same source. A fix verified only in a local build would not have proven -anything about what users download. - -When a just-published release turns out to be wrong and nothing has consumed it yet, -replacing it — deleting the release and the tag, moving the tag to the fixed -commit, and letting the tag-triggered build republish — is cleaner than shipping a -follow-up version that only fixes a mistake nobody could see. - -## The screenshot command is also the cover pipeline - -With that command in place, a release cover can show the device's real frame -instead of a redrawn mock-up: capture the frame over serial, composite it into the -brand shell, and place the result in a scene. The cover is then publish metadata — -recorded by file name and format — and does not need to be committed. diff --git a/docs/reference/shinku-chen/release-artifact-verification.zh_CN.md b/docs/reference/shinku-chen/release-artifact-verification.zh_CN.md deleted file mode 100644 index 1111008..0000000 --- a/docs/reference/shinku-chen/release-artifact-verification.zh_CN.md +++ /dev/null @@ -1,25 +0,0 @@ -

- 简体中文 · English -

- -# ��缓冲按��算,并验�已�布的产物 - -�验�自 **四�棋** 的�布:第一版已�布固件�动��剩 8KB 空闲堆,�得�在社区�交���。 - -## 一个“方便�的常��能白� 50KB - -该版本新增了串�截图命令(`FAP_SCREENSHOT_V1`),它的帧缓冲必须��预留:在 LVGL�codec 与 DMA 缓冲都跑起�之�,堆里拿�到 150KB 的连续�。缓冲当时按“两�方�里更大的那个�声明——320 × 320 �素�204,800 字节——而一帧�好就是��的�素数:240 × 320 = **153,600 字节,横竖�相�**。 - -多出�的 51KB �会出现在 flash 体积报告里,也�是编译错误。设备上空闲堆从 227KB 掉到 8.3KB�最大连续� 7.7KB,而它照样能�动能玩,所以没有任何显�报错。这类缓冲�按��几何推导(`BSP_LCD_W * BSP_LCD_H * 2`),而�是�一个整数;�时给功能加编译开关,方便�个构建把这部分 RAM 还回去。 - -## 刷你��布的那个产物,并读�动日志 - -�程里本�就�求�布�在硬件上验�;��作的版本是:下载 **已�布** 的�并镜�,从�移 0 刷入,然�读�动日志里真正��的数字——逻辑分辨率�任务就绪�空闲堆。这个检查几分钟内就抓到了上�的缓冲问题。 - -本地�现也必须刷�一个产物,而�是本地构建:�一份��,CI 构建出�的字节与本地��。�在本地构建上验�过的修�,并�能�明用户下载到的东西是对的。 - -如果刚�布的版本有问题�且还没有人消费它,直接替�(删掉 release 与 tag�把 tag 移到修� commit�让 tag 触�的构建�新�布)比��一个“�修一个�都看��的错�的�续版本更干净。 - -## 截图命令�时就是���水线 - -有了这个命令,�布���以展示设备的真实画�,而�是�绘的示�:从串�抓帧 → ��进�牌外壳 → 放进场景。�����作为�布元数�(记录文件�与格�),�需�进仓库。 diff --git a/docs/reference/shinku-chen/two-device-ble-link.md b/docs/reference/shinku-chen/two-device-ble-link.md deleted file mode 100644 index 41bbbd9..0000000 --- a/docs/reference/shinku-chen/two-device-ble-link.md +++ /dev/null @@ -1,162 +0,0 @@ -

- 简体中文 · English -

- -# Two-Device BLE Link Between AI Passport Boards (No PSRAM) - -Captured after the **Connect Four** two-device link feature was validated on two -boards (2026-09-18). These findings are general and upstream-benefiting: they -apply to any AI Passport application that wants two boards to talk to each other -without a phone. - -> **Verification status.** Measured on two AI Passport boards running the same -> firmware. The roles, the handshake, a full match, rematch and peer-leave were -> exercised; heap numbers below are device logs, not estimates. Range, long -> sessions, three-or-more boards, and battery figures are **not** covered. - -## Symmetric discovery keeps the roles off the UI - -Neither board has to be told whether it is the host. Both advertise a custom -GATT service *and* scan for the peer's advertising name at the same time, then -decide who connects: - -- Compare the peer's advertising address with the local address byte by byte; the - **larger** address initiates, the other waits. The rule is antisymmetric, so - both boards compute opposite results with no negotiation and no double - connect. No "host / join" menu item is needed. -- A name prefix (`C4-`, plus two MAC bytes) is a simpler discovery filter than - matching a 128-bit UUID inside advertising data, and it keeps both boards - distinguishable in a scanner list. The UUID still belongs in the scan response - so phones and generic BLE tools can identify the service. -- The 128-bit UUIDs follow the Nordic UART layout - (`6e400001`/`6e400002`/`6e400003-b5a3-f393-e0a9-e50e24dcca9e`), which is what - makes an off-the-shelf BLE tool or a phone able to act as the peer. NimBLE - prints the service UUID in its discovery log, which is a quick way to confirm - the layout is identical on both sides. -- After connecting, stop advertising; on disconnect, restart both advertising and - scanning so the pair can reconnect without a reboot. - -`CONFIG_BT_NIMBLE_MAX_CONNECTIONS=1` is the right setting for 1:1 play, but it -also means the tiebreak rule must be strict: a multirole board that both scans -and accepts connections can otherwise end up in a connect race. - -### Enable all four roles in sdkconfig - -The link needs **peripheral + broadcaster** (to advertise itself) and **central + -observer** (to scan for the peer and initiate). The template trims its demo -configuration with `CONFIG_BT_NIMBLE_ROLE_CENTRAL=n` and -`CONFIG_BT_NIMBLE_ROLE_OBSERVER=n`; with either one off, the board silently never -finds or connects to the peer, because the corresponding GAP procedure simply -fails. Turn all four roles on (they are only paid for at runtime, when the link -is started) and keep `CONFIG_BT_NIMBLE_MAX_CONNECTIONS=1` for 1:1 play. - -## Budget the RAM before choosing the feature set - -Measured on the ESP32-C3 board (no PSRAM), with the game UI, audio task and LVGL -already running: - -| Point | Free heap | -| --- | --- | -| Boot, after the application UI is up | ~191.9 KB | -| Just before `nimble_port_init()` | ~131.2 KB | -| Connected, link steady state | ~125.2–128.9 KB | -| After the link is stopped and its host task is torn down | ~192.0 KB | - -So the link costs roughly **60 KB of heap to bring up** plus ~6 KB while a -connection is live, and it is fully returned when the link is stopped. That is -why the link is started on demand (when the player enters the link mode) rather -than at boot. - -The related trap is a **static** full-frame screenshot buffer. One 320 × 240 -RGB565 frame is 150 KB, and the largest contiguous free block at boot measured -only ~114 KB, so the buffer has to live in `.bss`, where it permanently costs -150 KB. BLE cannot coexist with it on this board: - -- Measuring this honestly is what decides the shipping configuration. The - application here ships the link build and keeps the serial-screenshot tool in - an opt-in build (`-DC4_ENABLE_SCREENSHOT=ON`), and the screenshot build reports - `BLE UNAVAILABLE` instead of failing in a confusing way. -- If you must capture screens *and* link, plan for it in the design (for example - strip-wise rendering into a small buffer) — it is not a configuration toggle. - -## Two NimBLE pitfalls that only show up on hardware - -Both of these compiled cleanly and were only found from device logs: - -1. **Every characteristic needs an `access_cb`, even a notify-only one.** - `ble_gatts_chr_is_sane()` rejects a characteristic whose `access_cb` is NULL, - and the whole service registration then fails with a bare - `ble_gatts_count_resources rc=3` (`BLE_HS_EINVAL`). The heap was fine - (195 KB free), which is exactly why the error is easy to misread as "out of - memory". Give the notify characteristic a read callback (returning a couple of - identification bytes is useful for phone-side debugging) and add a local check - that reports which characteristic is missing its callback. -2. **Descriptor-discovery `EDONE` also arrives after a successful CCCD write.** - On the central side, the descriptor-discovery callback ends with - `error->status == BLE_HS_EDONE`. That does *not* mean "no CCCD found": it also - fires when the CCCD was found and the subscribe write was already issued. - Treating it as failure makes the board connect, subscribe, and immediately - tear the link down in a loop (19 attempts in the captured log). Track a - "CCCD found" flag and only fail the discovery genuinely. - -## Initialize NVS before the radio - -Without `nvs_flash_init()`, the controller/PHY cannot read its RF calibration -data and every start pays a full calibration: - -```text -E phy_init: esp_phy_load_cal_data_from_nvs: NVS has not been initialized. -W phy_init: failed to load RF calibration data (0x1101), falling back to full calibration -``` - -After adding `nvs_flash_init()` (without erasing, so application data is never -destroyed), the first link start logs -`phy_init: Saving new calibration data ...` and the **next** start logs nothing -from `phy_init` at all — direct evidence that the cached calibration is being -reused. The BT/PHY path needs NVS even though the NimBLE host is configured with -`CONFIG_BT_NIMBLE_NVS_PERSIST=n`. - -## Make delivery reliable in the application, not in BLE - -Neither direction gives an application-level acknowledgement: peripheral writes -are notifications, and central writes can be sent without response for latency. -For a turn-based game a lost packet is not a lost frame, it is a permanently -desynchronized board, so the application needs its own layer: - -- Frame: magic + version + type + `bit7 = has data` with a 7-bit sequence + - `bit7 = ack valid` with the last accepted peer sequence + up to 3 payload - bytes. One frame fits in the default ATT MTU with room to spare, and the - on-wire sizes are easy to confirm in the log (`write ... len=8` for a 3-byte - payload, `len=5` for an acknowledgement-only frame). -- Stop-and-wait: accept only the next expected sequence, re-acknowledge - duplicates instead of delivering them twice, retransmit every 400 ms, and give - up after 5 attempts with an explicit "peer lost" state. -- Carry the move counter in the payload and validate it when it arrives, so a - desynchronization is detected instead of silently producing two different - boards. -- Decide the first player from the connection role plus a shared match number - (for example "central first, alternating each match"), so both boards derive - the same answer without another round trip. When both sides propose the next - match number, converge on `max()` — adopting the peer's value on both sides - swaps it and desynchronizes the colors. -- Keep all of this in a pure-C module with host tests; the BLE transport stays a - byte pipe. - -## Tear-down and sleep - -Stop the radio (`nimble_port_stop()` + `nimble_port_deinit()`, then delete the -host task) before `esp_deep_sleep_start()`, otherwise the radio stays powered. -Stopping the link is also what returns the ~60 KB to the heap. The peer sees a -disconnect, so give it a "peer left" screen that keeps searching — and do not let -the idle-sleep timer fire in the middle of a linked match. - -## Testing it - -- Two boards are required for the real acceptance run; the useful evidence is - both serial logs: the initiating side logs `role=central`, the other - `role=peripheral`, and both log the same match numbers with opposite colors. -- A PC-side BLE peer (Python plus `bleak`) removes the need for a second board - when you are iterating on the protocol: connect to the advertising board as a - central, speak the same frames, and answer its moves, and a full match can be - played against one board. The peer tooling used for that (`tools/c4_peer.py`) - ships with the two-device BLE transport rather than with this note. diff --git a/docs/reference/shinku-chen/two-device-ble-link.zh_CN.md b/docs/reference/shinku-chen/two-device-ble-link.zh_CN.md deleted file mode 100644 index a4061e1..0000000 --- a/docs/reference/shinku-chen/two-device-ble-link.zh_CN.md +++ /dev/null @@ -1,79 +0,0 @@ -

- 简体中文 · English -

- -# 无 PSRAM 的 AI Passport �机 BLE �机 - -这些结论�自 **Connect Four(四�棋)** �机�机功能在两�真机上的验�(2026-09-18)。属于通用�对上游也有价值的�验:任何想让两� AI Passport ��过手机互相通信的应用都用得上。 - -> **验�状�。** 在两��行�一固件的真机上实测。角色��手�完整对局���一局与对端离开都跑过;下�的堆数字�自设备日志,�是估算。�离�长时间�行�三�以上�场�续航数�**未覆盖**。 - -## 对等�现:把角色选择从界�里去掉 - -�需�告诉任何一�设备"你是主机"。两边**�时**广播自定义 GATT �务���时扫�对端的广播�,然�自行决定�去连接: - -- 把对端的广播地�与本机地��字节比较:**地�大的一方主动连接**,�一方等待。这�规则是�对称的,两�设备�自算出的结果必然相�,既�需��商,也�会出现�方�时连对方。界�上因此�需�"主机 / 加入"这个选项。 -- 用�字�缀(如 `C4-` + MAC �两字节)��现过滤,比在广播数�里匹� 128 � UUID 简�,还顺便让两�设备在扫�列表里�区分。UUID �应放进扫��应,方便手机和通用 BLE 工具识别这个�务。 -- 128 � UUID 沿用 Nordic UART 布局(`6e400001`/`6e400002`/`6e400003-b5a3-f393-e0a9-e50e24dcca9e`),这是"通用 BLE 工具或手机也能当对端"的��。NimBLE 的�现日志会打��务 UUID,是快速确认两边布局一致的办法。 -- 连接建立��止广播;断开��时��广播与扫�,这样�用��就能�连。 - -`CONFIG_BT_NIMBLE_MAX_CONNECTIONS=1` 对 1:1 对战是正确设置,但也�味�上�那�规则必须严格:�时扫��接�连接的多角色设备,�则�能撞进"连接竞争"。 - -### 在 sdkconfig 里打开四个角色 - -这�链路需� **peripheral + broadcaster**(广播自己)与 **central + observer**(扫�对端并主动连接)。模�为了给示例瘦身,默认写了 `CONFIG_BT_NIMBLE_ROLE_CENTRAL=n` 与 `CONFIG_BT_NIMBLE_ROLE_OBSERVER=n`;��有一个没打开,设备就会**�默地**既�现�了对端也连�上(对应的 GAP 过程直接失败)。把四个角色都打开(它们�在链路�动时�实际�用资�),并�� `CONFIG_BT_NIMBLE_MAX_CONNECTIONS=1` 用于 1:1 对战。 - -## 先算内存,�定功能集 - -在已�跑起游�界��音频任务和 LVGL 的 ESP32-C3 ��(无 PSRAM)上实测: - -| 时点 | 空闲堆 | -| --- | --- | -| 开机�应用界�就绪� | ~191.9 KB | -| 调 `nimble_port_init()` 之� | ~131.2 KB | -| 已连接�链路稳� | ~125.2–128.9 KB | -| 链路�止�host 任务拆掉之� | ~192.0 KB | - -也就是说:链路**�动约需 60KB 堆**,连接期间��约 6KB,�掉�完整归还。这正是本项目把链路��"进入�机模���动"而�是开机就�动的原因。 - -与之相关的一个�是**��**整�截图缓冲:320 × 240 RGB565 一帧是 150KB,而开机时最大连续空闲�实测�有约 114KB,所以那�缓冲�能放在 `.bss`,等于永久� 150KB。在这���上 BLE 与它无法共存: - -- �实测出�这个数字,�能决定出厂�置。本项目出厂固件带�机,串�截图退��选构建(`-DC4_ENABLE_SCREENSHOT=ON`),且截图构建下会明确显示 `BLE UNAVAILABLE`,而�是以难以�解的方�失败。 -- 如果确实既�截图���机,必须在设计阶段就想办法(例如分�渲染到��缓冲),这�是一个�置开关能解决的。 - -## �在真机上�会暴露的两个 NimBLE � - -这两个都编译通过,是�设备日志�定�的: - -1. **�个 characteristic 都必须有 `access_cb`,哪怕�用 NOTIFY。** `ble_gatts_chr_is_sane()` 会拒� `access_cb` 为 NULL 的特�,��整个�务注册以一个笼统的 `ble_gatts_count_resources rc=3`(`BLE_HS_EINVAL`)失败。当时堆很充裕(空闲 195KB),所以这个错误�易被误读�"内存�够"。给通知特�补一个读�回调(顺便返回两个识别字节,方便手机端调试),并在本地加一�自检,明确指出是哪一�特�缺回调。 -2. **�述符�现的 `EDONE` 在订阅写�功之�也会到�。** central 侧的�述符�现回调最�会收到 `error->status == BLE_HS_EDONE`。它**�等于**"没找到 CCCD":在已�找到 CCCD�并已�出订阅写之�,�样会收到它。把它当�失败会表现为"连上 → 订阅 → 立刻自断"的死循环(抓到的日志里循环了 19 次)。正确�法是用一个"已找到 CCCD"的标志�区分,�有真的没找到�算失败。 - -## 射频之�先�始化 NVS - -没有 `nvs_flash_init()` 时,控制器/PHY 读�到射频校准数�,�次�动都��全�校准: - -```text -E phy_init: esp_phy_load_cal_data_from_nvs: NVS has not been initialized. -W phy_init: failed to load RF calibration data (0x1101), falling back to full calibration -``` - -加上 `nvs_flash_init()`(**��**顺手擦除,���掉应用数�)之�:第一次�动链路会打� `phy_init: Saving new calibration data ...`,而**下一次**�动 `phy_init` 完全��输出——这就是"校准数�被�用"的直接��。�使 NimBLE host 侧�了 `CONFIG_BT_NIMBLE_NVS_PERSIST=n`,BT/PHY 这�路�然需� NVS。 - -## ��投递放在应用层,而�是指望 BLE - -两个方�都没有应用级确认:peripheral 侧是通知,central 侧为了延迟�以用无�应写。对回�制游��说,丢一个包�是丢一帧画�,而是两�棋盘永久�一致,所以必须自己加一层: - -- 帧格�:magic + 版本 + 类型 + `bit7=带数�` 与 7 ��� + `bit7=ack 有效` 与最近接�的对端�� + 最多 3 字节负载。一帧在默认 ATT MTU 下绰绰有余,而且线上尺寸很好确认(3 字节负载时日志是 `write ... len=8`,纯确认帧是 `len=5`)。 -- �等:�接�"期望的下一个��",��包���确认���交付,� 400ms �传�5 次之�明确进入"对端丢了"状�。 -- 负载里带本手之�的��总数并在收到时校验,这样失步会被�现,而�是悄悄出现两���的棋盘。 -- 先手由连接角色 + 共享的局�决定(例如"central 先手��局交替"),两�设备无需�外往返就能算出�一答案。两边都�能�出下一局�时按 `max()` 收敛——两边都采用对端值会互相交�,导致颜色错�。 -- 这一层放在纯 C 模�里并�宿主测试;BLE �当字节管�。 - -## 收尾与休眠 - -在 `esp_deep_sleep_start()` 之�先�射频(`nimble_port_stop()` + `nimble_port_deinit()`,�删掉 host 任务),�则射频会一直带电。�链路�时也会把约 60KB 还给堆。对端会看到断开,所以给它一个"对端离开"且继续�索的界�——并且��让空闲休眠计时器在�机对局中途触�。 - -## 怎么测 - -- 真机验收需�两���;最有用的��是两边串�日志:主动方打� `role=central`,�一方 `role=peripheral`,并且两边打��一个局��颜色相�。 -- 迭代�议时,用 PC 端 BLE 对端(Python + `bleak`)�以�掉第二���:以 central 身份连上正在广播的���说�一套帧�按规则应招��,因此�用一���就能打完整局。那套对端工具(`tools/c4_peer.py`)跟�两机 BLE 传输层走,�放在本说明里。 diff --git a/docs/screen-capture.md b/docs/screen-capture.md new file mode 100644 index 0000000..71bc3ac --- /dev/null +++ b/docs/screen-capture.md @@ -0,0 +1,40 @@ +

+ 简体中文 · English +

+ +# Device screen capture + +The 2.6.7 candidate adds the USB command `FAP_SCREENSHOT_V1\n`. It exports the +current device-rendered screen as a header followed by exactly 153,600 RGB565LE +bytes. The image is 240 by 320 pixels (portrait 3:4). This is a digital screen +capture, not a photograph of the enclosure or a desktop rendering. + +Capture uses the existing partial display buffer after corner masking and +before panel byte swapping. It forces one full redraw while holding the LVGL +lock and streams strips in top-to-bottom order. No additional framebuffer is +allocated. The USB sink has a total three-second timeout. UI updates pause +during capture; prefer idle pages, not active audio or conversations. + +The command does not navigate, wake the display, reset the board, or change +saved settings. A sleeping screen returns `FAP_SCREENSHOT_ERROR +screen_unavailable`. Wake it with a physical key first. Only the USB command +accepts screenshot requests; the hotspot configuration API does not. + +Open the serial port with DTR and RTS deasserted **before** opening it. Close +the configuration page's serial connection before capture. The host must +validate the header, exact byte length and dimensions, and discard incomplete +transfers. A timeout must not become an apparently successful image. + +For release assets, save the original PNG at native resolution. Inspect all +images for personal information and secrets before copying to public assets. +Use the current homepage as the cover; select app pages using normal device +controls. Never relabel host previews as device screenshots. Firmware update +and capture are separate operations; capture itself never flashes or resets. + +## Candidate validation + +The host strip test checks pixel byte order, stride padding, partial frames, +invalid/reordered strips, transport failure and a fresh retry. Device capture, +USB-disconnect recovery and impact on active audio require on-device testing +after an explicitly authorized installation. No device screenshots are claimed +merely because the candidate compiles. diff --git a/docs/screen-capture.zh_CN.md b/docs/screen-capture.zh_CN.md new file mode 100644 index 0000000..27a1d36 --- /dev/null +++ b/docs/screen-capture.zh_CN.md @@ -0,0 +1,32 @@ +

+ 简体中文 · English +

+ +# 实机�幕截图 + +2.6.7 候选版新增 USB 命令 `FAP_SCREENSHOT_V1\n`,返回�议头以�严格 +153,600 字节的 RGB565LE �素。画�为 240 × 320,竖版 3:4。这是工牌实际 +渲染画�的数字截图,�是外壳照片,也�是电脑端模拟图。 + +截图�用现有分�显示缓冲,在圆角�罩之���幕字节交�之���数�。 +�有 LVGL �时执行一次完整�绘,按照从上到下的顺�传输,��外分�整� +帧缓冲。USB 写入总超时为三秒。截图期间界�更新暂缓,建议在�止页�截图, +��正在播放音频或对�时截图。 + +命令�会跳转页��唤醒�幕���设备或修改�存的设置。��时返回 +`FAP_SCREENSHOT_ERROR screen_unavailable`,需先用物�按键唤醒。 +截图请求仅接� USB 命令,��热点�置接�开放。 + +串�必须在打开�设置 DTR�RTS 为�有效状�。截图�断开�置页的串�连接。 +电脑端必须校验�议头�完整字节数和尺寸,丢弃�完整传输,�得把超时结果 +�存为看似�功的图片。 + +�布素��留原生分辨率 PNG,检查个人资料�秘密信����制到公开素�目录。 +��使用当�首页;通过正常硬件按键选择�程�页�。�得把电脑预览标为实机 +截图。固件安装和截图是独立�作;截图本身�会刷写或��设备。 + +## 候选版验� + +主机分�测试覆盖�素字节顺��行填充�缺失帧��法或乱�分��传输失败� +�新截图。�明确授�安装�,�需实机验�截图�拔线���对播放的影�。 +候选版编译通过�代表已��得实机截图。 diff --git a/docs/setup-navigation.md b/docs/setup-navigation.md new file mode 100644 index 0000000..e1ab922 --- /dev/null +++ b/docs/setup-navigation.md @@ -0,0 +1,43 @@ +

简体中文 · English

+ +# First setup and return navigation — 1.9.0 + +Current routing (2.2.0): Home UP opens Mini Apps, including from the first-setup +screen. The mini-app list remembers Home or Terminal as its parent. Edit Profile +now displays its hotspot guide directly, with OK to toggle the hotspot in place. +The sections below record the original 1.9.0 behavior and validation. + +When no saved profile exists in any of the five slots, Home shows the setup guide and requests the protected configuration hotspot automatically. A configured device continues to boot into its badge. Clearing the final configured profile activates the guide again without deleting any other settings. + +The guide displays the hotspot name/password, `http://192.168.4.1`, the steps to save and display a badge, and a reminder to remain connected when the phone reports no Internet. Down opens the terminal and Up opens settings. OK starts the hotspot if it is closed or startup failed. During initial setup the ten-minute idle shutdown is suspended; manual closure is respected. Saving the first profile restores normal idle shutdown with a fresh ten-minute period, preserving the current configuration session. + +Opening the network guide from Settings or Edit Profile also starts the hotspot if necessary. Reopening an active hotspot does not rotate its password or disconnect clients. Save the desired profile in the browser; if editing an inactive slot, select **Display this badge** afterward. + +## Return choices + +Long OK on a non-home page opens a shared chooser: + +1. Previous page +2. Home +3. Continue current page + +Up/down selects; OK confirms; another long OK cancels. Settings remembers whether Home or the terminal opened it. The network guide remembers whether Settings or Edit Profile opened it. Quick QR still supports its existing short-press return. The chooser also works inside both games: Previous honors the voice game's internal category/volume navigation, while Home stops the game worker before destroying its UI. A stop timeout retains the game for retry. + +## Badge spacing + +The name region now starts at screen `(20,116)`, department at `(20,158)`, and title at `(20,184)`. The information panel starts at `(14,102)`, providing 14 pixels of top space before the name image and 6 pixels on the left. Existing RGB565 crops and storage formats stay unchanged; saved badges immediately use the new spacing. The browser preview uses exactly the same region table, checked by a Node test. + +## Validation — 2026-09-15 + +| Field | Result | +| --- | --- | +| Build | PASS — native ESP-IDF 5.5.3 build, all five images and resource checks; application 1,755,008 bytes | +| Host tests | PASS — repository/static gate, setup/idle policy, five-slot emptiness and actual parent navigation, chooser confirm/cancel and game stop, Node configuration suites, production LVGL render | +| Device tests | PASS — segmented installation and normal startup, five profiles/active slot/Wi-Fi readback unchanged, real WPA2 hotspot serves the exact updated configuration page and profile readback | +| Unverified | Empty-device first-boot sequence and physical button operation; existing profiles were retained throughout hardware testing | + +The partition table and both audio images are byte-identical to 1.8.0; installation only updated program images. UI tests preserve every source pixel in the repositioned profile regions. Under the same 40 KB LVGL pool, 100 voice/Muyu/return-chooser cycles left 17,000 bytes free versus 16,984 before, with a 22,680-byte peak. This is a UI heap test, not an audio or total-device heap measurement. + +The static gate ran in WSL; native Windows ran the firmware build/merge/verification. The temporary WLAN profile and hotspot test connection were removed afterward, and COM6 was released. No full flash erase or profile clearing was performed. + +As of 2.4.5, configured Home also supports holding Up to open Xiaozhi directly. Previous returns to Home for this route; ordinary app-list entry still returns to the list. My QR Code precedes Edit Profile in the terminal. diff --git a/docs/setup-navigation.zh_CN.md b/docs/setup-navigation.zh_CN.md new file mode 100644 index 0000000..ec48fda --- /dev/null +++ b/docs/setup-navigation.zh_CN.md @@ -0,0 +1,41 @@ +

简体中文 · English

+ +# 首次�置与返回导航 — 1.9.0 + +当�跳转规则(2.2.0):首页上键直接打开�程�列表,首次�置页也适用;列表记�首页或员工终端作为返回上一级。 +工牌资料页直接显示热点引导,OK 在本页开关热点。以下�留 1.9.0 原始行为和验�记录。 + +五个�置都没有已�存的工牌时,首页显示�置引导,并自动请求开�带密�的�置热点。已有工牌的设备�直接展示工牌。清除最�一张已�置工牌�,也会�次进入引导,�删除其他设置。 + +引导包�热点�称与密��`http://192.168.4.1`��存和显示工牌的步骤,并�醒手机�示“无互�网�时��连接。下键进入��,上键进入设置;热点关闭或�动失败时,OK ��新开�。首次�置期间暂��分钟空闲关闭规则,��许手动关闭热点。�存第一张工牌���普通空闲规则,�新计时�分钟,��当��置连接。 + +从系统设置或工牌资料进入网络引导,也会按需打开热点。热点已开�时�会更�密�或断开客户端。�览器中�存所需工牌;如果编辑的�是当�显示�置,�存��点 **显示这张工牌**。 + +## 返回选择 + +�首页页�长按 OK,打开统一的返回选项: + +1. 返回上一级 +2. 回到首页 +3. 继续当�页� + +上下选择,OK 确认,�次长按 OK �消。设置页记�自己是由首页还是员工终端打开;网络引导记�自己�自设置还是工牌资料。快�二维��留原有的短按返回�作。两个游�也支�此��:“返回上一级��循语音游�内部分类/音�页�层级;“回到首页�会先�止游�任务,�销�游�页�。�止超时�留游�,�许�试。 + +## 工牌留白 + +姓�图�移到�幕 `(20,116)`,部门移到 `(20,158)`,��移到 `(20,184)`。资料区从 `(14,102)` 开始,姓�图�之�有 14 �素顶部留白,左侧有 6 �素留白。RGB565 �剪���存储格���,已�存的工牌立�使用新间�。�览器预览采用�一组区域�数,Node 测试会�项核对。 + +## 验� — 2026-09-15 + +| 字段 | 结果 | +| --- | --- | +| Build | PASS — 原生 ESP-IDF 5.5.3 编译�五个镜��音效资�检查;应用 1,755,008 字节 | +| Host tests | PASS — 仓库/��门��首次�置�空闲策略�五张工牌空状�与实际父页�返回选项确认/�消�游��止�Node �置页测试�真实 LVGL 渲染 | +| Device tests | PASS — 分段安装并正常�动,五张工牌/当�显示/Wi-Fi 回读一致,真实 WPA2 热点�供新版�置页�和资料回读 | +| Unverified | 空设备首次开机完整�程和实体按键�作;实机测试始终�留现有工牌 | + +分区表�两段音效镜�与 1.8.0 �字节一致,本次仅安装程�镜�。UI 测试核对移动�的资料区域与原图�素完全一致。相�的 40 KB LVGL 内存池中,100 次语音/木鱼/返回选项切��剩余 17,000 字节,之�为 16,984,峰值使用 22,680 字节。这是 UI 内存测试,�代表音频或整机堆内存结果。 + +WSL 执行��门�,Windows 原生执行固件编译��并�校验。真实热点测试的临时无线连接已清�,热点��测试�状�,COM6 已释放。未擦除整机 Flash,也未清空工牌。 + +2.4.5 起,已�置工牌的首页支�长按上键直达�智,此路径的“返回上一级�回到首页;通过�程�列表�动时�返回列表。员工终端中“我的二维���于“工牌资料�之�。 diff --git a/docs/storage-captions.md b/docs/storage-captions.md new file mode 100644 index 0000000..8b90725 --- /dev/null +++ b/docs/storage-captions.md @@ -0,0 +1,46 @@ +

简体中文 · English

+ +# Storage and caption fonts — 2.6.8 + +The application partition grows from 0x2C0000 to 0x2E0000 bytes. `voice_data` +moves from 0x2D0000 to 0x2F0000 and shrinks by 128 KiB. `voice_tail`, NVS, +PHY and both profile partitions retain their original offsets and sizes. All +726 Opus clips are retained byte-for-byte. The logical voice stream is repacked +at the new split point, leaving 50,800 bytes after its header and payload. +Existing-device installation requires a verified full backup and segmented +migration; an app-only update cannot perform this layout change. The installer +checks an allowlist of layouts, verifies resources, writes the partition table +last, and checks user-data bytes before boot. Never write the merged image for +a preserving update. + +Three 14px UI fonts share one bitmap and descriptor table. The legacy character +set is retained in `assets/fonts/ui14-characters.txt`; generated wrappers retain +their public font names. The regression fixture checks every legacy glyph's +pixel bytes, advance, bounds and offsets. Run any of the old 14px generators or +`tools/generate_shared_fonts.py` with the existing Noto Sans SC TTF to regenerate +the shared fonts. Pillow is required. + +The XiaoZhi caption font retains GB2312 coverage and adds common name/UI +characters, punctuation and symbols. Its 7,783 glyphs are checked against the +source TTF cmap; `tools/generate_xiaozhi_font.py` also requires fontTools. +It is not a complete Unicode font. Incoming STT, TTS and alert display strings +are normalized once outside the LVGL refresh loop. Common emoji become named +Chinese labels, other pictographic emoji receive a generic emoji label, and unsupported +characters retain their identity as `[U+XXXX]` (or longer for supplementary +codepoints). The literal Han character U+53E3 remains unchanged. Variation selectors, joiners and +skin-tone modifiers do not become missing-glyph boxes. Invalid UTF-8 becomes an +explicit encoding-error label. Bounded output never splits a UTF-8 character or +a replacement token. Audio and the server's conversation are unchanged. + +## Validation + +The release app is 2,674,896 bytes, with 339,760 bytes free (331.8 KiB). +Compared with 2.6.7, app bytes decrease by 21,216 and headroom grows by 152,288. +This is flash headroom, not additional runtime RAM. + +Host checks cover strict UTF-8, output bounds, emoji/unknown characters, all old +UI glyph pixels, all GB2312 caption characters, the voice bundle CRC/split and +allowed migration layouts. A native LVGL check resolves all 7,783 caption glyphs +without placeholder descriptors and renders mixed captions. Compilation and +host rendering alone do not prove the user's particular cloud response or +hardware transport. Device installation results must be reported separately. diff --git a/docs/storage-captions.zh_CN.md b/docs/storage-captions.zh_CN.md new file mode 100644 index 0000000..b647535 --- /dev/null +++ b/docs/storage-captions.zh_CN.md @@ -0,0 +1,33 @@ +

简体中文 · English

+ +# 存储与字幕字库优化 — 2.6.8 + +应用分区从 0x2C0000 扩展至 0x2E0000 字节。`voice_data` 从 0x2D0000 移至 +0x2F0000,缩� 128 KiB。`voice_tail`�NVS�PHY 和两处工牌分区的地��大� +�����。726 段 Opus 音效�字节�留,逻辑音效�按新边界�新拆分,头部和 +有效载�之�剩余 50,800 字节。旧设备安装�必须完整备份并校验,�分段�移; +仅写入应用�能完�此次布局调整。安装器校验�许的旧布局,校验新资��最�写 +分区表,并在�动�核对用户数�原始字节。�留数�的�级��直接刷完整镜�。 + +三个页�的 14px 字体共用�图和�述表。`assets/fonts/ui14-characters.txt` +�留原字符集�,�字体入����。回归数�核对�个旧字形的�素�宽度�边界 +和�移。使用现有 Noto Sans SC TTF �行原 14px 生�脚本或 +`tools/generate_shared_fonts.py`,���新生�共享字体;需� Pillow。 + +�智字幕�留 GB2312,补充常�姓�/UI 用字�标点和符�,共 7,783 个字形。 +生��核对�字体的 cmap,`tools/generate_xiaozhi_font.py` 还需� fontTools。 +这并�完整 Unicode 字库。识别�回�和�醒的显示文字在 LVGL 刷新循环外处�: +常�表情显示中文�称,其他图画表情显示 `[表情]`;缺少字形的字符显示 +`[U+XXXX]`,补充平�字符使用更长编�,��悄悄删掉生僻姓�。真正的汉字“�� +��原样。�体选择符�连接符�肤色修饰符��显示缺字框;�法 UTF-8 明确显示 +编�错误�示。缓冲区截断�会切开 UTF-8 字符或替代�示。音频��务端对���。 + +## 验� + +�布应用为 2,674,896 字节,剩余 339,760 字节(331.8 KiB)。相比 2.6.7, +程��少 21,216 字节,应用余�增加 152,288 字节。这是闪存余�,�是�行内存。 + +主机检查覆盖严格 UTF-8�输出边界�表情/未知字符�全部旧 UI 字形�素�全部 +GB2312 字符�音效 CRC 和新拆分边界��许的�移布局。原生 LVGL 检查确认全部 +7,783 字形无���述符,并绘制混�字幕。编译和主机绘制�能�明用户�次云端 +回�或实机传输正常;设备安装结果需�独报告。 diff --git a/docs/tactical-home.md b/docs/tactical-home.md new file mode 100644 index 0000000..57857be --- /dev/null +++ b/docs/tactical-home.md @@ -0,0 +1,148 @@ +

简体中文 · English

+ +# Tactical identity layout (2.4.0) + +The homepage follows the user's supplied 240 × 320 HTML composition: a solid +accent-color banner with a diagonal cut, a large left portrait, stacked +identity details on the right, and a filled/outlined alias opposite a +multiline signature. The shared status bar and four bottom shortcuts remain. +The actual stored badge theme determines every color; yellow is only a demo. +No Tailwind, external image or remote font service is needed on the device. + +In 2.4.2 the banner cut moves 28px left, from (165,79)–(153,89) to +(137,79)–(125,89), just before the name column at x=145. Browser and device +share this geometry; stored badge images do not need to be regenerated. + +In 2.4.3 the QR page reuses the homepage status bar, brand banner and bottom +frame. The middle becomes a neutral black/white 176px QR at (32,100): 32px +side margins, 11px below the banner and 12px before the lowest frame rise. +The original 192px stored code is unchanged. A binary nearest-center display +buffer avoids blurred edges and LVGL transform allocations. Browser preview +uses the same sampling, and upload validation decodes both sizes. The footer +shows the existing return action; no portrait or identity text sits behind +the code. Empty codes show an upload hint inside the same shell. + +The optional `alias` field appears only as the large footer lettering in 2.4.4. When blank, footer lettering uses the existing name. Names wrap +to two lines, department/title to two lines, and signatures to three lines; +oversized text is fitted or ellipsized without changing stored metadata. +Orbitron/Caveat remain the same offline fonts as [2.3.0](portrait-home.md). +Chinese signatures use the browser's available KaiTi or Chinese fallback. + +Photo fades are separate display overlays. The stored photo remains unfaded, +so reading and saving a badge repeatedly does not progressively darken it. +Browser preview and LVGL both use a 140 × 180 displayed photo and the same +horizontal/vertical fade regions. Fade objects have no animation or timer. + +## V4 data layout + +### Typography refinement (2.4.1) + +Text blocks now flow according to their wrapped line count. The name owns the +first 32 pixel rows for a clean crop in the badge switcher. The alias has a +4-pixel gap; other visible blocks have 7–12 pixels between their line boxes. +Empty fields do not reserve a blank block. Names use 14–16px Orbitron with +Chinese sans-serif fallback, departments use 10–12px semibold sans-serif, +and titles use 10–11px sans-serif. IDs use 10–11px monospace instead of the +wide display face. Names/departments use the theme text color, ID/title use +its muted color, and aliases/signatures use its accent. + +Body leading adapts from 13–17px to the available height. Signatures have +at least 3px leading above their font size and are vertically centered in +the 40px footer. Latin words wrap as units when they fit; oversized tokens +fall back to grapheme wrapping. The existing font files and V4 storage +format remain unchanged. Previously saved text images need to be regenerated +and saved to adopt the new typography; installing the application alone +does not overwrite them. + +Partitions and alternating 0x18000-byte profile banks are unchanged. The +91,648-byte payload contains: + +| Asset | Bytes | Interpretation | +| --- | ---: | --- | +| Card atlas | 43,264 | 84 × 148 RGB565 side panel, then 208 × 40 footer, then padding | +| Avatar | 32,256 | 112 × 144 RGB565 original cropped photo | +| Brand | 9,472 | 148 × 32 RGB565 | +| Logo | 2,048 | 32 × 32 RGB565 | +| QR | 4,608 | 192 × 192, one bit per pixel | + +The card transport dimensions are 208 × 104; the atlas is not a single +displayed rectangle. Asset offsets are selected by each badge's version. +V1–V3 continue to load and use their existing display paths. The protocol +remains 2 and advertises `maxProfileVersion: 4`. V4 JSON adds a string `alias` +of up to 128 UTF-8 bytes, disallowing control characters. All prior fields +retain their validation. Unsupported versions fail before any bank erase. + +The editor reads actual per-badge image dimensions before loading saved +photos. A V4 save upgrades only the selected badge with its revision guard. +Firmware updates write only the application partition. NVS, Wi-Fi, audio +resources and unselected cards remain intact. Original card files and +private migration snapshots stay outside the source archive. + +## Validation + +Persistence tests exercise mixed V2/V3/V4 slots, every asset boundary, +interrupted transfers and interrupted commits. Browser checks exercise the +real V4 save handler, alias, Unicode wrapping, native photo roundtrips and +exact 91,648-byte packing. The LVGL renderer completed 200 home/list switches +using a 32 KiB pool (16,856 bytes peak in the native test). Hardware validation +also checks the application flash digest, all uploaded image bytes, preserved +profile fields, active card and Wi-Fi, plus persistence after restart. + +## Shared bottom actions (2.4.4) + +All mini apps and system settings use a single 10px action row at y=300, +with 8px side insets and a 224px text area. `main/badge_footer.h` owns the +shared style and hints; long-press labels identify holding Up, Down or OK. Muyu, voice lists/volume, radio and its settings, Xiaozhi states, +brightness, hotspot/profile setup and the return chooser share this row. +Button hints were removed from page subtitles and body messages. State, +network instructions and content stay above it. Existing button behavior +is unchanged. The small font generator collects the hint glyphs; native +LVGL checks verify glyph coverage, one-line width and the rendered pages. + +### Header ID and signature placement + +In 2.4.4, employee ID is a 168 x 12 raster at (60,31), right-aligned inside +the brand banner. The side panel contains only name, department and title. +The footer alias remains at y=250; the signature is separately drawn at +y=244, six pixels higher. + +The V4 payload remains 91,648 bytes. A new atlas uses 84 x 124 pixels for +the side panel (offset 0), 168 x 12 for the header ID (offset 20,832), and +the unchanged footer at 24,864. The ASCII marker `IDH1` at offset 41,504 +identifies this layout. Existing V4 atlases without the marker retain their +original 148px side panel. The device advertises `maxBadgeLayout: 2`; the +editor requires it before saving, preventing uploads to an older renderer. +Profile JSON, photo, logo, QR and partition sizes are unchanged. Existing +cards need their text atlases regenerated to move the ID and remove the +inline alias. + +## Fixed identity zones and AI shortcut (2.4.5) + +Name, department and title keep fixed 32/34/32px zones at panel offsets +0/44/90. Each holds two lines; one-line text is vertically centered and +empty fields keep their space. The atlas and all asset sizes remain unchanged. +Existing cards need their text images refreshed to adopt the spacing. + +The terminal order is Mini Apps, My QR Code, Edit Profile, Settings, Home. +On configured Home, holding Up directly opens Xiaozhi; a short Up still opens +the app list. The runtime resolves the stable `xiaozhi` registry ID rather +than a hardcoded list index. A directly launched app returns to Home through +Previous; list-launched apps return to the list. Both use the existing worker +stop and UI teardown flow. All five Home shortcut hints share the bottom row. +Navigation tests cover long/short gestures, missing apps, empty setup, +repeated launches and both return paths. Browser checks compare fixed zone +coordinates for short, long and empty fields. + +## Badge switcher name bounds (2.4.6) + +Five badge rows now start at y=100 with a 38px pitch and 36px height. The +32px name strip is inset 2px vertically in a 128px-wide clipping container, +separate from the row number and active marker. Both lines remain visible; +V3 names retain their existing scale and are centered in the same container. +The final row ends at y=288, above the shared footer. This display-only fix +needs no profile image regeneration and preserves all stored badge data. + +Rows use the page background with no extra fill; borders and a left marker +indicate selection. Saved RGB565 name strips become 16-level alpha text in +the current theme's text color, removing their original background colors. +Conversion buffers exist only on the badge switcher and are freed on exit. diff --git a/docs/tactical-home.zh_CN.md b/docs/tactical-home.zh_CN.md new file mode 100644 index 0000000..34cafca --- /dev/null +++ b/docs/tactical-home.zh_CN.md @@ -0,0 +1,112 @@ +

简体中文 · English

+ +# 机能身份牌布局(2.4.0) + +首页�考用户�供的 240 × 320 HTML:整�强调色切角横幅�左侧大幅肖���侧纵�资料, +底部实心��边混�代�与多行签�。�留共用状���底部四项快��作。 +全部颜色跟�当�工牌;黄色�用于演示。设备��赖 Tailwind�外部图片或在线字体�务。 + +2.4.2 将横幅折角左移 28 �素:由 (165,79)–(153,89) 改为 (137,79)–(125,89), +�于 x=145 的姓�列�左侧。网页与硬件�步调整,无需�新生�已�存的工牌图片。 + +2.4.3 亮�页�用首页状����牌横幅与底部边框,中间改为�于 (32,100) 的 176 �素 +黑白二维�:左��留 32 �素,�横幅底部 11 �素,�底部边框上折线 12 �素。 +原有 192 �素二维�存储����,显示时按最近�素中心采样到二值缓冲区,��模糊 +边缘和 LVGL ��内存分�。网页使用相�采样,上传时校验两�尺寸的解�结果。 +底部�留原�的返回�作�示;�图���显示头�或身份资料。未上传时在�一框架内显示�示。 + +�选 `alias` 代�字段自 2.4.4 起�显示在底部艺术字区域。留空时,底部使用原姓�。 +姓�最多两行,部门���最多两行,签�最多三行;过长内容缩�或显示�略�,�改动完整资料。 +继续使用 [2.3.0](portrait-home.zh_CN.md) 的 Orbitron�Caveat 离线字体;中文签�使用 +�览器�用的楷体或中文回退字体。 + +头���是独立显示层,�存的照片�包���效果,��读�并�存�会越�越暗。 +网页预览和 LVGL �将头�显示为 140 × 180,并使用相�的横��纵���区域。 +��层是��元素,没有动画和定时器。 + +## V4 数�布局 + +### 排版调整(2.4.1) + +文案�根�实际�行数排列。姓�独�顶部 32 �素,工牌切�列表�切时�会混入其他资料。 +代�与姓�间隔 4 �素,其他有效文案�之间间隔 7–12 �素;空字段���留一整�空白。 +姓�使用 14–16px Orbitron,中文回退为无衬线字体;部门使用 10–12px �粗无衬线, +��使用 10–11px 无衬线,编�使用 10–11px 等宽字体。姓��部门使用主题正文色, +编����使用次�文字色,代��签�使用强调色。 + +正文行高按�用空间在 13–17px 范围内调整。签�行高至少比字�多 3 �素,并在底部 +40 �素区域中垂直居中。英文��在能够放入整行时��完整,超长�按字素�行。 +沿用已有字体文件� V4 存储格�。已有工牌需�新生�并�存文字图片�能使用新排版, +仅安装程��会覆盖已�存的文字图片。 + +分区��个 0x18000 字节的�存储区����。91,648 字节的数�包括: + +| 素� | 字节 | �义 | +| --- | ---: | --- | +| 资料图集 | 43,264 | 84 × 148 RGB565 侧�,接 208 × 40 底部文字,�接填充区 | +| 头� | 32,256 | 112 × 144 RGB565 �剪照片,���� | +| �牌 | 9,472 | 148 × 32 RGB565 | +| 图标 | 2,048 | 32 × 32 RGB565 | +| 二维� | 4,608 | 192 × 192,��素一� | + +资料图集的传输尺寸为 208 × 104,�作为一张矩形图片显示。素��移根��张工牌的版本选择。 +V1–V3 继续使用原有读�和显示方�。�议版本�为 2,通过 `maxProfileVersion: 4` 声明支�。 +V4 JSON 新增最多 128 个 UTF-8 字节的 `alias` 字符串,�止控制字符;原字段校验����。 +�支�的格�会在擦写存储区�被拒�。 + +�置页根��张工牌返回的实际尺寸读�头�。V4 �存带有版本校验,��级所选工牌。 +固件仅更新程�分区,�留 NVS�Wi-Fi�音效�未编辑的工牌。原始资料和�移备份�存在 +��目录之外,�包�在��压缩包内。 + +## 验� + +存储测试覆盖 V2�V3�V4 混用�所有素�边界�上传中断��交中断。 +�览器检查覆盖真实 V4 �存�程�代��Unicode �行�头����存� 91,648 字节数�打包。 +LVGL 渲染器在 32 KiB 内存池内完� 200 次首页�列表切�,原生测试峰值�用为 16,856 字节。 +硬件验�还检查程�摘��上传图�的全部字节�已有资料�当�工牌�Wi-Fi ����的�久�存。 + +## 共用底部�作�示(2.4.4) + +所有�程��系统设置统一使用 y=300 的 10px �行�作�示,左��留 8 �素,文字区域 +宽 224 �素。`main/badge_footer.h` 统一维护样�和�示;长上�长下�长OK 表示长按 +对应按键。木鱼�音效列表与音��电��其设置��智�状��亮度�热点�工牌�置 +和返回选择���使用该行。标题�与正文内的��按键�示已移除,状���网说明与 +内容�显示在上方。按键行为����。�字�字体生�器自动收集�示用字,原生 LVGL +检查字形覆盖��行宽度��页�的渲染结果。 + +### �牌�编�与签��置 + +2.4.4 将员工编�渲染为�于 (60,31) 的 168 × 12 �素图片,在�牌��上角�对�。 +�侧资料区仅�留姓��部门和��。底部代���于 y=250,签��独绘制在 y=244, +上移 6 �素。 + +V4 数��为 91,648 字节。新版图集在�移 0 �存 84 × 124 �素资料区,�移 20,832 +�存 168 × 12 编�图片,底部文字��于 24,864;�移 41,504 的 ASCII 标记 `IDH1` +用于识别新版布局。无标记的原 V4 工牌继续使用 148 �素高的资料区。设备新增能力声明 +`maxBadgeLayout: 2`,�置页�存�必须确认此能力,���旧固件上传�兼容布局。 +资料 JSON�头��图标�二维�和分区大������;已有工牌需�新生�文字图集, +�能将编�移至顶部并移除姓�下方的��代�。 + +## 固定文案区与�智快�键(2.4.5) + +姓��部门���区域固定为 32�34�32 �素高,在资料图中的起点为 0�44�90。 +�区预留两行空间;�行文案垂直居中,空字段也�留区域。图集与所有素�大�����, +已有工牌需�新生�文字图片,�能应用新间�。 + +员工终端顺�为:�程��我的二维��工牌资料�系统设置�返回工牌。 +已�置工牌的首页长按上键直接打开�智,短按上键�打开�程�列表。程�按注册 ID +`xiaozhi` 查找应用,��赖列表中的固定下标。首页直达�智时,“返回上一级�回到首页; +从列表�动时返回列表,两�路径�沿用先�止工作任务��销�界�的�程。 +首页五项快��示��底部�一行。导航测试覆盖长短按�应用�存在�首次�置����动 +�两�返回路径;网页测试比较�行��行与空字段的固定区域�标。 + +## 工牌切�列表姓�边界(2.4.6) + +五个工牌选项从 y=100 开始,行间步� 38 �素,选项高 36 �素。32 �素高的姓� +图片上下�留 2 �素,放入宽 128 �素的独立�切区域,与���“当��标记分开。 +�行文字完整�留,旧 V3 姓�沿用原缩放比例并在区域内居中。最�一个选项止于 y=288, +��用底部�作�。本次仅修正显示,无需�新生�工牌图片,已�存资料����。 + +选项沿用页�背景,�使用�外填充色;选中状�仅用边框和左侧标记区分。 +姓�从已�存的 RGB565 图片转�为 16 级�明度文字,使用当�主题文字色, +去掉�张工牌图片�带的底色。转�缓冲仅在切�列表存在,离开页��释放。 diff --git a/docs/voice-keychain.md b/docs/voice-keychain.md new file mode 100644 index 0000000..a977437 --- /dev/null +++ b/docs/voice-keychain.md @@ -0,0 +1,68 @@ +

简体中文 · English

+> This is the original 1.8.0 integration/test record. For current counts and layout, see [1.9.1 audio selection](voice-pruning.md). + + +# Voice Keychain integration — 1.8.0 + +The second badge game adapts [Shinku-Chen's feature/voice-keychain branch](https://github.com/Shinku-Chen/ai-passport/tree/feature/voice-keychain), commit `71c45cabc1b2f3b73b4929d71cafd926ccbb11f5`. It includes all 24 packs and 818 clips without re-encoding. The existing badge shell and Wooden Fish remain available. + +## Controls and theme + +- Game library → Voice Keychain. Up/down selects; OK enters or plays. A new request replaces current playback. +- Long OK returns one level; from the pack list it exits to the game library. +- Long Up opens volume. Up increases and Down decreases by 5%; OK returns. Long Down stops playback. +- Default volume is 40%, stored in the independent `voice_key_v1` NVS namespace. Changes save after a three-second interval when the player is idle, and at exit. Damaged NVS is never erased. +- Background, panels, accent, text and muted text follow the active badge palette, including live profile updates. Selected long titles scroll; unselected long titles use an ellipsis. Header battery text remains compact and has no BAT prefix. + +## Architecture + +`game_registry.c` adds `voice-keychain`. An optional `back` callback handles nested views; the existing lifecycle owns entering, starting, stopping and deleting each game. The upstream standalone boot path, USB service and auto-sleep controller are not started. + +`voice_navigation.c` is a hardware-independent menu model. `voice_ui.c` uses the shared palette and six reusable rows. UI and timer access require the LVGL lock. A single worker handles streaming, fixed-point Opus decoding, PCM output, battery reads and NVS. A one-entry queue plus request generation cancels stale playback; no unbounded jobs or per-packet allocations are used. The worker has a 16 KB stack. Exit cancels playback and joins the worker before deleting resources and the UI timer; timeout retains the page for retry. + +Audio uses 16 kHz mono Opus, framed as little-endian u16 packet length followed by the packet. Packet length is bounded at 1500 bytes and decoded output at 960 samples. Two raw resource partitions form a logical stream, with bounded reads across their boundary. There is no filesystem mount or automatic format. + +| Region | Offset | Size | +| --- | --- | --- | +| Application | 0x10000 | 0x200000 | +| Voice data | 0x210000 | 0x480000 | +| Profiles 2–5, preserved | 0x690000 | 0xC0000 | +| Voice tail | 0x750000 | 0x80000 | +| Profile 1, preserved | 0x7D0000 | 0x30000 | + +NVS and PHY retain their original addresses. The pack generator checks paths, lengths, packet boundaries and capacity, then writes a CRC-protected header, catalog and two images. The payload is 4,904,252 bytes. `verify_firmware.py` verifies all five flash images and calls the product-specific voice resource verifier. Flash resource sizes total 5 MB; unused bytes are padded with 0xFF. + +## Build and preserving installation + +Build with ESP-IDF 5.5.3 as described in the root README. CMake generates audio images/catalog automatically from the checked-in assets. The generated Noto Sans SC font is included; regenerating it requires Pillow and the OFL source font. Vendored libopus retains its COPYING file; media provenance is recorded separately in `assets/audio/voice-keychain/SOURCE.txt`. + +```bash +python tools/flash_badge.py --port COM6 --backup-dir /private/new-backup-directory +``` + +The installer verifies the build, creates a private full-device backup in 1 MB chunks with device MD5 checks and up to three read attempts per chunk, checks existing user-data addresses and free space, writes only the five selected images, then compares both profile regions byte for byte. Backup files contain private data and must stay outside source and distributable directories. Release the USB configuration connection first. Do not write the merged image over an existing badge: padding covers NVS and profiles 2–5. It is for blank-device provisioning. + +## Verification, 2026-09-15 + +| Field | Result | +| --- | --- | +| Build | PASS — native Windows ESP-IDF build, application fits 2 MB, merged image and resource checks | +| Host tests | PASS — navigation across all 818 selections, malformed/truncated packets and boundary reads, deterministic bundle CRC, existing repository/host gate, four palette renders and 100 voice/Muyu UI round trips | +| Device tests | PASS — segmented 1.8.0 installation, all profile bytes preserved, normal startup with two games, active badge and Wi-Fi settings preserved, Wi-Fi connected | +| Unverified | Physical keys, actual playback/sound quality, device decoder stack margin, repeated hardware game exits, long-term operation | + +The vendored fixed-point decoder decoded all 138,458 packets (44,306,560 samples) on the host. Actual LVGL 9.5.0 rendering under a 40 KB pool reported peak usage 20,448 bytes and 17,072 free bytes after 100 voice/Muyu UI round trips, versus 16,944 before. This checks UI allocation behavior, not total ESP32 heap or device audio timing. The static gate ran in WSL; native Windows performed the equivalent firmware build/merge/verification. No single POSIX full-gate run is claimed. + +### Residual bytes in an old application tail + +Some devices retain bytes in unused space from earlier images. Installation rejects these by default. After inspecting the private backup, `--reuse-unused-tail` permits a recognized 1.7.1 badge migration only: partition layout, version marker, segment bounds, checksum and SHA-256 must match, and the image must end before the new sound region. Unknown or damaged/oversized applications are rejected. This device's old image was verified at 1,511,664 bytes, ending at 0x1810F0; both voice regions are outside its active image and profile storage. + +### Installed-device result + +The application is 1,750,832 bytes; the merged image is 8,192,000 bytes. All five written images passed device hash verification. After completing the private full-device backup, the existing application, partition table and profile banks were verified against it before segmented writing. Both profile regions were read back byte for byte without changes. Startup reports two games with buttons, battery and storage initialized; profile and USB services return ESP_OK. USB readback confirms all five profiles, the active badge and Wi-Fi settings are unchanged; Wi-Fi is connected. The serial port was closed afterward. + +Merged-image SHA-256: `5daff14195cb9c16249ca8a9eedcc0d6adbef0f9280b0ba9192406c800f06fc7`. + +## Shared codec in 2.1.0 + +Voice Keychain and XiaoZhi now use the same Espressif `esp_audio_codec` Opus decoder. Clip data, packet bounds and volume persistence are unchanged. The vendored libopus decoder is retained for offline tools and excluded from the firmware link. See [XiaoZhi validation](xiaozhi.md). diff --git a/docs/voice-keychain.zh_CN.md b/docs/voice-keychain.zh_CN.md new file mode 100644 index 0000000..96dc370 --- /dev/null +++ b/docs/voice-keychain.zh_CN.md @@ -0,0 +1,68 @@ +

简体中文 · English

+> 本文记录 1.8.0 的原始集�与实测;当�数�和分区请查看 [1.9.1 音效精简](voice-pruning.zh_CN.md)。 + + +# 音效钥匙扣集� — 1.8.0 + +作为工牌的第二款游�,集� [Shinku-Chen 的 feature/voice-keychain 分支](https://github.com/Shinku-Chen/ai-passport/tree/feature/voice-keychain),�交 `71c45cabc1b2f3b73b4929d71cafd926ccbb11f5`。�留全部 24 个分类�818 段音效,未�新编�。原工牌主系统与敲木鱼继续�留。 + +## �作与主题 + +- �游�列表 → 音效钥匙扣。上下选择,OK 进入或播放;�次播放会打断当�音效。 +- 长按 OK 返回上一级;在分类首页长按 OK 返回�游�列表。 +- 长按上键打开音�设置,上键增大�下键��,�次 5%;OK 返回。长按下键�止播放。 +- 默认音� 40%,�存到独立 NVS 命�空间 `voice_key_v1`。�更在播放器空闲且间隔达到三秒时�存,退出时也会�存;��的 NVS �会被自动擦除。 +- 背景����强调色�主文字�次文字�跟�当�工牌,支�游�中�步资料更新。选中的长标题滚动,未选中的长标题显示�略�。顶部电�沿用�字�,无 BAT �缀。 + +## 实现结构 + +`game_registry.c` 增加 `voice-keychain`。�选的 `back` 回调处�游�内部多级页�,现有生命周期负责进入��动��止和删除游�。��动上游独�开机�程�USB �务或自动休眠控制器。 + +`voice_navigation.c` 是独立于硬件的��状�机;`voice_ui.c` 使用共享主题�六行�用列表。UI 与定时器访问�循 LVGL �。�个��任务处���读��定点 Opus 解��PCM 输出�电�读�� NVS。长度为 1 的请求队列加请求���消旧播放,�累积任务���包分�内存。播放器任务栈为 16 KB。退出先�消并等待任务结�,�删除资�和 UI 定时器;等待超时�留页�,�许�试。 + +音频为 16 kHz �声� Opus,使用两字节�端数�包长度�缀。数�包最大 1500 字节,�次解�最多 960 个采样。两段原始音效分区组�连续逻辑�,跨分区读�有明确边界检查,无文件系统挂载或自动格�化。 + +| 区域 | 地� | 大� | +| --- | --- | --- | +| 应用程� | 0x10000 | 0x200000 | +| 音效主区 | 0x210000 | 0x480000 | +| 第 2–5 张工牌,�留 | 0x690000 | 0xC0000 | +| 音效尾区 | 0x750000 | 0x80000 | +| 第 1 张工牌,�留 | 0x7D0000 | 0x30000 | + +NVS�PHY 地���。打包工具检查路径�长度�数�包边界�容�,生�带 CRC 的头�索引和两段镜�。实际音频为 4,904,252 字节。`verify_firmware.py` 校验五个刷写镜�,并调用本产�的音效资�校验器。两段音效镜��计 5 MB,空闲部分填充 0xFF。 + +## 编译与�留资料安装 + +按根目录 README 使用 ESP-IDF 5.5.3 编译。CMake 自动从已�交资�生�音效镜�和索引。已包�生�的 Noto Sans SC 字库;�新生�需� Pillow 和 OFL 原字体。第三方 libopus �留 COPYING;音效���独记录于 `assets/audio/voice-keychain/SOURCE.txt`。 + +```bash +python tools/flash_badge.py --port COM6 --backup-dir /private/new-backup-directory +``` + +安装工具校验编译产物�分�创建�有整机备份(�� 1 MB,设备 MD5 校验,��读�最多�试三次)�检查现有资料地�和空闲空间,�分段写入五个镜�,��字节核对两段工牌存储。备份包��人数�,必须留在���交付目录之外。先释放 USB �置连接。已有资料的工牌��刷�并镜�:其填充会覆盖 NVS 和第 2–5 张工牌。�并镜��用于空白设备。 + +## 验�记录,2026-09-15 + +| 字段 | 结果 | +| --- | --- | +| Build | PASS — Windows 原生 ESP-IDF 编译,应用�放入 2 MB 分区,�并镜��音效资�校验 | +| Host tests | PASS — 全部 818 个选择项���/截断包�跨分区边界�确定性打包 CRC�现有仓库和主机门��四套�色渲染�100 次语音/木鱼 UI 切� | +| Device tests | PASS — 1.8.0 分段安装�五张工牌存储�字节一致�正常�动并识别两款游��当�工牌和 Wi-Fi �置�留,Wi-Fi 已连接 | +| Unverified | 实体按键�实际播放�音质�设备解�任务栈余����进出游��长时间�行 | + +相�的定点解�器在主机上�功解�全部 138,458 个包,共 44,306,560 个采样。实际 LVGL 9.5.0 在 40 KB 内存池中渲染,峰值�用 20,448 字节;100 次语音/木鱼 UI 切��剩余 17,072 字节,测试�为 16,944 字节。这验� UI 分�行为,�代表 ESP32 全部堆内存或实机音频时�。WSL 执行��门�,Windows 原生执行对应的编译��并�校验;未声称�行过�次 POSIX 完整门�。 + +### 旧版尾部残留 + +部分旧设备在未使用的应用尾部有历�残留字节。默认安装会拒�覆盖。核对�有备份�,�以为已知的 1.7.1 工牌加入 `--reuse-unused-tail`;工具�强制核对旧分区布局�程�版本标记�段长度�校验和� SHA-256,并确认程�完全�于新音效区域之�。未知应用或越界/��镜�会被拒�。此次�移已确认旧程�为 1,511,664 字节,结�于 0x1810F0;两段音效区�在当�程��工牌存储之外。 + +### 本机安装结果 + +应用 1,750,832 字节,�并镜� 8,192,000 字节。五段写入�通过设备哈希校验。整机�有备份完���次校验旧程��分区表�工牌存档与备份一致,�进行分段写入。写入�回读两段工牌分区,全部字节��一致。�动报告两款游�,按键�电��存储�始化正常,资料� USB �务�返回 ESP_OK。USB 回读五张工牌�当�显示和 Wi-Fi �置与安装�一致,Wi-Fi 已连接。最�已关闭串�。 + +�并镜� SHA-256:`5daff14195cb9c16249ca8a9eedcc0d6adbef0f9280b0ba9192406c800f06fc7`。 + +## 2.1.0 共用编解�库 + +音效钥匙扣和�智现在共用�鑫 `esp_audio_codec` 的 Opus 解�器。音效数��包长度�制�音��存方�����。原 libopus 解�器�留给离线工具,���与固件链接。详�[�智验�说明](xiaozhi.zh_CN.md)。 diff --git a/docs/voice-pruning.md b/docs/voice-pruning.md new file mode 100644 index 0000000..a867e26 --- /dev/null +++ b/docs/voice-pruning.md @@ -0,0 +1,45 @@ +

简体中文 · English

+ +## Current selection — 2.6.18 + +The user retained review IDs 4, 7, 8, 14, 19, 24, 25 and 29 from the 39 long-clip listening previews. Only the other 31 reviewed clips were removed; all shorter clips remain. The library now has 24 packs and 695 clips, totaling 3,293,101 audio bytes. This saves 977,379 bytes and leaves 1,028,179 bytes in the existing voice partitions after the 4,096-byte header. Partition offsets and capacities are unchanged; these savings do not enlarge the application partition. `assets/audio/voice-keychain/long-selection.json` records the decision and original hashes. Every retained resource is byte-identical. The previous source bundle and firmware/resource images were backed up outside the release. Update both voice images and the application together, with user partitions preserved. The following 1.9.1 section is historical. + +# Audio selection — 1.9.1 + +The user approved keeping one representative in each of the 46 reviewed similar-title groups. Prefer the unnumbered base title, otherwise the lowest numeric suffix; semantic groups use the explicit representative in `assets/audio/voice-keychain/selection.json`. No acoustic-equivalence or sound-quality claim is made. The 92 removed recordings and original catalog are privately backed up outside the deliverables. All retained recordings are byte-identical, without re-encoding. Pack order and source file paths remain stable; clip counts and generated offsets are rebuilt. + +- Before: 24 packs, 818 clips, 4,904,252 audio bytes. +- After: 24 packs, 726 clips, 4,270,480 audio bytes. +- Saved: 633,772 bytes (618.918 KiB). +- App image: 1,751,616 bytes; app capacity: 2,883,584 bytes (2.75 MiB). +- App space remaining: 1,131,968 bytes (1.080 MiB). +- Voice capacity: 4,456,448 bytes (4.25 MiB), including a 4,096-byte header; remaining padding: 181,872 bytes (177.609 KiB). + +## Layout and update + +| Partition | Offset | Size | +| --- | --- | --- | +| nvs | 0x9000 | 0x6000 | +| phy_init | 0xF000 | 0x1000 | +| factory | 0x10000 | 0x2C0000 | +| voice_data | 0x2D0000 | 0x3C0000 | +| badge_slots | 0x690000 | 0xC0000 | +| voice_tail | 0x750000 | 0x80000 | +| badge_user | 0x7D0000 | 0x30000 | + +The application gains 768 KiB by combining savings with existing voice padding. NVS, PHY and all five profile banks retain their addresses and sizes. The resource reader uses generated partition sizes; UI counts come from the generated catalog. The display font is regenerated from retained titles. + +The merged image remains 8,192,000 bytes because it retains the same highest resource address and fills address gaps. Its size is not a measure of occupied program space. Never use it for an update that must preserve user data. + +Use `python tools/flash_badge.py --port COM6 --backup-dir /private/new-directory` after building. It verifies the new images, backs up all 8 MiB, accepts recognized 1.8/1.9 or 1.9.1 layouts, writes the five segments, then reads both profile regions back byte for byte. An application-only flash is insufficient because both voice data and its mapping changed. The original 1.7.1 migration remains subject to its existing validation. + +## Validation + +- Build: PASS — native ESP-IDF 5.5.3 build, all five image mappings and both voice CRCs verified. +- Host tests: PASS — complete static gate and three configuration-page Node suites; all 726 clips decoded (119,735 packets / 38,315,200 samples). Actual LVGL renders show the updated count. 100 voice/Muyu/return-menu cycles: 17,000 free bytes vs 16,984 before, peak 22,680 bytes in a 40 KiB UI pool. +- Device tests: PASS — full private 8 MiB backup; five segments written with device hash verification; both profile regions read back byte-for-byte unchanged. Post-boot USB readback confirms all five profiles, active badge and saved Wi-Fi settings unchanged, and Wi-Fi connected. Serial port released. The boot-log capture missed early startup lines; successful post-boot protocol responses establish that the application is running. +- Unverified: physical button/audio quality acceptance. No acoustic comparison was used to select representatives. + +The static gate used WSL; firmware build/merge/verification used native Windows ESP-IDF. This is not a single POSIX full-gate invocation. + +2.6.19 subsequently reallocates 896 KiB of the reclaimed voice capacity to the application. Voice capacity becomes 3.25 MiB with 110,675 bytes free; payload and clip selection stay unchanged. The table above belongs to the historical 1.9.1 release. The current layout is in [firmware layout](development/engineering/firmware-layout.md). diff --git a/docs/voice-pruning.zh_CN.md b/docs/voice-pruning.zh_CN.md new file mode 100644 index 0000000..40cb5ea --- /dev/null +++ b/docs/voice-pruning.zh_CN.md @@ -0,0 +1,45 @@ +

简体中文 · English

+ +## 当�音效选择 — 2.6.18 + +用户从 39 段长音效试�中�留编� 04�07�08�14�19�24�25�29,仅删除其余 31 段;较短音效全部�留。当�共 24 类�695 段,音频数� 3,293,101 字节,�少 977,379 字节;扣除 4,096 字节头部�,现有音效分区空余 1,028,179 字节。本次分区地�和容���,因此释放空间�会自动增加应用分区。`assets/audio/voice-keychain/long-selection.json` �存本次选择�原文件哈希,所有�留资��字节��。旧版��资�包和固件/资�镜�已在�布目录之外备份。�级必须�时更新两份音效镜��程�,并�留用户数�分区。下方 1.9.1 内容为历�记录。 + +# 音效精简 — 1.9.1 + +按用户确认的 46 组相似标题,�组�留一段。优先无编�基础版,�则�最�数字编�;近义标题采用 `assets/audio/voice-keychain/selection.json` 中明确记录的代表版本。未作声学等价或音质优劣判断。移除的 92 段�原始索引已备份在交付目录之外。�留音效字节完全一致,未�新编�。分类顺�和资�路径��稳定,分类数��生�的资��移�新计算。 + +- 精简�:24 类,818 段,音效 4,904,252 字节。 +- 精简�:24 类,726 段,音效 4,270,480 字节。 +- 实际�少:633,772 字节(618.918 KiB)。 +- 主程�:1,751,616 字节;程�分区:2,883,584 字节(2.75 MiB)。 +- 程�剩余:1,131,968 字节(1.080 MiB)。 +- 音效分区:4,456,448 字节(4.25 MiB),� 4,096 字节头部;剩余填充 181,872 字节(177.609 KiB)。 + +## 分区和安装 + +| 分区 | 起始地� | 大� | +| --- | --- | --- | +| nvs | 0x9000 | 0x6000 | +| phy_init | 0xF000 | 0x1000 | +| factory | 0x10000 | 0x2C0000 | +| voice_data | 0x2D0000 | 0x3C0000 | +| badge_slots | 0x690000 | 0xC0000 | +| voice_tail | 0x750000 | 0x80000 | +| badge_user | 0x7D0000 | 0x30000 | + +结�删��与音效分区原有填充,程�分区增加 768 KiB。NVS�PHY 和 5 张工牌的存储地�与容���。音频读�采用生�的分区容�,界�数�从生�目录获得;按�留标题�新生�字体。 + +�并镜��为 8,192,000 字节,因为最�一段资�地���,镜��需填充中间地�空隙;文件长度�代表程�已用空间。�留资料�级�能使用�并镜�。 + +编译��行 `python tools/flash_badge.py --port COM6 --backup-dir /private/new-directory`。工具验�镜�,备份全部 8 MiB,识别既有 1.8/1.9 或 1.9.1 分区,分段写入 5 个镜�,最��字节核对两处工牌存储区。这次音效内容和映射都已�更,�能仅烧录主程�。原有 1.7.1 �移�须通过既有校验。 + +## 验� + +- Build:PASS — 原生 ESP-IDF 5.5.3 编译�五段镜�映射�两段音效 CRC 验�通过。 +- Host tests:PASS — 完整��门�和�置页 3 组 Node 测试通过;726 段全部解�(119,735 个包 / 38,315,200 个采样)。实际 LVGL 渲染显示更新�的数�。100 次语音/木鱼/返回弹层循环� UI 空闲 17,000 字节,循环� 16,984 字节;40 KiB UI 内存池峰值 22,680 字节。 +- Device tests:PASS — 已�有备份完整 8 MiB;五段写入通过设备哈希校验;两处工牌区域回读�字节一致。�动�的 USB 读�确认 5 张工牌�当�工牌与已�存的 Wi-Fi 设置��,Wi-Fi 已连接,串�已释放。日志�获未收录早期�动行;�动�的�议�应确认应用已�行。 +- Unverified:实体按键�声音效果验收;代表版本未�过声学比对。 + +��门�在 WSL 执行,固件编译��并和验�使用原生 Windows ESP-IDF;没有声称�次执行了 POSIX 全�门�。 + +2.6.19 ��按用户�求将回收的 896 KiB 划给应用。音效容��为 3.25 MiB,剩余 110,675 字节;音频内容与选择���。上方表格属于历� 1.9.1 版本,当�布局�[分区说明](development/engineering/firmware-layout.zh_CN.md)。 diff --git a/docs/xiaozhi-background.md b/docs/xiaozhi-background.md new file mode 100644 index 0000000..5dec6a4 --- /dev/null +++ b/docs/xiaozhi-background.md @@ -0,0 +1,136 @@ +

简体中文 · English

+ +# Xiaozhi AI background wake + +Version 2.6.1 targets ESP32-C3, 8 MiB Flash, no PSRAM. Xiaozhi moves from Mini Apps +to **Settings → Xiaozhi AI**. Home long-UP still starts conversation. + +## Controls + +- Start conversation automatically connects using the existing half-duplex UI. +- Background wake persists in `xiaozhi/wake_enabled`, initially off. Disabling + waits for the microphone worker to stop before completing. +- Reply volume reuses `xiaozhi/volume`, including mute; other app volumes stay independent. +- Wake phrase/status shows the actual model phrase. The bundled model recognizes + Ni Hao Xiao Zhi. It is not an editable display alias. +- Wi-Fi, hotspot, brightness, profiles and theme remain shared system settings. + +## Lifecycle and boundaries + +On quiet Home/settings/QR pages, enabled detection records locally without +uploading ambient audio. Detection releases its model and PCM memory, wakes the +display, then starts cloud conversation. Wait for the listening indication before +speaking the command: capture during connection is not retained. Account binding +still requires the user when the cloud service requests activation. + +With background wake enabled, only paused or normally ended sessions return to +the origin page after 60 idle seconds. Active listening is never closed based on +low PCM energy. Errors remain visible for retry; manual exit resumes local waiting. +See [stability changes](firmware-optimization.md) for classified faults and bounded recovery. + +The navigation task serializes audio ownership. It joins the detector before any +mini app, conversation or reminder starts, then joins that audio owner before +restarting detection. Wooden fish and radio pause detection for their entire +lifetime. Since 2.6.3 the idle soundboard releases its player and resumes detection; +queued or playing clips pause it again. A 750 ms guard reduces playback-tail triggers. +There is no wake during radio playback, echo cancellation or spoken interruption +of replies in this release. + +The existing 13 tool names are unchanged; 2.6.3 adds a random-sound tool. Authorization uses a live AI +session, not a mini-app index. Navigation tools, including badge/QR changes, +still end the cloud session after the deferred action is committed. Local waiting +can resume afterward; retaining cloud conversation across hidden pages is not +implemented. Stale commands are not replayed on re-entry. + +## Screen sleep and power + +After 60 idle seconds in local wake, the backlight is zero, the panel sleeps and +LVGL stops. Microphone RX and inference continue with CPU performance and +no-light-sleep locks held. This mode cannot also stop the codec or run at 40 MHz. +Disabling background wake releases its audio resources and restores the prior +policy. Actual standby current and battery duration require instrument measurement. + +## Models and customization + +ESP-SR is pinned to **2.1.3**. Direct WakeNet9s receives 16 kHz mono signed 16-bit +PCM, 512 samples per frame. The packaged bundled model is **125,946 bytes**. +Partitions and all 726 sound clips are preserved. + +A custom phrase requires a trained **WakeNet9s / ESP32-C3 / ESP-SR 2.1.3** compatible +model. Text editing does not change recognition. See [model import](../assets/xiaozhi/wake/README.md) +for build-time replacement. This is not a browser text setting, runtime upload or +model trainer. The requested phrase remains unspecified; no external training +request or paid order has been submitted. + +The exact bundled weights use normal mode with threshold 0.67. Other models keep +their normal-mode default until separately calibrated. Metadata/size checks do +not prove neural compatibility; use trusted compatible assets and test on-device. + +## Validation scope + +The standalone detector measured approximately 28,448 bytes of runtime allocation +and 10.9 ms inference per 32 ms frame, excluding the rest of the application. +Seven fixed synthetic samples were decoded on the actual device. Three positive +voices and four negative phrases passed at 0.67. Lower thresholds falsely accepted +a similar phrase; 0.70 missed positives. This small set is a regression check, +not population accuracy or a false-trigger-rate measurement. + +The opt-in `BADGE_WAKE_DEVICE_PROBE` checks real microphone frames, screen-off RX, +synthetic wake navigation/brightness, mini-app exclusion/resume, toggle persistence, +unchanged volume and repeated teardown. Cloud auto-connect is suppressed in that +build. It does not validate acoustic wake-to-cloud latency. Release builds must +disable all probes. + +Host tests cover navigation, returns, volume bounds, model-byte preservation and +invalid metadata rejection. Native LVGL checks use the configured 32 KiB pool. +Actual microphone recognition across speakers/noise, custom models, standby current +and end-to-end wake conversation remain user/device acceptance work. + +## Primary references + +- [WakeNet support](https://docs.espressif.com/projects/esp-sr/en/latest/esp32/wake_word_engine/README.html) +- [Direct WakeNet example](https://github.com/espressif/esp-skainet/tree/master/examples/wake_word_detection) +- [Custom model process](https://docs.espressif.com/projects/esp-sr/en/latest/esp32s3/wake_word_engine/ESP_Wake_Words_Customization.html) + +## 2.6.42 startup recovery and resource handoff + +Code review found that a detector exiting because of its memory gate or a +microphone error left the running flag and error state latched, preventing +future ticks from restarting it. The updated owner joins the completed task, +synchronously frees its 8 KiB stack, and retries after three seconds. Semaphore +and task creation failures use the same backoff without changing the saved +wake preference. + +Before task creation, if free memory is below 64 KiB or the largest contiguous +block is below 40 KiB, navigation releases the idle cloud transport. Existing +reuse remains available without memory pressure. The detector still requires +48 KiB free and a 32 KiB largest block; model admission thresholds are not +lowered. New logs report the preference, memory gate, microphone failure and +detection without exposing microphone recordings. The bundled wake phrase +remains Ni Hao Xiao Zhi and its detection threshold is unchanged. + +Host tests run the actual lifecycle against memory-gate, task-creation and +microphone-read failures, plus disable/join transitions, checking automatic +retry, resource recovery and preference preservation. + +Device lifecycle checks passed: automatic recovery after one injected startup +failure, increasing real microphone frame counts, continued capture after 60 +seconds of screen-off waiting, and restored brightness/navigation after an +injected trigger. Three sound-library playback/wake handoffs passed, and listening +resumed after leaving each of the four mini apps. All five enable/disable cycles +returned to 116,312 free bytes. Heap comparison waits for geolocation to finish +and pauses new requests to exclude its temporary network allocations; the first +unisolated check stopped and was rerun. These injected triggers do not establish +real spoken wake-word recognition. + +A separate cloud regression completed five synthetic-voice turns with 303/303 +audio packets decoded, a 22-second listening interval, and recovery from one +injected disconnect. The codec arena was allocated once; local listening resumed +after exit with volume preserved. The test uploaded no microphone recordings. +All probes are disabled in the production firmware. + +After installing production 2.6.42, the user spoke the bundled wake phrase on +the home screen and confirmed wake-up and a normal reply. Serial diagnostics +recorded a real Wake detected event followed by Voice wake AI start: ESP_OK, +without a crash or allocation error. This single-user acceptance does not +measure recognition rates across speakers or noise conditions. diff --git a/docs/xiaozhi-background.zh_CN.md b/docs/xiaozhi-background.zh_CN.md new file mode 100644 index 0000000..0e7e69b --- /dev/null +++ b/docs/xiaozhi-background.zh_CN.md @@ -0,0 +1,80 @@ +

简体中文 · English

+ +# �智 AI ��唤醒 + +2.6.1,ESP32-C3�8 MiB Flash�无 PSRAM。�智从“�程��移至 **设置 → �智 AI**;首页长按上键��开始对�。 + +## 设置 + +- 开始对�:自动连接,沿用现有��工界�。 +- ��唤醒:`xiaozhi/wake_enabled` �存开关,首次默认关闭。关闭时等待麦克风线程�止�完�。 +- 回�音�:共用已有 `xiaozhi/volume`,支��音,仅调整�智,其他程�音�独立。 +- 唤醒�与状�:显示模型实际识别的�。内置识别「你好�智�,�是�编辑的显示别�。 +- Wi-Fi�热点�亮度�资料和主题继续使用系统设置。 + +## �行�程与边界 + +在首页�设置�二维�等无音频�用页�,本地检测麦克风,�上传环境录音。识别�功�释放模型与 PCM 内存�唤醒�幕,�开始云端对�。需�等显示����说指令,��留连接期间录音;云端�求激活时�需用户绑定。 + +��开�时,仅暂�或正常结�的会�闲置 60 秒�返回��页�。活跃����因低音�而退出,错误�示�留供�试;手动退出也��本地等待。断开分类与�次�连�[稳定性优化](firmware-optimization.zh_CN.md)。 + +导航任务串行交接音频:�动任何�程��对�或�醒�等待检测器�止,原音频使用者�止����检测。木鱼与电��行期间暂�唤醒;2.6.3 起音效库空闲时释放播放器并��唤醒,排队或播放音效时暂�;��检测有 750 ms 尾音�护。本版�支�播放电�时唤醒�回声消除或回答中语音抢�。 + +原有 13 个工具方法�称��,2.6.3 新增�机音效方法,授���改为有效�智会�,而��程�索引。切�工牌�显示二维�等导航方法�交延迟�作��会结�云端会�,之�����等待;尚未实现跨��页��留云端会�。�新进入�会�放过期命令。 + +## ��与功耗 + +本地等待空闲 60 秒�,背光归零��幕休眠�LVGL �止;麦克风 RX 与识别继续,�有 CPU 性能�和�止轻�眠�。因此�能�时�用音频芯片或�到 40 MHz。关闭��唤醒�释放其音频资�,��原有策略。实际待机电��续航需�仪器测�。 + +## 模型与自定义 + +固定 **ESP-SR 2.1.3**,直接调用 WakeNet9s,16 kHz��声��有符� 16 � PCM,�帧 512 采样。内置打包模型 **125,946 字节**,�留全部分区� 726 段音效。 + +自定义�需�真正训练好的 **WakeNet9s / ESP32-C3 / ESP-SR 2.1.3** 兼容模型,改文字�能改�识别结果。按照[模型导入说明](../assets/xiaozhi/wake/README.zh_CN.md)在编译时替�;这�是网页文字设置��行时上传或模型训练器。目�具体唤醒�待用户�供,未�交外部训练请求或付费订�。 + +仅内置原始��使用正常模��0.67 门槛;其他模型�留正常模�默认门槛,需独立标定。元数��体积检查�能�明神�网络兼容性,应使用�信兼容资产并在设备上测试。 + +## 验�范围 + +独立检测器测得�行时分�约 28,448 字节,� 32 ms 音频帧推�约 10.9 ms,�包括完整应用。7 段固定��语音在实际设备上解�,0.67 下三�声音正例�四个�例符�预期;较低门槛误识别过相似�,0.70 �识别正例。�样本仅用于回归,�代表人群准确率或误唤醒率。 + +�选 `BADGE_WAKE_DEVICE_PROBE` 检查真实麦克风帧��� RX�模拟唤醒�的页�与亮度��程�互斥与���开关�存�音������释放模型。测试�止自动连接云端,�能验�声学唤醒到云端的延迟;�布固件必须关闭全部测试开关。 + +主机测试覆盖导航�返回�音�边界�模型字节�留与错误元数�拒�;原生 LVGL 使用�置的 32 KiB 内存池。��说�人�噪声下真实麦克风识别�自定义模型�待机电�以�完整唤醒对��需用户�设备验收。 + +## 官方�考 + +- [WakeNet 芯片支�](https://docs.espressif.com/projects/esp-sr/en/latest/esp32/wake_word_engine/README.html) +- [直接调用 WakeNet 示例](https://github.com/espressif/esp-skainet/tree/master/examples/wake_word_detection) +- [自定义模型�程](https://docs.espressif.com/projects/esp-sr/en/latest/esp32s3/wake_word_engine/ESP_Wake_Words_Customization.html) + +## 2.6.42 �动失败��与资�交接 + +代�审计�现:唤醒 worker 因内存门槛或麦克风错误退出�,原逻辑��留 +running 标记并�定错误状�,�续 tick ���动它。当�版本自动加入已退出 +任务��步释放其 8 KiB 栈,并在三秒��试。信��或任务创建失败也使用 +相�退�,�更改用户�存的唤醒开关。 + +创建检测任务�,若总空闲内存少于 64 KiB 或最大连续�少于 40 KiB, +导航线程先释放闲置的�智云连接。没有内存压力时�留现有�用策略。 +检测线程��求至少 48 KiB 总空闲和 32 KiB 连续�,��低模型门槛。 +新增开关�内存门槛�麦克风失败和识别触�日志,�输出麦克风录音。 +实际模型唤醒���为“你好�智�,阈值��。 + +主机测试�行真实生命周期代�,模拟内存门槛失败�任务创建失败�麦克风 +读�失败��用时的任务交接,确认自动�试�资�回收和设置�留。 + +本轮设备生命周期测试通过:注入一次�动失败�自动���真实麦克风帧�续 +增长��� 60 秒�继续采集�模拟触����亮度并进入对�;音效库播放与 +唤醒交接连续三轮�功,四个�程�退出����监�。五轮开关�空闲内存 +�次�回到 116,312 字节。内存比较在定�请求结��暂�新请求�进行, +��把定��网的临时内存误判为泄�;首次未隔离的检查因此中止并�测。 +这些触�由诊断代�注入,�等�于真人说唤醒�的声学识别验收。 + +云端回归�完�五轮��语音对�,303/303 音频包解��功,22 秒�续 +��与一次注入断线��通过。编解�区仅分�一次;退出��新进入本地 +监�,音�����。测试未上传麦克风录音,正�固件关闭全部探针。 + +正� 2.6.42 安装�,用户在首页实际说“你好�智�,确认唤醒并正常回�; +串��时记录真实 Wake detected 与 Voice wake AI start: ESP_OK,未出现 +崩溃或内存分�错误。本次�人验收�代表��人声�噪声环境的识别率。 diff --git a/docs/xiaozhi.md b/docs/xiaozhi.md new file mode 100644 index 0000000..9f2123f --- /dev/null +++ b/docs/xiaozhi.md @@ -0,0 +1,546 @@ +

简体中文 · English

+ +# XiaoZhi mini app + +Version 2.1.0 integrates the voice conversation protocol from +[Folo AI Passport XiaoZhi](https://github.com/FoloToy/folo-ai-passport-xiaozhi), +commit `d24fce080d86d7cc642f71585f6efde40fb99104` (upstream XiaoZhi 2.4.2). +The MIT license and upstream notice are retained in `assets/xiaozhi/`. + +## Current navigation in 2.6.0 + +Use **Settings → Xiaozhi AI**, removed from Mini Apps. Start conversation connects +automatically; Home long-UP remains available. Reply volume reuses the same saved +value. Optional local background wake and custom trained-model import are described +in [background wake](xiaozhi-background.md). Older version sections below describe +their original behavior; the current entry and local-wake support supersede them. + +## Shared settings and controls + +Open the employee terminal, choose Mini Apps, then XiaoZhi. The badge owns +Wi-Fi, hotspot onboarding, brightness, identity profiles, theme and navigation. +There is no imported XiaoZhi settings page or independent Wi-Fi manager. +The exact home header displays AI Passport, Wi-Fi and battery percentage. + +- Press OK to connect. If activation is needed, open `xiaozhi.me`, sign in to + the console and add the device using the code displayed on the badge. + After binding, press OK to retry. +- In 2.1.3, OK connects and begins continuous conversation. The server's `auto` + listening mode detects the end of speech; no send button is required. After + the reply queue drains, the badge automatically opens the next listening turn. +- OK while listening pauses conversation; OK again resumes. OK during a reply + aborts it and opens a new listening turn after a short echo/tail guard. + A recording still has a 30-second safety limit. +- UP/DOWN adjusts output volume by 10. Version 2.1.4 remembers XiaoZhi volume + across re-entry and reboot, including mute at zero. It still uses the shared + audio hardware without a separate settings page. +- Long OK uses the system Previous / Home / Continue chooser. +- Exiting closes the network connection and frees the audio resources. + Microphone upload begins after the user starts conversation and continues on + automatically reopened listening turns until paused, disconnected or exited. + +The integration uses continuous, half-duplex conversation after explicit start. +It listens between replies; interrupting speech playback uses OK, without +full-duplex voice barge-in or a local wake-word model. Standalone OTA, additional board +drivers and the upstream settings UI are excluded from this mini app. The +discovery endpoint supplies service/activation data only; its firmware download +instructions are never executed. Cloud conversation requires an account bound +by the user and a reachable XiaoZhi service. + +## Immersive conversation and remembered volume in 2.1.4 + +A central voice instrument, listening/thinking/speaking state and unboxed caption +stage replace stacked chat cards. The current badge palette and shared header +remain in use. Actual captured/decoded PCM energy drives the instrument, with +only a 41 by 35 pixel region invalidated. Unchanged screens do not redraw and +there is no perpetual animation timer. + +Captions wrap into four visible lines. Thinking focuses recognized input; +speaking focuses the current reply. Long captions page every four seconds with +one overlapping line. While listening or paused, reaching the final page swaps +to the other side of the conversation. New captions start at their first page; +connection errors and activation instructions take priority over old captions. +Storage remains bounded to the latest input (255 UTF-8 bytes) and current reply +sentence (511 bytes), rather than an unlimited conversation history. + +Volume keys enqueue an atomic request; the audio worker applies it even while +idle. The existing `xiaozhi` NVS namespace stores `volume` in 0..100, including +mute. Without a saved preference, it inherits the shared hardware value. Writes +coalesce for one second and run without active audio, or after a reply drains; +exit flushes the latest value. Failed writes remain dirty and retry after three +seconds, with an error log. No flash writes occur during playback. Abrupt power +loss before a pending write commits can lose that latest change. + +## Implementation + +### Standby in 2.1.1 + +The standby policy is scoped to XiaoZhi; shared badge settings stay authoritative. + +| Item | Behavior | +| --- | --- | +| Screen | After 60 seconds without input or an active conversation: backlight 0, ST7789 Sleep In, LVGL tick timer stopped and LVGL task suspended. | +| CPU | ESP-IDF automatic power management, maximum 160 MHz / minimum 40 MHz, tickless idle and automatic light sleep while the screen is asleep. Active pages retain performance locks. | +| Wi-Fi | Station listen interval 20. XiaoZhi idle uses MAX modem sleep; connecting, recording and answering use NONE. Leaving restores the shared MIN policy. | +| Buttons | Shared scan period 50 ms, one scan for debounce. The entire first wake gesture is consumed, including delayed clicks and long presses. | +| Audio | 15 seconds without recording/playback suspends ES8311 and stops I2S TX/RX, including microphone input. Screen wake restores the prior format, microphone gain and shared volume; the next audio operation retries restoration if needed. | +| Background work | Screen-off skips status/battery/profile UI refresh and XiaoZhi drawing. USB idle polling drops to once per second. No periodic heap report is added. | +| Wake | Restore panel, LVGL task/timer and saved brightness; zero brightness falls back to 80%. Exit restores the display before the page can be deleted. | + +`lvgl_port_stop()` alone is insufficient with the pinned LVGL release: the +disabled timer handler returns a 1 ms delay. The BSP holds the LVGL lock and +suspends the captured LVGL worker as well; resume occurs under the same lock. +Codec suspend failures remain retryable instead of being reported as asleep. + +The board has `BSP_I2S_PA_CTRL=-1`, so there is no MCU-controlled amplifier power +switch. Codec standby is supported; cutting amplifier supply power is not. +USB attachment holds the ESP-IDF no-light-sleep lock to preserve serial setup +and flashing. Battery-only operation is required for automatic light-sleep +and current measurements. An active setup hotspot can also limit Wi-Fi savings. +Listen interval 20 can add roughly 2–3 seconds of idle-message latency depending +on the access point; it is not an end-to-end latency guarantee. The requested +4–6 mA saving requires a current-meter measurement. See +[Espressif's Wi-Fi low-power guide](https://docs.espressif.com/projects/esp-idf/en/latest/esp32c3/api-guides/low-power-mode/low-power-mode-wifi.html). + +### Protocol and memory + +`xiaozhi_app.cc` adapts the upstream discovery, WebSocket v1/v2/v3 and MQTT/UDP +protocols. UDP audio uses AES-CTR and rejects old sequence numbers. TLS uses +the ESP-IDF certificate bundle. Remote packet lengths, message assembly, +session identifiers and service addresses are bounded. An unsupported +fragmented WebSocket message closes the connection for an explicit retry. +Since 2.4.9, MCP exposes device status, mini-app launch, sound search/playback, +QR display, badge switching and the existing brightness setting. See +[device control](assistant-control.md) for schemas, lifecycle handling and +validation. It cannot replace firmware; app switches end the conversation. + +One worker owns network, NVS and audio. Buttons update atomics. MQTT callbacks +only assemble bounded control messages into a bounded queue. UI access holds +the LVGL lock. Stop waits for producers to exit; a timeout retains the page. +Opus encoder and decoder are initialized alternately in one preallocated work +area on the no-PSRAM C3. Version 2.1.3 reserves this area before MQTT/TLS opens +and uses the standard in-place Opus APIs exported by the existing +`esp_audio_codec` library; no second codec implementation is linked. +The voice worker reserves 28 KiB of stack for SILK encoding. The UI pool is +32 KiB; all existing page/return-overlay lifecycle tests run with that same +limit. TLS allocates I/O buffers dynamically. Certificate verification and 16 KiB +incoming records are retained; outgoing fragments use 2 KiB, enough for the +bounded MQTT controls and 1,516-byte WebSocket audio frames. +Wi-Fi uses the upstream C3 receive budget (3 static / 6 dynamic buffers and +a 3-frame BA window), dynamic management buffers and flash-resident RX code. +This recovers internal RAM without introducing another network manager. +Voice Keychain shares `esp_audio_codec` 2.5.0; the reference libopus sources are +kept for offline tools but excluded from the device link to avoid duplicate +Opus symbols. Both applications retain their existing 16 kHz mono audio format. + +`font_xiaozhi_14.c` contains 7,540 ASCII/GB2312 glyphs, generated from Noto Sans +SC at 14 pixels, 1 bit per pixel. The 182,101-byte bitmap stays in flash. Rare +characters outside this character set may use the font's missing-glyph fallback. + +The existing application, voice and five-profile partition addresses are +unchanged. Preserve NVS and profile partitions during an upgrade. A device that +was flashed with another application must have its actual partition table +inspected and incompatible data backed up before installing the badge layout. +Missing profile partitions and failed mappings now return an empty profile +instead of dereferencing an uninitialized bank. + +## Reply playback in 2.1.2 + +Incoming Opus packets enter a 4 KiB variable-length queue, allocated only while +receiving an answer and released before microphone recording. Playback starts +with approximately 180 ms buffered; short answers drain on TTS stop or after +300 ms. Network bursts are drained before blocking I2S writes, and the UDP +mailbox holds 16 packets. TTS completion waits for both the network quiet period +and an empty playback queue so the final syllable is retained. + +The WebSocket receive area is allocated only for WebSocket connections, saving +about 2 KiB with MQTT. The decoder is allocated before the compressed queue to +avoid splitting the large free block required by Opus on the no-PSRAM C3. +The display transfers ten rows per block instead of twenty, freeing another +4,800 heap bytes. The copied UI snapshot uses spare space in the LVGL pool. +These changes preserve a sufficiently large contiguous decoder allocation, +including when the shared hotspot is enabled; total free bytes alone are not +enough to establish that an Opus allocation will succeed. + +The audio worker posts a copied snapshot without waiting for the display lock; +a 100 ms LVGL timer applies the latest snapshot on the UI task. It is removed +on page exit and stops with LVGL during screen sleep. Unchanged backgrounds +are not invalidated. Volume is written to the codec only when it +changes. Active conversation servicing uses a 1 ms loop delay; idle servicing +retains 50 ms. The existing 60-second screen sleep and active-audio Wi-Fi/CPU +performance policy remain in place. Buffering trades a small start delay for +tolerance of network jitter; it cannot conceal an arbitrarily long outage. + +## Validation + +- `tests/test_xiaozhi.c`: URL/header rejection, binary frame bounds, UDP replay + protection, UTF-8 truncation, volume bounds/mute, repeat-key coalescing, + audio-safe persistence, failed-write retry and exit flushing. +- `tests/test_xiaozhi_buffer.c`: Opus duration, prefill, short tails, starvation, + circular-buffer wraparound and non-destructive overflow rejection. +- Adding `BADGE_XIAOZHI_PLAYBACK_PROBE=ON` to the device probe requests a fixed + cloud greeting and checks received/decoded packet counts and write timing. + This probe sends no microphone audio. Disable it in delivered images. +- `tests/test_profile_store.c`: safe reads after missing partitions or mapping + failure, alongside existing five-profile transactional storage tests. +- `tools/render_radio_host.py`: home and all four mini-app headers match pixel + for pixel across four themes, Wi-Fi states and battery values through 100%. + It also checks copied/coalesced UI snapshots and 100 page lifecycle cycles. +- `BADGE_XIAOZHI_DEVICE_PROBE=ON` enables a private bench-only build. Adding + `BADGE_XIAOZHI_VERIFY_ALL_VOICES=ON` decodes every retained voice clip. + The bench tests synthetic PCM encoding/decoding before + checking service discovery. It does not automatically record the microphone. + Both this flag and `BADGE_RADIO_DEVICE_PROBE` must be OFF in delivered images. +- `tests/test_badge_power.c`: 15/60-second boundaries, active-audio exclusion, + timestamp wraparound and complete wake-gesture suppression. +- Adding `BADGE_XIAOZHI_POWER_PROBE=ON` tests real idle deadlines, a frozen LVGL + tick, MAX modem sleep and microphone recovery. It reads short 60 ms microphone + frames into RAM only; no recording is saved or sent to a server. All probe + flags are disabled in the delivered firmware. + +Build/host/device results must be reported separately. A codec test or successful +activation response alone is not acceptance of a real spoken cloud conversation. + +Version 2.1.0 bench measurement on 2026-09-15: with the shared hotspot and 16 kHz audio open, +free heap was 64,108 bytes before the encoder and 39,468 bytes with it allocated. +Thirty synthetic 60 ms frames encoded in an average 23,912 microseconds per +frame; decoding produced the expected 1,920 PCM bytes. The worker retained +3,204 bytes of stack margin and returned to the home page. All 726 retained +voice clips (119,735 packets) decoded successfully with the shared decoder. +These measurements do not include a live cloud connection. + +Version 2.1.1 USB bench acceptance on the same date: PASS for the real 15-second +codec suspend (register readback), 60-second panel standby, frozen LVGL tick, +MAX modem-sleep selection, 50 ms scan configuration, zero-brightness fallback, +three codec/microphone/volume restore cycles, and a full wake gesture followed +by a successful 1,920-byte microphone read and return home. A regression covers +clicks delayed by screen rendering beyond the former 350 ms suppression window. +Battery-only automatic light sleep, actual current savings and access-point +message latency still require unplugged/instrumented measurements. + +Version 2.1.2 final USB/cloud probe on 2026-09-15, with the shared hotspot on: +113 received Opus packets were decoded/written, with no observed UDP sequence +gaps. The maximum interval between one completed PCM write and the next write +was 23,132 microseconds; the compressed queue peaked at 692 bytes. Free heap +was 19,392 bytes after decoder creation and 18,660 bytes at reply completion. +The probe returned home successfully. A prior synchronous-caption trial had +an 84,028-microsecond maximum; the two greetings were not identical audio. +The final host render test passed copied/latest-snapshot behavior, all themes, +ten-row display transfers and 100 lifecycle cycles. These measurements verify +the cloud greeting transport/playback path, not subjective listening quality, +long microphone conversations or adverse-network endurance. + +The opt-in `BADGE_XIAOZHI_CONVERSATION_PROBE` uses a supplied 16 kHz mono +16-bit WAV converted by `tools/make_xiaozhi_probe_pcm.py` into a build-only +header. It runs that fixed input through the real encoder and cloud auto-stop +path for two turns, without reading or uploading microphone audio. The PCM and +probe flag are excluded from production images. + +Version 2.1.3 device acceptance on 2026-09-15: two consecutive automatically +ended turns passed using a fixed locally synthesized Chinese sentence. Both +recognized inputs contained 39 UTF-8 bytes. The replies decoded/wrote 154/154 +and 131/131 packets with no observed UDP sequence gaps; maximum write gaps were +25,635 and 21,063 microseconds. The 24,524-byte shared codec area was allocated +once before TLS. The worker retained 2,856 bytes of stack margin and returned +home (97,976 free heap bytes). Host tests passed multiline input/replies, +whole-line automatic paging, copied UI snapshots, four themes and 100 page +create/destroy cycles. Natural microphone pauses, room noise, acoustic echo and +long conversation endurance remain to be assessed with a human speaker. + +The 2.1.4 opt-in conversation probe also checks idle volume application, NVS +readback, restoration after an MCU restart, and app re-entry after changing the +shared codec cache. It checkpoints `xz_vol_probe/original`, restores the original +volume and erases that test key on success, then runs two fixed cloud speech +turns. These probe paths are excluded from production. Host rendering covers +four themes, eight states, alternating captions, whole-line paging, error +priority, partial redraw and 100 UI lifecycle cycles. + +Final 2.1.4 device acceptance on 2026-09-15 passed idle volume application, +NVS readback, restoration after MCU restart, and re-entry after changing the +shared temporary volume. The test restored the original value. Two fixed speech +turns played 127/127 and 119/119 received packets, with no UDP sequence gaps. +Maximum write intervals were 23,238 and 24,762 microseconds; queue peaks were +697 and 698 bytes. Worker stack margin was 2,824 bytes and return-home succeeded. +An initial 14,208-pixel instrument redraw showed one 95,768-microsecond gap. +The final design retains static outer geometry and updates only the 1,435-pixel +central waveform, verified across all four themes. This uses fixed test speech; +ambient noise, extended natural dialogue and subjective acoustic quality remain +unverified. + +## Simplified conversation screen in 2.1.5 + +The outer dial, English subtitle and repeated footer are removed. A small +voice waveform and brief state leave more room for captions: six visible lines, +with five-line page steps and one overlapping line. Page numbers appear only +for multi-page text. Volume is shown for three seconds after a change. +The shared header, themes, remembered volume, continuous speech and navigation +remain unchanged. The waveform still redraws only 1,435 pixels. + +## Composition refinement in 2.1.6 + +The compact layout now pairs a bold XiaoZhi title on the left with a small +interlocking voice-loop mark on the right. A fine accent rule connects the +header composition to six-line captions. Footer actions align to opposite +edges. No additional text panels or persistent animation are introduced. +Only the 1,435-pixel waveform center redraws with audio energy; the loop mark +uses integer line segments. The shared 28-pixel font adds the two title glyphs. + +## Voice-first field and progressive captions in 2.1.7 + +The voice field occupies the main screen area. Thirteen tapered bars respond +directly to measured input/output PCM energy, without delayed easing, woven +strands or layered glow. It is an audio-reactive visual, not a frequency spectrum +or biometric voiceprint. Only changed 4 by 144 pixel column strips are invalidated +(at most 7,488 pixels per energy update); unchanged energy requires no redraw. +Active audio snapshots are posted at a 50 ms minimum interval, directly after +input measurement and output writes. The UI consumes them every 50 ms while +listening, thinking or speaking, and every 100 ms otherwise. These are scheduling +intervals, not a guaranteed end-to-end latency; PCM framing and task scheduling +still apply. There is no idle animation, and the existing LVGL sleep stop remains. + +Captions use a small two-line viewport. Input appears one complete UTF-8 code +point at a time using a local clock. Reply reveal advances against PCM duration +written to the shared audio output, with an anchor including audio already +queued when the sentence arrives. The service supplies sentence text without +word timestamps: 150 ms per non-ASCII character and 80 ms per ASCII character +are approximate pacing, not exact speech alignment. Audio-clock progress gates +reveal; after playback ends the remaining text finishes on a local clock. +A new sentence replaces the previous source; long text scrolls on whole-line +boundaries to keep the newest two lines visible. It is not a full transcript +history. Volume persistence, explicit start/pause, shared header and sleep +behavior remain in place. UI work stays on LVGL, outside the audio worker. + +`xiaozhi_caption.h` is host tested for multibyte boundaries, elapsed-time gates +and malformed tails. Actual LVGL tests cover stalled PCM clocks, copied +snapshots, gradual input/reply, two-line scroll, theme headers and lifecycle. + +Audio processing uses priority 5, above the shared LVGL task at priority 4. +Blocking I2S reads/writes and the one-millisecond servicing delay yield time +back to rendering. Captions keep a fixed left origin during reveal to avoid +shifting earlier letters as each new character appears. + +Validation: ESP-IDF 5.5.3 production build and merged layout checks passed +(application 2,553,664 / 2,883,584 bytes). The complete static host gate passed. +Actual LVGL rendering on four themes consumed an active snapshot within 50 ms +of simulated time, flushed 7,488 pixels for a changed energy value, and zero for +an unchanged value. UTF-8 reveal, two-line scrolling and 100 lifecycle cycles +per theme passed. On-device fixed-speech testing completed two automatic turns: +149/149 and 155/155 packets played, with no reported UDP sequence loss. +The maximum measured gap between audio writes was 73,992 / 84,449 microseconds; +these results do not establish glitch-free playback. Volume save, reboot restore, +reentry restore and return home passed. Physical sound-to-display latency and +long-session behavior have not been instrumented in this iteration. + +## Caption timing correction in 2.1.8 + +Final recognition now appears in full immediately, using the existing two-line +viewport and whole-line scroll for long input. It no longer types behind a reply. +The UI mailbox preserves a recognition presentation before a coalesced reply on +the next UI tick; errors and canceled/cleared input take precedence. This is one +frame of presentation ordering, not a reading-time pause in the conversation. + +Sentence text is posted immediately rather than waiting for the periodic audio +snapshot. Replies show an opening with a 180 ms reading lead before the first +PCM write. Reveal then uses 90 ms per non-ASCII code point and 40 ms per ASCII +code point, catching up all due characters in a single label update after a slow +frame. A stalled playback clock does not accumulate additional reading lead. +These replace the 2.1.7 rates; they are approximate pacing because the service +provides no word timestamps. Late server text cannot be displayed before it +arrives, and physical output/display alignment is not guaranteed. + +Host checks cover immediate full recognition, recognition/reply mailbox bursts, +pre-audio opening text, multibyte catch-up, stalled playback, two-line scrolling, +shared headers, the 7,488-pixel voice update bound and page lifecycle. + +Validation: ESP-IDF 5.5.3 build and image/layout verification passed (production +application 2,553,936 / 2,883,584 bytes), as did the complete static host gate +and actual LVGL tests. Hardware fixed-speech tests completed 172/172 and 153/153 +packets with no reported UDP sequence loss, automatic listening, volume restore +and return home. Maximum inter-write gaps were 222,531 and 16,472 microseconds; +this run does not prove glitch-free playback or physical subtitle synchronization. + +## Short-lived connection reuse (2.6.4) + +Returning to the badge or settings keeps a healthy MQTT/TLS connection for up to +120 seconds. Audio buffers/codecs, the 28 KiB voice worker, UDP socket and page +are released. Returning starts a fresh server hello/UDP session over the retained +transport; it does not claim to preserve conversation history. MQTT keepalive is +owned by its client task. Hidden messages are discarded, never rendered or +executed as tool calls. WebSocket transports are closed on exit. + +Entering a mini app releases the retained connection first. Disconnection, +low free heap (below 48 KiB) and the idle deadline also release it; cleanup runs +in the navigation task outside the LVGL lock. Wi-Fi remains system-wide. +Validated service configuration is cached only in RAM for ten minutes. A failed +cached connection refreshes discovery once; activation-required results are not +cached. No service credentials are stored in badge profiles or NVS. + +The opt-in `BADGE_XIAOZHI_REUSE_PROBE` exercises real service handshakes, repeated +entries, idle wake coexistence, mini-app release, disconnect and idle expiry. +It disables microphone uploads and must be OFF in distributed firmware. + +Validation on the connected badge: six real server handshakes, including two +retained-transport handshakes (207/477 ms from worker ready to reuse completion), +one mini-app release, one injected MQTT disconnect and the actual 120-second +expiry passed. Discovery ran once; local wake remained listening with roughly +61 KiB free heap while parked. Volume was unchanged. This probe does not validate +acoustic recognition, speech playback after reuse or long-duration server stability. + +## MCP registration ordering and subtitle regression (2.6.5) + +The 2.6.4 session filter incorrectly rejected MQTT MCP `initialize` arriving +before audio `hello`. This prevented tool discovery, including random playback. +Transport-level read-only discovery now accepts `initialize`, `tools/list` and +initialization notifications before hello. Calls, speech and stale session +messages retain their existing gates; hidden pages still discard incoming data. +The navigation owner now deletes a joined voice worker synchronously, so its +28 KiB stack is available immediately when reopening the conversation. + +The subtitle parser and final renderer suppress whole tool-progress markers, +including markers without ellipsis and standalone `%s` / `%s...` placeholders. +Normal percentages and sentences explaining format strings are preserved. + +On-device tests sent four fixed synthetic utterances (no microphone recordings): +cold battery query, reused-connection reminder query, then two random plays. +Both queries called actual tools; reply audio decoded 50/50 and 39/39 packets. +Random clips 196 and 108 reached PCM output on separate tool calls. All four +internal progress captions were omitted. Native LVGL checks verify placeholder +suppression while retaining recognition text and `100%`. These tests do not +measure real-speaker recognition accuracy or long-duration network stability. + +## Current presentation (2.6.9) + +The face replaces the earlier waveform described in the historical sections above. See [expressions and shared clock](face-clock.md) for SVG sources, offline conversion, audio timing and the HH:mm header. + +## 2.6.22 connection readiness and reading handoff + +MCP discovery describes stable tools only. The immutable catalog is emitted as raw JSON instead of allocating a full temporary cJSON tree; the host suite parses the wire result and checks all 16 tools and its size bound. Full reading snapshots are returned by `self.yao.get`, never appended to the tool description. In the initial interpretation turn, an omitted ID returns the exact page-confirmed snapshot; an explicit different ID is rejected. This preserves full names, both hexagrams and all six lines without caching an old reading in the server's tool catalog. + +Tool-registration readiness belongs to the MQTT transport: parking retains it, closing clears it. Each audio conversation still requires a fresh hello and UDP keys. On a fresh connection, capture starts after hello and successful catalog transmission, avoiding capture during discovery. The 24 KB shared codec arena is reserved before the handshake and retained throughout discovery, since freeing it can allow smaller allocations to fragment the only sufficiently large block before the first reply. Missing hello or discovery produces a named handshake timeout. + +Opt-in `BADGE_XIAOZHI_CONNECT_PROBE` exercises six ordinary entries (one retained-connection reuse and repeated fresh discovery) with synthetic silence (no microphone upload). `BADGE_YAO_DEVICE_PROBE` exercises two page-to-AI handoffs using a fixed synthetic request. Both must be disabled in production. See the validation record for measured results; these short tests do not establish long-duration Wi-Fi stability. + +### Reproduced failures and verification + +On the affected board, the old reading-specific catalog was 8,396 bytes and its transmission repeatedly received socket error 104 (connection reset by peer). The exact upstream message-size limit has not been independently established. The new stable catalog is 6,809 bytes. A second failure occurred on first reply playback: total free heap was 54,624 bytes but the largest block was 22,528 bytes, smaller than the 24,524-byte codec arena. Holding that arena alone exposed the serializer's allocation peak, so catalog output now uses immutable raw JSON and one preallocated 8 KB output buffer, with no expanding print buffer. + +The fixed device successfully performed two reading handoffs, including retained-connection reuse. Both `self.yao.get` responses contained full names and six lines for each hexagram. The two playback checks decoded 134,400 and 129,600 samples before the test returned to the same reading. These are bounded playback checks, not a claim that two entire lengthy interpretations were played. The host catalog-construction test runs under a 1 KB temporary-allocation budget and validates the emitted JSON. + +Three ordinary entries also passed eight-second listening checks, including two MQTT connection reuses; only one catalog registration was required. Synthetic silence was uploaded, not microphone recordings. + +### 2.6.37 discovery memory fix + +Device traces reproduced an abort in `std::string::resize(8192)`: the string +requested 8193 bytes while the largest free block was 8192 bytes. Replacing +it with a checked heap allocation prevented that abort but still exposed +`esp-aes: Failed to allocate memory` during catalog transmission. Catalog +serialization therefore borrows 8192 bytes from the existing worker stack in +a non-inlined helper, releases the JSON tree before TLS transmission, and +returns before audio encoding. Ordinary tool replies avoid the additional +throwing string copy. Output overflow is reported as a session failure. + +Location invalidation retains its worker lease until the old HTTP request +finishes, preventing overlapping TLS workers after re-entry or reconnect. XiaoZhi blocks new location requests and waits (up to ten seconds) for active HTTP cleanup before allocating its worker and TLS session; location resumes after XiaoZhi stops. +Release builds reject stale non-size-optimized configurations by default. + +The 2.6.37 device probe passed all six entries: five catalog registrations, +one retained-connection reuse, and eight seconds of stable listening per entry. +It sent 630 synthetic-silence frames and ended with `DONE failed=0`; no +microphone recordings were uploaded. The discovery helper retained at least +16,536 bytes of measured stack headroom in this run. Windows equivalents of +the repository's static and host checks passed. This does not verify lengthy +spoken conversations or USB recovery after screen-off; the probe temporarily +keeps the screen awake without changing the saved timeout. + +### 2.6.39 playback memory reuse + +The decoder and jitter queue now share the existing codec arena. Its size is +`max(encoder_bytes, align8(decoder_bytes) + queue_bytes)`. Only the decoder +and queue coexist; listening reinitializes the same arena as an encoder. +This removes the per-answer queue allocation without reducing its 4096-byte +packet capacity or changing buffering thresholds. Layout tests cover alignment, +integer overflow, future codec sizes, queue wraps and decoder/tail guards. +Memory failures log the allocation stage, requested bytes, total free heap and +largest free block, without recording conversation text or credentials. +The original intermittent error has not yet been reproduced in this run; +a normal reply completed before this change. + +On-device validation completed five synthetic-speech replies (55, 140, 58, 58 +and 58 packets, all decoded), including a 22-second listening pause and one +intentional transport failure followed by recovery. The codec arena remained +24,524 bytes: encoder 24,524, decoder 17,784, queue offset 17,784. Two full +reading handoffs also returned both hexagrams and six lines each, decoded +128,640 and 133,440 samples in bounded playback checks, and returned to the +same reading. No allocation failure occurred in either test. These checks do +not reproduce or conclusively resolve every cause of the reported intermittent +warning; diagnostic stages remain enabled in production for follow-up. + +### 2.6.40 codec reservation lifetime + +The reported failure was reproduced in 2.6.39: `opus_arena` requested 24,524 +bytes with 75,956 bytes free but only a 23,552-byte largest block. Repeated OK +retries failed at the same allocation. The 2.6.39 playback-queue saving did not +address this entry/connection failure. + +Reserve the codec arena before creating the 28 KiB voice task, and keep it +through transport close/retry while that task exists. Transport shutdown now +releases network resources without releasing the codec block. Parking when +leaving the conversation and final session destruction release the block. +The allocation is still dynamic and does not permanently reduce RAM available +to other mini apps. The stability probe additionally asserts that five replies +and an injected reconnect use exactly one successful codec allocation. + +Device stability validation for 2.6.40 completed five synthetic-input replies +and decoded all 322/322 audio packets, including 22 seconds of listening and +one deliberately injected transport failure followed by two more replies. +The codec arena was allocated exactly once, with no allocation failure or +crash; the saved volume was preserved. No microphone recording was uploaded. +Minimum task-stack headroom was 4,616 bytes, so the original 28 KiB stack +remains unchanged instead of trading stack safety for heap space. + +All six re-entry rounds passed as well: one connection reuse and five tool +catalog registrations, 619 synthetic silence frames in total, and eight +seconds of stable listening per round, ending with `DONE failed=0`. Windows +equivalents of the static gates and host tests passed, as did release image +layout/resource checks. Production disables all diagnostic probes and the +app-only upgrade preserves user data. Long-running human conversations and +USB recovery after screen-off are outside this validation; USB recovery +still requires separate investigation. + +### 2.6.41 reading handoff and contiguous-memory pressure + +The user reproduced a reading-to-AI startup failure in 2.6.40: codec allocation +succeeded, but the voice task needed 28,672 bytes with 71,368 bytes free and +only a 27,648-byte largest block. Reserving the codec first did not resolve +the need for two large contiguous allocations. + +The old handoff serialized the full reading into JSON, copied it into launch +storage, and then copied it into the session string. The new handoff owns a +compact `yao_record_t` snapshot containing the question, six lines, result ID, +cast timestamp and location. Startup transfers ownership without copying full +text. When AI queries the pinned reading, immutable text data reconstructs +both full names, judgments and all six lines of each hexagram. Query time is +fresh while cast time remains fixed. The snapshot survives eviction from the +four-entry history cache. The 28 KiB voice task stack is unchanged. + +All six device reading handoffs passed, alternating retained and released +connections. Each returned full text, decoded reply audio, and navigated back +to the same result; 953,280 samples were decoded in total. Each bounded +playback check returns after reaching 128,000 samples; this does not claim +six full long-form readings were played. No allocation failure, session +fault or crash occurred. Host checks cover all 4096 outcomes plus compact +snapshot/JSON equivalence, survival after history eviction, preserved cast +time and refreshed query time. + +Five normal synthetic-input replies also passed with 306/306 packets decoded, +22 seconds of continuous listening, and recovery after one injected transport +failure. The codec arena was allocated once, saved volume was unchanged, and +minimum task-stack headroom was 4,540 bytes. Production disables all probes. +Long-running human conversations and every memory state produced by other +page operations have not been exhaustively validated. + +The production 2.6.41 app-only update was installed and hash-verified while +preserving user data. The user repeated the originally failing path and +confirmed a normal reply. Production logs confirmed snapshot handoff, +connection and playback with no allocation failure. The serial capture was +then stopped and the port released. diff --git a/docs/xiaozhi.zh_CN.md b/docs/xiaozhi.zh_CN.md new file mode 100644 index 0000000..79af3f3 --- /dev/null +++ b/docs/xiaozhi.zh_CN.md @@ -0,0 +1,388 @@ +

简体中文 · English

+ +# å°�智å°�程åº� + +2.1.0 版本集æˆ� [Folo AI Passport XiaoZhi](https://github.com/FoloToy/folo-ai-passport-xiaozhi) +的语音对è¯�å��议,å�‚考æ��交 `d24fce080d86d7cc642f71585f6efde40fb99104`(上游å°�智 2.4.2)。 +MIT 许å�¯è¯�å�Šä¸Šæ¸¸å£°æ˜Žä¿�留在 `assets/xiaozhi/`。 + +## 2.6.0 当å‰�å…¥å�£ + +å°�智已从“å°�程åº�â€�移至 **设置 → å°�智 AI**,选择开始对è¯�自动连接,首页长按上键ä»�å�¯å�¯åŠ¨ã€‚å›žå¤�音é‡�共用原有ä¿�存值。å�¯é€‰å�Žå�°æœ¬åœ°å”¤é†’与自定义训练模型导入è§�[å�Žå�°å”¤é†’](xiaozhi-background.zh_CN.md)。下é�¢æ—§ç‰ˆæœ¬ç« èŠ‚æ��述当时行为,入å�£ä¸Žæœ¬åœ°å”¤é†’能力以本节为准。 + +## 共用设置与æ“�作 + +从员工终端进入“å°�程åº�â€�,选择“å°�智对è¯�â€�。Wi-Fiã€�热点引导ã€�亮度ã€�工牌资料ã€�主题与返回导航å�‡ç”±å·¥ç‰Œç³»ç»Ÿç®¡ç�†ã€‚ +ä¸�引入å°�智独立设置页或第二套 Wi-Fi 管ç�†å™¨ã€‚顶部与首页完全一致,显示 AI Passportã€�Wi-Fi 和电é‡�百分比。 + +- 按 OK 连接。需è¦�激活时,打开 `xiaozhi.me`,登录控制å�°å¹¶ä½¿ç”¨å·¥ç‰Œæ˜¾ç¤ºçš„æ¿€æ´»ç �添加设备;绑定完æˆ�å�ŽæŒ‰ OK é‡�试。 +- 2.1.3 按一次 OK 连接并开始连续对è¯�,使用æœ�务端 `auto` 模å¼�判断说è¯�结æ�Ÿï¼Œæ— éœ€æ‰‹åЍå�‘é€�。回å¤�播放完毕å�Žè‡ªåЍé‡�æ–°å¼€å�¯è�†å�¬ã€‚ +- è�†å�¬æ—¶æŒ‰ OK æš‚å�œï¼Œå†�按 OK 继续;回答时按 OK 打断,ç»�过短暂的回声 / 尾包ä¿�护å�Žé‡�æ–°è�†å�¬ã€‚æ¯�轮录音ä»�有 30 秒上é™�。 +- 上下键æ¯�次调节 10 点输出音é‡�。2.1.4 ä¿�å­˜å°�智上次使用的音é‡�,é‡�新进入和é‡�å�¯å�Žæ�¢å¤�,0 为é�™éŸ³ï¼›ä»�共用工牌的音频硬件,ä¸�增加独立设置页。 +- 长按 OK 使用系统“上一页 / 首页 / ç»§ç»­â€�选择器。 +- 退出时关闭网络连接ã€�释放语音资æº�。用户开始对è¯�å�Žï¼Œè�†å�¬é˜¶æ®µä¼šä¸Šä¼ éº¦å…‹é£ŽéŸ³é¢‘,直到暂å�œã€�断开或退出。 + +当å‰�采用用户å�¯åЍå�Žçš„连续å�Šå�Œå·¥å¯¹è¯�:回å¤�æ—¶å�œæ­¢æ”¶éŸ³ï¼Œå›žå¤�å�Žç»§ç»­è�†å�¬ï¼›æ’­æ”¾æœŸé—´ç”¨ OK 打断,ä¸�æ��供全å�Œå·¥è¯­éŸ³æŠ¢è¯�或本地唤醒è¯�。å°�程åº�ä¸�引入独立 OTA 固件替æ�¢ã€�é¢�外æ�¿çº§é©±åЍå�Šä¸Šæ¸¸è®¾ç½®ç•Œé�¢ã€‚ +æœ�务å�‘现接å�£å�ªç”¨äºŽå�–å¾—æœ�务地å�€å’Œæ¿€æ´»ä¿¡æ�¯ï¼Œè¿”回的固件下载指令ä¸�会执行。云端对è¯�需è¦�用户绑定账å�·ï¼Œä¸”å°�智æœ�务å�¯è¾¾ã€‚ + +## 2.1.4 沉浸å¼�对è¯�与音é‡�记忆 + +对è¯�页采用中心声纹ã€�è�†å�¬ / æ€�考 / 回答状æ€�和无å�¡ç‰‡å­—幕舞å�°ï¼Œæ²¿ç”¨å½“å‰�工牌é…�色与统一顶部。 +声纹由实际收音或解ç �音频的强度驱动,å�ªåˆ·æ–°ä¸­é—´çš„ 41 × 35 åƒ�素区域;é�™æ€�ç”»é�¢ä¸�é‡�绘,ä¸�新增常驻动画。 +字幕æ¯�å±�四行,æ€�考时è�šç„¦è¯†åˆ«åˆ°çš„输入,回答时è�šç„¦å°�智当å‰�回å¤�。 +超出区域时æ¯�四秒按整行翻页,并é‡�å� ä¸€è¡Œï¼›è�†å�¬æˆ–æš‚å�œæœŸé—´ï¼Œç¿»å®Œä¸€æ–¹çš„æ–‡å­—å�Žè½®æ�¢æ˜¾ç¤ºå�¦ä¸€æ–¹ã€‚ +新字幕从第一页显示,连接错误和激活æ��示优先于旧字幕。 +ä¿�留最近输入(最多 255 个 UTF-8 字节)å�Šå½“å‰�回å¤�å�¥å­�(最多 511 字节),ä¸�ä¿�存无é™�历å�²ã€‚ + +音é‡�按键å�ªæ›´æ–°åŽŸå­�请求,音频工作线程å�³ä½¿åœ¨å¾…机也会应用音é‡�。 +使用现有 `xiaozhi` NVS 命å��空间中的 `volume` é”®ä¿�å­˜ 0~100;未ä¿�存时继承共享音频硬件的当å‰�值。 +连续调节å�Žç­‰å¾…一秒,选择无音频工作或一轮播放排空的安全时机æ��交;退出时补存最新值。 +ä¿�存失败ä¿�留待ä¿�存状æ€�ã€�三秒å�Žé‡�试并记录错误。播放中ä¸�写 Flash,é�¿å…�å½±å“�声音连续性。 +ç«‹å�³æ–­ç”µä¸”尚未æ��交的最å�Žä¸€æ¬¡è°ƒæ•´å�¯èƒ½ä¸¢å¤±ï¼›æ­£å¸¸é€€å‡ºå’Œæ��交å�Žçš„é‡�å�¯å�‡å�¯æ�¢å¤�。 + +2.1.3 在建立 MQTT / TLS 连接å‰�预留å�Œä¸€å�—ç¼–è§£ç �工作区,录音和播放时交替åˆ�始化, +调用现有 `esp_audio_codec` 库导出的标准 Opus 原地åˆ�始化接å�£ï¼Œé�¿å…�æ¯�轮分é…�连续内存,ä¸�é¢�外链接å�¦ä¸€ä»½ç¼–è§£ç �器。 + +## 实现说明 + +### 2.1.1 待机策略 + +待机策略作用于å°�智å°�程åº�,ä»�以工牌的共享设置为准。 + +| 项目 | 行为 | +| --- | --- | +| å±�幕 | 无按键ã€�无活跃对è¯� 60 ç§’å�Žï¼šèƒŒå…‰ 0ã€�ST7789 Sleep Inã€�å�œæ­¢ LVGL 心跳定时器并暂å�œ LVGL 任务。 | +| CPU | ESP-IDF 自动电æº�管ç�†ï¼Œæœ€é«˜ 160 MHzã€�最低 40 MHz;开å�¯ tickless idle,æ�¯å±�æ—¶å…�许自动 light sleep。亮å±�页é�¢æŒ�有性能é”�。 | +| Wi-Fi | 站点侦å�¬é—´éš” 20ï¼›å°�智空闲使用 MAX modem sleep,连接ã€�录音ã€�回答时使用 NONE,退出æ�¢å¤�共享的 MIN 策略。 | +| 按键 | 共享扫æ��周期 50 ms,去抖 1 个采样周期;å�žæŽ‰å®Œæ•´çš„首次唤醒手势,包括延迟å�•击和长按。 | +| 音频 | 15 秒无录音/播放å�Žä¼‘眠 ES8311ã€�å�œæ­¢ I2S TX/RX,å�Œæ—¶å…³é—­éº¦å…‹é£Žè¾“入。亮å±�唤醒æ�¢å¤�原采样格å¼�ã€�麦克风增益和共享音é‡�;若æ�¢å¤�失败,下次音频æ“�作会é‡�试。 | +| å�Žå�° | æ�¯å±�跳过状æ€�æ �ã€�电é‡�å�Šèµ„料界é�¢åˆ·æ–°å’Œå°�智绘制;USB 空闲轮询é™�至æ¯�秒一次,ä¸�增加周期性 heap 打å�°ã€‚ | +| 唤醒 | æ�¢å¤�å±�幕ã€�LVGL 任务/定时器与ä¿�存的亮度;亮度为 0 时兜底 80%。退出å‰�å…ˆæ�¢å¤�显示,之å�Žæ‰�å…�许删除页é�¢ã€‚ | + +当å‰�固定版本的 LVGL 在计时器被ç¦�用å�Žï¼Œä¼šè¿”回 1 ms 的轮询间隔,因此仅调用 +`lvgl_port_stop()` ä¸�足以çœ�电。BSP æŒ�有 LVGL é”�å�Žï¼Œå�Œæ—¶æš‚å�œå·²è®°å½•çš„ LVGL 任务, +æ�¢å¤�也在å�Œä¸€æŠŠé”�下完æˆ�。音频休眠失败ä¿�æŒ�å�¯é‡�试,ä¸�误报为休眠æˆ�功。 + +硬件定义为 `BSP_I2S_PA_CTRL=-1`,没有 MCU å�¯æŽ§åˆ¶çš„功放电æº�开关;支æŒ� codec 休眠, +ä¸�能切断功放供电。连接 USB 时,ESP-IDF æŒ�有ç¦�止自动轻ç�¡çœ çš„é”�,以ä¿�留串å�£é…�置和烧录; +自动轻ç�¡çœ å�Šç”µæµ�测é‡�需è¦�使用电池è¿�行。é…�置热点开å�¯æ—¶ä¹Ÿå�¯èƒ½é™�制 Wi-Fi 节能。 +侦å�¬é—´éš” 20 å�¯èƒ½å¢žåŠ çº¦ 2~3 秒空闲消æ�¯å»¶è¿Ÿï¼Œå…·ä½“å�–决于路由器,ä¸�ä¿�è¯�端到端时延。 +4~6 mA 的节电幅度需用电æµ�表测é‡�。å�‚考 +[Espressif Wi-Fi 低功耗说明](https://docs.espressif.com/projects/esp-idf/en/latest/esp32c3/api-guides/low-power-mode/low-power-mode-wifi.html)。 + +### å��议与内存 + +`xiaozhi_app.cc` 适é…�上游æœ�务å�‘现ã€�WebSocket v1/v2/v3 å’Œ MQTT/UDP å��议。 +UDP 音频使用 AES-CTR,并拒ç»�æ—§åº�列å�·ã€‚TLS 使用 ESP-IDF è¯�书包。 +远程音频包ã€�控制消æ�¯ç»„装ã€�会è¯�标识å�Šæœ�务地å�€å�‡æœ‰é•¿åº¦é™�制。 +ä¸�å�—支æŒ�çš„ WebSocket 分片消æ�¯ä¼šå…³é—­è¿žæŽ¥ï¼Œç­‰å¾…明确é‡�试。2.4.9 çš„ MCP 支æŒ�读å�–状æ€�ã€�打开å°�程åº�ã€�æ�œç´¢å’Œæ’­æ”¾éŸ³æ•ˆã€�显示二维ç �ã€�切æ�¢å·¥ç‰Œä¸Žè°ƒæ•´çŽ°æœ‰äº®åº¦è®¾ç½®ã€‚ +接å�£ã€�生命周期与验è¯�è§�[å°�智设备控制](assistant-control.zh_CN.md)。ä¸�能替æ�¢å›ºä»¶ï¼›åˆ‡æ�¢å°�程åº�会结æ�Ÿå¯¹è¯�。 + +å�•个å�Žå�°ä»»åŠ¡è´Ÿè´£ç½‘ç»œã€�NVS 和音频;按键仅更新原å­�å�˜é‡�。 +MQTT 回调å�ªæŠŠæœ‰ç•ŒæŽ§åˆ¶æ¶ˆæ�¯æ”¾å…¥æœ‰ç•Œé˜Ÿåˆ—。UI 访问æŒ�有 LVGL é”�。 +退出先等待生产任务结æ�Ÿï¼Œè¶…æ—¶ä¿�留页é�¢ã€‚针对没有 PSRAM çš„ C3,Opus ç¼–ç �器和解ç �器在å�Œä¸€å·¥ä½œåŒºäº¤æ›¿åˆ�始化。 +语音任务为 SILK ç¼–ç �预留 28 KiB 栈;UI 内存池为 32 KiB,所有已有页é�¢ä¸Žè¿”回浮层的生命周期测试使用相å�Œé™�制。 +TLS 按需分é…�æ”¶å�‘缓冲,ä¿�ç•™è¯�书验è¯�å’Œ 16 KiB 接收记录;å�‘é€�分片为 2 KiB,å�¯å®¹çº³å�—é™�长度的 MQTT 控制消æ�¯å�Šæœ€é•¿ 1,516 字节的 WebSocket 音频帧。 +Wi-Fi 沿用上游 C3 的接收预算(3 个é�™æ€�ã€�6 个动æ€�缓冲和 3 帧 BA 窗å�£ï¼‰ï¼Œ +使用动æ€�管ç�†å¸§ç¼“冲并将接收优化代ç �放回 Flash,释放内部 RAMï¼›ä»�ç”±å�Œä¸€ä¸ªå·¥ç‰Œç½‘络管ç�†å™¨ç®¡ç�†ã€‚ +音效钥匙扣与å°�智共用 `esp_audio_codec` 2.5.0;原 libopus æº�ç �ä¿�留给离线工具,设备链接时排除,é�¿å…�é‡�å¤�符å�·ã€‚ +两款应用ä»�使用原æ�¥çš„ 16 kHz å�•声é�“音频格å¼�。 + +`font_xiaozhi_14.c` æ��ä¾› 7,540 个 ASCII/GB2312 字符,使用 Noto Sans SC 生æˆ�,14 åƒ�ç´ ã€�1 ä½�åƒ�素。 +182,101 字节的字形ä½�图ä¿�存在 Flash。字符集以外的生僻字å�¯èƒ½æ˜¾ç¤ºç¼ºå­—替代符。 + +原应用ã€�音效å�Šäº”张工牌的分区地å�€ä¸�å�˜ã€‚å�‡çº§ä¿�ç•™ NVS 与工牌分区。 +刷过其他应用的设备,必须先核验真实分区表ã€�备份ä¸�兼容的数æ�®ï¼Œå†�安装工牌布局。 +工牌分区缺失或映射失败时,现在安全返回空资料,ä¸�å†�访问未åˆ�始化的存储槽ä½�。 + +## 2.1.2 回å¤�播放 + +收到的 Opus 音频先进入 4 KiB å�˜é•¿é˜Ÿåˆ—,仅在回答时分é…�,开始录音å‰�释放。 +默认缓存约 180 ms å�Žèµ·æ’­ï¼›è¾ƒçŸ­å›žå¤�在收到结æ�Ÿæ¶ˆæ�¯æˆ–等待 300 ms å�Žæ’­æ”¾ã€‚ +æ¯�轮先批é‡�收包,å†�写入 I2Sï¼›UDP 接收邮箱扩为 16 包。 +回å¤�结æ�Ÿå�Œæ—¶ç­‰å¾…网络安é�™æœŸå’Œæ’­æ”¾é˜Ÿåˆ—排空,ä¿�留末尾音节。 + +WebSocket 接收区å�ªåœ¨ä½¿ç”¨ WebSocket 时分é…�,MQTT 模å¼�节çœ�约 2 KiB。 +优先分é…�è§£ç �器,å†�分é…�压缩音频队列,é�¿å…�切碎无 PSRAM 工牌上 Opus 所需的大å�—空闲内存。 +å±�幕æ¯�次分å�—传输从 20 行调整为 10 行,é¢�外释放 4,800 字节;字幕快照使用界é�¢å†…存池的剩余空间。 +这些调整为解ç �器ä¿�留足够的连续内存,实测也覆盖共享热点开å�¯çš„æƒ…况;仅检查空闲总é‡�å¹¶ä¸�足以判断能å�¦åˆ†é…�æˆ�功。 + +音频线程å�ªæ��交快照副本,ä¸�等待å±�幕é”�ï¼›LVGL çš„ 100 ms 定时器在界é�¢çº¿ç¨‹åº”用最新快照, +退出页é�¢æ—¶åˆ é™¤ï¼Œæ�¯å±�æ—¶éš� LVGL 一起暂å�œã€‚背景未å�˜åŒ–æ—¶ä¸�触å�‘é‡�绘; +å�ªæœ‰éŸ³é‡�å�˜åŒ–æ‰�写入音频芯片。活跃对è¯�循环延时为 1 ms,空闲ä»�为 50 ms。 +ä¿�ç•™ 60 ç§’æ�¯å±�,以å�Šå¯¹è¯�æ—¶ Wi-Fi / CPU 的性能策略。 +缓冲会增加少é‡�起播延迟,用于å�¸æ”¶ç½‘络抖动,ä¸�能消除长时间断网造æˆ�çš„å�œé¡¿ã€‚ + +## 验è¯� + +- `tests/test_xiaozhi.c`:地å�€ä¸Žå¤´éƒ¨æ³¨å…¥æ‹’ç»�ã€�音频帧边界ã€�UDP 防é‡�放ã€�UTF-8 截断,以å�ŠéŸ³é‡�范围ã€�é�™éŸ³ã€�连续按键å�ˆå¹¶ã€�音频期间延迟ä¿�å­˜ã€�失败é‡�试与退出补存。 +- `tests/test_xiaozhi_buffer.c`:Opus æ—¶é•¿ã€�起播缓冲ã€�短回å¤�æ”¶å°¾ã€�æ–­æµ�é‡�缓冲ã€�环形队列回绕å�Šæº¢å‡ºæ—¶åŽŸæ•°æ�®ä¿�留。 +- 在设备探针中é¢�外开å�¯ `BADGE_XIAOZHI_PLAYBACK_PROBE=ON`,请求固定云端问候,核对收包 / è§£ç �æ•°é‡�和播放写入间隔;ä¸�å�‘é€�麦克风音频。交付固件关闭此开关。 +- `tests/test_profile_store.c`:分区缺失ã€�映射失败å�Žçš„安全读å�–,以å�ŠåŽŸæœ‰äº”å¼ å·¥ç‰Œäº‹åŠ¡å­˜å‚¨æµ‹è¯•ã€‚ +- `tools/render_radio_host.py`:四ç§�主题ã€�两ç§� Wi-Fi 状æ€�ã€�电é‡�直到 100%,首页与四款å°�程åº�顶部é€�åƒ�素一致。 + å�Œæ—¶éªŒè¯�异步快照å¤�制与å�ˆå¹¶ï¼Œä»¥å�Šé¡µé�¢ 100 次创建 / 销æ¯�无泄æ¼�。 +- `BADGE_XIAOZHI_DEVICE_PROBE=ON` å�¯ç”¨ä»…é™�å�°æž¶çš„验è¯�固件;å�¦åŠ  `BADGE_XIAOZHI_VERIFY_ALL_VOICES=ON` å�¯è§£ç �所有ä¿�留音效。å�°æž¶ä½¿ç”¨å�ˆæˆ� PCM 验è¯�ç¼–è§£ç �,éš�å�Žæ£€æŸ¥æœ�务å�‘现,ä¸�会自动录制麦克风。 + 交付固件必须å�Œæ—¶å…³é—­æ­¤å¼€å…³å’Œ `BADGE_RADIO_DEVICE_PROBE`。 +- `tests/test_badge_power.c`:15/60 秒边界ã€�活跃音频ä¿�护ã€�计时回绕ã€�完整唤醒手势过滤。 +- é¢�外开å�¯ `BADGE_XIAOZHI_POWER_PROBE=ON`,实测空闲超时ã€�LVGL 心跳冻结ã€�MAX modem sleep å�Šéº¦å…‹é£Žæ�¢å¤�。 + ä»…å°† 60 毫秒麦克风短帧读入 RAM,ä¸�ä¿�å­˜ã€�ä¸�å�‘é€�到æœ�务器。交付固件关闭全部探针开关。 + +编译ã€�主机测试与硬件测试应分别报告。编解ç �通过或æˆ�功å�–得激活信æ�¯ï¼Œå¹¶ä¸�等于已通过真实云端语音对è¯�验收。 + +2.1.0 版本在 2026-09-15 çš„å�°æž¶å®žæµ‹ï¼šå…±äº«çƒ­ç‚¹å’Œ 16 kHz 音频开å�¯æ—¶ï¼Œç¼–ç �器分é…�å‰�剩余堆内存 64,108 字节, +分é…�å�Žå‰©ä½™ 39,468 字节。30 段å�ˆæˆ�çš„ 60 毫秒音频平å�‡æ¯�段编ç �耗时 23,912 微秒, +è§£ç �得到预期的 1,920 字节 PCM。任务栈剩余 3,204 字节,能够正常返回首页。 +726 段ä¿�留音效(119,735 个音频包)å�‡é€šè¿‡å…±äº«è§£ç �器验è¯�。 +这些测é‡�ä¸�包å�«çœŸå®žäº‘端连接。 + +å�Œæ—¥ 2.1.1 çš„ USB å�°æž¶éªŒæ”¶é€šè¿‡ï¼šçœŸå®ž 15 秒音频休眠(寄存器回读)ã€�60 ç§’å±�幕休眠ã€� +LVGL 心跳冻结ã€�MAX modem sleep 模å¼�ã€�50 ms 扫æ��é…�ç½®ã€�零亮度兜底ã€�三次音频/麦克风/音é‡�æ�¢å¤�, +以å�Šå®Œæ•´å”¤é†’手势å�Žæˆ�功读å�– 1,920 字节麦克风数æ�®å¹¶è¿”回首页。 +回归用例覆盖了因画é�¢æ�¢å¤�而延迟超过原 350 ms 过滤窗å�£çš„å�•击。 +电池供电时的实际自动轻ç�¡çœ ã€�节çœ�电æµ�å’Œä¸�å�Œè·¯ç”±å™¨ä¸‹çš„æ¶ˆæ�¯å»¶è¿Ÿï¼Œä»�需拔掉 USB 或接仪表测é‡�。 + +2026-09-15,2.1.2 最终 USB / 云端探针在共享热点开å�¯æ—¶é€šè¿‡ï¼šæ”¶åˆ°çš„ 113 包 Opus +全部解ç �并写入播放,未å�‘现 UDP åº�å�·ç¼ºå¤±ã€‚一次 PCM 写入完æˆ�到下一次写入的最大间隔为 +23,132 微秒,压缩队列峰值 692 字节。解ç �器创建å�Žç©ºé—²å †ä¸º 19,392 字节,回å¤�完æˆ�时为 +18,660 字节,éš�å�Žæˆ�功返回首页。之å‰�å�Œæ­¥å­—幕试验的最大间隔为 84,028 微秒; +两次云端问候并é�žç›¸å�ŒéŸ³é¢‘,ä¸�作为严格å�Œæº�对照。 +最终主机渲染测试通过快照å¤�制 / 最新状æ€�å�ˆå¹¶ã€�四套主题ã€�10 行显示分å�—å�Š 100 次页é�¢ç”Ÿå‘½å‘¨æœŸéªŒè¯�。 +上述数æ�®éªŒè¯�了云端问候的传输与播放路径;实际å�¬æ„Ÿã€�长时间麦克风对è¯�和弱网è€�å�—ä»�需继续实测。 + +å�¯é€‰çš„ `BADGE_XIAOZHI_CONVERSATION_PROBE` 使用指定的 16 kHzã€�å�•声é�“ã€�16 ä½� WAV, +通过 `tools/make_xiaozhi_probe_pcm.py` 生æˆ�仅存在于构建目录的测试头文件。 +固定测试输入ç»�过真实编ç �器和云端自动断å�¥ï¼Œè¿žç»­éªŒè¯�两轮,ä¸�读å�–或上传麦克风环境声音。 +æ­£å¼�固件关闭该开关,ä¸�包å�«æµ‹è¯•音频。 + +2026-09-15 çš„ 2.1.3 实机验收通过:使用本机å�ˆæˆ�的固定中文å�¥å­�连续完æˆ�两轮自动断å�¥ï¼Œ +两轮识别文字å�‡ä¸º 39 个 UTF-8 字节;回å¤�分别解ç � / 播放 154/154 包和 131/131 包, +未å�‘现 UDP åº�å�·ç¼ºå¤±ï¼Œæœ€å¤§æ’­æ”¾å†™å…¥é—´éš”分别为 25,635 å’Œ 21,063 微秒。 +24,524 字节编解ç �工作区在 TLS 连接å‰�仅分é…�一次;任务栈余é‡�为 2,856 字节, +返回首页时空闲堆为 97,976 字节。 +主机测试通过输入 / 回å¤�多行显示ã€�整行自动翻页ã€�异步快照ã€�四套主题å�Šé¡µé�¢ 100 次创建 / 销æ¯�验è¯�。 +真人说è¯�的自然å�œé¡¿ã€�环境噪声ã€�声学回声å�Šé•¿æ—¶é—´è¿žç»­å¯¹è¯�ä»�需实际使用检验。 + +2.1.4 çš„å�¯é€‰è¿žç»­å¯¹è¯�测试å�Œæ—¶è¦†ç›–:未播放时调音é‡�ã€�读回 NVSã€�MCU é‡�å�¯å�Žæ�¢å¤�ã€� +修改共享音频临时值å�Žé‡�新进入æ�¢å¤�å°�智音é‡�。测试使用 `xz_vol_probe/original` 记录待æ�¢å¤�值, +æˆ�功å�Žæ�¢å¤�原音é‡�并删除该测试键,å†�执行两轮固定语å�¥äº‘端对è¯�;正å¼�固件排除这些测试入å�£ã€‚ +主机渲染验è¯�四套é…�色ã€�å…«ç§�状æ€�ã€�两方文字轮æ�¢ä¸Žæ•´è¡Œç¿»é¡µã€�错误æ��示优先ã€�局部刷新和 100 次页é�¢é‡Šæ”¾ã€‚ + +2.1.4 在 2026-09-15 的最终硬件验收:未播放时调整音é‡�ç«‹å�³ç”Ÿæ•ˆã€�NVS 读回ã€� +MCU é‡�å�¯æ�¢å¤�ã€�修改共享临时音é‡�å�Žé‡�新进入æ�¢å¤�å�‡é€šè¿‡ï¼Œæµ‹è¯•结æ�Ÿæ�¢å¤�原值。 +两轮固定语å�¥åˆ†åˆ«æ”¶åˆ°å¹¶æ’­æ”¾ 127/127ã€�119/119 包,UDP åº�列无缺å�£ï¼› +两轮最大播放写入间隙分别为 23,238ã€�24,762 微秒,队列峰值分别为 697ã€�698 字节。 +音频工作线程栈余é‡� 2,824 字节,æˆ�功返回首页。 +åˆ�版声纹曾é‡�绘 14,208 åƒ�素,测得一次 95,768 微秒间隙; +最终版ä¿�ç•™é�™æ€�外围造型,仅刷新 1,435 åƒ�素的中心声纹,四套主题的局部刷新测试å�‡é€šè¿‡ã€‚ +这是固定测试输入的云端验è¯�,ä¸�代表真实环境噪声ã€�长对è¯�或用户主观å�¬æ„Ÿå·²éªŒè¯�。 + +## 2.1.5 简约对è¯�页 + +去掉外围圆环ã€�刻度ã€�英文副标题和é‡�å¤�底æ �,ä¿�ç•™å°�声纹与简短状æ€�。 +字幕æ¯�å±�六行,æ¯�次å‰�进五行并é‡�å� ä¸€è¡Œï¼›å�ªæœ‰å¤šé¡µå†…容æ‰�显示页ç �。 +音é‡�在调整å�Žæ˜¾ç¤ºä¸‰ç§’。统一顶部ã€�主题ã€�音é‡�记忆ã€�连续对è¯�与返回导航ä¿�æŒ�ä¸�å�˜ã€‚ +声纹ä»�å�ªåˆ·æ–° 1,435 åƒ�素。 + +## 2.1.6 构图调整 + +上å�ŠåŒºé‡‡ç”¨å·¦ä¾§é†’目的“å°�智â€�标题ã€�å�³ä¾§äº¤å� å£°çŽ¯ç¬¦å�·ï¼Œä»¥ç»†å¼ºè°ƒçº¿è¡”接六行字幕区。 +底部æ“�作æ��示分列左å�³ï¼Œå»ºç«‹æ¸…晰的对é½�关系,ä¸�增加文字å�¡ç‰‡æˆ–常驻动画。 +动æ€�声纹ä»�å�ªåˆ·æ–° 1,435 åƒ�素,声环使用整数线段绘制;共享 28 åƒ�素字体增加“å°�智â€�两个字形。 + +## 2.1.7 声纹主视觉与é€�字字幕 + +声纹æˆ�为主视觉,用 13 根中间高ã€�两侧低的细柱直接å“�应实际收音ã€�播放 PCM 的强弱, +去掉拖延å“�应的缓动ã€�交织线æ�¡å’Œå¤šå±‚光效。它是声音驱动的图形,ä¸�是频谱或生物识别声纹。 +å�ªé‡�绘å�‘生å�˜åŒ–çš„ 4 × 144 åƒ�素窄æ�¡ï¼Œæ¯�次音é‡�更新最多 7,488 åƒ�素,音é‡�ä¸�å�˜æ—¶ä¸�é‡�绘。 +æ”¶å�¬ã€�播放时数æ�®å�‘布最å°�间隔由 200 ms 缩短为 50 ms,在输入音é‡�测é‡�å�Žã€�输出写入å�Žç›´æŽ¥æ��交; +æ”¶å�¬ã€�æ€�考ã€�回å¤�状æ€�çš„ UI 消费间隔为 50 ms,其余状æ€�为 100 ms。 +以上是调度间隔,ä¸�代表端到端延迟ä¿�è¯�,ä»�å�—音频分帧和任务调度影å“�。 +无空闲常驻动画,æ�¯å±�ç»§ç»­å�œç”¨ LVGL。 + +字幕缩为两行。识别输入按本地时钟é€�个完整 UTF-8 字符显示;回å¤�字幕根æ�®å·²ç»�写入音频输出的 PCM æ—¶é•¿æ¸�显, +å�¥å­�到达时把已排队的音频时长计入起点。æœ�务端å�ªç»™å‡ºæ•´å�¥ï¼Œæ²¡æœ‰é€�字时间戳: +é�ž ASCII 字符按 150 msã€�ASCII 字符按 80 ms 估算,属于近似跟éš�,ä¸�能ä¿�è¯�é€�字精准å�Œæ­¥ã€‚ +播放时长未推进时ä¸�会越过对应字幕进度;播放结æ�Ÿå�Žå‰©ä½™æ–‡å­—由本地时钟继续展开。 +æ–°å�¥æ›¿æ�¢ä¸Šä¸€å�¥ï¼Œè¶…过两行按整行上移,显示最近两行,ä¸�作为完整è�Šå¤©è®°å½•。 +音é‡�记忆ã€�开始 / æš‚å�œã€�共享顶部å�Šæ�¯å±�行为ä¸�å�˜ï¼›ç»˜åˆ¶ä»�在 LVGL 线程执行,ä¸�阻塞音频线程等待 UI。 + +`xiaozhi_caption.h` 的主机测试覆盖多字节边界ã€�时钟门控和ä¸�完整字符;真实 LVGL 测试覆盖 +音频进度å�œé¡¿ã€�å¿«ç…§å¤�制ã€�输入 / 回å¤�é€�字显示ã€�两行滚动ã€�四套主题顶部与页é�¢ç”Ÿå‘½å‘¨æœŸã€‚ + +å°�智音频任务优先级调整为 5,高于共享 LVGL çš„ 4ï¼›I2S 阻塞读写与 1 ms 循环延时让出绘制时间。 +é€�字字幕固定左侧起点,é�¿å…�新增字符时整行左å�³ç§»åŠ¨ã€‚ + +验è¯�:ESP-IDF 5.5.3 æ­£å¼�构建与å�ˆå¹¶é•œåƒ�布局检查通过(应用 2,553,664 / 2,883,584 字节), +完整主机é�™æ€�测试通过。四套主题的真实 LVGL 渲染在模拟时钟 50 ms 内消费活跃快照, +音é‡�å�˜åŒ–刷新 7,488 åƒ�素,ä¸�å�˜æ—¶åˆ·æ–° 0 åƒ�ç´ ï¼›UTF-8 é€�å­—ã€�两行滚动和æ¯�主题 100 次页é�¢ç”Ÿå‘½å‘¨æœŸæ£€æŸ¥é€šè¿‡ã€‚ +硬件用固定测试语音完æˆ�两轮自动对è¯�,分别播放 149/149ã€�155/155 个音频包,无报告的 UDP åº�å�·ç¼ºå¤±ã€‚ +两轮音频写入之间最大间隔为 73,992 / 84,449 微秒,这些结果ä¸�代表已ç»�è¯�明播放完全无å�¡é¡¿ã€‚ +音é‡�ä¿�å­˜ã€�é‡�å�¯æ�¢å¤�ã€�é‡�新进入æ�¢å¤�和返回首页通过。本轮未用仪器测é‡�实际声音到å±�幕的端到端延迟,也未进行长时间会è¯�测试。 + +## 2.1.8 字幕时åº�修正 + +最终识别结果收到å�Žç›´æŽ¥å®Œæ•´å‘ˆçŽ°ï¼Œæ²¿ç”¨ä¸¤è¡Œå­—å¹•åŒºåŸŸï¼Œé•¿è¾“å…¥æŒ‰æ•´è¡Œæ»šåŠ¨ï¼Œä¸�å†�é€�字慢放。 +识别和回å¤�在å�Œä¸€æ‰¹æ¶ˆæ�¯ä¸­åˆ°è¾¾æ—¶ï¼Œç•Œé�¢é‚®ç®±å…ˆå‘ˆçŽ°ä¸€æ¬¡è¯†åˆ«ç»“æžœï¼Œä¸‹ä¸€æ¬¡ UI 刷新å†�呈现回å¤�ï¼› +错误ã€�å�–消和清空输入优先。这是显示顺åº�ä¿�障,ä¸�会为阅读而暂å�œå¯¹è¯�音频。 + +回å¤�å�¥å­�文本立å�³æ��交,ä¸�å†�等待周期性音频快照。回å¤�开头使用 180 ms 的阅读æ��å‰�é‡�,在第一段 PCM 写入å‰�å�³å�¯å‡ºçŽ°ã€‚ +å�Žç»­æŒ‰é�ž ASCII 字符 90 msã€�ASCII 字符 40 ms 估算展开;é�‡åˆ°ç”»é�¢å�¡å¸§ï¼Œä¸€æ¬¡æ ‡ç­¾æ›´æ–°è¡¥é½�当å‰�应显示的所有字符。 +音频进度å�œé¡¿æ—¶ä¸�会继续累积æ��å‰�é‡�。上述规则替代 2.1.7 的速度;æœ�务端没有é€�字时间戳,ä»�属近似跟éš�。 +æœ�务端晚å�‘的文字å�ªèƒ½æ”¶åˆ°å�Žæ˜¾ç¤ºï¼Œä¸�能ä¿�è¯�物ç�†å£°éŸ³ä¸Žå±�幕é€�字精准å�Œæ­¥ã€‚ + +主机检查覆盖完整识别å�³æ—¶æ˜¾ç¤ºã€�识别 / 回å¤�çª�å�‘消æ�¯é¡ºåº�ã€�音频å‰�显示回å¤�开头ã€�多字节追赶ã€�播放å�œé¡¿ã€�两行滚动ã€� +共享顶部ã€�声纹 7,488 åƒ�素更新上é™�和页é�¢ç”Ÿå‘½å‘¨æœŸã€‚ + +验è¯�:ESP-IDF 5.5.3 构建与镜åƒ� / 分区检查通过,正å¼�应用为 2,553,936 / 2,883,584 字节; +完整é�™æ€�主机测试与真实 LVGL 测试通过。硬件固定语音测试完æˆ� 172/172ã€�153/153 个音频包,无报告的 UDP åº�å�·ç¼ºå¤±ï¼Œ +自动续å�¬ã€�音é‡�æ�¢å¤�和返回首页通过。两轮音频写入最大间隔为 222,531ã€�16,472 微秒; +本次测试ä¸�能è¯�明播放完全无å�¡é¡¿ï¼Œä¹Ÿä¸�能替代物ç�†éŸ³ç”»å�Œæ­¥æµ‹é‡�。 + +## 短时连接å¤�用(2.6.4) + +返回工牌或设置å�Žï¼Œå�¥åº·çš„ MQTT/TLS 连接最多ä¿�ç•™ 120 秒;音频缓冲区ã€�ç¼–è§£ç �器ã€� +28 KiB 语音任务栈ã€�UDP 套接字å�Šé¡µé�¢å�‡ä¼šé‡Šæ”¾ã€‚å†�次进入时,在原连接上é‡�新进行 +hello æ�¡æ‰‹ï¼Œå�–得新的语音会è¯�å’Œ UDP å�‚数,ä¸�承诺ä¿�ç•™è�Šå¤©åކå�²ã€‚ +MQTT 客户端任务负责心跳;å�Žå�°æ”¶åˆ°çš„æ¶ˆæ�¯ç›´æŽ¥ä¸¢å¼ƒï¼Œä¸�显示字幕ã€�ä¸�执行工具调用。 +WebSocket 连接ä»�在退出时关闭。 + +进入其他å°�程åº�å‰�会释放ä¿�留的连接。连接断开ã€�剩余堆内存低于 48 KiB 或ä¿�留时间 +到期时也会释放;清ç�†åœ¨å¯¼èˆªä»»åŠ¡ä¸­æ‰§è¡Œï¼Œä¸�æŒ�有 LVGL é”�。Wi-Fi ä»�由整个系统共用。 +通过校验的æœ�务é…�置仅在内存中缓存å��分钟;缓存连接失败å�Žï¼Œé‡�新获å�–æœ�务é…�置一次。 +需è¦�激活的结果ä¸�缓存,æœ�务凭æ�®ä¸�会写入工牌资料或 NVS。 + +å�¯é€‰çš„ `BADGE_XIAOZHI_REUSE_PROBE` 检查真实æœ�务æ�¡æ‰‹ã€�é‡�å¤�进入ã€�与å�Žå�°å”¤é†’共存ã€� +进入å°�程åº�时释放ã€�断线和超时释放。测试ç¦�止上传麦克风音频,å�‘行固件必须关闭此开关。 + +已连接工牌上的验è¯�:六次真实æœ�务æ�¡æ‰‹é€šè¿‡ï¼Œå…¶ä¸­ä¸¤æ¬¡å¤�用æ�¡æ‰‹ä»Žè¯­éŸ³ä»»åŠ¡å°±ç»ªåˆ°å¤�用 +完æˆ�分别为 207 / 477 毫秒;切æ�¢éŸ³æ•ˆåº“释放ã€�主动模拟 MQTT 断开,以å�Šå®žé™…等待 +120 秒到期释放å�‡é€šè¿‡ã€‚æœ�务é…�ç½®å�ªèŽ·å�–一次;ä¿�留连接时å�Žå�°å”¤é†’正常,剩余堆内存 +约 61 KiB,音é‡�设置ä¿�æŒ�ä¸�å�˜ã€‚本测试未覆盖真实说è¯�识别ã€�å¤�用å�Žçš„语音播放å�Šé•¿æœŸ +æœ�务连接稳定性。 + +## MCP 注册顺åº�å�Šå­—幕回归修å¤�(2.6.5) + +2.6.4 的会è¯�过滤规则错误地拒ç»�了在语音 `hello` å‰�到达的 MQTT MCP `initialize`, +导致工具å�‘现失败,éš�机音效也因此无法调用。现在å…�许传输连接层的å�ªè¯»åˆ�始化ã€� +`tools/list` å’Œåˆ�始化通知先于 hello;实际工具调用ã€�语音å�Šæ—§ä¼šè¯�消æ�¯ä»�å�—原有检查 +约æ�Ÿï¼Œéš�è—�页é�¢ä»�丢弃收到的数æ�®ã€‚导航任务在完æˆ�退出等待å�Žå�Œæ­¥åˆ é™¤è¯­éŸ³ä»»åŠ¡ï¼Œä½¿ +28 KiB 任务栈å�¯ä»¥ç«‹å�³ç”¨äºŽå†�次进入对è¯�。 + +字幕解æž�与最终渲染å�‡è¿‡æ»¤å®Œæ•´çš„工具执行标记,包括没有çœ�ç•¥å�·çš„æ ‡è®°ï¼Œä»¥å�Šç‹¬ç«‹çš„ +`%s` / `%s...` å� ä½�符;正常百分比和解释格å¼�字符串的å�¥å­�ä¿�æŒ�ä¸�å�˜ã€‚ + +实机使用四å�¥å›ºå®šå�ˆæˆ�语音测试,未上传麦克风录音:首次连接查询电é‡�ã€�å¤�用连接查询 +æ��醒ã€�两次éš�机播放。å‰�两项实际调用了工具,回å¤�分别解ç � 50/50ã€�39/39 个音频包。 +两次éš�机调用分别选中 196ã€�108 å�·éŸ³æ•ˆå¹¶è¾“出 PCM。四æ�¡å†…部执行æ��示å�‡è¢«è¿‡æ»¤ã€‚ +原生 LVGL 测试确认å� ä½�符éš�è—�,å�Œæ—¶ä¿�留识别文案和 `100%`。测试ä¸�代表真实说è¯�者 +识别准确率或长期网络稳定性。 + +## 当å‰�界é�¢ï¼ˆ2.6.9) + +表情替æ�¢äº†ä¸Šæ–¹åކå�²ç‰ˆæœ¬è¯´æ˜Žä¸­çš„声纹。SVG æº�ç´ æ��ã€�离线转æ�¢ã€�声音驱动方å¼�与顶部 HH:mm 时钟详è§�[表情与通用时钟](face-clock.zh_CN.md)。 + +## 2.6.22 连接就绪与摇å�¦äº¤æŽ¥ + +固定方法列表直接作为 JSON 输出,ä¸�å†�临时展开整棵 cJSON 对象树;主机测试解æž�实际输出并检查 16 个方法å�Šå¤§å°�上é™�。方法列表å�ªæ��述固定功能,完整å�¦è±¡é€šè¿‡ `self.yao.get` 返回,ä¸�å†�拼入工具说明。页é�¢å�‘起的首轮解读中,çœ�略编å�·ä¼šè¿”回页é�¢ç¡®è®¤çš„完整快照;明确指定其他编å�·ä¼šæŠ¥é”™ã€‚完整å�¦å��ã€�本å�¦ä¸Žä¹‹å�¦ä»¥å�Šå…­æ�¡çˆ»è¾žä¿�æŒ�完整,å�Œæ—¶é�¿å…�æœ�务器缓存旧å�¦è±¡ã€‚ + +“方法已注册â€�属于 MQTT 连接:ä¿�留连接时ä¿�留标记,真正关闭时清除。æ¯�轮语音ä»�é‡�æ–°æ�¡æ‰‹ã€�获å�–会è¯�å�Š UDP 密钥。首次连接等待æ�¡æ‰‹å’Œæ–¹æ³•列表å�‘é€�完æˆ�å�Žæ‰�开麦,é�¿å…�注册过程中å�¯åŠ¨é‡‡é›†ã€‚çº¦ 24KB 的编ç �/è§£ç �共用缓冲区在æ�¡æ‰‹å‰�预留,并在注册期间æŒ�ç»­ä¿�留,防止å°�å�—分é…�把连续空间切碎,导致第一å�¥å›žå¤�无法分é…�è§£ç �器;æ�¡æ‰‹æˆ–方法注册超时会记录具体阶段。 + +å�¯é€‰ `BADGE_XIAOZHI_CONNECT_PROBE` 使用å�ˆæˆ�é�™éŸ³æµ‹è¯•六次普通进入(包å�«ä¸€æ¬¡è¿žæŽ¥å¤�用å�Šå¤šæ¬¡é‡�新注册方法),ä¸�上传麦克风声音;`BADGE_YAO_DEVICE_PROBE` 使用固定å�ˆæˆ�请求测试两次从å�¦è±¡é¡µé�¢è¿›å…¥è§£è¯»ã€‚æ­£å¼�固件å�‡é¡»å…³é—­ã€‚具体实测结果è§�验è¯�记录,短时间测试ä¸�代表长期 Wi-Fi 稳定性验è¯�。 + +### å·²å¤�现的问题与验è¯� + +在该设备上,旧版附带å�¦è±¡çš„æ–¹æ³•列表为 8,396 字节,å�‘é€�æ—¶å��å¤�出现 socket 错误 104(对端é‡�置连接)。尚未独立确认上游的精确报文大å°�é™�制。新版固定列表为 6,809 字节。第一å�¥å›žå¤�还暴露了内存碎片问题:总空闲 54,624 字节,最大连续å�—å�ªæœ‰ 22,528 字节,å°�于共用编ç �/è§£ç �缓冲区需è¦�çš„ 24,524 字节。å�•独ä¿�留音频区ä»�会é�‡åˆ°åº�列化峰值,因此方法列表改为固定原始 JSON,并使用一次分é…�çš„ 8KB 输出缓冲区,é�¿å…�输出时自动扩容。 + +ä¿®å¤�å�ŽçœŸæœºå®Œæˆ�了两次摇å�¦è§£è¯»äº¤æŽ¥ï¼Œç¬¬äºŒæ¬¡å¤�用了连接。两次 `self.yao.get` å�‡åŒ…å�«å®Œæ•´å�¦å��å’Œå�Œæ–¹å�„å…­æ�¡çˆ»è¾žï¼›æ’­æ”¾æ£€æŸ¥åˆ†åˆ«è§£ç � 134,400 å’Œ 129,600 个采样å�Žè¿”回相å�Œå�¦è±¡ã€‚这是有é™�时长的播放检查,ä¸�代表播放完两段完整长篇解读。主机还在 1KB 临时分é…�预算下构建方法列表,并校验输出 JSON。 + +三次普通进入也通过了æ¯�次八秒的è�†å�¬è¿žæŽ¥æ£€æŸ¥ï¼ŒåŒ…括两次 MQTT 连接å¤�用,全程仅注册一次方法列表。测试上传的是å�ˆæˆ�é�™éŸ³ï¼Œæ²¡æœ‰ä¸Šä¼ éº¦å…‹é£Žå½•音。 + +### 2.6.37 方法注册内存修å¤� + +设备日志å¤�现了 `std::string::resize(8192)` 引å�‘çš„é‡�å�¯ï¼šå­—符串实际申请 +8193 字节,而最大连续空闲å�—å�ªæœ‰ 8192 字节。改为检查堆分é…�结果虽é�¿å…� +这次é‡�å�¯ï¼Œä½†å�‘é€�方法列表时ä»�出现 `esp-aes: Failed to allocate memory`。 +因此方法列表åº�列化改在ç¦�止内è�”的辅助函数中临时使用已有任务栈中的 +8192 字节,å�‘é€�å‰�释放 JSON 对象,完æˆ�å�Žè¿”回,å†�进行音频编ç �。普通 +工具回å¤�也ä¸�å†�é¢�外å¤�制到å�¯èƒ½æŠ›å‡ºå¼‚常的字符串中;输出超é™�会报告会è¯�失败。 + +é‡�新进入起å�¦æˆ–é‡�连网络时,旧 HTTP 请求完æˆ�å‰�ä¿�留定ä½�任务å� ç”¨æ ‡è®°ï¼Œ +é�¿å…�多个 TLS 定ä½�任务é‡�å� ã€‚å°�智å�¯åЍå‰�ç¦�止新定ä½�请求,最多等待å��秒让在途 HTTP 请求释放资æº�,å†�创建语音任务与加密连接;å°�智退出å�Žæ�¢å¤�定ä½�。å�‘布构建默认拒ç»�沿用未å�¯ç”¨ä½“积优化的旧é…�置。 + +2.6.37 实机测试六次进入全部通过:五次注册方法ã€�一次å¤�用连接,æ¯�次稳定 +è�†å�¬å…«ç§’,共å�‘é€� 630 帧å�ˆæˆ�é�™éŸ³ï¼Œæœ€ç»ˆè®°å½• `DONE failed=0`,未上传麦克风 +录音。本次方法列表辅助函数执行å�Žæµ‹å¾—的最å°�剩余任务栈为 16,536 字节。 +仓库é�™æ€�检查与主机测试的 Windows 等价执行全部通过。这ä¸�代表长时间真人 +对è¯�或æ�¯å±�å�Žçš„ USB æ�¢å¤�å·²ç»�验è¯�;测试期间临时ä¿�æŒ�亮å±�,ä¸�修改已ä¿�存的 +自动æ�¯å±�时间。 + +### 2.6.39 播放内存å¤�用 + +è§£ç �器和播放缓冲现在共享已有音频内存区,大å°�为 +`max(encoder_bytes, align8(decoder_bytes) + queue_bytes)`。å�ªæœ‰è§£ç �器 +与播放缓冲å�Œæ—¶å­˜åœ¨ï¼›è�†å�¬æ—¶å�Œä¸€å†…å­˜é‡�æ–°åˆ�始化为编ç �器。å�–消æ¯�次回å¤� +临时申请播放缓冲,ä¿�留原有 4096 字节数æ�®å®¹é‡�和缓冲阈值。布局测试覆盖 +对é½�ã€�整数溢出ã€�未æ�¥ç¼–è§£ç �器大å°�å�˜åŒ–ã€�环形读写以å�Šè§£ç �区和尾部ä¿�护。 +分é…�失败日志新增具体阶段ã€�申请字节数ã€�总空闲内存和最大连续å�—,ä¸�记录 +对è¯�内容或凭æ�®ã€‚本轮暂未å¤�现用户å��馈的å�¶å�‘æ��示;修改å‰�抓到了一轮正常回å¤�。 + +实机完æˆ�五轮å�ˆæˆ�语音回å¤�,音频包分别为 55ã€�140ã€�58ã€�58ã€�58,全部解ç �ï¼› +包å�« 22 ç§’è�†å�¬é�™éŸ³å’Œä¸€æ¬¡ä¸»åŠ¨æ³¨å…¥çš„æ–­çº¿å�Šæ�¢å¤�。音频区ä»�为 24,524 字节: +ç¼–ç �器 24,524ã€�è§£ç �器 17,784ã€�播放缓冲å��ç§» 17,784。两次完整å�¦æ–‡äº¤æŽ¥å�‡ +返回本å�¦ã€�之å�¦å’Œå�Œæ–¹å�„å…­æ�¡çˆ»è¾žï¼Œé™�时播放检查分别解ç � 128,640ã€�133,440 +个采样,éš�å�Žè¿”回å�Œä¸€å�¦è±¡ï¼›ä¸�代表播放了完整长篇解读。两项实测å�‡æ— å†…å­˜ +分é…�失败,ä¸�能æ�®æ­¤è®¤å®šå·²å¤�现或彻底解决用户å�¶å�‘æ��示的所有原因。正å¼�版 +ä¿�留分阶段诊断日志,便于继续定ä½�。 + +### 2.6.40 ç¼–è§£ç �内存预留与生命周期 + +已在 2.6.39 å¤�现用户报错:`opus_arena` 申请 24,524 字节时,总空闲 +75,956 字节,最大连续å�—ä»… 23,552 字节。多次按 OK é‡�试å�‡å�¡åœ¨å�Œä¸€ +申请ä½�置。2.6.39 节çœ�的播放缓冲内存未解决这一进入/连接阶段的问题。 + +改为创建 28 KiB 语音任务å‰�预留编解ç �内存,并在任务存续期间跨连接 +关闭和é‡�试ä¿�留它。关闭传输å�ªé‡Šæ”¾ç½‘络资æº�;真正离开对è¯�ã€�挂起连接 +或销æ¯�会è¯�æ—¶æ‰�释放编解ç �区。ä»�采用动æ€�内存,ä¸�永久å� ç”¨å…¶ä»–å°�程åº� +å�¯ç”¨å†…存。稳定性测试新增断言:五轮回å¤�å�Šä¸€æ¬¡æ³¨å…¥çš„æ–­çº¿é‡�连,全程 +å�ªèƒ½æˆ�功申请一次编解ç �区。 + +2.6.40 实机稳定性验è¯�:五轮å�ˆæˆ�语音回å¤�全部完æˆ�,322/322 音频包解ç �, +包å�« 22 ç§’æŒ�ç»­è�†å�¬å�Šä¸€æ¬¡ä¸»åŠ¨æ³¨å…¥çš„ä¼ è¾“å¤±è´¥ï¼›é‡�连å�Žç»§ç»­ä¸¤è½®å›žå¤�。 +整个会è¯�ç¼–è§£ç �区仅æˆ�功申请一次,未出现内存分é…�失败或崩溃,音é‡�设置 +ä¿�æŒ�ä¸�å�˜ã€‚测试使用å�ˆæˆ�输入,ä¸�上传麦克风录音。最低任务栈余é‡�为 +4,616 字节,因此ä¿�留原有 28 KiB 栈,ä¸�通过缩栈æ�¢å�–空间。 + +å…­è½®é‡�新进入测试也全部通过:一次å¤�用连接ã€�五次注册工具列表,共å�‘é€� +619 帧å�ˆæˆ�é�™éŸ³ï¼Œæ¯�轮稳定è�†å�¬å…«ç§’,最终 `DONE failed=0`。Windows 等价 +é�™æ€�é—¨ç¦�和主机测试通过,正å¼�固件分区与资æº�校验通过。正å¼�构建关闭全部 +诊断探针;å�ªå�‡çº§åº”用分区,ä¿�留用户资料。本轮验è¯�未覆盖长期真人对è¯� +å’Œæ�¯å±�å�Žçš„ USB æ�¢å¤�,å�Žè€…ä»�需å�•独排查。 + +### 2.6.41 ç®—å�¦äº¤æŽ¥çš„连续内存压力 + +用户在 2.6.40 从算å�¦è¿›å…¥å°�智时å¤�现å�¯åŠ¨å¤±è´¥ï¼šç¼–è§£ç �区分é…�æˆ�功å�Žï¼Œ +语音任务需è¦� 28,672 字节,总空闲 71,368 字节,但最大连续å�—å�ªæœ‰ +27,648 字节。æ��å‰�申请编解ç �区没有解决两å�—大内存å�Œæ—¶éœ€è¦�连续空间的问题。 + +旧交接æµ�程先创建完整å�¦æ–‡ JSON,å†�å¤�制给å�¯åЍå�‚数,然å�Žå¤�制到会è¯�字符串。 +现在交接拥有独立生命周期的紧凑 `yao_record_t` 副本,ä¿�存所问事项ã€�六爻ã€� +结果编å�·ã€�èµ·å�¦æ—¶é—´å’Œå®šä½�ä¿¡æ�¯ï¼›å�¯åŠ¨æ—¶ç›´æŽ¥ç§»äº¤æ‰€æœ‰æ�ƒï¼Œä¸�å¤�制全文字符串。 +AI 查询确认结果时,å†�从内置原文生æˆ�完整å�¦å��ã€�å�¦è¾žå’Œå�Œæ–¹å�„å…­æ�¡çˆ»è¾žï¼Œ +当å‰�时间在查询时计算,起å�¦æ—¶é—´ä¿�æŒ�ä¸�å�˜ã€‚该副本ä¸�ä¾�èµ–å››æ�¡åކå�²è®°å½•缓存, +缓存被新记录覆盖也ä¸�会改å�˜æ­£åœ¨è§£è¯»çš„å�¦è±¡ã€‚ä¿�ç•™ 28 KiB 语音任务栈。 + +本轮实机六次算å�¦äº¤æŽ¥å…¨éƒ¨é€šè¿‡ï¼Œäº¤æ›¿ä¿�留和释放连接:六次å�‡å�–得完整 +原文ã€�开始解ç �回å¤�并返回å�Œä¸€å�¦è±¡ï¼Œå…±è§£ç � 953,280 个采样。æ¯�è½®é™�æ—¶ +播放检查达到 128,000 个采样å�Žè¿”回;ä¸�代表完整播放六篇长篇解读。 +未出现分é…�失败ã€�会è¯�错误或崩溃。主机检查覆盖全部 4096 ç§�结果, +并验è¯�紧凑快照与原 JSON 内容一致ã€�历å�²ç¼“存淘汰å�Žä»�å�¯å�–回确认结果ã€� +èµ·å�¦æ—¶é—´ä¸�å�˜è€ŒæŸ¥è¯¢æ—¶é—´æ›´æ–°ã€‚ + +å�¦å®Œæˆ�五轮普通å�ˆæˆ�语音对è¯�,306/306 音频包全部解ç �;包å�« 22 ç§’æŒ�ç»­ +è�†å�¬å’Œä¸€æ¬¡ä¸»åŠ¨æ³¨å…¥çš„æ–­çº¿æ�¢å¤�,全程编解ç �区仅分é…�一次,音é‡�ä¿�æŒ�ä¸�å�˜ï¼Œ +最å°�任务栈余é‡� 4,540 字节。正å¼�构建关闭所有测试探针。长期真人对è¯� +和所有其它页é�¢æ“�作形æˆ�的内存状æ€�未穷尽验è¯�。 + +æ­£å¼� 2.6.41 应用分区已安装且哈希验è¯�通过,ä¿�留用户资料。用户按原 +报错路径å¤�测并确认正常回å¤�;正å¼�日志记录读å�–å¿«ç…§ã€�建立连接和开始 +播放,未出现分é…�失败。串å�£é‡‡é›†ç»“æ�Ÿå�Žå·²é‡Šæ”¾ã€‚ diff --git a/main/CMakeLists.txt b/main/CMakeLists.txt index d39c848..416ba1b 100644 --- a/main/CMakeLists.txt +++ b/main/CMakeLists.txt @@ -1,16 +1,101 @@ +# Keep the embedded hotspot page and standalone editor identical. +set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS + "../configure/page.html" "../configure/profile-core.js" "../configure/app.js" + "../configure/vendor/jsQR.js" "../configure/vendor/qrcodegen.js" "../configure/vendor/jsQR.LICENSE" + "../tools/build_config_page.py" "../assets/fonts/Orbitron-latin.woff2" "../assets/fonts/Caveat-latin.woff2") +execute_process(COMMAND "${PYTHON}" "${CMAKE_CURRENT_LIST_DIR}/../tools/build_config_page.py" + RESULT_VARIABLE config_page_result) +if(NOT config_page_result EQUAL 0) + message(FATAL_ERROR "Offline configuration page generation failed") +endif() +idf_build_get_property(voice_build_dir BUILD_DIR) +file(GLOB_RECURSE voice_assets "../assets/audio/voice-keychain/*.opus") +set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS + "../tools/build_voice_pack.py" "../assets/audio/voice-keychain/voice_index.json" ${voice_assets}) +execute_process(COMMAND "${PYTHON}" "${CMAKE_CURRENT_LIST_DIR}/../tools/build_voice_pack.py" "${voice_build_dir}" + RESULT_VARIABLE voice_pack_result) +if(NOT voice_pack_result EQUAL 0) + message(FATAL_ERROR "Voice bundle generation failed") +endif() +set(BADGE_WAKE_MODEL_DIR "${CMAKE_CURRENT_LIST_DIR}/../assets/xiaozhi/wake/wn9s_nihaoxiaozhi" CACHE PATH "Compatible, trained WakeNet9s model directory") +set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS + "../tools/build_wake_model.py" "${BADGE_WAKE_MODEL_DIR}/_MODEL_INFO_" + "${BADGE_WAKE_MODEL_DIR}/wn9_data" "${BADGE_WAKE_MODEL_DIR}/wn9_index") +execute_process(COMMAND "${PYTHON}" "${CMAKE_CURRENT_LIST_DIR}/../tools/build_wake_model.py" "${voice_build_dir}" --source "${BADGE_WAKE_MODEL_DIR}" RESULT_VARIABLE wake_result) +if(NOT wake_result EQUAL 0) + message(FATAL_ERROR "Wake model packaging failed") +endif() idf_component_register( - SRCS "main.c" - "demo_navigation.c" - "ui_pixel.c" - "ui_pixel_math.c" - "demo_display.c" - "demo_button.c" - "demo_audio.c" - "demo_battery.c" - "demo_radio.c" - "demo_wifi.c" - "demo_ble.c" - "demo_low_power.c" - INCLUDE_DIRS "." - REQUIRES bsp bt esp_event esp_hw_support esp_netif esp_timer esp_wifi nvs_flash + SRCS "main.c" "badge_power.c" "badge_navigation.c" "badge_ui.c" "badge_theme.c" "badge_header.c" "game_registry.c" + "muyu_app.c" "muyu_logic.c" "muyu_ui.c" + "shengbei_app.c" + "yao_core.c" "yao_text_data.c" "yao_service.c" "yao_time.c" "yao_location.c" "yao_geo.c" "yao_app.c" "yao_ui.c" + "xiaozhi_wake.c" "xiaozhi_app.cc" "xiaozhi_tools.c" "badge_control.c" "badge_reminder.c" "badge_alarms.c" "badge_alarm_service.c" "profile_edit.c" "profile_text.c" "badge_alert.c" "radio_tool_catalog.cc" "xiaozhi_wire.c" "xiaozhi_buffer.c" "xiaozhi_ui.c" "xiaozhi_style.c" "xiaozhi_face_assets.c" "xiaozhi_text.c" "font_xiaozhi_14.c" + "radio_app.cc" "radio_player.cc" "radio_catalog.cc" "radio_directory.cc" "radio_presets.cc" "radio_http.cc" "radio_logic.cc" "radio_controls.c" "radio_status.cc" "radio_ui.cc" "font_radio_14.c" + "voice_app.c" "voice_navigation.c" "voice_stream.c" "voice_ui.c" "font_voice_14.c" "${voice_build_dir}/voice_catalog.c" + "font_ui_14.c" "font_muyu_14.c" "font_muyu_22.c" + "font_badge_10.c" "font_badge_28.c" + "profile_format.c" "profile_store.c" "profile_usb.c" "profile_protocol.c" "badge_network.c" "badge_network_rules.c" + INCLUDE_DIRS "." "${voice_build_dir}" + REQUIRES lwip esp-sr bsp esp_pm esp_audio_codec esp_http_client esp_hw_support esp_timer nvs_flash esp_partition esp_driver_usb_serial_jtag json mbedtls esp_wifi esp_netif esp_event esp_http_server mqtt tcp_transport + EMBED_FILES "assets/configure.html.gz" "${voice_build_dir}/wake_model.bin" ) + +if(BADGE_YAO_DEVICE_PROBE) + target_compile_definitions(${COMPONENT_LIB} PRIVATE BADGE_YAO_DEVICE_PROBE=1) +endif() +if(BADGE_ASSISTANT_DEVICE_PROBE) + target_compile_definitions(${COMPONENT_LIB} PRIVATE BADGE_ASSISTANT_DEVICE_PROBE=1) +endif() + +if(BADGE_XIAOZHI_STABILITY_PROBE) + if(NOT EXISTS "${CMAKE_BINARY_DIR}/xiaozhi_probe_pcm.h") + message(FATAL_ERROR "Generate synthetic xiaozhi_probe_pcm.h before the stability probe") + endif() + target_compile_definitions(${COMPONENT_LIB} PRIVATE BADGE_XIAOZHI_STABILITY_PROBE=1) +endif() +if(BADGE_XIAOZHI_REUSE_PROBE) + target_compile_definitions(${COMPONENT_LIB} PRIVATE BADGE_XIAOZHI_REUSE_PROBE=1) +endif() +if(BADGE_WAKE_DEVICE_PROBE) + target_compile_definitions(${COMPONENT_LIB} PRIVATE BADGE_WAKE_DEVICE_PROBE=1) +endif() +if(BADGE_CONTROL_DEVICE_PROBE) + target_compile_definitions(${COMPONENT_LIB} PRIVATE BADGE_CONTROL_DEVICE_PROBE=1) +endif() +if(BADGE_RADIO_DEVICE_PROBE) + target_compile_definitions(${COMPONENT_LIB} PRIVATE BADGE_RADIO_DEVICE_PROBE=1) +endif() +if(BADGE_XIAOZHI_DEVICE_PROBE) + target_compile_definitions(${COMPONENT_LIB} PRIVATE BADGE_XIAOZHI_DEVICE_PROBE=1) +endif() +if(BADGE_XIAOZHI_DEVICE_PROBE AND BADGE_XIAOZHI_VERIFY_ALL_VOICES) + target_compile_definitions(${COMPONENT_LIB} PRIVATE BADGE_XIAOZHI_VERIFY_ALL_VOICES=1) +endif() +if(BADGE_XIAOZHI_DEVICE_PROBE AND BADGE_XIAOZHI_POWER_PROBE) + target_compile_definitions(${COMPONENT_LIB} PRIVATE BADGE_XIAOZHI_POWER_PROBE=1) +endif() +if(BADGE_XIAOZHI_DEVICE_PROBE AND BADGE_XIAOZHI_PLAYBACK_PROBE) + target_compile_definitions(${COMPONENT_LIB} PRIVATE BADGE_XIAOZHI_PLAYBACK_PROBE=1) +endif() +if(BADGE_XIAOZHI_DEVICE_PROBE AND BADGE_XIAOZHI_CONVERSATION_PROBE) + if(NOT EXISTS "${CMAKE_BINARY_DIR}/xiaozhi_probe_pcm.h") + message(FATAL_ERROR "Generate build/xiaozhi_probe_pcm.h with tools/make_xiaozhi_probe_pcm.py first") + endif() + target_compile_definitions(${COMPONENT_LIB} PRIVATE BADGE_XIAOZHI_CONVERSATION_PROBE=1) +endif() + +if(BADGE_TOOL_CLOUD_PROBE) + if(NOT EXISTS "${CMAKE_BINARY_DIR}/cloud_probe_pcm.h") + message(FATAL_ERROR "Generate cloud_probe_pcm.h with tools/make_tool_cloud_probe.py before enabling the cloud probe") + endif() + target_compile_definitions(${COMPONENT_LIB} PRIVATE BADGE_TOOL_CLOUD_PROBE=1) +endif() + +if(BADGE_XIAOZHI_CONNECT_PROBE) + target_compile_definitions(${COMPONENT_LIB} PRIVATE BADGE_XIAOZHI_CONNECT_PROBE=1) +endif() + +if(BADGE_BSP_POWER_PROBE) + target_compile_definitions(${COMPONENT_LIB} PRIVATE BADGE_BSP_POWER_PROBE=1) +endif() diff --git a/main/assets/coloros_muyu_bg.rgb565 b/main/assets/coloros_muyu_bg.rgb565 new file mode 100644 index 0000000..355c550 --- /dev/null +++ b/main/assets/coloros_muyu_bg.rgb565 @@ -0,0 +1,42 @@ +E1f)E1f)E1f)E1f)E1f)E1f)E1f)E1f)E1f)dâdâdâeÚDâeÚdâ…âDâÚâÚâ#â#ê#ââáâê$ââáââáââââáââáââ#ââÚâÚ#âDâ#â$ÚDâ…âdâ…â„ê…â„ê¥â¤ê¥â„ê…â„â…â„ê¥â¤ê¥âdê…â„ê…â„ê…â„âÅâ¥ê„Ú#âDâ#â$Úâ#Ú#â$Úâ#ââ$Úâ#Úâ$ÚâÚâÚãáãÙÂáãÙÂÙÃÙÂÙãÙâÙãÙÂÙãÙDâeÚDâDÚ$âDÚDâDÚ$â$ÚDâDÚDâDÚDâDÚ$âDÚ$âDÚDâEÚDâeÚâãÑâÙãÙÂÙãÙÂÙãÙÂáÃÙÂÙãÙÂáãÙÂÙãÙÂáãÙâÙ#Úâ#Úâ#Úâ#Ú#â$Ú#â$ÚâÚâá$â„ê¥â„ê…âdê…âdêdâdê…âdâ„âdâeâdâ…âdâ„âdâ„â„âdÚâáãÙâáãÙâáÚâ#ââÚâÚâáãÙâáãÙâáãÙâáÚâáÚâáãÙE1f)E1f)E1f)E1f)E1f)E1f)E1f)E1f)E1f)F)F1F)F1F)F1F)F1F)F1F)F1Á`éªeÚdâ…âdâeÚDâeÚDâeÚDâeÚdâeÚ#ÚÚâ$Ú$â$ââãÙãáââÚãáãÙãá$ÚâÚãáãÙÃáãÙãáÚâÚâ$Ú#âDÚ$â…âdâ…â…ê…â…â…â„â…â…ê¥â…â…â…â¥â¥ê¥â…âeâdê…â…â…âdâ…Ú…â¥â…â$Ú#â$ÚâÚÚ$ÚâÚãáÚâ$ÚÚÚÚÚãÙÚãáãÙãÙãÙÃÙÃÙ¢ÙÃÑÃÙãÙÃÙÃÑãÙEÚDÚEÚ$Ú$Ú$âEÚ$âDÚ$âDÚ$âDÚ$âDÚ$âEÚ$â$ÚÚ$ÚDâEÚEâEÚÃÙÃÑÃÙÃÑ¢ÙÃÑ¢ÙÃÑ¢ÙÃÑÂÙãÙÃÙÃÑÃÙÃÙ¢ÙÃÑãÙÚÚÚãá$Úâ$ÚâÚâÚâÚDâ…âdâ…â…â…âdâeâDâeâDâeÚdâeÚDâeÚDâeÚdâeÚdâ…Ú„âÚãÙãÙâáãÙãáÚãáÚãáÚãáãÙâáãÙÂÙãÙâáãÙãáãÙâáãÙãáãÙãáãÙâሢ€hF)F1F)F1F)F1F)F1F)F1F)F1E1f)E1f)E1f)E1f)E1f)dâdÚdâ„âdâ„âdâ…âdâdÚdâdÚDâdÚDâ…âdâ…â#â$Ú#âDââ#ââ#ââ#ââÚâ#ââ$ââÚâáãÙâáãÙâ$â#â#Úâ#â#âDâ„ê…â„â¥â„ê…â„ê…â„â¥â¥ê¥â„ê¥â„ê¥â„ê…âdêeâ„ê…â„â…â„â…â„â¥âdêDÚ#â$ÚâÚâ$ÚâÚãá#ââ#ÚâÚãÙ$Ú#â#ÚãáãÙÂáãÙÂáãÙÂÙãÙÂÙãÙâÙDâDâDÚDâDÚDâeÚDâDÚ#âDÚ#âDÚDâdÚDâdâDâDÚ#â$Úâ$ÚDâeâdâ$ÚÂÙãÙ¢ÙÂÑ¢ÙÃÙÂÙÃÙÂÙãÙÂÙÃÑÂÙãÙÂÙãÙÂÙÃÙâÙÚâ#Úâ$Ú#â$Úâ#ÚâÚDâ…âdâ„â„â¥â„ê…â„ê…âdêdâDâeâdâeâdâdÚdâdÚ„â…Ú„â„ÚDâÚâáãÙâ#ÚâÚâÚâáÚâáÚâÙãÙâáââáãÙâáÚãáÚâáÚâáãÙâáÚ#âdâE1f)E1f)E1f)E1f)E1f)F)F1F)F1F)F1F)F1Á` +«…ÚdâdÚdâeÚdâ…âdâeÚDâeÚDâEÚDÚeÚdâ…Ú…âDâÚ$ÚâÚâ$Úâ$ÚâÚãáÚâÚâÚâÚãáãÙãá$Ú#â$ââ$Úâ$Údâ…âeâ…Údâ…â„â…â…ê…â…ê¦â…ê…âdâ…âdê…âdê…âdê…âdâ…âdâ…âdâ…Ú…â¦âDâ$ÚâÚãÙÚÚÚãáÚãá$ÚÚÚãÙÚÚ$ÚâÚãÙãÙÃÙÃÙÂÙÃÙÂÙÃÙ¢Ù$ÒDâEÚ$ÚEÚ$ÚEÚDâEÚ$âEÚ$âEÚ$ÚDÚ$âEÚDâEÚ$â$Ú$Ú$Ú$âEÚDâeÚeâãÙÃÙÃÑ¢ÙÃÑÂÙÃÑÃÙãÑÃÙãÑÂÙãÑÃÙãÙÂÙÃÙÃÙãÙãÙÚÚ$Úâ$Úâ$ÚÚÚâ…ÚeâeÚdâ…âdâ…âdâ…âdâeÚDâeÚDâeÚDâeÚDâeÚdâ…ÚdâeÚDâ…â$ÚãÙâáÚâ#ÚâÚãáÚãáÚãáãÙâáÚãáãÙâáÚãáÚãáÚãáãÙâáãÙâádÚdâ +« `F)F1F)F1F)F1F)F1E1f)E1f)E1f) ` +«dâ„âdâ„âdâ„âdâ…â„â„âdâdâdâeÚDâdÚDâeÚdâ„âdêDÚâ#Ú#âDâ#âDâ#â$Úâ#ââÚâ$Úâ$ââÚâáãÙâ$â#âDâ#âDâdâ¥â„â¥â„ê…â„ê…â„âÅâ¥ê¥â„ê…âdêdâDâdâdê…â„ê…âdâ„â„ê…â„â…â„â…â¥ê…ââ$ÚãáÚãáÚâ#Úâ#Úâ$Úâ$Úâ#Ú#â$Úâ#ÚâáãÙÂáãÙÂÙãÙ¢ÙãÙDâEÚCâDÚ$âDÚDâDÚDâdÚDâDÚDâDÚ$âDÚ$âDâDâDÚ#âDÚDâDÚDâeÚDâ…Ú#âãÑÂÙÂÙÂÙãÙâÙãÑÂÙãÙâÙãÙâÙãÑÂÙãÙâÙÚâÚâ$Ú#â$Úâ#Úâ#ÚâDâ„ê…âdâ…â„ê…âdâ…âdâ„â„ê…âdâeâdâdÚdâdÚDâdÚdâ„Údâ„âdâ„ââáãÙâáÚ#âCââÚâáÚâÚâÚâáãÙâáÚâáââáÚâÚâáÚâá#âdâdâdâ„â ³Á`E1f)E1f)E1f)F)F1F)F1F)F1eÚdâeÚdâeÚdâeÚdâ…ÚdâeÚDâeÚDâeÚDâeÚDâeÚdâeÚdâ…âDâÚâDÚ#âDÚ#âDâ#â$Ú#â$ÚâÚâ$ÚâÚãáÚãáÚâDÚDâDÚ$â…Ú…â¥â…â…Ú…â…Údâ¥â¥â…â…â…â„â…âDâeâDâeâDâ…â…ê…âdâ…âdâ…âdâ…Údâ¥â…â$ÚÚÚãÙÚãáÚâ$Úâ$ÚâÚÚÚÚ$Úâ$ÚÚãÙÃÙãÙÂÙÃÙ¢ÙÃÑâEÚ$ÚDÚ$ÚDÚ$ÚDÚDâEÚDÚEÚDâEÚ$â$Ú$âEÚ$âEÚ$â$Ú$âEÚDâeÚDâeÚeâ…âãÑÃÙÃÙÃÑÂÙÃÑÂÙãÑãÙãÑÃÙãÑÃÙÃÑÃÙãÑãÙÚâ$Úâ$Úâ$Úâ$Ú#â$ÚDâ…âdâ…Údâ…âdâ…âdâeÚdâ…âdâeÚDâeÚDâeÚDÚeÚDâeÚDâeÚdâeÚdâ$ÚâÙãÙãá#Ú#âÚâÙãÙâÙÚãáÚãÙÚâÙÚãáÚãáãÙãáÚãáÚãáÚDâeÚDâeÚDâdÚDâF)F1F)F1F)F1E1f)E1f) `*«dâ…âdâ„Údâ…â„â…Údâ…âdâdÚDâdÚdâ…âdâ…â„â…â„â¥âÅêÅâ#âCâCâDâCâDâ#â#Ú#âDâ#â$Úâ#ââÚâ#Úâ#ââDâCâDâCâdâ…â¥â¥ê¥â„â…âdâ…â„â¥â„ê¥â„ê¥â„ê…âdê…â„ê…â„ê…â„ê…â„â…â„â…âdâ…â„â¥âdê#ÚâÚãáÚâ#Ú#â#ÚâÚâÚâ#Ú#â#Úâ#ÚãáÚâáãÙÂÙÂÙâÙDâ$âDÚDâDÚCâDÚDâDÚ#âDÚDâdÚ$â$Ú#â$Ú$âEâDâDÚ$âDâDâeÚdâeÚdâ…ÚdâDÚÂÙãÙÂÙÃÙÂÙãÙâÙãÙãÙãÙÂÙãÙâÙãÙãÙÚâ$Ú#â$Ú#â$ÚâÚâ#âDâ…âdâ…â„â…â„ê…âdâ„âdâ…â„ê…âdâ…âdâ„âdâdÚDâeÚdâdÚdâ„âdâ…âDêÚâáãÙâ$ÚâÚâáÚâáÚâ#Úâ#ÚâÚâáÚâáÚâáÚâÚ#Ú…âdâdÚdâdâdâdâé²Á`E1f)E1f)F)F1F)F1…Údâ…ÚdâeÚDâeÚdâ…Ú„â…âdâeÚDâeÚdâ…Údâ…â„â…âdâ…Ú…âÆâÅê…ââ$Ú#âDÚ$â$Úâ$Ú#âDÚ#â$ÚâÚãá#Úâ$Úâ$Ú$âDÚ#âDÚ…ê¥Ú…â¥â…â…âdâ…âdâ…â„â…â…ê…â„â¥â„â…â…ê¥â…ê…âdâ…âdâ…âdâ…Údâ…Ú„â…Ú…â¥â#ÚÚãáÚãá#Úâ$ÚÚÚãÙÚãÙÚãÙÚãá#ÚâÚâÙãÙâÙãÙÂÙDÚDâDÚ$âEÚ$âDÚ$âDÚ$Ú$Ú$â$Ú$âDÚDÚEÚ$âEÚDâEÚ$âEÚDâEÚDâEÚDâeÚeâeÚDÚäÙÃÙÃÑ¢ÙÃÑÃÙãÙãÙãÙãÙãÑÃÙãÑãÙãÑãÙÚâ$Ú#â$Úâ$ÚãáÚâ¦â…â…Úeâ¥â„â…âdâeÚdâ…âdâ…âdâeÚdâ…ÚdâeÚDâeÚdâeÚDâeÚDâeÚDâ…â#ÚãÙâáãÙãáÚãáÚÚÚâÙÚâ$Úâ$ÚÚÚâÙãÙÂÙãÙâÙÚãáeÚdâeÚDâdÚDâeÚDâdÚDâF)F1F)F1E1f)E1f)„â…âdâ„Údâ…Ú„â…â„â…âdâ…â„â„âdâ…â„â…â„â…â„â…â„â…â„âÅâ¥êdÚ#â#Ú#âDâ#âCâ#âDâ#âCÚ#âDâ#â$ÚâCâ#â#Ú#âDâCâdâdâ¥â¥ê¥â„â¥â„ê…â„ê…â„ê¥â„ê¥â„ê¥â„ê¥â„ê¥â„ê¥â…ê…âdâ…âdâ„âdâ…â„â…â„â¥â„â…Úâ#Úâ#Úâ#Úâ#ÚâÚâÙÚâáÚâáÚâ#ÚâáÚâáãÙâá#âDâDÚ#âDÚ$âDâDâDÚ#â$Ú#â$Ú#âDÚDâdÚDâDâDâDâDâEâDâeÚDâeÚDâeÚdâeÚdâeÚ#âãÑÂÙÃÑÂÙãÙâáãÙâáãÙâÙãÑâÙÚãáãÙâáÚâ#Úâ#ââ#ââdâ…ê…â„ê¥â¥ê¥â„ê…âdâ„â„ê„â„ê…âdâdâdâ…âdâ„âdâ„âdâ„âdâdÚdâdÚDâdÚâáÚâáââÚãáÚâáãÙÂáÚâÚâ#ÚâáãÙâáÚâáãÙâÙÚdâdÚdâ„âdâdâcâdâdâdâE1f)E1f)F)F1Á` +«…ÚdâeÚdâ…Údâ…Ú„â…Údâ…Údâ…âdâeÚdâ…âdâ…âdâeÚdâ…â…â¥â¥âÆâ…â$Ú#âDÚ#â$Ú#âDÚ$â$Ú#âDÚ$âDÚ#â$ÚâDÚ#â$Ú$âdâDâ¥Ú¥â¥â¥â¥â…â…Ú„â…â„â…â…ê…â„â…â„â…â„â¥â¥â¥â…ê…âdâ…âdâeÚdâ…Údâ…Ú…â¥â…â…Ú…â$ÚãÙ$Úâ$ÚÚÚãáÚãÙÚãÙãÑâÙãÙãÙãÙãáÚãÙãÙÂÙãÑ$âEÚ$Ú$Ú$âEÚDâeâDâDÚ$Ú$ÚÚ$ÚÚEÚDâEÚDâDÚ$âDÚDâEÚDâEÚDâEÚDÚEÚDâeÚDÚEÚãÙãÙÃÙãÙãáãÙãÙãÙãÙãÙÂÙãÙãÙãÙãÙãÙãáÚâ$Úâ$ââDÚ…ê¥â„â¥â¥â¥â…â…âdâ…âdâ…â…â…âdâ…âdâ…âdâeÚdâ…âdâeÚdâdÚDâeÚDâdÚdâ$ÚâÙãÙãáÚãáãÙÂÙÃÙÂÙÃÙâáÚãáÚãáÚãáÚâÙãÙÂÙãÑ#âeÚDâeÚdâeÚDâeÚDâdÚDâ +« `F)F1E1f)„â…âdâ„âdâdÚ„â…â„â…âdâ„Údâ„âdâ„âdâ„âdâ„âdâ„âdâ…â„â¥â¤âÅâÅêÆâdêDÚ#âDâ#âDâ#âDâ#â$Ú#âDâCâDâCâDâ#âDâ#âDâCâ„âÅêÅâ„â¥â¥ê¥â„â¥â¤ê¥â„ê¥â„ê¥â„ê¥â„ê¥âÅêÅâ…ê…â„â…â„â…âdâ…âdâ…â„â¥â¥ê¥â„â…âDâ#Úâ#Ú#â$Úâ#Úâ#ÚâÚãáãÙâÙãÙâáÚâáÚâáãÙÚdâDâDÚ#âDâDâdâDâDâ#âDÚ#âDÚ#âDÚDâdÚDâDÚ$âDÚ#âDÚDâEâDâeÚDâDÚDâeÚdâeÚDâDÚÂáãÙãáÚâáãÙâÙãÙâáãÙâáãÙâáãÙâáãÙâá#ââ#ââ#âdâ…â„â¥â¥ê¥â„â¥â„ê…â„â¥â„ê¥â„ê„âdâ…âdâdâdâ„âdâdâdâdâDâdâDâdâdâdâDêÚâáÚâÚâáãÙÂáâÙâáÚâáÚâáÚâáÚâáãÙÂáãÙÚ…âdâdÚdâdâcâdâdâdâcâdâcâdâE1f)F)F1…ÚdâeÚDâeÚdâ…Údâ…ÚdÚeÚDâdÚdâeÚDâeÚDâeÚdâeÚDâeÚdâ…Ú…â¥â…âÆâÆê¦âDÚ$Ú#â$Ú$âDÚ#â$Úâ$Ú$âDâDâDÚDâDâ#â$Ú$âdÚ¥êÆâÅâÆâ…â…Ú…â…Ú„â¥â…â¥â¥â¥â¥â¥â…â¥â…â¥â…â…â„â…â…â¥â…âeÚeâ…â…â¥â…â¥â¥â¥â„â…â$ÚÚâ$Úâ$ÚÚÚâÚãáãÙãÙãÙãÙãÙãÙãÙâÙãÙÂÙDÚDÚDÚ$âDÚDâDÚ$âEÚ$âDÚ$ÚDÚDÚDÚDâeÚDâEÚ$â$Ú$âEÚ$âEÚDâEÚDâEÚDâEÚDâEÚDâeÚeâãÙÃÙãÙãÙãÙÃÙãÙÂÙãÙãÙãÙÃÙãÙãáãÙãáÚâÚâ$Ú$â…âeâ…â…â¥â„â…Ú„â…â„â…â…â…â„â…âdâ…âdâ…âdâdÚDâeÚDâDÚDâDÚDâeÚdâeâDâeâ#âÚâ$ÚãáÚâÚãáÚâÙãÙâÙãÙãáãÙâáãÙÂÙãÙâÙDÚDâeÚDâDÚDâeÚdâdÚdâdÚdâdÚDâF)F1E1f)dâ„â„â…Ú„â…â„â„ÚdâdÚDâdÚDâ…âdâeÚDâdâdâdÚdâ„âdâ…â„â¥â„â¥â¤âÅâÅê„Ú#âDâ#âDâ#âDÚ#â$ÚCâdâCâDÚ#âDâCâDâ#âDÚdâ¥â¥êÆâÅêÅâ„â…â„â…â„â¥â¤êÅâ¤êÅâ¤êÅâ„â¥â„â¥â¤êÅâ¥ê¥â…ê…â„â…â„â…â¥ê¥â¥ê¥â„â…â„â…ââ#Úâ#ÚâÚâáÚãáÚâáãÙâÙãÙâáãÙâáãÙâÙÚDâDÚDâDÚDâDâDâdâDâDâDâDÚ#âDâdâdâDâdâDâDÚ$âDÚ$âDâDâdâDâeâDâeÚDâdÚDâeâdâ…ÚCâãÑâáÚãáãÙâáãÙâáÚâáãÙãáÚâáãáâáââ$â#âdâ…ê…âdâ…â„ê…â„â…â„â…â„â¥â…ê¥â„ê…âdâ„âdâ„âdâ„âdâdâCâDâCâdâDâdâDâdâdâdââ#Úâ#ÚâÚâãÙÂáãÙâáÚâáÚâáãÙâáãÙâá#âDâdÚDâdÚdâdâdâdâdâdâcâdâCâdÚE1f)Á` +³…Ú„â…Ú…â…Ú„â…ÚDÚeÚDâdÚDâeÚDâeÚdâeÚdâeÚDâdÚdâ…Ú„â¥â…â…Ú…â¥Ú…âÆâ…âDÚ#â$Ú$âDÚ$â$ÚâDÚCâDÚ$â$Ú$âDÚâ$Ú#â…Ú…â¥â…â¥â¥â¥â„â…Ú…â¥â„â¥â…â¥â…â¥â¥â¦â¥â¥â…â¥â…â¥â…â…â…â…â…â…Ú„â¥â…â¥â…â…Ú„â…Ú…âDÚÚ$ÚâÚãáÚãáÚãáãÙÃÙãÙÂÙãÙÃÙãÙãáãÑ$âeÚDâDÚDâEÚDâeÚDâEÚ$âEÚ$â$Ú$âEÚDâDÚDâDÚ$âDÚ$âDÚDâEÚDâEÚDâeÚDâEÚDÚEÚEâ…Údâ…âÚãÙãáãÙÃÙãÙãÙãÙãÙãÙãÙãÙãáÚãáÚãáãÙãáDÚ…ê…âeâ…Ú…â…â…â…â…â…âdâ…Ú…â…âdâ…Údâ…âdâ…âdâ…âdâdÚDâDÚDâdâDâeÚDâeÚdâeÚdâDÚÚÚãáÚãáãÙÂÙãÙÂÙãÙÂÙãÙÂÙãÙãáÚãáÚ$âeÚDâdÚDâdÚDâeÚDâdÚDâdÚDâdÚDâ +« ` `*«„ê…â„â…Ú„â…ÚdâdÚDâdâdâdâdâ„â„â…âdâ…âDâdÚDâ…â¤ê¥â„â…â„â¥â„â¥â¥âÆâCêCÚ#âDâ#âDÚ#âDÚCâDÚ#âDâCâDÚ#âDâCâ„âÅêÅâ¥âÅâ¥ê¥â„â¥â„ê¥â„â¥â¤êÅâ¤ê¥â„â¥â¥êÅâ¥ê¥â„ê¥â„â¥â„â…â„â¥â„â…â„â¥â„ê…â„â…â„â¥âdêDÚ#â#Úâ#ÚâÚâÚâáÚâáãÙâáãÙâáÚCâ…âdâdÚDâeâdâ„âdâdÚDâDÚ$âDâ$âDâDâdâDâDÚ#âDâDâDÚDâDâCâDâDâdâDâdâDâdÚDâ…âdâ…âdâDÚâáÚâáÚãáÚãáÚâáãÙâáÚ#âDââ#ââáâdâ¥â„â¥â„â¥â„â…â„ê„â„â…âdâ…â„ê…âdâ…â„ê„âdâ„âdâ„âdâdÚCâdâDâdâdêdâdâ„âdâ…âdê#ÚâÚâÚâáãÙâáâÙÂáãÙâáÚâáÚâÚ#âdâdâdÚDâdÚcâdâCâdâCâdâcâdÚcâdâé²À`Á` +³…Ú„âeÚdâeÚdâeÚDâdÚDâeÚDâdÚdâ…ÚdâeÚdâEÚDÚdÚ…â¦â…â…Údâ…Ú…â¥Ú…â¥âÅê¥â#Ú$Úâ$Ú#â$Ú$âDÚ#âDÚ$âDÚDâDÚ$âdÚ…ê¦â…â¥â¥â¦â…â…â„â¥â…ê¥â¥â¥â…â¥â…â¥â¥â¥â¥ê¥â„â…â…â…âdâ…âdâ…â…â…Ú„â¥â…â…Ú…â…Ú„â…Ú„â¥âDâ$Úâ#Úâ$ÚÚÚãáÚãáãÙãáãÙãáÚâ…âdâeÚDâeÚDâeÚdâeâDâEÚ$âDÚ$âEÚDâeâDâDâ$â$Ú$âDÚDâEÚDâDÚDâEÚDâEÚDâEÚDâeÚDâeÚdâeÚEâ$ÚãÙãÙãÙÚÚÚÚÚãáÚãá$Ú$â$Ú#â$Ú#â¥â…â¥â…â¥â„â…âdâeÚdâ…Údâ…âdâ…âdâ…âdâ…âdâdÚdâeÚDâeÚDâdÚDâeÚDâeâDâ…âdâeÚdâ…âDâÚãáãÙãÙÚãáÚãáÚãáÚãáÚãá$ÚâdÚdâeÚDâdÚDâdÚDâdÚDâeâDâdÚDâdÚDâ +« ` `*«„â…Ú„â…â„â„ÚdâdÚdâdÚdâdÚCâ„âdâ…â„â…âdâeÚdâ…â„ê…â„â…â„â…â„â¥â¤âÅâ¥êdÚâ#Ú#âCâ#âDÚ#âDâ#âDÚ#âDâ#âDâdâ¥â„â¥â¤êÅâ¥ê¥â„â¥â¤êÅâ¤êÅâ„ê…â„ê¥â¥êÅâ¥êÅâ„ê…â„ê…âdâ…â„â…â„â¥â„â¥â„â¥â„â¥â„â…â„â…â„â…ââÚâ#Ú#â#ÚâÚâÚâÚâáÚâdâ„â…âdâeÚdâ„âdêdâdâeâDâDâDâDâDâeâDâDâ#âDâ#âDÚDâDâDâdÚDâDâDâdâDâdÚDâeâdâ„âdâ…âDâeâdê#ÚâáÚâ#ÚâÚâÚâÚâ#â#âDâCâ…â¥ê¥â„â¥â„ê…â„ê…âdâ„âdâ…âdâ…âdâ„âdê…â„ê„âdâdâDâdÚCâdâdâdâcâ„âdâ„âdâ„âdâ„â„â…ÚâÚâáÚâáÚâÚâ#ââ#ââ#Úâ#ÚdâdÚdâdÚcâ„âdâdâcâdÚDâdâcâdâcâdâé²À`Á` +«…Ú„â…Ú„â…ÚdÚeÚdâeÚDâeÚDâdÚdâ…Údâ…Ú…â…âdâeÚDâ…Ú…â…Ú„â…Ú„â¥Ú…â¥Ú…â¦â„â$ÚâÚâ$ÚâDÚ#â$Úâ$Ú#â$Ú#â…Ú…â¥â…â¥â¥â¥â„â¥â„â¥â…â¥â¥â…âdâ…â„â¥â¥âÆâ…â…â…â¥â„â…âdâ…â…â…Údâ¥â…â…Ú…â¥â„â…Ú…â…âdâ…Ú…âDÚãÙÚâ$ÚâÚãáÚãáÚãáÚãáDÚ„ê…âdâ…âdâeÚdâeÚDâeÚDâEÚDâEÚDâeâDâEÚDâDÚ$âDÚ#âDÚDâEÚDâDÚDâeÚDâeÚDâeÚdâeÚdâeÚdâeÚDâ…â#ÚãÙãáãÙãáÚãÙÚâÚâÚâDâCâdÚ…ê¥â…â¦â…â¥â…â…âdâ…Údâ…Údâ…â„âeÚdâeâDâ…âdâeÚDâeÚDâdÚdâeâDâeÚdâ…Údâ…âdâeÚDâ…Ú…â$ÚâÙÚãáÚâ#ÚâÚãá#Úâ#ÚÚÚ#âdÚDâeÚDâeÚdâdÚdâdÚDâdÚDâdÚDâdÚdâ +« `dâ…â„â¥â„â…âdâdÚDâdÚdâdÚdâ„âdâ…Ú„â…â„â¥â„â„Údâ„âdâ…â„â¥â„ê…â„â¥â„â¥â¤âÅâCâ#ÚâÚâ#â#â#Úâ#Ú#â$Ú#âDÚ¤âÅâ¥ê¥â„â¥â¤ê¥â¥êÅâ„ê¥â„ê¥â„ê¥â„â…â„ê…â„ê¥â„ê¥â„ê¥â„ê…â„ê…â„â…â„â„â„â…â„â¥â„â¥â„â…â„â…âdê#Ú#â$Ú#â#Ú#â#Úâ#ââÚâÚdâ…â„ê„âdâ…âdâ…âdâdâDâdâDâdâDâdâDâeâDâdâdâdâDâdÚDâdÚDâeâdâ…âdâ…âdêeâdâ…âdâeÚdâ…âdâ…â…ê…âãáãÙâáãÙâáÚâ#Úâ$â#âCâCâCâ„ê¥â¥êÅâ¤êÅâ¤ê¥â„â…â„ê…âdâ…â„ê„âdâ„âdâdâdâ…âdê„âdâdâcâ„âdâdâcâ„âdâdÚdâ„âdâdÚdâ…âdê#ÚâáÚâCâ#â#ÚâÚâáÚâ#Ú#â„âdâdâcâdÚDâ„âdâ„âdâdâCâdâdêdâCâ„âdâ„â…Ú„â…Ú„â…ÚdâeÚdâeÚDÚdÚdÚeÚdâ…âdâ…Ú„â…Údâ…ÚdâeÚdâ…Ú„â¥â…â…â…â…Ú„â…Ú…â¥Ú¥âeâãÙÚâÚâÚãá$Úâ$Ú#âDÚdâ¥â…â¦â…â…Ú…â¥â¥â¥â¥ê¥â„â…â„â¥â¤ê…âdâ…â…â…Ú…â…â…â¥â¥â¥â…ê…â…â…Ú„â…âdâeÚdâ…Ú…â…âdâ…âdâ…Údâ…â#Ú$Úâ$Ú#â$Ú#â$ÚâÚâ#Úâ…Údâ…âdâ…Údâ…Údâ…âdâeÚDâEÚDâEÚDâDÚDâeÚDâ…ÚdâeÚDâEÚDÚeÚDâeÚdâeÚdâeÚDâeÚDâeÚDâeÚdâ…Údâ…â…ê$âãÙãÙãÙãÙãÙãÙâáÚ#â$â#âDÚDâ¥âdâ¥â¥â¦â…â…â…â…â„â…â„â…âdâ…ÚdâeÚdâ…âdâeÚdâ…âdâ…âdâeÚDâeÚDâeÚdâdÚDâeÚdâeÚdâ…Ú…â…âDÚÚâ$Úâ#ÚâÚãáÚÚ$ÚâeÚdâeÚdâdÚDâdÚdâdÚdâdÚDâdâDâdâDâdÚDâdÚDâdâ…Ú„â…Údâ…âdâ„âdâdÚdâ…Ú„â¥â„â¥â„â„Údâ„â„â…Údâ…â„â¥â„ê…â„â¥â„â…â„â¥â¤ê¥â„êDÚâ#â#â#ÚâÚâ#Ú#âDâdâ¥â„â¥â¥ê¥â„â¥â¤ê¥â¤êÅâ„ê¥â„ê¥â„â¥â„ê…â„ê…â„â¥â¤ê¥â„â¥â„â¥â„ê…â„â…â„ê„âdâ„â„â…â„â„â„â…âdâ…â„â…â#âDâ#âDâ#âDâ#â#Úâ#ââdâ„ê…â„â„â„ê„â„â…âdâeÚDâdâDâdâDâdÚDâdâdâdâdâ…âdâdÚDâdÚdâ…âdâ…âdâdâDâDâDâdâdâ…âdâ…â„â…â„â¥âdêÚãáãÙâáãÙâáãÙâDâ#â#â#â…ê…ê…â„ê¥â¤ê…âdâ…â„ê¥â„ê…â„ê…âdâ„âdâ…âdâ…âdâdâdâ„âdâ„âdâdâdâdâdâ„âdâ…âdâ„âdâ„âdâ…â„â…Ú#â#Úâ#Ú#â#Úâ#Ú#âCÚâ#Údâ„âdâ…âdâdâdâdÚdâ…âdâ„âcâdâcâdâcâdâcâ„â…Údâ…ÚdâeÚdâ…ÚdâeÚDâeÚdâ…Ú…â¥â„â¥â„â…Údâ…Údâ…âdâ…Ú„â…Ú…â¥â…â¥â…â…Ú…â¥â„â¥â…â$Ú#âDÚâÚâ$Ú#âdÚCâ¥â¥ê¥â¥âÅâ¥â¦â…â¥â¥â¥â…â¥â¥â¥â…â¥â„â¥â¥ê¥â…ê¥â…ê¥â…ê…â„â…âdâ…â…â…âdâ…âdâ…ÚdâeÚdâ…â„â…â„â…Ú„â…Ú…âeâ#Ú$Úâ$Ú#â$Úâ#ÚâDÚdê…âdâ…âdâ…Údâ…âdâeÚDâeÚDâDÚDâEÚDâDÚDâeÚdâ…Údâ…ÚDâeÚDâeÚdâ…âdâ…âdâeÚDâeÚdâeÚeâ…Údâ…âdâ…âdâ…â#ÚãÙãáãÙãÙãÙâáÚâÚâDÚdê…ÚDâ…Ú…â…â…â…â„â…âdâ…Údâ…â„â…âdâ…âdâ…âdâeÚDâeÚdâ…Údâ…âdâeÚdâ…âdâeÚdâeÚdâeÚdâeÚdâ…Ú„âDâÚ#Úâ$Úâ$ÚâÚãÙÒ#âeÚdâ…ÚdâeÚdâeÚdâdÚdâeÚDâdÚDâdÚDâdÚdâdÚDâdâ„Údâ„Údâ…Údâ„Údâ„âdâ…Ú„â¥â„â…âdâ„â„â„â„â„â„â…â„â…â„â¥â¤â¥â„â¥â„â…â„â¥â¤âÅâDâDÚ#â#Ú#âDâ#âDâCâdâÅêÅâÅêÅâÅêÅâ¥êÅâ¤êÅâ¥êÅâ¤êÅâ¥êÅâ¤ê¥â¥êæâ¥êÅâ¤ê¥â„ê¥â„ê¥â„ê„âdâ…â„ê…âdâ…âdâ…âdâ…âdâ…â„ê…â„ê…â„â¥â„êDÚ#â#Ú#â#Ú#â#Ú#â#Údâ…â„â„âdâ„âdâ…âdâ…âdâ„âdâdâDâdâDâDâDâeâDâdâdâ„âdâ„âdâeâdâ„â„â„â„ê…âdâ…âdâ…âdâ…â„â…âdâ…â„ê…âdâdÚâáÚâáÚâáÚâÚâáÚdâ…âdâdâdâ…âdâ¥â„ê…âdâ…âdâ…â„ê¥â„ê…âdâ„âdâdâDâdÚdâdâdâ„â„â„âdâ„â„â„â„â„âdâ„âdâ…âdâ…â„â…ÚdâCÚâ#Úâ#â"â#ÚâÚ#Ú…âdâdÚdâ„âdâ„âdâ…âdâdâcâdÚCâdâCâdÚcâ„âcâ„â…ÚdâeÚdâeÚDÚ…Údâ…Údâ…Úeâ…Údâ…ÚdâeÚdâ…Ú„â…Ú„â…Údâ…Ú…â¥â¥â¥â…â¥â„â…Ú„â…Ú„â¥Ú¥â…â#Ú$Úâ$Ú#âDÚDâdÚ„ê¥â…âÆâ¥âÆâÅêÆâ¥â¥â…âÅâ¥â¥â¥âÅâ¥âÆâ¥â¥â…â¥â¥â¥â…ê¥â„â¥â„â…âdâ…Ú…â…âdâ…ÚdâeÚdâ…âdâ…Údâ…â„â…âdâ…â„â¥âdâ$Ú#âÚâ$ââ$Ú#â…Ú„â…âdâ…âdâeÚDâeÚDâeÚdâeÚDâeÚDâEÚDâEÚDâeÚDâeÚDâeâDâeÚDâeÚdâ…Údâ…âdâ…âdâeÚDâeÚdâ…âdâeÚdâ…âdâeÚdâ$ÚãÙÚãáÚãáãÙãáÚ#â…â…â…âdâ…â„â…â…ê…âdâeÚdâ…â„â…â„â…âdâeÚdâeÚDâdÚDâdÚDâdÚdâeÚDâeÚdâ…âdâ…Údâ…âdâ…âdâ…Ú„â…Údâ…ÚDÚãÙãáãÙâáÚâÙÚãÙDÚdâEÚDâeÚdâ…Údâ…âdâeÚdâdÚDâdÚDâdÚDâdÚdâdÚdâdâ„Ú„â„Údâ…Údâ…Ú„â„Údâ…Ú„â…Údâ„ÚDâeÚ„â„â„â…â„â…â„â¥â¤ê¥â„â¥â„â¥â„â¥â„â¥â„â¥â…êdÚ#â#Ú#âDâ#âDâdâÅâ¤âÅâÅêÅâ¤êÅâÅêÅâ¥ê¥â¤êÅâ¤ê¥â¤êÅâ¤êÅâ„â¥â„ê¥â„ê¥â¥ê¥â„ê¥â„ê…â„â¥â„â¥â„â…âdâ„â„ê…â„â„â„â„â„â„â„â¥â„â¥â#â#Úâ#ââ#â#â„â„ê…â„â„âdâ…âdêdâdâdâDâ…âdâ…âDâdâDâdâDâdâDâDÚCâdâdâ„âdâdâdâdâdâ…âdâ…â„ê…âdâdÚDâ…âdâ„âdâ„âdâ…âdâ„âdê#ÚãáÚâÚâÚâdâ„ê…â„ê„â„ê¥â„ê¥â„ê„âdâ…â„â…â„ê…â„ê…âdâdâdâ…âdâdâDâdâdâ„â„â„âdâ…âdâdÚdâ…â„â„â„â„â„â…Ú„â„Ú„â…ÚâÚâáãÙâáÚâÙ#Údâ„âDâdÚdâ„âdâ„â„â„âdâ…âdâdÚDâdÚdâ„âdâ„âdâ„âeÚdâ…Údâ…ÚdâeÚdâeÚdÚeÚdÚeÚdâeÚDâeÚdâ…Údâ…âdâ…Ú„â…Ú„â¥â…â…Ú„â…Ú…â¥â¥êÅâ„â…Ú…â¥â…â$Ú#âDÚ#âDÚ#â¥â¥â¥ÚÅêÆâ¥â¥â¥âÅâ¥â¥â¥â¥â¥â¥â„â…â…ê¥â¥â¥â¥â¥â¥â¥â…â…â…â…â…ê…â„â¥âdâ…Ú…â…âdâ…âdâ…â„â…âdâ…âdâ…âdâ¥â„â…Ú…âDâÚ$Úâ$ÚâDÚ…ê…â„â…âdâ…âdâ…âdâeÚdâeÚdâ…âdâeâDâDÚDâDÚDâeÚDÚDÚDâdÚdâeÚdâeÚdâeÚdâeÚdâ…âdâeÚDâdÚDâeÚDâeÚDâeÚdâ…Údâ…âDÚãÙâÚãáÚâDÚ…ê…â…â¥â„â…âdâ…â„â…âdâ…â…â…âdâ…âdâ…âdâ…âdâ…Údâ…âDâdÚdâdÚdâ…âdâ…âdâ…Údâ…Údâ…Údâ…ÚdâeÚDâeÚDâ…Ú„âDÚâÙãÙâáãÙãáÚ#â…âdâeÚdâdÚdâ…Údâ…Údâ…ÚdâdÚdâdÚdâ…ÚdâdÚdâdÚdâdâ„Ú„â…Ú„â…Údâ„Údâ…Údâ…Údâ…ÚdâdÚDâ„âdâ…âdâ…â„â…âdâ„â„â¥â„â¥â„â¥â¤âÅâ¤êÅâ„â¥â¤âÅâCêDâ#âDâ#âdâÅê¥â¤âÅâÅêÅâ¤êÅâ¥ê¥â¤êÅâ¥ê¥â¤ê¥âdâ…â¤êÅâ¤êÅâ¤êÅâ…ê¥â„ê¥â„ê¥â„ê…â„â…Ú„â¥â„ê„â„â…â„ê¥â„ê„âdâ„â„ê…â„ê„â„â„â„ê#Úâ#â#â#Údâ…â„â…â„ê„â„ê„â„ê„â„â…â„â„âdâ„âdêdâCâdâCâdâdâdÚDâdâdâ„âdâ„âdâ„âdâdÚDâdâdâ…âdâdâdâ„âdâ„âdâeâdâ…âdâ„â„â…ââ#ââáââ#âdâ…âdâ…â„ê…â„ê…â„â…â„ê…â„ê…â„ê„âdâ…â„ê„â„ê…â„êdâdâdâdâ„âdâ„âdâ„â„â…âdâ…âdâ…â„â…â„â„âdâdÚdâ„âdâ„Údê#ÚâáÚâáÚ#â…âdâ„âdâ„âdâ„â„â„ÚdâdÚdâ„â„â„Ú„â„Údâ„Úcâ„âdâ„âeÚdÚ…Údâ…ÚdâeÚdÚeÚdÚeÚdÚeÚdÚeÚDâdÚDâ…ÚdâeÚdâ…ÚdâdÚdâ…Ú„â…â…â…Ú…â¥â¥â¥â„â…Ú„â…Ú…â…âDâDÚ#â$ÚdêÆâ…â¥Ú¥â¥â…â¥â¥â¥â…â¥â¥â¥â¥âÆâ…â…Ú…â¥â¥êÅâ¥â¥â¥â¥â…ê¥â¥â¥â„â¥â„â…Ú„â…Ú„â…âdâ…â…â…â„â…âdâ…âdâ…â„â…âdâ…Údâ…âDâÚâ$Ú#â…âdâ…â„â…âdâ…âdâ…âdâ…â…â…âdâeÚdâeâDâeÚdâeÚdâeÚDâeÚdâeÚDâ…âdâeÚdâeâDâDÚDâeâdê…âdâeÚdâeÚdâeÚdâ…Údâ…âdâ…Ú…âDâÚÚãá$Ú#â…âdâ…â„â…â„â…âdâ…â„â…â…â…â„â…â„â…âdâ…âdâ…â„ê…âDâeÚdâeÚdâeÚdâdÚdâ…âdâ…ÚdâeÚdâ…â„â…â„âeÚDâeÚdâeÚDÚ…âDâÚâÚãáDÚdâdÚdâ…Údâ…ÚdâeÚDâeÚDâdÚdâ…Údâ…ÚdâeÚDâeÚDâeÚdâdâdÚdâ„Údâ„âdâ„ÚdÚ„Údâ…Údâ„ÚdâdÚDâdÚdâ„âdâ„âdâ…âdâ„â„â…â„â…â„â¥â¤âÅâ¤ê¥â„â¥â„â„â…êdÚ#âCâCâ¥â¤â¥â„â¥â¤ê¥â„â¥â„â¥â¥êÅâ¤êÅâ¤ê¥â„â¥â¤âÅâÅêÅâ¥êÅâÅêÅâ¤êÅâ¤ê¥â„â¥â„â¥â„â¥â„â„â„ê…â„ê…â„ê…â„ê„â„â…â„â…â„â„â„â…ââ#ââdâdâ…â„ê„âdâ„âdâ„âdâdâdâ…â„ê„âdâ„âDâdâdâ„âdâ„âdâ„âdâ…âdâ„âdâ…âdâ„âdêdâDâdâDâ…âdê…âdâ„âdâ…âdâ…âdâ…â„â…â„â…âdê#Úâ#â#â„â„â…â„ê…â„ê¥â„ê„â„ê„âdâ…â„ê…â„ê¥â„ê…âdâ…â„ê…âdâdâdâ„âdâ„âdâ„âdâ…â„â…âdâ„âdâ…â„â…â„ê„âdâ„âdâdÚdâ„â„â…â#â#Úâ#Údâ„âdâ„âdâ„âdâ„âdâdÚdâdÚdâ„â„â„Údâ„âdâdÚDâdÚdâ„âeÚDÚeÚDâeÚDâeÚdâeÚdâ…ÚdÚ…ÚdâeÚDÚEÚDâeÚdâ…Údâ…ÚdâeÚDâeÚdâ…Ú„â¥â…â¥â…â¥â„â…Ú„â…â„â¥â„â$Ú#â…Ú¥â¥â„â¥â…â¥â…â¥â„â…â…â¥â„â¥â…â¥â…ê¥â…â¥â¥âÅâ¥âÅâ¥âÆâ¥â¥â¥ê¥â„â¥â…â¥â…â¥â…ê¥â…â¥â„â…â„â¥â„â…â„â…âdâ…Údâ…âdâ…Ú…â$ÚãÙ$ÚDâeÚdâ…â„â…âdâ…âdâ…ÚdâeÚdâ…âdâeâDâeÚdâ…âdâ…âdâ…âdâ…Úeâ…âdâeÚdâ…âdâ…âdâeâDâeâDâeÚdâeâdâ…âdâ…âdâ…âdâ…âdâ…âdâ…âDâÚâDÚ…ê…âdâ…â„â¥â„ê…âdâ…âdâ…â„â¥â„â…âdâ…âdâ…â„ê…â„â…âdâ…ÚdâeÚDâeÚdâ…Údâ…âdâeÚdâdÚdâ…âdâ…ÚdâdÚDâeÚDâ…Ú„â…Ú…âDâÚÚ#â…âdâdÚdâdÚdâ…âdâdÚDâ…Údâ…Ú„â…Údâ…ÚdâdÚDâdÚdâdÚdâdâdÚDâdÚdâ„Údâ„Údâ„Ú„â„Údâ…âDâdÚCâDÚDâdÚdâ…â„â…â„â¥â¥ê¥â„â¥â„â¥â„â¥â¤ê¥â„â…â„â¥â„â¥â#âDâ¥â¥â„â¥â„â¥â„â¥â„â¥âdâ…â„â¥â¥âÅâ¥ê¥â¤êÅâ¤ê¥â¤êÅâ¤êÅâ¥ê¥â„ê¥â„â¥â„â¥â„ê¥â„ê¥â„ê¥â„ê¥â„ê¥â„ê¥â„ê¥â„ê…â„ê…â„â…â„â¥âdê#ÚCâ…âdâ…âdâ„â„ê„âdâ„â„â…âdâ…âdêdâDâdâdâ…â„â„âdâ…âdâ„âdâdâdâ„âdâ„â„ê…â„ê„âdâ„âDâdâDâdâdêdâ„ê„â„ê„â„ê…âdâ„âdâ„â„â…ââÚdâ¥â„ê¥â„ê¥â„ê…âdê„âdê„â„ê…â„ê¥â„ê„â„ê„â„ê…â„ê¥â„ê…âdâ…âdâdÚdâ„âdâ„âdâ„âdâ„âdâ„âdâ„âdâdâDâdÚDâ…â„â„â„â¥â„ê#ÚÚdâdâ„âdâ„âdâ„âdâ„âcâdÚdâ„âdâ„âdâ„â„â„Ú„â„ÚcâdÚDâdÚeÚDÚeÚDâeÚdÚeÚdÚeÚdâ…ÚDÚeÚDâeÚDÚDÚDÚEÚDâeÚdâ…Ú„â¥âÅêÆâ…â¥â„â¥â„â…Ú„â¥â„â…âdâ…Ú„â…Ú„âeÚDâ¥Ú…â…Ú…â¥â„â…Ú„â…âdâ…Ú…â…Ú…â¥â…â¥â¥â¦â…âÅâ¥âÅâ¥â¥â¥ê¥â„â…â„â…â…â…â„â…â…ê¥â„â…â„â¥â¥â¥â…â¥â„â…â…ê¥â„â…â„â…âdâ…ÚdâeÚDâ…Údâ…âdâeÚdâ…Údâ…âdâ…ÚdâeÚdâeâDâeâDâeÚdâ…âdâeÚDâeÚDâeÚdâeÚdâ…â…â…â„â…âdâ…âdâeâDâeâDâeâdâ…â„â…âdâ…âdâeÚDâeÚdâ…Ú…âDâ#â…Ú…â…â„ê¥â„ê…â„â…âdâ…âdâ…â„â…â„â…âdâ…âdâ…â„â…âdâ…âdâ…âdâeÚDâeÚdâ…Údâ…ÚdâdÚdâeÚDâeÚdâeÚDâdÚDâeÚdâ…Údâ…Ú„â…ÚCÚDÚdâdÚdâ…ÚdâdÚDâdÚdâdÚdâ…âdâeÚdâeÚdâ„Údâ…ÚdâdÚDâdÚDâDâdÚDâdÚdâ…Údâ„Údâ„ÚdâdÚDâdÚDâdÚDâdÚDâdÚdâeÚdâ„â„âÅâ¥ê¥â„â¥â„â¥â„â„â„â¥â„â„Údâ…âdâ„Údâ…â„â¥â„âÅâ¤ê¥â„ê¥â„ê…â„â¥â„â¥â„â¥â„â¥â¤ê¥â¤êÅâ¥êÅâ¤êÅâ¥ê¥â„â…â„ê…â„â…â„â…â„ê¥â¤ê¥â„ê¥â„ê¤â„ê…â„ê¥â„ê¥â¤â¤â„ê„âdâdâdâdâ„â…â„ê„âdâ„â„ê„âdâ„â„â„âdâdâdâ„âdêdâdâdâdâ„âdâ„âdâdÚDâ„âdâ…â„ê…â„ê„â„ê…â„ê…âdê„â„ê…âdâ…â„ê„â„ê…â„ê„âdâdâdâ„âdâ…â„â…â„â¥â„ê¥â„ê¤â„ê¤â„ê¤â„ê„â„ê…â„ê„â„ê„â„ê„â„ê…â„ê„â„ê…â„â„âdâ„âdâ„âdâ„â„â„âdâ„âdâ„âdâ„âdâdâdâdÚdâ„â„â„Ú„â„â„â„Údâ…Údâ…âdâ„âdâ„âdâ…âdâ„â„ê„â„â„âdâ„âdâ„âdâ„âdâdâdâdâdÚDâdÚDâeÚdÚ…ÚdÚeÚDÚeÚDâeÚDâeÚDâeÚDâeÚDâeÚDâ…Údâ…Ú…â¥â…â…Ú„â…Ú„â…Údâ…âdâ…âdâ…â…â…ÚdâDÚDâ¥Ú„â…Ú…â¥â…â¥â…ê…â„â…Ú„â…Ú…â…Ú„â¥â…â¥â¥â¥â¥âÅâ…â¥â„â…â„â…â„â…â„â…âdâ…â„â…â„â¥â…â…â„â…â„â…â„â…â„â…â„â…â„â…âdâ…ÚdâeâÚeÚdâ…âdâeÚdâ…âdâ…Údâ…ÚdâeÚDâdÚdâ…âdâ…âDâeÚdâ…âdâeâDâeâDâ…â„â…â„â…âdâ…âdâ…â„ê…â„â…â„â…â„â…â„â…â„â…â„â…âdâ…Údâ…â„â…ÚDâ¥â…â…â…â¥â„ê¥â„ê¥â„ê…âdâ…â„â…âdâ…â„â…â„â…âdâ…âdâ…â„â…âdâeÚdâeÚdâ…âdâ…âdâeÚDâeÚDâeÚdâeÚdâeÚdâdÚdâ…Údâ„Ú„â…ÚCÚDÚdâeÚdâ…Údâ…âdâeÚdâ…Údâ…âdâ…ÚdâeÚdâdÚdâ…ÚdâeÚDâeÚDâDâdÚdâeÚdâeÚdâ…ÚdâdÚdâdÚdâ„â„â„ÚdâdÚdâdÚdâdÚdâeÚdâ…Ú„â¥â„â…â„â…âdâ„âdâ…â„â…â„â¥â„â…â#â#Ú„â¥â„â¥â¤êÅâ¥ê¥â„ê…â„â…â„â¥â„ê…â„â¥â¤ê¥â¤êÅâ¤êÅâ„â¥â„ê¥â„ê…â„ê…â„ê…â„ê…âdâ…â„â…âdâ„â„â…â„ê…â„ê¥â„ê„â„â¥â„â…â„â¥âCâ#ÚCâ…âdâ„âdâ…âdâ…â„â…âdâ„âdâ„âdâ„â„ê…âdâ…âdâ„âdâ„âdêdâdê…â„ê…âdê„â„ê…â„ê…â„ê…ê„ê…âdâ„â„ê…â„ê¥â„ê¥â„ê¥â„ê…âdâ…â„â¥âCâ#Ú„â…â„ê…â„ê¥â„ê¥â„ê…â„ê…â…ê¥â„ê…â„ê…â„ê…âdâ„â„ê…â„ê„âdâ…âdâ„âdâ„âdâ„âdâdâDâdÚdâdÚdâdâDâdÚdâ„âdâ„â„â„Údâ¥âdâ#Ò#Ú…â„â…â„â„â„â…âdâ…âdâ…âdâ…âdâ„âdâ„âdâ„âdâ„âcâdÚcâ„âeÚdâ…ÚdâeÚdâeÚdÚeÚdÚeÚDâeÚdâ…ÚdâeÚDâeÚDâ…ÚdâeÚDâeÚdâ…âdâ…Ú…â…Údâ…âdâ…Údâ…Ú„â¥â„â¥âDâ$Ú#âdÚ…ê…Ú…â¥â¥â¥â„â…â…â…Ú„â¥â…â…Ú…â¥â„â¥â…â¥â…â¥â¥â¥â…â…Ú„â…Ú„â…â„â…â„â…â„â…âdâ…Údâ…âdâ…â„â…â„â…â„â…âdâ…Ú„â…Ú„â¥â…â$Ú#âDÚdê…âdâ…âdâ…Údâ…âdâeÚDâ…âdâ…âdâ…âdâ…âdâeÚdâ…âdâ…âdâ…âdâ…âdâ…âdâ…âdê…âdâ…âdê…âdâdâdâ…âdâ…â…ê…â„â…â„â…âdâ…Údâ¥â…â$ÚâdÚ…â…âdâ…â„ê…â„ê…âdâ…â…â¥â„â…âdâ…â„â…âdâ…âdâ…âdâ…ÚdâeÚdâ…âdâeÚdâ…âdâeÚDâeÚDâeÚdâ…ÚDâdÚDâdÚdâeÚdâdÚdâ…Ú…âDÚãÙÒDâ¥âdâ…Ú„â…Údâ…Údâ…ÚDâeÚdâeÚdâ…Údâ…ÚdâdÚdâdÚdâdÚdâdâ…Údâ„Údâ„ÚdâdÚdâ…ÚDâeÚdâ„Údâ„ÚdâdÚdâdÚdâdÚdâdÚdâ…âdâ…â„â¥â„â…â„â„â„â…Údâ„â„â¥â„êDÚ#â#ÚCâ…â„â…â„â¥â„â¥â„â…â„â…â„ê…â„ê…â¤ê¥â¤ê¥â¤êÅâ¤êÅâ¥ê¥â„ê¥â¤ê¥â„ê…â„ê…â„ê„âdâ…â„â…â„ê„â„ê„â„ê¤â„ê„â„â„â„â„â„â¥â…êdÚâDâCâdâ„â…Údâ…â„â…âdâ„âdâdâdâ…â„ê…â„ê„â„ê¥â„ê…â„ê„â„ê…â„ê„â„ê„â„ê„â„ê…â„ê…âdê„âdêdâdâ„â„ê…â„ê¥â¤êÅâ¤ê¥â„ê…â„ê…â…êdÚâ#Ú#â…â„ê…â„ê…â„ê„â„â…â„â…â„ê¥â„ê„â„ê…â„ê„â„ê„âdâ…âdâ…â„â„âdâ„âdâ„âdâ„âdâ„âdâ„â„â…âdâdÚdâ„âdâ„âdâ„âdâ„â„â…ââÚ"âCâ„â„Údâ„âdâ„âdâ„âdâdÚdâ„âdâ„âdâ„âdâ„âdâ„âdâ„âdâ„âeÚdâ…Ú„â…ÚdÚeÚdâeÚDâeÚDâ…Údâ…ÚdÚeÚDâdÚDâeÚDâeÚDâ…Údâ…Údâ…â„â…âdâ…Ú„â…Ú„âeÚdâ…Ú…âeâ#Ú$Úâ$ÚDâ¥Ú„â…Ú…â…Údâ…âdâ…â…â…â…â¥â…â¥â„â¥â…â¥â¥â¥â¥êÅâ¥â…â„â¥â…ê¥â„â…â„â…â„â…âdâ…â„â…âdâ…âdâ…â„â…âdâ…âdâ…Údâ¥Ú¥â…â#Ú$Ú#âDÚ#â…âeâ…Údâ…âeâ…Údâ…Údâ…â…â…â…â…âdâ…â„ê…âdâ…â„â…â„â…â„â…â…â…âdâ…â…â…âdâ…âdê…âdâ…â…â¥â…ê¥â…ê¥â¥â¥â…â¥â…ê¥â…â…â#â$Ú#â$ÚDâ…â…â…â„â…âdâ…â…â…âdâ…â„â…â„â…â„â…âdâ…âdâ…âdâeÚdâ…ÚDâeÚDâeÚdâ…Údâ…âdâdÚdâ…âdâeÚDâeÚdâdÚdâ…Údâ…Údâ…âDÚÚÚ$ÚâeÚdâeÚdâ…ÚdâeÚdâeÚDâeÚdâdÚdâ…ÚdâdÚdâdÚdâ…âDâdâDâdâ…Ú„â„Údâ„ÚdâdÚdâdÚDâeÚdâ…ÚdâdÚDâdÚDâDÚDâdÚdâ…Údâ„Údâ…â„â„â„â…Ú„â…Ú„â„â„â…â„â…â#â#Ú#â#Ú#âCÚ„â¥â„â¥â„â¥â„ê…â„ê…â„â„â„ê¥â„â¥â¤ê¥â„ê¥â¤êÅâ¤êÅâ¤ê¥â„ê¥â¤ê¥â„ê¥â„ê¥â„ê¥â„ê…â„ê¤â„ê…âdâ„â„ê…â„â…â„â…Ú¥âÅâCê#ÚCâDâCâDâdâ¥â„ê…â„â…â„â…â„â…â„ê…â„ê…â„ê¥â„ê¥â„ê…â„ê¥â„ê¥â„ê…â„â…â„ê„âdâ…â„ê„âdêdâdê„â„ê…â„ê¥â¤ê¥â¤êÅâ„ê¥â¤êÅâ¥êÅâDêCÚCâCâ#âDâ„ê¥â„ê¥â„ê…â„ê…â„ê…âdâ…â„ê…â„ê„â„ê„â„ê„â„ê…âdâdÚdâdÚDâdÚdâ„âdâ„â„â„âdâ„âdâ„âdâdÚdâ„âdâ„âdâ„â„â¥â„êCÚâ#Ú#â#Ú#Ú„âdâ„âdâ„âdâ„âdâ„âdâ…âdâ„âdâ„âdâdÚdâ…âdâdÚCâdâ…ÚdÚ…ÚdÚ…ÚdÚeÚDÚEÚDÚeÚdÚeÚDâeÚDÚDÚDÚeÚDÚeÚDâeÚdâ…Údâ…Ú„â…Údâ…Údâ…Údâ…Ú…â¥â„â…âDâ#Úâ$Úâ$Ú#âdÚ…ê¥â„â…â„â…â„â…â„â…âdâ…Ú¥â¥â„â¥â…â¥â…â¥â…â¥â¤â¥â„â¥â¤â…â…ê¥â„â…â„â…â…ê…â„â¥â„â…â„â…âdâ…âdâ…âdâ…Ú…âÅâ¥âDÚ#âDÚCâDÚ#âDÚdê…â…â…âdâ…âdâ…âdâ…â„â…â…â…â…ê…â„â…â„â…âdâ…â„â…â„â…â„â…âdâ…âdâ…âdâeÚdâ„â„ê…â„â…â„â…â„â…â…ê¥â„âÅâ¥âÆâ¥âDÚ#âDâ#âDÚ#â…â…ê¥â…ê…â…ê…â„â…âdâ…âdâ…âdâ…âdâ…âdâ…âdâ…âdâ…âdâeÚDâeÚdâeÚDâeÚdâ…ÚdâdÚdâdÚdâeÚdâeÚdâ…Údâ…Ú„â…Ú¥âdâÚCÚ#â$Úâ#ÚDâ…âdâeÚDâeÚdâ…Údâ…Ú„â…âdâ…âdâeÚDâdÚdâeÚDâdÚDâ„â…Údâ…Údâ„ÚdâdÚDÚdÚDâdÚDâdÚDâdÚCâdÚdâ…Údâ…ÚdâeÚdâ„âdâ…â„â…Ú„â…â„â¥â„â¥â¤â¥â„êDÚâ#Ú#â#Úâ#ÚCâ…â¥ê¥â„ê¥â„ê¥â„â¥â„â¥â¤ê¥â¤ê¥â¤ê¥â„â¥â¤ê¥â¤êÅâ¤êÅâ¤ê¥â„ê¥â„ê¥â„ê¥â„ê¥â¤ê¥â„ê¥â„ê¥â„ê…â„â„âdâ…â„â¥âÅê„Ú#âdâCâDâ#âDâ#âDâ„ê…â„ê…âdâ„âdâ„â„ê…â„â…â„ê¥â„ê¥â„ê…â„ê…â„ê…â„ê…â„ê…â„ê…â„ê…â„ê„âdâ…â„ê…ê„ê…ê„ê¥â„ê¥â„ê¥â„ê¥â¤êÅâÅê„Ú#âDâCâCâCâDâcâ¥ê¤ê¥â„ê¥â„ê…âdâ…â„ê…â„ê…â„ê„â„ê…â„ê„â„â„â„ê„â„ê…âdâ„âdâ„âdâ„âdâ„âdâdâdâ„âdâ„âdâ„â„â„â„â…â„âÅâ#â#Ú#âCââ#Ú#â#Ú„â…ÚdâdÚdâ…âdâ…â„â¥â„â¥â„â„âdâdÚdâ„âdâ„âdâ„â…ÚdÚ…ÚdÚ…ÚdÚeÚDÚeÚdÚeÚDâdÚDâeÚDÚEÚDâEÚDâ…ÚdâeÚdâeÚdâeÚdâ…Ú„â…Ú…â¥Ú…â¥Ú…â¥Ú¥âDÚÚ$ÚÚ$Úâ#ÚâDÚCâ¥â…â…â…â…â„â¥â„â¥â„â¥â„â¥â…â¥â„â¥â…â¥â…â…â„â¥â…â…â„â…â…ê…â„â…â…ê¥â¥â¥â…â¥â…â…â„â¥â„â…âdâ…âdâ…â…â…âDÚDÚCâDÚ#âCÚ#âDÚ#â…â…â…â…â…âdâ…âdâ…â„â…Údâ…â…â…â…â…âdâ…â…â…âdâ…â…â…â„â…â„ê…â„ê…â„â…â…â…â…ê¥â…ê¥â¥ê¥â„â…â…â…â…ê¦â¥â¥âCâDÚ#âDÚDâDÚ#âdâ„êÅâ„â…â„â…âdâeÚdâ…â„â…â„â…â…â…â…â…â„â…âdâ…Údâ…âdâ…Údâ…âdâ…Údâ…ÚdâdÚDâdÚdâ…Údâ…Údâ…â„â…Ú…â¥âdâ$Ú#âDÚ#â$Úâ#ÚâdÚdâeÚdâ…Údâ…Ú„â…â„â…Ú…â…Ú„âeÚDâeÚdâeÚdâdÚdâdâ…Údâ…ÚdâdÚdâ…Údâ…ÚdâdÚDâdÚdâdÚCâdÚDâdÚdâdÚdâ„âdâdÚdâ…â„â…â„â¥â„â¥â¤â¥â¥â¥â#âDÚ#â$Ú#â$Ú#âDâCâDâ„âÅâ„â¥â„ê…â„â¥â„â¥â¤ê¥â„â¥â„â¥â¤ê¥â„âÅâ¤ê¥â„ê…â„ê¥â„ê¥â„ê¥â„ê¥â¤êÅâ¤êÅâ¤ê¥â„ê¥â„ê„âdâ„âdâ…â„â¥âCâ#Ú#âDâ#âCâCâCâCâDâdâ¥â„ê¥â„ê…â„ê…â„ê…âdâ…â„â…â„â…â„ê¥â„ê¥â„ê…â„ê…â„ê…â„ê¥â„ê¥â„ê¥â„ê¥â„ê¥â„ê¥âÅêÅâ¥ê¥â…ê¥â„ê¥â¥êÆâdêDâCâCâCâDâCâCâCêdâ¤ê¥â„ê¥â„ê…âdâ…â„ê¥â„ê¥â„ê…â„ê…â„ê…â„ê…âdâ…â„ê…â„â…â„â„âdâdÚDâ„âdâdÚdâ„âdâ„â„â…â„â„â„â¥â…êDÚ#âCÚCâCÚâ#Úâ#Ú#âdâdâ…â„â„â„â¥â„â„â„â¥â„â¥â„â„âdâdâcâ„âdâ„âeÚdÚ…ÚdÚeÚDÚ…ÚdâeÚdÚeÚdÚdÚdÚeÚDÚDÚDâDÚDâDÚDâeÚdâeÚDâeÚdâ…Údâ…Ú„â…Ú„â¥â„â¥âDÚDÚ#âDÚ#Ú$Úâ$Ú#âDÚ#âdÚ…ê¥â…â…Ú„â…â„â…â„â…â„â¥â„â¥â…â…â„â…â„â…â„â…â„â…â„â…â„â¥â…â¥â…ê¥â…ê¥â…â¥â…â¥â…ê…â„â…âdâ…âdâ…âdâ#Úâ$ÚâCÚ#âDâCâDâCâDÚdê¦â…â¥â…â…â„â…âdâ…âdâ…âdâ…Úeâ…â„â…â„â…â…â…âdâ…âdâ…â…â…â„â…â„â…â…â¥â¥ê¥â…ê¥â…ê¥â…ê¦â…ê¥â…êÆâ…âDÚCâDâCâDâ#âDâCâDÚ#â…â…ê…â„â…â…â…âdâ…â„â¥â„â…Ú„â…âdâ…âdâ…âdâ…âdâ…â„â…âdâ…âdâeÚDâdÚDâeÚDâeÚdâ…Údâ…âdâ…âdâ…Ú¥âdÚ#Ú$Ú#âDÚ#âÚãáÚÚÚ#â…Údâ…âdâ…âdâ…Ú„â…Ú„â…Ú…â…Údâ…ÚdâdÚdâdÚdâdÚ…Údâ„ÚDâeÚdâ…Údâ…ÚdâdÚdâ…Údâ„ÚDâdÚDâdÚDâdÚdâ…Údâ„â„â„Údâ…Ú„â¥â„â¥â¥âÅâ„êDÚ#âDÚ#â#Ú#âCÚ#âDÚ#âDâCâdâ¥â¥â„â¥â¥ê¥â„ê…â„â…â„â¥â„â¥â„ê¥â„ê…â„ê…â„ê¥â„ê¥â„ê¥â¤êÅâ¤êÅê¥ê¥â¤êÅâ¤ê¥â¤ê¥â„ê¥â„ê…â„ê…â„êdÚ#âCâ#âDâCâdâCêCâCâCâCâdâ¥ê¥â„ê¥â„ê…â„ê…â„ê…â„â…â„â…â„â¥â¤êÅâ…ê…âdâ…â„ê…â„ê…â„ê…âdê…â„ê¥â¥êÆâ¥ê¥â„ê¥â¤êÅâ¥ê¥â…ê¥â¥ê„â#âDâCêdâCêdâCâdâCâdâcâ¥ê¥ê¥â„ê…â„ê…â„â…â„ê¥â„â¥â„ê…â„ê…â„ê…â„ê„â„â„âdâ„âdâdÚDâdÚCâdÚdâdÚdâ„âdâ…â„â…â„â…â„âÅâCâ#Ú"â#Úâ#ââ#ââÚâ#Ú„â¥âdâ„â„â„â„â…Ú„â„Údâ…â„â…Údâ„âdâ„âdâ„âEÒDÚeÚDÚeÒDÚeÒDÚeÚDÚeÚDÚeÚDâeÚdÚeÚDÚEÚDÚEÚDâEÚDâeÚDâ…Údâ…Údâ…Ú…â¥â„â¥Ú¥âDÚ#âDÚ#ÚDÚ$âDÚ#âDÚ#âCÚ#âDÚ#â¥Ú…â…Ú…â¥â„â…â„â…â„â¥â…â¥â„â¥â„â…â„â…â…â…â„â…â„â¥â„â¥â¥â¥â…ê¥â…ê¥â…ê¥â…ê¥â…ê…â„ê¥â…â…â„â…â#â$Ú#âDâCâDâCâDâCâDâCâDâCâ…â…ê…Ú¥â¥â„â…âdâ…âdâ…âdâ…â„â¥â¥â¥â¥â¥âdâeÚeâ…â…ê…â…ê…âeê…âdâ…â…ê¥â¥ê¦â…ê…â…ê¥â¥ê¦â…â¥â…â¥âDâDÚCâdâCâdâDâdâCâDâCâdâdêÅâ„â…â„â…âdâ…â„â…â…â…â…â…â…â…âdâ…â„â…â…ê…â„â…âdâeÚDâdÚDâDÚDâeÚDâ…Údâ…Ú„â…Ú„â…âdâ¥âdâ$Úâ#ÚÚÚÚÚâ#ÚâÚãáeÚ…â…âdâ…Údâ…âdâeÚdâeÚdâ…Údâ…ÚdâdÚdâdÚdâDÚeÚDÚdÚDÚdÚdâ…Údâ…ÚdâdÚDâdÚDâdÚCâdÚCÚdÚDâdÚDâdÚDâdÚ„â…Údâ…â„â¥â¤â¥â„â…â#âCÚ#â#Ú#âDâ#âCÚ#âDâ#âDâ#âCÚ„âÅâ„â¥â„â…â„ê…â„ê…â„ê…â„ê¥â„ê…â„ê…â„ê…â„ê¥â„ê…â„ê¥â¤êÅâ„ê¥â¤ê¥â„ê¥â¤ê¥â¤ê¥â„ê¥â¤êÅâ¥êÅâDêDâCâdâCâdâCâCâCâCâCâdâCâDâDâ¥ê„ê¥â¤ê¥â„ê…â„ê…â„ê¥â¤ê¥â„ê¥â¤êÅâ„ê…âdâ…â„ê…â„ê¥â„ê¥â„ê…â„ê¥â¥êÅâ¥ê¥â„ê¥â¤êÅâ…ê¥â¥âÆâdêDÚCâdâCêdâcâ„âcêcâcâ„âCêdâ¥êÅâ„ê…â„â„â„ê…â„ê¥â„ê…â„ê…â„ê…â„ê¥â¤ê¥â„ê…âdâ„âdâdâDâDâDâdÚdâ„â„â„Ú„â…â„â…â„â…â„êDÚ"âCÚâ#ÚâÚâ#Úâ#Ú"âCÚCâ…â„â„Údâ„â„â…âdâ„âdâ…âdâ…Ú„â…âdâ„âdâdÚDÒ$ÚEÒDÚEÚDÚeÚdÚ…ÚdâeÚDÚEÚDÚEÚDÚEÚDÚEÚDÚDÚDÚeÚDâeÚdâ…Údâ…Ú„â¥Ú…â¥Ú„â¥âDÚ$Ú#â$Úâ$Ú#â$Ú#âDÚ#â$Ú#âDÚ#âDÚ…ê¥â…â…â„â…â„â…â„â…â„â…â„â…â„â…â„â…â„â…â„â…âdâ…â„â¥â¥â¥â…ê¥â…ê¥â…ê¥â…ê¥â¤ê¥â„â¥â…âÆâ¥âDÚ#âDâCâDâCâDÚ#âDÚ#âDâCâDÚDâDÚdêÅâ¥â¥â…ê¥â„â…â…â¥â¥ê¥â…â¥â…ê¥â„â…â…â…âeâ…â…â¥â…ê¦â…ê…âdâ…â…ê¥â…ê¥â…ê¥â…ê¥â¥â¦â¥âÆâ¥âDÚDâDâCâDâCâDâCâDâCâdâdâDâDâeÚ¥ê…â…â…â…â…â…â…â…â…â…â…â„â…â„â…â„â…â„â…âdâ…ÚdâeÚdâeÚDâDÚDâeÚdâ…Ú„â…Údâ…Ú…â…Ú…âeâÚ#Úâ#ÚâÚãÙÚãá#Úâ#Ú#â#ÚDâ¥âdâdÚdâ…ÚDâeÚdâ…Údâ…Údâ…ÚeâeÚDâeÚDâDÚDÚDÚeÚDâeÚdâ…Údâ„ÚdâdÚDâdÚDâdÚDâdÚDâDÚCâdÚDâdÚdâ…Údâ…Ú„â¥â„â¥â„â¥âdê#Ú#âCÚ#â#Ú#âCÚ#âCÚ#âCÚ#âDâ#âDâCâdâ¥ê¥â„â…â„ê…â„ê…â„ê¥â„ê…â„ê¥â„ê…â„ê¥â„â…â„â…â„ê¥â„ê¥â„ê¥â¤ê¥â„ê¥â¤ê¥â¤êÅâ¤ê¥â¤êÅâÅê„ÚCâCâCâcâ#âDâCâCâCâCâCâCâ#âDâCâdâ¥êÅâ„ê¥â„ê¥â„ê¥â„ê¥â„ê¥â¤ê¥â„ê…â„ê¥â„ê¥â„ê¥â¤ê¥â¥ê¥â„ê¥â„ê¥â„ê¥â¤ê¥â¤ê¥â¤êÅâÅêÅâÅê…â#âdâCêCâCâCâCêCâCâdâCêdâCâDâCâ¥â¥êÅâ…ê…â„ê…â„ê¥â„ê¥â„ê…â„â…â„ê…âdâ…â„â…âdâ„âdâdâdâdÚDâdÚdâ„â„â…Ú„â¥â„â¥Ú„â…â#â#Úâ#Úâ#ââÚâ#â"â#Ú"â#Ú"âCÚ„â…ÚdâdÚdâ„âdâ„âdâ…Ú„â„ÚdâdÚDâdÚdâdÚDÒ$ÚEÒDÚEÚDÚDÚDÚeÚDâEÚDÚDÚDÚeÚDâDÚDÚEÚDâdÚDâdÚDâeÚdâeÚeâ…Ú…â…Ú…â¥Ú…âDÚ#Ú$Ú#â$Ú#â$ÚâCÚ#âDÚ#â$Ú#âDÚ#âDÚCâ¥â…â…Ú„â…Ú„â¥â„â…â„â…â„â…â„â¥â„â…â„â…â„â…â„â…â„â…â„â¥â…â¥â…â¥â…ê¥â…ê¥â…ê¥â¥â¥â¥ê…âCÚDÚCâdâCâDÚCâDÚCâDâCâDâ#âDÚ#âDâCâ¥â¥ê…â…â¥â¥â¥â¥â…â„â…â„ê¥â„â…â…â…â…ê¥â…ê…â…ê¥â…ê…â…ê¥â…ê¦â…ê¥â…ê¥â…ê¥â…ê¥â¥êÆâ¥ê¦âDâDâDâDâCâDâCâDâCâDâdêdâDâDâ#âDÚDêÆâÅê¦â…â…â…â…â…â¥â…â¥â…â…â„â…âdâeÚdâ…âdâ…ÚdâeÚDâeÚDâdÚDâeÚdâ…Údâ…Ú…â¥Ú…â¥âdÚ#ÚâÚÚ#Ú#â#ÚâÚâ#Úâ#Úâ#ÚÚdÚ…â…ÚdâeÚDâdÚdâdÚDâeÚDâeÚDâdÚDâdÚDâ#ÚDÚDÚdÚ$ÚDÚ#ÚDÚDâdÚDâDÚCÚDÚDâdÚDâDÚDâdÚDâdÚDâdÚDâeÚ„â…â„â¥â„â¥Ú¥â…Ú#âCÚ#âCÚ#âDÚ#âDÚ#âCÚ#âCÚ#âCÚCâDÚCâDâdâ¥â„â¥â„â¥â„ê¥â„â„â„ê„â„ê¥â„ê¥â„â…â„ê…â„ê…â„ê¥â„ê¥â¤ê¥â„ê¥â¤ê¥â¤ê¥â¤êÅâ¤êÅâÅêÆâCâDâCâdâCêdâCâdâCâdâCâCâ#âDâ#âDâCâdâCâÅê¥ê¥â„ê¥â¤ê¥â¤ê¥â„ê¥â„ê…â„ê¥â¤ê¥â„ê¥â…ê¥â„ê…â…ê¥â¤ê¥â„ê¥â…ê¥â¥ê¥â…ê¥â¤êÅâ¤êÅêdêDÚCâdâCêCâCâdâCêdâCâdâCâDâCâDâCêdâ¥êæê¤ê¥â„ê…â„ê¥â„ê¥â¤ê¥â„ê¥â„â…âdâ„â„â…âdâ„âdâdâdâ„âdâ„âdâ…â„â…â„â…Ú„âÅâ„êCÚ"âCÚâ#Ú"âCÚ"âCÚ"â#â"â#ââ#Úâ#Ú#Ú„â„â„âdâ„âdâdÚcâdÚDâdÚcâdÚDâdÚCâdâ$Ò$ÚDÚ$ÚDÒ$ÚDÚDÚEÚDÚDÚ$ÚDÚDÚEÚDÚEÚ$ÚDÚDÚdÚDâeÚDâeÚdâ…Ú„â…Ú„â…Ú…â¦âDÚ$Ú#â$ÚâDÚ#â$Úâ$Ú#âDÚ#âDÚ#âDÚ#âDÚ#âDÚ„ê¥â…â¥â…â…â…â…â„â…âdâ…â„â…â„â…â„â…â…â…â„ê…â„â¥â¥â¥â¥â¥â…ê¥â¥êÆâ¥ê¥â…ê¥â¥êÆâ…âDÚCâDÚCâdâCâdâCâDâCâDâCâDÚ#âDÚDâDâCâDÚdêÆâ¥â…â…â¥â¥â¥â…ê¥â„ê…â…â…â…ê¥â„ê…â…ê¥â…â…â…ê¥â…ê¥â…â…â…â¦â¥ê¦â…ê¦â¥êÅâ¥êÆâ¥âDÚ#âdâDâDâCâDâCâdâCâdâCâDÚDâdâCâdâDâ…â¥ê¥â„â…â…â…â„â¥â¥â¥â„â¥â…ê…â…â…âdâ…â„â…ÚdâeÚDâeÚdâ…âdâdÚdâ…â…â…âdâ¥Ú¥â…âÚCÚ#â$Úâ#Ú#â#Ú#â#Úâ#ÚâÚãáÚâ#Ú#â…Údâ…ÚdâdÚDâdÚDâdÚDâdÚDâeÚDâdÚDâ#ÚDÒDÚDÚ#ÚDÒDÚDÚDâDÚDâDÚCÚDÚDâDÚDâdÚDâdÚDâdÚdâ…âdâ…Ú„â…Ú„â¥Ú„â¥âdâDÚ#â#Ú#â#Ú#âCÚ#â#Ú#âCÚ#âCÚ#âCÚ#âCÚ#âCâ#âdâ¥ê¥â„â¥â„â„â„ê…â„â…â„ê…â„â…â„ê¥â„ê…â„ê…â„ê¥â¤êÅâ¤êÅâ¥êÅâ¤êÅêÅêÅâ¥êÅâ¤êÅâ¥êdÚCâdâCâDâCâdâcâdâCâCâCâCâCâCâCâdâCâDâCâdâÅêÅâ„ê¥â„ê¥â¤êÅâ¥êÅâ„ê¥â„ê¥â„ê¥â„ê¥â…ê…â„ê¥â„ê¥â„ê…â„â¥â¤êÅâ¥ê¥â¥êÅâÅêÆêÅê…âCâDâcêdâCêdâCêdâCâCâCêdâCâdâCêdâCâdâCâ¥ê¥ê¥â„ê¥â„ê¥â¤êÅâ„ê¥â„ê¥â„ê¥â„ê…â„â„âdâ…âdâ„âdâ…âdâ„âdâ…â„â¥â„ê…â¥âÅâCâCÚ#âDâ#âCÚ#â#Ú"âCâ"â#ââÚâ#Úâ#Ú"âCÚ„â„â„â„âdâdÚdâdÚdâdâdâ„âdâ„âdâ…âDÒ#ÚDÒ$ÚDÒ$ÚDÒDÚEÚ$ÚDÚDÚDÚDÚDÚDÚEÚDÚeÚDâeÚDâeÚdâeÚdÚ…Údâ…Úeâ…Ú…âDÚ#ÚDÚ#âDÚÚ$Ú#âCÚ#âCÚ#â$Ú#âCÚ#â$ÚâCÚ#âDÚ#â¥â¥â¥â„â…â„â…â…â…âdâ…â…â…â„â…â„â…â„â…â„â¥â„ê¥â…â¥â¥â¥â¥â¥â¥êÅâ¥êÆâ¥êÆâÅê…âDÚDÚDâDÚ#âDÚDâdâCâDâ#â$Ú#âDÚCâDâCâdâCâDâCâ…Ú¥ê¥â…â…â…êÅâÅê¥â…ê¥â…ê¥â…ê…â„ê…â„ê…â…ê…â…ê¥â…ê†â…â…â…êÅâ¥êÅâ¥êÆâ¥êÆâÆê¥âDâDâCâdâCâdâCâDâCâDÚDâDâCâDâCâDâCâDâCâDâDê¥â…ê…â„ê¥â„ê…â…ê¥â¥â…â„â…â„â…âdâeÚdâ…Údâ…âdâ…Ú„â…ÚdâeÚdâ…Ú…â¥â„âÆâ…â$Ú#âCÚ#âDÚ#âCÚ#â#Ú#â$ÚãáãÙâÙÚâ#Úâ#ÚâDÚdâ…ÚdâdÚDâdÚdâdÚdâdÚdâdÚDâ…Údâ#ÚDÒ#ÚDÒDÚDÚCÚdÚDâDÚDâDÚDâDÚDâDÚDâdÚDÚdÚdâdÚDâdÚDâdÚdâ…Údâ„Ú…â„Úâ#Ú#â#Ú#â#Ú#â#Ú"âCÚ#âDâ#âCâ#â#Ú#âCÚ#âDâ#âCÚdâÆê„â¥â„â¥â„ê…â„ê…â„â…â„ê¥â„ê…â„ê¥â¤ê¥â„ê¥â„ê¥â¤êÅâ¤êÅâ¤ê¥â¤êÅâÅêÆâÅêæâCâDÚCâDâCâDâ#âDâCâCâ#âCâ#âCâCâdâCêdâCêdâcêdâcâÅê¥ê¥â…ê¥â¤êÅê¥ê¥â„ê¥â¤ê¥â„ê…â„ê¥â„ê¥â„ê¥â¥ê¥â…ê¥â…ê¥âÅêÅâÅêåâÅêÅâÅêæêdêDâCêdâCêdâCêdâCêCâCâDâCêdâCâdâCâCâCâCâCêdâ„ê¥â„ê¥â„ê¥â„ê¥â¤ê¥â„ê¥â„ê…â„ê„âdâ„âdâ…â„ê…â„â„â„â…Ú„â…â„â…Ú„â¥â…êdÚ#âCâ#âCâCâCâ#â#Ú"âCÚâÚâáÚâáÚâ#ââ#Ú#âdâdâdÚdâdâdâdâdâ„âdâ„âdâdÚCâdÚ$Ò$Ú$Ò$ÚEÒDÚEÚDÚeÚDÚEÚDÚDÚDÚDÚDÚDÒDÚeÚDâEÚDÚEÚDÚDÚDâeÚdÚ…ÚdÚ…â#Ú#Ú#Ú$Úâ$ÚÚ#Úâ$Úâ$Ú#â$Úâ$Úâ$Ú#â$Ú#â$Ú#âDÚ…â¥â…â…â…â…âdâ…âdâ…â…â¥â„â¥â„â…â„â…â„â…â„â…â„â¥â…â¥â…â¥â¥â¥â¥êÅâ¥êæâ…âDÚCâDÚ#âDÚCâDâCâDâ#âDÚ#âDÚCâDâCâDâDâdâCâdâCâDâdêÆâ¥â¥â…ê¥â¥ê¥â…â¥â¥ê¥â…ê…â…â…â…ê¥â…ê¥â…ê¥â¥ê¥â¥ê¥â¥êæâÅêÆâÅêÆâÅêÆâ¥âDâDâdâDâdâCâdâDâdâCâDâCâDâCâDâ#âDâCâDâCâDâCâdÚ…ê¥â…ê¥â„â…â„â¥â„ê…â…ê…âdâ…âdâ…ÚdâeÚdâ…âdâ…Ú„â…Ú„â¥Ú„â…Ú„â…Ú…âeâ#ÚCÚ#âCÚ#â$Ú#âCÚ#âÚÚÚâ#ÚÚÚãÙÚÚÚâ#Ú#â…ÚDâdÚdâeÚDâdÚdâdÚdâeÚDâdÚDâDÚDÒ#ÚDÚDÚDÚDâDÚdâ…ÚDâDÚ#ÚDÚ#ÚDÚDâdÚDâdÚCâDÚDâDÚDâdÚdâ…Údâ¥ÚDâCÚ#ÚCÚ#â#Ú#â#Ú#â#Ú#â$Ú#âDÚ#â#Ú#â#Ú#âCÚ#âDâ#âCÚ#âDâ¥ê¥â„â¥â„ê…â„ê…â„ê…â„ê…â„ê…â„ê¥â„ê…â„ê¥â„â¥â¤ê¥â„â¥â¤êÅâ¥êÅâÅêÅâÅê„ÚcâdâcâdâcâdâCêdâCâdâCâdâCâdâCâdâCêdâcêdâcêdâCâDâÅêÅêÅêÅâ…ê¥â¥ê¥â¥ê¥â¤ê¥â„ê…â„ê¥â¤ê¥â¤ê¥â¥êÅê¥êÅêÅêæêÅêÅêÅêÆâÅêÅâÅê…âCâDâCê„âCêdâCâdâCâdâCâDâCâCâCâDâ#êCâCâCâCêdâCâ„â¤ê¥â„ê¥â„ê¥â„ê¥â„ê„â„ê…â„ê„â„â„â„â„âdâ…â„â¥â„â„â„â…â„â…Ú„â¥âCâCÚ#âCÚ#â#Ú#â#Ú#â#Úâ#Úâ#Úâ#ÚâÚâ#Úâ#Ú#â#Údâ„âdâ„âdâdÚcâ„âdâdÚCâdÚCâdâeÒDÚDÒ$ÚDÒDÚDÒ$ÚDÚDâEÚDÚ$Ò#ÚDÒDÚEÚDÚDÚ$ÚDÚDÚEÚDÚdÚDâeÚdÚ…Ú…â$ÚÚDÚ#Ú$Ú#Ú$Ú#â$Ú#Ú$Úâ$Ú#Ú$Ú#â$Ú#âDÚ$âDÚ#â$Ú#âCÚ#â…Ú…â…âdâ…â„â…â„â…âdâ…â„â…â„â…â„â…â…ê¥â„â¥â…â¥â…â¥â…â¦â¥âÆâ¥âÆâÅê…âCâdâCâdâCâdâDâdâCâDâCâDâCâdâCâdâDêdâDâ„âdâdâCâDâDâ¥âÅêÆâ¥â…â…êÆâ¥ê¦â…ê¥â…ê…â…â…â…ê¥â¥ê¦â…ê¥â…ê¥â¥êÆâÅêÆâÅêÆâ¥êÆâÅê¥âdâdâCâDâCâdâCâDâCâDâCâdâCâDâCâDâ#âDÚ#âDÚCâDâCâDâDêÆâ¥â¥â…ê¥â…ê¥â…ê¥âdâ…âdê…âdâ…â„â…âdâ…Údâ…Ú„â…Ú„â…Ú„â…Údâ…Údâ$Ú#âDÚ#â$Úâ#ÚÚ$ÚÚÚãÙ#Úâ#ÚãÙÚãÙÚãÙÚãÙ#ÚãÙDÚdâeÚDâdÚDâdÚDâdÚDâdÚDâeÚDâDÚDÒ#ÚDÒDÚDÒDÚDÚDâdÚDâDÚ#ÚDÚ$ÚDÚDâDÚCÚDÚDâdÚDâeÚdâdÚdâ…Ú„âdÚÚDÚ#â#Úâ$ÚCâDÚ#âDÚ#â#Ú#âCÚ#âCÚ#âCÚCâCÚ#âCÚ#âCÚ#âDâDâ¥â„â…â„â…â„ê¥â„â„â„â…â„ê…â„ê¥â„ê¥â„â¥â¤ê¥â¥ê¥â¥êÅâ¥êÅâ¥êÅâÅêÅâCâDâCâdâCêdâcê„âcêdâCêdâCêdâcê„âCêdâcâ„âcê„âCêdâcê„âdâÅêÅêÅâ…ê¥â¥êÅê…ê¥â„ê¥â„ê…ê…ê¥ê¤ê¥â¥ê¥â„ê¥â¤êÅêÅêæêÅêÆâÅêÆâ¥êÆê„ê„âcêdâCâdâCêdâCâCâ#âDâCêdâCâDâCâCâCâCâCâCâCâdâCêdâ„êÅê¤ê¥â¤êÅâ¤ê¥â„ê¥âdê„â„ê„â„ê…â„â…â„â…â„â¥â„â¥â„â…Údâ…Ú„êDÚ#âDâCâCâ#âCââ#Úâ#Úâ#Úâ#Úâ#ÚâÚâÚâÙÚâÚ#Ú„âdâdÚDâdâDâdâcâdâdâ„âdâdÚDÒDÚDÒ$ÚDÒ$ÒDÚ$ÚEÚDÚEÚDÚ$Ò$ÚDÚ$ÚDÚ$ÚDÚ$ÚDÒDÚeÚDâeÚDâ…ÚdÚ…Ú#Ú#Ú#Ú$ÚÚ$Ú#âDÚDÚDÚÚ$Úâ$Ú#â$Ú#âDÚ#âDÚ#â$Ú#âDÚ#âDÚ#âDÚdâ¥â„â…â…â…â„â…âdâ…â„â…â„â…â…â¥â…â…Ú…â…Ú…â¥â…âÆâ¥âÆâ¥â¦â¥âÆâ…âDÚ#âDÚ#âDâCâdâdâdâdâ„âdâdâDâ„âdêdâCâdâdê„âdâdâDâdâdâdâdêÆâÅê¦â…êÆâ¥ê¥â…ê¥â…ê…â…ê¥â…ê¦â…ê¥â…ê¥â…ê¥â¥êÆâ¥êÆâ¥êÆâ¥êÆâ¥âdâdê„âDâDâCâDâCâdâCâDÚDâDâCâDâCâDâ#âDÚ#âDÚ#âDÚCâdâCâdÚ…êÆâ¥â¥â¥êÅâ¥ê¥â„â…âdâ…â„â…â…â¥â…â…â…â…Ú„â…Ú„â…Údâ…Ú…âeÚ#Ú$Ú#âDÚ#â$Úâ$ÚÚÚãÙÚÚÚâÚâÙÚÚÚãÙÚãÙÚãÙÚâeÚDâdÚDâdÚdâeÚdâdÚdâDÚCâÒdÚDÚDÒ#ÚDÒDâdÚDâeÚDâDÚDâDÚCÚDÚ$ÚDÚDÚdÚDÚdÚdâdÚdâdÚdâ…ÚCâ#Ú#â#Ú#â#Ú#âDÚCâDÚ#âDÚ#â#Ú#âCÚ#âCÚ#âDÚCâDÚCâDÚCâDÚCâDÚ#âDÚ¥ê¥â„ê¥â„ê¥â„â„â„ê¥â„ê…â„ê…â„ê¥â„ê…â„ê…â„â¥â¤ê¥â¤êÅâÅêÅâ¥êdÚCâDâCâDâCâCâCâdâcê„âƒê„â„ê„âcê„â„ê„âcê„âcê„âCêdâcâdâcâdâ¥êæêÅêÅâÅêÅâ¥ê¥â¤ê¥â„ê¥â¤êÅê¥ê¥â¥ê¥â¥ê¥â¥êÅê¥êÆê¥êÆêÅêÅâ¥ê…âcê„âdê„âCêdâCâdâCêCâCâdâCêDâCêdâCêCâ#âDâ#âDâCâCâCêCâCâ…âÅêÅâ¥êÅâ¥ê¥â¤ê¥â„ê„â„ê…â„â…â„ê…â„â¥â„â¥â„â¥â„â„Údâ…Ú#â$ÚCâCâ#âCâ#â#Ú#â#Úâ#Úâ#Úâ#ÚâÚâ#Úâ#ÚâÚÚÚâÙÚDâdÚdâ„âdâ„âdâ„âdâdâCâdâãÉ#ÚeÒ$Ò$Ò$ÚDÚDÚEÚDÚEÚDÚEÚ$ÚDÚ$ÚDÒ$ÚEÒDÚeÚDÚeÚDÚeÚDÚ…ÚdÚÒÚ$ÚÚ#ÚÚ$Ú#ÚDÚ#â$Ú#â$Ú#â$Ú#â$Ú#âDÚ#âDÚ#âDÚ#âDÚ#âDÚ#âDÚ#â…Ú¥â…â„â¥â„â…âdâ…â…â…â…â…â…â…â…â…â…â…âdâ…â…â¥â„â¥â…â¥âÅê…âdâdâ#âDâCâDâCâDâCâdâCâdâdê„âdêdâdâ„âdâdâdâdâDâdâCâdâCâdâCâ…âÆòæâÅêÆâ…ê¥â¥ê¥â¥ê¥â…ê¦â¥ê¦â…ê¥â…ê¦â…ê¦â¥êÆâÅê¦â¥êÆâÅê¥âDâ„âdêdâdêdâCâDÚ#âDÚDâdâDâDâCâDâCâdâCâDâ#âDÚ#âDÚCâDâCâDÚ#âÆâÅêÆâ¥â¥â¥â¥â„â…âdâ…â„â…â„â…â…â¥â„â…Ú…â…Ú…â…âdâ…âDâÚâCÚ#âDÚ#â$Ú#â$ÚÚÚâÚÚÚãÙÚâÙÚãá#ÚÚ#ÚÚÚâÙÚãÙDÚdâeÚdâdÚdâdÚdâdÚDâdÚDââÑÒDÚDÒDÚDÚDâDÚDâdÚDâDÚDâDÚ$ÚDÚ#ÚDÚDÚdÚDÚdÚDâeÚDâeÚdâDÒÚ#ÚÚ#ÚÚ#Ú#â#Ú#âDÚ#âCÚ#âCÚ#âCÚ#âCÚCâDÚ#âDÚCâDÚ#âDÚ#âDâ#âDâCâ¥ê¤ê¥â„ê…â„â„â„ê…â„ê¥â„ê¥â„ê¥â„ê¥â„ê…â„â¥â¤ê¥â¤êÅâ¥êÆâcêdâCâdâCâCâCâdâCâdâcêdâCêdâcêdâcêdâcâ„âcê„âcê„âCêdâCêDâCâdâdâÅêÅêÅâ¥êÅê¤êÅêÅêÅâ¤ê¥â¤êÅê¥ê¥â¥ê¥â…ê¥â¥êÅêÅêæêÅêÆâÅêæêdêdâdê„âcê„âCêdâCâDâCâdâcê„âCêdâCêdâCêdâCâCâCâCâ#êCâ#êCâ#âCâ„âÅâÅêÅâ¤ê¥â„ê¥â„ê…â„ê…â„â…â„ê…â„â„âdâ…â„â¥â„ê…â„êDÚâCâCâCâ#â#Ú#â#Ú"âCÚ"âCÚâ#ÚâÚâÚâÚâÙ#Ú#â#ÚâÚâ#Ú#âdâdâeÚdâ„âdâdâcâdÚcâdâãÑÂÑ$ÒDÚEÒDÚEÒDÚEÒDÚEÒDÚEÚ$ÚEÚ$Ú$Ò$ÚEÚDÚeÚDÚeÚDÚeÒdÚeÚÚ$ÚÚÚÚ$ÚÚ$ÚÚ$Ú#Ú$Úâ$Ú#âDÚ#âDÚ#ÚDÚ#ÚDÚ#âDÚ#âDÚ#âDÚDâDÚ#âDÚdâÆâ„â…Ú„â…Ú„â…â…â…â„â…â…ê¥â„â…â„â…âdâ…â„â¥â…â¦â¥âÆâ…âDÚDâdÚdâdâCâdâDâdâDâdâCâDâCâDâDâdâCâDÚCâdâdâdâDâdâCâDâDâDâCâdâdêæâÅê¥â¥ê¥â¥êÆâ¥ê¥â¥ê¥â…ê¥â…ê¥â…ê¦â…â¦â¥êÆâÅêÆâ¥êÆâ¥âdâCâdâdêdâdâdâCâDÚ#âdâDâdâDâdâDâDâCâDâ#âDâCâDâCâDâ#âDâ#âDÚ#âDÚ…êÅâ¥â¥â…â¥â¥â¥â…ê¥â„â…âdâ…âdâ…âdâ…Ú…â¥â„â¥â…âeâÚ$Ú#âDÚ#â#Úâ#Úâ#Ú#â$ÚÚÚãÙÚãÙ#ÚÚÚâÙÚÚ#ÚÚÚâÙÚÚÒDâ…ÚDâ…ÚdâeÚDâdÚDâeÚDââÙãÑâÑdÚdÚeÚDÚdÚDÚdÚDÚDÚDâDÚ#ÚDÚDÚdÚDÚdÚDÚdÚdÚ„ÚdÚ…Ú#Ú$Ò#â#Ú#âCÚâ#Úâ#Úâ#Ú#â#Ú#â#Ú#âCÚ#âDÚ#âCÚ#âCÚ#âDâCâDÚcâdâCâcâCâDâ¥âÅâ„â…â„ê…â„ê¥â„ê¥â„ê¥â„ê¥â…ê¥â„ê…â„â…â„ê¥â¥êÅâ¥êdÚCâDâcâ„âcêdâCêdâcêdâCêdâCâdâCêDâCâDâCâdâcâdâCêdâCêDâCêdâCêDâCêdâÅêæê¥êÅê¥êÅêÅêÅê¥êÅê¥êÅê¥êÅê¥ê¥â¥êÅê¥êÅâ¥êÆêÅêÅâÅò„âcêdâCê„âcêdâCêdâCêdâCêdâcêdâcêdâCêCâ#êCâCâCâCâCâCêCâ#âCâCâCâCâ„âÅêÅâ¤ê¥â„ê¥â¤êÅâ„ê¥â„â„âdâ…â„ê…âdâ…â¤ê¥â¤âÅâCâCÚ#âCÚCâCâ#â#Ú"âCÚ"â#Ú"â#ÚâÚâÚâ#ÚâÚâ#Úâ#ÚâÚâÙÚâ#Údâ…âdâ„âdâdÚDâeâdâ„âãÑãÙãÑ#ÚeÚDÚeÒDÚeÒDÚDÒDÚEÚ$Ú$Ò$ÚDÒDÚeÚDÚeÚDÚeÚdÚ…ÚdÚ#Ò#Ú$ÚÚ$ÚÚ$ÚÚ$ÚÚ$ÚÚ#Úâ$ÚâDÚ#Ú$Ú#âDÚ#âDÚ#â$Ú#âDÚDâdÚCâDÚ#âDÚ#â…Ú¥â…Ú…â…â…â…â„â…â„â…â…ê¥â…ê¥â…â…â…â…â…ê¥â…êÆâÅêeâ$âDÚ#âdâdâ„âdâdâCâdâCâdâCâDâCâDâDâDâ#âDâCâDâCâdâCâDâCâdâCâDâDâDâDâ¥âÆêÅâ¥êÆê¥êÆê¥êÆâ¥ê¥â…ê¥â¥ê¦â¥ê¦â¥êÆâ¥âÆâ¥êÆâÅê…êCâdâCâDâDâdâCâDâCâDâDâDâDâdâDâdâCâDâCâDâ#â#â#âDâCâDâCâDÚCâDÚâDÚ#â¥â¥ê¥â„â…â„â…â„â…â„â…âdâ…âdâ…âdâ…â„â¥â…â¥â…âCÚ#âCÚ#âCÚ#â$Úâ#Úâ#ÚÚ#ÚâÚãÙÚÚÚÚÚãáÚãÙÚãÙÚâÙÚãÙ#ÚÚdÚdâ…ÚdâeÚDâeÚDâeÚDââÙÒâÙÒDÚdÚDÚDÒDÚDÒCÚdÚDâDÚ$ÚDÚDâDÚDÚdÚDâeÚdâ…Ú„âDÒ#ÚCÚ#â#Ú#â#ÚÚ#ÚÚ#Ú#â#Ú#â#Úâ$Ú#â#Ú#âDÚ#âDÚ#âDÚ#âCÚCâDÚCâDÚCâCÚ#âDÚCâ…â¥ê…â„ê…â„ê¥â„ê¥â¥ê¥â„ê¥â„ê¥â„ê…â„ê¥â„ê¥âÅêÆâCâDâ#âDâCêdâcêdâCâDâCâDâCâDâCâdâCêCâCâCâCâCâCâDâcâdâCâdâCêdâCêDâCâdâ„êåêÅêÅêÅêÅêÅêÅê¤êÅê¥ê¥â…ê¥ê¥êÅê¥êÅê¥êÅê¥êÆêÅêÆêcêdâcêdâCâdâCâdâCâDâCâdâCêdâCâdâcêdâCâCâ#êCâCâdâCêCâCâCâ#âDâ#â$Ú#âCâdâÆê„ê¥â„ê„â„ê¥â„ê¥â„ê„â„ê„âdâ„âdâ¥â„â¥â¥ê„ÚCâCâ#âCÚâ#ââ#ââ#Úâ#Úâ#Ú"â#ÚâÚâÚâÚâÚâÙÚâÙÚÚ#Ú#â#Ú#Ú…âdâ„âdâdÚcâdÚCâdÚãÑâÑãÑâÙ$ÒDÚEÒDÚEÒ$ÚDÒDÚEÚDÚDÚDÚEÚ$ÚEÒDÚeÚdÚeÚeâeÚ#Ú$Ò#Ú$ÚÚ$ÚÚÒÚÒÚ$ÚÚ$ÚÚ$Úâ$Úâ$ÚÚ$Ú#Ú$Ú#âDÚ#âDÚ#âDÚ#âDÚ#âDÚ#âDÚDâÆâ…â…Ú…â…â…â…â…ê…â„â…â…â¥â…ê…â„â¥â…ê¥â¥âÆâ…âdâDâDâDâDâDâdâCâDÚ#âDÚCâDÚDâDâCâDâCâDÚCâDÚCâdÚCâDÚCâDÚDâDâCâDÚ#âDâCâ„â¤êëÅêÆâ¥êÆâ…ê¥â¥ê¥â…ê¦â…ê¦â¥ê¦â¥ê¥â¥êÆâ¥êæê¥âdâdê„âDâdâDêdâCâDâCâDâCâdâCâDâ#âDâCâDâCâDâCâDâCâDâCâDÚ#â$Ú#âDÚ#â$Ú#âDÚ…ê¥â„â…âdâ…âdê…â„â…â…â…âdâ…âDâeÚdâ…Ú…â…âCÚDÚ#â$Úâ$Úâ#ÚâÚâÚãÙÚÚÚÚÚãáÚâÙãÙãáÚâÙãÑâÙãÑâÙãÑãÙ#ÚÚ#ÚDâ…ÚdâdÚdâdÚDâdÚDââÙãÑâÙãÑÚDÚDÚDÒDÚDÚDÚDÚDâDÚDâDÚCÚDÚDÚdÚDÚeÚdÚ…Ú#Ú#Ò#â#Ú#â#Ú#â#ÚÚ#ÚÚ#Ú#â#Úâ#Ú#â#Úâ$Ú#â#Ú#âDÚ#â$Ú#â#Ú#âDâCâDâCâDÚCâCÚ#âDÚ„âÅâ„â¥â„ê…â„ê¥â„ê¥â„ê¥â„ê¥â„ê¥â„ê¥âÅêÅâÅê„âcâ„âcêdâCâDâcêdâcâdâCâdâCâdâCâDâCêdâCâdâcâdâCêdâCâCâCâCâCêdâCâDâCâdâcê„âÅêÅê¥êÅê¤ê¥ê¥êÅê¤êÅê¥ê¥â¥êÅê¥êÅê¥êÅêÅêÆâÅê„âCêdâcêdâCêdâCêdâCâdâCâdâCêCâCâCâCâCâCâCâCâCâCêdâCêCâ#âDâ#âCâ#â#Ú#âDâ#âdâ¥ê…â„ê…âdê…â„ê„â„ê„â„ê…âdâ„âdâ…â„â¥âCâCÚCâCâ#â#Úâ#Ú"â#ââ#ââ#Úâ#Ú"â#ÚâÚâÚâáãÙâÚâÙÚâÙÚâÙÚâ#ÚâÚdâ…ÚdâdÚDâdÚCâdÚãÑãÙãÑâÙãÑÚDÒDÚEÒ$ÚEÒ$ÚDÚ$ÚEÚ$ÚDÚ$ÚEÚ$ÚeÒDÚeÚDÚÒÚ$ÚÚ$Ú#Ú$ÚÚ$ÚÚ$ÚÚ$ÚÚ#ÚÚ$Úâ$ÚÚ$Ú#Ú$Ú#â$Ú#Ú$Ú#â$Ú#âDÚ#âDÚ#âDÚ#âDÚ#âdÚ¥â¥â„â…â…â…â…â…â…â…â„â¥â…ê…â…ê¥â¥âÆâ¥ê…âDâdÚdâdâCâDÚDâDÚCâDÚDâdâdâdâCâdâCâdâCâDÚCâdâCâdâCâDÚCâDâCâDâ#âDÚ#âDâDâdâCâ…Ú¥ê¥â…ê¥â…ê¥â…ê¥â…ê¥â…ê¥â¥êÆâ¥êÆâ¥êÆâÆê…âDâdâDâdâCâDâDêdâCâDâCâdâCâDâCâDâ#âCÚ#âDÚ#âDÚ#âDâCâDâCâDâCâDâ#âDÚâ#Ú#âDâCâ¥â…â…âdâ…âdâ…âdâ…âdâ…âdâ…âdâ…âdâ…ÚdâÚâ$Úâ#Úâ#Úâ#Ú#â#Úâ#Úâ#Úâ#ÚâÚâÙãÙâáãÙâÙÚâÙãÑâÙÚâÙãÙâÙÚÚÚâÙDÒeâeÚDâDÚDâDÚCâÚÒâÙãÑâÙãÑ#ÚDÚDÚDÚDÚDÚ$ÚDÚ#ÚDÚDâDÚDâDÚDÚdÚDâDÒÚ#Ú#â#Ú#â#Úâ#Ú#â#Úâ#Ú#â#Ú#â#Ú#â#Úâ#Úâ$Ú#â#Ú#âDÚ#âDÚ#âDÚ#â#Ú#âCÚCâCÚ#âDÚCâ„â¥êÅâ¥ê¥â„â…â„â¥â„ê¥â¥ê¥â¤ê¥â„ê¥â¥ê¥âCâDâcâ„âcâdâCâDâ#âDÚ#âDâCâdâCâdâCâdâCâdâCâdâcâdâCêdâCâCâCâdâCêdâCêdâCêdâCâdâCâ¥ê¥ê¥â¤ê¥ê¤ê¥â¤ê¥â¤êÅê¥êÅê¥êÆê¥êÅêÅêÆêCêdâCêdâcêdâCêdâCêdâCâdâCêCâCâCâCâCâ"âCâCâCâ#âCâCâCâCâCâCâCâCâCâ#â#â"âCâCâCâDâ¥â„ê…â„ê…âdâ…â„ê„â„ê…âdâ…â„â…Ú„âDÚâ#Úâ#Ú#âCÚ#âCâ#âCÚ#âCÚ"â#ââ#ââ#ââÚâáÚâáÚâÙÚâÙÚâÙÚâáãÙâÙ#ÚâÚÚdâdâdÚCâdÚCâDÚÒãÙãÑâÙãÑÂÑÊ$ÚEÒDÚEÚ$Ú$ÒÚ$Ò$ÚDÒ$ÚEÚ$ÚEÒDÚDÚÚ$ÚÚ$ÚÚÚÚ$ÚÚ$ÚÚ#ÚÚ#ÚÚ#ÚÚ$Úâ$Úâ$Úâ$ÚÚ$Ú#Ú$Ú#ÚDÚ#âDÚ#âDÚ#âDÚ#âDÚ#âDÚCâÆâ¥â¥â…â…âdâ…â„â¥â…ê¥â…â¥â…â¥â¥âÆâdâDÚDâdâCâdÚCâDÚ#â$Ú#âDÚ#âDâDâDÚDâDÚDâDâCâDâCâdâCâdâCâDâ#âDÚCâDâCâDâCâdâCâDâCâDâdêÆâ¥â¥â¥ê¥â…ê¥â¥ê¦â…ê¥â¥ê¦â¥êÆâ¥êÆê„âDâCâdâCêdâCâdâCâDâCâDÚDâDâCâDâCâDÚ#âCÚ#âDâ#â#â#âDâ#âDâCâDâCâDâCâDÚ#âDÚ#âDÚ#âDÚdê…â…â…âdâ…âdâ…âdâ…âdâeÚdâ…Ú„â…â#Ú$Úâ$Ú#âDÚ#â$Úâ$Ú#â#Ú#âÚâÚâáÚâ#ÚâáãÙâÙÚâÙÚãÙÒâÙÚâÙãÑâÙãÑâÙÚãÙÒ#â…ÚDâdÚDâDÚDÚÚ#ÚÚÒãÙãÑâÑDÚDÚDÒDÚDÒ#Ú$Ú#ÚDÚDÚDÚDÚDÚDÚeÚ#Ú#ÒÚ#ÚÚ#ÚÚÚâ#ÚÚ#ÚÚ#Ú#â#Úâ#Úâ#Ú#â#Ú#â$Ú#âDÚ#âDÚ#â#Ú#â#Ú#âDâCâCÚ#âDÚCâDÚCâDÚdâ¥â„ê…â„â…â„â…â„â¥â¤ê¥â„â¥â¤êÅâ…êdÚCâDÚCâdâCâDâ#âCÚ#âDâCâDâCâdâCâdâCâDâCâCâCâCâCâdâCêdâCâdâCâdâCâdâCâdâDêdâCêdâCêdâ…êÆê¥êÅê¥ê¥ê¥êÅê¤ê¥â¤êÅê¥êÅê¥êÅê¥ê„âCêdâcê„âcêdâcêdâCêdâCêdâCâdâCâCâCâCâCâCâ#êCâ#êCâCâCâCâCâCêcâCâCâCâCâCâCâCâCâCâdâ¥ê…â„ê…â„ê…â„ê…â„ê…âdâ…â„â¥âCâCÚ#â#Ú#âCÚ#âCâ"â#ÚâCâ"âCÚâââââ#ââ#ÚâáãÙâÚâÙÚâÙÚâÙÚâÙÚâÙâÙâÙÚâÙÚdâdÚDâdÚDâdÚÒãÙÒãÙÒãÙãÑãÙEÒDÚDÒ$Ú$ÒÚDÒDÚEÒDÚDÒDÚeÚDÚÒÚ$ÚÚ$ÚÚÒÚ$ÚÚ$ÚÚÒÚ$ÚÚÚÚ$ÚÚ$ÚÚ$Ú#Ú$ÚÚ$Ú#Ú$Ú#Ú$Úâ$Ú#âDÚ#âDÚ#âDÚ#âDÚ#âDÚ…â¥â…â…Údâ…âdâ…â…â¥â„â¥â…â¥ÚÅâeÚDÚDÚ#âDÚ#âDÚ#â$Ú$âDÚCâDâCâDâCâDÚCâDÚCâDâCâDÚ#âDâCâDâCâDâCâDâDâDÚDâdâCâdâdêdâCâDâCâ…â¥êÆâ¥ê¦â¥ê¥â¥ê¥â¥ê¥â¥ê¥â…ê¦âÆê…âDâdâDêdâdêdâCâdâCâdâCâdâDêdâCâDâCâDâCâDâ#âDâ#âCâ#âCÚ#âDÚ#âDâCâDÚ#âDÚ#â$Ú#âCÚ#âDÚ#â¥â¥â…âdâ…âdâ…âdâ…â…â…âdâ…Ú…â#Úâ$Úâ$Úâ$Ú#â$Úâ#Úâ#ÚâÚâáÚâáÚâ#ÚÚÚâÙÒãÙãÑâÙãÑâÙÚãÙãÑâÙãÙÂÙãÑâÙãÑâÙDÚDâdÚDâeÚDââÙÒâÙÚâÙãÑâÙãÑDÚdÚDÚDÚ$Ú$Ú#ÚDÒ#ÚDÒ#ÚDÚDÚ#ÒÚ#ÒÚ#ÚÚ#ÚÚ#ÚÚ#ÚÚ#ÚÚ#Ú#â#Úâ#Ú#â#Ú#â#Ú#â#Ú#â#Ú#â#Ú#â#Ú#â#Ú#âCÚ#âDÚ#âDÚ#âDÚ#âCÚ#âdâ¥ê¥â„â¥â„â¥â„ê…â„â¥â„â¥âÅêÅâCâDÚCâDâCâDâCâcâCâCâCâCâCâdâCêdâCâDâCâCâCâDâ#âDâCâCâCâCâCâdâCâCâCâDâcâ„âcê„âCêCâCâdâcâ¥êÅêÅê¥êÅê¥êÅê¥êÅê¥ê¥â¥êÅêÅêÆêcêdâcêdâcêdâCêdâCêdâcêdâCêdâCêCâCâCâCâCâCâCâCâCâCâcâCâCâCâdâCâdâCâCâCâCâ#âCâ#âCÚ#âCâcâ¥ê„ê…â„ê…â„â…â„â…â„â¥â¥â„Ú"âCÚ#â#Ú#â#Ú"âCâ#âCÚ"âCÚâ#ÚâââÚâÚâÚâÚâÙÚâÙâÙâÙÚâÚâÙÚâÙÚâÙâÙâÙÚÚdâDâdÚDâdÚÒÚãÑâÙãÑÂÙãÑÂÙÒDÚEÒ$ÚDÒ$Ú$Ò$Ú$Ò$ÒDÒDÚDÒãÑÒÚÒÚÒÚÚãÙÚÚ$ÚÚ$ÚÚÚÚ#ÚÚ$ÚÚ$Ú$Ú$ÚÚ$ÚÚ$Úâ#ÚÚ#Úâ$Ú#â$Ú#â$Ú#â$Ú#â$Ú#â$Ú#â…Ú…â…Ú…â…âdâ…â…â¥â„â¥â…âÆâdÚDÚDâDâ#âDÚ#âDÚCâDÚCâDÚCâDâCâdâCâDÚCâDÚCâDÚ#âDâCâDâCâCÚ#âDâCâdâCâDâCâDÚCâdâCâDâCâDâDêdâdêÆâ¥ê¦â¥ê¦â¥êÆâ¥ê¦â…ê¦â¥êÆâ…âdâdêdâCêdâDêdâCâDâCâDâCâDâCâdâCâCâ#âDâ#âDâ#âDÚ#âDâCâDÚCâDâCâDâCâDÚ#âCÚ#âDÚ#â#ÚâCÚ#â$Údê…âdâ…â…â…âdâ…âdâ…Ú„â…âDÚ$Ú#âCÚ#â#Ú#â#Ú#âDÚ#â#Ú#â#ÚâÚâÙãÙãáÚâáÚãáÚâÙãÙÂÙÃÑÂÙãÙÂÙãÑâÙãÑâÙãÙâÙãÙâÙãÑãÙÒ#âeÚDâdÚDâÚÚâÙÚâÙãÑâÙãÑâÑDÚDÚDÒDÚDÒ#ÚDÒ#ÚDÒDÚdÚÚÒâÙÚÚÚâÚâÙ#Úâ#ÚÚ#Ú#â#Úâ#Úâ#Ú#â#ÚÚ#Ú#â#Ú#âDÚ#â#Ú#â#Úâ#Ú#â#Ú#âCÚ#âDÚ#â#Ú#âCÚ#â#Údâ¥â„â…âdâ…â„â„â„â¥â„â¥â„êDÚCâdâCâDâ#âDâ#âCÚ#âCÚCâdâCâdâCêdâCâdâCâdâCâCâCâdâCêCâCâCâCâCâCêdâCâdâCâdâCêdâCêdâCêdâCêcâ¥êæêÅêÆê¥êÆê¥êÅê¥êÅêÅêÆâÅê„âcêdâcêdâcêdâcêdâCêdâCêCâCêdâCêdâ#êCâ"âCâCêCâ#âCâCêcâCâcâCêCâCâCâ#â#â"âCâ#âCâ#â#Ú#âCââCâ„ê…â„ê…â„ê…â„â…â„â…âCâ#ÚâCÚ#âCÚ#âCâ#âCâ#âCÚâ#ââ#ÚâÚâáÚâÚâÚâáãÙâÙâÙÁÙâÙâÙâÙâÙÚâáâÙâÙÚâáãÙâÙÚâÚdâdÚDâdÚÒãÙãÑãÙãÑâÙãÑâÙãÑãÙEÒDÚDÒ$ÚDÒ$Ú$Ò$ÚEÒ$ÚÒãÙÒãÙÒãÙÒÚÒÚ$ÚÚ$ÚÚ#ÚÚ$ÚÚ$ÚÚ$ÚÚ$ÚÚ$Ú#Ú$Ú#Ú$ÚÚ$ÚÚ$Úâ$Ú$â$Úâ$Ú#â$Úâ$Úâ$Ú#âDÚdâ¥â„â…âdâ…Ú…â…â„â¥â…âDÚ#âDÚCâDÚ#âDÚ#â$ÚâCÚ#âDÚ#âDÚCâDâCâdâCâDÚ#âdâCâDâCâDâCâDâ#âDÚCâDâCâdâCâDâCâDâCâDâCâdâCâdâCâ…ÚÆòÆâ¥êÆâ¥êÆâ¥ê¥â¥êÆâÅê¥âdâdâDâ„âdêdâDêdâCâdâCêdâCâdâCâDâCêDâ#â#â#âDâ#âDâ#âdâCâDÚCâDâ#âDâ#â#ââCÚ#âCÚ#â$Úâ#Ú#â#Úâ…â…â…âdâ…âdâ…âdâ…Údâ#ÚÚ#Úâ#Úâ#Úâ#Ú#â#ÚÚÚâ#Úâ#ÚÚÚâÙÚâÙãÙâÙãÙÂÙÃÙÂÙâÑÂÙãÑâÙÚâÙãÙÂÙãÑâÙãÙÂÙãÑâÙÚâÙDÚDâdÚDâÚÚâÙÚâÙÚâÙãÑâÙâÑ#ÚdÚDÚDÒCÚDÚ#ÚDÚDÚ#ÒâÙÒÚ#ÒÚ#ÚÚ#ÚÚ#ÚÚ#Ú#â#ÚÚ#ÚÚ#Ú#â#ÚÚ#Ú#â#Ú#âDÚ#âDÚ#â#Úâ#Ú#âCÚ#â#Ú#â#Ú#âCÚ#â#Ú#â#Ú"âCÚ#âDÚ„â¥â„â…â„ê…â„â¥â¥ê¥â#âDÚCâCÚCâCâ#â#Ú#âCâCâCâ#âCâCâCâCâCâCâdâCâDâCâdâCâCâCâcâCâdâCâCâCêcâCêCâCâCâCêCâCâdâCêdâCêdâcâÅêåêÆâÅêÅâ¥êÅê¥êÅêÅêÆêCêdâcêdâcêdâcêdâcêdâCêdâcêdâCêdâCêCâCêCâ#êCâCêCâCêCâCêCâ#âCâCâCâ#êCââ#â"âCâCâCâ#â#Ú#â#Ú#âCâCâ¥â„ê…â„â…â„â…â„êdÚâ#Úâ#Úâ#Ú"â#Úâ#Úâ#Ú"â#Úâ#Ú"â#Úâ#ÚâáÚâáãÙâáâÙâÙâÙÂÙâÙâÙâÙâÙâÙâÙâÙâÙâÑÂÙâÙâÙÚâÙÚÚdâDâdÚãÑãÙãÑãÙãÑãÙÒãÙãÑÃÙÊDÚDÒDÚdÒDÚEÒDÚ$ÒãÑÒÚÒãÙ$ÚÚÒÚÒÚ$ÚÚ#ÚÚ$ÚÚ$ÒÚ#ÚÚ$ÚÚ$ÚÚ$ÚÚ$ÚÚ#ÚÚ$ÚÚ$Úâ$Úâ$Úâ$Ú#â$ÚâCÚ#â$Úâ$ÚÚ…Ú…ê¥â„â…â„â…â…â¦âDâ$Ú#âDÚCâDÚ#âDÚ#â$Ú#âDÚ#âDÚCâDâ#âDÚCâDÚCâDÚCâDâCâDâ#âDÚCâDâCâDÚ#âDâCâdâCâDÚ#âDâCâDâ#âDÚCâdâdêdâ„êæâÅêÆâÅê¦â¥êÆê¥êÆê…âDâ#âDâCêdâDêdâCâdâCâDâCâdâCâDâCêDâCêDâ#âDâ#âDâ#âDâCêDâ#âDâCâDâCâDâ#â$ÚÚ#ÚCâDâ#â$Úâ#Úâ#Ú#âDÚdê…âdâ…â„â…Ú…â…â#Ú$ÚÚÚâ$Úâ#ÚÚÚÚ#Úâ#Úâ#Úâ#ÚÚ#ÚÚÚâÙÚâÙãÙãáãÙÂÙãÙâÙãÑÂÙãÑâÙãÑÂÙãÙÂÙãÙÂÙâÙâÙÚâÙãÑ#âeÚDÚâÙÒâÙÚâÙÚâÙÚâÙÒâÙDÚDÚDÒDÚdÚDÚDÒâÙÒÚ#ÒÚ#ÚÚ#Úâ#Úâ#ÚÚ#Ú#â#Ú#â#Ú#â#ÚÚ#Úâ#ÚÚ#Úâ#Úâ#Ú#â#Úâ#Úâ#Ú#â#Ú#â#Ú#âDÚ#â$Ú#âDÚCâCÚâ#ÚCâ¥â¤ê¥â„ê…â„â¥âdêDÚ#âCÚCâDÚCâdâCâDâ#â#Ú#âCâCâCâCâCâCâdâCâCâCâdâCêdâCâCâ#âCâCâCâ#âCâCâdâCêcâCâCâCâdâCâCâCâdâcêdâcêdâ¤êëÅêÆâ¥êÆêÅêÆâ¥êDÚCâCâCâdâcêdâcêdâCêdâCêdâCêdâCêdâCêCâCêCâCêCâ#êCâCêcâ#êCâCâdâCêdâCêCâ"â#âCâCâCêCâ"â#â#â#Ú"âCâCâdâ…ê…â„ê…â„â¥âdêCÚ#âCÚâ#Ú#â#Úâ#ÚâÚâ#ââ#Úâ#Úâ#Ú"â#ÚâÚâáÚâá#ÚâÚâáãÙâÙâÙâÙâÑâÙâÙâÙÚâÙÚÚÚâáÚâÙÚDâdÚÒãÙÒãÙÒâÙãÑãÙÒâÙãÑãÙeÒDÚEÒDÚeÚÒãÑãÙÒãÙÒÚ$ÚÚÚãÙÚãÙÚãÙ$ÚÚ$ÚÚ$ÚÚÚãÙÚÚ$ÚÚ#ÚÚ$Ú#ÚDÚ#Ú#ÚÚ$ÚÚ#Úâ$Úâ$Ú#â$Úâ$ÚâDÚCâCÚ#âDÚ„êÆâ…â…âdâ…Ú…êDÚ#âDÚ#âDÚCâdÚCâDÚCâDÚ#â#Ú#âDÚCâDÚCâdâCâDâCâDÚCâDâCâDâCâCÚ#âDâ#âCÚ#âDâCâDâCâDâCâDÚ#âDâCâDâCâdâCâdâCâ…âÅêÆâ¥êÆâ¥êÆâÅêeâ#âDÚCâDâCêdâCâDâDêdâCâdâCêDâCêDâCâdâCâDâ#âDâCêDâ#âDâCâDâ#âDâCêdâCâdâCâDâ#âDâ#âDâ#âCÚ#â#Ú#â#Ú#âDâ#â…Ú…â…âdâ…Ú…âDÚ#âCÚ#âÚãá#ÚâÚãÙÚÚ#ÚÚÚÚÚÚÚÚ#ÚÚãÙâÙÚâ#ÚÚÚâÙãÙâÙãÑâÙãÑÂÙãÑâÙãÑâÙÚâÙÚâÙãÙÂÙâÙâÙDÚDââÙÚâÙãÑâÙÚâÙÒâÙÚâÙÒCÚdÚdÚdÚCÚÒâÙÚÚÚÚ#ÚÚ#Úâ#ÚÚÚÚ#ÚÚ#Ú#â#Ú#â#Úâ#Úâ#Úâ#Ú#â#Ú#ÚCÚ#âCÚ#â#Ú#â#Ú#âCÚ#â#Ú#âCÚ#â#ÚâCÚCâcâ#âDâCâdâ¥ê…âdâ„â„ê„â#âCÚ#âCÚ#âDâCâdâcâdâ#âCÚCâCâCâCâCâCâCâdâCâdâCâCâCâdâCêdâCêCâCâCâCâdâCêCâCâdâCâcâCâCâCâdâCêdâcêdâCê„âcâ¤êÅêÅêÅêÆêÅêÆâCêDâCêDâCêDâCêdâCêdâCêdâcêdâCêCâCêcâCêCâCêCâCêCâ#êCâCâCâCâCâ#êCâCêCâCêcâ#êCâCêCâCâCâCâCâCâCâ#âCâCâCâ#â…â„ê…â„êdÚ"âCÚ"â#Úâ#â"â#Úâ#Úâá#â"â#ÚâÚâÚâ#ÚâÚâáãÙâá#Ú"â#ÚâÚâáãÙâÙÚâÙâÙâÙÚÚÚâÙÚâÙÚâÙâÙâÙÚÚdÚãÑâÙãÑâÙãÑâÙãÑãÙÒãÙÒãÙ#ÒCÚDÒDÚÒâÙãÑâÙ$ÚÚ$ÚÚÒÚ$ÚÚ$ÚÚ$Ò#Ú$ÒÚ$ÚÚ#ÚÚ#ÚÚ#ÚÚ$Ú#Ú$Ú#Ú$Ú#Ú#Ú#ÚDÚ#Ú$Ú#âDÚâ$Ú#â$Úâ$Úâ#Úâ$Ú#âDÚ#âDÚCâeÚ…â…âdâ…âCâDÚ#Ú#ÚÚ$Ú#âDÚCâdâCâDÚ#âDÚCâDÚCâDÚ#âDÚCâDÚCâDÚ#âDÚ#âCÚCâdâCâDÚ#âDâCâDâCâdâCâDâCâDâCâDâCâdâCâdâCâdâDâDÚCâÆâÅêÆâ¥êÆêdâDâCâdâCâdâCâdâCêdâCâdâCâDâCâDâCâDâCâDâCâdâCâDâ#âCâ#âCâ#âDâ#âCâ#âDâCâDâ#â#â#âDâ#â#â#âCÚ#âDÚ#â#Ú#â#ÚâÚDâ…â…â…â#Ú#Úâ#ÚÚ#Úâ#Ú#â#ÚâÚâ#ÚÚ#ÚÚÚãÙÚâÙÚÚãÙâÙãÙâáÚâÚãÙÚâÙãÑâÙãÑâÙãÑâÙÒãÙÒâÙãÑâÙâÑâÙâÙâÙãÑââÙÒâÙãÑâÙãÑâÙÚâÙÒâÙÒâÙ#ÚDÚDÒâÙÒâÙ#Ú#ÚCÚÚ#ÚâÙÚÚ#Ú#Ú#Ú#Ú#Ú#Ú#ÚÚ#Úâ#Úâ#Ú#â#Ú#ÚCÚ#â#Ú#â#Ú#âDÚ#âCÚ#âCÚ#â#Ú#âCÚCâCÚ#â#Úâ#Ú#âCÚ#â#Ú#âDâCâ…âdâ…âdêCÚ#âCÚ#âCÚ#âCÚCâdâCâCâCâCâCâcâ#âCâCâCâCâCâCâCâ#âCÚ#âCÚ"âdâCêdâCâCâCâCâCâCâCêdâCêdâCâCâCâdâcê„âcêdâCêDâCâDâ„êæêÅêÆâ„êdâCêdâCêdâCêdâcê„âcêdâCêcâCêcâCêcâCâCâCâcâCêcâ#êCâCêCâ#âCâCâCâCâCâCêCâ"âCâ#êCâCâCâCâCâCâcâCâCÚ"â#â"âCÚ"âCâ¥ê¥âCê#Ú#â#Úâ#ÚâáÚ"â#â#â#Ú"â#Úâ#Ú"â#ÚâÚâáÚâÙÚâÚâáÚâáÚâÙÚâÙÚâáãÙâÙâÙÂÙâÙâÙÚâÙÚâÙâÑáÙâÙâÙâÙâÙÚãÑâÑãÑâÙãÑâÙãÑâÙãÑâÙãÑâÑãÑãÙdÒ#ÒãÑãÙãÑâÙ$ÒÚÒÚÒÚÒÚ$Ò#ÚÒÚ$ÒÚ#ÚÚÚÚ$ÚÚÚÚ#ÚÚ#ÚÚ$Ú#Ú$Ú#Ú$Ú#â$Úâ$Úâ$Ú#âDÚ#âDÚâ#Úâ$Ú#â$Úâ$ÚDâDÚdâ…Ú…âDÚCâDÚ#âDÚ#â$Ú#âCÚ#âDÚ#âDÚ#âDÚ#â#Ú#âCÚ#âDÚCâDâ#âDÚCâ$ÚâDÚCâDâCâDâCâDÚ#âDÚ#âDâCâDâCâDÚCâDâCâdâdêdâCâDâCâDâCâdÚÅêÆâÅêdâCâdâCêdâCêdâCâdâCêdâCâdâCâDâCêdâCâDâCâDâ#âDâ#âDâ#âDâ#â#â#â#â#âCâ#â#â#â#ÚâCâ#âCâ#âCÚ#âDâCâDÚ#âCÚ#â#Úâ#Ú#â…Ú…â$Úâ#ÚâÚâ#Úâ#Ú#â#Úâ#Úâ#Ú#â$ÚÚ#ÚÚÚâÙãÙãáÚâÙãÙâáãÙÂÙãÙÂÙãÙâÙãÑâÙãÙÂÙãÙÂÙãÑâÙãÑâÙãÑÂÙâÑâÙâÙâÙâÙâÙâÙãÑâÙãÑâÙãÑâÙãÑâÙâÑâÙãÑâÙãÑ#Ú#ÒâÙÒâÙÚÚ#ÚÚ#ÚÚ#ÚÚ#Ú#ÚCÚ#Ú#Ò#Ú#ÚÚ#Úâ#ÚâÚÚ#Ú#âCÚ#â#Ú#â#Ú#ÚDÚ#âCÚ#âCÚ#âCÚ#âDÚCâDÚ#âCÚ#âDâ#âCÚ#â#Ú#âCÚCâDâ¥ê„ÚCâdâCâcâCâCÚ#âDâ#âCÚ"âCÚ#âCÚ#â#Ú"âCâ"âCâCâCâCâCâ#âDâ#âCÚCâCÚ#âCâCâCâCâCâ#âCâCâdâCâCâCâCâCêcâCêdâcêcâCâCâCâdâcê¥êÅê¥âCêdâCêdâCêCâCâcâCêdâcêdâCêCâCêcâCâCâCâcâBêCâCâCâCêCâCêCâ#êCââ#â"âCâ"â#â"âCâ"âCâ#êCâCâCâCâCâ#âCâ"â#Ú"â#â"âCâCâdâ#â#ÚâCââ#ÚâÚ"â#Úâ#Ú"â#Ú"â#ÚâÚâÚâáãÙÚ#ÚâÚâáÚâáâÙÂÙâÙÂÙâÙâÙâÙâÙãÙâÙâÑâÙâÙâÙâÙâÙâÙáÙâÙâáãÙâáâÙãÑÂÑãÑÂÑãÑâÙãÑÂÙãÑÂÑãÑÂÑãÑâÑDÒ$ÚÒâÙãÑãÙÒÚ$ÚÚÒÚÒÚ#Ò#Ú$ÒÚ$ÚÚDÚ#Ú$ÚÚÚãÙÚÚ$ÚÚ$ÚÚ$ÚÚ$Ò#ÚDÚDÚDÚ#âDÚ#âDÚDâDÚ#âDÚ#âDÚ#âDÚ#âDÚ#â#ÚÚ#Ú#â…âDÚDÚ#âDÚ#âDÚCâCÚ#â$âãáÚâ$Ú#âDÚâ#Ú#â#Ú#â#Ú#âDÚ#âDÚ#âDÚCâ$Ú#âCÚ#âDâCâDÚ#âDÚ#âCÚCâDÚ#âDÚ#âdâCâDâCâdâCâDâCâDÚCâdâdêÆêdâdâCâDâCêDâ#âDâCêDâCêdâCâDâ#âDâCâDâCâDâ#âDâCâCâ#âDâ#âCâ#âDâ#â#â#â#ââ#ââ#ââ#â#âDâ#âCÚ#âDâ#â#ÚâÚâ#Úâ#Ú#âdÚdâ#Ú#â#Ú#â#ÚâÚãá#ÚÚÚÚ#ÚâÚâÚâÙãÙâÙâÙâÙÒÚÚâÙãÙâÙãÙÂÙÂÑ¢ÙÂÑÂÙãÑÂÙÃÑ¢ÙãÑÂÙãÑâÙãÑâÙãÑÂÙâÙâÙâÙâÙâÙÂÙâÙâÑÂÙâÑâÙãÑâÙãÑâÙâÑâÙãÑâÑ#ÒDÚDÒÚÒâÙãÑâÙÚÚÚâÙÚÚÚÚCÚ#ÚDÚ#ÚCÚ#ÚDÚ#â#ÚâÚÚ#Ú#â#Ú#â#Ú#â#ÚÚCÚ#âDÚ#âCÚ#âCÚCâDÚCâCÚCâDÚCâDÚ#âDâ#â#Ú#â#Úâ#Ú„âdÚ#â#ÚCâCÚCâCÚ"âCâ"â#Úâ#Ú#âCâ#âCÚ#âCÚâ#Ú"âCâ#âCâCâCâCâCâ#âCâCâCâCâCâCâCâCâCâCâCâCâCâCâCâCêCâCâCâCêdâCâCâCâdâcê„â„êdâcêdâCêDâCêCâCâCâCâCâCêdâCâCâCâCâCêCâCêCâ#êCâ#êCâCêCâ#êCâ#êCâ#êCâCêCââ#â"âCâ#êCâ#êCâ#êCâCâCâ"â#â"âCÚ"â#â"âCâ„â¥âCâCÚâ#Úâ#ââ#ââ#ÚâÚâ#ÚâÚâáÚâáãÙâÙâÙâáÚâáÚâáÚâáâÙÁÙÂÑÁÙâÑÂÙÂÙÂÙâÙâÙâÙâÙâÙÂÙâÙâÙâÙâÙãÙâáâÙÁÙâÙãÉâÑãÑÂÑãÑâÑãÑÂÑãÑÂÑãÑÂÑãÉ$ÚDÒDÚ$ÒâÑãÑâÙÒãÙÒãÙÒãÙÒãÙ$Ò#Ú$Ò#Ú$Ò#ÚDÚ#ÚÚãÙÒÚÚÚÚÚÚÚÚÚ#Ú#ÚDÚ#âDÚ#âDÚ#ÚDÚCÚDÚ#âDÚ#âDÚ#âDÚ#âDÚ#â#ÚÚÚ#â…âdâ#ÚÚ#Ú#âDÚâCÚ#â#Úâ#Úâ#Ú#âCÚ#âCÚ#âCÚ#âDÚCâCÚ#âDÚ#âDÚCâDÚ#âDÚCâDÚCâDâCâDÚCâDÚ#âDÚCâDÚCâDÚ#âCÚCâDâCâ#â#âCÚ#âDâDêÆêdâDâCâDâCêCâ#âDâ#âCÚCâCÚCâDâ#âCâ#âDâCêDâCâDâ#âCâ#âCâ#âCâ#âCâ#âCâ#âCÚCâCâ#â#ââ#â#â#â#âDâ#â#â#âCââ#â#â#Úâ#ÚCâ¥â…âdâÚÚãÙÚâ#ÚâÚâÚãá#ÚâÚâÚâÚâÙãÙâáÚâÙÚâáÚâÙãÙÂÙâÑÂÑâÑâÙÃÙ¢ÙãÑÂÙãÑâÙâÑÂÙâÑÂÙâÑâÙâÙâÙÃÙÂÙâÙÂÙÂÑãÑâÙâÑâÙâÑâÙâÑâÙãÑÂÙÂÑ#ÚdÚCÚDÒCâÒâÙãÑâÙÚÚÚÚÚÚÚ#ÚDÚ#ÚDÚ#ÚDÚ#â#ÚâÙ#ÚÚ#ÚÚ#Úâ#Úâ#Úâ#Ú#â#Úâ#Ú#âDÚ#âCÚCâCÚCâCÚCâCÚ#âCÚ#âCÚ"âCÚ#â#ÚÚdâ„â¥âCê#Úâ#Ú"âCÚ"âCÚ#â#Úâ#Ú#â#Ú"âCÚ#âCÚ"âCâCâCâ"âCâ#âCâCâCâ#âCâCâCâ#âCâCêdâCâCâCâCâCâCâCâCâ"â#â#âCâCêCâ#âCâ#â#Ú#âdâÅêÅâCâdâCêCâ#êCâCêCâCâCâCâcâCêCâ#êCâ#êCâBêCâCêCâ#êCâ"âCâCêCâ#êCâ"ê#ââCâ#â#âCêCâ"ê#ââ#â"âCâCâCâ"âCâ#êCâ"âCâ#â„â„â¥â„êCÚâÚâ#Úâ#ÚâÚâ#Úâ#ââ#ââ#ÚâáÚâáÚâáÚâÚâÚâÙâÙâÙâÙÂÙâÙÂÙâÙáÙâÙâÙâÑÁÙâÙÁÙâÙÂÙâÙáÙâÙÁÙâÙÂáâÙÂÉÂÑãÑÂÑãÑÂÑãÑÂÑãÑÂÑÃÉÂÑDÒDÚDÒDÚEÚÒãÑãÙãÑãÙÒÚÒãÙÒãÙ#Ò#Ú$Ò#ÚDÒ#Ú$ÚÚÒÚ$ÚÚ$ÚÚ$ÚÚ$ÚÚ$ÚÚ$ÚÚ#ÚÚDÚ#âDÚ#âDÚ#â$Ú#âDÚ#âDÚ#âDÚ#Ú$ÚÚ#Ú#âDÚdâ…Ú„â…â#ÚÚâÙ#Ú#â$Úâ#ÚÚÚâá$Ú#â#Ú#âCÚâ#ÚâCÚ#â#Úâ#ÚâCÚ#âCÚCâDâ#âCÚ#âDâCâDâCâDÚCâDâ#â#Úâ#Ú#â#â#âDâ#â#ââ#Ú#âDÚ„êÆâÅêdâCâDâCêCâ#âDâ#âDâ#âDâCâDâCâCâ#âDâ#âCÚCâDâ#âCâ#â#â#âDâ#â#â#â#ââ#Úâ#â#âDâ#â#ââ#ââ#â#â#ââ#Ú#âDâ#â#â#âDÚ„â…Ú„â¥âdâÚâ#Úâ#ÚÚ#ÚÚÚãá#Úâ#ÚâÚâÚâÙãÙâáÚâáÚâÙÚâÙÚâÙãÙÂÙãÑÂÙÂÑ¢ÙãÑÂÙÂÑÂÙÂÑÂÙâÑÂÙãÑâÙãÑÂÙÂÑÂÙâÑâÁÑâÉÂÑâÑâÙâÑâÙâÑÂÑãÑâÑ$ÚDÚDÒCÚdÒDÚDÒâÙÒâÙÚÚ#ÚâÙâÑâÙÒÚ#Ú#ÚCÚ#ÚCÚ#â#ÚÚ#Úâ#ÚÚ#Úâ#Úâ#Ú#â#Úâ#Úâ#Ú#â#Ú#â#Ú#â#Ú#ÚDÚ#âCÚ#âCÚ#âCÚ"âCÚ#â#Údâ…âdâ„â„âdÚâÙÚâCÚ#âCÚ"â#Úâ#Ú"âCâ"âCÚ"â#Úâ#Ú"â#ââ#ââ#â"âCâCâCâCâCÚCâCâCâdâCâCâCâCâCâCâ"â#â#êCâ#âCâ#âCâ#âCâ"âCâdâÅê¥êÅê¤òdâCêCâCêCâCêCâCêCâCêcâCêcâBêCâBêCâCêCâCêCâ#êCâ"âCâ#êCâ"âCâ"âCâ"âCâ#ê#â"âCâ"â#ââ#â"ê#â"âCââ#â"âCâ"âCâdâ„âdâ„â„â¥â#â#Úâ#Úâ#ÚâÚâ#Ú"âCÚâ#ââÚâáÚâáââÚâáÚâ#ÚâÚâáâÙÂÙâÙÂÙÂÙÁÙâÙÁÙâÑÂÙâÙÁÙâÙâÙâÑÂÙâÙÁÙâÙâÙDâÂÉÂÑÂÉÂÑãÑâÑãÑÂÑãÑÂÑÊDÚDÒDÚdÒDÚDÒDÚ$ÒãÑÒãÙÒÚãÑâÙãÑâÙÒÚ#Ò#Ú#Ò#Ú$ÚÚ$ÚÚÚãÙ#Ú#Ú$Ú#Ú$Ú#Ú#ÚÚÚÚ#Úâ#Úâ$Úâ$Úâ$Ú#Ú$Ú#Ú#Ú#â$Ú#â#Ú#â$Ú#â…ÚdâeÚdâ…Ú„â#ÚãÙÚ#âCÚ#â#Úâ#Úâ#ÚÚ#Ú#â#ÚÚÚâ#Úâ#Úâ#ÚâCÚ#âCÚCâCÚCâDâCâDÚCâDÚCâCÚCâDâ#âCâ#âCâ#â#ââ#ââ#â#âDâ#â¥â¥êÆâ¥êÆêdâCâ#â#ââDâCêDâCâCâCâdâCâCâ#âCâ#âCâ#êDâ#â#â#â#â#âCâ#âCâ#â#â#â#â#â#ââ#Úâ#ÚâÚâ#Úâ#â#â#ââÚâCÚCâ…Ú„â…âdâ…Ú…âdâÚÚâÙãÙãáÚâ#ÚÚ#Ú#â#ÚâÚâáÚâÚâáÚâÙÚâÚâÙÚâÙãÙâÙãÙÂÙÂÑ¡ÙÂÑÂÙÂÑÂÙÂÑÂÙãÑâÙãÑÂÙãÑÂÙâÑÂÙ$Ú$âÂÑâÑâÙâÑâÑÒâÙãÑâÙÒCÚdÚCÚdÚDÚDÒDÚdÚCâ#ÒÚ#ÚÚ#ÚâÙãÑâÙãÑÚ#ÚÚ#Ú#â#ÚÚ#Úâ#ÚÚÚÚ#Ú#â#Ú#â#Ú#â#ÚâÚâ#Ú"â#Úâ#Ú#â$Ú#â#Ú#â#Úâ#Ú#âCÚ"âCâ#â„â„â…Údâ…â„âÅâCâÚ"âCÚ"â#Úâ#Úâ#Ú"âCÚ#âCÚ#â#Úâ#Ú"âCâ"âCâ"âCÚCâCâCâCâ#âCâCâCâ#âCâCâCâCâCâCâCâCâcâCâCâ#êCââ#â"âCâCâ„ê¥êÅâ¥êÅâÅê¥â#êCâCêCâBâcâCêCâBêCâCêCâCêCâ"âCâCêCâCêCâ"âCâ"âCâ"âCâ#êCââ#â"ê#â"âCââ#ÚâÚâââ#â"âCâ"â#ââ#â#â„â„â…âdâ…â„â¥â„ê#ÚâáãÙâáãÙâá#Ú"â#ÚâCÚâÚâáÚâ#ÚâÚâáÚâÚâáÚâáÚâáÚÂÙâÙÁÙÂÙÁÙâÙÂÙâÙáÙâÙâÙâÑâÙÚâÙâÙÂÙãÙCâDÚâÑÂÑâÑÂÑãÑâÑãÑãÙÒÚeÒDÚeÒDÚDÒDÚeÒdÚ…ÚDÚÒÚÒÚÚãÙãÑâÑÒÚÒÚÒÚÒÚ$ÚÚÒâÙÚÚ$ÚÚÚãÙÚãÙÚâÙÚâ#Úâ#ÚÚ#ÚÚ#ÚÚ#ÚÚÚÚ#Ú#â#Ú#âdÚ„â…Ú„â…Údâ¥â…â…âÚ#Ú#âCÚ#â#Ú#â#Ú#âDÚ#âDÚ#â#ÚÚÚâ#Ú#âCââ#Ú#âDÚ#â#Ú#âCÚ#âCÚ#âCÚCâDÚ#â#â#âDâCâDâCâDâCâDâ#â#â#âCÚCâ„Ú¥ê¥â¥êÅâ¥êÅâ¥êdâ#âDâCêCâCêdâCâCâCâCÚ#â#â#â#â#âCÚCâDâ#â#Ú#â#â#â#Ú#âDâ#â#ââ#â#â#â#â#ÚâÚâÚâá#Úâ#Ú#âCââ#ÚâDÚ„â…âdâ…Údâ…Ú„â…âDÚãÙâÙãÙâÙÚÚ#ÚâÚÚÚâáÚâÙãÙâáÚâáãÙâáÚâáÚâÙÚâÙãÙâÙâÙÂÙÂÑ¡ÙÂÑÂÙÂÑÂÙâÑÂÙÂÑÂÙâÑÂÙâÙâÙâÑâDÚ#ÚâÑâÑâÑâÑÂÑâÑâÑÒÚDÚdÚdÚDÚdÚCÚDÒCÚdÚdâ„ÚÚÒÚ#ÚâÙÚâÙãÑâÙ#ÚÚ#Ú#Ú#ÚÚ#Ú#â#ÚâÚâÙÚÚÚâÙÚâÙÚâáÚâ#Ú"â#Ú"â#Úâ#Ú"â#Úâ#Ú#â#Ú"â#Úâ#Ú„â¥â„â„âdâ…â„â¥â„âdÚâ#â"âCÚ"âCÚ#âCâ#âCÚ#âCÚ"â#Ú"âCÚ"âCâCâCâ#âCâ#âCâ"â#Ú"âCâ#âCâ#âCâ"âCâ"âCâCâcâCâdâCêdâCêCâ#âCâCêCâ„êÅê¤êÅâ¤êÅâ„ê¥âdêCâCêCâ"âCâBêCâCâCâCâCâ#êCâ"ê#âCâCâ#êCâ#êCâCêCâ"âCâ#êCâ"âCâ"ê#â"ê#â"â#ââââ#ââ#â"â#â"â#â"â#âdâ…â„â„âdâ„âdâ…â„â¥ââÚâáÚâ#Ú"â#ÚâÚâÚâÚâáÚâÚâáÚâáÚâáÚâáÚâáÚâáâÙÁÙâÙÂÙâÙÁÙâÙÁÙâÙÁÙâÙáÙâÑáÙâÙâÙDâCâDÚâÉÂÑâÉâÑÂÉÂÑãÉâÑ$ÒDÚDÒDÚeÚDÚDÒ$ÚDÒDÚeÒdÚ$ÚâÙÒãÙãÑãÙãÑâÙÒãÙÒÚ#Ò#Ú#ÚÚ$ÚÚÚÚÒâÙÚãÙÒãÙÚâÙÚâáÚâ#Úâ#ÚÚ#ÚÚ#ÚÚ$ÚâCÚ#â#Úâ#Ú#â…Ú„â…âdâeÚDâ…Ú…â…âdâ#Úâ#Ú#â#ÚÚCÚ#âCÚ#â#Ú#â#ÚÚÚâCÚCâDÚ#âCÚ#âCÚ#â#Úâ#Ú#âCÚ#â#Ú#â#Ú#â#â#âCÚCâDâCâdâCâDâ#â#â#âDÚCâ¥â…â¥â„â…â…ê¥â„â…âCâ#ââ#â#â#â#âCâ#âDâCêCâ#âDâ#â#â#âDÚ#âCÚCâCâ#âCâ#âDâ#â#â#â#ââ#ââ#ÚâÚâáÚâÚâ#Úâ#Úâ#Ú#â…â„â…âdâ…ÚdâeÚdâ…Ú…âDÚâÙÚâáÚâáÚâáÚâáÚÚÚâÚâÙÚâÙãÙâÙãÙâáÚâáÚâÙãÙâÙãÙÂÙâÑÂÙÂÑ¢ÙãÑÂÙâÙÂÙâÑÂÙâÑâÙâÙâÙ$ÒDâDÚ#â¡ÑÂÑÂÑâÑ¡ÑÂÑÂÑâÑDÚdÚDÚdÚDâDÚCÚDÚ#ÚDÚCÚdÒCâÒâÙãÙâÙâÑâÙãÑâÙÚÚ#ÚÚ#Ú#â#Ú#â#ÚÚ#ÚâÚÚ#ÚâÚâÙÚâÚâ#Úâ#ÚÚ#Úâ#Ú#â#Ú#â#Ú#âCâ"âCâ#âdâ„â¥â„â„ÚdâdÚdâ…â„â¥âCâ#Ú"âCÚ"â#Úâ#Ú#âCÚ"â#ÚâÚâ#Ú"âCÚ#âCÚ"âCâ#âCÚâ#Ú"âCÚ"âCâ"âCâ#âCÚ"â#âCâCâcâdâCâCâ#êCâ#êCâ#â„â¤ê¥â„ê¥â„ê¥â¤ê¥â¤ê¥â"âCâ"âCâ"êCâ#êCâCêCâCêCâ#êCâ#êCâ"â#â"âCâ#êCâ#êCâ"êCâ"ê#â"âCâ#êCâ"âCââââ#ââ#ââ#Úâ#â"â„â„â¥â„ê„âdâ…âdâ…âdâ„âdê#ÚâáÚâáÚâÚâÚâ#ÚâÚâáãÙâáâÙâÙÚâáÚâ#ÚâÚÚÚâáâÙÁÙâÙÁÙâÑÁÙâÙáÙâÙâáâÙâáâÙâáâÙCâDÚCâDÚÂÉ¢ÉÂÉ¢ÑÂÉÂÑâÉÚdÒDÚDÒDÚDÚDÚDÚ$ÚDÒ#Ú$ÒÒDÒ#ÒãÑÂÙãÑâÙãÑâÙãÑãÙÒÚ$ÚÚ$ÚÚ#ÚÚÚãÙÚãÙÒÚÚãÙÚÚÚãÙÚãÙÚâÙÚÚÚÚÚÚ#Úâ$Úâ#Ú#âdÚ„â…Ú„â…âdâeÚDâeÚdâ…Ú„â…â#ÚCÚ#â#ÚÚ#Úâ#Ú#â#ÚâÚâáÚâ#Úâ#Úâ#Úâ#Úâ#Úâ#Ú#âCÚ#â#ÚâCÚ#âCÚ#âDÚCâDâCâCÚ#âDâ#âCâ#âdÚ„ê¥â„â¥â…ê¥â…ê¥â…ê¥â¥êdâ#â#â#âCâ#êCâ#êCâ#âDâ#âCÚ#âCÚ#âDâ#â#â"âCâ#âCâ#âCâ#â#ââ#ââ#â#â#â#â#ââÚâ#Úâ#Úâ#ÚâDÚ…ê…â„â…âdâ…Údâ…Údâ…Údâ…âDâÚâáÚâáÚÚÚâÙÚâÙãÙãáâÙâÙÚâÙãÙâÙâÙâáÚâáÚÚÚâÙãÙâÙâÙÂÙÂÑ¢ÙâÑÂÙâÑÂÙâÙâÙâÙâÙâÑâDÚ#ÚDÚ#â¡ÑÂÉÁÑâÑÂÙÂÑâÑDÚCÚDÒCÚDÚCÚdÚCÚDÒCÚDÒCÚDÒDÚdÚâÙâÑâÙÚâÙâÑâÙÒÚ#Úâ#Úâ#ÚÚ#ÚÚ#Úâ#ÚÚ#ÚâÚâ#ÚâÚâÙÚâÙÚâÙ#Úâ#Úâ#Úâ#Úâ#Ú"âCâ„â„âdâ„âdâdÚdâdÚ„â…â„â…â„êdÚ#âCâ"â#Ú"â#Ú"â#Úâ#Úâââ#â"â#Ú"â#ââ#â"â#ââ#â"â#â"âCâ"âCâ"âCâCâCâCâCâCâcâCâCâ#êCâCêCâ„ê¥â„ê¥â„ê¥â¤ê¥â„ê¥â¤êÅê„êCÚ"âCâ"êCâ"êCâ"êCâCêCâCâCâ#âCâCêCâ"êCâBêCâBêCâ"êCâ"ê#ââ#ââââ#â"ê#ââââ#ââ#â"âCÚ„â¥â„ê…â„ê„âdâ„âdâ„â„â„â„â„ââÚâÚâáÚâáÚâÚâáÚâáÚâáÚâáÚâáÚâÚâÚâáÚâáÚâáâÙÁÙÂÙ¡ÙÂÙÁÙâÙâáâÙâáÚâÙDâCâDÚCâDÚÂÉ¡ÑÂÑÂÙãÑ¢Ñ$Ò$ÚDÒ#ÚDÒ#ÚDÒDÚDÒDÚDÒ$ÚDÒ$ÚDÒDÚ$ÚÂÑãÑâÙãÑâÙÒãÙÒÚ#ÚÚÚãÙÒÚÚãÙÒãÙÚÚÚÚÚÚÚâÙÚãÙÒãÙÒÚ#ÚÚ$ÚÚ#ÚâÚÚ#ÚCâ…Údâ„ÚdâdÚDâeÚdâ…Ú„â…Údâ…Ú„âDÚ#â#ÚÚÚâ#ÚÚÚâÚâÚâÚâá#Úâ#Úâ#Úâ#Úâ#ÚâCÚ#â#Úâ#Ú#âDÚCâDÚCâCÚ#âDÚ#âCâCâDâCê¥â…ê…â„â…â…ê¥â„â…â„â¥â„ê¥êCâÚ#âCâ#â#â#êCâ#âCâ#âCÚ#âDâ#âDâ#â#â#âCâ#âDâ#âCââââÚâ#ÚâÚâCââ#ââáÚâ#ÚâCÚCâ¥â„â…â…â…âdâdÚdâdÚdâ…Údâ…Údâ$ÚâÙÚâáÚâáÚâá#ÚÚÚâáÚâÚâáÚâÙÚâáÚâáãÙâÙãÙâÙÚâÙãÙÂÙÂÑ¡ÙÂÑ¢ÙÂÑÂÙâÙÂÙâÙÂÙ$ÒDÚDÚ#Ú$Ú#âÁÑâÑÁÙâÑÂÙâÑ#ÚDÒ#ÚDÒCÚDÚCÚDÚCÚDÚCÚDÒCÚDÚDÚdÚDâãÉÂÙãÑâÙÚÚ#ÚÚÚâÚâÙÚÚ#ÚÚÒâÙÚÚÚ#â#ÚÚ#ÚâÚâÙÚâÙÚÚ#ÚÚ#Ú#â#Ú"â#Úâ#Ú#â„â„â…Ú„â„ÚdâdÚdâdÚdâ…Ú„â…Údâ…âCê#Ú"â#Úâ#Ú"â#Úâ#Úâ#ââ#ââ#ââ#ââ#ââ#Úâ#Úâ#Ú"â#Ú"âCÚ#âCâCâCâCâCâ"âCâ"âCâCâcâCâ¤êÄêÅâ¤ê¥â¤ê¥â„ê¥â„ê¥â„ê¥â¤ê…ââ#âBêCâ"êCâBêCâCâCâ#âCÚ"âCâCâCâ#êCâ"âCâBêCâBêCââ#ââ#â"â#â"â#â"ê#ââââââCâ"â„â„ê„â„ê„âƒâ„âdâdâcâdÚdâ„âdâdÚCâÚâáÚâáÚâáÚâ#ÚâáÚâ#ÚâÚâáÚâáÚâÚáÙâÙâáÚâáÚâáâÙÁÙâÙÂÙÂÙÁÙâÙáÙÚáÙâÙCÚDÚ#ÚDÚ#âDÚÂÉÂÑãÑÂÑâÉÚDÒ#Ò$Ò$ÚDÒDÚDÒDÚDÒ$ÚDÒ$ÚDÒDÚDÒDÚeÚÒÃÑâÙãÑãÙÒãÙÒãÙÚâÙãÑãÙÒÚÒãÙÒãÙÚâÙÒÚÒâÙÚãÙãÑãÙÚãÙÒãÙÒÚ#ÚÚ#ÚÚ#ÚÚDÚ…â…Údâ…Ú„â…ÚdâeÚDâeÚdâ…Údâ…Údâ…â#Ú#Úâ#ÚâÚâÚâ#Úâ#Úâ#Ú#â#Úâ#ÚÚÚãáÚâ#ÚÚ#ÚâCÚ#âCÚ#âCÚ#âCÚ#âCÚ#â#Úâ#â#â„âÅê¥â„ê¥â¤ê¥â¤ê…â„ê…â…ê…âdâ¥â¥êDâ#âCâ#â#ââ#â#âCâ#âCÚ#âCÚ#âCÚ#âCâ#â#Ú#âCâ#â#â#â#ââÚâ#ââÚâ#Úâ#ââ#Úâ#Ú#âDÚ„ê¥âdâdÚdâ…âdâdÚDâdÚDâdÚDâeÚDâdâ#ÚãÙâáÚâáÚâÚâÙÚÚÚÚÚâÙÚâÙÚâÙÚâÙâÑâÙâÙâÙãÙâÙãÙâÙâÙÂÙâÑÂÙÂÑÂÙâÙâÙãÙãáDÚ#ÚDÚ#ÚDÚ#âÁÑâÑÂÙâÑâÑDÒ#Ú$Ò#ÚDÒCÚDÒ#ÚDÒ#ÚDÒ#ÚDÚ#ÚDÒCÚDÒDÚdÒÂÙãÑâÙÚâÙÚâÙÚâÙÚâÙÒÚÒâÙÒâÙÚÚÚâÙ#ÚÚ#ÚÚÚâÙ#ÚââÙâÙÚâÙÚÚÚÚ#Úâ#Údâ…âdâ…â„â„Údâ„âdâ„âdâ…Ú„â…Ú„â…Ú„âdÚâ#Ú"â#Úâ#Ú"â#Ú"â#Ú"âCÚ"âCÚ"â#Ú"â#ÚâÚâ#â"â#Úâ#Ú"âCÚCâCÚ"âCâ"âCÚ#âCâ"â#ââ#â„êÅê¤ê¥â¤êÅâ„ê¥â„ê¥â„ê¥â„ê¥â„ê¥â„êCâBêCâ"ê#ââ#â"êCâBâCâCâCâ#êCâ#ê#â"âCâ"êCâ"â#â"ê#ââ#ââââ#ââ#ââ#â"â#â"â#âcâ¥â„â„âdâ„âdâ„âdâdâCâdâcâdÚdâ„âdâdââáÚâÚâáÚâáÚâ#ÚâÚâáÚâáÚâáÚâáâÙâÙâÙâÙâÙâÙâÙâáÚâÙâÙáÙâÙÁÙâÙâáÚâÙCÚ#ÚDÚ#ÚDÚ#âDÚÂÉ¡ÑÃÑÂÑ$Ò#Ú$Ò$Ú$Ò#Ò$ÒÚ$Ò#Ò$ÒÚÒÒ$Ò$ÚDÒ$ÚDÒDÚÒÂÑãÑâÙãÑâÙãÑâÙãÑâÙãÑâÙÒãÙãÑãÙÒãÙÚãÙÒÚÒÚÚãÙãÑâÙãÑâÙãÑâÙãÑãÙÚâÙÚãÙÒâ…Ú„â…Ú…â…ÚDÚeÚdâ…Údâ…Údâ…Údâ…ÚdÚeÚdâ#ÚÚÚÚÚâ#Ú#â#ÚÚ#Ú#â#Ú#â#ÚÚ#ÚÚ#Úâ#Ú#â#Úâ#ÚâCÚ#âCÚ#â#Úâ#Úâ#Ú#â#ââ#ÚCâÅâ¥â…â„â¥â„ê¥â„â…â„â¥â¤ê¥â„â…â„â¥êDâ#ââ#ââ#ââ#â#â#â#âDâ#â#â#âCâ#â#Úâ#Úâ#ââ#ââÚâ#ââÚâ#Úâ#ââ#Úâ#Ú#â…âdâ…ÚdâeÚDâeÚdâdÚDâdÚDâeÚDâdÚDâdÚdâ#ââáÚâáãÙâá#ÚÚÚâÙãÙâáÚâÙÚâÙâÙâÙâÙâÙãÙâÙâÙÂÙâÙâÙãÙâÙâÙâÙâÙÂÙâÑÂÙâÑÂÙ$ÒDÚDÒ#ÚDÚ#Ú$Ú#ÚÁÑâÑÁÑâÑCÚDÒ#ÚDÒ#Ú#ÒÚ#Ò#ÚDÒÚ#ÒÚ#Ò#ÚDÚCÚDÒ#ÚDÒCÚÒâÙÚâÙâÙâÙãÑÂÙâÑâÙãÑâÙÒâÙÚâÙÒÚ#ÚÚ#ÚÚÚâÙÚâÙÚâáâÙâÙâÙâÙÚâÙÚâÙÚÚdÚ„â¥Ú„â¥ÚdâdÚdâdÚdâ…ÚdâdÚdâ„ÚdâdÚdâ„ÚCâ#Úâ#Úâ#Úâ#Ú"â#Úâ#Ú"â#Úâ#Ú"â#Ú"â#ââ#â"â#Ú"âCÚ"âCÚ"âCÚ"â#ââ#ââCâ"â#â"â„â¤ê¥â„ê¥â¤ê¤â„ê¤â„ê¥â¤ê¥â„ê¥â„ê¥â¤ê¥â"ê#â"ê#â"êCâ"âCâ"âCâ#êCâ"âCâ#êCââ#ââ#ÚâCâ"â#ââ#â"â#Úâ#ââ#ââ#â"â#â"âdâ„â…â„â„ÚdâdÚdâdÚcâdÚCâdÚcâdÚdâdÚdâ…âCêÚâáâÙÚ#ÚâÚâáÚâáÚâáÚâáÚâáâÙâáÚâáãÙâÙâÙâÙâÙâÙâÙâÙâÙáÙâÙÁÙâÙÁÙâÙCâDÚ#ÚDÚ#ÚDÚ#ÚDÚÂÉÂÑÂÉÚDÒDÚDÒ#Ò$ÒÚ$ÒÚ$ÒÚ$ÒÚ$ÒÚ$Ò#ÚDÒ#Ú$Ò#ÚDÒ#ÚãÑâÙãÙÂÙâÑÂÙÂÑÂÙãÑÂÙãÑãÙÒÚÒãÙÒÚÒÚÒâÙÒãÙÚâÙãÙâÙãÙâÙÚÚÚâÙÚãÙDÒdâ…Ú„â…Ú„âdÚDÚeÚDâdÚDâeÚDâeÚdâeÚDâeÚdâ…â#ÚÚÚ#Úâ#ÚÚ#ÚÚ#Úâ#Úâ#Ú#âCÚÚ#ÚâÚâ#Ú#âCÚ#â#ÚÚ#ÚÚÚâ#Úâ#ÚâCÚ#âdÚ…ê…âdâ…â„â¥â„â…â„ê…â„â…â„â…Ú„â¥â¥êÅâ¥êdââ#ââ#â#â#â#âCÚ#âCâ"â#ââ#â#â#ââÚâáÚâÚâ#Úâ#Úâ#ÚâÚâÚâáÚâCÚdê…âdâ…ÚDâeÚDâdÚDâdÚDâDÚCâdÚDâ…ÚDâeÚDâ…â#ÚãÙâÙÚâÚâÙãÙâÙÚâÙÚâÙÚâÙãÙâÙãÙâÙãÙâÙâÙâÙâÙÂÙâÙâÙâÙÂÙÂÑÂÙÂÑÂÙâÑâDÚ#ÚDÚ#ÚDÚ#Ú$Ú#ÚÁÑÂÑâÑDÒ#ÚDÒ#ÚDÒ#Ú#ÒÚ$Ò#Ú#ÒÚ$Ú#ÚDÚCÚDÒCÚDÒ#ÚDÚCÚ„ÚâÙÚÂÙãÙÂÙâÑÁÙâÑÂÙâÑâÙÒâÙÒâÙÚâÙÚÚÒâÙÚâÙÚâÙÚâáãÙâáÚâÚâÚâ#ÚdâdÚ„â…Údâ…ÚdâdÚdâdÚDâdÚdâdÚdâ„âdâdÚdâ„â„âdÚâÙ#Ú"â#Úâ#Úâ#Ú"âCÚâ#Ú"âCÚ"â#Úâ#â"âCâ"âCÚ"âCÚ"â#Ú"â#Úâ#Ú"âCÚ"â#Ú"âCÚ„â¥â„ê„â„â…â„ê„â„ê¤â¤ê¤â„â„â„ê¥â¤êÅâ¥êÅâ„òCÚâ#â"ê#â"âCâCâCâCâCÚ"êCâ"êCâ"â#ââÚâ#ââ#ââ#ââ#ââ#ââ#ââ"ââ"âCâ„â„â…âdâdÚDâdâcâdâCâdÚCâDÚCâdÚdâdÚCâdÚdâdÚâáâÙâá#ÚâÚâáÚâáÚâáâÙâáÚâáÚâáÚááâÙáÙâÙáÙâÙâÙâÙâÙâÙÁÙâÙÁÙâÙâÙDâCâCÚ#ÚDÚ#ÚDÚ#âCÚÂÉ¡Ñ$Ê#Ò$ÒÒ$Ò#Ò$Ò#Ú$ÒÚ$ÒÚ$Ò#ÚDÒDÚDÒ$ÚDÒ$ÚDÒ$ÚDÒdÚDÚãÙÃÑ¢ÙãÑÂÙâÑÂÑÃÑÂÑãÑâÙãÑãÙãÑâÙãÑâÙãÑãÙãÑâÙÚâÙãÑâÙÚãÙÚãÙÚãÙÚÚ#ÚCâ…ÚDÚeÚdâeÚdÚeÚDâdÚDâeÚDâdÚDâeÚDâeÚDâeÚdâeÚdâÚÚ#ÚÚÚÚ#ÚÚÚÚ#ÚÚ#ÚâÚãÙ#Ú#âDÚ#âDÚ#âCÚ#â#ÚÚ#Ú#â#ÚâáÚâ#Úâ#ÚCâ¥â„â…âdâ…âdâ…â„â…â„â¥â„â…â„â…â…êÅâ¥ê¥â…âÅâdâ#ââ#ââ#Ú#âCÚ#â#Úâ#â#â#ââ#ÚâÚâ#ÚâÚâá#ÚâÚâáÚâÚâ#ââÚâ…âdâ…ÚDâeÚDâdÚDâdÚDâdÚDâDÚDâDÚDâdÚDâeÚDâeÚdâÚâÙÚâáãÙâÙÚâÙãÙâÙâÙÂÙâÙÂÙâÙÂÙâÙâÙâÙÂÙâÙÂÙâÑÂÙâÙâÙãÑÂÙâÑÂÙâÙÂÙ#ÒDâ$Ò#ÚDÚ#ÚDÚ#Ú$Ú#Ú¡ÑâÑCÚCÒ#Ú#Ò#ÚDÒ#ÚCÒ#ÚDÚÚ#Ò#ÚDÚCÚDÒCÚDÒ#ÚDÚCÚDÚCÚdÚdâÒÂÙÂÑÂÙâÙÂÙâÑÂÙâÑâÙÚâÙÚâÙãÑâÙÚâÙÚâÙÚâÙÚâÙÚâÙÚÚÚâÚÚ#Ú#Ú„â„âdÚdâ„âdâdÚdâ„ÚdâdÚdâdÚdâdÚdâdÚdâ…âdâdÚDâ„âCâ#Úâ#Úâ#ÚâÚâ#Úâ#Ú"âCÚâÚâCÚ"âCÚ#âCÚ"âCÚ"â#ÚâCÚ"â#Úâ#Úâ#â#â„â„â¥â„ê¥â„ê„â„ê…â„ê¤â„ê¤â„ê¤â„ê¥â¤êÅê¤ê¥â¥ê¥â"â#â"â#â"âCâ"â#ââ#â"âCâ#êCâ"â#ââ#ââââ#ââ#ââ#ââ#ââ#â"âBââCâ„â„âdâ„âdâ„âdâdÚcâdÚDâdÚDâdÚCâdÚCâdâdâ„âdâdÚ#âÚâáÚâáâÙâáâÙâáâÙâÙâÙâáâÙâÙâÙáÙâÙááâÙâáâÙáÙâÙÂÙâÙÁÙâÙÁÙâÙÁÙâÙCÚDÚ#ÚDÚ#âDÚ#âCÚ#âCÚÂÉÚDÒÒ$ÒÒ$Ò#ÒDÒ#ÚDÒ#Ú$ÒÒ$Ò#ÚDÒ#ÚDÒ#ÚDÒDÚDÒ$ÚDÒ$ÚeÚÚÂÑÂÙãÑÂÙâÑâÙãÑâÙãÙâÙãÙâÙãÑâÙãÑâÙãÑâÙãÑâÙãÑâÙãÑâÙÒâÙÒâÙÒâÙ#ÚÚdÚ…â…ÚDÚeÚDâeÚDâeÚDâeÚDâdÚDâdÚDâeÚDâeÚdâ…ÚDÚdÚdâ…â#ÚÚÚÚÚÚâÙÚâ#ÚÚ#Úâ#ÚÚ#Úâ#Ú#âCÚ#â#Ú#â#Ú#â#Ú#â#ââ#ÚâÚâdÚ…ê…âdâ…â„â…â„â…â„â…â„â…â„â¥â„â¥â„â¥â¤ê¥â…â¥â¥êdâ#â#Ú#â#ââ#Úâ#Úâ#Ú#âCâ#â#Úâ#ââÚâá#Ú#â#ââââá#ââ#ââ#ââCÚdê…Údâ…ÚdâeÚDâdÚdâdÚDâeÚDâdÚDâdÚCâDÚDâdÚdâeÚDâDÚÚâÙâÙãÙâÙâÙâÙâÙÂÙâÑÂÙâÙâÙâÙâÙâÑâÙâÙÂÙâÑÂÙâÑÂÙÂÑ¢ÙÂÑÂÙÂÑÁÙÂÑâÙDÒ#ÚDÚ#Ú$Ú#Ú#Ú#Ú$Ú#ÚâÑDÒÒ#ÒÚ#Ò#Ú#Ò#ÚDÒ#ÚDÒ#ÚDÒ#ÚDÚ#ÚDÚ#ÚCÚCÚDÒCÚDÒCÚdÚdÚdÒÂÙâÑâÙÚâÙâÑâÙâÙâáãÙâÙâÙÂÙâÙâÙãÑâÙãÑâÙãÙâÙÚâÙÚâÙÚâÙÚâÙÚâ#Ú„â…ÚdâdÚDâdÚdâ„ÚdâdÚdâdÚdâdÚdâdÚdâ„âdâ„ÚdâdÚDâ„â„âdÚÚ#Ú"â#Úâ#Úâ#Úâ#Úâ#Ú"â#Ú"â#Ú"â#Ú"â#Ú"âCÚ"âCâ"âCÚ"âCâ"â#ââ#Ú„âÅâ„ê…â„â…â„ê…â„ê…â„ê…â„ê…â„ê¥â„ê¤â„ê¥â„ê¥â„ê¥â„êCÚ"âCÚ"â#â"â#ââ#ââ#â"â#ââ#â"â#âââ"âCâ"â#ââ#â"ê#â"ê#ââ#âcâ¥â„â„âdâdâDâdâdâdâdâdÚDâdÚCâdÚCâdÚDâdâcâdÚdâdÚDâDÚâáÚâáâÙâáÚâÙâÙâÙâÙâÙÚâÙâÙÁÙâÙÁÙâÙáÙâÙáÙâÙÁÙâÙÁÙâÙÁÙâÑÁÙ#Ú#ÚCÚ#ÚDÚ#â#Ú#â#Ú#â#Ú$ÒÒÒÒÒÒ$ÒÒ$Ò#ÚDÒ$Ú$ÒÚ$Ò#ÒDÒ#Ú$Ò#ÚDÒ$ÚDÒ$ÚDÒDÚeÒdÚDÚâÙãÑãÙãÑÂÙãÙÂÙÒâÙãÙÂÙãÙÂÙãÑÂÙãÑâÙãÑâÙãÑâÙÒâÙãÑâÙÚâÙÚÚ#ÚCâ…ÚdÚeÚDÚdÚDâ…ÚdâeÚDâeÚDâdÚDÚdÚdâ…âdâeÚdâeÚDâ…ÚdâeÚdâDÚÚ#ÚÚãÙâÙÚÚÚâá#Ú#â#ÚÚÚÚÚÚ#Úâ#Ú#â#Ú#â#Ú#âCÚ#â#ââ#ÚCâ¥â…â¥â„â…â„â…â„â…â„â…Údâ¥â„ê¥â„â…â„â¥â„ê…â„â…â„â¥âdâ#Ú#â#ââ#Úâ#Úâ#ââáÚâá#Úâ#ââÚâá#ÚâÚâ#ââ#â"â#ââ#Ú#â…âdâ¥â„âeÚDâdÚDâdÚdâeÚDâdÚDâdÚDâdÚDâdÚDâdÚDâdÚCâdÚdâÚâáÚâÙãÙâÙâÙâÙâÙâÙâÙâÙâÑÂÙâÑÂÙâÑÂÙâÑÂÙÃÙ¢ÙâÑÂÙâÑÂÙÂÑ¡ÙÒ#Ú$Ò#Ú$Ò#Ú$ÚÚ#Ú#Ú#ÚÚ#Ú#ÒÚ#ÒÚ#Ò#Ú#Ò#ÚDÒ#ÚDÒ#ÚDÒ#ÚDÒCÚDÒCÚDÒCÚDÒCÚDÚdÚdÚdÚ…Údâ#ÒâÙâÙâÙâÙâÙâÙâáÚâÙâÙÂÙâÙâÙâÑâÙâÙâÙâÑâÙÚâÙÚâÙÚâÙÚâÙÚ#Ú„âdâdÚDâdÚCâdÚdâ„ÚcâdÚdâdÚCâDÚCâdÚdâ„â„â„Údâ…â„â„Údâ…âCâ#ÚâÚâáÚâ#ÚâáÚâ#ÚâÚâ#ÚÚ#Úâ#Ú"âCÚ"âCÚ"â#â"âCâ"âCâCâ„â„â¥â„ê…â„â…â„ê…â„ê…â„ê…â„ê¥â¤ê¤â„ê¤â„ê¤â„ê…â„ê¥â„ê¥â#êCâ"ê#âêâ"âCâ"â#ââ#â"â#â"â#â"â#â"â#ââ#â"â#â"âCâ"âCâ"âdâ„â¥â„ê„âdâ„âcâdâcâdâcâdÚCâdÚCâdÚCâdÚCâdÚCâdÚCâdÚCâ„âCâÚâáÚâáâÙâÙâÙâáÚâÙâÙáÙâÙÁÙÂÑÁÙâÙÁÙâÙÁÙâÙÁÙâÙÁÙâÙÁÙâÑ#ÚDÚ#ÚCÚ#âDÚ#ÚCÚ#â#Úâ#Ú$ÒÒ$ÒÚÒÚÒÚ$Ò#Ò$ÒÚ$Ò#Ò$Ò#ÚDÒCÚDÒDÚDÒ$ÚDÒDÚeÚDÚeÚdÚ…ÚCÚãÑâÙãÑÂÙãÑÂÙãÙâÙâÙÂÙÂÑÂÙãÑÂÙãÑâÙãÑâÙãÑâÙãÑâÙÚâÙÒâÙÚãÙDÚdâDÚDÚDÚDâDÚDâeÚDâeÚDâeÚDÚDÚDÚDÚdâ…Údâ…Údâ…Údâ…ÚdâeÚdâ…â#ÚÒâÙÚâÙ#ÚÚÚâá#ÚÚÚâÙÚÚ#Úâ#ÚÚ#Ú#â#Úâ#Úâ#Úâ#ÚâdÚ„â…Ú„â…âdâ…â„â…âdâ…â„â…âdâ…â„ê¥â„â„â„â¥â„â…â„â…â…ê¥â¥â„â#â#ââ#ââ#Ú#â#ââ#Úâ#Úâ#Úâ#ââ#Úâ#ââ#Úâ#ÚâCÚ#âDÚdê…â„â…âdâ…ÚDâdÚdâdÚDâdÚDâDÚCâdÚDâDÚDâdÚCâdÚCâDÚCâdÚdâdÚÚãÙÂÙãÑÂÙâÑâÙÚâÙâÙÂÙÂÑÂÙâÑÁÙÂÑÂÙÂÑÂÙÂÑ¡ÙÂÑÂÙÂÑ¢ÙÂÑâÙDÚ#ÚDÚ#Ú$Ò#Ú$Ò#ÚÚãÙÚãÙÒ#ÒÚ#ÒÚ#ÒÚ#ÒÒ#ÒÚ#ÒÚ$ÒÚDÚCÚDÚCâDÚCÚDÚCÚDÚDÚdÚdÚ„Údâ…ÚâÙâÑâÙâÙâÙâÙáÙâÙâáâÙÁÙÂÙÂÙâÙÂÙâÙâÙÚâÙâÙâÙÚâÙÚâÙ#Úâ#ÚdâdÚCâDÚCâdÚDâdÚCâdÚDâdÚDâdÚDâdÚDâdÚdâ„âdâ„Údâ…âdâdÚdâ…Ú„âdÚâÙâÙÚ#Úâ#ÚâÚâÚâáÚâ#Úâ#Ú"â#Úâ#Ú"â#ââ#â"â#ââ#Údâ…â„â„â„â„â„â„â„ê¤â„ê…â„â…â„ê¤â„ê„â„ê¤â„ê„â„â…â„âÅâ¤ê¥â¤êdÚâ#ââ#â"â#Ú"âCÚ"âCâ"â#ââ#â"â#ââââ#ââ#ââ#â"â#âdâ…â„ê„â„â„âdâ„âdâ„âcâdâCâdÚCâDâCâdÚCâDâCâDâCâDÚCâdÚCâdÚdâDÚÂÙâÙáÙâÙâÙÚÚÚâÙâÙÁÙâÙÁÙâÙÁÙâÙÁÙâÑÁÙÂÑÁÙâÙÁÙâÙÂÙ#ÚCÚCÚ#ÚDÚ#Ú#ÚÚ#ÚÚÚÚÚ$ÒÒÒÒÒÒÒÚÒãÑÒãÑÒÚ#ÒÚDÚ#ÚDÚ#ÚDÒ#ÚDÒDÚDÒDÚdÒDÚdÒdÚ$ÚÂÙãÙâÙâÙÂÙâÑÂÙÂÑÂÙÂÑÂÙÂÑÂÙãÑÂÙãÑâÙãÑÂÙãÑâÙÚâÙÚÚÒ#â…ÚdÚdÚDÚDÚDÚdÚDÚDÚ$âDÚDâdÚdâeÚdâeÚDâdÚdâdÚdâ…Údâ…ÚdÚeÚdâeÚDâÚâÙÚÚÚÚÚÚÚâÙÚâá#Úâ#Úâ#ÚÚ#ÚÚÚâÚâáÚâáãÙ#â…Údâ…âdâ…ÚdâdÚdâ…â„â¥â¥â…â„â…âdâ…â„â…â„â…â„â…â„â…â…ê¥â…â¥âDâÚâ#Ú#â#ÚâáÚâ#Ú#â#Úâ#Úâ#ÚâÚâá#Úâ#ÚâÚâáÚâ…â„â…âdâdÚdâ…âdâ…ÚdâdÚDâdÚDâDÚCâDÚDâDÚ#âDÚCâDÚDÚDÚCâeÚDâdÚDÚâÙÂÙâÙâÙãÙâÙâÙâÙâÙÂÙÂÑÂÙÂÑÂÙÂÑÂÙÂÑÂÙÂÑÂÙÂÑÂÙÂÑÂÙÒDÚDÚ#ÚDÚ#Ú$ÒÚ#ÒÚÒÚÚãÙÒ#ÒÚ#ÒÚ#Ò#Ú$ÒÚ#ÒÚ#ÒÚ#Ò#ÚCÚ#ÚDÚ#ÚDÚ#Ú$Ò#ÚDÚCÚDÚCÚDÚDÚdÚCâÒâÙÚâáâÙÂÙâÑÂÙâÙÂÙÂÙÁÙÂÑÂÙâÑâÙãÑâÙâÙâÙÚÚÚâ#Ú"ÚdÚdâdÚCâDÚCâdÚdâdÚCâDÚCâdâdâ„âdâ„âdâ„âdâ„âcâ„â„â„Údâ…âdâdÚDâdÚCâÚâ#Úâ#ÚâÚâáÚâ#Ú"â#Ú"â#Ú"â#ÚâÚâáÚâáÚâáâ#â„âdâ…â„â„â„â„âdâ„â„â¤â¤êÅâ„ê„â„ê„â„ê„â„ê¤â„ê¤â„ê„â„ê¥â„â¥â¤ê¥â"â#Ú"â#ââ#Úâ#Ú"â#Úâ#ââ#ÚâÚâáÚâ#ââââáÚâáCâ„ê„â„ê„âcâ„âƒâ„âdâ„âcâdÚCâdÚCâDÚCâDâCâDÚCâdÚCâDÚCâdÚCâdÚCâ„âââÑâÙâÙâÙâÙÁÙâÙâáâÙÁÙâÙÁÙâÙÁÙâÙÁÙâÙÁÙâÙÁÙâÙÁÙâÙ#ÚDÚ#ÚDÚ#ÚCÚ"Ú#ÚÚ#ÚÚÚÚÚÊãÑÒÒÒÚ$Ò#Ú$ÒÒÒÚ$ÒÚ$Ò#Ú$Ò#Ú$Ò#Ú$ÒÚ$Ò#ÚDÒ$ÚDÒ$ÚDÒDÚeÚDÚãÑâÙâÙÂÙâÑÂÙÂÑÂÙâÑÂÙÃÑ¢ÙÃÑ¢ÙÃÑÂÙãÑâÙãÑâÙÚâÙ#ÚÚDÚDâDÚDÚdÚDâdÚDâdÚDâDÚDÚdÚDâdÚDâdÚdâdÚdâeÚDâdÚDâeÚDâeÚdâeÚDâdÚDâ…Ú#ÚÚÚ#ÚâÚâÙÚâÙÚâ#Ú#â#Úâ#ÚÚ#ÚâÚâáÚâáÚâá…Ú…ê…Ú„â…Ú…â…âdâdÚdâ…â„â…â„â…âdâ…âdâ…âdâ„â„â…â„â…âdâ…â„â…Ú„âÅâ¥âdâÚÚâáÚâáÚâáÚâáÚâ#ÚâáãÙâáÚâáÚâáÚâáãÙâá#ÚDâdÚdâ…âdâ…âdâ„ÚdâdÚdâdÚDâDÚCÚDÚDâDÚCâDÚ#ÚDÚCâDÚCÚDÚCâDÚDÚDÚDâdââÙâÙâÙâÙÂÙÂÑÂÙâÙÂÙâÙÂÙÂÑÂÙÂÑÂÙâÙÂÙÂÑÂÙâÑÂÙâÑâÙeÚDÚ$Ò#Ú$ÒÚ#ÒÚ#ÚÚÒÚÚãÙâÑÒâÑÒÚ#ÒÚ#ÒÚ#ÒÚ#Ò#Ú$Ò#Ú#Ú#ÚCÚ#Ú#Ú#Ú$Ú#ÚDÚ#ÚDÚ#ÚDÚCÚdÚCÚ„ÚââÑÂÙâÙÂÙâÑÂÙâÑÂÙâÑÂÙÂÑÂÙâÑÁÙâÑÂÙâÙâÙÚÚÚÚ#ÚCâDÚCâdÚCâdÚDâdÚCâdÚDâdÚDâdÚCâdÚDâdÚDâdâdâdâcâ„âdâdÚcâ„âdâdÚDâdÚ„â„Úâ#Ú"â#ÚâÚâÚâ#Ú"â#Ú"â#Úâ#Úâ#ÚâââáââCâ¤âÅâ„â„â„â…â„ê„âdâ„âdâ…â„ê„â„ê„â„ê„â„ê„â„ê„â„ê…âdâ„âƒâ¤â„ê¥â¤âÅâ¤êCÚâáÚâáÚâáââáÚâ#ÚâÚâáÚâáÚâáÚâáÚâáÚCâ„âcâ„âdâ„âdâdâcâ„âcâdÚCâDÚCâDâCâDâCâdâCâDÚCâDÚCâDâCâdÚCâdÚCâdÚdâCÚÁÙâÙÂÙâÙÁÙâÙÁÙâÙâáâÙÁÙâÙÁÙâÙÁÙâÙáÙâÙáÙâÙáÙ#ÚDâDÚ#ÚCÚ#Ú#Ú"Ú#ÚÚ#ÚÚ#ÚÚ#ÚÊãÑÒãÑÒãÑÒÒ$ÒÚ#ÒÚ$ÒÚ$ÒÚ$Ò#Ú$Ò#Ú$Ò#ÚDÒDÚDÚDÚDÚ#ÚDÒDÚdÚdÚDÚÂÑâÑÂÙãÑÂÙãÑÂÙâÑÂÙÃÑ¢ÙÂÑ¢ÑÂÑÂÑâÑâÙÒâÙÚâÙãÑ#âEÚDÚDÚDÚDÚDÚDÚDâdÚDâDÚDâDÚDâDÚDâDÚDâdÚDâdÚDâdÚDâdÚDâdÚdâdÚdâeÚdâeÚdâCÚÚÚâÚâÚâáÚâ#Úâ#ÚÚÚâÚâÚâáÚâ#ÚCâ¥Ú„â…Ú„â…âdâ…â„â…âdâdÚdâ…âdâ…â„â…âdâ…âdâ…âdâ…âdâdÚdâ…â„â¥â„â…Ú…âÅâdâÚâáÚâáÚâáÚâáÚâáÚâáãÙâáâÙâáâÙâáãÙâáÚâdÚdâdÚDâdÚdâ…âDâdÚDâdÚCâDÚCâDÚDâDÚCâDÚCâDÚ#âDÚCâDÚDâDÚCÚDÚCÚDÚCÚdÚDÚâÑÂÙâÑâÙâÙÂÙâÙâÙâÙÂÙâÙÂÙâÙÂÙâÑÂÙâÑÂÙâÙÂÙãÑ#âDÒ#ÚDÚ#Ú$Ò#Ú#ÒÚ#ÚÚ#ÚÚÒÚÒ#ÒÚÒÒÒÚ#ÒÚ#Ò#Ú#ÒÚ#ÚÚ#ÒÚ#Ò#ÚCÚ#ÚDÚ#ÚDÚCÚDÚDÚdÚCâdÚCÚdÚdâÒÁÙâÑÂÙâÑâÙâÑÂÙâÑÁÙÂѡ٢ÑÁÙâÑÂÙâÑâÙÚâÙâÙÚdÚCâdÚCâDÚCâDÚCâdÚCâdÚCâDÚCâdÚCâdÚCâdÚCâdÚCâdÚCâdÚCâdâdâdÚcâdÚ„â„âdâdÚCê#ÚâÚâÚâáÚâ#Úâ#Úâ#Úâ#ââ#ââ#Úâ#âCâ„â„â…Ú„â¥â„â„Údâ„â„ê„âdâdâdâ„âdâ„â„ê„âdâ„âdâ„âdâ„âdâ…â„â…â„â„Ú„â¥â„â¥â"â#Úâ#ÚâÚâ#ââÚâáâÙâáÚâáâÙâáÚâáÚâCâ„â„âdâdâdâ„âcâdâCâDâCâDâCâDâCâdÚCâDâCâDâCâDâCâdÚCâDÚ#âCÚCâDÚCâDÚCÚdÚââÑÁÙâÙáÙâÙâÙâÙâÙâÙâáâÙÁÙâÙÁÙâÙáÙâÙáÙâÙ#ÚDÚ#ÚDÚCÚDÚ#ÚCÚ#ÚCÚ#â#ÚÚ#ÚÚ#ÚÊÒ$ÒÒÒãÑÒÚ$ÒÚ$ÒÚ$ÒÚ$ÒÒÒÒ$Ò#ÚDÒÚ$Ò$Ú$Ò$ÚDÒDÚDÒDÚDÒDÚeÚCÚÂÑÂÑâÑÂÙâÑÂÙâÑÂÑÂѢ٢ɡѢÑÂÙãÑÂÙâÑâÙâÙâÙDÚDÚDÚDÚDÚ#ÚDÚ#ÚDÚCâDÚDâDÚDâDÚDÚDÚDÚDÚDâdÚDÚDÚDâdÚCâDÚDâdÚdâdÚDâ…ÚdâeÚDâdÚ#ÚÚâáÚâÙãÙâÙÚâá#ÚÚ#ÚÚÚÚÚâ#Úâ#ÚâeÚdâ…Údâ…Ú„â…Ú„â…Údâ…âdâdÚdâdÚdâ…âdâ…â„â…âdâdÚdâdÚdâ…â„â…âdâ…âdâ…Ú„â¥Ú„âdâ#â#ÚâÚâáÚâáÚâáãÙâáãÙâáãÙâáâÙâáãÙâá#Údâ…âdâ…ÚdâdÚdâdÚDâDÚCâDÚDâdÚDâDÚCâDÚDâDÚCâDÚDâDÚCÚDÚ#ÚDÚ#âDÚ#ÚDÚ#ÚDÚDÚDÚÂÑÂÑ¢ÙÂÑ¢ÙÂÑÂÙâÙÂÙâÙÂÙâÙÂÙâÑÁÙâÑÂÙâÑâÙDÚ#ÚDÚ#ÚDÒ#Ú$ÒÚ$Ò#Ú$Ò#Ú$ÒÚÚâÙâÑ#ÒÚ#ÒÚÒÚ#ÒÚ#ÒÚ#ÒÚ#ÒÚ#Ò#Ú#ÒÚCÚ#Ú$Ò#ÚDÚCÚDÚCÚDÚDÚdÚCÚdÚCÚdÚâÙâÑÂÙâÑÂÙâÑÂÙâÑ¡ÙÂѡ٢ѡÙÂÙÁÙâÙáÙâÑáÙ#ÚDâDÚCâdÚCâDÚCâDÚCâDÚCâdÚCâDÚCâDÚCâDÚCâDÚCâdÚCâdÚCâdÚCâdÚdâ„âDâdÚdâ„âCâdÚ„â„ÚâÚâÚâáÚÚ#Úâ"Úâ#ÚâáÚâ#Úâ#ÚâCâ„â…Údâ…â„â„â„â¥â„ê„âdâ„âdâ„âcâ„â„â„â„ê„âdâ„âdâ„âdâ„â„â„âdâ…â„ê„â„â¥â„â¥â¤êCÚ"â#ÚâÚâáââÚâáÚâáâÙâáâÙâáÚâáÚCâ…â„â„âdâ„âcâ„âcâdÚCâDâCâDâCâcâCâcâCâCÚCâDÚCâdÚCâCÚ#âCÚ#ÚDÚ#ÚDÚ#ÚDÚCâDÚCâÒ¡ÙÂÙ¡ÙÂÑÁÙâÙÁÙâÙÁÙâÙÁÙâÙ¡ÙÂÙÁÙâÙâÙ#ÚCÚDÚCÚDÚ#ÚCÚÚ#Ú#ÚCÚ#Ú#ÚÚ#ÚÚÚÒãÑÒÒ$ÒÒÒãÑÒÒÒÚÒÒÒÚ$Ò$Ú$Ò$Ú$ÒÚ$Ò#ÚDÒDÚDÒ#ÚDÒDÚDÒDÚDÒDÚ#ÚÂÑâÑÂÑâÑÂÙÂÑÂÑÂÑÂÙÂѡѢѢÙâÑÂÙãÑÂÙãÑ#âEÚ$ÚDÚDÚDÚ#ÚDÚDâDÚDÚDÚCÚDÚDÚDÚDÚDÚDÚDÒ$ÚDÚDÚdÚDâdÚCÚeÚDâ„ÚdâdÚDâdÚDâdÚDâeÚdâCÚÚÚâáÚâÙÚâÙÚÚÚâáÚâáÚâÚâ#Údâ¥Ú„â…Ú„â…Ú„â…Ú„â…âdâ…âdâ…âdâdÚdâ…âdâdâDâdÚdâ…âdâ…Údâ…âdâdÚdâ…â„â…Ú„â…âdâ¥âdâ#Úâ#Úâ#ÚâÚâáÚâáÚâáãÙÂáãÙâáãÙâá…Údâ…Údâ…âdâdÚDâdÚCâDÚCâDÚCâDÚ#âDÚ#âDÚCâDÚCâDÚCâDÚ#âDÚ#ÚDÚ#ÚDÚ#ÚDÚ#ÚDÚ#ÚDÚ#ÚÂѡ٢ѡÙÂÑÂÙâÙÂÙÂÙ¢ÙÂÑ¡ÙÂÑ¡ÙÂÑ¢ÙãÑ#âDÚ#ÚDÚ#Ú$ÒÚ#ÒÚ$Ò#Ú#ÒÚ#ÚÚÚãÙâÑÒâÑ#ÒÚ#ÒÚÒÚÒÚÒÚ#ÒÚ$Ò#ÚDÚ#ÚDÚ#Ú$Ò#Ú$Ò#ÚDÚ#ÚDÚ#ÚCÚ#ÚDÚ#ÚDÚCâÒÁÙÂÑÁÙÂÑÁÙâÑÁÙÂÑ¡ÙÂÑ¡ÙÂÑÁÙâÙáÙâÙÚdÚCÚDÚCâDÚ#ÚDÚ#ÚDÚCâDÚCÚDÚCâDÚCâDÚCâDÚCÚDÚCâdÚCâdÚCâDÚCâdÚdâdÚDâdÚcâdâdâdÚCâdÚCâ#ÚâÚâÚâÙÚâáÚâáÚâáÚâ#Úâ#ÚCÚ„â„â¥Ú„â¤Údâ„âdâ„âdâ„â„ê„âdâdâCâdâdâ„âcâdâdâ„âdâ„âdâ„âdâ„âdâ„â„â„âdâ„â„â„â„ê„ââÚâáÚâÚâáÚâáÚâáÚâáâÙâáâÙâáCâ„â„âdâ„âdâdâCâdÚCâdÚCâDâCâDâCâCâ#âCâCâCÚCâCÚCâDÚ#âDÚCâCÚ#ÚDÚCâCÚCâCÚ#ÚCÚ#ÚDÚâÙÁÑ¡ÙÂÙÁÙâÙÁÙâÙÁÙÂÙ¡ÙÂÙÁÙâÑÁÙâÑÚDÚ#ÚCÚCâCÚ#Ú#ÒÚ#ÒÚCÚ#â#ÚÚ#ÚÚ#ÚÒãÑÒãÑÒÒÒãÑÒâÑÒãÑÒÚ$ÒÚ$ÒÚ#ÒÚ$ÒÚ#ÒÚ#ÒÚ$Ò#Ú$Ò#ÚDÒ#ÚDÒ$ÚdÚCÚÂÑ¡ÙÂÑ¡ÙÂÑÂÑÂÑÂÑÂÑ¢ÑÂÑ¢ÙÂÑÂÙâÙâÙDÚDÚDÚ#ÚDÚ#ÚDÚ#ÚDÚ#ÚDÚ#ÚDÚDÚDÚDâDÚ#ÚDÚDÚDÚDÚDÚDâdÚCÚDÚDÚDÚDÚDÚDÚDÚDâdÚDâeÚDâeÚDâdÚ#ÚâÙâÙÚâÙÚâÙâÙâÙÚâÙÚâá#ÚÚ#ÚÚ…Údâ…Údâ…Ú„â…âdâ…ÚdâdÚdâ„âdâ…âdâdâCâdâDâdÚDâdÚdâ…âdâ…âdâ…Údâ…âdâ…ÚDâdÚdâ…Ú„â…â„âDââÙãÙâÙÚâáÚâáÚâáÚâÙãÙâÙãÙâáÚCâ…ÚdâdÚdâeÚDâDÚDâDÚCÚDÚCâDÚCâDÚ#â#Ú#â$Ú#âDÚ#âDÚ#Ú$Ú#âDÚ#âDÚ#ÚDÚ#ÚDÚCÚDÚ#Ú$Ò#Ú$ÚÂÑÂÑÂÙÂÑ¡ÙÂÑ¢ÙÂÑ¡ÙÂÑ¢ÙâÑÂÙÂÑÂÙDÚ#ÚDÚ#ÚDÚ#Ú$ÒÚÒÚ#ÚÚ#ÒÚÒâÙÒãÙÚÒÚÒÚÒâÙÒâÑâÑâÑÒÚ#Ò#ÚDÚ#Ú#ÒÚ#Ò#Ú#ÒÚ#ÒÚ$Ú#ÚDÚ#ÚCÚ#ÚCÚ#ÚDÒcÚ„ÚâÙâÑÁÙÂÑ¡ÙÂÑÂÙÂÑÁÙâÑÁÙâÙÁÙâÙâÙ#ÚdâdÚCâDÚ#ÚDÚ#ÚCÚ#ÚDÚ#ÚDÚ#ÚDÚCâDÚCâDÚCâDÚDâdÚCâdÚCâDÚCâDÚCâDÚCâDÚCâdÚCâdÚdâdÚdâ„âdâ„ââÚâáâÙâáÚâáÚâáÚâáÚÚ#ÚÚCâ„â„Údâ…âdâ„â„â„âdâ„âcâdÚcâ„âdâ„âCâDÚCâdâdâ„âdâ„âdâ„âdâ„âdâ„â„â„âdâ„âdâ„â„â¥â„ê…â„êCÚâáÚâáÚâÚâáÚâáÚâÚâáÚCâ„âdâ„âdâ„âdâdÚCâdÚCâDÚCâdÚCâdâ#â#Úâ#Ú#âCÚCâCÚ#âCÚ#âCÚCâDÚCâDÚCâCÚCâDÚCâDÚ#ÚDÚCâ#ÒÁÙÂÙÁÙâÙÁÙÂÙÁÙâÙÁÙÂÙÁÙâÑÁÙÚCâDÚCâCÚ#ÚDÚ#Ú#ÒÚ#ÚÚ#ÚÚ#ÚÚ#ÚÚÚÒãÑÒãÑÒãÑÒãÑãÑÂÑãÑãÑÒÚ$Ò#Ú$ÒÚ$ÒÚ$ÒÚÒãÙÒÚ$ÒÚ$Ò#ÚDÒ#ÚDÒ#ÚDÒdÚDÚÂÑÂÑ¡ÙÂÑ¢ÙÂÑ¢ÑÂÑÂÑâÑÂÙÂÑÂÙãÑ#âdÚ#ÚDÚ#ÚDÒ#ÚDÚDÚDÚ#ÚDÚ#ÚDÚ#ÚDÚ#ÚDÚDÚDÚDÚdÚDâDÚDÚDÚCÚDÚDÚDÚDâDÚDâdÚDâdÚDâdÚDâeÚdâdÚdâ#ÚâÙâÙâáÚâÙâÙâáÚâÙÚâáÚâá#ÚdâdÚDâdÚdâ…Údâ…Údâ…âdâdÚDâdÚdâ„ÚdâdâCâDÚDâdÚdâdÚdâdÚdâdÚdâdÚdâdÚdâdÚdâdÚdâdÚdâ…âdâ…âDâÚâáãÙâáÚâÙÚâáÚâÙÚâÙãÙâádÚDâdÚdâdÚdâeÚDâDÚCâDÚCÚDÚCâDÚCâ$Úâ$Úâ$Ú#âDÚ#âDÚ#âDÚ#âDÚ#âDÚ#ÚDÚ#ÚDÚ#âDÚ#ÚDÚ#ÚDÚ#ÚÂѡ٢ѢÙÂÙ¢ÙÂÑÂÙÂÑ¡ÙÂÑ¢ÙãÑ#âDÚ#ÚDÚ#Ú$Ú#ÚDÚ#Ú#ÒÚ$Ò#Ú$ÒÚÒÚÒâÙÚ#ÒÚÒÚ#ÒÚÒâÙÒâÙÒÚ#Ò#ÚCÚ#Ú#Ò#Ú#Ò#Ú#ÒÚ#ÒÚ#ÚÚ#Ò#ÚDÚCÚDÒ#ÚCÒ#ÚDÚCâÒÁÙÁÑ¡ÙÂÑÁÙÂÑÁÙÂÑÁÙâÙÁÙÂÑÚdÚCâDÚCÚDÚCÚDÚCâDÚCÚDÚCÚDÚCâdÚCâDÚDâDÚ#ÚDÚCâDÚCÚDÚCâDÚCÚDÚCâDÚDâdÚCâdÚDâdÚDâdÚdâ„Údâ„ÚCâÒâáÚâáâÙâáÚâáÚâáÚâáÚCâ„âCâdÚdâ„âdâ„âdâdÚcâ„âdâ„âcâ„âCâdâdêdâCâdâdâdâdâdâCâdâdâ„âcâ„â„â„âcâ„âcâdÚcâ„âdâ„â„â„ââÚâáÚâáÚâáÚâÚâ#ÚÚCâdâdÚdâ„âdâ„âdâdÚCâDÚCâDÚCâDÚCâDâ#â#Úâ#ÚCâDÚ#âDÚCâCÚ#âCÚ#âCÚCâCÚCâDÚCâDÚ#ÚDÚ#ÚCÚ#ÚDÚâÙâÑÁÙâÙÁÙâÙÁÙâÙÁÙâÙÁÙÂÑÚDÚ#ÚCÚ#ÚDÚ#ÚDÚÚ#ÚÚ#Ú#ÚCÚ#Ú#ÚÚ#ÚÚÚÒãÑÒãÑÒÒÒãÑÒãÑÒãÑÒÚ#ÒÚ$ÒÚ$ÒÚ$ÒÚ$ÒÚ$ÒÚ$ÒÒ$Ò#ÚDÒCÚDÚ#ÚDÒ#Ú$ÒڢѡÑÂÑ¢ÙÂÑ¡ÑÂÑ¢ÑÂÑÂÙÂÑ¡ÙDÒDÚDÚ#ÚDÚ#ÚDÚ#ÚDÚ#ÚDÚ#ÚDÚDÚDÚDâDÚDÚDÚ#Ú$Ò#ÚDÒ$ÚDÒ#ÚDÚ#ÚDÚCÚDÚ#ÚDÚDÚDÚDâdÚDÚdÚDâeÚdâdÚDâdÚ#ÚãÙâáÚâÙâÙâÙãÙâáãÙâáÚâáeÚdâdÚDâdÚdâ…ÚdâdÚDâdÚdâdÚDâdÚdâdâDâDÚDâdÚDâdÚdâdÚDâdÚDâdÚDâdÚdâ…âdâdÚdâdÚDâdÚdâdÚdâdÚdâDââÙãÙâáãÙâÙãÙâáÚâ#Úâ#ÚDâdÚDâdÚdâdÚDâdÚCâDÚ#ÚDÚ#ÚDÚCÚDÚCÚDÚ#Ú$Ú#ÚDÚ#âDÚ#âDÚ#ÚDÚ#âDÚ#Ú$Ú#âDÚ#ÚDÚ#ÚDÚ#ÚDÚ#ÚDÚ#Ú#ÚÁÑÂÑÂÙÂÙÂÙÂÙ¡ÙÂÙ¡ÙâÑÂÙDÚ#Ú$Ò#Ú$Ò#ÚDÚ#Ú#ÚÚ#ÚÚ#ÚÚ#ÚÚÒÚÚãÙâÑÒÚÒÚ#ÒÚ#ÒÚ#ÒÚ#ÒÚ#ÒÚCÚ#Ú#ÒÚ#Ò#ÚDÚ#ÚCÚÚ$ÚÚ#ÒÚ#Ú#ÚDÚCÚDÚCÚCÒ#ÚDÒÁÙ¡Ñ¡ÙÂѡ١ѡÑÂÑÁÙâÙÁÙâÑCÚDÚCâDÚCâCÚ#ÚCÚ#ÚCÚ#ÚCÚCÚDÚCâdÚDâDÚCâDÚ#ÚDÚ#ÚDÚCÚDÚCÚDÚCâdÚCâDÚCâDÚCâdÚDâdÚCâdÚCâdÚCâdÚcâdÚâá#ÚâáâÙâáâÙâáÚâáÚÚCâdâ„Údâ„Údâ„âdâdÚdâ„âdâdâCâdÚCâ„âdâdâDâdÚdâ„âdâ…âcâdÚCâdâCâdâCâ„âdâ„âdâ„âcâdâdâ„âdâ„âdâ„âcê#ÚâáâÙâáâÙâáÚâá#ÚâÚCâ„âCâdÚCâdâcâdÚdâdÚCâDÚCâDÚCâDÚCâdÚCâCÚ#âCÚ#âCÚ#âDÚ#â#Ú#â#Ú#â#Ú#âCÚ#â#Ú#ÚDÚCâCÚCâCÚCâDÚ#ââÑ¡ÙÂÙÁÙâÙÁáâÙÁÙÂÙÁÙÚDâDÚ#ÚCÚ#ÚCÚ#â#ÚÚ#ÚÚ#Ú#â#Ú#Ú#ÒÚ#ÚÚÚÊÒÒÒÒÚÒÚ$ÒÒÒãÑÒÒÒÚÒÒÒãÑ$Ò#Ú$ÒÚ$ÒÚ$ÒÒ$Ò#ÚDÒ#ÚDÚ#ÚDÒ#Ú$Ò#ÚҢѢѡѢѡѡѡÑÂÑÁÙÂÑãÙDÒ#ÚDÚ#ÚDÚ#ÚDÚ#Ú$Ò#Ú$Ò#ÚDÚ#ÚDÚDÚDÚ#ÚDÚ#ÚDÒ#ÚDÚDÚDÚ#ÚDÚCÚDÚCÚDÚ#ÚDÚDÚDÚDÚdÚDÚDÚ#ÚDÚCÚDÚDÚDÚDâ#ÚÚÚâÙãÙâÙãÙâÙâÙâá#ÒCâ„ÚdâdÚDâdÚDâeÚDâdÚdâdÚDâDÚ$âDÚDâdÚDâdÚDâdÚDâdÚdâdÚDâDÚCâdâDâdÚdâ…âDâdÚDâdÚDâ…ÚDâdÚdâdÚdâdÚCÚÚâáãÙâÙâÙÂáãÙâáÚâádÚDâdÚDâdÚdâdÚDâdÚdâdÚCÚDÚ#ÚDÚCâDÚ#âDÚCâDÚ#â$Ú#âDÚ#â$Ú#âDÚ#Ú#ÚÚ#ÚÚÚÚ#Ú#ÚDÚ#ÚDÚ#ÚDÚ#Ú$Úã٢ѢÙÂÙ¢ÙÂÑÂÙâÙÂÙÂÑãÙ$Ò#ÚDÚ#Ú$ÚÚ#ÚÚ#ÚÚ#ÚÚ$ÚÚ$ÚÚÒÚÚãÙÒ#ÒÚ#ÒÚ#ÒÚ#ÒÚ#ÒÚÒâÑÒÚÒâÑÒÚ#Ò#ÚDÚ#Ú#Ú#ÚCÚ#Ú#Ò#ÚCÚ#ÚDÚCÚDÚ#ÚCÒ#ÚDÒ#ÚâÑ¡ÙÂÑ¡ÙÁѡ١ÑÁÑÁÑâÑCÚ#ÚDÚCâDÚCÚDÚ#ÚCÚ#ÚCÚ#ÚDÚ#ÚCÚCâDÚCÚDÚCâDÚ#ÚDÚCÚDÚCâDÚCâDÚCâDÚ#ÚDÚCâdÚCâdÚDâdÚCÚDÚCâDÚCâDÚCÚDÚCâ#ÚâÚâáâÙâáâÙâáÚ#Ú„âdâ„ÚcâdÚDâdÚCâdÚDâdÚCâdÚCâDÚCâdÚdâdÚCâdÚCâdâcâdâcâdÚCâDâCâdâcâ„âdâdâcâdÚCâdâdâdÚCâdâcâ„âdâ„ââÚâáâÙâáâÙâáâÙâá#âdâdÚCâdÚcâdâcâdÚCâ„âcâdÚCâCÚCâCÚ#âCÚCâDÚ#âCÚ#âCÚ#âCÚ#âCÚ#âCÚâ#Úâ#Úâ#Ú#ÚCÚCâDÚCâCÚ#ÚCÚ#ÚCÚÁÙÂÑÁÙâÙÁÙâÙÁÙÂÙâÙ#Ú#ÚCÚ#ÚDÚ#â#Ú#â#ÚÚ#ÚÚ#Ú"Ú#ÚÚ#ÚâÙÚÚ#ÚÒãÑÒÚÒÚÒãÑÒãÑãÑãÑãÑãÑÒãÑãÉãÑÒÒ$Ò#Ú$ÒÚ$Ò#ÚDÚ#Ú$Ò#ÚDÚDÚDÒ#Ú$Ò#Ò$ÒÒDÒҢѡѢѡÑÂÑ¡ÑÂÑ¡Ñ#Ò#Ú$Ò#ÚDÚ#ÚDÚ#ÚDÚ#Ú$ÒÚ#Ò#Ú#Ò#ÚDÚ#ÚDÚ#ÚDÚ#ÚDÚ#ÚDÚ#ÚDÚ#ÚDÚ#ÚDÚ#ÚDÚDÚDÚDÚDÚDÚDÚCÚDÚ#ÚDÚ#ÚDÚ#ÚDÚ#ÚdÚ#ÚÚÚãÙâÙãÙâÙÚâáDÚDÚdÚDâdÚDÚDÚDÚDÚDâDÚDâDÚDâdÚDâdÚDâdÚdâdÚDâdÚDâDÚDâDÚCâDÚCâDÚDâdÚdâdÚDâdÚdâeÚdâdÚDâDÚDâdÚDâdÚdâDÚâÙãÙâÙâÙÂáâÙÂáÒCâeÚDÚDÚDâdÚDâdÚCâDÚDâdÚDâDÚCâDÚ#ÚDÚ#âDÚCâDÚ#â$Ú#Ú$Úâ$Ú#â$ÚÚ$ÚÚ#ÚÚ#ÚÚ#Ò#ÚDÚ#ÚDÚ#Ú$Ò#Ú$Ò#ÚÚÁÑÂÑ¡ÙÂÑ¡ÙÂÑ¡Ù#Ò#Ú$Ò#Ú$Ò#Ú#ÚÚ#ÚÚ#ÚÚÒÚ$ÚÚÒÚÒÚÚãÙÚÒÚ#ÒÚÚÚÒâÑÒâÑãÑâÑÒÚÒâÑÒÚ#ÒÚ#Ú#Ú$Ò#ÚDÚ#ÚCÚ#ÚDÚ#ÚDÚ#ÚCÚ#Ú#ÒÚ#Ò#ÚDÒÁÙÂÑ¡ÙÂÑÁÙÂÑÁÑâÑCÚDÒ#ÚCÒ#ÚDÚCÚDÚ#Ú#Ú#Ú#Ú#Ú#Ú#ÚCÚ#Ú#Ú#ÚDÚCâCÚCâCÚ#ÚCÚCâCÚ#ÚDÚ#ÚDÚCâDÚCâDÚCâDÚCâDÚ#âDÚ#ÚCÚCâDÚCâDÚCÚdÚÚÚâÙâÙâáÚâÙCÚDâDÚCâdÚDâdÚCâdÚCâDâCâDÚ#âDÚCâdÚcâdÚCâdÚCâdÚCâdÚCâDâCâDÚCâdâCâdâcâ„âdâ„âdâdÚcâdÚCâdÚCâDÚCâdÚCâdÚCâ#ÚÁáâÙÁáâÙááâÙ#âdâCâdÚCâdÚcâ„âCâdÚCâdÚCâdÚCâdÚCâDÚCâDÚCâdÚCâCÚ#âCÚ#â#Ú#â#Ú#â#Ú#âCÚ#â#Úâ#Ú#âCÚ#ÚCÚ#â#Ú#ÚCÚ#ÚCÚ#ââÑÁÙÁÑ¡ÙÂÙÁÙâÙ#Ú#Ò#ÚCÚ#â#Ú#â#Ú#â#ÚÚ#ÚÚ#ÚÚ#ÚÚÚÚ#ÚâÚÒãÑÒÒÒÚÒãÑÒãÑÒãÑãÉãÑÒãÑãÉãÑÒãÑÒÚ#ÒÚ$Ò#Ú$ÒÚ$Ò#ÚDÒ#Ú$ÒÚÒÒ$ÒÚ$ÒÚÒ¢ÑÂÑÁÙÂÑ¡ÑÂÉâÙDÒ#Ò$Ò#Ú$Ò#ÚDÚ#ÚDÒ#Ú$ÒÚ$Ò#Ú$ÒÚ$Ò#Ú$Ò#ÚDÚ#ÚDÚ#ÚDÚ#ÚDÚ#ÚDÚ#ÚDÚDÚDÚ#ÚDÚCÚDÚ#Ú$ÚÚ$ÚÚ$Ú#ÚDÚ#âDÚCÚdÚDÚÚâÙãÙâÙâÙâÙÒCâdÚDÚDÚDÚdÚDâeÚDÚDÚDÚDÚ#âDÚ#âDÚ#âdÚDâDÚCâDÚDâdÚCâDÚ#âDÚ#âDÚDâdÚdâdÚdâdÚDâdÚDâdÚDâdÚDâDÚDâDÚDâdÚDâdÚ#ÚÂÙÂÙâÙÂÙâÙÂÙDÚDâDÚDâDÚDâdÚDâdÚCâDÚCâDÚCâdÚDâDÚ#â$Ú#ÚDÚ#âDÚ#â$ÚÚ#ÚÚ$Úâ$Ú#Ú$Úâ$ÚÚ#ÚÚ$ÚÚ$ÚÚ$ÚÚ$Ò#Ú#Ò#ÚDÚÚÂÑ¡ÙÂÑ¡ÙâÑÚ$ÒÚ$ÚÚ$ÚÚ#ÚÚ$ÚÚÒÚÒÚÒÚÚãÙÒÚÚãÙÒ#ÒÚ#ÒÚÒÚ#ÒÚÒÚÒâÑãÑâÑãÑâÑãÑÚÒÚ#ÒÚ#ÚÚ#ÒÚ#Ò#ÚCÚ#ÚCÚ#Ú#ÒÚ#ÒÚ$Ú#Ú#ÒÚâÑ¡ÙÂÑ¡ÙÂÑâÑ#ÒÚCÚ#ÚDÚ#ÚDÚ#ÚDÚ#ÚDÚÚ#Ò#ÚCÚ#ÚDÚ#ÚCÚ"ÚCÚ#ÚDÚ#ÚCÚ#âCÚCâCÚ#ÚDÚ#ÚDÚ#ÚCÚCâCÚ#ÚCÚ#â#Úâ#Ú#âCÚ#âCÚ#ÚDÚCâDÚCâÒâáâÙÁÙâÙ#ÚdÚCâdÚCâdÚCâdÚdâdÚCâDÚCâDÚCâDÚCâDÚCâdÚCâdÚCâdÚcâdÚCâDâCâDÚCâdâdâ„âcâ„âdâdÚdâdÚdâdÚcâdÚCâdÚDâdÚDâdâCâdÚâáâÙâáâÙáÙ#ÚDâdÚCâdÚCâdÚDâdâcâdÚCâDÚCâDÚCâdÚCâCÚ#â#Ú#â#ÚCâCÚ#â#Úâ#Úâ#Ú#âCÚ#â#Úâ#ÚÚ#Úâ#ÚÚ#ÚÚ#ÚÚ#ÚÚ#Ú#ÚDÚÁÙÂÙ¡ÙÂÙâÙ#Ú#ÚCÚ#â#Ú#ÚCÚ#â#ÚÚ#ÚÚ#ÚÚÚÚÚÚ#ÚÚÚÚÚÊÒÒÒÒÒÒãÑ$ÒÚÒãÑãÑâÑãÉÂÑãÑãÑÒãÑÒÚ#ÒÚÒÚÒÚ$ÒÚ$Ò#Ú$ÒãÑÒÚ$ÒÚ$ÒÚ#ÒÚÂÑ¢ÙÂÑ¡ÑÒÚ#Ò#ÚDÒ#ÚDÚ#ÚDÚ#Ú$ÒÚ#ÒÚ$Ò#Ú$Ò#Ú$ÒÚ#ÒÚ#Ò#ÚDÚ#ÚDÚ#ÚDÚ#ÚDÚ#ÚDÚ#Ú$Ò#ÚDÚ#ÚDÚ#Ú$ÚÚ$ÚÚ#ÚÚDÚ#Ú$Ò#ÚDÒCÚdÚ#ÚâÑÂÙÂÑÂÙdÚDâdÚDâdÚDâdÚDâdÚDâdÚCâDÚCâDÚ#ÚDÚ#ÚDÚCÚdÚCâdÚCâdÚCâdÚCâDÚDâdÚDâdÚDâdÚDâdÚDâdÚDâdÚdÚdÚdâdÚDâdÚDâdÚDâDÚCâ$ÚÂÙÂÑÂÙâÑ#âDÚDÚdÚDâdÚDâdÚDâdÚdâDÚ#âDÚ$âDÚCâDÚ#Ú$ÚÚ#Úâ$Úâ#ÚÚÚÚ#ÚÚ#ÚÚ$ÚÚ#ÚÚÚãÙÒÚÒâÙÒÚ$ÚÚÒÚ$Ú#ÚÚ¡ÙÂÑ¡ÙÒÚ#Ò#Ú$ÚÚ$ÚÚÒÚ#ÚÚ#ÚÚÒãÙÒÚÒÚÒÚÚãÙâÑÒÒ#ÒÚ#ÒÒ$Ò#Ú#ÒÚÒâÑÒâÑãÑâÙÒÚÒÚ#ÒÚ#ÒÚ#ÒÚ#ÒÚ#Ò#ÚDÚ#Ú#ÒÚ#Ò#Ú#Ú#Ú#ÒÚ$ÒÂÙÂÑÁÑâÑ#Ú#ÒÚCÚ#ÚDÚ#ÚDÚCÚDÚ#ÚCÚ#ÚDÚ#ÚDÚ#ÚCÚ#ÚCÚÚ#Ò#ÚCÚCâCÚCâCÚCâDÚ#ÚDÚ#ÚCÚ#ÚCÚCâCÚCâDÚ#â#Ú#â#ÚÚ#Ú#âDÚ#ÚDÚCâDÚCÚdÚâÙâÑÁÙÚDâdÚdâdÚCâdÚcâdÚCâdÚCâdÚCâdÚCâDÚCâDÚCâdÚCâdÚCâdÚCâdÚCâdÚCâdÚCâdâdâdÚCâdÚCâdâcâ„âdâdÚcâ„âdâdâCâdÚCâdÚCâDÚCâÚÁÙÂÑÚdâCâdÚcâ„âdâdÚDâdÚdâ„âCâdÚCâDÚCâDÚCâCÚâ#Úâ$Ú#â#ÚÚ#ÚÚ#ÚÚ#Ú#â#Ú#â#Úâ#Úâ#ÚÚÚÚ#Ú#ÚCÚ#â#ÚÚ#Úâ#ÚââÑ¡ÙÂÙ#Ú#ÚÚ#ÚÚ#ÚÚ#ÚÚ#ÚÚ#ÚÚ#ÚâÙÒÚ#ÚÚ#ÒÚ#ÚÚ#ÚÊÒ$ÒÒ$ÒÒ$Ò#Ò$ÒÚÒãÑÒãÑãÑãÑÒãÑÒâÑÒãÑÒÚÒÚÒÚ$ÒÚ#ÒÚ#ÒÚ$ÒÚ$ÒÚ$ÒÚ#ÒÚÒ¢ÑâÑÚ$ÒÚ#Ò#Ú#Ò#ÚDÚ#ÚDÒ#ÚDÒ#ÚDÒ#ÚDÚ#Ú$Ò#ÚDÚÚÒÚDÚ#ÚDÚ#ÚDÒ#ÚDÚ#ÚDÒ#ÚDÚ#Ú$Ò#ÚDÚ#ÚDÚ#Ú$ÚÚ$ÚÚ$ÚÚ#Ú#ÚDÒ#ÚDÚCÚDÚDÚ#ÚÂÑãÑ#âDÚDÚDÚDÚDÚDÚDÚCÚdÚCÚDÚCâDÚDâdÚCâDÚDÚDÚDâDÚDâDÚ#ÚDÚDâdÚDâdÚDâdÚdâdÚDâdÚDâdÚDâdÚdâeÚDâdÚDâdÚDâdÚDâDÚDÚDÚ#âDÚÚÂÑÁÙDÚDâDÚDâdÚDâdÚDâdÚdâdÚdâdÚDâDÚCâDÚCâDÚ#Ú$Úâ$ÚâÚÚÚÚ$ÚÚÒÚ#ÚÚ$ÚÚ#Ú#Ú#ÚÚÒÚ$ÚÚ$ÚÚÒÚÒÚÒÚ$ÚãÙ¢ÑâÙ$ÚÚÒÚ$ÚÚ#ÒÚ#ÒÚ$ÚÚ$ÚÚÒãÙÒÚÒâÙÚãÙÚÚÒ#ÒÒ#ÒÒ#ÒÚ$ÒÚ#ÒÚ#ÒÚÒâÙÒÚ#ÒÚÒâÙÒÚ#ÚÚ#ÒÚ#ÒÚ#ÒÚ#ÒÚ#ÒÚ#ÒÚ#Ò#Ú#ÚÚ#ÒÚâÑâÙDÚ#Ú#Ò#Ú#Ò#ÚCÚ#ÚCÚ#ÚCÚ#ÚDÚ#ÚDÚ#ÚCÚ#ÚDÚ#Ú#ÒÚ#Ò#ÚCÚ#ÚCÚ#ÚDÚCâDÚCÚDÚCÚDÚ#ÚDÚ#ÚCÚ#ÚCÚ#â#Ú#ÚCÚ#â#ÚÚ#Ú#ÚDÚ#ÚCÚCÚDÚCâÒÚdÚCÚDÚCâDÚCâdÚCâDÚCâDÚCâdÚCâdÚCâdÚCâdÚCâdÚCâdÚCâDÚ#ÚDÚCâdÚCâdÚCâdâdâdÚcâdÚCâdÚCâdÚcâdÚdâ…âdâdâCâdÚCâdÚCâCÚ#ÚDÚáÙÚCâDÚCâdÚCâdÚCâdÚcâ„âcâdÚCâdÚCâdÚCâDÚCâDÚ#â$Ú#â#Úâ#ÚâÚÚÚÚ#ÚÚ#Ú#âCÚ#âCÚ#â#ÚÚ#ÚÚ#ÚÚ#ÚÚ#ÚÚ#ÚÚ#ÚÚ#ÒÁÙ#Ú#Ú#ÒÚ#ÚÚ#ÚÚ#ÚÚ#ÚÚ#ÚÚÚÚÒâÙÚÚÚâÙÚÚÚÒãÑÒãÑ$Ò#Ò$ÒÚ$ÒÚÒãÑÒãÑÒãÑÒÚÒãÑÒãÑÒÚ#ÒÚ$ÒÚÒãÑÒãÑÒÚ#ÒÚ#ÒÚ$ÒÚÒãÑÒÚ$ÒÚ#ÒÚ$Ò#Ú$ÒÚ#Ò#ÚDÚ#ÚDÒ#ÚDÒ#Ú$Ò#Ú$Ò#Ú$ÒÚ$Ò#ÚDÚ#Ú$Ò#ÚDÚ#ÚDÚDÚDÚ#ÚDÚ#ÚDÚ#Ú#Ò#Ú#Ò#Ú$Ò#Ú#Ò#ÚDÚ#Ú$ÚãÙ#Ò#ÚDÚ#ÚDÚ#ÚdÚCÚDÚDÚDÚ#ÚDÚ#ÚDÚCÚDÚ#ÚDÚ#ÚDÚCâdÚCâDÚDâdÚCÚDÚDâdÚCâDÚ#ÚDÚ#ÚDÚDâDÚDÚDÚCâdÚdâdÚDâdÚCâDÚDâDÚDÚdÚDâdÚDâDÚDâDÚCÚDÚ#ÚDÚDÚDÚCÚDÚDÚDÚDÚDÚDâDÚDÚdÚdâdÚDâDÚDâeÚDâDÚCÚDÚCÚ$Úâ$Úâ$ÚâÚãÙÒâÙÒÚÒÚ$Ú#Ú$Ú#Ú#Ú#Ú$ÚÚ#ÚÚ#ÚÚ#ÚÚ$ÚÚ$ÚÚÒÚ$Ò#ÚÒÚ#ÚÚ$ÚÚ#ÒÚ#ÒÚÒÚÒãÙÒãÙÒÚÚâÙÒÚÚãÙâÑÒÚÒÚ#ÒÚ#ÒÚ#ÒÚ#ÒÚÒÚÒÚÒÚ#ÒÚ#ÒÚ#ÒÚ#ÒÚ#ÒÚÒÚÒÚ#ÒÚ#ÒÚ#ÚÚ#ÒÚÒÚ#ÒÚ$ÒÚ#Ò#ÚDÚÚ#ÒÚ#Ú#ÚDÚ#ÚDÚ#ÚCÚ#ÚCÚ#Ú#ÚÚ#ÒÚCÚ#Ú#Ò"ÚCÚCâCÚ#ÚDÚCÚDÚCÚCÚCâDÚ#Ú#Ú#ÚCÚ#Ú#Ú#ÚDÚCâDÚÚ#Ú#âCÚCÚDÚCÚDÚCÚCÒCÚDÚCÚDÚ#ÚDÚCâdÚCâDÚ#âDÚCâDÚCâDÚCâdÚCâDÚCâdÚCâDÚ#âDÚ#ÚDÚCâDÚCâDÚCâdÚCâdÚCâdÚCâdÚCâDÚCâdÚCâdâcâdÚCâDÚ#âDÚCâdÚCâDÚCÚDÚCâDÚCâDÚCâDÚCâdÚCâdÚCâdÚCâdÚCâdÚ#ÚDÚCâDÚ#â#Úâ#Ú#â#ÚâÚâÙÚÚ#ÚÚ#Ú#âCÚ#âCÚ#â#ÚÚ#ÚÚ#Ú#â#ÚÚ#ÚÚ#ÚÚ#ÚÚ#ÒâÙ#ÚÚ#Ò"Ú#ÚÚ#ÚÚ#Ú#Ú#ÒÚ#ÚÚ#ÚÚÚÚÚÚÚâÙÚâÙÚÒãÑÒãÑÒÒÒÒÒÒÒãÑãÑãÑÒãÑÒãÑÒãÑÒÚÒãÑÒÚÒÚÒÚ#ÒÚ#ÒÚÒÚ$ÒÚ#ÒÚÒâÙÒÂÑãÑÚÒÚ#ÒÚÒÚ#ÒÚ#Ò#Ú$Ò#Ú$ÒÚ$Ò#Ú$ÒÚ#ÒÚ#ÒÚ$ÒÚ$Ò#Ú$Ò#ÚDÒ#ÚDÚ#ÚDÒ#ÚDÚ#Ú$ÒÚ#Ò#Ú$Ò#Ú$Ò#ÚDÚ#Ú$Ò#ÚDÚ#ÚDÚ#ÚDÒCÚDÚâÑÒDâDÚ#ÚDÚDÚDÚDÚDÚ#ÚDÚ#ÚDÚDÚDÚDÚDÚCâDÚDâDÚDâDÚCâDÚ#ÚDÚDÚDÚ#ÚDÚ#ÚDÚCâDÚDâDÚCâDÚCÚDÚ#ÚDÚDâDÚDâdÚDâdÚCÚDÚ#âDÚCÚDÚDÚÒãÙDÚ#ÚDÚDÚDÚ#âDÚDâdÚCâDÚCâdÚDâDÚ#ÚDÚ#ÚDÚDÚDÚÚÚÚ$ÚâÚâÙãÑãÙ#ÚÚÒÚ$ÚÚ$ÚÚ$ÚÚ$ÚÚÒÚ$ÚÚ#ÚÚ$ÚÚ$ÚÚÒãÙ¢ÑâÙ$ÒÚ$ÚÚÒÚ#ÚÚ$ÚÚÒÚÒÚ#ÚâÙÒãÙÒâÙÒãÙÒÚâÑÒâÑÒÚ#ÒÚÒâÑÒâÑÒâÑÒâÙÒâÙÒâÑÒÚ#ÒÚÒÚÒÚ#ÒÚ#ÒÚ#ÒÚ#ÒÚ#ÒÚ#ÒÚ#ÒÚ#ÚâÙ¡ÑÁÑ#ÚÚ#ÒÚ#ÒÚ#Ò#Ú#Ú"Ú#Ú#Ú#ÚÚ#Ò#Ú#Ú#ÚCÚ#ÚCÚ#Ú#Ò#ÚCÚ#ÚCÚ#ÚDÚ#ÚDÚCÚCÚCâCÚ#ÚDÚ#Ú#Ú#Ú#Ú#ÚCÚ#ÚCÚ#ÚDÚ#ÚDÚCÚCÚCÚDÚCÚDÒÚâÑâÙCÚCÚDÚCâDÚCâdÚCâDÚ#ÚDÚCâdÚCâDÚCâDÚCâdÚCâdÚCâdÚCâDÚ#âCÚ#âCÚ#ÚCÚCâdÚCâDâCâDâCâdÚCâDÚCâDÚCâDÚCâdÚCâdÚCâDÚ#âDÚCâDÚáÙâÙCâDÚCâDÚCâDÚ#âDÚCâCÚ#âDâcâcÚCâCÚ#âCÚ#âCÚ#âCÚâ#Ú#â#ÚâÚâÙÚÚ#Ú#â#ÚÚ#ÚÚ#Ú#â#ÚÚ#ÚÚ#ÚÚ#ÚÚ#Ú#Ú#ÒÚ#ÚââÑ¡ÙÂÙ#Ú#ÚÚ#ÚÚ#Ú"âCÚÚ#ÚÚ#ÚÚ#ÚÚ#ÚâÙÚâÙÚâÙÚÚÚãÉâÑãÉãÑÒãÑÒãÑÒãÑÒãÑÒãÑÒãÑÒãÑÒãÑÒÒÒãÑÒãÙÒãÙ#ÒÚ$ÒÚ#ÒÚ#ÒÚ#ÒÚ#ÒÚ$ÒÚÂÑ�Ñ¢ÉÂÙ$ÒÚÒÚÒÚ#Ò#Ú#ÒÚ#ÒÚÒÚ#ÒÚ$Ò#Ú$Ò#Ú$Ò#ÚDÚ#Ú#ÒÚ$Ò#ÚDÚ#ÚDÚ#ÚDÚ#Ú$Ò#ÚDÚ#Ú$ÒÚDÒ#ÚDÚÚ$Ò#ÚDÚ#ÚDÚ#ÚDÒ#ÚDÒ$ÚãÑÂÑâÑÚDÚ#ÚDÚCÚDÚ#ÚDÚDÚDÚCÚdÚDâDÚDÚDÚCÚDÚCâDÚCÚDÚCâDÚ#âDÚ#Ú$Ú#ÚDÚCÚDÚCâDÚCâDÚCâdÚDâDÚDÚDÚCÚDÚCÚDÚCÚDÚDâDÚ#ÚDÚ#ÚDÚÚÂÑÂÙ#ÒDâDÚDÚDÚ#Ú$Ú#âDÚ#âDÚ#Ú$Ú#âDÚ#ÚDÚCÚDÚ#ÚDÚ#âCÚ#Ú#ÚÚÚãÙ#ÚÚ$Ò#ÚDÚ#Ú#ÚÚÒÚ#ÚÚÒãÙÒÚÒÚÒÚÒâÙ#ÒÚڡѢѡÙÒÚÒÚ$ÚÚ#ÚÚ$ÚÚÒÚÒÚÒãÙÒãÙÒãÙÒãÙÒãÙâÑãÑâÑÒâÙÒÚÒÚÒÚ#ÒÚ#ÒÚÒâÙÒÚÒâÙÒÚÒÚ#ÒÚ#ÒÚ#ÒÚ#ÒÚ#ÒÚ#ÒÚ#ÒÚ#Ò#Úҡ٢ѡÙÂÑÚÒâÙÒÚ#Ò#ÚCÚ#Ú#ÚÚ#ÒÚ#ÒÚ#ÒÚ#Ú#Ú#Ú#ÚCÚ"Ú#Ú#Ú#Ú#Ú#Ú#ÚCÚ#ÚDÚ#ÚCÚ#Ú#Ú#ÚCÚ#ÚCÚ#ÚDÚ#Ú#Ú#ÚCÚ#ÚDÚCÚDÚ#ÚDÚCÚCÒÁÙâÑáÙâÑCâCÚ#ÚDÚCâDÚCâDÚCâCÚCâdÚCâDÚCâDÚCâdÚCâCÚCâdÚCâCÚCâCÚ#âDÚ#ÚdÚCâdÚCâDÚCâdÚCâdÚCâDÚCâDÚCâCÚCâdÚCâDÚCâDÚ#âDÚ#ââÑÁÙâÙâÙCâCâDÚ#ÚDÚCâDÚ#âDÚ#âCÚ#âDÚ#âCÚCâCÚ#âCÚCâCÚ#â#ÚÚ#Úâ#ÚÚ#Ú#ÚCÚ#ÚCÚ#â#ÚÚ#ÚÚ#ÚÚ#ÚÚ#ÚÚ#ÚÚ#ÚÚÚÚ#ÚÂÙ¡Ñ¡ÙÁÑâÙ#ÚÚ#Ú#â#ÚÚ#ÚÚ#ÚÚÚÚ#ÚÚÒâÙÚÚÚÚÚâÙÚãÉÂÑãÉÂÑãÑãÑÒãÑÒãÑÒãÑÒÚÒãÑãÉãÑÒãÑÒãÑÒãÑÒÚÒãÑÒÚÒãÑÒãÑÒãÙ#ÒÚ#ÒÚҢѢѡѢѡÑãÑãÙÒÚÒãÙ#ÒÚ#ÒÚ#ÒÚÒÚ#ÒÚ#ÒÚ#ÒÚ#Ò#Ú$ÒÚ$Ò#Ú#ÒÚ#Ò#ÚDÚ#Ú$Ò#Ú$Ò#Ú$Ò#ÚDÚ#ÚDÚ#Ú$Ò#Ú$ÒÚDÒ#ÚDÒ#ÚDÒ#ÚDÚÂÑÂÑ¡ÙâÑÁÙ#Ò#Ú$Ò#ÚDÚ#ÚDÚDÚDÚCÚDÚCÚdÚCâDÚ#ÚDÚCÚDÚ#âDÚ#âDÚCÚDÚCÚDÚ#ÚDÚCÚDÚCÚDÚCÚDÚCÚDÚCâDÚCÚDÚCÚDÚDÚDÚDâDÚ#ÚDÚCâDÚDâãÙÂÙâÙâÙâÙâDÚ#ÚDÚCÚDÚ#âDÚ#âDÚ#Ú$ÚÚ$Ú#Ú$Ú#ÚDÚCÚDÚ#Ú$ÚÚ$ÚÚÚãÙ#ÚÚ$Ò#Ú$ÚÚ#ÚÚ$ÒÚÒÚÒÚÒÚ$ÚÚÒÚÒâÙÒڢѡ٢ѡÙÂÑãá$ÒÚ#ÚÚÒÚÒÚ$ÚÚÒãÙÒãÙÒãÙÒÚÒãÙãÑãÙÂÑãÑâÑãÑâÑÒâÙÒâÑÒÚÒÒ#ÒÚÒâÙÒÚÒÚÒÚ#ÒÚ#ÒÚ#ÒÚ#ÒÚÒÚÒâÙÒÚ#ÒÚ#ÒâÙÂÑ¡ÑÂѡ٢ѡÑÚÚ#ÒÚ#ÒÚ#ÒÚ#ÒÚ#ÒÚ#ÒÚ#ÒÚ#ÒÚ#Ò"Ú#Ú#Ú#Ú#Ú#Ú"Ú#Ú#ÚCÚ#ÚCÚ#ÚCÚ#ÚCÚ#Ú#Ú#ÚDÚ#ÚCÚ#Ú#Ú"ÚCÚ#ÚDÚ#ÚCÚ#ÚDÚÚÂÑÁÙÂÑÁÙâÑÂÙ#Ú#ÚDÚCâDÚCÚDÚCâdÚCâDÚCâdÚCâDÚCâDÚCâdÚCâDÚ#âDÚCâCÚCâCÚCâDÚCâCÚCâDÚCâdÚCâdÚCâdÚ#âDÚCâdÚCâdÚCâDÚCâdÚDâDÚáÙâÙâáâÙâáÚ#ÚDÚCâDÚ#âCÚCâCÚ#âCÚ#â#Ú#âCÚ#ÚDÚ#ÚCÚ#â#ÚÚ#ÚÚÚÚÚÚ#Ú#ÚDÚ#Ú#ÚÚ#Ú#â#ÚÚ#ÚÚ#ÚÚ#ÚÚ#ÚÚ#ÚÚÚÚãѡ١ѡÙÁÑ¡ÙÂÙ#Ú#ÒÚ#ÚÚ#ÚÚÚÚ#ÚÚÚÚÒâÙÒÚ#ÚÚÒâÙÚãÉÂÑãÉÂÑãÉâÑãÑãÑãÑãÑÒãÑÒÒÒãÑÒãÑÒãÑÒãÑÒãÑÒãÑÒãÑÒÚÒÚÒãÙÒãÙÒãÙ#ÒÚÂÑ¡ÑÂɡѢɡѢÉÂÙ$ÒãÑÒÚ#ÒÚÒÚ#ÒÚ#ÒÚÒÚÒÚÒÚ#ÒÚ#ÒÚ#ÒÚ#ÒÚDÒ#ÚDÒÚ#ÒÚ$Ò#Ú$ÒÚ$Ò#Ú$Ò#Ú$ÒÚ$ÒÚ$Ò#ÚDÒ#ÚDÒ#ÚÂÑ¢ÙÂÑÁÙÂÑÁÙÂÑâÙDÚ#ÚDÚ#ÚDÚ#ÚDÚ#ÚDÚ#Ú$Ú#âDÚ#âDÚ#ÚDÚCâDÚ#Ú$Ú#âDÚ#ÚDÚ#ÚDÚ#ÚDÚ#ÚDÚ#ÚDÚCâDÚCÚDÚ#âDÚ#ÚDÚDÚDÚDÚDÚDÚDÚDÚeÚÚâÙâÙâÙâÙâÙÂÙÒ#âDÚ#Ú$Ú#âDÚDÚDÚ#ÚDÚ#Ú$ÚÚDÚ#Ú#Ú#Ú#ÚÚÒãÙÒÚÒãÙÒÚ$Ú#Ú$ÒÚ$ÚÚ$ÚÚ$ÚÚÒÚ$ÚÚÒÚÒãÙÒãÙڢѡÑ�ѡѡ٢Ñ�ÙÒÚ#ÚÚÒãÙÒãÙ$ÚÚÒãÙÒãÙÒãÙÒÚÒãÙÒãÙÂÑãÑâÑãÑâÑãÑâÑÒâÑÒâÑÒÚ#ÒÚÒâÙÒÚÒâÙÒâÙÒâÙÒÚÒÚ#ÒÚÒÚÚÚÚÚ#Ò#ÚÒ¡ÑÁÑ¡ÑÁѡ٢ѡÑÂÑÚ#ÒÚ#ÒÚ#ÒÚ#ÒÚ#ÒÚ#ÒÚ#ÒÚ#ÒÚ#ÚÚ#Ò#Ú#ÚÚ#Ú#ÚCÚ#ÚCÚ#Ú#ÚÚ#Ú#ÚCÚ#Ú#ÒÚ#Ú#ÚCÚ#Ú#Ú#Ú#Ú#ÚDÚ#ÚDÚCÚ#ÒÁÙÂÑÁÙâÙÁÙâÑÁÙâÑ#ÚDÚ#ÚDÚCÚDÚCâDÚ#ÚCÚ#ÚCÚCâCÚ#ÚDÚCâDÚCâCÚCâCÚCâCÚCâCÚ#ÚCÚCâCÚCâDÚCâDÚCâDÚCâCÚ#ÚDÚCâDÚCâdÚCâDÚCâdÚ#âÒâÙâÙáÙâÙâáâÙâÙCâCâDÚ#âCÚCâDÚCâCÚ#âCÚ#â#Ú#â#Ú#â#Ú#â#ÚÚÚÚÚÚ#ÚÚ#Ú#â#Ú#ÚCÚ#Ú#ÚÚ#ÚÚ#ÚÚ#ÚÚ#ÚÚÚÚÚÚ#ÒâÙÂѡ١ѡ١ѡ١ÑÁÙ#ÚÚ#ÚÚÚâÙ#ÚÚÚâÙÚâÙÒâÙÚÚ#ÚÚ#ÚâÙÚãÉÃÑãÉâÑãÑãÑãÉãÑãÉãÑãÉãÑÒãÑÒãÑÒâÑÒâÑÒâÑÒãÑÒãÑÒãÙÒãÑÒãÑÒÚÒãÑÒÚҢѢѡѢѡѢɡѢɡÑãÑÚÒãÑÒÚ$ÒÚ#ÒÚÒÚ#ÒÚ#ÒÚ#ÒÚ#ÒÚ$ÒÚ$ÒÚ$Ò#Ú$Ò#Ú$Ò#Ú#ÒÚ$Ò#Ú$ÒÚÒÚ$Ò#Ú$Ò#Ú$ÒÚ$Ò#Ú$Ò#Ú$ÚÂÑÂÑ¢ÙâÑâÙÂÑ¡ÙÂÑÁÙÒ#ÚDÚ#ÚDÚ#ÚDÚ#Ú$Ò#Ú$Ú#ÚDÚCÚDÚ#ÚDÚ#ÚDÚ#ÚDÚ#ÚDÚ#ÚDÚ#Ú#Ú#ÚDÚ#ÚDÚCÚDÚCÚDÚ#ÚDÚ#ÚDÚ#ÚDÚDÚDÚCÚDÚCÚDÒ$ÚãÑÂÙãÙâÙâÙâÙâÙÂÙâÑÚDÚ#Ú$Ú#ÚDÚ#ÚDÚ#ÚDÚCÚDÚ#ÚÒÚ#ÚÚ$ÚÚÒãÙÒãÙÒÚÒÚ$ÚÚ#Ò#Ú$ÚÚ#ÒÚ#ÚÚÒâÙÒãÙÒãÙÒÚÒãÙÂѡѢÑ�٢ѡ٢ѡÙÂÑâá$ÚÚÒÚÒÚÚãÙãÑâÙãÑãÙÒâÙÒãÙÒãÙÒãÙâÑÒâÑÒâÙÒâÑÒâÑÒâÑÒâÑÒâÙÒâÙÒâÑÒâÙÒâÙÒÚÒÚÒâÙ#ÒÚÒÚ#ÒÚ#ÒÚ#ÒÂ١ѡ١ѡѡѡÑÁÑ¡ÙÂÑ¡ÑÚÚÒÚ#ÒÚ#ÒÚÒâÙÚÚ#ÒÚ#ÒÚ#Ò#Ú#ÒÚ#Ò#Ú#Ú#Ú#Ú#Ú#Ú#Ú#ÚÚ#ÒÚ#Ò#Ú#ÒÚ#Ò#ÚDÚ#ÚCÚ#ÚCÚÚ#ÚÚDÚâÙÂÑÁÙâÑÁÙâÙÁÙÂÑÁÙâÑâÙ#ÚCâCÚ#ÚDÚ#ÚCÚ#ÚDÚCâDÚ#ÚDÚCâDÚ#ÚCÚ#ÚCÚ#ÚCÚCâCÚ#âCÚ#âDÚ#ÚDÚ#ÚDÚCâDÚCâCÚCâDÚ#âDÚ#ÚDÚCÚdÚCâDÚCâCÚÁÙâÙâÙâÙâÙâÙÁÙâÙáÙâÙCâDÚ#ÚDÚCâCÚ#âCÚCâCÚCâCÚÚÚÚ#Ú#â#ÚÚ#ÚÚ#ÚÚ#ÚÚ#ÚÚ#Ú#ÚCÚ#ÚCÚÚ#ÚÚ#ÚÚÚÚÚÚÚÚ#ÚÚãр١р١ѡ١р١ѡÙÂÙ#â#ÚÚ#ÚÚ#ÚÚÚâÙÚâÙÚÚÚÚÒâÙÒâÙÚãÉãÑÒãÑÒâÑãÑãÑãÑãÑãÉãÑãÉâÑãÑãÑãÑâÙãÑâÑãÑâÑÒâÑÒãÑÒãÑÒÚÒãÑÒãÑÒÚÒҡѡѡѡѡɡѡѡѢѡÑÂÉÁÑÒãÑÒÚ#ÒÚÒÚÒÚÒÚ#ÒÚÒÚ#ÒÚ#ÒÚ#ÒÚ#ÒÚ#ÒÚ#ÒÚ$ÒÚ#ÒÚ$ÒÚÒÚ$Ò#ÚDÚ#Ú$Ò#Ú$ÒÚ$Ò#ÚâÑ¡ÑÂÑÁÑÂÑÁÙÂÑÁÙÂÑÁÙÂÑãÙDÚ#Ú$Ò#ÚDÚ#ÚDÒ#ÚDÚ#ÚDÚ#ÚDÚ#ÚDÚ#ÚDÚ#ÚDÚ#ÚDÚ#Ú$Ú#Ú$Ú#Ú$Ú#ÚDÚ#ÚDÚ#ÚDÚ#ÚDÚ#ÚDÚ#ÚDÚ#Ú$Ò$ÚDÚ#ÚDÚâÙÂÑÂÙâÑÂÙâÙÂÙÂÑÂÙâÙÂÙ#ÒDÚDÚ#Ú$ÚÚ$Ú#ÚDÚ#Ú$ÚÚÚãÙÒãÙÒÚ#ÚÚ$ÚÚÒÚÒÚÒÚ#Ò#Ú$ÚÚ$ÒÚ$ÚÚÒãÙÒãÙÒãÙÒÚڢѡÑ�ѡѡ٢Ñ�Ù�Ñ�ѡѡÙÒÚ$ÚÚ#ÚÚÚÚÚãÙÚãÙÒãÙÒãÙÒãÙãÑãÙâÑÒÚÒâÑÒâÑãÑâÑãÑâÑãÑâÑãÑâÙãÑâÙãÑâÙâÑâÙÒâÙÒÚÒâÑÒÚÒÚÒÚÒÚÒÚâÑ¡ÙÁÑ¡ÑÁÑ¡ÑÁѡѡѡÑÁѡ٢ÑÚ#ÒÚ#ÒÚ#ÒÚ#ÒÚ#ÚÚ#ÚÚ#ÒÚ#ÒÚ#ÒÚ#ÒÚ#ÒÚ#ÒÚ#Ú#Ú#Ú#Ú#ÚÚ#Ò#Ú#ÚÚ#Ú#ÚCÚ#Ú#Ú#ÚDÚ#Ú$Ú#âÚ¡ÙâÑÁÙâÑÁÙÂÑÁÙâÙÁÙâÙáÙâÑCÚDÚ#ÚDÚCÚDÚ#ÚCÚCâDÚCâCÚCâDÚCâCÚCâCÚCâDÚCâCÚ#ÚCÚ#âCÚ#âDÚ#ÚDÚCâDÚCâDÚCâDÚ#ÚCÚCâDÚ#ÚDÚ#ÚDÚââÑÁÙâÙÁÙâÙÁÙÂÙ¡ÙâÙâÙâÙÂÙ#ÚCâCÚ#â#Ú#âCÚ#ÚCÚÚ#ÚâÚÚÚÚ#ÚÚ#Ú#â#ÚÚ#ÚÚ#ÚÚ#Ú#ÚCÚ#ÚCÚ#Ú#Ú"Ú#ÒÚ#ÚÚ#ÚÚÚÚ#Úâá¢Ñ¡Ù¡Ñ¡ÙÂ١١р١Ñ�Ù¡ÑÂÑÚÚ#ÚÚ#Ú"ÚCÚâ#ÚÚ#ÚÚ#ÚÚÒâÙãÑâÙÚÒãÑÒãÑãÑâÑãÑãÑãÉÂÑãÑÂÑãÉÂÑãÑÂÑãÉâÑãÑÂÑãÑÂÑãÑâÙÒãÑÒãÑÒãÑÒãÑÒÒÊÒҡѢѡѡѡѡѡѡÑ�ѢѡÑÂÑ¡ÑãÑÚ#ÒÚÒÚ#ÒÚÒâÙ#ÒÚ#ÒÚ$ÒÚÒãÙÒãÑÒÚÒÚ$ÒÚÒÚ$ÒÚ$ÒÚ#ÒÚ$ÒÚ$ÒÚ$ÒÚ$ÒÚ$Ò#ÚÚÂÑÂÑÁÙÂÑÁÙÂÑÁÙâÑÂÙÂÑÁÙâÑÂÙ#ÒDÚDÚ#ÚDÚ#ÚDÚ#ÚDÒ#ÚDÚ#ÚDÚ#ÚDÚ#ÚDÚ#ÚDÚ#ÚDÚ#ÚDÚ#ÚDÚ#Ú$ÚÚDÚ#ÚDÚ#ÚDÚDÚDÚ#ÚDÚ#ÚDÚ#ÚDÚ#ÚDÚDÚãÑÂÑâÑÂÙâÑÂÙÂÑ¡ÙÂÑÂÙãÑÂÙÂÑâÙDÚ#Ú$ÚÚ#Ú#Ú$ÚÚ#ÚÚÚãÙ$ÚÚÒÚ$ÚÚ$ÚÚ#ÚÚÒÚÒÚÒÚ$ÒÚ#ÚÚ$ÚãÙÒÚÒÚÒÚ#ÒÚÂѡѡѡѢѡ٢Ñ�Ù¡Ñ�ѡѡѢÉâÙ#ÒÚÒÚ#ÚÚÒÚÚãÙÚâÙÒãÙãÑâÙãÑâÙâÑÒâÑÒâÑãÑâÑãÑâÑãÑâÑãÑâÑãÉÂÑãÑâÙãÑâÑãÑâÑãÑâÑÒâÙÒÚÒÚÒÚ#ÒÚ#Ò#ÚDÒÁÙ¡É¡ÑÁѡѡѡѡѡѡѡÙÁÑ¡ÙÁÑ¡ÑÚÚÒÚÒÚÒâÙÒÚÚÚ#Ò#Ú#ÒÚ#ÒÚ#ÒÚÒÚ#ÒÚ#ÚÚ#Ò#Ú#Ú#Ú#Ò#Ú#Ò#Ú#Ò#Ú#Ò#Ú#Ò#ÚCÚ#ÚDÚâÙÂÑÁÙâÑÁÙâÑÁÙÂÑÁÙâÑÁÙâÑÁÙâÙâÙCÚCÚDÚ#ÚDÚCâCÚCâCÚCâDÚCâCÚ#ÚCÚCâCÚCâDÚ#ÚDÚ#ÚDÚCâCÚ#âDÚ#âCÚ#ÚCÚ#âCÚCâDÚCâDÚCâDÚCâDÚCâCÚÁÙÂÑÁÙâÙÁÙÂÙÁÙÁÑÁÙâÙÁÙÂÙ¡ÙâÙCâDÚ#â#Ú#ÚCÚ#ÚCÚÚ#Úâ#ÚÚ#ÚÚ#ÚÚ#Ú#â#ÚÚ#ÚÚ#ÚÚ#ÚÚ#ÚÚ#ÒÚ#ÚÚÚÚÚâÙÚÚ#Ú#Ú#Ҡ١Ѡ١ѡ١ѡ١ѡ١Ѡ١ѡÑÂÑÚÒÚÚÚ#ÚÚÚâÙÚÚÚâÙÚâÙÚâÙÚãÉâÑãÑãÑãÉâÑãÑãÑãÑÃÑãÉâÑãÉÂÑãÉâÑãÉâÑãÑÂÑãÉâÑãÉãÑãÑâÑÒâÑÒãÑÒÚÒÒ$ÒҡɡѡѡѡÑ�ѡѡѡɡѡѡÑÂÑ¡ÑÂÑÁÑ#ÒÒÒÚÒâÑãÑâÙÒÚ#ÒÚ#ÒÚ#ÒÚÒãÑÒãÑÒÚÒÚ#ÒÚ#Ò#Ú$ÒÚ$Ò#Ú$ÒÚ$ÒÚ$ÒÚ$Ò#Ú$Ò#ÚÂÑ¡ÑÂÑÁÙÂÑ¡ÑÂÑÁÑÂÑÁÙÂÑ¡ÙâÑâÙâÑÚDÚ#ÚDÒ#ÚDÚ#ÚDÚ#ÚDÚCÚDÚ#ÚDÚ#ÚDÚ#ÚDÚ#ÚDÚ#Ú$Ò#ÚDÚ#Ú$Ú#Ú$Ú#ÚDÚ#ÚDÚ#Ú$Ò#ÚDÚ#ÚDÚ#ÚDÒ#ÚDÚâÑÂÑ¢ÙÂÑÂÙÂѡ٢ѡÙÂÑÂÙÂÑ¡ÙÂÑ¡ÙÒ#âDÚ#ÚDÚ#ÚDÚ#Ú$ÚÚ#ÚÚÒÚÒÚÚÚ#ÚÚÒÚÒÚÒÚÒÚ#ÒÚÒÚÒãÙÒãÙÒâÙÒÚ$ÚÂѢѡ١Ñ�Ù¡Ñ�١ѡѢÑ�Ñ¡É�ѡѡÑãÑãÙãÑãÙÒãÙÒãÙãÑãÙãÑâÙÒâÙãÑâÙãÑâÙâÑâÑâÑãÑâÑãÑâÑÒâÑãÑâÑãÑâÑãÑâÑãÑâÑãÑâÙâÑâÑãÑâÑÒâÑÒâÙÒâÙÒÚ#ÒÚÒ#ÚâÉ¡ÑÁѠѡрѡѠѡѠѡѡÙÁÑ¡ÙÁÑ¡ÙÁÑâÑ$ÒÚÒâÙÒâÙÒâÙÒÚ#ÚÚ#ÒÚÚÚÒÚÒÚ#ÒÚ#ÒÚ#ÒÚ#ÚÚ#Ò#ÚCÚ#Ú#ÒÚ#ÒÚ#ÒÚ#Ú#ÚÒ¡ÙÁÑ¡ÙÂÑÁÙÁÑ¡ÙÂÑÁÙâÑÁÙâÑáÙâÑáÙÚCÚDÚ#ÚCÚCâCÚ#ÚCÚ#âCÚCâCÚ#ÚDÚCâCÚ#âCÚ#ÚCÚ#ÚCÚ#ÚCÚ#âDÚ#âDÚ#ÚDÚ#ÚCÚ#ÚCÚ#ÚDÚ#ÚDÚ#ÚDÚââÑÁÙâÙÁÙâÙÁÙÂÑ¡ÙÂÙÁÙÂÙÁÙÂÙÁÙâÙâÙCÚ#ÚDÚ#ÚCÚ#âDÚ#ÚCÚÚ#ÚÚ#ÚÚ#ÚÚÚÚ#ÚÚ#ÚÚ#ÚÚ#ÚÚÒÚ#ÒÚ#ÚâÙÚâÙÚâÙÚÚ#ÚâÙÂѡ١ѡ١р١Ѡ١ѡ١Ѡ١рѡÑÁÑÚÚÒâÙÒâÙÒâÙÒâÙâÑâÙÚâÙÚâÙÚãÉâÑãÉÂÑãÉâÑãÉãÑãÑãÑÒãÑãÉãÑÒãÑãÉâÑãÉâÑãÑÂÑÒãÑãÑâÑÒãÑÒãÑÒãÑÒÚãÑ�ѡɡѡÑ�ѡѡѡɡѡѡѢѡ٢ѡÙÂÑ¡ÑÂÉÚÒãÑãÑâÙãÑãÙÒãÙÒãÙÒâÙÒâÙÒãÑÒãÑÒãÑÒÚÒÚ#ÒÚ#ÒÚ$ÒÚ$ÒÚ#ÒÚ#ÒÚÒÚÚ¢ÑÂÑ¡ÑÂÑ¡ÙÂÑ¡ÑÂÑ¡ÙÂÑ¡ÙÂÑÁÙâÑâÙâÑÂÙ#Ò#ÚDÒ#ÚDÚ#Ú$Ú#ÚDÚ#ÚDÚ#ÚDÚ#ÚDÚ#ÚDÚ#ÚDÚ#Ú$Ò#Ú#Ò#Ú$Ò#Ú$ÚÚ#Ú#Ú$ÚÚ$Ò#ÚDÒ#ÚDÒ#ÚDÒDÚâÑÁÑÂÑÁÙâÑÁÙÂѡ٢ѡÙÂÑ¡ÙÂÑ¡ÙÂÑÂÙÂÑâÙDÚ#Ú$ÒÚ$Ú#Ú$ÚÚ$ÚÚ$ÒÚÒÚÒãÙÒãÙÒÚÒãÙÒÚÒãÙ#ÒÚÒãÙÒÚÒÚÒÚ$ÚÚÂÑ¡ÙÂѡ١Ñ�Ù¡Ñ�ѡѡ٢Ñ�Ñ¡Ñ�Ñ¡É�Ñ¢ÉâÙ#ÒãÑÒãÙãÑâÙãÑâÑãÑâÙãÑâÙãÑâÙÒâÙÂÑãÑâÑÒâÑÒâÑÒâÑÒâÑãÑâÑÒâÑãÑâÑâÑâÑãÑâÙãÑâÑÒâÙãÑâÙãÑâÙÒâÙÒÚ#ÒÁÑÁÑ¡ÑÁѡѡѠѡѠѡѡѡѡ١ѡÙÁÑ¡ÙÁÑ¡ÑâÑ#ÚÒâÙÒÚÒâÙÚÚÚâÙÚÚÚÚ#ÒâÙÚÚÒÚ#ÒÚ#ÒÚ#ÒÚ#Ò#Ú#Ò#Ú#ÒÚ#ÒÚ#ÒÚCÚâÙÁÑ¡ÙÁÑÁÙÂÑÁÙÁÑÁÙÁÑÁÙÂÑÁÙÂÑáÙâÑáÙâÑâÙCÚCâDÚ#ÚCÚ#âCÚ#ÚCÚ#ÚDÚCâCÚ#ÚCÚ#âCÚ#Ú#Ú#Ú#Ú#ÚCÚ#ÚCÚ#ÚCÚ#ÚCÚ#ÚDÚ#ÚCÚ#ÚCÚ#ÚDÚCÚ#ÒÁÙâÑÁÙâÑÁÙÂÙÁÙâÑÁÙÂÙ¡ÙÂÑ¡ÙÁÑÁÙÂÙÁÙÂÙCÚDÚÚ#Ú#â#Ú#â#ÚÚ#ÚÚ#ÚÚ#ÚÚÚÚ#ÚÚ#ÚÚÚÚ#ÚÚÚÚ#ÚÚ#ÚÚ#ÚÚ#ÚÚ#Ú#âÒ¡Ù¡Ñ¡ÙÁѡ١р١ѡ١ѡ١ѡ١ѡ١ѡÑÂÑÚ#ÒÚÒâÙÒâÙãÑâÙãÑâÙÒÚÚâÙÚãÉÂÑãÉãÑÒãÑÒãÑãÉãÑãÉÂÑãÉâÑãÉÂÑãÉâÑãÉãÑãÑÂÑãÑãÑãÑâÑãÑâÑÒâÑÒãÑÒãѡɡѢѡѡѡѡɀѡɡѡÑ�ѡѡѢѡ٢ѡÙÂÑ¡ÑÒÒÒãÑÒãÑÒãÑÒãÑÒãÙÒÚ#ÒÚÒãÙÒâÙÒÚ#ÒÚÒÚ#ÒÚÒÚ#ÒÚ#ÒÚ#ÒÚ$ÒÚÂÑ¡ÙÂÑ¡ÙÂÑ¡ÙÂÑ¡ÙÂÑ¡ÙÂÑ¡ÙÂÑ¡ÙâÑÂÙâÑÂÙâÑâÙDÚ#ÚDÚ#ÚDÚ#ÚDÚ#ÚDÚ#ÚDÚ#Ú$ÚÚ$ÚÚ$ÚÚ$ÚÚ$Ò#Ú#Ò#Ú#Ò#Ú#Ò#Ú$Ò#Ú$Ò#Ú$ÒÚ$Ò#Ú$ÚâÑÂÑ¡ÙÂÑ¡ÙÂÑ¡ÙÂÑ¡ÙÂÑ¡ÙÂѡ٢ѡÙÂÑ¡ÙÂÑ¡ÙÒ#â#ÚÚ$Ò#Ú$Ò#Ú$ÚÚ$ÚÚ$ÚÚÒÚÒÚÒãÙÒÚÒÚÒãÙÒÚÒÚÒÚÒÚ$ÒÚ#ÚÂÑ¡Ñ�Ѣѡ١Ñ�Ñ�Ñ�Ñ¡Ñ�٢ѡѡÑ�Ñ¡Ñ�ÑÂÑ¡ÑÒÚ#ÒÚãÑâÑãÑâÑãÑãÙÒãÙÒâÙãÑâÙÂÑâÉâÑÒâÑÒâÙÒâÑÒâÑãÉâÑãÑâÑãÑâÑâÑâÙãÑâÙãÑâÙãÑâÙâÑâÙãÑâÙÒâÙÒÚâɡѢѡ١ѠѡрѡѠѡѡ١Ѡ١ѡ١ѡÙÁÑ¡ÙÁÑâÑ#ÚÚ#ÒÚ#ÒÚÒâÙÒÚÒÚ#ÒÚ#ÚÚÚâÙÚâÙÚÚÒâÙÒÚÒÚÒÚ#ÒÚ#ÒÚ#Ú#ÚÒ¡ÙÁÑ¡ÙÁÑ¡ÙÁÑ¡ÙÁÑÁÙÁÑ¡ÙÁÑÁÙÂÑÁÙÂÑÁÙâÑÁÙâÑCÚCÚ#ÚCÚ#ÚDÚ#âDÚ#â#Ú#âCÚ#â#Ú#â#Ú#â#ÚÚ#Ú#ÚCÚ#ÚCÚ#ÚCÚ#ÚCÚ#ÚDÚ#ÚCÚ#ÚDÚ#ÚDÚâÂÑ¡ÙÂÙÁÙÂÑÁÙÂÙÁÙÂÙÁÙÁÑÁÙÁÑ¡ÙÁÙ¡ÙÂÙÁÙÂÙÁÙ#Ú#ÚCÚ#ÚCÚ#ÚCÚ#ÚCÚ#ÚCÚÚ#ÚÚ#Ú#Ú#Ú#Ú#Ú#Ú#ÒÚÚÚÚÚ#ÚÚ#ÚÚ#ÚÚ#ÚÚCÚÚÁѡ١Ñ�١р١р١р١ѡ١Ñ�١ѡ١ѡ١ÑÁÙ#ÚÚ#ÒâÙÒâÙÒâÙãÑâÙÚâÙÚâÙâÑãÉÂÑãÉâÑÒãÑÒãÑãÉãÑãÉÂÑãÉãÑãÑâÑãÑÂÑãÑâÙãÑãÑãÑÂÑãÑâÑãÑâÑÒâÑÒÒâѡɢѡѡѡѡɀÑ�ɀѡɡѡÑ�Ñ¡Ñ�ѡѡÑÂÑ¡ÑÂѡѢÉâÙÒãÑÒÚÒãÑÒãÑÒÚÒÚ#ÒÚÒâÙãÑâÙãÑãÙÒãÑãÑâÑÒãÑÒãÑÒÒ#ÒÚ$Ò#Ú$ÚÂÑÂÑ¡ÑÂѡѢѡѢѡÑÂÑ¡ÑÂÑ¡ÑÂÑ¡ÙÂÑÁÙÂÑ¡ÑÂÑÁÑÒ#â$Ò#Ú$Ò#ÚDÚ#Ú#ÒÚ$ÚÚ$ÚÚ#ÚÚ$ÚÚ$ÚÚ$Ò#ÚDÚ#Ú$Ò#Ú$ÒÚ$Ò#ÚDÚÚ$Ò$ÚDÒ$ÚãÑ¢ÑÂÑ¡ÙÂÑ¡ÙÂÑ¡ÙÂÑ¡ÙÂÑ¡ÑÂѡ٢ѡÙÂÑ¡ÙÂÑ¡ÙÂÑâÙDÚÚ$Ò#Ú$Ò#Ú$ÚÚ$ÚÚ$ÒÚÒÚ$ÚÚ$Ò#Ú$ÒÚÒãÙãÑãÙÒÚÒÚÒÚÒÚ$Ò#ÚÂѡѡÑ�Ñ¡Ñ�Ù¡Ñ�Ñ¡Ñ�Ñ¡Ñ�Ù¡Ñ�Ñ¡Ñ�Ñ¢Ñ�Ñ¡Ñ�Ñ¢ÉâÙ#ÒãÑÒâÑãÑâÙãÑãÙãÑâÙãÑâÙãÑÂÙâÑãÉÂÑãÑâÙÒâÑÒâÑãÑâÑãÑâÑÒâÑãÑâÑâÑâÑÒâÑãÑâÙâÑâÙãÑâÑÒÚÒâÑÒ¡ÑÁÉ¡ÑÁѡѡрѡрѡɀѡѡ١ѠѡѠÑÁÑ¡ÙÁÑ¡ÙÁÑ¡ÑâÑÚÒÚ#ÒÚÒÚ#ÒÚ#ÒÚ#ÒÚ#ÒÚÒâÙãÑâÙÒÚ#ÒâÙÒâÑÒÚÒÚÒÚ#ÒÚDÚâÙÂÑÁÑÁÑÁÙÁÑ¡ÙÁѡ١ѡÙÁÑ¡ÙÁÑ¡ÙÁÑ¡ÙÁÑÁÑÁÑÁÙâÑÁÙ#Ú#ÚCÚ#ÚCÚ#ÚCÚ#ÚCÚ#â#Ú#ÚCÚ#ÚCÚ#â#ÚÚÚâÙÚ#ÚCÚ#ÚCÚCÚdÚCÚdÚCÚDÒ#ÚDÚ#âãÑ€Ù¡Ñ�Ù¡Ñ¡ÙÂÙÁÙÂÑÁÙâÑ¡ÙÁÑ¡ÙÁÑ¡ÙÁÙÁÙÁÑ¡ÙÂÙÁÙâÙ#Ú#ÚÚCÚ#â#ÚÚ#Ú#Ú#ÚÚ#ÚÚ#ÚÚ#Ú#Ú#ÒÚ#ÒÚÒâÙÚÚ#ÚÚ#ÚÚ#ÒÚ#Ò#Ú#Ò¡Ù¡Ñ�Ù¡Ñ�Ù¡Ñ€Ù¡Ñ�١ѡ١ѡ١р١р١рѡрÑÁÑÚÒÚÒâÙÒâÙÒâÙÚâÙâÑâÙâÑÊãÑãÉãÑÒãÑãÑâÑãÑãÑãÑãÑãÉâÑãÉÂÑãÉÂÑãÉãÑÒãÑãÑâÑãÑâÑãÑâÑÒãÑÒâѡɡѡѡѡÑ�ѡрѡɀÑ�É�Ñ¡Ñ�ѡѡѡѡѢѡѢѡÑÂÉ¡ÑÒÒÒãÑÒãÑÒÚÒÚÒÚÒÚÒâÙãÑãÙÒÚÒÚ#ÒÚÒãÑÒãÑÒÚÒãÑÒÒÂÑ¡ÙÂÑ¡ÑÂѡѢѡѡѡÙÂÑ¡ÑÂÑ¡ÑÂÑ¡ÑÂÑ¡ÑÂÑ¡ÑÂÑ¡ÙÂÑâÙDÒ#Ú$Ò#Ú$Ò#Ú$Ò#Ú$Ò#Ú#ÚÚÒâÙÒ#Ú…Ò¥ÚGÓgÛÉÓÉÛ +Ô +Ü+Ô*ÜKÔ*ÜKÔ*Ü+Ô +ÜêÛˆÓ'ÓæÒ…ÒCÒâÑ¡Ñ�Ñ�ѡѡÙÂѡ٢ѡÙÂÑ¡ÙÂÑ¡ÙÂÑ¡ÙÂÑ¡ÙÒ#Ú$Ò#Ú$ÒÚ$ÒÚ$ÒÚ$Ò#Ú$ÚÚÒÚÒãÙÒãÙãÑâÙãÑâÙÒÚÒÚÒãÙÒÚÚÂѢѡ١Ñ�Ù¡Ñ�Ñ¡Ñ�Ñ¡Ñ�١ѡ٢Ñ�١рѡÑ�Ñ�É€Ñ�É�ÑÒÚÒãÙãÑãÙÒãÙÒâÙãÑâÙãÑâÙâÑãÉâÑÊâÑÒâÑãÑâÑÒâÑÒâÑãÑÂÑâÑâÑãÉâÑÒâÙÒâÑãÑâÑÒâÑÒâÑÒâÙÂÑ¡ÑÁÑ¡ÙÁѠѡѠѡрѡрѡѠѡѠѡѡÙÁÑ¡ÙÁѡѡѡÙÁÑâÑ#ÒâÙÒÚÒÚ#ÒÚ#ÒÚ#ÒÚ#ÒâÙÒÚ#ÒÚÒÚÒÚ#ÒÚÒâÑÒÚ#ÒÚÒÚãÑ¡ÙÂÑÁÙÁÑÁÑÁÑ¡ÙÁÑ¡ÙÁÑ¡ÙÁÑ¡ÙÁÑ¡ÙÁÑÁÙÁÑÁÙÁÑ¡ÙÁÑÁÙÂÑ#ÚDÚ#ÚDÚ#ÚDÚ#ÚCÚÚÚCÚ„ÚÛgÛÈÛ*Ükä‹Ü‹Ü¬Ü‹ä‹ÜjäkÜjä‹Üjä‹ÜJÜkÜkä‹Üj܋܋܋ÔkÜ‹Ô*ÜéË'ãÅÊÚáр١١ÙÂÙÁÙÁÑ¡ÙÁÑ¡ÙÁÑ¡ÙÁÑÁÙ#Ú#ÚCÚ#Ú#ÒÚ#Ú#Ú#Ú#Ú#Ú#Ú#ÒÚ#ÚÚÚÚÚâÙÚâÙÚÚÚÚ#ÚÚÒÚ$Úâá¡Ñ¡Ù¡Ñ¡Ù¡Ñ¡Ù¡Ñ¡Ù¡Ñ¡Ù¡Ñ¡Ù¡Ñ¡Ù¡Ñ€Ù¡Ñ€Ù�рррѡÑÂÑ#ÚâÙÒâÙãÑâÙÒâÙÚâÙâÑâÙâÑÂÁãÑãÉãÑãÉÃÑãÉâÑãÉâÑãÑãÑãÑâÑãÉâÑãÉâÑãÉãÑãÑãÑãÑÂÑãÉãÑÒãÑÒãÑÃÑ�ÑÂÉ¡ÑÂɡѡÑ�Ñ�É�Ñ¡Ñ�ѡɡѡѡѡѡѡѡѡѡѡѡѡѡѢÉâÙÒãÑÒãÑÒÚÒãÑÒÚ#ÒãÑãÑãÙãÑãÙÒâÑÒãÑÒÚÒÚÒãÑÒãÑÒÚÒ¢ÑÂÑ¡ÑÂÑ¡ÑÁɡѡѡÑÂÑ¡ÑÂѡѡѡѢѡÑÂÑ¡ÙÂÑ¡ÙÂÑ¡ÙÂÑ¡ÙãÑ#Ú$Ò#Ú$ÒÚDÒdÚ&Ógã*ÔkäŒÜkÜ‹ÜjÜ‹ÜJÜJÜJÜKÜJÜKÜJäJÜ*ÜJÜ)ÜJÜJäkÜJäkÜJÜKÜJÜkÔJÜkÔkܬԌÜkÜéÓ'ÛdÊÂÑ�ѡѡÙÂѡѢѡ٢ѡÙÂÑâÙ$ÒÚ$ÒÚ$ÒÚ#ÒÚ$ÚÚ$ÒÚÒãÙÒÚÒãÙãÑãÙãÑãÙÒãÙÒÚÒãÙ$Ò#ÚÂÑ�Ѣѡ٢Ñ�Ù¢Ñ�Ù¡Ñ�ѡѡ٢Ñ�Ù¡Ñ�Ù¡Ñ�Ù¡Ñ�Ñ�É`Ñ�É�Ñ¢ÉâÙÒâÑãÑÂÑãÑãÙÒãÙâÑâÙãÑÂÙ€ÉâÑâÑãÉâÑãÉâÑãÑâÑãÑâÑãÑâÑãÑâÑâÑâÑãÑâÑãÑâÑÒâÑÒâÑÒãÑÊãÑҠѡѡÑÁѡѡрѡрѡѡ١ѠѡѠÑÁѡ١ѡÑÁѠѡѡÑÁÑ¡ÑÁÑ¡ÑÂÑÚÒÚÒÚ#ÒâÙÒâÙÒãÙÒâÙÒâÙÒâÑÒâÙÒÚÒÚ#ÒÚÒâÑÒÚ#ÒáÙÁÑÁÙâÑÁÙÁÑÁÑÁÑÁÑÁÑ¡ÙÁѡ١Ѡ١ѡÙÁÑ¡ÙÁÑ¡ÙÁÑÁÙÁÑÁÙâÑÁÙÚÚ#Ú¤Ò&ÛéÛkä‹ä¬ÜŠä‹ÜjäjÜJäJÜJäjÜjä‹Üjä‹ÜjäŠÜjäJÜIäjÜJä‹äŠä‹Üjä‹ÜjäjÜJÜjÜJÜJÜJÜjÜJÜk܋܌ÔéãhËCâÂɀѡÑÁÙÂÑ¡ÙÂÑÁÙâÑÚ#ÒÚ#Ú#Ú#ÒÚ#Ò#Ú#Ú#Ú#ÒÚÚÚÚÚÚÚÚâÙÒâÙÚÚÚÚ#Ú#Ú#ҀѡѡÙÁ١١ѡ١Ѡ١ѡ١ѡ١Ѡ١р١рÙ�рѡрѡрÑÁÑâÙãÑâÙâÑâÙÒâÙÚâÙãÑÂÙâÑaÁ�ÉÊâÉãÉÂÉãÉãÑãÉâÑãÉâÑãÉÂÑãÉâÑãÉÂÑãÉÂÑãÉâÑãÉãÑãÉâÑÊãÑÒÂѡɡѡѡѡÑ�Ñ¡Ñ�Ñ¡Ñ�Ñ¡Ñ�Ñ¡Ñ�Ñ¡É�ѡѡѡɡѡѡѢѡѡѡѢѡÑÒÚÒâÑÒãÑÒâÑãÑâÙÒãÙÒãÙÒãÙãÑâÑãÑãÙÒãÑÒÚÒâÑÒãÑÒãÑÂÉ¡ÑÂÑ¢ÑÂÑ¡ÑÂÑ¡ÑÁɡѡѡѡÑ�Ñ¡Ñ�ѡѡÑÂÑ¡ÑÂÑ¡ÑÂÑÁÙÂÑ�Ñ¡ÉÚGËÉãkÔkÜ‹ÜkÜ‹ÜjäkÜJäjÜJäkÜJäkÜJäkÜJäJÜjäkÜJä‹äjäjäJäjÜJäjÜJäkÜJäjÜJäJÜJÜjÜJÜKÔJÜkÜ*ÜKÔ*ÜkÔ‹ÜlÔéËÆÚ#Ê�Ñ�ÑÂÑ¡ÙÂÑ¡ÑãÑÚ#ÒÚ#ÒÚ#ÒÚ#ÒÚÒãÙÒãÙÒãÙÒãÙ#ÒÚÒãÙãÑâÙÒãÙ$ÒÚ$ÒÂÑ�ɡѢѡ٢ѡ٢ѡ١Ñ�ѡѡѢѡѡѡѡрѡÑ�Ñ�É`Ñ�É€Ñ�É€ÑãÑâÑãÑâÑãÑâÙãÑãÙãÑÂÙâÑÂÙ`É€ÉâÉãÉâÑâÉâÑãÑâÑâÑâÑâÉÂÑãÑâÑãÑâÑãÑâÑãÑâÑâÑâÑãÑâÑãÑâÑÊâÑÂɠѡɠѡрѡрѡрѡѠ١ѠѡѠѡɠѡѡѡɠѡѡ١Ѡ١ѡÙÁÑÁÑ#ÒÚÒâÙÒâÙÒâÙÒÚ#ÒâÙÒÚÚâÑÒâÙÒâÙÒÚÒâÙÒÚÒÚâÉ¡ÑÁÑÁÑâÑÁÑÁÑ¡ÑÁѠѡѠÑÁÑ Ù¡Ñ Ù¡Ñ Ù¡Ñ¡ÙÁÑ¡ÙÂѡ١ÑÁÑdÚ¨ÓJä‹Ü«Üjä‹ÜŠä‹ÜŠä«äŠäjÜjäŠäŠä«äŠäjÜIäJÜIäjÜjä‹äjäjäiäjäŠäŠäjäŠäjäjäjäjÜIäjäIäJÜIÜJÜJÜjÜJÜJÔJÜJÔJÔkÔkÜKÌ&ã„¡١ÑÁÙÁÑ¡Ñ#ÚÚ#ÒÚ#ÒÚ#ÒÚÚÚÚÚ#ÚÚÚâÙÚÚÒâÙÒâÙÒÚ#ÒÚ$ÚâÙ¡É ÙÁÑ¡ÙÁѡ١ѡ١ѡ١Ѡ١ѡ١ѡ١р١р١рÑ�Ñ€Ñ�рѡÑÁÑÒâÑÒâÙÚâÙãÑâÙâÑÂÙâÑ�Á`ÉÂÁâÑãÉÂÑãÉâÑãÉÂÑãÉÂÑÃÉÂÑãÉâÑãÉâÑãÉâÑãÉâÑãÉÃÑãÉÃÑÊãÑÂɡɡɡÑ�É€Ñ�É�Ñ�É€Ñ�É�Ñ¡Ñ�ѡѡѡÉ�ѡɡѡɡѡѡѡѡѡѡÑÂѡѢÉÂÙ#ÒâÑÒãÑÒâÙãÑâÙÒâÙÒãÙÒãÑÒâÙÒâÑÒÚÒãÑÒãÑÒÒãÑ¡ÑÂÉ¡ÑÂÑ¡ÑÂÑ¡ÑÂѡѡѡѡѡѡѡѡÑ�ѡрÑÂѡѡрÑâÁ„â +ÔŒäÍܬä‹Üj܋ܫä‹Ü‹ä‹Ü‹ä‹äjä‹ä‹ä«äŠä‹äjäJÜIäŠÜjä‹äjäŠÜjäjäJäjäjäjÜjä‹äjäJÜJäJÜJäjÜjäjÜJäJÜJäJÜ)ÜJÔ*ÜKÔ*ÜKÔJÜŒÔkÔhÛ„Ê¡Ñ�ÑÂÉâÙ$ÒãÑÒÚÒÚÒãÙÒãÙÒÚÒãÙãÑãÙÒãÙÒãÙÒãÙÒÚÒÚÂÑ�Ѣѡ٢ѡѢѡѢѡѡѡѡÑ�ѡѡ٢Ñ�Ñ¡Ñ�Ñ¡Ñ�Ñ¡Ñ�Ñ¡Ñ�Ñ�É�Ñ¢ÉãÙÒãÙãÑãÙãÑÂÙãÑÂÙâÑÂÙ`ɀɀÉâÑâÑãÉâÑãÑâÑãÑâÑâÉÂÑâÉÂÑãÑâÑãÑâÑãÑâÑãÑâÑãÉÂÑãÑâÑÒ¡ÑÁѠѡѠѡрѡрѡрѡѠ١ѡ١ѡѡɠÑÁÑ¡ÑÁѠѡѠÑÁѡ١ѡ١ѡÑÁÑÚ#ÒÚÒâÙãÑâÙÒâÙÒâÙÒÚÒâÙÒâÙÒâÙÒÚ#ÒÚÒÒ#ÒÁѡɡÑÁÑ¡ÙÁÑ¡ÙÁѡѡѡѡѡѡѠѡѠѡѠÑÁÑ€Ù�ÑÊÅÚ)Ü«ä«ä¬Ü«ä«ÜŠä«äŠäËäŠäŠäŠìŠäjäŠäiäŠäŠìŠäŠäŠäiäŠäiìjäiìŠäjìŠäiäŠäiìŠäIäjäiìŠäIìjäIäIÜIäiäIäjÜIäjäIäJÜ)ÜIÜ)ÜJÜJÜJÔ)ÜJÔkÜŒÔgã„€ѡÑ#ÚÒÚÒÚÚÚÚÚ#ÚÚ#ÚÚÒâÙÒÚÒÚÒÚ#Ò#Ú#ÒÚ#Ò¡Ù¡Ñ¡ÙÁѡ١ѡ١ѡ١ѡ١Ѡѡѡ١ѡ١Ѡ١рѡѠ١рѡрѡѠÑâÑÚÒâÙãÑâÙâÑâÙâÑÂÙâÑ�Á€ÉaÁ¡ÑÊãÉãÉâÑãÉÂÑãÉâÑãÉÂÑãÉÂÑãÉâÑãÉâÑãÉâÑãÉâÉãÉãÑÒÂѡɡѡѡѡрÑ�É€Ñ�Ñ�Ñ�ɀѡɡѢѡѢѡѡɡÑÂɡѡÑ�ѡѡѡѡѡÑ�ѢѡÑãÉÚÒâÑãÑâÑãÑâÙÒâÙãÑâÙÒãÙÒâÑãÑãÑÒãÑÒÒÒãÑÊãѡɡѡѡѡѡѡѡѡѡѡÑ�ѡɡѡÉ�ѡɡѡÑ`ÑÂåâKÔ‹ä¬ÜJ܋܋ä‹Ük܋܊ä‹ÜŠä‹äJÜŠÜjä‹äŠä‹äjäkÜjä‹äjäjäjäjäŠìjäjìjäJä‹äjìjäIäjäJäjäIäJäIäJä)äJÜIäJÜIäIÜ)äJÜ)äJÜ)ÜJÜ)Ü*Ô Ü*Ô)Ô*Ô*ÔŒÔkÔGã"ÂÃÉÚÒÚÒÚÒãÙÒÚÒãÙÒãÙÒãÙÒãÑÒãÑÒÚ#ÒÚ$Úâ٢ѡ٢ѡѡÑ�ѡѡѢѡѢѡѡѡѢÑ�Ù¡Ñ�Ù¡Ñ�ѡѡѡÑ�Ñ�É`Ñ�ɀѡÑ�ÑÒãÑãÑâÙãÑÂÑâÑÂÙãÑÂÙ`É€Á`É€ÉâÑÊÂÑãÉâÑãÑâÑãÉâÑâÉÂÑâÉâÑãÉâÑÒâÑÒâÑãÉâÑÒâÙÂÉ¡ÑÁѡѡрѡрѡрѡрѡѠѡѡÙÁÑ¡ÙÁÑ¡ÑÁÑ¡ÑÁѠѡрѡѠ١ѡ١ѡ١ѡÑÒÚÒâÑÒâÙÒâÙÒâÙÒâÙãÑâÑãÑâÑÒâÑÒÚ#ÒÚÒÚâɠѡɡѡѡѡɠѡѠѡɀѡрѡѠÑÁÑ Ù€ÑáÉåâjÜÌä«ä¬ÜŠä‹Ü«ä«ÜŠä«äŠä«äŠì‹äjäŠäjäŠäŠä«äªìŠäiä«äŠìŠäŠìŠäŠìŠäIìŠäiìŠäŠìŠäiìjäiìŠäIìjäIìIäIìIäIìIäIäIä(äIä(äIÜ)äIÜIäIÜ)Ü)Ü)Ü)Ô)ÜJÔJÜJÔ‹ÜKÔÅâDÊâÙÒÚÒÚ#ÒÚÚÚÒâÙÚÚÒâÙÒâÙÒÚ#ÒÚ#ÒâÂÑ¡ÙÂѡ١ѡ١ѡÑÁѡ١ѡ١ѡ١ѡ١Ѡ١рѡѠ١рѡрÑ�рѡɀѡÑÂÑÒâÙãÑÂÙÂÑÁÑâÑâÙâÑ`Á`Á`Á`ÉÂÉãÑãÉÂÑãÉÂÉãÉâÑãÉÂÑãÉÂÑÃÉÂÑãÉãÑÊãÑãÉãÑãÉãÑÃѢѢɡѡѡѡÑ�ѡɀѡÉ�Ñ¡Ñ�ѡɡÑÂÉ¡ÑÂÉ¡ÑÂɡѡɡѡɀѡÉ�ѡѡѡѡÑÂѡѡÉÁÑÒãÑÒãÑÒâÑÒãÙÒãÑãÉÂÑãÉâÑãÉãÑÒãÑÒãÑÊÒҡɡɡѡɡѡѡѡÉ�ѡɡѡɡѡɀѡÉ`Ñ¡ÁcâKÔ¬ä¬Ü‹Ü¬Ü‹ä¬ÜÌìÌä‹ä«ä«ä«ä«ì«äjä‹äŠäjäJäjäjì«äjäŠäjäŠäjì‹äŠìŠäJäŠäjìŠäjìjäIìjäIìjäIìjäIäjä)äIäIìJä)ä)Ü)äIÜä)Üä)Ü)ä*Ü)äJÜIäJÜ)ÜJÔ*ÜJÔ)Ô*ÔJÜlÔ +ÌeÒÂÉÒãÑÒÚÒãÙÒãÙÒãÑÒãÑÒãÑÒãÑÒãÑÒÚãÑ¡ÑÂѡ٢Ñ�Ñ¡Ñ�ѡѡѢѡ٢ѡѡѡѡÑ�ѡрѡÑ�Ñ¡Ñ�Ñ�Ñ`Ñ�É`Ñ�É`Ñ�É�Ñ¢ÉâÙãÑâÑãÑÂÑÃÑÂÑãÑÂÑ`É€Á`É€É�ÉâÑâÑãÉÂÑãÉâÑãÑâÑÊâÑãÉÂÑâÉâÑÒâÑÒâÑÊâÑÊ¡ÑÂѡѡѡѡѡѡрѡѠѡѠѡѡ١ѡÑÁÑ¡ÙÁѡ١ѠѡɀѡрѡѠ١ѡ١ѡ١ѠѡÑâÑÒÚ#ÒÚÒâÙÒâÙÒâÑãÑâÑãÑâÑÒâÑÒâÑÒÒ#ÒÁѡɀѡѠѡѠѡѡѡɠѡѠÑÁѠѠрÉÒéÓ¬ä«ä«Ü«ä¬ä‹ä«ä«ì«äŠä«äŠì«äªìËìŠì«äŠì«äªìªäªìËìªìªäjìjäjìŠìŠìªìŠìŠäiìŠìiìjäiìŠìiìjìiìŠìiìjìiìIäIìIäHìiä(äIä(ä(Üä)ä(ä)ää)Ü äJäIäIÜ)Ü)Ô)Ü*Ô)ÜJÔJÔkÔ+äGÃâÙÒÚÒãÙÒâÙÒÚÒÚÒÚÒâÙÒâÑÒÚ#Ò¡ÙÁÑÁÙâѡ١ѡ١ѡ١ѡÙÁÑ¡ÙÁѡ١ѡ١рѡрѡѠ١рÑ�Ñ`ррѡрѡѠÑâÑâÙÒâÙãÑÂÙâÑÂÙâÑ€Á`É�É`É�Á¡ÑãÉÂÉãÉÂÉãÉâÉãÉâÑãÉâÉãÉÂÉãÉâÑãÉãÑãÉâÑÒÂɡɡѢɡѢÉ�Ñ¡É�Ñ¡Ñ�ѡѡѡÑ�ѡɡѡɡѢѡÑÂɡѡÉ�Ñ¡É�Ñ¡É�ѡѡѢѡѢÑ�Ñ¡Ñ�ÑâÉÚÒÒÒãÑÒãÑÒãÑãÉãÑãÉãÑÊÒÒãÑÊÒ$ÒãÑ¡É�Ñ¡É�Ñ¡É�Ñ¡É�ѡѡѡÑ�ѡɡÑ�ɡшÌìíܬܬ܋ä¬Ü‹ä‹Ü«ä«ä‹ä‹äŠä‹ä‹ì«ä‹ì«äŠä‹ä‹ì«ä«ìËä‹ì«äŠìjäJìŠäŠìŠäŠì‹äjì‹äŠìjäjìjìjìjìjìjäjìjäiìŠìiìjìIìIäIìJä)äIä(ä)ää)ä(ä)Ü)ä)Üä)Ü)äJÜ)Ü)Ô Ü*Ô*ÜKÔ*ÔKÌlÜiãDÂãÑãÑÒãÑÒãÑÒãÑÒâÑÒãÑÒãÑÒâÑ#ÒãѡѡÑÂÑÁÙÂѡѡÑ�ѡѡѡѡ٢ѡ٢Ñ�Ñ¡Ñ�ѡрѡÑ�ѡрÑ�É`Ñ�ɀѡÑ�Ñ¡Ñ�Ñ¡Ñ�ÑÒãÑãÑÃÙãÑâÙãÑÂÙ`ɀɀɀÉ`É€ÉâÑâÉÂÉâÉÂÉãÉâÑãÉâÑÊâÑÊâÑãÉâÑãÉâÑÊâÙÂɠѡɡѡрѡрѡѠѡѠѡрѡрѡѠѡѡÙÁѠѡɠѡѠѡрѡѡ١ѡ١ѡѡѡѡѡÑÒÚÒÚÒâÑÒâÑÒâÑÒâÑÒÒÒÒÊÒ#ÒÚâɠѡɠѡɠѡѠѡѠѡѠѡɀрÉÄÂ*ìÌäÌÜ«äÌä¬ì¬ÜŠä«ä«äËäŠä«ä«ì«äªìËäªì«äŠì«äŠì«ìŠì«ìŠìªìªìËìŠôŠìjì«ìŠìŠìŠìŠìŠì«ìiìŠìIìjìiìŠìiìŠì‰ôŠì‰ôŠìIìIäIìiìHìIä(ìIä(äIä(ä(ä(ìIäIä)Üä)Ü)äJäIäIÜ)Ü)Ô Ô*Ô*ÔJÔkÜ*Ì#ÚãÉÚÒÚÒÚÒâÑÒâÙÒâÙÒâÙÒÚâÑ¡ÙÂÑÁÙÂѡ١ѡ١ѡ١ѡ١ѡÙÁѡ١ѠѡрѡрѠрѡрÑ�рѡрѡрѡррÑÂÑÒâÙãÑâÙãÑâÙãÑ`Á`É�Á`É�Á`ÉÂÁÂÉÃÉÂÑÃÉÂÉÃÉÂÉãÉâÑãÉãÑãÉãÑãÉãÑãÉãÑÂÉ�ɡɡѡÑ�Ñ¡É�Ñ¡É�Ñ¡É�Ñ¡Ñ�Ñ¡Ñ�ѡрѡɡѢÑ�ѡɡѡѡѡÉ�Ñ¡Ñ�Ñ¡Ñ�Ñ¡Ñ�ѡѡѡɡѡÉÁÑ$ÒãÑÒâÑÒâÑãÑãÑãÉãÑÊãÑÊãÑÊãÑÊÒÒ¡É¡É�ɡɀѡɡѡɀѡɀɡÉ`Éâ¹&ëÍܬä¬Ü¬ä¬Ü‹ä¬Ü‹ä«Ü«ä¬ä‹äÌä«ä«ä«ì«ä«ìËäŠä«äªì‹äŠì«ì«ì«ì«ì«äŠì«ì«ì‹ìŠì‹ìŠì‹ä‹ì«ìŠì‹ìjì‹ìŠô‹ìŠôŠìiìŠìiìŠìiìŠìiìjìIìIä(ä)ä)ìIä ä)äèã)ääIä(äÜèã Üèã)Ü)ä*Ô Ü*Ô*Ü*Ô*Ô*ÌKÔÊã…ÂãÑÚÒãÑÒãÑãÑâÑÒãÙÒãÑÒÚãѡѢѡѢѡ٢Ñ�Ñ¡Ñ�Ù¡Ñ�١рѡѡѡѡѡÑ�Ñ�Ñ`Ñ�É`Ñ�É€Ñ�É€Ñ�Ñ�Ñ�Ñ�Ñ�Ñ`Ñ�ɀѢÉâÙãÑâÙãÑÂÑãÑâÑ`É€É`É€Á`ɀɡÉâÉÂÑãÉÂÉÂÉ¢ÉÂÉÂÉãÉâÑãÉâÑãÉâÑãÉâÑʠѡɀѡѡѡрѡѠѡѠѡѡ١Ѡ١рѡѠѡѠѡɠѡѡ١Ѡѡѡ١рѠрѡрѡѠÑÁÑ¡ÑÁÑâÑÒâÑÒâÙÒâÑÒâÑÒâÑãÑâÑãÉãÑÒâÑÒÁѡɠѡɠѡɠѡɠѡɠѡɀÁCÚjÜíä«ä¬Ü‹ä¬Ü«äÌäjä‹Ü«ìËäŠä«ä«ì«äËìÌìËôËìªìËìªìËìªìËìªôËìËôËìŠô«ìªôËìËôªìŠô«ìŠôªìªôËìªôªìŠôŠì‰ôªì‰ôŠì‰ôŠì‰ôŠì‰ôŠì‰ôŠìIìiì(ìIä(ìIä(ì)ä(ì)ääää(äèãÜäÜÜ)Ü ÜJÜ)Ü*Ô Ô*ÔJÔKÌdÚÊÚÒâÑÒâÙÒâÙÒÚ#ÒÚ#ÒÁѡɡÙÁѡ١Ѡ١р١ѡ١р١р١ѡ١ѡ١ррррɀÑ�рѠрѡр١рـрѠрÑâÑÚÒâÑâÑÂÑâÑ`Á`É`Á`É�Á€É�ÁÂÑãÉÂÉÃÁ¢ÉÃÁ¢ÉÃÉÂÉãÉÂÉãÉâÉãÉãÑãÉ¢É�ɀѡÉ�Ñ¡É�Ñ¡É�Ñ¡É�ѡѡѢѡѡÑ�Ñ�É€Ñ�É�ѡɀɡɡѡѡѡɡѡÑ�Ñ�É€Ñ�É�Ñ¡É�ѡɡѡÑ�ÑÂÉâÑãÉãÑãÉãÑãÉâÑãÉÂÑãÉÂÑãÉãÑãÉãÑãÉãѡɀɡɀѡɀѡɀѡɡÑ�É€ÉhÃŒìÍÜÍäÌ܋ܬ܋ä¬ä‹ä‹Ü‹ä¬ä«ä«ä‹ä«ä«ìËäËìììËì«ä«ìËì«ìÌìËì«ì«ìÌìŠìËìËôÌìËìÌìËô«ìŠì‹ìŠìÌìËô«ìŠô‹ìjì‹ìŠô«ìŠôªìŠôŠìjôŠìŠìŠìiìjìIìIä)ìIä(äIä)ì)ä(ì)ää)äçãÜçÛ Üèã Ô ÜJÜ)ÜJÔ)Ô*Ì Ô+ÌKÔ ä¥ºãÑãÙÒãÑãÉãÑÒâÑÒãÑÒãÑ¡É�ѡѡѡѡѡÑ�Ñ¡Ñ�Ñ¡Ñ�Ñ�Ñ€Ñ�Ñ€Ù�Ñ�Ñ¡Ñ�Ñ�Ñ`Ñ�É`Ñ�ɀѡÉ�Ñ¡Ñ�ѡрÑ�ɀѡÑ�Ñ�É€ÑãÉâÑÂÉÂÑãÑÂÑ`É€É`É€Á€É¡É€É¡ÉâÑâÉÂÉÂÁÂÉÂÉÂÉãÉâÉãÉâÉãÉâÑÊâѡɀѡɀѡѠѡѠѡѠѡɡѡѠѡрѡрѡɀѡѠѡɠѡѡѡѠ١ѡ١рѡрѡѠѡѠѡѠѡѡÑâÑâÑÒâÑãÑâÑãÉâÑãÑÂÑãÉâÑãÉâÑÒÚâɀѡɀѡɠѡɀѡɠрɨëÌäÌÜ«äÌÜ‹ä‹Ü«ä«äŠä«äªì«äŠäËä«ì«äªìËìÊìËìËìËìËìËìªìËìËôËì«ôËìªôËìËôËìëôììËôìôÊôËì«ôËôËôËìŠô«ì«ôËì«ôËìªô«ìªô«ìªôªô‰ôŠìiôŠìiôiìIôiìIìIäHìIä(ì)äì(ä(ìääÜçãçÛçã(ÜÜ)Ü Ü)Ü)Ô)Ô*ÔJÔkÔKÌ#ÚãÉâÙãÑâÑãÑâÑÒâÑÒÚÂɀѡѠѡѠѡрѡѠ١рѡрѡрѡрـр١рÑ�рррѡѠѡрѡрѡрѡѡ١ррÉÂÑÒÂÑâÑÂÙâÑ�Á`É`Á`É�ɀɡɀÉÃÉÂÉÃÉ¢ÉâÁÂÉãÁÂÉÃÁÂÉãÁÂÉãÉãÉÂÉ�É�ɀɡÉ�ѡɀѡɡѡɡѡѡѡрÑ�ɀѡɀÑ�É€Ñ�É€Ñ�É�Ñ¡É�ѡѡѡÑ�Ñ�ɀѡÑ�Ñ¡É�Ñ¡Ñ�Ñ¡É�ѡɡÑÒâÑãÉâÑãÉâÑãÉÂÑãÉãÑãÉãÑãÉãÑãÑ�ɡɀɡɀɡɀɡɀɀÁÒKÔ¬äŒÜ‹ÜŒÜkܬ܋ܫ܋ä«ä«ä‹ä‹ä«äŠä«äªìËäËìËìËìËì«ìËìËìÌìËìËì«ôÌì«ôËì«ôËìËôÌìËôÌìËôÌììôìôËô«ì«ôËìËôÌìËôÌì«ôËì«ôËôªôŠìŠô«ìjôŠìjôjìIìjìIìJìIìIä)ìIä)ì)ää)ääÜäÜçãèÛçÛèÓçÛ Ô Ü*Ô Ü*Ì*Ô+ÌKÔªãDºãÉÃÑãÉâÑãÉâÑãÉãÑãÑ�ɡɡѢѡѡÑ�Ñ¡Ñ�Ñ¡Ñ�Ñ¡É�Ñ¡É�Ñ�Ñ�Ñ�Ñ`Ñ�Ñ`Ñ�Ñ`Ñ�É`Ñ�É�Ñ¡É�Ñ¡Ñ�ѡрѡÑ�Ñ¡Ñ�Ñ¡É`Ñ¡ÉâÑãÑâÑãÑâÑ`É€É`ɀɀɡɀѡɡÉãÉÂÉâÉÂÉâÉÂÉâÉÂÉâÉÂÉâÉâÉʠѡɀѡɠѡɀѡрѡѠÑÁѡѡрѡрѡрѡɀѡрѡɀÑ�ɀѡѠ١Ѡ١рѡѠѡѠѡрѡѠѡɠѡÉâÑÒâÑãÑâÑãÑÂÑãÉâÑãÉâÑãÉâÉÊ¡Ñ�ɀѠɀѡɀѡɀÑ`ÉÅÂkì«ä‹Ü‹ÜÌÜ‹ä‹Ü‹ä‹ÜŠä«äËìÌäŠì«äŠìªäªìËìËìËìËôëìËôëìËôììËôËìËôìôËôËìËôìôëôìôËôëôËôËìËôìôëüëôËôìôËüìôËôËôËôìôËüËôªü«ôŠôªôªôŠì‰ôªì‰ôŠìiôjìiìŠìIìiìHìIì(ìIä(ì(äì(äìçãçã(äçÛçÛÜÜ ÜJÜIÜJÔ)Ô*ÌKÜÉÃÂÑãÑÂÑãÉâÑãÑâÑÒÁÙ¡É ÑÁѡ١ѠѡѠѡѠѡѠѡѠѡрѡррÑ`ррѡрÑ�рѡрѡрѡрѡѠѡрѡрѠɠÑâÑâÙâÑâÙâÑ�Á`É�Á€É�É`É�É€É�ÁÂÑãÉÂÉÃÁÂÉÂÁÂÉÃÁÂÉãÁÂÉãÉÂÉ�ɀɡɀɡÉ�Ñ¡É�ѡɀѡɡѡÉ�ѡɀÑ�É`Ñ�É€Ñ�É€Ñ�É`Ñ�É`É�É`Ñ¡Ñ�Ñ¡Ñ�ѡрѡÉ�Ñ¡Ñ�ѡɡѡɀɡɀÑÂÉâÑãÉÂÑãÉÂÑãÉÂÉãÉÂÉãÉÂÉãÉÂÉ�É`É�Á€É�ɀɡÉ�Ñ¡¹¥âÍ܌܌ԋܬܬä‹Ü‹ä«Ü‹ä‹Ü«äÌä‹ä«äŠä‹äªì‹äŠìËäËìììËìËì«ôÌìËô íìôììËôËìËô í õìôìôìôËôììËô í õ õËô õËôËô«ôÌôËôÌô«ôËô«ôËô«ô«ôŠô«ìŠô«ìŠôŠìjôŠìiìjìiìjìIìjìIìIäIì)ää)äääçãÜèãèÛÇÛ ÜèÛ)Ô)ÜJÔ)Ü*Ì ÔKÌ‹ÔçÚãÁãÉÂÉãÉÂÑãÉãѡɡѡɡÑÂɡѡÉ�Ñ¡É�Ñ¡É�Ñ¡É�ѡɀÑ�É�Ñ�É`Ñ�É`Ñ�É€Ñ�É€Ñ�É€Ñ�ɀѡɀÑ�ɀѡÑ�Ñ¡Ñ�ѡɀѡɡÑÒâÑãÉÂÑ`É�É`É�ɀɀɀɀÁ`É¡ÉâÉâÉÂÉÂÁ¢ÉÂÁÂÉâÉÂÉâÉâÑÂÁ€É¡É Ñ¡É€Ñ¡É Ñ¡É€Ñ¡Ñ€Ñ¡É Ñ¡Ñ€Ñ¡Ñ€Ñ¡É€Ñ�рѡɀÑ�Ñ`рɀрɀѡрѡѠ١ѠѡѠ١рѡѠѡɠѡɡÉÒâÑãÉâÑãÉâÑÊâÉãÉâÑãÉâÑÂɀɡɀɡɀѡɀÑ`Égìì«ä¬Ü‹Ü¬Ü«ä¬Ü‹äÌä‹ä‹äŠì‹äŠì«äŠì«äŠìŠäiì«ìËôËìËôììëôëìËôëôëô õëô õëô õ ý õìô õëüëôËô õ ý-õëüìôËôËôÊôëôëüìôËüìôËüëôËôËôªôËôªôËôªôªìŠô«ôiôŠìiôiìIìIìIìiìHìIä'ì(äìäì(äääçãçÛçãÜÜ)ÜÜ Ô Ô*ÔJÔKÔ +äŲÂÑãÉÂÑãÉâÑâÉ ÑÁÑ¡ÑÁÑ¡ÑÁѠѡɠѡɠѡɀѡɀѡрѡрÑ�рррÑ�рѡрѡɀѡɀѡɀѡɀѡѠѡрѠрѠÑÂÑÒâÑâÑ€Á€É�Á`É�Á`É�Á`É�Á`ÉÃÁÂÉÃÁ¢ÁÃÁÂÁãÁÂÉãÁÂÉ¢ÉaÁ�ɀɡɀɡɀɡɀɡɀɡɀɡɀѡɀÉ�É€Ñ�É`Ñ�É`Ñ�É`Ñ�É`Ñ�ɀѡÉ�ѡɡѢÑ�ѡɡѡѡѡɀɡɀѡɡѡɡÑãÉÂÉãÉâÉãÉÂÉãÉâÉãÉâÉãÉ�É�Á€É�Á€É�É`É¡±ãÍÜkÔŒÜk܋܋ä‹Ü‹Ü‹Üjä‹äjä‹äŠä‹äŠìŠäŠì«äŠìËäËìËì«ìÌìËôììëô õìôììËô íìô í õ-õìôìôìô í õ-õ õ õìô õìô õìüìôìôìôËôÌôËôìôÌôÌô«ôÌô«ô«ì«ô«ìŠô‹ìŠôjìIìjìIìIìIìIì)ìIä(ì(äì(äì)äìäçãèÛçãèÛçã ÜèÛ ÔèÛ ÌéÓ*Ì +ÔKÌêËãÉÃÉÃÉÂÑãɡɡɡѡɡѡɡѡɀѡÉ�ɡɀɡɀÉ�ɀɡÉ�Ñ¡É�Ñ�É€Ñ�ɀѡɀѡɀрÉ`Ñ�É€Ñ�É€Ñ�É�ѡɀѡɀɡɀѢÉâÙãÑÂÑ`Á€Á`É€É`É�ɀɀÁ€É€Á¡ÉãÉÂÉÂÁÂÉâÉÂÉãÁÂÉãɀɀÁ€É¡É Ñ¡É€Ñ¡É€Ñ¡É€É É€Ñ É€Ñ¡É€Ñ¡É€Ñ¡É€Ñ¡É€Ñ€É€Ñ€É€Ñ€É€Ñ¡É€Ñ¡Ñ Ñ¡Ñ¡Ù¡Ñ Ñ¡É¡Ñ¡Ñ Ñ¡É€Ñ¡É€Ñ¡É€É¡ÉâÑãÉâÑÊâÑâÉÂÉãÉâÑÊ¡É�Á€É É€É¡É€Ñ€É§ËÌäj܋܋܋Üj܋܊ä‹ÜIäŠäjìjäŠìŠäŠì«ìiìŠäiìªìªô«ìÊìëìËôËìëô õ õ-õ ýìôëô,õ ý,õ ý õ õ,õìô,õ,ý-õëô õ ý,õ ý-õ ý õËü õëü õëüìôëüìôËüËôªôËôªô«ôªôŠì‰ôŠì‰ôŠìIìiìHôIìIôIìHìHì'ì(äì(äìçãçãäçãÜçÛÜèÛ ÔèÓ Ô Ô Ì +ÌŒÌæÚºâÉãɡѡɠѡɠÑÁѠѡɠѡɠѡɠѡɀѠɀѡɠѡрѡѠѡрѡрѡрÑ�рѠɀѡɀѡɀѡрѡɀѡѠѡɠÑâÑâÑâÑ€Á`Á�Á`É�ÉaÉ�Á`É�Á`Á�¹ÂÉÃÁÂÁãÁÂÉãÁÂÉãÁ¢É`Á`É�Á€É¡É�ѡɀÉ�ɀɡÉ`É�Á€É�ɀɡɀÉ�É€É�É`Ñ�É`Ñ�É`Ñ�É`ѡɀɡÉ�Ñ¡É�ѡѡѡɡѡɡѡɀÉ�ɀɡɀɡÁ€ÉÂÁâÉãÁâÉãÁÂÉãÁÂÉãÉÂÉ�Á`Á�Á`É�Á`Á¡±&ãÍÜkÔ‹Ô‹ÜŒÜkÜkÜjÜkÜJÜJÜJäJäJä‹äŠì«ìŠìŠäjìŠäªì«ì«ìÌìËìËììô õìô õìô-õ õ õ ýMõ õìììô õ õ-õ õ-õ õ õ ý õìü õ õ õËô õìüìôìü õìüìôìüìô«ôËô«ôËô«ô«ô«ô«ìŠôŠìjôŠìiìIìIìiì(ìIä(ìäìäçãäçãäèãÜä Üä ÔèÛéÓ)Ü*ÔéÓ +Ä*Ì Ü„²ÃÉãѡɀɡɡɡɡѡɡѡɡѡɡѡÉ�ɡɀɡɀɡÉ�Ñ¡É�Ñ¡É�ѡɀɡɀÑ�É`Ñ�ɀѡɀÑ�É€Ñ�É€Ñ�É`É�ɀѡɀÉ�É¡ÑãÑâÑ`É€Á`ɀɀɀɀɀɀɀÁ`Á¡ÁÂÉâÁÂÉâÁÂÉâÉâÉ¡Á€É É€É¡É€É¡É€Ñ É€É¡É€É€É€É€É€É¡É€Ñ¡É€É É€Ñ€É€Ñ€É€Ñ€É€É É€Ñ É€Ñ¡É Ñ¡Ñ¡Ñ¡Ñ¡Ñ¡É€Ñ¡É€Ñ¡É€É É€Ñ¡É€É É�ÉâÉâÉãÉâÉâÉÂÉâÉâÑÂÁ€É€Á€É Á€É`Á‡ÃÌäJÔkÔkä‹ÜŠä‹ÜjÜŠÜJäjÜIäjÜiäŠäŠìŠä‰ìªìŠìªìªô«ìŠôËìªô«ìëô õìô-õ,ý,õëü õ ý,õ ý,õ ý,õ ý-õ,ý-õìü õ,ý,õ,ý-õ ý õëü õ,ý-õ ý õ,ý-õìüìôËüëôËüëôËüËôÊüËôªôªôŠôŠì‰ôŠìiôiìHôHì(ìHìì(äì(äçãçãçãçãçãÜçãÜçÛÜÜ ÔéÓ Ô ÌJÌKÔ©»ÂÉâɀɡɠÑÁɠѡɠѡɠѡɡѡɠѡɠѡɀѡɠѡɠѡɀѡѠѡɀѡрѠɀѡɀѡɀѡɀѡɀɀÉ`рɀрɀѠÉâÑÒ`Á`É`Á`É�Á€É�É`É�Á`É€¹`ÁÂÁ¢ÉÂÁÂÉÃÁÂÉâÁ€Á�Á€É�Á€É�ɀɡɀÉ�É€É�É`É�Á`É�Á€É�É€É�É€É�É`Ñ�É`Ñ�É`É�É€É�ɀɡÉ�Ñ¡É�ѡɡѡɀѡɀÉ�É€É�ɀɡɀÉ�Á€É�Á¡ÉãÉÂÉãÁÂÉãÁÂÉãÁ�Á€Á`ÁaÁ€É�©¥ÚÍÔkÔKÔkÜkÔjÜkÜJÜ‹ÜjäJÜIÜjÜjäIÜIäJäIäŠäŠìŠäªô«ì«ì«ìŠìËìËôÌìËô õ õ õ õ õìôìô ý õëô-õ-ý-õ õ õìü-õ-ý-õ õ-õ õ-õ õ-õ ý-õ-ý-õ-ý-õìüìôìü õìüìôìüÌôËôËôªô«ôŠô«ôŠôŠìiôjìIìjìIìIì(ì(äì(äçãäçãèÛÇãçÛÇÛÇÛÇÛèÓèÛ)ÜèÛéËéÓéÃéË+ÄKÌ…Ò¡Á¡Á É¡É É¡É¡Ñ¡É€É¡É¡Ñ¡É¡Ñ¡É�ɡɀɡɀɡɡѡÉ�Ñ¡É�ѡɀѡɀÑ�É`ѡɀÉ�ɀѡɀÑ�É`Ñ�É`É€Á`É�É€É�É€ÑÂÉâÑ`É€Á€É€Á`ɀɀɀɀɀÁ€É€Á¡ÁÂÁÂÉÂÁ¢ÁâÁ€Á€¹€É Á€É¡É€Ñ¡É€Ñ€É`ɀɀɀɀɀɀɀɀɠɀɀɀɀÉ`рɀɀɀɡɀѡɀѡɀѡɠѡɠѡɠѡɀɡɀɡɀɡɀɡÁ€É ÁâÉâÉÂÉâÁÂÉâÉ¡É�¹€É€Á`É`ÁźŒì‹ÜkÔ‹ÜkÔ*ÜkÜIÜjÜIäjÜiäŠäŠìIÜ(äIäIäiäiìŠìŠìËìŠôªìŠôªìËôËìËô õëô õ õ õ ý,õëü õëü õ,ý-õ,ý-õ,ý-õ,ý-õëü,ý,ý-õ,ý-õ-ýMý-ýMõ-ýMõ,ý,õ ý,ý ý,õ ý,õËüëôÊüËôªôËôªüŠìŠôŠìHôiìIôŠìHôIì(ìHìHì(ä(ìääHääÜçãçÛçãèÛÜÔèÓéÓèËéÃéÃKÌhã⩀ɡÁ É¡É Ñ¡É É¡É Ñ¡É Ñ¡É€Ñ¡É€Ñ¡É Ñ¡É Ñ¡É Ñ¡É Ñ¡É Ñ¡É€Ñ É€Ñ€É€Ñ¡É€Ñ¡É€Ñ¡Ñ€Ñ€É`É€Á`ɀɀѠɀрɀÉâÑ€Á`É�Á`É€Á`É�Á`É�Á`Á€¹`Á�¹¢ÉÃÁ¢Á¹¢Á�¹`Á€Á€Á�Á€Á�Á`É�Á€É�Á€É�Á€É�É€É�É€É�É€É�É`É�É`É�É`É�Á€É�É€É�É`É�É€É�ɀɡÉ�ɡɀɡɀÉ�É`É�Á€É�Á€É�Á`É€Á`Á¢ÁÂÉÃÁ¢ÉÃÁÂÁ�¹`Á`¹`Á`±ʬԌÔKÔkÜ‹ÜJÜJÔjÜjÜIÜJÜjäjÜJäŠä)äIÜIäIäIäjäiìjäiìŠäŠìŠäŠìÌìËôìôËôìì õ-õ õìô ý õ ý-õ ý-õ,ý-õ ý õËô õ ý-õ-ý-õ-ý-õ-ýMõ-ý-õ ý-õìô-õ-ý-õ-ý-õ-ý-õ ý õìüËôËôËôªô«ôŠôŠìŠôjìiôIìIôiì(ìIì(ìIì(ì)ääèÛçãÜÇÛèÛÇÛÈÓÇÛèÓ§ÓéËèÓéËÈËêÃéà ܥ²`¹�É¡Á�ɡɀɡɀɡɀɡɀÉ�ɀɡÉ�ѡɡѡɡѡÉ�ѡɀɡɀɀɀɀɀɡɀÉ�É€É�É�Ñ�É`É`Á`É€Á`É�ɀɡɀÉ�Á€É€É Á€É€Á`É€Á`É€Á€É€Á`Á€Á`Á¡ÁÂÁ¹¡Á�¹`Á€¹`Á€Á€É Á`É€Á€É É€É¡É€É¡É€É É€É¡É€É¡É€Ñ€É`ɀɀрɀɡɀѡɀрɀɡɀѡɀѠɀѠɀɡɀɀɀɠɀɠÁ€É€Á€Á Á¡ÁâÉÂÉÂÁÂÉÂÁ`Á€¹€Á`¹"ª +äŒÜkÔJÔ‹ÔjÜkÜjäjÜIäjÜiäjÜIäIÜHìIäHäiäHì‰äiìŠìiìŠìiìŠìŠôËìËô õ õ,õëô õëüìôëüëôëü,õ ý,õ ý,ý ý õëü õ,ýMõ-ýMýMýnýMýMýMýMõ ý-õ,ý-õ-ý-õ,ýmý,ý-õ ý-õìüìôËüËôËüËôªüÊôŠôÊôŠôŠôiôiìiôHì(ìIìì(äìäçãçÛÆÛÇÛ¦ÛçÛçÛçÛÇÓÇ˧˧ËÈËÈÃÈÃéà +̨»`Á¡Á É¡Á É É€É¡É Ñ¡É€Ñ¡É€Ñ¡É€Ñ¡É Ñ¡É ÑÁѠѡɠѡɀѠɀɀɀɠɀѠɀрɀѡɀрɀɀɀɡɀɠɀѠɀрɀÁ€Á�Á`É€Á`Á€Á`Á€¹`Á€Á`Á�¹`Áù¢Á¢¹`¹€¹`¹a¹`Áa¹`Á�Á€Á€Á`É�Á€É�Á€É¡Á€É�Á`É�Á`É�É`É�É€É�É€É�Á€É€Á`É�Á`É�ɀɡɀÉ�É€É�ɀɡÁ€É�Á`É�É`É�Á€É¡Á€É�Á€Á�¹¡ÉãÁÂÁÂÁ�¹€¹`¹€¹`¹êÃlÜkÔKÔkÔJÜkÔjÜJÜ*ÜJÜIäJÜIäIÜIäjäIäjäŠìŠäjìjäiìjäiìŠìŠô«ìªôììëôìôìôìôìüìôìüìôËô õìü-õ-ý-õ,ý-õ,ý õìôìôìü-õ-ýNõMýMõ-ýNý-ý-õ-ý.õ-ý.õ ýNý-ý-õ-ý-ýìüìôËüëôËôëôËô«ôªôËôªô«ôŠôŠìiôIì(ìäìäçãèãçãäÇãçÛçãèÛäIää ÜèÛèÓèÓ ÌÈË +Ä +Ì Ä +ÄÊ�Á¡Á€É¡Á€É¡Á É¡É�ɡɀÉ�Á`É�ÁaɡɡѡɡѡɡѡɀɡɀɀÁ`É�Á€É¡É€É�É`Ñ�É€Ñ�É€Ñ�É`É�É€É�É`É�Á`É�Á`É€Á€Á€É€Á`Á`Á`Á€Á€É€Á€Á€Á`Á`¹¡¹Â¹€Á€¹`Á€¹`Á€Á`Á€Á€É€Á€É€Á€É É€É€Á€É É€É€É€É€É`ɀɀɀɀɀɀɀÁ`É€É`ɀɀɡɀѡɀɀɀɡɀѡɀɀɀɀɀɡɀɠÁ€É Á€Á¡ÁÂÉâÁ¡Á�¹`¹€±€©Ó¬ÜJÌJÔ‹ÔjÜJÔJÜjÜ)ÜIÜIäjÜIäIÜIäŠäiìiäHäiäIìiäiìŠì‰ìªì‰ôªìªôËôëôìôËüËôëü,ý ý,õëü õ ý,õ ý õ ý-õ ý õËüëôëüìô ý-õ,ý-õ,ýMý-ýMý,ýMýnýNõ,ý-õ,ý-õ,ý-õ,ý õëü õÊüËôÊüëôªüªôªôŠì‰ôŠìiôŠì‰ôŠìHôiìhôHì'ì(äçã¦Û…Ó†ËEËeÃEÃ%»å²å²Äª«³&«&³g³g³©³¥Ò± É¡Á€É¡É É¡Á€É¡É€É¡É`É�ɀɡɠɡÉ�ѡɠѡɀѡɀрɀɀɀɡɀрɀɡɀÑ�ɀѠɀɀɀɠɀɀÉ`É€Á`É€Á€Á`Á€Á`Á`¹`¹`¹`Á€Á`Á€¹`¹`¹`¹�±�¹`±`¹�¹`Á`¹`Á�Á`Á€Á`Á€Á`Á€Á€É�Á`É�Á€É�Á`É€Á`É�Á`É�É`É�Á`É�Á€É�Á€É�Á`É�Á€É�ɀɡɀÉ�Á�É¡Á€É�Á€É�Á`É¡Á€É�Á€Á�Á`Á�¹`Á¢¹ÂÁ�¹`¹�¹ ±¥ªkìKÌ*ÌkÔkÔKÔ*Ô*Ô)Ü*Ô)ÜIÜIäJÜIäIÜIäIä(äIäIäIäIìŠäiìjìiìŠìŠôËììôÌôËôìôËôìôìü õìüÌôËô õËô õìü õìüìôËô õ ý-õ õNõ-ýMõ-ý-ý ý-õMýMõ-ýNý-ý-õ-ýNõMý-õ-ý-õìüìôËôËôËôËôËü õëüìôËôËôËü«ôŠôjìäÇÓEË»£²ƒ¢Bš#Šá‰ÂyÁ�‚≂â�ãyã�z‚$z$‚EzeЧ‚ÇŠº¡±¡Á€É¡Á€É¡Á€É¡Á€É¡Á€É�Á€Á�Á`É�Á�É¡É�ɡɀɡÁ€É�Á`É€Á€É�Á€É�Á`É�É`É�É€É�É`É�É`É�É`É�Á`É`Á`É`Á`É€Á Á€Á€¹€Á€¹`Á`¹`Á€¹`Á€¹`¹`¹€¹¡¹`Á¡¹€Á€¹`Á`¹`Á€Á`Á€Á€É€Á€É¡Á€É�Á`É�Á€É�Á€É€É€Ñ É€É€É€É€É€É¡É€É É€É€É€É€Á€É¡É É¡É€É€Á€É€Á`É�ɀɠɀɠÁ€É€Á€Á€¹`Á€¹€Á¡Á`¹€¹`¹Á¹*Ì‹ÔJÔkÔ)ÔJÔJÜjÔ)ÜJÜ)Ü)Ô(ÜIÜIäIÜHäIä(äHäHìiäiìiäIì‰ìiì‰ì‰ôªìªôËôëô õËüËôËô õ,ý-õëô,õ,ý,õ ý,õëü õëüìô ý,õ ý-õ,ý,õ,ýMýMýMý-ýmýMý-õ-ýMýMýnýMýMõ,ý-õ,ýMý,ýmýmýmý,ý õÊüŠìçã¦ÓEË%»£²c¢"šŠÁ‰Á�Á�ÁyÁyÁy¡yÂyÁ�âyŠ#‚â‰âyÂ�‚Š$‚#‚zD‚ÆŠDª#¢€Á¡Á€É Á€É Á€É Á€É�Á€É�Á€É€Á`É�Á€É¡Á É¡É É¡É€É¡Á€É€Á€É Á€É Á€É É€É€É€É€É`É€É`É€É`É€É`É€Á`É€Á`É€Á`¹@¹`±@¹`±@¹`±@¹`±@¹a±@¹@±±b±‚¹A±@¹`±`¹`±`¹€¹`Á€¹`Á€Á`Á�Á€É�Á`Á�Á`Á�Á`É�Á`É�É`É�Á`É�Á`É�Á€É�Á€É�Á`É�Á`É�Á€É¡É�É�Á`É�Á€É¡Á€É¡Á`É�Á€Á�Á`Á�¹`¹€¹`Á�¹`¹`±`¹¡¡hÛŒÌJÌKÌKÔ*Ì*Ô*Ô)Ô)Ô ÜIÔ)Ü)Ü)ä)Ü(äIä(äIäIìIä(äIäIäjäiìŠìiìŠìŠô«ìËôÌììôìô«ô õ ý-õ õ õìô õ ý õ ý õìôìôëü õ,ý-õ õ.õ-ýNõMýMõ-ýNõNýMõ-ýNõMýNõNý¯ý¯ýÐý¯ý�ý-ýÌôJìèÛfÓ%»£²c¢šâ�Á�Ây¡�Ây¡yÂyÁ�âyá�âyâ�âyÁ�ÂyÁ�âyâ�‚â�ây¡yÂqây$z$‚‚Š¢ª¡¹`Á�¹€Á�¹€Á�¹€Á¡Á�Á�Á`Á€Á€Á�Á`Áa¹`Á�Á€É¡Á€É¡Á€Á¡Á�É�Á`Á€Á`Á�Á€É�Á`É�Á€É�Á`É€Á`É�Á`É€Á`É€Á`É€Á`É�Á`É ¹Â@Ê¡ÊÁÒÓÛBÛBãcÛBãcÛcãcÛCÛDÛÃÚAÂÁÁ€± ¹ ±@¹`¹`Á€¹`Á€Á`É�Á€É�Á`Á€Á`É€Á`É�É€É�ɀɀÁ€É€Á`É€Á€É€Á€É€Á`É€Á€É É€É¡Á€É�Á€É Á€É É€É€Á€Á€Á€Á€Á€Á€¹`Á€¹€¹¡¹`¹ ±³ŒÜJÔJÌJÔkÔ)Ô ÌÔ)Ô)ÜIÜHÜIÜ(ä(Ü(ä(Ü(ä(ÜHìIä(ìHä(äiäiì‰ìiìŠì‰ôªìªôËìªôëôëüìô ý õëü õ ý õëü,ý ý-õ ýËìëü,õ,ý,õËôìô ý,õëü ý,ýMý-ýŽýný¯ýïýðý®ýMõËôjäçÛfÃ亣ªBš’á‰á‰á‰â�á�âyá�â�ቂቂá‰â�á‰â�Á�á�Á�Áy yÁyÁ�â�â�z‚âyÂ�‚â©$ªÂÁ¡±`Á€Á€Á€¹`Á€¹€Á¡Á€Á¡Á€Á¡Á€Á€¹€Á Á`Á€¹`Á�Á€Á€Á€É�Á€É¡Á€É¡Á€É€Á€É€Á€É�Á€É€Á`É€Á€É€Á`É€É`ɀɀɀÁ€É€Á`É€Á€É€Á#Û#ããÃâ¤Úƒâ…âdâ…â…â¦â¥âÆâæêFãFë¦ëÆó&ìåë…ÛÓ#Ê`¹±¹`¹`Á�Á`Á€Á`Á€Á`Á€Á`Á€Á€Á�Á�É�Á`É€Á`É€Á`Áa¹`Á€¹`Á€Á`Á€Á`Á�Á€É�Á`Á�Á€Á�Á`É¡Á€É�¹`Á�¹`Á�¹`¹a¹`¹‚±¢Á�©âÁkÌkÔKÌ*ÌJÌ Ô*Ì ÔéËéÓ ÔèÛ)ÜÜ)Ü)ä(ÜçÛIää(ÜäÜä(ä(ìjäiìŠì‰ìŠìŠì«ìŠôËìËôìììü õìô-õ õ õìüìôËôìôìô õËô õìôìô«ô«ìËô-õ-ýnýný¯ýŽýnýìô«äIܨË%»Ä¢BšŠÁ‰Ây¡�ÂyÂyâyâ�âyâ�â�â‰â�Á�â�â‰#Šâ‰â�â�âyÁ�ÂyÁyÂy¡�Ây¡y¡q¡yâ�Šã‘â‘¡¡¡�©`±¢¹¢ÉãÁ¢¹a±`¹�¹`¹�¹`Á�¹`Á�¹€Á�¹�Á�¹`Á`¹`Á�¹`Á�¹€Á�¹`Á�¹`Á�¹€Á�Á€Á�Á`Á�Á`Á�Á`Á€Á`Á`Á`É€Á`É€Á`É€Á`É€Á`É€Á`É€Á`É€Á`Éâ%ÚäáÚäáÚâ%ÚâFâ&âFâFâGâ&êGâFêGâ†âÇêeëèófôfì…ãÂÊ¡É@±@Á�Á€É€Á`Á€Á`Á€Á`Á€Á€É É€É€Á€É€Á`Á€Á`Á€Á`Á`Á€É€Á`Á€Á`É�Á€É�Á€É Á€É Á€É€Á€Á€¹`Á€¹`Á€¹`¹€±¡¹¢¹â©©ÛkÔkÌJÔJÌ Ô*ÌÔ)ÌèÓ ÔçÓèÓÜ(ÜHäIÜä(äHìHäçãäçãä(ìIäIìiìIìiì‰ôªì‰ôŠìŠô«ìëüìôëü õëüëôëü õëüìôÊôËôËô,õMýnýŽý¯ýŽýný õ«äIäÇËEÃĪc¢"’á‰Áy¡yÂyÁyâyâ�zŠ"‚Š‚á�âyÁ�âyÁ�âyÁ�Âyá�‚â‰âyÁ�âyá�âyÁ�â�á�ây≂‘⑀±¡±@¹@± ±@±@¹`¹¢Á¹ÂÁù`¹`±@¹`¹`¹�¹€Á�¹€Á€¹€Á¡¹€Á€¹`Á€¹`Á€¹€Á¡¹€Á�¹`Á�¹€Á ¹€É�Á€É�Á€É Á€É€Á`Á€Á`Á€Á€É É€É€Á€É€Á€É€Á`Á€Á€É É`É€ÁÚÚÚÚÚâ%Úâ%Ú%âFÚEâfÚFâgâfâ‡âFâgâGâGââfÚ§êÇã(üˆìÅã„Ò ¹ ± ¹�¹`Á`¹`Á€Á€Á�Á€É�Á`Á€Á`Áa¹@Á`¹`Áa¹`Áa¹`Á`¹`Á`¹`Á�Á`Á�Á€Á�Á€Á�Á`Á�¹`Áa±`¹`±`¹�±�¹¢±a±G³käKÌ +ÌkÔ*Ô ÌéÓ ÌèÓéËèÓèÓèÓèÓèÛ)ÜÜèÛäIääÜ(äIääIä(ìIäIìiäŠôŠìŠôŠìjôŠìŠôËìËôìô«ôËìªôÌôëü-õ-ý-õ-ýNõNý-õ«ì*ԇ˫BšŠ¡�¡q¡y¢q¡qÂqâyâyâyzâ�‚‚zâ�ãyÂ�âyÁyÂqÁyâyÁyÂy¡yÂy¡yÂyÁ�Ây¡yÂyÁ�âyâ�‚â�‰¢‰�¡€¡`±`±�±¡¹²#„ºÄÊ&ÃFÓgËFÓgËFË'Ã&ËĺâÁ`±a¹`Á�¹`¹a±`¹`±`¹`±`¹`±`¹a±`¹�¹`¹a±`¹�¹€Á�¹`Á�Á€Á�Á`Á¡Á€Áa¹`Á€Á€Á�Á€É¡Á`Á€Á`É�Á`Á`¹@Á`¹@Á`¹`ÁäÙÚãÙÚâ%Úâ%Úâ%Ú%âFâ%âFâFêfâFêfâfê‡âfê‡âfêfâ&âGâÅâhóˆô©ôfë!º¹ ¹`Á¡Á€É Á€É€Á€É€Á`Á€Á`Á`¹`Á`Á€É€Á`Á`Á`Á€Á`Á€Á`Á�Á€É�Á€Á¡Á`Á€¹`Á€¹`¹`¹`¹€±�¹¢¹�±#ºKÔkÌ*ÔJÌJÔJÔèÓéËèÓèÓèÓÔçÓèÓçÛÜäèÓçã(ää(ä(ìIä'ì(ä(ì(ä(ìHäIì‰ìiôiìiìiì‰ôŠìiìŠìªôìô,ýMýLýmý ý«ìèÛfÃIJbšá‰¡y`q`i`i�i¡qÂqÁyâyá�âyâ�âyá�âyâ�âyâ�âyâyâqáyâqÁyâqÁyâqÁ�âyÁ�Áy¡yÁy¡yÂy¡�âyâ�ây≂¡¡Â™ ±²bÂÄÊEÓ¦Ó¦ÛçÛçã(ÜäHÜäçÓÇÛÇÓ§Ó§ËÇËèËéË*ÌéÓg»ÁÁ€±`Á�¹€¹¡¹�Á¡Á¡Á¡Á�Á¡Á�Á�¹`¹`±`¹€±`¹€¹`Á¡¹€Á¡Á€É�Á€É�Á`Á€Á€É Á€É É€É Á€É€Á@Á@¹`¹ÁÁ@ÊÂÒ!ÛcãäÑÃÙäÑãÙÚäÙÚäÙÚäáÚ%âFâ%âFâ%âFâ&âGâFâgâFêfâfê‡â‡êgâ&âfÚÇêHìêüIì£Â ±¹€¹€Á�Á`Á€¹`Á€¹`Á`¹`¹`¹`Á�Á`Á�¹`Á€¹`¹�¹`Áa¹`Á¡Á€Á�¹`Á�¹`¹a¹`¹a±`¹`±`¹¢±�¹â¡‰Û‹ÌJÌ*Ì*Ì*Ì ÌéËèËéËÈÓ ÔèÓèËÇÓèÓçÛèÓÇÛèÛçãÜä)ä(ä)ää)ää)äIìjìIìIäIìIäiìËìËô-õ-ý-ýìü‹äèÛg»ƒªâ�€y`i@iAY aaYai¢i¡qÂq¡qÂq¡qÂq¡qÂqÂyÂqÂyÂqÂyâqÂyâqÂqâqÂyâqÂyâqÁqÂqÂyâyÂyÂq¡yÂyÂ�âyÂyâqÂyâ�â‘#ª¤ÂEˆãÜ(äIäIì(äÇÛÇÛ†Û§Ó†ÛÇÓ¦ÛÇÓ§Ó§Ëfˇˆ˨çËÈèËéà ̉Ód²ÊÒÒÚ$Ò$Ú%Ú$Ú%Ú$âEÚ$â$ÒÚãÉÂÉÂÁ�Á�¹`¹€¹`Á�¹`Á�Á`Á�Á€Á¡Á€Á Á€É¡Á`Á@¹@Á ¢ڃۃãEãã…âdâÂÙãÑÃÙãÙãÙÚäáäÙäáÚâ%Ú%âFâ%âEâEêFâ%âFâ%âFâEêfâfê‡âfê‡â‡ê‡â&âgâçãìüÊüEÃ`Á@¹€Á ¹`Á€Á`Á`Á`Á€¹`Á€¹`Á€Á€Á€¹`Á€¹`Á€¹`Á€Á€Á¡Á€Á�¹`Á€¹`Á€¹`¹€¹`¹�±�¹`±&»ŒÜJÔJÌ Ô*Ì Ô)ÌèÓ ÌçÓèÓçÛèÓÇÛèÓÇÛÇÓÆÛÇÓçãÜçãçÛäIä(ì(ä(ì(äIìIää(ä(ìŠìËôìôËôjäèÛFê’€y`i a YY@Y@i�i€i�a€i¡i�i¡i¡q¡i¡q¡i�q¢i¡qÂi¡qÂq¡qÂqÁqÂqÁqÂqÁqâqÁqâqÁyâqÁyâyÁ�âyÂyâyâ�zá‰#ŠcªF»§ÛJäªôËô‰ô‰ì(ìäçãçãÆã¦Û†Û†Ó¦ÛÇÛçÛçÛçÛÇӆӧ˧ÓÇËÇÓèËÈËÈçÃéà +܈ÃÚ$ÒÚ$ÚÚ$Úâ$Ú$âDâ$âDâDâEÚ$âEÚDâEÚ$ÚÒâÑÂÁ€Á€¹`Á¡Á€É¡Á€Á Á€Á€¹`ÁáÉÛ¤ãÅó¥ãÆê…Ú%â%ââ%âÃÑÃÙÃÑÃÙäÑäÙäÙÄÙäÙäÙäÙäÙÚâ&Ú%â&â%â%Úâ&Ú%âFâEâFâFêgâfê‡â‡êˆâgâ&Ú&âÈÛìüìüà ± ¹�¹`Á`¹`¹`¹`¹€¹`¹€¹`Á�¹`¹�¹`¹�¹`¹€¹`Á�¹`Á�¹`¹�¹`¹a±`¹a±`¹�±�¹�©â¹KÌKÔJÌ Ì +ÌéÓéËèË ÌèÓÈËÇÓÈËÇÓèÓÇÛÇÓ†ÓÇÓ¦ÓÇÓÇÛÜçÛÜ(äèÛçã)ääIä(äjìIìIää§Ë£²C’ �aiaQY@Y@a@a@aaa@aaa@aaa`iaaai�aai�a�i‚a�i‚aai‚aai¢i�i¢i¢i¢i�i¢a¢iÂiÁqâqÂqÂqÂyãyâyÂq¡yÁyФ¢F»èÓjì õ ýëôªôŠìIìçãçãäçãäçãçÛÇã§Ó¦ÛÇÓÇÛèÓÇÛçÓÇۧˆӧ˧ӨçËéÃÈËÉ»ÉÃ+ÌÉÃÒÒ$ÒÚ$ÒÚ%Ú$âEÚ$âEâ$âEÚ$âEÚ$Ú%Ò$ÚEÚ$âEÚ$âÒÂÑÂÁ�Á ¹ Á�¹@¹À¹bÒ¤ÛåëgëåâGâ&âFâFâEâ%â%Úâ¢ÙÃÑÃÙÃÙÃÙãÑÃÙãÙÃÙãÙãáäÙâ%â%â%â%â%ââ%âê%â%êFâEêFâEêfâfê‡âfê‡âgê‡â%â&â†ãÌüªüã ¹`¹€Á€¹`Á€¹`Á€¹`¹€¹€Á€¹`¹€¹`Á€¹`Á€¹`Á€¹`Á€¹`Á€¹`¹`¹`¹€¹�¹¡± ¡hÓjÔJÌ Ô Ì Ô ÌÇËÇÃçÓè˧ÓÇ˦ÓèÓçÛÇÓ¦ÓÇÓ¦Ó¦Ó¦ÛÇÓ¦ÛçÛçãÜÇãäHìŠì‰ôIä§Óä²"š y aYY@Y@a`Y@a`a@i`a@a`a@a@a@a@Y@a`a@aaa`iaaai�aai�a`i�aaa¡a�i¢a¡i¢i¡i¢a¡qÂqÁqâqáyâqâyâq¡yÂy"’«ÇÓËì+ýLý+ýëôªôŠìHìiìHôiì'ì'äì'äçãçãÆãÇÛ¦ÛçÛçãçÛçÛçÓ§ÛÇÓ¦Ó§Ó¦ÓÇ˧ËÈ˨ËéÃèÃéà +Ì +ÄDÚ$ÒÚ$ÒâDÚ$âDâDâEâDâEâDâEâDâDÚ$âDÚ#âDÚ$â$Úâ$Ú$â$ÚÂÑ�Áà¹Ûôìó¥âFêGâEêfâEêEâ$âEâ$â%ڣтѣѣÙÃÑ£ÙÃÑÃÙÃÑÃÙäÙÄÙÚâ%Úâ%Úâ%ÚâÚâ%ââ&â%âFâFâfâFâgâFêgâFâgâFâ&ÚâÇÛ ýJô!²©@¹�¹`¹`±`¹€¹`¹€¹`¹`±`¹a±`¹a±`¹`±`¹a±`¹a±`¹`±`¹�±`¹¢±`±æª+ÜKÌ +ÌéËéË ÌèËÈ˧ËÈËÈÓÈˇˇ˧ӧ˧ÓÇÓ¦Ó¦Ó†Ó§Ó¦ÛçÛÇÛÇÛçãIä(ìèÛeËÅ¢À‰aaa YY Y a@Y@aAY a@a@aAY a@Y@aAY aAY YAY YaY@aAY@aaYAaaaaabYaaaYaa‚a�i¢i¡i¢i¢qÂqÂyÂi¢q¢i¢qâ�„šf»)Üìô,ý-ý ýËìŠìªìŠôŠìiôŠìiìIäIìIìçãäçãçÛÇãçÛÆãÇÛÇãçÛ¦ÛÇÓÇۧӦӧ˧ÓÈ˧Өç˨èÃéÃÉà +ÄéæÒ$ÊÒÚ$Ú$âEÚ$â%Ú$âEÚ$âEÚ$âEÚ$âEâ$âEÚ$â$Úâ$Ò$Ú$ÚãÙ¤Ògógì&ìÈêEâGâFê‡âfâFâ%âEââ%ââÚäá�ѢтѢѢ٣ѢÙÃÑ¢ÙÃÙÃÙãÙãáÚâ%ÚâââÚäáââ%âêFâEêFâEêFâFêfâFêgâFêFâFêfââ%â(ä,ý‡ëÀ© ±€¹`Á€¹`Á€¹`Á€¹`¹`¹`¹€¹`¹€¹`¹`±`¹€¹`¹`¹`¹€±`¹¡±€±â¹*ÌKÌJÔ +ÌÈËéËÈËÈ˧ËÈ˧ËÇ˧ӧˆÓÇÓ¦ÛÇÓ¦Û¦Ó¦Û¦Ó¦ÛÇÛÇãÜ(ìä%Ãb¢¡y@iYQ a@Y a@a a@Y@a@a@a@Y@a@a a@Y aaY@a@Y Y@Y Y@Y Y@Y@YaY@aaY@aaY@aaYaa¡a�i¢i¡qÂiÁqâqÁq¡i€qây£ªèËËônýmýMýËüËôªôËôªôËôÊôËôŠôŠì‰ôŠìiôiìHô(äçëäçãçãÆãçÛÆãçÛÆÛ¦Ó¦ÛÇӆӦӆӧ˧ӧˆ˧çÃÈÃÈÃéà Äê»ÛdÂÚ$Òâ$Ú$âEâ$â$Ú$âDÚ$âDâ$âDÚ$âDÚ$âDÚ$âDâ$âÒƒÒ‡ó¨ügì§òFÚEêFâEêfâEêfâEêFâ$â%ââ%âäáÚ‚ÉbтɂѢтѣѢѣѣÙÃÑ£ÙäÙãÙäÙäáäÙäáäÙäáåÙäáÚâââ&ââ&â%âFâFâFâFâFâFâFâ&âFâ%âäÑEâ‰ìÊü…Ê ©`±a¹a±`¹a±`¹`±`¹`±`¹`±`¹`±`±`±`¹`±`±`±`±�±`¹¡™GÓKÌ +Ì*ÌÈÃéÃÈ˨Ç˨ç˧ˇËÈËÇӧˆ˧ӆӧӦۧӆӧӦÛÜä« ‰ YYQ Y@Y a@Y a YY Y YAY Y Q Y@Y Y Y Y@Q Y!Q Y QY!QYAQ Q!Q YAY YAQAYaQaY‚a�a¢a¡iÂi¡i�aaiÁy„š§ÃÌì¯ý¯ýnýìô«ìªôËôªôËôËô«ìËô«ìŠôŠôIìiìIìIìIìiì'ìäçãäÆãÇÛÆãÇÛ¦ÛÇÛ§ÛÇӦӧӆӧˇÓLjˇÇËÈÃÈËéÃÈÃ껩»IÓeºÒäÑÚÚ$ÚÚ$ÚÚ$ÚÚ$Ú$âEÚ$âDÚÚ$Ò$ÚEÚäÙCÊGó©ôGìÈêFâgâgêfâEâFâ%âFâ%âFâ%âEââÚäáÚäáaÑ‚ÉaÑ‚Ñ�ѢѡѢѢ٢ѢÙÃÙÃÙãÙÃáãÙãáäÙäáÚâÚäáââââ%â%âEâEêEâEâFâFêfâEâFâ%â%â%âÚãÑÇêÉü'Ü¡Á@©`¹€±`¹€±`¹€±`¹`¹`¹€±`¹`±`¹€±`¹`±`±€±€¹`©å²KÜ Ì*ÌÈËÈçËÈÆˇç˧ÆˇæÓÇÓ†Ó†Ëeӆ˅ӦӦۦӦÛçÛFÃÀ‰YQY@Y a Y a@Y a YY Q Y Q Y Q Y@Y Y@Y Y@Y Y@Y Y Q Y@Q Y Q YAQ YAQ@Y@Q@YaQ`a�a¡i¢a�iaY@a¢iƒš Ì õŽý¯ý¯ý,ý-õëüëôËüËôËüËôÊüËôŠôªôªôŠìiôiìHôHì(ì(ìì'äìçãæãçãÆãÇÛÆãÆÛ¦Û¦Ó…Ó¦Ó…Ó¦Ó¦ÓÇӦӧˆ˧ËÇËÈÃÈÃÈÃéÃé»hÓ¦²ãÑÒãÙ$ÚÚ$Úâ$Ú#âDÚâ$Ú$âDÚ$âDÚ$âÚ"Ò'ëÉü©ìÇòfÚFê‡êfê‡âEêFâ%â%â%âFâ$âEâ$âEââÚãáäÙbÉaÉbÉaÑbÉaÑ‚Ébттут٣ѣÙÄÙ£ÙÄÙÃÙäÙäáÚäáäÙÃáäÙäáÚåá&Úâ%Úâ&Ú%âFÚ&âFÚ%â&Úâ%Úâ%ÚÄÙDʉûŠôà © ±�±`±`±`±`±`±`±`±a±`±`±`±a©`±`©`±a©âÁKÌ Ì +ÄÈÃéÇÇ»§Ã‡ÃfÇÃfˇÃfLj˧ËfˆËeËfËeÓ†Ó†ÓÜú!YÀX Y Y Y Y QY QY QY QY QYQQ Q YQQ QY QY!QQ!Q Q!Q Q!QQ!I QAQ@YaQAY�YaabY QaadŠÈÃìì°ý°ýNõ õ-õ-õNõ-ý-õ ý õìôÌô«ô«ìŠô«ôŠôŠìiìŠìIìIììäçëçãÆãçãÇãçÛÆãÇÛ¦Û§Ó¦Û¦Ó†Û†ÓfÓ†Ëfӧ˦ӧˆˇÇ˨ÇÃÈ»¨Ãê»ÉÃ©ËÆ²äÉãÑÒãÙÒäÙÚÚ$ÚÚ$ÚÚ$Ú$âEÚ$ÚÒ…âÉì +ýIó†Úgâfê‡âfâFâ%âFâ%â%Úâ%Úâ%Úâ%ÚâÚäáäÙÃáaÑ�ÉaÑ�ÉaÑ�ÑaÑ‚ÑaÑ‚Ñ�٢ѢÙÃÙ¢ÙÃÙ£ÙÃÙÃáäÙãáäÙÃáãÙãáäÙäáâäá%ââ%ââ%â%âEâ%âEââ%Úâ%Ú$â%ÚâÄÑ£Ò ü¦ëª ±€±`¹€±`¹€±`¹`±`¹€±`±`±@±`©`±`©¡¡ˆÛ)Ô ÄÈËÈçˇÃfÇÃfÆÃfËfÃfˆÃeËfˆӆËeÓeËeÓ†ÓeÓÇÛåª iY@Y a YY QY QYQQQY QYQQ QY QQQYQY QQ QQ QQ II!I QAQ@YaYaYaQQ@Qá�g«ªä®ýŽýMõìüìôËô õMýnýLý õëü õëô õÊüÊô‰ôŠìªôªôiôiìHôiìHô(ììäÆãÆÛæãçã¦ãÆÛÆãæÛ¦Û¦Ó…ۆӅۦӆӆˆӦˆӧ˦˧ÇççèÃÈÃéé˳ÂÑãÑãÙÒãÙÒÚ$Ú#â$Ú#ÚDÚ$âDÚãÙDÚGì+ý©ûÆÚfê§ê†ê†âfêfâEêFâ%âEâ$â%â$â%ââ$Úâ%ÚãáäÙÃáäÙbÉaÉbÉaÑaÉaÑaÉaÑaÉaтɂтт٣Ѣ٣ѣÙÄÙ£ÙÄÙ£ÙÄÙ£ÙäÙÃáäÙäáÚäáÚâÚâÚâ%Ú%â&Úâ&Úâ%ÚâÚäÙäÑÄÑEÓ§ë„Ê`©`©`±a±`±`±@±a±`±`©@±@©@©a© ©&³*ÔéÃÉËÈçèÇÃg»fÃgÃ%»F»fËfÃFÃfÃEËfËeËfËeÓ†ÓeÓ¦ËãÂ!YYAYY QYQQQàPIàPIQQQIQIQ IQIQIQIQ IQIQIàHI QAQAYAIàHàH‚aÅš*Ô,õMý,õËô«ì«ôìô ý õìô-õ-ýËôËü õËôÌôËô«ìŠôjìiôËôŠôjìIìIì(ì)ììäçãçÛçãçÛÆãÇÛ¦Û¦Û¦Û¦ÓeÓ†Ó†Û§Ó†Û†ËEËfËeˇÆˇÇˇÃfÃg»g»¨»ÉéóÃÉÃÑãÑÃÑãÑãÙÒÚ$Ò$ÚDÚ$ÚÚÃÙ¦Ó ýküÛGâgê‡âfêgâFêFâFêFâEâ%Ú%â%Ú%â%ÚÚÚäÙäÙäÙäÙÃÙäÙ£Ù`Ñ�É`Ñ�É`ÑaÉ`Ñ�É`ÑaÉaÑ‚ÑaтѢ٢ѢÙÃ٢٣ѢÙÃÙ¢ÙÃÙÃáÃÙÃáäÙäáâäáââÚâ%Úâ%â%â%Ú$â%ÚâÚâÚäÙÒÃÑ$Ò¥ãdÓ ¹`©`¹`±`±`±`±`±`±`©`±`©@¡DºJÔ ÄÈËÈç˧ÇÇ»fÆÃEÃE»EÃfÃEËFÃEËeËeËeËeÓ†ËeÓ¦Ó‡Ë`yÀP@Y Y QYQQQQIàPIàPIQIQIQ IQIàPIàPIQIQ IQII I Q@QIà@YezÇË-íMý,õªôªìªôËôËôìô ý õËüËôËô õËüËôËüËôÊüÊôŠôªôiôŠìIôIìHìiìHôHììçãì(äæãäæãçÛæã¦Û¦ãÆÛ…Û¦Ó…Û†Ó…Û†ÓeÓ†ËeÓeËeËfËf˧ˆˇÇÇ»‡»¨»ˆÃ'³¢ÑãÉÂÑãÑâÙãÑãÙÚÚDÚ$âÒ£ÊjüLýÇÛ&êgê†ê‡âfê†âEêfâEêEâ%âEâ$âEâ$â%â$âÚãáÚãÙÚãáãÙÃáÃÙaÁ`ÉaÉaÑaÉaÑ�É`ÉaÉ`ÉaÉaтɂѢтѣѢѣтѣѢ٣Ѣ٣ѣÙÄÙÃÙäÙäáåÙäáÚäÙÚäáÚâ%Úâ%ÚÚÚÚ%ÚäÙÒäÙäÑÃÑãÁÅâ¦ã�Â@©@±`©`±`©@±@©@©a© ©#šêÛ +ÄÉËÉèèÇÃg»FÃf»FÃ&»%ÃFÃ%ÃFÃ%ÃeÃeËfË%ËeËeÓfËÇãÆ’ XQYQàPIàPIàPIàHàHàHàHàHà@ÀHàHàHàHàHà@àHà@àHà@àHAIIIII!IàHÀ8À@¡i'£‹ä-ý-õËôŠìiì«ìªôËìËôÌôËôìôËôËô«ôÌô«ôËì«ôÌô«ôŠìiôŠìŠôjìiô)ä(ìIì(ì(äìäçãèãìäçãçÛÇãÇÛ¦Û¦ÓeÓ†ÓeÓfÓeÓ†ÓeÓEËEËeÃEËfÃEËF»FÇÃfÇ»g»h³g³‰»G³£É¢ÉÃÉÃÑãÑÃÑãÑãÙ$ÒÚ#ÊGómýªìgâFâ‡âfêfâfêgâFêFâ%âEâ%â&Ú%â&ââ%ÚâÚäÙÚãÙäÑÃÙãÙÃÙÃÑ£Ù`É`Á@ÉaÉAÑAÉ@ÉAÉ ÉAÉ@ÑaÉaтѡѢѢ٢Ñ�ѢѢ٢т٢т٣٣ÙÃÙÃáäÙãáÚâÚäáÚâÚâ$Úâ$ÚÚ%ÚÚÒãÙÒãÑäÑãÑÃÉbÊfãäÚÀ©@±€±`±`©@©`©@©�©ÈË +̨ËÉÇèÃfÇ»eÃf»%ÃfÃ%ÃfÃEËEÃ$ÃEÃEÓeË$ËEËDÓ†Ó…Û¦Ó�iàPYQàPàHàHIàHàHàPIàHIÀHà@ÀHà@àHAàHà@à@à@àHAàHAàHIIIIà@ @!IC’ +ÄÊü,ýªüiìiôŠì‰ôŠìªôËôªôËôªôËôËôËôËôËôªôªìªôëôªôªôŠôªôiôiìiôiìHôHìì(ä(ì(ì(ì(äçãäçëçãæãçãæãÆÛ…Û…ÓeÓeÓeÓeÓDÓeÓDÓEË$ËeË%ÃEÃEÃFÃFÃf»F»g³g»‡³ˆ»g³¢ÉÃÉÂÑãÉÂÙãÑãÙ$ÒâÑDÚÉôlýóEÚ†ê§êfê†âEêfâEêfâEêEâ%â%ââ%â%â%â$âÚãáäÙãáãÙãÙãÑÂÙãÑ¢ÙÃÑ`Á€ÉáÁáÉ!Ê!ÒBÊ!Ò"ÊÒâɡɂÉAÉBÉ!ÉAÉAÑ�ɡѢѢѢтѢѢ٣ѣ٣٣ÙäÙÃáäÙãÙäÙãÙÚâÚäÙÚäÙÒäÙäÑäÙäÑãÑäÑãÑäÉãÑÄÉ£É$ÓdÛº@©`©@©@©@±¡™Ó +ÄÈèÇÇ»gÃf»fÃF»%»F»%Ã%»%Ã%ÃÃ%Ã$Ë%Ã$ËEË$ËEË%˧ÓúàHàPIàPàHÀHà@ÀHà@ÀHAÀHà@À@À8À@À8À@À8À@à8À8à8À@Aà@Aà@AIá8 8À@‚a墋ä,ýÊôiì(ìiìiôiìIìŠìŠô«ìŠôŠìŠô«ìªô«ìªôËìªôªìªôËì«ôŠìŠôŠìIìIìIôIì(ìIä(ì(ä(ì(äçãäÇãçãçãäæãÜæã¦Ó†Û¦Ó†Û†ÓeÓ†ÓeÓfËEÓEËEËEË%Ë%Ã$ÃF»%Ã&³&»&«&³g³‡»©³G³ÃÁ¢É¢É¢ÉãÉãÑäÑ¢ÑeË,ý+ü…ÒFÚfêfâfêgâFâFâ%âFâ%â&ââ%ÚâÚâ%ÚâÚäáäÙÃÙãÙÃÙÃÑ¢ÙÃѢѣтÑ"ãcãbãƒãcã„ãcã¤ã¤ëÅãÄëììädë#ÛBÚáÉaÑ@Á É�É¡ÑÂѢ٢т٣٢٣٣ÙÃÙÃÙãÙãÙäÙãÙÚãÙäÙãÙäÙãÙÒãÙäÑãÑäÑãÑãÑÃÑäÑãÑäÉÂÁdÒ„ãÂÂ@±`©€±a©&» +ÌÈËÈÇÃÈÃfÃf»EÃF»%Ã%»%Ã%»%Ã%»Ã$ÃË$ÃËEË$Ë$ËEÓE˦ÓA¢ÀHIàHàHàHà@ÀHàHàHà@ÀHà@À@À8À@À8 8À8À8À8À8À8À8à8à@à8àHAÀ8À0àPDz¦ËËìªüiìì(ä'ìHìiôŠìiôŠìªôÊô‰ôŠìŠôŠì‰ôªì‰ôªìŠôªìªôËôªôŠì‰ôªôIôiìIôIì(ìHììä'ìäçãäæãäæãæÛÆãçÛÆãÆÛ…Û…ÓeÛ†ÓeÛ…Ó…ÛeËDÓDËË$ËDË%Ã$ËEÃ%ÃEÃEÃF»&»f³f»‡³h»g³¢É¢Á¢ÉÂÉÂÑÃÉ!Âèó,ýÇÛâfâ†êfâEêFâEêfâ%âEâ%âEâ$â%Úâ$Úâââ$ÚãáÚãáãÙÂÙÃÙ¢ÙÃÑ¢Ù¢Ñ�٢хÚdâFÚEâFâ%âGâFâgâfâ‡â†êã'ë§ëçóGìGô'ì¤ã¤ÚáÉAÉ É‚É‚Ñ£Ñ¢Ù£Ù‚Ù£Ñ£ÙÃÑ¢ÙÃÑÃÙäÑÃÙäÑÃÙäÑÃÙäÑÃÑäÑÃÑäÉÃÑÄÉ£ÑãÉãÑäÉÃÉäÉ£É"Âã%Óà±a¡…ÊéèÃÉÃgÃg»fÃF»%»%³%»&»»%»»%ÃûãÂäºãÂÃ$Ë%Ã$ËeË$˨ËÀ‘À@àHà@ÀHà@À@À@À@à@À@À8À@À8 8À0 8 0 8À0 8 0 8À0À8à8À@ (€0 Y¦’ܪôŠì(ìä(ìjìIìIäIìŠìIìªìŠôŠìŠôŠìiìjìIìŠìŠôjìIìŠìŠôªìiìjìiìŠìIìIäIìIì(ì(äì(äìäçã)äèãÇÛçãçÛÆãÇÛ¦ã¦Û†Û†ÓeÓfÓeÛfÓEÓEË$Ë%ËãÊÃäÂ%ÃÃ%»%Ã&»%ÃF»FÃg³F»G«F³h³'³¢Á‚Á¢Á¢É�Á$ÚÉô¨ôfââfâfâgâFâfâFâFâ%â&ââ%ÚâÚâÚäÙÚäÙÚäáäÙÃÙÃÑÃÙÃѢѣѢѢтѢÉ�Ñâ&âEâFâEâfâeâ†âfê†âfê‡âgêgâFêGâfê§êFëÈóˆôéôHüeÛÂÙ`Á@ѢѢ٢٢٣٢٣ѢÙÃÑÂÙÃÑÂÙÃÑÂÙãÑÂÙãÑÃÙãÑÃÑÃÉÃÑÃÉÃÉãÉÃÑäÉãÉäÉÃÉÃÁãÒEÓ»¨Ë‡Ã¨Ã‡Ãg»%»f»fÃF»»%»»³äº»ÃäºãÂãºãÂÃãÂÃËDËDÓÃfËÀ‘ÀHIàHà@À@à8À@À8À@À8À8À8 8À0 8À0 8À0 8À0À8à8à@À8€0 0`qH£hôÊôHì'ä'ìHìHìIì'ìIìHìIìHìiì‰ôiìiô‰ìiôHìIôiìiôŠìHìiìiô‰ì(ìiìiì‰ì(ì(äHìIìì(äçëä'ìäæãäçãçÛÆãçãÆãÇÛ¦ã¦Û…Û¦ÛeÛeÓDÓ$Ë$Ó$ËËËËÃãÊÃÃÃÃ%»%Ã%»FÃF»%³«%³G³G³G«¡É¢Á¢É�Á"ËéühûDÒ%âfâEêfâfêfâEêFâ%âEâ%â%ââ$Úâ$ÚãÙÚãáÚâÚãÙãÙÂÙÃÙÂÙÃÑ¢Ù¢Ñ�Ñ¢Ñ�тɅڅâ…Ú…â¦â¥â¦â¥êÆâÅêæâë'ãëèêÇê§âfâGâ&âFÚ§êéã«ülýÉìÆâ¡ÉAÉbÙÃѢ٣тѢѢѣѢ٣ѢÑÃÑ¢ÑÃÑ£ÑÃÉ£ÑÄɣɣɣɣɣÉÄÉÃÉÄÁÃÉäÁÃÉ㱦ÒéÃg»§»‡Ãg»&»F³F»F»%»%³»³äºÄ²ÄºÄ²£ºÃ²ÃÂäºÃÂäºäÂÃËEËÃÂgà‘À8àHà8À@À8 8À0 8À0 8À0 8 0 0 ( 0 0 0 0À8à0 8€( 0Âyˆ³iìiôäçã(ä(ì(ä'ìHäì(ä(ìIì(ìIäIôIäIìIì(ìHä(ìIäIìjìIìIäIìIì(ì)ä(ìIì(ìIä)ìjì(ìäçëçãçãäçãçãÆãèÛçãçÛ¦ÛÆÛ¦Û†Ó…Û†ÓeÓeÓDÓEËEÓ%ËËÃãÊÃäÂÃÃÂäºÄ»亳»&³»&«³&«F³g«'³¢É�ÉÁ±&ëŠü$ÓÚEâFâ%âFâFâfâFâFâ%â%Úâ%Úâ%ÚâÚäÙÚäÙÚäÙÚãÙãÙÃÙÃѢ٣ѢѢɢѢÉ�Ñ‚ÉaÑeâeâEêfâfêfâfêfâfê†â†ê‡â¦êçêëhë‡ó¨ëhóHëÇò†âê&âã ü­ýÎýÉûCÂ@тѡ٢Ñ�ѢѡÑÂѢѢѢѢѢÑÃɢѣɢɣɢɣɢÉÃÁÃÉÃÉÃÉãÁÃÉÃÁæºhÃfçÃfÃf»FÃF»%»&³%»%»äº³äºÄ²£²Ä²ÃÂúº»ãÂãºÃÂÃË$Ã$ËÃEËš @à@À@À8 8À0 8À0 8À0 0 0 0 0 0 0 0À0À8À0`(á0ŠÉ»HôHä¦ÛÆÛæã(äçë'äì'äì(ä(ì(äì(ä(ìHì'ìIì(ì(ä(ìHìHìiìHìIì(ìIì(ìHì(ìHìHìHì(ì(äçëçãçëçãÆãäçãäæãçãæãçãÆãÆÛ¦ã¦Û…Û¦ÛdÛ…ÓdÛeÓ$ÓEÓËÃãÊäÂãÊÃËäÂÃÃã»ĺ䲻%³³&³%³F«G³G«�ÁÂÉäGä%â%ÚEâEÚ%âFâEâFâEêFâ%â%ââ$Úâ%ÚâÚãáÚãáÚãÙÚãÙãÙÂÙÃѢ٢Ѣ٢ѡѢÑ�Ñ¢Ñ�Ñ�ÉFÚEâFâFâfâFêfâfâ‡âfêgâFêGâ&âFâFê‡â‡êã(ó©ë©ó‰ëëGêÅáFÒIû�õîý*üBÂ!ÁAÑ�ÉaÑ‚É�ѢтѢɂѢɂѣɂɣÁ‚É£Á¢É£Á¢ÁÃÁ£ÁÃÁ¢Á%²Çʈ³F³g³f»&³%³&³%»&³³%³ä²Äªä²Ä²£²Ä²Äºäº£ºÄ²Ãº£²ƒ²Ã²ÃºÃãÂÃÃÂf²À8À@À0 8 0 0 0 0 (€0 (€0 (€0 0 0À0€0`(á@C’ÈËHìÆã†Ó†ÛçÛçãäçãçÛì(äçãèãçëäçãäçã(ä(ì(äì)ììä(ì)äì(äìIä(ìää(äì(äìäçãçãÆãçã¦ãçÛçãçÛÆãÇÛ¦ãçÛ¦Û¦Û…Û†ÓeÛ†ÓeÓeÓEÓEË$Ë$ËËÃãÊäÂÃÂäÂÃÂäºÃÂĺúä²Ãºå²Ä²³ä²åªå²F«%«'«æªaºçóGë#Ò%Ò%ÚFÚEâFÚ%â&Úâ&Ú%â%ÚâÚâ%ÚâÚãÙäÙãÙäÙäÙÚãÙäÙÃÙÃѢ٣ѢÙÃѢѢÉ�Ñ‚ÉaÑ�ÉaÑ„â¥â¤êÅâÅêÅâÅêÆâÅêæêåêëëëæêçê¦ê†â&ê&â%â‡êGëÊóéû©ë§ò%ÚÚèòKõÎýÈû!ºÉaÉ�Ñ�É�Ñ¢Ñ�Ñ¢É�Ñ�É�É‚É�É¢Á¢Á¢Á¢É£Á¢É£Á¢¹EÂh³‰«%³F³F»F³³%³»³»³Ä²Äª£²Ä²£²Ä²Ãºäº£ºÃº£ºÃº£º£²ÃÂãºãÂÃËÃ$ËEËàH 8 8 0 0 0€0 0€0€(€0À0 0À0À8 (`0ABš ÌHôÆÛ…Û¦ÓÆãæÛæãçãÆãæãæëçãæãäæãäìäçã(äçã(äìäìçãì(ìì'äìäHìHìçëäìäçëäæëçã¦ãÆãÆãçãÆãÆÛÆãçãÆã¦Û¥Û¦ÛeÛeÓdÛDËDÓeÓDÓDË#Ó$ËËÃãÊäÂÃÂäÂãÂäÂÃÂú¢ºÃ²Ãºäºäº³ä²äªÄª«%«£«‡³æó#ÓãÙ%Ú$ÚEÚEâEÚ%âEââ%Úâ%Úâ%Úâ%Úâ$ÚâÚãÙãÙãÙãÙãÙãÙãÙãÙÂÙÃÑ¢ÙÂÑ¢ÙÂѡѡÑ�Ñ�ÉaÑ�ÉfâeâfâeêFâEâFâEâ‡âfâfâfê†â¦êçâëhãhó‰ëGëÈêfâ&ââ‡ÚóÊëÉó)óEÚÄчòªìêügëÁ¹!ÁaÑ¢ÉaÉ�ÁaÉ‚ÁaÉ‚ÁaÁ‚ÁaÁ¢¹‚Á¢¹‚Á£¹£Á(£i³h«G«'«&³&³³&«äª³å²åªÄ²Äª¤²¤ª£²¤ªƒ²Ä²£²Ä²£²£²£ºÃ²ÃºÃ²¢ºÃ²Ãº$ÃËæÛÄa@8À0€0 (€0€(€(€ €( ( 0Á0€0`(AƒšÈËçÛeÓeË…Ó¦Ó…ÛÆÛ¦ÛÇÛ¦ÛÇÛÆãÇÛÆãçÛÆãçÛçãäçãääçÛçãçÛçãçÛçã(äçãèãìçãçëäçãçÛÆãçãçãçÛÆãÇÛ¦ãÇÛ¦ã¦Û¦ã¦Û†Û¦Û†Û¦Û†Û¦ÓeÛeË$ÓeË$ÓEË%ÓEË$Ó$ËËÃäÊäÂÃÂäÂÃÂ亣Âĺú£²ƒ²Ä²£²ä²Ä²«å²åªÄªæ¢Å¢£‡»EÚÃÉÒÚ%Ú$â%Ú%â%ÚâÚäá%ÚâÚâÚäáÚâÚãÙãÙÃÙÃÙ£ÙãÙÃÙãÑÃÙÃѢѣѢ٢ѢѢÑ�Ñ�ÉaÑ�ÉaÉ%âFâEêFâEêFâEâfâfê†âEêfâEêFâFêFâEê†êÆê'ëgëÉëÉó‰ãfê%â%â§êÉë+ô(óEÒ£ÑfâGì©ôåêÀ¹@É�É`É�É`É�ÁaÉ�ÁaÁ�Á�Á¢¹�Á¢ÁÆ¢i³‰«h£G«G«&³&«³«³åªä²³Ä²Äª£²Äª£²Ä²£²£ª‚²£²‚º£²£º£²‚²Ã²‚º£²¢º£ºË$ÃãÂfÓ'£@8 8 0 0 (€( (€0À0 0 (`09Bš¨Ã¦ÛeÓ$ËeËeÛ¦Û…Û†Ó…Û¦ÛeÛ¦ÛÆãÆÛ¦ãÆÛ¦ã¦ÛÆãæÛÆãäçëçãæãÆÛÆãçãÆãçãìçÛæãäæãçãæãçã¦ãçãÆãçãæãçã¦ãÆÛ¦ã…Ó…Û¦Û†Û†Û…Û¦Û…Û¦Û…Û…ÓdÓeÓDÓDËDÓEË$Ó$ËËÃãÊãÂÃÂúÃÂú¢ºÃº¢ºÃ²£ºÃ²ÃºÃ²Ã²Ä²ä²äªÄªåªåªÅ¢æ²ÅªÃÑÒäÙ%ÒÚ%Ú$â%Úâ%ÚâÚâ$ÚãáÚãáäÙãáäÙãÙãÙÂÙãÙÂÙÃÙÂÙÃÑ¢ÙÃѢ٢Ѣ٢Ñ�Ù¢Ñ�Ñ�É`ÑaÉ@É�ÉeÚdâ…Údâ…â„â¥â…â¥â¥âÅâÅâæâÆâÇâÆê§â†âFââ&ÚFêãióêë©ëèê%ÚåÑFê‰ã©óèê%ÒÄÉfâ'ä'ì„Ú`¹@Á`ÉaÁ`Éa¹`Áa¹a¹a¹a¹ä¡Ç«›i›H›G£H££&«åªåªåª«ÄªÄªÄ²Äªcªƒ¢ƒª£ªƒ²ƒªbªbªb²ƒ²ƒº£²b²ƒ²ƒº£²£º£²£ºäºãÂÃÃÂÈÀ�@  0 0 0À( 0Á(€(` Á8!’fæÓ$ËÃ$ËfÓeÓ†ÓeÓ†Ó…Û†ÓeÛeÓeÛ¦Û¦Û¦Ó…Û¦Ó¦Û¦Û¦Û¦Û¦ÛÇÛÆã¦Û†Û¦Û¦Û¦Û¦ãÇÛ¦ãÇÛ¦ãÆÛ¦Û¦Û¦ÛÆÛ¦ãÆÛ¦ãÇÛ¦ã¦Û…Û†Ó†Û¦ÛfÛ†ÓeÛeÓeÛ¦ÓeÛeÓeÓEËDÓ$ËË%ËäÊÃÃÂĺÃÂäºÃÂú¢ºÃº£º£²£º£²‚²Ã²£ºÄ²ÃºÄª£²Äª¤ªÅ¢Åª£Å¢Æ²¥²äÉäÑÒÚÒäÙÚäÙÚäÙÚäÙÚäÙÚãÙäÑãÙãÑÃÙãÑÃÙÃÑ¢ÙÃѢ٣Ѣ٣ѢѢѢѢтÑbÉAÉaÁaÑÊbÚÓ#ãdâdÚDâEâ$âEâ$âEâ$âEâEâeâdâ…â¥êÆâ&ëgë‡óˆëçò§âêåÙ%â§êˆëÉëó†ÚäÙFâgë©ëÇêÒÃцâæëåãâÑ@¹`É�Á`Á`¹`¹a¹a¹Â¹i›Š›H£H›G£H›£&£åªå¢å²åªÄªÅª£ªÄªƒªc¢bªƒª‚ª‚ªb²bªA²‚²‚º‚²‚ºƒ²‚ºÃº‚º¢²‚ºÃº¢ÂÃãÂú¦ӣa@(`(€(€(` `(9á‘F³eÓ$ËË$Ã$ÓEË$ÓEËDÓ†ÓdÛeÓeÛeÓ…Û¦ÓeÛ†Ó…Û†Ó¥Û¦Û…Û¦Û…Û¥Ó¥ã¦Û¥Û¦Û¥ã¦Û¥ã¦Û¥ã¦Û¥ã¦Û¥ã¥ÛeÛ¦Û¥ã¥Û¥Û¦Û¥Û…Ó…Û¦Û¥ã¦ÛeÛeÓeÛeÓeÛeÓeÛeÓDÓEË#ÓDË$ÓDËËÃãÂãÂÃÂäÂÃÂú¢ºÃº¢ºÃº‚º£²‚º£²¢º£²£²Ã²Ã²Ãª£ªäªÄªå¢åªÅ¢¥Âe²ãÑäÑãÙÚãÙäÑãÙÚãÙÚãáÚãÙÚãáãÙãÙãÑÂÙãÙ¢ÙÃѢ٢Ѣ٢Ѣ٢ѡѢÑ�Ñ¡ÑAÑAÉ ÉcÚBÛ¤ã„ëdãÄâ¤ÚÚåáÚåáÚåáÚâÚâ%ÚäÙÚâÚåáÚâ†ÚÇêˆãÉóêëˆë‡êäÙäÑ%âãGëëeÚåÑ%âGãGë‡âäÑãɆâæãcÛÂÉ@Áa¹`Á`±`¹ä™çº«“j“i›(›(›››Æšæ¢Å¢Å¢ÅªÅ¢„¢„¢ƒ¢£ªbªc¢Bªc¢B¢B¢BªBªB²bªb²ƒªB²ƒ²ƒºƒ²‚º£²£ºÃº¢ºÃ²Ãº£²ãÂÈËB¢bQQAQ¢acšF»EËãÂäºËEËDÓ%ËË%ËEÓEË$ÓEËEÓEË$ÓeËeÓeËEÓ†ÓeÛ†ÓeÓeÓeÛ†Ó…Û†Ó…Û¦ÓeÛ†ÓeÛ…Ó…Û†ÓeÛ¦ÛeÛ†ÓeÛ†Ó†Û¦ÛeÛ†Ó¦Û†ÓEÓ¦ÛeÛeÓeÓfÓeÓEË%ÓEË%ÓEË%Ó%ËãÊÃäÊ$ËËäÂÃÂú¢ÂúÃÂú£ºÃ²‚ºƒ²ƒº£²b²ƒ²b²ƒªƒ²£ªƒ²¤ªƒªÄª¤ªÅ¢ÄªÆšÅš†º$ºäÉÄÑäÑäÙäÑÃÙäÑÃÙäÑãÙäÙãÙäÙãÙäÙãÙãÙÃÙÃѢ٣т٣тѢѢÑÃтѢÉaÑAÉaÑ‚Ê$ëåãäë&ë¤Ú%ÚÚÚââ$ÚCâdÚCâdâcâdâcâ„â„â¥â„â¥â…â¥âEêEâäáäÙäá%â¦âHë¨ó©ëó…ÚÄÙåÙÅâHëódÚÃÑ%ÚãÛ%âÃÑÒë¥ëâÊ`Á@¹`¹€¹(›Š›‰›Š“(›(“£›ÅšÆšÅ¢Åš¤¢Ä¢ƒª¤¢c¢ƒšb¢ƒ¢Bªb¢!¢B¢!¢A¢!ªbªa²‚²b²bªb²ƒ²‚º¢²‚º¢º¢º‚²¢ºÃºÂÂúÂÂEË$ÓDËDÓDËËãÂãÂÃË$ËË$ËË$ËË$Ë$Ó$ËËEËË$ËdÓeÓeÛEÓDÓeÓeÛeÓeÛeÓdÛeÓDÓeÓeÛ…ÓdÛeÓDÓ…Ó$ÓeÓeÛ†Ó…Û…ÓeÛ…ÓdÛeÓeÛ…ÛeÛ…ÓDÓeÓdÓeÓeÛEÓ$Ó$Ë$Ó$Ë$Ó$ËËÃãÊÃãÊÃÃÂúÃÂúÃÂú¢Â£º¢º¢²‚ºƒ²‚²‚²‚²‚²‚²ƒªbªƒª‚ª£ªÃªÄ¢£¢Ä¢¤šÅ’DÊ$ºãÑäÑãÙÒãÙäÑÃÙãÑÃÙãÑãÙãÙãÙãÙãÙãÙãÙãÑÂÙÂѢ٢ѡ٢рѡѡÑ�É`ÉÂÑÛåëæó…ã…êEÚâ%â$â%Ú$â$ÚdÚCâDÚ#Ú$ÚÚ%ÚÚÚäÙÚ$âeÚeâ¥ÚÅê&ã&ëhãGëçâeâÅÙ¤ÙåÙFêGãˆëHë¥ÚÅÑÅÙÆÒ'ëã$Ò¤ÉÚåÚÄâÚƒÑCÊëEÛ Âa¡ÂÌ“Š“j“)“““ç’Æ’Æ’¥š¥š„š„šcšcšc¢cšBšCšB¢B¢"¢B¢¢š¢š!ªBª!ªB¢AªbªB²‚²‚º‚²‚ºƒ²‚ºƒ²‚ºÃ²¢ºÃº£Â£²£ºÃ²‚ºÃºÃÂÃãÊÃÂÃÂäÂäÊ$ËËÃË%ËËäÂäÊÃË%Ë$ËEË$ÓEËDÓeÓeÓeËDÓEÓ$ÓEË$ÓEËDÓEÓDÓEÓDÓEËEÓeÓeÓ…ÓDÓ…ÓDÓeÓDÓEÓDÓeÓDÓEÓ$ÓEË$Ó%ËË%ËË%ËË$ËäÊÃËÃãÂäÂÃÂú£Â£º¢º£²‚º£²‚ºƒ²b²ƒªb²bªb²bªB²ƒªbªc¢bªƒ¢ƒªÄ¢ƒ¢¤š„𥒥šÊãÉãÑÃÑäÑäÙäÑãÙãÑÃÑÃÑÃÙÃÑÃÙãÑÃÙãÑãÙãÑÂÙÃѢ٣Ѣ٢Ñ�Ñ�É É@¹âÙÅÛGô§óäÚ&ÚåÙ&Ú%âFÚ%â%ÚâÚâãáäÙãáäÙÄáäÙãáäÙÃáäÙÃÙäÙÃáÄÙ£áÄÙÃáâDâÆâGëˆëhóGã…ê$ÚÃÙåÙÅâhëhóæÒäÙäÑ¥Ú'ãÆêÊ£Ñ%ÚÄÚ¤ÒÃ٣ɂÒeã&»&³Š“Š‹(“)‹ç’‹æšÆ’¥š¥’„š„’cš„šCšƒšBšBšBšBšA¢Bš!¢!š¢š¢!¢!ªA¢!ªbªA²Aªa²‚²‚º‚²�º‚²‚º¢²¢ºÃº¢Âú¢ºÃºÃÂúâÊãÂÂÂãÂÃÂãÂË$ËËÃ#Ó$ËãÊ$ËãÊÃ$Ó$ËË$Ë$Ó$ËDÓeÓ$Ó$Ë$ÓDË$Ó$Ë#Ë$Ë$Ó$Ë$ÓDÓDÓDËDÓeÓDÓeÓDÛeÓdÛ$Ë$ÓDË$ÓDËDÓDÓDÓDË#Ë$Ë$Ó$ËË$ËËËãÊÃãÊäÂÃÂãÂÃÂãÂÂÂúÃÂú¢º¢²‚ºƒ²b²b²b²bªA²bªAªbªaªbªbª‚ª‚ªƒªƒ¢¤¢ƒš¤š„šÆšãÑãÉÂÑãÑãÙÒãÙãÑÃÙãÑÂÙãÑÂÙãÑâÙãÑâÙãÑÂÙÃÑÂÙÃÑ¢ÙÂÑ¡ÙaÉ`Á#Ò%ìÈô‡ûÅÚâ%Ú%âFâ%â%Ú$â%ÚâÚâÚÃÑÃÙãÑãÙ$ÚÚ#Ò#ÚCÚ#ÚDÚDâeÚdâeÚDÚ%Úã٤ك٤ѤÙeÒ¦êhãhëëEÚÄѤ٦Ò'ëHãÅÚåÑÄÙ…Ò¥ÚeÚãÑÃÉÚ¤ÒcңɃÑi£(£J‹)‹)ƒ‹ç‚ÇŠÇŠ¦Š…Šd’e’D’C’C’C’CšC’"š"’’"’"ššššà™š!¢A¢¢!¢!ªA¢AªBªA²‚²A²‚²b²ƒ²b²£²‚²£²‚º£²‚º£²¢ºÃº£ÂúÃÂäÂÃÂÃÂÃÂÃËÃãÊäÂÃÂÃãÊÃãÊ%ÃäÂÃ$ËEË$Ë%Ë$ËEË$Ó$ËË$ËËËäÊ$Ë$Ó$ËË$Ë$Ó$Ë$ÓDË$Ó$ËËËäÊ$Ë$Ó$Ë$Ó%ËËÃË%ËËÃÃÂäÂäÊäÂÃÂÄ£Âú£ÂĺÃÂú£Â£º£ºÃ²‚ºƒ²b²‚²b²bªBªbª!ªB¢BªB¢!¢B¢B¢cšc¢„šcš„’„š…š¥¢ÃÑÃÑÃÉÃÑäÑãÙäÑÃÙÃÑ¢ÑÃÑ¢ÑÃÑ¢ÑÃÑÂÙÃÑ¢ÙÃÑÂÑÃÑ¢ÙÃÑ�ÑaÁÚGäÉüˆó„ÚÚ&âFâ%â&Úâ%Úâ%ÚâÚâÚäÙ"ÚCÚBÚCÚ#Ú#ÚÚÚãÙÚÚDÚDâ„â¤âåâë&ã&ë&ã¦êEÚÃá£Ñ¢Ñ$ÚÅâHëGóÅÚÃÙ£ÑDÒÆâæê„Ò£ÑÄуÚÅÚ$ÚÃÉâÑDÒ„â"Êè’)“)‹)ƒèŠƒÆŠÇ‚…І‚d’…ŠC’dŠC’#Š"’#’šB’š’á‘!’à™’à™š¢ š¢¢ªA¢ ªA¢ ªAªA²bªa²‚²‚º‚²�º£º¢ºÃº¢ºÃº¢Âú‚ÂúÃÂãÂÂÂÃÂÃÊãÂÂÂÃãÊãÂÃÊäÂãÊÃãÊãÂãÊÃËËË$Ë$Ó$Ë#Ë$ËËËËËÃÊÃË$ËËËÓ$ËãÊË#Ó$ËãÊËãÊ$ËË$Ë#Ó$Ë#Ó$ËËãÂãÊÃãÊãÂÃÊãÂÃÂÃÂÃÂÃÂÂÂú¢Âú¢Â£º‚‚²‚º‚²‚º‚²�²‚²a²bªAªA¢!ªB¢!¢B¢AªB¢B¢bšcšƒš„š„’„ª¥¢¢ÑãÑÂÑãÑÂÑãÑÃÙãÑÂÙÃÑÂÙÂÑ¢ÑÂÑ¢ÑÂÑ¢ÙÂÑ¢ÙÂÑ¢Ù¢Ñ@ÉÚgì*ýˆû„ÒÄá%â%â%â%â%â%â%Úâ$Úâ$ÚâÚãáÚãÑÂѣѢѣѣ٣т٣ѣ٣уكу٣уÙÃÑÃÙDÒ…â'Ûgëˆë&ãeÚãууمÒ'ë'ë¥ÚÄуÑ$Ò…â¦Ú#Ò¤ÉÄÙ¤Ò„ÚÒ¢ÉãÁDÒJ‹ ‹)ƒƒèzÇzÇ‚†‚†zezE‚D‚D‚#Š#‚‚‚≊’Šá‘á‰Á‘á‰á‘á‘À™à‘à™à™à¡!¢¢¢ªAªª!¢A²‚²a²‚²‚º‚²‚º£²‚ºƒ²‚º‚²‚º‚²‚ºÃº¢Âú¢ÂúÃÂúÃÂÄÂÃÂÃÂÃÂäÂÃÂúÃÂÃËÃãÊÃË$ÃË$ËË$ËËÃÃÂäÂÃÂãÂÃÊãÂãÊãÂÃÊãÂãÊÃãÊÃËÃãÊËË$ËËËãÊäÂÃÂúÃÂäÂÃÂúÃÂú£Âú¢º£²‚ºƒ²‚º£º‚ºƒ²‚º‚ªb²‚²b²BªA²bªAª"¢!¢B¢¢"¢!¢Bš"¢C’Bšc’c’„Šd’EªD²ÃÉÃÑãÉÂÑÃÉÃÑÃÑ£ÑÃѢѣѢѢɢѢɂѢɂѢɢÑAÁaÑ'Ü+ýêûdÒÄÑåá%Úâ%ÚâÚâ%ÚâÚäáÚäÙäÑãÙäÙãقѣтѣÑÂÙãÑÂÙãÑâÙÚâÙÚãÙÚãÙãÑÃÙ£ÑbÙcÑ‚ÑÃÑ#Ú¥âã&ãÅêdÒ£Ù£ÑÒÆâåê„Ò£Ù£É#Ò¥â…â#Ò¢ÑÒƒÚƒÒãÉäÉ)‹)ƒƒ{Ç‚Çz†z†zezez$‚Dz#‚#zâ�‚â‰â�á‰â�à‰ŠÀ‘á‰À‘á‰À‘á‘À™’à™à‘¢¢à¡¢¢š¢aªa²‚²a²‚²�º‚²aº‚²‚º‚²�º‚²‚º‚²‚º‚º¢Â¢º‚ºÃºÃÂú¢ÂúÂÂúÂÂÃÂÂÂãÂãÂÃãÊãÂÃÂãÂË$ËËÃãÊãÂãÊËãÊãÂÃÊÃÂÃÊãÂÂÊÃãÊËãÊËËãÂÂÊãÂâÊÃãÊËãÊãÂÂÂÃÂÂÂÃÂÃÂÃÂÃÂú¢Âú¢Â‚²‚º¢²¢ºÃº‚º¢º‚º‚²a²aªa²aªAªAªAªbª!ªA¢!¢!¢!¢A¢!¢AšBšB’C’C’cŠ¥Š$Â$ºÂÑãÑÃÙãÑÂÑÂÉ¢ÙÃѢѢѢѢÉ�Ñ¢É�Ñ¡É�Ñ¢ÉaÑaÉdÓLýküåÒäÙÚâ$Úäá%Ú%âÚâÚâ$ÚâÚãÙäÙÂÙÃÙÂÙãÙÂÉâÙ#ÒÚ#Ò"Ú#Ò#Ú#Ò#ÚCÒCÚ„ÚcÚ…Ú¤âÅÚ¤Ú…ÚDÚÒÃуÑbÑ£ÉÃÙ…Òæâ'ãÅÚÄÑbÑãÉeâ¥ÚCңɃÑCÊ„ÚDÒÂɃÉÃх„Ê){ ƒ {Èz§r†rFj%jer$r$rrrãyãyÂyÂyÁ�Ây¡�Áy¡�Á�À‰Á‰À‘á‘À‘À‰À‘À‘À™á™À™á™à™à™à¡š¢bªA²‚ªb²bªA²BªA²bªa²‚ªa²ƒ²b²‚²‚ºƒ²‚ºƒ²‚ºƒ²bº‚²¢ºÃºÃÂú£ºÃºÃÂäºÃÂÃÂÃÂúÃÂÃÂÃÂäÂÃÂäÂÃÊäÂÃÂúÃÂú£ÂÃÂÃÊãÂÃÊÃÂÃÂãÂäÂÃÂãÂÃÂÃÂÃÂÃÂú¢Âú㺂º£º£º£º‚ºƒ²‚º£º‚º‚²‚ºƒ²‚º£²b²‚²b²bªAªAª!ªB¢AªB¢!¢B¢¢š!¢"šá™"’š"Š"’CŠC’dŠ…’ãÁÃÉÃÉÃÑÃÑ£ÑÃɢɣɢѣɢѢÉ�Ñ¢ÉaÉ�É�É‚É É‚ºiüíüfÛåÙâFÚ%âÚäÙÚâ%ÚâÚâÚäáäÑÃÙÃÑ£ÙÃѢ٣ѢÙâÑÒâÙãÑÂÙÂÑ¢ÑÃѢ٢Ѣ٣тѣтѣÑÂÑÒCÚ¥Úåâ&ããÅÚÚÃÑbуÑÒ¥âãÄÚÃÙ‚ÉâÑ…Ú¤âCÒ‚Ñ£É"ÒcÒã٢ɣ¹Â)ƒ {ç‚Çr†rfj%jbjjãiãiâqãqÁyÂq¡yÂq y¡q y¡y �À� ‰à‰À‘à‰À‘à‰ ‘à‘à™à‘à¡à™à¡š¢ ¢ ªAªA²Aª@ªAª@ªaªA²aªA²‚²�²‚²aº‚²‚º¢º¢º‚²aº‚²aº‚º¢ÂúÂÂú¢ÂúÂÂúÂÂúÂÂÃÂÂÂÃÂÃÊãÂÃÂãÂÂÂÃÂÂÂú¢Â£ºÂÂâÂâÂÃÂÂÊÃÂÂÂÃÂÃÊú¢Âú¢Âú¢Âú‚‚º‚º¢²‚º£º‚º£º‚º‚²‚º‚º‚º‚²a²a²a²bªA²Aª ª!¢ ªA¢!ª!¢AªA¢¢!¢¢š!š!’’"’C’C’D’¥’¡ÉÂÉÂÑãÉÂÑÂÉ¢ÑÂÉ¢ÑÂɢѢɡѢÉ�É�ÉaÑ@Á๧ó ýçÛâÚEâFÚ%â%ÚâÚâÚâÚãáÚãáÚãÙãѢѢѢÙÃÑ¢ÙÃѣɂѣɂÑÃÉÂÑãÉãÑCÒCÚ$ÒÚÒãÙÒãÑÄѣуɂѣɣÑDÒ¥â&ÛÛ…ÚÒ£ÑbÑÃÉ$ÚÅÚ„ÚÄÑbÉãÉDÚdÒңɢÑ#Ê#ÒÂÃÁ){èzÈz‡zfj%j%bäaäYÄYÄY£a£a¢i¢i‚i¡i�i�i€q€q€y¡y€y y€� �À‰ � ‰À‰ ‘à‘à™á™à¡à‘à™šà¡!š ¢!¢ ª!¢ ªAªAªAªAªbªA²BªA²b²a²‚²‚ºƒ²‚ºbªb²‚²‚ºƒ²‚ºÃ²¢ºÃº‚º£º¢º£º¢ºÃº¢Â£º‚º£º£Âú‚Âú㺂º£º‚º£º‚º£º‚º£º¢Âú¢Âú£Â£º£Â£º‚º£º‚º£º‚º£º‚ºƒ²‚ºƒ²‚ºƒ²‚ºƒ²‚º‚²A²b²b²‚²a²bªA²BªAªAª ª!¢¢š¢š¢!¢¢š¢’á™"Š’ŠŠDŠ#ŠDšD¢¢Á¢É¢É¢ÉÃɢɣɢѢɢѢɂѢÉ�É‚ÉaÉ`¹dâêô©ôFâäÙFÚEâ&Ú%â%ÚâÚÚÚäÙÚäÙÚãÙäÑÃÙÃѢ٣ɢѣѢÙÃÑ¢ÑaÉ‚ÉÁÑ"Ò�ÚÂÚââ#ãbãƒãCãcÛCãcãdã„ãDã%ÛÄâ¤ÒdÚDңуÉ�ÑãÑcÚÄÚ¤âƒÒÃÙ‚É¡É$ÚƒÚcҢтÉÂÉDÒ#ÚâɂɣÉCÊ„Êè‚èz§z‡rErEjbäYÃYÃQ‚YƒQba¢Y�i¢a`i�a`i€i`q€q`q€q`y€y �À� ‰À‰À‘à‘À™à™à¡à™à™šà¡šà¡šà¡!¢ª!¢ ªAª ªAªA²aªA²aªA²b²aº‚²a²‚²a²bª‚º‚²�º¢²‚º£º¢º¢²‚º‚²‚ºÃº¢Â¢º�º¢²‚¢º‚¢º¢Â¢º‚º¢º‚º‚²‚º‚²‚º‚º‚º¢º¢Â£º¢Â¢º‚º¢º‚¢º‚º‚º‚º‚²‚º‚²‚º‚ºaºb²A²bªa²‚²A²AªA²Aªa²b²A²aªA²Aª ª ¢¢šà¡šà¡ š¢š¢šà‘’’Šâ‰"ŠCŠC‚â©ã©�Á¢Á¡ÉÂÉ¢ÑÂɡѢɡѢɡѢÉ�Ñ¢É`É¢ÉåÛÉôçò$ÒâEâ%â%Ú$â%Úâ$Úâ$ÚâÚãÙÚãÙäÙÂÙãÙÂÙÃѢ٢Ѣ٢Ѣ٢Ñ�ÊÂÚÓâÚÄÚ£Ú„Ú„â„ÚdÚ„ÚdÚ…Ú„âÄÚÄâEãeëÆãæëäæë§ã%ÛDÒ¢ÉBÉBÑãÉDÚ¤Ò„ÚäтɢÁãÑCÒÒ£ÉbÉÃÁãÑÊÂÉ¢Á£ÉèzÇ‚§rfrFjbZÄYÄQƒQcIBIbQBQaYaYaaAa@a@a@a@i`i@i`i`q`q€y y � � ‰À‰À‘á‘ ‘à‘à™á‘à™šà™š¢!¢ª!¢ ª!¢!ª!¢!ªbªAªBªA²Bªb²BªA²‚ªa²‚ªb²bªa²‚²‚º£²‚²‚²‚²£²‚º‚²‚ºƒ²‚º£ºbº£º‚ºƒ²bºƒ²‚º‚²‚º‚²‚º‚²‚º£º‚º£º‚º£º‚º‚²‚º‚²‚º‚²bºb²b²bªb²ƒ²A²bªA²BªA²bªA²Aª!ªAªA²bªA²Aª!ªA¢ª!¢à¡à™à™á™à™à™à™á‘À™á‘À‘á‰à‰â�á‰z‚$zD‚¢¹�¹‚ÁaÁ¢Á�ɂɂɢÉ�É¢É�É¢É�ÉbÉAÉÂÂ'ü‰óCÒäÑâ%Úâ%ÚÚÚâÚÚÚäÙÚãÙäÑãÙäÙÃÙÃѢ٣ѢѣтѣттÑbÑcÚCÒãÙäÑÃÙÄÑÃÙäÙäÙÚäÙÚäáÚäáåÙäÙÚ$ÚeâäâfëæëHìgì'äÅâÂBÑBÉaÉ$ÒƒÚ„ÒãÙ¢Á�ÉÒcÚBʢтÉÁÉÒâÑ¡Á¦ŠÇ‚†z†rEj%bäaÄY£YƒIbIBA!I!I QAQ Y@Q@Y`Y a`a@i`i@q`i`y€y`�€y ‰ � ‰Á‰À‘À‰À™à‘à™šà™šà¡šà¡¢¢¢à¡ ¢ªAª@²AªA²aªA²‚²A²AªA²‚²A²aªA²‚²a²‚²a²‚²‚º£º‚º‚²�²‚²‚º¢²‚º‚²‚º‚º�º‚²‚º‚²‚º‚²a²‚²‚º‚²‚º‚º�º‚º‚º‚º‚º‚º‚º‚²aºb²a²b²a²b²a²b²A²AªA²aªA²Aª!ªAªA²AªA²Aªª!¢ª ¢à¡à™à™à‘à™à™À™à‘à™à‘À‘à‰À‰á‰á‰â�á�ây‚dŠ`Á�Á`Á�Á�É¡Á�É¡Á¡É¡Á€É¡Á�ÑaÁàÁfëüÓäÙ%Úâ$Úâ%ÚâÚâÚäÙÚãáÚãÙãÑÂÙãÙÂÙÃÙÂÙÃѢ٢Ѣ٢Ñ�Ñ¢Ñ�Ñ‚ÑÄÑ£ÑÄÑÄÙäÑäÙäÑäÙÚäÙÚÚÚäÙ%ÚÚ%ÚÚ%ÚÚÚÅÙÒ%ÚÛˆó©äÊôŠìçÛ¦Úa¹bÁÃÑcÒBÒãÉ�É¢ÁãÑCÒâÉ‚ÁaÉâÁâɧ’f’‡rFrFbbäY£YƒIBIBA!A"AAAIII QQ Y a Y a@a@i`i`q`q`y€y€y€y ‰ �€�À‰à‘à‘à™à‘à™à‘à™á™à™à™À™à™¢š¢!¢ªA¢!ªAªAªAªA²AªA²BªAªbªA²bªa²‚ªb²ƒ²b²‚²a²bªb²‚²b²b²A²b²b²‚²b²b²A²‚²A²bªb²b²A²b²b²‚²b²‚²b²‚²b²‚²bºb²A²b²A²BªA²BªA²Bª!ªbªAªAª!ªAª!ª!¢ª!¢¢šà¡šà¡á™À™à‘À‘à‘à™á‘ ‘በ‰À‰ ‰¡�À‰ây¡yâqây㑚a¹aÁaÁaÁ�ÁaÁ‚Á�É�Á�É�Á�É�¹Ò'äæã%ÚÚ%ÚÚÒäÙÚÚÚäÙÚäÙäÑäÙäÑÃÙÃÑ£ÑÃÑ¢ÙÃѢ٣ѢѣтѢттттÉaÑÃÙäÑÃÙäÑãÙäÑãÙÚäÙÚäÙÚäÙÚâ$Úâ%Ú%â%Ú$Ú%Úâ%ÚäáåÙÚ¦âÇãÌüŒýªäÅâÁ¹ Á£É"ÒCʢтÁ�ÉãÉÒâÉaÉ‚Éd²Dª†rfj%j%bãaÃQƒQbI!I"AA9A9à@AàHIQQ Y@Y@a@a@i`i@q`i`y€y`�€y€�À� ‘À‰À‘à‘À‘à‘À™šÀ™šà¡à™à¡ ¢à¡ ¢¢¢ª ¢ª!¢ ªaªA²AªAªAªa²aªA²aªa²‚²a²aªA²bªa²‚²a²aªA²b²aºb²a²‚²A²b²A²a²A²AªA²aªa²‚²a²‚²a²‚²a²b²a²a²A²b²a²b²A²Aª!ªBª ªAªA²Aª ª!¢ ª!¢¢¢¢šà¡¢à¡à™À™à‘à™à‘À™à‘à‘à‰À‰À� ‰ � �Á�¡yÂyÂqr¡±Â©`ÁaÁ`Á�Á`Á�Á�É�Á�É¢É�É‚ÉÓåëÆêDÒ%ÚEÚ$Ú%ÚãÙÚâÚäÙÚãÙäÙãÙãÑÃÙãÑÂÙÃѢ٢Ѣ٢Ѣ٢Ѣ٢Ѣ٢ѡѢÑ�тѣɣÑÄÑÃÙÄÑÃÙäÑäÙäÑäÙäÑäÙÚäÙåÙäÙ%Ò%Ú%ÚÚÚÚÚâ%Ú%â&ÚåÙäÑäÙÆÒ©ó+õêì㡹!¹bÉ"ÊÒ£ÉaÁ¢ÁãÑãÉ�Á‚¹¢Áfj%j%jjäY£YƒIBIBAA9á8á0À8Á0À8À8À@à@àHQQ Y Y Y a@a@i`i`q`i`q`q€� y �À‰ ‰À‰À‘À‰À‘À‘À™à™à™à™à™š¢!¢à¡šà¡šà¡!¢!ªAªª!¢ ªA¢!ªAªAªbªA²BªAªAªAªbªAªAªAªbªA²bªA²BªAªBªA²Aª!ªAªAªbªb²‚²A²bªA²bªA²bªA²Bª!ªBªA²bªA²Aª ª!¢¢!¢!ª!¢ ª!¢ª¢à¡à™à¡à™à¡à™à™á‘ ‘À‘À‘á‘ ‘À‰ ‘À‰ ‰¡�€� y€�¡y �¡q¡yÃq‚�¹`¹a¹`ÁaÁ`Áa¹aÁ‚Á¡É¢ÉaÉ!Â$ãFëcÒÒ%ÚEÚÚÚäÙäÑäÙäÑäÙäÑäÙäÑãÙäÑÃÑÃÑ£ÑÃѢѣтѢтѢтѢɂѢɢѣтÑbÉAɂѣѢÑãÑÃÙãÑÃÙäÑãÙäÑãÙäÙäÙÚãÙÚÚ%Ú$â%ÚÚÚâ%Úâ%Ú$âEÚ%âEÚäáÄÑ#ÒëÉô õFëá¹Á¢ÉBÒ"Ê�É‚ÁáÉ"ÊâÑ�Á’Š%j%bäa£QbQbI!I"AA9À8À0 8À0À8À8À8à8ÀHIY Q a@a@i`i@i`i`q`i`q€q€y y€� y€‰ ‰ ‘à‘À™à‘À™à‘À™à™à¡¢¢ ¢ª ¢¢š¢š¢¢à¡!¢ ª ¢ ªAªA²aªA²aª@ªAª ªAª@²aªA²AªA²Aª!ªAª@²Aª ªAª@²aªa²aªA²aªA²aªa²aªA²aª@ªAª ²AªA²Aª ª ¢¢¢ª¢¢¢à¡ ¢à¡à™à¡šà¡šà™à‘À™À‘À‘À‘À‘À‰À‘À‰ ‰ � ‰ � � y y¡yÁyÂq¡‘ã‘@¹`¹`Áa¹`Á�Á`É¡Á¡ÉÂÉ ÁƒÚ¥ë#ÓäÙÒ$ÚEÚ$ÚÒãÙäÑãÙäÑãÙäÑãÙãÑÃÙãÑÂÙÃÑ¢ÙÃѢ٢тѢѡѢÑ�Ñ¢É�Ñ¡É�Ñ�ÉAÉ‚ÉáÑC҃ɂɣɣÑÄÑ£ÑÃÑÃÙäÑÃÙäÑäÙÚäÙäÑäÙÒÚÚäÙÒÚÚÚ%Úâ%Ú%Ú%Úâ%ÚÚÚ£ÑäɦêªìÊôgãá¹A¹¢ÑCÊáÉbÁaÉáÁâÉÃÊaÂEräiåY£YƒQBQBII9À8À0 0À0 0Á0 0 0 8À8À@à@QQY Y a@a@i@a@i@i`q`q`q€q`y y � ‰À‘à‘À‘À‘À‘À‘À‘à‘à™à‘à™šà™á‘À‘à™à™à™à™à™à¡šà¡!¢ª!¢!ªAªAªA¢ ª!¢ ªAª ª!¢AªB¢!ªAª!ªA¢ ªAª!ªA¢AªAª!ªAª ªA¢!ªAªAªAª!ª!¢ª¢ªAªª¢à¡šà¡šà¡ šà™à‘à™à™à™šà™á‘À™À‘ ‘À‰ ‘À‰ ‰Á‰ ‰ �€� y€� y€�¡q`y¡q�qÃiâq�©�±a¹@¹a¹aÁa¹aÁ‚Á�É‚Á‚ÉCÓ¤ãFÚäÑÒäÙ%ÒÚÒäÙäÑÃÙäÑÃÑäÑÃÙÄÑ£ÑÃÑÃÑÃѢѣѢѢɂѢɂѢɂѢÉ�ÉbÉAÉ¡ÁâÑÂÊDã¥ã„ã‚ѢɢѣѢÙãÑÃÙãÑãÙäÙãÙäÙãÙäÙãÙäÙÚÚÚÚãÙ$ÚÚ%Úâ%Ú$ÚEÚ$â%ÚâÚÚ$ÚâÚãцâHìêôfëá¹@ÁãÉÂÑ�Á@ÊÂÒÒÁÁãÁ±äiƒY‚QƒIAI!9à0à( (À  0À(À0À( 0À( 8À0 8à8àHIY Y a@Y i@a@i`i@i`i`y y€� � ‰À�À‘À‰À‘à‰ ‘À‰À‘à‘À‘à‘À‘à‘À™à‘À™à‘ ‘à‘࡚࡚ࡠ¢¢ ¢ ª!¢ª!¢ ª ¢¢ ¢!ª!¢ª!¢ ª!¢ ªAª ª ¢ ªAª@ªAªª!¢ ª!¢ ªAª ª ¢ ª¢ª¢ª¢à¡à™à¡šà¡šà™à‘à™šà¡à™À™à‘À‘À‘À‘À‘ ‘À‘ ‰À‰ ‰ y€�€y€y y€yÀy€y€q€qÁq¢yz`Á`¹`Á`Á`Á�Á`É¡Á�ÉaÁ ÂDãåêCÊäÙ%ÚÚÒÚÒãÙÒãÙäÑÃÙÃÑÃÙÃÑÂÙÃÑ¢ÙÃѢѢѢÑÂѡѢÉ�Ñ¢É�Ñ‚É@ÉAÉÊåâ¤ãÅãEëÛEâ%ڂɂѢɢÑÃÑÃÑäÑÃÙäÑÃÙäÑÃÙäÑÄÙäÑÃÙäÑäÙÒäÙÒÚÒÚ%ÚÚ%Ò%Ú%ÚäÙÚÚÚäÙ%ÚÚ%ÚäÙäÉFâHä©ô'㡹๣ڄÒÀÁ‚Á‚ɂɂÑña±Ã‘‚‰ƒq!iYáXaà`áXÀXÁ@€H 8€@À8 @À8À@à8à@IQQY Y a a a@a@i`i`q€q€y y€� �€� �€� y � � ‰ � ‰À‰ ‰À‘ ‘À‰ ‘ ‘À™á™à™à™à™à™à¡à™à¡š ªšà¡!¢à¡š¢šà¡à™à¡šà¡¢à¡š¢!¢¢A¢¢šà¡šà¡š¢šà¡¢à¡šà¡šà¡à™à™šà¡á™à™à‘À™à‘à™á‘ ‘ ‰ ‘À‰ ‘ ‰ ‰À‰ ‰ �€� �€��y`y€q`y€q€y�i`q¢a¢i¡™Â¡`¹`Áa¹`Áa¹�Á¢ÁaÉ€¹CÒeã¢ÒåÑäÙÒäÙÒäÑÒãÙäÑãÙäÑÃÑÃÑ£ÑÃѢѣɢѣɢѣɂѢɢѢÉ�Ñ¢ÉaÉ!ÁAÉÃÊçó‰ìæãÇâDÚÚåÙÚâ�ѢɢѣѢÑÃÑÃÙãÑÃÙÃÑÂÑãÑãÙäÑÃÙäÑãÙäÙãÙÒãÙ$ÚÚÚÚÚÚ%Ú$â$Úâ$Úâ$ÚâÚÚ$Ò$ÚÒãцÚGì‰ìÅë¢Â!Á‚ɢɢÁ¡É¢Á�ɢɡѢɡÉa¹ ‘àˆàxÀp h `€X€P€X€P€X€P€X P PÀPÀPÀPàPIY@Y a Y a@Y@i`i`q€q`y€q€y y€� y€�€y€� �€‰À� ‰À‰À‘À‰ ‘À‰ ‘À‘À‘à‘à™à™à™à‘à¡à™à¡šà¡à™à¡š¢à™à™à™à¡šà¡šà¡š¢ ¢à¡¢¢ ¢à¡šà¡š¢ ¢à¡šà¡à™À™à™à¡à™à™šà¡šÀ™À‘À™à‘à™À‰ ‘À‰ ‘ ‰ ‰À‰ ‰ �€‰ �€� y€�€y`y`q`q`q`q€i€q¡i¡i$r€Á`¹`Á�Á€Á�Á�É¢ÁaÁ�ÁÓƒã$âÒÚÒÚÒÚäÑÃÙãÑÃÙãÑÃÙãѢѣѢÑÂѢѢѢѢÑ�Ñ¢É�ѢɡÑaÁ Á¢ÉeÓÊüËüçÛfâ%ÒäÙ%ÚdâÆâäâåâ‚ɂɣɂѣɢÑÃÑÃÑãÑ¢ÑÃÉ¢ÑãÑÃÑäÑÃÑäÑäÙäÑäÙäÑäÙäÑäÙÒäÙÒÚ%ÚÚÚÚÚÚÚäÙÒäÙÒÚ%ÒÚäÉfâä(ì¥Ú�¹bÁ‚É¢Á‚Á£Á¢É£ÁaÁB�€h€H€H P€X€P€P€P€P€H€P€P€P€P€P€P`X XÀ`!YAa!QQQàPQY@Y`a€i`q`i`i`q`q€q`y`q`y€y€�€y � � ‰Á‰ ‰ �€‰ � ‰ ‰ ‰À‰ ‘À‰À‘à‘À™À‘ ‘à™à™à™à™á™À™à‘À™à™à¡á™à™á™à™á™à™à™à¡à™à™à™à™à™à™à™à¡á™à™à‘à™á‘À™á‘À™á‘À™á‘À™á‰ ‰Á‰ ‘¡�€‰¡�€‰¡‰€‰ �€�€y`y€q`y€q`y�q`q`i@q`i@i`a@i�a¡iÀyg»¥Û#ÓÊ`ÁAÁaÉ‚ÁaÁ@Âã¥ÚÒäÑäÙäÑäÙÒäÙÒãÙãÑÃÑÃѣѣɣѣɂѣɢѢɂѢɂѢɂѢÉaÉA¹‚ÑÇÓËüŒügÛ&ÚÅÙ%ÒEâÛã'ãÅÚeÚ$ÚaÉ‚ÉaÉ¢É�ѢɢÑÂѢѢɢÑÃÉÂÑãÑÂÑãÑÃÙãÑãÙãÑãÙÒãÙäÑãÙÒãÙÚÚÚäÙÚâÚÚÚãÙÚãÙÚÚEÚ$ÚÒãцâçãäCÚ�¹�Á¢Á¢É¢ÁñÀˆ`H H€X P X P€X P€P P€P P€X€P€XÀXaAa i@aià`Àhà`YY Q@Q@a@Y a@Y@i`i@q`i`q`q`y€q`y€y€y y � y � � � �€‰ � ‰ � ‰À‰ ‘À‰ ‘À‰ ‘À‘À‘à‘À™à™À™à‘À™à‘À™à™à™à™à™à™à™à™à™à™à™à™à™à‘à™à™à™à‘à™À‘ ‘à‘À‘À‰À™à‘À‘à‘À‘À‰ ‰À‰ ‰ ‰ ‰ � ‰ �€� y€� y`y€y`y`q`q`q@i@i@i@a@i`a`a`a¡i$rãÁ$ƒÊ%Û¤ãÅÛäâ!€ÁcÒ$ã‚ÊÃÑÒãÙäÑãÙÒãÙÒãÙäÙÂÙÃÑ¢ÑÃѢѢɢѢÉ�Ñ¢É�ѢɡÑÂɢтÉ@Á¢É¥ÛÊô*üÓÄÙÄÑdÚ(ëÈë©ãÆâ…ÒÚåÑäÙÚbÁbÉbÁaÉ‚É�ɣɂѢɂɂɂѣɢÑÃÉÃÑÃÑÃÑãÑÃÑäÑÃÙäÑÃÙäÑäÙäÑäÙÒäÙÒÚÚäÙÒäÙÒäÙÒäÙ%ÒÚÒÚEÒÒ$ÊÆâä†ÛãÁa¹‚¹¢É¤‘@h€P€X P€X P€X€P€P€P€P€P`P PÀX!Y aaà`Á` `Á`Àhai!ai!YàX@QQQQ Y Y@Y@a`a@i@i`q`i`q`q`q`q`y€q`y y€�€y€� �€� �€� �€‰ � ‰ ‰ ‘ ‰ ‘ ‰ ‘À‰ ‘Á‰ ‘ ‰ ‘À‘ ‘À‰ ‘À‰À‘À‘ ‘À‘À‘À‰ ‘À‰ ‘À‰ ‘À‰ ‘ � ‰À‰ ‰À‰ ‰ � ‰À‰ ‰ � ‰¡�€� y€� y€�€y`y`q`y`q`q�q`qai i a a@a a@Y@aAYaa‚yEšÒÃÑÄÉ£ÉÂ…ÚÆÛæëåÛ¤ãÒ£ÉäÉäÑäÑãÑäÑÃÑäÑÃÑÃÑÃÙÃѢѣɂѢɂɢɂɂÉaÉ�ÉaÉ¢É�ÉaÁ�Édˈôêó¥ÒÄÑÄÙEÒë+ìêë§â$ÒÄÑÄÙ%ÒEâÅÚåâaÉ�ÉaÉ‚ÉaÉ‚É�ѢɂтÉ�ѢɢѢɢÑãÑÂÑÃÑÂÑãÑÃÙãÑãÙãÑÃÙäÙãÙÚãÙÒãÙÒãÙÚÚÚÚÒÚÒÚ$ÒÚ%ÚDÚEÒ$ÚÒCÒãÇë%ˢɂÁ£‘``€X P€X X€X P€X€P€P€PÀXY i@aÀhÀ`Àhà`à`aàhà`ÀhÀ` h ` hÀ`YY Q IY Q Y Y a@Y a@Y i@a@i`i@q`q`y€y€y€y`�€y€� �€� �€� �€‰ ‰€‰ ‰ ‰À‰ ‰ ‰ ‰ �€‰ ‰À‘À‰ ‘À‰ ‰ ‰ ‰À‰ ‘À‰À‘À‰ ‰ ‰ ‰ ‰ ‰ ‰ ‰ �€‰ � ‰À‰ ‰ �€‰€�€� y€� y � y`�€y`y€y`y`q@q@i@q`i@i`i@i@a a Y a@Y@a`YaY£Y‰b‰ÃÉ$ÒãÑÊãÑäÑãÑ%ÒÛ¦ãÆëdÛDÚÊ¢ÑãÑÃÙãÑ¢ÑÃÑ¢ÑÃѢѢѢѢÉ�É�É�É¢É`É�É`ÉaÁ@É¢É#Ó'ì¨óÄÊÄÙåÑDÒãˆëgãEâäÑÃÙäÙ¥ÚãFë&Û¥âdÒaÁaÉbÁaÉaÁaÉbÁaÉ‚ÉaɂɂɣɂѣɢÑÃÉ¢ÑÃÑÃÑãÑÃÑÃÑ£ÑÃÑãÙäÑãÙäÑÃÙäÑãÙÒÚ%ÒÚÒäÙÒäÙÒÚÒ%ÚEÒ%Ú%Ò%Ú&ÒÒ…ÊãfÛ£ÊÄ© � P€X X€X P€X€P`PÀPa!aaÁ` `á`À`ÀXÀ`À`À`À` hÁ`Àhá`áh!a!i"aaAYY QQQY QY Q Y Y a@a@a@a@i`i`q`q`q�q`y`q`y`q`y y€� y � �€�€y`�€�€‰€�€‰€�€‰¡�€‰ �€‰ �€‰€� ‰¡‰€‰ �€�€y€�€�€‰€y€� �€�€y€�€y€�€y€�€y`y`q`y`y`y�q`y`q`yaq@q`i@i@a i@a a@Y aAYa QY Q YAQaYbi!iàxà€‘ñÒãÑäÉäÑÒãÑ£ÉÃуÊãÅÛ¥ã¥ÚâɣɂѣɢѣɢѣɂѢÉ�É‚ÁaÉ‚ÁaÉaÁ@É@¹`ÉÂÊ¥ë‡ãÄÒåÑÄÑeÒ¦âGãæÚ%ÚÄÑÄÑ%âæÒGëhãÅÚ%ÒÄÑÄѤÑ@ÉaÁaÉaÁ`ÉaÁ`É�ÉaÑ‚É�Ñ¢É�ѢɢÑÃÉ¢ÑÂÑÂÑãÑÂÑãÑÂÑÃÑÃÙãÑãÙãÑÃÙãÑãÙãÑÚ$ÒÚÒÚÒãÙÒÚ$ÒÚ%Ú$Ú%ÒÚ%Ò$ÚEÚEÚEÒdÒ'ãeã‚Â!™ €Àh X`X€PÀX!aiàX `Á`à`á` `ÀX hÀ`Àhà`iiiaàhá`ÀhÀ`ÀhÀ`€hÀ`à`Y Y Q Y@Y Y@Y a@Y a@Y a`a@i`a`q€q`q`q`q€q`y`q€y y€y€y€y€y`y`q`�€y€� � ‰ �€�€y`� �€‰€�€‰ �€‰ �€� y€� �€�€y€�€y€�€y`�€y€� y`y`q`y`q`y`q`q`q`q`i@q`i@q`i@i@i@i@a a@Y a YY QY Q Q@QAY‚Yàxàpàx!y�A�ãÑ%ÒãÑÒãÑäÑãÑãÑÃÑ£ÉâÉ…Úƒãåã$ë‚ʂтɂѢɡѢɡѡɀÉ�Á�É�É@ÉaÁ€ÒDã%ë£ÒäÙäÑDÒ¦ÚãÅÚäáÄÑãÙEÚFãˆëÆâdÒÃ٣ѣÑÚdÚ¥ÚaÁ@ÁaÁ@Áa¹@ÁaÁ`ÁaÁ�É‚É�É‚ÉaɂɂѢɂѣɢѣɢѣɣÑÃÑÃÑÃÑÃÙÃÑÃÑãÑÃÑäÑãÙäÑãÙäÑãÙäÑäÑÒäÙÒÚ%ÒÒ%ÒÒ%ÒÒEÒEÒ&ÒåÑ¥Ê&ãEÓAº"™ �àXa!aÀX XÀ`!aaÁXÀ`À`ÀhÀ`À`À` `Á`À`Á` hÁ`Áhaá`á`À`á`à`á`Àh!YYAI Q QY QY Y Y@Y a@Y a@a@i@a@i`i@q`i@q`q`q`q`q`q`y`q`y€q`y`q`y�q`y`q`y€y€�`y`y€y`�`y`y`q`y`y`y`y`y`y`y`q`y`q`y`q`y`q@q`i@i`i@q`i@q@i i@a i@a aAa aAYaQYQàPIQ IQAIaQiàhàpÀpápàx!yyA¡$ÊäÉäÑäÑãÑäÑãÑãÉÃÑÃɂɢÁÚ$Ó…ë…ãâÒãÑ�ÉbÁbÉ¢É�É�Á`ÁaÁaÉ@ÂÛ%ã‚ÒÄÑÄÑ$ÒeÚæÚ¥Ú%ÒäÑäÑ%ÚÛ&ã¦ÚҤуÑÒ…âGÛÛÅÚdÒ@ÉaÁ`É`Á@Á@¹@Á`Á`É�É�É�ÉaÉ�É�Ñ‚É�ѢɢѣѢÑÂÑ¢ÑÃÑ¢ÑÃÑÃÙÃÑÂÙãÑÃÙãÑÃÙãÑÃÙãÑãÙãÑãÙäÑãÙÒÚ$Ò$Ú$ÒÒ%Ò$Ú%ÒÒ%Ò$ÒEÒ%Ú%ÒÓ§ã%ÛA²bºªA‘A‰ qiÀ`ÀX `À` `À` hÀ`Àhà`Àhiiaiaàhà`ÀhÀ`Àhà`àhaàhá`Y!Y Q QQ IY QY Q Y@Y a@Y i`a@i`i@q`i`q`i@i@i@q`i`y€q`y`q`y`q`q`q`y€q`y`q`y`q`y€y`y`q`y`q`y`q@y`q@q`q@q`q@q`i@q`i@q@i i a i`i@q@i@i a a a a YY YYQYQQIQIIAI!a!YÀpàpàxàpàxy�!yà�ä©ãÑäÉãÙÒãÙãÑãÑãÉÂÑãÉÃÑãÉ¢ÑãÑ‚Ú%ãƒãcÛcÚáÁaÉaÁ`ÉaÁ@ÊâÚãâ¢ÒÄÑÄÑãÑDÚ¤Ú¤ÚEâEÚãÑEÚ„Ú¥ÚDâäÑ£ÑÄÑ#Ò¦âgëgãeâÊ£ÑÃÑ!¹ ÁA¹ Á@¹@ÁaÁ`ÁaÁ`É�ÁaÉaÁaÉ‚É�É‚ÁaɢɂѢɂѣѢѣѢÑÃÑ£ÑãÑÃÑãÑÃÑÃÑÃÑãÑÃÑãÑÃÑäÑÃÑãÉãÑÒäÙ%ÒäÑÊÒ%ÒÒ%Ê%ÒEÒ%ÒFÒEÚ&ÒÒˆã&ÛºdʤÒä¹b±‚™!‘qÀpÁh€hÀX `ÀXÀXÀ`À`À` ` `€hÀ` `À` `À` ` ` ` `€` `€`ÁXÀX!IQIQIQQQ Y Y Y a Y a`a@a@a@i`a@i@a a@i@i`i@i`i@q`i@q@i@i@i@i`q`q`q`q`q@q`q@q`i@q@i i@i i@i i a i@a i@a i a a Y a@Y a YY YYQàPIàHAàHIQIàHII"I"YáhÀpÀhÀpàpÀxqyy�à€£¡äÉÃÑäÑãÑãÉÃÑãÉ¢ÑÃÉÃÑãÉÃÑäÑÃÑÃÑ‚ÑãÉ#ÚÓ#ÛÛaÒ!£ÚäÚ‚ÒäÉ£ÑÊ$Ò„ÒcÒÒÄÑ%ÒEÚdÒdÚÒÃѤɤÑdÒÅâ'Û¥ÚңуɃÑãÉÚ`Á�Á`Á`¹ Á@¹ Á@¹ Á@Á`É�Á�É�É�É¡ÉaÉ�Á�Ñ‚É�ɢɢѢɢѢѢÑÃÑÂÙãÑÃÙÃÑÂÑÃÑ¢ÑÂÑ¢ÑÃÑÂÑÃÑÂÑãÑãÙÒÚÒäÑÒÒ$Ò$ÒEÒ$ÚEÒEÚEÒEÚEÒÒFÒDÓÇãEãBÂãÉ$ÒâÉÂâÉâÁ¢±‚©a™a‰‰àxÀpàhi!a!i!aiaÀhÀhÀhà`Àhà`ÀhÀ` ` `€h `À`a Y Q Q IQ QY QYQY Y a Y a@a@a@a a@a i@a@i`a@i`a@i@a i@a a@a i`i@q@i@q`i@q`i@q@i i@a i@a i a i@a i@a a Y a Ya YY QYQQIàHàHàHà@àHAàHIàHI!QbQàpàhÀpàhÀpàpÀxàxàxy�y™ä±ÂÑÃÉÂÑãÑÂÑãÑ¢ÑÃÉ¢ÑÃÑÂÑãÉÂÑãÑÂÙÃѢ٢тѣÑbÒÄÚbÛƒÛ¤âcÊâÑ$Ò‚Ú‚ÒãÑÄÉÃÑÒCÚCÒãÙÃÉÃÑäÑCÒ¤Ú¤âdң٣ɢÑãÑdÚÆâåâ¥ÒÓÛ#ÓÛÓÁÒ¢ÊaÊÊÀÁaÁ@Á!¹ ÁaÁaÉ‚ÁaÁ‚ÉaɂɂɂɂɢɂѢɢÑÃÉÂÑÃɢѣɢѣɢÑÃÉ¢ÉÃÉ¢ÑÃÉÃÑäÉäÑÒãÑäÑäÑäÉäÑ%Ò%ÒEÒ%ÒEÒ%Ò%ÒÒFÒ%ÒFÊfÚeÓ†ãæÒâ¹äÁäÑãÉ¢ÉãÉãÑäÑÃÑãÉÒ…ÂC²¢©B‘‘!y�bqAqbi!i!aa!aaá`À`ÀhÀhÀh hÀ` hQàP IIIàHIQQQ Q YQYQY@Ya YY Y aAa a a a Y a Ya Y a Y a aa Y a a a a a aa aa a a!YYQQQYQàPàHàPàHÀHÀ@À@À@À@à@ÀHà@à@AàHA!QiÀhÀhÀpàhÀpÀpÀpàpÀpàpàxyyb±ÃÉÃÉ¢ÉÃÉ¢ÑÃɢɣɢÉÃÉÃÑÃÉ¢ÑÃÉÃÑÃѢѢɢѣɂуÉbÉÂÉãÑÂÊÛ"Ó"ÛdÒÂÉÃÉäÑcÒCÒäÉÃÑÄÉ£ÑCÊcÚDÒâɣɃÑÃÉãÙ¥ÒåâÆÚCÒÃÉ‚ÉDÚeÚdÚ…Ú£ÚÄÚãÚ$ÛCã„ãcãcÛÃÚbÊ¡É@¹ÁA¹`Á¡Á�É¢ÉaÉ‚É�Ñ¢É�ѢѢÑÂѢѢɡѢɢѢɢѢɢÑÃÉ¢ÑãÉãÑäÑãÑãÑãÑÒäÑÒ$ÚEÒ$ÚEÒ$Ú%Ò$Ò%Ò$ÒEÒeÒeÒEÒ†ÒDÛ…ÛÅÚ¢ÉãÉâÑâÉÂÉÊÒ#ÊãÑãÉâÑ$ÒdÒÅÚåÒåÒ„ÊDºã¹Â©¡©�¡a¡a™@‘A‰ �yàpàhÀh ` `aaa QIà@àHIQIQQQIQ QY QY YY Qa@Y a Y a YY QYQY QY YYYY QY YYYYYY QQQàPIàPIàHà@ÀHÀ@À@À@À@à8À@à@À@à@àHAIAIàhá`ÀpÀhÀpàhÀpàpÀxàpÀxàxàxàpÀˆ£¡¢ÑÂÉ¢ÑÃÉÂÑÂɢɢɢɢɢÑÃÉ¢ÑÂÉ¢ÑÃѢѢÑ�Ñ¢É�ѢɢѢɂтÉaÉ‚ÉáÑBÒÁÒâÒÛ#ÛÚÂɂѣÉÒCÒ"ÚʂѣÉÂÑ#Ò£ÚÄÚDÚãɂтɂтÉ&ÚÚ&ÚÚ&ÚÚ&ÚÚEÒEÚ¥Úåâ…ÛÅëäÄãäÒÂ!¹à¸A¹aÉ¢ÉaÉ‚ÁaɂɂɢɢѢɢѢɢѣɂɢɢѣɢÑÃÉÃÑãÉÃÑäÉÃÑäÉãÑäÉäÑ%ÒÒ%ÒÒ%ÒÒ%ÊÒ%Ê%ÒEÒEÒFÒEÒEÊeÚeÓdÛ…ÒÂÉÃÉãÑãÉÂÉÃÉ£ÉãÉÒ$ÊÒäɢɣÉbÉbÁAÉbÁAÉbÁAÉBÁBÁb¹bÁ‚±A©b™!™!�‰Áy€yi hÀX `ÀHÀPAàHà@àHIQIQIQIàPIàPQQIQQàPQàPIÀHIàPIàPIàPàHàPIàPIàPIàHàHàHà@ÀHÀ@À@à@À@À8À@À8 8À8À8À8À@à8À@à8À@á@IÀ`Àh ` hÀhÀpÀhÀpÀpÀxÀpÀxÀhÀpÀx!‰b¹¢É¢Á¢É¢É¢É£É¢É¢Á‚É¢Á�É¢Á�É¢Á¢É¢É¢Ñ£É‚Ñ¢ÉaɂɂѢɂтÉaÉ‚ÉaÉ‚ÉaÉaÁ�ÉAÊ‚ÚÓáÚ£Ò‚ÒCÒÁɃɃÑÃÉÒCÊBÒÃɂɣɂуɂÑÃÉÚ$ÚEÚEÚEÚEÚfÚEâFÚEâFÚ%âFÚEÚfÚÅÚ'ãìhìGì¥ÓÒ`¹ÁaÁ�É�ÉaÉ�É�Ñ¢É�ɢɢÑÂɡѢɂѢɢÑÃÑÂÑãÉÂÑãÑãÑãÑãÑäÑãÑÒÒ$ÒÚ$Ò$ÚEÒ$ÚEÒ$Ò%ÒEÒEÒDÒeÒEÒeÒDÒÆÒdÛ#ËÒÂÁÂÑãÑÒÊÂÑÂɢɢÉÂÉÊCÒdÒ¤ÒÅÒÄÚåÒ¤Ú„ÒCÒ#ÊâÑãɢѢɢɣÁ@Â�º¡©@™‘‰àxàp hÀ`ÀXÀXàHàHIIIIàHIàHIàPIàHàHÀHàHàPIàPàHàHàHàHàHàHàHàHàHàHàHÀHàHàHà@ÀHà@ÀHÀ@À@à@À@à@À@à8À@à@À@à8À@à8à@9à@AÀPQÀhÀ` hÀh pÀhÀpàhÀpàhÀpàhÀ€�‘A™@¹¡Á�É¡Á�ɢɡɢɡɢÉ�É¢Á�É�Á�É¢Á�ɢɡѢÉ�Ñ¢É�Ñ‚É�Ñ¢É�Ñ¢ÉaÉ�ÉaÉ�É`É�É`É�ÉaÉ�É ÉÒ€ÒâÚáÚâÒBÒ"ÊBÚʂɂɢÑÃÉ¢ÑÃÉCÒÅÚ¤â„Ò„ÒdÚ„Ò„ÚÅÚÅâ¥Ú¥â†Ú…â†ÚEÚFÚ&Ú&ÚÚ%ÒEÚfÓjülõêì&ÛÁ¹¹@Á‚ÁaÉ‚Á�ɂɂɢɢɢÁ¢É¢É‚ɣɢÑÃÉÃÑÃÉÃÑãÉÃÑäÉãÑäÉäÑÊÒ%ÒÒ%ÒÒ%Ò%ÒEÒÒEÊ%ÒEÊ%ÒEÊEÒfÒEÒDÂÅÚ$Ó‚Ê#ÊâÉÃÉ£ÉãÉãÑ#Ê#ÒdÊdÒdÊCÊCÂ#ÊDÊ#ÊDÊ#ÊCÊ#ÊCÊCÒdÊÊṃңÒàÁb¹A¹a© ©A™™!‰àˆáp pÀ` `ÀPÀPIÀH9à@AIAàHà@À@À8À@à@àHà@àHà@ÀHà@ÀHÀ@À@À@ÀHÀ@À@à@À@À8À@à@À@à8À@À8À@à@àHAà@à8à@à8À8À8À@ÁHÀPÀXÀ`À` hÀ` hÀ` h ` hÀ` hÀhàx‰A™`±`¹�¹€Á�¹aÁ�¹aÁ‚Á�É‚Á�É‚ÁaÁ‚ÁaÁ‚ÁaÁ‚Á‚É‚Á�É¢Á�É‚É�É‚ÉaÉbÁaÉ‚ÁaÉ‚ÉaÉaÉaÉaÁ@É`Á`ÉaÁaÉ‚ÉAÉaÁaÉáÁ!ÒÁÊÁÒ¢ÒaÒÊâÑÃÉaÉcÊÄÚdÒÊ‚ÉaÉÚ%Ò$ÚEÚEÚeÚdÚ…Ú„âÅÚåâãã&ã†âeÚ%Ú%ÚÚ&ÚÅÚ©ë*õkõÇóbºÁ@ÁaÉ�ÉaÉ‚É�Ñ¢É�ɢɡѢɢѢɢÑÃÑ¢ÑÃÑ¢ÑÃÑÂÑãÑãÑÒãÑ$Ò$Ú$Ò$Ú%Ò$Ú%Ò$Ò%Ò$Ò%Ò$ÒEÒDÒEÒDÒEÒ$Ò%ÊcÊåÚãÚbÂÂÉÒÒâÉ‚ÉaÁ!Á!¹ ÁA¹AÁaÁaÁaÁ!Á!¹Á!Á!ÁBÁ�Á#ÒâÚ�Â`ÁaÁ`Á�¹aÁ�Á`Áa¹@±@© ¡™àˆà€Àp h ` ` P PÀHàHàHAà@à8à@9à@AàHAàHAàHà@ÀHÀ@ÀHà@ÀHà@ÀHà@àHà@àHà@à@à@à@AIAIAI!A`Q�Q`aaYiiÀhÀ` h `€h€`€pÀpÀˆ ‰™@™@±`±`Á€¹`Á`¹`¹`±`¹�¹`Á�¹`Á�ÁaÁ�ÁaÁaÁ`ÁaÁ`Áa¹`Á�ÁaÁ�Á�É�Á�É¢ÁaÉ�É�ÉaÁ`É�ÉaÉ�É`É`Á`É`Á`É`Á`É€Á`É�É�Ñ�ÉaÑaÉ@É�ÉàÉBÒ Ú¡ÒAÒaÊ"Ú¡ÁAÉbÉaÉ¢ÉÒåÙ%ÒÚ&ÒÚ&Ò%ÚFÒEÚFÚEÚ¦ÚæâGãgëhãÆÚfÚ%ÚÒåÙEÊçêÊìLý)ìƒÂ!¹ Á‚Á�É‚Á�É‚Á�ɢɂɢɂɢɢѢɢѣɢÑÃÉÃÑäÉãÑäÉäÑÊÒÊÒ%ÒÒ%ÊÒ%ÊÒÊÒ%Ê$ÒEÊ$ÒEÊ$Ê%Ê%Ò¤ÊÄÒ£Ò¢Á¢ÉC¤ÒfÓ¦ãçÛä‰ä©ì‰äHä(äÆÛ†Û$Ó¤ÊB¢ÂÂÒ‚Á¹A¹AÁa¹aÁa¹aÁa¹aÁa¹@¹A± ¹A© ©A™™ �à€áp pÀ` `ÀP€P H HÀ@ HÀ8À@À8àHAàHAà@à@àHà@À@À8À@à8À@Aà@9à@à@à@á@àHIQQY"Y"ababi‚aai¡i�q¡i€q�q€y€‰€‰ ™ ¡ ©@¹`±`¹`±@±`±`±`©@±@±@±a±`¹a±`¹a±`¹a¹aÁa¹aÁa¹`¹a¹@¹a¹aÁ‚ÁaÁb¹aÁ‚ÁaÁ�ÁaÁa¹@Áa¹`ÁaÁ@Á`Á@ÁaÁ`É`Á@É`Á`É`Á`ÉaÁ`ÉaÁ`ÉaÁ@ÁaÁ@ÁaÁ�É!ÊaÚ‚ÒaÒBÊáÉãÉãÑ#ÚDÒ$ÚDÚDÚEÒEÚEÚEÚEÚ%ÚEÚ%â&ÚEÚfÚæâGã¨ë¨ãÇê…ÒÚ%ÚÒ†ÚçãªôçóÂÂ@ÁAÁaÁ�ÁaÉ¢Á�É¢É�É¢É�ѢɡѢɡѢÉÂÑãÑÂÑãÑãÑãÉãÑÊÒ$ÒÒÒÒÒÒÒÒÒÒÊÒEÊDÒEÊÒÊ$ʦÚÄÛ&ä†ì§ìˆì©ìHôäfãgÛ&ã&Ûã&ÛEãfã¦ãçãæëäFì&ä…ãDÓBÒÁ¹@Á ¹@¹a¹`¹a¹@¹`¹@¹`¹@¹`±@±@±@±`©@©`¡@¡ ‘‘‰�yàpàhÀhÀ`À`à`À`àXÀXàX XÀPàP Q`Y�QaY�YAaAYaYáhiápiápqápqápqy#y"‰c‰B‘ƒ‘‚©ä©º„ÂÂÒÓÓÁÊ!ÂÀ±@±@©@±`±`±`©@©@©@±`±`¹`¹`¹`±@¹`±@¹`¹`Á�¹`¹`±`Áa¹`Á�Á`Áa¹@¹`¹@Á@¹ Á@¹@Á`¹`Á€¹ ÁÁÁÀÉáÁ¡ÉÁɡɡÁ`É€Á@É@Á@É@Á@É@Á@Á`Á`É€Á`É�ÉaÉ�É ÉâÉ@Ò�Ò�ÚaÊDÒDÚdÒDÚ…Ò„Ú…Ú¥âÅÚ„Ú†Ú…ÚfÚ%Ú%ÒÚ&ÒÚeÒÆâ©ãÉë(ã†Ú&ÒÚÒ%ÚfÛôÇã‚Êa¹AÁ�¹aÁbÁaÉ‚Á�É‚ÉaÉ‚ÁaɢɂÉÃÉ¢ÑÃÉÃÑãÉÃÑäÉãÉÊãÑÊãÑÊãÑäÉäÑÊäÑÊäÑÊäÉäÉÒ&ËÉëªä‰ì ì†Ûçâ…ÚEÚÚÚäÙåÑäÙÚåÙÚåÙÚäÙäÑÄÙåÑäÙEÒeâ&Ûfëäæë¦ãÓãÁ`± ± ±`±@¹@± ±@± ±@© ±@©@±`±`¹a±@±`©@±`©@©A¡¡ ‘™ ™™‘à�àˆ‘ ‘à™B’!’㉢‰ƒ‰c‘c‰C‘C‘C‘c‘ƒ™Ä™ä¡ªªEª$²%²²å¹äÁÂÊåÉäÑÒÒ%ÒÒ%ÒÒdÒdÚÃÊÂÒÂÊaÊâ¹€± ¡©@¡ ©@©@±`±@±a±@±A±@¹a±@±a±@¹a±@±A± ± ±±± ¹¡¹áɃÊÃÒ#Ó#ÛdÓdÛdÛcÛdÛdã¤ã„ã„ÛdãdÛcÛCÛ#ÛÓÂÒ¢ÒaÒ!ÊàÉ¡Á`ÁAÁAÉaÁaÉ¢É�É�É`ÉaÁaÉÀÁÒÚ%ÒÚ%Ú$ÚEÒ$ÚEÒDÚeÚ„ÚÅÚãFãëæÚEÚ%ÒäÙÒÒfÚ&ã©ëHëÆÒEÚFÚÚ%Ú%Ûèë¦ë¢Â@Áa¹aÉ�Á`É�ÁaÉ�ÁaÉ‚É�ɢɡÉÂÉÂÑãÉÂÑãÉÂÑãÉâÑÊãÑÒãÑãÉãÑÊãÑÊÒäÉ¢Á$ÊçÛ-ý ýIäæêdÒÚ%ÚÚ%Ú%âFÚEâEÚ%âEÚ%âEÚ$âEÚEâ%ÚÚ$Ú$â%ÚÚÚäÙäÑäÙEÚäÚ†ëåë¤ÛÃÒº ¹ ±@±`±@±@±@¹@±@±`±@¹`±@¹`±@±`±`¹`±@±@© ©@© ± ©@±Á¹ ÊÓãÚÃÊDÒ$ÊäÉåÉäÉÊ$ÊEÊ¥ÒæÒ&Ó‡ÛgÛgÓgÛgÓ&ÛGÛ&Û&ÓåÚÓåÚÛÅÚÅÒ„Ú…ÒDÚEÒ$Ò%ÒÒÒÒ%ÒcÒ¤ÒÛÓ‚Êà± © ¡@±`±`±`±@±@©@±`±@±`±`±`±±©±a±!ÂÄÊ„Ûä&ìGäæëÅãEëEÛÄâ¤ÚdâdÚ$âDÚ$âDÚ$ÚDÚ#ÚDÚdÚ…Úƒâ¤ÚÃÚäÚ"ÛCÛcÛcÛãÚ‚ÊáÑÁÉaÉaÁ`É�É€É�É`ÉaÁÒäÑÒÚ%ÒÚ%ÒÚ%ÒÚ%Ò%ÚEÒEÚçÚHëˆã&Û¦Ú$ÒÒÚÒ%ÚÆÚã'Û¥ÚFÒ%ÚÒÚÓ‡ëfãAÂA¹AÁa¹`ÁaÁaÁ‚ÁaÉ‚Á�É¢Á¢É¢É¢É£É¢ÉÃÉÃÑãÉÃÉäÉÃÉãÉãÉÊãÑÊÃÉ£¹%ÒŠÔŽýíü§ÛFÚÒ%Ò%ÚEÒ%ÚEÚ%ÚEÚEâFÚ%ÚFÚ%Ú%ÚÚÒÚÚÚÚÚ%Ú$âÒäÙÒÚ%ÒäÙäÑÄÑDÒ…â…Û¥ãEÛ�Âa¹± © ±`±@¹`±@¹@±@¹`±@¹@© ±`±@¹`±@±@± ±€±áÁÂÂÓÅÒcÒÊäÑÊÒeÊ…ÚÅÒÅÚÅÒÅÒÆÒ…ÒfÒEÒ%ÊäÑåÉäÉäÉÄÉäÉäÑÊÒ%Ò%ÒeÒEÒ…Ò„Ú¤Ò„Ò„ÒcÒEÊ$Ò%ÒÒ&ÒÒEÊEÒÃÊÃÒÃÊ@º�± ©@©@±`© ©`©`±@©©© ±²åÒGÜ©ì©ìGì‡ãÛeÚÒÒäÙäÑäÙÒäÙÒäÙÚÚÚäÙÒäÙÒäÙÚäÙåÑäÙÄÑÄÙäÑäÙDÒdÚÄÒÄÚ#ÓÛÂÒ@ÊÁÉ€ÁaÁaÉaÁ`ÉCÚdÒcÚ„Ú„Ú„Ú„Ú„ÒDÚeÒ$Ú%ÒÚ%ÚÚÒDÒ¦Úfã¨ãGë¥ÒÚÒÚ%Ú„ÚÆÚåâÅÚEÚ%ÒåÙÒÛ¦ã$ã!º@ÁaÁ`Á�ÁaÉ�ÁaÉ�Á�ɢɡɢɢÉÂÉ¢ÉÂÉÂÑãÉÃÑãÉãÑÊÒÊÂÉDÒiÜ�ýÌü‡ÓÚÒEÚfÚeâeÚEÚEÚ$ÚEÚ$ÚEÚ%âEÚ%âEÚ$â%ÚÚ%Ú$â%Úâ$Ú$â%ÚâÚÚ%ÚÚÒÚ$ÒÚäÑÃÑÒãÚ†ã„ãâÊ¡Á@± ¹`¹`Á`¹@¹`±`Á`¹`¹`¹`¹€¹`Á`¹€¹ÊáÒ"ÓdÚ#ÊäÑÊ$ÒDÒcÒ¤Ò„Ú„ÒeÚEÊÒÊäÑÒäÑåÉäÑÊÒ$ÊÒ$ÊÒ$ÒÒÒäÑåÑäÑåÑäÑåÉÒ%ÒDÒeÒcÚƒÒCÒdÒ$Ò%ÊÒÊäÉÊbÒÄÒÛ¡ÂÁ¹`¡ ©`© © ©`±#Â¥Ó©ìÉô©ä§ë&Ó%ÚÒäÙäÑäÙäÑÚEÚ$âEÚ$ÚEÚÚÚÚ$ÚÚÚÚ%Ú$Ú$ÚÚ$ÚÚÒãÙÚÚ$ÒäÙÒäÙäÑãÙÒ‚ÚÃÚáÚáÒAÚàÁ`É`ÁÒÒ$Ò$ÚDÒDÚeÒdÚ¥Ú¥âÅÚ¥Ú†ÚDÒFÒEÚäÑäÑ%ÒEÚæÚ'ãGãÅÚ%ÒÚ%ÒÚEÒ…ÚÆÚ„ÒEÒ%ÚÒÚ$ÓeãÄÒÀ¹a¹aÁaÁaÁaÁaÉ‚Á�É‚Á�É¢Á¢É£É¢ÉÃÉ¢ÉÃÉÃÉäÉÃÉÃÁãÑçÓ ýŒüÓäÑäÙfÚEÚEÒ%ÚFÚEÚFÚ%Ú%ÒÚ%ÒÚ%Ò%ÚEÚÚ%Ú%Ú%ÚÚ%ÚÚ%ÚÚÚÚÚÚÒäÑÒäÙ%ÒÚ%ÚÚÒäÑÄÑÄÑcÊÅâdÛ#Û"Ê`± ± ¹`±`¹`¹`Á€¹`Á`¹@¹`±áÉÁÊÁÒEÒÊÅÉÄÑ$ÊDÒdÒCÒEÒ$ÒÊäÑÊäÑÊ%Ò…Ò…ÚÆÒæÚGÛGãhÛgãhÛGãGÛ&ÛÛÅÚ¦Ò…Ò…ÒdÒEÊ$Ò%ÊÒÒÒÊÒ$Ê$ÒdÊCÒEÊ$ÊÊäÉåÉåÑDÊ„ÚãÊ¡ÊÁ±@¡á©Ó‰äÉì ìFÓEÒäÉåÑåÙ%ÒÚ%Ú$Ú%ÚäÙÚÚ%ÚÚ%ÚÚÒäÙäÑäÙÒäÙÚäÙÒäÙÒÚÒäÙäÑäÙÒÚÒÚÒäÙäÑÄÑÄÑ£ÑãÉÚ¢Ò¢Ú¢Ò ÊÃÑäÑãÑÒäÙÒäÙÒ$ÚEÒ$ÚeÒÄÚ&ã&ãÅÒ…ÚDÒäÙÒäÙäÑdÚÆâãÛEÚ$ÒÚ%ÒDÚeÚ¤Ú¥Ò%ÚEÒ$ÚEÒÛEÛcÚ ¹@ÁaÁ`Á�ÁaÉ�Á�É¢Á¡É¢É¡É¢É¢ÉÂÉÂÉãÉ¢ÉÃÉdÓ©ô üåÊÃÙÚ$ÚEÒ$ÚEÚ$Ú$Ú$ÚEÚ$ÚEÚ$Ú%Ú$Ú$ÚÚEÚ$â%Ú$ÚEÚ$Ú$ÚÚ$Úâ$ÚäÙÚäÙÚÚÒãÙ$Úâ$ÚÚ$ÚÚÒäÙÒäÙäÑ#Ò¥ÚcãCÓBÒ ± ¹`¹`Á€¹`Á`Á`¹áÁ¡ÒâÒDÚ$ÊäÑåÉ"ÒCÒCÚ#ÒÒÒÒÒÒ%ÒCÒ…Ò„ÚÅÚÅÚ¤Ò„Ú…ÒDÚDÒÒ$ÒÒÊãÑÊÒEÒDÒEÒDÒ…Ò„Ú„Ò„Ú„ÒCÒDÒÒÒÒÒ$Ò$ÊCÒcÊCÒCÊÒ%ÒÒÊãÁ$¤Ógä©ôhäãCÂÃÉäÉÒEÒDÚEÚ$Ú%ÒÚ%ÚÚÚÚÚâ%Ú$âÒãÙÚãÙäÑäÙäÑäÙÚäÙÚäÙÚãÙäÙãÙÚäÙÚäÙÚãÙÒãÙäÑãÙãÑãÙãÑãÑãÑ"ÒƒÚäÉãÑäÑãÑ$ÒÒÒÒÒÒäÑäÑäÉäÑEÊEÚ&Ó‡ëHãÅÒÒäÑåÑäÑ$ÒeÚæÚ¥ÚEÒÒÒÒEÊeÚ¥ÒdÒ%Ò%ÒÊ%Ú$ÓÛãÉ`¹a¹aÁa¹aÁ‚Á�É¢Á‚É¢Á‚Á¢Á¢É£Á‚ÉÃIôjô$ÓÄÑäÙ%ÒÚ%ÒÚ%Ò%ÚÒÚ%ÒÚ%Ò$ÚEÚÚ%ÒÚ%Ò$Ú%Ò$Ú%Ú$ÚEÚ$ÚÚäÙÒäÙÒäÙÒäÙäÑäÙÒÚÚÚÚÚÒäÑÒãÑÒÚäÑäÑÊDÚ#Ó#ÛƒÊÀ¹A¹@Á`¹ Á�ÂÁÒDÒãÉäÉäÑCÊCÒDÊÊäÉäÑäÉäÑDÊDÒ„ÒcÒdÒDÒ%ÊäÑäÉÄÉÄÉ£ÉÄÉ£ÑÄÉ£ÉÄÉÃÉÄÉÃÉäÉÄÑåÉÄÉÄÉÄÑÊÒ%ÊÒDÊ#ÒCÊCÒDÊ$Ò%ÊÒÊåÉ$Ê#Ò„ÒCÒäÁäÉ%ÃçãiìçÛ†ÒÃÁÄÁäÑÊÒEÒ$ÒÒÚ%ÒÚÚÚÚÚäÑÃÙÒÚÚäÙäÑÄÙäÑäÙåÑäÙÒäÙÒäÑäÑäÙäÑäÙäÑãÙÒäÙÒäÙäÑãÙäÑÃÑäÑãÙÒãÑäÑãÑäÉÃÑCÚcÒCÚcÒcÚ„ÒdÚ„ÒdÚdÒ$ÒÊãÑäÉÃÑäÑãÑ$ÒÅÚgãFëåÒ$ÚÒäÑäÑÒEÚ¤Ú¤ÚDÚ$ÒÚ%ÒCÚdÚdÚDÒÒ%ÒãÑEÒãÚÂÊ¡É`¹`Á�Á�É�Á�É¢É�ɢɂÉbÁaÂÇëHô…ÓäÙäÑÚ%ÚÚ%ÚÚ%ÚÚ$ÚÚ$Ú$Ú$ÚÚ$Ú$Ú$ÚÚ$ÚÚ$Ò$Ú$Ú$Ú$Ú$Ú$ÚÚÚÚÒãÙÒãÙÒãÙÒãÙÚÚ$ÚÚ$ÚÚ$ÒÚÒãÙÒãÙÒäÙäÑÃÑ$ÒÛDÛ£Úº ÊÂÒcÚ"ÊÄÑäÉBÒcÒ#ÒÊäÑäÉãÑ$ÒBÒCÒ#ÒCÒÒÊãÑÊãÑÊÒDÒ„ÒÅÒÛ&Ûgã‡ãgãgÛ&ãÛÄÚ¤ÒdÚdÒ#Ò$ÒÒÊÒÊäÑåÉÒ$ÒCÒCÊ#Ò#ÊÒ%ÊÒFÒÊDÊdÓ'äìeÓ$ÚÊÒ$ÒÒÊäÑ$ÒÚ%ÒÚ$Ú$Ú$ÚÚÚÚÚãÙäÑãÙÚãÙÚÚÒäÙäÑãÙÚäÙäÑãÑäÑãÙÒãÙÒãÙãÑãÙÚãÙÒãÙãÑãÙãÑãÙÒãÙÒãÑãÑãÑãÑäÉÄÑäÉãÑÒãÑÒÒdÒdÚ¥ÒÅÚæÚ¥ÚEÒãÉÄÉ£ÑÄÉ£Ñ$Ê…ÚÛÄÚEÒÒÊäÑÊ%Ú„ÒcÒ%ÒÒÒäÑDÊDÒDÊÒÊäÑÊDÒÃÒAÊ‚¹aÁ‚ÁaÁ‚Á�É‚ÁAÁá¹ãGì„ÛÒÃÑ%ÒÚÒÚÒÚÒäÙÒäÙÒäÙ%ÒäÙÒäÙÒäÙÒÚÒãÙÒÚ%ÒÚ%Ò$ÚÚäÙäÑãÙäÑãÙÒãÙäÑäÙäÑãÙäÑãÙÒãÙäÑãÙÒãÙÒãÑäÑäÑäÑäÑäÑÄÑäÉäÑÃÒÛ$Û¡ÒÅɤÑ#Ê#Ò$ÊãÉÄɤÑÊÒ#ÊÒÊãÉäÉÃÉäÉäÑ$Ê#ÒdÊdÒ„Ò„Ò…ÒdÒ…ÒdÒEÊÒ$ÊÊÊÒ$Ê$ÒDÊDÒDÊDÒdÊCÒDÒCÒ$ÊÒÊäÑåÉäÑÊÒCÊCÒeÊEÒfË)ìèëÓÊäÑ%ÊÒ%ÒÒÊÒÊÒÒÒÒÚÒÚÒäÙÒäÙäÑãÙäÑãÙäÑäÙÒäÙäÑäÑÒäÙÒäÑäÑãÑÒãÙäÑãÙÃÑÃÙäÑãÙÒäÑäÑÃÑãÑÃÑäÑãÙäÑÃÑÃÑÃÑÃÑ£ÑÃÑäÑÃÑäÑÃÑÃÉ£ÑÃÉÃÑäÉãÑÒ#Ò…ÚåÚÛ„ÚDÊÃÑÄÉÃÑÄÉãÑEÚ¤ÚÄÒDÚ$ÊäÑÒÒ$ÒcÚ„ÒÒ$ÒÒ%ÒCÒdÒ#Ò$ÊäÑåÉ"ʄҢÚ!ÂaÁ�Á�É�Á€Á„ÚFìä$ÚãÉÚ$ÚãÙÚÚÒÚ$ÚÚÒãÙÒãÙÚÚÒãÙÒãÙÚÚ$ÒãÙÒãÙÚÚ$ÚÚ$ÚÚÒãÙäÙãÙãÑãÙäÙãÙãÑÃÙãÑãÙãÑãÙÒãÙÒãÙÚãÙÒãÙãÑäÙäÑãÑÒãÑäÑÃÑãÑaÒãÚãÚÂÊCÒʤÑÄÉãÑÒ"ÒCÒãÑãÉÃÉäÉãÑÊ"ÒCÒCÒCÊÒÊÃÑäɣѣɢɣɂɣÁ‚ɣɂɣɣÉÃÉ£ÑÄÉÃÑäÉãÑÊÒ$ÒCÒCÒBÒCÒÒÊäÑÊãÑ$ÒdÓ‰ìIôEËäÑÊ$Ò%ÒÒ$Ò$Ú%ÒÒ$ÒäÑÒÒ$ÒÚ%ÒÚ$ÒÚÒãÙÒãÙãÑãÙãÑãÙãÑãÙÒãÙäÑãÙÒãÙãÑãÙãÑãÙÒãÙãÑÃÙãÑãÙãÑãÙãÑãÙãÑÃÙãÑÃÙãÑÂÑãÑ¢ÑÃÑÂÑÃÑãÉâÑãÉÂÑãÉâÑãÉÃÉäÉÃÉÄɣɤɣɣɣÑdÊÅÚæÚ„ÒÒÃÉäÉÄÑäÉäф҃ÒEÒãÑåÉäÑÊ$ÒdÒCÒÊäÑÊÒCÊ#Ò$ÊÊåÉÄÉBƒ҃ÒÀÁa¹ÒåÛ&ì¦ÚâÉäÑäÑÒäÑÒäÑÒäÑäÑãÙäÑãÙäÑÃÑÒÚÒãÑäÑãÙäÑãÙäÑãÑäÑÃÑäÑÃÑÒãÙÒãÑäÑÃÙäÑÃÙãÑÃÑãÑÃÑãÑÃÑÃÑÃÑãÑÃÑäÑãÙäÑãÙäÑäÙÒãÑäÑãÑäÑãÑäÑãÑãÉÃÑäÉãÑÃÉÃÑ‚ÊÃÚÓ‚ÊÊÒCÊ"ÒäÉÃÉÄÁ£ÉÂÊ#ÊÊÊãÉÄÉ£ÉÄÉÃÉãÉãÑDÊdÒÅÒÅÚæÒÅÚæÒ¥Ò¥Ò„ÒdÒCÒ$ÊãÉäÉãÉäÉÄÉåÉÄÉäÉäÉÊÒCÊCÒDÊÊå ìŠì…ÓÊäÉ%ÊÒ%ÒÒ%ÒÒÊÒÊäÑäÉäÑÒäÑäÑäÑÒäÑÒäÑäÑãÑäÑãÑäÑÃÑãÑÃÑäÑäÑäÑãÑäÑÃÑäÉÃÑÃÑÃÑãÑÃÑäÑÃÑÄÑÃÑãÑÃÑäÑÃÑäÉÃÑãÑÃÑãÑÃÑÃɢѣɢÑÃÉ¢ÑâÑÊâÑÒÒ#ÒÒCÒcÒ„ÒdÚdÒÒãɂɣɢɣÉâÉdÒ¤Ú„Ò#ÒÊÃÑäÉÃÑÒCÒcÒÒÊäÑÒÒ$ÒCÒCÊäÑÊãÑÊ"ÒCÒÒÊÄÑÄÉBÊÄÚcÓ&äë"ÊÃÑÒãÙÒãÙÒãÙÒÚÒãÑãÑãÙãÑÃÙãÑãÙÒãÙÒãÙãÑãÙãÑãÙãÑãÙãÑÂÑãÑÂÙãÑãÙãÑÂÙÃÑÂÙÃÑÂÙÃÑÂÙÃÑÂÑãÑÂÙãÑÂÙãÑÃÙãÑãÙãÑãÙãÑãÙãÑãÑäÑãÑãÑãÑãÑÂÑãÉãÑãÑãÑãÑ£ÑÃÉbÒäÚ"ÛâÊãÑÃÉ£ÉÃÉÊ"ÊÊÊÃÉÃÉÃÉÃÉÂÉÊ#ÒDÊcÒ¤Ò¤Ú¤ÒdÒdÊCÒDÊ#Ò$ÊÒ$Ê#Ò#Ê#Ò#Ê"ÒCÊ#Ò#ÊÒÊãÑÊäÑäÉÄѤɢÊèë‰ôÆÓ$ÒÊÒ$ÒÒ$Ò$Ú%ÒÒÒäÑÒäÑÒãÑÒÒÒãÑäÑãÙÒãÙÒãÑÒãÙãÑÃÙãÑÂÑãÑãÑÒãÙãÑÃÙãÑÂÑÃÑ¢ÑÃÑÂÑãÑãÑãÑÃÙãÑãÙãÑÂÑÃÑÃÙãÑãÙãÑÂÑãÑ¢ÑÃÉ¢ÑÃѢѢÉÃÉÃÑÃɣɣɂɣÁ£ÉãÉãÉ$ÊDÚÅÒÅÚ¥Ò#ʣɂɣɃÉÃÁäÑ„ÒcÒ$ÊâÉÄÉÃÑäÉãÑCÊBÒ$ÊãÉåÉäÑÊÒDÒÒäÉÄÑäÉãÑDÊ#ÊÄÁ¤ÉãÂçëfãBÊ£ÉÃÑäÑãÑäÑãÑäÑãÙäÑãÑäÑãÙäÑÃÑãÑÃÑãÑÃÑãÑÃÑäÑÃÑäÑÃÑãÑÃÑãÉÂÑãÑÂÑÃÉ¢ÑÃÉ¢ÑÃÉ¢ÑÃɢѢɢÑÃѢѣɢѣɢÑÃÑ¢ÑÃÑÃÑãÑÃÙäÑÃÑãÑÃÑãÉÃÑãÉÃÑãÉÃÑãÉÃÑãÉÃÑãÉÃÑÃÉÂÑÃɢɣɣÑbÊÃÚÓ�ÊÊÒãÁ¢Á£Á£ÉÃÁÃÉÂÊ#Ê"ÊÊâÉãÉÃÉ£Á‚ÁƒÁbÁƒÁbɃÁ‚ɃÁƒÉ£ÁƒÉ£ÁƒÉ£ÁÃÉãÉãÑ#Ê#ÒCÊBÒ$Êãɺã‰ìæÛEÒäÉÊÒ%ÒäÑÊÒ%ÒÒÒäÑÊãÑäÉÄÑäÉäÑäÑÃÑäÉãÑäÑãÑäÑÃÑäÑãÑäÑãÑÃÑ£ÑÃÉÃÑãÉÂÑÃÉÃÑÃÑÃÑÃɢѣɢÑÃÉ¢ÑÃÉÂÑãÑÃÑãÉÃÑÃÉÃÑäÑÃÑÃÑÃÑÃÉ¢ÑÃɢѣɢѣɂɢÉÂÉ¢ÉÂÁ¢É¢Á‚É£Á‚É£Á‚ɣɢÉÊ„ÒÅÚÅÚ¤ÒãÑÃÁ¢É£É£ÉäÉBÒcÒ#ÒÊÃÉäÉÃÉÊBÒCÊÒãÉÃÑäÉÒCÒ#ÒÊãÑäÉÂÉÊÂÒ…ã†ëÃÊ£ÑÃÉãÑãÑãÑÒãÙãÑãÑãÑãÙÒãÙãÑãÑãÑÃÙãÑÂÑÃÑÂÑãÑÂÑãÑÂÑãÑÂÑãÑÂÑÃÑÂÑÃѢѢɡÑÂÑ¢ÑÂѡѢÑ�ѢѢÑÂѢѢɢѢѢÑÂÑÂÙÃÑ¢ÙÃÑÂÙÃÑÂÑãÑÂÑÃÑÂÑãÑÂÑãÉÂÑãÉÂÑãÉÂÑãÉÂÑÂÉ¢ÑÂÉÂÑÃÉ¢ÑÃÉAÊÃÒâÒ¡ÊÃÉ£Á¢ÉãÉÊ"ÊÊÊÃÉÃÁ¢É£ÁÂÉãÉÂÉÊ#ÒdÊdÒ…ÒdÒ„ÒCÒCÊÒãÉÂÉÃÉ¢ÉÃÉÃÉäÉÃÉäÉãÑÊ!ÊäÚ&ä'ä…ÚÂäÑ%ÒÒÊÒ$ÒäÑÒäÑÒÒÒãÑãÑÃÑãÑãÑäÑÃÑãÑÃÑãÉÃÑãÑÃÙãÑãÑãÑãÙãÑÂÑÃÑÂÑãÑÂÑÃÉ¢ÑÃɢѣѢѢɢɢɢѢɢÑÃÑÂÑãÑÂÑãÉÂÑãÑÂÑãÉ¢ÑÃѢѢɢÑÃɢѢÉ�É‚É#ÊÒ#ÊÒDÊ#ÒDÊCÒdÊCÊÊÂÉ£Á‚ɃÁƒÉãÉDÚ¥ÒcÒãɢɣÁ£ÉÃÁÃÉ#Ê#ÒÊÂÉÄÉÃÉÄÁÃÉCÊ"ÊäÉÃÉäÉÃÉCÊCÒÊ£ÁBºÛ…ÛÂʣɂÉÃÉÃÑÃÉÃÑãÑÃÑãÑÃÑÃÑÂÑãÉÃÑäÑãÑäÑÃÑÃÑÃÑÃɢѣɢÑÃÉ¢ÑÃÉÃÑÃÉ£ÑÃÉ¢ÑÃɢɣɢѢɂтɂтɂтɂѢɂѢÉ�ɢɂѣɢѣɂѣɢÑÃÉ¢ÑÃÉ¢ÑÃÉÂÑÃÉÂÑÃÉ¢ÑÃÉ¢ÑÃÉ¢ÑÃÉ¢ÉÃɢɣɢɣÁ¢ÉÃɢɣɣÉ"ÂcÒÃÊ�ÊCÊáÁÃÁÂÉÃÁ£Á£Á£ÉãÁâÉ#Ê#ÊDÊDÒdÊDÒeÊDÒDÊDÒDÊ#ÒCÊ#Ê#ÊÊÂâÉÂãÉäÁÃÉÄÁäÉ¥ÓìÇÚÂåÉÒÊäÑÊäÑÊÒäÉäÑäÉãÑäÑãÑäÉÃÑäÉÃÑäÉÃÑäÉÃÑÃÉ£ÉÃÉÃÑãÉÃÑãÉÃÑãÉÃÑÃÉ¢ÑÃÉÃÑãɢɣɢѢɂɢɂɢɂɣɢɣɢÑÃÉ£ÑÃÉ¢ÑÃÉ¢ÑÃÉ¢ÑÃɢѣɂɢɂɂɂɂÁbɢɣÁ‚ɣɢɣɢÉãÉÒDÒ„ÒÅÒ¤Ú„ÒÒãÁ‚É‚Á¢ÉãÉÒCÊÒÊ£ÉÃÉ£ÉÃÉÒCÊâÑâÉÃÉÃÁ¢ÉãÉ"Ò"ÊÃÉäÉÃÉãÉ¢Ê$Ó„ã#ÓÂÑ‚Á¢ÑÂÉ¢ÑÃÉÂÑãÉÃÙãÑÂÑÃÑ¢ÑÃÑÂÑãÑÂÑãÑÂÑãÑÂÑÂѢѢÉ�ѢɢѢɢÉÂÉ¢ÑÃÉ¢ÑÂÉ¢ÑÂɢѢÉ�Ñ¢É�Ñ¢É�Ñ�É�Ñ�É�Ñ¢É�Ñ¢É�ѢɡѢɢÑÂѢѢѢÑÂÉ¢ÑÂÑ¢ÑÂÑ¢ÑÂÉ¢ÑÂÉ¢ÑÂɢѢɢɢɢѢɢѢɢÉÂÉ¢ÑÃÉ¢ÑÃɢɣÉÊcÒ¡Ò�ÊãÉâÁÂÉãÉÊ"ÊÊÂÂÉÂÁ‚É¢ÁbÉbÁaÉbÁaÉ‚ÁbɃÁ‚É£Á¢ÉÃÉÂÉãÉÊCÊÊãÁâÊäFëcÂÃÉÒÒ$ÒÒÒÒÒãÑÒãÑãÑãÑãÉãÑãÑãÑãÉÃÑãÉÃÑãÑÃÑãÉÂÑÃÉÂÑãÉÂÑãÉÂÑãÑÂÑÃɡɢɢÑãÉÂѢɡѢÉ�Ñ¢É�ɢɢɢɢÑÂÉÂÑÂÉ¢ÑÂѢѢɢѢɢѢɢÑÂÉ�Ñ¢É�É¢É�Ñ‚ÉaÉ�ÉÂâÉâÁâÉãÉãÉÃÁ¢ÁbÁAÁb¹‚ÉãÁDÒÅÒ„ÒDÊâÁƒÁbÁ¢Á¢ÉâÁÊ#ÊâÉÃÁ£É£ÁÃÉ#ÊÊãÁ¢É£Á£ÉÃÁãÉÊÂÉ#ÂÅÚ…ÛÓãɂɣɢɢÁ‚ɢɢÑÃÉ£ÑãÑÃÑÃѢѢɂѣɢÑÃÉ¢ÑÃÉ¢ÑÃɢѢɂɢÉaÉ‚ÁaɂɂɢɢÉÃÉ¢ÉÃɢɢɂɂɂɂÉaÉ‚ÉaÉ‚É�É¢É�É¢É�É¢É�É‚É�ɢɂѢɂѢɢѢɢѣɢѢɢѣɢѢɢɢÉ�ɢɂɂÁ�ɣɢѣɢɣɢɣÁ¢É£É£É£Á‚ÁâÁ"Ò¢Ê�ÊCÊ£Á‚Á£Á‚ÁƒÁ‚Á£Á¢ÉãÁãÉDÊCÒDÊ#ÊÊâÉÃÁ¢É£Á¢Á£Á£É¤ÁcÁBºFãÇãÃÊäÉäÑÊäÑÊÒÊäÑäÉäÑÊãÑäÉÃÑÃÉÃÑÃÉÃÑãÉÃÑÃÉ£ÑÃÉÃÑÃÉ£ÉÃÉ¢ÉÃÉ¢ÑÃÉ¢ÑÃɢɢɂɢÁ�É¢Á¢É¢É‚É‚ÉaÉ‚ÉaÉ‚Á�É¢Á¢É¢É¢É¢É¢É£É¢Ñ¢É‚É¢É�ɢɂɂɂɢÉ�ɂɂɂÁaÉ‚ÁaÉÂÉâÁÂÉâÁâÉ#ÊCÒ„ÒcÒdÊãÑ¢ÁAÉbÁ�ÁãÉCÒ„ÒCÒ‚ɢÁ‚Á£ÁÂÉÊÒÊÃÉÃÉÃÉãÉÊ"ÊÂÉÃÁ£É£ÁAÊÛ„ÛCÓâÑ‚Á�É¢É�É¢É�É¢É�ѢɢÑÃÑÂÑãÑÂÑÂɂѢÉ�ѢɢÑÂÑ¢ÑÃѢѢɡѢÉ�Ñ‚ÉaÉ�É�É¢É�É‚ÉaÉ‚ÉaÉaÁAÉaÁaÉ‚ÉaÉ�Á@ÉAÁ É@Á ÉAÁ@ÉaÉ�É¡É�É¢É�Ñ¢É�Ñ¢É�ѢɡѢÉ�Ñ¢É�ѢɡѢɡɢÉ�É‚É�É‚ÉaÉ¢Á¡É¢É¢Ñ¢É¢É¢É¢É¢É¢É¢É¢É¢Á‚É‚ÁÁÁ#Ê�Ê¢ÊÊâÁÂÉâÁÊBÊ"ÊCÊc҄ʄҤÊcÒ„ÊcÒcÊBÊCÊ"Ê"ÂÊ"ÊÁÁ„ÒÆã…ÓÒÊÒÊÒÒÒ$ÒÒÒãÑÊãÑÒãÑãÑÂÑÃÉÂÑãÉÂÑÃÉ¢ÑÃÉ¢ÑÂÉ¢ÑÃÉ¢ÑÂɢѢɢÉÂÉ¢ÑÂɡɢÁ�É¢Á�É¢É�É¡ÉaÉ�ÉaÉ‚É�É�Á�ɢɢɢɢɢÉ�Ñ¢É�Ñ‚É�É¡É�É¢É�É¢É�É�ÁaÉ�ÉaÉ�ÉaÉaÁ‚¹bÁ‚¹bÁ‚ÁbÁ‚Á‚ÁÂÁʄʄÒDÊâÉ£ÁbÁ‚Á‚ÉÂ#Ò#ÊâÉ£Á‚Á£Á£ÁÂÁâÉ#ÊÊÄÁ£É£Á£ÉãÁâÉ"ÂÄÚdÛâÒãÉ�Á‚Á‚É‚ÉaÉ‚ÁaÉbÁaɂɂɢɢÑÃÉ¢ÑÃɂɢÉ�ɂɂѢɢѣɢѣɂɂɂɢÉ�ÉbÁAÁAÁAÉ¢ÁÂÉcÊ£Ú$ÓEÛÆÛæãHäHì‰ä‰ì‰ähìiä(ä§ãEÛ¥Ò#Ê‚Á@Á!Á ÉbÁaÉ‚É�É‚É�É‚É�É¢ÉaÉ‚Á�É¢É�É¢É�É‚ÁaÉbÁaÉ‚Á�É¢Á¢É£É‚É¢Á‚É¢Á¢É¢Á‚É¢Á‚É¢Á‚É£Á‚ÉÂÁãɢʂʃÊÂù¢Á£Á‚ÁƒÁbÁbÁBÁb¹BÁb¹bÁ£Á¢ÁÃÁÃÉãÁ#ʄӥÛeÒãÉÊÒÊäÑÊäÑÊãÑäÉäÑäÉÃÑäÉãÑäÉÃÑÃÉ¢ÑÃÉ¢ÑÃÉÃÑÃɢɣɂɣɢɢɢɢɂɢÁ‚ɢɂɂÉaÉ‚Á�É‚ÁaÉ‚ÁaÉ�ÁaÉ‚ÁaÉ�ÁaÉ‚Á�É¢Á�É‚ÉaÉ‚ÉaÉ‚ÁaÉ‚ÁaÉ‚É�É‚ÁaÉ‚ÁaÉaÁaÉbÁaÉbÁaÉÂÉâÁÁÉâÁâÉÂÁ‚É‚ÁaÁbÁaÁ¢ÁâÉ#ÊCÒCʢɢÁbÉ‚Á¡ÉÊ"Ò"ʢɣÁ¢É£ÁÁÉ#Ê"ÒƒɃÁaÊ$Ûdã#ÓâÑ¡Á�É¢Á�É¢ÉaÉaÉaÉ�ÉaÉ�ÉaÉ�É�ѢɢÑÂɢѢÉ�Ñ¢É�Ñ¢É�ѢɡѢɡɢɡѡÉaÉaÁ€ÁâÉ¢Ò$ÛÄãäÆãÆÛfãFÛãÛÅâÆÚÅÚæÚã'Ûgã¨ãHìªôêô õêôÊä†ëÃÊ¡Éa¹ ÁaÁ¡É¡É�É�É�É�É�É¡É�É¡É�É¢ÉaÉ�ÁaÉ‚É�ɂɡɢɡɢÉ�ɢɢɢɡɢÉ�É¢Á�É‚Á�ɢɢɢÉÁÉÊaÊ‚ÊBÊ!¢ÁÃÁÂÉãÁ#ÊDÊ#Ê#ÂâÉâÁ¢ÉÃÁƒÉƒÁ‚†ããCÂãÉÊäÑÊäÑÊãÑäÉãÑãÉãÑãÑÃÑãÉãÑãÉãÑãÉÂÑãÉÂÑÃÉ¢ÑÃÉ¢ÑÃÉ�É¢Á�É¢É�ɢɡɢɡѢÉ�Ñ‚É�É�Á�É�Á�É¡Á�É�ÁaÉ�ÁaÉ�Á�É�É�É�É�É�ÁaÉ�Á�É�ÉaÉ�É�É�ÉaÉ�ÁaÉ�ÉaÉ�ÁaÉ�ÁaÉaÁaÉaÁÂÁ¢ÉÂÁÂÉâÁâÉÂÊÂâÁ£Á‚Áb¹aÁ¢¹ÃÉCÊÊÃÁ�Á‚¹‚ÁÃÁãÉ"ÊÊÃÁ¢ÁƒÁbÁâ¹CÒËCÛEÛÂÊÃÉ‚Á£Á‚É‚ÁaÁ‚Á‚É‚ÁaÉ‚ÁaÉ‚ÁaÉ‚ÁaÉ‚É�ɢɢѢÉ�É‚ÉaÉ‚Á�É‚Á�ɢɢɢÉ�ÉbÁaÉBÂÃÚ¥ÓÅã¦ãEÛÆÚ…ÚFÒFÚFÒåÑåÑåÑåÑåÑÅѤÑÅÑÄÑÅѤÑÄÉÄÑÊ%ÚæÒhëŠäÊôÊì'ÜÅÒáÁbÁ!ÁaÁaÉ‚ÁaÉ�ÁaÉaÁaÉ‚ÁaÉaÁaÉbÁaÉ‚ÁaÉ‚Á�É‚Á‚É¢Á�É¢Á‚É¢Á�É‚Á�É‚ÁaÉ‚Á�É£Á¢ÉÃÁ¢É¢Á¢ÉAÂbʂ‚ʄÊCʅʄҥÊdÊCÊ"Ê"Â"ÊBºäÚ‡Û£ÊäÁäÑÊäÉÊäÑäÉäÑäÉÃÉäÉÃÉäÉÃÑäÉÃÑÃÉÃÑãÉÃÑãÉÃѣɢѣɢɣɂɂÁ‚É‚Á�É‚É�É¢Á�É¢Á�É¢ÁaÉa¹aÁa¹aÁ�ÁaÁ‚Á�Á‚Á�Á�ÁaÁ�ÁaÁ�ÁaÁ�ÁaÁaÁaÁaÁaÁaÁ`ÉaÁaÉ�ÁaÉbÁaÉaÁAÉaÁaÉaÁaÉaÁAÉ�Á‚ÁaÁ‚ÁaÁbÁ�Á¢ÁÁÉÊBÒ#ÊÂÉ¢ÁbÉbÁ�ÁÂÁÊ"¢ɢÁ¢ÉÃÁÂÉãÉáÉâÉ„ÒBÓ¤Ûۂ‚ɂÁ¢ÉÃÁ¢É¢Á�Á‚ÁaÉ¢É�É�ÉaÉ�ÉaÉ�ÉaÉ�ÉaÉ�É�É¢É�Ñ¢É`É�ÉaÉ�Á€É¡É�Ñ�É�ÉÒÓ¥ã¥ëdÛ¦â…Ò%Ú&ÒÚFÚEÚ†Ú¥ÚÆÚ¥Ú¥ÚÅÚæÚæÚ'ÛæâæÚ¦Ú†ÒEÚ%ÒäÑäѤѤɣÑÒ¤Ògãgì©ìæëË¡É`¹@Á�Á€É�Á`É`Á`É�ÁaÉaÁaÉ�É�É‚É�É�ÁaÉ�É�ɂɡɢɡɢÁ�É¢Á�É�É�É¢Á¢É¢É¢É¢Á¢É¢Á�Á¢ÁàÁBÊ�Ê‚ÊÊáÁ‚Á‚Á‚É‚Á�¹$ʤãdÓÒäÉÒÊãÑÊäÑÊãÑäÉãÑãÉÃÑãÉÃÑÃÉ¢ÑÃÉÂÑãÉÂÑãÉÂÑÃɢѢɢɢɢɢÁ�É¢Á�É�Á�É¢Á�É¢Á�É¡Á�É�Á`Á`¹ Á@¹ Á ¹Á ¹Á ¹Á ¹ Á@¹@ÁaÁ`ÉaÁ`Á`Á`Á`¹`ÉaÁ`É�Á`É�ÁaÉ�ÁaÉaÁ`ÉaÁaÉaÁ@ÉaÁ‚¹‚Á¢Á¡Á¢Á�ÁbÁaÁb¹bÁ‚¹¢ÁãÁÊÂÁÁ£ÁbÁ‚¹¢ÁâÁâÁÃÁ¢ÁÃÁãÉ¢Ê$ÛdÓCÛ„ÒʃÁbÉ£Á‚É£Á‚É¢Á‚É‚ÁaÁ‚Á‚É‚ÉaÉ‚ÁaÉaÁaÁaÁaÉ‚ÁaÉ�ÁaÉ�ÉaÉ�Á`É�Á`ÁaÁ Á¡¹#ÒdÓ„ãFãÄÒ&ÒÚFÒEÚ…Ò¥ÚÆÚÅÚÛæâÛÆÚ¦Ú…Ú†Ú…ÚÆÚÆâÛ'ãhÛGãˆãˆëhã&ÛÇÚeÒÊÄÑÄѤÑÊEÚfÓÇëädÓ#Ò`Á@¹@Áa¹@Á`¹`ÁaÁaÉbÁaÉbÁaÉbÁaÉaÁaÉ‚ÁaÉ‚Á�É‚ÁaÉ‚ÁaÉ‚ÁaÉ‚ÁaÉ‚Á‚É¢Á‚É¢Á‚Á¢Á¢Á¢Á‚Á¢¹ÂÉBÂbʂʂÊCÊáÁãÂ…ã…ÒãÁäÉäÉäÉäÑÊäÑäÉÃÉãÉÃÉäÉÃÉÃÉ£ÉÃɢɣɢɣɢÉÃÉ¢ÉÃɢѣɂɂÁ�É‚ÁaÉ‚ÁaÁ‚ÁaÁ‚Á�É�Á@Á ¹¹¹Á�¹¢É#ÂCÊÄÊåÒ%ÓÓÓäÒåÒ£ÒƒÊBÊÂÁÁ¢ÁaÁ!¹Á ¹ Á`¹`ÁaÁaÉaÁaÉaÁaÉaÁaÉaÁaÁaÁ@ÁaÁ@ÁâÉÊÊâÁáÉÊâÉâÁ¡É¡ÁaÁ‚¹‚Á¢Á¡ÉâÁÊ‚Áb¹�ÁãÉÁÒCÓƒÛƒÓãÚ‚ÊÂÉ¢Á¢É¢Á¢ÉÂÁ‚É¢Á¢É¢É¢É¢Á�É‚Á�É¢É�É¢ÉaÉ�Á`É�ÁaÉ�Á`É�Á`Á�Á€É�Á`Á€Á`Á`¹ ÁcÒ„ã¤ÛÅâ„ÒÚ&ÒdÚ¥ÚÄÚåÚ¤ÚÅÚ…â†ÚEÚFÚ%Ú%ÚÚÒäÙåÑäÙäÑÄÙäÑäÙÒÚEÚ…ÚçÚGãˆãgã'Û…ÚdÒäÙäÑÃÑäуÒ&ãåãÅÛƒÚ ¹ ¹`¹`Á�Á`ÉaÁ`É�Á`É�Á`ÉaÁ`É�ÁaÉ�É�É¡ÉaÉ�ÉaÉ�ÉaÉ�ÉaÉ�Á�É¢Á�É¢Á�É¢Á�Á¢Á¡É¢Á¢Á¢Á¢ÉÃÁâÉâÁÁÊ¥Û%ãcÂÃÉÊãÑäÉãÑÊãÑäÉÃÑãÉÂÑÃÉÂÑÃɢѣɢɢɢɢÁ¢ÉÂÉ¢ÑÂɢɢɢɢÁaÉ�ÁaÉ�Á�É�ÁaÉaÁ Á@Á`ÁÁÁ‚Ê%ÛçÛ‰äêìLí+õ+íËôËì‰ì‰ä(ì(äì'äääåãåÛ¤ãdÓÛÂÊAÊáÁ`Á`¹ ÁAÁ@ÁaÁaÉ�ÁaÉ�Á`ÉaÁ`ÉaÁ`É`Á¢Á�Á¢Á‚Á‚¹‚Á¢Á¢ÉÂáÉãÁ¡Áb¹bÁÃÁaÁá¹cÒËâÒCËCÓÓÂÒ$Ê¡ÁbÁbÁ¢Á¢É£Á¢É£Á‚É£Á‚É‚ÁaÉ‚ÁaÉ‚ÁaÉ‚Á‚É¢Á‚É�ÁaÁa¹aÁ�ÁaÁaÁ`Áa¹`ÁaÁaÉaÁ@Á ¹cÒ„Û„ÛÆÚDÒ&Ò%Ú¥Ò¥ÚÅÒ¤ÚfÒEÒ&ÒÚ&Ò&ÚFÒEÚEÒEÚeÚEÚeÒDÚ†Ò¥Ú†ÚEÒEÒäÑäÑÄÑÄÉÄÑäÑäÑeÒ†ÚÛÛÆÒ„Ò%ÒäÑåÉÄÑ$Ê…Ú¥Ó¥Û¤ÒÀ¹A¹@Áa¹`Áa¹`ÁaÁaÁaÁ`ÁaÁaÁaÁaÁ‚ÁaÉbÁaÉ‚ÁaÉ‚ÉaÉaÁAÁbÁaÁ‚ÁaÁ‚Á�Á¢¹�Á¢Á¢Á¢¹¢ÁÃÁÃÉ¢¹DÒ¦ÛËäÁÄÉäÉäÉäÉãÉäÉäÑäÉÃÉãÉÃɣɢÉÃɢɣɢɢÁ‚É£Á‚É¢Á¢É£Á¢É£Á‚É¢ÁaÉbÁaÉ�ÁaÁAÁAÁa¹�ÁƒÂ%Û'Ühì‰äHäÉÛFÓÆÒ…ÒEÊäÉäÉÄɤɣÉÄÉ£ÉÄɤÑäÉäÑÊ%ÒeÒ…ÚåÒäÚ$ÓÛÓÂÒbÊÂ�Á`ÁAÁAÉ�ÁaÁaÁ`ÁaÁaÁaÁ@ÁaÁa¹aÁ‚ÁÂÉÂÁaÁ‚Á�ÁÂÁ!ʃʂÒÂÊáÒÓÓÓÂÒ¢ÊÒÂÁbÉ‚Á�Á¢Á¢É¢Á�É¢Á‚ɢɂɢÁ�É‚ÁaÉ‚ÁaÉ�Á�É‚Á�É�Á�É‚Á`ÉaÁ`ÁaÁ`Á�Á`Á`Á`Á�Á`ÉaÁ ÁbÒcÛ„ÛeÚ$Ê$ÒfÚ¤ÚÅÚ…Ú„Ò%ÚEÒ%ÚEÒDÚ…Ò¤ÚÅÚÅâÅÚÅâÅÚ¥âÅÚ¤ÚÅÚÅÚ'ãgãˆã‡ëˆãgãgÛÆâ¥Ò$ÚÒãÑäÑãÑÒdÒ¥Ú¤Ú¤Ò$ÚÒäÑäÉãÑeÒCÛ¥ÛÃÚº@Á`¹`Á`Á`ÉaÁ`ÁaÁ`Á�Á`É�ÁaÉ�Á`É�ÁaÉ¡ÉaÉaÁ`ÉaÁ`ÁaÁaÉ�ÁaÁ‚Á�Á¢Á¡Á¢Á¡ÁÂÁ¢É¢ÁÓ¥ÛdÒÂãÉäÁãÑäÉãÑÊãÑäÉÃÑãÉÂÑÃɢɣɢɢɢɢɢɢÉ�ɢɢɢɢɢÉ�É¢É�É¢ÁaÉaÁ ÁaÁ!ÂäÚÅÛäçë¦ÛÅâ„ÒäÑäɣѣɣɣɣÉÄÉ£ÑÄÉ£ÑÃÉÃÑäÉÃÑäÑÄÑäÉÄÑäÑÄÑåÑäÑäÑãÑÒCÒdÒÂÒãÒÂÚÂÊ!ÒáÁ`ÉaÁ@ÉaÁ`ÉaÁ`ÉaÁÁ¹áÁ‚‚ÊÂÊÂÒãÒâÒãÒÂÒÃÊ‚Ê#ÊâÉÃÁ¢ÁƒÁbÁƒÁ‚É¢Á‚Á‚Á‚É£Á‚É‚ÁbÁ‚Á‚É‚Á‚É‚ÁaÁaÁaÁaÁaÁaÁaÁ‚ÁaÁ‚ÁaÁaÁ@Áa¹@Áa¹`Áa¹`ÁaÁ@Á€¹"ÒCÓCÛfÒäÑÊEÚ¥Ò¤Ú†ÒDÒ&ÒÒEÒEÚ…Ò„Ú…ÒdÒEÒDÚ%ÒÚ%ÒäÑåÑäÙåÑäÑäÑäÑäÑäÑÊ$Ò†ÒÆâ'ÛgãˆãgãÆÚDÒåÉÄÉåÉäÑDÒEÚ„Ò„ÚEÒÒåÉÄÑäÉ$Ò$ÓdÛ¤ÒÀ¹@¹@Á`¹`Áa¹`Áa¹aÁaÁaÁa¹aÁaÁaÉ�ÁaÉaÁ@Áa¹@Áa¹aÁaÁaÁa¹aÁ‚¹�Á¢¹‚Á£ÁaÁ!²%Û&Û"ÂÄÁÄÉäÉÃÉäÉÃÉäÉãÉãÉÃÉÃÁ¢É£É¢É£É‚É¢Á¢É£Á¢É¢Á‚É¢Á‚É¢Á�É‚Á�É‚Á‚ÉbÁ!Áa¹¢ÉãÂ…ãäæã'Û„ÊåÉÄÉÅɤÑäÉÄÑ%Ê%҅ʦÚGÛGãGÛGãGÛ&Û'ÓÛÛÅÚ¦Ò…ÒEÒ$Ò$ÒÒÊäÑåÉäÑåÉÄÑäÉäÑ$ÊDÚÃÊÃÒ¢ÒAÊ¢Á@ÁA¹AÁaÁ@ÁaÊ‚ÊaÊ‚ÊBÊBÂ"ÊÂâÉâÁ¢É¢Á‚É£Á‚É‚Á¢É¢Á¢ÉÂÁ¢É¢Á¢É¢Á‚É¢Á‚É¢Á�É‚Á�É‚ÁaÉ‚Á�É�Á`ÁaÁ`ÁaÁaÉaÁ`ÁaÁaÁaÁ`Áa¹@Á`¹`Á`Á`Á`¹`¹âÉ"ÛcÛEÚÊÒEÒ£ÚÄÚEÚ%Ò$ÚEÒDÚ…Ò„Ú„ÒEÚEÒÚÒäÙÒÚ%Ò$Ú$Ò$ÚEÒDÚDÒ$ÚDÒäÙäÑ£ÑÄѣѤѣÑäÑ$Ú…ÚåÚÛÅÚ„ÊãÑÊäÙÒÒ$ÒcÒ„ÒDÒ$ÊäÑÊãÑ$Ò#ÛdÛbÒ ± ¹`Á`Á`¹`ÁaÁ`ÁaÁ`ÁaÁ`Á�ÁaÉ�Á`ÁaÁ@Á`¹`Á�ÁaÉaÁaÁa¹aÁ‚Á�Á¢Á€¹CÊ¥ã#ËÃÉäÉÃÉäÉÃÉäÉÃÉÃÉÂÉãÉÂÉÃɢɣɢɢɢɢÉ�ɢɢɢɢɢÉ�É¢Á�É¢Á�É¢ÁaÉaÁ Á#ÒcÓä†ëÓEÒEÒäÑåÉäÑ$ÒDÒ…ÚÛGÛgãgÛ&ãGÛGã&ÓÅÚÅÒ…Ú…ÒdÒ…ÒdÚeÒdÚ„ÒcÚ„ÒcÚ„ÒcÚCÒ#Ò#ÒÒÒäÑÒãÑäÉãÑÊBÒƒÒÁÒ�ÊÁÉ`¹@Á`Áb¹bÁ‚¹bÁ‚¹‚Áƒ¹‚Áƒ¹‚Á£Á¢Á£Á¢Á£Á‚Á¢Á‚Á£Á‚Á£Á¢É£Á‚Á‚Á‚É‚Á‚É‚ÁaÁbÁaÁbÁaÉ‚ÁaÁa¹AÁa¹`Áa¹`Áa¹AÁa¹@Áa¹@Á`¹@Á`¹@¹`±€ÁâÊCã…ÒãÉäÉ%Ò¤Ò£ÚEÒÒ%Ò%Ò„ÒdÒEÒ$Ò%ÒÒÒÒ%Ò$ÒdÒdÚ¥Ò¤Ú¥Ò¤ÚÆÒÅÚæÚÅÚÛÛ'ÛÛÛÆÚ…ÒDÒÒÄÑÄÑ£ÑäÉäÑDÊdÒ„Ê„ÒEÒÒäÉäÑäÉäÑDÊCÒeÒ$ÒåÉÄÉäÁÒ#ÓÓÂ`±@±@¹`¹@¹a¹@Á`¹@Áa¹aÁaÁ`Áa¹@Áa¹@ÁA¹AÁaÁAÁa¹A¹a¹�Á‚¹aÁÃ¥ã†ÒÂÁäÁãÉäÉÃÉÄÁÃÉÄÁ£ÉÃÁÃÉÃɢɣÁ‚É¢Á‚É¢Á‚É¢Á‚É¢Á‚É¢Á‚É¢ÁaÉ‚ÁaÉ‚ÁAÁÁ¹ƒÚ…Ó¥ãÛ„ÊåÉÄÑÊåÑEÊeÒÅÒåÚÛÅÚ†ÒDÒ%ÊäÑÄɣɃÉcɣɃуÉbɣɣѤɣÑÄÉÄÑäÉÄÑäÉäÑÒÒ#Ê#ÒDÒ#Ò$ÒÒäÉÄÑäÉÄÑÄÉ£ÉÊ#Ò¢Ê�ÒÊ€Á¡`'Š�Á¢Á¢Á¢Á¢É¢Á‚Á¢Á¢É¢Á¢É¢Á‚É¢Á‚É¢Á�É¢Á�É¢Á�É¢Á�É¢Á�É¢ÁaÉ�ÁaÁaÁaÉ‚ÁaÉ�Á`ÁaÁ`Áa¹`Á`¹`Á�¹`Á`¹@¹`¹@Á`¹@¹`¹`Ê#Û¤â#ÊÃÉ$ÒƒÒƒÒ$ÚÒÒEÒcÚ„ÒDÚ$ÒÒÒ$ÒDÒCÚdÒcÚ„ÒDÚDÒ$Ú$ÒäÑäÉãÑäÑÃÑäÉãÑÒÒ%ÒdÚ¥ÚÅÚÛãÛ…ÚeÒÒäÉãÑäÑãÑÒdÚ„ÒDÚ#ÊãÑäÉãÑÊCÒdÒCÒ#ÊÄÑäÉâÉDÒâÚÂÊ¡Á@±@¹`¹`¹`±@¹`¹`Á`Á`Á`¹`¹`¹`Áa¹`ÁaÁaÁaÁ`Á�¹aÁa¹À¹%ÛFãbÂÃÉäÉÃÉãÉÃÉãÉÃÉãÉÃÉÃÉ¢ÉÃÁÂÉÃÁ¢É¢É�ɢɢɢÉ�ɢɡɢÉ�É¢É�É¢ÁaÉaÁàÁÄÚ„Û„Û…ÚDÊäÑåÑÒ%Ò„ÒÅÚåÚÅÒeÚDÒäÑäÉÃÑÄÉ£ÑÄÉ£ÑÃÉÃÑÒÒDÒ$ÒDÒDÒDÒÒÊãÑäÉãÑäÉÃÑäÑÄÑäÑÃÑäÑÒ$ÒÒ#Ò#Ò#ÒÒÊÃÑäÉ£ÑÄÉÂÉÊ£àX¡`’‚¹aÁ‚Á‚Á¢Á‚Á¢Á‚Á£Á¢Á£Á‚Á¢Á‚Á£Á‚É¢Á�Á‚¹aÁ‚Á�Á‚ÁaÁ‚ÁaÁ‚ÁaÁaÁaÁa¹aÁa¹aÁa¹AÁa¹`¹a±@¹a±`¹a¹@¹`±@¹@± ¹à±ÂÚåÚBʤÁÄу҃Ò%ÒäÑÊÒDÒCÒ%ÒÒÊäÑDÒDÒdÒCÒ$ÒÒäÉäÑåÉÄÑäÉÄÑÄÉÃÑÄÉ£ÑÄÉ£ÉÄÉ£ÑÄɣɣɣɤÉÃÑÊ$Ò…ÒÅÚÛÅÚEÒãÉäÉÃÉäÉäÑDÊDÒdÒ#ÒäÉÄÑäÉäÉ#Ê#Ò$ÊÊäÉÄÉÂDÒãÊ`Âa± ±@©@±`±@¹`±@¹a±@¹a±`¹a¹`¹a¹a¹b¹aÁ‚¹aÁ@±ãÉ¥Û#ÓäÉÃÉäÉÃÉäÉ£ÉÄÁÃÉÃÁ£É£Á£ÉÃÁ¢Á£Á¢É¢Á‚É¢Á‚É¢Á‚É¢Á‚É¢Á�É¢Á�É‚ÁAÁá¹£ÚdÛ#ÛEÒäÉåÉåÑÊÒ„Ò„Ú…ÒDÒÊäÑåÉäÑäÉÃÑäÉäÑ…Ê…ÚæÒÛˆÛˆãhÛGÛGÛ&ÛÛåÚÅÒ„Ò¥Ò„ÚdÒCÒ$ÒÒäÉÃÉÄÉÃÑäÉäÑäÉÄÑãÉãÑÊÒ$ÒãÑÄÉ£ÉÄɃÉH’¡`¡`ŠaÁ‚Á�Á¢Á�Á¢Á�Á¢Á¢Á¢Á‚É¢Á�É¢Á�É¢Á�Á‚Á�Á�¹aÁ�ÁaÁ‚ÁaÁaÁaÉ�ÁaÉaÁ`ÁaÁ`ÁaÁ`Áa¹`Áa¹`Á`¹`¹`¹`¹`±`¹@±€±BÊۢʣÉäÉbÒ¤ÒDÚÊãÑDÒcÒcÒÒÊäÑÒCÒdÒCÚDÒÒäÉÃÑäÉÃÑäÉÒ$Ò#ÒDÒcÒ¤Ò„ÚÅÒÅÚÅÒÄÚÅÒ¥Ú¥ÒDÒ$ÊÃÑäÉÃÑÄÉ£ÑÄÉÒeÒ¤Ú¤Ò#ÒÊÃÑäÉãÑÒ#ÒdÒCÚ#ÊäÑäÉãÑäÉÊDÊ#ÒÊÃÉÄÁƒʢҲ ±@±`¹`±`¹`±@±`±`¹�¹`Á`¹`¹a¹aÁ�¹aÁa¹âÊæã…ÚãÁãÉÊãÑäÉÃÉÃÉ¢ÉÃÉ¢ÉÃÁÂÉÃÁ¢É¢Á¢É¢Á�É¢Á�É¢Á�É¢Á�É¢Á�É¢Á�ÉaÁÀÁ¤Údã#ÓDÒ$ÊäÑÊ#ÒeÒ„Ò„Ò$Ò$ÊäÑäÉäÑäÉãÑ%Ò„ÒÆÚ&ÛGÛãåÒdÚdÊÒäÉÃÑÃÉ£ÑÃÉ£ÑäÉÃÑäÑãÑÊÒ#Ò#ÒDÒ"Ò#Ò"Ò#ÊãÑãÉÃÑäÉÃÑÃÉÃÉãÉâÑ$Ò#ÒÊÃÑÃÉGšÁ`¡`æ‰b¹aÁ‚¹bÁ‚¹aÁ‚¹‚Á‚Á‚Á‚¹bÁ‚Á‚É‚Á‚É‚¹aÁb¹aÁa¹aÁb¹aÁa¹aÁa¹aÁaÁaÁaÁAÁa¹@Áa¹@¹a±`¹a¹`¹`±@¹`± ±`©áÉãÒ¢ÒÄÉ£ÉCÊcÒEÒãÑÊ$ÒDÒ#ÒÊäÑäÉäÑDÊ#Ò$ÒÒäÉäÑÊäÑÊÒDÊCÒDÒCÒDÊ#Ò$ÊÒ$ÊÒ$ÊÒ$Ê$Ò…Ê…ÚæÒåÚæÒÅÚeÒÊäÉ£ÉÄÉÄÑäÉäÑ$ÊDÒDÊÊäÉäÉäÉÄÑÊDÒdÒãÉäÁÃÉäÉÃÉ#Ê#ÊÊÃÉÄÁ£Á"ƒÒC€± ©@±`©@±@©@±`±`¹�¹`¹a±`¹‚¹A¹à±%ãfÛBÂÃÁäÉäÁÃÉäÉÃÉÄɣɣÁ£É£Á¢Á£Á¢Á£Á‚Á¢Á�Á‚ÁaÁ‚ÁaÁ‚ÁaÁ‚ÁaÁ‚ÁAÁ¡¹CÒDÓ#Ó%ÒäÉåÉåÑDÊDÒ…ÒdÒ%ÊäÉåÉäÉäÉäÑDÊeÒÆÒÅÚ¦ÒdÒ%ÊãɤɣɣɃɣÁƒÉ£ÁƒÉ£É£É¤É£ÉÄɣѤɣÉÄÉ£ÑÄÉ£ÑäÉÃÑ$Ê#Ò#ÊÒÊãÉäÉÃÑÄÉ£ÑÄÉ£ÉãÉãÑ#ÊÒh’¡`¡`ŠaÁ‚¹aÁ�ÁaÁ‚Á�É‚Á�Á�ÁaÁ�ÁaÁ‚Á�Á‚ÁaÁ�ÁaÁaÁ`Á�Á`Áa¹`Áa¹`ÁaÁ`ÁaÁ`Á�Á`ÁaÁ`Á`¹`Á�¹`Á€¹`¹`± ±¡¹ÁÒCÓäÑ£ÁÊdÒ#ÒÊÃÉ$ÒcÒCÊäÑäÉãÑ$ÒCÒCÊãÑäÉÃÑäÑãÑ$ÒCÚCÒCÒCÊÒÊÃÑäÉ£ÑÄɣѣɣѣɂѣÉbÑbÉbɃɂÉÃÉãÑ$Ò„Ò¥Ò¤Ú¤Ò$ÒãÉÃÑäÉÃÑäÉ#ÒdÒcÒCÊãÑäÉÃÑäÉÒDÊÒÊÃÉäÉÃÉäÉ"Ê#ÊãÉãÁ£ÉÃÁaÊ£ÊáÁ`©@±`©`±`±`¹`±`¹`¹`¹`±@±CÊ„Û#Ë¢ÉÃÁÃÉãÉÃÉãÉÃÉÃɢѣɢÉÂÁ¢É¢Á¢Á¢Á�É¢Á�É‚Á�É�Á`É�Á`Á�ÁaÉaÁ€Á"Ê"ÛCÓ$ÚäÉÄÑåÉ#ÒdÒƒÚcÊäÑÊäÑäÉãÉDÊcÒ„Ò„ÒdÊÒãɣѣɣѣɢÉÃÉãÉÊDÒ¥ÒÅÚÅÒåÚåÒ¤ÚÅÒ„ÚdÒÒÊãÑãÉÃÑÃÉÃÑäÉÃÑÃÉ£ÑÃÉâÑÊÒ#ÒÒãɣѣɣѣÉÂÉãɧ¢Á`F)F1b¹aÁb¹aÁbÁaÁ‚ÁaÁ‚¹aÁb¹aÁa¹aÁa¹aÁaÁaÁaÁaÁa¹aÁa¹@Áa¹AÁa¹`Áa¹`Áa¹aÁa¹@Áa¹@¹a±`¹a±`¹@±@¹€º#ÓeÒ¢ÁÃÁ$ÒDÒâÉÄÉäÑcÒBÒÄÉ£ÉãÉãÑdÊCÒÊãÉÄÉÄÉÊ#ÒCÊCÒÒãÑÄÉ£ÉÄÉ£ÉäÉãÉ$Ê#ÒDÊdÒ¥Ò„Ú¥Ò„Ò…ÒdÒ$ÊãÉÄɃɃÁ‚ÉÃÁÃÉÂ$Ò¥Ò„ÒDÊãÉÄÉÃÑäÉÃÑãÉÒCÊ#ÒäÉÃÉäÉÃÉãÁÒ$ÊâÉÄÁÃÉÃÁÃÉÊâÉÄÁ£Á£ÁÃÉ‚ÊAÂ�± ©`©`±`±`±`±`±@©`±#ÄÛDÊ¢ÁÃÁ£ÉÃÁ£ÉÄÉ£ÉÃÁ¢É£Á¢É£Á‚Á¢ÁbÁ‚¹bÁ‚¹�Á‚ÁaÁ‚ÁaÁaÁaÁ�ÁaÁa¹¡ÁË#ÛeÒãÉÄɤÉÂ#Ò„ÒCÒÊäÉäÉäÉÊ$ÒdÊcÒEÊãÉÄÉ£ÉÄÉ£ÉÃÁÃÉ$ÊdÒæÒåÚæÒÅÒæÒÅÚ¥ÒdÒdÊDÒdÊDÒdÒDÒDÊCÒDÊ#Ò#ÊãÑãÉÃÉÄɣɤɣɣɣÉÃÉÃÉ#Ê#ÒÊÂɣɣɣɃÉF)F1E1f)`Áa¹`Á�¹`Á�ÁaÁ�ÁaÁ�¹`Áa¹`Á�Á`ÁaÁ`ÁaÁ`ÁaÁ`ÁaÁ@Áa¹@Áa¹`ÁaÁ`Áa¹`Á`¹`Á`¹`¹`¹`¹€¹`¹`±ºãÒÄÚ"¢ÉÊcÒCÊ¢ÉÃÉBÒCÊÃÑÃÉÂÉÊ"ÒCÊãÑÃÉÃÉäÉÊCÊ"Ò#ÒÃÑäÉÃÑäÑãÑÊÒCÊCÒcÒcÒ„ÒCÒDÒCÒDÒCÒDÊcÒ¥ÒÄÚåÚÄÚ„ÊÒÊÃÑÃɣɣɢÉäÉ"ÒdÒCÒCÊ$ÒÊ£ÉÄÉâÉÊCÒCÊÃÉãÉÃÉãÉ"ÒCÒãÉÃÁ£ÉÃÉÂÉãÉâÉâÁ£ÉÃÁÁÁ#Ê�ʺ@±`±`±€±@±@©²eÛ㺢ÁÃÁ¢ÉÃÁ¢ÉÃÁ¢É£Á¢É¢Á‚É¢Á�É¢Á�É�ÁaÁ�ÁaÉ�Á�É�Á�É�Á�É�Á@ÁaÁ€ÊCÓ„ÚCÊÄÑäÉâÑ#ÒCÒCÊäÑÊäÑäÉÒDÒcÒcÊãÑäÉÃÑÄÉ£ÉÃÉãÉDÒ„ÒÅÒÅÚÅÒdÚ$ÊÃÑ¢Á‚É‚ÁbÉ‚ÉbɃɂɣɢɣɂÉÃÉÂÉãÉÂÑãÉÒ#ÊÒÊâÑãɢɣÁ£É£É¢ÉÃÉâÑÊÒʣѣÉE1f)F)F1a¹A¹a¹AÁa¹aÁa¹aÁb¹aÁa¹aÁa¹aÁa¹aÁa¹AÁa¹AÁa¹@Áa¹`Áa¹@Áa¹@Áa¹@Á`±`¹`±`¹`±`¹a±@¹À±‚ÒäÒbʃÁ£ÉcÊcÒÄÉ£ÉÊ#ÒäÉ‚ÁÃÁãÉ#ÊÒÄÉ£ÉÃÁÃÉÊÊÊâɤɣÉÄÉÃÑ#Ê#ÒCÊ#ÒÊãÉÄɣɤɣɣɂɃÉbÉcÁbÉbÁbÉ£Á¢ÉãÉãÑDÊCÒdÊdÒ$ÊãÉÃÁ£É£É£ÉÊDÚDÒÊÄɣɤɃÉãÁãÑ#ÊâÉÄÁÃÉäÉÃÉâÁâÉÃÁ¢ÉÃÁ£ÉãÁâÉãÁÂÁ£¹ƒÁºcÊb ±@© ±`¡CÊeۢʣÁ£É£Á‚Á£Á£É£Á£É£Á£É£Á¢É£Á‚É¢Á‚É‚ÁaÁaÁaÁaÁaÁ‚ÁaÁ‚ÁaÁbÁAÁ ºãÚÅÒ"ÊÄÁÄÉÊ$ÒDÊÊäÉÃÉäÉÄÉÊ#ÒDÊ#ÊäÉÃÉÄÉÄÉÄÁÃÉDÊdÒ…ÒdÒ$ÊãɤɃɃÁbɃÁbÉ‚Á‚É£Á¢É£Á£ÉÃÉ£ÉÃɂɣÁ¢É£É£É£É£É£É£ÉÃÉ¢ÉãÉâÉÊâÉÃɣɣÁƒÉ£Á£ÉÃÁãÑÊâÉF)F1E1f) `æ�@Áa¹`ÁaÁ`Áa¹`ÁaÁ`ÁaÁ`ÁaÁ`ÁaÁ`ÁaÁ`ÁaÁ`Á`¹`ÁaÁ`Á`¹`Á`¹`Á`¹`¹`±`¹`¹`¹`±€±BÊâڢʢɣÁÊcÒÒãÉâÉDÒÒÂÁ¢ÉãÉÒʣѣɢÉãÉÊ#ÊâÑãɣѣÉÂÉÊ"ÒBÊÒÊÃÑÃɢɣɢÉÃÉâÑÊCÒdÊcÒ„ÒcÒdÊCÒ#ÊâÉãÁ¢É‚ÁbÉ£ÉÂÉÊCÒ„ÒCÒ#ʢɣɣÑÃÉÂÉÊÒʢɣÁ£ÉÃÉÂÉãÉÊÂÃÉÃÉ¢ÉãÉâÉ¢ÉÃÁ¢ÉÃÁÊ"¢Áù¢ÁÃÁaÊ£ÊÀ¹Á±CÓcÓãÉ¢¹¢ÉÂÁ�Á¢Á�Á¢Á¢É¢Á¢É¢Á¡ÉÂÁ¢É£É�É‚ÁaÉ‚ÁaÉ�Á`Á�ÁaÁ�ÁaÉaÁ ¹ƒÒãÚ‚ÊÄÉÄÉãÉÊcÒcÊãÑãÉÃÉäÉÒ$Ò#Ò#ÊÃÑäÉÃÑÄÉãÉÊCÒdÒÒãɣѣɢɣɢɣÉÂÉÊcÒ¥ÒåÚÓåÚÛåÚÅÒ„Ú„ÒcÚCÊ"Ò#ÊâÑâÉ¢ÑÂɢɣɢɣɢɣɢÉâÉâÑÊâÑÂɂɣɢɣÉGšÁ`E1f)F)F1F)F1a¹AÁa¹@¹a¹@Áa¹@Áa¹@Áa¹@Áa¹`Áa¹`ÁaÁ@Á`¹@¹a¹`Áa¹@Á`¹@¹`±@¹`±`±a±@¹`±ÁÁâÊÂÒäÉbÁâÁ#ÒÊ¢Á£ÁäÑDÊâÉ£ÁÃÉÊâɣɂɢÁÂÉÊÒäɢɣÁƒÉãÉÒCÒ"ÒäɢɣɣÉÃÉÃÉÊÒCÊBÒCÊCÒDÊ#ÒÊÊ$Ê#ÊDÊD҄ʄҥʄÊ$ÊâÉ£ÁbÁƒÁƒÉãÉÒCÊÊÃÁ¢ÉƒÁ‚É¢ÁÂÉÊâÉ£Á‚Á£Á‚ÁÂÁâÉãÁ¡Á£ÁƒÉ¢ÁÂÉâÁÁÁ£Á£ÁùÃÁÂâÁ£¹ÃÁ£¹ÃÁ#˄ۅʡ¹£Á£É£Á¢Áƒ¹bÁ¢¹‚Á¢Á‚Á¢Á‚Á£Á¢É¢Á‚É¢ÁaÁbÁaÁbÁaÁa¹AÁa¹`Á`±ÂÉÓÂÒäÉ£ÉäÁãÉCÊ"ÊäÉÃÉÄÁ£ÉÂ#ÒDÒâÉÄÉ£ÉÄÉ£ÉãÉãÑ#ÊÊäÉÃÉ£Á‚É£Á¢ÉÃÁãɄʥÚåÒÅÒÅÒ„ÒDÊãÉÃɢɢÁ¢É£É¢É£É¢ÉÃÉÂÉâÉâÉÊÒÊâÉÃɢɣÁ‚É£Á‚É£Á¢ÉãÉâÉãɢɣÁ‚ÉF)F1F)F1E1f)E1f)`ÁaÁ`Áa¹`ÁaÁ@Áa¹@Áa¹@ÁaÁ`ÁaÁ`Á`Á`Á`Á@Á`¹@Á`Á`Á`¹`¹`¹`¹`¹`¹`±@±¡¹ ÊâÒÒÂÁ¢É$ÊCÒâÁ‚ÁÃÉ"Ò#Ê¢ÉÃÉÊ#ʣɣÁ¢ÉãÉâÑÊÂѣɂɣÉÁÉ#Ê"Ò"ÊÃÑÃɢɣÉâÉÊ"Ò#ÒÒʣѣɂɣɂɣÉbÉ‚ÁbÉ‚ÁAÉbÁaÁ‚Á¢ÉãÉCÒdÒCÒ#ÂÂÉÂÁ‚ɣɢÉãÉÊâÁ¢É¢Á‚ɣɡÉãÉâÉÁÁ‚Á£Á‚É£ÁÁÁ¢ɢÁ¢É£ÁÁÁÂÂÉÂÁ¢É£ÁÁÁÂãÉ¢¹AÂ%ÛÛAº‚Á£Á¢É£Á¢É£Á‚Á¢Á‚Á‚Á¢Á¢Á�Á¢Á�Á¢Á�É¢Á�É�ÁaÉaÁ`ÁaÁ`ÁaÁ@Áa¹`ÊÓ$ÚãÉÃÉäÉ"ÊCÊãÉãÉÃÉäÉâÉ#ÊÒÊÃÑäÉ£ÉÃÉâÉ#Ê"Ò#ÊÃÉÃɢɣɢÉÃÉÊCÊCÒcÊÒʢɂÁaÉaÁ!ÁAÁAÉaÁAÉbÁaÉ‚ÉbÉ‚ÉbɂɂɣɢɢɡÉÂÉáÑÊâÑâɢɢÁ‚É‚Á‚É¢ÉâÉÊâÑÂÉE1f)E1f)F)F1F)F1Á`å‰a¹@Áa¹@Áa¹@¹A¹@Áa¹@Áa¹@Áa¹@Á@¹@Á`¹@Á@¹@Áa¹@Áa¹`¹`¹@¹@±`¹�ÂâÒDÊÂÁƒÁ£ÉCÊ"Ê£ÁƒÉ#Ê#ÒÃÁ‚ÁãÉâÉ£ÁbÁ¢ÁÂÉãÉÂÉ£ÉbɃÁ‚ÉâÁâÉÊâɣɃɣÁ£ÉãÉãÑÊâÉÄɣɣɃÉÃÉÃÉÊ#Ò„Êc҄ʄҥʥÒÅÒ¤Ò…ÒCÊãÉ‚ÁbÁbÉ£ÁÃÉ#Ê#ÒÊÂÉ£ÁƒÉ£Á¢ÉâÁâÉ£Á‚ɃÁbÁ¢ÁâÉãÁ¡ÁƒÁ‚Á¢Á¢ÁâÁÁÉ£Á‚Á£Á‚ÁâÁâÉ£Á‚Á¤ÁcÁº¤Ò…ÛÂÊ£Á‚Á£Á¢Á£Á‚Á£Á‚Á£Á‚Á¢¹‚Á¢Á‚Á‚¹‚Á‚¹aÁ‚ÁaÁaÁaÁaÁaÁa¹@ÁaÁ ÁโҤÒ"ÊÄÉÄÉ#Â#ÊäÉÃɤÁ¤ÉãÁãÑ#ÊâÉÃÁ£É¤É£ÉãÁãÉ#ÊâÉ£Á£É¤ÁƒÉÃÁÃÉ#Ê#ÒÊÂÉ£ÁbÁbÁbÁbÁbÁ‚Á‚ÉãÁãÉ#Â#Ê#ÊÊ#ÊÊÊâÉÃɢɣÁ‚É£Á‚ɃÁ‚É£Á‚ÉÂÁÂÉâÉâÉÂÁ�ÁƒÁbÉ‚Á‚ÉG’¡`F)F1F)F1E1f)E1f)E1f)`Áa¹@Á`¹@Á`¹@Á`¹@Áa¹`ÁaÁ`ÁaÁ@Á`Á@Á`¹@¹`¹`Á`Á`Á`¹@¹�¹`Ê#ÛcÚáÁ‚ÁÃÉ"ÒBÊÃÉ£ÁÊdÒÒ¢ÁÁÉCÊãÑ‚ÁaÉÂÉâÑâɂɂÁ�É¢ÁÁÉÊâÑÂɢɣɢÑãÉâÑÊÂÉÃɢɣɢÉãÉÒ#Ê"ÒCÊâÑãÉÂÑÂɡɢÁ�É¢Á¢ÉãÉ"ÊdʤڤÒCÒ#ʂɂÁ‚ÉÃÉâÉ#ÊÒâÁ‚É‚Á�ÉÂÉâÑâÉ�É‚ÁbÁ‚ÁÁÉâɢɢÁ‚É¢Á�ÁÂÁâÉÁÁ‚Á£Á¡ÉãÉÒÁÁ¢¹$ÊCÓdÓÊ¢¹¢É£Á¢É¢Á‚Á¢Á‚Á¢Á‚Á‚Á�Á¢Á�Á¢Á�Á‚ÁaÁ�ÁaÉaÁaÁaÁ`Á�Á`É@Á`¹"ÊÂÚ‚Ê£ÉÄÉÊCÊÒâÉ£ÉÃÉÂÉÊâÑâɢɣɢÉÃÉâÉ#ÊÒâɢɣÁ¢É£ÁÂÉÊÒÊÂÉ¢Á¢É¢ÁbÉ‚Á�ÉÂÉ"ʄҤÒåÒÛåÒcÒcÊCÒCÊ"Ò#ÊÊ#ÊÒ#ÊâÑÊáÑâɢɢÁ‚ɢɂɢÁ�É¢ÉáÉÊÂÉ¢Á�É‚ÁE1f)E1f)E1f)F)F1F)F1F)F1¡`ʼnA¹ ¹A¹@¹@¹@Áa¹@Áa¹`Áa¹`Áa¹@Á@¹ Á`±@¹`±@¹`±`Á@ºÂÒÅÒ"Ê£ÁƒÉ#Â"ÊãÉ‚ÁÃÁ#ÒDÒâÉ¢ÁãÑ$ÊâÉ£Á‚ÉâÁâÉ£ÁbÉ‚Á‚ÉÂÁÁÉÂÁ¡ÉƒÁ‚ÉÂÁÂÉÊâÉ£Á‚ɃÁƒÉãÁãÑ#ÊÊãɢɣÁbÉcÁbÉ‚Á‚É¢Á‚Á¢Á‚ÁbÁAÁ"¹!Áb¹‚ÉÂÊCÊ#ÊÃɢɃÁƒÉãÁÂÉÂÁ¡ÁƒÁbÉ¢Á¢ÉâÁ¡Áb¹bÁ‚Á‚ÁâÁÁÉ‚¹‚ÁƒÁ‚ÁÂÁâÉÃÁ¢Á£Á‚Á¢¹Ê#Ë„ÛdÊ¡¹£¹¢Á£Á‚Á£Á‚Á£Á‚Áƒ¹‚Á‚ÁaÁ‚¹aÁ‚¹‚Á‚¹aÁb¹aÁbÁAÁa¹AÁa¹aÁA¹aÁ¢Ê¢ÒäÉ£ÉãÁãÉCÊÊÄÁ£ÉÃÁÃÉ#ÊÊ£Á£É£ÁƒÉâÁÒCÊÊ£Á£É£Á‚ÉÂÁâÉÊâÉ¢Á‚É£Á‚É£Á¢ÉÂÁâÉ"Ê"Ê#ÊÊ¢Á�ÁAÁ!ÁAÁ!ÁAÁAÉ‚Á‚É£Á‚É‚ÁbÁ‚Á‚É¢ÁÂÉâÉÁÉâÉÂÉ¢ÁaÁ‚ÁbÁ‚Á‚ÉÂÁâÉg’ `F)F1F)F1F)F1E1f)E1f)E1f)E1f) `å�@¹`¹@¹`¹`ÁaÁ`Á`¹`Á`Á`Á`¹@Á`¹`Á`¹ ±�¹`ÊâÒƒÚ"ʣɤÉBÒcÒãÑÂÁ¢ÉÊCÒÊ¡ÉãÉÒâɂɣÉâÑâɢɂÁaÉ¢ÁÁÉâÉ¡É�ÁaÉ‚ÁÁÉ#ÊâÑÂÁ‚É‚Á‚É¢ÉÒCÒÒâɢɢÁ‚ɣɡÉâÉáÉÊCÒcʃҤҤÚÅÒ„ÚcÊâÉâÁ�Á‚ÁaÉbÁ�Á¢ÁâÉÂÂÉÂÁ‚ɣɢɢÁ¡ÉÂÉ‚ÉbÁ¡ÉÂÁ¡É¡Á�Á¢Á�ÁÂÁÂÉ¡ÁbÁ¢Á‚É¢ÁáÉÊ‚Á¢Á¢ÊeÛäÚº‚Á£Á¢Á¢Á‚Á¢Á‚Á¢Á‚Á¢Á�Á‚¹�Á‚¹aÁ‚¹aÁ‚¹aÁ‚¹aÁ�¹`ÁaÁ`ÁaÁ`Áa¹ÂÂÒ#ÚâÁÃÉäÉBÒBÊÃÑÃÉ¢ÉÃÉÊʣɣÁ¢É£ÉÂÉÊÒâÉÃÉ$ҢɣÉÂÉâÉâÑâɂɂÁ‚É‚Á¡ÉÂÉÒ#ÊâÉâɢɂÁaÉaÁAÉAÁ ÁAÁ`É�Á�É¢É�ɢɢɢÁ‚É‚ÁbÉ‚ÁbɣɢѢÁ¡ÉÂÉÁÉâɡɡÁaÉbÁæ‘Á`E1f)E1f)E1f)E1f)F)F1F)F1F)F1F)F1F)F1`±@¹`±@¹`¹@Á`¹@Á`¹@¹`¹@Á`¹ ¹@±`Á`ÂÂÒ„ÒÊ„ÁƒÉCʃÒ$ʢɣÁÃÉ#ÊâÉ£Á‚ÁâÉâɃÁbÉâÁÒÃÉ‚ÉbÁbÉâÁâÉÃÉ�ÁbÁaÁ¡ÁâÉ#ÊâɣɂɂÁ‚ÉâÁâÉãÉ¢ÉbÁBÉ‚Á¢ÉâÁâÉâÉâÉÂɢɢÁ‚É‚ÁaÉ‚ÁaÁ¢Á¢ÉâÁâÉÊâÉ£ÁaÁbÁbÁb¹AÁ¢ÁâÉÃÁ‚ÁƒÁ‚Á¢¹¢ÁâÁ¡ÉcÁbÁÂÁâÉ¢ÁaÁƒÁbÁÁÁÁÉ¢Á�ÁƒÁ‚Á‚¹¢É¢ÂDÛ%ÛAƒ¹‚Á£Á‚Á£¹‚Áƒ¹‚Á‚¹bÁb¹bÁ‚¹aÁb¹aÁa¹AÁa¹aÁa¹A¹a¹aÁa¹AÁa¹@¹€±BÒƒÒ¤Á£É"ÂCÒäÉ¢ÉÄÁÃÉâÉâÉãɢɣÁ‚É¢ÁÂÉÊÂɣɃɣÁ£ÉâÁâÉãɢɂÁ‚ɃÁbÉ¢ÁÂÉâÉâÉ¢Á�Á‚ÁaÁ‚ÁbÉ‚Á�ÉâÁ҄ʄڄ҄҄ÒcÒDÊ#Ò#ÊâÉãÉÂÉÂÁ¡Á‚ÁaÁƒÁbÉ‚ÁaÁbÁaÁ¡ÁÁÉÂÁ¡ÁF)F1F)F1F)F1F)F1F)F1E1f)E1f)E1f)E1f)E1f)E1f) `å‰@¹`¹`Á`¹`¹`¹`Á`¹`¹ÁÁ€ÊáÒcÒ‚ɣÉAÒƒÒ#ÒâÁ¢ÉÊ"ÒʂɣÁ"ÒBʢɂÁ¡É#ÊâÑÂÁ‚É‚ÁáÉ"ÊÂÑ¢ÁaÉ¢Á¡ÉÁÁâÑâɂɂÁ�ÉÃÉáÑâɢɂÁaÉbÁ¡ÉÂÉáÉâɡɢÁaÉbÁaÉbÁ�ɢɡɢÉ�É�ÁAÁAÁ ÁaÁaÉ¢ÉáÉ"ʡɡÁaÁa¹@Á�ÁáÉâÁ¢É¢Á¢Ñ‚Á�ÁÂÉáÉÁÁ�Á¢ÁáÉÁÁaÁ¢Á�Á¢ÁáÉ‚Á‚ÁaÊ%ÛDۢ¢Á¢Á¢É£Á¢Á¢Á�Á¢Á‚Á‚Á‚Á‚¹aÁ‚¹aÁb¹aÁa¹@Áa¹`Áa¹`Áa¹`Á�Á`ÁaÁ`¹¡Á¡Ò�ʢɣÁâÉCÊCÒ£ÉÃÁÒCÒâÉÂÁ¢É£É¢ÉÃÉáÉâÁ‚ɣɂɣÉáÉ"ÊâÑÂÁ‚É‚Á‚É‚Á¡ÉâÉÁÉÁÁ�É‚ÁaÁ‚Á�Á¢ÁáÉÊÊ"ÊâÑÊâÑâɡɡÁaÉ�Á�É¡Á�ɢɡÉÂÉáÉâÉÊÂÁÉÁÉ�É�ÁaÁaÁæ‘Á`E1f)E1f)E1f)E1f)E1f)E1f)F)F1F)F1F)F1F)F1F)F1F)F1F)F1F)F1F)F1`±`¹`± Á�ÂÁÒCÊÁÁ£Á£ÉBÂcÒ#ÊÂÉ£ÁÃÉcÊBÒ£Á‚ÁâÁCÒ$Ê¡Á‚¹ÂÉCÊáÉ‚Á‚ÉÂÁÒʡɂÁbÁÁÁáÉÂÁ¡Á‚ÁaÁ‚Á¢É"Ê"ÊÂÁ�ÁƒÁbÁÂÁâÑâÉ¡Á‚ÁaÁbÁbÁ¢Á¢ÉâÁÊBÊB҃ʃ҄ÊcÒCÊÊ‚ÁaÁb¹AÁb¹‚ÉÂáÁ‚¹aÁb¹‚ÁÃÁ¢ÁÂÁ¡Á‚Á¢É¢ÁaÁ¡ÁÁÉ£Á‚Á¡¹âÉÂÁa¹‚¹‚Á¢¹ÂÉ‚ÂÛeӢ£¹‚¹£¹¢Á£¹¢Á£¹‚Á¢¹‚Á‚¹bÁ‚¹b¹b¹b¹b¹a¹b¹a¹a¹A¹a¹A¹a¹`¹a¹aÁ�¹`¹@¡Ò¡Á£¹£ÉCÊÊ£Á£ÉÃÁãÑ#ÊÁÉÃÁ¢É£Á£ÉBÊáÉ£Á¢É£Á‚ÉÂÁÒ#ÊáÁƒÁbÉ£Á‚É¡ÁÂÉâÁ¡Á‚¹‚Á‚ÁaÁ¡¹ÁÉÂáÉâÁÁÉ‚ÁaÁbÁAÁAÁAÁaÁaÉaÁaÉaÁaÉaÁaÁa¹aÁbÁbÁ¢Á¡ÉÂÁâÉF)F1F)F1F)F1F)F1F)F1F)F1F)F1F)F1F)F1 \ No newline at end of file diff --git a/main/assets/configure.html.gz b/main/assets/configure.html.gz new file mode 100644 index 0000000..84b4d6e Binary files /dev/null and b/main/assets/configure.html.gz differ diff --git a/main/assets/yao_request.h b/main/assets/yao_request.h new file mode 100644 index 0000000..c4bee8a --- /dev/null +++ b/main/assets/yao_request.h @@ -0,0 +1,171 @@ +/* Fixed synthetic request: query and interpret the retained hexagram. + * 16 kHz mono Opus, 60 ms packets; each has a LE16 byte-length prefix. + * Source: assets/cyberyao/interpret-request.ogg (generated speech, not a recording). */ +static const unsigned char yao_request_opus[]={ +20,0,88,2,249,48,77,187,13,229,227,146,9,137,56,235,202,225,177,209,221,133,20,0,88,1,242,94,114,54,146,31, +5,250,71,141,105,44,143,32,10,251,250,16,70,0,88,224,1,15,232,82,179,173,90,12,117,65,228,202,45,111,85,230, +50,171,143,152,0,201,89,23,54,191,233,157,253,214,149,55,136,224,14,138,115,96,167,0,252,15,199,161,129,119,126,137, +31,169,159,184,213,159,101,215,244,30,237,198,130,102,66,44,37,246,65,128,89,0,88,225,73,225,19,195,21,39,32,252, +73,39,44,181,144,63,214,135,62,21,115,108,51,20,161,89,173,200,199,69,50,140,137,193,11,210,137,186,69,251,16,190, +253,68,167,202,36,202,3,210,177,14,28,40,79,30,193,195,170,182,214,103,111,201,209,17,205,133,233,109,223,12,191,126, +94,156,113,163,24,6,163,232,81,231,159,211,101,195,152,92,0,88,237,104,40,72,79,224,202,53,92,137,67,27,199,181, +247,144,117,217,115,42,65,232,123,253,200,176,70,164,220,101,37,143,136,212,16,248,247,81,5,87,157,83,242,54,71,102, +104,179,23,51,250,233,239,86,159,11,180,144,36,47,127,129,136,94,188,146,100,88,254,4,137,167,253,61,108,18,168,7, +213,72,184,171,251,168,198,179,72,188,108,235,252,93,0,88,232,134,0,168,158,74,63,40,104,27,68,18,45,10,127,253, +117,137,248,250,176,187,186,187,214,82,157,40,127,161,218,152,30,67,229,125,173,71,244,62,236,230,247,3,45,54,139,148, +109,58,216,91,35,166,121,122,101,170,11,23,132,201,44,122,188,79,231,44,159,67,171,246,61,136,141,54,12,87,122,107, +31,192,138,156,3,238,243,105,78,179,114,64,85,0,88,225,85,22,100,192,43,56,19,194,202,28,172,25,217,169,204,253, +25,113,34,172,134,4,111,156,87,31,27,118,10,68,102,206,131,104,171,107,40,168,190,85,87,137,142,2,96,151,48,32, +254,216,235,27,26,245,123,76,14,223,172,250,177,90,148,183,243,180,180,42,162,57,152,244,12,175,107,55,219,148,3,114, +138,110,22,85,0,88,225,32,56,120,217,1,23,201,61,126,88,46,214,202,252,87,158,74,138,183,59,170,143,198,128,252, +37,52,119,164,120,69,89,204,101,133,212,23,8,249,111,48,121,219,159,225,47,146,65,209,150,0,194,115,238,244,195,178, +246,154,94,69,61,15,0,121,11,41,174,33,206,92,221,93,175,84,142,13,167,60,78,95,55,128,97,0,88,237,184,86, +106,227,119,41,30,234,175,7,251,11,225,69,31,250,33,54,137,20,25,229,56,173,164,171,151,48,45,11,159,199,131,212, +110,234,228,154,169,253,146,5,3,83,181,227,175,207,11,138,22,173,129,190,208,52,66,143,5,121,10,80,99,193,42,0, +167,107,100,115,77,86,235,134,32,174,121,210,155,136,220,229,153,213,130,138,239,4,23,242,241,218,215,191,240,83,0,88, +229,58,147,151,157,129,83,19,196,238,226,234,25,176,224,156,45,176,152,146,248,216,46,122,153,53,120,0,104,31,128,93, +58,163,23,236,142,45,24,128,87,72,146,50,15,78,241,61,195,57,4,129,128,34,176,206,44,49,204,69,253,3,127,12, +140,199,107,238,76,74,159,99,114,57,254,71,4,170,86,45,30,192,82,0,88,236,92,120,49,240,156,219,86,3,199,82, +117,131,220,205,205,35,182,23,182,82,32,36,210,207,100,37,234,197,61,168,91,173,41,161,38,247,193,182,206,87,155,248, +61,112,199,181,198,34,118,148,69,17,252,123,128,231,7,248,60,197,238,7,127,254,109,200,56,217,125,128,250,164,105,223, +223,140,117,186,153,115,88,0,88,232,64,199,165,12,128,16,178,231,101,146,207,208,148,204,46,174,108,5,18,23,136,236, +122,122,52,217,211,7,227,221,127,196,147,29,96,85,96,35,41,3,193,253,53,117,38,219,244,172,238,79,151,228,248,46, +239,45,81,5,234,171,53,29,168,96,185,249,165,113,143,98,17,180,69,225,97,34,207,76,203,47,25,180,5,49,162,128, +76,0,88,224,239,164,163,121,28,31,125,4,17,171,64,0,214,37,63,175,127,130,140,207,173,223,7,240,18,147,239,118, +48,67,127,135,172,30,109,10,136,164,227,53,18,236,134,54,4,120,37,178,243,69,176,38,124,197,245,142,109,228,87,14, +118,0,41,65,96,170,55,146,197,1,159,24,234,152,80,0,88,235,167,45,152,220,146,14,114,244,167,132,243,57,116,41, +209,171,195,162,31,229,98,255,109,225,39,137,137,67,33,35,82,198,84,36,33,14,128,108,127,58,48,79,52,20,55,101, +186,165,191,13,253,144,165,171,239,87,42,85,143,232,95,42,140,227,39,100,165,39,141,29,240,102,179,232,47,39,109,224, +80,0,88,224,228,0,184,137,119,122,101,22,58,29,30,141,223,202,229,36,225,251,223,74,111,142,236,87,194,137,186,30, +122,47,215,115,150,85,236,237,139,125,140,220,218,159,7,34,205,160,72,193,198,3,225,86,32,20,196,62,124,250,182,194, +52,177,3,62,226,237,237,135,198,245,5,177,54,202,137,243,124,192,96,0,88,225,8,185,175,211,23,126,223,127,218,151, +189,53,59,14,174,128,49,181,117,191,33,144,67,59,69,62,191,129,242,239,81,227,53,190,242,152,105,210,166,92,34,57, +51,251,50,120,212,12,78,158,80,162,204,188,121,164,255,181,56,68,174,34,12,170,147,75,12,92,129,249,95,214,198,61, +176,75,63,12,212,169,224,205,87,234,24,109,67,149,186,114,187,15,181,128,94,0,88,236,223,66,55,155,46,64,128,12, +209,174,238,58,9,187,233,207,171,48,126,105,122,131,27,146,47,172,8,62,226,91,209,148,244,31,40,68,165,132,239,140, +245,75,191,115,218,216,198,188,74,240,180,5,27,88,86,155,9,23,169,66,207,70,243,8,204,13,219,72,69,247,99,99, +55,174,98,118,129,46,176,166,255,199,46,71,200,223,25,221,135,241,1,66,92,0,88,234,94,144,161,70,126,106,21,87, +56,149,86,236,162,205,29,97,113,6,36,120,103,108,146,53,27,63,190,196,255,144,175,240,155,166,38,109,63,72,105,26, +53,177,141,130,35,99,220,198,128,107,196,135,30,156,1,144,244,222,9,16,118,244,197,241,190,75,182,74,183,151,85,35, +134,151,60,91,223,159,153,136,46,202,176,114,187,151,121,82,33,128,102,0,88,234,115,170,28,1,129,88,224,89,84,223, +30,90,48,191,164,13,8,90,254,24,22,248,84,2,236,88,214,40,174,219,158,105,48,67,154,120,159,169,208,114,152,72, +96,22,143,107,183,165,96,195,100,241,180,5,78,173,175,21,149,166,212,167,35,159,77,33,187,2,191,198,202,252,62,68, +15,122,73,8,217,173,94,235,68,166,5,174,158,90,204,11,144,94,63,104,99,57,15,128,224,128,100,0,88,233,149,232, +158,9,148,225,214,157,156,159,77,46,74,178,235,120,213,172,98,149,190,201,41,140,9,74,53,18,138,116,70,104,48,188, +228,224,147,50,252,214,149,77,70,198,104,60,99,68,138,251,241,146,168,171,202,136,128,59,11,77,87,140,232,16,140,77, +73,175,109,141,29,216,101,107,188,202,221,42,58,53,240,231,249,115,178,245,54,221,234,146,173,95,135,59,134,96,225,16, +79,0,88,224,195,223,58,255,228,155,238,193,119,251,179,136,119,146,13,85,59,96,222,189,39,133,175,68,40,103,45,4, +42,216,90,181,201,158,79,228,71,91,216,103,76,22,230,206,142,31,153,154,239,203,104,100,96,239,128,40,211,95,91,26, +28,142,203,92,121,173,143,155,218,61,123,3,156,55,162,46,88,90,0,88,228,150,91,135,62,250,220,19,26,26,194,10, +245,196,20,177,143,100,107,180,208,120,203,213,220,72,130,163,21,18,140,80,200,79,119,253,139,97,74,78,81,181,91,246, +25,205,209,100,151,231,98,109,96,132,7,238,91,109,19,10,45,104,8,206,31,245,172,91,200,181,103,194,221,9,83,200, +184,22,183,111,219,190,76,67,247,4,183,196,32,93,0,88,239,137,76,240,150,84,195,114,253,115,186,215,184,99,170,223, +74,100,183,212,61,187,27,217,184,82,33,143,70,208,224,13,227,118,221,156,27,236,83,146,130,227,23,39,192,148,47,218, +5,244,103,141,159,53,91,175,118,48,130,224,248,253,111,84,127,90,109,145,72,174,67,209,190,106,65,139,36,68,191,199, +40,88,40,46,14,104,170,164,134,82,62,192,71,0,88,169,200,228,49,137,55,79,168,54,2,57,20,178,186,196,37,84, +182,235,27,23,188,185,175,72,95,248,7,146,192,128,89,251,99,50,118,142,221,234,4,149,36,163,143,152,173,136,7,198, +89,239,126,84,172,251,187,83,155,141,241,49,77,217,174,25,186,96,60,21,144,96,0,88,224,175,234,104,177,174,251,165, +126,37,241,240,77,56,251,246,209,51,75,243,161,153,251,198,40,163,154,173,29,160,63,207,18,22,73,14,89,169,1,202, +129,243,246,204,141,187,88,200,127,103,199,142,76,186,157,130,70,55,227,221,76,13,88,56,152,21,31,35,232,110,228,134, +255,141,50,3,28,200,161,51,154,71,147,99,96,131,149,160,56,240,254,103,64,22,152,74,0,88,236,238,203,247,209,247, +58,103,37,4,167,122,23,232,220,221,137,55,123,41,236,225,113,173,71,44,101,79,20,128,67,37,140,179,89,5,26,46, +89,52,19,182,124,121,62,239,131,219,1,99,200,174,190,120,75,86,108,148,193,6,204,198,119,253,179,41,209,88,208,133, +17,205,144,104,0,88,235,244,173,3,241,244,168,11,199,220,215,120,225,63,207,84,128,235,185,246,142,0,228,0,154,255, +192,147,66,231,154,234,217,76,68,166,235,62,8,143,222,111,171,112,152,47,226,222,36,71,45,206,59,27,8,126,122,56, +84,114,132,68,70,229,25,49,183,25,94,149,156,80,46,61,82,3,144,239,232,55,45,229,221,10,30,99,91,213,132,75, +30,195,91,111,107,213,46,83,146,219,53,177,226,66,0,88,229,87,15,207,92,213,25,8,170,226,10,242,166,2,199,31, +124,38,215,121,250,234,206,54,60,16,223,199,42,68,170,254,5,101,210,118,65,210,238,183,40,171,157,237,218,77,209,44, +228,22,120,43,133,26,153,111,202,204,242,214,249,66,32,82,224,89,0,88,237,110,137,213,218,212,63,30,52,97,187,133, +16,209,199,50,45,22,255,171,55,241,65,81,209,63,119,36,207,17,212,16,154,185,223,136,249,138,41,182,71,198,121,142, +97,208,5,27,23,243,155,121,3,15,114,33,246,132,48,249,85,131,187,215,37,173,185,206,7,22,232,158,100,242,47,73, +158,69,67,139,130,165,56,187,164,250,170,128,76,0,88,234,187,64,103,184,101,98,189,245,0,240,144,39,75,128,127,159, +178,22,82,114,253,193,216,217,251,16,43,47,227,142,116,158,111,68,40,20,47,87,234,50,174,241,153,106,128,80,71,109, +46,116,53,159,198,41,228,148,180,226,109,166,87,225,247,175,32,246,163,230,176,186,250,127,41,4,73,0,88,33,20,14, +177,84,155,154,80,255,33,33,111,89,131,0,221,115,161,58,134,105,234,128,236,204,76,81,117,214,176,110,35,2,215,152, +130,114,99,29,20,255,222,68,25,184,111,175,50,116,155,43,56,0,73,88,221,57,187,124,0,27,205,238,112,160,114,136, +70,178,181,224,32,86,0,88,227,36,153,102,151,89,177,143,49,40,178,163,9,198,166,66,158,112,200,82,7,129,68,170, +170,249,65,141,224,32,186,219,220,51,139,220,119,187,5,228,180,251,164,217,231,250,229,123,116,2,30,254,227,13,99,134, +22,67,171,62,247,24,66,61,151,167,200,196,8,204,74,41,255,120,140,69,223,59,158,43,241,239,33,147,208,66,0,88, +128,141,156,37,16,150,139,146,187,125,103,248,170,238,193,187,102,56,35,253,222,128,25,218,116,72,213,84,55,243,58,173, +230,17,185,107,94,73,54,62,157,112,112,222,151,133,187,35,142,235,239,182,178,4,45,123,129,228,113,180,225,134,109,99, +223,57,0,88,38,154,150,68,59,152,196,165,231,228,211,246,210,173,31,216,166,135,125,101,223,24,230,163,238,44,3,67, +112,123,68,185,13,185,225,153,188,142,128,67,115,117,228,185,172,124,162,167,158,120,141,11,52,231,32,96,98,0,88,224, +180,137,33,238,169,30,248,217,238,182,164,36,192,133,123,122,19,232,111,175,229,218,163,47,51,133,144,218,17,140,7,250, +24,196,218,11,185,85,70,66,42,90,8,143,230,98,236,140,60,23,108,48,193,150,15,204,136,210,230,194,3,150,94,241, +83,168,74,120,20,182,88,40,21,23,216,193,218,213,42,70,0,211,213,34,48,205,36,164,184,129,168,62,154,206,170,161, +89,0,88,235,131,201,31,108,33,7,254,140,169,164,156,182,214,37,195,240,44,143,33,71,134,36,249,132,102,170,49,180, +107,28,98,118,43,177,207,234,75,36,119,136,255,38,132,102,26,126,57,215,224,135,196,64,165,39,215,145,184,254,105,197, +146,52,149,36,112,76,203,180,79,8,144,179,250,87,101,80,25,226,178,89,186,152,1,64,35,48,159,79,0,88,232,133, +95,97,5,80,83,199,123,40,143,220,30,24,166,104,207,79,204,90,113,17,60,34,58,13,111,221,51,124,206,199,70,87, +98,22,160,146,33,212,9,202,149,227,0,21,115,118,28,38,15,65,175,180,141,172,122,99,182,190,13,46,194,97,29,116, +104,43,33,141,249,164,121,201,118,10,219,133,93,0,88,225,67,16,232,216,149,235,41,104,192,151,234,133,129,221,218,229, +174,57,127,133,150,20,78,7,165,61,165,190,252,11,234,28,152,238,169,231,178,158,193,123,80,45,169,155,130,165,142,1, +25,24,140,94,16,56,17,231,168,225,233,25,199,228,98,175,69,43,141,22,122,242,132,149,153,247,169,76,171,220,44,59, +54,107,112,57,83,86,214,82,47,238,139,98,0,88,235,239,237,16,230,162,124,190,42,47,22,203,255,164,111,43,254,22, +124,74,196,205,124,251,156,65,125,201,47,220,63,100,222,205,130,233,85,113,80,87,67,208,178,218,83,32,66,5,105,119, +209,14,36,109,224,22,217,206,240,49,22,100,208,186,131,133,14,112,48,168,232,195,251,145,155,129,217,178,179,38,150,251, +248,169,97,174,61,6,54,69,188,89,157,175,32,184,19,89,0,88,234,137,12,165,200,213,249,247,225,15,168,160,52,173, +189,101,128,28,31,4,35,47,52,243,218,143,200,50,129,28,254,63,148,115,120,35,193,18,231,86,108,239,250,172,112,200, +215,171,47,238,183,89,15,122,35,99,76,66,33,7,91,95,191,171,1,28,148,203,55,157,8,53,197,236,206,82,182,114, +19,91,25,125,236,50,76,118,18,32,105,0,88,229,47,19,133,146,132,204,80,195,0,69,175,97,97,217,130,32,230,159, +190,97,193,246,40,200,135,243,59,158,145,223,161,143,163,232,131,33,19,136,151,48,44,137,43,181,254,1,16,32,97,239, +76,184,35,177,54,238,44,36,237,6,192,151,199,112,138,195,131,83,198,120,3,230,14,191,62,200,235,56,164,189,120,237, +185,10,23,188,178,29,200,250,219,35,155,183,77,68,2,229,125,231,104,186,96,94,0,88,234,64,132,218,126,163,228,21, +41,13,100,237,251,237,115,245,210,195,28,98,165,223,248,13,1,8,122,192,140,167,226,74,203,99,114,211,82,170,150,218, +64,161,241,103,26,58,171,147,184,228,153,225,56,100,151,123,37,62,33,6,157,8,35,171,212,196,174,208,110,34,105,253, +179,67,115,162,52,26,83,154,193,242,65,67,128,85,69,132,18,130,143,23,80,93,0,88,234,241,136,154,31,149,178,171, +24,204,104,118,38,55,113,23,252,77,47,75,234,4,243,140,128,201,98,225,15,177,167,21,6,108,48,24,32,29,74,74, +172,97,75,78,232,49,199,11,164,53,155,30,29,84,179,246,38,238,148,39,254,202,173,125,100,97,1,104,90,102,176,72, +196,25,168,10,145,236,203,225,6,172,4,209,59,49,55,18,110,147,99,104,78,0,88,236,26,127,66,229,191,78,149,244, +140,122,87,169,193,251,146,12,35,95,33,123,210,74,27,122,71,96,15,29,109,119,220,76,226,30,1,91,47,34,49,65, +132,202,165,90,245,177,13,0,173,48,60,243,240,57,26,86,150,234,176,155,93,89,11,109,172,169,232,244,120,72,199,148, +170,161,5,196,101,0,88,235,23,183,167,39,33,229,163,10,130,195,215,164,205,78,36,233,94,152,97,220,187,197,78,58, +15,104,100,187,251,91,110,64,113,146,215,127,93,13,123,16,233,8,201,158,136,237,68,59,53,110,166,253,8,83,61,108, +127,32,39,187,10,28,217,202,232,234,60,241,197,171,80,197,120,25,71,199,145,93,49,187,95,242,132,192,18,25,221,242, +191,163,32,76,15,172,169,203,223,185,240,105,0,88,234,224,218,162,252,85,24,224,163,35,53,170,114,103,85,139,25,22, +198,137,216,226,97,205,236,42,80,224,73,249,207,55,33,19,59,196,145,51,105,82,155,6,50,154,218,253,174,235,12,96, +116,59,238,19,237,216,181,29,119,71,40,49,81,114,99,171,26,174,100,79,1,169,217,64,191,171,47,203,238,188,236,72, +201,9,159,68,77,45,198,202,240,157,11,85,34,109,211,13,148,172,122,37,254,24,86,0,88,234,169,179,151,100,137,119, +215,162,31,221,181,34,21,91,174,124,196,92,25,150,4,248,174,200,131,181,221,167,96,120,224,99,120,95,132,129,66,21, +159,211,138,152,250,99,6,85,169,211,239,130,12,171,187,136,188,112,61,110,72,131,203,164,138,245,12,194,240,158,109,165, +195,156,204,231,45,232,246,255,167,195,153,207,200,32,69,0,88,224,125,247,35,158,28,130,104,46,252,249,181,253,226,123, +94,99,152,60,13,74,217,100,251,1,172,248,133,158,35,190,80,10,223,75,215,181,222,36,170,187,239,31,175,84,214,90, +214,114,63,13,199,115,212,93,57,170,238,3,163,44,107,85,1,131,248,78,184,86,0,88,229,128,153,113,36,219,154,71, +224,164,59,90,0,224,30,155,221,12,190,128,93,179,94,14,169,118,192,199,64,229,92,1,57,119,154,227,95,197,211,185, +232,216,254,81,54,19,169,243,192,130,243,157,11,64,108,131,225,70,200,222,104,213,133,214,0,210,17,60,48,164,90,23, +196,159,4,8,202,166,50,14,0,183,184,27,219,69,0,88,234,79,10,175,224,79,12,2,179,247,237,245,138,199,29,162, +243,186,188,83,193,10,228,150,148,225,230,102,82,144,0,254,41,214,118,70,93,150,60,215,102,109,197,90,238,97,44,123, +134,151,111,224,75,83,243,80,179,253,102,66,172,92,246,178,173,173,104,207,61,0,88,33,33,222,167,227,154,69,50,48, +142,23,33,112,208,24,94,189,12,144,239,145,29,211,251,238,42,209,219,251,137,126,48,231,89,217,186,106,210,193,87,68, +199,23,117,226,197,96,35,100,179,119,67,7,216,70,224,186,138,97,128,88,0,88,224,220,225,6,6,187,34,251,101,210, +180,203,66,181,6,44,210,178,24,253,66,161,158,15,55,221,79,214,22,229,151,168,193,61,33,164,209,62,183,18,242,236, +109,233,185,65,136,45,240,37,173,234,45,74,183,164,200,57,191,85,212,124,209,50,144,205,91,25,225,124,99,38,50,188, +47,251,149,43,212,69,109,47,220,98,88,63,112,89,0,88,230,221,67,153,2,252,127,229,57,0,226,163,55,104,114,251, +46,209,208,204,186,133,178,241,180,32,182,130,163,29,65,225,22,132,67,231,97,137,180,54,227,121,217,113,88,218,186,52, +90,17,205,88,25,15,137,215,109,220,138,223,223,25,252,166,88,207,56,86,119,172,110,151,194,203,106,213,152,50,105,47, +157,199,54,91,187,169,240,193,116,0,88,230,212,222,55,41,255,98,226,161,210,60,81,121,56,216,34,23,66,145,218,6, +176,150,196,153,49,187,52,165,133,182,243,200,249,132,118,26,85,240,0,212,105,163,190,209,229,45,44,149,124,247,152,193, +6,63,220,111,236,96,127,251,22,61,175,2,19,9,93,162,93,72,193,118,203,135,186,182,65,241,45,148,35,27,156,101, +19,218,86,224,237,131,125,158,162,198,234,166,147,174,31,177,111,150,215,109,247,153,249,6,192,170,166,58,83,153,94,0, +88,226,117,64,62,54,160,239,67,231,153,74,10,177,30,74,63,45,39,130,11,78,249,49,25,7,68,179,227,32,12,93, +94,211,197,151,142,99,230,205,31,17,244,230,35,20,61,136,213,132,241,230,211,209,27,58,183,118,175,24,50,130,176,74, +214,13,163,162,62,60,16,182,130,46,71,138,114,28,197,110,137,46,59,167,251,10,163,8,251,250,118,0,117,60,60,0, +88,198,235,214,173,4,166,224,23,253,167,149,111,40,136,72,102,251,46,23,191,73,87,77,173,97,167,39,210,185,46,80, +243,207,115,207,62,73,55,239,81,19,104,221,12,63,211,13,70,130,15,39,172,194,96,6,83,143,9,28,22,0,88,2, +26,252,1,36,192,144,115,252,47,92,81,77,77,144,133,9,78,207,240,128,21,0,88,1,242,94,114,54,146,31,5,250, +71,141,105,44,143,32,10,251,251,43,32,21,0,88,1,242,94,114,54,146,31,5,250,71,141,105,44,143,32,10,251,251, +43,32,21,0,88,1,242,94,114,54,146,31,5,250,71,141,105,44,143,32,10,251,251,43,32,21,0,88,1,242,94,114, +54,146,31,5,250,71,141,105,44,143,32,10,251,251,43,32,21,0,88,1,242,94,114,54,146,31,5,250,71,141,105,44, +143,32,10,251,251,43,32,21,0,88,1,242,94,114,54,146,31,5,250,71,141,105,44,143,32,10,251,251,43,32,21,0, +88,1,242,94,114,54,146,31,5,250,71,141,105,44,143,32,10,251,251,43,32,21,0,88,1,242,94,114,54,146,31,5, +250,71,141,105,44,143,32,10,251,251,43,32,21,0,88,1,242,94,114,54,146,31,5,250,71,141,105,44,143,32,10,251, +251,43,32,21,0,88,1,242,94,114,54,146,31,5,250,71,141,105,44,143,32,10,251,251,43,32,21,0,88,1,242,94, +114,54,146,31,5,250,71,141,105,44,143,32,10,251,251,43,32,21,0,88,1,242,94,114,54,146,31,5,250,71,141,105, +44,143,32,10,251,251,43,32,21,0,88,1,242,94,114,54,146,31,5,250,71,141,105,44,143,32,10,251,251,43,32,21, +0,88,1,242,94,114,54,146,31,5,250,71,141,105,44,143,32,10,251,251,43,32,21,0,88,1,242,94,114,54,146,31, +5,250,71,141,105,44,143,32,10,251,251,43,32,21,0,88,1,242,94,114,54,146,31,5,250,71,141,105,44,143,32,10, +251,251,43,32,21,0,88,1,242,94,114,54,146,31,5,250,71,141,105,44,143,32,10,251,251,43,32,21,0,88,1,242, +94,114,54,146,31,5,250,71,141,105,44,143,32,10,251,251,43,32,21,0,88,1,242,94,114,54,146,31,5,250,71,141, +105,44,143,32,10,251,251,43,32,21,0,88,1,242,94,114,54,146,31,5,250,71,141,105,44,143,32,10,251,251,43,32, +21,0,88,1,242,94,114,54,146,31,5,250,71,141,105,44,143,32,10,251,251,43,32 +}; diff --git a/main/badge_alarm_service.c b/main/badge_alarm_service.c new file mode 100644 index 0000000..94a997f --- /dev/null +++ b/main/badge_alarm_service.c @@ -0,0 +1,79 @@ +#include "badge_alarm_service.h" +#include +#include +static badge_alarms_t book; +static bool ready; +#ifdef BADGE_CONTROL_HOST_TEST +int64_t badge_alarm_test_now=1800000000; +bool badge_alarm_test_write_fail; +static badge_alarms_t persisted; +static bool exists; +#define LOCK() ((void)0) +#define UNLOCK() ((void)0) +static bool save(const badge_alarms_t *b){if(badge_alarm_test_write_fail)return false;persisted=*b;exists=true;return true;} +int64_t badge_alarm_service_now(void){return badge_alarm_test_now;} +bool badge_alarm_service_init(void){if(exists)book=persisted;else badge_alarms_init(&book);return ready=badge_alarms_valid(&book);} +#else +#include "nvs.h" +#include "freertos/FreeRTOS.h" +#include "freertos/semphr.h" +static SemaphoreHandle_t mutex; +#define LOCK() xSemaphoreTake(mutex,portMAX_DELAY) +#define UNLOCK() xSemaphoreGive(mutex) +static bool save(const badge_alarms_t *b){ + nvs_handle_t h;esp_err_t e=nvs_open("badge_alarms",NVS_READWRITE,&h);if(e!=ESP_OK)return false; + e=nvs_set_blob(h,"v1",b,sizeof(*b));if(e==ESP_OK)e=nvs_commit(h);nvs_close(h);return e==ESP_OK; +} +int64_t badge_alarm_service_now(void){return (int64_t)time(NULL);} +bool badge_alarm_service_init(void){ + mutex=xSemaphoreCreateMutex();if(!mutex)return false; + badge_alarms_init(&book);nvs_handle_t h;esp_err_t e=nvs_open("badge_alarms",NVS_READONLY,&h); + if(e==ESP_ERR_NVS_NOT_FOUND)return ready=true; + if(e!=ESP_OK)return false; + size_t size=sizeof(book);e=nvs_get_blob(h,"v1",&book,&size);nvs_close(h); + if(e==ESP_ERR_NVS_NOT_FOUND){badge_alarms_init(&book);return ready=true;} + return ready=e==ESP_OK&&size==sizeof(book)&&badge_alarms_valid(&book); +} +#endif +bool badge_alarm_service_add(int64_t due,unsigned minute,unsigned days,const char *text,uint32_t *id){ + if(!ready)return false; + LOCK();badge_alarms_t next=book;uint32_t created=0; + bool ok=badge_alarms_add(&next,badge_alarm_service_now(),due,minute,days,text,&created); + if(ok&&memcmp(&next,&book,sizeof(book)))ok=save(&next); + if(ok){book=next;*id=created;}UNLOCK();return ok; +} +static bool remove_or_ack(uint32_t id,bool ack){ + if(!ready)return false; + LOCK();badge_alarms_t next=book; + bool ok=ack?badge_alarms_ack(&next,id):badge_alarms_cancel(&next,id); + if(ok)ok=save(&next); + if(ok)book=next; + UNLOCK();return ok; +} +bool badge_alarm_service_cancel(uint32_t id){return remove_or_ack(id,false);} +bool badge_alarm_service_ack(uint32_t id){return remove_or_ack(id,true);} +bool badge_alarm_service_poll(badge_alarm_t *out){ + if(!ready)return false; + LOCK();badge_alarms_t next=book;badge_alarm_t candidate; + bool due=badge_alarms_poll(&next,badge_alarm_service_now(),&candidate),ok=true; + if(memcmp(&next,&book,sizeof(book)))ok=save(&next); + if(ok){book=next;if(due)*out=candidate;}UNLOCK();return ok&&due; +} +cJSON *badge_alarm_service_json(void){ + cJSON *o=cJSON_CreateObject();if(!o)return NULL; + int64_t now=badge_alarm_service_now();char clock[20];badge_alarm_format(now,clock); + cJSON_AddStringToObject(o,"local_time",clock);cJSON_AddStringToObject(o,"timezone","Asia/Shanghai UTC+8"); + cJSON_AddBoolToObject(o,"clock_ready",now>=BADGE_CLOCK_MIN);cJSON_AddBoolToObject(o,"storage_ready",ready); + cJSON_AddNumberToObject(o,"capacity",BADGE_ALARM_COUNT);cJSON_AddBoolToObject(o,"survives_reboot",true); + cJSON *list=cJSON_AddArrayToObject(o,"reminders");if(!ready)return o; + LOCK();badge_alarms_t copy=book;UNLOCK();unsigned count=0; + for(unsigned i=0;iid)continue;count++; + cJSON *item=cJSON_CreateObject();cJSON_AddNumberToObject(item,"id",a->id);cJSON_AddStringToObject(item,"text",a->text); + badge_alarm_format(a->due,clock);cJSON_AddStringToObject(item,"next_at",clock); + cJSON_AddNumberToObject(item,"remaining_seconds",nowdue>now?(double)(a->due-now):0); + cJSON_AddBoolToObject(item,"pending",a->pending);cJSON *days=cJSON_AddArrayToObject(item,"weekdays"); + for(unsigned d=0;d<7;d++)if(a->weekdays&(1u< +#include +#define ALARM_MAGIC 0x414C0001u +static bool leap(unsigned y){return y%4==0&&(y%100!=0||y%400==0);} +static unsigned month_days(unsigned y,unsigned m){static const unsigned d[]={31,28,31,30,31,30,31,31,30,31,30,31};return d[m-1]+(m==2&&leap(y));} +static bool digits(const char *p,unsigned n){for(unsigned i=0;i'9')return false;return true;} +void badge_alarms_init(badge_alarms_t *b){memset(b,0,sizeof(*b));b->magic=ALARM_MAGIC;b->next_id=1;} +bool badge_alarms_valid(const badge_alarms_t *b){ + if(b->magic!=ALARM_MAGIC||!b->next_id||b->next_id>2147483647u)return false; + for(unsigned i=0;iitems[i];if(!a->id)continue; + if(a->minute>=1440||a->weekdays>127||a->pending>1||(a->duedue>=BADGE_CLOCK_MAX||a->last<0||a->last>=BADGE_CLOCK_MAX)||!memchr(a->text,0,sizeof(a->text))||!a->text[0])return false; + for(unsigned j=0;jitems[j].id==a->id)return false; + }return true; +} +int64_t badge_alarm_next(int64_t now,unsigned minute,unsigned weekdays){ + if((now=BADGE_CLOCK_MAX-604800)||minute>=1440||weekdays>127)return 0; + int64_t day=(now+28800)/86400; + for(unsigned n=0;n<8;n++){ + int64_t d=day+n,t=d*86400+(int64_t)minute*60-28800; + if(t>now&&(!weekdays||(weekdays&(1u<<((d+3)%7)))))return t; + }return 0; +} +bool badge_alarm_time(const char *s,unsigned *minute){ + if(!s||strlen(s)!=5||s[2]!=':'||!digits(s,2)||!digits(s+3,2))return false; + unsigned h=(s[0]-'0')*10+s[1]-'0',m=(s[3]-'0')*10+s[4]-'0';if(h>23||m>59)return false;*minute=h*60+m;return true; +} +bool badge_alarm_date(const char *s,int64_t *day){ + if(!s||strlen(s)!=10||s[4]!='-'||s[7]!='-'||!digits(s,4)||!digits(s+5,2)||!digits(s+8,2))return false; + unsigned y=(s[0]-'0')*1000+(s[1]-'0')*100+(s[2]-'0')*10+s[3]-'0',m=(s[5]-'0')*10+s[6]-'0',d=(s[8]-'0')*10+s[9]-'0'; + if(y<2024||y>2099||m<1||m>12||d<1||d>month_days(y,m))return false; + int64_t n=0;for(unsigned i=1970;i=BADGE_CLOCK_MAX-604800)||days>127)return false; + *minute=0; + if(seconds){if(seconds>86400||(time&&*time)||(date&&*date)||days)return false;*due=now+seconds;return true;} + if(!badge_alarm_time(time,minute))return false; + if(date&&*date){int64_t day;if(days||!badge_alarm_date(date,&day))return false;*due=day*86400+(int64_t)*minute*60-28800;return *due>now;} + *due=badge_alarm_next(now,*minute,days);return *due!=0; +} +bool badge_alarms_add(badge_alarms_t *b,int64_t now,int64_t due,unsigned minute,unsigned days,const char *text,uint32_t *id){ + if(!badge_alarms_valid(b)||(now=BADGE_CLOCK_MAX-604800)||due<=now||due>=BADGE_CLOCK_MAX||minute>=1440||days>127||!text||!*text||strlen(text)>96)return false; + /* Retried identical requests must not create duplicate reminders. */ + for(unsigned i=0;iitems[i];if(a->id&&a->due==due&&a->minute==minute&&a->weekdays==days&&!strcmp(a->text,text)){*id=a->id;return true;}} + for(unsigned i=0;iitems[i].id){ + uint32_t n=b->next_id;bool collision; + do{collision=false;for(unsigned j=0;jitems[j].id==n){collision=true;n++;if(n>2147483647u)n=1;break;}}while(collision); + b->next_id=n+1;if(b->next_id>2147483647u)b->next_id=1; + badge_alarm_t *a=&b->items[i];memset(a,0,sizeof(*a));a->id=n;a->due=due;a->minute=(uint16_t)minute;a->weekdays=(uint8_t)days;strcpy(a->text,text);*id=n;return true; + }return false; +} +bool badge_alarms_cancel(badge_alarms_t *b,uint32_t id){for(unsigned i=0;iitems[i].id==id&&id){memset(&b->items[i],0,sizeof(b->items[i]));return true;}return false;} +bool badge_alarms_ack(badge_alarms_t *b,uint32_t id){ + for(unsigned i=0;iitems[i].id==id&&id){if(!b->items[i].pending)return false;if(b->items[i].weekdays)b->items[i].pending=0;else memset(&b->items[i],0,sizeof(b->items[i]));return true;} + return false; +} +bool badge_alarms_poll(badge_alarms_t *b,int64_t now,badge_alarm_t *out){ + for(unsigned i=0;iitems[i].id&&b->items[i].pending){*out=b->items[i];return true;} + if((now=BADGE_CLOCK_MAX-604800))return false; + int found=-1;for(unsigned i=0;iitems[i];if(!a->id||a->due>now)continue; + /* Do not replay every missed daily occurrence after a long power-off. */ + if(a->weekdays&&now-a->due>600){a->due=badge_alarm_next(now>a->last?now:a->last,a->minute,a->weekdays);continue;} + if(found<0||a->dueitems[found].due)found=(int)i; + } + if(found<0)return false; + badge_alarm_t *a=&b->items[found];a->pending=1;a->last=a->due; + if(a->weekdays)a->due=badge_alarm_next(now>a->last?now:a->last,a->minute,a->weekdays); + *out=*a;return true; +} +void badge_alarm_format(int64_t utc,char out[20]){ + if(utc=BADGE_CLOCK_MAX){strcpy(out,"unsynchronized");return;} + int64_t day=(utc+28800)/86400;unsigned sec=(unsigned)((utc+28800)%86400),y=1970,m=1; + while(day>=(leap(y)?366:365)){day-=leap(y)?366:365;y++;} + while(day>=month_days(y,m)){day-=month_days(y,m);m++;} + snprintf(out,20,"%04u-%02u-%02u %02u:%02u",y,m,(unsigned)day+1,sec/3600,(sec%3600)/60); +} diff --git a/main/badge_alarms.h b/main/badge_alarms.h new file mode 100644 index 0000000..8d719bb --- /dev/null +++ b/main/badge_alarms.h @@ -0,0 +1,27 @@ +#pragma once +#include +#include +#define BADGE_ALARM_COUNT 8 +#define BADGE_CLOCK_MIN INT64_C(1704067200) +#define BADGE_CLOCK_MAX INT64_C(4102444800) +typedef struct { + uint32_t id; + uint16_t minute; + uint8_t weekdays,pending; + int64_t due,last; + char text[97]; +} badge_alarm_t; +typedef struct {uint32_t magic,next_id;badge_alarm_t items[BADGE_ALARM_COUNT];} badge_alarms_t; +void badge_alarms_init(badge_alarms_t *b); +bool badge_alarms_valid(const badge_alarms_t *b); +/* UTC storage, fixed UTC+8 civil schedules. Monday is mask bit zero. */ +int64_t badge_alarm_next(int64_t now,unsigned minute,unsigned weekdays); +bool badge_alarm_time(const char *hhmm,unsigned *minute); +bool badge_alarm_date(const char *date,int64_t *local_day); +bool badge_alarm_schedule(int64_t now,unsigned seconds,const char *time,const char *date,unsigned weekdays,int64_t *due,unsigned *minute); +bool badge_alarms_add(badge_alarms_t *b,int64_t now,int64_t due,unsigned minute,unsigned weekdays,const char *text,uint32_t *id); +bool badge_alarms_cancel(badge_alarms_t *b,uint32_t id); +/* Pending alerts survive reboot; acknowledge removes one-shot entries. */ +bool badge_alarms_ack(badge_alarms_t *b,uint32_t id); +bool badge_alarms_poll(badge_alarms_t *b,int64_t now,badge_alarm_t *out); +void badge_alarm_format(int64_t utc,char out[20]); diff --git a/main/badge_alert.c b/main/badge_alert.c new file mode 100644 index 0000000..e43335a --- /dev/null +++ b/main/badge_alert.c @@ -0,0 +1,54 @@ +#include "badge_alert.h" +#include "badge_power.h" +#include "bsp_audio.h" +#include "bsp_display.h" +#include "badge_theme.h" +#include "badge_footer.h" +#include "freertos/FreeRTOS.h" +#include "freertos/task.h" +#include "esp_log.h" +#include +#include +LV_FONT_DECLARE(font_xiaozhi_14); +static atomic_bool playing,cancelled; +static lv_obj_t *panel; +static void chime(void *arg){ + (void)arg; + badge_power_enter(); + esp_err_t e=bsp_audio_init(); + unsigned previous=bsp_audio_get_volume(); + if(e==ESP_OK)e=bsp_audio_set_format(16000,16,1); + if(e==ESP_OK)e=bsp_audio_wake(); + if(e==ESP_OK)bsp_audio_set_volume(90); + int16_t pcm[320],silence[320]={0}; + for(unsigned i=0;i<320;i++)pcm[i]=(int16_t)(5000*sinf(6.2831853f*800*i/16000)); + for(unsigned frame=0;e==ESP_OK&&frame<90&&!atomic_load(&cancelled);frame++){ + e=bsp_audio_write(frame%30<10?pcm:silence,sizeof(pcm)); + } + bsp_audio_set_volume(previous); + esp_err_t sleep=badge_power_leave(); + ESP_LOGI("badge_alert","Chime done audio=%s sleep=%s stack=%u",esp_err_to_name(e),esp_err_to_name(sleep),(unsigned)uxTaskGetStackHighWaterMark(NULL)); + atomic_store(&playing,false);vTaskDelete(NULL); +} +bool badge_alert_start(const char *text){ + if(panel||atomic_load(&playing)||!bsp_lvgl_lock(1000))return false; + const uint32_t *c=badge_theme_colors(); + panel=lv_obj_create(lv_layer_top());lv_obj_remove_style_all(panel); + lv_obj_set_pos(panel,0,28);lv_obj_set_size(panel,240,292); + lv_obj_set_style_bg_color(panel,lv_color_hex(c[BADGE_BACKGROUND]),0);lv_obj_set_style_bg_opa(panel,LV_OPA_COVER,0); + lv_obj_remove_flag(panel,LV_OBJ_FLAG_SCROLLABLE); + lv_obj_t *title=lv_label_create(panel);lv_obj_set_pos(title,20,46);lv_obj_set_width(title,200); + lv_obj_set_style_text_font(title,&font_xiaozhi_14,0);lv_obj_set_style_text_color(title,lv_color_hex(c[BADGE_ACCENT]),0);lv_label_set_text(title,"æ��醒时间到了"); + lv_obj_t *body=lv_label_create(panel);lv_obj_set_pos(body,20,90);lv_obj_set_size(body,200,140); + lv_obj_set_style_text_font(body,&font_xiaozhi_14,0);lv_obj_set_style_text_line_space(body,8,0);lv_obj_set_style_text_color(body,lv_color_hex(c[BADGE_TEXT]),0); + lv_label_set_long_mode(body,LV_LABEL_LONG_WRAP);lv_label_set_text(body,text); + lv_obj_t *hint=badge_footer_create(panel,BADGE_HINT_REMINDER);lv_obj_set_y(hint,272); + bsp_lvgl_unlock();atomic_store(&cancelled,false);atomic_store(&playing,true); + if(xTaskCreate(chime,"badge_chime",6144,NULL,4,NULL)!=pdPASS){atomic_store(&playing,false);ESP_LOGW("badge_alert","Chime task unavailable; visual reminder remains");} + return true; +} +bool badge_alert_dismiss(void){ + atomic_store(&cancelled,true);if(atomic_load(&playing))return false; + if(!bsp_lvgl_lock(1000))return false; + if(panel){lv_obj_delete(panel);panel=NULL;}bsp_lvgl_unlock();return true; +} diff --git a/main/badge_alert.h b/main/badge_alert.h new file mode 100644 index 0000000..3514ab2 --- /dev/null +++ b/main/badge_alert.h @@ -0,0 +1,5 @@ +#pragma once +#include +/* Navigation task only. Start after stopping all app audio producers. */ +bool badge_alert_start(const char *text); +bool badge_alert_dismiss(void); diff --git a/main/badge_ble_provision.c b/main/badge_ble_provision.c new file mode 100644 index 0000000..a3a17e2 --- /dev/null +++ b/main/badge_ble_provision.c @@ -0,0 +1,239 @@ +#include "badge_ble_provision.h" +#include "badge_network.h" + +#include "cJSON.h" +#include "esp_log.h" +#include "freertos/FreeRTOS.h" +#include "freertos/semphr.h" +#include "host/ble_gap.h" +#include "host/ble_gatt.h" +#include "host/ble_hs.h" +#include "host/ble_hs_mbuf.h" +#include "host/util/util.h" +#include "nimble/nimble_port.h" +#include "nimble/nimble_port_freertos.h" +#include "os/os_mbuf.h" +#include "services/gap/ble_svc_gap.h" +#include "services/gatt/ble_svc_gatt.h" +#include +#include + +static const char *TAG="badge_ble"; +static const char *DEVICE_NAME="AI Passport WiFi"; +#define BLE_STOP_TIMEOUT_MS 2000 +#define BLE_PAYLOAD_MAX 160 + +static SemaphoreHandle_t stopped; +static SemaphoreHandle_t lock; +static bool initialized; +static bool requested; +static bool connected; +static bool stopping; +static uint16_t current_conn=BLE_HS_CONN_HANDLE_NONE; +static uint8_t own_addr_type; +static int last_error; +static char status_text[96]="BLE 未开å�¯"; + +static int gap_event(struct ble_gap_event *event,void *arg); +static int advertise(void); + +static void set_status(const char *text,int error) { + if(lock)xSemaphoreTake(lock,portMAX_DELAY); + snprintf(status_text,sizeof(status_text),"%s",text?text:""); + last_error=error; + if(lock)xSemaphoreGive(lock); +} + +static int status_chr(uint16_t conn_handle,uint16_t attr_handle,struct ble_gatt_access_ctxt *ctxt,void *arg) { + (void)conn_handle;(void)attr_handle;(void)arg; + char snapshot[128]; + if(lock)xSemaphoreTake(lock,portMAX_DELAY); + if(last_error)snprintf(snapshot,sizeof(snapshot),"%s err=%d",status_text,last_error); + else snprintf(snapshot,sizeof(snapshot),"%s",status_text); + if(lock)xSemaphoreGive(lock); + return os_mbuf_append(ctxt->om,snapshot,strlen(snapshot))==0?0:BLE_ATT_ERR_INSUFFICIENT_RES; +} + +static int write_wifi_chr(uint16_t conn_handle,uint16_t attr_handle,struct ble_gatt_access_ctxt *ctxt,void *arg) { + (void)conn_handle;(void)attr_handle;(void)arg; + char payload[BLE_PAYLOAD_MAX+1]={0}; + uint16_t length=0; + int rc=ble_hs_mbuf_to_flat(ctxt->om,payload,BLE_PAYLOAD_MAX,&length); + if(rc!=0)return BLE_ATT_ERR_UNLIKELY; + payload[lengthvaluestring:""; + const char *password_text=cJSON_IsString(password)?password->valuestring:""; + esp_err_t err=badge_network_save(ssid_text,password_text,is_open,keep_password); + cJSON_Delete(root); + + if(err==ESP_OK) { + set_status("Wi-Fi å·²ä¿�存,正在连接",0); + ESP_LOGI(TAG,"Wi-Fi saved over BLE: ssid=%s",ssid_text); + return 0; + } + char message[96]; + snprintf(message,sizeof(message),"Wi-Fi ä¿�存失败:%s",esp_err_to_name(err)); + set_status(message,err); + ESP_LOGW(TAG,"BLE Wi-Fi save failed: %s",esp_err_to_name(err)); + return err==ESP_ERR_INVALID_ARG?BLE_ATT_ERR_INVALID_ATTR_VALUE_LEN:BLE_ATT_ERR_UNLIKELY; +} + +static const struct ble_gatt_svc_def services[]={ + { + .type=BLE_GATT_SVC_TYPE_PRIMARY, + .uuid=BLE_UUID128_DECLARE(0x77,0x20,0x7a,0x11,0x42,0xe8,0x45,0x3d,0xa4,0x4d,0x66,0x49,0x57,0x49,0x46,0x49), + .characteristics=(struct ble_gatt_chr_def[]){ + { + .uuid=BLE_UUID128_DECLARE(0x77,0x20,0x7a,0x12,0x42,0xe8,0x45,0x3d,0xa4,0x4d,0x66,0x49,0x57,0x49,0x46,0x49), + .access_cb=write_wifi_chr, + .flags=BLE_GATT_CHR_F_WRITE|BLE_GATT_CHR_F_WRITE_NO_RSP, + }, + { + .uuid=BLE_UUID128_DECLARE(0x77,0x20,0x7a,0x13,0x42,0xe8,0x45,0x3d,0xa4,0x4d,0x66,0x49,0x57,0x49,0x46,0x49), + .access_cb=status_chr, + .flags=BLE_GATT_CHR_F_READ, + }, + {0} + }, + }, + {0} +}; + +static int advertise(void) { + struct ble_hs_adv_fields fields={0}; + fields.flags=BLE_HS_ADV_F_DISC_GEN|BLE_HS_ADV_F_BREDR_UNSUP; + fields.name=(const uint8_t *)DEVICE_NAME; + fields.name_len=strlen(DEVICE_NAME); + fields.name_is_complete=1; + int rc=ble_gap_adv_set_fields(&fields); + if(rc!=0)return rc; + + struct ble_gap_adv_params params={0}; + params.conn_mode=BLE_GAP_CONN_MODE_UND; + params.disc_mode=BLE_GAP_DISC_MODE_GEN; + rc=ble_gap_adv_start(own_addr_type,NULL,BLE_HS_FOREVER,¶ms,gap_event,NULL); + if(rc==0)set_status("BLE é…�网已开å�¯ï¼Œç­‰å¾…手机连接",0); + return rc; +} + +static int gap_event(struct ble_gap_event *event,void *arg) { + (void)arg; + switch(event->type) { + case BLE_GAP_EVENT_CONNECT: + connected=event->connect.status==0; + current_conn=connected?event->connect.conn_handle:BLE_HS_CONN_HANDLE_NONE; + if(connected)set_status("手机已连接,请写入 Wi-Fi JSON",0); + else if(requested)advertise(); + break; + case BLE_GAP_EVENT_DISCONNECT: + connected=false; + current_conn=BLE_HS_CONN_HANDLE_NONE; + if(requested)advertise(); + break; + case BLE_GAP_EVENT_ADV_COMPLETE: + if(requested)advertise(); + break; + default: + break; + } + return 0; +} + +static void on_reset(int reason) { + connected=false; + current_conn=BLE_HS_CONN_HANDLE_NONE; + set_status("BLE 主机é‡�ç½®",reason); +} + +static void on_sync(void) { + int rc=ble_hs_util_ensure_addr(0); + if(rc==0)rc=ble_hs_id_infer_auto(0,&own_addr_type); + if(rc==0&&requested)rc=advertise(); + if(rc!=0)set_status("BLE 广播å�¯åŠ¨å¤±è´¥",rc); +} + +static void host_task(void *arg) { + (void)arg; + nimble_port_run(); + if(stopped)xSemaphoreGive(stopped); + nimble_port_freertos_deinit(); +} + +esp_err_t badge_ble_provision_start(void) { + if(initialized)return ESP_OK; + if(!lock)lock=xSemaphoreCreateMutex(); + if(!lock)return ESP_ERR_NO_MEM; + set_status("BLE 正在å�¯åЍ",0); + esp_err_t err=nimble_port_init(); + if(err!=ESP_OK){set_status("BLE åˆ�始化失败",err);return err;} + initialized=true; + requested=true; + stopping=false; + connected=false; + stopped=xSemaphoreCreateBinary(); + if(!stopped){ + requested=false;initialized=false;nimble_port_deinit(); + set_status("BLE 内存ä¸�è¶³",ESP_ERR_NO_MEM); + return ESP_ERR_NO_MEM; + } + + ble_svc_gap_init(); + ble_svc_gatt_init(); + int rc=ble_gatts_count_cfg(services); + if(rc==0)rc=ble_gatts_add_svcs(services); + if(rc==0)rc=ble_svc_gap_device_name_set(DEVICE_NAME); + if(rc!=0){ + requested=false;vSemaphoreDelete(stopped);stopped=NULL;nimble_port_deinit();initialized=false; + set_status("BLE æœ�务注册失败",rc); + return ESP_FAIL; + } + + ble_hs_cfg.reset_cb=on_reset; + ble_hs_cfg.sync_cb=on_sync; + nimble_port_freertos_init(host_task); + return ESP_OK; +} + +esp_err_t badge_ble_provision_stop(void) { + requested=false; + if(!initialized){set_status("BLE 未开å�¯",0);return ESP_OK;} + if(!stopping){ + if(connected&¤t_conn!=BLE_HS_CONN_HANDLE_NONE)(void)ble_gap_terminate(current_conn,BLE_ERR_REM_USER_CONN_TERM); + connected=false; + current_conn=BLE_HS_CONN_HANDLE_NONE; + (void)ble_gap_adv_stop(); + int rc=nimble_port_stop(); + if(rc!=0){set_status("BLE å�œæ­¢å¤±è´¥",rc);return ESP_FAIL;} + stopping=true; + } + if(stopped&&xSemaphoreTake(stopped,pdMS_TO_TICKS(BLE_STOP_TIMEOUT_MS))!=pdTRUE){ + set_status("BLE å�œæ­¢è¶…æ—¶",ESP_ERR_TIMEOUT); + return ESP_ERR_TIMEOUT; + } + esp_err_t err=nimble_port_deinit(); + if(stopped){vSemaphoreDelete(stopped);stopped=NULL;} + initialized=false; + stopping=false; + set_status(err==ESP_OK?"BLE 未开å�¯":"BLE 释放失败",err==ESP_OK?0:err); + return err; +} + +void badge_ble_provision_status(badge_ble_provision_status_t *out) { + if(!out)return; + memset(out,0,sizeof(*out)); + snprintf(out->name,sizeof(out->name),"%s",DEVICE_NAME); + if(lock)xSemaphoreTake(lock,portMAX_DELAY); + out->active=initialized&&requested; + out->connected=connected; + snprintf(out->status,sizeof(out->status),"%s",status_text); + out->last_error=last_error; + if(lock)xSemaphoreGive(lock); +} diff --git a/main/badge_ble_provision.h b/main/badge_ble_provision.h new file mode 100644 index 0000000..bca1413 --- /dev/null +++ b/main/badge_ble_provision.h @@ -0,0 +1,17 @@ +#pragma once + +#include "esp_err.h" +#include + +typedef struct { + bool active; + bool connected; + char name[32]; + char status[96]; + int last_error; +} badge_ble_provision_status_t; + +esp_err_t badge_ble_provision_start(void); +esp_err_t badge_ble_provision_stop(void); +void badge_ble_provision_status(badge_ble_provision_status_t *out); + diff --git a/main/badge_clock.h b/main/badge_clock.h new file mode 100644 index 0000000..a5d9cd8 --- /dev/null +++ b/main/badge_clock.h @@ -0,0 +1,11 @@ +#pragma once +#include +#include +#include +/* Display China standard time without changing the process-wide timezone. + * System time is UTC; uninitialized clocks must not display an invented time. */ +static inline void badge_clock_format(int64_t utc,char out[6]){ + if(utc<1704067200LL){memcpy(out,"--:--",6);return;} + unsigned minutes=(unsigned)((utc/60+8*60)%(24*60)); + snprintf(out,6,"%02u:%02u",minutes/60,minutes%60); +} diff --git a/main/badge_control.c b/main/badge_control.c new file mode 100644 index 0000000..f99372b --- /dev/null +++ b/main/badge_control.c @@ -0,0 +1,55 @@ +#include "badge_control.h" +#include "voice_catalog.h" +#include +#include +#include "radio_tool_catalog.h" +#ifndef BADGE_CONTROL_HOST_TEST +#include "freertos/FreeRTOS.h" +static portMUX_TYPE mux=portMUX_INITIALIZER_UNLOCKED; +#define LOCK() portENTER_CRITICAL(&mux) +#define UNLOCK() portEXIT_CRITICAL(&mux) +#else +/* Deterministic single-threaded host tests exercise the same mailbox logic. */ +#define LOCK() ((void)0) +#define UNLOCK() ((void)0) +#endif +static badge_control_status_t state; +static badge_control_command_t pending; +static uint32_t serial; +static uint32_t created_id; +void badge_control_set_created_id(uint32_t id){LOCK();created_id=id;UNLOCK();} +uint32_t badge_control_created_id(void){LOCK();uint32_t id=created_id;UNLOCK();return id;} +static unsigned phase; +static void (*wakeup)(void); +void badge_control_set_wakeup(void (*wake)(void)){LOCK();wakeup=wake;UNLOCK();} +bool badge_control_stays(badge_control_kind_t k){return k==BC_BRIGHTNESS||k==BC_XZ_VOLUME||k==BC_REMINDER_SET||k==BC_REMINDER_CANCEL||k==BC_PROFILE_EDIT;} +bool badge_control_peek(uint32_t ticket,badge_control_command_t *c){LOCK();bool valid=ticket&&ticket==serial&&phase==1;if(valid)*c=pending;UNLOCK();return valid;} +int badge_control_result(uint32_t ticket){LOCK();int result=!ticket||ticket!=serial?-2:phase?0:state.last_result;UNLOCK();return result;} +void badge_control_publish(unsigned brightness,unsigned mask,unsigned qr_mask,unsigned count,unsigned active){ + LOCK();state.brightness=brightness;state.mask=mask;state.qr_mask=qr_mask;state.count=count;state.active=active;UNLOCK(); +} +badge_control_status_t badge_control_status(void){LOCK();badge_control_status_t copy=state;UNLOCK();return copy;} +void badge_control_identity(unsigned slot,const char *name){if(slot>=5)return;LOCK();snprintf(state.names[slot],129,"%s",name);UNLOCK();} +void badge_control_runtime(int battery,bool active,unsigned remaining,const char *text){LOCK();state.battery=battery;state.reminder_active=active;state.reminder_seconds=remaining;snprintf(state.reminder_text,97,"%s",text);UNLOCK();} +void badge_control_enable(bool enabled){LOCK();state.enabled=enabled;phase=0;++serial;UNLOCK();} +void badge_control_cancel(void){LOCK();phase=0;++serial;UNLOCK();} +const char *badge_control_reserve(badge_control_command_t c,uint32_t *ticket){ + const char *error=NULL;*ticket=0;LOCK(); + if(!state.enabled)error="Xiaozhi is not active"; + else if(phase)error="Another device action is pending; do not retry until it completes"; + else if(c.kindBC_SHUTDOWN)error="Unsupported action"; + else if(c.kind==BC_PLAY_VOICE&&c.value>=VOICE_CLIP_COUNT)error="Unknown audio clip"; + else if(c.kind==BC_BADGE&&(c.value>=state.count||c.value>=5||!(state.mask&(1u<100||c.value%20))error="Brightness must be 20, 40, 60, 80 or 100"; + else if(c.kind==BC_XZ_VOLUME&&c.value>100)error="Volume must be 0..100"; + else if(c.kind==BC_RADIO_PRESET&&c.value>=radio_tool_count())error="Unknown station"; + else if(c.kind==BC_REMINDER_SET&&(c.when<1704067200LL||c.repeat>127||c.minute>=1440||!c.text[0]))error="Invalid reminder"; + else if(c.kind==BC_REMINDER_CANCEL&&!c.value)error="A reminder ID is required"; + else if(c.kind==BC_PROFILE_EDIT&&(c.value>=state.count||c.field>2||!(state.mask&(1u< +#include +#ifdef __cplusplus +extern "C" { +#endif +typedef enum { BC_MUYU, BC_RADIO, BC_VOICE, BC_PLAY_VOICE, BC_QR, BC_BADGE, BC_BRIGHTNESS, BC_XZ_VOLUME, BC_RADIO_PRESET, BC_REMINDER_SET, BC_REMINDER_CANCEL, BC_YAO, BC_PROFILE_EDIT, BC_HOME, BC_SHUTDOWN } badge_control_kind_t; +typedef struct {badge_control_kind_t kind;unsigned value;char text[129];int64_t when;unsigned minute,repeat,revision,field;} badge_control_command_t; +typedef struct {unsigned brightness,mask,qr_mask,count,active;bool enabled;int last_result;int battery;char names[5][129];unsigned reminder_seconds;bool reminder_active;char reminder_text[97];} badge_control_status_t; +/* Main task publishes navigation; the voice task never reads live LVGL state. */ +void badge_control_publish(unsigned brightness,unsigned mask,unsigned qr_mask,unsigned count,unsigned active); +badge_control_status_t badge_control_status(void); +void badge_control_enable(bool enabled); +void badge_control_identity(unsigned slot,const char *name); +void badge_control_runtime(int battery,bool reminder_active,unsigned remaining,const char *text); +void badge_control_cancel(void); +/* Reserve then commit. In-place actions await execution before replying; + * navigation actions commit only after their acceptance response is sent. */ +const char *badge_control_reserve(badge_control_command_t command,uint32_t *ticket); +void badge_control_commit(uint32_t ticket,bool sent); +bool badge_control_take(badge_control_command_t *command); +void badge_control_finish(bool success); +/* Wake the navigation owner after committing a command, outside the lock. */ +void badge_control_set_wakeup(void (*wake)(void)); +bool badge_control_peek(uint32_t ticket,badge_control_command_t *command); +/* 0 pending, 1 completed, -1 failed, -2 cancelled/replaced. */ +int badge_control_result(uint32_t ticket); +bool badge_control_stays(badge_control_kind_t kind); +void badge_control_set_created_id(uint32_t id); +uint32_t badge_control_created_id(void); +#ifdef __cplusplus +} +#endif diff --git a/main/badge_footer.h b/main/badge_footer.h new file mode 100644 index 0000000..7223609 --- /dev/null +++ b/main/badge_footer.h @@ -0,0 +1,49 @@ +#pragma once +#include "lvgl.h" +#include "badge_theme.h" +#ifdef __cplusplus +extern "C" { +#endif +LV_FONT_DECLARE(font_badge_10); +#define BADGE_HINT_REMINDER "OK返回工牌" +#define BADGE_HINT_HOME "上å°�程åº� 下亮ç � OKè�œå�• é•¿OK切æ�¢ 长上å°�智" +/* Long-press keys are prefixed with é•¿; all hints fit one fixed bottom row. */ +#define BADGE_HINT_MUYU "OK敲 上自动 下节å¥� 长上存 长下音é‡� é•¿OK返回" +#define BADGE_HINT_VOICE_PACKS "上下选 OK进入 长上音é‡� 长下å�œæ­¢ é•¿OK返回" +#define BADGE_HINT_VOICE_CLIPS "上下选 OK播放 长上音é‡� 长下å�œæ­¢ é•¿OK返回" +#define BADGE_HINT_VOLUME "上下音é‡� OK返回 é•¿OK返回" +#define BADGE_HINT_RADIO "上下æ�¢å�° OK播放/æš‚å�œ 长上设置 é•¿OK返回" +#define BADGE_HINT_SELECT "上下选择 OK确认 é•¿OK返回" +#define BADGE_HINT_CARDS "上下选择 OK切æ�¢ é•¿OK返回" +#define BADGE_HINT_MENU "上下选择 OK进入 é•¿OK返回" +#define BADGE_HINT_APPS "上下选择 OKå�¯åЍ é•¿OK返回" +#define BADGE_HINT_YAO_CAST "OK投掷 长下é‡�èµ· é•¿OK返回" +#define BADGE_HINT_YAO_RESULT "上下阅读 OKå°�智解读 长下é‡�èµ· é•¿OK返回" +#define BADGE_HINT_SHENGBEI "OKå†�掷 é•¿OK返回" +#define BADGE_HINT_SETTINGS "上下选择 OK进入 é•¿OK返回" +#define BADGE_HINT_BRIGHTNESS "上下亮度 OK确认 é•¿OK返回" +#define BADGE_HINT_AP_ON "OK关闭热点 é•¿OK返回" +#define BADGE_HINT_AP_OFF "OKå¼€å�¯çƒ­ç‚¹ é•¿OK返回" +#define BADGE_HINT_SETUP_ON "下è�œå�• 上å°�程åº�" +#define BADGE_HINT_SETUP_OFF "OKå¼€å�¯çƒ­ç‚¹ 下è�œå�• 上å°�程åº�" +#define BADGE_HINT_QR_HOME "下/OK返回工牌 é•¿OK返回" +#define BADGE_HINT_QR_MENU "下/OK返回终端 é•¿OK返回" +#define BADGE_HINT_RETURN "上下选择 OK确认 é•¿OKå�–消" +#define BADGE_HINT_XZ_START "上下音é‡� OK开始 长上表情 长下设置 é•¿OK返回" +#define BADGE_HINT_XZ_PAUSE "上下音é‡� OKæš‚å�œ 长上表情 长下设置 é•¿OK返回" +#define BADGE_HINT_XZ_RETRY "上下音é‡� OKé‡�试 长上表情 长下设置 é•¿OK返回" +#define BADGE_HINT_XZ_WAIT "上下音é‡� 长上表情 长下设置 é•¿OK返回" +#define BADGE_HINT_XZ_INTERRUPT "上下音é‡� OK打断 长上表情 长下设置 é•¿OK返回" +static inline lv_obj_t *badge_footer_create(lv_obj_t *parent,const char *text) { + lv_obj_t *o=lv_label_create(parent); + lv_obj_set_pos(o,8,300);lv_obj_set_size(o,224,14); + lv_obj_set_style_text_font(o,&font_badge_10,0); + lv_obj_set_style_text_letter_space(o,0,0); + lv_obj_set_style_text_align(o,LV_TEXT_ALIGN_CENTER,0); + lv_obj_set_style_text_color(o,lv_color_hex(badge_theme_colors()[BADGE_MUTED]),0); + lv_label_set_long_mode(o,LV_LABEL_LONG_CLIP);lv_label_set_text(o,text); + return o; +} +#ifdef __cplusplus +} +#endif diff --git a/main/badge_header.c b/main/badge_header.c new file mode 100644 index 0000000..cf213d6 --- /dev/null +++ b/main/badge_header.c @@ -0,0 +1,70 @@ +#include "badge_header.h" +#include "badge_theme.h" +#include "badge_clock.h" +#include +LV_FONT_DECLARE(font_badge_10); +static lv_obj_t *owner,*brand,*power,*slot,*clock_label; +static unsigned badge_active,badge_count; +static int battery=-1,shown_battery=-2; +static bool connected; +static uint32_t theme_seen; +static void artwork(lv_event_t *e) { + if(lv_event_get_code(e)==LV_EVENT_DELETE){ + if(lv_event_get_target(e)==owner)owner=brand=power=slot=clock_label=NULL; + return; + } + lv_layer_t *l=lv_event_get_layer(e);const uint32_t *c=badge_theme_colors(); + lv_draw_rect_dsc_t r;lv_draw_rect_dsc_init(&r);r.bg_opa=LV_OPA_COVER; + r.bg_color=lv_color_hex(((c[BADGE_ACCENT]&0xfefefe)>>1)+((c[BADGE_PANEL]&0xfefefe)>>1)); + lv_area_t line={14,28,225,28};lv_draw_rect(l,&r,&line); + if(!connected)return; + lv_draw_arc_dsc_t a;lv_draw_arc_dsc_init(&a);a.center=(lv_point_t){186,22}; + a.width=1;a.start_angle=225;a.end_angle=315;a.color=lv_color_hex(c[BADGE_TEXT]);a.opa=LV_OPA_COVER; + a.radius=7;lv_draw_arc(l,&a);a.radius=4;lv_draw_arc(l,&a); + r.bg_color=a.color;lv_area_t dot={186,22,186,22};lv_draw_rect(l,&r,&dot); +} +void badge_header_refresh(void) { + if(!owner)return; + char clock_text[6];badge_clock_format((int64_t)time(NULL),clock_text); + if(strcmp(lv_label_get_text(clock_label),clock_text))lv_label_set_text(clock_label,clock_text); + if(theme_seen!=badge_theme_revision()){ + const uint32_t *c=badge_theme_colors(); + lv_obj_set_style_text_color(brand,lv_color_hex(c[BADGE_MUTED]),0); + lv_obj_set_style_text_color(power,lv_color_hex(c[BADGE_TEXT]),0); + lv_obj_set_style_text_color(clock_label,lv_color_hex(c[BADGE_TEXT]),0); + lv_obj_set_style_text_color(slot,lv_color_hex(c[BADGE_MUTED]),0); + theme_seen=badge_theme_revision();lv_area_t area={0,0,239,28};lv_obj_invalidate_area(owner,&area); + } + if(shown_battery!=battery){ + if(battery<0)lv_label_set_text(power,"--");else lv_label_set_text_fmt(power,"%d%%",battery); + shown_battery=battery; + } +} +void badge_header_attach(lv_obj_t *screen) { + owner=screen;while(lv_obj_remove_event_cb(screen,artwork)){} + lv_obj_add_event_cb(screen,artwork,LV_EVENT_DRAW_MAIN,NULL); + lv_obj_add_event_cb(screen,artwork,LV_EVENT_DELETE,NULL); + brand=lv_label_create(screen);power=lv_label_create(screen);slot=lv_label_create(screen);clock_label=lv_label_create(screen); + lv_obj_t *labels[]={brand,power,slot,clock_label}; + for(unsigned i=0;i<4;i++){ + lv_obj_set_style_text_font(labels[i],&font_badge_10,0); + lv_obj_set_style_text_letter_space(labels[i],0,0); + lv_label_set_long_mode(labels[i],LV_LABEL_LONG_CLIP); + } + lv_obj_set_pos(brand,14,12);lv_obj_set_width(brand,78);lv_label_set_text(brand,"AI Passport"); + lv_obj_set_pos(clock_label,93,12);lv_obj_set_width(clock_label,54);lv_obj_set_style_text_align(clock_label,LV_TEXT_ALIGN_CENTER,0); + lv_obj_set_pos(slot,148,12);lv_obj_set_width(slot,26);lv_obj_set_style_text_align(slot,LV_TEXT_ALIGN_RIGHT,0); + if(badge_count)lv_label_set_text_fmt(slot,"%u/%u",badge_active+1,badge_count);else lv_label_set_text(slot,""); + lv_obj_set_pos(power,194,12);lv_obj_set_width(power,32);lv_obj_set_style_text_align(power,LV_TEXT_ALIGN_RIGHT,0); + theme_seen=0;shown_battery=-2;badge_header_refresh(); +} +void badge_header_badge(unsigned active,unsigned count){ + if(badge_active==active&&badge_count==count)return; + badge_active=active;badge_count=count; + if(slot){if(count)lv_label_set_text_fmt(slot,"%u/%u",active+1,count);else lv_label_set_text(slot,"");} +} +void badge_header_battery(int percent){battery=percent<0?-1:percent>100?100:percent;badge_header_refresh();} +void badge_header_network(bool value){ + if(connected==value)return; + connected=value;if(owner){lv_area_t area={179,14,193,23};lv_obj_invalidate_area(owner,&area);} +} diff --git a/main/badge_header.h b/main/badge_header.h new file mode 100644 index 0000000..d4809f5 --- /dev/null +++ b/main/badge_header.h @@ -0,0 +1,15 @@ +#pragma once +#include "lvgl.h" +#include +#ifdef __cplusplus +extern "C" { +#endif +/* Shared home/mini-app header. All calls require the LVGL lock. */ +void badge_header_attach(lv_obj_t *screen); +void badge_header_battery(int percent); +void badge_header_network(bool connected); +void badge_header_badge(unsigned active,unsigned count); +void badge_header_refresh(void); +#ifdef __cplusplus +} +#endif diff --git a/main/badge_layout.h b/main/badge_layout.h new file mode 100644 index 0000000..61e637f --- /dev/null +++ b/main/badge_layout.h @@ -0,0 +1,13 @@ +#pragma once +/* Source regions in the existing 208x148 saved card, followed by screen + * position and LVGL scale (256 = 1x). The stored format is unchanged. */ +typedef struct { unsigned sx,sy,w,h,x,y,scale; } badge_region_t; +static const badge_region_t BADGE_REGIONS[] = { + {8,8,72,88,66,74,384}, + {88,4,112,32,14,211,256}, + {88,35,112,20,14,246,230}, + {88,60,112,20,122,246,230}, + {8,105,192,18,14,263,230}, + {0,126,208,20,14,279,128} +}; +#define BADGE_REGION_COUNT (sizeof(BADGE_REGIONS)/sizeof(BADGE_REGIONS[0])) diff --git a/main/badge_navigation.c b/main/badge_navigation.c new file mode 100644 index 0000000..22552b5 --- /dev/null +++ b/main/badge_navigation.c @@ -0,0 +1,159 @@ +#include "badge_navigation.h" +#include "xiaozhi_style.h" +#include "badge_power_logic.h" +badge_input_t badge_ai_long_gesture(badge_page_t page,bool up,bool down,bool long_press){ + if(page!=BADGE_AI_CHAT||!long_press)return BADGE_NONE; + return up?BADGE_AI_CYCLE_STYLE:down?BADGE_AI_OPEN_SETTINGS:BADGE_NONE; +} +badge_input_t badge_ok_gesture(badge_page_t page,bool long_press,bool click) { + if(long_press)return page==BADGE_HOME?BADGE_SWITCH:BADGE_BACK; + return click?BADGE_OK:BADGE_NONE; +} +void badge_navigation_init(badge_navigation_t *s, size_t games) { + *s=(badge_navigation_t){.page=BADGE_HOME,.settings_return=BADGE_TERMINAL,.ai_settings_return=BADGE_SETTINGS,.wifi_return=BADGE_SETTINGS,.games_return=BADGE_TERMINAL,.playing_return=BADGE_GAMES,.game_count=games,.brightness=3,.badge_count=1,.badge_mask=1}; + s->screen_timeout=BADGE_SCREEN_TIMEOUT_DEFAULT; +} +badge_input_t badge_up_gesture(badge_page_t page,bool configured,bool long_press,bool click) { + if(long_press)return page==BADGE_HOME&&configured?BADGE_AI:BADGE_NONE; + return click?BADGE_UP:BADGE_NONE; +} +badge_action_t badge_navigation_quick_launch(badge_navigation_t *s,size_t index) { + if(s->page!=BADGE_HOME||!s->badge_mask||index>=s->game_count)return BADGE_IDLE; + s->game_selected=index;s->playing_return=BADGE_HOME;s->page=BADGE_PLAYING; + return BADGE_LAUNCH; +} +badge_input_t badge_return_menu_handle(badge_return_menu_t *m,badge_page_t page,badge_input_t input) { + if(!m->open){if(input==BADGE_BACK&&page!=BADGE_HOME){m->open=true;m->selected=0;return BADGE_NONE;}return input;} + if(input==BADGE_BACK){m->open=false;return BADGE_NONE;} + if(input==BADGE_UP)m->selected=(m->selected+2)%3; + if(input==BADGE_DOWN)m->selected=(m->selected+1)%3; + if(input==BADGE_OK){m->open=false;return m->selected==0?BADGE_BACK:m->selected==1?BADGE_GO_HOME:BADGE_NONE;} + return BADGE_NONE; +} +void badge_navigation_badges(badge_navigation_t *s,unsigned count,unsigned active,unsigned mask) { + s->badge_count=count?count:1;s->active_badge=activebadge_mask=mask; + if(s->page!=BADGE_CARDS||s->badge_selected>=s->badge_count)s->badge_selected=s->active_badge; +} +badge_action_t badge_navigation_handle(badge_navigation_t *s,badge_input_t input) { + if(input==BADGE_NONE) return BADGE_IDLE; + if(input==BADGE_AI){if(s->page!=BADGE_HOME||!s->badge_mask)return BADGE_IDLE;s->ai_return=s->page;s->page=BADGE_AI_CHAT;return BADGE_AI_START;} + if(input==BADGE_GO_HOME){badge_action_t result=s->page==BADGE_PLAYING?BADGE_STOP:s->page==BADGE_AI_CHAT?BADGE_AI_STOP:BADGE_REDRAW;s->page=BADGE_HOME;return result;} + if(input==BADGE_SWITCH) { + if(s->page==BADGE_HOME&&s->badge_mask){s->badge_selected=s->active_badge;s->page=BADGE_CARDS;return BADGE_REDRAW;} + input=BADGE_OK; + } + if(s->page==BADGE_CARDS) { + if(input==BADGE_BACK){s->page=BADGE_HOME;return BADGE_REDRAW;} + if(input==BADGE_UP)s->badge_selected=(s->badge_selected+s->badge_count-1)%s->badge_count; + if(input==BADGE_DOWN)s->badge_selected=(s->badge_selected+1)%s->badge_count; + if(input==BADGE_OK) { + if(!(s->badge_mask&(1u<badge_selected)))return BADGE_IDLE; + s->page=BADGE_HOME;return BADGE_SELECT; + } + return BADGE_REDRAW; + } + if(s->page==BADGE_AI_CHAT){ + if(input==BADGE_AI_CYCLE_STYLE){s->ai_style=(s->ai_style+1)%XZ_STYLE_COUNT;return BADGE_AI_STYLE;} + if(input==BADGE_AI_OPEN_SETTINGS){s->ai_settings_return=BADGE_AI_CHAT;s->ai_selected=0;s->page=BADGE_AI_SETTINGS;return BADGE_AI_STOP;} + if(input==BADGE_BACK){s->page=s->ai_return;return BADGE_AI_STOP;} + return BADGE_IDLE; + } + if(s->page==BADGE_AI_SETTINGS){ + if(input==BADGE_BACK){if(s->ai_settings_return==BADGE_AI_CHAT){s->page=BADGE_AI_CHAT;s->ai_settings_return=BADGE_SETTINGS;return BADGE_AI_START;}s->page=BADGE_SETTINGS;return BADGE_REDRAW;} + if(input==BADGE_UP)s->ai_selected=(s->ai_selected+4)%5; + if(input==BADGE_DOWN)s->ai_selected=(s->ai_selected+1)%5; + if(input==BADGE_OK){ + if(s->ai_selected==0){if(s->ai_settings_return!=BADGE_AI_CHAT)s->ai_return=BADGE_AI_SETTINGS;s->ai_settings_return=BADGE_SETTINGS;s->page=BADGE_AI_CHAT;return BADGE_AI_START;} + if(s->ai_selected==1)return BADGE_AI_TOGGLE; + if(s->ai_selected==2){s->page=BADGE_AI_VOLUME_PAGE;return BADGE_REDRAW;} + if(s->ai_selected==4){s->ai_style=(s->ai_style+1)%XZ_STYLE_COUNT;return BADGE_AI_STYLE;} + } + return BADGE_REDRAW; + } + if(s->page==BADGE_AI_VOLUME_PAGE){ + if(input==BADGE_BACK||input==BADGE_OK){s->page=BADGE_AI_SETTINGS;return BADGE_REDRAW;} + if(input==BADGE_UP&&s->ai_volume<100)s->ai_volume+=10; + if(input==BADGE_DOWN&&s->ai_volume>0)s->ai_volume=s->ai_volume>10?s->ai_volume-10:0; + if(s->ai_volume>100)s->ai_volume=100; + return BADGE_AI_VOLUME; + } + if(s->page==BADGE_SLEEP_SETTINGS){ + if(input==BADGE_BACK){s->page=BADGE_SETTINGS;return BADGE_REDRAW;} + if(input==BADGE_UP)s->timeout_selected=(s->timeout_selected+BADGE_SCREEN_TIMEOUT_COUNT-1)%BADGE_SCREEN_TIMEOUT_COUNT; + if(input==BADGE_DOWN)s->timeout_selected=(s->timeout_selected+1)%BADGE_SCREEN_TIMEOUT_COUNT; + if(input==BADGE_OK){s->screen_timeout=s->timeout_selected;s->page=BADGE_SETTINGS;return BADGE_SLEEP_SAVE;} + return BADGE_REDRAW; + } + if(s->page==BADGE_ABOUT_SETTINGS){ + if(input==BADGE_BACK||input==BADGE_OK){s->page=BADGE_SETTINGS;return BADGE_REDRAW;} + return BADGE_IDLE; + } + if(s->page==BADGE_DISPLAY_SETTINGS){ + if(input==BADGE_BACK||input==BADGE_OK){s->page=BADGE_SETTINGS;return BADGE_REDRAW;} + if(input==BADGE_UP&&s->brightness<4)s->brightness++; + if(input==BADGE_DOWN&&s->brightness>0)s->brightness--; + return BADGE_BRIGHTNESS; + } + if(s->page==BADGE_PLAYING) { + if(input!=BADGE_BACK) return BADGE_IDLE; + s->page=s->playing_return; return BADGE_STOP; + } + if(s->page==BADGE_QR) { + if(input==BADGE_OK || input==BADGE_DOWN || input==BADGE_BACK) { + s->page=s->qr_return;return BADGE_REDRAW; + } + return BADGE_IDLE; + } + if(input==BADGE_BACK) { + if(s->page==BADGE_GAMES){s->page=s->games_return;return BADGE_REDRAW;} + if(s->page==BADGE_WIFI){s->page=s->wifi_return;return BADGE_REDRAW;} + if(s->page==BADGE_SETTINGS){s->page=s->settings_return;return BADGE_REDRAW;} + s->page=(s->page==BADGE_TERMINAL||s->page==BADGE_HOME)?BADGE_HOME:BADGE_TERMINAL; + return BADGE_REDRAW; + } + if(s->page==BADGE_HOME) { + if(!s->badge_mask){ + if(input==BADGE_OK)return BADGE_WIFI_START; + if(input==BADGE_DOWN){s->page=BADGE_TERMINAL;return BADGE_REDRAW;} + } + if(input==BADGE_UP){s->games_return=BADGE_HOME;s->page=BADGE_GAMES;return BADGE_REDRAW;} + if(input==BADGE_DOWN) s->qr_return=BADGE_HOME; + s->page=input==BADGE_DOWN?BADGE_QR:BADGE_TERMINAL; + return BADGE_REDRAW; + } + if(s->page==BADGE_TERMINAL) { + if(input==BADGE_UP) s->home_selected=(s->home_selected+4)%5; + if(input==BADGE_DOWN) s->home_selected=(s->home_selected+1)%5; + if(input==BADGE_OK) { + static const badge_page_t destinations[]={BADGE_GAMES,BADGE_QR,BADGE_PROFILE,BADGE_SETTINGS,BADGE_HOME}; + s->page=destinations[s->home_selected]; + if(s->page==BADGE_GAMES)s->games_return=BADGE_TERMINAL; + if(s->page==BADGE_SETTINGS)s->settings_return=BADGE_TERMINAL; + if(s->page==BADGE_QR)s->qr_return=BADGE_TERMINAL; + } + return BADGE_REDRAW; + } + if(s->page==BADGE_GAMES) { + if(!s->game_count) return BADGE_IDLE; + if(input==BADGE_UP) s->game_selected=(s->game_selected+s->game_count-1)%s->game_count; + if(input==BADGE_DOWN) s->game_selected=(s->game_selected+1)%s->game_count; + if(input==BADGE_OK) {s->playing_return=BADGE_GAMES;s->page=BADGE_PLAYING;return BADGE_LAUNCH;} + return BADGE_REDRAW; + } + if(s->page==BADGE_WIFI)return input==BADGE_OK?BADGE_WIFI_TOGGLE:BADGE_IDLE; + if(s->page==BADGE_PROFILE) { + if(input==BADGE_OK)return BADGE_WIFI_TOGGLE; + return BADGE_IDLE; + } + if(s->page==BADGE_SETTINGS){ + if(input==BADGE_UP)s->settings_selected=(s->settings_selected+4)%5; + if(input==BADGE_DOWN)s->settings_selected=(s->settings_selected+1)%5; + if(input==BADGE_OK){ + static const badge_page_t pages[]={BADGE_DISPLAY_SETTINGS,BADGE_WIFI,BADGE_AI_SETTINGS,BADGE_SLEEP_SETTINGS,BADGE_ABOUT_SETTINGS}; + s->page=pages[s->settings_selected];s->wifi_return=BADGE_SETTINGS;s->ai_settings_return=BADGE_SETTINGS; + if(s->page==BADGE_SLEEP_SETTINGS)s->timeout_selected=s->screen_timeout; + } + return BADGE_REDRAW; + } + return BADGE_IDLE; +} diff --git a/main/badge_navigation.h b/main/badge_navigation.h new file mode 100644 index 0000000..2df5e63 --- /dev/null +++ b/main/badge_navigation.h @@ -0,0 +1,35 @@ +#pragma once +#include +#include +typedef enum { BADGE_HOME, BADGE_TERMINAL, BADGE_GAMES, BADGE_SETTINGS, BADGE_PROFILE, BADGE_QR, BADGE_WIFI, BADGE_PLAYING, BADGE_CARDS, BADGE_AI_SETTINGS, BADGE_AI_CHAT, BADGE_DISPLAY_SETTINGS, BADGE_AI_VOLUME_PAGE, BADGE_SLEEP_SETTINGS, BADGE_ABOUT_SETTINGS } badge_page_t; +typedef enum { BADGE_NONE, BADGE_UP, BADGE_DOWN, BADGE_OK, BADGE_BACK, BADGE_SWITCH, BADGE_GO_HOME, BADGE_AI, BADGE_AI_OPEN_SETTINGS, BADGE_AI_CYCLE_STYLE } badge_input_t; +typedef enum { BADGE_IDLE, BADGE_REDRAW, BADGE_LAUNCH, BADGE_STOP, BADGE_BRIGHTNESS, BADGE_WIFI_TOGGLE, BADGE_SELECT, BADGE_WIFI_START, BADGE_AI_START, BADGE_AI_STOP, BADGE_AI_TOGGLE, BADGE_AI_VOLUME, BADGE_AI_STYLE, BADGE_SLEEP_SAVE } badge_action_t; +typedef struct { + badge_page_t page; + badge_page_t qr_return; /* Return to the page that opened quick contact. */ + badge_page_t settings_return; + badge_page_t wifi_return; + badge_page_t games_return; + badge_page_t playing_return; + size_t home_selected, game_selected, game_count; + unsigned badge_count,active_badge,badge_selected,badge_mask; + unsigned settings_selected,ai_selected,ai_volume,ai_style; + bool ai_enabled; + badge_page_t ai_return; + badge_page_t ai_settings_return; + unsigned brightness; /* 0..4 maps to 20..100 percent; never black out controls. */ + unsigned screen_timeout,timeout_selected; +} badge_navigation_t; +typedef struct {bool open;unsigned selected;} badge_return_menu_t; +badge_input_t badge_ai_long_gesture(badge_page_t page,bool up,bool down,bool long_press); +/* Long OK opens/cancels the chooser. A confirmed choice emits BACK/GO_HOME. */ +badge_input_t badge_return_menu_handle(badge_return_menu_t *menu,badge_page_t page,badge_input_t input); +/* Long OK switches badges on Home; elsewhere it opens the return chooser. */ +badge_input_t badge_ok_gesture(badge_page_t page,bool long_press,bool click); +badge_input_t badge_up_gesture(badge_page_t page,bool configured,bool long_press,bool click); +/* The caller resolves the app ID; invalid/missing apps never change selection. */ +badge_action_t badge_navigation_quick_launch(badge_navigation_t *state,size_t index); +void badge_navigation_init(badge_navigation_t *state, size_t games); +badge_action_t badge_navigation_handle(badge_navigation_t *state, badge_input_t input); + +void badge_navigation_badges(badge_navigation_t *state,unsigned count,unsigned active,unsigned mask); diff --git a/main/badge_network.c b/main/badge_network.c new file mode 100644 index 0000000..dbd2dc7 --- /dev/null +++ b/main/badge_network.c @@ -0,0 +1,333 @@ +#include "badge_network.h" +#include "yao_time.h" +#include "badge_network_rules.h" +#include "profile_protocol.h" +#include "esp_wifi.h" +#include "esp_wifi_default.h" +#include "esp_event.h" +#include "esp_netif.h" +#include "esp_http_server.h" +#include "esp_random.h" +#include "esp_mac.h" +#include "esp_timer.h" +#include "esp_log.h" +#include "esp_sntp.h" +#include "nvs.h" +#include "freertos/FreeRTOS.h" +#include "freertos/queue.h" +#include "freertos/semphr.h" +#include "freertos/task.h" +#include "lwip/sockets.h" +#include +#include +#include +#include +#include +static SemaphoreHandle_t mutex; +static QueueHandle_t commands; +static badge_network_status_t state; +static struct {char ssid[33],password[65];} saved; +static bool ready,started,attempted; +static atomic_uint rf_started_ms; +static atomic_bool rf_started; +static atomic_bool shutdown_requested,shutdown_done; +static httpd_handle_t server; +static nvs_handle_t nvs; +static bool nvs_ready; +static atomic_bool disconnected; +static atomic_uint last_http; +static char web_token[33]; +static char setup_password[13]; +static unsigned retries; +static int64_t retry_at; +enum {CMD_CONNECT=1,CMD_TOGGLE,CMD_SCAN,CMD_START_SETUP,CMD_POWER,CMD_ENTROPY}; +static atomic_bool onboarding; +static atomic_int desired_ps; +static atomic_bool standby_ps; +static int applied_ps=-1; +static bool scanning; +static unsigned scan_revision; +static esp_err_t scan_error; +static size_t scan_count; +static badge_scan_entry_t scan_results[BADGE_SCAN_LIMIT]; +static void lock(void){xSemaphoreTake(mutex,portMAX_DELAY);} +static void unlock(void){xSemaphoreGive(mutex);} +static bool valid_setup_password(const char *password){ + if(!password||strlen(password)!=12)return false; + for(unsigned i=0;i<12;i++)if(!isxdigit((unsigned char)password[i]))return false; + return true; +} +static void message(const char *s){lock();snprintf(state.message,sizeof(state.message),"%s",s);unlock();} +void badge_network_status(badge_network_status_t *out){if(!mutex){memset(out,0,sizeof(*out));return;}lock();*out=state;unlock();} +void badge_network_json(cJSON *reply){ + cJSON *w=cJSON_CreateObject();if(!w)return; + badge_network_status_t s;badge_network_status(&s); + cJSON_AddBoolToObject(w,"connected",s.connected);cJSON_AddBoolToObject(w,"apActive",s.active); + wifi_ps_type_t ps; + if(esp_wifi_get_ps(&ps)==ESP_OK)cJSON_AddStringToObject(w,"powerSave",ps==WIFI_PS_MAX_MODEM?"MAX_MODEM":ps==WIFI_PS_NONE?"NONE":"MIN_MODEM"); + cJSON_AddStringToObject(w,"ssid",s.ssid);cJSON_AddStringToObject(w,"ip",s.ip); + cJSON_AddStringToObject(w,"apSsid",s.ap_ssid);cJSON_AddStringToObject(w,"apPassword",s.active?s.ap_password:""); + cJSON_AddStringToObject(w,"message",s.message); + bool password=false;if(mutex){lock();password=saved.password[0]!=0;unlock();} + cJSON_AddBoolToObject(w,"passwordSet",password);cJSON_AddItemToObject(reply,"wifi",w); +} +static void event(void *arg,esp_event_base_t base,int32_t id,void *data){ + if(atomic_load(&shutdown_requested))return; + (void)arg; + if(base==IP_EVENT&&id==IP_EVENT_STA_GOT_IP){ + yao_location_network(true); + ip_event_got_ip_t *e=data;lock();state.connected=true; + snprintf(state.ip,sizeof(state.ip),IPSTR,IP2STR(&e->ip_info.ip)); + snprintf(state.message,sizeof(state.message),"Connected");unlock();atomic_store(&disconnected,false); + if(!esp_sntp_enabled()){ + esp_sntp_setoperatingmode(ESP_SNTP_OPMODE_POLL); + esp_sntp_setservername(0,"ntp.aliyun.com"); + esp_sntp_init(); + }else esp_sntp_restart(); + }else if(base==WIFI_EVENT&&id==WIFI_EVENT_STA_DISCONNECTED){ + yao_location_network(false); + lock();state.connected=false;state.ip[0]=0;unlock();atomic_store(&disconnected,true); + } +} +static esp_err_t prepare(void){ + if(ready)return ESP_OK; + if(attempted)return ESP_ERR_INVALID_STATE; + attempted=true; + esp_err_t e=esp_netif_init();if(e!=ESP_OK)return e; + e=esp_event_loop_create_default();if(e!=ESP_OK&&e!=ESP_ERR_INVALID_STATE)return e; + if(!esp_netif_create_default_wifi_sta()||!esp_netif_create_default_wifi_ap())return ESP_ERR_NO_MEM; + wifi_init_config_t config=WIFI_INIT_CONFIG_DEFAULT(); + e=esp_wifi_init(&config);if(e!=ESP_OK)return e; + e=esp_event_handler_register(WIFI_EVENT,WIFI_EVENT_STA_DISCONNECTED,event,NULL);if(e!=ESP_OK)return e; + e=esp_event_handler_register(IP_EVENT,IP_EVENT_STA_GOT_IP,event,NULL);if(e!=ESP_OK)return e; + e=esp_wifi_set_storage(WIFI_STORAGE_RAM);if(e!=ESP_OK)return e; + e=esp_wifi_set_mode(WIFI_MODE_STA);if(e!=ESP_OK)return e; + ready=true;return ESP_OK; +} +static esp_err_t start(void){ + esp_err_t e=prepare();if(e!=ESP_OK)return e; + if(!started){e=esp_wifi_start();if(e==ESP_OK){started=true;atomic_store(&rf_started_ms,(unsigned)(esp_timer_get_time()/1000));atomic_store(&rf_started,true);}}return e; +} +static void connect_saved(void){ + yao_location_network(false); + wifi_config_t c={0}; + c.sta.sae_pwe_h2e=WPA3_SAE_PWE_BOTH; + c.sta.listen_interval=20; + lock();memcpy(c.sta.ssid,saved.ssid,strlen(saved.ssid)); + memcpy(c.sta.password,saved.password,strlen(saved.password));unlock(); + retries=0;atomic_store(&disconnected,false); + if(!c.sta.ssid[0])return; + esp_err_t e=start(); + if(e==ESP_OK){esp_wifi_disconnect();e=esp_wifi_set_config(WIFI_IF_STA,&c);} + if(e==ESP_OK)e=esp_wifi_connect(); + message(e==ESP_OK?"Connecting...":"Connection setup failed");retry_at=esp_timer_get_time()+5000000; +} +/* The setup server is reachable only on the AP interface, never the joined LAN. */ +static bool allowed(httpd_req_t *r){ + badge_network_status_t s;badge_network_status(&s);if(!s.active)return false; + struct sockaddr_storage addr;socklen_t n=sizeof(addr); + if(getsockname(httpd_req_to_sockfd(r),(struct sockaddr *)&addr,&n)!=0)return false; + bool local=false; + if(addr.ss_family==AF_INET)local=badge_address_is_ap((const uint8_t *)&((struct sockaddr_in *)&addr)->sin_addr,4); + else if(addr.ss_family==AF_INET6)local=badge_address_is_ap((const uint8_t *)&((struct sockaddr_in6 *)&addr)->sin6_addr,16); + if(!local)return false; + char origin[96];size_t length=httpd_req_get_hdr_value_len(r,"Origin"); + if(length&&(length>=sizeof(origin)||httpd_req_get_hdr_value_str(r,"Origin",origin,sizeof(origin))!=ESP_OK||strcmp(origin,"http://192.168.4.1")))return false; + atomic_store(&last_http,(unsigned)(esp_timer_get_time()/1000000));return true; +} +static esp_err_t reject(httpd_req_t *r){return httpd_resp_send_err(r,HTTPD_403_FORBIDDEN,"Open setup from the badge hotspot");} +extern const uint8_t page_start[] asm("_binary_configure_html_gz_start"); +extern const uint8_t page_end[] asm("_binary_configure_html_gz_end"); +static esp_err_t page(httpd_req_t *r){ + if(!allowed(r))return reject(r); + httpd_resp_set_type(r,"text/html; charset=utf-8");httpd_resp_set_hdr(r,"Content-Encoding","gzip"); + httpd_resp_set_hdr(r,"Cache-Control","no-store"); + for(const uint8_t *p=page_start;p2048)n=2048;esp_err_t e=httpd_resp_send_chunk(r,(const char *)p,n);if(e!=ESP_OK)return e;p+=n;} + return httpd_resp_send_chunk(r,NULL,0); +} +static esp_err_t session(httpd_req_t *r){ + if(!allowed(r))return reject(r); + char json[64];snprintf(json,sizeof(json),"{\"token\":\"%s\"}",web_token); + httpd_resp_set_type(r,"application/json");httpd_resp_set_hdr(r,"Cache-Control","no-store"); + return httpd_resp_sendstr(r,json); +} +static esp_err_t api(httpd_req_t *r){ + if(!allowed(r))return reject(r); + char token[40];if(httpd_req_get_hdr_value_str(r,"X-Badge-Token",token,sizeof(token))!=ESP_OK||strcmp(token,web_token))return reject(r); + if(r->content_len<=0||r->content_len>=4096)return httpd_resp_send_err(r,HTTPD_400_BAD_REQUEST,"Invalid request size"); + char *body=malloc(r->content_len+1);if(!body)return httpd_resp_send_err(r,HTTPD_500_INTERNAL_SERVER_ERROR,"No memory"); + size_t used=0;while(usedcontent_len){int n=httpd_req_recv(r,body+used,r->content_len-used);if(n<=0){free(body);return ESP_FAIL;}used+=n;} + body[used]=0;char *reply=profile_protocol_request(body,false);memset(body,0,used);free(body); + if(!reply)return httpd_resp_send_err(r,HTTPD_500_INTERNAL_SERVER_ERROR,"Busy"); + httpd_resp_set_type(r,"application/json");httpd_resp_set_hdr(r,"Cache-Control","no-store"); + esp_err_t e=httpd_resp_sendstr(r,reply);free(reply);return e; +} +static esp_err_t open_server(void){ + httpd_config_t c=HTTPD_DEFAULT_CONFIG();c.stack_size=6144;c.max_open_sockets=3;c.lru_purge_enable=true;c.recv_wait_timeout=5;c.send_wait_timeout=5; + esp_err_t e=httpd_start(&server,&c);if(e!=ESP_OK)return e; + const httpd_uri_t paths[]={ {.uri="/",.method=HTTP_GET,.handler=page}, + {.uri="/session",.method=HTTP_GET,.handler=session},{.uri="/api",.method=HTTP_POST,.handler=api}}; + for(unsigned i=0;i<3;i++){e=httpd_register_uri_handler(server,&paths[i]);if(e!=ESP_OK){httpd_stop(server);server=NULL;return e;}} + return ESP_OK; +} +static void close_ap(void){ + lock();state.active=false;state.ap_password[0]=0;unlock(); + if(server){httpd_stop(server);server=NULL;} + if(ready)esp_wifi_set_mode(WIFI_MODE_STA); + message("Hotspot off"); +} +static void toggle_ap(void){ + badge_network_status_t s;badge_network_status(&s);if(s.active){close_ap();return;} + esp_err_t e=start();if(e!=ESP_OK){message("Wi-Fi unavailable");return;} + uint32_t random[4];esp_fill_random(random,sizeof(random)); + if(!valid_setup_password(setup_password)){ + snprintf(setup_password,sizeof(setup_password),"%08lX%04lX",(unsigned long)random[0],(unsigned long)(random[1]&65535)); + if(nvs_ready&&nvs_set_str(nvs,"ap_password",setup_password)==ESP_OK)nvs_commit(nvs); + } + snprintf(web_token,sizeof(web_token),"%08lX%08lX%08lX%08lX",(unsigned long)random[0],(unsigned long)random[1],(unsigned long)random[2],(unsigned long)random[3]); + wifi_config_t config={0};memcpy(config.ap.ssid,s.ap_ssid,strlen(s.ap_ssid));config.ap.ssid_len=strlen(s.ap_ssid); + memcpy(config.ap.password,setup_password,12);config.ap.channel=1;config.ap.max_connection=2;config.ap.authmode=WIFI_AUTH_WPA2_PSK; + e=esp_wifi_set_mode(WIFI_MODE_APSTA);if(e==ESP_OK)e=esp_wifi_set_config(WIFI_IF_AP,&config); + if(e==ESP_OK){lock();state.active=true;strcpy(state.ap_password,setup_password);unlock();atomic_store(&last_http,(unsigned)(esp_timer_get_time()/1000000));e=open_server();} + if(e!=ESP_OK){close_ap();message("Hotspot failed");}else message("Setup hotspot ready"); +} +static void scan_nearby(void){ + badge_scan_entry_t results[BADGE_SCAN_LIMIT];size_t count=0; + esp_err_t e=start(); + if(e==ESP_OK){ + wifi_scan_config_t config={.show_hidden=false,.scan_type=WIFI_SCAN_TYPE_ACTIVE}; + config.scan_time.active.min=40;config.scan_time.active.max=120; + /* Only the network worker blocks; UI/USB/HTTP remain responsive. */ + e=esp_wifi_scan_start(&config,true); + if(e==ESP_OK){ + uint16_t total=0;e=esp_wifi_scan_get_ap_num(&total); + if(e==ESP_OK&&total){ + if(total>64)total=64; + wifi_ap_record_t *records=calloc(total,sizeof(*records)); + if(!records)e=ESP_ERR_NO_MEM; + else { + e=esp_wifi_scan_get_ap_records(&total,records); + for(unsigned i=0;e==ESP_OK&&iauth){ + case WIFI_AUTH_OPEN:security="OPEN";break; + case WIFI_AUTH_WPA2_PSK:security="WPA2";break; + case WIFI_AUTH_WPA_WPA2_PSK:security="WPA/WPA2";break; + case WIFI_AUTH_WPA3_PSK:security="WPA3";break; + case WIFI_AUTH_WPA2_WPA3_PSK:security="WPA2/WPA3";break; + case WIFI_AUTH_ENTERPRISE:security="Enterprise";supported=false;break; + case WIFI_AUTH_WEP:security="WEP";supported=false;break; + case WIFI_AUTH_WPA_PSK:security="WPA";supported=false;break; + default:supported=false;break; + } + cJSON *item=cJSON_CreateObject();if(!item)continue; + cJSON_AddStringToObject(item,"ssid",ap->ssid);cJSON_AddNumberToObject(item,"rssi",ap->rssi); + cJSON_AddStringToObject(item,"security",security);cJSON_AddBoolToObject(item,"open",ap->auth==WIFI_AUTH_OPEN); + cJSON_AddBoolToObject(item,"supported",supported);cJSON_AddItemToArray(list,item); + } + unlock();cJSON_AddItemToObject(reply,"networks",list); +} +static void worker(void *arg){ + (void)arg;int command;bool setup_seen=false; + for(;;){ + if(atomic_load(&shutdown_requested))break; + if(xQueueReceive(commands,&command,pdMS_TO_TICKS(1000))==pdTRUE){ + if(atomic_load(&shutdown_requested))break; + if(command==CMD_CONNECT)connect_saved();else if(command==CMD_SCAN)scan_nearby(); + else if(command==CMD_START_SETUP){badge_network_status_t current;badge_network_status(¤t);if(!current.active)toggle_ap();} + else if(command==CMD_TOGGLE)toggle_ap(); + else if(command==CMD_ENTROPY)(void)start(); + } + int policy=badge_network_power_policy(atomic_load(&desired_ps),atomic_load(&standby_ps)); + if(started&&policy!=applied_ps){ + wifi_ps_type_t mode=policy==1?WIFI_PS_MAX_MODEM:policy==2?WIFI_PS_NONE:WIFI_PS_MIN_MODEM; + if(esp_wifi_set_ps(mode)==ESP_OK){applied_ps=policy;ESP_LOGI("badge_network","Power policy: %s",policy==1?"MAX_MODEM":policy==2?"NONE":"MIN_MODEM");} + } + badge_network_status_t s;badge_network_status(&s); + if(s.connected&&!atomic_load(&shutdown_requested))yao_location_poll(); + unsigned now=(unsigned)(esp_timer_get_time()/1000000); + badge_setup_action_t setup=badge_setup_tick(&setup_seen,atomic_load(&onboarding),s.active,now-atomic_load(&last_http)); + if(setup==BADGE_SETUP_START)toggle_ap(); + if(setup==BADGE_SETUP_EXTEND)atomic_store(&last_http,now); + if(setup==BADGE_SETUP_CLOSE)close_ap(); + if(atomic_load(&disconnected)&&s.ssid[0]&&!s.connected&&esp_timer_get_time()>retry_at){ + retries++; + esp_wifi_connect(); + if(retries<=3){retry_at=esp_timer_get_time()+5000000;message("Connecting...");} + else{retry_at=esp_timer_get_time()+30000000;message("Waiting for Wi-Fi");} + } + } + yao_location_network(false); + close_ap();if(esp_sntp_enabled())esp_sntp_stop();if(started)esp_wifi_stop(); + atomic_store(&shutdown_done,true);vTaskDelete(NULL); +} +esp_err_t badge_network_shutdown(void){ + if(!commands)return ESP_OK; + atomic_store(&shutdown_requested,true);int cmd=CMD_POWER;(void)xQueueSendToFront(commands,&cmd,0); + int64_t until=esp_timer_get_time()+12000000;while(!atomic_load(&shutdown_done)&&esp_timer_get_time()=100;} +esp_err_t badge_network_prepare_entropy(void){if(badge_network_entropy_ready())return ESP_OK;int cmd=CMD_ENTROPY;return commands&&xQueueSend(commands,&cmd,0)==pdTRUE?ESP_OK:ESP_ERR_INVALID_STATE;} +esp_err_t badge_network_start_setup(void){int cmd=CMD_START_SETUP;return commands&&xQueueSend(commands,&cmd,0)==pdTRUE?ESP_OK:ESP_ERR_INVALID_STATE;} +void badge_network_xiaozhi_power(bool active,bool busy){ + int desired=active?(busy?2:1):0; + if(atomic_exchange(&desired_ps,desired)!=desired&&commands){int cmd=CMD_POWER;(void)xQueueSend(commands,&cmd,0);} +} +void badge_network_standby(bool asleep){ + if(atomic_exchange(&standby_ps,asleep)!=asleep&&commands){int cmd=CMD_POWER;(void)xQueueSend(commands,&cmd,0);} +} +void badge_network_onboarding(bool enabled){atomic_store(&onboarding,enabled);} +esp_err_t badge_network_save(const char *ssid,const char *password,bool open,bool keep){ + size_t sn=strlen(ssid),pn=strlen(password); + if(!sn||sn>32||pn>63||(!open&&!keep&&pn<8))return ESP_ERR_INVALID_ARG; + if(!mutex||!commands||!nvs_ready)return ESP_ERR_INVALID_STATE; + lock(); + if(keep&&(strcmp(ssid,saved.ssid)||!saved.password[0])){unlock();return ESP_ERR_INVALID_ARG;} + typeof(saved) next={0};strcpy(next.ssid,ssid); + if(!open)strcpy(next.password,keep?saved.password:password); + esp_err_t e=nvs_set_blob(nvs,"station",&next,sizeof(next));if(e==ESP_OK)e=nvs_commit(nvs); + if(e==ESP_OK){saved=next;strcpy(state.ssid,ssid);state.connected=false;state.ip[0]=0;strcpy(state.message,"Saved; connecting...");} + memset(&next,0,sizeof(next));unlock(); + if(e==ESP_OK){int cmd=CMD_CONNECT;if(xQueueSend(commands,&cmd,0)!=pdTRUE)e=ESP_ERR_INVALID_STATE;}return e; +} +esp_err_t badge_network_init(void){ + mutex=xSemaphoreCreateMutex();commands=xQueueCreate(4,sizeof(int));if(!mutex||!commands)return ESP_ERR_NO_MEM; + uint8_t mac[6]={0};esp_read_mac(mac,ESP_MAC_WIFI_STA); + snprintf(state.ap_ssid,sizeof(state.ap_ssid),"Badge-%02X%02X%02X",mac[3],mac[4],mac[5]); + strcpy(state.message,"Wi-Fi not configured"); + nvs_ready=nvs_open("badge_network",NVS_READWRITE,&nvs)==ESP_OK; + if(nvs_ready){ + size_t len=sizeof(saved);if(nvs_get_blob(nvs,"station",&saved,&len)!=ESP_OK||len!=sizeof(saved)||saved.ssid[32]||saved.password[64])memset(&saved,0,sizeof(saved)); + len=sizeof(setup_password);if(nvs_get_str(nvs,"ap_password",setup_password,&len)!=ESP_OK||len!=sizeof(setup_password)||!valid_setup_password(setup_password))setup_password[0]=0; + } + strcpy(state.ssid,saved.ssid); + if(xTaskCreate(worker,"badge_network",6144,NULL,3,NULL)!=pdPASS)return ESP_ERR_NO_MEM; + if(saved.ssid[0]){int cmd=CMD_CONNECT;xQueueSend(commands,&cmd,0);}return ESP_OK; +} diff --git a/main/badge_network.h b/main/badge_network.h new file mode 100644 index 0000000..8f34111 --- /dev/null +++ b/main/badge_network.h @@ -0,0 +1,26 @@ +#pragma once +/* MAX modem sleep for silent screen-off standby/XiaoZhi idle, NONE during + * voice, MIN otherwise. Non-blocking requests; no forced Wi-Fi disconnect. */ + +#include "esp_err.h" +#include "cJSON.h" +#include +void badge_network_xiaozhi_power(bool active,bool busy); +void badge_network_standby(bool asleep); +typedef struct {bool active,connected;char ssid[33],ap_ssid[24],ap_password[13],ip[16],message[48];} badge_network_status_t; +esp_err_t badge_network_init(void); +esp_err_t badge_network_toggle(void); +esp_err_t badge_network_start_setup(void); +/* Atomic request; safe under LVGL lock. Worker owns AP and idle timeout. */ +void badge_network_onboarding(bool enabled); +esp_err_t badge_network_save(const char *ssid,const char *password,bool open,bool keep); +void badge_network_status(badge_network_status_t *status); +void badge_network_json(cJSON *reply); + +esp_err_t badge_network_scan(void); +void badge_network_scan_json(cJSON *reply); +/* Start shared RF if necessary, without scanning, reconnecting or opening AP. */ +esp_err_t badge_network_prepare_entropy(void); +bool badge_network_entropy_ready(void); +/* Terminal shutdown: joins the network worker; restart required afterwards. */ +esp_err_t badge_network_shutdown(void); diff --git a/main/badge_network_rules.c b/main/badge_network_rules.c new file mode 100644 index 0000000..63914f4 --- /dev/null +++ b/main/badge_network_rules.c @@ -0,0 +1,29 @@ +#include "badge_network_rules.h" +#include +int badge_network_power_policy(int voice_policy,bool standby){ + return voice_policy==2?2:(voice_policy==1||standby)?1:0; +} +badge_setup_action_t badge_setup_tick(bool *seen,bool onboarding,bool active,uint32_t idle) { + bool previous=*seen;*seen=onboarding; + if(onboarding)return !previous&&!active?BADGE_SETUP_START:BADGE_SETUP_IDLE; + if(previous)return BADGE_SETUP_EXTEND; + return active&&idle>600?BADGE_SETUP_CLOSE:BADGE_SETUP_IDLE; +} +bool badge_address_is_ap(const uint8_t *address,size_t size) { + const uint8_t ap[4]={192,168,4,1}; + const uint8_t mapped[12]={0,0,0,0,0,0,0,0,0,0,255,255}; + if(!address)return false; + if(size==4)return memcmp(address,ap,4)==0; + return size==16 && memcmp(address,mapped,12)==0 && memcmp(address+12,ap,4)==0; +} + +void badge_scan_insert(badge_scan_entry_t *entries,size_t *count,const badge_scan_entry_t *entry) { + if(!entry->ssid[0]||entry->ssid[32]||*count>BADGE_SCAN_LIMIT)return; + size_t index=*count; + for(size_t i=0;i<*count;i++)if(entries[i].auth==entry->auth&&!strcmp(entries[i].ssid,entry->ssid)){index=i;break;} + if(index<*count){if(entries[index].rssi>=entry->rssi)return;} + else if(*countrssi<=entries[*count-1].rssi)return;index=*count-1;} + entries[index]=*entry; + while(index&&entries[index].rssi>entries[index-1].rssi){badge_scan_entry_t tmp=entries[index-1];entries[index-1]=entries[index];entries[index]=tmp;index--;} +} diff --git a/main/badge_network_rules.h b/main/badge_network_rules.h new file mode 100644 index 0000000..eaee01c --- /dev/null +++ b/main/badge_network_rules.h @@ -0,0 +1,14 @@ +#pragma once +#include +#include +#include +bool badge_address_is_ap(const uint8_t *address,size_t size); +/* 0 MIN, 1 MAX, 2 NONE. Active voice always wins over a stale screen state. */ +int badge_network_power_policy(int voice_policy,bool standby); +typedef enum {BADGE_SETUP_IDLE,BADGE_SETUP_START,BADGE_SETUP_EXTEND,BADGE_SETUP_CLOSE} badge_setup_action_t; +badge_setup_action_t badge_setup_tick(bool *was_onboarding,bool onboarding,bool active,uint32_t idle_seconds); + +#define BADGE_SCAN_LIMIT 16 +/* No hardware dependencies: merge repeated APs and retain strongest entries. */ +typedef struct {char ssid[33];int rssi;unsigned auth;} badge_scan_entry_t; +void badge_scan_insert(badge_scan_entry_t *entries,size_t *count,const badge_scan_entry_t *entry); diff --git a/main/badge_power.c b/main/badge_power.c new file mode 100644 index 0000000..73255de --- /dev/null +++ b/main/badge_power.c @@ -0,0 +1,170 @@ +#include "badge_power.h" +#include "badge_power_logic.h" +#include "badge_network.h" +#include "bsp_display.h" +#include "bsp_audio.h" +#include "esp_pm.h" +#include "esp_timer.h" +#include "esp_log.h" +#include +#include "freertos/FreeRTOS.h" +#include "freertos/semphr.h" + +static const char *TAG="badge_power"; +static atomic_bool enabled,screen_off,wake_requested,worker_busy,local_listening; +static atomic_uint last_activity; +static uint32_t last_audio,last_retry,display_retry; +static unsigned timeout_choice=BADGE_SCREEN_TIMEOUT_DEFAULT; +static bool audio_was_dark; +static SemaphoreHandle_t audio_transition; +static uint32_t orphan_retry; +static esp_pm_lock_handle_t cpu_lock,sleep_lock,audio_cpu_lock,audio_sleep_lock; +static bool pm_ready; +static atomic_bool locks_held; +/* Audio lifecycle is joined before another worker becomes the owner. These + * leases are separate from the shell's display leases: waking audio must not + * wait for the shell's next (up to one second) timer tick. */ +static atomic_bool audio_locks_held; +static void audio_performance(bool full){ + if(!pm_ready||full==atomic_load(&audio_locks_held))return; + if(full){esp_pm_lock_acquire(audio_cpu_lock);esp_pm_lock_acquire(audio_sleep_lock);badge_network_standby(false);} + else{esp_pm_lock_release(audio_sleep_lock);esp_pm_lock_release(audio_cpu_lock);} + atomic_store(&audio_locks_held,full); +} +void badge_power_set_local_listening(bool value){atomic_store(&local_listening,value);} +static uint32_t now_ms(void){return (uint32_t)(esp_timer_get_time()/1000);} +static void performance(bool full){ + if(!pm_ready||full==locks_held)return; + if(full){esp_pm_lock_acquire(cpu_lock);esp_pm_lock_acquire(sleep_lock);} + else{esp_pm_lock_release(sleep_lock);esp_pm_lock_release(cpu_lock);} + locks_held=full; +} +esp_err_t badge_power_init(void){ + if(pm_ready)return ESP_OK; + if(!audio_transition)audio_transition=xSemaphoreCreateMutex(); + if(!audio_transition)return ESP_ERR_NO_MEM; + esp_err_t e=esp_pm_lock_create(ESP_PM_CPU_FREQ_MAX,0,"badge_active",&cpu_lock); + if(e!=ESP_OK)return e; + e=esp_pm_lock_create(ESP_PM_NO_LIGHT_SLEEP,0,"badge_display",&sleep_lock); + if(e!=ESP_OK){esp_pm_lock_delete(cpu_lock);cpu_lock=NULL;return e;} + e=esp_pm_lock_create(ESP_PM_CPU_FREQ_MAX,0,"badge_audio",&audio_cpu_lock); + if(e==ESP_OK)e=esp_pm_lock_create(ESP_PM_NO_LIGHT_SLEEP,0,"badge_audio",&audio_sleep_lock); + if(e!=ESP_OK){if(audio_cpu_lock)esp_pm_lock_delete(audio_cpu_lock);esp_pm_lock_delete(sleep_lock);esp_pm_lock_delete(cpu_lock);audio_cpu_lock=NULL;sleep_lock=NULL;cpu_lock=NULL;return e;} + esp_pm_lock_acquire(cpu_lock);esp_pm_lock_acquire(sleep_lock);locks_held=true; + const esp_pm_config_t cfg={.max_freq_mhz=160,.min_freq_mhz=40,.light_sleep_enable=true}; + e=esp_pm_configure(&cfg);pm_ready=e==ESP_OK; + if(e!=ESP_OK){ + esp_pm_lock_release(sleep_lock);esp_pm_lock_release(cpu_lock);locks_held=false; + esp_pm_lock_delete(audio_sleep_lock);esp_pm_lock_delete(audio_cpu_lock); + esp_pm_lock_delete(sleep_lock);esp_pm_lock_delete(cpu_lock); + audio_sleep_lock=audio_cpu_lock=sleep_lock=cpu_lock=NULL; + } + ESP_LOGI(TAG,"DFS 160/40 MHz, automatic light sleep: %s",esp_err_to_name(e)); + return e; +} +bool badge_power_screen_off(void){return atomic_load(&screen_off);} +badge_power_status_t badge_power_status(void){ + return (badge_power_status_t){.screen_off=badge_power_screen_off(),.configured=pm_ready, + .display_performance=atomic_load(&locks_held),.audio_performance=atomic_load(&audio_locks_held), + .audio_owner=atomic_load(&enabled),.voice_listening=atomic_load(&local_listening), + .audio_sleeping=bsp_audio_is_sleeping()}; +} +void badge_power_activity(void){ + atomic_store(&last_activity,now_ms());atomic_store(&wake_requested,true); +} +void badge_power_set_timeout(unsigned choice){ + timeout_choice=choice=1000){ + orphan_retry=now; + esp_err_t e=bsp_audio_sleep(); + audio_performance(!bsp_audio_is_sleeping()); + if(e!=ESP_OK)ESP_LOGW(TAG,"Unowned audio suspend retry: %s",esp_err_to_name(e)); + } + xSemaphoreGive(audio_transition); +} +void badge_power_audio_tick(bool audio_busy){ + if(!atomic_load(&enabled))return; + uint32_t now=now_ms(); + if(audio_busy)audio_performance(true); + if(audio_busy&&bsp_audio_needs_wake()){ + if(bsp_audio_wake()!=ESP_OK)return; + last_audio=now_ms(); + } + if(audio_busy)last_audio=now; + if(badge_idle_due(now,last_audio,BADGE_AUDIO_IDLE_MS,audio_busy)&&!bsp_audio_is_sleeping()&&now-last_retry>=1000){ + last_retry=now;esp_err_t e=bsp_audio_sleep(); + if(e!=ESP_OK)ESP_LOGW(TAG,"Audio idle suspend: %s",esp_err_to_name(e)); + else ESP_LOGI(TAG,"Audio idle: ES8311 suspended, I2S input/output stopped"); + } + audio_performance(audio_busy||!bsp_audio_is_sleeping()); +} +void badge_power_tick(bool busy,bool audio_busy){ + if(!atomic_load(&enabled))return; + atomic_store(&worker_busy,busy); + if(busy)atomic_store(&last_activity,now_ms()); + bool dark=badge_power_screen_off(); + badge_power_audio_tick(audio_busy||(audio_was_dark&&!dark)); + audio_was_dark=dark; + badge_network_xiaozhi_power(true,busy); +} +/* One display owner for every page. Audio workers never stop/resume LVGL. */ +void badge_power_display_tick(bool keep_awake,bool keep_cpu){ + retry_unowned_audio(); + uint32_t now=now_ms(); + bool busy=keep_awake||atomic_load(&worker_busy); + bool requested=atomic_exchange(&wake_requested,false); + uint32_t delay=badge_screen_timeout_ms(timeout_choice); + if(busy)atomic_store(&last_activity,now); + if(badge_power_screen_off()&&(requested||busy||delay==0)){ + if(!wake_display())atomic_store(&wake_requested,true); + } + if(!badge_power_screen_off()&&badge_idle_due(now,atomic_load(&last_activity),delay,busy)&&now-display_retry>=1000){ + display_retry=now; + atomic_store(&screen_off,true); // Suppress status/UI writes during transition. + esp_err_t e=bsp_display_suspend(); + if(e!=ESP_OK){ + atomic_store(&screen_off,bsp_display_is_suspended()); + atomic_store(&wake_requested,true);performance(true); + ESP_LOGW(TAG,"Display suspend, recovering: %s",esp_err_to_name(e));return; + } + ESP_LOGI(TAG,"Display asleep: backlight=0, panel sleep, LVGL task/tick stopped"); + } + bool listening=atomic_load(&local_listening); + bool audio_full=atomic_load(&audio_locks_held); + performance(!badge_power_screen_off()||keep_cpu||busy||listening); + badge_network_standby(badge_power_screen_off()&&!keep_cpu&&!busy&&!listening&&!audio_full); +} diff --git a/main/badge_power.h b/main/badge_power.h new file mode 100644 index 0000000..786e1d3 --- /dev/null +++ b/main/badge_power.h @@ -0,0 +1,30 @@ +#pragma once +#include +#include "esp_err.h" +#ifdef __cplusplus +extern "C" { +#endif +/* Display transitions belong ONLY to the shell. A joined, exclusive audio + * worker owns enter/tick/leave and its separate performance leases. */ +esp_err_t badge_power_init(void); +void badge_power_set_timeout(unsigned choice); +void badge_power_display_tick(bool keep_awake,bool keep_cpu); +void badge_power_enter(void); +/* Releases ownership even on error; shell retries failed suspend safely. */ +esp_err_t badge_power_leave(void); +void badge_power_activity(void); +void badge_power_audio_activity(void); +void badge_power_tick(bool busy,bool audio_busy); +/* Mini apps: retain playback performance, sleep after 15 silent seconds; + * does not mark the conversation busy or keep the display lit. */ +void badge_power_audio_tick(bool audio_busy); +bool badge_power_screen_off(void); +typedef struct {bool screen_off,configured,display_performance,audio_performance, + audio_owner,voice_listening,audio_sleeping;} badge_power_status_t; +/* Read-only diagnostic snapshot; does not wake the display. */ +badge_power_status_t badge_power_status(void); +/* Called only by the audio/power owner. Keep RX active during screen sleep. */ +void badge_power_set_local_listening(bool enabled); +#ifdef __cplusplus +} +#endif diff --git a/main/badge_power_logic.h b/main/badge_power_logic.h new file mode 100644 index 0000000..62e5ab9 --- /dev/null +++ b/main/badge_power_logic.h @@ -0,0 +1,41 @@ +#pragma once +#include +#include + +#define BADGE_SCREEN_IDLE_MS 60000u +#define BADGE_AUDIO_IDLE_MS 15000u +#define BADGE_SCREEN_TIMEOUT_COUNT 5u +#define BADGE_SCREEN_TIMEOUT_DEFAULT 2u +static inline uint32_t badge_screen_timeout_ms(unsigned choice) { + static const uint32_t values[]={0,30000,60000,120000,300000}; + return values[choice=delay; +} +/* Consume the complete wake gesture, including its delayed click/long press. */ +typedef struct {bool held,tail;uint32_t until;} badge_wake_filter_t; +static inline bool badge_wake_consumed(badge_wake_filter_t *f,uint32_t now, + bool asleep,bool press,bool release) { + if(asleep||f->held) { + if(press)f->held=true; + if(release)f->held=false; + f->tail=press||release||f->held; + f->until=now+350; + return true; + } + if(f->tail){ + /* Rendering during wake may delay queue processing beyond 350 ms. + * A trailing click still belongs to the wake gesture. Only a new + * press after the double-click window starts a new gesture. */ + if(press&&(int32_t)(now-f->until)>=0){f->tail=false;return false;} + if(press)f->held=true; + if(release)f->until=now+350; + if(!press&&!release)f->tail=false; + return true; + } + return false; +} diff --git a/main/badge_profile.h b/main/badge_profile.h new file mode 100644 index 0000000..107b740 --- /dev/null +++ b/main/badge_profile.h @@ -0,0 +1,9 @@ +#pragma once +/* Default display identity, not a real employee credential. UTF-8 supported by + * the generated font; regenerate after adding Chinese characters. */ +#define BADGE_DISPLAY_NAME "FOLO MAKER" +#define BADGE_DISPLAY_ROLE "网络安全部 / L03" +#define BADGE_VERSION "2.6.53" + + + diff --git a/main/badge_reminder.c b/main/badge_reminder.c new file mode 100644 index 0000000..9c59dd8 --- /dev/null +++ b/main/badge_reminder.c @@ -0,0 +1,9 @@ +#include "badge_reminder.h" +#include +bool badge_reminder_set(badge_reminder_t *r,uint64_t now,unsigned seconds,const char *text){ + if(r->deadline||r->ringing||seconds<1||seconds>86400||!text||!text[0]||strlen(text)>96)return false; + r->deadline=now+(uint64_t)seconds*1000000;strcpy(r->text,text);return true; +} +unsigned badge_reminder_remaining(const badge_reminder_t *r,uint64_t now){return r->deadline>now?(unsigned)((r->deadline-now+999999)/1000000):0;} +bool badge_reminder_due(const badge_reminder_t *r,uint64_t now){return r->deadline&&now>=r->deadline&&!r->ringing;} +void badge_reminder_clear(badge_reminder_t *r){memset(r,0,sizeof(*r));} diff --git a/main/badge_reminder.h b/main/badge_reminder.h new file mode 100644 index 0000000..ff9e9bd --- /dev/null +++ b/main/badge_reminder.h @@ -0,0 +1,9 @@ +#pragma once +#include +#include +/* Main task owns this state; monotonic time survives light sleep, not reboot. */ +typedef struct {uint64_t deadline;bool ringing;char text[97];} badge_reminder_t; +bool badge_reminder_set(badge_reminder_t *r,uint64_t now,unsigned seconds,const char *text); +unsigned badge_reminder_remaining(const badge_reminder_t *r,uint64_t now); +bool badge_reminder_due(const badge_reminder_t *r,uint64_t now); +void badge_reminder_clear(badge_reminder_t *r); diff --git a/main/badge_theme.c b/main/badge_theme.c new file mode 100644 index 0000000..9fff490 --- /dev/null +++ b/main/badge_theme.c @@ -0,0 +1,11 @@ +#include "badge_theme.h" +#include +static const uint32_t defaults[BADGE_COLOR_COUNT]={0x08090B,0x181216,0xF03543,0xE8E6DF,0xA69C9F}; +static uint32_t colors[BADGE_COLOR_COUNT]={0x08090B,0x181216,0xF03543,0xE8E6DF,0xA69C9F}; +static uint32_t revision=1; +void badge_theme_set(const uint32_t next[BADGE_COLOR_COUNT]) { + if(!next)next=defaults; + if(memcmp(colors,next,sizeof(colors))){memcpy(colors,next,sizeof(colors));revision++;} +} +const uint32_t *badge_theme_colors(void) {return colors;} +uint32_t badge_theme_revision(void) {return revision;} diff --git a/main/badge_theme.h b/main/badge_theme.h new file mode 100644 index 0000000..5de78a2 --- /dev/null +++ b/main/badge_theme.h @@ -0,0 +1,7 @@ +#pragma once +#include +/* Shared by badge shell and built-in games. Hold the LVGL lock for all access. */ +enum { BADGE_BACKGROUND, BADGE_PANEL, BADGE_ACCENT, BADGE_TEXT, BADGE_MUTED, BADGE_COLOR_COUNT }; +void badge_theme_set(const uint32_t colors[BADGE_COLOR_COUNT]); +const uint32_t *badge_theme_colors(void); +uint32_t badge_theme_revision(void); diff --git a/main/badge_ui.c b/main/badge_ui.c new file mode 100644 index 0000000..22c9db4 --- /dev/null +++ b/main/badge_ui.c @@ -0,0 +1,533 @@ +#include "badge_ui.h" +#include "badge_theme.h" +#include "badge_header.h" +#include "badge_footer.h" +#include "badge_profile.h" +#include "badge_layout.h" +#include "profile_format.h" +#include "lvgl.h" +#include "src/misc/cache/instance/lv_image_cache.h" +#include "src/misc/cache/instance/lv_image_header_cache.h" +#include +#include +#include + +LV_FONT_DECLARE(font_muyu_14); +LV_FONT_DECLARE(font_xiaozhi_14); +LV_FONT_DECLARE(font_badge_10); +LV_FONT_DECLARE(font_badge_28); +#define BLACK colors[0] +#define PANEL colors[1] +#define RED colors[2] +#define DARK_RED edge_color +#define WHITE colors[3] +#define MUTED colors[4] +static uint32_t colors[5]={0x08090B,0x181216,0xF03543,0xE8E6DF,0xA69C9F}; +static uint32_t edge_color=0x56222B,on_accent=0x08090B; +static float linear(unsigned c){float v=c/255.0f;return v<=.04045f?v/12.92f:powf((v+.055f)/1.055f,2.4f);} + +static bool portrait_layout,tactical_layout; +static lv_image_dsc_t tactical_panel={.header={.magic=LV_IMAGE_HEADER_MAGIC,.cf=LV_COLOR_FORMAT_RGB565,.w=84,.h=148,.stride=168},.data_size=PROFILE_V4_PANEL_BYTES}; +static lv_image_dsc_t tactical_footer={.header={.magic=LV_IMAGE_HEADER_MAGIC,.cf=LV_COLOR_FORMAT_RGB565,.w=120,.h=40,.stride=416},.data_size=16640}; +static lv_image_dsc_t tactical_signature={.header={.magic=LV_IMAGE_HEADER_MAGIC,.cf=LV_COLOR_FORMAT_RGB565,.w=88,.h=40,.stride=416},.data_size=16640}; +static lv_image_dsc_t brand_id={.header={.magic=LV_IMAGE_HEADER_MAGIC,.cf=LV_COLOR_FORMAT_RGB565,.w=168,.h=12,.stride=336},.data_size=4032}; +static unsigned badge_formats[PROFILE_BADGE_COUNT]; +enum { BADGE_LIST_TOP=100, BADGE_LIST_STEP=38, BADGE_LIST_HEIGHT=36, + BADGE_NAME_X=49, BADGE_NAME_WIDTH=128, BADGE_NAME_HEIGHT=32 }; +static lv_image_dsc_t portrait_image={.header={.magic=LV_IMAGE_HEADER_MAGIC,.cf=LV_COLOR_FORMAT_RGB565,.w=112,.h=136,.stride=224},.data_size=PROFILE_V3_AVATAR_BYTES}; +static lv_image_dsc_t brand_image={.header={.magic=LV_IMAGE_HEADER_MAGIC,.cf=LV_COLOR_FORMAT_RGB565,.w=148,.h=44,.stride=296},.data_size=13024}; +static lv_image_dsc_t logo_image={.header={.magic=LV_IMAGE_HEADER_MAGIC,.cf=LV_COLOR_FORMAT_RGB565,.w=32,.h=32,.stride=64},.data_size=2048}; +/* A neutral 176px square leaves 32px side margins and 11px below the banner. */ +#define QR_VIEW_SIZE 176 +static uint8_t qr_bitmap[8+QR_VIEW_SIZE*QR_VIEW_SIZE/8]; +static lv_image_dsc_t qr_image={.header={.magic=LV_IMAGE_HEADER_MAGIC,.cf=LV_COLOR_FORMAT_I1,.w=QR_VIEW_SIZE,.h=QR_VIEW_SIZE,.stride=QR_VIEW_SIZE/8},.data_size=sizeof(qr_bitmap)}; +static lv_obj_t *wifi_ssid,*wifi_password,*wifi_ip,*wifi_message,*wifi_action; +void badge_ui_set_custom(const uint8_t *brand,const uint8_t *logo,const uint8_t *qr,const uint32_t theme[5]) { + lv_image_cache_drop(&brand_image);lv_image_header_cache_drop(&brand_image); + lv_image_cache_drop(&logo_image);lv_image_header_cache_drop(&logo_image); + lv_image_cache_drop(&qr_image);lv_image_header_cache_drop(&qr_image); + brand_image.header.h=portrait_layout?PROFILE_V3_BRAND_H:PROFILE_BRAND_H; + brand_image.data_size=portrait_layout?PROFILE_V3_BRAND_BYTES:PROFILE_BRAND_BYTES; + brand_image.data=brand;logo_image.data=logo; + badge_theme_set(theme);memcpy(colors,badge_theme_colors(),sizeof(colors)); + edge_color=((RED&0xfefefe)>>1)+((PANEL&0xfefefe)>>1); + on_accent=(.2126f*linear((RED>>16)&255)+.7152f*linear((RED>>8)&255)+.0722f*linear(RED&255)>.179f)?0x08090B:0xFFFFFF; + qr_image.data=NULL; + if(qr){ + memset(qr_bitmap,0,sizeof(qr_bitmap));memset(qr_bitmap,255,4);qr_bitmap[7]=255; + /* Nearest pixel centers keep edges binary; stored 192px QR stays intact. */ + for(unsigned y=0;y>3]&(128>>(src&7)))qr_bitmap[8+(dst>>3)]|=128>>(dst&7); + } + qr_image.data=qr_bitmap; + } +} +static lv_obj_t *screen,*uptime_label,*health_label,*unit_label; +static lv_obj_t *return_overlay; +static badge_navigation_t navigation; +static char ai_status[96]="你好å°�智"; +void badge_ui_ai_status(const char *text){snprintf(ai_status,sizeof(ai_status),"%s",text);} +static int scan_progress=255; + +static lv_image_dsc_t identity={ + .header={.magic=LV_IMAGE_HEADER_MAGIC,.cf=LV_COLOR_FORMAT_RGB565, + .w=PROFILE_CARD_W,.h=PROFILE_CARD_H,.stride=PROFILE_CARD_W*2}, + .data_size=PROFILE_CARD_BYTES}; +static lv_image_dsc_t profile_views[BADGE_REGION_COUNT],badge_names[PROFILE_BADGE_COUNT]; +/* List-only alpha tiles remove each saved card's baked-in background. */ +static lv_image_dsc_t list_names[PROFILE_BADGE_COUNT]; +static void clear_list_names(void) { + for(unsigned i=0;i>11)&31)-(int)((b>>11)&31); + int g=(int)((a>>5)&63)-(int)((b>>5)&63); + int blue=(int)(a&31)-(int)(b&31); + return (r<0?-r:r)*2+(g<0?-g:g)+(blue<0?-blue:blue)*2; +} +static uint16_t name_pixel(const lv_image_dsc_t *src,unsigned x,unsigned y) { + const uint8_t *p=src->data+y*src->header.stride+x*2; + return (uint16_t)p[0]|((uint16_t)p[1]<<8); +} +static lv_image_dsc_t *make_list_name(unsigned i) { + const lv_image_dsc_t *src=&badge_names[i]; + unsigned w=badge_formats[i]==3?117:src->header.w; + unsigned h=badge_formats[i]==3?18:32,stride=(w+1)/2; + size_t size=64+stride*h; + uint8_t *data=lv_malloc(size);if(!data)return NULL; + memset(data,0,size); + uint16_t background=name_pixel(src,0,0);unsigned maximum=0; + for(unsigned y=0;yheader.h;y++)for(unsigned x=0;xheader.w;x++) { + unsigned d=name_distance(name_pixel(src,x,y),background); + if(d>maximum)maximum=d; + } + for(unsigned alpha=0;alpha<16;alpha++) { + uint32_t color=(alpha*17u<<24)|WHITE; + memcpy(data+alpha*4,&color,4); + } + for(unsigned y=0;yheader.w+w/2)/w,sy=(y*src->header.h+h/2)/h; + unsigned d=name_distance(name_pixel(src,sx,sy),background); + unsigned alpha=maximum?(d*15+maximum/2)/maximum:0; + data[64+y*stride+x/2]|=alpha<<(x%2?0:4); + } + list_names[i]=(lv_image_dsc_t){.header={.magic=LV_IMAGE_HEADER_MAGIC, + .cf=LV_COLOR_FORMAT_I4,.w=w,.h=h,.stride=stride},.data_size=size,.data=data}; + return &list_names[i]; +} +void badge_ui_set_badges(const uint8_t *const *cards,unsigned count) { + for(unsigned i=0;iw,.h=r->h,.stride=PROFILE_CARD_W*2}, + .data_size=r->h*PROFILE_CARD_W*2, + .data=pixels?pixels+(r->sy*PROFILE_CARD_W+r->sx)*2:NULL}; + } +} + +void badge_ui_set_portrait(const uint8_t *pixels,const uint8_t *avatar) { + badge_ui_set_profile(pixels);portrait_layout=true; + identity.header.h=PROFILE_V3_CARD_H;identity.data_size=PROFILE_V3_CARD_BYTES; + lv_image_cache_drop(&portrait_image);lv_image_header_cache_drop(&portrait_image);portrait_image.data=avatar;portrait_image.header.h=PROFILE_V3_AVATAR_H;portrait_image.data_size=PROFILE_V3_AVATAR_BYTES; +} +void badge_ui_set_tactical(const uint8_t *pixels,const uint8_t *avatar) { + badge_ui_set_portrait(pixels,avatar);tactical_layout=true; + portrait_image.header.h=PROFILE_V4_AVATAR_H;portrait_image.data_size=PROFILE_V4_AVATAR_BYTES; + lv_image_cache_drop(&tactical_panel);lv_image_header_cache_drop(&tactical_panel); + lv_image_cache_drop(&tactical_footer);lv_image_header_cache_drop(&tactical_footer); + lv_image_cache_drop(&tactical_signature);lv_image_header_cache_drop(&tactical_signature); + tactical_panel.data=pixels;tactical_footer.data=pixels?pixels+PROFILE_V4_PANEL_BYTES:NULL; + tactical_signature.data=pixels?pixels+PROFILE_V4_PANEL_BYTES+240:NULL; + bool header_id=pixels&&!memcmp(pixels+41504,"IDH1",4); + tactical_panel.header.h=header_id?124:148; + tactical_panel.data_size=header_id?20832:PROFILE_V4_PANEL_BYTES; + brand_id.data=header_id?pixels+20832:NULL; +} +void badge_ui_set_badge_formats(const unsigned versions[5]) { + for(unsigned i=0;i=3&&badge_names[i].data){ + lv_image_cache_drop(&badge_names[i]);lv_image_header_cache_drop(&badge_names[i]); + badge_names[i].data-=(4*208+88)*2;badge_names[i].header.w=208; + if(versions[i]>=4){badge_names[i].header.w=84;badge_names[i].header.stride=168;badge_names[i].data_size=32*168;} + } + } +} + +static void rect(lv_layer_t *l,int x,int y,int w,int h,uint32_t color) { + lv_draw_rect_dsc_t d;lv_draw_rect_dsc_init(&d); + d.bg_color=lv_color_hex(color);d.bg_opa=LV_OPA_COVER; + lv_area_t a={x,y,x+w-1,y+h-1};lv_draw_rect(l,&d,&a); +} +static void line(lv_layer_t *l,int x1,int y1,int x2,int y2,int width,uint32_t color) { + lv_draw_line_dsc_t d;lv_draw_line_dsc_init(&d); + d.p1=(lv_point_precise_t){x1,y1};d.p2=(lv_point_precise_t){x2,y2}; + d.width=width;d.color=lv_color_hex(color);d.opa=LV_OPA_COVER;lv_draw_line(l,&d); +} +static void circle(lv_layer_t *l,int x,int y,int radius,uint32_t color) { + lv_draw_rect_dsc_t d;lv_draw_rect_dsc_init(&d); + d.bg_color=lv_color_hex(color);d.bg_opa=LV_OPA_COVER;d.radius=LV_RADIUS_CIRCLE; + lv_area_t a={x-radius,y-radius,x+radius,y+radius};lv_draw_rect(l,&d,&a); +} +static void arc(lv_layer_t *l,int x,int y,int radius,int width,int from,int to,uint32_t color) { + lv_draw_arc_dsc_t d;lv_draw_arc_dsc_init(&d); + d.center=(lv_point_t){x,y};d.radius=radius;d.width=width; + d.start_angle=from;d.end_angle=to;d.color=lv_color_hex(color);d.opa=LV_OPA_COVER; + lv_draw_arc(l,&d); +} +static void cut_panel(lv_layer_t *l,int x,int y,int w,int h,uint32_t fill,uint32_t edge) { + rect(l,x,y,w,h,fill); + for(int i=0;i<10;i++) rect(l,x+w-10+i,y+h-1-i,10-i,1,BLACK); + line(l,x,y,x+w-1,y,1,edge);line(l,x,y,x,y+h-1,1,edge); + line(l,x+w-1,y,x+w-1,y+h-11,1,edge); + line(l,x,y+h-1,x+w-11,y+h-1,1,edge); + line(l,x+w-11,y+h-1,x+w-1,y+h-11,1,edge); +} +static void artwork(lv_event_t *e) { + lv_layer_t *l=lv_event_get_layer(e); + if(!((navigation.page==BADGE_HOME||navigation.page==BADGE_QR)&&navigation.badge_mask&&(tactical_layout||!identity.data)))rect(l,14,291,212,1,DARK_RED); + /* A single restrained sweep confirms page/selection changes; never flashes. */ + if(scan_progress<255) rect(l,14,28,1+scan_progress*211/255,2,WHITE); + if(navigation.page==BADGE_HOME&&!navigation.badge_mask) { + cut_panel(l,14,101,212,170,PANEL,DARK_RED); + } else if((navigation.page==BADGE_HOME||navigation.page==BADGE_QR)&&(tactical_layout||!identity.data)) { + rect(l,0,30,240,49,RED); + for(int y=79;y<89;y++)rect(l,0,y,137-(y-79)*12/10,1,RED); + rect(l,213,38,3,3,on_accent);rect(l,219,38,3,3,DARK_RED);rect(l,225,38,3,3,on_accent); + line(l,0,293,25,293,1,RED);line(l,25,293,34,288,1,RED); + line(l,34,288,129,288,1,RED);line(l,129,288,139,293,1,RED);line(l,139,293,239,293,1,RED); + line(l,222,293,231,285,1,RED);line(l,231,285,239,285,1,RED); + rect(l,33,287,2,2,RED);rect(l,138,292,2,2,RED); + if(navigation.page==BADGE_HOME&&!identity.data){circle(l,63,141,24,MUTED);cut_panel(l,17,178,91,73,PANEL,PANEL);} + } else if(navigation.page==BADGE_HOME||navigation.page==BADGE_QR) { + /* Portrait access pass: one quiet focal image, engraved corner marks. */ + line(l,14,67,226,67,1,DARK_RED); + line(l,14,35,42,35,1,DARK_RED);line(l,14,35,14,63,1,DARK_RED); + line(l,42,35,42,63,1,DARK_RED);line(l,14,63,42,63,1,DARK_RED); + if(!brand_image.data) { + arc(l,28,49,9,1,0,360,RED);circle(l,28,49,2,RED); + line(l,28,38,28,42,1,RED);line(l,28,56,28,60,1,RED); + } + if(navigation.page==BADGE_QR)return; + rect(l,63,71,114,138,PANEL); + line(l,61,69,73,69,2,RED);line(l,61,69,61,81,2,RED); + line(l,179,199,179,211,2,RED);line(l,167,211,179,211,2,RED); + line(l,61,88,61,193,1,DARK_RED);line(l,179,85,179,192,1,DARK_RED); + if(!identity.data) { + circle(l,120,119,24,MUTED); + cut_panel(l,78,155,84,47,DARK_RED,DARK_RED); + } + } else if(navigation.page==BADGE_CARDS) { + for(unsigned i=0;iopen)return; + return_overlay=lv_obj_create(lv_layer_top());lv_obj_remove_style_all(return_overlay);lv_obj_set_size(return_overlay,240,320); + lv_obj_set_style_bg_color(return_overlay,lv_color_hex(BLACK),0);lv_obj_set_style_bg_opa(return_overlay,LV_OPA_80,0); + lv_obj_remove_flag(return_overlay,LV_OBJ_FLAG_SCROLLABLE); + lv_obj_t *panel=lv_obj_create(return_overlay);lv_obj_remove_style_all(panel);lv_obj_set_pos(panel,14,68);lv_obj_set_size(panel,212,204); + lv_obj_set_style_bg_color(panel,lv_color_hex(PANEL),0);lv_obj_set_style_bg_opa(panel,LV_OPA_COVER,0);lv_obj_set_style_border_width(panel,1,0);lv_obj_set_style_border_color(panel,lv_color_hex(RED),0); + const char *texts[]={"返回到哪里?","返回上一级","回到首页","继续当å‰�页é�¢"}; + for(unsigned i=0;i<4;i++) { + lv_obj_t *o=lv_label_create(panel);lv_obj_set_style_text_font(o,((navigation.page==BADGE_AI_SETTINGS||navigation.page==BADGE_AI_VOLUME_PAGE||navigation.page==BADGE_SETTINGS)?&font_xiaozhi_14:&font_muyu_14),0);lv_obj_set_size(o,188,27);lv_obj_set_pos(o,12,i==0?12:45+(i-1)*40); + lv_label_set_text(o,texts[i]);lv_obj_set_style_text_color(o,lv_color_hex(i==0?RED:WHITE),0); + if(i>0&&i<4){lv_obj_set_style_pad_top(o,4,0);lv_obj_set_style_pad_left(o,8,0);} + if(i>0&&i<4&&menu->selected==i-1){lv_obj_set_style_bg_color(o,lv_color_hex(RED),0);lv_obj_set_style_bg_opa(o,LV_OPA_COVER,0);lv_obj_set_style_text_color(o,lv_color_hex(on_accent),0);} + } + lv_obj_t *actions=badge_footer_create(return_overlay,BADGE_HINT_RETURN); + lv_obj_set_style_bg_color(actions,lv_color_hex(BLACK),0);lv_obj_set_style_bg_opa(actions,LV_OPA_COVER,0); +} +static void setup_steps(void) { + bool network_page=navigation.page==BADGE_WIFI; + label(network_page?"01 热点网页:资料/二维ç �":"01 连接下é�¢çš„工牌热点",22,106,200,WHITE,14); + wifi_ssid=label("正在开å�¯çƒ­ç‚¹â€¦",22,129,200,RED,14); + wifi_password=label("",22,151,200,WHITE,14); + label(network_page?"02 网页打开设置页":"02 手机æµ�览器打开",22,179,200,WHITE,14); + wifi_ip=label("http://192.168.4.1",22,201,200,RED,14); + label(network_page?"03 目标 Wi-Fi 状æ€�":"03 填写资料并ä¿�å­˜",22,228,200,WHITE,14); + wifi_message=label(network_page?"未ä¿�å­˜ Wi-Fi":"å†�点 显示这张工牌",22,250,200,MUTED,14); + label("无互è�”网æ��示ä»�ä¿�æŒ�连接",14,275,212,MUTED,14); + wifi_action=badge_footer_create(screen,""); +} +void badge_ui_create(void) { + screen=lv_obj_create(NULL); + lv_obj_set_style_bg_color(screen,lv_color_hex(BLACK),0);lv_obj_set_style_bg_opa(screen,LV_OPA_COVER,0); + lv_obj_set_style_pad_all(screen,0,0);lv_obj_remove_flag(screen,LV_OBJ_FLAG_SCROLLABLE); + lv_obj_add_event_cb(screen,artwork,LV_EVENT_DRAW_MAIN,NULL); + lv_screen_load(screen); +} +void badge_ui_destroy(void) { + badge_ui_return_menu(NULL); + if(screen) {lv_anim_delete(screen,scan);lv_obj_delete(screen);} + clear_list_names(); + screen=uptime_label=health_label=unit_label=NULL; + wifi_ssid=wifi_password=wifi_ip=wifi_message=wifi_action=NULL; +} +#ifdef BADGE_CONTROL_DEVICE_PROBE +static unsigned probe_homes,probe_home_badge; +unsigned badge_ui_probe_home_count(void){return probe_homes;} +unsigned badge_ui_probe_home_badge(void){return probe_home_badge;} +#endif +void badge_ui_render(const badge_navigation_t *s,const char *name,const char *description,const char *category) { +#ifdef BADGE_CONTROL_DEVICE_PROBE + if(s->page==BADGE_HOME){probe_homes++;probe_home_badge=s->active_badge;} +#endif + navigation=*s;lv_obj_set_style_bg_color(screen,lv_color_hex(BLACK),0);lv_anim_delete(screen,scan);lv_obj_clean(screen); + clear_list_names(); + uptime_label=health_label=unit_label=NULL; + wifi_ssid=wifi_password=wifi_ip=wifi_message=wifi_action=NULL; + badge_header_attach(screen); + badge_header_badge(s->active_badge,s->badge_mask?s->badge_count:0); + if(s->page==BADGE_HOME&&!s->badge_mask) { + label("WELCOME",14,38,212,RED,28);label("先设置你的第一张工牌",14,78,212,WHITE,14); + setup_steps(); + } else if(s->page==BADGE_HOME||s->page==BADGE_QR) { + if(tactical_layout||!identity.data) { + if(brand_image.data){image_at(&brand_image,46,43,256);image_at(&logo_image,12,43,208);} + else{label("ARASAKA",46,44,148,on_accent,14);label("ACCESS PASS",46,65,148,on_accent,10);} + if(brand_id.data)image_at(&brand_id,60,31,256); + if(s->page==BADGE_QR)contact_content(); + else if(identity.data){ + image_at(&portrait_image,0,90,320); + photo_fade(87,90,53,180,LV_GRAD_DIR_HOR);photo_fade(0,226,140,44,LV_GRAD_DIR_VER); + image_at(&tactical_panel,145,98,256);image_at(&tactical_footer,8,250,256);image_at(&tactical_signature,128,244,256); + }else{label("未设置",145,101,84,WHITE,14);label("请在网页é…�ç½®",145,154,84,MUTED,14);} + } else { + if(brand_image.data) { + lv_obj_t *b=lv_image_create(screen);lv_image_set_src(b,&brand_image);lv_obj_set_pos(b,52,34); + if(!portrait_layout){lv_image_set_pivot(b,0,0);lv_image_set_scale(b,180);} + lv_obj_t *icon=lv_image_create(screen);lv_image_set_src(icon,&logo_image);lv_obj_set_pos(icon,17,38); + lv_image_set_pivot(icon,0,0);lv_image_set_scale(icon,192); + } else {label("ARASAKA",52,35,174,WHITE,14);label("ACCESS PASS",52,53,174,RED,10);} + if(s->page==BADGE_QR)contact_content(); + else if(identity.data&&portrait_layout) { + lv_obj_t *photo=lv_image_create(screen);lv_image_set_src(photo,&portrait_image);lv_obj_set_pos(photo,64,72); + lv_obj_t *details=lv_image_create(screen);lv_image_set_src(details,&identity);lv_obj_set_pos(details,14,213); + } else if(identity.data) { + for(unsigned i=0;ix,r->y);lv_image_set_pivot(v,0,0); + if(r->scale!=256)lv_image_set_scale(v,r->scale); + } + } else { + lv_obj_t *display_name=label(BADGE_DISPLAY_NAME,14,216,212,WHITE,14); + lv_label_set_long_mode(display_name,LV_LABEL_LONG_WRAP);lv_obj_set_height(display_name,30); + label("网络安全部",14,249,110,MUTED,14); + label("CREATIVE",139,251,87,RED,10); + unit_label=label("EMP.ID / NC------",14,269,212,MUTED,10); + } + } + if(s->page==BADGE_QR){ + lv_obj_t *hint=badge_footer_create(screen,s->qr_return==BADGE_HOME?BADGE_HINT_QR_HOME:BADGE_HINT_QR_MENU); + lv_obj_set_style_text_align(hint,LV_TEXT_ALIGN_CENTER,0); + }else{ + badge_footer_create(screen,BADGE_HINT_HOME); + } + } else if(s->page==BADGE_CARDS) { + label("BADGES",14,40,212,WHITE,28);label("选择è¦�显示的工牌",14,78,212,RED,14); + for(unsigned i=0;ibadge_count;i++) { + int y=BADGE_LIST_TOP+i*BADGE_LIST_STEP; + char number[8];snprintf(number,sizeof(number),"%u",i+1);label(number,24,y+11,20,MUTED,10); + if(badge_names[i].data) { + /* Keep all 32 source rows inside the border, including two-line + * names. A parent clip also bounds older, wider profile formats. */ + lv_obj_t *clip=lv_obj_create(screen);lv_obj_remove_style_all(clip); + lv_obj_set_pos(clip,BADGE_NAME_X,y+2);lv_obj_set_size(clip,BADGE_NAME_WIDTH,BADGE_NAME_HEIGHT); + lv_obj_remove_flag(clip,LV_OBJ_FLAG_SCROLLABLE|LV_OBJ_FLAG_OVERFLOW_VISIBLE); + lv_image_dsc_t *tile=make_list_name(i); + if(tile) { + lv_obj_t *name=lv_image_create(clip);lv_image_set_src(name,tile); + lv_obj_set_pos(name,0,badge_formats[i]==3?7:0); + }else label("已设置",BADGE_NAME_X,y+9,BADGE_NAME_WIDTH,MUTED,14); + }else label("未设置",BADGE_NAME_X,y+9,BADGE_NAME_WIDTH,MUTED,14); + if(i==s->active_badge)label("当å‰�",183,y+9,40,RED,14); + } + badge_footer_create(screen,BADGE_HINT_CARDS); + } else { + label(s->page==BADGE_TERMINAL?"TERMINAL":s->page==BADGE_GAMES?"SOFTWARE":s->page==BADGE_PROFILE?"PERSONNEL":s->page==BADGE_WIFI?"NETWORK":(s->page==BADGE_AI_SETTINGS||s->page==BADGE_AI_VOLUME_PAGE)?"XIAOZHI AI":s->page==BADGE_ABOUT_SETTINGS?"ABOUT":"SYSTEM",14,40,212,WHITE,28); + label(s->page==BADGE_TERMINAL?"员工终端":s->page==BADGE_GAMES?"å°�程åº�":s->page==BADGE_PROFILE?"工牌资料":s->page==BADGE_WIFI?"手机é…�ç½®":s->page==BADGE_SLEEP_SETTINGS?"自动æ�¯å±�":(s->page==BADGE_AI_SETTINGS||s->page==BADGE_AI_VOLUME_PAGE)?"å°�智 AI":s->page==BADGE_ABOUT_SETTINGS?"设备信æ�¯":"设备设置",14,81,212,RED,14); + if(s->page==BADGE_TERMINAL) { + static const char *names[]={"å°�程åº�","我的二维ç �","工牌资料","系统设置","返回工牌"}; + static const char *codes[]={"01 MINI APPS","02 MY QR CODE","03 EDIT PROFILE","04 CONFIGURATION","05 PERSONNEL ID"}; + for(unsigned i=0;i<5;i++) { + label(codes[i],30,104+i*36,177,s->home_selected==i?on_accent:MUTED,10); + label(names[i],30,118+i*36,174,s->home_selected==i?on_accent:WHITE,14); + } + + badge_footer_create(screen,BADGE_HINT_MENU); + } else if(s->page==BADGE_GAMES) { + char index[20];snprintf(index,sizeof(index),"%02u",(unsigned)(s->game_count?s->game_selected+1:0)); + label(index,27,122,57,RED,28); + label(category,89,122,127,MUTED,10); + label(name,89,143,127,WHITE,14); + label(description,27,213,189,MUTED,14); + char count[36];snprintf(count,sizeof(count),"%02u/%02u",(unsigned)(s->game_count?s->game_selected+1:0),(unsigned)s->game_count); + label(count,94,263,70,on_accent,14); + badge_footer_create(screen,BADGE_HINT_APPS); + } else if(s->page==BADGE_WIFI) { + setup_steps(); + } else if(s->page==BADGE_PROFILE) { + setup_steps(); + } else if(s->page==BADGE_SETTINGS){ + static const char *items[]={"å±�幕亮度","网络设置","å°�智 AI","自动æ�¯å±�","关于设备"}; + for(unsigned i=0;i<5;i++)label(items[i],29,113+i*30,187,s->settings_selected==i?RED:WHITE,14); + label("AI PASSPORT / SYSTEM",14,274,212,MUTED,10); + badge_footer_create(screen,BADGE_HINT_SETTINGS); + } else if(s->page==BADGE_SLEEP_SETTINGS){ + static const char *items[]={"ä¿�æŒ�常亮","30 ç§’","1 分钟","2 分钟","5 分钟"}; + for(unsigned i=0;i<5;i++){ + label(items[i],29,114+i*32,133,s->timeout_selected==i?RED:WHITE,14); + if(i==s->screen_timeout)label("当å‰�",175,114+i*32,42,MUTED,14); + } + health_label=label("自动æ�¯å±� · 对è¯�æ—¶ä¿�æŒ�亮å±�",14,276,212,MUTED,14); + badge_footer_create(screen,BADGE_HINT_SELECT); + } else if(s->page==BADGE_AI_SETTINGS){ + label("开始对è¯�",29,114,187,s->ai_selected==0?RED:WHITE,14); + label(s->ai_enabled?"å�Žå�°å”¤é†’ 已开å�¯":"å�Žå�°å”¤é†’ 已关闭",29,146,187,s->ai_selected==1?RED:WHITE,14); + char volume[48];snprintf(volume,sizeof(volume),"回å¤�音é‡� %u%%",s->ai_volume); + label(volume,29,178,187,s->ai_selected==2?RED:WHITE,14); + label("唤醒è¯�与状æ€�",29,210,187,s->ai_selected==3?RED:WHITE,14); + label(s->ai_style==3?"表情风格 公路之王":s->ai_style==2?"表情风格 女生头åƒ�":s->ai_style==1?"表情风格 男生头åƒ�":"表情风格 圆è�Œç²¾ç�µ",29,242,187,s->ai_selected==4?RED:WHITE,14); + label(ai_status,14,276,212,MUTED,14); + badge_footer_create(screen,BADGE_HINT_SELECT); + } else if(s->page==BADGE_AI_VOLUME_PAGE){ + label("å°�智回å¤�音é‡�",27,121,186,MUTED,14); + char v[16];snprintf(v,sizeof(v),"%u%%",s->ai_volume);label(v,27,145,180,WHITE,28); + label("仅调整å°�智,其他程åº�独立",14,236,212,MUTED,14); + badge_footer_create(screen,BADGE_HINT_VOLUME); + } else if(s->page==BADGE_ABOUT_SETTINGS){ + label("固件版本",27,119,86,MUTED,14); + label("V" BADGE_VERSION,27,137,174,WHITE,14); + label("硬件平å�°",27,162,86,MUTED,14); + label("ESP32-C3",27,180,174,WHITE,14); + label("存储容é‡�",27,205,86,MUTED,14); + label("8MB FLASH",27,223,174,WHITE,14); + label("AI PASSPORT",27,249,174,RED,14); + badge_footer_create(screen,BADGE_HINT_SELECT); + } else { + label("å±�幕亮度",27,122,109,MUTED,14); + char value[20];snprintf(value,sizeof(value),"%u%%",(s->brightness+1)*20); + label(value,135,127,83,WHITE,28); + label("BACKLIGHT / PWM",27,153,110,MUTED,10); + label("上/下 调整亮度",14,212,212,MUTED,14); + uptime_label=label("UPTIME 00:00:00",14,236,212,WHITE,10); + health_label=label("",14,263,212,RED,14); + badge_footer_create(screen,BADGE_HINT_BRIGHTNESS); + } + } + lv_anim_t a;lv_anim_init(&a);lv_anim_set_var(&a,screen);lv_anim_set_exec_cb(&a,scan); + lv_anim_set_values(&a,0,255);lv_anim_set_duration(&a,160);lv_anim_start(&a); + lv_obj_invalidate(screen); +} +void badge_ui_status(const char *unit,int battery,uint32_t seconds,bool storage,bool input) { + badge_header_battery(battery); + if(!screen) return; + if(unit_label) lv_label_set_text_fmt(unit_label,"EMP.ID / NC-%s",unit); + if(uptime_label) lv_label_set_text_fmt(uptime_label,"UPTIME %02lu:%02lu:%02lu",(unsigned long)(seconds/3600),(unsigned long)((seconds/60)%60),(unsigned long)(seconds%60)); + if(health_label) lv_label_set_text(health_label,!input?"按键ä¸�å�¯ç”¨":storage?(navigation.page==BADGE_SLEEP_SETTINGS?"对è¯�æ—¶ä¿�æŒ�亮å±�":"设置存储正常"):"设置未ä¿�å­˜"); +} + +void badge_ui_network(bool active,bool connected,const char *sta_ssid,const char *ap_ssid,const char *password,const char *ip,const char *message) { + (void)ip; + badge_header_network(connected); + if(!wifi_ssid)return; + lv_label_set_text(wifi_ssid,active?ap_ssid:"热点未开å�¯"); + if(active)lv_label_set_text_fmt(wifi_password,"密ç �:%s",password);else lv_label_set_text(wifi_password,"热点已关闭"); + lv_label_set_text(wifi_ip,"http://192.168.4.1"); + if(navigation.page==BADGE_WIFI) { + if(sta_ssid&&sta_ssid[0]) lv_label_set_text_fmt(wifi_message,"%s:%s",connected?"已连接":"等待连接",sta_ssid); + else lv_label_set_text(wifi_message,"未ä¿�å­˜ Wi-Fi"); + } else { + lv_label_set_text(wifi_message,(message&&message[0])?message:"å†�点 显示这张工牌"); + } + if(navigation.page==BADGE_HOME)lv_label_set_text(wifi_action,active?BADGE_HINT_SETUP_ON:BADGE_HINT_SETUP_OFF); + else lv_label_set_text(wifi_action,active?BADGE_HINT_AP_ON:BADGE_HINT_AP_OFF); +} diff --git a/main/badge_ui.h b/main/badge_ui.h new file mode 100644 index 0000000..816ef66 --- /dev/null +++ b/main/badge_ui.h @@ -0,0 +1,29 @@ +#pragma once +#include "badge_navigation.h" +#include +#include +/* LVGL lock required. This screen is retained only while in the badge shell. */ +void badge_ui_create(void); +void badge_ui_destroy(void); +void badge_ui_set_profile(const uint8_t *pixels); +void badge_ui_render(const badge_navigation_t *state, const char *game_name, + const char *description, const char *category); +void badge_ui_status(const char *unit, int battery, uint32_t uptime_seconds, bool storage, bool input); + +void badge_ui_set_custom(const uint8_t *brand,const uint8_t *logo,const uint8_t *qr,const uint32_t colors[5]); +void badge_ui_network(bool active,bool connected,const char *sta_ssid,const char *ap_ssid,const char *password,const char *ip,const char *message); + +void badge_ui_set_badges(const uint8_t *const *cards,unsigned count); +/* Top-layer chooser also works above games. NULL dismisses it. */ +void badge_ui_return_menu(const badge_return_menu_t *menu); + +void badge_ui_set_portrait(const uint8_t *pixels,const uint8_t *avatar); +void badge_ui_set_badge_formats(const unsigned versions[5]); + +void badge_ui_set_tactical(const uint8_t *pixels,const uint8_t *avatar); + +void badge_ui_ai_status(const char *text); +#ifdef BADGE_CONTROL_DEVICE_PROBE +unsigned badge_ui_probe_home_count(void); +unsigned badge_ui_probe_home_badge(void); +#endif diff --git a/main/demo_audio.c b/main/demo_audio.c index a0b56a8..fc70c3e 100644 --- a/main/demo_audio.c +++ b/main/demo_audio.c @@ -86,11 +86,7 @@ static void record_and_play(void) { size_t got = 0; while (got < total && !s_cancel) { size_t n = (total - got) < CHUNK_SAMPLES ? (total - got) : CHUNK_SAMPLES; - if (bsp_audio_read(rec + got, n * sizeof(int16_t)) != ESP_OK) { - free(rec); - if (!s_cancel) set_status("recording failed"); - return; - } + if (bsp_audio_read(rec + got, n * sizeof(int16_t)) != ESP_OK) break; got += n; } @@ -108,7 +104,7 @@ static void record_and_play(void) { played += n; } free(rec); - if (!s_cancel && got == total && played == total) set_status("done. OK: tone UP: record"); + if (!s_cancel && played == got) set_status("done. OK: tone UP: record"); } static void audio_task(void *arg) { @@ -120,11 +116,9 @@ static void audio_task(void *arg) { if (command == AUDIO_COMMAND_TONE) play_tone(); else if (command == AUDIO_COMMAND_RECORD) record_and_play(); } - // The lifecycle owner retains the handle until it receives this acknowledgement. - // No shared state or UI accesses are allowed after giving it. Stay alive so a - // timed-out stop can safely retry; only the owner deletes/replaces this task. - xSemaphoreGive(s_stopped); - for (;;) vTaskSuspend(NULL); + if (s_stopped) xSemaphoreGive(s_stopped); + s_task = NULL; + vTaskDelete(NULL); } void demo_audio_enter(void) { @@ -190,7 +184,6 @@ esp_err_t demo_audio_stop(void) { set_status("Audio stop timed out; retry"); return ESP_ERR_TIMEOUT; } - vTaskDelete(task); s_task = NULL; vSemaphoreDelete(s_stopped); s_stopped = NULL; diff --git a/main/demo_ble.c b/main/demo_ble.c index ced997d..2c1b3ca 100644 --- a/main/demo_ble.c +++ b/main/demo_ble.c @@ -6,12 +6,12 @@ #include "esp_log.h" #include "freertos/FreeRTOS.h" #include "freertos/semphr.h" -#include "freertos/task.h" #include "host/ble_gap.h" #include "host/ble_hs.h" #include "host/util/util.h" #include "lvgl.h" #include "nimble/nimble_port.h" +#include "nimble/nimble_port_freertos.h" #include "services/gap/ble_svc_gap.h" #include "services/gatt/ble_svc_gatt.h" #include @@ -32,12 +32,11 @@ static lv_obj_t *s_scr; static lv_obj_t *s_status; static lv_timer_t *s_timer; static SemaphoreHandle_t s_host_stopped; -static TaskHandle_t s_host_task; static volatile ble_demo_state_t s_state; static volatile int s_error; static uint8_t s_addr_type; static bool s_initialized; -static volatile bool s_start_requested; +static bool s_start_requested; static bool s_stop_in_progress; static bool s_host_done; @@ -96,10 +95,8 @@ static void host_task(void *arg) { (void)arg; nimble_port_run(); - // Do not use the port wrapper: it keeps a private task handle and ignores - // task-creation failure. This demo owns creation, acknowledgement and deletion. - xSemaphoreGive(s_host_stopped); - for (;;) vTaskSuspend(NULL); + if (s_host_stopped) xSemaphoreGive(s_host_stopped); + nimble_port_freertos_deinit(); } esp_err_t demo_ble_start(void) @@ -129,41 +126,31 @@ esp_err_t demo_ble_start(void) s_initialized = true; s_host_stopped = xSemaphoreCreateBinary(); if (!s_host_stopped) { - err = ESP_ERR_NO_MEM; - goto failed_start; + nimble_port_deinit(); + s_initialized = false; + s_error = ESP_ERR_NO_MEM; + s_state = BLE_DEMO_FAILED; + return ESP_ERR_NO_MEM; } ble_svc_gap_init(); ble_svc_gatt_init(); int rc = ble_svc_gap_device_name_set(DEVICE_NAME); if (rc != 0) { - ESP_LOGE(TAG, "NimBLE device name failed: %d", rc); - err = ESP_FAIL; - goto failed_start; + vSemaphoreDelete(s_host_stopped); + s_host_stopped = NULL; + nimble_port_deinit(); + s_initialized = false; + s_error = rc; + s_state = BLE_DEMO_FAILED; + return ESP_FAIL; } ble_hs_cfg.reset_cb = on_reset; ble_hs_cfg.sync_cb = on_sync; s_start_requested = true; - if (xTaskCreatePinnedToCore(host_task, "nimble_host", NIMBLE_HS_STACK_SIZE, - NULL, configMAX_PRIORITIES - 4, &s_host_task, - NIMBLE_CORE) != pdPASS) { - err = ESP_ERR_NO_MEM; - goto failed_start; - } + nimble_port_freertos_init(host_task); return ESP_OK; - -failed_start: - // No host task exists, so nimble_port_stop() would return BLE_HS_EALREADY. - // Directly deinitialize; retain ownership if cleanup itself needs a retry. - s_start_requested = false; - esp_err_t cleanup = demo_ble_stop(); - if (cleanup != ESP_OK) { - ESP_LOGE(TAG, "NimBLE startup cleanup failed: %s", esp_err_to_name(cleanup)); - } - s_error = err; - s_state = BLE_DEMO_FAILED; - return err; } esp_err_t demo_ble_stop(void) @@ -171,7 +158,7 @@ esp_err_t demo_ble_stop(void) s_start_requested = false; if (!s_initialized) return ESP_OK; - if (s_host_task && !s_stop_in_progress) { + if (!s_stop_in_progress) { (void)ble_gap_adv_stop(); int rc = nimble_port_stop(); if (rc != 0) { @@ -183,7 +170,7 @@ esp_err_t demo_ble_stop(void) s_stop_in_progress = true; } - if (s_host_task && !s_host_done) { + if (!s_host_done) { if (!s_host_stopped || xSemaphoreTake(s_host_stopped, pdMS_TO_TICKS(BLE_STOP_TIMEOUT_MS)) != pdTRUE) { ESP_LOGE(TAG, "等待 NimBLE host å�œæ­¢è¶…æ—¶"); @@ -194,11 +181,6 @@ esp_err_t demo_ble_stop(void) s_host_done = true; } - if (s_host_task) { - vTaskDelete(s_host_task); - s_host_task = NULL; - } - esp_err_t err = nimble_port_deinit(); if (err != ESP_OK) { ESP_LOGE(TAG, "nimble_port_deinit 失败: %s", esp_err_to_name(err)); diff --git a/main/demo_low_power.c b/main/demo_low_power.c index 0a8f945..32ce4f7 100644 --- a/main/demo_low_power.c +++ b/main/demo_low_power.c @@ -165,11 +165,9 @@ static void sleep_task(void *arg) s_busy = false; } s_busy = false; - // Acknowledge only after all shared-state/UI work. The lifecycle owner deletes - // the task, so retries never notify a stale handle and re-entry cannot race an - // old worker clearing the new worker's handle. - xSemaphoreGive(s_stopped); - for (;;) vTaskSuspend(NULL); + if (s_stopped) xSemaphoreGive(s_stopped); + s_task = NULL; + vTaskDelete(NULL); } void demo_low_power_enter(void) @@ -251,7 +249,6 @@ esp_err_t demo_low_power_stop(void) set_status("Sleep stop timed out; retry"); return ESP_ERR_TIMEOUT; } - vTaskDelete(task); s_task = NULL; vSemaphoreDelete(s_stopped); s_stopped = NULL; @@ -276,7 +273,7 @@ void demo_low_power_exit(void) void demo_low_power_key(bsp_btn_t btn, bsp_btn_ev_t ev) { - if (ev != BSP_BTN_CLICK || s_busy || s_stop_requested || !s_task) return; + if (ev != BSP_BTN_CLICK || s_busy || !s_task) return; if (btn == BSP_BTN_UP || btn == BSP_BTN_DOWN) { if (!bsp_lvgl_lock(250)) return; s_selected = (s_selected + 1) % 2; diff --git a/main/demo_wifi.c b/main/demo_wifi.c index 013a8ca..d0a89ce 100644 --- a/main/demo_wifi.c +++ b/main/demo_wifi.c @@ -64,27 +64,17 @@ static void wifi_stack_stop(void); esp_err_t demo_wifi_start(void) { - if (s_sta_netif || s_wifi_initialized) return ESP_ERR_INVALID_STATE; s_state = WIFI_DEMO_STARTING; esp_err_t err = demo_radio_nvs_prepare(); if (err != ESP_OK) goto fail; err = demo_radio_network_prepare(); if (err != ESP_OK) goto fail; - // The convenience creator asserts/aborts on allocation or handler failure. - // Use its checked steps so this optional demo can fail without rebooting. - esp_netif_config_t netif_cfg = ESP_NETIF_DEFAULT_WIFI_STA(); - s_sta_netif = esp_netif_new(&netif_cfg); + s_sta_netif = esp_netif_create_default_wifi_sta(); if (!s_sta_netif) { err = ESP_ERR_NO_MEM; goto fail; } - // attach records the netif even on failure; destroy_default_wifi below also - // clears that registration and any partially attached driver/handlers. - err = esp_netif_attach_wifi_station(s_sta_netif); - if (err != ESP_OK) goto fail; - err = esp_wifi_set_default_wifi_sta_handlers(); - if (err != ESP_OK) goto fail; wifi_init_config_t cfg = WIFI_INIT_CONFIG_DEFAULT(); err = esp_wifi_init(&cfg); diff --git a/main/font_badge_10.c b/main/font_badge_10.c new file mode 100644 index 0000000..67efa8f --- /dev/null +++ b/main/font_badge_10.c @@ -0,0 +1,405 @@ +/* Noto Sans SC, SIL OFL 1.1; generated by tools/generate_badge_fonts.py. */ +#include "lvgl.h" +static const uint8_t bitmap[]={ +0x3f,0x3,0xf0,0x3f,0x3,0xf0,0x3f,0x3,0xf0,0x1a,0x1,0xc0,0x3f,0x3f,0x2,0xe2,0xe0,0xc,0xc,0x0,0x0,0x0,0x0,0x0, +0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x2,0x81,0xa0,0x4,0x63,0x80,0x6f,0xff,0xf6,0x8,0x36,0x50,0x9,0x27,0x40,0x8f, +0xee,0xe2,0x1b,0x1b,0x20,0xb,0xb,0x0,0x0,0x30,0x0,0x0,0xf0,0x0,0x6,0xfe,0x50,0x1f,0x43,0x50,0x2f,0x30,0x0,0x9, +0xe6,0x0,0x0,0x5e,0x90,0x0,0x5,0xe0,0x27,0x17,0xd0,0x2a,0xfd,0x30,0x0,0xf0,0x0,0x8,0xe6,0x0,0x65,0x0,0x1,0xf6, +0xd0,0x1a,0x0,0x0,0x2f,0x3e,0x7,0x30,0x0,0x1,0xf5,0xd1,0x84,0xbb,0x20,0xa,0xf7,0x81,0xe3,0x6c,0x0,0x1,0x26,0x2f, +0x3,0xf0,0x0,0x7,0x0,0xf4,0x7d,0x0,0x3,0x30,0x6,0xed,0x30,0x0,0x8e,0x80,0x0,0x1,0xf6,0xe0,0x0,0x1,0xf9,0xa0, +0x0,0x0,0xff,0x10,0x40,0xa,0xde,0x23,0xd0,0x2f,0x17,0xdc,0x60,0x1f,0x51,0xff,0x50,0x6,0xee,0x95,0xc1,0x3f,0x2,0xe0, +0xc,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x71,0x3,0xc0,0x9,0x70,0xe,0x30,0x1f,0x10,0x3f,0x0,0x2f,0x10,0xf, +0x20,0xc,0x50,0x6,0xa0,0x0,0xd1,0x0,0x0,0x36,0x0,0x1d,0x10,0xa,0x60,0x6,0xb0,0x4,0xe0,0x3,0xf0,0x4,0xe0,0x5, +0xc0,0x8,0x80,0xd,0x30,0x4a,0x0,0x0,0x0,0x0,0xb0,0x4,0xce,0xc2,0x8,0xe5,0x0,0x72,0x60,0x0,0x0,0x0,0x0,0x0, +0x0,0x0,0x0,0x0,0x0,0x0,0x3f,0x0,0x0,0x3,0xf0,0x0,0x0,0x3f,0x0,0x3,0xee,0xfe,0xe0,0x1,0x4f,0x11,0x0,0x3, +0xf0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xc,0xd0,0x5,0xd0,0x2d,0x40,0x0,0x0,0x7e,0xe1,0x11,0x10,0x0,0x0,0x0,0x0, +0x1a,0x1,0xc0,0x0,0x38,0x0,0x74,0x0,0xb1,0x1,0xb0,0x4,0x80,0x8,0x40,0xc,0x0,0x1b,0x0,0x57,0x0,0x93,0x0,0x60, +0x0,0x2,0xce,0xa1,0xb,0x91,0xb8,0x1f,0x20,0x5d,0x2f,0x0,0x3f,0x2f,0x0,0x3e,0x1f,0x20,0x5d,0xb,0x91,0xb8,0x2,0xce, +0xa1,0x5,0xbf,0x0,0x4,0x8f,0x0,0x0,0x3f,0x0,0x0,0x3f,0x0,0x0,0x3f,0x0,0x0,0x3f,0x0,0x0,0x3f,0x0,0xf,0xff, +0xf0,0x5,0xee,0x40,0x9,0x28,0xc0,0x0,0x3,0xe0,0x0,0x6,0xc0,0x0,0xd,0x60,0x0,0x8b,0x0,0x5,0xd1,0x0,0xe,0xff, +0xff,0x1a,0xed,0x50,0x16,0x16,0xe0,0x0,0x7,0xc0,0x2,0xee,0x20,0x0,0x2a,0xa0,0x0,0x4,0xe0,0x56,0x18,0xc0,0x2b,0xec, +0x20,0x0,0xb,0xf0,0x0,0x4d,0xf0,0x0,0xc7,0xf0,0x5,0xb3,0xf0,0xc,0x33,0xf0,0x3f,0xef,0xfd,0x0,0x3,0xf0,0x0,0x3, +0xf0,0xf,0xff,0xf0,0xf,0x0,0x0,0xe,0x0,0x0,0xe,0xcb,0x30,0x5,0x29,0xd0,0x0,0x3,0xf0,0x54,0x19,0xc0,0x3b,0xec, +0x20,0x1,0x9e,0xd6,0x9,0xb2,0x34,0xe,0x30,0x0,0x2f,0x6d,0xc3,0x2f,0x82,0x9c,0xf,0x20,0x4f,0xa,0xa1,0x8b,0x1,0xae, +0xc2,0xf,0xff,0xff,0x0,0x0,0x88,0x0,0x1,0xd1,0x0,0x7,0x90,0x0,0xc,0x50,0x0,0xf,0x20,0x0,0x2f,0x10,0x0,0x2f, +0x0,0x6,0xee,0x40,0x2f,0x47,0xe0,0x1f,0x14,0xd0,0x6,0xc9,0x40,0xa,0x7d,0x60,0x2f,0x14,0xe0,0x1f,0x46,0xd0,0x6,0xee, +0x40,0x4,0xde,0x90,0xe,0x61,0xc7,0x2f,0x10,0x5d,0x1f,0x40,0x9e,0x7,0xfe,0x9e,0x0,0x0,0x7c,0x4,0x23,0xd6,0x8,0xed, +0x80,0x1c,0x1,0xa0,0x0,0x0,0x0,0x1a,0x1,0xc0,0x1d,0xb0,0x1b,0x90,0x0,0x0,0x0,0x0,0x0,0x0,0xa,0xe0,0x5,0xd0, +0x3d,0x40,0x0,0x0,0x0,0x0,0x4,0x0,0x1,0x7d,0xb0,0xa,0xd8,0x20,0x0,0xac,0x71,0x0,0x0,0x28,0xda,0x0,0x0,0x0, +0x50,0x0,0x0,0x0,0x0,0x9f,0xff,0xf5,0x0,0x0,0x0,0x0,0x0,0x0,0x9e,0xee,0xe4,0x11,0x11,0x10,0x0,0x0,0x0,0x4, +0x0,0x0,0x0,0xbd,0x71,0x0,0x0,0x28,0xda,0x0,0x1,0x7c,0xa0,0xa,0xd8,0x20,0x0,0x50,0x0,0x0,0x0,0x0,0x0,0x0, +0x8,0xed,0x50,0x16,0x17,0xe0,0x0,0x6,0xb0,0x0,0x4b,0x10,0x0,0xc1,0x0,0x0,0x40,0x0,0x1,0xa0,0x0,0x1,0xc0,0x0, +0x0,0x5,0xce,0xea,0x20,0x0,0x9,0xd5,0x12,0x9e,0x20,0x6,0xe2,0x0,0x0,0xba,0x0,0xd6,0x1b,0xcb,0x15,0xe0,0x1f,0x2b, +0x93,0xe0,0x3e,0x2,0xf2,0xf2,0x2b,0x5,0xc0,0x2f,0x4f,0x26,0xb0,0xc6,0x0,0xd7,0x8c,0x69,0xc7,0x0,0x5,0xf6,0x10,0x20, +0x0,0x0,0x5,0xdf,0xea,0x0,0x0,0x0,0x0,0x10,0x0,0x0,0x0,0x0,0xbe,0x0,0x0,0x1e,0xc4,0x0,0x5,0xb8,0x80,0x0, +0xa6,0x4d,0x0,0xe,0x20,0xe2,0x4,0xff,0xff,0x70,0x89,0x0,0x6b,0xd,0x50,0x2,0xf1,0x3f,0xfe,0xc5,0x3,0xf0,0x17,0xe0, +0x3f,0x0,0x6c,0x3,0xfe,0xef,0x30,0x3f,0x12,0x9c,0x3,0xf0,0x3,0xf0,0x3f,0x1,0x9c,0x3,0xff,0xfb,0x30,0x0,0x7e,0xe9, +0x0,0x7d,0x32,0x70,0xe,0x40,0x0,0x2,0xf1,0x0,0x0,0x2f,0x10,0x0,0x0,0xe4,0x0,0x0,0x7,0xc2,0x29,0x20,0x8,0xee, +0x90,0x3f,0xfd,0x70,0x3,0xf0,0x3d,0x60,0x3f,0x0,0x6c,0x3,0xf0,0x3,0xe0,0x3f,0x0,0x3e,0x3,0xf0,0x6,0xc0,0x3f,0x3, +0xd6,0x3,0xff,0xd7,0x0,0x3f,0xff,0xf3,0x3f,0x0,0x0,0x3f,0x0,0x0,0x3f,0xee,0xa0,0x3f,0x11,0x10,0x3f,0x0,0x0,0x3f, +0x0,0x0,0x3f,0xff,0xf5,0x3f,0xff,0xf3,0x3f,0x0,0x0,0x3f,0x0,0x0,0x3f,0x0,0x0,0x3f,0xee,0xa0,0x3f,0x11,0x10,0x3f, +0x0,0x0,0x3f,0x0,0x0,0x0,0x5d,0xfd,0x50,0x6,0xd4,0x15,0x60,0xe,0x50,0x0,0x0,0x2f,0x10,0x0,0x0,0x2f,0x10,0xbe, +0xe0,0xe,0x40,0x14,0xf0,0x7,0xd4,0x15,0xf0,0x0,0x6d,0xfc,0x70,0x3f,0x0,0x3f,0x3,0xf0,0x3,0xf0,0x3f,0x0,0x3f,0x3, +0xfe,0xee,0xf0,0x3f,0x11,0x4f,0x3,0xf0,0x3,0xf0,0x3f,0x0,0x3f,0x3,0xf0,0x3,0xf0,0x3f,0x3,0xf0,0x3f,0x3,0xf0,0x3f, +0x3,0xf0,0x3f,0x3,0xf0,0x0,0x3,0xf0,0x0,0x3,0xf0,0x0,0x3,0xf0,0x0,0x3,0xf0,0x0,0x3,0xf0,0x0,0x3,0xf0,0x19, +0x17,0xc0,0x9,0xed,0x40,0x3f,0x0,0x8b,0x3,0xf0,0x4e,0x20,0x3f,0x2e,0x40,0x3,0xfb,0xf2,0x0,0x3f,0xca,0x90,0x3,0xf2, +0x2e,0x20,0x3f,0x0,0x9a,0x3,0xf0,0x1,0xe3,0x3f,0x0,0x0,0x3f,0x0,0x0,0x3f,0x0,0x0,0x3f,0x0,0x0,0x3f,0x0,0x0, +0x3f,0x0,0x0,0x3f,0x11,0x10,0x3f,0xff,0xf2,0x3f,0x60,0x9,0xf0,0x3f,0xb0,0xd,0xf0,0x3e,0xc1,0x2c,0xf0,0x3f,0x85,0x78, +0xf0,0x3f,0x49,0xb4,0xf0,0x3f,0xc,0xb3,0xf0,0x3f,0xa,0x73,0xf0,0x3f,0x2,0x13,0xf0,0x3f,0x50,0x3f,0x3,0xfc,0x3,0xf0, +0x3e,0xb4,0x3f,0x3,0xe5,0xa3,0xf0,0x3f,0xd,0x5f,0x3,0xf0,0x6a,0xf0,0x3f,0x1,0xdf,0x3,0xf0,0x7,0xf0,0x0,0x9e,0xe7, +0x0,0x9,0xb2,0x3d,0x60,0xe,0x30,0x7,0xc0,0x2f,0x10,0x4,0xe0,0x2f,0x10,0x4,0xe0,0xe,0x40,0x7,0xc0,0x8,0xc2,0x3d, +0x50,0x0,0x9e,0xe7,0x0,0x3f,0xfe,0xb3,0x3,0xf0,0x19,0xc0,0x3f,0x0,0x3f,0x3,0xf0,0x8,0xc0,0x3f,0xee,0xc3,0x3,0xf1, +0x10,0x0,0x3f,0x0,0x0,0x3,0xf0,0x0,0x0,0x0,0x9e,0xe7,0x0,0x9,0xb2,0x3d,0x60,0xe,0x30,0x6,0xc0,0x2f,0x10,0x4, +0xe0,0x2f,0x10,0x4,0xe0,0xe,0x40,0x7,0xc0,0x8,0xb2,0x3d,0x50,0x0,0x9f,0xf7,0x0,0x0,0x5,0xd2,0x0,0x0,0x0,0x7e, +0xe2,0x0,0x0,0x0,0x10,0x3f,0xfe,0xc3,0x3,0xf0,0x19,0xc0,0x3f,0x0,0x3f,0x3,0xf0,0x8,0xc0,0x3f,0xef,0xf3,0x3,0xf1, +0x9c,0x0,0x3f,0x1,0xe6,0x3,0xf0,0x6,0xe1,0x4,0xde,0xc4,0x1,0xf4,0x15,0x50,0x1f,0x40,0x0,0x0,0x8f,0xb4,0x0,0x0, +0x39,0xf8,0x0,0x0,0x5,0xe0,0x3a,0x31,0x8c,0x1,0x8e,0xfb,0x20,0xf,0xff,0xff,0x0,0x3,0xf0,0x0,0x0,0x3f,0x0,0x0, +0x3,0xf0,0x0,0x0,0x3f,0x0,0x0,0x3,0xf0,0x0,0x0,0x3f,0x0,0x0,0x3,0xf0,0x0,0x3f,0x0,0x3f,0x3,0xf0,0x3,0xf0, +0x3f,0x0,0x3f,0x3,0xf0,0x3,0xf0,0x3f,0x0,0x3f,0x2,0xf1,0x4,0xe0,0xc,0x81,0xa9,0x0,0x3c,0xeb,0x10,0xd,0x50,0x5, +0xc0,0x99,0x0,0x98,0x4,0xd0,0xd,0x40,0x1f,0x22,0xe0,0x0,0xb6,0x6a,0x0,0x6,0xaa,0x60,0x0,0x2d,0xe1,0x0,0x0,0xdc, +0x0,0xa8,0x2,0xf2,0x7,0x97,0xa0,0x5f,0x50,0xa6,0x5d,0x9,0xa9,0xc,0x42,0xf0,0xc4,0xc0,0xf1,0xe,0x3d,0xe,0x3d,0x0, +0xb8,0xa0,0xb8,0xb0,0x8,0xd7,0x8,0xd8,0x0,0x6f,0x30,0x4f,0x50,0x7c,0x0,0xc6,0x1e,0x44,0xd0,0x7,0xba,0x60,0x0,0xed, +0x0,0x1,0xee,0x10,0x9,0x8a,0x80,0x2e,0x23,0xe1,0x99,0x0,0xb8,0x3e,0x10,0x3e,0x10,0xb7,0x9,0x80,0x4,0xd1,0xe2,0x0, +0xd,0xaa,0x0,0x0,0x6f,0x30,0x0,0x3,0xf0,0x0,0x0,0x3f,0x0,0x0,0x3,0xf0,0x0,0xf,0xff,0xff,0x0,0x0,0xc,0x80, +0x0,0x5,0xd1,0x0,0x0,0xd4,0x0,0x0,0x7a,0x0,0x0,0x1d,0x20,0x0,0x8,0x70,0x0,0x0,0xff,0xff,0xf0,0x3f,0xf4,0x3f, +0x0,0x3f,0x0,0x3f,0x0,0x3f,0x0,0x3f,0x0,0x3f,0x0,0x3f,0x0,0x3f,0x0,0x3f,0x0,0x3f,0xe3,0x1,0x10,0xa2,0x0,0x66, +0x0,0x2a,0x0,0xc,0x0,0x9,0x30,0x5,0x70,0x1,0xb0,0x0,0xb0,0x0,0x84,0x0,0x48,0x0,0x15,0x7f,0xf0,0x3,0xf0,0x3, +0xf0,0x3,0xf0,0x3,0xf0,0x3,0xf0,0x3,0xf0,0x3,0xf0,0x3,0xf0,0x3,0xf0,0x6e,0xf0,0x11,0x10,0x0,0x63,0x0,0x1,0xdb, +0x0,0x6,0x8c,0x20,0xc,0x27,0x70,0x3c,0x2,0xd0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xce,0xee, +0xe7,0x11,0x11,0x11,0x1,0x20,0x0,0x6,0xd1,0x0,0x0,0x88,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, +0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x7,0xde,0x50,0x5,0x26,0xd0,0x1,0x7b,0xf0,0xd,0x74,0xf0,0x2f,0x37, +0xf0,0xa,0xe7,0xf0,0x3f,0x0,0x0,0x3,0xf0,0x0,0x0,0x3f,0x8e,0xc3,0x3,0xf5,0x1a,0xb0,0x3f,0x0,0x4f,0x3,0xf0,0x4, +0xe0,0x3f,0x41,0xba,0x3,0xda,0xeb,0x10,0x2,0xbe,0xb0,0xc,0x91,0x30,0x2f,0x10,0x0,0x2f,0x10,0x0,0xd,0x91,0x40,0x3, +0xce,0xb1,0x0,0x0,0x3f,0x0,0x0,0x3,0xf0,0x3,0xce,0xaf,0x0,0xd9,0x16,0xf0,0x2f,0x10,0x3f,0x2,0xf1,0x3,0xf0,0xd, +0x81,0x8f,0x0,0x4d,0xe8,0xf0,0x8,0xed,0x40,0x5a,0x17,0xc0,0x9e,0xee,0xf0,0xa8,0x11,0x10,0x5d,0x22,0x30,0x8,0xed,0x60, +0x9,0xe6,0x2f,0x30,0xff,0xf2,0x3f,0x0,0x3f,0x0,0x3f,0x0,0x3f,0x0,0x3f,0x0,0x7,0xef,0xfd,0x2,0xf4,0x6e,0x0,0x1e, +0x25,0xe0,0x0,0x5e,0xe6,0x0,0xb,0x20,0x0,0x0,0x8f,0xfe,0x90,0x1f,0x31,0x7e,0x0,0xae,0xec,0x40,0x3f,0x0,0x0,0x3f, +0x0,0x0,0x3f,0x8e,0x70,0x3f,0x56,0xe0,0x3f,0x3,0xf0,0x3f,0x3,0xf0,0x3f,0x3,0xf0,0x3f,0x3,0xf0,0x0,0x1,0xc0,0x0, +0x3,0xf0,0x3f,0x3,0xf0,0x3f,0x3,0xf0,0x3f,0x0,0x0,0x0,0x1,0xc0,0x0,0x0,0x3,0xf0,0x3,0xf0,0x3,0xf0,0x3,0xf0, +0x3,0xf0,0x3,0xf0,0x5,0xe0,0x6e,0x70,0x3f,0x0,0x0,0x3f,0x0,0x0,0x3f,0x3,0xe2,0x3f,0x1d,0x50,0x3f,0xab,0x0,0x3f, +0xbe,0x30,0x3f,0x16,0xc0,0x3f,0x0,0xd5,0x3f,0x3,0xf0,0x3f,0x3,0xf0,0x3f,0x3,0xf0,0x3f,0x11,0xd8,0x3d,0x9e,0x79,0xe7, +0x3,0xf5,0x6f,0x56,0xe0,0x3f,0x3,0xf0,0x3f,0x3,0xf0,0x3f,0x3,0xf0,0x3f,0x3,0xf0,0x3f,0x3,0xf0,0x3f,0x3,0xf0,0x3d, +0x9e,0x70,0x3f,0x56,0xe0,0x3f,0x3,0xf0,0x3f,0x3,0xf0,0x3f,0x3,0xf0,0x3f,0x3,0xf0,0x3,0xce,0xa1,0x0,0xd8,0x2a,0x90, +0x2f,0x10,0x4e,0x2,0xf1,0x4,0xe0,0xd,0x81,0xaa,0x0,0x2c,0xfb,0x10,0x3d,0x9e,0xc2,0x3,0xf5,0x1a,0xb0,0x3f,0x0,0x4f, +0x3,0xf0,0x4,0xe0,0x3f,0x41,0xba,0x3,0xfa,0xeb,0x10,0x3f,0x0,0x0,0x3,0xf0,0x0,0x0,0x3,0xce,0x9f,0x0,0xd9,0x16, +0xf0,0x2f,0x10,0x3f,0x2,0xf1,0x3,0xf0,0xd,0x81,0x8f,0x0,0x4d,0xe9,0xf0,0x0,0x0,0x3f,0x0,0x0,0x3,0xf0,0x0,0x0, +0x3,0xc8,0xe0,0x3f,0x81,0x3,0xf0,0x0,0x3f,0x0,0x3,0xf0,0x0,0x3f,0x0,0x0,0x3d,0xe7,0x9,0x62,0x30,0x5c,0x50,0x0, +0x2b,0xa0,0x62,0x6e,0x7,0xdd,0x60,0x7,0x0,0x1f,0x0,0xef,0xf6,0x3f,0x0,0x3f,0x0,0x3f,0x0,0x2f,0x30,0x9,0xf7,0x3f, +0x3,0xf0,0x3f,0x3,0xf0,0x3f,0x3,0xf0,0x3f,0x3,0xf0,0x1f,0x48,0xf0,0xa,0xe6,0xf0,0xb7,0x0,0xe2,0x6b,0x4,0xd0,0x1e, +0x18,0x80,0xb,0x5c,0x30,0x6,0xad,0x0,0x2,0xf9,0x0,0x98,0x7,0xc0,0x3d,0x5,0xc0,0xbd,0x16,0xa0,0x2f,0x1c,0x95,0x96, +0x0,0xd6,0xa6,0x8c,0x30,0x9,0xc7,0x2c,0xe0,0x0,0x6f,0x30,0xeb,0x0,0x7c,0x7,0xb0,0xd,0x6d,0x30,0x4,0xf9,0x0,0x6, +0xe9,0x0,0x1e,0x3e,0x30,0x89,0x7,0xc0,0xa7,0x0,0xe2,0x4c,0x4,0xc0,0xd,0x39,0x70,0x7,0x8d,0x20,0x2,0xec,0x0,0x0, +0xc7,0x0,0x3,0xe1,0x0,0x7e,0x50,0x0,0xb,0xff,0xf0,0x0,0xa,0x70,0x0,0x4d,0x0,0x0,0xd4,0x0,0x8,0xa0,0x0,0xf, +0xff,0xf1,0x0,0xbe,0x2,0xf2,0x3,0xf0,0x2,0xf0,0x3,0xe0,0x1f,0x70,0x6,0xe0,0x2,0xf0,0x2,0xf0,0x3,0xf1,0x1,0xde, +0x0,0x1,0x3f,0x3,0xf0,0x3f,0x3,0xf0,0x3f,0x3,0xf0,0x3f,0x3,0xf0,0x3f,0x3,0xf0,0x3f,0x3,0xf0,0x2f,0x90,0x5,0xf0, +0x3,0xf0,0x3,0xe0,0x2,0xe1,0x0,0xbd,0x2,0xf3,0x3,0xe0,0x3,0xe0,0x4,0xf0,0x2f,0xb0,0x1,0x0,0x2c,0xa1,0x41,0x54, +0x6e,0xc1,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x4,0xf0,0x0,0x0,0x0,0x4,0xf0,0x0,0x0,0x0,0x4,0xf0, +0x0,0x0,0x0,0x4,0xfe,0xee,0x90,0x0,0x4,0xf0,0x0,0x0,0x0,0x4,0xf0,0x0,0x0,0x0,0x4,0xf0,0x0,0x0,0xbb,0xbf, +0xfb,0xbb,0xb4,0x67,0x77,0x77,0x77,0x72,0x9c,0xcc,0xcc,0xcc,0xc2,0x8b,0xbb,0xfb,0xbb,0xb2,0x0,0x0,0xf0,0x0,0x0,0x0, +0x0,0xf9,0x20,0x0,0x0,0x0,0xf6,0xe9,0x10,0x0,0x0,0xf0,0x1a,0x60,0x0,0x0,0xf0,0x0,0x0,0x0,0x0,0xf0,0x0,0x0, +0x0,0x0,0xf0,0x0,0x0,0x0,0x0,0x65,0x0,0x0,0xbc,0xcc,0xff,0xcc,0xc0,0x2,0x77,0x77,0x76,0x0,0x3,0xe4,0x44,0x4c, +0x0,0x3,0xcb,0xbb,0xba,0x0,0x9a,0x88,0x88,0x88,0xa0,0xb5,0x1f,0xcc,0xf1,0xc0,0x10,0x4b,0x0,0xe1,0x20,0x1,0xc6,0x0, +0xe1,0xa0,0x8d,0x70,0x0,0xbd,0xa0,0x10,0x0,0x0,0x0,0x0,0x0,0x9,0x20,0x1b,0x0,0x0,0x3,0xda,0xcc,0xfc,0xb0,0x0, +0xf6,0x1b,0xbb,0xb2,0x0,0x6f,0x1,0xe3,0x33,0x30,0xd,0xf0,0x9,0x99,0x92,0x0,0x2d,0xc,0xcc,0xcc,0xc0,0x0,0xd0,0xb4, +0x55,0x5f,0x0,0xd,0x0,0xab,0xfb,0x80,0x0,0xd0,0x0,0xe,0x0,0x0,0xd,0x0,0x4c,0xb0,0x0,0x0,0x0,0x0,0x0,0x0, +0x0,0x0,0x1,0x0,0x0,0x0,0x0,0xd,0x50,0x0,0x0,0x0,0x3,0xe3,0x0,0x0,0x0,0x0,0xff,0x0,0x0,0x0,0x0,0xee, +0x60,0x0,0x0,0x6,0xc3,0xd0,0x0,0x0,0x1d,0x40,0xa8,0x0,0x0,0xba,0x0,0x2e,0x50,0x2c,0xb1,0x0,0x5,0xf6,0x28,0x0, +0x0,0x0,0x34,0x0,0x2,0x0,0x3,0x10,0x0,0x2,0xd1,0x1,0xe2,0x0,0x2,0x5c,0x75,0xdd,0x51,0x0,0x4b,0xbc,0xfc,0xcb, +0x30,0x0,0x0,0x1f,0x0,0x0,0x0,0xde,0xef,0xff,0xee,0xb0,0x0,0x0,0x8f,0x90,0x0,0x0,0x0,0x6e,0x3c,0x90,0x0,0x6, +0xcd,0x30,0x1b,0xd7,0x0,0x75,0x0,0x0,0x4,0x50,0xb,0xff,0xff,0xff,0xfc,0x0,0x0,0xf,0x0,0x0,0xa,0xfd,0xdf,0xdf, +0x90,0xa,0xf4,0x4f,0x4f,0x90,0xa,0xf6,0x6f,0x6f,0x90,0x9f,0xfb,0xbf,0xbf,0xf9,0x7f,0xf8,0x88,0x8f,0xf6,0xa,0xb0,0x0, +0xb,0x90,0xa,0xb0,0x0,0x9e,0x60,0x0,0x0,0x0,0x0,0x0,0x0,0xe0,0x36,0x66,0x6b,0x20,0xe,0x5,0xbf,0xcb,0xf4,0x1, +0xf7,0x60,0xe0,0xf,0x41,0xcf,0x63,0xe,0x0,0xf3,0x0,0xe0,0x2,0xc0,0x1f,0x30,0xe,0x14,0x59,0x2,0xf2,0x2,0xfd,0x6b, +0x50,0x3f,0x10,0x2a,0x6,0xc0,0x6,0xe0,0x0,0x2,0xd2,0x2e,0xe7,0x0,0x0,0x0,0x0,0x0,0x0,0x1d,0xdd,0xa0,0xe0,0x0, +0x0,0x0,0x13,0xf3,0x51,0x0,0x0,0x3f,0xff,0xf6,0x6e,0xfd,0xd0,0xe0,0xb6,0x4,0xa2,0x11,0xc0,0xb5,0x8,0x64,0x73,0xa0, +0xc4,0xf,0x7a,0xf7,0x60,0xd3,0x4f,0x73,0x5c,0x11,0xf2,0x0,0x0,0x46,0x8e,0xb0,0x0,0x0,0x0,0x0,0x0,0x0,0x30,0x0, +0x31,0x0,0x0,0xb5,0x1,0xd1,0x0,0xa,0xdd,0xff,0xfb,0x0,0xe,0x11,0xf1,0x1f,0x0,0xe,0xcc,0xfc,0xcf,0x0,0xe,0x66, +0xf6,0x6f,0x0,0x5,0x55,0xf5,0x55,0x0,0xdd,0xdd,0xfd,0xdd,0xd1,0x0,0x0,0xf0,0x0,0x0,0x0,0x0,0xf0,0x0,0x0,0xff, +0xff,0xf6,0x66,0xb2,0x4f,0xc,0x7e,0xc9,0xf5,0x4f,0xcf,0x46,0x82,0xf2,0x4f,0xc,0x43,0xb6,0xe0,0x4f,0xcf,0x40,0xdc,0x90, +0x4f,0xc,0x40,0xaf,0x30,0x9f,0xaf,0xf1,0xbf,0x20,0x87,0x4d,0x46,0xd7,0xc2,0x0,0xc,0x5c,0x20,0x67,0x0,0x0,0x0,0x0, +0x0,0x0,0x4,0xa0,0x0,0x0,0x0,0x1d,0x30,0xa2,0x0,0x1,0xc5,0x0,0x5d,0x20,0xf,0xfc,0xdd,0xdf,0xf1,0x4,0x21,0x0, +0x0,0x62,0x6,0xee,0xee,0xee,0x60,0x6,0xc0,0x0,0xd,0x60,0x6,0xc0,0x0,0xd,0x60,0x6,0xfe,0xee,0xef,0x60,0x6,0xc0, +0x0,0xd,0x60,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x22,0x0,0x0,0x0,0x0,0x5c,0x0,0x0,0x6,0xfd,0xef,0xdd,0xf0,0x6, +0xc0,0x0,0x0,0xf0,0x6,0xfd,0xdd,0xdd,0xe0,0x6,0xb0,0x0,0x0,0x0,0x8,0xdf,0xdd,0xdd,0xf3,0xc,0xac,0x0,0x0,0xc3, +0x4f,0x5f,0xdd,0xdd,0xf3,0x39,0x3c,0x0,0x0,0xc3,0x0,0x0,0x0,0x0,0x0,0x6f,0xff,0xff,0xff,0xf5,0x6e,0x0,0x0,0x0, +0xd5,0x6e,0xc,0xcc,0xc0,0xd5,0x6e,0xd,0x0,0xe0,0xd5,0x6e,0xd,0x0,0xe0,0xd5,0x6e,0xf,0xcc,0xe0,0xd5,0x6e,0x0,0x0, +0x0,0xd5,0x6f,0xdd,0xdd,0xdd,0xf5,0x6e,0x0,0x0,0x0,0xd5,0x0,0x0,0x0,0x0,0x0,0x0,0x9c,0xcf,0xfc,0xcc,0x20,0x2, +0x66,0xf9,0x66,0x40,0x0,0x26,0x7f,0x66,0x64,0x0,0xc,0xcf,0xfc,0xfd,0xcc,0x0,0x7,0xf8,0x8b,0xc4,0x0,0x1b,0x94,0xbb, +0x43,0xcb,0x10,0x5c,0xcf,0xfc,0xc6,0x20,0x0,0x3b,0x95,0xd9,0x20,0x0,0x6a,0x40,0x0,0x6b,0x10,0x0,0x0,0x0,0x0,0x0, +0x0,0x67,0x0,0xb,0x20,0x0,0x8,0x50,0x3,0xc3,0x40,0x8,0xff,0xf5,0xb4,0x2d,0x20,0xd,0x2f,0xff,0xdd,0xff,0x3,0xc5, +0xf4,0x21,0x0,0x50,0x4f,0xfc,0x6f,0xdd,0xf7,0x0,0x4f,0xf8,0xe0,0xb,0x70,0x5e,0xa2,0x7f,0xcc,0xf7,0x4,0xa0,0x6,0xe0, +0xb,0x70,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1,0x20,0x0,0x0,0x0,0x5,0x90,0x0,0x0,0xe,0xef,0xfe,0xee,0xeb,0x0, +0x4b,0x0,0x0,0x0,0x1,0xe2,0xad,0xdf,0xf2,0x1c,0xf0,0x0,0xdb,0x10,0x17,0xc8,0xdd,0xff,0xd8,0x0,0xc0,0x0,0xc4,0x0, +0x0,0xc0,0x0,0xc4,0x0,0x0,0xc0,0x4d,0xd2,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xf,0x0,0x0,0x0,0x0,0x0,0xf0, +0x0,0x0,0x0,0x73,0xf,0x4,0x60,0x0,0xe,0x20,0xf0,0x2e,0x10,0x4,0xc0,0xf,0x0,0xa7,0x0,0xb6,0x0,0xf0,0x4,0xd0, +0x19,0x0,0xf,0x0,0xc,0x20,0x0,0x1,0xf0,0x0,0x0,0x0,0xb,0xeb,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x37,0x77, +0x77,0x77,0x40,0x5c,0xcc,0xfd,0xcc,0x70,0x0,0x0,0xf1,0x0,0x0,0x0,0x0,0xf1,0x0,0x0,0x0,0x0,0xf1,0x0,0x0,0x0, +0x0,0xf1,0x0,0x0,0x0,0x0,0xf1,0x0,0x0,0xef,0xff,0xff,0xff,0xf2,0x45,0x55,0x55,0x55,0x50,0x0,0x0,0x3,0x30,0x0, +0x0,0x1a,0x66,0xaf,0x66,0x63,0x3,0xf8,0x88,0x88,0x88,0x40,0x3f,0x6c,0xcc,0xef,0x50,0x3,0xf0,0x48,0x5d,0x70,0x0,0x3f, +0x45,0xbf,0xc5,0x71,0x5,0xea,0xbb,0xfd,0xdf,0x20,0x7b,0x0,0xe,0xb,0x80,0xa,0x70,0x0,0xe0,0x0,0x0,0xb1,0x9,0xdb, +0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1,0x90,0x0,0x0,0x2f,0xbb,0xbf,0xcb,0xb4,0x3,0xf3,0x3a,0x33,0xb3, +0x10,0x3f,0x7c,0xfc,0xcf,0xc6,0x3,0xf0,0xe,0x11,0xe0,0x0,0x4f,0x0,0xaa,0xa9,0x0,0x5,0xd6,0xcd,0xcc,0xf9,0x0,0x7a, +0x3,0xb2,0x6d,0x20,0xb,0x63,0x5b,0xff,0x73,0x10,0x80,0x88,0x51,0x27,0xa4,0xf,0xff,0xff,0xff,0xfd,0x0,0x0,0xf0,0x0, +0xf0,0x0,0x0,0xf,0x0,0xf,0x0,0x0,0x0,0xe0,0x0,0xf0,0x0,0x5d,0xff,0xdd,0xdf,0xdd,0x20,0x4,0xb0,0x0,0xf0,0x0, +0x0,0xb7,0x0,0xf,0x0,0x0,0x6d,0x10,0x0,0xf0,0x0,0x1c,0x30,0x0,0xf,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x2,0x87, +0xcc,0xfc,0xc4,0x9,0xe6,0x77,0xf7,0x70,0x2c,0x8b,0xbb,0xfb,0xb7,0x4a,0x87,0x77,0x77,0x75,0x14,0x86,0xfc,0xcc,0xf8,0x2, +0x86,0xf8,0x88,0xf8,0x2,0x86,0xfb,0xbb,0xf8,0x2,0x86,0xf0,0x0,0xe8,0x2,0x86,0xf0,0xb,0xe5,0x0,0xe0,0x69,0x9f,0x97, +0x6e,0xfe,0x30,0xf,0x0,0x0,0xe0,0x0,0xf,0x0,0x0,0xf4,0x20,0xf,0x0,0x3a,0xfc,0x20,0xf,0x0,0x37,0xf0,0x0,0xf, +0x0,0x0,0xe0,0x0,0xf,0x0,0x0,0xe0,0x0,0xf,0x0,0x1d,0xb0,0xa,0xfb,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xe0,0x1f, +0xdf,0x70,0x4,0xdf,0xd4,0xd0,0xb7,0x0,0x0,0xe2,0xc8,0xa,0xeb,0x0,0xe,0x18,0x0,0x14,0x30,0x16,0xfb,0xfe,0xdd,0xf4, +0x3,0x9f,0x6,0x90,0x4d,0x0,0x0,0xe0,0xb,0xbd,0x30,0x0,0xe,0x2,0x9f,0xf5,0x0,0x1d,0xb9,0xc6,0x5,0xbb,0x0,0x0, +0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xe0,0xff,0xce,0xf0,0x3d,0xfd,0x1c,0x4b,0x40,0x0,0xe0,0x8,0xfb,0x10, +0x0,0xe5,0xd9,0x48,0xe6,0x29,0xf8,0x66,0xf6,0x51,0x14,0xe0,0x56,0xf6,0x50,0x0,0xe5,0xcc,0xfc,0xc7,0x0,0xe0,0x0,0xe0, +0x0,0xc,0xb0,0x0,0xe0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xe,0x4,0x4c,0xb4,0x40,0x4d,0xfd, +0xc4,0x83,0x3e,0x0,0xe,0xa,0x2d,0x0,0xb0,0x0,0xe1,0x8f,0xf8,0x98,0x0,0xf,0x9c,0xff,0xcf,0xc1,0x4d,0xf9,0x4f,0x5, +0xb0,0x1,0x2e,0x5,0xfb,0xf3,0x0,0x0,0xe0,0x5,0xff,0x91,0x0,0xcb,0xc,0x93,0x7,0xa0,0x0,0x0,0x0,0x0,0x0,0x0, +0x0,0x0,0x0,0x10,0x0,0x0,0xe,0x0,0x6f,0xe9,0x0,0xc,0xfa,0x9f,0x9a,0xc0,0x0,0xe,0x6,0xff,0xff,0x0,0x0,0xe0, +0xe,0xe,0xe0,0x0,0x3f,0xc5,0xe1,0xde,0x0,0x1e,0xf2,0xaf,0xff,0xfa,0x0,0xe,0x3,0x6f,0xf5,0x30,0x0,0xe0,0x3c,0x75, +0xa1,0x0,0xac,0x3d,0x60,0x7,0x80,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x2,0x0,0x0,0xc,0x8,0x4c,0x7e,0xf1,0xaf, +0xbb,0xfe,0x94,0xb0,0xc,0x0,0xc1,0x78,0x70,0xd,0x30,0xc1,0x78,0x60,0x8f,0xad,0xfd,0xb4,0xc0,0x3d,0x1,0xf3,0x74,0xc0, +0xc,0x6,0xbd,0x8b,0xb0,0xc,0x1d,0x29,0xb4,0x0,0x7c,0x56,0x0,0x74,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1,0x34, +0x72,0x0,0xd2,0xcd,0xec,0xa4,0x18,0xf7,0x1e,0x75,0xc1,0x16,0xfc,0xcd,0xff,0xf6,0x0,0xd1,0x1a,0x9a,0x70,0x16,0xfe,0xb6, +0x88,0x89,0x39,0xf0,0x8e,0xff,0xea,0x0,0xd0,0x8f,0xcb,0xfa,0x0,0xd0,0x8f,0xff,0xfa,0xc,0xb0,0x8f,0x44,0xfa,0x1,0x0, +0x1,0x0,0x0,0x0,0x41,0x0,0x61,0x0,0x0,0x66,0x2,0xe0,0x0,0x8f,0xfd,0xd8,0xfa,0xb8,0x8,0xb0,0xe,0xf3,0xf3,0x8, +0xff,0xbf,0xd1,0xc0,0x9,0xb5,0x86,0xc7,0x80,0xa,0x95,0x60,0x7f,0x30,0xd,0x76,0x60,0x6f,0x10,0x4e,0x17,0x54,0xd9,0xc1, +0x95,0x7d,0x3d,0x30,0x79,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x11,0x88,0x13,0xf0,0x0,0x99,0xbc,0x94,0xfb, +0xb0,0x1f,0xbb,0xc3,0xf0,0x0,0x1d,0x88,0xff,0xfb,0xf0,0x8b,0xbb,0xfa,0x55,0x90,0xa6,0xa7,0x85,0xa9,0x40,0xa6,0x89,0x84, +0xbf,0x0,0xa6,0xfb,0x85,0xce,0x30,0xa5,0x26,0xdb,0x32,0xb0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x42,0x7d,0x7c, +0x67,0xfc,0x94,0x7c,0x9c,0xa5,0xc0,0x0,0x7e,0x9f,0x98,0xf4,0x43,0x7d,0x3f,0x46,0xfe,0xfc,0x7c,0x7f,0xa6,0xb0,0xd0,0x7d, +0x8c,0x38,0xa0,0xd0,0x7c,0x9,0x8,0x80,0xd0,0x6f,0xcc,0xce,0x40,0xd0,0x0,0x0,0x9,0x0,0xd0,0x0,0x0,0x0,0x0,0x0, +0x6,0x10,0x0,0x0,0x0,0x1f,0xff,0x9b,0xcc,0xc3,0x57,0xc9,0x2d,0x11,0xb4,0x5a,0xff,0xae,0x0,0xa4,0x7,0xfc,0x7d,0xdd, +0xe4,0x5b,0x66,0x85,0x55,0x20,0x5,0xf6,0x66,0x6f,0x60,0x5,0xfc,0xcc,0xcf,0x60,0x5,0xf0,0x0,0xf,0x60,0x5,0xfc,0xcc, +0xcf,0x60,0x0,0x0,0x0,0x0,0x0,0x0,0x50,0x0,0x1,0x40,0x8f,0xfc,0xc8,0xfb,0x91,0x1c,0x36,0x6,0x61,0x11,0x8f,0xff, +0xc9,0xff,0xf6,0x36,0xaf,0x9a,0x28,0x80,0x46,0x7b,0x2b,0x8,0x80,0x5,0xec,0xcc,0xcf,0x60,0x5,0xd7,0x77,0x7f,0x60,0x5, +0xb4,0x44,0x4f,0x60,0x5,0xfc,0xcc,0xcf,0x60,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x4f,0x0,0x0,0x0,0x0,0x4f,0x0,0x0, +0x0,0xf0,0x4f,0x0,0x0,0x0,0xf0,0x4f,0xee,0xe2,0x0,0xf0,0x4f,0x0,0x0,0x0,0xf0,0x4f,0x0,0x0,0x0,0xf0,0x4f,0x0, +0x0,0x4b,0xfb,0xff,0xbb,0xb7,0x27,0x77,0x77,0x77,0x74,0x2a,0x45,0x50,0xf0,0x85,0x1,0x52,0xd2,0xf3,0xc1,0x74,0x5,0xbb, +0xfb,0xf3,0x2c,0x37,0xe5,0x55,0xf4,0x0,0x7,0xfc,0xcc,0xf4,0x2,0x97,0xe0,0x0,0xf4,0x9,0x67,0xfc,0xcc,0xf4,0x2e,0x17, +0xe0,0x0,0xf3,0x46,0x7,0xe0,0x1d,0xd1,0x0,0x0,0x4f,0x44,0x43,0x0,0x0,0x4,0xf6,0x66,0x40,0x0,0xbb,0xff,0xbb,0xb0, +0x0,0xe,0x77,0x77,0x7f,0x0,0x0,0xe0,0x0,0x0,0xf0,0x0,0xd,0xdd,0xdd,0xdd,0x0,0x1,0x71,0x30,0x50,0x71,0x0,0x88, +0x4a,0xc,0x37,0x90,0x19,0x12,0x80,0x54,0x9,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xd0,0xd,0x10,0x0,0x5d,0xfe,0xcf,0xcf, +0x40,0x0,0xe4,0xd,0xb,0x40,0x5c,0xf8,0xdf,0x1b,0x40,0x11,0xd0,0x8c,0xba,0x56,0xc,0xb3,0xa0,0x5,0xe8,0x6,0x44,0x7, +0x5,0x60,0x2d,0x18,0x1a,0x51,0xe3,0x34,0x3,0x3,0x30,0x43,0x0,0x0,0x0,0x20,0x0,0x4e,0x57,0x6a,0xf7,0x70,0x4e,0x57, +0xd3,0xf3,0xe0,0x4f,0xff,0xfc,0xfc,0xf0,0x4f,0x33,0xd0,0xc0,0xd0,0x4f,0x43,0xaf,0xff,0xc0,0x5f,0x4b,0x79,0xc,0x0,0x6b, +0x1b,0xcc,0xcf,0xc7,0x88,0x1b,0x0,0xc,0x0,0xa2,0x1b,0x0,0xc,0x0,0x0,0x0,0x0,0x0,0x0,0x1,0x11,0x0,0x0,0x0, +0x6f,0xfd,0xdd,0xdf,0x70,0x8,0x60,0x14,0xd,0x60,0xc,0x20,0x38,0xe,0x50,0x2f,0xc9,0x67,0xf,0x30,0x9f,0x2b,0xbf,0xdf, +0xf6,0x4c,0x1b,0x0,0x0,0xb4,0xc,0x1c,0xee,0xe6,0xd3,0xf,0xc9,0x0,0x2,0xe0,0x7,0x0,0x0,0x9e,0x80,0x0,0x0,0x4, +0x20,0x0,0x6f,0xfd,0x1f,0xdf,0x50,0x8,0x61,0xdb,0x5f,0x41,0xb,0x35,0xff,0xff,0xf5,0x1f,0xc9,0xab,0x80,0x75,0x8f,0x3b, +0x9f,0xfc,0xf5,0x4d,0x1b,0xad,0xb3,0x95,0xc,0x1b,0xcf,0xfa,0xf5,0xf,0xca,0xf3,0x80,0x75,0x7,0x5,0xa0,0x58,0xd3,0x0, +0x0,0x0,0x0,0x0,0x0,0x2,0x0,0x0,0x0,0x4b,0xf9,0xf,0xcc,0xf0,0x12,0xe0,0xd,0x0,0xe0,0x5a,0xfa,0x1e,0x99,0xf0, +0x26,0xf3,0x24,0x44,0x41,0xa,0xfa,0xae,0xff,0xe6,0x3b,0xe8,0x10,0x65,0x0,0x93,0xe0,0x6c,0xff,0xc3,0x10,0xe0,0x0,0x65, +0x0,0x0,0xe2,0xff,0xff,0xfa,0x2,0xb0,0xa5,0x54,0xe0,0x4a,0xda,0xa8,0xa9,0xe0,0x26,0x47,0x58,0x88,0x80,0xb,0x2b,0xcc, +0xfe,0xc4,0xb,0x47,0x45,0xe8,0x70,0xb,0x65,0xcc,0xff,0xf2,0x6,0xda,0xc3,0xc7,0xb2,0x5c,0x95,0xc3,0xc7,0xb2,0x0,0x0, +0xc3,0xc8,0xd1,0x0,0x0,0x10,0x0,0x0,0x0,0xa0,0x6,0x50,0x0,0x0,0x69,0x2,0xfd,0xef,0x30,0xc,0x28,0xcf,0x3a,0xc0, +0xa,0xff,0x85,0x3f,0xf2,0x0,0x47,0xe0,0x3b,0xee,0x82,0x2,0xf8,0x7c,0x75,0x17,0xb0,0xac,0x73,0x1,0x8d,0x10,0x1,0x36, +0x84,0xa5,0x20,0x0,0x8b,0x74,0x3,0x8d,0xa1,0x0,0x0,0x0,0x0,0x4,0x0,0xf,0xef,0xff,0xfe,0xc0,0xf,0xff,0xff,0xff, +0xc0,0x48,0x88,0xfc,0x88,0x80,0x2,0xbb,0xfd,0xbb,0x20,0x3,0xd7,0x77,0x7e,0x30,0x3,0xf7,0x77,0x7f,0x30,0x3,0xfb,0xbb, +0xbf,0x30,0x3,0xf7,0x77,0x7f,0x30,0x7f,0xff,0xff,0xff,0xf7,0x0,0x0,0x31,0x0,0x0,0x0,0x0,0xb3,0x0,0x0,0xa,0xfe, +0xfe,0xef,0xb0,0xa,0xb0,0x0,0xb,0xb0,0xa,0xfd,0xdd,0xdf,0xb0,0xa,0xb0,0x0,0xb,0xb0,0xa,0xfc,0xcc,0xcf,0xb0,0xa, +0xb0,0x0,0xb,0xb0,0xa,0xfd,0xdd,0xdf,0xb0,0xa,0xb0,0x0,0xb,0xb0,0x0,0x0,0x0,0x0,0x0,0x0,0xe,0x0,0xf0,0x0, +0x4e,0xef,0xee,0xfe,0xe3,0x5,0x5f,0x55,0xf8,0x30,0xf,0xff,0xff,0xff,0x90,0x0,0x5,0x80,0x9,0x90,0x0,0x5,0x80,0x9, +0x90,0x0,0x5,0x80,0x9,0x90,0x0,0x5,0x83,0xfe,0x40,0x0,0x5,0x80,0x0,0x0,0x3c,0xcf,0xcc,0xfc,0xc4,0x0,0xa,0x2, +0xc6,0x10,0xb,0xcc,0xcb,0x98,0x40,0x4,0x80,0x93,0x9,0x70,0x0,0x90,0x65,0x19,0x0,0x4d,0xdd,0xff,0xdd,0xd4,0x0,0x2c, +0xcc,0xb2,0x0,0x28,0xe5,0x76,0x6e,0x92,0x29,0x20,0x76,0x2,0x81,0x5,0xcc,0xcf,0xcc,0xc7,0x0,0x4,0x44,0xf4,0x44,0x10, +0x0,0x77,0x7f,0x77,0x71,0x0,0xab,0xbe,0xfc,0xbb,0xa0,0x2,0x27,0xfb,0xb2,0x55,0x0,0x4b,0xf2,0xd,0x9c,0x30,0x9,0x5f, +0x1,0x5f,0x40,0x0,0x2,0xfb,0xd4,0x4d,0x91,0x0,0x2c,0x30,0x0,0x14,0x0,0x4,0x20,0x0,0x0,0x0,0xf,0xdf,0x49,0xfc, +0xf5,0x3d,0x5f,0x20,0xc0,0x84,0xcf,0xff,0xe8,0x68,0xe2,0x3f,0xe4,0xa7,0x4b,0x20,0x2f,0xf7,0xbc,0xff,0xc5,0x3f,0xe4,0xaa, +0xd,0x0,0x4f,0xf7,0xbb,0xcf,0xc8,0x79,0xa0,0x90,0xd,0x0,0xa3,0x3c,0x80,0xd,0x0,0x0,0x0,0x0,0x0,0x0,0x6,0x60, +0x0,0xe0,0x0,0x1,0xc4,0x0,0xe0,0x0,0x0,0x0,0x0,0xf0,0x0,0x8e,0xf0,0x1,0xf1,0x0,0x0,0xf0,0x3,0xf4,0x0,0x0, +0xf0,0x6,0xd8,0x0,0x0,0xf6,0x2c,0x4d,0x10,0x3,0xfa,0x7c,0x7,0xa0,0x6,0x92,0xd2,0x0,0xa6,0x0,0x0,0x0,0x0,0x0, +0x0,0x10,0x0,0x0,0x0,0x0,0x1d,0x50,0x4f,0xdf,0x30,0x0,0x2b,0x15,0xa0,0xf3,0x0,0x47,0x21,0xc6,0xf,0x83,0xa,0xf7, +0x57,0x0,0x47,0x30,0xb,0x72,0xfe,0xde,0xf0,0x0,0xb7,0x8,0x60,0x88,0x0,0xb,0xa9,0x1c,0xdb,0x10,0x1,0xff,0x35,0xdf, +0xc5,0x10,0xb,0x7,0xa4,0x5,0xb6,0x6,0x50,0x0,0xd,0xa1,0x1,0xb3,0x0,0xd,0x54,0x0,0x8,0xee,0xef,0xe9,0x27,0xf2, +0x56,0x5d,0x0,0x0,0xf2,0xbf,0xbd,0x0,0x0,0xf2,0xd,0xb,0x20,0x0,0xf5,0xd,0x29,0x34,0x2,0xfe,0xaf,0xc7,0x99,0x5, +0xc0,0x41,0x1,0xd4,0x7,0x81,0xcc,0xfc,0xc0,0x0,0x92,0x0,0xe0,0x0,0x0,0x4,0xbb,0xfb,0xcf,0x5e,0xf0,0x48,0xa4,0x67, +0x0,0xf1,0x86,0xc4,0x22,0x0,0xf6,0xde,0xfe,0xc7,0x0,0xf9,0x7,0xa8,0x20,0x5,0xf3,0x9b,0x13,0xc3,0x1,0x23,0x60,0x0, +0x24,0x0,0x96,0x6,0xcc,0xf5,0x3c,0xff,0xa0,0x0,0xd5,0x11,0xb8,0x10,0x0,0xd5,0x6b,0xff,0xb6,0xfc,0xf5,0x8,0x7d,0x26, +0xb0,0x10,0x1f,0x7f,0x88,0xb0,0xa,0x2f,0xab,0x3,0xed,0xd8,0x4c,0xfb,0x0,0x0,0x0,0x96,0x4a,0xde,0xee,0xeb,0x11,0x0, +0x0,0x0,0x0,0x1,0x0,0x0,0x2,0x42,0x0,0xb6,0x6f,0xdd,0xca,0x60,0x1,0xa5,0xf1,0x11,0x10,0x0,0x0,0x5f,0xcc,0xcf, +0x80,0x3d,0xd6,0xe7,0x37,0xf3,0x0,0xe,0x7b,0x3f,0xf9,0x0,0x0,0xec,0x89,0xff,0xd3,0x0,0x2f,0x85,0xd6,0x8,0x70,0x1d, +0x9c,0x20,0x0,0x1,0x23,0x90,0x4c,0xdd,0xde,0xe1,0x0,0x0,0x0,0x11,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xa,0x50,0xe, +0xe,0x0,0x1,0x75,0xef,0xef,0xe3,0x0,0x0,0xe,0xe,0x0,0x4d,0xc0,0xe,0xe,0x0,0x13,0xea,0xff,0xef,0xe6,0x0,0xe0, +0x99,0xe,0x0,0x3,0xf2,0xe3,0xe,0x0,0x1d,0x9a,0x20,0x5,0x13,0x48,0x5,0xcd,0xdd,0xf6,0x0,0x0,0x0,0x10,0x0,0x9, +0x20,0x92,0xe0,0x0,0x4,0xb3,0xfc,0xfc,0xc2,0x0,0x6,0x42,0xf2,0x21,0x2d,0xc6,0x9f,0xcf,0x95,0x0,0xe0,0x2c,0x3b,0x0, +0x0,0xe0,0x98,0x3b,0x27,0x0,0xe9,0xd1,0x2e,0xc8,0x5,0xfd,0x30,0x6,0x71,0x1d,0x58,0xdd,0xdd,0xe7,0x0,0x0,0x0,0x10, +0x0,0x0,0x1,0x23,0x55,0x0,0x1f,0xff,0xfc,0x95,0x0,0x79,0x88,0xf8,0x88,0x80,0xa,0xbb,0xfb,0xbb,0x0,0xe,0x55,0xf5, +0x5f,0x0,0xe,0x55,0xf5,0x5f,0x0,0xb,0xbb,0xfb,0xbc,0x0,0x28,0x88,0xf8,0x88,0x30,0xbb,0xbb,0xfb,0xbb,0xb1,0x66,0x66, +0x66,0x66,0x60,0x4,0xeb,0xbb,0xbe,0x30,0x0,0x4c,0x77,0x77,0xd3,0x0,0x3,0xbb,0xbb,0xbb,0x20,0x0,0x9a,0xaa,0xaa,0xa9, +0x80,0x7,0xdb,0xff,0xbd,0x80,0x0,0x7a,0x7e,0xd7,0xa8,0x0,0x5,0xbb,0xff,0xbb,0x60,0x0,0x58,0x8f,0xe8,0x85,0x0,0x1f, +0xff,0xff,0xff,0xff,0x0,0x0,0xf0,0x0,0x5b,0x0,0x0,0xf0,0x4b,0xa1,0x0,0x0,0xf1,0x83,0x0,0x0,0xbe,0xfe,0xff,0xee, +0xe2,0x0,0xf0,0x4b,0x0,0x0,0x0,0xf0,0xb,0x70,0x0,0x0,0xf1,0x53,0xd9,0x10,0x4,0xfd,0xa2,0x1a,0xe1,0x1,0x40,0x0, +0x0,0x10,0x3,0x10,0x0,0x0,0x0,0x8,0xb7,0xdd,0xdd,0xf6,0x0,0x70,0x0,0x50,0xb6,0xe,0x0,0x0,0xf0,0xb6,0xe,0x2d, +0xdf,0xfd,0xf6,0xe,0x0,0x3d,0xf0,0xb6,0xe,0x6,0xd3,0xf0,0xb6,0xe,0x6a,0x10,0xf0,0xb6,0xe,0x0,0x9d,0xa0,0xb6,0xe, +0x0,0x0,0x4,0xe4,0x0,0x0,0x0,0x0,0x0,0x3,0x10,0x0,0x0,0x0,0x7,0xa6,0xdd,0xdd,0xf6,0x0,0x56,0x11,0x60,0xb6, +0xd,0x6,0x69,0x60,0xb6,0xe,0x2e,0xcf,0xe3,0xb6,0xe,0x2c,0x88,0xd3,0xb6,0xe,0x2f,0xff,0xb2,0xb6,0xe,0x1b,0x3c,0x89, +0xb6,0xe,0x55,0xa,0xff,0xe6,0xe,0x0,0x0,0xa,0xe3,0x1,0x0,0x0,0x0,0x0,0x0,0x0,0x75,0x0,0x0,0x8,0xdd,0xff, +0xdd,0xd4,0x0,0x67,0x0,0x68,0x0,0x0,0x3c,0x0,0xb4,0x0,0xd,0xde,0xdd,0xfd,0xdc,0x1,0x77,0x77,0x77,0x20,0x2,0xd4, +0x44,0x4c,0x40,0x2,0xfc,0xcc,0xcf,0x40,0x2,0xc0,0x0,0xb,0x40,0x2,0xfc,0xcc,0xcf,0x40, +}; +static const lv_font_fmt_txt_glyph_dsc_t glyphs[]={ +{0}, +{.bitmap_index=0,.adv_w=32,.box_w=2,.box_h=0,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=0,.adv_w=48,.box_w=3,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=12,.adv_w=80,.box_w=5,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=32,.adv_w=96,.box_w=6,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=56,.adv_w=96,.box_w=6,.box_h=11,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=89,.adv_w=176,.box_w=11,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=133,.adv_w=112,.box_w=8,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=165,.adv_w=48,.box_w=3,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=177,.adv_w=64,.box_w=4,.box_h=12,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=201,.adv_w=64,.box_w=4,.box_h=12,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=225,.adv_w=80,.box_w=5,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=245,.adv_w=96,.box_w=7,.box_h=7,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=270,.adv_w=64,.box_w=4,.box_h=5,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=280,.adv_w=64,.box_w=4,.box_h=4,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=288,.adv_w=48,.box_w=3,.box_h=2,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=291,.adv_w=64,.box_w=4,.box_h=11,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=313,.adv_w=96,.box_w=6,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=337,.adv_w=96,.box_w=6,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=361,.adv_w=96,.box_w=6,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=385,.adv_w=96,.box_w=6,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=409,.adv_w=96,.box_w=6,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=433,.adv_w=96,.box_w=6,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=457,.adv_w=96,.box_w=6,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=481,.adv_w=96,.box_w=6,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=505,.adv_w=96,.box_w=6,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=529,.adv_w=96,.box_w=6,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=553,.adv_w=48,.box_w=3,.box_h=6,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=562,.adv_w=64,.box_w=4,.box_h=9,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=580,.adv_w=112,.box_w=7,.box_h=7,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=605,.adv_w=96,.box_w=6,.box_h=6,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=623,.adv_w=112,.box_w=7,.box_h=7,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=648,.adv_w=96,.box_w=6,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=672,.adv_w=176,.box_w=11,.box_h=11,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=733,.adv_w=96,.box_w=7,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=761,.adv_w=112,.box_w=7,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=789,.adv_w=112,.box_w=7,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=817,.adv_w=112,.box_w=7,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=845,.adv_w=96,.box_w=6,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=869,.adv_w=96,.box_w=6,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=893,.adv_w=128,.box_w=8,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=925,.adv_w=112,.box_w=7,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=953,.adv_w=48,.box_w=3,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=965,.adv_w=96,.box_w=6,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=989,.adv_w=112,.box_w=7,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1017,.adv_w=80,.box_w=6,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1041,.adv_w=128,.box_w=8,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1073,.adv_w=112,.box_w=7,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1101,.adv_w=128,.box_w=8,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1133,.adv_w=112,.box_w=7,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1161,.adv_w=128,.box_w=8,.box_h=11,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=1205,.adv_w=112,.box_w=7,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1233,.adv_w=112,.box_w=7,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1261,.adv_w=112,.box_w=7,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1289,.adv_w=112,.box_w=7,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1317,.adv_w=96,.box_w=7,.box_h=8,.ofs_x=-1,.ofs_y=0}, +{.bitmap_index=1345,.adv_w=144,.box_w=9,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1381,.adv_w=96,.box_w=6,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1405,.adv_w=80,.box_w=7,.box_h=8,.ofs_x=-1,.ofs_y=0}, +{.bitmap_index=1433,.adv_w=112,.box_w=7,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1461,.adv_w=64,.box_w=4,.box_h=12,.ofs_x=0,.ofs_y=-4}, +{.bitmap_index=1485,.adv_w=64,.box_w=4,.box_h=11,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=1507,.adv_w=64,.box_w=4,.box_h=12,.ofs_x=0,.ofs_y=-4}, +{.bitmap_index=1531,.adv_w=96,.box_w=6,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1555,.adv_w=96,.box_w=6,.box_h=3,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=1564,.adv_w=96,.box_w=6,.box_h=10,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1594,.adv_w=96,.box_w=6,.box_h=6,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1612,.adv_w=112,.box_w=7,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1640,.adv_w=96,.box_w=6,.box_h=6,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1658,.adv_w=112,.box_w=7,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1686,.adv_w=96,.box_w=6,.box_h=6,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1704,.adv_w=48,.box_w=4,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1720,.adv_w=112,.box_w=7,.box_h=8,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=1748,.adv_w=96,.box_w=6,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1772,.adv_w=48,.box_w=3,.box_h=9,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1786,.adv_w=48,.box_w=4,.box_h=11,.ofs_x=-1,.ofs_y=-2}, +{.bitmap_index=1808,.adv_w=96,.box_w=6,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1832,.adv_w=48,.box_w=3,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1844,.adv_w=144,.box_w=9,.box_h=6,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1871,.adv_w=96,.box_w=6,.box_h=6,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1889,.adv_w=112,.box_w=7,.box_h=6,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1910,.adv_w=112,.box_w=7,.box_h=8,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=1938,.adv_w=112,.box_w=7,.box_h=8,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=1966,.adv_w=64,.box_w=5,.box_h=7,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1984,.adv_w=80,.box_w=5,.box_h=6,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1999,.adv_w=64,.box_w=4,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=2015,.adv_w=96,.box_w=6,.box_h=6,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=2033,.adv_w=80,.box_w=6,.box_h=6,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=2051,.adv_w=128,.box_w=9,.box_h=6,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=2078,.adv_w=80,.box_w=6,.box_h=6,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=2096,.adv_w=80,.box_w=6,.box_h=8,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=2120,.adv_w=96,.box_w=6,.box_h=6,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=2138,.adv_w=48,.box_w=4,.box_h=12,.ofs_x=-1,.ofs_y=-4}, +{.bitmap_index=2162,.adv_w=48,.box_w=3,.box_h=12,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=2180,.adv_w=64,.box_w=4,.box_h=12,.ofs_x=0,.ofs_y=-4}, +{.bitmap_index=2204,.adv_w=96,.box_w=6,.box_h=5,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=2219,.adv_w=160,.box_w=10,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=2264,.adv_w=160,.box_w=10,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=2309,.adv_w=160,.box_w=10,.box_h=11,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=2364,.adv_w=160,.box_w=11,.box_h=11,.ofs_x=-1,.ofs_y=-2}, +{.bitmap_index=2425,.adv_w=160,.box_w=10,.box_h=10,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=2475,.adv_w=160,.box_w=11,.box_h=10,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=2530,.adv_w=160,.box_w=10,.box_h=10,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=2580,.adv_w=160,.box_w=11,.box_h=10,.ofs_x=-1,.ofs_y=-2}, +{.bitmap_index=2635,.adv_w=160,.box_w=10,.box_h=10,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=2685,.adv_w=160,.box_w=10,.box_h=10,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=2735,.adv_w=160,.box_w=10,.box_h=10,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=2785,.adv_w=160,.box_w=10,.box_h=11,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=2840,.adv_w=160,.box_w=10,.box_h=11,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=2895,.adv_w=160,.box_w=10,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=2940,.adv_w=160,.box_w=11,.box_h=10,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=2995,.adv_w=160,.box_w=11,.box_h=11,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=3056,.adv_w=160,.box_w=10,.box_h=11,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=3111,.adv_w=160,.box_w=11,.box_h=10,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=3166,.adv_w=160,.box_w=10,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=3211,.adv_w=160,.box_w=11,.box_h=11,.ofs_x=-1,.ofs_y=-2}, +{.bitmap_index=3272,.adv_w=160,.box_w=11,.box_h=10,.ofs_x=-1,.ofs_y=-1}, +{.bitmap_index=3327,.adv_w=160,.box_w=11,.box_h=10,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=3382,.adv_w=160,.box_w=10,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=3427,.adv_w=160,.box_w=10,.box_h=10,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=3477,.adv_w=160,.box_w=11,.box_h=10,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=3532,.adv_w=160,.box_w=10,.box_h=11,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=3587,.adv_w=160,.box_w=11,.box_h=11,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=3648,.adv_w=160,.box_w=11,.box_h=11,.ofs_x=-1,.ofs_y=-2}, +{.bitmap_index=3709,.adv_w=160,.box_w=10,.box_h=11,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=3764,.adv_w=160,.box_w=10,.box_h=11,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=3819,.adv_w=160,.box_w=10,.box_h=11,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=3874,.adv_w=160,.box_w=10,.box_h=11,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=3929,.adv_w=160,.box_w=10,.box_h=11,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=3984,.adv_w=160,.box_w=10,.box_h=11,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=4039,.adv_w=160,.box_w=10,.box_h=11,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=4094,.adv_w=160,.box_w=10,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=4139,.adv_w=160,.box_w=10,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=4184,.adv_w=160,.box_w=11,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=4234,.adv_w=160,.box_w=10,.box_h=10,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=4284,.adv_w=160,.box_w=10,.box_h=11,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=4339,.adv_w=160,.box_w=10,.box_h=10,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=4389,.adv_w=160,.box_w=10,.box_h=11,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=4444,.adv_w=160,.box_w=10,.box_h=10,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=4494,.adv_w=160,.box_w=10,.box_h=10,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=4544,.adv_w=160,.box_w=11,.box_h=10,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=4599,.adv_w=160,.box_w=10,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=4644,.adv_w=160,.box_w=10,.box_h=11,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=4699,.adv_w=160,.box_w=10,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=4744,.adv_w=160,.box_w=10,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=4789,.adv_w=160,.box_w=11,.box_h=9,.ofs_x=-1,.ofs_y=-1}, +{.bitmap_index=4839,.adv_w=160,.box_w=10,.box_h=11,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=4894,.adv_w=160,.box_w=10,.box_h=10,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=4944,.adv_w=160,.box_w=11,.box_h=10,.ofs_x=-1,.ofs_y=-1}, +{.bitmap_index=4999,.adv_w=160,.box_w=10,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=5044,.adv_w=160,.box_w=10,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=5089,.adv_w=160,.box_w=10,.box_h=10,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=5139,.adv_w=160,.box_w=11,.box_h=11,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=5200,.adv_w=160,.box_w=10,.box_h=11,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=5255,.adv_w=160,.box_w=10,.box_h=10,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=5305,.adv_w=160,.box_w=10,.box_h=10,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=5355,.adv_w=160,.box_w=11,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=5405,.adv_w=160,.box_w=10,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=5450,.adv_w=160,.box_w=10,.box_h=11,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=5505,.adv_w=160,.box_w=10,.box_h=11,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=5560,.adv_w=160,.box_w=10,.box_h=10,.ofs_x=0,.ofs_y=-1} +}; +static const uint16_t unicode[]={0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,19946,19947,20110,20540,20805,20819,20845,20967,21128,21301,21430,21456,21519,22206,22831,22955,23352,23535,24005,24175,24198,24288,24741,25139,25205,25289,25321,25410,25495,25741,25886,25938,25997,26202,26210,27458,28008,28825,28877,29228,30689,30798,31211,31439,32424,32590,33226,33378,33724,34888,35267,35716,35742,35765,35803,36183,36788,36795,36841,37293,37295,38239,38349,38373,38867}; +static const lv_font_fmt_txt_cmap_t cmaps[]={{.range_start=32,.range_length=38868,.glyph_id_start=1,.unicode_list=unicode,.list_length=160,.type=LV_FONT_FMT_TXT_CMAP_SPARSE_TINY}}; +static const lv_font_fmt_txt_dsc_t descriptor={.glyph_bitmap=bitmap,.glyph_dsc=glyphs,.cmaps=cmaps,.cmap_num=1,.bpp=4,.bitmap_format=0}; +const lv_font_t font_badge_10={.get_glyph_dsc=lv_font_get_glyph_dsc_fmt_txt,.get_glyph_bitmap=lv_font_get_bitmap_fmt_txt,.line_height=14,.base_line=3,.dsc=&descriptor}; diff --git a/main/font_badge_28.c b/main/font_badge_28.c new file mode 100644 index 0000000..09a8b00 --- /dev/null +++ b/main/font_badge_28.c @@ -0,0 +1,941 @@ +/* Noto Sans SC, SIL OFL 1.1; generated by tools/generate_badge_fonts.py. */ +#include "lvgl.h" +static const uint8_t bitmap[]={ +0x0,0x0,0xff,0xff,0x0,0x0,0x0,0x0,0xff,0xff,0x0,0x0,0x0,0x0,0xff,0xff,0x0,0x0,0x0,0x0,0xff,0xff,0x0,0x0, +0x0,0x0,0xff,0xff,0x0,0x0,0x0,0x0,0xff,0xff,0x0,0x0,0x0,0x0,0xff,0xff,0x0,0x0,0x0,0x0,0xff,0xff,0x0,0x0, +0x0,0x0,0xff,0xff,0x0,0x0,0x0,0x0,0xff,0xff,0x0,0x0,0x0,0x0,0xff,0xff,0x0,0x0,0x0,0x0,0xff,0xff,0x0,0x0, +0x0,0x0,0xff,0xff,0x0,0x0,0x0,0x0,0xff,0xff,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, +0x0,0x1,0x9e,0xe9,0x10,0x0,0x0,0x9,0xff,0xff,0x90,0x0,0x0,0xe,0xff,0xff,0xe0,0x0,0x0,0xe,0xff,0xff,0xe0,0x0, +0x0,0x8,0xff,0xff,0x80,0x0,0x0,0x0,0x8e,0xe8,0x0,0x0,0x0,0xff,0xff,0xa0,0xa,0xff,0xff,0x0,0x0,0xf,0xff,0xfa, +0x0,0xaf,0xff,0xf0,0x0,0x0,0xff,0xff,0xa0,0xa,0xff,0xff,0x0,0x0,0xf,0xff,0xfa,0x0,0xaf,0xff,0xf0,0x0,0x0,0xef, +0xff,0x80,0x8,0xff,0xfe,0x0,0x0,0xb,0xff,0xf6,0x0,0x6f,0xff,0xb0,0x0,0x0,0x9f,0xff,0x30,0x3,0xff,0xf9,0x0,0x0, +0x6,0xff,0xf1,0x0,0x1f,0xff,0x60,0x0,0x0,0x4f,0xfd,0x0,0x0,0xdf,0xf4,0x0,0x0,0x1,0xff,0xb0,0x0,0xb,0xff,0x10, +0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, +0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, +0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, +0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, +0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x9,0xfe,0x0,0xc,0xfb,0x0,0x0,0x0,0x0,0xbf,0xc0,0x0,0xef,0x90,0x0, +0x0,0x0,0xd,0xfa,0x0,0x1f,0xf7,0x0,0x0,0x0,0x0,0xff,0x80,0x3,0xff,0x50,0x0,0x0,0x0,0x2f,0xf6,0x0,0x5f,0xf3, +0x0,0x0,0xf,0xff,0xff,0xff,0xff,0xff,0xff,0xf0,0x0,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x0,0xd,0xde,0xff,0xdd,0xdf, +0xff,0xdd,0xd0,0x0,0x0,0x9f,0xe0,0x0,0xcf,0xc0,0x0,0x0,0x0,0xb,0xfc,0x0,0xe,0xfa,0x0,0x0,0x0,0x0,0xdf,0xb0, +0x0,0xff,0x80,0x0,0x0,0x0,0xe,0xf9,0x0,0x2f,0xf7,0x0,0x0,0xd,0xdd,0xff,0xed,0xdd,0xff,0xed,0xd0,0x0,0xff,0xff, +0xff,0xff,0xff,0xff,0xff,0x0,0xf,0xff,0xff,0xff,0xff,0xff,0xff,0xf0,0x0,0x0,0x6f,0xf3,0x0,0x9f,0xf0,0x0,0x0,0x0, +0x7,0xff,0x10,0xb,0xfd,0x0,0x0,0x0,0x0,0x9f,0xe0,0x0,0xcf,0xb0,0x0,0x0,0x0,0xb,0xfd,0x0,0xe,0xfa,0x0,0x0, +0x0,0x0,0xdf,0xb0,0x1,0xff,0x80,0x0,0x0,0x0,0xe,0xf9,0x0,0x2f,0xf6,0x0,0x0,0x0,0x0,0x0,0x0,0xf,0xff,0x0, +0x0,0x0,0x0,0x0,0x0,0x0,0xff,0xf0,0x0,0x0,0x0,0x0,0x0,0x0,0xf,0xff,0x0,0x0,0x0,0x0,0x0,0x0,0x6b,0xff, +0xfc,0x82,0x0,0x0,0x0,0x2,0xdf,0xff,0xff,0xff,0xf8,0x0,0x0,0x1,0xdf,0xff,0xff,0xff,0xff,0xf7,0x0,0x0,0x7f,0xff, +0xfc,0x77,0xcf,0xfb,0x0,0x0,0xc,0xff,0xfd,0x0,0x0,0x6b,0x10,0x0,0x0,0xef,0xff,0xa0,0x0,0x0,0x0,0x0,0x0,0xe, +0xff,0xfd,0x10,0x0,0x0,0x0,0x0,0x0,0xcf,0xff,0xfd,0x30,0x0,0x0,0x0,0x0,0x5,0xff,0xff,0xff,0xa2,0x0,0x0,0x0, +0x0,0x8,0xff,0xff,0xff,0xf9,0x10,0x0,0x0,0x0,0x5,0xef,0xff,0xff,0xfd,0x30,0x0,0x0,0x0,0x1,0x8f,0xff,0xff,0xfe, +0x10,0x0,0x0,0x0,0x0,0x2a,0xff,0xff,0xf8,0x0,0x0,0x0,0x0,0x0,0x6,0xff,0xff,0xd0,0x0,0x0,0x0,0x0,0x0,0xb, +0xff,0xff,0x0,0x0,0x5,0x0,0x0,0x0,0xbf,0xff,0xd0,0x0,0x7,0xfb,0x30,0x0,0x3f,0xff,0xfb,0x0,0x3,0xff,0xff,0xdb, +0xcf,0xff,0xff,0x50,0x0,0x8f,0xff,0xff,0xff,0xff,0xff,0xb0,0x0,0x0,0x6e,0xff,0xff,0xff,0xff,0xa1,0x0,0x0,0x0,0x16, +0xad,0xff,0xf9,0x40,0x0,0x0,0x0,0x0,0x0,0xf,0xff,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff,0xf0,0x0,0x0,0x0,0x0, +0x0,0x0,0xf,0xff,0x0,0x0,0x0,0x0,0x0,0x4,0xbe,0xeb,0x40,0x0,0x0,0x0,0x8,0xff,0x60,0x0,0x0,0x0,0x0,0x7f, +0xff,0xff,0xf7,0x0,0x0,0x0,0x2e,0xfd,0x0,0x0,0x0,0x0,0x3,0xff,0xfe,0xef,0xff,0x30,0x0,0x0,0x9f,0xf5,0x0,0x0, +0x0,0x0,0x9,0xff,0xb1,0x1b,0xff,0x90,0x0,0x2,0xff,0xb0,0x0,0x0,0x0,0x0,0xd,0xff,0x30,0x3,0xff,0xd0,0x0,0xa, +0xff,0x30,0x0,0x0,0x0,0x0,0xe,0xff,0x10,0x1,0xff,0xe0,0x0,0x3f,0xfa,0x0,0x0,0x0,0x0,0x0,0xe,0xff,0x0,0x0, +0xff,0xe0,0x0,0xaf,0xf2,0x0,0x0,0x0,0x0,0x0,0xd,0xff,0x10,0x1,0xff,0xd0,0x3,0xff,0x90,0x0,0x0,0x0,0x0,0x0, +0x9,0xff,0x40,0x4,0xff,0x90,0xb,0xfe,0x10,0x29,0xdf,0xd9,0x20,0x0,0x4,0xff,0xd2,0x2d,0xff,0x30,0x4f,0xf8,0x3,0xef, +0xff,0xff,0xe4,0x0,0x0,0x9f,0xff,0xff,0xf8,0x0,0xcf,0xe1,0x1d,0xff,0xc9,0xcf,0xfd,0x10,0x0,0x7,0xdf,0xfd,0x60,0x5, +0xff,0x70,0x7f,0xfa,0x0,0xa,0xff,0x70,0x0,0x0,0x1,0x10,0x0,0xc,0xfd,0x0,0xcf,0xf3,0x0,0x3,0xff,0xc0,0x0,0x0, +0x0,0x0,0x0,0x5f,0xf5,0x0,0xef,0xf1,0x0,0x1,0xff,0xe0,0x0,0x0,0x0,0x0,0x0,0xdf,0xc0,0x0,0xff,0xf0,0x0,0x0, +0xff,0xf0,0x0,0x0,0x0,0x0,0x6,0xff,0x40,0x0,0xef,0xf1,0x0,0x1,0xff,0xe0,0x0,0x0,0x0,0x0,0x1e,0xfb,0x0,0x0, +0xbf,0xf5,0x0,0x5,0xff,0xb0,0x0,0x0,0x0,0x0,0x7f,0xf3,0x0,0x0,0x7f,0xfd,0x20,0x2d,0xff,0x70,0x0,0x0,0x0,0x1, +0xef,0xa0,0x0,0x0,0x1d,0xff,0xfe,0xff,0xfd,0x10,0x0,0x0,0x0,0x8,0xff,0x20,0x0,0x0,0x3,0xef,0xff,0xff,0xe3,0x0, +0x0,0x0,0x0,0x1e,0xf9,0x0,0x0,0x0,0x0,0x29,0xdf,0xd9,0x20,0x0,0x0,0x0,0x2,0x9d,0xee,0xc7,0x0,0x0,0x0,0x0, +0x0,0x0,0x5,0xef,0xff,0xff,0xfc,0x10,0x0,0x0,0x0,0x0,0x3,0xff,0xff,0xff,0xff,0xf8,0x0,0x0,0x0,0x0,0x0,0xaf, +0xff,0x90,0x6f,0xff,0xd0,0x0,0x0,0x0,0x0,0xe,0xff,0xf2,0x1,0xff,0xff,0x0,0x0,0x0,0x0,0x0,0xef,0xff,0x10,0x3f, +0xff,0xd0,0x0,0x0,0x0,0x0,0xd,0xff,0xf4,0x1c,0xff,0xf8,0x0,0x0,0x0,0x0,0x0,0x8f,0xff,0xed,0xff,0xfd,0x10,0x0, +0x0,0x0,0x0,0x3,0xff,0xff,0xff,0xfd,0x20,0x0,0x0,0x0,0x0,0x0,0xf,0xff,0xff,0xfa,0x10,0x0,0xb,0xdd,0xd4,0x0, +0x1a,0xff,0xff,0xff,0x10,0x0,0x2,0xff,0xfe,0x0,0xb,0xff,0xff,0xff,0xfc,0x10,0x0,0x9f,0xff,0x90,0x5,0xff,0xff,0xff, +0xff,0xfc,0x20,0x2f,0xff,0xf2,0x0,0xbf,0xff,0xe1,0xaf,0xff,0xfe,0x4b,0xff,0xf9,0x0,0xe,0xff,0xfa,0x0,0xbf,0xff,0xff, +0xff,0xfe,0x10,0x0,0xef,0xff,0xc0,0x0,0xaf,0xff,0xff,0xff,0x60,0x0,0xc,0xff,0xff,0x60,0x0,0x9f,0xff,0xff,0xfd,0x72, +0x0,0x7f,0xff,0xff,0xda,0xcf,0xff,0xff,0xff,0xff,0xf6,0x1,0xdf,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x30,0x2,0xcf, +0xff,0xff,0xff,0xfe,0x53,0xaf,0xff,0xe0,0x0,0x0,0x5a,0xdf,0xed,0xa5,0x10,0x0,0x17,0xb9,0x0,0x0,0xff,0xff,0xa0,0x0, +0xf,0xff,0xfa,0x0,0x0,0xff,0xff,0xa0,0x0,0xf,0xff,0xfa,0x0,0x0,0xef,0xff,0x80,0x0,0xb,0xff,0xf6,0x0,0x0,0x9f, +0xff,0x30,0x0,0x6,0xff,0xf1,0x0,0x0,0x4f,0xfd,0x0,0x0,0x1,0xff,0xb0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, +0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, +0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, +0x0,0x10,0x0,0x0,0x0,0x0,0xc,0xb5,0x0,0x0,0x0,0x6,0xff,0xf2,0x0,0x0,0x1,0xef,0xfa,0x0,0x0,0x0,0x8f,0xff, +0x30,0x0,0x0,0xe,0xff,0xb0,0x0,0x0,0x5,0xff,0xf6,0x0,0x0,0x0,0xcf,0xff,0x20,0x0,0x0,0x1f,0xff,0xc0,0x0,0x0, +0x5,0xff,0xf9,0x0,0x0,0x0,0x8f,0xff,0x70,0x0,0x0,0xb,0xff,0xf4,0x0,0x0,0x0,0xdf,0xff,0x20,0x0,0x0,0xe,0xff, +0xf2,0x0,0x0,0x0,0xff,0xff,0x10,0x0,0x0,0xf,0xff,0xf0,0x0,0x0,0x0,0xef,0xff,0x10,0x0,0x0,0xe,0xff,0xf2,0x0, +0x0,0x0,0xcf,0xff,0x30,0x0,0x0,0xa,0xff,0xf5,0x0,0x0,0x0,0x7f,0xff,0x80,0x0,0x0,0x4,0xff,0xfb,0x0,0x0,0x0, +0xe,0xff,0xe0,0x0,0x0,0x0,0x9f,0xff,0x40,0x0,0x0,0x3,0xff,0xf9,0x0,0x0,0x0,0xc,0xff,0xe1,0x0,0x0,0x0,0x5f, +0xff,0x60,0x0,0x0,0x0,0xcf,0xfd,0x0,0x0,0x0,0x3,0xff,0xc2,0x0,0x0,0x0,0x6,0x30,0x0,0x0,0x0,0x10,0x0,0x0, +0x0,0x5,0xbd,0x0,0x0,0x0,0x2,0xff,0xf6,0x0,0x0,0x0,0xa,0xff,0xe1,0x0,0x0,0x0,0x3f,0xff,0x80,0x0,0x0,0x0, +0xbf,0xfe,0x0,0x0,0x0,0x7,0xff,0xf5,0x0,0x0,0x0,0x2f,0xff,0xb0,0x0,0x0,0x0,0xcf,0xff,0x10,0x0,0x0,0x9,0xff, +0xf5,0x0,0x0,0x0,0x7f,0xff,0x80,0x0,0x0,0x4,0xff,0xfb,0x0,0x0,0x0,0x2f,0xff,0xd0,0x0,0x0,0x2,0xff,0xfe,0x0, +0x0,0x0,0x1f,0xff,0xf0,0x0,0x0,0x0,0xff,0xff,0x0,0x0,0x0,0x1f,0xff,0xe0,0x0,0x0,0x2,0xff,0xfd,0x0,0x0,0x0, +0x3f,0xff,0xc0,0x0,0x0,0x5,0xff,0xfa,0x0,0x0,0x0,0x8f,0xff,0x70,0x0,0x0,0xb,0xff,0xf4,0x0,0x0,0x0,0xef,0xfe, +0x0,0x0,0x0,0x4f,0xff,0x90,0x0,0x0,0x9,0xff,0xf3,0x0,0x0,0x1,0xef,0xfc,0x0,0x0,0x0,0x7f,0xff,0x50,0x0,0x0, +0xd,0xff,0xc0,0x0,0x0,0x2,0xcf,0xf4,0x0,0x0,0x0,0x0,0x36,0x0,0x0,0x0,0x0,0x0,0x0,0xff,0x70,0x0,0x0,0x0, +0x0,0x0,0x2f,0xf9,0x0,0x0,0x0,0x0,0x0,0x3,0xff,0xa0,0x0,0x0,0x0,0x3e,0xb8,0x8f,0xfd,0x6a,0xda,0x0,0x8,0xff, +0xff,0xff,0xff,0xff,0xe1,0x0,0x4b,0xff,0xff,0xff,0xff,0xe7,0x10,0x0,0x3,0xbf,0xff,0xfe,0x60,0x0,0x0,0x0,0xc,0xff, +0xff,0xf4,0x0,0x0,0x0,0x6,0xff,0xfc,0xff,0xc0,0x0,0x0,0x1,0xef,0xf5,0x1c,0xff,0x70,0x0,0x0,0x7,0xf7,0x0,0x1d, +0xc2,0x0,0x0,0x0,0x2,0x0,0x0,0x10,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, +0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, +0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, +0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xf,0xff,0x0,0x0,0x0,0x0,0x0,0x0, +0x0,0xff,0xf0,0x0,0x0,0x0,0x0,0x0,0x0,0xf,0xff,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff,0xf0,0x0,0x0,0x0,0x0, +0x0,0x0,0xf,0xff,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff,0xf0,0x0,0x0,0x0,0xf,0xff,0xff,0xff,0xff,0xff,0xff,0xff, +0x0,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf0,0xf,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x0,0xaa,0xaa,0xaa,0xff,0xfa,0xaa, +0xaa,0xa0,0x0,0x0,0x0,0xf,0xff,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff,0xf0,0x0,0x0,0x0,0x0,0x0,0x0,0xf,0xff, +0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff,0xf0,0x0,0x0,0x0,0x0,0x0,0x0,0xf,0xff,0x0,0x0,0x0,0x0,0x0,0x0,0x0, +0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1a, +0xee,0x80,0x0,0xb,0xff,0xff,0x50,0x0,0xef,0xff,0xfc,0x0,0xb,0xff,0xff,0xe0,0x0,0x2a,0xef,0xff,0x0,0x0,0x2,0xff, +0xd0,0x0,0x0,0x7f,0xf9,0x0,0x0,0x5f,0xff,0x30,0x2,0xaf,0xff,0x80,0x0,0x4f,0xff,0x90,0x0,0x0,0xdc,0x50,0x0,0x0, +0x1,0x0,0x0,0x0,0xa,0xaa,0xaa,0xaa,0xa0,0xf,0xff,0xff,0xff,0xf0,0xf,0xff,0xff,0xff,0xf0,0xf,0xff,0xff,0xff,0xf0, +0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, +0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x19,0xee,0x91,0x0,0x0,0x9f,0xff,0xf9,0x0,0x0,0xef,0xff,0xfe,0x0,0x0,0xef,0xff, +0xfe,0x0,0x0,0x8f,0xff,0xf8,0x0,0x0,0x8,0xee,0x80,0x0,0x0,0x0,0x0,0x2f,0xfd,0x0,0x0,0x0,0x5,0xff,0x90,0x0, +0x0,0x0,0x9f,0xf6,0x0,0x0,0x0,0xd,0xff,0x20,0x0,0x0,0x1,0xff,0xd0,0x0,0x0,0x0,0x5f,0xfa,0x0,0x0,0x0,0x8, +0xff,0x60,0x0,0x0,0x0,0xcf,0xf3,0x0,0x0,0x0,0x1f,0xfe,0x0,0x0,0x0,0x4,0xff,0xa0,0x0,0x0,0x0,0x8f,0xf7,0x0, +0x0,0x0,0xc,0xff,0x30,0x0,0x0,0x0,0xff,0xe0,0x0,0x0,0x0,0x4f,0xfb,0x0,0x0,0x0,0x7,0xff,0x70,0x0,0x0,0x0, +0xbf,0xf4,0x0,0x0,0x0,0xe,0xff,0x10,0x0,0x0,0x3,0xff,0xc0,0x0,0x0,0x0,0x7f,0xf8,0x0,0x0,0x0,0xa,0xff,0x50, +0x0,0x0,0x0,0xef,0xf1,0x0,0x0,0x0,0x3f,0xfc,0x0,0x0,0x0,0x6,0xff,0x90,0x0,0x0,0x0,0xaf,0xf5,0x0,0x0,0x0, +0xd,0xff,0x20,0x0,0x0,0x2,0xff,0xd0,0x0,0x0,0x0,0x6f,0xf9,0x0,0x0,0x0,0x4,0x88,0x30,0x0,0x0,0x0,0x0,0x0, +0x6,0xbe,0xfd,0xa3,0x0,0x0,0x0,0x0,0x2c,0xff,0xff,0xff,0xf8,0x0,0x0,0x0,0x1c,0xff,0xff,0xff,0xff,0xf8,0x0,0x0, +0x8,0xff,0xff,0xdb,0xef,0xff,0xf3,0x0,0x1,0xef,0xff,0xb0,0x2,0xef,0xff,0xa0,0x0,0x6f,0xff,0xf4,0x0,0x9,0xff,0xfe, +0x10,0x9,0xff,0xfe,0x0,0x0,0x5f,0xff,0xf4,0x0,0xcf,0xff,0xc0,0x0,0x2,0xff,0xff,0x70,0xe,0xff,0xfb,0x0,0x0,0x1f, +0xff,0xf8,0x0,0xff,0xff,0xa0,0x0,0x0,0xff,0xff,0x90,0xf,0xff,0xfa,0x0,0x0,0xf,0xff,0xf9,0x0,0xff,0xff,0xa0,0x0, +0x0,0xff,0xff,0x90,0xd,0xff,0xfb,0x0,0x0,0x1f,0xff,0xf8,0x0,0xcf,0xff,0xc0,0x0,0x2,0xff,0xff,0x60,0x9,0xff,0xfe, +0x0,0x0,0x5f,0xff,0xf3,0x0,0x5f,0xff,0xf4,0x0,0x9,0xff,0xfe,0x0,0x1,0xef,0xff,0xc1,0x3,0xff,0xff,0x90,0x0,0x7, +0xff,0xff,0xdb,0xef,0xff,0xf2,0x0,0x0,0xc,0xff,0xff,0xff,0xff,0xf7,0x0,0x0,0x0,0x1c,0xff,0xff,0xff,0xf8,0x0,0x0, +0x0,0x0,0x6,0xbe,0xfd,0xa3,0x0,0x0,0x0,0x0,0x0,0x0,0x7e,0xff,0xf0,0x0,0x0,0x0,0x1,0x59,0xef,0xff,0xff,0x0, +0x0,0x0,0x0,0x5f,0xff,0xff,0xff,0xf0,0x0,0x0,0x0,0x5,0xff,0xff,0xff,0xff,0x0,0x0,0x0,0x0,0x4b,0xbb,0xef,0xff, +0xf0,0x0,0x0,0x0,0x0,0x0,0xa,0xff,0xff,0x0,0x0,0x0,0x0,0x0,0x0,0xaf,0xff,0xf0,0x0,0x0,0x0,0x0,0x0,0xa, +0xff,0xff,0x0,0x0,0x0,0x0,0x0,0x0,0xaf,0xff,0xf0,0x0,0x0,0x0,0x0,0x0,0xa,0xff,0xff,0x0,0x0,0x0,0x0,0x0, +0x0,0xaf,0xff,0xf0,0x0,0x0,0x0,0x0,0x0,0xa,0xff,0xff,0x0,0x0,0x0,0x0,0x0,0x0,0xaf,0xff,0xf0,0x0,0x0,0x0, +0x0,0x0,0xa,0xff,0xff,0x0,0x0,0x0,0x0,0x0,0x0,0xaf,0xff,0xf0,0x0,0x0,0x0,0x0,0x0,0xa,0xff,0xff,0x0,0x0, +0x0,0x0,0x0,0x0,0xaf,0xff,0xf0,0x0,0x0,0x0,0xa,0xaa,0xad,0xff,0xff,0xaa,0xaa,0x0,0x0,0xff,0xff,0xff,0xff,0xff, +0xff,0xf0,0x0,0xf,0xff,0xff,0xff,0xff,0xff,0xff,0x0,0x0,0xff,0xff,0xff,0xff,0xff,0xff,0xf0,0x0,0x0,0x1,0x6b,0xdf, +0xec,0x82,0x0,0x0,0x0,0x4,0xdf,0xff,0xff,0xff,0xe6,0x0,0x0,0x6,0xff,0xff,0xff,0xff,0xff,0xf5,0x0,0x1,0xdf,0xff, +0xeb,0xbe,0xff,0xff,0xe0,0x0,0x2,0xdf,0xb1,0x0,0x1c,0xff,0xff,0x50,0x0,0x2,0x70,0x0,0x0,0x3f,0xff,0xf8,0x0,0x0, +0x0,0x0,0x0,0x0,0xff,0xff,0x90,0x0,0x0,0x0,0x0,0x0,0x1f,0xff,0xf8,0x0,0x0,0x0,0x0,0x0,0x5,0xff,0xff,0x50, +0x0,0x0,0x0,0x0,0x0,0xbf,0xff,0xe0,0x0,0x0,0x0,0x0,0x0,0x5f,0xff,0xf7,0x0,0x0,0x0,0x0,0x0,0x2e,0xff,0xfd, +0x0,0x0,0x0,0x0,0x0,0x1c,0xff,0xff,0x40,0x0,0x0,0x0,0x0,0xb,0xff,0xff,0x70,0x0,0x0,0x0,0x0,0xb,0xff,0xff, +0x90,0x0,0x0,0x0,0x0,0xb,0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x1b,0xff,0xff,0xb0,0x0,0x0,0x0,0x0,0x1c,0xff,0xff, +0xf8,0x99,0xaa,0xaa,0x0,0xd,0xff,0xff,0xff,0xff,0xff,0xff,0xf0,0x0,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x0,0xf,0xff, +0xff,0xff,0xff,0xff,0xff,0xf0,0x0,0x0,0x1,0x6b,0xdf,0xec,0x94,0x0,0x0,0x0,0x6,0xef,0xff,0xff,0xff,0xfb,0x10,0x0, +0x8,0xff,0xff,0xff,0xff,0xff,0xfb,0x0,0x0,0x2e,0xff,0xfb,0xad,0xff,0xff,0xf4,0x0,0x0,0x4e,0x81,0x0,0x7,0xff,0xff, +0x80,0x0,0x0,0x10,0x0,0x0,0x1f,0xff,0xf9,0x0,0x0,0x0,0x0,0x0,0x3,0xff,0xff,0x70,0x0,0x0,0x0,0x0,0x3,0xcf, +0xff,0xe1,0x0,0x0,0x0,0xa,0xbd,0xff,0xff,0xe4,0x0,0x0,0x0,0x0,0xff,0xff,0xff,0x92,0x0,0x0,0x0,0x0,0xf,0xff, +0xff,0xfb,0x40,0x0,0x0,0x0,0x0,0xff,0xff,0xff,0xff,0x70,0x0,0x0,0x0,0x0,0x13,0x7d,0xff,0xff,0x40,0x0,0x0,0x0, +0x0,0x0,0x2e,0xff,0xfb,0x0,0x0,0x0,0x0,0x0,0x0,0xaf,0xff,0xe0,0x0,0x4,0x10,0x0,0x0,0xb,0xff,0xff,0x0,0x3, +0xfe,0x50,0x0,0x6,0xff,0xff,0xc0,0x1,0xdf,0xff,0xeb,0xad,0xff,0xff,0xf6,0x0,0x2e,0xff,0xff,0xff,0xff,0xff,0xfa,0x0, +0x0,0x2b,0xff,0xff,0xff,0xff,0xf9,0x0,0x0,0x0,0x3,0x9c,0xef,0xec,0x82,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xbf,0xff, +0xff,0xa0,0x0,0x0,0x0,0x0,0x5f,0xff,0xff,0xfa,0x0,0x0,0x0,0x0,0x1d,0xff,0xff,0xff,0xa0,0x0,0x0,0x0,0x8,0xff, +0xff,0xff,0xfa,0x0,0x0,0x0,0x2,0xff,0xfa,0xff,0xff,0xa0,0x0,0x0,0x0,0xbf,0xff,0x3f,0xff,0xfa,0x0,0x0,0x0,0x5f, +0xff,0xb0,0xff,0xff,0xa0,0x0,0x0,0xd,0xff,0xf4,0xf,0xff,0xfa,0x0,0x0,0x7,0xff,0xfa,0x0,0xff,0xff,0xa0,0x0,0x2, +0xef,0xfe,0x20,0xf,0xff,0xfa,0x0,0x0,0xaf,0xff,0x80,0x0,0xff,0xff,0xa0,0x0,0x4f,0xff,0xd1,0x0,0xf,0xff,0xfa,0x0, +0xd,0xff,0xfd,0xaa,0xaa,0xff,0xff,0xfa,0x50,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf8,0xf,0xff,0xff,0xff,0xff,0xff,0xff, +0xff,0x80,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf8,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0,0xf, +0xff,0xfa,0x0,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0x0,0x0, +0x0,0xff,0xff,0xa0,0x0,0x0,0xf,0xff,0xff,0xff,0xff,0xff,0xf0,0x0,0x0,0xff,0xff,0xff,0xff,0xff,0xff,0x0,0x0,0xf, +0xff,0xff,0xff,0xff,0xff,0xf0,0x0,0x0,0xff,0xff,0xba,0xaa,0xaa,0xaa,0x0,0x0,0xf,0xff,0xf1,0x0,0x0,0x0,0x0,0x0, +0x0,0xff,0xff,0x0,0x0,0x0,0x0,0x0,0x0,0xf,0xff,0xe0,0x0,0x0,0x0,0x0,0x0,0x0,0xff,0xfe,0xae,0xed,0x93,0x0, +0x0,0x0,0xf,0xff,0xff,0xff,0xff,0xf8,0x0,0x0,0x0,0xff,0xff,0xff,0xff,0xff,0xf6,0x0,0x0,0xb,0xff,0xda,0xcf,0xff, +0xff,0xe1,0x0,0x0,0x7,0x40,0x0,0x3d,0xff,0xff,0x50,0x0,0x0,0x0,0x0,0x0,0x5f,0xff,0xf8,0x0,0x0,0x0,0x0,0x0, +0x1,0xff,0xff,0x90,0x0,0x0,0x0,0x0,0x0,0x1f,0xff,0xf9,0x0,0x1,0x50,0x0,0x0,0x5,0xff,0xff,0x60,0x0,0xaf,0x92, +0x0,0x2,0xdf,0xff,0xf2,0x0,0x6f,0xff,0xfc,0xac,0xff,0xff,0xf9,0x0,0x7,0xff,0xff,0xff,0xff,0xff,0xfc,0x10,0x0,0x4, +0xdf,0xff,0xff,0xff,0xfa,0x10,0x0,0x0,0x0,0x5a,0xde,0xfd,0xa4,0x0,0x0,0x0,0x0,0x0,0x1,0x7b,0xef,0xdb,0x60,0x0, +0x0,0x0,0x5,0xef,0xff,0xff,0xff,0xd4,0x0,0x0,0x5,0xff,0xff,0xff,0xff,0xff,0xe1,0x0,0x2,0xef,0xff,0xfd,0xbc,0xff, +0xe3,0x0,0x0,0xbf,0xff,0xf8,0x0,0x2,0xa3,0x0,0x0,0x2f,0xff,0xfa,0x0,0x0,0x0,0x0,0x0,0x7,0xff,0xff,0x30,0x0, +0x0,0x0,0x0,0x0,0xaf,0xff,0xe0,0x6,0x99,0x61,0x0,0x0,0xd,0xff,0xfb,0x3d,0xff,0xff,0xe6,0x0,0x0,0xef,0xff,0xce, +0xff,0xff,0xff,0xf5,0x0,0xf,0xff,0xff,0xff,0xff,0xff,0xff,0xe0,0x0,0xef,0xff,0xfc,0x30,0x3d,0xff,0xff,0x50,0xd,0xff, +0xff,0x10,0x0,0x4f,0xff,0xf8,0x0,0xcf,0xff,0xd0,0x0,0x1,0xff,0xff,0x90,0x8,0xff,0xff,0x10,0x0,0x1f,0xff,0xf9,0x0, +0x4f,0xff,0xf6,0x0,0x3,0xff,0xff,0x70,0x0,0xdf,0xff,0xe2,0x0,0xbf,0xff,0xf3,0x0,0x5,0xff,0xff,0xeb,0xdf,0xff,0xfb, +0x0,0x0,0x9,0xff,0xff,0xff,0xff,0xfe,0x20,0x0,0x0,0x8,0xff,0xff,0xff,0xfd,0x30,0x0,0x0,0x0,0x3,0x9d,0xfe,0xc6, +0x10,0x0,0x0,0xf,0xff,0xff,0xff,0xff,0xff,0xff,0xf0,0x0,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x0,0xf,0xff,0xff,0xff, +0xff,0xff,0xff,0xe0,0x0,0xaa,0xaa,0xaa,0xaa,0xae,0xff,0xf6,0x0,0x0,0x0,0x0,0x0,0x3,0xff,0xfa,0x0,0x0,0x0,0x0, +0x0,0x0,0xcf,0xfe,0x20,0x0,0x0,0x0,0x0,0x0,0x6f,0xff,0x70,0x0,0x0,0x0,0x0,0x0,0x1e,0xff,0xe1,0x0,0x0,0x0, +0x0,0x0,0x7,0xff,0xf8,0x0,0x0,0x0,0x0,0x0,0x0,0xdf,0xff,0x20,0x0,0x0,0x0,0x0,0x0,0x4f,0xff,0xc0,0x0,0x0, +0x0,0x0,0x0,0x9,0xff,0xf8,0x0,0x0,0x0,0x0,0x0,0x0,0xef,0xff,0x50,0x0,0x0,0x0,0x0,0x0,0x2f,0xff,0xf2,0x0, +0x0,0x0,0x0,0x0,0x6,0xff,0xff,0x0,0x0,0x0,0x0,0x0,0x0,0x8f,0xff,0xd0,0x0,0x0,0x0,0x0,0x0,0xb,0xff,0xfc, +0x0,0x0,0x0,0x0,0x0,0x0,0xcf,0xff,0xb0,0x0,0x0,0x0,0x0,0x0,0xe,0xff,0xfa,0x0,0x0,0x0,0x0,0x0,0x0,0xef, +0xff,0xa0,0x0,0x0,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0x0,0x0,0x0,0x28,0xce,0xed,0x92,0x0,0x0,0x0,0x0, +0x4e,0xff,0xff,0xff,0xf6,0x0,0x0,0x0,0x3e,0xff,0xff,0xff,0xff,0xf3,0x0,0x0,0xa,0xff,0xff,0xbc,0xff,0xff,0xa0,0x0, +0x0,0xdf,0xff,0x60,0x8,0xff,0xfd,0x0,0x0,0xf,0xff,0xf1,0x0,0x2f,0xff,0xf0,0x0,0x0,0xdf,0xff,0x10,0x0,0xff,0xfd, +0x0,0x0,0x9,0xff,0xf6,0x0,0x2f,0xff,0x80,0x0,0x0,0x2e,0xff,0xe5,0x7,0xff,0xe1,0x0,0x0,0x0,0x4e,0xff,0xfb,0xef, +0xe3,0x0,0x0,0x0,0x0,0xaf,0xff,0xff,0xfe,0x60,0x0,0x0,0x2,0xcf,0xfb,0xcf,0xff,0xff,0xb1,0x0,0x1,0xef,0xfb,0x0, +0x4c,0xff,0xff,0xa0,0x0,0x9f,0xff,0x40,0x0,0xa,0xff,0xff,0x30,0xd,0xff,0xf1,0x0,0x0,0x1f,0xff,0xf8,0x0,0xff,0xff, +0x20,0x0,0x1,0xff,0xff,0x90,0xd,0xff,0xfb,0x10,0x0,0x9f,0xff,0xf7,0x0,0x8f,0xff,0xfe,0xba,0xdf,0xff,0xff,0x20,0x1, +0xdf,0xff,0xff,0xff,0xff,0xff,0x80,0x0,0x1,0xbf,0xff,0xff,0xff,0xfe,0x70,0x0,0x0,0x0,0x49,0xde,0xfd,0xb7,0x20,0x0, +0x0,0x0,0x0,0x39,0xde,0xec,0x71,0x0,0x0,0x0,0x0,0x8f,0xff,0xff,0xff,0xe5,0x0,0x0,0x0,0x9f,0xff,0xff,0xff,0xff, +0xf5,0x0,0x0,0x3f,0xff,0xff,0xbc,0xff,0xff,0xe1,0x0,0xa,0xff,0xff,0x40,0x6,0xff,0xff,0x80,0x0,0xdf,0xff,0xc0,0x0, +0xb,0xff,0xfe,0x0,0xf,0xff,0xfa,0x0,0x0,0x6f,0xff,0xf3,0x0,0xef,0xff,0xb0,0x0,0x4,0xff,0xff,0x60,0xc,0xff,0xff, +0x40,0x1,0xdf,0xff,0xf8,0x0,0x8f,0xff,0xff,0xbb,0xef,0xff,0xff,0x90,0x2,0xef,0xff,0xff,0xff,0xef,0xff,0xf9,0x0,0x4, +0xef,0xff,0xff,0xe4,0xff,0xff,0x80,0x0,0x2,0x8d,0xee,0x92,0x2f,0xff,0xf7,0x0,0x0,0x0,0x0,0x0,0x4,0xff,0xff,0x40, +0x0,0x0,0x0,0x0,0x0,0x8f,0xff,0xf1,0x0,0x0,0x0,0x0,0x0,0x1e,0xff,0xfb,0x0,0x0,0x9,0xb1,0x0,0x1b,0xff,0xff, +0x50,0x0,0x9,0xff,0xfb,0xbe,0xff,0xff,0xb0,0x0,0x6,0xff,0xff,0xff,0xff,0xff,0xd1,0x0,0x0,0x8,0xff,0xff,0xff,0xff, +0xb1,0x0,0x0,0x0,0x2,0x8c,0xef,0xda,0x40,0x0,0x0,0x0,0x0,0x8,0xee,0x80,0x0,0x0,0x8f,0xff,0xf8,0x0,0x0,0xef, +0xff,0xfe,0x0,0x0,0xef,0xff,0xfe,0x0,0x0,0x8f,0xff,0xf8,0x0,0x0,0x8,0xee,0x80,0x0,0x0,0x0,0x0,0x0,0x0,0x0, +0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x19,0xee,0x91,0x0,0x0,0x9f,0xff,0xf9,0x0, +0x0,0xef,0xff,0xfe,0x0,0x0,0xef,0xff,0xfe,0x0,0x0,0x8f,0xff,0xf8,0x0,0x0,0x8,0xee,0x80,0x0,0x0,0x8,0xee,0x80, +0x0,0x8,0xff,0xff,0x80,0x0,0xef,0xff,0xfe,0x0,0xe,0xff,0xff,0xe0,0x0,0x8f,0xff,0xf8,0x0,0x0,0x8e,0xe8,0x0,0x0, +0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1,0xae, +0xe8,0x0,0x0,0xbf,0xff,0xf5,0x0,0xe,0xff,0xff,0xc0,0x0,0xbf,0xff,0xfe,0x0,0x1,0xae,0xff,0xf0,0x0,0x0,0x2f,0xfd, +0x0,0x0,0x7,0xff,0x90,0x0,0x5,0xff,0xf3,0x0,0x2a,0xff,0xf8,0x0,0x4,0xff,0xf9,0x0,0x0,0xd,0xc5,0x0,0x0,0x0, +0x10,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x34,0x0,0x0,0x0,0x0,0x0,0x0,0x17,0xdf,0x80,0x0,0x0,0x0, +0x0,0x4,0xaf,0xff,0xf8,0x0,0x0,0x0,0x2,0x8e,0xff,0xff,0xff,0x80,0x0,0x1,0x6b,0xff,0xff,0xff,0xfc,0x71,0x0,0x39, +0xef,0xff,0xff,0xfb,0x72,0x0,0x0,0xf,0xff,0xff,0xfc,0x72,0x0,0x0,0x0,0x0,0xff,0xff,0xd4,0x0,0x0,0x0,0x0,0x0, +0xf,0xff,0xff,0xfb,0x61,0x0,0x0,0x0,0x0,0x4a,0xff,0xff,0xff,0xfb,0x61,0x0,0x0,0x0,0x1,0x7c,0xff,0xff,0xff,0xfb, +0x61,0x0,0x0,0x0,0x3,0x9e,0xff,0xff,0xff,0x80,0x0,0x0,0x0,0x0,0x5,0xbf,0xff,0xf8,0x0,0x0,0x0,0x0,0x0,0x0, +0x28,0xdf,0x80,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x44,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, +0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xf,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x0,0xff,0xff, +0xff,0xff,0xff,0xff,0xff,0xf0,0xf,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x0,0xaa,0xaa,0xaa,0xaa,0xaa,0xaa,0xaa,0xa0,0x0, +0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, +0x0,0xaa,0xaa,0xaa,0xaa,0xaa,0xaa,0xaa,0xa0,0xf,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x0,0xff,0xff,0xff,0xff,0xff,0xff, +0xff,0xf0,0xf,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, +0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, +0x0,0x0,0x0,0x0,0x0,0x6,0x10,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff,0xa4,0x0,0x0,0x0,0x0,0x0,0x0,0xf,0xff, +0xfd,0x72,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xff,0xfb,0x50,0x0,0x0,0x0,0x4,0x9e,0xff,0xff,0xff,0xe9,0x30,0x0,0x0, +0x0,0x4,0x9e,0xff,0xff,0xff,0xc6,0x10,0x0,0x0,0x0,0x4,0xae,0xff,0xff,0xf8,0x0,0x0,0x0,0x0,0x0,0x19,0xff,0xff, +0x80,0x0,0x0,0x0,0x3,0x8e,0xff,0xff,0xf8,0x0,0x0,0x3,0x8d,0xff,0xff,0xff,0xd7,0x10,0x3,0x8d,0xff,0xff,0xff,0xe9, +0x40,0x0,0x0,0xff,0xff,0xff,0xfc,0x61,0x0,0x0,0x0,0xf,0xff,0xfe,0x82,0x0,0x0,0x0,0x0,0x0,0xff,0xb5,0x0,0x0, +0x0,0x0,0x0,0x0,0x7,0x10,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, +0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1,0x6b,0xef,0xeb,0x60,0x0,0x0,0x5,0xef, +0xff,0xff,0xff,0xd2,0x0,0x7,0xff,0xff,0xff,0xff,0xff,0xd0,0x0,0x4e,0xff,0xda,0xcf,0xff,0xff,0x50,0x0,0x3d,0x70,0x0, +0x7f,0xff,0xf8,0x0,0x0,0x0,0x0,0x1,0xff,0xff,0x90,0x0,0x0,0x0,0x0,0x3f,0xff,0xf7,0x0,0x0,0x0,0x0,0x1c,0xff, +0xfe,0x10,0x0,0x0,0x0,0xb,0xff,0xff,0x40,0x0,0x0,0x0,0x9,0xff,0xff,0x50,0x0,0x0,0x0,0x6,0xff,0xff,0x60,0x0, +0x0,0x0,0x0,0xdf,0xff,0x90,0x0,0x0,0x0,0x0,0x3f,0xff,0xf2,0x0,0x0,0x0,0x0,0x4,0xff,0xfe,0x0,0x0,0x0,0x0, +0x0,0x2,0x22,0x20,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x19,0xee,0x91,0x0,0x0,0x0,0x0,0x9, +0xff,0xff,0x90,0x0,0x0,0x0,0x0,0xef,0xff,0xfe,0x0,0x0,0x0,0x0,0xe,0xff,0xff,0xe0,0x0,0x0,0x0,0x0,0x8f,0xff, +0xf8,0x0,0x0,0x0,0x0,0x0,0x8e,0xe8,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x2,0x7a,0xde,0xfe,0xda,0x61,0x0,0x0, +0x0,0x0,0x0,0x0,0x0,0x0,0x3b,0xff,0xff,0xff,0xff,0xff,0xe7,0x0,0x0,0x0,0x0,0x0,0x0,0x1,0xaf,0xff,0xff,0xfe, +0xde,0xff,0xff,0xfc,0x10,0x0,0x0,0x0,0x0,0x2,0xcf,0xff,0xe8,0x30,0x0,0x1,0x6c,0xff,0xfd,0x10,0x0,0x0,0x0,0x2, +0xef,0xff,0x81,0x0,0x0,0x0,0x0,0x5,0xef,0xfb,0x0,0x0,0x0,0x1,0xcf,0xfe,0x40,0x0,0x0,0x0,0x0,0x0,0x4,0xff, +0xf6,0x0,0x0,0x0,0x9f,0xfe,0x30,0x0,0x0,0x0,0x0,0x0,0x0,0x7,0xff,0xd0,0x0,0x0,0x3f,0xff,0x50,0x0,0x0,0x0, +0x0,0x0,0x0,0x0,0xe,0xff,0x30,0x0,0xa,0xff,0xa0,0x0,0x0,0x3a,0xee,0x91,0xbb,0xa0,0x0,0x8f,0xf8,0x0,0x2,0xff, +0xf2,0x0,0x0,0x6f,0xff,0xff,0xcf,0xfb,0x0,0x4,0xff,0xa0,0x0,0x6f,0xfb,0x0,0x0,0x5f,0xff,0xfe,0xff,0xff,0x80,0x0, +0x2f,0xfc,0x0,0xa,0xff,0x70,0x0,0x1e,0xff,0x91,0x8,0xff,0xf5,0x0,0x0,0xff,0xd0,0x0,0xcf,0xf3,0x0,0x6,0xff,0xc0, +0x0,0x5f,0xff,0x20,0x0,0x1f,0xfc,0x0,0xe,0xff,0x20,0x0,0xbf,0xf5,0x0,0x8,0xff,0xe0,0x0,0x2,0xff,0xb0,0x0,0xff, +0xf0,0x0,0xe,0xff,0x20,0x0,0xbf,0xfa,0x0,0x0,0x6f,0xf8,0x0,0xe,0xff,0x10,0x0,0xff,0xf1,0x0,0xe,0xff,0x80,0x0, +0xc,0xff,0x30,0x0,0xdf,0xf2,0x0,0xd,0xff,0x70,0x1a,0xff,0xf6,0x0,0x6,0xff,0xc0,0x0,0xc,0xff,0x50,0x0,0x9f,0xff, +0xee,0xff,0xff,0xc2,0x17,0xff,0xf4,0x0,0x0,0x8f,0xf9,0x0,0x2,0xef,0xff,0xff,0x9f,0xff,0xff,0xff,0xf7,0x0,0x0,0x4, +0xff,0xe2,0x0,0x2,0xae,0xeb,0x40,0x9f,0xff,0xff,0xe5,0x0,0x0,0x0,0xd,0xff,0xa0,0x0,0x0,0x0,0x0,0x0,0x5a,0xca, +0x61,0x0,0x0,0x0,0x0,0x5f,0xff,0x80,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xaf,0xff,0xa1,0x0, +0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1,0xcf,0xff,0xe9,0x41,0x0,0x1,0x48,0x80,0x0,0x0,0x0,0x0,0x0, +0x0,0x1,0xaf,0xff,0xff,0xfe,0xde,0xff,0xfe,0x10,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x5c,0xff,0xff,0xff,0xff,0xff,0xd3, +0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x3,0x7b,0xde,0xfe,0xc9,0x40,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xd,0xff, +0xff,0xd0,0x0,0x0,0x0,0x0,0x0,0x0,0x3f,0xff,0xff,0xf3,0x0,0x0,0x0,0x0,0x0,0x0,0x7f,0xff,0xff,0xf8,0x0,0x0, +0x0,0x0,0x0,0x0,0xcf,0xfe,0xff,0xfd,0x0,0x0,0x0,0x0,0x0,0x2,0xff,0xfa,0xbf,0xff,0x20,0x0,0x0,0x0,0x0,0x6, +0xff,0xf6,0x8f,0xff,0x70,0x0,0x0,0x0,0x0,0xb,0xff,0xf2,0x4f,0xff,0xc0,0x0,0x0,0x0,0x0,0x1f,0xff,0xe0,0x1f,0xff, +0xf1,0x0,0x0,0x0,0x0,0x5f,0xff,0xa0,0xc,0xff,0xf6,0x0,0x0,0x0,0x0,0xaf,0xff,0x60,0x8,0xff,0xfb,0x0,0x0,0x0, +0x0,0xef,0xff,0x20,0x4,0xff,0xff,0x10,0x0,0x0,0x5,0xff,0xfd,0x0,0x0,0xef,0xff,0x50,0x0,0x0,0x9,0xff,0xff,0xaa, +0xaa,0xff,0xff,0xa0,0x0,0x0,0xe,0xff,0xff,0xff,0xff,0xff,0xff,0xe0,0x0,0x0,0x4f,0xff,0xff,0xff,0xff,0xff,0xff,0xf4, +0x0,0x0,0x8f,0xff,0xff,0xff,0xff,0xff,0xff,0xf9,0x0,0x0,0xdf,0xff,0x90,0x0,0x0,0xa,0xff,0xfd,0x0,0x3,0xff,0xff, +0x50,0x0,0x0,0x6,0xff,0xff,0x30,0x7,0xff,0xff,0x10,0x0,0x0,0x2,0xff,0xff,0x80,0xc,0xff,0xfc,0x0,0x0,0x0,0x0, +0xdf,0xff,0xd0,0x2f,0xff,0xf8,0x0,0x0,0x0,0x0,0x9f,0xff,0xf2,0x0,0xff,0xff,0xff,0xff,0xec,0x94,0x0,0x0,0x0,0xf, +0xff,0xff,0xff,0xff,0xff,0xfc,0x20,0x0,0x0,0xff,0xff,0xff,0xff,0xff,0xff,0xfd,0x10,0x0,0xf,0xff,0xfd,0xaa,0xbd,0xff, +0xff,0xf6,0x0,0x0,0xff,0xff,0xa0,0x0,0x8,0xff,0xff,0x90,0x0,0xf,0xff,0xfa,0x0,0x0,0x1f,0xff,0xf9,0x0,0x0,0xff, +0xff,0xa0,0x0,0x2,0xff,0xff,0x70,0x0,0xf,0xff,0xfa,0x0,0x1,0xaf,0xff,0xe1,0x0,0x0,0xff,0xff,0xda,0xab,0xef,0xff, +0xf6,0x0,0x0,0xf,0xff,0xff,0xff,0xff,0xff,0xe5,0x0,0x0,0x0,0xff,0xff,0xff,0xff,0xff,0xff,0xc5,0x0,0x0,0xf,0xff, +0xff,0xff,0xff,0xff,0xff,0xf7,0x0,0x0,0xff,0xff,0xa0,0x0,0x26,0xef,0xff,0xf2,0x0,0xf,0xff,0xfa,0x0,0x0,0x4,0xff, +0xff,0x70,0x0,0xff,0xff,0xa0,0x0,0x0,0x1f,0xff,0xf9,0x0,0xf,0xff,0xfa,0x0,0x0,0x3,0xff,0xff,0x90,0x0,0xff,0xff, +0xa0,0x0,0x2,0xcf,0xff,0xf6,0x0,0xf,0xff,0xfd,0xaa,0xac,0xff,0xff,0xfe,0x10,0x0,0xff,0xff,0xff,0xff,0xff,0xff,0xff, +0x50,0x0,0xf,0xff,0xff,0xff,0xff,0xff,0xfd,0x50,0x0,0x0,0xff,0xff,0xff,0xff,0xed,0xa6,0x0,0x0,0x0,0x0,0x0,0x0, +0x16,0xbd,0xfe,0xc8,0x20,0x0,0x0,0x0,0x7,0xef,0xff,0xff,0xff,0xf9,0x10,0x0,0x1,0xaf,0xff,0xff,0xff,0xff,0xff,0xa0, +0x0,0xa,0xff,0xff,0xfd,0xbb,0xef,0xfe,0x30,0x0,0x6f,0xff,0xfe,0x50,0x0,0x17,0xf4,0x0,0x0,0xdf,0xff,0xf3,0x0,0x0, +0x0,0x20,0x0,0x5,0xff,0xff,0x80,0x0,0x0,0x0,0x0,0x0,0x9,0xff,0xff,0x20,0x0,0x0,0x0,0x0,0x0,0xc,0xff,0xfd, +0x0,0x0,0x0,0x0,0x0,0x0,0xe,0xff,0xfb,0x0,0x0,0x0,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0x0,0x0,0x0, +0xe,0xff,0xfb,0x0,0x0,0x0,0x0,0x0,0x0,0xd,0xff,0xfc,0x0,0x0,0x0,0x0,0x0,0x0,0xa,0xff,0xff,0x10,0x0,0x0, +0x0,0x0,0x0,0x6,0xff,0xff,0x70,0x0,0x0,0x0,0x0,0x0,0x1,0xef,0xff,0xe2,0x0,0x0,0x0,0x42,0x0,0x0,0x8f,0xff, +0xfd,0x40,0x0,0x18,0xfc,0x10,0x0,0x1c,0xff,0xff,0xfd,0xbb,0xef,0xff,0xb0,0x0,0x2,0xdf,0xff,0xff,0xff,0xff,0xff,0xc1, +0x0,0x0,0x19,0xff,0xff,0xff,0xff,0xf9,0x10,0x0,0x0,0x0,0x28,0xce,0xfe,0xc8,0x30,0x0,0x0,0xff,0xff,0xff,0xfd,0xb7, +0x20,0x0,0x0,0x0,0x0,0xff,0xff,0xff,0xff,0xff,0xfa,0x20,0x0,0x0,0x0,0xff,0xff,0xff,0xff,0xff,0xff,0xe3,0x0,0x0, +0x0,0xff,0xff,0xda,0xbe,0xff,0xff,0xfe,0x20,0x0,0x0,0xff,0xff,0xa0,0x0,0x4d,0xff,0xff,0xa0,0x0,0x0,0xff,0xff,0xa0, +0x0,0x1,0xdf,0xff,0xf3,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x5f,0xff,0xf7,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0xe,0xff, +0xfb,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0xc,0xff,0xfd,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0xa,0xff,0xfe,0x0,0x0,0xff, +0xff,0xa0,0x0,0x0,0xa,0xff,0xff,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0xb,0xff,0xfe,0x0,0x0,0xff,0xff,0xa0,0x0,0x0, +0xc,0xff,0xfd,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x1f,0xff,0xfb,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x6f,0xff,0xf7,0x0, +0x0,0xff,0xff,0xa0,0x0,0x2,0xef,0xff,0xf2,0x0,0x0,0xff,0xff,0xa0,0x0,0x5e,0xff,0xff,0xa0,0x0,0x0,0xff,0xff,0xda, +0xbe,0xff,0xff,0xfe,0x10,0x0,0x0,0xff,0xff,0xff,0xff,0xff,0xff,0xe3,0x0,0x0,0x0,0xff,0xff,0xff,0xff,0xff,0xfb,0x20, +0x0,0x0,0x0,0xff,0xff,0xff,0xfe,0xb8,0x30,0x0,0x0,0x0,0x0,0xff,0xff,0xff,0xff,0xff,0xff,0xf0,0x0,0xf,0xff,0xff, +0xff,0xff,0xff,0xff,0x0,0x0,0xff,0xff,0xff,0xff,0xff,0xff,0xf0,0x0,0xf,0xff,0xfd,0xaa,0xaa,0xaa,0xaa,0x0,0x0,0xff, +0xff,0xa0,0x0,0x0,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0, +0xf,0xff,0xfa,0x0,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xda,0xaa,0xaa,0xa5,0x0,0x0,0xf,0xff,0xff,0xff,0xff,0xff,0x80, +0x0,0x0,0xff,0xff,0xff,0xff,0xff,0xf8,0x0,0x0,0xf,0xff,0xff,0xff,0xff,0xff,0x80,0x0,0x0,0xff,0xff,0xa0,0x0,0x0, +0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0,0xf,0xff,0xfa,0x0, +0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0,0xf,0xff,0xfd,0xaa,0xaa,0xaa,0xaa,0x50,0x0,0xff,0xff, +0xff,0xff,0xff,0xff,0xf8,0x0,0xf,0xff,0xff,0xff,0xff,0xff,0xff,0x80,0x0,0xff,0xff,0xff,0xff,0xff,0xff,0xf8,0x0,0x0, +0xff,0xff,0xff,0xff,0xff,0xff,0xf0,0x0,0xff,0xff,0xff,0xff,0xff,0xff,0xf0,0x0,0xff,0xff,0xff,0xff,0xff,0xff,0xf0,0x0, +0xff,0xff,0xda,0xaa,0xaa,0xaa,0xa0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0, +0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0, +0xff,0xff,0xda,0xaa,0xaa,0xaa,0x0,0x0,0xff,0xff,0xff,0xff,0xff,0xff,0x0,0x0,0xff,0xff,0xff,0xff,0xff,0xff,0x0,0x0, +0xff,0xff,0xff,0xff,0xff,0xff,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0, +0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0, +0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0, +0x0,0x0,0x5,0xad,0xee,0xdb,0x61,0x0,0x0,0x0,0x0,0x6,0xdf,0xff,0xff,0xff,0xfd,0x50,0x0,0x0,0x0,0x9f,0xff,0xff, +0xff,0xff,0xff,0xf5,0x0,0x0,0x9,0xff,0xff,0xfe,0xbb,0xdf,0xff,0x90,0x0,0x0,0x5f,0xff,0xfe,0x50,0x0,0x5,0xe9,0x0, +0x0,0x0,0xdf,0xff,0xf3,0x0,0x0,0x0,0x10,0x0,0x0,0x5,0xff,0xff,0x80,0x0,0x0,0x0,0x0,0x0,0x0,0x9,0xff,0xff, +0x20,0x0,0x0,0x0,0x0,0x0,0x0,0xc,0xff,0xfd,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xe,0xff,0xfb,0x0,0x0,0xef,0xff, +0xff,0xff,0x0,0xf,0xff,0xfa,0x0,0x0,0xef,0xff,0xff,0xff,0x0,0xe,0xff,0xfb,0x0,0x0,0xef,0xff,0xff,0xff,0x0,0xd, +0xff,0xfc,0x0,0x0,0x9a,0xad,0xff,0xff,0x0,0xa,0xff,0xff,0x10,0x0,0x0,0xa,0xff,0xff,0x0,0x6,0xff,0xff,0x70,0x0, +0x0,0xa,0xff,0xff,0x0,0x1,0xef,0xff,0xe2,0x0,0x0,0xa,0xff,0xff,0x0,0x0,0x8f,0xff,0xfe,0x50,0x0,0xb,0xff,0xff, +0x0,0x0,0xc,0xff,0xff,0xfd,0xbb,0xdf,0xff,0xff,0x0,0x0,0x1,0xcf,0xff,0xff,0xff,0xff,0xff,0xfe,0x0,0x0,0x0,0x8, +0xef,0xff,0xff,0xff,0xff,0xa2,0x0,0x0,0x0,0x0,0x16,0xbd,0xff,0xdb,0x72,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0, +0xff,0xff,0xa0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0xff,0xff,0xa0, +0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0xf,0xff, +0xfa,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0xf,0xff,0xfa,0x0,0x0, +0x0,0xf,0xff,0xfa,0x0,0x0,0xff,0xff,0xda,0xaa,0xaa,0xaa,0xff,0xff,0xa0,0x0,0xf,0xff,0xff,0xff,0xff,0xff,0xff,0xff, +0xfa,0x0,0x0,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xa0,0x0,0xf,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfa,0x0,0x0, +0xff,0xff,0xa0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0xff,0xff,0xa0, +0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0, +0xff,0xff,0xa0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0xff,0xff,0xa0, +0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0xff, +0xff,0xa0,0x0,0xf,0xff,0xfa,0x0,0x0,0xff,0xff,0xa0,0x0,0xf,0xff,0xfa,0x0,0x0,0xff,0xff,0xa0,0x0,0xf,0xff,0xfa, +0x0,0x0,0xff,0xff,0xa0,0x0,0xf,0xff,0xfa,0x0,0x0,0xff,0xff,0xa0,0x0,0xf,0xff,0xfa,0x0,0x0,0xff,0xff,0xa0,0x0, +0xf,0xff,0xfa,0x0,0x0,0xff,0xff,0xa0,0x0,0xf,0xff,0xfa,0x0,0x0,0xff,0xff,0xa0,0x0,0xf,0xff,0xfa,0x0,0x0,0xff, +0xff,0xa0,0x0,0xf,0xff,0xfa,0x0,0x0,0xff,0xff,0xa0,0x0,0xf,0xff,0xfa,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0x0, +0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0x0, +0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0x0, +0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0x0, +0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0x0, +0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0x0,0x0,0x1f,0xff,0xf9,0x0,0x0,0x27,0x0, +0x0,0x3f,0xff,0xf7,0x0,0x5,0xef,0x60,0x0,0xaf,0xff,0xf3,0x0,0x6f,0xff,0xfd,0xbd,0xff,0xff,0xd0,0x0,0x1d,0xff,0xff, +0xff,0xff,0xff,0x40,0x0,0x2,0xbf,0xff,0xff,0xff,0xf6,0x0,0x0,0x0,0x5,0xad,0xee,0xc9,0x20,0x0,0x0,0x0,0xff,0xff, +0xa0,0x0,0x0,0x4f,0xff,0xfb,0x0,0x0,0xff,0xff,0xa0,0x0,0x1,0xef,0xff,0xe1,0x0,0x0,0xff,0xff,0xa0,0x0,0xb,0xff, +0xff,0x40,0x0,0x0,0xff,0xff,0xa0,0x0,0x7f,0xff,0xf7,0x0,0x0,0x0,0xff,0xff,0xa0,0x3,0xff,0xff,0xb0,0x0,0x0,0x0, +0xff,0xff,0xa0,0x1d,0xff,0xfd,0x10,0x0,0x0,0x0,0xff,0xff,0xa0,0xaf,0xff,0xf3,0x0,0x0,0x0,0x0,0xff,0xff,0xa6,0xff, +0xff,0x70,0x0,0x0,0x0,0x0,0xff,0xff,0xce,0xff,0xfe,0x10,0x0,0x0,0x0,0x0,0xff,0xff,0xff,0xff,0xff,0x70,0x0,0x0, +0x0,0x0,0xff,0xff,0xff,0xff,0xff,0xe2,0x0,0x0,0x0,0x0,0xff,0xff,0xff,0xff,0xff,0xfa,0x0,0x0,0x0,0x0,0xff,0xff, +0xff,0xb9,0xff,0xff,0x40,0x0,0x0,0x0,0xff,0xff,0xfe,0x11,0xef,0xff,0xc0,0x0,0x0,0x0,0xff,0xff,0xf4,0x0,0x7f,0xff, +0xf7,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0xd,0xff,0xfe,0x10,0x0,0x0,0xff,0xff,0xa0,0x0,0x4,0xff,0xff,0x90,0x0,0x0, +0xff,0xff,0xa0,0x0,0x0,0xbf,0xff,0xf3,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x2f,0xff,0xfc,0x0,0x0,0xff,0xff,0xa0,0x0, +0x0,0x9,0xff,0xff,0x60,0x0,0xff,0xff,0xa0,0x0,0x0,0x1,0xef,0xff,0xe1,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0, +0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0, +0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0, +0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0, +0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0, +0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0, +0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xda,0xaa,0xaa,0xaa,0xa0,0x0,0xff,0xff,0xff,0xff,0xff,0xff,0xf0,0x0, +0xff,0xff,0xff,0xff,0xff,0xff,0xf0,0x0,0xff,0xff,0xff,0xff,0xff,0xff,0xf0,0x0,0xff,0xff,0xfa,0x0,0x0,0x0,0x0,0xef, +0xff,0xfa,0x0,0x0,0xff,0xff,0xfe,0x10,0x0,0x0,0x4,0xff,0xff,0xfa,0x0,0x0,0xff,0xff,0xff,0x50,0x0,0x0,0x9,0xff, +0xff,0xfa,0x0,0x0,0xff,0xff,0xff,0xa0,0x0,0x0,0xe,0xff,0xff,0xfa,0x0,0x0,0xff,0xff,0xff,0xe1,0x0,0x0,0x4f,0xff, +0xff,0xfa,0x0,0x0,0xff,0xff,0xff,0xf5,0x0,0x0,0x9f,0xff,0xff,0xfa,0x0,0x0,0xff,0xff,0xdf,0xfa,0x0,0x0,0xef,0xfb, +0xff,0xfa,0x0,0x0,0xff,0xff,0x9f,0xff,0x10,0x4,0xff,0xf8,0xff,0xfa,0x0,0x0,0xff,0xff,0x6f,0xff,0x60,0x9,0xff,0xb9, +0xff,0xfa,0x0,0x0,0xff,0xff,0x6b,0xff,0xb0,0xe,0xff,0x6b,0xff,0xfa,0x0,0x0,0xff,0xff,0x86,0xff,0xe1,0x3f,0xff,0x1d, +0xff,0xfa,0x0,0x0,0xff,0xff,0x81,0xff,0xf4,0x8f,0xfb,0xe,0xff,0xfa,0x0,0x0,0xff,0xff,0x90,0xbf,0xf9,0xcf,0xf5,0xf, +0xff,0xfa,0x0,0x0,0xff,0xff,0xa0,0x6f,0xfe,0xff,0xe1,0xf,0xff,0xfa,0x0,0x0,0xff,0xff,0xa0,0x1f,0xff,0xff,0xa0,0xf, +0xff,0xfa,0x0,0x0,0xff,0xff,0xa0,0xa,0xff,0xff,0x50,0xf,0xff,0xfa,0x0,0x0,0xff,0xff,0xa0,0x5,0xff,0xfe,0x0,0xf, +0xff,0xfa,0x0,0x0,0xff,0xff,0xa0,0x1,0xef,0xf9,0x0,0xf,0xff,0xfa,0x0,0x0,0xff,0xff,0xa0,0x0,0xaf,0xf4,0x0,0xf, +0xff,0xfa,0x0,0x0,0xff,0xff,0xa0,0x0,0x13,0x30,0x0,0xf,0xff,0xfa,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0xf, +0xff,0xfa,0x0,0x0,0xff,0xff,0xf3,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0xf,0xff,0xff,0xb0,0x0,0x0,0xf,0xff,0xfa,0x0, +0x0,0xff,0xff,0xff,0x40,0x0,0x0,0xff,0xff,0xa0,0x0,0xf,0xff,0xff,0xfb,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0xff,0xff, +0xff,0xf4,0x0,0x0,0xff,0xff,0xa0,0x0,0xf,0xff,0xff,0xff,0xc0,0x0,0xf,0xff,0xfa,0x0,0x0,0xff,0xff,0xbf,0xff,0x50, +0x0,0xff,0xff,0xa0,0x0,0xf,0xff,0xf5,0xff,0xfc,0x0,0xf,0xff,0xfa,0x0,0x0,0xff,0xff,0x4a,0xff,0xf5,0x0,0xef,0xff, +0xa0,0x0,0xf,0xff,0xf6,0x3f,0xff,0xd0,0xd,0xff,0xfa,0x0,0x0,0xff,0xff,0x70,0xbf,0xff,0x60,0xcf,0xff,0xa0,0x0,0xf, +0xff,0xf9,0x3,0xff,0xfd,0xb,0xff,0xfa,0x0,0x0,0xff,0xff,0x90,0xb,0xff,0xf4,0xaf,0xff,0xa0,0x0,0xf,0xff,0xfa,0x0, +0x3f,0xff,0xb9,0xff,0xfa,0x0,0x0,0xff,0xff,0xa0,0x0,0xaf,0xff,0xbf,0xff,0xa0,0x0,0xf,0xff,0xfa,0x0,0x2,0xff,0xff, +0xff,0xfa,0x0,0x0,0xff,0xff,0xa0,0x0,0xa,0xff,0xff,0xff,0xa0,0x0,0xf,0xff,0xfa,0x0,0x0,0x2f,0xff,0xff,0xfa,0x0, +0x0,0xff,0xff,0xa0,0x0,0x0,0x9f,0xff,0xff,0xa0,0x0,0xf,0xff,0xfa,0x0,0x0,0x2,0xff,0xff,0xfa,0x0,0x0,0xff,0xff, +0xa0,0x0,0x0,0x8,0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x49,0xde,0xfe,0xc8,0x20,0x0,0x0,0x0,0x0,0x2,0xcf,0xff,0xff, +0xff,0xff,0x80,0x0,0x0,0x0,0x3,0xef,0xff,0xff,0xff,0xff,0xff,0xb1,0x0,0x0,0x2,0xef,0xff,0xff,0xcb,0xdf,0xff,0xff, +0xa0,0x0,0x0,0xaf,0xff,0xfb,0x20,0x0,0x5e,0xff,0xff,0x40,0x0,0x2f,0xff,0xfd,0x10,0x0,0x0,0x4f,0xff,0xfb,0x0,0x7, +0xff,0xff,0x50,0x0,0x0,0x0,0xbf,0xff,0xf2,0x0,0xbf,0xff,0xf1,0x0,0x0,0x0,0x6,0xff,0xff,0x50,0xd,0xff,0xfc,0x0, +0x0,0x0,0x0,0x2f,0xff,0xf8,0x0,0xef,0xff,0xb0,0x0,0x0,0x0,0x1,0xff,0xff,0x90,0xf,0xff,0xfa,0x0,0x0,0x0,0x0, +0xf,0xff,0xf9,0x0,0xef,0xff,0xb0,0x0,0x0,0x0,0x1,0xff,0xff,0x90,0xd,0xff,0xfc,0x0,0x0,0x0,0x0,0x3f,0xff,0xf7, +0x0,0xaf,0xff,0xf1,0x0,0x0,0x0,0x7,0xff,0xff,0x50,0x6,0xff,0xff,0x60,0x0,0x0,0x0,0xcf,0xff,0xf1,0x0,0x1f,0xff, +0xfd,0x10,0x0,0x0,0x5f,0xff,0xfa,0x0,0x0,0x9f,0xff,0xfc,0x20,0x0,0x5f,0xff,0xff,0x30,0x0,0x1,0xdf,0xff,0xff,0xcb, +0xdf,0xff,0xff,0x90,0x0,0x0,0x3,0xef,0xff,0xff,0xff,0xff,0xff,0xa0,0x0,0x0,0x0,0x2,0xbf,0xff,0xff,0xff,0xff,0x80, +0x0,0x0,0x0,0x0,0x0,0x49,0xce,0xfe,0xb7,0x20,0x0,0x0,0x0,0x0,0xff,0xff,0xff,0xff,0xec,0x95,0x0,0x0,0x0,0xf, +0xff,0xff,0xff,0xff,0xff,0xfd,0x40,0x0,0x0,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0x40,0x0,0xf,0xff,0xfd,0xaa,0xbd,0xff, +0xff,0xfd,0x0,0x0,0xff,0xff,0xa0,0x0,0x3,0xcf,0xff,0xf5,0x0,0xf,0xff,0xfa,0x0,0x0,0x3,0xff,0xff,0x80,0x0,0xff, +0xff,0xa0,0x0,0x0,0xf,0xff,0xf9,0x0,0xf,0xff,0xfa,0x0,0x0,0x2,0xff,0xff,0x90,0x0,0xff,0xff,0xa0,0x0,0x0,0x6f, +0xff,0xf7,0x0,0xf,0xff,0xfa,0x0,0x0,0x4e,0xff,0xff,0x30,0x0,0xff,0xff,0xda,0xaa,0xcf,0xff,0xff,0xb0,0x0,0xf,0xff, +0xff,0xff,0xff,0xff,0xff,0xd1,0x0,0x0,0xff,0xff,0xff,0xff,0xff,0xff,0xa1,0x0,0x0,0xf,0xff,0xff,0xff,0xfe,0xc8,0x30, +0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff,0xff, +0xa0,0x0,0x0,0x0,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0x0, +0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, +0x49,0xde,0xfe,0xc8,0x20,0x0,0x0,0x0,0x0,0x2,0xcf,0xff,0xff,0xff,0xff,0x80,0x0,0x0,0x0,0x3,0xef,0xff,0xff,0xff, +0xff,0xff,0xb1,0x0,0x0,0x2,0xef,0xff,0xff,0xcb,0xdf,0xff,0xff,0xa0,0x0,0x0,0xaf,0xff,0xfb,0x20,0x0,0x5e,0xff,0xff, +0x40,0x0,0x2f,0xff,0xfd,0x10,0x0,0x0,0x4f,0xff,0xfb,0x0,0x7,0xff,0xff,0x50,0x0,0x0,0x0,0xbf,0xff,0xf2,0x0,0xbf, +0xff,0xf0,0x0,0x0,0x0,0x6,0xff,0xff,0x50,0xd,0xff,0xfc,0x0,0x0,0x0,0x0,0x2f,0xff,0xf8,0x0,0xef,0xff,0xa0,0x0, +0x0,0x0,0x1,0xff,0xff,0x90,0xf,0xff,0xfa,0x0,0x0,0x0,0x0,0xf,0xff,0xf9,0x0,0xef,0xff,0xb0,0x0,0x0,0x0,0x1, +0xff,0xff,0x90,0xd,0xff,0xfc,0x0,0x0,0x0,0x0,0x3f,0xff,0xf7,0x0,0xaf,0xff,0xf1,0x0,0x0,0x0,0x7,0xff,0xff,0x50, +0x6,0xff,0xff,0x60,0x0,0x0,0x0,0xcf,0xff,0xf1,0x0,0x1f,0xff,0xfd,0x10,0x0,0x0,0x5f,0xff,0xfa,0x0,0x0,0x9f,0xff, +0xfc,0x20,0x0,0x5f,0xff,0xff,0x30,0x0,0x1,0xdf,0xff,0xff,0xcb,0xdf,0xff,0xff,0x90,0x0,0x0,0x3,0xef,0xff,0xff,0xff, +0xff,0xff,0xa0,0x0,0x0,0x0,0x2,0xbf,0xff,0xff,0xff,0xff,0x80,0x0,0x0,0x0,0x0,0x0,0x49,0xff,0xff,0xf8,0x20,0x0, +0x0,0x0,0x0,0x0,0x0,0x6,0xff,0xff,0x80,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xd,0xff,0xff,0x91,0x0,0x1,0x0,0x0, +0x0,0x0,0x0,0x3f,0xff,0xff,0xfc,0xac,0xf1,0x0,0x0,0x0,0x0,0x0,0x4f,0xff,0xff,0xff,0xff,0x40,0x0,0x0,0x0,0x0, +0x0,0x3c,0xff,0xff,0xff,0xf8,0x0,0x0,0x0,0x0,0x0,0x0,0x5,0xad,0xee,0xdb,0x50,0x0,0xff,0xff,0xff,0xff,0xed,0xa6, +0x10,0x0,0x0,0xf,0xff,0xff,0xff,0xff,0xff,0xfe,0x50,0x0,0x0,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x60,0x0,0xf,0xff, +0xfd,0xaa,0xac,0xff,0xff,0xfe,0x10,0x0,0xff,0xff,0xa0,0x0,0x2,0xbf,0xff,0xf6,0x0,0xf,0xff,0xfa,0x0,0x0,0x3,0xff, +0xff,0x80,0x0,0xff,0xff,0xa0,0x0,0x0,0xf,0xff,0xf9,0x0,0xf,0xff,0xfa,0x0,0x0,0x2,0xff,0xff,0x90,0x0,0xff,0xff, +0xa0,0x0,0x0,0x8f,0xff,0xf7,0x0,0xf,0xff,0xfa,0x0,0x13,0xcf,0xff,0xff,0x20,0x0,0xff,0xff,0xff,0xff,0xff,0xff,0xff, +0x90,0x0,0xf,0xff,0xff,0xff,0xff,0xff,0xff,0xb0,0x0,0x0,0xff,0xff,0xff,0xff,0xff,0xff,0x70,0x0,0x0,0xf,0xff,0xfd, +0xaa,0xff,0xff,0xf3,0x0,0x0,0x0,0xff,0xff,0xa0,0x3,0xff,0xff,0xc0,0x0,0x0,0xf,0xff,0xfa,0x0,0xa,0xff,0xff,0x60, +0x0,0x0,0xff,0xff,0xa0,0x0,0x2f,0xff,0xfe,0x10,0x0,0xf,0xff,0xfa,0x0,0x0,0x9f,0xff,0xf8,0x0,0x0,0xff,0xff,0xa0, +0x0,0x1,0xef,0xff,0xf2,0x0,0xf,0xff,0xfa,0x0,0x0,0x7,0xff,0xff,0xb0,0x0,0xff,0xff,0xa0,0x0,0x0,0x1d,0xff,0xff, +0x50,0x0,0x0,0x2,0x8c,0xef,0xeb,0x72,0x0,0x0,0x0,0x0,0x8f,0xff,0xff,0xff,0xff,0x91,0x0,0x0,0x9,0xff,0xff,0xff, +0xff,0xff,0xfb,0x0,0x0,0x5f,0xff,0xff,0xca,0xcf,0xff,0xf4,0x0,0x0,0xbf,0xff,0xe3,0x0,0x1,0x8f,0x60,0x0,0x0,0xef, +0xff,0xa0,0x0,0x0,0x2,0x0,0x0,0x0,0xef,0xff,0xe1,0x0,0x0,0x0,0x0,0x0,0x0,0xcf,0xff,0xfe,0x72,0x0,0x0,0x0, +0x0,0x0,0x6f,0xff,0xff,0xff,0xa4,0x0,0x0,0x0,0x0,0xb,0xff,0xff,0xff,0xff,0xd6,0x0,0x0,0x0,0x1,0xaf,0xff,0xff, +0xff,0xff,0xb1,0x0,0x0,0x0,0x4,0xbf,0xff,0xff,0xff,0xfa,0x0,0x0,0x0,0x0,0x2,0x8e,0xff,0xff,0xff,0x30,0x0,0x0, +0x0,0x0,0x1,0x6e,0xff,0xff,0x80,0x0,0x0,0x0,0x0,0x0,0x3,0xff,0xff,0x90,0x0,0x7,0x50,0x0,0x0,0x1,0xff,0xff, +0x80,0x0,0x5f,0xfa,0x30,0x0,0x8,0xff,0xff,0x50,0x3,0xff,0xff,0xfd,0xbb,0xdf,0xff,0xfd,0x0,0x6,0xff,0xff,0xff,0xff, +0xff,0xff,0xe3,0x0,0x0,0x3a,0xff,0xff,0xff,0xff,0xfc,0x30,0x0,0x0,0x0,0x27,0xbd,0xfe,0xda,0x50,0x0,0x0,0xf,0xff, +0xff,0xff,0xff,0xff,0xff,0xff,0xf0,0xf,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf0,0xf,0xff,0xff,0xff,0xff,0xff,0xff,0xff, +0xf0,0xa,0xaa,0xaa,0xaf,0xff,0xfd,0xaa,0xaa,0xa0,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0x0,0x0,0x0,0xf,0xff, +0xfa,0x0,0x0,0x0,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0x0,0x0, +0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0, +0x0,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0x0,0x0,0x0,0xf,0xff, +0xfa,0x0,0x0,0x0,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0x0,0x0, +0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0, +0x0,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0, +0x0,0x0,0xff,0xff,0xa0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0xff, +0xff,0xa0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0, +0xf,0xff,0xfa,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0xf,0xff,0xfa, +0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0, +0xf,0xff,0xfa,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0xf,0xff,0xf9, +0x0,0x0,0xef,0xff,0xa0,0x0,0x0,0x1,0xff,0xff,0x80,0x0,0xd,0xff,0xfb,0x0,0x0,0x0,0x2f,0xff,0xf7,0x0,0x0,0xaf, +0xff,0xe0,0x0,0x0,0x5,0xff,0xff,0x50,0x0,0x7,0xff,0xff,0x40,0x0,0x0,0xaf,0xff,0xf2,0x0,0x0,0x2f,0xff,0xfd,0x20, +0x0,0x6f,0xff,0xfb,0x0,0x0,0x0,0xaf,0xff,0xff,0xba,0xdf,0xff,0xff,0x40,0x0,0x0,0x1,0xdf,0xff,0xff,0xff,0xff,0xff, +0x90,0x0,0x0,0x0,0x1,0xcf,0xff,0xff,0xff,0xff,0x80,0x0,0x0,0x0,0x0,0x0,0x49,0xde,0xfe,0xc8,0x20,0x0,0x0,0x0, +0x1f,0xff,0xfb,0x0,0x0,0x0,0x0,0xef,0xff,0xb0,0xbf,0xff,0xf1,0x0,0x0,0x0,0x2f,0xff,0xf6,0x7,0xff,0xff,0x40,0x0, +0x0,0x6,0xff,0xff,0x20,0x2f,0xff,0xf8,0x0,0x0,0x0,0xaf,0xff,0xc0,0x0,0xdf,0xff,0xc0,0x0,0x0,0xe,0xff,0xf8,0x0, +0x8,0xff,0xff,0x10,0x0,0x3,0xff,0xff,0x30,0x0,0x4f,0xff,0xf4,0x0,0x0,0x7f,0xff,0xe0,0x0,0x0,0xef,0xff,0x80,0x0, +0xa,0xff,0xf9,0x0,0x0,0xa,0xff,0xfc,0x0,0x0,0xef,0xff,0x50,0x0,0x0,0x5f,0xff,0xf1,0x0,0x3f,0xff,0xf1,0x0,0x0, +0x1,0xff,0xff,0x50,0x7,0xff,0xfb,0x0,0x0,0x0,0xb,0xff,0xf9,0x0,0xbf,0xff,0x60,0x0,0x0,0x0,0x7f,0xff,0xd0,0xe, +0xff,0xf2,0x0,0x0,0x0,0x2,0xff,0xff,0x13,0xff,0xfc,0x0,0x0,0x0,0x0,0xd,0xff,0xf5,0x7f,0xff,0x80,0x0,0x0,0x0, +0x0,0x8f,0xff,0x9b,0xff,0xf3,0x0,0x0,0x0,0x0,0x4,0xff,0xfd,0xef,0xfe,0x0,0x0,0x0,0x0,0x0,0xe,0xff,0xff,0xff, +0x90,0x0,0x0,0x0,0x0,0x0,0xaf,0xff,0xff,0xf5,0x0,0x0,0x0,0x0,0x0,0x5,0xff,0xff,0xff,0x10,0x0,0x0,0x0,0x0, +0x0,0x1f,0xff,0xff,0xb0,0x0,0x0,0x0,0x7f,0xff,0xf3,0x0,0x0,0xe,0xff,0xf2,0x0,0x0,0xf,0xff,0xf5,0x4f,0xff,0xf5, +0x0,0x0,0x3f,0xff,0xf6,0x0,0x0,0x2f,0xff,0xf2,0x1f,0xff,0xf7,0x0,0x0,0x6f,0xff,0xf9,0x0,0x0,0x5f,0xff,0xf0,0xd, +0xff,0xfa,0x0,0x0,0xaf,0xff,0xfd,0x0,0x0,0x7f,0xff,0xc0,0xa,0xff,0xfc,0x0,0x0,0xdf,0xff,0xff,0x10,0x0,0x9f,0xff, +0x90,0x8,0xff,0xfe,0x0,0x1,0xff,0xff,0xff,0x50,0x0,0xbf,0xff,0x70,0x5,0xff,0xff,0x10,0x5,0xff,0xee,0xff,0x80,0x0, +0xef,0xff,0x40,0x2,0xff,0xff,0x40,0x8,0xff,0xbc,0xff,0xc0,0x1,0xff,0xff,0x10,0x0,0xef,0xff,0x60,0xc,0xff,0x8a,0xff, +0xf0,0x3,0xff,0xfe,0x0,0x0,0xcf,0xff,0x80,0xf,0xff,0x57,0xff,0xf3,0x5,0xff,0xfb,0x0,0x0,0x9f,0xff,0xa0,0x3f,0xff, +0x34,0xff,0xf7,0x8,0xff,0xf8,0x0,0x0,0x6f,0xff,0xc0,0x6f,0xff,0x1,0xff,0xf9,0xa,0xff,0xf6,0x0,0x0,0x3f,0xff,0xe0, +0x9f,0xfc,0x0,0xdf,0xfc,0xc,0xff,0xf3,0x0,0x0,0xf,0xff,0xf1,0xcf,0xf9,0x0,0xaf,0xff,0xe,0xff,0xf1,0x0,0x0,0xd, +0xff,0xf4,0xff,0xf5,0x0,0x7f,0xff,0x3f,0xff,0xd0,0x0,0x0,0xa,0xff,0xf8,0xff,0xf2,0x0,0x3f,0xff,0x8f,0xff,0xa0,0x0, +0x0,0x7,0xff,0xfd,0xff,0xe0,0x0,0xf,0xff,0xdf,0xff,0x70,0x0,0x0,0x4,0xff,0xff,0xff,0xb0,0x0,0xc,0xff,0xff,0xff, +0x50,0x0,0x0,0x1,0xff,0xff,0xff,0x80,0x0,0x9,0xff,0xff,0xff,0x20,0x0,0x0,0x0,0xef,0xff,0xff,0x50,0x0,0x6,0xff, +0xff,0xfe,0x0,0x0,0x0,0x0,0xbf,0xff,0xff,0x20,0x0,0x2,0xff,0xff,0xfc,0x0,0x0,0x1e,0xff,0xfe,0x10,0x0,0x0,0xcf, +0xff,0xe1,0x7,0xff,0xff,0x70,0x0,0x4,0xff,0xff,0x70,0x1,0xef,0xff,0xe0,0x0,0xa,0xff,0xfe,0x10,0x0,0x6f,0xff,0xf6, +0x0,0x2f,0xff,0xf6,0x0,0x0,0xd,0xff,0xfd,0x0,0x8f,0xff,0xd0,0x0,0x0,0x5,0xff,0xff,0x50,0xef,0xff,0x60,0x0,0x0, +0x0,0xcf,0xff,0xc5,0xff,0xfd,0x0,0x0,0x0,0x0,0x4f,0xff,0xfd,0xff,0xf5,0x0,0x0,0x0,0x0,0xb,0xff,0xff,0xff,0xc0, +0x0,0x0,0x0,0x0,0x3,0xff,0xff,0xff,0x40,0x0,0x0,0x0,0x0,0x1,0xef,0xff,0xfe,0x0,0x0,0x0,0x0,0x0,0x8,0xff, +0xff,0xff,0x60,0x0,0x0,0x0,0x0,0x2e,0xff,0xff,0xff,0xe1,0x0,0x0,0x0,0x0,0x9f,0xff,0x9e,0xff,0xf8,0x0,0x0,0x0, +0x2,0xff,0xff,0x29,0xff,0xfe,0x10,0x0,0x0,0xa,0xff,0xfb,0x2,0xff,0xff,0x90,0x0,0x0,0x3f,0xff,0xf4,0x0,0x9f,0xff, +0xf2,0x0,0x0,0xbf,0xff,0xd0,0x0,0x2f,0xff,0xfa,0x0,0x4,0xff,0xff,0x60,0x0,0xa,0xff,0xff,0x40,0xc,0xff,0xfd,0x0, +0x0,0x3,0xff,0xff,0xc0,0x5f,0xff,0xf7,0x0,0x0,0x0,0xaf,0xff,0xf5,0x1e,0xff,0xfc,0x0,0x0,0x0,0x1f,0xff,0xfa,0x9, +0xff,0xff,0x30,0x0,0x0,0x6f,0xff,0xf3,0x2,0xff,0xff,0x90,0x0,0x0,0xcf,0xff,0xb0,0x0,0xaf,0xff,0xe1,0x0,0x3,0xff, +0xff,0x40,0x0,0x3f,0xff,0xf5,0x0,0x9,0xff,0xfc,0x0,0x0,0xb,0xff,0xfb,0x0,0x1e,0xff,0xf5,0x0,0x0,0x4,0xff,0xff, +0x20,0x6f,0xff,0xd0,0x0,0x0,0x0,0xcf,0xff,0x80,0xcf,0xff,0x60,0x0,0x0,0x0,0x5f,0xff,0xd3,0xff,0xfe,0x10,0x0,0x0, +0x0,0xd,0xff,0xfc,0xff,0xf7,0x0,0x0,0x0,0x0,0x6,0xff,0xff,0xff,0xe1,0x0,0x0,0x0,0x0,0x0,0xdf,0xff,0xff,0x80, +0x0,0x0,0x0,0x0,0x0,0x7f,0xff,0xff,0x20,0x0,0x0,0x0,0x0,0x0,0x1f,0xff,0xfa,0x0,0x0,0x0,0x0,0x0,0x0,0xf, +0xff,0xfa,0x0,0x0,0x0,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0x0, +0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0x0,0x0,0x0,0xf,0xff,0xfa,0x0, +0x0,0x0,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0x0,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x0,0xf,0xff,0xff,0xff, +0xff,0xff,0xff,0xf0,0x0,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0x0,0xa,0xaa,0xaa,0xaa,0xae,0xff,0xff,0x70,0x0,0x0,0x0, +0x0,0x3,0xff,0xff,0xc0,0x0,0x0,0x0,0x0,0x0,0xcf,0xff,0xf3,0x0,0x0,0x0,0x0,0x0,0x6f,0xff,0xf9,0x0,0x0,0x0, +0x0,0x0,0x2e,0xff,0xfd,0x10,0x0,0x0,0x0,0x0,0xb,0xff,0xff,0x50,0x0,0x0,0x0,0x0,0x5,0xff,0xff,0xa0,0x0,0x0, +0x0,0x0,0x1,0xef,0xff,0xe1,0x0,0x0,0x0,0x0,0x0,0x9f,0xff,0xf6,0x0,0x0,0x0,0x0,0x0,0x4f,0xff,0xfc,0x0,0x0, +0x0,0x0,0x0,0x1d,0xff,0xff,0x30,0x0,0x0,0x0,0x0,0x8,0xff,0xff,0x80,0x0,0x0,0x0,0x0,0x3,0xff,0xff,0xd0,0x0, +0x0,0x0,0x0,0x0,0xcf,0xff,0xf4,0x0,0x0,0x0,0x0,0x0,0x7f,0xff,0xfe,0xaa,0xaa,0xaa,0xaa,0xa0,0xe,0xff,0xff,0xff, +0xff,0xff,0xff,0xff,0x0,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf0,0xf,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x0,0x0,0xf, +0xff,0xff,0xf8,0x0,0x0,0xff,0xff,0xff,0x80,0x0,0xf,0xff,0x22,0x21,0x0,0x0,0xff,0xf0,0x0,0x0,0x0,0xf,0xff,0x0, +0x0,0x0,0x0,0xff,0xf0,0x0,0x0,0x0,0xf,0xff,0x0,0x0,0x0,0x0,0xff,0xf0,0x0,0x0,0x0,0xf,0xff,0x0,0x0,0x0, +0x0,0xff,0xf0,0x0,0x0,0x0,0xf,0xff,0x0,0x0,0x0,0x0,0xff,0xf0,0x0,0x0,0x0,0xf,0xff,0x0,0x0,0x0,0x0,0xff, +0xf0,0x0,0x0,0x0,0xf,0xff,0x0,0x0,0x0,0x0,0xff,0xf0,0x0,0x0,0x0,0xf,0xff,0x0,0x0,0x0,0x0,0xff,0xf0,0x0, +0x0,0x0,0xf,0xff,0x0,0x0,0x0,0x0,0xff,0xf0,0x0,0x0,0x0,0xf,0xff,0x0,0x0,0x0,0x0,0xff,0xf0,0x0,0x0,0x0, +0xf,0xff,0x0,0x0,0x0,0x0,0xff,0xf0,0x0,0x0,0x0,0xf,0xff,0x22,0x21,0x0,0x0,0xff,0xff,0xff,0x80,0x0,0xf,0xff, +0xff,0xf8,0x0,0xf,0xfe,0x0,0x0,0x0,0x0,0xcf,0xf3,0x0,0x0,0x0,0x8,0xff,0x70,0x0,0x0,0x0,0x4f,0xfa,0x0,0x0, +0x0,0x1,0xff,0xe0,0x0,0x0,0x0,0xc,0xff,0x30,0x0,0x0,0x0,0x9f,0xf6,0x0,0x0,0x0,0x5,0xff,0xa0,0x0,0x0,0x0, +0x1f,0xfd,0x0,0x0,0x0,0x0,0xdf,0xf2,0x0,0x0,0x0,0x9,0xff,0x50,0x0,0x0,0x0,0x6f,0xf9,0x0,0x0,0x0,0x2,0xff, +0xd0,0x0,0x0,0x0,0xd,0xff,0x10,0x0,0x0,0x0,0xaf,0xf5,0x0,0x0,0x0,0x6,0xff,0x80,0x0,0x0,0x0,0x3f,0xfc,0x0, +0x0,0x0,0x0,0xef,0xf1,0x0,0x0,0x0,0xb,0xff,0x40,0x0,0x0,0x0,0x7f,0xf8,0x0,0x0,0x0,0x3,0xff,0xb0,0x0,0x0, +0x0,0xe,0xfe,0x0,0x0,0x0,0x0,0xbf,0xf3,0x0,0x0,0x0,0x8,0xff,0x70,0x0,0x0,0x0,0x4f,0xfb,0x0,0x0,0x0,0x1, +0xff,0xe0,0x0,0x0,0x0,0xc,0xff,0x30,0x0,0x0,0x0,0x58,0x83,0x8,0xff,0xff,0xff,0x0,0x0,0x8f,0xff,0xff,0xf0,0x0, +0x1,0x22,0x2f,0xff,0x0,0x0,0x0,0x0,0xff,0xf0,0x0,0x0,0x0,0xf,0xff,0x0,0x0,0x0,0x0,0xff,0xf0,0x0,0x0,0x0, +0xf,0xff,0x0,0x0,0x0,0x0,0xff,0xf0,0x0,0x0,0x0,0xf,0xff,0x0,0x0,0x0,0x0,0xff,0xf0,0x0,0x0,0x0,0xf,0xff, +0x0,0x0,0x0,0x0,0xff,0xf0,0x0,0x0,0x0,0xf,0xff,0x0,0x0,0x0,0x0,0xff,0xf0,0x0,0x0,0x0,0xf,0xff,0x0,0x0, +0x0,0x0,0xff,0xf0,0x0,0x0,0x0,0xf,0xff,0x0,0x0,0x0,0x0,0xff,0xf0,0x0,0x0,0x0,0xf,0xff,0x0,0x0,0x0,0x0, +0xff,0xf0,0x0,0x0,0x0,0xf,0xff,0x0,0x0,0x0,0x0,0xff,0xf0,0x0,0x0,0x0,0xf,0xff,0x0,0x0,0x0,0x0,0xff,0xf0, +0x0,0x1,0x22,0x2f,0xff,0x0,0x0,0x8f,0xff,0xff,0xf0,0x0,0x8,0xff,0xff,0xff,0x0,0x0,0x0,0x0,0x0,0x48,0x88,0x30, +0x0,0x0,0x0,0x0,0x0,0xd,0xff,0xfa,0x0,0x0,0x0,0x0,0x0,0x4,0xff,0xff,0xf1,0x0,0x0,0x0,0x0,0x0,0xaf,0xff, +0xff,0x60,0x0,0x0,0x0,0x0,0x1e,0xff,0xdf,0xfc,0x0,0x0,0x0,0x0,0x6,0xff,0xf4,0xff,0xf3,0x0,0x0,0x0,0x0,0xcf, +0xfa,0xd,0xff,0x90,0x0,0x0,0x0,0x3f,0xff,0x50,0x8f,0xfe,0x10,0x0,0x0,0x9,0xff,0xf1,0x3,0xff,0xf6,0x0,0x0,0x1, +0xef,0xfa,0x0,0xd,0xff,0xc0,0x0,0x0,0x6f,0xff,0x40,0x0,0x8f,0xff,0x20,0x0,0xc,0xff,0xe0,0x0,0x2,0xff,0xf8,0x0, +0x3,0xff,0xf8,0x0,0x0,0xc,0xff,0xe0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, +0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, +0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, +0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xdd,0xdd, +0xdd,0xdd,0xdd,0xdd,0xdd,0xd0,0xf,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x0,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf0,0x0, +0x0,0x8,0x50,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x9f,0xe3,0x0,0x0,0x0,0x0,0x0,0x0,0x9,0xff,0xfe,0x20,0x0,0x0, +0x0,0x0,0x0,0x8,0xff,0xff,0xc1,0x0,0x0,0x0,0x0,0x0,0x0,0x6f,0xff,0xfb,0x0,0x0,0x0,0x0,0x0,0x0,0x5,0xef, +0xff,0x80,0x0,0x0,0x0,0x0,0x0,0x0,0x3e,0xfd,0x20,0x0,0x0,0x0,0x0,0x0,0x0,0x2,0xb2,0x0,0x0,0x0,0x0,0x0, +0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, +0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, +0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, +0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, +0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, +0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, +0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x49,0xce,0xfd,0xa5,0x0, +0x0,0x0,0x6,0xdf,0xff,0xff,0xff,0xfa,0x0,0x0,0x2,0xff,0xff,0xff,0xff,0xff,0xf7,0x0,0x0,0x9,0xff,0xfc,0xac,0xff, +0xff,0xf1,0x0,0x0,0x1c,0x71,0x0,0x7,0xff,0xff,0x50,0x0,0x0,0x0,0x0,0x0,0x3f,0xff,0xf8,0x0,0x0,0x0,0x5,0x9c, +0xef,0xff,0xff,0x90,0x0,0x0,0x8e,0xff,0xff,0xff,0xff,0xfa,0x0,0x1,0xcf,0xff,0xfe,0xa8,0xff,0xff,0xa0,0x0,0x8f,0xff, +0xf7,0x0,0xf,0xff,0xfa,0x0,0xd,0xff,0xfb,0x0,0x0,0xff,0xff,0xa0,0x0,0xff,0xff,0xc0,0x0,0x8f,0xff,0xfa,0x0,0xd, +0xff,0xff,0xda,0xdf,0xff,0xff,0xa0,0x0,0x8f,0xff,0xff,0xff,0xff,0xff,0xfa,0x0,0x1,0xcf,0xff,0xff,0xfb,0x8f,0xff,0xa0, +0x0,0x0,0x7d,0xfe,0xb5,0x3,0xff,0xfa,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0x0, +0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0,0x0,0xff,0xff, +0xa0,0x0,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x7c,0xee,0xb5,0x0,0x0, +0x0,0xff,0xff,0xcd,0xff,0xff,0xff,0xa0,0x0,0x0,0xff,0xff,0xff,0xff,0xff,0xff,0xf9,0x0,0x0,0xff,0xff,0xff,0xda,0xdf, +0xff,0xff,0x20,0x0,0xff,0xff,0xe5,0x0,0x9,0xff,0xff,0x80,0x0,0xff,0xff,0xa0,0x0,0x1,0xef,0xff,0xc0,0x0,0xff,0xff, +0xa0,0x0,0x0,0xbf,0xff,0xd0,0x0,0xff,0xff,0xa0,0x0,0x0,0xaf,0xff,0xf0,0x0,0xff,0xff,0xa0,0x0,0x0,0xaf,0xff,0xe0, +0x0,0xff,0xff,0xa0,0x0,0x0,0xcf,0xff,0xc0,0x0,0xff,0xff,0xa0,0x0,0x2,0xff,0xff,0xa0,0x0,0xff,0xff,0xc2,0x0,0x1b, +0xff,0xff,0x40,0x0,0xff,0xff,0xff,0xca,0xef,0xff,0xfc,0x0,0x0,0xff,0xff,0xff,0xff,0xff,0xff,0xf3,0x0,0x0,0xff,0xff, +0x7f,0xff,0xff,0xfe,0x40,0x0,0x0,0xff,0xfc,0x2,0x9d,0xed,0x81,0x0,0x0,0x0,0x0,0x3,0x8c,0xef,0xd9,0x30,0x0,0x0, +0x19,0xff,0xff,0xff,0xff,0x60,0x0,0x1c,0xff,0xff,0xff,0xff,0xf3,0x0,0xb,0xff,0xff,0xfc,0xbd,0xf6,0x0,0x4,0xff,0xff, +0xd3,0x0,0x5,0x0,0x0,0xaf,0xff,0xf4,0x0,0x0,0x0,0x0,0xd,0xff,0xfd,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0, +0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0x0,0x0,0xdf,0xff,0xd0,0x0,0x0,0x0,0x0,0xa,0xff,0xff,0x40,0x0,0x0, +0x0,0x0,0x5f,0xff,0xfd,0x30,0x0,0x55,0x0,0x0,0xcf,0xff,0xff,0xca,0xdf,0xe1,0x0,0x2,0xef,0xff,0xff,0xff,0xff,0x90, +0x0,0x2,0xcf,0xff,0xff,0xff,0xf7,0x0,0x0,0x0,0x5a,0xdf,0xec,0x82,0x0,0x0,0x0,0x0,0x0,0x0,0xa,0xff,0xff,0x0, +0x0,0x0,0x0,0x0,0x0,0xa,0xff,0xff,0x0,0x0,0x0,0x0,0x0,0x0,0xa,0xff,0xff,0x0,0x0,0x0,0x0,0x0,0x0,0xa, +0xff,0xff,0x0,0x0,0x0,0x0,0x0,0x0,0xa,0xff,0xff,0x0,0x0,0x0,0x0,0x0,0x0,0xa,0xff,0xff,0x0,0x0,0x0,0x29, +0xdf,0xd9,0x1a,0xff,0xff,0x0,0x0,0x5,0xef,0xff,0xff,0xec,0xff,0xff,0x0,0x0,0x4f,0xff,0xff,0xff,0xff,0xff,0xff,0x0, +0x1,0xdf,0xff,0xfe,0xbc,0xff,0xff,0xff,0x0,0x5,0xff,0xff,0xc1,0x0,0x2d,0xff,0xff,0x0,0xa,0xff,0xff,0x20,0x0,0xa, +0xff,0xff,0x0,0xd,0xff,0xfc,0x0,0x0,0xa,0xff,0xff,0x0,0xe,0xff,0xfa,0x0,0x0,0xa,0xff,0xff,0x0,0xe,0xff,0xfa, +0x0,0x0,0xa,0xff,0xff,0x0,0xd,0xff,0xfc,0x0,0x0,0xa,0xff,0xff,0x0,0xb,0xff,0xff,0x10,0x0,0xa,0xff,0xff,0x0, +0x7,0xff,0xff,0xa0,0x0,0x4e,0xff,0xff,0x0,0x2,0xef,0xff,0xfd,0xac,0xff,0xff,0xff,0x0,0x0,0x7f,0xff,0xff,0xff,0xff, +0xff,0xff,0x0,0x0,0x9,0xff,0xff,0xff,0xe8,0xff,0xff,0x0,0x0,0x0,0x4a,0xdf,0xd9,0x10,0xef,0xff,0x0,0x0,0x0,0x5, +0xbe,0xfd,0xb5,0x0,0x0,0x0,0x2,0xcf,0xff,0xff,0xff,0xa1,0x0,0x0,0x2e,0xff,0xff,0xff,0xff,0xfa,0x0,0x0,0xcf,0xff, +0xfc,0xad,0xff,0xff,0x40,0x4,0xff,0xfe,0x40,0x0,0x8f,0xff,0x90,0xa,0xff,0xf6,0x0,0x0,0x1f,0xff,0xd0,0xd,0xff,0xff, +0xff,0xff,0xff,0xff,0xe0,0xe,0xff,0xff,0xff,0xff,0xff,0xff,0xf0,0xf,0xff,0xff,0xff,0xff,0xff,0xff,0xd0,0xd,0xff,0xf6, +0x0,0x0,0x0,0x0,0x0,0xa,0xff,0xfd,0x0,0x0,0x0,0x0,0x0,0x5,0xff,0xff,0xa1,0x0,0x1,0x70,0x0,0x0,0xcf,0xff, +0xff,0xba,0xcf,0xf7,0x0,0x0,0x2e,0xff,0xff,0xff,0xff,0xfe,0x10,0x0,0x2,0xbf,0xff,0xff,0xff,0xfb,0x20,0x0,0x0,0x4, +0xad,0xee,0xc9,0x30,0x0,0x0,0x0,0x0,0x25,0x77,0x52,0x0,0x0,0x1b,0xff,0xff,0xfc,0x0,0x0,0xcf,0xff,0xff,0xf8,0x0, +0x6,0xff,0xff,0xff,0xf4,0x0,0xb,0xff,0xff,0x73,0x41,0x0,0xe,0xff,0xfc,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0xf, +0xff,0xff,0xff,0xff,0x80,0xf,0xff,0xff,0xff,0xff,0x80,0xf,0xff,0xff,0xff,0xff,0x80,0xa,0xaf,0xff,0xff,0xaa,0x50,0x0, +0xf,0xff,0xfa,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0, +0xf,0xff,0xfa,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0, +0xf,0xff,0xfa,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0, +0x0,0x4a,0xdf,0xff,0xff,0xff,0xff,0x50,0x1,0xbf,0xff,0xff,0xff,0xff,0xff,0xf5,0x0,0xbf,0xff,0xff,0xff,0xff,0xff,0xff, +0x50,0x4f,0xff,0xfc,0x22,0xbf,0xff,0xda,0xa3,0x8,0xff,0xff,0x20,0x2,0xff,0xfc,0x0,0x0,0x9f,0xff,0xf0,0x0,0xf,0xff, +0xe0,0x0,0x7,0xff,0xff,0x20,0x2,0xff,0xfe,0x0,0x0,0x2f,0xff,0xfb,0x22,0xbf,0xff,0xa0,0x0,0x0,0x5f,0xff,0xff,0xff, +0xff,0xf3,0x0,0x0,0x0,0x7f,0xff,0xff,0xff,0xe5,0x0,0x0,0x0,0x4f,0xff,0xac,0xcb,0x71,0x0,0x0,0x0,0xc,0xff,0xf1, +0x0,0x0,0x0,0x0,0x0,0x0,0xef,0xff,0xeb,0xaa,0xa9,0x85,0x10,0x0,0xb,0xff,0xff,0xff,0xff,0xff,0xfe,0x60,0x0,0x1c, +0xff,0xff,0xff,0xff,0xff,0xff,0x30,0x7,0xff,0xfd,0xff,0xff,0xff,0xff,0xf8,0x7,0xff,0xf5,0x0,0x0,0x16,0xff,0xff,0x90, +0xef,0xff,0x10,0x0,0x0,0x1f,0xff,0xf7,0xe,0xff,0xfa,0x20,0x0,0x3c,0xff,0xfe,0x10,0x9f,0xff,0xff,0xed,0xef,0xff,0xfe, +0x40,0x1,0xbf,0xff,0xff,0xff,0xff,0xfb,0x30,0x0,0x0,0x49,0xce,0xfe,0xdb,0x83,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0x0, +0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0,0x0,0xff,0xff, +0xa0,0x0,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0x90,0x0,0x0,0x0,0x0,0x0, +0x0,0xff,0xff,0x80,0x5b,0xef,0xd7,0x0,0x0,0x0,0xff,0xff,0x8b,0xff,0xff,0xff,0xa0,0x0,0x0,0xff,0xff,0xff,0xff,0xff, +0xff,0xf4,0x0,0x0,0xff,0xff,0xff,0xdb,0xef,0xff,0xfa,0x0,0x0,0xff,0xff,0xf7,0x0,0x2e,0xff,0xfd,0x0,0x0,0xff,0xff, +0xa0,0x0,0xb,0xff,0xfe,0x0,0x0,0xff,0xff,0xa0,0x0,0xa,0xff,0xff,0x0,0x0,0xff,0xff,0xa0,0x0,0xa,0xff,0xff,0x0, +0x0,0xff,0xff,0xa0,0x0,0xa,0xff,0xff,0x0,0x0,0xff,0xff,0xa0,0x0,0xa,0xff,0xff,0x0,0x0,0xff,0xff,0xa0,0x0,0xa, +0xff,0xff,0x0,0x0,0xff,0xff,0xa0,0x0,0xa,0xff,0xff,0x0,0x0,0xff,0xff,0xa0,0x0,0xa,0xff,0xff,0x0,0x0,0xff,0xff, +0xa0,0x0,0xa,0xff,0xff,0x0,0x0,0xff,0xff,0xa0,0x0,0xa,0xff,0xff,0x0,0x0,0xff,0xff,0xa0,0x0,0xa,0xff,0xff,0x0, +0x0,0x4,0x74,0x0,0x0,0x8,0xff,0xf8,0x0,0x0,0xef,0xff,0xe0,0x0,0xe,0xff,0xfe,0x0,0x0,0x8f,0xff,0x80,0x0,0x0, +0x47,0x40,0x0,0x0,0x0,0x0,0x0,0x0,0xa,0xff,0xff,0x0,0x0,0xaf,0xff,0xf0,0x0,0xa,0xff,0xff,0x0,0x0,0xaf,0xff, +0xf0,0x0,0xa,0xff,0xff,0x0,0x0,0xaf,0xff,0xf0,0x0,0xa,0xff,0xff,0x0,0x0,0xaf,0xff,0xf0,0x0,0xa,0xff,0xff,0x0, +0x0,0xaf,0xff,0xf0,0x0,0xa,0xff,0xff,0x0,0x0,0xaf,0xff,0xf0,0x0,0xa,0xff,0xff,0x0,0x0,0xaf,0xff,0xf0,0x0,0xa, +0xff,0xff,0x0,0x0,0xaf,0xff,0xf0,0x0,0x0,0x0,0x4,0x74,0x0,0x0,0x0,0x7,0xff,0xf7,0x0,0x0,0x0,0xef,0xff,0xe0, +0x0,0x0,0xe,0xff,0xfe,0x0,0x0,0x0,0x7f,0xff,0x70,0x0,0x0,0x0,0x47,0x40,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, +0xa,0xff,0xff,0x0,0x0,0x0,0xaf,0xff,0xf0,0x0,0x0,0xa,0xff,0xff,0x0,0x0,0x0,0xaf,0xff,0xf0,0x0,0x0,0xa,0xff, +0xff,0x0,0x0,0x0,0xaf,0xff,0xf0,0x0,0x0,0xa,0xff,0xff,0x0,0x0,0x0,0xaf,0xff,0xf0,0x0,0x0,0xa,0xff,0xff,0x0, +0x0,0x0,0xaf,0xff,0xf0,0x0,0x0,0xa,0xff,0xff,0x0,0x0,0x0,0xaf,0xff,0xf0,0x0,0x0,0xa,0xff,0xff,0x0,0x0,0x0, +0xaf,0xff,0xf0,0x0,0x0,0xa,0xff,0xff,0x0,0x0,0x0,0xaf,0xff,0xf0,0x0,0x0,0xb,0xff,0xfe,0x0,0x0,0x1,0xef,0xff, +0xc0,0x0,0x9a,0xdf,0xff,0xf8,0x0,0xe,0xff,0xff,0xff,0x20,0x3,0xff,0xff,0xff,0x60,0x0,0x3c,0xef,0xda,0x30,0x0,0x0, +0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0x0, +0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0,0x0,0xff,0xff, +0xa0,0x0,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0x9,0xff,0xff,0x60,0x0,0xff,0xff,0xa0,0x0,0x6f,0xff,0xf9,0x0, +0x0,0xff,0xff,0xa0,0x3,0xef,0xff,0xb0,0x0,0x0,0xff,0xff,0xa0,0x1d,0xff,0xfd,0x10,0x0,0x0,0xff,0xff,0xa0,0xbf,0xff, +0xe2,0x0,0x0,0x0,0xff,0xff,0xa7,0xff,0xff,0x40,0x0,0x0,0x0,0xff,0xff,0xdf,0xff,0xf8,0x0,0x0,0x0,0x0,0xff,0xff, +0xff,0xff,0xfd,0x10,0x0,0x0,0x0,0xff,0xff,0xff,0xff,0xff,0x80,0x0,0x0,0x0,0xff,0xff,0xff,0xef,0xff,0xf3,0x0,0x0, +0x0,0xff,0xff,0xfd,0x1c,0xff,0xfc,0x0,0x0,0x0,0xff,0xff,0xe2,0x4,0xff,0xff,0x60,0x0,0x0,0xff,0xff,0xa0,0x0,0xaf, +0xff,0xe1,0x0,0x0,0xff,0xff,0xa0,0x0,0x2f,0xff,0xfa,0x0,0x0,0xff,0xff,0xa0,0x0,0x8,0xff,0xff,0x40,0x0,0xff,0xff, +0xa0,0x0,0x1,0xef,0xff,0xd1,0x0,0xff,0xff,0xa0,0x0,0xf,0xff,0xfa,0x0,0x0,0xff,0xff,0xa0,0x0,0xf,0xff,0xfa,0x0, +0x0,0xff,0xff,0xa0,0x0,0xf,0xff,0xfa,0x0,0x0,0xff,0xff,0xa0,0x0,0xf,0xff,0xfa,0x0,0x0,0xff,0xff,0xa0,0x0,0xf, +0xff,0xfa,0x0,0x0,0xff,0xff,0xa0,0x0,0xf,0xff,0xfa,0x0,0x0,0xff,0xff,0xa0,0x0,0xf,0xff,0xfa,0x0,0x0,0xff,0xff, +0xa0,0x0,0xf,0xff,0xfa,0x0,0x0,0xff,0xff,0xa0,0x0,0xf,0xff,0xfa,0x0,0x0,0xdf,0xff,0xf9,0x10,0x9,0xff,0xff,0xf3, +0x0,0x2e,0xff,0xff,0x60,0x0,0x3a,0xef,0xe6,0x0,0xff,0xfd,0x0,0x6c,0xee,0xc7,0x0,0x3,0xad,0xfd,0x91,0x0,0x0,0xf, +0xff,0xf2,0xbf,0xff,0xff,0xfb,0x8,0xff,0xff,0xff,0xd1,0x0,0x0,0xff,0xff,0xff,0xff,0xff,0xff,0xfd,0xff,0xff,0xff,0xff, +0x90,0x0,0xf,0xff,0xff,0xfd,0xbe,0xff,0xff,0xff,0xeb,0xcf,0xff,0xfe,0x10,0x0,0xff,0xff,0xf7,0x0,0x2e,0xff,0xff,0xb2, +0x0,0xaf,0xff,0xf3,0x0,0xf,0xff,0xfa,0x0,0x0,0xbf,0xff,0xf0,0x0,0x6,0xff,0xff,0x50,0x0,0xff,0xff,0xa0,0x0,0xa, +0xff,0xff,0x0,0x0,0x4f,0xff,0xf5,0x0,0xf,0xff,0xfa,0x0,0x0,0xaf,0xff,0xf0,0x0,0x4,0xff,0xff,0x50,0x0,0xff,0xff, +0xa0,0x0,0xa,0xff,0xff,0x0,0x0,0x4f,0xff,0xf5,0x0,0xf,0xff,0xfa,0x0,0x0,0xaf,0xff,0xf0,0x0,0x4,0xff,0xff,0x50, +0x0,0xff,0xff,0xa0,0x0,0xa,0xff,0xff,0x0,0x0,0x4f,0xff,0xf5,0x0,0xf,0xff,0xfa,0x0,0x0,0xaf,0xff,0xf0,0x0,0x4, +0xff,0xff,0x50,0x0,0xff,0xff,0xa0,0x0,0xa,0xff,0xff,0x0,0x0,0x4f,0xff,0xf5,0x0,0xf,0xff,0xfa,0x0,0x0,0xaf,0xff, +0xf0,0x0,0x4,0xff,0xff,0x50,0x0,0xff,0xff,0xa0,0x0,0xa,0xff,0xff,0x0,0x0,0x4f,0xff,0xf5,0x0,0xf,0xff,0xfa,0x0, +0x0,0xaf,0xff,0xf0,0x0,0x4,0xff,0xff,0x50,0x0,0xff,0xfd,0x0,0x6b,0xef,0xd7,0x0,0x0,0x0,0xff,0xff,0x3c,0xff,0xff, +0xff,0xa0,0x0,0x0,0xff,0xff,0xff,0xff,0xff,0xff,0xf4,0x0,0x0,0xff,0xff,0xff,0xdb,0xef,0xff,0xfa,0x0,0x0,0xff,0xff, +0xf7,0x0,0x2e,0xff,0xfd,0x0,0x0,0xff,0xff,0xa0,0x0,0xb,0xff,0xfe,0x0,0x0,0xff,0xff,0xa0,0x0,0xa,0xff,0xff,0x0, +0x0,0xff,0xff,0xa0,0x0,0xa,0xff,0xff,0x0,0x0,0xff,0xff,0xa0,0x0,0xa,0xff,0xff,0x0,0x0,0xff,0xff,0xa0,0x0,0xa, +0xff,0xff,0x0,0x0,0xff,0xff,0xa0,0x0,0xa,0xff,0xff,0x0,0x0,0xff,0xff,0xa0,0x0,0xa,0xff,0xff,0x0,0x0,0xff,0xff, +0xa0,0x0,0xa,0xff,0xff,0x0,0x0,0xff,0xff,0xa0,0x0,0xa,0xff,0xff,0x0,0x0,0xff,0xff,0xa0,0x0,0xa,0xff,0xff,0x0, +0x0,0xff,0xff,0xa0,0x0,0xa,0xff,0xff,0x0,0x0,0x0,0x5,0xad,0xfe,0xb6,0x0,0x0,0x0,0x0,0x2c,0xff,0xff,0xff,0xfd, +0x20,0x0,0x0,0x2e,0xff,0xff,0xff,0xff,0xfe,0x20,0x0,0xc,0xff,0xff,0xda,0xdf,0xff,0xfc,0x0,0x5,0xff,0xff,0xa0,0x0, +0x9f,0xff,0xf5,0x0,0xaf,0xff,0xf1,0x0,0x1,0xff,0xff,0xa0,0xd,0xff,0xfc,0x0,0x0,0xc,0xff,0xfd,0x0,0xff,0xff,0xa0, +0x0,0x0,0xaf,0xff,0xe0,0xf,0xff,0xfa,0x0,0x0,0xa,0xff,0xff,0x0,0xdf,0xff,0xc0,0x0,0x0,0xcf,0xff,0xd0,0xa,0xff, +0xff,0x10,0x0,0x1f,0xff,0xfa,0x0,0x5f,0xff,0xfa,0x0,0x9,0xff,0xff,0x50,0x0,0xcf,0xff,0xfd,0xad,0xff,0xff,0xc0,0x0, +0x2,0xef,0xff,0xff,0xff,0xff,0xe2,0x0,0x0,0x2,0xcf,0xff,0xff,0xff,0xc2,0x0,0x0,0x0,0x0,0x5a,0xdf,0xdb,0x50,0x0, +0x0,0x0,0xff,0xfe,0x1,0x8c,0xee,0xb5,0x0,0x0,0x0,0xff,0xff,0x8e,0xff,0xff,0xff,0xa0,0x0,0x0,0xff,0xff,0xff,0xff, +0xff,0xff,0xf9,0x0,0x0,0xff,0xff,0xff,0xda,0xdf,0xff,0xff,0x20,0x0,0xff,0xff,0xe5,0x0,0x9,0xff,0xff,0x80,0x0,0xff, +0xff,0xa0,0x0,0x1,0xef,0xff,0xc0,0x0,0xff,0xff,0xa0,0x0,0x0,0xbf,0xff,0xd0,0x0,0xff,0xff,0xa0,0x0,0x0,0xaf,0xff, +0xf0,0x0,0xff,0xff,0xa0,0x0,0x0,0xaf,0xff,0xe0,0x0,0xff,0xff,0xa0,0x0,0x0,0xcf,0xff,0xc0,0x0,0xff,0xff,0xa0,0x0, +0x2,0xff,0xff,0xa0,0x0,0xff,0xff,0xc2,0x0,0x1b,0xff,0xff,0x40,0x0,0xff,0xff,0xff,0xca,0xef,0xff,0xfc,0x0,0x0,0xff, +0xff,0xff,0xff,0xff,0xff,0xf3,0x0,0x0,0xff,0xff,0xce,0xff,0xff,0xfe,0x40,0x0,0x0,0xff,0xff,0xa1,0x9d,0xed,0x81,0x0, +0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0, +0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0x0,0x0,0x0,0xff, +0xff,0xa0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x28,0xdf,0xea,0x30,0xcf,0xff,0x0,0x0,0x4,0xef,0xff,0xff,0xf9,0xff,0xff, +0x0,0x0,0x4f,0xff,0xff,0xff,0xff,0xff,0xff,0x0,0x1,0xdf,0xff,0xfe,0xbc,0xff,0xff,0xff,0x0,0x5,0xff,0xff,0xc1,0x0, +0x2d,0xff,0xff,0x0,0xa,0xff,0xff,0x20,0x0,0xa,0xff,0xff,0x0,0xd,0xff,0xfc,0x0,0x0,0xa,0xff,0xff,0x0,0xe,0xff, +0xfa,0x0,0x0,0xa,0xff,0xff,0x0,0xe,0xff,0xfa,0x0,0x0,0xa,0xff,0xff,0x0,0xd,0xff,0xfc,0x0,0x0,0xa,0xff,0xff, +0x0,0xb,0xff,0xff,0x10,0x0,0xa,0xff,0xff,0x0,0x7,0xff,0xff,0xa0,0x0,0x4e,0xff,0xff,0x0,0x2,0xff,0xff,0xfd,0xac, +0xff,0xff,0xff,0x0,0x0,0x8f,0xff,0xff,0xff,0xff,0xff,0xff,0x0,0x0,0x9,0xff,0xff,0xff,0xdc,0xff,0xff,0x0,0x0,0x0, +0x4b,0xdf,0xd7,0x1a,0xff,0xff,0x0,0x0,0x0,0x0,0x0,0x0,0xa,0xff,0xff,0x0,0x0,0x0,0x0,0x0,0x0,0xa,0xff,0xff, +0x0,0x0,0x0,0x0,0x0,0x0,0xa,0xff,0xff,0x0,0x0,0x0,0x0,0x0,0x0,0xa,0xff,0xff,0x0,0x0,0x0,0x0,0x0,0x0, +0xa,0xff,0xff,0x0,0x0,0x0,0x0,0x0,0x0,0xa,0xff,0xff,0x0,0x0,0xff,0xfd,0x0,0x5c,0xef,0x80,0xf,0xff,0xe0,0xaf, +0xff,0xf5,0x0,0xff,0xff,0x9f,0xff,0xff,0x20,0xf,0xff,0xff,0xff,0xca,0xc0,0x0,0xff,0xff,0xfe,0x40,0x0,0x0,0xf,0xff, +0xff,0x40,0x0,0x0,0x0,0xff,0xff,0xb0,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0, +0xf,0xff,0xfa,0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0, +0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0x0,0x0,0x39, +0xde,0xed,0x93,0x0,0x0,0x0,0x8f,0xff,0xff,0xff,0xf9,0x10,0x0,0x6f,0xff,0xff,0xff,0xff,0xf4,0x0,0xc,0xff,0xff,0xca, +0xdf,0xf6,0x0,0x0,0xef,0xff,0xc0,0x0,0x68,0x0,0x0,0xd,0xff,0xfd,0x10,0x0,0x0,0x0,0x0,0x7f,0xff,0xfe,0x94,0x0, +0x0,0x0,0x0,0x8f,0xff,0xff,0xfc,0x40,0x0,0x0,0x0,0x3b,0xff,0xff,0xff,0x80,0x0,0x0,0x0,0x2,0x8e,0xff,0xff,0x40, +0x0,0x0,0x0,0x0,0x3f,0xff,0xf8,0x0,0x4,0xe6,0x0,0x3,0xff,0xff,0x90,0x2,0xef,0xfe,0xbb,0xef,0xff,0xf6,0x0,0x9f, +0xff,0xff,0xff,0xff,0xfe,0x10,0x0,0x8f,0xff,0xff,0xff,0xfd,0x30,0x0,0x0,0x27,0xce,0xfd,0xb7,0x10,0x0,0x0,0x4,0xff, +0xfa,0x0,0x0,0x0,0x0,0x6f,0xff,0xa0,0x0,0x0,0x0,0x8,0xff,0xfa,0x0,0x0,0x0,0x0,0xaf,0xff,0xa0,0x0,0x0,0xf, +0xff,0xff,0xff,0xff,0xff,0x0,0xff,0xff,0xff,0xff,0xff,0xf0,0xf,0xff,0xff,0xff,0xff,0xff,0x0,0xaa,0xff,0xff,0xda,0xaa, +0xa0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0x0,0xff,0xff, +0xa0,0x0,0x0,0x0,0xf,0xff,0xfa,0x0,0x0,0x0,0x0,0xff,0xff,0xa0,0x0,0x0,0x0,0xe,0xff,0xfb,0x0,0x0,0x0,0x0, +0xdf,0xff,0xf3,0x0,0x0,0x0,0x9,0xff,0xff,0xfb,0xbc,0x0,0x0,0x3f,0xff,0xff,0xff,0xf1,0x0,0x0,0x7f,0xff,0xff,0xff, +0x40,0x0,0x0,0x4a,0xdf,0xfd,0xa3,0x0,0xff,0xff,0xa0,0x0,0xa,0xff,0xff,0x0,0x0,0xff,0xff,0xa0,0x0,0xa,0xff,0xff, +0x0,0x0,0xff,0xff,0xa0,0x0,0xa,0xff,0xff,0x0,0x0,0xff,0xff,0xa0,0x0,0xa,0xff,0xff,0x0,0x0,0xff,0xff,0xa0,0x0, +0xa,0xff,0xff,0x0,0x0,0xff,0xff,0xa0,0x0,0xa,0xff,0xff,0x0,0x0,0xff,0xff,0xa0,0x0,0xa,0xff,0xff,0x0,0x0,0xff, +0xff,0xa0,0x0,0xa,0xff,0xff,0x0,0x0,0xff,0xff,0xa0,0x0,0xa,0xff,0xff,0x0,0x0,0xff,0xff,0xa0,0x0,0xa,0xff,0xff, +0x0,0x0,0xef,0xff,0xb0,0x0,0xb,0xff,0xff,0x0,0x0,0xdf,0xff,0xe2,0x0,0x7f,0xff,0xff,0x0,0x0,0xaf,0xff,0xfe,0xad, +0xff,0xff,0xff,0x0,0x0,0x4f,0xff,0xff,0xff,0xfe,0xff,0xff,0x0,0x0,0xa,0xff,0xff,0xff,0xb2,0xff,0xff,0x0,0x0,0x0, +0x7c,0xfe,0xc6,0x0,0xdf,0xff,0x0,0x7f,0xff,0xf2,0x0,0x0,0x5,0xff,0xff,0x12,0xff,0xff,0x60,0x0,0x0,0xaf,0xff,0xa0, +0xc,0xff,0xfa,0x0,0x0,0xe,0xff,0xf6,0x0,0x7f,0xff,0xe0,0x0,0x3,0xff,0xff,0x10,0x2,0xff,0xff,0x30,0x0,0x7f,0xff, +0xb0,0x0,0xc,0xff,0xf7,0x0,0xb,0xff,0xf6,0x0,0x0,0x7f,0xff,0xb0,0x1,0xff,0xff,0x10,0x0,0x2,0xff,0xff,0x10,0x4f, +0xff,0xb0,0x0,0x0,0xc,0xff,0xf4,0x8,0xff,0xf6,0x0,0x0,0x0,0x7f,0xff,0x80,0xcf,0xff,0x10,0x0,0x0,0x2,0xff,0xfc, +0x1f,0xff,0xb0,0x0,0x0,0x0,0xc,0xff,0xf5,0xff,0xf7,0x0,0x0,0x0,0x0,0x7f,0xff,0xdf,0xff,0x20,0x0,0x0,0x0,0x2, +0xff,0xff,0xff,0xc0,0x0,0x0,0x0,0x0,0xc,0xff,0xff,0xf7,0x0,0x0,0x0,0x0,0x0,0x7f,0xff,0xff,0x20,0x0,0x0,0x1f, +0xff,0xf6,0x0,0x0,0xaf,0xff,0x80,0x0,0x7,0xff,0xfb,0x0,0xdf,0xff,0x90,0x0,0xe,0xff,0xfb,0x0,0x0,0xaf,0xff,0x70, +0x9,0xff,0xfc,0x0,0x2,0xff,0xff,0xf0,0x0,0xd,0xff,0xf4,0x0,0x5f,0xff,0xf1,0x0,0x6f,0xff,0xff,0x40,0x1,0xff,0xff, +0x10,0x1,0xff,0xff,0x30,0x9,0xff,0xef,0xf7,0x0,0x4f,0xff,0xc0,0x0,0xd,0xff,0xf7,0x0,0xdf,0xf9,0xff,0xb0,0x7,0xff, +0xf8,0x0,0x0,0x9f,0xff,0xa0,0x2f,0xfe,0x5f,0xfe,0x0,0xaf,0xff,0x50,0x0,0x5,0xff,0xfd,0x5,0xff,0xb2,0xff,0xf3,0xd, +0xff,0xf1,0x0,0x0,0x2f,0xff,0xf0,0x8f,0xf8,0xe,0xff,0x71,0xff,0xfc,0x0,0x0,0x0,0xdf,0xff,0x3c,0xff,0x60,0xbf,0xfa, +0x3f,0xff,0x90,0x0,0x0,0x9,0xff,0xf5,0xef,0xf2,0x8,0xff,0xd6,0xff,0xf5,0x0,0x0,0x0,0x5f,0xff,0x9f,0xfe,0x0,0x5f, +0xff,0x9f,0xff,0x20,0x0,0x0,0x2,0xff,0xfe,0xff,0xb0,0x1,0xff,0xfe,0xff,0xd0,0x0,0x0,0x0,0xd,0xff,0xff,0xf7,0x0, +0xd,0xff,0xff,0xfa,0x0,0x0,0x0,0x0,0x9f,0xff,0xff,0x40,0x0,0xaf,0xff,0xff,0x60,0x0,0x0,0x0,0x5,0xff,0xff,0xf1, +0x0,0x6,0xff,0xff,0xf2,0x0,0x0,0x1e,0xff,0xfd,0x0,0x0,0x7f,0xff,0xf3,0x5,0xff,0xff,0x70,0x0,0xdf,0xff,0xa0,0x0, +0xbf,0xff,0xe1,0x4,0xff,0xfe,0x20,0x0,0x3f,0xff,0xf7,0xb,0xff,0xf8,0x0,0x0,0x8,0xff,0xfe,0x3f,0xff,0xe1,0x0,0x0, +0x1,0xef,0xff,0xdf,0xff,0x60,0x0,0x0,0x0,0x5f,0xff,0xff,0xfc,0x0,0x0,0x0,0x0,0xc,0xff,0xff,0xf4,0x0,0x0,0x0, +0x0,0x2f,0xff,0xff,0xf2,0x0,0x0,0x0,0x0,0xbf,0xff,0xff,0xfb,0x0,0x0,0x0,0x5,0xff,0xfc,0xff,0xff,0x50,0x0,0x0, +0xd,0xff,0xf4,0x9f,0xff,0xe1,0x0,0x0,0x7f,0xff,0xc0,0x2f,0xff,0xf9,0x0,0x2,0xef,0xff,0x50,0x8,0xff,0xff,0x30,0xa, +0xff,0xfd,0x0,0x1,0xef,0xff,0xd0,0x4f,0xff,0xf6,0x0,0x0,0x6f,0xff,0xf7,0x6f,0xff,0xf2,0x0,0x0,0x6,0xff,0xfe,0x1, +0xef,0xff,0x70,0x0,0x0,0xaf,0xff,0x90,0x9,0xff,0xfc,0x0,0x0,0xe,0xff,0xf4,0x0,0x3f,0xff,0xf2,0x0,0x4,0xff,0xfe, +0x0,0x0,0xcf,0xff,0x70,0x0,0x8f,0xff,0x90,0x0,0x6,0xff,0xfc,0x0,0xc,0xff,0xf4,0x0,0x0,0x1e,0xff,0xf2,0x2,0xff, +0xfd,0x0,0x0,0x0,0x9f,0xff,0x70,0x6f,0xff,0x80,0x0,0x0,0x3,0xff,0xfb,0xa,0xff,0xf3,0x0,0x0,0x0,0xc,0xff,0xf1, +0xdf,0xfd,0x0,0x0,0x0,0x0,0x6f,0xff,0x7f,0xff,0x80,0x0,0x0,0x0,0x1,0xef,0xfe,0xff,0xf3,0x0,0x0,0x0,0x0,0x9, +0xff,0xff,0xfc,0x0,0x0,0x0,0x0,0x0,0x3f,0xff,0xff,0x70,0x0,0x0,0x0,0x0,0x0,0xcf,0xff,0xf2,0x0,0x0,0x0,0x0, +0x0,0x9,0xff,0xfc,0x0,0x0,0x0,0x0,0x0,0x0,0xdf,0xff,0x60,0x0,0x0,0x0,0x0,0x0,0x8f,0xff,0xe1,0x0,0x0,0x0, +0x0,0x9a,0xdf,0xff,0xf7,0x0,0x0,0x0,0x0,0xe,0xff,0xff,0xfc,0x0,0x0,0x0,0x0,0x3,0xff,0xff,0xfc,0x10,0x0,0x0, +0x0,0x0,0x4d,0xfe,0xc7,0x0,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xff,0xff,0xff,0xff,0x0,0xf,0xff,0xff,0xff,0xff,0xff, +0xf0,0x0,0xff,0xff,0xff,0xff,0xff,0xfe,0x0,0xa,0xaa,0xaa,0xaf,0xff,0xff,0x40,0x0,0x0,0x0,0x7,0xff,0xff,0x90,0x0, +0x0,0x0,0x3,0xff,0xff,0xd0,0x0,0x0,0x0,0x1,0xdf,0xff,0xf3,0x0,0x0,0x0,0x0,0xaf,0xff,0xf7,0x0,0x0,0x0,0x0, +0x6f,0xff,0xfb,0x0,0x0,0x0,0x0,0x2e,0xff,0xfe,0x20,0x0,0x0,0x0,0xc,0xff,0xff,0x50,0x0,0x0,0x0,0x8,0xff,0xff, +0xa0,0x0,0x0,0x0,0x4,0xff,0xff,0xfb,0xaa,0xaa,0xaa,0x0,0xef,0xff,0xff,0xff,0xff,0xff,0xf0,0xf,0xff,0xff,0xff,0xff, +0xff,0xff,0x0,0xff,0xff,0xff,0xff,0xff,0xff,0xf0,0x0,0x0,0x6,0xce,0xff,0x0,0x0,0x6,0xff,0xff,0xf0,0x0,0x0,0xcf, +0xff,0x83,0x0,0x0,0xe,0xff,0xf1,0x0,0x0,0x0,0xff,0xff,0x0,0x0,0x0,0xf,0xff,0xf0,0x0,0x0,0x0,0xef,0xff,0x0, +0x0,0x0,0xc,0xff,0xf0,0x0,0x0,0x0,0xbf,0xff,0x0,0x0,0x0,0xb,0xff,0xf0,0x0,0x0,0x0,0xdf,0xfe,0x0,0x0,0x2, +0x9f,0xff,0xb0,0x0,0x8,0xff,0xff,0xe3,0x0,0x0,0x8f,0xff,0xd3,0x0,0x0,0x7,0xef,0xff,0xf4,0x0,0x0,0x0,0x7f,0xff, +0xc0,0x0,0x0,0x0,0xcf,0xfe,0x0,0x0,0x0,0xb,0xff,0xf0,0x0,0x0,0x0,0xbf,0xff,0x0,0x0,0x0,0xc,0xff,0xf0,0x0, +0x0,0x0,0xef,0xff,0x0,0x0,0x0,0xf,0xff,0xf0,0x0,0x0,0x0,0xff,0xff,0x0,0x0,0x0,0xe,0xff,0xf1,0x0,0x0,0x0, +0xcf,0xff,0x83,0x0,0x0,0x6,0xff,0xff,0xf0,0x0,0x0,0x6,0xce,0xff,0x0,0x0,0xf,0xff,0x0,0x0,0x0,0xff,0xf0,0x0, +0x0,0xf,0xff,0x0,0x0,0x0,0xff,0xf0,0x0,0x0,0xf,0xff,0x0,0x0,0x0,0xff,0xf0,0x0,0x0,0xf,0xff,0x0,0x0,0x0, +0xff,0xf0,0x0,0x0,0xf,0xff,0x0,0x0,0x0,0xff,0xf0,0x0,0x0,0xf,0xff,0x0,0x0,0x0,0xff,0xf0,0x0,0x0,0xf,0xff, +0x0,0x0,0x0,0xff,0xf0,0x0,0x0,0xf,0xff,0x0,0x0,0x0,0xff,0xf0,0x0,0x0,0xf,0xff,0x0,0x0,0x0,0xff,0xf0,0x0, +0x0,0xf,0xff,0x0,0x0,0x0,0xff,0xf0,0x0,0x0,0xf,0xff,0x0,0x0,0x0,0xff,0xf0,0x0,0x0,0xf,0xff,0x0,0x0,0x0, +0xff,0xf0,0x0,0x0,0xf,0xff,0x0,0x0,0x0,0xff,0xf0,0x0,0x0,0xf,0xff,0x0,0x0,0x0,0xff,0xf0,0x0,0x0,0xf,0xff, +0x0,0x0,0x0,0xff,0xf0,0x0,0x0,0xf,0xff,0x0,0x0,0x0,0xff,0xf0,0x0,0x8,0xff,0xeb,0x50,0x0,0x0,0x8f,0xff,0xff, +0x50,0x0,0x1,0x39,0xff,0xfc,0x0,0x0,0x0,0x1f,0xff,0xe0,0x0,0x0,0x0,0xff,0xff,0x0,0x0,0x0,0xf,0xff,0xf0,0x0, +0x0,0x0,0xff,0xfe,0x0,0x0,0x0,0xf,0xff,0xc0,0x0,0x0,0x0,0xff,0xfb,0x0,0x0,0x0,0xf,0xff,0xb0,0x0,0x0,0x0, +0xef,0xfd,0x0,0x0,0x0,0xb,0xff,0xf7,0x10,0x0,0x0,0x3e,0xff,0xff,0x0,0x0,0x0,0x3d,0xff,0xf0,0x0,0x0,0x4f,0xff, +0xfe,0x0,0x0,0xc,0xff,0xf5,0x0,0x0,0x0,0xef,0xfc,0x0,0x0,0x0,0xf,0xff,0xb0,0x0,0x0,0x0,0xff,0xfb,0x0,0x0, +0x0,0xf,0xff,0xc0,0x0,0x0,0x0,0xff,0xfe,0x0,0x0,0x0,0xf,0xff,0xf0,0x0,0x0,0x0,0xff,0xff,0x0,0x0,0x0,0x1f, +0xff,0xe0,0x0,0x1,0x39,0xff,0xfc,0x0,0x0,0x8f,0xff,0xff,0x50,0x0,0x8,0xff,0xec,0x50,0x0,0x0,0x0,0x4,0xbe,0xe8, +0x10,0x0,0x3,0x0,0x0,0x7,0xff,0xff,0xfe,0x50,0x4,0xfa,0x10,0x4,0xff,0xff,0xff,0xff,0xcb,0xff,0xf9,0x0,0xcf,0xfe, +0xbd,0xff,0xff,0xff,0xfe,0x20,0x2,0xcd,0x20,0x7,0xff,0xff,0xfe,0x40,0x0,0x0,0x20,0x0,0x2,0xae,0xea,0x20,0x0,0x0, +0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, +0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, +0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x5,0x66,0x66,0x66, +0x66,0x66,0x66,0x66,0x66,0x7d,0x60,0x0,0x0,0x0,0xd,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfb,0x20,0x0,0x0, +0xd,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x30,0x0,0x0,0xd,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, +0xf8,0x0,0x0,0x0,0x0,0x8,0xff,0xfb,0x10,0x0,0x0,0x3,0xef,0xff,0xc0,0x0,0x0,0x0,0x0,0x2,0xdf,0xff,0xe5,0x0, +0x1,0x8f,0xff,0xfc,0x10,0x0,0x0,0x0,0x0,0x0,0x1c,0xff,0xff,0xc7,0x8e,0xff,0xff,0xb1,0x0,0x0,0x0,0x0,0x0,0x0, +0x0,0x8f,0xff,0xff,0xff,0xff,0xf7,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x3,0x7d,0xff,0xff,0xff,0xff,0xd6,0x30,0x0,0x0, +0x0,0x14,0x68,0xac,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xca,0x86,0x42,0xd,0xff,0xff,0xff,0xff,0xff,0xed,0xdf,0xff, +0xff,0xff,0xff,0xff,0xf4,0x5,0xff,0xff,0xff,0xfd,0x84,0x0,0x1,0x5a,0xef,0xff,0xff,0xff,0x80,0x0,0xde,0xca,0x74,0x10, +0x0,0x99,0x97,0x0,0x2,0x69,0xbd,0xfd,0x0,0x0,0x10,0x0,0x0,0x0,0x0,0xff,0xfc,0x0,0x0,0x0,0x0,0x1,0x0,0x0, +0x0,0x13,0x33,0x33,0x33,0xff,0xff,0x33,0x33,0x33,0x31,0x0,0x0,0x0,0x0,0x6f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, +0xf5,0x0,0x0,0x0,0x0,0x6f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf5,0x0,0x0,0x0,0x0,0x6f,0xff,0xff,0xff,0xff, +0xff,0xff,0xff,0xff,0xf5,0x0,0x0,0x0,0x0,0x13,0x33,0x33,0x33,0xff,0xff,0x33,0x33,0x33,0x31,0x0,0x0,0x0,0x0,0x0, +0x0,0x0,0x0,0xff,0xfc,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff,0xfc,0x0,0x0,0x0,0x0,0x0, +0x0,0x8,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x80,0x8,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, +0xff,0xff,0xff,0xff,0x80,0x8,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x80,0x4,0x88,0x88,0x88,0x88, +0x88,0x88,0x88,0x88,0x88,0x88,0x88,0x88,0x40,0x0,0x0,0x0,0x0,0x0,0x0,0x11,0x11,0x0,0x0,0x0,0x0,0x0,0x0,0x0, +0x0,0x0,0x0,0x0,0x0,0xff,0xff,0x10,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0x10,0x0,0x0, +0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0x10,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff, +0xff,0x10,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0x10,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, +0x0,0x0,0x0,0xff,0xff,0x10,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x48,0x63,0x10,0x0,0xff,0xff,0x10,0x0,0x4a,0x90,0x0, +0x0,0x0,0x0,0x8f,0xff,0xc0,0x0,0xff,0xff,0x10,0x1d,0xff,0xf2,0x0,0x0,0x0,0x0,0xbf,0xff,0x80,0x0,0xff,0xff,0x10, +0xb,0xff,0xfa,0x0,0x0,0x0,0x0,0xff,0xff,0x50,0x0,0xff,0xff,0x10,0x3,0xff,0xff,0x30,0x0,0x0,0x4,0xff,0xff,0x10, +0x0,0xff,0xff,0x10,0x0,0xbf,0xff,0xa0,0x0,0x0,0x9,0xff,0xfb,0x0,0x0,0xff,0xff,0x10,0x0,0x5f,0xff,0xf2,0x0,0x0, +0xe,0xff,0xf6,0x0,0x0,0xff,0xff,0x10,0x0,0xd,0xff,0xf8,0x0,0x0,0x4f,0xff,0xf1,0x0,0x0,0xff,0xff,0x10,0x0,0x7, +0xff,0xfe,0x10,0x0,0xaf,0xff,0xb0,0x0,0x0,0xff,0xff,0x10,0x0,0x1,0xff,0xff,0x60,0x2,0xff,0xff,0x50,0x0,0x0,0xff, +0xff,0x10,0x0,0x0,0xbf,0xff,0xb0,0xa,0xff,0xfe,0x0,0x0,0x0,0xff,0xff,0x10,0x0,0x0,0x6f,0xff,0xf1,0x3f,0xff,0xf7, +0x0,0x0,0x0,0xff,0xff,0x10,0x0,0x0,0x1f,0xff,0xf5,0x3,0xbf,0xd1,0x0,0x0,0x0,0xff,0xff,0x10,0x0,0x0,0xc,0xff, +0xf6,0x0,0x4,0x40,0x0,0x0,0x0,0xff,0xff,0x10,0x0,0x0,0x9,0xd7,0x10,0x0,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0x10, +0x0,0x0,0x1,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1,0xff,0xff,0x10,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x2d,0xcc, +0xde,0xff,0xff,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xa,0xff,0xff,0xff,0xfc,0x0,0x0,0x0,0x0,0x0,0x0,0x0, +0x0,0x0,0x5,0xff,0xff,0xff,0xe4,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1,0xee,0xed,0xb8,0x20,0x0,0x0,0x0, +0x0,0x0,0x0,0x0,0x0,0x6a,0xaa,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x9f,0xff,0x0,0x0,0xb, +0xff,0xff,0xff,0xff,0xf9,0x0,0x0,0x0,0x0,0x9f,0xff,0x0,0x0,0xb,0xff,0xff,0xff,0xff,0xf9,0x0,0x0,0x0,0x0,0x9f, +0xff,0x0,0x0,0xb,0xff,0xff,0xff,0xff,0xf9,0x0,0x0,0x0,0x0,0x9f,0xff,0x0,0x0,0xb,0xff,0xf6,0x66,0xff,0xf9,0x0, +0x0,0x6,0x77,0xff,0xff,0x77,0x60,0xd,0xff,0xb0,0x0,0xff,0xf9,0x0,0x0,0xd,0xff,0xff,0xff,0xff,0xc0,0x3f,0xff,0x80, +0x0,0xff,0xf9,0x0,0x0,0xd,0xff,0xff,0xff,0xff,0xc1,0xcf,0xff,0x30,0x0,0xff,0xfa,0x0,0x0,0xd,0xff,0xff,0xff,0xff, +0xfc,0xff,0xfb,0x0,0x0,0xdf,0xfe,0x99,0xb1,0x0,0x0,0x9f,0xff,0x6,0xff,0xff,0xe2,0x0,0x0,0x9f,0xff,0xff,0xf3,0x0, +0x0,0x9f,0xff,0x0,0x7f,0xfd,0x30,0x0,0x0,0x1b,0xff,0xff,0xf4,0x0,0x0,0x9f,0xff,0x0,0x6,0x71,0x0,0x0,0x0,0x0, +0x13,0x22,0x10,0x0,0x0,0x9f,0xff,0xbd,0x6f,0xff,0xff,0xff,0xff,0xff,0xff,0xd7,0x10,0x1,0x48,0xff,0xff,0xff,0x7f,0xff, +0xff,0xff,0xff,0xff,0xff,0xff,0x10,0x1f,0xff,0xff,0xff,0xff,0x9f,0xff,0xff,0xff,0xff,0xff,0xff,0xfa,0x0,0xd,0xff,0xff, +0xff,0xc8,0x48,0xdf,0xf8,0x77,0x77,0x7f,0xff,0xf5,0x0,0x9,0xff,0xff,0xff,0x0,0x7,0xff,0xf9,0x0,0x0,0x3f,0xff,0xd0, +0x0,0x4,0x84,0xaf,0xff,0x0,0x0,0xdf,0xff,0x60,0x1,0xdf,0xff,0x60,0x0,0x0,0x0,0x9f,0xff,0x0,0x0,0x4f,0xff,0xf4, +0xa,0xff,0xfc,0x0,0x0,0x0,0x0,0x9f,0xff,0x0,0x0,0x9,0xff,0xff,0xff,0xff,0xe2,0x0,0x0,0x0,0x0,0x9f,0xff,0x0, +0x0,0x0,0xbf,0xff,0xff,0xff,0x60,0x0,0x0,0x0,0x0,0x9f,0xff,0x0,0x0,0x0,0x2f,0xff,0xff,0xfc,0x0,0x0,0x0,0x0, +0x0,0x9f,0xff,0x0,0x0,0x38,0xef,0xff,0xff,0xff,0xd7,0x10,0x0,0x4,0x55,0xcf,0xff,0x15,0x9d,0xff,0xff,0xff,0xff,0xff, +0xff,0xfc,0x83,0x6,0xff,0xff,0xfd,0xd,0xff,0xff,0xff,0xe7,0x5d,0xff,0xff,0xff,0xf5,0x1,0xff,0xff,0xf8,0x5,0xff,0xff, +0xd7,0x10,0x0,0x7d,0xff,0xff,0x90,0x0,0xcf,0xeb,0x60,0x0,0xdd,0x94,0x0,0x0,0x0,0x0,0x5a,0xed,0x10,0x0,0x0,0x0, +0x0,0x0,0x10,0x0,0x0,0x0,0x0,0x0,0x0,0x2,0x0,0x0,0x9,0x99,0x20,0x0,0x34,0x0,0x7a,0x63,0x0,0x0,0x0,0x10, +0x0,0x0,0xf,0xff,0x30,0x2c,0xfe,0x20,0xbf,0xfd,0x1f,0xff,0xff,0xf6,0x0,0x0,0xf,0xff,0x30,0xc,0xff,0xb0,0xef,0xf7, +0x1f,0xff,0xff,0xff,0x80,0x0,0xf,0xff,0x30,0x4,0xff,0xf6,0xff,0xf1,0x1f,0xff,0xff,0xff,0x60,0x0,0xf,0xff,0x30,0x0, +0xcc,0x48,0xff,0x90,0x1f,0xff,0x7f,0xff,0x20,0x25,0x5f,0xff,0x95,0x39,0xa9,0x9f,0xff,0xc6,0x1f,0xff,0x1f,0xfe,0x0,0x5f, +0xff,0xff,0xff,0x6f,0xff,0xff,0xff,0xfa,0x1f,0xff,0x2f,0xfb,0x0,0x5f,0xff,0xff,0xff,0x6f,0xff,0xff,0xff,0xfa,0x1f,0xff, +0x4f,0xf7,0x0,0x5f,0xff,0xff,0xff,0x5c,0xcf,0xff,0xfc,0xc8,0x1f,0xff,0x6f,0xf3,0x0,0x0,0xf,0xff,0x30,0x0,0x6,0xff, +0xf0,0x0,0x1f,0xff,0x7f,0xe0,0x0,0x0,0xf,0xff,0x30,0x0,0x6,0xff,0xf0,0x0,0x1f,0xff,0x9f,0xb0,0x0,0x0,0xf,0xff, +0x30,0x0,0x6,0xff,0xf0,0x0,0x1f,0xff,0xbf,0x80,0x0,0x0,0xf,0xff,0xdc,0x35,0x5c,0xff,0xf5,0x55,0x1f,0xff,0xaf,0xd0, +0x0,0x0,0x4f,0xff,0xff,0xaf,0xff,0xff,0xff,0xff,0x1f,0xff,0x6f,0xf5,0x0,0x7e,0xff,0xff,0xff,0xdf,0xff,0xff,0xff,0xff, +0x1f,0xff,0x3f,0xf9,0x0,0x7f,0xff,0xff,0xf8,0xaf,0xff,0xff,0xff,0xff,0x1f,0xff,0x2f,0xfd,0x0,0x3f,0xff,0xff,0x30,0x0, +0xc,0xff,0xf0,0x0,0x1f,0xff,0x1f,0xff,0x0,0xa,0x5f,0xff,0x30,0x0,0xf,0xff,0xf5,0x0,0x1f,0xff,0xf,0xff,0x10,0x0, +0xf,0xff,0x30,0x0,0x4f,0xff,0xff,0x40,0x1f,0xff,0x1f,0xff,0x10,0x0,0xf,0xff,0x30,0x0,0xaf,0xff,0xff,0xe3,0x1f,0xff, +0x5f,0xff,0x0,0x0,0xf,0xff,0x30,0x2,0xff,0xff,0xff,0xfe,0x3f,0xff,0xff,0xfd,0x0,0x0,0xf,0xff,0x30,0xa,0xff,0xf3, +0xcf,0xff,0xdf,0xff,0xff,0xf9,0x0,0x0,0xf,0xff,0x30,0x6f,0xff,0xa0,0x2f,0xff,0xbf,0xff,0xdf,0xb1,0x0,0x1,0x1f,0xff, +0x35,0xff,0xfe,0x20,0x7,0xf8,0x1f,0xff,0x10,0x0,0x0,0xe,0xff,0xff,0x4e,0xff,0xf6,0x0,0x1,0x60,0x1f,0xff,0x0,0x0, +0x0,0xa,0xff,0xfd,0x2,0xdf,0x80,0x0,0x0,0x0,0x1f,0xff,0x0,0x0,0x0,0x6,0xee,0xa2,0x0,0x17,0x0,0x0,0x0,0x0, +0x1f,0xff,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x2,0x22,0x0,0x0,0x0,0x0,0x0,0x20,0x0,0x0, +0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x4,0xfe,0xb1,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, +0xa,0xff,0xd0,0x0,0x0,0x0,0x1,0x11,0x11,0x11,0x11,0x11,0x0,0x0,0x2f,0xff,0xff,0xff,0xff,0xf8,0xf,0xff,0xff,0xff, +0xff,0xff,0x0,0x0,0xaf,0xff,0xff,0xff,0xff,0xf8,0xf,0xff,0xff,0xff,0xff,0xff,0x0,0x7,0xff,0xff,0xff,0xff,0xdd,0xd6, +0xf,0xff,0xff,0xff,0xff,0xff,0x0,0x7,0xef,0xd1,0x8f,0xff,0x0,0x0,0xf,0xff,0x83,0x33,0xbf,0xff,0x0,0x6,0x9f,0xb8, +0xff,0xff,0x88,0x88,0x1f,0xff,0x70,0x0,0xaf,0xff,0x0,0xc,0xff,0xff,0xff,0xff,0xff,0xff,0x2f,0xff,0x70,0x0,0xaf,0xff, +0x0,0xc,0xff,0xff,0xff,0xff,0xff,0xff,0x2f,0xff,0x70,0x0,0xaf,0xff,0x0,0x6,0x88,0x8d,0xff,0xff,0xb8,0x88,0x1f,0xff, +0x93,0x33,0xbf,0xff,0x0,0x0,0x0,0x2e,0xff,0xff,0xfa,0x20,0xf,0xff,0xff,0xff,0xff,0xff,0x0,0x0,0x4,0xef,0xff,0xff, +0xff,0xf8,0x1f,0xff,0xff,0xff,0xff,0xff,0x0,0x3,0xaf,0xff,0xfb,0x1b,0xff,0xfb,0x1f,0xff,0xff,0xff,0xff,0xff,0x0,0xa, +0xff,0xff,0xc1,0x0,0x8f,0xb1,0x1,0x11,0x11,0x11,0x11,0x11,0x0,0x0,0xcf,0xf9,0x0,0x0,0x5,0x10,0x0,0x0,0x0,0x0, +0x0,0x0,0x0,0x0,0x2b,0x5f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf8,0x0,0x0,0x0,0x0,0x1f,0xff,0xff,0xff,0xff, +0xff,0xff,0xff,0xff,0xf8,0x0,0x0,0x0,0x0,0x1f,0xff,0xee,0xee,0xee,0xee,0xee,0xee,0xff,0xf8,0x0,0x0,0x0,0x0,0x1f, +0xff,0x90,0x0,0x0,0x0,0x0,0x2,0xff,0xf8,0x0,0x0,0x0,0x0,0x1f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf8,0x0, +0x0,0x0,0x0,0x1f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf8,0x0,0x0,0x0,0x0,0x1f,0xff,0xfd,0xdd,0xdd,0xdd,0xdd, +0xdf,0xff,0xf8,0x0,0x0,0x0,0x0,0x1f,0xff,0x90,0x0,0x0,0x0,0x0,0x2,0xff,0xf8,0x0,0x0,0x0,0x0,0x1f,0xff,0xff, +0xff,0xff,0xff,0xff,0xff,0xff,0xf8,0x0,0x0,0x0,0x0,0x1f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf8,0x0,0x0,0x0, +0x0,0x1f,0xff,0xfe,0xee,0xee,0xee,0xee,0xef,0xff,0xf8,0x0,0x0,0x0,0x0,0x1f,0xff,0x90,0x0,0x0,0x0,0x0,0x2,0xff, +0xf8,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xcc,0xcb,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff, +0xfe,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff,0xfe,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, +0x0,0x0,0x0,0xff,0xfe,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x5,0xaa,0xaa,0xaa,0xaa,0xff,0xff,0xaa,0xaa,0xaa,0xaa,0x60, +0x0,0x0,0x7,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x80,0x0,0x0,0x7,0xff,0xff,0xff,0xff,0xff,0xff,0xff, +0xff,0xff,0xff,0x80,0x0,0x0,0x7,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x80,0x0,0x0,0x0,0x0,0x0,0x0, +0x0,0xff,0xfe,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff,0xfe,0x0,0x0,0x0,0x0,0x0,0x0,0x0, +0x0,0x0,0x0,0x0,0x0,0xff,0xfe,0x0,0x0,0x0,0x0,0x0,0x0,0x8,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, +0xff,0xff,0xa0,0x8,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xa0,0x8,0xff,0xff,0xff,0xff,0xff,0xff, +0xff,0xff,0xff,0xff,0xff,0xff,0xa0,0x6,0xbb,0xbb,0xbb,0xbb,0xff,0xff,0xff,0xff,0xbb,0xbb,0xbb,0xbb,0x70,0x0,0x0,0x0, +0x0,0x5,0xff,0xff,0xff,0xff,0x40,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x5f,0xff,0xff,0xff,0xff,0xe4,0x0,0x0,0x0, +0x0,0x0,0x0,0x0,0x5,0xff,0xff,0xff,0xff,0xff,0xfe,0x40,0x0,0x0,0x0,0x0,0x0,0x0,0x6f,0xff,0xfb,0xff,0xfe,0xbf, +0xff,0xf5,0x0,0x0,0x0,0x0,0x0,0x1a,0xff,0xff,0xc1,0xff,0xfe,0x1d,0xff,0xff,0x80,0x0,0x0,0x0,0x3,0xdf,0xff,0xfd, +0x20,0xff,0xfe,0x2,0xef,0xff,0xfc,0x20,0x0,0x1,0x9f,0xff,0xff,0xd2,0x0,0xff,0xfe,0x0,0x2d,0xff,0xff,0xf8,0x10,0x3f, +0xff,0xff,0xfb,0x10,0x0,0xff,0xfe,0x0,0x2,0xcf,0xff,0xff,0xe2,0x9,0xff,0xff,0x90,0x0,0x0,0xff,0xfe,0x0,0x0,0x1b, +0xff,0xff,0x60,0x0,0xbf,0xe5,0x0,0x0,0x0,0xff,0xfe,0x0,0x0,0x0,0x7f,0xf9,0x0,0x0,0x29,0x10,0x0,0x0,0x0,0xff, +0xfe,0x0,0x0,0x0,0x3,0xa1,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff,0xfe,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xb, +0xbb,0x60,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xf,0xff,0x80,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, +0x0,0x0,0x0,0xf,0xff,0x80,0x6,0x99,0x99,0x99,0x99,0x99,0x99,0x99,0x90,0x0,0x0,0xf,0xff,0x80,0xa,0xff,0xff,0xff, +0xff,0xff,0xff,0xff,0xf0,0x0,0x0,0xf,0xff,0x80,0xa,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf0,0x0,0x0,0xf,0xff,0x80, +0x9,0xee,0xee,0xee,0xff,0xff,0xfe,0xee,0xe0,0xb,0xff,0xff,0xff,0xff,0xfb,0x0,0x0,0x5,0xff,0xfc,0x0,0x0,0x0,0xb, +0xff,0xff,0xff,0xff,0xfb,0x0,0x0,0xc,0xff,0xf6,0x0,0x0,0x0,0xb,0xff,0xff,0xff,0xff,0xfb,0x0,0x0,0x6f,0xff,0xf0, +0x0,0x0,0x0,0x5,0x88,0xef,0xff,0xf8,0x85,0x0,0x2,0xef,0xff,0xf8,0x80,0x0,0x0,0x0,0x0,0xbf,0xff,0xf6,0x0,0x0, +0xb,0xff,0xff,0xff,0xf9,0x0,0x0,0x0,0x1,0xef,0xff,0xff,0x70,0x0,0x9f,0xff,0xff,0xff,0xff,0x90,0x0,0x0,0x5,0xff, +0xff,0xff,0xf7,0x8,0xff,0xff,0xff,0xfe,0xff,0xf9,0x0,0x0,0xb,0xff,0xff,0xff,0xf7,0xaf,0xff,0xff,0xff,0xe4,0xff,0xff, +0x80,0x0,0x2f,0xff,0xff,0x9d,0xfd,0xff,0xff,0xcb,0xff,0xe0,0x5f,0xff,0xf5,0x0,0x9f,0xff,0xff,0x85,0xff,0xff,0xfc,0x1b, +0xff,0xe0,0x7,0xff,0xe3,0x2,0xff,0xef,0xff,0x80,0x3f,0xff,0xc1,0xb,0xff,0xe0,0x0,0xbe,0x30,0xa,0xff,0x9f,0xff,0x80, +0x6,0xf9,0x0,0xb,0xff,0xe0,0x0,0x23,0x0,0x4f,0xff,0x3f,0xff,0x80,0x0,0x40,0x0,0xb,0xff,0xe0,0x0,0x0,0x0,0x1e, +0xfc,0xf,0xff,0x80,0x0,0x0,0x0,0xb,0xff,0xe0,0x0,0x0,0x0,0x7,0xf5,0xf,0xff,0x80,0x0,0x0,0x0,0xb,0xff,0xe0, +0x0,0x0,0x0,0x1,0xa0,0xf,0xff,0x80,0x0,0x0,0x0,0xb,0xff,0xe0,0x0,0x0,0x0,0x0,0x0,0xf,0xff,0x80,0x0,0x0, +0x0,0xb,0xff,0xe0,0x0,0x0,0x0,0x0,0x0,0xf,0xff,0x80,0x0,0x0,0x0,0xb,0xff,0xe0,0x0,0x0,0x0,0x0,0x0,0xf, +0xff,0x80,0x0,0x0,0x0,0xb,0xff,0xe0,0x0,0x0,0x0,0x0,0x0,0xf,0xff,0x80,0x0,0x0,0x0,0xb,0xff,0xe0,0x0,0x0, +0x0,0x0,0x0,0xf,0xff,0x80,0x0,0x0,0x0,0xb,0xff,0xe0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1, +0x11,0x10,0x0,0x0,0x0,0x0,0x0,0x2e,0xa7,0x30,0x0,0x0,0x0,0xcb,0x73,0x0,0x0,0x0,0x0,0x0,0x0,0x7f,0xff,0x60, +0x0,0x0,0x3,0xff,0xfa,0x0,0x0,0x0,0x0,0x0,0x0,0xdf,0xff,0x21,0x11,0x11,0xa,0xff,0xf5,0x11,0x11,0x11,0x10,0x0, +0x5,0xff,0xff,0xff,0xff,0xff,0x4f,0xff,0xff,0xff,0xff,0xff,0xd0,0x0,0xd,0xff,0xff,0xff,0xff,0xff,0xdf,0xff,0xff,0xff, +0xff,0xff,0xd0,0x0,0x8f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xd0,0x5,0xff,0xff,0x3f,0xff,0xc1,0x9f, +0xff,0xe2,0x2e,0xff,0xf2,0x11,0x10,0x9,0xff,0xf6,0x9,0xff,0xf4,0x9f,0xff,0x30,0x5,0xff,0xf6,0x0,0x0,0x0,0x2a,0x90, +0x3,0xfd,0x71,0x2,0xa5,0x0,0x2,0xed,0xb4,0x0,0x0,0x0,0x0,0x0,0x12,0x53,0x45,0x67,0x8a,0xbd,0xff,0xff,0xfd,0x10, +0x0,0x0,0x4,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x90,0x0,0x0,0x0,0xef,0xff,0xff,0xff,0xff,0xff,0xff, +0xff,0xfe,0xc9,0x60,0x0,0x0,0x0,0xbf,0xff,0xff,0xfe,0xff,0xff,0xd7,0x53,0x20,0x0,0x0,0x0,0x0,0x0,0x12,0x11,0x10, +0x0,0xef,0xff,0x30,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x2,0xff,0xff,0x0,0x0,0x0,0x0,0x0,0x0,0x1, +0x44,0x44,0x44,0x44,0x48,0xff,0xff,0x44,0x44,0x44,0x44,0x44,0x40,0x6,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, +0xff,0xff,0xf0,0x6,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf0,0x6,0xff,0xff,0xff,0xff,0xff,0xff, +0xff,0xff,0xff,0xff,0xff,0xff,0xf0,0x0,0x0,0x0,0x0,0x2,0xef,0xff,0xff,0xff,0x40,0x0,0x0,0x0,0x0,0x0,0x0,0x0, +0x0,0x2d,0xff,0xfd,0x6f,0xff,0xf6,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x6,0xef,0xff,0xf4,0x9,0xff,0xff,0xa2,0x0,0x0, +0x0,0x0,0x0,0x16,0xcf,0xff,0xff,0x50,0x0,0xaf,0xff,0xff,0x94,0x0,0x0,0x1,0x6a,0xef,0xff,0xff,0xe4,0x0,0x0,0x9, +0xff,0xff,0xff,0xda,0x61,0x1,0xdf,0xff,0xff,0xfa,0x10,0x0,0x0,0x0,0x5e,0xff,0xff,0xff,0x90,0x0,0x4f,0xff,0xf9,0x30, +0x0,0x0,0x0,0x0,0x1,0x7d,0xff,0xfc,0x0,0x0,0xa,0xa5,0x10,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x49,0xd4,0x0,0x1, +0xcc,0xcc,0xcc,0xfc,0x40,0x14,0x44,0x44,0x44,0x44,0x44,0x43,0x0,0x1,0xff,0xff,0xff,0xff,0xfb,0x5f,0xff,0xff,0xff,0xff, +0xff,0xfc,0x0,0x1,0xff,0xff,0xff,0xff,0xfa,0x5f,0xff,0xff,0xff,0xff,0xff,0xfc,0x0,0x1,0xff,0xfa,0x8e,0xff,0xf4,0x5f, +0xff,0xff,0xff,0xff,0xff,0xfc,0x0,0x1,0xff,0xf5,0xb,0xff,0xd0,0x5f,0xff,0x54,0x44,0x44,0xff,0xfc,0x0,0x1,0xff,0xf5, +0xe,0xff,0x70,0x5f,0xff,0x20,0x0,0x0,0xff,0xfc,0x0,0x1,0xff,0xf5,0x4f,0xfe,0x10,0x5f,0xff,0x20,0x0,0x0,0xff,0xfc, +0x0,0x1,0xff,0xf5,0x8f,0xf9,0x0,0x5f,0xff,0x20,0x0,0x0,0xff,0xfc,0x0,0x1,0xff,0xf5,0xcf,0xf3,0x0,0x5f,0xff,0x20, +0x0,0x0,0xff,0xfc,0x0,0x1,0xff,0xf5,0xaf,0xfb,0x0,0x5f,0xff,0x20,0x0,0x0,0xff,0xfc,0x0,0x1,0xff,0xf5,0x1e,0xff, +0x60,0x5f,0xff,0xff,0xff,0xff,0xff,0xfc,0x0,0x1,0xff,0xf5,0x8,0xff,0xd0,0x5f,0xff,0xff,0xff,0xff,0xff,0xfc,0x0,0x1, +0xff,0xf5,0x3,0xff,0xf3,0x5f,0xff,0xff,0xff,0xff,0xff,0xfc,0x0,0x1,0xff,0xf5,0x1,0xff,0xf5,0x5f,0xff,0x86,0x66,0x66, +0xff,0xfc,0x0,0x1,0xff,0xf5,0x1,0xff,0xf6,0x5f,0xff,0x20,0x0,0x0,0xff,0xfc,0x0,0x1,0xff,0xf7,0x38,0xff,0xf6,0x5f, +0xff,0x20,0x0,0x0,0xff,0xfc,0x0,0x1,0xff,0xf8,0xff,0xff,0xf3,0x5f,0xff,0x20,0x0,0x0,0xff,0xfc,0x0,0x1,0xff,0xf5, +0xdf,0xff,0xc0,0x5f,0xff,0x20,0x0,0x0,0xff,0xfc,0x0,0x1,0xff,0xf5,0xaf,0xfb,0x10,0x5f,0xff,0x20,0x0,0x0,0xff,0xfc, +0x0,0x1,0xff,0xf5,0x12,0x10,0x0,0x5f,0xff,0x31,0x11,0x11,0xff,0xfc,0x0,0x1,0xff,0xf5,0x0,0x0,0x0,0x5f,0xff,0xff, +0xff,0xff,0xff,0xfc,0x0,0x1,0xff,0xf5,0x0,0x0,0x0,0x5f,0xff,0xff,0xff,0xff,0xff,0xfc,0x0,0x1,0xff,0xf5,0x0,0x0, +0x0,0x5f,0xff,0xff,0xff,0xff,0xff,0xfc,0x0,0x1,0xff,0xf5,0x0,0x0,0x0,0x5f,0xff,0x86,0x66,0x66,0xff,0xfc,0x0,0x1, +0xff,0xf5,0x0,0x0,0x0,0x5f,0xff,0x20,0x0,0x0,0xff,0xfc,0x0,0x1,0xff,0xf5,0x0,0x0,0x0,0x5f,0xff,0x20,0x0,0x0, +0xff,0xfc,0x0,0x0,0x22,0x21,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x88,0x88,0x88,0xd7,0x10,0x15, +0xaa,0x65,0x55,0x55,0x5a,0xa5,0x30,0x0,0xff,0xff,0xff,0xff,0xe6,0x3f,0xff,0xff,0xff,0xff,0xff,0xff,0x90,0x0,0xff,0xff, +0xff,0xff,0xfb,0x3f,0xff,0xff,0xff,0xff,0xff,0xff,0x90,0x0,0xff,0xfd,0xcf,0xff,0xf6,0x3f,0xff,0xff,0xff,0xff,0xff,0xff, +0x90,0x0,0xff,0xf7,0x8,0xff,0xf1,0x3f,0xff,0x40,0x0,0x0,0xf,0xff,0x90,0x0,0xff,0xf7,0xc,0xff,0xb0,0x3f,0xff,0x40, +0x0,0x0,0xf,0xff,0x90,0x0,0xff,0xf7,0x1f,0xff,0x60,0x3f,0xff,0x72,0x22,0x22,0x2f,0xff,0x90,0x0,0xff,0xf7,0x4f,0xfe, +0x10,0x3f,0xff,0xff,0xff,0xff,0xff,0xff,0x90,0x0,0xff,0xf7,0x8f,0xfa,0x0,0x3f,0xff,0xff,0xff,0xff,0xff,0xff,0x90,0x0, +0xff,0xf7,0x8f,0xfe,0x10,0x3f,0xff,0xff,0xff,0xff,0xff,0xff,0x90,0x0,0xff,0xf7,0x1d,0xff,0x80,0x3f,0xff,0x62,0x22,0x22, +0x2f,0xff,0x90,0x0,0xff,0xf7,0x8,0xff,0xe0,0x3f,0xff,0x40,0x0,0x0,0xf,0xff,0x90,0x0,0xff,0xf7,0x3,0xff,0xf3,0x3f, +0xff,0x40,0x0,0x0,0xf,0xff,0x90,0x0,0xff,0xf7,0x1,0xff,0xf6,0x3f,0xff,0xd9,0x99,0x99,0x9f,0xff,0x90,0x0,0xff,0xf7, +0x1,0xff,0xf7,0x4f,0xff,0xff,0xff,0xff,0xff,0xff,0x90,0x0,0xff,0xf8,0x27,0xff,0xf6,0x5f,0xff,0xff,0xff,0xff,0xff,0xff, +0x90,0x0,0xff,0xf8,0xff,0xff,0xf4,0x7f,0xff,0xcb,0xbb,0xbb,0xbf,0xff,0x90,0x0,0xff,0xf7,0xbf,0xff,0xd0,0x9f,0xff,0x0, +0x0,0x0,0xf,0xff,0x90,0x0,0xff,0xf7,0x8f,0xfc,0x30,0xbf,0xfc,0x0,0x0,0x0,0xf,0xff,0x90,0x0,0xff,0xf7,0x13,0x20, +0x0,0xef,0xfa,0x0,0x0,0x0,0xf,0xff,0x90,0x0,0xff,0xf7,0x0,0x0,0x3,0xff,0xf6,0x0,0x0,0x0,0xf,0xff,0x90,0x0, +0xff,0xf7,0x0,0x0,0x9,0xff,0xf2,0x0,0x0,0x0,0xf,0xff,0x90,0x0,0xff,0xf7,0x0,0x0,0x1e,0xff,0xc0,0x0,0x8,0xa9, +0xaf,0xff,0x80,0x0,0xff,0xf7,0x0,0x0,0x9f,0xff,0x70,0x0,0x6,0xff,0xff,0xff,0x60,0x0,0xff,0xf7,0x0,0x5,0xff,0xfe, +0x10,0x0,0x1,0xff,0xff,0xfe,0x10,0x0,0xff,0xf7,0x0,0x0,0x6d,0xf5,0x0,0x0,0x0,0xcf,0xec,0x82,0x0,0x0,0x22,0x21, +0x0,0x0,0x1,0x60,0x0,0x0,0x0,0x0,0x0,0x0,0x0, +}; +static const lv_font_fmt_txt_glyph_dsc_t glyphs[]={ +{0}, +{.bitmap_index=0,.adv_w=96,.box_w=6,.box_h=0,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=0,.adv_w=192,.box_w=12,.box_h=22,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=132,.adv_w=272,.box_w=17,.box_h=22,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=319,.adv_w=272,.box_w=17,.box_h=21,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=498,.adv_w=272,.box_w=17,.box_h=27,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=728,.adv_w=448,.box_w=28,.box_h=21,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1022,.adv_w=336,.box_w=21,.box_h=21,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1243,.adv_w=144,.box_w=9,.box_h=22,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1342,.adv_w=176,.box_w=11,.box_h=30,.ofs_x=0,.ofs_y=-6}, +{.bitmap_index=1507,.adv_w=176,.box_w=11,.box_h=30,.ofs_x=0,.ofs_y=-6}, +{.bitmap_index=1672,.adv_w=240,.box_w=15,.box_h=22,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1837,.adv_w=272,.box_w=17,.box_h=18,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1990,.adv_w=144,.box_w=9,.box_h=12,.ofs_x=0,.ofs_y=-7}, +{.bitmap_index=2044,.adv_w=160,.box_w=10,.box_h=10,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=2094,.adv_w=160,.box_w=10,.box_h=6,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=2124,.adv_w=176,.box_w=11,.box_h=28,.ofs_x=0,.ofs_y=-6}, +{.bitmap_index=2278,.adv_w=272,.box_w=17,.box_h=21,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=2457,.adv_w=272,.box_w=17,.box_h=21,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=2636,.adv_w=272,.box_w=17,.box_h=21,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=2815,.adv_w=272,.box_w=17,.box_h=21,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=2994,.adv_w=272,.box_w=17,.box_h=21,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=3173,.adv_w=272,.box_w=17,.box_h=21,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=3352,.adv_w=272,.box_w=17,.box_h=21,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=3531,.adv_w=272,.box_w=17,.box_h=21,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=3710,.adv_w=272,.box_w=17,.box_h=21,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=3889,.adv_w=272,.box_w=17,.box_h=21,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=4068,.adv_w=160,.box_w=10,.box_h=16,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=4148,.adv_w=144,.box_w=9,.box_h=23,.ofs_x=0,.ofs_y=-7}, +{.bitmap_index=4252,.adv_w=272,.box_w=17,.box_h=18,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=4405,.adv_w=272,.box_w=17,.box_h=16,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=4541,.adv_w=272,.box_w=17,.box_h=18,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=4694,.adv_w=240,.box_w=15,.box_h=22,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=4859,.adv_w=464,.box_w=29,.box_h=27,.ofs_x=0,.ofs_y=-6}, +{.bitmap_index=5251,.adv_w=288,.box_w=20,.box_h=21,.ofs_x=-1,.ofs_y=0}, +{.bitmap_index=5461,.adv_w=304,.box_w=19,.box_h=21,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=5661,.adv_w=288,.box_w=18,.box_h=21,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=5850,.adv_w=320,.box_w=20,.box_h=21,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=6060,.adv_w=272,.box_w=17,.box_h=21,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=6239,.adv_w=256,.box_w=16,.box_h=21,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=6407,.adv_w=320,.box_w=20,.box_h=21,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=6617,.adv_w=336,.box_w=21,.box_h=21,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=6838,.adv_w=144,.box_w=9,.box_h=21,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=6933,.adv_w=256,.box_w=16,.box_h=21,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=7101,.adv_w=304,.box_w=20,.box_h=21,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=7311,.adv_w=256,.box_w=16,.box_h=21,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=7479,.adv_w=384,.box_w=24,.box_h=21,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=7731,.adv_w=336,.box_w=21,.box_h=21,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=7952,.adv_w=336,.box_w=21,.box_h=21,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=8173,.adv_w=304,.box_w=19,.box_h=21,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=8373,.adv_w=336,.box_w=21,.box_h=27,.ofs_x=0,.ofs_y=-6}, +{.bitmap_index=8657,.adv_w=304,.box_w=19,.box_h=21,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=8857,.adv_w=288,.box_w=18,.box_h=21,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=9046,.adv_w=288,.box_w=18,.box_h=21,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=9235,.adv_w=336,.box_w=21,.box_h=21,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=9456,.adv_w=288,.box_w=19,.box_h=21,.ofs_x=-1,.ofs_y=0}, +{.bitmap_index=9656,.adv_w=416,.box_w=26,.box_h=21,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=9929,.adv_w=288,.box_w=18,.box_h=21,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=10118,.adv_w=272,.box_w=18,.box_h=21,.ofs_x=-1,.ofs_y=0}, +{.bitmap_index=10307,.adv_w=272,.box_w=17,.box_h=21,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=10486,.adv_w=176,.box_w=11,.box_h=27,.ofs_x=0,.ofs_y=-5}, +{.bitmap_index=10635,.adv_w=176,.box_w=11,.box_h=28,.ofs_x=0,.ofs_y=-6}, +{.bitmap_index=10789,.adv_w=176,.box_w=11,.box_h=27,.ofs_x=0,.ofs_y=-5}, +{.bitmap_index=10938,.adv_w=272,.box_w=17,.box_h=22,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=11125,.adv_w=272,.box_w=17,.box_h=4,.ofs_x=0,.ofs_y=-4}, +{.bitmap_index=11159,.adv_w=288,.box_w=18,.box_h=26,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=11393,.adv_w=272,.box_w=17,.box_h=16,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=11529,.adv_w=288,.box_w=18,.box_h=22,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=11727,.adv_w=240,.box_w=15,.box_h=16,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=11847,.adv_w=288,.box_w=18,.box_h=22,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=12045,.adv_w=256,.box_w=16,.box_h=16,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=12173,.adv_w=176,.box_w=12,.box_h=23,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=12311,.adv_w=272,.box_w=17,.box_h=22,.ofs_x=0,.ofs_y=-6}, +{.bitmap_index=12498,.adv_w=288,.box_w=18,.box_h=22,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=12696,.adv_w=144,.box_w=9,.box_h=23,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=12800,.adv_w=144,.box_w=11,.box_h=29,.ofs_x=-2,.ofs_y=-6}, +{.bitmap_index=12960,.adv_w=272,.box_w=18,.box_h=22,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=13158,.adv_w=144,.box_w=9,.box_h=22,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=13257,.adv_w=432,.box_w=27,.box_h=16,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=13473,.adv_w=288,.box_w=18,.box_h=16,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=13617,.adv_w=272,.box_w=17,.box_h=16,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=13753,.adv_w=288,.box_w=18,.box_h=22,.ofs_x=0,.ofs_y=-6}, +{.bitmap_index=13951,.adv_w=288,.box_w=18,.box_h=22,.ofs_x=0,.ofs_y=-6}, +{.bitmap_index=14149,.adv_w=208,.box_w=13,.box_h=16,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=14253,.adv_w=240,.box_w=15,.box_h=16,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=14373,.adv_w=208,.box_w=13,.box_h=20,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=14503,.adv_w=288,.box_w=18,.box_h=16,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=14647,.adv_w=272,.box_w=17,.box_h=16,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=14783,.adv_w=400,.box_w=25,.box_h=16,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=14983,.adv_w=256,.box_w=16,.box_h=16,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=15111,.adv_w=256,.box_w=17,.box_h=22,.ofs_x=0,.ofs_y=-6}, +{.bitmap_index=15298,.adv_w=240,.box_w=15,.box_h=16,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=15418,.adv_w=176,.box_w=11,.box_h=27,.ofs_x=0,.ofs_y=-5}, +{.bitmap_index=15567,.adv_w=144,.box_w=9,.box_h=32,.ofs_x=0,.ofs_y=-8}, +{.bitmap_index=15711,.adv_w=176,.box_w=11,.box_h=27,.ofs_x=0,.ofs_y=-5}, +{.bitmap_index=15860,.adv_w=272,.box_w=17,.box_h=14,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=15979,.adv_w=448,.box_w=28,.box_h=25,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=16329,.adv_w=448,.box_w=28,.box_h=27,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=16707,.adv_w=448,.box_w=28,.box_h=28,.ofs_x=0,.ofs_y=-4}, +{.bitmap_index=17099,.adv_w=448,.box_w=28,.box_h=28,.ofs_x=0,.ofs_y=-4}, +{.bitmap_index=17491,.adv_w=448,.box_w=28,.box_h=28,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=17883,.adv_w=448,.box_w=28,.box_h=27,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=18261,.adv_w=448,.box_w=28,.box_h=28,.ofs_x=0,.ofs_y=-4}, +{.bitmap_index=18653,.adv_w=448,.box_w=28,.box_h=27,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=19031,.adv_w=448,.box_w=28,.box_h=27,.ofs_x=0,.ofs_y=-4}, +{.bitmap_index=19409,.adv_w=448,.box_w=28,.box_h=27,.ofs_x=0,.ofs_y=-4} +}; +static const uint16_t unicode[]={0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,22275,23535,25205,25495,26202,26378,26447,31473,38419,38420}; +static const lv_font_fmt_txt_cmap_t cmaps[]={{.range_start=32,.range_length=38421,.glyph_id_start=1,.unicode_list=unicode,.list_length=105,.type=LV_FONT_FMT_TXT_CMAP_SPARSE_TINY}}; +static const lv_font_fmt_txt_dsc_t descriptor={.glyph_bitmap=bitmap,.glyph_dsc=glyphs,.cmaps=cmaps,.cmap_num=1,.bpp=4,.bitmap_format=0}; +const lv_font_t font_badge_28={.get_glyph_dsc=lv_font_get_glyph_dsc_fmt_txt,.get_glyph_bitmap=lv_font_get_bitmap_fmt_txt,.line_height=32,.base_line=8,.dsc=&descriptor}; diff --git a/main/font_muyu_14.c b/main/font_muyu_14.c new file mode 100644 index 0000000..c8763b6 --- /dev/null +++ b/main/font_muyu_14.c @@ -0,0 +1,4 @@ +/* Shared Noto Sans SC 14px glyphs; see assets/fonts/OFL.txt. */ +#include "lvgl.h" +extern const lv_font_fmt_txt_dsc_t font_ui_14_descriptor; +const lv_font_t font_muyu_14={.get_glyph_dsc=lv_font_get_glyph_dsc_fmt_txt,.get_glyph_bitmap=lv_font_get_bitmap_fmt_txt,.line_height=18,.base_line=4,.dsc=&font_ui_14_descriptor}; diff --git a/main/font_muyu_22.c b/main/font_muyu_22.c new file mode 100644 index 0000000..9395a49 --- /dev/null +++ b/main/font_muyu_22.c @@ -0,0 +1,498 @@ +/******************************************************************************* + * Size: 22 px + * Bpp: 4 + * Source: Source Han Sans SC Medium (22 px, 4 bpp, uncompressed UI subset) + ******************************************************************************/ + +#ifdef LV_LVGL_H_INCLUDE_SIMPLE +#include "lvgl.h" +#else +#include "lvgl.h" +#endif + +#ifndef FONT_MUYU_22 +#define FONT_MUYU_22 1 +#endif + +#if FONT_MUYU_22 + +/*----------------- + * BITMAPS + *----------------*/ + +/*Store the image of the glyphs*/ +static LV_ATTRIBUTE_LARGE_CONST const uint8_t glyph_bitmap[] = { + /* U+0020 " " */ + + /* U+002B "+" */ + 0x0, 0x0, 0x9, 0xd3, 0x0, 0x0, 0x0, 0x0, + 0xb, 0xf3, 0x0, 0x0, 0x0, 0x0, 0xb, 0xf3, + 0x0, 0x0, 0x0, 0x0, 0xb, 0xf3, 0x0, 0x0, + 0x0, 0x0, 0xb, 0xf3, 0x0, 0x0, 0x2e, 0xee, + 0xef, 0xfe, 0xee, 0xea, 0x2f, 0xff, 0xff, 0xff, + 0xff, 0xfb, 0x0, 0x0, 0xb, 0xf3, 0x0, 0x0, + 0x0, 0x0, 0xb, 0xf3, 0x0, 0x0, 0x0, 0x0, + 0xb, 0xf3, 0x0, 0x0, 0x0, 0x0, 0xb, 0xf3, + 0x0, 0x0, 0x0, 0x0, 0xb, 0xf3, 0x0, 0x0, + + /* U+0030 "0" */ + 0x0, 0x19, 0xef, 0xc6, 0x0, 0x0, 0x2e, 0xff, + 0xff, 0xf8, 0x0, 0xb, 0xff, 0x53, 0xaf, 0xf4, + 0x3, 0xff, 0x50, 0x0, 0xcf, 0xb0, 0x8f, 0xe0, + 0x0, 0x6, 0xff, 0xb, 0xfa, 0x0, 0x0, 0x2f, + 0xf3, 0xdf, 0x80, 0x0, 0x0, 0xff, 0x6e, 0xf7, + 0x0, 0x0, 0xf, 0xf7, 0xff, 0x70, 0x0, 0x0, + 0xef, 0x7e, 0xf7, 0x0, 0x0, 0xf, 0xf7, 0xdf, + 0x80, 0x0, 0x0, 0xff, 0x6b, 0xfb, 0x0, 0x0, + 0x2f, 0xf3, 0x8f, 0xf0, 0x0, 0x6, 0xff, 0x2, + 0xff, 0x50, 0x0, 0xcf, 0xb0, 0xb, 0xff, 0x52, + 0x9f, 0xf3, 0x0, 0x1e, 0xff, 0xff, 0xf8, 0x0, + 0x0, 0x19, 0xef, 0xc5, 0x0, 0x0, + + /* U+0031 "1" */ + 0x0, 0x3, 0xbf, 0xf0, 0x0, 0x0, 0x5e, 0xff, + 0xff, 0x0, 0x0, 0x7, 0xff, 0xff, 0xf0, 0x0, + 0x0, 0x0, 0x8, 0xff, 0x0, 0x0, 0x0, 0x0, + 0x8f, 0xf0, 0x0, 0x0, 0x0, 0x8, 0xff, 0x0, + 0x0, 0x0, 0x0, 0x8f, 0xf0, 0x0, 0x0, 0x0, + 0x8, 0xff, 0x0, 0x0, 0x0, 0x0, 0x8f, 0xf0, + 0x0, 0x0, 0x0, 0x8, 0xff, 0x0, 0x0, 0x0, + 0x0, 0x8f, 0xf0, 0x0, 0x0, 0x0, 0x8, 0xff, + 0x0, 0x0, 0x0, 0x0, 0x8f, 0xf0, 0x0, 0x0, + 0x0, 0x8, 0xff, 0x0, 0x0, 0x2, 0x22, 0xaf, + 0xf2, 0x22, 0x1, 0xff, 0xff, 0xff, 0xff, 0xf1, + 0x1f, 0xff, 0xff, 0xff, 0xff, 0x10, + + /* U+0032 "2" */ + 0x0, 0x18, 0xdf, 0xda, 0x20, 0x0, 0x3, 0xef, + 0xff, 0xff, 0xf5, 0x0, 0xe, 0xfd, 0x52, 0x5e, + 0xfe, 0x10, 0x3, 0xb0, 0x0, 0x3, 0xff, 0x60, + 0x0, 0x0, 0x0, 0x0, 0xef, 0x80, 0x0, 0x0, + 0x0, 0x0, 0xdf, 0x80, 0x0, 0x0, 0x0, 0x1, + 0xff, 0x50, 0x0, 0x0, 0x0, 0x6, 0xff, 0x20, + 0x0, 0x0, 0x0, 0xe, 0xfa, 0x0, 0x0, 0x0, + 0x0, 0x8f, 0xf2, 0x0, 0x0, 0x0, 0x4, 0xff, + 0x80, 0x0, 0x0, 0x0, 0x2f, 0xfb, 0x0, 0x0, + 0x0, 0x1, 0xef, 0xd1, 0x0, 0x0, 0x0, 0x2e, + 0xfe, 0x20, 0x0, 0x0, 0x2, 0xef, 0xf4, 0x23, + 0x33, 0x31, 0xe, 0xff, 0xff, 0xff, 0xff, 0xf6, + 0xf, 0xff, 0xff, 0xff, 0xff, 0xf6, + + /* U+0033 "3" */ + 0x0, 0x7, 0xdf, 0xec, 0x50, 0x0, 0x3, 0xdf, + 0xff, 0xff, 0xfb, 0x0, 0x7, 0xfd, 0x63, 0x4c, + 0xff, 0x60, 0x0, 0x50, 0x0, 0x0, 0xff, 0xa0, + 0x0, 0x0, 0x0, 0x0, 0xdf, 0xb0, 0x0, 0x0, + 0x0, 0x2, 0xff, 0x70, 0x0, 0x0, 0x2, 0x6e, + 0xfd, 0x0, 0x0, 0x0, 0xff, 0xff, 0x91, 0x0, + 0x0, 0x0, 0xff, 0xff, 0xd5, 0x0, 0x0, 0x0, + 0x1, 0x4b, 0xff, 0x50, 0x0, 0x0, 0x0, 0x0, + 0xbf, 0xe0, 0x0, 0x0, 0x0, 0x0, 0x5f, 0xf3, + 0x0, 0x0, 0x0, 0x0, 0x5f, 0xf3, 0x8, 0x80, + 0x0, 0x0, 0xbf, 0xf0, 0x2f, 0xfc, 0x53, 0x4b, + 0xff, 0xa0, 0x8, 0xff, 0xff, 0xff, 0xfc, 0x0, + 0x0, 0x29, 0xdf, 0xec, 0x60, 0x0, + + /* U+0034 "4" */ + 0x0, 0x0, 0x0, 0x6f, 0xfd, 0x0, 0x0, 0x0, + 0x1, 0xff, 0xfd, 0x0, 0x0, 0x0, 0xa, 0xfe, + 0xfd, 0x0, 0x0, 0x0, 0x4f, 0xe8, 0xfd, 0x0, + 0x0, 0x0, 0xef, 0x78, 0xfd, 0x0, 0x0, 0x9, + 0xfd, 0x8, 0xfd, 0x0, 0x0, 0x3f, 0xf4, 0x8, + 0xfd, 0x0, 0x0, 0xcf, 0x90, 0x8, 0xfd, 0x0, + 0x7, 0xfe, 0x0, 0x8, 0xfd, 0x0, 0x1f, 0xf4, + 0x0, 0x8, 0xfd, 0x0, 0x8f, 0xff, 0xff, 0xff, + 0xff, 0xfd, 0x8f, 0xff, 0xff, 0xff, 0xff, 0xfd, + 0x0, 0x0, 0x0, 0x9, 0xfd, 0x0, 0x0, 0x0, + 0x0, 0x8, 0xfd, 0x0, 0x0, 0x0, 0x0, 0x8, + 0xfd, 0x0, 0x0, 0x0, 0x0, 0x8, 0xfd, 0x0, + 0x0, 0x0, 0x0, 0x8, 0xfd, 0x0, + + /* U+0035 "5" */ + 0x0, 0xaf, 0xff, 0xff, 0xff, 0x90, 0x0, 0xbf, + 0xff, 0xff, 0xff, 0x90, 0x0, 0xcf, 0xa3, 0x33, + 0x33, 0x20, 0x0, 0xdf, 0x70, 0x0, 0x0, 0x0, + 0x0, 0xef, 0x60, 0x0, 0x0, 0x0, 0x0, 0xff, + 0x40, 0x0, 0x0, 0x0, 0x0, 0xff, 0xad, 0xfd, + 0x81, 0x0, 0x1, 0xff, 0xff, 0xff, 0xfe, 0x10, + 0x0, 0x7a, 0x20, 0x18, 0xff, 0xb0, 0x0, 0x0, + 0x0, 0x0, 0xaf, 0xf1, 0x0, 0x0, 0x0, 0x0, + 0x5f, 0xf3, 0x0, 0x0, 0x0, 0x0, 0x3f, 0xf4, + 0x0, 0x0, 0x0, 0x0, 0x6f, 0xf1, 0x7, 0x60, + 0x0, 0x0, 0xdf, 0xe0, 0x2f, 0xfb, 0x53, 0x5d, + 0xff, 0x50, 0x6, 0xff, 0xff, 0xff, 0xf9, 0x0, + 0x0, 0x29, 0xdf, 0xeb, 0x40, 0x0, + + /* U+0036 "6" */ + 0x0, 0x3, 0xae, 0xfd, 0x70, 0x0, 0x6, 0xff, + 0xff, 0xff, 0xc1, 0x4, 0xff, 0xc5, 0x36, 0xea, + 0x0, 0xdf, 0xc0, 0x0, 0x1, 0x0, 0x3f, 0xf3, + 0x0, 0x0, 0x0, 0x7, 0xfd, 0x0, 0x0, 0x0, + 0x0, 0xaf, 0xa0, 0x8d, 0xda, 0x30, 0xc, 0xfa, + 0xcf, 0xff, 0xff, 0x50, 0xcf, 0xfd, 0x51, 0x3c, + 0xfe, 0xc, 0xfe, 0x10, 0x0, 0x2f, 0xf5, 0xbf, + 0xa0, 0x0, 0x0, 0xdf, 0x79, 0xfc, 0x0, 0x0, + 0xc, 0xf8, 0x5f, 0xf1, 0x0, 0x0, 0xef, 0x60, + 0xff, 0x80, 0x0, 0x3f, 0xf3, 0x8, 0xff, 0x71, + 0x3d, 0xfb, 0x0, 0xb, 0xff, 0xff, 0xfe, 0x20, + 0x0, 0x6, 0xdf, 0xd9, 0x10, 0x0, + + /* U+0037 "7" */ + 0xef, 0xff, 0xff, 0xff, 0xff, 0x7e, 0xff, 0xff, + 0xff, 0xff, 0xf7, 0x33, 0x33, 0x33, 0x3a, 0xfd, + 0x0, 0x0, 0x0, 0x1, 0xff, 0x30, 0x0, 0x0, + 0x0, 0xaf, 0x90, 0x0, 0x0, 0x0, 0x3f, 0xf1, + 0x0, 0x0, 0x0, 0xa, 0xfb, 0x0, 0x0, 0x0, + 0x0, 0xff, 0x40, 0x0, 0x0, 0x0, 0x6f, 0xe0, + 0x0, 0x0, 0x0, 0xb, 0xfb, 0x0, 0x0, 0x0, + 0x0, 0xef, 0x80, 0x0, 0x0, 0x0, 0x1f, 0xf5, + 0x0, 0x0, 0x0, 0x5, 0xff, 0x20, 0x0, 0x0, + 0x0, 0x7f, 0xf1, 0x0, 0x0, 0x0, 0x8, 0xff, + 0x0, 0x0, 0x0, 0x0, 0x9f, 0xf0, 0x0, 0x0, + 0x0, 0xb, 0xfe, 0x0, 0x0, 0x0, + + /* U+0038 "8" */ + 0x0, 0x2a, 0xdf, 0xc8, 0x0, 0x0, 0x3f, 0xff, + 0xff, 0xfd, 0x0, 0xd, 0xfc, 0x10, 0x4e, 0xf8, + 0x1, 0xff, 0x20, 0x0, 0x7f, 0xc0, 0x3f, 0xf0, + 0x0, 0x3, 0xfe, 0x1, 0xff, 0x40, 0x0, 0x6f, + 0xb0, 0x8, 0xfe, 0x20, 0xb, 0xf4, 0x0, 0xa, + 0xff, 0x87, 0xf7, 0x0, 0x0, 0x8f, 0xff, 0xfe, + 0x20, 0x0, 0xbf, 0x91, 0x8f, 0xfe, 0x30, 0x6f, + 0xc0, 0x0, 0x1d, 0xfe, 0xc, 0xf6, 0x0, 0x0, + 0x2f, 0xf5, 0xff, 0x40, 0x0, 0x0, 0xef, 0x7c, + 0xf9, 0x0, 0x0, 0x1f, 0xf5, 0x7f, 0xf7, 0x0, + 0x2c, 0xfe, 0x10, 0xaf, 0xff, 0xff, 0xff, 0x40, + 0x0, 0x4b, 0xef, 0xd9, 0x10, 0x0, + + /* U+0039 "9" */ + 0x0, 0x5, 0xbe, 0xd9, 0x20, 0x0, 0x0, 0x9f, + 0xff, 0xff, 0xe4, 0x0, 0x5, 0xff, 0x82, 0x3b, + 0xff, 0x10, 0xc, 0xfa, 0x0, 0x0, 0xdf, 0x90, + 0xe, 0xf6, 0x0, 0x0, 0x5f, 0xe0, 0xf, 0xf5, + 0x0, 0x0, 0x2f, 0xf2, 0xd, 0xf8, 0x0, 0x0, + 0x3f, 0xf4, 0x9, 0xff, 0x50, 0x16, 0xff, 0xf5, + 0x1, 0xef, 0xff, 0xff, 0x8f, 0xf5, 0x0, 0x19, + 0xdf, 0xc5, 0x1f, 0xf4, 0x0, 0x0, 0x0, 0x0, + 0x3f, 0xf2, 0x0, 0x0, 0x0, 0x0, 0x6f, 0xf0, + 0x0, 0x0, 0x0, 0x0, 0xcf, 0xb0, 0x0, 0x40, + 0x0, 0x6, 0xff, 0x50, 0x4, 0xfc, 0x54, 0x8f, + 0xfc, 0x0, 0x6, 0xff, 0xff, 0xff, 0xd1, 0x0, + 0x0, 0x3a, 0xef, 0xd8, 0x0, 0x0, + + /* U+4ECA "今" */ + 0x0, 0x0, 0x0, 0x0, 0x0, 0x66, 0x0, 0x0, + 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x4, + 0xff, 0x80, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x0, 0x2e, 0xff, 0xe2, 0x0, 0x0, 0x0, + 0x0, 0x0, 0x0, 0x0, 0x3, 0xef, 0xda, 0xfe, + 0x30, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x4f, + 0xfc, 0x10, 0x9f, 0xf6, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x8, 0xff, 0xb0, 0x0, 0x7, 0xff, 0xa1, + 0x0, 0x0, 0x0, 0x3, 0xcf, 0xfb, 0x7, 0x60, + 0x0, 0x6f, 0xfe, 0x60, 0x0, 0x2, 0xaf, 0xff, + 0x70, 0x3f, 0xfa, 0x0, 0x3, 0xef, 0xfd, 0x50, + 0xd, 0xff, 0xb2, 0x0, 0x3, 0xef, 0xd1, 0x0, + 0x1a, 0xff, 0xb0, 0x1, 0xd5, 0x0, 0x0, 0x0, + 0x1d, 0xfd, 0x0, 0x0, 0x3a, 0x0, 0x0, 0x0, + 0x0, 0x0, 0x0, 0x0, 0xb4, 0x0, 0x0, 0x0, + 0x0, 0x0, 0x6, 0xff, 0xff, 0xff, 0xff, 0xff, + 0xff, 0xff, 0x80, 0x0, 0x0, 0x6, 0xff, 0xff, + 0xff, 0xff, 0xff, 0xff, 0xff, 0x70, 0x0, 0x0, + 0x0, 0x22, 0x22, 0x22, 0x22, 0x22, 0x3f, 0xfb, + 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x0, 0xbf, 0xe1, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x0, 0x0, 0x8, 0xff, 0x30, 0x0, 0x0, + 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x5f, 0xf7, + 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x3, 0xff, 0xa0, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x0, 0x0, 0x1e, 0xfc, 0x0, 0x0, 0x0, + 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xbf, 0xe2, + 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x6, 0x40, 0x0, 0x0, 0x0, 0x0, + + /* U+51FB "击" */ + 0x0, 0x0, 0x0, 0x0, 0x2, 0x31, 0x0, 0x0, + 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc, 0xf6, + 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, + 0xc, 0xf6, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x0, 0xc, 0xf6, 0x0, 0x0, 0x0, 0x0, + 0x0, 0xcf, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, + 0xff, 0x60, 0x0, 0xcf, 0xff, 0xff, 0xff, 0xff, + 0xff, 0xff, 0xff, 0x60, 0x0, 0x0, 0x0, 0x0, + 0xc, 0xf6, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x0, 0xc, 0xf6, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x0, 0x0, 0x0, 0xc, 0xf6, 0x0, 0x0, + 0x0, 0x0, 0x5f, 0xff, 0xff, 0xff, 0xff, 0xff, + 0xff, 0xff, 0xff, 0xfd, 0x5f, 0xff, 0xff, 0xff, + 0xff, 0xff, 0xff, 0xff, 0xff, 0xfd, 0x0, 0x0, + 0x0, 0x0, 0xc, 0xf6, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x35, 0x30, 0x0, 0xc, 0xf6, 0x0, 0x0, + 0x55, 0x0, 0x0, 0x9f, 0x90, 0x0, 0xc, 0xf6, + 0x0, 0x1, 0xff, 0x0, 0x0, 0x9f, 0x90, 0x0, + 0xc, 0xf6, 0x0, 0x1, 0xff, 0x0, 0x0, 0x9f, + 0x90, 0x0, 0xc, 0xf6, 0x0, 0x1, 0xff, 0x0, + 0x0, 0x9f, 0x90, 0x0, 0xc, 0xf6, 0x0, 0x1, + 0xff, 0x0, 0x0, 0x9f, 0xa2, 0x22, 0x2c, 0xf7, + 0x22, 0x23, 0xff, 0x0, 0x0, 0x9f, 0xff, 0xff, + 0xff, 0xff, 0xff, 0xff, 0xff, 0x0, 0x0, 0x7d, + 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xff, 0x0, + 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1, + 0xff, 0x0, + + /* U+529F "功" */ + 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x25, 0x30, + 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x7, 0xf9, 0x0, 0x0, 0x0, 0x3, 0x33, 0x33, + 0x33, 0x30, 0x0, 0x7f, 0x90, 0x0, 0x0, 0x0, + 0xff, 0xff, 0xff, 0xff, 0x10, 0x7, 0xf9, 0x0, + 0x0, 0x0, 0xb, 0xbb, 0xff, 0xcb, 0xb1, 0x0, + 0x7f, 0x90, 0x0, 0x0, 0x0, 0x0, 0xe, 0xf1, + 0x0, 0x9d, 0xde, 0xfe, 0xdd, 0xdd, 0xd5, 0x0, + 0x0, 0xef, 0x10, 0xb, 0xff, 0xff, 0xff, 0xff, + 0xff, 0x60, 0x0, 0xe, 0xf1, 0x0, 0x11, 0x1a, + 0xf7, 0x11, 0x1a, 0xf5, 0x0, 0x0, 0xef, 0x10, + 0x0, 0x0, 0xbf, 0x40, 0x0, 0xaf, 0x50, 0x0, + 0xe, 0xf1, 0x0, 0x0, 0xd, 0xf3, 0x0, 0xb, + 0xf4, 0x0, 0x0, 0xef, 0x10, 0x0, 0x0, 0xff, + 0x10, 0x0, 0xcf, 0x30, 0x0, 0xe, 0xf1, 0x0, + 0x0, 0x2f, 0xf0, 0x0, 0xc, 0xf3, 0x0, 0x0, + 0xef, 0x10, 0x11, 0x6, 0xfb, 0x0, 0x0, 0xdf, + 0x20, 0x0, 0xe, 0xf9, 0xcf, 0x60, 0xaf, 0x70, + 0x0, 0xe, 0xf1, 0x3, 0x7b, 0xff, 0xff, 0xf6, + 0xf, 0xf2, 0x0, 0x0, 0xff, 0x2, 0xff, 0xff, + 0xea, 0x50, 0x8, 0xfd, 0x0, 0x0, 0x1f, 0xf0, + 0xe, 0xd8, 0x30, 0x0, 0x2, 0xff, 0x40, 0x0, + 0x3, 0xfd, 0x0, 0x10, 0x0, 0x0, 0x0, 0xcf, + 0xb0, 0x0, 0x0, 0x6f, 0xb0, 0x0, 0x0, 0x0, + 0x1, 0xbf, 0xf2, 0x0, 0x0, 0xb, 0xf8, 0x0, + 0x0, 0x0, 0x1, 0xef, 0xf4, 0x0, 0x8f, 0xff, + 0xff, 0x30, 0x0, 0x0, 0x0, 0x7, 0xe4, 0x0, + 0x2, 0xff, 0xfd, 0x50, 0x0, 0x0, 0x0, 0x0, + 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, + + /* U+5FB7 "å¾·" */ + 0x0, 0x0, 0x3, 0x0, 0x0, 0x0, 0x5, 0x61, + 0x0, 0x0, 0x0, 0x0, 0x0, 0x5f, 0xb0, 0x0, + 0x0, 0xe, 0xf2, 0x0, 0x0, 0x0, 0x0, 0x2, + 0xff, 0x37, 0xbb, 0xbb, 0xbf, 0xfb, 0xbb, 0xbb, + 0xb0, 0x0, 0x1d, 0xf6, 0xa, 0xff, 0xff, 0xff, + 0xff, 0xff, 0xff, 0xf0, 0x1, 0xdf, 0x90, 0x0, + 0x0, 0x0, 0x3f, 0xb0, 0x0, 0x0, 0x0, 0xc, + 0xfa, 0x3, 0x20, 0x78, 0x88, 0xbf, 0xd8, 0x88, + 0x88, 0x20, 0x8, 0xa0, 0x1e, 0xf3, 0xcf, 0xff, + 0xff, 0xff, 0xff, 0xff, 0x30, 0x0, 0x0, 0x9f, + 0xa0, 0xcc, 0x4, 0xf2, 0xe, 0x80, 0x6f, 0x30, + 0x0, 0x3, 0xff, 0x20, 0xcc, 0x4, 0xf2, 0xe, + 0x80, 0x6f, 0x30, 0x0, 0x1d, 0xfd, 0x0, 0xce, + 0x8b, 0xfa, 0x8f, 0xc8, 0xcf, 0x30, 0x0, 0xbf, + 0xfd, 0x0, 0xcf, 0xff, 0xff, 0xff, 0xff, 0xff, + 0x30, 0xb, 0xff, 0xfd, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x0, 0x0, 0x0, 0xd, 0xf4, 0xfd, 0xe, + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf1, 0x3, + 0x51, 0xfd, 0xa, 0xaa, 0xaa, 0xad, 0xba, 0xaa, + 0xaa, 0xa1, 0x0, 0x1, 0xfd, 0x0, 0x0, 0x0, + 0x4f, 0x60, 0x0, 0x0, 0x0, 0x0, 0x1, 0xfd, + 0x0, 0x50, 0x22, 0xe, 0xe0, 0x2, 0x92, 0x0, + 0x0, 0x1, 0xfd, 0x5, 0xf6, 0xcf, 0x7, 0xf5, + 0x3, 0xfb, 0x0, 0x0, 0x1, 0xfd, 0xa, 0xf2, + 0xcf, 0x1, 0x50, 0x41, 0xaf, 0x40, 0x0, 0x1, + 0xfd, 0x2f, 0xc0, 0xcf, 0x0, 0x0, 0xbe, 0x2f, + 0xc0, 0x0, 0x1, 0xfd, 0x8f, 0x40, 0xbf, 0xa9, + 0x9a, 0xfb, 0xb, 0xd1, 0x0, 0x1, 0xfd, 0x4, + 0x0, 0x4d, 0xff, 0xff, 0xd3, 0x1, 0x0, + + /* U+6572 "敲" */ + 0x0, 0x0, 0x15, 0x10, 0x0, 0x0, 0x1, 0x65, + 0x0, 0x0, 0x0, 0x0, 0x9, 0xf8, 0x0, 0x0, + 0x0, 0x2f, 0xd0, 0x0, 0x0, 0x0, 0x0, 0x3f, + 0xe1, 0x0, 0x0, 0x2, 0xfd, 0x0, 0x0, 0xf, + 0xff, 0xff, 0xff, 0xff, 0xff, 0x30, 0x2f, 0xe6, + 0x66, 0x60, 0x99, 0x99, 0x99, 0x99, 0x99, 0x91, + 0x2, 0xff, 0xff, 0xff, 0x10, 0x37, 0x77, 0x77, + 0x77, 0x30, 0x0, 0x2f, 0xe5, 0x55, 0x50, 0x6, + 0xff, 0xff, 0xff, 0xf7, 0x0, 0x2, 0xfd, 0x0, + 0x0, 0x0, 0x6f, 0x50, 0x0, 0x5f, 0x70, 0x0, + 0x2f, 0xd0, 0x0, 0x0, 0x6, 0xf9, 0x55, 0x59, + 0xf7, 0x6f, 0xff, 0xff, 0xff, 0xf9, 0x0, 0x6f, + 0xff, 0xff, 0xff, 0x75, 0xdf, 0xec, 0xcc, 0xef, + 0x70, 0x0, 0x0, 0x0, 0x0, 0x0, 0x2, 0xfb, + 0x0, 0xa, 0xf2, 0x6, 0xff, 0xff, 0xff, 0xff, + 0xf7, 0xc, 0xf1, 0x0, 0xfe, 0x0, 0x6f, 0xa8, + 0x88, 0x88, 0xaf, 0x70, 0x6f, 0x70, 0x5f, 0xa0, + 0x6, 0xf4, 0x22, 0x22, 0x23, 0xf7, 0x1, 0xfe, + 0xd, 0xf3, 0x0, 0x6f, 0x4a, 0xfe, 0xfb, 0x3f, + 0x70, 0x7, 0xfc, 0xfa, 0x0, 0x6, 0xf4, 0xa8, + 0x8, 0xb3, 0xf7, 0x0, 0xe, 0xff, 0x20, 0x0, + 0x6f, 0x4a, 0xa2, 0xab, 0x3f, 0x70, 0x1, 0xdf, + 0xf2, 0x0, 0x6, 0xf4, 0xaf, 0xff, 0xb3, 0xf7, + 0x1, 0xdf, 0xef, 0xe1, 0x0, 0x6f, 0x4a, 0x80, + 0x0, 0x3f, 0x86, 0xef, 0xc1, 0xbf, 0xe4, 0x6, + 0xf4, 0x22, 0x4, 0x8a, 0xfd, 0xff, 0xb0, 0x0, + 0xbf, 0xf4, 0x6f, 0x40, 0x0, 0x3e, 0xeb, 0x2b, + 0x60, 0x0, 0x0, 0x89, 0x0, 0x0, 0x0, 0x0, + 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, + + /* U+65E5 "æ—¥" */ + 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, + 0x2f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf3, + 0x2f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf3, + 0x2f, 0xe0, 0x0, 0x0, 0x0, 0x0, 0xe, 0xf3, + 0x2f, 0xe0, 0x0, 0x0, 0x0, 0x0, 0xe, 0xf3, + 0x2f, 0xe0, 0x0, 0x0, 0x0, 0x0, 0xe, 0xf3, + 0x2f, 0xe0, 0x0, 0x0, 0x0, 0x0, 0xe, 0xf3, + 0x2f, 0xe0, 0x0, 0x0, 0x0, 0x0, 0xe, 0xf3, + 0x2f, 0xfd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdf, 0xf3, + 0x2f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf3, + 0x2f, 0xe2, 0x22, 0x22, 0x22, 0x22, 0x2e, 0xf3, + 0x2f, 0xe0, 0x0, 0x0, 0x0, 0x0, 0xe, 0xf3, + 0x2f, 0xe0, 0x0, 0x0, 0x0, 0x0, 0xe, 0xf3, + 0x2f, 0xe0, 0x0, 0x0, 0x0, 0x0, 0xe, 0xf3, + 0x2f, 0xe0, 0x0, 0x0, 0x0, 0x0, 0xe, 0xf3, + 0x2f, 0xe0, 0x0, 0x0, 0x0, 0x0, 0xe, 0xf3, + 0x2f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf3, + 0x2f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf3, + 0x2f, 0xe0, 0x0, 0x0, 0x0, 0x0, 0xe, 0xf3, + 0x2f, 0xe0, 0x0, 0x0, 0x0, 0x0, 0xd, 0xe3, + + /* U+6B21 "次" */ + 0x0, 0x0, 0x0, 0x0, 0x3, 0x52, 0x0, 0x0, + 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xaf, + 0xa0, 0x0, 0x0, 0x0, 0x0, 0x4, 0xd4, 0x0, + 0x0, 0xf, 0xf6, 0x0, 0x0, 0x0, 0x0, 0x0, + 0xbf, 0xfb, 0x10, 0x3, 0xff, 0x20, 0x0, 0x0, + 0x0, 0x0, 0x0, 0x6f, 0xfe, 0x30, 0x8f, 0xff, + 0xff, 0xff, 0xff, 0xfb, 0x10, 0x0, 0x2c, 0xe2, + 0xd, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf1, 0x0, + 0x0, 0x3, 0x4, 0xff, 0x31, 0x11, 0x11, 0x16, + 0xfc, 0x0, 0x0, 0x0, 0x0, 0xbf, 0xa0, 0xe, + 0xf4, 0x0, 0xaf, 0x70, 0x0, 0x0, 0x0, 0x5f, + 0xf3, 0x0, 0xef, 0x40, 0x1f, 0xf2, 0x0, 0x0, + 0x0, 0xb, 0xfa, 0x0, 0xf, 0xf3, 0x7, 0xfa, + 0x0, 0x0, 0x0, 0x3, 0x5, 0x10, 0x1, 0xff, + 0x70, 0x19, 0x30, 0x0, 0x0, 0x8, 0xf5, 0x0, + 0x0, 0x3f, 0xfb, 0x0, 0x0, 0x0, 0x0, 0x2, + 0xff, 0x50, 0x0, 0x8, 0xff, 0xf1, 0x0, 0x0, + 0x0, 0x0, 0xcf, 0xb0, 0x0, 0x0, 0xef, 0xff, + 0x80, 0x0, 0x0, 0x0, 0x6f, 0xf2, 0x0, 0x0, + 0x7f, 0xf3, 0xff, 0x10, 0x0, 0x0, 0x2f, 0xf8, + 0x0, 0x0, 0x2f, 0xf9, 0xa, 0xfb, 0x0, 0x0, + 0xc, 0xfd, 0x0, 0x0, 0x2e, 0xfd, 0x0, 0x1e, + 0xfa, 0x0, 0x1, 0xbf, 0x40, 0x0, 0x4e, 0xfe, + 0x30, 0x0, 0x5f, 0xfa, 0x20, 0x0, 0x40, 0x1, + 0x9f, 0xfe, 0x20, 0x0, 0x0, 0x6f, 0xff, 0x80, + 0x0, 0x0, 0x6f, 0xfb, 0x10, 0x0, 0x0, 0x0, + 0x4d, 0xf4, 0x0, 0x0, 0x0, 0x75, 0x0, 0x0, + 0x0, 0x0, 0x0, 0x4, 0x0 +}; + + +/*--------------------- + * GLYPH DESCRIPTION + *--------------------*/ + +static const lv_font_fmt_txt_glyph_dsc_t glyph_dsc[] = { + {.bitmap_index = 0, .adv_w = 0, .box_w = 0, .box_h = 0, .ofs_x = 0, .ofs_y = 0} /* id = 0 reserved */, + {.bitmap_index = 0, .adv_w = 79, .box_w = 0, .box_h = 0, .ofs_x = 0, .ofs_y = 0}, + {.bitmap_index = 0, .adv_w = 201, .box_w = 12, .box_h = 12, .ofs_x = 0, .ofs_y = 3}, + {.bitmap_index = 72, .adv_w = 201, .box_w = 11, .box_h = 17, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 166, .adv_w = 201, .box_w = 11, .box_h = 17, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 260, .adv_w = 201, .box_w = 12, .box_h = 17, .ofs_x = 0, .ofs_y = 0}, + {.bitmap_index = 362, .adv_w = 201, .box_w = 12, .box_h = 17, .ofs_x = 0, .ofs_y = 0}, + {.bitmap_index = 464, .adv_w = 201, .box_w = 12, .box_h = 17, .ofs_x = 0, .ofs_y = 0}, + {.bitmap_index = 566, .adv_w = 201, .box_w = 12, .box_h = 17, .ofs_x = 0, .ofs_y = 0}, + {.bitmap_index = 668, .adv_w = 201, .box_w = 11, .box_h = 17, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 762, .adv_w = 201, .box_w = 11, .box_h = 17, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 856, .adv_w = 201, .box_w = 11, .box_h = 17, .ofs_x = 1, .ofs_y = 0}, + {.bitmap_index = 950, .adv_w = 201, .box_w = 12, .box_h = 17, .ofs_x = 0, .ofs_y = 0}, + {.bitmap_index = 1052, .adv_w = 352, .box_w = 22, .box_h = 21, .ofs_x = 0, .ofs_y = -2}, + {.bitmap_index = 1283, .adv_w = 352, .box_w = 20, .box_h = 21, .ofs_x = 1, .ofs_y = -2}, + {.bitmap_index = 1493, .adv_w = 352, .box_w = 21, .box_h = 22, .ofs_x = 0, .ofs_y = -3}, + {.bitmap_index = 1724, .adv_w = 352, .box_w = 22, .box_h = 21, .ofs_x = 0, .ofs_y = -2}, + {.bitmap_index = 1955, .adv_w = 352, .box_w = 21, .box_h = 22, .ofs_x = 1, .ofs_y = -3}, + {.bitmap_index = 2186, .adv_w = 352, .box_w = 16, .box_h = 20, .ofs_x = 3, .ofs_y = -2}, + {.bitmap_index = 2346, .adv_w = 352, .box_w = 21, .box_h = 21, .ofs_x = 0, .ofs_y = -2} +}; + +/*--------------------- + * CHARACTER MAPPING + *--------------------*/ + +static const uint16_t unicode_list_0[] = { + 0x0, 0xb, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, + 0x16, 0x17, 0x18, 0x19, 0x4eaa, 0x51db, 0x527f, 0x5f97, + 0x6552, 0x65c5, 0x6b01 +}; + +/*Collect the unicode lists and glyph_id offsets*/ +static const lv_font_fmt_txt_cmap_t cmaps[] = +{ + { + .range_start = 32, .range_length = 27394, .glyph_id_start = 1, + .unicode_list = unicode_list_0, .glyph_id_ofs_list = NULL, .list_length = 19, .type = LV_FONT_FMT_TXT_CMAP_SPARSE_TINY + } +}; + + + +/*-------------------- + * ALL CUSTOM DATA + *--------------------*/ + +#if LVGL_VERSION_MAJOR == 8 +/*Store all the custom data of the font*/ +static lv_font_fmt_txt_glyph_cache_t cache; +#endif + +#if LVGL_VERSION_MAJOR >= 8 +static const lv_font_fmt_txt_dsc_t font_dsc = { +#else +static lv_font_fmt_txt_dsc_t font_dsc = { +#endif + .glyph_bitmap = glyph_bitmap, + .glyph_dsc = glyph_dsc, + .cmaps = cmaps, + .kern_dsc = NULL, + .kern_scale = 0, + .cmap_num = 1, + .bpp = 4, + .kern_classes = 0, + .bitmap_format = 0, +#if LVGL_VERSION_MAJOR == 8 + .cache = &cache +#endif +}; + + + +/*----------------- + * PUBLIC FONT + *----------------*/ + +/*Initialize a public general font descriptor*/ +#if LVGL_VERSION_MAJOR >= 8 +const lv_font_t font_muyu_22 = { +#else +lv_font_t font_muyu_22 = { +#endif + .get_glyph_dsc = lv_font_get_glyph_dsc_fmt_txt, /*Function pointer to get glyph's data*/ + .get_glyph_bitmap = lv_font_get_bitmap_fmt_txt, /*Function pointer to get glyph's bitmap*/ + .line_height = 22, /*The maximum line height required by the font*/ + .base_line = 3, /*Baseline measured from the bottom of the line*/ +#if !(LVGL_VERSION_MAJOR == 6 && LVGL_VERSION_MINOR == 0) + .subpx = LV_FONT_SUBPX_NONE, +#endif +#if LV_VERSION_CHECK(7, 4, 0) || LVGL_VERSION_MAJOR >= 8 + .underline_position = -3, + .underline_thickness = 1, +#endif + .dsc = &font_dsc, /*The custom font data. Will be accessed by `get_glyph_bitmap/dsc` */ +#if LV_VERSION_CHECK(8, 2, 0) || LVGL_VERSION_MAJOR >= 9 + .fallback = NULL, +#endif + .user_data = NULL, +}; + + + +#endif /*#if FONT_MUYU_22*/ diff --git a/main/font_radio_14.c b/main/font_radio_14.c new file mode 100644 index 0000000..9e8ac90 --- /dev/null +++ b/main/font_radio_14.c @@ -0,0 +1,4 @@ +/* Shared Noto Sans SC 14px glyphs; see assets/fonts/OFL.txt. */ +#include "lvgl.h" +extern const lv_font_fmt_txt_dsc_t font_ui_14_descriptor; +const lv_font_t font_radio_14={.get_glyph_dsc=lv_font_get_glyph_dsc_fmt_txt,.get_glyph_bitmap=lv_font_get_bitmap_fmt_txt,.line_height=18,.base_line=4,.dsc=&font_ui_14_descriptor}; diff --git a/main/font_ui_14.c b/main/font_ui_14.c new file mode 100644 index 0000000..faa7f01 --- /dev/null +++ b/main/font_ui_14.c @@ -0,0 +1,5373 @@ +/* Noto Sans SC, SIL OFL 1.1; see assets/fonts/OFL.txt. Generated shared UI font. */ +#include "lvgl.h" +static const uint8_t bitmap[]={ +10,240,10,240,10,240,10,240,10,240,10,240,10,240,1,16,13,208,11,176,15,160,250,0,250,15,160,14,144,233,0,199, +12,112,11,96,182,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,46,0,212,0, +5,192,31,16,15,255,255,255,0,91,165,157,80,0,166,7,160,0,28,81,153,16,15,255,255,255,0,95,84,215,64,3, +224,14,48,0,92,1,241,0,0,15,160,0,0,15,160,0,1,175,250,16,11,247,108,112,14,176,0,0,12,227,0,0, +2,207,162,0,0,6,223,64,0,0,30,208,1,0,11,224,47,150,143,160,5,207,249,16,0,15,160,0,0,8,80,0, +2,191,178,0,92,0,0,10,182,186,0,213,0,0,14,32,46,5,192,0,0,15,16,31,13,107,235,16,12,130,140,92, +152,24,144,4,239,228,213,225,1,224,0,19,21,192,240,0,240,0,0,13,80,227,3,224,0,0,93,0,156,108,144,0, +0,213,0,27,235,16,0,9,237,80,0,0,7,248,222,0,0,0,159,27,208,0,0,6,249,244,0,0,0,63,243,0, +53,0,62,255,96,13,160,12,192,127,102,243,0,252,0,143,248,0,10,249,105,255,214,0,25,239,198,24,192,15,160,15, +160,14,144,12,112,11,96,0,0,0,0,0,0,0,0,0,0,0,0,0,7,32,5,225,0,217,0,79,64,9,240,0, +204,0,14,176,0,250,0,14,176,0,220,0,10,224,0,95,48,0,232,0,7,225,0,10,32,85,0,6,225,0,14,112, +0,158,0,5,243,0,47,112,1,249,0,15,160,1,249,0,47,112,5,244,0,158,16,13,144,5,242,0,103,0,0,0, +45,0,0,135,229,96,24,239,214,0,29,219,0,4,161,177,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,10,240,0,0,0,175,0,0,1,26,241,17,0,255,255,255,240,4,75,244,68,0,0,175,0, +0,0,10,240,0,0,0,0,0,0,0,0,0,0,0,1,0,47,176,30,240,2,208,43,112,71,0,1,17,16,15,255, +240,4,68,64,0,0,0,0,0,0,0,0,0,1,0,13,128,12,96,0,1,241,0,5,176,0,10,112,0,14,48,0, +62,0,0,122,0,0,182,0,1,241,0,5,192,0,9,128,0,13,64,0,46,0,0,107,0,0,167,0,0,0,93,235, +32,3,251,110,208,10,225,5,245,13,176,2,248,15,160,0,249,15,160,0,249,13,176,2,248,10,225,5,244,3,251,110, +192,0,93,235,32,2,125,240,0,6,206,240,0,0,10,240,0,0,10,240,0,0,10,240,0,0,10,240,0,0,10,240, +0,0,10,240,0,5,92,245,80,15,255,255,240,2,174,233,16,12,198,159,144,2,0,12,224,0,0,11,224,0,0,30, +160,0,0,159,32,0,5,246,0,0,95,128,0,5,251,85,85,15,255,255,255,4,207,216,0,29,150,175,112,0,0,31, +144,0,18,159,64,0,143,245,0,0,37,175,80,0,0,12,224,2,0,12,224,111,134,175,144,7,223,216,0,0,0,191, +160,0,6,239,160,0,46,111,160,0,188,15,160,6,242,15,160,46,113,31,177,127,255,255,254,36,68,79,211,0,0,15, +160,0,0,15,160,15,255,255,0,15,181,85,0,15,113,0,0,15,223,249,16,10,117,175,144,0,0,13,224,0,0,10, +240,33,0,29,192,189,118,207,80,25,223,197,0,0,42,238,128,1,237,118,162,8,243,0,0,12,200,254,128,14,250,91, +244,15,192,2,249,13,192,1,249,10,241,3,247,3,252,108,226,0,76,252,48,15,255,255,255,5,85,88,248,0,0,13, +176,0,0,127,32,0,0,217,0,0,5,244,0,0,9,240,0,0,12,192,0,0,13,176,0,0,14,160,0,0,125,253, +112,6,251,108,246,9,241,2,249,5,242,2,245,0,109,88,112,2,216,159,176,12,192,4,246,15,192,1,249,10,249,107, +245,1,158,253,96,0,142,234,32,8,249,110,192,14,192,5,245,15,176,2,248,12,229,42,250,3,239,247,249,0,19,35, +247,0,0,8,243,6,198,159,160,2,190,232,0,12,96,13,128,1,0,0,0,0,0,1,0,13,128,12,96,11,176,13, +208,1,16,0,0,0,0,0,0,13,176,12,240,2,208,26,112,24,0,0,0,0,23,0,0,4,175,224,2,141,233,64, +0,254,97,0,0,8,222,147,0,0,0,74,253,128,0,0,1,125,0,0,0,0,0,0,0,0,0,0,15,255,255,255, +0,85,85,85,80,0,0,0,0,0,17,17,17,16,15,255,255,255,0,68,68,68,64,0,0,0,0,0,0,0,0,0, +7,16,0,0,0,239,164,0,0,0,73,237,130,0,0,1,110,240,0,3,158,216,0,141,250,64,0,13,113,0,0,0, +0,0,0,0,0,0,0,0,0,7,223,179,3,215,127,192,0,0,190,0,0,46,128,0,29,144,0,8,176,0,0,148, +0,0,1,0,0,0,216,0,0,12,96,0,0,0,41,223,234,64,0,0,6,252,118,123,246,0,0,110,80,0,0,94, +48,1,228,0,0,1,8,144,8,160,5,239,155,3,208,12,64,79,181,216,0,240,14,16,190,16,181,1,224,15,0,235, +0,227,5,176,13,32,220,6,244,45,64,10,112,94,248,127,230,0,3,228,0,16,1,0,0,0,143,148,34,85,0,0, +0,5,223,255,230,0,0,0,0,2,66,0,0,0,0,9,250,0,0,0,236,225,0,0,95,63,80,0,10,192,218,0, +1,247,8,241,0,111,49,79,96,11,255,255,251,1,251,68,76,241,111,48,0,79,107,208,0,0,236,15,255,253,162,0, +252,86,159,192,15,160,0,190,0,250,18,94,144,15,255,255,210,0,251,68,108,227,15,160,0,31,144,250,0,3,249,15, +197,87,223,48,255,255,235,48,0,7,223,215,0,11,249,104,228,7,246,0,1,0,205,0,0,0,14,160,0,0,0,234, +0,0,0,12,208,0,0,0,127,96,0,32,0,207,150,142,128,1,141,253,129,15,255,235,80,0,252,87,207,128,15,160, +0,175,32,250,0,3,247,15,160,0,31,144,250,0,1,249,15,160,0,63,112,250,0,11,242,15,197,124,247,0,255,254, +181,0,15,255,255,242,15,197,85,81,15,160,0,0,15,161,17,0,15,255,255,112,15,180,68,32,15,160,0,0,15,160, +0,0,15,197,85,81,15,255,255,244,15,255,255,242,15,197,85,81,15,160,0,0,15,161,17,16,15,255,255,112,15,180, +68,32,15,160,0,0,15,160,0,0,15,160,0,0,15,160,0,0,0,7,207,233,32,0,191,166,124,96,6,246,0,0, +0,12,208,1,17,16,14,176,9,255,240,14,160,2,75,240,12,208,0,10,240,7,246,0,10,240,0,191,150,126,240,0, +7,206,235,48,15,160,0,15,160,15,160,0,15,160,15,160,0,15,160,15,161,17,31,160,15,255,255,255,160,15,180,68, +79,160,15,160,0,15,160,15,160,0,15,160,15,160,0,15,160,15,160,0,15,160,15,160,15,160,15,160,15,160,15,160, +15,160,15,160,15,160,15,160,15,160,0,0,15,160,0,0,15,160,0,0,15,160,0,0,15,160,0,0,15,160,0,0, +15,160,0,0,15,160,3,0,47,144,47,166,191,64,5,207,215,0,15,160,0,206,32,250,0,159,48,15,160,127,80,0, +250,79,128,0,15,206,249,0,0,255,217,243,0,15,226,29,192,0,250,0,95,112,15,160,0,190,16,250,0,3,250,15, +160,0,0,15,160,0,0,15,160,0,0,15,160,0,0,15,160,0,0,15,160,0,0,15,160,0,0,15,160,0,0,15, +198,102,96,15,255,255,240,15,244,0,3,255,0,255,144,0,159,240,15,206,0,14,207,0,250,228,4,234,240,15,169,160, +153,175,0,250,78,30,74,240,15,160,217,208,175,0,250,8,248,10,240,15,160,63,48,175,0,250,0,16,10,240,15,243, +0,15,160,15,251,0,15,160,15,207,64,15,160,15,170,176,15,160,15,162,244,15,160,15,160,156,15,160,15,160,47,95, +160,15,160,9,207,160,15,160,1,239,160,15,160,0,143,160,0,24,223,216,16,0,12,248,105,252,0,7,245,0,5,247, +0,205,0,0,13,192,14,160,0,0,174,0,234,0,0,11,224,12,208,0,0,220,0,127,80,0,111,112,0,207,134,159, +192,0,1,141,253,129,0,15,255,253,128,0,252,86,175,144,15,160,0,206,0,250,0,11,224,15,161,38,250,0,255,255, +251,16,15,180,66,0,0,250,0,0,0,15,160,0,0,0,250,0,0,0,0,24,223,216,16,0,12,248,105,252,0,7, +245,0,5,247,0,205,0,0,13,192,14,160,0,0,174,0,235,0,0,11,224,12,208,0,0,220,0,127,80,0,95,112, +0,207,134,143,192,0,1,142,255,129,0,0,0,12,229,34,0,0,0,26,255,243,0,0,0,2,67,0,15,255,253,128, +0,252,86,175,144,15,160,0,206,0,250,0,11,224,15,161,39,250,0,255,255,251,16,15,180,207,48,0,250,1,236,0, +15,160,6,247,0,250,0,12,226,1,141,253,112,0,175,134,142,96,14,176,0,16,0,206,80,0,0,2,207,216,16,0, +0,90,254,64,0,0,3,237,0,64,0,11,224,63,215,105,249,0,74,239,215,0,15,255,255,255,240,5,85,252,85,80, +0,0,250,0,0,0,0,250,0,0,0,0,250,0,0,0,0,250,0,0,0,0,250,0,0,0,0,250,0,0,0,0, +250,0,0,0,0,250,0,0,15,160,0,15,160,15,160,0,15,160,15,160,0,15,160,15,160,0,15,160,15,160,0,15, +160,15,160,0,15,160,14,176,0,31,144,11,225,0,95,96,4,252,103,237,16,0,92,238,162,0,13,208,0,7,243,8, +242,0,11,208,3,246,0,31,128,0,219,0,95,48,0,159,16,157,0,0,79,80,217,0,0,14,147,244,0,0,9,215, +224,0,0,4,254,144,0,0,0,239,64,0,159,16,8,242,0,127,21,244,0,207,96,10,208,47,112,31,202,0,218,0, +234,5,231,224,31,112,11,192,139,63,51,244,0,143,12,112,230,111,16,5,243,243,11,168,208,0,47,158,0,125,186,0, +0,238,176,3,254,112,0,11,247,0,14,244,0,95,112,1,234,0,190,16,143,32,3,248,30,128,0,9,233,225,0,0, +30,246,0,0,3,255,128,0,0,203,143,32,0,95,65,234,0,29,176,7,244,7,243,0,30,208,13,208,0,47,128,95, +80,9,225,0,220,1,248,0,5,243,142,16,0,13,174,128,0,0,95,225,0,0,0,250,0,0,0,15,160,0,0,0, +250,0,0,0,15,160,0,15,255,255,255,0,85,85,143,144,0,0,12,209,0,0,7,243,0,0,2,248,0,0,0,188, +0,0,0,110,32,0,0,30,96,0,0,10,213,85,85,0,255,255,255,240,15,255,96,252,82,15,160,0,250,0,15,160, +0,250,0,15,160,0,250,0,15,160,0,250,0,15,160,0,250,0,15,161,0,255,246,4,68,32,152,0,0,76,0,0, +31,16,0,11,96,0,7,160,0,3,224,0,0,227,0,0,151,0,0,91,0,0,31,16,0,12,80,0,8,144,0,4, +208,0,0,226,191,250,4,95,160,0,250,0,15,160,0,250,0,15,160,0,250,0,15,160,0,250,0,15,160,0,250,0, +15,160,17,250,11,255,160,52,67,0,0,13,208,0,0,94,228,0,0,185,154,0,2,243,63,16,8,208,13,112,13,112, +7,208,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,17,17,17,0,255,255,255,240,4,68,68,68,0, +0,66,0,0,0,13,209,0,0,0,45,176,0,0,0,41,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,157,235,32,6, +199,143,160,0,0,11,224,0,90,239,240,8,247,42,240,14,176,10,240,13,231,159,240,3,222,135,240,15,160,0,0,0, +250,0,0,0,15,160,0,0,0,250,142,232,0,15,250,106,247,0,251,0,13,192,15,160,0,191,0,250,0,11,224,15, +160,1,235,0,255,134,207,64,15,122,237,80,0,0,75,237,112,3,252,104,128,11,225,0,0,14,176,0,0,14,176,0, +0,11,226,0,0,4,252,104,176,0,76,237,112,0,0,0,175,0,0,0,10,240,0,0,0,175,0,5,222,171,240,4, +252,105,255,0,190,16,10,240,14,176,0,175,0,235,0,10,240,12,224,0,175,0,111,182,159,240,0,126,233,143,0,0, +125,252,64,9,232,108,242,63,97,19,248,127,255,255,250,127,116,68,66,63,144,0,0,10,250,103,177,0,125,253,129,0, +61,250,0,206,100,0,250,0,30,255,243,5,255,81,0,250,0,0,250,0,0,250,0,0,250,0,0,250,0,0,250,0, +0,142,255,255,0,111,167,251,80,9,241,11,224,0,111,99,237,0,0,191,254,64,0,127,51,16,0,8,248,85,48,0, +30,239,255,160,12,192,1,206,0,238,118,143,160,4,190,253,112,0,15,160,0,0,0,250,0,0,0,15,160,0,0,0, +250,109,233,0,15,251,106,246,0,251,0,31,144,15,160,0,250,0,250,0,15,160,15,160,0,250,0,250,0,15,160,15, +160,0,250,0,12,112,12,112,0,0,15,160,15,160,15,160,15,160,15,160,15,160,15,160,15,160,0,199,0,11,112,0, +0,0,15,160,0,250,0,15,160,0,250,0,15,160,0,250,0,15,160,0,250,0,15,144,55,247,11,251,16,15,160,0, +0,15,160,0,0,15,160,0,0,15,160,10,226,15,160,127,64,15,164,247,0,15,190,241,0,15,252,234,0,15,226,111, +64,15,160,12,208,15,160,4,247,15,160,15,160,15,160,15,160,15,160,15,160,15,160,15,160,15,160,14,210,7,230,15, +120,237,53,222,112,15,249,127,236,108,241,15,176,11,241,6,244,15,160,10,240,5,245,15,160,10,240,5,245,15,160,10, +240,5,245,15,160,10,240,5,245,15,160,10,240,5,245,15,103,222,144,0,255,182,175,96,15,176,1,249,0,250,0,15, +160,15,160,0,250,0,250,0,15,160,15,160,0,250,0,250,0,15,160,0,92,252,64,0,79,182,191,48,11,224,0,235, +0,235,0,11,224,14,176,0,190,0,190,16,30,176,4,251,107,244,0,5,207,196,0,15,137,238,128,0,255,166,175,112, +15,176,0,220,0,250,0,11,240,15,160,0,190,0,250,0,30,176,15,248,108,244,0,251,174,213,0,15,160,0,0,0, +250,0,0,0,15,160,0,0,0,0,93,234,143,0,79,198,159,240,11,225,0,175,0,235,0,10,240,14,176,0,175,0, +206,0,10,240,6,251,105,255,0,7,238,154,240,0,0,0,175,0,0,0,10,240,0,0,0,175,0,0,0,0,15,104, +231,15,220,98,15,225,0,15,160,0,15,160,0,15,160,0,15,160,0,15,160,0,3,191,233,16,222,103,194,14,192,0, +0,94,215,16,0,23,222,48,16,2,249,62,150,159,112,109,254,128,0,202,0,0,13,160,0,14,255,255,0,95,197,80, +0,250,0,0,15,160,0,0,250,0,0,14,160,0,0,190,118,0,3,207,210,15,160,0,250,0,250,0,15,160,15,160, +0,250,0,250,0,15,160,15,160,0,250,0,235,0,47,160,11,248,141,234,0,44,236,59,160,174,0,4,244,79,64,9, +224,14,144,13,144,9,224,63,64,4,243,142,0,0,231,201,0,0,157,244,0,0,79,224,0,127,32,31,176,6,242,79, +80,79,224,10,208,14,144,138,243,13,144,11,192,198,199,47,80,7,242,243,155,95,16,3,248,224,94,141,0,0,237,160, +31,217,0,0,175,112,12,245,0,95,96,30,160,11,225,127,32,2,248,232,0,0,143,209,0,0,191,225,0,4,245,233, +0,13,160,143,48,127,48,29,192,158,16,4,244,63,80,9,224,12,176,13,144,6,241,63,64,1,230,141,0,0,155,200, +0,0,63,243,0,0,13,208,0,0,47,112,0,21,206,16,0,79,195,0,0,0,255,255,240,0,85,111,144,0,0,190, +16,0,6,246,0,0,63,192,0,0,207,48,0,9,252,85,80,15,255,255,240,0,110,240,0,222,96,0,250,0,0,250, +0,0,250,0,0,250,0,5,248,0,15,209,0,8,248,0,0,250,0,0,250,0,0,250,0,0,252,32,0,175,240,0, +3,64,15,160,15,160,15,160,15,160,15,160,15,160,15,160,15,160,15,160,15,160,15,160,15,160,15,160,15,160,15,160, +15,160,95,194,2,143,128,0,250,0,15,160,0,250,0,15,160,0,221,16,5,248,0,222,48,15,160,0,250,0,15,160, +4,249,5,255,80,20,32,0,0,16,0,0,27,253,98,130,41,5,239,193,0,0,19,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,8,231,0,0,0,0,0,239,224,0,0,0,0,8,231,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,231,0,0,0,0,0,239,224,0,0,0, +0,8,231,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +1,0,0,0,0,0,0,45,144,0,0,0,0,0,8,250,0,0,0,0,0,0,143,144,0,0,0,0,0,8,48,0, +0,0,0,8,200,0,0,0,0,0,136,24,128,0,0,0,0,193,1,192,0,0,0,0,165,5,144,0,0,0,0,27, +219,16,0,0,0,0,0,0,0,0,0,161,132,0,0,0,0,5,177,225,0,0,0,0,12,71,144,0,0,0,0,61, +13,32,0,0,0,0,166,106,0,0,0,0,2,208,195,0,0,0,0,8,131,192,0,0,0,0,4,177,225,0,0,0, +0,0,211,136,0,0,0,0,0,106,46,16,0,0,0,0,13,42,96,0,0,0,0,7,147,208,0,0,0,0,1,225, +181,0,0,0,0,0,16,16,71,26,0,0,0,0,0,30,27,80,0,0,0,0,9,117,176,0,0,0,0,2,208,211, +0,0,0,0,0,182,106,0,0,0,0,0,76,30,32,0,0,0,0,13,56,128,0,0,0,0,30,28,64,0,0,0, +0,136,60,0,0,0,0,1,226,166,0,0,0,0,7,146,208,0,0,0,0,13,57,112,0,0,0,0,91,30,16,0, +0,0,0,1,1,0,0,0,0,0,3,51,51,51,51,51,50,15,255,255,255,255,255,253,4,68,68,68,68,68,67,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,95,16,0, +0,0,0,0,95,16,0,0,0,0,0,95,16,0,0,0,0,0,95,16,0,19,98,0,0,111,120,173,255,246,40,173, +255,254,201,116,32,62,202,207,48,0,0,0,0,0,95,16,0,0,0,0,0,95,16,0,0,0,0,0,95,16,0,5, +160,0,0,95,16,0,7,224,0,0,79,98,34,60,176,0,0,10,239,255,253,48,1,17,17,17,17,17,16,95,255,255, +255,255,255,245,76,204,255,204,204,204,196,0,0,205,0,0,0,0,0,0,220,0,0,0,0,0,0,255,255,255,253,0, +0,2,250,34,34,237,0,0,6,245,0,0,204,0,0,10,241,0,0,219,0,0,47,144,0,0,249,0,1,206,32,0, +2,247,0,43,244,0,19,39,244,0,109,64,0,14,255,160,0,0,0,0,0,0,0,0,0,0,0,3,243,0,0,0, +0,0,3,243,0,0,2,34,34,37,245,34,32,47,255,255,255,255,255,243,1,21,17,22,242,17,16,0,47,48,7,240, +0,0,0,12,144,10,208,0,0,0,5,243,14,144,0,0,0,0,204,127,48,0,0,0,0,47,251,0,0,0,0,1, +127,255,113,0,0,5,174,232,25,255,183,81,9,183,16,0,22,173,209,0,0,0,0,0,0,0,2,85,85,85,85,85, +32,5,255,255,255,255,255,80,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,111,255, +255,255,243,0,0,37,85,85,85,81,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,34,34,34,34,34,32, +47,255,255,255,255,255,241,4,68,68,68,68,68,64,0,0,8,240,0,0,0,0,0,8,240,0,0,0,0,0,8,240, +0,0,0,0,0,8,240,0,0,0,0,0,8,242,34,34,0,0,0,8,255,255,255,32,0,0,8,240,0,0,0,0, +0,8,240,0,0,0,0,0,8,240,0,0,0,0,0,8,240,0,0,0,0,0,8,240,0,0,0,157,221,223,253,221, +221,209,88,136,136,136,136,136,129,1,17,17,17,17,17,16,79,255,255,255,255,255,244,60,204,204,255,204,204,195,0,0, +0,246,0,0,0,0,0,0,247,0,0,0,0,0,0,255,179,0,0,0,0,0,250,207,162,0,0,0,0,246,6,238, +64,0,0,0,246,0,25,16,0,0,0,246,0,0,0,0,0,0,246,0,0,0,0,0,0,246,0,0,0,0,0,0, +246,0,0,0,31,255,255,255,255,255,241,5,85,85,159,213,85,80,0,0,1,223,16,0,0,0,0,11,254,65,0,0, +0,0,175,252,222,64,0,0,27,246,187,26,248,0,5,238,80,187,0,127,160,63,194,0,187,0,6,227,3,0,0,187, +0,0,16,0,0,0,187,0,0,0,0,0,0,187,0,0,0,0,0,0,187,0,0,0,0,3,112,0,0,0,0,0, +8,192,0,0,0,0,0,10,255,255,255,255,176,0,13,146,34,34,34,32,0,31,48,0,0,0,0,0,79,50,34,34, +36,32,0,143,255,255,255,255,240,0,0,0,0,0,13,208,2,34,34,34,34,15,176,15,255,255,255,251,47,144,0,0, +0,0,0,111,96,0,0,0,19,35,207,16,0,0,0,13,255,230,0,0,0,0,0,0,0,0,5,255,255,255,255,249, +0,4,187,223,251,187,248,0,0,0,63,48,0,216,0,0,0,79,32,0,231,0,0,0,95,0,0,246,0,2,255,255, +255,255,245,0,0,34,175,34,35,245,0,0,0,171,0,2,244,0,0,0,186,0,3,243,0,0,0,216,0,4,242,0, +11,187,255,187,191,252,185,11,187,187,187,187,187,185,0,0,3,129,0,0,0,0,34,42,242,34,34,0,2,255,255,255, +255,255,16,0,0,47,64,0,0,0,79,255,255,255,255,255,241,18,34,236,34,34,34,32,0,1,244,0,0,0,0,0, +7,255,255,255,255,16,0,2,50,34,43,245,0,0,0,81,0,158,64,0,0,3,223,207,244,0,0,0,0,3,159,250, +48,0,0,0,0,0,109,112,0,0,0,0,0,0,0,0,0,143,255,255,255,224,0,0,143,34,34,44,224,0,0,143, +0,0,11,224,0,0,143,34,34,46,224,0,0,143,255,255,255,224,0,0,143,0,0,11,224,0,0,143,34,34,45,224, +0,0,143,255,255,255,224,0,0,143,0,0,12,224,0,0,143,0,0,11,224,0,140,255,204,204,207,252,176,105,153,153, +153,153,153,144,0,0,0,242,0,245,0,0,95,0,242,0,245,0,0,95,0,242,0,245,0,18,143,50,245,35,248,33, +95,255,255,255,255,255,245,0,95,0,242,0,245,0,0,95,0,242,0,245,0,0,95,0,242,0,245,0,0,95,0,255, +255,245,0,0,95,0,34,34,33,0,0,95,0,0,0,0,0,0,95,255,255,255,255,240,0,18,34,34,34,34,32,0, +0,0,0,1,48,0,0,19,69,121,207,242,0,0,159,237,186,117,16,0,0,111,0,0,0,0,0,0,111,0,0,0, +0,0,0,111,170,170,170,170,64,0,111,187,187,223,235,80,0,111,0,0,47,48,0,0,111,0,0,47,48,0,0,111, +0,0,47,48,0,0,111,0,0,47,48,0,141,255,221,221,255,253,210,71,137,119,119,119,119,113,0,0,95,0,245,0, +0,0,0,95,0,245,0,0,0,0,95,0,245,0,0,9,128,95,0,245,6,128,7,224,95,0,245,12,144,1,245,95, +0,245,63,48,0,186,95,0,245,171,0,0,111,111,0,248,244,0,0,22,111,0,247,112,0,0,0,95,0,245,0,0, +0,0,95,0,245,0,0,46,238,255,238,255,238,226,25,153,153,153,153,153,146,0,0,5,161,0,0,0,0,0,13,192, +0,0,0,15,255,255,255,255,255,208,2,35,253,34,34,34,32,0,8,226,14,80,0,0,0,79,96,15,80,0,0,0, +255,255,255,255,255,80,0,99,34,63,114,34,16,0,9,80,15,84,144,0,0,79,64,15,82,233,0,1,218,0,15,80, +79,96,12,209,5,95,64,7,225,3,48,11,251,16,0,48,0,6,112,0,7,80,0,0,13,112,0,30,80,0,0,94, +18,16,141,1,0,0,215,12,162,228,12,144,8,192,110,43,161,142,32,31,255,246,79,255,245,0,5,61,176,4,62,128, +0,0,141,16,0,186,0,0,8,244,51,60,212,68,48,15,255,254,95,255,237,112,2,33,0,2,16,0,0,159,255,255, +255,255,255,240,18,34,34,34,34,34,32,0,0,18,53,105,181,0,10,255,255,255,219,167,0,2,50,33,245,0,0,0, +1,34,34,248,34,34,0,6,255,255,255,255,252,0,0,0,0,245,0,0,0,107,187,187,255,187,187,160,107,187,223,203, +187,187,160,0,1,204,16,40,0,0,0,10,226,0,30,160,0,1,174,66,52,90,246,0,13,255,255,254,203,255,32,5, +100,33,0,0,29,80,0,0,0,0,0,0,0,10,221,221,221,221,221,219,9,187,207,251,255,187,185,0,0,31,64,79, +0,0,2,255,255,255,255,255,245,2,242,79,98,127,34,245,2,240,63,64,127,16,245,2,240,95,209,175,176,245,2,240, +186,200,231,232,245,2,244,243,41,225,77,245,2,250,144,46,80,1,245,2,241,0,1,1,34,244,2,240,0,0,4,254, +193,0,0,0,153,0,0,0,0,0,6,255,16,0,0,0,0,111,174,193,0,0,0,9,248,2,221,64,0,5,223,96, +164,44,249,16,143,211,0,246,0,143,225,22,0,0,246,0,2,80,0,0,0,246,0,0,0,0,0,0,246,0,0,0, +0,0,0,246,0,0,0,0,0,0,246,0,0,0,0,0,0,246,0,0,0,0,0,0,246,0,0,0,0,0,0,111, +0,0,0,0,0,0,111,0,0,0,2,34,34,143,34,34,16,10,255,255,255,255,255,144,10,176,0,111,0,12,144,10, +176,0,111,0,12,144,10,176,0,111,0,12,144,10,210,34,143,34,47,144,10,255,255,255,255,255,144,9,144,0,111,0, +9,112,0,0,0,111,0,0,0,0,0,0,111,0,0,0,0,0,0,111,0,0,0,0,0,0,2,0,0,0,0,15, +32,47,96,0,0,2,15,32,143,50,34,32,15,47,33,255,255,255,192,15,47,40,242,68,0,0,15,47,127,112,110,80, +0,15,47,54,0,4,192,0,15,47,36,136,136,136,96,15,47,39,255,255,255,176,15,47,39,240,47,11,176,15,47,39, +240,47,11,176,15,47,39,240,47,11,176,7,31,39,253,255,223,176,0,15,39,249,153,159,176,0,0,0,0,0,1,16, +0,68,5,240,0,0,0,0,126,37,240,0,0,0,0,13,134,240,0,0,0,5,87,91,245,85,88,64,13,255,255,255, +255,255,192,0,0,11,160,0,11,176,0,0,14,115,16,12,160,0,0,95,43,176,12,160,0,0,203,2,231,13,144,0, +7,243,0,101,15,112,0,95,112,0,0,47,96,7,248,0,0,50,127,48,25,96,0,0,223,249,0,0,0,0,0,0, +0,0,0,0,8,80,0,0,0,0,0,8,248,0,0,0,1,17,17,127,81,17,0,13,255,255,255,255,255,80,10,187, +187,255,187,187,64,0,0,0,247,0,0,0,0,0,0,247,0,0,0,3,255,255,255,255,251,0,0,34,34,249,34,34, +0,0,0,0,247,0,0,0,0,0,0,247,0,0,0,107,187,187,255,187,187,176,89,153,153,153,153,153,144,0,0,84, +0,0,0,0,0,1,233,0,0,0,0,0,6,248,85,146,0,0,0,15,255,255,251,0,0,0,143,48,5,246,0,0, +3,249,0,11,241,0,0,62,209,0,63,192,0,0,76,32,0,207,208,0,0,0,0,8,249,245,0,0,0,0,111,160, +158,32,0,0,8,251,0,29,210,0,4,207,144,0,2,222,96,79,213,0,0,0,26,246,4,0,0,0,0,0,48,0, +0,2,130,0,0,0,0,0,11,209,0,0,0,0,0,127,64,0,0,0,0,5,246,0,61,64,0,0,95,128,1,221, +16,0,8,248,0,10,227,0,0,27,112,0,143,80,0,0,0,0,6,246,7,64,0,0,0,95,112,10,225,0,0,6, +248,0,1,218,0,1,159,148,86,137,255,80,7,255,255,253,203,175,208,1,99,33,0,0,3,178,0,0,2,176,0,0, +0,0,0,1,230,0,41,32,0,198,0,141,0,126,16,0,141,0,44,16,217,0,0,47,96,0,5,242,0,0,8,209, +0,29,144,0,0,1,218,0,158,16,0,0,0,79,118,245,0,0,0,0,7,255,128,0,0,0,0,8,255,145,0,0, +0,4,206,102,253,80,0,21,191,162,0,59,252,97,79,163,0,0,0,75,226,1,0,0,0,0,0,0,0,0,0,133, +0,0,0,0,0,0,158,32,0,0,0,17,17,46,81,17,0,7,255,255,255,255,255,112,1,34,34,34,34,239,32,0, +0,0,0,11,244,0,0,0,0,0,175,80,0,0,0,0,26,246,0,0,0,0,1,206,80,0,0,0,0,94,211,0, +0,0,0,95,249,16,0,0,0,8,250,250,83,34,51,69,12,96,41,223,255,255,249,1,0,0,0,17,16,0,0,0, +0,148,0,0,0,0,2,38,244,34,50,0,0,63,255,255,255,252,0,0,63,32,0,0,137,0,0,63,32,0,33,199, +0,0,63,32,0,207,210,0,0,63,66,34,34,35,48,0,63,255,255,255,255,240,0,0,0,0,0,5,224,15,255,255, +255,255,198,208,2,34,34,34,34,39,192,0,0,0,0,2,43,160,0,0,0,0,14,253,48,0,0,0,0,0,0,0, +0,0,18,53,121,187,16,12,239,255,253,202,133,16,3,51,42,80,0,0,0,0,0,10,208,0,0,0,0,0,2,177, +0,0,0,12,255,255,255,255,251,0,2,34,34,34,79,243,0,0,0,0,3,221,48,0,0,0,0,127,177,0,0,0, +0,76,230,0,0,0,7,255,249,32,0,0,0,142,60,230,50,34,52,99,135,0,108,255,255,255,226,1,0,0,1,17, +0,0,0,0,1,35,70,138,48,0,143,255,255,237,185,64,0,127,50,17,0,0,0,0,140,0,14,80,0,0,0,185, +0,15,80,0,0,1,251,68,95,148,68,65,2,255,255,255,255,255,245,0,33,17,31,97,17,16,0,11,112,15,80,151, +0,0,127,48,15,80,79,80,5,246,0,15,80,7,227,12,128,21,111,64,0,200,0,0,14,235,16,0,0,0,0,79, +48,0,0,0,0,0,4,242,0,0,0,0,0,0,79,32,0,0,0,0,68,73,246,68,130,0,0,14,255,255,255,255, +96,0,0,17,24,241,17,246,0,0,0,0,156,0,15,96,0,0,0,12,144,0,246,0,0,0,2,245,0,15,96,0, +0,0,173,0,0,246,0,0,0,111,80,0,15,96,61,0,127,128,0,0,248,38,208,78,112,0,0,9,255,247,0,16, +0,0,0,0,0,0,0,1,0,47,0,0,0,0,31,32,47,0,0,0,0,31,32,47,2,127,48,0,31,32,111,223, +223,64,0,31,173,255,114,31,64,57,255,214,79,0,31,48,91,111,32,47,0,47,32,0,31,32,47,0,110,0,0,31, +32,47,63,247,0,0,31,32,45,2,16,130,0,31,32,0,0,1,244,0,14,114,34,34,56,241,0,5,223,255,255,253, +96,8,255,255,255,255,255,160,1,34,34,34,34,47,160,0,6,112,0,0,13,144,0,6,251,16,0,14,144,0,0,61, +211,0,14,144,0,0,1,179,0,14,144,0,0,0,2,120,15,128,0,0,22,207,215,31,112,2,107,254,148,0,47,112, +8,251,81,0,0,63,80,1,16,0,1,50,143,32,0,0,0,2,255,232,0,0,0,0,0,0,0,0,0,0,5,240, +0,81,0,0,0,5,240,1,221,32,1,34,40,243,34,59,225,5,255,255,255,255,243,80,0,0,5,240,0,242,0,0, +0,5,240,0,242,0,44,204,207,253,204,255,242,22,102,108,247,102,106,241,0,0,5,240,0,5,240,0,0,5,240,0, +7,208,0,0,5,240,19,43,160,0,0,5,240,47,254,64,0,0,5,240,0,16,0,0,0,0,0,0,0,0,8,255, +255,255,255,255,241,1,34,34,34,34,46,160,0,9,129,11,80,79,32,0,4,206,62,96,88,0,3,163,6,15,80,0, +0,1,159,128,47,48,0,0,2,37,66,127,50,34,32,31,255,255,255,255,255,243,0,0,1,231,32,0,0,0,0,44, +198,250,48,0,0,57,252,16,58,250,32,46,251,80,0,0,60,192,3,16,0,0,0,0,16,0,1,72,179,47,0,0, +1,206,255,199,50,240,0,0,4,51,242,0,47,0,0,0,0,47,32,2,240,0,0,143,255,255,253,47,0,0,1,34, +79,66,34,240,0,0,0,2,242,0,47,0,0,0,124,239,236,114,240,0,0,9,213,85,217,47,0,0,0,155,0,12, +146,240,2,160,9,176,0,201,47,0,62,0,159,255,255,146,243,40,192,8,194,34,149,10,255,229,0,0,0,0,0,0, +0,0,0,15,32,1,229,0,0,91,191,219,118,243,34,32,37,95,117,62,255,255,242,11,191,235,127,96,0,0,15,152, +143,254,16,0,0,15,32,15,74,170,217,16,15,238,239,39,205,253,0,15,100,79,32,12,209,0,12,207,236,32,143,48, +0,18,47,82,35,246,0,0,175,255,255,187,176,0,193,0,15,32,14,130,36,240,0,15,32,8,239,255,144,0,0,0, +0,0,0,0,8,255,255,255,255,255,176,1,34,34,34,37,255,48,0,0,0,0,78,211,0,0,0,0,8,251,16,0, +0,0,0,127,96,0,0,0,0,0,111,0,0,0,0,0,0,111,0,0,0,0,0,0,111,0,0,0,0,0,0,111, +0,0,0,0,0,0,111,0,0,0,0,1,34,143,0,0,0,0,1,255,233,0,0,0,0,0,0,0,0,0,0,0, +0,2,243,0,0,0,126,238,239,255,238,238,160,35,51,53,246,51,51,32,0,253,223,255,221,245,0,0,247,104,249,102, +245,0,0,85,88,248,85,82,0,6,238,239,255,238,232,0,18,34,36,245,34,218,32,207,255,255,255,255,255,240,17,17, +19,244,17,201,16,8,255,255,255,255,248,0,0,0,3,243,0,117,0,0,2,255,177,0,0,0,0,0,0,0,0,0, +0,1,255,255,255,255,255,16,0,119,119,119,119,119,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,40,136,136,136,136,136,130, +63,255,255,255,255,255,244,1,119,119,119,119,119,48,2,221,221,255,221,221,96,0,0,0,111,0,0,0,0,0,0,111, +0,0,0,2,34,34,143,34,34,33,47,255,255,255,255,255,246,0,0,0,111,0,0,0,0,0,0,111,0,0,0,0, +0,0,111,0,0,0,0,0,0,111,0,0,0,0,1,85,175,0,0,0,0,0,239,232,0,0,0,0,0,0,0,0, +0,0,0,127,255,255,255,255,16,0,37,85,85,85,85,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,15,255, +255,255,255,255,248,5,85,111,246,85,85,83,0,0,143,64,5,32,0,0,2,250,0,13,192,0,0,11,209,0,3,248, +0,0,159,117,103,137,255,48,2,255,255,254,203,175,192,0,116,49,0,0,5,193,0,0,0,0,0,0,0,9,255,255, +255,255,255,244,0,0,247,0,0,0,0,0,2,244,0,0,0,0,0,5,255,255,255,242,0,0,7,242,34,40,241,0, +0,10,160,0,8,224,0,0,13,112,0,9,192,0,0,47,255,255,255,160,0,0,19,50,34,47,128,0,0,0,0,0, +31,96,0,2,34,34,34,95,98,34,15,255,255,255,255,255,250,2,119,119,119,119,119,48,3,221,223,253,221,221,96,0, +0,8,208,0,0,0,0,0,11,176,0,0,0,0,18,47,178,36,48,0,0,159,255,255,255,240,0,0,0,63,64,9, +208,0,0,0,111,16,10,176,0,0,0,141,0,11,160,0,0,0,187,0,13,128,0,13,221,255,221,223,253,214,7,119, +119,119,120,135,116,14,255,255,255,255,255,243,0,0,111,0,246,0,0,0,16,111,0,246,1,0,10,144,111,0,246,9, +160,5,241,111,0,246,14,112,0,231,111,0,246,95,16,0,156,111,0,246,201,0,0,78,143,0,249,242,0,0,1,111, +0,246,16,0,0,0,111,0,246,0,0,93,221,255,221,255,221,215,38,102,102,102,118,102,99,0,5,240,5,240,0,0, +0,5,240,5,240,0,0,6,181,242,37,241,108,144,6,181,255,229,255,216,48,6,181,240,5,242,0,49,6,181,241,53, +241,0,185,45,255,255,227,239,255,244,27,134,65,0,18,34,16,0,18,34,34,34,34,0,0,143,255,255,255,255,0,0, +0,0,0,0,0,0,2,34,34,34,34,34,33,15,255,255,255,255,255,248,0,0,0,99,0,0,0,0,0,0,204,0, +0,0,0,0,0,111,48,0,0,58,170,170,190,170,170,163,59,255,203,187,187,187,179,0,95,16,0,0,0,0,0,95, +16,0,0,0,0,0,95,16,0,0,0,0,0,95,16,0,0,0,0,0,95,16,0,0,0,0,0,95,16,0,0,0, +0,0,95,255,255,255,255,96,0,37,85,85,85,85,32,0,0,0,0,0,0,0,0,0,1,213,0,0,0,0,0,0, +172,0,0,0,47,255,255,255,255,255,241,2,35,132,34,56,50,32,0,10,227,0,45,210,0,2,206,48,0,1,190,64, +11,194,213,0,94,42,208,1,0,141,16,202,0,16,0,0,29,170,226,0,0,0,0,3,255,80,0,0,0,1,110,255, +231,16,0,22,174,232,16,142,251,113,28,166,16,0,1,90,176,0,0,0,0,0,0,0,0,0,0,135,0,0,0,0, +34,34,175,66,34,32,3,255,255,255,255,255,240,0,2,194,0,4,129,0,0,0,202,0,11,176,0,1,67,139,34,95, +82,32,5,255,255,255,255,255,241,5,241,0,0,0,0,0,6,241,0,0,0,0,0,7,240,0,0,0,0,0,9,208, +0,0,0,0,0,13,144,0,0,0,0,0,47,64,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,1,0,0, +0,0,0,0,202,0,0,0,13,221,221,255,221,221,215,5,85,85,85,85,85,83,0,62,238,238,238,232,0,0,63,48, +0,0,216,0,0,63,204,204,204,248,0,0,2,34,34,34,33,0,10,255,255,255,255,255,80,1,34,34,36,159,247,0, +0,0,0,159,164,0,0,0,0,0,142,0,0,0,0,1,34,158,0,0,0,0,2,255,232,0,0,0,0,0,0,0, +0,0,0,0,0,1,180,0,0,0,0,0,0,173,0,0,0,63,255,255,255,255,255,243,2,34,34,34,34,34,32,2, +153,153,153,153,153,32,3,255,255,255,255,255,48,3,241,0,169,0,63,48,3,243,34,203,34,79,48,3,255,255,255,255, +255,48,3,242,0,186,0,63,48,3,241,0,169,0,63,48,3,255,221,255,221,255,48,3,248,119,119,119,159,48,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,216,0,0,0,45,221,221,255,221,221,209,4,68,68,68,68,68, +64,0,110,238,238,238,231,0,0,110,0,0,0,232,0,0,111,221,221,221,248,0,0,35,51,51,51,49,0,0,239,255, +255,255,248,0,0,0,0,223,166,32,0,79,255,255,255,255,255,244,18,34,34,220,34,34,33,0,0,17,186,0,0,0, +0,0,239,229,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,213,0,0,0,20,68,68,239, +68,68,65,47,255,255,255,255,255,242,1,17,17,17,17,17,16,0,127,255,255,255,249,0,0,125,34,34,34,217,0,0, +125,0,0,0,201,0,0,126,204,204,204,233,0,0,91,187,255,187,183,0,0,23,16,171,1,96,0,1,188,16,171,2, +218,0,28,193,34,187,0,46,160,6,16,175,230,0,3,80,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,185,0,0,0,59,187,187,255,187,187,178,22,102,102,102,102,102,97,0,62,238,238,238,229,0,0,79,16,0,1,245, +0,0,79,221,221,221,245,0,0,18,34,34,34,33,0,15,255,255,255,255,255,240,15,48,34,34,34,5,240,7,32,255, +255,255,2,112,0,4,243,0,141,0,64,1,93,192,0,142,35,242,29,233,16,0,78,255,176,2,0,0,0,0,0,0, +0,0,0,135,0,0,0,0,34,34,159,34,34,16,0,255,255,255,255,255,160,0,2,194,0,8,128,0,0,0,201,0, +31,80,0,30,238,255,238,255,238,225,27,187,187,255,187,187,177,2,34,34,143,34,34,32,11,255,255,255,255,255,208,0, +5,96,111,4,96,0,0,79,128,111,4,232,0,6,250,18,127,0,62,112,0,80,30,250,0,3,16,0,0,0,0,0, +0,0,0,0,0,232,0,0,0,0,0,0,249,0,0,0,0,0,1,254,0,0,0,0,0,3,255,0,0,0,0,0, +6,255,0,0,0,0,0,9,255,48,0,0,0,0,14,156,144,0,0,0,0,111,55,242,0,0,0,1,219,1,234,0, +0,0,10,243,0,95,112,0,0,159,96,0,9,248,0,60,247,0,0,0,143,194,27,64,0,0,0,4,144,0,0,0, +0,0,0,0,0,2,227,0,95,16,0,0,8,208,0,95,16,0,0,31,112,0,95,16,0,0,159,16,0,95,16,0, +4,255,0,0,95,16,0,30,223,47,255,255,255,251,9,63,2,34,127,50,34,0,47,0,0,95,16,0,0,47,0,0, +95,16,0,0,47,0,0,95,16,0,0,47,0,0,95,16,0,0,47,0,0,95,16,0,0,47,0,0,95,16,0,0, +0,0,0,0,0,0,0,0,130,0,0,0,0,0,4,243,0,0,0,0,0,12,177,102,102,102,97,0,111,51,255,255, +255,242,2,255,0,0,0,0,0,29,255,0,0,0,0,0,12,95,0,0,0,0,0,1,47,0,0,0,0,0,0,47, +0,0,0,0,0,0,47,0,0,0,0,0,0,47,2,34,34,34,34,0,47,15,255,255,255,251,0,47,4,68,68,68, +67,0,0,99,0,0,0,0,0,0,63,98,34,34,36,0,0,11,215,255,255,255,247,0,5,245,13,96,0,95,64,2, +255,0,155,0,9,225,2,223,240,5,242,0,234,0,28,79,0,13,128,111,64,0,2,240,0,126,62,176,0,0,47,0, +0,207,242,0,0,2,240,0,11,255,0,0,0,47,0,26,251,251,16,0,2,241,110,212,3,222,129,0,47,28,129,0, +1,122,0,0,0,0,0,0,0,0,0,0,0,28,96,0,0,0,0,0,27,255,48,0,0,0,0,44,228,190,80,0, +0,0,78,212,0,159,162,0,2,175,194,186,16,94,232,32,174,112,2,205,32,25,244,1,32,0,1,179,0,1,0,3, +255,255,255,255,254,16,0,21,85,85,85,255,112,0,0,0,0,0,143,144,0,0,0,0,0,111,160,0,0,0,0,0, +63,193,0,0,0,0,0,11,209,0,0,0,0,0,0,1,0,0,0,0,4,0,0,0,0,0,0,79,87,119,119,176, +0,0,170,92,255,206,240,0,4,246,0,246,6,176,0,29,243,0,245,9,128,0,142,243,1,244,14,255,208,53,243,3, +242,3,62,192,0,243,5,240,0,12,192,0,243,8,192,0,13,160,0,243,13,128,0,14,144,0,243,79,32,0,31,128, +0,243,203,0,18,111,80,0,246,210,0,63,251,0,0,16,0,0,0,0,0,0,0,0,0,0,0,0,0,6,240,0, +15,96,0,0,7,240,0,31,80,0,0,8,224,0,63,64,0,0,9,192,0,79,32,0,0,11,240,0,127,16,0,0, +14,248,0,159,64,0,0,31,191,64,207,128,0,0,79,58,210,252,224,0,0,158,1,217,243,246,0,1,233,0,30,176, +158,16,8,243,0,159,48,30,177,47,160,6,248,0,4,245,5,16,0,96,0,0,48,0,0,0,139,0,0,0,0,0, +4,255,96,0,0,0,0,78,149,247,0,0,0,7,249,0,78,178,0,4,207,112,0,2,190,129,46,206,255,255,255,245, +215,2,11,226,34,46,224,0,0,11,192,0,13,208,0,0,11,192,2,47,176,0,0,11,192,13,254,83,0,0,11,192, +0,0,14,96,0,10,211,34,34,111,48,0,3,207,255,255,233,0,0,12,48,0,0,0,0,0,94,79,255,255,255,112, +0,217,2,34,36,254,16,6,244,0,0,94,161,0,46,243,0,0,248,0,0,156,243,0,0,242,0,0,35,243,239,255, +255,255,240,0,243,34,34,245,34,32,0,243,0,0,242,0,0,0,243,0,0,242,0,0,0,243,0,0,242,0,0,0, +243,3,86,242,0,0,0,243,4,238,144,0,0,0,28,32,0,47,0,0,0,109,8,16,47,0,0,0,217,15,32,47, +5,192,6,244,15,32,95,223,241,46,243,15,140,255,115,241,188,246,175,249,95,2,240,82,246,191,48,47,2,240,0,243, +15,32,47,4,224,0,243,15,32,47,127,144,0,243,15,32,43,18,32,0,243,15,32,0,0,152,0,243,14,114,34,35, +214,0,243,6,239,255,255,177,0,0,0,0,0,0,0,0,1,229,3,240,137,0,0,8,225,2,240,45,144,0,47,112, +1,241,3,193,0,239,16,0,242,36,99,10,255,39,155,255,255,230,143,191,61,185,251,49,0,71,95,0,0,168,0,0, +0,95,0,0,139,0,0,0,95,0,0,94,0,0,0,95,0,0,31,64,85,0,95,0,0,11,176,138,0,95,0,0, +3,252,230,0,95,0,0,0,93,209,0,0,0,0,0,0,0,0,0,0,6,48,0,0,0,0,0,6,255,0,0,0, +0,0,8,250,236,32,0,0,0,60,229,2,191,129,0,2,175,194,155,16,126,231,16,174,96,1,220,0,41,245,1,18, +34,36,130,36,17,0,2,255,255,255,255,252,0,0,0,0,0,4,252,16,0,0,0,149,5,251,16,0,0,0,26,255, +250,0,0,0,0,0,4,255,96,0,0,0,0,0,1,174,32,0,0,0,0,0,0,32,0,0,0,0,0,0,0,0, +0,0,148,0,16,0,111,0,0,246,9,192,0,126,0,0,246,2,232,0,141,0,0,246,0,127,32,171,0,0,246,0, +8,16,201,0,0,246,0,0,1,245,0,0,246,0,0,6,241,0,0,246,6,128,13,208,0,0,253,223,128,111,243,0, +9,255,129,5,250,190,32,13,210,1,143,176,28,209,0,0,13,248,0,2,231,0,0,2,32,0,0,32,0,4,18,48, +0,0,0,0,63,54,198,255,255,192,0,156,0,182,34,46,192,2,247,47,16,0,11,192,11,242,47,0,0,11,192,95, +242,47,0,0,11,192,42,242,47,0,0,11,192,1,242,47,0,0,11,192,1,242,47,0,0,11,192,1,242,47,0,0, +11,192,1,242,47,0,0,11,192,1,242,47,0,2,44,192,1,242,47,0,8,254,112,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,13,66,32,242,0,0,0,94,25,176,242,0,0,0,202,12,112,242,0,0,6,244,47,255,255,255, +64,46,243,142,34,245,34,16,173,243,198,0,242,0,0,84,243,0,0,242,0,0,0,243,239,255,255,255,208,0,243,34, +34,245,34,32,0,243,0,0,242,0,0,0,243,0,0,242,0,0,0,243,0,0,242,0,0,0,243,0,0,242,0,0, +0,11,80,5,242,0,0,0,79,32,13,248,0,0,0,188,0,142,111,64,0,4,246,7,245,8,244,0,29,243,159,96, +0,159,128,158,249,230,97,2,103,177,52,243,19,242,6,240,0,0,243,3,242,6,240,0,0,243,4,241,6,240,0,0, +243,7,224,6,240,0,0,243,13,144,6,240,0,0,243,143,32,6,240,0,0,244,214,0,6,240,0,0,0,0,0,0, +0,0,0,0,180,0,0,38,96,0,6,244,87,173,254,161,0,30,154,219,223,48,0,0,159,32,0,95,0,0,5,255, +0,0,95,0,0,63,207,0,0,95,0,0,9,63,111,255,255,255,252,0,47,18,34,143,34,34,0,47,0,0,95,0, +0,0,47,0,0,95,0,0,0,47,0,0,95,0,0,0,47,9,204,255,204,199,0,47,10,221,221,221,215,0,0,0, +0,0,0,0,0,29,48,102,9,96,0,0,110,0,215,9,176,0,0,234,4,242,4,243,0,6,245,12,176,0,204,0, +46,243,143,64,0,79,160,159,246,255,170,170,255,245,71,243,157,255,255,253,80,0,243,0,125,0,204,0,0,243,0,170, +0,219,0,0,243,0,229,0,234,0,0,243,7,225,1,248,0,0,243,111,65,38,245,0,0,243,181,0,222,161,0,0, +0,0,0,0,0,0,0,0,16,0,0,0,0,0,0,30,100,68,68,68,16,0,7,230,255,255,255,245,0,1,249,0, +15,32,15,80,0,175,64,0,242,0,245,0,127,247,255,255,255,255,245,14,207,50,34,245,34,248,16,114,243,0,15,32, +15,80,0,15,49,36,243,34,245,0,0,243,143,255,255,255,80,0,15,48,9,144,0,180,0,0,243,3,243,0,0,0, +0,15,53,231,0,0,0,0,0,244,214,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +11,160,2,240,0,0,0,3,246,0,47,0,0,0,0,189,0,2,240,0,0,0,111,82,34,95,34,34,0,63,240,239, +255,255,255,208,46,255,0,3,255,224,0,1,196,240,0,174,253,96,0,0,47,0,95,127,94,16,0,2,240,46,178,240, +202,0,0,47,44,226,47,3,248,0,2,248,245,2,240,6,209,0,47,2,0,47,0,1,0,2,240,0,2,240,0,0, +0,0,0,4,0,0,0,0,0,0,207,32,0,0,0,0,27,254,194,0,0,0,4,237,32,158,112,0,4,191,179,34, +39,253,113,29,182,255,255,255,135,228,1,0,0,0,0,0,0,9,255,255,255,255,255,240,1,34,95,194,39,50,32,0, +2,219,0,28,193,0,0,45,194,52,87,254,0,0,255,255,255,237,239,128,0,134,67,16,0,6,96,0,0,0,135,0, +0,0,0,0,26,255,32,0,0,0,5,221,58,248,16,0,22,207,129,49,93,233,48,159,163,0,246,1,125,226,18,91, +0,246,4,193,32,0,46,96,246,12,144,0,0,8,192,246,94,16,0,17,19,33,247,35,17,16,159,255,255,255,255,255, +240,17,17,17,247,17,17,16,0,0,0,246,0,0,0,0,0,0,246,0,0,0,0,5,80,1,129,0,0,0,14,130, +40,243,34,32,0,111,31,255,255,255,208,1,250,0,13,96,0,0,10,243,34,95,66,34,33,126,243,255,255,255,255,248, +116,243,0,200,0,0,0,0,243,2,255,255,255,144,0,243,1,50,35,223,16,0,243,0,23,26,210,0,0,243,0,61, +255,32,0,0,243,0,0,207,128,0,0,243,0,0,5,177,0,0,0,0,0,0,0,0,0,10,128,167,0,0,0,0, +47,81,228,0,0,0,0,174,7,255,255,255,176,3,247,46,146,34,34,32,29,243,188,8,192,0,0,174,243,18,9,192, +0,0,100,243,63,255,255,255,192,0,243,2,47,178,43,176,0,243,0,31,80,9,176,0,243,0,95,16,10,160,0,243, +1,217,0,11,144,0,243,27,209,19,62,112,0,243,155,16,63,252,16,0,0,0,0,0,0,0,0,3,0,0,0,0, +0,0,63,39,16,0,15,32,0,155,15,62,48,31,32,2,247,15,42,160,47,16,10,243,15,36,242,62,0,111,243,15, +32,231,92,0,135,243,15,32,66,138,0,16,243,15,32,0,220,0,0,243,15,36,145,255,16,0,243,15,207,120,221,112, +0,243,111,227,62,87,224,0,243,46,3,235,1,245,0,243,0,3,161,0,97,0,10,80,0,0,0,0,0,79,61,255, +255,255,16,0,205,13,130,34,127,16,5,247,13,112,0,95,16,46,243,13,130,34,127,16,190,243,13,255,255,255,16,132, +243,13,112,0,95,16,0,243,13,112,0,95,16,0,243,13,130,34,127,16,0,243,13,255,255,255,16,0,243,0,0,0, +0,0,0,243,34,34,34,34,32,0,243,255,255,255,255,243,0,0,97,0,133,0,0,0,6,224,0,171,0,0,0,13, +130,34,122,34,32,0,127,27,255,255,255,240,3,255,0,34,0,21,16,13,239,0,185,0,79,32,7,79,0,140,0,110, +0,0,47,0,94,0,155,0,0,47,0,63,32,200,0,0,47,0,31,64,244,0,0,47,0,5,20,241,0,0,47,63, +255,255,255,248,0,47,2,34,34,34,33,0,4,16,0,0,52,0,0,47,50,71,174,253,32,0,156,255,235,175,48,0, +2,247,191,0,31,16,0,10,243,175,0,15,32,0,111,243,175,34,47,82,32,183,243,175,255,255,255,208,32,243,175,0, +11,96,0,0,243,175,0,9,144,0,0,243,175,0,38,192,48,0,243,175,2,228,243,225,0,243,207,219,152,206,208,0, +243,191,97,39,60,96,0,0,0,0,0,0,0,0,12,64,1,242,0,0,0,95,16,1,242,0,0,0,187,17,18,243, +17,16,4,246,207,255,255,255,242,29,242,17,47,255,33,16,143,242,0,108,252,96,0,103,242,0,199,247,208,0,0,242, +6,225,242,214,0,0,242,30,113,242,110,16,0,243,189,51,244,61,176,0,246,229,255,255,245,211,0,242,16,1,242,0, +16,0,242,0,1,226,0,0,0,9,32,0,0,0,0,0,95,103,119,119,119,112,0,186,140,204,204,239,224,4,245,0, +0,0,31,16,29,243,20,34,32,31,16,157,243,95,255,242,31,16,99,243,95,0,242,31,16,0,243,95,0,242,31,16, +0,243,95,255,242,31,16,0,243,95,34,32,31,16,0,243,1,0,0,31,16,0,243,0,0,34,79,16,0,243,0,0, +159,233,0,0,0,0,0,0,0,0,0,0,0,43,16,0,0,0,0,0,46,249,0,0,0,0,0,110,147,235,32,0, +0,2,175,96,2,206,113,0,25,255,168,136,136,239,232,1,198,92,207,252,202,41,96,0,0,0,111,0,0,0,0,95, +255,255,255,255,255,0,1,34,34,143,34,50,32,0,0,140,6,240,125,32,0,0,143,64,111,1,190,32,0,174,65,40, +240,0,189,16,3,48,63,233,0,1,64,0,0,0,0,0,0,0,0,0,10,160,47,15,32,0,0,47,80,47,15,32, +0,0,190,143,255,255,255,240,4,247,18,79,47,68,240,29,243,0,47,15,34,240,190,243,95,255,255,255,240,117,243,139, +79,47,66,32,0,243,185,95,47,66,33,0,243,255,255,255,255,246,0,243,0,154,15,32,197,0,243,1,229,15,49,228, +0,243,44,176,15,127,209,0,243,186,16,15,32,0,0,0,0,0,0,0,0,0,7,48,38,0,0,0,0,47,64,157, +0,0,0,0,157,1,252,102,102,97,2,248,9,255,253,221,210,11,243,47,103,240,0,0,143,243,204,7,242,34,32,150, +243,130,7,255,255,192,16,243,0,7,240,0,0,0,243,0,7,242,34,32,0,243,0,7,255,255,240,0,243,0,7,240, +0,0,0,243,0,7,240,0,0,0,243,0,7,240,0,0,0,10,65,179,0,0,0,0,79,36,241,0,0,0,0,203, +9,244,68,68,130,5,245,31,255,255,255,249,46,243,157,0,242,4,246,189,243,213,0,242,5,227,99,243,19,144,242,105, +0,0,243,9,176,242,95,64,0,243,13,112,242,14,176,0,243,95,16,242,8,242,0,243,184,0,242,4,246,0,243,1, +19,242,0,16,0,242,0,95,176,0,0,0,0,0,0,0,0,0,0,0,9,144,0,242,0,0,0,2,247,34,63,66, +34,0,0,173,191,255,255,255,241,0,95,112,0,15,32,0,0,62,243,47,255,255,255,240,13,207,50,242,47,66,79,0, +114,243,47,17,243,19,240,0,15,50,255,255,255,255,0,0,243,10,37,225,17,16,0,15,48,124,186,0,0,0,0,243, +0,223,145,0,0,0,15,53,191,155,234,116,0,0,243,170,32,2,123,208,0,90,0,0,0,2,240,0,169,207,255,240, +2,240,1,244,44,194,39,178,240,6,240,12,96,7,178,240,31,240,47,255,167,178,240,127,240,127,94,151,178,240,56,240, +215,12,119,178,240,2,246,230,47,55,178,240,2,241,90,255,7,178,240,2,240,0,250,6,162,240,2,240,7,225,0,2, +240,2,240,95,80,1,37,240,2,240,166,0,1,254,128,0,16,0,0,0,0,0,0,7,48,3,112,0,0,0,47,64, +4,242,0,0,0,141,34,34,214,34,32,2,248,255,255,255,255,241,12,243,0,63,240,0,0,142,243,2,234,228,3,112, +70,243,63,240,169,78,160,0,249,255,192,79,247,0,0,247,120,176,15,192,0,0,243,8,176,5,244,0,0,243,8,177, +97,174,48,0,243,15,255,194,28,226,0,243,31,130,0,1,80,0,0,0,0,0,0,0,0,8,48,0,0,0,0,0, +79,207,255,255,255,192,0,204,0,0,243,0,0,5,246,47,221,255,222,240,46,243,47,0,242,2,240,143,243,47,238,255, +238,240,54,243,47,0,242,2,240,0,243,47,1,241,2,240,0,243,47,255,255,255,240,0,243,88,7,160,0,0,0,243, +27,255,48,0,0,0,243,57,255,217,116,48,0,245,217,32,38,156,209,0,0,0,0,0,0,0,0,0,99,0,0,0, +0,0,0,47,95,255,255,255,32,0,9,208,244,34,34,242,0,3,247,15,32,0,15,32,1,207,48,252,204,204,242,0, +173,243,11,188,253,187,32,8,47,48,0,15,32,0,0,0,243,239,255,255,255,224,0,15,50,37,255,245,34,0,0,243, +2,217,249,210,0,0,15,51,219,15,42,211,0,0,245,250,16,242,27,225,0,15,35,0,15,32,3,0,0,1,0,0, +32,0,0,0,31,64,3,243,0,0,0,110,0,0,167,0,0,0,218,255,255,255,255,240,4,244,17,17,17,17,16,12, +243,1,17,17,17,0,126,243,9,255,255,255,64,167,243,1,17,17,17,0,16,243,9,255,255,255,64,0,243,1,17,17, +17,0,0,243,12,255,255,255,112,0,243,12,80,0,11,112,0,243,12,97,17,28,112,0,243,13,255,255,255,112,0,16, +0,0,0,0,0,0,57,0,0,0,0,0,0,139,222,238,238,238,224,0,214,171,223,191,219,176,5,243,0,47,14,32, +0,13,243,255,255,255,255,247,126,243,244,79,47,66,247,54,243,242,79,15,48,247,0,243,242,127,95,192,247,0,243,242, +202,204,232,247,0,243,248,225,167,109,247,0,243,251,96,193,1,247,0,243,242,0,1,34,247,0,243,242,0,1,255,195, +0,0,0,0,0,0,0,0,21,0,5,48,0,0,0,93,0,31,65,18,16,0,184,0,175,255,255,192,3,245,6,255, +48,159,64,11,243,200,69,255,246,0,111,243,242,39,255,246,32,119,243,252,251,83,124,245,16,243,243,19,186,0,32,0, +243,242,140,80,137,0,0,243,242,3,141,145,64,0,243,242,124,114,76,193,0,243,0,36,140,198,0,0,243,2,218,115, +0,0,0,19,0,0,0,0,0,0,124,136,136,130,66,240,0,199,143,232,133,226,240,4,242,62,27,52,226,240,14,241, +220,127,245,226,240,111,241,250,117,233,226,240,121,240,5,208,4,226,240,18,241,90,245,84,226,240,2,242,223,253,212,226, +240,2,240,5,224,4,226,240,2,240,7,248,163,2,240,2,246,254,198,49,37,240,2,241,16,0,2,254,144,0,23,16, +0,0,0,0,0,94,0,143,255,255,16,0,185,0,17,17,111,0,3,245,246,187,187,255,179,11,242,244,108,150,102,98, +95,242,242,63,116,68,48,73,242,242,191,207,236,160,1,242,246,227,15,32,0,1,242,245,169,159,185,146,1,242,244,136, +191,232,130,1,242,81,1,205,226,0,1,242,1,110,160,158,114,1,242,6,197,0,5,194,0,0,0,0,0,0,0,0, +9,80,0,201,0,0,0,47,66,34,249,34,32,0,156,127,255,255,255,240,2,247,0,3,241,0,0,11,243,10,255,255, +255,64,127,243,10,128,0,14,64,87,243,10,254,238,239,64,0,243,10,128,0,14,64,0,243,10,254,238,239,64,0,243, +10,180,68,79,64,0,243,10,231,119,127,64,0,243,191,251,187,191,245,0,243,255,255,255,255,247,0,37,0,0,0,0, +0,0,140,191,255,46,255,240,0,216,173,31,34,36,240,4,244,155,15,33,19,240,13,241,191,255,46,255,240,95,241,173, +17,1,17,16,76,241,157,17,106,170,209,3,241,159,255,158,156,240,1,241,155,0,14,57,160,1,241,159,255,24,255,48, +1,241,157,34,4,255,0,1,241,155,2,143,190,163,1,241,155,7,196,2,182,0,0,0,0,0,0,0,0,0,0,0, +1,0,0,0,30,64,192,8,192,0,0,110,16,192,10,144,0,0,218,34,226,30,130,33,6,247,255,255,223,255,247,30, +243,0,192,175,23,176,158,243,0,194,255,57,144,84,243,143,252,203,108,96,0,243,191,143,38,191,48,0,243,187,15,34, +253,0,0,243,187,15,33,253,0,0,243,189,47,42,254,32,0,243,191,255,206,42,210,0,243,171,3,178,1,163,0,9, +48,3,193,0,0,0,79,154,170,254,170,162,0,171,87,119,119,119,113,3,246,10,238,238,238,16,11,242,11,112,0,31, +32,127,242,11,238,238,239,32,88,242,19,51,51,51,16,0,242,255,255,255,255,243,0,242,246,102,102,101,243,0,242,88, +204,254,200,81,0,242,0,0,242,0,0,0,242,0,34,242,0,0,0,242,0,207,192,0,0,0,16,0,0,0,0,0, +0,0,0,0,0,0,0,0,107,0,16,15,16,0,0,186,255,249,223,237,208,2,244,37,209,47,50,240,9,241,10,174, +239,255,253,47,240,62,17,47,66,240,126,241,255,248,207,236,192,37,240,51,179,63,67,32,2,243,100,156,239,254,112,2, +242,233,97,31,33,16,2,240,191,79,255,255,224,2,240,143,96,15,16,0,2,242,217,251,107,50,34,2,249,112,41,206, +255,244,0,0,0,0,0,0,0,0,7,16,0,0,0,0,0,94,111,238,255,239,32,0,185,110,0,242,15,32,5,245, +111,255,255,255,32,29,243,110,0,242,15,32,157,243,111,238,255,239,32,68,243,1,17,243,17,0,0,243,255,255,255,255, +208,0,243,244,34,245,121,176,0,243,243,19,248,248,176,0,243,247,253,250,221,176,0,243,243,0,0,41,176,0,243,242, +0,1,238,112,0,0,0,0,0,0,0,0,45,16,0,125,0,81,0,124,150,2,159,35,242,0,215,62,47,255,255,160, +5,241,5,48,125,62,32,14,241,36,54,223,252,99,111,245,255,104,175,248,132,71,240,15,50,219,17,16,2,240,15,127, +255,255,246,2,240,15,90,240,0,246,2,240,15,69,253,221,246,2,240,47,247,240,0,246,2,240,143,52,255,255,246,2, +240,17,4,241,17,246,0,16,0,0,16,0,0,0,0,0,0,0,0,0,0,13,96,4,208,0,0,0,95,78,239,254, +238,96,0,220,47,105,58,43,112,4,246,47,28,254,27,112,29,243,47,123,59,107,112,142,243,47,238,238,239,112,100,243, +4,184,10,182,16,0,243,124,123,32,57,160,0,243,4,255,238,248,0,0,243,110,249,9,243,0,0,243,2,29,255,80, +0,0,243,37,175,255,183,48,0,243,188,147,1,106,176,0,0,0,0,0,0,0,0,11,80,197,0,0,0,0,79,40, +255,255,64,0,0,204,111,65,172,17,0,5,250,255,221,255,223,32,46,243,79,4,208,15,32,157,243,47,255,255,255,32, +35,243,3,207,48,4,0,0,243,174,125,227,221,32,0,243,35,186,255,242,0,0,243,173,86,249,153,0,0,243,35,188, +170,47,96,0,243,190,114,184,6,192,0,242,65,13,210,0,16,0,0,0,0,0,0,0,0,2,240,0,47,48,0,0, +0,47,0,2,243,0,0,0,2,240,0,47,48,0,0,0,47,0,2,243,0,0,0,2,240,0,47,48,0,0,0,62, +0,2,243,0,0,0,5,208,0,47,48,0,0,0,138,0,2,243,0,0,0,13,112,0,47,48,41,0,7,225,0,2, +243,3,240,6,247,0,0,31,98,124,1,215,0,0,0,175,254,96,1,0,0,0,0,0,0,0,0,255,255,255,255,246, +0,0,244,34,34,34,246,0,0,242,0,0,0,246,0,0,242,0,0,0,246,0,0,252,204,204,204,246,0,0,255,255, +255,255,246,0,0,2,245,5,240,0,0,0,5,243,5,240,0,0,0,10,208,5,240,2,64,0,79,112,5,240,5,224, +23,251,0,5,243,41,192,110,112,0,1,223,254,80,0,0,0,0,0,0,0,0,0,0,66,0,0,0,0,0,0,219, +0,0,0,2,34,34,125,66,34,32,47,255,255,255,255,255,242,0,1,205,16,58,32,0,0,12,245,68,111,247,0,1, +255,255,255,255,255,96,2,246,175,18,245,9,96,0,0,173,2,245,0,0,0,0,233,2,245,0,81,0,8,243,2,245, +0,199,2,175,112,1,247,35,229,30,230,0,0,175,255,193,2,0,0,0,0,0,0,0,6,128,95,0,0,0,0,0, +201,5,240,0,0,0,0,47,255,255,255,255,112,0,9,226,40,242,34,33,0,2,245,0,95,0,0,0,0,3,0,6, +240,0,0,0,13,255,255,255,255,255,243,0,171,191,251,191,251,187,32,0,0,156,0,141,0,0,0,0,13,128,8,208, +0,0,0,7,242,0,141,0,59,0,24,247,0,8,227,39,208,11,230,0,0,62,255,247,0,16,0,0,0,0,0,0, +0,48,0,245,0,51,0,3,244,0,245,0,173,0,0,172,0,245,2,245,0,0,79,48,245,10,176,0,0,6,16,245, +4,32,0,108,204,204,255,204,204,195,142,238,255,239,255,238,228,0,1,245,3,242,0,0,0,4,242,3,242,0,0,0, +10,208,3,242,0,16,0,95,96,3,242,0,242,57,249,0,2,245,37,241,108,80,0,0,191,255,144,0,0,0,0,0, +0,0,0,0,0,95,0,0,0,2,34,34,143,34,34,33,10,255,255,255,255,255,247,0,0,0,95,0,0,0,0,47, +255,255,255,255,0,0,47,85,85,85,159,0,0,47,0,0,0,95,0,0,47,238,238,255,239,0,0,43,255,235,255,187, +0,0,0,143,0,200,0,0,0,2,234,0,200,0,88,2,126,209,0,202,34,155,11,232,16,0,110,255,229,1,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,1,215,0,0,0,0,0,12,255,255,246,0,0,0,143,98,41,242,0,0, +9,254,136,191,216,136,32,79,255,255,255,255,255,48,2,242,0,218,0,63,48,0,248,103,254,102,143,48,0,255,255,255, +255,255,48,0,0,8,230,240,0,0,0,0,63,134,240,0,16,0,4,236,22,240,0,211,5,191,177,5,243,36,243,30, +181,0,1,223,255,176,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,202,0,0,0,0,0,8,255,255,247, +0,0,0,79,162,38,244,0,0,4,254,68,95,212,68,16,95,255,255,255,255,255,80,22,242,0,125,0,31,80,0,242, +0,155,0,31,80,0,249,136,255,136,159,80,0,187,191,255,251,203,64,0,0,28,200,183,194,0,0,2,206,40,176,155, +82,20,175,178,8,210,36,230,30,180,0,3,223,255,193,0,0,0,0,0,0,0,0,104,0,245,0,137,0,0,111,64, +245,2,248,0,11,191,203,255,191,252,179,15,255,255,255,255,255,244,15,33,17,17,17,17,244,15,47,255,255,255,241,244, +0,15,66,34,39,240,0,0,15,83,51,56,240,0,0,15,255,255,255,240,0,0,0,172,9,241,0,0,0,4,246,9, +241,0,115,4,159,160,8,244,35,214,29,181,0,4,239,255,209,0,0,0,0,0,0,0,0,0,66,0,0,0,0,0, +0,206,48,0,0,0,0,0,44,209,0,0,0,0,0,2,253,0,0,0,0,0,1,255,64,0,0,0,0,5,255,192, +0,0,0,0,10,228,245,0,0,0,0,63,128,173,0,0,0,0,174,16,63,128,0,0,7,247,0,8,244,0,0,111, +160,0,1,206,64,26,251,16,0,0,46,245,27,128,0,0,0,2,178,0,0,0,0,0,0,0,0,0,0,149,0,0, +0,0,0,7,254,16,0,0,0,0,127,125,177,0,0,0,26,246,2,221,64,0,5,222,64,0,27,249,16,175,250,136, +136,136,255,226,53,107,187,255,187,178,112,0,0,0,246,0,0,0,0,18,34,248,34,32,0,0,111,255,255,255,240,0, +0,0,0,246,0,0,0,59,187,187,255,187,187,128,79,255,255,255,255,255,176,0,0,99,0,150,0,0,0,0,247,0, +184,0,0,0,2,245,0,170,0,0,0,3,243,0,125,0,0,0,6,240,0,95,16,0,0,9,192,0,31,80,0,0, +13,128,0,12,160,0,0,63,64,0,7,225,0,0,157,0,0,1,233,0,3,246,0,0,0,143,48,45,192,0,0,0, +29,210,77,32,0,0,0,2,212,0,0,0,0,0,0,0,0,0,66,0,36,0,0,0,2,248,0,142,32,0,0,9, +225,0,29,176,0,0,79,112,0,4,247,0,2,236,0,98,0,143,80,45,226,4,248,0,11,244,7,48,12,209,0,1, +112,0,0,111,80,3,0,0,0,2,234,0,79,80,0,0,11,209,0,9,226,0,1,191,134,120,155,252,0,2,255,254, +220,186,191,112,0,66,0,0,0,10,144,0,0,0,0,0,0,0,0,0,1,133,0,0,0,0,0,0,205,0,0,0, +0,0,0,95,80,0,0,3,51,51,58,67,51,50,15,255,255,255,255,255,248,3,51,51,51,51,51,50,0,0,49,0, +5,0,0,0,1,235,0,63,112,0,0,8,243,0,8,243,0,0,63,144,0,1,220,0,0,206,16,0,0,79,128,9, +245,0,0,0,10,242,9,144,0,0,0,2,195,0,0,0,0,0,0,0,0,0,148,0,134,0,0,0,5,244,0,126, +16,0,0,29,176,0,30,144,0,0,174,32,0,5,247,0,9,254,170,170,170,207,112,159,107,255,187,187,73,245,20,0, +186,0,0,0,64,0,1,248,34,35,32,0,0,8,255,255,255,242,0,0,0,0,0,9,240,0,0,0,0,0,12,192, +0,0,0,2,34,79,128,0,0,0,5,255,251,16,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,112, +0,7,209,0,0,6,243,0,30,128,0,0,0,165,0,156,0,0,12,255,255,255,255,255,192,2,34,34,34,34,34,32, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,252,0,0,34,34,34,34,34,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,79,255,255,255,255,255,243,18,34,34,34,34,34,32,0,3,243,0,63,48,0,0, +3,243,0,63,48,0,0,3,243,0,63,48,0,12,255,255,255,255,255,224,2,37,245,34,95,82,32,0,3,243,0,63, +48,0,0,3,243,0,63,48,0,93,223,255,221,255,253,213,39,119,119,119,119,119,115,0,1,165,0,106,16,0,0,44, +210,0,44,228,0,6,236,32,0,1,175,96,10,129,0,0,0,9,144,0,0,0,0,0,16,0,0,8,176,0,5,243, +0,0,2,246,0,12,176,0,0,85,201,85,175,117,48,1,255,255,255,255,255,128,0,0,0,143,0,0,0,0,0,0, +143,0,0,0,2,34,34,191,34,34,33,14,255,255,255,255,255,244,0,0,2,255,144,0,0,0,0,28,230,246,0,0, +0,3,223,80,127,145,0,4,175,212,0,7,254,131,28,215,0,0,0,42,227,1,0,0,0,0,0,0,0,0,4,80, +0,0,32,4,48,7,225,0,5,244,10,209,1,246,0,12,208,2,231,0,171,0,95,80,0,142,16,108,0,219,0,0, +45,48,0,7,242,0,2,34,34,34,36,98,33,15,255,255,255,255,255,249,1,17,49,17,18,17,16,0,4,248,0,30, +177,0,0,62,176,0,3,236,16,6,236,16,0,0,62,193,10,161,0,0,0,3,213,0,0,0,0,0,0,0,0,0, +17,52,104,168,0,0,15,255,255,220,167,0,0,11,226,16,0,0,0,0,10,244,68,68,68,48,0,10,255,255,255,255, +176,0,10,192,0,15,80,0,0,10,192,0,15,80,0,0,10,192,0,15,80,0,14,239,254,238,239,254,232,7,119,136, +119,120,119,116,0,2,205,16,111,129,0,1,126,194,0,5,238,96,10,231,0,0,0,25,226,1,16,0,0,0,0,16, +0,13,176,0,11,192,0,2,47,226,34,46,242,32,14,255,255,255,255,255,240,0,13,176,0,11,192,0,0,13,255,255, +255,192,0,0,13,210,34,45,192,0,0,13,210,34,45,192,0,0,13,255,255,255,192,0,0,13,176,0,11,192,0,95, +255,255,255,255,255,245,38,102,153,102,152,102,98,0,91,250,0,175,181,0,62,233,48,0,2,142,209,3,0,0,0,0, +1,32,0,95,255,255,255,247,0,0,95,17,17,17,247,0,0,95,255,255,255,247,0,0,95,0,0,0,247,0,0,95, +255,255,255,247,0,0,95,0,0,0,247,0,0,95,255,255,255,247,0,0,95,0,0,0,247,0,143,255,255,255,255,255, +249,54,104,214,102,142,134,99,1,126,211,0,59,250,48,94,214,0,0,0,76,246,5,0,0,0,0,0,64,0,0,47, +2,240,0,0,1,34,79,36,242,33,0,6,255,255,255,255,252,0,6,240,63,3,240,188,0,6,240,47,2,240,188,0, +6,255,255,255,255,252,0,6,242,95,37,242,236,0,6,240,47,2,240,188,0,159,251,239,190,251,255,177,138,170,202,170, +187,170,161,0,24,246,0,174,112,0,40,238,96,0,7,236,48,60,97,0,0,0,43,48,0,3,128,0,8,80,0,1, +18,246,17,95,81,16,9,255,255,255,255,255,160,0,0,1,232,0,0,0,0,223,255,255,255,254,0,1,17,63,177,17, +17,16,63,255,255,255,255,255,242,1,126,244,0,79,180,0,63,249,247,0,157,159,227,5,17,245,0,156,1,80,0,7, +241,0,156,0,0,1,143,128,0,156,0,0,3,231,0,0,156,0,0,0,0,0,0,0,0,0,0,2,16,0,0,48, +0,0,12,192,0,7,243,0,6,104,249,102,159,182,96,15,255,255,255,255,255,241,0,0,47,2,240,0,0,0,239,255, +255,255,255,0,0,0,47,19,240,63,0,63,255,255,255,255,255,246,2,34,79,36,242,79,33,0,0,47,19,240,63,0, +1,255,255,255,255,255,0,0,24,255,2,253,145,0,22,219,63,2,241,174,130,26,80,47,2,240,3,145,0,0,1,245, +0,0,0,0,0,1,245,0,0,0,2,34,35,247,34,36,16,15,255,255,255,255,255,112,15,32,2,243,0,15,112,15, +32,5,242,0,15,112,15,32,11,253,32,15,112,15,32,95,75,210,15,112,15,37,233,1,189,47,112,15,127,128,0,28, +127,112,15,35,0,0,1,15,112,15,32,0,0,18,63,112,15,32,0,0,62,236,32,0,191,255,151,255,255,128,0,191, +46,151,243,47,128,0,188,12,151,241,15,128,0,188,12,151,241,15,128,18,222,46,185,243,47,178,79,255,255,255,255,255, +255,0,203,12,152,240,15,128,0,232,12,153,208,15,128,2,246,12,155,176,15,128,6,241,12,158,112,15,128,13,176,44, +207,34,47,128,28,49,238,137,8,254,48,0,0,0,0,0,16,0,6,255,255,255,255,255,246,0,0,0,47,0,0,0, +0,34,34,95,34,66,0,0,239,255,255,255,253,0,0,235,0,47,0,188,0,0,239,255,255,255,252,0,0,237,34,79, +34,220,0,107,255,187,239,187,255,181,108,255,204,204,204,255,198,0,235,0,0,0,188,0,0,235,0,0,18,204,0,0, +235,0,0,95,231,0,0,17,0,0,1,0,0,2,255,255,255,255,255,176,2,241,85,85,85,42,176,2,241,102,102,102, +58,176,2,243,238,238,238,106,176,2,208,0,0,0,8,144,0,74,170,170,170,168,0,0,111,68,68,68,220,0,0,111, +238,238,238,252,0,0,111,0,0,0,220,0,0,111,238,238,238,252,0,0,111,0,0,0,220,0,0,111,255,255,255,252, +0,0,1,0,0,0,0,0,15,255,255,255,255,255,240,15,67,180,34,34,39,240,13,36,243,34,34,37,208,0,6,255, +255,255,240,0,0,10,160,0,0,0,0,0,13,162,34,34,50,0,0,31,255,255,255,249,0,0,0,0,0,0,248,0, +12,255,255,255,226,246,0,2,34,34,34,37,243,0,0,0,0,34,43,224,0,0,0,0,127,254,80,0,0,0,0,0, +0,0,0,0,0,0,133,0,0,0,0,0,0,230,0,0,0,15,255,255,255,255,255,80,15,66,47,242,34,47,80,14, +32,79,242,0,14,80,0,2,218,216,0,99,0,0,47,209,126,24,247,0,23,239,64,31,254,80,0,158,143,32,7,244, +0,0,2,15,32,0,205,32,0,0,15,33,99,29,211,0,0,79,255,212,2,223,128,0,159,131,0,0,24,80,0,0, +0,0,0,0,0,0,0,0,1,245,0,0,74,16,0,1,245,0,0,77,211,0,1,247,0,0,1,197,34,65,253,5, +193,0,5,255,249,255,62,128,0,0,2,246,255,248,0,0,65,7,242,255,208,0,0,215,13,177,247,225,0,7,225,111, +65,245,171,0,46,114,234,1,245,46,161,125,12,193,1,245,4,231,1,2,17,86,244,0,32,0,0,0,190,177,0,0, +0,0,0,0,245,0,0,28,64,0,0,245,0,0,9,245,18,34,248,34,33,0,154,111,255,255,255,248,0,0,111,0, +245,0,248,0,0,111,0,245,0,248,0,36,111,0,245,0,248,0,172,111,255,255,255,248,3,245,111,85,250,85,248,11, +192,18,0,245,0,16,111,64,0,0,245,0,0,22,0,0,0,245,0,0,0,0,0,0,245,0,0,5,0,0,4,241, +0,0,29,144,0,4,241,0,0,3,247,15,255,255,255,32,0,119,2,39,244,47,32,0,0,0,4,241,15,32,0,0, +0,5,241,15,32,0,0,123,191,253,191,229,0,88,106,175,255,170,165,0,201,0,13,207,32,0,5,242,0,111,44,160, +0,13,144,4,232,4,248,0,79,33,143,160,0,127,179,2,1,199,0,0,5,194,0,0,0,0,0,0,0,9,80,15, +255,255,255,80,7,247,15,66,34,47,80,0,108,15,32,0,15,80,0,0,15,32,0,15,80,0,0,15,203,187,191,80, +0,41,15,255,255,255,80,0,174,0,184,15,32,0,4,246,0,214,15,32,0,12,192,2,243,15,32,16,95,48,9,208, +15,32,196,4,0,143,80,15,83,227,0,6,229,0,10,255,192,0,0,16,0,0,0,0,2,0,0,149,73,0,0,47, +80,2,244,47,80,0,10,209,8,247,126,167,112,2,247,31,254,239,254,225,0,132,159,176,15,32,0,0,6,255,226,47, +82,32,0,11,126,255,255,255,192,0,54,14,176,15,32,0,0,171,14,255,255,255,176,2,245,14,226,47,82,32,9,224, +14,176,15,32,0,47,112,14,255,255,255,244,4,16,14,244,68,68,65,0,0,0,0,0,0,0,0,0,0,0,0,13, +123,16,11,96,0,0,0,198,188,0,109,1,66,34,46,131,161,0,229,143,255,255,255,255,96,9,152,241,0,10,128,0, +0,16,143,159,253,153,30,16,0,8,241,17,24,166,176,0,50,159,127,254,108,198,0,10,154,231,176,227,253,0,1,243, +204,124,14,47,128,0,124,31,135,255,236,247,85,13,102,242,88,44,182,236,112,16,120,0,6,128,11,209,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,29,82,53,137,187,16,0,157,77,205,247,82,0,7,246,0,2,240,0,0, +143,243,255,255,255,255,208,85,243,34,36,242,34,32,0,243,0,2,240,0,0,0,243,127,255,255,255,160,0,130,53,85, +85,68,48,0,11,255,255,255,64,0,0,8,178,34,143,64,0,0,29,96,0,111,64,129,5,220,0,0,111,99,241,110, +129,0,0,46,255,160,1,0,0,0,0,0,0,0,0,0,127,0,0,0,0,134,0,127,0,42,32,0,201,0,127,0, +63,64,0,201,0,127,0,63,64,0,201,0,127,0,63,64,0,207,255,255,255,255,64,0,34,34,159,34,34,16,6,208, +0,127,0,8,160,7,240,0,127,0,10,192,7,240,0,127,0,10,192,7,240,0,127,0,10,192,7,255,255,255,255,255, +208,3,102,102,102,102,111,192,0,0,0,111,0,0,0,0,0,0,111,0,0,0,0,239,255,255,255,255,128,0,34,34, +143,34,34,16,0,0,0,111,0,0,0,2,34,34,143,34,34,33,14,255,255,255,255,255,247,0,49,0,111,0,3,16, +0,246,0,111,0,15,80,0,246,0,111,0,15,80,0,246,0,111,0,15,80,0,254,221,255,221,223,80,0,119,119,119, +119,127,80,0,0,0,0,0,0,0,1,255,255,255,255,176,0,0,34,34,40,253,16,0,14,32,0,253,65,11,160,15, +124,32,242,12,139,176,15,42,209,245,171,11,176,15,32,87,255,240,11,176,15,37,218,247,232,11,176,15,205,80,242,61, +139,176,15,81,106,242,2,75,176,15,32,56,64,0,11,176,15,255,255,255,255,255,176,2,34,34,34,34,46,176,5,85, +85,85,85,89,48,15,255,255,255,255,255,144,0,0,15,128,0,14,128,0,0,31,96,0,15,128,0,0,63,64,0,15, +112,0,0,95,32,0,31,96,0,0,157,0,0,47,96,0,1,232,0,0,63,80,0,9,242,0,0,79,48,0,127,128, +0,0,127,32,25,250,0,4,102,221,0,78,112,0,5,255,212,0,1,0,0,0,0,0,0,4,102,102,102,102,106,64, +8,238,238,255,238,239,144,0,0,0,231,0,14,128,0,86,1,246,0,15,112,0,169,4,243,0,15,112,1,244,7,240, +0,31,96,11,192,12,160,0,47,80,7,32,95,64,0,63,64,0,1,219,0,0,79,48,0,44,226,0,0,127,16,7, +237,48,3,102,221,0,10,145,0,3,255,212,0,0,0,0,0,0,0,0,0,0,49,0,19,0,0,0,1,233,0,127, +32,0,0,8,242,0,13,176,0,0,63,128,0,3,248,0,1,220,0,0,0,127,112,45,248,102,102,102,173,247,26,142, +239,254,238,250,130,0,0,15,96,1,249,0,0,0,79,48,2,248,0,0,0,173,0,3,247,0,0,6,245,0,5,245, +0,2,159,128,19,42,243,0,12,213,0,14,255,144,0,1,0,0,0,0,0,0,0,242,2,153,153,158,112,0,242,3, +205,252,207,176,0,242,36,2,240,11,176,72,255,253,2,240,11,160,139,247,16,4,224,12,160,0,242,0,5,192,12,144, +0,242,0,8,160,13,128,0,242,74,13,96,14,128,2,255,233,79,32,15,112,10,248,16,202,0,31,80,1,16,27,226, +18,111,48,0,0,109,48,63,249,0,0,0,0,0,0,0,0,0,243,145,0,0,15,32,0,228,204,0,0,15,32,0, +212,29,80,47,15,32,0,197,3,52,47,15,32,121,255,239,254,63,15,32,154,255,84,64,47,15,32,0,107,9,192,47, +15,32,0,62,63,64,47,15,32,0,15,249,0,47,15,32,0,31,240,16,43,15,32,2,207,224,124,0,15,32,110,161, +185,189,2,47,32,54,0,26,213,7,251,0,0,0,16,0,0,0,0,0,7,192,0,0,2,240,0,3,244,0,0,2, +240,22,102,233,102,63,34,240,44,204,207,252,63,34,240,0,0,9,176,63,34,240,5,193,12,128,63,34,240,1,188,63, +48,63,34,240,0,28,254,0,63,34,240,0,2,255,0,63,34,240,0,9,255,144,43,18,240,0,111,68,245,0,2,240, +8,246,0,97,1,37,240,26,80,0,0,3,254,128,0,0,0,0,0,2,240,15,255,255,255,80,2,240,15,66,36,63, +95,34,240,15,100,12,111,95,34,240,15,109,47,31,95,34,240,15,43,204,15,95,34,240,15,35,247,15,95,34,240,15, +34,248,15,95,34,240,15,40,222,31,95,34,240,15,62,60,111,94,34,240,15,186,5,79,80,2,240,15,82,2,47,82, +37,240,15,32,12,252,40,254,128,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,10,224,0,0,15,32,0,47, +246,0,25,15,32,0,202,111,96,47,15,32,9,226,8,246,47,15,32,159,64,0,174,63,15,32,73,255,255,194,47,15, +32,5,242,46,176,47,15,32,5,240,13,160,47,15,32,5,241,47,128,47,15,32,5,245,253,48,43,15,32,5,240,0, +137,0,15,32,4,243,34,205,2,63,32,1,207,255,230,11,251,0,0,0,0,0,0,0,0,0,102,0,0,0,0,0, +0,110,33,170,170,170,244,18,60,82,221,255,221,246,79,255,248,1,244,0,229,0,4,242,2,243,0,245,0,30,148,4, +242,0,244,0,191,141,38,240,1,243,9,255,244,9,192,1,243,111,159,141,12,144,2,242,3,95,5,63,64,4,241,0, +95,0,188,0,6,240,0,95,8,244,18,43,192,0,95,27,112,63,253,48,0,1,0,0,0,0,0,0,0,0,0,0, +0,243,7,255,245,255,240,16,243,7,247,165,246,192,241,243,7,196,165,212,176,241,243,7,196,165,212,176,241,243,8,230, +182,229,192,241,243,79,255,255,255,245,241,243,8,230,183,229,192,241,243,7,196,166,196,176,241,243,8,180,167,164,176,241, +243,10,148,170,132,176,0,243,14,102,173,101,160,34,242,44,63,140,63,112,127,176,0,0,0,0,0,0,0,1,3,242, +1,0,2,240,12,115,242,109,0,2,240,6,211,242,215,79,34,240,1,231,247,225,79,34,240,7,155,250,181,79,34,240, +10,190,252,182,79,34,240,0,4,241,0,79,34,240,19,56,243,51,79,34,240,95,255,255,255,79,34,240,1,29,161,17, +60,34,240,0,111,48,0,0,2,240,4,233,0,0,4,87,240,9,160,0,0,7,254,128,0,0,0,0,0,0,0,0, +0,55,161,0,1,241,6,175,253,130,0,1,241,10,152,240,0,47,1,241,0,2,240,0,47,1,241,7,138,248,132,47, +1,241,11,191,251,182,47,1,241,0,15,241,0,47,1,241,0,95,253,48,47,1,241,1,231,247,228,47,1,241,11,178, +240,130,44,1,241,29,34,240,0,0,1,241,1,2,240,0,1,36,241,0,2,240,0,1,254,160,0,0,0,0,0,0, +0,0,0,0,0,0,15,32,15,255,255,240,0,15,32,15,66,36,240,242,15,32,15,32,2,240,242,15,32,15,169,154, +240,242,15,32,8,138,152,128,242,15,32,1,63,81,16,242,15,32,79,255,255,243,242,15,32,19,143,67,242,242,15,32, +0,156,0,241,194,15,32,1,231,2,240,0,15,32,27,209,38,208,37,95,32,91,17,254,96,47,234,0,0,0,0,0, +0,0,0,0,0,0,0,0,2,240,31,255,255,255,55,34,240,2,95,102,82,47,66,240,0,186,7,209,31,66,240,7, +249,154,249,31,66,240,10,250,135,158,47,66,240,0,0,227,0,31,66,240,6,136,251,135,31,66,240,7,171,253,169,31, +66,240,0,0,243,0,31,66,240,0,1,249,155,16,2,240,26,223,254,150,1,36,240,9,99,0,0,2,254,128,0,0, +32,0,0,0,0,5,130,240,0,0,2,240,10,164,241,17,12,34,240,15,255,255,251,15,34,240,110,36,242,33,15,34, +240,92,156,249,153,47,34,240,73,156,249,153,47,34,240,3,53,243,82,15,34,240,15,255,255,251,15,34,240,15,51,240, +203,15,34,240,15,34,240,187,0,2,240,15,34,240,187,0,2,240,15,34,244,248,3,87,240,1,2,240,16,5,254,128, +0,0,0,0,0,0,0,0,0,0,0,0,2,241,9,255,255,255,32,2,241,9,226,34,79,47,34,241,9,246,102,127, +47,34,241,9,253,239,221,31,34,241,9,192,47,0,15,34,241,9,218,207,175,47,34,241,10,222,159,143,63,34,241,11, +189,47,13,63,34,241,13,157,47,13,63,34,241,47,93,47,29,48,2,241,126,45,47,157,18,86,240,37,1,47,0,1, +254,144,0,2,240,0,0,2,240,0,2,240,0,0,2,240,62,239,254,238,47,2,240,20,71,244,68,47,2,240,8,139, +248,230,47,2,240,15,171,249,251,47,2,240,15,34,240,187,47,2,240,15,37,245,234,47,2,240,5,30,245,81,47,2, +240,0,157,254,129,44,2,240,8,211,242,202,0,2,240,92,34,240,1,1,37,240,17,2,240,0,3,254,128,0,0,0, +0,0,0,0,0,0,32,0,0,0,0,0,1,229,0,0,0,242,0,0,171,0,0,0,242,13,222,255,221,167,192,242, +5,94,246,85,71,192,242,0,94,48,151,7,192,242,6,251,141,243,7,192,242,9,233,191,114,7,192,242,0,4,232,30, +119,192,242,1,143,113,204,7,192,242,9,212,44,241,6,160,242,1,21,238,247,0,0,242,4,207,128,62,144,35,242,9, +162,0,2,32,239,176,0,0,0,0,0,0,0,0,0,0,0,0,2,240,0,191,255,208,0,2,240,0,189,45,208,15, +34,240,0,233,11,208,15,34,240,8,243,10,231,47,34,240,29,97,163,136,63,34,240,21,86,245,85,31,34,240,63,255, +255,255,79,34,240,0,14,251,16,15,34,240,0,156,251,193,12,34,240,8,226,224,187,0,2,240,94,49,224,22,1,37, +240,1,1,224,0,4,254,128,0,1,0,0,0,16,0,0,29,128,0,4,245,0,0,5,242,0,29,176,0,15,255,255, +255,255,255,249,2,34,34,34,34,34,33,1,51,52,48,0,6,96,7,255,255,208,154,10,176,7,192,7,208,154,10,176, +7,253,223,208,154,10,176,7,226,41,208,154,10,176,7,250,175,208,154,10,176,7,245,92,208,120,10,176,7,192,40,208, +3,75,160,7,192,206,112,7,253,80,0,0,64,0,0,0,0,0,5,242,0,0,2,240,0,29,252,16,0,2,240,0, +157,27,193,15,34,240,6,227,0,188,31,34,240,111,184,136,140,111,34,240,102,105,153,146,15,34,240,0,3,80,54,15, +34,240,9,100,208,154,15,34,240,6,177,242,228,15,34,240,1,224,183,208,12,34,240,0,48,30,200,16,2,240,9,206, +255,184,18,37,240,7,100,16,0,6,254,128,0,0,0,0,0,2,240,8,255,255,243,0,2,240,1,34,34,243,15,34, +240,3,238,239,242,15,34,240,0,34,36,242,15,34,240,77,221,255,253,111,34,240,23,69,246,86,47,34,240,12,144,242, +140,15,34,240,2,227,249,227,15,34,240,0,126,255,241,12,34,240,60,213,243,173,32,2,240,39,17,242,6,17,37,240, +0,159,176,0,4,254,128,0,19,87,166,0,2,240,30,254,252,132,0,2,240,18,34,244,34,31,34,240,127,255,255,255, +175,34,240,0,117,245,112,15,34,240,59,247,246,220,63,34,240,20,247,246,244,15,34,240,58,247,246,182,127,34,240,37, +187,246,188,95,34,240,0,46,255,128,12,34,240,3,230,244,204,32,2,240,94,112,242,24,2,37,240,20,0,226,0,8, +254,128,0,0,0,0,4,80,0,6,255,255,88,141,248,112,6,176,11,87,216,124,144,6,255,255,134,253,127,146,7,160, +0,95,255,255,245,10,255,255,113,24,209,16,47,199,9,140,207,252,193,24,143,255,112,8,192,0,2,85,85,85,86,119, +48,4,204,207,253,204,207,144,0,0,28,176,0,10,112,2,89,236,16,33,46,64,11,234,80,0,191,251,0,0,0,0, +0,0,0,0,0,0,6,240,0,0,0,0,0,6,240,0,0,0,0,0,6,240,0,0,0,13,255,255,255,255,255,192, +4,85,93,245,85,95,192,0,0,10,192,0,12,176,0,0,13,144,0,13,160,0,0,47,80,0,14,144,0,0,158,16, +0,31,112,0,4,247,0,0,47,96,0,46,192,0,0,95,48,5,236,16,1,50,190,0,28,161,0,2,255,229,0,1, +0,0,0,0,0,0,0,0,15,112,0,0,0,0,0,15,112,0,0,0,2,34,47,146,36,16,0,15,255,255,255,255, +144,0,0,0,31,80,14,128,0,1,195,79,48,14,174,48,6,225,111,16,15,124,144,13,144,189,0,31,103,224,126,34, +247,0,47,82,244,20,11,225,0,79,64,146,0,143,96,0,111,32,0,25,249,3,101,206,0,0,95,128,3,255,213,0, +0,2,0,0,0,0,0,0,0,0,0,0,243,0,0,4,68,67,0,243,0,0,44,239,203,0,243,0,0,0,47,3, +255,255,255,247,0,47,0,36,243,34,246,0,47,0,2,240,0,246,0,47,0,4,224,0,245,0,47,2,8,160,1,245, +0,111,222,11,112,2,244,62,255,148,47,48,3,242,24,64,0,187,0,6,240,0,0,26,226,18,43,192,0,0,78,64, +95,253,64,0,0,0,0,0,0,0,0,47,16,0,0,0,0,0,47,0,0,36,68,65,2,95,50,66,159,255,246,15, +255,255,251,156,51,246,0,62,0,234,155,0,246,0,77,0,234,155,0,246,0,92,0,233,155,0,246,0,123,0,249,155, +0,246,0,169,0,249,155,0,246,0,230,1,248,155,0,246,4,242,2,247,158,34,246,12,177,39,245,159,255,246,46,49, +255,193,155,0,246,1,0,17,0,17,0,0,0,0,6,32,0,0,0,0,0,159,66,34,35,0,0,9,255,255,255,255, +80,3,207,243,0,24,248,0,5,145,110,186,221,80,0,1,70,159,255,250,117,66,47,235,149,65,55,172,214,1,0,1, +245,0,0,0,4,255,255,255,255,255,144,0,34,46,178,34,95,96,0,1,174,16,0,111,64,2,125,211,2,34,206,0, +12,215,16,8,255,229,0,1,0,0,0,0,0,0,0,0,0,0,15,48,0,11,255,255,176,15,48,0,2,34,34,32, +15,32,0,0,0,0,9,207,236,245,2,34,34,42,239,237,246,63,255,255,240,47,0,245,0,125,0,0,78,0,245,0, +185,12,32,108,1,244,1,244,10,128,153,2,243,6,228,127,241,229,3,242,15,254,184,248,225,4,241,11,64,0,45,146, +41,208,0,0,0,76,24,254,96,0,0,0,0,0,0,0,0,0,0,0,47,16,0,9,255,255,96,47,0,0,9,194, +47,96,47,0,0,9,226,47,138,207,170,244,9,255,255,137,207,153,246,9,176,15,96,93,0,246,9,226,47,96,123,0, +245,9,255,255,96,168,1,245,9,176,15,96,213,1,244,9,177,79,245,241,2,243,95,255,252,157,144,4,242,90,99,1, +189,18,40,240,0,0,4,211,10,254,112,0,0,0,0,0,0,0,0,79,0,2,242,0,0,2,127,34,36,243,50,0, +47,255,252,223,255,255,0,0,79,36,72,192,156,0,60,255,234,159,240,140,0,21,127,0,111,252,141,147,10,221,4,228, +22,46,225,3,49,4,224,0,1,16,15,255,255,255,255,255,0,2,34,63,146,34,172,0,0,1,189,16,0,170,0,3, +142,194,2,34,231,0,63,198,0,7,255,193,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,247,12,16,31, +16,0,0,247,12,32,31,16,0,95,255,255,247,31,16,0,0,249,93,22,143,122,80,1,121,247,38,159,127,192,15,255, +255,241,62,10,176,15,171,249,241,93,10,176,15,34,241,241,122,11,160,15,255,255,241,184,12,160,2,36,242,34,244,12, +144,47,255,255,255,208,14,128,0,2,240,79,98,79,96,0,2,240,137,9,252,16,0,0,16,0,0,0,0,0,35,87, +112,15,48,0,31,255,249,80,15,32,0,28,189,251,180,15,32,0,29,223,253,222,223,253,246,6,104,246,106,255,254,247, +31,88,245,242,47,0,230,31,207,252,242,78,0,230,31,104,246,242,107,0,245,6,104,246,97,152,0,245,47,255,255,243, +228,1,244,0,2,242,73,208,3,243,43,207,255,255,82,40,240,24,101,49,183,7,254,112,0,0,0,0,0,0,0,0, +3,16,0,0,0,0,0,14,128,0,0,0,0,0,79,82,34,34,36,32,0,207,255,255,255,255,240,5,243,31,96,185, +10,224,46,160,110,16,230,11,208,173,16,201,4,242,11,192,2,7,242,9,192,13,176,0,46,128,30,96,14,160,1,204, +0,141,0,15,144,28,210,3,246,0,63,112,5,32,62,160,50,159,48,0,0,107,16,191,232,0,0,0,0,0,0,0, +0,0,2,194,0,0,0,0,0,10,208,0,0,0,0,0,79,255,255,255,255,128,1,220,34,34,34,47,128,28,230,34, +34,0,15,112,61,143,255,255,32,31,112,0,95,0,15,32,47,96,0,95,34,47,32,63,64,0,95,255,255,66,143,32, +0,95,0,0,95,249,0,0,95,0,0,0,0,134,0,79,82,34,34,36,232,0,9,239,255,255,255,178,0,2,32,0, +0,0,0,0,12,176,0,0,0,0,0,63,114,34,34,36,32,0,191,255,255,255,255,208,5,244,13,128,201,10,208,79, +164,63,48,230,11,192,91,78,255,19,242,12,176,0,3,255,239,208,13,176,0,12,193,143,242,14,160,0,142,32,127,220, +15,128,9,245,2,231,2,47,96,25,80,45,176,34,143,48,0,0,91,16,191,233,0,0,0,0,0,0,0,0,0,0, +32,0,0,0,0,0,3,244,15,96,0,0,0,10,208,15,96,0,0,0,63,112,15,96,11,144,0,239,32,15,96,127, +96,10,255,32,15,101,249,0,95,191,32,15,207,176,0,8,79,32,15,251,0,0,0,79,33,175,240,0,0,0,79,109, +239,96,0,16,0,79,57,47,96,0,210,0,79,32,15,96,1,241,0,79,32,14,146,39,224,0,79,32,8,239,254,96, +0,0,0,0,0,0,0,0,0,187,4,242,0,0,0,0,187,4,242,0,0,0,0,187,4,242,1,0,2,34,235,4, +242,28,128,63,255,251,4,246,237,48,0,0,187,4,255,129,0,0,0,187,4,244,0,0,0,0,187,4,242,0,0,0, +0,251,4,242,0,0,2,125,253,4,242,0,193,127,233,219,4,242,1,242,38,16,187,3,245,38,224,0,0,187,0,191, +255,112,0,0,0,0,242,0,0,15,238,238,240,242,0,0,15,117,87,240,242,3,32,15,117,87,240,243,143,144,15,238, +238,240,255,163,0,35,51,51,50,244,0,0,191,255,255,248,242,0,0,2,25,192,0,242,0,16,13,73,244,65,242,0, +225,15,89,255,244,245,37,240,63,201,192,0,159,255,128,140,175,244,50,34,34,33,181,5,173,239,255,255,225,16,0,0, +0,0,0,0,15,255,255,255,255,255,144,15,66,34,34,35,50,16,15,33,64,0,11,176,0,15,38,247,0,111,48,0, +15,32,94,147,231,0,0,15,32,3,255,176,0,0,15,32,3,255,209,0,0,15,32,78,178,221,32,0,15,56,250,16, +29,210,0,15,58,112,0,2,177,0,15,66,34,34,34,34,32,15,255,255,255,255,255,240,15,255,255,255,255,255,160,15, +66,74,50,34,34,32,15,32,191,102,102,100,0,15,38,255,207,236,200,0,15,58,128,15,32,0,0,15,50,34,63,66, +34,16,15,79,255,255,255,255,64,15,32,0,143,161,0,0,15,32,7,245,189,48,0,15,39,221,64,8,228,0,15,72, +147,34,34,149,32,15,255,255,255,255,255,240,0,0,0,0,3,96,0,0,35,87,156,239,213,0,10,255,220,251,82,0, +0,1,16,0,246,0,0,0,0,0,0,246,0,0,0,18,34,34,248,34,34,32,159,255,255,255,255,255,241,0,0,0, +246,0,0,0,0,0,0,246,0,0,0,0,0,0,246,0,0,0,0,0,0,246,0,0,0,0,0,0,246,0,0,0, +0,0,0,246,0,0,0,0,0,2,146,15,80,0,0,5,191,213,15,80,0,10,239,245,0,15,80,0,7,67,240,0, +15,80,0,0,2,240,0,15,80,0,18,37,242,34,47,130,33,79,255,255,255,255,255,245,0,4,224,0,15,80,0,0, +7,176,0,15,80,0,0,12,112,0,15,80,0,0,127,32,0,15,80,0,24,246,0,0,15,80,0,28,96,0,0,15, +80,0,0,0,0,0,0,0,0,1,113,0,246,0,100,0,1,232,0,246,1,232,0,0,126,16,246,7,225,0,0,31, +80,246,13,112,0,2,36,34,248,35,50,16,10,255,255,255,255,255,64,0,0,0,246,0,0,0,1,17,17,247,17,17, +16,143,255,255,255,255,255,241,36,68,68,250,68,68,64,0,0,0,246,0,0,0,0,0,0,246,0,0,0,0,0,0, +246,0,0,0,0,0,16,0,0,0,0,0,5,242,14,96,1,0,0,47,160,14,97,159,64,2,239,48,15,255,214,0, +78,223,56,223,245,0,0,58,31,58,127,96,3,96,0,15,32,14,130,40,208,0,15,32,8,255,255,96,0,5,16,164, +0,0,0,17,17,17,247,17,17,16,159,255,255,255,255,255,240,17,17,17,248,17,17,16,0,0,0,246,0,0,0,0, +0,0,246,0,0,0,0,242,0,14,32,0,0,0,242,0,15,32,0,0,0,242,0,15,32,0,0,18,245,110,239,254, +248,0,127,255,183,143,135,249,0,0,242,19,47,0,201,48,0,242,91,93,0,205,208,0,242,151,122,0,216,242,0,243, +226,198,0,230,213,0,243,83,241,0,245,117,0,242,12,144,1,244,0,0,242,141,19,39,242,0,0,244,195,11,255,128, +0,0,0,0,0,0,0,0,0,8,96,0,8,144,0,0,6,242,0,63,128,0,0,136,250,136,255,136,16,0,253,204, +255,205,223,16,0,243,17,246,17,95,16,0,255,255,255,255,255,16,0,242,0,246,0,79,16,0,255,255,255,255,255,16, +0,34,34,247,34,34,0,18,34,34,248,34,34,32,143,255,255,255,255,255,240,0,0,0,246,0,0,0,0,0,0,246, +0,0,0,0,0,0,171,0,0,0,0,34,34,205,34,34,0,0,255,255,255,255,255,48,0,0,0,171,0,0,0,14, +255,255,255,255,255,224,5,88,166,89,117,95,144,0,20,205,62,96,94,16,1,220,85,31,64,2,0,2,39,146,111,66, +34,32,47,255,255,255,255,255,242,0,0,5,246,81,0,0,0,3,159,131,223,165,0,10,223,180,0,3,158,226,5,82, +0,0,0,1,80,0,0,0,111,0,0,0,2,34,34,159,50,34,33,13,255,255,255,255,255,247,0,0,0,111,0,0, +0,2,255,255,255,255,255,224,2,244,91,68,120,79,224,2,240,13,96,167,11,224,2,240,140,168,248,59,224,2,240,187, +255,187,75,224,2,240,17,127,17,27,224,2,244,255,255,255,155,224,2,240,0,109,1,28,224,2,240,0,109,9,254,144, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,242,0,0,242,151,0,0,242,0,0,243,77,128,0,242,175,255, +255,255,242,18,245,35,136,250,136,80,175,255,167,213,247,93,176,0,242,7,249,252,159,192,0,242,7,253,255,223,192,0, +242,6,160,194,25,144,0,242,18,34,34,244,32,0,242,207,255,255,255,244,0,242,0,181,0,242,0,0,242,0,44,34, +242,0,0,242,0,0,190,192,0,0,0,15,128,0,0,0,0,0,15,128,0,0,0,0,0,15,128,0,0,0,0,0, +15,128,0,0,0,0,0,15,183,16,0,0,0,0,15,255,232,16,0,0,0,15,130,159,231,0,0,0,15,128,3,191, +128,0,0,15,128,0,5,16,0,0,15,128,0,0,0,0,0,15,128,0,0,0,0,0,15,128,0,0,0,0,0,15, +128,0,0,0,0,0,0,140,0,0,0,0,0,0,140,0,0,0,0,0,0,143,34,34,33,0,0,0,143,255,255,245, +0,0,0,140,0,0,0,0,0,0,140,0,0,0,0,155,187,255,187,187,112,0,206,170,170,170,175,144,0,203,0,0, +0,15,144,0,203,0,0,0,15,144,0,203,0,0,0,15,144,0,207,255,255,255,255,144,0,206,34,34,34,47,144,0, +17,0,0,0,0,0,0,0,0,245,0,0,0,0,0,0,245,0,0,0,0,0,0,255,255,254,0,0,0,0,248,34, +34,0,0,0,0,245,0,0,0,77,221,221,255,221,221,212,75,187,187,255,187,187,180,0,0,0,246,0,0,0,0,0, +0,250,199,32,0,0,0,0,247,125,250,48,0,0,0,246,0,75,80,0,0,0,246,0,0,0,0,0,0,246,0,0, +0,0,0,0,156,0,0,0,0,0,0,158,34,34,33,0,0,0,159,255,255,244,0,0,0,156,0,0,0,0,143,255, +255,255,249,0,0,143,102,102,102,217,0,0,141,0,0,0,201,0,0,159,255,255,255,249,0,0,188,34,34,34,200,0, +0,231,0,0,0,0,0,5,242,0,0,0,0,0,29,160,0,0,0,0,0,25,32,0,0,0,0,0,0,5,240,0, +62,48,0,2,39,243,33,63,48,0,13,255,255,246,63,48,0,0,5,240,0,63,48,0,0,5,240,0,63,128,0,95, +255,255,253,63,250,0,20,70,180,67,63,110,144,2,39,243,33,63,53,243,14,255,255,247,63,48,48,0,5,240,0,63, +48,0,0,5,243,70,63,48,0,93,239,255,236,63,48,0,38,83,32,0,63,48,0,0,0,54,0,0,0,0,4,172, +252,50,255,255,144,13,244,16,2,242,46,144,9,192,0,2,240,12,144,9,192,0,2,240,12,144,9,255,255,114,240,12, +144,9,226,34,18,240,12,144,9,192,0,2,240,12,144,9,192,0,18,240,12,144,11,247,190,114,241,77,144,47,253,150, +18,241,254,64,8,32,0,2,240,16,0,0,0,0,2,240,0,0,0,2,211,0,0,0,0,0,10,255,255,248,0,0, +0,79,98,38,245,0,0,2,252,34,46,226,34,33,45,255,255,255,255,255,245,40,171,19,34,34,49,0,0,171,111,255, +255,250,0,0,186,111,0,1,249,0,0,201,111,0,3,247,0,1,246,111,1,255,226,16,6,241,111,0,18,0,152,29, +160,95,66,34,35,214,77,32,27,239,255,255,177,0,0,0,0,0,0,0,8,255,255,249,255,255,245,7,242,34,249,244, +34,246,7,242,34,249,242,0,246,7,255,255,249,242,0,246,7,208,0,249,242,0,246,7,242,34,249,242,0,246,8,255, +255,249,242,0,246,7,208,23,0,242,0,246,7,208,47,144,243,223,226,9,250,239,242,242,18,0,15,251,97,184,242,0, +0,5,16,0,16,242,0,0,8,255,255,255,255,255,224,8,243,34,34,34,34,32,8,246,170,170,170,170,160,8,249,255, +255,255,255,240,8,241,4,241,0,0,0,9,240,5,243,34,66,0,10,224,8,255,255,252,0,11,208,11,144,0,203,0, +14,160,30,96,0,233,0,47,96,142,16,1,247,0,142,21,245,1,38,244,0,168,11,112,2,255,176,0,0,0,0,0, +0,0,0,9,255,255,255,255,255,242,9,242,34,34,34,34,32,9,224,0,14,80,0,0,9,224,0,15,80,0,0,9, +226,34,47,130,34,16,9,235,255,255,255,255,96,10,208,0,15,80,16,0,11,176,0,15,87,211,0,13,144,0,15,80, +141,0,31,96,0,15,80,2,0,127,156,204,207,252,204,192,105,71,119,119,119,119,112,0,0,0,0,0,0,0,8,255, +255,255,255,255,243,8,243,34,34,34,34,32,8,241,0,5,225,146,0,8,241,0,6,224,158,32,8,242,34,42,242,39, +32,8,247,255,255,255,255,242,9,240,0,13,244,0,0,10,208,0,63,187,0,0,12,176,0,172,46,80,0,15,112,6, +244,7,227,0,95,48,127,112,0,174,80,171,11,230,0,0,9,243,2,2,32,0,0,0,32,8,255,255,255,255,255,244, +8,243,34,44,178,34,33,8,241,204,239,252,204,16,8,241,244,17,17,95,32,8,241,254,238,238,255,32,8,240,242,0, +0,79,32,10,224,245,51,51,111,32,11,192,204,207,252,204,16,14,144,40,18,241,129,0,63,81,219,2,240,189,16,158, +29,194,36,240,28,209,53,3,21,255,160,1,80,0,0,0,0,0,0,0,7,255,255,255,255,255,245,7,246,102,102,102, +102,97,7,247,153,159,249,153,144,7,241,220,207,220,204,0,7,241,248,102,102,142,0,8,240,247,85,85,126,0,9,224, +252,204,204,206,0,10,208,201,236,136,155,0,13,160,95,253,207,246,0,31,106,223,163,126,177,0,127,35,71,255,254,117, +65,88,29,185,98,55,155,211,11,255,255,255,255,255,242,11,242,34,34,34,40,48,11,232,221,221,64,15,32,11,226,68, +68,50,47,80,11,228,238,238,159,255,243,11,229,192,47,35,15,32,12,213,254,239,93,15,32,13,177,128,71,14,79,32, +15,144,227,136,5,47,32,63,80,165,212,16,15,32,126,24,172,255,130,47,32,104,9,134,66,8,251,0,0,0,0,246, +0,0,0,0,0,0,246,0,0,0,8,255,255,255,255,255,0,1,34,34,248,34,34,0,0,0,0,246,0,0,0,0, +0,0,246,0,0,0,159,255,255,255,255,255,241,70,102,223,150,102,102,96,0,2,232,0,122,0,0,0,11,192,0,63, +128,0,0,142,32,0,25,244,0,8,254,205,239,255,253,0,9,233,134,84,50,62,64,0,0,0,0,0,1,0,0,0, +0,32,0,0,0,0,0,26,226,57,16,0,0,4,219,32,62,244,0,0,159,255,255,255,255,96,0,54,74,242,16,10, +112,2,34,63,178,34,34,33,15,255,255,255,255,255,250,0,7,245,4,44,177,0,1,143,151,206,97,205,64,29,230,170, +81,137,26,248,4,32,38,174,162,33,66,0,2,235,114,23,248,0,0,0,19,106,252,80,0,0,46,254,200,48,0,0, +0,3,32,0,0,0,0,0,0,0,0,0,0,0,0,47,255,255,255,255,252,0,0,63,146,34,34,79,160,0,0,172, +0,0,7,245,0,0,3,244,0,0,237,0,0,0,11,208,0,127,80,0,0,0,63,128,63,176,0,0,0,0,127,125, +226,0,0,0,0,0,223,243,0,0,0,0,0,111,255,145,0,0,0,5,207,161,127,231,16,0,142,251,64,0,42,255, +178,5,131,0,0,0,1,105,0,8,255,255,255,254,0,0,0,2,244,0,154,0,0,0,3,249,0,215,0,0,0,3, +253,3,255,255,224,0,5,255,81,67,79,176,0,8,202,192,0,143,80,0,11,130,248,2,237,0,0,47,64,111,108,244, +0,0,173,0,10,255,96,0,6,245,0,94,255,213,0,31,160,125,250,36,191,231,5,16,88,32,0,3,130,0,0,126, +0,0,0,0,0,0,141,0,0,0,0,2,34,190,34,34,34,32,31,255,255,255,255,255,241,0,0,215,0,0,0,0, +0,1,247,34,34,48,0,0,5,255,255,255,249,0,0,10,255,32,3,244,0,0,30,107,176,12,176,0,0,142,18,233, +158,32,0,3,247,0,95,246,0,0,45,209,23,239,254,147,0,60,54,254,129,6,223,226,0,1,80,0,0,3,80,0, +0,0,0,0,0,0,63,255,255,175,255,255,192,2,34,95,79,66,47,160,4,16,109,31,80,47,112,13,160,138,12,128, +111,64,2,230,215,8,208,174,0,0,95,243,4,244,249,0,0,15,240,0,223,243,0,0,30,248,0,159,192,0,0,157, +62,33,223,208,0,5,245,7,60,231,251,16,95,144,4,238,48,95,210,24,0,1,129,0,3,128,0,0,0,0,0,0, +0,0,1,35,86,139,235,16,0,255,255,237,185,98,0,0,238,16,0,0,0,0,0,220,0,0,0,0,0,0,223,34, +34,34,65,0,0,223,255,255,255,254,0,0,236,79,32,3,250,0,0,250,12,128,10,243,0,1,249,4,244,95,160,0, +4,246,0,175,254,32,0,7,242,0,111,247,0,0,12,208,91,253,207,164,0,79,106,253,96,4,191,192,5,1,64,0, +0,2,32,0,0,0,16,0,0,0,0,26,48,218,4,177,0,0,111,16,247,1,203,0,0,202,3,244,0,39,0,5, +255,255,255,255,255,242,1,98,45,242,34,34,32,0,0,47,129,17,16,0,0,0,159,255,255,253,0,0,2,255,130,35, +249,0,0,28,230,227,10,225,0,1,191,64,158,223,64,0,61,245,0,79,253,16,0,60,49,107,250,142,233,81,0,5, +233,64,1,108,243,0,0,0,0,0,0,16,127,255,255,248,102,102,178,0,141,0,245,191,255,255,128,8,242,47,81,245, +21,245,0,143,255,245,12,112,127,32,8,208,15,80,139,11,208,0,143,34,245,4,242,248,0,8,255,255,80,13,239,48, +0,141,0,245,0,143,176,0,9,244,111,246,9,251,0,7,255,219,251,37,252,246,0,35,16,15,86,249,8,248,0,0, +0,245,167,0,6,128,0,0,0,0,0,0,0,0,0,0,18,53,121,187,16,10,239,255,237,185,133,16,2,139,16,183, +0,156,0,0,46,48,123,2,246,0,15,255,255,255,255,255,240,15,66,34,34,34,36,240,14,50,34,34,34,66,224,0, +47,255,255,255,243,0,0,7,226,0,46,144,0,0,0,158,68,235,0,0,0,0,12,255,208,0,0,3,105,223,205,254, +166,64,29,218,97,0,39,190,192,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,201,0,0,0,9,153, +153,239,153,153,128,30,238,255,238,255,238,208,0,54,95,0,243,96,0,0,184,95,0,243,186,0,9,193,95,0,242,28, +128,4,32,95,0,242,2,48,7,255,255,255,255,248,0,1,79,178,34,63,242,0,0,2,219,35,222,48,0,0,0,47, +255,209,0,0,21,122,238,222,253,150,65,29,184,80,0,38,172,192,2,85,85,85,85,85,32,6,255,255,255,255,255,112, +6,240,0,0,0,15,112,6,240,0,0,0,15,112,6,240,0,0,0,15,112,6,240,0,0,0,15,112,6,240,0,0, +0,15,112,6,240,0,0,0,15,112,6,240,0,0,0,15,112,6,245,85,85,85,95,112,6,255,255,255,255,255,112,6, +240,0,0,0,15,112,0,16,0,0,0,0,0,0,0,0,127,0,0,0,0,0,0,127,0,0,0,2,34,34,159,34, +34,33,15,255,255,255,255,255,249,0,0,0,127,0,0,0,0,0,0,127,0,0,0,0,0,0,127,0,0,0,0,191, +255,255,255,253,0,0,188,85,85,85,221,0,0,187,0,0,0,189,0,0,187,0,0,0,189,0,0,191,255,255,255,253, +0,0,189,34,34,34,237,0,0,16,0,0,0,0,0,0,1,214,0,0,0,0,0,6,242,0,0,0,0,0,13,255, +255,255,255,247,0,143,66,34,34,34,246,4,247,0,0,0,0,230,63,188,255,255,240,0,245,6,28,226,36,240,1,245, +0,12,176,2,240,2,244,0,12,176,2,240,3,243,0,12,255,255,240,4,241,0,12,226,34,32,7,224,0,2,32,0, +85,93,176,0,0,0,0,159,253,48,0,0,0,0,0,0,0,0,255,255,255,255,246,0,0,244,34,34,34,246,0,0, +242,0,0,0,246,0,0,254,238,238,238,246,0,0,255,255,255,255,246,0,0,0,8,208,0,0,0,63,255,255,255,255, +255,0,2,34,63,130,34,174,0,0,0,158,16,0,156,0,0,25,246,0,0,171,0,40,238,96,2,34,232,0,45,130, +0,5,255,194,0,0,0,0,0,0,0,0,0,255,255,255,255,255,0,0,247,34,34,34,143,0,0,245,0,0,0,111, +0,0,245,0,0,0,111,0,0,245,0,0,0,111,0,0,247,34,34,34,143,0,0,255,255,255,255,255,0,0,0,0, +0,0,0,0,0,0,166,0,74,32,0,0,26,244,0,44,227,0,2,206,64,0,1,190,64,62,194,0,0,0,10,242, +4,0,0,0,0,0,48,0,0,0,0,0,6,240,2,83,51,1,32,6,240,12,255,255,5,240,6,240,12,176,47,5, +240,6,240,12,176,47,5,240,6,240,12,176,47,5,240,6,240,12,176,47,5,240,6,240,12,176,47,5,240,6,240,12, +226,79,6,241,77,240,12,255,255,31,255,239,240,12,176,0,31,147,6,240,3,48,0,0,0,6,240,0,0,0,0,0, +6,240,20,34,35,68,68,68,64,127,255,249,255,255,255,240,127,20,240,0,15,96,0,127,2,240,0,15,96,0,127,2, +240,0,15,96,0,127,2,240,0,15,96,0,127,2,240,0,15,96,0,127,36,240,0,15,96,0,127,255,240,0,15,96, +0,127,0,0,0,15,96,0,18,0,0,53,111,80,0,0,0,0,79,252,32,0,0,0,0,0,0,0,0,5,102,102, +102,102,102,100,13,238,238,238,238,255,234,0,0,0,0,0,111,0,0,143,255,255,32,111,0,0,142,34,47,32,111,0, +0,140,0,15,32,111,0,0,140,0,15,32,111,0,0,142,34,47,32,111,0,0,143,255,255,32,111,0,0,140,0,0, +0,111,0,0,17,0,2,85,175,0,0,0,0,2,255,232,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0, +0,29,160,0,0,0,0,0,173,16,55,0,0,0,7,227,0,79,144,0,0,126,64,0,22,250,0,8,255,238,255,255, +255,112,5,167,84,51,33,9,192,0,0,0,0,0,1,16,0,175,255,255,255,250,0,0,172,34,34,34,218,0,0,172, +0,0,0,218,0,0,172,0,0,0,218,0,0,175,255,255,255,250,0,0,174,34,34,34,250,0,0,0,0,0,0,0, +0,0,127,255,255,255,247,0,0,125,34,34,34,231,0,0,125,34,34,34,231,0,0,127,255,255,255,247,0,2,34,34, +34,34,34,32,63,255,255,255,255,255,242,0,9,208,0,0,0,0,0,31,255,255,255,247,0,0,20,50,34,36,245,0, +0,0,0,0,5,242,0,0,0,0,51,43,208,0,0,0,0,159,253,64,0,15,255,255,255,255,255,144,2,34,34,34, +34,47,144,2,34,34,34,33,15,144,15,255,255,255,246,15,144,0,0,0,0,0,15,144,0,223,255,255,128,15,144,0, +215,34,43,128,15,144,0,213,0,11,128,15,144,0,215,34,43,128,15,144,0,223,255,255,128,15,144,0,213,0,0,54, +111,144,0,0,0,0,63,253,48,0,0,0,0,0,0,0,2,66,32,111,255,251,0,0,175,255,38,242,45,176,0,10, +176,242,111,0,187,0,0,171,15,38,240,11,176,0,10,176,242,111,0,187,0,0,171,15,38,224,11,176,0,10,176,242, +125,0,187,0,0,174,47,42,176,11,176,0,10,255,243,216,0,187,4,0,171,0,95,48,11,176,240,1,16,29,160,0, +188,62,0,0,7,209,0,6,255,144,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,125,0,0,0, +95,204,32,218,0,0,0,127,111,37,255,255,255,208,127,15,78,194,34,34,32,127,15,190,16,0,0,0,127,15,35,255, +255,254,16,127,15,32,34,79,243,0,127,15,32,3,236,32,0,127,47,32,62,177,0,0,127,255,35,234,0,0,0,127, +0,12,176,0,0,210,18,0,14,147,34,37,241,0,0,6,223,255,254,128,0,0,40,32,0,0,0,0,0,206,50,34, +48,0,0,30,255,255,255,249,0,3,207,242,0,44,209,0,63,162,158,118,236,16,0,3,0,10,255,209,0,0,1,73, +238,153,238,149,32,143,234,80,0,5,174,247,35,127,255,255,255,246,48,0,127,34,34,34,246,0,0,127,0,0,0,246, +0,0,127,34,34,34,246,0,0,127,255,255,255,246,0,0,1,0,0,0,0,0,0,0,0,56,16,0,0,0,0,2, +255,32,0,0,0,0,61,221,211,0,0,0,6,251,17,175,129,0,5,207,179,34,40,254,129,79,221,255,255,255,185,245, +4,0,0,0,0,0,16,0,18,34,34,34,33,0,0,111,255,255,255,250,0,0,111,0,0,0,250,0,0,111,0,0, +0,250,0,0,111,255,255,255,250,0,0,111,34,34,34,250,0,0,1,0,0,0,0,0,0,0,0,246,0,0,0,0, +0,0,246,0,0,0,111,255,255,255,255,255,208,18,34,34,248,34,34,32,0,0,0,246,0,0,0,8,238,238,255,238, +238,16,4,119,119,119,119,119,16,0,34,34,34,34,34,0,0,191,255,255,255,253,0,0,189,0,0,0,205,0,0,189, +0,0,0,205,0,0,191,34,34,34,253,0,0,191,255,255,255,253,0,15,255,255,255,255,255,128,15,66,34,34,34,46, +128,15,47,255,255,255,28,128,15,34,34,34,34,12,128,15,32,34,34,33,12,128,15,32,255,255,246,12,128,15,32,196, +0,182,12,128,15,32,196,0,182,12,128,15,32,255,255,246,12,128,15,32,214,34,33,12,128,15,32,16,0,2,45,128, +15,32,0,0,11,253,48,0,0,6,80,0,0,0,0,0,143,130,34,64,0,0,9,255,255,255,249,0,5,206,64,0, +27,226,0,28,149,179,1,206,48,0,0,1,175,206,211,0,0,0,0,95,250,16,0,0,21,159,255,255,255,254,0,78, +175,242,34,34,206,0,0,11,224,0,0,174,0,0,11,224,0,0,174,0,0,11,255,255,255,254,0,0,11,242,34,34, +206,0,0,0,0,0,0,1,0,0,1,35,86,138,223,112,0,255,255,236,168,100,16,0,190,16,0,0,0,0,0,172, +0,0,0,0,0,0,175,255,255,255,255,253,0,174,34,34,34,34,34,0,187,0,0,0,0,0,0,218,111,255,255,255, +208,0,232,111,34,34,44,208,3,245,111,0,0,11,208,8,241,111,0,0,11,208,47,160,111,255,255,255,208,10,32,111, +34,34,46,208,0,0,0,0,0,0,0,0,0,0,0,111,0,0,20,34,32,0,111,0,0,79,255,240,0,111,0,0, +79,2,240,0,111,0,0,79,2,241,34,143,34,32,79,2,245,255,255,255,243,79,2,240,0,111,0,0,79,2,240,0, +111,0,0,79,36,240,0,111,0,0,79,255,240,0,111,0,0,79,0,0,0,111,0,0,2,0,60,204,255,204,199,0, +0,57,153,153,153,149,0,0,5,96,0,0,0,0,0,13,192,0,0,0,2,34,111,114,34,36,16,15,255,255,255,255, +255,144,15,32,0,0,0,15,144,15,33,66,34,32,15,144,15,36,255,255,242,15,144,15,36,240,0,242,15,144,15,36, +240,0,242,15,144,15,36,255,255,242,15,144,15,36,242,34,32,15,144,15,33,48,0,34,63,144,15,32,0,0,111,253, +64,0,0,0,0,0,0,0,127,255,253,238,255,238,225,127,87,240,0,242,0,0,127,2,240,0,242,0,0,127,2,240, +0,252,128,0,127,2,240,0,246,234,0,127,2,240,0,242,62,144,127,2,240,0,242,3,16,127,255,240,0,242,0,0, +127,34,32,0,242,0,0,73,0,0,0,242,0,0,0,0,0,0,242,0,0,0,0,0,0,242,0,0,0,0,0,0, +0,0,0,20,34,3,255,255,255,16,111,255,33,131,34,221,0,111,15,35,241,0,218,0,111,15,35,224,0,231,0,111, +15,35,192,2,243,0,111,15,40,255,255,255,208,111,15,33,50,34,47,192,111,239,32,0,0,14,160,111,102,31,255,255, +143,128,92,0,2,34,34,79,96,0,0,0,0,18,143,32,0,0,0,0,79,249,0,0,0,0,0,0,0,0,4,255, +255,255,255,255,176,1,34,37,246,34,34,32,0,0,9,208,0,0,0,15,255,255,255,255,255,250,2,34,207,50,238,50, +33,0,7,244,0,46,177,0,0,159,130,34,36,253,32,45,255,255,255,255,255,248,8,95,32,0,2,244,68,0,63,32, +0,2,244,0,0,63,255,255,255,244,0,0,63,66,34,36,244,0,0,0,0,0,0,0,0,2,66,33,159,255,255,248, +0,207,255,89,249,252,159,128,12,176,197,156,15,32,248,0,203,12,89,192,242,15,128,12,176,197,156,15,32,248,0,203, +12,90,251,254,191,128,12,176,197,175,204,204,248,0,207,255,89,192,0,10,96,12,226,33,156,0,0,19,0,85,0,9, +192,0,2,241,0,0,0,141,50,34,141,0,0,0,3,223,255,254,80,0,0,0,37,0,0,0,0,0,1,239,48,0, +0,0,0,77,219,211,0,0,0,42,250,81,143,145,0,75,254,81,204,36,223,163,60,99,34,59,98,70,177,0,63,255, +255,255,242,0,0,0,0,0,174,48,0,0,207,255,255,255,249,0,0,205,34,34,34,105,0,0,205,0,0,0,73,0, +0,207,255,255,255,251,0,0,207,34,34,34,121,0,0,0,0,0,0,0,0,0,0,0,0,0,19,0,20,34,32,175, +155,238,32,95,255,240,207,184,81,0,95,2,240,141,0,0,0,95,2,240,143,187,187,176,95,2,240,143,255,255,240,95, +2,240,156,0,245,0,95,2,240,171,0,245,0,95,36,240,201,0,245,0,95,255,240,230,0,245,0,95,0,4,242,0, +245,0,18,0,10,192,0,245,0,0,0,11,64,0,245,0,0,0,0,0,0,0,0,0,0,0,108,0,0,0,0,0, +0,63,96,0,0,0,143,255,255,255,255,240,0,143,34,34,34,39,240,0,141,0,0,0,5,240,0,143,255,255,255,255, +240,0,143,34,34,34,34,32,0,155,34,34,34,34,33,0,186,255,255,255,255,244,0,232,246,0,0,1,244,4,244,246, +0,0,1,244,12,209,255,255,255,255,244,11,65,248,34,34,36,244,0,0,0,0,0,0,0,0,207,255,255,255,250,0, +0,201,34,34,34,186,0,0,201,34,34,34,186,0,0,207,255,255,255,250,0,1,34,34,34,34,34,16,6,255,255,255, +255,255,112,0,0,0,231,0,0,0,18,34,35,247,34,34,32,143,255,255,255,255,255,240,0,0,29,172,128,0,0,0, +22,221,18,234,32,0,92,254,129,0,59,253,160,23,64,0,0,0,37,80,20,34,143,255,255,224,0,127,255,122,252,159, +176,0,127,15,33,241,14,96,0,127,15,34,240,63,68,16,127,15,36,243,127,255,192,127,15,38,250,0,63,128,127,15, +41,223,48,159,32,127,255,45,106,212,249,0,127,34,79,17,239,225,0,55,0,170,2,239,244,0,0,5,243,110,212,191, +162,0,5,112,103,16,4,145,0,0,0,0,2,240,0,143,255,127,255,249,240,0,143,47,34,63,227,240,0,143,15,16, +142,34,240,0,143,15,16,245,2,240,0,143,15,16,243,68,240,0,143,15,37,255,230,240,0,143,15,159,248,18,240,0, +143,15,49,242,2,240,0,143,255,16,242,2,240,129,143,34,0,242,2,240,242,36,0,35,242,2,244,240,0,0,111,192, +0,207,160,0,0,0,0,0,0,0,20,34,46,255,255,255,128,127,255,246,102,102,248,48,127,2,244,240,0,242,0,127, +2,246,208,0,242,0,127,2,248,210,34,245,32,127,2,251,255,255,255,208,127,2,240,0,94,242,0,127,36,240,3,228, +242,0,127,255,240,62,80,242,0,127,0,6,228,0,242,0,18,0,75,33,85,242,0,0,0,0,1,254,160,0,22,68, +11,255,255,255,244,111,175,43,242,34,34,33,111,15,43,217,255,255,128,111,15,43,217,242,46,128,111,15,43,217,224,12, +128,111,15,44,217,224,12,128,111,15,44,201,225,94,128,111,255,46,169,224,169,32,111,34,47,137,224,0,81,55,0,111, +57,224,0,198,0,0,204,9,226,35,228,0,4,244,4,239,255,176,0,0,32,0,0,0,0,0,47,255,255,255,255,16, +0,47,34,34,34,111,16,0,47,0,0,0,95,16,0,47,255,255,255,255,16,0,43,187,255,187,187,16,0,0,0,95, +0,0,0,11,255,255,255,255,255,247,2,34,43,255,247,34,33,0,1,174,143,111,112,0,0,93,211,95,5,236,80,12, +250,16,95,0,59,249,4,48,0,95,0,0,65,0,11,80,95,0,0,0,0,95,48,95,0,0,0,0,207,255,255,255, +255,64,7,245,34,143,50,34,16,9,112,0,95,0,0,0,44,204,204,255,204,204,194,24,136,136,136,136,136,130,0,18, +34,34,34,34,0,0,143,255,255,255,251,0,0,141,0,0,0,187,0,0,141,0,0,0,187,0,0,143,255,255,255,251, +0,0,143,34,34,34,235,0,0,1,0,0,0,0,0,0,0,0,0,31,0,0,95,204,32,0,31,0,0,111,127,32, +0,47,0,0,111,15,34,255,255,255,208,111,15,34,242,111,46,208,111,15,34,240,127,11,208,111,15,34,240,175,59,208, +111,15,34,240,237,171,208,111,47,34,245,226,254,208,111,255,34,253,128,175,208,111,0,2,246,16,43,208,18,0,2,240, +1,44,208,0,0,2,240,1,254,128,0,0,0,32,0,0,0,20,34,2,255,255,255,242,143,255,34,242,34,34,32,143, +15,34,242,64,9,80,143,15,34,244,227,63,48,143,15,34,240,126,202,0,143,15,34,240,15,243,0,143,15,34,240,30, +248,0,143,255,34,240,189,95,64,143,34,2,248,227,10,144,71,0,2,241,64,1,0,0,0,2,255,255,255,246,0,0, +0,34,34,34,33,0,127,255,255,255,247,0,0,126,34,34,34,247,0,0,127,255,255,255,247,0,0,18,34,34,34,33, +0,0,34,34,34,34,34,0,0,255,255,255,255,255,16,0,245,0,49,0,111,16,0,245,0,247,0,111,16,0,245,1, +246,0,111,16,0,229,9,227,81,92,16,0,4,207,86,238,164,0,10,238,146,0,4,175,192,4,65,0,0,0,1,64, +0,0,0,0,23,0,0,2,66,32,2,141,36,32,10,255,242,47,255,223,240,10,176,242,47,0,14,208,10,176,242,47, +0,31,176,10,176,242,47,7,255,80,10,176,242,47,34,50,48,10,176,242,47,255,255,241,10,251,242,0,0,0,161,10, +244,69,255,255,248,176,7,112,0,34,34,33,176,0,0,0,0,1,18,192,0,0,0,0,2,254,112,20,34,8,255,255, +255,240,111,255,40,242,34,36,240,111,15,40,242,34,36,240,111,15,40,255,255,255,240,111,15,40,225,160,0,0,111,15, +41,210,240,2,80,111,15,42,194,240,110,193,111,47,44,162,253,214,0,111,255,62,114,244,0,0,111,0,95,34,240,0, +99,18,1,219,2,243,35,198,0,3,194,0,191,255,209,0,0,0,0,0,0,0,0,0,0,102,1,241,0,95,204,0, +199,1,241,0,127,95,1,242,1,240,0,127,15,7,193,111,255,243,127,15,13,88,212,242,243,127,15,111,239,82,208,226, +127,15,38,142,4,192,242,127,15,0,214,22,176,241,127,15,6,200,120,129,241,127,255,63,158,252,82,240,127,34,255,168, +255,19,224,37,0,16,0,170,22,192,0,0,0,0,211,158,96,0,0,0,0,0,0,0,0,143,255,255,255,255,248,0, +8,244,34,149,34,47,128,0,143,25,191,251,177,248,0,8,241,51,216,51,15,128,0,143,75,191,251,181,248,0,9,242, +119,119,119,63,128,0,175,0,0,0,0,248,0,11,208,175,255,242,15,128,0,234,10,176,15,32,248,0,79,96,175,255, +242,15,128,12,225,8,144,2,35,248,0,151,0,0,0,143,253,48,0,0,0,0,0,0,0,0,20,34,39,119,119,119, +114,111,255,251,187,187,223,211,111,2,240,33,17,63,48,111,2,248,255,255,63,48,111,2,248,241,63,63,48,111,2,248, +208,47,63,48,111,2,248,208,47,63,48,111,36,248,248,143,63,48,111,255,248,249,153,63,48,111,0,1,32,0,63,48, +18,0,0,0,21,127,32,0,0,0,0,30,234,0,20,34,32,239,255,255,32,95,255,240,226,17,31,32,95,1,240,226, +17,31,32,95,1,240,239,255,255,32,95,1,242,68,68,68,66,95,1,249,255,254,238,231,95,1,240,92,0,0,0,95, +35,240,190,102,103,80,95,255,240,206,170,175,176,95,0,0,0,0,47,128,18,0,0,0,34,143,64,0,0,0,0,143, +250,0,0,0,0,0,0,0,0,0,0,0,0,0,35,0,20,34,38,121,222,252,16,111,255,73,135,246,16,0,111,15, +42,48,242,46,32,111,15,41,160,242,124,0,111,15,36,224,243,213,0,111,15,50,114,245,130,16,111,15,143,255,255,255, +176,111,255,49,17,244,17,16,111,34,0,0,242,0,0,38,0,0,0,242,0,0,0,0,0,34,242,0,0,0,0,0, +222,160,0,0,0,0,0,0,0,0,0,0,0,0,140,0,0,0,0,0,8,255,112,0,0,0,3,206,85,235,32,0, +4,175,229,51,94,251,81,111,197,255,255,252,92,247,3,0,0,0,0,0,32,5,255,255,25,255,255,144,5,242,79,25, +179,63,144,5,224,47,25,160,15,144,5,245,127,25,160,15,144,5,252,204,25,167,255,96,5,224,0,9,161,33,0,1, +32,0,9,160,0,0,0,0,0,40,16,0,0,60,119,16,175,34,36,16,127,191,35,255,255,255,144,127,15,77,176,0, +14,144,127,15,255,255,255,15,128,127,15,118,241,63,15,128,127,15,36,240,47,15,128,127,15,36,247,143,31,112,127,255, +36,246,108,191,96,127,34,4,240,6,202,16,55,0,4,240,0,0,164,0,0,3,244,34,35,228,0,0,0,191,255,255, +176,0,0,3,0,0,0,0,21,126,255,66,34,34,16,75,159,145,95,255,255,112,0,15,80,95,0,14,112,175,255,255, +239,0,14,112,18,159,194,111,0,14,112,0,223,243,95,0,14,112,5,223,190,111,0,14,112,13,111,91,191,0,14,112, +157,15,81,95,0,14,112,147,15,80,95,255,255,112,0,15,80,95,34,47,112,0,15,80,20,0,3,16,0,0,0,0, +47,0,0,94,136,128,0,47,0,0,159,204,240,0,47,0,0,159,2,241,255,255,255,245,159,2,240,34,95,34,33,159, +2,240,0,47,0,0,159,2,240,18,79,34,16,159,2,240,175,255,255,144,159,255,240,172,85,93,144,159,34,32,171,0, +12,144,54,0,0,171,0,12,144,0,0,0,175,255,255,144,0,0,0,173,34,47,144,0,0,0,17,0,0,0,0,0, +0,6,64,0,0,39,68,16,95,98,36,0,127,239,34,255,255,255,80,127,15,77,251,1,220,0,127,15,235,46,172,210, +0,127,15,48,6,255,48,0,127,15,35,175,171,231,16,127,15,207,165,16,92,245,127,47,66,8,234,48,48,127,255,32, +0,41,144,0,127,0,4,234,81,0,0,38,0,0,73,238,164,0,0,0,0,0,22,204,16,0,0,0,0,0,0,0, +0,0,0,0,242,0,0,95,204,110,238,255,238,160,127,95,50,34,244,34,16,127,15,44,255,255,255,32,127,15,33,17, +243,31,32,127,15,42,255,255,255,32,127,15,44,97,242,0,0,127,47,47,255,255,255,144,127,255,33,23,247,26,128,127, +170,16,13,205,27,112,92,0,0,142,28,253,32,0,0,42,227,3,234,48,0,0,203,32,0,60,192,0,0,16,0,0, +0,16,0,0,0,0,0,1,241,95,187,127,255,247,1,241,127,95,36,242,34,241,241,127,15,21,209,33,241,241,127,15, +24,255,246,241,241,127,15,28,83,244,241,241,127,15,63,21,242,241,241,127,15,170,204,193,241,241,127,79,130,127,113,241, +241,127,204,16,95,33,241,241,127,0,1,216,0,1,241,0,0,27,209,0,19,241,0,0,76,32,0,127,176,0,0,0, +0,0,0,0,0,0,0,89,0,11,96,95,153,16,63,64,79,48,143,159,33,76,132,254,64,143,15,36,255,255,255,241, +143,15,32,0,47,0,0,143,15,32,34,95,34,32,143,15,32,207,255,255,160,143,15,32,0,47,0,0,143,159,34,34, +95,34,33,143,153,27,255,255,255,245,108,0,0,0,47,0,0,0,0,0,0,47,0,0,0,0,0,0,47,0,0,0, +0,0,0,242,1,0,127,255,44,64,242,63,64,127,47,41,160,242,126,0,127,15,36,241,242,200,0,127,15,33,227,244, +242,0,127,15,50,66,245,66,32,127,15,111,255,255,255,192,127,47,32,13,255,16,0,127,255,32,140,252,144,0,127,0, +6,226,244,229,0,54,0,127,80,242,126,64,0,4,229,0,242,10,160,0,0,16,0,242,0,0,0,0,0,3,96,0, +0,38,68,64,13,162,35,0,127,238,240,143,255,255,80,127,2,244,251,0,157,0,127,2,253,143,102,244,0,127,2,241, +5,255,96,0,127,2,240,76,255,215,16,127,2,254,250,34,142,244,127,255,250,255,255,255,128,127,34,37,240,0,15,96, +37,0,5,240,0,15,96,0,0,5,242,34,47,96,0,0,5,255,255,255,96,0,0,0,16,0,0,0,0,0,0,0, +1,0,0,0,0,0,0,216,0,0,62,136,38,102,239,102,96,127,223,79,255,255,255,241,127,15,32,11,176,16,0,127, +15,32,142,33,187,0,127,15,46,255,255,244,0,127,15,39,99,143,116,32,127,15,32,7,247,46,176,127,47,34,191,81, +221,16,127,255,62,178,45,226,0,127,0,1,6,239,209,0,36,0,5,207,163,205,32,0,0,191,196,0,27,176,0,0, +19,0,0,0,16,0,0,0,0,0,0,0,0,0,0,154,2,240,0,79,204,32,231,2,240,0,95,95,37,242,2,240, +0,95,15,46,248,255,255,248,95,15,159,241,45,248,33,95,15,249,240,15,250,0,95,15,114,240,62,253,16,95,15,34, +240,152,249,96,95,255,34,242,227,243,208,95,34,2,251,146,240,200,39,0,2,247,18,240,51,0,0,2,240,2,240,0, +0,0,2,240,2,240,0,20,34,13,255,255,255,192,111,255,45,194,115,44,192,111,15,45,176,241,11,192,111,15,45,194, +242,27,192,111,15,45,255,255,187,192,111,15,45,178,241,11,192,111,15,45,181,249,11,192,111,255,45,186,77,75,192,111, +34,13,218,5,219,192,55,0,13,209,0,43,192,0,0,13,255,255,255,192,0,0,13,226,34,46,192,0,0,1,16,0, +0,0,0,0,0,47,0,242,0,95,204,192,47,0,242,0,111,154,240,47,0,242,0,111,2,249,255,255,255,160,111,2, +241,95,34,245,32,111,2,240,47,0,242,0,111,2,240,47,0,242,0,111,2,242,95,51,245,48,111,36,249,223,204,253, +176,111,255,240,1,0,16,0,111,0,0,126,19,245,0,18,0,4,246,0,126,32,0,0,47,128,0,12,176,0,0,4, +0,0,2,16,0,0,0,0,245,0,0,79,153,16,0,245,0,0,111,175,44,255,255,255,16,111,15,34,34,248,34,0, +111,15,32,0,245,0,0,111,15,111,255,255,255,160,111,15,72,136,250,136,80,111,15,32,0,245,0,0,111,255,47,255, +255,255,48,111,51,2,34,248,34,0,55,0,0,0,245,0,0,0,0,204,204,255,204,176,0,0,119,119,119,119,96,0, +0,0,0,65,0,0,20,34,0,4,250,0,0,127,255,32,29,222,32,0,127,15,32,190,24,210,0,127,15,59,246,35, +222,64,127,15,174,223,255,250,160,127,15,33,0,0,0,0,127,15,36,204,204,200,0,127,255,37,244,68,218,0,127,34, +5,240,0,202,0,55,0,5,240,0,202,0,0,0,5,255,255,250,0,0,0,5,242,34,234,0,0,0,0,0,0,0, +0,0,0,0,0,85,0,0,21,51,0,0,236,0,0,127,255,34,39,248,34,48,127,15,47,255,255,255,242,127,15,47, +32,0,2,242,127,15,47,39,254,210,242,127,15,47,40,176,210,242,127,15,47,40,176,210,242,127,175,47,40,176,210,242, +127,153,31,40,254,210,242,92,0,15,38,128,2,242,0,0,15,32,0,36,242,0,0,14,32,0,127,176,0,0,0,47, +0,242,0,58,102,18,95,34,245,32,127,223,46,255,255,255,242,127,15,32,47,0,242,0,127,15,32,71,0,117,0,127, +15,32,213,0,94,0,127,15,32,138,0,170,0,127,15,32,47,35,243,0,127,255,32,10,187,176,0,127,34,0,2,255, +16,0,53,0,0,43,255,128,0,0,0,57,251,37,236,96,0,0,139,80,0,42,193,0,0,0,0,0,0,0,0,0, +1,0,2,240,0,20,34,30,48,2,240,0,127,255,9,176,2,240,0,127,31,2,162,70,244,65,127,31,1,21,223,253, +211,127,31,95,240,7,242,0,127,31,3,240,9,250,0,127,31,2,240,30,111,48,127,127,2,240,141,10,160,127,187,2, +244,245,4,241,127,0,9,242,96,0,80,17,0,143,174,132,51,84,0,0,152,3,174,255,245,0,0,0,0,0,0,0, +0,0,0,97,5,80,0,111,185,4,241,12,128,0,159,108,9,160,31,114,65,159,44,30,66,95,255,245,159,44,141,159, +203,0,229,159,44,255,248,134,0,244,159,44,22,209,13,80,244,159,44,29,80,23,193,243,159,60,239,223,113,245,242,159, +252,151,66,0,117,241,159,0,1,88,112,4,240,36,0,207,200,65,41,208,0,0,32,0,0,238,96,95,255,255,255,255, +255,144,0,0,0,0,2,243,0,0,238,238,239,66,243,0,0,228,34,44,66,243,0,0,137,153,153,50,243,0,123,187, +187,187,190,254,179,70,102,102,102,102,252,98,0,255,255,255,32,246,0,0,244,0,15,32,246,0,0,244,0,15,32,246, +0,0,255,255,255,82,246,0,0,130,0,0,239,210,0,0,0,0,0,0,0,0,0,0,0,41,95,70,0,127,255,124, +251,79,62,64,127,31,84,242,15,38,176,127,15,16,242,15,32,0,127,15,223,255,255,255,208,127,15,50,245,47,100,32, +127,15,16,242,12,92,96,127,15,18,252,155,158,16,127,31,207,254,105,248,0,127,255,100,242,12,241,0,127,0,0,242, +63,240,80,36,0,35,246,231,230,224,0,0,158,179,96,94,128,20,34,15,255,255,255,32,127,255,47,134,248,111,32,127, +15,47,49,243,31,32,127,15,47,255,255,255,32,127,15,47,32,226,15,32,127,15,47,255,255,255,32,127,15,34,35,245, +34,0,127,175,50,35,245,34,16,127,170,63,255,255,255,80,92,0,0,1,243,0,0,0,0,187,188,254,187,144,0,0, +170,170,170,170,128,0,0,0,0,0,0,0,20,34,63,255,255,255,242,79,255,3,244,207,52,241,79,31,1,243,207,39, +176,79,31,63,255,255,44,96,79,31,3,245,207,79,32,79,31,2,227,191,43,128,79,31,5,245,207,36,208,79,95,63, +255,255,33,240,79,153,11,132,191,35,240,77,0,47,37,175,127,160,0,0,188,41,159,33,0,0,2,199,253,63,32,0, +0,0,0,0,1,0,0,15,255,252,13,255,255,32,15,82,156,14,98,95,32,15,65,140,14,97,63,32,15,255,252,14, +255,255,32,1,17,21,243,77,113,0,0,0,6,241,5,230,0,223,255,255,255,255,255,240,34,34,63,255,66,34,32,0, +0,159,60,193,0,0,0,42,246,2,237,80,0,107,253,80,0,43,254,161,106,80,0,0,0,56,112,0,0,0,2,240, +0,32,59,102,17,36,242,38,225,111,223,37,255,255,255,112,111,15,32,2,240,173,0,111,15,43,206,255,254,195,111,15, +38,119,223,183,114,111,15,32,239,255,255,64,111,15,35,223,88,246,0,111,255,207,162,95,32,0,111,85,139,255,255,255, +246,92,0,1,34,127,34,33,0,0,0,2,110,0,0,0,0,0,13,250,0,0,0,0,0,0,0,0,0,0,0,0, +0,98,0,0,59,102,18,34,220,34,32,127,207,47,255,255,255,242,127,15,32,119,119,119,16,127,15,33,246,68,95,48, +127,15,33,254,221,239,48,127,15,32,17,17,17,0,127,47,39,255,255,255,48,127,255,33,34,110,247,0,127,0,0,0, +207,16,0,19,0,0,0,154,0,0,0,0,0,17,170,0,0,0,0,0,79,230,0,0,0,0,0,0,0,0,0,62, +136,127,255,255,255,208,111,191,32,0,243,0,0,111,15,47,255,255,255,240,111,15,47,32,242,2,240,111,15,47,255,255, +255,240,111,15,47,32,242,2,240,111,15,47,239,255,238,240,111,255,40,52,224,0,0,111,34,8,221,144,0,0,55,0, +2,255,129,0,0,0,4,191,182,207,201,112,0,1,131,0,2,105,160,0,0,0,16,0,4,0,20,34,4,236,118,204, +32,111,255,32,43,255,245,0,111,15,76,253,146,126,160,111,15,53,59,226,35,48,111,15,111,255,255,255,243,111,15,34, +218,45,0,0,111,15,93,253,255,223,144,111,255,171,244,95,46,160,111,34,0,242,47,11,160,55,0,0,242,47,28,160, +0,0,0,242,47,127,112,0,0,0,0,47,0,0,0,0,0,2,0,0,0,0,0,0,95,32,0,0,6,253,221,223, +253,221,210,7,254,238,239,254,238,227,7,227,102,111,134,102,0,7,226,85,95,133,127,0,7,255,255,255,255,255,242,7, +224,0,15,48,47,0,8,217,255,255,255,255,0,9,176,0,15,32,0,0,11,153,255,255,255,255,64,14,105,248,136,136, +159,64,63,25,240,0,0,31,64,137,9,255,255,255,255,64,0,0,0,0,0,0,0,40,68,28,255,255,255,208,127,175, +33,37,243,34,16,127,15,34,255,255,255,32,127,15,32,42,210,95,16,127,15,32,11,144,79,0,127,15,79,255,255,255, +242,127,15,55,119,119,119,113,127,255,33,255,255,255,128,127,34,1,243,17,27,128,55,0,1,243,0,11,128,0,0,1, +245,34,45,128,0,0,1,255,255,255,128,0,0,0,0,0,0,0,0,0,0,25,16,0,0,20,34,0,175,119,196,0, +127,255,36,255,157,250,0,127,15,79,248,191,248,48,127,15,43,255,255,255,80,127,15,34,240,242,15,80,127,15,34,240, +242,15,80,127,15,34,242,241,15,80,127,47,47,255,255,255,243,127,255,32,29,251,16,0,127,0,0,158,46,160,0,37, +0,26,244,2,220,80,0,0,190,64,0,25,227,0,0,1,0,0,0,16,0,0,0,73,40,0,0,79,153,16,156,30, +80,0,127,175,33,250,91,149,48,127,15,45,254,239,254,128,127,15,79,240,15,32,0,127,15,223,242,47,82,16,127,15, +120,255,255,255,64,127,15,38,240,15,32,0,127,47,38,247,127,151,32,127,255,38,250,175,202,48,127,0,6,240,15,32, +0,18,0,6,255,255,255,192,0,0,6,245,85,85,64,23,68,18,255,255,255,16,95,223,34,240,0,47,16,95,15,34, +255,255,255,16,95,15,34,240,0,31,16,95,15,34,255,255,255,16,95,15,34,34,34,34,16,95,15,44,255,255,255,144, +95,207,44,160,0,10,144,95,85,28,255,255,255,144,76,0,12,177,17,27,144,0,0,12,178,34,44,144,0,0,12,255, +255,255,144,0,0,1,16,0,0,0,0,0,0,0,0,0,0,95,255,79,255,223,255,249,95,63,76,122,34,35,241,95, +15,76,118,18,66,240,95,15,76,163,159,246,240,95,15,76,194,147,246,240,95,15,76,104,147,246,240,95,15,76,45,147, +246,240,95,223,76,46,191,246,240,95,68,76,217,150,50,240,78,0,76,0,16,1,240,0,0,76,0,1,86,240,0,0, +76,0,0,189,128,0,0,0,0,97,0,0,20,34,0,8,245,0,0,95,255,32,141,109,129,0,95,15,108,177,1,173, +112,95,15,165,190,255,211,128,95,15,32,0,243,0,0,95,15,143,255,255,255,160,95,15,50,34,245,34,16,95,47,33, +17,244,17,0,95,255,39,253,254,223,64,95,0,7,208,0,15,64,18,0,7,242,34,47,64,0,0,7,255,255,255,64, +0,0,0,0,0,0,0,0,0,0,0,0,16,0,0,0,2,240,6,192,0,63,170,2,240,2,241,0,95,175,2,240, +102,199,96,95,15,95,255,220,204,193,95,15,20,242,83,5,96,95,15,2,240,151,9,144,95,15,3,251,122,11,112,95, +15,95,244,92,13,64,95,255,20,240,77,15,32,95,34,2,240,63,46,0,39,0,2,240,42,91,0,0,0,20,240,34, +154,33,0,0,63,163,255,255,244,0,0,0,0,242,0,0,20,34,21,85,247,85,32,111,255,75,187,253,187,48,111,15, +33,153,252,152,0,111,15,155,187,254,187,128,111,15,102,102,102,102,64,111,15,35,238,238,238,32,111,15,35,241,81,31, +32,111,255,35,240,242,15,32,111,34,3,241,241,15,32,55,0,1,105,182,38,16,0,0,39,220,40,234,48,0,0,73, +64,0,23,80,0,0,84,0,2,240,0,95,153,94,16,2,240,0,143,159,7,111,255,255,245,143,47,0,79,52,246,241, +143,47,147,79,18,242,80,143,47,125,95,206,254,161,143,47,7,111,253,207,241,143,47,0,111,213,12,176,143,47,41,125, +140,63,64,143,255,106,155,47,251,0,143,17,167,199,15,245,0,53,1,245,244,190,207,113,0,2,165,169,194,6,229,0, +0,0,0,0,0,0,0,0,2,90,80,167,0,95,255,143,250,64,167,0,95,31,0,242,0,167,0,95,15,0,242,12, +167,150,95,15,175,255,124,217,196,95,15,41,245,91,253,225,95,15,10,252,136,255,208,95,15,13,254,81,254,16,95,47, +90,247,98,255,0,95,255,197,242,7,189,48,95,1,177,242,13,105,144,20,0,16,242,142,18,226,0,0,0,242,165,0, +116,0,0,0,0,0,0,0,6,232,96,252,207,236,242,11,253,176,242,15,32,242,11,180,176,254,239,254,242,11,180,176, +242,15,32,242,11,180,176,255,255,255,242,11,180,176,85,85,85,81,11,180,188,255,239,254,231,11,255,176,154,10,113,129, +11,226,32,154,4,254,177,5,80,0,170,1,190,0,0,0,1,255,232,28,179,0,0,0,247,48,1,149,0,0,0,0, +25,32,0,58,102,18,34,95,82,33,143,223,127,255,255,255,248,143,15,32,0,108,0,0,143,15,47,255,255,255,244,143, +15,47,69,130,165,244,143,15,47,34,226,209,244,143,15,47,38,223,228,244,143,207,47,34,95,49,244,143,85,31,45,255, +250,244,124,0,15,32,47,0,244,0,0,15,32,47,2,243,0,0,15,32,2,14,209,0,0,0,0,0,0,0,0,0, +0,0,13,124,80,95,204,16,0,12,115,193,111,111,127,255,255,255,245,111,15,127,50,46,162,33,111,15,127,142,218,145, +161,111,15,127,17,25,165,208,111,15,127,127,248,185,144,111,31,143,123,199,238,48,111,255,158,123,197,251,0,111,68,156, +127,244,246,51,92,0,184,105,29,247,105,0,0,228,2,219,142,198,0,1,160,4,144,27,193,39,68,31,255,255,255,240, +111,207,45,209,17,19,240,111,15,47,255,255,255,240,111,15,44,208,0,0,0,111,15,44,255,255,255,242,111,15,45,201, +212,79,48,111,79,45,255,255,207,240,111,255,63,145,31,16,16,111,0,63,223,255,255,240,92,0,127,16,47,16,0,0, +0,218,0,31,16,0,0,6,231,255,255,255,242,0,0,32,0,0,0,0,0,0,0,185,0,0,0,13,238,238,255,238, +238,224,2,34,34,219,34,34,32,0,239,255,255,255,255,16,0,104,136,136,136,134,0,0,79,102,102,102,246,0,0,79, +237,221,223,246,0,0,3,243,0,63,48,0,13,221,255,221,255,221,218,4,68,68,68,68,68,67,0,143,238,238,238,250, +0,0,139,0,0,0,186,0,0,143,238,238,238,250,0,39,68,17,255,255,255,32,127,255,33,242,0,15,32,127,15,33, +254,238,239,32,127,15,33,242,0,15,32,127,15,33,255,255,255,32,127,15,34,252,85,86,64,127,15,77,247,124,124,192, +127,255,157,48,95,7,176,127,34,2,245,237,218,176,55,0,1,244,112,121,144,0,0,1,238,238,239,128,0,0,0,0, +0,142,48,0,0,0,59,0,242,0,79,170,32,59,0,242,0,127,175,45,255,255,255,224,127,15,34,93,34,245,32,127, +15,32,41,0,194,0,127,15,37,153,153,153,128,127,15,41,235,253,190,224,127,15,41,176,242,12,224,127,47,41,227,245, +63,224,127,255,41,253,255,223,224,127,0,9,176,242,12,224,18,0,9,251,254,191,224,0,0,9,249,153,159,224,0,0, +1,16,0,0,0,0,0,0,0,242,0,0,20,34,4,68,247,68,16,111,255,44,204,254,204,64,111,15,17,134,98,62, +17,111,15,79,255,255,255,248,111,15,0,117,0,44,0,111,15,2,238,238,238,48,111,15,2,240,49,8,48,111,255,2, +240,242,8,48,111,34,2,241,242,8,48,55,0,1,121,215,117,16,0,0,72,220,35,159,180,0,0,105,64,0,2,148, +0,0,4,48,242,39,0,79,153,24,192,242,155,0,127,191,51,194,244,195,16,127,15,127,255,255,255,160,127,15,32,126, +254,161,0,127,15,91,210,243,189,96,127,15,105,18,210,6,80,127,15,86,111,230,102,80,127,255,104,239,171,249,96,127, +34,3,249,10,176,0,55,0,6,255,255,48,0,0,0,71,191,254,249,32,0,0,106,114,0,74,16,0,0,0,1,80, +0,0,20,34,151,7,208,0,0,95,254,43,109,252,204,195,95,30,0,126,84,68,65,95,30,148,171,255,255,240,95,30, +110,57,202,116,240,95,30,2,11,145,198,208,95,30,0,207,255,255,248,95,206,28,63,124,71,225,95,101,93,63,36,183, +160,76,0,184,95,255,255,240,0,1,243,18,19,46,128,0,3,176,0,10,252,16,0,0,0,0,0,0,0,0,0,0, +183,8,208,0,20,34,39,253,126,247,96,127,255,76,255,207,252,176,127,15,21,147,3,96,0,127,15,28,175,255,255,241, +127,15,79,48,0,15,48,127,15,207,111,255,15,32,127,15,239,111,15,15,32,127,239,47,111,15,15,32,127,51,15,111, +255,15,32,73,0,15,90,0,15,32,0,0,15,32,1,31,32,0,0,15,32,9,252,16,0,0,1,0,0,0,0,20, +34,15,255,255,255,16,95,191,31,49,132,63,16,95,15,31,126,255,143,16,95,15,31,35,247,47,16,95,15,31,109,58, +111,16,95,15,31,154,136,159,16,95,15,23,119,136,119,16,95,255,52,50,167,74,0,95,34,122,201,44,46,48,39,0, +197,201,2,234,144,0,4,225,202,36,244,192,0,0,64,127,255,144,0,0,0,0,1,36,104,16,20,34,30,255,237,203, +64,79,255,34,177,149,14,64,79,15,32,197,118,107,0,79,15,143,255,255,255,208,79,15,141,10,80,4,208,79,15,62, +223,252,205,96,79,15,33,127,85,85,0,79,255,32,223,170,239,0,79,34,6,236,145,214,0,38,0,95,81,255,176,0, +0,7,248,90,255,250,80,0,2,50,200,32,74,128,0,0,0,0,0,16,0,0,0,3,224,0,229,0,95,204,20,241, +18,242,0,111,111,143,255,247,245,83,111,31,4,241,27,254,247,111,31,95,255,191,211,224,111,31,3,240,127,164,208,111, +31,156,249,186,198,176,111,31,207,235,177,250,128,111,47,47,70,48,207,80,111,255,79,207,176,159,16,111,0,138,12,160, +207,64,36,1,213,30,137,233,227,0,5,162,253,110,48,182,0,0,0,0,1,0,0,0,0,0,185,0,0,0,47,255, +255,255,255,255,243,0,0,0,185,0,0,0,3,255,255,255,255,255,48,0,87,119,119,119,117,0,0,186,85,85,85,171, +0,0,190,222,221,221,235,0,0,0,215,0,109,16,0,47,255,255,255,255,255,242,2,46,82,35,102,102,64,14,255,255, +246,235,190,128,2,200,8,182,192,11,128,61,114,237,86,254,239,128,0,0,0,0,0,0,0,21,51,95,255,255,255,192, +111,111,35,221,255,221,32,111,15,34,244,68,79,32,111,15,34,247,119,127,32,111,15,34,252,204,207,32,111,15,34,247, +119,127,32,111,15,34,223,255,254,32,111,143,32,5,193,171,48,111,170,173,239,255,239,176,56,0,34,33,190,217,16,0, +0,19,106,255,195,225,0,0,189,166,35,190,160,0,0,0,0,0,0,0,0,0,0,0,183,0,0,59,102,0,0,207, +255,208,127,143,60,119,252,119,194,127,15,127,255,255,255,244,127,15,127,17,243,54,241,127,15,127,157,251,133,96,127,15, +127,0,233,138,208,127,15,158,0,117,165,32,127,255,172,177,240,241,177,127,34,201,167,240,246,160,37,1,245,88,240,249, +16,0,6,236,188,252,251,181,0,4,104,136,136,136,132,0,0,0,0,80,0,0,60,118,2,17,211,17,17,111,173,127, +255,255,255,249,111,29,124,11,0,176,0,111,29,124,15,0,240,0,111,29,127,255,255,255,112,111,29,124,79,35,248,0, +111,29,139,143,134,253,0,111,45,154,207,90,254,64,111,253,188,159,11,250,176,111,0,221,63,103,245,246,36,3,242,15, +49,241,97,0,4,128,15,0,240,0,0,0,0,0,0,0,0,0,0,7,208,35,0,0,95,219,8,225,139,221,225,111, +109,127,254,214,249,240,111,45,7,214,209,244,160,111,45,175,255,245,247,80,111,45,53,253,66,250,16,111,45,28,193,1, +247,112,111,46,255,255,244,243,192,111,77,159,0,244,241,240,111,202,95,255,244,241,240,92,0,95,0,244,250,112,0,0, +95,255,244,240,0,0,0,95,0,244,240,0,0,0,1,0,0,0,0,0,0,0,0,245,0,0,63,153,125,221,255,221, +176,95,191,51,51,248,51,32,95,15,47,255,255,255,96,95,15,36,136,136,136,32,95,15,34,246,102,111,32,95,15,34, +253,221,239,32,95,15,32,120,1,229,0,95,207,139,206,188,251,177,95,119,52,68,68,68,64,95,0,6,254,238,239,64, +0,0,6,224,0,13,64,0,0,6,254,238,239,64,0,0,0,16,0,0,0,18,17,0,0,0,0,0,127,255,47,152, +191,137,240,127,47,47,42,76,105,240,127,15,47,40,140,166,240,127,15,47,35,92,82,240,127,15,47,255,255,255,240,127, +15,33,34,111,34,32,127,63,36,255,255,255,224,127,255,32,0,79,0,0,127,17,14,255,255,255,246,54,0,9,101,102, +121,146,0,0,46,36,198,181,208,0,0,169,2,225,241,198,0,0,33,0,48,32,32,0,0,6,31,47,36,96,79,153, +25,127,47,61,160,127,207,18,127,47,90,16,127,15,159,255,255,255,176,127,15,68,184,69,234,48,127,15,22,222,124,249, +113,127,15,25,187,254,187,178,127,15,19,136,251,136,96,127,207,17,68,246,68,48,127,68,159,255,255,255,208,92,0,0, +10,238,48,0,0,0,3,189,37,214,0,0,0,111,145,0,59,208,0,0,1,0,0,0,16,0,0,0,103,0,0,0, +20,34,2,255,223,176,0,95,255,79,181,159,181,64,95,15,223,169,254,156,192,95,15,63,204,254,205,192,95,15,47,83, +245,57,192,95,15,41,153,185,153,112,95,15,158,238,238,238,228,95,207,32,119,119,119,48,95,102,16,182,102,111,112,76, +0,0,253,221,223,112,0,0,0,128,0,15,112,0,0,0,254,238,239,112,0,0,0,0,0,0,0,0,0,0,1,16, +0,0,21,51,0,10,176,0,0,127,223,47,255,255,255,240,127,15,47,0,0,1,240,127,15,47,131,227,145,240,127,15, +47,71,231,65,240,127,15,47,223,253,211,240,127,15,47,59,232,81,240,127,15,47,145,225,129,240,127,127,17,21,241,17, +16,127,204,127,255,255,255,246,127,0,0,30,253,32,0,0,0,21,219,26,232,32,0,2,253,96,0,91,245,0,0,16, +0,0,0,16,0,239,255,128,255,255,144,0,229,44,128,244,43,144,0,229,44,128,244,43,144,0,239,255,144,255,255,144, +0,0,2,244,9,195,0,15,255,255,255,255,255,250,2,37,254,50,111,163,33,2,191,179,16,38,255,113,30,255,255,128, +255,255,250,2,228,11,128,243,10,161,0,246,45,128,245,44,144,0,255,255,128,255,255,144,0,16,0,0,16,0,0,0, +0,0,79,16,0,0,10,204,204,255,220,204,160,0,157,136,207,152,156,0,0,140,187,255,219,186,0,28,153,153,207,169, +153,193,30,125,187,211,219,198,225,0,108,174,211,222,166,0,5,204,255,204,239,204,176,1,136,207,136,191,136,80,43,187, +255,237,239,187,178,21,88,223,254,245,108,161,44,201,247,70,127,248,16,0,15,254,168,17,123,226,0,3,0,0,0,0, +0,9,221,222,221,221,221,128,11,254,255,254,255,239,144,11,176,31,48,242,12,144,11,176,63,32,242,12,144,11,176,95, +16,242,12,144,11,176,173,0,243,12,144,11,182,248,0,207,255,144,11,205,193,0,2,44,144,11,180,16,0,0,12,144, +11,210,34,34,34,46,144,11,255,255,255,255,255,144,11,176,0,0,0,11,144,0,0,0,0,0,0,0,12,255,255,255, +255,255,247,12,213,85,85,85,85,247,12,176,0,0,0,0,247,12,176,47,255,255,0,247,12,176,47,34,79,0,247,12, +176,47,0,47,0,247,12,176,47,0,47,0,247,12,176,47,255,255,0,247,12,176,2,34,34,0,247,12,176,0,0,0, +0,247,12,255,255,255,255,255,247,12,226,34,34,34,34,247,12,255,255,255,255,255,246,12,194,34,54,34,34,246,12,176, +0,62,0,0,246,12,177,34,111,34,33,246,12,184,255,255,255,244,246,12,176,0,158,0,0,246,12,176,1,255,177,0, +246,12,176,10,193,173,32,246,12,179,205,32,9,209,246,12,177,113,0,0,80,246,12,255,255,255,255,255,246,12,210,34, +34,34,34,246,12,255,255,255,255,255,246,12,194,34,36,194,34,246,12,176,0,2,240,0,246,12,183,255,255,255,240,246, +12,177,34,79,242,32,246,12,176,1,207,240,0,246,12,176,28,212,240,0,246,12,180,221,34,240,0,246,12,180,145,36, +240,0,246,12,176,0,127,160,0,246,12,226,34,34,34,34,246,12,255,255,255,255,255,246,12,255,255,255,255,255,224,12, +194,34,95,34,34,224,12,180,255,255,255,245,224,12,176,17,79,17,16,224,12,176,175,255,255,192,224,12,176,0,63,0, +0,224,12,183,255,255,255,247,224,12,177,17,79,20,245,224,12,176,0,47,141,225,224,12,176,0,43,35,16,224,12,255, +255,255,255,255,240,12,210,34,34,34,34,240,12,255,255,255,255,255,192,12,194,34,58,34,44,192,12,176,0,47,0,11, +192,12,180,255,255,255,255,192,12,176,17,79,17,28,192,12,176,187,239,187,91,192,12,176,247,102,109,123,192,12,176,243, +0,12,123,192,12,176,238,238,238,123,192,12,176,0,0,0,11,192,12,255,255,255,255,255,192,12,226,34,34,34,46,192, +11,255,255,255,255,255,192,11,194,85,85,85,92,192,11,176,255,255,255,235,192,11,176,0,47,0,11,192,11,176,18,79, +34,27,192,11,176,175,255,255,155,192,11,176,0,47,27,27,192,11,176,0,47,7,139,192,11,179,255,255,255,254,192,11, +177,68,68,68,76,192,11,255,255,255,255,255,192,11,226,34,34,34,45,192,12,255,255,255,255,255,246,12,194,255,255,255, +66,246,12,176,242,0,15,32,246,12,176,254,238,239,32,246,12,176,34,34,34,0,246,12,180,255,255,255,128,246,12,180, +208,23,11,128,246,12,180,208,63,11,128,246,12,178,114,188,152,64,246,12,183,191,162,142,177,246,12,199,131,17,19,129, +246,12,255,255,255,255,255,246,12,255,255,255,255,255,246,12,194,98,104,37,66,246,12,176,149,151,13,32,246,12,180,205, +255,223,193,246,12,181,126,247,136,116,246,12,180,191,134,191,115,246,12,201,255,204,253,213,246,12,184,111,1,244,101,246, +12,176,79,28,163,48,246,12,176,47,135,122,128,246,12,210,37,136,135,34,246,12,255,255,255,255,255,246,0,0,0,0, +0,0,0,15,255,255,255,255,247,0,2,127,114,34,79,241,0,0,7,249,21,221,32,0,0,0,111,255,193,0,0,88, +189,252,188,254,184,97,106,133,16,131,21,139,176,0,0,0,246,0,0,0,0,239,255,255,255,245,0,0,34,34,248,34, +33,0,0,0,0,246,0,0,0,107,187,187,255,187,187,176,90,170,170,170,170,170,160,0,0,0,0,0,0,0,0,0, +13,128,0,0,0,0,0,63,80,0,0,0,63,255,255,255,255,255,243,2,36,250,34,34,34,32,0,9,225,0,119,0, +0,0,111,96,0,185,0,0,3,255,2,34,220,34,16,78,254,11,255,255,255,144,59,126,0,0,185,0,0,0,110,0, +0,185,0,0,0,110,0,0,185,0,0,0,110,59,187,255,187,178,0,110,79,255,255,255,243,0,242,0,0,47,0,0, +0,242,1,144,47,0,0,0,242,2,240,47,3,0,34,245,34,240,63,191,48,191,255,178,248,255,175,48,0,242,77,253, +159,15,48,0,242,140,240,47,15,32,0,242,34,240,47,31,32,0,255,194,240,47,173,0,126,250,18,240,44,17,0,138, +32,2,240,0,5,176,0,0,2,244,34,42,160,0,0,0,175,255,254,48,0,47,0,0,0,0,0,0,47,0,46,9, +144,245,0,47,0,47,9,144,245,8,207,166,47,9,144,245,9,223,183,47,9,144,245,0,47,0,47,9,144,245,0,47, +0,62,9,144,245,0,47,0,78,9,144,245,0,47,85,109,9,144,245,4,191,248,171,9,144,245,13,182,17,231,9,144, +245,0,0,10,242,0,0,245,0,0,24,128,0,0,245,0,0,0,0,0,0,0,0,46,0,0,6,224,0,0,2,240, +0,0,110,0,0,0,47,0,0,6,224,0,0,139,248,98,192,110,0,0,12,239,201,47,6,224,0,0,2,240,2,240, +111,255,192,0,47,0,47,6,242,34,0,2,240,18,240,110,0,0,0,79,205,47,6,224,0,0,191,248,34,240,110,0, +0,8,80,0,47,6,224,0,0,0,0,157,251,255,187,176,0,0,7,153,153,153,153,0,0,0,0,0,0,0,0,0, +242,0,12,80,0,0,0,242,0,63,16,0,0,0,242,0,207,136,142,112,34,245,36,255,238,239,192,175,255,205,128,0, +11,176,0,242,43,86,0,11,176,0,242,0,62,144,12,160,0,242,0,2,211,29,160,0,246,177,0,92,157,144,6,255, +129,92,231,30,128,158,129,9,231,16,31,96,33,0,2,17,50,127,48,0,0,0,0,239,233,0,0,0,0,0,0,0, +0,0,0,0,16,0,0,0,0,242,0,124,0,0,0,0,242,0,185,0,0,0,0,242,0,250,85,89,48,34,245,37, +255,255,255,208,175,255,170,178,34,63,128,0,242,63,48,194,95,48,0,242,89,0,243,90,0,0,242,0,1,248,0,0, +0,250,160,4,252,0,0,58,255,80,9,223,48,0,157,96,0,79,74,192,0,16,0,5,232,2,235,32,0,0,127,112, +0,61,192,0,0,18,0,0,1,32,0,242,0,0,0,0,0,0,242,143,255,255,255,240,0,242,18,34,175,50,32,18, +245,16,2,230,0,0,159,255,144,29,245,16,0,0,242,1,191,252,211,0,0,242,60,228,244,159,80,0,243,205,49,243, +8,225,0,246,113,1,243,0,32,56,255,160,1,243,0,0,172,113,0,1,243,0,0,0,0,0,1,243,0,0,0,0, +0,1,243,0,0,0,242,0,2,240,0,0,0,242,0,2,240,0,0,0,242,3,104,246,102,0,18,245,24,255,255,255, +0,159,255,144,19,241,63,0,0,242,0,3,240,47,0,0,242,27,191,252,239,176,0,243,73,159,255,153,144,1,255,208, +9,207,16,0,126,253,48,30,93,128,0,139,64,0,188,6,227,0,0,0,43,226,0,205,48,0,2,236,32,0,45,209, +0,0,64,0,0,1,32,0,0,0,0,0,0,0,2,192,47,63,255,255,128,2,240,47,12,130,111,64,2,240,47,4, +209,205,0,2,240,47,0,191,244,0,2,240,47,1,191,242,0,2,240,47,94,249,207,178,0,0,45,59,48,6,176,0, +34,34,79,34,34,0,0,223,255,255,255,255,0,0,0,0,63,0,0,0,43,187,187,239,187,187,179,40,136,136,136,136, +136,130,0,242,0,0,47,0,0,0,242,0,0,47,0,0,0,242,14,255,255,255,245,123,254,141,226,95,41,241,71,249, +76,176,47,10,160,0,242,12,251,223,191,128,0,242,13,255,152,207,144,0,243,62,173,80,159,64,1,255,191,119,211,252, +0,143,249,95,64,223,243,0,103,16,157,0,223,241,0,0,3,247,76,249,221,113,0,5,176,187,48,24,227,0,0,0, +0,0,0,0,0,242,0,0,242,0,0,0,242,0,0,242,0,0,0,242,11,255,255,255,128,89,251,107,194,245,44,128, +107,253,123,176,242,12,128,0,242,11,255,255,255,128,0,242,11,226,245,46,128,0,242,27,176,242,12,128,1,255,187,255, +255,255,128,126,249,26,194,245,43,112,70,16,0,0,242,0,0,0,0,0,0,242,0,0,0,0,0,0,242,0,0,0, +242,0,0,0,0,0,0,242,42,170,170,170,163,0,242,43,187,187,223,227,70,248,64,33,17,47,48,123,254,136,255,255, +47,48,0,242,8,225,63,47,48,0,242,8,208,47,47,48,0,242,8,208,47,47,48,0,248,152,255,255,47,48,40,255, +136,242,34,47,48,158,129,0,16,0,47,48,33,0,0,0,18,95,48,0,0,0,0,79,251,0,0,0,0,0,0,0, +0,0,0,0,0,32,0,0,0,242,0,3,243,0,0,0,242,0,0,231,0,0,0,242,4,68,167,68,48,18,245,31, +255,255,255,160,159,255,146,50,34,68,16,0,242,0,228,0,171,0,0,242,0,199,0,200,0,0,242,0,154,0,244,0, +0,243,64,109,3,241,0,38,255,208,79,6,192,0,156,132,0,40,26,144,0,0,0,191,255,255,255,240,0,0,34,34, +34,34,32,0,0,0,0,0,2,240,5,255,239,254,47,34,240,0,47,12,240,15,34,240,2,95,47,242,31,34,240,13, +255,255,255,127,34,240,0,171,12,240,11,34,240,26,245,12,240,2,120,240,28,144,11,253,33,255,160,1,34,34,239,82, +50,16,0,255,255,255,255,255,80,0,0,0,191,48,0,0,109,221,221,255,253,221,218,37,85,85,85,85,85,84,0,242, +0,0,31,76,48,0,242,0,0,31,37,176,0,242,127,255,255,255,240,75,253,191,34,47,82,32,57,251,175,0,14,65, +32,0,242,127,255,157,86,208,0,242,127,28,155,123,128,0,242,143,11,153,191,48,0,244,174,12,135,251,0,5,255,252, +45,119,244,1,111,197,216,127,93,245,29,19,3,244,2,203,157,108,0,5,176,9,160,27,229,0,0,0,0,0,0,0, +0,12,176,0,11,208,0,10,207,252,204,207,252,176,3,79,244,68,79,244,64,0,12,254,238,239,208,0,0,12,193,17, +28,208,0,0,12,255,255,255,208,0,0,12,192,0,12,208,0,143,255,255,255,255,255,248,36,127,212,231,77,247,66,57, +239,187,255,187,142,180,40,34,51,248,51,1,97,6,187,187,255,187,187,16,9,255,255,255,255,255,16,0,210,0,242,0, +242,0,0,242,34,245,34,245,32,0,242,223,255,255,255,241,18,245,16,242,64,242,0,127,255,128,90,248,81,0,0,242, +1,190,125,178,0,0,243,126,212,19,191,129,0,243,183,207,255,228,128,0,242,1,17,17,17,0,1,253,153,255,255,255, +0,110,250,57,144,0,79,0,71,16,9,162,34,111,0,0,0,9,255,255,255,0,0,0,0,2,0,0,0,1,17,17, +127,81,17,16,79,255,255,255,255,255,244,79,177,41,17,41,27,244,78,252,239,204,239,207,228,0,170,223,170,223,170,0, +0,25,207,153,207,153,0,0,20,111,68,111,67,0,11,255,255,255,255,255,248,4,104,253,124,111,248,99,6,190,217,207, +169,174,181,7,65,68,143,84,18,113,5,187,187,255,203,187,96,6,255,255,255,255,255,128,0,0,0,0,0,0,0,0, +210,0,0,140,0,0,0,242,13,255,255,255,240,0,242,1,17,216,17,16,18,245,32,136,251,136,32,143,255,160,248,183, +126,80,0,242,0,250,136,143,80,0,242,0,254,204,207,80,0,242,0,246,68,79,80,0,245,96,249,119,127,80,22,255, +220,253,204,207,246,127,197,60,206,204,236,198,35,0,1,159,65,219,32,0,0,78,179,0,26,226,0,0,3,0,0,0, +48,0,242,0,0,242,0,0,0,242,79,255,255,255,128,0,242,2,146,244,56,16,73,252,64,166,242,171,0,92,254,80, +39,244,178,0,0,242,207,255,255,255,240,0,242,35,51,51,51,48,0,242,12,255,255,255,112,0,252,92,180,85,44,112, +76,249,28,186,74,124,112,57,32,12,186,189,108,112,0,0,12,193,17,29,112,0,0,12,255,255,255,112,0,0,0,16, +0,16,0,0,242,0,228,0,190,16,0,242,0,153,4,247,0,0,242,12,220,255,252,176,18,245,31,133,244,103,224,111, +255,143,134,241,214,224,0,242,15,38,245,83,224,0,242,15,255,255,255,224,0,242,3,51,51,51,48,0,242,2,255,255, +255,80,20,255,146,210,34,47,80,92,132,18,248,136,143,80,0,0,2,255,255,255,80,0,0,2,192,0,15,80,0,0, +0,47,0,0,0,7,238,238,255,238,238,230,1,34,34,95,34,34,33,0,123,187,239,187,187,144,0,88,136,136,136,136, +96,0,73,85,85,85,85,48,0,207,204,239,204,207,144,0,203,0,47,0,15,144,0,223,204,223,204,207,144,1,255,119, +119,119,127,144,4,244,0,0,0,3,32,11,208,0,0,0,0,0,8,64,0,0,0,0,0,0,12,64,0,79,48,0, +0,63,48,0,79,48,0,0,111,50,64,79,48,0,0,175,255,249,79,48,0,0,248,3,246,79,243,0,5,250,6,244, +79,206,32,12,253,10,224,79,59,193,25,62,94,160,79,49,212,0,9,255,64,79,48,0,0,3,255,0,79,48,0,0, +28,255,161,22,16,0,3,223,68,239,184,118,101,46,211,0,22,189,239,248,3,0,0,0,0,0,0,0,0,2,0,0, +0,0,0,0,63,128,0,0,0,0,4,255,255,255,244,0,1,143,246,34,95,208,0,8,230,159,136,249,16,0,0,16, +61,255,244,16,0,39,173,253,118,191,252,148,45,203,100,68,69,155,177,0,159,255,255,255,250,0,0,156,0,111,0,186, +0,0,159,238,255,238,250,0,0,157,17,127,17,202,0,0,159,187,255,187,250,0,0,159,136,136,136,250,0,0,0,0, +0,0,0,0,0,3,16,0,0,0,0,0,30,113,17,17,17,16,0,191,255,255,255,255,224,27,198,85,85,85,85,0, +7,31,118,102,102,223,0,0,15,221,221,221,239,0,0,15,135,119,119,223,0,0,6,251,85,85,85,0,0,31,255,255, +255,247,0,4,237,231,0,110,193,0,1,80,45,255,248,0,0,39,155,239,255,254,202,132,43,151,65,0,3,104,162,0, +0,0,64,0,0,0,0,0,7,243,0,0,0,0,0,31,194,34,36,16,0,0,175,255,255,255,192,0,8,244,0,0, +127,112,0,159,113,0,0,223,32,12,246,110,96,7,249,0,3,64,7,251,62,225,0,0,0,0,63,255,64,0,0,0, +0,63,246,0,0,0,0,7,238,80,0,0,0,22,223,178,0,0,0,2,239,181,0,0,0,0,0,82,0,0,0,0, +0,0,0,0,0,0,0,0,0,46,32,0,111,0,0,0,110,0,0,111,0,0,0,175,255,249,111,0,0,2,247,38, +247,111,0,0,8,208,6,244,111,178,0,63,132,10,241,111,205,32,41,127,142,176,111,28,226,0,5,255,80,111,1,215, +0,1,252,0,111,0,16,0,11,243,0,111,0,0,1,191,112,0,111,0,0,61,247,0,0,111,0,0,26,64,0,0, +111,0,0,0,0,0,32,0,0,0,0,0,5,247,0,0,0,0,0,127,255,255,246,0,0,59,248,34,63,241,0,3, +252,135,1,190,48,0,0,48,95,221,227,0,0,0,0,79,251,120,0,0,4,124,250,55,248,34,64,8,183,33,159,255, +255,249,0,1,126,211,0,45,226,0,29,214,122,19,223,64,0,2,0,46,255,211,0,0,1,55,191,248,16,0,10,223, +254,165,0,0,0,5,116,32,0,0,0,0,0,0,0,0,0,0,0,0,10,128,0,0,200,0,0,2,249,71,32,175, +255,247,0,159,220,250,189,49,175,32,79,64,11,151,109,159,128,2,255,249,184,1,255,176,0,9,196,156,135,239,242,0, +0,155,73,199,202,191,34,16,9,180,156,112,95,255,255,16,156,89,214,127,96,11,160,9,255,157,141,106,39,226,0,155, +0,229,0,159,245,0,0,2,79,49,109,244,0,0,0,159,165,254,129,0,0,0,0,0,3,0,0,0,0,0,0,0, +187,0,0,0,0,0,0,186,0,0,0,0,0,0,201,0,0,0,0,0,0,216,0,0,0,47,255,255,255,255,255,243, +22,102,105,255,134,102,97,0,0,7,255,128,0,0,0,0,13,168,225,0,0,0,0,111,66,233,0,0,0,3,234,0, +127,80,0,0,62,209,0,11,246,0,24,252,32,0,1,191,178,28,129,0,0,0,7,193,0,0,0,0,0,0,0,4, +119,119,119,119,119,64,8,221,221,255,221,221,112,0,0,0,201,0,0,0,0,0,0,200,0,0,0,5,85,85,253,85, +85,81,31,255,255,255,255,255,242,0,0,4,255,48,0,0,0,0,11,219,176,0,0,0,0,127,83,248,0,0,0,7, +249,0,127,128,0,4,191,128,0,7,252,96,63,196,0,0,0,76,244,2,0,0,0,0,0,32,0,0,0,186,0,0, +0,0,0,0,186,0,0,0,0,0,0,201,0,0,0,3,51,51,251,51,51,49,63,255,255,255,255,255,244,3,51,54, +255,115,51,49,0,0,7,236,160,0,0,0,0,12,165,242,0,0,0,0,95,64,219,0,0,0,2,237,16,95,112,0, +0,61,238,210,9,246,0,23,237,34,221,16,175,162,62,145,0,45,48,7,227,1,0,0,0,0,0,16,0,8,80,155, +0,0,0,0,31,96,155,0,0,0,0,111,101,239,85,85,0,0,223,255,255,255,255,16,6,243,0,155,0,0,0,9, +144,0,170,0,0,0,5,85,85,254,85,85,83,15,255,255,255,255,255,248,0,0,6,255,144,0,0,0,0,30,181,245, +0,0,0,2,206,32,174,80,0,1,126,211,0,27,251,64,29,249,16,0,0,110,249,3,16,0,0,0,0,65,0,5, +32,7,224,0,0,0,28,249,23,224,0,0,0,0,110,135,224,0,0,0,114,2,24,208,0,0,3,223,128,9,192,0, +0,0,7,245,10,160,0,0,2,34,66,47,162,34,33,15,255,255,255,255,255,248,0,0,0,126,16,0,0,0,0,3, +248,149,0,0,0,0,78,193,126,195,0,0,75,250,16,1,175,144,11,252,80,0,0,5,228,2,32,0,0,0,0,16, +0,0,0,184,0,0,0,0,0,2,246,0,0,0,143,255,255,255,255,255,240,18,35,191,117,249,34,32,0,92,245,0, +62,196,0,110,251,48,0,4,175,225,23,48,0,0,47,66,80,15,255,255,255,255,255,241,2,44,98,34,79,98,32,0, +8,226,0,47,64,0,0,0,188,0,47,64,0,0,0,37,34,79,64,0,0,0,0,127,251,16,0,0,0,0,0,0, +0,0,0,0,0,142,0,0,0,0,34,34,206,34,34,32,3,255,255,255,255,255,240,0,0,27,254,148,0,0,2,122, +233,18,123,234,64,40,235,118,102,102,141,130,78,238,238,238,238,255,229,0,17,17,17,0,156,0,0,239,255,255,16,156, +0,0,230,0,63,16,156,0,0,230,17,79,16,156,0,0,239,255,255,66,172,0,0,213,0,0,239,231,0,0,0,0, +0,0,0,0,0,0,3,178,0,0,0,1,17,27,209,17,17,16,47,255,255,255,255,255,242,1,19,252,17,190,33,16, +0,45,193,0,28,194,0,6,235,239,255,254,190,129,94,112,34,34,34,6,211,1,119,119,119,119,119,0,0,255,255,255, +255,255,16,0,5,32,170,2,32,0,0,126,48,170,8,229,0,10,229,17,186,0,127,96,5,48,111,230,0,6,48,0, +0,0,0,0,0,0,0,0,0,185,0,0,0,0,0,1,230,0,0,0,15,255,255,255,255,255,240,2,34,79,172,211, +34,32,0,2,204,1,220,32,0,2,159,211,34,62,250,48,95,255,255,255,255,255,243,3,140,0,169,0,215,32,0,140, +17,186,17,231,0,0,143,255,255,255,247,0,0,140,0,169,0,215,0,0,143,187,255,187,247,0,0,143,136,136,136,247, +0,0,0,3,113,0,0,0,2,34,44,242,34,34,32,47,255,255,255,255,255,242,0,2,233,33,141,32,0,0,94,177, +186,26,230,0,59,248,255,255,255,142,212,25,48,0,185,0,1,129,0,255,255,255,255,255,16,0,68,68,237,68,68,0, +0,143,255,255,255,250,0,0,17,17,203,17,17,0,0,0,0,185,0,0,0,14,255,255,255,255,255,240,0,0,0,0, +0,0,0,0,0,0,170,0,0,0,4,255,255,255,255,255,128,0,17,18,246,17,17,16,0,191,255,255,255,254,0,0, +17,29,145,17,17,0,15,255,255,255,255,255,248,1,22,246,17,79,129,16,0,127,221,255,220,235,48,29,212,18,187,33, +26,249,3,143,255,255,255,250,33,0,1,27,229,199,16,0,0,39,236,33,109,232,16,1,219,80,0,0,93,80,0,0, +0,0,0,0,0,0,0,1,81,0,0,0,2,34,42,243,34,34,32,47,255,255,255,255,255,242,0,5,248,0,95,96, +0,1,159,255,255,255,251,48,78,236,208,0,0,44,245,6,24,253,221,221,96,64,0,8,247,119,119,48,0,0,8,245, +85,85,32,0,47,255,255,255,255,255,243,21,88,255,101,110,133,81,0,62,160,1,43,242,0,0,255,239,255,237,253,16, +0,67,33,0,0,23,16,0,0,5,160,0,0,0,0,0,11,192,0,0,0,0,0,31,112,0,0,0,22,102,207,134, +102,102,98,63,255,255,255,255,255,244,0,4,245,0,14,128,0,0,10,224,0,79,64,0,0,79,144,0,173,0,0,0, +143,251,69,246,0,0,0,0,92,255,240,0,0,0,0,24,255,253,80,0,20,123,254,128,76,252,64,30,251,113,0,0, +110,160,2,0,0,0,0,1,16,0,0,0,0,0,0,0,0,214,2,68,68,99,0,0,244,7,255,255,249,0,56,246, +147,31,32,246,0,143,255,248,31,35,242,0,8,176,246,47,22,224,0,11,129,245,63,9,255,248,15,68,242,78,2,51, +247,79,136,224,123,0,1,246,6,255,144,153,0,2,245,0,159,224,229,0,3,244,1,223,230,225,0,5,242,27,209,45, +144,19,43,224,92,32,77,16,31,254,80,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,140,0,0,0,0,16, +0,169,0,111,255,255,245,0,215,0,20,68,78,241,79,255,255,96,0,126,48,22,243,95,80,5,244,0,7,192,95,32, +6,240,0,12,144,158,143,255,255,255,15,241,218,18,40,242,34,3,223,244,0,6,240,0,0,31,245,0,6,240,0,0, +159,175,64,6,240,0,26,245,7,34,39,240,0,44,48,0,8,254,144,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,109,0,0,0,0,0,0,139,0,5,119,119,80,0,169,0,11,253,223,160,143,255,255,203,176,11,160,19,245, +47,187,176,11,160,4,240,14,155,176,11,160,8,176,63,107,176,11,160,15,240,111,43,176,11,160,8,251,220,11,176,11, +160,0,63,248,11,176,11,160,0,47,254,59,226,45,160,3,221,43,139,255,255,160,79,161,1,11,176,9,144,3,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,228,0,0,0,0,0,1,242,0,255,255,255,112,3,240,0,51,34,79,96, +143,255,251,139,0,79,64,45,229,250,153,0,111,32,12,115,248,183,0,127,16,31,70,245,255,255,255,243,111,57,242,51, +34,34,209,30,239,192,0,0,0,208,0,223,196,255,255,243,208,1,223,246,34,34,36,176,44,226,117,0,2,42,128,76, +32,0,0,9,253,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,229,0,0,0,2,16,0,243,0,19,105, +207,160,2,241,0,156,191,146,0,127,255,251,0,31,64,0,26,210,250,0,31,64,0,11,128,248,34,79,98,33,14,82, +246,255,255,255,244,63,38,242,0,95,144,0,79,188,208,0,159,208,0,2,255,160,1,230,244,0,0,207,243,9,192,172, +0,9,245,200,127,48,46,144,126,80,21,245,0,4,228,2,0,0,32,0,0,16,0,197,0,0,47,0,0,0,244,0, +0,47,0,0,3,241,0,5,47,41,16,175,255,251,47,63,29,112,27,194,250,93,47,7,208,12,97,248,153,47,1,244, +31,52,245,181,47,0,65,111,104,242,0,47,9,144,6,255,192,0,26,63,64,0,143,243,0,2,218,0,2,236,171,0, +110,177,0,61,209,5,158,232,0,0,74,16,5,199,16,0,0,0,0,0,0,0,0,0,0,198,0,0,0,0,0,0, +228,0,255,255,255,240,20,244,65,244,34,36,240,143,255,248,242,0,2,240,42,243,247,244,34,36,240,10,129,246,255,255, +255,240,13,83,243,243,0,3,240,63,102,240,242,0,2,240,30,255,176,244,34,36,240,0,159,224,255,255,255,240,0,175, +246,0,0,0,0,7,244,115,34,34,34,34,111,96,12,255,255,255,251,3,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,228,0,0,154,0,0,2,242,0,1,229,0,0,4,224,0,8,208,134,0,159,255,248,47,80,79,48,28,179,248, +255,154,191,240,13,82,248,253,169,135,245,47,37,243,0,0,0,32,95,120,224,207,255,255,160,6,255,160,204,34,44,160, +0,143,208,204,0,11,160,0,191,246,204,0,11,160,7,209,119,206,34,46,160,91,16,0,207,255,255,160,0,0,0,0, +0,0,0,2,226,0,0,15,32,0,4,240,0,0,15,32,0,24,243,65,0,15,32,0,159,255,250,255,255,255,243,11, +144,249,34,47,82,32,14,98,247,0,15,32,0,47,53,244,0,15,32,0,127,72,241,126,239,254,144,9,255,176,142,102, +109,160,0,207,192,141,0,12,160,2,239,246,141,0,12,160,78,226,102,143,255,255,160,76,32,0,143,34,46,160,0,0, +0,17,0,0,0,0,0,0,0,0,0,0,0,229,0,18,15,32,0,1,243,0,92,15,32,0,39,244,114,137,15,32, +0,143,253,249,255,255,255,224,9,145,250,243,47,82,32,13,99,253,128,15,32,0,47,38,243,16,15,32,0,95,155,240, +175,255,255,176,2,223,192,34,47,82,32,0,143,242,0,15,32,0,3,251,118,0,15,32,0,94,226,6,187,191,219,179, +93,48,8,255,255,255,244,1,0,0,0,0,0,0,0,0,1,36,87,147,0,1,239,254,255,185,99,0,0,17,0,169, +0,0,0,63,255,255,255,255,255,243,2,34,175,238,252,66,32,1,109,177,169,43,250,81,30,213,5,215,0,92,246,4, +34,79,146,34,34,65,15,255,255,255,255,255,252,0,9,242,0,111,48,0,0,79,252,172,247,0,0,0,2,109,255,253, +148,0,13,255,218,81,21,174,176,3,49,0,0,0,1,0,0,0,0,0,0,0,0,0,213,0,0,151,0,0,0,243, +0,0,151,4,225,1,241,0,255,255,252,128,95,255,247,34,186,173,16,26,245,246,0,156,244,0,9,146,251,255,255,255, +247,12,101,244,105,255,102,99,31,56,224,111,240,7,48,47,190,187,248,245,205,80,1,255,104,50,252,96,0,0,207,209, +2,240,0,130,26,226,166,2,243,35,228,93,48,0,0,191,255,193,1,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,79,77,64,1,49,17,17,95,39,176,9,255,255,255,255,255,245,9,225,17,17,63,33,16,9,237,255,255, +143,37,144,9,224,79,16,15,58,160,9,208,154,1,14,94,96,10,223,255,255,108,191,16,11,183,208,111,42,250,0,13, +158,251,247,12,243,32,31,80,79,251,95,241,120,110,26,213,11,252,201,166,87,3,0,9,177,61,209,0,0,0,0,0, +0,0,0,197,0,0,15,32,0,0,243,0,0,15,32,0,2,242,16,175,255,255,224,111,255,249,34,63,66,32,25,211, +248,0,15,32,0,10,131,248,255,255,255,247,14,85,244,136,141,136,131,31,169,241,0,15,32,0,4,239,208,239,255,255, +243,0,127,243,34,63,66,32,1,221,187,0,15,32,0,44,226,27,204,207,236,200,44,32,7,136,136,136,134,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,198,0,1,36,122,64,0,213,0,95,255,216,64,1,244,32,0,79,0,0, +95,255,248,34,190,34,33,26,244,247,255,255,255,248,8,161,245,10,208,125,16,11,100,243,158,48,11,194,15,88,228,217, +160,75,182,31,239,144,23,192,109,0,0,207,160,9,160,109,0,1,223,246,13,112,109,0,60,209,100,142,16,109,0,59, +16,1,212,0,109,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,199,0,0,62,16,0,0,213,0,20,47, +114,32,0,243,0,159,255,255,160,79,254,248,155,0,11,160,23,243,248,159,255,255,160,8,162,247,157,34,45,160,12,116, +244,157,34,44,160,31,71,241,159,255,255,160,47,205,192,155,14,65,128,1,255,144,155,8,253,177,0,191,243,155,1,254, +0,8,246,167,191,155,79,161,79,96,17,255,148,4,212,2,0,0,64,0,0,0,4,180,0,0,199,0,0,0,108,47, +254,255,239,240,43,64,47,49,216,25,128,24,226,63,221,255,223,64,0,55,111,223,135,239,16,2,215,201,8,255,210,0, +29,135,228,190,222,237,178,3,0,55,161,0,2,64,63,255,255,255,255,255,244,1,22,245,17,62,161,16,0,63,251,138, +251,0,0,2,52,143,255,253,149,16,47,237,167,64,21,158,177,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +6,176,1,194,1,193,0,0,137,0,10,160,139,0,0,26,130,26,207,175,218,128,11,255,250,70,244,246,67,0,14,44, +156,255,255,255,16,2,224,216,19,241,244,241,0,107,31,159,255,255,255,192,13,212,242,3,240,243,241,0,127,253,12,255, +255,255,16,0,63,240,31,240,255,16,0,8,253,152,223,15,217,0,7,244,42,228,240,244,232,0,148,0,67,47,15,35, +48,0,0,0,0,0,0,0,0,159,255,255,255,255,112,0,18,34,34,38,254,16,0,0,0,0,111,161,0,0,0,0, +45,247,0,0,0,0,0,111,48,0,0,2,34,34,143,34,34,33,31,255,255,255,255,255,249,0,0,0,111,0,0,0, +0,0,0,111,0,0,0,0,0,0,111,0,0,0,0,0,34,127,0,0,0,0,0,207,233,0,0,0,0,0,0,0, +0,0,0,0,0,2,129,0,0,0,2,34,35,251,34,34,32,15,255,255,255,255,255,240,15,32,0,0,0,6,240,12, +47,255,255,255,148,192,0,2,34,36,239,80,0,0,0,0,77,194,0,0,18,34,34,254,50,34,32,95,255,255,255,255, +255,192,0,0,0,246,0,0,0,0,0,0,246,0,0,0,0,1,35,246,0,0,0,0,2,255,194,0,0,0,0,0, +0,0,0,0,0,0,0,9,80,0,0,0,0,0,47,80,0,0,0,63,255,255,255,255,255,243,2,36,249,34,34,34, +32,0,9,209,34,34,35,0,0,127,81,255,255,255,64,5,255,0,0,43,229,0,95,253,0,0,143,16,0,55,125,63, +255,255,255,246,0,125,2,34,159,34,33,0,125,0,0,125,0,0,0,125,0,34,157,0,0,0,125,0,127,232,0,0, +0,0,0,0,0,0,0,0,33,1,96,0,34,0,0,217,2,246,0,205,0,2,111,66,186,43,245,32,15,255,255,255, +255,255,240,15,33,17,17,18,2,240,11,63,255,255,255,178,176,0,1,17,74,252,48,0,0,0,0,254,48,0,0,127, +255,255,255,255,255,240,18,34,34,248,34,34,32,0,0,0,245,0,0,0,0,1,35,245,0,0,0,0,4,255,194,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,227,0,0,0,0,0,0,199,0,0,0,15,255, +255,255,255,255,80,15,66,34,34,34,63,80,11,32,0,0,0,11,64,36,68,68,68,68,68,48,111,255,255,255,255,255, +160,0,0,1,244,0,0,0,0,0,1,244,0,0,0,0,0,1,244,0,0,0,0,0,1,244,0,0,0,0,4,86, +244,0,0,0,0,7,255,193,0,0,0,0,0,0,0,0,0,0,0,0,2,194,0,0,0,0,0,0,217,0,0,0, +15,255,255,255,255,255,96,15,114,34,34,34,47,96,14,105,32,0,0,14,80,0,31,64,0,6,0,0,0,31,64,56, +239,96,0,0,31,204,253,129,0,0,0,31,248,48,0,0,0,0,31,64,0,0,19,0,0,31,64,0,0,63,48,0, +15,130,34,34,158,0,0,7,223,255,255,230,0,0,0,2,178,0,0,0,2,34,34,250,34,34,32,15,255,255,255,255, +255,240,15,80,0,0,17,6,240,10,48,0,0,246,4,160,18,34,34,34,248,34,32,143,255,255,255,255,255,224,0,19, +0,0,246,0,0,0,110,48,0,246,0,0,0,9,209,0,246,0,0,0,1,212,0,246,0,0,0,0,1,34,245,0, +0,0,0,4,255,194,0,0,0,0,0,16,0,0,0,0,0,2,163,0,0,0,2,34,35,252,34,34,32,12,255,255, +255,255,255,192,12,128,3,97,0,9,192,9,96,11,208,0,7,144,2,34,95,130,34,34,32,47,255,255,255,255,255,242, +0,5,244,0,79,64,0,0,47,243,0,204,0,0,0,24,207,223,242,0,0,0,0,7,255,249,32,0,1,72,223,146, +126,250,32,10,252,130,0,0,126,128,1,16,0,0,0,1,0,0,0,3,162,0,0,0,2,34,35,251,34,34,32,15, +255,255,255,255,255,240,15,32,0,0,0,6,240,15,47,255,255,255,118,240,0,2,34,34,34,16,0,41,153,153,153,153, +153,146,79,255,255,255,255,255,244,0,0,231,4,241,0,0,0,2,244,4,241,0,0,0,8,225,4,241,0,132,2,143, +96,4,244,35,213,63,196,0,1,191,255,193,1,0,0,0,0,0,0,0,0,0,134,0,0,0,2,34,34,175,50,34, +32,13,255,255,255,255,255,208,13,112,0,0,0,8,208,4,50,34,34,34,36,64,47,255,255,255,255,255,241,0,0,173, +16,0,0,0,0,9,246,34,34,34,0,0,143,255,255,255,255,0,44,238,176,0,0,95,0,42,40,176,0,0,95,0, +0,8,255,255,255,255,0,0,8,210,34,34,143,0,0,1,16,0,0,0,0,0,0,0,149,0,0,0,2,34,34,223, +34,34,32,15,255,255,255,255,255,240,15,32,0,0,0,5,240,15,40,136,136,136,134,240,0,12,204,255,204,193,0,0, +3,16,187,0,0,0,0,47,48,190,34,34,0,0,95,16,191,255,252,0,0,175,96,187,0,0,0,2,235,228,187,0, +0,0,11,192,143,255,67,34,33,94,32,3,175,239,255,244,1,0,0,0,0,0,0,0,0,0,149,0,0,0,2,34, +34,189,34,34,32,15,255,255,255,255,255,240,15,32,0,0,0,5,240,14,39,255,255,255,85,224,0,7,210,34,47,80, +0,0,7,226,34,47,80,0,0,7,255,255,255,80,0,0,7,192,0,15,80,0,0,7,255,255,255,80,0,0,7,225, +17,31,80,0,27,191,251,187,191,251,177,25,153,153,153,153,153,145,0,0,0,121,0,0,0,1,17,17,111,65,17,16, +47,255,255,255,255,255,242,47,193,17,17,17,28,242,46,246,102,102,102,111,226,0,238,238,255,238,238,0,0,0,0,127, +0,0,0,0,2,34,159,34,34,0,0,15,255,255,255,251,0,0,0,0,127,11,96,0,0,0,0,127,2,213,0,8, +187,187,255,187,220,180,7,170,170,170,170,170,164,0,0,0,133,0,0,0,2,34,34,207,50,34,32,12,255,255,255,255, +255,208,12,131,128,27,48,8,208,9,100,234,47,64,6,160,0,49,41,63,48,0,0,0,158,96,95,16,0,0,0,5, +64,141,0,0,0,15,255,255,255,255,255,242,2,34,42,246,115,34,32,0,1,159,115,222,146,0,5,175,229,0,4,207, +128,5,165,0,0,0,5,112,0,0,0,82,0,0,0,2,34,34,221,34,34,32,15,255,255,255,255,255,240,15,32,45, +96,1,5,240,10,19,255,255,255,163,160,2,159,251,18,207,64,0,5,162,44,255,228,0,0,0,3,142,255,233,65,0, +58,223,232,50,141,255,212,41,109,255,255,255,244,96,0,11,176,0,11,240,0,0,11,210,34,44,240,0,0,11,255,255, +255,240,0,0,0,0,0,0,0,0,0,0,0,66,0,0,0,2,34,34,253,34,34,32,14,255,255,255,255,255,224,14, +97,17,17,17,22,224,10,79,255,255,255,244,160,0,0,0,0,0,0,0,0,15,255,255,255,224,0,0,15,64,0,6, +224,0,0,15,255,255,255,224,0,0,15,64,0,6,224,0,0,15,255,255,255,224,0,2,34,34,34,34,34,32,63,255, +255,255,255,255,242,0,0,0,48,0,0,0,0,0,2,245,0,0,0,15,255,255,255,255,255,128,15,66,34,67,34,41, +128,10,121,153,255,153,150,96,0,36,68,250,68,64,0,2,255,255,255,255,249,0,1,17,17,247,17,17,16,127,255,255, +255,255,255,192,18,34,34,248,34,34,32,0,191,255,255,255,249,0,0,189,102,102,102,249,0,0,189,17,17,17,249,0, +0,191,255,255,255,249,0,0,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,4,244,0,0,0,15,255,255,255, +255,255,240,15,66,34,34,34,39,240,15,50,34,66,34,37,240,0,79,255,255,255,208,0,0,3,191,112,0,84,0,6, +206,118,242,8,248,0,7,97,76,253,255,48,0,2,125,196,159,159,48,0,11,164,42,239,27,209,0,0,57,233,47,17, +220,48,29,233,66,142,0,43,244,4,16,79,229,0,0,64,0,0,0,0,0,0,0,0,0,1,97,0,0,0,2,34, +36,249,34,34,32,15,255,255,255,255,255,240,15,32,97,0,81,5,240,8,41,209,17,206,99,128,3,205,34,251,7,235, +16,7,177,28,255,112,44,64,0,4,235,20,235,32,0,1,159,162,34,76,249,48,79,255,255,255,255,251,244,5,111,0, +0,11,176,32,0,111,34,34,45,176,0,0,111,255,255,255,176,0,0,1,0,0,0,0,0,0,0,0,17,0,0,0, +1,17,17,203,17,17,16,15,255,255,255,255,255,208,15,49,17,119,17,23,208,13,191,255,255,255,249,176,0,17,25,253, +114,16,0,0,89,220,69,191,161,0,40,239,200,136,138,248,128,79,255,255,255,255,255,241,0,0,0,0,0,242,0,0, +207,255,255,32,242,0,0,204,0,31,32,242,0,0,207,255,255,66,242,0,0,152,0,0,223,192,0,0,0,0,0,0, +0,0,0,0,0,48,0,0,0,0,0,1,244,0,0,0,15,255,255,255,255,255,160,15,66,75,66,35,43,160,12,32, +23,212,109,24,128,1,210,242,41,229,197,0,9,192,245,189,52,127,64,62,35,255,145,12,104,208,41,222,255,255,254,16, +48,43,97,0,148,16,0,0,0,196,0,245,0,201,0,0,245,0,245,0,201,0,0,252,187,255,187,249,0,0,153,153, +153,153,249,0,0,0,0,0,0,47,0,0,0,0,0,0,47,0,62,238,239,128,0,47,0,41,153,191,146,34,95,33, +0,0,79,110,255,255,249,8,80,143,48,0,47,0,6,248,221,6,96,47,0,0,79,249,5,226,47,0,0,14,253,0, +201,47,0,0,79,207,160,67,47,0,2,237,22,226,0,47,0,61,226,0,16,37,127,0,43,32,0,0,31,232,0,0, +15,32,0,0,47,0,1,31,65,0,0,47,0,79,255,255,80,0,47,0,1,31,65,7,153,191,147,0,15,32,10,221, +255,212,175,255,255,160,0,47,0,53,94,101,50,176,47,0,18,47,82,16,230,47,0,95,255,255,112,125,63,0,0,15, +32,0,20,47,0,0,15,102,112,0,47,0,157,255,252,144,18,95,0,85,49,0,0,31,232,0,0,0,0,0,0,0, +0,0,15,32,5,227,0,0,1,15,32,111,255,255,80,77,31,91,231,17,158,16,11,191,73,78,72,228,0,2,207,32, +11,254,48,0,0,15,71,207,129,129,0,0,15,75,97,0,242,0,1,191,175,255,255,255,192,45,191,68,146,34,245,32, +58,15,35,246,0,242,0,0,15,32,126,16,242,0,0,15,32,3,35,242,0,0,15,32,0,223,176,0,0,0,0,0, +0,0,0,0,0,0,127,0,0,0,0,0,0,127,0,0,0,0,0,0,127,0,0,0,0,40,32,127,0,117,0,0, +111,32,127,0,173,0,0,158,0,127,0,63,96,0,233,0,127,0,11,192,5,243,0,127,0,5,244,12,192,0,127,0, +0,233,44,48,0,127,0,0,172,0,0,0,127,0,0,32,0,0,34,143,0,0,0,0,0,207,232,0,0,0,0,0, +0,0,0,0,0,0,0,0,242,0,0,0,0,0,0,242,0,0,0,0,59,16,242,4,160,0,0,155,0,242,2,230, +0,2,244,0,242,0,126,16,11,176,0,242,0,13,128,62,48,0,242,0,6,192,1,0,0,242,1,146,0,0,0,0, +162,28,193,0,0,0,0,4,221,32,0,0,0,22,207,145,0,0,71,157,254,147,0,0,0,93,168,65,0,0,0,0, +0,1,197,0,0,0,0,0,7,242,0,0,0,0,0,31,248,136,136,136,245,0,159,255,255,255,255,247,5,246,0,111, +0,11,208,47,160,0,111,0,63,64,4,22,128,111,2,146,0,0,30,144,111,2,234,0,0,174,16,111,0,95,112,7, +245,0,111,0,10,243,9,112,0,111,0,2,197,0,0,69,159,0,0,0,0,0,127,232,0,0,0,0,0,0,141,0, +0,0,0,6,112,141,3,161,0,0,46,96,141,1,203,0,0,187,0,141,0,46,128,9,226,0,141,0,5,243,2,48, +0,106,0,0,64,0,0,0,156,0,0,0,15,255,255,255,255,255,248,2,34,36,255,146,34,33,0,0,10,230,227,0, +0,0,2,191,64,158,96,0,7,191,195,0,7,238,148,7,132,0,0,0,23,178,1,97,0,111,16,7,32,1,217,0, +111,16,63,32,0,79,48,111,16,184,0,0,9,48,111,17,160,0,2,221,221,255,237,223,96,2,248,136,136,136,143,128, +2,240,19,34,34,12,128,2,240,159,255,255,12,128,2,240,158,0,47,12,128,2,240,159,34,79,12,128,2,240,159,255, +255,12,128,2,240,140,0,1,45,112,2,240,0,0,4,237,48,0,73,0,187,0,151,0,0,63,128,187,7,244,0,10, +191,219,255,190,251,160,13,237,221,221,221,222,208,13,128,0,0,0,8,208,8,191,255,255,255,249,128,0,18,34,34,34, +33,0,2,34,34,34,34,34,32,63,255,255,255,255,255,242,0,1,205,16,57,16,0,0,11,227,0,29,193,0,1,207, +150,120,156,254,0,4,255,236,186,151,159,112,0,48,0,0,0,4,0,0,0,0,0,0,0,0,0,228,0,0,10,192, +0,0,228,0,0,47,241,0,75,255,187,64,204,186,0,111,255,255,123,226,30,128,0,243,245,189,48,3,213,0,242,245, +19,240,47,16,2,241,245,2,240,47,0,3,224,245,3,224,47,0,6,208,245,7,192,47,0,9,160,245,78,112,47,0, +13,112,245,124,0,43,33,79,48,233,51,34,35,201,91,0,109,255,255,255,210,1,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,198,0,0,243,48,0,20,77,244,64,15,61,80,4,255,255,255,32,242,61,0,0,0,0,3,79,83, +97,0,159,255,249,207,255,255,48,9,128,10,144,62,0,0,0,157,187,233,5,238,48,0,7,191,251,112,139,243,0,0, +55,138,131,11,143,48,0,8,152,168,162,243,243,0,0,212,138,44,139,47,48,160,58,25,160,62,66,243,46,0,9,230, +8,128,12,255,128,0,0,0,0,0,0,0,0,2,240,0,3,224,163,0,2,240,1,227,224,243,16,2,240,1,227,226, +255,249,127,255,245,227,231,164,0,94,255,244,227,236,91,96,3,248,161,146,177,0,145,4,232,160,0,0,0,0,5,216, +160,254,254,254,208,7,184,160,240,240,211,208,9,152,168,251,251,254,247,13,104,167,153,153,153,151,47,39,210,17,17,17, +125,76,2,190,255,255,255,230,1,0,0,0,0,0,0,0,223,255,255,255,255,16,0,223,34,34,34,79,16,0,222,34, +34,34,63,16,0,223,255,255,255,255,16,0,236,5,16,0,0,0,0,236,15,32,0,34,0,0,250,15,32,75,251,0, +1,249,15,157,251,80,0,4,246,15,247,32,0,0,7,242,15,32,0,5,176,12,208,14,98,34,41,176,63,96,8,239, +255,254,64,5,0,0,0,0,0,0,0,159,255,255,255,255,32,0,159,34,34,34,95,32,0,158,0,0,0,79,32,0, +175,255,255,255,255,32,0,189,34,34,79,114,0,0,233,4,16,10,176,0,3,245,61,250,83,246,0,10,224,0,58,225, +143,64,95,112,0,0,16,11,245,24,5,234,98,0,0,96,0,1,89,223,198,16,0,0,0,0,4,159,64,0,0,0, +0,0,1,0,0,0,191,255,255,255,255,241,0,11,243,34,34,34,79,16,0,191,50,34,34,36,241,0,11,255,255,255, +255,255,16,0,191,0,0,242,0,0,0,11,242,36,31,112,42,32,0,223,255,248,255,61,193,0,14,192,47,63,255,144, +0,2,249,10,192,245,247,0,0,95,87,227,15,36,250,32,12,229,212,35,242,3,203,0,133,0,4,252,0,0,16,0, +0,0,0,0,0,0,0,0,207,255,255,255,255,144,0,206,34,34,34,47,144,0,206,34,34,34,47,144,0,207,255,255, +255,255,144,0,222,34,34,34,34,65,0,239,255,255,255,255,250,0,249,2,17,17,0,233,3,247,143,255,255,0,248,6, +243,142,0,47,1,247,12,208,142,17,63,3,246,95,112,143,255,255,40,243,25,0,123,0,8,254,160,0,143,255,255,255, +255,242,0,8,243,34,34,34,63,32,0,143,50,34,34,35,242,0,8,255,255,255,255,255,32,0,143,175,0,15,32,0, +0,9,249,240,0,242,10,64,0,174,159,255,175,92,211,0,12,201,242,34,255,129,0,0,234,159,0,15,64,0,0,63, +89,240,2,242,1,160,9,225,175,174,175,82,94,0,199,15,249,81,159,254,128,0,0,48,0,0,0,0,0,0,191,255, +255,255,255,244,0,11,243,34,34,34,63,64,0,191,255,255,255,255,244,0,11,243,34,34,34,34,0,0,191,18,34,34, +34,32,0,11,240,255,255,255,255,0,0,206,0,0,0,0,0,0,14,202,255,255,255,255,240,1,249,34,191,66,88,34, +0,79,80,63,80,4,244,0,10,225,47,247,137,175,240,0,183,4,251,169,135,127,80,0,0,0,0,0,0,32,0,0, +223,255,255,255,255,176,0,223,34,34,34,42,176,0,223,238,238,238,239,176,0,223,221,222,254,221,160,0,237,17,18,242, +17,16,0,239,255,255,255,255,247,0,252,34,35,243,34,33,1,248,107,189,252,187,96,4,245,142,187,187,190,128,7,241, +141,0,0,13,128,13,160,143,34,34,47,128,78,32,143,255,255,255,128,0,0,0,0,0,0,0,10,255,255,255,255,255, +48,10,243,34,34,34,63,48,10,243,34,34,34,63,48,10,255,255,255,255,255,48,11,241,65,11,32,20,0,11,240,242, +15,32,47,0,12,224,244,31,65,79,0,14,192,255,255,255,255,16,47,165,176,15,32,11,112,95,101,176,15,32,11,112, +190,21,237,223,253,223,112,119,1,68,68,68,78,112,0,175,255,255,255,255,246,0,10,243,34,34,34,47,96,0,175,255, +255,255,255,246,0,10,243,41,114,38,195,16,0,175,18,138,34,235,33,0,10,243,255,255,255,255,80,0,191,0,47,0, +242,0,0,12,209,37,242,47,66,16,0,235,143,255,255,255,251,0,63,96,11,160,15,32,0,10,242,42,226,0,242,0, +0,168,6,195,0,15,32,0,0,0,0,0,0,0,0,0,0,143,255,255,255,255,242,0,8,243,34,34,34,47,32,0, +143,255,255,255,255,242,0,8,243,35,98,39,50,0,0,143,18,110,34,244,33,0,9,246,255,255,255,255,80,0,174,52, +127,68,246,67,0,11,219,255,255,255,255,224,0,219,71,246,191,103,214,0,47,112,31,0,222,233,16,7,242,3,243,101, +253,32,0,219,1,255,234,50,207,160,3,32,9,32,0,0,52,0,0,143,255,255,255,255,246,0,8,242,17,17,17,29, +96,0,143,255,255,255,255,246,0,8,242,86,108,154,198,0,0,143,39,102,246,49,0,0,9,242,252,207,252,223,0,0, +174,47,0,242,2,240,0,12,194,204,207,252,204,0,0,233,89,153,251,153,231,0,79,89,147,63,108,59,160,10,225,152, +238,255,250,138,0,134,9,133,67,36,254,96,0,191,255,255,255,255,242,0,11,242,17,17,17,31,32,0,191,255,255,255, +255,242,0,11,241,71,10,64,0,0,0,191,93,55,253,221,215,0,12,245,92,237,119,123,16,0,222,95,97,251,187,241, +0,14,255,240,28,200,124,16,2,249,63,1,191,221,241,0,95,82,244,239,178,185,0,11,225,47,3,79,255,82,0,150, +2,240,204,114,106,160,0,0,0,0,0,0,0,0,0,0,0,111,0,0,0,0,0,0,111,0,0,0,0,0,0,111, +0,0,0,3,144,0,111,0,7,112,5,240,0,111,0,11,176,5,240,0,111,0,11,176,5,240,0,111,0,11,176,5, +240,0,111,0,11,176,5,240,0,111,0,11,176,5,240,0,111,0,11,176,5,240,0,111,0,11,176,5,255,255,255,255, +255,176,2,119,119,119,119,127,176,0,0,0,99,0,0,0,0,2,36,245,34,66,0,0,63,255,255,255,252,0,0,63, +23,32,0,219,0,0,63,22,218,70,247,0,0,63,0,2,73,113,0,0,63,255,255,255,255,240,0,2,36,50,34,34, +224,1,128,15,32,102,1,208,2,240,15,32,187,2,192,2,243,63,83,235,4,160,2,238,239,254,252,8,128,0,0,0, +0,143,253,32,0,0,0,156,0,0,0,3,240,0,156,0,11,160,3,240,0,156,0,11,160,3,255,255,255,255,255,160, +1,68,68,68,68,68,48,15,255,255,255,255,255,248,2,34,206,34,34,34,33,0,5,244,0,0,0,0,0,63,255,255, +255,255,144,3,239,210,34,34,45,144,63,218,192,0,0,13,144,9,24,226,34,34,47,144,0,8,255,255,255,255,144,0, +1,16,0,0,0,0,0,104,0,0,31,16,0,0,104,0,34,63,50,32,10,104,134,223,255,255,242,14,104,184,52,47, +20,80,14,104,184,108,31,26,144,14,104,184,31,63,46,32,14,104,185,120,175,121,115,14,104,186,187,255,235,180,14,104, +184,0,191,144,0,15,223,248,4,244,243,0,10,117,232,46,128,141,16,0,0,5,234,0,29,211,0,0,7,128,0,1, +162,0,0,0,121,0,0,0,2,240,0,121,0,4,241,2,247,119,223,119,121,241,1,153,153,170,153,153,144,6,255,255, +150,255,255,240,6,242,28,150,241,20,240,6,241,28,150,241,19,240,6,255,255,150,255,255,240,7,240,12,150,240,3,240, +8,255,255,151,255,255,240,10,176,11,154,177,19,240,14,112,44,158,96,36,240,28,17,238,108,0,191,160,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,244,0,98,0,47,48,0,244,0,245,0,47,48,0,244,0,245,0,47,48,0, +244,0,245,0,47,48,0,243,0,245,0,47,48,1,243,0,245,0,47,48,1,243,0,245,0,47,48,3,241,0,245,0, +47,48,6,224,0,245,0,47,48,11,160,0,245,0,47,48,63,80,0,245,0,47,48,123,0,0,0,0,47,48,0,0, +0,0,0,0,0,0,0,0,0,0,1,0,0,15,32,0,0,15,32,0,15,32,31,32,15,32,0,15,32,31,32,15, +32,0,15,32,31,32,15,32,12,95,135,31,151,15,32,31,63,126,31,110,31,32,110,31,47,95,45,127,32,168,62,12, +111,39,143,32,0,108,0,31,32,15,32,0,169,0,31,32,15,32,2,243,0,31,32,15,32,11,176,0,31,32,15,32, +77,32,0,7,16,15,32,0,0,0,0,0,0,0,6,119,119,119,119,119,48,12,255,255,255,255,255,96,0,0,0,247, +0,0,0,0,0,0,247,0,0,0,0,0,0,247,0,0,0,0,0,0,247,0,0,0,0,0,0,247,0,0,0,0, +0,0,247,0,0,0,0,0,0,247,0,0,0,0,0,0,247,0,0,0,143,255,255,255,255,255,242,72,136,136,136,136, +136,129,0,0,8,48,0,0,0,0,0,47,48,0,0,0,2,34,143,50,34,34,32,47,255,255,255,255,255,242,0,0, +216,0,0,0,0,0,3,243,0,0,0,0,0,8,249,153,153,153,112,0,14,156,207,254,204,144,0,126,16,3,242,0, +0,2,231,0,3,242,0,0,29,176,0,3,242,0,0,93,24,204,207,254,204,196,1,10,255,255,255,255,245,0,5,128, +0,8,112,0,0,3,244,0,63,80,0,9,255,255,255,255,255,160,1,34,35,248,34,34,32,0,223,255,255,255,254,0, +0,17,28,209,17,17,0,63,255,255,255,255,255,243,2,34,207,50,34,34,32,0,6,250,102,102,102,16,0,111,156,207, +253,204,32,26,249,0,6,240,0,0,45,108,204,207,252,204,194,0,7,119,119,119,119,113,0,223,255,255,255,252,0,0, +85,85,85,85,220,0,0,0,0,0,0,188,0,0,0,0,0,0,188,0,0,36,34,34,34,236,0,0,175,255,255,255, +252,0,0,171,0,0,0,170,0,0,171,0,0,0,0,0,0,171,0,0,0,0,98,0,171,0,0,0,0,231,0,158, +66,34,34,55,243,0,44,239,255,255,254,112,7,255,255,255,255,253,0,1,34,34,34,34,205,0,0,51,0,0,0,189, +0,0,203,0,0,0,189,0,0,206,34,34,34,237,0,0,207,255,255,255,253,0,0,203,0,0,0,137,0,0,203,0, +0,0,0,0,0,203,0,0,0,0,149,0,187,0,0,0,0,216,0,174,66,34,34,55,244,0,43,239,255,255,254,112, +8,255,255,255,255,251,0,8,240,0,242,0,187,0,8,240,0,242,0,187,0,8,240,0,242,0,187,0,8,240,0,242, +0,187,0,8,255,255,255,255,251,0,8,246,102,102,102,251,0,8,240,0,0,0,17,0,8,240,0,0,0,2,16,7, +240,0,0,0,7,224,5,246,34,34,34,77,176,0,174,255,255,255,235,32,0,0,0,127,0,0,0,0,0,0,127,0, +0,0,0,0,0,127,0,0,0,6,255,255,255,255,255,144,6,242,34,159,34,46,144,6,240,0,127,0,12,144,6,240, +0,127,0,12,144,6,240,0,127,0,12,144,6,240,0,127,0,12,144,6,240,0,127,1,13,144,6,240,0,127,13,254, +80,1,32,0,127,1,16,0,0,0,0,127,0,0,0,0,0,4,193,0,0,0,0,0,1,231,0,0,0,141,221,221, +255,221,221,209,123,187,187,255,187,187,177,0,0,0,246,0,0,0,0,255,255,255,255,255,0,0,244,34,248,34,239,0, +0,242,0,246,0,191,0,0,242,0,246,0,191,0,0,242,0,246,0,207,0,0,242,0,246,143,251,0,0,32,0,246, +18,16,0,0,0,0,246,0,0,0,0,0,0,0,0,0,0,0,0,11,144,0,0,0,0,0,31,96,0,0,0,63, +255,255,255,255,255,244,2,35,251,34,34,34,33,0,6,242,12,64,0,0,0,47,145,31,97,17,0,1,207,255,255,255, +255,128,44,239,114,47,114,46,128,110,62,96,15,80,13,128,2,14,96,15,80,13,128,0,14,96,15,82,45,112,0,12, +80,15,90,253,48,0,0,0,15,80,0,0,0,2,240,0,79,16,0,0,2,240,0,79,16,0,15,34,240,102,191,123, +64,15,34,240,254,255,239,144,15,34,240,244,79,27,144,15,34,240,244,79,27,144,15,35,224,244,79,27,144,15,36,208, +244,79,27,144,11,39,176,244,79,27,144,0,11,128,244,79,44,144,0,63,32,244,79,157,80,1,217,0,0,79,16,0, +7,177,0,0,79,16,0,0,0,0,0,0,0,0,0,15,32,0,0,0,0,0,15,38,255,255,255,246,15,47,34,68, +127,68,66,15,47,32,51,95,53,32,15,47,34,255,255,255,176,15,47,34,240,47,11,176,15,63,34,240,47,11,176,15, +79,18,240,47,11,176,12,94,2,240,47,11,176,0,108,2,240,47,11,176,0,199,2,240,47,127,112,5,242,0,32,47, +0,0,7,112,0,0,47,0,0,0,54,32,0,2,148,0,0,74,237,152,175,162,0,0,2,109,255,251,48,0,6,239, +223,177,91,251,16,3,116,63,146,34,86,33,63,255,255,255,255,255,244,0,4,245,23,16,0,0,0,63,162,95,66,51, +0,4,239,255,255,255,255,32,78,109,96,47,32,63,32,1,13,96,47,32,63,32,0,13,96,47,44,253,0,0,9,64, +47,33,32,0,0,0,2,128,0,0,0,2,34,36,246,34,34,32,10,255,255,255,255,255,160,0,8,192,0,63,96,0, +2,37,244,34,207,50,32,15,255,255,255,255,255,241,15,32,0,242,0,5,241,12,191,255,255,255,253,193,0,170,34,245, +34,249,0,0,169,0,242,0,217,0,0,169,0,242,34,233,0,0,169,0,242,175,229,0,0,0,0,242,17,0,0,0, +79,0,230,2,240,0,18,111,34,248,36,242,32,79,255,255,255,255,255,242,0,79,0,230,2,240,0,10,207,170,252,171, +250,160,15,255,255,255,255,255,240,15,32,0,246,0,7,240,6,191,255,255,255,252,96,0,171,34,248,34,201,0,0,170, +0,246,0,169,0,0,170,0,246,18,185,0,0,170,0,246,31,229,0,0,0,0,246,0,0,0,0,6,208,0,0,0, +0,47,255,255,249,255,255,244,1,23,225,18,246,46,144,13,255,255,244,244,111,80,0,6,208,2,244,5,243,95,255,255, +250,245,1,230,0,94,32,35,247,220,145,9,211,0,247,244,0,0,1,255,255,255,255,255,128,0,247,34,248,34,47,128, +0,245,0,246,0,15,128,0,245,0,246,63,255,64,0,33,0,246,2,32,0,0,149,0,246,1,183,0,0,141,0,246, +10,210,0,13,239,221,255,222,237,208,15,152,136,136,136,137,240,15,46,238,238,238,82,240,8,31,32,0,15,81,128,0, +15,169,170,159,80,0,0,3,51,250,51,16,0,2,255,255,255,255,255,32,2,243,34,250,34,191,32,2,241,0,215,0, +159,32,2,241,0,215,111,254,16,0,16,0,215,3,32,0,0,5,240,0,242,0,0,47,255,255,255,255,255,80,1,21, +177,17,179,17,0,0,253,221,221,221,242,0,0,248,119,119,119,242,0,0,246,68,68,68,242,0,0,220,255,204,204,210, +0,72,138,254,136,153,136,96,53,175,245,247,191,165,64,92,255,255,255,255,255,128,93,205,17,243,29,254,96,0,108,0, +242,12,243,0,0,108,0,242,206,177,0,5,102,102,102,102,102,48,11,238,238,255,238,238,96,0,0,0,247,0,0,0, +0,0,0,247,0,0,0,18,34,34,249,34,34,32,127,255,255,255,255,255,241,35,51,51,250,51,51,48,0,0,0,247, +0,0,0,0,0,0,247,0,0,0,0,0,0,247,0,0,0,0,0,0,247,0,0,0,0,0,0,247,0,0,0,7, +136,136,136,136,136,32,11,204,204,255,204,204,48,0,100,0,246,1,163,0,0,141,0,246,6,225,0,0,47,64,246,13, +112,0,0,5,16,246,21,0,0,159,255,255,255,255,255,241,18,34,34,248,34,34,32,0,0,0,246,0,0,0,0,0, +0,246,0,0,0,0,0,0,246,0,0,0,0,0,0,246,0,0,0,0,0,0,0,0,0,0,0,9,176,0,0,0, +0,0,31,214,102,102,102,64,0,143,255,255,255,255,144,3,246,0,15,80,0,0,29,192,0,15,80,0,0,6,47,255, +255,255,255,64,0,15,66,47,130,34,16,0,15,32,15,80,0,0,0,15,32,15,80,0,0,95,255,255,255,255,255,245, +38,102,102,111,182,102,98,0,0,0,15,80,0,0,0,0,0,15,80,0,0,0,5,48,0,4,80,0,0,10,209,0, +11,208,0,0,2,247,0,47,80,0,8,170,218,170,255,170,144,9,189,255,187,239,235,160,0,2,244,0,63,48,0,0, +2,244,0,63,48,0,95,255,255,255,255,255,245,18,39,244,34,95,82,33,0,9,224,0,63,48,0,0,79,128,0,63, +48,0,6,236,16,0,63,48,0,28,161,0,0,63,48,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0, +0,156,0,0,0,0,0,0,95,32,0,0,6,255,255,255,255,255,224,6,243,34,34,34,34,32,6,241,0,0,0,0, +0,6,241,0,0,0,0,0,6,241,0,0,0,0,0,7,240,0,0,0,0,0,9,224,0,0,0,0,0,12,176,0, +0,0,0,0,31,112,0,0,0,0,0,143,32,0,0,0,0,0,71,0,0,0,0,0,0,0,0,0,44,48,0,0, +0,0,0,13,128,0,0,5,255,255,255,255,255,247,5,243,34,34,34,34,33,5,241,0,4,192,0,0,5,241,0,5, +240,0,0,6,240,34,40,242,34,32,6,240,223,255,255,255,192,8,208,0,5,240,0,0,10,176,0,5,240,0,0,13, +128,0,5,240,0,0,63,74,204,207,252,204,198,75,6,136,136,136,136,132,0,0,0,0,0,0,0,0,0,0,73,0, +0,0,0,33,17,63,129,17,16,8,255,255,255,255,255,247,8,241,17,19,98,17,17,8,240,0,6,224,0,0,8,241, +34,42,242,34,32,8,230,255,255,255,255,243,9,208,0,15,242,0,0,10,192,0,79,234,0,0,12,160,0,188,63,112, +0,31,112,8,243,6,246,0,95,49,175,80,0,143,145,123,10,212,0,0,6,228,1,1,0,0,0,0,16,0,0,0, +41,32,0,0,1,66,34,63,194,34,33,7,255,255,255,255,255,246,7,240,17,17,17,32,0,7,245,255,255,255,252,0, +7,240,3,64,28,227,0,7,224,6,220,251,32,0,8,211,119,125,254,119,145,9,197,187,191,253,191,241,12,160,0,5, +240,126,48,14,96,0,5,240,84,0,95,32,18,39,240,0,0,105,0,30,254,160,0,0,0,0,0,0,0,0,0,0, +0,0,54,0,0,0,1,66,34,127,82,34,32,7,255,255,255,255,255,241,7,240,0,167,0,0,0,7,248,255,255,255, +255,128,7,241,44,226,131,34,16,7,240,63,64,242,0,0,8,224,255,255,255,255,32,9,208,147,34,245,34,0,11,176, +0,0,242,0,0,14,125,255,255,255,255,241,95,50,34,34,245,34,32,90,0,0,0,242,0,0,0,0,0,0,0,0, +0,0,0,0,60,16,0,0,0,16,0,31,128,0,0,7,255,255,255,255,255,245,7,242,34,34,34,34,33,7,241,48, +62,16,12,144,7,242,244,31,80,31,96,7,240,185,11,144,111,16,8,224,110,7,208,201,0,9,208,31,68,179,242,0, +12,176,7,32,11,160,0,31,112,0,0,78,32,0,111,63,255,255,255,255,248,56,2,34,34,34,34,33,0,0,0,6, +0,0,0,1,66,34,46,82,34,33,7,255,255,255,255,255,247,7,240,1,18,69,121,16,7,240,255,255,254,168,48,7, +240,172,0,228,0,0,7,240,155,0,198,0,0,8,224,159,255,255,255,244,9,208,158,34,158,34,33,11,176,155,8,63, +32,0,14,112,155,12,92,144,101,79,48,255,238,181,246,166,107,1,251,49,176,110,193,1,0,0,0,0,0,0,0,0, +0,26,48,0,0,1,50,34,46,194,34,33,5,255,255,255,255,255,245,5,241,0,6,112,0,0,5,241,0,10,192,0, +0,5,241,0,10,255,255,243,6,240,0,10,226,34,32,7,224,0,10,192,0,0,8,208,175,255,255,255,96,11,176,172, +68,68,79,96,30,128,171,0,0,15,96,111,64,175,255,255,255,96,75,0,174,34,34,47,96,0,0,0,0,0,0,0, +0,0,0,6,32,0,0,1,66,34,47,178,34,33,5,255,255,255,255,255,245,5,241,2,240,2,240,0,5,245,255,255, +255,255,242,5,241,19,241,19,241,16,6,240,2,251,187,240,0,7,224,1,68,68,64,0,8,216,255,255,255,255,32,10, +176,29,178,21,248,0,14,128,2,207,255,112,0,79,54,138,239,255,184,98,73,7,184,80,4,139,193,0,0,0,6,64, +0,0,1,66,34,43,242,34,33,9,255,255,255,255,255,249,9,224,4,33,144,20,0,9,224,14,66,240,93,0,9,224, +79,66,240,239,0,9,208,206,230,244,254,160,10,215,209,105,252,97,199,11,176,66,37,243,34,48,14,144,239,255,255,255, +208,47,96,0,2,240,0,0,127,41,187,190,251,187,184,106,12,255,255,255,255,250,1,0,0,0,0,0,0,0,0,0, +108,0,0,0,5,250,170,191,234,170,161,7,244,68,79,148,68,64,7,230,238,239,254,238,112,7,225,17,31,97,143,162, +7,255,255,255,255,255,253,7,224,0,15,80,127,161,8,216,238,239,254,255,128,9,183,145,15,240,42,80,12,145,155,95, +255,233,16,31,100,158,175,126,230,16,111,110,131,31,80,125,247,88,0,30,253,32,0,64,0,0,0,0,0,0,0,0, +1,16,0,242,0,0,47,255,168,255,255,255,32,2,95,32,17,243,31,32,0,185,95,255,255,255,240,5,225,18,34,244, +47,64,31,255,168,221,255,223,32,2,44,145,34,245,34,0,10,28,106,238,255,238,112,10,143,49,17,244,17,16,4,254, +79,255,255,255,240,1,255,32,0,243,0,0,9,234,233,84,99,34,33,78,48,57,206,255,255,241,1,0,0,0,0,0, +0,12,255,255,255,255,255,224,9,188,255,187,207,251,160,0,0,245,0,31,80,0,0,0,245,0,31,80,0,0,1,245, +0,31,80,0,95,255,255,255,255,255,245,18,37,246,34,63,114,33,0,6,241,0,31,80,0,0,12,176,0,31,80,0, +0,127,64,0,31,80,0,8,249,0,0,31,80,0,27,128,0,0,31,80,0,0,0,0,0,0,0,0,8,255,255,255, +255,245,0,5,240,0,0,0,229,0,5,255,255,255,255,245,0,5,242,34,34,34,37,64,4,245,34,34,34,60,160,0, +174,255,255,255,253,48,0,5,96,0,24,0,0,18,44,194,34,95,34,32,95,255,255,255,255,255,241,0,63,64,0,47, +0,0,5,235,0,0,47,0,0,29,128,0,0,47,0,0,0,0,0,0,0,0,0,13,238,238,255,238,238,32,0,17, +17,243,17,16,0,6,255,255,255,255,249,0,0,0,0,242,0,0,0,143,255,255,255,255,255,176,54,103,247,102,143,134, +64,0,1,241,0,63,32,0,79,255,255,255,255,255,245,18,40,242,34,95,82,33,0,45,112,0,63,32,0,23,234,0, +0,63,32,0,59,80,0,0,63,32,0,0,0,0,0,0,0,0,0,0,0,1,245,136,0,0,0,0,1,245,78,128, +2,34,34,35,248,39,113,47,255,255,255,255,255,246,0,0,0,0,216,0,0,3,119,119,115,201,0,0,8,255,255,247, +171,0,0,0,2,240,0,125,0,0,0,2,240,0,95,32,0,0,2,240,0,31,96,84,0,5,249,205,11,192,138,11, +255,250,115,4,250,215,5,82,0,0,0,110,209,0,0,0,0,0,47,0,8,255,255,253,0,47,0,1,34,34,221,0, +47,0,0,0,0,221,0,47,0,2,255,255,253,0,47,0,5,243,34,34,0,47,0,7,208,0,0,0,47,0,11,255, +255,254,0,47,0,2,66,34,253,0,47,0,0,0,0,251,0,47,0,0,0,2,249,0,47,0,0,3,40,245,0,47, +0,0,12,255,160,0,47,0,0,0,16,0,0,0,0,0,2,145,0,1,165,0,0,1,232,0,7,243,0,0,170,254, +170,175,250,160,0,187,187,239,187,189,240,0,0,0,47,0,5,240,0,79,255,255,255,255,240,0,110,34,95,34,34,32, +0,172,34,79,34,34,49,0,239,255,255,255,255,250,0,1,26,255,0,0,216,0,22,237,95,0,1,246,6,239,145,47, +5,255,209,1,130,0,47,0,34,0,0,0,0,47,0,0,0,12,255,242,47,0,8,128,2,36,242,47,0,111,64,1, +68,242,47,8,245,0,7,255,242,47,61,64,0,9,160,5,191,153,153,148,10,128,5,207,159,249,148,14,255,243,47,8, +176,0,3,54,242,47,3,242,0,0,4,241,47,0,201,0,0,6,224,47,39,79,64,2,42,192,127,252,10,228,8,254, +80,223,64,1,146,0,0,0,16,0,0,0,0,0,0,0,0,0,0,63,255,247,175,255,255,144,19,51,215,169,17,26, +144,5,83,215,174,204,206,144,15,255,247,140,207,236,112,15,183,115,17,31,65,16,47,48,0,255,255,255,240,79,135,195, +242,15,34,240,95,221,245,243,31,67,240,0,1,244,255,255,255,240,0,3,243,0,15,39,128,1,40,245,154,191,255,243, +4,254,132,169,135,101,201,0,0,0,0,0,0,16,0,48,0,247,0,52,0,6,242,0,247,0,204,0,0,203,0,247, +4,244,0,0,95,32,247,12,144,0,0,4,0,247,5,16,0,6,238,238,255,238,237,0,3,119,119,119,119,222,0,0, +0,0,0,0,190,0,0,239,255,255,255,254,0,0,34,34,34,34,238,0,0,0,0,0,0,190,0,11,255,255,255,255, +255,0,2,34,34,34,34,238,0,0,0,0,0,0,0,0,3,255,255,255,255,249,0,0,34,34,34,35,248,0,0,207, +255,255,255,248,0,0,34,34,34,36,246,0,74,170,170,170,173,255,160,75,187,187,255,187,188,176,1,199,0,255,0,156, +16,0,77,176,255,156,212,0,0,2,140,250,255,16,0,4,158,214,245,78,196,0,13,180,18,245,2,175,192,0,0,175, +210,0,2,48,0,0,0,0,0,0,0,0,0,0,66,0,2,16,39,155,223,249,0,62,144,26,151,99,33,6,250,0, +9,53,192,140,143,128,0,7,208,228,228,19,2,64,0,146,164,144,0,45,177,2,35,244,34,5,235,16,63,255,255,253, +127,128,0,0,30,255,48,2,0,130,0,189,248,228,0,10,226,27,210,241,119,2,206,48,76,33,241,2,142,194,0,0, +1,241,2,214,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,5,253,221,223,48,11,192,5,231,119,143,49, +189,32,5,229,85,111,110,194,0,4,221,238,221,38,0,81,7,119,255,119,64,10,210,7,119,135,119,83,204,32,3,253, +221,239,62,145,0,3,244,68,127,1,0,166,2,238,255,238,0,8,226,1,195,200,164,0,159,80,10,177,199,93,92,228, +0,4,29,228,4,90,32,0,0,0,0,0,0,0,0,0,136,0,0,242,0,0,6,243,0,0,242,0,0,111,80,143, +255,255,255,244,69,91,159,66,245,43,241,1,232,143,16,242,27,144,10,243,143,203,253,207,112,159,243,159,254,136,223,128, +117,243,175,141,0,191,32,0,243,189,30,134,249,0,0,243,218,4,255,193,0,0,244,245,6,255,177,0,0,250,229,207, +165,238,146,0,247,88,163,0,22,194,0,10,96,0,47,0,0,0,126,32,17,63,17,16,8,228,2,255,255,255,242,10, +52,128,17,79,17,16,0,31,121,153,191,153,149,1,207,31,255,255,255,248,28,255,0,0,0,110,0,27,79,79,255,255, +255,246,0,47,18,86,34,143,33,0,47,0,142,16,110,0,0,47,0,13,160,110,0,0,47,0,4,66,126,0,0,47, +0,0,31,249,0,0,0,0,0,0,0,0,0,4,48,0,0,0,0,0,4,231,111,255,255,252,0,8,246,6,242,34, +45,192,0,115,92,111,255,255,252,0,0,30,134,241,17,30,192,0,11,241,111,17,17,220,0,10,255,6,255,255,255,192, +1,214,240,111,26,161,23,16,1,47,6,240,63,92,211,0,2,240,111,0,191,129,0,0,47,6,240,19,234,16,0,2, +240,143,207,67,237,96,0,47,9,247,32,1,151,0,0,0,0,0,0,0,0,0,2,80,0,7,16,0,0,1,218,0, +8,244,0,0,2,203,16,5,250,227,0,0,186,24,37,246,8,228,0,1,10,218,250,68,75,249,0,9,244,101,223,255, +215,80,11,239,32,0,31,16,0,0,114,242,143,255,255,255,144,0,15,33,67,79,67,49,0,0,242,12,129,241,170,0, +0,15,37,242,31,18,229,0,0,243,216,35,241,7,160,0,15,33,8,251,0,0,0,0,16,0,0,0,0,0,0,0, +64,0,0,0,0,0,1,189,47,238,238,239,48,5,219,16,247,85,87,243,0,149,26,95,101,85,111,48,0,11,225,255, +255,255,243,0,9,244,0,0,0,0,0,27,255,3,221,221,221,218,1,181,240,2,34,36,242,16,0,47,9,255,255,255, +255,0,2,240,26,82,36,242,32,0,47,0,158,48,47,0,0,2,240,0,166,36,240,0,0,47,0,0,47,250,0,0, +0,0,0,0,0,0,0,0,151,1,224,2,209,0,5,226,145,226,116,240,0,78,96,209,227,182,192,0,71,91,214,247, +187,255,248,0,217,189,221,159,181,241,7,244,34,34,95,149,192,63,244,255,255,255,168,144,139,242,1,17,4,236,96,18, +242,159,255,64,239,16,0,242,121,12,82,255,0,0,242,152,31,249,255,48,0,243,212,31,110,104,210,0,245,144,0,166, +0,164,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,137,0,2,244,0,0,4,244,206,239,255,238,208,78,128, +34,39,242,34,32,187,21,95,255,255,255,112,49,141,93,110,109,124,112,2,246,76,14,12,41,112,12,242,79,255,255,255, +112,174,242,17,17,17,17,16,132,242,255,255,255,255,240,0,242,50,85,193,21,0,0,242,182,243,131,45,80,0,246,225, +243,3,230,208,0,245,80,175,255,129,80,0,0,1,0,0,0,0,0,0,47,145,0,0,0,0,0,4,237,48,0,0, +0,0,0,44,227,0,0,0,0,164,1,129,0,0,4,128,246,0,0,78,16,8,192,246,0,0,30,96,11,144,246,0, +0,10,192,14,112,246,0,0,5,242,63,64,246,0,2,145,246,94,0,246,0,3,224,114,1,0,232,34,41,192,0,0, +0,142,255,254,64,0,0,0,68,0,0,0,0,0,0,143,145,0,104,0,0,0,4,236,33,232,0,0,0,98,42,26, +209,0,3,112,246,0,95,80,0,7,192,246,3,233,151,0,12,144,246,45,176,127,32,47,80,249,220,16,13,160,158,0, +255,177,0,6,242,36,6,255,0,3,81,195,3,191,246,0,5,240,0,111,195,233,34,42,192,0,21,0,142,255,254,64, +0,0,0,0,111,0,0,0,0,0,0,111,0,0,0,14,255,255,255,255,255,249,2,34,34,143,34,34,33,0,0,0, +111,0,0,0,0,221,221,255,221,221,160,0,85,85,166,85,85,64,0,0,3,236,32,0,0,0,115,192,44,227,42,16, +2,244,240,1,163,13,128,6,210,240,0,0,168,225,13,130,244,34,37,243,230,2,32,174,255,255,144,82,0,0,0,167, +0,0,0,4,85,85,223,85,85,80,14,255,238,255,238,238,225,0,47,0,0,0,0,0,0,47,0,0,0,0,0,0, +47,34,34,34,34,16,0,47,255,255,255,255,96,0,0,1,130,0,0,0,0,17,65,173,16,22,0,1,245,242,28,144, +30,96,7,211,242,2,18,104,224,30,99,245,34,39,226,244,4,0,191,255,254,128,32,0,0,0,0,0,0,0,0,242, +0,7,176,0,0,0,242,0,1,232,0,0,36,251,52,68,134,68,48,105,252,207,255,255,255,192,151,246,176,242,0,0, +0,196,243,16,242,0,0,0,97,242,0,242,0,0,0,0,242,0,242,0,0,0,0,242,0,242,0,0,0,0,242,0, +242,0,0,0,0,242,0,242,0,0,0,0,242,0,255,255,255,112,0,242,0,34,34,34,16,0,242,0,2,240,0,0, +0,242,0,2,240,0,0,37,251,76,255,255,255,0,90,249,194,37,242,79,0,136,244,226,2,240,47,0,181,242,16,3, +224,47,0,97,242,123,191,253,223,193,0,242,89,159,255,153,145,0,242,0,11,206,16,0,0,242,0,63,46,128,0,0, +242,2,217,6,245,0,0,242,94,193,0,175,145,0,243,170,16,0,8,160,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,31,224,0,0,0,0,0,44,254,178,0,0,0,0,127,163,26,248,32,0,40,238,98,233,4,207,165, +2,215,16,1,162,0,90,96,0,143,255,255,255,248,0,0,1,34,34,35,255,32,0,0,0,9,113,205,32,0,0,20, +25,79,135,16,130,0,5,227,240,95,64,11,160,0,170,47,0,64,72,79,64,47,82,243,34,42,243,171,2,128,10,239, +255,250,2,48,0,47,0,0,0,0,0,0,2,240,175,255,255,255,208,1,63,115,34,79,162,34,0,153,250,144,8,241, +0,0,11,143,79,19,255,97,0,0,229,240,49,222,251,193,0,25,47,0,174,95,29,176,0,2,241,191,82,240,46,144, +0,47,44,80,47,0,71,0,2,240,0,2,240,0,0,0,47,0,0,47,0,0,0,2,240,0,2,240,0,0,0,47, +0,0,47,0,0,0,0,0,0,110,0,0,0,0,0,0,156,0,0,0,15,255,255,255,255,255,249,2,34,36,254,243, +34,33,0,0,10,209,234,0,0,0,0,159,112,79,161,0,1,109,230,221,53,238,131,12,233,32,44,160,42,245,2,65, +82,187,0,23,16,0,229,245,45,160,30,112,4,241,245,3,144,152,208,11,176,231,34,36,243,245,7,64,158,255,255,160, +115,0,2,97,0,54,0,0,0,7,241,0,126,0,0,0,10,224,0,191,0,0,0,15,244,0,255,48,0,0,79,222, +37,253,176,0,0,204,11,141,194,232,0,10,244,2,175,48,95,161,8,80,2,213,0,5,176,0,33,49,214,0,54,0, +3,246,242,95,80,79,64,9,212,242,8,162,123,192,46,116,245,34,39,244,243,24,17,191,255,254,128,80,0,7,160,0, +0,0,0,0,15,230,102,102,102,96,0,111,255,253,221,221,209,2,232,8,241,17,17,0,28,209,8,255,255,255,80,25, +32,8,240,0,0,0,0,0,8,255,255,255,160,0,0,8,241,17,17,16,0,0,20,246,0,20,0,5,194,240,111,144, +63,64,11,146,240,4,97,91,176,47,66,244,34,38,245,244,23,0,191,255,255,144,114,0,47,0,0,11,112,0,0,47, +0,0,14,96,0,0,47,49,18,95,66,33,7,143,183,159,255,255,247,10,143,93,156,0,0,247,13,95,22,156,0,0, +247,28,63,0,157,17,17,247,0,47,0,159,255,255,247,0,47,0,156,17,17,247,0,47,0,156,0,0,247,0,47,0, +156,0,0,247,0,47,0,159,255,255,247,0,47,0,158,34,34,246,0,255,255,255,255,255,0,0,242,0,242,0,47,0, +0,244,17,244,17,79,0,0,255,255,255,255,255,0,0,242,0,242,0,47,0,0,254,238,255,238,239,0,0,68,72,132, +68,68,0,0,48,56,250,16,21,0,3,243,241,78,176,79,80,9,178,241,2,23,105,208,47,82,244,34,61,178,245,5, +0,191,255,254,64,64,0,0,0,0,0,0,0,0,0,216,0,0,0,0,0,13,255,255,252,0,0,0,79,113,21,247, +0,0,4,251,17,28,210,17,0,11,239,255,255,255,248,0,1,0,0,0,0,200,0,0,47,255,255,255,248,0,0,17, +17,17,17,200,0,0,159,255,255,255,248,0,0,33,66,211,0,23,16,4,244,240,110,34,45,144,12,162,243,38,41,197, +242,24,32,191,255,254,80,97,0,242,2,48,226,0,0,0,242,8,208,242,0,0,18,249,10,160,242,0,0,90,253,111, +255,255,255,48,120,247,239,66,245,34,0,166,243,186,0,242,0,0,146,242,18,0,242,0,0,0,242,13,255,255,254,0, +0,242,2,34,245,34,0,0,242,0,0,242,0,0,0,242,0,0,242,0,0,0,242,188,204,254,204,112,0,242,120,136, +136,136,80,0,141,0,0,0,0,0,0,141,3,255,255,255,160,0,141,64,95,66,191,64,31,157,212,9,201,248,0,62, +141,122,2,255,208,0,107,141,22,175,202,237,131,52,141,10,148,23,22,163,0,141,0,0,47,0,0,0,141,4,255,255, +255,241,0,141,1,34,95,34,32,0,141,0,0,47,0,0,0,141,10,187,239,187,183,0,141,14,255,255,255,250,0,2, +128,0,8,48,0,0,1,232,0,63,64,0,0,0,108,0,186,0,0,0,111,255,255,255,248,0,0,111,34,34,34,248, +0,0,111,0,0,0,248,0,0,111,34,34,34,248,0,0,111,255,255,255,248,0,0,0,33,183,0,1,0,4,193,244, +61,160,78,32,9,193,244,2,97,26,192,47,81,247,34,39,225,227,3,0,174,255,254,112,16,0,0,0,0,0,0,0, +0,198,0,62,0,0,0,0,198,0,94,0,0,0,4,203,127,255,255,255,243,30,203,194,204,36,114,32,61,199,225,199, +5,192,16,106,198,49,244,230,178,208,68,198,5,228,199,150,160,0,198,10,169,140,155,80,0,198,47,70,47,215,16,0, +198,203,0,95,241,0,0,199,162,2,216,170,0,0,198,0,94,192,46,161,0,198,0,184,0,2,161,0,0,0,0,0, +0,0,0,0,0,51,0,0,0,0,0,0,218,0,0,0,0,46,238,255,238,229,0,0,47,34,34,34,245,0,0,47, +255,255,255,245,0,0,47,0,0,0,245,0,0,47,255,255,255,245,0,0,47,0,0,0,245,0,0,47,255,255,255,245, +0,0,0,0,199,0,3,0,1,213,240,79,64,63,64,7,212,240,8,85,107,192,30,116,244,34,42,180,242,6,17,191, +255,254,80,32,0,0,0,0,0,0,0,0,47,0,0,63,48,0,0,47,0,0,175,160,0,2,95,180,6,244,230,0, +8,191,139,79,112,79,96,10,159,43,254,119,124,249,13,111,8,135,187,185,84,6,63,0,0,0,0,0,0,47,0,159, +255,255,176,0,47,0,156,34,44,176,0,47,0,156,0,11,176,0,47,0,156,0,11,176,0,47,0,159,255,255,176,0, +47,0,158,34,45,176,0,0,0,0,0,0,0,9,255,255,255,255,255,192,0,18,15,81,241,19,0,0,156,15,81,241, +141,16,0,47,63,81,243,229,0,0,4,15,81,242,64,0,46,238,239,255,255,238,227,43,187,187,219,187,187,179,0,16, +33,232,0,38,0,2,245,240,62,80,63,48,7,226,240,6,115,106,176,30,130,243,34,40,212,242,25,16,191,255,254,96, +80,0,0,0,0,0,0,0,0,229,0,4,209,0,0,0,229,0,0,216,0,0,4,235,143,255,255,255,243,28,236,146, +34,35,115,32,59,232,203,67,5,213,176,104,229,62,142,75,118,208,67,229,14,85,255,38,208,0,229,14,80,255,22,208, +0,229,14,87,236,182,208,0,229,14,175,65,232,208,0,229,14,100,0,22,208,0,229,14,255,255,255,240,0,229,2,34, +34,40,224,0,211,0,0,242,0,0,0,211,127,255,255,255,160,4,221,53,85,247,85,32,30,217,152,136,250,136,48,60, +212,171,187,254,187,178,105,211,154,170,170,170,161,51,211,13,255,255,255,192,0,211,13,208,0,15,192,0,211,13,255,255, +255,192,0,211,13,209,17,31,192,0,211,13,254,238,239,192,0,211,13,192,2,47,176,0,211,13,192,9,237,96,0,0, +0,0,0,0,0,0,167,0,0,214,0,0,0,167,2,34,222,34,32,0,169,63,255,255,255,241,14,171,176,17,17,17, +0,45,167,230,255,255,255,80,90,167,118,209,17,30,80,52,167,5,230,102,110,80,0,167,5,255,255,255,80,0,167,0, +64,155,3,0,0,167,5,242,155,78,32,0,167,29,128,155,11,160,0,167,108,34,171,3,225,0,167,1,79,230,0,16, +0,0,0,0,0,0,0,0,0,0,246,0,0,0,63,255,255,255,255,255,176,1,85,85,250,85,85,16,1,248,119,253, +119,143,0,1,252,204,255,204,223,0,1,245,68,250,68,111,0,0,102,102,252,109,198,0,43,187,187,255,191,254,16,43, +187,170,234,153,157,144,3,83,99,235,16,53,16,10,199,192,45,99,111,32,63,102,210,34,41,202,160,41,18,223,255,254, +82,112,0,15,32,0,0,0,0,0,15,32,31,255,255,32,91,191,219,79,33,31,32,37,191,117,47,255,255,32,1,223, +243,31,32,15,32,10,175,143,79,238,239,32,141,31,35,31,32,15,32,18,15,32,31,255,255,32,0,7,20,211,17,18, +0,7,133,160,188,16,171,0,13,118,208,26,24,79,64,95,38,227,34,79,42,160,21,2,223,255,250,1,0,0,0,0, +0,0,0,0,0,0,0,170,0,0,0,5,255,255,255,255,255,80,0,18,227,17,63,65,0,10,170,253,170,255,170,161, +6,102,102,102,102,102,96,0,110,221,221,221,231,0,0,110,85,85,85,216,0,0,110,102,102,102,216,0,0,111,221,237, +221,248,0,0,32,35,232,0,36,0,1,229,214,44,83,78,48,11,192,215,18,46,57,192,24,32,143,255,252,1,80,0, +95,203,239,187,207,0,0,95,220,255,204,223,0,0,95,117,127,85,111,0,0,39,119,175,119,119,0,2,238,238,255,238, +239,128,2,240,0,47,11,52,112,2,242,238,255,255,246,112,2,240,51,202,33,111,64,0,116,151,61,210,8,48,1,230, +185,1,164,89,176,9,209,187,34,40,242,227,7,64,94,255,255,144,98,0,0,0,0,0,0,0,0,0,0,0,137,151, +0,0,33,17,17,139,62,48,6,255,255,255,255,255,244,6,242,85,85,93,4,64,6,227,119,119,63,29,80,8,213,238, +238,13,188,0,10,182,192,15,13,243,99,30,102,235,191,111,246,182,93,17,51,69,132,94,209,2,50,162,110,32,24,16, +7,228,244,8,193,125,128,46,115,245,17,37,228,242,39,1,207,255,254,112,64,0,199,0,0,0,0,0,0,12,112,110, +204,204,236,0,0,201,70,235,187,189,192,1,204,171,108,102,102,172,0,59,199,227,119,119,119,80,5,156,116,253,253,223, +222,128,84,199,47,63,68,243,184,0,12,113,119,119,119,119,64,0,199,95,255,255,255,241,0,12,112,62,178,22,248,0, +0,199,0,44,255,247,0,0,12,115,105,239,255,184,64,0,199,141,166,16,89,201,0,0,0,0,0,0,0,0,0,242, +0,197,1,242,0,0,242,62,255,239,255,225,18,250,33,149,52,248,0,105,251,143,255,255,201,32,136,246,136,135,249,119, +112,166,242,39,119,249,119,96,178,242,15,204,254,206,64,0,242,15,135,250,126,64,0,242,15,100,246,77,64,0,242,12, +204,254,204,48,0,242,41,153,251,153,64,0,242,21,85,247,85,32,0,242,239,255,255,255,240,0,0,0,0,111,10,80, +0,34,34,65,5,241,127,48,12,255,255,224,79,16,150,0,1,1,252,3,245,86,130,8,193,79,140,255,253,202,48,29, +169,243,84,245,5,80,0,63,253,0,14,112,215,0,0,191,192,0,186,142,16,0,29,255,32,8,255,64,0,10,245,204, +0,143,176,81,9,247,3,161,111,250,11,112,150,0,0,191,134,251,243,0,0,0,3,48,7,218,0,0,0,0,0,0, +0,0,0,0,0,4,242,196,0,0,0,0,3,242,175,96,1,66,34,37,244,43,129,8,255,255,255,255,255,248,8,241, +0,0,244,0,0,8,243,36,16,230,11,112,8,255,255,144,200,79,64,9,240,14,128,155,204,0,10,224,15,128,95,243, +0,12,193,47,112,127,176,66,14,153,254,54,255,160,137,95,65,35,191,148,249,215,123,0,2,197,0,110,193,1,0,0, +0,0,0,0,0,3,106,194,243,115,0,10,255,250,98,243,142,48,3,68,240,0,244,9,192,0,2,240,0,244,1,16, +15,255,255,255,255,255,245,2,37,242,34,234,35,33,0,2,240,17,153,12,128,1,73,253,247,124,142,16,47,255,247,64, +79,245,0,6,50,240,0,127,176,65,0,2,240,9,255,160,137,1,37,242,221,67,246,198,2,254,128,81,0,110,209,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,243,166,0,0,0,0,1,244,143,128,2,34,34,35,247, +40,128,47,255,255,255,255,255,243,0,34,34,32,215,3,16,2,255,255,240,200,13,112,2,240,2,240,171,79,32,2,241, +19,240,125,186,0,2,255,255,240,79,242,0,0,17,17,66,63,208,81,4,121,207,248,223,192,167,15,218,116,110,196,249, +228,0,0,0,121,0,110,176,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,79,0,0,93,20,0,0,79,0, +0,94,62,48,0,79,34,32,79,8,160,0,79,255,208,63,1,48,0,79,0,41,207,254,194,0,79,0,22,95,51,160, +63,255,255,128,14,89,176,63,51,60,128,12,158,64,63,0,11,128,10,252,0,63,0,11,128,14,243,32,63,17,28,128, +127,243,134,63,255,255,170,248,188,212,63,17,29,155,96,44,192,1,0,0,0,0,0,0,0,0,0,2,0,0,0,0, +0,0,126,16,0,0,0,0,0,47,80,0,0,0,223,255,255,255,255,96,0,223,34,34,34,47,96,0,220,0,0,0, +15,96,0,220,0,0,0,15,96,0,239,255,255,255,255,96,0,252,34,34,34,47,96,2,248,0,0,0,0,0,6,245, +0,0,0,0,0,10,224,0,0,0,0,0,63,128,0,0,0,0,0,76,16,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,51,0,0,0,1,50,34,190,34,34,16,6,255,255,255,255,255,128,6,242,17,17,17,28,128,6,255,255, +255,255,255,128,6,241,0,10,128,0,0,6,243,102,106,214,102,96,7,231,255,255,255,255,240,9,208,2,243,0,17,0, +11,160,6,255,255,255,16,14,112,29,144,0,95,0,95,51,205,16,16,156,0,139,12,178,0,207,229,0,0,0,0,0, +0,0,0,0,0,3,16,0,3,64,8,203,239,132,186,239,209,15,248,82,9,249,98,0,11,226,34,7,208,0,0,11, +255,255,39,241,17,17,11,192,15,39,255,255,247,11,209,31,39,243,95,49,12,255,255,40,192,47,0,12,193,17,10,160, +47,0,14,144,0,13,112,47,0,31,96,0,95,32,47,0,111,32,1,219,0,47,0,90,0,3,194,0,47,0,0,0, +0,0,0,0,0,0,0,0,0,0,1,0,0,1,35,86,155,237,16,1,255,255,255,168,82,0,0,34,16,111,0,0, +0,0,0,0,111,0,0,0,2,255,255,255,255,255,208,0,34,34,143,34,34,32,0,0,0,111,0,0,0,2,34,34, +143,34,34,34,31,255,255,255,255,255,250,0,0,0,111,0,0,0,0,0,0,111,0,0,0,0,1,34,143,0,0,0, +0,1,255,232,0,0,0,0,0,0,0,0,0,0,0,0,0,0,247,0,0,0,0,0,0,247,0,0,0,0,0,0, +247,0,0,95,255,255,255,255,255,224,37,85,85,223,252,85,80,0,0,3,247,247,0,0,0,0,46,192,247,0,0,0, +1,205,16,247,0,0,0,45,227,0,247,0,0,6,237,32,0,247,0,0,127,178,0,0,247,0,0,5,0,3,85,246, +0,0,0,0,4,255,194,0,0,0,0,0,0,0,0,0,0,95,0,0,0,0,0,0,95,1,187,187,235,182,0,95, +1,170,175,252,166,95,255,252,0,4,242,0,18,143,34,0,4,242,0,0,95,0,0,4,242,0,0,111,155,0,4,242, +0,76,255,182,0,4,242,0,41,175,0,0,4,242,0,0,95,0,0,4,242,0,0,95,0,0,4,242,0,3,143,0, +5,89,241,0,11,233,0,9,254,160,0,0,0,0,0,16,0,0,0,242,0,0,0,0,0,0,242,39,119,123,96,0, +0,242,60,255,207,144,0,140,254,112,242,14,80,0,52,246,32,242,47,16,0,0,242,1,241,111,255,176,1,251,130,240, +19,47,160,175,253,85,208,0,13,144,85,242,7,160,0,15,128,0,242,12,112,0,31,112,0,242,63,32,0,63,80,35, +243,203,0,51,159,48,111,178,210,0,191,249,0,0,0,0,0,0,0,0,0,47,0,0,0,39,48,0,2,240,3,105, +223,216,0,0,63,0,188,191,48,0,0,255,255,160,2,241,0,0,2,79,33,0,47,16,0,0,2,240,0,2,245,105, +144,0,47,119,173,255,253,168,1,175,253,121,118,241,0,0,10,159,0,0,47,16,0,0,2,240,0,2,241,1,32,0, +47,0,0,47,16,63,0,37,240,0,1,244,39,208,8,249,0,0,10,255,246,0,0,95,0,0,0,0,0,0,95,0, +138,170,170,112,18,143,33,190,204,206,176,79,255,248,187,0,11,176,0,95,0,187,0,11,176,0,95,0,187,0,11,176, +0,95,101,187,0,11,176,57,255,214,187,0,11,176,58,191,0,187,0,11,176,0,95,0,187,0,11,176,0,95,0,191, +255,255,176,2,127,0,190,34,46,176,11,233,0,68,0,3,48,0,0,0,0,0,0,0,0,242,0,31,16,0,0,0, +242,0,31,16,0,0,0,242,0,31,16,0,0,175,255,158,255,254,246,0,34,245,19,95,51,246,0,0,242,0,62,0, +246,0,0,251,141,238,0,245,0,142,253,83,255,96,245,0,102,242,0,205,251,245,0,0,242,3,242,53,245,0,0,242, +12,160,0,214,160,18,243,190,32,0,186,240,79,179,211,0,0,78,144,0,0,0,0,0,0,0,0,47,0,0,0,0, +0,0,47,1,153,153,153,96,2,79,34,187,187,190,160,47,255,251,0,0,11,160,1,63,16,0,0,11,160,0,47,0, +0,0,12,160,0,63,119,255,255,255,176,43,255,181,34,34,45,160,24,127,0,0,0,11,160,0,47,0,0,0,11,160, +0,47,0,0,0,12,160,2,95,3,255,255,255,160,9,233,0,34,34,45,160,0,47,0,4,96,117,0,0,2,240,0, +170,10,176,0,0,63,0,30,96,95,32,0,255,255,135,225,0,233,0,2,79,36,232,0,7,245,0,2,240,175,119,119, +207,176,0,47,86,175,255,255,193,1,158,255,112,95,0,203,0,11,191,16,8,192,13,160,0,2,240,0,215,0,233,0, +0,47,0,111,32,31,112,0,37,240,94,113,38,245,0,9,249,11,128,31,251,0,0,0,0,0,0,0,0,0,0,16, +0,0,0,0,0,0,242,0,0,95,0,0,0,242,0,0,95,0,0,34,245,32,0,95,0,0,191,255,194,192,95,0, +0,34,245,34,240,95,0,0,0,242,2,240,95,255,192,0,250,162,240,95,34,32,158,254,114,240,95,0,0,85,242,2, +240,95,0,0,0,242,2,240,95,0,0,0,242,2,240,95,0,0,35,242,157,251,255,187,176,111,176,121,153,153,153,144, +0,47,0,2,225,130,0,0,47,0,2,241,189,16,0,63,0,1,242,29,96,15,255,249,18,248,104,149,2,79,35,255, +255,202,148,0,47,0,50,198,3,64,0,63,136,0,169,12,160,27,255,182,0,124,126,32,8,127,0,0,79,246,0,0, +47,0,0,111,208,36,0,47,0,25,255,208,93,2,95,4,222,98,236,201,9,249,0,113,0,60,227,0,0,0,0,0, +0,0,0,47,0,0,15,32,0,0,47,0,0,15,32,0,0,63,2,187,191,219,181,13,255,249,136,143,168,131,2,79, +33,0,15,32,0,0,47,0,171,191,236,242,0,63,150,191,136,142,241,11,255,181,47,64,13,144,7,127,0,9,193,158, +16,0,47,0,1,223,244,0,0,47,0,2,239,242,0,2,95,5,175,196,190,147,9,233,10,164,0,5,185,0,0,0, +0,0,0,0,0,242,0,0,0,0,0,0,242,10,255,255,255,176,0,243,10,244,246,78,176,159,255,138,192,242,14,176, +18,244,26,192,242,14,176,0,242,10,192,242,14,176,0,250,138,253,255,223,176,125,255,170,251,187,191,176,138,244,10,192, +0,9,112,0,242,10,192,0,0,16,0,242,10,192,0,0,213,19,242,9,227,34,37,243,47,176,3,223,255,255,160,0, +47,0,0,0,0,0,0,47,0,79,255,250,0,0,63,0,79,34,234,0,14,255,249,124,0,186,0,2,79,40,246,0, +158,167,0,47,7,96,0,20,83,1,127,219,255,255,255,208,14,255,82,248,34,63,128,4,63,0,110,32,158,16,0,47, +0,11,217,244,0,0,47,0,3,255,160,0,2,95,22,175,186,253,115,8,249,94,147,0,57,231,0,0,0,0,0,0, +0,0,47,0,0,0,47,0,0,47,0,11,112,47,0,0,47,0,5,235,63,0,15,255,251,0,40,47,0,2,95,34, +34,0,47,0,0,47,0,143,145,47,0,0,63,136,4,213,47,0,27,255,182,0,16,47,19,8,127,0,37,121,239,253, +0,47,4,255,202,175,48,0,47,0,32,0,47,0,2,95,0,0,0,47,0,9,233,0,0,0,47,0,0,47,0,0, +44,32,0,0,47,0,0,12,160,0,0,63,0,75,106,198,98,15,255,248,191,204,204,246,2,79,33,190,0,0,246,0, +47,0,190,0,0,246,0,95,183,191,255,255,246,30,255,114,207,34,34,246,6,79,0,235,0,0,0,0,47,1,249,0, +0,0,0,47,5,244,0,0,0,2,95,13,208,0,0,0,7,233,44,64,0,0,0,0,0,0,0,0,0,0,0,95, +0,0,0,0,0,0,95,0,239,255,255,224,0,95,0,236,34,46,208,60,255,198,235,1,30,176,39,207,115,235,14,254, +96,0,95,0,238,34,50,48,0,95,67,239,255,255,243,40,255,247,235,183,6,224,60,239,16,235,78,28,128,0,95,0, +235,12,255,32,0,95,0,235,6,255,0,18,127,0,236,126,206,179,31,232,0,237,198,2,180,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,47,0,12,144,0,0,0,47,0,63,149,85,96,5,143,81,191,221,221,241,12,255,202,244, +0,0,224,0,47,27,255,255,240,224,0,47,0,157,36,240,224,0,63,164,155,2,240,224,26,255,212,159,137,242,208,13, +191,0,159,204,230,176,0,47,0,155,0,95,96,0,47,0,155,0,0,100,2,95,0,157,50,35,198,8,250,0,61,255, +255,193,0,0,0,0,0,0,0,0,47,0,0,15,32,0,0,47,0,0,15,32,0,0,47,0,0,15,32,0,10,223, +166,34,47,82,34,9,191,156,255,255,255,252,0,47,8,240,15,32,220,0,47,108,240,15,32,220,26,255,171,255,255,255, +252,8,111,8,242,47,82,252,0,47,8,240,15,32,220,0,47,8,240,15,32,220,2,79,8,255,255,255,252,8,250,7, +244,68,68,252,0,0,0,0,1,0,0,0,47,0,0,78,16,0,0,47,0,0,31,80,0,0,63,0,85,91,117,83, +12,255,246,221,221,221,217,2,79,33,5,16,5,64,0,47,0,14,64,12,144,0,63,149,11,128,14,96,11,255,163,9, +160,47,48,5,111,0,6,208,94,0,0,47,0,4,240,139,0,0,47,0,1,80,183,0,1,95,11,255,255,255,255,5, +234,2,34,34,34,34,0,47,0,14,50,162,0,0,47,0,15,49,159,96,1,79,21,95,117,89,194,31,255,255,239,253, +221,212,1,63,16,47,16,0,0,0,47,0,63,34,36,16,0,47,49,95,255,255,128,22,207,228,127,64,47,80,30,207, +0,190,192,142,0,0,47,2,243,204,246,0,0,47,8,192,79,241,0,2,79,79,87,237,221,97,8,249,73,28,96,7, +210,0,0,0,0,0,0,0,0,242,0,0,0,0,0,0,242,8,255,255,255,240,0,243,1,43,194,43,224,159,255,192, +13,96,10,208,18,244,16,142,16,12,176,0,242,26,228,8,207,112,2,253,166,32,3,84,0,175,249,39,255,255,255,176, +49,242,7,242,34,46,176,0,242,7,240,0,14,176,0,242,7,240,0,14,176,19,242,7,255,255,255,176,79,176,7,242, +34,47,176,0,21,167,0,0,0,0,110,255,198,223,255,255,208,38,111,48,0,15,32,0,0,47,48,18,47,82,16,24, +175,184,127,255,255,128,23,159,167,0,15,32,0,0,63,32,143,255,255,144,106,239,202,18,47,82,16,142,255,238,0,15, +32,0,0,188,2,255,255,255,241,3,247,0,34,47,82,32,28,225,0,0,15,32,0,44,64,0,0,15,32,0,0,0, +0,0,0,0,0,0,242,0,0,0,0,0,0,242,15,255,255,255,16,1,243,19,234,37,249,0,191,255,176,45,239,112, +0,18,244,16,93,255,114,0,0,243,110,215,54,207,176,21,255,147,0,245,2,48,206,247,27,255,255,254,0,32,242,2, +34,248,34,0,0,242,18,34,248,34,32,0,242,127,255,255,255,208,19,242,0,0,245,0,0,79,176,0,0,245,0,0, +0,0,0,0,16,0,0,0,242,0,1,242,0,0,0,242,20,35,244,34,16,17,244,111,255,255,255,144,126,255,223,0, +242,11,144,0,242,95,255,255,255,144,0,242,95,34,246,45,144,0,246,143,34,232,44,144,74,255,207,255,255,255,144,139, +244,75,0,123,7,48,0,242,0,0,79,189,32,0,242,0,2,143,241,99,19,242,57,222,170,228,198,47,176,73,65,0, +159,193,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,111,64,0,0,0,0,92,217,233,48,0,3,141, +252,101,126,252,115,9,165,119,119,119,38,166,0,46,204,204,204,226,0,0,47,85,85,85,242,0,0,23,119,119,137,178, +0,0,125,222,255,220,148,0,0,104,119,159,102,102,80,0,103,119,159,119,119,80,9,238,238,255,238,238,231,0,0,0, +63,0,0,0,0,0,95,250,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,242,0,0,242,0,0, +0,242,2,34,245,34,0,0,243,14,255,255,255,16,191,255,130,34,244,34,0,18,244,104,136,250,136,112,0,242,159,255, +255,255,224,0,250,64,0,0,242,0,158,250,111,255,255,255,192,66,242,20,130,34,245,32,0,242,3,244,0,242,0,0, +242,0,157,0,242,0,19,242,0,37,51,242,0,78,176,0,0,223,176,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,2,240,2,240,0,1,0,0,47,0,47,3,140,226,0,19,241,18,254,251,114,0,15,255,248,47,49,0,11, +32,70,244,34,243,34,37,242,0,47,0,10,239,255,249,0,2,247,112,17,17,17,16,27,255,182,47,238,238,249,0,118, +240,2,224,0,15,144,0,47,0,47,255,255,249,0,2,240,2,225,17,31,144,2,79,0,46,17,17,249,0,143,160,2, +255,255,255,144,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,242,0,2,244,0,0,0,242,2,34,250,34, +32,0,243,47,255,255,255,192,207,255,175,52,97,24,192,18,244,43,27,160,5,144,0,242,72,159,216,136,128,0,243,191, +255,255,255,240,55,255,176,216,1,246,0,222,247,24,243,6,225,0,32,242,6,254,175,128,0,0,242,0,8,255,112,0, +18,242,22,191,167,237,64,111,176,45,147,0,26,128,0,0,0,0,0,0,0,0,242,0,45,13,32,0,0,242,0,47, +15,33,0,0,243,92,63,15,42,144,175,255,125,159,15,79,48,18,244,23,255,15,201,0,0,242,1,79,15,65,0,1, +253,112,63,15,177,0,142,251,37,255,15,236,16,101,243,190,205,15,60,192,0,242,114,169,15,33,96,0,242,4,244,15, +32,193,19,242,94,144,15,84,241,79,177,183,0,10,255,144,0,0,0,0,0,0,0,0,242,0,0,242,0,0,0,242, +13,64,242,12,144,0,243,10,144,242,63,80,191,255,181,224,242,157,0,34,244,17,112,242,133,0,0,242,43,187,254,187, +112,0,249,139,187,187,191,160,158,253,80,0,0,14,160,100,242,15,255,255,255,160,0,242,2,34,34,47,160,0,242,0, +0,0,14,160,18,242,95,255,255,255,160,95,192,18,34,34,47,160,0,0,0,0,0,0,0,0,242,0,0,0,0,0, +0,242,47,255,255,255,240,0,242,47,53,114,36,240,111,255,124,9,192,2,192,18,244,23,255,255,255,80,0,242,0,143, +55,17,0,0,248,81,214,47,0,0,92,255,105,255,255,255,128,89,242,3,66,95,34,16,0,242,18,34,95,34,33,0, +242,111,255,255,255,245,19,242,0,0,47,0,0,31,176,0,0,47,0,0,0,0,0,0,1,0,0,0,0,0,0,0, +0,0,0,242,0,11,112,0,0,0,242,0,142,37,209,0,0,243,7,228,35,253,0,143,255,127,255,237,239,112,18,244, +21,210,0,5,32,0,242,9,248,136,136,48,0,249,127,251,253,187,64,126,253,136,0,242,0,0,51,242,207,255,255,255, +241,0,242,34,40,252,34,32,0,242,0,62,158,96,0,18,242,40,248,5,249,48,79,177,203,64,0,59,193,0,0,0, +0,0,0,0,0,47,0,0,0,0,0,0,47,0,255,255,255,242,0,47,0,243,17,17,242,14,255,247,254,221,221,242, +1,79,17,242,0,0,242,0,47,0,255,255,255,242,0,95,200,17,24,33,16,29,255,164,0,15,32,0,7,111,0,255, +255,255,243,0,47,0,34,47,82,32,0,47,0,0,15,32,0,2,79,11,204,207,236,201,8,249,6,119,119,119,117,0, +242,0,0,0,0,0,0,242,10,255,255,255,0,0,242,10,160,0,95,0,158,255,154,218,170,191,0,18,244,18,51,51, +51,0,0,242,15,255,255,255,112,0,249,127,49,17,29,112,124,255,111,32,242,13,112,135,242,15,32,242,13,112,0,242, +15,35,240,13,112,0,242,2,44,133,162,0,19,242,39,234,2,190,80,95,176,155,64,0,6,226,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,242,0,78,32,0,0,0,242,0,255,255,251,0,55,249,56,246,41,246,0,126,255,175, +248,191,248,48,0,242,12,255,255,255,96,0,242,2,240,242,31,96,0,244,98,240,242,31,96,56,255,211,242,241,31,96, +142,246,47,255,255,255,246,16,242,24,159,255,136,131,0,242,0,173,62,112,0,19,242,60,226,3,220,81,47,177,187,32, +0,23,212,0,0,0,0,0,0,0,0,242,0,0,0,0,0,0,242,10,255,255,255,240,35,245,42,242,34,36,240,141, +255,138,253,221,221,240,0,242,10,254,239,254,224,0,242,10,192,15,32,0,1,250,106,255,255,255,242,143,252,75,194,47, +66,32,33,242,13,187,191,235,177,0,242,31,158,153,153,241,0,242,95,93,0,1,241,19,242,171,62,17,18,241,45,162, +211,63,255,255,241,0,0,0,0,0,0,0,0,242,0,0,187,0,0,0,242,31,255,255,255,246,70,248,49,34,205,34, +16,159,255,135,255,255,255,32,0,242,0,17,188,31,32,0,242,79,255,255,255,242,2,253,129,17,204,31,48,175,251,71, +255,255,255,32,67,242,7,128,187,0,0,0,242,14,208,191,255,208,0,242,47,241,188,17,16,19,242,157,125,255,34,32, +79,178,212,4,191,255,244,0,0,0,0,0,0,0,0,122,0,242,0,151,0,0,63,32,242,4,226,0,15,255,255,255, +255,255,241,15,83,51,51,51,53,241,15,63,221,221,221,243,241,0,31,118,102,104,240,0,0,55,119,137,171,211,0,0, +239,255,255,202,114,0,3,119,119,248,102,102,48,3,102,102,248,102,102,48,62,238,238,255,238,238,227,0,0,0,242,0, +0,0,0,1,239,193,0,0,0,0,0,0,0,0,0,0,0,242,0,199,0,0,0,0,242,4,244,0,0,0,19,245, +29,255,255,255,247,143,255,223,89,34,34,247,1,244,118,159,136,128,230,0,242,3,255,251,176,230,0,248,52,66,240,0, +246,75,255,88,255,255,246,245,72,242,10,2,240,131,245,0,242,15,2,240,197,244,0,242,15,255,255,246,243,19,242,5, +85,85,103,241,63,176,0,0,2,255,144,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,242,0,5,192,0,0, +0,242,34,36,246,34,32,1,243,207,255,255,255,240,95,255,64,114,40,0,0,39,249,34,225,124,17,0,0,242,8,176, +239,255,224,0,245,47,133,246,57,144,40,255,223,143,244,222,64,74,243,139,203,152,125,0,0,242,11,96,47,244,0,0, +242,11,96,47,242,0,19,242,11,101,233,158,96,47,192,11,141,96,6,177,0,0,0,0,0,0,0,0,242,0,5,160, +0,0,0,242,2,36,245,34,16,0,242,63,255,255,255,128,124,254,96,195,2,210,0,36,247,50,153,45,178,32,0,242, +159,255,255,255,208,0,250,48,11,112,0,0,143,249,239,255,255,255,240,50,242,18,248,35,245,32,0,242,15,246,24,192, +0,0,242,2,125,255,80,0,19,242,19,124,255,249,16,62,176,140,148,0,77,64,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,242,0,3,209,0,0,0,242,3,52,249,51,48,18,245,63,255,255,255,242,159,255,159,18,1,16,242, +0,242,5,94,41,194,64,0,242,6,228,0,173,48,0,247,60,80,0,9,96,40,255,104,187,187,186,0,157,244,8,187, +254,186,0,16,242,0,0,242,0,0,0,242,0,0,242,0,0,19,242,155,187,254,187,160,79,176,121,153,153,153,128,0, +242,0,105,58,0,0,0,242,0,200,30,80,0,17,243,19,247,93,149,48,191,255,172,253,223,253,128,17,244,79,240,15, +32,0,0,243,223,242,47,82,16,0,245,214,255,255,255,112,106,255,84,240,15,32,0,69,242,4,255,255,255,96,0,242, +4,242,47,82,16,0,242,4,240,15,32,0,18,242,4,255,255,255,224,79,176,4,244,68,68,64,0,0,0,16,0,0, +0,1,242,55,4,64,0,0,1,242,47,44,122,255,243,1,242,25,111,58,149,241,111,255,223,255,202,134,176,19,244,16, +244,10,138,96,1,242,0,244,10,142,32,1,249,51,245,42,138,112,60,254,239,255,250,132,208,57,242,5,243,10,129,241, +1,242,10,253,26,131,241,1,242,47,58,186,175,176,2,242,201,1,187,130,0,31,194,144,0,10,128,0,0,0,0,0, +1,0,0,0,0,0,0,0,0,0,0,242,0,1,243,0,0,0,242,47,255,255,255,176,87,249,66,40,242,34,16,157, +255,123,255,255,255,80,0,242,1,47,97,17,0,0,244,159,255,255,255,240,3,255,85,247,22,244,16,159,248,94,221,254, +222,96,68,242,151,18,244,21,177,0,242,9,255,255,251,0,0,242,0,46,155,81,0,19,242,22,219,5,219,32,79,192, +92,96,0,25,96,0,242,0,63,64,148,0,0,242,0,63,64,148,0,0,243,13,255,254,255,229,159,255,133,143,149,249, +82,18,244,16,63,64,148,0,0,242,5,136,136,136,80,1,250,106,236,239,206,176,159,252,74,176,47,11,176,33,242,10, +255,255,255,176,0,242,10,210,79,45,176,0,242,10,176,47,11,176,19,242,10,252,255,207,176,94,176,10,245,85,95,176, +0,0,1,16,0,0,0,0,242,0,0,0,0,0,0,242,2,255,255,255,32,1,243,2,245,85,95,32,141,255,130,245, +85,95,32,0,242,2,255,255,255,32,0,242,0,0,0,0,0,0,246,104,136,136,136,131,74,255,203,187,255,187,180,139, +245,3,177,236,17,0,0,242,6,240,239,255,48,0,242,12,247,235,0,0,18,242,110,62,255,50,34,79,194,213,2,191, +255,247,0,0,0,0,0,0,0,0,242,0,1,36,104,16,0,242,30,255,236,186,48,35,246,36,176,195,46,32,123,254, +102,231,185,252,80,0,242,15,255,255,255,176,0,242,0,47,32,0,0,0,243,127,255,255,255,242,38,255,163,174,51,51, +48,174,247,16,255,255,255,32,32,242,3,255,96,140,0,0,242,12,147,238,226,0,19,243,189,38,239,248,65,79,179,178, +156,97,90,209,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,242,0,38,242,0,0,0,242,8,248,242,207,208, +71,249,72,176,242,9,208,107,253,88,255,242,191,240,0,242,8,176,242,9,208,0,242,8,193,243,26,208,0,246,73,255, +255,255,208,56,255,80,0,242,0,0,140,243,63,255,255,255,144,0,242,21,251,85,255,48,0,242,0,61,206,228,0,19, +242,3,125,255,182,48,47,176,189,166,17,106,211,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,242,0,3,225, +0,0,0,242,18,34,249,34,32,0,242,79,255,255,255,242,157,255,99,136,136,136,0,18,244,22,212,68,111,0,0,242, +6,254,238,239,0,1,254,83,51,51,52,32,142,255,111,255,255,255,176,153,242,63,51,51,58,176,0,242,63,63,238,168, +176,0,242,63,60,5,168,176,19,242,63,61,221,152,176,79,176,63,0,0,127,112,0,0,2,0,0,0,0,0,242,0, +2,54,138,16,0,242,62,255,236,167,16,0,243,8,67,144,29,48,159,255,105,160,226,125,0,18,244,20,243,83,150,16, +0,242,11,255,255,255,96,0,251,142,32,242,0,0,125,255,101,34,244,34,16,154,243,191,255,255,255,208,0,242,29,16, +242,11,112,0,242,31,16,242,12,128,19,242,31,204,254,207,128,79,176,6,102,102,111,128,0,0,0,0,0,0,0,1, +241,0,0,10,116,0,1,241,0,0,30,78,32,1,242,189,246,123,9,80,111,255,133,248,255,255,248,19,243,49,255,252, +47,17,1,241,198,248,205,63,33,1,251,111,241,191,255,245,94,251,31,240,187,31,0,106,241,13,241,189,63,33,1,241, +47,168,207,255,245,1,241,185,25,187,31,0,19,243,177,0,191,207,183,95,176,0,0,191,136,133,0,0,0,0,0,0, +0,0,0,0,30,32,0,0,12,254,238,239,254,238,232,13,226,44,34,34,194,33,13,221,223,219,190,255,209,13,208,143, +162,11,253,48,13,215,175,39,199,244,213,13,193,7,0,35,164,17,14,192,172,222,250,150,0,15,161,119,121,247,119,112, +47,128,85,88,245,85,80,79,75,221,223,253,221,216,158,16,0,3,240,0,0,118,0,11,254,160,0,0,0,0,0,0, +0,0,0,0,242,0,63,17,243,0,0,242,31,255,255,255,240,37,247,50,79,34,245,32,126,255,133,187,170,187,48,0, +242,7,196,68,79,64,0,242,7,254,238,239,64,1,252,167,176,0,14,64,126,255,135,254,255,239,64,87,242,0,0,214, +0,0,0,242,143,255,255,255,240,0,242,17,27,254,145,16,19,242,4,190,67,234,48,79,176,142,162,0,43,209,0,0, +0,0,0,0,0,0,0,0,0,1,16,0,0,242,15,31,22,192,0,0,242,15,31,40,144,0,0,242,223,255,218,112, +0,109,255,79,31,31,255,242,19,244,223,223,255,40,144,0,242,68,68,191,58,112,0,248,159,255,253,108,64,93,255,170, +9,133,175,16,89,242,111,255,129,253,0,0,242,106,9,128,253,0,0,242,111,239,131,254,16,1,242,106,9,157,124,160, +95,208,106,94,186,2,210,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,241,1,225,2,224,0,1,241,120,252, +131,192,0,1,242,159,250,166,247,114,111,255,77,73,44,255,243,19,243,207,207,175,119,160,1,241,103,66,143,121,128,1, +245,127,255,204,156,80,75,255,139,8,130,222,32,91,242,95,223,128,255,0,1,241,91,8,128,255,0,1,241,95,239,132, +255,16,3,241,91,25,173,106,177,30,176,91,109,169,1,177,0,0,0,0,0,0,0,0,242,0,19,70,138,32,0,242, +78,237,253,170,64,0,242,2,225,242,95,32,159,255,145,213,244,232,16,53,247,175,255,255,255,192,0,242,0,124,251,177, +0,0,250,89,194,242,140,64,124,254,237,135,249,122,225,135,242,12,235,252,191,160,0,242,12,246,247,111,160,0,242,12, +246,247,111,160,18,242,12,251,252,191,160,111,192,12,245,85,95,160,17,0,1,16,0,0,0,0,242,0,0,0,0,0, +0,242,0,159,255,242,0,17,244,16,157,17,242,0,109,255,80,106,170,161,0,0,242,14,238,233,238,224,0,242,31,1, +249,7,240,1,255,127,170,249,172,240,110,250,31,255,255,255,240,105,242,1,17,106,17,17,0,242,47,255,255,255,246,0, +242,0,77,221,212,0,3,243,108,230,72,111,163,14,193,151,16,72,2,129,0,0,0,0,0,0,0,0,15,32,0,29, +96,0,0,0,242,43,187,255,187,184,1,31,67,249,102,118,111,176,109,255,105,253,255,254,249,0,15,32,185,124,122,158, +16,0,242,92,207,65,255,96,0,15,98,143,176,6,242,0,58,255,107,255,255,100,212,4,159,52,183,119,119,121,112,0, +242,6,187,255,187,176,0,15,32,76,12,164,195,0,2,242,62,97,202,9,229,0,236,2,98,254,96,6,48,0,0,0, +246,0,0,0,0,0,0,246,0,0,0,79,255,255,255,255,255,160,18,34,34,248,34,34,32,0,0,0,246,0,0,0, +7,187,187,255,188,245,0,6,207,187,187,191,247,0,0,46,112,0,46,208,0,0,6,245,1,207,48,0,0,0,143,189, +228,0,0,0,0,63,255,145,0,0,38,157,253,137,255,184,81,127,184,48,0,22,173,192,0,0,0,0,0,0,0,0, +0,0,1,16,0,0,0,0,242,9,208,0,0,7,16,242,12,144,0,0,15,32,242,31,113,17,16,15,32,242,111,255, +255,240,15,32,242,239,17,127,16,15,32,247,255,64,155,0,15,32,249,185,144,231,0,15,32,242,19,230,242,0,31,172, +242,0,191,160,0,111,231,242,0,175,112,0,23,0,242,6,255,228,0,0,0,244,159,112,175,128,0,0,244,197,0,7, +128,0,0,0,0,0,0,0,0,0,0,0,73,16,0,0,156,204,194,10,224,0,0,6,136,143,48,252,34,34,0,0, +0,243,111,255,255,240,0,0,15,62,242,6,241,0,79,255,252,255,96,157,0,4,243,34,104,139,13,144,0,79,16,0, +3,247,243,0,4,241,0,0,11,251,0,0,79,38,195,0,207,144,0,10,255,233,16,159,223,96,0,255,113,5,223,80, +143,177,2,0,0,90,32,0,88,0,0,7,64,0,58,32,0,0,0,122,0,7,240,0,0,40,138,184,129,190,34,34, +3,175,250,170,63,255,255,240,0,203,0,8,247,7,208,0,12,255,251,255,144,170,0,0,205,47,189,125,14,96,0,13, +160,232,1,248,241,0,0,233,14,112,10,250,0,0,47,96,247,0,159,112,0,7,242,31,96,95,254,48,2,233,37,246, +159,129,190,112,76,24,252,77,80,1,154,0,0,0,0,0,0,0,0,0,10,112,0,200,0,0,0,10,112,1,246,0, +0,1,27,129,22,244,34,34,127,255,255,204,255,255,250,17,27,129,95,240,12,144,0,10,113,223,240,15,96,8,255,252, +197,244,79,32,11,249,159,32,185,172,0,11,176,15,32,95,246,0,11,176,15,32,15,240,0,11,226,47,32,159,245,0, +11,255,255,92,229,159,112,10,160,3,252,48,9,248,0,0,0,80,0,0,65,0,40,0,0,70,0,0,0,30,96,0, +153,0,0,90,174,186,160,232,34,32,72,167,137,114,255,255,240,7,208,110,23,208,31,48,30,96,11,159,240,79,0,156, +96,217,191,243,139,0,36,236,242,5,168,215,0,0,63,240,0,95,241,0,0,79,245,0,31,240,0,2,232,142,32,159, +244,0,78,176,9,58,227,158,80,73,0,0,204,48,10,193,0,0,0,16,0,0,16,0,2,245,128,11,128,0,0,0, +47,29,96,247,0,0,6,105,246,149,63,98,34,1,204,239,204,136,255,255,240,2,34,240,114,255,4,241,0,125,63,109, +127,240,109,0,0,201,254,59,189,74,160,0,2,127,192,18,155,229,0,0,127,253,193,4,255,16,1,189,111,28,112,47, +240,0,8,18,240,16,45,255,112,0,2,79,1,126,210,143,128,0,191,160,29,145,0,137,0,0,0,0,0,0,0,0, +0,0,0,0,69,0,0,12,255,255,160,136,0,0,1,34,95,128,182,17,16,106,170,239,216,255,255,240,127,251,191,252, +246,127,96,10,240,15,183,241,61,0,10,255,255,189,244,106,0,10,240,15,181,121,167,0,10,255,255,176,46,242,0,10, +240,15,211,15,240,0,111,251,223,251,47,244,0,155,166,95,194,200,142,96,0,0,15,184,144,7,144,0,0,0,0,0, +0,0,0,0,0,0,16,0,0,1,242,47,16,167,0,0,37,246,127,82,197,0,0,111,255,255,247,245,34,32,1,242, +47,20,255,255,241,107,252,207,188,241,47,16,87,135,120,143,244,77,0,10,255,255,204,183,138,0,10,145,26,161,108,198, +0,10,255,255,160,31,241,0,10,145,25,160,15,240,0,10,255,255,160,143,247,0,10,128,25,185,244,111,144,10,128,206, +124,64,6,144,0,0,0,0,0,0,0,0,139,14,32,29,96,0,3,159,249,251,84,244,0,0,74,255,175,198,159,50, +34,0,28,112,178,14,255,255,240,7,253,204,249,246,7,241,2,234,51,63,255,128,172,0,111,255,241,246,141,14,128,0, +156,15,47,3,248,244,0,9,176,243,224,12,252,0,0,159,255,77,0,191,160,0,7,161,21,192,111,254,64,0,0,18, +172,175,145,191,128,0,3,254,125,80,0,138,0,0,0,0,0,0,0,0,4,66,240,115,12,64,0,0,110,63,62,18, +242,0,0,4,199,247,131,95,34,34,0,188,255,236,153,255,255,192,0,95,253,129,255,8,192,0,156,79,27,143,241,169, +0,5,6,144,10,77,94,80,1,255,255,255,32,158,241,0,1,235,23,208,3,252,0,0,79,216,227,0,111,224,0,0, +11,255,64,111,126,160,0,141,195,118,175,80,62,192,8,48,0,9,32,0,37,0,0,0,0,0,0,0,0,0,7,176, +0,8,208,0,22,106,248,102,8,208,0,42,170,186,170,8,255,249,4,187,187,128,8,242,33,5,177,24,178,92,245,129, +5,254,238,183,255,255,245,5,85,85,131,186,39,241,13,153,153,245,78,10,176,13,95,199,197,13,127,80,13,104,72,197, +5,253,0,13,104,72,197,7,253,0,13,111,199,197,126,92,161,13,67,46,215,195,1,152,0,0,0,0,0,0,0,0, +15,32,0,89,0,0,175,255,255,160,200,17,16,4,79,116,67,255,255,245,15,143,152,253,243,47,32,15,239,253,242,125, +217,0,1,191,155,48,47,245,0,61,127,37,137,231,126,211,6,73,84,74,84,70,144,6,221,221,255,221,221,96,0,121, +0,206,187,181,0,0,122,0,184,68,66,0,75,255,187,255,187,187,180,111,255,255,255,255,255,246,0,0,0,0,0,0, +0,0,5,214,194,12,80,0,75,191,251,251,14,48,0,38,107,246,102,47,50,33,14,207,252,247,111,255,246,15,190,249, +247,239,7,160,15,105,244,233,255,9,128,15,239,252,252,206,61,80,12,37,192,150,58,159,16,94,255,254,238,5,251,0, +20,175,68,68,2,250,0,0,191,255,242,10,253,16,7,226,5,241,174,44,193,45,64,223,148,211,2,195,0,0,0,0, +0,0,0,0,0,0,87,0,0,0,0,0,0,111,48,0,0,2,34,34,62,114,34,34,15,255,255,255,255,255,251,0, +9,192,0,3,245,0,0,2,244,0,9,208,0,0,0,157,16,63,96,0,0,0,30,161,203,0,0,0,0,4,255,226, +0,0,0,0,2,255,209,0,0,0,1,126,199,237,96,0,3,158,232,16,43,253,131,29,216,32,0,0,74,231,1,0, +0,0,0,0,16,0,0,16,0,111,0,0,0,7,231,16,111,0,0,0,0,126,210,111,0,0,0,0,2,128,111,0, +0,1,199,16,0,111,0,0,1,126,230,0,111,0,0,0,1,154,0,111,0,0,0,0,0,0,111,87,146,1,53,121, +190,255,253,162,63,255,219,150,175,0,0,4,32,0,0,111,0,0,0,0,0,0,111,0,0,0,0,0,0,111,0,0, +0,0,0,0,0,1,0,1,47,1,0,0,47,0,45,47,14,56,177,47,0,14,79,61,2,205,79,0,11,127,120,0, +7,47,0,5,95,67,19,0,47,0,95,255,255,127,161,47,0,1,255,81,2,198,47,0,2,255,226,0,0,47,34,9, +175,124,36,121,239,250,62,79,6,191,202,159,32,89,47,0,16,0,47,0,1,47,0,0,0,47,0,0,47,0,0,0, +47,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,35,86,155,233,0,0,255,255,237,184,98,0,0,206, +16,0,0,0,0,0,188,0,0,0,0,0,0,188,0,0,0,0,0,0,191,136,136,136,136,128,0,207,204,204,255,204, +192,0,218,0,0,246,0,0,0,248,0,0,246,0,0,3,245,0,0,246,0,0,7,241,0,0,246,0,0,13,176,0, +0,246,0,0,45,48,0,0,246,0,0,0,0,0,0,0,0,0,0,0,47,0,0,4,145,11,184,63,58,127,237,130, +11,184,127,135,127,16,0,11,179,95,97,124,0,0,11,189,255,237,127,102,99,11,179,175,83,127,255,248,11,176,239,193, +124,15,32,11,183,191,122,123,15,32,11,206,79,3,155,15,32,11,179,47,0,184,15,32,11,226,55,33,214,15,32,11, +255,255,252,242,15,32,0,0,0,5,176,15,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,240,13,128,1, +107,209,5,241,30,148,255,250,64,111,255,255,251,245,16,0,22,242,47,165,240,0,0,5,254,239,132,246,102,98,5,240, +13,132,255,255,246,5,251,191,132,240,31,16,5,243,63,133,224,31,16,127,251,191,252,208,31,16,106,186,170,174,176,31, +16,2,229,123,12,128,31,16,28,192,30,175,48,31,16,42,16,1,138,0,31,16,0,0,0,1,0,0,0,0,7,32, +0,0,2,16,1,29,161,18,136,207,144,63,255,255,247,249,98,0,3,192,30,37,240,0,0,19,229,175,54,242,34,33, +92,207,253,200,255,255,246,0,9,144,5,240,47,0,95,255,255,246,224,47,0,19,75,182,38,208,47,0,9,137,155,104, +192,47,0,62,41,148,219,128,47,0,38,26,144,79,64,47,0,0,158,80,58,0,47,0,0,0,0,0,0,0,0,0, +0,0,184,0,0,0,0,0,0,126,16,0,0,25,153,153,174,153,153,146,46,238,255,238,238,238,227,0,0,142,0,0, +0,0,0,0,158,34,34,50,0,0,0,191,255,255,255,0,0,0,233,17,17,221,0,0,4,244,0,0,220,0,0,10, +208,0,0,250,0,0,95,96,0,2,248,0,6,250,0,19,40,244,0,46,144,0,63,255,144,0,1,0,0,0,0,0, +0,0,10,48,6,144,0,0,0,9,128,12,162,34,32,42,172,186,143,255,255,242,44,255,204,252,34,56,64,0,187,1, +187,141,252,80,0,191,255,15,158,144,48,0,205,93,15,39,185,208,0,217,60,15,36,253,32,0,248,75,15,33,244,0, +3,245,74,15,32,185,0,7,225,105,15,72,127,48,30,130,152,31,252,44,209,60,28,227,31,64,2,144,0,0,0,0, +0,0,0,0,11,64,0,121,0,0,0,0,109,0,15,179,51,48,10,187,235,166,255,255,255,0,191,253,204,232,81,0, +0,0,143,32,75,79,83,51,0,8,243,65,11,255,255,208,0,159,255,118,214,253,84,0,10,224,215,68,45,162,32,0, +205,13,122,255,255,255,0,14,160,230,0,31,240,0,3,246,15,80,9,219,96,0,158,51,244,25,227,46,80,12,104,252, +29,178,0,77,16,16,0,0,16,0,0,16,2,85,85,85,85,85,32,7,255,255,255,255,255,96,0,0,0,243,0,0, +0,0,0,0,242,0,0,0,1,17,19,241,17,17,16,95,255,255,255,255,255,246,75,187,191,255,251,187,180,0,0,11, +143,64,0,0,0,0,63,63,64,0,0,0,0,202,31,64,0,32,0,10,225,31,64,0,246,3,206,48,15,114,37,245, +63,178,0,8,239,255,176,2,0,0,0,0,0,0,0,0,0,2,34,34,32,7,255,255,95,255,255,241,7,242,46,80, +4,208,0,7,208,15,88,165,208,0,7,255,255,90,118,176,0,7,192,14,111,107,195,49,7,255,255,111,223,253,212,7, +242,34,16,15,96,0,7,192,90,0,79,240,0,7,192,63,32,186,240,0,7,250,255,132,243,240,101,15,250,51,93,113, +243,151,9,64,0,139,0,207,226,0,0,0,17,0,0,0,0,207,255,255,255,252,0,0,205,85,85,85,220,0,0,205, +0,0,0,188,0,0,205,0,0,0,188,0,0,205,17,17,17,204,0,0,207,255,255,255,252,0,0,206,34,34,34,220, +0,0,205,0,0,0,188,0,0,205,0,0,0,188,0,0,207,34,34,34,220,0,0,207,255,255,255,253,0,0,205,0, +0,0,204,0,0,17,0,0,0,0,0,6,240,13,255,255,255,224,6,240,13,194,34,47,224,6,240,13,176,0,15,224, +6,240,13,176,0,15,224,6,240,13,193,17,31,224,6,240,13,255,255,255,224,6,240,13,193,17,31,224,6,240,13,176, +0,15,224,6,240,13,176,0,15,224,6,240,13,193,17,31,224,6,240,13,255,255,255,224,6,240,13,193,17,31,224,0, +0,1,16,0,0,0,0,255,255,255,255,255,0,0,244,34,34,34,127,0,0,255,255,255,255,255,0,0,244,34,34,34, +111,0,0,252,204,204,204,223,0,0,255,255,255,255,255,0,0,0,0,245,0,0,0,18,34,34,248,34,34,32,175,255, +255,255,255,255,242,0,0,0,245,0,0,0,0,0,0,245,0,0,0,0,0,0,245,0,0,0,0,0,0,0,0,245, +0,111,255,249,0,0,245,0,111,34,252,119,119,252,96,111,0,254,221,221,255,192,111,0,249,0,0,245,0,111,255,249, +182,0,245,0,111,34,249,142,16,245,0,111,0,249,30,128,245,0,111,0,249,7,225,245,0,111,34,249,1,48,245,0, +111,255,249,0,0,245,0,111,0,0,2,35,245,0,18,0,0,8,255,193,0,0,0,0,0,0,0,0,0,239,255,255, +255,255,0,0,230,17,17,17,127,0,0,239,255,255,255,255,0,0,230,17,17,17,127,0,0,239,255,255,255,255,0,0, +100,0,9,48,0,0,0,219,34,47,80,92,128,0,255,255,207,221,250,48,0,200,0,15,245,16,0,0,200,0,15,80, +0,148,6,255,172,223,130,35,229,15,252,134,73,239,255,193,0,0,0,0,0,0,0,0,95,255,255,255,244,0,0,95, +49,17,20,244,0,0,95,255,255,255,244,0,0,95,49,17,20,244,0,0,95,255,255,255,244,0,1,34,34,34,34,34, +16,7,254,238,238,238,239,112,7,240,0,0,0,31,112,7,255,255,255,255,255,112,7,241,17,17,17,63,112,7,242,34, +34,34,79,112,7,255,255,255,255,255,112,0,0,0,0,0,0,0,11,255,255,124,255,255,249,11,226,47,124,226,34,249, +11,176,15,124,176,0,249,11,226,47,124,250,170,249,11,255,255,124,249,153,249,11,176,15,124,176,0,249,11,176,15,126, +249,153,249,11,255,255,143,231,119,249,11,226,34,111,80,0,249,4,80,0,190,16,0,249,0,0,6,247,0,35,248,0, +0,11,160,0,207,211,0,0,0,0,0,0,0,0,255,255,255,255,244,0,0,243,0,0,0,244,0,0,255,255,255,255, +244,0,0,243,0,0,0,244,0,0,255,255,255,255,244,0,0,187,0,229,0,0,0,8,255,255,255,255,254,0,111,80, +0,246,0,0,0,2,207,255,255,255,242,0,0,17,17,246,17,16,0,0,0,0,246,0,0,0,127,255,255,255,255,255, +192,0,0,0,0,0,0,0,0,0,0,230,0,0,0,5,255,255,255,255,255,176,1,34,39,243,34,34,16,0,239,255, +255,255,255,64,0,17,79,81,17,17,0,15,255,255,255,255,255,249,2,44,244,34,63,211,33,1,191,255,255,255,253,48, +30,223,144,0,9,218,248,4,28,255,255,255,192,65,0,12,144,0,9,192,0,0,12,178,34,43,192,0,0,12,255,255, +255,192,0,0,1,0,0,0,0,0,0,0,0,23,0,0,0,63,136,132,90,0,0,0,111,170,247,189,102,102,96,111, +0,247,255,252,204,192,111,0,249,217,240,0,0,111,68,254,137,242,34,32,111,221,248,25,255,255,176,111,0,247,9,240, +0,0,111,0,247,9,241,17,16,111,34,247,9,255,255,208,111,255,247,9,242,34,32,111,0,0,9,240,0,0,1,0, +0,9,240,0,0,0,255,255,255,255,245,0,0,247,85,85,85,245,0,0,246,85,85,85,245,0,0,255,255,255,255,245, +0,0,0,0,0,0,0,0,40,136,136,136,136,136,130,59,187,187,255,187,187,178,0,61,16,158,34,34,16,0,175,0, +159,255,255,64,1,239,128,156,0,0,0,10,212,236,255,50,34,33,94,48,40,223,255,255,243,1,0,0,0,0,0,0, +0,15,255,255,255,255,80,0,0,243,0,0,1,245,0,0,15,221,221,221,223,80,0,0,242,0,0,0,245,0,0,15, +255,255,255,255,80,0,0,17,114,18,113,16,0,0,102,15,32,47,2,193,0,4,224,242,2,240,185,0,0,11,95,32, +47,93,16,0,0,49,242,2,241,32,0,60,204,207,236,239,204,204,66,136,136,136,136,136,136,131,0,254,238,238,238,245, +0,0,248,119,119,119,245,0,0,247,85,85,85,245,0,0,238,238,238,238,229,0,4,183,119,119,119,119,64,9,248,136, +136,136,136,64,9,168,204,204,204,196,0,9,247,119,119,119,119,80,11,251,254,255,203,189,144,13,96,242,10,198,203,0, +47,50,245,86,175,213,16,157,12,255,181,4,175,192,3,3,48,0,0,0,16,0,4,176,0,8,128,0,2,52,246,51, +111,115,32,8,255,255,255,255,255,160,1,197,13,82,240,139,0,0,142,45,82,242,246,0,75,204,191,254,251,219,180,39, +119,119,119,119,119,115,0,157,221,221,221,218,0,0,175,0,0,0,251,0,0,175,255,255,255,251,0,0,175,0,0,0, +251,0,0,175,17,17,17,251,0,0,175,255,255,255,251,0,0,0,0,0,0,0,0,0,190,221,221,221,234,0,0,187, +119,119,119,202,0,0,187,85,85,85,186,0,0,157,221,238,221,217,0,39,119,119,255,119,119,113,39,119,119,136,119,119, +113,0,94,238,238,238,230,0,0,110,51,51,51,231,0,0,111,255,255,255,247,0,0,7,112,170,24,64,0,23,220,48, +170,22,221,80,25,80,79,230,0,6,144,0,0,0,0,0,0,0,0,16,0,0,0,0,0,3,241,0,0,0,0,0, +10,255,255,162,255,255,208,46,59,193,2,242,40,208,76,191,251,179,240,7,208,37,111,246,82,240,7,208,1,190,189,82, +255,255,208,45,177,6,96,34,34,32,3,126,238,238,238,233,0,0,143,0,0,0,250,0,0,143,255,255,255,250,0,0, +143,0,0,0,250,0,0,143,17,17,17,250,0,0,143,255,255,255,250,0,0,0,0,0,0,0,0,0,43,32,0,2, +71,96,143,255,255,248,254,202,96,8,211,209,22,209,17,16,63,255,255,231,255,255,245,3,19,243,72,176,140,0,91,207, +254,187,128,140,0,53,51,241,47,48,140,0,0,0,48,2,0,34,0,0,175,255,255,255,250,0,0,168,0,0,0,250, +0,0,175,238,238,238,250,0,0,169,0,0,0,250,0,0,175,255,255,255,250,0,0,0,0,0,0,0,0,0,0,0, +0,71,0,0,79,170,97,34,127,66,32,111,141,135,255,255,255,208,111,11,128,45,16,77,16,111,11,129,31,81,155,16, +111,175,143,255,255,255,243,111,127,129,34,34,34,32,111,11,128,207,255,255,160,111,11,128,198,0,10,160,111,44,128,220, +102,110,160,111,255,128,223,170,175,160,111,0,0,200,34,43,160,17,0,0,223,255,255,160,0,0,0,0,0,0,0,0, +0,47,0,242,0,0,0,0,47,0,242,0,0,0,0,47,0,242,0,0,13,255,255,255,255,255,208,13,194,95,34,245, +44,208,13,176,47,0,242,11,208,13,176,47,0,242,11,208,13,255,255,255,255,255,240,13,226,95,34,245,46,224,13,176, +47,0,242,11,208,13,176,47,0,242,11,208,13,255,255,255,255,255,208,13,245,85,85,85,95,208,0,0,0,0,0,0, +0,143,255,255,255,255,255,176,0,17,17,247,17,17,0,0,254,238,255,238,239,0,0,242,0,246,0,47,0,0,255,255, +255,255,255,0,0,243,0,246,0,63,0,0,244,18,246,17,79,0,0,255,255,255,255,255,0,0,92,25,208,0,0,0, +0,11,255,80,0,0,0,3,125,255,217,117,67,32,111,182,16,88,172,239,208,1,0,0,0,0,0,0,1,253,221,221, +221,242,0,1,253,204,204,204,242,0,1,246,68,68,68,242,0,0,153,153,153,153,145,0,12,221,221,221,221,221,32,14, +32,242,2,240,47,32,13,221,237,221,237,222,32,1,17,17,17,17,16,0,15,255,255,255,255,243,0,0,62,162,1,126, +112,0,0,1,191,255,244,0,0,75,206,253,254,239,219,112,39,83,16,0,3,87,48,0,11,128,0,2,240,0,0,190, +255,229,46,255,238,48,0,12,128,0,3,240,0,0,255,255,252,143,255,255,160,1,79,227,16,46,253,33,0,45,137,227, +93,193,203,32,30,164,72,75,196,67,186,0,40,253,221,221,222,128,16,0,139,0,0,0,104,0,0,8,255,255,255,255, +144,0,0,139,0,0,0,104,0,0,8,210,34,34,40,128,0,0,143,255,255,255,249,0,0,0,16,0,0,0,0,0, +0,47,238,238,238,239,0,0,2,246,102,102,104,240,0,0,47,85,85,85,111,0,0,2,221,221,221,221,208,0,5,85, +85,85,85,85,85,0,191,252,207,252,204,204,192,0,159,136,252,136,136,180,0,9,197,95,171,214,143,80,0,159,238,245, +46,76,192,0,9,130,63,192,127,242,0,11,255,237,255,126,255,164,0,51,16,15,156,96,41,160,0,10,255,255,255,255, +128,0,0,175,34,34,34,248,0,0,10,240,0,0,15,128,0,0,175,255,255,255,248,0,0,10,242,34,34,47,128,0, +0,174,0,0,0,248,0,0,12,242,34,34,47,128,0,0,239,255,255,255,248,0,0,79,96,0,0,15,128,0,10,225, +0,0,0,248,0,5,247,0,0,34,63,128,0,169,0,0,9,255,194,0,0,0,0,0,1,0,0,0,0,0,9,80, +0,0,0,0,0,47,80,0,0,0,47,255,255,255,255,255,243,2,36,249,34,34,34,32,0,10,243,34,34,49,0,0, +95,255,255,255,249,0,5,239,176,0,0,185,0,79,120,254,238,238,249,0,3,8,176,0,0,185,0,0,8,255,255,255, +249,0,0,8,194,34,34,201,0,0,8,176,0,34,200,0,0,8,176,0,175,212,0,6,255,255,102,255,255,160,6,242, +47,102,243,46,160,6,224,14,102,241,11,160,6,255,255,102,255,255,160,6,242,47,102,243,46,160,6,224,14,102,240,11, +160,7,255,255,103,255,255,160,8,226,47,104,242,46,160,10,160,14,106,176,11,160,13,112,14,110,112,11,160,63,49,46, +159,33,44,160,122,3,253,170,3,254,80,0,0,0,0,0,0,0,8,255,247,127,255,255,224,8,226,231,143,51,62,224, +8,193,199,143,2,77,224,8,255,248,143,4,186,96,8,210,215,143,136,136,178,8,176,199,143,253,138,242,9,255,247,143, +108,6,208,10,194,231,143,30,60,112,11,128,199,143,8,255,16,14,80,199,143,3,255,0,63,34,199,143,78,173,178,74, +13,227,143,150,2,181,0,0,0,0,0,0,0,0,6,48,0,0,0,0,2,76,194,38,255,255,246,13,255,255,182,243, +34,246,11,176,11,182,241,0,246,11,254,239,182,255,255,246,11,226,46,182,243,34,246,12,245,93,182,240,0,246,13,255, +255,183,242,34,246,11,194,130,24,255,255,246,11,176,216,10,176,0,246,11,197,255,61,128,0,246,31,254,143,191,48,35, +246,31,113,1,106,0,207,194,0,0,0,0,0,0,0,0,15,32,0,0,0,0,18,47,82,37,255,255,160,143,255,255, +197,242,46,160,0,15,32,5,240,11,160,15,255,255,245,245,95,160,15,100,70,245,251,191,160,15,238,238,246,240,11,160, +15,83,53,246,246,111,160,12,207,252,200,252,207,160,18,47,82,42,144,11,160,175,255,255,206,80,11,160,0,15,32,93, +1,44,144,0,15,32,132,2,254,80,0,0,0,0,0,0,0,4,240,14,96,0,0,0,4,240,14,100,255,255,176,111, +254,239,250,243,46,176,23,242,47,133,241,11,176,4,253,223,100,255,255,176,4,242,47,100,243,46,176,4,252,207,101,240, +11,176,4,242,47,101,255,255,176,127,251,191,250,242,45,176,123,187,187,188,192,11,176,2,228,108,26,144,11,176,28,176, +29,158,81,44,160,76,16,3,75,2,253,80,0,0,0,0,0,0,0,0,0,0,246,0,0,0,0,0,0,246,0,0, +0,0,0,0,246,0,0,0,18,34,34,249,34,34,32,111,255,255,255,255,255,208,0,0,13,255,64,0,0,0,0,141, +254,209,0,0,0,5,244,247,203,0,0,0,78,128,246,46,177,0,6,249,0,246,3,236,32,175,128,0,246,0,61,226, +36,0,0,246,0,1,80,0,0,0,246,0,0,0,0,0,0,246,0,0,0,0,0,0,246,0,0,0,1,34,34,248, +34,34,0,7,255,255,255,255,255,0,0,0,0,246,0,0,0,1,17,17,247,17,17,16,127,255,255,255,255,255,240,17, +17,63,255,129,17,16,0,2,219,251,246,0,0,0,61,193,246,111,128,0,24,250,16,246,5,236,48,142,112,0,246,0, +60,209,2,0,0,246,0,0,32,0,0,0,246,0,0,0,0,0,0,246,0,0,0,0,0,0,246,0,0,0,111,255, +255,255,255,255,208,37,85,239,255,246,85,80,0,1,229,247,230,0,0,0,9,208,246,142,16,0,0,79,64,246,29,160, +0,1,218,0,246,4,247,0,44,230,85,251,85,191,112,141,79,255,255,255,137,193,1,0,0,246,0,0,16,0,0,0, +246,0,0,0,0,0,0,127,8,48,0,0,0,0,127,27,228,0,0,0,0,127,0,173,0,2,34,34,159,34,52,33, +13,255,255,255,255,255,244,0,0,3,255,209,0,0,0,0,12,255,202,0,0,0,0,174,159,46,128,0,0,10,244,127, +5,248,0,2,207,64,127,0,111,161,30,212,0,127,0,5,247,3,16,0,127,0,0,32,0,0,0,127,0,0,0,0, +6,255,255,252,0,0,0,6,242,34,236,0,0,0,10,192,0,188,0,0,0,127,96,0,189,34,32,29,247,0,148,111, +255,224,5,32,0,246,0,17,0,111,255,255,255,255,255,224,18,34,95,255,195,34,32,0,6,231,247,204,32,0,4,206, +80,246,26,249,32,111,162,0,246,0,93,209,3,0,0,246,0,0,16,0,31,32,0,0,0,0,0,1,242,8,255,255, +192,0,0,31,32,143,34,236,0,4,255,255,249,240,11,192,0,18,159,66,143,0,188,0,0,11,247,8,240,11,192,0, +1,239,243,158,0,188,0,0,138,248,218,208,11,192,0,30,79,38,203,0,188,0,7,177,242,14,128,11,192,112,18,31, +36,243,0,188,15,0,1,242,188,0,11,195,224,0,31,43,48,0,111,249,0,0,35,0,0,0,150,0,0,126,198,16, +77,211,0,0,1,125,255,249,16,0,0,0,75,255,249,32,0,2,125,250,48,93,249,16,8,232,32,74,0,109,48,1, +17,17,127,17,17,16,14,255,255,255,255,255,247,2,35,50,143,34,50,33,0,28,176,111,5,229,0,1,205,16,111,0, +95,112,13,193,18,127,0,5,244,3,16,30,249,0,0,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,15, +32,0,0,95,0,0,15,32,0,0,95,0,0,15,32,0,0,95,0,95,255,255,143,255,255,247,18,127,82,18,34,143, +33,0,175,144,5,16,95,0,1,239,245,12,160,95,0,9,159,127,36,243,95,0,63,63,38,0,200,95,0,138,15,32, +0,32,95,0,17,15,32,0,0,95,0,0,15,32,0,70,159,0,0,15,32,0,111,232,0,0,0,0,246,0,0,0, +18,34,34,248,34,34,32,79,255,255,255,255,255,176,0,0,0,246,0,0,0,0,255,255,255,255,255,16,0,244,34,248, +34,111,16,0,242,0,246,0,79,16,0,255,255,255,255,255,16,0,34,95,255,146,34,0,0,4,234,250,234,16,0,2, +159,144,246,45,213,0,111,229,0,246,1,159,209,6,16,0,246,0,3,80,0,47,0,0,0,0,0,0,47,0,136,154, +152,129,1,63,33,188,255,252,193,95,255,253,0,63,64,0,1,143,65,0,63,64,0,0,207,225,0,63,64,0,1,255, +187,0,63,64,0,7,223,44,0,63,64,0,29,127,1,0,63,64,0,77,47,0,0,63,64,0,3,47,0,0,63,64, +0,0,47,10,255,255,255,247,0,47,3,85,85,85,82,0,0,18,0,0,0,0,0,0,174,16,0,0,0,0,12,255, +255,255,176,0,1,175,243,34,207,80,0,30,229,204,58,247,0,0,5,16,47,255,112,0,0,1,73,238,238,251,115,16, +159,252,97,98,73,239,209,36,33,17,247,17,19,32,4,255,255,255,255,251,0,0,22,49,246,53,17,0,0,142,32,245, +94,128,0,11,227,18,245,3,234,0,4,16,111,210,0,37,0,0,0,0,0,0,0,0,0,0,0,246,0,0,0,2, +34,34,248,34,34,16,13,255,255,255,255,255,96,0,104,0,246,1,196,0,0,79,48,246,8,209,0,0,11,80,246,12, +64,0,143,255,255,255,255,255,240,18,34,95,255,162,34,32,0,2,218,250,246,0,0,0,61,176,246,95,112,0,23,250, +16,246,6,251,32,159,128,0,246,0,77,225,18,0,0,246,0,1,48,0,0,0,0,0,0,0,0,47,0,1,213,0, +0,0,47,0,0,187,0,0,0,47,0,34,122,34,34,27,223,180,255,255,255,250,5,223,98,0,0,0,0,0,207,176, +95,255,249,0,1,255,216,95,34,217,0,8,191,92,94,0,185,0,63,95,1,109,0,185,0,24,47,0,155,0,185,18, +0,47,1,231,0,185,62,0,47,10,225,0,186,110,0,47,45,64,0,110,231,0,0,0,0,0,0,0,0,47,0,0, +0,0,0,0,2,240,13,221,221,221,176,0,47,0,119,125,247,118,3,255,255,192,0,251,0,0,2,207,82,0,175,165, +0,0,14,253,32,111,251,246,0,2,255,106,127,127,86,246,0,138,240,174,81,245,7,208,46,79,3,32,31,80,1,6, +162,240,0,1,245,0,0,1,47,0,0,31,80,0,0,2,240,0,1,245,0,0,0,47,0,0,31,80,0,0,0,0, +0,0,0,0,0,0,47,0,4,80,131,0,0,47,0,11,176,185,0,0,47,0,30,112,126,0,63,255,251,111,16,47, +96,2,191,50,218,35,10,225,0,223,151,242,158,2,229,1,255,229,64,217,0,48,7,191,125,4,243,0,0,29,111,20, +10,192,123,0,60,47,0,47,96,63,48,2,47,0,157,35,95,224,0,47,3,255,255,239,242,0,47,0,181,49,0,145, +0,0,0,0,0,0,0,0,2,240,0,19,71,157,96,0,47,0,255,254,201,98,0,138,248,89,208,0,0,0,13,255, +216,156,0,0,0,0,9,244,9,255,255,255,96,0,223,209,158,247,39,244,0,46,250,122,185,160,159,16,8,175,50,201, +79,46,160,2,228,240,14,112,223,243,0,41,47,3,243,8,253,0,0,2,240,141,3,239,243,0,0,47,30,135,236,43, +248,16,2,244,193,184,0,8,176,0,0,0,0,0,0,0,0,0,47,0,0,0,0,0,0,2,240,127,255,255,176,0, +5,143,82,15,32,216,0,0,239,255,113,241,31,48,0,0,159,32,47,5,243,64,0,12,250,4,243,207,255,144,1,255, +181,111,144,6,245,0,124,244,57,223,48,206,0,30,111,0,197,188,79,112,2,194,240,47,18,255,208,0,1,47,8,176, +31,253,16,0,2,243,245,77,214,221,96,0,47,90,9,145,1,138,0,0,0,0,0,0,0,0,0,255,255,255,255,255, +0,0,246,0,246,0,111,0,0,254,238,255,238,239,0,0,246,0,246,0,111,0,0,255,255,255,255,255,0,0,34,34, +248,34,34,0,18,34,34,248,34,34,32,143,255,255,255,255,255,208,0,1,158,254,212,0,0,0,109,194,246,110,162,0, +109,231,0,246,2,159,177,38,16,0,246,0,2,80,0,0,0,0,0,0,0,0,47,0,0,191,0,0,0,47,0,2, +255,80,0,1,63,16,12,165,226,0,14,255,247,173,16,157,32,3,223,92,228,0,12,228,0,223,154,175,255,253,163,1, +255,227,127,34,220,0,6,223,123,125,0,203,0,12,143,20,125,17,234,0,46,63,0,125,79,228,0,3,47,0,125,0, +0,194,0,47,0,110,50,37,241,0,47,0,45,255,255,144,0,47,0,0,0,0,0,34,111,36,33,153,153,144,175,255, +255,162,250,170,240,0,185,12,146,240,2,240,6,245,30,114,244,70,240,143,179,255,50,204,204,192,91,16,33,84,0,0, +0,18,34,34,253,34,34,32,159,255,255,255,255,255,241,0,0,126,255,194,0,0,0,60,212,234,142,129,0,92,249,16, +234,2,191,178,57,32,0,234,0,2,128,0,0,0,0,0,0,0,0,47,0,0,15,32,0,0,47,0,0,15,32,0, +5,143,83,0,15,32,0,28,255,203,255,255,255,249,0,159,37,242,63,66,249,0,239,181,240,15,32,249,1,255,185,240, +15,32,249,8,191,71,255,255,255,249,30,111,5,242,63,66,249,44,47,5,240,15,32,249,1,47,5,240,15,32,249,0, +47,5,255,255,255,249,0,47,5,245,85,85,249,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,47,0,0,92, +0,0,0,47,0,0,31,64,0,2,79,33,204,207,204,204,15,255,246,246,85,85,127,1,143,33,241,0,0,47,0,207, +161,203,187,187,188,0,255,213,255,255,255,255,5,207,119,0,15,32,0,13,127,0,0,15,32,0,44,63,0,0,15,32, +0,1,47,0,0,15,32,0,0,47,0,2,63,32,0,0,47,0,7,252,0,0,0,1,0,0,0,0,0,0,0,0, +185,0,0,0,2,34,34,203,34,34,32,79,255,255,255,255,255,244,0,1,158,220,248,16,0,0,43,227,185,62,178,0, +41,251,32,135,1,175,163,43,92,204,204,204,180,145,0,15,97,17,23,224,0,0,15,237,221,222,224,0,0,15,80,0, +6,224,0,0,14,238,238,238,208,0,2,34,34,34,34,34,32,31,255,255,255,255,255,241,0,47,0,0,92,0,0,0, +47,0,0,47,64,0,1,79,17,34,43,98,33,47,255,251,255,255,255,245,1,175,17,0,15,96,0,0,223,128,0,15, +96,0,1,255,212,0,15,96,0,7,191,89,207,255,255,241,30,95,1,34,47,130,32,42,47,0,0,15,96,0,0,47, +0,0,15,96,0,0,47,7,187,191,251,183,0,47,7,221,221,221,215,0,47,0,0,0,0,0,0,47,0,47,255,255, +240,2,79,33,2,34,34,32,63,255,251,0,0,0,0,19,255,83,136,136,136,131,0,255,177,204,207,252,197,4,239,183, +0,13,112,0,10,175,56,41,29,118,80,63,79,0,142,13,119,176,57,47,0,216,13,113,225,1,47,7,225,13,112,180, +0,47,7,97,46,112,117,0,47,0,5,253,48,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,47,0,0, +93,16,0,0,47,0,0,29,96,0,0,47,0,221,222,221,218,14,255,248,88,133,105,84,2,207,49,29,144,79,80,0, +239,145,189,16,6,244,1,255,232,220,80,93,150,7,191,121,7,208,187,0,29,111,17,1,237,244,0,60,47,0,0,143, +224,0,2,47,0,4,239,248,0,0,47,2,175,161,127,214,0,47,5,197,0,3,166,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,47,0,75,0,10,128,0,47,0,30,96,47,80,2,79,33,42,146,174,33,13,255,248,255,255,255, +244,1,143,16,0,15,48,0,0,191,144,34,47,82,32,0,255,212,175,255,255,192,4,239,119,0,15,32,0,11,159,17, +34,47,82,33,29,63,8,255,255,255,248,2,47,0,0,15,32,0,0,47,0,0,15,32,0,0,47,0,0,15,32,0, +0,0,0,0,0,0,0,0,47,0,0,13,96,0,0,47,0,0,10,192,0,2,79,33,255,255,255,253,14,255,248,51, +223,51,51,1,143,16,4,242,7,48,0,207,128,93,129,127,48,0,255,227,223,255,247,0,5,223,136,51,143,113,164,12, +127,16,42,229,10,226,45,63,0,202,33,191,48,2,47,0,16,110,255,48,0,47,2,125,231,25,245,0,47,8,215,16, +0,103,0,0,0,0,0,0,0,0,47,0,1,211,0,0,0,47,0,9,248,123,48,0,47,0,79,250,175,112,47,255, +253,239,128,126,16,2,191,57,180,249,246,0,0,223,160,0,175,208,0,1,255,198,8,255,250,32,6,207,76,222,80,77, +247,13,127,9,239,255,255,226,93,47,0,125,34,44,144,21,47,0,124,0,12,144,0,47,0,126,34,46,144,0,47,0, +127,255,255,144,0,0,0,1,0,0,0,0,242,0,14,47,32,0,0,242,0,14,47,32,0,18,244,25,30,47,39,112, +191,255,107,126,47,62,112,4,246,5,222,47,173,0,7,255,17,110,47,99,0,11,252,144,15,47,128,0,45,244,66,191, +31,235,16,137,242,78,190,15,60,176,179,242,55,106,15,33,96,32,242,0,197,15,32,145,0,242,26,176,15,84,240,0, +242,139,16,10,255,144,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,214,0,0,0,14,255,255,255,255, +255,240,14,98,40,162,34,38,240,2,17,47,97,17,17,32,47,255,255,255,255,255,243,0,15,245,32,158,32,0,0,60, +159,255,249,48,0,10,206,252,167,106,238,112,5,84,34,203,34,38,33,95,255,255,255,255,255,245,0,1,142,254,232,32, +0,38,174,146,185,41,235,114,43,114,0,185,0,39,178,0,95,0,0,0,0,0,0,95,0,255,255,255,241,2,127,33, +244,34,37,241,63,255,249,247,204,198,241,1,239,48,244,51,52,241,0,255,192,245,254,227,241,2,255,198,246,240,227,241, +8,223,104,246,240,227,241,30,127,0,246,240,227,241,59,95,0,246,254,243,241,1,95,0,245,176,3,241,0,95,0,242, +0,37,241,0,95,0,242,0,175,176,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,78,238,238,255,242,0,0, +6,172,239,249,32,0,0,123,186,136,122,179,0,46,238,255,109,238,239,224,6,130,157,20,114,62,64,3,191,245,3,207, +248,0,41,236,222,62,234,158,144,24,49,36,174,33,19,112,63,255,255,255,255,255,244,0,2,173,205,218,48,0,21,174, +129,138,23,235,98,43,97,0,138,0,22,178,0,47,0,0,47,0,0,0,47,2,225,47,0,232,0,47,0,199,47,5, +243,31,255,250,125,47,28,144,4,223,67,37,47,24,16,0,239,131,187,223,203,183,1,255,214,187,187,187,249,7,191,73, +0,0,0,249,30,111,3,255,255,255,249,60,47,0,34,34,34,249,3,47,0,0,0,0,249,0,47,8,255,255,255,249, +0,47,1,34,34,34,249,0,242,0,137,0,0,0,0,242,0,232,34,34,32,0,242,5,255,255,255,241,108,254,110,129, +17,17,16,38,248,73,255,255,255,160,5,252,0,228,167,26,144,9,255,66,243,44,75,160,14,248,191,255,255,255,247,90, +243,22,225,197,28,128,165,242,7,192,59,28,96,32,242,10,255,255,255,242,0,242,1,33,19,95,64,0,242,0,0,13, +250,0,0,16,0,0,0,0,0,0,15,32,0,15,32,0,18,47,66,18,47,66,32,127,255,255,175,255,255,224,0,207, +243,0,191,243,0,26,191,142,59,175,158,48,124,31,36,139,31,40,225,1,9,41,145,10,32,16,0,4,255,255,255,243, +0,5,207,145,17,45,208,0,4,131,220,50,205,32,0,0,0,27,255,177,0,0,2,88,223,213,0,0,0,12,252,130, +0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,242,0,1,245,0,0,0,242,0,8,251,0,0, +17,243,0,79,94,144,0,191,255,115,230,3,234,16,72,248,126,162,34,94,194,7,251,183,207,255,244,178,12,253,80,0, +32,2,0,61,245,121,96,227,12,112,183,242,6,176,182,78,16,113,242,2,240,118,183,0,0,242,0,16,4,208,0,0, +242,95,255,255,255,240,0,242,18,34,34,34,32,0,0,0,0,0,0,0,0,242,0,0,108,0,0,0,242,11,255,255, +255,176,0,242,1,34,249,34,16,159,255,131,255,255,255,80,56,251,48,25,193,17,16,6,255,79,255,255,255,240,11,252, +145,204,52,138,16,29,245,136,243,141,45,80,121,242,110,127,255,247,227,195,242,19,17,157,17,48,32,242,7,255,255,255, +64,0,242,0,0,140,0,0,0,242,0,0,140,0,0,0,0,0,0,0,0,0,0,242,0,0,0,0,0,0,242,111, +255,121,255,176,1,243,111,62,121,237,176,143,255,223,46,121,220,176,19,245,111,255,122,255,192,5,252,111,46,121,220,176, +10,253,175,29,121,203,176,29,246,143,255,123,255,192,121,242,143,47,123,222,176,131,242,156,13,124,155,176,0,242,200,13, +142,107,176,0,245,243,45,207,44,176,0,245,144,190,120,46,112,0,0,0,0,0,0,0,0,242,0,96,123,6,48,0, +242,0,214,123,46,48,18,244,17,136,157,105,32,175,255,121,239,255,254,224,3,246,0,77,255,229,0,6,255,57,249,123, +94,161,11,253,185,80,151,2,128,46,246,146,39,242,34,32,137,242,47,255,255,255,241,211,242,0,126,17,231,0,48,242, +0,255,191,209,0,0,242,2,90,255,248,16,0,242,61,200,64,58,128,0,242,0,31,32,244,0,0,242,11,239,253,255, +208,18,244,21,111,133,249,80,175,255,131,124,119,184,32,3,248,6,214,102,110,80,6,255,38,254,238,239,80,10,252,182, +192,0,14,80,46,245,199,254,255,239,80,153,242,0,0,199,0,0,179,242,111,255,255,255,240,16,242,17,43,237,177,16, +0,242,22,206,50,219,64,0,242,109,129,0,25,193,0,0,0,0,0,0,0,0,15,32,0,0,129,0,0,0,242,10, +255,107,171,0,1,47,65,100,242,127,86,0,175,255,121,252,18,255,128,0,79,64,143,255,253,243,0,7,253,159,98,34, +26,225,0,207,249,95,255,255,196,0,60,247,194,241,0,108,0,11,127,32,31,255,255,192,0,177,242,0,103,17,179,0, +1,15,32,6,208,94,16,0,0,242,18,77,45,162,32,0,15,44,255,255,255,255,0,0,242,0,62,4,241,0,0,242, +78,255,239,255,227,18,244,17,78,21,242,16,143,255,143,238,238,238,240,20,246,47,55,119,115,240,5,254,3,39,119,115, +48,9,254,158,239,254,238,226,14,247,100,159,192,5,64,91,242,25,87,249,255,64,149,242,42,215,191,185,0,32,242,5, +92,175,46,32,0,242,141,163,78,8,209,0,242,50,12,230,0,80,0,0,0,0,0,0,0,0,0,0,83,0,0,0, +4,16,0,247,0,0,0,29,212,4,245,34,36,16,0,142,27,255,255,255,192,0,1,31,113,114,31,128,0,0,174,18, +244,95,16,0,1,135,3,246,120,0,0,45,32,6,248,0,0,0,173,16,11,253,0,0,5,245,0,63,142,96,0,46, +176,1,221,8,226,0,44,32,61,227,0,206,80,0,4,252,32,0,26,226,0,0,64,0,0,0,16,0,0,0,0,0, +0,0,0,0,0,0,77,0,0,0,24,136,141,38,176,0,0,2,170,172,245,207,255,255,192,5,0,95,46,116,52,249, +1,217,9,229,224,242,95,64,3,246,217,86,31,82,96,0,8,255,64,2,249,0,0,0,15,240,0,79,192,0,0,4, +255,112,9,223,32,0,2,234,174,18,245,202,0,2,221,19,113,203,3,247,0,42,16,3,205,32,7,250,16,0,0,58, +32,0,5,144,0,0,0,0,16,0,0,2,34,34,32,228,0,0,15,255,255,241,241,0,0,15,49,20,69,255,255,250, +15,228,11,121,179,37,247,15,173,31,78,79,39,242,15,61,221,76,15,43,192,15,37,249,0,31,112,16,15,35,251,0, +63,144,0,15,43,223,32,95,224,0,15,127,44,144,155,245,0,15,231,5,112,228,157,0,15,99,34,39,224,30,160,15, +255,255,255,96,4,231,0,0,0,5,0,0,49,0,118,0,0,179,0,0,2,228,114,2,242,0,0,11,145,190,6,251, +188,246,143,255,255,139,247,122,246,42,145,3,111,76,40,241,15,251,187,139,15,59,160,79,223,235,16,31,112,16,120,15, +32,0,79,160,0,191,255,255,160,127,225,0,34,143,114,32,200,215,0,0,203,229,5,226,94,32,27,192,93,78,112,10, +210,139,16,1,170,0,1,183,0,0,0,16,0,0,0,0,0,0,0,16,0,0,4,240,15,64,196,0,0,58,245,95, +162,241,0,0,111,253,223,247,254,239,248,4,240,15,71,212,72,246,4,255,255,93,94,39,241,4,240,15,124,31,58,176, +4,254,239,64,31,128,0,4,241,31,64,63,160,0,143,251,191,246,111,225,0,123,187,187,182,169,216,0,2,212,123,2, +244,110,32,28,176,29,140,176,10,210,75,16,2,44,32,1,179,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +12,96,1,226,0,0,76,207,252,197,240,0,0,20,79,164,70,248,136,244,12,207,252,168,250,172,248,6,102,102,92,113, +5,245,1,17,17,63,63,41,241,15,255,255,220,31,44,176,55,119,119,114,47,128,0,107,191,251,180,95,208,0,9,76, +121,80,172,245,0,30,28,118,210,245,158,32,105,45,113,92,192,29,229,0,222,48,44,48,1,182,0,0,0,0,0,0, +0,0,0,1,0,2,0,0,12,80,10,160,47,48,0,5,208,93,32,111,16,16,159,255,255,248,207,255,248,1,242,241, +17,233,53,245,127,255,255,248,227,245,241,0,226,241,245,99,246,176,207,255,255,251,5,241,0,37,246,245,240,7,244,0, +127,255,255,240,10,248,0,44,247,255,96,47,142,16,76,241,249,160,171,13,112,195,241,242,120,226,4,244,16,241,241,27, +48,0,118,0,0,0,0,0,0,0,0,0,0,0,8,32,0,0,15,255,255,255,79,32,0,0,0,0,1,241,111,102, +107,48,0,254,241,241,191,221,255,144,0,240,241,243,244,97,95,96,0,222,225,250,192,242,159,32,24,136,137,249,81,246, +70,0,43,187,187,254,82,250,0,0,0,234,161,242,6,254,16,0,0,210,226,242,11,158,144,0,0,254,242,242,79,38, +244,0,0,112,0,245,232,0,174,64,0,0,94,217,160,0,9,160,0,0,0,0,0,0,0,0,0,0,0,10,192,0, +0,0,0,0,10,192,0,0,0,0,0,10,192,0,0,0,76,0,10,192,0,0,0,95,0,10,226,34,32,0,95,0, +10,255,255,243,0,95,0,10,192,0,0,0,95,0,10,192,0,0,0,95,0,10,192,0,0,0,95,0,10,192,0,0, +0,95,0,10,192,0,0,61,255,221,223,253,221,220,40,136,136,136,136,136,135,7,136,136,136,136,136,96,12,204,204,255, +204,204,160,0,0,0,127,0,0,0,0,0,0,127,0,0,0,0,111,0,127,0,0,0,0,111,0,127,255,255,48,0, +111,0,127,34,34,0,0,111,0,127,0,0,0,0,111,0,127,0,0,0,0,111,0,127,0,0,0,43,255,187,255,187, +187,179,42,170,170,170,170,170,163,0,0,141,0,246,0,0,0,0,8,208,15,96,0,0,0,0,141,0,246,0,0,0, +43,8,208,15,96,3,0,2,240,143,34,246,42,245,0,47,8,255,175,238,214,0,2,240,141,0,255,80,0,0,47,8, +208,15,96,0,0,2,240,141,0,246,0,0,0,47,8,208,15,96,1,48,2,240,141,2,246,0,63,0,95,143,255,174, +146,40,192,47,252,167,82,142,255,229,0,32,0,0,0,0,0,0,0,0,0,127,32,0,0,0,44,32,127,66,34,0, +0,63,32,127,255,255,0,0,63,32,127,32,0,0,42,223,202,255,202,170,162,60,204,204,255,204,204,194,0,2,113,111, +0,37,0,0,28,176,111,0,174,16,2,221,16,111,8,245,0,8,194,0,111,159,112,0,0,16,1,143,229,0,0,1, +55,191,233,16,0,0,30,254,166,16,0,0,0,3,32,0,0,0,0,0,0,0,0,0,110,40,0,1,255,255,244,110, +46,160,0,34,34,33,94,3,227,2,34,34,34,127,34,65,13,255,255,255,255,255,250,0,0,137,0,47,32,0,2,192, +172,0,31,48,0,2,240,175,238,14,96,0,2,240,174,51,11,128,0,2,240,172,0,8,192,35,2,240,173,71,83,242, +77,26,252,255,236,112,202,138,10,151,66,0,0,44,212,0,8,176,0,47,0,0,0,8,176,0,47,0,0,4,8,180, +255,255,255,241,15,40,177,34,95,34,32,15,40,252,48,47,0,0,15,40,247,204,239,207,112,15,40,176,159,119,143,112, +15,40,176,31,64,127,32,15,40,176,9,194,234,0,15,41,250,33,239,225,0,79,239,248,18,255,209,0,191,114,3,158, +198,237,113,0,0,8,198,0,24,192,0,0,0,0,0,0,0,14,255,255,255,255,255,240,2,34,35,255,82,34,32,0, +0,110,252,169,32,0,1,108,231,186,58,249,32,29,232,32,170,0,59,209,5,84,68,187,68,68,80,11,255,255,255,255, +255,192,0,59,16,157,51,51,0,0,79,16,159,238,238,0,0,79,16,155,0,0,0,75,255,203,255,187,187,180,95,255, +255,255,255,255,246,79,255,255,255,255,255,241,59,191,251,187,254,187,177,0,63,48,0,242,1,0,0,207,255,245,242,45, +112,4,246,39,243,246,237,32,46,178,8,224,255,145,0,59,158,62,144,247,0,0,0,27,255,32,242,0,0,0,3,249, +0,242,0,32,0,28,209,0,242,1,242,4,221,32,0,245,37,241,63,161,0,0,159,255,144,2,0,0,0,0,0,0, +0,0,70,0,0,0,0,3,141,250,27,255,252,0,8,245,16,11,226,236,0,7,242,34,12,176,220,0,7,255,253,31, +128,204,0,7,208,1,190,32,143,248,7,244,67,117,34,35,16,7,254,236,143,255,255,144,7,208,0,13,80,47,64,26, +247,156,21,226,188,0,143,250,117,0,175,242,0,7,208,0,23,239,249,48,7,208,3,253,96,75,246,0,0,0,32,0, +0,16,0,4,80,0,0,0,0,0,14,194,34,34,34,32,0,127,255,255,255,255,240,4,246,0,0,0,0,0,62,175, +255,255,255,248,0,4,31,102,231,34,216,0,0,63,16,77,80,200,0,111,255,255,255,255,255,247,18,174,41,213,34,249, +33,0,170,0,110,48,229,0,0,255,255,255,255,255,240,0,51,34,35,39,244,32,0,0,0,4,255,144,0,0,0,0, +0,0,0,0,10,224,0,15,96,0,0,10,240,0,15,96,0,0,10,240,0,15,96,0,0,10,240,0,15,96,28,112, +10,242,34,31,98,222,96,10,255,255,95,206,194,0,10,240,0,15,247,0,0,10,240,0,15,112,0,0,10,240,0,15, +96,1,16,10,240,0,15,96,3,224,10,240,72,63,96,4,224,15,254,253,62,146,40,176,47,247,32,8,239,254,64,3, +0,0,0,0,0,0,0,243,0,7,192,0,0,0,245,34,39,192,75,80,0,255,255,199,254,233,48,0,243,0,7,244, +0,48,3,248,121,150,210,34,213,11,252,167,66,223,255,193,25,153,169,153,153,153,145,21,110,246,89,245,86,97,5,239, +255,248,242,141,176,78,131,10,212,255,182,0,1,78,222,52,241,0,82,0,79,227,4,242,17,183,45,215,0,1,207,255, +210,3,0,0,0,0,0,0,0,0,0,0,2,113,0,0,0,3,105,223,230,0,6,172,255,251,115,0,0,6,150,71, +240,0,0,0,0,0,6,244,104,189,64,4,155,223,255,219,134,32,5,168,105,240,0,0,0,0,0,5,241,53,121,179, +5,121,191,255,254,202,130,14,219,156,243,16,0,0,0,0,5,240,0,0,151,0,0,4,244,34,35,232,0,0,1,191, +255,255,194,7,255,255,255,255,245,0,7,242,34,34,34,245,0,7,240,0,0,0,245,0,7,255,255,255,255,245,0,7, +251,187,255,203,180,0,7,240,0,63,48,0,0,7,255,255,255,255,255,176,7,242,34,46,178,34,32,7,240,0,6,224, +2,0,7,240,3,65,230,8,208,10,250,239,176,94,91,208,15,250,98,0,5,222,96,1,0,0,0,0,0,0,0,5, +80,0,0,0,0,0,15,146,34,34,34,32,0,127,255,255,255,255,240,2,232,17,17,17,17,0,11,198,255,255,255,254, +0,110,66,34,34,35,32,0,1,223,255,255,255,240,0,0,0,0,0,6,224,0,0,0,0,0,5,240,0,0,0,0, +0,3,242,0,0,0,0,0,0,245,83,0,0,0,0,0,172,151,0,0,0,0,0,44,226,0,0,0,0,0,0,0, +0,14,80,0,0,0,0,0,111,254,238,238,238,224,2,232,102,102,102,102,0,28,178,119,119,119,119,0,42,206,238,238, +239,242,0,0,68,77,3,98,242,0,2,211,175,125,81,242,0,1,105,229,223,64,243,0,8,234,125,5,209,228,0,1, +147,142,6,160,214,16,5,210,254,255,48,169,86,1,125,144,78,178,93,134,12,180,0,0,139,10,226,0,0,0,0,0, +0,0,0,0,0,111,0,0,0,0,0,0,111,0,0,0,0,0,0,111,0,1,0,20,68,130,111,16,46,112,79,255, +253,111,113,205,16,1,19,249,111,236,193,0,0,8,244,111,239,16,0,0,30,192,111,63,80,0,0,159,64,111,8,245, +0,6,249,0,111,0,175,112,95,176,0,111,0,9,250,23,0,86,175,0,0,82,0,0,95,231,0,0,0,0,0,153, +64,0,0,0,0,0,107,254,130,0,0,0,0,0,40,227,0,0,0,143,255,253,0,0,0,0,18,34,255,0,10,96, +18,34,64,239,32,175,80,111,255,245,207,171,227,0,0,7,241,206,254,32,0,0,30,144,202,173,16,0,0,190,32,202, +29,193,0,26,245,0,202,3,221,80,95,80,34,217,0,26,226,1,0,143,212,0,0,16,0,0,0,0,0,0,0,0, +0,0,245,44,48,0,0,0,0,245,43,245,0,18,34,34,248,35,186,32,111,255,255,255,255,255,224,0,32,0,253,0, +5,0,7,227,0,255,16,158,32,0,158,32,255,153,227,0,0,9,36,249,255,48,0,0,3,190,245,143,64,0,3,175, +162,245,11,246,0,127,195,0,245,0,159,193,21,2,102,245,0,5,112,0,2,254,177,0,0,0,7,80,0,0,0,0, +0,7,236,95,255,255,255,192,0,23,27,194,34,63,160,0,0,6,224,0,63,112,139,64,2,244,0,143,48,25,244,0, +186,0,221,0,0,48,0,95,37,246,0,0,5,0,12,205,208,0,0,110,0,4,255,64,0,1,231,0,9,255,80,0, +8,209,2,191,121,247,0,63,97,142,212,0,127,212,7,0,166,0,0,2,162,4,179,0,0,245,0,0,2,191,112,0, +245,0,0,0,6,32,0,245,0,0,0,0,10,32,245,0,180,43,80,15,32,245,0,245,25,249,15,32,245,0,245,0, +51,15,32,245,0,245,0,3,15,32,245,0,245,0,13,111,32,245,0,245,0,126,31,32,245,0,245,2,231,15,32,245, +0,245,10,225,15,255,255,255,245,6,80,7,119,119,119,245,2,48,0,0,0,0,0,7,249,22,119,119,119,64,0,77, +61,221,255,221,128,0,0,0,0,247,0,0,24,16,0,0,247,0,0,61,229,0,0,247,0,0,0,115,0,0,247,0, +0,0,1,0,0,247,0,0,0,13,64,0,247,0,0,0,126,16,0,247,0,0,1,232,0,0,247,0,0,10,209,175, +255,255,255,245,10,80,69,85,85,85,82,0,0,0,0,0,0,0,8,96,0,5,240,0,0,8,252,32,5,240,0,0, +0,42,0,6,224,0,0,0,0,0,7,208,0,0,104,16,255,255,255,255,241,92,243,34,45,252,34,32,0,80,0,14, +190,0,0,0,2,0,79,63,48,0,0,94,0,155,11,144,0,0,217,3,245,5,226,0,8,225,29,251,32,203,0,63, +114,205,59,227,63,144,42,5,194,0,146,5,177,0,0,0,0,0,0,0,1,48,0,132,0,0,0,6,250,19,245,34, +34,33,0,76,43,255,255,255,247,0,0,111,65,17,17,0,24,16,150,255,255,255,48,60,229,1,17,17,17,0,0,81, +79,255,255,255,0,0,1,2,34,34,126,0,0,46,32,0,0,94,0,0,172,0,0,0,94,0,4,244,0,0,0,63, +68,12,176,0,0,0,15,152,5,48,0,0,0,8,227,2,145,0,0,243,0,0,3,222,64,0,243,0,0,0,25,34, +34,245,34,32,0,0,47,255,255,255,242,9,48,47,2,240,0,242,26,248,46,3,244,0,226,0,69,0,6,255,16,0, +0,1,0,9,223,16,0,0,11,96,13,159,16,0,0,95,32,94,95,16,16,0,217,2,232,79,16,150,7,225,45,193, +79,66,197,7,112,156,16,29,255,193,0,0,0,0,0,0,0,3,96,0,0,0,0,0,4,236,95,255,255,255,242,0, +24,79,34,34,35,242,0,0,44,0,0,0,194,44,64,0,36,34,65,0,26,248,0,191,255,246,0,0,84,0,188,0, +246,0,0,1,0,188,0,246,0,0,12,96,203,0,246,0,0,95,32,233,0,246,33,1,233,5,245,0,246,121,9,225, +45,192,0,232,152,10,96,188,16,0,175,227,0,0,16,0,0,0,0,7,179,0,0,246,0,0,2,175,80,0,246,0, +0,0,4,5,160,246,77,16,0,0,9,176,246,13,128,94,113,14,112,246,6,225,6,232,79,32,246,1,229,0,33,187, +0,246,8,96,0,6,67,0,246,63,64,0,47,64,0,148,203,0,0,188,0,0,27,226,0,4,244,0,22,237,32,0, +13,160,90,239,145,0,0,4,32,123,113,0,0,0,1,16,0,0,0,0,0,0,142,112,4,255,255,160,0,0,93,48, +95,34,218,0,0,0,0,9,192,11,160,0,59,80,41,244,0,143,219,1,126,133,163,0,0,52,48,0,17,47,255,255, +255,176,0,0,113,95,82,40,246,0,0,63,48,173,19,236,0,0,11,176,1,207,253,16,0,5,243,0,60,255,162,0, +0,218,9,223,196,93,252,112,3,32,119,32,0,4,148,0,2,96,0,2,245,0,0,5,236,32,10,252,0,0,0,44, +64,127,77,160,0,0,0,7,245,3,234,16,26,49,191,96,0,62,211,43,247,188,255,255,252,162,0,115,8,242,34,250, +0,0,1,8,208,0,233,0,0,12,88,208,35,246,0,0,95,56,208,223,194,0,1,218,8,208,0,2,209,8,242,8, +227,34,40,224,9,128,2,207,255,254,96,0,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,5,225,0,0,0, +0,255,255,255,255,246,0,0,243,0,0,0,246,0,0,242,0,0,0,246,0,0,255,255,255,255,246,0,0,250,170,170, +170,246,0,0,238,238,255,238,229,0,18,34,64,250,0,123,16,127,255,244,255,91,229,0,0,28,192,249,252,16,0,2, +205,32,242,143,129,0,143,194,34,242,4,223,160,52,0,207,192,0,5,64,0,0,0,0,0,0,0,5,96,0,0,242, +0,0,8,251,16,0,242,0,0,0,78,50,34,245,34,0,0,1,14,255,255,255,32,55,16,0,0,242,0,0,76,229, +0,0,242,0,0,0,81,143,255,255,255,176,0,2,36,78,244,68,48,0,30,48,63,65,48,0,0,157,0,171,5,226, +0,3,245,5,243,2,236,0,12,192,31,254,255,255,80,27,48,14,117,49,9,144,0,0,0,0,0,1,0,3,113,0, +119,0,0,0,5,221,48,216,0,0,0,0,24,21,255,255,255,192,0,0,29,178,34,44,192,25,32,159,98,34,11,192, +41,246,158,255,255,43,176,0,50,9,192,15,44,176,0,7,9,253,223,46,160,0,79,41,255,255,239,128,0,186,9,192, +0,255,64,4,244,9,192,0,50,114,12,192,9,211,34,36,244,7,64,3,223,255,255,176,9,96,0,0,242,0,0,7, +235,0,0,242,0,0,0,37,127,255,255,255,245,16,0,127,66,245,41,241,157,96,127,16,242,10,128,25,226,127,203,253, +207,64,0,16,127,255,136,223,64,0,49,143,94,16,190,0,0,201,173,12,165,246,0,4,243,218,2,255,176,0,12,178, +245,6,255,178,0,95,74,231,207,163,222,147,23,8,86,180,0,5,178,1,80,0,1,162,0,0,5,237,64,0,231,0, +0,0,26,98,34,168,34,32,0,0,111,255,255,255,243,26,64,1,64,0,53,0,25,249,4,241,0,141,0,0,51,1, +244,0,186,0,0,3,16,215,0,231,0,0,13,112,185,2,243,0,0,126,16,155,5,224,0,2,231,0,70,9,160,0, +11,208,255,255,255,255,248,3,48,34,34,34,34,33,0,0,0,0,1,0,0,2,182,0,0,201,0,0,1,126,176,0, +111,32,0,0,2,71,119,141,135,115,0,0,14,255,255,255,247,9,96,0,0,111,0,0,8,252,16,0,111,0,0,0, +39,0,0,111,0,0,0,1,6,255,255,255,240,0,9,161,34,143,34,32,0,47,80,0,111,0,0,0,188,0,0,111, +0,0,6,244,75,187,255,187,185,4,144,74,170,170,170,169,0,16,0,0,0,0,0,8,211,79,255,255,255,0,0,141, +37,246,37,248,0,0,1,0,78,222,96,0,58,48,1,111,255,97,0,24,246,191,181,55,223,177,0,48,49,0,242,3, +64,0,39,31,255,255,255,32,0,157,2,34,245,34,0,1,231,34,34,245,34,32,8,225,239,255,255,255,242,31,144,0, +0,242,0,0,7,32,0,0,242,0,0,2,128,0,131,158,0,0,0,95,177,47,57,224,0,0,0,62,70,243,191,34, +32,0,0,16,175,255,255,254,0,7,32,47,48,158,0,0,1,175,115,128,9,224,0,0,0,68,110,238,255,254,233,0, +0,5,190,251,239,187,112,0,8,16,77,2,240,0,0,5,225,8,160,47,0,0,0,216,1,213,2,240,43,0,126,18, +204,0,47,54,224,8,112,202,16,0,207,248,0,0,0,0,0,0,0,0,2,64,0,8,48,0,0,6,251,32,95,66, +35,0,0,43,33,255,255,255,16,0,0,11,246,0,185,0,42,48,189,126,73,209,0,42,247,82,7,255,32,0,0,66, +0,93,255,197,0,0,0,141,230,2,175,229,0,44,123,255,255,255,144,0,156,6,226,34,46,48,3,245,6,224,0,14, +48,11,192,6,242,34,47,48,10,64,6,255,255,255,48,0,0,0,16,0,0,0,2,80,0,3,243,0,0,6,246,1, +19,243,17,0,0,111,95,255,255,255,32,0,3,34,37,245,47,64,41,16,223,255,255,255,242,44,228,1,19,243,31,32, +0,130,47,255,255,255,32,0,1,1,20,244,17,16,0,93,95,255,255,255,176,0,201,0,3,243,0,0,5,242,255,255, +255,255,244,13,160,34,36,244,34,33,6,32,0,3,243,0,0,0,0,0,0,0,0,0,7,231,2,240,47,2,240,0, +108,18,240,47,2,240,0,0,2,240,47,2,240,7,32,54,242,47,98,240,43,246,138,254,111,230,240,0,98,215,232,191, +126,240,0,3,228,228,207,30,240,0,103,37,192,47,2,240,0,200,8,160,47,2,240,3,242,12,96,47,2,240,10,176, +79,16,47,2,240,10,80,151,0,47,2,240,0,0,0,0,0,0,0,8,64,0,4,192,0,0,8,249,35,52,248,51, +48,0,72,191,255,255,255,240,0,0,0,157,17,178,0,90,32,6,227,18,207,16,60,244,175,255,255,255,160,0,113,54, +67,33,3,144,0,1,10,132,224,198,0,0,78,26,132,224,198,0,0,203,12,116,224,198,0,6,243,31,68,224,198,98, +30,144,172,4,224,199,164,44,19,227,2,128,143,209,0,0,16,0,0,0,0,0,0,0,0,0,0,0,28,80,0,0, +0,1,240,25,247,255,255,240,97,240,0,100,240,33,240,241,240,0,0,240,241,240,241,240,104,16,240,241,240,241,240,93, +209,240,241,240,241,240,1,80,240,241,240,241,240,0,0,240,241,240,241,240,0,194,241,225,240,241,240,5,225,243,193,240, +241,240,12,144,25,150,0,17,240,79,48,125,27,128,19,240,57,6,178,1,177,190,144,0,0,0,0,0,0,0,3,16, +0,6,96,0,0,12,211,34,41,243,34,32,1,167,255,255,255,255,240,0,0,4,242,5,242,0,88,0,0,157,126,128, +0,77,193,0,47,255,64,0,1,82,156,251,123,255,193,0,16,152,160,1,165,80,0,198,4,240,2,242,0,4,243,5, +240,2,242,0,11,192,10,176,2,242,0,79,80,143,64,2,242,0,42,6,212,0,2,242,0,0,0,0,0,0,0,0, +4,32,7,112,0,2,240,8,210,5,225,4,82,240,0,167,170,235,167,162,240,0,1,136,159,167,162,240,42,32,49,63, +7,162,240,26,209,170,108,7,162,240,0,96,30,248,7,162,240,0,16,6,246,7,162,240,0,167,5,250,7,162,240,1, +244,13,191,55,162,240,8,192,142,27,144,2,240,30,102,244,3,32,36,240,4,2,80,0,0,159,144,1,178,0,32,95, +0,0,2,222,50,243,95,0,0,0,27,166,226,143,34,33,0,0,29,255,255,255,244,7,81,75,0,95,0,0,9,253, +76,187,255,187,185,0,36,75,187,187,187,184,0,1,17,17,17,17,16,0,8,169,255,255,255,160,0,46,89,209,17,28, +160,0,172,9,208,0,12,160,5,244,9,255,255,255,160,3,144,9,242,34,46,160,0,0,1,16,0,0,0,1,0,0, +4,128,0,0,13,161,20,37,243,34,0,2,200,159,255,255,253,0,0,16,159,0,0,189,0,104,16,159,255,255,253,0, +110,209,159,34,34,221,0,3,160,159,34,34,205,0,0,0,159,255,255,253,0,0,165,159,0,229,8,16,2,244,159,0, +159,220,32,10,208,159,0,47,224,0,63,96,175,140,133,250,16,76,1,255,183,32,78,192,0,0,81,0,0,1,32,2, +48,1,146,0,0,0,7,249,23,243,34,34,32,0,59,47,255,255,255,240,0,0,173,16,0,0,0,22,2,218,255,255, +255,144,78,210,8,227,213,44,128,1,145,27,193,76,28,145,0,19,255,255,255,255,248,0,153,31,132,194,30,113,1,229, +31,81,137,31,80,6,224,79,255,255,255,240,13,128,19,34,35,127,32,25,32,0,0,79,248,0,0,0,0,0,0,0, +0,7,96,5,16,95,1,97,6,235,46,160,95,7,225,0,41,6,245,95,30,96,0,0,1,147,95,23,0,75,32,11, +221,255,223,144,60,245,13,214,102,111,176,0,130,13,210,34,45,160,0,0,13,255,255,255,160,0,44,13,176,0,11,160, +0,170,13,255,255,255,160,4,243,13,210,34,45,160,13,160,13,176,1,44,160,25,32,13,176,1,237,80,5,0,0,0, +242,0,0,29,152,255,208,242,5,192,2,213,36,208,242,29,112,0,17,68,208,243,187,0,71,6,255,208,249,209,0,45, +151,208,8,250,152,131,2,88,176,9,253,250,148,1,25,255,240,242,212,0,4,193,53,208,242,152,0,8,160,5,192,242, +78,16,13,96,6,160,242,61,112,47,33,42,131,255,213,227,41,5,253,56,245,0,130,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,7,129,9,144,0,0,0,5,220,46,80,0,0,0,0,18,175,255,255,255,240,0,6,246,163,34,40, +240,92,77,120,246,102,37,240,60,226,47,255,254,70,240,0,48,90,15,32,6,224,0,32,223,255,255,214,224,0,169,26, +15,33,167,224,2,244,31,15,34,248,208,9,208,31,255,255,249,192,47,96,5,85,103,125,160,7,16,0,0,14,254,48, +0,0,0,0,0,0,0,1,80,0,0,0,0,0,4,236,79,255,255,255,242,0,42,63,34,34,50,242,0,0,26,28, +145,229,145,8,64,2,205,16,78,48,25,249,30,177,23,7,192,0,53,3,0,63,0,32,0,2,47,255,255,255,242,0, +30,18,40,255,243,32,0,139,0,78,127,170,0,2,244,7,246,47,46,128,10,192,174,80,47,4,229,6,64,17,0,47, +0,32,0,48,0,0,0,0,0,0,46,178,15,255,255,255,0,0,26,128,244,17,19,240,0,0,0,15,255,255,255,0, +6,64,0,244,0,2,240,0,126,177,15,255,255,255,0,0,37,0,148,18,145,16,0,0,17,13,80,47,4,96,0,9, +176,255,251,251,249,0,2,245,14,130,79,130,0,0,188,0,213,2,240,8,16,95,64,95,219,159,51,242,5,160,15,252, +115,207,251,0,0,0,32,0,0,0,0,3,80,0,0,0,0,0,6,235,111,255,255,255,224,0,39,18,42,242,34,32, +0,0,34,47,162,34,33,43,64,255,255,255,255,246,25,245,2,232,3,244,0,0,48,45,181,80,111,112,0,3,251,25, +144,8,229,0,135,57,105,155,62,80,1,230,46,41,154,119,209,6,225,201,9,149,192,214,13,128,49,42,145,32,65,24, +32,1,238,80,0,0,4,112,0,0,242,0,0,5,236,127,255,255,255,176,0,22,5,85,247,85,32,1,0,24,136,250, +136,48,62,96,187,187,254,187,179,4,213,170,170,170,170,163,0,16,14,255,255,255,176,0,21,14,193,17,31,176,0,110, +14,255,255,255,176,0,217,14,176,0,15,176,5,243,15,255,255,255,176,12,176,14,176,2,47,176,5,64,14,176,10,237, +96,1,48,0,0,0,0,0,5,235,43,255,255,255,128,0,25,75,130,34,47,128,0,0,11,255,255,255,128,43,80,11, +112,0,15,128,23,232,11,254,238,239,128,0,17,1,17,17,17,16,0,5,47,255,255,255,240,0,79,79,47,47,36,240, +0,201,47,15,15,2,240,5,242,47,15,15,2,240,29,147,239,191,207,206,250,6,34,136,136,136,136,135,0,0,0,0, +0,0,0,8,96,12,128,5,208,0,6,234,7,225,10,228,67,0,40,221,237,143,255,252,0,5,255,220,175,32,0,22, +0,79,0,172,34,48,60,210,95,36,63,255,248,0,64,111,255,112,47,177,0,0,139,14,98,79,34,0,196,169,15,127, +255,252,3,242,229,31,80,63,0,9,180,241,47,48,47,0,30,107,164,127,34,95,0,41,27,42,216,31,250,0,0,0, +0,0,0,0,0,3,64,0,0,0,0,0,7,250,95,255,255,255,246,0,56,95,34,77,82,33,0,0,95,57,239,169, +144,78,129,95,93,51,53,240,4,211,95,95,238,238,240,0,0,110,92,0,2,240,0,16,124,94,136,137,240,0,136,155, +75,191,235,176,1,232,216,40,15,38,96,7,243,244,171,15,37,225,30,152,212,227,47,32,182,25,41,80,21,252,16,0, +0,0,0,0,0,0,0,0,48,1,90,32,0,0,2,233,79,200,223,255,241,0,45,111,3,16,176,208,0,0,47,9, +97,176,224,10,96,63,127,246,128,208,3,217,159,147,93,124,160,0,34,36,51,55,71,48,0,3,15,255,255,255,176,0, +47,79,144,47,11,176,0,157,15,253,255,223,176,2,246,15,178,79,45,176,9,208,15,251,223,191,176,2,64,15,246,102, +111,176,0,0,0,0,0,0,0,5,96,1,36,87,173,32,7,251,111,253,218,136,16,0,56,10,35,225,47,32,0,0, +10,144,213,122,0,57,16,3,93,82,66,0,77,228,4,215,110,96,0,1,146,15,255,243,119,0,0,34,63,253,170,175, +144,0,169,57,54,241,2,48,2,243,255,255,255,255,244,10,176,17,111,175,113,16,47,65,107,248,4,236,130,3,1,183, +32,0,22,144,1,64,1,113,0,38,0,5,250,16,216,0,141,0,0,60,66,125,35,247,33,0,0,255,255,255,255,248, +7,16,9,128,1,227,0,44,228,30,53,22,192,64,0,113,123,31,77,85,225,0,2,252,251,143,191,112,0,106,183,243, +88,175,16,0,199,10,164,0,216,80,4,242,93,46,24,179,224,12,163,252,191,159,205,245,9,52,231,74,203,83,136,0, +0,0,1,0,0,16,0,0,0,0,48,0,0,10,80,0,6,242,0,0,5,231,255,255,255,255,240,0,68,37,212,37, +228,32,1,0,110,134,80,158,64,125,54,229,111,86,39,225,8,225,23,229,44,241,32,0,48,191,255,254,251,0,0,66, +69,159,216,21,32,0,215,28,244,78,77,144,4,249,239,240,11,247,0,11,163,69,209,67,219,16,63,48,15,255,211,44, +226,4,0,10,98,0,0,64,3,96,0,120,0,197,0,5,235,223,255,255,255,244,0,38,18,154,34,231,32,0,0,86, +119,102,118,101,25,32,239,255,255,255,252,44,227,1,31,18,241,16,0,113,47,255,255,255,240,0,1,47,79,38,226,240, +0,109,47,79,88,242,240,0,217,47,155,206,202,240,6,242,47,194,157,22,240,30,144,47,0,35,0,240,7,32,47,0, +0,45,192,1,0,0,2,96,0,0,9,195,17,20,243,17,16,0,141,223,255,255,255,240,0,1,207,18,53,118,240,39, +16,159,255,255,253,176,40,229,12,250,151,83,0,0,33,11,255,255,255,16,0,32,11,208,15,32,0,0,184,11,208,15, +32,0,1,244,223,255,255,255,192,7,224,68,168,72,197,64,13,128,25,229,4,235,16,28,32,233,16,0,44,176,0,0, +32,0,0,1,16,2,0,0,0,0,0,0,11,212,190,239,255,254,208,1,171,0,15,31,16,0,0,1,47,255,255,255, +240,54,0,47,15,31,18,240,94,193,47,255,255,255,240,1,144,20,68,68,68,64,0,0,11,255,255,255,160,0,120,104, +136,136,136,131,1,229,156,204,253,204,197,7,192,9,128,226,90,16,46,81,158,49,226,10,193,24,1,146,79,192,0,114, +0,0,0,0,0,0,0,0,0,0,1,48,0,0,6,196,0,4,242,0,0,2,174,207,255,255,255,241,0,1,185,17, +17,25,241,0,0,123,170,170,171,145,59,32,7,204,255,199,0,61,226,0,0,242,0,0,1,128,47,255,255,255,32,0, +0,47,68,246,79,32,0,107,47,119,250,127,32,0,200,47,187,254,191,32,4,242,25,186,154,201,16,12,160,40,232,7, +250,32,10,50,236,64,0,61,193,0,0,16,0,0,1,0,0,0,0,0,0,0,0,0,110,113,110,204,204,237,0,0, +93,86,236,204,205,208,0,0,16,108,119,119,173,0,24,16,2,102,102,102,80,2,190,82,253,253,223,222,128,0,102,47, +63,51,243,184,0,0,49,136,136,136,136,64,0,63,143,255,255,255,241,0,11,176,63,162,23,246,0,5,243,0,45,255, +228,0,0,217,5,139,255,255,201,80,3,32,154,115,0,55,182,0,0,0,0,1,64,0,0,29,145,19,53,246,51,32, +4,220,92,237,253,236,96,0,2,0,213,4,225,0,16,0,255,255,255,255,240,157,64,18,34,34,34,16,61,242,14,255, +255,255,32,1,112,14,80,0,47,32,0,0,14,220,204,223,32,0,76,14,185,201,175,32,0,216,3,53,246,51,0,8, +225,239,255,255,255,240,63,96,34,36,244,34,32,40,0,0,2,243,0,0,0,0,0,248,0,0,0,0,0,0,247,0, +0,0,0,33,0,247,0,2,0,0,172,1,246,0,31,112,1,231,3,244,0,127,32,7,242,4,247,0,216,0,12,144, +8,250,4,225,0,0,16,13,255,32,0,0,0,0,95,76,160,0,0,0,3,235,3,248,0,0,0,94,193,0,111,162, +0,59,251,16,0,5,239,177,26,80,0,0,0,22,112,79,255,255,255,255,255,176,0,0,0,247,0,0,0,0,0,0, +247,0,0,0,0,61,17,252,0,124,0,0,156,3,252,0,232,0,3,245,5,254,6,225,0,6,176,9,239,55,96,0, +0,0,47,139,176,0,0,0,0,190,19,246,0,0,0,27,244,0,143,128,0,40,238,64,0,7,253,113,110,129,0,0, +0,41,193,0,0,0,0,0,0,0,0,79,0,0,0,0,0,0,79,0,120,136,136,131,0,79,0,188,207,252,196,9, +79,28,16,6,240,0,30,79,107,0,6,240,0,76,94,180,0,6,240,0,105,110,16,0,6,240,0,0,140,0,0,6, +240,0,0,191,80,0,6,240,0,1,235,245,0,6,240,0,7,241,109,0,6,240,0,62,128,1,5,90,224,0,75,16, +0,11,254,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,0,0,0,0,2,35,246,34,34,34, +32,31,255,255,255,255,255,240,1,22,241,17,83,17,16,0,8,208,0,246,0,0,0,11,163,112,245,10,48,0,30,103, +178,243,78,16,0,95,44,117,245,199,0,0,203,6,25,251,16,0,6,244,0,30,158,96,0,63,160,0,174,21,244,0, +8,16,76,228,0,143,112,0,1,203,32,0,6,193,0,0,0,0,0,0,0,9,255,255,255,255,249,0,1,34,34,34, +34,201,0,0,238,238,238,238,249,0,1,34,34,34,34,201,0,9,255,255,255,255,249,0,0,0,1,180,0,0,0,0, +181,3,243,0,136,0,4,242,6,246,2,229,0,10,128,12,254,23,176,0,0,0,159,58,211,0,0,2,125,228,0,175, +165,32,159,216,16,0,3,174,208,18,0,0,0,0,0,16,0,0,0,0,1,0,0,0,139,0,0,78,32,0,0,139, +0,0,12,112,0,4,139,71,255,255,255,250,14,139,136,34,175,50,34,29,139,195,2,228,4,32,75,139,160,11,144,30, +128,104,154,0,140,17,189,0,0,169,0,159,255,243,0,0,223,0,35,79,96,0,0,255,160,1,201,30,48,5,226,216, +27,160,8,176,12,160,50,223,137,189,244,78,32,0,187,152,101,201,2,0,0,0,0,0,16,0,0,0,0,0,0,0, +0,109,0,13,96,0,0,0,109,0,47,48,0,0,0,109,17,111,118,102,101,10,109,122,239,255,204,202,30,109,166,244, +235,0,0,60,108,200,208,238,34,33,105,124,19,64,239,255,247,2,138,0,0,235,0,0,0,191,0,0,238,34,33,0, +239,144,0,239,255,249,5,226,229,0,235,0,0,29,128,82,0,235,0,0,43,16,0,0,235,0,0,0,0,0,0,0, +0,0,0,0,0,180,0,0,0,0,0,0,198,34,34,16,0,0,0,255,255,255,80,0,0,0,180,0,0,0,0,187, +187,255,187,180,0,0,250,153,153,153,245,0,0,242,0,0,0,245,0,0,244,34,34,34,245,0,0,255,255,255,255,245, +0,0,32,0,0,0,33,0,5,241,124,9,144,203,0,29,144,126,5,225,47,96,109,16,94,0,211,8,160,0,0,0, +0,0,0,0,0,123,0,0,0,0,0,0,123,8,255,255,255,246,0,123,8,242,55,34,246,9,123,143,240,31,0,246, +30,123,218,241,47,33,246,60,125,200,250,255,249,246,105,138,8,240,79,0,246,0,153,8,240,127,128,246,0,223,24,240, +213,227,246,1,254,168,249,192,123,246,7,225,236,246,16,20,246,46,128,56,255,255,255,246,44,16,8,242,34,34,246,0, +0,1,16,0,0,0,0,139,0,0,0,0,0,0,139,7,255,255,255,240,1,139,69,34,174,34,32,14,139,152,223,255, +255,112,45,139,210,214,54,44,112,106,138,96,213,79,11,112,51,153,0,213,79,11,112,0,185,0,213,94,11,112,0,255, +48,213,109,11,112,3,249,226,147,186,39,80,11,176,181,7,246,248,0,127,48,4,190,80,77,177,37,0,8,146,0,1, +144,0,0,0,0,0,0,0,0,167,0,13,48,0,0,0,167,1,63,183,154,176,1,167,106,255,250,153,112,14,167,226, +3,225,78,144,45,170,176,0,239,231,16,91,169,67,140,255,178,180,85,182,5,182,19,207,225,0,197,6,102,102,103,113, +0,251,13,239,255,253,211,4,254,96,47,18,240,0,10,148,225,140,2,240,32,79,48,54,246,2,241,168,104,0,95,112, +1,223,227,0,0,1,0,0,0,0,0,0,0,0,16,0,0,0,2,241,0,47,16,0,0,0,47,16,2,241,0,0, +1,255,255,157,255,255,96,0,2,79,49,37,242,230,0,0,2,244,64,77,12,96,0,22,207,250,206,192,198,0,4,253, +243,4,255,28,96,0,1,47,16,63,252,183,6,0,36,240,61,161,104,196,224,7,250,8,177,0,45,248,0,7,49,65, +21,6,112,0,5,242,79,49,242,111,128,1,216,2,245,11,96,175,96,22,16,6,32,50,1,114,0,0,0,0,0,0, +0,0,0,137,0,3,226,0,0,0,137,0,9,226,36,0,0,137,33,47,255,255,112,11,137,151,187,0,157,16,29,137, +218,226,3,244,0,59,138,122,70,179,80,0,87,152,5,251,88,255,240,0,183,9,240,1,35,240,0,252,8,241,17,19, +240,3,254,104,255,249,255,240,9,178,234,240,0,1,240,79,80,24,255,255,255,240,42,0,8,242,34,35,240,0,0,0, +0,0,0,0,0,2,16,0,0,0,0,0,11,144,0,15,106,0,0,63,253,242,15,62,112,0,191,89,240,15,37,80, +6,246,170,207,255,255,224,79,96,143,82,95,146,32,21,155,188,0,127,176,0,0,14,243,1,232,244,0,1,143,80,27, +192,157,16,12,228,2,205,32,29,209,3,32,1,113,0,3,64,1,229,43,6,176,157,16,10,192,31,19,243,29,144,61, +48,12,32,180,5,193,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,185,0,0,108,0,0,3,255,255,96,186, +17,16,12,178,127,34,255,255,244,143,66,220,42,249,159,210,63,255,255,207,245,79,16,0,0,13,162,109,202,0,11,238, +239,208,15,242,0,0,0,13,160,127,250,16,47,255,255,189,229,61,228,2,115,35,37,32,22,97,5,243,63,36,242,63, +96,30,144,47,64,231,8,226,74,16,10,32,117,1,163,0,0,0,0,0,0,0,1,27,177,16,47,0,0,76,207,252, +194,47,0,0,5,170,170,88,255,255,32,7,162,42,129,79,47,32,4,170,170,86,126,14,32,10,204,223,102,255,14,32, +0,6,247,0,239,126,32,41,159,252,195,246,189,86,21,76,194,62,128,10,169,0,206,96,169,0,4,212,0,164,39,1, +129,58,16,6,241,63,32,215,13,128,29,112,31,48,153,6,209,0,0,0,0,0,0,0,0,0,38,128,0,0,0,10, +175,255,165,232,136,128,15,239,95,22,255,188,240,14,63,63,22,206,2,240,14,63,63,22,206,2,240,14,63,63,22,255, +222,240,14,63,47,38,245,85,80,15,63,45,70,192,0,98,15,47,42,134,210,34,212,47,15,37,228,223,255,193,77,15, +32,188,32,0,0,153,15,32,26,250,99,16,180,15,32,0,56,206,246,0,0,0,0,0,0,16,0,0,0,18,52,103, +0,6,222,239,255,236,201,16,1,61,33,194,4,226,0,2,46,98,201,46,146,32,15,255,255,255,255,255,240,15,32,89, +0,0,2,240,11,255,255,255,255,255,176,0,189,255,221,221,219,0,0,6,255,255,255,244,0,0,29,223,114,79,208,0, +0,172,20,255,251,16,0,44,228,123,255,254,184,80,42,19,183,48,4,139,128,0,0,121,16,153,32,0,0,95,246,0, +63,250,32,8,250,234,16,111,171,176,0,32,28,255,230,0,0,0,3,124,255,247,48,0,27,255,216,33,124,255,195,7, +152,85,85,85,199,96,0,127,255,255,255,246,0,0,0,6,240,0,246,0,0,0,6,240,0,246,0,0,0,6,240,34, +245,0,0,0,6,240,239,194,0,0,0,6,240,0,0,0,0,0,69,0,52,0,0,0,7,248,0,127,128,0,5,207, +243,0,143,252,32,10,146,110,222,228,43,64,0,1,94,255,163,0,0,38,174,232,36,175,217,96,78,223,102,102,103,203, +112,0,143,204,239,204,242,0,0,141,0,47,0,242,0,0,143,255,255,255,242,0,0,143,68,68,68,66,32,0,126,66, +34,34,58,208,0,43,239,255,255,253,80,0,0,122,0,5,164,0,0,22,221,129,0,121,236,64,4,198,24,235,221,33, +123,0,0,21,143,255,183,66,0,10,239,217,154,38,173,255,48,52,21,207,255,248,0,32,0,158,202,102,235,16,0,0, +3,34,159,246,169,0,0,0,141,251,102,255,255,249,0,3,68,142,180,4,238,32,0,3,217,76,121,252,32,0,0,2, +89,255,197,0,0,0,191,253,166,32,0,0,0,2,32,0,0,0,0,0,0,0,0,0,1,163,0,1,221,148,0,94, +194,0,0,22,191,255,248,0,0,0,2,126,255,250,64,0,9,223,216,32,92,251,32,6,118,48,0,3,154,16,0,10, +208,0,13,192,0,0,1,233,0,159,48,0,0,0,79,152,245,0,0,0,0,7,255,112,0,0,0,2,142,255,232,16, +0,39,191,231,1,159,250,98,46,181,0,0,1,124,226,0,0,0,0,0,0,16,0,0,0,6,240,0,0,0,156,0, +6,240,0,0,0,156,0,6,240,0,0,0,156,0,6,240,0,0,0,159,255,255,255,255,160,0,175,136,136,136,136,80, +0,172,0,0,0,0,0,0,191,255,255,255,176,0,0,222,102,102,108,176,0,2,246,0,0,11,176,0,8,241,0,0, +11,176,0,63,144,0,0,11,176,0,43,16,0,0,11,176,0,0,0,0,0,0,0,0,0,0,242,1,35,87,164,0, +140,15,42,255,253,185,80,8,192,242,127,32,0,0,0,143,63,87,241,0,0,0,8,255,255,191,255,255,248,0,142,34, +39,254,114,111,96,8,192,0,127,137,7,242,0,143,255,135,243,225,204,0,9,210,184,142,12,207,96,0,185,10,138,192, +111,240,0,14,96,168,200,10,255,16,3,242,10,159,107,246,205,64,58,0,170,180,195,1,169,0,0,0,0,0,0,0, +0,0,4,192,0,38,16,0,8,196,192,137,255,169,145,8,196,192,220,207,219,242,8,196,192,212,15,32,242,8,255,250, +223,255,254,242,8,244,67,213,63,0,242,8,193,16,223,255,255,242,9,253,242,8,226,183,0,10,160,242,139,32,216,0, +11,144,248,255,255,255,247,13,96,243,34,34,249,33,47,48,242,0,0,216,0,76,0,242,0,0,216,0,0,0,0,0, +0,0,0,5,255,255,255,255,255,128,0,21,16,0,63,32,0,0,95,16,0,63,32,0,0,140,0,0,63,32,0,0, +218,34,34,111,66,32,1,255,255,255,255,255,243,0,0,0,79,175,32,0,0,0,8,247,63,32,0,0,4,206,80,63, +32,0,4,191,178,0,63,32,0,46,196,0,53,127,32,0,1,0,0,63,234,0,0,0,7,48,111,0,0,0,0,63, +64,111,0,0,0,0,143,50,143,34,34,32,1,255,255,255,255,255,160,8,225,0,111,0,0,0,29,96,0,111,0,0, +0,0,0,0,111,0,0,0,63,255,255,255,255,255,247,2,34,34,143,34,34,33,0,0,0,111,0,0,0,0,0,0, +111,0,0,0,0,0,0,111,0,0,0,0,0,0,111,0,0,0,1,15,32,10,112,0,0,13,79,32,14,80,0,0, +15,47,48,95,33,17,16,47,255,249,191,255,255,243,94,47,85,255,17,95,48,152,15,43,223,32,125,0,18,15,86,44, +112,200,0,20,159,248,6,212,243,0,143,191,64,1,239,176,0,17,15,32,0,255,80,0,0,15,32,9,255,227,0,0, +15,54,222,65,191,129,0,15,42,146,0,6,193,0,0,0,0,0,0,0,1,15,32,11,80,0,0,13,79,32,31,48, +0,0,15,47,32,111,152,152,228,47,255,247,223,255,255,247,93,47,88,225,197,167,230,119,15,61,99,225,228,245,0,15, +102,10,132,225,244,38,175,248,94,26,146,243,110,175,51,231,47,51,242,16,15,38,160,170,5,240,0,15,32,5,242,7, +208,0,15,32,78,114,60,160,0,15,32,104,7,253,48,0,0,0,0,0,0,0,0,31,16,0,15,32,0,5,63,16, +18,63,66,32,12,95,16,159,255,255,192,15,255,228,0,15,32,0,31,79,70,204,207,220,197,92,31,22,221,221,255,214, +36,31,33,0,0,124,0,2,127,250,255,255,255,246,79,239,81,72,34,159,33,19,31,16,62,80,124,0,0,31,16,6, +208,124,0,0,31,16,0,34,140,0,0,31,16,0,47,231,0,0,0,0,0,0,0,0,0,47,0,0,79,0,0,9, +95,0,139,255,187,96,13,95,0,103,207,119,64,31,255,246,119,191,119,128,62,95,35,137,139,139,224,89,47,0,29,126, +73,112,0,47,84,196,94,65,16,39,239,210,58,31,48,0,76,175,12,255,255,255,240,0,47,2,34,221,98,32,0,47, +0,7,245,232,0,0,47,2,174,80,44,144,0,47,6,179,0,1,177,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,28,80,165,0,0,0,0,6,251,243,127,255,255,128,0,223,128,127,34,47,128,6,255,112,126,0,12,128,79,152,160, +126,0,12,128,4,8,240,126,0,12,128,0,31,240,126,2,45,128,0,190,240,126,11,253,64,43,211,240,126,0,0,0, +59,35,224,126,0,0,48,0,5,192,126,0,0,214,3,59,144,95,84,69,243,11,252,32,27,221,221,144,0,0,0,0, +0,0,0,0,1,0,0,0,0,0,0,15,32,2,240,97,0,1,15,32,2,240,187,0,124,31,32,2,240,46,80,29, +143,32,2,240,3,0,5,159,111,255,255,255,208,0,15,50,39,248,34,32,0,79,32,7,250,0,0,5,255,32,11,190, +0,0,127,111,32,31,93,96,0,118,15,32,158,7,225,0,0,15,36,246,1,218,0,0,15,110,176,0,79,177,0,15, +139,16,0,5,144,0,0,0,0,0,0,0,1,32,32,0,0,0,0,7,229,230,153,153,153,146,0,191,162,187,239,235, +178,2,239,96,0,63,48,0,46,169,160,0,63,48,0,4,11,240,0,63,48,0,0,47,240,255,255,255,241,3,218,241, +34,95,82,32,46,162,241,0,63,48,0,5,2,240,0,63,48,0,0,4,208,0,63,48,0,2,41,187,238,255,254,230, +5,253,52,85,85,85,82,0,0,0,0,0,0,0,90,9,96,154,0,0,0,45,223,64,231,0,0,0,5,252,5,255, +255,255,176,45,250,13,178,34,46,176,172,109,158,32,0,12,160,17,79,106,255,255,13,160,0,191,37,242,79,13,144,6, +239,37,224,63,14,128,95,111,37,242,95,15,128,120,15,21,255,255,31,112,0,46,5,224,0,47,80,18,124,0,0,18, +143,48,63,228,0,0,79,249,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,39,6,64,2,228,0,0,46,191, +64,0,169,0,0,7,251,15,255,255,255,224,94,249,2,87,35,163,32,154,109,0,203,1,218,0,16,127,25,225,0,46, +112,1,239,94,198,1,217,160,10,223,49,109,6,225,0,158,63,48,29,141,144,0,68,15,32,5,255,16,0,0,47,16, +10,255,64,0,19,141,4,206,58,249,32,47,229,79,145,0,110,160,0,0,2,0,0,0,16,56,5,64,0,245,0,0, +45,174,96,0,245,0,0,4,254,2,34,247,34,16,10,251,15,255,255,255,96,141,141,15,48,246,15,96,18,63,31,32, +245,15,96,0,159,47,32,245,15,96,6,239,63,255,255,255,96,127,95,50,34,248,70,16,70,15,32,0,245,141,0,0, +47,16,0,248,111,96,18,125,108,223,255,255,192,47,229,89,134,67,21,193,3,2,16,0,147,0,0,78,93,145,66,205, +34,16,7,254,25,255,255,255,112,10,250,9,224,0,15,112,142,157,9,255,255,255,112,2,63,25,242,34,47,112,0,127, +41,242,34,47,112,4,255,57,255,255,255,112,78,127,57,224,125,4,128,104,15,41,224,30,254,112,0,47,25,224,21,248, +0,18,125,15,252,241,111,178,47,229,31,181,16,3,145,0,0,0,0,0,0,0,3,80,82,9,208,31,16,0,111,127, +112,174,18,242,16,0,159,192,111,255,255,250,0,45,249,1,191,19,243,16,30,216,192,9,208,31,16,0,130,79,28,255, +255,255,240,0,10,242,70,102,102,101,0,9,223,55,255,255,255,144,11,226,243,127,0,2,249,0,81,15,55,255,255,255, +144,0,2,241,127,17,19,249,0,34,141,7,241,17,79,144,6,253,80,127,255,255,249,0,0,0,0,0,0,0,0,59, +19,64,6,240,0,32,11,206,145,40,243,39,225,4,255,6,255,255,255,112,94,251,0,6,241,203,0,153,78,29,223,255, +254,214,0,95,37,86,255,101,82,0,223,32,95,211,17,16,10,207,89,255,255,255,96,158,47,139,219,0,15,96,66,31, +32,175,255,255,96,0,47,0,172,17,31,96,22,172,0,173,17,31,96,29,196,0,175,255,255,96,23,3,64,58,1,241, +0,28,173,160,58,1,241,0,3,255,47,255,255,255,208,44,251,2,92,36,244,32,91,93,0,57,1,209,0,0,79,21, +136,136,136,96,0,207,42,236,254,207,208,10,223,58,176,242,13,208,110,46,58,255,255,255,208,2,15,42,210,244,46,208, +0,47,26,176,242,13,208,5,157,10,252,255,207,208,11,213,10,245,85,95,208,0,0,1,16,0,0,0,1,1,0,68, +0,0,0,10,138,112,216,207,255,96,1,255,21,242,18,47,80,26,251,31,249,255,255,247,12,141,191,241,150,34,33,0, +63,135,240,249,85,80,0,143,18,244,255,255,240,1,239,34,250,114,240,0,10,175,34,245,37,242,33,10,47,18,251,255, +255,247,0,47,2,240,11,249,0,2,109,2,240,140,29,112,7,246,2,247,161,2,196,0,0,0,0,0,0,0,1,1, +0,0,0,0,0,29,107,92,255,255,255,80,6,255,12,248,85,31,80,8,252,12,249,111,31,80,79,189,191,254,207,207, +250,4,79,255,136,137,136,253,0,175,255,255,255,255,252,5,255,59,245,17,31,176,79,143,59,255,255,255,176,42,15,43, +245,17,31,176,0,31,27,255,255,255,176,2,126,11,244,0,14,176,12,230,11,244,3,255,112,0,0,0,0,0,16,0, +12,255,255,255,255,255,112,0,0,0,247,0,0,0,0,0,0,247,0,0,0,0,0,0,247,0,0,0,0,17,17,248, +17,17,0,3,255,255,255,255,254,0,0,17,17,248,21,17,0,0,0,0,247,62,128,0,0,0,0,247,4,233,0,0, +0,0,247,0,70,0,108,204,204,255,204,204,194,55,119,119,119,119,119,113,4,68,68,68,68,68,16,13,255,255,255,255, +255,80,0,0,0,246,0,0,0,0,0,0,246,0,0,0,0,0,0,246,0,0,0,0,0,0,246,0,0,0,4,255, +255,255,255,252,0,1,34,34,248,34,34,0,0,0,0,246,0,0,0,0,0,0,246,0,0,0,0,0,0,246,0,0, +0,124,204,204,255,204,204,193,71,119,119,119,119,119,112,0,0,0,34,34,50,0,175,255,178,255,255,255,0,0,242,0, +68,17,221,0,0,242,0,152,0,218,0,19,245,16,167,0,231,0,143,255,128,197,1,243,0,1,243,0,255,255,255,208, +0,242,0,50,34,47,192,0,242,0,0,0,14,176,1,252,175,255,255,159,144,143,251,66,34,34,79,112,85,16,0,0, +18,143,48,0,0,0,0,31,250,0,0,0,0,0,0,0,0,87,119,102,153,153,153,0,156,254,167,187,187,187,0,0, +242,0,0,0,0,0,0,242,1,34,34,34,33,159,255,168,255,255,255,247,18,245,32,156,31,113,16,0,242,0,170,14, +96,0,0,242,1,200,14,96,0,3,253,231,244,14,97,0,223,249,72,225,14,99,231,66,0,127,80,14,134,249,0,4, +213,0,8,255,211,0,0,0,0,0,0,0,123,187,122,204,204,204,192,123,254,121,187,255,187,176,0,242,0,0,217,0, +0,0,242,0,5,249,32,0,111,255,80,30,253,226,0,18,245,16,189,245,188,16,0,242,10,227,245,30,160,0,242,28, +64,245,4,112,1,254,144,0,245,0,0,127,215,32,0,245,0,0,51,0,0,0,245,0,0,0,0,0,0,245,0,0, +14,255,250,255,255,255,240,0,47,0,244,37,36,240,0,47,0,242,31,18,240,0,47,0,242,31,18,240,11,255,246,242, +31,18,240,2,95,33,242,47,2,240,0,47,0,242,77,2,240,0,47,0,113,143,145,112,0,47,103,1,236,192,1,24, +239,215,10,200,192,45,11,114,1,190,40,208,76,0,0,12,194,4,239,230,0,0,2,0,0,0,0,0,0,0,33,47, +0,0,191,255,224,187,47,0,0,70,248,80,250,95,34,32,0,242,5,255,255,255,192,0,242,12,208,47,0,0,142,255, +165,80,47,0,0,18,245,41,255,255,255,247,0,242,1,37,255,226,33,0,242,0,11,223,213,0,1,252,226,158,95,94, +32,159,251,123,246,47,10,210,68,0,143,112,47,1,198,0,0,3,0,47,0,16,0,0,0,0,47,41,0,159,255,160, +0,47,28,160,88,250,81,34,95,36,129,0,242,8,255,255,255,249,0,242,0,64,47,16,97,143,255,113,229,47,71,226, +18,245,16,109,63,206,48,0,242,0,3,191,246,0,0,242,0,26,255,214,0,0,251,211,204,79,94,48,142,252,142,193, +47,9,228,86,32,4,18,95,0,150,0,0,0,13,232,0,0,175,255,191,255,255,255,240,36,246,63,32,47,2,240,0, +242,15,255,255,255,240,19,245,31,49,63,19,240,143,255,143,32,47,2,240,36,246,47,255,255,255,240,0,242,2,34,95, +50,32,0,242,1,34,111,50,32,0,249,132,255,255,255,243,125,252,112,0,63,16,0,85,16,75,187,255,203,184,0,0, +58,170,170,170,167,0,0,0,0,109,0,0,111,255,134,192,109,3,241,36,246,38,192,109,3,241,0,242,6,255,255,255, +241,0,242,2,68,68,68,64,79,255,79,255,255,255,248,18,245,18,34,173,34,33,0,242,4,119,254,119,162,0,242,8, +239,254,251,244,0,247,88,149,194,224,228,76,254,120,149,194,224,228,38,32,8,149,194,226,228,0,0,8,148,162,217,226, +0,0,0,0,0,0,0,0,0,0,0,37,134,0,0,79,171,255,253,250,16,0,95,118,246,16,227,0,0,95,0,227, +0,212,0,0,95,0,227,0,197,0,0,110,0,243,0,183,0,0,110,1,242,0,153,0,0,140,2,240,0,108,0,0, +170,5,208,145,79,0,0,230,8,160,184,31,64,4,242,30,100,207,27,160,11,176,95,253,175,100,244,29,48,8,32,8, +112,181,0,0,0,0,0,0,0,31,255,255,255,255,255,240,27,188,255,187,187,187,176,0,4,243,0,0,0,0,0,6, +255,255,255,112,0,0,8,242,34,47,112,0,0,10,181,96,14,112,0,0,13,150,245,14,112,0,0,31,96,143,62,112, +0,0,63,64,8,30,112,98,0,111,16,0,14,112,183,3,255,121,206,109,131,213,4,255,185,117,24,255,209,0,16,0, +0,0,0,0,0,11,176,0,11,208,0,0,11,176,0,11,208,0,2,45,210,34,45,242,33,79,255,255,255,255,255,245, +1,28,193,17,28,225,16,0,11,176,0,11,208,0,0,11,193,17,28,208,0,0,11,255,255,255,208,0,0,11,210,34, +45,208,0,0,11,176,0,11,208,0,0,11,176,0,11,208,0,0,11,255,255,255,208,0,0,11,226,34,45,192,0,0, +11,176,0,11,208,0,1,28,193,17,29,225,16,15,255,255,255,255,255,240,0,11,245,85,95,208,0,0,11,245,85,95, +208,0,0,11,255,255,255,208,0,0,11,176,0,11,208,0,59,191,251,187,191,251,180,59,255,187,203,204,187,180,0,171, +4,208,157,48,0,0,171,29,96,10,227,0,0,173,90,34,34,164,16,0,175,255,255,255,255,128,0,7,96,111,0,0, +0,0,14,112,111,0,0,0,0,95,65,127,17,17,16,0,207,255,255,255,255,224,6,244,17,127,17,17,16,12,160,0, +111,0,0,0,1,16,0,111,0,0,0,0,111,255,255,255,255,96,0,18,34,143,34,34,16,0,0,0,111,0,0,0, +0,0,0,111,0,0,0,11,187,187,255,187,187,183,9,170,170,170,170,170,166,0,93,119,119,119,125,96,0,191,204,239, +204,207,192,0,187,0,47,0,11,192,0,190,34,95,34,46,192,0,191,255,255,255,255,192,0,187,0,47,0,11,192,0, +205,34,95,34,46,192,0,239,255,255,255,255,208,1,246,0,47,0,11,192,5,242,0,47,0,11,192,12,192,0,47,2, +44,192,61,48,0,46,13,254,96,0,0,0,0,0,0,0,0,0,0,245,0,0,0,0,0,0,245,0,0,0,0,0, +0,246,0,0,0,8,255,255,255,255,255,128,8,210,34,247,34,46,128,8,208,0,245,0,14,128,8,208,0,245,0,14, +128,8,255,255,255,255,255,128,8,242,34,248,34,47,128,8,208,0,245,0,14,128,8,208,0,245,0,14,128,8,255,255, +255,255,255,128,8,246,102,102,102,111,128,0,0,0,0,0,0,0,0,0,0,246,0,0,0,0,0,0,246,0,0,0, +8,255,255,255,255,255,96,8,242,34,249,34,47,96,8,240,0,246,0,15,96,8,255,255,255,255,255,96,8,242,34,249, +34,47,96,8,240,0,246,0,15,96,8,255,255,255,255,255,96,8,242,34,249,34,34,116,0,0,0,246,0,0,170,0, +0,0,234,34,35,231,0,0,0,126,255,255,193,0,254,238,255,238,255,0,0,242,0,245,0,111,0,0,255,255,255,255, +255,0,0,243,17,246,17,111,0,0,251,170,254,170,207,0,0,255,255,255,255,255,0,1,17,23,241,17,17,0,31,255, +255,255,255,255,96,1,17,79,97,17,47,80,0,3,235,0,0,79,32,21,191,161,2,34,158,0,46,164,0,6,255,230, +0,0,0,0,0,1,0,0,12,255,255,255,255,255,241,2,34,34,34,34,34,32,0,2,102,102,102,32,0,7,100,253, +255,222,100,176,11,148,192,137,11,102,240,11,148,255,255,255,102,240,11,148,193,154,27,102,240,11,148,192,137,11,102,240, +11,148,255,255,255,102,240,11,145,51,51,51,22,240,11,255,255,255,255,255,240,2,34,34,34,34,40,240,0,253,221,255, +221,238,0,0,242,0,217,0,126,0,0,255,255,255,255,254,0,0,243,0,217,0,126,0,0,252,188,255,203,222,0,0, +136,255,155,254,135,0,0,60,211,0,78,179,0,60,250,245,0,95,175,211,7,33,245,0,111,2,96,0,6,241,0,111, +0,0,1,127,144,0,111,0,0,3,232,0,0,111,0,0,0,0,0,0,0,0,0,0,1,107,64,0,0,0,2,254, +184,63,255,255,240,2,240,20,0,120,7,208,2,240,62,32,165,8,192,4,246,175,147,225,10,160,9,251,118,206,85,223, +96,1,51,51,69,51,100,0,0,191,255,255,255,252,0,0,189,0,47,0,188,0,0,191,221,255,221,252,0,0,190,17, +79,17,204,0,0,191,187,239,187,252,0,0,191,119,119,119,252,0,0,1,0,0,0,0,0,0,0,0,1,179,0,0, +127,255,248,7,242,35,0,127,173,216,63,255,255,128,127,71,186,239,64,110,32,127,72,207,150,230,246,0,127,255,248,0, +223,176,0,127,88,200,25,254,249,16,127,71,190,253,65,77,244,127,71,186,239,255,255,176,127,255,248,173,17,29,112,127, +119,115,173,0,13,112,74,0,0,175,34,47,112,0,0,0,175,255,255,112,0,0,0,0,0,0,0,0,0,0,5,32, +0,0,0,20,34,47,210,34,33,0,95,255,255,255,255,245,89,95,3,34,34,35,0,62,111,79,255,255,255,48,12,143, +79,0,4,47,48,0,110,79,166,30,47,48,5,254,79,46,171,15,48,142,220,94,6,246,14,48,33,170,124,10,252,14, +64,1,230,168,142,44,141,99,7,226,231,227,3,154,167,13,116,176,16,0,4,227,1,0,0,0,0,0,0,0,0,0, +26,32,0,0,0,20,34,47,162,34,33,0,127,255,255,255,255,247,107,127,0,108,17,32,0,47,191,2,255,255,251,0, +9,207,62,248,9,245,0,0,143,136,63,255,96,0,6,255,0,111,255,113,0,157,237,158,234,21,223,196,33,202,117,45, +214,3,129,2,245,2,65,74,0,0,9,225,7,223,183,32,0,29,96,0,3,142,192,0,1,0,0,0,0,16,0,0, +0,0,7,112,0,0,0,20,34,43,242,34,33,0,111,255,255,255,255,247,90,111,1,17,17,17,16,30,159,158,238,255, +238,226,6,159,0,0,242,0,0,0,143,111,255,255,255,240,41,254,109,35,243,45,240,156,219,108,6,250,11,240,16,216, +108,46,108,139,240,4,243,108,201,2,171,240,28,176,108,0,1,44,240,27,32,108,0,1,238,128,0,0,0,4,48,0, +0,0,20,34,44,210,34,33,0,127,255,255,255,255,247,72,127,1,17,17,17,16,47,143,95,255,255,255,244,11,191,0, +6,247,32,0,0,126,3,190,246,235,48,3,254,159,162,242,25,245,143,252,36,34,211,34,81,50,201,9,255,255,255,128, +2,244,9,192,0,15,128,8,208,9,210,34,47,128,29,64,9,255,255,255,128,0,0,0,0,0,0,0,0,0,0,1, +16,0,0,0,0,0,13,128,0,0,0,159,255,255,255,255,250,85,159,35,57,195,51,17,94,158,78,155,201,159,32,13, +254,78,187,187,191,32,3,158,77,68,68,79,32,0,253,78,102,102,111,32,43,253,78,204,220,206,32,155,219,0,59,246, +16,0,16,236,175,214,41,236,148,4,244,127,136,190,85,97,10,208,15,165,48,30,0,46,64,10,238,238,233,0,1,0, +0,0,0,0,0,0,0,0,4,64,0,0,0,36,34,43,242,34,33,0,191,255,255,255,255,246,104,188,90,245,72,170, +132,30,236,127,215,68,202,66,5,219,223,239,78,255,224,0,251,248,143,77,67,224,76,251,251,191,77,117,224,119,232,246, +111,77,117,224,1,246,245,95,77,133,224,6,250,255,255,251,179,176,12,162,184,122,35,201,144,78,43,193,26,141,49,199, +1,1,0,0,1,0,16,0,0,2,65,0,0,0,0,0,8,242,0,0,0,1,34,47,194,34,34,0,6,255,255,255, +255,252,0,6,240,0,0,0,188,0,6,240,0,0,0,188,0,6,242,34,34,34,220,0,6,255,255,255,255,252,0,6, +240,0,0,0,188,0,6,240,0,0,0,188,0,6,242,34,34,34,220,0,6,255,255,255,255,252,0,6,243,51,51,51, +236,0,0,0,0,0,0,0,0,47,255,255,255,255,255,242,2,34,34,251,34,34,32,0,0,2,244,0,0,0,0,175, +255,255,255,252,0,0,171,34,34,34,172,0,0,171,0,0,0,156,0,0,172,34,34,34,188,0,0,175,255,255,255,252, +0,0,171,0,0,0,156,0,0,171,0,0,0,156,0,0,175,255,255,255,252,0,0,172,34,34,34,188,0,0,3,64, +0,51,0,0,0,9,160,0,185,0,0,2,79,114,17,247,51,82,12,255,255,136,255,255,248,12,176,12,175,80,0,231, +12,176,12,167,65,0,247,12,255,255,128,218,0,246,12,210,46,128,63,81,245,12,176,12,128,9,210,244,12,176,12,128, +2,51,243,12,226,45,128,0,5,241,12,255,255,128,2,42,208,12,176,0,0,47,253,80,0,0,0,0,0,0,0,0, +0,0,15,80,0,0,0,0,0,0,245,0,0,0,0,255,255,255,255,255,248,0,15,242,34,248,34,159,48,0,236,0, +15,80,10,160,0,14,251,187,255,188,245,0,0,255,223,219,187,255,144,0,31,176,202,0,13,242,0,2,248,4,246,10, +247,0,0,111,80,7,255,250,0,0,10,225,1,127,255,64,0,3,249,106,239,182,207,216,64,43,23,216,48,0,57,218, +0,0,0,0,0,0,0,0,0,6,128,0,9,112,0,0,3,243,0,63,64,0,7,255,255,255,255,255,112,0,0,0, +218,0,0,0,0,207,255,255,255,252,0,0,0,0,218,0,0,0,30,238,238,255,238,238,225,4,68,68,68,68,68,64, +0,255,255,255,255,255,0,0,244,79,20,241,79,0,0,242,47,2,240,47,0,107,254,239,190,251,239,181,73,153,153,153, +153,153,148,4,16,0,181,0,0,0,29,231,6,249,102,105,32,0,121,30,252,255,223,64,0,0,190,17,245,94,0,0, +7,67,7,250,69,0,4,222,48,111,94,96,0,127,146,108,229,4,250,64,36,1,184,32,0,58,48,0,255,255,255,255, +242,0,0,244,79,36,242,242,0,0,242,47,2,240,242,0,123,254,239,190,251,254,128,159,255,255,255,255,255,176,0,0, +0,16,0,0,0,0,0,1,234,0,0,0,0,47,255,255,255,246,0,0,47,22,180,17,246,0,0,46,1,126,32,246, +0,127,255,255,255,255,255,246,18,188,40,163,34,248,33,5,244,2,158,70,246,0,11,112,0,2,42,145,0,0,255,255, +255,255,252,0,0,243,63,19,241,156,0,0,242,47,2,240,156,0,107,254,239,190,251,255,180,89,153,153,153,153,153,147, +0,239,255,255,255,253,0,0,236,34,34,34,205,0,0,235,0,0,0,189,0,0,239,255,255,255,253,0,0,238,34,34, +34,237,0,0,235,0,0,0,189,0,0,238,34,34,34,237,0,0,239,255,255,255,253,0,0,235,0,0,0,189,0,0, +236,17,17,17,205,0,0,239,255,255,255,253,0,0,237,17,17,17,221,0,0,0,0,50,0,0,0,2,34,34,251,34, +34,32,15,255,255,255,255,255,240,1,17,18,244,17,17,16,0,127,255,255,255,248,0,0,125,17,17,17,200,0,0,127, +238,238,238,248,0,0,125,17,17,17,216,0,0,127,255,255,255,248,0,0,124,0,0,0,200,0,0,127,238,238,238,248, +0,0,126,34,34,34,232,0,75,255,187,187,187,255,181,74,170,170,170,170,170,164,0,47,16,0,0,0,0,0,47,16, +127,255,255,246,0,47,16,126,34,34,246,79,255,254,126,0,0,246,1,175,33,127,255,255,246,0,207,96,127,34,34,246, +1,255,242,126,0,0,246,7,175,155,127,34,34,246,30,79,25,127,255,255,246,123,47,16,126,0,0,246,18,47,16,126, +0,0,246,0,47,16,127,255,255,246,0,47,16,127,34,34,246,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0, +51,52,86,137,190,96,0,255,237,205,250,116,32,0,236,0,3,241,0,0,0,239,255,255,255,255,255,0,239,34,39,242, +34,34,0,236,17,23,225,17,0,0,236,159,255,255,255,80,0,235,159,0,0,14,80,0,249,159,238,238,239,80,2,247, +159,0,0,14,80,5,243,159,238,238,239,80,10,192,159,17,17,30,80,29,64,159,255,255,255,80,0,0,0,0,0,0, +0,0,0,16,47,1,32,0,0,8,226,47,7,229,0,0,79,96,47,3,175,112,4,233,0,47,94,166,244,3,112,0, +127,248,0,64,1,55,191,250,49,17,0,47,255,255,255,255,254,0,4,44,177,17,17,190,0,0,12,254,238,238,254,0, +0,12,176,0,0,190,0,0,12,254,238,238,254,0,0,12,192,0,0,206,0,0,12,255,255,255,254,0,0,1,16,0, +0,0,0,0,0,0,1,36,85,0,3,238,239,254,220,184,16,0,34,43,208,0,0,0,3,255,255,255,255,255,96,22, +102,207,118,102,102,97,22,103,255,102,102,102,97,0,15,255,255,255,253,0,0,111,241,17,17,141,0,8,253,255,255,255, +254,0,78,86,208,0,0,125,0,1,6,253,221,221,254,0,0,6,208,0,0,125,0,0,6,255,255,255,254,0,0,0, +0,122,0,0,0,8,187,187,255,187,187,176,4,85,85,253,85,85,80,0,61,221,255,221,212,0,0,79,68,68,68,245, +0,0,79,136,136,136,245,0,0,79,204,204,204,245,0,0,79,85,85,85,245,0,0,79,119,119,119,245,0,43,255,203, +187,187,255,179,42,170,186,170,172,170,162,0,57,247,0,127,198,16,28,250,64,0,1,109,209,2,16,0,0,0,0,16, +111,255,117,255,255,255,32,111,44,117,242,34,47,32,111,46,117,244,68,79,32,111,255,117,254,255,254,32,111,12,117,240, +15,32,0,111,46,117,242,47,82,32,111,255,117,255,255,255,243,111,12,117,242,44,114,32,111,44,117,240,8,128,0,111, +255,117,240,4,177,163,111,0,9,249,197,215,245,19,0,47,248,81,78,193,0,0,1,0,0,0,0,0,0,0,0,1, +72,16,127,255,248,121,207,252,80,127,34,249,185,148,16,0,127,34,245,3,242,0,0,127,255,245,0,182,0,0,127,0, +255,238,238,239,144,127,34,249,102,102,239,80,127,255,245,0,5,248,0,127,0,245,0,95,128,0,127,85,245,6,247,0, +0,127,204,196,239,80,0,0,127,0,8,108,214,50,51,0,0,7,0,125,255,245,0,0,0,0,0,0,0,127,255,250, +255,255,255,112,127,34,250,242,34,47,112,127,17,250,250,170,175,112,127,255,250,247,119,127,112,127,17,250,241,17,31,112, +127,34,250,255,255,255,112,127,255,250,242,157,35,80,127,0,250,240,63,76,209,127,34,250,240,13,248,16,127,255,250,240, +5,245,0,127,0,10,250,212,159,112,19,0,15,249,81,8,209,0,0,2,0,0,0,0,0,3,128,0,7,64,0,0, +19,246,17,79,81,0,7,255,255,255,255,255,128,0,86,107,247,102,101,0,0,86,111,246,102,101,0,47,255,255,255,255, +255,242,1,18,251,34,34,34,16,0,14,255,255,255,253,0,0,143,242,34,34,141,0,27,250,252,204,204,254,0,78,68, +248,136,136,254,0,0,4,245,68,68,205,0,0,4,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,27,32,0, +0,95,255,160,159,255,245,0,95,44,166,247,43,243,0,95,111,255,246,143,198,64,95,239,206,255,255,255,144,95,11,160, +0,242,10,144,95,45,202,170,253,175,245,95,255,200,136,251,143,244,95,11,162,51,246,61,160,95,44,167,238,255,239,192, +95,255,160,0,242,4,64,95,0,0,34,242,0,0,19,0,0,191,176,0,0,0,0,0,0,0,0,0,0,0,0,0, +242,0,0,111,255,94,238,255,238,96,111,45,83,85,247,85,0,111,143,85,136,250,136,16,111,175,171,187,254,187,128,111, +12,135,119,119,119,80,111,46,84,153,153,159,96,111,255,102,247,119,127,176,111,12,86,250,170,175,176,111,77,86,243,51, +63,176,111,221,86,254,238,239,176,111,0,6,240,1,31,160,1,0,6,240,11,253,96,0,0,0,18,70,134,0,111,255, +108,255,254,167,0,111,46,97,16,242,0,0,111,47,105,169,252,170,144,111,255,106,251,252,207,144,111,14,96,242,242,47, +0,111,47,156,254,255,239,195,111,255,135,249,249,159,114,111,13,96,242,242,47,0,111,13,127,255,255,255,240,111,205,103, +119,249,119,112,111,0,11,187,254,187,0,1,0,14,255,255,255,0,0,0,0,0,243,0,0,143,255,81,34,245,34,16, +143,47,86,255,255,255,96,143,47,99,51,246,51,49,143,255,126,255,255,238,227,143,15,80,201,3,229,0,143,111,111,250, +187,255,112,143,159,107,84,50,20,160,143,15,111,255,255,255,32,143,175,111,31,31,31,32,143,102,63,15,15,15,32,143, +2,207,191,191,191,208,0,3,255,255,255,255,240,0,0,0,4,176,0,0,127,255,64,1,230,0,0,127,46,79,255,255, +255,112,127,31,79,49,244,19,112,127,255,66,188,255,203,16,127,30,67,136,250,136,32,127,111,66,85,247,85,16,127,175, +95,255,255,255,128,127,13,64,0,243,0,0,127,46,64,205,254,221,80,127,255,64,179,51,63,96,127,0,0,176,0,15, +96,19,0,0,255,255,255,96,0,0,0,0,0,0,0,0,0,0,119,58,0,0,95,255,65,230,30,64,0,95,46,74, +250,159,169,128,95,111,143,244,79,100,48,95,159,255,255,255,255,128,95,13,104,240,15,32,0,95,47,72,250,175,202,80, +95,255,72,248,143,168,64,95,13,73,248,143,168,128,95,46,73,248,136,136,128,95,255,71,70,58,45,48,95,0,14,41, +122,121,160,19,0,122,8,134,163,225,0,0,17,1,0,0,16,0,16,0,0,0,0,0,0,200,0,0,0,0,0,1, +249,85,86,255,255,246,5,255,255,247,244,68,246,12,149,240,5,240,0,246,46,53,240,5,240,0,246,4,40,242,38,240, +0,246,47,255,255,253,240,0,246,0,8,208,5,240,0,246,0,12,244,5,240,0,246,0,31,206,53,240,0,246,0,142, +26,214,242,34,246,5,246,1,217,255,255,246,30,160,0,21,240,0,229,3,0,0,0,16,0,0,3,96,0,0,0,0, +0,7,192,0,207,255,255,250,12,255,234,34,34,34,33,47,79,16,95,255,255,242,59,31,16,95,34,37,242,37,111,101, +95,0,3,242,111,255,254,95,34,37,242,0,79,0,95,255,255,242,0,111,80,5,48,7,80,0,187,226,10,144,14,96, +2,242,155,5,224,94,16,11,160,21,36,163,219,34,61,32,0,255,255,255,252,1,0,0,0,0,0,0,47,255,255,255, +255,255,242,2,34,143,66,34,34,32,0,0,203,0,0,0,0,0,4,244,0,0,0,0,0,12,192,0,0,0,0,0, +127,255,255,255,255,80,4,255,178,34,34,63,80,78,186,160,0,0,31,80,58,26,160,0,0,31,80,0,10,160,0,0, +31,80,0,11,255,255,255,255,80,0,10,210,34,34,79,80,0,0,0,0,0,0,0,1,17,17,0,0,0,0,15,255, +254,159,255,255,128,1,186,17,40,50,63,96,0,213,0,63,16,63,80,2,243,17,79,0,95,48,15,255,248,93,0,127, +16,47,241,184,191,255,255,243,63,192,184,35,34,34,193,8,192,184,51,51,49,208,7,192,184,223,255,244,208,7,255,248, +0,0,3,176,7,226,33,0,2,42,128,2,48,0,0,9,253,32,0,0,0,0,0,0,0,0,0,0,5,96,0,0, +0,255,255,224,169,0,0,0,2,173,34,14,146,34,65,0,11,112,2,255,255,255,208,1,243,0,125,3,2,248,0,191, +255,190,112,242,111,48,31,242,154,80,31,66,80,2,254,8,160,4,249,0,0,6,224,138,0,143,225,0,0,94,8,160, +29,125,128,0,5,255,250,9,209,95,80,0,95,34,41,243,0,159,128,1,48,0,164,0,0,104,0,14,255,237,255,255, +255,246,4,222,68,34,47,82,33,0,198,0,207,255,255,242,2,243,17,197,15,48,242,14,255,252,206,223,253,242,47,240, +124,197,15,32,242,47,192,124,207,255,255,242,8,192,124,84,47,16,0,7,192,124,110,139,0,0,7,255,252,12,249,0, +0,7,226,36,126,254,233,98,2,48,3,180,1,106,210,0,0,0,5,96,0,0,15,255,252,15,255,253,16,2,219,34, +110,34,235,0,0,229,4,254,93,246,146,2,241,11,255,255,255,246,13,252,198,205,15,32,246,47,242,198,207,255,255,246, +63,192,198,205,15,48,246,8,192,198,207,159,185,246,6,192,198,239,143,184,246,6,255,248,247,15,32,246,6,226,42,241, +15,50,246,1,48,11,112,5,95,227,0,0,0,0,0,0,0,0,0,1,129,0,41,16,143,255,240,199,0,140,0,20, +242,50,138,35,246,33,4,192,94,239,255,254,230,8,144,0,15,17,240,0,15,255,91,15,17,240,164,63,137,92,79,17, +241,242,175,120,89,127,17,245,208,88,120,85,175,17,249,128,7,120,82,143,17,249,48,7,255,80,15,17,240,0,7,129, +123,191,221,251,184,4,64,124,204,204,204,200,0,255,255,255,255,253,0,0,34,34,34,34,34,0,0,0,0,0,0,0, +0,40,136,136,136,136,136,130,62,238,238,255,238,238,227,0,0,0,186,0,0,0,0,59,32,186,4,177,0,0,173,0, +186,1,218,0,4,244,0,186,0,95,80,62,144,0,186,0,12,192,24,1,85,218,0,5,112,0,0,223,213,0,0,0, +0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,108,0,2,240,0,0,0,46,96,2,240,0,0,2,43,130,2, +240,0,0,31,255,255,18,240,0,0,0,0,202,2,240,0,0,0,8,242,2,240,0,0,0,127,241,2,240,0,0,8, +255,236,18,240,0,0,95,95,77,130,240,0,0,18,15,35,18,240,0,113,0,15,32,2,240,1,242,0,15,32,2,243, +37,224,0,15,32,0,191,255,128,0,35,0,0,0,0,0,0,8,209,10,170,170,170,32,18,61,96,249,136,139,243,4, +255,255,127,32,0,95,48,0,4,225,242,0,5,243,0,1,248,15,152,136,191,48,1,207,160,239,254,255,227,2,223,253, +144,202,15,32,0,76,79,57,13,128,242,0,0,18,240,2,244,15,32,0,0,47,0,158,16,242,27,0,2,240,127,96, +15,68,224,0,47,45,112,0,175,248,0,0,16,0,0,0,0,0,0,74,0,0,15,32,0,0,47,64,0,15,32,0, +18,42,97,87,127,151,115,95,255,251,206,191,219,246,0,2,227,203,15,32,246,0,31,144,207,255,255,246,1,223,193,206, +47,82,246,78,239,187,203,15,32,246,73,63,23,207,255,255,246,0,47,0,172,47,82,196,0,47,0,0,15,32,0,0, +47,0,0,15,32,0,0,47,0,0,15,32,0,0,0,0,0,0,0,0,0,152,0,29,48,10,144,0,63,32,10,160, +31,64,59,189,243,72,180,207,65,40,137,244,255,255,255,244,0,8,176,0,15,80,0,0,79,48,34,47,130,32,2,239, +128,207,255,255,224,61,239,229,0,15,96,0,60,63,118,34,47,130,33,1,47,7,255,255,255,248,0,47,0,0,15,80, +0,0,47,0,0,15,80,0,0,47,0,0,15,80,0,0,0,0,0,0,0,0,0,8,144,0,8,192,0,2,42,178, +18,41,226,32,15,255,255,111,255,255,240,0,127,245,0,111,247,0,5,235,189,102,235,237,96,78,72,145,110,72,195,227, +2,79,255,255,255,255,16,0,1,17,17,17,17,0,20,68,68,68,68,68,65,45,221,221,255,221,221,210,0,43,64,155, +4,162,0,7,233,17,171,0,126,80,25,96,95,231,0,4,128,0,0,0,0,0,0,0,0,82,0,0,0,0,0,0, +153,1,255,255,255,247,18,75,49,53,85,85,81,79,255,253,79,204,205,176,0,2,229,77,0,7,176,0,29,176,79,255, +255,176,0,191,226,102,102,102,98,44,255,158,255,255,255,245,141,95,5,243,15,48,229,17,47,0,255,255,255,245,0,47, +0,243,15,48,229,0,47,0,255,207,252,245,0,47,0,248,85,85,245,0,0,0,0,0,0,0,0,0,0,33,0,0, +0,0,0,0,215,0,0,0,47,255,255,255,255,255,243,2,34,54,34,67,34,32,0,169,42,203,194,155,0,0,169,23, +255,178,155,0,0,170,137,33,103,155,0,0,159,255,255,255,251,0,1,34,34,249,34,35,16,8,255,255,255,255,255,144, +8,176,63,64,180,10,144,8,177,255,171,255,42,144,8,176,247,83,38,42,144,8,176,0,0,8,254,80,0,0,0,0, +0,0,0,0,2,105,0,69,0,0,59,239,232,16,172,0,0,22,63,32,0,217,0,0,0,15,32,1,246,0,0,111, +255,255,100,242,0,0,18,159,178,24,208,16,0,0,223,246,12,162,244,0,7,191,111,63,80,202,0,63,63,36,111,16, +111,16,169,15,32,203,0,31,96,49,15,36,254,172,255,208,0,15,42,253,151,88,241,0,15,33,16,0,2,97,0,4, +147,0,15,32,0,44,255,164,0,15,32,0,5,95,0,17,31,49,16,0,47,4,255,255,255,245,95,255,254,243,63,83, +245,18,207,54,240,15,32,245,0,255,148,240,15,32,245,4,223,200,242,47,82,245,12,127,75,255,255,255,245,109,47,4, +208,15,32,180,52,47,0,0,15,32,0,0,47,0,0,15,32,0,0,47,0,0,15,32,0,0,0,0,0,0,0,0, +0,4,148,0,0,47,0,44,255,181,10,144,47,0,5,79,0,3,219,63,0,0,47,0,0,40,63,0,111,255,255,3, +0,47,0,18,207,98,78,144,47,0,0,255,226,3,217,47,0,6,223,139,0,33,47,1,30,111,19,19,104,223,250,107, +47,2,255,236,191,65,18,47,0,65,0,47,0,0,47,0,0,0,47,0,0,47,0,0,0,47,0,0,4,148,0,47, +0,0,44,255,181,0,47,0,0,5,95,0,38,47,26,16,0,47,0,109,47,12,128,111,255,253,154,47,6,224,18,207, +82,230,47,1,244,0,255,211,209,47,1,48,6,223,153,0,47,10,160,30,111,19,0,42,79,64,107,47,0,0,3,233, +0,18,47,0,1,126,160,0,0,47,6,174,230,0,0,0,47,8,182,16,0,0,0,3,130,0,0,0,0,58,255,229, +86,102,102,96,44,175,0,172,223,220,192,0,47,0,118,31,23,160,95,255,250,108,31,27,128,18,207,50,47,47,63,32, +0,255,160,5,47,54,0,6,223,189,255,255,255,246,30,111,38,34,79,66,33,107,47,0,0,31,16,0,18,47,0,0, +31,16,0,0,47,0,0,31,16,0,0,47,0,0,31,16,0,0,21,166,10,96,0,0,13,255,164,31,80,0,16,4, +95,0,95,255,255,248,0,47,0,187,47,72,241,63,255,254,243,15,39,80,2,207,66,86,31,56,16,0,255,193,79,31, +62,112,5,223,169,124,15,42,208,29,127,19,199,15,38,243,108,47,3,242,15,34,247,19,47,3,128,15,32,148,0,47, +0,1,47,32,0,0,47,0,5,234,0,0,0,38,179,0,138,0,0,11,255,179,5,244,35,0,9,175,0,111,255,255, +160,0,47,4,182,97,206,32,63,255,250,2,255,228,0,2,239,51,124,255,144,0,0,255,131,251,175,66,48,4,223,196, +20,255,255,246,11,127,70,143,96,7,225,78,63,2,180,200,127,80,21,47,0,0,79,246,0,0,47,1,73,234,32,0, +0,47,7,216,48,0,0,0,0,0,0,0,0,0,0,21,163,0,0,0,0,60,255,180,47,255,255,240,24,127,0,47, +34,36,240,1,63,16,47,0,2,240,95,255,250,47,255,255,240,19,207,50,2,34,34,32,0,255,96,119,119,119,114,5, +223,214,187,191,251,178,29,127,56,0,12,144,0,125,47,0,191,255,255,208,36,47,0,17,29,161,16,0,47,0,0,12, +128,0,0,47,9,255,255,255,248,0,38,177,81,15,32,69,0,207,248,44,160,242,30,176,2,63,0,63,63,41,243,0, +2,240,0,81,243,54,0,63,255,249,207,255,255,249,0,46,242,28,194,34,47,144,0,255,144,205,34,34,249,0,93,251, +92,255,255,255,144,13,143,34,203,0,0,249,2,227,240,12,255,255,255,144,3,47,0,205,34,34,249,0,2,240,12,176, +2,47,144,0,47,0,203,0,222,196,0,0,39,177,0,45,32,0,0,159,249,32,1,231,0,0,5,143,9,255,255,255, +254,0,2,240,143,68,68,79,208,13,255,247,173,255,253,192,0,43,243,18,143,208,8,80,0,239,168,215,95,127,194,0, +63,251,80,125,255,245,0,10,175,37,218,47,246,176,1,228,240,67,60,207,30,64,2,47,3,157,83,224,126,16,2,240, +151,18,140,0,80,0,47,0,0,238,64,0,0,0,0,0,0,0,0,0,0,0,3,145,0,0,0,0,0,2,248,0, +0,0,2,34,34,172,34,34,32,15,255,255,255,255,255,240,15,48,0,0,0,6,240,15,32,0,0,0,6,240,3,0, +213,0,92,1,48,0,4,243,0,47,80,0,0,10,192,0,11,192,0,0,63,80,0,3,246,0,1,220,0,0,0,158, +32,27,226,0,0,0,29,210,44,48,0,0,0,2,194,0,0,0,0,0,0,0,0,0,3,178,0,0,0,2,34,35, +251,34,34,32,15,255,255,255,255,255,240,15,48,17,0,32,6,240,15,34,203,3,250,52,192,3,158,177,0,59,250,32, +10,230,0,0,0,93,144,2,156,204,204,204,195,0,0,123,187,255,187,179,0,0,0,0,246,0,0,0,0,0,0,246, +0,0,0,11,187,187,255,187,187,176,9,170,170,170,170,170,144,0,0,0,116,0,0,0,2,34,34,223,34,34,32,15, +255,255,255,255,255,240,15,80,55,0,83,6,240,10,54,232,0,159,148,128,3,206,80,34,4,206,32,1,129,0,185,124, +38,0,18,34,34,249,44,146,33,79,255,255,255,255,255,244,0,0,8,255,80,0,0,0,0,95,102,228,0,0,0,58, +248,0,143,164,0,29,251,64,0,4,207,227,4,32,0,0,0,2,64,0,0,1,97,0,0,0,2,34,35,250,34,34, +32,15,255,255,255,255,255,240,15,32,51,0,99,9,240,4,107,230,1,142,216,32,7,198,16,0,0,91,64,0,196,0, +120,136,142,112,36,252,153,172,253,191,192,108,254,134,2,240,12,176,0,244,0,6,192,13,160,1,250,172,12,112,15,128, +7,255,132,189,18,95,80,2,80,9,178,14,252,16,0,0,0,0,0,0,0,0,0,0,119,0,0,0,0,0,0,142, +0,0,0,1,34,34,91,50,34,32,6,255,255,255,255,255,240,0,2,64,0,2,65,0,0,6,241,0,6,242,0,0, +2,245,0,10,208,0,0,0,217,0,14,128,0,0,0,156,0,79,48,0,0,0,127,0,157,0,0,0,0,37,0,231, +0,0,15,255,255,255,255,255,249,5,85,85,85,85,85,83,0,59,16,0,11,176,0,0,0,230,0,0,187,0,0,3, +58,131,32,11,176,0,0,238,238,231,0,191,255,243,2,64,55,0,11,226,34,0,91,6,192,0,187,0,0,3,208,137, +0,11,176,0,0,31,27,104,255,255,254,0,0,226,211,143,119,119,224,0,8,63,106,241,0,30,0,26,223,217,191,16, +1,224,0,100,16,8,255,255,255,0,0,0,0,143,66,36,240,0,0,0,0,16,0,0,0,0,0,0,0,0,0,0, +0,0,0,186,0,0,0,7,255,255,255,255,255,112,1,20,194,17,26,65,16,18,35,247,34,127,66,32,79,255,255,255, +255,255,243,0,0,0,0,0,0,0,0,207,238,238,238,251,0,0,203,119,119,119,187,0,0,202,102,102,102,187,0,0, +207,255,255,255,251,0,0,0,188,1,244,0,65,1,74,245,1,246,34,198,63,251,64,0,175,255,210,2,0,0,0,0, +0,0,0,88,0,0,47,32,0,0,79,16,212,47,32,242,2,44,82,212,47,32,242,15,255,251,220,223,219,242,3,48, +114,68,68,68,65,7,128,218,255,255,255,249,5,160,242,34,143,66,33,3,194,208,119,255,119,162,2,212,177,252,254,254, +245,1,135,181,241,240,211,181,9,207,249,241,240,211,181,8,98,1,241,240,211,197,0,0,1,241,240,218,226,0,0,0, +32,0,0,0,0,56,0,0,115,0,0,0,158,34,35,245,34,33,2,255,255,252,255,255,248,28,162,243,126,50,245,0, +5,16,99,71,104,221,32,0,206,255,255,219,150,32,0,51,33,127,16,0,0,2,34,34,207,34,34,33,15,255,255,255, +255,255,249,0,0,7,251,209,0,0,0,0,111,129,205,32,0,1,91,248,0,27,249,48,11,233,48,0,0,109,244,1, +0,0,0,0,0,32,0,34,0,0,49,0,0,0,173,0,0,232,0,0,2,255,255,246,255,255,247,12,213,244,78,166, +243,33,78,48,198,92,16,164,0,2,52,102,121,188,255,48,2,255,254,255,151,65,0,0,16,1,250,70,120,48,6,222, +255,255,203,169,48,2,67,16,230,1,35,82,23,137,188,255,255,253,198,42,152,101,249,33,0,97,0,0,0,217,34,36, +243,0,0,0,126,255,255,160,0,51,0,0,82,0,0,0,203,34,35,245,34,33,4,255,255,203,255,255,245,29,132,225, +158,35,228,0,5,6,161,35,0,134,0,0,47,98,34,34,204,33,0,207,63,255,255,255,246,9,255,0,32,0,170,0, +30,127,3,244,0,169,0,1,47,0,157,16,169,0,0,47,0,27,48,169,0,0,47,0,0,34,185,0,0,47,0,0, +223,212,0,0,0,0,0,0,0,0,0,67,0,0,81,0,0,1,249,34,36,244,34,32,8,255,255,252,255,255,244,79, +67,225,126,20,209,0,1,0,0,140,0,0,0,63,255,255,255,255,255,243,2,34,95,239,249,34,32,0,1,202,140,94, +48,0,0,27,209,140,9,226,0,1,206,32,140,0,190,64,62,218,255,255,255,139,244,6,17,34,174,34,16,80,0,0, +0,140,0,0,0,0,17,0,0,32,0,0,0,125,0,1,230,0,0,1,255,255,248,255,255,243,9,210,243,29,147,243, +0,45,48,149,60,16,149,0,3,221,221,255,221,221,0,0,17,17,200,17,95,0,0,207,255,255,255,255,0,0,216,34, +217,34,34,0,0,246,34,217,34,35,16,2,255,255,255,255,255,128,0,0,109,247,0,14,96,0,43,161,199,18,79,64, +8,163,0,199,31,251,0,0,0,0,0,0,0,0,0,16,0,0,16,0,0,0,187,0,3,241,0,0,4,255,255,253, +255,255,243,62,152,209,143,75,193,16,40,2,112,141,2,128,0,0,239,255,255,255,255,16,0,34,34,173,34,34,0,76, +204,204,255,204,204,195,93,221,221,221,223,253,212,2,34,34,34,47,130,32,15,255,255,255,255,255,208,0,6,228,0,15, +96,0,0,0,127,50,47,80,0,0,0,3,11,253,32,0,0,0,0,0,0,0,0,0,17,0,0,33,0,0,0,156, +0,0,216,0,0,1,255,255,245,255,255,248,10,216,243,61,181,247,33,46,64,229,75,16,154,0,1,0,19,255,48,0, +0,0,0,110,167,249,32,0,0,59,249,34,77,249,32,27,251,239,255,255,109,249,7,50,34,34,34,33,66,0,47,255, +255,255,247,0,0,47,48,0,0,247,0,0,47,82,34,34,247,0,0,47,255,255,255,247,0,0,1,0,0,0,0,0, +0,17,0,0,32,0,0,0,170,0,2,245,0,0,2,255,255,249,255,255,247,12,186,210,111,121,226,33,43,18,209,175, +1,194,0,12,221,221,255,221,221,211,2,51,51,159,51,51,49,2,255,255,255,255,255,112,2,246,34,143,34,47,112,2, +244,0,207,16,31,96,2,244,8,255,197,253,48,0,22,219,143,110,163,0,26,237,80,111,2,174,230,6,64,0,111,0, +1,97,0,1,0,0,16,0,0,0,63,32,0,198,0,0,0,191,255,245,255,255,242,6,243,219,45,148,246,32,6,100, +71,5,0,117,0,0,111,92,255,255,255,176,1,123,146,34,34,44,160,2,242,16,0,0,10,160,2,240,79,255,250,10, +160,2,240,79,0,138,10,160,2,240,79,238,251,10,160,2,240,79,0,138,10,160,2,240,79,255,251,26,144,2,240,0, +0,6,254,80,0,0,0,0,0,0,0,0,16,0,0,16,0,0,0,188,17,18,246,17,17,4,255,255,251,255,255,246, +46,132,225,110,34,228,0,3,93,237,222,221,237,16,0,110,85,85,85,143,16,0,111,119,119,119,175,16,0,111,204,204, +204,223,16,0,110,102,102,102,159,16,0,111,255,255,255,255,16,1,17,172,17,31,113,17,31,255,255,255,255,255,247,0, +76,209,0,15,80,0,7,215,16,0,15,80,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6,192,0,2,243, +0,0,11,255,254,153,255,254,224,79,38,208,46,68,244,0,71,0,130,230,0,115,0,14,238,238,255,238,238,160,15,83, +51,51,51,56,176,7,207,255,255,255,245,80,0,191,0,0,4,242,0,0,191,255,255,255,242,0,0,191,0,0,0,0, +0,0,191,255,255,255,254,0,0,191,0,0,0,126,0,0,191,255,255,255,254,0,0,0,0,0,0,0,0,0,16,0, +246,0,1,0,7,208,0,246,0,110,32,2,247,0,246,0,219,0,0,158,16,246,6,243,0,0,44,32,246,11,128,0, +18,34,34,248,34,50,32,143,255,255,255,255,255,224,0,0,95,255,192,0,0,0,3,231,248,218,0,0,0,78,144,246, +62,161,0,7,249,0,246,3,236,48,143,112,0,246,0,44,225,19,0,0,246,0,0,32,0,40,0,170,0,148,0,0, +46,128,170,7,226,0,2,40,178,203,43,98,32,31,255,255,255,255,255,241,1,17,111,255,231,17,16,0,76,248,171,159, +231,16,46,254,80,119,2,191,208,9,113,0,101,0,5,128,2,34,34,250,34,34,32,47,255,255,255,255,255,243,0,0, +27,221,161,0,0,0,22,222,50,221,97,0,61,255,146,0,25,239,211,7,65,0,0,0,20,96,0,47,1,0,0,0, +0,0,195,241,232,255,255,255,128,10,127,106,140,15,32,248,0,122,250,72,192,242,15,128,7,159,117,140,15,32,248,1, +223,253,184,192,242,15,128,0,207,16,143,191,235,248,0,31,251,8,252,204,207,128,6,207,201,140,0,0,181,0,215,243, +136,192,0,0,0,45,47,0,124,0,0,44,16,34,240,7,227,34,40,224,0,47,0,44,255,255,230,0,0,0,0,0, +0,0,0,0,47,0,0,93,0,0,11,47,27,36,63,98,32,12,111,75,159,255,255,192,8,159,150,157,0,11,192,22, +127,116,159,255,255,192,79,255,253,158,34,45,192,19,239,83,159,34,44,192,1,255,209,159,255,255,192,7,207,139,157,13, +114,145,46,111,20,157,6,255,145,91,47,0,157,1,255,16,2,47,0,239,205,29,212,0,47,1,251,81,1,130,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,47,0,0,15,16,0,12,79,104,221,223,237,210,9,143,149,51,63,67, +48,6,191,193,126,239,254,176,4,127,99,68,79,100,66,29,255,219,170,174,186,165,0,175,64,111,255,255,208,0,255,192, +111,0,11,208,5,239,150,111,255,255,240,12,143,34,111,0,12,208,29,63,0,111,238,239,240,1,47,0,111,0,12,208, +0,47,0,111,0,239,144,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,183,0,0,29,80,0,53,183,146,66, +43,210,33,59,184,207,255,255,255,249,14,188,141,245,124,247,113,38,251,93,244,91,245,243,109,255,222,255,239,254,251,2, +253,13,241,23,193,244,6,255,93,250,239,254,227,11,237,238,208,6,176,0,45,183,143,185,255,255,243,136,183,63,105,216, +137,243,33,183,110,25,193,18,243,0,183,151,9,255,255,243,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1, +35,86,138,220,16,3,255,255,254,168,99,0,0,34,78,128,5,48,0,0,6,230,17,159,128,0,0,159,255,255,245,0, +0,0,36,39,235,36,193,0,0,4,205,80,2,221,0,2,255,253,239,255,255,128,0,248,100,143,16,4,209,0,7,193, +95,9,194,0,0,143,96,95,1,190,48,9,245,18,127,0,10,226,1,32,47,250,0,0,48,0,0,0,0,0,0,0, +0,0,0,111,0,0,0,9,221,221,255,221,221,211,2,51,51,159,51,51,49,27,187,187,255,187,187,177,47,153,155,252, +153,153,242,47,18,157,112,58,32,242,3,143,252,255,248,48,48,0,36,74,233,36,228,0,1,126,252,118,120,255,48,8, +255,237,239,217,139,209,1,22,161,47,55,129,64,5,205,82,79,34,174,80,9,113,31,252,0,4,144,0,0,0,0,0, +0,0,0,0,241,0,0,0,0,2,240,242,255,255,255,176,2,240,241,41,243,223,32,2,240,241,0,223,243,0,2,240, +242,107,239,249,81,0,48,126,212,34,39,178,0,5,232,7,234,0,0,0,47,255,255,147,80,0,0,25,239,165,72,255, +16,0,255,255,255,253,223,225,0,87,161,31,69,80,64,2,158,97,47,68,205,80,5,178,31,252,16,6,177,0,0,0, +0,0,0,0,0,0,124,0,242,0,0,1,144,125,17,242,5,96,2,240,127,252,252,236,113,2,240,124,35,247,16,101, +11,252,255,253,191,255,246,9,183,137,168,7,34,16,0,22,223,154,254,64,0,0,159,254,255,179,129,0,0,21,189,129, +19,239,16,1,255,253,239,253,223,193,1,117,165,28,54,113,147,3,142,146,28,50,174,112,6,130,8,253,16,4,129,0, +0,0,0,0,0,0,0,8,32,0,0,0,0,0,79,49,119,119,119,113,0,202,1,221,255,253,210,5,226,101,0,63, +64,0,47,167,248,0,63,64,0,159,239,240,0,63,64,0,17,142,32,0,63,64,0,6,246,84,0,63,64,0,111,255, +215,0,63,64,0,40,32,0,0,63,64,0,0,54,149,0,63,64,0,111,254,185,255,255,255,247,54,32,2,85,85,85, +82,0,105,0,0,0,0,0,0,202,7,255,255,245,0,4,242,0,15,33,242,0,12,129,212,31,20,224,0,159,91,209, +47,8,196,16,255,255,64,79,63,255,192,17,216,0,111,144,31,144,11,248,195,142,225,111,64,255,250,97,199,201,221,0, +132,0,84,243,63,244,0,21,174,236,224,79,244,0,207,165,46,133,235,175,112,65,0,110,62,144,7,226,0,0,1,1, +0,0,16,0,0,0,0,0,0,0,0,29,48,0,31,32,0,0,110,16,0,31,32,0,0,215,1,255,255,255,246,7, +208,118,34,63,66,33,63,153,244,178,31,32,179,79,191,144,242,31,32,244,0,125,16,242,31,32,244,5,248,135,242,31, +32,244,47,251,132,255,255,255,244,5,0,0,34,63,66,244,2,105,203,0,31,32,51,79,235,115,0,15,82,135,19,0, +0,0,10,255,210,0,0,0,0,0,0,0,0,13,48,0,14,48,0,0,94,0,0,14,48,0,0,199,0,0,14,48, +0,5,208,167,255,255,255,248,47,189,226,244,79,50,248,47,175,97,241,111,16,248,0,155,1,241,159,144,248,7,247,133, +242,234,244,248,47,252,147,249,225,189,248,4,16,1,254,96,75,248,1,71,183,242,0,0,248,63,235,115,241,0,35,247, +20,0,1,241,0,223,211,0,0,0,32,0,0,0,0,6,16,0,0,3,48,0,63,48,105,156,239,176,0,155,0,255, +154,241,0,3,243,66,203,3,240,0,12,146,215,203,3,240,0,111,255,192,206,37,243,33,20,94,32,207,255,255,246,2, +231,69,203,0,242,0,47,255,199,203,0,227,0,29,65,0,203,0,181,16,0,37,134,203,1,137,89,78,253,148,255,207, +77,153,21,16,2,254,98,9,228,0,0,0,16,0,0,0,0,11,32,1,243,146,0,0,94,16,1,243,158,16,0,200, +0,0,245,89,64,5,225,165,189,255,219,80,47,187,242,117,245,0,0,63,207,112,0,234,138,176,0,172,3,190,255,184, +80,7,247,133,133,154,6,160,63,253,146,0,93,78,80,6,16,1,0,47,247,0,2,106,231,2,175,176,64,63,216,52, +191,166,228,226,2,0,4,146,0,142,160,0,55,0,4,160,0,0,0,139,2,42,226,34,32,0,229,15,255,255,255,240, +6,210,128,31,64,0,0,31,207,155,255,255,0,0,79,223,34,203,111,0,0,0,184,2,245,111,50,32,7,246,106,255, +255,255,192,47,252,113,49,79,2,0,6,17,48,215,79,30,80,4,158,152,192,79,7,208,63,147,62,50,111,1,228,1, +0,2,11,250,0,16,0,0,0,0,0,0,0,0,8,16,0,0,0,0,0,94,16,127,255,255,80,0,200,0,127,34, +47,80,5,225,66,127,0,15,80,46,81,230,127,34,47,80,159,223,176,127,255,255,80,36,126,32,127,0,15,80,3,248, +100,127,0,15,80,79,252,148,127,255,255,80,73,0,1,127,34,47,80,37,140,229,127,0,15,80,109,132,25,255,187,191, +246,0,0,12,255,255,255,248,0,22,16,1,113,0,0,0,111,16,8,243,36,16,0,201,0,63,255,255,176,5,225,83, +239,112,143,64,29,116,253,181,249,249,0,159,255,192,16,207,240,0,36,157,16,42,254,251,32,4,227,39,253,80,60,248, +95,255,245,81,219,64,82,77,99,16,0,25,244,0,0,2,84,57,64,32,0,92,239,214,73,238,147,0,72,81,0,0, +5,191,96,0,0,0,0,0,3,0,0,6,16,0,0,0,0,0,63,49,255,255,255,240,0,170,0,0,227,8,240,4, +226,119,5,208,9,224,31,234,244,45,112,11,192,127,159,164,235,5,223,128,0,140,17,96,1,67,0,10,251,202,143,255, +255,160,79,216,82,140,34,44,160,1,0,18,140,0,11,160,22,156,249,140,0,11,160,77,166,32,143,255,255,160,0,0, +0,142,34,46,160,0,0,0,0,0,0,0,0,24,16,0,0,0,0,0,111,36,255,255,255,96,0,216,1,34,35,239, +16,6,225,117,0,28,227,0,47,169,244,5,239,211,0,159,207,165,207,131,159,179,0,141,23,130,0,2,162,7,249,149, +172,204,204,144,95,255,196,155,239,187,144,40,48,0,0,47,0,0,2,89,214,0,47,0,0,111,233,55,187,239,187,181, +36,0,10,255,255,255,247,0,0,0,0,0,0,0,0,107,0,47,0,0,0,0,170,0,47,2,255,251,1,228,10,255, +248,242,217,6,194,178,95,35,241,244,31,175,176,47,2,245,224,31,207,55,255,244,248,176,0,170,1,95,35,241,228,6, +248,112,78,2,240,123,15,251,110,255,250,240,62,5,0,36,206,68,240,93,3,141,208,214,2,252,248,63,165,7,225,2, +241,16,1,0,10,80,2,240,0,0,43,32,0,63,48,0,0,158,16,0,63,48,0,1,230,4,255,255,255,244,9,192, +167,34,95,98,33,111,173,244,0,63,48,0,143,223,160,205,255,253,208,0,188,0,103,119,119,112,10,228,85,34,34,34, +32,127,254,182,175,255,255,176,37,32,0,172,0,11,176,20,105,202,172,0,11,176,126,184,65,175,255,255,176,0,0,0, +175,34,45,176,0,0,0,1,0,0,0,0,8,32,0,43,16,0,0,79,48,0,159,96,0,0,186,0,2,251,226,0, +4,242,117,28,176,172,16,30,183,246,191,66,63,211,79,223,183,222,255,253,198,1,126,32,16,0,0,0,7,254,199,143, +255,255,96,47,248,81,140,34,47,96,4,0,1,140,0,15,96,21,139,233,140,0,15,96,46,183,64,143,255,255,96,0, +0,0,142,34,47,96,0,0,0,0,0,0,0,0,4,0,1,129,0,0,0,31,80,8,226,35,16,0,141,0,63,255, +255,176,1,229,67,239,48,79,48,11,196,237,184,213,231,0,79,255,192,1,255,208,0,3,95,50,142,216,237,113,3,252, +154,233,50,57,210,47,252,130,143,255,255,96,10,16,17,142,0,13,96,2,107,247,142,0,13,96,63,215,32,143,255,255, +96,3,0,0,143,34,47,96,0,0,0,0,0,0,0,0,6,16,3,112,0,0,0,63,48,11,210,34,0,0,171,0, +127,255,255,16,3,242,138,251,55,248,48,31,255,245,255,255,255,240,143,159,96,203,15,34,240,17,186,0,203,15,34,240, +11,250,200,207,191,220,240,111,234,98,207,136,136,128,19,0,0,203,0,0,0,1,88,202,203,0,0,120,95,252,131,205, +50,35,185,36,16,0,94,255,255,210,0,2,0,0,2,0,0,0,31,96,0,95,32,0,0,142,16,68,78,116,67,1, +232,16,255,255,255,250,9,208,186,3,230,20,0,79,190,244,29,160,63,64,31,223,146,239,103,143,225,0,172,17,255,236, +170,248,8,246,133,57,113,194,82,31,254,164,11,129,243,0,6,32,1,14,97,243,0,0,73,217,79,33,243,106,62,251, +100,235,1,245,139,6,16,29,177,0,191,230,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,27,16,0,2,240, +0,0,95,18,242,66,240,81,0,185,2,242,210,241,225,3,242,67,240,196,245,144,12,130,231,241,68,244,49,95,239,178, +248,255,255,248,21,127,34,240,12,248,0,2,229,35,240,78,252,80,47,254,246,242,214,242,227,31,115,2,245,146,240,98, +0,37,117,240,2,240,0,60,167,67,255,255,255,248,0,0,0,34,34,34,33,0,28,32,0,245,0,0,0,94,0,34, +247,38,209,0,199,0,255,255,255,112,5,209,115,0,245,172,0,47,203,234,204,255,254,198,63,175,101,120,255,183,116,0, +155,0,79,248,85,48,7,249,169,255,220,206,144,63,250,102,159,0,12,144,3,0,1,95,255,255,144,0,73,215,95,0, +12,144,62,255,180,95,34,45,144,26,81,0,95,255,255,144,0,0,0,1,0,0,0,0,58,16,0,47,16,0,0,126, +16,17,63,33,16,0,216,0,191,255,255,160,5,225,98,0,47,16,0,29,100,231,255,255,255,245,63,223,115,125,199,202, +114,2,141,5,217,180,56,196,8,253,210,26,255,255,96,31,247,67,191,80,126,16,4,1,101,135,215,246,0,40,207,194, +1,255,225,0,60,114,5,191,200,223,181,0,0,4,148,0,4,130,0,11,32,0,109,0,0,0,78,0,189,255,221,96, +0,183,0,51,175,51,16,4,225,213,187,255,188,208,47,190,164,154,156,174,224,31,159,32,45,111,57,112,0,183,19,196, +95,33,16,12,253,208,73,47,16,0,63,165,28,255,255,255,240,1,5,146,35,251,98,32,24,237,112,27,211,218,0,27, +80,6,221,32,27,177,0,0,7,113,0,0,145,0,10,32,4,147,128,0,0,94,16,10,178,243,0,0,200,0,31,165, +199,82,4,225,149,223,238,255,229,29,100,228,255,1,241,0,63,255,122,255,35,244,32,6,190,4,143,255,255,240,4,246, +82,127,1,241,0,47,252,163,127,255,255,241,6,0,0,127,35,244,32,1,72,185,127,1,241,0,63,252,131,127,255,255, +249,5,16,0,127,85,85,83,0,1,0,0,19,0,0,0,14,112,0,95,16,0,0,110,16,190,255,238,224,0,215,32, +199,17,20,240,7,192,200,206,238,238,240,63,223,225,198,0,2,240,30,175,80,206,221,221,240,0,185,0,155,223,203,176, +10,193,50,34,79,50,48,31,222,213,255,255,255,242,8,82,18,241,47,16,210,1,90,229,241,47,17,226,63,198,18,241, +47,30,208,2,0,0,16,47,16,0,0,9,32,0,75,0,0,0,94,16,34,63,114,33,0,184,2,255,255,255,245,4, +225,118,240,0,0,245,31,252,228,111,255,255,98,63,127,128,2,34,34,0,0,109,17,68,68,68,65,5,249,152,255,255, +255,245,47,252,145,1,15,33,0,6,0,0,142,15,61,128,2,88,200,246,15,37,242,63,234,109,161,47,32,199,3,0, +1,21,252,0,16,0,0,0,0,0,0,0,0,20,0,0,0,0,0,0,95,16,207,255,255,160,0,186,0,34,34,45, +144,3,242,113,143,255,255,144,15,251,226,51,51,63,178,95,143,114,255,255,255,249,1,141,0,65,15,32,64,5,249,145, +188,31,73,210,47,251,128,9,111,251,16,7,0,32,25,239,249,0,3,140,246,219,31,77,179,79,182,19,113,47,33,148, +2,0,0,4,252,0,0,0,24,16,0,35,70,112,0,6,225,159,254,220,185,32,0,201,1,193,151,11,192,0,94,44, +125,154,172,247,48,31,255,232,255,255,255,248,6,255,244,2,243,0,0,0,17,200,15,255,255,255,251,1,187,54,72,243, +51,51,32,63,255,194,223,255,255,176,0,131,0,14,247,5,246,0,0,73,232,228,235,235,0,4,238,150,231,26,255,113, +0,38,16,154,143,198,125,250,0,0,1,2,32,0,2,32,0,6,16,0,40,16,0,0,94,16,35,47,129,16,0,185, +1,255,255,255,241,2,226,131,252,0,1,241,13,219,210,255,255,255,241,63,143,97,255,102,102,145,1,139,2,255,255,255, +244,4,250,163,255,109,87,180,31,251,117,255,109,87,180,7,1,72,255,255,255,244,3,158,204,223,109,104,180,63,163,63, +127,109,87,180,1,0,41,15,105,72,226,0,3,0,0,51,0,0,0,47,18,34,158,34,33,0,154,15,255,255,255,248, +1,227,47,48,0,0,216,9,182,196,154,155,217,180,63,191,82,244,40,242,33,2,108,15,241,255,255,240,3,253,207,241, +242,20,240,31,250,105,209,242,20,240,45,16,21,209,255,255,240,0,75,197,209,241,3,240,45,251,53,209,242,20,240,26, +48,5,209,255,255,240,0,0,0,16,16,0,0,5,160,0,0,47,0,0,10,196,68,0,47,0,0,15,255,255,34,79, +50,0,63,95,84,31,255,255,32,87,31,16,0,47,15,32,74,207,202,48,47,15,32,37,111,101,88,191,159,160,14,31, +30,108,255,252,176,15,31,31,32,143,208,0,15,31,31,32,216,229,0,15,95,143,38,242,157,16,31,188,127,110,128,30, +177,0,0,0,74,0,3,144,15,255,255,255,255,255,128,15,66,34,34,34,47,128,15,32,14,64,30,44,128,15,138,47, +121,78,12,128,15,77,205,46,220,12,128,15,35,252,4,250,12,128,15,32,255,17,255,12,128,15,37,236,151,221,108,128, +15,61,115,94,102,156,128,15,204,0,187,0,12,128,15,66,0,65,18,45,112,15,32,0,0,30,252,32,6,254,239,238, +254,239,144,6,233,175,153,250,158,144,5,221,221,255,221,221,128,8,136,136,254,136,136,128,5,85,86,249,85,85,80,0, +127,255,255,255,247,0,0,127,102,102,102,247,0,0,127,102,102,102,247,0,0,127,204,204,204,247,0,0,127,136,136,136, +247,0,0,127,68,68,68,247,0,79,255,255,255,255,255,244,19,51,51,51,51,51,49,0,10,64,0,9,128,0,0,9, +208,0,47,80,0,6,121,232,119,239,119,48,11,221,221,255,221,221,80,0,0,0,246,0,0,0,0,34,34,248,34,33, +0,2,255,255,255,255,248,0,0,0,0,246,0,0,0,18,34,34,248,34,34,32,143,255,255,255,255,255,240,0,0,0, +246,0,0,0,0,0,0,246,0,0,0,0,0,0,246,0,0,0,0,7,128,0,9,112,0,0,4,243,0,79,48,0, +10,255,255,255,255,255,160,1,34,34,204,34,34,16,0,255,255,255,255,255,16,0,34,34,220,34,34,0,59,187,187,255, +187,187,180,39,119,119,255,119,119,114,15,255,255,255,255,255,240,2,34,43,255,195,34,32,0,2,175,99,235,64,0,57, +223,196,0,43,253,163,26,115,0,0,0,55,144,0,3,112,0,7,80,0,0,2,244,0,63,64,0,5,255,255,255,255, +255,144,1,34,39,244,34,34,16,0,191,255,255,255,253,0,1,17,47,129,17,17,17,15,255,255,255,255,255,248,0,2, +248,17,17,33,0,0,47,255,255,255,250,0,6,235,33,186,17,169,0,28,133,255,255,255,248,0,0,0,0,230,0,214, +0,1,255,255,255,255,255,247,1,36,104,17,33,17,16,142,239,202,175,247,191,247,12,63,46,65,199,17,247,11,95,123, +34,183,65,247,175,255,255,200,183,149,247,1,207,227,29,183,74,247,44,79,93,72,199,23,247,155,159,187,114,248,3,247, +95,191,207,189,247,109,247,95,111,127,245,183,114,247,95,111,111,128,183,0,247,95,191,207,146,199,19,246,95,119,127,157, +211,79,210,0,0,6,208,0,2,0,0,0,6,208,0,46,112,1,255,255,255,255,204,0,0,34,41,242,62,210,0,0, +0,6,209,205,32,0,95,255,255,255,255,255,245,37,85,93,255,101,85,82,0,5,255,96,1,96,0,5,207,255,21,175, +212,0,79,163,95,252,131,0,0,1,0,95,16,0,6,128,0,0,95,66,34,59,160,0,0,28,255,255,253,64,0,0, +2,240,0,0,0,0,17,20,241,17,29,80,0,159,255,255,255,203,0,0,0,2,240,44,177,0,11,221,223,255,255,221, +211,6,119,120,255,215,119,113,0,0,111,250,136,134,0,1,125,255,251,187,186,0,30,214,142,17,17,32,0,4,1,255, +255,255,243,0,0,0,0,0,5,241,0,0,0,0,50,43,176,0,0,0,0,175,253,64,0,0,0,0,0,0,0,0, +0,0,8,192,0,3,16,0,34,42,226,34,79,96,1,255,255,255,255,233,0,0,0,8,192,78,144,0,59,187,191,255, +255,187,179,40,136,140,255,184,136,130,0,5,223,179,51,50,0,22,207,255,221,221,251,0,78,138,240,0,0,219,0,0, +8,255,255,255,251,0,0,8,240,0,0,235,0,0,8,242,34,34,251,0,0,8,255,255,255,251,0,0,0,16,0,0, +0,0,15,255,255,255,255,255,250,0,0,0,232,0,0,0,2,102,105,249,102,105,64,5,255,255,255,255,255,160,5,240, +47,32,229,9,160,5,240,47,32,229,9,160,5,240,47,32,229,9,160,5,240,47,32,229,9,160,5,240,47,32,229,9, +160,5,240,47,32,229,9,160,5,240,47,32,230,43,160,5,240,24,16,133,237,80,0,0,0,0,17,17,16,111,255,255, +247,255,255,240,6,224,13,112,244,43,160,6,241,30,112,242,30,32,6,255,255,112,242,123,0,6,224,14,112,242,199,0, +6,242,47,112,242,78,48,6,255,255,112,242,7,192,6,224,13,112,242,1,242,6,244,111,244,242,4,241,127,254,207,226, +242,223,144,35,16,13,112,242,33,0,0,0,13,112,242,0,0,0,0,0,0,8,32,0,111,255,255,64,79,112,0,10, +176,230,0,204,226,0,10,193,246,8,209,156,16,10,255,246,110,100,12,193,10,176,232,229,62,65,184,10,244,246,18,38, +68,16,10,252,246,47,255,255,160,10,176,230,0,0,143,32,12,246,255,50,35,246,0,127,251,253,23,255,160,0,17,0, +230,0,111,161,0,0,0,230,0,3,196,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,95,255,255,42,229,34, +48,47,245,251,251,32,255,241,10,193,246,241,196,241,209,10,255,246,241,196,241,209,10,176,246,241,196,241,209,10,210,246, +241,196,241,209,10,255,246,241,212,241,209,10,176,246,241,227,241,209,10,177,250,255,240,241,209,95,255,255,236,176,252,192, +37,32,246,46,48,241,0,0,0,246,165,0,241,0,0,0,0,0,0,0,0,95,252,255,143,255,255,240,11,176,204,47, +50,36,240,11,193,220,47,0,2,240,11,255,252,47,0,2,240,11,176,204,47,0,2,240,11,210,236,47,119,120,240,11, +255,252,45,221,221,208,11,176,204,0,0,0,0,11,194,255,83,176,27,48,111,255,255,105,160,9,192,36,32,204,62,48, +1,244,0,0,204,134,0,0,149,0,0,0,2,16,3,0,127,255,255,75,160,63,64,11,176,202,1,210,186,0,11,193, +218,110,238,255,208,11,255,250,56,143,152,112,11,176,202,0,15,32,0,11,226,234,34,63,66,33,11,253,250,207,255,255, +246,11,176,202,0,95,96,0,12,229,255,128,175,209,0,127,252,255,68,243,217,0,17,0,202,78,128,62,162,0,0,203, +200,0,3,179,0,0,0,0,0,0,0,0,0,0,245,0,0,0,0,255,255,255,255,255,0,0,34,34,247,34,127,0, +142,238,238,255,238,255,228,0,0,0,246,0,127,0,0,255,255,255,255,255,0,0,66,34,247,34,35,0,1,241,98,245, +99,15,64,2,241,211,245,169,15,64,4,241,240,245,110,15,64,8,197,176,245,46,47,64,62,96,32,245,0,15,64,107, +0,0,245,0,14,48,0,0,0,0,0,0,0,0,0,0,0,15,80,0,9,255,248,0,15,80,0,9,226,232,0,15, +80,0,9,192,200,0,15,80,0,9,251,248,34,47,130,33,9,246,248,191,255,255,244,9,192,200,0,15,80,0,9,255, +248,0,15,80,0,10,210,232,0,15,80,0,11,144,200,0,15,80,0,14,96,200,0,15,80,0,47,50,202,204,207,252, +198,92,11,229,136,136,136,132,0,0,0,0,0,0,0,12,255,253,63,255,249,0,12,226,235,63,51,234,0,12,245,251, +109,0,186,0,12,251,252,230,0,143,248,12,192,203,113,0,2,33,12,192,203,255,255,255,176,14,255,251,174,68,95,112, +13,194,235,30,64,142,16,14,128,203,6,232,246,0,47,80,203,0,255,208,0,95,18,219,92,237,252,81,106,11,232,216, +16,41,230,0,0,0,0,0,0,0,8,255,248,143,255,255,247,0,142,46,136,224,242,15,112,8,226,232,142,15,32,247, +0,143,255,136,224,242,15,112,8,192,200,143,63,83,247,0,156,12,136,255,255,255,112,9,255,248,143,17,17,197,0,173, +46,136,224,0,0,0,11,144,200,142,0,0,40,0,214,12,135,224,0,4,240,47,50,215,127,66,34,156,5,192,221,50, +207,255,253,64,0,0,0,0,0,0,0,0,0,0,0,156,0,0,0,0,15,32,159,255,253,0,0,15,32,157,17,17, +0,0,15,32,156,0,0,0,31,255,255,255,255,255,243,3,52,68,68,68,84,49,0,111,255,255,255,249,0,0,108,0, +0,0,249,0,0,111,255,255,255,249,0,0,109,0,0,0,249,0,0,111,255,255,255,249,0,0,108,0,0,34,248,0, +0,108,0,0,207,228,0,0,0,0,0,1,0,0,0,0,0,100,0,0,0,2,34,34,223,50,34,32,63,255,255,255, +255,255,243,0,26,230,0,95,144,0,1,255,254,255,255,252,32,0,133,67,33,0,25,32,0,95,255,255,255,246,0,0, +95,34,34,34,246,0,0,95,238,238,238,246,0,0,95,0,0,0,230,0,0,95,238,238,238,246,0,0,95,0,1,17, +230,0,0,95,0,6,254,194,0,0,0,0,0,15,32,0,8,255,249,0,15,48,0,8,226,252,255,255,255,248,8,192, +201,34,47,66,33,8,254,248,34,47,82,65,8,246,248,255,255,255,247,8,176,200,242,15,32,247,9,255,248,242,15,32, +247,9,194,248,242,15,32,247,11,128,200,242,15,49,247,13,96,200,242,15,95,244,47,50,216,16,15,35,16,58,14,212, +0,15,32,0,0,0,0,0,0,0,0,8,255,255,79,255,255,240,8,226,47,79,66,36,240,8,192,15,79,32,2,240, +8,254,239,79,66,36,240,8,245,95,79,255,255,240,8,192,15,79,32,2,240,9,247,127,79,32,2,240,10,254,239,79, +66,36,240,11,144,15,79,255,255,240,13,96,15,64,0,0,0,31,50,63,82,34,34,34,93,9,251,143,255,255,250,1, +0,0,0,0,0,0,0,0,140,2,240,4,64,14,255,255,2,249,238,128,1,17,140,2,247,48,0,3,88,255,2,240, +0,166,63,218,237,1,253,221,245,1,0,71,0,55,119,80,0,207,255,255,255,252,0,0,207,0,0,0,252,0,0,207, +238,238,238,252,0,0,207,0,0,0,252,0,0,207,238,238,238,252,0,0,207,0,0,34,251,0,0,207,0,0,159,214, +0,0,0,0,6,16,0,0,9,255,245,94,0,0,0,9,226,245,207,204,204,247,9,209,249,246,68,68,249,10,255,254, +153,11,34,185,9,226,246,217,184,188,185,9,192,246,209,243,188,185,11,255,246,214,249,188,185,10,210,246,237,45,220,185, +12,144,246,211,3,204,185,14,96,246,255,255,252,200,63,50,245,0,2,35,231,58,31,210,0,6,255,194,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,140,1,2,240,0,0,2,230,140,2,240,92,112,29,212,111,130,254,199,16,47, +253,191,243,242,0,65,1,0,1,34,241,0,214,10,255,255,112,223,255,226,10,145,31,113,99,51,16,11,253,223,114,240, +24,96,10,145,31,114,250,236,80,11,255,255,114,247,32,16,10,144,14,114,240,0,167,10,129,46,114,244,51,214,10,131, +253,48,157,238,193,0,0,0,1,81,0,0,63,255,160,0,216,0,0,63,28,135,136,223,136,128,63,28,136,136,137,185, +128,63,255,135,151,20,229,176,63,44,137,187,169,150,208,63,11,137,161,239,54,208,63,255,137,160,207,70,208,79,45,137, +164,250,214,208,109,11,137,206,96,200,208,138,11,137,163,0,6,208,199,44,137,255,255,255,240,146,141,65,34,34,40,240, +0,0,0,0,0,0,0,0,0,0,0,15,32,0,9,255,249,34,47,82,32,9,226,248,239,255,255,240,9,192,216,0, +15,32,0,10,253,248,221,223,253,209,9,243,248,252,34,34,242,9,192,216,191,255,255,193,10,247,248,8,140,251,16,11, +248,249,34,47,146,32,11,144,220,255,255,255,242,14,96,216,0,15,48,0,47,50,232,0,47,32,0,74,14,212,0,237, +16,0,0,0,0,0,0,0,0,0,0,0,15,16,0,0,0,79,255,96,241,15,255,244,4,243,250,191,197,244,47,64, +79,29,169,251,79,32,244,4,255,246,15,16,242,15,64,79,46,166,248,79,32,244,4,240,206,255,216,242,15,64,79,255, +103,164,15,32,244,5,242,246,181,163,242,15,64,109,12,126,21,127,67,243,8,160,207,249,223,247,252,16,199,45,217,100, +143,32,0,12,47,210,0,0,242,0,0,0,0,0,0,2,0,0,0,0,0,0,25,16,0,0,143,255,112,8,246,0, +0,8,226,246,4,248,245,0,0,140,15,99,231,6,245,0,9,249,251,234,34,40,249,0,159,159,247,255,255,212,160,9, +192,246,33,22,0,114,0,175,255,105,128,226,63,16,10,210,246,93,11,89,160,0,201,15,97,225,84,227,0,14,96,246, +0,0,123,0,3,243,63,175,255,255,255,176,58,13,211,34,34,34,34,0,0,0,0,0,0,0,0,0,0,0,0,22, +32,0,8,255,248,153,255,169,145,8,226,248,253,239,236,242,8,192,216,242,15,33,242,8,253,248,255,255,255,242,8,244, +248,243,47,17,242,8,176,216,255,255,255,242,9,253,248,24,231,192,0,9,228,248,171,37,240,0,11,128,222,255,255,255, +247,13,96,217,34,39,243,33,47,50,216,0,5,240,0,75,14,212,0,5,240,0,0,0,0,0,0,0,0,0,0,0, +10,208,47,0,8,255,247,43,226,79,33,8,226,232,255,255,255,247,8,192,199,26,209,63,16,8,253,247,10,208,47,0, +8,247,252,255,255,255,253,8,192,200,70,102,102,82,9,255,247,111,153,155,128,9,210,231,111,68,73,144,11,144,199,111, +187,191,160,14,96,199,111,0,5,128,79,50,214,111,255,255,160,42,29,194,111,17,23,128,0,0,0,0,0,0,0,0, +0,0,0,3,80,0,0,111,255,210,34,95,50,32,6,243,235,255,255,255,255,16,111,11,175,32,16,34,241,6,255,249, +82,189,29,132,0,111,45,150,237,32,28,144,6,240,185,74,50,34,38,0,111,255,144,191,255,255,160,7,242,217,0,3, +240,0,0,156,11,144,0,47,0,0,11,160,185,0,2,240,0,0,230,28,155,187,239,187,177,29,26,229,153,153,153,153, +0,0,0,0,0,0,0,0,9,255,240,255,255,255,253,0,158,77,3,78,188,212,32,9,193,192,175,255,255,247,0,159, +207,10,175,239,236,112,9,193,192,173,255,255,215,0,156,28,5,139,184,136,64,10,255,240,34,219,34,34,0,191,159,15, +255,255,255,240,12,145,192,12,144,12,144,0,214,28,5,254,140,226,0,47,52,192,2,175,255,113,4,193,248,29,251,97, +92,192,0,0,0,32,0,0,0,0,0,0,0,15,128,47,0,0,175,255,191,255,255,255,224,10,226,246,31,145,79,17, +0,175,79,89,153,153,169,16,10,254,245,246,85,86,242,0,172,15,95,221,221,223,32,10,192,245,242,0,1,242,0,191, +191,95,237,237,239,32,12,247,246,17,111,97,17,0,217,15,191,255,255,255,192,15,96,245,17,239,244,17,3,242,47,83, +206,56,231,16,90,13,216,233,32,6,218,0,0,0,16,0,0,0,16,0,0,0,182,0,0,0,0,0,2,243,0,0, +0,0,223,255,255,255,255,16,0,220,34,34,34,207,16,0,219,0,0,0,191,16,0,223,255,255,255,255,16,0,222,34, +34,34,239,16,0,219,0,0,0,191,16,0,223,255,255,255,255,16,0,222,34,34,34,239,16,0,219,0,0,0,191,16, +0,223,255,255,255,255,16,0,222,34,34,34,239,16,0,0,0,0,0,0,0,0,0,0,0,151,0,0,95,255,255,240, +215,0,0,18,236,35,33,246,34,33,3,243,123,6,255,255,244,12,195,111,79,240,15,64,47,254,223,255,240,63,32,3, +24,81,205,228,110,0,2,47,162,67,169,186,0,47,255,255,192,95,244,0,0,12,128,0,15,240,0,0,13,165,113,111, +245,0,75,223,254,201,248,159,96,73,116,32,127,112,10,243,0,0,0,19,0,0,48,0,0,0,0,0,16,0,0,17, +36,87,156,248,0,4,255,254,255,151,48,0,0,17,0,245,0,0,0,0,0,0,245,0,0,0,159,255,255,255,255,255, +241,18,34,34,248,34,34,32,0,0,0,245,0,0,0,0,155,187,255,187,186,0,0,206,170,170,170,237,0,0,203,0, +0,0,189,0,0,203,0,0,0,189,0,0,206,34,34,34,237,0,0,207,255,255,255,253,0,0,6,64,0,0,0,0, +0,95,244,10,255,255,227,7,246,111,130,83,79,160,95,165,87,210,189,234,0,3,207,250,0,7,244,0,0,8,144,7, +187,254,247,15,255,255,180,121,248,247,1,26,161,16,2,244,241,6,207,252,160,2,241,48,8,233,158,224,2,240,0,8, +192,11,224,2,240,0,8,255,255,224,36,240,0,8,210,39,112,222,160,0,0,0,1,0,0,0,0,0,0,126,32,0, +0,0,0,4,255,255,255,32,0,0,95,178,35,235,0,0,8,255,68,77,244,68,16,143,255,255,255,255,255,96,35,252, +0,47,0,15,96,0,252,0,47,0,15,96,0,255,204,255,204,207,96,0,255,119,119,119,127,96,0,252,0,0,0,0, +67,0,252,0,0,0,0,155,0,222,66,34,34,36,231,0,92,255,255,255,254,161,0,2,244,0,95,0,0,21,87,249, +85,175,85,81,47,255,255,255,255,255,242,1,19,245,17,111,17,16,0,2,244,0,95,0,0,0,0,16,0,1,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,4,242,0,95,0,0,18,38,244,34,143,34,32,79,255,255,255,255,255,240,0,4,242,0,95,0,0,0, +1,48,0,19,0,0,0,255,255,255,255,242,0,0,34,34,59,254,48,0,0,0,5,238,80,0,0,0,1,175,145,0, +0,0,0,28,228,0,0,1,16,0,157,16,0,0,3,224,0,187,50,34,34,41,192,0,59,239,255,255,253,64,0,0, +242,0,47,0,0,2,34,245,34,95,34,32,31,255,255,255,255,255,243,0,0,242,0,47,0,0,0,0,178,0,43,0, +0,0,10,80,0,5,193,0,0,9,176,0,11,176,0,0,2,245,0,79,64,0,0,0,142,34,233,0,0,0,0,11, +255,193,0,0,0,0,42,255,146,0,0,3,123,253,86,239,183,65,46,234,64,0,5,174,225,2,0,0,0,0,0,16, +0,1,244,0,79,32,0,18,36,246,34,111,82,33,79,255,255,255,255,255,244,0,1,244,0,79,32,0,0,1,130,0, +40,16,0,8,204,204,204,204,255,0,7,187,223,251,187,255,0,0,0,47,64,0,95,0,0,0,47,64,0,95,0,0, +0,47,64,0,111,0,0,0,47,64,175,253,0,0,0,47,64,53,65,0,0,0,47,64,0,0,0,0,4,240,0,15, +32,0,18,39,243,34,47,82,32,79,255,255,255,255,255,242,0,4,240,32,15,32,0,0,2,129,217,8,16,0,3,68, +68,95,132,68,48,13,255,255,255,255,255,192,0,111,0,0,0,0,0,0,111,0,0,0,0,0,0,111,0,0,0,0, +0,0,111,0,0,0,0,0,0,111,255,255,255,255,32,0,18,34,34,34,34,0,0,0,229,0,141,0,0,2,34,247, +34,191,34,32,63,255,255,255,255,255,243,0,0,229,0,141,0,0,0,1,178,9,83,0,0,0,9,224,15,80,6,32, +0,95,144,15,83,191,112,4,255,64,15,255,179,0,47,191,67,159,244,0,0,3,31,75,159,80,0,16,0,31,64,15, +80,0,198,0,31,64,14,130,35,229,0,31,64,7,239,255,193,0,5,240,0,31,80,0,18,39,243,34,63,114,33,79, +255,255,255,255,255,244,0,5,240,105,31,80,0,0,1,73,255,84,16,0,0,23,237,68,220,98,0,75,255,163,34,57, +223,213,42,95,255,255,255,98,96,0,13,128,0,14,80,0,0,13,128,0,31,64,0,0,13,128,63,252,38,0,0,12, +163,34,34,143,16,0,6,223,255,255,231,0,0,1,242,0,47,16,0,2,35,244,34,79,50,32,31,255,255,255,255,255, +242,0,1,243,97,47,16,0,0,0,117,242,23,0,0,1,255,255,255,255,240,0,0,34,42,242,40,240,0,0,56,10, +176,7,251,32,0,201,14,112,8,219,128,7,225,127,32,9,197,224,8,84,247,0,10,160,178,2,159,144,18,46,128,0, +8,213,0,31,252,32,0,0,0,0,0,0,0,0,0,2,243,0,63,32,0,2,36,245,34,95,66,33,63,255,255,255, +255,255,248,0,2,244,48,63,32,0,1,17,104,241,38,17,16,15,255,255,255,255,255,249,2,34,159,50,34,34,33,0, +5,246,34,34,34,0,0,79,255,255,255,255,32,25,237,192,0,0,63,32,26,40,192,0,0,63,32,0,8,255,255,255, +255,32,0,8,226,34,34,111,32,0,0,0,0,0,0,0,0,1,240,0,47,0,0,2,35,243,34,79,50,32,47,255, +255,255,255,255,241,0,1,240,115,47,0,0,0,0,112,245,23,0,0,47,255,255,255,255,255,241,2,34,34,248,34,34, +32,0,0,0,245,0,0,0,0,191,255,255,255,252,0,0,189,68,68,68,188,0,0,188,0,0,0,172,0,0,191,255, +255,255,252,0,0,190,34,34,34,204,0,0,0,0,0,0,0,0,0,8,192,0,47,0,0,47,255,255,255,255,255,224, +2,42,242,34,95,34,32,0,4,112,164,24,0,0,0,34,34,248,34,34,0,0,255,255,255,255,252,0,0,242,0,246, +0,140,0,0,242,0,245,0,140,0,111,255,255,255,255,255,244,55,119,127,255,151,119,114,0,0,111,139,211,0,0,0, +91,248,1,191,148,0,95,250,48,0,6,223,243,4,16,0,0,0,2,64,0,3,242,0,63,48,0,79,255,255,255,255, +255,244,18,38,244,34,95,82,33,0,49,97,0,22,16,0,3,247,1,66,34,36,16,0,94,135,255,255,255,64,3,2, +55,240,0,15,64,28,215,7,240,0,31,64,0,69,71,240,47,254,32,0,8,232,240,2,32,16,0,127,71,240,0,0, +197,6,246,6,244,34,36,229,10,128,2,207,255,255,176,0,0,0,0,0,0,0,0,1,243,0,79,0,0,63,255,255, +255,255,255,243,2,36,251,66,127,50,32,0,0,111,32,18,0,0,63,255,255,255,255,255,243,2,38,246,34,68,34,32, +0,31,144,0,185,0,0,1,239,18,34,219,34,32,61,255,27,255,255,255,192,41,79,16,0,185,0,0,0,79,16,0, +185,0,0,0,79,92,204,255,204,195,0,79,54,102,102,102,98,0,7,192,0,47,0,0,63,255,255,255,255,255,242,2, +42,242,34,95,34,32,0,1,32,0,19,0,0,0,255,255,255,255,250,0,0,242,0,0,0,170,0,0,255,255,255,255, +250,0,0,248,119,119,119,202,0,0,187,188,255,187,184,0,18,34,36,246,34,34,32,79,255,255,255,255,255,243,0,0, +1,244,0,0,0,0,0,1,244,0,0,0,0,1,242,0,94,0,0,31,255,255,255,255,255,243,2,35,244,34,143,34, +32,2,145,48,0,19,0,0,4,236,16,0,242,0,0,0,44,52,192,242,123,0,24,32,9,176,242,47,96,42,246,30, +80,242,8,225,0,83,108,0,242,90,146,0,8,33,0,179,217,0,0,111,48,0,44,209,0,5,246,0,73,252,16,0, +12,128,95,252,80,0,0,1,0,5,16,0,0,0,0,2,240,0,79,48,0,47,255,255,255,255,255,243,2,36,242,149, +111,82,32,1,17,49,203,35,17,16,15,255,255,255,255,255,240,15,33,17,17,17,18,240,5,31,255,255,255,241,80,3, +51,51,51,51,51,49,47,255,255,255,255,255,243,0,0,185,2,240,0,0,0,2,245,2,240,0,65,1,109,176,2,243, +34,196,63,215,0,0,191,255,193,2,0,0,0,0,0,0,0,3,242,0,47,48,0,47,255,255,255,255,255,243,2,37, +244,34,79,82,32,0,122,202,170,172,168,0,0,186,51,51,51,156,0,0,190,238,238,238,236,0,0,184,0,0,0,140, +0,0,190,204,221,204,236,0,0,17,17,233,17,17,0,79,255,255,255,255,255,244,18,34,78,237,228,34,33,19,106,236, +33,175,166,65,63,201,64,0,3,157,226,0,0,0,0,0,0,0,0,5,242,0,79,16,0,159,255,255,255,255,255,244, +17,22,243,20,111,33,16,59,16,33,47,97,17,0,28,193,255,255,255,255,112,2,160,19,245,35,17,0,18,32,13,211, +175,51,32,175,242,14,237,255,221,112,0,242,17,17,141,17,16,0,242,158,238,255,238,227,3,248,0,0,124,0,0,78, +157,180,33,71,34,66,136,1,125,255,255,255,228,0,0,0,1,17,0,0,0,0,235,0,13,80,0,63,255,255,255,255, +255,243,2,34,253,34,47,130,32,5,128,99,0,24,34,0,2,223,247,0,47,110,48,3,223,144,0,47,7,96,62,137, +164,255,255,255,243,0,15,241,34,143,98,32,1,190,240,0,175,128,0,62,163,224,2,248,225,0,5,4,208,28,192,186, +0,1,41,163,222,48,46,161,4,253,57,211,0,3,193,0,0,0,0,0,0,0,0,0,242,0,138,0,0,63,255,255, +255,255,255,224,2,34,245,34,188,34,32,0,27,64,0,28,32,0,18,127,33,0,15,32,0,111,255,255,175,255,255,240, +1,229,124,18,47,82,32,3,224,185,0,15,32,0,15,242,244,91,191,219,112,10,255,240,127,119,125,160,0,143,248,143, +0,11,160,42,248,94,159,255,255,160,28,112,1,127,34,45,160,0,0,0,17,0,0,0,0,0,245,0,95,0,0,63, +255,255,255,255,255,244,2,35,247,34,127,50,33,1,34,85,86,138,203,16,9,255,254,219,168,101,0,1,147,1,211,0, +79,48,0,141,0,167,1,216,0,0,20,0,186,1,80,0,63,255,255,255,255,255,244,2,34,143,255,246,34,33,0,75, +230,186,111,163,0,61,251,32,186,2,191,211,8,48,0,186,0,3,112,0,0,242,0,12,64,0,15,255,255,255,255,255, +243,2,35,244,34,47,98,32,0,0,64,3,119,87,48,12,255,252,12,255,255,176,11,226,108,12,176,11,176,10,210,109, +12,247,127,176,10,255,255,12,252,207,176,10,176,92,13,228,79,176,12,255,252,31,251,191,176,11,226,34,143,32,11,176, +1,16,5,248,1,44,160,0,0,12,128,3,254,96,0,0,0,0,0,0,0,0,4,241,0,95,0,0,127,255,255,255, +255,255,243,18,38,243,34,127,34,32,10,172,160,0,141,0,0,15,124,199,255,255,255,208,15,44,81,78,33,137,16,15, +79,16,13,80,213,0,15,43,122,255,255,255,242,15,37,216,210,34,34,32,15,53,233,160,0,0,0,15,127,124,112,0, +0,0,15,32,63,48,0,0,0,15,32,121,0,0,0,0,0,1,242,0,47,0,0,47,255,255,255,255,255,243,2,35, +244,36,95,34,32,3,179,64,79,52,0,0,1,175,82,255,255,255,80,0,5,62,249,3,236,0,45,112,152,45,255,161, +0,5,231,1,126,255,215,48,0,17,159,215,17,124,245,0,28,93,255,255,255,64,0,188,11,208,0,95,32,10,226,11, +225,17,111,32,10,64,11,255,255,255,32,0,1,242,0,47,0,0,47,255,255,255,255,255,243,2,36,243,34,79,34,32, +0,12,161,17,17,17,0,0,143,255,255,255,255,64,8,229,77,113,229,31,48,25,39,255,207,240,63,16,0,60,177,207, +249,141,0,0,121,3,228,13,247,0,0,80,161,170,16,37,0,4,225,242,28,100,95,64,28,128,245,35,60,105,208,42, +16,175,255,253,17,129,0,2,240,0,47,0,0,47,255,255,255,255,255,240,2,36,242,130,79,34,32,1,18,50,246,35, +17,16,12,255,255,255,255,255,176,0,2,226,0,94,32,0,13,221,254,221,255,221,208,15,65,17,244,17,22,240,3,207, +255,255,255,250,48,0,189,17,244,17,249,0,0,189,0,242,0,233,0,0,189,0,242,79,245,0,0,1,0,242,1,0, +0,0,0,0,0,0,0,0,0,6,208,0,110,0,0,79,255,255,255,255,255,243,1,22,177,17,108,17,16,15,255,255, +255,255,255,176,15,39,119,119,119,74,176,5,22,102,102,102,51,64,5,255,255,255,255,255,32,0,56,223,128,4,161,0, +29,182,77,251,255,129,0,2,108,181,223,238,32,0,10,147,109,159,75,211,0,4,158,164,95,49,191,128,10,113,14,232, +0,7,64,0,0,0,0,0,0,0,0,2,243,0,31,64,0,63,255,255,255,255,255,243,2,37,245,34,79,98,32,0, +27,187,187,207,64,0,0,4,68,74,252,17,0,13,255,248,207,129,188,0,1,23,242,157,239,177,0,1,158,85,201,43, +232,48,63,195,8,147,0,108,209,3,47,255,255,255,240,16,0,132,70,35,130,88,0,7,226,79,17,244,29,160,29,80, +45,32,134,2,194,0,0,0,0,0,0,0,0,0,201,0,47,48,0,79,255,255,255,255,255,245,2,34,202,34,79,82, +33,1,112,45,1,226,0,0,2,240,47,5,255,255,192,2,240,47,12,151,130,16,2,240,47,78,22,243,0,1,128,47, +1,0,200,0,0,17,19,17,17,49,0,0,207,255,255,255,255,0,0,200,8,113,240,79,0,75,255,191,252,252,255,197, +111,255,255,255,255,255,247,0,0,242,0,47,0,0,63,255,255,255,255,255,244,2,37,244,34,79,34,33,0,79,50,27, +16,0,0,2,223,207,188,254,255,112,61,104,159,50,229,157,16,3,186,247,17,95,241,0,2,175,223,255,252,220,80,62, +231,102,102,102,108,161,0,222,238,255,238,238,16,0,8,144,200,10,129,0,5,221,49,216,2,189,64,5,128,47,228,0, +7,80,0,0,0,0,0,0,0,0,0,243,0,79,0,0,63,255,255,255,255,255,243,2,37,244,73,111,34,32,0,47, +216,159,168,136,32,0,255,255,255,255,255,64,8,255,0,15,32,0,0,62,207,221,223,253,219,0,1,143,102,111,150,101, +0,0,143,85,95,117,84,0,0,191,255,255,255,255,96,0,158,68,68,84,71,16,5,225,92,9,176,111,80,30,96,47, +34,242,8,242,2,0,2,0,32,0,32,0,0,244,0,140,0,0,79,255,255,255,255,255,244,2,34,246,34,157,34,32, +5,213,3,236,204,226,0,0,126,51,228,68,242,0,3,1,2,136,136,129,0,46,178,141,207,95,205,224,1,165,138,95, +94,90,224,0,16,36,70,197,68,64,0,199,255,255,255,255,246,6,225,18,191,254,178,16,29,130,142,163,242,174,147,25, +18,181,3,241,4,162,0,31,16,0,0,0,0,0,31,16,72,139,168,128,60,143,135,88,143,232,112,111,255,255,16,15, +96,0,111,63,63,16,15,96,0,111,14,15,16,15,96,0,111,47,47,16,15,96,0,111,255,255,16,15,96,0,73,31, +18,0,15,96,0,0,31,46,16,15,96,0,3,111,191,96,15,96,0,207,218,122,253,223,253,210,33,0,0,104,136,136, +129,0,47,0,0,15,32,0,0,47,0,0,15,32,0,39,111,84,34,47,82,32,111,223,223,175,255,255,224,111,14,31, +0,15,32,0,111,14,31,95,255,255,144,111,127,143,18,47,82,16,111,255,255,0,15,32,0,57,79,53,34,47,82,32, +0,47,46,255,255,255,242,1,95,127,64,15,32,0,191,220,157,128,15,32,0,16,0,2,32,15,32,0,0,0,0,0, +0,0,0,12,255,255,255,255,255,224,0,24,32,242,0,15,112,0,127,48,255,238,231,0,3,235,232,245,34,34,33,94, +144,58,255,255,255,244,135,0,0,194,0,0,0,0,254,238,255,238,239,0,0,242,0,243,0,47,0,0,255,255,255,255, +255,0,0,0,0,243,5,228,0,74,170,187,254,204,255,112,74,153,136,118,101,69,228,0,0,0,0,0,0,16,0,47, +32,2,15,32,0,0,47,32,14,63,32,0,20,79,66,31,63,82,16,127,239,255,95,255,255,128,127,15,31,167,15,32, +0,127,15,31,129,15,32,0,127,47,63,204,207,252,192,127,255,255,102,255,246,96,73,31,35,1,223,229,0,0,31,77, +8,127,125,0,37,159,255,60,15,45,144,205,166,52,211,15,35,209,16,0,0,32,15,32,16,0,0,0,0,0,0,0, +0,0,0,200,0,0,0,11,204,204,255,236,204,176,10,187,239,188,253,187,160,0,42,63,1,242,146,0,0,185,47,1, +242,142,48,7,177,47,1,242,8,144,0,16,40,136,113,0,0,0,255,255,255,255,255,0,0,242,0,169,0,47,0,0, +255,255,255,255,255,0,0,0,0,186,2,213,0,9,170,171,255,204,255,64,8,153,136,135,118,107,192,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,119,1,226,0,0,0,0,119,4,224,4,153,146,42,205,103,255,203,232,243,79,255, +251,159,23,192,243,79,119,255,63,7,192,243,79,85,226,31,7,192,243,79,102,233,255,236,192,243,79,255,242,111,56,192, +243,40,119,32,79,23,192,243,0,120,225,127,167,192,243,1,173,245,198,234,226,243,175,235,221,224,122,255,243,50,0,46, +80,7,192,243,0,0,1,0,0,0,16,0,0,0,0,0,0,0,0,118,0,0,242,15,32,0,118,0,242,242,15,32, +41,203,91,255,255,223,244,79,255,241,243,243,31,48,79,85,224,242,254,239,32,79,85,224,242,0,0,0,79,103,224,254, +255,238,226,79,255,224,0,202,0,0,76,102,24,255,255,255,245,0,103,226,42,255,146,33,20,223,245,126,219,217,0,158, +166,143,244,185,44,211,16,0,6,48,185,0,112,0,119,0,0,0,0,0,0,119,4,252,239,205,240,22,170,52,244,111, +70,240,95,255,244,248,175,137,240,95,85,244,251,255,188,240,95,85,242,141,253,153,128,95,153,241,223,169,216,0,95,255, +240,251,255,71,64,39,121,82,191,199,124,241,0,120,233,251,175,166,199,38,239,244,139,15,76,80,158,167,172,228,31,68, +226,16,0,7,70,253,16,98,0,0,0,0,0,0,0,0,7,112,0,0,0,0,0,127,64,223,255,255,240,8,245,0, +34,34,34,32,29,65,195,0,0,0,0,0,11,194,68,68,68,66,0,143,55,255,255,255,246,8,255,0,0,0,245,0, +63,159,0,0,0,245,0,3,47,0,0,0,245,0,0,47,0,0,0,245,0,0,47,0,0,0,245,0,0,47,0,1, +35,245,0,0,47,0,3,255,194,0,0,1,0,0,0,0,0,0,86,2,0,0,0,0,3,229,62,128,255,255,128,78, +112,3,195,34,34,16,118,46,32,0,0,0,0,0,203,101,2,119,119,80,8,244,127,180,255,255,176,127,242,3,112,0, +242,0,101,242,0,49,0,242,0,0,242,0,184,0,242,0,0,242,5,225,0,242,0,0,242,29,112,0,242,0,0,242, +157,16,34,242,0,0,242,52,0,143,192,0,0,16,0,0,0,0,0,0,118,0,0,247,0,0,0,110,16,0,247,0, +0,18,44,68,0,247,0,0,127,255,255,96,247,0,0,0,0,205,16,249,32,0,0,9,244,96,255,228,0,0,127,249, +226,247,159,112,8,255,255,64,247,7,243,159,127,59,176,247,0,32,52,15,33,128,247,0,0,0,15,32,0,247,0,0, +0,15,32,0,247,0,0,0,15,32,0,246,0,0,0,0,0,47,0,0,0,0,238,238,255,238,238,225,0,17,17,79, +17,17,16,0,95,255,255,255,255,112,0,1,17,79,17,17,16,0,0,0,47,0,0,0,9,255,255,255,255,255,248,1, +34,61,251,226,35,81,0,8,251,18,245,45,193,7,223,240,0,143,249,16,5,119,240,0,45,243,0,0,6,246,174,145, +191,130,0,15,253,149,16,7,233,0,6,48,0,0,0,0,0,0,0,0,0,0,0,0,4,209,14,98,197,0,0,47, +144,11,144,77,81,2,239,72,159,254,255,230,62,239,57,136,251,33,16,7,63,16,0,111,112,136,0,47,16,181,7,254, +246,0,21,0,138,0,21,64,15,255,255,255,255,255,248,2,35,143,190,210,57,113,3,142,245,2,252,221,80,28,165,242, +3,95,242,0,0,4,253,237,3,223,181,0,8,246,32,0,4,146,4,160,0,0,47,0,0,1,228,0,0,47,0,0, +18,167,6,250,207,171,226,127,255,122,249,207,159,241,0,30,42,208,47,12,144,0,204,170,251,223,191,112,4,255,138,255, +152,207,112,62,255,91,205,96,159,32,120,246,188,166,228,250,0,0,242,47,112,207,226,0,0,242,95,33,223,242,0,0, +243,219,126,213,206,146,0,243,146,184,16,6,177,0,4,240,0,185,34,0,2,38,243,33,170,141,16,10,255,255,247,170, +10,176,0,4,240,0,154,1,64,79,255,255,255,255,255,245,20,69,180,68,191,68,65,2,34,247,34,110,8,112,15,255, +255,255,63,47,80,0,111,96,100,31,220,0,42,254,159,243,15,243,0,24,154,6,246,79,240,133,0,239,231,57,249,246, +197,0,182,16,45,80,94,193,0,0,0,0,0,0,0,1,3,224,0,111,0,0,9,164,224,0,111,0,0,1,199,232, +255,255,255,242,0,6,241,34,143,34,32,3,175,240,0,111,0,0,30,149,226,238,255,238,192,1,2,145,152,68,68,64, +1,17,17,204,17,17,17,15,255,255,255,255,255,250,0,1,142,92,144,43,64,22,175,242,3,239,231,0,8,119,209,72, +79,213,0,0,15,255,200,2,159,230,0,8,64,0,0,1,80,63,255,255,255,255,255,242,43,187,223,205,252,187,178,0, +0,47,2,241,0,0,9,255,255,255,255,255,176,9,226,95,36,243,44,176,9,208,93,2,241,12,176,9,209,215,1,243, +46,176,9,254,176,0,191,255,240,9,211,0,0,0,12,176,9,208,0,0,0,12,176,9,255,255,255,255,255,176,9,242, +34,34,34,46,176,0,0,0,0,0,0,0,30,238,255,239,255,238,225,0,17,111,19,244,17,16,6,255,255,255,255,255, +128,6,192,94,1,242,12,128,6,235,255,189,254,190,128,4,170,175,202,170,170,80,2,34,111,114,34,34,33,15,255,255, +255,255,255,249,0,10,226,0,63,80,0,0,79,252,154,249,0,0,0,1,109,255,252,132,0,12,255,218,97,39,207,144, +3,49,0,0,0,2,0,0,95,255,255,255,255,0,0,95,85,85,85,159,0,0,95,0,55,0,127,0,0,95,0,111, +0,127,0,0,95,0,126,0,127,0,0,95,0,141,0,127,0,0,95,0,186,0,127,0,0,95,0,237,208,127,0,0, +1,6,249,208,1,32,0,0,95,150,208,0,138,0,74,249,6,227,34,184,12,251,64,2,223,255,211,2,32,0,0,0, +0,0,0,37,0,0,0,0,0,0,4,244,2,255,255,255,64,2,42,114,47,34,35,244,3,255,255,243,240,168,31,64, +0,1,231,47,10,129,244,0,0,205,2,240,168,31,64,0,159,209,47,11,113,244,0,159,253,179,240,213,31,64,79,127, +61,39,47,224,114,0,50,240,16,9,223,0,0,0,47,0,6,245,240,30,0,2,240,8,245,47,19,224,0,47,5,196, +0,207,248,0,0,0,0,0,0,0,0,0,0,0,0,16,0,0,0,0,47,0,199,0,0,2,240,47,1,247,34,32, +2,240,47,5,255,255,241,2,240,47,12,180,144,0,2,240,47,63,64,183,0,1,82,52,36,34,53,0,0,63,255,255, +255,249,0,0,63,64,54,16,153,0,0,63,64,111,16,153,0,0,63,64,159,128,153,0,0,21,22,250,240,34,64,0, +39,207,114,242,35,241,7,252,114,0,207,255,160,0,16,0,0,0,0,0,0,32,2,96,0,66,0,0,218,3,244,2, +247,0,2,95,66,184,62,210,32,15,255,255,255,255,255,192,15,49,17,17,17,24,192,12,159,255,255,255,247,160,0,125, +34,99,38,241,0,0,125,0,246,5,241,0,0,125,1,245,5,241,0,0,125,5,248,101,241,0,0,0,61,170,160,16, +64,0,57,249,10,178,36,241,12,250,48,5,239,255,160,2,16,0,0,0,0,0,0,0,169,0,0,0,0,0,5,255, +255,255,80,0,0,62,162,34,207,16,0,3,255,119,124,250,125,64,46,255,204,239,252,207,144,3,143,0,47,0,15,144, +0,143,255,255,255,255,144,0,143,34,79,34,47,144,0,159,34,79,34,47,144,0,191,255,255,255,255,144,1,247,0,63, +0,15,144,8,225,0,47,18,47,144,29,96,0,47,14,253,64,0,0,0,0,0,0,0,0,86,0,0,0,0,0,0, +255,255,55,159,169,241,4,225,110,0,94,2,240,31,228,249,49,218,5,224,79,252,247,205,226,191,144,8,197,144,167,112, +97,0,8,255,251,194,243,244,32,8,248,212,167,255,255,242,8,181,144,174,96,242,0,9,255,253,213,50,245,33,12,184, +212,172,255,255,247,31,53,162,160,0,242,0,75,2,111,96,0,242,0,0,0,0,0,0,0,0,0,101,0,0,31,64, +0,0,127,96,0,31,64,0,0,7,225,0,31,64,0,0,0,32,0,31,64,0,23,125,34,68,111,148,67,45,223,88, +255,255,255,251,0,15,81,17,63,97,17,0,15,80,0,31,64,0,0,15,80,0,31,64,0,0,15,105,16,31,64,0, +0,15,253,32,31,64,0,0,175,193,0,31,64,0,0,88,0,0,31,64,0,0,99,0,0,79,16,0,0,174,48,0, +79,16,0,0,11,192,0,95,0,0,0,1,48,0,95,0,0,18,36,16,0,127,0,0,79,255,64,0,159,16,0,0, +15,64,0,175,64,0,0,15,64,0,223,128,0,0,15,64,1,251,208,0,0,15,70,7,226,245,0,0,15,253,46,128, +157,16,0,143,193,189,16,30,176,0,136,7,227,0,4,231,0,0,0,32,0,0,32,7,64,0,0,0,245,0,10,245, +0,0,0,245,0,0,175,48,0,0,245,0,0,7,27,187,187,255,177,34,65,28,204,204,255,193,223,249,0,0,0,245, +0,0,185,0,183,0,245,0,0,185,0,126,16,245,0,0,185,0,30,112,245,0,0,185,65,6,64,245,0,0,191,244, +0,0,245,0,0,255,48,2,35,245,0,2,241,0,7,255,177,0,0,0,0,0,16,0,0,0,117,0,0,110,0,0, +0,143,96,0,110,0,0,0,9,225,0,110,0,0,0,0,32,0,110,0,0,5,89,16,0,111,34,32,29,223,64,0, +111,255,240,0,15,64,0,110,0,0,0,15,64,0,110,0,0,0,15,64,0,110,0,0,0,15,107,48,110,0,0,0, +31,250,16,110,0,0,0,207,120,187,255,187,187,0,133,7,170,170,170,169,0,0,0,1,16,0,0,11,128,21,11,144, +8,32,3,245,63,37,241,63,32,0,99,14,80,213,126,0,34,81,11,144,16,170,0,223,245,6,224,0,231,0,0,244, +1,245,5,241,0,0,244,0,172,12,160,0,0,244,0,63,207,48,0,0,244,64,11,251,0,0,0,253,242,62,254,64, +0,5,255,54,235,27,249,32,6,241,206,112,0,126,209,0,0,49,0,0,1,48,1,32,0,0,0,0,0,9,209,15, +255,255,250,0,1,203,11,239,187,249,0,0,41,16,47,0,201,0,35,98,0,47,0,201,0,141,247,1,79,17,201,0, +0,199,47,255,255,185,0,0,199,1,79,17,186,0,0,199,0,47,0,170,0,0,201,179,47,0,155,16,0,255,177,47, +0,125,99,5,252,0,47,0,79,180,1,160,0,47,0,12,225,0,0,0,0,0,0,16,0,98,0,0,0,0,0,0, +190,48,207,255,255,144,0,11,208,34,34,44,144,0,1,32,0,0,12,144,23,126,32,0,0,12,144,46,239,80,20,34, +46,144,0,15,80,143,255,255,144,0,15,80,140,0,8,96,0,15,80,140,0,0,0,0,15,82,140,0,0,48,0,15, +238,140,0,0,199,0,95,243,142,50,36,229,0,110,0,45,255,255,176,6,80,0,47,0,245,0,8,245,0,47,0,245, +0,0,190,16,63,0,245,0,0,21,15,255,255,255,224,34,65,7,159,119,252,96,191,245,0,47,0,245,0,0,229,0, +47,0,245,0,0,229,79,255,255,255,242,0,229,18,127,34,248,32,0,232,193,139,0,245,0,0,255,161,215,0,245,0, +9,249,8,225,0,245,0,1,112,10,96,0,245,0,0,0,0,0,0,0,0,1,0,0,0,115,0,0,11,177,0,6, +250,0,0,2,221,32,29,207,64,0,0,26,16,188,24,227,0,34,65,26,226,0,174,64,223,248,174,145,0,10,225,0, +200,34,242,1,146,32,0,200,0,243,126,212,0,0,200,0,255,231,0,0,0,200,48,249,16,0,0,0,207,242,242,0, +8,128,0,255,64,245,34,59,128,3,242,0,158,255,253,48,0,16,0,0,0,0,0,0,16,0,0,0,0,0,4,229, +0,95,255,246,0,0,111,80,95,34,246,0,0,4,0,155,0,230,0,88,229,24,244,0,204,163,88,249,25,64,0,20, +65,0,185,10,255,255,255,112,0,185,2,246,34,95,48,0,185,0,125,17,202,0,0,187,197,11,238,209,0,0,255,161, +7,255,129,0,4,250,42,238,102,238,163,0,80,9,80,0,22,160,8,96,4,68,68,68,48,5,248,15,255,255,255,192, +0,92,16,0,95,0,0,0,1,0,0,95,0,0,105,245,0,80,95,0,0,141,248,1,241,95,17,16,0,200,1,241, +95,255,128,0,200,1,241,95,17,16,0,200,1,241,95,0,0,0,202,178,241,95,0,0,0,255,162,241,95,0,0,5, +250,44,252,255,187,177,2,160,41,169,153,153,145,1,16,0,0,0,0,0,9,193,95,255,255,255,96,1,203,1,0,242, +1,0,0,21,13,80,242,47,32,18,65,9,144,242,109,0,143,248,6,192,242,168,0,0,200,2,80,242,98,0,0,200, +191,255,255,255,224,0,200,34,34,245,34,32,0,202,96,0,242,0,0,0,255,128,0,242,0,0,3,253,0,0,242,0, +0,0,160,0,0,242,0,0,4,48,0,0,0,0,0,8,245,1,255,255,255,80,0,125,1,243,34,63,80,0,1,1, +241,0,15,80,123,246,1,241,0,15,80,88,248,1,241,0,15,80,0,200,1,255,255,255,80,0,200,0,34,34,34,16, +0,200,32,54,0,99,0,0,204,228,172,0,172,0,0,255,130,245,0,47,80,6,245,11,208,0,10,192,0,48,7,48, +0,4,96,1,16,0,0,0,0,0,9,194,79,255,255,255,192,0,140,18,34,34,46,192,0,1,15,255,255,107,192,123, +246,2,34,34,27,192,175,249,0,50,34,11,192,0,201,1,255,253,11,192,0,185,1,240,61,11,192,0,185,1,240,61, +11,192,0,185,97,255,253,11,192,0,239,177,242,34,11,192,3,252,0,0,2,44,192,2,144,0,0,9,254,96,0,0, +0,0,0,0,0,2,16,0,0,0,0,0,12,160,111,255,255,255,32,3,245,20,246,35,234,0,0,131,0,62,108,144, +0,34,65,0,8,254,16,0,175,246,39,183,54,202,80,0,214,84,0,242,2,48,0,214,10,255,255,254,0,0,214,2, +34,245,34,0,0,216,82,34,244,34,32,0,255,255,255,255,255,192,5,251,0,0,243,0,0,2,128,0,0,242,0,0, +3,112,0,0,31,104,0,5,246,0,0,31,78,64,0,110,16,0,31,39,96,0,3,126,238,239,254,192,18,65,72,136, +143,200,112,143,249,0,0,13,64,0,0,201,5,187,191,80,0,0,201,5,239,189,112,0,0,201,0,47,9,144,0,0, +201,17,47,7,176,64,0,223,233,143,229,243,224,4,255,73,199,32,238,176,0,160,0,0,0,94,64,3,80,0,0,47, +0,0,6,248,0,17,63,17,16,0,111,81,255,255,255,240,0,3,0,17,79,17,16,107,246,9,153,191,153,149,141,249, +15,255,255,255,248,0,185,0,0,0,109,0,0,185,15,255,255,255,246,0,185,2,88,34,159,33,0,186,163,79,48,109, +0,0,239,211,10,192,109,0,4,254,16,2,50,141,0,2,160,0,0,31,248,0,0,0,0,0,0,0,0,0,0,0, +0,0,3,0,8,161,2,87,157,239,112,2,220,24,203,191,65,0,0,41,0,0,47,0,0,17,32,2,34,95,34,33, +143,248,10,255,255,255,249,18,216,0,0,47,0,0,0,200,0,0,47,0,0,0,200,7,255,255,255,176,0,200,58,244, +68,77,176,0,207,235,240,0,12,176,1,255,55,242,34,46,176,3,241,7,255,255,255,176,0,0,0,16,0,0,0,0, +0,0,17,0,0,0,6,160,0,109,0,0,0,3,235,0,207,255,245,0,0,60,20,243,22,241,0,0,0,15,247,127, +231,112,90,245,143,253,222,221,208,124,248,142,240,17,17,0,0,200,23,246,255,255,144,0,200,7,246,241,27,144,0,200, +8,230,240,11,128,0,201,138,198,241,254,64,0,223,205,150,240,0,128,2,255,63,70,243,36,240,0,224,124,2,223,255, +144,0,0,1,0,0,0,0,0,0,0,0,0,0,0,4,96,0,109,16,0,0,5,245,0,202,0,0,0,0,107,5, +255,255,255,208,0,0,13,194,34,45,192,34,65,158,49,17,11,192,175,247,108,254,239,75,176,0,199,8,240,15,76,176, +0,199,8,254,239,77,160,0,199,8,240,15,77,144,0,203,184,255,255,79,128,0,255,120,225,17,31,96,5,247,0,0, +34,127,48,0,96,0,0,63,250,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,178,0,0,172,0,0,0, +189,22,102,175,134,97,0,46,95,255,255,255,243,0,3,0,9,209,0,0,2,36,16,95,48,54,16,47,255,87,252,103, +251,0,0,15,88,252,207,242,0,0,15,80,1,189,39,193,0,15,80,110,177,95,112,0,15,91,230,5,248,0,0,15, +231,17,159,243,0,0,63,243,126,212,174,80,0,159,62,231,0,8,209,0,1,4,0,0,0,16,0,0,0,0,0,0, +0,9,161,79,255,255,255,192,0,154,18,40,242,35,32,0,2,8,255,255,255,16,106,245,1,47,146,111,0,124,248,0, +31,64,94,0,0,200,255,255,255,255,240,0,200,68,68,68,68,64,0,200,7,255,255,255,128,0,200,56,210,34,44,128, +0,206,252,192,0,12,128,1,255,103,226,34,45,128,1,243,7,255,255,255,128,0,0,0,0,0,0,0,1,16,0,0, +0,0,0,9,210,2,255,255,255,144,1,205,18,244,34,43,144,0,24,2,243,17,27,144,18,66,2,255,255,255,144,175, +250,1,68,68,68,48,0,186,6,221,255,221,208,0,186,0,0,139,0,0,0,186,31,255,255,255,246,0,186,115,36,255, +98,33,0,255,210,27,215,227,0,2,254,40,237,32,143,162,0,64,9,97,0,4,161,0,16,1,64,0,82,0,9,177, +4,243,1,247,0,1,220,16,186,8,208,0,0,41,11,220,191,251,0,34,65,15,135,119,191,16,191,249,15,32,0,143, +16,0,201,15,220,205,239,16,0,201,12,255,207,252,16,0,201,0,155,15,32,0,0,201,146,200,15,32,0,0,255,197, +243,15,32,129,8,254,61,176,15,84,241,2,160,202,16,10,255,160,0,0,16,0,0,0,0,1,48,0,7,64,0,0, +6,228,0,95,54,96,0,0,126,20,229,5,246,0,0,4,47,255,255,255,48,52,130,9,229,33,8,48,158,246,8,247, +119,119,48,0,198,63,252,254,204,80,0,198,104,0,242,0,0,0,198,207,255,255,255,224,0,199,114,41,252,34,32,0, +255,160,79,142,112,0,4,251,90,247,5,235,80,1,128,185,32,0,58,160,6,64,0,0,242,0,0,7,228,47,255,255, +255,96,0,107,4,85,247,85,0,0,0,6,136,250,136,0,173,246,123,187,254,187,160,139,247,106,170,170,170,144,0,199, +11,255,255,255,160,0,199,11,240,0,15,160,0,199,11,255,255,255,160,0,200,123,240,0,15,160,0,255,187,254,238,239, +160,4,254,11,240,2,47,160,1,176,11,240,14,237,80,3,48,0,94,0,199,0,8,209,18,127,34,249,32,0,171,79, +255,255,255,240,0,5,0,94,0,199,0,71,196,0,25,208,33,0,72,249,207,255,255,255,241,0,201,34,143,98,34,32, +0,201,2,235,0,0,0,0,201,45,255,255,255,176,0,201,191,234,34,42,176,0,206,211,153,0,9,176,1,255,128,155, +34,42,176,4,242,0,159,255,255,176,0,0,0,0,0,0,0,6,80,0,0,139,0,0,9,247,6,255,255,255,144,0, +157,1,34,173,34,16,0,2,6,102,255,102,128,34,65,10,187,239,189,240,207,245,0,153,63,23,128,0,213,5,71,175, +21,48,0,213,2,167,95,0,0,0,213,127,255,255,255,240,0,217,195,37,250,98,32,0,255,145,78,195,217,0,5,247, +58,251,16,27,176,1,96,43,80,0,0,145,2,48,0,72,39,0,0,7,228,0,170,47,48,0,0,126,17,249,92,133, +48,0,3,13,254,239,254,128,36,115,47,240,15,32,0,159,249,191,242,47,82,16,35,249,72,255,255,255,64,0,185,7, +240,15,32,0,0,185,7,255,255,255,64,0,187,183,242,47,82,16,0,239,167,240,15,32,0,2,251,7,255,255,255,224, +2,160,7,245,85,85,64,1,16,0,0,0,0,0,8,211,11,255,255,255,144,0,175,43,242,211,46,144,0,5,11,198, +249,75,144,18,65,11,199,250,75,144,159,249,11,228,244,59,144,0,185,11,248,200,107,144,0,185,11,191,255,107,144,0, +185,13,169,9,107,144,0,186,111,137,9,107,144,0,239,255,63,238,107,144,4,254,173,5,1,44,144,1,144,165,0,4, +253,80,0,0,0,0,0,0,0,5,80,0,90,0,242,0,5,246,79,255,255,255,241,0,108,18,124,83,244,32,0,0, +0,18,229,48,0,72,212,63,254,255,238,227,72,249,2,240,0,0,0,0,185,2,255,255,255,144,0,185,0,17,17,17, +16,0,185,0,193,178,135,0,0,185,130,241,242,169,0,0,223,212,240,242,169,3,2,255,26,176,242,169,45,2,240,78, +48,242,111,248,0,0,1,0,0,0,0,0,0,0,0,0,0,0,5,48,0,165,0,2,240,8,208,1,210,0,2,240, +0,199,127,255,160,2,240,0,51,127,28,164,155,248,18,65,127,239,213,189,249,111,244,127,79,178,34,240,0,228,127,127, +181,194,240,0,231,255,207,192,229,240,0,230,119,255,176,134,240,0,231,36,237,160,2,240,0,255,110,91,160,2,240,6, +248,231,28,160,37,240,2,112,64,174,96,159,144,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,79,16,0,90, +134,0,93,223,253,209,183,94,32,95,26,36,244,246,92,160,95,191,223,252,141,244,225,10,223,253,35,79,243,32,4,143, +166,0,187,154,0,3,95,116,5,243,46,80,111,255,255,175,195,59,243,0,15,32,31,255,255,241,12,255,255,55,224,11, +144,12,166,111,55,224,11,144,12,254,239,55,254,239,144,12,112,15,55,242,45,144,1,16,0,1,16,1,16,10,255,255, +255,255,255,242,2,34,34,34,34,34,32,0,18,34,34,34,34,0,0,127,255,255,255,252,0,0,126,0,0,0,172,0, +0,126,17,17,17,172,0,0,127,255,255,255,252,0,0,4,161,17,22,129,0,0,2,244,0,13,160,0,0,0,201,0, +79,48,0,2,34,135,34,220,34,33,15,255,255,255,255,255,248,0,1,201,0,0,0,0,0,27,255,255,245,0,0,4, +237,50,62,210,34,0,63,253,204,255,252,207,0,1,242,0,186,0,47,0,0,255,255,255,255,255,0,1,90,255,177,0, +89,16,46,215,40,253,60,247,0,2,56,234,63,255,208,0,10,233,53,223,243,246,0,1,38,204,70,243,126,64,11,251, +83,59,225,10,243,3,16,14,252,64,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,171,0,0, +0,63,255,255,255,255,255,244,0,38,102,102,102,99,0,0,79,101,85,85,246,0,0,79,204,204,204,246,0,6,102,102, +102,102,102,96,15,152,136,136,136,137,241,14,77,222,255,221,212,209,1,88,186,246,2,138,0,1,133,107,175,255,178,0, +5,186,102,207,166,209,0,1,72,218,43,128,158,96,9,166,22,252,32,5,128,0,0,0,0,0,0,0,0,95,255,255, +255,255,0,0,95,34,34,34,127,0,0,95,0,94,0,111,0,0,95,0,111,0,111,0,0,95,0,111,0,111,0,0, +95,0,111,0,111,0,0,95,0,141,0,111,0,0,95,0,217,0,111,0,0,37,7,243,32,36,0,0,0,143,113,236, +80,0,1,109,230,0,24,237,80,9,232,16,0,0,25,209,1,0,0,0,0,0,0,0,0,35,0,0,0,0,0,0, +220,17,18,0,0,0,9,255,255,255,96,0,0,158,48,3,235,0,0,12,255,255,255,255,255,64,4,79,34,34,34,63, +64,0,47,0,141,0,31,64,0,47,0,173,0,31,64,0,47,0,234,0,31,64,0,47,5,245,32,31,64,0,1,78, +195,236,98,0,4,124,250,16,23,222,113,9,184,48,0,0,6,195,0,0,0,0,0,111,0,15,255,255,0,0,111,0, +15,37,63,0,0,111,0,15,31,63,79,255,255,248,15,31,63,18,35,255,33,15,31,63,0,6,255,0,15,31,63,0, +30,223,0,15,47,47,0,142,127,0,15,78,31,4,246,111,0,11,123,26,62,176,111,0,0,216,227,157,16,111,0,10, +192,110,33,18,127,0,91,16,7,16,30,232,0,0,0,0,0,0,0,0,2,240,47,47,255,255,240,2,240,47,10,194, +79,112,2,240,47,1,236,236,0,2,240,47,2,191,248,16,2,192,63,95,252,207,249,0,2,76,59,82,38,147,0,31, +255,255,255,255,0,0,31,128,26,32,95,0,0,31,128,63,32,95,0,0,31,128,173,84,95,0,0,1,108,211,158,216, +32,3,207,199,16,1,109,242,0,82,0,0,0,0,48,0,0,0,0,83,0,0,15,255,255,32,229,0,0,15,52,63, +35,247,102,96,15,31,47,42,253,239,240,15,31,47,46,96,47,0,15,31,47,175,80,77,0,15,31,47,157,160,138,0, +15,47,47,34,241,198,0,15,63,15,32,187,225,0,8,108,7,16,63,192,0,0,200,212,0,111,242,0,8,209,109,22, +245,189,48,110,48,10,126,80,9,209,1,0,0,1,0,0,16,0,0,1,35,86,155,128,0,15,255,255,239,234,133,16, +0,191,50,1,245,0,0,0,9,255,238,255,254,238,228,0,159,50,37,244,34,34,16,10,242,187,255,203,187,16,0,175, +47,238,238,238,241,0,11,226,240,8,64,95,16,0,204,47,0,231,5,241,0,15,162,240,31,80,95,16,4,245,24,10, +228,51,145,0,174,16,92,227,142,214,16,11,113,222,145,0,23,236,0,0,2,16,0,0,1,16,0,0,0,79,16,0, +0,0,47,238,255,254,239,16,0,47,68,143,84,111,16,0,24,136,207,168,136,16,59,187,187,255,219,187,180,61,221,221, +221,221,221,212,0,31,255,255,255,255,0,0,31,65,56,17,127,0,0,31,64,111,0,111,0,0,31,64,172,0,111,0, +0,4,58,244,219,116,0,4,140,251,48,39,222,128,5,183,32,0,0,5,128,0,0,15,48,242,0,0,7,238,239,254, +255,238,128,0,104,95,133,248,90,128,1,250,111,118,248,102,48,5,255,255,238,255,238,241,0,6,231,0,242,5,224,25, +238,96,0,161,9,112,6,111,255,255,255,255,0,0,47,17,70,17,111,0,0,47,0,200,0,95,0,0,29,25,230,149, +92,0,20,122,236,50,124,251,97,45,184,48,0,0,39,193,0,13,48,0,0,0,0,15,255,255,210,255,255,240,2,95, +46,194,242,36,240,0,169,13,178,240,2,240,42,226,143,146,254,238,240,43,32,70,16,51,51,48,0,95,255,255,255,252, +0,0,95,34,118,34,220,0,0,95,0,234,0,220,0,0,95,2,248,0,220,0,0,56,44,230,182,134,0,1,73,236, +50,124,251,64,9,234,80,0,0,57,192,0,0,0,0,0,0,0,0,0,0,0,4,229,112,0,255,255,240,0,63,62, +80,15,34,63,18,37,242,116,0,242,210,246,255,255,255,224,15,47,47,4,17,241,17,0,242,242,240,242,15,42,144,15, +47,47,47,80,228,228,0,242,241,255,255,60,189,0,15,78,31,47,16,175,112,0,136,177,132,224,15,241,16,1,231,210, +170,5,255,12,17,172,7,155,55,247,232,224,75,16,7,1,197,5,248,0,0,0,0,0,0,1,0,0,32,0,41,16, +0,0,3,251,48,159,136,136,162,0,60,180,255,255,191,242,0,0,45,112,239,25,160,1,89,227,9,232,211,0,12,233, +70,221,32,110,180,2,18,41,131,34,35,97,0,47,255,255,255,255,16,0,47,0,57,0,79,16,0,47,0,171,0,79, +16,0,42,5,246,183,72,16,0,37,191,98,124,251,96,11,252,130,0,0,57,227,1,16,0,0,0,0,0,0,0,0, +0,2,244,32,15,255,240,223,252,247,192,14,34,240,18,35,241,177,14,102,241,34,35,243,32,14,119,250,255,255,255,244, +14,119,240,2,208,242,0,14,119,240,243,240,227,0,14,135,240,243,251,228,0,14,149,240,243,246,198,0,6,197,80,243, +240,152,16,3,220,96,243,244,122,117,28,99,216,255,253,94,165,57,0,38,83,0,9,209,0,0,0,0,108,0,0,15, +255,255,18,141,34,145,15,34,79,143,255,252,176,15,46,47,0,108,63,48,15,47,47,204,255,255,198,15,47,47,85,111, +245,82,15,47,47,4,234,16,0,15,63,31,175,255,255,144,15,93,31,171,176,11,144,8,154,24,9,253,223,144,2,246, +211,9,176,11,144,45,176,77,9,255,255,160,59,16,3,9,193,28,144,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,15,32,0,95,32,0,18,47,66,16,255,190,112,95,255,255,120,248,143,144,0,15,32,94,64,78,16,15,255,255, +95,255,255,243,15,46,31,47,33,128,243,15,79,63,47,34,240,243,15,255,255,47,35,224,243,0,175,241,15,36,208,243, +4,223,219,15,39,160,243,45,95,60,37,46,101,81,74,15,48,5,216,43,194,0,15,48,203,64,0,121,0,0,0,0, +0,0,0,0,0,0,155,0,0,0,13,221,221,255,253,221,208,15,66,179,34,59,36,240,6,220,254,204,239,205,96,0, +103,250,119,175,118,0,0,52,246,68,111,67,0,143,255,255,255,255,255,248,36,143,196,68,74,250,66,92,255,255,255,255, +255,230,39,109,0,137,0,199,96,0,93,3,249,48,199,0,0,38,126,196,222,198,16,44,239,198,0,2,141,227,4,48, +0,0,0,0,48,2,198,240,1,197,240,0,10,255,253,104,255,253,192,27,122,245,73,151,245,82,78,255,255,169,255,255, +229,2,211,175,97,168,121,52,44,80,233,71,145,41,164,0,47,255,255,255,250,0,0,47,34,37,34,186,0,0,47,0, +47,0,186,0,0,47,0,93,0,186,0,0,23,22,232,235,148,0,3,123,238,96,57,238,112,1,185,80,0,0,23,112, +0,0,0,92,16,0,0,126,255,238,255,254,238,230,0,139,102,102,102,102,48,0,71,119,119,119,119,48,0,94,204,204, +204,223,0,0,92,119,119,119,143,0,0,39,119,119,119,119,0,7,255,156,221,223,255,64,7,252,140,69,223,103,64,8, +249,140,118,223,185,64,10,255,155,182,190,79,80,30,85,117,236,187,7,119,75,62,156,33,164,5,229,0,0,0,0,0, +0,0,0,0,0,245,0,0,0,0,34,34,248,34,34,0,3,255,255,255,255,253,0,0,0,0,245,0,0,0,55,119, +119,252,119,119,96,127,255,255,255,255,255,208,0,35,0,246,0,0,0,0,141,0,247,34,34,0,0,223,0,255,255,255, +64,1,255,32,246,17,17,0,6,234,210,246,0,0,0,30,128,174,251,50,34,33,140,0,4,173,239,255,225,0,0,0, +0,0,0,0,0,0,201,0,15,32,0,2,34,252,33,15,32,0,13,255,255,245,15,32,0,0,0,201,0,15,80,0, +40,136,255,134,15,249,0,77,221,255,218,15,110,176,0,48,171,0,15,35,228,3,240,174,34,15,32,16,4,240,175,255, +63,32,0,6,244,171,0,15,32,0,10,252,187,0,11,32,0,14,123,255,67,34,34,33,111,32,123,239,255,255,245,3, +0,0,0,0,0,0,0,15,32,0,0,0,0,2,63,66,63,255,255,64,63,255,255,100,79,100,16,0,15,32,0,15, +32,0,88,143,168,96,15,32,0,89,159,217,239,255,255,144,5,24,80,18,47,82,16,15,40,130,32,15,32,0,31,41, +255,208,15,32,0,47,88,80,0,15,32,0,79,217,80,0,13,32,0,123,175,196,34,34,34,32,183,6,190,255,255,255, +128,34,0,0,0,0,0,0,0,15,32,0,0,0,0,18,47,82,26,255,255,112,79,255,255,82,34,45,112,0,15,32, +0,0,13,112,53,95,117,49,66,47,112,141,223,253,152,255,255,112,1,7,96,8,192,5,48,15,39,146,40,192,0,0, +31,40,255,232,192,0,146,47,103,96,7,210,36,242,79,216,96,3,239,255,176,123,159,228,50,34,34,33,199,5,189,255, +255,255,241,34,0,0,0,0,0,0,0,12,128,0,0,0,0,2,47,162,78,255,239,112,15,255,255,112,214,11,96,0, +12,128,3,241,13,80,57,159,249,140,117,175,32,40,143,248,151,2,99,0,8,40,176,15,255,255,32,15,56,251,159,49, +31,32,15,88,244,63,32,15,32,31,168,176,15,255,255,32,63,235,176,1,17,17,0,92,111,212,50,34,34,32,136,4, +173,255,255,255,176,1,0,0,0,0,0,0,0,31,16,0,31,104,0,20,95,84,32,31,61,80,46,255,254,120,143,171, +112,0,31,16,79,191,235,144,88,159,152,95,13,68,64,141,223,253,127,12,91,64,2,9,80,47,10,157,0,15,42,130, +63,55,248,0,15,45,255,191,218,242,64,47,105,80,239,62,247,192,79,235,80,2,232,94,96,138,143,212,50,114,34,32, +181,4,173,255,255,255,160,16,0,0,0,0,0,0,0,31,16,2,162,0,0,0,31,16,8,249,159,48,63,255,252,47, +248,239,32,2,79,51,206,16,201,0,38,143,119,189,189,252,128,77,223,253,134,136,139,176,2,8,64,1,34,41,176,15, +41,165,57,255,255,208,15,57,233,80,0,8,176,31,152,64,47,255,255,176,62,236,64,2,34,34,32,90,79,198,67,34, +34,33,133,2,140,239,255,255,244,16,0,0,0,0,0,0,0,138,0,0,0,0,0,2,172,46,254,255,33,32,15,255, +251,240,218,255,247,0,138,2,250,248,19,244,75,255,184,244,251,214,242,75,255,184,240,216,191,224,6,79,2,252,248,63, +192,15,95,249,240,220,47,240,15,159,36,249,255,159,242,31,239,13,232,249,231,168,62,255,2,0,217,144,34,122,95,182, +51,67,34,34,150,2,156,239,255,255,248,16,0,0,0,0,0,0,0,255,255,255,255,246,0,0,244,34,34,34,246,0, +0,242,0,0,0,246,0,0,251,187,187,187,246,0,0,238,238,255,238,230,0,0,17,0,156,0,0,0,0,110,0,158, +34,34,16,0,191,0,159,255,255,112,0,255,48,156,0,0,0,5,250,211,156,0,0,0,29,144,159,255,51,34,33,108, +16,3,175,239,255,244,0,0,0,0,0,0,0,0,0,0,5,48,0,0,15,255,251,31,98,36,32,15,66,187,111,255, +255,192,15,32,173,230,0,11,192,15,255,252,191,204,43,192,0,79,0,79,31,44,176,15,95,67,77,15,44,176,15,95, +250,79,127,44,176,15,95,33,79,158,127,144,15,95,0,77,5,186,32,15,127,173,93,0,0,83,127,253,131,78,50,34, +183,69,16,0,27,255,255,210,15,255,250,191,255,255,160,15,66,154,190,51,60,160,15,32,154,207,255,255,160,12,239,200, +189,17,29,160,0,63,0,191,119,125,160,15,79,100,191,207,203,128,15,79,217,187,12,81,145,15,79,0,187,8,221,194, +15,79,0,187,2,252,0,15,159,203,187,1,142,48,143,202,84,255,239,27,228,17,0,0,231,48,0,112,0,0,0,4, +112,0,0,0,239,255,80,255,255,96,0,14,65,213,79,49,202,0,0,227,13,111,178,63,66,32,14,255,255,255,255,255, +254,0,56,243,139,195,149,148,0,15,95,82,172,175,175,192,0,245,254,107,202,176,188,0,15,94,0,187,171,44,192,0, +245,224,46,154,183,214,0,15,207,236,246,171,0,104,7,254,181,143,25,194,43,224,34,0,10,128,78,255,231,0,0,0, +0,0,0,0,0,0,0,0,1,113,0,0,14,255,248,7,243,36,0,14,66,184,47,255,255,112,14,118,202,223,144,174, +16,14,255,251,213,234,247,0,0,79,0,0,159,240,0,12,79,0,7,255,249,32,15,95,254,222,96,77,246,15,95,52, +207,255,255,241,15,95,0,79,34,46,144,15,111,171,79,0,14,144,111,255,199,79,34,47,144,122,97,0,79,255,255,160, +0,0,0,0,0,0,0,0,0,0,15,34,240,0,15,255,241,15,34,240,0,15,50,234,63,34,243,144,15,16,217,175, +34,248,112,15,239,243,255,34,253,16,2,159,32,47,34,242,0,14,127,97,31,34,247,0,14,127,197,239,18,254,96,14, +126,47,191,2,245,208,14,126,5,92,2,240,32,15,223,230,168,2,240,144,159,236,69,226,2,243,240,34,0,13,96,0, +223,160,0,0,1,0,0,0,0,0,0,0,1,33,33,0,15,255,246,9,255,250,0,15,50,198,10,177,202,0,15,16, +198,13,112,186,0,15,239,246,142,16,172,97,3,127,51,163,10,39,114,15,79,99,204,207,204,194,15,79,214,136,255,248, +129,15,79,0,5,239,226,0,15,79,51,46,126,125,16,15,223,250,219,14,12,193,143,182,39,209,14,2,194,17,0,0, +16,14,0,0,0,0,1,114,0,0,0,0,18,40,243,36,32,0,0,159,255,255,255,192,0,0,159,0,0,13,192,0, +0,159,255,255,255,192,0,0,159,0,0,13,198,144,0,159,255,255,255,255,96,0,159,0,0,15,248,0,127,255,255,255, +255,240,0,36,68,68,127,255,208,0,0,0,75,232,29,192,0,3,141,232,34,46,192,0,143,182,16,63,254,96,0,1, +0,0,1,0,0,0,0,13,32,2,15,32,16,0,46,16,46,15,32,216,12,255,247,10,63,39,225,12,244,247,4,79, +42,80,12,250,247,44,207,252,246,12,247,247,47,68,68,247,12,245,247,47,222,210,247,95,250,249,47,177,210,247,92,207, +249,47,177,210,247,0,125,199,47,254,242,247,6,227,199,47,129,0,247,110,65,199,47,0,35,247,3,9,227,47,0,111, +211,0,0,0,0,0,0,0,0,0,14,128,0,0,0,0,0,95,48,0,0,0,15,255,255,255,255,255,240,2,39,246, +34,34,34,32,0,12,160,15,96,0,0,0,142,32,15,96,0,0,1,255,255,255,255,255,16,0,83,34,47,146,34,0, +0,0,0,15,96,0,0,63,255,255,255,255,255,244,2,34,34,47,146,34,33,0,0,0,15,96,0,0,0,0,0,15, +96,0,0,0,57,0,0,41,16,0,18,159,34,18,143,34,32,79,255,255,143,255,255,224,0,227,0,0,213,0,0,4, +218,160,36,244,34,33,10,122,160,239,255,255,247,47,191,249,10,128,0,0,7,78,228,15,255,255,176,0,10,197,36,34, +223,32,58,223,253,55,71,244,0,41,109,176,9,255,112,0,0,10,160,0,79,230,0,0,10,160,0,1,185,0,0,0, +0,0,0,0,0,0,72,0,0,10,96,0,2,173,34,0,95,240,0,31,255,255,1,217,214,0,0,228,16,9,192,94, +32,4,218,128,125,32,10,193,9,122,132,211,80,1,181,31,255,255,18,240,77,32,6,45,178,2,248,250,16,0,10,147, +2,254,80,0,40,175,254,2,241,0,16,46,175,193,2,240,0,226,0,10,128,2,243,37,241,0,10,128,0,191,255,144, +0,71,0,0,0,0,0,18,188,34,143,255,255,80,95,255,255,18,34,191,16,1,242,0,0,9,244,0,5,218,128,2, +207,226,0,11,122,129,158,197,175,144,63,255,252,133,0,3,128,7,61,178,92,204,204,112,0,10,129,91,191,235,96,56, +175,253,0,15,32,0,56,109,144,0,15,32,0,0,10,130,187,191,235,178,0,10,131,255,255,255,243,0,1,243,0,155, +71,0,8,239,255,232,139,62,112,1,35,245,33,139,4,112,76,205,255,204,255,204,196,39,125,151,119,223,119,114,1,47, +81,17,110,5,80,31,255,255,255,95,12,112,2,228,139,0,47,95,32,14,255,255,253,14,250,0,4,34,157,33,15,242, +16,22,121,255,206,63,240,134,28,185,255,85,221,247,197,0,0,139,10,177,94,193,0,0,17,0,0,0,0,0,0,0, +0,0,0,0,0,92,0,0,61,16,0,5,223,85,0,13,96,0,13,255,221,207,255,255,244,0,228,16,36,130,57,33, +4,231,208,10,176,29,96,10,135,208,111,32,5,225,31,255,255,204,128,75,181,4,41,242,19,225,154,0,0,7,227,0, +187,228,0,42,207,253,0,79,224,0,26,123,240,0,175,245,0,0,7,208,60,209,143,146,0,7,208,184,16,5,193,0, +0,0,0,0,0,0,0,194,0,0,0,0,0,20,243,39,255,255,255,246,111,255,243,85,245,245,82,7,160,0,0,240, +224,0,10,126,18,221,254,253,245,14,63,19,243,243,243,246,95,255,244,241,240,240,246,20,63,51,243,246,246,246,0,31, +117,246,190,205,246,76,255,197,252,73,106,246,55,79,19,246,8,16,246,0,15,19,240,0,17,246,0,15,19,240,0,94, +194,0,0,0,0,0,0,0,0,0,14,85,240,0,0,9,204,207,85,252,204,144,0,0,14,85,240,0,0,5,204,207, +85,252,204,96,24,136,143,85,248,136,128,3,51,111,51,195,51,48,31,255,255,255,255,255,240,1,25,226,17,17,17,16, +0,78,64,60,16,0,0,0,255,255,255,255,254,0,1,49,17,95,33,17,16,95,255,255,255,255,255,245,0,0,0,79, +16,0,0,0,81,0,0,37,0,0,0,243,0,1,239,32,0,126,253,192,45,184,212,0,58,245,104,249,17,127,162,8, +158,27,255,255,253,145,13,95,4,85,147,34,96,79,223,186,233,249,244,192,76,143,106,247,251,244,192,0,47,42,248,252, +244,192,56,223,234,248,252,244,192,91,159,10,247,251,244,192,0,47,10,209,233,37,192,0,47,10,216,213,141,112,0,3, +117,0,58,0,0,92,255,183,17,46,97,16,53,155,0,191,255,255,240,0,107,0,28,81,46,48,126,255,238,57,160,109, +0,19,157,51,106,184,254,132,0,107,0,207,255,255,248,38,207,99,0,31,64,0,79,221,231,34,79,98,32,79,0,199, +207,255,255,240,79,17,199,0,31,64,0,79,255,247,0,31,64,0,79,34,132,0,31,64,0,0,0,0,0,0,0,0, +0,92,0,0,15,32,0,0,30,64,34,47,82,32,63,255,255,207,255,255,243,8,114,137,0,15,32,0,4,208,197,143, +255,255,240,20,184,244,154,15,51,240,110,255,254,186,15,34,240,0,63,16,125,255,252,208,31,255,254,0,223,241,0,2, +111,33,10,207,171,0,0,155,1,158,47,59,160,5,244,10,211,15,33,197,9,112,1,16,15,32,16,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,27,64,0,14,112,0,0,0,174,16,0,231,0,0,0,1,217,18,47,130,36,32, +0,4,41,255,255,255,250,0,0,0,0,63,32,12,144,11,255,32,5,240,0,217,0,18,242,0,156,0,14,128,0,15, +32,30,112,0,247,0,0,242,10,225,0,47,80,0,15,41,244,7,139,242,0,6,249,101,0,124,182,0,7,247,219,82, +33,34,70,32,167,1,124,255,255,255,225,1,0,0,0,1,16,0,0,5,16,0,0,0,0,0,28,160,191,255,255,255, +128,2,230,34,34,36,255,32,0,48,0,0,45,193,0,1,16,0,0,253,16,0,191,242,0,0,246,0,0,18,242,0, +0,246,0,0,0,242,0,0,246,0,0,0,242,0,0,246,0,0,0,242,1,85,245,0,0,5,250,1,221,177,0,0, +111,124,197,50,18,36,99,136,0,124,255,255,255,226,1,0,0,0,17,0,0,3,144,0,0,227,0,0,2,230,0,0, +243,0,0,0,109,54,103,248,102,96,0,3,92,207,253,204,192,0,0,0,4,240,0,0,15,255,0,8,249,0,0,2, +79,0,12,207,128,0,0,47,0,79,54,246,0,0,47,3,234,0,159,48,0,47,79,193,0,29,208,0,191,88,16,0, +3,64,10,231,233,67,34,35,82,12,64,42,239,255,255,241,1,0,0,1,17,16,0,1,80,0,0,0,245,0,5,243, +0,0,0,245,0,0,141,18,34,34,248,32,0,8,111,255,255,255,243,0,0,0,0,0,245,0,2,34,6,128,0,245, +0,15,255,3,245,0,245,0,0,47,0,142,16,245,0,0,47,0,22,0,245,0,0,47,0,2,35,245,0,0,127,32, +5,255,193,0,9,251,232,50,50,35,67,28,80,58,239,255,255,228,1,0,0,0,17,0,0,1,0,0,121,0,0,0, +62,96,47,196,255,255,128,5,230,47,0,244,45,128,0,49,47,0,242,11,128,0,0,47,0,242,11,128,191,242,47,0, +242,11,128,34,242,47,0,242,11,128,0,242,63,72,242,11,128,0,243,255,234,244,142,128,0,242,180,0,242,135,16,3, +249,0,0,242,0,0,95,189,197,50,34,52,80,153,1,125,255,255,255,176,0,0,0,1,17,0,0,0,0,0,0,0, +0,0,0,93,64,47,255,255,255,0,0,143,80,34,34,34,32,0,0,64,0,0,0,0,0,0,0,45,222,237,221,221, +0,255,241,85,207,101,101,80,2,79,0,13,160,154,0,0,2,240,6,242,3,244,0,0,47,2,252,103,143,240,0,2, +240,159,253,202,191,112,0,127,97,32,0,0,98,0,127,206,181,50,18,52,81,11,112,40,223,255,255,252,0,16,0,0, +1,16,0,0,1,80,0,1,36,105,144,4,246,0,255,253,185,97,0,111,48,189,0,0,0,0,5,0,188,0,0,0, +0,0,0,191,204,252,199,14,255,0,206,52,245,50,2,79,0,218,1,242,0,0,47,1,247,1,242,0,0,47,5,243, +1,242,0,0,47,12,208,1,242,0,0,175,88,80,1,209,0,10,214,217,67,34,35,86,12,48,24,223,255,255,247,1, +0,0,0,17,16,0,5,0,0,18,53,122,128,46,144,15,255,254,202,113,4,244,13,209,0,0,0,0,32,12,248,136, +159,96,0,0,12,248,136,223,144,191,242,13,184,48,175,64,34,242,15,154,232,252,0,0,242,63,96,191,242,0,0,242, +175,19,223,249,0,0,247,249,159,245,127,144,5,249,113,106,32,7,96,111,158,197,34,17,34,84,151,1,124,255,255,255, +229,0,0,0,1,17,0,0,0,114,0,0,0,0,0,0,10,210,255,255,255,255,112,0,28,130,34,95,114,33,0,0, +32,0,15,240,0,0,0,0,0,7,254,32,0,0,191,242,5,255,189,160,0,1,47,37,249,171,62,176,0,0,248,249, +10,176,62,128,0,15,53,0,171,0,49,0,0,242,0,10,176,0,0,0,111,128,0,171,0,0,0,127,141,181,50,18, +52,96,10,112,24,223,255,255,251,0,16,0,0,0,17,0,0,0,0,0,1,0,0,0,21,0,0,30,96,0,0,79, +96,0,9,192,0,0,6,247,255,255,255,255,192,0,49,34,34,41,242,32,0,0,120,0,13,128,0,34,32,77,194,95, +32,0,191,242,1,191,248,0,0,0,242,0,47,249,0,0,0,242,5,236,94,193,0,0,244,207,145,2,221,16,5,249, +131,0,0,23,0,127,190,181,50,34,52,96,137,1,124,255,255,255,160,0,0,0,1,17,0,0,0,0,0,0,0,0, +0,4,194,0,15,32,242,0,0,157,18,47,82,245,32,0,6,13,255,255,255,208,0,0,0,15,32,242,0,12,221,0, +15,32,242,0,4,111,95,255,255,255,243,0,47,18,95,34,245,32,0,47,0,139,0,242,0,0,47,4,244,0,242,0, +0,191,67,96,0,129,0,10,215,232,66,18,35,99,12,48,41,239,255,255,226,1,0,0,0,17,0,0,0,0,0,0, +0,0,0,0,109,32,31,255,255,255,0,0,158,16,34,34,34,32,0,0,80,0,0,0,0,0,0,0,141,223,253,254, +219,0,239,243,68,252,95,132,64,2,79,0,14,96,243,0,0,2,240,3,243,15,49,16,0,47,1,189,0,243,61,0, +2,245,223,64,15,204,192,0,127,156,48,0,106,148,0,127,174,181,50,18,36,81,11,112,24,223,255,255,253,0,16,0, +0,1,17,0,0,0,48,0,0,114,0,0,0,29,160,34,79,114,34,16,0,46,143,255,255,255,247,0,0,83,0,231, +57,0,0,1,17,0,110,22,240,0,0,191,242,31,255,255,255,144,1,31,32,115,40,242,33,0,0,242,18,34,143,34, +32,0,15,41,255,255,255,255,48,0,242,0,0,111,0,0,0,111,160,0,5,240,0,0,127,124,197,50,54,35,101,10, +112,7,206,255,255,254,80,16,0,0,0,17,0,0,0,16,0,0,47,0,0,5,227,0,0,47,0,0,1,190,64,34, +95,34,32,0,10,66,255,255,255,240,0,0,2,240,47,2,240,10,204,2,241,79,19,240,5,127,2,255,255,255,240,0, +47,2,240,47,2,240,0,47,2,240,47,2,240,0,47,2,254,255,238,240,0,127,80,34,34,34,32,7,250,234,83,33, +35,69,11,112,25,223,255,255,249,1,0,0,0,17,16,0,1,178,1,64,47,0,65,0,11,209,79,34,240,47,80,0, +30,112,201,47,9,192,0,0,48,6,130,240,180,0,1,17,6,119,159,119,117,0,191,242,171,191,255,187,128,1,31,32, +6,255,246,0,0,0,242,4,247,245,246,0,0,15,36,232,47,5,246,0,0,243,217,2,240,7,144,0,127,145,0,47, +0,0,0,142,125,181,34,18,36,114,11,96,24,207,255,255,254,0,16,0,0,0,17,0,0,0,0,0,2,48,0,0, +6,0,0,8,208,0,0,46,194,88,137,250,136,96,2,217,175,255,255,255,176,0,33,0,47,15,32,0,0,0,27,79, +15,104,0,175,242,109,62,15,95,32,34,242,200,109,15,44,112,0,248,225,154,15,39,192,0,242,33,229,15,34,48,0, +242,10,209,31,32,0,2,247,61,50,253,0,0,78,173,181,50,34,52,64,137,1,125,255,255,255,128,0,0,0,1,17, +0,0,0,0,0,0,101,0,0,6,193,1,33,249,17,0,0,172,6,255,255,255,32,0,5,6,240,0,15,32,3,51, +6,255,255,255,32,31,255,6,242,34,34,0,24,159,6,242,34,34,16,0,47,6,255,255,255,160,0,47,6,240,0,8, +160,0,47,6,247,119,123,160,0,143,51,249,153,153,96,7,252,231,50,18,35,84,12,96,75,239,255,255,230,1,0,0, +1,17,0,0,0,0,0,0,0,0,0,0,92,16,15,255,255,248,0,0,188,16,245,17,31,128,0,1,128,15,255,255, +248,0,0,0,0,245,17,31,128,0,239,240,15,254,238,233,0,2,79,0,244,87,6,229,0,2,240,15,67,223,229,0, +0,47,0,245,84,237,32,0,2,241,191,255,81,206,32,0,143,104,181,16,1,145,0,143,174,182,50,34,52,96,12,80, +24,223,255,255,235,0,16,0,0,1,17,0,0,1,129,0,89,0,8,112,0,12,192,2,244,2,245,0,0,46,115,108, +150,255,99,0,0,65,127,255,255,255,112,0,0,0,0,95,16,0,0,191,242,34,39,243,34,32,2,63,46,255,255,255, +253,0,0,242,0,13,249,0,0,0,15,32,6,246,219,16,0,0,242,25,246,2,220,16,0,127,119,212,0,1,178,0, +158,125,165,34,18,36,114,11,80,24,223,255,255,253,0,16,0,0,0,17,0,0,2,0,5,144,0,164,0,110,48,2, +230,6,226,0,10,226,136,236,143,248,112,0,129,187,189,251,187,144,0,0,44,2,240,12,32,174,226,47,2,240,15,32, +53,242,47,2,240,15,32,0,242,47,255,255,255,32,0,242,2,42,226,34,0,0,242,0,62,96,0,0,3,249,8,250, +0,0,0,78,222,204,147,34,51,80,154,1,124,255,255,255,208,0,0,0,1,17,0,0,21,0,3,96,242,0,0,79, +112,10,176,242,0,0,6,244,31,255,255,255,64,0,113,158,34,244,34,0,0,0,68,0,242,0,0,18,32,171,204,254, +187,180,175,242,103,239,143,167,114,0,242,0,185,31,48,0,0,242,6,244,31,51,180,0,243,175,144,15,171,245,1,252, +167,0,7,187,145,45,236,231,50,17,34,66,140,16,91,239,255,255,227,1,0,0,1,17,0,0,1,0,0,0,0,0, +0,78,64,255,255,255,255,192,8,227,17,127,129,18,16,0,113,92,255,80,45,80,0,2,199,30,245,232,0,191,242,5, +217,255,112,0,34,242,189,82,255,245,0,0,242,16,94,175,143,80,0,242,75,229,47,8,192,0,244,235,32,126,0,16, +1,247,16,94,247,0,0,62,222,181,54,65,35,65,153,1,124,255,255,255,224,16,0,0,1,17,0,0,0,0,0,0, +0,0,0,6,144,9,255,255,255,240,1,188,16,26,134,186,16,0,8,36,104,239,249,96,0,0,10,236,239,252,224,4, +68,10,192,47,0,176,31,255,10,254,255,238,240,0,47,10,192,47,0,176,0,47,10,255,255,255,240,0,47,10,192,47, +0,176,0,127,42,192,46,63,160,7,233,232,50,17,35,67,12,64,42,239,255,255,229,1,0,0,0,17,0,0,3,0, +6,98,240,0,0,63,96,14,132,243,34,0,5,244,111,255,255,255,64,0,81,197,2,240,0,0,0,1,204,206,252,204, +160,139,178,102,102,102,102,80,191,242,1,17,17,17,0,0,242,15,255,255,255,0,0,242,15,32,0,47,0,0,242,15, +135,119,143,0,2,248,9,153,153,153,0,62,222,164,50,18,52,80,122,2,158,255,255,255,192,1,0,0,1,17,0,0, +5,161,79,255,255,255,247,1,189,19,238,238,238,112,0,3,2,240,0,10,112,0,0,2,253,221,222,112,12,204,1,51, +51,51,32,8,159,12,255,255,255,240,0,47,12,112,47,2,240,0,47,12,237,255,221,240,0,47,12,147,111,53,240,0, +175,91,221,239,221,208,9,233,251,83,34,36,85,11,80,41,223,255,255,248,1,0,0,0,17,16,0,0,0,0,0,0, +0,0,2,48,0,154,0,167,0,8,226,20,126,71,246,65,0,188,95,255,255,255,244,0,38,0,0,213,0,0,0,0, +2,239,255,238,32,12,204,2,240,0,15,32,6,143,2,253,221,223,32,0,47,2,240,0,15,32,0,47,2,253,221,223, +32,0,47,2,244,68,79,32,0,143,66,221,221,221,32,8,252,249,67,34,35,66,13,80,58,223,255,255,227,1,0,0, +0,16,0,0,0,0,0,0,3,112,0,46,48,159,255,35,242,16,9,209,153,47,207,255,240,0,195,152,31,42,8,80, +0,0,175,255,29,45,32,19,48,184,34,140,239,161,143,242,221,136,119,249,112,0,243,255,141,33,243,16,0,249,190,12, +207,255,224,0,252,78,12,16,242,0,1,246,15,255,16,242,0,61,222,164,33,17,115,65,123,1,140,255,255,255,224,1, +0,0,1,17,0,0,0,0,0,0,0,0,0,47,255,255,247,255,255,242,2,79,50,247,245,58,240,0,47,0,231,242, +13,96,14,255,255,246,242,109,0,2,111,34,246,242,202,0,0,92,0,246,242,46,96,31,255,255,246,242,5,208,2,203, +34,246,242,1,242,0,229,1,245,243,4,241,4,241,2,245,246,255,144,12,163,105,243,243,33,0,27,36,255,144,242,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,255,255,247,47,255,243,2,46,194,198,47,72,241,0,63,80, +180,47,10,128,1,204,0,211,47,30,32,77,210,109,224,47,93,0,22,16,20,16,47,11,112,8,255,255,246,47,3,224, +8,194,34,246,47,0,242,8,176,0,246,47,38,241,8,176,0,246,47,127,160,8,255,255,246,47,17,0,8,226,34,246, +47,0,0,0,0,0,0,0,0,0,1,113,1,113,0,0,0,0,170,7,208,47,255,243,7,173,143,198,47,38,241,13, +255,255,251,47,8,160,0,2,243,0,47,13,64,0,2,242,0,47,61,0,18,38,243,34,63,45,64,95,255,255,255,79, +6,192,0,11,241,0,47,1,241,0,63,253,32,47,3,241,1,203,10,227,47,127,176,27,226,0,168,47,18,0,43,48, +0,0,47,0,0,0,5,128,0,0,0,0,2,39,244,34,95,255,243,14,255,255,251,93,39,241,0,195,4,193,93,9, +160,0,185,9,176,93,14,64,18,138,63,114,93,94,0,95,255,255,255,93,46,64,1,17,17,16,93,6,208,9,255,255, +247,93,1,242,9,161,17,215,93,37,241,9,160,0,215,93,157,128,9,255,255,247,93,0,0,9,194,34,214,93,0,0, +0,15,0,17,0,0,0,2,47,50,154,255,255,241,12,255,255,243,244,42,208,0,15,10,160,242,14,96,92,207,255,217, +242,110,0,54,108,251,101,242,200,0,0,127,114,16,242,110,32,47,255,255,160,242,9,160,111,240,12,160,242,3,224,8, +255,255,176,242,5,224,8,240,11,160,245,223,112,8,255,255,160,242,33,0,8,241,28,160,242,0,0,0,0,0,0,16, +0,0,1,17,17,16,0,0,0,78,255,255,234,255,255,160,0,102,210,1,34,44,160,1,136,243,16,0,11,160,79,86, +120,176,0,11,160,79,70,182,184,254,239,160,79,85,182,184,245,95,160,79,161,191,200,208,4,48,79,16,6,184,208,0, +0,79,238,239,232,208,0,48,79,0,6,184,208,1,242,79,255,255,232,227,38,240,79,17,22,163,239,255,128,1,0,0, +0,0,0,0,0,0,0,0,34,240,0,92,255,255,116,243,240,0,1,198,228,10,255,255,244,63,255,255,125,165,242,33, +63,102,139,157,34,240,0,63,85,201,120,138,248,133,63,100,201,139,187,251,182,63,193,191,114,68,68,64,63,16,9,121, +255,255,242,63,255,255,121,177,19,242,63,17,26,121,176,2,242,63,221,223,121,255,255,242,63,0,8,105,210,36,242,0, +0,0,0,0,0,0,0,0,0,0,68,0,0,92,255,252,64,217,181,0,0,148,224,7,209,95,32,1,166,241,63,254, +255,240,78,101,123,55,211,67,97,77,85,186,59,128,141,64,77,116,186,171,134,5,228,78,176,191,51,251,159,96,77,16, +10,62,247,159,128,79,238,239,156,230,190,16,77,0,10,33,111,244,0,79,255,255,54,223,253,114,78,17,27,173,96,24, +211,0,0,0,0,0,0,0,0,0,0,0,0,0,0,109,255,253,143,255,255,243,0,133,240,15,48,1,243,41,254,249, +79,238,238,243,79,254,252,127,49,17,243,79,86,200,127,255,255,243,79,116,200,117,178,240,0,79,192,191,142,255,254,230, +79,16,8,237,53,243,49,79,255,255,132,172,250,161,79,51,59,113,71,244,65,79,221,223,122,190,251,185,79,0,8,125, +238,238,236,0,0,18,69,120,168,0,13,255,255,253,203,151,16,3,66,20,112,0,88,0,2,227,5,242,0,202,0,0, +171,0,246,5,242,0,0,77,16,180,29,128,0,18,35,34,248,37,50,32,127,255,255,255,255,255,224,0,0,127,255,193, +0,0,0,9,245,247,205,48,0,4,222,80,246,27,248,16,143,194,0,246,0,126,225,21,0,0,246,0,2,64,1,53, +136,0,0,0,0,95,255,165,159,255,255,240,22,47,7,44,162,79,80,13,95,91,1,218,214,0,4,95,66,1,191,242, +0,95,255,253,158,180,191,163,18,143,66,131,5,20,145,0,239,209,18,47,82,16,6,223,139,111,255,255,128,79,95,5, +34,47,66,32,72,47,0,255,255,255,242,0,47,0,17,31,49,16,0,47,0,0,15,32,0,0,255,255,255,255,255,0, +0,242,0,229,0,111,0,0,255,255,255,255,255,0,0,244,34,246,34,127,0,0,242,0,229,0,111,0,0,255,255,255, +255,255,0,0,34,35,248,34,34,0,2,34,35,248,34,34,0,11,255,255,255,255,255,48,0,0,0,246,0,0,0,140, +204,204,255,204,204,176,87,119,119,119,119,119,112,0,0,17,35,86,134,0,3,255,255,255,202,116,0,53,119,101,250,85, +85,80,72,136,136,253,136,136,128,0,206,238,255,238,238,0,0,230,0,245,0,95,0,0,239,238,255,238,255,0,0,230, +0,245,0,95,0,0,222,238,255,238,238,0,3,102,102,251,102,102,16,3,102,102,252,102,102,16,123,187,187,255,187,187, +177,88,136,136,136,136,136,129,0,0,0,0,0,0,0,31,255,255,248,255,255,244,31,31,33,242,52,79,208,31,255,255, +241,126,251,16,31,31,33,241,5,249,0,31,127,135,243,153,191,246,27,191,235,180,190,252,247,0,31,48,0,2,243,242, +31,255,255,241,2,245,160,2,63,82,32,2,240,0,0,31,101,96,2,240,0,92,239,254,177,37,240,0,55,83,16,3, +254,144,0,0,0,0,0,0,0,0,0,142,204,204,204,232,0,0,141,136,136,136,232,0,0,142,204,204,204,232,0,7, +119,119,119,119,119,117,7,119,119,119,119,119,116,0,207,255,255,255,254,0,0,202,102,255,102,158,0,0,201,85,255,85, +158,0,0,172,204,255,204,203,0,1,136,136,255,136,136,32,1,85,85,254,85,85,16,31,255,255,255,255,255,251,0,0, +0,134,0,0,0,0,0,7,255,16,0,0,0,1,175,124,211,0,0,0,110,228,1,159,162,0,126,255,168,136,141,255, +178,73,43,187,255,187,86,144,0,0,0,246,0,0,0,10,255,255,255,255,255,32,2,105,34,248,38,147,0,0,47,48, +246,11,160,0,0,9,144,246,78,16,0,75,188,187,255,188,187,144,95,255,255,255,255,255,192,0,149,0,0,15,32,0, +3,245,34,0,15,32,0,12,255,252,0,15,32,0,78,67,50,173,207,252,229,6,255,248,187,15,32,245,0,47,0,187, +15,32,245,0,47,0,187,15,32,245,24,191,135,190,47,82,245,26,207,168,191,255,255,245,0,47,0,154,15,32,180,0, +47,39,0,15,32,0,0,159,232,0,15,32,0,0,201,16,0,15,32,0,0,84,0,0,0,0,0,1,248,34,23,255, +255,245,9,255,255,71,242,34,245,62,49,17,7,242,34,245,6,255,255,7,254,238,245,0,47,0,7,192,0,245,0,47, +0,7,192,0,245,10,223,170,40,226,34,245,9,207,153,41,255,255,245,0,47,0,11,144,0,245,0,47,39,31,96,0, +245,0,159,232,142,16,35,245,0,222,35,231,0,159,194,0,0,0,16,0,0,0,0,133,0,1,243,112,0,2,245,34, +1,244,204,0,12,255,251,0,243,56,32,94,67,49,140,255,185,64,7,255,248,33,228,0,32,0,47,0,1,253,190,208, +0,47,0,223,255,150,48,47,255,252,116,154,5,176,2,95,34,0,93,62,80,0,47,1,0,47,248,0,0,47,141,1, +143,208,80,0,159,196,126,201,228,225,0,216,0,149,0,142,144,0,83,0,0,0,0,0,1,247,34,159,255,255,248,8, +255,251,156,47,66,248,79,80,0,155,15,32,248,44,102,99,159,159,185,248,5,255,199,159,159,201,248,0,47,0,155,15, +32,248,24,175,134,158,47,82,248,26,207,167,159,255,255,248,0,47,0,121,15,32,165,0,47,74,0,15,32,0,0,143, +214,0,15,32,0,0,201,0,0,15,32,0,0,166,0,3,14,48,0,3,244,34,63,30,48,0,29,255,255,95,79,116, +48,109,51,50,175,159,201,112,7,255,250,228,14,48,0,0,47,0,32,15,48,0,0,47,0,206,255,254,225,47,255,255, +103,191,231,113,2,79,50,0,143,176,0,0,47,0,1,215,243,0,0,47,91,9,192,172,0,0,159,230,142,48,46,177, +0,171,17,180,0,3,160,0,0,0,0,0,0,0,0,67,0,0,0,0,0,0,249,34,127,255,255,176,7,255,251,127, +34,44,176,63,112,0,127,119,127,176,28,101,83,127,221,223,176,3,255,199,126,0,11,176,0,47,0,127,223,206,160,15, +255,253,126,13,64,113,2,95,34,126,8,171,194,0,47,0,126,3,250,0,0,47,91,126,1,188,16,0,143,231,207,223, +93,195,0,171,16,253,98,2,178,0,0,0,0,0,0,0,0,133,0,0,15,60,64,1,245,33,0,15,53,227,10,255, +250,204,223,252,227,61,33,17,68,95,116,98,5,255,246,191,239,254,247,0,47,0,187,15,32,247,0,47,0,189,31,49, +247,9,207,151,191,255,255,247,7,159,117,187,15,32,247,0,47,0,191,255,255,247,0,63,121,189,47,66,247,0,191,178, +187,15,35,247,0,168,0,187,13,46,211,0,117,0,19,10,128,32,2,246,34,62,42,129,226,11,255,255,9,138,136,128, +79,67,50,24,159,234,112,7,255,250,47,255,255,240,0,47,0,47,23,99,240,0,47,0,47,11,130,240,14,255,253,47, +11,130,240,2,95,34,47,12,114,240,0,47,0,47,31,82,240,0,63,89,23,173,83,96,0,159,230,76,227,159,145,0, +250,22,250,32,3,200,0,0,0,16,0,0,0,0,50,0,0,0,0,0,0,234,34,127,255,255,240,7,255,251,123,17, +19,240,63,128,0,125,136,137,240,12,101,82,110,239,254,224,3,255,198,0,15,16,0,0,47,0,220,223,204,247,15,255, +248,242,79,16,152,2,95,33,242,159,193,152,0,47,0,245,243,187,152,0,47,69,252,128,27,184,0,143,229,243,0,17, +168,0,172,16,242,0,207,212,0,0,0,32,0,0,0,0,150,0,9,224,47,0,1,247,50,26,241,63,16,9,255,251, +223,255,255,248,79,64,0,26,241,79,17,28,207,198,9,224,47,0,4,223,184,255,255,255,253,0,47,0,69,85,85,67, +13,255,219,127,255,255,144,4,111,67,127,0,4,144,0,47,0,127,255,255,192,0,47,104,127,17,20,144,0,95,248,127, +17,21,144,0,223,32,127,255,255,160,0,0,0,1,0,0,0,0,83,0,0,0,0,0,1,247,17,47,255,255,240,9, +255,255,63,17,19,240,79,64,0,47,255,255,240,27,207,200,47,17,19,240,3,159,116,47,255,255,240,0,47,0,9,193, +17,17,47,255,252,95,255,255,250,2,79,40,228,168,136,153,0,47,3,70,210,227,167,0,47,138,94,72,160,198,0,207, +197,212,94,51,243,0,165,0,0,179,127,176,0,0,0,0,0,0,0,4,192,0,1,15,0,0,10,194,63,247,159,169, +144,31,255,114,177,63,51,224,156,0,1,138,175,186,248,123,136,71,69,95,85,244,11,253,143,221,175,170,224,0,241,55, +189,79,84,64,125,255,135,127,255,255,64,36,246,61,214,15,16,0,0,241,9,255,255,255,128,0,248,152,246,15,0,0, +5,254,126,159,172,50,17,9,225,215,3,173,255,210,0,0,16,0,0,0,0,0,6,240,0,0,71,16,0,6,240,0, +5,250,0,0,6,240,1,159,160,0,0,6,240,109,247,0,0,0,6,240,156,48,0,0,2,40,242,50,34,34,33,14, +255,255,255,255,255,248,0,6,240,12,144,0,0,0,6,240,4,244,0,0,0,6,240,0,174,48,0,0,6,240,21,44, +247,0,0,11,253,254,49,175,214,0,15,248,64,0,4,163,0,1,0,0,0,0,0,1,80,0,0,0,0,0,2,231, +63,255,255,255,160,0,79,66,34,34,46,160,15,82,0,0,0,12,160,15,80,0,0,0,12,160,15,80,0,0,0,12, +160,15,80,0,0,0,12,160,15,80,0,0,0,12,160,15,80,0,0,0,12,160,15,80,0,0,0,12,160,15,80,0, +0,0,12,160,15,80,0,0,18,44,160,15,80,0,0,31,253,64,0,0,0,0,0,0,0,1,64,0,0,0,0,0, +4,230,79,255,255,255,112,0,95,66,34,34,47,112,12,35,0,183,0,13,112,15,32,1,245,0,13,112,15,32,5,242, +0,13,112,15,32,11,252,16,13,112,15,32,95,77,176,13,112,15,35,233,2,233,13,112,15,62,193,0,95,45,112,15, +38,16,0,4,13,112,15,32,0,0,18,46,112,15,32,0,0,30,252,32,0,0,0,0,0,0,0,4,64,0,0,0, +0,0,7,227,143,255,255,255,128,0,152,18,34,50,46,128,11,32,0,5,240,12,128,15,34,34,40,242,44,128,15,43, +255,255,255,204,128,15,32,0,143,240,12,128,15,32,7,250,240,12,128,15,32,143,101,240,12,128,15,93,229,5,240,12, +128,15,56,34,39,240,12,128,15,32,6,254,128,44,128,15,32,0,0,0,238,64,0,0,0,0,0,0,0,5,48,0, +0,0,0,0,7,228,143,255,255,255,96,0,142,34,34,34,47,96,11,33,0,0,0,14,96,15,32,36,34,32,14,96, +15,32,175,255,242,14,96,15,32,171,0,242,14,96,15,32,171,0,242,14,96,15,32,174,34,242,14,96,15,32,175,255, +242,14,96,15,32,154,0,0,14,96,15,32,0,0,2,46,96,15,32,0,0,12,253,32,0,0,0,0,0,0,0,3, +80,0,0,0,0,0,5,244,143,255,255,255,144,0,119,18,34,34,46,144,11,64,0,0,0,12,144,15,96,255,255,255, +12,144,15,96,243,17,63,12,144,15,96,244,17,79,12,144,15,96,255,255,255,12,144,15,96,242,0,47,12,144,15,96, +243,17,63,12,144,15,96,255,255,255,12,144,15,96,0,0,0,45,144,15,96,0,0,0,158,80,4,48,0,0,0,0, +0,6,227,127,255,255,255,112,0,135,18,34,34,47,112,11,36,102,102,102,60,112,15,42,235,254,191,108,112,15,42,193, +244,31,108,112,15,42,255,255,255,108,112,15,42,176,242,15,108,112,15,42,255,255,255,108,112,15,40,178,244,46,92,112, +15,32,0,242,0,12,112,15,32,0,242,0,45,112,15,32,0,113,0,190,48,2,48,0,0,0,0,0,5,228,143,255, +255,255,128,0,103,18,34,34,46,128,11,73,204,187,203,124,128,15,82,254,51,254,44,128,15,80,223,238,252,12,128,15, +80,219,0,252,12,128,15,80,223,238,252,12,128,15,80,220,17,252,12,128,15,104,255,188,255,253,128,15,109,203,168,255, +92,128,15,80,0,0,252,44,128,15,80,0,0,0,190,64,0,0,0,0,0,0,0,4,64,0,0,0,0,0,7,245, +47,255,255,255,128,0,137,20,34,115,46,128,10,32,123,4,242,12,128,15,32,29,45,145,12,128,15,34,255,255,251,12, +128,15,34,240,0,123,12,128,15,34,251,188,219,12,128,15,34,191,239,216,12,128,15,32,62,15,34,60,128,15,54,230, +15,222,140,128,15,39,80,11,255,254,128,15,32,0,0,1,253,64,1,0,0,0,0,0,0,0,0,0,0,246,0,0, +15,255,242,0,245,0,0,15,71,240,0,245,0,0,15,41,144,1,244,0,0,15,46,48,2,245,0,0,15,60,96,3, +248,0,0,15,36,208,6,250,0,0,15,33,241,10,254,0,0,15,71,241,30,126,80,0,15,77,128,127,25,192,0,15, +32,3,231,2,231,0,15,32,78,176,0,127,112,15,32,138,16,0,7,160,0,0,0,0,0,0,0,0,0,0,0,84, +0,0,15,255,243,0,140,0,0,15,70,249,153,190,153,145,15,40,171,207,252,204,194,15,45,64,14,80,0,0,15,62, +48,15,114,36,16,15,38,192,31,255,255,144,15,34,241,79,16,14,128,15,34,242,125,0,15,112,15,127,192,200,0,31, +112,15,50,7,226,0,47,80,15,32,127,96,34,127,48,15,33,181,0,111,250,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,15,255,243,207,255,255,144,15,72,224,204,34,44,144,15,43,96,203,0,12,144,15,78,16,203,0,12,144, +15,61,80,206,34,46,144,15,37,208,223,255,255,144,15,33,242,203,0,12,144,15,69,241,203,0,12,144,15,126,128,203, +0,12,144,15,32,0,206,34,46,144,15,32,0,207,255,255,144,15,32,0,203,0,12,144,0,0,0,17,0,0,0,1, +17,16,0,0,0,0,15,255,243,111,255,255,144,15,53,224,111,34,46,144,15,41,144,109,0,12,144,15,46,48,111,255, +255,144,15,42,128,111,34,46,144,15,36,224,109,0,12,144,15,33,241,127,136,143,144,15,52,241,159,204,207,144,15,79, +144,185,0,12,144,15,32,2,244,0,12,144,15,32,9,208,1,44,128,15,32,79,64,3,253,64,1,0,1,0,0,0, +0,0,0,0,1,113,0,0,15,255,242,39,244,34,32,15,73,203,255,255,255,208,15,44,96,14,96,0,0,15,95,16, +95,31,32,0,15,61,80,185,15,32,0,15,38,197,255,255,255,176,15,35,242,114,47,82,32,15,106,208,0,15,32,0, +15,89,61,255,255,255,242,15,32,2,34,47,82,32,15,32,0,0,15,32,0,15,32,0,0,15,32,0,0,0,0,0, +0,0,0,15,255,243,175,255,255,112,15,70,224,172,34,47,112,15,40,96,171,0,15,112,15,44,32,175,255,255,112,15, +39,144,174,34,47,112,15,34,224,171,0,15,112,15,32,242,174,34,47,112,15,52,241,175,255,255,112,15,62,144,174,51, +63,112,15,32,0,171,0,15,112,15,32,44,255,204,207,247,15,32,24,136,136,136,133,0,0,0,0,0,0,0,15,255, +247,153,153,153,147,15,73,200,187,187,191,211,15,44,96,0,0,15,32,15,95,22,255,255,15,32,15,61,102,242,79,15, +32,15,38,198,224,47,15,32,15,35,230,224,47,15,32,15,54,230,251,207,15,32,15,158,118,246,102,15,32,15,32,2, +80,0,15,32,15,32,0,0,18,47,32,15,32,0,0,79,251,0,1,0,0,0,0,0,0,0,0,0,0,100,0,0, +15,255,243,0,141,0,0,15,72,237,255,255,255,242,15,43,109,146,34,34,242,15,62,24,102,0,0,145,15,43,112,47, +0,5,0,15,36,224,47,4,207,80,15,33,242,47,207,162,0,15,52,241,47,130,0,0,15,95,144,47,0,0,16,15, +32,0,47,0,0,211,15,32,0,31,66,36,241,15,32,0,10,255,255,144,0,0,0,0,0,0,0,0,0,0,29,32, +15,32,15,255,240,109,0,15,32,15,73,192,248,0,15,32,15,44,102,247,255,255,244,15,95,62,243,34,47,81,15,60, +171,242,81,15,32,15,38,193,242,214,15,32,15,35,224,242,109,15,32,15,54,224,242,30,63,32,15,143,128,242,1,15, +32,15,49,0,242,0,15,32,15,32,0,242,2,63,32,15,32,0,242,9,234,0,0,0,0,0,0,0,0,0,0,0, +0,24,16,0,15,255,241,0,191,64,0,15,72,208,9,231,228,0,15,42,113,190,48,127,128,15,62,45,230,68,73,229, +15,77,35,125,255,221,32,15,39,160,0,47,0,0,15,35,231,187,223,187,180,15,70,228,102,143,102,98,15,126,128,167, +47,45,48,15,32,6,226,47,7,209,15,32,46,82,79,0,197,15,32,1,11,250,0,0,0,0,0,0,0,0,0,0, +0,0,0,114,0,0,15,255,240,4,249,0,0,15,72,192,29,174,96,0,15,42,112,187,5,247,0,15,62,59,243,34, +127,161,15,78,92,239,255,243,176,15,39,160,0,32,1,0,15,35,230,112,211,14,64,15,70,228,208,166,108,0,15,127, +128,242,136,213,0,15,32,0,65,6,176,0,15,32,14,255,255,255,208,15,32,2,34,34,34,32,0,0,0,0,6,48, +0,15,255,244,2,47,98,33,15,72,221,79,255,255,245,15,43,132,160,184,0,0,15,79,48,22,255,255,240,15,95,85, +127,247,5,208,15,41,236,210,191,239,240,15,36,209,208,183,5,208,15,34,225,208,191,239,240,15,125,161,208,183,5,208, +15,51,6,242,166,62,160,15,32,94,141,99,34,50,15,32,102,2,174,255,245,0,0,0,0,0,0,0,0,0,0,4, +132,112,0,36,68,114,9,180,242,0,110,238,250,31,165,215,81,2,1,247,207,239,254,228,94,20,245,255,2,240,0,11, +200,232,255,37,242,32,2,239,167,175,255,255,240,0,143,144,142,2,240,0,0,191,225,143,255,255,240,5,245,217,143,37, +242,32,62,144,70,142,2,240,0,139,0,0,143,255,255,247,0,0,0,143,85,85,82,0,0,0,0,71,36,0,9,255, +255,224,169,77,0,0,97,47,1,248,78,83,1,241,47,8,255,255,252,3,224,47,47,240,47,0,6,226,95,159,241,63, +16,11,255,255,246,254,255,233,0,7,239,4,240,47,0,0,46,127,4,255,255,249,0,187,47,4,242,79,33,10,226,47, +4,240,47,0,11,66,95,4,253,255,221,0,12,233,4,248,136,135,0,9,128,135,0,0,0,0,159,150,207,102,102,48, +6,255,119,239,119,119,64,159,255,238,255,238,236,0,53,222,17,155,17,17,0,0,223,255,255,255,254,0,0,221,0,154, +0,0,0,0,255,255,255,255,255,224,17,223,102,248,102,102,80,159,255,255,255,255,255,192,0,5,219,250,215,16,0,72, +221,96,242,42,234,80,106,80,0,242,0,22,144,159,255,255,255,255,255,208,123,187,188,253,187,187,160,0,0,0,242,0, +0,0,15,255,255,255,255,255,128,15,67,35,244,50,47,128,15,94,113,245,231,15,128,15,35,199,242,60,127,128,15,52, +0,244,64,15,128,15,110,145,247,233,31,128,15,33,182,242,43,79,128,15,32,0,242,1,31,128,15,32,0,242,14,254, +64,0,0,0,0,1,16,0,6,204,204,254,204,200,0,1,17,17,243,17,17,0,15,255,255,255,255,255,144,15,52,66, +242,68,71,144,15,89,148,242,153,152,144,1,141,214,242,221,214,16,0,17,17,146,17,17,0,0,207,255,255,255,247,0, +0,0,0,0,0,215,0,0,143,255,255,255,247,0,0,17,17,17,17,231,0,3,255,255,255,255,247,0,5,170,170,252, +170,167,0,13,221,221,255,221,221,128,15,70,99,242,102,103,144,10,54,99,242,102,101,96,0,124,198,82,204,197,0,0, +0,57,254,48,0,0,2,124,233,136,221,149,32,78,166,17,198,4,157,192,0,175,255,255,255,244,0,0,0,82,1,142, +96,0,0,1,157,255,193,0,0,0,0,0,75,234,0,0,0,0,0,0,19,0,0,6,204,204,254,204,200,0,1,17, +17,243,17,17,0,15,255,255,255,255,255,144,15,52,66,242,68,67,144,15,89,148,242,153,147,144,1,142,230,242,238,229, +16,0,104,136,249,136,134,0,0,205,187,254,187,236,0,0,236,102,249,102,252,0,0,235,102,248,102,252,0,0,255,187, +254,187,252,0,0,237,136,136,136,252,0,0,17,0,0,0,0,0,1,170,170,255,170,170,16,14,238,238,255,238,238,225, +15,69,84,169,69,84,241,12,71,117,169,87,116,193,0,124,201,169,172,199,0,2,34,34,68,51,50,32,47,255,255,255, +255,255,243,0,119,120,251,119,121,48,1,255,255,255,255,255,96,1,243,31,48,244,13,96,1,243,31,48,244,13,96,1, +243,31,48,244,239,48,0,16,0,0,0,16,0,6,187,187,254,187,184,0,28,153,153,252,153,153,193,31,92,204,242,92, +199,241,25,17,17,242,1,17,145,0,106,170,210,91,221,0,13,239,244,190,255,237,16,0,94,80,34,95,34,32,11,255, +248,173,255,221,208,4,54,245,0,47,0,0,5,222,211,255,255,255,244,3,255,165,84,68,68,65,63,165,156,239,255,255, +244,2,0,0,0,0,0,0,0,0,0,245,0,0,0,9,255,255,255,255,255,48,0,0,0,245,0,0,0,1,255,255, +255,255,248,0,36,68,68,249,68,68,48,90,170,170,252,170,170,144,0,159,255,255,255,250,0,0,159,0,0,0,250,0, +0,159,255,255,255,250,0,0,159,0,0,0,250,0,0,159,238,238,238,250,0,0,159,0,1,34,250,0,0,159,0,2, +238,213,0,0,11,96,0,134,0,0,19,61,147,34,243,16,0,60,207,252,139,255,252,0,7,127,231,143,105,249,64,54, +111,214,92,255,255,208,90,173,202,128,15,43,208,9,238,239,191,255,255,250,10,193,31,114,47,77,225,10,255,255,100,95, +127,208,10,192,15,107,239,255,208,10,254,239,96,15,37,80,10,176,31,98,63,32,0,10,177,253,55,251,0,0,0,0, +0,0,0,0,0,0,0,15,128,172,0,0,0,0,15,128,172,0,0,11,255,255,128,175,255,249,2,34,47,128,174,34, +33,0,0,15,128,172,0,0,1,34,47,128,174,34,33,8,255,255,128,191,255,245,0,0,15,128,172,0,0,2,34,47, +128,174,34,34,31,255,255,128,175,255,253,0,0,15,128,172,0,0,0,0,15,128,172,0,0,0,0,15,128,172,0,0, +0,151,0,245,0,0,0,6,255,221,255,221,218,0,95,251,187,255,187,187,160,54,102,102,102,102,102,80,0,238,238,238, +238,229,0,0,243,0,0,0,245,0,0,221,221,221,221,213,0,0,0,136,6,160,0,0,93,221,251,9,253,221,160,39, +119,251,9,247,119,48,21,85,251,9,245,85,32,157,221,251,9,254,238,226,0,0,187,9,224,0,0,15,255,255,255,255, +255,248,2,34,35,250,34,34,33,1,34,37,244,34,34,16,9,254,255,254,255,239,144,9,160,153,0,198,11,144,9,160, +159,255,246,11,144,9,160,154,17,198,11,144,9,160,154,17,198,11,144,9,160,159,255,246,11,144,9,160,153,0,198,11, +144,9,253,255,221,255,223,144,9,248,136,136,136,143,144,0,0,0,0,0,0,0,4,176,152,0,2,240,0,78,250,255, +160,3,240,0,60,248,255,133,255,255,243,4,220,216,1,36,242,32,3,95,132,4,87,245,82,15,255,255,43,255,255,248, +15,46,31,32,1,144,0,15,143,143,32,2,240,0,8,143,168,24,255,255,244,90,175,202,145,37,242,33,54,111,134,80, +2,240,0,0,15,32,47,255,255,250,0,15,32,4,68,68,67,0,0,0,50,0,0,0,0,0,0,203,0,0,0,5, +255,255,255,255,255,176,1,39,178,34,42,146,32,0,4,242,0,30,112,0,2,35,247,34,143,66,33,15,255,255,255,255, +255,248,0,1,17,17,17,17,0,0,111,238,238,238,248,0,0,110,0,0,0,200,0,0,111,255,255,255,248,0,0,110, +17,17,17,216,0,0,111,34,34,34,216,0,0,111,255,255,255,248,0,0,0,0,0,0,0,0,15,255,255,255,255,255, +242,2,34,35,249,34,34,32,0,34,40,243,34,34,0,0,191,255,255,255,254,0,0,185,0,35,0,142,0,0,185,0, +171,0,142,0,0,185,0,171,0,142,0,0,185,0,171,0,142,0,0,185,1,232,16,142,0,0,51,26,228,234,84,0, +0,56,237,48,58,250,32,29,252,97,0,0,60,208,3,16,0,0,0,0,32,77,221,217,255,255,255,247,39,159,117,34, +111,66,33,0,47,0,127,255,255,224,0,47,0,124,35,55,224,0,47,0,124,14,101,224,0,47,0,124,14,101,224,0, +47,0,124,14,101,224,0,47,0,124,14,85,224,0,47,0,71,47,51,128,0,47,0,0,156,200,0,2,95,0,25,226, +95,144,13,232,4,236,32,4,229,0,0,0,64,0,0,48,36,68,63,255,255,255,241,157,254,146,37,246,34,32,0,242, +8,255,255,255,64,0,242,8,194,68,79,64,0,242,8,176,200,31,64,0,242,8,176,200,31,64,0,243,56,176,215,31, +64,38,255,216,176,230,31,64,206,165,5,116,243,40,32,49,0,0,61,167,229,0,0,0,74,249,0,111,144,0,0,138, +48,0,3,144,14,40,47,111,255,255,247,15,47,47,18,95,50,33,15,47,47,26,255,170,160,15,47,47,31,152,137,240, +15,47,47,31,41,18,240,15,47,47,31,47,34,240,15,31,47,31,47,34,240,31,31,47,31,47,34,240,47,15,47,30, +79,34,208,78,15,47,0,143,211,0,123,0,47,5,246,159,80,167,0,47,143,128,8,243,17,0,2,36,0,0,64,0, +3,0,0,0,0,0,0,111,94,255,255,255,240,26,229,2,35,249,34,32,25,32,4,255,255,255,96,0,10,164,243,34, +47,96,1,174,52,241,139,15,96,61,210,4,241,155,15,96,24,16,20,241,155,15,96,0,6,229,241,170,15,96,0,78, +115,161,231,25,64,5,249,0,9,214,230,0,111,128,5,205,32,94,177,4,0,28,129,0,2,177,0,0,101,0,0,0, +0,0,12,22,113,63,255,255,240,0,241,143,251,34,203,34,0,15,22,80,6,143,167,80,10,251,255,170,201,118,186,0, +221,255,237,220,89,120,160,0,50,241,17,197,167,138,0,31,79,23,220,90,104,160,7,178,241,215,197,181,138,0,164,47, +142,28,94,56,160,0,0,143,64,21,233,49,0,4,190,64,4,231,126,64,9,232,16,8,231,0,93,16,16,0,0,17, +0,0,16,15,239,254,254,239,255,233,15,47,67,242,40,243,33,15,191,219,250,255,255,243,15,31,33,250,176,32,243,14, +239,254,234,177,240,243,0,15,32,10,177,240,243,175,255,255,186,177,240,243,17,175,243,26,178,224,243,5,239,157,56,149, +192,211,95,95,37,160,12,138,16,87,15,32,2,185,7,211,0,15,32,28,80,0,87,0,0,0,0,0,0,0,0,254, +238,248,255,255,251,0,15,118,127,17,94,17,16,0,247,87,240,238,236,226,0,15,238,239,15,19,15,32,1,17,17,17, +242,241,242,1,255,255,255,127,63,15,32,0,20,240,0,244,224,242,0,14,127,0,14,123,13,32,0,246,255,243,12,141, +48,0,63,223,0,59,144,110,64,8,190,245,41,97,17,85,1,229,6,173,239,255,255,144,1,0,0,0,0,0,0,0, +0,9,48,0,0,0,0,1,27,177,31,255,255,243,47,255,255,210,43,178,32,47,56,0,210,47,66,16,4,239,255,172, +188,172,176,45,177,94,44,70,102,176,5,159,245,12,73,134,176,5,207,253,76,74,118,176,63,146,22,156,75,86,176,6, +255,255,124,77,54,176,5,224,15,113,61,100,0,5,241,31,113,197,77,96,5,255,255,171,80,2,195,0,0,0,0,0, +0,0,0,143,255,255,255,255,96,0,8,242,34,34,34,246,0,0,141,19,0,75,15,96,0,8,213,243,11,144,246,0, +0,157,9,229,243,15,96,0,9,192,12,251,0,246,0,0,171,0,127,192,14,96,0,12,144,63,207,80,231,0,1,246, +45,176,158,44,113,0,95,62,193,1,216,169,131,12,192,65,0,2,7,236,49,197,0,0,0,0,28,192,0,0,0,0, +0,0,0,0,0,0,0,28,112,0,0,0,0,0,28,255,48,0,0,0,0,110,196,111,129,0,0,5,207,113,228,61, +233,64,13,233,255,255,255,255,207,48,49,15,65,17,28,192,16,0,0,255,238,238,252,0,0,0,15,48,0,11,192,0, +0,0,255,255,255,254,64,0,0,15,65,168,38,250,0,0,0,243,4,207,245,0,0,0,95,204,228,93,213,0,0,11, +250,99,0,8,209,0,0,0,0,0,0,0,0,0,17,0,0,0,0,0,0,8,192,0,18,70,156,144,0,187,35,111, +254,202,115,0,15,255,249,241,0,0,0,4,243,127,95,16,0,0,0,186,24,180,255,255,255,160,12,63,49,95,203,37, +248,0,0,242,6,245,208,127,64,0,15,32,125,30,76,208,0,0,242,9,176,159,246,0,0,15,73,216,3,255,0,0, +1,255,175,82,223,246,0,0,255,106,231,237,39,250,32,10,80,119,120,16,4,177,0,0,0,0,0,0,0,5,192,0, +74,111,85,0,8,160,77,250,63,95,48,15,255,242,242,15,41,144,47,89,176,242,15,33,0,140,11,223,255,255,255,208, +133,130,18,245,47,101,64,0,242,0,242,12,93,112,0,242,38,254,171,175,16,0,242,174,249,57,249,0,0,242,16,242, +13,241,0,0,249,128,242,79,240,176,5,255,67,247,232,214,224,3,241,110,179,112,94,128,0,6,96,0,5,112,0,0, +6,244,0,30,128,0,11,187,252,187,255,187,183,11,187,187,255,187,187,183,0,34,35,249,34,34,0,0,207,255,255,255, +252,0,0,200,0,0,0,172,0,0,207,255,255,255,252,0,0,200,0,0,0,156,0,0,207,221,221,221,252,0,0,200, +0,0,0,156,0,0,207,255,255,255,252,0,0,202,34,34,34,188,0,0,0,0,0,0,16,0,1,35,70,121,189,247, +0,3,254,220,254,134,48,0,0,0,0,246,0,0,0,143,255,255,255,255,255,224,18,35,207,255,246,34,32,0,43,228, +246,175,129,0,23,238,64,197,9,254,129,175,211,0,0,0,111,225,40,159,255,255,255,252,96,0,143,0,0,0,251,0, +0,143,238,238,238,251,0,0,143,0,0,0,251,0,0,143,255,255,255,251,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,3,255,255,255,255,241,0,0,34,34,34,40,224,0,0,14,80,0,7,208,0,0,31,64,0,9,176,0,0, +63,32,0,11,144,0,0,95,255,255,255,255,224,0,21,51,51,51,63,192,0,0,0,0,0,14,176,63,255,255,255,255, +31,144,2,34,34,34,34,63,96,0,0,0,0,50,159,48,0,0,0,0,207,233,0,0,0,0,0,0,0,0,0,0, +0,0,4,128,0,0,255,255,176,1,255,32,0,2,147,218,2,204,173,48,0,15,45,149,237,16,143,129,1,241,217,203, +239,255,190,32,63,14,97,2,51,49,16,5,252,255,165,51,176,36,0,127,204,252,137,31,8,160,0,0,13,180,208,226, +213,3,156,228,234,30,25,125,0,38,48,31,128,0,11,112,0,0,21,248,255,255,255,240,0,31,252,18,34,34,34,0, +0,0,0,0,0,0,0,0,0,0,0,12,96,0,79,255,247,17,31,97,16,24,98,246,191,255,255,240,11,97,245,0, +191,230,0,12,83,243,109,210,94,160,13,68,242,155,84,70,130,15,239,251,187,187,191,246,31,220,253,0,0,10,128,0, +0,76,47,255,106,128,20,122,107,45,9,106,128,139,115,121,47,255,106,128,0,17,183,27,1,43,128,0,223,210,0,3, +254,64,0,0,0,0,0,0,0,0,0,0,17,17,18,0,63,255,249,255,255,255,64,4,35,245,181,90,92,0,14,35, +244,62,70,227,0,15,20,242,5,255,80,0,31,5,243,141,205,251,113,46,24,245,147,63,56,144,47,255,246,255,255,255, +32,0,0,117,242,47,15,32,57,206,164,255,255,255,32,55,48,178,0,47,43,0,1,18,229,170,223,207,240,4,255,133, +152,135,102,224,0,0,0,0,0,0,0,0,159,255,255,255,240,0,0,159,85,85,5,240,0,0,159,102,127,5,240,0, +11,255,187,239,191,251,176,15,169,153,155,153,155,240,15,206,238,238,239,247,240,0,171,17,17,18,243,0,0,175,255,255, +255,243,0,0,171,17,17,18,243,0,0,175,255,255,255,243,0,0,170,0,0,18,243,0,0,170,0,0,207,193,0,0, +0,0,100,0,0,0,2,34,34,222,34,34,32,63,255,255,255,255,255,242,0,23,119,119,119,114,0,0,63,84,68,69, +245,0,0,63,238,238,238,245,0,2,51,51,51,51,52,48,11,255,255,255,255,255,240,11,146,34,34,34,43,192,11,130, +255,238,238,9,176,11,130,242,0,78,9,176,11,130,255,238,237,9,176,11,129,145,0,1,238,112,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,6,225,0,0,0,0,170,175,250,170,164,0,0,253,205,254,204,246,0,0,243,17, +243,17,246,0,0,253,221,255,221,246,0,0,242,2,241,0,246,0,0,255,255,255,255,246,0,0,34,42,245,41,49,0, +0,0,46,233,46,83,0,0,0,188,153,188,173,0,0,27,226,153,251,142,112,4,222,48,139,34,37,241,46,161,0,78, +255,255,144,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,79,48,0,8,204,200,90,255,170,160,7, +187,183,142,223,253,241,0,0,0,137,15,50,241,21,85,85,143,255,255,241,41,255,153,137,47,18,241,0,184,81,143,255, +255,241,1,242,198,17,157,20,16,6,176,124,0,191,45,80,15,237,255,18,255,107,194,14,133,27,59,191,255,230,0,0, +0,142,47,48,72,0,0,5,228,10,255,247,0,0,0,32,0,0,0,0,0,0,76,16,0,0,7,251,187,207,235,187, +182,10,244,76,68,68,196,66,10,235,223,218,158,254,193,10,226,191,182,60,253,80,10,235,63,23,162,243,196,10,210,102, +191,102,102,32,11,214,235,191,251,191,80,12,182,215,127,215,126,80,14,150,236,239,236,207,80,47,96,1,188,161,148,0, +111,33,93,195,251,189,134,153,63,215,0,205,204,230,1,3,0,0,0,0,0,0,0,16,0,0,0,0,0,0,203,0, +0,0,0,0,8,255,255,252,0,0,0,111,114,36,247,0,0,8,252,85,95,245,84,0,46,255,255,255,255,254,0,1, +184,0,154,0,110,0,0,191,255,255,255,254,0,0,184,0,171,0,110,0,0,184,0,154,0,110,0,0,191,255,255,255, +254,0,0,104,136,136,136,135,0,63,255,255,255,255,255,243,2,34,34,34,34,34,32,0,1,197,0,0,0,0,0,27, +253,222,244,0,0,2,255,118,111,246,101,0,63,251,102,255,118,187,0,3,190,204,255,204,235,0,0,186,102,254,102,187, +0,0,87,119,119,119,117,0,13,221,221,221,221,221,208,0,57,153,153,153,147,0,0,79,68,68,69,244,0,0,79,221, +221,222,244,0,0,79,0,0,1,244,0,0,79,238,238,239,244,0,0,1,0,0,0,0,0,2,64,0,0,0,0,0, +8,212,128,142,221,222,144,13,170,241,142,204,206,144,63,79,130,141,102,108,144,79,239,199,71,119,119,64,14,88,39,236, +236,236,225,14,255,183,243,227,227,241,14,106,71,136,136,136,129,14,190,137,255,255,255,144,8,153,148,79,96,111,48,3, +87,167,4,255,244,0,79,201,117,156,255,253,163,0,0,2,132,0,22,145,0,0,1,98,0,0,0,0,34,41,244,34, +49,0,0,191,255,255,255,247,0,0,185,21,0,0,246,0,0,185,60,213,3,244,0,0,185,0,86,157,224,0,0,186, +34,34,86,68,32,0,191,255,255,255,255,176,0,0,0,0,0,12,160,143,255,255,255,255,14,144,18,34,34,34,34,31, +112,0,0,0,0,18,111,64,0,0,0,0,47,251,0,0,0,0,0,135,0,0,18,34,64,104,250,106,32,175,255,247, +250,185,159,64,1,1,245,243,179,31,48,77,20,241,242,76,63,32,12,152,192,242,8,205,0,3,255,112,242,3,81,0, +0,239,32,255,255,255,242,0,239,128,0,0,3,241,8,233,226,34,34,36,241,111,81,199,255,255,247,224,119,0,0,0, +0,8,208,0,0,0,0,7,254,96,0,0,0,0,0,0,0,0,0,0,0,6,16,0,40,136,136,98,79,35,16,79, +159,190,191,255,255,176,79,15,44,191,70,11,160,79,127,159,191,60,108,144,79,175,207,191,33,46,128,79,15,44,191,36, +237,48,79,127,159,191,135,120,177,79,127,159,183,119,122,243,18,15,32,143,255,227,242,0,15,32,1,17,20,241,0,15, +32,0,0,7,224,0,15,32,0,6,239,128,0,0,0,0,0,16,0,0,0,0,0,2,32,0,3,185,243,48,8,128, +0,78,195,246,177,255,255,192,1,242,241,243,244,43,176,38,247,246,114,246,221,160,93,254,253,194,241,94,144,1,241,225, +82,241,190,80,1,246,212,226,244,68,97,42,252,202,145,204,205,243,109,241,207,48,0,1,242,1,241,255,9,255,253,241, +1,245,252,55,0,3,240,19,252,95,166,0,22,224,31,176,8,209,1,255,128,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,12,48,4,5,240,48,2,27,161,29,53,241,225,63,255,255,199,102,245,128,63,86,176,11,223,255,212,63, +255,255,162,188,250,145,63,87,196,191,85,240,199,63,255,254,171,2,96,224,63,199,152,78,253,175,250,79,172,142,166,236, +146,240,94,172,142,222,249,226,224,108,148,117,11,245,255,252,153,254,255,125,144,16,240,163,146,147,58,0,0,224,0,0, +0,0,0,0,0,0,0,0,242,0,0,0,14,255,255,255,255,255,48,1,17,17,244,17,17,0,1,255,255,255,255,246, +0,0,17,17,243,17,16,0,141,221,221,255,221,221,176,70,102,255,118,102,102,80,0,63,255,255,255,176,0,42,255,243, +18,207,64,0,25,48,174,124,229,0,0,0,1,95,255,129,0,0,57,190,233,105,239,218,112,42,116,16,0,3,121,96, +0,3,243,0,245,0,0,4,255,255,255,255,252,0,1,37,245,34,248,34,0,40,139,251,136,254,136,96,78,239,255,255, +255,238,176,0,0,0,246,0,0,0,0,254,238,255,238,242,0,0,246,68,249,68,242,0,0,248,119,252,119,242,0,0, +252,187,255,187,242,0,0,119,183,119,200,113,0,1,125,228,2,191,181,0,28,199,16,0,2,141,64,0,0,0,0,0, +0,0,0,0,35,1,64,0,0,75,207,234,23,160,0,0,19,47,48,15,255,255,176,143,255,255,253,111,63,176,1,191, +244,50,199,14,160,27,175,108,73,193,63,128,121,15,74,254,70,254,32,1,90,232,135,236,132,0,127,220,48,242,27,190, +192,19,8,194,248,187,16,16,0,22,222,255,248,32,0,7,251,81,242,59,248,0,2,48,31,209,0,67,0,0,0,0, +0,0,0,0,0,253,204,255,204,223,0,0,243,160,217,11,79,0,0,242,165,217,108,47,0,0,244,84,235,133,79,0, +0,255,255,255,255,255,0,0,17,17,235,17,17,0,2,255,255,255,255,255,32,0,0,0,217,0,0,0,79,255,255,255, +255,255,244,21,133,85,85,85,87,81,4,242,75,4,226,63,80,28,160,62,0,232,7,225,6,16,22,0,83,0,97,0, +0,0,0,15,32,0,15,191,187,240,15,182,0,15,108,57,240,15,78,48,15,140,149,240,15,36,32,15,111,133,254,255, +254,192,15,255,255,244,95,132,48,5,95,117,80,63,112,0,8,143,168,112,95,160,0,106,191,237,112,138,225,0,124,186, +152,64,212,198,0,12,100,146,131,208,109,16,108,117,242,123,80,13,160,166,84,114,25,0,3,177,0,0,0,0,0,0, +0,0,15,32,0,15,32,0,126,239,254,112,15,32,0,18,47,66,159,255,255,192,45,223,253,82,47,82,32,25,153,153, +48,15,32,0,15,255,255,159,255,255,128,15,48,31,110,152,175,80,15,48,31,45,80,126,16,15,255,255,39,192,217,0, +6,128,135,1,222,225,0,5,224,214,0,175,160,0,54,186,254,168,253,247,0,141,184,100,222,80,94,176,0,0,0,49, +0,1,32,0,3,86,0,0,0,0,13,255,201,22,255,252,0,11,244,0,0,17,140,0,11,255,255,36,255,253,0,11, +243,0,0,0,140,0,15,255,255,255,255,252,0,3,198,84,200,85,213,0,0,229,194,247,217,243,0,0,228,18,247,21, +243,0,0,230,193,248,213,228,0,0,228,50,247,56,197,16,7,253,187,255,189,154,194,15,248,110,247,66,45,176,0,0, +0,108,16,0,0,0,28,204,255,204,194,0,0,31,151,119,119,242,0,0,31,219,187,187,242,0,0,31,150,102,102,242, +0,0,23,119,119,119,114,0,2,254,238,255,238,239,80,2,247,119,159,119,127,80,2,251,187,239,187,191,80,60,255,255, +255,255,255,211,79,255,255,255,255,255,244,0,58,210,0,31,32,0,28,200,32,0,31,32,0,0,0,0,0,0,0,0, +0,0,0,100,0,0,0,2,34,34,175,50,34,32,47,255,255,255,255,255,242,0,5,228,0,95,80,0,0,0,94,187, +246,0,0,0,2,92,255,231,65,0,44,239,199,33,123,239,227,5,54,192,0,12,98,48,0,6,224,0,14,112,0,0, +8,208,0,14,112,0,0,12,160,0,14,112,0,1,159,48,0,14,112,0,1,198,0,0,14,112,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,47,64,132,0,0,0,0,63,48,110,128,0,0,0,79,32,3,194,0,124,204, +255,204,204,204,176,141,221,255,223,253,221,208,0,0,155,15,80,4,0,0,0,216,15,80,126,16,0,2,244,15,83,245, +0,0,8,224,15,142,144,0,0,46,128,15,250,0,0,1,205,16,111,224,0,129,60,227,59,255,130,37,241,125,48,42, +40,255,255,160,1,0,0,0,0,0,0,0,63,160,0,0,0,0,0,47,160,0,0,0,0,0,47,144,0,0,0,0, +0,31,128,0,0,0,0,0,15,112,0,0,0,0,0,14,96,0,0,0,0,0,13,80,0,0,0,0,0,0,0,0, +0,0,0,0,46,144,0,0,0,0,0,47,144,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,1,196,0,0,0,0,0,9,192,0,0,0,0,0,63,32,0,0,0,0,0,154,0,0,0,0,0,0, +228,0,0,0,0,0,1,241,0,0,0,0,0,2,240,0,0,0,0,0,2,241,0,0,0,0,0,0,227,0,0,0, +0,0,0,184,0,0,0,0,0,0,110,0,0,0,0,0,0,13,128,0,0,0,0,0,3,228,0,0,0,0,0,0, +48,0,0,0,0,0,0,0,76,16,0,0,0,0,0,12,144,0,0,0,0,0,2,243,0,0,0,0,0,0,169,0, +0,0,0,0,0,78,0,0,0,0,0,0,31,16,0,0,0,0,0,15,32,0,0,0,0,0,31,32,0,0,0,0, +0,62,0,0,0,0,0,0,139,0,0,0,0,0,1,230,0,0,0,0,0,8,208,0,0,0,0,0,78,48,0,0, +0,0,0,3,0,0,0,0,0,0,0,2,0,0,0,0,0,0,111,176,0,0,0,0,0,79,240,0,0,0,0,0, +5,192,0,0,0,0,0,94,64,0,0,0,0,0,132,0,0,0,0,0,0,0,0,0,0,0,0,0,190,32,0,0, +0,0,0,223,48,0,0,0,0,0,35,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,1,0,0,0,0,0,0,223,48,0,0,0,0,0,190,32,0,0,0,0,0,0,0,0,0,0, +0,0,29,176,0,0,0,0,0,47,208,0,0,0,0,0,3,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,29,192,0,0,0,0,0,30,243,0,0,0,0,0,1,242,0,0,0,0, +0,6,192,0,0,0,0,0,109,32,0,0,0,0,0,16,0,0,0,0,0,0,18,0,0,0,0,0,43,255,229,0, +0,0,0,122,33,191,16,0,0,0,0,0,111,48,0,0,0,0,1,205,0,0,0,0,0,27,210,0,0,0,0,0, +143,32,0,0,0,0,0,154,0,0,0,0,0,0,0,0,0,0,0,0,0,205,0,0,0,0,0,0,221,0,0,0, +0,0,0,0,0,0,0,0,0,0,39,150,16,0,0,0,5,254,223,210,0,1,145,63,161,2,222,80,60,225,6,0, +0,27,255,253,48,0,0,0,0,54,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0, +}; +static const lv_font_fmt_txt_glyph_dsc_t glyphs[]={ +{0}, +{.bitmap_index=0, .adv_w=48, .box_w=3, .box_h=0, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=0, .adv_w=64, .box_w=4, .box_h=10, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=20, .adv_w=112, .box_w=7, .box_h=11, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=59, .adv_w=144, .box_w=9, .box_h=10, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=104, .adv_w=128, .box_w=8, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=160, .adv_w=224, .box_w=14, .box_h=10, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=230, .adv_w=160, .box_w=11, .box_h=10, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=285, .adv_w=64, .box_w=4, .box_h=11, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=307, .adv_w=80, .box_w=5, .box_h=15, .ofs_x=0, .ofs_y=-3}, +{.bitmap_index=345, .adv_w=80, .box_w=5, .box_h=15, .ofs_x=0, .ofs_y=-3}, +{.bitmap_index=383, .adv_w=112, .box_w=7, .box_h=11, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=422, .adv_w=144, .box_w=9, .box_h=9, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=463, .adv_w=64, .box_w=4, .box_h=6, .ofs_x=0, .ofs_y=-3}, +{.bitmap_index=475, .adv_w=96, .box_w=6, .box_h=6, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=493, .adv_w=64, .box_w=4, .box_h=3, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=499, .adv_w=80, .box_w=6, .box_h=14, .ofs_x=0, .ofs_y=-3}, +{.bitmap_index=541, .adv_w=128, .box_w=8, .box_h=10, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=581, .adv_w=128, .box_w=8, .box_h=10, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=621, .adv_w=128, .box_w=8, .box_h=10, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=661, .adv_w=128, .box_w=8, .box_h=10, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=701, .adv_w=128, .box_w=8, .box_h=10, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=741, .adv_w=128, .box_w=8, .box_h=10, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=781, .adv_w=128, .box_w=8, .box_h=10, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=821, .adv_w=128, .box_w=8, .box_h=10, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=861, .adv_w=128, .box_w=8, .box_h=10, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=901, .adv_w=128, .box_w=8, .box_h=10, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=941, .adv_w=64, .box_w=4, .box_h=8, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=957, .adv_w=64, .box_w=4, .box_h=11, .ofs_x=0, .ofs_y=-3}, +{.bitmap_index=979, .adv_w=144, .box_w=9, .box_h=9, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=1020, .adv_w=144, .box_w=9, .box_h=8, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=1056, .adv_w=144, .box_w=9, .box_h=9, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=1097, .adv_w=112, .box_w=7, .box_h=10, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=1132, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-4}, +{.bitmap_index=1230, .adv_w=144, .box_w=9, .box_h=10, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=1275, .adv_w=144, .box_w=9, .box_h=10, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=1320, .adv_w=144, .box_w=9, .box_h=10, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=1365, .adv_w=144, .box_w=9, .box_h=10, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=1410, .adv_w=128, .box_w=8, .box_h=10, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=1450, .adv_w=128, .box_w=8, .box_h=10, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=1490, .adv_w=160, .box_w=10, .box_h=10, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=1540, .adv_w=160, .box_w=10, .box_h=10, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=1590, .adv_w=64, .box_w=4, .box_h=10, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=1610, .adv_w=128, .box_w=8, .box_h=10, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=1650, .adv_w=144, .box_w=9, .box_h=10, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=1695, .adv_w=112, .box_w=8, .box_h=10, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=1735, .adv_w=176, .box_w=11, .box_h=10, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=1790, .adv_w=160, .box_w=10, .box_h=10, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=1840, .adv_w=176, .box_w=11, .box_h=10, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=1895, .adv_w=144, .box_w=9, .box_h=10, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=1940, .adv_w=176, .box_w=11, .box_h=13, .ofs_x=0, .ofs_y=-3}, +{.bitmap_index=2012, .adv_w=144, .box_w=9, .box_h=10, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=2057, .adv_w=144, .box_w=9, .box_h=10, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=2102, .adv_w=160, .box_w=10, .box_h=10, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=2152, .adv_w=160, .box_w=10, .box_h=10, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=2202, .adv_w=128, .box_w=10, .box_h=10, .ofs_x=-1, .ofs_y=0}, +{.bitmap_index=2252, .adv_w=208, .box_w=13, .box_h=10, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=2317, .adv_w=128, .box_w=9, .box_h=10, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=2362, .adv_w=128, .box_w=9, .box_h=10, .ofs_x=-1, .ofs_y=0}, +{.bitmap_index=2407, .adv_w=144, .box_w=9, .box_h=10, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=2452, .adv_w=80, .box_w=5, .box_h=15, .ofs_x=0, .ofs_y=-4}, +{.bitmap_index=2490, .adv_w=80, .box_w=6, .box_h=14, .ofs_x=0, .ofs_y=-3}, +{.bitmap_index=2532, .adv_w=80, .box_w=5, .box_h=15, .ofs_x=0, .ofs_y=-4}, +{.bitmap_index=2570, .adv_w=128, .box_w=8, .box_h=10, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=2610, .adv_w=144, .box_w=9, .box_h=3, .ofs_x=0, .ofs_y=-3}, +{.bitmap_index=2624, .adv_w=144, .box_w=9, .box_h=13, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=2683, .adv_w=128, .box_w=8, .box_h=8, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=2715, .adv_w=144, .box_w=9, .box_h=11, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=2765, .adv_w=128, .box_w=8, .box_h=8, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=2797, .adv_w=144, .box_w=9, .box_h=11, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=2847, .adv_w=128, .box_w=8, .box_h=8, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=2879, .adv_w=64, .box_w=6, .box_h=11, .ofs_x=-1, .ofs_y=0}, +{.bitmap_index=2912, .adv_w=144, .box_w=9, .box_h=11, .ofs_x=0, .ofs_y=-3}, +{.bitmap_index=2962, .adv_w=144, .box_w=9, .box_h=11, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=3012, .adv_w=64, .box_w=4, .box_h=11, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=3034, .adv_w=64, .box_w=5, .box_h=14, .ofs_x=-1, .ofs_y=-3}, +{.bitmap_index=3069, .adv_w=128, .box_w=8, .box_h=11, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=3113, .adv_w=64, .box_w=4, .box_h=11, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=3135, .adv_w=192, .box_w=12, .box_h=8, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=3183, .adv_w=144, .box_w=9, .box_h=8, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=3219, .adv_w=144, .box_w=9, .box_h=8, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=3255, .adv_w=144, .box_w=9, .box_h=11, .ofs_x=0, .ofs_y=-3}, +{.bitmap_index=3305, .adv_w=144, .box_w=9, .box_h=11, .ofs_x=0, .ofs_y=-3}, +{.bitmap_index=3355, .adv_w=96, .box_w=6, .box_h=9, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=3382, .adv_w=112, .box_w=7, .box_h=8, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=3410, .adv_w=112, .box_w=7, .box_h=10, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=3445, .adv_w=144, .box_w=9, .box_h=8, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=3481, .adv_w=128, .box_w=8, .box_h=8, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=3513, .adv_w=192, .box_w=12, .box_h=8, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=3561, .adv_w=112, .box_w=8, .box_h=8, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=3593, .adv_w=128, .box_w=8, .box_h=11, .ofs_x=0, .ofs_y=-3}, +{.bitmap_index=3637, .adv_w=128, .box_w=8, .box_h=8, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=3669, .adv_w=96, .box_w=6, .box_h=15, .ofs_x=0, .ofs_y=-4}, +{.bitmap_index=3714, .adv_w=64, .box_w=4, .box_h=16, .ofs_x=0, .ofs_y=-4}, +{.bitmap_index=3746, .adv_w=80, .box_w=5, .box_h=15, .ofs_x=0, .ofs_y=-4}, +{.bitmap_index=3784, .adv_w=128, .box_w=8, .box_h=7, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=3812, .adv_w=208, .box_w=13, .box_h=7, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=3858, .adv_w=208, .box_w=13, .box_h=7, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=3904, .adv_w=224, .box_w=14, .box_h=5, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=3939, .adv_w=224, .box_w=14, .box_h=5, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=3974, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=4072, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=4170, .adv_w=224, .box_w=14, .box_h=7, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=4219, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=4310, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=4408, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=4506, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=4590, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=4681, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=4772, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=4856, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=4954, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=5038, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=5136, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=5220, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=5311, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=5402, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=5493, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=5584, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=5675, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=5773, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=5857, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=5948, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=6039, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=6144, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=6242, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=6333, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=6431, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=6522, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=6620, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=6718, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=6816, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=6914, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=7005, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=7110, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=7201, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=7292, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=7383, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=7481, .adv_w=224, .box_w=15, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=7579, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=7677, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=7775, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=7873, .adv_w=224, .box_w=14, .box_h=10, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=7943, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=8034, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=8125, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=8209, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=8293, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=8377, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=8468, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=8559, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=8664, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=8762, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=8867, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=8965, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=9070, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=9175, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=9280, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=9378, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=9469, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=9574, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=9665, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=9770, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=-1, .ofs_y=-2}, +{.bitmap_index=9875, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=9973, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=10071, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=10162, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=10253, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=10344, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=10449, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=-1, .ofs_y=-2}, +{.bitmap_index=10554, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=10652, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=10750, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=10848, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=10946, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=11037, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=11142, .adv_w=224, .box_w=15, .box_h=15, .ofs_x=-1, .ofs_y=-2}, +{.bitmap_index=11255, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=11360, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=11451, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=11542, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=11640, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=11738, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=11829, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=11920, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=12011, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=12109, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=12200, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=12298, .adv_w=224, .box_w=15, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=12396, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=12501, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=12592, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=12683, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=-1, .ofs_y=-1}, +{.bitmap_index=12788, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=12886, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=12984, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=13082, .adv_w=224, .box_w=15, .box_h=13, .ofs_x=-1, .ofs_y=-1}, +{.bitmap_index=13180, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=13285, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=13383, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=13474, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=13565, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=13656, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=13754, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=13852, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=13950, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=14048, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=14153, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=14251, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=14349, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=14454, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=14552, .adv_w=224, .box_w=15, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=14650, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=14741, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=14839, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=14944, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=15042, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=15140, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=15245, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=15350, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=15448, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=15546, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=15637, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=15728, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=15826, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=15924, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=16022, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=16120, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=16211, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=16316, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=16414, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=16512, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=16610, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=16701, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=16792, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=16890, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=16988, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=17079, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=17170, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=17261, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=17352, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=17443, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=17541, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=17632, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=17723, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=17821, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=17912, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=18003, .adv_w=224, .box_w=15, .box_h=15, .ofs_x=-1, .ofs_y=-2}, +{.bitmap_index=18116, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=18221, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=18312, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=18403, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=18494, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=18585, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=18676, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=18774, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=18865, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=18956, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=19054, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=19152, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=19257, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=19355, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=19453, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=19551, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=19649, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=19747, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=19838, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=19943, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=20034, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=20132, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=20237, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=20328, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=20426, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=20524, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=20615, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=20706, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=20804, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=20902, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=21000, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=21098, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=21196, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=21294, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=21392, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=21490, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=21588, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=21693, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=21791, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=21889, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=21980, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=22078, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=22176, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=22274, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=22372, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=22456, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=22540, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=22631, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=22729, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=22820, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=22918, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=23016, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=23107, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=23205, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=23303, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=23401, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=23492, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=23590, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=23681, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=23772, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=23863, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=23954, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=24052, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=24136, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=24227, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=24318, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=24409, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=24500, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=24584, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=24668, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=24766, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=24871, .adv_w=224, .box_w=15, .box_h=13, .ofs_x=-1, .ofs_y=-1}, +{.bitmap_index=24969, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=25053, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=25151, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=25242, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=25347, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=25452, .adv_w=224, .box_w=15, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=25550, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=25648, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=25746, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=25837, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=25935, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=26033, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=26124, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=26215, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=26306, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=26397, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=26488, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=26593, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=26677, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=26768, .adv_w=224, .box_w=15, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=26866, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=26964, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=27062, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=27160, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=27251, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=27335, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=27426, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=27531, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=27622, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=27720, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=27804, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=27902, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=27993, .adv_w=224, .box_w=15, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=28083, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=28181, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=28279, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=28377, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=28468, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=28552, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=28650, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=28734, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=28825, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=28909, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=29007, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=29105, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=29189, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=29280, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=29371, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=29462, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=29560, .adv_w=224, .box_w=15, .box_h=13, .ofs_x=-1, .ofs_y=-2}, +{.bitmap_index=29658, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=29742, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=29833, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=29924, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=30022, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=30113, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=30204, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=30302, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=30400, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=30498, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=30596, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=30687, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=30778, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=30876, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=30981, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=31079, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=31170, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=31268, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=31359, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=31457, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=31548, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=31646, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=31744, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=31835, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=31926, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=32017, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=32101, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=32199, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=32283, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=32381, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=32479, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=32563, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=32654, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=32759, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=32850, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=32948, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=33039, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=33130, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=33221, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=33319, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=33417, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=33508, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=33606, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=33704, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=33788, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=33886, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=33977, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=34068, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=34159, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=34243, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=34341, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=34432, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=34523, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=34621, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=34719, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=34803, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=34894, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=34999, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=35097, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=35188, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=35279, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=35377, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=35475, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=35573, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=35671, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=35769, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=35867, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=35972, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=36063, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=36161, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=36252, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=36336, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=36420, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=36504, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=36588, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=36672, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=36756, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=36840, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=36924, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=37015, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=37113, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=37204, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=37302, .adv_w=224, .box_w=15, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=37400, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=37505, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=37610, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=37701, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=37799, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=37890, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=37988, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=38079, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=38177, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=38275, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=38366, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=38464, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=38555, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=38646, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=38744, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=38849, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=38940, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=39038, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=39129, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=39227, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=39332, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=39423, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=39521, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=39619, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=39724, .adv_w=224, .box_w=15, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=39837, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=39935, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=40026, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=40124, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=40222, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=40320, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=40418, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=40516, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=40614, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=40705, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=40796, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=40901, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=40999, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=41097, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=41202, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=41307, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=41412, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=41517, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=41622, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=41713, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=41818, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=41923, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=42021, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=42126, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=42224, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=42329, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=42434, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=42532, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=42637, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=42742, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=42840, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=-1, .ofs_y=-1}, +{.bitmap_index=42945, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=43043, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=43141, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=43239, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=43337, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=43442, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=43533, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=43631, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=43729, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=43827, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=43925, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=44023, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=44114, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=44205, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=44296, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=44394, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=44485, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=44590, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=44695, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=44793, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=44898, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=44996, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=45087, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=45178, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=45283, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=45381, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=45472, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=45563, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=45654, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=45745, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=45843, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=45948, .adv_w=224, .box_w=15, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=46061, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=46159, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=46250, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=46341, .adv_w=224, .box_w=15, .box_h=13, .ofs_x=-1, .ofs_y=-2}, +{.bitmap_index=46439, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=46523, .adv_w=224, .box_w=15, .box_h=13, .ofs_x=-1, .ofs_y=-2}, +{.bitmap_index=46621, .adv_w=224, .box_w=15, .box_h=13, .ofs_x=-1, .ofs_y=-2}, +{.bitmap_index=46719, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=46810, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=46894, .adv_w=224, .box_w=15, .box_h=13, .ofs_x=-1, .ofs_y=-2}, +{.bitmap_index=46992, .adv_w=224, .box_w=15, .box_h=13, .ofs_x=-1, .ofs_y=-2}, +{.bitmap_index=47090, .adv_w=224, .box_w=15, .box_h=12, .ofs_x=-1, .ofs_y=-1}, +{.bitmap_index=47180, .adv_w=224, .box_w=15, .box_h=13, .ofs_x=-1, .ofs_y=-2}, +{.bitmap_index=47278, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=47369, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=47460, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=47558, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=47649, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=47747, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=47845, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=47950, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=48034, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=48125, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=48216, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=48300, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=48384, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=48468, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=48559, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=48650, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=48748, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=48846, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=48937, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=49028, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=49119, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=49210, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=49301, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=49392, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=49483, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=49567, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=49651, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=49749, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=49847, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=49945, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=50043, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=50141, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=50239, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=50337, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=50428, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=50526, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=50624, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=50715, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=50813, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=50911, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=51009, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=51100, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=51191, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=51275, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=51373, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=51471, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=51562, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=51660, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=51758, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=51849, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=51947, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=52045, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=52143, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=52234, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=52332, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=52437, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=-1, .ofs_y=-2}, +{.bitmap_index=52542, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=52647, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=52745, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=52843, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=52934, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=53025, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=53116, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=53207, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=53305, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=53403, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=53508, .adv_w=224, .box_w=15, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=53606, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=53697, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=53788, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=53879, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=53970, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=54054, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=54152, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=54243, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=54334, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=54425, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=54530, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=54628, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=54733, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=54817, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=54915, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=55006, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=55111, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=55202, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=55293, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=55391, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=55475, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=55573, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=55678, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=55769, .adv_w=224, .box_w=15, .box_h=13, .ofs_x=-1, .ofs_y=-1}, +{.bitmap_index=55867, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=55972, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=56070, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=56175, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=56280, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=56385, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=56483, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=56581, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=56686, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=56784, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=56882, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=56980, .adv_w=224, .box_w=15, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=57078, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=57169, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=57274, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=57365, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=57470, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=57568, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=57666, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=57764, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=57855, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=57953, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=58044, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=58142, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=58240, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=58345, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=58436, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=58534, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=58632, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=58723, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=58821, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=58919, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=59017, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=59122, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=59227, .adv_w=224, .box_w=15, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=59340, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=59445, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=59536, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=59641, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=59739, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=59844, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=59935, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=60033, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=60138, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=60236, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=60334, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=60432, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=60530, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=60635, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=60733, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=60831, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=60929, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=61027, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=61125, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=61223, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=61321, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=61419, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=61524, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=61629, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=61720, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=61818, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=61923, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=62021, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=62126, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=62231, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=62329, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=62420, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=62525, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=62623, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=62728, .adv_w=224, .box_w=15, .box_h=13, .ofs_x=-1, .ofs_y=-1}, +{.bitmap_index=62826, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=62931, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=63029, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=63127, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=63232, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=63330, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=63435, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=63540, .adv_w=224, .box_w=15, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=63638, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=63743, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=63834, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=63939, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=64037, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=64128, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=64233, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=64338, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=64436, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=64541, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=64632, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=64737, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=64835, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=-1, .ofs_y=-2}, +{.bitmap_index=64940, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=65038, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=65136, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=65227, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=65318, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=65402, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=65500, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=65591, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=65682, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=65773, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=65857, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=65962, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=66053, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=66144, .adv_w=224, .box_w=15, .box_h=12, .ofs_x=-1, .ofs_y=-1}, +{.bitmap_index=66234, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=66325, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=66423, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=66514, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=66619, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=66717, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=66815, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=66913, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=67004, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=67095, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=67200, .adv_w=224, .box_w=15, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=67290, .adv_w=224, .box_w=15, .box_h=13, .ofs_x=-1, .ofs_y=-2}, +{.bitmap_index=67388, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=67479, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=67570, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=67661, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=67759, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=67857, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=67955, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=68046, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=68137, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=68228, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=68319, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=68403, .adv_w=224, .box_w=15, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=68501, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=68599, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=68697, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=68788, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=68879, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=68984, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=69075, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=69180, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=69285, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=69376, .adv_w=224, .box_w=15, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=69489, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=69594, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=69678, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=69776, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=69867, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=69972, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=70077, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=70168, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=70259, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=70357, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=70462, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=70560, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=70665, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=70763, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=70861, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=70959, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=71057, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=71148, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=71239, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=71337, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=71435, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=71533, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=71638, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=71736, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=71827, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=71925, .adv_w=224, .box_w=15, .box_h=13, .ofs_x=-1, .ofs_y=-1}, +{.bitmap_index=72023, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=72121, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=72219, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=72324, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=72429, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=72527, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=72632, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=72737, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=72842, .adv_w=224, .box_w=16, .box_h=14, .ofs_x=-1, .ofs_y=-2}, +{.bitmap_index=72954, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=73045, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=73129, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=73234, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=73332, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=73423, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=73521, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=73605, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=73696, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=73794, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=73892, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=73990, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=74088, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=74179, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=74270, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=74361, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=74466, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=74557, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=74655, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=74746, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=74837, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=74928, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=75026, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=75124, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=75215, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=75313, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=75411, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=75502, .adv_w=224, .box_w=15, .box_h=13, .ofs_x=-1, .ofs_y=-1}, +{.bitmap_index=75600, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=75698, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=75803, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=75901, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=75992, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=76083, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=76174, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=76272, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=76363, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=76468, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=76566, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=76657, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=76755, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=76853, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=76958, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=77056, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=77147, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=77245, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=77343, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=77441, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=77532, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=77630, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=77735, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=77826, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=-1, .ofs_y=-2}, +{.bitmap_index=77931, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=78022, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=78113, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=78204, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=78309, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=78407, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=78505, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=78596, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=78694, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=78792, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=78883, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=78981, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=79079, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=79184, .adv_w=224, .box_w=15, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=79282, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=79380, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=79471, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=79562, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=79660, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=79765, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=79856, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=79961, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=80066, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=80164, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=80262, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=80353, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=80458, .adv_w=224, .box_w=15, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=80571, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=80676, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=80781, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=80879, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=80984, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=81082, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=81173, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=81264, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=81355, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=-1, .ofs_y=-2}, +{.bitmap_index=81460, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=81558, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=81656, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=81761, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=81859, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=81943, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=82034, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=82132, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=82230, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=82328, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=82426, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=82531, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=82636, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=82727, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=82832, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=82937, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=83028, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=83126, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=-1, .ofs_y=-2}, +{.bitmap_index=83231, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=83322, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=83420, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=83518, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=83616, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=83700, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=83791, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=83889, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=83980, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=84064, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=84155, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=84246, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=84337, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=84421, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=84519, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=84617, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=84708, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=84799, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=84890, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=84981, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=85072, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=85170, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=85261, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=85352, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=85436, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=85527, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=85625, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=85723, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=85821, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=85919, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=86010, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=86108, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=86213, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=86311, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=86409, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=86493, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=86591, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=86696, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=86787, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=86878, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=86976, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=87060, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=87158, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=87256, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=87361, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=87459, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=87550, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=87648, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=87739, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=87837, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=87928, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=88026, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=88124, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=88215, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=88306, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=88397, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=88495, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=88593, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=88698, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=88796, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=88887, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=88985, .adv_w=224, .box_w=15, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=89083, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=89167, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=89265, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=89356, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=89447, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=89545, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=89650, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=89741, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=89846, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=89944, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=90042, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=90147, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=90238, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=90336, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=90427, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=90518, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=90609, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=90700, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=90798, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=90889, .adv_w=224, .box_w=15, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=90987, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=91092, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=91190, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=91281, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=91379, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=91477, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=91568, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=91673, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=91778, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=91876, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=91974, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=92072, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=92170, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=92261, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=92366, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=92471, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=92576, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=92674, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=92779, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=92884, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=92989, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=93080, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=93178, .adv_w=224, .box_w=15, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=93276, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=93381, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=93486, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=93591, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=93696, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=93794, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=93892, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=93990, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=94081, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=94179, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=94277, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=94382, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=94480, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=94571, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=94669, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=94760, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=94858, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=94956, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=95047, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=95145, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=95243, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=95341, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=95439, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=95530, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=95635, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=95733, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=95831, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=95922, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=96013, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=96104, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=96202, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=96300, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=96391, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=96496, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=96587, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=96685, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=96776, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=96860, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=96951, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=97042, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=97133, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=97224, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=97315, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=97406, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=97504, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=97602, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=97686, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=97777, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=97875, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=97973, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=98057, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=98155, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=98253, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=98351, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=98442, .adv_w=224, .box_w=15, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=98540, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=98638, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=98729, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=98827, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=98918, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=99009, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=99107, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=99205, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=99303, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=99401, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=-1, .ofs_y=-2}, +{.bitmap_index=99506, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=99611, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=99709, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=99807, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=-1, .ofs_y=-2}, +{.bitmap_index=99912, .adv_w=224, .box_w=15, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=100010, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=100115, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=100213, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=100311, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=100409, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=100500, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=100598, .adv_w=224, .box_w=14, .box_h=11, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=100675, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=100766, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=100864, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=100955, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=101046, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=101137, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=101228, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=101326, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=101424, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=101522, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=101620, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=101718, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=101809, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=101900, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=101998, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=102096, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=102194, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=102292, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=102390, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=102488, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=102579, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=102677, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=102768, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=102859, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=102950, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=103041, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=103146, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=103244, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=103335, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=103433, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=103531, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=103622, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=103713, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=103804, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=103902, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=103993, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=104098, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=104203, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=104301, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=104399, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=104497, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=104595, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=104686, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=104784, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=104882, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=104973, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=105071, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=105169, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=105260, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=105351, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=105442, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=105547, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=105652, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=105750, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=105848, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=105946, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=106037, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=106135, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=106233, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=106324, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=106422, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=106520, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=106611, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=106709, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=106807, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=106898, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=106989, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=107080, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=107171, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=107269, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=107360, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=107451, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=107549, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=107647, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=107752, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=107857, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=107962, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=108060, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=108151, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=108249, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=108340, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=108431, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=108529, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=108620, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=108711, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=108809, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=108907, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=109012, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=109117, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=109201, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=109299, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=109404, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=109495, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=109586, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=109677, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=109775, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=109873, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=-1, .ofs_y=-2}, +{.bitmap_index=109978, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=110069, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=110160, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=110258, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=110363, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=110461, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=110552, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=110650, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=110755, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=110853, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=110944, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=111042, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=111140, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=111238, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=111336, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=111434, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=111532, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=111630, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=111728, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=111826, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=111917, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=112008, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=112092, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=112197, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=112295, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=112393, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=112484, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=112582, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=112673, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=112771, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=112869, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=112960, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=113051, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=113149, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=113254, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=113345, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=113443, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=113534, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=113625, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=113730, .adv_w=224, .box_w=15, .box_h=15, .ofs_x=-1, .ofs_y=-2}, +{.bitmap_index=113843, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=113941, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=114039, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=114137, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=114235, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=114340, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=114438, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=114536, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=-1, .ofs_y=-2}, +{.bitmap_index=114641, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=114746, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=114844, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=114949, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=-1, .ofs_y=-2}, +{.bitmap_index=115054, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=115152, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=-1, .ofs_y=-2}, +{.bitmap_index=115257, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=115362, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=115460, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=115565, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=-1, .ofs_y=-2}, +{.bitmap_index=115670, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=115768, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=115866, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=115964, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=116062, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=116160, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=116251, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=116356, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=116454, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=116552, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=116650, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=116741, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=116832, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=116930, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=117028, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=117126, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=117224, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=117315, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=117406, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=117497, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=117581, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=117672, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=117770, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=117854, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=117945, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=118036, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=118134, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=118225, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=118316, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=118414, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=118512, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=118603, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=118701, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=118799, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=118897, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=118995, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=119093, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=119191, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=119289, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=119387, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=119485, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=119583, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=119674, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=119765, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=119863, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=119961, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=120059, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=120157, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=120255, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=120353, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=120444, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=120535, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=120633, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=120724, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=120829, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=120927, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=121018, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=121116, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=121207, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=121298, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=121389, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=121480, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=121564, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=121655, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=121746, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=121837, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=121928, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=122019, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=122110, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=122208, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=122299, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=122383, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=122481, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=122586, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=122677, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=122768, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=122852, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=122943, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=123034, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=-1, .ofs_y=-2}, +{.bitmap_index=123139, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=123230, .adv_w=224, .box_w=15, .box_h=13, .ofs_x=-1, .ofs_y=-2}, +{.bitmap_index=123328, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=123426, .adv_w=224, .box_w=15, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=123524, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=-1, .ofs_y=-2}, +{.bitmap_index=123629, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=-1, .ofs_y=-1}, +{.bitmap_index=123734, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=123832, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=123923, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=124028, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=124126, .adv_w=224, .box_w=15, .box_h=14, .ofs_x=-1, .ofs_y=-2}, +{.bitmap_index=124231, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=124329, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=124427, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=124511, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=124609, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=124714, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=124819, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=124917, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=125015, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=125113, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=125204, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=125295, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=125393, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=125491, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=125596, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=125701, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=125792, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=125890, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=125988, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=126079, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=126177, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=126275, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=126366, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=126464, .adv_w=224, .box_w=14, .box_h=14, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=126562, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=126667, .adv_w=224, .box_w=14, .box_h=11, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=126744, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=126849, .adv_w=224, .box_w=14, .box_h=15, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=126954, .adv_w=224, .box_w=14, .box_h=6, .ofs_x=0, .ofs_y=-2}, +{.bitmap_index=126996, .adv_w=224, .box_w=14, .box_h=10, .ofs_x=0, .ofs_y=0}, +{.bitmap_index=127066, .adv_w=224, .box_w=14, .box_h=13, .ofs_x=0, .ofs_y=-3}, +{.bitmap_index=127157, .adv_w=224, .box_w=14, .box_h=12, .ofs_x=0, .ofs_y=-1}, +{.bitmap_index=127241, .adv_w=224, .box_w=14, .box_h=8, .ofs_x=0, .ofs_y=0} +}; +static const uint16_t unicode[]={0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,151,8194,12257,12258,12266,12267,19936,19939,19943,19944,19945,19946,19947,19949,19950,19953,19955,19956,19958,19960,19962,19964,19965,19970,19972,19978,19981,19988,19994,19995,20005,20008,20009,20011,20012,20015,20016,20029,20031,20032,20038,20048,20049,20062,20070,20075,20076,20078,20081,20082,20084,20090,20091,20097,20100,20103,20104,20105,20107,20108,20110,20114,20122,20128,20129,20133,20138,20141,20142,20147,20148,20150,20163,20164,20165,20172,20182,20183,20187,20189,20202,20209,20218,20222,20224,20228,20252,20262,20269,20270,20275,20277,20281,20283,20284,20288,20319,20331,20349,20383,20413,20417,20425,20430,20466,20473,20508,20519,20538,20540,20549,20566,20616,20635,20655,20767,20772,20773,20776,20777,20779,20781,20788,20794,20805,20808,20811,20812,20813,20814,20816,20817,20819,20820,20821,20822,20823,20824,20827,20828,20837,20844,20845,20850,20857,20860,20880,20882,20883,20885,20902,20911,20941,20954,20955,20957,20960,20963,20966,20967,20978,20984,20986,20987,20989,20992,20996,21001,21003,21008,21014,21015,21018,21019,21025,21037,21041,21061,21065,21096,21115,21118,21119,21120,21121,21128,21129,21151,21170,21173,21215,21221,21222,21238,21239,21241,21274,21275,21283,21287,21290,21294,21295,21301,21302,21303,21306,21308,21312,21313,21314,21318,21328,21329,21331,21353,21355,21356,21375,21382,21384,21403,21410,21416,21418,21419,21420,21421,21425,21430,21431,21432,21443,21444,21445,21446,21450,21451,21454,21455,21456,21463,21464,21469,21475,21476,21480,21481,21484,21485,21486,21488,21489,21491,21495,21502,21511,21515,21516,21519,21524,21528,21532,21536,21539,21542,21546,21552,21557,21560,21564,21570,21574,21576,21589,21594,21596,21597,21606,21612,21621,21626,21638,21639,21641,21642,21647,21651,21659,21661,21668,21671,21672,21677,21678,21682,21695,21701,21702,21705,21706,21709,21710,21724,21725,21743,21744,21748,21764,21775,21777,21802,21829,21830,21831,21845,21854,21858,21859,21866,21876,21884,21885,21909,21911,21917,21960,21964,21967,21971,21975,21993,21998,22008,22011,22015,22043,22047,22071,22076,22082,22088,22186,22203,22206,22208,22210,22228,22234,22237,22246,22248,22275,22280,22288,22291,22304,22311,22318,22319,22327,22330,22337,22340,22359,22371,22379,22446,22490,22580,22590,22603,22649,22654,22736,22756,22759,22765,22773,22774,22778,22783,22791,22793,22794,22801,22804,22810,22823,22824,22827,22830,22831,22839,22867,22870,22877,22882,22888,22902,22905,22930,22955,22961,22963,22964,22981,23009,23011,23015,23032,23078,23212,23344,23351,23352,23366,23393,23395,23400,23401,23404,23413,23418,23420,23421,23422,23426,23427,23443,23446,23449,23460,23462,23513,23521,23526,23535,23537,23540,23542,23546,23549,23564,23569,23572,23580,23581,23583,23584,23585,23586,23589,23592,23599,23605,23614,23621,23633,23675,23689,23745,23817,23997,23998,24005,24006,24014,24017,24018,24020,24030,24034,24035,24037,24040,24044,24061,24070,24078,24088,24117,24146,24147,24148,24150,24159,24164,24166,24175,24179,24180,24181,24183,24198,24199,24215,24282,24288,24290,24292,24303,24309,24319,24320,24346,24371,24373,24393,24401,24412,24421,24424,24432,24439,24462,24471,24483,24485,24503,24504,24505,24523,24533,24544,24545,24546,24558,24565,24573,24581,24583,24586,24603,24642,24655,24656,24662,24668,24741,24746,24768,24787,24815,24826,24831,24898,24994,25071,25072,25073,25078,25080,25111,25119,25120,25131,25133,25139,25140,25144,25155,25159,25163,25166,25167,25182,25184,25194,25205,25206,25220,25221,25233,25245,25257,25268,25275,25276,25289,25309,25311,25313,25319,25321,25329,25345,25349,25352,25391,25407,25410,25422,25431,25452,25455,25462,25477,25479,25480,25495,25517,25519,25520,25556,25596,25598,25639,25642,25673,25688,25714,25732,25741,25773,25798,25871,25878,25881,25886,25893,25896,25905,25922,25923,25932,25936,25938,25940,25943,25959,25975,25977,25988,25997,25999,26000,26009,26021,26031,26048,26050,26053,26055,26057,26070,26086,26092,26094,26111,26117,26120,26127,26142,26184,26190,26191,26202,26210,26231,26322,26324,26332,26335,26336,26344,26345,26347,26349,26359,26365,26367,26376,26378,26380,26383,26389,26394,26400,26417,26431,26432,26433,26437,26445,26447,26462,26463,26465,26492,26506,26518,26554,26560,26565,26577,26599,26625,26647,26648,26652,26659,26664,26672,26673,26691,26725,26758,26784,26802,26810,26972,27137,27193,27276,27393,27394,27399,27416,27418,27422,27433,27436,27458,27459,27460,27461,27462,27463,27466,27483,27541,27567,27572,27577,27579,27633,27636,27662,27668,27672,27682,27689,27701,27711,27728,27741,27752,27753,27769,27777,27783,27817,27829,27841,27842,27843,27848,27869,27895,27899,27909,27922,27937,27947,27950,27951,27977,27978,27991,28008,28040,28088,28113,28119,28123,28133,28169,28184,28272,28284,28298,28331,28346,28353,28360,28386,28404,28427,28435,28747,28749,28751,28752,28757,28811,28824,28825,28863,28870,28871,28877,28944,28950,28990,29055,29196,29201,29207,29208,29209,29211,29223,29224,29228,29241,29243,29255,29257,29273,29290,29327,29334,29346,29367,29377,29388,29404,29422,29450,29451,29460,29470,29545,29547,29563,29577,29583,29584,29632,29667,29670,29758,29884,29894,29944,29946,29951,29960,29969,29973,29975,29979,29996,30009,30021,30095,30108,30117,30142,30218,30283,30301,30302,30308,30350,30390,30391,30392,30414,30420,30424,30430,30433,30443,30463,30464,30472,30492,30496,30497,30523,30529,30572,30574,30599,30661,30669,30675,30689,30701,30796,30798,30864,31002,31004,31037,31038,31045,31073,31087,31131,31137,31149,31153,31154,31172,31184,31195,31211,31213,31260,31316,31322,31329,31331,31403,31417,31423,31439,31473,31476,31494,31496,31500,31529,31540,31542,31584,31607,31617,31827,31835,31857,31886,31902,31926,31963,32002,32007,32011,32386,32391,32399,32403,32408,32415,32419,32420,32424,32429,32431,32433,32435,32441,32444,32445,32447,32455,32458,32459,32461,32468,32469,32476,32479,32499,32502,32521,32538,32561,32590,32618,32622,32638,32731,32737,32739,32741,32748,32790,32806,32810,32812,32820,32867,32890,32897,32901,32911,32914,32922,32934,32940,32984,32989,33009,33014,33018,33048,33054,33066,33076,33104,33148,33226,33236,33260,33266,33362,33369,33370,33374,33378,33394,33425,33453,33455,33477,33478,33489,33507,33548,33577,33646,33662,33675,33682,33687,33703,33724,33772,33800,33821,33873,33890,33913,33944,33981,34049,34089,34267,34393,34412,34475,34491,34510,34552,34646,34714,34860,34861,34885,34888,34923,34955,34977,34981,35167,35169,35233,35238,35240,35241,35250,35267,35713,35716,35720,35721,35726,35727,35728,35730,35738,35742,35745,35748,35750,35757,35761,35765,35767,35773,35777,35778,35781,35789,35791,35796,35798,35799,35802,35803,35809,35811,35822,35842,35873,35878,35905,35914,36093,36095,36098,36100,36101,36104,36117,36121,36122,36124,36132,36139,36140,36150,36155,36158,36162,36176,36180,36182,36183,36197,36202,36203,36227,36243,36273,36287,36298,36303,36307,36314,36491,36506,36678,36684,36686,36699,36701,36707,36710,36712,36723,36734,36739,36761,36765,36766,36775,36782,36784,36785,36788,36792,36793,36795,36796,36798,36810,36823,36825,36829,36832,36833,36838,36841,36848,36858,36864,36892,36915,36959,36995,37013,37041,37064,37085,37165,37207,37208,37234,37287,37290,37292,37293,37294,37295,37297,38015,38021,38033,38046,38049,38102,38106,38113,38117,38137,38145,38158,38239,38344,38346,38349,38350,38356,38360,38363,38373,38399,38418,38419,38420,38421,38427,38431,38432,38436,38468,38473,38511,38558,38565,38566,38600,38602,38614,38615,38624,38630,38706,38713,38718,38720,38722,38763,38867,38997,38998,39001,39002,39003,39025,39031,39032,39037,39086,39103,39245,39263,39286,39289,39500,39532,39537,39546,39560,39608,39708,39714,39732,40028,40033,40119,40447,40449,40461,40485,40575,40582,40612,40622,40625,40632,40691,40704,40731,40752,40825,65249,65256,65257,65260,65274,65275,65279,65342}; +static const lv_font_fmt_txt_cmap_t maps[]={{.range_start=32,.range_length=65343,.glyph_id_start=1,.unicode_list=unicode,.list_length=1384,.type=LV_FONT_FMT_TXT_CMAP_SPARSE_TINY}}; +const lv_font_fmt_txt_dsc_t font_ui_14_descriptor={.glyph_bitmap=bitmap,.glyph_dsc=glyphs,.cmaps=maps,.cmap_num=1,.bpp=4,.bitmap_format=0}; diff --git a/main/font_voice_14.c b/main/font_voice_14.c new file mode 100644 index 0000000..dbc5927 --- /dev/null +++ b/main/font_voice_14.c @@ -0,0 +1,4 @@ +/* Shared Noto Sans SC 14px glyphs; see assets/fonts/OFL.txt. */ +#include "lvgl.h" +extern const lv_font_fmt_txt_dsc_t font_ui_14_descriptor; +const lv_font_t font_voice_14={.get_glyph_dsc=lv_font_get_glyph_dsc_fmt_txt,.get_glyph_bitmap=lv_font_get_bitmap_fmt_txt,.line_height=18,.base_line=4,.dsc=&font_ui_14_descriptor}; diff --git a/main/font_xiaozhi_14.c b/main/font_xiaozhi_14.c new file mode 100644 index 0000000..2429134 --- /dev/null +++ b/main/font_xiaozhi_14.c @@ -0,0 +1,13713 @@ +/* Noto Sans SC, SIL OFL 1.1; see assets/fonts/OFL.txt. Generated captions. */ +#include "lvgl.h" +static const uint8_t bitmap[]={ +33,8,66,16,132,3,24,0,108,217,179,96,0,0,0,0,0,0,0,22,36,126,126,36,36,126,36,44,104,8,24,60, +100,96,96,56,12,6,6,102,124,24,0,0,3,196,18,33,146,4,144,37,57,202,64,147,4,152,68,130,28,0,0,8, +15,2,96,144,60,14,39,137,54,199,25,231,216,0,102,102,0,0,0,0,0,140,66,49,140,99,8,67,8,64,2,24, +66,24,198,49,136,70,33,0,0,33,241,195,129,0,0,0,0,0,0,24,24,24,126,24,24,24,0,0,6,98,100,115, +128,0,0,6,96,0,32,132,16,67,8,32,132,16,67,0,0,0,60,102,102,66,66,66,66,102,102,60,0,0,56,56, +24,24,24,24,24,24,24,126,16,124,70,6,6,4,12,24,48,112,126,16,124,70,6,4,60,14,6,6,70,124,0,0, +12,28,20,52,100,68,255,14,4,4,0,126,96,96,120,126,6,6,6,70,124,0,8,62,96,96,64,126,102,66,98,102, +60,0,0,126,6,4,12,8,24,24,24,24,16,0,60,102,102,102,60,110,70,66,102,60,0,16,124,102,70,66,102,62, +6,6,76,120,0,6,32,0,102,0,6,32,0,102,38,64,0,6,60,96,112,30,3,0,0,126,126,0,0,255,0,0, +0,0,96,60,6,14,120,192,0,0,56,248,48,96,195,4,8,0,96,192,0,0,0,63,129,131,12,4,99,153,30,36, +200,146,38,73,145,59,134,0,12,0,31,128,24,0,0,14,7,6,131,97,49,152,254,99,97,176,96,0,63,24,204,102, +51,241,140,195,97,177,159,128,4,15,140,76,6,3,1,128,192,96,25,135,192,0,0,31,134,49,134,97,152,102,25,134, +99,153,199,224,0,127,96,96,96,126,96,96,96,96,127,0,127,96,96,96,126,126,96,96,96,96,4,7,195,17,128,96, +24,198,121,134,97,142,97,240,0,0,24,102,25,134,97,159,230,25,134,97,152,102,24,6,102,102,102,102,96,0,4,4, +4,4,4,4,4,4,108,120,0,0,24,198,97,152,108,31,7,97,152,99,24,70,24,0,96,96,96,96,96,96,96,96, +96,126,0,7,12,112,199,28,121,198,148,107,70,228,102,70,100,96,64,0,28,103,25,230,105,155,102,89,158,99,152,230, +24,4,7,224,198,48,70,12,193,152,51,6,97,134,112,124,0,0,0,63,24,204,38,19,25,248,192,96,48,24,0,4, +7,224,198,48,70,12,193,152,51,6,97,134,112,124,3,0,124,3,128,0,63,152,204,38,19,249,248,204,98,49,152,96, +8,31,24,140,7,1,224,56,6,3,51,143,128,0,0,127,134,3,1,128,192,96,48,24,12,6,0,0,24,102,25,134, +97,152,102,25,134,97,140,193,240,0,0,24,102,24,198,49,12,193,48,104,30,3,128,192,0,6,49,145,204,206,102,82, +54,145,182,133,60,57,225,199,14,48,0,49,153,134,131,192,192,112,120,38,51,48,192,0,48,140,198,65,96,240,48,24, +12,6,3,0,0,63,129,128,192,192,64,96,96,32,48,31,192,3,152,198,49,140,99,24,198,56,0,3,4,16,96,130, +8,48,65,4,8,32,128,3,140,99,24,198,49,140,99,56,0,24,24,60,36,36,102,66,0,0,0,0,0,255,0,0, +24,6,1,0,0,0,0,0,0,0,0,0,0,0,60,126,6,30,118,70,102,126,0,0,48,24,12,6,227,249,140,198, +99,49,157,207,192,0,28,121,130,4,12,28,30,0,0,1,128,192,97,179,249,140,198,67,49,153,199,224,0,28,62,98, +126,126,96,96,62,0,0,226,24,121,198,24,97,134,24,63,110,102,102,60,120,96,126,67,67,126,0,0,48,24,12,6, +227,241,140,198,99,49,152,204,96,6,96,102,102,102,102,1,140,3,24,198,49,140,99,27,128,0,96,96,96,98,102,108, +120,124,100,102,99,6,102,102,102,102,99,0,76,227,255,152,204,198,102,51,49,153,140,204,102,78,63,24,204,102,51,25, +140,198,28,63,24,204,100,51,25,152,120,0,0,78,63,152,204,102,51,25,220,252,96,48,24,0,0,27,63,152,204,100, +51,25,156,126,3,1,128,192,0,77,230,24,97,134,24,56,217,131,129,193,147,60,0,32,135,158,97,134,24,48,224,0, +98,49,152,204,102,51,25,156,118,0,0,194,70,102,100,44,60,56,24,70,36,102,110,102,164,107,67,156,57,195,152,70, +100,44,56,56,44,108,198,194,70,102,100,44,60,24,24,24,48,96,0,124,248,32,195,4,24,127,1,136,66,16,140,97, +8,66,24,0,70,102,102,102,102,102,102,102,3,8,66,16,134,49,8,66,48,0,0,122,14,0,0,0,0,35,0,2, +16,132,33,8,0,8,28,62,104,104,104,104,62,30,8,8,0,30,50,32,32,124,124,48,48,112,126,66,126,102,66,102, +102,126,0,0,0,66,102,36,60,60,126,24,126,24,24,70,102,102,96,6,102,102,102,7,128,48,0,192,3,128,15,192, +35,0,196,1,240,1,192,3,0,12,3,224,38,19,0,0,0,0,0,0,0,0,0,0,0,0,1,248,32,68,246,88, +37,2,80,37,130,79,66,12,31,128,0,1,225,158,89,224,0,0,0,0,36,89,98,198,132,128,0,126,3,3,3,0, +0,0,209,213,75,8,142,0,0,0,0,0,28,30,0,0,0,0,0,0,0,0,0,0,0,50,210,224,0,0,0,0, +0,0,12,0,48,0,192,63,240,255,192,48,0,192,3,0,0,0,0,15,252,1,225,134,17,135,128,0,0,0,0,1, +224,140,25,39,0,0,0,0,0,0,3,3,1,0,0,0,0,0,0,0,0,0,0,0,98,49,152,204,102,35,17,156, +247,96,48,24,0,3,192,63,0,244,7,208,31,64,61,0,116,0,208,3,64,13,0,52,0,16,3,0,30,0,48,0, +0,0,0,0,0,0,0,0,4,2,1,129,0,1,193,4,16,65,0,0,0,0,0,1,228,178,73,192,0,0,0,0, +72,216,209,162,201,0,0,0,3,132,12,96,98,3,32,25,48,145,128,148,9,176,71,132,8,0,0,0,131,132,12,64, +98,3,32,25,120,144,65,134,8,32,194,4,60,0,0,32,67,198,6,32,99,1,144,37,49,201,128,148,4,176,71,130, +8,0,0,16,48,0,1,6,8,48,64,216,224,0,0,24,2,0,1,192,224,208,108,38,51,31,204,108,54,12,4,6, +2,0,1,192,224,208,108,38,51,31,204,108,54,12,0,14,9,128,1,192,224,208,108,38,51,31,204,108,54,12,0,29, +11,128,1,192,224,208,108,38,51,31,204,108,54,12,38,19,0,3,129,193,160,216,76,102,63,152,216,108,24,24,10,7, +0,1,192,224,208,108,38,51,31,204,108,54,12,0,0,63,131,192,30,1,176,13,248,204,7,224,99,3,24,48,252,4, +15,140,76,6,3,1,128,192,96,25,135,192,128,96,48,32,16,24,8,0,127,96,96,96,126,96,96,96,96,127,0,14, +8,0,127,96,96,96,126,96,96,96,96,127,0,28,50,0,127,96,96,96,126,96,96,96,96,127,50,50,0,127,96,96, +96,126,96,96,96,96,127,3,12,3,24,198,49,140,99,24,17,152,6,49,140,99,24,198,48,0,228,128,48,195,12,48, +195,12,48,192,77,32,12,48,195,12,48,195,12,48,0,15,130,48,134,33,159,34,8,134,33,141,195,224,0,7,65,112, +0,113,156,103,153,166,109,153,102,121,142,99,152,96,0,3,0,16,2,3,240,99,24,35,6,96,204,25,131,48,195,56, +62,0,0,2,0,192,16,2,3,240,99,24,35,6,96,204,25,131,48,195,56,62,0,0,0,1,192,76,2,3,240,99, +24,35,6,96,204,25,131,48,195,56,62,0,0,0,3,160,92,2,3,240,99,24,35,6,96,204,25,131,48,195,56,62, +0,0,19,2,96,16,31,131,24,193,24,51,6,96,204,25,134,25,193,240,0,0,16,32,97,128,204,1,224,3,0,30, +0,204,6,24,16,32,0,0,4,71,240,198,49,198,44,201,155,51,198,113,134,113,252,0,0,16,6,0,192,0,97,152, +102,25,134,97,152,102,25,134,51,7,192,0,2,1,128,192,0,97,152,102,25,134,97,152,102,25,134,51,7,192,0,0, +3,129,32,0,97,152,102,25,134,97,152,102,25,134,51,7,192,0,18,4,128,1,134,97,152,102,25,134,97,152,102,24, +204,31,0,0,2,3,3,0,6,17,152,200,44,30,6,3,1,128,192,96,0,48,31,15,230,19,13,132,254,126,48,24, +0,0,31,25,140,70,99,33,176,204,99,176,216,109,224,0,0,48,24,8,0,60,126,6,30,118,70,102,126,0,0,6, +12,8,0,60,126,6,30,118,70,102,126,0,24,60,38,0,60,126,6,30,118,70,102,126,0,0,58,44,0,60,126,6, +30,118,70,102,126,0,38,36,0,60,126,6,30,118,70,102,126,0,28,52,28,0,60,126,6,30,118,70,102,126,0,57, +199,246,6,49,255,119,230,96,103,39,158,0,0,28,121,130,4,12,28,30,24,48,32,128,0,48,24,8,0,28,62,98, +126,126,96,96,62,0,0,4,12,8,0,28,62,98,126,126,96,96,62,0,24,60,38,0,28,62,98,126,126,96,96,62, +0,36,36,0,28,62,98,126,126,96,96,62,0,3,24,32,24,198,49,140,99,0,1,140,192,49,140,99,24,198,0,49, +228,128,48,195,12,48,195,12,73,32,12,48,195,12,48,195,0,0,29,7,7,128,97,241,156,198,67,49,153,135,128,0, +0,29,9,128,4,227,241,140,198,99,49,152,204,96,0,24,6,1,0,0,225,248,198,99,33,152,204,195,192,0,0,3, +3,1,0,0,225,248,198,99,33,152,204,195,192,0,24,30,9,128,1,195,241,140,198,67,49,153,135,128,0,0,29,11, +0,1,195,241,140,198,67,49,153,135,128,0,38,19,0,3,135,227,25,140,134,99,51,15,0,0,3,0,12,0,0,0, +0,63,240,0,0,0,0,192,3,0,0,0,0,15,157,140,228,178,217,204,204,124,0,0,0,24,6,1,0,3,17,140, +198,99,49,152,204,227,176,0,0,3,3,1,0,3,17,140,198,99,49,152,204,227,176,0,24,30,8,128,6,35,25,140, +198,99,49,153,199,96,0,38,19,0,12,70,51,25,140,198,99,51,142,192,0,0,12,8,16,0,194,70,102,100,44,60, +24,24,24,48,96,0,0,48,24,12,6,227,249,140,198,99,49,157,207,198,3,1,128,0,36,36,0,194,70,102,100,44, +60,24,24,24,48,96,0,60,60,0,60,126,6,30,118,70,102,126,0,60,60,0,28,62,98,126,126,96,96,62,0,32, +52,24,0,28,62,98,126,126,96,96,62,0,121,224,12,48,195,12,48,195,0,28,30,0,3,135,227,25,140,134,99,51, +15,0,0,28,30,0,12,70,51,25,140,198,99,51,142,192,0,34,52,24,0,60,126,6,30,118,70,102,126,0,65,227, +0,48,195,12,48,195,12,34,26,7,0,1,195,241,140,198,67,49,153,135,128,0,34,26,7,0,6,35,25,140,198,99, +49,153,199,96,0,60,0,9,4,128,3,17,140,198,99,49,152,204,227,176,0,0,6,2,4,130,64,1,136,198,99,49, +152,204,102,113,216,0,0,14,2,4,130,64,1,136,198,99,49,152,204,102,113,216,0,0,8,2,4,130,64,1,136,198, +99,49,152,204,102,113,216,0,64,98,38,60,24,8,0,0,0,0,0,0,15,192,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,14,7,6,131,97,49,152,254,99,97,176,96,0,63,24,204,102,51,241,140,195,97,177,159,128, +0,127,96,96,96,96,96,96,96,96,96,0,7,1,192,88,54,12,130,49,140,97,152,111,248,0,127,96,96,96,126,96, +96,96,96,127,0,63,129,128,192,192,64,96,96,32,48,31,192,0,24,102,25,134,97,159,230,25,134,97,152,102,24,4, +7,224,198,48,70,12,221,152,51,6,97,134,112,124,0,0,6,102,102,102,102,96,0,24,198,97,152,108,31,7,97,152, +99,24,70,24,0,3,0,224,120,26,4,195,48,196,33,152,102,24,0,7,12,112,199,28,121,198,148,107,70,228,102,70, +100,96,64,0,28,103,25,230,105,155,102,89,158,99,152,230,24,0,63,128,0,0,1,240,0,0,0,0,31,192,4,7, +224,198,48,70,12,193,152,51,6,97,134,112,124,0,0,0,31,230,25,134,97,152,102,25,134,97,152,102,24,0,63,24, +204,38,19,25,248,192,96,48,24,0,0,63,152,6,1,128,96,96,32,48,48,31,192,0,127,134,3,1,128,192,96,48, +24,12,6,0,0,48,140,198,65,96,240,48,24,12,6,3,0,4,0,96,63,135,108,102,100,102,70,102,100,63,193,240, +6,0,0,0,49,153,134,131,192,192,112,120,38,51,48,192,0,12,137,145,50,38,76,237,143,224,48,4,0,128,16,0, +4,3,224,198,48,102,12,193,152,51,6,49,134,49,239,0,25,63,152,200,100,51,17,156,119,0,0,0,31,24,140,102, +35,49,184,198,97,48,156,207,198,3,1,128,194,98,102,38,52,60,24,24,24,24,24,0,62,32,48,24,28,54,99,67, +99,102,60,0,60,233,129,199,136,24,62,0,0,252,48,195,4,24,48,64,193,193,224,96,193,0,78,63,24,204,102,51, +25,140,198,3,1,128,128,0,60,38,98,98,98,127,98,98,102,54,60,0,102,102,102,99,0,98,51,27,15,7,195,97, +152,198,0,0,0,240,24,24,24,28,28,52,38,102,99,195,0,98,49,152,204,102,35,17,156,247,96,48,24,0,194,66, +102,38,52,60,24,24,1,252,193,2,7,15,48,96,193,193,224,96,193,0,28,63,24,204,100,51,25,152,120,0,0,127, +159,227,48,204,51,8,194,48,142,0,0,28,31,24,204,102,51,25,152,252,96,48,24,0,31,31,152,136,100,51,25,152, +120,0,0,126,252,96,129,2,6,14,0,70,102,98,98,98,102,102,60,0,4,0,128,124,31,198,76,136,145,19,38,117, +195,224,16,2,0,64,66,102,100,60,24,24,60,60,102,102,195,4,0,129,19,50,102,68,200,153,19,38,119,199,240,16, +2,0,64,32,140,25,129,34,36,70,136,155,177,222,0,0,50,50,0,127,96,96,96,126,96,96,96,96,127,0,14,7, +6,131,97,49,152,254,99,97,176,96,0,63,152,12,6,3,241,140,195,97,177,159,128,0,63,24,204,102,51,241,140,195, +97,177,159,128,0,127,96,96,96,96,96,96,96,96,96,0,7,225,24,70,49,140,99,24,198,33,152,111,255,3,192,240, +48,0,127,96,96,96,126,96,96,96,96,127,0,7,17,200,136,100,193,36,15,224,93,6,76,98,51,17,176,134,8,63, +8,192,96,96,240,28,6,3,51,143,128,0,0,24,102,57,142,103,153,102,217,230,121,156,102,24,0,6,192,224,0,97, +152,230,57,158,101,155,103,153,230,113,152,96,0,152,102,49,152,100,31,6,97,152,99,24,70,24,0,1,248,51,4,96, +140,49,134,48,198,16,198,25,131,0,0,0,7,12,112,199,28,121,198,148,107,70,228,102,70,100,96,64,0,24,102,25, +134,97,159,230,25,134,97,152,102,24,4,7,224,198,48,70,12,193,152,51,6,97,134,112,124,0,0,0,31,230,25,134, +97,152,102,25,134,97,152,102,24,0,63,24,204,38,19,25,248,192,96,48,24,0,4,15,140,76,6,3,1,128,192,96, +25,135,192,0,0,127,134,3,1,128,192,96,48,24,12,6,0,0,97,152,204,66,97,160,112,56,24,12,28,0,0,4, +0,96,31,135,108,102,100,102,70,102,102,63,193,240,6,0,0,0,49,153,134,131,192,192,112,120,38,51,48,192,0,24, +102,25,134,97,152,102,25,134,97,152,103,252,3,0,192,48,0,24,70,17,132,97,28,195,240,4,1,0,64,16,0,1, +140,102,49,152,198,99,25,140,102,49,152,198,99,25,140,231,255,128,0,1,140,102,49,152,198,99,25,140,102,49,152,198, +99,25,140,231,255,192,3,0,12,0,48,0,31,0,32,4,0,192,31,130,48,67,8,97,152,62,0,0,3,1,152,12, +192,102,3,63,25,140,204,38,99,51,57,159,140,0,48,24,12,6,3,249,140,195,97,179,159,128,16,63,17,128,96,49, +248,12,6,3,51,31,0,0,0,64,195,225,140,99,48,70,96,207,193,153,131,51,6,98,24,199,113,135,192,0,0,0, +31,152,204,102,51,248,124,102,51,49,152,192,60,126,6,30,118,70,102,126,0,0,15,143,12,6,3,241,140,134,67,49, +157,135,192,0,124,110,98,126,126,98,102,126,124,249,131,6,12,24,48,62,31,8,132,66,35,17,157,254,193,96,144,64, +28,62,98,126,126,96,96,62,0,68,108,152,146,31,195,248,73,25,54,35,120,216,16,225,192,209,190,0,99,51,153,205, +230,179,153,204,198,34,27,7,0,6,51,57,156,222,107,57,156,204,96,98,102,108,124,124,100,102,99,62,31,12,132,66, +33,17,137,132,0,0,97,156,103,57,206,127,155,102,217,134,99,49,152,207,231,243,25,140,198,28,63,24,204,100,51,25, +152,120,0,0,126,63,152,204,102,51,25,140,198,78,63,152,204,102,51,25,220,252,96,48,24,0,0,28,121,130,4,12, +28,30,0,126,252,96,193,131,6,12,194,70,102,100,44,60,24,24,24,48,96,0,0,0,96,6,0,96,63,199,254,102, +102,102,70,102,102,102,227,252,6,0,96,6,0,0,70,100,44,56,56,44,108,198,98,49,152,204,102,51,25,140,255,1, +128,192,64,66,102,102,102,62,6,6,6,102,102,102,102,102,102,102,102,102,102,103,254,102,99,51,25,152,204,198,102,51, +49,153,143,254,0,48,1,128,4,120,30,1,128,124,25,134,97,152,124,96,204,25,131,62,102,108,205,153,179,230,96,96, +96,124,102,98,102,124,120,248,17,243,224,147,60,0,99,134,124,108,103,198,124,102,198,102,230,60,0,0,30,126,102,102, +62,54,102,102,36,36,0,28,62,98,126,126,96,96,62,0,7,128,0,0,0,0,0,0,0,0,0,115,128,0,0,126, +126,0,0,0,126,126,0,0,0,127,243,255,128,0,0,0,0,0,127,248,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,0,32,1,128,6,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,64,1,128,2,0,16,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,6,34,96,0,32,1,32,5,128,26,0,0,0,0,0,0,0,0,0,0,0,0,0,0,88,1,224,4,128,22, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,216,145,38,192,0,3,0,12,0,48,3,240,15,192,12,0, +48,0,192,3,0,12,0,48,0,192,3,0,12,0,48,3,240,15,192,12,0,48,3,240,15,192,12,0,48,0,192,3, +0,30,0,48,0,0,0,0,0,0,0,0,0,0,225,193,2,0,0,0,0,0,0,0,0,0,1,140,98,49,0,0, +0,0,0,0,0,0,3,0,30,0,48,0,0,0,0,0,0,0,0,0,1,192,5,32,36,0,212,1,78,102,170,128, +171,18,172,138,162,57,128,0,38,102,0,0,0,0,36,201,179,96,0,0,0,0,0,0,0,0,24,0,48,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,34,68,98,0,70,51,36,0,0,0,140,65,50,2,16, +4,128,204,195,51,1,32,8,64,76,128,48,0,34,17,8,132,66,33,16,136,68,0,49,152,192,0,0,0,18,0,48, +1,224,0,0,0,1,2,29,46,24,96,243,193,2,0,0,56,227,239,131,4,24,32,195,12,48,65,2,8,0,1,130, +12,48,0,0,56,143,144,50,6,64,200,49,4,32,132,0,6,24,195,0,0,35,132,248,129,16,34,12,67,8,65,8, +0,12,97,140,0,0,0,0,0,0,72,0,192,7,128,0,0,0,0,0,4,128,12,0,120,0,0,0,0,0,0,240, +130,68,25,32,108,128,228,0,35,129,144,4,64,33,1,7,0,0,48,33,99,228,152,156,192,3,0,12,0,48,0,192, +3,0,6,96,15,128,0,0,0,224,130,4,24,32,96,128,228,0,35,129,146,4,72,33,33,7,0,0,48,1,39,228, +152,30,96,1,128,7,192,31,0,96,1,128,6,0,24,0,3,160,27,128,196,2,16,24,192,99,0,252,3,32,24,128, +70,1,240,0,0,0,0,24,0,120,3,128,4,128,63,0,196,3,16,12,192,35,1,140,6,48,0,120,209,34,69,142, +24,113,192,208,224,0,0,0,227,1,204,243,155,39,182,77,101,155,198,51,128,103,60,206,1,140,0,0,0,0,3,224, +2,0,9,236,38,48,152,194,123,9,140,38,48,152,194,123,192,244,89,182,109,149,101,64,0,0,0,0,0,0,0,3, +0,63,1,134,12,12,48,48,192,195,3,12,12,24,96,115,131,207,0,0,0,243,192,204,6,24,24,96,64,131,3,4, +8,24,96,115,128,120,0,0,3,0,30,0,72,1,224,3,0,30,0,120,1,32,12,192,51,0,252,6,24,24,96,97, +128,0,0,128,8,8,192,70,3,48,25,128,12,0,96,1,2,0,32,0,0,16,128,67,193,135,3,16,14,128,110,3, +24,12,48,16,96,97,129,130,0,0,0,1,205,164,50,145,202,69,57,214,68,89,17,238,68,169,51,164,142,192,0,0, +12,0,48,0,192,3,0,12,0,48,0,192,3,0,12,0,48,0,0,0,51,0,204,3,48,12,192,51,0,204,3,48, +12,192,51,0,204,0,0,0,204,195,51,12,204,51,48,204,195,51,12,204,51,48,204,195,51,0,0,0,216,99,97,140, +198,51,16,204,195,19,12,104,49,224,195,131,12,0,0,0,97,129,134,2,16,12,192,51,0,72,1,160,7,128,30,0, +48,0,0,1,134,198,27,24,204,51,48,204,195,35,5,140,30,48,112,192,195,0,0,3,27,100,109,153,182,100,217,147, +98,205,139,54,56,216,227,99,141,128,0,3,53,172,150,146,90,73,105,101,165,150,156,90,49,104,197,163,22,128,0,0, +204,99,51,12,104,49,224,195,3,14,12,120,49,48,204,195,97,128,0,0,49,0,204,1,160,7,128,12,0,112,1,224, +12,192,51,1,134,0,0,1,140,195,51,5,140,30,48,48,193,195,5,140,50,48,140,198,27,0,0,1,27,102,77,139, +54,56,216,99,99,141,138,54,108,217,19,108,109,128,0,0,96,3,0,31,254,48,0,64,0,128,0,0,0,0,0,0, +12,0,120,3,240,11,64,12,0,48,0,192,3,0,12,0,48,0,192,3,0,0,0,0,0,1,128,3,31,254,0,48, +0,128,4,0,0,0,0,3,0,12,0,48,0,192,3,0,12,0,48,0,192,3,0,45,0,120,0,192,3,0,0,0, +0,0,97,131,3,31,254,112,56,64,128,132,0,0,0,0,0,0,12,0,120,3,240,11,64,12,0,48,0,192,3,0, +45,0,120,0,192,3,0,0,0,62,0,120,1,192,5,128,19,0,6,0,12,0,24,0,48,0,0,1,240,7,128,14, +0,104,3,32,24,0,192,6,0,48,0,0,0,0,0,192,1,128,3,0,6,0,12,128,26,0,56,0,96,15,192,0, +0,0,0,0,192,6,0,48,1,128,76,1,96,7,0,24,0,248,0,0,0,127,248,0,1,224,7,128,28,0,88,1, +48,0,96,0,192,1,128,3,0,0,0,3,32,13,0,63,254,240,3,96,0,128,0,51,0,109,255,240,7,192,27,0, +204,0,0,0,64,1,128,3,31,254,0,48,1,128,4,6,0,48,1,255,231,0,4,0,8,0,0,0,0,32,97,131, +198,31,152,90,96,97,129,134,6,24,24,96,103,161,143,6,24,24,32,0,0,8,0,96,3,0,31,254,48,0,64,0, +128,0,24,0,49,255,224,3,128,8,0,64,0,0,0,0,32,1,128,15,254,127,248,0,0,0,0,0,0,1,255,224, +2,0,24,0,0,0,0,1,0,6,31,252,127,248,0,0,0,0,0,0,1,255,227,0,6,0,0,0,0,0,16,0, +128,7,254,48,1,128,6,0,15,254,24,0,48,0,0,0,0,128,1,7,254,0,12,0,24,0,103,255,0,24,0,192, +0,0,8,64,97,129,254,12,12,64,9,128,99,255,6,24,8,64,0,0,0,0,16,0,192,5,254,32,1,0,4,0, +0,254,12,0,16,0,0,0,0,0,12,0,72,2,16,16,32,97,128,0,0,0,0,0,0,0,0,0,0,7,128,0, +0,2,0,12,31,232,0,16,0,32,0,159,192,0,192,2,0,0,0,7,128,0,0,0,0,0,0,0,0,0,0,2, +16,16,32,33,0,0,1,32,3,0,0,0,16,0,97,129,143,6,126,25,104,97,129,134,6,24,24,97,121,131,198,6, +24,16,96,0,0,7,240,112,3,0,8,0,63,240,128,3,0,6,0,15,240,0,0,0,0,127,129,134,4,8,16,32, +64,129,2,4,8,16,32,64,129,2,4,8,16,32,0,0,127,128,192,3,0,6,0,12,0,48,1,128,12,0,112,1, +254,0,0,0,4,0,16,0,64,2,0,8,0,0,1,0,4,0,128,6,128,14,0,16,0,64,0,0,0,0,1,243, +196,120,48,192,199,129,243,193,3,0,0,0,0,0,1,243,228,120,176,195,199,137,243,225,2,0,0,0,0,0,0,1, +128,12,0,96,3,0,24,0,192,6,0,63,240,255,192,1,0,4,0,50,0,152,6,64,19,0,200,2,96,25,0,76, +0,32,0,0,0,0,12,0,48,1,224,4,128,51,0,132,6,24,16,32,128,66,1,0,0,0,0,128,67,3,4,8, +24,96,33,0,204,1,32,7,128,12,0,32,0,0,3,0,63,1,134,4,8,48,48,192,195,3,12,12,48,48,192,195, +3,0,0,0,192,195,3,12,12,48,48,192,195,3,4,8,16,32,51,0,120,0,0,192,6,0,48,0,192,3,0,12, +0,48,0,192,3,0,12,0,48,0,192,14,0,0,0,0,192,6,0,48,0,192,3,0,30,0,48,0,224,7,128,12, +0,48,0,192,14,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,12,12,48,48,0,0,16,32,225,193,2,0, +0,0,0,0,0,0,0,192,3,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,0,192,3,0,0,0,16,32, +225,193,2,0,0,0,0,0,0,0,12,12,48,48,0,0,0,1,227,228,24,176,195,198,9,240,225,2,0,0,0,0, +0,0,120,195,30,0,0,30,16,207,194,12,0,0,0,0,16,33,195,228,24,176,195,70,9,241,224,0,15,252,63,240, +0,3,255,0,0,0,2,0,24,0,96,63,240,12,0,48,15,252,6,0,16,0,64,0,63,240,0,0,0,15,252,0, +0,0,3,255,0,0,0,0,0,0,0,192,14,1,224,28,0,240,0,112,8,120,56,48,60,0,28,0,28,0,0,0, +0,192,1,192,1,224,0,224,3,192,56,7,132,48,112,15,0,224,14,0,0,0,0,0,12,64,55,0,240,3,0,60, +3,48,6,192,7,0,14,0,54,0,204,0,0,0,0,140,3,176,3,192,3,0,15,0,51,0,216,3,128,28,1,176, +12,192,0,0,3,0,63,1,134,12,12,32,16,140,66,1,12,12,16,32,115,128,120,0,0,0,12,0,48,0,192,3, +0,12,0,48,0,192,3,0,255,195,255,0,15,192,255,198,1,144,2,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,7,128,64,130,1,17,194,7,0,4,8,16,96,65,1,1,4,32,0,0,0,8,64,0,0,7,128,64,130,1,17, +226,4,128,2,8,24,96,65,6,1,31,32,0,0,0,8,64,0,0,7,128,64,130,1,17,226,0,128,2,8,56,96, +49,0,193,62,32,0,0,0,8,64,0,0,7,128,64,130,1,16,226,3,128,30,8,216,99,225,1,129,6,32,0,0, +0,8,64,0,0,7,128,64,130,1,17,226,4,0,24,8,120,96,49,0,193,30,32,0,0,0,8,64,0,0,7,128, +64,130,1,17,226,4,0,48,8,248,99,49,12,193,30,32,0,0,0,8,64,0,0,7,128,64,130,1,19,242,0,128, +6,8,16,96,193,3,1,8,32,0,0,0,8,64,0,0,7,128,64,130,1,17,226,4,128,18,8,120,97,33,12,193, +30,32,0,0,0,8,64,0,0,7,128,64,130,1,17,226,12,192,51,8,124,96,49,0,193,30,32,0,0,0,8,64, +0,0,7,128,64,130,1,22,114,25,96,36,136,178,98,73,9,33,39,160,0,0,0,8,64,0,0,32,17,0,36,112, +145,194,67,11,12,56,48,112,195,195,13,12,36,124,147,242,32,16,0,0,32,17,0,36,248,146,50,64,203,3,56,8, +112,99,195,13,24,36,252,147,242,32,16,0,0,32,17,0,36,248,146,50,64,203,3,56,56,112,115,192,205,3,36,220, +145,226,32,16,0,0,32,17,0,36,24,144,226,67,139,26,56,200,114,35,223,237,6,36,8,144,34,32,16,0,0,32, +17,0,36,124,147,2,76,11,52,56,252,112,51,192,205,3,36,220,147,226,32,16,0,0,32,17,0,36,124,145,2,76, +11,48,56,252,115,51,200,77,49,36,108,145,226,32,16,0,0,32,17,0,36,252,144,50,65,139,6,56,16,112,195,195, +13,8,36,32,144,130,32,16,0,0,32,17,0,36,120,147,50,76,203,51,56,120,115,115,200,205,33,36,204,145,226,32, +16,0,0,32,17,0,36,120,147,50,72,203,35,56,204,113,243,192,205,3,36,216,145,194,32,16,0,0,32,17,0,37, +158,150,74,73,43,44,184,179,114,203,201,45,36,164,158,146,50,32,16,0,0,32,17,0,36,204,147,50,68,75,17,56, +68,113,19,196,77,17,36,68,145,18,32,16,0,0,32,17,0,37,156,150,10,72,43,32,184,134,114,19,200,205,38,36, +152,146,254,32,16,0,0,32,17,0,37,158,150,10,72,43,33,184,140,114,27,200,45,32,164,150,146,114,32,16,0,0, +32,17,0,37,134,150,58,72,235,39,184,150,114,219,203,253,33,164,134,146,26,32,16,0,0,32,17,0,37,158,150,66, +73,11,36,56,158,114,11,200,45,32,164,182,146,114,32,16,0,0,32,17,0,37,142,150,66,73,11,36,56,190,114,203, +201,45,36,164,150,146,50,32,16,0,0,32,17,0,37,190,150,26,72,75,33,56,140,114,35,200,141,34,36,136,146,34, +32,16,0,0,32,17,0,37,156,150,74,73,43,38,184,140,114,123,201,45,36,164,146,146,114,32,16,0,0,32,17,0, +37,156,150,74,73,43,36,184,150,114,123,200,45,32,164,150,146,114,32,16,0,0,32,17,0,37,206,145,170,71,187,30, +248,91,113,111,205,189,38,165,138,159,186,32,16,0,0,0,0,112,1,192,3,0,12,0,48,0,192,3,0,12,0,48, +195,243,0,0,0,0,248,2,48,0,192,3,0,8,0,96,3,0,24,0,224,195,243,0,0,0,0,120,3,48,0,192, +3,0,56,0,240,0,192,1,0,204,195,227,0,0,0,0,28,0,240,2,192,27,0,76,3,48,31,224,3,0,12,192, +51,0,0,0,0,124,1,0,12,0,48,0,252,0,48,0,64,1,0,140,195,227,0,0,0,0,124,1,144,12,0,32, +0,248,3,48,8,64,49,0,204,193,227,0,0,0,0,254,0,48,0,192,2,0,24,0,96,1,0,12,0,49,128,198, +0,0,0,0,120,3,48,12,192,51,0,120,1,96,8,192,33,0,204,193,227,0,0,0,0,120,3,48,8,64,33,0, +204,1,240,0,64,3,0,220,195,227,0,0,0,1,143,14,100,9,152,36,96,145,130,70,9,152,38,96,155,50,60,192, +0,0,1,206,7,56,12,96,49,128,198,3,24,12,96,49,128,198,99,25,128,0,0,1,206,7,76,12,16,48,64,195, +3,8,12,96,51,0,220,51,126,192,0,0,1,207,7,44,12,16,48,192,198,3,28,12,16,48,96,219,51,124,192,0, +0,1,195,7,28,12,112,51,192,203,3,108,13,248,48,192,195,51,12,192,0,0,1,207,7,32,12,128,50,0,207,3, +6,12,24,48,96,211,51,124,192,0,0,1,207,7,52,13,128,54,0,223,3,102,13,152,54,96,201,51,60,192,0,0, +1,207,135,6,12,16,48,192,194,3,8,12,96,49,128,198,99,25,128,0,0,1,207,7,36,13,152,50,64,207,3,60, +13,152,54,96,217,179,60,192,0,0,1,207,7,100,13,152,54,96,217,131,62,12,24,48,96,203,51,56,192,0,0,1, +231,13,182,2,200,11,32,108,129,178,12,200,99,33,133,191,220,192,0,255,252,0,0,0,0,0,0,0,0,0,0,3, +255,255,255,192,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,12,0,48,0,192,3,0,12,0,48,0,192,3,0,12,0,48,0,192,3,0,12,0,48, +0,115,56,0,0,0,0,0,0,0,0,0,0,1,222,231,51,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,12,0,48,0,192,0,0,12,0,48,0,192,0,0, +0,0,48,0,192,3,0,108,216,0,0,0,0,0,0,0,0,0,0,3,191,118,205,128,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,12,0,48,0,0,3, +0,12,0,0,0,192,3,0,12,0,0,0,192,3,0,0,0,1,252,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,7,240,31,192,0,0,0,0,0,0,0,0,0,0,3,252,12,0,48,0,192,3,0,12,0,48,0,192,0,0,15, +240,63,192,192,3,0,12,0,48,0,192,3,0,254,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,248,15,224, +0,0,0,0,0,0,0,0,0,0,0,255,0,12,0,48,0,192,3,0,12,0,48,0,192,0,3,252,15,240,0,192, +3,0,12,0,48,0,192,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,127,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,127,1,252,0,0,0,0,0,0,0,0,0,12,0,48,0,192,3,0, +12,0,48,0,255,0,0,0,0,0,0,0,0,0,0,0,12,0,48,0,192,3,0,12,0,48,0,255,1,252,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,128,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,63,128,254,0,0,0,0,0,0,0,0,0,0,12,0,48,0,192,3,0,12,0,48,63, +192,0,0,0,0,0,0,0,0,0,0,0,12,0,48,0,192,3,0,12,0,48,63,192,254,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,127,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,127,1,252,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,48,0,192,3,0, +12,0,48,0,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255, +3,0,12,0,48,0,192,3,0,12,0,48,0,0,0,12,0,48,0,192,3,0,12,0,48,0,255,3,0,12,0,48, +0,192,3,0,12,0,48,0,0,0,12,0,48,0,192,3,0,12,0,48,0,255,3,252,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,3,252,12,0,48,0,192,3,0,12,0,48,0,0,0, +12,0,48,0,192,3,0,12,0,48,0,255,3,252,12,0,48,0,192,3,0,12,0,48,0,0,0,0,0,0,0,0, +0,0,0,0,0,63,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +63,128,254,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,48,0,192,3,0,12,0,48,63,192,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,192,3,0,12,0,48,0,192,3, +0,12,0,48,0,0,0,12,0,48,0,192,3,0,12,0,48,63,192,3,0,12,0,48,0,192,3,0,12,0,48,0, +0,0,12,0,48,0,192,3,0,12,0,48,63,192,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,63,192,255,0,12,0,48,0,192,3,0,12,0,48,0,0,0,12,0,48,0,192,3,0,12, +0,48,63,192,255,0,12,0,48,0,192,3,0,12,0,48,0,255,252,0,0,0,0,0,0,0,0,0,0,0,0,0, +3,255,255,224,0,0,0,0,0,0,0,0,0,0,0,0,3,255,240,31,192,0,0,0,0,0,0,0,0,0,0,0, +3,255,255,255,192,0,0,0,0,0,0,0,0,0,0,255,252,12,0,48,0,192,3,0,12,0,48,0,192,0,3,255, +255,240,0,192,3,0,12,0,48,0,192,3,0,0,3,255,240,63,192,192,3,0,12,0,48,0,192,3,0,0,3,255, +255,255,192,192,3,0,12,0,48,0,192,3,0,0,0,0,0,0,0,0,0,0,0,0,0,63,255,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,255,254,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,63,255,1,252,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,255, +255,252,0,0,0,0,0,0,0,0,0,12,0,48,0,192,3,0,12,0,48,63,255,0,0,0,0,0,0,0,0,0, +0,0,12,0,48,0,192,3,0,12,0,48,63,255,254,0,0,0,0,0,0,0,0,0,0,12,0,48,0,192,3,0, +12,0,48,63,255,1,252,0,0,0,0,0,0,0,0,0,12,0,48,0,192,3,0,12,0,48,63,255,255,252,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,255,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,63,255,254,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,63,255,1,252,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,63,255,255,252,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,48,0,192,3,0,12,0,48,63,255,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,255,3,0,12,0,48,0, +192,3,0,12,0,48,0,0,0,12,0,48,0,192,3,0,12,0,48,63,255,3,0,12,0,48,0,192,3,0,12,0, +48,0,0,0,12,0,48,0,192,3,0,12,0,48,63,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12, +0,48,0,192,3,0,12,0,48,63,255,3,252,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,63,255,255,0,12,0,48,0,192,3,0,12,0,48,0,0,0,0,0,0,0,0,0,0,0,0,0,63, +255,3,252,12,0,48,0,192,3,0,12,0,48,0,0,0,12,0,48,0,192,3,0,12,0,48,63,255,255,252,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,255,255,252,12,0,48,0,192,3,0, +12,0,48,0,0,0,12,0,48,0,192,3,0,12,0,48,63,255,255,0,12,0,48,0,192,3,0,12,0,48,0,0, +0,12,0,48,0,192,3,0,12,0,48,63,255,3,252,12,0,48,0,192,3,0,12,0,48,0,0,0,12,0,48,0, +192,3,0,12,0,48,63,255,255,252,12,0,48,0,192,3,0,12,0,48,0,127,249,255,231,255,159,254,127,249,255,231, +255,159,254,127,249,255,231,255,128,0,127,249,0,36,0,144,2,64,9,0,36,0,144,2,64,9,0,36,0,128,0,0, +0,12,0,48,1,224,7,128,63,1,254,7,248,63,240,255,199,255,159,254,0,0,12,0,48,1,32,0,0,33,1,2, +4,8,32,16,0,4,0,159,254,0,0,12,0,120,3,240,31,224,255,199,255,191,255,127,248,255,193,254,3,240,7,128, +12,0,0,0,0,0,12,0,72,2,16,16,32,128,68,0,160,1,64,8,128,65,2,2,16,4,128,12,0,0,0,3, +0,97,130,1,0,0,64,8,0,0,0,0,0,64,9,0,34,1,4,8,15,192,3,0,97,130,1,2,16,64,40,64, +128,0,4,8,80,41,33,34,121,4,8,15,192,3,0,127,131,255,15,252,127,249,255,231,255,159,254,127,249,255,227,255, +7,248,15,192,3,0,12,3,51,7,248,31,224,127,141,254,215,248,31,224,63,3,123,8,196,3,0,0,0,0,0,2, +0,0,8,0,0,0,0,0,0,0,0,12,0,0,0,0,0,63,3,254,3,252,7,240,23,224,15,128,150,0,8,16, +32,128,2,0,48,0,3,128,31,0,60,0,0,2,128,64,33,134,11,252,0,96,0,0,0,8,0,0,0,0,0,0, +0,0,0,48,0,192,3,1,255,227,255,3,240,15,192,63,0,204,6,24,16,32,0,0,0,0,48,0,192,0,1,243, +226,1,2,16,8,64,33,0,72,6,24,16,32,3,0,51,1,134,4,8,19,32,64,129,2,2,16,7,128,0,0,15, +193,255,230,73,159,254,12,192,97,131,135,14,28,60,240,255,192,0,0,0,4,0,134,24,16,32,64,128,0,0,0,0, +0,0,0,0,0,0,0,22,1,132,8,0,32,16,128,66,1,8,4,0,16,0,64,0,16,0,63,240,0,0,30,1, +252,15,248,63,240,255,195,255,15,252,63,240,255,195,255,31,252,63,240,0,0,8,0,128,4,112,0,128,38,0,16,0, +0,0,0,4,0,0,0,0,0,128,2,64,32,0,162,0,248,3,0,4,0,0,0,0,4,64,0,0,0,0,4,0, +4,3,136,4,0,25,0,32,0,0,0,0,4,64,0,0,0,0,64,1,0,15,0,178,2,0,2,64,10,0,32,0, +0,0,0,0,0,7,128,126,3,252,31,240,127,193,254,15,240,62,0,112,1,204,3,0,6,0,12,0,0,0,0,0, +30,0,204,2,16,8,64,30,0,48,0,192,63,240,12,0,48,0,192,3,0,0,0,12,0,48,0,192,31,224,12,0, +48,1,224,12,192,33,0,132,3,48,3,0,1,240,7,192,7,0,52,1,144,124,67,48,8,64,35,0,200,1,224,0, +0,0,0,12,0,120,3,240,31,224,255,199,255,159,254,127,249,255,227,255,0,192,7,128,0,0,243,196,48,144,2,64, +9,0,34,1,8,4,16,32,33,0,72,0,192,0,0,0,0,12,0,72,0,0,8,64,64,130,1,4,8,0,0,33, +0,72,0,192,3,0,0,0,0,0,30,0,252,3,240,15,192,127,131,255,31,254,127,249,255,227,255,0,192,7,128,0, +0,0,0,48,1,32,8,64,64,130,1,16,2,64,9,0,36,48,143,252,0,0,30,0,0,0,243,199,255,31,254,127, +249,255,227,255,15,248,31,224,63,0,120,0,192,0,0,0,0,12,0,120,1,224,15,192,127,131,255,7,248,15,192,63, +0,120,0,192,3,0,0,0,0,0,18,0,132,2,16,8,64,97,132,0,144,2,64,9,12,34,253,0,64,7,128,0, +0,8,0,164,4,160,10,192,45,0,214,25,86,73,73,136,99,3,7,248,0,0,0,0,4,0,16,0,64,1,0,4, +0,16,0,64,1,0,4,0,112,3,192,14,0,0,0,0,0,0,0,16,0,96,0,64,1,0,2,0,0,0,0,0, +0,96,3,128,12,0,0,0,0,48,15,192,255,3,132,0,16,0,64,1,0,4,0,16,3,195,14,28,16,240,0,0, +0,0,112,31,192,225,0,124,15,144,32,64,1,0,4,0,16,3,195,14,28,16,240,0,0,0,0,0,0,0,0,0, +0,0,0,2,0,108,1,16,0,192,2,0,16,1,128,0,0,0,0,0,0,0,0,240,7,192,1,0,4,0,16,7, +192,25,0,4,0,16,0,0,0,0,18,0,72,1,48,31,192,114,0,72,1,32,15,224,122,0,72,1,32,4,0,0, +0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,128,0,0,3,0,30,0,204,2,24,24, +224,12,7,51,28,198,99,27,0,60,8,223,254,28,224,0,0,3,0,30,0,204,2,24,24,224,12,7,19,28,70,99, +27,0,60,8,223,254,28,224,0,0,3,0,30,0,204,2,24,24,224,12,7,19,28,70,103,27,0,60,8,223,254,28, +224,0,0,3,0,30,0,204,2,24,24,224,12,7,51,29,198,103,27,0,60,8,223,254,28,224,0,0,3,0,30,0, +204,2,24,24,224,12,7,99,28,198,103,27,8,60,8,223,254,28,224,0,0,3,0,30,0,204,2,24,24,224,12,7, +99,29,198,103,27,0,60,8,223,254,28,224,0,0,3,0,30,0,204,2,24,24,224,30,7,19,28,198,98,27,0,60, +8,223,254,28,224,0,0,3,0,30,0,204,2,24,24,96,64,130,3,28,6,96,27,0,60,8,223,190,14,192,0,0, +1,128,63,1,254,7,56,12,193,192,231,3,188,15,96,25,243,227,255,15,188,0,128,0,0,7,128,121,131,3,28,198, +115,59,63,60,120,243,243,79,233,132,98,1,15,220,15,192,0,0,0,0,6,0,252,7,248,12,192,192,195,135,12,12, +48,176,127,129,254,0,32,0,0,0,0,3,0,30,0,200,2,208,27,96,76,130,49,8,4,64,9,12,44,0,159,254, +0,0,7,128,76,130,1,16,2,99,9,158,120,124,65,224,7,129,0,3,131,6,28,12,192,0,0,3,0,97,131,3, +0,0,64,8,18,0,0,1,32,64,9,0,34,1,4,8,15,192,0,1,128,7,0,14,0,16,0,0,1,192,4,128, +18,0,112,0,4,0,25,128,196,3,48,8,128,98,1,16,0,0,0,0,0,0,24,0,96,1,136,15,240,32,129,134, +12,16,38,192,14,0,12,0,24,0,0,0,8,0,96,1,0,12,0,96,1,0,12,0,16,0,96,0,128,3,0,6, +0,8,0,0,64,1,128,2,0,12,0,24,0,32,0,192,2,0,24,0,64,3,0,24,0,64,0,0,0,0,40,0, +160,5,128,20,0,144,2,128,26,0,40,0,176,1,64,5,0,26,0,40,0,0,80,1,64,6,128,10,0,36,0,80, +1,96,5,0,52,0,160,2,128,22,0,80,0,0,0,0,124,1,128,4,0,16,0,64,1,0,4,0,16,0,64,0, +0,0,0,0,8,0,32,0,128,2,0,8,0,32,0,128,2,0,248,0,0,0,0,252,2,16,11,128,40,0,160,2, +128,10,0,40,0,160,0,0,0,0,0,0,0,112,1,64,5,0,20,0,80,1,64,5,0,228,2,16,0,0,0,0, +120,1,192,7,0,24,0,96,1,128,6,0,24,0,96,1,128,7,0,28,0,120,0,0,120,0,224,3,128,6,0,24, +0,96,1,128,6,0,24,0,96,3,128,14,0,120,0,0,0,127,249,255,231,255,159,254,0,0,0,0,0,31,254,127, +249,255,231,255,128,0,0,0,0,32,3,128,8,0,32,0,128,2,0,8,0,32,0,128,2,0,8,0,48,0,96,0, +0,0,1,0,7,0,4,0,16,0,64,1,0,4,0,16,0,64,1,0,4,0,48,1,128,0,0,0,0,8,0,0, +0,0,0,0,0,1,0,4,0,16,0,0,0,0,0,0,0,0,8,0,0,64,0,0,0,0,0,0,0,0,32,0, +128,2,0,0,0,0,0,0,0,0,64,0,0,0,0,0,8,1,254,1,128,7,192,59,193,249,5,196,54,48,123,128, +8,0,0,0,24,3,254,15,224,4,64,31,129,207,13,38,37,25,156,102,227,15,184,0,192,0,0,193,1,6,4,8, +16,48,64,193,51,6,132,14,0,0,0,32,0,129,130,3,8,12,32,16,128,99,33,140,198,30,0,112,0,0,0,0, +0,31,0,28,0,0,15,192,33,128,6,0,24,0,192,14,0,96,0,0,0,63,0,124,0,0,7,192,255,128,2,0, +8,0,32,1,128,28,3,224,4,0,0,0,30,0,56,0,0,31,192,6,0,48,1,192,13,128,99,193,15,0,0,0, +63,0,60,0,0,15,192,255,0,24,0,192,7,0,54,1,152,12,62,0,112,4,0,17,131,243,1,4,7,192,63,129, +195,13,8,61,224,55,0,0,0,48,0,194,15,236,60,24,48,0,254,7,156,60,17,176,70,195,15,120,8,0,0,0, +16,0,192,3,12,127,144,35,96,140,134,50,16,128,194,3,24,25,224,2,0,0,8,48,224,193,3,12,127,177,98,97, +137,134,34,16,128,194,3,24,25,224,6,0,0,0,4,1,254,7,224,0,128,255,193,252,0,16,17,224,64,1,0,7, +240,7,192,0,8,12,163,255,15,224,1,0,255,131,252,0,48,49,192,129,3,0,15,240,15,192,0,0,3,0,24,0, +192,14,0,112,1,128,6,0,14,0,28,0,56,0,48,0,192,0,0,0,0,3,0,24,1,200,14,160,97,65,0,6, +0,12,0,28,0,56,0,112,0,128,0,0,0,0,193,130,6,8,24,39,248,129,130,6,24,24,48,96,193,3,12,12, +96,1,0,0,0,129,98,5,8,16,103,249,143,134,4,24,16,112,65,193,3,12,8,96,1,0,0,0,31,224,63,0, +0,0,0,0,0,0,3,0,12,0,56,0,127,192,0,0,0,8,0,225,255,7,240,0,0,0,0,0,0,0,48,0, +192,3,0,7,252,7,192,0,0,6,0,25,15,252,31,192,1,0,6,4,120,16,96,192,1,0,7,248,7,192,0,0, +0,32,19,128,100,63,240,255,0,12,0,16,17,224,195,131,0,12,0,31,192,63,0,0,0,96,1,128,6,0,24,0, +96,1,128,6,0,24,0,96,97,131,3,248,7,128,24,0,98,129,139,6,16,24,0,96,1,128,4,0,24,16,97,193, +254,3,224,0,0,6,0,31,159,254,1,128,30,0,216,3,32,13,128,30,0,24,3,192,4,0,0,0,6,160,26,31, +254,1,0,30,0,216,2,96,13,128,30,0,48,3,128,12,0,0,0,8,64,97,1,132,7,254,127,96,97,1,132,6, +112,24,0,32,0,254,0,0,0,0,1,33,133,70,16,27,251,255,129,132,6,16,25,192,96,1,128,3,248,7,192,15, +192,63,0,24,0,192,14,48,255,194,32,1,128,4,0,24,0,60,0,112,31,192,127,0,27,129,136,12,49,255,198,96, +1,0,12,0,48,0,124,0,112,0,0,16,0,64,31,192,60,0,35,224,128,6,0,24,0,76,3,48,12,126,0,0, +0,0,48,32,194,159,192,124,0,103,193,159,6,0,16,0,200,3,48,24,252,32,240,0,0,48,0,198,31,248,12,0, +32,1,190,7,156,24,48,0,192,3,3,248,7,128,0,8,48,160,135,31,240,24,0,96,1,60,7,184,48,48,0,192, +6,3,248,15,128,0,0,31,131,195,0,12,0,48,0,192,14,1,240,0,0,0,0,63,135,195,24,6,0,24,0,96, +3,0,28,7,224,28,0,0,0,0,160,3,1,248,62,113,192,64,1,128,6,0,48,1,192,126,3,224,0,0,0,0, +255,199,248,0,192,2,0,24,0,96,1,128,6,0,14,0,30,0,0,0,0,255,199,248,0,196,2,40,24,128,96,1, +128,6,0,14,0,30,0,0,0,0,96,1,128,3,24,13,192,28,0,192,6,0,16,0,64,1,128,3,252,1,128,0, +0,64,161,129,6,16,13,192,60,0,192,6,0,48,0,192,3,0,7,252,7,224,0,0,16,0,80,31,220,12,56,99, +1,140,12,48,51,193,159,128,207,1,240,3,128,48,0,198,194,63,8,0,32,0,128,2,0,12,128,50,0,204,226,31, +136,0,0,0,4,2,16,9,248,63,48,204,67,161,30,134,78,209,55,199,147,140,122,0,0,0,0,32,0,128,31,120, +127,48,112,65,129,14,4,56,241,164,228,179,194,120,8,0,0,0,63,1,247,12,204,99,25,136,102,97,153,134,108,48, +241,193,30,0,0,48,96,129,130,7,136,254,32,97,129,134,6,28,248,118,112,217,226,124,8,96,0,8,129,98,5,8, +16,103,241,129,6,4,24,16,115,193,219,198,71,153,240,35,128,0,24,129,82,5,136,16,103,241,129,6,4,24,16,115, +193,219,198,71,153,240,35,128,0,1,249,130,198,6,24,16,112,192,227,7,140,24,48,64,195,1,248,3,192,0,8,0, +103,229,31,24,24,96,65,131,7,8,30,32,64,129,3,12,15,224,15,0,0,8,0,87,231,95,26,24,96,65,131,7, +8,30,32,64,129,3,12,15,224,15,0,6,0,14,0,24,0,96,0,0,24,0,51,6,100,48,153,130,36,248,1,128, +4,0,28,32,26,128,68,0,0,24,0,51,4,76,49,153,134,100,248,1,192,4,0,28,96,26,64,70,0,0,24,0, +51,4,76,49,153,134,100,248,1,192,0,0,24,0,240,6,96,48,193,131,134,7,0,14,0,24,0,0,0,0,0,64, +103,131,200,27,128,198,6,12,24,24,0,48,0,96,0,128,0,0,0,192,100,131,220,27,128,198,6,12,24,24,0,48, +0,96,0,128,48,0,143,194,4,8,16,35,249,129,134,4,28,120,119,112,217,226,60,8,0,0,0,128,98,127,24,48, +96,65,159,198,63,16,16,113,193,223,134,71,153,240,35,128,0,0,0,114,1,73,254,96,193,129,6,127,24,252,64,65, +199,7,126,25,30,103,192,142,0,0,0,4,1,255,7,248,1,0,127,193,254,0,64,15,0,127,3,23,7,196,14,0, +1,0,126,0,16,0,192,6,16,127,194,79,19,14,72,105,225,130,28,0,96,0,0,32,0,242,31,204,8,24,96,2, +192,27,0,104,48,224,193,131,3,248,7,192,0,0,2,3,8,5,240,29,240,228,66,145,155,198,102,25,152,103,227,12, +120,0,128,0,0,16,0,64,15,224,15,0,48,6,194,31,236,12,16,32,64,195,1,248,3,192,0,0,8,1,16,6, +248,30,48,240,194,95,1,176,6,0,8,0,48,0,0,0,0,12,3,16,4,252,31,24,240,102,193,129,124,6,96,24, +0,32,0,192,2,0,1,0,70,1,62,7,108,25,144,70,65,123,4,248,3,0,8,0,0,0,0,0,6,2,24,8, +248,45,176,230,99,25,140,102,37,144,159,192,60,0,192,6,0,3,0,12,0,62,0,240,3,0,12,1,248,4,240,19, +96,120,0,0,0,12,0,48,0,200,3,240,12,0,48,0,192,31,0,207,130,55,15,196,30,0,0,0,60,0,124,4, +0,16,0,64,1,126,7,12,48,48,0,192,7,3,248,7,0,0,0,96,1,188,7,24,24,96,96,129,130,4,8,16, +96,1,128,28,1,224,4,0,3,192,127,0,24,0,192,7,128,63,131,131,8,4,15,144,34,192,254,0,224,0,0,32, +0,128,31,120,127,32,112,129,130,14,8,56,97,161,132,134,194,14,8,0,0,64,127,0,24,0,192,7,128,63,129,131, +12,12,0,48,1,192,254,1,224,0,0,16,0,64,15,120,15,48,48,65,193,7,4,44,112,51,128,0,0,0,0,32, +0,128,31,0,123,240,120,97,129,142,2,56,25,160,100,135,2,48,8,0,31,0,124,0,48,1,240,14,112,120,66,97, +153,6,111,209,233,195,62,0,112,31,192,14,0,120,7,184,50,32,180,128,254,3,224,24,96,255,198,49,144,130,0,0, +24,3,252,15,224,8,0,124,195,158,24,224,7,128,54,0,128,3,248,7,224,0,0,8,0,96,1,128,12,0,48,1, +240,7,192,49,136,198,98,25,152,124,0,192,63,240,127,192,38,0,240,2,0,8,0,96,3,0,24,0,0,0,0,0, +255,224,1,128,140,3,96,13,0,32,0,128,6,0,48,1,128,0,0,0,0,1,128,12,0,224,15,0,236,0,48,0, +192,3,0,12,0,0,0,0,0,0,192,7,0,56,1,128,30,3,216,28,96,1,128,6,0,24,0,96,1,0,3,0, +12,3,255,12,12,48,32,65,128,6,0,48,3,128,24,0,0,0,0,0,12,0,48,15,252,48,48,128,194,3,8,8, +0,96,3,0,24,3,192,4,0,0,0,127,128,48,0,192,3,0,12,0,48,15,252,0,0,63,240,255,192,48,0,192, +3,0,12,0,48,0,192,127,249,255,224,0,128,2,1,255,7,252,1,128,14,0,232,6,32,16,128,14,0,0,0,2, +0,8,15,252,63,248,6,0,56,1,160,28,128,226,6,12,0,224,3,0,0,0,8,0,32,15,248,63,240,24,192,99, +1,12,12,48,48,193,130,12,120,0,0,0,0,24,160,99,1,136,127,240,24,192,67,1,12,12,48,96,129,130,28,120, +0,0,0,0,24,0,96,1,248,127,0,12,0,49,1,254,127,0,4,0,24,0,96,1,128,0,0,0,96,66,129,136, +7,225,254,2,32,0,128,3,241,254,6,48,0,64,1,0,6,0,0,0,12,0,96,3,252,12,48,224,199,6,0,24, +0,192,6,0,112,7,128,8,0,0,8,24,160,97,3,252,28,112,193,135,6,0,48,0,192,6,0,112,7,128,24,0, +0,0,0,0,48,0,192,7,254,31,248,194,6,24,0,96,1,128,12,0,96,3,128,0,0,0,0,48,160,129,6,0, +31,248,198,6,24,24,96,1,0,12,0,96,3,128,12,0,63,240,255,192,3,0,12,0,48,0,192,3,0,12,63,240, +127,192,0,0,0,0,0,96,2,128,8,63,240,0,192,3,0,12,0,48,0,192,3,15,252,63,240,0,192,8,64,33, +1,132,31,254,24,96,33,0,132,2,48,0,192,6,0,112,0,128,0,0,33,33,133,134,16,127,249,99,1,140,6,48, +24,192,3,0,24,1,192,6,0,8,0,56,0,96,8,0,48,24,96,192,7,0,56,3,128,60,3,192,0,0,0,0, +32,96,194,129,136,0,1,192,97,131,0,24,0,192,14,0,240,15,0,0,0,0,0,127,129,254,0,16,0,192,6,0, +24,0,240,14,96,112,195,1,128,0,0,8,0,163,254,15,248,0,64,3,0,24,0,96,3,128,59,1,198,28,12,32, +16,12,0,48,0,195,3,252,126,49,177,128,204,3,0,12,0,48,0,255,0,0,0,8,32,160,129,2,0,15,241,254, +199,198,2,48,8,192,32,0,192,3,252,7,224,0,0,128,195,3,6,8,24,96,1,128,12,0,48,1,128,28,0,224, +0,0,0,0,0,32,2,136,8,48,48,192,129,134,6,24,0,192,3,0,24,1,192,14,0,32,0,0,0,8,0,127, +3,252,24,48,224,134,118,0,240,1,192,15,128,112,7,0,16,0,0,8,24,160,99,3,252,24,48,193,134,102,17,240, +1,192,15,128,116,7,0,24,0,0,0,0,96,255,128,48,0,192,63,241,255,224,48,0,192,2,0,24,1,192,2,0, +0,64,255,131,242,128,204,3,1,255,224,48,0,128,6,0,24,1,192,6,0,0,0,8,67,51,6,200,24,96,1,128, +12,0,96,7,0,56,0,0,0,0,0,152,98,33,12,204,48,48,0,128,6,0,48,1,128,28,0,224,0,0,0,0, +0,32,2,129,128,102,16,136,195,35,12,8,0,96,3,0,24,0,192,14,0,32,0,31,224,127,128,0,0,0,127,248, +255,192,48,0,192,3,0,24,0,192,2,0,0,0,0,32,3,199,244,0,0,0,7,255,159,252,3,0,12,0,32,1, +128,12,0,32,0,12,0,16,0,64,1,0,7,0,31,128,71,1,0,4,0,16,0,192,1,0,12,32,49,64,196,3, +0,14,0,63,0,206,3,8,12,0,48,0,192,3,0,1,0,4,0,16,31,254,127,248,12,0,48,0,192,6,0,56, +1,192,0,0,0,0,255,128,0,0,0,0,0,0,0,0,0,0,127,248,0,0,0,0,255,129,254,0,24,8,96,59, +0,120,0,224,7,224,57,195,128,4,0,0,0,12,0,48,15,252,0,96,3,0,56,1,216,63,113,204,96,48,0,192, +3,0,0,0,1,128,6,0,16,0,192,3,0,24,0,192,6,0,112,3,128,0,0,12,192,51,0,198,2,24,24,32, +96,193,3,12,6,96,25,128,96,0,0,0,160,9,3,48,8,64,33,129,134,6,12,48,48,192,198,1,152,6,0,0, +0,0,0,224,10,67,54,8,64,33,129,134,6,12,48,48,192,198,1,152,6,0,0,24,0,96,1,130,6,120,31,128, +112,1,128,6,0,24,0,96,192,255,0,0,0,16,64,227,2,12,0,48,224,254,3,192,12,0,48,0,192,1,0,7, +252,0,0,0,0,64,163,2,140,12,48,224,254,3,192,12,0,48,0,192,1,0,7,252,0,0,0,0,255,195,255,0, +12,0,32,1,128,6,0,48,1,128,28,1,224,0,0,0,0,0,160,2,143,252,63,240,0,192,2,0,24,0,64,3, +0,24,1,192,30,0,0,0,0,24,0,83,255,207,252,0,48,0,128,6,0,16,0,192,6,0,112,7,128,0,0,0, +0,24,0,240,6,96,48,193,129,134,3,0,14,0,24,0,0,0,0,0,64,103,131,200,27,128,199,7,14,24,24,0, +48,0,96,0,0,0,0,0,192,100,131,204,27,128,199,7,14,24,24,0,48,0,96,0,0,0,0,12,0,48,15,254, +63,248,12,1,50,4,204,51,17,140,96,48,3,192,6,0,0,0,12,160,51,15,252,127,240,12,1,50,4,200,51,49, +140,100,48,3,192,14,0,0,56,12,160,51,143,252,127,240,12,1,50,4,200,51,49,140,100,48,3,192,14,0,127,241, +255,224,3,0,28,8,96,51,0,120,0,192,1,128,3,0,0,0,12,0,63,0,14,0,0,28,0,63,0,12,0,0, +56,0,126,0,30,0,0,2,0,24,0,96,1,128,12,0,49,0,198,6,12,24,113,255,231,129,128,0,0,32,1,128, +6,7,16,6,192,14,0,28,0,248,14,48,112,195,128,0,0,0,0,255,192,96,1,128,6,1,255,224,96,1,128,6, +0,24,0,63,0,0,8,0,48,0,95,15,236,54,96,27,0,32,0,128,3,0,12,0,0,0,0,0,96,0,128,3, +126,127,177,240,192,70,1,176,6,0,8,0,48,0,192,1,0,0,0,127,0,12,0,16,0,192,3,0,12,15,252,0, +0,31,192,127,128,6,0,24,0,96,1,0,4,0,48,127,248,0,0,31,224,127,128,6,0,24,31,224,1,128,6,7, +248,0,96,63,240,127,192,3,0,12,31,240,127,192,3,0,12,63,240,255,192,0,0,15,224,127,128,0,0,0,63,240, +0,192,3,0,24,0,192,6,0,240,1,0,16,96,97,129,134,6,24,24,96,97,129,134,0,24,0,192,7,0,120,0, +128,9,128,38,0,152,6,96,25,128,102,1,152,134,102,17,176,199,134,28,0,0,16,0,96,1,128,6,0,24,0,96, +97,131,6,24,25,192,126,1,192,0,0,63,240,255,194,1,8,4,32,16,128,66,1,8,4,63,240,192,192,0,0,31, +224,127,193,2,4,8,16,96,1,0,12,0,224,6,0,0,0,0,0,255,195,3,8,12,32,48,128,192,6,0,24,0, +192,14,0,240,1,0,0,192,3,3,255,143,252,12,192,51,0,204,31,254,127,248,3,0,12,0,16,63,240,255,192,3, +0,216,3,64,12,0,48,0,192,127,249,255,224,0,0,255,192,3,0,12,0,48,127,128,6,0,16,0,192,14,0,224, +0,0,0,0,224,1,192,3,130,0,24,0,192,6,0,48,3,128,60,3,192,0,0,0,8,8,160,32,15,252,127,241, +128,198,3,8,24,0,96,3,0,24,3,192,4,0,2,0,8,1,254,7,248,6,32,24,128,66,3,24,25,224,71,0, +4,0,48,0,255,7,252,17,128,198,0,16,0,192,6,0,48,0,0,0,3,0,30,0,48,0,0,0,0,0,0,0, +0,0,0,96,1,128,4,0,63,240,0,192,2,0,8,0,32,1,128,6,0,240,3,128,0,0,32,1,128,6,8,31, +224,1,128,132,3,176,3,128,14,0,236,14,24,32,32,63,240,255,194,1,8,4,32,16,128,66,1,8,4,32,16,128, +66,1,8,4,0,0,255,194,0,8,0,32,0,128,2,0,8,0,32,0,192,3,255,128,0,0,0,96,1,128,4,0, +63,240,12,192,35,1,140,6,48,48,193,130,28,120,33,192,1,0,12,0,48,1,192,127,248,24,0,64,3,0,8,192, +97,129,191,15,236,0,16,63,192,255,0,24,0,192,7,240,31,192,1,0,12,0,48,0,128,62,0,112,1,0,68,1, +16,12,192,63,240,12,64,33,1,140,4,48,48,193,130,28,120,32,192,0,0,24,128,198,2,48,24,192,198,3,16,12, +96,24,192,49,128,198,1,140,2,0,127,249,255,224,64,3,0,31,224,127,128,2,0,24,0,96,1,0,124,1,224,0, +0,255,227,0,12,0,48,0,192,3,0,12,0,32,1,128,6,0,16,0,0,0,33,129,134,6,24,24,96,97,129,134, +6,24,31,224,113,128,6,0,24,0,96,0,0,3,0,24,0,192,6,0,48,1,128,3,0,6,0,12,0,24,0,48, +0,64,0,1,255,224,48,0,192,3,0,12,0,48,0,192,3,0,12,0,48,0,192,0,0,12,3,49,12,204,51,48, +204,195,51,15,252,63,240,12,0,48,31,254,0,0,0,128,6,0,50,3,152,56,192,6,0,120,3,192,57,0,4,0, +16,0,64,1,0,63,240,255,192,1,0,4,31,240,127,193,0,12,0,48,0,128,6,0,16,0,0,0,63,240,255,195, +3,13,12,54,48,204,195,19,12,108,48,48,192,195,255,0,4,0,16,255,192,97,1,132,6,16,24,64,99,1,188,6, +0,24,0,96,0,128,2,0,8,0,96,31,254,12,0,48,0,192,7,248,0,96,1,0,12,0,32,0,128,0,0,0, +0,8,0,96,1,128,4,0,48,0,196,6,24,24,32,195,195,255,14,6,0,0,0,0,128,67,131,7,24,6,192,14, +0,48,0,192,3,0,12,0,48,0,192,0,0,127,248,12,0,16,0,192,31,0,192,2,0,8,12,56,240,63,0,0, +0,0,0,4,0,48,31,254,3,0,4,1,240,12,0,32,0,128,195,143,3,240,0,0,0,0,33,0,132,2,16,127, +249,255,224,140,2,48,8,192,34,0,128,3,252,0,0,127,248,255,193,16,4,64,51,0,255,194,99,1,140,12,48,96, +131,6,8,8,0,0,112,3,224,8,128,3,0,12,0,24,0,48,0,224,1,192,1,0,0,0,0,12,0,96,1,8, +12,96,99,3,248,8,192,6,32,48,193,255,15,198,0,24,0,0,255,192,3,0,8,12,96,27,0,56,0,224,7,192, +49,131,131,8,4,63,224,255,128,134,6,24,24,64,255,195,255,0,12,0,48,0,128,6,0,16,0,0,48,0,128,6, +0,16,0,192,67,255,0,4,0,48,0,192,2,0,24,0,64,0,0,8,0,32,31,254,127,248,8,0,112,1,192,5, +0,52,1,144,28,126,64,0,1,0,12,0,32,1,128,6,0,48,0,128,6,0,16,0,193,195,255,0,0,0,0,50, +0,200,3,32,12,128,50,0,200,3,32,8,128,98,3,12,24,62,64,0,0,0,255,192,0,0,0,0,0,0,0,0, +0,0,0,0,129,6,6,24,12,192,30,0,56,0,224,6,192,49,129,131,12,4,0,0,32,16,128,66,1,8,4,32, +16,128,66,1,8,4,32,16,192,195,255,0,4,32,17,0,36,0,144,2,64,11,0,57,254,112,3,192,13,0,36,0, +144,2,32,16,0,0,32,17,0,36,0,151,250,64,11,0,56,0,112,3,192,13,127,165,254,144,2,32,16,0,0,32, +17,0,36,252,151,250,64,11,0,56,252,112,3,192,13,0,37,254,144,2,32,16,0,0,32,17,128,101,254,151,250,85, +171,86,189,90,246,59,80,41,127,165,254,144,2,32,16,0,0,32,17,0,37,254,145,194,66,11,24,56,252,113,19,196, +77,17,37,255,144,2,32,16,0,0,32,17,136,100,48,144,194,95,235,0,60,72,243,51,72,73,97,165,2,144,2,32, +16,0,0,32,17,16,36,64,145,2,68,107,127,187,192,113,3,196,13,17,164,126,144,242,32,16,0,0,32,17,146,100, +72,145,34,68,139,50,60,204,242,51,72,73,97,165,2,144,2,32,16,0,0,32,17,24,36,96,145,162,95,139,18,56, +72,113,35,204,141,34,229,142,144,26,32,16,0,0,96,25,0,36,48,176,195,195,15,127,189,254,240,195,195,15,12,52, +48,144,194,96,24,0,0,0,1,255,240,0,0,0,0,0,0,0,0,0,127,249,255,224,16,0,64,1,0,4,0,16, +0,64,1,0,4,0,176,3,192,0,0,4,0,16,0,64,1,0,4,249,255,135,192,1,0,4,0,16,32,65,129,254, +3,240,127,249,255,224,192,3,0,15,240,48,192,131,6,12,24,48,192,198,2,16,120,0,0,0,128,2,0,8,31,254, +1,128,66,1,152,2,96,13,0,28,0,112,15,120,112,120,0,0,63,240,255,192,0,0,0,0,0,127,128,0,0,0, +0,0,0,7,255,128,0,2,0,8,0,32,0,128,3,0,15,192,32,0,128,2,0,8,0,32,31,254,127,248,127,249, +255,224,32,0,192,3,128,15,128,35,0,132,2,0,8,0,32,0,128,0,0,127,249,255,224,132,2,16,8,64,33,1, +132,6,16,24,64,193,6,4,24,16,0,0,127,249,255,224,48,1,192,15,192,125,131,179,152,198,3,0,12,0,48,0, +192,0,0,0,0,96,1,255,6,0,16,0,255,195,255,128,4,127,145,254,64,3,0,12,1,224,0,0,127,248,12,0, +48,12,252,51,240,204,3,255,143,254,0,24,0,96,1,0,124,0,0,0,1,255,192,99,1,12,4,48,16,131,254,3, +8,12,32,48,128,194,31,254,127,248,2,0,24,3,255,1,0,127,249,255,224,128,3,252,0,96,3,0,248,0,240,0, +224,0,0,0,0,127,129,2,4,8,31,224,127,129,2,4,8,31,224,64,129,2,31,254,127,248,127,248,14,0,48,1, +192,15,224,108,199,49,144,194,3,0,12,7,255,159,254,3,32,76,129,50,12,204,127,248,76,129,50,4,200,19,224,64, +1,0,7,254,0,0,0,0,127,129,240,4,0,16,0,127,225,255,4,16,16,64,65,1,4,31,254,127,248,127,248,12, +0,48,15,254,127,249,140,102,121,153,182,124,121,128,102,1,152,28,0,0,4,128,19,0,76,17,48,100,216,147,67,79, +13,56,28,224,19,0,76,31,254,127,248,8,64,97,1,132,6,16,24,192,115,129,110,12,236,49,145,140,100,32,159,254, +127,248,2,0,24,7,255,131,0,25,0,68,3,255,8,96,1,32,68,195,17,24,70,7,0,0,0,8,32,97,129,4, +13,182,36,145,247,193,134,4,16,61,249,247,224,0,31,254,0,0,0,64,255,128,12,2,224,127,152,47,193,182,4,216, +51,49,140,96,224,31,254,127,248,0,48,255,192,48,0,192,63,240,12,7,255,159,254,12,0,33,129,131,15,252,32,24, +0,0,127,248,51,0,200,31,254,108,217,178,102,205,155,254,121,57,204,102,1,152,28,0,0,0,1,255,226,73,13,44, +20,160,255,231,255,152,0,96,1,128,6,0,16,0,64,0,0,0,3,0,12,7,255,132,200,19,96,109,7,255,159,254, +17,48,71,129,12,7,156,60,24,0,0,3,0,12,0,48,0,192,3,0,12,0,48,0,192,3,0,12,0,48,0,192, +3,0,0,0,1,0,12,0,120,3,48,56,113,204,228,48,128,192,3,0,12,0,48,0,192,3,0,0,0,0,0,192, +193,198,3,48,3,128,12,0,48,0,192,3,0,12,0,48,0,192,3,0,0,0,1,0,4,0,144,3,64,7,0,4, +0,16,0,192,15,0,116,0,16,0,64,1,0,0,0,3,0,12,0,48,31,254,99,25,140,102,49,159,254,127,248,12, +0,48,0,192,3,0,0,0,3,0,12,7,255,143,252,3,0,255,195,255,0,192,127,249,255,224,48,0,192,3,0,0, +0,3,0,12,3,255,8,196,51,48,255,192,48,31,254,99,25,140,103,255,128,192,3,0,0,0,9,0,102,5,191,150, +192,94,97,112,133,128,22,254,90,73,105,37,164,134,254,27,248,0,0,0,0,48,0,112,0,224,1,192,3,0,0,0, +0,0,0,4,0,24,0,96,31,248,63,224,17,131,198,7,24,14,96,109,129,134,220,27,96,56,0,0,0,0,127,193, +3,5,140,19,48,68,199,255,159,254,48,48,192,194,3,24,12,65,224,0,0,2,0,200,1,160,31,252,127,248,24,96, +97,129,102,12,216,96,65,129,28,12,64,240,0,0,2,0,12,0,24,31,254,3,0,12,0,48,15,252,3,0,12,0, +48,31,254,127,248,0,1,255,224,0,15,60,125,249,150,103,93,159,126,109,185,150,102,89,153,102,109,176,0,0,2,0, +204,129,182,31,254,24,96,76,199,51,151,250,3,1,255,227,255,128,192,3,0,0,0,1,0,4,0,16,0,64,1,0, +4,0,16,0,64,3,0,12,0,96,3,0,24,0,0,0,127,192,99,1,140,6,48,24,128,99,225,9,132,6,48,16, +128,70,15,16,56,0,0,12,0,48,0,248,7,240,48,128,198,6,24,16,224,6,192,49,1,198,28,14,96,24,0,0, +0,32,15,135,240,25,128,6,0,24,1,255,223,192,6,0,24,0,96,129,130,3,248,0,0,2,0,24,0,192,2,16, +24,193,198,4,48,0,144,6,96,48,195,143,31,254,0,8,2,0,8,66,51,12,76,16,32,97,128,204,1,160,7,128, +30,0,204,14,28,96,24,0,0,2,0,12,0,16,31,252,0,48,1,128,12,0,96,3,0,56,3,128,27,254,71,248, +0,0,2,0,24,129,255,4,12,16,32,67,129,1,135,254,0,9,255,32,1,128,6,0,112,0,0,8,0,96,1,255, +143,254,54,1,152,4,127,1,128,6,0,31,224,96,1,128,6,0,0,0,0,32,255,195,176,12,204,19,48,108,128,48, +31,254,3,0,12,0,48,0,192,15,0,0,0,0,16,255,195,224,0,128,3,0,255,192,7,0,56,1,128,28,3,192, +27,134,71,248,0,0,0,48,255,195,0,12,64,33,0,140,7,255,128,192,17,32,196,198,17,144,194,7,0,0,0,0, +96,127,129,128,6,0,31,248,97,1,4,4,16,127,248,48,0,192,14,0,96,0,0,0,0,96,127,129,128,6,0,31, +248,97,1,4,4,16,127,248,1,0,14,0,12,0,24,0,0,0,32,255,192,96,31,254,127,248,97,3,135,26,54,8, +192,35,1,140,14,48,48,192,0,0,0,96,255,128,48,31,254,11,0,45,7,183,134,216,27,73,237,224,183,128,192,3, +0,0,0,0,96,255,128,48,31,254,11,64,237,67,183,6,210,127,248,63,1,182,28,206,67,8,0,0,127,224,255,128, +28,0,192,6,0,48,1,128,12,2,96,9,128,35,255,135,248,0,0,96,1,130,6,60,31,177,240,199,131,6,8,24, +224,96,33,128,135,254,7,240,4,0,16,0,64,3,16,127,192,49,0,196,3,16,8,64,97,1,4,220,27,96,120,0, +0,8,0,96,1,255,140,0,96,1,127,128,28,1,192,12,0,96,3,0,143,254,31,240,1,0,68,1,17,4,124,31, +145,252,71,17,4,68,17,112,68,1,0,134,6,15,240,63,248,0,96,1,131,6,6,24,8,96,5,0,244,30,17,192, +64,3,0,60,0,0,1,0,12,0,194,6,56,63,192,12,0,225,143,252,56,96,3,0,56,15,128,120,0,0,0,2, +0,8,192,97,143,248,2,32,8,135,255,159,254,2,8,8,32,33,128,156,2,0,0,0,16,64,99,1,140,7,240,24, +192,99,7,236,31,176,66,193,11,52,44,159,190,66,120,0,1,255,224,1,134,68,13,0,196,1,144,0,224,127,248,8, +0,108,7,28,112,24,0,0,2,65,251,1,140,2,48,255,192,99,0,140,31,176,126,193,11,36,44,223,178,98,120,0, +0,7,65,249,0,180,26,144,42,65,249,0,100,3,16,31,65,249,32,132,130,18,56,120,0,0,16,192,99,7,239,134, +126,127,1,159,199,239,31,152,124,64,99,7,248,198,99,24,248,0,0,127,240,255,192,6,0,112,3,0,12,0,48,0, +192,3,0,12,0,48,3,192,0,0,0,0,255,192,6,3,112,7,129,255,231,255,128,196,3,48,12,0,48,0,192,15, +0,0,0,12,0,63,1,252,12,112,127,240,12,199,255,159,254,3,48,255,192,48,0,192,14,0,0,0,3,1,255,224, +48,15,252,51,48,127,195,255,0,204,127,248,12,195,255,0,196,14,0,0,0,63,240,255,192,0,0,0,0,0,0,0, +0,0,0,127,249,255,224,63,240,255,192,0,0,0,127,248,12,0,48,0,192,3,0,12,0,48,3,192,0,0,63,240, +255,192,48,0,192,3,1,255,224,48,0,192,3,0,12,0,48,3,192,0,0,0,0,255,192,0,0,0,127,249,255,224, +128,6,0,31,240,0,192,3,0,8,3,224,0,0,63,240,127,192,0,0,0,127,249,255,224,192,3,16,24,96,193,199, +255,136,6,0,0,0,1,255,224,192,2,0,15,224,127,129,134,6,24,31,224,67,0,4,31,254,127,248,31,240,255,192, +0,0,0,127,248,49,0,196,2,16,24,64,97,3,4,24,16,0,0,63,240,255,192,96,1,128,6,64,255,128,70,1, +24,12,96,49,135,255,159,254,8,64,33,0,132,31,254,12,224,33,0,132,31,254,127,248,97,1,132,12,16,96,64,0, +0,127,248,0,1,254,7,248,16,32,127,129,130,4,8,31,224,0,7,255,159,254,127,248,51,0,200,19,38,108,144,178, +67,203,7,56,12,128,50,7,255,128,32,8,128,34,6,235,155,184,104,129,162,39,239,156,0,31,224,255,192,0,31,254, +127,248,0,0,255,128,12,0,192,123,249,172,102,189,26,220,123,112,15,96,232,31,254,127,248,2,0,12,0,48,31,254, +127,248,0,0,0,0,0,0,0,0,0,0,0,0,2,0,12,0,16,31,254,56,0,64,1,0,4,0,16,0,64,1, +0,7,252,0,0,0,0,12,0,48,0,192,127,248,0,0,252,3,240,8,64,33,1,132,6,19,48,77,129,224,0,0, +2,0,12,7,255,130,16,24,96,192,198,133,131,48,7,128,12,0,120,15,60,112,56,0,0,2,0,12,7,255,131,128, +12,64,255,3,249,1,204,60,97,199,0,126,15,28,112,24,0,0,2,0,12,7,255,159,254,4,192,211,130,79,9,54, +108,217,51,33,140,6,48,51,128,0,0,2,0,12,7,255,130,24,12,96,255,227,255,136,0,32,1,128,6,0,16,0, +64,0,0,0,2,1,255,231,255,135,248,16,32,127,128,0,31,252,0,240,14,0,48,0,192,15,0,0,0,2,0,12, +7,255,128,0,63,240,255,194,49,8,196,63,240,140,66,49,15,252,48,48,0,0,2,1,255,231,255,135,248,16,48,127, +192,0,15,252,3,193,255,231,255,128,192,15,0,0,0,2,0,12,7,255,128,0,31,240,192,195,3,15,252,3,0,76, +131,51,24,198,79,8,0,0,2,1,255,224,0,7,248,16,32,127,128,0,31,254,67,8,127,128,48,0,192,15,0,0, +0,3,1,255,231,255,135,248,16,32,127,128,0,31,254,76,200,63,0,140,6,50,112,120,0,0,2,0,12,3,255,2, +16,8,65,255,224,48,0,192,127,248,77,1,50,12,204,7,0,0,0,2,1,255,231,255,135,248,16,48,127,135,255,152, +62,95,200,24,7,255,128,130,3,248,3,1,255,225,8,31,124,24,240,246,71,157,12,198,7,32,247,135,140,7,222,28, +24,0,0,3,0,12,0,48,0,192,3,0,12,0,120,1,160,12,192,33,1,134,28,14,96,8,0,0,6,0,16,0, +192,6,0,24,0,224,6,128,18,0,8,0,32,0,128,2,0,8,0,0,0,8,0,111,193,127,140,12,112,97,195,7, +24,12,64,51,0,216,35,96,141,254,51,240,0,0,8,64,99,1,12,12,48,112,193,223,231,12,12,48,48,192,195,3, +12,12,48,48,192,0,0,8,0,96,1,63,12,254,112,1,192,7,0,12,0,48,0,192,3,0,13,255,48,0,0,0, +0,128,102,1,24,13,254,119,249,198,39,24,140,70,49,24,204,99,49,141,134,60,112,0,0,0,0,127,225,127,140,24, +112,97,193,135,6,12,24,48,96,193,131,6,12,24,49,192,0,0,0,0,255,226,8,8,96,33,128,134,2,24,8,96, +99,193,141,134,98,19,14,88,8,0,0,8,0,96,65,127,140,134,114,17,204,71,19,12,104,48,224,195,3,30,13,206, +52,8,0,0,8,128,102,1,24,12,96,113,193,199,135,27,140,102,49,128,198,3,24,12,96,49,128,0,0,1,0,100, +3,16,13,248,119,225,204,135,50,12,200,50,32,200,131,98,207,15,56,56,0,0,0,0,111,129,34,12,136,114,35,200, +135,34,12,136,50,32,216,131,98,207,14,60,56,0,0,3,0,12,0,120,7,24,50,57,140,96,24,15,252,0,96,1, +128,12,0,96,1,0,0,0,1,0,12,0,120,7,56,112,57,128,96,132,2,16,8,64,97,1,132,12,16,96,64,0, +0,16,0,95,131,54,8,136,98,99,137,226,33,136,130,38,24,152,98,65,139,6,40,112,0,0,8,64,97,1,132,6, +16,24,192,99,1,204,5,184,51,224,198,194,17,24,198,66,8,0,0,1,0,12,0,120,7,24,48,57,224,97,142,6, +224,30,0,96,1,129,7,252,15,224,1,0,12,0,120,3,56,56,49,255,225,134,6,24,24,96,103,1,129,7,252,15, +224,16,0,95,227,3,140,24,96,193,131,6,255,137,254,32,192,131,2,12,8,48,35,128,0,0,8,0,99,1,12,12, +48,119,249,223,247,12,12,48,48,192,195,3,12,13,254,55,248,0,0,0,64,65,3,100,141,190,103,251,223,35,228,137, +146,38,120,153,2,96,136,130,35,248,0,0,8,64,97,129,6,13,254,112,97,201,135,36,12,208,49,192,199,3,28,13, +220,54,24,0,0,8,16,96,193,3,13,254,55,249,192,199,35,12,204,49,48,196,195,3,12,12,49,240,0,0,16,128, +67,3,12,13,50,116,201,211,39,76,141,50,52,200,211,35,76,141,254,48,24,0,0,1,0,12,0,120,3,48,56,113, +192,101,254,135,248,3,0,12,0,48,15,252,127,248,8,0,127,227,127,140,50,114,139,218,35,72,143,98,49,136,196,35, +49,141,134,60,112,0,0,0,0,67,227,124,12,48,112,195,131,2,255,200,48,32,192,131,2,12,8,48,32,192,0,0, +1,0,108,1,63,141,254,124,3,207,195,14,12,48,49,128,204,3,96,141,130,51,248,0,0,8,128,34,193,137,140,32, +49,249,223,133,8,4,48,16,192,65,1,6,196,30,16,56,0,0,1,0,12,0,252,7,24,115,57,4,32,18,15,252, +0,96,19,0,120,0,224,0,192,0,0,0,0,192,195,99,12,204,49,48,192,131,2,12,24,54,96,243,135,27,8,230, +6,8,0,0,8,0,96,1,127,140,0,112,1,192,7,63,12,252,48,0,192,3,0,13,255,48,0,0,0,0,0,82, +99,109,141,148,114,19,136,194,50,8,88,33,192,131,2,30,9,206,60,24,0,0,8,0,102,1,16,12,192,114,97,217, +7,76,12,40,49,176,204,67,33,141,254,52,8,0,0,16,0,75,227,48,137,2,100,9,144,38,64,137,2,36,8,144, +34,64,137,2,36,56,0,0,16,0,92,3,79,141,50,100,203,147,38,76,137,50,36,200,191,98,207,136,48,32,192,0, +0,16,128,67,3,12,13,254,116,201,147,38,76,137,254,39,248,147,2,12,8,48,32,192,0,0,4,64,89,1,100,13, +144,102,89,157,198,102,9,144,38,64,153,2,124,137,218,36,120,0,0,11,0,108,1,63,141,254,124,193,211,7,12,15, +255,48,192,195,3,12,12,48,48,192,0,0,0,64,107,1,44,13,254,118,193,243,7,12,15,254,48,192,195,3,12,12, +48,48,192,0,0,8,128,99,1,30,12,200,118,25,240,103,34,12,136,50,32,200,131,98,13,136,60,32,0,0,8,0, +103,225,124,12,48,112,195,195,7,255,140,48,48,192,195,3,12,13,254,55,248,0,0,16,0,68,131,50,12,140,118,25, +248,247,127,12,68,49,16,204,195,51,13,140,60,224,0,0,16,192,99,3,12,15,255,113,3,196,7,31,140,198,51,24, +200,67,97,13,140,60,240,0,0,3,0,12,0,248,6,24,115,57,140,33,48,4,252,19,0,76,1,48,14,192,127,248, +0,128,66,3,12,13,254,112,3,207,131,50,12,136,50,32,200,131,98,205,11,60,56,0,0,8,0,127,225,25,140,102, +127,251,255,227,25,140,102,55,248,196,3,48,13,128,60,0,0,0,8,0,127,225,127,140,96,113,131,198,71,127,12,68, +49,16,204,67,51,15,254,63,248,0,0,16,128,67,3,255,141,254,112,195,223,199,127,140,132,51,48,199,131,28,13,252, +62,24,0,0,8,128,98,193,9,140,32,127,249,223,231,12,12,112,49,224,196,131,51,13,134,60,8,0,0,9,128,102, +193,25,12,102,127,249,198,7,9,12,44,48,224,195,3,60,205,218,52,56,0,0,8,128,99,1,12,12,48,127,251,199, +7,30,12,248,50,208,219,99,204,204,48,48,192,0,0,1,0,12,0,120,3,48,56,113,225,97,140,6,48,28,192,91, +131,59,24,198,66,8,0,0,1,0,102,193,25,15,254,127,249,196,7,20,12,80,51,64,201,3,100,143,26,60,120,0, +0,8,128,99,1,12,13,178,118,217,211,103,77,12,48,49,192,199,131,51,13,142,60,8,0,0,1,0,12,0,248,7, +24,127,249,191,32,0,31,254,63,240,49,1,134,15,252,60,24,0,0,8,0,127,225,96,13,196,119,145,219,199,102,13, +152,54,240,222,99,112,13,254,55,248,0,0,1,0,28,0,204,14,28,99,24,76,129,182,2,208,3,1,255,224,48,0, +192,3,0,0,0,0,128,98,1,127,140,48,115,241,223,231,8,15,254,55,248,194,35,8,140,46,48,128,0,0,0,128, +102,3,127,140,64,111,251,191,226,48,8,254,32,48,129,130,28,8,48,32,96,0,0,16,0,95,227,3,12,140,98,49, +159,230,127,136,60,33,176,140,194,99,11,12,32,224,0,0,1,0,108,3,63,141,254,108,131,130,2,127,136,102,33,152, +132,98,49,137,134,44,112,0,0,2,0,104,67,35,12,152,114,195,159,230,255,136,144,34,96,136,130,47,9,246,38,8, +0,0,16,192,67,3,30,12,204,102,27,248,34,34,8,184,35,128,136,2,32,136,134,35,240,0,0,0,128,103,1,30, +12,204,126,25,255,231,99,13,140,54,32,219,131,96,141,198,51,240,0,0,8,128,118,1,120,12,96,127,251,198,35,24, +140,114,51,120,204,99,97,143,6,60,112,0,0,8,128,99,1,4,13,254,116,9,208,39,0,12,0,48,0,192,3,0, +13,255,48,0,0,0,8,128,98,1,24,13,254,54,25,216,103,97,141,254,54,24,216,99,97,141,254,55,248,0,0,0, +192,67,3,12,13,254,103,251,131,2,12,9,254,38,24,152,98,97,137,254,39,248,0,0,16,0,95,227,97,141,134,103, +249,152,6,89,9,108,37,224,150,2,216,139,98,56,248,0,0,8,128,115,97,109,12,180,114,211,223,227,12,12,48,63, +252,195,3,12,12,48,48,192,0,0,0,128,71,3,28,12,200,118,155,243,34,0,9,252,32,48,129,130,60,8,48,32, +96,0,0,16,128,67,3,127,143,254,108,203,191,226,205,139,50,47,248,179,34,12,8,48,32,192,0,0,16,0,127,227, +0,141,250,103,203,128,34,124,137,18,36,72,159,34,96,136,2,32,120,0,0,16,16,80,67,81,9,100,100,147,147,74, +67,9,12,36,176,159,226,102,137,50,32,136,0,0,20,0,80,3,71,139,242,103,203,151,34,92,137,114,37,200,151,34, +223,138,94,59,72,0,0,16,0,95,227,77,141,50,100,203,147,98,127,137,182,36,200,147,34,76,137,254,38,24,0,0, +8,0,127,193,97,141,134,118,27,223,231,97,141,134,55,248,207,195,0,13,254,55,248,0,0,8,128,99,1,12,13,254, +112,1,200,71,51,12,204,49,32,196,131,18,13,254,55,248,0,0,0,16,79,193,116,13,152,118,97,223,231,127,141,152, +54,32,216,131,107,77,254,54,88,0,0,8,128,99,1,12,13,254,112,193,195,7,12,13,254,48,192,195,3,12,13,254, +55,248,0,0,9,0,102,1,16,15,255,115,3,204,3,48,12,254,54,96,241,131,198,14,254,51,248,0,0,8,128,98, +1,24,15,255,113,131,196,3,48,13,254,55,8,252,35,48,140,254,51,24,0,0,16,128,66,3,12,15,254,97,195,135, +134,62,8,172,38,144,255,227,190,136,32,32,128,0,0,8,0,127,225,127,140,6,119,153,223,103,77,141,54,55,216,222, +99,1,140,6,48,112,0,0,0,128,99,1,127,141,254,102,9,140,6,51,8,248,35,128,140,2,48,136,198,33,248,0, +0,1,0,12,0,204,6,24,120,121,63,32,0,31,254,3,0,109,131,51,24,198,7,0,0,0,1,0,14,0,204,6, +24,127,249,63,32,48,31,254,63,240,77,131,51,24,198,15,0,0,0,24,192,75,3,108,13,254,116,195,147,2,255,139, +254,32,192,135,130,51,9,134,44,8,0,0,17,64,69,3,255,140,222,97,75,191,226,214,11,216,47,248,141,34,38,137, +158,44,64,0,0,9,0,100,1,63,140,254,118,129,243,231,15,140,32,48,192,195,227,8,12,32,48,128,0,0,3,0, +108,1,63,141,254,124,9,255,39,36,140,146,50,72,207,35,33,140,6,48,112,0,0,16,0,95,195,0,12,0,111,251, +134,2,56,11,254,34,48,157,130,30,8,252,46,24,0,0,17,0,79,195,63,13,140,125,227,199,3,127,15,134,49,192, +195,131,96,12,248,48,112,0,0,18,0,72,3,32,13,254,100,203,179,34,45,8,180,38,216,147,34,204,136,48,33,192, +0,0,0,0,79,227,32,12,128,99,243,140,66,33,8,132,35,240,136,2,32,8,254,35,248,0,0,16,0,95,227,127, +141,50,103,251,159,226,76,137,182,39,248,147,34,204,139,50,56,248,0,0,16,0,127,227,48,12,128,115,243,200,199,59, +12,172,50,240,217,195,99,77,255,55,24,0,0,1,0,12,0,120,6,56,120,121,63,32,0,12,140,19,32,101,128,4, +31,254,127,248,1,128,102,3,31,140,96,113,131,223,227,255,140,96,49,224,198,195,25,140,96,49,128,0,0,16,0,255, +194,193,11,252,109,147,183,70,255,11,172,42,176,170,194,175,202,39,56,136,0,0,17,0,70,35,127,140,76,97,227,191, +246,24,8,196,63,112,239,2,48,136,198,33,248,0,0,18,16,76,67,51,13,254,112,193,195,7,127,140,48,48,192,255, +243,12,12,48,48,192,0,0,16,0,127,225,12,12,32,55,241,216,103,97,141,134,55,248,216,99,97,141,254,54,24,0, +0,0,192,99,1,127,140,48,112,193,223,231,8,12,48,55,248,195,3,12,15,254,63,248,0,0,16,0,95,227,49,12, +196,115,241,200,71,49,12,252,50,16,204,227,127,140,4,48,16,0,0,0,128,98,3,255,140,48,112,129,223,231,127,12, +0,55,240,208,67,65,13,252,55,240,0,0,17,64,69,131,22,141,94,103,113,141,134,54,9,220,47,104,141,130,38,9, +154,44,56,0,0,0,128,67,3,255,204,200,115,51,216,99,227,140,72,49,224,195,3,30,12,204,62,24,0,0,0,0, +76,131,35,13,132,127,251,248,226,99,9,252,38,48,159,194,97,9,132,38,112,0,0,8,192,99,1,255,204,48,119,251, +211,35,76,141,254,52,192,218,3,56,12,248,62,56,0,0,16,0,95,195,65,13,4,116,19,223,195,0,13,172,54,176, +218,195,107,13,45,60,152,0,0,16,0,127,227,24,12,204,103,49,159,230,8,8,48,39,248,131,2,12,9,254,47,248, +0,0,3,0,12,7,255,134,200,19,32,77,131,183,25,246,7,128,63,3,183,24,198,3,0,0,0,0,128,103,193,63, +15,204,113,195,207,7,239,140,126,55,24,215,195,14,12,240,62,0,0,0,16,128,70,3,255,140,216,102,51,255,242,0, +11,254,35,0,143,194,35,8,12,33,224,0,0,16,8,254,34,102,153,26,103,235,183,162,158,143,90,39,104,140,162,32, +137,2,44,56,0,0,0,128,99,3,127,140,48,96,195,191,242,3,11,254,34,48,136,194,51,8,76,32,224,0,0,16, +128,75,3,108,13,254,108,193,131,6,255,136,120,33,224,143,194,109,139,51,32,192,0,0,8,128,102,1,127,140,192,115, +17,223,231,241,142,254,51,24,207,227,49,140,198,51,48,0,0,0,128,100,129,51,13,254,118,137,219,7,127,141,176,48, +192,255,227,12,12,48,48,192,0,0,16,0,127,227,192,139,250,108,11,183,42,222,139,74,45,104,183,162,208,139,2,44, +56,0,0,1,32,108,131,50,13,254,115,51,204,131,50,13,254,63,248,192,3,51,13,134,52,8,0,0,16,128,98,1, +12,15,254,97,129,143,38,101,143,156,58,96,136,194,35,9,230,38,8,0,0,16,128,67,3,127,140,52,102,219,139,66, +44,11,254,32,192,135,2,50,9,142,60,24,0,0,16,0,95,195,97,13,132,103,241,143,198,0,9,254,36,24,144,98, +65,137,254,36,24,0,0,17,0,68,227,255,140,108,96,227,159,162,99,136,4,63,248,141,130,38,9,155,60,120,0,0, +8,128,99,225,15,140,32,119,243,216,99,73,141,38,52,152,210,67,26,13,206,60,8,0,0,0,8,190,34,138,154,170, +106,171,170,166,170,138,170,42,168,170,162,112,137,98,40,184,0,0,16,16,95,195,24,12,96,111,251,140,130,99,15,142, +35,32,136,130,34,9,136,44,32,0,0,16,128,71,3,22,12,140,126,25,239,166,0,9,252,39,240,140,130,35,11,252, +46,24,0,0,16,128,67,3,255,136,200,97,227,135,2,247,138,140,34,48,136,194,35,9,140,44,48,0,0,16,128,66, +3,255,143,254,109,203,141,6,37,137,156,62,96,136,130,35,8,246,38,8,0,0,18,0,72,3,127,139,0,111,251,138, +102,101,139,255,38,152,147,66,127,136,4,32,112,0,0,16,0,95,131,2,15,254,111,249,152,6,127,139,32,39,248,191, +226,28,8,220,44,24,0,0,0,0,127,195,63,12,252,119,243,192,3,255,143,2,55,240,204,195,30,12,120,62,56,0, +0,16,0,127,227,12,13,254,100,217,159,230,109,137,182,39,248,146,2,56,8,248,46,120,0,0,16,0,95,227,97,141, +134,103,251,159,194,12,9,176,38,248,155,2,124,11,112,56,248,0,0,16,64,95,227,230,136,154,111,251,191,234,38,136, +254,47,176,168,194,38,8,191,46,152,0,0,0,128,67,67,13,141,254,96,195,155,98,47,8,56,33,224,159,194,205,136, +50,35,128,0,0,9,0,108,129,99,13,254,114,35,216,199,208,140,252,55,48,253,131,28,12,252,62,56,0,0,0,0, +71,225,17,142,70,45,249,23,225,17,132,70,49,248,228,102,209,176,254,3,252,16,192,91,99,45,12,180,119,249,216,103, +97,141,254,54,24,223,227,97,141,134,54,56,0,0,16,8,94,35,230,136,154,111,235,191,166,118,137,250,46,232,233,163, +160,136,130,34,56,0,0,16,0,95,195,22,12,112,103,251,159,230,77,137,254,36,152,159,226,77,137,38,36,184,0,0, +17,0,76,195,97,15,38,97,195,141,130,99,15,6,39,240,152,66,97,9,252,39,240,0,0,16,48,95,195,73,13,164, +98,177,159,198,7,8,48,47,248,191,226,12,8,48,33,128,0,0,16,0,95,227,77,141,182,119,249,211,103,127,140,48, +48,192,223,227,12,13,254,63,248,0,0,16,128,95,195,109,141,254,102,219,159,230,0,11,255,34,0,143,194,1,8,4, +32,112,0,0,8,0,127,225,97,141,134,119,251,207,195,12,15,254,49,224,207,131,109,15,55,48,192,0,0,3,0,30, +0,204,14,28,127,216,0,3,233,8,164,62,144,154,67,233,8,132,38,112,0,0,1,128,100,129,51,13,254,98,1,159, +198,127,9,32,47,248,135,2,30,9,204,44,24,0,0,16,128,67,3,127,141,254,115,241,207,195,63,12,252,48,0,223, +227,65,141,134,55,248,0,0,0,0,127,225,97,141,134,103,241,128,6,127,136,48,39,248,191,226,30,8,204,62,24,0, +0,16,128,95,227,127,140,252,103,251,159,226,255,136,204,35,248,154,66,201,14,4,32,112,0,0,0,0,127,227,22,13, +94,103,115,159,226,127,137,0,36,0,144,2,192,11,0,56,0,0,0,16,0,255,227,54,8,88,111,249,181,230,214,139, +90,47,248,187,98,232,139,2,44,56,0,0,16,0,255,227,0,9,222,111,121,181,38,214,139,218,47,88,181,34,212,139, +82,47,88,0,0,16,128,70,3,54,13,140,127,251,239,134,8,9,36,38,144,138,130,2,11,254,47,248,0,0,16,128, +70,3,63,140,228,108,227,167,194,241,138,48,41,176,163,130,153,136,60,35,128,0,0,16,128,95,227,255,139,68,109,17, +191,230,241,11,212,41,80,165,194,145,10,68,57,48,0,0,16,0,95,195,97,13,252,102,19,159,194,97,9,252,38,16, +191,226,50,9,134,44,8,0,0,17,32,69,131,119,141,222,113,97,221,231,119,140,88,55,120,253,227,22,12,88,49,96, +0,0,16,128,127,227,127,13,252,97,3,191,226,107,9,182,59,248,130,2,127,136,32,32,128,0,0,17,0,102,3,255, +204,200,102,179,191,227,255,137,252,39,240,159,194,127,8,34,32,248,0,0,16,192,67,3,127,141,50,103,251,147,34,127, +136,120,35,96,191,226,255,136,24,32,96,0,0,16,0,95,227,72,141,34,103,251,147,34,94,137,90,37,40,151,162,64, +137,254,36,24,0,0,16,128,99,3,255,141,2,119,241,216,71,127,13,252,54,0,223,227,97,141,254,55,248,0,0,16, +128,67,3,127,140,140,99,51,141,130,255,136,0,39,240,152,66,97,9,252,39,240,0,0,16,128,67,195,159,139,236,104, +227,167,202,241,138,22,47,248,163,2,142,8,238,38,8,0,0,16,0,254,163,98,137,106,111,171,187,166,34,139,234,47, +168,136,162,120,143,130,32,56,0,0,16,0,95,227,64,141,254,119,241,213,39,84,141,126,53,248,213,35,212,143,94,57, +248,0,0,16,128,82,99,105,12,168,103,249,159,230,81,137,126,37,120,151,226,93,137,6,36,56,0,0,16,0,79,195, +1,10,254,107,249,166,6,191,139,144,43,248,175,226,14,8,108,35,24,0,0,16,192,99,3,127,140,120,103,59,152,98, +255,200,4,39,208,147,66,125,9,132,32,112,0,0,16,0,127,227,72,141,122,100,203,151,162,76,137,122,37,40,180,162, +222,138,66,56,56,0,0,17,32,76,131,127,140,200,99,51,191,242,0,9,254,38,24,159,226,97,137,254,39,248,0,0, +16,0,95,195,97,13,252,102,19,159,198,0,11,254,44,24,191,226,193,139,254,47,248,0,0,8,128,99,1,127,141,2, +113,35,216,103,64,140,252,48,192,195,3,12,13,254,55,248,0,0,16,128,90,195,42,13,254,97,129,191,230,115,9,252, +47,248,136,130,38,8,132,35,240,0,0,0,0,95,227,97,141,254,119,243,153,6,127,137,152,36,96,159,226,240,143,198, +59,248,0,0,16,128,95,227,12,9,254,96,195,191,234,127,9,132,39,240,152,66,127,9,132,36,112,0,0,16,0,93, +227,97,141,6,103,251,144,102,97,137,254,35,96,141,130,38,137,155,60,120,0,0,24,128,99,227,15,140,48,103,251,152, +98,127,137,134,39,248,131,2,255,200,32,32,128,0,0,16,48,127,195,8,15,254,97,227,155,230,200,136,96,47,248,136, +130,126,8,124,47,24,0,0,16,0,95,227,77,141,254,118,217,159,230,12,9,254,47,248,135,130,111,15,54,32,192,0, +0,16,128,95,195,12,13,252,96,193,191,230,0,9,254,36,152,146,98,73,8,220,46,24,0,0,16,192,127,227,127,140, +32,103,241,152,70,127,9,132,39,240,152,66,127,9,134,47,248,0,0,16,0,199,242,134,26,62,111,251,190,162,154,138, +106,45,232,191,162,134,8,54,33,136,0,0,16,0,95,227,64,13,68,101,243,151,194,76,9,254,37,144,151,130,95,9, +254,39,248,0,0,16,0,255,227,208,139,66,111,249,176,6,207,139,214,44,80,189,194,195,11,30,45,136,0,0,0,0, +127,195,97,13,252,119,241,207,199,63,141,254,60,200,215,163,119,140,254,48,48,0,0,19,32,108,195,127,140,204,97,131, +191,226,127,136,192,39,248,188,98,177,136,254,35,248,0,0,0,0,127,225,109,141,254,118,217,223,231,0,15,255,54,192, +201,227,38,13,236,55,24,0,0,8,128,115,1,127,141,6,119,251,216,7,127,141,170,54,168,223,227,234,142,170,58,184, +0,0,4,64,121,35,127,141,152,118,73,223,231,72,13,254,54,24,223,227,127,141,134,55,248,0,0,18,32,73,131,102, +15,255,98,75,139,98,125,11,204,41,48,164,194,243,11,246,40,136,0,0,16,128,127,227,127,140,252,102,17,159,198,0, +11,254,44,8,143,194,12,8,48,35,128,0,0,16,64,251,194,103,137,126,100,123,191,226,228,8,254,46,96,183,226,196, +11,208,57,248,0,0,18,0,95,227,127,143,90,107,203,139,162,73,136,12,34,128,171,98,161,142,142,35,224,0,0,0, +0,95,227,77,141,254,100,219,159,230,12,9,254,44,232,179,162,255,139,2,44,56,0,0,16,128,71,3,115,15,142,99, +225,156,38,255,139,254,45,248,191,226,219,139,102,45,48,0,0,16,144,75,67,46,13,254,97,227,155,230,72,136,96,47, +248,136,194,126,8,124,39,24,0,0,16,128,95,227,127,12,172,111,249,136,134,127,9,4,36,144,146,66,73,8,204,46, +8,0,0,16,128,90,67,127,143,254,108,11,159,230,0,11,254,47,248,140,130,97,9,254,38,8,0,0,16,128,103,3, +127,141,38,119,249,210,103,127,140,124,49,208,199,163,63,141,178,60,120,0,0,16,144,127,227,127,141,254,102,219,159,226, +127,137,190,32,48,191,226,35,8,204,32,96,0,0,16,0,127,227,22,13,254,101,105,149,166,127,136,48,47,248,135,130, +63,11,182,40,200,0,0,0,128,127,227,127,140,204,111,251,178,38,76,137,254,33,0,143,194,49,9,132,44,112,0,0, +16,128,127,227,127,141,252,99,131,191,230,255,137,172,60,152,139,130,62,11,166,33,128,0,0,16,128,82,67,107,15,254, +104,9,191,174,127,9,140,39,240,141,130,52,9,154,44,120,0,0,16,128,99,3,127,141,14,99,241,136,6,63,136,152, +34,96,191,226,50,9,206,44,8,0,0,16,64,227,34,95,152,20,109,251,247,226,76,9,126,37,136,147,226,105,139,190, +32,248,0,0,16,64,193,67,233,24,254,99,147,170,198,239,137,164,38,248,187,226,169,14,62,32,248,0,0,16,192,83, +35,77,141,254,98,65,155,134,127,139,184,63,248,159,226,127,137,254,39,248,0,0,18,32,72,131,254,8,158,111,233,139, +230,255,137,140,39,48,158,194,219,10,126,59,200,0,0,18,0,95,227,221,142,220,127,49,152,198,255,138,0,39,248,131, +2,105,11,38,33,128,0,0,16,128,95,195,119,141,118,103,249,159,230,51,11,198,35,240,156,194,30,8,120,46,56,0, +0,17,0,79,131,100,15,254,100,219,159,230,56,9,230,33,240,155,66,29,139,146,33,192,0,0,16,128,127,227,12,13, +254,99,243,152,98,127,136,200,47,248,128,2,127,137,134,39,248,0,0,16,128,102,3,255,143,202,102,59,191,226,227,201, +252,39,240,131,2,105,11,38,43,136,0,0,16,32,200,227,250,136,8,111,251,164,130,211,11,204,34,48,173,194,175,12, +191,38,152,0,0,18,16,76,195,127,141,174,103,171,147,34,127,136,0,39,240,152,194,127,9,252,39,240,0,0,10,64, +105,1,127,141,254,127,241,255,199,127,141,252,55,248,223,227,85,141,90,61,168,0,0,16,0,253,226,165,11,222,103,113, +158,198,245,136,150,39,248,152,98,127,137,134,39,248,0,0,16,128,95,227,51,15,254,111,249,159,198,77,137,254,39,248, +131,2,127,136,48,63,252,0,0,16,0,127,227,22,13,254,101,41,151,166,127,136,180,34,240,191,226,62,9,182,44,200, +0,0,16,0,127,227,127,9,182,102,217,159,194,255,137,252,39,248,159,226,127,136,32,47,248,0,0,16,32,252,194,159, +138,82,111,89,189,230,143,139,204,45,176,183,227,211,13,204,36,48,0,0,5,32,254,130,254,25,94,109,75,191,39,159, +143,236,43,176,188,194,147,8,94,35,72,0,0,16,0,95,227,86,141,254,111,249,128,6,127,137,6,39,248,143,34,247, +8,252,39,152,0,0,19,0,79,131,102,15,254,125,145,157,38,127,137,124,37,240,151,194,223,139,70,57,248,0,0,16, +0,95,227,255,138,50,102,243,155,194,8,11,254,39,240,191,226,212,139,82,45,120,0,0,16,0,95,195,73,9,252,100, +147,159,194,0,11,222,43,72,189,226,180,139,222,41,72,0,0,0,0,97,1,132,6,16,24,64,97,1,132,6,16,24, +64,65,35,4,216,18,64,120,0,0,127,249,255,224,140,2,48,8,192,35,0,140,6,48,24,192,195,54,12,152,30,0, +0,6,0,24,0,204,6,24,16,96,255,195,201,3,32,12,128,34,33,136,204,50,96,248,0,0,63,240,255,192,0,0, +0,127,248,51,0,200,2,32,24,128,98,35,12,152,62,0,0,0,0,255,195,3,12,12,48,48,192,195,255,3,32,12, +128,34,1,136,204,50,96,248,0,0,2,0,12,7,255,159,254,12,64,97,131,255,15,246,12,128,50,1,136,206,50,96, +248,0,0,4,128,18,6,73,141,44,28,160,18,0,206,15,60,108,152,34,1,136,140,50,96,248,0,0,3,0,76,1, +255,15,252,35,0,12,7,255,131,48,12,192,35,1,140,140,50,96,248,0,0,3,0,140,67,51,4,200,19,1,255,231, +255,131,32,12,128,34,1,136,140,50,96,248,0,0,3,1,255,231,255,128,192,63,240,192,195,3,15,252,13,192,50,0, +136,142,34,96,248,0,0,12,0,126,1,152,12,96,127,240,140,66,49,15,252,7,128,26,0,200,142,34,96,248,0,0, +8,96,33,128,204,15,252,48,48,192,195,3,15,252,4,128,50,0,136,142,50,96,248,0,0,12,0,126,1,152,12,96, +127,240,140,66,49,15,252,63,240,31,128,219,14,98,97,248,0,0,32,0,243,194,73,9,228,39,144,128,67,255,15,252, +12,128,50,1,136,206,62,96,248,0,0,3,0,12,7,255,130,24,50,57,152,32,198,15,252,63,240,50,0,200,142,50, +112,248,0,0,3,0,76,193,182,31,254,64,9,127,161,134,6,24,31,224,18,0,200,142,34,112,248,0,0,3,0,236, +230,123,153,38,103,153,146,103,201,153,254,12,128,50,0,136,142,50,96,248,0,0,16,97,243,231,223,132,24,125,249,22, +100,89,159,126,40,176,162,194,235,91,111,67,24,0,0,0,0,48,0,96,0,192,3,0,14,0,104,1,176,12,96,97, +129,131,28,6,96,8,0,0,3,0,12,0,104,6,24,48,49,255,225,254,0,192,31,224,127,128,48,0,192,127,248,0, +128,51,0,140,2,48,8,64,97,1,134,4,24,48,48,128,198,1,144,2,0,0,0,0,51,1,134,6,12,48,49,140, +100,96,129,0,12,64,97,131,191,15,254,0,24,0,0,2,0,12,0,48,0,64,127,248,0,0,0,3,48,24,96,64, +195,3,24,6,64,8,0,0,8,64,33,1,134,12,12,127,249,191,32,192,3,24,15,224,0,128,6,0,24,3,192,0, +0,16,32,97,128,196,31,254,127,248,0,0,0,15,252,63,224,0,0,0,31,254,127,248,8,64,33,0,132,31,254,28, +224,33,0,132,31,254,127,248,33,1,134,12,12,96,24,0,0,0,32,97,128,132,15,252,3,0,12,0,48,31,254,3, +128,30,0,206,14,30,96,24,0,0,4,1,24,102,33,136,204,51,32,65,128,0,31,254,0,0,97,129,135,28,6,96, +24,0,0,0,96,127,129,128,6,0,31,248,97,1,4,4,16,127,248,33,0,206,14,12,96,24,0,0,16,96,97,135, +255,134,24,31,224,97,129,254,7,248,24,97,255,224,204,15,60,96,24,0,0,0,0,127,129,2,7,248,16,32,127,129, +2,7,248,16,33,255,224,134,14,28,96,24,0,0,4,128,18,3,255,9,36,36,144,255,195,255,9,36,127,251,255,240, +140,14,28,96,24,0,0,16,32,97,135,255,159,254,16,64,195,66,89,31,124,89,96,83,66,73,159,254,67,8,8,64, +51,7,255,128,192,63,240,56,7,255,134,24,120,249,35,32,140,6,48,48,192,0,0,16,32,97,135,255,129,96,63,240, +54,199,255,131,236,63,240,255,193,206,29,46,68,136,0,0,8,64,33,3,255,8,196,63,240,140,67,255,31,254,127,248, +255,195,3,15,252,63,240,0,0,4,129,243,192,200,159,62,63,240,204,195,51,15,252,28,192,255,199,255,135,56,112,56, +0,0,73,0,167,231,208,149,126,125,81,247,229,95,159,212,19,249,254,167,233,133,190,20,200,0,0,127,249,128,102,1, +152,6,96,25,128,102,1,152,6,96,25,128,102,1,152,30,0,0,3,0,12,3,255,31,254,99,25,140,102,57,153,182, +108,121,225,230,1,152,6,96,112,0,0,6,0,24,7,255,131,0,24,0,127,131,130,26,8,72,32,32,128,130,2,8, +8,224,0,0,0,1,255,230,1,152,22,104,217,146,102,57,152,198,103,153,179,103,133,152,6,96,112,0,0,3,0,12, +3,255,12,204,51,48,255,195,51,12,196,255,252,192,194,1,8,12,32,112,0,0,60,240,214,194,89,9,100,55,179,255, +242,89,9,100,37,145,148,68,113,23,220,0,0,0,1,255,224,48,15,252,63,240,204,195,255,12,204,51,49,255,243,3, +12,12,48,240,0,0,0,0,255,194,1,11,244,47,208,128,65,254,4,12,31,240,64,193,255,4,12,31,240,0,0,0, +0,255,194,253,8,4,44,16,63,3,140,31,252,51,16,255,192,120,7,34,112,248,0,0,127,249,128,102,1,152,6,0, +0,0,0,0,0,0,127,249,128,102,0,146,18,15,192,33,0,132,2,16,24,64,97,55,4,152,30,0,0,0,1,255, +228,129,146,2,15,224,96,1,254,7,252,0,49,254,128,2,0,24,1,192,0,0,0,1,255,228,64,147,2,63,240,32, +1,144,7,252,1,0,4,7,255,128,64,1,0,0,0,1,0,12,7,255,152,198,103,24,52,1,155,14,56,120,192,97, +129,151,7,206,24,8,0,0,0,1,255,228,0,159,4,62,48,7,231,227,31,172,36,240,144,194,71,153,2,71,248,0, +0,0,1,255,228,0,151,250,14,0,232,198,54,7,112,123,224,62,129,219,28,70,7,0,0,0,0,1,255,228,193,151, +226,49,129,255,199,51,12,196,63,240,30,128,219,14,99,112,248,0,0,0,1,255,228,0,159,254,16,32,127,129,2,7, +248,3,1,255,224,132,14,28,96,24,0,0,32,0,192,1,128,6,0,0,0,0,0,128,6,0,48,0,192,6,0,0, +0,4,0,63,129,254,14,16,103,192,30,1,254,30,30,7,0,7,1,192,3,224,0,224,0,0,0,1,63,198,3,9, +140,54,48,24,128,127,141,254,32,25,191,230,1,144,4,0,240,0,0,0,129,2,6,12,12,50,15,216,11,192,46,13, +184,36,177,178,101,136,192,32,3,128,0,0,0,1,63,230,48,12,192,3,240,15,192,35,13,140,55,240,152,134,2,19, +254,15,248,0,129,3,6,12,13,254,4,200,19,32,76,141,254,55,249,131,4,12,16,48,0,192,0,0,0,129,2,6, +127,13,252,0,144,2,64,127,131,254,49,192,133,134,50,17,142,12,8,0,0,0,1,159,227,65,133,6,4,24,31,225, +127,140,216,35,97,141,132,38,193,155,12,56,0,0,1,129,4,2,50,12,140,6,56,63,224,0,133,252,55,240,144,70, +65,17,252,7,240,0,0,0,129,7,6,28,8,200,14,184,51,96,8,9,252,32,49,129,134,60,16,48,0,64,0,0, +1,1,4,6,255,136,192,34,192,27,0,255,129,252,48,192,155,70,205,147,50,1,128,0,0,0,129,155,3,127,129,254, +12,192,3,0,255,140,216,35,97,141,132,38,193,155,28,56,0,0,0,9,62,38,102,137,26,39,232,55,160,158,143,90, +39,105,140,166,96,147,2,8,56,0,0,3,1,15,134,126,15,16,15,240,2,64,255,128,118,49,144,159,198,8,16,32, +3,128,0,0,1,129,127,230,24,11,252,1,152,127,224,27,9,252,47,249,157,132,124,16,248,30,24,0,0,2,65,9, +6,102,9,254,12,64,127,225,127,129,16,55,248,153,134,68,17,255,6,0,0,0,4,17,17,70,77,15,246,14,136,62, +160,230,11,216,52,81,145,68,77,145,62,4,200,0,0,0,129,3,6,255,136,0,39,240,16,64,65,9,252,32,129,146, +70,201,146,34,3,128,0,0,4,1,63,230,200,143,122,12,136,55,160,200,143,122,47,105,172,164,190,134,2,16,56,0, +0,0,129,31,198,12,9,254,47,248,12,192,193,136,104,39,241,188,134,28,16,252,14,56,0,0,0,81,1,230,255,139, +254,43,224,47,160,187,138,236,42,177,174,197,191,86,62,16,152,0,0,0,129,63,230,127,13,252,3,0,63,224,103,11, +254,57,137,159,198,60,17,220,12,24,0,0,0,128,63,230,0,13,254,5,216,23,96,127,140,0,39,241,191,228,111,3, +38,11,136,0,0,8,121,61,230,197,11,92,15,16,51,224,243,141,168,47,185,155,196,110,19,124,25,56,0,0,0,0, +127,1,132,6,16,24,64,97,1,132,6,16,16,64,65,35,4,216,26,64,120,0,0,0,0,127,1,132,6,16,24,64, +121,1,180,4,80,16,64,193,35,4,216,30,64,56,0,0,0,0,255,194,1,8,36,47,208,130,66,201,9,228,35,17, +158,70,205,82,7,64,8,0,0,2,0,127,131,255,13,136,51,96,192,67,255,130,2,31,152,98,193,136,12,35,96,248, +0,0,24,16,95,195,8,31,254,112,192,195,3,127,128,0,31,192,97,1,132,12,27,96,120,0,0,16,1,107,197,171, +31,164,0,145,242,71,233,1,164,126,145,134,68,17,31,71,99,24,0,0,0,0,255,194,49,11,244,40,208,191,66,253, +8,4,47,209,140,70,253,87,255,95,232,0,0,5,32,243,131,207,143,236,127,248,97,129,254,3,48,127,248,63,1,132, +14,18,96,120,0,0,96,25,128,102,1,152,6,96,25,128,102,1,152,6,96,25,128,103,255,128,6,0,0,0,96,97, +4,204,153,166,99,153,142,102,109,155,30,120,121,128,103,255,143,254,0,0,63,0,204,2,16,8,65,225,231,135,152,6, +96,25,128,102,1,159,254,96,24,60,241,243,230,73,153,38,100,153,190,102,121,152,6,96,25,128,103,255,152,6,3,0, +140,66,49,8,196,35,16,255,192,48,24,198,99,25,140,102,49,159,254,0,24,0,0,3,0,12,3,255,15,252,3,1, +255,231,255,128,192,35,16,140,66,49,15,252,63,240,0,0,0,1,4,38,17,159,222,103,217,150,102,149,158,94,113,57, +156,102,1,159,254,0,24,0,0,0,0,255,128,12,16,226,115,57,173,38,56,155,242,123,121,204,230,96,159,254,127,248, +0,0,4,128,210,65,74,31,254,127,248,178,66,253,11,244,47,208,140,66,33,15,252,0,16,0,0,0,17,255,224,97, +129,134,6,24,16,96,65,131,6,8,16,96,71,3,24,56,0,0,63,240,255,224,1,128,6,1,144,12,64,225,14,4, +112,16,0,192,31,0,120,0,16,0,96,17,128,70,1,24,4,96,17,128,70,1,24,4,96,1,128,4,0,112,0,0, +0,17,255,192,33,0,132,50,16,152,70,97,17,4,12,16,96,195,3,24,56,0,0,0,0,49,1,134,4,12,48,25, +255,229,254,1,8,4,32,48,129,130,14,24,97,192,0,0,0,0,143,226,63,141,34,124,137,194,34,8,136,98,37,136, +244,99,49,129,134,4,112,0,0,0,24,8,100,33,153,182,52,216,115,96,205,135,54,30,216,216,102,33,144,6,0,112, +0,0,0,9,248,97,141,134,54,24,216,99,111,253,134,54,24,216,97,97,129,134,6,24,120,0,0,4,0,48,0,255, +6,24,112,65,255,225,255,128,6,31,248,0,96,1,143,254,0,24,0,0,32,8,192,35,246,159,218,85,107,85,163,86, +138,90,105,105,100,33,48,140,194,14,56,0,0,0,9,252,35,100,141,146,54,72,217,39,244,137,146,38,72,153,38,96, +153,134,70,56,0,0,48,8,208,35,36,140,210,127,72,201,33,36,135,146,28,72,96,35,144,155,70,71,56,0,0,0, +8,248,98,37,136,150,62,88,153,98,37,143,150,102,89,137,102,33,144,134,78,56,0,0,0,9,252,33,4,140,18,63, +72,137,38,36,149,146,30,72,49,33,128,140,2,96,56,0,0,24,8,32,39,244,159,210,6,73,145,35,68,135,18,12, +72,121,35,96,152,6,64,120,0,0,0,9,253,102,53,154,214,107,89,173,102,181,154,214,123,88,97,97,193,140,134,96, +120,0,0,0,9,252,36,22,157,90,85,105,117,164,214,147,90,93,105,92,39,16,144,66,71,56,0,0,8,8,48,97, +229,140,150,99,89,253,99,229,136,150,38,88,185,98,17,136,70,63,120,0,0,0,0,79,225,191,159,34,8,136,98,35, +201,158,102,125,152,68,97,49,133,132,22,112,0,0,51,9,254,39,234,159,170,126,169,254,167,254,159,170,126,169,114,165, +200,151,98,125,56,0,0,8,9,36,102,181,138,150,126,89,249,96,133,134,22,127,88,97,97,1,140,6,96,120,0,0, +16,8,192,35,244,152,82,253,73,181,38,212,159,82,103,73,153,38,16,152,70,63,56,0,0,6,9,248,103,141,134,54, +126,217,251,97,141,143,54,62,217,106,101,129,134,6,24,120,0,0,0,9,248,102,37,152,150,126,88,249,97,5,159,150, +18,88,73,99,33,153,134,78,120,0,0,0,9,249,32,100,131,18,30,73,205,36,20,159,210,24,72,97,33,128,159,198, +96,56,0,0,6,9,248,37,132,130,18,255,72,97,32,132,159,146,127,73,13,36,48,159,198,99,120,0,0,0,9,253, +33,132,141,146,127,73,253,32,132,143,210,127,72,33,32,240,159,134,64,48,8,8,96,39,236,134,50,24,201,255,32,140, +134,50,126,200,96,33,128,159,198,96,56,0,0,8,8,96,39,244,141,146,127,73,113,39,244,159,210,48,72,253,32,32, +128,130,30,56,0,0,8,9,160,39,246,159,26,92,105,253,160,134,159,218,107,105,36,36,144,146,194,8,56,0,0,0, +9,252,38,20,152,210,127,73,145,39,244,159,82,117,73,213,39,80,149,2,4,56,0,0,1,0,108,131,255,15,252,6, +1,255,225,134,14,28,127,248,17,128,198,6,24,49,192,0,0,0,9,136,99,197,135,150,115,88,33,103,245,135,22,42, +88,169,100,177,146,70,24,56,0,0,8,8,96,39,244,130,18,127,73,237,36,180,150,210,24,72,249,38,176,178,6,8, +56,0,0,8,8,48,39,254,134,26,50,105,249,166,198,134,218,50,105,153,33,224,140,66,96,56,0,0,8,8,112,35, +102,152,218,127,232,249,160,6,159,218,24,104,216,35,48,159,194,113,56,0,0,8,9,164,38,148,155,210,127,72,65,35, +244,136,210,114,72,120,32,192,142,6,96,56,0,0,8,9,36,36,148,159,210,0,73,253,32,52,128,210,127,73,1,36, +48,159,194,64,56,0,0,0,8,248,35,100,137,146,103,73,45,33,196,159,210,28,72,248,38,176,146,6,8,56,0,0, +8,8,48,39,252,136,146,60,72,121,39,52,156,146,50,72,200,34,32,152,130,66,56,0,0,34,8,200,39,244,159,210, +9,73,253,38,132,159,210,127,72,100,34,144,147,198,8,56,0,0,24,9,108,39,172,134,178,126,201,155,39,236,159,178, +98,201,249,36,32,144,134,78,120,0,0,8,8,96,39,244,130,18,127,73,45,36,180,159,210,28,72,249,38,176,146,6, +8,56,0,0,16,32,97,135,255,159,254,4,17,251,102,109,159,182,102,217,251,102,97,153,134,110,112,0,0,0,8,252, +34,22,143,218,12,104,49,167,254,147,122,77,233,126,39,56,144,102,71,56,0,0,8,8,112,33,102,136,218,127,232,121, +160,150,154,218,42,104,137,32,112,159,194,96,56,0,0,0,9,252,38,52,159,210,97,73,253,35,4,159,210,85,72,213, +38,144,150,194,22,56,0,0,8,8,32,39,244,136,146,54,72,217,39,244,128,18,127,73,141,38,48,159,198,127,56,0, +0,8,8,48,39,254,144,122,103,105,253,164,214,151,90,245,104,212,35,72,153,226,68,56,0,0,8,9,253,39,244,135, +18,103,73,253,39,244,158,146,122,73,168,39,160,128,134,14,56,0,0,8,8,164,34,164,150,146,30,73,205,32,132,138, +82,107,73,105,33,224,140,194,97,56,0,0,2,8,248,32,36,143,146,2,73,255,36,148,154,210,46,72,249,38,176,146, +2,56,56,0,0,0,9,252,38,22,159,218,127,105,145,167,254,153,26,127,105,253,37,16,183,194,31,56,0,0,3,9, +248,32,198,159,250,14,105,255,163,246,159,186,31,104,120,163,240,155,2,76,56,0,0,8,65,255,231,255,143,164,38,144, +250,67,233,9,140,36,49,255,192,97,3,4,112,240,0,0,0,9,254,32,6,159,218,99,105,253,160,6,159,218,73,105, +253,38,208,159,194,127,56,0,0,8,9,252,39,254,159,218,62,104,249,160,198,159,218,12,104,253,34,16,143,194,63,56, +0,0,0,9,254,33,102,159,218,85,105,253,160,6,143,218,0,105,253,34,160,146,66,88,56,0,0,41,9,104,38,180, +139,82,127,73,253,38,244,159,210,12,73,253,35,224,154,198,72,56,0,0,20,8,144,35,246,153,154,127,104,153,163,246, +137,26,63,104,129,167,80,150,162,74,184,0,0,0,9,255,36,82,149,74,127,233,111,167,250,159,74,125,41,118,164,184, +148,162,86,120,0,0,32,65,247,230,73,31,60,125,249,249,134,127,143,24,7,112,255,224,97,7,4,112,240,0,0,18, +9,254,35,38,143,218,108,105,253,163,246,139,26,63,105,252,35,48,135,130,115,56,0,0,8,8,252,35,244,143,210,63, +72,249,39,244,159,210,127,72,253,39,240,137,134,102,56,0,0,2,0,24,0,96,31,254,127,248,24,96,97,129,6,12, +16,48,65,129,12,12,96,224,0,0,0,128,3,7,204,3,254,76,217,162,35,136,134,34,57,152,246,102,49,144,134,6, +112,0,0,6,0,24,0,100,31,248,6,96,153,194,71,155,26,76,72,97,33,132,28,240,99,128,0,0,0,128,3,7, +204,4,254,19,248,66,33,8,132,34,61,137,230,36,49,129,134,4,112,0,0,16,0,64,3,15,159,166,54,152,202,99, +41,141,166,38,152,154,102,109,145,190,92,136,0,0,4,0,56,193,255,14,24,7,192,127,199,131,128,128,63,240,24,64, +193,14,12,97,224,0,0,0,65,249,7,228,12,62,49,248,249,35,100,136,146,38,200,155,38,105,145,102,93,48,0,0, +3,0,108,129,51,8,222,3,192,252,7,160,0,196,63,240,24,64,193,14,12,112,224,0,0,0,65,249,3,196,0,126, +1,249,249,35,4,141,50,38,201,186,39,184,144,102,1,112,0,0,0,65,241,6,68,25,254,125,249,147,38,76,159,50, +100,137,190,103,249,144,198,6,112,0,0,16,0,103,231,233,137,180,124,112,113,199,89,144,192,63,240,28,192,97,7,12, +112,240,0,0,24,64,97,7,228,31,254,24,248,97,39,228,132,18,52,200,155,39,233,152,230,1,112,0,0,32,64,129, +3,228,24,254,99,249,233,38,164,154,146,106,73,235,32,40,129,230,29,48,0,0,0,65,249,3,100,13,254,39,249,185, +36,132,159,178,102,201,26,38,120,159,230,99,112,0,0,0,1,253,134,6,31,154,127,249,161,38,228,154,146,106,73,107, +37,44,148,166,127,176,0,0,0,65,249,0,196,3,126,60,249,153,36,4,159,146,24,200,99,33,232,159,230,1,48,0, +0,8,65,255,231,255,130,16,127,249,152,100,32,143,252,63,240,16,192,195,14,12,112,224,0,0,16,64,97,135,230,12, +62,36,249,241,39,132,140,146,102,73,51,33,233,156,102,65,112,0,0,16,129,239,199,255,7,228,125,144,71,103,33,128, +128,127,240,24,192,195,14,12,112,224,0,0,8,65,249,7,228,6,62,127,249,13,35,228,131,18,30,73,251,33,137,134, +102,49,112,0,0,0,0,255,192,252,15,252,51,48,255,194,51,15,252,34,16,255,192,97,7,12,112,240,0,0,16,64, +241,3,196,27,126,127,105,45,36,180,159,242,28,200,118,227,83,153,2,71,248,0,0,0,64,249,2,100,15,254,0,121, +249,36,36,150,146,90,73,107,33,141,141,230,97,48,0,0,0,65,249,128,198,6,62,127,248,33,35,132,158,146,126,73, +107,37,168,159,230,113,176,0,0,36,65,249,7,228,15,126,61,249,249,37,164,158,146,126,200,98,39,249,134,102,27,112, +0,0,6,65,241,1,132,31,254,127,249,105,39,228,150,146,126,201,251,33,152,159,230,99,112,0,0,0,65,253,133,246, +23,254,127,249,13,39,228,152,146,126,73,137,39,237,159,166,127,176,0,0,34,64,217,7,244,15,190,62,248,249,35,100, +159,210,127,73,123,39,45,159,230,1,48,0,0,8,65,255,224,132,15,252,63,240,192,195,255,31,254,127,249,253,197,255, +131,24,56,192,0,0,36,65,253,2,100,15,62,127,249,105,39,228,134,18,126,72,99,39,232,143,230,121,56,0,0,16, +0,103,231,250,132,254,39,233,183,164,15,155,136,126,225,127,165,188,150,246,126,112,0,0,8,0,96,1,255,143,254,48, +9,128,100,1,128,6,0,24,0,96,1,128,12,0,240,0,0,8,0,96,1,255,143,254,48,25,128,100,193,129,134,2, +24,8,96,1,0,12,0,240,0,0,8,0,96,1,255,143,254,36,25,176,100,209,134,102,16,216,255,98,1,128,12,1, +240,0,0,8,0,96,1,255,143,254,38,201,147,36,201,130,38,25,152,196,102,49,129,132,4,240,0,0,8,0,32,1, +255,15,254,48,25,160,100,225,128,134,0,144,30,67,193,8,12,1,240,0,0,8,0,96,1,255,12,4,127,17,126,65, +25,4,100,31,176,65,193,0,134,6,31,248,8,0,96,1,255,143,254,102,217,210,101,201,131,230,25,152,199,102,49,17, +140,4,240,0,0,8,0,96,1,255,140,6,97,9,237,34,100,137,214,61,216,225,99,253,128,6,0,112,0,0,16,0, +96,3,255,152,230,127,217,24,99,253,141,182,63,216,255,99,109,141,182,0,240,0,0,16,128,227,7,255,139,66,127,233, +230,167,218,159,250,33,249,246,64,88,129,98,60,248,0,0,16,0,96,67,255,159,246,96,24,127,97,253,135,230,63,216, +255,99,101,143,244,32,112,0,0,0,0,64,1,0,4,28,17,192,124,1,192,4,0,16,8,64,33,1,135,252,15,224, +9,0,102,1,152,140,102,113,177,199,133,28,4,224,23,128,86,33,24,132,102,16,248,0,0,0,128,50,0,200,3,38, +124,240,51,128,200,3,32,12,128,242,54,200,195,54,12,248,0,0,0,1,251,7,236,24,182,126,240,3,7,252,2,48, +108,201,187,231,135,151,0,71,248,0,0,63,240,128,2,0,8,0,32,0,128,2,0,8,0,32,0,128,3,255,128,0, +0,1,255,230,0,24,96,111,241,182,198,153,26,100,105,177,166,198,24,31,254,127,248,0,1,255,230,0,27,248,108,1, +176,6,255,155,16,104,65,161,7,132,31,254,127,248,0,1,255,230,0,27,252,111,241,134,6,255,24,96,97,129,191,198, +0,31,254,127,248,0,1,255,230,0,27,252,105,145,191,198,155,27,252,111,241,134,6,24,31,254,127,248,0,1,255,230, +132,31,144,124,241,179,199,229,25,20,127,209,210,102,73,152,0,127,248,0,1,255,230,36,24,176,110,249,139,6,239,24, +176,126,249,139,6,44,31,254,127,248,0,1,255,230,255,26,108,111,241,255,230,126,27,252,105,49,175,199,231,31,4,127, +248,127,249,155,6,76,25,48,100,193,147,38,204,158,62,112,113,128,7,255,128,0,0,1,255,230,0,26,8,108,97,159, +6,56,24,240,102,97,240,198,0,31,254,127,248,0,1,255,230,64,25,128,111,241,166,6,255,31,254,97,193,153,134,195, +31,254,127,248,0,1,255,230,24,27,252,104,17,191,198,255,27,124,127,241,213,71,87,25,0,127,248,0,1,255,230,36, +27,252,103,97,140,7,255,153,128,111,241,248,198,127,31,254,127,248,3,0,12,0,48,0,192,3,1,255,231,255,128,192, +3,0,12,0,48,0,192,3,0,0,0,0,32,63,195,240,0,192,3,0,12,7,255,128,192,3,0,12,0,48,0,192, +3,0,0,0,0,0,76,193,51,4,204,19,49,255,231,255,140,204,51,48,204,194,51,24,204,65,48,0,0,2,64,57, +7,196,2,16,8,64,97,135,255,130,24,24,64,97,3,4,28,16,96,64,0,0,24,0,64,3,255,12,192,99,1,12, +7,255,159,254,3,0,12,0,48,0,192,3,0,0,0,3,0,12,7,255,128,192,3,0,97,129,134,31,254,24,96,65, +131,6,28,24,96,96,0,0,3,0,204,193,50,6,216,3,0,255,224,48,0,192,127,248,12,0,48,0,192,3,0,0, +0,8,0,102,67,159,28,240,87,136,70,33,15,128,192,3,1,255,224,48,0,192,3,0,0,0,32,128,134,2,24,29, +252,121,176,150,226,91,137,78,45,60,140,194,34,9,136,44,224,0,0,3,0,127,195,255,12,196,63,240,204,67,255,3, +240,28,129,255,231,255,128,32,0,128,0,0,2,0,12,7,255,130,16,24,64,115,131,91,24,70,3,1,255,224,48,0, +192,3,0,0,0,2,0,15,224,48,15,252,48,48,255,195,255,12,12,63,240,12,7,255,128,192,3,0,0,0,8,32, +33,128,206,15,252,35,16,255,194,49,15,252,3,1,255,231,255,128,192,3,0,0,0,3,0,12,3,255,0,192,127,248, +36,64,81,14,64,127,249,255,224,104,7,60,112,24,0,0,3,1,255,231,255,128,192,127,249,179,102,73,155,246,99,25, +191,102,253,152,198,99,112,0,0,32,208,195,99,127,140,254,254,216,223,227,127,141,190,48,48,255,243,35,12,72,48,96, +0,0,4,0,24,0,96,1,128,6,0,30,0,110,1,142,6,16,24,0,96,1,128,6,0,0,0,2,0,12,0,48, +31,254,3,0,12,0,56,0,248,3,48,12,0,48,0,192,3,0,0,0,0,129,230,7,216,19,96,77,193,55,132,219, +147,102,125,129,230,4,24,0,96,1,128,0,0,2,0,12,0,48,0,254,3,0,12,1,254,15,252,32,16,128,66,1, +15,252,48,48,0,0,2,0,8,0,63,0,192,2,1,255,231,255,128,128,3,192,13,192,33,0,128,2,0,0,0,3, +0,15,224,63,128,192,63,240,192,195,1,15,252,63,240,192,2,0,24,0,64,0,0,0,2,0,15,224,63,128,192,127, +249,128,103,249,152,38,96,153,254,102,1,159,254,127,248,0,0,2,0,15,224,63,128,192,127,249,131,102,233,153,230,103, +153,187,102,133,159,254,127,248,0,0,8,64,97,7,228,2,16,24,97,253,192,133,134,18,127,64,33,0,132,31,208,64, +64,0,0,0,65,253,6,196,27,16,126,65,253,134,55,159,210,126,65,177,6,196,31,208,63,64,0,0,0,0,63,128, +134,2,24,8,96,33,128,134,2,24,8,96,39,128,156,2,0,8,0,0,0,63,240,255,192,33,0,132,2,16,8,64, +39,0,152,2,0,8,7,255,159,254,0,112,255,194,0,15,254,63,248,128,2,255,11,8,108,33,179,134,192,147,6,71, +240,0,0,4,0,115,231,15,137,38,36,152,146,98,73,137,38,124,153,242,224,203,6,32,48,128,0,0,0,0,247,231, +31,152,102,97,153,246,102,25,152,102,97,153,246,103,155,144,96,1,128,0,0,8,0,127,1,136,15,254,127,249,192,3, +126,13,8,36,32,147,134,64,153,2,71,248,0,0,0,1,251,230,45,153,162,126,137,138,39,232,159,162,100,137,146,230, +233,31,160,64,128,0,0,8,0,99,231,237,143,178,24,201,251,39,236,132,50,52,200,139,103,239,156,240,0,192,0,0, +4,0,243,230,15,153,162,118,201,251,166,235,153,34,124,137,242,96,203,142,32,112,128,0,0,1,0,108,131,255,15,252, +6,1,255,225,134,15,252,127,216,99,1,153,6,12,15,224,32,0,195,231,237,146,34,88,137,250,32,136,155,162,104,137, +162,103,251,191,160,0,128,0,0,31,192,127,131,249,3,252,27,225,156,224,112,15,252,63,224,192,131,62,12,2,31,248, +0,129,247,135,158,10,216,43,248,175,194,189,10,228,42,177,170,36,239,147,3,79,248,0,1,222,230,74,149,234,87,169, +82,165,122,149,138,117,41,86,163,123,137,56,64,32,0,0,63,248,255,226,0,8,0,32,0,128,2,0,8,0,32,1, +128,6,0,16,0,0,0,0,0,255,226,0,9,248,39,240,144,194,67,9,12,36,225,144,6,64,209,134,71,248,0,0, +63,248,128,2,0,11,254,47,248,131,2,12,8,48,96,193,131,4,12,16,224,0,0,0,1,255,230,0,24,64,97,1, +191,230,49,152,198,99,25,136,68,97,19,12,88,240,0,0,0,0,255,226,0,8,0,47,248,136,2,32,8,252,38,17, +152,70,67,19,12,88,224,0,0,0,1,255,246,0,24,96,97,129,191,198,255,152,96,97,177,134,68,24,23,254,95,248, +0,0,0,0,255,226,8,8,40,32,144,191,226,255,136,96,97,193,141,134,98,19,14,88,8,0,0,0,0,255,226,48, +8,192,47,248,152,2,76,11,252,96,193,131,7,255,144,48,64,192,0,0,0,1,255,230,0,31,226,120,169,234,167,170, +158,170,126,169,250,164,96,147,66,88,184,0,0,0,0,255,226,0,11,252,41,144,191,194,153,11,252,97,129,191,198,24, +16,96,95,248,0,0,0,0,255,226,0,11,252,47,240,176,194,255,11,252,96,225,135,7,255,144,96,71,128,0,0,0, +0,255,226,38,11,254,38,96,191,226,255,137,252,111,241,176,198,255,19,12,79,240,0,0,0,0,255,226,24,11,252,44, +48,191,194,255,11,108,111,241,150,132,219,22,102,67,136,0,0,0,0,255,226,64,9,62,44,136,254,38,207,155,162,127, +217,211,229,72,145,62,68,216,0,0,0,1,255,230,26,27,254,111,249,153,135,255,154,100,111,241,166,68,255,16,96,65, +128,0,0,0,1,255,230,148,26,144,127,121,255,39,94,157,72,127,33,61,196,71,19,54,89,136,0,0,0,0,255,226, +0,11,254,47,240,191,194,195,11,252,111,241,159,135,230,16,240,94,248,0,0,0,1,255,230,1,31,196,96,25,255,231, +145,31,212,107,81,173,68,161,19,228,92,112,0,0,0,1,255,230,0,31,254,123,17,255,199,187,31,254,120,33,233,197, +247,22,111,65,24,0,0,0,1,255,230,128,31,222,127,65,189,6,183,155,214,107,81,255,68,173,22,228,80,144,0,0, +0,0,12,0,96,1,128,4,0,48,0,130,6,8,16,48,192,199,255,159,6,0,0,3,0,12,3,255,15,252,3,0, +12,7,255,131,128,12,64,97,129,3,15,252,48,24,0,0,0,0,127,129,2,7,248,24,32,127,129,254,4,8,127,248, +49,1,134,15,252,60,24,0,0,6,0,51,3,255,15,204,14,1,255,225,134,31,254,96,8,127,128,0,0,0,127,248, +6,0,51,3,255,15,204,14,1,255,225,150,15,204,108,152,28,0,198,0,240,30,0,0,0,127,240,192,193,3,6,8, +8,96,51,0,104,1,224,7,128,55,7,135,152,6,0,0,63,241,255,195,3,4,200,25,96,49,0,204,1,224,3,128, +63,3,135,152,6,0,0,0,1,255,1,140,6,48,28,240,115,225,193,7,140,19,96,199,2,28,25,254,76,24,0,0, +4,0,48,7,255,159,254,12,0,63,128,255,7,24,22,96,207,2,60,25,252,76,56,0,0,125,249,247,224,89,153,100, +44,144,226,193,142,7,24,28,96,211,198,59,144,194,0,0,0,48,255,195,128,12,0,63,240,255,195,67,13,152,34,64, +143,2,60,27,156,88,24,0,0,3,32,76,195,33,15,254,63,248,24,0,255,3,140,30,96,207,6,28,17,252,12,56, +0,0,16,0,71,225,233,134,38,24,153,255,65,133,14,156,122,97,109,133,143,6,102,57,8,0,0,0,1,248,6,95, +155,34,124,153,147,70,205,31,28,100,97,185,135,231,1,102,5,8,0,0,0,113,255,131,35,4,200,127,249,128,100,0, +135,248,24,96,51,0,120,7,252,112,56,0,0,3,0,12,7,255,133,40,52,177,146,96,72,15,248,24,96,51,0,120, +7,248,120,120,0,0,8,0,103,227,127,152,226,126,152,98,103,237,31,156,26,113,233,133,167,22,118,57,8,0,0,16, +25,95,197,88,31,64,125,249,247,97,29,134,84,127,112,77,195,55,8,182,102,136,0,0,3,0,239,194,49,14,220,59, +112,140,67,255,0,192,63,240,97,128,252,3,248,120,120,0,0,31,224,123,128,252,15,60,61,240,243,199,125,159,254,95, +232,127,129,254,6,24,127,248,0,0,255,194,1,8,4,32,16,128,66,1,8,4,32,16,255,195,255,8,4,3,0,12, +0,48,31,254,3,0,12,0,48,15,252,48,48,192,195,3,15,252,63,240,0,0,8,0,96,1,255,143,254,32,25,254, +101,249,132,102,17,152,126,97,241,128,4,0,240,0,0,0,0,255,195,3,12,12,48,48,255,192,32,31,252,127,240,24, +64,193,14,12,112,240,0,0,123,249,239,228,136,146,34,72,137,38,100,153,158,102,121,25,12,96,97,1,28,0,0,125, +249,246,100,208,147,66,77,9,52,36,208,159,66,121,57,4,192,16,0,64,0,0,63,240,255,195,3,12,12,48,48,255, +195,255,0,0,12,192,97,131,3,24,6,0,0,0,17,240,103,217,155,102,109,153,182,102,217,155,102,125,249,247,230,17, +128,6,0,24,0,0,127,240,24,192,65,3,12,24,241,195,135,255,15,252,48,48,192,195,255,15,252,0,0,0,1,228, +135,146,18,72,73,33,36,196,147,18,204,123,17,232,68,33,129,134,4,8,0,0,123,249,239,228,134,18,24,72,97,33, +132,134,30,24,120,97,1,128,6,0,120,0,0,127,249,255,224,3,15,204,63,48,132,194,19,15,204,63,48,128,192,3, +0,56,0,0,6,0,16,0,196,6,24,63,241,255,224,0,15,252,48,48,192,195,3,15,252,48,48,0,0,0,129,130, +7,136,18,38,72,177,35,132,156,19,224,120,129,226,36,8,128,54,0,248,3,0,12,3,255,15,254,35,24,140,99,255, +132,192,50,0,120,0,224,15,248,112,248,0,0,2,0,24,0,96,31,254,12,0,32,1,255,15,252,120,17,32,64,129, +3,252,8,48,0,0,0,1,255,230,0,24,0,103,225,144,134,66,25,8,103,225,128,6,0,31,254,63,248,0,65,129, +7,132,18,16,72,193,63,244,204,18,16,120,65,225,4,4,0,16,0,64,0,0,0,0,255,195,3,15,252,31,224,0, +7,255,134,0,31,224,127,128,2,0,24,3,192,0,0,127,248,0,96,1,159,246,0,24,254,99,25,136,102,63,152,254, +98,1,128,28,0,0,7,241,239,228,161,18,196,73,49,36,132,158,18,48,120,193,7,132,115,131,6,0,0,0,129,226, +7,136,18,254,75,249,34,36,136,146,102,121,153,228,100,49,129,132,4,112,0,0,123,249,239,228,129,146,14,72,121,35, +100,153,158,198,122,25,0,64,3,0,60,0,1,239,199,179,18,204,75,49,44,196,179,18,204,123,49,232,196,35,193,143, +12,56,0,0,0,1,239,231,132,18,16,72,65,47,228,191,146,16,120,65,225,4,4,0,16,1,192,0,0,1,1,228, +7,191,146,254,78,1,47,196,135,18,56,121,129,236,4,32,192,194,3,248,4,0,48,129,254,14,24,103,192,30,1,254, +28,14,31,224,64,129,2,7,248,31,224,0,0,0,65,227,7,136,18,100,75,49,47,196,254,18,16,120,209,230,68,63, +129,254,0,8,0,0,1,0,12,0,120,7,56,56,121,255,224,0,7,248,31,240,64,193,3,7,252,31,240,0,0,3, +0,12,7,255,128,192,3,0,255,192,0,0,0,63,240,192,195,3,15,252,63,240,0,0,0,0,255,195,3,12,12,63, +240,12,0,48,15,254,35,24,140,98,49,136,220,3,0,0,0,0,1,255,230,1,155,242,111,201,128,38,252,154,18,104, +73,191,38,192,152,6,96,56,0,0,6,0,56,129,255,12,24,104,192,62,0,112,15,252,120,48,96,65,129,7,252,31, +240,0,0,0,48,255,195,128,8,0,63,248,192,2,0,11,252,44,24,176,102,193,147,254,79,248,0,0,3,1,255,231, +255,128,192,63,240,140,66,49,15,252,19,0,104,0,224,7,224,113,248,0,0,0,65,227,7,140,18,48,75,249,47,228, +140,18,48,120,193,227,4,12,1,254,7,248,2,0,8,3,255,31,254,96,25,190,102,253,155,54,108,217,191,102,193,152, +6,96,120,0,0,0,17,231,199,188,18,48,72,193,35,100,255,146,176,104,193,227,4,12,192,50,0,120,0,1,255,231, +140,18,48,72,225,35,196,141,146,48,120,193,227,4,12,0,48,0,192,0,0,0,0,127,193,3,4,12,31,240,127,128, +0,15,252,63,240,128,66,1,15,252,63,240,0,0,0,9,232,39,177,146,108,72,225,33,4,132,18,16,120,65,225,4, +4,0,16,0,64,0,0,0,1,239,199,131,18,196,75,49,44,196,191,146,206,120,9,255,164,1,128,6,0,112,0,0, +0,0,255,192,99,31,254,6,48,48,195,255,6,0,63,241,224,196,129,3,252,15,240,0,0,3,1,255,231,255,130,24, +7,192,30,7,207,152,6,63,240,192,195,3,15,252,63,240,0,0,0,1,255,224,32,1,128,127,248,51,1,134,15,252, +127,249,64,129,2,7,248,31,224,0,0,0,65,195,7,158,22,204,94,217,113,37,132,22,254,120,49,192,196,6,0,24, +0,64,0,0,0,1,131,71,141,146,50,79,249,63,228,140,18,48,120,225,230,132,51,1,134,12,8,0,0,2,1,201, +135,166,18,154,74,121,47,196,166,18,152,122,97,233,132,46,193,250,6,56,0,0,0,0,3,7,134,30,8,89,129,110, +37,248,151,226,127,141,246,4,89,128,100,0,240,0,1,255,224,56,1,192,31,97,236,230,48,128,192,63,240,192,195,3, +15,252,63,240,0,0,123,249,237,100,164,146,146,74,73,47,228,191,158,130,122,1,8,48,48,128,126,0,65,195,7,255, +150,48,90,201,107,101,173,150,182,123,249,195,100,12,0,51,0,120,0,0,0,33,230,199,147,18,68,75,25,56,100,191, +146,100,121,145,228,68,49,0,140,4,112,0,0,1,0,12,0,236,6,152,115,57,127,129,254,0,48,31,224,255,195,3, +15,252,63,240,0,0,0,17,231,199,184,18,64,73,1,39,228,179,18,204,123,49,236,196,35,1,140,6,48,0,0,0, +129,227,7,191,147,254,72,1,39,196,147,18,76,123,49,236,196,35,193,143,4,56,0,0,0,129,230,7,154,18,204,74, +25,63,228,150,146,88,121,97,237,132,54,193,154,12,56,0,0,2,0,12,3,255,12,4,48,16,255,195,0,8,0,47, +248,160,102,129,155,254,76,24,0,0,0,65,227,7,255,146,254,72,193,47,196,191,146,196,121,49,227,132,14,1,252,6, +24,0,0,0,9,207,39,140,150,50,91,201,104,37,160,150,242,120,201,195,36,12,128,50,3,136,0,0,0,0,255,195, +3,12,12,63,240,0,3,255,0,192,127,249,255,224,120,7,56,112,56,0,0,0,65,227,7,141,18,182,74,217,43,36, +236,18,52,120,81,192,196,6,0,240,7,0,0,0,119,241,236,133,178,22,216,91,121,108,101,185,30,172,118,225,17,128, +207,130,102,0,0,1,1,228,7,152,146,254,74,9,59,100,140,18,48,120,193,227,132,27,0,198,6,8,0,0,1,1, +204,7,191,150,254,94,169,118,165,150,150,210,122,73,211,100,25,128,70,0,112,0,0,0,33,223,135,154,20,72,83,33, +76,133,58,23,200,91,33,204,132,50,192,203,6,56,0,0,0,0,255,192,64,15,248,12,96,49,135,255,128,0,31,224, +255,195,3,15,252,63,240,0,0,0,1,255,231,131,18,204,74,49,47,228,191,146,28,120,241,230,196,115,1,140,0,240, +0,0,2,1,207,231,160,18,190,74,249,42,100,169,146,166,126,177,218,4,72,193,34,12,248,0,0,0,0,255,195,3, +12,12,63,240,12,0,48,31,254,7,128,63,1,183,28,206,67,0,0,0,0,0,255,195,3,12,12,63,240,127,131,255, +15,252,3,0,255,192,48,0,192,127,248,17,0,68,3,255,12,192,97,1,255,231,255,128,0,63,240,192,195,3,15,252, +63,240,0,0,0,128,3,7,140,23,254,88,193,99,5,255,151,254,120,193,199,132,51,1,134,12,8,0,0,0,65,225, +7,132,18,254,75,249,43,36,172,146,186,123,185,236,100,32,128,130,2,56,0,0,35,249,227,4,136,18,32,79,253,39, +132,158,30,88,123,97,13,128,102,195,14,0,0,1,1,230,199,255,146,108,73,1,47,196,135,18,24,120,193,228,4,48, +128,194,3,248,0,65,225,7,140,18,48,79,253,35,4,140,18,56,121,161,228,196,57,1,182,12,72,0,0,0,1,207, +231,160,18,166,74,145,41,196,166,18,156,122,241,202,100,40,0,254,3,248,0,1,207,231,164,22,144,90,249,107,229,228, +151,146,126,201,219,100,73,129,102,13,48,0,0,0,1,207,231,161,146,150,74,89,41,100,165,146,182,122,217,202,100,26, +0,198,6,8,0,0,0,0,127,193,3,7,252,0,0,255,195,255,8,4,35,16,140,66,105,7,60,112,24,0,0,0, +0,255,195,3,12,12,63,240,12,7,255,153,198,103,25,179,103,133,152,6,96,112,0,0,0,193,3,7,158,18,204,78, +25,63,228,179,18,140,122,33,233,132,32,128,198,1,240,0,192,135,199,191,18,196,75,17,45,196,176,18,254,120,9,239, +228,63,128,6,0,56,0,0,0,1,207,231,160,150,134,91,249,106,5,168,150,174,122,225,250,4,72,129,34,12,248,0, +0,0,193,195,7,158,18,204,78,153,51,36,132,18,252,120,49,197,132,28,0,48,0,96,0,0,0,33,200,135,34,21, +158,85,233,124,165,242,148,154,87,73,223,36,252,128,54,0,176,0,0,0,0,255,226,49,139,246,39,216,140,98,253,137, +6,47,216,177,102,253,147,230,64,112,0,0,0,25,223,199,233,23,164,94,145,122,69,233,23,164,124,153,211,228,90,131, +122,9,40,0,0,1,33,196,133,18,21,74,85,121,87,197,82,21,72,85,33,212,132,94,129,250,12,56,0,65,227,7, +191,146,254,72,193,35,4,255,146,56,121,225,239,196,109,129,50,0,192,0,0,127,253,224,100,129,146,246,74,89,41,100, +165,158,246,122,25,0,96,1,128,28,0,0,2,1,9,231,38,151,242,87,201,87,165,83,151,76,119,49,12,196,123,3, +22,8,136,0,0,0,1,207,231,173,150,146,91,249,111,229,164,150,182,123,249,233,36,4,0,16,0,64,0,0,119,249, +225,133,140,22,56,89,241,111,101,236,158,48,112,193,3,0,127,129,254,0,1,239,231,161,146,134,75,249,32,4,255,210, +64,123,249,236,100,1,128,4,0,112,0,0,0,65,193,7,191,150,178,90,73,111,229,172,150,146,123,249,203,36,4,0, +16,0,64,0,0,0,17,159,231,172,22,182,90,217,111,69,140,23,255,120,193,131,4,12,0,48,1,192,0,0,0,0, +4,0,48,3,48,56,113,255,224,0,15,124,37,144,150,66,89,15,108,33,128,6,0,0,0,0,1,239,199,177,18,196, +75,241,47,196,177,18,196,123,241,236,68,49,1,254,7,248,1,16,12,71,177,19,255,75,17,44,68,177,18,252,123,17, +236,68,49,0,252,3,48,0,0,0,1,223,231,96,21,24,85,249,85,165,86,149,90,117,121,209,132,70,1,254,7,248, +0,64,9,7,165,150,150,90,89,111,229,140,23,146,94,73,249,36,100,129,254,0,24,0,0,1,1,198,7,191,146,134, +79,217,61,100,181,146,246,123,249,204,196,48,128,195,1,248,1,1,228,7,191,146,254,78,193,51,228,143,146,48,120,249, +227,228,12,0,48,0,192,0,0,4,1,243,197,159,134,102,127,153,254,97,153,143,102,127,153,102,101,159,134,102,24,0, +0,0,16,192,123,3,238,29,182,92,192,115,3,255,152,0,63,240,192,195,3,15,252,63,240,0,0,1,0,7,135,134, +22,240,88,201,99,101,255,22,248,122,225,219,68,205,130,50,1,128,0,0,1,17,196,103,177,150,255,95,25,120,101,173, +150,150,122,89,200,100,33,128,132,2,112,0,0,0,1,243,230,73,153,38,124,248,0,0,252,7,240,24,64,97,1,4, +140,26,96,120,0,0,0,129,227,7,143,18,60,72,193,63,228,255,146,48,120,225,227,196,13,128,48,0,192,0,0,0, +64,1,7,132,18,254,72,225,33,4,132,18,254,123,25,236,100,49,128,254,3,24,0,0,2,1,200,5,39,151,250,86, +233,75,165,110,149,186,84,233,211,164,95,131,126,11,8,0,0,1,1,196,199,145,19,254,79,249,37,132,151,146,220,123, +113,201,132,110,3,122,9,56,0,0,0,129,198,71,191,23,204,93,225,99,133,191,23,134,88,193,224,132,48,0,120,0, +48,0,0,0,192,1,7,191,151,130,94,9,96,5,255,150,16,88,65,225,7,4,16,16,1,192,0,0,0,17,204,197, +34,21,170,85,249,125,197,51,20,136,87,121,221,228,0,3,254,0,0,0,65,233,39,165,146,212,73,65,47,228,191,146, +104,121,33,228,132,50,129,139,12,56,0,0,0,193,195,7,255,151,130,88,121,111,5,136,22,62,127,241,194,4,8,128, +50,0,248,0,1,223,231,136,22,108,91,57,127,229,132,22,16,123,249,195,4,4,0,48,7,248,0,193,223,231,255,150, +252,91,249,111,229,191,23,254,123,249,199,100,23,0,204,4,24,0,0,0,9,222,37,34,148,138,83,169,90,165,74,151, +234,121,169,196,164,48,129,130,4,56,0,0,2,1,204,65,127,129,54,8,209,199,132,115,129,2,31,240,192,195,3,15, +252,63,240,0,0,0,17,196,71,147,22,254,88,65,99,5,191,150,16,120,193,223,228,4,0,16,0,64,0,0,0,65, +235,103,173,146,244,73,209,63,228,255,150,56,121,225,15,196,109,131,50,0,192,0,0,32,1,251,230,105,153,166,102,153, +251,231,224,26,52,108,153,150,36,96,16,240,64,248,0,0,0,193,193,7,255,146,76,75,17,40,100,242,146,72,121,225, +195,4,30,0,204,6,24,0,0,0,65,225,7,191,146,56,72,65,47,228,191,18,0,123,249,236,100,49,128,254,3,248, +0,0,0,129,134,7,159,146,204,79,161,35,132,159,19,206,127,249,204,100,49,128,254,3,248,0,0,0,65,227,7,191, +146,254,74,9,47,228,177,146,130,123,249,236,100,32,128,254,3,24,0,0,0,192,3,7,255,150,32,89,145,111,197,190, +22,54,123,177,249,132,14,0,230,6,8,0,0,1,0,4,7,255,150,216,91,33,106,165,170,151,190,125,113,241,132,143, +0,102,3,8,0,0,1,33,197,135,214,151,222,91,113,101,133,150,22,222,127,105,133,132,54,1,155,12,56,0,0,0, +160,3,99,255,143,254,32,192,191,98,13,11,220,105,97,173,134,254,208,106,67,56,0,0,0,33,200,135,162,23,254,94, +249,121,133,231,22,188,122,185,206,164,50,128,136,2,32,0,0,0,1,223,231,100,149,146,86,201,95,165,108,149,178,118, +169,222,228,112,129,254,7,248,0,0,2,1,207,231,39,149,146,95,249,123,229,228,149,190,118,249,25,32,108,1,160,6, +128,0,0,3,1,255,231,255,128,0,63,224,192,131,254,7,248,29,153,227,132,134,7,206,28,24,0,0,0,0,127,129, +2,4,8,31,224,127,128,0,31,62,100,153,18,36,72,159,62,124,248,0,0,0,1,223,231,138,22,120,95,249,122,165, +234,151,238,127,57,216,36,96,129,254,6,8,0,0,1,17,228,199,147,19,254,73,177,36,196,147,18,254,127,249,224,4, +51,1,134,4,8,0,0,0,193,195,199,191,19,204,73,225,47,4,175,146,126,123,25,235,196,6,0,112,7,0,0,0, +0,65,195,7,191,146,48,72,193,63,228,132,18,48,123,249,207,196,12,1,254,7,248,0,65,195,7,158,18,76,75,25, +63,228,128,18,252,123,241,204,68,49,0,252,3,240,0,0,8,128,98,199,237,130,48,127,249,255,224,12,31,148,98,113, +137,135,230,159,250,1,56,0,0,0,49,207,199,160,22,156,91,225,106,133,171,151,172,126,177,242,68,73,129,118,9,136, +0,0,0,65,195,7,191,151,254,94,9,123,165,234,151,170,126,169,219,164,96,129,130,6,56,0,0,1,33,132,199,255, +214,76,89,17,104,69,177,22,76,121,225,131,4,30,0,204,6,24,0,0,0,1,239,199,161,18,252,75,241,40,68,191, +18,176,122,89,201,132,34,0,238,7,8,0,0,123,249,232,4,175,146,152,74,97,43,228,166,30,152,123,249,8,0,63, +128,254,0,1,223,231,30,20,88,93,105,85,165,119,149,220,115,113,197,132,22,3,254,15,248,0,33,208,135,98,20,190, +80,249,121,133,39,20,156,82,89,203,36,40,129,224,12,252,0,0,1,1,230,231,255,18,38,72,225,47,164,163,146,254, +127,249,228,132,50,128,202,6,56,0,0,2,1,201,135,191,150,152,90,97,127,181,243,150,48,123,249,159,228,12,0,48, +0,192,0,0,0,65,233,39,164,146,254,75,249,38,4,159,146,198,126,153,227,196,6,0,112,7,0,0,0,1,1,197, +167,183,146,220,79,225,47,164,183,146,16,120,193,255,228,4,0,16,0,64,0,0,0,65,195,7,158,18,204,79,25,55, +228,128,18,254,123,249,198,132,17,1,254,7,136,0,0,1,33,199,135,146,22,200,91,57,107,101,140,23,254,121,225,199, +196,109,129,50,0,192,0,0,0,129,195,7,255,150,76,89,225,99,133,255,150,70,121,49,196,196,51,0,140,6,48,0, +0,0,65,195,7,127,149,254,84,201,71,5,53,148,220,127,33,196,196,17,0,246,3,8,0,0,0,129,198,199,177,22, +254,90,73,109,5,191,151,184,124,65,223,228,6,0,16,0,64,0,0,0,1,201,133,38,149,158,87,201,124,37,36,149, +154,95,41,192,36,56,131,198,0,48,0,0,0,1,255,224,3,15,236,49,176,126,199,255,159,254,31,48,254,195,27,15, +236,0,240,0,0,0,33,223,229,246,148,200,95,249,127,229,50,148,238,95,177,204,196,55,0,255,6,152,0,0,0,192, +3,7,255,150,48,88,193,127,229,158,23,236,125,41,212,164,82,128,200,6,224,0,0,0,65,153,39,181,146,20,75,249, +44,100,177,146,254,122,25,239,228,49,128,134,2,56,0,0,0,1,207,231,165,150,182,91,249,105,37,191,150,48,120,193, +207,228,4,1,254,7,248,0,1,255,231,46,148,186,95,249,95,197,111,149,250,119,233,211,164,79,131,120,11,96,0,0, +0,1,247,230,89,153,102,125,248,13,128,51,31,254,127,248,30,0,204,14,30,112,24,0,0,0,129,198,39,191,150,44, +95,249,99,133,191,22,252,126,65,255,228,12,0,16,1,192,0,0,16,17,247,199,208,6,126,125,248,68,193,51,12,136, +63,240,192,195,3,15,252,63,240,0,0,2,9,201,231,36,23,240,82,65,73,245,37,23,244,126,81,201,68,45,0,164, +6,144,0,0,0,81,131,103,255,210,48,75,249,63,228,236,147,254,126,201,159,228,109,129,178,6,216,0,0,0,193,239, +231,255,146,252,75,25,47,228,128,22,254,120,113,1,0,4,0,16,1,192,0,0,0,1,223,247,140,23,254,94,201,127, +229,236,151,254,122,193,202,4,56,1,248,12,56,0,0,16,1,243,231,233,141,166,38,249,51,231,255,159,254,62,32,204, +131,50,15,200,0,224,0,0,0,129,195,7,255,151,254,91,241,111,197,191,22,252,123,241,207,228,33,128,134,3,248,0, +0,0,129,198,199,179,23,254,89,33,108,101,232,150,124,123,49,220,196,14,0,252,6,24,0,0,0,0,255,226,0,11, +252,63,248,246,226,207,11,220,40,25,191,198,129,19,12,79,240,0,0,0,129,198,135,179,23,254,91,9,111,197,255,151, +48,127,249,195,132,30,0,204,6,24,0,0,2,17,207,199,159,23,230,89,129,127,229,180,23,254,127,249,201,36,36,128, +150,0,64,0,0,1,0,255,227,255,139,252,47,240,255,226,27,155,252,97,129,191,196,129,19,12,79,240,0,0,0,65, +201,71,165,22,148,91,81,127,229,222,215,48,123,241,207,228,4,1,254,7,248,0,1,223,231,136,18,252,73,177,38,68, +255,146,0,123,241,204,100,33,128,254,3,248,0,0,0,65,223,231,140,22,252,88,193,127,229,152,22,124,123,241,254,196, +14,0,252,6,24,0,0,1,33,223,231,255,150,72,95,249,127,229,200,150,116,123,249,198,100,17,0,196,6,112,0,0, +0,65,201,103,181,22,116,91,249,104,101,173,150,182,122,217,235,100,56,0,206,6,8,0,0,0,192,15,199,191,146,198, +75,249,40,100,191,146,96,123,249,255,4,24,128,54,0,248,1,0,7,199,191,23,152,95,241,107,69,173,22,182,95,249, +195,4,22,1,204,12,8,0,0,0,1,222,231,74,149,234,87,169,82,165,122,149,138,117,41,214,164,123,131,56,0,32, +0,0,0,65,207,231,140,22,254,89,129,127,229,183,23,246,125,233,195,4,127,128,48,0,192,0,0,0,193,195,231,140, +23,254,94,201,127,197,252,151,158,126,225,211,132,74,1,107,11,56,0,0,17,0,102,3,255,31,248,113,128,255,195,16, +15,254,16,0,255,195,3,15,252,63,240,0,0,1,1,196,135,178,22,254,95,97,127,229,191,150,216,123,249,237,132,54, +0,254,3,0,0,0,0,9,223,37,78,149,250,85,41,84,165,126,151,218,95,105,253,164,180,134,226,1,24,0,0,0, +1,207,231,161,146,254,74,25,47,228,128,19,254,126,9,223,228,97,129,254,7,248,0,0,0,65,193,7,191,150,130,91, +249,111,229,167,150,154,127,249,217,132,79,3,102,11,8,0,0,0,129,207,231,255,150,76,95,249,126,37,191,22,134,123, +249,200,100,63,128,132,2,112,0,0,0,129,207,199,255,150,76,89,33,127,229,136,23,254,127,249,204,196,62,0,124,7, +24,0,0,0,17,207,199,12,21,254,87,249,75,69,255,148,244,114,209,223,228,12,0,48,7,248,1,1,207,231,191,151, +234,89,105,109,37,237,150,44,121,65,221,36,80,129,78,1,224,0,1,223,231,96,149,250,86,201,91,37,126,149,242,117, +233,212,164,94,131,66,8,56,0,0,0,65,201,199,39,20,240,95,249,64,5,63,20,132,115,241,207,196,63,0,132,2, +48,0,0,119,249,231,5,152,23,230,92,241,111,197,245,31,118,113,233,25,48,68,0,112,0,0,3,0,12,7,255,130, +16,12,209,255,230,77,158,30,111,217,179,102,253,155,6,96,112,0,0,2,33,200,197,35,23,254,83,49,76,197,127,21, +254,94,121,251,228,171,0,140,2,48,0,0,0,1,223,247,80,149,218,86,233,90,165,90,149,106,117,233,223,164,64,129, +2,4,56,0,0,0,1,247,230,89,159,126,101,153,243,230,1,155,246,108,217,179,102,253,155,6,96,120,0,0,0,193, +195,7,255,150,64,91,49,108,197,255,151,16,120,193,223,244,12,0,48,0,192,0,0,2,1,200,7,255,151,194,95,9, +111,37,184,151,250,120,169,218,164,126,128,6,0,112,0,0,0,65,235,39,173,147,180,73,241,60,100,236,146,178,122,217, +19,68,30,0,204,12,24,0,0,0,1,223,229,17,149,220,83,49,121,165,0,23,254,81,73,221,228,51,1,222,12,200, +0,0,1,161,198,135,187,151,238,89,161,110,229,187,150,104,123,185,222,228,26,0,104,1,160,0,0,0,65,131,7,191, +146,146,75,249,41,36,191,146,120,123,33,159,228,63,128,8,0,32,0,0,0,193,195,7,51,23,134,93,249,67,5,127, +148,254,115,241,207,196,33,0,196,3,240,0,0,2,33,200,135,35,23,254,86,9,73,37,53,151,214,118,81,201,68,37, +0,190,6,248,0,0,0,65,207,231,140,22,254,88,193,127,229,191,150,134,122,89,203,100,44,128,108,7,24,0,0,2, +33,200,135,34,23,254,82,73,73,37,60,151,222,114,73,201,36,36,128,158,6,120,0,0,3,0,255,195,51,4,200,27, +97,255,224,0,15,252,39,144,179,66,125,12,12,63,240,0,0,2,33,200,197,255,149,136,87,121,85,229,254,22,222,83, +25,223,68,115,0,204,3,16,0,0,0,65,201,7,39,148,144,95,249,65,5,100,149,178,118,201,222,228,112,129,254,0, +24,2,33,201,135,119,149,122,85,201,87,37,116,149,202,85,41,212,39,80,145,198,4,48,0,0,0,33,216,135,63,148, +106,89,169,127,165,31,148,118,85,81,213,196,87,3,222,10,136,0,0,0,193,195,7,255,151,130,90,9,111,229,132,22, +144,122,121,201,4,116,1,112,4,248,0,0,2,1,204,231,122,149,42,87,185,82,197,122,149,234,117,41,214,164,123,131, +168,0,32,0,0,0,129,207,229,13,151,254,80,217,95,229,12,21,50,85,233,215,228,111,131,182,8,200,0,0,3,0, +255,192,132,31,254,127,249,255,227,51,12,216,3,64,255,195,3,15,252,63,240,0,0,0,129,207,231,191,150,76,91,249, +127,229,196,150,254,122,217,201,100,37,128,148,0,64,0,0,1,33,252,133,34,20,154,95,233,95,229,127,149,236,86,49, +233,196,165,128,146,2,136,0,0,0,193,207,231,255,151,98,89,241,124,197,142,22,124,95,25,239,198,33,16,196,3,240, +0,0,0,1,207,231,173,150,254,90,217,111,229,140,23,254,124,201,19,228,127,129,2,4,24,0,0,0,1,207,231,173, +150,254,90,73,111,229,128,23,255,123,65,201,228,35,0,252,3,152,0,0,0,65,195,7,255,150,48,95,249,126,165,234, +151,250,126,201,223,164,108,129,146,6,24,0,0,8,64,115,3,255,7,248,31,225,255,225,50,31,254,127,248,127,131,3, +12,12,63,240,0,0,16,32,65,143,255,198,24,16,97,247,231,207,128,0,124,249,18,36,72,159,62,124,248,0,0,2, +9,204,39,250,148,202,87,169,90,165,106,149,234,115,41,222,36,248,130,194,3,56,0,0,2,65,201,167,191,150,152,90, +105,127,229,204,22,252,122,25,207,228,63,128,134,3,248,0,0,2,1,203,197,33,21,254,94,249,122,5,127,149,200,119, +249,223,228,103,1,182,7,136,0,0,0,49,192,167,255,151,254,93,225,118,165,219,151,252,125,113,215,196,87,65,23,8, +152,0,0,0,145,202,69,255,148,180,82,241,72,5,63,148,48,95,249,199,132,63,1,182,4,200,0,0,1,49,198,199, +255,150,108,88,129,127,229,191,150,64,123,249,220,100,81,128,126,1,248,0,0,0,65,195,7,191,150,68,89,49,127,245, +128,22,254,122,25,207,228,33,128,254,3,248,0,0,2,1,223,231,224,151,254,94,1,127,229,233,23,254,127,105,215,228, +95,131,24,11,248,0,0,0,193,219,39,108,149,254,80,1,127,229,12,20,254,119,249,222,164,122,129,234,7,184,0,0, +1,1,207,199,179,22,252,88,49,127,229,152,151,238,123,241,219,68,29,129,146,1,192,0,0,3,1,255,224,48,15,252, +31,224,64,129,254,2,16,127,248,0,3,255,12,12,63,240,0,0,0,1,207,231,161,150,254,91,249,111,197,191,151,254, +126,73,203,164,58,128,254,0,56,0,0,0,1,223,231,237,151,254,94,217,111,229,191,22,198,123,249,200,100,63,128,134, +2,48,0,0,0,129,195,7,255,151,130,91,241,96,5,191,22,132,123,241,200,68,63,0,0,7,248,0,1,31,231,64, +21,126,85,105,87,229,84,149,126,116,97,23,228,70,3,126,11,248,0,0,0,193,195,7,255,150,120,91,217,123,37,191, +22,132,123,241,232,68,63,0,0,7,248,1,33,196,199,255,150,108,89,49,111,229,191,150,146,123,249,239,228,36,128,254, +3,248,0,0,0,193,207,231,63,20,204,95,249,72,69,63,20,134,114,217,203,100,45,0,236,14,12,0,0,0,129,198, +7,127,148,204,94,217,127,229,12,21,254,80,129,207,196,12,0,48,7,248,2,17,207,231,164,23,180,95,241,121,133,237, +151,254,126,33,218,228,122,129,202,6,96,0,0,0,65,199,5,51,23,207,83,241,94,37,122,149,234,87,169,222,164,106, +129,34,5,184,0,0,0,193,203,71,175,23,254,89,225,123,101,200,150,96,127,249,204,132,62,0,124,7,24,0,0,2, +16,204,193,182,31,254,67,8,127,195,48,31,254,127,248,127,195,3,12,12,63,240,0,0,0,129,195,7,255,150,252,91, +49,111,197,128,23,254,124,9,215,164,82,129,122,4,24,0,0,0,1,159,231,140,18,254,75,249,40,100,191,146,254,121, +145,15,196,254,0,120,15,56,0,0,0,193,207,199,191,150,254,90,25,111,229,191,150,60,120,209,255,228,30,0,204,6, +24,0,0,0,193,223,231,12,20,254,80,193,95,229,62,20,248,115,177,223,228,47,1,182,9,136,0,0,2,17,204,199, +146,23,254,89,33,108,197,225,151,254,127,249,221,100,117,129,254,15,248,4,169,214,231,122,151,250,83,57,94,165,122,149, +238,119,233,201,164,36,129,18,4,152,0,0,0,1,207,231,164,18,254,74,65,47,228,164,18,254,123,249,21,164,85,129, +82,0,56,0,0,0,193,207,199,63,22,48,95,249,76,197,255,149,254,119,249,31,228,87,129,254,15,252,1,33,204,199, +255,150,124,89,193,108,197,255,151,122,123,241,15,192,33,0,132,3,240,0,0,0,33,207,199,30,20,252,95,121,85,101, +119,23,222,116,193,31,224,30,1,182,12,200,0,0,0,65,223,231,63,148,252,82,17,79,197,63,20,132,115,241,223,228, +127,128,204,6,8,0,0,0,65,207,231,237,151,246,94,217,123,101,255,150,48,127,249,204,68,30,0,120,15,56,0,0, +1,129,31,231,155,23,254,91,129,127,197,152,150,126,123,241,24,100,127,129,134,7,248,0,0,0,1,223,231,191,22,254, +90,25,111,197,255,151,202,124,169,215,164,76,129,50,4,88,0,0,1,49,196,135,127,148,48,87,249,70,5,127,149,254, +83,1,223,228,196,3,254,3,248,1,1,204,197,105,149,104,83,241,95,69,247,151,254,85,233,206,228,123,129,114,3,152, +0,0,0,1,247,228,64,159,126,0,9,251,167,254,154,234,127,169,255,166,184,154,130,110,56,0,0,0,193,219,103,237, +151,254,88,193,127,229,140,23,254,126,217,255,228,15,0,62,7,248,0,0,0,193,223,231,97,149,254,86,25,95,229,8, +23,254,115,49,59,100,255,128,48,0,192,0,0,0,193,223,231,12,21,254,95,249,86,37,62,20,116,115,249,203,36,45, +1,182,5,200,0,0,0,129,246,7,31,148,64,83,249,115,229,26,148,255,117,217,212,164,223,130,6,8,112,0,0,0, +65,207,231,63,148,252,81,129,127,245,179,23,254,124,201,207,228,30,0,246,4,192,0,0,0,1,223,231,63,20,140,83, +241,95,229,227,23,254,113,233,220,228,51,1,222,12,200,0,0,1,33,223,231,255,148,192,83,253,88,101,255,151,254,127, +57,31,228,121,129,134,6,48,0,0,0,1,223,231,77,149,254,84,217,93,229,115,149,254,112,81,221,100,243,130,206,1, +224,1,33,220,231,214,148,120,95,185,71,197,118,20,112,127,121,199,228,123,0,56,15,0,0,0,0,57,223,231,45,148, +212,87,249,86,37,127,148,64,115,241,206,68,110,3,60,11,184,0,0,0,17,211,231,103,20,158,81,249,127,165,255,149, +250,119,249,222,164,123,131,224,8,248,0,0,2,33,204,133,250,20,222,87,233,73,165,255,149,142,87,177,222,196,75,3, +126,11,200,0,0,2,33,204,135,255,148,222,95,233,107,229,234,21,236,119,49,30,196,167,2,146,2,200,0,0,0,65, +201,5,255,149,240,84,225,93,229,95,21,76,85,253,212,196,211,2,90,11,200,0,0,0,65,223,231,179,22,72,95,249, +121,37,255,151,146,126,233,220,164,126,129,130,6,56,0,0,0,57,192,165,127,213,72,85,161,86,165,90,149,254,93,177, +255,196,235,2,111,9,88,0,0,0,1,223,231,81,21,212,87,81,87,197,127,149,12,117,49,223,196,237,1,37,1,152, +0,0,1,161,223,231,127,149,254,85,233,95,229,126,149,254,115,249,200,100,63,128,134,3,248,0,0,3,1,255,224,48, +15,252,31,240,192,195,255,3,48,127,248,96,7,239,141,166,108,248,0,0,0,1,223,229,30,21,254,87,169,95,229,0, +20,254,80,1,223,228,45,1,182,5,200,0,0,0,1,31,231,140,22,134,91,249,111,229,161,150,252,121,185,191,228,15, +0,123,7,56,0,0,0,0,223,227,104,159,162,55,184,216,7,103,159,254,94,121,126,199,251,29,158,70,200,0,0,0, +193,3,231,12,21,254,84,137,95,133,79,149,8,126,169,62,160,219,3,252,11,248,0,0,0,129,223,229,255,151,68,93, +49,126,229,219,23,236,95,121,253,228,213,130,68,9,16,0,0,5,32,62,135,122,21,254,83,41,94,165,234,151,170,119, +169,205,164,252,128,146,2,248,0,0,2,1,203,229,122,148,234,95,249,76,197,98,151,234,84,169,222,164,75,129,232,4, +160,0,0,0,65,217,39,236,151,254,95,185,126,229,250,151,238,124,169,223,228,78,129,50,13,216,0,0,0,1,223,231, +109,149,182,86,233,76,197,95,150,50,127,249,204,196,62,0,124,7,24,0,0,0,129,223,229,104,149,54,83,97,87,101, +89,151,252,116,193,219,100,109,129,254,3,248,0,0,0,1,207,229,63,148,134,83,241,127,229,255,149,254,86,233,222,228, +123,3,238,0,232,0,0,3,1,222,103,123,21,232,87,137,94,101,75,21,248,116,129,214,36,61,131,252,0,96,0,0, +0,1,223,231,64,149,254,85,241,85,5,127,149,126,124,97,63,224,166,130,254,26,24,0,0,2,1,205,231,254,148,218, +95,249,115,165,254,151,254,119,233,13,36,252,128,146,2,152,0,0,1,33,215,231,82,21,254,87,1,79,197,127,149,254, +119,249,219,100,127,129,18,12,120,0,0,4,9,213,231,254,21,88,87,97,85,245,118,149,218,85,201,255,36,84,131,114, +8,200,0,0,0,129,199,7,127,149,202,83,49,127,229,163,20,252,115,241,195,4,45,1,54,9,136,0,0,0,193,223, +231,140,23,254,91,241,104,69,191,22,204,127,249,207,196,63,128,134,3,248,0,0,0,1,239,231,165,150,254,90,201,111, +229,140,22,254,120,193,31,224,33,1,170,4,168,0,0,0,33,222,133,26,23,239,85,233,95,165,126,149,46,87,177,210, +68,251,3,46,0,200,0,0,1,17,196,199,255,151,182,93,233,115,37,255,150,0,123,241,204,68,63,0,252,3,240,0, +0,1,65,237,135,191,147,254,79,249,47,228,191,146,216,123,249,239,228,42,129,170,4,172,0,0,0,193,223,231,12,20, +254,87,249,80,37,127,148,252,114,17,207,196,18,0,120,7,248,0,1,223,199,210,151,206,91,249,120,37,191,22,132,123, +241,204,196,18,0,120,7,248,1,161,222,231,63,23,254,81,49,79,229,63,148,254,112,193,223,228,30,0,236,6,24,0, +0,0,1,223,231,64,21,88,85,249,95,229,111,149,180,127,209,255,68,147,130,74,10,72,0,0,0,193,199,135,123,151, +254,81,81,87,69,127,21,252,119,249,215,228,94,129,250,4,56,0,0,1,1,207,135,246,23,254,91,249,107,101,191,151, +254,123,241,207,228,63,128,134,3,248,0,0,0,129,223,229,109,149,122,85,233,95,229,94,149,130,80,201,255,228,28,0, +204,14,24,0,0,0,17,204,199,127,148,206,95,249,76,197,63,20,252,119,249,223,228,45,3,54,9,200,0,0,0,0, +243,194,73,11,36,62,240,25,135,255,135,56,48,113,243,226,73,9,36,60,240,0,0,0,1,255,227,183,11,244,47,208, +237,199,255,128,192,63,240,191,67,191,0,192,127,248,0,1,207,199,51,20,252,87,57,87,165,94,149,254,112,193,223,228, +30,1,182,12,200,0,0,0,129,223,231,179,22,220,95,249,111,197,161,150,254,123,249,195,4,117,131,198,9,224,0,0, +2,33,24,135,127,151,86,89,9,127,229,45,20,180,118,241,31,224,140,3,254,15,248,0,129,195,231,108,149,254,87,249, +91,37,71,21,254,117,201,211,196,119,131,106,10,96,0,0,1,49,223,231,147,22,254,90,25,111,229,191,150,194,123,249, +27,36,46,128,250,0,56,0,0,0,129,223,229,210,149,252,81,225,95,197,22,23,254,83,49,223,228,222,128,48,7,248, +0,1,222,199,95,149,114,87,249,81,229,71,149,236,126,249,251,228,235,2,236,2,48,0,0,0,1,207,231,127,149,178, +83,249,79,197,4,21,254,112,201,207,228,42,128,170,2,184,0,0,1,49,255,229,51,21,254,87,249,79,197,33,20,252, +119,249,215,164,82,129,122,5,24,0,0,0,0,3,7,127,156,252,83,241,79,197,255,151,126,91,241,206,100,31,17,188, +3,104,19,0,0,0,0,193,223,231,12,21,254,87,249,75,69,63,20,252,119,249,11,32,111,1,240,13,248,0,0,0, +129,223,231,125,149,254,86,249,124,197,51,21,246,127,249,207,196,45,1,182,5,136,0,0,0,0,255,195,255,15,60,127, +248,255,195,51,12,140,29,241,192,99,255,9,228,63,240,0,0,0,1,207,197,127,149,50,83,249,79,229,36,21,254,94, +97,223,196,127,129,152,7,248,0,0,0,129,223,229,115,149,254,87,249,76,197,127,149,254,83,49,223,228,119,130,204,3, +152,0,0,0,17,223,199,45,21,254,87,249,95,229,121,149,102,119,249,222,100,83,129,230,14,176,0,0,3,1,255,227, +255,15,252,127,249,127,161,254,15,252,63,241,255,225,251,30,56,30,56,0,0,16,33,255,225,134,31,254,60,241,146,103, +207,139,52,127,248,0,7,223,153,98,125,248,0,0,0,193,223,229,127,21,252,95,249,127,229,55,21,254,87,241,255,228, +53,3,140,3,152,0,0,127,249,128,102,1,152,6,96,25,128,102,1,152,6,96,25,128,103,255,152,6,0,0,0,1, +255,230,17,144,198,67,25,12,100,49,145,230,68,217,97,229,1,159,254,127,248,0,0,127,249,255,230,73,153,38,108,153, +178,102,143,158,30,96,25,255,231,255,144,2,0,1,255,230,1,155,246,97,217,132,103,255,152,198,97,25,140,102,97,159, +254,127,248,0,0,0,1,255,230,1,152,6,111,217,179,102,141,154,54,111,217,128,102,1,159,254,96,24,0,0,2,0, +8,7,255,152,38,96,217,182,102,113,152,230,102,217,241,102,129,159,254,96,24,0,0,0,1,255,228,0,144,194,79,201, +127,164,48,144,226,70,201,49,165,130,159,254,127,248,0,0,0,1,255,228,33,144,134,127,249,59,100,201,147,230,67,153, +63,101,133,159,254,127,248,0,0,0,1,255,230,1,152,102,127,249,142,102,57,153,230,125,153,134,102,49,159,254,127,248, +0,0,0,1,255,230,1,152,198,127,249,173,102,181,155,246,99,25,140,230,31,159,254,127,248,0,0,0,1,255,230,1, +153,38,104,89,193,230,1,155,246,104,89,161,102,133,159,254,96,24,0,0,0,1,255,228,65,147,18,79,233,223,166,86, +146,90,90,73,25,36,92,159,254,127,248,0,0,0,1,255,228,1,147,246,64,25,150,103,255,145,102,77,185,38,231,13, +159,254,127,248,0,0,0,1,255,230,1,152,198,127,249,255,230,121,155,246,123,121,204,230,49,159,254,127,248,0,0,2, +0,8,7,255,152,134,103,217,159,103,205,153,230,99,153,187,102,129,159,254,96,24,0,0,0,1,255,228,32,151,250,67, +9,63,36,48,151,250,67,105,13,164,52,159,254,127,248,0,0,0,1,255,228,48,145,226,76,201,225,228,216,147,194,76, +73,51,36,124,159,254,127,248,0,0,0,1,255,228,48,145,226,76,201,236,228,252,147,242,64,137,28,36,24,159,254,127, +248,0,0,0,1,255,230,1,152,198,127,249,140,102,253,155,246,104,89,191,102,1,159,254,127,248,0,0,0,1,255,230, +1,159,254,99,25,140,102,253,152,214,99,89,255,230,1,159,254,127,248,0,0,0,1,255,228,96,147,242,92,201,94,36, +253,159,30,67,137,56,36,28,159,254,127,248,0,0,0,1,255,230,33,159,254,110,25,191,103,197,159,246,103,217,145,102, +77,159,254,127,248,0,0,0,1,255,228,16,151,250,67,9,63,164,182,147,250,79,233,45,164,188,159,254,127,248,0,0, +0,1,255,230,1,155,246,111,153,155,103,255,152,6,111,217,161,102,253,159,254,127,248,0,0,0,1,255,228,252,146,18, +79,201,0,37,254,150,90,91,105,31,39,198,158,14,127,248,0,0,0,1,255,228,164,146,178,79,233,127,164,204,159,254, +84,137,21,36,124,159,254,127,248,0,0,0,1,255,228,48,147,242,67,9,255,228,72,147,242,67,9,127,164,48,159,254, +127,248,0,0,0,1,255,230,49,155,246,111,217,255,230,253,155,246,111,217,191,102,141,159,254,127,248,0,0,0,1,255, +228,252,147,250,79,201,127,164,252,146,18,71,105,115,36,118,155,142,127,248,0,0,3,0,12,0,48,0,192,3,0,255, +192,48,0,192,3,0,12,0,48,31,254,127,248,0,1,255,193,134,3,48,7,128,255,199,3,128,192,63,240,12,0,48, +31,254,127,248,4,0,16,7,255,159,254,24,192,99,3,12,29,254,112,192,195,3,12,12,48,55,248,0,0,0,0,207, +227,6,30,16,120,64,207,227,63,140,16,60,65,225,6,4,0,16,1,192,0,0,33,0,132,2,63,156,254,126,0,143, +194,7,8,48,57,129,204,4,32,193,130,3,248,32,0,207,227,0,30,0,127,248,207,227,16,12,68,59,249,224,102,1, +128,4,0,240,0,0,3,0,12,3,255,0,192,3,1,255,224,48,0,192,63,240,12,0,48,31,254,127,248,16,0,207, +227,63,158,6,120,24,196,99,63,140,196,63,1,204,4,48,192,194,1,248,16,0,207,227,49,140,134,126,24,204,99,63, +140,130,58,1,232,6,32,128,198,1,248,32,64,201,3,36,30,158,123,248,223,35,100,140,146,58,89,201,4,32,128,194, +1,248,16,8,205,35,52,158,210,123,72,205,35,36,140,146,50,72,249,38,100,129,130,4,8,0,0,0,64,193,3,63, +140,192,122,0,200,3,32,12,128,58,1,248,4,96,1,0,12,0,0,0,32,0,223,195,6,28,48,123,136,223,227,26, +140,90,51,72,251,38,25,128,198,2,112,0,0,16,16,199,195,56,30,64,125,0,199,227,51,12,204,63,49,236,196,35, +1,140,6,48,0,0,0,0,223,195,50,30,200,123,96,205,227,49,140,228,50,176,251,134,70,3,62,9,152,0,0,0, +64,193,3,4,30,144,122,96,201,227,38,12,144,58,65,201,4,36,1,254,7,248,32,0,223,227,112,31,128,127,248,223, +227,121,13,164,62,241,209,132,78,3,110,11,24,0,0,32,128,198,3,31,158,254,126,8,212,35,8,140,18,60,120,231, +38,49,128,6,0,240,0,0,0,64,193,3,6,13,254,121,128,198,3,31,140,102,57,25,236,102,49,129,132,12,112,0, +0,8,128,33,3,7,31,254,31,224,16,129,206,12,224,3,0,255,192,48,31,254,127,248,32,0,207,227,33,140,182,122, +88,200,99,127,204,198,58,25,248,102,97,129,6,12,112,0,0,33,0,196,3,63,158,254,122,8,219,99,76,12,48,56, +193,195,132,27,0,198,6,8,0,0,32,0,223,227,6,12,48,120,192,207,195,125,141,50,56,193,227,6,12,0,48,0, +192,0,0,2,0,76,129,50,12,216,59,113,191,100,56,128,192,63,240,12,0,48,31,254,127,248,32,128,195,3,63,159, +254,120,0,199,195,19,12,76,59,49,236,198,35,193,143,4,56,0,0,32,128,194,3,63,30,252,120,144,194,67,63,141, +254,57,193,199,132,51,1,142,12,24,0,0,0,1,175,230,145,26,108,104,225,163,134,187,128,130,3,0,255,192,48,0, +192,127,248,32,0,207,227,63,30,0,120,0,223,227,63,140,96,57,48,236,78,33,129,254,6,8,0,0,32,0,223,227, +100,29,144,127,248,223,227,100,141,178,62,217,210,100,73,131,102,9,112,0,0,0,0,207,227,33,158,150,122,88,201,99, +37,140,182,58,217,202,100,26,0,198,6,8,0,0,32,192,207,195,63,12,132,122,16,201,195,32,12,254,56,8,255,166, +62,128,6,0,120,0,0,32,128,195,3,4,31,255,123,16,204,195,19,12,104,56,225,227,4,30,1,206,6,24,0,0, +56,65,243,6,140,26,48,100,225,246,198,49,152,130,3,0,255,192,48,0,192,127,248,32,64,193,3,63,159,182,126,88, +219,67,127,141,196,63,177,211,132,78,3,124,11,24,0,0,32,64,195,3,127,159,182,126,200,223,227,109,141,178,63,249, +219,100,12,0,48,0,192,0,0,32,0,207,227,33,158,134,123,24,207,227,33,140,134,59,249,239,196,0,3,254,15,248, +32,192,195,3,127,157,254,126,8,204,3,51,12,248,59,129,204,4,48,128,70,1,248,35,16,204,67,49,31,255,123,16, +204,67,49,12,252,51,16,236,70,49,0,252,3,48,0,0,32,0,159,226,12,28,182,122,208,139,66,12,9,255,56,193, +227,6,12,0,48,0,192,0,0,16,192,195,3,12,30,62,124,192,195,3,12,12,254,62,25,232,100,33,128,254,3,248, +0,0,32,0,159,226,97,159,134,127,248,152,2,120,9,236,63,225,214,4,88,131,98,8,248,0,0,32,0,223,227,6, +30,48,120,224,199,195,61,141,178,48,192,227,6,12,1,254,7,248,32,32,136,130,34,29,158,117,232,188,162,114,136,154, +55,73,255,38,252,128,54,0,176,0,0,32,0,207,227,49,156,182,122,88,223,227,121,140,166,58,89,207,228,63,128,4, +0,112,0,0,32,0,223,243,1,158,6,123,216,201,99,37,140,150,59,216,232,102,1,128,6,0,112,0,0,32,24,207, +195,116,30,152,122,96,207,227,63,140,136,58,33,232,134,47,65,223,7,88,0,0,0,48,207,195,48,30,128,123,248,207, +227,34,12,184,50,224,248,230,98,129,8,4,32,0,0,0,48,255,192,48,15,252,63,240,76,135,255,134,220,19,33,255, +224,48,0,192,63,240,32,192,195,3,12,31,254,120,0,204,67,17,12,76,49,48,230,134,18,1,254,7,248,4,64,17, +135,255,131,108,9,224,103,35,127,152,60,3,0,255,192,48,0,192,127,248,33,0,196,195,17,28,254,127,248,197,131,23, +140,92,51,112,233,134,110,1,122,13,56,0,0,32,192,195,227,15,158,176,127,248,200,99,97,141,254,62,25,216,4,64, +1,0,12,0,0,0,0,17,253,97,101,141,150,127,88,217,102,97,145,140,3,0,255,192,48,31,254,127,248,32,0,159, +226,96,157,250,126,8,155,162,122,137,202,63,41,223,172,96,129,130,6,56,0,0,4,0,49,131,255,15,156,48,208,146, +71,255,128,192,3,0,255,192,48,31,254,127,248,32,192,131,2,127,156,32,121,144,143,194,62,8,54,59,177,217,132,15, +0,230,6,8,0,0,3,0,12,3,255,0,192,127,249,255,225,6,6,24,125,248,65,129,6,31,152,97,248,33,32,199, +131,18,28,200,123,56,219,99,12,13,254,49,224,231,198,109,129,50,0,192,0,0,32,0,207,195,33,30,252,123,240,200, +67,63,12,176,50,88,233,198,34,1,238,7,8,0,0,9,64,100,131,63,159,228,112,176,195,131,62,141,142,3,0,255, +192,48,0,192,127,248,32,16,223,195,32,28,128,123,252,200,3,32,13,254,55,152,254,102,89,131,126,13,152,0,0,32, +0,223,227,0,12,252,123,240,200,67,63,12,196,58,17,239,196,0,3,254,15,248,32,0,159,226,24,30,76,123,56,159, +226,4,8,48,63,249,195,4,12,1,254,7,248,16,0,255,131,254,12,8,63,240,196,195,110,15,158,3,0,255,192,48, +31,254,127,248,32,64,195,3,12,29,254,126,8,219,163,122,141,234,55,168,255,166,96,129,130,6,56,0,0,0,1,255, +224,72,13,44,20,160,18,7,255,128,192,3,0,255,192,48,31,254,127,248,16,128,231,199,255,4,100,127,145,199,65,53, +220,134,3,0,255,192,48,0,192,127,248,32,0,159,226,30,28,72,125,40,148,162,115,136,204,35,48,228,134,18,3,254, +15,248,32,192,194,3,127,158,104,123,16,223,243,0,13,254,49,0,231,199,17,0,4,0,240,0,0,32,0,219,99,109, +158,254,120,0,223,227,1,140,134,59,249,200,4,32,128,130,3,248,32,128,131,2,127,157,254,112,40,157,162,124,137,178, +62,233,222,228,112,129,254,3,248,0,0,32,128,131,2,127,157,130,123,248,135,194,0,9,255,49,160,228,134,50,1,139, +12,56,0,0,32,0,223,227,12,29,254,126,200,223,227,109,141,254,51,248,234,6,56,0,248,14,120,0,0,32,128,198, +131,51,31,254,123,8,207,227,127,141,48,63,249,195,132,30,0,204,6,24,0,0,32,0,223,227,108,159,254,127,248,219, +35,127,140,48,56,193,223,228,12,1,254,15,248,32,112,129,226,127,157,254,116,96,159,162,127,137,46,36,176,246,198,247, +67,63,8,152,0,0,32,8,191,226,35,28,140,116,176,190,226,59,9,172,38,176,219,238,103,131,240,8,248,0,0,32, +24,223,195,32,158,150,123,80,192,67,3,13,254,59,49,204,196,27,0,12,0,224,0,0,32,80,195,99,127,220,48,123, +248,223,227,109,141,254,62,201,223,228,109,129,178,6,216,0,0,0,0,207,227,33,158,134,123,248,192,3,63,140,16,48, +192,239,230,4,0,56,7,248,32,16,156,98,113,157,126,125,248,158,98,125,137,94,37,56,252,102,113,129,6,0,112,0, +0,32,0,207,195,33,30,252,120,0,207,227,33,140,182,50,216,251,103,10,0,238,6,8,0,0,32,0,143,194,33,28, +196,123,240,131,2,127,137,50,52,200,254,166,114,129,2,4,56,0,0,32,192,195,3,30,31,238,124,200,207,195,3,12, +8,56,193,221,100,80,131,79,1,224,32,80,129,162,127,156,24,119,96,159,162,95,137,108,55,49,195,134,254,0,63,1, +152,0,0,32,192,207,195,33,30,252,123,240,207,227,33,140,254,59,241,255,228,127,128,48,0,192,0,0,32,64,207,195, +63,156,182,123,248,203,35,63,140,104,59,33,255,228,127,128,8,0,32,0,0,32,128,195,3,63,156,54,127,248,195,99, +63,12,48,58,217,199,132,127,1,54,1,128,0,0,32,128,130,2,127,156,76,123,208,191,226,109,136,252,50,208,239,198, +44,0,50,0,120,0,0,32,192,131,2,127,156,32,123,240,136,66,63,8,132,59,241,232,70,63,1,134,15,248,32,0, +207,227,33,158,254,122,24,207,227,48,14,254,63,171,165,160,36,129,50,1,184,0,0,32,192,131,2,127,156,196,121,48, +140,194,127,136,0,35,240,232,70,33,0,252,3,240,0,0,24,97,255,227,255,7,248,24,96,127,129,134,31,255,26,33, +255,228,252,128,192,63,240,32,0,143,194,63,28,4,123,240,128,2,127,137,50,35,240,235,70,45,0,188,0,192,0,0, +32,0,159,226,64,157,254,127,248,157,34,84,137,126,37,248,245,38,84,131,90,9,248,0,0,3,0,76,135,255,159,254, +95,233,127,161,134,7,248,3,0,255,192,48,0,192,127,248,33,0,197,131,50,30,254,127,96,223,227,63,140,216,59,249, +205,132,54,0,254,3,0,0,0,8,97,255,225,134,3,248,3,0,255,195,255,7,248,63,240,12,3,255,0,192,127,248, +37,32,159,226,92,157,122,119,248,151,162,92,137,254,39,248,247,38,220,130,114,27,216,0,0,33,0,135,130,62,29,152, +127,248,155,98,109,137,254,57,241,231,68,52,129,146,12,120,0,0,16,25,251,227,136,27,62,126,248,50,71,249,2,100, +9,16,255,192,48,0,192,127,248,0,129,255,228,191,148,252,95,25,55,228,159,150,68,65,48,12,3,255,0,192,127,248, +32,0,191,226,22,29,254,253,232,149,162,127,136,48,32,192,255,230,12,0,48,15,248,32,144,202,67,127,156,164,122,240, +200,3,63,140,48,55,248,231,134,63,3,182,8,200,0,0,35,0,143,194,33,29,190,126,248,187,2,111,137,200,63,249, +223,228,103,1,182,7,136,0,0,16,0,95,195,97,29,252,113,192,255,227,107,15,38,3,128,255,192,48,0,192,127,248, +32,0,143,226,63,158,134,251,248,128,2,127,136,48,50,192,251,206,108,1,112,8,248,0,0,34,16,159,226,127,156,252, +251,240,143,194,63,9,254,47,248,250,206,121,1,254,7,248,32,0,159,226,79,29,102,125,248,151,226,68,9,254,60,145, +211,196,95,129,254,7,248,1,128,198,99,127,12,108,127,248,223,227,56,13,254,61,24,231,230,17,128,70,1,248,0,0, +32,0,223,227,106,157,254,127,248,195,3,127,140,96,57,241,199,196,49,1,132,4,112,0,0,32,0,207,227,63,158,254, +123,248,192,3,127,141,106,54,168,238,230,127,129,34,3,152,0,0,16,81,235,68,175,19,254,120,129,127,228,179,31,182, +124,201,47,196,140,18,48,127,248,0,0,36,0,147,231,233,134,62,90,137,251,227,184,140,78,3,16,255,192,48,0,192, +127,248,35,32,159,226,127,156,236,121,192,140,194,255,136,120,51,240,239,198,33,0,252,3,240,0,0,32,192,143,226,127, +157,16,127,248,159,226,111,137,254,52,64,247,230,81,131,70,9,248,0,0,3,1,255,230,205,159,254,12,192,255,192,204, +31,254,25,96,237,230,253,128,192,63,240,32,0,223,227,63,28,254,122,24,207,195,127,141,202,52,168,247,166,76,129,50, +4,88,0,0,32,64,159,226,63,156,252,122,16,143,194,63,8,132,35,240,255,230,127,128,204,6,8,0,0,32,0,223, +243,102,29,254,127,216,223,227,120,141,126,52,96,245,238,86,131,218,8,224,0,0,16,65,249,3,223,25,52,61,208,243, +67,239,30,103,51,8,255,195,255,0,192,127,248,32,0,159,226,96,157,254,127,72,155,194,127,137,144,61,249,221,132,95, +131,126,8,96,0,0,32,0,204,67,63,30,196,121,240,223,227,106,140,254,51,240,236,198,31,0,120,7,56,0,0,32, +192,143,226,19,28,76,127,248,143,194,33,8,252,50,16,239,206,22,0,218,14,56,0,0,0,1,251,231,239,22,152,127, +248,97,167,230,7,152,126,192,12,3,255,0,192,127,248,32,192,155,130,127,157,254,126,88,159,226,95,137,252,55,88,255, +230,127,130,210,10,88,0,0,32,128,159,226,127,156,72,113,240,159,226,90,137,206,63,233,212,164,94,129,66,4,24,0, +0,8,65,255,224,132,15,252,63,240,192,195,255,31,254,127,248,236,198,253,128,192,63,248,32,192,159,226,45,28,180,115, +240,191,242,0,9,254,60,25,212,228,95,129,254,7,248,0,0,32,0,155,194,69,157,214,115,220,154,66,74,8,48,63, +249,199,132,63,1,182,0,192,0,0,34,16,132,194,127,157,182,125,232,147,34,127,136,0,35,240,236,70,63,0,252,3, +240,0,0,32,128,131,194,12,29,254,124,152,159,130,79,137,8,62,169,254,164,219,2,60,11,248,0,0,255,194,181,15, +252,31,224,255,192,48,31,254,36,145,158,99,255,0,192,127,248,34,32,140,130,250,29,222,125,248,159,162,7,139,236,35, +49,254,198,243,0,158,6,200,0,0,24,241,251,199,233,31,230,127,249,250,69,231,23,190,127,8,12,3,255,0,192,127, +248,32,97,247,230,73,31,188,97,249,249,134,127,159,152,3,0,255,192,48,0,192,127,248,3,1,255,227,30,10,126,123, +96,223,199,223,150,88,113,248,140,3,255,0,192,127,248,8,0,59,231,252,151,214,42,112,112,199,243,8,190,62,136,12, +3,255,0,192,127,248,0,0,130,2,127,136,252,115,241,207,194,127,139,254,35,248,142,99,159,25,188,7,104,19,0,0, +0,32,128,191,226,115,157,254,119,248,140,194,127,137,254,51,49,223,228,119,131,236,3,152,0,0,3,0,12,0,48,0, +192,127,249,255,224,48,0,192,3,0,12,0,48,31,254,63,240,0,32,31,199,240,0,192,3,0,12,7,255,128,192,3, +0,12,0,48,15,252,63,240,24,64,97,5,132,30,16,120,192,127,241,140,6,16,56,65,225,1,132,6,254,27,248,0, +0,3,1,255,231,255,128,192,63,240,64,3,255,8,196,51,48,255,198,1,24,0,64,0,0,0,3,1,255,231,255,128, +192,63,240,0,7,255,147,50,79,200,33,0,132,14,19,96,120,0,0,3,1,255,224,48,15,252,0,1,255,228,0,145, +34,52,144,82,129,74,31,254,127,248,3,1,255,224,48,15,252,127,249,255,229,254,128,0,31,224,64,129,254,3,48,127, +248,4,0,48,0,254,7,248,24,96,225,134,204,1,176,7,128,30,0,252,14,30,96,24,0,0,16,192,67,3,236,15, +176,50,225,219,199,109,151,50,28,192,115,1,228,28,254,96,248,0,0,4,0,63,129,254,31,48,7,128,127,199,3,143, +252,51,48,255,195,51,12,204,63,240,0,0,16,0,127,195,255,31,252,16,48,127,193,131,7,252,31,224,241,130,252,3, +240,120,120,0,0,0,1,255,225,254,12,12,63,240,255,195,3,15,252,15,224,243,134,124,3,240,120,120,0,0,8,65, +255,231,255,133,254,95,169,94,135,251,146,48,114,48,63,131,204,1,224,124,248,0,0,2,0,24,0,127,3,252,24,48, +192,198,102,0,248,1,192,6,0,112,7,0,56,0,0,0,16,192,67,3,236,15,176,34,193,155,199,109,135,50,12,192, +99,3,140,28,48,64,192,0,0,0,0,255,194,1,11,252,39,16,152,66,125,11,52,62,145,142,70,49,19,135,72,8, +0,0,2,0,31,129,254,14,48,7,128,63,7,159,128,254,14,48,109,128,28,7,224,124,0,0,0,2,0,12,7,255, +134,96,25,248,207,227,105,29,220,81,32,71,129,30,4,220,22,24,0,0,32,64,129,231,237,153,244,118,97,251,132,254, +19,190,127,137,221,224,71,1,56,29,128,0,0,3,0,127,192,124,15,192,127,249,255,229,254,135,248,51,48,255,195,255, +7,56,112,56,0,0,0,65,249,229,109,159,244,86,97,251,129,158,31,159,63,136,245,231,231,22,56,25,128,0,0,3, +0,12,0,48,0,192,127,249,255,224,56,1,224,4,192,51,1,134,28,14,96,24,0,0,127,240,255,192,48,0,192,127, +249,255,224,48,1,224,12,192,97,135,3,152,6,0,0,3,0,12,0,48,0,192,127,248,14,0,56,1,160,4,192,49, +129,230,28,206,97,24,0,0,3,0,12,3,255,15,252,3,0,12,7,255,159,254,7,128,30,0,204,14,30,96,24,0, +0,3,0,12,3,255,15,252,3,48,12,199,255,159,254,7,128,26,0,206,14,30,96,24,0,0,0,0,255,195,240,0, +192,3,1,255,231,255,128,192,7,128,18,1,206,14,30,96,24,0,0,3,0,12,3,255,12,204,51,48,204,195,51,31, +254,7,128,26,0,204,14,30,96,24,0,0,2,0,24,7,255,131,48,8,64,104,199,33,159,250,6,32,16,128,194,6, +24,49,192,0,0,19,0,76,3,255,15,252,99,1,12,7,255,159,254,7,128,26,0,206,14,30,96,24,0,0,1,128, +102,0,216,8,96,57,128,36,7,255,159,254,3,0,26,0,198,14,14,112,8,0,0,3,1,255,231,255,143,252,63,240, +255,195,255,8,196,63,248,28,96,203,14,56,112,56,0,0,2,0,24,7,255,131,16,24,97,255,228,0,143,252,8,0, +127,128,6,0,24,3,192,0,0,3,0,12,7,255,143,252,19,32,77,129,180,31,254,7,128,26,0,204,14,28,96,24, +0,0,3,0,8,7,255,131,240,24,97,192,228,4,31,254,16,96,97,0,196,0,16,3,192,0,0,2,0,8,7,255, +131,176,24,97,192,231,51,132,204,19,48,76,195,51,12,204,96,48,0,0,2,0,28,7,255,131,48,56,113,255,227,4, +13,176,51,128,207,3,198,12,0,63,240,12,0,63,1,254,12,48,127,240,204,195,51,12,204,127,248,30,0,204,14,28, +96,24,0,0,2,0,24,7,255,131,48,27,96,255,231,51,135,252,19,48,127,193,48,128,194,1,248,0,0,3,0,255, +195,255,1,240,60,113,192,199,255,128,12,63,48,132,195,243,15,204,32,224,0,0,2,0,24,7,255,131,48,24,96,255, +198,1,128,0,63,240,12,3,54,24,204,71,16,0,0,3,0,255,192,112,15,252,6,1,255,225,150,14,220,111,216,12, +3,255,0,192,3,0,0,0,3,0,12,7,255,129,224,12,192,97,199,255,140,204,51,48,255,195,51,15,252,48,48,0, +0,2,0,24,7,255,131,16,59,113,255,100,48,15,252,3,0,127,192,48,0,192,127,248,3,0,255,192,48,15,252,6, +1,255,225,196,15,252,99,24,255,192,124,3,56,56,48,0,0,16,1,255,225,141,159,50,24,201,246,97,179,132,192,3, +1,255,224,120,7,56,112,56,0,0,2,0,8,7,255,131,48,27,97,255,228,48,130,208,24,97,255,225,132,12,16,96, +64,0,0,3,1,255,231,255,141,40,100,177,50,99,152,0,192,127,249,255,224,120,7,56,112,56,0,0,8,129,39,226, +191,134,230,56,241,163,128,184,0,192,127,248,30,0,120,7,56,112,56,0,0,2,1,255,231,255,134,24,63,241,224,97, +252,7,240,24,1,255,225,198,15,248,63,176,0,0,8,65,161,7,191,130,254,120,65,161,6,191,144,64,127,249,255,224, +120,7,56,120,56,0,0,0,48,255,131,17,4,200,12,192,126,0,226,15,252,35,1,255,224,120,3,56,112,56,0,0, +8,64,51,7,255,143,252,55,176,179,195,255,12,12,63,241,255,224,120,3,48,120,120,0,0,2,1,255,231,255,143,156, +127,248,27,7,255,131,128,63,225,224,128,254,2,8,15,224,0,0,3,0,255,195,191,10,244,47,144,191,194,253,10,132, +127,249,255,224,120,7,56,112,56,0,0,2,0,24,0,64,31,254,127,248,33,129,132,6,48,29,128,30,0,126,15,28, +112,24,0,0,16,0,199,227,31,159,102,37,152,146,70,203,27,60,56,96,97,129,207,28,102,67,8,0,0,32,0,143, +194,58,31,72,105,33,165,228,147,154,194,123,8,104,35,161,153,134,68,112,0,0,32,0,143,226,6,31,16,108,65,177, +132,191,210,16,120,64,225,3,196,25,16,64,64,0,0,32,64,129,2,20,30,94,107,249,191,38,180,146,82,121,120,229, +195,208,152,66,65,248,0,0,48,0,199,226,3,191,12,108,97,177,134,255,218,24,120,96,97,131,198,25,24,65,192,0, +0,48,128,198,2,24,31,126,111,9,184,38,152,154,50,120,88,96,99,193,152,6,64,112,0,0,16,0,64,3,31,159, +226,55,136,158,34,88,153,98,61,136,118,33,223,141,126,97,136,0,0,32,0,143,226,31,159,6,108,25,180,102,223,146, +66,121,0,228,3,144,219,66,65,248,0,0,2,0,12,7,255,132,0,16,0,127,192,96,31,254,28,96,99,1,248,3, +248,124,56,0,0,16,128,98,5,136,31,254,63,248,100,65,179,14,204,123,33,99,129,142,6,238,31,8,0,0,48,0, +199,194,63,159,6,108,25,176,102,159,154,6,56,24,96,99,193,152,254,64,24,0,0,32,0,143,194,3,30,196,107,49, +172,198,191,146,206,120,8,223,163,129,154,6,64,112,0,0,48,16,207,194,52,31,16,108,65,177,6,255,218,24,120,64, +97,3,196,24,24,67,248,0,0,32,0,143,226,27,62,100,105,145,166,68,191,210,108,121,144,228,67,145,24,196,66,16, +0,0,32,64,129,2,22,31,254,107,9,172,36,191,150,198,123,0,236,3,160,25,128,68,0,0,0,32,64,129,2,63, +191,254,108,65,175,196,191,154,68,121,176,99,131,206,24,252,70,24,0,0,32,0,131,226,62,31,16,108,65,179,134,191, +146,24,120,224,226,131,155,26,198,66,8,0,0,32,64,131,2,14,30,76,111,217,185,36,132,18,252,120,48,224,195,134, +26,24,64,64,0,0,48,64,193,2,5,31,86,111,73,173,38,164,26,22,120,80,96,195,198,24,240,71,0,0,0,32, +16,143,226,9,158,38,104,153,166,70,191,18,100,121,144,198,67,145,27,254,71,248,0,0,34,32,137,130,38,30,154,107, +121,175,198,166,22,152,114,96,201,131,174,219,250,66,56,0,0,48,0,207,226,3,62,120,104,97,191,230,191,154,18,120, +88,225,3,196,24,16,65,192,0,0,0,49,255,194,33,8,140,51,96,73,0,96,31,254,8,64,99,0,248,3,248,120, +48,0,0,32,64,129,2,6,31,254,104,129,162,6,143,154,38,121,152,102,99,177,152,196,70,112,0,0,32,0,143,226, +12,31,48,104,193,191,244,142,26,56,57,224,229,131,246,25,155,76,56,0,0,32,0,143,226,32,62,166,106,145,169,196, +166,22,156,114,208,206,99,168,26,254,67,248,0,0,32,128,139,2,60,31,48,111,249,162,36,136,154,50,57,184,228,99, +241,153,134,70,112,0,0,32,0,143,226,32,190,198,107,249,170,5,168,150,174,114,224,203,3,232,153,51,76,248,0,0, +32,64,129,2,4,30,254,107,249,169,36,164,150,254,114,216,201,35,164,155,254,66,8,0,0,32,0,143,226,49,159,134, +107,25,175,228,161,154,134,123,248,111,227,128,25,254,71,248,0,0,32,128,134,2,31,158,254,106,105,169,132,151,146,94, +121,104,237,163,134,26,16,64,192,0,0,32,64,129,2,63,158,254,104,65,163,4,255,222,56,56,224,231,195,181,153,146, +64,64,0,0,3,1,255,224,48,15,252,3,49,255,227,255,15,248,127,248,113,129,204,1,240,126,56,0,0,2,0,255, +195,255,130,16,12,193,255,224,64,31,254,28,96,99,1,248,3,248,124,56,0,0,32,0,135,226,49,158,214,107,25,191, +228,191,150,182,122,88,200,99,191,154,4,64,112,0,0,32,64,129,2,63,191,208,110,65,169,4,191,154,254,120,200,103, +35,245,153,150,68,64,0,0,32,192,131,2,25,30,68,107,25,191,228,128,26,124,123,248,236,99,241,152,254,67,248,0, +0,32,0,143,194,49,30,196,107,241,175,198,177,18,196,123,240,236,67,177,27,254,71,248,0,0,32,64,129,2,4,31, +254,109,249,161,4,132,18,126,123,24,236,35,176,155,254,67,24,0,0,32,0,138,66,41,62,180,106,81,41,69,161,22, +140,114,240,206,195,247,154,178,64,136,0,0,32,64,133,130,54,30,254,111,249,185,132,134,26,126,121,248,97,131,198,24, +24,67,252,0,0,0,96,255,0,48,31,254,15,192,237,198,49,129,128,127,248,99,1,248,1,248,124,56,0,0,35,184, +159,226,46,158,186,122,233,127,229,255,148,186,118,232,219,163,204,153,54,69,216,0,0,33,16,132,66,27,30,254,105,177, +166,196,155,23,254,121,176,196,195,147,26,204,70,48,0,0,32,160,134,130,26,190,234,107,177,166,133,155,22,238,119,168, +228,131,146,24,203,70,56,0,0,8,64,51,7,255,128,192,63,240,12,7,255,129,128,127,248,97,1,252,3,248,124,56, +0,0,32,64,133,2,60,63,254,110,65,161,4,255,154,56,121,224,103,67,181,153,146,64,64,0,0,32,192,129,2,63, +158,68,105,17,172,100,243,150,104,112,224,227,3,142,24,236,70,24,0,0,32,16,143,226,32,30,128,107,253,168,4,160, +22,254,123,136,206,35,248,155,126,69,152,0,0,32,128,130,34,63,158,44,104,225,191,244,140,22,228,127,240,215,3,152, +154,98,64,248,0,0,32,64,159,226,63,158,254,107,249,175,228,191,22,254,115,248,195,35,159,26,204,70,24,0,0,32, +0,143,226,34,31,136,106,249,171,102,169,146,166,122,248,232,131,162,26,254,65,248,0,0,32,64,129,2,63,191,130,110, +121,175,132,140,26,54,123,240,235,3,204,25,51,64,120,0,0,32,0,143,226,36,159,146,106,201,175,228,164,150,186,122, +168,238,227,176,154,254,66,24,0,0,2,1,207,225,127,129,52,17,193,141,196,225,131,128,127,248,97,1,252,1,252,124, +56,0,0,0,80,1,99,255,152,48,111,65,153,102,197,159,220,105,113,249,132,118,215,126,65,152,0,0,32,64,129,2, +63,190,48,104,65,191,229,132,22,16,115,248,227,3,132,25,254,71,248,0,0,3,32,76,129,182,31,254,15,192,237,198, +49,147,128,127,248,97,1,252,1,248,124,56,0,0,32,0,159,226,26,62,104,125,169,62,165,186,150,238,115,176,198,131, +154,25,254,71,248,0,0,33,0,134,2,127,158,38,104,241,167,164,179,150,4,119,248,198,131,146,26,203,70,56,0,0, +48,16,199,194,12,30,48,43,248,166,198,177,154,230,121,176,230,195,147,26,204,66,48,0,0,3,1,255,231,255,133,40, +52,177,146,96,72,31,254,127,248,97,1,252,1,248,124,56,0,0,16,64,207,226,53,190,254,106,73,175,230,128,19,255, +121,0,231,227,193,152,4,64,112,0,0,32,0,143,226,36,158,254,107,249,169,38,191,150,48,120,192,207,227,132,26,48, +71,248,0,0,32,128,202,196,105,139,46,16,224,159,4,224,1,128,127,248,99,1,248,3,248,124,48,0,0,32,0,143, +226,32,158,254,107,49,171,196,164,22,190,114,192,219,227,254,27,27,68,120,0,0,32,192,131,2,63,158,134,107,249,172, +102,177,150,252,114,72,201,195,163,26,230,71,8,0,0,32,0,159,226,46,158,186,127,249,95,197,46,149,250,119,232,219, +163,79,153,56,75,224,0,0,32,0,143,226,49,159,254,108,1,175,230,177,146,254,123,248,236,99,255,152,130,66,56,0, +0,32,0,143,226,32,30,190,106,1,175,228,191,150,170,114,184,202,195,233,27,190,69,136,0,0,33,16,132,66,63,190, +254,104,73,175,229,172,22,254,115,248,199,35,188,153,150,68,64,0,0,32,96,143,226,54,190,88,111,249,175,229,146,150, +254,119,176,228,195,147,24,127,71,152,0,0,32,128,135,194,31,31,200,111,249,169,36,164,146,254,120,224,195,3,156,26, +218,70,120,0,0,32,0,143,226,33,159,198,107,249,160,4,191,154,48,59,248,239,227,206,24,236,70,24,0,0,32,0, +143,226,49,190,254,105,241,33,5,255,151,178,118,232,254,163,241,153,130,70,56,0,0,32,0,139,226,32,191,18,126,201, +127,229,236,149,186,119,248,221,99,228,153,146,70,56,0,0,0,1,255,227,201,137,36,60,112,155,199,249,129,0,127,248, +97,129,252,1,248,124,56,0,0,32,0,143,226,49,158,254,107,25,175,230,128,18,254,122,8,239,227,177,154,254,67,248, +0,0,32,0,159,242,80,159,90,127,233,94,165,90,149,106,117,232,223,163,64,157,6,68,56,0,0,32,128,223,228,77, +153,252,23,48,183,134,191,128,128,127,248,113,129,252,3,248,124,56,0,0,32,192,143,226,127,191,130,123,185,47,229,174, +151,186,119,232,197,227,150,26,155,70,56,0,0,32,64,131,2,63,158,48,107,249,163,4,255,150,114,115,120,220,195,147, +26,118,67,136,0,0,32,128,159,226,12,62,252,120,217,127,229,141,149,254,114,192,203,227,252,25,120,68,120,0,0,32, +48,143,130,54,30,254,107,33,174,198,185,154,126,123,248,108,99,255,152,198,67,248,0,0,32,192,143,226,63,158,182,107, +249,171,36,191,150,104,115,32,223,227,255,154,8,64,32,0,0,32,64,143,226,12,62,254,104,193,175,229,159,22,198,115, +248,204,99,191,154,198,67,56,0,0,16,64,97,135,255,142,56,61,241,77,161,4,3,128,127,248,99,1,248,1,248,124, +56,0,0,0,1,255,229,121,149,254,87,216,113,198,121,129,0,127,248,97,129,252,1,248,124,56,0,0,33,16,132,66, +11,30,254,106,73,175,228,191,158,254,123,248,239,227,255,152,16,64,64,0,0,32,192,131,130,127,191,146,107,249,175,228, +165,150,254,114,72,207,227,191,152,16,64,64,0,0,32,64,143,226,63,190,252,107,17,175,196,128,23,254,119,248,207,195, +132,26,16,65,192,0,0,0,64,251,3,223,159,244,62,97,161,197,153,133,128,127,248,33,1,252,1,248,124,56,0,0, +32,0,143,226,52,190,220,107,193,59,229,191,22,198,115,248,204,99,191,154,198,67,48,0,0,33,16,140,194,63,158,68, +105,241,164,68,159,22,16,119,248,195,131,159,27,214,64,72,0,0,34,0,143,226,36,158,254,107,249,171,228,191,150,254, +115,248,223,227,223,155,126,69,248,0,0,32,48,159,194,41,190,172,127,249,164,5,255,150,64,115,240,206,67,238,27,188, +79,152,0,0,32,0,143,194,33,30,252,106,17,175,196,128,30,254,59,248,234,163,234,153,254,71,248,0,0,32,64,143, +226,63,190,186,106,233,174,228,191,150,136,123,248,207,195,162,26,251,67,56,0,0,32,64,131,2,63,158,254,107,249,175, +228,177,150,254,120,192,197,3,240,153,71,69,224,0,0,2,81,235,68,191,146,254,123,249,127,228,233,159,50,127,249,36, +196,190,18,60,255,24,0,0,32,64,137,34,61,158,254,104,193,175,230,132,22,254,122,72,207,227,141,26,62,71,248,0, +0,33,32,159,226,27,62,254,121,177,63,229,191,148,182,115,248,235,99,255,216,134,66,56,0,0,32,64,131,2,127,159, +130,107,241,166,5,253,150,60,115,112,211,227,182,153,152,64,192,0,0,32,64,143,226,36,190,214,106,89,171,100,191,150, +16,115,248,204,67,158,26,124,71,56,0,0,32,64,133,130,63,159,144,126,249,79,197,58,21,254,127,248,201,195,167,25, +182,69,136,0,0,34,0,140,130,127,158,120,107,249,167,229,255,148,126,119,248,207,195,183,27,94,69,104,0,0,32,24, +143,226,53,158,212,111,249,190,37,191,150,64,113,240,206,67,174,27,188,71,152,0,0,32,64,131,130,127,159,142,123,241, +172,5,191,148,200,115,32,223,227,146,26,206,70,8,0,0,32,0,159,226,30,62,254,122,169,175,229,128,22,252,115,248, +207,227,181,25,150,69,200,0,0,32,0,143,226,45,158,254,107,249,175,196,187,22,244,121,152,223,227,181,26,150,69,200, +0,0,32,64,143,226,19,63,254,123,249,47,229,161,148,254,115,248,195,3,255,152,48,64,64,0,0,24,65,251,225,155, +159,252,60,97,102,99,255,143,254,47,248,191,230,228,16,240,95,56,0,0,32,64,143,226,51,62,76,123,249,41,37,191, +150,146,114,232,202,163,238,154,130,66,24,0,0,32,0,143,226,6,62,94,107,97,63,229,191,150,192,115,248,193,35,245, +155,82,68,56,0,0,32,64,141,66,63,159,254,111,249,172,68,191,22,124,115,248,207,99,164,154,150,64,64,0,0,34, +32,140,130,122,28,207,127,233,123,165,127,149,238,115,48,222,195,123,31,218,67,72,0,0,33,32,159,226,63,30,72,107, +241,175,196,161,22,252,112,192,223,227,158,26,204,70,24,0,0,32,64,143,226,45,30,212,121,241,63,245,128,22,254,114, +8,206,163,174,154,254,67,248,0,0,32,192,159,226,12,63,254,123,241,104,69,191,20,204,119,248,207,195,191,154,134,67, +248,0,0,32,97,247,230,73,31,126,124,97,159,231,230,1,0,127,248,97,129,252,1,248,124,56,0,0,32,128,159,226, +63,159,254,127,233,191,165,255,150,252,115,240,207,195,177,26,252,71,248,0,0,2,1,233,230,165,159,254,106,217,239,227, +83,31,222,107,56,172,166,190,147,146,84,152,0,0,3,1,255,227,0,7,252,63,240,255,195,39,31,252,127,209,245,199, +255,18,229,92,152,0,0,32,64,159,226,96,31,36,127,249,118,197,127,149,180,116,128,214,131,213,27,126,73,232,0,0, +32,0,143,226,127,191,50,127,241,111,229,36,21,222,119,120,205,35,255,155,146,66,120,0,0,0,0,255,192,7,0,48, +3,128,12,7,255,159,254,3,0,12,0,48,0,192,15,0,0,0,0,0,255,192,7,0,48,3,128,12,0,63,135,240, +123,0,12,0,48,0,192,15,0,0,0,0,0,255,192,7,0,48,35,128,204,1,240,1,192,3,192,13,224,48,128,192, +15,0,0,0,0,1,251,0,108,3,48,24,192,99,1,236,31,48,88,192,99,1,140,198,50,56,120,0,0,0,1,255, +0,140,6,62,24,24,255,102,255,0,224,3,1,255,224,48,0,192,15,0,0,0,2,0,12,7,255,144,2,95,232,63, +0,24,0,192,127,248,12,0,48,0,192,14,0,0,0,4,0,16,7,255,131,0,24,16,79,195,6,28,48,119,248,223, +227,12,12,48,51,192,0,0,0,65,241,0,196,6,20,49,80,205,99,180,156,146,118,76,193,3,4,12,16,113,192,0, +0,0,112,255,130,35,12,200,19,96,255,129,254,0,96,127,249,255,224,16,0,192,15,0,0,0,3,1,255,231,255,128, +192,127,249,128,97,254,0,112,3,1,255,224,48,0,192,15,0,0,0,0,129,242,0,216,2,127,19,144,78,65,139,30, +60,112,96,65,129,15,4,238,115,8,0,0,2,0,24,67,255,1,176,127,248,28,1,254,30,56,97,128,255,224,16,0, +64,7,0,0,0,0,0,127,128,28,0,192,127,248,12,0,112,1,128,63,240,146,66,73,13,254,127,248,0,129,246,0, +223,130,198,23,216,93,225,247,158,222,115,248,76,193,48,4,195,113,248,0,0,0,96,255,0,48,31,254,15,192,109,135, +55,151,240,3,129,255,224,48,0,192,14,0,0,0,0,25,255,193,173,4,180,50,208,203,67,237,30,180,114,152,218,163, +74,141,122,101,136,0,0,16,1,255,231,233,25,60,60,96,255,231,252,135,248,3,129,255,224,48,0,192,14,0,0,0, +2,16,76,199,255,159,254,64,8,127,128,28,0,192,127,248,12,0,48,0,192,14,0,0,0,0,65,241,1,255,198,48, +17,144,79,193,190,30,54,115,144,72,129,15,12,230,118,8,0,0,3,1,255,231,255,133,40,52,177,146,96,74,7,248, +1,193,255,224,48,0,192,15,0,0,0,0,1,255,224,48,7,248,115,56,12,1,31,31,140,52,97,151,231,198,15,24, +96,192,0,0,16,193,251,7,236,31,252,100,209,243,64,93,31,116,24,208,255,199,153,196,199,50,24,0,0,0,0,255, +226,1,143,252,39,224,135,2,255,152,96,126,249,144,199,255,145,8,76,96,0,0,8,65,255,231,255,141,36,125,224,81, +103,255,134,242,31,224,14,7,255,128,192,15,0,0,0,16,9,223,228,250,151,234,127,121,255,231,243,151,204,127,249,255, +227,226,11,8,76,224,0,0,9,16,205,195,135,12,204,63,113,255,228,0,151,250,1,129,255,231,255,128,192,7,0,0, +0,0,1,255,225,255,133,178,55,248,143,195,132,29,254,96,200,159,226,106,137,170,102,184,0,0,8,65,255,225,132,31, +126,124,177,247,230,95,159,24,31,224,15,7,255,128,192,15,0,0,0,2,0,12,7,255,159,254,96,25,0,32,0,0, +0,0,0,0,0,0,0,0,3,0,12,7,255,152,6,96,24,0,7,255,128,192,3,0,12,0,48,0,192,14,0,0, +0,2,0,12,7,255,152,6,96,24,96,1,142,7,224,28,0,96,1,129,135,252,15,240,2,0,12,7,255,152,6,70, +8,24,3,254,1,24,12,96,49,129,134,140,26,96,120,0,0,3,0,255,231,255,144,22,71,200,252,0,32,1,254,127, +192,8,0,32,128,198,3,248,2,0,12,7,255,144,2,95,232,127,128,48,31,254,127,248,12,0,48,0,192,15,0,0, +0,2,0,12,7,255,152,6,64,200,3,7,255,128,48,16,192,99,0,140,0,48,3,128,0,0,2,0,12,7,255,152, +6,70,8,56,7,255,130,16,24,192,62,0,124,7,156,112,24,0,0,3,0,12,7,255,144,6,67,8,12,7,255,129, +224,15,192,109,131,51,24,198,3,0,0,0,2,0,12,7,255,144,6,95,248,63,0,0,31,254,12,128,50,0,136,142, +50,112,248,0,0,3,0,12,7,255,145,130,6,1,255,224,208,2,96,27,0,201,134,99,27,252,15,24,0,0,3,0, +12,7,255,153,134,67,40,37,130,207,11,100,111,25,56,33,194,31,24,71,192,3,0,12,7,255,152,6,64,9,255,224, +192,7,0,63,241,224,69,129,7,252,31,240,0,0,3,0,255,231,255,144,2,95,232,0,0,0,31,254,3,0,76,131, +51,24,198,14,0,0,0,3,1,255,231,255,144,2,31,224,64,129,254,7,248,24,0,127,193,3,7,252,31,240,0,0, +2,0,12,7,255,152,6,67,24,127,195,255,12,204,63,240,255,195,51,15,252,63,240,0,0,2,0,12,7,255,144,6, +95,248,127,128,48,4,192,19,240,236,3,176,27,192,67,248,0,0,3,0,12,7,255,144,2,88,152,127,195,121,25,228, +93,176,54,193,152,140,34,96,248,0,0,2,0,12,7,255,144,6,95,200,97,129,134,7,248,24,96,127,129,134,6,24, +127,248,2,0,12,7,255,152,6,96,24,255,192,48,0,192,31,224,13,0,54,31,254,127,248,3,0,12,7,255,152,70, +77,8,20,3,16,6,192,127,249,255,224,108,7,28,112,24,0,0,2,0,255,231,255,153,34,4,97,255,224,216,3,108, +9,224,103,3,56,153,226,64,248,3,0,12,7,255,144,198,35,16,255,194,49,15,252,35,16,255,195,255,0,192,3,0, +0,0,3,1,255,231,255,145,130,31,224,243,2,120,3,240,124,249,127,129,2,6,24,31,224,0,0,2,1,255,231,255, +144,2,31,224,0,1,254,6,24,31,224,97,129,254,0,0,127,248,3,1,255,231,255,144,6,63,240,49,1,254,15,196, +3,0,255,192,48,0,192,127,248,3,1,255,231,255,145,0,127,248,112,1,255,14,12,127,240,96,193,255,6,12,24,224, +0,0,3,1,255,231,255,144,6,63,240,196,3,254,15,252,48,48,255,195,24,12,96,63,248,3,1,255,231,255,144,194, +27,0,255,194,48,31,254,127,248,50,0,136,142,34,96,248,0,0,2,0,12,7,255,144,6,95,232,64,129,254,7,248, +0,0,255,194,1,15,252,63,240,0,0,2,1,255,231,255,144,194,63,240,33,0,196,31,254,3,0,12,3,255,0,192, +3,0,0,0,2,1,255,231,255,152,198,31,224,127,193,255,31,254,3,0,127,195,3,12,12,63,240,0,0,0,0,12, +7,255,152,6,95,232,97,129,254,7,248,15,193,255,225,206,7,240,15,225,240,192,0,0,3,1,255,231,255,148,202,11, +64,127,129,255,7,252,31,240,127,193,255,4,12,16,224,0,0,2,1,255,231,255,144,2,31,224,56,3,183,1,240,57, +225,158,129,219,28,70,7,0,0,0,3,1,255,231,255,159,254,63,240,192,3,254,15,254,63,248,182,198,206,27,220,78, +24,0,0,3,1,255,231,255,146,54,24,96,204,192,120,7,56,63,249,255,161,2,6,24,31,224,0,0,3,1,255,231, +255,147,50,63,240,18,1,254,4,136,18,32,76,129,120,135,98,112,248,0,0,3,1,255,231,255,144,30,95,232,64,1, +255,6,48,16,65,255,224,132,14,28,96,24,0,0,3,1,255,231,255,150,2,31,248,195,7,63,29,166,54,24,223,227, +97,141,254,55,248,0,0,3,1,255,231,255,148,2,31,248,98,97,137,31,180,24,113,233,133,166,22,126,57,8,0,0, +3,1,255,230,49,159,254,7,128,63,131,199,31,254,16,32,252,131,18,15,200,0,224,0,0,3,1,255,231,255,151,250, +31,224,127,131,255,12,204,63,240,204,193,254,7,60,112,24,0,0,3,1,255,231,255,145,146,41,192,174,68,226,159,240, +98,0,140,67,49,15,252,63,240,0,0,3,1,255,231,255,144,50,60,240,3,7,255,31,12,45,224,179,130,219,155,66, +71,248,0,0,3,1,255,230,1,151,250,0,0,127,129,254,0,0,63,240,140,67,255,8,196,63,240,0,0,3,1,255, +231,255,146,16,107,249,175,199,140,2,254,120,225,167,198,181,147,146,72,64,0,0,3,1,255,230,205,159,254,12,192,127, +128,204,31,254,24,96,206,198,1,131,224,1,192,0,0,3,1,255,231,255,159,254,19,32,127,129,254,0,192,63,240,141, +98,253,139,148,32,48,0,0,2,1,255,228,49,159,254,7,0,97,129,254,7,248,24,96,127,135,255,135,56,112,56,0, +0,3,1,255,229,0,149,254,83,241,192,195,63,5,254,52,25,207,197,30,4,120,23,56,0,0,3,1,255,228,72,159, +254,12,192,127,193,3,4,12,31,240,12,7,255,131,56,120,56,0,0,3,1,255,231,145,151,254,55,241,179,195,206,15, +254,112,24,255,193,182,12,206,103,8,0,0,3,1,255,230,1,159,254,31,224,127,129,254,6,24,127,248,97,198,255,129, +16,57,192,0,0,3,1,255,230,129,146,254,104,193,175,199,155,2,254,123,249,175,198,177,18,196,75,240,0,0,3,1, +255,228,0,159,126,20,208,121,198,121,7,56,119,56,102,1,226,0,112,62,0,0,0,2,1,255,230,205,159,254,12,192, +127,135,255,159,254,51,49,255,224,180,14,216,39,32,0,0,2,1,255,230,49,159,254,47,208,243,195,255,31,254,24,96, +127,129,54,12,204,103,16,0,0,3,1,255,229,254,133,232,31,225,255,231,255,135,248,16,32,127,199,207,19,220,30,24, +0,0,0,64,1,0,4,31,254,0,224,1,3,4,6,16,12,64,1,0,4,0,48,3,192,0,0,0,16,0,199,195, +1,254,5,249,144,195,211,6,108,28,176,112,195,99,24,12,64,112,0,0,3,0,12,3,255,0,192,127,249,255,224,4, +31,254,127,248,97,0,132,2,48,1,192,0,0,0,0,255,192,3,7,252,0,48,255,192,4,31,254,127,248,33,0,68, +0,16,1,192,0,0,0,0,255,194,3,15,252,32,0,255,224,254,0,24,127,248,97,0,196,1,16,3,192,0,0,2, +0,255,192,96,15,252,63,241,255,231,255,130,24,31,248,209,134,102,16,152,0,224,0,0,24,16,96,71,225,6,126,25, +249,248,65,9,6,52,126,208,96,65,161,31,132,64,112,0,0,8,16,96,67,225,9,254,63,248,152,67,233,27,164,126, +80,120,67,97,25,132,12,112,0,0,16,192,71,229,57,157,236,48,224,78,1,99,15,254,114,49,76,193,27,4,12,16, +240,0,0,0,17,252,70,17,31,254,96,249,248,70,13,31,212,108,81,84,71,81,25,68,12,112,0,0,8,64,51,135, +255,143,252,37,144,243,195,255,12,12,63,241,255,225,134,3,16,5,192,0,0,20,17,220,67,97,31,196,39,248,208,71, +233,6,52,62,80,249,65,129,31,196,64,112,0,0,1,0,12,0,48,0,192,51,48,204,194,49,152,198,99,9,12,48, +48,0,192,14,0,0,0,2,0,12,1,50,4,204,51,16,140,102,48,128,192,2,32,3,128,56,7,192,120,0,0,0, +8,0,96,1,255,143,254,99,25,140,65,178,4,204,51,49,140,100,48,128,192,15,0,0,0,0,1,255,0,140,6,62, +24,24,192,102,51,0,200,19,96,204,198,49,16,198,6,0,0,0,3,0,12,1,50,12,204,99,25,8,32,48,31,254, +127,248,30,0,204,14,28,112,56,0,0,1,0,12,1,54,12,204,99,25,12,0,0,0,192,63,240,12,0,48,31,254, +127,248,3,0,204,65,51,4,200,63,240,255,194,65,11,244,44,208,179,66,253,8,4,32,112,0,0,3,0,109,131,51, +24,196,2,1,255,224,120,3,56,123,57,45,1,50,12,196,7,0,0,0,3,0,76,129,182,31,254,96,24,255,224,0, +31,254,127,248,49,1,134,15,252,62,16,0,0,2,0,8,0,32,31,254,127,248,8,0,120,1,224,5,128,54,1,152, +204,98,96,248,0,0,2,64,9,128,35,31,254,127,248,28,0,120,1,96,13,128,54,33,152,156,102,96,248,0,0,32, +128,194,3,31,159,230,43,24,162,98,141,138,22,40,25,160,70,135,19,2,71,248,0,0,12,0,49,199,255,1,140,3, +224,62,35,207,128,0,127,248,50,0,136,6,34,112,248,0,0,32,64,129,131,14,31,100,43,24,166,66,155,10,108,41, +177,164,198,177,19,2,71,248,0,0,16,64,97,199,228,128,24,127,249,153,7,230,15,24,60,225,234,133,170,86,75,59, +56,0,0,32,32,138,130,47,191,176,58,208,234,35,191,14,254,122,249,239,229,255,150,2,79,248,0,0,0,0,255,227, +1,140,6,48,24,255,195,0,12,0,32,0,128,6,0,24,0,64,0,0,0,0,0,255,192,99,1,140,127,249,255,224, +99,1,140,63,240,16,64,192,14,0,112,0,0,0,0,0,255,195,1,12,4,48,16,255,195,255,12,96,48,128,131,6, +6,24,14,64,24,0,0,0,0,255,226,1,136,6,63,248,140,2,48,15,248,34,33,152,134,98,211,11,88,56,0,0, +0,0,255,195,1,12,4,63,240,192,3,64,13,60,39,192,152,2,64,153,254,67,240,0,0,0,0,255,195,1,12,4, +63,240,193,131,6,9,200,97,177,128,100,192,129,224,0,192,0,0,0,0,255,226,1,143,254,48,224,191,2,177,11,252, +111,9,159,231,240,16,66,65,248,0,0,0,0,255,194,1,15,252,63,240,134,2,249,139,252,103,225,151,134,219,22,102, +67,128,0,0,0,0,255,194,3,15,252,63,240,192,3,255,136,6,47,217,179,102,253,147,246,0,112,0,0,0,0,255, +226,1,140,6,63,248,161,2,140,11,246,44,225,163,6,140,147,242,76,120,0,0,0,0,255,226,1,143,254,63,240,128, +2,255,8,0,127,249,156,134,99,19,252,79,216,0,0,0,0,255,194,1,15,252,63,240,134,3,255,136,96,39,241,191, +198,193,19,252,79,240,0,0,0,0,255,226,1,143,254,63,240,130,66,201,11,252,39,241,162,38,137,147,254,79,248,0, +0,0,0,255,226,1,143,254,32,0,182,194,255,139,254,45,177,183,198,206,19,252,71,248,0,0,0,0,255,226,1,140, +6,63,240,134,2,255,11,254,41,153,191,230,153,147,254,79,248,0,0,0,0,255,226,1,143,254,32,0,255,226,102,11, +252,45,153,191,198,255,16,96,95,248,0,0,0,0,255,226,1,143,254,63,240,182,66,91,9,232,63,249,143,6,123,23, +102,81,136,0,0,0,0,255,226,1,143,254,54,48,152,131,255,137,152,38,97,255,230,102,19,24,88,96,0,0,0,0, +255,226,1,143,254,36,96,247,227,6,9,124,61,249,246,198,206,19,60,79,152,0,0,0,0,255,226,1,143,254,61,144, +146,194,127,11,252,47,241,176,70,255,19,4,76,112,0,0,0,0,255,226,1,143,254,54,96,191,194,255,137,152,63,249, +146,70,79,19,252,78,24,0,0,0,0,255,226,1,143,252,46,248,255,227,237,159,126,127,185,239,229,253,151,6,88,48, +0,0,0,0,255,226,1,143,254,33,240,150,2,255,11,100,39,241,191,230,153,147,254,72,56,0,0,0,0,255,226,1, +143,254,35,16,191,194,54,15,254,39,129,255,199,127,17,132,71,240,0,0,0,0,255,226,1,143,254,36,176,191,226,255, +139,110,35,9,255,230,102,17,248,95,56,0,0,0,0,255,226,1,143,254,36,64,229,227,84,11,254,57,65,229,230,150, +18,248,74,120,0,0,0,0,255,226,1,143,252,45,128,239,194,127,139,126,121,249,163,198,187,18,56,75,248,0,0,32, +0,255,227,255,143,252,45,80,239,226,95,11,214,120,193,175,228,187,18,60,75,152,0,0,3,0,12,2,49,8,198,35, +24,140,98,49,143,254,63,240,12,0,48,0,192,3,0,0,0,3,0,12,7,255,128,192,35,16,140,66,49,8,196,63, +240,12,0,48,128,194,1,248,3,0,12,0,48,24,198,99,25,140,102,49,152,198,99,25,140,102,49,159,254,0,24,0, +0,16,128,70,1,31,149,126,87,1,87,197,71,21,24,84,193,118,7,208,192,98,1,248,16,0,71,229,1,149,6,84, +25,87,229,95,149,64,85,1,84,7,208,193,98,1,248,0,0,16,0,70,1,31,149,126,85,1,84,5,95,149,2,84, +9,255,231,193,128,6,0,112,0,0,3,0,140,66,49,15,252,6,0,48,1,255,12,8,12,96,27,0,56,7,128,56, +0,0,0,2,1,140,102,49,143,254,0,1,255,192,1,0,4,63,240,128,2,0,140,6,31,248,0,0,207,227,3,30, +204,123,49,239,231,191,158,28,120,241,230,199,243,2,140,0,224,3,1,140,71,255,15,252,63,192,255,0,140,3,124,30, +48,109,131,28,24,252,78,24,0,0,16,0,79,229,27,21,44,84,177,86,197,127,213,108,85,177,118,199,211,0,204,2, +48,0,0,16,64,65,1,63,149,56,84,65,95,229,127,149,70,85,177,243,135,206,0,254,7,24,0,0,3,0,140,99, +255,128,192,7,128,115,135,51,144,64,63,224,1,128,12,0,96,1,0,0,0,8,0,33,131,3,31,254,31,224,17,128, +198,14,112,35,0,140,66,49,15,252,63,240,0,0,0,0,207,227,32,30,166,122,209,233,199,166,30,156,122,81,238,103, +168,2,254,3,248,3,1,140,103,255,143,252,63,241,255,230,133,155,38,99,153,158,103,205,152,6,96,112,0,0,16,0, +71,229,17,149,86,85,89,85,101,85,149,86,84,97,83,135,206,193,75,3,56,0,0,0,32,255,128,48,1,192,127,248, +51,3,7,152,198,35,16,140,66,49,15,252,63,240,0,0,3,0,140,67,255,15,252,63,240,255,195,11,15,108,35,48, +158,194,205,90,23,64,24,0,0,2,0,127,131,254,13,8,51,96,193,3,255,135,254,4,9,147,102,77,159,246,0,112, +0,0,3,1,140,102,49,159,254,0,0,255,195,51,8,196,63,240,128,2,0,140,6,31,240,3,0,140,67,255,15,252, +0,1,255,224,2,15,200,49,32,196,131,242,0,8,1,224,0,0,16,128,70,5,31,149,254,86,9,95,165,86,149,74, +85,105,87,167,208,129,6,0,112,0,0,3,0,140,98,49,143,252,0,1,255,231,255,130,0,31,241,224,71,129,7,252, +31,240,0,0,16,64,65,1,4,21,126,87,121,93,37,116,149,254,87,121,93,39,244,128,254,3,24,0,0,16,0,79, +229,52,149,210,87,249,93,165,116,149,254,87,249,81,7,196,17,16,0,64,0,0,0,64,67,1,14,22,76,95,153,121, +37,132,22,252,88,49,96,135,158,2,48,0,96,0,0,11,32,100,195,25,157,254,112,128,195,35,7,132,206,35,16,140, +66,49,15,252,63,240,0,0,0,96,127,129,0,7,252,31,240,65,3,6,31,254,3,16,140,66,49,15,252,63,240,0, +0,16,64,65,133,70,21,254,85,249,81,133,70,21,126,85,25,84,39,208,129,126,1,24,0,0,17,0,79,229,48,149, +198,87,249,92,133,118,21,254,87,33,92,135,243,1,247,3,152,0,0,3,0,140,99,255,143,252,63,248,255,226,0,11, +254,33,129,255,230,24,16,96,65,128,0,0,3,0,140,67,255,15,252,6,1,255,225,144,12,192,63,240,4,1,150,12, +206,71,24,0,0,3,1,140,103,255,143,252,8,1,175,230,129,154,6,107,249,160,97,129,140,254,48,24,0,0,3,0, +140,99,255,143,252,60,17,195,230,73,153,38,108,153,242,100,203,134,32,48,128,0,0,16,0,79,229,25,21,60,84,241, +94,101,68,21,254,84,97,113,135,255,129,16,0,64,0,0,1,0,68,1,63,150,254,94,9,127,165,182,150,254,91,121, +111,231,177,128,6,0,112,0,0,0,0,79,225,32,150,186,90,9,107,165,174,150,170,90,169,107,167,168,130,130,2,56, +0,0,16,64,65,129,63,151,16,95,249,127,229,195,23,255,93,49,118,199,203,0,12,0,96,0,0,16,64,65,1,63, +151,48,95,89,117,69,221,23,255,92,225,243,135,219,0,198,6,8,0,0,0,16,71,193,12,23,48,95,249,118,197,209, +151,230,93,177,118,199,219,0,204,2,48,0,0,0,128,71,129,31,23,216,95,249,99,101,255,150,54,88,217,111,231,196, +0,48,1,192,0,0,3,1,255,231,255,133,40,52,177,146,96,72,0,0,35,16,140,66,49,15,252,63,240,0,0,0, +160,207,195,18,158,72,127,249,239,135,146,158,126,127,177,228,199,147,0,95,3,216,0,0,16,128,70,69,17,149,210,84, +225,82,197,81,21,198,85,249,84,71,209,1,124,1,240,0,0,16,64,77,161,23,149,92,85,249,95,229,113,149,254,87, +9,127,231,241,128,198,3,56,0,0,16,128,67,197,27,23,236,88,225,119,229,244,150,254,88,65,103,231,206,2,254,0, +64,0,0,0,128,198,195,51,30,254,120,177,236,103,232,158,124,123,241,254,199,142,2,124,7,24,0,0,1,144,207,227, +127,158,100,123,249,239,231,164,158,52,123,249,226,103,153,2,196,6,112,0,0,0,64,193,3,63,158,16,121,81,229,71, +191,158,56,120,225,231,199,181,130,146,0,64,0,0,16,64,65,133,63,215,131,92,177,118,101,224,151,126,92,97,113,135, +198,0,254,3,248,3,0,140,99,255,128,192,127,249,128,101,254,128,0,127,248,12,1,54,24,204,78,24,0,0,16,64, +79,225,14,23,60,95,153,127,229,193,151,118,93,89,117,103,221,130,6,0,120,0,0,3,1,140,103,255,143,252,25,128, +127,227,24,31,252,17,128,127,193,24,7,254,31,248,0,0,3,0,140,99,255,128,0,63,248,134,2,255,8,96,127,249, +134,6,255,16,96,95,248,0,0,0,0,207,227,32,158,254,122,33,236,167,178,158,254,122,97,252,167,242,131,126,5,248, +0,0,0,64,207,227,63,158,124,121,25,231,231,128,30,252,120,113,239,231,191,128,16,1,192,0,0,1,8,71,197,31, +23,242,92,193,127,229,153,23,254,95,249,118,103,159,146,70,1,56,0,0,0,64,195,3,127,158,108,123,81,255,231,253, +158,254,123,217,239,231,188,2,19,0,120,0,0,3,0,140,99,255,142,0,17,161,244,199,209,142,242,60,193,210,197,17, +4,254,19,136,0,0,3,1,140,103,255,143,252,60,240,243,226,73,143,62,100,153,247,230,89,145,70,77,48,0,0,3, +1,140,103,255,134,4,126,248,194,2,136,31,190,76,144,62,71,217,2,68,9,16,0,0,3,1,140,103,255,128,0,63, +248,128,98,253,136,198,47,216,161,98,253,136,6,63,248,0,0,3,0,140,99,255,128,60,63,248,131,3,253,9,20,63, +113,237,134,230,19,250,81,152,0,0,3,1,140,103,255,128,0,63,240,140,195,255,8,204,63,240,44,2,153,26,22,79, +200,0,0,0,0,207,227,10,30,254,122,169,234,167,191,158,32,127,249,228,199,190,2,60,3,152,0,0,8,225,227,99, +63,132,56,124,224,199,163,179,143,16,114,75,73,33,36,132,254,19,248,0,0,0,16,79,193,4,23,255,89,65,125,101, +149,23,214,89,249,227,135,181,1,146,0,64,0,0,2,0,207,227,36,158,254,123,249,232,7,191,158,230,123,249,238,103, +255,131,254,5,248,0,0,3,1,140,103,255,128,32,36,129,251,231,248,137,90,60,96,145,130,71,15,38,37,8,0,0, +1,48,207,227,27,30,108,123,249,233,39,140,158,254,120,225,231,199,181,131,146,0,64,0,0,3,1,140,103,255,128,192, +7,192,243,230,253,143,164,38,144,250,67,233,9,132,38,112,0,0,0,64,197,99,21,30,254,121,241,237,103,164,30,48, +123,249,228,199,190,2,60,3,152,0,0,35,1,140,99,255,128,192,127,248,127,129,3,7,248,63,249,128,102,253,155,246, +104,56,0,0,1,16,198,195,27,31,254,121,49,236,135,174,159,254,125,17,228,103,170,131,254,4,228,3,0,140,99,255, +128,192,63,240,204,67,255,12,196,63,240,29,0,223,14,114,97,248,0,0,1,16,70,197,63,150,48,91,249,99,5,255, +150,112,89,249,103,231,246,3,254,1,248,0,64,77,97,29,22,254,88,161,108,101,255,150,198,91,249,108,103,191,130,196, +3,48,0,0,0,64,207,227,27,30,254,123,249,239,231,177,158,254,123,249,227,7,255,194,16,0,64,0,0,0,64,197, +67,21,30,254,121,241,237,103,164,30,254,122,153,255,231,151,130,198,6,24,0,0,0,0,206,195,27,158,206,123,249,248, +55,191,30,196,123,241,228,199,146,2,120,7,248,3,1,140,103,255,144,124,124,249,139,131,199,8,126,124,105,247,231,222, +15,120,103,120,0,0,3,1,140,99,255,159,254,124,97,243,231,217,159,106,125,169,247,167,228,137,52,69,136,0,0,3, +1,140,103,255,135,16,25,249,253,163,223,149,94,125,248,243,199,207,143,120,98,56,0,0,0,0,100,65,51,12,200,38, +97,155,6,204,25,144,50,96,204,193,147,6,102,9,144,0,0,196,99,49,140,198,51,24,204,99,49,140,198,35,24,140, +102,49,152,70,64,24,0,0,0,0,102,97,153,134,102,125,217,119,229,251,148,238,17,152,198,99,25,152,102,64,24,0, +0,64,1,155,99,105,1,108,13,161,180,135,91,13,164,54,216,201,35,36,159,254,71,248,0,0,25,32,217,129,179,15, +252,51,48,255,195,51,15,252,3,1,255,224,252,14,220,99,24,0,0,0,1,255,224,48,0,192,3,0,12,0,48,0, +192,3,0,12,7,255,128,0,4,0,16,0,192,31,254,12,0,32,1,255,135,254,48,128,194,6,8,19,254,31,248,3, +255,246,3,24,12,96,49,128,199,227,0,141,2,124,25,128,96,1,128,60,0,0,255,227,0,12,0,63,240,255,195,3, +12,12,63,240,192,3,0,15,254,63,248,0,0,15,143,162,12,136,50,32,206,131,46,12,136,62,35,216,176,66,195,14, +8,56,0,0,127,248,255,193,50,4,200,19,96,237,131,183,25,246,67,136,12,7,255,159,254,8,96,33,7,255,128,192, +63,240,24,7,255,159,254,15,240,127,199,8,31,254,31,248,0,65,241,128,255,134,36,57,145,191,224,16,31,84,49,80, +69,67,245,31,149,6,88,0,0,63,240,0,192,3,0,12,63,240,255,195,3,12,0,48,8,192,35,131,135,252,127,240, +0,192,3,8,12,48,48,255,194,2,8,0,32,8,128,35,255,135,252,63,240,192,194,3,8,12,63,240,255,194,1,8, +0,32,8,128,35,255,135,252,0,0,255,194,51,8,196,35,16,140,195,255,8,4,32,0,128,2,0,140,6,31,240,8, +192,51,7,255,131,48,12,193,255,225,134,15,252,120,89,127,1,129,2,4,15,240,0,1,255,230,121,159,126,127,248,243, +192,204,31,254,8,65,255,231,255,135,60,112,24,0,0,3,0,12,0,48,15,254,35,24,140,98,49,136,198,35,24,140, +98,55,0,192,3,0,0,0,0,1,255,227,176,0,192,63,240,255,194,49,8,196,35,16,140,66,55,8,208,3,0,0, +0,2,0,12,7,255,159,254,3,0,255,195,255,8,196,35,16,140,66,55,8,216,3,0,0,0,6,0,24,7,255,159, +254,9,0,102,3,255,158,102,81,24,68,97,17,132,92,1,0,0,0,8,64,97,5,191,150,254,90,73,105,37,164,150, +146,90,72,73,97,37,140,16,32,64,0,0,17,48,71,195,17,31,68,85,145,87,69,85,21,92,87,49,124,65,33,69, +135,20,24,0,0,8,0,127,229,140,22,52,91,249,105,37,164,150,146,90,72,73,33,37,140,16,32,64,0,0,16,32, +127,128,124,15,156,38,1,255,224,144,7,252,127,241,68,65,17,4,92,1,0,0,0,16,64,65,1,63,159,16,84,225, +87,229,68,21,254,84,233,113,33,4,132,22,16,64,0,0,17,0,196,99,19,31,88,125,65,255,231,255,159,88,125,33, +228,195,17,12,118,51,136,0,0,16,0,247,231,233,9,44,124,96,123,198,25,128,200,63,240,204,195,51,12,220,3,0, +0,0,16,64,65,3,63,159,254,87,73,93,229,127,149,230,87,145,123,193,38,5,190,21,136,0,0,16,64,65,1,12, +31,126,85,25,84,101,81,149,126,85,25,116,97,17,132,126,17,248,0,0,16,64,65,1,6,31,30,84,65,81,5,95, +149,102,85,9,116,33,16,132,126,17,152,0,0,2,1,255,231,255,145,50,56,112,140,67,255,15,252,35,16,140,66,49, +8,220,3,0,0,0,16,64,69,3,22,31,254,87,65,89,5,127,149,56,84,97,115,129,27,4,198,22,8,0,0,0, +0,127,129,254,0,24,63,224,0,7,255,144,194,127,248,204,195,51,12,220,3,0,0,0,3,0,127,131,255,12,12,63, +240,192,195,255,0,192,63,248,140,98,49,136,220,35,32,0,0,16,0,71,227,17,159,70,85,25,84,101,95,149,124,84, +1,118,65,17,132,198,18,8,0,0,2,0,12,7,255,130,24,127,249,255,228,48,159,254,63,240,204,195,51,12,216,3, +0,0,0,19,32,108,135,255,132,200,0,1,255,228,48,159,254,63,240,204,195,51,12,216,3,0,0,0,16,64,65,225, +7,159,24,85,249,84,101,85,149,86,85,89,117,97,12,4,110,19,8,0,0,1,0,255,227,255,137,136,63,248,153,130, +126,8,248,111,241,191,228,153,146,110,73,176,0,0,8,1,251,225,137,31,172,24,153,254,33,143,156,224,63,240,255,194, +49,8,220,3,0,0,0,16,64,207,227,63,158,126,121,249,255,231,255,158,100,121,249,238,67,109,13,4,48,112,0,0, +16,160,70,131,26,31,254,87,33,95,229,95,149,72,85,249,101,129,18,4,126,17,0,0,0,19,32,76,135,255,152,6, +95,232,97,129,254,0,192,63,240,255,194,49,8,220,35,96,0,0,32,64,207,227,12,30,254,120,193,255,231,191,158,198, +122,89,233,99,44,140,108,55,8,0,0,0,0,207,227,32,159,250,126,73,249,39,238,159,154,126,73,239,227,32,140,254, +50,8,0,0,16,0,79,227,48,159,250,87,233,80,37,95,149,70,85,249,116,97,31,132,70,17,248,0,0,0,1,255, +231,255,140,12,31,224,127,128,96,31,254,27,97,255,225,50,4,216,19,64,0,0,16,0,207,227,48,159,254,127,1,255, +231,245,31,254,126,233,235,227,47,141,136,55,252,0,0,16,0,79,227,0,31,126,85,25,87,229,64,21,254,86,73,127, +225,55,132,218,19,248,0,0,16,0,79,227,63,159,198,87,249,81,165,85,149,84,87,249,118,193,26,4,73,22,56,0, +0,32,0,204,99,63,158,198,121,241,255,231,234,158,254,123,249,236,227,31,12,120,55,56,0,0,8,65,255,224,132,15, +252,63,240,192,195,255,31,254,127,248,255,199,255,132,200,19,96,0,0,32,64,207,227,27,31,254,123,249,239,231,177,158, +254,123,249,227,3,127,204,16,48,64,0,0,0,160,202,163,59,31,254,121,17,239,231,191,158,254,120,193,255,227,14,12, +108,55,24,0,0,16,48,79,195,21,31,124,87,249,87,197,117,149,146,87,249,125,97,63,132,214,19,248,0,0,16,64, +207,227,27,30,108,127,249,231,231,181,158,254,123,249,225,131,63,140,16,51,252,0,0,24,16,247,231,235,31,36,30,49, +253,131,255,15,252,63,240,12,3,255,136,198,35,48,0,0,127,248,255,192,48,0,192,3,1,255,224,48,0,192,3,0, +12,0,48,0,192,0,0,127,248,12,1,51,4,200,27,96,12,7,255,128,192,3,0,12,0,48,0,192,0,0,8,0, +96,3,255,140,96,97,1,127,193,152,4,64,25,129,255,224,24,0,64,1,0,0,0,16,32,97,128,132,31,254,28,224, +33,0,132,31,254,28,224,97,1,132,12,16,96,64,0,0,3,0,12,3,255,0,192,127,248,97,128,132,15,252,3,0, +12,7,255,128,192,3,0,0,0,2,0,24,0,192,3,24,24,192,254,3,248,1,192,14,96,96,195,255,31,246,0,8, +8,0,103,225,31,140,2,38,9,240,39,193,134,6,20,24,216,103,225,156,220,0,112,16,64,65,3,4,8,126,103,249, +241,39,196,134,50,20,200,218,39,249,156,230,3,48,0,0,0,0,12,4,180,150,210,87,185,255,166,182,147,218,87,185, +255,228,49,159,254,0,24,0,0,1,0,4,3,255,143,254,32,0,128,2,0,8,0,32,0,128,6,0,24,0,64,0, +0,0,1,0,6,7,255,152,0,100,1,144,198,78,25,224,102,1,144,38,64,145,254,71,240,0,0,1,0,4,3,255, +136,32,33,128,134,2,255,11,252,97,129,134,6,24,23,254,95,248,0,0,1,0,6,7,255,152,32,97,129,134,7,255, +152,96,99,193,141,4,102,19,14,88,8,0,0,1,0,142,7,255,152,0,104,193,163,38,253,155,248,104,193,163,4,140, +211,242,76,120,0,0,1,0,6,3,255,136,32,33,128,191,230,255,152,240,99,225,158,196,217,150,98,65,128,0,0,1, +0,255,227,255,136,96,63,248,134,2,24,11,252,100,49,153,134,60,17,248,92,56,0,0,1,0,134,3,255,136,0,47, +240,137,130,60,31,254,111,249,134,68,24,16,96,71,128,0,0,1,0,134,3,255,136,32,39,240,191,226,193,155,254,108, +25,176,6,128,18,0,88,0,0,0,1,0,142,3,255,136,0,47,248,134,2,24,15,254,97,193,143,6,44,19,178,88, +120,0,0,1,0,255,227,255,136,192,47,248,191,194,76,11,252,111,241,131,7,255,144,48,64,192,0,0,1,0,6,3, +255,136,0,33,24,164,66,217,27,108,100,161,145,134,4,23,254,95,248,0,0,1,0,255,227,255,136,12,47,240,179,2, +204,11,254,108,65,177,6,222,147,238,76,152,0,0,1,0,255,227,255,137,128,47,240,160,67,249,11,36,108,145,191,198, +192,147,2,71,248,0,0,1,0,6,3,255,136,64,33,128,135,226,24,8,96,111,241,176,70,129,19,252,79,240,0,0, +1,0,6,3,255,136,0,32,128,159,226,255,139,38,47,248,191,230,201,155,254,79,248,0,0,1,0,255,227,255,136,96, +47,240,134,99,255,200,102,111,241,142,6,60,17,156,92,56,0,0,1,0,142,7,255,153,132,100,17,183,230,223,159,68, +109,145,146,70,65,17,12,68,112,0,0,1,0,255,227,255,136,144,34,32,255,226,104,25,164,102,177,147,132,204,150,242, +80,248,0,0,1,0,255,231,255,153,104,109,49,191,230,255,152,192,103,241,157,135,220,20,248,70,56,0,0,1,0,134, +3,255,137,136,34,96,191,226,24,27,252,103,241,134,5,255,144,32,64,128,0,0,1,0,142,7,255,153,16,100,65,191, +231,206,31,56,108,241,181,100,244,147,144,76,64,0,0,1,0,255,227,255,137,136,63,248,153,130,126,8,248,111,241,152, +198,62,16,248,94,120,0,0,1,0,134,7,255,152,32,101,177,182,198,255,158,242,97,129,191,228,24,16,96,95,248,0, +0,1,0,255,231,255,155,4,111,241,144,134,239,155,190,102,33,183,228,223,147,192,83,248,0,0,1,0,206,3,255,136, +96,47,248,182,98,255,139,254,47,241,185,7,255,144,16,64,64,0,0,1,0,255,231,255,152,192,127,249,154,134,255,31, +110,111,241,182,196,255,17,98,64,248,0,0,1,0,134,3,255,136,136,38,32,255,226,98,9,136,103,225,128,6,165,22, +214,83,72,0,0,1,0,255,227,255,139,252,33,176,255,226,25,27,252,105,145,183,196,126,22,110,71,0,0,0,1,0, +255,227,255,139,252,33,176,255,226,255,24,100,111,241,191,196,153,18,100,73,176,0,0,1,0,255,227,255,137,152,63,248, +159,130,60,11,252,108,49,191,198,204,18,24,80,56,0,0,1,0,255,227,255,137,224,45,248,166,98,255,138,102,111,249, +135,6,60,17,156,88,24,0,0,1,0,255,231,255,153,152,127,249,191,198,125,31,254,98,209,191,196,110,22,188,82,200, +0,0,1,0,255,231,255,153,158,127,121,229,103,245,30,84,127,73,233,37,181,151,212,80,64,0,0,1,0,255,226,102, +15,254,38,96,143,2,255,27,252,97,129,191,230,255,16,96,95,248,0,0,1,0,255,231,255,153,152,127,97,187,230,253, +159,244,127,113,60,196,179,22,222,87,200,0,0,1,0,255,231,255,153,158,127,121,189,102,149,27,214,127,73,25,37,255, +145,148,76,64,0,0,1,0,255,230,0,31,254,107,89,157,231,156,153,184,121,153,153,4,121,16,56,79,0,0,0,1, +0,255,230,0,27,252,111,241,191,198,255,27,252,111,249,242,228,255,144,96,95,252,0,0,1,1,255,230,192,27,190,122, +105,253,39,89,159,216,117,249,126,197,95,149,76,115,32,0,0,1,0,255,230,24,31,254,111,241,175,70,189,27,252,111, +241,191,197,255,147,108,91,136,0,0,0,1,240,1,128,6,0,48,0,240,0,192,27,0,56,0,224,3,192,27,254,64, +248,0,0,0,17,239,225,36,12,16,34,97,233,225,164,22,144,122,64,207,227,0,31,224,67,248,0,0,0,17,239,193, +140,4,16,32,193,239,229,132,22,16,88,192,223,227,0,31,254,67,248,0,0,0,129,239,193,13,13,254,32,217,255,193, +140,21,254,112,128,223,227,8,31,224,71,248,0,0,8,64,97,129,134,6,24,24,97,255,231,255,134,24,24,96,65,131, +6,24,24,96,96,0,0,24,96,97,129,134,6,24,127,248,97,129,134,6,24,24,96,97,129,134,7,248,24,96,0,0, +127,248,49,128,132,2,16,8,65,255,225,198,2,16,24,64,65,3,4,24,16,0,0,6,0,49,1,134,15,252,127,248, +33,0,132,31,254,28,224,97,1,132,12,16,96,64,0,0,0,0,255,194,3,15,252,48,0,192,99,255,2,16,24,97, +255,225,132,12,16,96,64,0,0,2,0,12,7,255,131,16,24,96,255,192,5,2,16,127,248,99,129,132,12,16,96,64, +0,0,0,1,255,224,48,15,252,3,1,255,224,132,2,16,127,248,99,129,132,12,16,96,64,0,0,3,1,255,231,255, +141,40,100,177,50,99,152,2,16,12,193,255,224,132,14,16,96,64,0,0,10,64,171,7,239,158,244,95,113,249,196,189, +130,0,12,193,255,225,132,14,16,96,64,0,0,2,0,9,128,35,0,128,63,249,252,0,48,0,64,1,0,6,0,12, +128,58,0,120,0,0,0,160,2,64,29,159,254,0,128,3,7,236,6,48,8,192,33,1,182,223,154,96,56,0,0,8, +33,224,227,130,143,255,100,32,64,135,254,31,72,57,33,84,197,95,4,231,112,24,0,0,63,240,0,192,3,15,252,63, +224,192,3,255,15,254,0,16,0,64,3,0,120,0,0,0,17,252,64,49,0,196,63,16,128,70,1,31,196,35,16,12, +64,33,0,132,30,16,0,0,4,128,50,7,255,3,52,44,208,255,194,72,27,50,127,248,50,33,137,140,46,96,128,0, +0,0,1,241,0,204,3,48,124,193,130,4,26,31,108,125,144,52,96,183,134,254,122,8,0,0,0,65,225,0,164,2, +158,123,249,31,36,116,158,146,26,120,105,1,160,198,194,113,248,0,0,16,96,33,131,255,15,252,3,16,255,195,48,8, +192,63,248,28,97,241,158,222,99,32,0,0,1,1,228,96,147,2,88,121,65,143,230,127,158,88,57,32,36,192,145,6, +246,115,8,0,0,1,1,228,0,191,134,214,126,89,1,4,21,30,214,26,72,105,33,164,134,16,113,192,0,0,0,1, +225,0,191,134,254,120,129,6,68,55,30,248,24,192,98,65,145,135,254,114,8,0,0,0,25,239,192,173,6,180,122,209, +11,68,45,30,180,26,152,122,161,202,135,122,117,136,0,0,16,1,247,227,105,25,60,28,97,222,231,254,0,8,31,224, +192,3,255,0,4,1,240,0,0,0,1,239,224,131,2,24,120,225,14,228,96,158,254,27,240,97,1,132,6,56,119,248, +0,0,0,1,255,224,177,134,196,123,241,12,68,49,30,252,27,16,109,225,255,134,4,112,16,0,0,3,1,255,231,255, +133,40,36,145,146,33,254,0,12,63,240,192,3,255,0,4,0,240,0,0,0,1,247,224,65,143,62,124,241,130,7,255, +137,166,52,232,112,231,223,145,6,28,112,0,0,0,17,228,193,146,6,254,122,217,15,228,45,158,254,27,248,127,225,255, +134,16,112,64,0,0,0,1,239,192,177,2,252,121,241,3,4,63,158,150,123,248,47,224,133,134,254,55,232,0,0,0, +1,255,225,48,132,194,119,185,18,132,74,29,254,87,168,82,33,88,133,226,116,184,0,0,16,1,251,193,137,31,36,127, +153,28,35,159,159,126,36,145,241,199,198,1,60,29,152,0,0,63,240,255,192,1,0,4,0,48,255,192,3,0,4,0, +16,0,199,255,0,12,8,0,47,228,191,146,6,72,25,32,100,159,146,6,72,24,96,97,129,140,254,32,24,0,0,3, +0,140,67,51,4,200,3,0,255,192,3,0,4,63,240,0,192,1,15,252,63,240,0,0,0,0,255,192,3,15,252,0, +33,255,231,255,140,204,27,224,63,3,246,28,206,15,0,0,0,8,0,63,129,134,7,248,0,97,255,224,225,28,204,15, +225,206,128,251,30,102,7,0,0,0,16,33,247,225,134,31,126,24,97,247,225,6,15,252,0,48,255,193,255,15,252,63, +240,0,0,8,0,63,129,134,7,248,127,249,255,226,98,9,234,63,112,159,130,50,29,251,100,56,0,0,8,0,127,129, +254,31,254,60,224,247,135,223,15,120,117,88,33,7,255,134,16,112,64,0,0,0,0,7,0,112,7,0,16,96,7,0, +120,7,128,0,48,3,128,60,7,192,56,0,0,0,0,1,252,67,102,13,176,54,8,216,103,243,9,176,38,8,152,98, +99,25,184,70,192,0,0,0,0,252,66,54,14,208,43,8,172,103,247,31,240,35,8,140,102,51,16,216,70,192,0,0, +3,0,255,195,255,130,24,63,248,255,226,28,11,200,96,225,190,70,3,16,120,95,0,0,0,2,1,252,96,7,18,240, +42,8,32,97,199,31,208,28,8,248,102,147,18,56,8,192,0,0,8,0,60,192,134,31,208,73,25,249,198,148,19,194, +94,49,121,133,172,148,130,115,248,0,0,35,0,204,99,51,31,248,51,8,204,99,187,31,248,119,11,252,99,49,12,216, +51,192,0,0,8,1,252,97,199,15,208,127,8,248,103,247,24,208,127,8,152,99,99,15,248,112,192,0,0,8,1,252, +99,35,31,248,127,8,252,102,55,31,208,127,8,32,103,243,2,56,8,192,0,0,0,1,252,71,247,24,240,63,9,252, +96,3,15,240,99,8,252,98,163,26,216,24,192,0,0,0,0,6,0,48,3,128,24,192,6,0,48,3,192,31,0,12, +0,48,0,192,3,0,0,0,16,64,193,6,63,147,254,25,128,198,7,31,156,102,49,24,204,99,49,13,132,52,112,0, +0,19,32,207,134,34,16,136,22,56,240,103,127,29,252,50,48,205,131,28,13,252,62,56,0,0,16,0,155,230,102,149, +218,63,105,153,38,100,153,146,39,72,155,34,72,136,102,35,48,0,0,16,192,195,6,127,149,182,22,216,219,71,127,157, +196,53,176,211,131,78,15,124,59,24,0,0,16,128,195,6,12,17,254,16,192,195,7,12,29,254,48,192,195,3,12,13, +254,55,248,0,0,16,0,223,230,14,16,16,16,64,201,7,39,156,152,50,64,201,3,36,13,254,55,248,0,0,16,0, +207,198,49,16,132,27,240,207,199,33,28,196,51,240,204,67,33,13,254,55,248,0,0,16,0,223,198,3,16,24,25,224, +220,231,96,156,252,51,240,195,3,12,12,48,55,248,0,0,16,192,195,6,127,144,48,24,192,223,247,3,29,254,50,48, +200,195,19,12,76,48,224,0,0,18,0,200,6,127,151,254,28,8,223,39,37,156,246,50,88,207,99,33,140,6,48,112, +0,0,16,0,223,198,97,17,252,23,240,216,71,127,29,160,54,88,217,131,102,13,238,55,24,0,0,16,16,196,70,19, +17,254,16,192,195,7,63,156,16,48,192,223,227,4,12,16,48,64,0,0,16,0,223,230,65,151,2,21,232,212,167,82, +157,74,53,232,208,35,64,141,254,52,24,0,0,16,128,195,6,127,144,54,31,248,195,103,127,156,48,55,248,195,3,255, +140,48,48,192,0,0,16,128,198,6,51,21,240,17,176,223,231,120,156,252,55,240,252,131,28,12,252,62,24,0,0,16, +128,195,6,30,20,204,63,248,207,135,12,29,254,48,192,203,67,109,143,50,49,128,0,0,16,192,195,6,127,148,48,16, +192,223,247,12,28,176,54,248,219,3,124,15,112,56,248,0,0,16,128,131,6,127,149,36,54,177,202,134,255,153,254,33, +224,138,194,201,138,34,32,128,0,0,16,0,207,230,63,144,134,19,248,192,7,127,188,12,55,248,200,195,50,12,72,48, +224,0,0,17,32,198,134,123,149,238,17,160,222,231,123,156,104,55,184,222,227,26,12,104,49,160,0,0,16,64,201,6, +39,148,144,18,192,255,247,4,28,144,54,120,217,3,116,15,112,56,248,0,0,16,192,155,102,45,20,188,55,248,223,230, +80,153,122,37,40,151,162,92,137,2,36,56,0,0,36,0,144,228,254,150,202,51,105,191,166,50,154,250,43,232,172,162, +183,139,248,32,32,0,0,16,128,199,6,127,145,254,31,248,223,231,63,29,254,48,192,207,195,63,12,48,63,248,0,0, +16,16,223,198,68,21,254,55,248,209,6,95,153,70,37,248,148,98,223,139,126,41,248,0,0,16,16,223,198,73,145,180, +18,16,223,231,76,29,48,63,252,211,35,76,141,254,55,248,0,0,34,32,170,132,170,22,255,63,233,131,166,255,153,204, +47,48,182,194,219,10,94,40,200,0,0,34,32,170,132,170,23,255,63,201,191,166,3,155,236,34,48,190,194,35,11,254, +32,72,0,0,16,192,223,230,12,21,254,21,232,215,167,127,188,0,55,248,195,3,116,143,202,49,224,0,0,18,32,156, +134,218,23,255,61,233,191,166,39,139,236,36,48,158,194,91,11,94,59,72,0,0,34,32,170,132,170,23,255,48,105,191, +166,71,155,204,38,176,190,194,171,10,190,38,72,0,0,0,0,24,0,48,0,96,8,0,176,70,193,155,6,108,9,48, +180,194,3,24,7,192,8,0,96,1,128,14,128,123,1,96,5,128,6,0,24,0,96,1,128,6,0,24,0,0,0,4, +0,24,64,51,0,88,44,64,179,198,217,27,198,78,8,48,163,194,27,24,7,224,0,0,48,0,207,227,63,158,12,124, +97,195,7,24,12,64,51,0,216,35,64,141,254,51,240,0,0,16,0,207,227,63,158,34,124,137,198,39,24,140,102,49, +24,204,99,49,141,134,52,112,0,0,0,0,255,192,3,15,252,63,224,192,99,255,131,248,3,16,164,70,147,146,26,79, +192,0,0,255,192,49,4,196,38,16,48,193,143,28,152,11,16,164,70,131,146,26,15,192,48,16,207,195,4,30,16,120, +65,193,135,127,204,16,48,64,193,3,4,12,16,48,64,0,0,2,0,8,0,63,0,192,2,1,255,224,96,0,192,41, +144,160,70,131,147,26,15,192,0,1,255,224,48,0,240,3,112,12,64,32,0,128,59,48,164,102,131,146,26,15,192,0, +192,3,96,13,159,254,0,192,99,0,196,29,80,113,65,71,133,62,197,143,28,56,0,0,48,32,192,131,2,30,254,127, +249,192,135,18,12,104,48,160,194,131,2,12,8,48,224,0,0,3,0,12,7,255,128,192,3,0,255,195,255,0,128,11, +128,162,70,131,146,26,15,192,2,0,12,7,255,132,0,16,0,127,193,255,0,128,9,16,166,102,130,147,26,15,192,32, +128,195,3,4,31,255,127,1,204,3,48,12,192,51,0,204,3,48,12,254,48,0,0,0,0,0,255,192,96,3,128,127, +248,97,3,35,29,142,87,168,90,195,105,9,128,14,0,0,0,3,0,12,3,255,8,196,35,16,255,195,255,0,192,43, +16,166,70,135,147,26,15,192,48,64,195,3,12,31,254,126,201,219,35,108,141,254,55,248,195,3,12,12,48,48,192,0, +0,17,0,196,3,63,159,254,126,65,193,7,63,141,254,48,64,193,3,4,12,16,48,64,0,0,48,128,198,195,25,30, +254,127,249,198,3,20,12,80,51,64,205,3,100,141,154,60,120,0,0,49,32,196,131,19,30,196,126,25,218,35,8,12, +96,49,176,196,67,49,141,254,50,8,0,0,48,128,194,3,63,30,252,120,145,194,67,127,141,254,49,192,199,131,51,13, +142,60,24,0,0,16,128,195,3,12,31,254,124,193,195,7,14,12,62,48,200,195,3,12,12,48,48,192,0,0,48,192, +195,3,127,158,254,120,193,207,195,63,140,196,49,48,199,131,12,13,252,54,24,0,0,16,64,193,3,12,31,254,126,201, +219,39,12,12,48,48,192,199,3,52,205,219,52,120,0,0,0,0,12,0,120,7,48,115,121,132,99,254,0,24,6,192, +44,70,145,26,14,72,104,63,0,48,0,223,227,9,158,38,121,153,198,71,127,12,100,49,16,196,67,17,13,254,55,248, +0,0,48,16,207,195,48,30,128,127,1,207,231,34,12,136,50,32,216,131,98,13,8,52,32,0,0,8,0,96,67,255, +25,180,76,144,100,67,51,1,156,11,1,164,68,129,146,26,15,192,33,0,204,3,63,159,128,127,241,192,3,127,12,12, +48,16,192,67,1,12,7,48,24,0,0,0,0,33,1,135,31,254,95,232,17,128,198,14,112,34,0,172,194,145,155,18, +79,192,48,0,223,227,12,30,48,125,193,199,135,63,13,182,60,200,195,3,12,12,48,48,192,0,0,3,0,12,7,255, +129,224,6,128,51,3,247,28,70,3,0,166,70,131,146,26,79,192,8,64,99,1,140,6,48,28,224,222,198,49,128,130, +3,16,166,70,139,147,26,15,192,48,0,223,227,12,30,32,120,129,223,247,30,12,120,49,96,205,131,54,13,155,60,56, +0,0,48,0,223,227,96,31,196,126,177,219,131,102,13,152,54,240,222,99,112,13,254,55,248,0,0,49,0,204,99,51, +30,216,127,65,223,231,127,140,216,51,96,204,131,51,12,246,51,8,0,0,48,64,195,3,158,30,204,118,25,223,227,51, +12,204,51,48,205,131,48,140,198,49,240,0,0,48,0,223,227,25,158,102,121,25,220,231,99,12,254,51,248,200,99,33, +140,254,51,248,0,0,49,0,196,3,191,158,254,126,129,219,231,15,140,32,48,248,195,227,8,12,32,48,128,0,0,8, +0,96,1,255,140,128,99,241,8,0,63,128,128,2,0,166,70,129,146,26,79,232,32,64,131,3,63,31,254,126,217,155, +98,109,137,255,32,192,131,130,26,9,198,44,8,0,0,16,0,103,231,249,137,164,100,240,241,129,223,24,70,3,0,182, +194,197,155,18,79,200,48,0,223,227,63,158,16,120,65,201,7,39,140,144,50,64,201,3,36,13,254,55,248,0,0,48, +64,193,3,12,30,254,126,9,200,39,32,140,254,50,8,200,35,32,140,254,51,248,0,0,32,128,194,3,127,159,254,123, +65,223,7,127,143,146,50,72,201,35,37,140,16,48,64,0,0,48,192,195,3,12,31,254,127,249,195,3,12,12,254,50, +24,200,99,33,140,254,51,248,0,0,48,0,207,195,33,30,132,126,17,207,195,33,12,132,51,240,207,195,0,13,254,55, +248,0,0,48,192,195,3,158,30,200,118,153,243,39,4,12,252,48,48,193,131,28,12,48,48,96,0,0,0,0,255,194, +49,15,252,63,240,140,67,255,0,128,3,0,166,70,133,147,26,15,192,4,0,51,3,135,15,252,0,0,255,195,3,15, +252,6,0,44,70,145,146,26,79,200,48,128,198,3,18,30,204,126,25,223,231,0,140,252,51,240,200,67,33,12,252,51, +240,0,0,12,0,127,3,140,31,248,127,240,127,193,255,7,252,63,224,44,70,153,146,26,79,192,32,0,159,227,12,30, +182,122,209,139,66,12,9,255,32,192,131,2,12,8,48,32,192,0,0,48,64,205,3,36,30,254,126,193,209,3,4,12, +254,48,192,193,3,4,13,254,55,248,0,0,16,0,127,195,249,25,228,85,176,118,1,152,156,62,3,0,166,70,133,147, +18,79,192,32,0,223,227,97,159,134,127,249,216,3,105,13,172,54,224,210,3,72,205,34,60,248,0,0,48,0,223,227, +49,30,108,120,225,207,199,113,140,48,51,248,207,227,12,12,48,55,248,0,0,33,96,197,131,127,158,126,121,105,223,239, +86,13,122,55,248,205,163,54,141,158,60,96,0,0,48,64,193,3,63,158,254,120,65,195,7,127,140,48,49,128,196,195, +49,13,254,54,8,0,0,32,192,195,195,13,158,48,127,249,195,131,30,12,120,51,208,203,99,76,141,50,48,192,0,0, +8,64,49,0,204,15,252,48,48,192,195,255,7,248,11,0,166,70,128,147,26,15,224,0,0,0,17,240,64,127,153,4, +61,144,98,67,193,25,28,3,32,164,70,145,146,26,15,192,48,0,223,227,51,30,120,121,225,221,231,76,140,252,51,240, +195,3,255,140,48,48,192,0,0,8,48,95,131,8,28,48,127,248,194,3,12,13,254,3,0,166,70,129,155,26,79,200, +49,0,196,3,191,159,254,118,9,223,35,36,140,242,50,72,207,99,61,140,6,48,112,0,0,48,64,195,3,127,158,48, +120,193,223,227,3,13,254,50,48,204,195,19,12,76,48,224,0,0,3,0,12,7,255,129,32,52,240,146,102,72,128,128, +11,16,166,70,131,146,26,15,192,32,192,155,99,45,158,180,122,241,159,226,127,136,88,33,96,141,130,54,201,139,44,56, +0,0,0,1,255,195,19,4,108,19,240,253,199,99,193,6,43,16,166,70,133,147,26,15,192,48,0,223,227,0,30,252, +127,249,200,103,63,140,198,50,24,207,227,0,13,254,55,248,0,0,16,0,195,199,239,137,166,100,152,242,97,239,156,0, +3,0,166,70,131,146,26,15,192,24,96,33,7,255,128,192,63,240,127,128,48,31,254,3,0,166,198,129,155,18,79,192, +3,0,255,192,48,31,254,3,0,255,192,48,31,254,3,0,172,194,145,155,30,79,192,16,1,255,225,141,159,50,24,152, +98,103,243,132,8,3,0,164,70,131,146,26,15,192,33,0,196,3,127,158,216,123,33,202,167,42,141,190,53,112,241,131, +143,12,102,51,8,0,0,2,1,204,65,127,129,36,1,209,199,6,55,3,134,3,0,182,194,193,155,26,15,192,48,192, +195,3,12,31,254,127,169,222,163,122,141,234,55,168,222,163,122,141,254,55,248,0,0,0,1,255,224,48,15,252,36,144, +146,66,75,9,44,11,0,166,70,133,147,26,15,192,48,0,207,195,33,30,252,127,241,216,67,63,12,176,50,88,201,131, +34,13,238,55,8,0,0,0,0,255,194,49,11,244,35,16,179,67,135,15,252,3,0,164,198,151,147,26,15,192,48,128, +198,67,63,31,204,125,225,195,3,31,13,206,51,248,204,67,33,12,252,51,240,0,0,48,0,223,227,96,159,250,126,9, +219,163,122,141,234,55,168,223,163,96,141,130,54,56,0,0,48,16,207,195,12,30,16,127,249,223,227,4,12,48,51,248, +200,99,33,140,254,51,248,0,0,8,64,51,3,255,2,48,12,193,255,225,134,13,140,118,120,90,131,105,9,164,14,0, +0,0,3,0,127,129,254,7,248,16,32,127,129,2,7,248,3,0,164,70,145,146,26,15,192,48,192,195,3,158,30,76, +127,25,223,231,0,12,252,51,240,200,67,33,12,252,51,240,0,0,16,0,255,131,254,12,8,63,240,204,195,62,15,158, +34,8,164,66,137,27,30,79,200,0,1,255,224,72,13,44,20,160,82,135,255,159,254,3,16,164,70,131,146,26,79,192, +32,32,156,131,114,28,30,120,249,190,162,66,137,90,37,104,183,34,252,138,54,32,176,0,0,48,0,223,227,100,31,148, +126,73,223,231,127,141,24,52,96,211,195,73,15,102,59,8,0,0,48,192,219,99,109,159,254,120,1,207,195,127,140,6, +51,248,223,195,96,13,130,51,248,0,0,32,8,158,163,74,159,234,127,169,190,162,122,137,234,39,168,154,162,48,137,162, +44,184,0,0,32,128,130,3,127,159,254,124,41,157,162,92,137,50,36,232,156,226,112,137,254,39,248,0,0,48,0,223, +227,64,159,98,127,241,205,3,36,13,254,48,64,195,131,127,140,16,48,64,0,0,31,224,255,128,248,15,252,35,16,255, +195,51,15,252,35,112,12,3,153,26,14,79,232,0,0,32,0,159,227,64,159,50,127,249,147,34,76,137,122,39,248,147, +34,76,137,254,39,248,0,0,48,64,201,35,53,158,20,127,249,200,103,33,140,254,50,8,207,227,33,140,134,50,56,0, +0,0,96,255,129,50,6,216,127,248,63,1,182,28,206,70,0,180,194,193,155,26,79,192,0,0,50,16,204,195,127,31, +254,120,217,223,231,108,13,254,55,248,199,35,109,143,60,48,192,0,0,48,0,207,227,33,158,254,126,25,207,231,0,12, +254,48,192,223,227,12,12,48,48,192,0,0,48,0,207,195,33,30,252,120,1,223,231,109,141,182,55,248,216,3,96,141, +130,51,248,0,0,33,0,204,3,63,159,128,127,249,203,103,37,143,255,54,144,217,67,127,140,12,48,112,0,0,32,64, +143,227,127,158,48,127,249,144,34,63,8,24,32,192,159,242,12,8,48,33,192,0,0,48,64,195,3,127,158,48,127,249, +219,99,108,141,254,49,224,199,131,45,13,178,48,192,0,0,32,128,196,131,51,31,254,121,33,204,99,72,140,124,55,240, +220,195,14,12,252,63,24,0,0,48,0,223,227,109,159,254,127,249,219,99,127,140,48,48,192,223,227,12,13,254,63,248, +0,0,48,0,223,227,8,30,252,121,145,196,67,127,204,0,51,240,200,99,33,140,254,51,248,0,0,16,128,66,3,223, +159,228,126,176,243,131,206,12,238,2,8,172,70,137,154,26,79,192,3,0,255,195,51,15,252,3,0,255,226,49,143,254, +3,0,44,66,153,26,22,15,192,48,16,196,195,18,30,254,126,25,216,103,63,140,254,49,160,196,131,50,13,139,60,56, +0,0,10,0,79,227,127,157,54,114,208,203,99,76,140,112,3,0,164,70,147,146,26,15,192,3,1,255,224,48,15,252, +127,249,128,100,252,130,50,122,120,172,66,145,18,30,79,192,0,0,127,129,254,6,24,31,224,225,199,255,134,24,63,240, +12,66,209,27,18,15,192,33,0,151,227,84,157,86,125,113,181,194,95,136,98,32,192,159,226,12,8,48,39,248,0,0, +32,0,155,227,32,157,34,125,233,177,162,84,137,50,36,200,151,162,114,137,2,36,56,0,0,33,32,198,131,123,159,238, +121,161,206,227,123,140,104,55,184,222,227,26,12,104,49,160,0,0,4,129,243,224,204,15,60,60,240,51,7,207,129,32, +11,0,166,70,129,147,26,15,192,48,128,195,3,127,158,64,123,33,204,195,127,141,48,48,192,223,227,12,12,48,48,192, +0,0,32,48,159,195,12,31,254,121,225,187,98,68,136,252,32,96,159,226,127,136,48,33,192,0,0,32,64,195,3,63, +158,48,127,249,204,71,19,13,254,48,192,195,3,127,140,48,48,192,0,0,32,192,131,227,12,30,252,127,249,184,98,127, +137,134,39,248,131,2,127,200,48,32,192,0,0,32,128,159,227,12,31,254,104,193,191,226,127,9,134,39,248,152,98,127, +137,132,38,48,0,0,32,0,159,227,100,159,250,126,201,187,34,127,137,114,37,232,148,162,94,139,66,40,56,0,0,32, +192,195,3,127,158,0,123,249,232,99,33,140,254,48,192,201,67,101,141,50,49,192,0,0,32,128,159,227,127,159,130,122, +121,191,226,76,139,114,43,104,133,226,52,9,154,44,56,0,0,1,32,6,199,255,128,96,60,176,147,131,206,135,186,127, +56,12,66,153,154,30,79,200,48,0,207,227,33,158,254,126,25,207,231,48,12,254,55,248,245,163,52,141,182,49,176,0, +0,32,8,159,227,66,159,106,125,233,159,162,68,137,254,37,136,150,34,78,137,2,36,56,0,0,49,0,207,227,63,159, +234,121,105,205,35,109,140,44,49,128,221,35,240,143,206,49,224,0,0,33,32,196,195,63,158,76,121,177,223,227,0,12, +254,51,24,207,227,49,140,254,51,248,0,0,32,192,219,99,45,30,188,127,249,223,227,64,141,122,53,40,215,163,94,141, +2,52,56,0,0,33,64,205,131,54,31,254,126,99,255,227,63,140,152,51,248,205,131,38,12,254,50,0,0,0,3,1, +255,224,48,15,252,63,240,140,195,255,0,220,127,248,12,6,153,26,30,79,200,32,64,193,3,127,223,144,126,65,217,227, +102,13,144,55,248,212,99,80,143,126,57,152,0,0,49,240,207,227,49,158,254,127,25,207,231,49,140,254,51,24,223,243, +19,12,198,54,8,0,0,32,128,132,131,127,31,230,111,249,143,194,99,11,98,39,96,135,2,51,8,120,39,0,0,0, +16,0,223,230,4,4,144,50,121,201,3,36,15,254,3,0,172,70,153,146,26,15,192,12,0,127,135,204,1,224,124,249, +255,195,51,15,252,63,240,44,2,145,27,30,79,200,32,0,159,227,68,31,126,109,249,149,66,95,9,254,36,224,146,66, +80,137,254,39,248,0,0,34,8,153,227,254,29,24,127,97,157,226,253,136,214,35,88,191,98,245,136,214,35,152,0,0, +48,16,196,195,18,30,254,126,201,207,231,45,140,254,51,248,223,227,127,140,16,48,64,0,0,32,0,207,227,125,159,254, +123,241,192,7,127,13,132,54,208,219,67,9,12,236,62,24,0,0,48,128,223,227,176,30,254,126,97,215,231,1,12,254, +51,248,204,99,63,140,134,50,48,0,0,16,0,103,231,209,142,126,57,24,247,229,153,134,126,3,16,172,70,149,147,26, +15,192,32,192,219,35,108,159,254,120,1,223,231,12,12,254,55,248,222,163,122,141,234,55,184,0,0,48,192,199,3,63, +158,134,127,249,223,227,63,13,254,51,248,207,195,63,12,48,55,248,0,0,8,65,255,224,204,31,254,127,248,127,135,255, +30,12,15,240,44,2,153,27,30,79,200,48,0,207,227,33,158,254,126,25,207,227,44,13,254,60,192,223,195,63,12,48, +63,252,0,0,33,32,156,131,34,30,154,111,233,159,226,127,137,204,39,176,185,194,167,136,146,34,136,0,0,12,65,225, +1,20,159,222,59,112,243,135,75,20,230,18,0,44,70,145,146,26,79,192,16,0,205,228,0,5,190,50,49,192,195,51, +13,140,52,112,44,66,153,26,26,79,192,1,0,30,3,207,25,230,62,16,218,67,105,15,164,38,48,12,2,217,27,22, +71,200,32,64,131,3,51,31,206,123,241,158,34,122,137,234,39,168,158,162,106,137,34,37,184,0,0,32,65,251,6,111, +159,244,127,81,249,198,199,31,246,66,8,172,66,129,27,18,79,192,33,0,143,227,63,159,252,122,25,143,226,33,136,252, +35,240,156,194,94,8,124,47,56,0,0,3,0,255,192,132,31,254,0,0,127,193,3,7,252,31,240,12,2,145,27,22, +79,192,0,0,48,0,223,227,110,159,254,120,1,207,199,0,13,255,51,0,207,227,1,12,4,48,240,0,0,0,0,255, +195,255,12,204,31,224,255,198,53,159,246,98,48,172,66,137,26,30,79,200,0,112,255,129,50,31,254,127,249,116,227,207, +9,228,15,192,243,134,124,3,240,120,120,0,0,0,160,255,227,255,139,180,32,209,253,199,182,23,250,64,184,44,70,145, +154,26,79,192,0,0,48,0,207,227,33,158,254,126,25,223,227,0,13,254,55,248,213,163,86,141,254,63,248,0,0,32, +0,223,227,106,159,254,127,249,227,7,127,140,96,49,240,199,195,49,13,132,52,112,0,0,32,128,159,227,12,30,204,111, +249,136,194,127,9,132,36,144,146,66,73,8,236,46,24,0,0,32,128,159,195,109,31,252,120,193,191,226,0,9,254,38, +152,154,98,73,136,252,46,24,0,0,32,192,195,3,127,159,182,127,249,218,99,127,140,124,49,208,199,227,55,141,146,60, +120,0,0,32,128,159,227,12,31,252,104,193,159,226,126,9,244,39,184,191,226,41,9,38,41,136,0,0,36,0,147,231, +253,134,62,90,153,251,225,249,140,78,99,48,188,130,211,27,22,79,200,32,0,255,226,56,11,76,47,241,176,198,255,27, +108,123,17,132,69,73,149,10,71,224,0,0,8,64,51,7,255,132,48,45,177,231,129,77,31,254,99,136,172,70,149,146, +18,15,192,34,32,140,130,127,158,216,127,249,165,226,255,136,94,39,248,141,130,119,11,86,41,72,0,0,33,32,223,227, +51,30,48,127,249,200,3,63,140,252,50,144,202,67,41,13,165,60,152,0,0,48,64,223,227,12,30,252,122,17,239,195, +63,12,132,51,240,223,227,127,140,204,54,8,0,0,32,0,191,227,127,31,140,111,241,191,226,67,11,254,33,88,189,194, +115,9,220,56,200,0,0,8,65,255,224,140,15,252,63,240,192,195,255,31,254,127,248,201,199,183,140,232,14,0,0,0, +0,0,255,226,255,9,216,63,248,159,130,227,9,252,63,248,108,194,145,26,30,79,192,32,0,159,195,127,31,252,123,241, +159,226,86,137,254,39,240,156,194,30,8,120,47,56,0,0,24,97,247,231,207,6,24,125,248,255,192,3,7,252,63,240, +44,2,145,154,26,79,200,32,0,157,227,81,31,212,125,81,245,194,127,137,12,37,48,157,194,253,10,36,33,152,0,0, +32,17,248,71,255,152,62,126,145,255,69,229,31,196,88,112,44,2,145,26,30,79,192,32,192,147,131,127,159,126,124,217, +191,226,95,137,52,39,216,159,226,253,138,214,58,88,0,0,0,0,131,2,127,141,254,125,241,241,110,255,169,18,39,248, +153,34,87,11,124,46,88,167,0,0,0,8,64,171,3,239,159,228,95,209,249,198,167,18,182,66,128,44,66,129,154,26, +79,192,0,0,140,194,18,13,254,124,153,247,166,93,137,254,35,240,136,66,63,8,132,35,240,136,64,0,0,33,64,205, +131,63,159,254,127,249,255,227,63,140,254,51,248,207,227,1,141,106,52,172,0,0,24,65,251,3,207,153,228,63,241,249, +129,230,31,60,57,152,12,70,145,154,26,79,192,32,128,159,227,51,30,220,127,249,159,226,109,137,254,39,248,131,2,127, +136,48,47,248,0,0,0,65,243,7,239,159,228,127,209,145,199,198,31,254,69,136,172,70,145,146,26,15,192,0,0,4, +97,243,225,159,159,254,25,153,247,230,89,159,126,103,136,44,194,145,155,26,79,192,0,0,48,0,223,227,127,159,134,127, +241,223,231,127,140,252,54,16,223,195,44,13,182,61,136,0,0,34,48,140,195,127,158,204,127,249,137,194,127,137,254,34, +200,155,194,108,9,112,44,248,0,0,32,48,129,227,127,159,10,125,169,150,194,107,11,253,40,216,138,66,228,138,138,35, +224,0,0,49,32,223,227,19,30,254,127,249,195,3,127,141,254,54,216,207,227,127,140,48,55,252,0,0,34,0,157,226, +82,159,202,127,217,186,66,255,11,254,46,208,191,226,171,10,164,41,144,0,0,32,128,159,227,127,159,126,125,233,159,226, +94,137,130,32,192,191,226,28,8,220,46,24,0,0,32,48,158,199,119,143,236,55,177,217,230,231,136,172,34,48,44,2, +217,27,22,79,200,3,32,255,224,34,27,254,35,96,63,227,182,155,190,76,152,12,66,217,27,30,71,200,34,32,153,227, +253,156,148,127,249,175,34,189,139,246,38,120,157,162,163,10,158,34,200,0,0,32,128,191,227,0,31,254,125,249,151,226, +127,136,252,35,240,191,226,45,9,54,41,136,0,0,32,0,159,227,127,159,50,127,249,143,194,12,9,254,33,128,159,226, +90,137,106,37,184,0,0,33,32,223,243,18,31,254,127,233,207,231,127,205,3,51,240,207,195,63,12,196,51,240,0,0, +16,65,253,1,159,159,42,124,33,29,131,181,31,162,108,65,243,130,152,159,230,96,240,0,0,16,65,255,226,207,31,254, +124,113,247,231,223,143,106,126,120,75,98,177,26,30,79,200,4,128,19,128,66,1,254,127,224,24,192,99,0,152,3,192, +14,32,248,143,54,32,120,0,0,1,32,4,192,25,15,254,33,128,134,66,27,8,44,32,225,131,6,28,209,218,76,56, +0,0,6,128,27,128,98,15,252,54,0,8,39,255,158,192,1,48,7,128,60,143,186,56,120,0,0,0,160,6,195,25, +143,254,32,128,130,98,9,15,188,32,224,131,6,28,216,218,70,56,0,0,1,160,6,194,25,143,254,32,128,130,99,137, +11,44,38,225,131,6,28,144,218,70,56,0,0,1,160,6,192,25,159,254,1,128,98,65,139,31,172,24,224,67,3,28, +204,250,98,56,0,0,0,160,2,199,201,3,38,79,249,162,3,137,6,60,24,224,243,134,78,144,254,0,56,0,0,0, +160,6,195,255,143,254,32,128,242,67,235,9,188,38,225,155,7,206,144,250,66,56,0,0,0,129,250,199,137,130,32,127, +249,255,224,141,7,180,124,97,99,128,158,198,202,58,56,0,0,0,160,2,199,255,159,254,36,128,210,67,109,31,252,52, +224,145,130,78,217,122,65,56,0,0,8,129,34,196,137,146,32,127,248,126,0,137,30,60,120,225,163,4,156,210,219,74, +56,0,0,0,160,2,231,255,159,254,0,128,250,66,109,9,188,62,224,3,129,238,222,250,3,56,0,0,8,64,97,65, +197,141,144,99,249,249,131,229,137,28,36,112,177,130,38,136,190,62,152,0,0,16,64,65,65,132,135,144,16,248,71,135, +228,159,158,66,113,8,132,38,95,191,66,152,0,0,0,80,3,99,255,143,254,36,64,157,98,69,31,252,100,113,245,135, +86,209,58,77,152,0,0,0,1,255,224,48,12,140,63,240,255,195,3,7,252,6,249,255,192,62,1,242,124,120,0,0, +24,64,97,71,228,134,16,127,249,155,39,229,153,158,126,112,97,135,230,70,111,25,24,0,0,38,65,153,71,229,137,144, +62,248,251,130,100,159,222,126,113,249,135,38,223,254,0,152,0,0,0,193,251,198,109,143,176,127,249,255,231,229,25,148, +126,113,153,135,246,157,190,6,152,0,0,0,65,241,98,116,139,80,61,249,245,133,246,149,158,126,49,120,197,102,159,254, +125,152,0,0,0,65,249,71,229,159,144,127,248,251,134,134,159,222,72,113,248,192,198,199,254,124,152,0,0,8,129,251, +67,237,159,254,127,248,243,3,253,27,20,126,112,249,130,198,143,254,33,184,0,0,0,65,253,69,84,149,208,118,249,255, +135,246,159,158,99,49,252,198,55,95,254,99,152,0,0,0,65,253,197,86,140,218,127,248,97,131,226,154,206,48,48,48, +199,39,71,55,112,152,0,0,0,65,253,229,86,141,216,93,248,193,131,242,155,14,127,48,176,195,231,79,254,33,152,0, +0,8,193,255,192,205,63,254,8,193,173,103,245,31,212,63,112,217,135,246,13,62,98,152,0,0,3,0,12,3,255,15, +252,48,16,192,67,255,12,12,32,0,128,6,0,24,0,64,0,0,0,3,0,255,195,255,8,4,63,240,129,2,54,8, +88,108,97,137,231,255,148,24,0,96,0,0,3,0,255,195,255,8,4,63,240,255,194,26,8,108,47,249,134,6,60,17, +156,92,24,0,0,3,0,255,195,255,136,6,63,248,134,2,24,11,254,34,1,143,198,97,19,12,88,224,0,0,0,1, +255,230,24,24,96,125,129,151,246,91,31,100,97,145,6,68,17,16,196,66,16,0,0,1,0,206,3,255,136,6,63,248, +192,3,255,142,246,58,89,255,231,181,150,150,90,120,0,0,1,0,255,195,255,136,6,63,248,192,2,255,139,254,43,217, +173,230,183,146,246,72,56,0,0,2,0,255,195,255,8,4,63,240,128,3,255,138,214,43,89,156,230,247,148,230,70,56, +0,0,1,0,255,194,1,143,254,32,0,191,194,255,10,0,47,241,166,70,255,146,2,79,248,0,0,1,0,255,195,255, +140,6,63,240,141,3,247,136,208,47,121,141,7,247,144,208,67,64,0,0,0,96,255,130,48,0,192,63,248,12,0,48, +31,254,127,248,12,0,48,0,192,14,0,0,0,24,0,96,1,128,31,128,24,0,96,1,224,31,128,120,0,96,1,128, +6,0,48,0,0,192,3,0,12,31,254,3,192,15,0,108,3,48,24,192,195,6,12,0,48,3,128,0,0,16,128,70, +1,24,31,96,25,128,70,1,216,31,96,81,128,70,33,24,132,102,112,248,0,0,16,128,66,1,136,31,160,24,192,67, +129,203,159,38,80,128,66,1,8,4,32,112,128,0,0,48,0,196,131,18,30,72,49,32,204,131,179,30,204,114,48,200, +67,97,141,134,116,8,0,0,16,0,79,227,63,159,8,48,32,64,129,194,31,8,112,32,64,129,2,12,24,113,224,0, +0,48,0,223,131,54,30,200,51,96,205,227,179,158,194,114,8,200,99,97,141,6,108,112,0,0,48,16,199,195,60,30, +48,48,192,195,99,255,158,176,112,192,195,3,12,204,50,96,120,0,0,48,0,207,227,63,159,16,48,64,193,3,196,30, +16,112,64,193,3,4,13,255,112,0,0,0,16,0,207,227,63,158,134,50,24,200,99,33,158,134,114,24,200,99,63,140, +254,114,24,0,0,48,16,207,227,20,30,16,48,64,193,131,191,222,16,112,64,193,3,4,12,16,96,64,0,0,49,0, +198,3,24,31,252,49,176,196,195,243,30,236,113,240,205,195,35,13,143,108,24,0,0,48,64,193,3,63,158,254,50,0, +200,3,160,30,128,114,0,216,3,96,13,0,108,0,0,0,32,0,139,226,48,191,2,36,8,144,35,64,189,2,36,8, +144,34,64,137,2,100,56,0,0,16,0,79,195,63,159,6,48,24,64,97,255,158,6,112,24,64,97,1,140,254,112,24, +0,0,48,0,223,195,6,30,48,51,136,223,227,154,158,90,114,72,211,35,25,140,198,102,112,0,0,48,16,207,227,9, +158,38,48,152,198,67,191,30,100,113,144,196,67,17,13,254,103,248,0,0,16,32,198,131,19,30,196,50,24,216,99,63, +158,100,113,144,196,67,49,13,140,116,112,0,0,48,64,193,131,6,30,152,50,96,201,227,166,30,152,114,96,201,131,38, +13,254,103,248,0,0,48,128,194,195,9,191,254,51,248,198,3,156,30,80,113,64,205,3,36,205,154,100,120,0,0,32, +0,207,227,96,30,128,51,248,207,227,249,31,164,118,240,217,131,78,15,110,107,24,0,0,48,64,193,3,12,30,254,48, +64,193,3,191,158,254,112,224,198,131,27,12,198,102,8,0,0,50,0,201,131,38,31,154,50,120,207,195,230,30,152,114, +96,201,131,46,205,250,102,56,0,0,34,0,207,227,32,30,190,50,248,202,99,169,158,166,118,176,218,3,72,205,34,108, +248,0,0,17,128,198,195,25,30,110,55,248,194,3,137,30,60,112,224,195,3,30,205,222,114,56,0,0,0,0,127,128, +12,0,224,123,104,127,193,51,5,236,51,48,191,102,48,144,192,14,0,0,0,48,64,195,3,127,159,254,48,192,207,195, +191,158,196,113,48,199,131,14,12,252,102,24,0,0,16,64,193,3,5,30,214,51,72,201,35,228,30,22,112,80,192,195, +6,12,240,119,0,0,0,16,128,195,3,63,31,252,48,208,195,67,205,159,254,112,192,199,131,50,13,206,116,24,0,0, +48,0,207,227,45,158,150,50,88,201,99,191,159,254,114,8,200,3,32,204,198,99,248,0,0,32,0,158,2,111,159,50, +52,200,147,35,76,157,50,100,200,159,98,77,136,48,96,192,0,0,48,0,207,227,3,62,120,48,96,207,227,191,158,22, +112,80,193,3,4,12,16,97,192,0,0,32,0,207,227,125,31,164,54,144,218,67,233,31,164,116,144,210,99,73,143,34, +104,136,0,0,49,32,207,131,50,30,200,54,56,208,99,255,31,252,115,48,199,131,28,12,252,110,56,0,0,48,48,196, +195,27,31,12,48,48,204,195,155,30,12,112,252,223,195,3,12,12,112,48,0,0,48,128,195,3,63,159,255,48,0,199, +195,147,30,76,113,48,204,195,51,77,143,116,56,0,0,16,16,207,227,48,31,192,51,0,207,243,242,30,200,115,32,200, +131,34,13,136,116,32,0,0,32,0,143,227,12,62,32,48,128,159,243,158,30,120,97,96,141,130,54,9,155,108,56,0, +0,32,32,152,130,98,29,222,47,168,158,163,122,157,106,37,232,151,98,93,139,98,104,248,0,0,32,192,195,3,127,190, +96,55,248,223,227,176,30,254,112,48,197,131,28,12,56,96,32,0,0,48,0,207,227,32,30,164,50,144,201,195,166,30, +156,114,240,202,99,40,12,254,99,248,0,0,32,192,195,3,30,62,204,54,24,216,35,179,30,216,115,192,204,3,48,140, +198,97,240,0,0,48,64,195,3,30,30,204,54,24,223,227,179,30,204,115,48,205,131,48,140,198,113,240,0,0,16,64, +193,3,22,30,254,51,8,204,35,191,158,254,114,0,200,3,96,13,128,116,0,0,0,16,16,207,227,33,159,134,50,112, +207,227,191,158,166,114,208,201,195,39,12,190,115,152,0,0,32,0,159,226,12,62,182,50,208,139,67,12,31,255,96,192, +131,2,12,8,48,96,192,0,0,32,64,193,3,127,159,182,54,88,219,67,255,159,196,119,176,211,131,78,15,126,107,24, +0,0,32,128,198,3,18,62,196,50,24,223,227,128,158,252,115,240,200,67,33,12,252,99,240,0,0,49,0,204,3,63, +159,130,63,200,223,35,164,158,246,115,248,200,195,32,140,130,99,248,0,0,48,16,199,195,52,30,144,50,96,207,227,191, +158,136,114,32,200,131,47,76,222,103,88,0,0,48,64,193,3,63,159,254,48,64,195,3,255,158,56,113,240,205,67,101, +141,18,112,64,0,0,48,64,193,3,63,159,254,50,72,207,227,173,158,146,115,248,203,35,4,12,16,96,64,0,0,48, +0,207,227,45,159,146,51,248,203,99,164,158,254,114,216,193,3,4,12,16,96,64,0,0,48,64,193,3,4,62,254,55, +248,217,35,228,159,254,118,200,217,35,108,141,254,102,8,0,0,32,0,207,227,33,159,134,51,248,201,3,166,30,254,114, +96,201,131,34,141,238,103,24,0,0,33,96,133,130,127,158,122,49,104,159,227,214,31,250,103,248,141,162,54,137,158,108, +96,0,0,48,64,193,3,4,31,254,48,64,193,3,132,30,254,112,96,193,3,4,12,254,119,248,0,0,16,0,207,195, +49,159,134,50,24,207,227,161,158,134,115,248,207,195,0,13,254,119,248,0,0,48,16,207,195,48,30,192,51,248,207,227, +178,30,248,114,224,200,227,98,141,136,100,32,0,0,32,0,143,227,41,190,182,50,88,159,227,233,158,166,102,80,159,226, +127,136,4,96,112,0,0,16,192,195,3,12,31,62,48,192,195,3,140,30,254,114,8,200,35,32,140,254,115,248,0,0, +48,192,195,3,12,31,254,48,0,196,67,145,30,76,113,48,198,131,18,13,254,103,248,0,0,33,16,196,67,49,30,254, +54,24,216,67,173,30,148,114,80,200,67,33,8,132,98,112,0,0,48,64,201,99,37,190,212,50,192,207,227,132,30,48, +119,252,195,3,4,12,16,96,64,0,0,48,64,195,3,12,30,254,50,24,200,99,161,158,254,114,24,200,99,33,140,254, +99,24,0,0,32,192,131,3,30,30,204,54,152,179,35,132,30,252,96,48,129,130,28,8,48,96,96,0,0,48,0,207, +227,33,190,134,51,248,207,195,140,31,254,112,216,194,35,25,140,198,102,112,0,0,48,0,207,227,32,31,128,51,240,204, +67,225,30,132,115,240,200,3,32,12,254,99,248,0,0,16,0,223,227,28,62,96,49,128,196,3,191,159,198,119,8,212, +35,16,140,126,113,24,0,0,17,32,196,195,25,159,254,49,0,199,195,159,30,228,115,176,203,131,102,13,60,125,152,0, +0,33,0,204,3,63,191,144,52,64,205,227,191,159,246,119,88,205,99,52,12,194,97,248,0,0,32,32,136,130,98,29, +62,37,248,188,163,242,156,138,103,104,151,162,252,136,54,96,176,0,0,33,0,140,3,63,191,254,52,8,159,35,164,158, +146,98,88,143,98,33,136,6,96,112,0,0,32,64,203,3,45,190,182,50,216,207,227,140,31,178,118,200,219,35,108,141, +254,96,24,0,0,32,128,198,3,51,31,254,55,136,196,131,147,31,254,113,48,196,131,50,9,136,100,32,0,0,32,0, +223,227,24,190,98,49,24,204,227,227,30,254,115,248,200,99,33,140,254,99,248,0,0,4,1,255,231,6,4,126,125,249, +241,129,31,142,126,252,96,207,243,6,24,24,64,96,0,0,32,0,136,99,57,62,164,50,208,137,67,33,30,140,98,176, +142,226,102,137,51,96,128,0,0,33,0,196,195,17,30,254,51,248,197,131,151,158,220,115,112,201,131,110,15,122,105,56, +0,0,32,128,134,3,127,190,64,55,192,143,3,172,29,254,32,64,137,66,101,137,18,97,192,0,0,32,0,223,227,109, +191,146,55,248,223,227,228,159,254,119,248,209,35,68,143,18,104,120,0,0,48,16,196,195,18,30,254,51,248,192,3,128, +30,252,112,0,192,3,0,13,254,103,248,0,0,48,64,193,3,63,158,130,50,8,192,3,191,158,16,112,64,193,3,4, +12,16,97,192,0,0,32,64,203,67,44,159,254,55,248,198,3,159,158,196,115,176,219,131,206,12,108,99,24,0,0,48, +0,223,227,19,30,120,48,224,222,227,196,158,252,115,240,195,3,127,140,48,96,192,0,0,32,16,207,195,12,30,16,51, +248,207,227,132,30,48,115,248,200,99,33,140,254,99,248,0,0,48,32,193,163,6,159,254,48,96,192,131,254,30,200,113, +32,196,131,31,205,238,96,24,0,0,48,64,193,3,127,158,56,48,64,207,227,191,158,0,115,248,204,99,49,140,254,99, +248,0,0,32,0,207,227,3,30,48,55,200,199,195,150,30,212,118,88,209,35,28,12,96,103,248,0,0,33,32,196,195, +19,63,254,51,48,196,195,147,31,254,119,248,192,3,51,13,134,100,8,0,0,1,0,109,131,255,15,252,127,249,255,225, +190,31,206,95,232,12,3,255,0,192,14,0,0,0,48,192,195,3,30,30,204,54,24,223,195,140,30,48,115,248,195,3, +12,13,254,103,248,0,0,49,8,205,103,237,30,180,51,72,199,35,140,188,126,55,24,210,195,14,12,112,103,0,0,0, +32,128,198,35,63,62,44,55,248,223,227,159,159,254,127,0,199,195,1,12,4,96,240,0,0,32,16,196,67,19,63,254, +49,176,196,195,27,29,254,113,48,196,195,51,8,140,100,48,0,0,32,128,131,2,127,159,182,55,248,155,99,109,159,254, +96,80,129,194,14,9,251,102,56,0,0,48,64,195,3,30,30,76,51,24,223,227,128,30,252,115,240,204,67,49,12,252, +99,240,0,0,0,0,12,0,248,15,60,111,216,127,129,2,7,248,63,224,12,3,255,31,254,3,0,60,0,0,0,32, +64,195,3,63,190,48,48,192,223,227,131,31,254,115,48,204,195,19,12,12,96,112,0,0,48,64,193,3,63,158,48,48, +64,223,227,132,30,16,115,248,195,3,4,13,254,103,248,0,0,50,0,204,195,62,30,194,51,8,199,227,128,30,254,114, +24,207,227,49,140,254,115,248,0,0,16,1,255,225,140,159,50,124,153,252,193,254,6,192,63,240,12,7,255,128,192,15, +0,0,0,48,192,195,3,127,191,130,54,136,198,3,127,142,76,243,48,207,131,14,12,126,103,24,0,0,32,128,194,3, +127,158,72,51,16,223,227,128,31,254,241,0,207,195,1,8,4,96,240,0,0,33,64,133,131,86,191,222,51,112,133,131, +150,28,220,111,104,141,130,54,137,155,108,56,0,0,32,192,195,3,127,191,2,49,48,216,99,128,28,252,48,192,198,3, +32,136,198,99,248,0,0,16,129,247,199,223,7,100,121,208,69,115,33,143,248,3,0,255,199,255,128,192,15,0,0,0, +3,1,255,231,255,133,40,36,153,146,33,254,6,192,63,240,12,7,255,128,192,15,0,0,0,32,16,144,66,99,158,190, +48,16,154,67,229,28,148,34,16,137,194,102,11,126,96,248,0,0,32,32,144,130,34,30,190,48,248,153,131,39,28,156, +98,88,139,34,40,137,224,100,248,0,0,32,64,195,3,63,158,254,50,208,207,67,29,31,254,112,224,195,131,27,12,198, +102,8,0,0,33,0,134,2,127,158,38,48,240,135,163,243,156,4,103,248,132,130,18,8,202,102,56,0,0,48,64,201, +35,37,158,212,48,80,207,227,191,158,2,115,248,192,99,0,141,254,96,24,0,0,32,16,143,195,8,30,32,55,248,132, +131,177,31,206,97,32,132,130,50,9,136,100,32,0,0,33,0,143,130,62,63,152,55,248,131,99,255,157,254,96,216,159, +226,8,8,32,99,128,0,0,32,128,131,3,127,158,204,49,224,131,131,255,157,196,99,48,140,194,51,9,140,100,48,0, +0,32,0,159,226,64,159,98,39,240,141,3,36,29,254,96,64,131,130,127,136,16,96,64,0,0,32,128,132,130,51,63, +254,50,0,143,195,127,159,48,111,248,135,2,30,9,204,110,24,0,0,32,0,191,226,46,188,186,39,248,159,195,111,159, +250,103,232,147,162,79,139,120,107,96,0,0,32,128,195,3,45,62,180,54,240,223,227,206,220,48,55,248,195,3,12,9, +254,111,248,0,0,32,0,207,227,32,30,254,50,0,207,227,191,159,170,118,184,218,195,105,13,126,101,136,0,0,32,128, +202,198,73,137,46,48,225,158,4,126,7,192,63,240,12,7,255,128,192,15,0,0,0,32,0,207,195,33,30,252,48,0, +223,227,237,159,182,119,248,216,3,96,141,130,99,248,0,0,32,0,157,226,50,30,136,38,48,157,227,18,29,72,103,32, +155,226,48,9,240,108,248,0,0,33,0,135,131,62,31,152,55,248,155,35,108,159,254,96,224,135,2,28,9,211,108,120, +0,0,32,0,159,227,8,62,252,49,144,132,67,255,222,0,99,240,136,98,33,136,254,99,248,0,0,32,0,143,195,9, +31,254,49,152,134,67,127,30,192,103,248,188,98,49,136,254,99,248,0,0,32,16,223,227,23,62,120,55,248,223,227,237, +159,254,118,200,223,227,109,141,178,102,248,0,0,32,0,159,227,64,159,18,39,248,147,35,206,159,126,103,88,145,34,68, +137,254,103,248,0,0,32,0,143,227,33,190,134,51,248,143,195,140,30,176,98,248,139,2,124,9,112,108,248,0,0,32, +24,223,195,0,190,182,50,80,192,67,131,31,255,114,48,204,195,27,12,12,96,224,0,0,32,8,158,34,74,157,42,39, +168,136,163,34,159,234,38,168,154,162,72,137,34,107,184,0,0,48,0,207,227,49,158,254,51,24,207,227,128,30,254,112, +64,223,227,14,12,16,96,64,0,0,48,64,201,35,53,158,20,51,248,200,99,161,158,254,114,8,207,227,33,140,134,98, +56,0,0,48,0,207,227,33,158,254,50,24,207,227,140,30,16,115,248,195,3,4,13,254,119,248,0,0,16,0,207,227, +49,159,254,48,0,207,227,177,158,254,115,248,207,227,63,140,130,114,56,0,0,48,64,193,99,127,191,48,48,216,223,227, +236,159,254,118,200,223,227,109,141,146,102,88,0,0,33,32,159,227,127,158,72,55,248,159,227,72,156,116,99,248,134,98, +17,8,196,102,112,0,0,32,0,207,195,33,62,252,48,0,207,227,161,159,182,242,216,203,99,10,12,206,102,8,0,0, +32,192,131,2,30,62,204,63,248,151,131,128,30,182,98,80,137,194,2,9,254,103,248,0,0,33,0,199,195,63,31,152, +55,248,203,99,173,159,182,119,248,195,3,22,9,206,108,8,0,0,32,128,207,195,63,62,164,50,208,201,195,191,158,254, +113,8,212,163,94,141,250,96,56,0,0,32,128,143,227,63,190,254,49,128,159,227,179,61,182,47,248,131,2,127,136,48, +96,192,0,0,32,192,131,3,127,159,130,55,248,159,227,229,159,158,103,248,145,130,79,11,102,107,8,0,0,48,192,195, +3,127,191,178,55,248,219,35,255,158,120,115,32,223,227,127,140,8,96,32,0,0,32,0,159,227,96,191,254,55,248,153, +3,255,159,152,102,96,159,226,80,139,70,105,248,0,0,48,0,223,227,100,31,188,55,248,217,131,255,159,152,52,96,215, +227,70,15,24,107,248,0,0,32,16,143,194,12,31,254,55,248,139,67,127,158,246,99,208,159,226,12,8,48,99,248,0, +0,32,192,159,227,12,62,254,48,216,159,243,141,156,254,34,192,155,226,108,9,240,108,248,0,0,32,128,194,3,127,158, +72,51,48,223,227,158,30,0,119,248,195,3,109,141,50,97,200,0,0,32,192,131,3,30,31,238,52,200,143,195,3,30, +8,112,192,157,98,80,139,79,97,224,0,0,32,32,158,130,71,159,30,39,232,151,227,211,31,72,109,48,181,194,149,10, +86,105,136,0,0,32,64,193,3,127,255,144,52,64,209,227,198,29,16,55,248,212,99,80,139,126,105,24,0,0,32,0, +159,226,17,159,220,35,48,153,163,0,31,254,97,88,157,194,51,9,220,108,200,0,0,32,16,159,195,41,190,148,55,248, +159,227,192,156,252,35,48,132,130,30,8,252,102,56,0,0,32,192,195,227,12,30,252,55,248,216,99,255,159,134,119,248, +195,3,127,204,48,96,192,0,0,32,192,131,2,127,190,68,33,48,132,195,127,156,0,99,248,136,98,33,136,254,99,248, +0,0,19,32,76,135,255,144,2,95,232,97,128,30,15,248,3,0,255,199,255,128,192,15,0,0,0,32,64,143,227,63, +190,56,51,184,136,99,255,222,4,99,208,137,66,61,8,132,96,112,0,0,34,0,136,2,127,159,194,59,8,159,35,24, +157,250,100,168,150,162,126,136,6,96,120,0,0,32,128,198,3,31,30,204,54,32,210,3,247,159,134,118,24,222,227,96, +141,254,103,248,0,0,48,160,198,131,59,158,238,49,160,206,227,187,158,104,119,184,206,227,26,12,104,97,160,0,0,32, +128,131,2,255,156,144,34,120,155,227,110,159,254,103,80,137,194,39,8,190,99,136,0,0,32,0,159,226,64,191,254,55, +248,149,35,84,157,126,101,248,149,34,212,139,94,105,248,0,0,32,192,195,3,127,158,0,51,248,200,99,161,158,254,112, +192,201,67,101,141,50,97,192,0,0,32,0,223,227,64,159,74,51,48,216,99,140,29,254,113,224,199,131,45,143,50,96, +192,0,0,40,9,251,101,141,159,182,126,217,40,96,163,7,248,3,0,255,199,255,128,192,15,0,0,0,32,128,143,226, +127,190,76,49,32,159,227,8,31,254,103,248,140,194,62,8,124,103,24,0,0,32,192,131,3,127,159,2,33,160,140,99, +96,158,252,112,192,131,2,12,9,254,103,248,0,0,33,64,205,131,54,62,254,54,96,255,227,191,158,152,115,248,205,131, +38,12,254,99,0,0,0,32,128,130,2,127,190,76,50,208,159,227,237,156,254,98,216,143,226,44,8,51,96,120,0,0, +49,48,198,195,127,158,108,49,176,223,243,128,30,254,115,24,207,227,49,140,254,99,248,0,0,35,0,136,2,63,191,130, +60,168,138,163,40,157,254,97,200,143,162,106,137,38,96,176,0,0,32,0,159,226,8,62,32,63,248,132,195,57,31,166, +102,216,155,226,74,137,34,99,128,0,0,32,192,159,226,127,159,2,55,248,152,3,255,157,66,37,248,148,34,223,138,66, +105,56,0,0,16,9,245,226,91,9,36,124,248,254,194,121,31,126,117,248,150,70,81,26,196,72,112,0,0,32,128,131, +194,24,31,254,37,232,151,35,207,157,16,37,248,151,226,201,138,102,107,48,0,0,32,0,159,227,64,159,122,52,200,147, +35,222,157,58,36,232,159,226,64,137,254,102,8,0,0,36,128,151,226,86,159,250,35,120,137,195,254,159,250,35,104,157, +162,79,139,56,104,96,0,0,32,16,196,195,18,30,254,50,216,207,227,173,158,254,115,248,223,227,127,136,16,96,64,0, +0,32,128,132,130,127,29,230,39,248,143,195,99,31,102,99,96,135,2,51,8,120,103,0,0,0,32,0,143,226,109,159, +254,55,240,128,3,255,157,134,38,216,155,98,72,8,236,110,24,0,0,33,0,143,194,35,62,252,48,48,159,227,56,159, +238,99,240,155,66,29,139,146,97,192,0,0,32,192,135,2,51,63,206,51,240,158,35,122,157,234,103,168,158,162,122,137, +34,101,184,0,0,32,64,159,195,26,31,206,51,16,159,227,222,30,48,103,248,131,2,30,8,204,102,8,0,0,32,0, +143,195,30,62,122,55,248,133,99,236,30,48,103,248,159,226,31,9,182,100,200,0,0,32,192,223,227,63,158,254,49,128, +223,227,179,29,254,116,200,207,195,30,12,204,102,24,0,0,32,192,195,3,127,159,130,51,240,192,3,191,30,132,115,240, +200,67,63,12,0,103,248,0,0,33,48,132,194,127,190,204,49,48,132,195,191,158,146,99,248,143,226,36,136,254,99,248, +0,0,32,0,143,227,63,190,134,51,248,128,3,255,158,48,98,192,139,194,124,9,112,108,248,0,0,32,16,143,195,4, +31,254,55,248,129,3,119,159,146,103,88,157,98,100,137,254,103,248,0,0,48,0,207,227,49,158,254,48,0,223,243,177, +158,254,115,24,207,227,63,141,254,112,24,0,0,48,64,195,3,63,158,68,49,48,223,227,128,30,254,114,24,207,227,49, +140,254,99,248,0,0,32,0,159,226,79,31,102,37,248,151,227,76,29,254,101,144,147,130,95,9,254,103,248,0,0,32, +0,159,226,97,191,254,38,0,159,227,73,31,254,101,104,151,226,223,139,24,107,252,0,0,32,192,155,34,108,191,254,48, +0,159,243,140,30,254,103,248,158,162,122,137,234,103,184,0,0,34,64,201,163,63,158,152,54,104,223,227,204,30,252,118, +24,223,227,127,141,134,103,248,0,0,33,32,156,194,35,60,158,39,248,159,227,127,189,204,38,176,169,194,167,136,146,98, +200,0,0,48,0,207,227,33,158,254,51,248,207,195,191,159,254,118,72,203,163,58,140,254,96,56,0,0,32,144,138,67, +255,159,172,50,240,136,3,191,158,48,103,248,135,130,62,9,182,108,200,0,0,32,48,159,195,41,62,172,55,248,132,3, +127,158,192,243,240,142,66,110,9,60,107,152,0,0,32,0,191,226,94,157,90,39,120,149,195,86,157,218,101,104,159,162, +255,136,88,97,96,0,0,32,192,195,3,127,158,120,51,216,219,35,191,30,132,115,240,200,67,63,12,0,103,248,0,0, +33,32,149,130,87,159,120,37,16,132,3,127,29,132,102,144,154,66,28,8,242,110,120,0,0,32,64,145,130,119,191,30, +47,200,154,163,34,31,200,98,48,137,194,53,9,178,96,136,0,0,33,0,135,131,50,31,254,50,200,143,227,158,30,218, +110,56,131,130,34,8,240,96,112,0,0,36,0,155,226,32,159,122,39,104,155,35,222,189,206,37,232,148,162,94,137,74, +100,24,0,0,32,192,139,67,61,31,254,49,224,159,99,76,158,96,103,248,140,194,62,8,124,103,24,0,0,32,144,155, +66,127,159,254,47,248,143,195,41,28,164,98,144,139,66,28,8,211,108,120,0,0,32,48,159,130,71,159,24,37,248,149, +35,95,29,90,101,112,149,194,237,10,165,107,152,0,0,50,0,207,227,32,159,254,50,144,207,227,191,159,164,119,252,214, +163,91,15,126,105,200,0,0,32,208,131,99,127,190,252,54,216,159,227,237,189,254,32,48,191,242,35,8,76,96,96,0, +0,32,64,159,226,127,158,236,39,224,142,99,127,157,130,103,248,155,98,127,137,182,103,248,0,0,33,48,132,130,127,158, +48,51,248,134,3,127,157,254,99,0,159,226,196,11,254,99,248,0,0,32,0,223,227,43,62,120,49,192,223,227,205,159, +254,118,152,223,227,13,12,126,103,248,0,0,34,32,140,130,127,156,216,39,248,133,227,255,156,94,103,248,141,130,119,11, +86,105,72,0,0,32,64,207,227,109,159,246,54,216,219,99,255,156,48,119,248,204,67,30,12,124,111,56,0,0,32,128, +131,3,127,190,252,50,16,143,195,0,29,254,100,8,151,162,82,137,122,100,24,0,0,36,168,150,226,122,159,250,34,56, +154,163,234,159,174,103,232,137,162,100,137,18,108,152,0,0,32,32,207,195,62,30,252,55,120,213,227,243,61,222,52,192, +223,227,30,13,182,108,200,0,0,32,0,159,226,16,157,222,39,120,145,3,255,156,114,101,104,140,226,255,136,66,99,56, +0,0,32,192,143,227,127,191,16,55,248,159,227,239,159,254,100,64,151,226,81,139,70,105,248,0,0,34,0,153,194,245, +63,84,47,216,182,2,255,159,86,239,80,172,194,147,10,126,107,200,0,0,35,32,223,227,127,158,236,49,192,205,195,255, +157,122,115,240,207,195,33,12,252,99,240,0,0,3,1,255,228,205,159,254,12,192,51,7,255,134,120,119,57,127,160,48, +0,192,6,0,0,0,34,64,141,130,127,159,252,54,64,143,195,63,156,254,103,224,141,226,50,137,130,108,56,0,0,34, +32,159,226,127,158,252,49,192,141,131,235,159,54,103,240,131,2,111,9,54,97,128,0,0,10,9,237,227,115,13,36,124, +248,220,194,1,31,254,52,176,146,66,89,25,228,68,112,0,0,32,0,159,226,77,159,254,52,216,157,227,243,157,254,96, +208,157,98,242,138,206,97,224,0,0,32,0,159,227,127,31,140,39,240,152,99,255,157,222,39,248,189,98,115,9,220,104, +200,0,0,32,128,131,227,12,63,254,52,136,159,131,72,157,62,36,64,151,98,250,139,167,104,240,0,0,32,0,159,227, +90,159,234,55,248,131,3,255,158,48,119,248,159,226,17,9,254,103,248,0,0,32,16,223,195,41,158,180,50,16,207,227, +236,31,48,119,248,211,35,76,141,254,99,248,0,0,32,192,131,2,127,159,14,51,240,136,3,63,158,152,98,96,191,226, +19,9,198,100,8,0,0,32,64,129,66,237,60,254,35,144,171,195,111,189,164,38,248,159,226,201,10,62,96,248,0,0, +32,0,159,227,64,159,254,55,248,146,67,255,157,60,36,144,159,226,75,11,100,105,16,0,0,32,128,159,226,127,159,34, +55,248,135,3,123,159,250,96,128,159,226,127,136,48,96,192,0,0,32,192,159,226,51,30,72,55,248,147,35,127,159,50, +101,232,148,162,94,137,66,100,56,0,0,32,0,223,227,109,159,254,55,248,207,195,190,30,244,115,152,223,227,37,13,150, +101,200,0,0,32,64,153,35,109,159,254,50,64,143,227,255,159,254,111,248,143,226,38,8,254,99,248,0,0,1,1,255, +230,66,31,254,110,113,255,230,66,27,248,97,129,63,197,255,144,96,71,128,0,0,32,64,139,130,127,159,164,54,144,159, +227,201,29,36,100,240,144,2,90,139,250,106,0,0,0,33,32,159,226,59,30,252,55,248,159,227,225,159,254,96,192,159, +226,30,8,204,102,24,0,0,8,65,255,224,204,15,252,63,240,255,193,254,31,254,63,177,127,225,254,15,252,7,0,0, +0,32,0,159,226,90,190,234,51,184,159,163,8,30,252,102,152,159,226,97,137,254,103,248,0,0,32,192,223,227,127,191, +182,55,248,204,67,255,31,120,55,248,223,227,63,12,132,99,240,0,0,32,0,159,226,109,191,182,54,232,140,195,255,158, +50,103,248,140,194,62,8,124,103,24,0,0,32,0,159,226,64,31,88,37,248,159,227,239,159,244,103,208,191,66,147,138, +74,106,72,0,0,34,32,170,130,235,189,206,47,232,171,162,254,159,236,239,176,190,66,171,10,174,107,200,0,0,34,208, +139,66,127,191,122,51,48,143,195,135,60,248,39,248,131,2,255,200,48,97,192,0,0,37,32,158,130,254,61,94,47,232, +135,99,255,159,108,39,176,150,194,123,9,62,101,200,0,0,37,8,149,194,254,29,112,39,96,149,227,117,157,86,109,216, +191,98,85,139,118,104,152,0,0,32,32,158,130,18,31,255,53,232,151,163,126,157,110,103,176,146,66,251,11,110,96,200, +0,0,33,16,132,195,127,158,120,55,248,156,227,255,159,134,103,248,159,226,115,8,200,96,96,0,0,32,48,223,195,73, +30,160,55,224,216,131,127,29,4,119,248,208,35,109,143,162,106,56,0,0,32,192,159,226,51,31,254,55,248,159,227,237, +157,254,103,248,131,2,127,136,48,111,248,0,0,34,32,140,130,251,157,94,47,232,147,163,255,159,108,103,176,150,194,123, +9,126,101,200,0,0,32,128,135,2,127,159,202,51,48,159,227,51,30,252,99,240,131,2,45,9,54,97,136,0,0,32, +96,158,2,63,29,110,39,200,135,227,17,31,156,103,56,153,130,255,137,232,102,56,0,0,32,48,159,195,45,62,252,55, +248,135,131,237,159,182,99,248,139,98,63,136,182,99,248,0,0,32,0,143,226,63,158,134,35,240,159,227,255,157,254,102, +232,158,226,123,11,238,96,232,0,0,38,32,159,227,127,191,154,55,248,140,227,146,29,254,33,32,159,226,127,136,204,102, +24,0,0,32,16,158,226,51,63,254,39,184,151,35,127,156,208,103,240,139,2,127,136,48,96,64,0,0,34,0,139,226, +242,29,158,34,72,191,163,6,159,218,45,104,165,162,243,11,222,96,200,0,0,33,0,143,130,102,31,254,55,248,155,99, +63,31,254,99,240,143,226,63,136,134,99,248,0,0,32,128,159,226,82,191,206,38,200,159,227,109,158,252,103,248,147,34, +127,137,182,96,192,0,0,32,48,129,226,127,159,10,37,168,158,195,235,31,253,104,152,139,66,229,138,138,99,224,0,0, +34,16,152,194,251,28,154,47,200,181,226,243,31,204,103,120,152,194,251,8,140,98,48,0,0,32,0,159,226,127,191,254, +39,248,131,3,191,60,32,39,248,155,98,127,137,182,103,248,0,0,32,128,159,226,127,159,254,53,232,151,163,127,156,252, +103,240,159,194,97,8,252,111,252,0,0,32,0,143,194,51,30,252,55,56,151,163,94,157,254,96,192,159,226,30,9,182, +108,200,0,0,44,65,251,227,223,159,252,122,96,255,224,192,143,248,3,0,255,199,255,128,192,7,0,0,0,32,0,159, +226,126,158,254,55,248,128,3,191,156,134,99,248,143,34,243,8,254,99,136,0,0,32,192,135,130,59,191,254,49,64,147, +67,127,29,252,103,248,151,226,94,137,234,100,56,0,0,32,32,156,194,95,159,82,39,120,144,99,199,159,236,109,248,183, +226,219,11,236,100,48,0,0,32,97,247,231,201,24,126,124,97,151,227,198,15,248,3,0,255,199,255,128,192,15,0,0, +0,34,32,186,130,118,31,254,39,72,171,163,47,27,236,47,176,180,194,115,9,254,104,200,0,0,32,0,159,227,122,190, +238,55,248,141,3,191,159,254,111,248,137,130,63,136,152,99,248,0,0,32,192,143,227,63,190,254,51,248,143,195,255,157, +254,39,248,128,2,127,136,200,110,32,0,0,32,128,159,226,117,189,254,39,248,156,195,115,29,246,103,248,143,194,45,9, +182,101,136,0,0,17,33,237,231,255,143,222,115,232,84,135,255,134,120,63,49,127,160,252,0,192,7,0,0,0,32,0, +143,195,127,159,178,55,240,143,227,164,61,254,38,96,191,194,127,137,152,103,248,0,0,38,80,159,226,55,63,254,37,48, +149,115,4,157,254,102,216,155,98,41,8,252,102,24,0,0,32,128,159,226,115,159,254,55,248,140,195,255,157,254,99,48, +159,226,119,138,204,99,152,0,0,34,32,159,226,93,63,254,39,248,159,227,191,31,254,39,176,191,162,63,8,244,102,216, +0,0,32,0,159,226,127,159,254,35,64,159,227,255,29,252,99,248,159,194,127,8,120,103,248,0,0,32,192,159,226,127, +61,252,47,248,191,227,55,29,254,103,240,191,226,53,11,140,99,152,0,0,3,0,12,7,255,159,254,3,0,255,131,255, +6,24,12,64,30,0,120,15,252,112,56,0,0,3,0,12,0,63,128,192,3,0,255,193,134,6,24,12,192,30,0,120, +15,252,112,56,0,0,12,0,48,1,192,7,254,56,97,225,134,204,3,48,7,128,12,0,252,15,60,112,56,0,0,4, +128,50,6,216,27,127,109,153,190,70,249,27,60,124,97,241,132,207,3,102,15,8,0,0,16,128,70,3,216,11,127,111, +27,190,74,251,11,44,44,224,177,130,78,8,238,38,8,0,0,0,129,242,0,200,1,126,5,153,254,71,233,24,60,96, +97,145,135,207,28,102,67,8,0,0,1,128,6,7,216,12,255,51,16,220,67,91,12,104,60,225,227,4,30,1,206,6, +24,0,0,16,192,99,7,236,31,191,33,144,254,67,253,9,60,36,96,145,134,79,17,102,95,8,0,0,0,193,251,1, +140,2,63,73,153,62,68,249,18,60,72,97,121,135,239,24,102,3,8,0,0,16,128,66,1,136,63,255,25,144,78,71, +233,31,60,68,97,17,135,207,31,238,67,8,0,0,16,64,97,7,236,9,62,36,153,158,70,253,14,28,24,96,113,131, +71,24,102,67,8,0,0,16,129,86,5,88,31,127,17,153,254,67,43,14,44,124,225,81,133,15,4,110,19,8,0,0, +4,65,243,1,12,4,63,127,152,102,65,29,31,28,126,113,25,132,103,31,246,103,136,0,0,32,64,129,7,252,16,62, +126,152,223,70,253,63,220,118,113,185,135,247,1,54,29,136,0,0,8,64,105,7,236,31,191,26,217,255,67,221,7,28, +62,113,233,133,135,6,118,57,136,0,0,24,64,97,7,236,6,62,126,217,127,69,253,31,156,24,96,241,135,231,22,118, +25,8,0,0,24,65,251,7,236,6,62,127,152,102,71,253,12,28,62,112,217,130,103,25,246,77,8,0,0,16,64,239, +7,236,5,191,255,152,103,71,253,27,28,24,97,249,129,143,6,102,57,8,0,0,8,64,97,3,207,136,190,125,208,7, +65,37,30,156,46,96,177,128,231,30,118,1,8,0,0,8,65,105,7,164,15,191,126,217,111,101,189,31,156,126,113,184, +196,167,18,182,79,136,0,0,8,65,109,7,172,15,191,126,217,143,69,189,23,156,86,113,121,133,39,16,246,71,136,0, +0,0,65,243,0,76,31,191,103,152,158,67,253,9,156,62,112,153,135,231,25,182,7,136,0,0,36,64,211,7,236,9, +63,127,153,255,67,253,25,156,126,113,153,135,231,25,246,111,136,0,0,24,64,97,7,252,15,62,102,217,254,64,29,31, +156,12,96,121,135,135,2,118,57,8,0,0,24,64,243,6,108,31,191,102,145,254,65,157,31,156,48,96,249,130,103,25, +118,77,8,0,0,36,65,251,7,236,9,63,127,153,158,79,189,30,156,106,97,233,134,111,1,246,15,8,0,0,24,65, +251,3,204,31,190,60,145,239,69,29,31,156,126,97,145,131,199,15,102,97,8,0,0,8,96,97,135,247,143,24,38,96, +255,224,13,159,182,82,81,121,197,231,20,254,71,136,0,0,24,65,251,3,207,159,244,126,112,241,135,189,150,98,63,240, +76,1,62,12,192,127,248,10,65,253,1,132,31,223,127,217,239,103,253,18,28,255,48,192,195,231,8,182,78,136,0,0, +3,0,12,0,56,31,254,24,96,33,128,204,1,32,7,128,14,0,252,30,30,96,24,0,0,2,1,255,231,255,131,240, +15,193,243,230,1,159,254,3,16,255,194,73,9,36,36,176,0,0,32,32,207,225,2,191,254,27,249,66,135,58,13,248, +55,160,254,194,251,89,247,70,24,0,0,4,129,243,224,204,31,62,4,129,243,224,104,0,192,127,248,51,0,120,3,248, +120,120,0,0,2,1,201,227,51,11,236,33,49,212,199,119,136,204,35,48,140,199,251,19,30,8,248,0,0,32,0,155, +226,32,159,50,21,233,87,167,127,141,254,55,248,211,167,94,145,146,4,56,0,0,0,64,33,0,228,0,144,32,64,225, +0,196,0,16,7,249,255,4,4,0,16,0,64,0,0,16,17,86,69,77,31,4,16,17,254,67,9,14,4,124,125,95, +205,1,4,4,16,16,0,0,32,16,242,67,205,27,20,126,17,234,71,229,31,132,126,125,255,197,161,23,132,76,16,0, +0,8,16,114,67,109,24,220,126,16,98,71,229,31,132,24,125,239,197,161,22,4,56,16,0,0,36,17,152,71,253,9, +156,62,16,250,66,101,31,196,126,57,251,231,33,31,132,62,16,0,0,16,32,225,135,207,12,102,127,57,51,199,199,31, +108,124,176,227,231,255,4,12,16,48,0,0,0,32,255,195,128,12,0,48,0,255,227,255,140,48,48,192,131,2,12,24, +48,64,192,0,0,0,32,255,195,128,12,0,63,248,255,227,8,13,32,55,192,135,194,11,24,32,64,128,0,0,4,64, +97,195,207,129,224,31,241,193,225,254,6,0,31,248,127,195,12,12,48,96,192,0,0,16,0,195,231,252,8,96,41,129, +167,247,251,6,108,9,177,254,199,147,2,76,11,48,0,0,0,17,247,227,24,8,64,33,129,231,230,211,59,76,109,48, +180,195,243,14,204,2,48,0,0,8,25,123,229,236,23,160,126,129,251,244,201,23,164,124,145,50,70,217,31,228,1,16, +0,0,36,24,155,231,252,9,160,62,128,155,243,233,9,164,102,145,254,66,89,25,196,67,16,0,0,16,0,99,231,232, +9,32,44,129,255,241,137,31,164,28,145,246,69,185,6,68,49,16,0,0,3,0,12,7,255,159,254,12,0,48,0,255, +3,12,8,48,96,193,2,12,24,97,224,0,0,16,64,65,135,206,31,44,33,152,252,35,204,9,8,36,1,144,6,204, +19,28,88,16,0,0,16,128,70,7,223,159,192,35,96,245,227,222,137,250,45,105,181,230,208,19,67,89,248,0,0,3, +1,255,231,255,131,16,127,249,140,100,48,159,254,12,0,63,193,131,12,8,97,224,0,0,33,0,70,7,223,159,192,35, +248,231,99,213,139,110,43,253,164,100,145,146,198,90,48,0,0,49,0,70,7,255,159,128,39,240,239,3,207,138,240,104, +217,175,228,140,18,50,88,120,0,0,16,128,70,7,223,159,196,34,120,247,131,210,137,78,45,48,180,198,209,19,118,89, +8,0,0,49,0,68,7,255,159,208,34,96,239,243,196,11,254,47,105,189,38,244,147,222,88,64,0,0,16,128,70,7, +223,223,192,35,248,247,227,197,139,88,45,121,181,6,252,19,248,90,120,0,0,33,0,68,7,191,159,128,35,96,239,227, +246,11,152,41,249,161,132,134,18,254,91,248,0,0,17,0,70,7,191,159,128,35,248,228,35,223,139,64,45,217,167,198, +188,18,178,90,120,0,0,32,128,70,7,223,159,224,34,128,247,227,246,11,24,47,249,177,134,207,19,102,91,8,0,0, +33,0,207,231,191,159,144,35,248,230,67,191,138,128,105,81,173,68,181,22,149,118,88,0,0,33,0,71,231,255,159,254, +33,240,231,195,249,139,254,41,217,173,100,189,146,198,88,48,0,0,33,0,207,231,191,159,196,35,248,230,67,159,10,108, +41,241,175,228,155,18,108,91,24,0,0,63,248,12,0,32,0,128,127,249,255,224,120,1,96,13,128,102,35,31,152,62, +0,0,0,1,247,230,70,31,104,125,97,149,135,223,152,24,108,97,179,135,218,28,106,67,56,0,0,63,240,192,195,3, +12,12,48,48,255,195,3,12,12,48,48,192,195,255,12,12,0,0,0,0,127,129,2,4,8,31,224,127,129,2,4,8, +31,224,127,128,0,31,254,127,248,0,1,159,230,97,153,6,100,25,144,102,127,153,6,100,25,144,102,65,153,254,100,24, +0,0,32,0,223,131,240,8,6,63,240,0,0,0,15,252,48,48,255,195,3,15,252,63,240,0,0,0,0,255,194,3, +15,252,48,48,192,195,255,0,192,3,1,255,224,48,0,192,3,0,0,0,8,0,96,1,255,140,6,48,9,254,37,24, +135,226,25,136,102,97,249,132,6,0,240,0,0,32,0,135,226,31,159,102,61,152,151,226,89,137,102,37,152,151,230,64, +145,134,71,248,0,0,6,0,24,7,254,1,24,12,108,225,230,1,15,252,48,48,255,195,3,12,12,63,240,0,0,0, +0,255,195,3,15,252,48,48,255,192,64,15,248,63,224,17,128,198,206,26,96,56,0,0,0,1,239,230,134,18,16,72, +65,225,135,255,210,16,72,65,225,7,132,16,16,0,64,0,0,0,0,255,195,3,15,252,48,48,255,192,0,31,254,3, +1,255,231,255,128,192,3,0,0,0,0,17,224,71,195,19,255,76,49,244,71,217,19,36,76,209,240,71,129,16,12,0, +240,0,0,0,65,225,7,191,146,254,74,1,232,7,160,18,128,74,1,232,7,224,17,128,4,0,0,0,123,249,227,4, +132,18,16,120,65,239,228,140,18,16,120,65,225,4,127,129,254,0,129,230,6,159,146,254,78,9,244,38,140,146,18,72, +105,231,39,177,144,6,0,240,0,0,0,0,255,195,3,15,252,48,48,255,192,193,14,126,33,152,134,103,249,158,108,1, +128,0,0,0,0,255,195,3,15,252,63,240,127,131,255,143,254,33,1,142,6,44,19,152,88,56,0,0,0,0,255,195, +3,15,252,32,48,255,194,8,12,102,63,240,199,3,24,143,226,48,248,0,0,255,195,3,15,252,63,240,127,131,255,15, +252,3,1,255,224,120,7,56,112,56,0,0,0,0,127,129,2,7,248,16,32,127,128,0,15,254,32,24,255,226,1,143, +254,63,248,0,0,0,1,247,230,208,147,66,109,249,246,100,208,147,126,125,249,236,36,32,129,130,4,56,0,0,0,96, +255,131,16,15,254,49,192,219,39,199,135,252,63,240,255,195,255,15,252,63,240,0,0,0,0,255,195,3,15,252,48,48, +255,193,192,7,252,63,249,146,96,153,12,196,34,112,0,0,8,64,51,7,255,130,16,28,225,255,224,0,7,248,16,32, +127,129,2,7,248,31,224,0,0,0,17,231,230,184,18,192,75,1,239,231,179,18,204,75,49,236,199,163,16,140,6,48, +0,0,0,0,255,195,3,15,252,63,240,127,131,255,15,252,12,1,255,225,134,15,252,63,176,0,0,16,192,123,3,239, +29,182,92,192,123,7,127,152,0,63,240,192,195,255,12,12,63,240,0,0,0,0,255,195,3,15,252,48,48,255,193,48, +15,252,99,1,127,192,48,0,192,127,248,0,65,225,7,191,146,254,74,73,233,39,165,147,255,72,225,227,135,155,16,198, +6,8,0,0,2,0,255,192,96,15,252,6,1,255,225,206,15,252,120,121,127,161,134,7,248,31,224,0,0,0,65,225, +7,191,146,254,72,65,227,7,255,146,56,73,225,239,199,165,145,146,0,64,0,0,1,1,228,7,159,146,254,78,193,251, +231,143,146,48,72,249,227,231,140,16,48,0,192,0,0,0,1,239,231,136,146,98,73,153,252,230,227,18,254,75,249,236, +103,177,144,254,3,248,0,0,0,0,255,195,3,15,252,63,240,127,135,255,159,254,19,0,79,195,176,27,192,67,248,0, +0,0,0,255,195,3,15,252,48,48,255,192,48,15,252,63,240,97,128,140,31,254,127,248,0,0,255,195,255,12,12,63, +240,48,7,207,153,38,100,153,242,103,201,135,44,112,128,0,0,0,1,239,231,160,146,198,75,249,234,7,168,146,174,74, +225,251,7,104,145,51,4,248,0,0,16,0,97,224,79,159,50,12,200,55,231,236,143,178,46,248,191,228,216,51,60,24, +56,0,0,16,0,255,195,1,15,252,48,224,193,135,255,150,30,31,224,97,129,254,31,252,127,248,0,0,255,195,3,15, +252,48,48,255,192,72,9,36,36,144,210,128,72,31,254,127,248,0,0,255,195,3,15,252,63,240,127,130,73,13,44,28, +225,243,196,201,6,34,112,248,0,0,0,65,227,6,191,146,16,79,249,255,230,129,19,254,72,49,236,71,153,16,12,0, +112,0,0,0,0,255,195,3,15,252,48,48,255,195,51,6,216,127,248,50,0,136,14,34,112,248,0,0,0,1,255,226, +73,13,44,20,161,255,224,0,15,252,48,48,255,195,3,15,252,63,240,0,0,0,65,195,5,140,23,254,94,9,251,167, +250,151,234,95,169,255,167,96,145,130,6,56,0,0,0,0,255,195,255,12,12,63,240,12,7,255,153,134,127,249,255,225, +204,1,240,126,56,0,0,0,1,255,231,138,18,120,79,249,250,167,234,147,238,79,57,248,39,96,145,254,6,8,0,0, +1,1,230,5,255,146,38,72,241,231,165,179,146,4,79,249,230,135,18,16,203,6,56,0,0,1,1,229,167,183,146,220, +79,225,239,167,183,146,16,72,193,255,231,4,16,16,0,64,0,0,0,0,255,195,255,12,12,31,225,255,230,97,143,252, +25,0,255,192,16,31,254,1,0,0,0,0,1,223,229,192,151,98,91,249,229,5,180,22,254,88,65,227,135,127,144,16, +0,64,0,0,0,65,227,7,155,19,246,76,73,239,199,131,18,24,75,241,239,199,33,16,252,3,240,0,0,1,129,231, +135,190,19,152,79,249,233,39,164,146,254,72,225,227,135,158,145,219,12,56,0,0,0,0,255,195,255,12,12,63,240,7, +195,255,136,100,60,176,251,134,78,27,122,67,56,0,0,0,81,225,103,255,146,48,75,249,239,231,164,146,254,74,73,239, +231,173,144,146,2,88,0,0,0,1,255,231,136,18,252,73,145,228,71,255,210,0,75,241,236,103,161,144,254,3,248,0, +0,1,1,236,5,191,147,128,79,249,239,103,181,147,255,74,153,233,71,63,144,4,0,112,0,0,0,0,255,195,255,12, +12,63,240,255,227,255,139,252,63,249,255,230,207,27,220,78,24,0,0,8,64,33,7,255,137,44,20,161,255,231,255,135, +248,48,48,255,195,255,12,12,63,240,0,0,0,0,255,195,255,12,12,63,241,255,231,255,135,248,16,48,127,193,180,12, +220,103,24,0,0,2,1,201,229,38,23,208,83,97,205,229,117,21,244,94,81,233,71,45,16,180,2,144,0,0,0,65, +239,229,140,18,254,72,193,255,231,191,18,198,75,249,236,103,63,144,198,3,56,0,0,0,0,127,129,134,7,248,16,32, +127,128,0,31,254,103,153,255,230,121,159,254,127,248,0,0,0,0,255,195,255,12,12,31,224,123,7,111,23,48,63,249, +255,129,254,4,8,31,224,0,0,32,0,251,231,159,159,230,127,152,247,230,96,23,248,16,48,127,193,255,4,12,31,240, +0,0,0,65,227,135,191,146,0,75,249,232,103,161,146,254,72,65,237,71,165,145,146,1,192,0,0,16,1,251,226,136, +31,190,126,176,126,71,217,2,68,63,240,192,195,255,12,12,63,240,0,0,0,129,227,5,255,147,130,75,241,224,7,191, +18,132,75,241,232,71,63,16,0,7,252,0,1,223,229,200,151,34,95,249,248,7,231,151,254,92,57,254,199,99,17,30, +4,200,0,0,0,65,239,199,154,19,206,75,17,255,231,222,18,48,79,249,227,7,30,16,204,6,8,0,0,0,0,255, +195,255,12,12,63,240,255,192,110,31,254,31,1,255,193,255,6,12,31,240,0,0,0,49,255,199,169,146,180,79,249,228, +7,255,146,192,75,241,238,71,110,17,60,11,152,0,0,0,65,227,7,191,146,68,73,49,255,247,128,18,254,74,25,239, +231,177,144,254,3,248,0,0,0,1,255,229,224,146,254,74,25,239,231,177,146,252,72,193,255,231,18,16,198,6,8,0, +0,0,49,223,197,169,150,188,95,249,244,37,255,150,64,91,241,238,71,110,17,56,11,184,0,0,32,1,255,231,242,25, +254,124,97,179,135,251,135,248,16,48,127,193,3,7,248,127,248,8,65,255,224,204,15,252,63,240,192,193,254,31,254,24, +97,255,229,254,134,24,31,224,0,0,0,0,255,195,255,12,12,63,240,255,195,255,31,254,127,248,237,228,244,135,248,55, +48,0,0,0,1,152,99,127,129,134,7,241,223,227,236,15,252,55,240,217,3,127,159,128,71,248,0,0,2,33,204,133, +254,21,255,85,233,223,165,6,151,238,83,49,206,199,243,16,158,6,72,0,0,0,1,255,231,254,150,254,91,249,239,197, +255,151,254,91,241,252,102,31,144,70,1,248,0,0,0,49,223,133,255,150,48,87,249,215,165,127,148,48,87,249,255,231, +127,145,86,13,168,0,0,0,1,254,229,170,150,230,95,249,229,5,191,151,254,95,249,233,135,63,144,216,3,248,0,0, +0,1,223,229,255,151,134,91,241,255,229,147,23,254,90,81,251,103,30,17,252,5,192,0,0,2,17,205,197,127,149,254, +95,249,255,197,119,151,254,95,169,254,231,115,16,237,1,216,0,0,31,224,255,195,255,7,252,127,248,251,195,207,31,254, +63,241,255,225,251,30,120,30,56,0,0,0,0,255,194,1,8,4,32,16,255,66,1,8,4,32,16,255,195,255,8,4, +4,128,18,0,72,31,254,108,217,146,102,73,159,254,108,217,146,102,73,159,254,96,24,0,0,2,0,140,3,255,8,196, +63,240,204,194,49,15,252,33,48,7,128,28,135,242,120,120,0,0,0,1,255,224,48,15,252,51,16,255,195,49,12,204, +63,240,72,0,224,7,240,113,248,0,0,0,0,255,195,3,15,252,48,48,127,129,255,15,254,115,25,222,99,77,143,244, +0,112,0,0,4,129,255,224,216,15,252,44,144,255,195,255,0,0,31,224,64,129,254,4,8,31,224,0,0,0,0,255, +195,255,12,12,31,225,255,230,201,159,254,63,224,255,192,204,3,240,124,248,0,0,8,64,35,3,255,10,212,43,80,255, +195,255,7,248,24,48,127,193,131,7,252,31,240,0,0,24,97,247,225,134,31,126,125,248,243,198,89,159,252,48,48,255, +195,3,15,252,63,240,0,0,0,0,255,195,255,12,12,63,241,255,231,255,143,254,55,152,251,66,102,31,188,7,152,0, +0,3,0,30,1,206,31,254,127,240,173,194,249,15,252,31,224,97,129,254,6,24,31,224,0,0,0,0,127,193,3,4, +12,31,240,127,193,3,4,12,63,240,192,194,3,24,12,64,224,0,0,4,0,16,7,255,131,0,28,32,127,195,131,31, +252,24,48,127,193,255,6,12,24,224,0,0,40,1,239,230,128,26,0,120,1,191,246,155,30,104,121,161,36,132,146,18, +203,94,56,0,0,0,0,243,226,73,137,38,60,248,146,98,73,143,62,100,153,150,100,89,145,198,79,56,0,0,40,1, +247,230,208,155,70,125,49,183,230,223,159,118,125,89,53,196,211,19,94,89,200,0,0,1,1,228,6,191,146,254,126,9, +175,36,164,158,146,123,201,47,100,161,146,6,88,112,0,0,0,0,147,227,201,159,162,24,249,107,101,168,151,190,126,248, +70,35,24,136,70,99,56,0,0,41,17,228,70,155,26,254,120,65,161,6,142,30,254,120,225,35,132,155,18,198,90,8, +0,0,16,0,99,231,232,153,162,126,249,154,103,232,159,190,104,249,182,39,216,159,198,65,56,0,0,16,144,99,231,239, +136,102,33,248,246,98,51,128,204,63,240,12,3,255,0,192,127,248,16,0,99,231,232,134,34,126,249,26,103,232,153,190, +126,248,102,39,240,134,70,27,56,0,0,36,0,155,231,248,137,162,62,248,155,99,232,141,190,102,249,254,34,72,153,226, +65,56,0,0,17,33,255,229,147,23,254,124,9,103,133,255,158,224,124,241,127,197,157,23,150,241,200,0,0,3,0,12, +0,48,31,254,127,248,30,0,120,3,240,27,96,204,198,49,144,194,3,0,0,0,3,0,12,3,255,15,252,3,0,12, +7,255,129,224,15,192,109,131,51,24,198,3,0,0,0,3,0,12,7,255,159,254,3,0,12,7,255,129,224,15,192,109, +131,51,24,198,3,0,0,0,3,0,12,0,48,31,254,15,192,63,0,180,6,216,51,49,255,229,254,128,192,3,0,0, +0,16,128,102,1,152,31,224,125,128,102,3,216,15,224,121,131,102,33,152,134,102,24,248,0,0,3,0,13,128,51,0, +192,127,248,14,0,120,3,208,27,96,204,198,49,128,192,3,0,0,0,3,0,108,1,255,15,252,99,0,12,7,255,129, +224,15,192,109,131,51,152,198,3,0,0,0,24,128,99,1,140,31,176,24,192,227,195,207,143,178,88,193,99,1,140,6, +48,24,192,0,0,12,192,63,0,132,6,16,24,65,201,224,48,31,254,7,128,63,3,183,24,198,3,0,0,0,16,0, +71,193,19,31,76,57,48,196,195,147,31,76,85,51,76,193,35,69,143,20,24,0,0,16,0,79,241,28,31,32,49,128, +230,3,223,157,6,80,25,64,97,1,132,4,16,240,0,0,0,32,225,128,252,1,240,60,241,140,192,48,31,254,3,0, +109,131,51,24,198,7,0,0,0,4,0,24,7,252,3,16,24,73,193,228,48,31,254,127,248,109,131,51,24,196,14,0, +0,0,16,0,79,225,63,159,198,57,24,228,67,219,29,44,80,227,67,129,14,4,238,22,8,0,0,16,0,79,225,6, +31,16,56,64,193,3,191,223,24,84,67,65,1,4,4,16,16,64,0,0,16,0,95,227,63,159,166,51,88,237,67,147, +29,104,80,225,67,1,30,5,206,22,24,0,0,16,16,64,193,14,31,224,56,24,224,195,198,13,112,80,11,64,97,7, +4,112,19,128,0,0,16,0,79,225,127,159,72,57,32,196,131,146,31,72,113,35,76,129,50,69,143,20,56,0,0,3, +0,12,7,255,131,240,59,113,140,97,254,0,112,3,1,255,224,48,0,192,14,0,0,0,3,0,12,7,255,131,240,15, +192,109,135,51,144,194,31,224,64,129,2,7,248,31,224,0,0,16,16,64,65,1,31,254,56,56,224,195,199,13,52,81, +147,76,65,33,4,12,16,112,0,0,16,16,64,65,1,31,255,56,56,224,67,153,15,36,84,211,64,65,1,4,4,16, +112,0,0,17,128,70,1,31,159,254,54,8,232,35,216,157,50,80,89,64,97,1,132,6,16,112,0,0,16,32,64,131, +2,31,254,48,32,228,131,210,29,120,80,195,67,1,14,4,238,22,24,0,0,16,64,65,1,4,31,16,51,248,239,227, +132,30,16,80,65,65,1,4,5,254,19,248,0,0,16,0,79,227,63,159,6,48,24,228,99,191,156,196,83,1,76,1, +48,196,194,17,248,0,0,3,0,12,7,255,128,192,63,240,204,194,49,15,252,7,128,63,1,182,28,206,67,8,0,0, +16,0,79,225,63,159,16,48,64,225,3,196,29,16,112,65,65,1,4,5,255,16,0,0,0,4,0,63,129,254,31,48, +7,128,63,135,135,128,192,63,240,12,1,182,12,204,6,16,0,0,3,0,12,7,255,132,204,19,32,109,135,255,159,254, +7,128,45,3,51,24,198,3,8,0,0,48,0,223,195,6,30,48,51,136,223,227,154,158,90,114,73,211,35,25,140,198, +54,112,0,0,48,0,207,195,3,30,196,51,48,200,195,191,158,206,112,9,223,163,1,140,6,48,112,0,0,16,64,65, +1,5,31,86,51,72,237,35,228,29,22,80,83,64,193,6,4,240,23,0,0,0,16,128,67,1,63,159,254,48,0,199, +195,147,31,76,81,48,76,193,51,69,143,20,56,0,0,16,0,79,225,63,159,16,56,192,231,195,253,157,211,80,67,65, +1,4,4,16,16,64,0,0,3,0,12,7,255,159,254,7,128,45,3,51,24,198,67,8,0,2,73,25,54,68,200,0, +0,0,0,255,195,3,15,252,48,48,255,192,48,31,254,127,248,63,1,182,28,206,67,8,0,0,3,0,12,7,255,131, +240,11,64,204,198,49,135,252,48,48,255,195,3,15,252,63,240,0,0,17,0,196,3,63,159,254,54,64,225,3,132,29, +255,112,65,193,3,4,12,16,48,64,0,0,16,0,207,227,53,159,146,50,72,233,35,191,158,254,114,11,200,3,32,140, +194,51,248,0,0,16,0,79,227,3,31,120,48,96,207,227,191,159,18,80,89,65,1,4,4,16,17,192,0,0,16,0, +70,193,19,31,68,51,24,219,35,140,31,32,113,179,68,65,49,132,254,19,8,0,0,16,0,79,227,48,31,128,51,248, +238,99,169,28,164,114,241,89,129,102,5,126,29,24,0,0,16,0,223,195,50,30,72,49,32,237,227,177,156,228,114,145, +201,131,102,13,62,61,152,0,0,17,0,68,3,63,159,254,54,8,246,35,144,158,82,115,233,79,225,1,132,6,16,112, +0,0,18,0,201,131,38,30,154,51,120,207,195,166,30,152,114,97,201,131,46,205,250,54,56,0,0,16,0,207,227,63, +191,16,48,64,225,3,191,158,24,112,67,193,3,4,12,254,51,248,0,0,16,64,65,1,6,31,254,48,128,194,3,143, +159,102,85,155,68,97,17,132,198,22,112,0,0,16,16,71,193,24,31,64,57,0,231,243,147,31,76,83,51,76,193,51, +4,140,18,48,0,0,16,192,195,3,12,31,254,50,200,203,35,142,30,56,113,227,197,131,54,141,155,52,56,0,0,16, +96,65,129,6,31,126,56,240,225,131,207,13,60,81,251,77,161,38,132,24,16,96,0,0,16,64,193,3,4,31,254,51, +248,203,35,172,158,186,115,187,204,99,32,140,130,50,56,0,0,16,128,66,1,24,31,126,51,16,220,67,187,31,44,116, +227,67,129,14,4,238,22,24,0,0,0,0,255,195,51,15,252,51,48,255,195,255,0,192,127,248,63,1,182,28,206,67, +8,0,0,48,64,193,3,63,159,254,48,64,239,195,191,158,196,113,179,195,131,14,12,252,54,24,0,0,51,32,204,131, +50,30,200,123,32,204,131,182,30,220,115,243,219,67,77,143,34,61,136,0,0,16,0,79,227,32,31,164,50,144,201,195, +166,30,156,114,241,74,97,40,4,254,19,248,0,0,3,1,255,231,255,143,252,63,240,158,66,253,30,206,111,24,15,1, +128,7,240,0,224,0,0,48,0,207,227,36,30,144,50,248,203,227,164,159,146,118,217,219,99,73,141,102,61,112,0,0, +16,0,79,227,33,158,150,50,216,235,99,173,158,182,112,193,67,1,28,132,218,22,56,0,0,49,0,196,99,19,30,88, +49,64,207,227,255,158,88,113,35,196,195,17,12,246,51,8,0,0,16,192,195,3,30,30,204,54,24,223,227,179,31,204, +115,51,205,131,48,140,198,49,240,0,0,48,0,223,195,97,31,156,55,112,219,71,237,31,180,118,208,215,195,115,143,7, +56,8,0,0,2,0,127,131,255,13,140,51,96,255,225,255,128,134,127,248,60,193,172,28,158,66,0,0,0,16,64,67, +3,12,31,254,51,248,195,3,140,30,254,114,27,72,97,33,132,254,19,248,0,0,16,0,207,227,12,30,150,51,88,197, +67,132,31,254,112,195,193,3,4,12,16,48,64,0,0,16,0,79,225,49,159,194,51,8,204,35,177,159,254,80,3,70, +193,17,132,194,18,8,0,0,16,0,207,227,33,158,254,51,240,192,3,255,158,64,115,249,196,99,1,140,4,48,112,0, +0,16,0,211,231,239,141,166,38,153,187,228,192,0,192,127,248,30,1,190,28,206,67,8,0,0,34,0,200,3,35,159, +250,50,232,203,163,46,158,170,118,171,218,163,74,141,46,59,168,0,0,17,0,68,3,63,158,254,54,8,255,35,180,158, +146,115,75,79,33,32,132,6,16,112,0,0,16,192,193,3,63,159,254,55,8,196,3,147,30,120,113,131,196,3,16,140, +98,49,248,0,0,16,64,195,3,30,30,76,55,152,249,35,132,31,252,112,49,193,131,28,12,48,48,96,0,0,48,0, +223,227,4,30,16,51,248,201,35,164,159,186,114,185,206,99,32,140,130,50,56,0,0,16,0,207,227,32,159,134,51,248, +202,3,168,31,174,114,227,218,3,104,13,35,52,248,0,0,48,64,195,3,12,30,254,50,24,232,99,161,158,254,114,25, +200,99,33,140,254,51,24,0,0,24,97,255,231,255,134,24,31,224,97,129,254,0,192,127,248,30,1,182,28,206,67,8, +0,0,51,16,204,67,49,31,255,51,16,236,67,177,30,252,115,17,204,67,49,12,252,51,48,0,0,33,0,196,4,127, +137,224,17,8,199,230,15,0,192,127,248,30,1,182,28,206,67,8,0,0,33,0,198,132,126,24,72,19,40,216,166,227, +128,192,127,248,30,1,182,28,206,67,8,0,0,0,32,255,128,252,1,244,127,248,116,199,114,1,192,127,249,255,225,254, +28,206,99,8,0,0,48,0,223,227,28,30,96,49,0,228,7,191,157,198,247,8,196,35,16,140,126,49,24,0,0,48, +0,207,227,45,159,146,51,248,203,99,164,158,254,114,219,193,3,4,12,16,48,64,0,0,16,64,193,3,4,31,254,51, +248,233,35,164,158,254,114,217,201,35,36,140,254,50,8,0,0,16,0,207,227,32,31,128,51,248,204,99,161,158,198,115, +251,200,3,32,12,254,51,248,0,0,16,16,71,193,48,31,64,49,248,231,227,178,29,248,115,113,76,225,34,133,136,20, +32,0,0,17,0,68,3,63,159,254,54,128,243,227,207,157,32,80,251,67,225,8,4,32,16,128,0,0,16,64,193,3, +63,159,130,50,8,192,3,255,158,16,112,65,193,3,4,12,16,49,192,0,0,16,16,79,195,62,31,152,50,96,239,227, +191,158,136,82,33,72,129,39,68,255,23,88,0,0,3,0,12,7,255,131,240,27,97,204,229,254,132,24,31,224,65,129, +254,0,0,127,248,48,0,207,227,36,31,176,50,240,202,67,187,31,140,114,115,203,99,56,141,254,51,248,0,0,3,1, +255,231,255,128,192,63,240,173,66,181,15,252,63,240,63,1,182,28,206,67,8,0,0,16,0,95,243,1,159,4,51,208, +233,67,165,30,148,83,208,76,65,1,4,4,16,112,0,0,3,0,12,7,255,131,240,27,97,204,229,254,0,0,127,248, +12,1,182,12,204,103,24,0,0,16,64,65,3,4,31,254,48,64,225,3,132,31,254,112,97,65,1,4,4,254,23,248, +0,0,32,0,140,226,103,159,122,53,232,215,163,222,159,122,103,235,157,226,23,8,152,38,96,0,0,8,128,162,70,239, +26,32,104,137,251,230,32,0,192,127,248,63,1,182,28,206,67,8,0,0,16,0,223,227,49,31,108,48,224,195,131,251, +159,48,115,243,207,227,12,12,48,55,248,0,0,48,128,193,3,127,158,48,48,64,207,227,164,158,146,114,75,201,35,37, +140,16,48,64,0,0,16,16,223,195,96,63,254,55,248,250,67,255,157,230,119,152,214,195,88,13,98,60,248,0,0,35, +48,159,226,125,159,246,55,216,223,227,255,223,246,101,219,151,98,93,137,118,41,216,0,0,16,0,71,225,0,31,0,51, +248,239,227,196,29,84,83,88,73,33,100,133,18,17,192,0,0,16,128,194,195,9,30,254,51,192,195,99,191,158,242,112, +89,193,195,14,140,250,54,56,0,0,49,32,204,195,127,158,76,49,0,207,227,153,158,38,112,153,194,99,11,140,32,48, +128,0,0,49,128,198,195,25,30,254,51,248,197,131,150,158,92,115,115,205,131,38,13,250,53,56,0,0,17,128,198,3, +127,158,192,51,64,201,3,255,158,252,112,67,201,67,101,141,18,49,192,0,0,16,64,67,227,15,159,48,51,248,200,99, +161,158,254,114,25,72,1,96,5,0,20,0,0,0,48,16,207,195,32,30,144,50,64,223,227,255,158,16,115,81,201,99, +100,141,18,49,192,0,0,16,16,196,67,27,31,254,51,248,224,3,128,30,252,112,1,192,3,0,13,254,51,248,0,0, +32,16,128,98,113,158,126,53,24,220,99,53,158,222,99,59,158,98,65,139,4,32,112,0,0,16,64,67,3,30,30,204, +54,24,223,195,140,30,48,115,241,67,1,12,4,254,23,248,0,0,48,0,223,227,10,30,120,55,248,218,163,234,159,238, +119,57,216,35,96,141,254,54,8,0,0,0,1,255,224,72,15,252,44,144,178,67,255,0,192,127,248,30,1,254,28,206, +67,8,0,0,48,16,207,195,12,30,16,51,248,207,227,132,30,16,115,249,200,99,33,140,254,51,248,0,0,16,192,193, +3,63,158,76,49,48,204,99,243,158,72,112,227,195,3,14,12,238,54,24,0,0,32,0,159,227,24,159,98,53,168,206, +167,153,154,230,231,232,183,34,24,136,98,35,56,0,0,16,64,69,3,54,31,254,50,64,233,3,255,156,60,112,241,69, +193,53,133,147,16,64,0,0,16,128,66,33,63,158,44,55,248,239,227,159,156,254,95,0,71,225,1,132,6,16,240,0, +0,48,128,194,35,63,158,108,48,176,223,227,140,30,100,115,243,223,3,24,140,98,48,248,0,0,48,16,196,67,19,31, +254,48,64,195,3,191,158,16,112,193,223,227,4,12,16,48,64,0,0,16,64,193,3,127,222,48,49,144,207,195,190,30, +54,115,145,200,195,15,12,230,54,8,0,0,16,0,79,195,33,31,252,51,240,232,67,191,30,144,82,89,73,193,35,4, +246,19,8,0,0,16,128,70,65,31,31,204,54,224,227,131,159,29,198,119,251,76,97,49,132,254,19,248,0,0,8,128, +250,199,233,130,32,127,248,35,1,141,159,180,24,112,249,134,174,210,122,11,56,0,0,3,1,255,231,255,133,40,52,177, +146,96,72,0,192,127,248,63,1,254,28,206,67,8,0,0,16,32,120,195,255,153,76,29,176,103,231,3,16,200,127,248, +62,1,254,28,206,67,8,0,0,33,0,141,227,96,31,64,49,120,207,231,97,31,132,226,16,136,66,33,8,132,34,112, +0,0,16,64,193,3,63,158,48,48,64,223,227,132,30,16,115,251,195,3,4,13,254,55,248,0,0,49,32,198,131,26, +191,234,51,184,198,135,154,28,236,119,43,212,131,50,12,139,52,56,0,0,16,64,201,35,37,158,212,49,80,207,227,255, +158,72,113,35,196,131,50,204,139,54,56,0,0,17,0,199,131,51,31,216,55,248,248,3,175,158,166,114,155,202,195,40, +13,178,52,248,0,0,16,0,223,227,96,63,254,54,96,249,131,255,157,152,118,96,223,227,96,13,254,51,248,0,0,2, +1,255,230,97,155,134,127,248,99,0,252,31,158,3,1,255,224,252,14,220,99,24,0,0,48,128,195,3,127,159,130,52, +136,198,3,255,222,76,115,49,207,131,14,12,126,55,8,0,0,1,0,108,131,255,15,252,14,1,255,225,134,28,206,127, +232,30,0,254,12,204,35,0,0,0,2,0,15,224,48,15,252,48,48,255,195,3,15,252,127,249,255,224,252,12,222,99, +24,0,0,48,0,207,227,8,30,108,51,24,223,227,132,30,16,115,251,195,3,4,12,48,55,248,0,0,48,0,207,227, +32,191,186,50,8,203,163,170,159,170,114,171,203,163,40,140,130,50,56,0,0,0,32,127,128,252,7,248,125,249,182,227, +143,31,126,67,9,255,224,252,14,220,99,24,0,0,16,0,79,227,0,30,252,51,248,204,99,191,158,198,115,27,79,225, +0,5,254,23,248,0,0,48,64,193,3,127,158,48,48,64,207,227,191,30,0,115,249,200,99,33,140,254,51,248,0,0, +16,0,206,3,51,158,130,50,8,232,35,191,158,198,114,9,200,35,32,140,254,51,24,0,0,48,0,223,227,63,158,104, +53,168,214,163,250,159,238,115,179,206,131,26,13,254,48,0,0,0,49,0,198,3,127,158,38,48,240,199,163,243,158,4, +119,251,198,131,18,12,203,54,56,0,0,16,192,195,227,15,158,48,51,248,200,99,165,158,150,114,89,203,99,8,12,236, +54,24,0,0,16,64,201,35,37,158,212,48,80,207,227,191,158,2,115,251,192,99,0,141,254,48,24,0,0,48,64,219, +99,109,191,254,48,0,207,195,255,158,6,115,250,223,195,96,13,130,51,248,0,0,16,16,207,195,12,30,48,51,248,198, +195,177,157,198,113,177,196,195,19,12,204,54,48,0,0,49,0,197,163,55,159,220,55,224,207,163,183,158,16,112,195,223, +227,12,12,48,48,192,0,0,48,64,195,3,30,30,204,55,24,223,227,128,30,254,115,241,198,131,17,13,254,55,136,0, +0,8,129,39,226,191,130,228,56,241,167,0,176,0,192,127,248,30,1,182,28,206,67,8,0,0,16,64,193,131,63,159, +216,50,32,232,131,175,158,190,114,35,200,131,98,13,126,53,248,0,0,32,32,216,131,43,30,42,60,168,222,167,146,30, +10,114,27,200,67,99,13,56,53,128,0,0,16,24,223,227,41,158,180,49,80,207,195,131,30,16,119,251,223,227,4,12, +16,49,192,0,0,48,16,223,195,22,30,120,55,248,223,231,237,157,254,246,200,223,227,109,141,178,54,248,0,0,48,128, +199,131,62,31,216,55,248,205,35,191,158,210,115,251,207,227,36,141,146,52,88,0,0,32,0,95,134,91,11,78,25,40, +204,134,110,0,192,127,248,62,1,254,28,206,67,8,0,0,32,0,159,227,51,30,140,50,48,223,231,147,27,76,231,48, +155,226,48,9,240,44,248,0,0,33,0,140,2,63,159,128,55,248,207,99,165,159,255,98,155,137,66,63,136,4,32,112, +0,0,33,0,141,227,126,158,218,51,120,223,199,182,158,218,103,232,141,162,39,137,152,36,96,0,0,16,64,77,3,63, +158,254,54,64,203,131,255,158,0,115,251,76,97,49,132,254,19,248,0,0,16,192,193,3,63,158,68,49,48,198,195,255, +222,16,112,195,207,227,4,12,16,48,64,0,0,16,0,95,227,12,31,254,54,200,223,227,237,159,254,115,251,75,1,56, +4,248,30,120,0,0,16,64,73,35,53,159,20,51,248,200,99,161,158,254,114,9,79,225,33,132,134,18,56,0,0,16, +97,243,231,255,143,60,127,249,69,160,96,3,252,56,96,179,0,120,7,192,120,0,0,0,16,0,223,227,8,31,252,49, +144,230,67,255,220,0,115,241,204,99,33,140,254,51,248,0,0,6,1,243,97,141,159,182,60,217,248,101,131,128,192,127, +248,63,1,254,28,206,99,8,0,0,48,128,198,195,51,31,254,49,32,204,99,232,158,124,115,179,222,195,14,12,124,55, +24,0,0,17,16,196,67,63,159,254,48,72,207,227,172,30,254,115,249,199,35,60,141,150,48,64,0,0,48,96,193,227, +6,159,254,48,96,202,163,170,157,254,114,179,202,195,107,13,62,48,152,0,0,48,128,195,3,127,158,104,51,16,223,227, +128,158,188,114,243,203,195,47,13,181,60,152,0,0,16,96,97,135,255,143,60,125,249,69,161,132,7,240,24,64,121,1, +52,140,26,96,120,0,0,48,192,195,3,30,30,204,55,248,215,135,128,30,182,114,80,201,195,2,13,254,55,248,0,0, +48,0,207,227,1,158,254,48,24,207,227,132,30,178,114,211,219,67,30,12,204,54,24,0,0,16,64,79,193,63,159,254, +51,24,207,227,140,31,254,115,249,73,33,36,132,150,16,64,0,0,49,16,196,67,127,158,204,49,240,198,195,159,30,124, +115,187,223,227,19,12,198,54,8,0,0,16,0,207,227,33,191,254,50,24,239,227,160,28,152,115,248,201,131,38,13,250, +55,56,0,0,48,64,223,227,12,30,252,49,128,223,227,183,29,246,119,233,195,3,127,12,48,48,192,0,0,48,192,195, +3,127,159,130,51,248,199,195,128,31,254,112,195,201,67,101,141,18,49,192,0,0,16,96,97,135,255,132,24,127,249,93, +165,118,151,94,56,96,243,199,127,180,218,16,96,0,0,32,0,159,227,94,159,122,55,248,215,167,92,159,254,101,250,151, +34,220,138,114,43,216,0,0,19,32,76,135,255,152,6,95,232,97,129,254,0,192,127,249,255,224,252,30,222,99,24,0, +0,48,128,195,3,63,158,54,55,248,195,99,191,158,48,114,219,207,131,127,13,54,49,128,0,0,3,0,12,7,255,131, +240,27,113,204,225,6,31,126,125,248,227,199,223,180,219,16,96,0,0,32,16,143,194,12,31,254,55,248,203,67,255,158, +246,98,211,159,226,12,8,48,35,248,0,0,32,64,207,195,63,30,48,55,248,196,195,249,159,124,115,241,220,195,14,12, +252,55,24,0,0,16,0,79,227,37,158,254,50,88,207,227,140,31,254,119,251,71,129,53,5,146,16,64,0,0,16,64, +195,227,15,159,254,51,248,232,99,191,159,134,115,251,195,3,127,204,48,48,192,0,0,16,64,65,3,63,159,130,51,240, +236,67,191,31,252,83,1,79,225,49,132,254,19,248,0,0,16,64,97,135,223,143,60,117,249,69,160,200,6,24,112,120, +127,128,198,6,24,113,192,0,0,16,192,207,227,63,158,252,50,24,207,227,128,30,254,112,113,223,227,63,140,16,49,192, +0,0,48,64,207,227,12,30,56,51,24,223,227,129,158,246,115,89,205,99,61,140,134,48,112,0,0,48,64,195,131,63, +158,0,51,248,200,99,161,158,254,112,67,205,67,37,141,146,49,192,0,0,48,192,195,3,127,158,32,51,240,200,67,191, +30,132,115,243,200,67,63,13,134,55,248,0,0,49,0,196,131,50,30,254,54,32,223,227,191,158,136,115,251,205,131,50, +12,254,51,0,0,0,48,0,207,227,32,159,254,51,248,201,131,191,223,152,119,243,223,227,80,141,102,61,248,0,0,34, +0,137,226,63,158,242,34,104,255,167,179,158,140,231,176,170,194,167,8,182,38,136,0,0,32,64,143,194,63,30,50,55, +248,197,99,156,30,208,103,251,159,226,26,8,198,38,8,0,0,16,1,251,226,136,31,190,126,176,126,71,217,2,68,127, +249,255,224,252,28,206,99,8,0,0,16,0,207,227,42,159,170,51,248,230,3,159,156,198,118,145,195,131,14,12,224,54, +0,0,0,32,32,156,130,95,159,80,54,72,223,231,92,159,94,101,74,157,226,68,137,18,36,88,0,0,32,0,191,227, +94,159,122,55,240,215,199,126,159,250,101,232,151,162,255,136,120,33,224,0,0,33,80,157,195,69,31,212,55,216,210,39, +127,157,254,100,88,157,194,227,9,30,36,200,0,0,34,16,223,227,127,190,252,51,240,207,199,191,29,254,247,250,218,195, +121,13,254,55,248,0,0,33,0,143,195,33,30,252,48,48,223,231,184,155,238,227,242,155,66,29,137,146,33,192,0,0, +32,64,207,227,63,158,252,49,192,223,227,187,30,252,119,59,223,195,51,12,204,51,240,0,0,16,64,195,3,127,158,120, +51,216,219,35,191,30,132,115,243,200,67,63,12,0,55,248,0,0,34,0,159,227,34,159,202,50,104,223,39,173,152,160, +231,248,159,226,28,8,220,46,24,0,0,32,32,191,227,38,158,254,38,104,219,231,182,30,254,238,96,159,226,98,11,232, +40,248,0,0,24,97,247,231,223,143,60,121,232,97,135,255,159,254,19,16,79,131,176,27,192,71,248,0,0,48,64,195, +3,127,158,48,51,248,205,99,190,158,254,115,249,199,195,53,13,146,48,64,0,0,32,0,223,227,106,159,254,55,248,195, +7,255,158,96,113,242,199,195,49,13,132,52,112,0,0,32,64,195,3,127,158,48,55,248,222,231,234,159,250,118,202,223, +163,108,141,146,54,24,0,0,48,0,207,227,36,159,178,51,248,200,7,191,158,230,119,251,222,99,95,141,126,53,248,0, +0,48,192,195,3,127,159,130,51,240,192,3,191,30,196,115,243,204,67,63,12,0,55,248,0,0,16,0,79,227,49,158, +254,48,0,223,227,177,30,252,115,17,79,193,63,133,254,16,16,0,0,48,128,195,99,63,30,44,51,248,223,227,152,29, +254,119,27,199,227,17,140,126,49,248,0,0,48,64,207,227,63,158,254,49,128,223,227,179,29,254,116,203,207,195,30,12, +76,54,8,0,0,50,64,201,163,63,158,152,54,104,223,227,204,30,252,114,25,207,227,63,140,134,51,248,0,0,33,32, +156,194,35,28,158,39,249,223,231,127,153,204,231,48,169,194,167,136,146,34,200,0,0,48,0,223,131,51,158,250,51,104, +207,35,239,159,68,115,251,218,227,106,141,254,55,248,0,0,48,64,201,67,61,31,254,49,224,205,99,204,158,96,119,249, +204,195,62,12,124,55,24,0,0,16,0,207,195,49,30,196,51,240,199,195,128,31,254,116,235,211,163,78,141,254,55,232, +0,0,32,0,159,226,81,31,212,53,80,215,199,255,159,12,101,51,157,194,255,11,52,33,152,0,0,33,32,149,130,87, +159,120,53,16,196,3,255,31,132,102,147,154,66,12,8,210,46,120,0,0,32,192,135,2,51,31,206,35,240,222,39,122, +159,234,231,168,158,162,122,137,34,37,184,0,0,16,128,195,3,127,158,68,49,48,223,227,140,29,254,115,251,203,67,109, +141,50,49,192,0,0,36,8,155,226,32,159,114,53,104,213,167,220,159,122,101,43,148,162,94,137,2,36,56,0,0,48, +128,218,67,35,31,254,51,48,203,99,236,158,252,112,195,223,227,127,140,48,48,192,0,0,50,0,223,227,96,159,254,55, +104,223,227,255,159,254,119,251,212,99,95,143,66,57,56,0,0,34,0,140,226,122,159,42,55,184,210,195,218,159,234,101, +43,148,162,123,139,184,32,32,0,0,48,64,195,131,127,159,130,49,48,203,99,142,28,236,119,255,207,195,49,12,204,51, +240,0,0,32,0,247,231,159,22,102,127,248,102,6,95,144,192,127,248,63,0,252,12,206,99,24,0,0,32,64,207,227, +63,158,252,49,128,255,247,179,29,254,116,200,207,227,30,12,246,52,192,0,0,32,64,207,227,63,158,76,55,248,217,39, +204,159,254,113,130,199,195,17,12,196,54,112,0,0,48,0,223,227,64,31,44,53,184,210,195,91,159,40,119,187,210,195, +74,13,254,55,248,0,0,48,192,223,227,96,159,104,51,24,214,3,159,158,254,118,251,195,3,15,140,48,48,128,0,0, +35,64,205,131,127,159,252,54,96,207,231,164,30,254,114,66,223,227,127,140,48,48,192,0,0,35,8,140,98,121,159,126, +55,152,222,103,255,155,238,239,184,142,98,105,139,38,35,176,0,0,16,192,195,131,127,158,252,51,24,223,243,161,158,254, +113,201,220,227,83,12,118,51,136,0,0,48,0,221,227,98,159,234,55,232,219,227,197,30,254,114,91,207,227,45,140,254, +51,248,0,0,16,192,195,3,127,223,227,49,224,239,227,242,29,254,115,35,207,227,54,12,254,51,248,0,0,16,0,207, +227,63,158,254,51,248,192,3,255,159,34,114,170,206,99,127,141,34,51,152,0,0,48,192,195,3,127,158,252,51,16,207, +199,128,31,254,118,10,223,163,114,141,250,54,24,0,0,36,144,243,231,237,150,190,126,249,255,227,19,136,204,127,249,255, +224,252,28,206,99,24,0,0,32,32,209,131,47,158,38,48,248,219,199,172,30,190,114,138,203,99,111,141,192,56,248,0, +0,33,48,132,130,127,156,48,51,248,198,7,127,159,254,99,3,159,226,196,11,254,35,248,0,0,16,64,195,3,127,159, +182,51,248,203,99,255,158,124,112,211,199,227,55,141,146,52,120,0,0,48,128,207,195,33,158,254,50,24,207,227,152,31, +254,115,49,219,99,127,140,48,48,192,0,0,33,32,148,131,87,159,88,53,224,214,103,144,30,252,103,248,149,226,87,137, +254,47,248,0,0,32,192,195,3,127,159,142,51,240,200,3,191,30,216,114,33,223,227,18,12,206,52,8,0,0,32,64, +145,163,111,190,20,37,248,255,231,100,29,254,103,200,155,226,124,137,190,36,248,0,0,32,56,128,162,127,223,72,53,160, +214,167,90,159,254,101,178,159,194,235,10,109,41,88,0,0,34,8,156,98,115,159,238,63,152,219,227,123,159,230,103,187, +159,226,233,138,38,41,152,0,0,48,160,223,227,30,31,254,54,168,223,227,254,158,254,115,251,204,99,63,140,198,51,248, +0,0,17,16,223,227,51,30,124,48,192,207,227,191,158,48,115,251,195,3,63,140,48,55,248,0,0,35,16,158,135,250, +157,254,55,177,242,167,255,128,192,127,248,30,1,246,28,206,67,8,0,0,16,32,220,199,255,141,12,127,113,207,227,122, +0,192,127,249,255,224,120,7,56,112,56,0,0,48,0,223,227,127,159,178,51,248,207,231,140,30,252,119,250,204,3,63, +140,4,48,240,0,0,16,64,205,99,21,31,254,54,8,207,227,177,30,252,112,195,207,227,12,12,48,55,248,0,0,32, +128,159,227,51,31,254,55,248,207,199,161,158,254,99,250,131,2,127,136,48,32,192,0,0,49,32,223,227,27,30,252,51, +248,207,227,161,159,254,112,193,223,227,30,12,204,54,24,0,0,48,0,223,227,96,159,254,55,232,219,195,255,159,152,119, +251,221,131,95,143,126,56,96,0,0,17,48,207,227,63,159,108,55,248,195,3,191,159,182,115,251,203,99,63,140,204,54, +8,0,0,32,192,159,227,45,30,180,51,224,255,231,128,29,254,100,24,148,226,95,137,254,39,248,0,0,32,0,223,227, +109,191,182,54,232,204,199,255,156,50,119,251,204,195,62,12,124,55,24,0,0,33,64,205,131,63,159,254,63,240,223,231, +191,158,254,243,248,207,227,33,141,170,52,172,0,0,49,16,198,195,127,158,254,55,232,220,227,255,159,130,115,251,223,227, +51,12,200,48,96,0,0,34,16,136,98,127,156,158,63,208,223,103,165,159,246,111,243,184,242,230,142,208,57,248,0,0, +32,32,158,130,18,63,255,37,233,215,167,254,153,110,231,176,146,66,251,11,110,32,200,0,0,32,96,158,2,63,30,238, +55,192,195,227,19,159,156,103,59,153,194,247,136,232,38,56,0,0,3,1,255,225,255,7,252,127,249,255,161,254,15,248, +15,225,255,224,252,14,220,99,24,0,0,48,16,207,195,14,31,254,49,232,221,131,140,31,254,119,171,223,227,122,141,250, +54,24,0,0,49,64,223,195,82,159,206,51,248,216,51,191,30,132,115,242,204,195,18,12,120,55,248,0,0,32,0,159, +226,64,31,88,53,248,223,227,239,155,244,103,211,191,66,147,138,74,59,72,0,0,49,0,199,131,34,31,254,50,72,207, +227,152,28,246,113,243,217,67,29,141,146,49,192,0,0,40,128,239,199,127,150,124,63,241,255,193,179,12,252,3,1,255, +224,252,28,206,67,8,0,0,32,0,159,226,64,31,242,52,8,223,247,228,159,250,100,186,182,226,216,138,242,42,24,0, +0,33,0,207,131,118,31,254,51,248,203,103,191,159,254,113,242,207,227,63,140,198,51,248,0,0,32,64,153,226,69,159, +124,47,24,251,231,108,25,254,238,120,130,226,119,138,107,32,96,0,0,32,128,159,226,127,159,254,53,232,215,163,127,158, +252,99,243,143,194,33,8,252,47,252,0,0,34,32,156,130,218,31,255,45,232,255,167,39,155,236,100,48,158,194,91,11, +94,43,72,0,0,48,192,199,131,59,159,254,49,80,215,67,255,29,252,119,251,223,227,94,141,234,52,56,0,0,33,0, +207,131,127,159,254,55,152,217,135,255,159,254,118,0,211,195,95,143,102,57,248,0,0,48,0,207,227,12,31,254,55,248, +195,3,191,158,16,115,251,203,99,63,140,182,51,248,0,0,32,97,247,230,73,31,126,125,249,215,231,198,0,136,127,249, +255,224,252,12,206,99,24,0,0,36,65,251,2,79,159,228,114,113,249,135,255,131,194,127,249,255,224,252,12,206,99,24, +0,0,32,128,159,227,0,31,254,53,248,215,231,127,158,0,99,240,191,226,47,9,182,41,136,0,0,32,128,159,226,125, +159,254,54,240,220,195,179,31,254,103,251,143,194,45,9,182,37,136,0,0,33,32,159,226,18,31,254,52,8,199,131,255, +158,224,100,251,159,194,29,9,150,33,200,0,0,8,0,96,1,255,143,254,48,17,140,196,51,0,192,7,128,26,0,204, +14,28,96,24,0,0,2,1,8,7,63,133,254,4,152,50,64,13,4,112,49,193,133,134,50,17,142,12,8,0,0,0, +128,6,7,223,131,126,79,89,169,3,140,6,48,24,224,243,134,219,16,198,6,8,0,0,4,129,242,6,15,152,126,125, +201,253,166,134,26,24,104,97,35,196,137,18,102,75,8,0,0,32,128,130,3,239,136,62,33,201,253,231,230,1,24,28, +97,211,192,73,3,102,29,8,0,0,0,193,250,6,15,153,190,117,201,117,164,198,19,24,92,97,217,198,13,31,230,127, +8,0,0,0,128,146,6,44,150,126,25,168,221,166,102,31,152,126,96,153,194,109,15,230,33,8,0,0,4,65,241,1, +207,157,190,16,171,254,162,134,31,152,250,97,169,194,173,11,166,9,136,0,0,16,64,195,6,79,159,190,97,233,245,167, +198,22,24,254,96,99,195,205,25,102,65,8,0,0,8,65,251,7,239,134,62,103,201,5,167,246,25,152,126,97,121,199, +237,17,230,15,8,0,0,36,64,147,7,239,137,62,61,136,157,163,198,13,24,102,97,249,194,77,25,230,65,8,0,0, +16,129,250,7,236,31,62,127,137,253,167,246,31,152,126,97,249,197,173,22,102,49,8,0,0,6,65,249,1,143,159,190, +24,169,254,229,230,22,152,126,97,105,197,173,31,230,65,136,0,0,16,129,250,7,239,137,62,45,201,253,160,6,31,152, +102,97,251,198,109,31,230,103,8,0,0,0,65,249,7,239,159,190,126,168,198,163,226,26,152,218,113,249,199,173,14,166, +15,136,0,0,2,64,153,7,247,143,62,126,168,254,167,242,15,136,126,96,241,199,237,63,38,61,136,0,0,0,65,255, +0,47,158,190,123,169,204,167,246,31,216,122,97,169,199,173,24,166,15,12,0,0,24,64,113,7,111,151,62,62,168,158, +163,230,31,152,122,97,217,199,109,22,230,55,136,0,0,36,65,253,2,79,157,190,87,169,254,162,194,31,136,126,96,177, +195,229,11,54,63,136,0,0,1,0,4,0,16,4,64,49,128,199,227,16,12,64,49,0,196,3,16,31,254,127,248,127, +248,255,192,16,0,64,49,0,199,195,16,12,64,49,0,196,7,255,159,254,12,128,51,0,204,11,48,46,248,187,130,204, +11,48,44,192,179,34,204,223,190,112,120,0,0,1,0,79,193,63,4,192,127,249,255,224,177,6,204,51,96,143,0,56, +15,128,120,0,0,0,0,128,251,192,13,159,254,127,248,51,2,204,11,208,44,64,177,2,214,223,202,112,56,0,0,0, +64,97,1,191,150,24,92,65,127,229,191,150,68,89,177,115,135,206,56,254,7,24,0,0,0,1,255,224,48,3,240,59, +113,140,96,32,31,254,3,0,79,193,48,12,192,127,248,127,248,28,0,96,3,252,24,32,193,134,228,0,240,1,128,28, +1,224,14,0,0,0,127,248,99,1,8,15,160,62,185,139,135,108,7,32,12,128,98,39,15,152,30,0,17,255,227,22, +12,24,60,97,177,132,255,254,24,24,96,97,131,6,24,24,64,96,0,0,0,161,247,195,25,12,100,63,25,152,102,255, +158,254,25,16,102,193,14,24,124,71,24,0,0,0,1,255,195,17,12,68,61,241,151,198,209,31,68,25,240,100,65,17, +12,102,103,252,0,0,0,65,241,2,31,140,126,61,89,181,100,181,191,255,24,224,67,131,27,24,198,70,8,0,0,0, +65,243,131,15,12,102,63,77,147,6,216,30,24,24,200,100,97,7,24,112,67,0,0,0,0,65,243,3,8,12,100,63, +25,191,228,192,30,124,27,248,108,99,49,152,254,67,248,0,0,1,1,247,227,63,141,128,61,241,177,132,220,190,254,25, +168,77,163,100,152,98,65,56,0,0,1,1,244,2,63,136,254,126,9,191,164,150,190,122,25,104,71,163,17,152,6,64, +112,0,0,0,65,245,3,22,12,254,62,65,185,4,255,190,56,24,240,101,67,53,153,146,64,64,0,0,0,129,243,195, +13,12,254,63,193,179,100,191,190,178,24,88,65,195,14,24,239,66,24,0,0,0,25,255,194,1,140,84,61,81,191,196, +131,30,16,27,248,79,227,4,8,16,97,192,0,0,0,1,255,194,49,14,252,60,1,191,228,161,190,150,26,88,75,99, +14,24,238,70,8,0,0,0,65,243,2,26,8,68,63,253,183,196,128,30,146,25,80,69,67,3,8,254,99,248,0,0, +0,65,243,2,63,136,48,127,241,188,68,191,62,196,27,240,76,67,63,24,198,71,248,0,0,1,17,246,66,10,8,254, +62,73,175,228,190,158,254,27,248,79,227,127,152,16,64,64,0,0,0,1,255,226,3,8,56,127,249,55,37,223,157,116, +23,216,195,162,28,25,254,79,248,0,0,0,65,243,130,63,136,134,57,241,164,4,159,158,72,17,32,95,227,18,24,198, +70,8,0,0,0,65,255,226,12,8,254,63,249,184,36,191,158,252,19,16,79,195,19,24,104,71,248,0,0,0,0,63, +0,132,6,16,48,105,128,227,254,7,248,8,96,51,0,120,7,248,120,120,0,0,0,1,251,196,9,25,36,117,153,116, +36,223,147,102,92,145,211,198,6,31,190,127,152,0,0,12,0,231,198,27,30,108,125,49,140,103,223,31,124,97,145,242, +199,14,24,124,35,24,0,0,4,1,243,198,9,31,36,125,145,156,103,223,152,126,124,145,147,196,70,17,124,95,24,0, +0,32,17,251,196,41,31,164,117,153,252,39,255,149,38,126,145,249,197,102,52,188,49,152,0,0,0,1,187,196,41,27, +164,70,153,252,39,255,128,126,126,144,67,193,166,31,252,1,152,0,0,24,65,251,193,141,31,180,126,153,78,39,47,159, +190,56,209,249,193,134,31,190,9,136,0,0,0,0,64,71,239,31,164,36,145,254,99,144,28,254,92,153,178,69,231,15, +24,72,240,230,96,0,0,0,0,127,193,19,4,76,51,49,255,227,51,12,140,50,48,255,224,194,6,8,49,224,0,0, +0,0,127,193,35,4,204,17,177,255,227,99,13,140,35,48,196,195,255,128,8,1,224,0,0,24,0,127,227,255,136,0, +127,240,72,193,19,31,255,54,48,204,131,255,132,28,0,224,0,0,3,0,255,224,48,15,252,3,1,255,225,254,6,204, +127,249,255,227,255,15,252,0,224,0,0,32,0,193,135,223,152,52,124,153,215,230,64,63,244,85,209,87,71,245,3,85, +25,88,0,0,33,128,134,2,24,8,102,61,176,247,130,24,8,96,33,128,134,34,216,159,126,96,240,0,0,33,0,134, +67,255,12,112,33,136,254,103,143,128,192,3,1,255,224,48,0,192,3,0,0,0,32,128,134,67,255,12,112,33,137,255, +226,6,0,216,40,209,174,100,227,159,26,127,192,0,0,0,33,252,135,242,21,200,87,41,255,199,242,21,200,87,33,252, +135,190,144,250,3,56,0,0,32,128,198,227,254,8,96,62,136,195,231,255,159,254,62,153,219,193,200,6,35,112,248,0, +0,0,32,15,135,240,1,128,7,241,255,2,96,1,158,127,241,216,0,96,129,134,3,248,4,65,225,7,7,132,16,124, +65,199,225,29,143,198,251,24,71,225,0,134,6,15,248,8,129,230,71,63,140,242,121,65,207,227,38,14,16,255,248,193, +3,4,12,19,31,248,2,1,255,224,0,7,252,16,48,0,7,255,144,242,31,0,255,128,255,157,194,3,248,12,65,229, +103,21,4,56,61,153,193,1,20,143,212,248,224,70,225,48,134,6,15,248,0,224,252,1,255,1,158,127,136,15,224,199, +30,120,60,249,193,7,223,133,146,60,120,0,0,16,0,209,199,238,30,152,126,121,251,130,102,22,158,52,224,109,131,102, +199,26,48,56,0,0,8,16,113,195,110,25,216,60,121,207,197,102,29,158,87,249,221,133,102,148,155,118,56,0,0,24, +65,223,231,39,140,190,127,249,205,131,111,143,152,118,240,221,3,223,140,2,31,248,10,64,187,231,239,144,244,94,113,127, +228,104,135,240,3,241,254,0,255,156,194,3,248,1,33,237,135,127,141,212,123,113,223,227,62,14,140,243,240,200,67,63, +204,2,31,248,9,1,231,135,63,13,254,123,217,207,195,127,142,124,251,16,207,195,63,140,3,31,248,96,1,125,231,254, +31,216,95,121,255,130,198,31,159,255,241,177,135,230,219,27,126,56,0,0,0,0,255,195,248,12,96,49,128,198,3,255, +140,32,48,128,195,3,36,143,154,48,56,0,0,0,32,255,131,216,12,96,49,128,255,227,255,140,32,48,192,195,3,52, +143,94,113,56,0,0,0,0,255,194,3,8,12,63,240,140,2,48,15,254,33,128,134,2,12,159,190,112,48,0,0,32, +0,207,225,33,191,198,99,249,137,134,38,24,254,98,97,232,131,162,128,255,7,24,0,0,24,0,96,3,255,140,0,111, +241,0,3,254,0,8,0,32,0,128,2,0,15,0,24,0,0,24,0,127,227,0,27,252,64,0,255,128,6,1,8,4, +32,48,129,130,12,15,96,24,0,0,16,0,127,227,0,27,252,96,32,255,131,226,15,200,19,32,78,131,10,8,47,67, +152,0,0,24,0,127,227,0,31,252,64,0,255,128,6,4,200,19,32,76,131,50,24,207,67,24,0,0,16,0,127,227, +255,155,252,64,0,255,128,66,1,40,100,161,146,134,75,31,238,0,152,0,0,24,0,127,227,0,27,252,64,0,255,128, +6,13,40,52,160,210,130,75,25,47,68,152,0,0,24,0,127,227,0,31,252,64,0,255,129,178,12,104,113,224,124,128, +147,4,79,103,24,0,0,16,0,127,227,255,27,252,63,224,104,135,250,7,168,127,161,254,197,239,4,183,98,24,0,0, +24,0,127,227,0,23,252,0,32,255,129,250,30,232,31,33,239,192,227,6,7,15,152,0,0,24,0,127,227,0,23,252, +63,224,255,131,250,0,200,63,160,195,129,251,1,135,127,216,0,0,16,0,127,227,0,31,252,96,0,255,131,250,9,40, +46,160,178,194,171,14,231,63,152,0,0,16,0,127,227,0,27,252,127,224,16,135,254,7,8,62,32,118,135,51,7,231, +112,216,0,0,16,0,127,227,0,27,252,64,0,255,129,50,31,232,12,32,254,135,251,31,239,4,24,0,0,16,0,127, +227,0,27,252,127,224,56,195,255,26,60,127,241,255,195,241,3,199,120,216,0,0,16,0,127,227,0,31,252,96,32,255, +131,250,15,232,42,160,170,131,187,2,135,127,216,0,0,24,0,127,227,0,19,252,63,224,48,199,255,3,12,63,176,254, +195,251,6,150,115,216,0,0,16,0,127,227,0,27,252,127,224,18,130,218,11,200,125,160,178,130,243,6,103,112,216,0, +0,16,0,255,231,255,16,0,63,224,252,128,26,15,232,127,241,146,195,251,95,119,12,88,0,0,16,0,127,227,254,19, +248,63,224,16,131,250,15,232,127,224,254,131,251,15,231,35,152,0,0,16,0,127,227,0,27,252,127,224,0,131,250,15, +232,63,160,254,130,171,26,175,127,216,0,0,3,0,12,0,48,2,196,127,48,47,128,188,6,240,19,96,204,198,49,144, +194,14,0,0,0,0,0,192,1,128,0,0,64,1,192,1,0,0,0,12,0,96,1,128,12,0,32,0,0,0,12,0, +62,0,24,7,192,3,24,12,231,190,2,240,27,192,205,134,51,24,198,15,0,0,0,3,0,12,0,120,6,56,115,57, +12,39,241,31,236,11,224,109,3,55,24,198,15,0,0,0,0,0,223,225,127,128,24,64,97,193,128,6,0,24,24,96, +65,131,6,24,24,97,192,0,0,32,192,195,1,12,0,48,64,193,255,240,12,0,48,24,192,67,3,12,24,48,64,192, +0,0,3,64,13,199,255,159,254,3,16,204,193,190,0,240,15,96,237,199,51,144,194,14,0,0,0,4,0,28,0,120, +7,24,115,57,12,7,241,31,236,11,192,109,3,55,24,198,15,0,0,0,0,1,223,225,64,1,0,68,1,144,2,64, +1,0,20,0,208,2,64,25,254,71,248,0,0,223,225,97,128,134,66,17,204,192,19,0,120,16,224,195,2,30,25,206, +76,8,0,0,0,0,223,225,97,128,166,66,209,205,192,19,0,120,16,192,67,3,30,25,206,76,24,0,0,0,128,198, +1,24,128,254,66,25,216,96,217,0,60,16,96,193,2,28,24,192,70,0,0,0,1,0,204,1,63,129,254,76,1,207, +192,14,0,48,17,128,76,3,96,217,130,67,248,0,0,0,128,195,1,12,1,50,68,201,211,32,76,129,50,20,200,211, +35,76,153,254,64,24,0,0,0,0,223,225,12,0,48,64,193,195,0,127,192,48,24,192,67,3,12,24,48,64,192,0, +0,0,0,223,193,19,0,76,65,17,196,64,127,0,68,17,16,196,66,17,24,71,65,24,0,0,32,0,207,225,33,128, +134,66,25,200,96,63,128,134,26,0,72,3,32,216,130,35,248,0,128,198,1,24,1,254,79,253,204,192,35,1,136,23, +96,199,130,30,25,238,78,24,0,0,0,0,255,192,48,0,192,127,248,12,7,177,159,236,11,192,111,3,55,24,206,14, +0,0,0,0,0,223,225,127,128,48,64,193,195,0,12,0,48,24,192,67,3,12,27,255,64,0,32,64,195,1,108,1, +190,71,249,223,32,236,129,178,22,248,219,3,96,153,130,67,248,0,0,0,0,223,225,0,0,0,71,249,204,0,48,0, +252,27,240,64,67,1,24,12,65,224,0,0,223,193,6,0,112,71,137,223,224,22,128,210,22,200,242,98,25,152,198,6, +112,0,0,0,0,223,225,97,129,130,70,9,216,96,127,129,134,22,8,216,35,97,153,254,70,24,0,0,0,0,223,225, +97,129,2,68,9,216,32,126,129,2,20,8,208,35,97,153,254,68,8,0,0,32,0,223,225,63,128,48,64,193,195,0, +63,128,48,24,192,67,3,12,25,254,71,248,0,0,32,128,194,1,8,0,32,79,253,199,0,28,0,120,17,32,76,131, +51,25,230,76,72,0,0,0,1,223,129,54,0,216,66,97,205,224,49,0,228,22,176,219,130,78,27,126,75,24,0,0, +32,128,195,1,12,1,254,64,193,194,0,14,0,60,24,152,66,3,8,24,32,64,128,0,0,0,128,195,1,12,3,254, +70,49,136,192,50,0,88,17,192,67,3,62,25,142,76,24,0,0,32,32,200,129,54,1,114,68,201,211,32,76,129,122, +23,56,92,227,64,153,254,64,24,2,0,204,1,127,131,0,75,241,128,0,127,0,12,16,16,192,66,1,24,7,64,24, +0,0,0,0,196,129,178,0,204,70,25,248,224,127,0,68,25,16,68,195,51,25,140,76,224,0,0,0,0,198,1,14, +0,72,67,1,156,96,240,131,194,63,12,172,6,49,24,68,65,240,0,16,207,193,112,0,128,66,1,207,224,34,1,136, +22,32,216,130,66,27,8,72,32,0,0,32,16,207,193,124,0,32,64,129,223,224,255,128,48,17,192,197,131,51,25,134, +76,8,0,0,32,0,223,193,63,0,0,64,1,255,240,62,0,72,19,32,204,130,34,217,138,76,56,0,0,0,129,194, +1,127,129,254,64,1,143,128,50,0,136,18,32,200,131,98,219,11,72,56,0,0,0,128,194,1,12,1,254,68,137,146, +32,28,0,112,17,192,205,2,52,153,146,76,120,0,0,0,0,223,225,64,129,2,65,225,207,128,50,0,200,19,32,204, +131,34,217,143,76,56,0,0,0,128,194,1,127,128,48,68,129,146,96,73,129,38,23,248,195,98,8,152,51,64,248,0, +0,0,1,219,225,103,129,210,79,73,153,32,100,129,146,55,72,155,34,8,152,102,67,48,0,0,32,128,195,1,12,1, +254,71,249,199,0,30,0,248,22,208,211,98,204,152,48,64,192,0,0,3,0,12,71,243,2,248,27,192,204,196,97,143, +252,48,48,255,195,3,12,12,63,240,0,0,0,0,255,225,12,1,32,68,249,147,224,73,129,182,23,248,192,98,1,152, +6,64,240,0,0,0,128,194,1,9,1,164,70,153,210,32,200,130,36,16,176,192,131,14,24,224,78,0,0,0,0,192, +195,1,255,129,254,64,193,159,224,109,129,54,20,216,211,98,79,152,48,64,192,0,0,2,0,200,1,127,129,254,77,9, +164,32,49,128,150,23,216,223,227,1,152,6,64,112,0,0,1,33,207,129,34,0,136,70,57,176,0,127,1,252,18,48, +205,130,28,25,252,78,56,0,0,0,192,195,1,255,129,254,64,193,223,224,63,128,48,23,248,223,226,12,24,48,64,192, +0,0,0,0,223,225,64,1,68,69,177,211,192,70,1,24,20,240,222,98,80,25,254,71,248,0,1,191,225,192,3,48, +77,249,183,224,200,131,38,60,152,242,98,153,154,196,90,112,0,0,32,192,195,1,30,0,204,70,25,248,34,35,0,184, +19,128,200,3,32,152,198,67,240,0,128,199,1,22,0,204,78,25,191,226,99,1,140,22,32,91,131,96,153,198,99,240, +0,128,214,1,120,0,96,79,249,198,96,16,128,118,19,120,204,98,97,155,6,72,112,0,0,32,128,195,1,44,1,254, +70,25,216,96,127,129,134,22,0,208,2,64,27,0,72,0,0,0,0,128,195,1,127,129,254,64,193,131,0,127,128,120, +17,224,203,194,109,155,50,64,192,0,0,32,128,195,1,127,129,254,64,193,195,0,255,128,112,17,224,207,194,109,155,50, +64,192,0,0,0,128,194,193,9,0,48,79,249,199,0,30,0,232,18,176,210,98,200,154,32,64,128,0,0,32,0,207, +193,33,0,132,67,241,207,192,33,0,132,19,240,200,66,33,27,254,79,248,0,128,195,1,127,129,254,70,9,204,0,51, +0,248,27,128,76,3,48,152,198,65,248,2,0,200,1,127,129,16,78,209,139,224,61,131,182,18,208,203,194,36,24,130, +67,248,0,0,0,1,255,241,1,128,6,71,217,155,96,77,129,54,23,216,216,98,1,152,6,64,240,0,0,1,64,197, +1,255,128,222,67,121,191,224,148,3,218,31,248,205,34,36,153,150,76,64,0,0,0,192,195,1,12,1,254,70,217,211, +32,76,129,254,22,216,83,35,76,153,254,70,24,0,0,33,128,198,1,50,0,140,70,57,255,224,0,1,252,23,240,216, +66,97,25,252,71,240,0,0,0,0,223,225,25,128,102,65,25,221,224,195,0,252,23,248,88,99,97,153,254,71,248,0, +0,0,192,195,1,12,1,254,71,249,195,0,12,1,254,30,24,88,99,97,153,254,71,248,0,0,32,128,194,1,136,0, +63,64,193,194,0,12,1,254,20,24,80,99,65,153,254,71,248,0,0,0,0,207,193,51,0,140,66,49,152,224,64,1, +252,22,24,216,99,97,153,254,70,24,0,0,0,145,210,65,73,1,164,79,253,154,64,73,1,36,20,240,208,2,64,25, +254,67,248,0,0,223,225,65,129,50,68,137,211,32,76,129,122,21,40,220,226,64,153,254,70,24,0,0,3,0,255,195, +35,15,252,63,240,192,195,255,30,196,123,224,111,3,54,24,206,78,8,0,0,32,128,194,1,24,1,254,68,25,208,96, +97,129,254,22,24,208,98,65,153,254,7,248,0,0,33,0,198,65,13,0,76,67,33,253,192,245,130,242,59,136,140,6, +113,155,196,73,240,0,65,253,128,182,2,254,74,249,169,160,180,130,82,57,72,189,34,172,154,38,73,48,0,0,0,0, +252,128,18,0,88,79,97,177,128,132,3,212,51,88,207,34,61,152,254,78,136,0,0,2,16,200,65,33,3,255,70,49, +200,64,33,0,252,26,48,72,67,33,24,252,66,48,0,0,32,192,195,1,63,1,252,64,193,195,0,127,128,96,25,128, +76,195,35,25,254,70,8,0,0,1,1,157,225,199,131,82,77,73,181,32,212,131,82,63,72,189,230,52,17,144,76,64, +0,0,0,1,255,225,95,129,82,69,73,149,32,84,129,94,23,56,216,34,65,153,254,68,8,0,0,0,16,207,225,120, +0,32,64,129,223,224,3,0,12,24,96,67,3,48,25,114,68,248,0,0,0,128,195,1,127,129,2,68,9,128,0,127, +192,48,16,192,195,3,12,24,48,67,128,0,0,0,129,199,1,28,0,200,78,185,179,34,0,1,252,16,48,193,130,60, +24,48,64,96,0,0,34,0,200,1,127,129,134,79,217,223,96,101,129,246,23,248,216,194,96,153,130,67,248,0,0,32, +192,195,1,127,129,182,68,217,219,64,127,1,196,21,176,211,130,206,26,124,75,24,0,0,32,128,195,1,12,1,254,64, +1,200,192,35,0,140,27,32,76,131,54,27,254,79,248,0,0,223,225,97,129,134,71,249,216,0,120,1,236,21,224,214, +2,88,155,98,72,248,0,0,0,128,195,1,12,1,254,64,193,195,0,12,1,254,16,192,67,3,12,25,254,79,248,0, +0,32,0,223,225,97,129,134,71,249,223,224,97,129,134,23,248,88,99,97,153,254,70,24,0,0,0,128,195,1,127,129, +254,65,129,204,192,102,1,240,16,192,198,195,49,153,254,70,8,0,0,0,192,211,97,109,0,188,64,193,159,224,12,0, +48,63,252,195,2,12,24,48,64,192,0,0,0,1,223,225,65,129,134,71,249,209,0,100,1,254,20,64,209,130,70,153, +238,78,24,0,0,2,0,255,195,255,15,252,31,241,255,231,255,140,204,115,121,47,32,252,14,220,7,0,0,0,0,128, +194,1,127,1,254,68,153,146,98,109,131,255,17,192,199,130,50,25,134,76,8,0,0,33,0,199,129,2,1,240,64,193, +195,96,255,0,184,18,224,219,194,205,154,50,67,128,0,0,0,1,255,224,192,15,252,120,48,127,192,48,2,196,127,240, +47,1,182,28,206,71,8,0,0,2,16,204,193,22,31,254,65,9,12,39,177,31,236,11,224,109,3,55,24,198,15,0, +0,0,1,0,196,129,17,1,254,71,249,205,0,53,128,212,18,112,217,131,108,27,122,73,120,0,0,0,192,195,225,15, +128,48,71,249,216,96,97,129,254,22,24,208,2,64,27,0,72,0,0,0,0,17,223,193,96,1,48,68,193,191,226,127, +128,48,18,208,219,98,204,154,50,65,192,0,0,0,0,255,225,208,128,194,67,241,204,0,63,0,252,16,16,255,66,1, +24,12,64,224,0,0,0,128,218,193,73,3,254,79,249,196,0,63,128,196,55,48,243,135,142,24,252,71,24,0,0,0, +1,159,193,35,0,120,65,193,189,226,201,129,252,23,240,195,2,255,152,32,64,128,0,0,0,0,223,193,3,0,24,65, +225,220,224,96,128,254,27,240,67,3,12,24,48,71,248,0,129,131,1,255,128,48,64,193,159,224,127,0,0,23,240,216, +66,97,25,252,71,240,0,0,0,0,255,225,193,129,2,69,233,213,160,82,129,74,29,232,208,35,64,153,254,68,24,0, +0,0,1,159,227,72,129,34,68,201,159,226,72,129,50,53,232,220,226,64,153,254,68,24,0,0,2,17,204,193,51,1, +254,64,193,195,0,127,128,48,16,192,255,242,12,24,48,64,192,0,0,0,9,190,35,102,129,26,71,233,183,162,150,135, +218,35,104,140,38,96,147,2,72,56,0,0,32,192,195,1,127,129,166,70,25,223,224,97,129,134,23,248,88,99,97,153, +254,70,24,0,0,0,0,255,225,30,0,88,71,249,151,160,84,129,94,23,56,208,34,64,153,254,68,8,0,0,2,192, +203,1,127,129,254,76,193,211,0,255,192,216,19,96,205,130,38,217,139,76,56,0,0,0,192,203,1,108,1,254,68,193, +195,0,255,192,120,17,224,207,194,109,155,50,64,192,0,0,33,128,199,193,63,3,248,65,225,223,224,228,129,252,18,192, +91,3,127,152,48,64,192,0,0,33,0,204,1,63,1,204,77,97,199,0,30,3,206,31,248,200,66,33,24,252,67,240, +0,0,0,1,255,225,192,131,250,76,9,247,32,222,131,74,29,104,247,162,208,155,2,76,56,0,0,0,128,223,225,127, +129,252,71,249,155,96,127,129,50,23,248,199,34,23,153,204,76,24,0,0,0,128,199,1,127,128,118,79,249,130,98,127, +0,32,23,248,194,2,255,152,32,64,128,0,0,1,128,196,1,255,128,192,67,17,159,224,225,130,254,18,24,79,227,49, +152,134,66,48,0,0,3,32,204,129,50,1,254,67,49,204,128,50,1,254,31,248,64,3,51,25,134,76,8,0,0,32, +128,194,1,24,1,254,69,89,149,96,85,129,86,21,88,213,98,85,155,254,79,248,1,64,197,129,22,129,222,71,113,141, +128,54,1,220,63,104,205,130,38,25,155,76,56,0,0,0,0,223,225,35,0,132,67,241,200,64,35,0,252,26,16,72, +227,127,152,4,64,16,0,0,2,9,201,33,36,128,146,70,105,191,224,191,130,182,54,72,153,38,68,155,18,72,72,0, +0,4,1,209,224,71,131,210,77,73,181,32,212,130,82,47,72,153,38,119,155,94,72,72,0,0,2,0,200,1,127,129, +254,76,9,191,32,100,129,246,22,88,223,98,97,152,6,64,240,0,0,32,0,223,225,0,0,252,67,241,200,64,63,0, +132,18,16,207,195,0,25,254,79,248,0,16,207,193,44,0,48,71,249,223,224,12,0,48,23,248,216,98,97,153,254,71, +248,0,0,0,192,195,1,127,128,48,64,193,223,224,12,0,48,31,248,67,3,12,27,254,79,248,32,192,195,1,30,0, +204,71,25,255,224,0,0,252,27,240,72,67,33,24,252,67,240,0,0,0,17,223,193,112,1,28,69,225,150,128,90,129, +110,21,176,214,194,217,154,118,73,136,0,0,0,129,195,1,255,128,104,67,49,223,224,64,129,172,22,176,218,194,107,27, +47,72,152,0,0,0,129,194,1,127,128,52,70,145,138,192,44,3,254,17,192,199,2,54,25,142,76,24,0,0,1,0, +197,129,17,1,254,71,129,134,32,127,131,226,16,152,195,194,28,153,250,68,56,0,0,8,129,39,226,185,134,228,56,225, +175,0,176,0,196,127,48,47,3,54,24,206,7,0,0,0,1,1,132,65,127,0,100,64,241,143,162,99,128,4,23,248, +197,130,54,25,154,76,56,0,0,0,128,195,225,15,128,32,71,249,208,96,73,129,38,20,152,210,98,26,25,206,76,8, +0,0,0,128,194,1,12,1,254,68,153,146,98,73,129,254,16,208,194,67,13,155,254,14,8,0,0,0,9,254,161,138, +130,170,74,169,170,160,170,130,170,42,168,170,166,48,153,98,72,184,0,0,0,128,199,1,22,0,140,78,25,239,160,0, +1,252,31,240,204,131,35,25,252,78,24,0,0,0,129,195,1,255,128,200,65,225,135,128,255,129,140,50,48,200,194,35, +25,140,76,48,0,0,0,9,136,35,254,131,250,65,105,181,162,118,129,154,35,104,157,166,88,154,2,72,56,0,0,0, +0,255,225,192,129,98,71,249,140,0,44,1,254,16,192,195,2,255,152,48,64,192,0,0,0,65,147,0,111,128,60,69, +161,248,128,111,129,190,38,32,152,134,114,25,136,68,32,0,0,0,129,194,1,255,131,254,73,201,141,2,37,129,156,62, +96,136,198,33,24,230,70,8,0,0,0,0,223,225,1,129,254,64,25,159,224,3,0,12,31,248,200,194,51,24,12,64, +224,4,17,217,225,108,3,240,70,193,155,240,125,3,244,62,208,155,70,105,25,164,77,16,0,0,1,1,204,129,99,1, +254,66,33,152,194,208,128,252,23,48,253,130,28,24,252,78,56,0,0,0,48,207,193,32,0,128,67,249,200,192,34,0, +136,63,252,192,6,51,25,134,68,8,0,0,0,0,223,225,97,129,134,71,249,223,192,12,1,176,22,248,219,2,124,27, +112,72,248,0,0,0,16,207,129,30,1,204,65,129,191,240,52,1,254,63,248,139,34,45,152,182,64,192,0,0,0,129, +195,1,127,129,2,67,241,207,192,0,1,254,17,96,197,130,54,153,155,76,56,0,0,0,176,195,97,255,128,48,71,249, +223,224,109,129,254,20,216,223,226,77,153,54,68,248,0,0,0,64,203,1,127,129,254,76,193,211,0,255,128,0,31,248, +88,99,97,153,254,71,248,0,0,0,129,131,1,127,1,4,71,241,144,66,97,1,252,20,216,209,194,70,25,238,78,24, +0,0,0,48,223,193,73,1,164,66,177,223,192,7,0,48,31,248,223,226,12,24,48,67,128,0,0,0,1,223,225,24, +1,252,65,177,196,64,255,192,0,23,240,216,98,97,153,254,71,248,0,0,1,0,204,193,97,131,34,65,193,141,128,99, +3,6,23,240,216,66,97,25,252,71,240,0,0,2,0,200,1,127,131,0,15,249,138,98,101,131,255,22,152,211,66,127, +152,12,64,112,0,0,0,1,223,193,63,0,252,71,241,128,0,255,131,2,55,240,204,194,30,24,248,78,56,0,0,33, +0,207,129,62,1,152,79,249,219,32,108,129,254,16,224,199,3,20,153,210,76,120,0,0,0,128,199,1,54,1,142,79, +249,207,128,8,3,254,16,192,218,66,73,155,34,67,128,0,0,32,0,223,225,97,129,254,70,25,223,224,127,128,48,23, +248,195,3,12,24,48,79,248,0,192,219,97,45,0,180,71,249,216,96,97,129,254,22,24,223,226,97,153,134,70,48,0, +0,0,192,203,1,47,128,176,71,249,223,224,44,0,182,22,208,211,194,6,24,240,71,0,0,0,0,16,223,193,22,0, +112,71,249,223,224,109,129,254,20,200,223,226,109,153,54,68,248,0,0,0,9,187,226,106,1,8,68,177,186,224,43,2, +168,62,160,155,230,111,155,224,89,248,0,0,0,129,195,1,255,128,48,71,249,155,96,77,129,254,17,224,207,130,111,27, +54,64,192,0,0,32,0,207,193,33,0,252,64,1,223,224,97,129,254,23,248,216,99,127,153,134,70,56,0,0,0,128, +211,97,127,129,254,64,193,205,128,233,130,50,23,240,207,194,3,24,24,64,64,0,0,2,16,204,193,127,1,254,64,217, +223,224,108,1,254,23,248,199,34,61,155,60,64,192,0,0,0,128,223,225,127,128,252,71,249,159,224,127,128,204,19,248, +218,66,77,27,4,64,112,0,0,1,33,159,225,255,128,200,71,249,159,224,72,128,100,23,240,196,66,49,25,140,76,96, +0,0,0,129,195,1,255,129,36,70,145,138,130,255,129,254,17,224,202,194,201,154,34,64,128,0,0,0,65,167,227,255, +129,40,65,225,247,226,70,1,24,55,248,145,134,70,27,192,89,252,0,0,0,1,255,225,200,131,250,76,137,191,160,200, +131,254,60,248,243,226,200,155,254,79,248,0,0,0,0,223,193,97,1,252,67,241,131,0,255,131,34,29,200,245,162,243, +155,2,76,56,0,0,1,0,207,129,127,3,152,71,249,155,96,109,129,182,31,248,199,2,54,25,142,76,8,0,0,1, +0,199,193,63,1,200,65,193,207,192,233,128,48,31,248,195,66,109,155,50,65,128,0,0,4,1,215,225,32,130,2,75, +233,162,32,136,130,250,56,136,162,38,190,154,2,72,56,0,0,0,1,183,227,65,130,2,75,233,173,162,182,130,250,43, +104,173,166,188,154,2,72,56,0,0,0,129,186,34,41,0,172,78,225,167,226,159,135,168,38,176,138,70,105,145,186,77, +200,0,0,0,0,223,225,8,129,34,69,153,141,192,96,0,48,22,240,219,194,108,25,176,79,248,0,129,195,1,127,128, +140,67,33,141,128,255,128,0,23,240,216,66,97,25,252,71,240,0,0,0,129,195,1,255,129,2,71,241,136,64,63,0, +252,18,0,207,227,33,152,254,67,248,0,0,0,9,254,34,138,131,234,79,169,164,160,250,131,106,61,168,182,167,216,149, +98,81,56,0,0,32,0,223,225,68,1,124,69,249,145,0,127,129,16,52,96,255,226,132,26,24,91,248,0,0,0,129, +131,3,255,128,144,70,209,147,226,221,131,236,52,240,145,134,70,25,62,71,8,0,0,0,1,223,192,6,2,50,72,137, +174,224,158,130,122,63,184,226,34,152,155,254,79,248,0,0,0,1,255,225,200,131,34,79,249,178,32,220,131,250,31,40, +255,162,192,155,254,76,24,0,0,0,0,255,225,28,0,192,79,137,182,224,127,1,180,57,208,141,98,228,154,50,67,128, +0,0,0,128,195,1,127,129,2,68,9,223,224,12,1,176,22,248,219,2,124,27,112,72,248,0,0,2,72,219,65,91, +3,108,70,209,201,32,127,129,254,20,216,223,226,76,153,254,71,248,0,0,66,1,153,226,100,3,208,70,65,153,224,117, +3,244,46,208,251,70,105,17,164,70,144,0,0,0,16,207,129,63,1,196,71,249,191,224,49,1,252,31,240,200,66,63, +24,132,66,112,0,0,2,17,200,193,127,128,140,67,241,140,192,63,0,252,19,48,255,226,50,25,134,76,8,0,0,2, +33,152,131,98,3,254,79,121,152,194,119,3,220,46,248,250,167,106,17,136,70,32,0,0,0,129,211,97,45,0,184,71, +249,159,224,80,129,122,21,40,215,162,92,153,2,68,56,0,0,2,1,153,224,127,129,146,70,73,255,96,39,3,204,42, +176,234,198,39,17,182,78,136,0,0,0,128,195,225,15,128,252,71,249,152,96,127,129,134,23,248,195,2,255,216,48,64, +192,0,0,2,0,216,0,127,131,198,90,9,159,32,80,131,250,53,8,213,162,127,152,6,64,112,0,0,0,128,195,1, +127,129,2,71,249,143,192,0,1,254,16,192,203,66,109,155,50,65,128,0,0,2,1,251,224,170,130,170,78,169,170,160, +170,131,190,58,128,170,6,168,148,162,86,248,0,0,68,17,145,66,77,7,246,78,137,190,160,230,3,216,52,80,145,70, +77,145,62,68,200,0,0,32,0,223,225,77,129,254,68,217,223,224,0,3,254,31,248,204,130,34,25,136,76,32,0,0, +0,128,203,97,105,1,60,65,225,156,224,76,128,166,22,216,211,194,30,25,204,78,24,0,0,4,33,216,193,243,3,222, +68,201,158,32,114,1,76,45,16,180,6,150,22,76,87,0,0,0,32,192,199,1,54,1,134,79,249,207,128,12,1,254, +16,208,203,67,47,24,188,79,248,32,16,223,193,73,129,166,66,209,136,192,127,0,48,23,248,255,226,12,24,48,71,248, +0,128,195,1,127,128,0,67,49,140,192,127,129,48,16,192,255,242,12,24,48,64,192,0,0,1,64,205,129,54,1,254, +70,97,191,224,63,128,152,19,248,201,130,38,24,255,66,0,0,0,0,1,255,225,192,128,218,70,49,146,96,8,3,254, +17,224,143,130,107,27,38,64,128,0,0,0,128,223,225,127,128,252,66,17,143,192,0,1,252,16,224,223,226,127,152,48, +67,128,0,0,0,0,223,193,65,1,252,68,17,159,192,68,1,16,23,248,217,131,68,25,251,79,120,0,0,1,1,198, +1,255,192,200,70,177,191,226,239,129,252,22,240,223,194,127,24,35,64,248,0,0,0,0,223,225,24,0,96,79,249,140, +128,99,3,102,53,208,215,98,218,152,96,67,0,0,0,3,0,44,195,254,6,240,51,97,156,192,4,6,26,127,248,243, +199,223,22,222,58,200,0,0,0,129,223,225,12,1,252,64,193,191,224,127,1,132,23,240,208,66,127,25,4,68,112,0, +0,0,9,242,33,235,131,106,77,233,183,160,255,131,114,61,232,174,230,232,154,34,88,136,0,0,0,1,223,193,3,1, +252,64,49,255,240,12,1,182,18,224,71,131,107,27,34,65,128,0,0,0,128,223,225,12,1,252,64,193,191,224,127,1, +132,20,144,210,66,73,24,252,78,24,0,0,0,129,223,193,63,0,50,71,249,137,96,92,1,176,55,248,159,230,30,24, +206,78,8,0,0,4,1,217,225,252,1,16,70,97,169,224,245,130,214,51,88,191,102,165,152,182,66,152,0,0,0,0, +223,193,65,1,252,64,129,191,224,201,131,254,28,152,255,226,220,152,35,64,248,1,0,207,129,126,1,16,79,249,242,96, +127,129,254,20,152,223,226,0,27,254,79,248,0,129,135,3,255,130,34,7,249,159,226,77,129,254,52,152,223,226,77,152, +32,64,128,0,0,1,128,204,193,127,1,230,79,249,157,192,99,3,102,55,96,199,2,115,24,120,71,0,0,0,1,128, +198,97,127,0,108,71,249,159,224,56,1,254,30,24,207,226,49,152,254,67,248,0,0,0,129,199,1,119,3,142,67,225, +158,32,122,129,234,53,168,158,162,90,153,34,69,184,0,0,32,0,95,228,127,9,132,23,240,216,6,127,144,192,127,248, +63,1,254,28,206,99,8,0,0,0,192,223,225,127,129,100,71,249,214,64,95,3,0,63,248,246,70,142,26,124,91,24, +0,0,32,128,195,1,255,128,120,70,241,242,96,63,0,132,19,240,200,66,63,24,0,79,248,2,33,188,131,250,1,158, +31,249,230,162,242,128,138,39,232,253,166,100,145,178,78,184,0,0,0,1,223,225,65,129,254,68,1,159,224,89,1,254, +23,200,247,226,223,154,16,79,248,0,0,0,0,223,193,97,1,252,70,17,223,192,0,1,254,21,248,213,98,85,155,126, +79,248,0,177,146,193,255,129,44,68,241,144,0,127,128,32,47,248,135,134,62,27,166,72,136,0,0,0,1,223,225,77, +129,254,71,249,223,192,127,1,132,23,240,216,67,127,25,132,70,48,0,0,34,32,204,129,255,128,200,79,249,255,224,99, +1,254,30,40,207,130,32,24,134,67,240,0,0,0,128,195,1,255,131,2,67,241,192,0,127,1,132,23,240,216,66,127, +24,0,79,252,0,0,223,193,97,1,252,71,241,143,192,63,129,254,28,200,215,162,114,152,254,64,56,0,0,4,65,217, +129,255,195,240,68,249,157,224,115,3,76,45,252,164,198,147,30,76,87,112,0,0,0,33,252,131,191,2,250,79,169,174, +160,186,3,202,59,56,172,198,246,26,48,65,128,0,0,0,1,191,226,99,1,140,79,249,188,194,103,129,158,63,48,155, +246,67,27,12,72,48,0,0,0,0,223,225,76,129,254,71,249,144,0,127,129,70,21,248,215,226,223,154,126,73,248,0, +0,0,128,211,97,77,129,254,64,1,191,224,127,128,124,23,248,213,162,86,153,90,69,120,0,0,0,1,255,225,8,1, +254,71,249,213,160,94,129,90,21,232,215,162,86,153,254,68,24,0,0,1,0,204,129,97,131,254,65,177,132,192,103,1, +24,23,248,213,98,85,155,94,79,248,2,17,204,192,255,131,254,65,9,190,160,218,131,234,61,168,190,166,218,155,98,79, +56,0,0,0,9,217,224,100,131,242,70,121,153,32,228,131,222,41,120,167,34,252,155,34,64,184,0,0,2,1,217,224, +100,131,242,79,249,153,96,116,131,246,46,248,249,38,100,153,158,70,88,0,0,2,17,223,225,127,128,252,67,241,143,192, +63,3,254,31,248,210,194,81,25,254,71,248,0,128,199,1,127,129,254,71,249,159,224,63,1,254,16,192,207,194,63,24, +48,79,248,1,33,188,130,34,0,154,79,233,191,224,107,129,204,62,48,169,198,165,152,178,66,136,0,0,0,0,255,225, +22,1,254,69,233,149,160,127,128,48,16,192,223,226,12,24,48,79,248,0,0,2,6,127,141,254,5,121,53,166,20,9, +252,0,16,159,194,96,25,254,96,25,1,192,0,0,0,0,223,225,65,129,254,68,25,223,224,22,0,90,53,104,213,226, +119,24,120,79,248,0,128,223,193,109,129,254,64,193,191,224,127,1,134,22,216,219,99,73,24,252,70,24,0,0,0,65, +253,195,150,7,94,93,225,245,131,215,135,122,61,56,144,198,227,18,223,80,24,0,0,2,1,153,226,247,130,114,31,73, +153,98,247,3,236,47,48,190,199,239,21,150,68,136,0,0,0,1,191,225,145,3,212,79,113,167,194,255,130,8,58,48, +189,194,223,26,38,65,24,0,0,0,192,223,225,127,129,48,69,249,151,224,127,129,126,60,192,255,226,177,154,198,91,248, +0,0,0,0,223,225,68,1,124,69,249,151,224,95,131,126,61,240,181,66,180,158,146,80,192,0,0,0,128,223,193,127, +0,48,79,249,140,192,127,1,254,23,248,215,226,85,155,126,79,248,3,0,187,225,198,131,90,79,73,191,98,129,1,252, +20,216,223,226,127,153,182,71,248,0,0,0,1,255,225,192,129,254,70,17,159,192,97,0,252,16,192,255,226,50,25,140, +76,8,0,0,4,17,136,195,34,3,254,66,65,137,194,193,131,254,39,240,149,70,85,27,254,79,248,0,177,195,97,127, +129,254,70,217,159,224,109,129,254,16,48,255,242,34,24,200,64,224,0,0,0,0,255,225,22,1,254,69,105,149,160,127, +128,32,31,248,199,130,63,27,166,72,136,0,0,0,48,223,193,73,1,164,65,1,159,0,123,1,254,55,200,191,226,127, +152,220,78,24,0,0,9,41,181,226,246,135,250,66,121,171,160,174,131,254,47,248,153,38,68,147,50,72,152,0,0,0, +129,223,224,127,129,252,65,129,191,224,119,3,246,60,136,159,198,30,25,172,68,128,0,0,0,128,223,225,73,129,174,70, +185,155,96,127,128,48,31,248,216,67,62,24,120,79,56,0,0,32,128,223,193,97,1,252,68,17,223,192,97,1,252,16, +240,255,226,28,24,220,78,24,0,0,0,129,195,1,255,129,74,67,49,219,96,30,0,204,30,56,223,194,33,24,252,67, +240,0,0,0,1,255,225,192,131,254,77,137,190,160,220,131,186,61,248,249,34,216,155,254,79,248,0,0,0,1,253,225, +16,129,222,79,113,177,0,255,128,82,21,104,156,226,247,152,66,71,56,0,0,0,0,223,193,127,1,252,71,241,192,0, +127,129,114,21,168,206,226,127,154,114,67,24,0,0,0,1,223,225,95,1,0,71,249,212,224,91,1,102,20,48,255,226, +217,26,36,72,112,0,0,2,33,249,128,173,2,226,77,249,185,128,166,2,254,58,32,186,230,146,146,74,72,224,0,0, +0,192,223,225,127,128,204,71,249,146,32,76,129,254,17,0,199,194,49,25,132,76,112,0,0,0,192,223,225,127,128,252, +70,17,159,192,127,1,132,23,240,223,226,127,152,204,76,8,0,0,2,16,204,193,55,3,254,68,33,149,128,213,131,252, +54,48,152,198,214,159,254,73,136,0,0,2,32,216,192,243,128,112,67,225,184,224,127,0,48,55,248,159,226,105,25,188, +79,248,0,0,0,0,223,193,121,1,164,79,249,191,224,255,129,140,23,240,216,66,127,25,132,70,112,0,0,0,129,223, +225,255,129,34,71,249,140,192,18,3,255,48,192,223,226,127,152,48,64,192,0,0,0,8,223,225,72,129,182,66,209,196, +0,119,129,2,22,24,222,226,64,153,254,71,248,0,0,0,65,237,68,159,18,254,120,129,127,228,179,31,150,123,81,39, +132,191,19,150,217,192,0,0,4,65,221,225,255,130,180,64,241,191,0,27,3,252,33,128,191,230,24,152,98,64,248,0, +129,191,227,255,129,140,77,153,173,162,127,1,244,51,88,249,194,227,24,230,71,8,0,0,0,145,218,65,255,129,188,70, +145,191,224,255,130,34,55,240,146,66,73,25,44,64,128,0,0,4,65,145,195,239,131,228,4,249,186,162,234,129,62,62, +248,250,6,72,17,35,68,248,0,0,0,1,191,227,127,1,140,71,241,152,192,255,129,222,47,248,173,70,99,19,220,88, +200,0,0,3,33,255,225,54,0,200,79,249,133,130,255,131,90,29,104,255,226,237,155,2,76,24,0,0,3,33,255,224, +55,0,200,79,249,176,32,127,0,48,16,192,223,194,11,24,54,79,248,0,129,131,225,8,3,254,77,137,191,128,217,131, +60,60,64,173,98,186,159,231,80,240,0,0,0,33,189,131,247,131,240,79,225,190,194,48,129,252,63,240,181,70,213,27, +214,95,248,0,0,2,6,62,15,254,7,113,21,230,214,136,80,0,192,191,227,30,8,188,108,153,34,0,0,0,0,129, +195,1,127,129,14,71,241,136,0,63,128,152,50,96,191,230,50,25,142,76,8,0,0,0,65,129,65,233,0,254,67,145, +234,192,239,129,164,38,248,187,230,169,22,62,64,248,0,0,0,129,255,225,102,0,152,79,249,178,96,255,131,38,61,216, +253,98,253,155,70,76,48,0,0,0,128,195,193,88,131,254,79,233,178,32,199,3,252,29,80,247,194,191,154,16,89,192, +0,0,0,1,255,225,30,1,254,69,105,159,224,0,1,254,16,0,223,226,109,25,54,73,136,0,0,32,128,223,225,127, +128,252,76,153,135,0,54,3,166,18,144,203,130,62,27,36,65,128,0,0,0,129,159,227,255,131,88,15,249,181,162,255, +131,136,62,40,175,194,162,30,251,83,184,0,0,4,1,255,224,193,131,254,76,1,191,224,196,3,254,47,104,187,102,182, +158,178,82,88,0,0,0,129,159,225,127,129,126,69,217,156,226,127,128,48,23,248,212,162,126,153,2,68,56,0,0,0, +128,255,224,255,131,6,71,241,159,192,127,129,254,55,248,223,226,127,25,140,76,24,0,0,1,65,255,225,30,1,254,69, +105,159,224,95,129,254,23,240,216,98,127,153,134,71,248,0,0,1,33,159,225,55,0,252,71,249,159,224,97,129,254,48, +128,191,226,30,24,204,78,24,0,0,2,33,136,131,255,129,156,15,121,234,162,50,3,254,63,248,152,134,124,16,124,78, +24,0,0,4,65,145,1,239,131,240,76,249,185,224,242,131,232,59,184,171,134,174,22,252,87,56,0,0,0,33,255,226, +207,131,20,93,137,159,224,127,131,186,63,232,158,166,126,145,2,76,56,0,0,0,1,216,65,127,1,252,64,1,159,226, +86,129,254,23,240,220,194,62,24,248,79,56,0,0,3,33,255,225,51,0,104,71,249,159,224,99,3,206,19,32,255,242, +50,24,136,68,32,0,0,0,0,223,225,77,129,254,71,249,159,192,126,1,244,19,248,223,226,45,25,54,77,136,0,0, +2,1,153,2,255,129,158,79,233,174,160,242,3,200,39,48,191,199,229,21,178,70,136,0,0,0,128,223,225,51,1,254, +71,249,207,224,97,129,254,23,248,195,3,127,152,48,64,192,0,0,0,129,223,225,77,129,254,64,193,255,224,204,131,254, +16,128,199,66,245,154,206,65,224,2,33,141,129,127,129,252,64,193,191,224,28,0,248,51,216,187,194,46,27,46,73,136, +0,0,3,33,191,227,54,1,254,79,249,164,34,126,0,228,39,248,155,38,107,17,36,73,136,0,0,2,33,191,226,42, +3,252,65,145,191,224,25,1,252,56,152,170,230,171,155,174,72,152,0,0,2,33,152,131,119,130,126,95,89,131,194,75, +3,204,43,48,172,198,63,27,150,0,136,0,0,4,65,147,194,201,2,254,95,177,222,194,79,131,172,62,248,131,230,123, +23,62,64,248,0,0,0,48,255,193,105,0,172,79,249,143,128,105,131,254,23,240,219,66,127,25,180,71,240,0,0,34, +32,253,225,119,131,222,71,49,221,224,220,129,252,23,240,223,194,127,25,252,71,240,0,0,0,65,253,130,183,130,246,79, +241,152,192,103,3,246,46,248,187,38,236,151,254,88,248,0,0,3,32,223,225,127,128,216,79,249,131,0,127,129,254,22, +216,223,226,54,25,204,76,24,0,0,0,129,159,227,127,129,202,71,57,191,226,227,128,252,19,240,195,2,111,27,54,73, +136,0,0,0,0,255,225,127,129,126,71,249,159,192,127,129,254,22,24,223,226,255,155,254,64,128,0,0,2,9,153,226, +252,129,154,79,249,167,160,252,131,254,47,120,189,38,252,152,178,66,152,0,0,2,33,254,160,74,129,28,79,249,155,224, +104,131,254,44,136,211,230,72,145,34,68,152,0,0,2,65,185,34,223,131,20,95,249,159,224,108,3,254,63,136,155,230, +109,145,190,76,248,0,0,2,33,189,227,119,129,220,14,249,170,162,35,1,252,23,240,216,66,127,25,4,68,112,0,0, +4,1,255,225,255,131,254,77,241,183,224,198,3,48,63,248,164,66,255,158,68,83,48,0,0,0,128,223,225,51,3,254, +79,249,159,192,77,129,254,23,248,195,2,127,152,48,79,252,0,64,221,193,22,129,206,71,241,176,112,127,1,132,23,240, +207,194,50,24,216,79,248,0,0,2,33,156,131,251,129,94,79,233,163,160,255,131,76,47,48,180,198,243,26,94,75,200, +0,0,0,33,188,130,54,7,255,15,121,189,98,255,130,76,47,48,164,198,251,18,94,65,72,0,0,73,25,165,195,254, +3,80,79,97,181,224,245,131,214,47,88,255,102,213,146,118,88,152,0,0,66,1,152,98,249,129,158,79,121,188,98,253, +131,254,47,56,164,102,209,147,230,72,48,0,0,2,1,254,97,115,3,248,71,137,190,96,203,3,248,53,136,150,38,81, +19,252,76,96,0,0,0,1,151,227,32,130,50,75,233,175,162,186,130,250,59,232,167,38,170,146,34,72,56,0,0,0, +1,207,193,35,0,248,71,121,245,224,247,129,254,55,248,191,230,62,27,166,72,136,0,0,1,65,223,225,87,129,254,71, +249,135,130,255,128,0,23,240,223,194,50,24,216,79,248,0,128,223,193,127,129,106,69,201,159,224,94,129,162,48,128,255, +226,28,24,220,78,24,0,0,0,129,255,225,127,129,254,69,249,151,224,127,129,252,55,240,159,198,97,24,252,79,248,2, +1,207,129,102,3,254,93,177,157,32,127,129,124,53,240,151,194,223,154,70,73,248,0,0,6,33,189,130,246,3,223,73, +201,191,32,111,135,236,44,48,156,198,211,18,94,83,200,0,0,0,129,191,226,255,130,104,79,249,167,128,191,131,254,41, +248,175,231,187,23,238,81,160,0,0,0,65,185,66,173,2,190,79,145,175,224,175,131,164,42,248,171,198,233,18,62,64, +192,0,0,2,33,153,227,245,128,148,15,121,173,34,183,131,222,54,104,189,166,226,26,158,66,200,0,0,2,1,171,226, +178,2,158,14,201,127,162,238,131,250,63,104,141,166,35,19,22,88,136,0,0,32,128,223,193,127,1,252,71,241,207,192, +127,129,254,23,248,192,2,255,152,136,78,32,0,0,0,128,223,225,63,0,252,67,241,223,224,254,128,252,19,152,199,194, +111,25,218,68,192,0,0,0,0,223,225,255,130,50,70,241,155,192,8,3,254,55,240,191,230,212,155,82,77,120,0,0, +4,161,150,161,223,131,254,76,145,247,224,198,3,126,60,96,191,242,206,27,108,79,24,0,0,0,0,221,225,82,128,206, +71,121,141,32,127,129,254,31,248,217,2,127,153,176,71,248,0,0,32,0,223,225,127,129,6,71,241,255,224,54,3,254, +54,176,250,226,62,25,252,77,152,0,0,4,33,145,131,231,1,54,95,137,239,227,244,134,182,46,72,179,103,254,145,18, +68,216,0,0,0,129,255,226,255,1,252,79,241,191,192,211,3,254,61,248,190,231,219,149,115,85,72,0,0,2,1,207, +224,245,131,76,71,49,155,96,148,3,222,51,64,157,194,247,152,240,95,248,4,145,158,195,255,129,236,79,249,150,66,127, +1,252,55,248,159,230,255,153,152,76,24,0,0,64,129,143,3,227,130,250,64,1,191,224,255,128,0,47,248,181,98,255, +155,86,77,120,0,0,1,32,255,225,50,1,222,69,73,157,224,36,1,254,30,96,217,130,127,153,152,71,248,0,0,0, +1,255,225,242,6,94,15,73,253,224,7,131,218,41,104,189,166,243,21,218,76,200,0,0,0,1,159,195,255,131,174,70, +177,134,0,255,131,210,47,120,191,166,247,151,242,70,88,0,0,0,17,166,67,223,131,102,95,185,135,161,127,1,252,36, +16,159,198,255,152,6,64,240,0,0,3,0,12,0,48,4,198,51,16,204,198,50,1,192,7,128,50,1,142,12,30,96, +24,0,0,0,0,214,194,73,153,54,68,200,0,0,0,1,255,224,48,0,192,19,16,76,195,50,8,200,7,128,19,0, +198,14,14,96,24,0,0,16,0,79,225,31,149,8,92,33,96,133,2,4,8,56,32,240,130,66,24,24,65,224,0,0, +8,0,48,7,255,130,0,24,128,98,65,233,5,172,53,192,135,6,50,17,140,12,24,0,0,0,0,255,192,3,15,252, +0,48,255,192,48,4,196,51,48,156,128,108,7,28,112,56,0,0,16,64,65,1,4,21,16,95,249,111,229,4,12,16, +48,64,225,2,196,25,254,67,248,0,0,4,0,63,1,252,28,96,7,192,241,231,49,132,204,51,32,159,128,204,15,28, +112,56,0,0,16,128,70,1,24,149,126,95,9,104,37,24,140,50,48,72,224,98,193,153,6,64,112,0,0,2,0,12, +7,255,159,254,67,8,12,1,51,12,200,35,32,30,0,204,14,28,96,24,0,0,16,64,65,1,4,23,146,90,73,105, +39,36,140,146,50,72,233,34,164,152,254,64,24,0,0,16,0,79,193,6,23,48,91,137,111,231,26,140,90,50,72,251, +34,153,152,198,66,112,0,0,0,0,255,195,3,15,252,48,48,255,192,48,4,196,51,32,159,128,204,14,28,112,24,0, +0,16,64,65,1,22,21,254,95,9,108,37,63,140,198,51,0,236,2,224,25,128,68,0,0,0,17,128,70,1,31,149, +126,91,89,105,5,12,12,48,48,224,226,130,219,24,198,70,8,0,0,3,0,76,193,34,9,240,12,224,224,198,49,4, +204,51,32,159,0,200,14,28,112,56,0,0,16,64,65,1,5,21,86,91,73,109,39,36,12,22,48,80,224,194,198,24, +240,71,0,0,0,16,128,66,1,63,29,252,88,145,98,69,63,141,254,48,192,231,130,147,25,206,68,24,0,0,16,128, +195,3,63,159,254,120,1,231,195,19,12,76,49,48,236,194,179,89,143,68,56,0,0,16,64,65,1,63,213,16,90,73, +105,39,36,140,146,51,248,227,226,196,152,19,64,120,0,0,3,0,31,193,231,28,216,25,192,60,7,240,20,204,19,32, +159,128,76,7,28,112,24,0,0,16,192,67,1,127,151,48,91,241,79,199,12,13,254,48,200,227,34,204,152,54,64,192, +0,0,0,192,195,3,30,30,204,126,25,255,227,51,12,204,51,48,237,134,176,144,198,65,240,0,0,16,64,193,3,63, +159,254,120,129,230,67,51,12,248,48,64,226,66,153,152,254,67,8,0,0,16,0,79,225,48,29,192,95,249,108,101,49, +132,198,51,248,236,2,240,24,254,67,248,0,0,3,0,140,67,255,3,192,12,1,255,225,136,5,100,53,144,151,132,60, +1,156,28,24,0,0,17,128,70,1,31,151,194,95,201,79,167,54,140,218,51,248,236,226,240,152,194,65,248,0,0,16, +0,207,227,32,159,186,126,233,234,167,42,140,170,50,168,235,162,224,152,130,66,56,0,0,6,0,51,131,255,15,204,31, +224,192,131,2,7,248,19,16,204,194,122,7,56,112,56,0,0,16,0,223,227,4,31,48,123,249,233,35,36,140,186,50, +184,238,226,224,152,130,66,56,0,0,16,64,65,1,6,21,254,92,65,97,5,6,12,254,48,96,225,2,196,24,254,67, +248,0,0,17,0,68,1,31,149,254,90,193,123,229,15,140,48,48,248,227,226,204,24,48,64,192,0,0,3,0,15,192, +63,128,192,63,240,255,195,3,12,12,63,240,0,2,73,25,38,68,200,0,0,17,0,108,7,254,31,248,6,96,63,192, +195,6,14,127,249,129,35,87,137,70,36,112,0,0,16,0,95,241,24,21,96,89,129,100,3,63,140,194,55,8,228,34, +208,152,126,65,24,0,0,0,128,198,3,127,158,64,127,193,207,3,44,9,254,48,64,205,70,229,145,18,65,192,0,0, +16,0,79,225,49,149,198,95,25,108,101,63,140,124,48,0,228,194,209,152,198,66,8,0,0,16,16,207,195,44,31,150, +122,81,237,71,12,13,255,48,192,225,6,132,24,48,65,192,0,0,0,16,207,195,48,30,144,122,65,239,227,63,140,16, +49,80,237,102,164,145,146,65,192,0,0,17,16,196,67,27,31,254,123,249,224,7,0,12,124,48,0,224,2,128,25,254, +67,248,16,0,79,225,3,23,24,88,225,110,231,96,140,254,51,240,225,2,132,24,56,71,248,0,0,0,1,252,97,133, +143,214,50,89,201,96,229,131,6,120,121,128,194,73,25,38,68,200,0,0,17,16,70,65,11,21,254,88,97,97,133,63, +132,16,48,96,239,242,196,24,16,64,64,0,0,17,32,68,193,19,23,254,89,177,100,195,19,12,254,55,248,224,2,147, +24,198,70,8,0,0,17,128,71,193,63,151,204,89,225,99,131,59,141,130,51,240,232,66,161,24,252,67,16,0,0,16, +64,193,3,12,31,254,122,89,233,99,37,140,254,48,192,225,70,133,153,254,71,136,0,0,16,0,79,225,36,151,146,94, +201,111,231,44,140,178,50,168,238,226,241,152,254,66,24,0,0,16,128,195,35,63,159,44,127,249,239,227,31,141,254,53, +0,231,226,129,152,4,64,240,0,0,16,0,79,225,4,29,254,91,25,109,101,53,140,214,51,88,239,98,206,24,102,70, +8,0,0,17,0,70,33,63,159,38,120,241,231,167,51,140,4,55,248,230,130,146,16,203,70,56,0,0,17,0,197,163, +55,159,220,127,225,207,167,55,140,16,48,192,255,230,132,24,16,64,64,0,0,16,64,195,3,30,30,204,127,25,255,231, +0,12,254,51,240,230,134,145,24,254,67,136,0,0,32,32,223,128,28,25,254,1,120,77,35,109,152,108,19,0,76,194, +122,7,56,112,56,0,0,1,0,207,227,48,159,194,123,249,204,135,35,12,188,58,120,184,38,88,152,56,64,48,0,0, +16,128,66,7,255,12,108,16,145,254,71,25,4,252,54,28,128,34,73,25,38,68,200,0,0,2,16,207,195,31,31,230, +121,129,223,226,52,9,254,55,248,201,34,164,144,150,64,64,0,0,16,192,195,3,127,159,130,123,249,199,195,0,13,255, +49,160,228,130,146,24,203,68,56,0,0,3,1,255,224,0,7,248,31,224,0,3,255,0,112,3,0,60,2,73,9,38, +100,200,0,0,16,128,199,195,63,31,236,120,225,199,195,101,140,254,48,192,239,194,204,26,254,64,64,0,0,0,1,255, +225,48,4,252,27,1,255,225,128,7,252,31,248,127,226,165,154,86,72,48,0,0,16,0,207,227,49,159,254,123,25,239, +231,63,140,254,48,64,255,242,140,24,16,64,64,0,0,16,0,95,225,8,23,252,89,145,102,71,127,204,0,51,248,236, +98,225,152,254,67,248,0,0,0,64,195,131,27,31,246,122,73,207,195,3,12,24,51,240,239,198,161,24,252,67,240,0, +0,16,128,199,195,63,31,216,123,241,233,71,37,12,246,55,248,227,2,158,24,206,70,8,0,0,32,0,139,226,48,155, +2,124,201,208,34,90,137,238,38,184,219,167,204,145,2,68,56,0,0,2,0,255,224,96,7,252,127,248,113,129,255,141, +152,98,96,3,2,73,25,38,68,200,0,0,32,64,195,3,127,158,68,121,49,196,195,127,136,0,51,248,200,102,161,144, +254,67,248,0,0,16,64,97,135,255,142,60,61,249,109,161,134,0,192,19,48,140,130,120,7,56,112,56,0,0,9,0, +102,3,255,140,96,127,241,198,1,255,4,96,31,248,127,226,73,25,38,68,200,0,0,16,64,195,227,15,159,254,127,249, +232,103,63,140,134,51,248,195,2,255,216,48,64,192,0,0,16,128,198,3,31,31,204,126,33,242,135,55,140,130,50,24, +238,226,224,152,254,67,248,0,0,1,0,76,65,51,9,232,12,193,224,229,132,134,26,93,121,101,193,207,9,102,67,8, +0,0,24,64,121,227,230,143,254,110,97,241,129,142,6,108,115,24,8,34,73,25,38,68,200,0,0,33,80,157,194,69, +31,212,127,209,210,34,127,137,254,36,88,221,199,227,17,30,68,200,0,0,0,64,195,3,127,159,130,121,241,224,3,63, +140,198,51,248,236,98,191,16,0,71,248,0,0,16,128,199,3,63,159,254,123,249,239,231,63,13,254,48,192,239,198,191, +24,48,71,248,0,0,24,96,51,135,255,129,4,62,144,250,66,105,15,164,38,16,185,194,9,9,38,100,200,0,0,16, +0,79,225,33,149,254,90,25,111,229,12,12,254,51,248,228,66,211,24,108,71,248,0,0,16,64,243,6,207,159,102,127, +144,25,199,230,1,156,127,217,244,34,73,25,38,68,200,0,0,17,16,204,99,63,158,68,121,241,228,67,31,12,16,55, +248,227,134,159,16,214,66,72,0,0,1,1,230,70,191,155,194,127,217,173,102,189,158,246,120,48,1,194,73,25,38,68, +200,0,0,0,1,255,230,200,155,102,127,49,191,198,241,155,198,123,249,0,66,73,25,38,68,200,0,0,16,0,207,227, +45,159,254,122,73,239,227,0,13,255,51,64,233,226,163,24,252,67,152,0,0,6,0,255,192,102,31,254,127,248,127,135, +131,7,252,24,48,127,194,9,25,38,68,136,0,0,16,0,223,195,127,28,48,63,248,207,131,233,136,34,19,48,204,130, +124,7,56,112,56,0,0,34,40,137,226,54,159,250,115,121,201,162,118,137,254,37,248,215,39,252,145,242,64,152,0,0, +32,64,203,131,63,158,130,123,249,200,3,63,136,254,55,104,223,231,246,145,90,69,24,0,0,0,0,211,227,40,158,190, +120,137,251,227,40,8,174,50,144,203,227,184,155,192,68,248,0,0,32,192,139,2,127,155,6,127,249,208,2,127,137,122, +53,216,211,103,255,147,50,73,152,0,0,16,64,71,193,53,149,254,91,25,111,231,49,140,254,48,192,245,2,112,153,71, +69,240,0,0,16,128,211,199,236,24,162,126,249,154,6,111,31,160,102,136,179,226,1,9,38,68,136,0,0,0,96,254, +7,255,128,192,63,240,173,66,253,15,252,63,240,12,7,255,137,36,100,152,0,0,16,64,193,131,127,159,130,121,49,203, +99,14,12,108,55,252,239,226,177,24,196,67,240,0,0,32,0,159,226,98,155,234,127,233,219,226,69,8,254,50,88,207, +231,173,146,254,67,248,0,0,0,1,251,228,136,151,162,82,249,90,5,200,18,35,126,248,0,2,91,25,38,68,200,0, +0,24,65,249,3,223,25,188,62,209,247,65,205,31,188,25,156,204,34,9,9,38,100,200,0,0,32,0,159,226,74,154, +170,123,185,219,162,12,8,252,50,24,207,230,161,144,254,67,248,0,0,62,17,136,71,255,159,132,126,209,249,69,225,2, +156,19,16,204,194,122,7,56,112,56,0,0,24,65,251,1,143,159,230,27,145,249,193,230,13,152,103,249,52,34,9,25, +38,100,136,0,0,0,0,204,67,63,30,196,121,241,255,227,106,136,254,51,240,204,195,159,26,120,71,56,0,0,32,128, +223,227,127,158,72,121,249,223,227,90,137,206,55,232,244,166,222,145,66,68,24,0,0,3,1,255,227,255,7,248,31,240, +127,192,204,31,254,63,240,192,65,255,9,36,100,152,0,0,34,48,206,227,187,159,190,125,177,252,194,51,12,158,54,204, +242,6,85,145,106,77,172,0,0,32,64,207,227,63,158,234,123,49,255,227,115,136,252,51,240,227,6,173,17,182,65,192, +0,0,16,48,207,195,21,31,124,127,249,231,131,53,141,146,51,248,239,98,191,152,246,67,248,0,0,12,129,255,224,204, +3,224,16,33,222,225,75,13,42,119,184,64,66,73,25,38,68,200,0,0,8,96,105,165,213,150,88,28,241,150,100,150, +134,26,93,121,101,193,207,13,102,67,8,0,0,32,128,159,226,109,159,122,125,233,223,226,94,137,130,32,200,223,231,156, +16,204,78,24,0,0,33,224,143,194,51,26,124,127,185,215,162,127,136,48,55,248,223,231,159,17,182,68,200,0,0,32, +128,147,66,95,158,190,120,201,255,194,103,9,236,54,120,222,231,230,17,216,72,248,0,0,34,16,140,199,183,157,254,39, +176,220,199,223,145,242,63,224,255,192,204,3,240,124,248,0,0,0,1,247,231,76,135,92,125,176,235,230,154,4,208,19, +48,204,130,120,7,56,112,56,0,0,35,240,152,98,127,155,134,123,241,223,226,18,9,254,50,80,223,103,158,17,252,69, +200,0,0,32,48,159,194,41,31,252,127,249,223,226,121,9,102,39,248,222,103,211,147,228,78,176,0,0,63,240,222,195, +123,13,236,127,249,97,37,222,139,212,127,248,97,135,181,135,240,120,56,0,0,0,0,15,195,242,12,200,51,32,204,195, +51,12,204,35,16,140,70,49,152,194,67,8,0,0,2,0,251,231,239,159,170,126,169,251,231,168,30,162,122,137,111,229, +152,22,56,88,120,0,0,0,48,255,129,51,6,72,63,240,48,7,255,135,0,15,224,121,131,60,24,248,94,120,0,0, +0,48,255,193,34,6,216,127,249,16,35,255,3,0,15,224,121,131,60,25,248,76,56,0,0,0,241,255,129,50,15,252, +100,153,255,227,193,9,254,63,248,250,66,205,27,140,122,112,0,0,8,64,33,129,131,12,14,104,88,33,0,204,1,224, +7,128,30,0,252,14,30,96,24,0,0,12,192,97,199,199,129,240,15,193,243,231,3,143,252,6,48,24,192,110,1,184, +6,0,0,0,8,64,97,135,207,129,224,15,193,225,231,255,143,252,51,48,255,195,0,4,2,31,248,8,64,225,198,121, +131,240,126,120,63,3,216,1,240,61,248,56,193,190,1,224,60,0,0,0,0,32,225,128,252,3,240,124,112,128,193,134, +3,48,7,128,30,0,252,31,60,96,56,0,0,3,0,12,7,255,130,196,59,112,237,192,53,14,220,55,241,187,32,204, +14,28,96,24,0,0,0,64,97,129,134,6,24,31,224,1,128,6,31,248,12,96,33,129,134,14,24,48,96,0,0,0, +128,198,3,24,12,96,63,248,192,3,0,15,248,63,224,129,134,6,24,24,64,96,0,0,8,25,167,230,144,26,64,127, +249,135,102,25,158,86,105,113,45,196,183,19,190,79,136,0,0,8,65,167,230,191,154,210,127,249,137,38,63,158,40,107, +33,63,228,131,18,8,72,32,0,0,16,65,111,197,159,30,58,127,249,133,230,46,30,216,75,249,47,228,138,18,102,202, +8,0,0,16,145,107,69,255,150,180,122,241,136,4,63,158,48,95,249,39,132,159,19,182,204,200,0,0,0,65,239,231, +160,158,254,123,121,143,230,47,158,254,75,233,47,228,255,147,106,77,56,0,0,0,0,255,224,4,4,16,48,64,195,131, +255,128,112,7,64,49,3,132,28,16,1,192,0,0,3,0,76,3,48,15,254,99,1,12,0,48,31,254,3,0,12,0, +48,0,192,3,0,0,0,25,1,230,5,152,31,102,89,185,103,129,152,31,96,121,128,102,1,152,134,98,24,248,0,0, +6,0,49,1,134,15,252,50,16,76,3,255,12,192,3,1,255,224,48,0,192,3,0,0,0,16,65,225,5,132,31,16, +91,249,111,225,132,15,16,248,64,97,1,132,6,254,27,248,0,0,2,0,12,7,255,144,66,27,0,127,195,255,8,192, +3,1,255,224,48,0,192,3,0,0,0,16,17,67,197,60,31,32,80,249,79,1,136,14,62,119,224,66,1,8,132,50, +16,248,0,0,16,129,70,5,24,31,254,91,27,92,65,27,7,40,120,224,67,129,14,4,238,22,24,0,0,17,1,68, +5,31,159,254,94,187,90,161,154,143,90,115,72,75,33,9,132,102,17,112,0,0,9,32,100,195,63,157,224,112,200,65, +225,51,7,248,63,240,140,7,255,128,192,3,0,0,0,16,65,65,5,4,31,254,89,251,65,1,4,7,254,123,24,76, +97,49,132,254,19,24,0,0,16,65,69,5,52,31,254,91,251,89,1,4,7,254,249,248,65,1,4,4,24,19,248,0, +0,3,0,255,224,120,7,56,56,49,255,229,48,143,252,127,240,12,7,255,128,192,3,0,0,0,16,65,67,133,63,158, +16,83,249,79,225,1,15,254,121,48,68,65,25,4,12,16,112,0,0,16,1,95,229,10,30,120,119,251,90,161,106,143, +238,247,56,88,33,96,133,254,22,8,0,0,16,1,79,229,8,30,252,113,147,70,65,127,206,0,115,248,76,97,33,132, +254,19,248,0,0,16,65,77,5,63,158,254,86,67,75,129,63,143,0,123,248,76,97,49,132,254,19,248,0,0,0,0, +255,226,1,143,254,44,144,146,130,251,11,34,47,241,246,7,255,147,254,64,128,0,0,14,9,227,103,237,159,182,60,217, +168,97,131,6,192,63,241,140,7,255,128,192,3,0,0,0,16,65,79,229,63,158,56,115,187,76,33,127,206,4,115,208, +73,65,61,4,196,16,112,0,0,16,65,79,197,31,30,50,115,251,69,97,44,14,208,115,248,79,225,14,4,230,22,8, +0,0,16,1,79,229,33,158,254,82,27,79,225,33,143,254,115,24,95,241,18,4,198,22,8,0,0,16,33,95,229,38, +158,190,118,107,95,225,54,15,254,118,96,91,225,98,5,248,28,248,0,0,16,65,203,135,63,158,130,115,250,72,1,63, +143,254,119,104,95,225,118,133,90,21,24,0,0,16,193,67,5,127,158,252,83,19,79,193,0,15,254,118,8,95,161,114, +133,250,22,24,0,0,1,241,252,71,255,26,252,122,217,47,224,143,142,254,27,0,255,198,48,31,254,1,0,0,0,3, +0,13,128,51,0,192,127,249,255,224,48,1,224,4,192,51,1,134,28,14,96,24,0,0,0,0,216,1,192,7,0,116, +1,24,0,224,7,128,54,1,152,0,96,3,0,28,0,0,0,72,1,239,227,191,140,198,123,24,108,97,183,142,220,107, +1,44,0,176,198,194,113,248,0,0,1,1,230,3,24,29,248,87,240,100,193,147,14,76,123,49,108,193,35,197,143,116, +56,0,0,0,1,175,227,12,12,16,120,64,99,1,255,206,16,120,65,97,1,132,6,16,112,64,0,0,24,128,99,69, +141,158,48,63,248,127,225,140,14,48,121,225,100,129,179,7,134,28,8,0,0,0,65,225,3,63,156,254,114,0,104,1, +160,14,128,122,1,120,1,96,13,0,124,0,0,0,0,1,255,195,3,12,196,114,48,72,193,191,142,206,120,9,127,161, +1,132,6,112,112,0,0,0,129,230,195,25,29,254,87,248,102,1,156,14,80,121,65,109,1,164,135,154,116,120,0,0, +72,129,230,3,26,28,204,82,24,127,225,150,142,88,121,97,109,129,182,197,154,124,56,0,0,0,1,239,227,191,142,16, +120,64,97,1,191,142,56,104,65,33,0,132,7,254,55,248,0,17,239,227,9,140,38,112,152,70,65,191,14,100,121,145, +100,65,17,5,254,119,248,0,0,72,193,227,3,12,28,178,82,216,107,65,239,14,56,121,225,102,129,179,5,134,118,8, +0,0,0,1,239,227,33,140,150,114,88,73,97,165,142,182,122,217,106,97,26,4,198,118,8,0,0,1,1,228,3,63, +140,134,119,216,125,97,181,142,246,123,249,108,193,48,132,194,113,248,0,0,0,1,239,227,44,156,146,83,248,111,225,164, +142,182,123,249,105,33,132,4,16,112,64,0,0,0,25,239,195,45,12,180,114,208,107,65,173,14,180,122,153,122,161,202, +135,122,117,136,0,0,65,33,197,131,127,156,122,113,232,95,227,86,13,122,87,248,69,161,54,141,158,116,96,0,0,73, +1,236,3,63,156,254,86,8,127,33,164,142,146,123,89,111,97,161,132,6,112,112,0,0,0,1,239,195,49,28,196,91, +240,111,193,177,14,196,107,241,108,65,177,7,254,55,248,0,193,225,3,127,157,130,86,8,96,1,255,142,16,120,65,97, +1,4,4,16,113,192,0,0,0,1,255,195,33,12,252,115,240,104,65,191,14,160,122,217,105,129,167,5,238,119,8,0, +0,0,193,225,3,127,156,76,81,48,108,97,243,142,72,121,225,99,1,142,4,236,118,24,0,0,0,81,225,227,6,157, +254,80,96,109,161,183,143,236,123,49,104,193,167,5,191,112,152,0,0,0,193,227,3,127,141,130,116,40,65,129,255,142, +8,123,33,102,129,2,4,8,112,224,0,0,0,193,227,3,12,13,254,118,216,91,97,237,143,254,120,209,99,65,13,133, +254,119,8,0,0,72,65,227,3,127,156,182,82,216,111,65,189,15,254,120,193,103,129,147,5,198,118,8,0,0,0,1, +207,227,114,29,206,247,248,222,163,106,157,170,114,168,74,161,107,141,8,104,32,0,0,0,65,227,3,30,28,204,94,24, +127,225,128,14,254,123,249,102,129,177,5,254,119,8,0,0,1,1,231,131,62,29,152,87,248,99,99,255,143,254,120,217, +111,225,8,4,32,115,128,0,0,0,33,216,227,34,156,8,114,248,120,195,35,12,140,114,112,77,65,53,141,178,96,136, +0,0,80,33,252,131,50,24,140,118,248,219,163,122,159,170,118,172,88,129,98,13,136,108,224,0,0,0,129,227,3,30, +28,204,95,248,79,131,12,15,254,120,193,75,65,109,143,50,113,128,0,0,2,1,249,131,63,140,152,114,96,95,161,227, +142,48,120,193,127,225,12,7,254,119,248,0,0,72,1,239,227,49,156,254,80,0,111,225,191,142,254,123,249,108,97,191, +132,130,114,56,0,0,0,1,255,227,109,141,182,119,248,91,97,255,142,48,120,193,127,225,12,5,254,119,248,0,0,0, +129,227,3,127,157,254,83,240,111,193,191,14,252,123,241,111,225,161,132,134,115,248,0,0,0,129,230,131,51,13,254,113, +32,76,97,232,142,124,123,49,124,193,14,4,252,118,24,0,0,0,193,235,3,63,140,134,115,248,72,97,177,142,252,122, +73,105,193,35,4,230,119,8,0,0,0,9,254,35,50,156,202,87,168,94,163,50,140,234,119,41,124,161,48,132,194,115, +56,0,0,0,193,227,3,30,28,204,215,248,119,131,128,14,182,90,80,73,193,2,13,254,119,248,0,1,239,227,33,156, +134,83,184,104,33,225,142,254,121,97,101,129,54,5,155,124,56,0,0,1,33,228,195,63,156,76,81,176,127,225,128,14, +254,123,25,111,225,177,132,254,115,248,0,0,0,1,239,227,45,140,254,114,216,111,225,140,15,254,127,249,103,129,61,15, +182,112,192,0,0,0,65,249,2,47,152,186,255,168,240,131,207,159,170,114,168,78,163,58,140,136,110,96,0,0,0,1, +239,227,33,140,254,114,24,111,225,128,15,254,126,9,127,225,225,133,254,119,248,0,0,0,65,239,227,63,156,56,83,184, +120,99,255,206,4,123,209,105,65,61,4,132,112,112,0,0,64,1,239,195,6,28,48,87,248,67,3,28,12,96,87,248, +85,97,85,133,254,127,248,0,0,72,65,255,227,12,28,252,87,248,127,225,191,14,198,123,249,108,97,191,132,134,114,48, +0,0,0,129,227,3,127,156,64,83,32,108,195,255,143,16,120,193,127,241,12,12,48,112,192,0,0,72,193,227,3,51, +29,206,93,232,99,1,255,142,48,123,240,111,225,33,132,254,115,248,0,0,0,1,255,227,42,140,170,115,248,70,1,159, +142,198,127,145,99,129,14,4,224,118,0,0,0,2,41,201,227,36,159,242,114,120,73,163,116,141,254,85,248,87,33,124, +141,242,96,216,0,0,0,1,239,227,45,156,254,82,72,111,225,128,15,255,123,65,105,225,163,4,252,115,152,0,0,72, +1,239,227,33,156,254,82,24,111,225,172,15,254,124,192,111,193,63,4,48,119,248,0,0,64,129,231,35,63,156,44,87, +248,127,225,152,15,254,127,25,103,225,17,132,126,113,248,0,0,1,33,228,195,127,156,204,81,48,100,193,255,143,178,127, +249,127,225,236,133,254,119,248,0,0,0,1,255,227,109,157,254,87,248,111,225,191,14,132,123,241,104,65,191,4,132,114, +48,0,0,8,32,96,231,242,134,8,127,249,29,133,118,31,220,91,113,253,197,181,146,246,71,136,0,0,0,1,239,195, +30,28,122,87,248,101,97,236,14,48,127,249,127,225,31,7,182,116,200,0,0,2,1,203,195,33,29,190,126,248,122,3, +111,141,200,87,248,95,225,103,13,182,103,136,0,0,34,32,216,231,242,135,8,127,253,125,133,118,25,220,67,113,253,68, +61,159,226,67,136,0,0,64,1,239,227,36,156,182,115,248,79,227,127,141,254,119,248,87,225,95,135,102,121,248,0,0, +0,193,227,3,127,140,120,115,216,123,33,191,14,132,123,241,72,65,63,4,0,119,248,0,0,0,1,239,195,57,12,180, +119,248,95,227,255,140,132,115,241,72,65,63,12,132,98,48,0,0,72,193,239,227,12,29,254,80,0,111,225,161,142,254, +121,200,125,225,243,4,246,115,136,0,0,0,193,239,227,19,28,76,87,248,111,193,161,14,252,122,17,111,193,150,4,218, +126,56,0,0,64,129,239,227,51,29,254,87,248,111,225,161,142,254,123,249,99,1,255,132,48,112,192,0,0,24,65,251, +3,207,134,100,126,240,241,195,125,155,82,3,97,255,224,120,7,56,112,56,0,0,16,1,223,230,64,25,88,101,248,223, +227,127,157,244,119,208,255,67,147,142,74,106,72,0,0,64,129,230,3,127,157,202,115,48,127,227,255,140,140,83,240,67, +1,45,5,182,113,192,0,0,4,1,221,230,210,155,202,239,216,250,67,255,31,254,126,208,127,227,171,14,164,105,144,0, +0,18,33,217,230,245,152,148,127,248,239,35,189,159,254,118,104,221,163,226,14,158,98,200,0,0,0,49,255,131,127,156, +48,87,248,87,163,127,140,48,119,249,127,225,127,133,86,125,168,0,0,1,33,255,227,19,29,254,84,232,127,227,180,15, +254,127,97,109,129,63,132,152,115,248,0,0,2,0,12,7,255,159,254,12,0,33,131,156,15,224,3,32,48,193,135,15, +254,0,8,3,1,255,231,255,153,164,63,176,12,3,111,27,246,3,1,255,224,48,0,192,3,0,0,0,127,248,12,0, +48,0,192,3,0,255,192,48,0,216,3,48,12,71,255,159,254,127,248,12,0,48,0,192,3,0,255,192,48,0,192,3, +0,12,7,255,159,254,127,248,207,227,2,12,8,120,32,192,131,2,12,8,60,33,224,132,6,0,120,0,0,0,1,247, +195,19,4,76,17,49,244,195,19,4,76,19,48,252,199,163,209,143,4,24,0,0,0,129,230,7,159,12,124,51,33,232, +135,230,12,24,48,224,230,207,153,1,198,6,8,0,0,0,1,239,195,3,12,196,51,49,236,195,63,140,206,48,8,255, +167,129,144,6,0,112,0,0,0,129,227,3,4,13,255,51,17,236,67,19,12,104,48,224,227,7,158,16,206,6,24,0, +0,0,33,230,195,19,12,196,51,25,248,99,63,140,36,49,144,246,79,17,0,204,6,112,0,0,0,1,247,227,16,132, +66,49,249,244,99,16,132,126,31,249,252,36,32,129,130,12,56,0,0,123,249,224,3,0,12,0,127,249,239,227,18,12, +72,61,35,236,160,98,195,14,0,0,1,129,230,7,152,12,255,51,17,252,199,219,12,104,48,224,243,15,158,1,206,6, +24,0,0,0,65,225,3,63,140,48,49,241,239,227,4,12,254,48,200,225,39,132,144,22,0,64,0,0,127,248,195,130, +12,8,48,121,224,207,194,61,137,178,56,193,195,0,12,0,48,0,0,0,1,239,227,33,140,150,50,89,233,99,45,140, +182,48,192,243,7,156,144,218,6,56,0,0,0,65,227,3,30,12,76,55,153,249,35,4,12,252,48,48,225,135,28,0, +48,0,96,0,0,1,65,237,227,38,137,152,38,121,255,227,166,8,136,34,32,232,142,34,192,142,2,24,0,0,0,193, +243,3,12,12,63,48,193,227,3,12,12,254,50,24,232,103,161,144,254,3,248,0,0,8,0,127,195,255,154,196,27,96, +204,192,96,15,252,3,0,255,192,54,0,216,127,248,0,65,225,3,127,141,182,54,89,251,67,127,141,196,55,176,243,135, +206,3,126,11,24,0,0,0,65,227,3,12,12,254,50,25,232,99,33,140,254,50,24,232,103,161,144,254,3,24,0,0, +127,252,192,99,1,140,246,122,89,233,99,37,140,246,50,25,224,102,1,128,28,0,0,2,1,200,2,39,139,250,39,233, +219,162,110,137,186,36,232,215,167,95,131,126,11,104,0,0,0,1,239,227,33,140,134,51,249,233,3,38,12,254,50,96, +233,135,162,145,238,7,24,0,0,5,51,223,230,95,137,126,37,249,223,230,255,201,126,37,216,151,103,93,129,118,13,216, +0,0,0,65,227,3,30,12,206,54,77,226,3,50,12,24,49,216,236,71,134,16,112,3,0,0,0,127,248,195,1,4, +4,16,48,65,255,225,12,4,20,16,88,241,38,63,128,254,0,65,225,3,63,140,254,48,65,225,3,127,140,48,49,128, +228,199,177,145,254,6,8,0,0,1,129,230,195,25,13,254,55,249,229,131,23,140,92,51,112,233,135,110,1,250,13,56, +0,0,1,33,228,195,19,9,254,35,49,228,195,19,9,254,39,248,224,7,147,16,198,6,8,0,0,0,129,231,199,191, +12,204,52,225,227,135,159,13,198,55,248,252,71,177,0,252,3,240,0,0,0,65,237,3,60,12,254,54,65,225,3,127, +140,56,49,224,231,199,181,145,147,0,64,0,0,0,1,255,243,49,12,196,51,241,236,71,177,12,252,51,16,237,231,255, +144,4,0,16,0,0,1,33,229,131,86,137,222,35,113,229,131,22,8,220,39,104,229,135,182,145,154,12,56,0,0,1, +3,237,227,96,9,64,35,121,239,227,97,9,132,34,16,232,71,161,0,132,2,112,0,0,1,1,231,227,27,9,76,37, +48,212,199,223,137,76,33,48,132,195,179,57,190,4,248,0,0,0,1,255,227,64,137,98,35,249,197,3,52,8,254,32, +64,227,135,127,128,16,0,64,0,0,0,65,225,99,63,137,254,32,193,233,99,55,8,56,33,224,239,199,229,145,50,1, +192,0,0,0,193,227,3,63,140,134,51,249,232,99,49,140,252,50,72,233,199,35,0,230,7,8,0,0,0,1,239,227, +36,140,254,51,249,233,35,63,140,48,48,192,255,231,132,17,254,7,248,0,129,227,3,127,140,104,51,17,255,227,0,140, +188,50,240,235,199,175,17,181,12,152,0,0,0,3,255,230,22,137,90,37,121,255,198,126,136,218,39,104,149,167,215,130, +88,3,96,0,0,0,67,247,230,127,136,40,32,161,255,230,98,8,136,35,248,136,135,98,3,200,8,248,0,0,0,65, +233,99,53,12,116,51,249,232,99,45,140,182,50,216,235,103,174,16,206,6,8,0,0,0,1,255,227,96,137,254,39,249, +249,131,127,201,152,38,96,255,231,208,147,70,9,248,0,0,0,1,255,227,64,137,106,35,17,248,99,12,9,254,33,224, +231,199,45,131,50,0,192,0,0,127,248,199,2,24,9,230,124,240,207,194,117,9,118,57,233,249,52,68,0,112,0,0, +0,129,227,227,12,9,254,38,201,255,195,108,137,158,38,224,242,135,218,19,106,11,56,0,0,0,65,239,227,63,136,56, +35,185,232,99,127,200,4,35,208,233,71,189,16,132,0,112,0,0,0,1,239,227,33,140,254,50,25,239,231,160,12,152, +51,248,201,135,230,17,250,7,56,0,0,1,17,228,67,127,136,204,33,241,228,195,31,8,124,35,48,255,231,147,16,198, +6,8,0,0,0,193,227,131,127,137,130,35,57,239,227,110,137,122,35,232,229,231,182,16,154,4,56,0,0,0,193,227, +3,127,141,130,51,249,231,195,0,13,254,48,192,233,71,229,145,18,1,192,0,0,0,65,235,99,45,9,180,33,225,252, +227,12,136,178,34,216,251,199,158,16,204,6,24,0,0,2,33,200,131,34,11,254,39,113,204,194,127,9,190,46,121,234, +172,186,0,136,2,32,0,0,0,1,247,225,134,31,62,24,97,255,224,120,7,184,113,56,255,128,6,0,48,1,128,0, +0,0,1,255,225,6,31,126,24,97,255,226,24,8,96,63,248,135,2,24,159,226,120,248,0,0,0,1,255,225,134,31, +62,24,97,255,227,255,15,252,51,16,255,194,0,140,6,31,248,0,0,0,65,227,131,63,140,0,51,249,232,99,33,140, +254,48,64,237,71,229,145,146,1,192,0,0,0,1,255,227,110,141,130,55,233,232,35,63,140,198,51,248,236,103,63,128, +198,3,248,0,0,0,129,227,3,127,137,130,35,241,224,3,63,8,196,35,240,236,71,191,16,0,7,248,0,3,255,226, +88,137,98,39,249,208,2,71,137,214,36,88,220,199,99,1,30,4,200,0,0,0,49,223,199,169,8,172,39,249,196,7, +255,136,192,35,240,238,199,110,1,60,11,152,0,0,2,73,235,103,203,9,172,34,89,233,39,12,9,254,38,40,251,47, +126,129,206,7,248,0,0,2,9,201,226,36,139,242,34,121,201,162,100,137,222,37,120,245,39,252,129,242,0,152,0,0, +1,1,239,231,255,136,76,32,193,239,231,165,136,182,39,252,227,143,154,0,204,14,24,0,0,0,65,231,3,51,11,206, +35,241,222,35,122,137,234,39,168,158,167,106,145,34,5,184,0,0,0,65,251,35,108,137,254,32,1,223,227,12,8,254, +39,248,218,167,234,145,170,6,184,0,0,0,1,255,225,6,31,126,24,96,255,231,102,1,216,45,224,182,70,241,143,26, +127,192,0,0,0,193,239,227,127,137,16,39,249,255,227,111,137,254,36,64,247,231,209,147,70,9,248,0,0,0,65,227, +3,127,137,182,39,249,251,99,127,136,124,32,208,231,231,183,145,146,4,120,0,0,0,17,255,195,41,136,180,34,17,207, +227,108,9,48,39,248,227,39,108,129,254,3,248,0,0,0,49,223,199,173,136,188,39,249,212,39,127,136,64,35,240,238, +71,110,1,60,15,184,0,0,1,17,255,227,17,12,124,48,193,239,227,63,140,48,55,248,227,7,63,144,48,7,248,0, +65,233,39,44,136,254,34,65,207,231,127,139,254,35,248,239,231,191,128,254,3,248,0,0,0,193,239,231,127,137,186,39, +169,219,39,122,137,254,32,192,229,79,80,129,78,1,224,0,129,255,231,127,136,190,34,217,206,231,63,136,48,39,248,250, +175,126,129,194,6,56,0,0,0,67,201,6,255,203,240,36,201,221,230,114,137,120,37,248,247,135,158,2,252,15,184,0, +0,0,193,239,227,19,9,254,35,249,239,227,33,136,254,35,248,227,7,255,144,48,0,64,0,0,0,1,255,227,109,137, +182,38,233,236,195,127,136,50,39,248,236,199,190,16,124,7,24,0,0,0,35,253,230,215,139,94,47,241,200,198,35,11, +242,46,248,249,39,244,131,222,0,120,0,0,1,33,239,227,63,136,108,39,249,227,3,127,137,254,38,216,255,231,147,16, +204,6,8,0,0,1,161,255,227,63,9,254,33,49,207,227,127,136,254,32,192,223,231,30,16,236,6,24,0,0,0,1, +239,227,63,136,134,35,241,255,227,127,136,252,34,16,239,199,173,1,182,5,200,0,0,0,65,247,230,73,31,60,125,249, +223,231,127,135,8,63,248,12,3,255,0,200,127,248,2,3,207,226,121,139,124,47,49,205,230,232,8,188,39,248,223,231, +62,3,182,0,200,0,0,0,129,227,227,108,137,254,37,233,211,35,71,9,254,37,200,243,199,247,2,106,10,224,0,0, +16,0,158,195,251,9,228,63,240,190,71,255,144,2,63,240,12,3,255,0,216,127,248,4,81,255,226,55,9,254,37,49, +245,114,4,9,254,38,152,219,103,8,0,236,14,24,0,0,0,32,255,195,178,12,136,50,32,200,131,35,12,140,34,176, +154,70,109,155,246,68,72,0,0,6,33,250,135,239,159,232,126,33,239,231,167,22,156,91,217,86,37,88,23,188,82,56, +0,0,16,0,231,231,253,11,84,127,81,229,71,213,159,210,33,73,245,160,84,131,254,58,88,0,0,0,25,255,227,223, +31,188,106,241,251,227,220,143,114,127,73,245,231,213,151,255,49,88,0,0,32,128,158,71,255,149,170,86,169,218,231,239, +201,164,126,184,255,226,249,27,244,74,208,0,0,16,25,251,230,107,31,172,126,176,242,167,234,159,186,127,200,253,166,213, +143,223,33,80,0,0,127,248,112,0,128,3,240,31,224,97,129,230,4,216,17,96,193,179,246,143,30,0,0,8,64,97, +135,99,147,54,31,224,127,135,255,159,254,24,64,127,131,118,140,218,63,56,0,1,255,228,8,17,32,116,241,114,68,205, +19,52,92,177,222,198,25,95,253,125,152,0,0,24,0,111,227,216,9,160,115,240,38,67,221,15,116,13,240,164,195,145, +6,125,11,152,0,0,4,0,159,226,216,31,160,44,240,182,66,217,31,244,45,240,182,198,209,19,126,79,152,0,0,3, +1,207,225,109,131,52,123,225,152,231,255,159,254,31,192,121,129,52,12,90,62,120,0,0,16,0,103,231,236,9,32,36, +241,250,71,237,0,52,126,177,154,198,105,31,253,127,152,0,0,12,65,229,39,215,159,220,60,225,78,97,48,159,254,24, +64,127,129,54,12,218,63,120,0,0,0,3,255,243,140,31,160,122,241,42,71,237,4,52,124,177,246,193,25,95,253,65, +156,0,0,8,65,255,224,132,15,252,52,176,255,199,255,151,250,31,224,63,1,164,4,82,63,120,0,0,8,17,253,135, +240,31,140,98,192,216,103,254,28,32,127,248,127,1,230,12,218,62,120,0,0,36,0,183,231,236,21,160,126,241,106,71, +237,15,52,100,177,246,198,89,95,247,37,152,0,0,32,97,247,231,201,24,126,124,97,151,231,198,31,254,24,0,127,129, +38,12,219,63,120,0,0,16,32,97,129,134,31,254,24,96,97,129,134,7,248,24,96,97,129,134,7,248,24,96,0,0, +0,80,1,103,255,136,176,35,65,255,7,244,8,208,63,96,141,130,50,207,206,35,24,0,0,24,33,255,199,255,135,248, +31,224,127,129,134,31,254,127,248,201,3,66,15,252,63,240,13,17,230,97,25,132,255,125,152,230,97,25,159,126,125,153, +22,100,89,159,126,69,152,0,0,19,0,76,3,48,15,254,99,1,12,0,48,15,252,3,0,12,0,48,31,254,127,248, +0,1,79,229,36,159,254,82,72,79,231,204,6,54,19,248,114,39,216,144,198,6,112,0,0,63,240,204,98,49,143,254, +63,248,140,99,49,143,254,35,25,140,102,49,144,220,0,0,0,0,255,194,49,12,196,63,240,140,67,255,15,252,35,17, +141,198,48,144,194,65,248,0,0,3,64,12,199,255,128,192,63,240,255,194,49,15,252,35,16,255,195,49,8,196,35,112, +0,0,0,0,255,192,140,1,224,63,240,140,66,49,15,252,35,16,255,194,49,8,196,35,112,0,0,0,1,255,224,124, +14,204,99,8,255,194,49,15,252,51,16,255,195,255,24,196,66,112,0,0,3,1,255,230,49,135,76,60,80,159,3,255, +12,204,63,240,204,195,255,12,204,51,112,0,0,127,249,140,102,49,152,198,99,25,255,230,49,152,198,99,25,140,103,255, +152,6,0,0,3,0,12,0,48,31,254,99,25,140,102,49,159,254,99,25,140,102,49,159,254,96,24,0,0,63,240,140, +66,49,15,252,63,240,140,67,255,15,252,35,16,12,0,48,0,192,0,0,3,0,12,7,255,152,198,99,25,255,230,49, +152,198,127,249,140,96,48,0,192,3,0,0,0,3,0,12,3,255,15,252,35,16,255,195,255,8,196,63,240,255,192,48, +192,198,1,248,0,0,255,194,49,15,252,51,48,204,195,255,0,128,127,240,24,64,193,14,12,112,224,0,0,8,0,96, +1,255,140,6,112,9,255,37,109,135,246,22,216,91,97,253,132,4,0,240,0,0,124,249,255,229,99,21,140,126,49,248, +197,99,21,140,86,49,248,196,3,0,56,0,0,127,248,0,0,0,3,240,107,89,191,102,181,154,214,111,217,128,103,255, +143,254,0,0,25,16,76,194,102,12,152,25,144,102,67,255,8,196,63,240,255,194,49,15,252,63,240,0,0,0,0,255, +194,51,15,252,51,48,255,193,255,31,254,127,248,33,1,132,12,16,96,64,0,0,16,0,79,199,199,29,48,85,201,255, +229,74,159,106,127,104,73,33,9,132,102,19,48,0,0,0,25,247,229,208,21,64,85,249,247,101,89,149,86,85,113,253, +199,183,16,190,3,136,0,0,0,129,242,7,216,21,127,87,153,254,69,107,21,44,84,225,241,135,206,16,238,3,8,0, +0,0,0,255,195,51,15,252,51,48,255,192,252,6,24,124,121,49,32,132,6,16,48,64,0,0,0,65,241,71,197,149, +16,87,249,243,135,206,21,56,84,225,246,199,217,16,198,6,8,0,0,0,0,255,195,51,15,252,51,48,255,192,0,31, +254,19,16,71,193,12,7,156,60,24,0,0,0,65,253,39,213,149,84,85,241,255,231,196,21,16,87,249,241,7,132,16, +16,0,64,0,0,12,1,231,230,13,155,54,108,153,254,224,19,15,252,51,48,255,195,51,12,204,63,240,0,0,4,0, +51,3,255,15,236,6,1,255,225,134,15,254,115,56,127,193,51,7,252,31,240,0,0,0,65,243,135,203,21,198,86,77, +243,7,216,21,24,84,201,244,103,199,16,112,3,0,0,0,3,1,255,231,255,135,112,63,0,48,199,255,136,0,63,240, +204,195,255,12,204,63,240,0,0,0,129,243,69,95,149,228,86,241,241,133,79,21,199,87,249,244,100,17,144,126,1,248, +0,0,0,65,241,7,223,149,24,84,97,255,229,196,21,16,85,249,241,135,196,16,254,3,248,0,32,255,129,50,6,216, +127,248,63,1,182,28,206,127,240,76,193,255,4,204,31,240,0,0,0,0,12,0,120,15,252,99,24,255,193,182,12,204, +102,16,255,195,51,15,252,51,48,255,192,0,0,3,0,62,7,207,155,242,63,240,109,131,51,9,196,63,240,204,195,255, +12,204,63,240,0,0,0,65,239,231,191,150,126,91,249,255,231,255,150,100,89,249,238,71,237,17,4,0,112,0,0,0, +65,239,231,206,23,60,95,153,255,231,255,151,118,95,89,253,103,189,144,6,0,112,0,0,0,65,239,231,255,151,130,91, +185,239,231,238,151,170,93,169,230,231,146,16,203,6,56,0,0,18,32,205,7,191,30,252,63,249,247,167,255,128,100,127, +177,251,135,236,159,250,99,56,0,0,0,65,239,231,191,150,108,95,249,239,231,181,150,254,91,249,227,135,191,144,16,7, +248,0,1,239,224,159,30,246,123,89,7,199,255,138,124,123,216,175,231,191,130,124,63,248,127,248,255,224,49,0,204,19, +0,79,195,48,12,192,59,0,188,6,120,16,254,0,0,0,65,241,128,255,134,36,81,145,111,229,208,20,84,81,81,117, +71,245,56,149,6,88,0,0,64,1,247,230,11,25,184,60,48,135,231,198,148,90,125,120,229,225,158,9,248,66,120,0, +0,1,128,103,1,255,148,0,112,0,64,3,0,28,0,80,0,192,2,0,24,0,64,0,0,0,1,128,6,1,255,212, +0,112,0,255,225,4,12,16,112,64,193,2,4,24,48,97,192,0,0,1,0,6,1,255,148,0,112,17,223,225,17,140, +70,113,24,196,99,23,8,64,97,0,0,0,1,128,6,1,255,148,0,119,240,223,227,6,28,48,240,192,195,2,12,24, +48,67,128,0,0,1,128,71,1,255,148,128,119,249,216,1,192,13,252,240,192,204,2,96,153,130,71,248,0,0,1,128, +70,1,255,148,64,115,0,207,131,102,13,24,112,224,199,131,59,9,198,108,8,0,0,1,128,70,1,255,148,0,112,128, +194,1,73,141,38,244,152,210,98,73,153,62,71,248,0,0,1,0,6,1,255,148,0,115,240,207,227,32,29,128,255,248, +200,2,32,24,254,67,248,0,0,1,128,6,1,255,148,0,119,248,206,1,16,12,124,243,16,204,66,33,25,132,76,112, +0,0,1,128,70,1,255,212,0,119,224,195,1,120,141,254,115,72,217,34,201,152,102,67,112,0,0,1,128,6,1,255, +148,32,113,177,198,65,255,140,96,241,192,199,2,60,153,178,76,120,0,0,1,0,70,1,255,148,0,119,248,210,99,73, +157,254,247,248,208,2,64,153,134,67,248,0,0,1,0,70,1,255,148,32,113,192,205,131,227,157,138,243,32,204,130,34, +25,136,76,32,0,0,1,128,70,1,255,148,152,115,224,200,129,99,141,4,119,240,216,194,62,24,248,78,120,0,0,1, +128,127,225,255,148,0,119,249,209,1,77,13,126,244,152,210,98,217,154,68,90,112,0,0,1,0,70,1,255,148,32,113, +193,221,195,255,157,252,242,32,203,130,32,152,134,67,240,0,0,1,0,127,225,255,149,12,119,241,209,65,117,29,116,245, +144,247,66,245,26,134,72,8,0,0,1,128,71,1,255,148,32,112,192,255,225,8,12,32,119,240,195,2,8,24,112,79, +248,0,0,1,128,127,225,255,148,128,119,249,208,97,253,141,150,247,216,223,194,99,153,130,67,248,0,0,1,128,127,227, +255,156,32,119,249,211,99,77,13,252,245,48,182,130,204,26,124,95,24,0,0,1,128,70,1,255,148,132,118,48,255,227, +99,28,140,243,240,200,194,35,24,252,67,240,0,0,1,0,70,1,255,148,0,127,249,192,193,121,13,244,244,208,223,66, +121,24,4,64,112,0,0,1,128,127,225,255,148,64,115,96,221,163,255,143,252,127,96,253,130,246,155,250,78,56,0,0, +1,128,70,1,255,148,0,119,240,216,65,99,13,252,118,16,223,194,0,24,0,79,248,0,0,1,128,127,225,255,148,96, +115,225,216,193,217,140,200,240,192,206,98,103,24,112,71,0,0,0,1,128,70,1,255,148,64,115,241,220,129,222,12,120, +255,56,199,34,4,24,240,64,96,0,0,1,0,6,1,255,148,0,115,240,216,193,99,29,252,118,16,223,194,99,25,140, +79,248,0,0,1,128,70,1,255,148,128,115,240,223,225,76,13,48,119,248,195,2,30,25,204,108,24,0,0,1,0,127, +227,255,157,0,118,121,255,35,92,157,114,245,200,149,34,215,154,222,75,72,0,0,1,0,70,1,255,148,32,119,249,223, +225,50,13,152,247,192,198,194,49,25,254,68,8,0,0,1,0,70,1,255,148,192,115,249,223,225,72,15,62,240,128,195, +226,15,152,32,64,128,0,0,1,128,6,1,255,148,0,127,249,195,1,127,141,254,116,200,215,162,115,153,2,68,56,0, +0,1,128,70,1,255,212,0,119,249,195,1,12,13,188,118,248,219,2,108,27,254,79,248,0,0,1,128,70,1,255,148, +0,119,248,211,33,127,141,254,116,216,223,226,77,155,50,72,248,0,0,1,128,127,227,255,157,248,119,241,195,131,63,31, +134,247,240,223,194,8,24,112,79,248,0,0,1,0,127,225,255,148,96,113,225,216,195,193,141,252,240,128,223,194,8,24, +48,79,248,0,0,1,128,127,227,255,157,254,119,249,223,227,9,157,254,253,136,191,226,29,153,220,76,24,0,0,1,128, +127,225,255,148,140,115,32,223,227,12,29,252,247,240,195,2,255,152,32,64,128,0,0,1,128,127,225,255,148,48,119,248, +195,3,255,156,12,119,248,223,226,98,24,200,64,224,0,0,1,128,71,1,255,149,0,119,241,216,195,127,13,140,247,240, +211,98,70,25,252,78,24,0,0,1,128,6,1,255,148,0,127,248,197,129,86,141,94,245,112,221,195,22,11,254,96,0, +0,0,1,0,70,1,255,148,0,119,249,192,1,127,13,132,247,240,207,194,34,24,216,79,248,0,0,1,0,127,227,255, +157,252,115,113,199,3,127,157,38,247,248,146,98,127,153,38,68,184,0,0,1,128,127,225,255,148,0,119,249,199,129,127, +143,34,240,128,223,226,97,153,134,71,248,0,0,1,0,70,3,255,156,66,127,9,201,163,254,157,218,247,104,155,162,160, +152,130,66,56,0,0,1,128,71,1,255,148,32,119,249,195,1,12,13,254,112,128,203,66,224,154,206,67,224,0,0,1, +0,70,1,255,148,32,118,144,218,193,123,158,122,240,192,223,226,8,24,48,95,248,0,0,1,128,127,225,255,151,254,113, +128,223,193,51,15,254,127,248,223,226,65,153,134,71,248,0,0,1,128,127,225,255,157,24,118,112,199,227,214,157,90,112, +112,208,66,67,27,56,73,128,0,0,1,128,127,227,255,156,216,127,249,200,131,255,158,34,225,144,159,194,17,24,196,76, +96,0,0,1,128,127,227,255,156,200,115,225,217,131,255,157,54,244,216,191,226,28,25,220,76,24,0,0,1,0,127,227, +255,157,126,119,249,194,35,140,158,250,105,200,191,162,234,154,34,72,56,0,0,1,128,70,1,255,148,32,118,153,215,193, +55,15,166,240,128,215,66,158,25,220,76,24,0,0,1,0,127,227,255,156,80,115,97,221,227,22,31,222,113,96,253,226, +247,152,88,65,96,0,0,1,0,127,227,255,157,0,119,248,253,163,164,159,242,255,200,141,34,118,155,62,72,72,0,0, +1,128,70,1,255,148,48,119,248,223,225,77,141,254,240,0,255,226,34,25,136,76,32,0,0,1,128,127,225,255,149,252, +119,249,210,33,127,141,34,245,232,212,162,94,153,254,68,24,0,0,1,128,127,227,255,157,252,112,129,255,227,63,31,38, +115,128,191,226,114,24,248,79,56,0,0,1,128,127,227,255,157,140,114,48,255,195,68,157,234,229,48,148,66,214,26,76, +91,16,0,0,1,0,127,225,255,148,32,127,249,200,131,34,29,222,244,200,255,226,12,24,32,64,128,0,0,1,0,127, +227,255,157,254,119,249,220,99,219,29,248,254,240,135,66,101,155,50,65,128,0,0,1,0,70,1,255,148,200,119,240,223, +225,127,141,54,119,248,195,2,255,152,48,64,128,0,0,1,128,127,227,255,157,188,116,17,215,227,223,159,126,245,224,151, +226,71,25,60,69,152,0,0,1,0,255,227,49,156,130,127,169,156,162,250,154,170,239,168,156,162,232,150,130,66,56,0, +0,1,0,127,227,255,156,160,126,249,242,99,251,159,38,255,248,135,2,28,25,204,76,24,0,0,1,128,127,227,255,159, +222,125,24,244,99,247,143,2,239,248,161,98,243,26,28,72,200,0,0,1,0,127,227,255,156,48,119,249,202,195,255,140, +216,254,152,159,194,127,24,48,95,248,0,0,1,128,127,227,255,157,36,119,249,223,227,107,158,98,127,248,191,226,118,24, +248,79,56,0,0,1,0,127,227,0,31,252,118,177,207,131,127,31,38,247,240,147,66,127,24,62,79,248,0,0,1,0, +127,227,255,157,158,127,121,253,163,100,159,246,230,176,138,66,173,158,138,67,224,0,0,1,128,127,225,255,157,252,116,16, +223,195,65,29,252,247,240,255,226,213,155,86,95,252,0,0,1,0,127,227,255,157,172,115,241,253,99,39,31,254,246,48, +159,194,127,25,12,68,112,0,0,1,0,127,227,255,156,156,127,113,245,67,252,159,254,127,120,189,98,179,26,76,83,200, +0,0,1,128,127,227,255,157,222,116,121,213,163,253,159,52,247,240,146,98,127,153,38,71,248,0,0,1,0,127,227,115, +28,200,127,249,198,3,127,31,254,255,248,143,194,110,31,16,71,248,0,0,1,128,127,225,255,157,172,124,152,250,227,201, +159,254,247,240,159,194,55,24,248,79,120,0,0,1,0,127,227,99,31,254,127,249,199,3,62,31,254,243,224,159,194,65, +25,140,71,240,0,0,1,128,127,225,24,29,252,119,248,208,99,127,157,254,113,192,249,226,126,25,132,71,240,0,0,1, +128,127,227,255,156,44,126,248,206,195,187,31,190,102,176,155,226,187,30,62,64,128,0,0,1,0,127,227,255,157,254,113, +97,223,227,95,140,0,247,248,159,226,255,153,38,73,136,0,0,1,128,127,227,255,157,254,116,217,223,227,127,157,248,247, +208,191,226,232,153,44,73,136,0,0,1,0,127,227,24,31,254,117,72,220,227,220,156,248,253,152,153,130,57,25,56,79, +128,0,0,1,0,127,227,255,157,254,115,49,255,227,127,29,132,247,240,159,194,12,27,254,64,128,0,0,1,0,127,227, +255,157,144,127,249,237,195,115,29,254,252,8,159,194,73,27,38,73,136,0,0,1,128,127,227,255,157,222,127,200,213,227, +183,159,252,237,216,191,226,201,155,254,72,56,0,0,1,0,127,227,54,31,254,115,97,223,195,65,29,252,231,240,134,2, +255,152,216,78,56,0,0,1,128,255,227,4,31,188,122,241,239,226,192,154,190,234,248,169,134,250,146,102,72,240,0,0, +1,0,127,227,255,159,222,121,72,237,163,246,157,220,233,72,191,226,98,24,248,79,184,0,0,1,128,127,227,255,157,252, +115,97,255,227,12,29,254,247,248,147,98,127,24,220,76,24,0,0,1,128,127,227,255,159,156,122,249,237,195,239,154,254, +234,160,175,226,239,26,8,73,248,0,0,1,128,127,227,255,156,252,114,49,207,195,247,143,82,255,120,130,2,200,155,54, +79,248,0,0,1,0,127,227,255,159,174,127,249,215,67,85,31,254,228,152,146,66,125,26,94,64,56,0,0,1,0,255, +227,24,27,252,98,33,255,226,127,25,12,231,240,159,198,169,22,142,83,232,0,0,1,128,127,227,255,157,200,127,120,245, +99,245,31,62,239,48,181,226,223,159,204,68,48,0,0,1,0,127,227,255,159,220,121,249,255,99,180,159,242,107,120,191, +226,251,29,44,84,200,0,0,1,128,255,227,99,29,142,127,121,191,226,255,154,214,239,88,157,226,254,150,142,66,72,0, +0,1,0,127,227,255,153,146,111,73,237,227,243,27,222,239,48,191,226,7,155,204,64,48,0,0,1,128,127,227,255,159, +254,118,48,253,227,244,159,218,111,104,189,163,254,155,78,89,200,0,0,1,0,127,227,255,159,222,127,120,253,227,247,157, +48,239,240,255,194,127,25,48,71,248,0,0,1,32,247,128,76,143,30,24,113,255,228,48,128,192,127,248,14,0,110,7, +14,112,24,0,0,1,1,255,128,204,142,28,31,241,128,101,254,132,24,16,96,127,128,132,3,48,127,248,2,0,8,3, +255,15,252,32,16,128,67,255,15,252,32,16,128,66,1,15,252,32,48,0,0,0,1,255,224,48,0,128,63,240,192,195, +3,15,252,63,240,192,195,3,15,252,48,48,0,0,3,0,127,195,255,12,12,63,240,192,195,255,2,0,15,249,254,0, +129,3,4,15,240,0,0,16,128,66,7,223,159,126,71,9,28,39,200,155,50,68,105,16,103,193,159,6,64,112,48,128, +198,67,255,12,96,63,136,251,224,32,15,252,48,48,255,195,3,12,12,63,240,0,0,3,0,255,195,255,15,252,63,240, +255,195,255,15,252,63,240,127,131,255,0,192,127,248,16,16,207,231,176,30,192,75,249,46,103,185,146,228,75,241,169,135, +230,17,190,5,152,0,0,2,0,255,195,3,15,252,48,48,255,192,96,31,254,24,97,204,231,255,128,192,3,0,0,0, +16,128,193,7,191,158,76,73,49,44,103,243,146,72,73,225,227,7,142,16,238,6,24,0,0,16,64,217,39,228,159,254, +72,1,47,199,191,150,6,75,249,239,199,160,16,130,3,248,16,64,205,7,191,158,254,78,65,47,231,191,146,0,75,249, +232,103,161,144,254,3,248,0,0,16,64,193,7,191,158,130,75,249,39,199,128,18,255,73,161,166,135,146,16,203,6,56, +0,0,16,16,103,199,208,14,126,125,49,76,129,34,4,200,31,240,64,193,255,4,12,31,240,0,0,16,48,207,199,165, +30,252,79,249,39,135,181,147,182,75,249,239,103,191,144,246,3,248,0,0,1,0,4,3,255,140,198,33,16,204,3,255, +9,12,38,97,143,6,60,19,252,92,56,0,0,16,32,240,131,223,153,122,77,169,247,224,95,129,118,125,208,21,192,83, +31,222,7,200,0,0,0,33,248,133,63,140,106,127,168,167,230,159,159,246,9,80,117,199,243,2,222,10,200,0,0,16, +32,208,134,223,159,250,45,169,159,229,31,143,118,101,81,245,193,147,29,158,66,136,0,0,0,0,255,194,73,9,36,36, +144,146,66,73,9,36,36,144,146,79,255,192,0,0,0,255,192,48,0,192,127,248,12,0,112,1,128,63,240,210,195,75, +13,236,127,248,3,0,255,195,255,8,196,35,16,255,192,48,0,192,63,240,146,66,73,31,254,127,248,8,64,33,131,3, +31,254,6,96,49,129,156,12,112,63,240,210,66,73,13,236,127,248,0,1,255,129,132,7,222,17,88,248,102,113,18,92, +63,240,222,194,75,13,236,127,248,16,32,97,128,132,31,254,0,0,97,199,1,143,252,63,240,210,195,75,13,236,127,248, +3,0,255,193,255,0,192,127,248,49,131,255,15,4,63,240,222,194,75,13,236,127,248,3,0,127,131,255,12,204,127,249, +255,224,204,30,30,127,248,214,195,75,13,236,127,248,4,128,27,199,254,0,142,127,240,7,192,60,159,190,32,48,255,195, +75,13,236,127,248,8,192,35,7,238,6,60,8,216,123,7,236,0,0,63,240,146,66,73,27,118,127,248,12,128,179,2, +207,139,96,45,96,188,194,193,0,0,63,240,146,66,73,13,236,127,248,3,0,30,0,206,31,254,96,8,127,129,2,7, +248,63,240,255,194,73,13,236,127,248,8,1,255,225,136,5,100,53,177,167,4,118,7,14,31,240,255,194,73,13,236,127, +248,8,64,33,7,255,128,192,63,240,12,7,255,128,0,63,240,210,194,73,13,236,127,248,2,1,204,65,127,131,54,1, +208,199,134,115,131,6,63,240,210,195,75,13,236,127,248,3,0,127,129,163,4,204,127,248,216,195,51,24,24,63,240,222, +194,73,13,236,127,248,1,96,134,195,255,136,100,62,177,147,134,94,147,78,31,240,255,195,75,13,236,127,248,0,145,247, +230,89,159,126,101,153,247,231,241,128,140,63,240,222,194,73,13,236,127,248,8,1,237,230,117,157,238,103,153,175,103,51, +128,128,63,240,146,66,73,15,236,127,248,63,240,192,195,3,15,252,63,240,192,195,255,15,252,48,48,192,195,255,12,12, +0,0,123,249,47,228,130,30,8,72,33,32,135,130,18,8,104,33,224,132,6,0,120,0,0,0,1,239,228,132,18,16, +120,65,35,132,255,222,16,72,65,161,7,132,16,16,1,192,0,0,2,1,255,231,255,140,0,63,240,0,1,255,12,12, +63,240,192,195,255,12,12,63,240,0,0,3,1,255,231,255,135,248,63,240,255,195,255,15,252,63,240,255,195,255,31,254, +127,248,16,0,71,225,17,159,66,57,248,199,227,144,159,198,85,251,68,33,16,132,126,17,24,0,0,0,65,227,5,255, +150,48,122,201,43,101,173,158,182,75,249,99,103,140,16,51,0,120,0,0,0,33,230,132,147,18,196,126,25,56,100,191, +158,100,73,145,164,71,177,16,140,4,112,0,0,0,16,255,195,24,15,254,63,248,134,2,255,11,4,47,240,176,70,255, +27,12,79,240,0,0,3,0,109,129,51,12,222,35,192,60,7,255,6,12,31,240,96,193,255,7,252,31,240,0,0,0, +1,255,228,140,18,16,122,121,41,228,164,158,254,75,249,160,39,129,144,6,0,112,0,65,225,4,149,18,86,123,89,45, +38,228,158,22,72,81,160,199,134,16,240,7,0,0,0,0,65,227,4,140,19,254,126,201,59,36,142,30,56,72,225,167, +135,150,145,219,4,56,0,0,0,0,255,194,49,15,252,63,240,159,194,255,11,4,47,241,191,198,255,19,252,79,240,0, +0,0,112,255,128,96,15,252,127,249,255,225,255,14,12,127,241,32,192,255,2,12,15,240,0,0,0,1,239,228,176,18, +230,123,145,41,196,166,30,156,74,209,174,103,184,16,254,3,248,0,129,226,4,154,18,76,123,25,63,228,128,158,252,75, +249,40,103,161,144,254,3,248,0,0,17,0,255,195,48,31,248,3,1,255,224,0,7,252,31,240,64,193,255,4,12,31, +240,0,0,3,1,255,224,48,7,248,16,32,127,129,254,4,8,31,225,255,231,255,135,28,112,24,0,0,0,1,239,228, +161,146,198,123,249,41,133,166,30,254,74,97,232,135,162,16,255,7,24,0,0,16,0,255,230,105,149,172,28,136,99,231, +6,15,252,63,240,192,195,255,12,12,63,240,0,0,1,33,228,133,146,22,74,125,185,119,197,210,31,72,93,33,116,135, +218,209,250,6,56,0,17,239,196,184,18,48,120,65,63,230,131,30,12,72,97,163,7,184,17,250,4,120,0,0,0,193, +225,4,191,146,254,120,129,38,68,183,30,248,72,193,34,71,145,145,254,2,8,0,65,225,4,191,146,48,120,65,47,228, +132,30,16,75,249,35,7,132,17,254,7,248,0,65,233,100,181,150,212,121,81,63,231,191,158,120,73,241,237,71,229,145, +18,0,64,0,0,0,65,227,196,191,19,204,121,225,47,4,175,158,126,75,25,43,199,134,16,112,7,0,0,0,123,249, +40,4,175,158,152,74,97,43,231,166,18,152,107,249,232,4,63,128,254,1,0,109,131,255,1,128,127,248,115,131,255,30, +30,31,224,97,129,254,6,24,31,224,0,0,0,193,226,196,153,18,254,120,73,37,4,191,158,216,74,65,191,231,134,16, +16,0,64,0,0,1,33,230,133,154,151,234,123,177,38,133,154,30,206,79,41,100,135,178,17,139,12,56,0,0,0,1, +239,228,161,146,254,123,249,44,100,191,158,208,74,121,41,199,163,16,246,3,8,0,0,8,64,51,3,255,1,128,63,241, +255,231,255,135,252,56,49,255,196,255,2,12,15,240,0,0,1,1,231,133,190,23,152,127,249,35,101,255,159,254,72,217, +111,231,136,16,32,3,128,0,0,0,129,230,197,179,18,254,121,49,44,101,232,158,124,75,241,254,199,142,16,124,7,24, +0,0,1,17,228,197,191,146,254,120,73,47,228,172,30,254,75,249,39,39,188,145,150,4,64,0,0,0,193,227,5,255, +150,180,122,209,111,197,255,159,254,89,225,111,199,237,145,50,0,192,0,0,0,193,227,5,158,22,204,127,249,119,133,128, +30,182,90,81,105,199,130,17,254,7,248,0,1,239,228,162,18,152,122,249,40,135,191,158,152,78,97,255,231,226,17,24, +13,248,0,0,0,65,239,229,140,22,254,120,193,63,229,191,30,198,75,249,108,103,191,144,132,2,48,0,0,0,17,239, +197,132,23,254,127,249,105,69,255,158,246,91,209,127,231,140,16,48,3,248,1,1,228,132,178,18,254,127,33,63,228,191, +158,200,75,249,45,135,178,16,255,3,0,0,0,24,0,127,225,137,31,188,60,97,111,225,144,143,252,48,48,192,195,255, +12,12,63,240,0,0,0,65,227,4,191,146,146,123,249,41,39,191,158,40,75,33,255,231,131,16,8,0,32,0,0,0, +65,239,197,191,150,48,127,249,36,133,177,159,146,72,193,239,231,140,16,48,7,252,0,1,239,228,161,146,134,123,249,40, +37,161,158,254,73,161,36,135,146,16,203,6,56,0,0,0,65,239,228,140,18,254,120,217,63,247,141,158,254,74,65,233, +231,180,17,240,4,248,0,0,0,1,239,229,168,150,182,122,81,33,69,140,31,254,73,225,103,199,189,145,178,0,192,0, +0,0,129,227,36,191,18,44,123,249,63,229,152,31,254,79,25,103,231,145,144,126,1,248,0,0,0,1,239,197,154,19, +206,123,17,63,229,222,30,48,79,249,99,7,159,16,198,6,8,0,0,4,0,255,194,73,15,252,3,0,255,199,255,159, +254,12,192,255,195,255,15,252,3,0,0,0,3,0,15,199,255,147,246,95,232,204,194,204,15,254,120,120,127,129,254,6, +24,31,224,0,0,2,64,251,225,221,159,252,62,97,167,225,144,143,252,48,48,255,195,255,12,12,63,240,0,0,1,17, +228,197,255,214,76,121,49,111,229,191,158,146,75,249,111,231,164,144,254,3,248,0,0,1,33,252,133,34,20,154,127,233, +95,229,55,157,236,86,177,120,199,167,144,146,2,136,0,0,0,193,239,197,191,22,48,127,249,108,197,255,159,198,95,249, +127,231,87,145,254,15,248,0,65,239,229,237,151,246,126,217,123,101,255,158,48,95,249,108,71,158,16,120,15,56,0,0, +0,193,239,228,255,146,178,123,249,39,197,159,30,254,72,193,111,231,177,144,198,3,248,0,0,0,1,255,229,224,150,254, +122,25,111,229,177,158,252,88,193,127,231,146,16,198,4,8,0,0,1,33,255,229,155,22,76,127,249,102,135,255,159,74, +93,233,255,231,117,145,2,4,56,0,0,0,1,255,229,158,23,254,127,169,127,229,128,30,254,88,1,127,231,173,17,182, +5,200,0,0,0,65,233,101,149,23,254,126,9,127,229,177,30,252,88,193,111,231,140,16,48,7,248,12,193,255,224,140, +15,252,63,240,0,7,255,151,250,16,96,127,129,254,4,24,31,224,0,0,10,65,251,7,239,150,244,126,97,171,196,121, +135,248,16,48,127,193,255,4,12,31,240,0,0,1,65,237,133,191,151,254,127,249,111,229,191,158,216,75,249,111,231,170, +145,170,4,172,0,0,0,1,255,229,224,151,254,126,241,121,133,255,159,254,92,97,255,231,215,147,126,9,24,0,0,0, +65,255,197,210,151,206,123,249,120,101,191,30,132,91,241,100,199,146,16,120,7,248,0,17,223,197,45,148,148,127,249,120, +101,63,157,254,93,209,109,231,55,145,132,4,16,0,0,0,33,222,133,26,23,255,119,233,95,165,126,157,110,87,177,82, +71,251,17,110,0,200,0,0,0,193,255,229,179,23,254,127,249,111,229,237,159,254,95,249,99,7,127,144,48,15,248,0, +81,239,69,159,23,254,121,241,123,101,165,30,254,95,209,127,71,183,144,132,4,16,0,0,1,1,239,133,255,151,254,127, +153,125,165,255,159,254,94,1,115,199,223,145,102,5,248,0,0,24,33,255,231,230,31,254,126,144,145,199,255,143,248,48, +48,255,195,255,12,12,63,240,0,0,0,0,255,227,255,143,254,39,152,247,193,255,143,252,127,240,70,1,255,4,96,31, +248,0,0,0,0,255,227,255,143,254,63,240,255,199,255,15,248,63,240,255,131,254,3,240,127,248,0,0,3,0,255,193, +254,7,248,31,224,255,195,135,31,254,124,249,243,231,207,159,62,127,248,0,0,255,192,6,3,240,7,129,255,231,255,129, +196,13,48,228,134,16,0,192,15,0,0,0,0,65,241,128,206,14,108,19,89,249,163,194,15,126,112,17,64,197,2,4, +24,48,64,0,0,24,0,96,3,255,12,192,99,0,12,7,255,159,254,7,128,26,0,204,14,28,96,24,0,0,4,0, +49,1,135,15,254,24,0,127,195,255,24,192,127,249,255,224,120,15,56,112,56,0,0,32,0,131,231,239,158,38,88,152, +102,103,249,134,38,24,152,114,99,127,152,190,64,136,0,0,32,8,143,39,196,156,18,83,200,72,39,224,132,242,48,72, +225,38,196,144,50,65,136,0,0,32,1,135,231,208,30,64,81,248,100,103,241,132,70,25,248,228,2,112,24,126,65,248, +0,0,32,16,143,199,140,28,48,83,252,198,199,241,132,230,48,176,230,198,219,16,204,66,48,0,0,32,64,129,71,245, +28,212,83,80,207,231,238,197,48,51,248,239,230,132,16,254,7,248,32,1,143,231,192,28,126,81,248,68,103,209,132,126, +57,16,230,66,203,24,124,67,248,32,16,143,231,132,28,255,81,240,79,103,236,132,48,51,248,228,194,254,16,60,67,152, +0,0,127,249,255,224,192,2,0,24,0,127,195,129,30,4,88,16,96,65,255,6,4,0,0,0,1,247,195,27,8,76, +33,49,228,198,211,59,76,109,49,188,199,243,223,143,6,24,0,0,0,1,255,227,6,8,24,32,97,241,134,255,219,24, +108,96,177,131,198,14,24,0,96,0,0,0,65,243,3,15,136,126,33,137,236,102,249,27,28,108,96,177,131,204,14,96, +3,0,0,0,1,49,247,195,17,8,68,33,145,231,70,149,58,92,107,48,172,67,161,73,135,4,24,0,0,0,65,241, +131,31,136,64,33,1,244,6,208,59,64,111,0,188,3,224,15,128,6,0,0,0,0,1,255,194,7,8,48,35,137,239, +230,154,154,90,107,72,187,35,137,136,70,2,112,0,0,0,1,255,195,3,8,68,33,49,228,198,191,186,78,104,9,175, +167,129,158,6,0,112,0,0,0,65,241,3,5,8,86,35,73,237,38,228,59,22,44,88,176,195,198,14,112,35,0,0, +0,3,0,255,192,48,15,252,3,1,255,224,48,31,254,28,0,127,199,131,22,12,31,240,0,0,2,1,235,226,38,136, +218,103,105,233,167,166,186,146,107,201,189,39,140,156,102,1,48,0,0,1,1,244,3,31,136,126,35,9,249,102,228,26, +48,104,224,163,131,155,14,198,2,8,0,0,0,1,239,227,3,8,204,35,49,239,230,191,186,28,104,240,166,195,179,8, +140,0,96,0,0,2,1,233,131,38,8,152,35,121,239,198,166,58,152,106,97,169,135,190,158,254,2,56,0,0,0,1, +255,227,27,8,100,33,145,230,70,255,251,108,109,144,182,67,209,14,196,2,16,0,0,0,65,243,3,63,136,32,35,249, +255,230,144,58,254,104,49,161,135,156,30,56,0,48,0,0,0,193,227,3,63,136,96,33,97,237,135,191,186,24,104,97, +175,231,191,158,24,0,96,0,0,0,65,225,3,63,200,16,34,73,233,38,164,186,146,107,249,163,231,132,158,19,0,120, +0,0,0,1,255,227,49,136,214,35,89,237,102,181,186,214,104,225,163,135,154,222,202,6,56,0,0,0,1,255,195,33, +8,204,35,241,235,71,173,26,180,106,208,170,195,251,143,199,4,8,0,0,0,65,241,3,63,136,254,32,65,225,6,255, +186,48,104,193,166,71,145,158,254,3,140,0,0,0,1,246,3,63,136,254,38,129,243,230,207,155,32,44,192,179,227,200, +14,32,32,128,0,0,0,195,225,3,63,137,254,39,9,228,6,147,58,120,105,129,164,7,144,158,98,1,248,0,17,247, +195,62,8,216,35,97,239,230,191,186,200,107,33,172,135,183,94,255,3,88,0,0,8,128,38,102,254,26,96,123,137,251, +224,0,31,254,12,0,255,199,129,6,12,31,240,0,0,0,65,241,3,4,8,30,32,97,241,6,196,59,126,45,8,180, +35,208,142,126,33,248,0,0,0,163,226,130,63,136,106,33,169,239,231,186,27,250,239,249,164,167,146,152,206,6,32,0, +0,0,65,241,3,4,8,254,32,1,228,70,145,58,68,105,177,166,135,138,31,254,3,248,0,17,239,227,56,8,48,32, +65,239,230,129,186,12,104,97,163,7,184,31,250,0,120,0,0,0,1,239,227,4,8,210,33,89,229,70,132,58,254,104, +225,161,7,132,30,16,0,64,0,0,0,65,241,3,63,136,254,34,73,237,198,191,186,228,106,145,171,135,230,31,188,5, +24,0,0,0,65,241,3,63,136,254,34,73,239,230,182,186,146,107,248,169,35,132,8,16,0,64,0,0,0,1,255,227, +32,8,136,34,249,239,166,186,186,234,107,185,168,199,162,30,254,3,248,1,3,228,195,127,136,76,33,33,232,70,179,58, +72,105,224,163,3,158,14,204,6,24,0,0,0,1,255,242,48,8,254,35,249,237,6,183,154,222,106,72,171,35,232,137, +162,5,184,0,0,4,192,49,135,255,130,108,25,224,223,230,15,31,254,12,0,127,199,131,22,4,31,240,0,0,0,67, +243,3,14,8,76,35,25,248,38,191,58,16,104,65,161,7,132,30,254,3,248,0,17,255,195,48,8,144,34,65,255,230, +191,186,16,105,81,173,103,164,159,146,0,192,0,0,0,65,241,3,37,136,150,34,89,239,230,132,58,146,106,73,169,39, +164,158,254,0,24,0,0,0,65,241,3,63,136,24,32,65,239,230,132,58,16,107,249,161,135,132,31,254,3,248,0,67, +243,3,63,136,254,34,41,238,167,190,154,154,234,249,174,39,176,158,254,3,248,0,0,0,129,242,3,31,8,228,34,225, +227,134,143,27,230,235,248,164,99,145,136,126,1,248,0,0,0,9,255,34,42,136,170,34,169,234,167,254,186,170,106,169, +170,167,232,153,34,4,152,0,0,0,3,255,227,32,136,250,34,9,235,166,170,186,170,106,169,171,167,168,158,130,2,56, +0,0,0,1,255,227,10,8,120,35,249,234,167,170,186,238,107,57,168,39,160,152,254,2,8,0,0,0,1,255,227,4, +8,126,35,25,237,102,181,186,214,107,89,173,103,142,30,102,3,8,0,0,0,65,225,2,63,136,48,35,89,229,71,157, +59,254,104,193,163,135,155,28,198,6,8,0,0,0,129,246,3,63,136,38,32,241,231,166,179,186,4,107,249,166,135,146, +30,203,6,56,0,0,0,65,253,35,21,136,84,33,241,239,230,177,186,254,107,24,175,227,177,142,198,3,56,0,0,0, +33,255,227,114,136,72,39,249,239,198,146,186,126,111,177,164,199,147,30,95,3,216,0,0,0,65,225,131,63,136,36,33, +17,239,230,160,58,212,107,81,173,71,165,31,149,4,88,0,0,0,1,255,227,4,8,254,34,73,239,230,164,186,254,107, +249,175,7,152,30,120,7,56,0,0,1,17,246,195,63,200,76,32,193,225,134,255,186,192,105,1,164,7,144,30,126,1, +248,1,1,247,131,63,8,216,39,249,233,38,191,186,214,107,120,175,227,164,143,146,4,120,0,0,0,65,243,3,26,8, +204,39,253,247,134,128,58,150,106,81,173,71,130,31,254,3,248,3,33,255,226,94,137,122,103,249,223,167,222,191,254,127, +249,247,39,220,155,114,9,216,0,0,0,129,227,3,127,137,130,34,9,239,230,132,58,208,106,121,173,7,180,31,240,4, +248,0,0,0,1,255,227,36,136,186,34,73,235,38,174,186,186,106,233,186,167,238,155,2,12,56,0,0,0,17,255,226, +1,136,254,32,17,255,246,132,26,214,105,112,167,131,245,137,146,0,192,0,0,0,1,255,227,63,136,198,35,249,224,6, +255,187,12,111,248,182,195,219,8,44,0,112,0,0,0,65,241,131,63,136,68,33,49,238,198,175,186,144,107,249,175,231, +132,30,16,0,64,0,0,0,65,243,130,63,136,210,35,249,233,38,191,154,56,105,161,191,227,255,136,8,0,32,0,0, +0,129,246,131,26,8,254,35,33,255,230,191,186,72,105,249,165,135,146,30,126,1,0,0,0,0,195,255,227,127,137,130, +35,185,239,231,238,187,186,107,233,165,231,182,28,155,6,56,0,0,0,161,226,130,63,136,254,98,169,239,231,191,186,170, +106,249,191,247,155,28,198,6,8,0,0,0,65,241,131,63,136,68,33,17,230,198,191,186,0,107,249,172,103,177,158,254, +3,248,0,0,0,65,255,227,12,8,254,32,193,255,231,191,186,198,106,89,169,103,172,156,108,7,8,0,0,0,129,230, +130,63,8,246,35,249,239,231,181,187,50,107,33,163,103,179,28,56,3,128,0,0,0,17,235,67,127,136,252,34,241,232, +7,191,186,48,111,249,167,135,158,29,182,4,200,0,0,0,65,239,227,4,8,254,35,249,239,230,191,186,214,111,249,173, +103,191,158,6,0,48,0,0,0,1,255,227,49,136,254,35,249,239,198,191,186,254,110,72,175,163,186,142,254,0,56,0, +0,0,65,235,130,63,136,130,35,249,232,7,191,186,254,111,105,191,231,246,159,90,5,24,0,0,0,97,247,225,17,159, +126,17,153,255,230,31,31,254,28,0,127,199,131,22,12,31,240,0,0,2,17,228,194,18,9,254,33,161,246,166,250,186, +238,107,177,174,199,154,24,120,7,248,0,33,224,162,63,137,254,103,161,254,167,250,179,254,79,113,55,199,211,27,31,8, +216,0,0,0,65,255,227,63,136,76,35,249,251,38,164,186,254,106,89,169,103,165,158,148,0,64,0,0,0,67,249,34, +63,136,254,35,1,255,230,146,58,234,107,169,175,199,167,25,182,1,136,0,0,0,65,227,2,63,136,120,35,89,249,39, +191,58,196,107,241,172,71,191,28,0,7,248,0,65,241,131,63,136,130,33,241,224,6,159,186,70,105,248,164,99,159,14, +0,3,248,0,1,255,227,32,136,254,34,209,239,230,191,186,180,107,253,186,167,235,27,62,5,200,0,0,0,19,228,194, +27,9,254,98,33,232,135,238,187,222,111,81,172,231,234,155,254,4,196,0,65,239,226,63,136,108,35,249,233,38,164,186, +254,104,129,167,231,153,158,196,6,112,0,0,0,17,231,195,30,8,252,35,185,238,231,179,59,254,104,193,191,231,158,28, +246,4,200,0,0,0,1,255,225,192,15,252,120,48,127,192,0,31,254,48,193,243,230,120,143,62,60,248,0,0,1,17, +246,194,63,136,48,35,249,227,6,191,186,254,105,241,175,231,230,31,152,3,248,8,240,242,195,123,139,196,127,240,219,198, +111,17,70,127,248,96,3,255,30,12,31,240,0,0,0,17,238,98,63,137,164,35,249,229,231,229,58,16,111,249,167,135, +191,29,150,4,64,0,0,0,65,247,195,31,8,56,35,249,230,198,191,186,242,107,249,170,231,170,158,174,7,248,0,65, +255,227,63,136,68,38,201,230,198,191,186,242,105,233,188,231,211,30,118,1,136,0,0,1,0,255,231,255,155,158,111,121, +189,231,74,159,254,103,1,159,199,255,149,134,71,248,0,0,24,241,250,199,233,15,102,127,241,251,198,31,144,70,127,248, +96,3,255,30,4,31,240,0,0,2,1,239,227,15,9,182,33,249,238,6,175,186,16,107,249,167,199,159,31,214,0,72, +0,0,0,65,239,195,26,136,206,35,249,248,54,191,186,196,107,241,164,199,147,30,108,7,248,0,65,237,66,31,9,254, +33,241,249,103,133,58,254,111,209,191,71,183,156,132,6,16,0,0,1,35,239,226,63,136,108,103,249,227,7,191,186,254, +106,217,175,231,147,24,204,6,8,0,0,1,65,237,131,63,137,254,39,249,239,230,191,154,216,107,248,175,227,170,143,170, +4,172,0,0,2,35,236,130,250,9,223,101,233,223,167,7,183,236,83,49,110,199,243,28,158,6,200,0,0,0,1,255, +227,63,136,246,35,89,239,198,191,186,124,107,248,175,227,191,142,0,7,252,1,33,255,226,27,8,254,34,9,231,135,191, +186,114,107,249,167,199,173,28,210,0,192,0,0,1,49,255,226,27,8,254,38,249,246,231,187,58,254,110,9,175,199,149, +28,150,1,200,0,0,0,131,255,226,27,137,190,34,249,227,231,239,154,62,232,185,175,231,173,153,148,4,48,0,0,63, +240,255,192,0,31,254,127,248,12,1,50,12,204,35,17,140,100,48,131,192,0,0,0,0,96,0,192,31,128,6,0,48, +1,192,15,128,107,1,32,0,128,2,0,8,0,0,0,16,128,98,7,200,31,32,12,128,98,3,136,31,32,86,128,66, +33,8,132,54,16,248,0,0,32,64,65,7,132,31,16,11,248,111,227,132,31,16,84,64,65,1,4,4,254,19,248,0, +0,48,0,71,231,177,159,198,11,24,108,99,191,159,194,215,0,76,1,48,196,126,17,248,0,0,16,0,67,231,201,159, +36,12,144,34,193,137,31,38,90,136,98,33,139,134,32,24,128,0,0,32,0,79,225,142,31,16,8,64,111,227,191,159, +56,84,224,66,129,27,4,198,22,8,0,0,0,16,71,231,184,31,64,9,0,103,243,147,31,204,87,48,76,193,35,4, +140,18,48,0,0,0,32,65,129,134,31,24,11,96,109,227,183,159,216,119,96,77,129,54,4,216,23,252,0,0,32,64, +195,1,63,158,48,9,240,111,195,12,30,254,124,200,195,35,12,140,54,48,192,0,0,0,192,67,7,140,31,254,8,128, +102,3,152,31,254,87,8,92,33,16,132,126,17,152,0,0,33,32,198,199,153,31,254,25,128,70,67,159,158,100,115,208, +201,195,38,13,188,53,152,0,0,0,0,79,199,177,31,196,11,240,111,195,177,31,196,87,240,76,65,49,5,254,23,248, +0,0,32,16,207,199,180,30,152,26,96,79,227,63,158,136,122,32,200,131,39,76,254,55,88,0,0,33,0,196,7,191, +158,254,30,128,83,227,15,158,32,120,192,195,227,8,12,32,48,128,0,0,32,64,65,7,191,158,254,24,64,65,3,191, +223,48,80,128,70,65,17,132,254,19,136,0,0,32,64,193,7,132,31,254,24,192,65,3,4,31,254,123,24,200,99,33, +140,254,51,248,0,0,0,0,207,231,161,158,134,26,24,76,99,191,159,104,85,160,68,129,50,4,139,22,56,0,0,32, +64,65,7,191,158,254,26,72,79,227,61,159,146,115,248,203,35,4,12,16,48,64,0,0,3,0,204,195,255,8,196,63, +248,0,3,255,0,0,127,248,12,1,182,12,206,103,8,0,0,32,0,223,231,128,158,250,24,8,68,35,60,158,146,122, +72,207,35,48,140,2,48,56,0,0,33,0,196,7,159,158,214,10,88,73,3,149,31,214,114,72,73,33,36,132,16,17, +192,0,0,33,16,196,71,155,30,254,24,96,65,3,63,158,16,120,96,223,227,4,12,16,48,64,0,0,33,32,198,135, +154,159,234,27,176,198,131,26,30,206,119,40,196,131,50,13,139,60,56,0,0,0,1,255,224,220,15,252,36,144,255,192, +0,15,252,3,1,255,225,182,12,204,103,8,0,0,17,0,127,227,105,31,60,44,96,255,131,255,152,6,63,240,12,1, +182,28,204,7,16,0,0,32,64,65,231,135,159,48,11,248,104,99,165,159,150,82,88,75,97,8,4,236,22,8,0,0, +32,192,207,231,191,158,252,27,240,79,227,127,158,102,121,248,206,67,109,13,4,48,112,0,0,32,0,207,231,161,158,254, +27,240,65,3,127,159,178,126,232,222,163,113,141,130,54,56,0,0,33,16,196,71,191,158,108,25,240,70,195,159,30,124, +115,184,223,227,27,12,198,54,8,0,0,3,1,255,225,254,15,252,47,208,191,67,255,0,0,63,241,255,225,182,12,220, +103,24,0,0,16,97,247,231,223,143,60,127,249,101,161,254,7,248,127,249,255,225,54,12,204,79,24,0,0,32,16,207, +231,129,158,254,24,16,79,227,4,30,214,113,112,199,131,53,140,146,48,192,0,0,33,16,196,199,146,30,254,26,216,79, +227,45,158,254,123,248,207,227,127,140,16,48,64,0,0,33,0,223,231,178,159,234,27,40,95,163,53,158,16,127,248,207, +227,14,12,204,54,24,0,0,32,0,207,227,0,31,254,11,24,111,227,128,31,254,246,72,207,227,36,140,254,51,248,0, +0,33,16,196,199,191,158,254,24,64,79,227,140,30,48,119,248,192,3,63,141,170,52,168,0,0,32,64,223,231,140,30, +254,27,240,204,99,63,158,76,119,248,207,195,63,140,134,51,248,0,0,32,192,223,231,187,158,254,27,248,198,195,63,158, +254,113,176,223,227,115,140,76,51,136,0,0,32,64,135,135,51,159,122,16,0,223,227,127,158,180,111,248,159,162,127,137, +170,38,184,0,0,0,48,255,192,48,15,252,51,48,255,193,254,15,252,127,249,141,103,253,152,30,96,56,0,0,0,0, +255,194,51,15,252,51,48,255,192,48,15,254,127,249,141,103,253,152,30,96,56,0,0,2,1,255,231,255,141,236,55,176, +243,195,255,0,192,127,249,146,102,253,155,22,96,112,0,0,3,0,30,3,175,31,254,30,224,222,195,207,7,252,7,16, +255,194,205,11,244,32,112,0,0,0,32,63,195,240,0,192,3,1,255,224,120,1,224,15,64,109,199,51,144,194,3,0, +0,0,0,96,255,128,48,31,254,15,192,109,135,51,159,226,12,192,51,193,129,14,12,96,224,0,0,4,1,241,5,140, +6,48,126,192,226,3,154,15,108,121,19,108,97,191,134,254,24,8,0,0,0,96,255,128,48,31,254,127,248,63,3,51, +24,134,15,192,35,0,140,134,50,112,120,0,0,0,1,255,231,6,4,16,124,64,225,131,191,207,24,116,67,65,1,4, +4,16,16,64,0,0,0,240,255,128,48,31,254,63,240,127,199,255,128,204,63,240,63,1,182,28,206,3,0,0,0,8, +65,241,1,4,4,82,125,72,237,99,183,15,56,112,227,66,129,27,4,198,18,8,0,0,8,65,225,3,4,4,254,127, +104,233,35,164,143,254,115,251,73,1,4,4,16,16,64,0,0,0,17,244,199,15,4,28,124,48,228,195,139,15,12,112, +59,79,193,3,4,12,16,48,0,0,0,65,241,7,5,4,86,127,72,237,35,164,15,22,112,83,64,193,6,4,240,23, +0,0,0,10,1,233,131,38,4,154,127,120,207,195,166,14,152,122,99,73,129,46,197,250,22,56,0,0,8,129,227,99, +5,12,36,121,176,206,195,63,143,242,125,203,198,3,25,13,230,52,240,0,0,0,1,247,199,17,4,68,125,240,231,195, +145,15,68,117,243,68,65,17,4,254,23,248,0,0,8,65,225,3,63,132,254,124,64,239,227,191,143,56,117,243,77,97, +100,132,16,16,64,0,0,8,1,239,227,14,4,210,127,88,229,67,149,15,254,116,67,65,1,4,4,16,16,64,0,0, +3,0,255,195,255,15,252,14,1,255,225,142,15,236,99,24,255,192,124,6,216,51,16,0,0,8,65,225,3,31,4,254, +127,88,205,99,53,143,254,120,227,67,129,27,4,198,22,8,0,0,0,65,253,7,54,4,254,126,64,249,3,191,143,254, +112,227,67,129,27,4,198,22,8,0,0,8,65,225,67,5,132,48,127,248,195,131,158,15,124,113,83,77,97,100,132,16, +16,64,0,0,8,65,225,1,63,132,208,126,64,233,3,191,143,254,112,203,71,33,53,133,150,20,64,0,0,4,1,247, +225,17,132,70,127,24,228,99,159,143,126,116,3,70,65,17,132,194,18,8,0,0,9,1,228,3,31,132,222,126,88,201, +3,149,15,214,115,75,73,33,36,132,16,16,192,0,0,8,65,225,3,63,132,56,124,64,207,227,191,14,0,115,249,76, +97,49,132,254,19,248,0,0,8,65,227,195,63,4,236,124,224,207,131,167,158,62,115,155,75,193,6,4,112,23,0,0, +0,8,65,233,33,36,132,222,127,248,226,3,159,143,198,118,155,67,193,6,4,112,23,0,0,0,0,17,239,195,31,12, +230,121,128,223,227,52,30,254,119,251,205,35,52,140,214,48,64,0,0,8,193,227,3,63,132,134,123,248,204,99,177,142, +252,114,75,73,193,35,4,246,19,8,0,0,8,25,239,195,0,132,214,125,80,239,195,131,15,24,119,251,79,225,4,4, +16,17,192,0,0,0,1,255,231,49,132,198,127,248,231,195,128,15,254,115,27,72,33,32,132,254,19,24,0,0,9,17, +228,195,63,140,254,120,72,207,227,44,30,254,115,251,199,35,60,141,150,52,64,0,0,8,1,239,227,49,132,198,127,248, +224,3,191,143,254,116,67,79,225,4,4,24,23,248,0,0,8,65,233,35,21,132,84,123,248,204,99,49,158,254,114,9, +79,225,49,132,130,18,56,0,0,9,17,230,65,11,4,254,127,24,236,99,191,143,126,113,163,70,129,18,4,203,22,56, +0,0,0,65,227,3,30,12,238,126,72,207,195,131,30,8,112,195,221,99,80,141,78,49,224,0,0,8,65,227,3,63, +132,146,127,248,233,35,191,143,40,119,35,79,225,63,132,8,16,32,0,0,8,1,230,131,18,4,254,127,32,255,227,191, +159,200,119,251,77,129,50,4,255,19,0,0,0,8,1,239,227,36,132,254,126,88,207,227,191,31,254,115,251,71,129,53, +5,146,16,64,0,0,8,1,239,227,36,140,186,122,200,203,35,46,158,186,114,235,218,163,110,141,2,52,56,0,0,32, +0,243,226,222,27,24,124,97,95,231,199,31,60,84,241,247,160,54,159,152,96,96,0,0,9,1,239,195,34,5,252,120, +56,207,227,129,142,254,115,243,69,1,84,133,78,17,224,0,0,8,1,239,227,63,140,246,127,248,198,195,49,159,162,113, +243,220,195,14,12,124,55,24,0,0,8,65,255,227,63,140,252,123,16,207,195,63,30,196,123,243,223,227,127,140,206,54, +8,0,0,8,17,255,227,0,140,182,126,80,198,67,183,142,130,114,25,206,227,32,140,254,51,248,0,0,0,65,227,3, +127,141,130,123,240,198,3,125,158,60,115,115,211,227,54,141,152,48,192,0,0,0,161,226,99,63,140,114,127,120,221,195, +56,158,254,112,243,207,227,63,140,198,51,248,0,0,8,193,227,131,127,132,252,127,16,207,195,128,31,254,118,11,95,161, +122,133,186,22,24,0,0,8,65,239,227,33,132,254,127,24,207,227,181,143,154,123,211,65,193,61,132,28,19,128,0,0, +8,65,239,227,61,140,212,121,208,223,243,0,30,254,114,11,202,163,46,140,254,51,248,0,0,8,65,255,227,12,12,254, +123,248,203,99,63,158,54,115,251,199,3,117,141,70,53,240,0,0,0,193,255,227,59,140,174,123,184,198,195,63,158,254, +113,179,223,227,115,140,76,51,136,0,0,2,0,12,0,48,31,254,96,25,128,32,196,2,16,24,96,96,131,3,24,6, +64,8,0,0,2,0,12,7,255,145,34,24,96,192,64,96,15,248,6,96,17,128,198,206,26,96,120,0,0,2,1,255, +231,255,145,50,24,96,200,192,32,31,252,6,48,16,192,195,14,8,112,224,0,0,2,0,12,7,255,147,50,60,112,216, +64,255,6,24,116,96,31,0,56,7,128,56,0,0,0,3,1,255,231,255,159,58,112,56,127,192,3,7,252,48,0,255, +195,255,0,12,3,224,0,0,2,0,12,7,255,144,2,76,200,225,198,1,135,248,3,0,12,0,48,31,254,127,248,2, +0,255,231,255,147,50,56,112,255,195,255,12,16,63,248,255,224,228,30,16,65,192,0,0,3,1,255,231,255,147,58,50, +48,140,7,255,136,196,35,48,255,192,48,0,194,1,248,3,1,255,199,255,145,50,24,96,192,192,52,31,254,127,248,30, +0,204,14,28,112,56,0,0,2,1,255,231,255,147,50,56,112,128,67,63,159,254,112,152,194,99,217,142,198,38,112,0, +0,0,0,12,7,255,152,38,76,232,240,192,192,7,254,50,1,143,192,32,0,252,3,240,8,0,0,0,3,1,255,230, +73,147,58,112,112,255,0,32,0,192,63,240,3,1,240,31,0,71,248,0,0,2,1,255,230,73,147,58,56,48,193,3, +12,11,126,120,216,115,99,73,159,230,3,112,0,0,3,1,255,231,255,147,50,56,112,130,103,255,132,96,17,144,71,227, +193,158,4,0,240,0,0,2,1,255,231,255,147,58,56,48,96,67,255,8,192,127,248,140,66,49,15,252,63,240,0,0, +3,1,255,230,201,150,58,56,112,255,192,198,15,252,51,16,255,192,48,31,254,127,248,0,0,12,7,255,155,54,92,233, +192,192,73,13,44,28,128,51,135,203,130,34,56,137,131,224,0,0,3,1,255,230,73,151,58,123,48,127,195,176,31,254, +127,248,127,195,255,12,12,63,240,0,0,2,1,255,230,205,151,62,114,56,255,195,99,13,252,60,176,206,195,127,15,12, +63,240,0,0,2,1,255,230,205,158,30,63,240,127,199,255,131,12,63,240,96,7,255,22,4,31,240,0,0,2,1,255, +230,205,159,62,115,56,255,195,51,15,252,3,0,255,226,49,143,252,3,0,0,0,3,1,255,230,205,158,62,127,248,127, +129,254,0,192,127,249,140,102,121,159,22,96,48,0,0,3,1,255,228,72,135,56,116,16,63,131,12,1,32,57,240,128, +67,207,8,4,63,240,0,0,3,1,255,230,77,159,62,120,56,255,195,3,15,252,41,144,191,198,25,22,102,95,248,0, +0,3,1,255,230,205,142,60,127,248,204,195,255,12,204,3,1,255,224,252,14,222,99,8,0,0,3,1,255,230,73,151, +62,112,24,71,199,209,4,84,127,80,197,67,140,25,112,67,120,0,0,3,1,255,228,206,140,206,63,240,12,7,255,131, +68,49,1,255,224,120,3,188,120,24,0,0,3,1,255,230,205,158,30,99,24,255,192,132,31,254,0,0,127,129,254,4, +8,31,224,0,0,2,1,255,230,201,150,56,115,48,51,135,255,153,4,62,144,250,66,105,9,164,38,48,0,0,3,1, +255,228,204,140,14,27,97,255,225,254,28,222,70,9,255,225,140,7,240,126,120,0,0,3,1,255,230,77,134,28,48,17, +247,198,213,11,84,127,81,253,229,87,151,254,66,8,0,0,3,1,255,228,76,158,30,121,153,239,199,142,29,254,121,225, +175,231,236,28,48,103,248,0,0,2,0,12,0,48,31,254,0,0,97,129,134,2,16,12,192,51,0,200,31,254,127,248, +0,1,175,230,145,26,108,104,225,167,134,179,128,192,127,248,97,128,132,3,48,127,248,16,64,65,1,4,31,31,0,65, +177,6,140,10,254,43,24,188,39,240,152,254,3,248,0,0,3,0,255,225,134,2,16,127,248,0,1,255,4,12,31,240, +55,0,200,134,34,112,248,0,0,2,0,255,193,134,3,48,127,248,0,3,255,15,252,48,48,255,192,200,6,34,112,248, +0,0,0,0,12,3,255,6,24,127,249,255,227,255,12,12,63,240,192,195,255,31,254,127,248,12,0,0,0,32,128,198, +195,51,31,254,0,177,44,100,168,158,124,51,240,126,199,142,16,124,7,24,0,0,3,0,255,192,132,31,254,127,248,255, +195,51,15,252,63,240,12,3,255,0,192,127,248,32,64,195,131,63,159,16,3,249,41,38,164,158,254,120,224,103,199,245, +145,146,0,64,0,0,32,0,207,227,49,159,254,3,249,47,198,191,158,254,62,72,111,167,250,144,254,0,56,0,0,32, +64,201,35,36,159,254,0,1,63,228,140,30,254,115,248,122,167,234,144,170,2,184,0,0,16,128,194,3,8,15,255,123, +177,108,197,163,6,12,24,48,96,193,131,6,12,24,224,0,0,16,128,195,3,255,158,104,75,48,0,3,255,0,0,0, +0,0,0,0,31,254,127,248,48,128,247,231,255,146,200,11,32,255,192,48,0,192,127,248,12,0,48,0,192,15,0,0, +0,48,128,255,231,255,146,200,72,0,255,192,48,0,192,127,249,255,224,48,0,192,3,0,0,0,48,128,255,231,255,146, +200,63,224,65,129,134,7,254,31,248,0,103,253,128,6,0,112,0,0,16,128,251,231,255,146,76,9,48,255,192,196,3, +16,127,248,33,1,132,12,16,96,64,0,0,48,128,247,231,255,146,200,31,240,255,195,49,12,196,63,240,192,67,0,140, +6,31,240,48,128,255,231,255,146,200,63,192,255,0,136,3,124,30,48,109,131,28,25,252,78,24,0,0,48,128,255,231, +255,146,200,0,48,255,195,50,12,204,51,48,140,66,49,24,198,67,8,0,0,48,128,255,231,255,146,200,63,240,12,71, +255,159,254,2,16,255,192,97,7,0,112,0,0,0,16,128,251,227,255,155,76,88,0,127,227,109,153,54,76,152,102,99, +49,8,196,6,240,0,0,48,128,198,3,255,154,200,8,48,255,192,48,0,192,127,248,30,0,204,14,28,112,56,0,0, +48,128,247,231,255,146,200,9,240,255,0,35,15,252,2,1,255,231,224,0,134,3,248,0,0,48,128,247,231,255,146,200, +31,224,255,195,51,12,204,51,48,78,128,104,6,34,112,248,0,0,48,128,247,231,255,146,200,91,0,204,3,255,24,192, +31,224,127,192,48,0,192,127,248,48,128,198,7,255,146,200,75,32,12,3,255,8,196,63,240,255,194,49,15,252,63,240, +0,0,32,128,255,231,190,19,136,12,192,97,131,255,12,6,31,240,255,195,3,15,252,63,240,0,0,48,128,194,3,255, +154,200,75,32,12,7,255,128,8,24,96,33,0,204,31,254,127,248,48,128,255,231,255,146,200,127,240,24,192,193,14,60, +112,64,255,195,1,15,252,63,240,0,0,16,128,251,231,223,146,76,63,240,0,199,253,0,4,63,144,198,67,25,15,236, +0,112,0,0,32,128,247,231,255,146,200,24,32,64,195,127,156,12,114,48,76,193,19,4,12,16,224,0,0,48,128,255, +231,255,146,200,3,1,255,231,255,131,240,27,96,204,199,255,144,194,3,0,0,0,16,128,247,231,255,146,200,31,224,127, +193,3,7,252,16,48,127,193,254,0,0,127,248,48,128,255,231,255,146,200,3,96,255,131,48,12,192,63,248,28,97,177, +28,220,67,0,0,0,16,128,251,231,223,18,76,63,240,12,67,255,12,192,63,240,255,224,241,142,220,99,96,0,0,48, +128,255,231,255,146,200,8,0,127,227,32,24,252,2,0,15,192,63,0,128,2,0,0,0,48,128,255,231,255,146,200,24, +0,255,226,1,159,198,31,152,70,65,249,6,12,0,240,0,0,48,128,247,231,255,146,200,16,1,251,231,233,132,166,18, +152,218,98,105,153,190,76,248,0,0,32,128,255,231,190,18,72,63,248,128,2,126,9,248,36,32,159,130,0,8,0,63, +248,48,128,247,231,255,146,168,4,208,255,194,96,1,254,127,16,13,192,60,15,242,48,120,0,0,16,128,251,227,255,154, +76,4,192,17,135,255,131,100,13,176,103,129,152,157,254,96,248,0,0,32,128,247,231,255,146,200,97,128,223,224,127,156, +70,51,24,200,67,103,31,8,71,248,0,0,16,128,251,231,159,18,72,27,0,255,198,48,31,254,127,248,50,0,136,142, +50,96,248,0,0,48,128,247,231,255,146,200,8,49,255,225,153,4,108,17,144,126,103,217,152,110,1,128,0,0,48,128, +255,231,190,18,200,63,240,12,7,255,159,254,0,97,255,225,134,3,24,1,192,0,0,48,128,255,231,255,146,200,60,64, +255,226,127,143,50,36,200,243,38,73,153,102,79,48,0,0,16,128,251,231,159,18,76,7,128,115,135,131,151,250,3,0, +127,128,48,0,192,127,248,48,128,255,231,190,18,200,25,32,70,67,127,157,228,112,144,67,129,12,133,250,22,56,0,0, +48,128,255,231,255,146,72,63,248,128,2,255,8,96,47,224,134,2,255,8,0,63,248,16,128,195,3,255,154,72,65,33, +255,195,51,4,236,19,240,253,199,163,1,143,12,24,0,0,48,128,255,231,255,146,200,127,248,128,98,253,136,6,47,216, +179,98,253,139,4,32,112,0,0,48,128,251,231,255,146,72,3,0,63,1,207,31,246,0,0,127,129,2,7,248,31,224, +0,0,48,128,255,231,255,146,200,127,248,12,3,255,12,204,35,16,158,192,254,28,206,67,8,0,0,48,128,243,231,255, +146,200,24,0,103,231,209,134,70,29,25,228,97,145,134,126,49,24,0,0,48,128,255,231,254,18,72,33,144,255,194,24, +143,254,99,113,255,231,255,128,192,3,0,0,0,48,128,251,230,154,18,64,31,249,99,5,191,150,182,90,88,105,97,37, +140,148,96,64,0,0,0,0,194,3,239,158,124,77,32,127,3,184,15,252,127,249,255,225,255,7,252,3,0,56,0,0, +0,16,128,251,231,159,18,72,49,0,207,231,224,141,226,48,216,193,227,189,152,132,0,112,0,0,48,128,247,231,255,146, +200,19,32,207,231,244,132,210,31,249,236,33,48,4,194,113,248,0,0,16,128,251,231,255,146,76,9,48,255,192,178,6, +216,27,96,255,198,121,159,254,127,248,32,128,255,231,190,18,200,17,128,247,231,243,159,204,62,160,243,131,206,12,238,50, +24,0,0,16,128,251,231,223,18,72,59,96,47,3,255,12,12,63,240,192,195,255,12,12,48,96,0,0,16,128,251,231, +191,18,200,123,248,79,3,36,30,158,10,65,239,227,63,159,128,71,248,0,0,32,128,255,231,190,18,104,51,241,239,199, +201,28,54,55,248,199,3,22,12,204,54,24,0,0,16,128,251,231,191,19,200,63,240,127,129,254,31,254,12,96,127,195, +102,24,152,0,192,0,0,16,128,255,230,254,27,204,127,248,255,195,51,15,252,51,48,255,193,96,7,192,115,248,0,0, +48,128,255,231,255,146,200,7,128,115,135,255,144,128,18,48,76,129,150,0,56,127,248,16,128,251,231,255,147,76,55,248, +95,230,1,155,246,111,217,191,102,253,153,230,96,48,0,0,32,128,255,231,182,7,248,63,240,255,195,51,15,252,0,1, +255,225,132,6,16,112,64,0,0,48,128,255,231,255,146,200,55,249,248,135,239,141,254,63,169,222,163,99,141,136,119,252, +0,0,48,128,255,230,146,15,252,3,0,255,199,255,135,248,63,240,255,195,3,15,252,48,224,0,0,48,128,247,231,255, +146,200,32,192,207,224,127,153,134,39,248,120,97,97,141,254,103,248,0,0,32,128,255,231,190,22,136,63,248,97,129,254, +6,24,31,224,97,135,255,134,56,112,56,0,0,32,128,255,231,182,23,252,48,48,255,195,255,12,12,63,240,49,135,255, +134,16,112,64,0,0,48,128,255,231,255,146,200,127,249,255,228,204,142,14,63,240,127,128,48,0,192,127,248,16,128,251, +231,159,18,76,17,17,255,231,177,132,68,61,241,196,65,17,4,124,113,240,0,0,32,128,251,231,154,18,200,127,249,128, +97,254,132,8,31,224,96,1,255,6,12,31,240,0,0,48,128,251,231,159,18,200,127,249,96,37,255,143,228,103,145,118, +193,152,14,98,96,248,0,0,32,128,255,230,146,19,200,63,240,255,199,255,135,248,63,240,204,195,51,3,248,120,56,0, +0,32,128,255,231,190,19,204,63,248,134,2,255,9,72,63,248,143,2,227,31,4,63,248,48,128,251,230,190,4,72,51, +249,230,195,30,13,238,123,241,207,195,63,140,254,112,64,0,0,32,128,255,230,178,31,252,127,249,146,99,255,3,128,31, +240,225,128,252,3,192,124,0,0,0,16,128,251,230,219,18,88,12,192,255,195,51,15,252,51,48,255,199,255,159,254,3, +0,0,0,0,0,194,3,239,154,104,75,32,255,199,255,128,204,63,240,140,66,253,10,212,43,81,140,64,0,0,48,128, +255,231,190,18,152,127,248,59,128,228,31,254,24,0,255,199,129,22,12,31,240,0,0,48,128,255,230,251,18,88,28,225, +255,227,225,9,182,62,216,155,99,237,137,132,46,112,0,0,48,128,247,231,255,146,200,24,32,103,231,241,134,126,61,25, +255,229,153,134,126,25,248,0,0,48,128,255,231,190,18,108,33,248,255,226,232,8,36,46,241,233,135,238,23,251,67,56, +0,0,32,128,255,231,255,146,136,63,240,25,135,255,129,224,63,241,224,192,255,2,12,15,240,0,0,16,128,251,231,155, +18,192,63,240,192,195,3,15,252,0,0,255,195,255,0,192,127,248,0,0,194,3,239,154,104,9,96,97,129,252,0,120, +127,248,253,192,254,13,232,61,152,12,0,0,0,32,128,255,231,182,18,200,63,240,192,67,255,12,0,63,248,233,99,255, +158,150,90,120,0,0,48,128,251,231,159,22,72,19,224,223,227,127,157,254,118,192,255,227,30,12,248,62,24,0,0,48, +128,255,230,146,7,248,51,48,255,199,255,128,0,63,240,192,195,51,3,184,120,56,0,0,32,128,255,231,182,16,200,27, +97,255,225,254,28,222,70,1,255,225,140,7,240,126,120,0,0,48,128,255,231,158,18,200,127,248,127,129,134,7,248,63, +241,191,102,253,155,246,104,112,0,0,16,128,255,231,182,31,254,127,249,139,6,239,27,188,98,193,251,230,44,24,176,63, +248,32,128,255,231,182,3,56,63,240,255,199,255,135,248,63,240,255,199,255,140,12,48,224,0,0,48,128,255,230,146,15, +252,63,240,255,195,3,3,128,127,248,105,134,105,135,240,31,96,0,0,32,128,255,231,182,22,200,127,248,255,194,217,15, +252,3,1,255,224,252,14,220,99,24,0,0,32,128,255,231,182,18,200,63,240,158,66,253,15,252,33,128,254,195,28,15, +226,60,248,0,0,16,128,251,231,158,18,252,63,192,135,194,255,139,254,41,248,163,134,158,30,218,86,56,0,0,48,128, +251,231,191,2,32,44,240,183,226,214,11,72,12,32,255,194,73,13,236,127,248,32,128,255,231,182,22,220,63,240,94,129, +122,7,248,7,16,255,194,201,11,244,32,112,0,0,32,128,255,231,182,18,104,103,240,215,128,255,157,180,51,240,207,195, +127,159,48,71,248,0,0,48,128,255,231,190,18,200,63,241,146,70,121,31,36,103,176,18,0,200,134,34,112,248,0,0, +48,128,255,231,190,31,252,63,240,219,67,255,15,254,63,248,230,130,206,25,251,70,56,0,0,48,128,251,230,190,6,72, +17,249,255,226,56,15,126,61,96,191,230,198,19,60,91,24,0,0,48,128,255,230,182,7,248,48,32,255,131,255,12,252, +62,248,255,195,123,13,236,127,248,48,128,251,231,223,18,40,126,128,99,231,248,151,222,126,96,241,131,207,22,102,25,8, +0,0,16,128,255,231,190,18,200,63,248,146,3,255,137,38,63,249,162,100,239,22,34,94,248,0,0,48,128,255,231,191, +18,72,84,249,123,7,236,31,190,78,145,250,70,73,31,228,127,144,0,0,32,128,255,229,182,31,254,63,240,183,67,255, +15,252,63,240,255,193,255,31,254,3,0,0,0,48,128,255,230,154,18,72,62,224,179,99,255,28,14,95,232,127,129,254, +3,48,127,248,48,128,255,230,146,3,48,127,248,51,7,255,143,252,51,48,255,195,255,7,56,112,56,0,0,32,129,255, +228,178,31,254,72,161,255,227,198,27,254,31,240,192,195,255,12,12,63,240,0,0,32,128,255,231,190,27,8,124,233,247, +227,210,137,126,61,217,245,71,247,25,220,67,216,0,0,48,128,255,231,190,18,180,47,248,223,224,109,153,182,7,248,80, +195,255,136,140,64,96,0,0,32,128,255,231,182,16,206,54,121,244,163,124,141,190,123,241,219,99,127,141,182,103,248,0, +0,32,128,255,231,182,6,24,126,240,102,199,255,149,226,127,168,231,163,230,148,54,17,136,0,0,16,128,251,231,255,150, +108,125,248,70,199,223,4,254,125,240,230,103,223,148,102,17,248,0,0,3,0,140,67,51,4,200,19,33,255,231,255,129, +224,15,192,109,131,51,24,198,3,0,0,0,2,0,12,0,124,7,28,115,25,109,128,180,31,254,127,248,63,1,182,28, +206,67,0,0,0,3,32,108,129,182,31,254,7,192,109,199,49,128,192,127,249,255,224,120,15,60,112,56,0,0,16,65, +81,5,196,30,146,18,73,249,35,36,142,146,126,73,201,37,36,132,254,16,24,0,0,16,1,87,229,67,159,12,16,97, +241,131,63,142,126,124,97,209,133,6,4,24,17,192,0,0,16,33,82,133,219,30,68,19,25,252,99,63,142,36,124,145, +198,69,17,4,204,22,112,0,0,16,1,223,231,247,158,210,51,73,253,35,63,142,254,123,9,204,7,48,204,195,49,248, +0,0,16,65,209,7,196,30,254,48,1,244,67,17,14,68,121,177,198,135,10,12,254,51,248,0,0,16,65,83,5,76, +30,254,51,25,252,99,49,142,254,127,25,204,101,49,132,254,19,248,0,0,16,1,87,197,81,31,68,17,241,247,195,17, +14,68,125,241,84,69,17,4,230,23,248,0,0,16,65,81,5,68,23,31,16,65,241,3,140,14,254,127,9,92,45,48, +132,254,19,248,0,0,3,0,204,195,255,24,198,127,248,255,193,50,6,216,127,248,63,1,246,28,206,67,8,0,0,16, +1,95,245,240,30,254,51,251,253,3,55,142,222,126,73,203,37,40,133,166,21,184,0,0,16,1,255,231,158,30,40,51, +249,250,163,42,140,170,122,169,236,227,32,140,254,50,24,0,0,0,1,255,224,72,15,252,36,144,255,195,255,6,200,27, +97,255,224,252,14,222,99,24,0,0,1,1,204,97,127,129,36,57,225,156,192,112,134,216,27,97,255,224,252,28,206,67, +8,0,0,2,0,255,194,181,11,244,39,144,161,67,255,0,0,127,248,96,129,255,0,8,1,224,0,0,114,57,203,225, +104,133,226,119,57,31,132,54,28,222,23,136,122,33,160,132,134,114,56,0,0,3,32,109,135,255,159,254,31,225,204,224, +132,15,252,12,193,255,231,255,135,60,112,24,0,0,16,65,85,133,127,159,198,19,249,252,99,49,142,254,127,105,76,197, +51,4,246,19,8,0,0,32,0,95,134,83,11,78,27,40,153,134,76,6,200,27,97,255,224,252,14,220,99,24,0,0, +8,0,63,227,193,159,188,102,112,119,231,16,148,200,27,97,255,224,252,30,222,99,24,0,0,16,1,255,231,140,30,254, +50,201,255,227,45,142,254,127,249,207,11,24,12,248,54,56,0,0,16,65,81,133,255,158,68,17,49,254,195,47,142,144, +127,249,207,229,4,4,16,16,64,0,0,8,0,173,167,247,159,212,62,81,167,66,159,15,244,127,81,213,163,122,137,202, +65,0,0,0,16,65,243,135,255,158,130,51,249,247,131,0,12,254,120,65,237,71,36,141,146,49,192,0,0,48,65,239, +231,140,30,254,48,195,239,227,31,14,198,123,249,236,111,63,140,198,51,48,0,0,48,129,230,135,191,30,246,51,249,239, +227,53,141,50,123,33,227,111,51,12,56,51,128,0,0,16,17,247,199,142,30,254,49,249,245,195,44,12,16,127,249,231, +135,31,12,214,52,72,0,0,33,1,175,231,161,31,190,54,249,251,3,47,140,232,122,249,139,238,39,8,182,35,136,0, +0,32,9,255,231,180,158,220,51,193,251,227,63,12,198,123,249,236,103,63,140,198,51,48,0,0,33,41,173,231,182,159, +250,51,121,237,163,126,141,254,124,249,147,174,124,137,242,32,88,0,0,49,33,239,199,239,159,174,49,177,239,195,103,140, +252,123,25,239,239,63,140,198,51,248,0,0,32,16,164,199,155,31,254,50,35,232,131,110,141,222,127,81,236,234,106,137, +254,36,196,0,0,17,17,246,71,191,158,254,48,65,255,227,12,14,48,127,249,192,11,42,141,170,52,168,0,0,32,64, +239,231,191,158,152,50,251,255,227,39,140,254,126,97,223,239,81,141,102,61,248,0,0,16,65,87,197,127,159,254,19,25, +255,227,63,142,60,124,81,79,229,14,4,108,23,24,0,0,32,32,178,135,239,158,232,48,251,227,227,239,140,190,122,137, +139,234,47,137,224,36,248,0,0,1,1,255,230,66,31,190,110,113,191,199,74,152,8,101,161,255,228,60,19,108,89,152, +0,0,48,161,255,231,154,30,254,50,169,239,227,42,140,254,123,249,236,111,63,140,198,51,248,0,0,0,0,131,7,255, +159,254,127,240,217,111,255,141,150,119,241,253,39,95,45,124,54,76,227,0,0,0,32,1,189,231,149,158,94,55,33,241, +195,111,141,234,121,249,229,230,18,136,254,38,232,0,0,32,1,239,231,255,159,178,51,249,239,195,4,13,254,120,201,239, +231,42,140,170,50,184,0,0,0,0,24,0,196,14,112,63,128,24,129,195,31,254,35,8,109,131,51,24,198,71,8,0, +0,0,96,255,128,96,3,16,63,128,252,0,195,15,252,35,24,109,131,51,24,198,7,0,0,0,3,1,255,225,142,3, +240,31,225,249,225,220,7,224,30,113,255,225,48,12,204,103,24,0,0,3,1,255,224,48,15,252,127,249,255,225,204,15, +224,30,113,255,225,150,12,204,103,24,0,0,3,1,255,231,255,128,192,127,249,25,33,252,7,200,63,241,252,97,150,12, +204,103,8,0,0,8,1,175,198,155,26,56,105,240,60,225,200,15,224,30,113,255,225,176,12,204,103,24,0,0,8,128, +182,102,255,26,98,126,249,153,1,252,15,224,14,112,255,225,52,140,204,103,24,0,0,0,0,255,195,51,15,252,63,240, +255,193,220,15,200,30,113,255,225,52,12,204,71,24,0,0,16,128,195,66,159,154,228,250,241,193,130,143,31,198,75,249, +100,101,209,149,126,65,248,0,0,16,1,251,231,105,153,38,28,248,255,228,228,7,224,14,48,255,225,180,12,204,103,24, +0,0,16,129,255,193,143,15,100,121,208,77,115,200,135,224,30,32,255,195,181,142,220,103,24,0,0,24,97,255,225,134, +7,248,31,225,255,225,166,31,38,95,8,121,195,245,134,220,103,24,0,0,16,192,243,231,255,153,252,126,97,23,229,220, +15,224,30,113,255,225,148,12,76,103,24,0,0,16,0,207,226,160,154,170,242,233,203,162,164,159,254,78,137,42,37,174, +149,130,66,24,0,0,1,1,255,230,66,31,254,110,113,183,231,82,25,176,111,145,191,229,216,147,108,83,8,0,0,32, +65,251,231,253,10,252,126,97,187,227,232,135,240,31,96,255,195,176,14,220,103,24,0,0,4,17,247,229,36,21,180,37, +240,241,199,205,150,126,126,97,106,229,250,159,202,118,96,0,0,16,16,207,226,142,30,254,241,233,205,130,142,31,254,78, +169,111,229,170,151,186,66,152,0,0,0,0,143,226,255,151,178,243,249,207,226,132,31,254,72,201,47,229,170,151,170,82, +184,0,0,0,0,194,3,255,155,104,63,240,255,195,255,15,252,127,248,251,198,253,135,252,27,64,204,192,0,0,16,0, +207,226,183,154,254,115,241,207,226,191,158,254,74,169,35,5,191,148,48,71,248,0,0,3,0,255,199,255,135,252,51,176, +220,195,255,15,124,60,240,243,199,255,143,46,121,104,0,0,0,0,48,1,128,12,128,118,1,240,1,128,12,0,126,1, +0,0,96,31,128,0,0,16,16,68,99,25,137,102,125,153,230,97,25,141,102,125,249,15,224,209,159,6,0,24,0,0, +16,0,79,227,6,10,16,120,67,239,227,63,138,16,120,64,1,1,196,30,16,1,192,0,0,16,0,79,227,63,155,16, +120,67,225,3,4,28,16,120,64,1,1,132,31,255,0,0,16,16,192,195,3,26,254,123,251,224,195,19,31,108,248,176, +0,193,195,30,12,0,240,0,0,16,16,71,227,22,9,16,108,67,225,129,63,204,16,124,64,1,0,196,31,16,0,64, +0,0,16,128,70,3,31,137,254,110,3,239,195,7,8,24,124,193,6,0,208,159,194,1,248,16,128,70,3,24,10,126, +123,11,232,35,24,136,50,124,89,0,96,193,159,6,0,112,0,0,16,0,207,194,27,26,72,121,35,197,227,25,158,228, +243,241,9,131,230,25,190,5,136,0,0,16,128,66,3,8,9,252,121,177,230,195,57,15,228,121,241,5,65,241,31,135, +6,24,0,0,16,64,65,131,63,154,192,123,3,236,3,48,30,192,123,0,8,3,224,25,128,4,0,0,0,16,0,79, +227,1,137,6,124,27,228,99,31,156,64,125,0,4,0,208,223,102,1,248,16,0,79,227,63,136,18,121,75,237,35,44, +138,182,120,153,2,97,217,156,196,6,112,0,0,16,192,195,2,63,154,48,123,243,207,195,12,11,254,120,200,3,33,204, +156,54,0,192,0,0,16,0,199,227,31,10,0,120,3,239,227,63,142,32,121,145,4,65,177,158,254,0,8,0,0,16, +64,65,3,63,202,16,122,73,233,35,36,138,146,123,249,3,225,196,158,19,0,120,0,0,18,0,201,130,38,26,154,123, +123,207,195,38,30,152,122,96,9,131,174,217,250,6,56,0,0,16,64,65,3,5,10,214,123,75,233,35,36,24,22,120, +81,0,193,198,28,112,7,0,0,0,16,0,207,226,32,155,138,127,235,203,35,44,137,178,126,233,10,161,240,159,130,2, +56,0,0,16,64,193,2,4,10,254,123,251,203,35,44,136,186,123,184,12,225,224,158,130,2,56,0,0,17,32,204,130, +50,26,200,123,35,204,131,51,24,220,123,240,27,193,237,159,50,12,136,0,0,16,64,195,130,14,26,108,123,27,220,35, +19,26,124,249,192,6,1,208,158,102,0,240,16,32,70,131,27,26,68,123,27,236,99,63,154,36,120,144,6,65,209,60, +204,6,112,0,0,16,16,79,227,54,10,152,122,97,237,131,63,142,136,122,33,8,129,227,222,254,3,24,0,0,16,128, +195,2,4,25,255,123,19,196,67,19,10,108,120,225,3,129,142,28,238,6,8,0,0,16,64,193,2,63,154,254,120,131, +198,67,31,154,102,249,24,4,97,177,29,132,6,112,0,0,16,16,79,227,9,154,38,120,155,230,67,63,30,100,121,144, +6,65,145,29,254,7,248,16,0,207,226,3,26,120,120,99,207,227,63,154,22,120,80,1,1,132,62,16,1,192,0,0, +16,128,67,195,13,10,254,123,193,227,99,63,142,178,120,89,1,193,206,28,255,2,56,0,0,17,16,68,67,49,136,255, +125,19,228,67,17,12,124,121,17,4,65,209,30,124,1,16,0,0,16,64,205,66,53,10,212,127,255,207,99,53,10,212, +123,113,13,193,240,30,254,0,0,17,32,70,195,17,11,254,121,129,230,1,31,136,100,123,209,13,193,230,29,188,5,152, +0,0,16,128,198,2,127,154,64,127,195,207,3,36,27,254,120,65,13,67,229,153,18,1,192,0,0,16,0,71,195,17, +8,68,105,241,231,193,17,12,68,121,241,4,65,209,28,198,7,248,16,64,65,3,63,139,254,126,75,239,227,45,136,146, +127,249,11,32,132,30,16,0,64,0,0,16,0,79,227,36,136,146,126,75,233,35,63,140,210,122,72,9,32,228,158,254, +2,8,16,0,79,227,49,136,134,106,27,232,99,63,136,252,120,1,4,193,241,31,134,6,8,0,0,16,128,199,66,31, +155,236,126,227,227,131,27,25,198,120,224,0,128,152,62,56,0,48,0,0,16,128,195,195,31,154,68,123,51,239,227,63, +158,2,121,248,7,225,128,156,254,0,24,0,0,16,64,201,98,53,154,84,120,195,207,227,4,26,16,255,248,3,1,132, +30,16,0,64,0,0,17,160,198,130,127,154,122,89,235,223,227,122,25,250,127,249,4,161,146,158,206,6,32,0,0,16, +64,193,3,37,154,150,122,91,239,227,4,30,146,122,72,9,33,228,156,254,0,24,0,0,16,0,79,227,8,136,34,105, +155,236,227,35,14,126,123,249,12,97,241,158,254,3,248,0,0,16,0,111,240,132,67,79,7,142,30,119,13,146,53,252, +123,248,1,128,63,243,194,0,4,0,0,0,16,0,79,227,3,26,24,120,227,238,227,96,158,254,251,240,1,1,132,28, +56,7,248,16,128,66,3,26,26,68,123,27,255,227,0,154,124,123,248,12,97,241,158,254,3,248,0,0,33,0,141,226, +126,152,218,91,123,223,194,55,152,218,127,232,13,163,167,153,152,4,96,0,0,16,80,65,98,6,139,255,120,99,197,163, +54,137,252,121,48,12,193,163,29,159,0,152,0,0,16,64,193,3,63,154,24,120,67,239,227,0,30,0,251,248,12,96, +241,190,254,3,248,0,0,16,128,194,2,127,152,104,123,19,255,243,0,11,254,121,1,15,193,129,28,4,0,240,0,0, +17,0,198,2,63,154,38,120,243,199,163,51,152,4,127,248,4,129,146,28,202,6,56,0,0,1,0,205,226,96,25,64, +83,123,207,226,97,25,132,114,16,8,67,161,24,132,2,112,0,0,16,64,195,2,30,26,204,95,27,223,227,0,30,254, +243,248,6,131,177,25,254,7,136,0,0,16,64,195,3,14,26,108,123,59,223,227,0,26,252,123,240,12,65,177,30,252, +3,240,0,0,17,0,196,2,63,154,254,127,11,239,163,54,158,250,251,104,15,161,252,156,6,0,112,0,0,16,128,199, +194,63,11,232,120,227,206,227,100,158,254,114,224,9,3,255,152,16,0,64,0,0,16,128,71,195,63,155,196,126,227,227, +131,63,159,198,123,248,12,97,177,156,254,3,24,0,0,16,128,71,131,63,11,136,127,251,239,99,37,154,246,123,248,8, +1,224,158,194,1,248,16,192,193,2,63,154,76,121,51,236,99,115,152,72,121,224,3,1,142,28,236,6,24,0,0,16, +64,193,3,63,154,112,121,147,236,227,127,158,72,121,32,4,129,178,157,138,6,56,0,0,16,0,223,226,12,25,254,126, +203,223,227,109,153,254,123,249,10,1,184,30,248,14,120,0,0,16,64,201,34,21,154,84,123,251,204,99,49,154,254,122, +8,15,225,177,158,130,2,56,0,0,16,0,71,227,17,154,126,120,3,207,227,49,154,254,123,248,12,97,191,158,130,2, +56,0,0,16,48,207,194,4,26,255,121,243,205,99,36,154,252,121,176,6,225,144,156,194,6,56,0,0,16,16,207,194, +0,26,150,122,83,226,3,28,11,254,121,49,12,129,158,28,124,7,24,0,0,16,128,71,195,63,11,236,120,227,231,195, +117,136,48,123,249,1,1,181,157,146,0,192,0,0,16,32,200,162,42,155,172,122,251,207,227,39,26,188,123,168,8,129, +226,28,254,3,248,16,16,196,194,63,25,254,120,219,223,227,108,29,254,119,248,7,35,189,153,190,0,192,0,0,16,64, +79,227,12,10,254,120,195,223,227,63,8,254,122,88,9,97,172,158,108,7,8,0,0,16,128,195,34,63,138,44,127,251, +223,227,24,8,254,127,25,7,225,145,158,126,1,248,0,0,16,64,207,194,63,26,16,127,251,196,195,121,152,124,123,240, +28,193,142,28,124,7,24,0,0,16,64,79,194,63,10,50,123,251,197,99,12,30,208,119,248,15,227,138,24,198,6,8, +0,0,16,64,207,226,63,154,56,123,187,204,99,127,216,4,123,208,9,65,189,30,132,0,112,0,0,16,160,198,131,59, +152,238,121,163,206,227,59,152,104,127,184,30,225,154,60,104,1,160,0,0,16,64,65,227,7,136,126,107,251,239,227,63, +138,254,123,249,1,1,255,222,16,0,64,0,0,16,64,89,34,53,138,84,123,251,223,227,104,159,250,119,168,31,163,254, +153,130,6,56,0,0,16,0,207,226,33,152,254,122,27,207,227,32,10,152,123,249,9,129,166,29,251,7,56,0,0,16, +0,207,227,33,154,254,120,67,207,227,36,154,254,122,200,15,225,172,156,19,0,120,16,0,198,130,18,10,254,127,35,223, +227,63,138,200,123,249,13,129,242,30,255,3,0,0,0,16,64,79,195,63,138,254,123,27,207,227,12,30,254,123,248,9, +35,164,152,150,0,64,0,0,16,16,95,195,37,154,212,127,251,255,243,64,138,254,123,16,6,193,142,28,252,7,28,0, +0,1,32,223,226,94,153,122,87,251,215,162,94,153,254,119,248,23,35,220,154,114,11,216,0,0,16,0,207,226,36,138, +186,122,203,203,35,46,138,186,122,233,26,161,206,159,2,12,56,0,0,1,16,206,194,63,25,190,95,179,198,195,63,159, +142,243,240,12,99,177,152,254,3,248,0,0,16,64,207,66,29,26,254,120,131,223,227,59,152,254,127,232,4,129,150,28, +66,1,248,0,0,16,64,193,2,63,139,130,121,243,199,195,0,11,254,120,64,13,65,165,159,147,1,192,0,0,16,64, +193,3,63,152,130,122,11,239,227,4,24,208,123,120,13,1,180,61,184,4,120,0,0,16,64,193,2,127,155,130,123,243, +204,67,63,8,252,123,1,15,225,177,158,254,3,248,0,0,16,16,207,226,1,154,254,120,19,207,243,4,24,214,121,112, +7,129,181,156,146,0,192,0,0,0,0,223,226,17,153,220,83,51,217,162,0,31,254,113,72,29,227,179,25,222,12,200, +0,0,17,72,205,98,45,11,172,123,91,197,163,63,138,254,122,73,15,225,164,158,254,3,248,0,0,17,16,204,194,127, +154,76,121,243,207,195,63,136,150,123,249,1,1,255,222,16,0,64,0,0,2,0,205,226,52,155,242,123,121,205,162,52, +141,254,127,121,13,35,180,152,222,3,104,0,0,0,32,192,162,63,155,254,127,161,222,163,123,141,254,119,113,23,195,215, +25,29,4,216,0,0,16,0,223,226,12,26,48,123,251,202,163,46,154,170,122,168,11,161,170,156,254,3,248,0,0,16, +160,222,130,127,155,244,127,155,192,3,63,30,132,114,208,11,67,172,24,114,6,120,0,0,16,0,79,227,49,138,254,123, +27,231,195,63,136,254,123,64,13,225,244,31,240,4,120,0,0,32,32,156,194,87,153,94,87,251,215,242,91,25,206,117, +24,20,65,115,29,24,0,192,0,0,0,0,207,226,49,154,254,120,3,223,227,49,154,254,251,24,15,225,191,157,254,0, +24,0,0,16,192,223,226,109,153,254,120,195,223,227,63,25,134,126,217,27,97,173,30,108,7,24,0,0,16,0,207,226, +37,154,254,122,219,235,99,63,158,16,127,72,29,161,208,157,78,1,224,16,16,207,194,4,26,254,123,251,205,67,127,152, +246,123,208,31,225,132,28,48,3,248,1,16,221,194,101,25,212,95,219,218,35,119,157,254,118,88,31,195,227,25,158,6, +200,0,0,34,0,143,226,102,21,190,87,171,255,226,126,153,254,118,225,31,131,236,25,188,7,152,0,0,18,0,203,194, +33,9,254,126,249,218,3,111,157,200,119,248,31,227,231,25,182,7,136,0,0,0,32,209,130,47,152,38,88,251,219,194, +44,28,190,114,136,11,99,175,153,224,4,248,0,0,16,48,223,194,45,154,148,127,251,196,3,127,154,64,123,240,14,67, +238,57,188,15,152,0,0,16,64,207,226,63,154,76,123,251,219,35,100,154,254,122,88,9,97,165,156,148,0,64,0,0, +16,64,205,98,21,27,254,121,243,205,99,4,24,48,127,248,4,193,190,28,60,3,152,0,0,16,64,203,130,63,154,130, +123,251,200,3,63,152,254,119,104,31,227,246,153,90,5,24,0,0,18,0,207,226,63,154,152,123,251,201,131,123,218,134, +123,248,8,97,191,156,198,3,248,0,0,17,0,71,195,51,10,252,123,249,223,227,56,143,188,113,241,25,195,159,153,210, +0,192,0,0,16,0,223,226,10,154,174,123,179,223,227,127,154,254,251,24,15,225,177,158,254,3,248,0,0,16,80,207, +227,63,154,254,122,219,239,227,63,152,182,250,48,31,224,147,30,44,0,112,0,0,18,0,223,226,111,27,128,127,255,218, +163,107,25,246,126,48,31,225,217,31,36,8,112,0,0,16,64,79,227,63,138,252,123,27,239,227,63,138,198,123,249,15, +225,255,156,206,6,8,0,0,0,64,211,226,125,26,156,88,243,254,163,127,152,152,122,240,15,227,230,25,200,8,248,0, +0,16,192,195,2,127,154,252,123,19,207,195,0,25,254,126,9,31,163,242,153,250,6,24,0,0,16,64,223,226,96,27, +254,127,107,223,227,118,159,254,118,96,23,227,198,25,24,15,248,0,0,16,192,223,226,127,154,190,122,219,206,227,63,152, +48,127,249,26,161,254,157,194,6,56,0,0,18,16,196,194,18,25,254,121,35,204,194,97,153,254,123,248,10,161,170,157, +254,7,252,18,0,196,130,127,154,120,91,251,199,227,127,156,126,119,248,13,195,183,25,94,5,104,0,0,16,64,195,130, +127,155,142,123,243,204,3,63,156,200,123,32,31,227,146,24,206,6,8,0,0,16,0,223,226,30,26,254,122,171,207,227, +0,24,124,123,248,15,225,181,29,146,4,200,0,0,16,0,204,99,63,154,198,121,243,207,227,42,154,254,123,249,12,225, +159,28,120,7,56,0,0,16,0,207,226,45,154,254,123,251,207,195,62,24,244,123,184,31,225,149,28,150,2,200,0,0, +0,0,223,226,109,155,182,94,235,204,194,127,152,50,127,248,12,193,62,28,124,7,24,0,0,16,192,207,226,127,139,130, +123,251,201,131,111,155,190,114,136,11,227,168,152,190,2,248,0,0,0,0,223,226,59,154,102,127,187,195,35,14,25,206, +112,192,13,129,185,156,24,7,128,0,0,18,72,203,67,45,26,214,123,251,207,227,45,154,254,120,192,31,225,158,28,214, +6,72,0,0,2,0,139,226,242,24,158,82,75,253,162,6,153,218,125,104,53,163,242,27,222,0,200,0,0,16,64,207, +226,63,154,234,123,51,223,227,115,154,252,123,240,3,1,189,29,182,1,192,0,0,17,16,68,194,63,136,252,123,243,223, +227,61,24,252,127,248,15,224,177,158,198,3,248,0,0,1,16,196,130,127,155,182,125,251,211,163,127,152,0,123,240,12, +65,191,28,252,3,240,0,0,16,0,207,226,63,154,254,122,219,207,195,127,154,0,123,248,15,225,191,156,0,7,248,16, +0,215,226,86,153,126,81,251,211,194,127,157,254,119,248,31,227,255,155,192,9,248,0,0,1,224,207,194,51,26,124,127, +187,211,163,127,152,48,119,248,31,227,159,25,182,4,200,0,0,16,0,223,226,126,154,254,95,251,192,3,63,158,134,115, +248,15,35,243,24,254,3,136,0,0,2,32,222,130,74,27,239,92,235,223,162,54,155,236,114,48,14,195,235,25,62,15, +200,0,0,4,80,223,226,55,27,254,85,179,213,114,4,25,254,118,152,27,99,169,24,108,7,24,0,0,24,0,96,3, +255,12,192,99,0,12,7,255,128,192,35,16,140,66,49,15,252,63,240,0,0,128,6,31,159,126,80,96,65,135,230,6, +24,80,97,89,133,102,23,152,127,252,0,0,32,65,129,7,223,20,126,16,89,241,99,159,149,126,84,225,83,133,203,31, +102,3,8,0,0,0,1,255,229,122,149,250,94,232,243,197,24,135,252,35,1,255,226,49,8,196,63,240,0,0,24,161, +251,199,217,143,102,127,241,251,132,31,151,252,51,1,255,227,51,12,204,63,240,0,0,32,65,129,231,214,148,254,19,249, +253,35,35,148,254,86,169,91,231,255,159,136,6,96,0,0,65,145,159,231,155,20,238,18,169,254,227,22,20,254,95,97, +125,135,191,158,216,3,248,0,0,127,249,128,102,101,157,214,125,217,179,102,205,155,190,123,185,196,102,1,152,30,0,0, +0,1,255,230,5,153,50,127,233,255,166,48,159,250,108,9,176,38,252,152,6,96,56,0,0,0,1,255,230,1,147,50, +56,113,128,99,255,0,192,3,1,255,224,48,0,192,3,0,0,0,0,1,255,230,73,155,38,127,248,16,0,255,14,12, +108,96,27,0,56,7,128,120,0,0,0,0,1,255,230,73,155,54,127,248,0,7,255,128,192,15,192,237,199,49,128,192, +3,0,0,0,0,1,255,230,73,159,254,48,16,96,96,137,156,38,120,152,98,97,225,135,4,16,112,0,0,0,0,255, +194,73,15,252,63,240,12,7,255,128,192,31,240,255,195,3,15,252,63,240,0,0,0,1,255,230,73,159,254,63,240,0, +7,255,128,192,19,240,79,193,48,31,254,127,248,0,1,255,230,73,155,54,127,248,12,3,255,128,192,127,249,255,225,134, +15,252,127,152,0,0,0,0,255,226,73,143,252,127,249,255,227,182,31,254,115,56,127,129,254,4,194,1,248,0,0,0, +1,255,230,73,143,252,3,240,12,3,255,15,252,48,48,255,192,48,31,254,3,0,0,0,0,1,255,230,73,159,254,4, +129,243,231,207,131,48,124,248,18,7,207,131,48,4,128,0,0,0,1,255,230,205,143,252,127,248,12,3,254,15,252,48, +48,255,195,255,12,12,127,248,0,1,255,230,73,143,252,127,249,255,227,255,9,38,47,216,140,98,253,136,198,35,48,0, +0,0,1,255,230,73,143,252,31,208,255,199,255,159,254,31,241,224,192,255,2,12,15,240,0,0,0,1,255,230,201,159, +254,3,0,255,192,112,31,254,24,96,255,194,1,9,36,68,136,0,0,0,1,255,230,73,143,254,17,64,239,231,255,149, +216,87,248,77,129,63,132,216,19,248,0,0,0,0,255,194,217,15,252,12,193,255,230,189,159,252,31,224,64,193,255,4, +12,31,240,0,0,0,1,255,231,255,143,252,127,241,176,67,201,31,110,95,249,248,33,159,159,6,16,112,0,0,24,32, +33,131,255,31,254,3,0,12,3,255,0,192,3,1,255,224,48,0,192,3,0,0,0,8,96,33,3,255,143,252,3,0, +255,192,32,31,254,7,128,22,1,216,142,98,96,248,0,0,24,96,33,7,255,128,192,63,240,12,7,255,159,254,127,249, +255,224,120,15,60,112,56,0,0,24,96,33,7,255,143,252,3,0,255,192,48,0,192,127,248,0,2,73,25,38,68,200, +0,0,4,65,177,130,142,31,44,17,217,237,167,192,4,126,124,16,192,131,14,24,24,64,32,0,0,72,17,167,195,190, +31,152,50,97,239,231,191,140,136,126,32,200,130,39,88,222,67,88,0,0,8,64,35,7,255,129,128,63,240,24,7,255, +135,8,63,241,204,196,255,0,204,63,248,72,0,175,227,131,31,24,16,225,238,231,176,132,126,253,240,193,3,4,24,24, +67,248,0,0,8,64,255,195,255,15,252,3,1,255,224,48,28,254,22,152,18,67,28,24,204,14,24,0,0,0,137,250, +97,105,31,254,54,96,249,135,207,136,8,126,97,159,242,98,15,136,60,32,0,0,4,193,178,194,155,31,254,16,177,230, +103,252,132,60,125,241,254,194,14,24,124,67,24,0,0,8,1,175,226,177,159,254,51,249,231,199,191,132,254,126,73,239, +162,59,152,126,64,56,0,0,72,65,169,35,191,158,254,51,1,255,231,146,12,234,123,168,203,194,39,25,182,69,136,0, +0,8,64,255,192,48,15,252,3,1,255,231,203,31,254,62,145,251,195,198,15,122,13,56,0,0,3,1,255,227,255,7, +252,63,240,255,195,87,31,220,127,81,221,199,191,23,245,114,152,0,0,8,64,255,225,255,7,252,127,249,146,103,255,143, +252,63,240,255,199,255,131,224,120,120,0,0,32,0,255,227,255,137,152,47,240,159,130,255,138,212,127,249,185,196,231,23, +254,88,32,0,0,0,1,247,224,65,129,6,100,152,211,96,65,131,14,60,249,158,96,65,129,6,28,112,0,0,0,1, +247,226,73,141,54,28,121,215,96,65,130,16,127,249,255,224,132,14,16,96,64,0,0,8,64,97,135,99,147,50,31,224, +96,135,223,143,62,52,216,81,99,207,153,102,12,56,0,0,16,0,79,231,200,140,170,19,185,242,38,217,154,254,42,136, +194,35,187,159,128,71,248,0,0,32,0,223,227,8,158,34,2,169,106,165,136,156,102,115,184,91,167,136,144,34,3,184, +0,0,0,1,247,226,73,141,54,28,121,215,96,97,0,192,63,240,33,128,132,3,48,127,248,16,0,79,227,140,139,122, +117,248,71,99,204,143,54,9,248,107,163,12,132,50,9,152,0,0,0,1,255,226,105,133,182,30,121,223,96,48,7,248, +48,48,255,195,255,12,12,63,240,0,0,72,1,47,229,136,191,162,50,169,238,167,136,140,102,251,184,219,162,8,152,34, +67,184,0,0,3,0,30,1,206,29,238,31,224,96,129,254,31,124,39,152,219,97,231,157,230,12,48,0,0,0,0,215, +231,206,133,122,25,249,235,100,237,129,126,126,232,163,34,153,154,2,71,248,0,0,0,1,255,227,109,133,158,126,248,60, +65,255,12,224,127,240,68,1,255,4,96,31,248,0,0,0,1,255,227,109,135,158,119,216,12,7,255,130,16,28,224,140, +71,255,128,192,3,0,0,0,4,129,243,224,72,15,60,124,249,243,224,72,31,254,38,152,217,97,231,153,230,12,56,0, +0,6,0,255,135,255,135,224,127,241,127,193,255,3,60,127,248,219,97,231,157,230,12,48,0,0,8,65,255,227,225,15, +164,62,144,250,66,99,31,60,126,248,219,97,231,157,246,12,56,0,0,24,0,103,231,228,144,154,126,217,131,103,228,157, +150,127,249,253,39,100,189,146,38,216,0,0,0,1,255,227,196,159,26,100,216,243,103,228,145,150,90,249,237,165,164,148, +146,86,216,0,0,16,96,227,135,219,4,198,127,249,55,231,222,159,126,124,200,231,231,254,132,50,17,152,0,0,16,1, +247,230,68,159,90,69,249,243,99,4,159,182,101,249,69,167,196,134,50,17,248,0,0,0,241,243,197,217,159,124,92,241, +193,135,255,143,60,62,248,218,97,231,157,246,12,56,0,0,12,1,247,229,196,159,90,125,216,243,101,164,159,54,127,249, +253,39,228,159,146,102,216,0,0,4,17,247,227,77,159,126,63,240,204,195,255,15,252,12,193,255,231,255,135,56,112,56, +0,0,0,0,95,229,122,158,102,123,235,247,7,159,138,216,111,249,165,133,255,150,88,65,248,0,0,6,0,24,99,255, +1,152,6,193,255,224,112,3,8,125,225,188,0,193,131,6,7,240,2,0,24,67,255,0,152,127,248,30,0,240,15,252, +108,0,63,128,2,0,24,3,192,0,0,6,0,255,192,110,31,254,15,225,254,32,127,3,240,34,112,254,0,127,159,130, +3,248,0,0,6,0,24,67,255,1,152,127,249,255,224,224,15,252,120,48,63,192,131,2,12,15,240,0,0,6,0,255, +192,102,31,254,7,0,127,199,193,1,252,31,240,192,195,255,12,12,63,240,0,0,4,0,255,192,110,31,254,31,241,248, +96,127,31,254,28,96,255,195,255,0,192,127,248,0,1,255,224,48,0,128,127,249,179,102,73,153,38,100,153,146,102,73, +153,38,100,240,0,0,0,1,255,224,48,15,252,36,144,146,66,75,1,128,127,248,97,1,252,3,248,124,56,0,0,0, +17,252,97,129,134,62,127,249,92,101,125,149,214,87,89,92,101,113,149,196,67,112,0,0,3,0,12,7,255,128,192,63, +240,255,192,48,31,254,7,128,63,1,182,28,206,67,8,0,0,16,1,247,231,193,134,12,124,96,65,135,255,206,24,60, +97,241,133,6,20,24,17,192,0,0,16,144,194,71,203,4,254,120,144,66,71,201,30,255,57,177,246,69,17,4,196,18, +16,0,0,16,64,225,7,197,4,86,127,72,77,39,228,30,22,56,89,240,197,6,4,112,23,0,0,0,16,16,225,199, +252,4,16,124,248,79,135,196,31,62,59,241,241,5,4,132,19,16,120,0,0,16,0,231,231,207,132,0,124,0,71,231, +223,159,48,56,209,242,69,25,132,254,19,136,0,0,16,0,207,231,247,132,210,127,72,77,39,255,158,254,59,9,252,5, +48,196,194,17,248,0,0,16,0,103,231,209,132,70,125,152,103,199,208,31,126,57,249,244,37,16,148,126,17,152,0,0, +16,64,195,7,206,4,108,127,24,79,231,192,31,124,59,241,252,69,49,4,252,19,240,0,0,16,145,239,231,191,140,36, +123,248,207,231,164,158,52,57,249,226,103,9,12,68,51,112,0,0,16,64,237,39,213,132,84,127,248,76,103,238,158,170, +58,169,219,165,40,132,130,18,56,0,0,16,0,207,231,244,140,254,127,72,207,231,196,30,255,58,77,249,247,63,196,131, +18,24,0,0,16,65,229,103,149,12,254,121,240,77,103,164,30,48,59,249,228,199,62,4,60,19,152,0,0,16,1,239, +231,175,140,128,127,248,74,231,175,30,182,58,49,255,231,105,5,52,20,48,0,0,17,161,239,231,155,12,254,121,176,207, +231,191,158,246,59,249,233,103,127,204,130,50,56,0,0,16,64,199,231,223,132,36,123,248,201,39,228,158,254,56,129,243, +229,25,132,70,18,48,0,0,32,65,239,231,233,13,254,127,216,223,231,233,31,254,62,193,247,239,121,141,38,60,248,0, +0,0,1,255,225,134,4,8,31,224,97,129,2,7,248,24,96,65,135,255,159,24,0,32,0,0,0,1,255,230,95,155, +12,124,49,144,198,195,31,12,100,49,184,199,195,1,12,4,224,0,0,0,1,255,230,105,137,36,60,144,146,194,73,15, +34,36,136,186,39,235,129,32,4,128,0,0,2,1,255,231,255,134,24,120,57,255,193,134,7,248,24,96,127,129,135,31, +254,0,96,0,0,8,64,97,1,142,15,108,97,17,255,227,3,7,248,16,32,127,129,3,31,254,0,32,0,0,0,33, +248,134,194,27,72,125,33,180,230,210,31,72,109,33,180,135,210,3,254,15,248,0,0,0,65,241,6,140,26,254,122,73, +169,39,142,30,56,104,225,179,135,222,130,219,10,56,0,0,0,65,249,6,196,27,82,125,89,189,70,229,31,16,108,225, +251,143,219,3,198,14,8,0,0,0,1,255,227,254,12,8,63,224,192,231,255,129,12,127,249,178,67,134,15,60,99,152, +0,0,0,65,241,6,191,154,222,123,73,175,230,183,158,210,107,249,255,239,240,130,198,11,56,0,0,0,65,241,134,142, +26,108,123,89,185,166,128,30,124,104,49,240,135,206,2,24,8,32,0,0,0,129,254,228,163,158,170,122,169,42,167,170, +158,170,74,169,254,175,155,2,200,10,32,0,0,6,193,255,231,255,131,124,27,205,255,230,128,31,254,31,224,64,129,254, +31,254,0,32,0,0,0,1,255,230,209,155,70,125,25,180,102,223,159,126,108,1,182,71,217,131,66,14,8,0,0,0, +65,241,4,191,154,130,122,9,32,7,191,158,16,72,65,241,7,196,2,16,9,192,0,0,0,17,255,198,132,26,16,123, +249,175,230,132,30,24,105,249,188,47,240,130,126,9,248,0,0,0,17,246,70,139,26,254,120,225,161,6,142,30,254,104, +193,243,135,203,2,102,15,8,0,0,0,65,255,230,183,154,254,123,89,175,231,128,31,255,105,129,247,239,193,130,6,8, +112,0,0,0,1,255,227,233,137,188,62,113,255,102,98,15,248,3,17,239,128,124,30,206,99,8,0,0,0,65,255,228, +164,154,254,120,193,63,230,191,158,198,75,89,253,103,172,130,108,15,8,0,0,1,17,246,70,139,26,254,123,25,172,103, +191,158,48,104,193,254,175,184,131,166,8,240,0,0,24,65,251,227,239,159,244,62,96,155,230,217,159,254,31,224,97,129, +254,31,254,0,32,0,0,24,225,251,199,249,159,252,126,241,247,228,27,159,254,31,224,97,129,254,31,254,0,32,0,0, +0,65,255,230,198,31,126,127,169,191,167,223,131,254,127,249,179,6,250,159,167,12,240,0,0,3,0,255,195,255,31,254, +127,248,12,195,255,0,192,63,240,12,7,255,128,192,3,0,0,0,3,0,255,195,255,0,204,127,248,12,67,255,0,192, +3,0,12,0,48,0,192,3,0,0,0,3,0,255,192,51,31,254,3,48,255,192,48,8,196,47,208,173,66,181,24,196, +67,16,0,0,64,65,231,198,31,145,126,127,249,129,231,223,148,24,125,249,241,3,191,139,16,68,64,0,0,0,64,247, +194,31,143,254,35,248,243,226,31,191,56,49,248,177,6,255,159,16,0,64,0,0,16,128,243,226,123,31,184,96,241,14, +97,255,31,254,31,240,127,131,255,31,254,3,0,0,0,1,0,12,7,255,159,254,103,25,159,103,199,152,198,99,25,159, +103,199,152,6,96,120,0,0,40,193,243,6,204,27,254,127,249,179,38,204,159,34,124,137,54,36,217,147,198,94,112,0, +0,41,33,247,198,211,27,76,125,49,180,198,211,31,76,125,49,52,196,211,211,207,94,24,0,0,3,1,255,231,255,140, +0,63,240,0,3,255,12,12,63,240,192,195,255,12,12,48,240,0,0,3,0,204,193,50,6,216,63,240,192,195,255,15, +252,48,48,255,195,3,12,12,48,224,0,0,40,17,240,198,195,27,254,127,249,176,198,211,31,108,124,177,48,196,195,19, +12,88,240,0,0,40,65,241,6,196,27,16,125,249,191,230,196,31,16,124,65,49,4,196,19,254,91,248,0,0,40,1, +247,230,223,155,24,124,97,177,134,198,31,24,124,97,49,132,198,19,254,89,248,0,0,36,17,240,198,78,25,96,124,25, +144,198,70,31,112,124,9,144,100,71,17,48,95,128,0,0,40,1,255,230,198,27,24,124,97,177,134,255,223,24,124,97, +49,132,198,19,24,88,96,0,0,40,1,239,228,128,26,0,127,249,166,4,152,30,126,121,249,32,100,129,146,4,88,240, +0,0,40,1,239,196,134,26,48,123,137,175,228,154,158,90,123,73,43,36,137,146,70,90,112,0,0,40,33,247,198,211, +27,76,127,25,184,102,255,159,254,125,17,54,132,206,19,124,95,24,0,0,40,65,225,4,191,154,254,120,65,175,228,191, +158,68,121,177,35,132,142,18,252,95,24,0,0,40,65,241,6,204,27,254,124,65,177,6,255,159,56,108,225,51,132,219, +19,198,94,8,0,0,56,1,255,230,244,155,210,127,73,189,230,255,159,194,111,1,60,36,240,211,194,89,248,0,0,3, +0,255,195,255,8,4,63,240,128,2,255,10,4,47,241,160,70,255,18,4,72,112,0,0,40,65,241,6,255,155,254,124, +129,179,70,207,159,38,125,153,54,100,209,147,198,94,112,0,0,40,65,225,4,255,218,16,122,73,169,36,164,158,146,123, +249,35,100,132,146,19,88,120,0,0,8,65,225,4,132,18,254,123,249,171,36,172,158,186,123,185,44,100,160,146,130,218, +56,0,0,40,129,227,6,255,155,254,120,1,167,198,147,30,76,121,49,44,196,179,83,143,94,56,0,0,3,0,79,193, +62,6,192,127,248,0,131,255,12,12,63,240,192,195,255,12,12,48,224,0,0,40,129,230,6,191,155,254,121,129,164,134, +150,30,88,121,81,45,100,189,147,190,90,136,0,0,3,1,255,231,255,134,24,63,240,128,65,254,4,8,31,224,64,129, +254,4,8,16,224,0,0,16,32,63,128,254,15,140,127,249,255,225,194,15,252,127,240,96,193,255,6,12,24,224,0,0, +41,1,230,6,159,154,126,123,73,185,36,132,30,24,120,225,35,132,155,18,198,90,8,0,0,40,65,225,6,255,218,16, +121,249,175,230,164,158,146,122,73,41,36,165,146,16,88,64,0,0,41,145,230,198,155,26,254,121,177,166,198,155,30,254, +123,249,36,196,147,18,204,90,48,0,0,40,65,225,6,132,26,16,127,253,163,132,142,30,56,120,161,38,196,153,19,246, +94,72,0,0,0,1,175,198,147,26,120,104,225,174,224,160,15,252,63,240,192,195,255,12,12,48,224,0,0,8,65,225, +4,132,18,254,122,249,169,36,164,158,254,123,249,41,4,132,18,16,88,64,0,0,41,1,228,100,147,26,88,121,65,175, +228,255,158,88,121,33,36,196,145,18,246,91,8,0,0,0,129,226,4,142,18,252,120,177,170,196,171,158,174,125,185,36, +196,146,18,200,90,224,0,0,40,65,225,4,191,154,182,122,73,175,228,165,158,146,123,249,43,100,132,18,16,216,64,0, +0,0,0,255,194,49,15,252,35,16,255,193,254,4,8,31,224,64,129,254,4,8,16,224,0,0,3,0,255,194,49,15, +252,35,16,255,193,254,12,12,63,240,192,195,255,12,12,48,224,0,0,40,1,247,230,209,155,70,125,153,183,230,209,159, +70,125,249,55,228,192,19,254,91,248,0,0,12,129,242,192,206,3,34,124,248,17,129,255,4,12,31,240,64,193,255,4, +12,16,224,0,0,0,25,239,196,173,18,180,122,209,43,68,173,30,164,122,153,58,164,234,147,122,92,136,0,0,8,129, +226,4,154,18,68,123,25,191,228,192,158,124,123,249,44,100,177,146,254,219,248,0,0,40,65,225,4,191,154,208,122,65, +169,4,191,158,254,120,201,39,36,149,146,150,88,64,0,0,0,65,233,102,181,154,84,120,193,175,230,132,30,16,127,249, +51,4,132,18,16,216,64,0,0,40,65,227,6,158,26,204,126,89,178,4,178,30,24,121,217,44,68,135,18,112,91,0, +0,0,40,129,246,6,223,155,254,126,193,187,230,207,159,48,124,249,51,228,204,19,48,88,192,0,0,40,1,239,228,134, +26,16,120,193,167,196,189,159,178,120,193,35,4,140,19,254,91,248,0,0,40,1,239,230,164,154,146,123,249,175,230,164, +158,254,123,249,41,36,132,18,16,88,64,0,0,40,65,229,4,180,26,254,123,249,185,4,132,30,254,121,249,33,4,132, +18,254,219,248,0,0,40,17,231,196,190,26,216,123,97,175,228,191,158,200,123,33,44,132,183,82,255,91,120,0,0,1, +1,228,6,191,146,198,127,201,191,164,182,158,254,123,249,44,196,176,146,194,89,248,0,0,24,0,99,225,137,159,162,24, +248,99,103,200,159,190,102,249,158,39,248,152,198,3,56,0,0,2,0,146,194,251,11,204,38,240,191,194,143,11,236,47, +177,178,198,251,210,47,73,152,0,0,0,1,255,225,49,12,248,63,1,159,225,254,7,252,31,240,64,193,255,4,12,16, +224,0,0,1,1,230,196,153,19,254,121,225,165,132,150,158,92,121,113,45,132,182,19,251,94,56,0,0,0,129,230,4, +255,146,96,121,65,109,4,191,158,252,120,65,45,100,164,147,146,217,192,0,0,40,193,243,6,207,155,48,124,193,191,230, +255,159,48,124,225,51,228,204,146,48,88,192,0,0,0,65,225,228,135,146,48,123,249,40,100,161,158,254,123,25,40,4, +160,19,128,222,0,0,0,40,1,239,198,131,26,24,120,225,174,228,224,158,254,123,241,33,4,132,18,56,95,248,0,0, +24,1,255,231,233,25,60,28,113,251,228,48,15,252,39,144,189,194,57,11,20,32,112,0,0,0,1,239,228,164,146,146, +122,201,175,228,164,158,186,122,233,46,228,176,146,254,219,248,0,0,8,193,227,4,255,146,108,123,25,191,244,128,31,254, +121,1,39,196,145,18,4,216,240,0,0,40,65,239,228,191,154,254,121,249,175,228,191,30,254,123,249,35,36,159,18,204, +94,24,0,0,32,65,233,38,181,154,84,121,81,175,230,191,158,104,121,161,36,132,146,210,203,94,56,0,0,40,65,225, +4,255,154,48,121,145,175,196,190,30,54,123,145,40,196,143,18,230,95,8,0,0,0,129,226,6,159,26,236,126,225,163, +134,143,31,230,123,249,36,100,145,146,126,217,248,0,0,40,1,239,228,160,154,186,122,9,171,164,174,158,170,122,169,43, +164,168,146,130,90,56,0,0,0,65,225,6,191,154,108,121,49,172,102,241,158,108,120,161,35,132,142,18,238,94,24,0, +0,41,1,236,4,191,155,130,125,73,175,228,171,158,190,123,121,40,228,255,146,2,88,56,0,0,0,65,225,6,191,146, +130,122,201,163,4,255,222,100,123,49,47,132,142,18,126,91,8,0,0,41,17,228,68,155,26,254,121,177,162,196,155,31, +254,121,177,38,196,147,18,204,94,48,0,0,16,128,210,70,79,31,160,0,137,243,230,104,31,160,102,185,251,134,104,153, +163,108,248,0,0,42,1,236,198,190,26,194,123,9,167,230,128,30,254,123,25,47,228,177,146,254,91,248,0,0,1,129, +231,132,147,18,216,127,249,184,4,175,158,162,122,153,42,196,168,19,178,220,120,0,0,8,129,227,132,130,18,240,120,105, +189,228,247,30,88,123,113,45,100,228,147,18,217,192,0,0,1,0,237,192,180,31,254,12,192,225,199,255,134,24,31,224, +97,129,254,4,8,16,224,0,0,40,65,227,6,158,26,76,127,25,183,228,128,30,254,123,249,38,4,145,18,254,91,136, +0,0,0,1,236,196,158,18,124,123,25,161,4,191,158,56,121,81,45,68,164,146,146,88,192,0,0,40,65,225,132,191, +146,200,122,33,168,132,175,158,190,122,33,40,132,226,19,254,93,248,0,0,40,65,227,4,255,154,68,121,177,163,132,191, +158,196,121,145,36,68,145,18,196,90,16,0,0,8,129,227,4,255,146,254,122,41,47,164,172,158,178,122,233,46,228,160, +146,254,219,248,0,0,8,65,233,100,181,154,84,121,65,191,228,191,158,120,121,241,45,68,229,147,146,88,64,0,0,0, +65,225,4,255,147,254,124,201,103,4,150,158,204,127,33,36,196,145,22,114,187,8,0,0,3,1,255,231,255,133,40,36, +145,146,0,49,15,254,39,216,173,98,121,139,54,32,48,0,0,40,65,239,228,191,154,16,127,249,184,36,191,158,24,120, +65,63,228,132,18,16,89,192,0,0,8,65,225,4,255,155,130,123,249,167,196,128,30,254,121,161,38,132,146,18,203,222, +56,0,0,17,1,228,229,250,151,234,121,41,109,165,254,158,138,122,169,122,165,255,151,56,240,32,0,0,0,65,225,68, +181,18,148,123,81,175,228,254,223,48,123,249,47,228,132,18,254,223,248,0,0,9,1,239,228,191,147,128,127,249,229,100, +181,159,255,123,153,41,100,191,150,134,88,112,0,0,40,25,239,198,129,154,212,121,81,175,198,131,30,24,127,249,63,228, +132,18,16,89,192,0,0,40,81,225,100,255,218,16,123,249,175,228,191,158,254,122,73,47,228,164,146,146,90,88,0,0, +41,17,230,68,155,26,254,123,25,168,100,191,158,252,121,161,38,132,146,18,203,94,56,0,0,0,1,239,228,160,146,134, +123,249,233,132,166,158,254,122,241,59,196,255,147,218,92,224,0,0,32,1,239,228,177,154,254,121,241,161,4,191,158,146, +122,233,42,164,177,146,130,90,56,0,0,0,65,227,4,154,18,204,127,253,247,132,128,30,150,122,81,45,68,130,19,254, +219,248,0,0,40,65,227,6,191,154,150,123,249,169,38,191,158,56,123,97,63,228,134,18,24,88,96,0,0,0,161,226, +132,191,146,170,122,169,111,228,191,158,170,127,249,63,228,147,18,198,222,8,0,0,8,65,239,228,140,26,254,120,193,175, +228,159,30,198,123,249,44,100,191,146,198,91,56,0,0,41,49,230,198,191,154,108,121,177,191,246,128,30,126,121,25,39, +228,145,146,126,89,248,0,0,0,65,227,4,255,146,80,123,121,233,228,239,159,252,123,81,41,196,167,22,182,123,136,0, +0,8,65,227,4,255,146,108,123,81,191,228,189,158,252,123,209,47,196,188,18,19,88,120,0,0,1,0,255,226,99,9, +254,61,248,182,194,71,27,252,111,249,175,102,153,147,246,72,48,0,0,0,65,239,228,255,151,162,126,153,255,228,249,159, +230,126,185,58,228,233,151,38,124,176,0,0,56,161,230,132,187,154,238,121,161,46,228,187,158,104,123,185,46,228,154,18, +104,89,160,0,0,8,65,227,4,255,147,130,121,177,44,100,160,158,254,120,193,33,4,132,50,254,219,248,0,0,8,65, +239,228,255,155,130,123,185,175,228,174,159,170,125,169,38,228,146,18,203,94,56,0,0,8,65,227,4,255,155,130,123,241, +167,196,128,31,254,120,65,45,68,165,147,147,89,192,0,0,40,65,225,4,191,154,130,122,9,175,228,132,30,208,123,121, +45,4,180,19,184,92,120,0,0,8,65,239,228,191,146,252,121,129,255,228,179,31,254,124,201,47,196,158,22,204,94,24, +0,0,40,1,239,230,177,154,254,123,25,175,230,180,30,254,126,65,63,228,159,18,16,95,252,0,0,41,73,233,100,235, +26,180,123,73,167,36,191,158,142,122,233,43,164,186,146,254,91,248,0,0,16,65,227,5,179,23,206,123,241,126,37,250, +159,234,126,169,126,165,234,151,34,117,184,0,0,0,65,227,4,255,158,48,127,249,248,164,234,159,250,126,201,63,228,236, +147,146,94,88,0,0,56,1,238,228,170,154,238,120,1,47,228,128,31,255,121,129,39,196,129,18,4,216,240,0,0,40, +1,239,228,165,154,254,122,217,171,100,191,158,16,123,233,46,164,249,147,110,88,224,0,0,0,1,255,228,154,18,254,123, +249,111,228,191,158,96,127,249,44,196,190,22,124,255,152,0,0,16,33,255,229,54,148,191,118,41,127,229,18,31,126,119, +33,91,229,98,23,248,124,248,0,0,40,65,231,4,191,154,150,123,249,171,100,173,158,254,120,193,35,132,155,18,196,94, +8,0,0,41,1,231,230,191,155,254,123,25,175,230,177,158,124,121,241,46,196,238,18,124,95,24,0,0,40,65,239,230, +189,154,254,123,25,175,230,159,30,210,127,249,37,196,181,19,150,89,192,0,0,16,57,224,164,255,210,12,120,49,127,196, +131,31,252,125,81,53,68,213,82,231,126,72,0,0,0,1,255,228,140,22,48,127,249,58,164,238,159,186,126,169,59,164, +234,151,254,95,248,0,0,40,1,239,228,161,154,254,122,25,175,228,128,30,254,123,249,42,164,170,146,190,95,252,0,0, +2,145,234,68,255,146,96,127,249,108,196,255,159,72,123,241,47,228,191,146,6,248,112,0,0,16,1,243,229,168,150,190, +120,137,123,229,168,30,174,122,145,107,229,184,151,192,252,248,0,0,0,65,239,228,191,146,76,127,249,57,36,132,159,254, +121,129,39,196,153,18,196,222,112,0,0,16,129,247,227,51,15,120,37,177,151,196,152,135,248,16,32,127,129,254,4,8, +16,224,0,0,8,1,255,228,159,18,254,123,25,167,196,191,159,170,126,169,63,164,236,147,146,254,88,0,0,8,81,239, +228,191,154,254,122,217,175,228,191,158,246,122,49,63,228,145,18,100,88,112,0,0,3,1,255,225,254,4,8,31,225,255, +229,254,135,248,31,224,255,195,3,15,252,48,224,0,0,32,65,227,132,191,154,134,121,241,164,4,159,158,72,121,33,63, +228,154,18,206,94,8,0,0,16,1,255,228,158,23,254,126,169,127,228,128,30,254,120,1,63,228,165,23,150,93,200,0, +0,8,65,237,100,149,19,254,126,9,175,228,177,30,252,120,193,47,228,140,18,48,223,248,0,0,1,33,255,228,155,18, +108,123,249,175,228,177,158,254,120,193,63,228,142,18,108,95,24,0,0,40,65,239,228,191,154,116,126,73,163,4,155,31, +150,123,81,39,196,159,19,214,88,192,0,0,0,65,239,228,234,146,238,122,9,47,228,153,30,254,123,201,47,228,191,146, +48,223,248,0,0,0,65,237,68,159,19,254,121,241,121,100,165,30,254,127,209,63,68,183,146,132,220,16,0,0,17,1, +255,100,253,22,248,123,137,126,100,237,31,252,122,129,42,36,189,183,252,176,96,0,0,16,65,239,229,147,22,254,127,249, +127,229,189,30,148,120,65,111,229,161,150,254,115,248,0,0,41,17,228,196,191,154,252,123,241,191,228,189,30,252,127,249, +47,228,177,146,198,91,248,0,0,1,0,255,226,94,11,126,63,240,239,198,159,26,126,111,241,191,196,193,19,252,72,112, +0,0,0,193,255,228,128,26,254,123,233,235,164,191,158,252,123,25,47,228,191,150,0,95,248,0,0,0,1,251,199,233, +159,164,126,241,249,197,111,140,232,63,240,255,195,255,12,12,48,224,0,0,0,129,223,229,127,149,44,127,249,83,197,95, +159,254,116,169,119,229,219,23,238,124,160,0,0,0,97,255,231,233,24,127,126,97,223,225,194,15,252,48,48,255,195,255, +12,12,48,240,0,0,16,129,227,5,255,150,148,122,121,127,229,253,30,190,127,209,125,229,181,23,158,188,64,0,0,0, +65,239,228,147,18,108,127,253,175,228,161,158,254,123,249,35,4,245,147,198,125,240,0,0,33,225,231,196,147,26,120,127, +249,187,164,255,158,48,127,249,39,132,159,19,214,88,72,0,0,18,1,204,197,255,148,206,127,177,93,229,222,159,250,87, +57,84,197,83,23,254,176,200,0,0,0,1,255,230,16,24,64,127,241,255,198,3,24,12,127,241,132,6,16,31,254,63, +248,0,80,1,229,255,148,16,87,201,213,33,127,157,60,87,241,84,133,126,84,63,32,152,0,0,3,0,8,3,255,12, +12,48,16,255,195,3,12,4,63,240,192,195,1,15,252,48,48,0,0,3,0,255,195,3,15,252,48,48,255,195,255,0, +192,127,249,255,224,252,28,206,99,8,0,0,2,0,255,195,3,15,252,48,48,255,195,3,15,252,3,97,255,224,120,7, +56,112,56,0,0,16,129,243,134,223,31,216,111,249,244,7,215,132,86,127,88,237,199,244,20,147,18,120,0,0,0,1, +255,224,192,6,24,56,112,255,224,48,0,192,63,240,12,0,48,31,254,127,248,0,193,251,3,12,11,126,125,145,254,65, +185,31,60,126,96,97,129,239,31,230,1,8,0,0,3,1,255,227,255,7,248,63,240,127,199,255,159,254,31,224,127,193, +255,0,192,127,248,0,65,247,226,31,138,126,108,193,255,225,27,31,250,120,64,79,227,207,63,214,2,64,0,0,4,0, +112,7,31,152,6,96,25,128,103,207,152,6,96,25,128,102,1,159,254,96,24,0,0,3,0,125,199,55,136,198,59,120, +140,98,49,159,254,7,128,30,0,204,14,28,96,24,0,0,0,49,255,194,33,8,204,49,32,112,135,143,136,6,60,248, +243,226,1,143,254,63,248,0,0,4,0,247,194,1,15,60,32,16,192,67,255,2,16,127,249,255,225,132,12,16,96,64, +0,0,3,0,255,227,255,15,252,31,225,255,225,206,15,28,120,248,96,129,206,6,8,31,224,0,0,4,0,247,194,1, +15,60,32,16,255,195,255,15,254,127,249,1,98,151,155,70,64,112,0,0,4,1,231,231,223,152,6,63,240,255,195,49, +8,196,63,240,28,71,255,3,4,120,240,0,0,18,1,255,230,121,141,68,63,176,140,67,255,8,196,33,19,255,240,132, +14,28,96,24,0,0,0,0,249,194,121,13,140,55,176,134,67,239,9,164,55,145,255,224,140,14,28,96,24,0,0,0, +32,255,131,176,0,192,127,249,255,224,48,7,248,63,240,192,195,3,15,252,63,240,0,0,1,0,30,0,204,14,28,127, +248,12,7,255,128,192,31,224,255,195,3,15,252,63,240,0,0,4,17,247,225,26,4,72,125,33,247,225,31,159,72,125, +49,20,196,81,95,127,101,152,0,0,24,0,231,230,65,25,184,60,96,103,231,255,134,26,60,97,249,134,102,31,152,100, +192,0,0,8,1,239,227,12,12,112,127,248,196,67,49,159,162,123,249,43,164,234,222,32,73,128,0,0,16,32,64,131, +227,15,254,38,33,150,135,90,7,108,9,252,96,195,2,24,8,96,32,0,0,1,240,255,129,50,6,216,127,249,64,161, +231,141,190,103,33,118,128,159,142,8,96,32,0,0,16,0,255,231,123,31,252,63,248,90,199,255,132,8,63,249,148,129, +223,142,126,96,32,0,0,3,0,12,1,254,4,136,19,32,68,135,255,159,254,18,32,204,130,18,24,8,64,224,0,0, +16,0,71,231,223,153,24,116,97,145,135,198,25,24,116,97,241,132,70,17,254,77,248,0,0,16,64,65,135,198,25,90, +117,105,181,167,214,155,90,117,105,245,164,86,145,126,92,24,0,0,16,0,65,39,214,153,94,117,25,150,71,201,27,60, +116,225,241,132,79,17,102,95,8,0,0,16,24,71,231,208,25,64,117,249,183,103,221,155,84,117,113,245,196,119,17,254, +94,136,0,0,16,64,193,7,223,153,254,116,1,151,199,217,27,100,117,145,244,68,81,81,69,94,24,0,0,16,64,65, +135,223,153,254,116,129,179,7,207,155,34,116,153,246,100,81,145,198,94,112,0,0,24,0,243,199,201,29,100,127,157,148, +7,223,153,102,116,145,179,196,70,17,62,77,136,0,0,16,32,204,135,242,27,202,127,121,127,199,242,27,200,127,33,124, +132,246,211,250,218,56,0,0,16,64,193,7,196,25,254,127,105,253,39,244,155,254,127,249,113,4,68,19,16,92,64,0, +0,16,0,71,231,209,153,86,117,89,181,103,213,155,86,116,97,243,132,78,209,106,95,56,0,0,16,96,65,135,206,25, +100,119,25,159,231,217,31,100,117,177,247,132,88,145,98,76,248,0,0,16,64,65,7,196,25,126,117,121,181,39,212,155, +126,117,121,245,36,84,145,126,93,24,0,0,16,128,66,7,223,153,126,119,65,153,135,199,157,16,116,65,177,230,68,17, +16,76,64,0,0,16,64,193,135,255,153,194,119,9,178,7,201,155,60,116,193,242,4,72,209,34,92,248,0,0,16,64, +241,3,204,13,126,61,24,148,103,209,155,126,117,25,244,100,81,145,126,93,248,0,0,16,64,65,135,255,153,254,124,193, +178,71,219,27,248,116,97,115,68,89,147,254,95,8,0,0,0,0,64,3,63,223,6,116,25,215,230,87,191,94,109,121, +215,229,209,145,6,68,25,113,192,0,0,16,0,67,199,201,25,36,116,145,156,103,208,25,126,117,153,182,100,89,145,126, +77,248,0,0,16,64,65,231,199,153,88,117,249,148,39,208,159,126,117,25,244,4,112,17,192,78,0,0,0,16,0,207, +231,138,26,40,123,249,106,167,234,154,170,122,169,108,100,160,146,254,219,8,0,0,16,64,69,167,215,153,92,117,249,183, +231,209,155,126,117,9,119,228,81,145,70,93,56,0,0,16,0,207,231,147,26,76,123,49,127,231,155,26,204,123,49,109, +228,183,146,240,222,120,0,0,16,0,199,231,208,155,126,125,49,247,199,214,27,254,127,97,127,228,254,19,155,94,56,0, +0,16,0,199,199,134,26,24,127,249,97,7,140,26,32,123,249,106,164,170,146,238,219,248,0,0,17,16,66,71,255,153, +126,116,193,183,231,209,155,126,117,25,119,228,81,145,126,93,248,0,0,16,64,207,231,164,154,214,123,89,239,231,191,154, +16,127,249,100,68,142,18,60,95,24,0,0,16,160,207,231,143,26,254,122,169,111,231,170,154,254,123,249,108,100,191,146, +198,219,248,0,0,16,64,207,231,159,155,108,127,253,103,231,181,154,254,123,249,97,132,191,146,16,223,248,0,0,16,160, +207,231,155,26,254,122,9,103,199,191,154,254,107,217,103,196,173,18,210,216,200,0,0,0,0,255,195,3,15,252,63,240, +192,195,255,13,132,51,48,199,131,12,15,158,56,24,0,0,3,0,127,131,255,12,12,63,240,192,195,255,15,252,51,16, +199,195,12,15,156,56,24,0,0,0,0,15,231,241,131,254,75,249,172,99,191,134,208,59,120,252,198,243,16,246,3,136, +0,0,4,0,63,1,252,12,96,127,241,204,195,49,15,252,63,240,192,3,0,204,6,31,240,16,128,71,199,223,31,200, +19,249,253,231,180,132,222,127,249,252,1,48,132,66,17,248,0,0,8,64,225,7,239,14,172,127,249,250,167,138,159,170, +62,248,170,2,232,27,34,72,248,0,0,0,0,33,1,204,31,254,8,64,33,0,0,0,0,0,0,0,0,0,0,0, +8,64,115,135,255,130,16,0,0,255,128,28,0,192,14,0,96,3,0,143,254,31,240,8,65,255,231,255,131,16,6,0, +24,3,252,1,16,4,64,49,1,132,140,26,96,120,0,0,8,64,51,7,255,130,16,8,64,64,129,134,2,16,12,192, +30,0,120,15,60,112,56,0,0,8,65,255,231,255,130,16,63,192,255,0,204,3,62,8,24,96,97,1,28,4,64,240, +0,0,8,64,51,135,255,130,16,8,65,255,195,255,1,4,4,16,16,64,79,1,0,4,0,0,0,8,65,255,231,255, +130,16,2,0,255,128,102,1,136,62,32,56,128,250,206,10,96,56,0,0,3,0,45,7,183,158,222,11,64,45,3,255, +15,252,3,1,255,231,255,128,192,3,0,0,0,8,65,255,231,255,130,16,15,240,252,0,48,31,254,127,248,12,0,48, +0,192,3,0,0,0,8,65,255,231,255,130,16,63,240,255,192,48,31,254,127,248,12,0,48,0,192,14,0,0,0,8, +65,255,231,255,130,16,24,0,127,227,1,155,6,4,16,24,64,33,0,12,1,224,0,0,8,65,255,231,255,130,16,63, +240,0,193,255,15,252,48,0,255,224,1,0,12,1,240,0,0,8,64,51,7,255,130,16,8,64,12,0,48,15,252,3, +0,12,0,48,31,254,127,248,8,65,255,231,255,130,16,63,224,255,192,3,15,252,63,224,128,2,0,140,6,31,240,8, +65,255,231,255,130,16,3,0,4,7,255,140,0,16,0,64,1,0,7,252,0,0,8,65,255,231,255,131,144,4,0,119, +3,249,1,140,63,224,255,0,56,7,128,112,0,0,0,8,65,255,231,255,130,16,33,128,134,3,219,143,248,33,128,134, +2,24,143,230,48,248,0,0,8,65,255,231,255,130,144,3,0,255,192,48,31,254,127,248,30,0,204,14,28,112,56,0, +0,8,65,255,231,255,130,16,63,240,12,0,48,31,254,7,128,28,0,208,14,98,113,248,0,0,8,65,255,231,255,130, +144,3,0,255,131,254,0,56,1,128,12,1,224,31,134,67,248,0,0,8,65,255,225,206,2,16,15,192,97,3,7,140, +8,63,224,97,128,252,7,240,120,248,0,0,8,65,255,231,255,130,16,12,16,127,227,3,24,200,3,0,14,0,108,7, +28,112,24,0,0,8,65,255,231,255,130,16,126,192,59,0,204,2,112,127,193,227,0,140,194,51,56,120,0,0,8,65, +255,231,255,130,208,7,128,115,135,7,146,18,8,64,33,1,132,12,16,96,64,0,0,8,65,255,225,254,2,192,63,240, +192,67,1,15,252,48,48,128,2,0,24,0,64,0,0,0,8,65,255,231,255,130,16,63,192,51,0,136,3,124,30,48, +109,131,28,25,254,78,24,0,0,8,65,255,231,255,130,208,7,128,115,135,51,144,66,63,224,1,128,12,0,96,1,0, +0,0,8,65,255,231,255,130,16,63,240,246,3,24,15,252,63,248,195,3,12,143,218,56,56,0,0,8,65,255,231,255, +130,16,63,240,255,192,0,31,254,12,192,50,1,136,140,50,96,248,0,0,8,65,255,225,206,2,16,12,192,97,135,3, +159,250,6,96,17,128,198,6,24,113,192,0,0,8,65,255,231,255,130,16,63,240,255,194,49,12,196,63,240,128,2,0, +140,6,31,240,8,65,255,231,255,130,208,3,0,255,194,49,8,196,39,144,179,67,135,8,4,32,112,0,0,8,64,33, +7,255,130,16,10,64,12,0,152,10,100,40,25,160,100,134,147,26,15,192,8,65,255,225,204,2,208,127,248,12,0,48, +15,252,24,96,51,0,120,7,248,112,120,0,0,8,65,255,231,255,130,16,9,128,102,67,155,12,120,115,128,94,1,24, +196,98,16,248,0,0,8,65,255,231,255,130,144,3,1,255,224,192,3,8,15,240,32,193,130,12,8,97,224,0,0,8, +65,255,231,255,130,16,24,0,255,227,109,153,54,76,152,102,99,49,9,140,4,240,0,0,8,65,255,231,255,130,16,1, +0,4,1,16,4,124,17,0,68,1,16,31,254,127,248,8,65,255,231,255,130,16,0,0,255,192,0,31,254,127,248,49, +1,134,15,252,63,176,0,0,8,65,255,231,255,130,24,63,240,192,3,0,15,254,48,192,195,2,12,24,48,64,192,0, +0,8,65,255,231,255,130,16,63,248,195,3,4,15,254,63,248,29,0,196,30,16,67,192,0,0,8,65,255,231,255,130, +208,3,1,255,224,48,15,252,51,48,140,66,49,8,220,3,0,0,0,8,65,255,231,255,130,16,0,0,97,1,140,6, +48,28,224,223,131,27,24,198,66,8,0,0,8,65,255,231,255,130,16,3,1,255,231,255,128,192,3,192,13,192,49,0, +192,3,0,0,0,8,65,255,225,206,2,144,63,248,12,3,255,7,248,3,25,255,224,49,128,206,3,32,0,0,8,65, +255,231,255,130,16,63,248,132,2,16,15,254,99,25,140,70,97,19,4,88,240,0,0,8,65,255,231,255,130,16,63,248, +128,2,127,11,252,44,33,179,134,192,155,134,71,240,0,0,8,65,255,231,255,130,16,31,240,192,195,51,12,204,51,48, +78,128,120,135,98,112,248,0,0,8,65,255,225,206,2,0,24,224,110,1,128,31,254,27,0,102,1,140,7,222,28,24, +0,0,8,65,255,231,255,130,208,7,128,115,135,135,151,240,24,64,97,1,157,6,12,15,224,8,65,255,231,255,130,16, +3,0,255,199,255,152,6,0,0,0,0,0,31,254,0,0,8,65,255,231,255,130,16,2,0,255,131,254,1,156,54,120, +145,164,198,142,24,97,192,0,0,8,65,255,231,255,130,16,24,240,255,226,41,153,166,92,152,50,192,136,12,35,96,248, +0,0,8,65,255,231,255,128,192,63,240,204,195,255,15,252,51,49,255,227,3,12,12,48,224,0,0,8,65,255,231,255, +130,208,7,128,115,135,51,144,64,63,240,1,128,204,1,224,0,192,0,0,8,65,255,231,255,131,16,14,192,97,131,255, +12,6,31,240,255,195,3,15,252,63,240,0,0,8,65,255,224,204,2,16,127,240,24,64,195,30,56,63,240,255,195,3, +15,252,63,240,0,0,8,64,115,7,255,130,16,8,64,255,194,49,8,196,63,240,204,194,49,15,252,63,240,0,0,8, +65,255,231,255,130,16,63,240,255,226,1,139,246,44,216,179,98,249,136,6,32,112,0,0,8,65,255,231,255,130,16,127, +249,255,225,2,15,200,49,32,204,131,242,12,8,0,224,0,0,8,65,255,231,255,130,16,63,240,192,195,255,15,252,48, +48,255,195,3,15,252,63,240,0,0,8,65,255,231,255,134,16,63,240,192,71,249,4,100,17,144,127,193,0,134,6,31, +248,8,65,255,231,255,130,16,31,248,255,231,1,159,230,17,152,70,65,249,4,12,0,240,0,0,8,65,255,231,255,130, +16,63,240,192,67,255,12,64,63,248,255,227,12,15,154,56,56,0,0,8,65,255,231,255,130,16,32,48,152,194,51,8, +8,32,96,153,131,207,28,230,6,8,0,0,8,65,255,224,204,2,16,63,248,192,3,255,12,12,48,48,255,195,0,15, +252,63,248,8,65,255,231,255,130,16,127,240,255,192,112,3,240,27,49,204,64,48,31,254,127,248,8,65,255,231,255,130, +144,6,1,255,224,192,6,0,31,241,224,69,129,7,252,31,240,0,0,8,65,255,231,255,130,16,3,1,255,224,48,0, +192,63,240,192,195,3,15,252,63,240,0,0,8,65,255,231,255,130,144,3,0,15,224,48,0,192,63,240,192,195,3,15, +252,63,240,0,0,8,65,255,231,255,130,208,3,1,255,224,120,2,208,27,96,204,231,255,128,192,3,0,0,0,8,65, +255,231,255,130,208,3,0,255,194,49,8,196,127,248,30,0,108,15,28,112,56,0,0,8,65,255,225,206,2,16,31,224, +64,129,254,7,248,16,32,127,129,2,31,254,127,248,8,65,255,231,255,130,16,24,97,255,225,6,4,24,31,224,97,129, +2,7,248,31,224,0,0,8,65,255,231,255,130,16,127,248,204,193,50,6,216,127,249,255,224,48,0,192,3,0,0,0, +8,65,255,231,255,130,16,24,48,223,227,127,156,12,114,48,204,195,19,12,12,48,224,0,0,8,65,255,224,140,1,32, +127,240,18,67,255,11,48,127,248,255,224,201,134,44,48,128,0,0,8,65,255,231,255,130,16,19,16,204,195,51,15,252, +3,0,140,98,49,143,254,63,248,0,0,8,65,255,231,255,130,88,1,16,255,227,255,136,108,33,160,131,134,28,153,218, +76,56,0,0,8,65,255,231,255,130,16,51,240,111,192,33,28,132,2,112,104,1,32,140,194,99,248,0,0,8,65,255, +231,255,134,16,16,1,251,231,233,141,166,54,152,154,98,105,153,190,76,152,0,0,8,65,255,224,204,2,56,63,224,51, +0,56,31,254,7,24,52,195,146,24,64,7,0,0,0,8,65,255,231,255,131,16,124,249,146,102,73,153,38,108,153,242, +100,203,134,32,48,128,0,0,8,65,255,224,204,3,48,12,97,255,224,192,3,248,30,96,73,3,60,25,248,76,56,0, +0,8,65,255,225,206,2,16,12,128,50,2,239,139,184,44,192,178,2,232,223,182,112,120,0,0,8,65,255,231,255,130, +208,127,249,255,224,48,31,254,63,240,63,1,183,28,206,67,0,0,0,8,65,255,231,255,130,16,24,192,195,3,127,157, +254,112,192,195,3,12,12,48,55,248,0,0,8,65,255,224,204,2,56,63,224,3,0,124,31,30,31,224,127,128,48,0, +192,127,248,8,65,255,231,255,130,16,4,97,255,231,255,131,108,9,224,103,1,56,157,227,64,248,0,0,8,65,255,224, +204,0,128,31,224,80,129,54,4,16,31,248,0,39,252,128,6,0,112,0,0,8,65,255,231,255,130,16,127,249,128,100, +48,135,248,63,240,12,0,48,31,254,127,248,8,65,255,225,204,2,16,127,249,0,97,254,1,24,4,33,254,128,66,1, +14,4,24,0,0,8,65,255,225,206,3,128,15,224,225,130,220,1,192,63,241,255,192,129,3,252,15,240,0,0,8,65, +255,231,255,131,16,61,249,134,102,25,159,230,97,153,134,103,251,156,104,1,128,0,0,8,65,255,224,204,7,248,63,240, +192,195,255,15,252,63,240,196,227,14,15,156,60,56,0,0,8,65,255,225,206,2,16,127,248,18,3,255,155,102,108,153, +227,230,1,159,254,127,248,0,0,8,65,255,231,255,130,144,3,0,255,195,51,12,204,63,240,12,0,51,31,252,127,248, +0,0,8,65,255,231,255,130,208,99,0,207,225,105,131,36,17,128,199,6,54,25,142,12,24,0,0,8,65,255,231,255, +130,16,48,192,65,132,127,156,128,2,0,104,3,32,24,254,67,240,0,0,8,65,255,231,255,131,16,127,248,115,1,140, +12,48,119,249,67,1,12,4,48,23,248,0,0,8,65,255,225,254,2,208,127,248,51,129,134,30,30,76,192,30,0,120, +7,188,112,56,0,0,8,65,255,231,255,130,16,24,176,194,99,127,156,48,112,192,199,131,50,13,142,60,24,0,0,8, +65,255,225,206,6,208,19,0,255,198,48,31,254,127,248,63,1,182,28,206,67,8,0,0,8,65,255,231,255,130,16,48, +0,95,228,12,24,48,0,192,67,3,12,27,254,71,248,0,0,8,65,255,231,255,130,16,63,240,128,66,249,11,52,44, +208,191,66,1,15,252,63,240,0,0,8,65,255,224,204,2,16,63,240,140,66,253,11,244,35,144,155,66,199,15,252,63, +240,0,0,8,65,255,231,255,130,208,7,128,51,135,179,156,198,63,240,13,1,182,12,204,39,0,0,0,8,65,255,225, +206,2,16,127,248,97,129,254,6,24,31,224,97,129,159,159,254,0,32,0,0,8,65,255,231,255,130,16,16,1,251,227, +105,137,166,100,152,242,97,201,141,190,96,152,0,0,8,65,255,225,254,0,192,127,248,57,1,134,15,252,60,144,50,0, +136,142,50,96,248,0,0,8,65,255,225,204,2,16,127,249,128,102,253,153,6,111,217,179,102,253,155,6,96,112,0,0, +8,65,255,225,206,6,16,63,240,255,231,129,151,230,17,144,126,65,25,7,236,16,240,0,0,8,65,255,231,255,130,208, +7,128,115,135,135,135,248,3,0,255,192,48,31,254,127,248,54,9,252,39,244,128,146,127,72,217,35,100,159,210,127,72, +217,34,96,153,134,70,56,0,0,8,65,255,224,204,6,16,51,249,128,5,191,140,254,112,33,192,131,2,12,8,48,224, +0,0,8,65,255,224,204,7,248,63,240,192,195,255,12,12,63,240,12,7,255,128,192,3,0,0,0,8,65,255,231,255, +130,16,23,240,207,3,12,28,48,127,248,195,3,12,13,252,55,248,0,0,8,65,255,225,198,3,0,127,248,112,1,191, +12,28,112,193,95,225,12,4,16,17,192,0,0,8,65,255,224,164,31,254,3,0,255,192,49,15,252,35,0,255,224,121, +135,60,112,56,0,0,8,65,255,225,254,0,192,127,248,192,1,255,7,252,18,32,77,129,54,12,219,99,56,0,0,8, +65,255,224,172,7,248,63,240,48,195,142,4,16,127,248,219,99,77,153,38,93,48,0,0,8,65,255,231,255,130,208,127, +248,76,193,182,6,208,127,248,30,0,204,14,28,96,24,0,0,8,65,255,224,132,1,0,127,240,24,128,60,143,254,0, +113,255,224,200,6,34,112,248,0,0,8,65,255,224,204,8,0,49,184,247,130,24,143,254,112,32,12,7,255,128,192,3, +0,0,0,8,65,255,224,204,0,120,63,192,24,7,255,131,48,120,121,161,96,132,6,16,48,64,0,0,8,65,255,231, +255,130,208,7,128,115,135,255,147,242,127,249,255,224,198,15,252,63,248,0,0,8,65,255,225,182,0,192,127,248,99,0, +120,7,248,120,120,33,129,134,6,24,48,96,0,0,8,65,255,224,204,8,56,55,240,7,6,127,141,254,3,72,91,35, +73,152,102,67,48,0,0,8,65,255,224,204,2,16,127,249,12,32,48,159,254,7,128,63,1,183,28,206,67,8,0,0, +8,65,255,224,204,31,254,102,25,184,99,255,6,64,63,240,78,7,255,159,254,1,0,0,0,8,65,255,231,255,130,16, +127,249,4,96,48,31,204,11,224,111,3,54,24,206,79,8,0,0,8,65,255,225,204,2,16,127,249,76,33,255,15,252, +35,1,255,231,255,128,192,3,0,0,0,8,65,255,231,255,130,16,127,249,140,100,48,132,204,51,32,159,0,204,14,28, +112,24,0,0,8,65,255,225,204,7,48,63,240,127,192,3,15,252,0,97,255,225,134,3,24,1,192,0,0,8,65,255, +224,140,7,252,63,240,192,67,255,12,16,54,96,142,198,193,147,226,0,192,0,0,8,65,255,231,255,130,16,124,64,33, +1,21,7,214,122,72,73,33,36,132,16,113,192,0,0,8,65,255,224,204,15,124,125,249,164,103,159,154,102,101,25,183, +231,177,152,134,102,112,0,0,8,65,255,231,255,130,16,127,248,36,64,217,12,64,27,1,255,224,104,7,60,112,24,0, +0,8,65,255,231,255,130,16,16,0,143,231,196,30,16,48,65,225,0,4,31,254,99,248,8,65,255,231,255,134,4,16, +16,151,231,195,30,4,60,145,242,64,1,31,4,96,112,0,0,8,65,255,225,204,4,32,49,144,183,231,177,156,38,48, +217,241,96,1,159,4,96,112,0,0,8,65,255,225,206,2,16,31,248,192,231,121,29,244,52,208,223,67,121,12,4,48, +112,0,0,8,65,255,224,140,31,254,63,249,255,230,1,151,250,1,193,255,231,255,128,192,15,0,0,0,8,65,255,231, +255,130,16,104,64,233,39,45,150,180,26,209,227,133,155,6,198,118,8,0,0,8,65,255,225,254,0,192,13,192,225,198, +255,128,192,127,240,12,1,54,12,204,110,16,0,0,8,65,255,224,204,2,252,127,160,76,129,150,1,128,127,248,97,1, +248,1,248,124,48,0,0,8,65,255,225,206,6,48,16,192,223,231,127,156,140,114,32,204,131,50,15,254,63,248,0,0, +8,65,255,224,140,0,204,127,248,12,3,255,12,196,63,240,140,67,255,8,196,35,112,0,0,8,65,255,224,140,3,130, +126,88,35,103,237,159,182,28,216,251,102,129,146,6,8,120,0,0,8,65,255,231,255,130,16,48,128,74,196,105,157,34, +4,176,66,195,6,24,240,71,0,0,0,8,65,255,231,255,130,16,31,224,64,129,254,7,248,63,240,255,194,1,15,252, +63,240,0,0,8,65,255,225,132,7,254,63,249,255,197,179,4,108,127,248,76,195,255,135,254,0,224,0,0,8,65,255, +231,255,130,208,63,240,97,128,132,31,254,3,0,12,3,255,0,192,3,0,0,0,8,65,255,224,204,2,20,123,240,67, +3,63,30,254,24,193,255,227,127,143,0,71,248,0,0,8,65,255,231,255,134,48,17,128,247,227,219,155,236,110,176,179, +130,206,8,126,35,24,0,0,8,65,255,224,164,0,192,127,249,0,97,254,0,0,127,248,50,0,200,14,50,112,248,0, +0,8,65,255,224,132,15,252,3,1,255,224,252,14,220,127,152,55,192,143,14,12,97,224,0,0,8,65,255,225,190,2, +208,63,240,192,195,255,12,12,63,240,196,227,30,15,222,56,24,0,0,8,65,255,224,204,2,60,63,160,76,129,182,15, +248,3,129,255,224,48,0,192,15,0,0,0,8,65,255,224,204,3,168,124,144,98,7,255,134,52,30,209,251,129,142,6, +123,59,56,0,0,8,65,255,224,132,7,252,48,48,255,195,3,15,252,3,1,255,224,120,7,56,112,56,0,0,8,65, +255,231,255,130,16,49,0,207,231,225,141,180,48,192,195,7,158,24,204,6,24,0,0,8,65,255,225,134,0,192,63,248, +76,129,182,6,216,127,248,62,1,182,28,206,67,8,0,0,8,65,255,224,132,16,64,47,248,8,0,127,29,252,48,192, +255,227,12,30,16,71,248,0,0,8,65,255,225,206,0,0,124,49,191,230,195,31,76,109,177,178,199,195,30,12,64,112, +0,0,8,65,255,225,198,2,16,63,224,192,129,254,0,192,127,249,140,102,253,158,22,96,48,0,0,8,65,255,231,255, +130,208,15,128,97,135,255,128,128,18,48,76,129,150,0,48,127,248,8,65,255,224,206,2,16,56,240,195,71,255,134,48, +56,193,163,128,154,6,198,54,8,0,0,8,65,255,224,140,24,40,56,144,199,101,255,134,48,57,193,231,5,180,135,146, +116,120,0,0,8,65,255,231,255,130,16,127,249,0,99,255,0,192,3,0,255,192,54,0,204,127,248,8,65,255,224,204, +31,254,98,9,255,225,98,4,216,31,248,127,231,252,159,246,0,112,0,0,8,65,255,224,204,4,16,51,248,147,135,181, +150,214,51,89,255,224,4,31,18,96,120,0,0,8,65,255,224,204,0,152,127,249,255,225,134,30,30,76,193,255,224,140, +6,16,112,64,0,0,8,65,255,225,174,2,208,127,249,64,33,255,143,228,103,145,118,192,152,12,98,96,248,0,0,8, +65,255,224,132,15,252,3,0,255,199,255,135,248,63,240,255,195,3,12,12,48,96,0,0,8,65,255,225,134,2,208,127, +249,224,97,254,6,24,31,224,127,129,255,6,12,31,240,0,0,8,65,255,231,255,130,16,16,97,247,231,223,139,24,109, +249,231,225,145,143,126,97,248,0,0,8,65,255,225,206,6,16,63,248,216,103,45,134,166,63,248,60,97,249,12,180,34, +112,0,0,8,65,255,224,140,2,48,63,248,143,98,241,139,246,39,152,191,99,181,143,254,63,248,0,0,8,65,255,225, +204,2,16,127,248,0,68,121,9,180,4,208,95,67,97,24,4,64,112,0,0,8,65,255,224,204,4,204,38,96,201,129, +51,15,252,51,48,255,195,51,12,204,63,240,0,0,8,65,255,225,206,15,124,125,249,148,103,211,25,126,125,217,245,70, +87,17,92,93,200,0,0,8,65,255,224,132,7,248,16,32,127,129,254,0,0,63,240,128,67,255,8,4,63,240,0,0, +8,65,255,224,204,2,16,17,161,244,199,209,142,242,60,193,210,197,17,4,254,19,136,0,0,8,65,255,224,204,3,252, +127,192,136,67,51,4,200,127,248,63,1,254,28,206,67,8,0,0,8,65,255,224,204,4,104,17,177,255,227,24,4,124, +121,145,206,193,38,5,188,117,152,0,0,8,65,255,225,206,3,32,31,192,230,7,255,12,204,63,240,31,128,122,7,98, +112,248,0,0,8,65,255,224,140,8,48,55,248,31,230,76,137,252,7,16,214,194,206,27,124,95,24,0,0,8,65,255, +224,132,3,240,15,193,142,102,183,153,230,103,217,237,230,113,152,6,127,248,0,0,8,65,255,225,206,6,4,17,241,252, +3,159,142,126,61,49,212,205,51,4,204,18,48,0,0,8,65,255,224,236,2,208,127,248,33,128,204,31,254,0,0,127, +193,3,4,12,31,240,0,0,8,65,255,225,254,0,192,127,249,128,103,255,159,254,24,0,255,199,129,7,252,31,240,0, +0,8,65,255,224,204,2,14,127,240,111,67,37,15,148,122,208,75,97,43,133,250,117,168,0,0,8,65,255,225,164,7, +248,31,225,255,225,206,14,30,39,232,115,130,252,3,240,120,248,0,0,8,65,255,224,204,1,32,124,249,243,224,72,31, +62,12,192,51,7,207,129,32,4,128,0,0,8,65,255,224,204,4,16,24,97,251,195,25,143,210,52,48,144,6,92,19, +28,92,16,0,0,8,65,255,225,206,8,16,51,240,8,70,63,12,252,2,16,79,195,35,25,140,79,248,0,0,8,65, +255,224,204,6,0,31,248,98,97,137,31,188,24,113,233,133,175,22,102,59,8,0,0,8,65,255,224,204,6,24,127,248, +97,129,254,6,24,31,225,255,231,255,134,24,112,56,0,0,8,65,255,225,252,2,208,127,248,33,1,140,15,120,33,17, +255,231,255,128,192,3,0,0,0,8,65,255,225,206,14,16,63,249,224,101,253,133,134,63,216,25,99,109,15,244,0,112, +0,0,8,65,255,224,164,2,208,63,240,204,195,255,15,252,63,240,98,7,255,128,32,0,128,0,0,8,65,255,224,132, +31,254,31,224,127,199,255,128,204,31,225,255,225,198,3,240,127,120,0,0,8,65,255,231,255,130,16,125,249,182,102,223, +159,126,101,25,247,230,49,128,134,6,48,0,0,8,65,255,231,255,128,16,55,248,83,4,109,140,180,2,240,127,227,12, +24,48,64,192,0,0,8,65,255,224,204,15,248,3,1,255,224,252,28,206,110,9,255,225,236,1,248,126,56,0,0,8, +65,255,225,206,3,0,15,224,225,134,8,15,124,48,16,243,195,1,15,252,63,240,0,0,8,65,255,225,204,6,64,25, +128,255,231,24,31,252,17,128,127,193,24,7,254,31,248,0,0,8,65,255,224,236,1,128,127,248,97,3,255,24,6,63, +240,77,129,54,28,204,6,0,0,0,8,65,255,224,204,4,16,16,97,241,229,68,21,126,85,249,84,37,80,149,126,17, +8,0,0,8,65,255,225,134,15,252,127,249,146,99,255,3,128,31,240,225,128,252,3,192,124,0,0,0,8,65,255,224, +204,3,16,127,249,12,99,255,12,204,51,48,255,192,51,7,252,127,248,0,0,8,65,255,231,255,130,16,127,249,63,161, +134,7,248,0,0,255,195,3,12,12,63,240,0,0,8,65,255,225,132,31,254,127,249,57,33,252,7,216,63,240,254,97, +182,12,204,103,8,0,0,8,65,255,224,132,15,252,31,241,255,224,51,15,252,35,16,191,66,181,10,212,99,16,0,0, +8,65,255,224,206,2,16,123,249,111,229,27,22,254,74,1,56,7,224,17,0,68,0,0,0,8,65,255,224,164,2,208, +127,249,127,160,0,7,248,31,224,97,129,254,0,0,127,248,8,65,255,225,134,2,192,59,240,140,67,255,8,196,63,240, +255,192,120,7,56,112,56,0,0,8,65,255,224,132,15,60,36,144,243,195,255,7,248,127,248,96,1,255,0,8,3,224, +0,0,8,65,255,224,204,8,64,51,240,28,198,222,8,252,15,24,95,195,97,25,252,71,240,0,0,8,65,255,224,140, +6,252,23,240,216,71,127,28,32,63,248,199,131,62,15,166,56,136,0,0,8,65,255,224,204,6,4,124,17,247,225,143, +159,164,24,145,251,65,129,31,132,112,112,0,0,8,65,255,224,236,3,148,63,240,27,135,255,129,192,63,241,224,193,255, +6,12,31,240,0,0,8,65,255,224,204,6,16,17,249,244,103,223,142,126,61,25,215,229,17,132,126,17,248,0,0,8, +65,255,224,132,31,254,127,248,127,129,134,7,248,127,249,255,227,102,15,8,63,240,8,65,255,224,132,15,252,48,48,255, +195,255,6,0,31,249,204,103,109,7,244,0,112,0,0,8,65,255,224,204,6,126,125,249,243,97,137,159,236,3,1,255, +224,120,7,56,112,56,0,0,8,65,255,225,140,6,16,63,249,154,103,253,135,246,54,216,255,99,253,141,180,18,240,0, +0,8,65,255,224,140,15,252,127,248,12,3,255,15,252,51,48,255,195,255,0,192,127,248,8,65,255,224,204,6,16,51, +249,253,102,245,155,214,127,249,188,6,240,159,194,65,248,8,65,255,224,204,6,52,24,249,250,97,143,134,38,125,249,151, +230,89,159,198,99,56,0,0,8,65,255,224,140,31,254,31,145,251,197,200,142,62,104,65,255,231,255,134,16,112,64,0, +0,8,65,255,224,204,11,48,127,249,152,103,255,152,0,125,249,130,71,207,31,60,99,152,0,0,8,65,255,224,140,7, +252,63,241,242,65,249,6,252,2,96,44,66,145,26,22,79,200,8,65,255,224,143,0,54,63,248,131,3,253,11,20,127, +113,237,134,230,151,250,81,152,0,0,8,65,255,224,134,15,104,44,200,241,225,255,27,246,3,0,255,192,120,7,28,112, +16,0,0,8,65,255,224,180,31,254,3,0,127,129,254,0,0,127,249,127,160,48,0,192,7,0,0,0,8,65,255,224, +204,15,252,63,240,255,195,255,12,204,63,240,44,2,153,26,22,79,200,0,0,8,65,255,224,132,15,252,48,48,127,135, +255,140,12,31,224,127,129,2,31,254,0,32,0,0,8,65,255,225,132,2,208,127,248,33,7,255,152,198,127,248,204,195, +51,12,220,3,0,0,0,8,65,255,231,255,128,20,127,249,129,7,245,158,84,125,113,245,196,102,19,254,88,152,0,0, +8,65,255,224,132,12,100,63,240,198,35,239,136,128,63,240,192,195,255,12,12,63,240,0,0,8,65,255,224,132,15,248, +51,48,127,135,255,128,0,63,240,204,195,51,3,184,120,56,0,0,8,65,255,224,204,4,96,83,241,220,195,30,5,204, +63,249,204,197,19,4,76,16,96,0,0,8,65,255,224,132,4,216,27,97,255,225,254,28,142,127,249,255,225,204,3,248, +126,56,0,0,8,65,255,231,255,130,20,55,240,88,68,95,29,120,5,184,86,195,91,27,126,73,200,0,0,8,65,255, +224,140,8,32,55,248,24,102,127,141,134,23,248,91,99,103,25,238,70,24,0,0,8,65,255,224,132,31,254,79,216,0, +3,255,7,136,119,224,127,6,126,6,110,103,16,0,0,8,65,255,225,206,2,16,125,248,0,7,223,159,126,92,225,127, +165,182,150,90,48,224,0,0,8,65,255,224,180,2,240,63,240,51,7,255,144,194,63,240,16,128,254,6,8,113,224,0, +0,18,9,254,39,250,132,138,127,169,118,167,250,159,234,93,169,254,165,200,151,98,189,56,0,0,8,65,255,224,204,24, +52,63,248,3,6,127,137,38,7,248,211,98,127,153,38,68,184,0,0,8,65,255,224,204,9,52,36,249,254,97,143,150, +166,126,153,251,225,25,140,70,99,48,0,0,8,65,255,224,134,7,240,1,193,238,193,190,6,216,102,56,127,128,72,9, +38,100,136,0,0,8,65,255,224,132,7,56,127,248,127,192,219,31,254,15,176,255,129,206,29,46,68,136,0,0,8,65, +255,224,140,4,96,95,249,200,7,127,135,32,119,249,255,227,28,8,204,110,24,0,0,8,65,255,224,140,15,252,50,48, +191,66,121,15,20,63,240,12,70,145,146,26,79,192,8,65,255,224,164,31,254,127,248,127,129,6,7,248,63,249,191,102, +253,155,246,96,48,0,0,8,65,255,225,180,15,252,6,0,255,199,255,143,60,127,185,140,97,255,7,248,115,48,0,0, +8,65,255,224,164,31,254,127,248,255,3,242,15,252,63,240,255,195,255,12,204,63,240,0,0,8,65,255,224,164,15,252, +127,249,161,163,51,11,228,24,225,255,225,2,6,24,31,224,0,0,8,65,255,224,132,6,16,54,49,51,97,254,15,124, +61,248,211,97,199,157,102,12,48,0,0,8,65,255,224,164,15,252,6,225,255,225,255,31,196,7,240,255,195,255,12,12, +63,240,0,0,8,65,255,224,132,15,254,47,224,128,3,255,139,60,111,121,255,231,255,147,16,1,192,0,0,8,65,255, +224,188,31,254,127,248,127,135,3,159,254,31,224,62,103,142,3,220,30,24,0,0,8,65,255,224,204,6,48,31,248,204, +199,50,31,255,48,0,223,227,97,141,134,55,248,0,0,8,65,255,224,180,15,252,44,208,158,66,205,15,252,32,128,254, +195,28,13,226,62,248,0,0,8,65,255,224,132,3,32,45,248,183,130,246,11,12,12,32,255,194,73,13,236,127,248,8, +65,255,224,140,15,6,60,89,249,103,245,159,214,111,89,253,99,229,143,198,124,56,0,0,8,65,255,224,132,15,252,63, +240,94,129,122,7,248,7,16,255,194,201,11,244,32,48,0,0,8,65,255,224,140,31,126,125,248,227,1,159,159,194,21, +104,85,33,20,132,60,115,8,0,0,8,65,255,224,204,31,254,127,249,28,35,206,31,254,3,0,255,193,182,6,216,127, +248,8,65,255,225,254,15,252,63,240,127,135,255,134,24,127,216,127,192,131,31,228,0,224,0,0,8,65,255,224,156,24, +248,39,96,135,128,255,157,252,48,192,207,131,127,159,32,71,248,0,0,8,65,255,224,204,4,16,50,241,139,1,255,141, +254,114,193,203,227,108,13,240,60,248,0,0,8,65,255,224,132,31,252,54,208,121,198,121,7,56,115,56,115,1,242,4, +112,62,0,0,0,8,65,255,224,132,0,192,127,249,127,225,127,12,252,119,241,223,195,127,13,140,55,240,0,0,8,65, +255,225,204,2,0,127,248,155,99,77,31,244,0,216,251,34,45,143,188,62,192,0,0,8,65,255,224,204,2,48,126,192, +99,231,248,150,220,126,96,241,131,239,22,102,25,8,0,0,8,65,255,224,204,15,252,36,144,183,67,255,15,254,63,248, +198,194,206,25,251,70,56,0,0,8,65,255,224,204,15,252,63,240,255,195,255,27,54,127,249,255,129,198,3,240,127,248, +0,0,8,65,255,225,182,2,208,63,240,145,3,255,11,252,38,65,159,6,1,22,180,82,72,0,0,8,65,255,224,204, +15,132,126,17,255,231,239,159,164,96,209,249,69,97,29,68,76,112,0,0,8,65,255,225,206,6,96,25,249,255,2,46, +15,126,45,96,159,230,70,19,60,91,24,0,0,8,65,255,224,204,7,100,63,241,115,195,198,15,252,96,24,255,193,182, +12,204,103,16,0,0,8,65,255,224,132,31,254,19,0,79,135,255,134,0,31,240,127,226,165,154,86,73,112,0,0,8, +65,255,224,204,2,16,127,248,102,197,59,151,254,89,81,69,69,213,31,149,70,88,0,0,8,65,255,224,164,15,254,19, +32,109,135,255,128,0,63,240,158,66,253,12,12,63,240,0,0,8,65,255,224,204,4,192,127,249,146,102,121,159,46,103, +176,50,0,200,198,35,112,248,0,0,8,65,255,224,132,6,16,60,193,155,231,217,0,244,90,112,185,130,103,31,182,97, +136,0,0,8,65,255,224,204,9,254,23,249,20,102,253,159,246,125,153,191,102,217,155,246,96,120,0,0,8,65,255,224, +180,31,254,127,248,243,67,207,31,124,127,176,179,130,223,155,70,71,248,0,0,8,65,255,224,204,8,252,50,16,79,199, +63,28,224,51,248,219,35,170,140,250,32,56,0,0,8,65,255,224,204,2,16,122,64,235,231,253,146,244,127,113,249,134, +231,18,246,79,136,0,0,8,65,255,224,204,15,252,59,32,109,135,255,135,248,127,249,204,195,255,12,204,63,240,0,0, +8,65,255,224,132,31,254,63,240,179,67,255,15,252,63,240,255,193,254,31,254,3,0,0,0,8,65,255,225,148,4,96, +63,249,198,7,255,7,252,17,128,127,227,1,9,38,68,136,0,0,8,65,255,224,140,2,192,41,48,161,68,252,4,0, +60,169,190,166,56,169,100,60,112,8,65,255,224,132,13,254,71,240,216,65,127,13,254,99,1,255,224,252,14,220,99,24, +0,0,8,65,255,224,132,31,254,3,0,204,195,255,15,252,3,113,255,227,177,30,30,79,200,0,0,8,65,255,224,132, +15,252,63,240,192,193,254,31,254,54,240,223,227,239,15,156,119,152,0,0,8,65,255,224,204,31,168,56,249,207,229,226, +15,62,110,32,107,230,159,146,120,56,120,0,0,8,65,255,225,204,15,254,127,249,169,7,255,153,42,117,169,124,133,231, +19,52,89,136,0,0,8,65,255,224,132,9,134,52,249,250,7,173,31,190,126,144,98,71,249,6,100,9,16,0,0,8, +65,255,224,204,4,124,49,25,183,231,145,132,124,61,241,239,224,42,159,234,103,252,8,65,255,224,164,31,254,127,248,197, +135,191,158,200,55,249,245,133,159,12,126,97,248,0,0,8,65,255,224,132,15,176,34,208,251,7,255,136,146,62,88,249, +194,102,31,250,2,184,0,0,8,65,255,224,132,15,36,96,145,247,230,11,31,36,125,176,247,226,201,31,102,103,8,0, +0,8,65,255,224,132,15,252,127,249,140,101,254,135,248,3,0,255,195,255,8,196,63,240,0,0,8,65,255,224,141,24, +62,55,248,31,230,127,137,54,4,248,255,226,255,152,200,64,96,0,0,8,65,255,224,132,8,254,123,241,232,6,191,151, +172,87,217,223,227,95,143,36,68,112,0,0,8,65,255,224,204,12,136,106,225,127,227,6,143,254,101,48,188,194,219,10, +126,56,72,0,0,8,65,255,224,164,15,252,8,65,255,225,254,12,12,63,240,255,194,177,26,78,79,200,0,0,8,65, +255,224,204,4,16,125,249,182,70,201,31,254,96,97,241,134,127,159,24,100,96,0,0,8,65,255,225,206,10,16,125,249, +150,71,201,24,254,126,97,223,198,127,191,152,52,96,0,0,8,65,255,224,204,30,40,125,160,142,227,154,26,238,121,160, +110,225,26,8,120,71,248,0,0,8,65,255,224,132,15,252,52,144,255,199,255,152,6,63,240,254,195,110,7,34,112,248, +0,0,8,65,255,224,204,6,14,126,240,146,7,232,31,190,126,177,242,199,219,22,204,49,48,0,0,8,65,255,224,204, +2,144,62,193,251,227,201,22,244,60,113,249,134,198,15,62,119,136,0,0,8,65,255,224,132,15,252,63,240,24,67,255, +31,254,127,249,255,197,131,6,12,31,240,0,0,8,65,255,224,142,15,192,127,248,255,194,181,15,252,63,240,255,199,255, +137,108,100,152,0,0,8,65,255,224,132,15,252,127,249,109,161,182,6,248,127,248,12,3,255,9,36,36,176,0,0,8, +65,255,225,254,15,252,63,240,255,193,254,31,254,95,232,127,129,242,0,192,127,248,8,65,255,224,164,31,254,31,224,127, +131,255,11,244,47,208,140,199,255,135,248,99,24,0,0,8,65,255,224,204,4,36,127,248,194,199,255,142,126,125,248,228, +103,223,148,70,17,248,0,0,8,65,255,224,205,7,62,95,249,95,7,119,133,252,244,177,94,197,118,21,255,112,152,0, +0,8,65,255,225,206,2,16,113,248,188,99,159,158,70,25,249,178,195,202,27,106,27,56,0,0,8,65,255,224,204,14, +36,60,177,183,231,230,31,254,126,97,255,224,31,159,152,64,96,0,0,8,65,255,224,204,4,124,125,88,199,231,213,140, +124,127,248,237,167,247,148,230,18,24,0,0,8,65,255,224,140,31,36,125,248,249,103,249,151,236,59,113,237,224,252,14, +216,39,16,0,0,8,65,255,224,132,7,252,51,48,255,195,255,7,56,127,249,255,231,255,159,254,127,248,0,0,8,65, +255,224,204,30,180,123,241,175,231,191,154,254,126,89,237,100,158,18,252,88,192,0,0,8,65,255,224,204,25,252,55,144, +26,198,255,137,236,15,248,223,194,127,25,36,71,240,0,0,8,65,255,224,132,8,252,50,48,15,134,247,139,86,0,192, +191,226,62,25,172,76,136,0,0,8,193,255,227,255,15,252,127,249,127,161,254,6,96,63,241,255,193,255,4,96,31,248, +0,0,8,65,255,224,204,13,238,109,185,127,3,255,219,246,111,216,140,98,253,137,230,44,176,0,0,8,65,255,224,180, +31,254,100,33,251,230,239,29,42,127,249,152,4,255,23,4,71,240,0,0,8,65,255,225,132,15,126,100,177,247,231,198, +25,126,63,65,255,224,252,14,220,99,24,0,0,8,65,255,224,140,24,60,39,248,23,224,207,31,254,63,240,239,195,181, +159,48,71,248,0,0,8,65,255,226,132,15,190,127,145,253,199,239,11,166,63,192,125,199,255,132,220,103,24,0,0,8, +65,255,224,132,31,168,25,249,254,197,175,155,190,102,177,255,228,40,31,250,67,72,0,0,8,65,255,224,148,15,254,36, +96,187,226,239,29,34,126,249,139,4,239,23,190,66,192,0,0,3,0,15,192,63,8,196,63,248,136,98,48,8,252,63, +225,140,6,48,152,254,65,240,0,0,2,0,15,192,48,15,254,35,24,191,130,48,136,124,39,193,159,6,76,147,50,88, +120,0,0,2,0,15,192,48,15,254,35,24,191,130,49,136,124,33,1,191,230,49,145,132,92,112,0,0,2,0,15,192, +48,15,254,35,24,191,130,63,136,60,111,241,176,7,255,147,0,79,248,0,0,2,0,15,192,48,15,254,35,24,191,130, +176,136,254,32,1,170,70,161,148,138,67,224,0,0,2,0,15,192,48,15,254,35,24,190,34,63,136,96,63,249,153,134, +60,16,240,94,120,0,0,2,0,15,192,48,15,254,35,24,191,2,63,136,124,34,209,171,70,238,25,176,95,248,0,0, +3,0,15,194,49,159,254,111,249,143,230,255,27,12,103,225,191,197,255,144,240,94,56,0,0,4,65,241,225,70,21,254, +95,72,47,231,246,159,206,75,112,173,194,181,2,167,59,152,0,0,16,65,209,229,70,21,126,125,73,183,199,214,159,78, +17,113,245,197,117,20,181,51,152,0,0,3,0,12,3,255,15,252,35,16,140,66,51,15,252,3,0,12,128,51,31,254, +112,8,0,0,8,64,99,1,140,31,176,74,193,43,7,172,31,176,88,192,107,33,236,255,210,0,120,17,32,71,195,19, +31,76,85,49,84,197,83,31,76,81,48,84,195,211,223,207,2,24,0,0,0,1,255,128,2,31,232,12,32,254,135,251, +27,44,127,176,52,192,219,95,247,96,216,0,0,16,0,71,225,159,159,24,84,97,81,133,70,31,24,80,96,81,129,230, +31,254,1,248,0,65,249,7,255,139,126,45,72,183,226,223,139,22,44,121,191,230,192,145,3,71,248,0,0,16,64,65, +129,2,31,254,85,129,82,5,72,31,32,80,128,82,1,200,31,190,0,248,16,128,70,3,31,159,96,87,1,87,197,199, +31,24,80,192,82,3,208,191,194,1,248,0,0,255,195,3,15,252,3,0,204,3,255,8,196,63,240,255,192,50,31,252, +127,216,0,0,16,0,79,225,12,31,48,84,193,83,133,79,159,50,80,192,83,1,204,63,176,0,192,0,0,0,1,255, +224,192,3,252,24,49,195,198,48,15,252,35,16,255,192,54,31,252,127,248,0,0,32,64,129,7,196,31,254,75,91,201, +99,37,140,254,48,240,193,67,197,142,254,35,8,0,0,16,0,65,33,151,159,70,85,25,86,69,75,31,60,80,224,81, +129,207,31,238,3,8,0,0,16,0,79,195,1,31,68,85,17,84,197,127,159,78,80,8,127,163,192,157,6,0,112,0, +0,16,64,65,129,6,31,255,85,153,86,69,73,31,60,80,96,81,131,207,31,230,3,8,0,0,16,64,65,131,6,31, +126,87,249,93,37,118,159,250,83,248,94,99,240,159,194,3,56,0,0,16,96,65,129,31,159,126,84,97,87,229,95,159, +24,81,248,95,225,230,31,152,0,96,0,0,16,32,76,135,50,31,202,87,121,95,199,242,30,200,27,32,124,135,246,217, +250,2,56,0,0,16,8,79,35,4,159,18,87,201,92,37,240,159,242,80,72,113,35,196,191,18,1,200,0,0,0,0, +255,192,96,31,254,28,192,109,135,255,159,254,51,32,255,128,50,7,252,127,216,0,0,16,0,79,231,3,31,76,95,49, +127,229,255,159,28,80,240,118,195,243,31,12,0,240,0,0,16,16,67,195,60,31,16,84,249,95,5,68,31,63,83,224, +81,3,196,157,18,0,120,16,128,66,193,25,31,102,85,25,93,53,100,31,16,80,208,82,65,217,159,254,1,8,0,0, +0,0,255,193,182,3,112,7,129,255,230,49,143,252,51,48,255,192,54,31,252,127,248,0,0,16,96,65,131,14,31,100, +87,25,88,37,201,31,36,80,144,118,67,217,31,68,3,16,0,0,16,64,65,3,6,31,126,84,65,81,5,95,159,126, +80,96,83,131,203,29,230,3,8,0,0,3,0,140,67,255,0,192,127,249,255,224,48,15,252,35,16,255,192,54,31,252, +127,248,0,0,16,16,66,65,141,31,20,84,17,86,69,77,31,4,80,60,95,225,225,31,132,0,16,0,0,16,0,71, +227,17,159,86,85,89,85,101,85,159,86,80,96,83,131,206,221,106,3,56,0,0,16,16,71,225,24,31,96,85,129,87, +229,89,31,100,81,144,86,65,217,31,254,1,248,16,64,65,3,4,31,126,95,121,125,37,244,159,254,83,104,125,35,244, +159,254,3,24,0,0,16,128,70,1,31,159,126,87,65,81,229,71,159,16,80,120,81,227,196,31,144,0,64,0,0,32, +32,140,131,34,30,158,106,169,190,166,242,158,74,115,232,239,35,252,190,50,0,184,0,0,16,0,79,243,1,159,6,95, +217,125,101,245,159,214,83,216,124,99,193,191,6,0,112,0,0,17,16,68,99,25,159,255,85,25,84,101,217,159,126,81, +152,116,99,209,191,126,1,152,0,0,16,64,65,7,63,159,214,95,89,127,229,245,159,214,83,248,124,99,241,159,198,3, +56,0,0,16,64,65,1,6,31,254,84,97,81,133,70,31,126,80,96,81,131,198,29,254,3,248,16,64,65,135,6,31, +255,84,97,81,133,70,31,126,81,24,84,35,208,191,254,1,152,0,0,16,0,71,195,17,31,68,85,241,87,197,81,31, +68,81,240,84,67,209,63,230,3,252,16,64,65,129,63,159,194,87,9,82,5,73,159,60,80,192,82,1,200,223,162,0, +248,16,64,65,131,14,30,108,95,25,121,37,132,30,126,80,16,112,131,206,31,24,0,32,0,0,3,0,255,195,255,12, +204,63,240,12,199,255,140,6,63,240,222,194,73,31,254,127,248,0,1,255,225,49,6,248,63,1,159,228,48,15,252,35, +16,255,192,54,31,252,127,216,0,0,16,0,79,247,48,31,192,87,249,93,7,247,159,222,26,72,123,39,236,153,166,5, +176,0,0,16,0,79,231,17,31,44,92,225,119,229,245,159,16,83,248,81,131,196,31,254,3,248,16,160,66,135,10,31, +254,86,169,90,165,106,159,254,115,168,106,161,234,159,254,3,8,0,0,16,192,66,199,25,31,254,85,73,85,7,223,158, +216,26,64,127,231,198,25,16,0,64,0,0,16,0,79,227,32,159,130,86,233,90,167,234,159,170,82,232,88,35,224,191, +254,3,24,0,0,17,16,70,71,11,31,254,84,97,81,135,255,159,16,24,96,127,247,196,24,16,0,64,0,0,16,64, +65,131,31,159,24,84,97,95,229,70,31,24,81,248,81,131,198,31,254,3,248,16,64,71,131,30,31,126,87,97,89,133, +127,159,60,80,240,119,195,215,185,218,0,96,0,0,16,16,71,199,4,31,16,87,249,95,229,68,31,24,81,248,116,99, +208,191,126,1,248,0,0,16,64,65,3,63,159,36,85,145,84,37,121,159,44,80,224,81,131,206,29,238,3,24,0,0, +16,64,67,131,14,31,108,87,25,95,229,192,31,124,81,240,84,67,241,63,252,1,240,0,0,1,33,247,193,19,4,124, +63,125,216,224,48,15,252,51,16,255,192,54,0,220,127,248,0,0,16,0,79,227,12,31,36,85,153,95,229,196,159,24, +81,248,81,131,198,63,152,3,248,3,1,255,231,255,133,40,52,145,146,32,48,15,252,35,16,255,192,50,31,252,127,248, +0,0,16,129,247,199,223,7,100,121,208,69,115,49,143,252,51,48,255,193,255,0,220,127,248,0,0,16,64,193,3,63, +158,16,91,81,101,71,157,31,254,112,192,227,131,219,63,198,6,8,0,0,16,128,70,3,63,158,38,88,241,103,167,179, +158,4,83,248,102,131,210,31,203,6,56,0,0,33,0,135,231,115,31,206,111,121,189,230,247,158,94,113,120,229,227,183, +191,140,6,48,0,0,16,64,65,131,63,223,100,92,241,115,133,255,159,68,80,144,118,67,217,29,68,2,16,0,0,16, +64,77,33,21,159,84,85,249,84,101,95,159,126,81,24,87,225,208,191,194,3,56,0,0,16,0,79,227,3,31,56,95, +249,127,229,246,159,254,83,72,127,227,247,159,210,3,120,0,0,32,160,143,227,18,158,72,107,249,175,231,146,158,110,55, +176,164,195,147,26,95,3,216,0,0,0,1,255,230,73,159,254,24,0,255,230,97,143,246,54,88,255,96,105,15,244,0, +112,0,0,16,128,67,195,27,31,248,84,225,95,229,228,159,254,80,96,119,195,255,159,254,0,64,0,0,0,1,255,230, +255,24,0,127,249,179,198,247,155,102,111,241,166,198,255,16,108,95,248,0,0,16,49,247,129,144,7,126,121,48,76,195, +34,15,252,51,48,255,193,255,0,252,127,248,0,0,16,0,79,231,49,159,198,87,249,80,5,127,159,16,115,248,127,227, +206,31,108,3,24,0,0,16,24,79,195,0,159,214,85,81,95,197,195,31,24,83,248,127,227,196,63,16,1,192,0,0, +0,8,142,35,50,158,74,111,233,175,167,178,158,250,55,104,180,163,144,154,66,1,56,0,0,16,64,195,135,27,31,198, +91,241,99,133,132,31,254,112,64,237,67,228,159,146,0,192,0,0,32,8,157,231,147,30,196,106,81,191,103,157,31,84, +99,80,173,227,183,159,240,4,120,0,0,32,0,159,231,147,30,204,106,49,191,231,147,31,76,99,48,175,227,176,31,240, +4,120,0,0,17,16,70,67,11,31,254,87,25,92,101,255,159,126,80,160,118,131,218,63,203,2,56,0,0,16,0,79, +227,49,158,254,89,241,97,5,191,158,146,114,232,106,163,249,159,130,2,56,0,0,2,0,200,227,63,159,202,93,41,100, +167,254,158,74,49,40,230,163,239,159,142,4,40,0,0,4,129,243,224,200,15,60,12,249,243,224,120,15,252,35,16,255, +192,51,3,252,127,248,0,0,3,1,255,228,101,154,122,43,176,255,167,48,15,252,51,48,255,192,54,0,252,127,248,0, +0,17,16,68,71,63,159,102,93,241,118,197,223,31,124,113,184,127,227,219,63,70,2,8,0,0,16,144,70,199,63,159, +36,85,177,95,245,192,31,126,81,24,119,227,209,159,126,1,248,0,0,16,0,71,195,6,31,24,87,249,81,5,76,31, +48,81,248,118,163,218,157,250,3,248,17,16,70,195,63,159,24,85,241,87,229,196,31,255,80,224,83,131,218,63,203,2, +56,0,0,33,0,133,231,22,31,240,107,97,173,230,189,158,246,103,88,245,99,149,190,118,1,152,0,0,16,0,79,231, +36,158,186,90,73,107,165,174,158,186,114,232,106,163,238,157,130,4,56,0,0,0,48,192,167,127,158,254,107,161,170,166, +171,158,236,115,176,231,195,247,31,53,0,152,0,0,16,64,67,7,63,159,210,87,249,93,39,255,158,56,17,176,95,231, +255,145,12,0,48,0,0,16,0,79,231,49,159,254,87,25,95,229,88,31,254,114,168,114,163,212,159,146,0,184,0,0, +16,64,77,67,21,30,254,88,193,127,231,155,158,254,87,248,100,131,214,31,66,1,248,0,0,16,64,79,227,6,31,126, +87,249,80,5,223,159,70,81,248,116,99,223,191,70,1,56,0,0,16,0,79,227,36,158,254,91,73,111,229,142,31,254, +115,248,103,195,149,31,146,0,64,0,0,0,64,207,231,63,159,130,107,185,175,231,174,159,186,113,168,230,227,210,31,203, +2,56,0,0,16,0,71,195,17,31,124,92,65,127,229,228,159,254,83,88,111,227,246,159,19,0,120,0,0,32,0,207, +227,32,159,254,78,73,57,36,254,159,154,114,72,239,227,224,159,254,6,8,0,0,17,16,70,71,31,31,254,87,73,95, +229,244,159,254,80,96,127,227,255,159,16,0,64,0,0,0,0,206,99,119,158,78,111,153,175,103,179,158,230,55,24,245, +227,145,154,70,1,24,0,0,16,0,79,231,49,158,254,91,249,103,197,191,159,254,118,72,111,163,250,159,126,0,56,0, +0,32,64,195,131,27,31,206,105,241,174,38,190,158,250,114,232,239,163,174,191,178,2,152,0,0,16,64,71,195,63,159, +254,87,25,95,229,64,31,254,80,96,87,227,198,63,152,3,248,16,64,195,131,63,158,130,91,249,104,7,191,158,218,115, +104,255,227,214,159,90,1,24,0,0,16,0,79,227,0,31,126,85,25,87,229,192,31,254,82,72,111,227,244,191,254,3, +248,0,0,34,32,140,131,63,159,248,106,121,174,231,185,30,164,34,248,170,195,233,27,36,5,240,0,0,17,16,198,195, +63,158,40,91,249,107,231,170,158,174,115,56,239,227,255,191,254,3,248,0,0,2,64,251,225,221,159,252,58,97,167,225, +144,143,252,51,48,255,192,51,3,252,127,248,0,0,17,128,71,227,63,159,252,85,25,87,229,209,159,124,81,240,126,195, +238,63,124,7,24,0,0,0,64,195,7,63,158,68,95,89,103,197,132,30,254,112,64,239,195,206,31,56,3,248,33,8, +196,227,18,159,250,107,121,164,166,178,159,254,118,248,187,35,252,159,178,0,216,0,0,0,16,203,71,127,158,180,74,241, +40,4,191,158,48,115,248,231,131,159,31,214,4,72,0,0,16,64,67,135,63,158,48,91,249,106,165,170,158,254,114,72, +111,227,228,159,146,2,88,0,0,16,64,69,67,31,30,254,88,241,109,103,164,30,48,83,248,102,67,222,31,60,3,152, +0,0,16,64,71,199,31,31,124,93,241,127,231,255,158,254,23,248,119,195,223,61,124,1,240,0,0,17,48,79,227,27, +30,108,95,249,121,37,228,159,254,112,224,103,195,245,159,146,0,64,0,0,0,0,132,227,126,159,186,111,233,187,198,238, +159,234,118,40,250,163,251,191,248,0,32,0,0,0,64,207,231,63,158,100,91,249,105,37,164,158,254,112,128,227,195,153, +63,196,6,112,0,0,16,64,71,199,31,159,126,85,25,87,231,209,159,126,16,192,83,135,248,153,230,0,240,0,0,16, +0,79,231,166,30,190,91,153,111,231,168,158,190,26,96,122,231,250,145,203,4,224,0,0,16,64,79,231,36,159,214,95, +89,127,229,255,159,16,83,248,100,67,206,63,60,7,24,0,0,0,33,248,131,194,31,190,102,168,242,167,234,145,190,90, +97,248,165,162,150,190,70,204,0,0,0,64,207,231,31,158,254,88,129,127,245,179,31,250,112,64,239,227,207,31,86,2, +64,0,0,16,64,207,231,63,159,188,94,121,127,229,231,159,254,114,96,255,227,241,159,102,5,248,0,0,0,0,207,231, +32,158,254,91,25,111,231,177,158,124,56,192,255,247,202,24,198,2,8,0,0,1,32,223,227,27,30,108,75,249,34,135, +191,158,170,114,168,239,227,245,159,130,2,56,0,0,24,65,251,225,159,159,244,126,97,187,199,153,143,252,63,240,204,195, +255,0,204,127,248,0,0,16,160,79,227,11,30,254,90,169,111,231,170,158,254,83,248,108,99,255,159,198,3,248,0,0, +16,64,207,227,63,158,190,90,233,110,231,191,158,16,115,248,234,163,255,159,162,2,56,0,0,24,65,251,71,255,134,244, +62,96,251,198,217,147,192,63,240,204,67,255,0,204,127,248,0,0,0,64,205,99,31,159,254,94,9,103,199,145,30,124, +16,64,127,227,196,63,56,3,248,0,0,207,231,10,30,254,90,169,111,229,128,30,124,115,248,111,227,213,31,146,0,200, +0,0,16,0,79,227,45,158,254,91,249,111,199,190,30,244,81,152,111,227,213,31,150,2,200,0,0,4,0,127,131,252, +3,240,127,248,62,0,56,31,126,95,233,255,225,199,135,30,127,248,0,0,0,192,207,231,63,159,162,75,249,39,4,187, +159,254,112,64,255,227,204,31,16,0,64,0,0,17,144,79,231,27,31,124,87,25,95,231,241,158,254,24,64,127,231,206, +25,108,3,24,0,0,31,224,127,128,120,31,254,15,49,228,133,112,31,126,95,105,255,225,199,159,190,127,252,0,0,16, +16,207,195,21,158,84,95,249,99,135,181,159,146,48,192,238,195,248,191,238,0,224,0,64,207,231,27,30,254,107,249,175, +230,177,158,254,115,248,227,3,255,223,16,0,64,0,0,17,16,207,231,27,30,60,95,249,127,231,155,31,198,49,176,255, +243,219,31,76,2,48,0,0,0,128,135,199,50,31,254,107,73,175,230,156,158,246,112,240,237,195,142,187,202,0,192,0, +0,33,0,143,103,125,30,236,107,201,175,102,173,30,252,114,128,234,35,189,159,252,0,32,0,0,0,16,79,195,21,159, +92,95,249,103,199,245,159,146,19,248,109,99,255,191,222,3,248,0,0,0,144,207,231,63,158,108,95,249,97,133,191,158, +254,115,120,239,227,203,31,108,3,8,0,0,0,64,207,231,12,30,254,91,249,111,101,191,158,22,115,248,227,3,244,159, +230,1,240,17,16,198,195,63,158,252,89,241,127,231,181,158,246,115,248,239,227,241,159,198,3,248,0,0,48,9,243,231, +237,159,236,127,249,252,132,255,145,136,63,240,204,195,255,0,204,127,248,0,0,1,128,199,199,63,159,254,106,217,168,134, +191,158,190,114,240,235,195,239,159,166,4,248,0,0,3,3,255,227,254,7,248,63,240,255,195,39,31,220,127,209,255,199, +183,22,244,92,152,0,0,32,64,207,227,127,159,180,111,249,187,199,239,159,254,118,248,255,227,239,31,254,4,96,0,0, +1,32,223,227,27,30,254,78,9,39,132,191,158,114,115,248,231,195,173,63,210,0,192,0,0,32,0,207,227,63,159,147, +107,121,173,231,132,31,254,48,200,239,227,170,191,170,2,168,0,0,1,176,223,247,29,30,216,127,241,255,231,191,158,216, +115,96,239,227,219,63,56,7,184,0,0,1,32,223,227,27,30,254,74,169,47,228,135,158,254,115,248,237,227,187,63,158, +4,152,0,0,12,0,63,129,252,31,254,30,48,255,131,115,14,198,24,97,247,231,223,133,30,127,248,0,0,2,0,255, +227,255,31,254,31,225,255,229,254,135,240,24,97,119,231,223,133,30,127,248,0,0,4,0,183,226,150,159,254,41,129,183, +228,112,159,122,125,105,55,164,198,159,254,64,24,0,0,3,0,255,195,255,15,252,127,249,127,161,254,30,8,31,225,247, +231,223,135,30,127,248,0,0,19,184,206,227,59,158,238,91,97,111,231,255,158,254,115,248,239,195,191,31,56,3,248,0, +0,2,0,8,0,96,15,252,36,144,146,66,73,9,36,36,144,146,66,73,31,254,127,248,16,0,71,227,205,159,54,76, +217,51,100,255,147,38,76,145,58,71,233,56,110,3,248,16,32,69,167,222,159,190,110,225,191,230,230,27,152,111,249,185, +135,230,60,24,0,96,0,0,16,0,207,230,0,18,0,24,0,223,231,3,60,8,16,32,64,129,2,4,8,16,224,0, +0,16,0,217,230,48,20,0,52,0,219,231,33,28,4,49,16,204,67,97,13,140,52,112,0,0,16,0,191,230,48,20, +192,51,0,159,246,249,56,196,35,16,140,66,49,8,196,35,112,0,0,18,0,217,230,120,23,0,31,120,221,231,33,27, +228,35,16,136,66,57,8,196,34,112,0,0,18,0,140,230,248,20,128,51,0,255,246,33,56,196,47,144,136,66,57,11, +244,32,112,0,0,16,0,191,230,32,23,224,55,128,218,246,253,56,4,39,144,146,66,73,9,228,36,48,0,0,32,0, +158,230,88,23,224,63,249,191,230,253,27,244,35,16,191,66,49,9,164,44,48,0,0,32,0,189,230,252,23,240,59,125, +183,102,249,155,246,63,216,180,98,253,139,246,47,176,0,0,2,0,12,7,255,159,254,7,0,54,99,139,30,56,88,192, +97,129,147,7,198,24,8,0,0,8,0,32,0,224,31,192,6,0,52,1,240,15,128,107,1,36,0,128,2,0,8,0, +0,0,0,192,67,1,204,31,48,12,192,107,193,237,143,50,118,192,75,1,12,4,48,16,192,0,0,3,0,255,227,255, +15,252,63,241,255,231,255,131,100,56,177,227,129,150,7,206,24,8,0,0,32,0,79,225,191,159,214,11,88,101,195,91, +30,104,124,224,67,129,30,4,206,22,8,0,0,0,16,64,193,142,31,96,8,24,96,195,206,30,112,252,8,64,97,7, +4,112,19,0,0,0,0,16,64,193,131,31,254,11,248,96,195,211,30,108,124,176,64,193,3,4,12,16,240,0,0,3, +1,255,231,255,134,24,118,24,51,3,254,4,200,15,16,231,134,142,3,206,30,8,0,0,2,1,255,231,255,135,248,16, +33,255,225,3,7,248,15,144,99,199,142,3,206,28,24,0,0,32,64,193,3,132,30,254,27,248,75,35,236,158,186,255, +184,204,99,32,140,130,50,56,0,0,3,1,255,224,48,15,252,63,240,204,195,255,0,192,15,49,231,133,140,7,220,28, +24,0,0,32,0,199,225,62,31,16,8,64,97,3,255,206,24,116,64,65,1,4,4,24,19,248,0,0,3,0,30,1, +238,28,206,31,224,3,128,44,31,254,127,248,118,199,142,3,220,30,24,0,0,32,64,195,3,142,30,108,27,216,73,35, +128,30,254,120,48,192,195,2,12,24,48,64,0,0,3,0,255,192,48,31,254,0,0,127,193,3,7,252,15,144,102,199, +142,2,220,30,24,0,0,32,128,195,3,63,30,252,24,208,66,67,191,159,254,120,192,199,131,19,13,206,54,24,0,0, +32,0,195,225,158,30,16,24,64,83,131,255,158,24,124,224,194,131,27,12,198,50,8,0,0,2,0,255,195,67,13,152, +48,64,255,224,1,128,206,127,248,54,199,142,18,220,30,24,0,0,16,1,251,231,233,141,166,38,153,179,224,48,31,254, +15,16,246,199,142,7,222,28,24,0,0,9,32,102,195,63,157,240,80,200,73,224,49,31,254,15,144,227,199,142,3,206, +28,24,0,0,33,0,198,3,63,158,134,31,216,77,99,181,158,246,123,248,204,195,48,12,194,49,248,0,0,0,0,207, +227,177,158,198,27,24,79,227,241,158,198,127,248,207,227,0,12,254,55,248,0,0,32,64,193,1,132,30,254,27,248,73, +35,164,158,254,255,88,201,35,36,140,254,51,24,0,0,32,64,193,3,63,158,254,24,64,65,3,191,158,56,121,224,205, +67,101,141,18,48,64,0,0,32,64,201,99,181,158,84,25,96,79,227,196,30,16,127,248,193,131,4,12,16,48,64,0, +0,3,1,255,224,0,15,248,7,193,255,224,241,31,200,71,0,62,199,142,3,158,30,8,0,0,32,64,193,3,191,158, +254,18,72,79,195,191,158,228,254,144,219,131,102,13,126,55,24,0,0,4,64,25,135,255,131,108,25,192,222,38,47,159, +254,127,248,118,199,142,3,206,28,8,0,0,33,32,204,227,34,158,136,22,248,249,131,166,28,152,250,112,137,66,45,136, +166,35,136,0,0,32,64,195,3,14,30,108,19,56,223,227,128,30,252,123,240,204,67,49,12,252,51,240,0,0,32,128, +199,225,191,159,196,30,224,67,131,255,158,198,127,248,204,99,49,140,254,51,24,0,0,34,0,136,227,39,157,242,18,200, +203,35,252,157,82,255,72,141,34,63,137,190,36,72,0,0,8,192,251,195,237,130,48,127,248,35,7,245,159,212,58,113, +217,131,54,143,126,33,24,0,0,0,9,253,99,229,157,150,28,88,96,103,51,31,254,15,152,118,199,142,7,220,30,24, +0,0,8,65,161,3,255,134,48,56,65,175,224,176,0,192,127,248,118,199,142,7,220,28,24,0,0,32,64,73,33,181, +158,86,8,80,79,227,255,158,2,127,248,199,227,0,140,254,51,248,0,0,32,0,207,227,161,158,254,27,248,72,99,255, +158,176,254,88,201,195,35,12,246,51,8,0,0,32,0,207,227,33,158,198,27,248,64,3,191,158,16,120,96,207,227,4, +12,56,55,248,0,0,3,1,255,224,48,15,252,63,240,255,192,48,15,252,127,249,255,227,143,30,120,31,56,0,0,3, +1,255,224,64,15,124,48,16,255,194,1,15,252,7,16,231,199,142,7,222,28,24,0,0,3,1,255,224,251,7,124,120, +224,124,227,255,15,252,44,208,255,194,205,11,244,36,112,0,0,32,0,196,193,177,159,178,24,224,70,131,211,31,198,127, +248,204,67,49,12,252,51,240,0,0,3,97,255,231,255,140,204,15,224,253,198,33,159,254,127,248,118,199,142,3,220,28, +24,0,0,32,0,207,227,9,158,254,27,248,70,99,191,158,64,123,248,206,99,80,140,126,49,248,0,0,32,128,74,196, +105,137,46,16,225,158,4,112,0,224,127,248,118,199,142,7,220,28,24,0,0,32,0,207,227,164,158,254,27,248,73,35, +191,158,48,248,192,207,227,4,12,48,55,248,0,0,32,64,151,227,127,156,40,16,160,255,227,34,28,136,243,248,136,130, +98,11,200,40,248,0,0,32,64,195,3,26,30,204,31,252,215,131,128,30,150,122,80,205,67,2,13,254,55,248,0,0, +32,64,207,227,127,159,144,23,248,218,131,234,31,254,126,32,159,226,127,137,8,44,32,0,0,32,0,139,227,32,159,2, +23,232,220,163,250,159,250,127,40,158,162,126,137,130,38,56,0,0,32,192,207,227,63,158,150,27,248,75,35,191,158,104, +123,32,223,227,63,140,8,48,32,0,0,32,0,159,231,25,158,204,19,184,219,163,128,31,254,233,200,156,226,51,9,254, +36,200,0,0,32,64,195,3,63,156,48,19,240,195,3,255,156,114,123,120,156,194,19,8,118,35,136,0,0,19,32,76, +135,255,144,2,95,232,97,129,254,31,254,127,248,54,199,142,3,222,28,24,0,0,4,129,243,224,204,31,62,4,193,243, +224,104,31,254,127,248,118,199,142,3,220,28,24,0,0,32,0,207,227,164,158,254,26,72,79,227,204,30,254,127,248,199, +195,53,13,146,48,64,0,0,3,1,255,225,254,12,204,63,240,255,199,255,135,248,115,56,60,199,142,3,156,28,24,0, +0,32,0,207,227,177,158,254,27,24,111,227,144,30,254,127,168,197,163,52,140,182,49,176,0,0,32,0,207,227,160,158, +254,27,248,73,131,191,222,152,126,96,223,227,112,141,102,53,248,0,0,33,48,132,195,127,28,204,17,48,255,227,19,156, +78,103,240,140,194,19,9,252,36,48,0,0,32,64,203,131,63,158,130,19,248,200,3,191,158,254,127,104,159,226,118,137, +90,37,24,0,0,32,0,207,231,177,158,254,27,248,71,195,159,158,254,254,72,207,163,58,140,126,48,56,0,0,3,1, +255,225,191,13,140,119,241,223,227,127,15,38,3,0,124,199,142,6,222,30,8,0,0,32,0,139,227,41,157,166,22,248, +248,131,162,28,254,122,112,139,194,42,136,234,34,32,0,0,32,160,198,163,59,158,104,31,168,66,227,191,158,198,123,248, +204,99,63,140,198,51,48,0,0,32,128,195,39,191,158,44,27,248,95,227,152,31,254,255,24,199,227,17,140,126,49,248, +0,0,32,64,205,67,29,31,254,17,224,205,99,140,158,112,127,248,140,194,62,8,124,39,24,0,0,33,16,207,227,255, +158,84,24,224,70,195,255,158,120,121,240,207,227,33,140,254,51,248,0,0,32,0,159,231,111,31,128,23,248,218,163,255, +31,246,238,56,151,226,73,11,36,40,112,0,0,32,0,147,227,40,158,190,16,136,251,227,168,28,174,122,144,139,226,56, +137,192,36,248,0,0,32,24,159,195,103,157,152,23,248,213,163,223,29,94,125,48,149,194,85,11,245,42,152,0,0,3, +1,255,228,204,159,254,12,192,51,7,255,134,216,63,249,30,163,206,11,220,14,48,0,0,33,32,148,131,87,157,88,21, +224,215,99,144,28,252,127,248,151,226,95,137,254,47,248,0,0,32,0,223,227,170,158,174,17,152,91,163,132,30,254,123, +24,207,227,49,140,254,51,248,0,0,32,0,159,227,29,156,254,23,32,209,195,207,157,234,251,248,141,194,34,136,190,38, +232,0,0,3,1,255,227,207,9,44,60,240,51,195,255,15,252,127,249,255,227,143,18,220,28,24,0,0,32,97,247,230, +73,31,126,124,97,159,231,230,0,216,127,248,54,199,142,3,220,30,24,0,0,32,16,204,195,127,158,236,23,120,205,67, +191,30,252,127,248,159,226,37,9,146,37,192,0,0,32,0,143,227,127,157,178,23,248,207,195,132,29,254,248,200,159,226, +106,137,170,38,184,0,0,34,80,159,99,63,159,254,30,248,74,67,255,158,220,255,216,159,226,12,8,252,33,192,0,0, +127,248,54,0,72,31,254,109,217,146,102,201,158,62,96,25,128,103,255,152,6,0,0,0,1,255,224,72,15,254,36,152, +183,99,255,3,128,127,248,97,1,252,3,248,124,56,0,0,0,1,255,227,255,27,54,127,248,127,131,255,15,252,48,48, +127,199,255,159,254,3,0,0,0,0,1,255,227,255,155,54,63,240,223,230,127,23,252,51,241,207,195,127,12,120,63,248, +0,0,0,0,255,195,3,12,140,51,48,204,195,35,12,140,55,176,30,0,216,142,102,112,248,0,0,0,1,255,231,241, +131,214,75,89,173,99,181,134,214,24,224,227,134,222,208,219,6,56,0,0,16,0,71,231,209,159,86,17,88,197,103,213, +132,86,56,96,243,130,94,216,218,70,56,0,0,0,112,255,195,35,4,200,27,96,255,195,35,12,204,51,48,206,192,104, +7,34,112,248,0,0,32,0,207,231,177,158,214,11,88,77,99,53,158,214,120,224,195,131,30,204,218,54,56,0,0,16, +0,71,225,209,135,86,17,88,69,103,213,145,86,69,105,19,132,78,31,107,67,56,0,0,4,129,179,230,223,155,88,109, +48,16,1,255,4,12,19,48,76,192,120,7,98,112,248,0,0,2,0,204,193,182,31,254,64,9,255,225,2,4,200,19, +32,78,128,120,7,34,112,248,0,0,16,1,95,229,112,159,218,1,105,245,167,212,129,90,127,105,129,132,14,31,107,67, +56,0,0,0,1,255,225,152,149,122,85,233,215,167,126,159,250,92,96,65,129,234,252,107,2,56,0,0,8,0,251,225, +136,159,170,126,168,234,165,138,138,42,126,232,97,129,198,25,171,65,56,0,0,8,0,115,227,104,153,170,60,169,202,165, +106,157,170,86,249,217,133,102,20,255,119,152,0,0,36,1,251,227,200,159,170,60,169,254,167,234,159,170,126,233,105,143, +246,16,186,71,184,0,0,36,1,255,230,72,143,42,124,169,250,167,238,134,58,126,96,97,135,206,31,235,97,56,0,0, +8,0,63,225,136,159,234,94,169,226,164,234,145,42,125,249,249,197,199,95,237,49,152,0,0,12,0,63,1,140,15,252, +127,240,68,65,255,12,196,49,16,255,195,17,24,68,97,112,0,0,16,64,225,3,207,26,126,126,89,249,103,255,159,254, +126,97,251,133,233,23,230,79,8,0,0,32,24,247,230,213,27,84,125,81,213,71,213,159,86,117,73,245,165,86,149,254, +78,248,0,0,9,129,191,198,156,31,226,252,248,127,3,156,31,252,31,240,76,67,255,8,68,97,112,0,0,32,128,231, +231,223,158,196,125,241,209,135,223,159,126,124,169,245,165,116,149,38,93,176,0,0,32,0,247,227,196,155,50,127,185,174, +135,234,31,254,127,33,255,228,191,147,136,76,32,0,0,32,96,245,166,214,155,126,124,113,223,231,223,159,44,124,177,242, +197,91,21,239,79,24,0,0,32,96,241,131,198,27,126,127,105,253,167,246,159,254,126,97,249,229,231,151,254,77,8,0, +0,32,64,225,131,255,155,24,125,249,213,167,214,159,126,124,241,243,197,95,149,218,92,96,0,0,32,144,226,71,159,158, +126,253,105,87,231,214,157,126,116,97,247,229,127,149,24,220,96,0,0,8,81,251,195,205,15,180,127,153,254,35,207,155, +62,126,217,249,199,231,31,190,79,136,0,0,2,0,12,7,255,128,0,31,224,0,1,254,7,248,0,0,255,195,3,15, +252,63,240,0,0,24,0,96,3,255,152,130,127,216,0,97,253,135,230,0,24,127,97,13,135,246,0,112,0,0,9,129, +182,198,220,26,98,126,248,12,7,255,135,248,0,0,127,131,255,12,12,63,240,0,0,0,0,255,194,73,15,252,3,1, +255,224,0,7,248,31,224,0,3,255,12,12,63,240,0,0,32,16,207,199,132,31,16,123,248,239,231,132,0,16,121,249, +164,100,145,158,126,97,248,0,0,8,0,126,3,152,31,254,118,112,246,67,255,141,252,39,224,159,194,127,27,4,79,240, +0,0,2,32,76,135,255,159,254,26,97,204,231,255,135,248,0,0,0,1,255,4,12,31,240,0,0,19,32,109,131,255, +1,128,127,248,233,135,255,135,248,31,224,127,129,254,12,12,63,240,0,0,16,49,247,129,152,31,254,27,48,200,199,255, +143,252,31,224,127,129,254,12,12,63,240,0,0,32,32,196,199,177,31,130,127,248,236,71,177,0,252,121,225,38,132,146, +158,202,102,56,0,0,32,64,207,231,134,30,126,123,248,225,135,159,128,70,121,249,164,100,159,158,70,97,56,0,0,3, +1,255,228,204,135,248,31,225,255,225,182,31,254,31,224,127,129,254,4,12,31,240,0,0,35,8,140,103,121,157,126,119, +152,222,103,125,129,238,119,185,206,101,233,158,38,99,176,0,0,24,225,250,199,249,143,252,122,241,255,228,48,31,254,31, +224,127,129,254,4,8,31,224,0,0,52,65,251,227,253,159,220,110,112,255,96,112,159,254,31,224,127,129,254,12,12,63, +240,0,0,32,97,151,231,201,24,126,117,249,241,128,48,31,254,31,224,127,129,254,12,12,63,240,0,0,32,64,159,231, +187,158,174,115,185,198,199,63,128,254,121,177,127,228,243,158,92,67,136,0,0,0,0,192,1,128,0,0,112,1,224,1, +128,6,0,24,0,104,1,224,6,0,16,0,0,64,193,1,132,0,16,112,193,223,241,12,4,16,16,64,81,1,196,14, +16,32,64,0,0,0,0,207,225,63,128,8,112,33,192,129,2,4,8,16,32,80,129,194,14,24,33,224,0,0,0,128, +194,1,136,2,32,112,193,227,129,139,134,38,24,128,122,1,200,6,32,16,128,0,0,0,64,193,1,140,0,48,112,193, +195,1,12,4,56,16,224,86,129,211,12,198,38,8,0,0,0,0,207,193,179,0,204,115,49,204,193,51,4,204,19,48, +72,193,227,205,143,36,56,0,0,0,0,223,225,12,0,48,112,193,195,1,127,132,48,16,192,67,1,204,12,48,32,192, +0,0,0,0,207,225,63,128,16,0,65,193,1,4,4,16,16,64,81,1,132,13,255,32,0,0,48,192,193,131,1,254, +115,249,192,193,51,4,108,17,176,64,193,195,12,12,32,224,0,128,195,1,140,0,48,112,193,195,225,12,4,48,16,192, +83,1,140,13,254,39,248,0,64,193,1,132,0,146,114,73,201,33,36,132,146,18,72,73,33,228,142,254,32,24,0,0, +1,0,196,1,63,128,192,118,1,207,193,7,4,24,16,192,70,1,240,204,194,33,248,0,9,137,33,36,128,146,98,73, +201,35,36,140,146,50,72,249,35,228,141,130,36,8,0,0,0,0,146,99,109,129,148,114,17,204,195,51,12,88,49,224, +195,3,222,12,206,38,24,0,0,0,0,159,193,19,0,76,97,49,196,195,127,12,68,49,16,228,67,145,12,71,33,24, +0,0,0,0,207,225,191,128,6,112,25,196,97,63,132,196,19,0,76,1,240,206,194,33,248,1,48,132,193,19,1,254, +97,49,196,195,19,13,254,55,248,236,195,179,12,140,38,48,0,0,0,192,195,1,127,128,48,112,193,207,193,12,5,254, +16,200,67,33,204,142,54,32,192,0,0,0,0,143,225,32,0,164,98,145,201,195,38,12,156,50,208,222,99,224,12,254, +35,248,0,0,207,225,32,0,128,115,241,204,65,33,4,132,19,240,72,1,224,12,254,35,248,0,0,223,225,2,0,200, +114,32,207,225,63,132,24,20,160,230,131,50,11,136,0,224,0,0,0,64,129,1,4,0,254,103,249,219,35,108,141,186, +55,184,252,227,224,141,134,38,56,0,0,1,0,204,1,63,128,254,118,65,193,1,12,5,255,16,64,65,1,196,14,16, +32,64,0,0,33,0,197,129,54,0,218,102,121,249,195,38,12,248,50,96,233,131,166,204,154,34,56,0,0,0,192,195, +1,158,0,204,118,25,216,33,51,4,216,19,192,76,1,176,140,198,33,240,1,32,196,129,51,0,196,34,25,218,35,72, +12,96,49,176,196,67,177,141,254,34,8,0,0,0,0,159,193,97,1,156,103,81,223,67,109,13,180,54,208,247,195,243, +15,7,40,8,0,0,1,32,199,193,19,0,204,98,57,216,99,127,12,252,51,48,199,131,142,12,252,38,24,0,0,0, +192,195,1,14,1,254,113,1,198,1,31,132,68,17,16,124,67,177,13,140,36,112,0,0,0,128,194,1,63,0,252,112, +145,194,67,63,141,254,48,192,199,131,179,13,134,36,8,0,0,0,0,159,225,6,0,16,112,65,201,131,39,140,152,50, +64,233,3,164,13,254,39,248,0,192,195,1,12,1,254,39,249,195,3,12,12,254,50,24,216,99,225,140,254,35,248,0, +0,0,0,223,225,127,128,6,115,217,203,97,37,132,150,19,216,78,99,193,142,6,32,112,0,0,0,1,159,227,12,1, +182,98,209,203,67,12,13,255,48,192,195,3,140,12,48,32,192,0,0,0,0,207,193,177,0,196,115,241,207,193,49,4, +196,19,240,76,65,241,14,198,39,248,0,0,143,225,49,128,134,114,25,200,99,63,140,252,48,0,228,195,177,12,134,38, +8,0,0,1,0,140,1,63,128,254,118,129,211,227,15,140,32,48,192,227,227,136,12,32,32,128,0,0,0,48,207,193, +176,0,192,115,249,207,225,34,4,248,18,224,88,225,226,141,136,36,32,0,0,0,64,195,1,158,0,206,118,77,194,1, +50,4,24,17,216,76,67,198,12,112,35,0,0,0,0,16,143,195,116,1,152,118,97,223,227,127,141,152,54,96,248,131, +234,205,254,38,88,0,0,0,128,199,193,159,128,204,118,33,207,225,1,132,2,19,248,64,97,128,140,254,35,248,0,0, +0,0,159,225,0,128,250,96,9,200,35,60,140,146,50,72,207,35,160,140,2,32,56,0,0,0,65,137,1,37,128,150, +98,89,207,227,12,13,146,54,72,249,35,228,141,254,32,24,0,0,0,0,159,225,25,128,102,113,25,204,227,99,12,254, +51,248,248,99,161,140,254,35,248,0,0,0,1,159,227,51,0,120,112,225,222,227,76,140,252,51,240,195,3,255,140,48, +32,192,0,0,0,128,198,1,146,0,204,98,25,223,227,0,140,252,51,240,232,67,161,12,252,35,240,0,0,0,0,223, +225,96,1,126,116,97,209,131,95,141,24,52,96,215,227,192,13,254,39,248,0,192,195,1,127,128,48,115,249,195,3,127, +141,254,49,224,199,195,237,141,178,32,192,0,0,0,96,193,225,6,129,255,112,97,193,131,126,12,200,49,32,196,131,255, +205,206,32,24,0,0,0,192,131,1,127,128,48,96,193,223,227,12,12,48,55,248,227,3,140,13,254,47,248,0,64,131, +1,63,128,48,96,193,223,243,3,13,254,55,248,236,195,147,12,12,32,112,0,0,0,64,193,1,127,128,254,112,65,207, +225,63,132,0,19,248,76,97,241,142,254,35,248,0,0,1,1,132,3,127,128,216,99,33,202,163,46,141,254,53,112,241, +131,143,12,102,35,8,0,0,0,81,129,99,127,129,254,100,97,223,163,126,141,46,52,176,210,195,251,79,31,44,152,0, +0,0,64,205,1,188,0,254,118,65,193,1,127,132,120,17,240,69,67,181,141,146,32,64,0,0,0,64,201,1,63,129, +254,118,65,211,1,127,196,120,17,32,116,129,178,77,139,44,56,0,0,0,17,159,195,12,0,48,103,249,223,227,12,12, +48,51,248,232,99,161,140,254,35,248,0,0,0,9,191,227,43,0,140,100,177,190,226,59,9,172,38,176,155,227,231,141, +224,40,248,0,0,0,16,143,225,32,0,128,99,249,200,3,32,12,254,55,152,254,99,217,141,126,45,152,0,0,0,192, +195,1,158,0,204,118,25,223,193,12,4,48,19,240,67,3,140,12,48,39,248,1,0,135,129,62,1,152,103,249,216,3, +47,140,166,50,152,250,195,232,13,34,36,248,0,0,1,0,140,1,63,129,254,110,9,223,35,36,140,242,50,72,239,35, +177,140,6,32,112,0,0,2,0,136,225,62,0,130,115,249,199,195,0,12,254,50,24,239,227,160,140,254,34,24,0,0, +1,0,199,129,62,1,152,119,249,195,97,127,133,254,16,216,79,227,136,12,32,35,128,0,0,32,192,195,1,127,128,96, +113,17,207,193,126,4,54,19,176,89,129,206,14,230,54,8,0,0,1,16,196,65,27,0,254,112,65,195,3,63,140,16, +48,192,223,227,132,12,16,32,64,0,0,0,128,195,1,127,129,130,116,121,207,1,8,4,62,23,224,66,3,136,140,50, +32,248,0,0,159,227,72,129,34,103,249,205,3,52,13,254,48,64,239,227,255,140,16,32,64,0,0,0,1,191,227,24, +129,98,101,169,150,162,24,136,230,39,232,167,35,152,140,98,35,56,0,0,0,32,129,163,6,131,255,96,97,222,162,122, +137,254,39,176,214,195,219,13,63,32,152,0,0,0,1,159,227,12,0,180,98,209,203,67,111,13,254,61,232,195,3,140, +15,254,39,248,0,1,159,227,24,1,252,97,177,196,67,255,204,0,51,248,216,99,225,141,254,39,248,0,0,0,64,201, +33,181,128,20,115,249,204,97,49,132,254,18,8,79,225,225,140,134,34,56,0,0,0,0,143,225,33,128,198,99,249,192, +3,127,140,48,55,248,223,227,158,12,204,38,24,0,0,0,64,201,1,63,129,254,36,65,223,227,127,140,0,51,248,200, +99,161,140,254,35,248,0,0,0,48,143,131,12,1,254,113,225,207,99,68,140,248,49,224,228,227,176,140,198,38,48,0, +0,1,0,204,1,63,129,128,119,249,207,99,37,141,255,50,152,201,67,255,140,4,32,112,0,0,0,1,159,227,99,1, +140,111,49,140,194,63,137,204,47,48,140,195,179,12,254,38,248,2,16,140,193,18,1,252,118,17,216,67,127,12,252,49, +96,245,131,182,141,154,44,56,0,0,0,16,143,225,19,0,120,99,249,223,227,109,141,254,54,200,255,227,237,141,178,38, +216,0,0,0,128,196,129,51,1,254,99,1,207,227,127,141,48,55,248,199,3,158,12,204,46,24,0,0,0,64,159,225, +12,0,254,112,193,223,227,63,12,134,51,248,200,99,191,140,132,34,48,0,0,0,129,134,99,127,128,44,103,249,223,227, +56,13,254,63,24,207,227,177,140,254,35,248,0,0,0,1,191,35,79,129,106,103,169,146,162,123,137,238,36,176,150,195, +251,12,46,32,200,0,0,1,33,140,195,127,128,76,96,129,223,227,127,140,192,55,248,252,99,177,140,254,35,248,0,0, +0,192,143,193,63,0,50,119,249,205,99,28,12,144,55,248,255,227,154,12,198,38,8,0,0,0,1,159,227,28,0,96, +103,137,211,195,63,13,212,49,248,231,163,230,205,16,33,192,0,0,1,32,134,131,123,129,238,97,161,206,227,123,140,104, +55,184,254,227,154,12,104,33,160,0,0,0,0,159,227,109,129,254,102,217,223,227,12,13,254,55,248,231,131,189,13,178, +32,192,0,0,0,16,159,195,12,1,254,97,225,223,227,72,140,96,55,248,204,131,254,12,124,39,24,0,0,0,1,131, +3,111,129,50,103,249,155,98,76,137,254,32,192,135,131,146,13,196,44,8,0,0,1,0,141,129,54,1,254,102,97,255, +227,63,140,152,51,248,237,131,166,12,255,34,0,0,0,0,128,135,3,54,1,174,108,201,223,195,3,12,8,48,128,255, +99,241,143,202,33,224,0,0,159,225,100,129,250,102,201,223,163,126,141,122,53,232,212,163,222,143,66,40,56,0,0,0, +128,134,1,63,128,132,102,33,214,131,119,141,134,54,24,254,227,225,141,254,39,248,0,0,0,64,131,131,127,128,0,99, +249,200,99,33,140,254,48,64,237,67,229,141,18,33,192,0,0,0,192,159,225,127,128,252,98,25,207,227,0,12,254,48, +112,255,227,191,140,16,33,192,0,0,0,128,131,1,127,128,64,99,33,204,195,127,141,16,48,192,223,227,140,12,48,32, +192,0,0,0,192,203,97,45,1,52,113,225,204,225,108,132,178,18,216,91,193,158,12,204,38,24,0,0,0,129,131,3, +127,129,2,103,249,204,195,51,12,252,50,48,239,195,179,13,254,39,248,2,17,140,195,127,128,204,99,241,204,195,63,12, +48,55,248,231,131,191,13,182,36,200,0,0,2,17,159,227,127,128,252,99,241,143,194,63,11,254,47,248,146,195,209,13, +254,39,248,0,16,139,67,127,128,180,114,241,200,3,63,140,48,55,248,231,131,158,13,182,36,200,0,0,1,33,159,227, +127,128,112,103,249,200,3,63,12,0,50,144,235,67,173,13,181,36,152,0,0,0,65,131,3,127,128,48,103,249,221,99, +126,141,254,51,240,231,131,189,13,182,36,200,0,0,6,65,153,163,127,129,152,102,105,223,227,76,12,254,50,24,255,227, +255,140,134,35,248,0,0,0,128,131,225,12,1,254,103,169,223,131,79,141,0,53,248,214,3,255,143,96,41,248,0,0, +0,0,143,225,33,128,254,99,249,207,195,63,141,254,54,72,203,163,186,140,254,32,56,0,0,0,1,159,227,108,129,254, +102,217,223,227,63,12,134,51,248,200,99,255,140,134,34,48,0,0,0,0,159,227,92,129,254,112,1,223,195,0,15,254, +49,0,207,195,129,12,4,32,240,0,0,0,128,135,3,55,3,142,43,225,156,34,122,137,234,37,168,158,163,218,141,34, +37,184,0,0,0,48,159,195,41,0,172,103,249,196,3,127,140,192,51,240,238,67,238,13,60,15,152,0,0,1,1,143, +131,102,3,254,102,217,223,227,30,12,218,62,56,199,131,162,12,248,32,112,0,0,0,129,182,67,127,128,86,102,193,243, +131,59,141,130,51,240,232,67,161,12,252,35,240,0,0,0,128,131,3,127,128,204,35,35,255,227,0,12,252,50,16,207, +195,225,12,252,35,240,0,0,0,64,131,3,127,128,76,103,249,159,226,66,9,240,36,48,151,131,209,143,28,43,128,0, +0,0,128,159,227,127,128,200,103,249,223,227,76,141,252,54,216,219,99,237,12,188,32,192,0,0,0,33,180,163,74,129, +44,96,97,191,226,102,9,188,38,168,156,163,98,31,224,40,248,0,0,0,193,139,3,127,129,130,103,249,152,2,127,137, +254,39,104,159,227,254,143,218,43,56,0,0,1,33,159,227,59,0,252,103,249,223,227,97,141,254,48,192,255,227,158,12, +204,38,24,0,0,0,129,146,66,107,3,254,108,9,191,162,127,9,140,39,240,237,131,180,29,154,44,120,0,0,0,0, +159,227,127,129,254,103,249,204,195,113,141,98,51,240,220,195,142,12,252,39,24,0,0,2,9,140,99,121,129,126,103,153, +158,98,127,139,238,47,184,142,99,233,143,38,35,176,0,0,0,16,159,195,9,128,180,98,17,207,227,76,13,254,55,248, +243,35,205,141,254,39,248,0,0,0,193,159,227,127,128,76,103,249,209,35,76,141,254,49,128,199,195,209,12,196,38,112, +0,0,2,17,140,195,18,3,254,97,33,204,195,97,141,254,55,248,245,99,213,141,254,47,252,2,33,140,131,127,128,216, +103,249,197,227,255,140,94,55,248,205,131,247,15,86,41,72,0,0,1,1,131,67,18,1,94,109,201,206,67,127,12,0, +55,248,223,227,223,141,254,39,248,1,33,159,227,51,0,252,96,193,223,227,109,140,252,55,248,195,3,255,140,48,47,248, +0,0,136,65,63,0,132,115,241,223,227,82,141,254,55,240,236,195,159,12,120,39,56,0,0,0,192,159,227,51,0,72, +103,249,211,35,127,141,50,53,232,212,163,222,141,66,36,56,0,0,1,17,159,227,127,129,234,103,169,218,163,122,141,102, +48,16,223,227,153,140,198,38,112,0,0,0,0,159,225,123,128,230,119,249,194,35,30,13,222,53,128,205,131,185,12,56, +39,128,0,0,0,1,159,227,63,129,254,103,249,207,227,127,141,254,54,24,223,227,140,13,254,32,192,0,0,0,1,157, +227,117,1,222,103,113,222,195,247,204,22,55,248,216,99,255,141,134,39,248,0,0,1,64,205,129,63,129,254,111,241,255, +195,63,12,252,51,248,239,227,161,141,170,36,168,0,0,0,1,159,227,32,130,50,111,233,191,162,254,139,250,47,232,183, +35,251,143,162,44,56,0,0,2,33,140,131,127,129,90,103,113,223,195,255,140,252,55,240,223,195,225,13,252,39,240,0, +0,0,16,143,195,30,1,254,97,217,217,66,76,9,254,37,168,223,227,210,141,122,37,24,0,0,2,17,140,99,253,128, +132,47,249,182,194,185,11,236,42,176,190,227,174,142,186,41,200,0,0,0,65,167,227,86,129,126,99,249,179,194,223,137, +126,37,248,150,99,127,143,192,41,248,0,0,1,0,143,129,127,131,254,103,153,221,35,127,141,254,52,240,211,195,223,141, +102,45,248,0,0,2,160,154,227,126,129,88,111,249,142,194,110,137,174,38,184,155,67,171,15,255,32,88,0,0,0,0, +33,131,131,24,198,7,128,51,1,134,31,254,95,232,64,129,2,7,248,31,224,0,0,16,1,251,71,233,151,234,60,96, +241,193,141,159,230,25,249,250,38,104,159,190,102,248,0,0,0,1,255,224,0,15,248,63,240,192,195,3,15,252,8,64, +33,0,140,31,254,127,248,127,248,7,231,198,31,24,68,97,241,134,198,27,24,44,96,177,135,255,128,126,0,65,241,128, +63,159,126,108,97,23,231,223,146,100,104,176,163,131,206,62,124,3,24,0,0,0,65,255,224,63,158,130,123,185,47,231, +174,131,186,73,169,166,225,146,31,203,6,56,0,0,0,1,255,224,112,3,132,122,113,31,128,222,28,104,7,176,118,71, +25,144,192,15,0,0,0,0,1,255,228,140,18,98,127,153,163,196,191,31,148,120,209,37,100,228,146,18,89,192,0,0, +12,0,126,3,24,31,252,51,16,255,193,227,28,220,15,224,206,128,203,30,102,7,0,0,0,17,0,109,131,255,1,128, +127,248,97,135,255,145,142,59,96,119,130,123,14,102,7,0,0,0,3,1,255,224,0,7,248,31,224,0,7,255,151,250, +30,48,159,131,190,3,108,115,24,0,0,1,129,247,193,178,29,254,18,75,255,227,156,139,246,41,240,157,194,30,137,218, +96,192,0,0,0,65,247,227,31,156,100,127,252,228,71,223,151,194,57,73,229,44,148,134,110,51,8,0,0,0,1,12, +39,255,150,210,127,249,125,167,255,147,222,123,217,45,36,52,159,254,127,248,0,0,0,64,31,3,240,2,120,13,192,126, +3,156,1,240,60,192,15,0,228,14,16,3,192,0,0,8,128,230,5,24,19,126,59,9,232,36,216,143,50,108,72,112, +38,65,147,6,24,112,0,0,8,16,224,199,3,19,254,56,49,225,197,135,15,60,108,176,118,198,243,19,12,56,112,0, +0,8,0,239,229,12,147,50,121,137,236,229,163,14,126,77,24,116,38,208,147,126,57,248,0,0,8,33,228,133,18,23, +254,123,249,221,193,247,14,220,75,248,238,166,186,146,200,59,32,0,0,8,128,226,37,31,147,230,58,241,225,132,159,143, +199,109,248,116,102,81,147,126,57,152,0,0,8,0,239,231,4,19,16,57,249,228,101,144,143,126,109,248,116,38,208,147, +126,57,24,0,0,8,64,225,7,63,147,194,59,249,236,101,191,142,126,108,160,118,134,218,19,203,58,56,0,0,8,144, +230,71,63,139,236,56,145,231,225,183,143,210,111,248,125,230,244,147,254,59,24,0,0,8,64,231,229,63,151,250,58,233, +206,229,191,142,136,79,248,127,198,162,18,251,59,56,0,0,9,145,239,229,27,23,108,59,249,207,229,177,142,254,76,64, +127,230,206,18,108,63,24,0,0,0,0,255,195,3,12,204,51,48,204,195,51,12,204,50,48,24,0,204,14,28,96,24, +0,0,3,0,15,224,63,128,192,63,240,192,195,51,12,204,51,48,200,192,104,15,28,112,24,0,0,12,0,62,1,252, +12,32,127,241,192,193,19,4,204,19,48,72,192,104,7,28,112,24,0,0,0,0,255,192,48,31,254,127,248,0,3,255, +12,12,51,48,204,193,104,7,60,112,24,0,0,0,17,240,196,67,21,254,84,49,81,197,71,21,60,84,177,86,195,179, +25,12,68,112,0,0,3,0,255,224,48,15,252,3,1,255,225,254,15,252,51,48,204,193,56,7,60,120,24,0,0,8, +1,175,198,147,26,56,104,225,174,225,254,7,252,19,48,76,193,122,7,60,112,24,0,0,0,1,243,4,76,21,62,85, +145,94,69,121,21,44,84,96,65,131,198,25,54,65,136,0,0,1,1,244,100,83,21,88,85,65,95,229,127,149,72,85, +33,196,195,145,27,118,67,136,0,0,9,0,102,231,190,20,226,17,248,64,1,255,12,204,51,48,204,193,104,7,60,112, +24,0,0,0,112,255,130,24,15,254,49,128,159,194,255,10,36,41,145,166,70,21,17,156,92,24,0,0,0,25,255,228, +80,21,64,85,249,87,101,93,149,84,85,112,205,195,183,27,190,66,136,0,0,3,0,30,3,231,28,70,63,224,1,129, +254,15,252,51,48,204,193,106,7,60,120,24,0,0,12,192,97,131,255,159,250,12,64,231,3,254,7,248,19,32,76,129, +106,3,56,120,56,0,0,0,17,247,228,92,21,48,84,65,95,229,65,149,12,84,96,195,3,152,27,184,66,120,0,0, +0,129,246,4,95,149,126,87,9,82,37,72,149,106,85,233,207,227,129,155,6,68,112,0,0,0,65,241,4,70,21,254, +87,9,92,37,64,21,0,84,1,192,2,128,27,254,68,0,0,0,0,0,127,199,179,159,254,63,224,127,129,255,12,12, +51,48,204,193,106,7,60,112,24,0,0,0,80,1,103,255,128,16,63,64,1,7,246,15,216,35,96,164,130,146,7,142, +113,152,0,0,0,193,243,196,77,21,126,85,193,81,101,95,149,114,84,88,65,195,134,25,127,65,24,0,0,3,0,255, +192,180,6,152,127,248,33,1,254,15,252,51,48,200,193,106,7,60,112,24,0,0,18,33,255,231,255,140,248,48,0,255, +224,0,15,252,48,48,204,195,123,3,60,120,24,0,0,0,65,241,4,68,21,31,84,65,81,5,68,21,126,85,9,84, +35,144,155,126,69,248,0,0,3,0,255,195,51,15,252,127,249,255,225,254,12,204,51,48,204,193,106,7,60,112,24,0, +0,0,1,255,228,241,151,198,95,25,124,101,255,151,40,92,161,134,130,146,27,203,66,56,0,0,9,32,100,195,127,157, +240,16,232,64,225,254,4,204,19,48,76,193,106,7,60,112,24,0,0,12,0,247,226,5,139,54,125,145,132,193,255,12, +204,51,48,204,193,105,3,60,120,24,0,0,4,129,255,192,77,15,252,63,248,255,227,137,159,252,49,48,204,195,35,7, +60,120,24,0,0,16,1,251,227,105,140,166,110,249,48,1,254,4,8,19,32,76,129,106,7,60,112,24,0,0,0,65, +243,4,73,21,100,85,25,95,229,64,21,126,85,248,196,34,144,155,126,69,248,0,0,0,113,241,228,198,149,255,84,97, +85,165,94,149,254,85,49,196,195,179,91,159,64,152,0,0,16,129,255,193,143,15,100,113,208,205,99,32,15,252,51,48, +204,193,122,7,60,120,24,0,0,0,1,255,224,200,15,254,36,152,255,224,0,15,252,48,48,200,195,35,3,56,120,56, +0,0,0,129,242,4,255,215,96,93,145,127,229,249,151,254,93,136,199,226,153,155,98,69,184,0,0,8,128,182,230,254, +26,96,126,249,227,225,255,15,252,51,48,200,192,104,7,60,112,24,0,0,8,48,79,7,12,29,254,16,192,95,224,0, +15,252,51,48,204,193,56,3,60,120,56,0,0,0,129,243,36,95,149,230,86,241,81,133,95,149,199,85,248,68,99,145, +155,126,65,152,0,0,0,65,241,132,95,149,200,87,33,92,133,127,149,254,87,33,204,130,162,27,190,71,248,0,0,1, +1,207,225,127,129,52,57,225,156,224,64,15,252,48,48,200,193,104,7,60,112,24,0,0,0,65,241,132,255,149,48,84, +145,87,197,126,21,50,85,153,204,194,135,27,118,67,8,0,0,0,1,247,228,208,151,66,93,249,124,197,241,23,180,94, +120,216,35,156,27,24,68,48,0,0,0,65,241,68,197,151,254,92,65,125,37,215,23,28,92,241,199,67,181,155,18,69, +192,0,0,0,1,255,228,112,21,254,87,1,95,229,127,149,234,87,185,202,67,169,27,186,70,200,0,0,3,1,255,225, +50,31,254,127,248,109,134,51,143,252,51,48,204,195,107,7,60,112,24,0,0,0,65,243,132,203,21,102,87,249,83,197, +64,21,254,84,64,197,66,181,155,146,64,192,0,0,0,33,239,228,130,150,254,95,249,98,133,170,30,188,122,176,202,67, +169,91,247,66,24,0,0,0,65,243,36,255,149,52,87,249,95,229,76,21,254,87,153,199,226,153,155,126,69,152,0,0, +3,1,255,225,178,6,216,47,209,255,228,0,143,252,50,48,200,195,35,3,56,120,56,0,0,0,65,247,196,95,21,26, +87,249,85,229,78,21,88,87,249,207,227,142,27,102,67,8,0,0,19,32,109,135,255,144,2,95,232,97,128,252,7,248, +48,48,204,195,35,3,184,120,24,0,0,0,1,255,228,241,151,254,95,25,127,229,216,23,126,126,233,194,163,150,155,146, +192,184,0,0,1,0,255,226,24,11,252,35,24,191,230,255,27,156,127,249,180,196,219,17,220,92,24,0,0,0,65,225, +132,191,150,68,89,145,127,229,255,150,0,123,249,140,99,177,154,254,67,248,0,0,0,65,245,36,245,23,180,92,225,126, +101,196,151,82,127,89,203,195,142,26,108,67,24,0,0,16,64,99,199,235,6,108,127,249,94,37,126,159,250,57,232,247, +39,230,22,54,27,136,0,0,24,65,251,231,253,159,244,62,96,219,228,208,135,252,48,48,204,193,35,3,184,120,24,0, +0,0,81,247,228,255,151,126,95,105,127,229,255,151,222,92,49,207,227,145,27,36,64,112,0,0,1,17,246,196,255,151, +120,93,249,119,229,255,151,46,95,248,198,195,155,27,174,64,168,0,0,3,1,255,228,204,143,252,31,224,51,7,255,134, +28,127,248,76,129,34,3,188,120,24,0,0,0,65,255,228,134,18,126,92,97,87,229,95,21,70,93,89,37,100,148,159, +60,1,136,0,0,0,1,255,230,214,26,252,127,241,167,198,159,155,252,111,241,162,68,153,17,216,92,24,0,0,40,161, +247,229,150,31,254,46,161,182,97,254,7,252,19,48,76,193,58,3,188,56,56,0,0,1,17,246,196,127,149,214,87,249, +91,165,127,149,0,85,241,196,67,159,27,124,65,240,0,0,0,129,247,196,83,21,254,87,217,94,165,127,149,254,87,113, +203,226,175,155,162,66,248,0,0,3,1,255,227,255,7,252,63,240,255,195,119,31,252,127,209,255,199,239,22,245,92,152, +0,0,16,129,243,230,221,11,28,127,153,243,196,70,31,254,101,248,100,39,244,134,60,17,152,0,0,3,0,12,3,255, +0,192,3,1,255,224,76,13,60,36,209,179,100,204,134,48,51,128,0,0,24,64,99,7,236,6,62,126,217,255,65,221, +31,156,126,115,177,130,199,27,118,93,8,0,0,24,0,103,231,248,134,102,127,177,254,3,223,159,242,111,250,190,194,219, +27,126,89,200,0,0,16,32,97,135,223,132,24,125,249,247,227,199,31,126,111,249,175,242,139,26,108,89,112,0,0,16, +64,99,39,223,132,20,125,249,247,227,204,31,254,111,137,171,226,137,154,62,88,248,0,0,3,0,12,3,255,0,192,3, +1,255,224,48,4,192,51,240,204,3,176,27,192,67,248,0,0,24,16,98,71,233,6,36,126,145,250,65,137,31,172,127, +241,224,71,129,23,254,199,248,0,0,8,64,97,7,228,2,16,126,113,253,96,132,155,144,110,65,161,7,132,23,254,199, +248,0,0,16,0,96,103,249,6,60,126,113,249,129,135,23,28,126,217,230,39,128,23,254,199,248,0,0,16,0,103,231, +230,6,8,126,33,255,225,134,31,136,126,33,224,135,130,23,254,207,248,0,0,16,0,103,231,225,134,6,126,249,251,225, +136,31,160,126,137,227,103,143,151,254,207,248,0,0,16,64,99,135,219,4,214,124,193,246,193,134,23,118,124,49,227,135, +152,55,254,71,248,0,0,16,0,99,231,233,134,38,126,249,250,97,137,159,190,124,153,230,103,159,151,0,71,248,0,0, +16,0,103,231,204,132,34,127,185,252,193,159,151,102,125,153,231,231,143,23,254,207,248,0,0,16,48,96,167,223,132,126, +125,41,252,161,147,151,124,127,177,237,231,141,151,254,71,248,0,0,16,128,99,199,223,6,204,27,249,251,225,129,159,126, +124,25,231,231,128,23,254,71,248,0,0,16,64,73,7,239,132,118,125,169,240,129,22,22,216,126,81,194,103,24,151,254, +71,248,0,0,16,8,207,39,146,132,234,123,233,250,161,58,150,106,121,9,204,39,33,151,130,207,248,0,0,16,64,69, +39,221,4,28,127,249,253,33,30,151,234,127,233,196,39,17,151,0,199,248,0,0,16,0,223,7,239,132,242,127,233,239, +225,61,151,182,123,249,223,167,14,23,254,199,248,0,0,18,48,79,231,255,132,238,126,237,239,225,63,151,210,123,73,195, +199,57,151,130,143,248,0,0,0,0,255,195,1,12,4,63,240,255,192,48,4,192,19,240,236,3,176,25,192,67,248,0, +0,0,1,246,132,219,19,108,125,176,70,197,17,23,68,81,17,76,69,241,158,130,2,8,0,0,0,129,246,4,88,17, +126,127,8,104,37,24,151,50,88,73,64,37,193,158,6,0,112,0,0,0,1,255,224,192,3,252,24,49,195,131,255,12, +12,63,240,76,1,63,15,192,67,248,0,0,0,65,241,4,206,19,254,124,64,65,5,63,151,126,80,225,67,135,219,28, +198,6,8,0,0,0,1,255,228,219,19,100,125,144,70,69,63,215,108,81,145,68,69,209,30,196,2,16,0,0,0,33, +241,132,70,17,88,125,96,101,229,22,23,88,81,97,69,133,214,31,254,7,248,0,1,239,196,155,18,76,121,48,70,229, +24,151,102,83,209,77,197,231,31,190,5,136,0,0,0,17,247,196,212,19,16,124,64,79,229,31,151,24,80,225,67,133, +219,30,198,2,8,0,0,0,65,227,4,158,18,76,127,24,95,229,19,23,68,81,49,69,133,208,158,102,1,248,0,193, +243,4,217,19,68,127,24,79,229,0,23,124,83,249,76,103,241,156,254,3,248,0,0,0,129,242,196,201,19,254,125,128, +66,5,31,151,102,81,209,69,197,246,31,188,6,152,0,0,0,65,245,4,246,19,254,126,64,73,5,63,151,254,80,225, +67,135,219,30,198,2,8,0,0,0,65,241,132,127,145,254,127,8,70,1,27,151,120,89,129,70,7,216,222,98,0,248, +2,1,232,228,163,147,250,123,232,203,165,46,150,186,82,169,74,167,235,189,110,15,40,0,0,1,1,246,4,255,147,134, +127,216,77,101,53,151,246,83,249,76,197,240,30,194,1,248,0,1,255,244,76,17,48,124,128,102,5,159,151,230,91,137, +78,37,216,158,126,1,248,0,0,0,145,230,100,145,146,254,127,24,92,101,21,151,86,81,121,68,101,209,158,68,1,48, +0,0,0,1,239,228,175,146,190,122,248,203,229,127,215,190,82,249,75,103,237,191,54,5,216,0,0,0,65,241,4,255, +147,254,126,72,77,197,63,151,228,82,145,75,133,230,29,188,5,152,0,0,0,1,247,228,80,17,64,125,248,100,101,17, +151,70,89,249,68,5,240,30,126,1,248,0,17,239,196,176,18,208,122,64,79,229,63,151,16,81,81,77,101,228,159,146, +0,192,0,0,0,1,255,228,113,145,254,127,248,108,101,63,151,208,83,121,76,197,243,30,246,3,136,0,0,0,65,229, +4,159,18,254,126,64,193,5,63,214,108,81,161,70,135,210,60,203,6,56,0,0,0,65,241,4,255,147,36,125,144,100, +33,57,151,44,88,225,65,133,206,31,110,3,24,0,0,0,65,227,4,255,146,108,127,56,95,165,0,23,254,81,1,71, +229,193,30,4,0,240,0,0,0,129,231,196,159,18,216,127,252,88,5,47,150,178,82,201,75,231,236,61,179,4,120,0, +0,1,33,247,193,19,4,126,127,56,8,67,255,12,12,63,240,76,1,63,15,192,103,248,0,0,0,65,241,4,223,147, +24,124,64,79,229,4,23,16,83,249,65,135,196,30,254,3,248,0,129,243,196,95,17,108,127,224,97,133,15,23,230,91, +249,68,101,209,158,126,1,248,0,0,0,161,230,132,250,147,234,123,176,70,133,26,22,110,87,169,68,135,210,28,203,6, +56,0,0,0,129,243,196,205,19,126,125,192,67,101,63,151,242,80,89,65,199,206,28,255,2,24,0,0,0,129,230,4, +191,146,38,120,240,199,165,51,150,4,83,249,70,135,146,28,203,6,56,0,0,2,33,233,132,191,146,152,122,96,207,167, +115,158,16,115,249,207,231,132,28,16,0,64,0,0,0,1,251,228,170,18,136,120,32,95,245,98,22,136,82,33,72,135, +162,29,192,4,248,0,0,0,161,231,196,147,18,76,123,24,73,101,14,23,254,80,225,71,199,245,157,146,0,64,0,0, +0,65,241,132,255,211,100,124,240,67,133,63,151,198,81,145,70,69,209,30,196,2,16,0,0,0,1,239,228,129,146,254, +123,240,76,37,63,151,16,80,193,78,165,249,159,231,0,240,16,17,247,129,144,15,126,121,48,204,195,35,15,252,63,240, +108,1,63,15,192,103,248,0,0,0,65,247,132,255,147,198,127,248,76,101,49,151,254,83,105,76,199,243,28,246,3,8, +0,0,0,1,255,228,195,19,56,127,248,79,229,53,151,254,82,73,79,229,255,158,146,2,120,0,0,0,193,239,228,191, +146,254,123,248,79,229,63,150,108,81,249,78,71,237,29,20,0,112,0,0,0,65,241,164,255,147,92,125,80,73,101,12, +23,126,83,25,79,231,241,156,198,3,248,0,0,0,65,241,228,199,147,126,127,248,79,229,63,151,254,81,249,65,133,255, +222,16,0,64,0,0,0,1,239,228,164,146,254,122,72,207,229,14,23,254,83,249,71,135,181,29,146,4,64,0,0,0, +1,239,228,160,146,254,123,248,201,133,63,214,216,82,97,79,231,248,157,254,5,248,0,0,2,1,232,4,255,147,218,125, +40,197,165,126,150,90,83,41,79,167,175,189,158,4,40,0,0,0,1,255,228,241,147,254,127,24,79,229,16,23,254,86, +169,86,167,212,157,182,0,176,0,0,0,65,225,132,191,146,68,121,144,79,229,63,151,0,81,249,68,103,209,156,126,1, +248,0,0,0,1,239,228,172,146,182,123,80,193,5,6,22,254,80,225,71,199,181,156,146,64,64,0,0,0,65,225,4, +191,146,130,121,240,71,197,0,23,255,80,65,69,71,244,189,147,0,192,0,0,0,17,239,196,166,18,254,122,96,75,229, +47,151,170,82,169,75,165,230,31,54,5,136,0,0,0,65,241,132,255,147,128,126,96,73,229,38,23,152,83,249,74,37, +232,159,190,6,248,0,0,0,129,250,228,186,147,250,123,40,204,197,126,151,250,83,41,78,167,239,191,56,12,32,0,0, +0,65,239,228,191,146,180,123,248,202,69,47,22,132,83,249,91,71,231,29,60,5,152,0,0,0,17,239,196,140,19,254, +123,240,79,101,63,151,150,83,249,67,5,255,156,48,7,248,0,65,233,36,164,146,254,120,0,95,245,12,23,254,83,249, +74,165,234,156,170,2,184,0,0,0,33,255,228,182,146,191,122,40,223,227,18,31,126,119,33,219,231,162,29,248,12,248, +0,0,0,49,239,196,132,18,254,122,72,79,229,4,23,254,82,233,73,167,255,156,130,2,24,0,0,0,81,253,68,255, +147,212,127,112,76,5,31,151,16,83,249,67,135,223,30,214,2,72,0,0,0,65,239,196,191,146,130,123,248,72,5,63, +150,222,83,105,79,231,246,159,90,5,88,0,0,0,17,231,196,142,19,254,125,248,77,229,44,22,16,83,249,71,135,223, +29,214,4,72,0,0,0,65,239,228,191,146,108,127,248,73,37,36,151,254,83,89,77,101,245,158,20,0,64,0,0,3, +1,255,228,204,143,252,31,224,51,7,255,135,252,120,120,63,129,191,14,192,103,248,0,0,0,17,239,228,128,146,150,121, +80,198,69,51,150,130,83,25,78,231,224,156,254,3,248,0,0,1,17,230,196,255,146,48,123,248,195,7,127,158,254,113, +241,207,199,166,63,254,3,248,0,25,239,196,165,146,212,120,128,79,133,61,22,254,83,201,79,229,158,28,108,7,24,0, +0,0,1,255,228,241,147,254,127,248,64,5,63,151,186,82,169,70,103,255,156,162,1,152,0,0,0,1,255,229,177,22, +196,123,240,200,101,127,150,254,87,249,85,167,179,31,238,4,200,0,0,1,33,255,228,155,18,108,127,248,194,135,63,158, +170,114,169,207,231,181,156,130,2,56,0,0,0,176,255,226,237,9,148,127,97,221,164,203,143,252,48,48,255,193,63,14, +192,103,248,0,0,0,65,255,228,219,18,108,127,248,73,37,63,151,146,82,233,74,167,238,156,162,2,24,0,0,0,65, +249,36,237,146,254,123,184,222,229,122,151,238,84,169,95,231,206,159,50,5,216,0,0,8,64,243,231,239,150,244,126,97, +171,228,56,143,252,63,240,108,1,63,15,192,103,248,0,0,0,1,238,196,251,147,206,123,248,88,37,63,22,196,83,241, +71,199,211,28,104,7,248,1,17,230,196,191,146,150,123,104,75,165,63,150,0,83,241,76,71,255,30,252,3,240,0,0, +0,49,239,196,149,146,124,127,248,199,197,53,151,146,83,249,77,103,255,188,246,3,248,0,0,0,1,255,228,192,19,242, +124,8,223,247,116,159,250,117,185,213,103,216,159,242,10,24,0,0,1,17,230,132,255,146,56,123,248,78,229,63,150,198, +83,249,79,229,243,60,104,0,96,0,0,0,33,236,229,250,150,14,127,248,210,199,107,30,236,115,177,222,199,223,30,85, +7,216,0,0,0,1,255,229,196,23,84,125,248,223,231,127,159,244,117,209,215,71,217,191,74,9,40,0,0,0,161,238, +164,191,19,254,121,16,79,229,63,150,254,80,193,95,231,142,30,236,6,24,0,0,0,65,239,228,170,146,238,122,72,207, +229,53,150,254,83,249,79,231,175,158,254,0,64,0,0,1,225,231,196,147,18,120,127,248,219,165,127,150,48,87,249,71, +135,159,29,214,0,72,0,0,0,1,239,228,170,146,254,123,0,79,229,72,150,250,82,169,79,167,206,157,254,0,56,0, +0,1,49,255,228,155,18,34,123,248,66,197,127,150,48,83,241,94,103,159,188,70,1,248,0,0,1,33,255,229,155,22, +190,123,248,211,39,94,159,250,119,233,215,167,222,189,122,4,24,0,0,2,81,234,196,173,18,222,127,248,219,39,127,158, +254,115,241,203,71,191,29,182,7,236,0,0,0,65,239,228,255,147,254,127,248,223,231,127,159,188,119,153,222,103,223,191, +24,15,248,0,0,1,17,255,229,245,23,254,123,176,213,119,4,158,254,114,89,203,103,172,28,108,7,24,0,0,0,129, +203,69,255,151,190,126,208,155,102,125,159,56,103,241,140,199,158,28,120,15,56,0,0,3,0,127,1,254,6,24,31,224, +65,161,255,4,28,127,224,7,128,114,7,24,113,224,0,0,24,0,119,231,193,153,6,125,249,246,7,216,31,126,125,248, +112,99,65,153,6,12,112,0,0,16,0,231,231,208,27,98,125,89,245,199,211,31,76,125,120,119,102,88,17,126,29,248, +0,0,16,160,231,199,219,27,108,125,25,253,103,206,31,254,124,224,243,198,213,147,210,28,64,0,0,16,64,237,39,213, +155,84,127,249,188,103,254,159,234,127,168,127,162,252,155,194,27,24,0,0,3,1,255,224,48,15,252,63,240,204,195,255, +31,254,3,0,255,195,3,15,252,63,240,0,0,16,128,199,231,223,140,254,125,153,87,231,217,149,126,124,248,206,111,239, +4,60,19,152,0,0,4,0,16,7,255,159,254,25,0,68,3,255,15,252,1,1,255,231,255,128,64,1,0,0,0,16, +0,195,7,236,12,48,40,193,163,7,236,3,48,12,193,251,38,140,130,54,8,120,0,0,16,128,194,7,200,8,124,40, +241,162,199,203,22,44,8,177,254,199,147,194,207,10,24,0,0,16,0,199,231,230,8,24,40,97,161,135,255,198,24,8, +97,249,135,134,2,24,8,96,0,0,16,0,207,231,199,136,18,57,73,101,39,212,150,210,24,201,243,103,153,134,70,27, +112,0,0,16,64,193,135,255,136,48,59,249,111,231,200,22,126,24,49,240,199,142,6,24,24,48,0,0,16,0,207,247, +240,8,222,59,249,111,103,253,150,246,27,249,255,7,172,134,146,26,120,0,0,16,64,195,135,206,8,108,51,25,92,39, +211,22,124,17,193,246,7,144,132,102,16,240,0,0,16,128,66,7,239,140,126,41,9,165,167,230,6,24,8,97,251,135, +139,2,102,11,8,0,0,4,1,255,225,144,15,252,63,241,255,224,56,1,68,127,249,178,67,143,15,60,99,152,0,0, +16,64,193,135,198,8,255,40,97,161,135,198,6,126,9,25,252,39,144,130,126,9,152,0,0,16,0,207,255,193,136,6, +121,217,101,103,213,134,86,25,217,244,103,129,134,6,24,112,0,0,16,64,193,231,199,136,24,57,249,100,39,208,150,126, +25,25,252,7,176,6,192,26,0,0,0,16,64,193,7,196,8,254,59,121,237,39,244,150,254,27,105,253,39,180,134,254, +27,24,0,0,16,0,199,231,209,136,70,57,25,100,103,223,150,124,24,1,246,71,145,134,198,26,8,0,0,16,64,197, +135,222,8,126,59,97,97,135,255,150,126,24,97,243,135,139,6,102,27,8,0,0,16,0,207,231,198,8,90,57,105,231, +231,199,22,255,24,97,241,135,134,6,24,25,192,0,0,16,64,195,135,203,8,102,58,77,227,7,218,22,24,24,201,244, +103,131,6,112,27,128,0,0,16,16,207,199,240,8,208,51,65,79,231,255,150,16,17,81,245,103,164,132,146,16,192,0, +0,16,0,207,231,204,136,34,56,137,102,231,194,22,126,25,249,244,39,144,134,126,25,248,0,0,16,0,207,231,195,8, +24,56,225,110,231,240,150,126,25,241,241,7,132,6,24,27,248,0,0,16,32,192,175,198,136,254,56,33,102,135,254,22, +104,25,161,246,135,155,198,246,24,24,0,0,8,193,255,64,204,159,254,24,192,225,103,245,11,20,127,112,49,131,246,159, +62,13,152,0,0,16,0,207,231,204,8,36,49,153,79,231,196,150,16,25,249,241,135,132,4,24,19,248,0,0,16,16, +199,199,196,8,48,59,249,102,71,241,150,230,25,177,246,199,155,6,204,26,48,0,0,16,64,195,135,202,8,70,59,25, +103,199,196,22,16,27,249,241,7,132,6,16,27,248,0,0,16,128,194,71,223,136,228,58,241,99,135,223,150,198,25,249, +244,103,145,134,126,25,24,0,0,16,64,193,7,255,136,36,57,145,100,39,249,150,44,24,225,241,135,142,6,110,27,24, +0,0,32,0,159,231,172,8,188,115,241,75,199,175,22,252,26,241,235,197,127,68,63,16,216,0,0,16,80,193,47,255, +136,24,121,249,109,231,247,150,254,27,73,255,231,182,134,210,27,88,0,0,32,0,159,231,138,8,40,115,249,78,167,234, +148,170,19,249,253,101,52,132,130,18,56,0,0,16,97,247,225,134,31,254,60,241,22,99,255,15,252,31,240,127,199,255, +159,254,1,0,0,0,4,129,243,224,72,15,60,124,248,18,7,255,159,254,59,128,255,192,56,31,254,1,0,0,0,0, +0,95,229,224,158,178,123,249,246,7,150,30,254,120,97,241,133,255,148,24,64,96,0,0,16,0,207,231,241,136,254,59, +25,111,231,210,6,74,25,249,244,199,146,6,251,27,184,0,0,16,0,207,231,232,136,170,114,233,79,167,228,150,254,26, +137,251,39,174,132,130,18,24,0,0,32,0,159,239,136,136,238,115,185,91,167,128,29,254,16,233,254,231,51,4,238,20, +72,0,0,17,8,205,103,237,8,180,51,89,69,167,223,134,254,26,73,255,231,180,132,254,19,248,0,0,16,64,207,231, +255,136,126,48,193,79,231,219,22,254,18,73,247,231,142,4,110,19,8,0,0,32,0,207,231,128,8,254,115,25,79,231, +128,22,254,18,73,255,231,52,132,254,19,248,0,0,16,0,199,231,209,136,124,59,249,111,231,223,22,124,25,241,247,199, +183,134,254,24,16,0,0,32,64,131,135,155,9,206,113,241,78,39,190,148,250,18,233,239,165,46,132,178,18,152,0,0, +2,16,158,70,98,157,222,119,177,132,231,255,140,78,97,56,255,195,3,12,12,63,240,0,0,16,64,199,231,198,8,254, +48,1,71,231,209,150,126,25,233,254,231,187,4,118,17,200,0,0,16,64,199,231,255,136,154,57,249,231,199,223,22,254, +24,97,247,231,145,134,102,25,248,0,0,16,0,207,231,224,136,254,50,209,79,231,255,150,180,27,253,250,167,235,5,62, +29,200,0,0,32,64,143,231,255,136,168,115,249,74,167,191,150,232,19,169,255,229,122,5,249,21,248,0,0,32,32,140, +135,251,136,174,119,233,83,167,255,149,174,23,177,254,197,123,5,174,23,200,0,0,32,64,133,71,151,8,254,113,241,77, +103,164,22,254,18,153,255,229,23,132,198,22,24,0,0,2,0,12,3,255,130,24,8,65,255,231,255,128,192,3,1,255, +224,48,0,192,3,0,0,0,3,1,255,224,48,15,252,48,48,127,195,255,15,252,127,249,255,224,48,15,252,3,0,0, +0,8,65,241,129,63,132,100,124,145,242,193,63,206,24,124,97,31,228,70,31,24,68,96,0,0,0,65,241,134,127,153, +102,124,145,130,198,63,223,24,100,97,159,230,70,31,24,32,96,0,0,16,64,65,135,255,155,16,41,248,237,167,244,132, +254,124,224,195,195,21,137,147,96,64,0,0,33,32,196,199,159,146,210,91,105,253,231,223,140,76,121,48,197,226,51,25, +140,68,48,0,0,32,32,200,199,183,146,18,91,73,253,231,183,140,204,123,48,205,226,59,24,204,66,48,0,0,32,32, +132,199,167,148,162,87,169,220,231,167,137,196,127,56,193,226,57,25,132,64,16,0,0,0,0,255,226,0,11,252,47,240, +128,3,255,139,100,44,177,179,134,198,19,206,76,8,0,0,0,0,255,226,255,8,0,63,248,182,70,206,19,222,0,97, +255,225,134,3,24,1,192,0,0,0,0,128,3,0,4,0,0,1,192,1,0,4,0,16,0,64,3,0,27,254,67,248, +0,129,130,3,25,129,254,1,139,198,99,17,140,198,51,24,217,195,71,31,2,71,248,0,0,0,1,159,227,3,0,24, +0,195,195,3,12,12,48,48,192,195,3,56,31,2,71,248,0,0,0,129,130,3,12,3,254,0,129,199,7,30,12,72, +51,48,216,99,0,27,206,71,248,0,0,0,17,159,195,108,0,48,0,192,63,231,12,12,48,48,192,195,3,12,31,166, +71,248,0,1,159,227,12,0,48,0,193,255,227,12,12,48,48,192,195,3,56,31,0,71,248,0,0,3,1,140,3,127, +129,0,15,225,207,135,24,12,192,54,8,223,227,31,27,206,71,248,0,1,159,195,19,0,76,1,49,159,199,127,12,68, +49,16,196,115,17,159,0,71,248,0,0,0,33,128,131,3,1,254,0,33,216,135,50,12,72,48,32,195,131,14,27,254, +67,248,0,1,191,227,48,0,64,1,249,204,99,49,140,134,54,16,208,195,7,31,134,71,248,0,0,1,1,159,227,69, +129,18,4,73,209,35,68,141,50,63,216,241,67,4,31,0,71,248,0,0,0,1,159,227,0,0,0,15,251,206,3,18, +12,204,54,48,223,227,0,31,0,71,248,0,0,0,49,143,195,32,0,128,3,249,207,231,34,13,136,54,32,208,131,66, +31,206,71,248,0,0,0,1,159,227,3,1,140,6,49,223,227,7,12,108,51,48,248,195,14,31,0,71,248,0,0,0, +17,159,227,96,1,128,7,249,152,71,123,13,56,52,224,246,195,17,31,206,71,248,0,0,2,1,136,3,127,129,48,12, +193,131,7,255,140,48,48,192,195,3,12,31,190,71,248,0,0,0,1,159,227,14,0,48,1,131,207,131,107,15,38,48, +128,194,3,8,31,2,71,248,0,0,1,129,130,3,255,131,254,4,33,153,135,28,12,112,51,224,248,227,64,31,206,71, +248,0,0,1,33,132,131,51,1,254,1,33,196,135,127,141,254,51,32,216,131,66,31,134,71,248,0,0,0,1,159,195, +0,0,0,15,249,205,131,54,12,216,50,104,217,227,195,159,0,71,248,0,0,0,129,131,3,255,128,32,7,249,131,7, +12,143,254,48,136,194,99,9,31,32,71,248,0,0,1,1,142,3,127,128,144,6,65,223,227,12,12,48,63,248,193,3, +4,31,18,71,248,0,0,0,1,143,227,33,128,134,3,249,207,199,100,13,152,54,48,240,99,0,27,254,71,248,0,1, +159,227,25,128,70,3,49,184,199,63,12,132,50,16,207,195,63,31,0,71,248,0,0,2,1,156,3,127,131,32,2,241, +223,195,237,12,180,50,136,204,99,63,31,130,71,248,0,0,0,1,159,227,65,129,118,5,249,213,227,87,141,126,52,24, +208,99,67,31,130,71,248,0,0,4,1,25,230,255,137,114,5,201,151,39,84,141,82,61,72,237,227,176,31,134,71,248, +0,0,1,129,132,131,51,1,188,7,249,192,3,127,13,132,54,16,223,195,63,31,134,71,248,0,0,2,1,136,3,127, +129,54,12,209,139,199,45,13,182,52,216,211,35,24,31,254,71,248,0,129,130,3,63,1,254,4,153,219,99,127,141,38, +52,152,223,227,0,31,0,71,248,0,0,0,129,130,3,127,129,134,6,27,223,227,127,141,134,54,24,223,227,0,31,2, +71,248,0,0,0,129,155,3,127,129,252,4,193,223,227,255,140,112,49,224,204,67,96,31,134,71,248,0,0,1,1,140, +3,63,129,240,4,129,243,231,8,12,62,48,248,194,3,8,31,32,71,248,0,0,0,129,131,194,13,15,254,1,193,199, +131,63,12,182,54,200,211,3,12,31,198,71,248,0,1,31,198,6,8,120,7,57,144,39,127,12,48,48,192,223,227,0, +31,254,71,248,0,129,146,99,105,0,172,7,249,255,227,30,12,252,54,152,242,35,8,31,2,71,248,0,0,2,49,140, +131,127,129,254,3,35,204,131,255,140,200,50,32,216,131,66,31,2,71,248,0,0,0,129,131,3,127,128,120,5,33,212, +227,82,143,74,51,32,201,131,110,31,0,71,248,0,0,0,129,143,3,127,1,132,7,241,216,3,96,13,254,54,24,216, +99,63,31,0,71,248,0,0,0,1,159,195,97,1,252,6,17,223,195,105,141,188,54,96,222,67,96,31,130,71,248,0, +0,2,17,140,195,55,1,254,0,193,195,3,255,140,48,49,224,204,195,97,31,2,71,248,0,0,0,49,159,195,12,1, +254,15,249,195,3,63,13,134,54,24,223,227,63,31,134,71,248,0,0,1,65,133,3,213,129,220,1,97,205,131,119,15, +210,50,64,217,163,67,159,0,71,248,0,0,1,129,135,195,115,3,120,3,241,184,103,127,13,176,54,192,223,227,12,31, +254,67,248,0,49,159,131,96,1,254,7,251,208,3,127,141,70,61,24,231,227,31,31,2,71,248,0,0,2,17,140,195, +127,131,254,4,217,211,99,73,141,254,49,128,198,3,48,31,128,71,248,0,0,0,193,139,3,127,129,48,0,193,191,231, +22,12,216,51,104,217,227,195,159,0,71,248,0,0,0,33,188,131,34,1,190,6,249,222,163,234,141,234,54,32,216,131, +206,31,0,71,248,0,0,0,177,159,227,127,128,52,7,249,219,103,127,141,182,55,248,211,99,75,31,222,71,248,0,0, +0,129,154,67,41,0,252,7,241,152,71,127,13,132,55,240,216,67,99,31,8,71,248,0,0,0,17,159,195,12,3,254, +3,225,187,103,126,12,126,49,56,200,99,195,31,0,71,248,0,0,0,1,191,227,24,1,230,12,241,207,131,111,12,126, +55,72,241,3,28,31,198,71,248,0,0,0,161,131,99,127,129,254,4,217,219,71,46,12,252,54,216,243,35,24,31,198, +71,248,0,0,2,33,140,130,127,140,54,7,249,147,7,127,141,118,51,136,218,227,8,31,254,71,248,0,129,135,3,55, +3,142,3,225,195,3,255,140,32,54,144,242,99,24,31,0,71,248,0,0,0,33,184,131,98,3,170,10,169,143,199,102, +15,156,50,208,218,99,200,159,134,71,248,0,0,0,1,191,227,0,5,252,6,17,152,199,127,12,136,51,32,223,227,255, +159,222,71,248,0,129,131,3,255,128,0,3,241,207,195,0,12,252,50,16,200,67,63,31,0,71,248,0,0,0,17,159, +227,30,4,120,7,249,155,103,127,141,182,55,248,211,35,79,159,0,71,248,0,0,0,1,159,227,98,3,136,10,33,219, +231,98,14,136,50,32,219,227,192,31,0,71,248,0,0,2,1,153,227,108,3,240,6,121,159,103,253,13,180,54,144,218, +67,233,31,6,71,248,0,0,0,1,159,195,97,5,252,0,1,159,231,12,13,252,48,192,223,227,255,159,134,71,248,0, +0,0,129,159,227,127,128,48,7,249,210,99,127,140,120,51,240,218,99,72,31,0,71,248,0,0,2,129,155,3,127,131, +48,7,249,191,231,0,13,252,54,16,216,67,63,31,0,71,248,0,0,1,1,140,194,127,129,202,2,49,180,103,63,13, +200,53,224,199,131,115,31,142,71,248,1,1,143,194,118,1,112,3,241,186,103,127,12,48,55,240,223,227,12,31,50,71, +248,0,0,0,1,191,227,0,3,222,13,73,245,163,246,143,214,61,72,245,35,117,159,2,71,248,0,0,0,129,191,227, +192,131,254,6,49,223,195,127,13,252,55,248,216,99,63,159,2,71,248,0,0,0,129,159,195,9,3,254,0,145,223,195, +73,13,188,51,240,242,99,24,31,66,79,248,0,0,0,0,159,195,3,0,252,0,49,255,227,73,12,188,51,240,218,99, +24,31,66,71,248,0,0,0,129,159,195,12,3,254,3,35,216,227,72,13,252,48,192,223,227,255,159,2,71,248,0,0, +0,113,159,3,127,129,254,3,241,178,103,127,141,254,55,96,199,131,123,159,6,71,248,0,0,1,1,143,131,102,3,252, +7,249,210,99,127,140,120,49,208,221,35,199,159,130,71,248,0,0,7,249,159,227,86,129,254,1,129,199,195,63,13,204, +49,224,199,3,112,31,2,71,248,0,0,0,1,191,227,63,1,140,7,241,192,7,127,141,38,55,248,210,99,127,159,134, +71,248,0,0,0,129,135,3,50,3,254,8,1,222,163,90,141,234,55,168,214,35,89,159,0,71,248,0,0,0,49,159, +131,70,1,254,4,65,151,231,81,141,70,61,248,244,99,31,31,142,71,248,0,0,2,33,140,131,255,128,244,7,144,55, +135,62,13,60,51,88,249,3,28,31,0,71,248,0,0,0,129,146,99,127,129,252,7,249,131,7,127,141,254,53,72,213, +35,81,159,0,71,248,0,0,0,1,159,195,127,1,180,7,241,195,3,127,141,46,52,232,223,227,195,159,6,71,248,0, +0,0,129,159,195,127,129,6,7,243,223,227,255,143,174,63,248,234,163,43,159,6,71,248,0,0,0,1,159,227,127,129, +134,7,241,204,99,127,143,50,61,232,223,163,63,159,14,71,248,0,0,4,1,191,227,216,131,254,15,57,177,231,247,143, +22,63,176,241,227,204,159,0,71,248,0,0,0,129,159,195,97,1,252,7,241,192,3,127,140,48,55,248,195,3,255,159, +2,71,248,0,0,2,33,140,131,255,128,80,7,249,213,103,119,141,134,55,248,208,99,127,31,222,71,248,0,0,2,33, +140,131,255,128,32,7,241,216,67,127,13,132,55,240,216,67,127,31,0,71,248,0,0,0,129,159,227,109,129,252,15,249, +207,195,127,13,36,52,144,199,195,113,159,2,71,248,0,0,1,33,191,227,127,0,216,15,249,223,195,109,13,252,54,216, +255,227,67,31,14,71,248,0,0,3,1,177,227,214,131,210,12,217,194,67,127,141,54,55,248,211,99,127,31,2,71,248, +0,0,3,241,152,67,127,1,132,7,241,255,227,84,141,74,51,56,247,227,49,159,198,71,248,0,0,0,129,159,195,127, +0,112,15,249,223,199,99,13,252,55,240,216,67,127,31,134,71,248,0,0,0,49,159,195,73,4,172,3,161,223,195,76, +13,254,52,144,219,99,127,31,0,71,248,0,0,2,33,189,130,103,139,254,6,219,255,67,99,9,204,37,48,181,227,188, +159,2,71,248,0,0,1,65,191,226,54,11,254,15,249,189,231,0,13,252,55,240,216,195,127,31,134,71,248,0,0,0, +193,159,227,127,129,108,7,249,214,195,91,15,60,56,144,234,163,42,159,2,71,248,0,0,2,1,191,227,180,3,242,15, +121,175,194,251,10,222,43,248,236,195,38,31,2,71,248,0,0,0,145,138,195,255,128,248,6,187,210,67,127,143,84,63, +80,203,227,97,31,6,71,248,0,0,2,33,191,226,28,1,254,5,121,216,231,127,141,254,63,248,220,195,54,31,24,71, +248,0,0,0,129,131,195,127,129,126,5,233,145,199,255,143,246,61,224,227,227,188,159,54,71,248,0,33,60,194,223,139, +82,15,80,51,230,243,11,126,61,248,212,195,115,31,2,71,248,0,0,2,33,188,130,223,139,254,15,217,139,103,251,13, +204,55,176,245,227,180,159,158,71,248,4,9,157,226,242,135,246,27,145,189,198,191,139,228,47,248,236,195,49,23,142,71, +248,0,129,191,227,210,129,140,3,97,255,227,121,12,120,54,240,205,99,220,31,98,71,248,0,0,64,1,149,227,127,129, +252,15,249,223,195,97,13,252,51,80,252,195,61,158,194,79,248,0,0,0,129,191,226,127,9,118,5,216,31,231,63,12, +252,51,240,207,195,255,159,2,71,248,2,33,177,194,47,139,254,6,217,235,226,119,10,212,39,80,167,99,121,159,2,71, +248,0,0,4,145,150,195,109,3,254,13,217,255,227,73,13,108,54,208,210,67,255,159,2,71,248,0,0,0,0,255,131, +2,15,248,0,0,255,194,49,8,196,63,240,128,2,0,140,6,63,240,0,1,243,231,201,129,36,68,145,178,195,137,6, +38,24,136,242,38,75,144,32,0,128,0,0,17,48,153,131,51,7,252,16,32,127,128,0,15,252,35,16,255,194,0,12, +6,31,248,0,1,251,225,137,134,38,24,144,98,207,249,6,38,24,136,98,33,139,134,32,24,128,0,0,0,0,99,224, +137,159,166,112,144,130,194,9,8,34,32,136,130,35,235,143,160,0,128,0,0,0,1,247,231,249,134,102,25,144,102,193, +155,6,102,31,137,246,36,27,128,96,1,128,0,0,8,0,51,231,237,152,54,96,209,131,198,13,24,50,96,201,131,38, +15,144,48,64,192,0,0,24,0,35,231,253,159,180,48,208,251,195,109,12,182,34,200,155,38,111,153,176,76,192,0,0, +0,1,255,227,109,137,182,38,208,219,199,253,9,182,38,200,155,38,111,153,176,70,192,0,0,0,1,251,225,45,132,166, +126,144,218,195,41,31,162,126,136,138,34,111,153,160,76,128,0,0,8,0,35,231,233,134,38,24,145,250,193,137,6,38, +255,136,98,35,11,140,32,96,128,0,0,0,1,255,224,77,137,54,100,209,251,199,253,3,54,28,200,211,38,79,145,48, +28,192,0,0,8,0,251,231,236,152,182,102,209,187,198,13,15,242,3,201,251,38,47,128,176,14,192,0,0,8,0,33, +231,229,159,214,75,81,45,199,245,30,210,75,73,45,39,247,152,208,0,64,0,0,34,1,139,231,237,159,246,98,209,139, +199,237,31,178,98,201,139,39,239,159,176,34,192,0,0,16,0,67,227,77,137,182,127,209,239,192,13,31,182,98,201,139, +38,47,159,176,98,192,0,0,0,1,251,230,13,152,54,126,209,251,198,77,25,50,100,201,147,39,255,159,48,0,192,0, +0,0,1,255,224,205,130,54,28,208,251,195,173,18,242,8,200,35,32,255,159,176,0,192,0,0,0,1,253,224,132,134, +150,127,81,45,69,181,151,210,119,73,157,36,55,144,208,70,64,0,0,0,1,255,225,45,140,182,50,209,187,196,205,31, +182,126,201,139,38,47,159,176,102,192,0,0,16,0,89,225,100,141,150,119,208,89,65,101,133,146,22,72,217,39,127,133, +208,20,64,0,0,2,0,251,230,205,155,54,108,209,255,70,205,153,50,100,201,147,38,223,158,240,66,192,0,0,16,0, +251,227,237,153,54,76,209,251,192,61,0,242,63,200,15,32,63,159,240,3,192,0,0,20,0,89,225,102,133,178,86,217, +95,71,117,157,210,55,72,89,33,255,159,144,64,64,0,0,8,0,49,225,229,140,214,105,209,49,67,229,15,146,6,72, +17,33,199,130,16,4,64,0,0,8,0,163,226,204,159,246,72,209,51,71,253,135,50,30,200,175,38,159,146,48,8,192, +0,0,16,0,99,231,253,140,54,62,209,251,207,237,15,182,34,200,251,34,47,136,176,38,192,0,0,2,0,217,225,196, +143,214,113,80,65,71,253,140,18,44,73,169,37,183,159,208,49,192,0,0,0,1,255,227,13,137,54,126,209,255,192,141, +6,54,126,200,99,33,143,159,240,64,192,0,0,48,0,193,227,244,152,86,249,89,181,71,213,159,82,111,73,237,32,53, +128,208,14,64,0,0,8,0,35,231,253,141,54,38,209,143,196,125,15,54,28,200,115,35,111,152,176,64,192,0,0,16, +0,99,231,237,152,164,126,177,154,198,105,31,166,100,137,146,39,239,156,160,64,128,0,0,8,0,33,231,244,139,150,43, +80,169,67,229,159,210,24,72,113,35,103,152,208,64,64,0,0,8,0,113,227,101,152,246,127,80,249,192,5,31,242,24, +72,217,35,39,159,208,97,64,0,0,34,0,219,225,108,159,246,8,208,35,71,253,159,242,24,200,115,35,111,152,240,64, +192,0,0,0,1,253,228,148,134,22,127,80,193,66,197,159,210,12,72,61,39,231,131,16,12,64,0,0,34,0,251,227, +236,156,182,48,209,255,66,141,159,242,239,200,167,34,159,139,240,8,192,0,0,7,1,251,224,61,154,182,42,209,251,192, +109,3,50,31,201,251,32,143,130,48,56,192,0,0,8,0,163,231,252,155,54,72,209,255,199,253,128,50,126,201,139,38, +47,159,176,98,192,0,0,8,0,33,231,244,130,22,127,81,255,65,69,157,210,85,73,87,35,71,137,16,76,64,0,0, +0,1,251,225,45,159,246,18,209,251,199,237,12,50,126,203,139,34,47,143,176,48,192,0,0,0,1,251,230,45,159,182, +62,208,3,199,253,130,50,126,200,115,32,143,159,240,96,192,0,0,0,1,255,224,6,157,218,117,249,87,197,95,157,250, +119,233,87,165,95,149,120,117,96,0,0,0,0,249,226,37,143,150,0,81,253,68,149,18,82,73,73,37,33,199,141,144, +98,64,0,0,8,0,97,231,245,136,150,54,81,253,71,245,0,18,127,73,141,38,55,159,208,127,64,0,0,8,0,97, +231,244,154,86,127,81,37,71,245,135,18,118,73,255,32,103,129,144,6,64,0,0,8,1,255,231,253,143,182,98,209,251, +192,13,31,178,12,201,255,39,207,130,48,56,192,0,0,8,0,167,230,172,150,182,30,209,207,64,141,138,114,106,201,107, +33,239,140,240,97,192,0,0,18,0,205,227,54,159,254,51,112,205,195,255,157,250,119,107,253,163,55,140,216,51,96,0, +0,34,0,201,225,101,159,214,107,81,253,199,181,31,210,62,73,253,39,247,130,16,8,64,0,0,16,0,111,231,237,135, +182,127,209,251,195,141,31,178,98,200,251,34,47,143,176,50,192,0,0,0,1,253,229,228,148,214,95,81,125,68,133,159, +210,90,73,121,37,247,159,208,127,64,0,0,0,1,221,229,84,157,214,0,81,253,64,5,159,242,48,72,249,32,39,128, +144,30,64,0,0,0,1,253,225,68,159,214,85,81,85,71,245,130,18,62,73,253,32,135,159,208,96,64,0,0,0,1, +251,230,44,159,182,24,209,255,65,141,31,242,95,201,95,37,255,159,240,99,192,0,0,34,1,253,230,36,143,150,28,81, +253,71,245,143,146,127,72,97,39,247,135,208,126,64,0,0,0,1,253,226,197,139,214,127,81,253,67,245,143,210,127,72, +157,37,183,150,208,7,64,0,0,8,1,255,227,109,159,246,127,208,255,70,61,31,242,127,200,35,39,255,130,48,8,192, +0,0,34,0,217,231,244,143,214,28,81,255,66,165,159,210,127,200,253,38,55,152,208,127,64,0,0,2,1,249,226,164, +139,150,127,208,121,70,181,155,82,63,72,253,35,247,143,208,63,64,0,0,0,1,253,231,148,159,214,123,81,255,71,197, +159,210,25,73,189,33,247,154,80,72,64,0,0,0,1,253,231,254,159,250,127,248,33,199,247,155,90,127,233,219,167,111, +159,248,126,224,0,0,8,1,253,231,244,159,214,127,81,253,71,253,143,146,99,73,253,35,103,141,208,126,64,0,0,127, +248,63,0,72,31,254,100,153,178,103,143,156,6,127,249,128,103,255,159,254,0,0,0,1,255,225,143,159,140,126,49,104, +196,163,27,140,70,49,248,196,35,31,140,70,224,0,0,8,96,49,7,255,129,32,63,240,255,194,73,11,60,40,48,255, +195,3,15,252,48,48,0,0,0,65,251,2,143,159,126,127,9,60,36,232,155,178,70,105,248,36,97,159,134,70,112,0, +0,0,1,251,225,128,159,130,126,9,107,228,169,155,160,66,129,250,4,40,223,162,70,248,0,0,0,17,248,66,129,31, +126,127,249,56,70,233,27,180,70,81,248,68,97,31,132,70,112,0,0,0,33,248,130,154,31,110,125,249,63,166,250,155, +106,69,185,246,196,88,31,98,68,248,0,0,0,1,255,226,134,31,8,126,33,57,134,255,219,152,70,33,248,132,98,31, +136,70,32,0,0,0,1,255,224,22,0,88,79,249,181,32,215,131,142,60,8,255,226,192,155,254,79,248,0,0,0,1, +240,66,155,159,122,125,105,53,166,214,155,90,69,217,246,100,88,159,126,69,8,0,0,0,1,251,194,137,31,38,127,137, +60,102,255,155,150,70,209,251,68,105,31,228,71,112,0,0,0,1,255,226,128,31,0,126,1,63,246,196,27,48,68,209, +242,100,89,159,254,69,8,0,0,0,65,241,130,134,31,24,127,249,49,134,198,27,24,68,241,243,68,77,159,242,71,40, +0,0,0,65,249,130,159,159,254,127,9,58,6,233,155,188,70,193,250,4,104,159,162,70,248,0,0,0,193,251,2,143, +159,126,127,97,61,134,199,155,24,68,97,249,228,70,31,152,68,96,0,0,0,153,254,98,153,159,255,127,153,62,102,249, +155,254,71,153,254,100,121,159,254,71,152,0,0,0,97,249,130,134,31,126,127,249,57,134,230,27,254,71,249,254,36,120, +159,254,71,248,0,0,0,1,243,226,158,31,24,124,97,191,230,199,27,60,68,249,247,164,118,159,24,68,96,0,0,0, +65,243,3,143,159,102,125,177,243,134,198,27,126,71,249,242,36,72,159,62,68,248,0,0,0,65,251,194,143,159,100,127, +113,57,134,239,27,230,71,249,254,100,121,159,254,71,248,0,0,0,9,244,163,18,158,74,125,233,223,231,255,155,222,69, +41,244,164,82,159,202,70,40,0,0,0,1,255,227,176,159,250,127,9,253,166,254,155,234,71,169,255,164,112,159,194,71, +56,0,0,1,1,252,98,158,31,66,125,249,179,198,207,27,126,69,25,247,228,80,159,126,69,152,0,0,0,97,247,130, +159,159,126,127,97,145,134,127,219,44,68,177,242,196,91,31,79,71,56,0,0,8,129,183,226,241,135,172,124,224,62,7, +255,129,224,63,240,179,195,135,15,252,63,240,0,0,0,1,247,227,144,159,70,125,249,176,6,223,155,24,68,97,247,228, +70,31,24,71,248,0,0,0,65,241,130,143,31,102,127,249,179,198,198,27,254,68,97,247,228,86,159,218,68,192,0,0, +0,65,243,34,159,159,20,127,249,145,134,95,27,124,70,97,247,228,70,31,24,68,224,0,0,0,129,247,227,159,159,192, +127,249,247,38,219,155,254,69,89,245,228,95,159,70,68,112,0,0,0,33,250,130,159,159,126,127,33,63,230,255,155,128, +71,249,254,36,120,159,254,71,248,0,0,0,65,243,66,153,159,126,124,145,182,102,244,155,62,69,217,255,68,70,31,60, +71,152,0,0,0,25,255,227,132,159,82,125,249,240,70,195,27,254,68,17,242,68,77,31,4,68,112,0,0,0,1,247, +226,143,31,126,125,241,247,230,255,155,192,71,1,252,4,112,31,128,70,0,0,0,0,1,255,227,0,30,238,127,249,251, +167,254,155,254,79,249,251,164,110,159,170,74,184,0,0,0,65,245,131,159,159,70,125,249,212,102,209,155,126,69,105,244, +196,83,31,246,71,136,0,0,0,65,241,130,159,159,36,124,145,210,198,127,155,0,69,249,244,100,80,159,126,69,248,0, +0,0,65,247,226,159,159,126,125,25,151,230,64,27,126,68,49,247,228,127,159,24,68,192,0,0,0,65,241,131,31,158, +36,125,145,215,199,246,155,24,68,97,255,228,68,31,16,68,64,0,0,0,145,242,66,191,159,36,125,177,159,230,64,27, +126,69,25,247,228,89,159,126,69,248,0,0,0,1,247,226,145,159,126,125,25,151,230,82,27,74,69,249,244,196,82,31, +123,71,184,0,0,0,1,247,226,153,159,126,125,249,151,198,95,155,88,69,97,245,228,94,31,248,70,120,0,0,1,9, +244,227,18,159,250,125,57,244,167,250,155,238,78,249,251,164,254,159,146,72,88,0,0,0,1,247,226,158,159,124,125,225, +61,230,223,155,102,69,249,246,100,95,159,98,69,152,0,0,0,1,255,226,153,159,126,127,153,63,230,254,27,254,71,97, +255,228,102,31,152,71,252,0,0,0,33,250,163,42,158,222,120,49,255,231,151,26,92,73,233,230,164,178,31,232,76,124, +0,0,0,145,255,227,159,159,60,124,225,214,230,255,155,60,68,97,247,228,68,31,126,69,248,0,0,0,65,247,227,191, +159,96,125,249,158,102,207,155,0,69,249,245,164,86,159,126,71,248,0,0,0,65,245,131,191,158,216,127,249,223,231,247, +155,254,70,97,255,228,104,159,166,70,248,0,0,0,1,254,227,58,158,38,127,249,241,39,206,27,238,78,193,244,132,93, +159,28,75,128,0,0,0,161,246,163,159,159,254,124,145,215,230,198,27,126,68,97,255,228,70,31,44,71,8,0,0,0, +161,246,131,159,159,126,127,249,159,230,223,155,126,69,249,247,228,82,159,122,70,108,0,0,0,65,255,227,13,30,126,125, +9,245,71,213,27,214,69,249,247,228,90,159,254,71,248,0,0,0,161,247,227,190,159,254,127,233,247,230,255,155,0,69, +249,244,100,95,31,44,71,252,0,0,0,65,241,227,31,159,218,127,249,221,231,255,155,254,71,233,253,196,127,159,186,70, +96,0,0,0,57,247,130,191,159,24,125,249,215,230,95,155,24,69,249,247,228,95,159,106,70,104,0,0,0,49,255,192, +33,8,140,51,32,77,128,48,31,254,7,128,63,3,183,24,198,67,8,0,0,8,65,225,5,68,21,126,123,121,253,39, +244,142,254,63,121,205,37,52,132,254,19,24,0,0,12,1,255,225,89,149,60,16,225,254,227,164,142,124,125,249,65,133, +63,132,16,16,64,0,0,0,0,255,195,49,15,252,63,240,204,67,255,0,192,3,0,255,224,48,31,254,127,248,0,96, +255,128,48,31,254,63,240,204,195,255,12,204,63,240,12,3,255,0,192,127,248,0,1,255,229,161,159,188,90,113,251,231, +255,134,26,126,104,97,129,134,31,152,96,224,0,0,0,0,192,195,255,15,252,63,241,255,227,255,15,252,51,48,255,195, +255,0,192,127,248,1,0,12,0,252,6,24,127,249,63,32,48,15,252,63,240,76,129,182,6,240,127,248,12,192,225,198, +205,129,224,31,225,192,225,254,0,192,63,240,255,193,182,6,208,127,248,8,129,179,6,223,155,216,111,48,62,3,207,27, +246,3,0,255,193,182,6,216,127,248,1,33,247,193,19,4,124,63,125,140,96,252,31,254,67,0,255,193,182,2,208,127, +248,3,1,255,231,255,133,40,52,177,158,96,248,31,62,79,192,127,129,182,6,208,127,248,32,48,223,132,8,11,254,19, +192,248,196,49,135,56,127,248,12,1,254,2,208,127,248,16,1,251,230,136,31,190,12,177,254,64,177,3,240,127,248,12, +3,255,2,208,127,248,0,65,251,227,207,159,244,62,113,161,197,185,135,240,127,248,12,3,255,2,208,127,248,0,128,255, +228,51,9,252,22,176,218,198,249,131,240,127,248,12,3,255,2,208,127,248,24,65,251,7,223,134,228,126,112,243,198,249, +131,224,127,248,12,1,254,2,208,127,248,1,0,255,226,204,11,118,63,240,187,198,172,159,240,126,249,207,36,255,19,72, +127,248,0,0,32,97,247,231,201,24,126,126,97,223,225,246,7,56,127,248,12,3,254,2,208,127,248,3,0,63,7,255, +128,192,31,224,255,193,134,15,60,125,248,97,135,223,143,124,125,248,0,0,16,0,192,7,224,16,0,126,0,96,1,128, +31,128,24,0,96,1,160,7,128,16,0,0,0,32,128,194,7,232,16,32,124,128,98,1,136,31,160,24,128,98,33,168, +135,182,16,248,0,0,32,0,199,199,223,144,12,120,32,193,129,12,31,32,49,128,68,33,80,143,126,48,240,0,0,32, +64,193,135,198,48,24,124,96,239,225,6,31,24,48,96,65,129,70,15,24,48,96,0,0,32,0,199,231,223,144,8,124, +32,224,129,2,31,8,16,32,64,129,66,15,8,48,224,0,0,32,8,192,39,228,144,18,126,72,249,33,132,159,146,24, +72,97,33,160,135,134,24,120,0,0,32,128,194,7,232,16,32,124,192,243,129,139,159,166,24,128,98,1,232,7,32,16, +128,0,0,32,0,199,231,193,144,4,124,48,97,129,6,31,24,24,96,65,129,198,7,24,48,224,0,0,32,64,193,7, +196,16,16,125,248,207,225,4,31,16,48,64,65,1,196,14,254,51,248,0,0,32,16,199,231,214,16,16,120,64,193,129, +63,223,24,48,64,65,1,68,15,16,48,64,0,0,32,8,197,39,212,144,82,121,72,229,33,20,159,82,51,72,77,33, +244,142,146,54,8,0,0,32,16,192,199,198,16,112,124,24,224,193,6,31,240,24,8,64,97,67,7,56,49,128,0,0, +33,48,135,199,209,16,68,121,144,199,65,21,31,92,49,48,76,65,241,79,135,54,24,0,0,32,128,198,7,223,144,126, +127,8,248,33,24,159,178,24,104,64,33,65,135,6,48,112,0,0,32,0,133,231,216,144,194,122,8,200,33,32,159,130, +50,8,72,33,224,142,130,34,56,0,0,32,64,195,7,204,16,254,123,248,198,65,25,31,76,49,176,67,129,71,14,102, +51,8,0,0,32,0,143,231,255,144,82,121,88,199,193,25,31,44,48,224,65,129,79,14,102,51,8,0,0,32,0,207, +247,198,16,88,127,120,205,129,54,31,254,48,8,64,33,64,143,6,48,112,0,0,32,0,207,231,198,16,16,120,224,227, +193,29,31,118,51,72,65,1,196,14,16,48,64,0,0,32,64,193,7,196,16,16,127,252,195,129,14,31,56,48,160,70, +193,217,14,246,54,72,0,0,32,0,199,231,208,16,64,125,248,228,97,17,159,70,25,248,68,1,80,15,126,49,248,0, +0,32,64,193,7,255,240,24,124,72,205,33,52,159,210,51,248,65,225,68,14,27,48,120,0,0,32,64,193,7,197,16, +86,127,72,237,33,36,31,22,48,88,64,193,198,14,112,51,0,0,0,32,64,193,7,196,16,254,127,104,201,33,36,159, +254,51,248,65,1,68,15,16,48,64,0,0,32,64,193,7,196,16,254,123,248,201,33,38,159,186,51,184,78,97,96,142, +130,50,56,0,0,32,0,143,231,241,176,214,123,88,205,97,53,159,214,51,88,75,33,207,14,230,55,8,0,0,32,0, +207,231,224,144,202,123,168,203,161,36,159,154,50,232,74,225,56,142,130,50,56,0,0,32,24,143,231,240,16,192,123,248, +206,97,57,159,244,51,112,73,193,231,15,190,37,136,0,0,32,64,195,7,206,48,108,123,216,201,161,0,31,252,48,48, +64,193,66,14,24,48,64,0,0,32,0,199,231,217,144,66,125,248,198,97,16,159,126,49,248,68,33,80,142,198,50,56, +0,0,32,128,194,7,223,144,126,125,8,237,97,4,31,24,16,224,67,129,91,15,70,51,8,0,0,32,128,198,7,223, +144,126,123,8,198,33,12,159,18,48,56,71,33,241,142,6,48,112,0,0,32,64,195,71,223,144,68,125,16,197,193,16, +31,126,48,8,79,161,94,142,6,48,56,0,0,32,128,198,7,223,144,254,126,136,194,33,24,159,90,51,232,79,225,65, +143,6,48,112,0,0,32,128,131,7,255,176,254,120,0,199,195,19,31,76,49,48,204,195,179,79,143,54,56,0,0,32, +64,129,7,198,16,254,120,128,194,1,15,159,38,49,152,70,97,209,142,196,34,112,0,0,32,64,193,7,196,16,82,125, +88,205,97,39,31,24,48,224,67,129,219,14,198,50,8,0,0,32,16,194,71,205,16,20,124,16,230,65,13,31,4,24, +124,79,193,65,15,4,48,16,0,0,32,0,143,231,205,176,54,120,152,195,97,63,159,38,48,144,70,65,217,15,254,55, +248,0,0,32,0,143,231,247,176,210,123,72,205,33,63,159,254,51,0,76,1,240,206,195,49,248,0,0,32,0,143,231, +223,176,16,120,64,193,129,31,159,16,48,80,65,33,196,142,254,51,248,0,0,32,128,195,199,205,16,126,121,192,195,97, +63,159,178,48,88,65,193,198,14,250,51,24,0,0,32,0,207,231,198,16,24,124,96,197,129,23,159,88,49,96,69,129, +86,15,254,51,248,0,0,33,16,196,71,241,144,255,125,16,196,65,17,31,124,49,16,68,65,81,15,124,49,16,0,0, +32,64,193,7,196,16,254,125,248,193,1,4,31,126,51,24,76,97,113,143,254,51,24,0,0,32,64,129,7,196,48,254, +120,224,227,193,31,31,84,51,88,77,225,255,142,16,48,64,0,0,32,0,207,247,193,144,6,125,216,197,97,21,159,86, +49,216,68,97,193,142,6,48,112,0,0,32,0,207,231,240,16,192,123,120,205,97,53,159,214,51,120,76,1,112,15,254, +49,248,0,0,32,192,130,7,255,144,96,121,64,205,161,127,159,210,49,72,69,33,215,142,20,32,64,0,0,32,128,194, +71,201,48,254,121,128,194,1,31,159,102,49,208,69,193,119,15,188,54,216,0,0,32,112,193,231,198,144,255,123,96,205, +161,50,159,206,51,48,76,193,59,15,223,50,216,0,0,32,64,193,7,196,16,31,124,64,225,1,12,31,254,51,8,76, +33,112,143,254,51,248,0,0,32,0,199,231,209,144,70,121,248,231,225,17,159,126,49,248,68,97,81,143,126,49,24,0, +0,32,0,199,231,209,144,70,125,24,231,225,17,159,70,49,248,71,225,64,15,254,51,248,0,0,32,0,207,231,244,144, +210,127,248,237,225,52,159,254,51,248,65,1,196,14,16,48,64,0,0,32,0,207,231,246,144,210,127,72,205,33,63,159, +222,51,72,77,33,116,142,254,51,8,0,0,32,64,193,7,196,16,254,123,248,201,33,36,159,254,51,104,73,33,100,142, +254,51,8,0,0,32,64,197,135,214,48,254,127,96,233,129,63,159,254,48,96,67,129,75,15,102,51,8,0,0,32,64, +131,7,223,144,254,123,8,236,33,49,159,254,123,8,76,33,240,142,254,51,24,0,0,32,64,195,135,206,16,108,123,88, +249,33,4,31,126,48,16,64,129,94,15,24,48,32,0,0,32,16,143,199,240,16,208,122,64,207,225,63,159,16,49,80, +77,97,228,143,146,32,192,0,0,32,0,199,199,217,48,68,121,16,236,97,32,31,126,49,24,68,97,81,143,126,49,24, +0,0,32,128,142,231,227,144,170,122,168,202,163,42,158,170,51,168,222,163,147,14,200,34,32,0,0,32,192,129,7,255, +144,24,120,64,207,227,52,158,210,51,72,205,35,181,142,16,48,64,0,0,32,64,193,135,255,144,254,120,192,194,65,27, +31,248,48,96,67,65,217,142,254,51,8,0,0,32,64,193,135,255,144,254,122,8,198,1,25,159,124,49,128,70,1,88, +207,98,49,248,0,0,32,128,131,103,199,144,36,120,176,202,225,46,159,186,54,204,67,1,216,142,246,34,240,0,0,32, +0,207,231,240,144,198,123,248,204,3,44,159,188,50,224,203,3,108,15,178,54,120,0,0,32,64,193,7,255,144,254,122, +72,205,193,63,159,230,50,144,75,193,230,15,188,53,152,0,0,32,0,207,231,209,144,60,120,224,206,225,36,159,124,49, +240,65,1,127,142,16,48,64,0,0,32,128,131,39,191,144,44,127,248,207,227,31,159,254,55,0,199,227,1,14,4,48, +240,0,0,32,192,131,39,255,144,52,120,240,207,225,12,31,100,51,240,75,1,200,142,34,32,248,0,0,32,0,207,231, +209,176,68,125,240,228,65,25,31,124,17,16,68,97,255,142,4,48,16,0,0,32,192,195,7,255,144,96,121,144,239,225, +57,159,126,49,152,71,225,89,143,102,49,184,0,0,32,32,128,167,191,176,254,122,32,238,163,58,159,174,54,176,218,195, +251,15,31,36,152,0,0,32,64,193,7,255,144,16,123,80,197,65,29,31,254,48,192,67,129,219,14,198,38,8,0,0, +32,0,159,231,154,177,234,125,168,223,195,122,158,234,51,168,206,163,91,143,104,35,32,0,0,32,129,134,7,191,144,38, +120,240,199,163,51,158,4,51,248,198,131,146,14,203,38,56,0,0,32,64,201,39,245,144,84,121,80,207,225,63,159,2, +51,248,64,97,0,142,254,48,24,0,0,32,0,207,231,224,144,186,126,8,203,163,46,159,170,50,168,203,163,232,142,130, +50,56,0,0,32,0,207,231,241,144,198,123,248,199,193,0,31,254,51,24,72,33,224,142,254,51,24,0,0,32,0,199, +231,209,144,70,125,248,193,129,31,159,254,51,72,77,33,116,142,214,48,64,0,0,32,0,143,231,164,176,146,122,200,207, +227,36,159,178,50,168,202,227,160,142,254,35,248,0,0,32,64,137,39,228,176,254,120,0,199,227,63,159,2,51,248,207, +227,48,14,195,49,248,0,0,32,9,158,167,202,177,234,127,168,222,162,122,159,234,55,168,154,162,48,141,162,44,56,0, +0,32,64,197,135,214,16,254,127,96,201,129,63,159,60,48,240,71,193,87,143,218,48,96,0,0,32,64,133,135,223,144, +254,126,96,193,129,63,159,108,48,160,70,129,26,14,203,50,56,0,0,32,8,159,231,147,16,140,122,48,223,227,19,31, +76,55,48,207,227,176,13,248,44,120,0,0,32,16,207,199,196,16,16,123,248,193,1,4,31,254,48,128,70,193,209,142, +254,51,8,0,0,33,0,197,167,183,144,220,127,224,205,163,51,158,80,48,192,223,227,132,14,16,32,64,0,0,32,64, +195,135,206,48,102,127,24,199,193,4,31,16,49,248,65,1,68,14,24,51,248,0,0,32,0,204,71,206,16,60,123,152, +193,1,63,158,24,49,80,69,97,180,142,146,48,192,0,0,32,64,195,7,222,48,108,123,56,223,225,0,31,252,51,240, +76,65,177,14,252,51,240,0,0,32,160,194,135,202,16,170,123,176,198,193,10,30,108,55,184,70,129,146,14,203,50,56, +0,0,32,128,199,231,223,144,228,126,240,195,129,59,159,199,49,248,68,97,81,143,126,49,24,0,0,32,64,195,7,223, +144,196,123,176,227,129,12,31,126,51,248,70,33,88,143,126,49,248,0,0,32,128,199,135,159,16,216,123,248,195,97,63, +158,54,48,216,79,225,196,14,48,49,192,0,0,32,128,199,199,223,16,204,127,248,205,161,52,159,222,51,248,76,1,112, +143,195,49,248,0,0,32,64,193,7,255,144,36,121,144,196,33,57,159,44,48,224,65,129,206,14,110,51,24,0,0,32, +64,129,7,191,144,254,120,192,195,33,31,159,236,49,160,70,193,217,142,122,33,128,0,0,32,64,129,135,191,176,68,120, +144,207,227,48,30,128,50,0,200,3,160,15,128,36,0,0,0,32,64,129,7,255,144,52,121,144,207,225,63,159,40,49, +160,70,129,210,142,203,38,56,0,0,32,0,159,231,163,16,24,124,192,223,226,46,158,42,51,168,157,35,204,143,38,33, +48,0,0,32,64,129,7,191,176,130,122,200,195,1,63,158,100,49,48,71,129,206,14,126,51,8,0,0,32,0,207,231, +241,144,254,123,248,204,97,63,159,208,51,120,76,193,115,15,246,51,136,0,0,34,0,140,231,167,177,250,122,232,203,163, +46,159,186,55,232,205,163,190,142,190,36,40,0,0,32,192,143,231,191,144,252,123,240,207,227,127,158,102,49,248,206,67, +237,15,4,32,112,0,0,33,17,143,231,191,176,100,123,248,207,227,36,158,52,51,248,194,99,217,142,196,38,112,0,0, +32,80,193,103,255,144,16,123,248,205,225,55,159,254,50,72,79,225,244,142,146,50,88,0,0,32,64,129,7,191,176,16, +121,80,197,67,63,159,254,48,224,199,195,181,143,146,32,64,0,0,32,33,128,231,130,177,254,121,32,198,131,2,31,248, +55,96,221,195,183,78,247,33,152,0,0,32,65,145,7,255,176,40,112,160,255,226,34,30,136,51,248,136,131,226,15,232, +36,248,0,0,32,0,159,231,252,145,254,127,176,222,195,125,158,16,48,192,207,227,132,14,56,39,248,0,0,32,64,141, +39,213,144,84,123,248,204,97,49,159,254,51,8,79,225,49,142,194,51,56,0,0,32,64,205,39,213,16,84,123,248,204, +97,53,159,214,51,88,77,97,76,14,108,55,8,0,0,32,0,207,231,244,144,254,123,248,237,33,63,159,24,48,96,79, +225,196,14,24,51,248,0,0,32,0,143,231,241,176,198,123,248,192,1,63,159,24,48,96,79,225,196,14,56,35,248,0, +0,32,32,158,135,250,49,62,127,248,222,163,74,159,234,55,168,211,163,252,143,246,32,184,0,0,32,0,207,231,241,176, +254,121,240,193,3,63,158,146,50,232,202,163,57,142,130,50,56,0,0,32,64,197,135,223,144,254,126,96,207,227,63,159, +0,49,248,196,99,81,142,126,49,248,0,0,32,160,143,199,146,144,72,127,248,207,131,18,158,110,55,176,196,195,19,14, +94,51,216,0,0,32,48,143,199,196,16,254,120,240,205,97,36,159,252,49,176,70,225,16,142,194,50,56,0,0,32,64, +197,71,213,16,212,123,80,207,225,46,223,16,51,248,79,225,196,15,254,51,248,0,0,32,16,207,199,196,144,214,121,80, +192,65,3,31,254,49,48,70,193,75,14,12,48,112,0,0,32,128,135,199,191,17,236,120,224,199,195,101,158,254,48,192, +207,195,204,14,254,32,64,0,0,32,64,129,135,255,144,100,121,144,194,193,63,223,24,48,96,79,225,70,14,24,48,96, +0,0,32,64,131,7,255,176,36,121,152,207,225,0,159,84,49,80,77,65,245,14,149,36,88,0,0,34,0,143,231,144, +177,250,126,168,218,163,110,159,254,54,168,218,163,122,143,202,54,24,0,0,32,0,139,231,160,177,2,119,232,220,163,122, +159,250,55,40,222,163,254,143,130,38,56,0,0,33,16,134,71,219,48,254,123,24,204,97,63,159,254,49,160,70,129,18, +14,203,54,56,0,0,33,16,196,71,191,176,254,120,72,207,225,44,31,254,51,248,71,33,188,143,150,52,64,0,0,32, +64,135,135,255,176,198,123,248,204,97,49,159,254,51,72,77,225,243,14,246,35,8,0,0,32,0,199,231,223,176,126,121, +248,192,1,63,223,131,51,248,70,193,142,14,124,55,24,0,0,32,0,207,231,161,144,254,123,240,207,225,63,158,186,51, +232,78,161,254,143,2,36,56,0,0,32,1,159,247,208,177,218,118,232,218,162,90,159,106,37,232,159,163,192,141,2,100, +56,0,0,32,64,207,231,204,48,254,120,192,207,225,31,31,198,51,248,76,97,127,142,198,51,56,0,0,32,128,195,39, +191,144,60,123,248,207,225,28,31,254,55,24,71,225,25,142,126,49,248,0,0,33,16,207,231,255,144,100,120,192,207,241, +24,30,96,51,248,78,97,208,142,126,49,248,0,0,32,176,134,199,255,144,108,121,176,207,225,0,31,126,49,24,71,225, +17,142,126,49,248,0,0,32,144,194,71,255,144,108,120,144,198,65,63,159,210,51,248,79,225,116,142,254,51,248,0,0, +32,64,131,7,255,176,108,123,88,207,227,4,30,84,51,248,207,227,145,14,196,34,16,0,0,32,0,199,231,223,144,70, +125,248,192,1,63,159,12,51,248,70,193,91,14,44,48,112,0,0,32,0,207,231,228,144,254,122,72,207,227,14,31,254, +51,248,199,195,245,15,146,48,64,0,0,32,0,143,199,225,16,252,122,16,207,195,34,30,202,51,248,204,131,50,14,250, +51,184,0,0,32,0,207,231,241,144,254,127,24,207,225,16,31,254,54,168,70,161,84,143,178,48,184,0,0,32,0,207, +231,228,176,146,123,248,201,35,46,158,186,50,168,203,163,224,142,254,51,24,0,0,32,0,143,231,234,176,170,123,248,194, +1,31,159,70,54,144,67,193,198,14,112,35,0,0,0,32,16,143,199,132,48,254,123,248,205,67,127,159,246,51,80,223, +227,132,14,48,35,248,0,0,32,128,198,135,218,16,254,127,32,223,225,63,159,72,49,248,69,129,82,14,126,49,0,0, +0,32,64,135,199,255,176,254,123,24,207,225,14,31,126,51,248,73,33,228,142,150,32,64,0,0,32,32,158,135,199,177, +30,119,232,213,226,83,31,76,53,48,148,194,87,15,82,41,200,0,0,32,64,143,71,157,16,254,120,128,223,227,59,158, +254,55,248,196,131,150,14,66,33,248,0,0,33,0,207,231,191,145,170,121,104,205,35,109,158,46,49,64,221,35,80,143, +78,33,224,0,0,32,64,131,135,255,176,68,121,16,198,195,127,158,0,51,248,204,99,177,142,254,35,248,0,0,32,64, +197,39,245,144,180,120,240,206,97,4,31,82,51,88,75,193,14,14,108,51,24,0,0,32,64,193,7,255,144,130,122,8, +207,225,4,30,208,51,120,77,1,180,15,176,52,120,0,0,32,33,159,231,166,176,191,126,104,223,226,50,31,254,54,96, +155,227,226,13,248,44,248,0,0,32,0,207,231,160,144,254,123,248,201,129,63,158,152,50,96,79,225,248,143,230,37,248, +0,0,32,1,135,199,198,48,254,123,248,193,1,12,31,32,51,248,74,161,234,142,254,39,252,0,0,33,8,205,103,237, +16,180,123,88,197,161,31,159,254,50,72,79,225,52,142,254,51,248,0,0,33,0,223,231,178,176,234,123,40,223,163,53, +158,16,51,248,207,227,142,14,108,39,24,0,0,34,32,204,167,255,176,200,123,32,207,225,36,31,124,49,248,71,225,95, +142,126,49,248,0,0,35,33,141,231,188,177,254,127,48,207,194,57,30,255,55,24,157,67,181,12,196,35,48,0,0,32, +0,207,231,228,176,254,123,120,205,225,63,159,16,51,232,78,161,121,143,111,48,224,0,0,32,0,142,231,170,144,238,120, +0,207,225,0,31,254,49,128,71,225,65,14,4,48,240,0,0,32,24,143,199,196,16,254,123,248,193,1,63,159,146,51, +72,79,225,228,142,254,35,248,0,0,32,1,156,199,163,16,158,119,248,221,226,55,159,236,55,176,152,195,39,142,146,34, +72,0,0,32,16,207,199,204,16,254,121,240,207,225,63,159,150,51,248,67,1,63,142,16,55,248,0,0,33,0,141,199, +229,49,148,127,216,218,35,119,159,222,54,88,223,195,99,15,158,38,200,0,0,32,64,143,231,237,145,246,126,216,219,99, +127,158,48,55,248,204,67,158,14,124,47,56,0,0,32,24,159,231,165,176,212,127,248,196,2,127,158,64,51,240,142,67, +174,13,188,47,152,0,0,32,65,131,135,255,176,0,123,248,204,99,63,158,120,51,104,220,195,211,14,118,35,136,0,0, +32,64,143,231,191,144,244,123,248,203,65,47,30,132,51,248,75,65,231,15,188,53,152,0,0,33,16,198,199,255,144,16, +123,248,193,1,127,158,16,51,248,79,225,206,14,236,54,24,0,0,32,64,141,103,149,48,254,121,240,205,99,4,30,48, +55,248,196,195,190,14,60,35,152,0,0,32,160,143,231,190,144,254,123,248,207,225,50,158,254,51,88,77,97,245,142,108, +51,24,0,0,34,0,143,231,164,176,254,123,248,200,3,63,159,230,51,248,206,99,255,143,254,37,248,0,0,33,144,207, +231,155,16,124,123,24,207,225,49,158,254,48,64,79,225,206,14,108,35,24,0,0,32,64,207,231,223,144,126,121,24,199, +225,31,159,70,49,248,79,225,127,142,108,51,8,0,0,32,0,223,231,159,48,254,123,24,199,195,63,159,170,54,168,223, +163,236,143,146,54,88,0,0,32,0,159,231,191,48,196,123,240,204,98,127,158,254,55,248,156,163,179,14,236,36,72,0, +0,33,64,205,135,255,145,254,127,96,207,225,63,159,254,51,240,70,225,18,142,194,54,56,0,0,32,192,207,199,241,144, +254,123,24,207,225,63,158,48,51,248,71,129,223,15,214,50,72,0,0,0,0,131,3,30,31,254,68,201,239,195,63,12, +60,123,240,207,227,12,13,254,56,192,199,0,0,0,32,0,157,231,226,176,170,127,232,223,99,5,30,254,50,88,207,227, +173,142,254,35,248,0,0,32,128,195,7,255,144,124,123,16,207,195,0,31,254,50,8,203,163,234,142,186,50,24,0,0, +32,64,143,231,191,144,68,123,248,201,35,4,159,254,48,128,199,227,153,142,196,38,112,0,0,32,16,132,71,146,49,254, +120,32,196,195,33,158,130,51,248,202,163,42,143,254,55,252,0,0,32,65,131,7,255,177,130,123,240,198,3,63,158,60, +51,80,219,227,158,141,144,32,192,0,0,32,65,131,135,191,176,134,123,240,196,3,31,158,72,49,32,223,227,154,14,206, +38,8,0,0,32,0,223,231,158,16,254,122,168,207,225,0,31,254,48,0,79,225,149,15,150,48,200,0,0,32,64,205, +103,149,16,254,126,8,207,227,17,31,124,48,64,207,227,206,14,16,35,248,0,0,32,0,204,103,255,144,198,121,240,207, +225,42,159,254,51,248,78,225,223,14,120,55,56,0,0,32,0,143,231,173,176,254,123,248,207,193,62,30,244,49,152,79, +225,149,14,150,34,200,0,0,32,64,143,231,255,144,190,122,120,207,225,47,159,158,51,248,79,225,127,143,126,53,120,0, +0,32,64,207,231,153,16,108,123,248,199,227,49,159,254,51,24,199,195,218,14,75,39,56,0,0,32,64,207,231,155,16, +108,123,248,201,33,63,159,146,50,232,74,161,174,142,162,50,24,0,0,32,64,137,7,255,177,184,116,96,221,226,125,31, +76,53,252,148,195,211,143,90,43,76,0,0,0,65,137,7,247,179,240,116,200,221,226,114,157,92,37,120,151,131,222,14, +124,107,184,0,0,32,0,207,231,191,144,174,123,248,192,1,63,159,254,51,24,79,225,127,143,254,48,64,0,0,32,0, +159,231,196,17,84,127,248,223,226,127,159,244,55,208,151,67,201,143,74,45,40,0,0,32,64,143,231,191,144,234,123,48, +207,227,115,158,252,51,240,195,3,181,15,150,33,192,0,0,32,160,142,231,251,16,254,121,48,207,227,12,30,254,48,192, +207,227,14,14,236,54,24,0,0,32,128,135,135,182,49,254,123,248,205,99,63,159,254,49,240,207,227,191,142,198,35,248, +0,0,34,33,140,135,251,177,254,117,232,223,226,31,159,236,51,48,158,195,115,12,222,38,200,0,0,32,1,155,231,160, +177,50,117,232,215,162,127,159,254,55,248,147,163,222,141,146,36,56,0,0,33,16,134,199,255,144,170,123,184,207,195,63, +158,124,51,248,207,227,63,142,254,51,248,0,0,32,64,143,231,226,176,238,122,72,207,227,37,158,254,51,248,207,227,236, +142,254,32,64,0,0,32,0,157,231,149,176,94,119,32,209,194,79,159,234,49,248,133,227,146,142,254,38,232,0,0,32, +32,206,199,251,144,206,123,248,216,35,63,31,196,51,240,199,195,155,14,104,55,248,0,0,32,144,223,231,157,16,216,123, +240,223,225,63,158,216,49,248,79,225,155,14,56,51,184,0,0,32,0,143,231,132,48,254,123,88,193,1,63,158,16,51, +248,77,97,191,142,214,35,248,0,0,32,0,143,231,234,144,254,121,0,207,227,104,158,250,50,168,207,163,138,142,254,32, +56,0,0,32,64,143,231,255,177,164,127,248,219,195,111,159,254,54,248,223,227,239,15,254,36,96,0,0,32,64,143,231, +155,16,254,123,248,207,227,49,158,254,51,248,193,3,190,143,230,32,240,0,0,32,192,143,231,244,176,254,123,248,214,195, +63,30,186,55,240,207,195,181,14,146,32,192,0,0,32,65,143,231,255,177,254,118,168,223,226,82,31,126,53,224,150,99, +210,15,234,42,40,0,0,32,64,159,231,187,144,174,123,184,198,195,63,158,254,49,176,223,227,179,143,92,35,200,0,0, +24,0,97,193,142,6,224,26,0,96,7,255,134,64,25,128,99,1,150,7,206,24,8,0,0,0,1,255,230,121,159,254, +103,153,243,230,252,155,242,101,137,255,166,72,155,38,104,184,0,0,0,1,255,231,255,153,230,127,249,162,103,220,155,50, +127,233,140,38,252,153,118,109,56,0,0,32,16,223,225,129,152,6,96,25,128,102,1,152,6,96,25,128,102,1,152,6, +96,120,0,0,32,16,223,225,1,152,6,96,25,128,102,253,155,246,96,25,128,102,1,152,6,96,120,0,0,32,0,223, +225,129,144,66,67,9,12,36,48,145,226,76,201,97,164,0,144,6,64,120,0,0,32,0,223,225,1,144,6,79,217,0, +100,1,147,246,64,25,63,100,253,144,6,64,120,0,0,32,0,223,225,1,144,34,97,137,255,166,56,152,226,110,137,226, +38,24,152,226,96,56,0,0,0,0,159,225,1,144,6,103,153,191,102,205,155,54,111,217,190,102,1,152,6,96,120,0, +0,32,16,223,225,1,155,246,108,217,178,102,205,155,254,96,89,253,102,5,152,118,96,56,0,0,32,0,223,225,0,144, +2,79,233,12,36,48,147,242,67,9,12,37,254,144,6,64,120,0,0,32,0,223,225,0,128,194,95,233,12,36,252,144, +194,95,233,13,164,54,144,214,64,120,0,0,32,0,223,225,0,144,130,67,9,127,164,120,145,226,79,73,109,164,48,144, +198,64,120,0,0,32,16,223,225,129,152,134,127,249,152,102,81,155,70,107,217,201,102,127,152,6,96,120,0,0,32,0, +223,225,1,144,6,111,217,179,102,205,155,246,108,217,179,102,253,152,6,96,56,0,0,32,16,223,225,1,152,198,111,249, +191,230,137,155,230,99,25,158,103,205,152,6,96,56,0,0,0,0,159,225,0,144,194,95,201,127,164,120,145,226,68,137, +50,164,142,150,18,64,56,0,0,32,16,223,225,1,152,134,97,25,181,103,199,157,14,116,185,146,102,121,152,6,96,120, +0,0,0,0,223,225,1,147,246,111,249,173,230,255,154,222,111,249,173,230,49,152,198,97,56,0,0,32,0,223,225,33, +144,198,95,249,63,100,53,147,246,75,89,45,100,189,144,198,64,56,0,0,32,16,223,225,1,152,198,111,217,140,103,255, +152,6,111,217,140,102,49,159,254,96,120,0,0,0,0,223,225,0,147,242,111,201,191,38,204,155,242,108,201,191,167,252, +152,54,96,56,0,0,0,0,159,225,1,148,34,73,137,31,165,152,150,114,75,73,56,167,255,144,126,64,56,0,0,32, +0,223,225,1,144,198,111,217,255,231,183,159,254,99,89,141,103,255,156,14,96,56,0,0,32,16,223,225,1,153,246,108, +217,179,102,121,155,246,104,89,161,102,253,154,6,96,120,0,0,32,0,223,225,0,147,82,105,73,239,167,184,158,90,105, +201,166,38,191,154,158,96,56,0,0,32,0,223,225,1,153,246,108,217,222,102,121,159,62,111,217,161,102,205,155,246,96, +120,0,0,32,16,223,225,161,152,198,127,249,152,102,249,154,222,110,217,134,102,109,158,22,96,120,0,0,32,0,223,225, +1,131,246,104,89,173,102,253,154,214,111,217,173,102,253,152,6,96,56,0,0,32,16,223,225,193,153,230,105,153,255,103, +181,155,246,107,89,191,102,51,152,126,96,56,0,0,32,0,223,225,1,145,50,101,137,191,38,132,155,242,111,201,150,38, +218,158,62,96,56,0,0,32,16,223,225,33,152,198,111,217,191,102,205,155,246,107,89,167,102,237,155,6,96,120,0,0, +32,16,223,225,145,152,86,127,249,134,103,253,156,182,110,217,138,231,255,152,150,96,120,0,0,32,0,223,225,32,145,162, +95,233,63,39,255,147,242,75,73,63,36,178,144,122,64,120,0,0,0,0,223,225,1,147,246,76,217,63,100,253,144,6, +95,217,127,101,133,147,246,64,56,0,0,32,0,223,225,1,145,178,88,201,55,36,132,147,242,79,137,22,36,219,158,58, +64,56,0,0,32,0,223,225,1,147,246,74,89,47,101,255,151,254,76,217,62,100,121,151,54,64,56,0,0,32,16,223, +225,1,147,230,105,25,191,103,239,154,22,111,217,191,102,205,155,246,96,120,0,0,32,0,223,225,0,145,242,79,201,34, +36,200,146,114,76,201,33,36,252,146,18,64,120,0,0,32,0,223,225,0,147,18,76,201,126,164,147,147,162,74,73,72, +37,108,157,2,64,120,0,0,0,0,159,225,1,145,34,79,201,109,165,254,150,218,95,233,12,37,254,144,194,64,56,0, +0,32,16,223,225,1,152,198,111,249,191,102,253,155,246,111,217,158,102,253,158,198,97,120,0,0,0,0,159,225,1,147, +242,79,201,35,36,140,147,242,67,201,127,164,120,151,18,64,56,0,0,32,0,223,225,1,148,58,75,137,6,39,126,146, +34,67,233,41,165,190,148,246,64,56,0,0,32,16,223,225,1,155,246,100,185,179,103,255,156,198,127,217,140,102,121,158, +22,96,56,0,0,32,16,223,225,1,155,246,99,25,255,230,237,155,214,111,217,173,103,255,159,254,96,120,0,0,32,0, +223,225,0,151,250,79,201,33,36,252,147,242,79,201,63,167,255,147,58,64,56,0,0,0,0,159,225,1,146,162,78,249, +254,228,94,149,178,94,201,59,36,138,150,78,64,120,0,0,32,16,223,225,0,155,162,102,249,255,231,242,158,178,126,73, +233,167,235,152,198,96,120,0,0,2,0,127,131,254,12,24,63,224,255,131,255,12,12,63,240,12,7,255,128,192,3,0, +0,0,0,0,248,2,96,9,0,44,0,176,2,64,9,128,38,0,184,2,192,8,0,32,0,0,0,0,65,243,6,204, +26,48,104,193,163,6,204,25,56,108,225,230,134,19,24,198,102,8,0,0,0,17,239,196,156,22,16,80,65,99,4,255, +210,16,72,65,97,4,4,16,16,64,64,0,0,0,1,255,228,191,150,72,81,33,100,132,146,18,72,73,33,108,132,50, +209,143,68,56,0,0,0,17,239,228,176,22,128,83,249,78,100,185,146,164,74,113,233,132,38,17,190,69,152,0,0,0, +1,239,228,128,22,0,80,1,127,244,154,18,72,73,33,100,132,50,145,139,68,56,0,0,1,17,228,196,147,23,254,81, +177,68,197,147,19,255,73,49,228,196,51,16,140,70,48,0,0,0,65,225,4,255,147,254,81,129,102,68,159,146,70,73, +25,236,68,33,17,132,76,112,0,0,0,1,255,228,177,146,198,83,25,108,100,191,147,198,111,25,236,100,49,144,254,67, +24,0,0,0,1,247,228,144,146,66,89,249,36,100,144,147,126,79,249,108,36,32,144,134,70,56,0,0,0,129,227,4, +255,150,96,81,97,109,132,191,146,152,72,97,255,228,63,144,24,64,96,0,0,0,193,243,4,158,22,108,83,25,120,36, +147,19,76,109,49,228,196,51,16,204,70,48,0,0,0,1,255,196,177,18,196,83,241,111,196,177,18,196,107,241,108,68, +49,17,254,71,248,0,0,1,129,246,4,159,146,254,86,193,99,228,143,147,48,76,249,99,228,12,16,48,64,192,0,0, +0,65,243,4,140,18,63,80,193,99,4,140,19,254,78,25,104,100,33,144,254,67,24,0,0,0,1,255,244,129,150,4, +83,209,75,68,165,18,148,75,209,232,68,1,16,4,64,240,0,0,0,193,241,4,255,151,130,87,9,100,4,147,18,120, +73,129,228,4,16,144,98,65,248,0,0,0,65,225,5,191,148,182,82,73,75,68,191,147,196,95,177,219,132,78,19,126, +75,24,0,0,1,17,228,69,177,22,254,86,249,120,69,169,18,148,74,81,232,68,33,16,132,66,112,0,0,0,1,247, +228,128,22,0,91,249,111,228,132,18,84,75,89,105,36,100,145,18,65,192,0,0,0,65,225,4,191,148,56,80,65,67, +132,255,146,16,74,73,233,36,36,144,254,67,248,0,0,1,1,228,196,145,23,254,87,249,101,132,151,146,220,75,113,105, +132,110,19,123,77,56,0,0,0,129,230,4,255,150,64,83,65,73,4,255,146,252,88,65,233,68,100,145,50,65,192,0, +0,0,1,239,196,131,22,24,80,225,110,228,224,146,254,75,241,225,4,4,16,56,71,248,0,0,0,1,239,229,134,21, +126,85,105,85,37,214,147,126,93,9,212,100,81,17,254,71,248,0,0,0,1,255,228,140,22,48,83,249,108,100,177,146, +254,75,249,236,100,49,144,254,67,24,0,0,0,129,231,197,191,21,232,80,225,79,228,228,146,254,74,97,233,4,127,144, +16,64,64,0,0,0,1,255,228,177,146,254,83,249,108,100,191,146,208,75,121,109,196,51,16,246,67,8,0,0,0,65, +225,4,191,150,48,81,145,111,196,190,18,54,75,145,104,196,15,16,230,71,8,0,0,0,65,225,5,191,148,252,82,81, +77,69,157,19,254,88,225,227,132,27,16,198,70,8,0,0,2,1,233,133,191,148,152,82,97,95,164,243,146,48,88,193, +223,228,12,17,254,71,248,0,0,0,65,225,5,167,148,144,87,249,95,229,148,18,214,90,81,193,196,6,16,112,71,0, +0,0,0,65,227,4,191,150,48,80,193,95,228,132,18,208,74,121,237,4,116,17,240,68,120,0,0,0,193,227,4,255, +151,130,83,249,71,196,128,19,254,89,161,228,132,18,17,203,76,56,0,0,0,65,227,5,155,20,198,87,249,71,196,132, +19,254,88,193,201,68,101,145,18,65,192,0,0,0,1,239,228,161,150,254,82,25,111,228,191,18,16,107,249,239,196,4, +17,254,71,248,0,0,0,1,239,196,161,22,252,80,1,79,228,161,146,182,74,217,107,100,14,16,238,70,8,0,0,0, +65,227,4,154,22,204,87,253,87,132,128,18,150,74,81,237,68,2,17,254,71,248,0,0,0,65,227,4,191,150,68,81, +17,111,228,255,146,0,75,249,104,100,33,144,254,67,248,0,0,0,1,255,37,79,149,170,119,169,82,165,123,151,238,92, +185,222,68,251,16,46,64,232,0,0,0,17,239,197,132,22,254,83,249,77,69,255,146,246,75,209,255,229,4,16,48,67, +248,0,0,0,65,227,5,191,148,178,83,249,75,37,191,146,104,75,33,255,228,6,16,8,64,32,0,0,0,65,239,197, +191,20,48,87,249,68,197,249,146,124,91,241,220,196,14,16,252,71,24,0,0,2,1,232,5,191,151,194,95,9,79,164, +168,146,250,90,169,202,164,62,144,6,64,112,0,0,0,129,230,5,159,148,196,86,33,82,132,247,147,134,94,25,222,228, +97,145,254,71,248,0,0,0,1,239,229,173,148,254,82,217,79,228,140,19,254,78,201,83,228,127,145,2,68,24,0,0, +0,129,231,196,187,23,248,80,225,92,228,159,18,144,75,249,251,4,63,144,48,71,248,0,0,0,1,239,228,164,150,254, +82,73,111,228,128,19,255,75,97,108,228,51,16,246,67,136,0,0,0,129,239,228,184,22,254,86,97,95,228,129,18,254, +75,249,236,100,63,144,198,67,56,0,0,0,65,231,196,191,150,254,83,249,111,228,159,18,254,72,193,239,228,63,144,48, +71,252,0,0,0,65,225,133,223,148,176,81,249,95,101,239,150,182,90,249,203,36,109,147,224,72,248,0,0,1,1,231, +132,178,23,152,83,249,64,100,191,146,6,75,241,227,4,117,145,78,65,224,0,0,0,1,255,229,159,20,254,83,25,71, +197,191,147,170,94,169,223,164,108,145,146,70,88,0,0,0,65,227,5,191,148,182,83,249,75,100,191,146,124,88,209,199, +228,55,145,146,68,120,0,0,2,17,236,197,146,21,254,80,33,68,197,225,147,254,95,249,219,228,111,145,254,71,248,0, +0,0,65,237,68,165,151,178,83,249,104,100,191,146,134,75,241,105,68,37,145,18,65,192,0,0,0,193,255,229,147,21, +254,87,249,79,196,161,146,254,75,249,99,4,127,144,48,64,64,0,0,0,129,243,69,95,148,190,80,201,127,197,47,22, +236,90,121,206,228,102,19,216,72,248,0,0,0,1,255,229,255,149,134,83,249,72,133,255,19,220,90,169,95,228,1,17, +90,77,40,0,0,1,1,255,229,191,21,254,75,241,47,231,191,144,198,15,241,233,225,42,12,172,38,16,0,0,3,0, +255,193,255,0,204,127,248,12,195,255,8,196,59,176,63,129,246,28,206,14,8,0,0,9,0,102,1,140,15,254,48,129, +255,197,255,4,32,31,240,127,193,8,7,254,16,0,0,0,17,0,70,3,255,156,224,127,240,255,195,24,15,254,51,0, +12,7,255,128,192,3,0,0,0,25,0,102,3,255,31,252,113,128,127,193,255,4,64,63,192,51,224,143,142,6,96,112, +0,0,0,160,6,135,219,3,254,79,33,191,227,159,134,72,57,248,181,134,18,16,127,1,0,0,0,2,0,108,129,55, +12,246,3,128,250,7,255,134,32,31,240,98,1,255,6,112,31,248,0,0,0,0,255,226,90,11,72,45,248,237,135,246, +30,126,105,33,167,228,146,18,126,73,248,0,0,16,160,66,135,219,31,254,51,176,174,194,159,158,108,93,251,87,227,123, +15,254,3,248,0,0,0,161,250,128,219,27,126,111,177,254,199,255,135,108,61,248,183,230,219,19,126,25,128,0,0,25, +0,110,3,255,31,252,115,0,255,195,16,15,254,3,1,255,224,252,14,220,99,24,0,0,3,0,255,195,255,140,6,63, +248,146,2,255,143,48,63,249,179,6,255,19,254,79,248,0,0,32,129,134,135,218,28,254,83,32,95,231,223,132,72,57, +248,229,130,210,24,126,65,0,0,0,4,64,83,193,79,21,62,87,177,95,197,95,149,44,84,249,83,199,235,31,190,0, +248,0,0,3,1,255,231,255,140,104,41,225,239,231,114,13,254,125,33,231,225,146,12,126,97,248,0,0,0,129,230,132, +154,26,254,127,33,63,230,255,158,72,73,249,61,135,242,16,126,1,0,0,0,16,160,242,195,219,25,126,79,177,255,224, +95,129,108,125,248,22,192,91,31,127,5,128,0,0,16,160,242,195,219,25,126,123,176,110,195,223,153,236,125,249,151,230, +91,31,126,125,248,0,0,0,65,251,68,45,30,190,91,145,255,196,47,159,164,118,249,123,229,169,16,190,70,248,0,0, +32,64,233,70,181,159,62,122,211,255,231,183,158,212,127,121,239,71,189,31,159,96,64,0,0,127,248,12,0,48,31,254, +99,25,239,102,247,152,198,123,217,189,230,49,152,220,0,0,0,0,255,199,255,144,194,91,104,127,192,48,7,252,127,248, +96,1,255,0,8,3,224,0,0,0,0,255,199,255,159,254,95,233,12,35,255,0,0,63,240,0,193,255,0,12,63,240, +0,0,0,0,255,199,255,152,198,95,232,109,128,48,31,254,127,248,35,0,120,3,240,120,120,0,0,63,240,255,199,255, +150,218,91,104,97,131,255,152,64,111,241,191,198,49,17,132,92,240,0,0,0,0,255,199,255,144,194,91,232,243,192,112, +15,188,99,56,255,192,6,3,224,1,192,0,0,0,0,255,199,255,159,254,95,233,12,35,255,0,192,63,240,204,195,255, +12,204,63,240,0,0,0,0,255,199,255,144,194,91,104,127,193,129,15,252,127,145,70,193,254,4,2,31,248,0,0,255, +199,255,152,198,95,232,109,128,0,15,252,51,48,255,195,255,12,195,3,248,0,0,3,0,255,199,255,151,250,91,104,32, +1,255,31,56,63,249,136,3,255,3,12,56,224,0,0,0,0,255,199,255,152,198,95,232,111,128,0,31,254,3,0,255, +194,73,9,36,36,176,0,0,63,240,12,7,255,150,250,91,104,12,7,255,131,48,15,129,243,224,134,6,24,48,96,0, +0,63,240,255,199,255,150,218,91,104,97,129,182,15,248,48,48,255,195,255,12,12,48,112,0,0,0,0,255,199,255,144, +194,67,8,127,135,191,6,48,123,248,163,3,255,142,0,111,248,0,0,0,0,255,199,255,144,194,91,104,127,131,255,139, +252,47,240,255,230,153,27,124,95,24,0,0,0,0,255,199,255,144,194,91,104,127,130,12,5,254,96,192,159,225,109,141, +182,96,192,0,0,0,0,255,199,255,150,218,27,96,96,3,255,159,252,19,49,255,227,51,15,254,0,224,0,0,63,240, +255,199,255,144,194,67,8,111,129,144,15,254,113,129,255,129,255,4,96,31,248,0,0,0,0,255,199,255,150,218,27,96, +12,3,255,3,48,127,249,255,225,142,7,240,127,240,0,0,0,0,255,199,255,144,194,91,232,127,128,72,31,62,4,129, +243,224,76,31,62,4,128,0,0,63,240,255,199,255,150,218,91,104,105,131,223,12,12,60,240,255,192,220,6,34,112,248, +0,0,0,0,255,199,255,144,194,91,232,127,129,4,31,126,125,248,227,199,223,148,218,16,96,0,0,0,0,255,199,255, +144,194,91,232,127,129,16,31,126,125,248,230,103,223,150,102,25,248,0,0,0,0,255,199,255,150,218,91,104,109,131,255, +25,134,126,241,247,230,11,31,188,97,248,0,0,0,0,255,199,255,150,218,91,104,109,195,127,4,164,103,240,3,1,255, +136,48,71,248,0,0,3,0,255,199,255,151,250,31,240,143,195,63,0,252,115,240,207,225,108,142,234,51,248,0,0,0, +0,255,199,255,151,250,27,96,144,7,236,15,62,127,145,249,199,230,31,188,103,152,0,0,0,0,255,199,255,150,218,91, +104,111,131,207,25,236,60,224,111,231,223,158,100,125,240,0,0,0,0,255,199,255,150,218,91,104,152,7,239,143,38,60, +249,234,103,239,159,230,25,56,0,0,0,0,255,199,255,150,218,91,104,109,131,207,153,126,126,241,199,231,255,157,152,60, +96,0,0,0,0,255,199,255,151,250,27,96,108,7,31,151,254,121,120,119,230,223,141,24,95,248,0,0,3,0,255,224, +48,15,252,3,1,255,225,254,7,248,31,224,64,129,254,4,8,16,224,0,0,16,1,255,225,152,159,122,25,233,255,167, +222,153,250,126,97,153,135,238,217,235,111,56,0,0,32,64,207,227,6,31,254,0,97,47,229,159,30,70,49,248,100,103, +223,144,70,1,56,0,0,16,129,243,129,159,31,200,25,249,249,103,223,153,62,124,89,151,231,196,25,16,109,192,0,0, +16,65,241,129,159,159,66,25,9,247,231,194,27,104,125,185,150,135,222,17,120,78,124,0,0,4,128,18,7,207,159,62, +4,129,243,231,207,129,32,12,193,243,224,72,1,32,4,128,0,0,19,0,255,199,48,31,254,63,240,192,195,255,3,48, +124,249,243,224,72,31,62,4,128,0,0,1,1,255,230,66,31,254,110,113,255,231,74,24,144,126,249,123,228,44,23,190, +66,192,0,0,127,248,12,0,32,31,254,108,217,190,102,249,155,38,111,153,178,103,255,159,254,0,0,32,1,255,230,19, +31,254,99,193,249,231,255,152,192,127,249,239,101,189,150,150,95,248,0,0,8,65,255,231,255,131,240,15,192,255,195,51, +12,204,63,240,12,7,255,128,192,3,0,0,0,36,17,247,231,216,15,96,57,129,247,229,91,21,108,125,176,100,199,243, +4,204,18,48,0,0,8,161,246,135,210,30,74,51,57,252,199,214,31,120,121,32,196,135,210,68,75,17,56,0,0,44, +1,247,231,214,143,90,57,105,245,165,95,149,66,125,0,100,7,240,132,98,17,248,0,0,36,1,247,231,217,143,102,57, +153,247,229,121,151,230,125,248,103,231,224,4,0,19,248,0,0,40,65,241,135,223,142,126,57,105,245,37,84,149,254,124, +96,225,135,205,4,102,19,8,0,0,36,33,249,135,255,143,24,56,97,255,229,226,23,152,125,248,97,135,230,4,126,17, +248,0,0,40,65,241,135,255,159,194,56,73,243,5,127,149,36,125,144,199,199,199,4,62,19,136,0,0,72,33,232,135, +162,30,62,48,249,252,135,179,30,220,123,88,207,39,184,141,224,52,248,0,0,104,17,247,199,196,30,48,59,253,242,69, +81,151,230,124,144,194,71,217,4,68,19,16,0,0,40,129,247,135,223,30,200,59,249,245,37,212,151,126,124,224,195,135, +202,4,107,19,56,0,0,44,97,253,167,223,143,60,57,249,247,229,89,149,126,125,8,103,231,240,132,66,17,56,0,0, +41,1,244,7,223,158,194,50,201,247,165,94,149,254,124,200,199,167,254,132,178,16,184,0,0,40,1,247,231,206,31,126, +56,233,246,165,126,21,16,127,248,67,135,223,4,214,18,64,0,0,73,129,246,39,255,158,162,51,233,240,37,94,149,122, +124,8,199,167,242,132,122,16,56,0,0,9,1,247,231,178,30,254,54,169,251,231,170,158,190,122,160,202,135,230,12,156, +51,152,0,0,72,145,255,231,201,30,48,59,249,246,7,223,159,198,127,48,199,231,209,4,68,17,112,0,0,72,145,255, +231,219,30,254,57,177,255,229,223,151,94,127,248,197,39,255,196,66,17,24,0,0,72,145,255,231,155,30,108,51,249,230, +5,255,159,218,121,248,197,167,223,132,90,17,120,0,0,8,224,250,194,185,159,252,42,225,159,229,214,159,254,15,192,255, +195,255,31,254,3,0,0,0,3,0,12,7,255,128,192,31,240,255,192,48,31,254,127,248,12,32,49,128,220,3,0,0, +0,16,0,71,231,198,132,26,125,105,245,161,20,159,210,52,72,83,33,201,132,102,19,112,0,0,16,64,225,7,255,140, +24,124,225,183,231,196,31,254,124,233,241,39,196,132,30,16,64,0,0,0,65,241,135,223,155,16,125,248,1,135,230,6, +126,124,73,241,231,135,22,16,71,248,0,0,16,0,199,231,209,140,126,121,25,247,227,0,31,126,55,248,214,163,218,140, +254,51,248,0,0,0,16,207,231,196,140,86,49,81,242,3,59,159,194,55,24,222,227,240,140,254,51,248,0,0,4,128, +18,3,207,159,62,4,128,243,227,207,1,32,124,249,243,224,72,31,254,127,248,3,0,255,195,255,2,24,12,225,255,224, +0,7,252,16,48,127,193,3,4,12,31,240,0,0,16,128,98,7,255,139,126,45,11,250,32,12,159,2,68,121,247,102, +81,159,6,124,112,0,0,16,0,103,231,204,155,50,40,139,254,224,19,31,126,69,249,244,102,209,159,126,125,248,0,0, +32,0,143,226,4,31,126,45,24,183,226,209,139,126,45,25,191,228,201,18,102,3,8,0,0,0,1,255,224,48,1,128, +63,240,192,195,51,12,204,51,48,204,192,108,7,28,112,24,0,0,0,1,255,243,4,4,126,17,24,69,33,20,132,82, +17,72,69,33,15,28,102,99,8,0,0,0,1,143,246,4,24,254,123,249,137,38,36,152,146,98,73,233,39,14,0,110, +6,8,0,0,0,1,247,227,6,4,126,17,248,197,175,214,132,90,17,104,69,161,15,4,102,19,8,0,0,0,0,31, +231,140,12,254,51,248,201,99,45,140,182,62,219,203,96,10,0,206,6,8,0,0,0,1,23,229,70,21,126,85,153,85, +165,86,149,90,85,105,85,165,71,17,54,71,8,0,0,0,0,95,231,12,16,254,11,24,105,103,37,144,150,10,88,107, +99,14,24,238,70,8,0,0,0,1,239,227,4,12,254,51,25,233,99,37,140,150,50,88,235,103,142,16,102,6,8,0, +0,125,248,1,128,31,159,254,125,72,165,162,150,138,82,109,73,187,4,153,128,194,0,0,32,1,255,230,6,31,254,127, +137,206,167,58,149,234,85,169,67,165,199,23,54,81,136,0,0,16,0,71,231,230,4,126,85,153,85,165,86,159,90,125, +104,69,33,230,7,102,19,8,0,0,0,0,247,231,6,24,126,125,249,244,38,150,154,90,105,105,165,36,135,18,38,73, +8,0,0,40,0,183,242,70,25,254,199,153,246,163,94,141,122,37,232,151,162,71,27,54,91,8,0,0,0,0,167,226, +198,25,126,69,153,85,163,22,140,90,45,105,149,39,199,29,54,1,8,0,0,16,0,103,225,134,31,254,1,152,244,162, +214,139,90,45,104,181,38,231,19,54,67,8,0,0,0,1,255,240,134,30,126,57,153,245,39,214,133,90,17,104,69,33, +15,4,102,115,8,0,0,16,0,127,225,230,6,62,126,153,154,166,106,159,170,102,169,131,164,6,16,38,67,8,0,0, +24,0,103,227,198,9,190,115,152,38,163,218,143,106,13,232,167,35,135,6,54,11,136,0,0,8,0,103,231,230,22,190, +88,249,250,166,106,157,42,92,233,51,165,199,28,54,99,8,0,0,0,1,255,240,198,6,126,61,249,157,160,22,159,90, +25,104,69,33,199,31,38,67,8,0,0,16,0,71,231,198,6,126,17,153,244,160,22,159,90,125,105,21,38,196,31,54, +67,136,0,0,16,0,71,231,230,22,126,85,153,86,165,222,159,250,17,232,229,34,199,25,54,67,8,0,0,16,0,111, +227,198,25,126,97,152,245,160,22,159,90,101,105,149,38,71,31,102,67,8,0,0,64,1,183,231,4,17,126,125,152,101, +225,23,159,222,61,121,245,37,110,4,102,51,8,0,0,16,0,103,231,230,12,126,37,137,247,167,158,141,250,101,233,55, +161,228,24,54,65,8,0,0,0,1,255,228,134,18,126,93,137,86,165,90,149,106,93,169,35,164,134,31,182,1,136,0, +0,8,0,39,230,230,26,62,127,249,254,161,154,158,234,95,169,119,160,134,12,54,97,136,0,0,4,1,247,225,134,31, +190,61,249,254,165,154,143,106,61,232,147,34,103,27,54,67,136,0,0,24,0,103,226,102,20,190,9,153,246,160,222,130, +122,125,233,149,38,68,31,54,103,136,0,0,64,1,255,231,4,25,254,61,152,117,231,151,134,94,127,120,229,39,206,20, +102,19,8,0,0,0,1,255,229,166,31,190,91,137,254,161,154,159,234,57,168,247,167,230,22,54,25,136,0,0,0,1, +247,231,198,31,126,125,136,6,167,254,134,122,125,201,243,199,153,150,66,71,248,0,0,0,1,255,229,162,31,190,90,249, +250,161,138,159,170,91,169,127,167,230,16,182,71,136,0,0,0,1,255,229,166,31,190,0,137,242,160,10,159,234,32,168, +251,160,102,1,54,29,136,0,0,16,1,79,245,34,31,190,0,153,250,161,138,159,170,126,169,107,165,167,22,182,95,136, +0,0,16,1,247,231,230,9,60,127,249,254,164,218,158,106,77,233,231,36,100,22,54,115,8,0,0,16,1,255,231,230, +28,190,61,249,182,163,154,159,250,103,232,247,34,69,9,54,63,136,0,0,0,1,255,227,226,9,190,62,137,254,164,106, +159,234,18,169,218,163,102,31,150,72,136,0,0,36,1,255,227,98,13,190,126,200,114,167,234,149,170,94,169,250,166,162, +16,150,70,136,0,0,24,1,255,225,134,31,62,103,153,254,167,250,153,234,127,233,255,163,198,25,54,65,136,0,0,60, +0,243,227,194,15,62,126,233,202,167,106,151,170,126,169,250,163,199,26,150,73,136,0,0,0,1,255,231,226,25,190,124, +153,250,167,202,159,42,100,169,243,167,199,23,182,49,136,0,0,16,1,255,224,6,31,190,90,137,106,167,234,143,42,102, +169,251,167,230,7,182,125,136,0,0,0,1,255,225,130,31,254,126,136,250,160,138,159,170,26,169,250,165,167,22,182,95, +136,0,0,8,0,185,135,239,143,170,124,233,99,199,120,143,252,63,240,255,193,216,31,254,1,128,0,0,36,1,255,226, +66,31,190,90,137,250,163,234,159,170,126,169,178,167,231,27,54,127,136,0,0,0,0,255,195,3,12,44,60,176,222,195, +51,8,204,39,176,147,70,205,88,7,64,24,0,0,0,1,251,228,47,155,250,90,169,106,165,174,150,166,94,137,95,230, +112,16,99,0,248,0,0,32,0,207,193,33,30,204,11,241,43,70,173,30,180,50,208,122,199,251,145,199,4,8,0,0, +0,1,251,228,111,155,190,126,249,106,101,175,150,166,91,249,91,71,120,153,98,64,248,0,0,0,33,255,228,58,155,254, +123,249,105,133,175,150,166,94,241,217,198,124,144,98,0,248,0,0,0,1,255,195,145,31,204,107,177,255,195,215,15,92, +127,113,247,197,91,149,227,50,8,0,0,16,0,87,199,241,14,76,101,177,23,195,245,31,212,109,113,183,197,187,214,195, +2,8,0,0,0,33,250,164,43,147,156,106,217,106,5,175,22,254,90,209,223,230,50,16,99,64,248,0,0,0,1,254, +0,9,128,44,0,224,3,128,15,0,54,0,192,1,0,6,192,14,0,24,3,0,12,0,236,14,220,127,248,64,129,254, +4,8,31,224,76,193,30,7,216,28,16,0,0,32,192,131,7,155,31,246,79,249,44,79,191,6,196,27,240,75,35,39, +24,246,67,8,0,0,16,192,195,2,27,27,182,127,249,204,66,255,30,196,123,240,107,35,39,24,246,67,8,0,0,0, +1,255,230,18,31,254,103,225,246,102,54,31,238,127,241,63,196,255,19,60,79,152,0,0,8,0,123,227,203,25,56,59, +249,222,1,183,31,254,31,224,97,129,255,6,248,30,48,0,0,16,64,227,134,255,180,16,123,249,173,39,164,154,254,120, +225,167,198,181,159,146,96,64,0,0,0,97,255,195,244,153,40,27,209,223,131,175,31,254,31,224,97,129,255,7,248,60, +48,0,0,3,1,255,227,31,30,252,55,241,231,199,63,135,248,127,248,127,129,254,6,124,30,112,0,0,56,97,177,227, +159,159,254,123,112,59,193,249,135,184,127,248,127,129,255,6,124,30,56,0,0,16,0,64,3,240,15,192,35,1,160,0, +128,2,0,8,0,32,0,224,7,0,24,0,0,0,32,0,135,195,211,27,76,77,49,68,195,19,12,76,49,48,204,195, +227,205,143,36,56,0,0,32,0,143,199,199,31,48,75,139,207,227,26,140,90,50,72,219,35,153,140,198,34,112,0,0, +32,64,129,7,255,223,16,74,75,9,35,36,140,146,51,248,195,227,132,140,19,32,120,0,0,33,0,134,7,159,158,192, +75,243,128,3,62,12,8,48,32,192,195,131,14,6,32,24,0,0,32,0,135,227,254,31,16,76,67,65,1,63,196,24, +16,64,81,1,196,14,254,35,248,0,0,32,16,135,199,212,31,16,76,67,79,227,63,140,24,48,224,195,131,219,14,198, +34,8,0,0,33,0,132,7,223,159,192,74,195,131,3,63,140,54,48,152,198,99,153,140,198,34,112,0,0,32,0,143, +231,176,30,128,75,251,206,99,57,12,164,50,112,201,131,230,13,126,37,24,0,0,32,128,134,7,223,159,126,79,75,201, +35,4,12,16,48,224,195,131,219,14,198,38,8,0,0,32,160,130,195,201,27,254,75,193,67,99,63,140,178,48,216,193, +195,206,142,250,34,56,0,0,33,0,132,7,255,155,208,74,67,143,227,63,140,146,50,72,201,35,167,140,16,32,64,0, +0,33,0,132,7,191,155,134,79,219,205,99,53,140,246,51,248,204,195,176,140,194,33,248,0,0,32,0,159,231,192,159, +250,72,11,4,35,60,140,146,50,72,207,35,160,140,2,32,56,0,0,32,128,130,7,218,27,76,75,27,31,227,0,140, +252,51,248,200,99,225,142,254,35,248,0,0,32,0,143,231,241,159,70,77,251,196,99,17,140,126,49,24,196,99,255,142, +6,32,24,0,0,33,0,134,7,191,158,38,72,241,135,162,51,136,4,39,248,134,131,146,12,203,38,56,0,0,32,64, +131,7,191,158,254,74,11,139,162,42,136,170,34,168,139,163,168,140,130,34,56,0,0,32,64,129,3,255,159,108,73,17, +204,99,113,204,108,48,160,195,131,142,12,238,38,24,0,0,33,16,132,71,219,27,254,73,179,134,195,27,13,254,49,176, +196,195,147,12,204,38,48,0,0,32,64,143,231,255,154,16,75,251,200,35,63,140,24,48,64,223,227,132,12,16,33,192, +0,0,32,96,159,231,246,158,88,95,251,31,226,22,136,254,39,176,140,195,151,14,254,39,152,0,0,32,64,131,135,219, +31,198,79,251,227,3,4,13,254,48,64,205,67,165,143,146,33,192,0,0,32,16,159,199,128,31,182,90,83,66,3,24, +13,254,49,48,204,131,158,12,124,39,24,0,0,32,0,143,231,161,158,254,74,27,15,227,34,12,152,51,248,205,131,166, +14,251,39,56,0,0,32,128,130,7,223,159,196,74,51,202,131,63,140,134,51,24,206,227,161,140,254,35,248,0,0,32, +64,129,135,255,159,130,75,241,204,67,63,12,252,51,0,207,227,177,140,254,35,248,0,0,32,64,129,7,255,154,124,75, +91,201,35,63,12,196,51,240,204,67,191,12,0,39,248,0,0,32,64,143,231,165,158,254,72,195,223,226,63,8,134,34, +216,139,99,173,12,108,39,24,0,0,32,64,143,231,237,159,246,94,219,155,98,127,136,48,39,248,140,67,158,12,124,103, +56,0,0,33,0,135,135,178,31,254,74,75,207,226,30,8,203,38,56,131,131,146,12,120,32,48,0,0,33,176,143,231, +155,26,124,75,27,207,227,49,140,254,48,64,207,227,142,12,108,39,24,0,0,32,0,157,231,226,155,170,75,235,159,98, +5,8,254,34,88,143,227,173,140,254,35,248,0,0,33,16,132,199,255,158,48,75,251,134,2,127,136,124,35,240,159,195, +159,12,36,35,248,0,0,33,16,143,231,219,31,124,72,195,207,227,63,140,48,51,248,195,3,191,140,48,39,248,0,0, +32,0,140,103,255,155,198,73,243,143,227,42,140,254,51,248,206,195,159,12,120,39,56,0,0,34,161,158,135,251,158,174, +95,235,129,162,126,137,172,39,176,154,67,251,13,46,101,200,0,0,34,32,142,231,251,159,170,75,251,132,195,27,12,254, +49,32,223,227,155,12,204,38,8,0,0,32,193,159,231,191,30,252,95,250,159,226,51,9,254,39,248,159,227,53,15,220, +99,152,0,0,24,96,33,7,255,128,192,63,224,255,195,3,15,252,48,48,255,195,3,15,252,63,240,0,0,33,16,134, +194,63,191,16,61,240,180,66,223,11,68,45,240,180,70,223,147,2,71,248,0,0,64,33,160,167,191,159,254,48,33,238, +164,170,158,238,75,177,227,196,255,30,55,72,152,0,0,0,96,255,128,48,31,254,127,248,63,3,179,28,206,31,224,96, +129,254,6,8,31,224,0,0,12,129,227,225,159,159,254,57,153,223,229,25,159,60,100,249,246,102,71,31,60,127,152,0, +0,24,241,250,199,249,143,60,122,241,255,229,254,7,192,127,248,127,135,255,135,248,31,224,0,0,0,65,243,133,27,159, +254,80,1,246,229,62,159,250,13,185,244,71,219,33,254,14,104,0,0,0,0,255,128,6,4,24,16,96,65,129,255,135, +254,0,25,255,96,1,128,4,0,240,0,0,0,1,255,224,217,155,102,105,153,162,70,203,31,60,4,97,241,134,79,3, +102,59,8,0,0,8,65,241,0,196,27,16,107,249,161,134,198,31,56,4,225,210,198,89,3,198,59,8,0,0,0,9, +229,32,150,154,90,73,105,37,167,150,159,90,13,104,253,174,246,130,146,58,8,0,0,0,65,229,128,150,26,94,105,249, +47,167,182,159,90,13,120,245,78,144,194,98,57,248,0,0,0,1,239,224,176,18,230,75,209,45,199,179,31,220,15,89, +255,36,248,2,254,57,248,0,0,0,1,246,64,207,26,60,107,153,164,6,153,31,36,4,240,209,134,78,3,238,26,8, +0,0,0,65,225,128,159,154,126,73,9,36,39,159,159,66,5,0,244,6,208,3,192,58,0,0,0,0,1,231,224,153, +154,70,105,249,39,231,145,159,70,5,249,246,100,209,131,102,59,252,0,0,0,65,225,0,159,154,254,75,73,45,39,191, +159,16,5,64,247,6,204,3,124,59,24,0,0,8,1,239,224,170,146,170,74,169,42,167,170,159,170,15,185,252,36,224, +130,254,58,8,0,0,0,145,230,96,145,154,254,75,25,60,103,181,159,86,13,120,228,110,145,130,68,57,48,0,0,0, +129,230,0,159,154,254,74,9,47,167,150,159,74,13,104,247,174,208,130,6,56,112,0,0,0,129,227,192,159,154,196,110, +49,47,231,129,159,2,15,248,240,110,128,130,254,57,248,0,0,0,65,225,0,132,26,254,72,65,33,7,132,31,254,4, +96,241,6,196,3,254,59,248,0,0,0,193,225,0,255,154,254,75,9,36,7,147,31,120,5,129,244,4,208,131,98,57, +248,0,0,16,1,251,226,105,15,28,63,241,134,33,254,6,24,31,248,127,231,253,159,246,0,112,0,0,16,1,251,227, +105,141,166,108,248,127,129,254,6,24,24,112,127,231,253,128,6,0,112,0,0,8,1,239,224,145,18,56,72,225,46,229, +164,159,124,5,240,241,4,255,130,16,56,64,0,0,0,65,227,0,137,18,100,73,25,47,231,128,31,126,5,249,244,36, +208,131,126,57,248,0,0,0,129,230,32,191,154,38,72,241,39,167,179,159,4,15,248,230,142,154,2,203,62,56,0,0, +0,1,247,230,89,159,62,0,96,255,129,6,6,24,31,248,0,39,253,128,6,0,112,0,0,0,17,231,192,132,18,48, +75,253,38,69,177,159,230,13,145,230,76,153,2,68,58,16,0,0,1,1,229,160,183,146,220,79,225,101,165,147,158,16, +12,193,255,228,132,2,16,56,64,0,0,8,129,231,224,159,154,228,74,241,35,135,191,159,199,5,249,244,100,209,130,126, +57,24,0,0,8,65,225,0,255,218,48,72,145,47,199,190,31,54,5,153,252,196,207,3,102,63,8,0,0,1,17,230, +64,139,26,254,73,241,34,199,139,31,254,12,177,242,196,155,2,76,58,48,0,0,0,1,255,224,128,22,238,91,249,107, +165,174,158,254,11,249,235,164,174,130,186,58,184,0,0,0,65,231,224,182,154,254,75,105,47,231,128,31,254,5,128,247, +238,193,131,6,56,112,0,0,0,65,227,0,142,26,70,79,253,35,135,128,31,82,5,89,245,196,193,2,254,59,248,0, +0,0,193,226,192,155,26,254,104,177,38,103,184,159,60,13,240,254,206,142,2,124,59,24,0,0,1,145,230,64,191,154, +102,73,241,38,71,159,31,124,5,153,255,238,201,3,102,59,8,0,0,0,65,231,224,159,154,56,73,185,44,39,191,223, +6,5,248,245,238,223,131,70,56,56,0,0,8,1,239,224,164,154,254,75,73,47,231,142,31,254,7,249,243,196,213,3, +146,56,64,0,0,8,129,230,128,154,26,254,75,33,63,231,191,159,72,5,248,245,134,210,3,126,57,0,0,0,0,193, +230,128,191,18,242,75,249,111,231,177,159,178,9,161,227,36,155,2,56,59,128,0,0,0,65,227,128,191,146,130,75,249, +104,5,191,158,222,11,105,239,228,246,131,90,61,88,0,0,0,65,229,197,127,148,254,75,209,239,132,112,15,248,24,96, +127,225,129,159,246,0,112,0,0,0,1,239,224,181,18,120,72,225,127,229,172,158,254,10,89,239,228,133,2,62,59,248, +0,0,62,64,251,231,253,15,220,104,241,102,97,254,4,24,31,248,127,224,1,159,246,0,112,0,0,24,65,251,231,255, +159,228,60,96,251,198,217,143,248,24,96,127,224,1,159,244,0,240,0,0,0,129,239,224,162,146,170,75,233,125,229,133, +30,254,10,73,239,228,164,130,254,59,248,0,0,3,1,255,228,204,143,252,31,224,51,7,255,143,252,120,88,127,192,1, +31,228,0,112,0,0,0,65,235,128,191,146,130,91,249,104,5,191,158,146,14,217,249,36,255,131,18,60,216,0,0,0, +1,239,224,138,18,254,74,169,47,231,128,31,126,15,248,255,236,213,3,210,58,200,0,0,0,1,239,224,173,154,254,75, +249,47,199,190,31,244,13,152,255,238,149,2,150,58,200,0,0,0,65,239,224,189,146,190,75,233,105,167,168,158,254,8, +64,239,238,186,131,231,56,240,0,0,0,1,239,224,161,146,254,74,241,107,229,166,30,152,11,249,234,100,255,131,164,60, +144,0,0,0,1,255,224,186,150,172,90,177,127,165,139,30,248,9,217,249,196,159,2,214,56,64,0,0,0,161,238,224, +154,154,238,75,249,107,103,191,159,254,13,176,231,198,255,130,108,59,24,0,0,0,65,239,224,187,146,238,91,185,102,197, +191,158,254,13,177,255,228,187,130,124,57,200,0,0,0,0,127,129,226,6,200,127,249,255,229,254,132,8,31,224,64,129, +254,4,8,16,224,0,0,0,145,243,199,73,29,36,125,153,28,39,223,153,126,124,145,179,199,198,25,124,111,24,0,0, +0,97,241,135,79,29,36,127,153,28,39,201,27,36,124,145,178,71,217,25,100,109,16,0,0,0,17,247,199,94,29,72, +125,33,31,231,223,155,72,125,33,180,199,215,89,127,111,184,0,0,0,97,241,135,70,29,126,127,249,9,135,230,25,126, +125,249,150,39,216,153,126,109,248,0,0,0,65,241,135,127,221,16,124,217,31,199,223,27,26,125,217,180,199,199,25,118, +111,136,0,0,0,17,247,231,80,29,96,125,253,28,7,208,27,126,125,201,183,39,220,155,254,110,200,0,0,0,129,243, +39,95,157,230,124,241,25,135,223,153,231,125,249,148,39,208,153,126,109,152,0,0,0,65,247,231,95,157,90,125,249,29, +39,223,155,56,125,161,191,231,223,155,8,108,32,0,0,0,1,247,231,84,157,126,125,73,31,231,198,25,126,125,249,147, +199,223,153,218,108,96,0,0,0,65,247,231,127,157,226,125,241,30,199,206,27,124,127,153,183,199,209,17,100,77,240,0, +0,0,65,245,103,223,31,254,124,241,29,103,196,27,48,127,249,182,71,223,27,60,123,152,0,0,0,65,247,231,122,157, +62,125,249,26,7,223,153,86,125,89,149,231,198,25,59,111,56,0,0,0,65,241,135,127,157,134,125,241,20,7,223,155, +108,125,33,191,231,201,27,100,123,8,0,0,0,1,255,231,234,159,254,125,129,31,231,232,155,250,126,169,191,167,202,155, +254,120,56,0,0,0,65,251,231,228,31,126,124,249,16,103,247,155,94,125,89,181,231,213,155,240,126,124,0,0,0,161, +247,231,254,159,254,127,233,31,231,255,155,0,125,249,180,103,223,27,44,123,248,0,0,3,0,12,7,255,135,248,16,32, +127,128,0,31,254,96,25,191,102,133,155,246,96,56,0,0,0,0,248,98,7,15,176,32,8,248,98,7,63,240,48,8, +216,98,103,31,248,64,0,0,16,249,131,236,15,140,126,192,216,103,238,24,0,127,248,50,0,136,142,34,96,248,0,0, +62,16,249,131,233,143,156,127,8,217,199,236,7,248,3,48,255,0,255,158,194,3,248,0,0,0,16,251,131,225,15,184, +127,25,217,199,172,31,252,12,49,227,131,255,12,12,63,240,0,0,62,16,251,131,201,143,156,127,8,217,199,236,2,32, +44,185,187,134,136,31,226,124,248,0,0,62,16,249,131,233,15,156,127,24,217,199,232,15,252,51,48,255,199,255,140,12, +48,240,0,0,0,16,249,131,233,143,156,127,8,217,199,252,4,48,63,249,199,135,63,15,38,48,128,0,0,0,16,249, +131,233,15,156,127,72,217,199,236,31,254,3,0,255,193,254,12,12,63,240,0,0,62,16,251,131,193,15,56,127,25,251, +134,48,31,254,95,232,0,7,255,140,220,103,16,0,0,62,16,251,131,227,31,178,118,49,251,1,182,15,252,127,248,127, +135,141,134,228,15,224,0,0,62,16,251,131,227,15,178,126,57,251,7,196,6,82,125,88,229,195,206,22,108,27,24,0, +0,62,16,251,131,227,15,178,126,49,251,7,255,153,254,31,128,127,193,140,31,254,120,56,0,0,62,16,251,131,231,31, +198,126,224,255,195,255,31,254,63,240,255,193,255,30,120,30,56,0,0,62,16,251,131,227,31,242,126,113,239,129,183,27, +244,111,208,255,194,191,11,220,127,216,0,0,34,64,166,98,125,138,238,38,216,165,99,255,143,252,48,112,255,131,128,140, +6,31,240,36,1,255,227,123,31,190,39,177,255,228,130,159,218,61,16,253,131,233,136,140,126,192,0,0,0,1,255,224, +0,7,248,16,32,127,131,255,31,254,108,217,255,230,49,152,198,99,56,0,0,48,49,222,231,255,31,254,55,57,255,225, +254,12,12,31,225,255,230,205,155,246,99,56,0,0,2,0,255,131,255,12,204,63,240,140,195,255,15,248,7,96,53,65, +159,140,66,97,248,0,0,24,17,250,71,231,22,132,126,145,105,71,225,134,190,26,16,252,66,249,219,2,71,248,0,0, +0,65,227,7,191,128,150,3,249,249,98,63,138,52,104,209,243,228,95,128,210,6,120,0,0,16,64,225,103,255,149,254, +126,193,91,231,233,134,124,27,48,245,226,252,154,3,79,248,0,0,32,64,131,7,255,159,182,79,249,59,103,255,146,124, +73,209,231,231,183,145,146,12,120,0,0,16,32,224,135,255,149,152,126,97,95,231,231,4,60,29,168,252,162,226,26,3, +79,248,0,0,0,1,255,230,18,31,254,103,193,176,199,177,154,108,111,241,63,196,58,17,190,88,248,0,0,16,32,102, +167,235,149,190,127,249,95,231,255,142,126,63,248,254,98,251,146,3,79,248,0,0,16,0,199,231,199,21,126,125,105,85, +167,223,141,126,53,184,252,35,241,150,3,79,248,0,0,16,0,199,231,208,149,90,125,249,85,39,223,141,82,61,120,252, +35,241,150,2,79,248,0,0,4,65,241,129,159,159,210,61,249,221,33,31,159,52,124,241,179,227,155,143,74,98,56,0, +0,16,64,199,231,211,149,90,125,249,87,231,198,141,126,53,104,255,231,241,150,67,79,248,0,0,1,0,255,230,66,31, +254,111,113,214,166,255,26,100,111,241,191,196,58,17,190,92,248,0,0,12,0,63,1,156,12,96,127,240,204,67,255,15, +252,51,16,255,192,0,31,254,127,248,32,64,241,70,196,154,16,127,253,81,7,198,31,56,84,225,242,128,26,223,203,67, +56,0,0,8,0,126,3,152,28,236,63,240,204,193,254,31,254,31,224,64,129,254,4,8,31,224,0,0,48,64,241,130, +223,154,254,124,193,83,7,207,159,34,84,153,246,96,25,159,198,67,112,0,0,16,128,242,66,201,26,254,125,129,82,7, +223,159,118,85,209,245,192,119,31,158,0,200,0,0,32,0,239,227,198,30,90,125,105,87,199,199,21,126,87,249,241,128, +6,31,24,0,96,0,0,32,64,241,134,198,26,30,124,97,81,135,223,159,126,85,9,244,32,16,159,254,65,152,0,0, +32,64,241,230,199,154,24,125,249,84,39,208,157,126,85,25,244,0,48,31,192,66,0,0,0,32,144,242,98,217,154,126, +127,153,92,103,221,159,94,85,57,244,96,17,159,70,1,48,0,0,32,128,246,2,223,154,194,127,233,84,167,210,157,122, +85,249,244,192,16,31,66,65,248,34,16,204,199,255,159,254,76,136,127,7,255,12,204,31,240,76,193,255,0,0,127,248, +32,64,243,2,201,26,100,125,25,95,231,192,29,126,85,249,244,32,16,159,126,65,248,0,0,32,96,241,130,223,154,24, +124,97,95,231,194,31,24,85,249,241,128,6,31,126,65,248,32,96,241,134,223,154,126,124,97,87,231,223,159,0,85,249, +244,96,17,159,126,65,248,0,0,32,128,227,6,191,158,96,125,145,95,231,249,159,254,85,137,247,224,25,159,98,65,184, +0,0,32,0,239,230,140,30,48,127,249,90,167,234,159,170,86,169,250,160,42,159,170,66,24,0,0,32,64,225,134,191, +158,100,124,241,83,135,255,159,100,84,145,242,64,25,31,68,67,16,0,0,32,64,225,6,191,158,36,125,145,84,39,249, +159,44,84,225,241,128,14,31,110,99,24,0,0,32,0,242,66,203,27,126,124,97,81,135,223,159,24,86,97,255,240,6, +31,152,96,96,0,0,19,32,109,131,255,3,128,127,248,249,198,249,143,248,51,32,127,129,254,0,0,127,248,32,0,231, +230,128,150,126,124,25,87,231,193,21,12,87,249,244,64,9,31,4,64,112,32,0,255,230,196,30,126,127,105,95,231,246, +157,254,85,97,247,0,12,31,120,67,56,0,0,32,0,239,231,128,22,238,127,249,123,167,254,159,254,94,249,251,160,46, +159,186,66,184,0,0,32,33,201,135,47,148,16,120,241,59,231,171,30,140,75,249,232,192,51,31,232,68,248,0,0,32, +0,235,231,172,150,190,122,177,106,199,175,158,48,88,97,239,224,4,31,24,67,248,32,0,247,230,214,154,126,125,249,85, +167,223,157,24,84,97,247,224,6,31,24,67,248,32,0,238,103,185,150,190,126,249,126,103,255,159,174,94,185,254,96,57, +159,134,0,48,0,0,32,64,227,198,159,158,236,124,97,87,199,241,223,24,87,249,241,128,23,159,219,64,192,0,0,32, +16,247,198,204,26,36,125,225,87,71,201,157,126,84,97,247,224,22,159,218,64,192,0,0,32,128,74,70,105,133,46,48, +225,188,0,200,15,240,127,240,255,195,51,7,248,127,248,32,64,225,134,191,158,130,125,249,83,199,192,31,254,84,177,242, +192,27,31,79,66,24,0,0,32,0,239,231,174,150,250,123,233,107,167,190,158,138,91,169,234,160,59,159,184,64,32,0, +0,32,64,239,230,134,30,126,124,97,95,231,223,31,70,85,249,244,96,31,159,70,65,56,0,0,32,65,231,199,159,22, +16,127,249,114,71,249,159,60,93,241,254,192,14,31,124,67,24,0,0,32,0,255,167,175,214,187,123,233,107,167,191,158, +246,90,217,235,96,61,159,190,64,232,0,0,32,160,226,194,219,158,110,124,177,86,231,219,159,44,87,185,254,224,11,31, +44,64,176,0,0,32,0,247,230,209,154,126,125,25,87,231,210,29,74,85,249,244,192,18,31,123,67,184,0,0,32,0, +231,230,145,158,126,125,25,87,231,192,31,126,85,9,247,224,16,159,254,65,248,0,0,32,0,239,230,164,158,146,127,249, +89,39,228,159,186,86,169,251,160,32,159,254,67,24,0,0,32,128,230,226,145,158,66,125,185,84,39,209,157,126,84,161, +242,128,26,31,75,67,56,0,0,32,64,227,135,139,30,102,126,73,87,199,223,31,12,84,193,255,224,57,159,166,0,240, +32,0,239,230,164,150,250,126,73,95,167,240,159,186,86,169,250,160,46,159,162,70,56,0,0,32,64,225,134,191,158,0, +125,249,84,103,209,159,126,84,97,245,224,54,159,146,64,192,0,0,32,0,239,199,133,22,244,124,145,95,71,239,31,188, +87,241,242,64,11,95,255,66,40,0,0,33,8,229,102,173,30,180,125,89,85,167,223,159,254,87,73,255,224,52,159,254, +67,248,0,0,32,65,231,231,159,150,116,127,249,84,71,223,159,70,85,89,245,96,20,31,44,67,8,0,0,33,80,229, +71,191,158,84,125,113,84,7,223,159,16,87,253,243,128,31,31,214,66,72,0,0,32,0,239,231,180,158,254,127,121,125, +231,223,159,16,95,233,254,160,41,159,166,64,240,32,0,239,230,174,158,254,124,1,87,231,192,31,254,85,129,247,224,1, +159,4,64,240,0,0,32,128,254,199,147,22,94,127,249,127,231,183,158,236,95,177,252,192,23,158,82,65,72,0,0,32, +128,231,230,191,158,254,127,25,87,231,209,151,126,85,249,254,96,47,31,60,67,152,0,0,32,64,243,134,223,154,102,125, +249,87,231,223,157,126,85,249,247,192,31,159,24,67,248,32,65,229,135,191,148,130,123,249,108,7,191,158,222,91,105,255, +224,54,159,218,69,88,0,0,32,16,239,230,157,30,60,124,225,95,231,198,31,126,85,73,247,224,5,31,30,67,248,0, +0,24,65,243,231,255,159,236,60,96,151,196,217,143,240,127,240,255,195,51,7,248,127,248,32,0,231,162,143,30,254,124, +209,95,199,239,159,0,85,249,244,96,31,159,70,65,248,0,0,32,0,231,231,145,158,126,125,249,87,199,255,159,186,86, +233,246,96,63,159,186,65,152,0,0,32,0,239,230,234,158,254,125,249,85,71,213,151,210,84,65,247,192,53,159,146,64, +64,0,0,32,16,239,230,132,158,86,125,17,87,199,255,159,144,87,249,241,32,52,159,254,65,248,0,0,34,128,222,199, +123,20,254,121,57,190,167,218,159,234,107,169,236,160,126,158,90,1,88,0,0,32,0,239,230,143,30,254,127,169,95,231, +192,23,126,85,249,255,224,21,31,210,66,192,0,0,32,0,239,230,159,158,254,127,249,81,7,223,159,0,85,249,240,96, +31,159,6,65,248,0,0,24,64,243,231,239,150,252,126,97,251,228,248,135,112,127,240,255,195,51,0,0,127,248,32,1, +231,231,159,150,70,125,241,95,231,234,159,254,85,241,247,224,15,31,60,67,184,0,0,32,65,251,231,253,155,252,126,97, +251,224,200,135,240,127,240,255,195,51,7,248,127,248,32,64,239,231,191,158,190,127,121,127,231,239,159,158,95,249,255,224, +63,159,250,69,56,0,0,32,1,223,231,100,21,212,127,249,191,231,255,159,252,111,209,255,64,73,159,106,69,40,0,0, +33,16,230,199,191,158,124,125,241,127,231,213,159,94,95,249,247,224,49,159,198,67,248,0,0,32,65,229,71,151,20,254, +121,241,109,103,164,30,254,90,153,255,224,23,158,198,66,24,0,0,33,16,226,199,191,150,56,127,249,94,231,255,159,198, +87,249,255,224,27,31,44,64,112,0,0,32,160,231,230,190,158,254,127,233,87,231,255,159,0,85,249,244,96,31,31,44, +67,252,2,0,127,131,254,13,8,51,32,195,131,0,15,254,0,9,255,103,253,128,6,0,112,0,0,32,64,135,194,31, +158,86,41,112,164,194,146,10,126,44,25,191,164,158,144,6,0,112,0,64,7,199,255,3,228,75,81,172,195,178,6,254, +56,8,191,166,62,144,2,0,56,0,0,2,96,15,231,252,0,186,31,248,127,129,98,4,88,31,248,0,103,253,128,6, +0,112,0,0,0,65,239,199,191,18,164,74,81,40,196,162,18,254,120,9,239,164,62,128,2,0,56,0,0,0,65,251, +228,31,153,114,117,169,118,101,155,22,126,92,9,223,166,0,159,130,126,56,0,0,0,65,251,224,223,155,114,109,185,246, +231,251,7,126,60,8,183,166,222,147,2,56,56,0,0,0,65,183,199,159,153,118,101,80,244,193,16,4,126,124,8,103, +161,30,132,2,16,56,0,0,16,64,67,199,255,159,246,83,184,70,193,154,6,126,56,8,167,230,255,147,2,64,56,0, +0,16,64,71,193,159,159,214,17,80,68,195,208,31,126,68,9,23,167,222,159,6,64,112,16,64,195,199,255,136,118,41, +185,166,199,248,22,126,44,9,187,164,174,150,6,56,56,0,0,8,32,123,193,239,134,50,126,185,154,102,105,31,190,102, +9,135,164,0,144,2,64,56,0,0,0,65,251,197,255,149,242,127,169,126,101,121,31,254,94,8,71,161,0,132,2,16, +56,0,0,1,0,255,195,51,31,254,15,193,233,231,255,133,136,17,96,127,224,0,159,246,0,120,0,0,0,64,251,198, +143,146,54,72,185,250,231,232,19,62,76,9,19,165,222,159,130,72,56,0,0,32,64,131,195,255,153,244,99,177,254,198, +250,27,254,126,25,255,160,127,129,6,28,112,0,0,16,144,255,198,123,7,98,58,249,255,129,254,5,136,19,96,127,224, +0,159,246,0,112,0,0,16,64,241,135,223,157,254,125,9,182,6,153,159,248,7,128,254,7,120,193,98,28,248,0,0, +16,64,211,71,158,15,60,113,193,255,225,98,15,248,55,96,255,224,1,159,242,0,120,0,0,16,129,255,193,201,31,100, +17,220,216,97,254,5,136,19,96,127,224,1,159,246,0,112,0,0,0,97,251,225,143,159,178,126,185,106,197,168,22,190, +90,9,107,165,160,150,130,70,56,0,0,4,65,243,193,31,132,118,255,184,102,97,27,31,126,124,9,31,164,126,159,2, +96,56,0,0,20,32,209,194,79,155,186,110,187,178,226,233,11,190,60,8,211,162,64,137,2,36,56,0,0,16,64,99, +227,223,153,242,97,184,246,224,26,31,126,100,9,151,166,94,159,2,96,56,0,0,3,1,255,224,204,13,44,100,152,24, +1,254,5,136,18,64,127,224,0,159,246,0,112,0,0,0,65,131,195,255,129,118,69,185,150,194,88,1,126,46,8,247, +166,30,144,2,64,56,0,0,0,32,99,199,255,134,50,126,185,10,99,201,6,62,30,9,247,161,128,134,2,48,56,0, +0,0,33,253,224,15,157,250,95,249,119,101,221,31,254,127,9,119,165,208,149,66,119,56,0,0,0,65,243,198,95,159, +116,1,177,254,196,122,31,254,70,25,255,166,127,145,134,76,112,0,0,8,65,163,199,255,158,114,73,185,254,199,248,0, +126,126,9,159,166,96,159,130,102,56,0,0,0,33,251,226,175,138,186,127,184,178,98,232,15,190,230,8,183,226,208,143, +194,98,56,0,0,0,64,147,198,127,146,114,25,184,246,198,120,31,254,38,8,159,162,96,143,130,36,56,0,0,0,33, +185,194,47,146,186,94,185,122,101,169,23,190,126,9,47,228,176,146,130,70,56,0,0,36,64,147,199,207,159,182,26,185, +250,197,138,31,190,126,8,203,167,224,151,2,16,56,0,0,4,33,219,192,79,159,254,4,184,82,229,75,23,62,84,9, +87,231,192,188,194,3,56,0,0,36,32,179,199,239,139,54,60,185,254,192,10,31,190,102,9,255,166,96,159,130,126,56, +0,0,32,32,179,199,239,143,50,44,185,250,103,233,21,190,126,9,127,165,224,159,130,66,56,0,0,16,64,99,231,239, +137,50,122,169,250,101,169,31,190,122,9,251,225,143,135,130,24,56,0,0,16,96,227,199,255,151,246,127,185,110,199,248, +12,126,108,9,251,167,206,131,2,12,48,0,0,22,1,221,197,127,149,250,119,185,94,101,121,29,254,95,9,111,165,190, +150,194,58,56,0,0,16,65,251,199,255,159,118,103,185,254,192,90,31,126,24,9,255,165,128,132,2,48,56,0,0,33, +32,157,226,87,159,90,55,88,149,103,85,29,222,87,9,119,231,208,146,66,11,56,0,0,0,97,251,229,175,159,186,0, +185,250,224,8,31,190,32,8,255,160,96,129,2,28,56,0,0,0,65,243,199,95,159,114,127,169,30,199,248,9,126,60, +8,151,163,192,137,2,44,56,0,0,0,32,145,195,79,159,250,36,184,146,229,248,31,190,34,8,219,229,80,191,194,1, +56,0,0,0,33,251,228,175,159,186,126,185,250,103,233,31,190,114,9,251,165,32,151,130,210,56,0,0,62,64,243,231, +253,143,220,106,241,106,33,254,5,136,19,96,127,224,0,159,246,0,112,0,0,6,97,243,229,47,151,186,36,184,242,103, +201,22,62,126,9,111,165,160,159,130,118,56,0,0,36,32,145,231,255,143,58,126,184,250,103,249,15,190,126,8,243,167, +224,151,2,28,56,0,0,16,64,99,199,239,156,182,40,185,250,198,136,31,190,40,8,251,162,206,143,130,62,56,0,0, +0,33,253,231,255,159,250,127,217,217,101,117,7,62,127,8,203,163,110,135,2,115,56,0,0,8,32,177,199,255,144,186, +122,185,254,101,169,22,190,94,9,3,165,254,155,66,96,56,0,0,0,33,221,199,127,141,234,127,184,98,99,233,18,254, +52,8,115,167,96,135,2,112,56,0,0,8,97,251,231,239,159,186,102,185,254,103,235,9,190,60,8,247,167,224,150,130, +56,56,0,0,40,64,179,199,255,155,50,126,184,178,227,232,11,62,62,8,139,165,174,149,194,64,56,0,0,24,81,249, +227,239,143,152,44,233,76,65,254,5,136,17,96,127,224,0,159,246,0,112,0,0,4,32,251,227,207,159,186,58,185,34, +103,233,31,190,118,9,255,229,96,151,130,66,56,0,0,60,65,159,199,199,7,246,120,241,251,193,254,5,136,19,96,127, +224,1,159,246,0,112,0,0,1,0,255,226,86,11,252,63,240,167,198,159,155,196,111,241,167,196,255,151,250,64,56,0, +0,16,144,239,247,219,31,88,95,97,127,229,31,159,88,5,248,127,239,91,1,60,27,184,0,0,36,33,251,226,79,159, +186,90,185,250,227,235,31,190,126,9,179,167,238,155,2,126,56,0,0,16,144,114,65,223,132,24,125,249,49,135,223,149, +126,84,249,247,230,114,31,12,69,248,0,0,1,0,255,227,255,137,48,63,248,147,35,255,138,48,104,217,191,196,140,18, +50,94,120,0,0,1,0,255,230,204,31,252,127,241,227,70,255,26,50,124,121,159,4,68,19,18,216,120,0,0,1,0, +255,230,204,31,254,127,249,187,198,142,31,254,111,225,54,5,255,147,252,113,24,0,0,1,0,255,226,76,15,254,63,248, +255,70,255,31,254,97,1,255,196,255,16,96,127,248,0,0,1,0,255,226,204,15,254,63,248,163,198,238,31,254,105,161, +183,133,255,147,124,89,152,0,0,16,145,250,103,255,159,54,126,249,107,103,239,157,62,116,217,255,231,77,31,166,41,136, +0,0,16,97,255,227,207,23,218,63,249,255,231,255,25,54,127,249,226,68,255,22,34,94,248,0,0,1,1,255,231,255, +31,254,127,241,251,135,231,159,196,127,249,124,71,245,19,196,83,112,0,0,16,33,242,167,239,158,126,126,249,108,167,240, +155,126,125,121,255,166,203,223,98,233,8,0,0,3,1,255,224,48,15,252,3,1,255,224,224,3,248,63,225,179,0,120, +7,248,120,120,0,0,16,129,246,37,95,151,194,125,232,247,167,95,143,122,124,233,231,225,172,143,50,64,48,0,0,16, +97,249,129,143,159,62,24,97,249,131,31,143,24,100,97,243,193,137,15,102,99,8,0,0,1,0,6,7,255,153,8,100, +33,255,230,231,27,156,111,121,242,167,90,209,8,68,32,0,0,1,0,255,230,66,27,190,110,249,187,199,90,153,72,102, +65,191,4,243,19,252,223,152,0,0,1,0,255,230,66,27,156,110,249,185,199,218,153,8,98,65,179,4,179,19,252,79, +152,0,0,1,0,255,230,66,31,254,110,113,183,231,74,153,248,107,129,255,132,127,150,194,193,248,0,0,8,64,255,195, +255,3,48,127,248,12,3,255,12,204,63,240,204,195,255,7,24,112,24,0,0,18,32,237,135,255,147,50,63,241,255,231, +255,143,252,51,48,255,195,255,2,56,112,56,0,0,0,96,255,128,48,31,254,15,225,236,228,120,6,56,115,56,109,128, +252,30,220,7,0,0,0,12,129,227,39,223,159,218,60,201,230,101,123,7,56,115,56,45,128,252,14,220,7,16,0,0, +4,97,241,135,230,31,159,62,97,97,131,198,27,254,91,136,246,39,248,150,254,17,248,0,0,0,0,255,194,183,11,252, +63,176,255,192,48,15,252,3,1,255,226,1,9,38,100,136,0,0,0,97,241,135,206,31,36,87,217,253,161,130,31,126, +28,17,240,196,194,31,136,200,96,0,0,0,33,249,198,231,159,152,91,249,249,129,134,31,152,30,97,251,68,169,22,226, +81,8,0,0,25,96,198,231,127,148,58,16,120,239,195,191,15,252,63,240,12,7,255,137,36,100,152,0,0,0,33,248, +167,114,159,202,87,41,247,225,134,31,74,29,41,244,164,210,150,254,80,8,0,0,0,33,246,135,210,31,94,87,249,254, +163,58,159,74,61,169,255,164,126,155,18,96,88,0,0,0,97,249,135,102,31,158,90,97,249,135,198,31,254,63,137,246, +36,248,150,254,81,248,0,0,0,65,243,231,221,159,244,84,97,243,129,150,31,62,29,137,245,100,199,27,56,201,128,0, +0,0,33,248,135,127,159,190,90,33,251,225,143,159,128,30,249,250,100,169,150,190,80,248,0,0,0,65,243,71,217,159, +126,84,145,246,97,180,159,62,29,153,255,68,70,27,60,195,152,0,0,0,65,249,135,127,159,128,94,249,250,33,136,159, +62,30,33,250,228,218,150,202,208,224,0,0,28,129,231,231,255,143,18,92,184,255,195,183,15,252,31,240,255,199,255,137, +108,100,152,0,0,0,65,247,199,79,31,26,87,249,242,225,134,31,104,29,249,247,228,207,22,102,83,8,0,0,0,65, +243,199,223,31,122,87,249,247,195,25,159,146,57,177,243,164,89,155,24,193,128,0,0,0,97,249,133,127,159,164,90,145, +255,241,128,31,254,25,137,255,228,185,150,254,81,248,0,0,4,144,210,199,255,159,254,27,96,109,195,255,8,196,47,208, +173,67,181,8,196,35,112,0,0,8,65,233,103,196,63,254,88,192,243,39,239,150,178,122,241,254,199,115,20,158,86,200, +0,0,8,49,232,167,159,255,152,90,249,215,167,255,151,254,123,169,255,231,122,148,234,87,184,0,0,0,0,255,131,2, +15,248,3,0,255,198,51,31,252,99,49,255,198,48,0,195,1,248,0,0,127,135,255,131,34,120,248,255,131,2,7,248, +63,240,255,194,49,15,254,1,248,60,241,255,227,255,15,252,63,240,255,195,254,15,248,63,224,255,195,255,15,254,1,248, +0,0,191,70,253,154,54,111,217,191,102,9,159,62,4,129,243,226,73,153,38,68,152,0,0,0,1,255,129,135,159,246, +76,208,191,66,253,11,244,32,144,243,199,207,141,38,100,136,0,0,16,97,249,135,223,159,126,124,97,247,230,127,153,166, +124,144,145,194,198,31,254,97,152,0,0,36,144,119,7,223,7,38,120,248,97,129,159,159,152,125,249,154,99,207,15,188, +127,152,0,0,24,97,255,231,230,31,190,62,240,255,231,249,143,252,63,240,255,193,200,31,254,0,128,0,0,12,0,243, +194,1,15,60,32,16,255,194,2,11,252,35,48,174,194,55,14,247,59,152,0,0,0,1,179,196,73,27,102,71,25,252, +101,79,159,20,84,81,243,69,73,31,228,243,240,0,0,0,1,191,228,38,31,144,66,65,251,4,47,159,242,95,201,251, +37,236,158,254,91,216,0,0,0,97,177,132,70,31,126,69,105,245,165,86,159,126,93,105,245,165,86,151,254,123,248,0, +0,0,1,191,228,100,31,190,70,217,251,101,31,223,128,94,249,250,101,232,158,254,219,248,0,0,0,25,183,228,82,159, +46,68,65,243,197,95,31,126,85,233,247,229,71,31,188,251,152,0,0,0,1,183,228,95,159,98,69,249,243,229,95,159, +80,85,253,242,69,79,23,156,243,136,0,0,3,0,127,129,254,7,248,24,96,127,131,255,15,252,63,240,255,199,255,134, +16,112,64,0,0,24,0,251,7,236,31,252,126,240,243,71,237,31,180,126,145,254,71,249,73,103,69,24,0,0,24,1, +251,231,230,31,136,126,32,243,231,255,159,136,126,33,248,131,194,9,8,100,32,0,0,16,33,247,231,223,159,60,127,232, +240,135,239,159,166,126,249,250,103,239,139,0,77,248,0,0,3,1,255,231,255,131,48,7,128,31,7,207,146,16,8,96, +97,129,134,12,24,48,96,0,0,2,1,255,225,206,3,240,15,225,241,226,121,11,244,47,208,158,67,255,25,228,95,240, +0,0,3,0,79,193,63,4,192,127,248,140,66,49,136,198,39,152,179,98,135,143,254,63,248,0,0,8,64,161,2,228, +10,22,126,113,249,196,174,22,240,90,65,121,6,100,159,146,126,120,8,1,35,230,233,154,38,126,248,99,229,41,148,166, +90,249,250,102,105,159,182,119,248,8,97,225,135,239,30,36,127,201,253,165,98,21,254,86,25,122,198,238,31,152,118,48, +0,0,8,1,226,7,255,158,66,127,233,246,165,122,149,234,87,249,126,230,248,31,226,118,248,0,0,8,1,39,230,228, +154,18,126,200,110,229,177,20,190,90,249,122,38,104,159,190,118,248,0,0,16,129,66,197,203,20,110,125,249,247,197,91, +21,108,85,177,246,198,223,95,254,111,24,0,0,16,0,103,229,240,150,102,127,249,244,37,95,149,254,87,105,252,198,115, +31,254,119,136,0,0,16,0,103,229,228,22,124,126,209,242,69,127,213,128,87,249,254,102,120,159,254,119,248,0,0,8, +1,35,230,232,154,34,127,248,99,229,162,20,168,90,185,254,134,126,31,248,119,56,0,0,16,17,103,197,198,20,126,125, +105,247,229,70,21,126,85,249,245,230,223,159,66,101,24,0,0,16,0,103,229,208,150,126,125,1,247,229,84,21,126,85, +249,244,198,119,159,204,103,252,0,0,16,129,251,231,200,11,126,126,24,3,231,248,25,190,126,129,251,199,239,153,34,108, +248,0,0,24,128,247,199,255,143,124,63,240,255,226,207,31,126,127,249,247,231,223,159,126,127,120,0,0,4,0,17,128, +66,31,254,127,248,54,64,217,2,108,25,224,103,3,56,153,226,68,248,4,192,49,135,255,130,108,25,193,223,224,132,15, +252,12,193,255,231,255,135,56,112,24,0,0,1,0,30,3,207,27,230,63,240,192,193,255,1,24,127,248,54,64,159,15, +226,100,248,0,0,12,0,127,1,140,12,96,127,240,140,195,255,12,204,51,48,255,194,48,128,194,1,248,3,0,30,1, +207,31,254,0,0,255,195,255,0,0,63,240,146,67,255,9,36,36,176,0,0,16,0,64,1,0,4,0,16,0,64,1, +0,4,0,0,0,64,1,0,0,0,0,0,51,0,204,1,32,4,128,18,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,64,17,0,68,7,252,4,192,18,0,200,15,248,8,128,34,0,136,0,0,0,12,0,48,3,240,12,64,96,0, +192,1,224,1,192,1,128,6,7,48,15,128,12,0,16,0,48,65,161,4,200,19,32,77,33,165,227,172,129,178,4,200, +49,96,135,0,0,2,0,60,0,152,2,96,15,0,56,129,242,4,120,16,192,103,128,243,0,0,0,0,12,0,48,0, +192,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,1,128,12,0,48,0,128,2,0,24,0, +32,0,128,2,0,12,0,16,0,32,0,0,0,1,0,6,0,12,0,48,0,64,1,0,6,0,16,0,64,1,0,12, +0,32,1,0,0,0,0,0,0,12,0,48,12,204,15,192,30,0,252,6,216,3,16,12,0,48,0,0,0,0,12,0, +48,0,192,3,0,255,192,48,0,192,3,0,12,0,0,0,0,0,224,1,128,2,0,16,0,0,0,63,240,0,0,0, +0,0,0,0,0,0,16,0,224,1,0,0,0,0,0,32,1,0,8,0,64,2,0,16,0,128,4,0,32,1,0,8, +0,64,0,0,0,0,0,63,0,204,6,24,24,96,97,129,134,6,24,24,96,51,0,120,0,0,0,0,60,0,240,0, +192,3,0,12,0,48,0,192,3,0,12,1,254,0,2,0,63,1,140,0,16,0,64,3,0,24,0,192,6,0,56,1, +254,0,3,0,63,1,140,0,16,0,192,14,0,28,0,24,0,96,99,0,248,0,0,0,0,7,0,60,0,176,6,192, +51,1,140,7,248,0,192,3,0,12,0,0,0,63,0,128,2,0,15,128,63,0,6,0,24,0,96,99,0,248,0,0, +1,0,31,0,196,2,0,24,0,127,1,198,6,24,8,96,51,0,124,0,0,0,0,127,128,4,0,32,1,128,4,0, +48,0,192,3,0,8,0,32,0,3,0,63,0,132,2,16,12,64,30,0,220,6,24,24,96,115,128,252,0,0,2,0, +62,1,140,6,24,24,96,51,128,254,0,24,0,192,39,0,248,0,0,0,0,64,3,128,0,0,0,0,0,0,0,0, +0,56,0,224,0,0,0,0,0,64,3,128,0,0,0,0,0,0,0,6,0,56,0,96,1,128,12,0,0,0,0,16, +1,192,28,0,192,12,0,192,1,128,1,128,1,128,1,128,3,0,0,63,240,255,192,0,0,0,63,240,0,0,0,0, +0,32,0,224,0,224,0,192,0,192,0,192,6,0,96,6,0,96,3,0,0,0,56,1,240,4,96,1,0,12,0,96, +1,0,4,0,0,0,192,3,0,0,0,3,192,49,129,1,8,6,103,201,18,36,200,147,38,77,145,153,130,0,14,0, +15,128,0,0,0,0,12,0,120,1,96,12,128,51,0,204,7,248,24,96,65,131,3,0,0,0,127,1,134,6,24,24, +96,127,1,134,6,8,24,32,99,129,252,0,1,128,31,128,194,6,0,24,0,96,1,128,6,0,24,0,57,128,126,0, +0,0,0,127,1,142,6,24,24,32,96,193,131,6,8,24,96,103,1,248,0,0,0,63,128,128,2,0,12,0,63,0, +192,2,0,8,0,48,0,254,0,0,0,63,128,192,3,0,12,0,63,0,252,3,0,12,0,48,0,192,0,1,0,63, +129,194,6,0,48,0,195,131,30,4,8,24,32,57,128,126,0,0,0,0,64,129,2,4,8,16,32,127,129,134,4,8, +16,32,64,129,2,0,0,0,127,128,48,0,192,3,0,12,0,48,0,192,3,0,12,1,254,0,0,0,3,0,12,0, +48,0,192,3,0,12,0,48,0,192,119,0,248,0,0,0,0,97,129,140,6,96,27,0,124,1,216,6,48,24,64,97, +129,131,0,0,0,48,0,192,3,0,12,0,48,0,192,3,0,12,0,48,0,254,0,0,0,192,195,135,14,28,44,240, +243,195,75,13,236,51,48,204,195,3,0,0,0,96,129,194,7,8,22,32,76,129,18,4,104,16,224,65,129,6,0,3, +0,63,1,134,12,12,48,48,192,195,3,12,12,56,112,115,128,252,0,0,0,0,127,1,134,6,8,24,96,99,129,252, +6,0,24,0,96,1,128,0,3,0,63,1,134,12,12,48,48,192,195,3,12,12,48,96,115,128,252,0,192,1,240,1, +192,0,0,127,1,134,6,24,24,96,127,129,248,6,96,24,192,97,129,134,0,3,0,63,0,196,6,0,12,0,30,0, +30,0,24,0,96,115,128,252,0,0,0,0,127,128,48,0,192,3,0,12,0,48,0,192,3,0,12,0,48,0,0,0, +64,129,2,4,8,16,32,64,129,2,4,8,24,96,115,128,252,0,0,0,0,64,129,134,6,24,8,64,51,0,204,1, +32,7,128,30,0,48,0,0,3,12,52,48,153,230,103,153,146,98,73,15,52,60,240,225,193,134,0,0,0,97,128,204, +1,32,7,128,12,0,120,1,224,12,192,97,1,134,0,0,0,97,128,132,3,48,4,128,30,0,48,0,192,3,0,12, +0,48,0,0,0,127,128,12,0,48,1,128,12,0,32,1,128,12,0,112,1,254,0,0,60,0,128,2,0,8,0,32, +0,128,2,0,8,0,32,0,128,2,0,8,0,56,0,0,0,1,0,2,0,4,0,8,0,16,0,32,0,64,0,128, +1,0,2,0,4,0,8,0,0,240,0,64,1,0,4,0,16,0,64,1,0,4,0,16,0,64,1,0,4,0,112,0, +0,0,0,0,12,0,72,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,255,240,0, +0,24,0,48,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,128,63,0,4,0,248,14, +96,97,129,142,3,216,0,0,0,0,96,1,128,6,0,27,128,127,1,134,6,24,24,96,97,129,204,7,240,0,0,3, +192,63,0,192,6,0,24,0,48,0,230,1,240,0,0,0,0,1,128,6,0,24,7,96,63,129,134,6,24,24,96,97, +129,206,3,248,0,0,7,128,59,1,134,7,248,31,224,96,0,196,1,240,0,0,0,0,7,128,48,0,192,15,192,63, +0,48,0,192,3,0,12,0,48,0,192,7,224,51,128,140,2,48,15,128,60,0,128,3,248,24,96,97,128,252,0,0, +0,0,96,1,128,6,0,27,192,127,1,134,6,24,24,96,97,129,134,6,24,0,0,12,0,48,0,0,3,0,12,0, +48,0,192,3,0,12,0,48,0,192,0,0,6,0,24,0,0,1,128,6,0,24,0,96,1,128,6,0,24,0,96,1, +128,4,1,240,0,0,0,0,32,0,128,2,0,8,64,35,0,152,3,192,15,128,50,0,140,2,24,0,0,12,0,48, +0,192,3,0,12,0,48,0,192,3,0,12,0,48,0,120,0,0,78,113,255,230,49,152,198,99,25,140,102,49,152,198, +11,192,127,1,134,6,24,24,96,97,129,134,6,24,7,128,63,1,134,6,24,24,96,97,128,204,1,224,0,0,11,128, +127,1,134,6,24,24,96,97,129,204,7,240,24,0,96,1,128,0,0,7,64,63,129,134,6,24,24,96,97,129,206,3, +248,0,96,1,128,6,0,0,4,224,63,0,224,3,0,12,0,48,0,192,3,0,7,128,51,0,192,3,192,3,192,1, +128,134,3,240,0,0,2,0,24,1,252,3,240,6,0,24,0,96,1,128,3,0,15,128,0,0,8,64,97,129,134,6, +24,24,96,97,128,206,3,216,0,0,24,96,97,128,196,3,48,4,128,30,0,120,0,192,99,9,140,98,57,13,228,52, +176,210,193,206,6,24,8,64,51,0,120,0,192,3,0,30,0,204,6,24,24,96,97,128,196,3,48,4,128,26,0,56, +0,192,3,0,24,1,224,0,0,15,192,63,0,24,0,64,3,0,24,0,192,3,248,0,28,0,64,1,0,4,0,16, +0,64,3,0,4,0,16,0,64,1,0,4,0,24,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,224,0,128,2,0,8,0,32,0,128,3,0,8,0,32,0,128,2,0,8,0, +96,0,0,0,0,0,248,6,49,144,124,0,224,0,0,0,0,0,1,0,4,0,124,3,208,25,0,100,1,144,6,64, +15,224,31,0,16,0,64,0,0,31,0,198,3,0,12,0,62,1,248,1,0,4,0,48,1,254,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,97,129,134,3,48,4,128,30,1,254,0,192, +15,192,12,0,48,0, +}; +static const lv_font_fmt_txt_glyph_dsc_t glyphs[]={ +{0}, +{.bitmap_index=0,.adv_w=50,.box_w=3,.box_h=0,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=0,.adv_w=77,.box_w=5,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=8,.adv_w=116,.box_w=7,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=18,.adv_w=128,.box_w=8,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=29,.adv_w=128,.box_w=8,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=43,.adv_w=210,.box_w=13,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=63,.adv_w=158,.box_w=10,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=78,.adv_w=67,.box_w=4,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=84,.adv_w=80,.box_w=5,.box_h=15,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=94,.adv_w=80,.box_w=5,.box_h=15,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=104,.adv_w=108,.box_w=7,.box_h=12,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=115,.adv_w=128,.box_w=8,.box_h=9,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=124,.adv_w=67,.box_w=4,.box_h=6,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=127,.adv_w=80,.box_w=5,.box_h=5,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=131,.adv_w=67,.box_w=4,.box_h=4,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=133,.adv_w=87,.box_w=6,.box_h=15,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=145,.adv_w=128,.box_w=8,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=157,.adv_w=128,.box_w=8,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=168,.adv_w=128,.box_w=8,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=179,.adv_w=128,.box_w=8,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=191,.adv_w=128,.box_w=8,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=202,.adv_w=128,.box_w=8,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=214,.adv_w=128,.box_w=8,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=226,.adv_w=128,.box_w=8,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=237,.adv_w=128,.box_w=8,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=249,.adv_w=128,.box_w=8,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=261,.adv_w=67,.box_w=4,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=266,.adv_w=67,.box_w=4,.box_h=11,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=272,.adv_w=128,.box_w=8,.box_h=9,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=281,.adv_w=128,.box_w=8,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=289,.adv_w=128,.box_w=8,.box_h=9,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=298,.adv_w=110,.box_w=7,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=309,.adv_w=218,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=334,.adv_w=139,.box_w=9,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=347,.adv_w=150,.box_w=9,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=360,.adv_w=145,.box_w=9,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=374,.adv_w=156,.box_w=10,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=388,.adv_w=134,.box_w=8,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=399,.adv_w=127,.box_w=8,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=410,.adv_w=157,.box_w=10,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=425,.adv_w=166,.box_w=10,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=439,.adv_w=69,.box_w=4,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=445,.adv_w=123,.box_w=8,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=457,.adv_w=149,.box_w=10,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=471,.adv_w=125,.box_w=8,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=482,.adv_w=186,.box_w=12,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=499,.adv_w=164,.box_w=10,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=513,.adv_w=169,.box_w=11,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=530,.adv_w=145,.box_w=9,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=543,.adv_w=169,.box_w=11,.box_h=14,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=563,.adv_w=147,.box_w=9,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=576,.adv_w=136,.box_w=9,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=590,.adv_w=137,.box_w=9,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=603,.adv_w=164,.box_w=10,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=618,.adv_w=133,.box_w=10,.box_h=11,.ofs_x=-1,.ofs_y=0}, +{.bitmap_index=632,.adv_w=200,.box_w=13,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=650,.adv_w=134,.box_w=9,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=663,.adv_w=124,.box_w=9,.box_h=11,.ofs_x=-1,.ofs_y=0}, +{.bitmap_index=676,.adv_w=136,.box_w=9,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=689,.adv_w=80,.box_w=5,.box_h=15,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=699,.adv_w=87,.box_w=6,.box_h=15,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=711,.adv_w=80,.box_w=5,.box_h=15,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=721,.adv_w=128,.box_w=8,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=732,.adv_w=126,.box_w=8,.box_h=3,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=735,.adv_w=138,.box_w=9,.box_h=13,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=750,.adv_w=129,.box_w=8,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=759,.adv_w=141,.box_w=9,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=774,.adv_w=116,.box_w=7,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=782,.adv_w=141,.box_w=9,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=797,.adv_w=127,.box_w=8,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=806,.adv_w=78,.box_w=6,.box_h=12,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=815,.adv_w=130,.box_w=8,.box_h=12,.ofs_x=0,.ofs_y=-4}, +{.bitmap_index=827,.adv_w=139,.box_w=9,.box_h=12,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=841,.adv_w=64,.box_w=4,.box_h=12,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=847,.adv_w=65,.box_w=5,.box_h=16,.ofs_x=-1,.ofs_y=-4}, +{.bitmap_index=857,.adv_w=129,.box_w=8,.box_h=12,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=869,.adv_w=67,.box_w=4,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=876,.adv_w=211,.box_w=13,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=889,.adv_w=140,.box_w=9,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=898,.adv_w=138,.box_w=9,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=909,.adv_w=141,.box_w=9,.box_h=12,.ofs_x=0,.ofs_y=-4}, +{.bitmap_index=923,.adv_w=141,.box_w=9,.box_h=12,.ofs_x=0,.ofs_y=-4}, +{.bitmap_index=937,.adv_w=92,.box_w=6,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=943,.adv_w=108,.box_w=7,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=951,.adv_w=89,.box_w=6,.box_h=11,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=960,.adv_w=139,.box_w=9,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=971,.adv_w=122,.box_w=8,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=979,.adv_w=186,.box_w=12,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=991,.adv_w=118,.box_w=8,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=999,.adv_w=122,.box_w=8,.box_h=12,.ofs_x=0,.ofs_y=-4}, +{.bitmap_index=1011,.adv_w=110,.box_w=7,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1018,.adv_w=80,.box_w=5,.box_h=15,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=1028,.adv_w=63,.box_w=4,.box_h=16,.ofs_x=0,.ofs_y=-4}, +{.bitmap_index=1036,.adv_w=80,.box_w=5,.box_h=15,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=1046,.adv_w=128,.box_w=8,.box_h=7,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1053,.adv_w=50,.box_w=3,.box_h=0,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1053,.adv_w=77,.box_w=5,.box_h=11,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=1060,.adv_w=128,.box_w=8,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=1072,.adv_w=128,.box_w=8,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1083,.adv_w=128,.box_w=8,.box_h=9,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1092,.adv_w=128,.box_w=8,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1103,.adv_w=63,.box_w=4,.box_h=16,.ofs_x=0,.ofs_y=-4}, +{.bitmap_index=1111,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=1132,.adv_w=138,.box_w=9,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1145,.adv_w=188,.box_w=12,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=1163,.adv_w=88,.box_w=6,.box_h=12,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1172,.adv_w=112,.box_w=7,.box_h=7,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1179,.adv_w=128,.box_w=8,.box_h=6,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1185,.adv_w=0,.box_w=0,.box_h=0,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1185,.adv_w=110,.box_w=7,.box_h=12,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1196,.adv_w=138,.box_w=9,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1209,.adv_w=86,.box_w=5,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1216,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1237,.adv_w=94,.box_w=6,.box_h=13,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1247,.adv_w=94,.box_w=6,.box_h=13,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1257,.adv_w=138,.box_w=9,.box_h=13,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1272,.adv_w=144,.box_w=9,.box_h=11,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=1285,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=1306,.adv_w=224,.box_w=14,.box_h=7,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1319,.adv_w=138,.box_w=9,.box_h=5,.ofs_x=0,.ofs_y=-4}, +{.bitmap_index=1325,.adv_w=94,.box_w=6,.box_h=13,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1335,.adv_w=92,.box_w=6,.box_h=12,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1344,.adv_w=112,.box_w=7,.box_h=7,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1351,.adv_w=199,.box_w=13,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=1371,.adv_w=206,.box_w=13,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=1391,.adv_w=202,.box_w=13,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=1411,.adv_w=110,.box_w=7,.box_h=12,.ofs_x=0,.ofs_y=-4}, +{.bitmap_index=1422,.adv_w=139,.box_w=9,.box_h=14,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1438,.adv_w=139,.box_w=9,.box_h=14,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1454,.adv_w=139,.box_w=9,.box_h=14,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1470,.adv_w=139,.box_w=9,.box_h=14,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1486,.adv_w=139,.box_w=9,.box_h=13,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1501,.adv_w=139,.box_w=9,.box_h=14,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1517,.adv_w=209,.box_w=13,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1535,.adv_w=145,.box_w=9,.box_h=15,.ofs_x=0,.ofs_y=-4}, +{.bitmap_index=1552,.adv_w=134,.box_w=8,.box_h=14,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1566,.adv_w=134,.box_w=8,.box_h=14,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1580,.adv_w=134,.box_w=8,.box_h=14,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1594,.adv_w=134,.box_w=8,.box_h=13,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1607,.adv_w=69,.box_w=5,.box_h=14,.ofs_x=-1,.ofs_y=0}, +{.bitmap_index=1616,.adv_w=69,.box_w=5,.box_h=14,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1625,.adv_w=69,.box_w=6,.box_h=14,.ofs_x=-1,.ofs_y=0}, +{.bitmap_index=1636,.adv_w=69,.box_w=6,.box_h=13,.ofs_x=-1,.ofs_y=0}, +{.bitmap_index=1646,.adv_w=162,.box_w=10,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1660,.adv_w=164,.box_w=10,.box_h=14,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1678,.adv_w=169,.box_w=11,.box_h=15,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=1699,.adv_w=169,.box_w=11,.box_h=15,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=1720,.adv_w=169,.box_w=11,.box_h=15,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=1741,.adv_w=169,.box_w=11,.box_h=15,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=1762,.adv_w=169,.box_w=11,.box_h=14,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=1782,.adv_w=224,.box_w=14,.box_h=10,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1800,.adv_w=169,.box_w=11,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=1817,.adv_w=164,.box_w=10,.box_h=15,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=1836,.adv_w=164,.box_w=10,.box_h=15,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=1855,.adv_w=164,.box_w=10,.box_h=15,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=1874,.adv_w=164,.box_w=10,.box_h=14,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=1892,.adv_w=124,.box_w=9,.box_h=14,.ofs_x=-1,.ofs_y=0}, +{.bitmap_index=1908,.adv_w=150,.box_w=9,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=1921,.adv_w=150,.box_w=9,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=1936,.adv_w=129,.box_w=8,.box_h=14,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=1950,.adv_w=129,.box_w=8,.box_h=14,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=1964,.adv_w=129,.box_w=8,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=1977,.adv_w=129,.box_w=8,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=1990,.adv_w=129,.box_w=8,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=2002,.adv_w=129,.box_w=8,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=2015,.adv_w=198,.box_w=12,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=2029,.adv_w=116,.box_w=7,.box_h=12,.ofs_x=0,.ofs_y=-4}, +{.bitmap_index=2040,.adv_w=127,.box_w=8,.box_h=14,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=2054,.adv_w=127,.box_w=8,.box_h=14,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=2068,.adv_w=127,.box_w=8,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=2081,.adv_w=127,.box_w=8,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=2093,.adv_w=64,.box_w=5,.box_h=13,.ofs_x=-1,.ofs_y=0}, +{.bitmap_index=2102,.adv_w=64,.box_w=5,.box_h=13,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=2111,.adv_w=64,.box_w=6,.box_h=12,.ofs_x=-1,.ofs_y=0}, +{.bitmap_index=2120,.adv_w=64,.box_w=6,.box_h=11,.ofs_x=-1,.ofs_y=0}, +{.bitmap_index=2129,.adv_w=138,.box_w=9,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=2144,.adv_w=140,.box_w=9,.box_h=12,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=2158,.adv_w=138,.box_w=9,.box_h=14,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=2174,.adv_w=138,.box_w=9,.box_h=14,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=2190,.adv_w=138,.box_w=9,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=2205,.adv_w=138,.box_w=9,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=2220,.adv_w=138,.box_w=9,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=2234,.adv_w=224,.box_w=14,.box_h=10,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=2252,.adv_w=138,.box_w=9,.box_h=10,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=2264,.adv_w=139,.box_w=9,.box_h=14,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=2280,.adv_w=139,.box_w=9,.box_h=14,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=2296,.adv_w=139,.box_w=9,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=2311,.adv_w=139,.box_w=9,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=2325,.adv_w=122,.box_w=8,.box_h=17,.ofs_x=0,.ofs_y=-4}, +{.bitmap_index=2342,.adv_w=141,.box_w=9,.box_h=16,.ofs_x=0,.ofs_y=-4}, +{.bitmap_index=2360,.adv_w=122,.box_w=8,.box_h=15,.ofs_x=0,.ofs_y=-4}, +{.bitmap_index=2375,.adv_w=129,.box_w=8,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=2387,.adv_w=127,.box_w=8,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=2399,.adv_w=127,.box_w=8,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=2412,.adv_w=64,.box_w=6,.box_h=11,.ofs_x=-1,.ofs_y=0}, +{.bitmap_index=2421,.adv_w=138,.box_w=9,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=2435,.adv_w=139,.box_w=9,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=2449,.adv_w=129,.box_w=8,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=2462,.adv_w=64,.box_w=6,.box_h=12,.ofs_x=-1,.ofs_y=0}, +{.bitmap_index=2471,.adv_w=138,.box_w=9,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=2486,.adv_w=139,.box_w=9,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=2501,.adv_w=139,.box_w=9,.box_h=14,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=2517,.adv_w=139,.box_w=9,.box_h=15,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=2534,.adv_w=139,.box_w=9,.box_h=15,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=2551,.adv_w=139,.box_w=9,.box_h=15,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=2568,.adv_w=134,.box_w=8,.box_h=12,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=2580,.adv_w=224,.box_w=14,.box_h=10,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=2598,.adv_w=139,.box_w=9,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=2611,.adv_w=150,.box_w=9,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=2624,.adv_w=128,.box_w=8,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=2635,.adv_w=152,.box_w=10,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=2649,.adv_w=134,.box_w=8,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=2660,.adv_w=136,.box_w=9,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=2673,.adv_w=166,.box_w=10,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=2687,.adv_w=169,.box_w=11,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=2704,.adv_w=69,.box_w=4,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=2710,.adv_w=149,.box_w=10,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=2724,.adv_w=133,.box_w=10,.box_h=11,.ofs_x=-1,.ofs_y=0}, +{.bitmap_index=2738,.adv_w=186,.box_w=12,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=2755,.adv_w=164,.box_w=10,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=2769,.adv_w=137,.box_w=9,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=2782,.adv_w=169,.box_w=11,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=2799,.adv_w=164,.box_w=10,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=2813,.adv_w=145,.box_w=9,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=2826,.adv_w=136,.box_w=9,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=2839,.adv_w=137,.box_w=9,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=2852,.adv_w=124,.box_w=9,.box_h=11,.ofs_x=-1,.ofs_y=0}, +{.bitmap_index=2865,.adv_w=184,.box_w=12,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=2883,.adv_w=134,.box_w=9,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=2896,.adv_w=180,.box_w=11,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=2912,.adv_w=174,.box_w=11,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=2928,.adv_w=144,.box_w=9,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=2939,.adv_w=145,.box_w=9,.box_h=15,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=2956,.adv_w=126,.box_w=8,.box_h=11,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=2967,.adv_w=135,.box_w=8,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=2980,.adv_w=115,.box_w=7,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=2988,.adv_w=110,.box_w=7,.box_h=15,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=3002,.adv_w=138,.box_w=9,.box_h=11,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=3015,.adv_w=134,.box_w=8,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=3028,.adv_w=69,.box_w=4,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=3033,.adv_w=128,.box_w=9,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=3044,.adv_w=129,.box_w=8,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=3057,.adv_w=144,.box_w=9,.box_h=11,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=3070,.adv_w=123,.box_w=8,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=3078,.adv_w=112,.box_w=7,.box_h=15,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=3092,.adv_w=136,.box_w=9,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=3103,.adv_w=152,.box_w=10,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=3115,.adv_w=140,.box_w=9,.box_h=11,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=3128,.adv_w=140,.box_w=9,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=3139,.adv_w=118,.box_w=7,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=3147,.adv_w=130,.box_w=8,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=3156,.adv_w=176,.box_w=11,.box_h=13,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=3174,.adv_w=125,.box_w=8,.box_h=11,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=3185,.adv_w=178,.box_w=11,.box_h=13,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=3203,.adv_w=180,.box_w=11,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=3216,.adv_w=134,.box_w=8,.box_h=13,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=3229,.adv_w=139,.box_w=9,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=3242,.adv_w=148,.box_w=9,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=3255,.adv_w=150,.box_w=9,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=3268,.adv_w=128,.box_w=8,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=3279,.adv_w=163,.box_w=10,.box_h=14,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=3297,.adv_w=134,.box_w=8,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=3308,.adv_w=208,.box_w=13,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=3326,.adv_w=140,.box_w=9,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=3340,.adv_w=167,.box_w=10,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=3354,.adv_w=167,.box_w=10,.box_h=14,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=3372,.adv_w=150,.box_w=10,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=3386,.adv_w=161,.box_w=11,.box_h=12,.ofs_x=-1,.ofs_y=-1}, +{.bitmap_index=3403,.adv_w=186,.box_w=12,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=3420,.adv_w=166,.box_w=10,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=3434,.adv_w=169,.box_w=11,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=3451,.adv_w=164,.box_w=10,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=3465,.adv_w=145,.box_w=9,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=3478,.adv_w=145,.box_w=9,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=3492,.adv_w=137,.box_w=9,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=3505,.adv_w=133,.box_w=9,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=3519,.adv_w=187,.box_w=12,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=3537,.adv_w=134,.box_w=9,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=3550,.adv_w=164,.box_w=10,.box_h=14,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=3568,.adv_w=153,.box_w=10,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=3582,.adv_w=222,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=3602,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=3627,.adv_w=182,.box_w=11,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=3643,.adv_w=206,.box_w=13,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=3661,.adv_w=148,.box_w=9,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=3674,.adv_w=145,.box_w=9,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=3688,.adv_w=232,.box_w=15,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=3711,.adv_w=150,.box_w=9,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=3724,.adv_w=129,.box_w=8,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=3733,.adv_w=138,.box_w=9,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=3748,.adv_w=130,.box_w=8,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=3756,.adv_w=105,.box_w=7,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=3763,.adv_w=138,.box_w=9,.box_h=11,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=3776,.adv_w=127,.box_w=8,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=3785,.adv_w=178,.box_w=11,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=3796,.adv_w=116,.box_w=7,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=3804,.adv_w=144,.box_w=9,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=3813,.adv_w=144,.box_w=9,.box_h=12,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=3827,.adv_w=129,.box_w=8,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=3835,.adv_w=137,.box_w=9,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=3846,.adv_w=162,.box_w=10,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=3856,.adv_w=143,.box_w=9,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=3865,.adv_w=138,.box_w=9,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=3876,.adv_w=141,.box_w=9,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=3885,.adv_w=141,.box_w=9,.box_h=12,.ofs_x=0,.ofs_y=-4}, +{.bitmap_index=3899,.adv_w=116,.box_w=7,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=3907,.adv_w=118,.box_w=7,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=3914,.adv_w=122,.box_w=8,.box_h=12,.ofs_x=0,.ofs_y=-4}, +{.bitmap_index=3926,.adv_w=188,.box_w=12,.box_h=16,.ofs_x=0,.ofs_y=-4}, +{.bitmap_index=3950,.adv_w=118,.box_w=8,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=3958,.adv_w=143,.box_w=9,.box_h=11,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=3971,.adv_w=132,.box_w=8,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=3979,.adv_w=193,.box_w=12,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=3991,.adv_w=196,.box_w=13,.box_h=11,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=4009,.adv_w=152,.box_w=10,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=4019,.adv_w=175,.box_w=11,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=4030,.adv_w=126,.box_w=8,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=4038,.adv_w=116,.box_w=7,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=4046,.adv_w=189,.box_w=12,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=4060,.adv_w=132,.box_w=8,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=4068,.adv_w=127,.box_w=8,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=4080,.adv_w=112,.box_w=7,.box_h=0,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=4080,.adv_w=224,.box_w=14,.box_h=0,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=4080,.adv_w=224,.box_w=14,.box_h=6,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=4091,.adv_w=80,.box_w=5,.box_h=5,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=4095,.adv_w=121,.box_w=8,.box_h=5,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=4100,.adv_w=121,.box_w=8,.box_h=5,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=4105,.adv_w=202,.box_w=13,.box_h=5,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=4114,.adv_w=224,.box_w=14,.box_h=6,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=4125,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=4152,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=4173,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=4194,.adv_w=67,.box_w=4,.box_h=6,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=4197,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=4218,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=4239,.adv_w=116,.box_w=7,.box_h=6,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=4245,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=4266,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=4287,.adv_w=224,.box_w=14,.box_h=7,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=4300,.adv_w=224,.box_w=14,.box_h=7,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=4313,.adv_w=224,.box_w=14,.box_h=7,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=4326,.adv_w=224,.box_w=14,.box_h=7,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=4339,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=4360,.adv_w=67,.box_w=4,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=4366,.adv_w=116,.box_w=7,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=4376,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=4401,.adv_w=70,.box_w=4,.box_h=7,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=4405,.adv_w=70,.box_w=4,.box_h=7,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=4409,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=4429,.adv_w=144,.box_w=9,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=4443,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=4464,.adv_w=210,.box_w=13,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=4484,.adv_w=177,.box_w=11,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=4501,.adv_w=177,.box_w=11,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=4518,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=4541,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=4562,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=4583,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=4604,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=4624,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-4}, +{.bitmap_index=4645,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=4666,.adv_w=108,.box_w=7,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=4678,.adv_w=231,.box_w=15,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=4701,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=4721,.adv_w=164,.box_w=10,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=4735,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=4755,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=4776,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=4801,.adv_w=202,.box_w=13,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=4821,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=4842,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=4862,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=4882,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=4902,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=4922,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=4942,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=4962,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=4982,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=5002,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=5022,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=5042,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=5062,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=5082,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=5102,.adv_w=224,.box_w=14,.box_h=9,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=5118,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=5143,.adv_w=224,.box_w=14,.box_h=9,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=5159,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=5184,.adv_w=224,.box_w=14,.box_h=9,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=5200,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=5225,.adv_w=224,.box_w=14,.box_h=10,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=5243,.adv_w=224,.box_w=14,.box_h=10,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=5261,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=5281,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=5301,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=5322,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=5347,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=5372,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=5397,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=5422,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=5445,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=5468,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=5488,.adv_w=224,.box_w=14,.box_h=10,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=5506,.adv_w=224,.box_w=14,.box_h=10,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=5524,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=5544,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=5567,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=5587,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=5612,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=5637,.adv_w=224,.box_w=14,.box_h=10,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=5655,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=5678,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=5698,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=5725,.adv_w=224,.box_w=14,.box_h=9,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=5741,.adv_w=224,.box_w=14,.box_h=9,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=5757,.adv_w=224,.box_w=14,.box_h=10,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=5775,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=5796,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=5817,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=5838,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=5858,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=5878,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=5903,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=5928,.adv_w=224,.box_w=14,.box_h=10,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=5946,.adv_w=224,.box_w=14,.box_h=10,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=5964,.adv_w=224,.box_w=14,.box_h=10,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=5982,.adv_w=224,.box_w=14,.box_h=10,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=6000,.adv_w=224,.box_w=14,.box_h=9,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=6016,.adv_w=224,.box_w=14,.box_h=9,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=6032,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=6052,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=6072,.adv_w=224,.box_w=14,.box_h=9,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=6088,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=6111,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=6134,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=6157,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=6180,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=6200,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=6220,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=6241,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=6266,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=6291,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=6316,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=6341,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=6366,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=6391,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=6416,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=6441,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=6466,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=6491,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=6516,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=6541,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=6566,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=6591,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=6616,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=6641,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=6666,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=6691,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=6716,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=6741,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=6766,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=6791,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=6816,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=6841,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=6866,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=6891,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=6916,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=6941,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=6966,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=6991,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=7012,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=7033,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=7054,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=7075,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=7096,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=7117,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=7138,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=7159,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=7180,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=7201,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=7222,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=7243,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=7264,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=7285,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=7306,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=7327,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=7348,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=7369,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=7390,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=7411,.adv_w=224,.box_w=14,.box_h=6,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=7422,.adv_w=224,.box_w=14,.box_h=7,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=7435,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=7462,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=7489,.adv_w=224,.box_w=14,.box_h=6,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=7500,.adv_w=224,.box_w=14,.box_h=7,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=7513,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=7536,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=7559,.adv_w=224,.box_w=14,.box_h=6,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=7570,.adv_w=224,.box_w=14,.box_h=7,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=7583,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=7608,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=7633,.adv_w=224,.box_w=14,.box_h=8,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=7647,.adv_w=224,.box_w=14,.box_h=9,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=7663,.adv_w=224,.box_w=14,.box_h=8,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=7677,.adv_w=224,.box_w=14,.box_h=9,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=7693,.adv_w=224,.box_w=14,.box_h=8,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=7707,.adv_w=224,.box_w=14,.box_h=9,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=7723,.adv_w=224,.box_w=14,.box_h=8,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=7737,.adv_w=224,.box_w=14,.box_h=9,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=7753,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=7776,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=7799,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=7822,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=7845,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=7868,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=7891,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=7914,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=7937,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=7964,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=7991,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=8018,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=8045,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=8072,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=8099,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=8126,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=8153,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=8180,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=8207,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=8234,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=8261,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=8288,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=8315,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=8342,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=8369,.adv_w=224,.box_w=14,.box_h=8,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=8383,.adv_w=224,.box_w=14,.box_h=9,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=8399,.adv_w=224,.box_w=14,.box_h=9,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=8415,.adv_w=224,.box_w=14,.box_h=9,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=8431,.adv_w=224,.box_w=14,.box_h=8,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=8445,.adv_w=224,.box_w=14,.box_h=9,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=8461,.adv_w=224,.box_w=14,.box_h=9,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=8477,.adv_w=224,.box_w=14,.box_h=9,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=8493,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=8516,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=8539,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=8562,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=8585,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=8608,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=8631,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=8654,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=8677,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=8704,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=8731,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=8758,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=8785,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=8812,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=8839,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=8866,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=8893,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=8920,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=8947,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=8974,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=9001,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=9028,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=9055,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=9082,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=9109,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=9130,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=9151,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=9172,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=9193,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=9220,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=9247,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=9270,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=9293,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=9316,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=9341,.adv_w=224,.box_w=14,.box_h=10,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=9359,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=9382,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=9407,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=9430,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=9453,.adv_w=224,.box_w=14,.box_h=10,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=9471,.adv_w=224,.box_w=14,.box_h=10,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=9489,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=9509,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=9532,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=9555,.adv_w=224,.box_w=14,.box_h=9,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=9571,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=9596,.adv_w=224,.box_w=14,.box_h=9,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=9612,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=9637,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=9662,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=9685,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=9708,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=9729,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=9752,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=9775,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=9800,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=9823,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=9848,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=9871,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=9896,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=9919,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=9942,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=9967,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=9992,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=10017,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=10042,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=10065,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=10088,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=10111,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=10136,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=10161,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=10186,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=10211,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=10236,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=10261,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=10286,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=10311,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=10336,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=10361,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=10386,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=10411,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=10434,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=10459,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=10482,.adv_w=224,.box_w=14,.box_h=0,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=10482,.adv_w=224,.box_w=14,.box_h=5,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=10491,.adv_w=224,.box_w=14,.box_h=5,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=10500,.adv_w=224,.box_w=14,.box_h=9,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=10516,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=10539,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=10564,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=10589,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=10614,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=10639,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=10660,.adv_w=224,.box_w=14,.box_h=10,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=10678,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=10699,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=10719,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=10744,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=10769,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=10790,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=10817,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=10844,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=10869,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=10894,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=10914,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=10937,.adv_w=224,.box_w=14,.box_h=10,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=10955,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=10975,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=10995,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=11018,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=11038,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=11061,.adv_w=224,.box_w=14,.box_h=10,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=11079,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=11102,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=11125,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=11148,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=11171,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=11194,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=11219,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=11244,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=11267,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=11292,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=11312,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=11335,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=11358,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=11383,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=11406,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=11427,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=11450,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=11475,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=11496,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=11519,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=11540,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=11561,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=11584,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=11607,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=11630,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=11653,.adv_w=224,.box_w=14,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=11669,.adv_w=224,.box_w=14,.box_h=10,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=11687,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=11710,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=11731,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=11752,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=11775,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=11798,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=11821,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=11842,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=11865,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=11888,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=11909,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=11930,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=11953,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=11976,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=11997,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=12020,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=12043,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=12064,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=12085,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=12106,.adv_w=224,.box_w=14,.box_h=10,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=12124,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=12144,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=12164,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=12185,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=12208,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=12233,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=12256,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=12277,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=12300,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=12323,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=12346,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=12367,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=12390,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=12410,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=12433,.adv_w=224,.box_w=14,.box_h=10,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=12451,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=12474,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=12497,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=12520,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=12541,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=12564,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=12585,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=12605,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=12628,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=12649,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=12670,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=12693,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=12716,.adv_w=224,.box_w=14,.box_h=10,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=12734,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=12755,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=12775,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=12798,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=12818,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=12841,.adv_w=224,.box_w=14,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=12857,.adv_w=224,.box_w=14,.box_h=10,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=12875,.adv_w=224,.box_w=14,.box_h=10,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=12893,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=12916,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=12939,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=12962,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=12985,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=13010,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=13033,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=13058,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=13081,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=13104,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=13124,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=13149,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=13170,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=13193,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=13214,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=13237,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=13258,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=13281,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=13302,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=13325,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=13346,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=13371,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=13394,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=13419,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=13440,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=13461,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=13481,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=13502,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=13527,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=13548,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=13573,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=13594,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=13615,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=13636,.adv_w=224,.box_w=14,.box_h=10,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=13654,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=13675,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=13698,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=13719,.adv_w=224,.box_w=14,.box_h=10,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=13737,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=13760,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=13783,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=13804,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=13827,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=13850,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=13871,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=13896,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=13919,.adv_w=224,.box_w=14,.box_h=10,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=13937,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=13957,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=13977,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=14000,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=14023,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=14046,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=14066,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=14087,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=14108,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=14129,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=14150,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=14170,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=14193,.adv_w=224,.box_w=14,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=14209,.adv_w=224,.box_w=14,.box_h=10,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=14227,.adv_w=224,.box_w=14,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=14243,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=14263,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=14284,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=14305,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=14326,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=14347,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=14367,.adv_w=224,.box_w=14,.box_h=10,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=14385,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=14406,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=14427,.adv_w=224,.box_w=14,.box_h=10,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=14445,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=14466,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=14487,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=14510,.adv_w=224,.box_w=14,.box_h=10,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=14528,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=14548,.adv_w=224,.box_w=14,.box_h=7,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=14561,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=14584,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=14607,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=14628,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=14649,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=14672,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=14695,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=14716,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=14739,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=14762,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=14783,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=14804,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=14827,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=14850,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=14871,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=14894,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=14917,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=14940,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=14961,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=14982,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=15007,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=15030,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=15053,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=15073,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=15096,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=15119,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=15140,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=15161,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=15184,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=15205,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=15226,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=15249,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=15272,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=15293,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=15316,.adv_w=224,.box_w=14,.box_h=7,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=15329,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=15352,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=15373,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=15398,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=15423,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=15448,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=15473,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=15498,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=15523,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=15548,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=15573,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=15598,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=15623,.adv_w=224,.box_w=14,.box_h=7,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=15636,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=15659,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=15682,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=15705,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=15730,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=15751,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=15774,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=15797,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=15820,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=15843,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=15868,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=15891,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=15914,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=15939,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=15962,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=15983,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=16006,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=16029,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=16052,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=16075,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=16098,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=16123,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=16146,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=16169,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=16194,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=16217,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=16242,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=16267,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=16292,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=16317,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=16342,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=16367,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=16392,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=16417,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=16442,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=16467,.adv_w=224,.box_w=14,.box_h=9,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=16483,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=16508,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=16533,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=16558,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=16581,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=16606,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=16631,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=16656,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=16679,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=16704,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=16729,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=16752,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=16777,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=16802,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=16827,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=16852,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=16877,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=16902,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=16927,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=16952,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=16977,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=17002,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=17027,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=17052,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=17073,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=17096,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=17121,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=17144,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=17167,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=17190,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=17215,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=17240,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=17263,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=17288,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=17313,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=17338,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=17363,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=17386,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=17411,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=17436,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=17461,.adv_w=224,.box_w=14,.box_h=10,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=17479,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=17502,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=17525,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=17550,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=17573,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=17596,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=17619,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=17640,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=17665,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=17686,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=17707,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=17730,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=17753,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=17774,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=17797,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=17824,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=17849,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=17874,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=17899,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=17924,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=17949,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=17974,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=17999,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=18024,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=18049,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=18074,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=18099,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=18122,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=18147,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=18172,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=18197,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=18222,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=18247,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=18272,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=18297,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=18322,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=18347,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=18372,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=18397,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=18422,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=18447,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=18472,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=18497,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=18522,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=18547,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=18570,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=18593,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=18618,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=18643,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=18668,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=18693,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=18718,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=18743,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=18766,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=18791,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=18816,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=18841,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=18866,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=18891,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=18916,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=18941,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=18966,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=18991,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=19016,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=19041,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=19066,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=19091,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=19116,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=19141,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=19166,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=19191,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=19216,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=19241,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=19264,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=19289,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=19314,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=19339,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=19364,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=19389,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=19414,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=19439,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=19464,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=19489,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=19514,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=19539,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=19564,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=19589,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=19614,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=19639,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=19664,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=19689,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=19714,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=19739,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=19764,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=19789,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=19814,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=19839,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=19864,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=19889,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=19914,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=19939,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=19964,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=19989,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=20014,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=20039,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=20064,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=20089,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=20114,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=20139,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=20164,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=20189,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=20214,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=20239,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=20264,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=20289,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=20314,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=20339,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=20364,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=20389,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=20414,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=20439,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=20464,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=20489,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=20514,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=20539,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=20564,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=20589,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=20612,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=20637,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=20662,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=20687,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=20712,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=20737,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=20762,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=20787,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=20812,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=20837,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=20862,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=20887,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=20912,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=20937,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=20962,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=20987,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=21012,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=21037,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=21062,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=21087,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=21112,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=21137,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=21162,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=21187,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=21212,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=21237,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=21262,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=21287,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=21312,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=21337,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=21362,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=21387,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=21412,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=21437,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=21462,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=21487,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=21512,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=21537,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=21562,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=21587,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=21612,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=21637,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=21662,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=21685,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=21710,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=21735,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=21760,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=21785,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=21810,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=21835,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=21860,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=21885,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=21910,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=21935,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=21960,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=21985,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=22010,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=22035,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=22060,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=22085,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=22110,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=22135,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=22160,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=22185,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=22210,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=22235,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=22260,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=22285,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=22310,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=22335,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=22360,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=22385,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=22410,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=22435,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=22460,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=22485,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=22510,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=22535,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=22560,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=22585,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=22610,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=22635,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=22660,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=22685,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=22710,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=22735,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=22760,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=22785,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=22810,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=22835,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=22860,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=22885,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=22910,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=22935,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=22960,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=22985,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=23010,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=23035,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=23060,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=23085,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=23110,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=23135,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=23160,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=23185,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=23210,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=23235,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=23260,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=23285,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=23310,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=23335,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=23360,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=23385,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=23410,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=23435,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=23460,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=23485,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=23510,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=23535,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=23560,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=23585,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=23610,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=23635,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=23660,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=23685,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=23710,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=23735,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=23760,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=23785,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=23810,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=23835,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=23860,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=23885,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=23910,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=23935,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=23960,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=23985,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=24010,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=24033,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=24058,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=24081,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=24106,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=24131,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=24156,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=24181,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=24206,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=24231,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=24256,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=24281,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=24306,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=24331,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=24356,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=24381,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=24406,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=24431,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=24456,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=24479,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=24502,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=24527,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=24552,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=24577,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=24600,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=24625,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=24650,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=24675,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=24700,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=24725,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=24750,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=24775,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=24798,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=24823,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=24848,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=24873,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=24898,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=24923,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=24946,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=24971,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=24996,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=25021,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=25046,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=25069,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=25094,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=25119,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=25144,.adv_w=224,.box_w=14,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=25158,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=25181,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=25206,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=25231,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=25256,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=25281,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=25306,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=25331,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=25356,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=25377,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=25402,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=25427,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=25452,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=25475,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=25500,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=25525,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=25550,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=25575,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=25600,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=25625,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=25650,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=25675,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=25700,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=25725,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=25750,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=25775,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=25800,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=25825,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=25850,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=25875,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=25900,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=25925,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=25950,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=25975,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=26000,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=26025,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=26050,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=26075,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=26100,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=26125,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=26150,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=26173,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=26194,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=26217,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=26238,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=26263,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=26288,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=26313,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=26338,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=26363,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=26386,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=26407,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=26432,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=26455,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=26480,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=26505,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=26530,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=26555,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=26580,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=26605,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=26630,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=26655,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=26680,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=26705,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=26730,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=26755,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=26780,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=26805,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=26830,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=26855,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=26880,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=26905,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=26930,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=26955,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=26980,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=27005,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=27028,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=27053,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=27078,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=27103,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=27128,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=27153,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=27178,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=27203,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=27228,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=27253,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=27278,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=27303,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=27328,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=27353,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=27378,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=27403,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=27428,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=27453,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=27478,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=27503,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=27528,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=27553,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=27578,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=27603,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=27628,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=27653,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=27678,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=27703,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=27728,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=27753,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=27778,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=27803,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=27828,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=27853,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=27878,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=27903,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=27928,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=27953,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=27978,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=28003,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=28028,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=28053,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=28078,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=28103,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=28128,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=28153,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=28178,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=28203,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=28228,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=28253,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=28278,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=28303,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=28328,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=28353,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=28378,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=28403,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=28428,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=28453,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=28478,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=28503,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=28528,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=28553,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=28578,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=28603,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=28628,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=28653,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=28678,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=28703,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=28728,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=28753,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=28778,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=28803,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=28828,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=28853,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=28876,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=28901,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=28926,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=28951,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=28976,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=29001,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=29024,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=29049,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=29074,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=29099,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=29120,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=29143,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=29166,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=29189,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=29212,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=29235,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=29258,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=29281,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=29302,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=29325,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=29348,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=29371,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=29394,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=29419,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=29444,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=29469,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=29494,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=29519,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=29544,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=29569,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=29594,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=29619,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=29644,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=29669,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=29694,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=29719,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=29744,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=29769,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=29794,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=29819,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=29844,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=29869,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=29894,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=29919,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=29944,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=29969,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=29994,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=30019,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=30044,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=30069,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=30090,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=30115,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=30140,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=30165,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=30190,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=30215,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=30240,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=30265,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=30288,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=30313,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=30336,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=30359,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=30384,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=30407,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=30432,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=30455,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=30480,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=30505,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=30530,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=30555,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=30580,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=30605,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=30630,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=30655,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=30680,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=30705,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=30730,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=30755,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=30780,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=30805,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=30830,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=30855,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=30880,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=30903,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=30928,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=30953,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=30976,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=31001,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=31024,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=31047,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=31072,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=31097,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=31120,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=31145,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=31170,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=31195,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=31220,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=31245,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=31270,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=31295,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=31320,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=31345,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=31368,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=31389,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=31414,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=31439,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=31464,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=31487,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=31510,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=31533,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=31558,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=31581,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=31606,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=31629,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=31652,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=31677,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=31700,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=31725,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=31750,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=31773,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=31798,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=31823,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=31846,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=31869,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=31894,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=31915,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=31940,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=31965,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=31988,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=32013,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=32038,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=32063,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=32088,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=32113,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=32138,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=32163,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=32188,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=32213,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=32236,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=32261,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=32284,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=32309,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=32334,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=32359,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=32384,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=32409,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=32434,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=32459,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=32484,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=32509,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=32534,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=32557,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=32582,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=32603,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=32628,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=32653,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=32678,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=32703,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=32728,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=32753,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=32778,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=32803,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=32828,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=32853,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=32878,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=32901,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=32926,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=32951,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=32976,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=33001,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=33026,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=33051,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=33076,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=33099,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=33124,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=33149,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=33174,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=33197,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=33220,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=33245,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=33268,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=33293,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=33318,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=33343,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=33368,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=33391,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=33416,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=33441,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=33466,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=33491,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=33516,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=33541,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=33564,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=33589,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=33612,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=33637,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=33662,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=33683,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=33708,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=33733,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=33758,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=33785,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=33808,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=33833,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=33856,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=33881,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=33904,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=33929,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=33954,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=33979,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=34004,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=34029,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=34054,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=34079,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=34104,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=34129,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=34154,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=34179,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=34204,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=34227,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=34252,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=34275,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=34298,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=34323,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=34348,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=34373,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=34398,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=34423,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=34448,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=34473,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=34498,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=34523,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=34548,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=34573,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=34598,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=34623,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=34648,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=34673,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=34698,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=34723,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=34748,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=34773,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=34798,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=34823,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=34848,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=34871,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=34896,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=34921,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=34946,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=34971,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=34996,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=35021,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=35042,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=35065,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=35090,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=35115,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=35140,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=35165,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=35190,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=35215,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=35240,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=35265,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=35290,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=35315,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=35340,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=35365,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=35390,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=35415,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=35440,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=35463,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=35488,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=35513,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=35538,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=35563,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=35588,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=35613,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=35638,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=35663,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=35688,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=35713,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=35738,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=35763,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=35788,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=35813,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=35838,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=35861,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=35886,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=35911,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=35936,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=35961,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=35984,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=36009,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=36034,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=36059,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=36084,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=36109,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=36134,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=36159,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=36184,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=36209,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=36234,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=36259,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=36282,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=36305,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=36330,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=36355,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=36378,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=36403,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=36428,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=36453,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=36478,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=36503,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=36528,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=36553,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=36578,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=36603,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=36628,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=36653,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=36678,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=36703,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=36728,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=36753,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=36778,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=36801,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=36826,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=36851,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=36876,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=36901,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=36926,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=36951,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=36976,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=37001,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=37026,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=37051,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=37076,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=37101,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=37126,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=37151,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=37176,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=37201,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=37226,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=37251,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=37276,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=37301,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=37326,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=37351,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=37376,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=37401,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=37426,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=37451,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=37476,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=37499,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=37524,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=37547,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=37572,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=37597,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=37620,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=37645,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=37670,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=37695,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=37720,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=37745,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=37770,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=37795,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=37820,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=37843,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=37868,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=37893,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=37916,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=37941,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=37966,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=37991,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=38016,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=38041,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=38066,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=38089,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=38114,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=38139,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=38164,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=38189,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=38214,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=38239,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=38264,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=38289,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=38314,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=38337,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=38362,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=38387,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=38412,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=38437,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=38462,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=38487,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=38512,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=38537,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=38562,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=38587,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=38612,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=38637,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=38662,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=38687,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=38712,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=38737,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=38762,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=38787,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=38812,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=38837,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=38862,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=38887,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=38912,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=38937,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=38962,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=38987,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=39012,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=39037,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=39062,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=39087,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=39112,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=39137,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=39162,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=39185,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=39208,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=39233,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=39258,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=39283,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=39308,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=39333,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=39358,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=39383,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=39406,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=39431,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=39456,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=39479,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=39504,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=39529,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=39552,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=39577,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=39602,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=39627,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=39654,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=39679,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=39704,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=39729,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=39754,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=39779,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=39804,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=39829,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=39854,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=39879,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=39902,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=39927,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=39948,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=39973,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=39998,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=40023,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=40048,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=40073,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=40098,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=40123,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=40148,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=40173,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=40198,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=40223,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=40248,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=40273,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=40298,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=40323,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=40348,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=40373,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=40398,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=40423,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=40448,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=40473,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=40498,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=40523,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=40548,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=40573,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=40598,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=40621,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=40644,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=40669,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=40694,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=40717,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=40742,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=40765,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=40788,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=40811,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=40834,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=40859,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=40884,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=40909,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=40934,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=40959,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=40982,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=41007,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=41032,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=41057,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=41080,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=41105,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=41130,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=41155,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=41178,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=41203,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=41228,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=41251,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=41276,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=41301,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=41326,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=41351,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=41376,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=41399,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=41424,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=41449,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=41472,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=41495,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=41520,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=41545,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=41570,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=41595,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=41618,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=41643,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=41668,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=41693,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=41718,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=41743,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=41766,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=41789,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=41812,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=41837,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=41862,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=41885,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=41910,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=41933,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=41958,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=41981,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=42006,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=42031,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=42054,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=42079,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=42102,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=42125,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=42148,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=42173,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=42196,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=42219,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=42242,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=42267,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=42290,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=42315,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=42340,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=42365,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=42390,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=42413,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=42438,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=42463,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=42488,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=42513,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=42536,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=42561,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=42586,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=42611,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=42634,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=42659,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=42684,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=42709,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=42734,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=42759,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=42782,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=42807,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=42832,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=42855,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=42880,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=42905,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=42928,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=42953,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=42976,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=43001,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=43026,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=43049,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=43072,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=43095,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=43120,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=43145,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=43168,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=43193,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=43216,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=43239,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=43264,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=43289,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=43314,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=43339,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=43362,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=43387,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=43412,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=43435,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=43460,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=43485,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=43510,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=43533,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=43558,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=43583,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=43608,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=43631,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=43656,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=43681,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=43704,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=43729,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=43754,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=43779,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=43802,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=43825,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=43850,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=43873,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=43896,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=43919,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=43942,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=43969,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=43994,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=44017,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=44040,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=44065,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=44090,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=44115,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=44138,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=44161,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=44186,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=44211,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=44236,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=44261,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=44286,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=44311,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=44336,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=44361,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=44386,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=44411,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=44436,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=44461,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=44486,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=44511,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=44536,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=44559,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=44584,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=44609,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=44634,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=44659,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=44684,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=44709,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=44734,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=44759,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=44784,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=44809,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=44834,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=44859,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=44884,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=44907,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=44932,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=44957,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=44982,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=45007,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=45032,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=45057,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=45080,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=45105,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=45130,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=45155,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=45180,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=45205,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=45230,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=45255,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=45280,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=45305,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=45330,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=45355,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=45380,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=45405,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=45430,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=45455,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=45480,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=45505,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=45530,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=45555,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=45580,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=45605,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=45630,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=45655,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=45680,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=45705,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=45730,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=45755,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=45780,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=45805,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=45830,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=45855,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=45880,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=45905,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=45930,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=45955,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=45980,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=46005,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=46030,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=46055,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=46080,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=46105,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=46130,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=46155,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=46180,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=46205,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=46230,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=46255,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=46280,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=46305,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=46330,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=46355,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=46380,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=46405,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=46430,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=46455,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=46480,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=46505,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=46530,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=46555,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=46580,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=46605,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=46630,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=46655,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=46680,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=46705,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=46730,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=46755,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=46780,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=46805,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=46830,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=46855,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=46880,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=46905,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=46930,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=46955,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=46980,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=47005,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=47030,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=47055,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=47080,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=47105,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=47130,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=47155,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=47180,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=47205,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=47230,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=47255,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=47280,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=47305,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=47330,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=47355,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=47380,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=47405,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=47430,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=47455,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=47480,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=47505,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=47530,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=47555,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=47580,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=47605,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=47630,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=47655,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=47680,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=47705,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=47730,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=47755,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=47780,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=47805,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=47830,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=47855,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=47880,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=47905,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=47930,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=47955,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=47980,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=48005,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=48030,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=48055,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=48080,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=48105,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=48130,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=48155,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=48180,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=48205,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=48230,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=48255,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=48280,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=48305,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=48330,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=48355,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=48380,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=48405,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=48430,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=48455,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=48480,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=48505,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=48530,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=48555,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=48580,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=48605,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=48630,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=48655,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=48680,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=48705,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=48730,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=48755,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=48780,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=48805,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=48828,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=48853,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=48878,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=48903,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=48928,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=48953,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=48978,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=49003,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=49028,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=49053,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=49078,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=49103,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=49128,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=49153,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=49178,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=49203,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=49224,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=49249,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=49272,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=49297,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=49320,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=49345,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=49370,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=49395,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=49420,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=49445,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=49470,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=49493,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=49518,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=49543,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=49568,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=49593,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=49618,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=49643,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=49666,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=49689,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=49714,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=49737,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=49762,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=49787,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=49810,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=49833,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=49858,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=49881,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=49906,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=49931,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=49956,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=49981,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=50008,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=50033,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=50058,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=50083,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=50108,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=50133,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=50158,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=50183,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=50208,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=50233,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=50258,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=50283,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=50308,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=50333,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=50358,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=50383,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=50408,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=50433,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=50458,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=50483,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=50508,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=50533,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=50558,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=50583,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=50608,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=50633,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=50658,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=50683,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=50708,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=50733,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=50758,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=50783,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=50808,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=50833,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=50858,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=50883,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=50908,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=50933,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=50958,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=50983,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=51008,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=51033,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=51058,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=51083,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=51106,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=51131,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=51156,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=51181,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=51206,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=51231,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=51256,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=51281,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=51306,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=51331,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=51356,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=51381,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=51406,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=51431,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=51456,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=51481,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=51506,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=51531,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=51556,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=51581,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=51606,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=51631,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=51656,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=51681,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=51706,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=51731,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=51756,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=51781,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=51806,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=51831,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=51856,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=51881,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=51906,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=51931,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=51956,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=51981,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=52006,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=52031,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=52056,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=52081,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=52104,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=52129,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=52152,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=52177,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=52202,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=52227,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=52250,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=52273,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=52298,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=52323,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=52348,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=52373,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=52398,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=52421,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=52446,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=52471,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=52496,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=52521,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=52546,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=52569,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=52594,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=52619,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=52644,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=52669,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=52694,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=52719,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=52744,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=52769,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=52794,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=52819,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=52844,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=52869,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=52894,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=52919,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=52944,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=52969,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=52994,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=53019,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=53044,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=53069,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=53094,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=53119,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=53144,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=53169,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=53194,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=53219,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=53244,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=53269,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=53294,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=53317,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=53342,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=53367,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=53392,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=53417,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=53442,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=53467,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=53492,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=53517,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=53542,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=53567,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=53592,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=53617,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=53642,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=53667,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=53692,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=53717,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=53742,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=53767,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=53792,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=53817,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=53842,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=53867,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=53892,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=53915,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=53940,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=53963,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=53988,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=54013,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=54038,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=54061,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=54086,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=54111,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=54136,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=54159,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=54184,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=54209,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=54234,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=54259,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=54280,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=54303,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=54324,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=54347,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=54372,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=54393,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=54416,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=54441,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=54462,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=54483,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=54504,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=54527,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=54550,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=54575,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=54600,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=54625,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=54650,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=54675,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=54700,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=54725,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=54750,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=54775,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=54800,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=54825,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=54850,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=54875,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=54900,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=54925,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=54950,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=54975,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=55000,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=55025,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=55050,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=55075,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=55100,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=55125,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=55150,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=55175,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=55200,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=55225,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=55250,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=55275,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=55300,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=55325,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=55350,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=55375,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=55400,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=55425,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=55450,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=55475,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=55500,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=55525,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=55550,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=55575,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=55600,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=55623,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=55646,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=55671,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=55696,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=55721,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=55744,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=55767,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=55792,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=55817,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=55842,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=55867,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=55892,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=55917,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=55942,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=55967,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=55992,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=56017,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=56042,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=56067,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=56092,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=56117,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=56142,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=56167,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=56192,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=56217,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=56242,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=56267,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=56292,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=56317,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=56342,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=56367,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=56392,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=56417,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=56442,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=56467,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=56492,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=56517,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=56542,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=56567,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=56592,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=56617,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=56642,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=56667,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=56692,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=56717,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=56742,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=56767,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=56792,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=56817,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=56842,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=56867,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=56892,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=56917,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=56942,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=56967,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=56992,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=57015,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=57040,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=57065,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=57090,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=57115,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=57140,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=57165,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=57190,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=57215,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=57240,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=57263,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=57288,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=57313,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=57338,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=57363,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=57388,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=57413,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=57438,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=57463,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=57488,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=57513,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=57538,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=57563,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=57588,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=57613,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=57638,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=57663,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=57688,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=57713,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=57734,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=57759,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=57784,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=57809,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=57834,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=57859,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=57884,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=57909,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=57934,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=57959,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=57984,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=58009,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=58034,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=58059,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=58084,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=58109,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=58134,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=58159,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=58184,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=58209,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=58234,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=58259,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=58284,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=58309,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=58334,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=58359,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=58384,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=58409,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=58434,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=58459,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=58484,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=58509,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=58534,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=58559,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=58584,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=58609,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=58634,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=58659,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=58684,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=58709,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=58734,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=58759,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=58784,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=58809,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=58834,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=58859,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=58884,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=58909,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=58934,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=58959,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=58982,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=59007,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=59032,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=59057,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=59082,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=59105,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=59128,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=59153,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=59176,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=59199,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=59224,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=59249,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=59272,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=59295,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=59320,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=59345,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=59368,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=59393,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=59418,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=59443,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=59468,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=59493,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=59518,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=59543,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=59568,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=59593,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=59618,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=59643,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=59666,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=59691,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=59714,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=59739,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=59762,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=59785,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=59810,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=59835,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=59860,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=59885,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=59910,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=59935,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=59958,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=59983,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=60006,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=60031,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=60056,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=60081,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=60106,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=60131,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=60156,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=60179,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=60202,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=60227,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=60250,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=60275,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=60300,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=60323,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=60348,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=60373,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=60398,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=60423,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=60448,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=60473,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=60496,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=60521,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=60544,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=60569,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=60594,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=60617,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=60642,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=60665,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=60690,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=60713,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=60736,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=60759,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=60782,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=60807,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=60830,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=60855,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=60878,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=60903,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=60926,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=60951,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=60976,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=61001,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=61026,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=61049,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=61074,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=61097,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=61120,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=61145,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=61170,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=61195,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=61220,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=61245,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=61270,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=61295,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=61320,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=61345,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=61370,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=61395,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=61420,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=61445,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=61470,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=61495,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=61520,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=61545,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=61570,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=61595,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=61618,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=61641,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=61666,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=61689,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=61712,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=61735,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=61760,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=61785,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=61810,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=61833,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=61858,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=61883,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=61908,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=61933,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=61958,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=61983,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=62008,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=62033,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=62056,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=62081,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=62106,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=62131,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=62156,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=62181,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=62206,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=62229,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=62254,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=62279,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=62304,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=62327,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=62350,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=62375,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=62400,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=62425,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=62450,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=62475,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=62498,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=62523,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=62548,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=62571,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=62596,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=62621,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=62644,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=62667,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=62690,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=62715,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=62738,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=62763,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=62788,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=62813,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=62836,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=62861,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=62886,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=62911,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=62936,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=62961,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=62986,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=63011,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=63036,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=63059,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=63084,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=63107,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=63132,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=63157,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=63182,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=63207,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=63232,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=63255,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=63280,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=63303,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=63328,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=63351,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=63376,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=63403,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=63426,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=63453,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=63478,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=63501,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=63526,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=63551,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=63576,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=63601,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=63626,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=63651,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=63676,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=63701,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=63726,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=63749,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=63772,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=63797,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=63822,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=63847,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=63872,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=63897,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=63920,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=63945,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=63970,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=63995,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=64020,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=64045,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=64070,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=64095,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=64120,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=64145,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=64170,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=64195,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=64220,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=64245,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=64270,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=64295,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=64320,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=64345,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=64370,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=64395,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=64420,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=64445,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=64470,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=64495,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=64520,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=64545,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=64570,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=64595,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=64620,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=64645,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=64670,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=64695,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=64720,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=64745,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=64770,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=64795,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=64820,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=64845,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=64868,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=64893,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=64918,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=64943,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=64968,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=64993,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=65018,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=65043,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=65068,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=65093,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=65118,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=65143,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=65168,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=65193,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=65218,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=65243,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=65268,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=65293,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=65318,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=65343,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=65368,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=65393,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=65418,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=65443,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=65468,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=65493,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=65518,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=65543,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=65568,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=65593,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=65618,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=65643,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=65668,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=65693,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=65718,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=65743,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=65768,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=65793,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=65818,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=65843,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=65868,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=65893,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=65918,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=65943,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=65968,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=65993,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=66018,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=66043,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=66068,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=66093,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=66118,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=66143,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=66168,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=66193,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=66218,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=66243,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=66268,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=66293,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=66318,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=66343,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=66368,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=66393,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=66418,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=66443,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=66468,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=66493,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=66518,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=66543,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=66568,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=66593,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=66618,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=66643,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=66668,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=66693,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=66718,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=66743,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=66768,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=66793,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=66818,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=66843,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=66868,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=66893,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=66918,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=66943,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=66968,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=66993,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=67018,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=67043,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=67068,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=67093,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=67118,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=67143,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=67168,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=67193,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=67218,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=67243,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=67268,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=67295,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=67320,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=67345,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=67370,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=67395,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=67420,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=67445,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=67470,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=67495,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=67520,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=67545,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=67570,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=67595,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=67620,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=67645,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=67670,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=67695,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=67720,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=67745,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=67770,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=67795,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=67820,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=67845,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=67870,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=67895,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=67920,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=67945,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=67970,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=67995,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=68020,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=68045,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=68070,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=68095,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=68120,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=68145,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=68170,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=68195,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=68220,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=68245,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=68270,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=68295,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=68320,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=68345,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=68370,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=68395,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=68420,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=68445,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=68470,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=68495,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=68520,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=68545,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=68570,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=68595,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=68620,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=68645,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=68670,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=68695,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=68720,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=68745,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=68770,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=68795,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=68820,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=68845,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=68870,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=68895,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=68920,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=68945,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=68970,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=68995,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=69020,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=69045,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=69070,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=69095,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=69120,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=69145,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=69170,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=69195,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=69220,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=69245,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=69270,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=69295,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=69320,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=69345,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=69370,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=69395,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=69420,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=69445,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=69470,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=69495,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=69520,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=69545,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=69570,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=69595,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=69620,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=69645,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=69670,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=69695,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=69720,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=69745,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=69770,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=69795,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=69820,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=69845,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=69870,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=69895,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=69920,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=69945,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=69970,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=69995,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=70020,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=70045,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=70070,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=70095,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=70120,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=70145,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=70170,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=70195,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=70220,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=70245,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=70270,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=70295,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=70320,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=70345,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=70370,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=70395,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=70420,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=70445,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=70470,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=70495,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=70520,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=70545,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=70570,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=70595,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=70620,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=70645,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=70670,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=70695,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=70720,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=70745,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=70770,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=70795,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=70820,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=70845,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=70870,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=70895,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=70920,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=70945,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=70970,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=70995,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=71020,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=71045,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=71070,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=71095,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=71120,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=71145,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=71170,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=71195,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=71220,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=71245,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=71270,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=71295,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=71320,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=71345,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=71370,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=71395,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=71420,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=71445,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=71470,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=71495,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=71520,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=71545,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=71570,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=71595,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=71620,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=71645,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=71670,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=71695,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=71720,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=71745,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=71770,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=71795,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=71820,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=71845,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=71870,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=71895,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=71920,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=71945,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=71970,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=71995,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=72020,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=72045,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=72070,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=72095,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=72120,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=72145,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=72170,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=72195,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=72220,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=72245,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=72270,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=72295,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=72320,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=72345,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=72370,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=72395,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=72420,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=72445,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=72470,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=72495,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=72520,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=72545,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=72570,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=72595,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=72620,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=72645,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=72670,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=72695,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=72720,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=72743,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=72768,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=72793,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=72818,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=72843,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=72868,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=72893,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=72918,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=72943,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=72968,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=72993,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=73018,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=73043,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=73068,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=73093,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=73118,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=73143,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=73168,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=73193,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=73218,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=73243,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=73268,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=73293,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=73318,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=73343,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=73368,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=73393,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=73418,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=73443,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=73468,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=73493,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=73518,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=73543,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=73568,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=73593,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=73618,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=73643,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=73666,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=73691,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=73714,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=73737,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=73762,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=73787,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=73812,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=73837,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=73862,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=73887,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=73912,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=73937,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=73962,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=73987,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=74012,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=74033,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=74058,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=74083,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=74108,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=74131,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=74156,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=74181,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=74206,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=74231,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=74256,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=74281,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=74306,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=74331,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=74356,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=74379,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=74404,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=74429,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=74454,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=74479,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=74504,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=74529,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=74552,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=74577,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=74602,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=74627,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=74650,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=74673,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=74698,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=74723,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=74748,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=74773,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=74798,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=74823,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=74848,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=74873,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=74898,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=74923,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=74948,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=74973,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=74998,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=75023,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=75048,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=75073,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=75098,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=75123,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=75148,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=75173,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=75198,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=75223,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=75248,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=75273,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=75298,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=75323,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=75348,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=75371,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=75396,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=75421,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=75446,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=75471,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=75496,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=75521,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=75546,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=75569,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=75594,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=75619,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=75644,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=75669,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=75694,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=75719,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=75744,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=75769,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=75794,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=75819,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=75840,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=75865,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=75890,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=75915,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=75940,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=75965,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=75990,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=76015,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=76040,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=76065,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=76090,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=76115,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=76140,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=76165,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=76190,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=76215,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=76240,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=76265,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=76290,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=76315,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=76338,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=76363,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=76388,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=76413,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=76438,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=76463,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=76488,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=76513,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=76538,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=76563,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=76588,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=76613,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=76638,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=76663,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=76688,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=76713,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=76738,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=76763,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=76788,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=76813,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=76838,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=76863,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=76888,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=76913,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=76938,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=76963,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=76988,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=77013,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=77038,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=77063,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=77088,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=77113,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=77138,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=77163,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=77188,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=77213,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=77238,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=77263,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=77288,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=77313,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=77338,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=77363,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=77388,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=77413,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=77438,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=77463,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=77488,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=77513,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=77538,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=77563,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=77588,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=77613,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=77638,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=77663,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=77688,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=77713,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=77738,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=77763,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=77788,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=77813,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=77838,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=77863,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=77888,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=77913,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=77938,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=77963,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=77988,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=78013,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=78038,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=78063,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=78088,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=78113,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=78138,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=78163,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=78188,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=78213,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=78238,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=78263,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=78288,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=78313,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=78338,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=78363,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=78388,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=78413,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=78438,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=78463,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=78488,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=78513,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=78538,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=78563,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=78588,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=78613,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=78638,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=78661,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=78686,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=78711,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=78736,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=78761,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=78786,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=78811,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=78836,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=78861,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=78886,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=78911,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=78936,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=78961,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=78986,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=79011,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=79036,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=79061,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=79086,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=79111,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=79136,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=79161,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=79186,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=79211,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=79236,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=79261,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=79286,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=79311,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=79336,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=79361,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=79386,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=79411,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=79436,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=79461,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=79486,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=79511,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=79536,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=79561,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=79586,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=79611,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=79636,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=79661,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=79686,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=79711,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=79736,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=79761,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=79786,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=79811,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=79836,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=79861,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=79886,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=79911,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=79936,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=79961,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=79986,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=80011,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=80036,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=80061,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=80086,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=80111,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=80136,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=80161,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=80186,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=80211,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=80236,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=80261,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=80286,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=80311,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=80336,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=80361,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=80386,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=80411,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=80436,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=80461,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=80486,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=80511,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=80536,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=80561,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=80586,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=80611,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=80636,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=80661,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=80686,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=80711,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=80736,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=80761,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=80786,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=80811,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=80836,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=80861,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=80886,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=80911,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=80936,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=80961,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=80986,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=81011,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=81036,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=81061,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=81086,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=81111,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=81136,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=81161,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=81186,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=81211,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=81236,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=81261,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=81286,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=81311,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=81336,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=81361,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=81386,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=81411,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=81436,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=81461,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=81486,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=81511,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=81536,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=81561,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=81586,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=81611,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=81636,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=81661,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=81686,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=81711,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=81736,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=81761,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=81786,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=81811,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=81836,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=81861,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=81886,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=81911,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=81936,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=81961,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=81986,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=82011,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=82036,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=82061,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=82086,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=82111,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=82136,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=82161,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=82186,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=82211,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=82236,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=82261,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=82286,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=82311,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=82336,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=82361,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=82386,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=82411,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=82436,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=82461,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=82486,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=82511,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=82536,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=82561,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=82586,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=82611,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=82636,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=82661,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=82686,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=82711,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=82736,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=82761,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=82786,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=82811,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=82836,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=82861,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=82886,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=82911,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=82936,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=82961,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=82986,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=83011,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=83036,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=83061,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=83086,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=83111,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=83136,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=83161,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=83186,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=83211,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=83236,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=83261,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=83286,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=83311,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=83336,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=83361,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=83386,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=83411,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=83436,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=83461,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=83486,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=83511,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=83536,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=83561,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=83586,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=83611,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=83636,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=83661,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=83686,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=83711,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=83736,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=83761,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=83786,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=83811,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=83836,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=83861,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=83886,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=83911,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=83936,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=83961,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=83986,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=84011,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=84036,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=84061,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=84086,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=84111,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=84136,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=84159,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=84180,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=84205,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=84230,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=84255,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=84280,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=84303,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=84326,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=84347,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=84372,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=84397,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=84422,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=84447,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=84472,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=84497,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=84522,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=84547,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=84572,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=84597,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=84622,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=84647,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=84672,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=84697,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=84722,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=84747,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=84772,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=84797,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=84822,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=84847,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=84872,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=84897,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=84922,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=84947,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=84972,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=84999,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=85024,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=85049,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=85074,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=85099,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=85124,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=85149,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=85174,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=85199,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=85224,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=85249,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=85272,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=85295,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=85318,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=85341,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=85364,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=85389,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=85414,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=85439,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=85462,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=85485,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=85508,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=85531,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=85556,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=85581,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=85606,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=85631,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=85656,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=85681,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=85706,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=85731,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=85756,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=85781,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=85806,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=85831,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=85856,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=85881,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=85906,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=85931,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=85956,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=85981,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=86006,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=86031,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=86056,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=86081,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=86106,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=86131,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=86156,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=86181,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=86206,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=86231,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=86256,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=86281,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=86306,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=86331,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=86356,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=86379,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=86404,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=86429,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=86454,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=86479,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=86504,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=86529,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=86554,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=86577,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=86602,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=86627,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=86650,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=86675,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=86698,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=86723,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=86748,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=86773,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=86798,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=86823,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=86848,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=86873,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=86898,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=86921,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=86946,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=86971,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=86994,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=87019,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=87044,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=87069,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=87094,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=87119,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=87144,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=87169,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=87194,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=87219,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=87244,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=87269,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=87294,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=87319,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=87344,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=87369,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=87394,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=87417,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=87442,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=87465,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=87488,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=87513,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=87538,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=87563,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=87588,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=87613,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=87636,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=87659,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=87684,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=87709,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=87734,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=87759,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=87784,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=87809,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=87834,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=87859,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=87884,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=87907,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=87932,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=87957,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=87982,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=88005,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=88030,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=88055,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=88080,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=88105,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=88130,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=88155,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=88180,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=88205,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=88230,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=88255,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=88280,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=88303,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=88328,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=88353,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=88378,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=88403,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=88428,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=88453,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=88478,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=88503,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=88528,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=88553,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=88578,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=88603,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=88628,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=88653,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=88678,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=88703,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=88728,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=88751,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=88776,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=88801,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=88826,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=88851,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=88876,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=88901,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=88926,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=88951,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=88976,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=89001,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=89026,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=89051,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=89076,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=89101,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=89126,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=89151,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=89174,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=89199,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=89224,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=89249,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=89274,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=89299,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=89322,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=89347,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=89370,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=89395,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=89420,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=89445,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=89470,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=89495,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=89520,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=89545,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=89570,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=89595,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=89620,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=89645,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=89670,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=89695,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=89720,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=89745,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=89770,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=89793,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=89818,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=89843,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=89868,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=89893,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=89918,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=89943,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=89968,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=89993,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=90018,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=90043,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=90068,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=90093,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=90118,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=90143,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=90168,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=90193,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=90216,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=90241,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=90266,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=90291,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=90316,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=90341,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=90366,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=90391,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=90416,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=90441,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=90466,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=90491,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=90516,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=90541,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=90566,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=90591,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=90616,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=90641,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=90666,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=90691,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=90714,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=90739,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=90764,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=90789,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=90814,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=90839,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=90864,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=90889,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=90914,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=90939,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=90964,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=90989,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=91014,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=91039,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=91064,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=91089,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=91114,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=91139,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=91164,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=91189,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=91214,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=91239,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=91264,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=91289,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=91314,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=91337,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=91360,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=91385,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=91410,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=91435,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=91460,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=91485,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=91510,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=91535,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=91560,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=91585,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=91610,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=91635,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=91660,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=91685,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=91710,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=91733,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=91756,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=91781,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=91806,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=91831,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=91856,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=91881,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=91906,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=91929,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=91954,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=91979,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=92002,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=92027,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=92052,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=92077,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=92100,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=92125,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=92150,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=92175,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=92200,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=92225,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=92250,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=92275,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=92298,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=92323,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=92348,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=92373,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=92396,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=92419,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=92444,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=92467,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=92494,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=92517,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=92542,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=92567,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=92592,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=92617,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=92642,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=92667,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=92690,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=92715,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=92740,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=92763,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=92788,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=92813,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=92838,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=92863,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=92888,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=92913,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=92938,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=92963,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=92988,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=93013,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=93038,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=93063,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=93088,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=93113,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=93138,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=93163,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=93188,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=93213,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=93238,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=93263,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=93288,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=93311,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=93336,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=93361,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=93386,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=93411,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=93436,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=93459,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=93484,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=93507,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=93534,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=93559,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=93584,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=93609,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=93634,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=93659,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=93684,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=93709,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=93734,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=93759,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=93784,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=93809,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=93834,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=93859,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=93884,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=93909,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=93934,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=93959,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=93984,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=94009,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=94034,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=94057,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=94082,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=94107,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=94132,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=94157,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=94182,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=94207,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=94232,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=94257,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=94282,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=94307,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=94332,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=94357,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=94382,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=94407,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=94432,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=94457,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=94480,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=94505,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=94530,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=94555,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=94580,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=94605,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=94630,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=94655,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=94680,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=94703,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=94728,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=94751,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=94776,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=94801,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=94826,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=94851,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=94876,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=94901,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=94926,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=94951,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=94976,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=95001,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=95026,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=95051,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=95076,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=95101,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=95124,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=95149,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=95174,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=95199,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=95224,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=95249,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=95274,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=95299,.adv_w=224,.box_w=14,.box_h=6,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=95310,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=95335,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=95360,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=95385,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=95410,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=95435,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=95460,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=95485,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=95510,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=95535,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=95560,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=95585,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=95610,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=95635,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=95660,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=95685,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=95710,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=95735,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=95760,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=95785,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=95810,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=95835,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=95860,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=95885,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=95910,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=95935,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=95960,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=95985,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=96010,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=96035,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=96060,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=96085,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=96110,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=96135,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=96160,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=96185,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=96210,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=96235,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=96258,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=96283,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=96308,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=96333,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=96358,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=96383,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=96408,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=96433,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=96458,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=96483,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=96508,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=96533,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=96558,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=96583,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=96608,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=96633,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=96658,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=96683,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=96708,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=96733,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=96758,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=96783,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=96808,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=96833,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=96858,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=96883,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=96908,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=96933,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=96958,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=96983,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=97008,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=97033,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=97058,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=97083,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=97108,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=97133,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=97158,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=97183,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=97208,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=97233,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=97258,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=97283,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=97308,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=97333,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=97358,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=97383,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=97408,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=97433,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=97458,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=97483,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=97508,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=97533,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=97558,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=97583,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=97608,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=97633,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=97658,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=97683,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=97708,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=97733,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=97758,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=97783,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=97808,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=97833,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=97858,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=97883,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=97908,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=97933,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=97958,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=97983,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=98008,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=98033,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=98058,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=98083,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=98108,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=98133,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=98158,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=98183,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=98208,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=98233,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=98258,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=98283,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=98308,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=98331,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=98356,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=98381,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=98406,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=98431,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=98456,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=98481,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=98506,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=98531,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=98556,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=98581,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=98606,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=98631,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=98656,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=98681,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=98706,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=98731,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=98756,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=98781,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=98806,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=98831,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=98856,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=98881,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=98906,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=98931,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=98956,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=98981,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=99006,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=99031,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=99056,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=99081,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=99106,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=99131,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=99156,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=99181,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=99206,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=99231,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=99256,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=99281,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=99306,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=99331,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=99356,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=99381,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=99406,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=99431,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=99456,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=99481,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=99504,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=99529,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=99554,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=99579,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=99604,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=99629,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=99654,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=99679,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=99704,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=99727,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=99752,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=99777,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=99802,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=99827,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=99852,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=99877,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=99902,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=99927,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=99952,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=99977,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=100002,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=100027,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=100052,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=100077,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=100102,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=100127,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=100152,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=100177,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=100202,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=100227,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=100250,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=100275,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=100300,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=100325,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=100350,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=100375,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=100400,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=100425,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=100450,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=100475,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=100500,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=100525,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=100550,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=100575,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=100600,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=100625,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=100650,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=100675,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=100700,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=100725,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=100750,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=100775,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=100800,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=100825,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=100850,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=100875,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=100900,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=100925,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=100950,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=100975,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=101000,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=101025,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=101050,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=101075,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=101100,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=101123,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=101148,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=101169,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=101190,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=101213,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=101238,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=101263,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=101288,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=101313,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=101338,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=101363,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=101386,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=101411,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=101436,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=101459,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=101484,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=101509,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=101534,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=101559,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=101582,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=101607,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=101632,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=101655,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=101680,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=101705,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=101730,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=101755,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=101776,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=101801,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=101826,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=101851,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=101876,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=101901,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=101926,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=101951,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=101976,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=102001,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=102026,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=102051,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=102076,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=102099,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=102124,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=102149,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=102174,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=102199,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=102224,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=102249,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=102272,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=102297,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=102322,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=102347,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=102372,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=102397,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=102422,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=102447,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=102472,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=102497,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=102522,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=102547,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=102572,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=102597,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=102620,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=102645,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=102670,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=102695,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=102720,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=102745,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=102770,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=102795,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=102820,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=102845,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=102870,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=102895,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=102920,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=102943,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=102968,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=102991,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=103016,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=103041,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=103066,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=103091,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=103116,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=103141,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=103166,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=103191,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=103214,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=103239,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=103264,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=103287,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=103312,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=103337,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=103362,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=103387,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=103412,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=103437,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=103462,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=103485,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=103508,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=103533,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=103558,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=103583,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=103608,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=103633,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=103658,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=103683,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=103708,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=103733,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=103758,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=103783,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=103808,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=103833,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=103856,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=103881,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=103904,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=103929,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=103952,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=103977,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=104002,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=104027,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=104052,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=104077,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=104100,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=104125,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=104148,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=104173,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=104196,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=104221,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=104246,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=104269,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=104292,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=104317,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=104342,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=104367,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=104392,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=104417,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=104442,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=104467,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=104492,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=104517,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=104542,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=104567,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=104592,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=104617,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=104642,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=104665,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=104690,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=104717,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=104742,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=104767,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=104792,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=104817,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=104842,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=104865,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=104888,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=104911,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=104936,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=104961,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=104986,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=105011,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=105036,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=105061,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=105086,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=105111,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=105136,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=105161,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=105186,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=105211,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=105236,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=105261,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=105286,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=105311,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=105336,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=105361,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=105386,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=105411,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=105436,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=105461,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=105486,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=105511,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=105536,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=105561,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=105586,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=105611,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=105636,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=105661,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=105686,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=105711,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=105736,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=105761,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=105786,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=105811,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=105836,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=105861,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=105886,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=105911,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=105936,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=105961,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=105986,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=106011,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=106036,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=106061,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=106086,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=106111,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=106136,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=106161,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=106186,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=106211,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=106236,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=106261,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=106286,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=106311,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=106336,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=106361,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=106386,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=106411,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=106436,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=106461,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=106486,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=106511,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=106536,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=106561,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=106586,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=106611,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=106636,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=106661,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=106686,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=106711,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=106736,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=106761,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=106786,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=106811,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=106836,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=106861,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=106886,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=106911,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=106936,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=106961,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=106986,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=107011,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=107036,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=107061,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=107086,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=107111,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=107136,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=107161,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=107186,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=107211,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=107236,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=107261,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=107286,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=107311,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=107336,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=107361,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=107386,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=107411,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=107436,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=107461,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=107484,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=107509,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=107534,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=107559,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=107582,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=107607,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=107630,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=107655,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=107680,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=107705,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=107728,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=107753,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=107778,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=107803,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=107828,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=107853,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=107878,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=107903,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=107928,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=107949,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=107972,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=107995,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=108018,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=108041,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=108064,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=108087,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=108110,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=108133,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=108156,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=108179,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=108202,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=108225,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=108248,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=108271,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=108294,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=108317,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=108340,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=108363,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=108386,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=108409,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=108434,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=108459,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=108482,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=108507,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=108532,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=108557,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=108582,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=108607,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=108630,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=108655,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=108680,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=108705,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=108730,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=108753,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=108778,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=108803,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=108828,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=108853,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=108878,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=108901,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=108926,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=108949,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=108972,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=108997,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=109022,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=109043,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=109068,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=109093,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=109118,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=109143,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=109168,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=109193,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=109218,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=109243,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=109268,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=109291,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=109316,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=109341,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=109364,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=109389,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=109414,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=109439,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=109462,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=109487,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=109512,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=109537,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=109562,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=109587,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=109612,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=109637,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=109662,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=109687,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=109712,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=109735,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=109760,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=109785,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=109810,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=109835,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=109860,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=109883,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=109908,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=109933,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=109958,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=109983,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=110006,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=110031,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=110056,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=110079,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=110104,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=110129,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=110154,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=110179,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=110204,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=110227,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=110252,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=110277,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=110302,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=110327,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=110352,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=110377,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=110402,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=110427,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=110450,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=110473,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=110498,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=110521,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=110546,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=110571,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=110596,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=110621,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=110646,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=110671,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=110696,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=110721,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=110746,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=110771,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=110796,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=110821,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=110846,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=110871,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=110896,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=110921,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=110946,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=110971,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=110996,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=111021,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=111046,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=111069,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=111094,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=111119,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=111144,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=111169,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=111192,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=111217,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=111242,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=111267,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=111292,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=111315,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=111340,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=111365,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=111390,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=111413,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=111438,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=111463,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=111486,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=111511,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=111536,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=111561,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=111586,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=111611,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=111636,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=111661,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=111686,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=111711,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=111736,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=111761,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=111786,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=111809,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=111834,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=111857,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=111882,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=111907,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=111932,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=111957,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=111982,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=112007,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=112032,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=112057,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=112082,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=112107,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=112132,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=112157,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=112182,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=112207,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=112232,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=112257,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=112282,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=112307,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=112330,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=112355,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=112380,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=112405,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=112428,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=112451,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=112476,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=112499,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=112524,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=112549,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=112574,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=112597,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=112622,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=112647,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=112670,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=112695,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=112720,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=112745,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=112770,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=112793,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=112818,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=112843,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=112868,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=112893,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=112916,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=112941,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=112966,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=112991,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=113014,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=113039,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=113064,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=113089,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=113114,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=113139,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=113164,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=113189,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=113214,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=113239,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=113264,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=113289,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=113314,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=113339,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=113364,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=113389,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=113414,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=113439,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=113464,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=113489,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=113514,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=113539,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=113564,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=113589,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=113614,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=113639,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=113664,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=113689,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=113714,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=113739,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=113764,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=113789,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=113814,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=113839,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=113864,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=113889,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=113914,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=113939,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=113964,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=113989,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=114014,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=114039,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=114064,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=114089,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=114114,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=114139,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=114164,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=114189,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=114214,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=114239,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=114264,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=114289,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=114314,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=114339,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=114364,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=114389,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=114414,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=114439,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=114464,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=114489,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=114514,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=114539,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=114564,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=114589,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=114614,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=114639,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=114664,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=114689,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=114714,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=114739,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=114764,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=114789,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=114814,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=114839,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=114864,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=114889,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=114914,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=114939,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=114964,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=114989,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=115014,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=115039,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=115064,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=115089,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=115114,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=115139,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=115164,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=115189,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=115214,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=115239,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=115264,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=115289,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=115314,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=115339,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=115364,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=115389,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=115414,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=115439,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=115464,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=115487,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=115512,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=115535,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=115560,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=115585,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=115612,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=115637,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=115662,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=115687,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=115712,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=115735,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=115762,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=115787,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=115812,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=115837,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=115862,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=115887,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=115912,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=115937,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=115962,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=115987,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=116012,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=116037,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=116062,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=116087,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=116112,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=116137,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=116160,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=116183,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=116208,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=116233,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=116258,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=116285,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=116310,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=116333,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=116358,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=116383,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=116408,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=116433,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=116456,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=116481,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=116506,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=116531,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=116556,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=116579,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=116604,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=116629,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=116654,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=116679,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=116704,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=116729,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=116754,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=116777,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=116802,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=116827,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=116850,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=116875,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=116900,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=116925,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=116950,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=116973,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=116998,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=117023,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=117048,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=117073,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=117098,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=117121,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=117146,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=117171,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=117196,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=117221,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=117246,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=117271,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=117296,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=117319,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=117344,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=117367,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=117392,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=117417,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=117442,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=117467,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=117492,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=117517,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=117542,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=117569,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=117594,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=117619,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=117642,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=117667,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=117692,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=117717,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=117742,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=117767,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=117792,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=117815,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=117840,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=117865,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=117890,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=117915,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=117940,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=117965,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=117990,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=118013,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=118038,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=118063,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=118088,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=118113,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=118136,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=118161,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=118186,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=118211,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=118238,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=118263,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=118288,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=118313,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=118338,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=118363,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=118386,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=118413,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=118438,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=118463,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=118488,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=118513,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=118538,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=118561,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=118586,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=118611,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=118636,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=118661,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=118686,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=118709,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=118734,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=118759,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=118784,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=118809,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=118834,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=118857,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=118882,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=118907,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=118932,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=118957,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=118980,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=119005,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=119030,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=119055,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=119080,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=119105,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=119130,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=119155,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=119180,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=119205,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=119230,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=119255,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=119280,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=119305,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=119330,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=119355,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=119380,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=119405,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=119430,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=119455,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=119480,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=119505,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=119530,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=119555,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=119580,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=119605,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=119630,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=119655,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=119680,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=119705,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=119730,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=119755,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=119780,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=119805,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=119830,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=119855,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=119880,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=119905,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=119930,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=119955,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=119980,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=120005,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=120030,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=120055,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=120080,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=120105,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=120130,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=120155,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=120182,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=120207,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=120232,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=120257,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=120282,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=120307,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=120332,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=120357,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=120382,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=120407,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=120432,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=120457,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=120482,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=120507,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=120532,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=120557,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=120582,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=120607,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=120632,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=120657,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=120682,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=120707,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=120734,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=120759,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=120784,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=120807,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=120832,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=120857,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=120880,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=120905,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=120930,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=120953,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=120978,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=121003,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=121028,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=121053,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=121076,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=121101,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=121126,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=121151,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=121176,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=121201,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=121226,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=121251,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=121276,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=121301,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=121324,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=121349,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=121374,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=121399,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=121424,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=121447,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=121472,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=121497,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=121522,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=121545,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=121570,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=121595,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=121618,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=121643,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=121666,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=121691,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=121716,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=121741,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=121766,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=121791,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=121816,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=121841,.adv_w=224,.box_w=15,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=121868,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=121891,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=121916,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=121941,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=121966,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=121991,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=122016,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=122041,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=122066,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=122091,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=122116,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=122141,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=122166,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=122191,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=122214,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=122239,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=122264,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=122289,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=122314,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=122339,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=122364,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=122389,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=122414,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=122437,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=122462,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=122487,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=122512,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=122537,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=122562,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=122587,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=122612,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=122637,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=122662,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=122687,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=122710,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=122735,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=122760,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=122785,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=122810,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=122835,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=122860,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=122885,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=122910,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=122935,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=122960,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=122985,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=123010,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=123035,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=123060,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=123085,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=123110,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=123135,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=123160,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=123185,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=123210,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=123235,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=123260,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=123283,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=123306,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=123331,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=123356,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=123381,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=123406,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=123431,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=123456,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=123481,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=123506,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=123531,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=123556,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=123581,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=123606,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=123631,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=123656,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=123681,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=123706,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=123731,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=123756,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=123779,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=123804,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=123829,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=123854,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=123879,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=123904,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=123929,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=123954,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=123979,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=124004,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=124029,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=124054,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=124079,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=124104,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=124127,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=124152,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=124177,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=124202,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=124227,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=124252,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=124275,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=124300,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=124325,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=124350,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=124375,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=124400,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=124425,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=124448,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=124473,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=124498,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=124523,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=124548,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=124573,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=124598,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=124621,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=124646,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=124671,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=124696,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=124721,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=124744,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=124769,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=124794,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=124819,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=124844,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=124869,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=124894,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=124919,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=124944,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=124969,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=124994,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=125019,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=125044,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=125067,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=125092,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=125117,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=125142,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=125167,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=125192,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=125217,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=125242,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=125267,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=125292,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=125317,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=125342,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=125367,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=125392,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=125417,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=125442,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=125465,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=125490,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=125515,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=125540,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=125565,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=125590,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=125615,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=125640,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=125665,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=125690,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=125715,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=125740,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=125765,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=125790,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=125815,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=125840,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=125865,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=125890,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=125915,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=125938,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=125963,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=125988,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=126013,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=126038,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=126061,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=126086,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=126111,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=126136,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=126161,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=126186,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=126211,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=126236,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=126261,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=126286,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=126311,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=126336,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=126361,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=126386,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=126411,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=126436,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=126461,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=126486,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=126511,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=126536,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=126561,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=126586,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=126611,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=126636,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=126661,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=126686,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=126711,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=126736,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=126761,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=126786,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=126811,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=126836,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=126861,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=126886,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=126911,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=126936,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=126961,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=126986,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=127011,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=127036,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=127061,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=127086,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=127111,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=127136,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=127161,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=127186,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=127211,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=127236,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=127261,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=127286,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=127311,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=127336,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=127361,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=127386,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=127411,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=127436,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=127461,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=127486,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=127511,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=127536,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=127561,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=127586,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=127611,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=127636,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=127661,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=127686,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=127711,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=127736,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=127761,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=127786,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=127811,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=127836,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=127861,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=127886,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=127911,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=127936,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=127961,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=127986,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=128011,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=128036,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=128061,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=128086,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=128111,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=128136,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=128161,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=128186,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=128211,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=128236,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=128261,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=128286,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=128311,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=128336,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=128361,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=128386,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=128411,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=128436,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=128461,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=128486,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=128511,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=128536,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=128561,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=128586,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=128611,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=128636,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=128661,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=128686,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=128711,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=128736,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=128761,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=128786,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=128811,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=128836,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=128861,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=128886,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=128911,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=128936,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=128961,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=128986,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=129011,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=129036,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=129061,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=129086,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=129111,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=129136,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=129161,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=129186,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=129211,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=129236,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=129261,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=129286,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=129311,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=129336,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=129361,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=129386,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=129411,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=129436,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=129461,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=129486,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=129511,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=129536,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=129561,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=129586,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=129611,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=129636,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=129661,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=129686,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=129711,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=129736,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=129761,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=129786,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=129811,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=129836,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=129861,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=129886,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=129911,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=129936,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=129961,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=129986,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=130011,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=130036,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=130061,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=130086,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=130111,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=130136,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=130161,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=130186,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=130211,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=130236,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=130261,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=130286,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=130311,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=130336,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=130361,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=130386,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=130411,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=130436,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=130461,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=130486,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=130511,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=130536,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=130561,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=130586,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=130611,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=130636,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=130661,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=130686,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=130711,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=130736,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=130761,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=130786,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=130811,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=130836,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=130861,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=130886,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=130911,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=130936,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=130961,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=130986,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=131009,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=131034,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=131059,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=131084,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=131109,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=131134,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=131157,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=131182,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=131205,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=131230,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=131255,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=131280,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=131305,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=131330,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=131355,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=131380,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=131405,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=131430,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=131455,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=131480,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=131505,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=131530,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=131555,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=131580,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=131605,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=131630,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=131655,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=131680,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=131705,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=131730,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=131755,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=131780,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=131805,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=131830,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=131855,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=131880,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=131905,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=131930,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=131955,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=131980,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=132005,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=132030,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=132055,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=132080,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=132107,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=132132,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=132157,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=132182,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=132207,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=132232,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=132257,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=132282,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=132307,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=132332,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=132357,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=132382,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=132407,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=132432,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=132457,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=132482,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=132505,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=132530,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=132555,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=132576,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=132599,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=132624,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=132649,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=132674,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=132699,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=132724,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=132749,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=132774,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=132799,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=132824,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=132849,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=132872,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=132895,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=132918,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=132943,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=132968,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=132993,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=133018,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=133043,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=133068,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=133093,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=133118,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=133143,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=133168,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=133193,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=133218,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=133243,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=133268,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=133293,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=133316,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=133341,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=133364,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=133389,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=133414,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=133439,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=133464,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=133487,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=133512,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=133537,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=133562,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=133587,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=133612,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=133637,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=133662,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=133687,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=133712,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=133737,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=133762,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=133785,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=133808,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=133833,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=133858,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=133883,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=133908,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=133933,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=133958,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=133983,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=134008,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=134033,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=134058,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=134081,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=134106,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=134131,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=134156,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=134179,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=134202,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=134227,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=134252,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=134277,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=134302,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=134327,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=134350,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=134375,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=134400,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=134425,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=134450,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=134475,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=134500,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=134525,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=134550,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=134575,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=134600,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=134625,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=134650,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=134675,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=134700,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=134723,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=134748,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=134773,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=134796,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=134821,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=134846,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=134871,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=134896,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=134921,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=134946,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=134971,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=134996,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=135021,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=135046,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=135071,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=135096,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=135121,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=135146,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=135171,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=135196,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=135221,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=135246,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=135271,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=135296,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=135321,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=135344,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=135369,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=135394,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=135419,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=135444,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=135469,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=135494,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=135519,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=135544,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=135569,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=135594,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=135619,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=135644,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=135669,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=135694,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=135719,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=135744,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=135769,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=135794,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=135819,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=135844,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=135869,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=135894,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=135919,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=135944,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=135969,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=135992,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=136017,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=136042,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=136067,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=136092,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=136117,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=136142,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=136167,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=136192,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=136217,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=136242,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=136267,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=136292,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=136317,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=136342,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=136367,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=136392,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=136417,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=136442,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=136467,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=136492,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=136517,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=136542,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=136567,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=136592,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=136617,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=136642,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=136667,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=136690,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=136715,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=136740,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=136763,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=136788,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=136813,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=136838,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=136863,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=136888,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=136913,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=136938,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=136963,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=136988,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=137013,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=137038,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=137063,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=137088,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=137113,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=137138,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=137163,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=137188,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=137213,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=137238,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=137263,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=137288,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=137313,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=137338,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=137363,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=137388,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=137413,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=137438,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=137463,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=137488,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=137513,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=137538,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=137563,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=137588,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=137613,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=137638,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=137663,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=137688,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=137713,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=137738,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=137763,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=137788,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=137813,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=137838,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=137863,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=137888,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=137913,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=137936,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=137961,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=137986,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=138011,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=138036,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=138061,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=138086,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=138111,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=138134,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=138159,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=138184,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=138209,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=138232,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=138255,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=138280,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=138305,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=138330,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=138353,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=138378,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=138403,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=138428,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=138453,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=138478,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=138503,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=138528,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=138553,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=138578,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=138603,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=138628,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=138653,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=138678,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=138703,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=138728,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=138753,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=138778,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=138803,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=138828,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=138853,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=138878,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=138903,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=138926,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=138951,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=138976,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=139001,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=139026,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=139051,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=139076,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=139101,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=139126,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=139151,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=139176,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=139199,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=139224,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=139249,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=139274,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=139297,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=139322,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=139347,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=139372,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=139397,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=139422,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=139447,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=139472,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=139497,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=139522,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=139547,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=139572,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=139597,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=139622,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=139647,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=139672,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=139697,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=139722,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=139747,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=139772,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=139797,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=139822,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=139847,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=139872,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=139897,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=139922,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=139945,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=139970,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=139995,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=140020,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=140045,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=140070,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=140095,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=140118,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=140143,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=140168,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=140193,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=140218,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=140243,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=140268,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=140293,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=140318,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=140343,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=140368,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=140393,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=140418,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=140443,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=140468,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=140493,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=140518,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=140543,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=140566,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=140591,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=140616,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=140641,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=140666,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=140691,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=140716,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=140741,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=140766,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=140791,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=140816,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=140841,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=140866,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=140891,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=140916,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=140941,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=140966,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=140991,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=141016,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=141041,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=141066,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=141091,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=141116,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=141141,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=141166,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=141191,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=141216,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=141241,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=141266,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=141291,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=141316,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=141339,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=141364,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=141389,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=141412,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=141437,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=141460,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=141483,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=141508,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=141533,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=141558,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=141583,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=141608,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=141633,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=141658,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=141683,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=141708,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=141733,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=141758,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=141783,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=141808,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=141831,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=141856,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=141881,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=141906,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=141931,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=141956,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=141981,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=142006,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=142029,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=142054,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=142079,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=142104,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=142129,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=142154,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=142179,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=142202,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=142227,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=142250,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=142273,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=142298,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=142321,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=142346,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=142371,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=142394,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=142419,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=142444,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=142469,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=142494,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=142517,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=142542,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=142567,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=142592,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=142617,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=142642,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=142665,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=142690,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=142715,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=142740,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=142765,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=142790,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=142815,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=142840,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=142865,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=142890,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=142915,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=142940,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=142965,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=142990,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=143015,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=143040,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=143065,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=143090,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=143115,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=143140,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=143165,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=143190,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=143215,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=143240,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=143265,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=143290,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=143315,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=143338,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=143363,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=143388,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=143413,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=143438,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=143463,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=143488,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=143513,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=143538,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=143563,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=143588,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=143613,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=143638,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=143663,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=143688,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=143713,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=143738,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=143761,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=143786,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=143811,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=143836,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=143861,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=143886,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=143911,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=143934,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=143959,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=143984,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=144009,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=144034,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=144059,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=144084,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=144109,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=144134,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=144159,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=144184,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=144209,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=144234,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=144259,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=144284,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=144309,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=144334,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=144359,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=144384,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=144409,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=144434,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=144457,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=144482,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=144507,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=144532,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=144557,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=144582,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=144607,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=144630,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=144655,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=144680,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=144705,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=144730,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=144755,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=144780,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=144803,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=144828,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=144853,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=144878,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=144903,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=144928,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=144953,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=144978,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=145003,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=145028,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=145053,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=145078,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=145103,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=145128,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=145153,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=145176,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=145199,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=145224,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=145249,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=145274,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=145299,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=145324,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=145349,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=145374,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=145399,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=145424,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=145449,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=145474,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=145499,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=145524,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=145549,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=145574,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=145599,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=145624,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=145649,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=145674,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=145699,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=145724,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=145749,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=145774,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=145799,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=145824,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=145849,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=145874,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=145899,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=145924,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=145949,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=145974,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=145999,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=146024,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=146049,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=146074,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=146099,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=146124,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=146149,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=146174,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=146199,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=146224,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=146249,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=146274,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=146299,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=146324,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=146349,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=146374,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=146399,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=146424,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=146449,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=146474,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=146499,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=146524,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=146549,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=146574,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=146599,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=146624,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=146649,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=146674,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=146699,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=146724,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=146749,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=146774,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=146799,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=146824,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=146849,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=146874,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=146899,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=146924,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=146949,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=146974,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=146999,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=147024,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=147049,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=147074,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=147099,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=147124,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=147149,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=147174,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=147199,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=147224,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=147249,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=147274,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=147299,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=147324,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=147349,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=147374,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=147399,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=147424,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=147447,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=147472,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=147497,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=147522,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=147547,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=147572,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=147597,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=147622,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=147647,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=147672,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=147697,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=147722,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=147747,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=147772,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=147797,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=147822,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=147847,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=147872,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=147897,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=147922,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=147947,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=147972,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=147997,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=148022,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=148047,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=148072,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=148097,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=148122,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=148147,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=148172,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=148197,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=148222,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=148247,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=148272,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=148297,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=148322,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=148347,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=148372,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=148397,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=148422,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=148447,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=148472,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=148497,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=148522,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=148547,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=148572,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=148597,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=148620,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=148645,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=148670,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=148695,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=148720,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=148745,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=148770,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=148793,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=148816,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=148839,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=148864,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=148887,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=148912,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=148937,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=148962,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=148985,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=149010,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=149035,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=149058,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=149081,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=149106,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=149131,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=149156,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=149181,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=149204,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=149229,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=149254,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=149279,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=149304,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=149329,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=149352,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=149377,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=149402,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=149427,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=149450,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=149475,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=149500,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=149525,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=149550,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=149575,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=149600,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=149625,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=149650,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=149675,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=149700,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=149725,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=149748,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=149773,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=149798,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=149821,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=149846,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=149871,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=149896,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=149921,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=149946,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=149971,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=149996,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=150021,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=150046,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=150069,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=150094,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=150119,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=150144,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=150169,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=150194,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=150219,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=150242,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=150267,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=150292,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=150317,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=150340,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=150365,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=150390,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=150415,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=150440,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=150465,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=150490,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=150513,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=150538,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=150563,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=150588,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=150613,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=150638,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=150663,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=150688,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=150713,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=150738,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=150763,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=150788,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=150813,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=150838,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=150863,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=150886,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=150911,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=150936,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=150961,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=150986,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=151011,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=151036,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=151059,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=151084,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=151107,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=151132,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=151157,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=151182,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=151207,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=151232,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=151257,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=151282,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=151307,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=151332,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=151357,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=151382,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=151407,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=151432,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=151457,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=151482,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=151507,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=151532,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=151557,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=151582,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=151607,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=151632,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=151657,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=151682,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=151705,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=151730,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=151753,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=151776,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=151801,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=151826,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=151851,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=151876,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=151901,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=151926,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=151951,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=151976,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=152001,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=152026,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=152051,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=152076,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=152101,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=152126,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=152151,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=152176,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=152199,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=152220,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=152245,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=152270,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=152295,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=152320,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=152345,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=152370,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=152395,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=152420,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=152445,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=152470,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=152495,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=152520,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=152545,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=152570,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=152595,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=152620,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=152645,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=152670,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=152695,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=152720,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=152745,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=152770,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=152795,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=152820,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=152845,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=152870,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=152895,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=152920,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=152945,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=152970,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=152995,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=153020,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=153045,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=153070,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=153095,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=153120,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=153145,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=153170,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=153195,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=153220,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=153245,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=153270,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=153295,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=153320,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=153345,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=153370,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=153395,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=153420,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=153445,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=153470,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=153495,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=153520,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=153545,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=153570,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=153595,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=153620,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=153645,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=153670,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=153695,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=153720,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=153745,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=153770,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=153795,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=153820,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=153845,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=153870,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=153895,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=153920,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=153945,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=153970,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=153995,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=154020,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=154045,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=154070,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=154095,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=154120,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=154145,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=154170,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=154195,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=154220,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=154245,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=154270,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=154295,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=154320,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=154345,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=154370,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=154395,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=154420,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=154445,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=154470,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=154495,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=154520,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=154545,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=154570,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=154595,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=154620,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=154645,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=154670,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=154695,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=154720,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=154745,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=154770,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=154795,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=154820,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=154845,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=154870,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=154895,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=154920,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=154945,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=154970,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=154995,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=155020,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=155045,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=155070,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=155093,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=155118,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=155143,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=155166,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=155191,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=155216,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=155241,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=155264,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=155289,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=155312,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=155337,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=155362,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=155387,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=155412,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=155435,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=155460,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=155485,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=155510,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=155535,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=155560,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=155585,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=155610,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=155633,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=155658,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=155683,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=155708,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=155733,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=155758,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=155783,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=155808,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=155833,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=155856,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=155881,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=155906,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=155931,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=155956,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=155981,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=156006,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=156031,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=156056,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=156081,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=156106,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=156131,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=156156,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=156181,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=156206,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=156231,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=156256,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=156281,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=156304,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=156329,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=156354,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=156379,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=156404,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=156429,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=156454,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=156479,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=156504,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=156529,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=156552,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=156577,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=156602,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=156627,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=156652,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=156677,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=156702,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=156727,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=156752,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=156775,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=156800,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=156825,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=156850,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=156875,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=156900,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=156925,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=156950,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=156975,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=157000,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=157025,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=157050,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=157075,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=157100,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=157125,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=157150,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=157175,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=157200,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=157225,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=157250,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=157275,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=157300,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=157325,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=157350,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=157375,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=157400,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=157425,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=157450,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=157475,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=157500,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=157525,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=157550,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=157575,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=157600,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=157625,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=157650,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=157675,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=157700,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=157725,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=157750,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=157775,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=157800,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=157825,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=157850,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=157875,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=157900,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=157925,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=157950,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=157975,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=158000,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=158025,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=158050,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=158075,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=158100,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=158125,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=158150,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=158175,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=158200,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=158225,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=158250,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=158275,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=158300,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=158325,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=158350,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=158375,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=158400,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=158425,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=158450,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=158475,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=158500,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=158525,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=158550,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=158575,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=158600,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=158625,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=158650,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=158675,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=158700,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=158725,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=158750,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=158775,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=158800,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=158825,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=158848,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=158873,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=158898,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=158923,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=158946,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=158971,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=158994,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=159019,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=159042,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=159067,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=159092,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=159117,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=159142,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=159167,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=159192,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=159217,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=159242,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=159267,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=159292,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=159317,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=159342,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=159367,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=159390,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=159415,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=159440,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=159465,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=159490,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=159515,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=159538,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=159563,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=159588,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=159613,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=159638,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=159661,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=159684,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=159709,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=159734,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=159759,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=159784,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=159809,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=159834,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=159859,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=159884,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=159907,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=159932,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=159957,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=159982,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=160007,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=160032,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=160057,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=160082,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=160107,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=160132,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=160155,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=160180,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=160205,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=160228,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=160253,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=160278,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=160303,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=160328,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=160353,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=160378,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=160403,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=160426,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=160451,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=160476,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=160501,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=160526,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=160551,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=160576,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=160601,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=160626,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=160651,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=160676,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=160701,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=160726,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=160751,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=160776,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=160801,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=160826,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=160851,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=160876,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=160901,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=160926,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=160951,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=160976,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=161001,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=161026,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=161051,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=161076,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=161101,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=161126,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=161151,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=161176,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=161201,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=161226,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=161251,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=161274,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=161299,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=161322,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=161345,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=161370,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=161395,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=161418,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=161443,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=161468,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=161491,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=161516,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=161539,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=161564,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=161589,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=161614,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=161639,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=161664,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=161689,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=161714,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=161739,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=161764,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=161789,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=161814,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=161839,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=161864,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=161889,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=161914,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=161939,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=161964,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=161989,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=162014,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=162039,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=162064,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=162089,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=162114,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=162139,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=162164,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=162189,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=162214,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=162239,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=162264,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=162289,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=162314,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=162339,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=162364,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=162389,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=162414,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=162439,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=162464,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=162489,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=162514,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=162539,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=162564,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=162589,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=162614,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=162639,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=162664,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=162689,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=162714,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=162739,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=162764,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=162789,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=162814,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=162839,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=162864,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=162889,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=162914,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=162939,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=162964,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=162989,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=163014,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=163039,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=163062,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=163087,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=163112,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=163137,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=163162,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=163187,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=163212,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=163237,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=163262,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=163287,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=163312,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=163337,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=163362,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=163387,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=163412,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=163437,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=163462,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=163487,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=163512,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=163537,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=163562,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=163587,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=163612,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=163637,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=163662,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=163687,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=163712,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=163737,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=163762,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=163787,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=163812,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=163837,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=163862,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=163887,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=163912,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=163937,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=163962,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=163987,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=164012,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=164037,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=164062,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=164087,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=164112,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=164137,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=164162,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=164187,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=164212,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=164237,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=164262,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=164287,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=164312,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=164337,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=164362,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=164387,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=164412,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=164437,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=164462,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=164487,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=164510,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=164533,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=164558,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=164581,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=164604,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=164627,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=164650,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=164673,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=164696,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=164719,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=164742,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=164765,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=164788,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=164811,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=164836,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=164859,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=164884,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=164909,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=164934,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=164959,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=164984,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=165009,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=165034,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=165059,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=165084,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=165109,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=165134,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=165159,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=165184,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=165209,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=165234,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=165259,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=165284,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=165309,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=165334,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=165359,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=165384,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=165409,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=165434,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=165459,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=165484,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=165509,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=165534,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=165559,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=165584,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=165609,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=165634,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=165659,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=165684,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=165709,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=165734,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=165759,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=165784,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=165809,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=165834,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=165859,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=165884,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=165909,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=165934,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=165959,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=165984,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=166009,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=166034,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=166059,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=166084,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=166109,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=166134,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=166159,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=166184,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=166209,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=166234,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=166259,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=166284,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=166309,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=166334,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=166359,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=166384,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=166409,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=166434,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=166459,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=166484,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=166509,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=166534,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=166559,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=166584,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=166609,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=166634,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=166659,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=166684,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=166709,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=166734,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=166759,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=166784,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=166809,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=166834,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=166859,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=166884,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=166909,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=166934,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=166959,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=166984,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=167009,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=167034,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=167059,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=167084,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=167109,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=167134,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=167159,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=167184,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=167209,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=167234,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=167259,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=167284,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=167309,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=167334,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=167359,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=167384,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=167409,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=167434,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=167459,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=167484,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=167509,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=167534,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=167559,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=167584,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=167609,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=167634,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=167659,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=167684,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=167709,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=167734,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=167759,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=167784,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=167809,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=167834,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=167859,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=167884,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=167909,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=167934,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=167959,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=167984,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=168009,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=168034,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=168059,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=168084,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=168109,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=168134,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=168159,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=168184,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=168209,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=168234,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=168259,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=168284,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=168309,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=168334,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=168359,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=168384,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=168409,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=168434,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=168459,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=168484,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=168509,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=168534,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=168559,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=168584,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=168609,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=168634,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=168659,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=168684,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=168709,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=168734,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=168759,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=168784,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=168809,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=168834,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=168859,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=168884,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=168909,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=168934,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=168959,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=168984,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=169009,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=169034,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=169059,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=169084,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=169109,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=169134,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=169159,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=169184,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=169209,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=169234,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=169259,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=169284,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=169309,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=169334,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=169359,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=169384,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=169409,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=169434,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=169459,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=169486,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=169511,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=169536,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=169561,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=169586,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=169611,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=169636,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=169661,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=169686,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=169711,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=169736,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=169761,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=169786,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=169811,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=169836,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=169861,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=169886,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=169911,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=169936,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=169961,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=169986,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=170011,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=170036,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=170061,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=170086,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=170111,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=170136,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=170161,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=170186,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=170211,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=170236,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=170261,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=170286,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=170311,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=170336,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=170361,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=170386,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=170411,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=170436,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=170461,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=170486,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=170511,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=170536,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=170561,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=170586,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=170611,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=170636,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=170661,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=170686,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=170711,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=170736,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=170761,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=170786,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=170811,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=170836,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=170861,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=170886,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=170911,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=170936,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=170961,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=170986,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=171011,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=171036,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=171061,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=171086,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=171111,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=171136,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=171161,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=171186,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=171211,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=171236,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=171261,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=171286,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=171311,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=171336,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=171361,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=171386,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=171411,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=171436,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=171461,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=171486,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=171511,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=171536,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=171561,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=171586,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=171611,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=171636,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=171661,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=171686,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=171711,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=171736,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=171761,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=171786,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=171811,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=171836,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=171861,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=171886,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=171911,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=171936,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=171961,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=171986,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=172011,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=172036,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=172061,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=172086,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=172111,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=172136,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=172161,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=172186,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=172211,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=172236,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=172261,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=172286,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=172311,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=172336,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=172361,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=172386,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=172411,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=172436,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=172461,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=172486,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=172511,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=172536,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=172561,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=172586,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=172611,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=172636,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=172661,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=172686,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=172711,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=172736,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=172761,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=172786,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=172811,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=172836,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=172861,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=172886,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=172911,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=172936,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=172961,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=172986,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=173011,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=173036,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=173061,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=173086,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=173111,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=173136,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=173161,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=173186,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=173211,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=173236,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=173261,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=173286,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=173311,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=173336,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=173361,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=173386,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=173411,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=173436,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=173461,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=173486,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=173511,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=173536,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=173561,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=173584,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=173609,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=173634,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=173659,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=173684,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=173709,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=173734,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=173757,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=173782,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=173807,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=173832,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=173857,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=173882,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=173907,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=173932,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=173957,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=173982,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=174007,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=174032,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=174057,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=174082,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=174107,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=174132,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=174157,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=174182,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=174207,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=174232,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=174257,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=174282,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=174307,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=174332,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=174357,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=174382,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=174407,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=174432,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=174457,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=174482,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=174507,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=174532,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=174555,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=174580,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=174605,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=174630,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=174655,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=174680,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=174705,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=174730,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=174755,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=174780,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=174805,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=174830,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=174855,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=174880,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=174905,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=174930,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=174955,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=174980,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=175005,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=175030,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=175055,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=175080,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=175105,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=175130,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=175155,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=175180,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=175205,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=175230,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=175253,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=175278,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=175303,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=175328,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=175353,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=175378,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=175403,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=175428,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=175453,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=175478,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=175503,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=175528,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=175553,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=175576,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=175601,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=175626,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=175651,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=175676,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=175701,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=175726,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=175751,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=175776,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=175801,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=175826,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=175851,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=175876,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=175901,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=175926,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=175951,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=175976,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=176001,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=176026,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=176051,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=176076,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=176101,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=176126,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=176151,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=176176,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=176201,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=176226,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=176251,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=176276,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=176301,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=176326,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=176351,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=176376,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=176401,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=176426,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=176451,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=176476,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=176501,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=176526,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=176551,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=176576,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=176601,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=176626,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=176651,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=176676,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=176701,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=176724,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=176749,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=176774,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=176799,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=176824,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=176849,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=176874,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=176899,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=176924,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=176949,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=176974,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=176999,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=177024,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=177049,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=177074,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=177099,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=177124,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=177149,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=177174,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=177199,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=177224,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=177249,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=177274,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=177299,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=177324,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=177349,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=177374,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=177399,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=177424,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=177449,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=177474,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=177499,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=177524,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=177549,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=177574,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=177599,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=177624,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=177649,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=177674,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=177699,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=177724,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=177749,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=177774,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=177799,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=177824,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=177849,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=177874,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=177899,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=177924,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=177949,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=177974,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=177999,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=178024,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=178049,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=178074,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=178099,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=178124,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=178149,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=178174,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=178199,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=178224,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=178249,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=178274,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=178299,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=178324,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=178349,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=178374,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=178399,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=178424,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=178449,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=178474,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=178499,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=178524,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=178549,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=178574,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=178599,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=178624,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=178649,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=178674,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=178699,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=178724,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=178749,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=178774,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=178799,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=178824,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=178849,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=178874,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=178899,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=178924,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=178949,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=178974,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=178999,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=179024,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=179049,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=179074,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=179099,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=179124,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=179149,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=179174,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=179199,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=179224,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=179249,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=179274,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=179299,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=179324,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=179349,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=179374,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=179399,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=179424,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=179449,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=179474,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=179499,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=179524,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=179549,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=179574,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=179599,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=179624,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=179649,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=179674,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=179699,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=179724,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=179749,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=179774,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=179799,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=179824,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=179847,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=179872,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=179897,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=179922,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=179947,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=179972,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=179997,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=180022,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=180047,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=180072,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=180097,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=180122,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=180147,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=180172,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=180195,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=180220,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=180245,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=180270,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=180295,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=180320,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=180345,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=180370,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=180395,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=180420,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=180445,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=180470,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=180495,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=180520,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=180545,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=180570,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=180595,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=180618,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=180643,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=180668,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=180693,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=180718,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=180743,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=180768,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=180793,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=180818,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=180841,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=180864,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=180889,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=180912,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=180937,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=180962,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=180987,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=181012,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=181037,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=181062,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=181085,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=181108,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=181133,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=181158,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=181183,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=181206,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=181229,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=181254,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=181279,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=181304,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=181327,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=181352,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=181377,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=181402,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=181427,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=181452,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=181477,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=181502,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=181527,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=181552,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=181577,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=181600,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=181625,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=181650,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=181675,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=181700,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=181725,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=181750,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=181773,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=181798,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=181823,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=181848,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=181871,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=181896,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=181921,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=181944,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=181969,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=181994,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=182019,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=182044,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=182069,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=182094,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=182119,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=182142,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=182167,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=182190,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=182215,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=182240,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=182265,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=182290,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=182315,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=182338,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=182363,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=182386,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=182411,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=182436,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=182461,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=182486,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=182511,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=182536,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=182561,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=182584,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=182609,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=182634,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=182659,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=182684,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=182709,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=182734,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=182759,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=182784,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=182809,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=182834,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=182859,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=182884,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=182909,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=182934,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=182959,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=182984,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=183009,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=183034,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=183059,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=183084,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=183109,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=183134,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=183159,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=183184,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=183209,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=183234,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=183259,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=183284,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=183309,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=183334,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=183359,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=183384,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=183409,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=183434,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=183459,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=183484,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=183509,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=183534,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=183559,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=183584,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=183609,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=183634,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=183659,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=183684,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=183709,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=183734,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=183759,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=183784,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=183809,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=183834,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=183859,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=183884,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=183909,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=183934,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=183959,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=183984,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=184009,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=184034,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=184059,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=184084,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=184109,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=184134,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=184159,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=184184,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=184209,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=184234,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=184259,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=184284,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=184309,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=184334,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=184359,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=184384,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=184409,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=184434,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=184459,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=184484,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=184509,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=184534,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=184559,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=184584,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=184609,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=184634,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=184659,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=184684,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=184709,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=184734,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=184759,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=184784,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=184809,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=184834,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=184859,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=184882,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=184905,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=184928,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=184953,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=184978,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=185003,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=185028,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=185053,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=185078,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=185103,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=185128,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=185153,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=185178,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=185203,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=185228,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=185253,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=185278,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=185303,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=185328,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=185353,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=185378,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=185403,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=185426,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=185449,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=185474,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=185499,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=185524,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=185549,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=185574,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=185599,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=185624,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=185649,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=185674,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=185699,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=185724,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=185747,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=185772,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=185797,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=185820,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=185845,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=185866,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=185889,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=185909,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=185936,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=185957,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=185978,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=186001,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=186028,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=186055,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=186076,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=186096,.adv_w=224,.box_w=14,.box_h=6,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=186107,.adv_w=224,.box_w=14,.box_h=6,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=186118,.adv_w=224,.box_w=14,.box_h=3,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=186124,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=186149,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=186170,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=186190,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=186210,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=186231,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=186251,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=186272,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=186293,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=186313,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=186334,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=186355,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=186375,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=186398,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=186419,.adv_w=224,.box_w=14,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=186433,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=186454,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=186475,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=186500,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=186520,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=186540,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=186561,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=186581,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=186601,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=186621,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=186642,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=186662,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=186682,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=186703,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=186723,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=186743,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=186763,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=186783,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=186804,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=186824,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-3}, +{.bitmap_index=186849,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=186869,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=186890,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=186910,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=186931,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=186951,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=186971,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=186991,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=187011,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=187031,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=187056,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=187081,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=187106,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=187131,.adv_w=224,.box_w=14,.box_h=2,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=187135,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=187160,.adv_w=224,.box_w=14,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=187176,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=187199,.adv_w=224,.box_w=14,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=187215,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=187238,.adv_w=224,.box_w=14,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=187254,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=187275,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-4}, +{.bitmap_index=187296,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=187317,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=187338,.adv_w=224,.box_w=14,.box_h=16,.ofs_x=0,.ofs_y=-4}, +{.bitmap_index=187366,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=187387,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=187410,.adv_w=224,.box_w=14,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=187424,.adv_w=224,.box_w=14,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=187438,.adv_w=224,.box_w=14,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=187454,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-4}, +{.bitmap_index=187475,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-4}, +{.bitmap_index=187496,.adv_w=224,.box_w=14,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=187510,.adv_w=224,.box_w=14,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=187526,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=187546,.adv_w=224,.box_w=14,.box_h=9,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=187562,.adv_w=224,.box_w=14,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=187576,.adv_w=224,.box_w=14,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=187590,.adv_w=224,.box_w=14,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=187604,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-4}, +{.bitmap_index=187625,.adv_w=224,.box_w=14,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=187639,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=187664,.adv_w=224,.box_w=14,.box_h=15,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=187691,.adv_w=224,.box_w=14,.box_h=14,.ofs_x=0,.ofs_y=-2}, +{.bitmap_index=187716,.adv_w=224,.box_w=14,.box_h=8,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=187730,.adv_w=224,.box_w=14,.box_h=12,.ofs_x=0,.ofs_y=-1}, +{.bitmap_index=187751,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=187771,.adv_w=224,.box_w=14,.box_h=13,.ofs_x=0,.ofs_y=0}, +{.bitmap_index=187794,.adv_w=224,.box_w=14,.box_h=11,.ofs_x=0,.ofs_y=0} +}; +static const uint16_t unicode[]={0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,225,243,251,267,301,331,430,432,434,436,438,440,442,444,679,681,881,882,883,884,885,886,887,888,889,890,891,892,893,894,895,896,897,899,900,901,902,903,904,905,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,993,1008,1009,1010,1011,1012,1013,1014,1015,1016,1017,1018,1019,1020,1021,1022,1023,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1073,8162,8163,8176,8177,8178,8179,8180,8181,8182,8184,8185,8186,8188,8189,8190,8192,8193,8194,8197,8198,8199,8208,8210,8211,8213,8217,8218,8219,8220,8226,8231,8232,8233,8241,8416,8419,8421,8425,8426,8431,8435,8438,8449,8450,8454,8455,8459,8462,8469,8475,8512,8513,8514,8515,8516,8517,8518,8519,8520,8521,8522,8523,8560,8561,8562,8563,8564,8565,8566,8567,8568,8569,8600,8601,8612,8613,8614,8619,8620,8624,8626,8628,8646,8647,8648,8649,8661,8680,8687,8689,8698,8701,8702,8704,8709,8711,8712,8713,8714,8715,8718,8724,8725,8726,8727,8733,8744,8748,8768,8769,8772,8773,8782,8783,8825,8837,8946,9280,9281,9282,9283,9284,9285,9286,9287,9288,9289,9300,9301,9302,9303,9304,9305,9306,9307,9308,9309,9310,9311,9312,9313,9314,9315,9316,9317,9318,9319,9320,9321,9322,9323,9324,9325,9326,9327,9328,9329,9330,9331,9332,9333,9334,9335,9336,9337,9338,9339,9440,9441,9442,9443,9444,9445,9446,9447,9448,9449,9450,9451,9452,9453,9454,9455,9456,9457,9458,9459,9460,9461,9462,9463,9464,9465,9466,9467,9468,9469,9470,9471,9472,9473,9474,9475,9476,9477,9478,9479,9480,9481,9482,9483,9484,9485,9486,9487,9488,9489,9490,9491,9492,9493,9494,9495,9496,9497,9498,9499,9500,9501,9502,9503,9504,9505,9506,9507,9508,9509,9510,9511,9512,9513,9514,9515,9600,9601,9618,9619,9638,9639,9643,9646,9647,9696,9697,9698,9699,9701,9702,9705,9710,9711,9718,9719,9724,9725,9726,9727,9743,9760,9761,9762,9792,9793,9794,9795,9796,9797,9798,9799,9800,9801,9802,9803,9804,9805,9806,9807,9810,9811,9812,9813,9814,9815,9816,9817,9818,9819,9820,9821,9856,9885,9886,12256,12257,12258,12259,12261,12264,12265,12266,12267,12268,12269,12270,12271,12272,12273,12275,12276,12277,12278,12279,12321,12322,12323,12324,12325,12326,12327,12328,12329,12330,12331,12332,12333,12334,12335,12336,12337,12338,12339,12340,12341,12342,12343,12344,12345,12346,12347,12348,12349,12350,12351,12352,12353,12354,12355,12356,12357,12358,12359,12360,12361,12362,12363,12364,12365,12366,12367,12368,12369,12370,12371,12372,12373,12374,12375,12376,12377,12378,12379,12380,12381,12382,12383,12384,12385,12386,12387,12388,12389,12390,12391,12392,12393,12394,12395,12396,12397,12398,12399,12400,12401,12402,12403,12417,12418,12419,12420,12421,12422,12423,12424,12425,12426,12427,12428,12429,12430,12431,12432,12433,12434,12435,12436,12437,12438,12439,12440,12441,12442,12443,12444,12445,12446,12447,12448,12449,12450,12451,12452,12453,12454,12455,12456,12457,12458,12459,12460,12461,12462,12463,12464,12465,12466,12467,12468,12469,12470,12471,12472,12473,12474,12475,12476,12477,12478,12479,12480,12481,12482,12483,12484,12485,12486,12487,12488,12489,12490,12491,12492,12493,12494,12495,12496,12497,12498,12499,12500,12501,12502,12507,12517,12518,12519,12520,12521,12522,12523,12524,12525,12526,12527,12528,12529,12530,12531,12532,12533,12534,12535,12536,12537,12538,12539,12540,12541,12542,12543,12544,12545,12546,12547,12548,12549,12550,12551,12552,12553,12800,12801,12802,12803,12804,12805,12806,12807,12808,12809,19936,19937,19939,19943,19944,19945,19946,19947,19948,19949,19950,19952,19953,19955,19956,19957,19958,19960,19961,19962,19963,19964,19965,19966,19970,19972,19973,19975,19976,19978,19979,19980,19981,19984,19986,19988,19990,19992,19993,19994,19995,19997,19998,19999,20003,20005,20007,20008,20009,20011,20012,20013,20014,20015,20016,20018,20019,20020,20022,20024,20025,20028,20029,20030,20031,20032,20033,20038,20041,20048,20049,20051,20062,20070,20072,20073,20075,20076,20077,20078,20079,20081,20082,20083,20084,20085,20088,20090,20091,20095,20096,20097,20098,20100,20101,20102,20103,20104,20105,20107,20108,20109,20110,20114,20115,20117,20122,20123,20127,20128,20129,20130,20131,20132,20133,20134,20135,20137,20138,20139,20141,20142,20145,20147,20148,20149,20150,20151,20152,20153,20157,20158,20159,20161,20163,20164,20165,20168,20170,20171,20172,20176,20178,20179,20181,20182,20183,20187,20189,20191,20193,20201,20202,20205,20206,20207,20208,20209,20215,20216,20217,20218,20219,20222,20223,20224,20226,20228,20229,20230,20231,20234,20235,20239,20240,20242,20244,20246,20248,20250,20252,20253,20259,20262,20269,20270,20271,20272,20273,20275,20277,20279,20280,20281,20282,20283,20284,20285,20286,20287,20288,20290,20291,20292,20293,20295,20297,20300,20303,20304,20307,20308,20310,20315,20316,20318,20319,20323,20324,20326,20328,20329,20331,20333,20335,20337,20340,20343,20347,20349,20352,20355,20357,20358,20359,20360,20361,20362,20364,20366,20367,20373,20383,20387,20388,20389,20394,20398,20399,20400,20401,20407,20408,20410,20412,20413,20414,20415,20417,20419,20422,20424,20425,20426,20429,20430,20431,20433,20435,20440,20442,20446,20459,20460,20461,20463,20466,20468,20472,20473,20474,20476,20479,20481,20485,20486,20488,20489,20490,20492,20493,20494,20506,20508,20510,20515,20519,20520,20524,20526,20527,20533,20538,20540,20549,20556,20566,20567,20571,20574,20575,20576,20581,20584,20589,20611,20613,20615,20616,20617,20620,20626,20634,20635,20655,20662,20666,20678,20679,20684,20685,20686,20691,20693,20699,20710,20711,20715,20722,20737,20767,20768,20769,20771,20772,20773,20774,20776,20777,20779,20781,20785,20788,20789,20790,20794,20796,20802,20805,20808,20811,20812,20813,20814,20816,20817,20819,20820,20821,20822,20823,20824,20825,20827,20828,20829,20832,20833,20834,20837,20839,20840,20841,20844,20845,20850,20853,20854,20855,20857,20859,20860,20864,20866,20868,20869,20875,20876,20879,20880,20881,20882,20883,20885,20886,20887,20891,20892,20893,20896,20900,20902,20903,20905,20907,20908,20911,20913,20923,20925,20928,20929,20932,20939,20941,20943,20944,20947,20949,20950,20952,20953,20954,20955,20956,20957,20959,20960,20961,20962,20963,20966,20967,20968,20970,20973,20974,20977,20978,20982,20983,20984,20985,20986,20987,20989,20992,20996,21000,21001,21003,21005,21006,21008,21010,21011,21014,21015,21016,21017,21018,21019,21021,21023,21024,21025,21026,21027,21034,21036,21037,21040,21041,21044,21046,21052,21054,21057,21061,21063,21065,21066,21071,21074,21085,21087,21089,21090,21096,21104,21107,21115,21117,21118,21119,21120,21121,21122,21123,21128,21129,21130,21131,21132,21133,21137,21138,21139,21150,21151,21155,21159,21161,21163,21168,21170,21173,21174,21176,21183,21188,21200,21209,21210,21214,21215,21216,21221,21222,21224,21229,21231,21232,21237,21238,21239,21241,21242,21245,21248,21249,21251,21254,21258,21262,21273,21274,21275,21278,21279,21281,21283,21285,21287,21288,21289,21290,21294,21295,21297,21298,21299,21301,21302,21303,21306,21308,21310,21311,21312,21313,21314,21315,21316,21318,21319,21321,21323,21326,21327,21328,21329,21331,21332,21333,21335,21336,21338,21340,21343,21346,21348,21349,21350,21353,21355,21356,21357,21365,21368,21370,21373,21375,21378,21379,21381,21382,21384,21385,21390,21398,21403,21407,21409,21410,21416,21417,21418,21419,21420,21421,21425,21428,21430,21431,21432,21433,21435,21439,21440,21443,21444,21445,21446,21448,21449,21450,21451,21452,21453,21454,21455,21456,21457,21458,21459,21461,21462,21463,21464,21465,21467,21468,21469,21473,21475,21476,21478,21480,21481,21482,21484,21485,21486,21487,21488,21489,21490,21491,21493,21494,21495,21499,21501,21502,21503,21504,21505,21507,21510,21511,21512,21513,21515,21516,21517,21518,21519,21521,21522,21524,21525,21528,21529,21531,21532,21534,21536,21539,21542,21544,21546,21547,21552,21554,21555,21556,21557,21558,21559,21560,21561,21563,21564,21570,21572,21574,21576,21585,21586,21587,21589,21590,21591,21592,21594,21595,21596,21597,21600,21601,21602,21604,21606,21611,21612,21614,21615,21616,21618,21620,21621,21622,21625,21626,21627,21629,21635,21636,21637,21638,21639,21640,21641,21642,21643,21644,21645,21647,21649,21651,21652,21655,21656,21659,21661,21663,21664,21665,21666,21668,21670,21671,21672,21673,21676,21677,21678,21679,21680,21681,21682,21683,21684,21685,21687,21689,21690,21692,21693,21694,21695,21701,21702,21703,21704,21705,21706,21709,21710,21714,21715,21722,21724,21725,21727,21729,21734,21735,21737,21743,21744,21745,21748,21755,21760,21762,21763,21764,21767,21770,21772,21774,21775,21776,21777,21779,21783,21788,21790,21791,21793,21795,21796,21798,21801,21802,21807,21808,21813,21814,21820,21825,21828,21829,21830,21831,21834,21836,21837,21838,21842,21845,21846,21847,21848,21851,21852,21854,21856,21857,21858,21859,21860,21862,21863,21864,21865,21866,21867,21871,21873,21876,21880,21881,21884,21885,21887,21895,21905,21907,21909,21911,21913,21914,21915,21917,21918,21923,21924,21925,21929,21932,21933,21934,21937,21938,21939,21940,21942,21948,21949,21951,21953,21955,21956,21957,21958,21960,21962,21963,21964,21967,21970,21971,21973,21975,21981,21982,21984,21985,21989,21992,21993,21996,21998,21999,22008,22011,22014,22015,22019,22020,22023,22028,22029,22033,22034,22036,22038,22041,22043,22047,22057,22060,22061,22062,22068,22071,22072,22073,22076,22082,22084,22088,22089,22090,22091,22092,22097,22102,22107,22108,22117,22118,22126,22127,22131,22147,22159,22167,22172,22186,22189,22196,22199,22202,22203,22205,22206,22207,22208,22209,22210,22212,22215,22219,22221,22224,22225,22228,22229,22233,22234,22237,22238,22239,22243,22244,22246,22248,22249,22250,22268,22271,22275,22280,22281,22282,22284,22285,22286,22287,22288,22291,22297,22298,22299,22302,22304,22306,22311,22314,22316,22317,22318,22319,22320,22321,22327,22330,22331,22332,22333,22334,22335,22336,22337,22340,22342,22344,22345,22346,22347,22349,22351,22355,22358,22359,22363,22364,22370,22371,22372,22373,22374,22379,22380,22386,22387,22394,22395,22400,22401,22402,22403,22404,22406,22407,22409,22411,22413,22414,22418,22420,22424,22434,22435,22443,22446,22447,22450,22452,22453,22456,22457,22458,22461,22463,22464,22468,22477,22479,22484,22488,22489,22490,22493,22496,22498,22502,22503,22507,22509,22513,22517,22521,22526,22528,22529,22532,22538,22544,22549,22564,22572,22573,22577,22580,22584,22590,22597,22603,22604,22622,22624,22625,22627,22629,22633,22642,22643,22649,22650,22654,22655,22664,22665,22684,22689,22693,22705,22709,22724,22731,22732,22734,22736,22739,22742,22745,22754,22756,22759,22765,22767,22772,22773,22774,22777,22778,22780,22783,22788,22789,22791,22793,22794,22795,22796,22797,22798,22799,22801,22804,22807,22808,22809,22810,22812,22817,22818,22820,22823,22824,22825,22827,22830,22831,22833,22836,22837,22838,22839,22840,22842,22848,22850,22853,22867,22868,22870,22872,22873,22877,22881,22882,22883,22884,22886,22887,22888,22890,22893,22898,22899,22902,22903,22905,22910,22915,22916,22917,22920,22921,22922,22923,22926,22927,22930,22931,22937,22939,22942,22950,22954,22955,22960,22961,22962,22963,22964,22967,22968,22970,22972,22973,22979,22980,22981,22984,22988,23001,23003,23007,23009,23011,23012,23013,23014,23015,23016,23017,23020,23025,23027,23032,23036,23039,23040,23043,23045,23049,23057,23058,23060,23062,23068,23072,23078,23081,23082,23093,23098,23106,23111,23114,23124,23125,23126,23127,23130,23135,23154,23162,23163,23178,23186,23187,23189,23192,23198,23201,23202,23209,23212,23218,23220,23222,23224,23228,23232,23233,23235,23238,23241,23243,23249,23273,23286,23287,23314,23316,23319,23328,23344,23345,23347,23348,23349,23351,23352,23353,23354,23355,23356,23357,23359,23362,23363,23364,23365,23366,23369,23370,23372,23376,23377,23379,23381,23384,23386,23389,23392,23393,23395,23396,23397,23399,23400,23401,23403,23404,23407,23411,23413,23415,23416,23417,23418,23419,23420,23421,23422,23424,23425,23426,23427,23428,23429,23430,23434,23435,23440,23443,23444,23445,23446,23448,23449,23453,23454,23455,23458,23460,23461,23462,23463,23468,23472,23474,23475,23480,23485,23486,23487,23489,23492,23493,23496,23502,23504,23512,23513,23514,23515,23516,23519,23521,23524,23526,23529,23530,23533,23535,23537,23540,23541,23542,23544,23546,23548,23549,23554,23556,23557,23559,23564,23569,23572,23576,23577,23578,23579,23580,23581,23582,23583,23584,23585,23586,23589,23592,23593,23594,23595,23598,23599,23600,23601,23605,23609,23614,23616,23617,23619,23621,23622,23630,23631,23633,23641,23642,23647,23649,23650,23656,23660,23661,23664,23665,23668,23670,23671,23672,23673,23674,23675,23676,23682,23683,23689,23691,23692,23693,23697,23699,23701,23703,23704,23709,23711,23713,23716,23723,23730,23737,23745,23748,23749,23750,23752,23754,23757,23760,23771,23778,23779,23782,23783,23790,23796,23798,23803,23806,23812,23814,23815,23817,23821,23822,23828,23837,23838,23847,23850,23851,23852,23864,23867,23869,23881,23883,23884,23887,23892,23906,23929,23933,23959,23973,23981,23995,23997,23998,24001,24002,24005,24006,24007,24008,24009,24011,24014,24015,24017,24018,24019,24020,24023,24029,24030,24033,24034,24035,24037,24038,24040,24044,24047,24048,24049,24052,24053,24054,24056,24057,24058,24059,24060,24061,24070,24071,24077,24078,24081,24087,24088,24091,24092,24093,24098,24100,24101,24108,24116,24117,24123,24126,24129,24130,24139,24146,24147,24148,24150,24152,24154,24155,24156,24157,24159,24160,24164,24166,24167,24170,24171,24175,24176,24177,24179,24180,24181,24182,24183,24185,24186,24188,24190,24191,24192,24197,24198,24199,24205,24211,24213,24214,24215,24216,24217,24222,24233,24234,24241,24242,24243,24246,24251,24264,24266,24276,24278,24279,24282,24286,24287,24288,24289,24290,24291,24292,24296,24298,24299,24303,24305,24307,24309,24311,24312,24315,24319,24320,24325,24326,24327,24329,24330,24333,24335,24337,24345,24346,24348,24352,24368,24370,24371,24373,24374,24375,24376,24381,24385,24386,24388,24390,24393,24394,24396,24397,24400,24401,24403,24407,24409,24411,24412,24416,24417,24418,24420,24421,24423,24424,24425,24426,24427,24428,24432,24434,24437,24439,24440,24441,24444,24449,24456,24458,24461,24462,24469,24471,24476,24477,24483,24484,24485,24486,24489,24492,24493,24495,24496,24497,24498,24502,24503,24504,24505,24509,24512,24513,24516,24519,24522,24523,24525,24526,24529,24533,24536,24539,24541,24542,24543,24544,24545,24546,24547,24548,24549,24550,24554,24557,24558,24559,24562,24564,24565,24566,24569,24571,24572,24573,24576,24577,24581,24582,24583,24584,24585,24586,24587,24591,24597,24603,24604,24607,24609,24610,24611,24619,24621,24624,24626,24629,24633,24634,24637,24642,24643,24644,24647,24648,24649,24650,24651,24652,24653,24655,24656,24659,24662,24664,24665,24666,24667,24668,24669,24671,24675,24676,24681,24684,24685,24690,24692,24694,24698,24699,24701,24703,24704,24707,24710,24712,24715,24716,24717,24719,24721,24722,24724,24728,24731,24732,24741,24742,24746,24747,24753,24757,24760,24762,24764,24765,24767,24768,24774,24775,24776,24777,24779,24780,24781,24782,24783,24784,24787,24788,24790,24793,24794,24800,24801,24806,24808,24809,24813,24814,24815,24821,24826,24827,24831,24832,24835,24836,24838,24839,24843,24844,24863,24872,24874,24876,24878,24881,24885,24893,24898,24903,24904,24912,24917,24919,24939,24942,24948,24957,24967,24968,24969,24972,24983,24990,24994,25000,25002,25003,25009,25010,25012,25030,25045,25055,25062,25064,25066,25067,25068,25069,25070,25071,25072,25073,25074,25077,25078,25079,25080,25082,25083,25087,25089,25090,25092,25093,25098,25100,25102,25107,25108,25111,25117,25118,25119,25120,25121,25123,25127,25128,25129,25131,25132,25133,25134,25137,25138,25139,25140,25144,25147,25155,25158,25159,25161,25162,25163,25164,25165,25166,25167,25168,25171,25174,25177,25180,25182,25183,25184,25188,25193,25194,25201,25202,25203,25205,25206,25207,25208,25210,25211,25215,25216,25217,25218,25220,25221,25224,25227,25228,25233,25237,25241,25243,25244,25245,25247,25250,25252,25253,25254,25255,25256,25257,25258,25260,25261,25262,25264,25266,25267,25268,25270,25271,25272,25273,25274,25275,25276,25279,25282,25283,25285,25286,25287,25288,25289,25292,25293,25294,25295,25297,25299,25300,25302,25303,25308,25309,25310,25311,25313,25314,25319,25320,25321,25326,25329,25334,25338,25339,25341,25342,25343,25344,25345,25346,25347,25348,25349,25352,25354,25355,25359,25362,25369,25370,25373,25378,25379,25381,25382,25385,25387,25388,25389,25390,25391,25392,25397,25406,25407,25409,25410,25411,25415,25417,25421,25422,25425,25430,25431,25434,25435,25440,25442,25447,25448,25449,25450,25452,25454,25455,25456,25458,25462,25464,25472,25474,25475,25477,25479,25480,25481,25482,25484,25485,25486,25488,25491,25492,25495,25496,25498,25500,25502,25508,25510,25513,25517,25518,25519,25520,25522,25526,25534,25536,25537,25539,25545,25546,25549,25554,25556,25558,25560,25565,25567,25568,25569,25570,25573,25579,25580,25583,25584,25587,25588,25595,25596,25598,25600,25601,25606,25610,25612,25613,25620,25626,25629,25631,25633,25636,25637,25638,25639,25640,25642,25650,25652,25656,25662,25671,25673,25677,25688,25689,25690,25698,25700,25701,25703,25713,25714,25717,25718,25721,25725,25726,25732,25737,25740,25741,25742,25744,25749,25751,25752,25754,25756,25760,25762,25765,25773,25774,25776,25778,25783,25784,25790,25794,25796,25798,25824,25833,25842,25848,25861,25867,25870,25871,25876,25877,25878,25880,25881,25883,25886,25887,25893,25896,25897,25900,25903,25905,25909,25910,25913,25915,25917,25918,25922,25923,25926,25931,25932,25936,25938,25940,25943,25959,25963,25964,25968,25969,25971,25975,25977,25979,25980,25983,25985,25988,25989,25991,25993,25995,25997,25999,26000,26009,26012,26013,26017,26019,26020,26021,26022,26027,26028,26030,26031,26034,26038,26039,26048,26050,26053,26054,26055,26056,26057,26060,26061,26062,26063,26064,26065,26070,26071,26074,26080,26082,26083,26086,26090,26092,26094,26095,26099,26100,26101,26105,26109,26111,26112,26117,26119,26120,26125,26127,26129,26132,26133,26134,26140,26142,26145,26146,26147,26155,26156,26159,26162,26163,26164,26165,26166,26167,26170,26175,26177,26180,26182,26184,26190,26191,26192,26196,26198,26199,26202,26206,26210,26212,26215,26220,26225,26230,26231,26237,26247,26248,26254,26260,26265,26270,26297,26299,26300,26301,26310,26313,26320,26322,26323,26324,26327,26329,26332,26334,26335,26336,26339,26344,26345,26346,26347,26349,26352,26356,26357,26359,26363,26365,26367,26374,26376,26378,26379,26380,26381,26383,26385,26388,26389,26394,26397,26400,26402,26403,26406,26408,26409,26412,26414,26415,26416,26417,26419,26422,26428,26430,26431,26432,26433,26437,26440,26441,26442,26445,26447,26448,26450,26451,26453,26455,26460,26462,26463,26465,26468,26471,26473,26475,26480,26485,26487,26488,26490,26492,26493,26494,26498,26499,26501,26503,26504,26506,26507,26509,26511,26512,26515,26517,26518,26519,26520,26529,26531,26532,26533,26543,26544,26545,26546,26547,26548,26552,26553,26554,26556,26557,26558,26560,26562,26565,26569,26572,26575,26576,26577,26579,26580,26589,26591,26592,26597,26599,26600,26601,26602,26603,26604,26606,26607,26609,26611,26614,26615,26621,26625,26633,26634,26642,26643,26647,26648,26649,26652,26653,26654,26656,26657,26658,26659,26660,26661,26662,26664,26665,26666,26668,26670,26672,26673,26675,26676,26677,26688,26689,26690,26691,26692,26693,26694,26695,26696,26697,26699,26708,26710,26711,26721,26723,26725,26726,26735,26739,26743,26754,26758,26759,26760,26765,26767,26768,26771,26773,26784,26786,26793,26795,26797,26802,26805,26808,26810,26816,26819,26830,26832,26833,26837,26841,26842,26844,26849,26853,26859,26861,26862,26864,26866,26879,26880,26884,26893,26896,26900,26905,26909,26911,26914,26932,26935,26938,26941,26942,26944,26947,26950,26955,26958,26961,26967,26968,26969,26972,26976,26978,26980,26982,26983,26984,26985,26989,26996,26997,27000,27003,27004,27015,27016,27019,27021,27025,27028,27031,27035,27041,27050,27052,27054,27056,27060,27067,27071,27072,27085,27090,27101,27103,27106,27114,27127,27128,27135,27137,27144,27146,27151,27153,27157,27165,27166,27172,27175,27184,27192,27193,27195,27201,27205,27217,27225,27228,27232,27236,27246,27248,27249,27255,27264,27273,27275,27276,27392,27393,27394,27395,27396,27399,27410,27415,27416,27417,27418,27422,27427,27430,27431,27433,27436,27449,27457,27458,27459,27460,27461,27462,27463,27466,27481,27483,27484,27489,27490,27491,27492,27494,27495,27497,27498,27499,27501,27506,27507,27510,27514,27515,27521,27530,27539,27540,27541,27543,27551,27553,27554,27557,27563,27565,27567,27570,27571,27572,27573,27574,27575,27577,27579,27585,27594,27595,27599,27603,27605,27609,27613,27621,27622,27623,27629,27631,27632,27633,27635,27636,27637,27638,27640,27641,27642,27643,27647,27649,27650,27652,27654,27655,27656,27657,27658,27662,27663,27664,27666,27668,27669,27672,27677,27680,27681,27682,27686,27687,27689,27690,27696,27700,27701,27703,27707,27708,27709,27710,27711,27712,27713,27716,27720,27721,27722,27728,27730,27732,27734,27737,27741,27742,27745,27746,27747,27749,27750,27752,27753,27756,27759,27760,27763,27764,27769,27771,27775,27777,27779,27780,27781,27782,27783,27785,27786,27787,27788,27789,27790,27793,27794,27795,27800,27801,27803,27804,27805,27806,27807,27812,27813,27817,27818,27820,27824,27827,27828,27829,27830,27831,27835,27838,27840,27841,27842,27843,27845,27848,27850,27851,27854,27855,27856,27857,27859,27861,27862,27863,27864,27866,27867,27868,27869,27870,27873,27876,27879,27883,27884,27886,27890,27895,27897,27898,27899,27902,27903,27909,27911,27914,27915,27918,27921,27922,27923,27925,27929,27931,27932,27933,27934,27937,27939,27941,27942,27943,27944,27946,27947,27949,27950,27951,27953,27954,27955,27956,27961,27962,27964,27966,27968,27971,27974,27977,27978,27982,27983,27988,27991,27992,27996,28002,28005,28008,28009,28012,28014,28017,28019,28020,28021,28027,28029,28030,28031,28032,28033,28035,28036,28038,28039,28040,28041,28042,28043,28046,28047,28050,28053,28056,28063,28064,28068,28069,28070,28071,28075,28076,28081,28086,28088,28089,28093,28094,28096,28097,28100,28102,28107,28108,28110,28113,28115,28119,28121,28123,28124,28133,28138,28140,28141,28142,28144,28145,28148,28150,28151,28154,28157,28160,28161,28163,28164,28165,28169,28171,28173,28175,28178,28180,28184,28186,28195,28196,28205,28206,28211,28212,28214,28216,28219,28223,28235,28238,28254,28255,28259,28261,28262,28265,28271,28272,28280,28284,28287,28290,28293,28295,28298,28303,28305,28306,28308,28310,28311,28314,28315,28317,28321,28322,28327,28331,28335,28337,28339,28340,28341,28343,28346,28350,28351,28352,28353,28354,28356,28357,28358,28360,28361,28372,28377,28386,28390,28393,28399,28403,28404,28405,28416,28420,28425,28426,28427,28429,28431,28433,28435,28438,28446,28454,28455,28459,28461,28472,28476,28478,28482,28486,28493,28494,28498,28500,28504,28506,28508,28516,28520,28521,28524,28525,28526,28540,28545,28551,28563,28566,28569,28576,28578,28585,28593,28594,28606,28608,28609,28622,28623,28657,28666,28667,28675,28693,28697,28716,28719,28734,28739,28747,28748,28749,28751,28752,28757,28758,28760,28764,28766,28767,28768,28773,28777,28778,28782,28786,28788,28789,28790,28793,28796,28797,28811,28812,28813,28814,28815,28817,28819,28823,28824,28825,28826,28827,28828,28829,28832,28833,28834,28835,28840,28842,28856,28857,28859,28863,28868,28870,28871,28872,28873,28875,28876,28877,28879,28887,28889,28893,28905,28906,28912,28915,28917,28918,28920,28921,28922,28934,28943,28944,28945,28950,28965,28970,28972,28974,28988,28990,28996,28998,28999,29000,29006,29010,29011,29016,29018,29021,29028,29034,29039,29044,29048,29049,29055,29056,29064,29068,29075,29077,29081,29091,29102,29108,29109,29114,29120,29125,29127,29134,29145,29158,29181,29192,29194,29196,29200,29201,29205,29206,29207,29208,29209,29211,29213,29215,29223,29224,29228,29229,29234,29238,29241,29243,29245,29247,29249,29250,29254,29255,29257,29262,29263,29266,29269,29273,29274,29278,29279,29280,29281,29284,29290,29291,29293,29295,29298,29311,29324,29325,29327,29328,29332,29334,29335,29336,29337,29345,29346,29347,29348,29352,29357,29358,29360,29362,29367,29369,29374,29376,29377,29384,29385,29388,29389,29390,29391,29392,29393,29394,29395,29396,29399,29400,29402,29403,29404,29409,29411,29418,29422,29427,29429,29430,29431,29435,29436,29437,29438,29441,29442,29445,29449,29450,29451,29452,29454,29457,29460,29463,29464,29465,29470,29471,29485,29488,29490,29495,29504,29516,29517,29519,29534,29540,29543,29545,29547,29550,29553,29558,29563,29567,29570,29573,29577,29579,29582,29583,29584,29586,29587,29591,29594,29595,29600,29602,29608,29609,29610,29613,29615,29616,29617,29625,29630,29632,29637,29639,29641,29645,29650,29667,29669,29670,29673,29674,29679,29680,29690,29691,29698,29701,29702,29704,29706,29708,29710,29712,29715,29716,29717,29718,29724,29729,29732,29749,29751,29753,29754,29755,29756,29758,29759,29773,29776,29782,29783,29790,29792,29793,29795,29799,29803,29806,29808,29820,29822,29823,29831,29832,29833,29850,29874,29884,29886,29888,29890,29891,29892,29894,29902,29903,29908,29910,29911,29919,29923,29924,29933,29935,29937,29939,29944,29945,29946,29948,29951,29957,29960,29961,29963,29964,29965,29967,29968,29969,29970,29971,29973,29975,29976,29978,29979,29982,29984,29989,29992,29995,29996,29998,29999,30004,30009,30010,30011,30012,30021,30022,30026,30028,30034,30036,30040,30041,30047,30051,30054,30059,30063,30065,30066,30068,30070,30071,30073,30074,30077,30079,30080,30081,30083,30084,30085,30091,30092,30094,30095,30096,30097,30098,30099,30100,30101,30104,30105,30108,30109,30110,30114,30115,30116,30117,30119,30120,30121,30122,30125,30130,30132,30133,30134,30136,30139,30142,30146,30147,30148,30150,30151,30152,30154,30155,30160,30161,30164,30169,30172,30175,30176,30177,30179,30181,30186,30188,30192,30197,30199,30200,30201,30203,30207,30208,30210,30212,30213,30214,30217,30218,30219,30221,30224,30227,30228,30229,30232,30236,30238,30239,30240,30243,30252,30253,30260,30262,30268,30270,30275,30283,30287,30296,30299,30301,30302,30306,30308,30310,30311,30312,30315,30318,30321,30323,30326,30329,30340,30350,30353,30354,30356,30367,30370,30373,30374,30376,30378,30381,30382,30383,30384,30385,30386,30388,30390,30391,30392,30395,30399,30405,30414,30415,30417,30418,30420,30424,30425,30428,30430,30433,30436,30439,30440,30441,30443,30445,30457,30458,30463,30464,30466,30470,30472,30473,30477,30479,30485,30486,30487,30488,30490,30492,30496,30497,30499,30503,30512,30513,30522,30523,30529,30530,30531,30533,30534,30536,30539,30540,30553,30557,30558,30559,30560,30564,30565,30572,30573,30574,30577,30578,30591,30592,30594,30597,30599,30601,30602,30604,30608,30611,30613,30619,30621,30623,30637,30647,30651,30652,30658,30659,30661,30663,30665,30667,30668,30669,30670,30675,30678,30680,30685,30686,30687,30688,30689,30690,30697,30700,30701,30705,30706,30708,30710,30711,30712,30714,30716,30717,30719,30723,30725,30726,30727,30729,30732,30733,30736,30740,30743,30744,30745,30746,30747,30748,30750,30752,30757,30759,30764,30766,30768,30770,30773,30774,30775,30781,30794,30795,30796,30797,30798,30807,30812,30823,30825,30828,30829,30830,30833,30835,30839,30840,30842,30843,30844,30847,30849,30851,30853,30855,30864,30865,30866,30867,30868,30873,30878,30881,30885,30889,30890,30891,30896,30900,30901,30905,30920,30924,30930,30932,30935,30938,30945,30949,30963,30974,30980,30996,31002,31003,31004,31006,31008,31009,31014,31016,31017,31022,31024,31027,31030,31031,31034,31035,31036,31037,31038,31039,31040,31042,31045,31047,31048,31053,31055,31063,31064,31066,31072,31073,31076,31077,31082,31087,31098,31111,31123,31124,31129,31130,31131,31133,31134,31136,31137,31139,31142,31145,31147,31149,31153,31154,31157,31160,31167,31171,31172,31174,31175,31177,31179,31181,31183,31184,31192,31195,31197,31200,31202,31203,31206,31210,31211,31213,31214,31220,31223,31226,31230,31232,31235,31251,31255,31257,31259,31260,31261,31263,31270,31281,31287,31312,31316,31318,31319,31320,31321,31322,31327,31328,31329,31331,31332,31334,31336,31341,31345,31346,31349,31350,31351,31352,31356,31357,31358,31359,31360,31365,31366,31368,31372,31373,31379,31391,31403,31414,31417,31422,31423,31424,31427,31429,31430,31437,31439,31449,31450,31453,31455,31459,31460,31462,31464,31466,31467,31471,31473,31476,31477,31481,31483,31486,31488,31492,31493,31494,31496,31498,31499,31500,31502,31505,31507,31512,31514,31516,31518,31525,31527,31529,31531,31532,31535,31536,31537,31538,31540,31542,31544,31546,31547,31549,31552,31554,31566,31569,31570,31573,31575,31577,31579,31582,31584,31589,31597,31600,31604,31605,31607,31612,31613,31617,31618,31622,31623,31624,31625,31626,31627,31628,31629,31633,31636,31640,31649,31654,31655,31660,31665,31667,31673,31674,31677,31681,31685,31686,31690,31694,31697,31703,31708,31710,31719,31723,31724,31727,31734,31743,31750,31751,31754,31768,31775,31776,31777,31789,31827,31828,31835,31836,31837,31849,31857,31858,31861,31863,31864,31868,31869,31870,31871,31874,31876,31877,31882,31886,31889,31890,31891,31897,31900,31901,31902,31905,31909,31911,31912,31914,31916,31917,31925,31926,31927,31929,31932,31935,31936,31944,31951,31960,31963,31978,32000,32002,32007,32011,32015,32065,32078,32087,32134,32142,32146,32283,32289,32295,32312,32347,32354,32358,32379,32383,32384,32385,32386,32387,32388,32389,32390,32391,32392,32393,32394,32395,32396,32397,32399,32400,32401,32402,32403,32405,32406,32407,32408,32409,32410,32413,32414,32415,32416,32417,32418,32419,32420,32421,32422,32423,32424,32425,32426,32427,32428,32429,32430,32431,32432,32433,32434,32435,32436,32437,32439,32440,32441,32442,32443,32444,32445,32446,32447,32448,32449,32450,32451,32453,32454,32455,32456,32457,32458,32459,32461,32462,32463,32464,32465,32466,32467,32468,32469,32470,32471,32472,32474,32475,32476,32477,32478,32479,32480,32481,32482,32483,32484,32485,32486,32487,32488,32489,32491,32492,32493,32494,32495,32497,32498,32499,32500,32501,32502,32503,32504,32505,32506,32507,32508,32509,32511,32512,32513,32514,32515,32516,32517,32518,32519,32520,32521,32522,32523,32524,32525,32526,32527,32528,32529,32530,32531,32532,32533,32534,32536,32538,32546,32548,32549,32560,32561,32564,32565,32567,32568,32570,32575,32577,32578,32584,32585,32586,32590,32593,32594,32596,32601,32606,32609,32618,32620,32622,32628,32634,32637,32638,32639,32641,32644,32647,32655,32656,32658,32664,32665,32668,32669,32671,32673,32677,32682,32684,32686,32690,32692,32693,32696,32703,32704,32705,32709,32710,32713,32718,32720,32721,32723,32731,32732,32736,32737,32739,32740,32741,32742,32747,32748,32749,32752,32754,32756,32757,32758,32759,32760,32761,32764,32768,32770,32773,32774,32775,32776,32777,32778,32785,32787,32789,32790,32791,32792,32795,32797,32799,32802,32803,32806,32810,32811,32812,32813,32818,32820,32824,32826,32841,32842,32849,32850,32861,32863,32864,32867,32868,32870,32871,32873,32875,32876,32883,32886,32888,32890,32891,32892,32893,32895,32896,32897,32898,32900,32901,32905,32906,32907,32909,32910,32911,32913,32914,32916,32919,32922,32924,32925,32926,32927,32928,32929,32930,32931,32932,32934,32940,32941,32942,32943,32950,32951,32953,32954,32955,32956,32957,32958,32961,32964,32965,32967,32968,32969,32970,32971,32972,32973,32975,32976,32977,32978,32979,32980,32982,32984,32986,32988,32989,32994,32998,33001,33002,33005,33006,33007,33008,33009,33010,33011,33012,33014,33016,33018,33022,33026,33036,33039,33041,33042,33046,33048,33054,33062,33064,33066,33067,33068,33072,33073,33075,33076,33077,33081,33082,33088,33093,33094,33095,33097,33101,33102,33104,33105,33108,33113,33114,33115,33116,33117,33118,33119,33120,33122,33128,33130,33135,33137,33144,33147,33148,33149,33155,33158,33160,33162,33171,33178,33179,33184,33185,33186,33187,33190,33194,33196,33219,33223,33226,33228,33229,33234,33235,33236,33242,33243,33244,33246,33248,33249,33250,33252,33253,33254,33255,33260,33261,33264,33266,33268,33275,33276,33278,33279,33281,33282,33283,33288,33290,33291,33292,33293,33295,33296,33297,33299,33300,33301,33302,33303,33304,33305,33307,33310,33316,33319,33321,33323,33327,33336,33338,33343,33352,33358,33359,33360,33362,33363,33364,33369,33370,33373,33374,33375,33378,33380,33384,33386,33387,33389,33390,33391,33393,33394,33399,33400,33401,33404,33405,33407,33409,33412,33413,33414,33416,33417,33418,33419,33420,33421,33422,33423,33424,33425,33427,33428,33431,33432,33433,33437,33438,33441,33444,33447,33448,33450,33451,33452,33453,33454,33455,33457,33458,33459,33460,33461,33463,33464,33467,33468,33470,33471,33472,33473,33475,33476,33477,33478,33483,33487,33489,33492,33495,33497,33499,33504,33505,33506,33507,33508,33509,33510,33511,33512,33513,33516,33518,33519,33521,33524,33525,33527,33530,33531,33532,33543,33544,33547,33548,33549,33551,33553,33555,33556,33557,33558,33560,33561,33562,33564,33568,33571,33574,33575,33577,33583,33584,33585,33586,33588,33594,33595,33596,33598,33599,33600,33601,33603,33604,33605,33606,33607,33608,33609,33610,33611,33612,33613,33614,33615,33623,33624,33627,33628,33629,33637,33638,33641,33646,33650,33651,33656,33659,33660,33662,33664,33672,33673,33674,33675,33680,33681,33682,33683,33684,33686,33687,33688,33689,33690,33692,33693,33696,33697,33701,33703,33706,33708,33711,33713,33716,33718,33720,33724,33725,33727,33728,33729,33733,33737,33738,33744,33745,33746,33752,33753,33757,33761,33763,33764,33766,33771,33772,33773,33774,33775,33777,33784,33788,33789,33796,33797,33798,33799,33800,33809,33816,33820,33821,33830,33841,33847,33849,33850,33851,33852,33857,33859,33865,33867,33868,33869,33873,33875,33877,33878,33880,33882,33890,33895,33896,33897,33899,33900,33902,33911,33913,33916,33921,33935,33938,33940,33944,33945,33946,33949,33951,33953,33956,33961,33962,33965,33968,33969,33971,33974,33981,33983,33984,33987,33989,33990,33996,34000,34012,34015,34016,34028,34033,34035,34039,34042,34047,34049,34059,34060,34071,34072,34073,34074,34075,34076,34077,34083,34088,34089,34090,34102,34105,34110,34116,34120,34130,34132,34137,34138,34139,34142,34148,34149,34151,34159,34171,34172,34180,34184,34186,34190,34191,34192,34199,34201,34209,34217,34223,34224,34227,34229,34236,34239,34244,34249,34267,34271,34277,34289,34294,34311,34313,34328,34332,34349,34350,34351,34352,34353,34356,34362,34366,34370,34377,34379,34380,34382,34385,34393,34394,34395,34396,34397,34398,34399,34400,34401,34402,34410,34411,34412,34413,34419,34421,34428,34429,34435,34436,34439,34440,34441,34442,34444,34447,34448,34449,34452,34453,34454,34458,34464,34468,34470,34471,34473,34474,34475,34478,34479,34480,34481,34484,34488,34489,34491,34494,34495,34500,34505,34509,34510,34512,34513,34514,34515,34516,34520,34521,34526,34528,34530,34531,34535,34536,34537,34538,34541,34546,34547,34549,34551,34552,34554,34556,34558,34561,34562,34563,34565,34569,34574,34577,34580,34583,34587,34590,34591,34599,34600,34601,34604,34606,34611,34615,34617,34624,34627,34628,34629,34638,34640,34644,34646,34651,34652,34653,34654,34658,34659,34661,34664,34667,34669,34675,34679,34687,34696,34699,34700,34701,34703,34707,34709,34714,34717,34720,34726,34730,34731,34737,34738,34739,34747,34752,34757,34762,34766,34777,34782,34787,34794,34803,34805,34806,34811,34817,34818,34834,34841,34844,34848,34852,34853,34860,34861,34862,34868,34871,34873,34881,34882,34883,34884,34885,34888,34889,34891,34892,34894,34896,34898,34903,34909,34910,34911,34913,34914,34916,34917,34920,34923,34925,34930,34934,34940,34946,34948,34955,34957,34961,34967,34972,34973,34977,34978,34981,34982,34985,34990,34991,34994,34996,34997,35000,35001,35007,35009,35010,35011,35012,35013,35016,35024,35025,35027,35028,35032,35033,35036,35038,35042,35050,35056,35058,35059,35065,35066,35067,35073,35077,35082,35083,35088,35092,35094,35105,35108,35134,35135,35142,35163,35167,35169,35171,35174,35233,35234,35236,35237,35238,35239,35240,35241,35242,35243,35244,35246,35247,35248,35249,35250,35254,35258,35260,35262,35267,35269,35270,35275,35279,35283,35296,35303,35358,35368,35409,35417,35433,35434,35443,35466,35499,35559,35581,35590,35654,35660,35699,35712,35713,35714,35715,35716,35717,35718,35719,35720,35721,35722,35723,35725,35726,35727,35728,35730,35731,35732,35733,35734,35735,35736,35737,35738,35740,35741,35742,35743,35744,35745,35746,35747,35748,35749,35750,35752,35753,35754,35755,35756,35757,35758,35759,35761,35762,35763,35764,35765,35766,35767,35768,35769,35770,35771,35772,35773,35774,35775,35776,35777,35778,35779,35780,35781,35782,35783,35784,35785,35787,35788,35789,35790,35791,35792,35793,35794,35795,35796,35797,35798,35799,35800,35801,35802,35803,35804,35805,35806,35807,35808,35809,35810,35811,35812,35813,35814,35815,35816,35818,35819,35820,35821,35822,35823,35824,35825,35826,35827,35828,35829,35830,35831,35832,35833,35834,35835,35836,35837,35839,35840,35841,35842,35843,35844,35845,35846,35847,35848,35849,35850,35851,35852,35853,35854,35855,35856,35857,35858,35859,35860,35861,35862,35863,35873,35878,35879,35881,35884,35893,35898,35905,35906,35914,35915,35918,35923,35928,35929,35930,35938,35941,35945,35946,35948,35955,35956,35960,36093,36094,36095,36097,36098,36099,36100,36101,36102,36103,36104,36105,36106,36107,36108,36109,36110,36111,36112,36113,36114,36115,36116,36117,36118,36119,36120,36121,36122,36123,36124,36125,36126,36127,36128,36129,36130,36131,36132,36133,36134,36135,36136,36137,36138,36139,36140,36141,36142,36143,36144,36147,36148,36149,36150,36152,36153,36154,36155,36156,36157,36158,36160,36161,36162,36163,36164,36166,36167,36171,36173,36176,36179,36180,36181,36182,36183,36193,36196,36197,36202,36203,36209,36212,36223,36227,36241,36243,36244,36245,36248,36250,36252,36254,36255,36259,36260,36262,36267,36268,36270,36271,36273,36278,36279,36282,36283,36285,36286,36287,36291,36292,36296,36298,36299,36300,36303,36307,36309,36311,36312,36313,36314,36315,36317,36325,36329,36330,36332,36335,36340,36349,36350,36351,36354,36355,36361,36362,36364,36366,36367,36369,36373,36377,36378,36381,36384,36385,36386,36388,36391,36392,36393,36394,36395,36401,36402,36409,36418,36422,36425,36428,36429,36431,36432,36434,36436,36438,36444,36447,36449,36453,36455,36463,36464,36468,36476,36478,36491,36492,36495,36498,36506,36526,36633,36678,36679,36680,36681,36683,36684,36685,36686,36687,36688,36689,36690,36691,36692,36693,36694,36695,36696,36697,36698,36699,36700,36701,36702,36703,36705,36706,36707,36708,36709,36710,36711,36712,36713,36714,36715,36717,36718,36719,36720,36721,36723,36724,36725,36726,36727,36728,36729,36730,36731,36732,36734,36735,36739,36744,36745,36747,36752,36753,36758,36761,36765,36766,36769,36770,36772,36773,36775,36776,36782,36784,36785,36787,36788,36789,36792,36793,36795,36796,36797,36798,36799,36802,36804,36805,36806,36808,36809,36810,36811,36813,36814,36816,36819,36823,36824,36825,36829,36832,36833,36834,36835,36836,36837,36838,36841,36842,36843,36845,36847,36848,36849,36850,36852,36854,36855,36857,36858,36859,36861,36862,36863,36864,36865,36866,36870,36877,36878,36879,36885,36886,36888,36891,36892,36894,36897,36898,36900,36903,36909,36911,36912,36913,36914,36915,36919,36920,36923,36930,36931,36933,36936,36941,36942,36943,36948,36949,36957,36959,36960,36962,36963,36964,36965,36968,36971,36977,36979,36981,36983,36985,36987,36989,36993,36994,36995,36998,37002,37004,37006,37007,37008,37009,37011,37012,37013,37014,37016,37017,37018,37019,37022,37025,37028,37029,37031,37034,37038,37039,37040,37041,37043,37047,37051,37052,37053,37057,37058,37062,37063,37064,37067,37069,37071,37076,37080,37085,37086,37090,37092,37113,37118,37122,37123,37135,37137,37145,37155,37158,37161,37162,37163,37164,37165,37166,37167,37168,37170,37175,37178,37181,37182,37185,37186,37187,37188,37189,37193,37194,37196,37198,37199,37200,37201,37202,37204,37205,37206,37207,37208,37209,37213,37214,37215,37221,37223,37225,37227,37228,37229,37232,37233,37234,37242,37243,37250,37251,37258,37261,37262,37263,37268,37269,37274,37287,37289,37290,37292,37293,37294,37295,37297,37308,37460,37486,37518,37544,37662,37706,37743,37802,37814,37918,37963,37989,37990,37991,37992,37993,37994,37995,37996,37997,37998,37999,38000,38002,38003,38004,38005,38007,38009,38010,38011,38012,38013,38014,38015,38016,38017,38018,38019,38020,38021,38022,38023,38024,38025,38026,38027,38028,38029,38030,38031,38032,38033,38034,38035,38036,38037,38038,38039,38040,38041,38042,38043,38044,38045,38046,38047,38048,38049,38050,38051,38052,38053,38054,38056,38057,38058,38059,38060,38061,38062,38064,38065,38066,38069,38070,38071,38072,38073,38075,38076,38077,38078,38079,38080,38081,38082,38083,38084,38085,38087,38088,38089,38090,38091,38092,38093,38094,38095,38096,38097,38098,38099,38100,38101,38102,38103,38104,38105,38106,38108,38109,38110,38111,38112,38113,38114,38115,38116,38117,38118,38119,38120,38121,38122,38123,38124,38125,38126,38127,38128,38129,38130,38131,38132,38133,38134,38135,38136,38137,38138,38139,38141,38142,38143,38145,38146,38147,38148,38149,38150,38152,38153,38154,38155,38156,38157,38158,38159,38160,38161,38162,38164,38165,38166,38167,38168,38169,38170,38171,38172,38174,38175,38176,38177,38178,38180,38181,38182,38183,38185,38186,38188,38189,38190,38191,38192,38193,38194,38195,38196,38198,38199,38200,38201,38203,38204,38205,38206,38207,38209,38210,38211,38212,38213,38214,38215,38216,38217,38218,38219,38220,38221,38223,38224,38225,38226,38227,38230,38239,38251,38332,38344,38345,38346,38347,38349,38350,38351,38352,38353,38354,38355,38356,38357,38358,38359,38360,38361,38362,38363,38364,38365,38366,38368,38369,38370,38371,38372,38373,38374,38376,38377,38378,38379,38380,38381,38382,38383,38384,38385,38386,38388,38389,38390,38391,38393,38394,38396,38397,38399,38401,38402,38410,38414,38417,38418,38419,38420,38421,38422,38427,38428,38429,38431,38432,38434,38436,38437,38438,38439,38440,38441,38443,38444,38445,38448,38452,38453,38459,38463,38465,38466,38468,38471,38472,38473,38474,38476,38482,38484,38485,38486,38487,38501,38502,38504,38507,38509,38511,38512,38516,38519,38520,38521,38524,38535,38544,38547,38550,38553,38556,38557,38558,38560,38561,38564,38565,38566,38567,38569,38572,38573,38574,38575,38578,38581,38592,38600,38601,38602,38607,38611,38614,38615,38617,38619,38622,38624,38625,38628,38630,38631,38632,38633,38637,38638,38639,38643,38646,38652,38654,38666,38669,38672,38674,38680,38681,38686,38706,38707,38710,38713,38715,38718,38720,38721,38722,38725,38729,38739,38740,38742,38748,38757,38763,38765,38769,38770,38772,38776,38784,38787,38795,38797,38799,38802,38804,38806,38854,38855,38857,38858,38859,38860,38861,38867,38869,38870,38884,38997,38998,38999,39000,39001,39002,39003,39004,39005,39006,39007,39008,39009,39010,39011,39012,39013,39014,39015,39016,39017,39018,39020,39021,39023,39024,39025,39027,39028,39030,39031,39032,39033,39034,39035,39036,39037,39038,39039,39040,39041,39042,39044,39045,39046,39047,39086,39089,39090,39091,39093,39096,39097,39098,39102,39103,39111,39112,39149,39152,39159,39182,39220,39221,39235,39237,39239,39240,39241,39242,39243,39244,39245,39246,39247,39248,39249,39250,39252,39253,39254,39255,39258,39260,39261,39263,39264,39265,39268,39269,39270,39271,39272,39274,39275,39277,39279,39280,39281,39282,39283,39284,39285,39286,39287,39288,39289,39301,39304,39479,39500,39501,39502,39503,39504,39505,39507,39508,39509,39510,39511,39512,39513,39514,39515,39516,39517,39518,39519,39520,39521,39522,39524,39525,39526,39527,39528,39530,39531,39532,39535,39536,39537,39538,39539,39542,39543,39544,39546,39547,39548,39549,39550,39551,39552,39553,39554,39555,39556,39557,39559,39560,39568,39569,39574,39575,39576,39578,39580,39584,39585,39586,39589,39595,39596,39601,39603,39604,39608,39615,39617,39622,39627,39629,39631,39641,39643,39651,39656,39663,39667,39679,39683,39695,39697,39698,39707,39708,39713,39714,39715,39716,39717,39719,39720,39721,39725,39727,39729,39732,40028,40031,40033,40034,40037,40038,40039,40040,40043,40045,40046,40048,40049,40050,40052,40053,40058,40059,40060,40062,40063,40064,40065,40066,40067,40068,40069,40070,40071,40072,40073,40075,40077,40078,40080,40081,40082,40083,40084,40085,40086,40087,40088,40090,40091,40092,40093,40099,40100,40101,40102,40103,40106,40107,40108,40109,40110,40111,40112,40115,40116,40117,40118,40119,40120,40121,40124,40125,40126,40127,40130,40447,40448,40449,40450,40451,40453,40454,40456,40457,40458,40459,40460,40461,40463,40465,40466,40467,40469,40470,40471,40472,40473,40474,40477,40478,40479,40481,40482,40483,40484,40485,40486,40487,40488,40489,40490,40491,40492,40494,40495,40497,40501,40503,40504,40506,40507,40508,40510,40515,40516,40518,40519,40520,40521,40522,40523,40524,40525,40528,40529,40531,40542,40543,40546,40551,40552,40555,40562,40563,40573,40575,40582,40596,40600,40603,40604,40605,40606,40612,40617,40621,40622,40623,40625,40628,40632,40635,40636,40637,40638,40639,40640,40642,40645,40647,40649,40650,40655,40665,40667,40668,40670,40683,40685,40686,40688,40691,40695,40697,40704,40706,40715,40716,40719,40727,40729,40731,40733,40734,40740,40752,40753,40799,40800,40803,40804,40805,40806,40807,40808,40809,40810,40811,40812,40813,40824,40825,40826,40827,40831,40832,65249,65250,65251,65252,65253,65254,65255,65256,65257,65258,65259,65260,65261,65262,65263,65264,65265,65266,65267,65268,65269,65270,65271,65272,65273,65274,65275,65276,65277,65278,65279,65280,65281,65282,65283,65284,65285,65286,65287,65288,65289,65290,65291,65292,65293,65294,65295,65296,65297,65298,65299,65300,65301,65302,65303,65304,65305,65306,65307,65308,65309,65310,65311,65312,65313,65314,65315,65316,65317,65318,65319,65320,65321,65322,65323,65324,65325,65326,65327,65328,65329,65330,65331,65332,65333,65334,65335,65336,65337,65338,65339,65340,65341,65342,65472,65473,65475,65477}; +static const lv_font_fmt_txt_cmap_t maps[]={{.range_start=32,.range_length=65478,.glyph_id_start=1,.unicode_list=unicode,.list_length=7825,.type=LV_FONT_FMT_TXT_CMAP_SPARSE_TINY}}; +static const lv_font_fmt_txt_dsc_t desc={.glyph_bitmap=bitmap,.glyph_dsc=glyphs,.cmaps=maps,.cmap_num=1,.bpp=1,.bitmap_format=0}; +const lv_font_t font_xiaozhi_14={.get_glyph_dsc=lv_font_get_glyph_dsc_fmt_txt,.get_glyph_bitmap=lv_font_get_bitmap_fmt_txt,.line_height=18,.base_line=4,.dsc=&desc}; +#include "xiaozhi_text.h" +bool xiaozhi_font_has_glyph(uint32_t cp){ + if(cp<32 || cp>65535)return false; + size_t low=0,high=sizeof(unicode)/sizeof(unicode[0]); + while(low +#include +#include "demo.h" +/* Append games here through game_registry.c. Callbacks follow demo.h locking + * and stop-before-destroy contract. Games consume badge_theme.h under the LVGL + * lock and apply palette revisions during UI refresh. No UI or navigation edits are required. */ +typedef struct { + const char *id; + const char *description; + const char *category; + /* Optional nested-page back; true consumes it, false exits to the library. + * Called without LVGL lock from the lifecycle task. */ + bool (*back)(void); + demo_entry_t lifecycle; +} badge_game_t; +extern const badge_game_t BADGE_GAMES_REGISTRY[]; +extern const size_t BADGE_GAME_COUNT; diff --git a/main/idf_component.yml b/main/idf_component.yml new file mode 100644 index 0000000..34cda50 --- /dev/null +++ b/main/idf_component.yml @@ -0,0 +1,4 @@ +dependencies: + espressif/esp-sr: "2.1.3" + espressif/esp_audio_codec: "2.5.0" + idf: ">=5.5.3,<5.6.0" diff --git a/main/main.c b/main/main.c index e05aad2..904602c 100644 --- a/main/main.c +++ b/main/main.c @@ -1,242 +1,636 @@ -// main/main.c —— FoloToy AI Passport BSP 驱动å�‚考示例:åˆ�始化 + è�œå�• + 按键分å�‘。 -// -// 按键语义(全局统一): -// 上/下 短按 è�œå�•中=移动选中项;演示页中=该页自定义 -// 确定 短按 è�œå�•中=进入选中项;演示页中=该页自定义 -// 确定 长按 演示页中=返回è�œå�•(由本文件统一拦截) +/* Cyber badge shell. Input task owns navigation; button callbacks only enqueue. */ +#include "badge_navigation.h" +#include "badge_power.h" +#include "badge_power_logic.h" +#include "badge_profile.h" +#include "profile_store.h" +#include "profile_usb.h" +#include "profile_protocol.h" +#include "badge_network.h" +#include "cJSON.h" +#include +#include +#include "badge_ui.h" +#include "game_registry.h" +#include "badge_control.h" +#include "voice_app.h" +#include "xiaozhi_app.h" +#include "xiaozhi_style.h" +#include "xiaozhi_wake.h" +#include "radio_app.h" +#include "yao_app.h" +#include "badge_reminder.h" +#include "badge_alarm_service.h" +#include "bsp_audio.h" +#include "esp_sleep.h" +#include "esp_system.h" +#include "badge_alert.h" #include "bsp_i2c.h" #include "bsp_display.h" #include "bsp_button.h" -#include "bsp_audio.h" #include "bsp_battery.h" -#include "bsp_pins.h" // 错误日志里è¦�打å�° BSP_LCD_* 引脚å�· -#include "demo.h" -#include "demo_navigation.h" -#include "ui_pixel.h" -#include "lvgl.h" #include "esp_log.h" -#include "esp_sleep.h" +#include "esp_mac.h" +#include "esp_timer.h" +#include "nvs.h" +#include "nvs_flash.h" #include "freertos/FreeRTOS.h" #include "freertos/queue.h" #include "freertos/task.h" +#include +#include -static const char *TAG = "main"; - -static const demo_entry_t DEMOS[] = { - { .name = "Display", .enter = demo_display_enter, .exit = demo_display_exit, - .key = demo_display_key }, - { .name = "Button", .enter = demo_button_enter, .exit = demo_button_exit, - .key = demo_button_key }, - { .name = "Audio", .enter = demo_audio_enter, .exit = demo_audio_exit, - .key = demo_audio_key, .start = demo_audio_start, .stop = demo_audio_stop }, - { .name = "Battery", .enter = demo_battery_enter, .exit = demo_battery_exit, - .key = demo_battery_key }, - { .name = "Wi-Fi", .enter = demo_wifi_enter, .exit = demo_wifi_exit, - .key = demo_wifi_key, .start = demo_wifi_start, .stop = demo_wifi_stop }, - { .name = "BLE", .enter = demo_ble_enter, .exit = demo_ble_exit, - .key = demo_ble_key, .start = demo_ble_start, .stop = demo_ble_stop }, - { .name = "Low Power", .enter = demo_low_power_enter, .exit = demo_low_power_exit, - .key = demo_low_power_key, .start = demo_low_power_start, .stop = demo_low_power_stop }, -}; -#define DEMO_COUNT (sizeof(DEMOS) / sizeof(DEMOS[0])) -#define INPUT_QUEUE_DEPTH 8 - -typedef struct { - bsp_btn_t btn; - bsp_btn_ev_t event; -} input_event_t; - -// å�„外设åˆ�始化结果:失败的项在è�œå�•里标 [FAIL] 且ä¸�å…�许进入。 -static bool s_ok[DEMO_COUNT]; - -static lv_obj_t *s_menu_scr; -static lv_obj_t *s_cards[DEMO_COUNT]; -static lv_obj_t *s_rows[DEMO_COUNT]; -static lv_obj_t *s_mascot; -static demo_navigation_t s_navigation; -static QueueHandle_t s_input_queue; -static TaskHandle_t s_input_task; -static volatile bool s_input_ready; - -static void menu_refresh(void) { - for (size_t i = 0; i < DEMO_COUNT; i++) { - lv_label_set_text_fmt(s_rows[i], "%s%s", - DEMOS[i].name, - s_ok[i] ? "" : " [FAIL]"); - ui_pixel_set_selected(s_cards[i], i == s_navigation.selected, s_ok[i]); - lv_obj_set_style_text_color(s_rows[i], - s_ok[i] ? lv_color_hex(UI_INK) : lv_color_hex(0x7A2020), 0); +static const char *TAG="cyber_badge"; +typedef struct {bsp_btn_t button; bsp_btn_ev_t event;} input_event_t; +static QueueHandle_t input_queue; +static atomic_bool input_ready; +static void control_wakeup(void){const input_event_t signal={(bsp_btn_t)255,BSP_BTN_RELEASE};if(input_queue)xQueueSend(input_queue,&signal,0);} +static badge_navigation_t navigation; +static bool voice_suspended; +static bool on_voice_page(void){return navigation.page==BADGE_PLAYING&& + !strcmp(BADGE_GAMES_REGISTRY[navigation.game_selected].id,"voice-keychain");} +static bool on_yao_page(void){return navigation.page==BADGE_PLAYING&& + !strcmp(BADGE_GAMES_REGISTRY[navigation.game_selected].id,"cyber-yao");} +static bool resume_voice_audio(void){ + if(!voice_suspended)return true; + if(xz_wake_stop()!=ESP_OK)return false; + if(demo_voice_start()!=ESP_OK)return false; + voice_suspended=false;return true; +} +static bool voice_idle_wake(void){ + if(!on_voice_page())return false; + if(!xz_wake_enabled()){resume_voice_audio();return false;} + if(!voice_suspended&&!demo_voice_audio_busy()&&demo_voice_stop()==ESP_OK){ + voice_suspended=true;ESP_LOGI(TAG,"Soundboard idle: resume local wake"); } + return voice_suspended; } +static badge_return_menu_t return_menu; +static nvs_handle_t settings; +static bool settings_open, storage_ok, battery_ok, buttons_ok; +static int battery=-1; +static char unit[7]="------"; +static unsigned profile_seen; +static unsigned control_qr_mask; +static badge_reminder_t reminder; +static bool reminder_closing; +static uint32_t reminder_current_id; +static void publish_control(void){badge_control_publish((navigation.brightness+1)*20,navigation.badge_mask,control_qr_mask,navigation.badge_count,navigation.active_badge);badge_control_runtime(battery,reminder.deadline!=0||reminder.ringing,badge_reminder_remaining(&reminder,esp_timer_get_time()),reminder.text);} -static void menu_build(void) { - s_menu_scr = ui_pixel_screen_create("FoloToy"); - - for (size_t i = 0; i < DEMO_COUNT; i++) { - int x = 11 + (int)(i % 2) * 112; - int y = 52 + (int)(i / 2) * 47; - s_cards[i] = ui_pixel_panel_create(s_menu_scr, x, y, 102, 40, UI_PAPER); - s_rows[i] = lv_label_create(s_cards[i]); - lv_obj_set_style_text_font(s_rows[i], &lv_font_montserrat_14, 0); - lv_obj_set_style_text_align(s_rows[i], LV_TEXT_ALIGN_CENTER, 0); - lv_obj_center(s_rows[i]); +static void load_settings(void) { + esp_err_t err=nvs_flash_init(); + if(err==ESP_OK) err=nvs_open("cyber_badge_v1",NVS_READWRITE,&settings); + settings_open=err==ESP_OK; + uint8_t brightness=3; + if(settings_open) { + err=nvs_get_u8(settings,"brightness",&brightness); + if(err==ESP_ERR_NVS_NOT_FOUND) err=ESP_OK; + if(err!=ESP_OK || brightness>4) { + nvs_close(settings); settings_open=false; + ESP_LOGW(TAG,"Invalid settings preserved; using defaults"); + } else navigation.brightness=brightness; + if(settings_open){ + uint8_t choice=BADGE_SCREEN_TIMEOUT_DEFAULT; + esp_err_t timeout_err=nvs_get_u8(settings,"screen_timeout",&choice); + if(timeout_err==ESP_OK&&choicevaluestring:"");cJSON_Delete(p); + } + badge_ui_set_badges(cards,profile_store_count()); + unsigned formats[PROFILE_BADGE_COUNT];for(unsigned i=0;i=4)badge_ui_set_tactical(profile_store_card(),profile_store_asset(PROFILE_ASSET_AVATAR)); + else if(profile_store_version()>=3)badge_ui_set_portrait(profile_store_card(),profile_store_asset(PROFILE_ASSET_AVATAR)); + else badge_ui_set_profile(profile_store_card()); + uint32_t colors[5];const uint32_t *palette=NULL; + size_t length;const char *raw=profile_store_json(&length); + cJSON *p=cJSON_ParseWithLength(raw,length),*theme=cJSON_GetObjectItemCaseSensitive(p,"theme"); + const char *keys[]={"background","panel","accent","text","muted"}; + if(cJSON_IsObject(theme)) {bool valid=true;for(unsigned i=0;i<5;i++) { + cJSON *v=cJSON_GetObjectItemCaseSensitive(theme,keys[i]); + if(!cJSON_IsString(v)||strlen(v->valuestring)!=7){valid=false;break;} + colors[i]=(uint32_t)strtoul(v->valuestring+1,NULL,16); + }if(valid)palette=colors;} + badge_ui_set_custom(profile_store_asset(PROFILE_ASSET_BRAND),profile_store_asset(PROFILE_ASSET_LOGO),profile_store_asset(PROFILE_ASSET_QR),palette); + cJSON_Delete(p); +} +static void update_status(void) { + badge_network_status_t network;badge_network_status(&network); + badge_ui_network(network.active,network.connected,network.ssid,network.ap_ssid,network.ap_password,network.ip,network.message); + badge_ui_status(unit,battery,(uint32_t)(esp_timer_get_time()/1000000),storage_ok,buttons_ok); +} +static void render_shell(void) { + const badge_game_t *g=BADGE_GAME_COUNT?&BADGE_GAMES_REGISTRY[navigation.game_selected]:NULL; + navigation.ai_enabled=xz_wake_enabled();navigation.ai_volume=demo_xiaozhi_saved_volume();navigation.ai_style=xiaozhi_style_get(); + badge_ui_ai_status(navigation.ai_selected==4?"按 OK 切æ�¢å¹¶ä¿�å­˜":navigation.ai_selected==3?xz_wake_phrase():xz_wake_status()); + badge_ui_render(&navigation,g?g->lifecycle.name:"暂无å°�程åº�",g?g->description:"",g?g->category:""); + update_status(); +} +static badge_input_t translate(const input_event_t *input) { + badge_input_t shortcut=badge_ai_long_gesture(navigation.page,input->button==BSP_BTN_UP,input->button==BSP_BTN_DOWN,input->event==BSP_BTN_LONG); + if(shortcut!=BADGE_NONE)return shortcut; + if(input->button==BSP_BTN_OK)return badge_ok_gesture(navigation.page,input->event==BSP_BTN_LONG, + input->event==BSP_BTN_CLICK||input->event==BSP_BTN_DOUBLE); + if(input->button==BSP_BTN_UP)return badge_up_gesture(navigation.page,navigation.badge_mask!=0, + input->event==BSP_BTN_LONG,input->event==BSP_BTN_CLICK||input->event==BSP_BTN_DOUBLE); + if(input->event!=BSP_BTN_CLICK && input->event!=BSP_BTN_DOUBLE) return BADGE_NONE; + if(input->button==BSP_BTN_DOWN) return BADGE_DOWN; + return BADGE_NONE; +} +/* Direct mini-app -> AI handoff; no transient home screen. Navigation owns + * both lifecycles and copies context before starting the voice worker. */ +static bool return_to_yao(void){ + badge_power_display_tick(true,true); + if(badge_power_screen_off())return false; + if(demo_xiaozhi_stop()!=ESP_OK)return false; + /* Without a cached longitude, let the pending geolocation TLS request use + * the RAM held by the parked AI connection. Fresh locations keep reuse. */ + if(!yao_location_get().configured)demo_xiaozhi_release_connection(); + if(!bsp_lvgl_lock(1000))return false; + demo_xiaozhi_exit();navigation.page=BADGE_PLAYING;demo_yao_enter(); + bsp_lvgl_unlock();demo_yao_start();return true; +} +static void interpret_yao(const yao_record_t *record){ + badge_network_status_t net;badge_network_status(&net); + if(!net.connected){demo_yao_notice("请先在系统设置连接 Wi-Fi,å�¦è±¡å·²ä¿�ç•™");return;} + bool prepared=demo_xiaozhi_set_reading(record); + if(!prepared){demo_yao_notice("å°�智暂时忙,请ç¨�å�Žé‡�试");return;} + if(xz_wake_stop()!=ESP_OK){demo_xiaozhi_set_reading(NULL);return;} + if(!bsp_lvgl_lock(1000)){demo_xiaozhi_set_reading(NULL);return;} + demo_yao_stop();demo_yao_exit();navigation.ai_return=BADGE_PLAYING;navigation.page=BADGE_AI_CHAT; + demo_xiaozhi_enter();bsp_lvgl_unlock(); + if(demo_xiaozhi_start()!=ESP_OK){demo_xiaozhi_set_reading(NULL);if(return_to_yao())demo_yao_notice("å°�智å�¯åŠ¨å¤±è´¥ï¼Œå�¦è±¡å·²ä¿�ç•™");} } - static void process_input(const input_event_t *input) { - demo_nav_input_t nav_input = navigation_input(input->btn, input->event); - - if (s_navigation.active >= 0) { - demo_nav_result_t result = demo_navigation_handle(&s_navigation, nav_input, true); - const demo_entry_t *demo = &DEMOS[result.index]; - if (result.action == DEMO_NAV_ACTION_EXIT) { - esp_err_t e = demo->stop ? demo->stop() : ESP_OK; - if (e != ESP_OK) { - ESP_LOGE(TAG, "%s 页é�¢å�œæ­¢å¤±è´¥: %s", demo->name, esp_err_to_name(e)); - return; + static badge_wake_filter_t wake_filter; + bool asleep=badge_power_screen_off(); + badge_power_activity(); + bool consumed=badge_wake_consumed(&wake_filter,(uint32_t)(esp_timer_get_time()/1000),asleep, + input->event==BSP_BTN_PRESS,input->event==BSP_BTN_RELEASE); +#ifdef BADGE_XIAOZHI_POWER_PROBE + ESP_LOGI("xz_probe","INPUT button=%u event=%u asleep=%u consumed=%u",input->button,input->event,asleep,consumed); +#endif + if(consumed)return; + if(reminder.ringing){if(input->button==BSP_BTN_OK&&(input->event==BSP_BTN_CLICK||input->event==BSP_BTN_DOUBLE))reminder_closing=true;return;} + badge_input_t key=translate(input); + badge_return_menu_t prior_menu=return_menu; + key=badge_return_menu_handle(&return_menu,navigation.page,key); + if(prior_menu.open||return_menu.open) { + if(!bsp_lvgl_lock(1000)){return_menu=prior_menu;return;} + badge_ui_return_menu(return_menu.open?&return_menu:NULL);bsp_lvgl_unlock(); + if(key==BADGE_NONE)return; + } + if(navigation.page==BADGE_PLAYING && key==BADGE_BACK) { + const badge_game_t *game=&BADGE_GAMES_REGISTRY[navigation.game_selected]; + if(game->back && game->back()) return; + } + if(navigation.page==BADGE_AI_CHAT&&key!=BADGE_BACK&&key!=BADGE_GO_HOME&&key!=BADGE_AI_OPEN_SETTINGS&&key!=BADGE_AI_CYCLE_STYLE){demo_xiaozhi_key(input->button,input->event);return;} + if(navigation.page==BADGE_PLAYING && key!=BADGE_BACK && key!=BADGE_GO_HOME) { + if(on_voice_page()&&input->event!=BSP_BTN_PRESS&&input->event!=BSP_BTN_RELEASE&&!resume_voice_audio())return; + BADGE_GAMES_REGISTRY[navigation.game_selected].lifecycle.key(input->button,input->event); + if(!strcmp(BADGE_GAMES_REGISTRY[navigation.game_selected].id,"cyber-yao")){ + yao_record_t record;if(demo_yao_take_interpretation(&record))interpret_yao(&record); + } + return; + } + badge_navigation_t previous=navigation; + badge_action_t action=BADGE_IDLE; + action=badge_navigation_handle(&navigation,key); + if(action==BADGE_IDLE) return; + if(action==BADGE_SLEEP_SAVE){ + esp_err_t e=settings_open?nvs_set_u8(settings,"screen_timeout",navigation.screen_timeout):ESP_ERR_INVALID_STATE; + if(e==ESP_OK)e=nvs_commit(settings); + storage_ok=e==ESP_OK; + if(storage_ok)badge_power_set_timeout(navigation.screen_timeout); + else {navigation=previous;ESP_LOGW(TAG,"Screen timeout save failed: %s",esp_err_to_name(e));} + } + if(action==BADGE_AI_TOGGLE){esp_err_t e=xz_wake_enable(!xz_wake_enabled());if(e!=ESP_OK)ESP_LOGW(TAG,"AI preference: %s",esp_err_to_name(e));} + if(action==BADGE_AI_VOLUME){esp_err_t e=demo_xiaozhi_save_volume(navigation.ai_volume);if(e!=ESP_OK)ESP_LOGW(TAG,"AI volume: %s",esp_err_to_name(e));} + if(action==BADGE_AI_STYLE&&!xiaozhi_style_set(navigation.ai_style))navigation=previous; + /* The conversation timer observes the cached style. Keep its UI and worker + * alive; the shell must not render over the active conversation screen. */ + if(action==BADGE_AI_STYLE&&navigation.page==BADGE_AI_CHAT)return; + if(action==BADGE_LAUNCH||action==BADGE_AI_START){if(xz_wake_stop()!=ESP_OK){navigation=previous;return;}} + if(action==BADGE_AI_STOP&&navigation.page==BADGE_PLAYING){ + navigation=previous;if(!return_to_yao())navigation=previous;return; + } + if(action==BADGE_AI_STOP){if(demo_xiaozhi_stop()!=ESP_OK){navigation=previous;return;}} + if(action==BADGE_LAUNCH||action==BADGE_WIFI_START||action==BADGE_WIFI_TOGGLE)demo_xiaozhi_release_connection(); + if(action==BADGE_WIFI_START){badge_network_start_setup();return;} + if(navigation.page==BADGE_WIFI&&previous.page!=BADGE_WIFI)badge_network_start_setup(); + if(action==BADGE_SELECT) { + esp_err_t e=profile_protocol_select(navigation.badge_selected); + if(e!=ESP_OK){navigation=previous;ESP_LOGW(TAG,"Badge switch busy or failed: %s",esp_err_to_name(e));} + if(e==ESP_OK&&bsp_lvgl_lock(1000)) { + if(profile_protocol_lock()) { + load_profile_ui();render_shell();profile_seen=profile_store_revision();profile_store_displayed(profile_seen);profile_protocol_unlock(); } - if (!bsp_lvgl_lock(500)) return; - demo->exit(); - demo_navigation_complete_exit(&s_navigation); - enter_menu(); bsp_lvgl_unlock(); - } else if (result.action == DEMO_NAV_ACTION_FORWARD) { - demo->key(input->btn, input->event); } return; } - - if (nav_input == DEMO_NAV_INPUT_OTHER || nav_input == DEMO_NAV_INPUT_OK_LONG) return; - if (!bsp_lvgl_lock(500)) return; - demo_nav_result_t result = demo_navigation_handle( - &s_navigation, nav_input, s_ok[s_navigation.selected]); - if (result.action == DEMO_NAV_ACTION_REFRESH) { - menu_refresh(); - ui_pixel_mascot_jump(s_mascot); - } else if (result.action == DEMO_NAV_ACTION_ENTER) { - const demo_entry_t *demo = &DEMOS[result.index]; - ui_pixel_mascot_jump(s_mascot); - lv_obj_delete(s_menu_scr); - s_menu_scr = NULL; - s_mascot = NULL; - demo->enter(); - bsp_lvgl_unlock(); - - esp_err_t e = demo->start ? demo->start() : ESP_OK; - if (e != ESP_OK) { - ESP_LOGE(TAG, "%s 页é�¢å�¯åŠ¨å¤±è´¥: %s", demo->name, esp_err_to_name(e)); + if(action==BADGE_WIFI_TOGGLE) {badge_network_toggle();return;} + if(action==BADGE_STOP) { + if(xz_wake_stop()!=ESP_OK){navigation=previous;return;} + const demo_entry_t *g=&BADGE_GAMES_REGISTRY[navigation.game_selected].lifecycle; + esp_err_t err=g->stop?g->stop():ESP_OK; + if(err!=ESP_OK) { + navigation=previous; + ESP_LOGE(TAG,"Game stop failed, long OK retries: %s",esp_err_to_name(err)); + return; } + } + if(!bsp_lvgl_lock(1000)) {navigation=previous; return;} + if(action==BADGE_AI_START){badge_ui_destroy();demo_xiaozhi_enter();bsp_lvgl_unlock();esp_err_t e=demo_xiaozhi_start();ESP_LOGI(TAG,"AI start: %s",esp_err_to_name(e));return;} + if(action==BADGE_AI_STOP){demo_xiaozhi_exit();badge_ui_create();} + if(action==BADGE_LAUNCH) { + const demo_entry_t *g=&BADGE_GAMES_REGISTRY[navigation.game_selected].lifecycle; + badge_ui_destroy(); g->enter(); bsp_lvgl_unlock(); + esp_err_t err=g->start?g->start():ESP_OK; + ESP_LOGI(TAG,"Game %s start: %s",BADGE_GAMES_REGISTRY[navigation.game_selected].id,esp_err_to_name(err)); return; } - bsp_lvgl_unlock(); + if(action==BADGE_STOP) { + voice_suspended=false; + BADGE_GAMES_REGISTRY[navigation.game_selected].lifecycle.exit(); badge_ui_create(); + ESP_LOGI(TAG,"Returned from game to page %d",navigation.page); + } + render_shell(); bsp_lvgl_unlock(); + if(action==BADGE_BRIGHTNESS) bsp_display_backlight((navigation.brightness+1)*20); + if(previous.page==BADGE_DISPLAY_SETTINGS && navigation.page!=BADGE_DISPLAY_SETTINGS) save_settings(); } +/* Only the navigation task stops applications. Never join the voice worker + * from its own MCP callback, and never delete an active producer's UI. */ +static bool control_stop_current(void) { + badge_power_display_tick(true,true); + if(badge_power_screen_off())return false; + if(xz_wake_stop()!=ESP_OK)return false; + if(navigation.page==BADGE_AI_CHAT){ + if(demo_xiaozhi_stop()!=ESP_OK)return false; + }else if(navigation.page==BADGE_PLAYING){ + const demo_entry_t *g=&BADGE_GAMES_REGISTRY[navigation.game_selected].lifecycle; + if(g->stop&&g->stop()!=ESP_OK)return false; + } + return true; +} +static bool control_home(void) { + if(!control_stop_current()||!bsp_lvgl_lock(1000))return false; + if(navigation.page==BADGE_AI_CHAT){demo_xiaozhi_exit();badge_ui_create();} + else if(navigation.page==BADGE_PLAYING){ + BADGE_GAMES_REGISTRY[navigation.game_selected].lifecycle.exit(); + voice_suspended=false;badge_ui_create(); + } + badge_ui_return_menu(NULL);return_menu=(badge_return_menu_t){0}; + navigation.page=BADGE_HOME;render_shell();bsp_lvgl_unlock();return true; +} +static void shutdown_step(const char *step,esp_err_t e){ + if(e!=ESP_OK)ESP_LOGW(TAG,"Shutdown %s failed: %s; continuing to stop remaining peripherals",step,esp_err_to_name(e)); +} +/* Terminal operation. Navigation owns every producer before suspending buses. */ +static bool control_shutdown(void){ + /* Refuse shutdown while USB/web is committing profile data. */ + if(!profile_protocol_lock())return false; + if(!profile_store_ready()){profile_protocol_unlock();return false;} + profile_protocol_unlock(); + if(!control_stop_current())return false; + demo_xiaozhi_release_connection(); + atomic_store(&input_ready,false); + if(badge_network_shutdown()!=ESP_OK){ESP_LOGE(TAG,"Network shutdown failed; restarting to restore service");esp_restart();} + /* Freeze configuration writes until deep sleep; reboot recreates the lock. */ + if(!profile_protocol_lock()||!profile_store_ready()){ESP_LOGE(TAG,"Profile write during shutdown; restarting");esp_restart();} + esp_sleep_disable_wakeup_source(ESP_SLEEP_WAKEUP_ALL); + if(bsp_button_prepare_deep_sleep()!=ESP_OK){ESP_LOGE(TAG,"Wake button setup failed; restarting");esp_restart();} + esp_err_t battery_sleep=bsp_battery_sleep(),audio_sleep=bsp_audio_sleep(); + ESP_LOGI(TAG,"Shutdown suspend battery=%s audio=%s",esp_err_to_name(battery_sleep),esp_err_to_name(audio_sleep)); + shutdown_step("I2S",bsp_audio_prepare_deep_sleep()); + shutdown_step("I2C",bsp_i2c_prepare_deep_sleep()); + if(!bsp_lvgl_lock(1000)){ESP_LOGE(TAG,"Display shutdown lock failed");esp_restart();} + shutdown_step("LCD",bsp_display_prepare_deep_sleep()); + ESP_LOGI(TAG,"Shutdown: deep sleep, UP key wake, reminders retained"); +#ifdef BADGE_ASSISTANT_DEVICE_PROBE + esp_sleep_enable_timer_wakeup(5000000); +#endif + esp_deep_sleep_start();esp_restart();return false; +} +#ifdef BADGE_CONTROL_DEVICE_PROBE +static bool control_probe_fail_prepare,control_probe_fail_start; +#endif +static bool execute_control_impl(badge_control_command_t c) { + if(!demo_xiaozhi_active())return false; + if(c.kind==BC_XZ_VOLUME)return demo_xiaozhi_set_volume(c.value); + if(c.kind==BC_REMINDER_SET){uint32_t id=0;int64_t due=c.value?badge_alarm_service_now()+c.value:c.when; + bool ok=badge_alarm_service_add(due,c.minute,c.repeat,c.text,&id);if(ok)badge_control_set_created_id(id);return ok;} + if(c.kind==BC_REMINDER_CANCEL)return badge_alarm_service_cancel(c.value); + if(c.kind==BC_HOME)return control_home(); + if(c.kind==BC_SHUTDOWN)return control_shutdown(); + if(c.kind==BC_PROFILE_EDIT){ + esp_err_t e=profile_protocol_edit(c.value,c.revision,c.field,c.text); + if(e!=ESP_OK){ESP_LOGW(TAG,"Profile edit rejected: %s",esp_err_to_name(e));return false;} + if(bsp_lvgl_lock(1000)){ + if(profile_protocol_lock()){load_profile_ui();profile_seen=profile_store_revision();profile_store_displayed(profile_seen);profile_protocol_unlock();} + bsp_lvgl_unlock(); + }publish_control();return true; + } + if(c.kind==BC_BRIGHTNESS){ + navigation.brightness=c.value/20-1;bsp_display_backlight(c.value);save_settings();publish_control();return storage_ok; + } + const char *target=c.kind==BC_YAO?"cyber-yao":c.kind==BC_MUYU?"zen-muyu":(c.kind==BC_RADIO||c.kind==BC_RADIO_PRESET)?"leo-radio":c.kind==BC_VOICE||c.kind==BC_PLAY_VOICE?"voice-keychain":NULL; + size_t index=0;if(target){for(;indexvaluestring,c.text);cJSON_Delete(p); + } + profile_protocol_unlock();if(!valid)return false; + } + // Join producers while the current conversation screen remains visible. + // Destroy/create/render the destination inside ONE LVGL lock, so no home + // or old-profile frame can be flushed during an assistant transition. + if(!control_stop_current())return false; + if(target)demo_xiaozhi_release_connection(); +#ifdef BADGE_CONTROL_DEVICE_PROBE + if(control_probe_fail_prepare){control_probe_fail_prepare=false;goto resume_conversation;} +#endif + if(c.kind==BC_BADGE&&profile_protocol_select(c.value)!=ESP_OK)goto resume_conversation; + if(!bsp_lvgl_lock(1000))goto resume_conversation; + if(!profile_protocol_lock()){bsp_lvgl_unlock();goto resume_conversation;} + load_profile_ui();profile_seen=profile_store_revision();profile_store_displayed(profile_seen);profile_protocol_unlock(); + badge_ui_return_menu(NULL);return_menu=(badge_return_menu_t){0}; + demo_xiaozhi_exit(); + if(target){ + navigation.game_selected=index;navigation.playing_return=BADGE_HOME;navigation.page=BADGE_PLAYING; + const demo_entry_t *g=&BADGE_GAMES_REGISTRY[index].lifecycle;g->enter();bsp_lvgl_unlock(); + esp_err_t e; +#ifdef BADGE_CONTROL_DEVICE_PROBE + if(control_probe_fail_start){control_probe_fail_start=false;e=ESP_ERR_NO_MEM;} + else +#endif + e=c.kind==BC_RADIO_PRESET?demo_radio_start_preset(c.value):(g->start?g->start():ESP_OK); + if(e==ESP_OK&&c.kind==BC_PLAY_VOICE)e=demo_voice_play(c.value); + if(e!=ESP_OK){ESP_LOGE(TAG,"Assistant app launch failed: %s",esp_err_to_name(e));control_home();return false;} + }else{navigation.page=c.kind==BC_QR?BADGE_QR:BADGE_HOME;navigation.qr_return=BADGE_HOME;badge_ui_create();render_shell();bsp_lvgl_unlock();} + return true; +resume_conversation: + // No screen was deleted. Restore its producer so a transient profile/lock + // failure cannot leave the visible conversation permanently unresponsive. + {esp_err_t e=demo_xiaozhi_start();if(e!=ESP_OK){ESP_LOGE(TAG,"Assistant resume failed: %s",esp_err_to_name(e));control_home();}} + return false; +} +#ifdef BADGE_YAO_DEVICE_PROBE +#include "../tests/yao_device_probe.h" +#endif +static bool execute_control(badge_control_command_t c){ +#ifdef BADGE_CONTROL_DEVICE_PROBE + unsigned homes=badge_ui_probe_home_count(); +#endif + bool ok=execute_control_impl(c); +#ifdef BADGE_CONTROL_DEVICE_PROBE + if(ok){ + unsigned expected=c.kind==BC_BADGE?1:0; + configASSERT(badge_ui_probe_home_count()-homes==expected); + if(c.kind==BC_BADGE)configASSERT(badge_ui_probe_home_badge()==c.value); + ESP_LOGI("control_probe","DIRECT_PAGE_PASS action=%u home_renders=%u",c.kind,expected); + } +#endif + return ok; +} +#ifdef BADGE_CONTROL_DEVICE_PROBE +#include "../tests/control_device_probe.h" +#endif +#ifdef BADGE_XIAOZHI_CONNECT_PROBE +#include "../tests/xiaozhi_connect_probe.h" +#endif +#ifdef BADGE_ASSISTANT_DEVICE_PROBE +#include "profile_edit.h" +#include "../tests/assistant_device_probe.h" +#endif +#ifdef BADGE_XIAOZHI_REUSE_PROBE +#include "../tests/xiaozhi_reuse_probe.h" +#endif +#ifdef BADGE_WAKE_DEVICE_PROBE +#include "../tests/wake_device_probe.h" +#endif +#ifdef BADGE_XIAOZHI_STABILITY_PROBE +extern unsigned demo_xiaozhi_stability_replies(void); +extern unsigned demo_xiaozhi_stability_allocations(void); +static void stability_probe_tick(void){ + static unsigned phase,volume;static bool saved_wake;static int64_t started; + int64_t now=esp_timer_get_time(); + if(!phase&&now>12000000){ + badge_power_set_timeout(0); /* Probe only: keep USB reachable, no NVS write. */ + saved_wake=xz_wake_enabled();configASSERT(xz_wake_enable(true)==ESP_OK); + volume=demo_xiaozhi_saved_volume();configASSERT(control_home()); + input_event_t key={BSP_BTN_UP,BSP_BTN_LONG};process_input(&key); + configASSERT(navigation.page==BADGE_AI_CHAT);started=now;phase=1; + }else if(phase==1&&(demo_xiaozhi_stability_replies()>=5||now-started>240000000)){ + unsigned replies=demo_xiaozhi_stability_replies();bool chat=navigation.page==BADGE_AI_CHAT; + configASSERT(control_home());configASSERT(demo_xiaozhi_saved_volume()==volume); + configASSERT(demo_xiaozhi_stability_allocations()==1); + ESP_LOGI("stability_bench","BENCH_DONE replies=%u chat=%u volume_preserved=1 codec_allocations=1",replies,chat);phase=2;started=now; + }else if(phase==2&&now-started>6000000){ + configASSERT(xz_wake_listening());ESP_LOGI("stability_bench","BACKGROUND_WAKE_AFTER_CLOUD_PASS"); + configASSERT(xz_wake_enable(saved_wake)==ESP_OK);phase=3; + } +} +#endif +#ifdef BADGE_TOOL_CLOUD_PROBE +#include "../tests/tool_cloud_probe.h" +#endif -static void input_task(void *arg) { +static void input_worker(void *arg) { (void)arg; input_event_t input; - for (;;) { - if (xQueueReceive(s_input_queue, &input, portMAX_DELAY) == pdTRUE) { - process_input(&input); + uint32_t last_status=0,last_battery=0; + for(;;) { + demo_xiaozhi_connection_tick(); +#if defined(BADGE_XIAOZHI_CONNECT_PROBE) && !defined(BADGE_ASSISTANT_DEVICE_PROBE) + if(atomic_load(&input_ready))connect_probe_tick(); +#endif +#ifdef BADGE_ASSISTANT_DEVICE_PROBE + if(atomic_load(&input_ready))assistant_device_probe_tick(); +#endif +#ifdef BADGE_YAO_DEVICE_PROBE + if(atomic_load(&input_ready))yao_device_probe_tick(); +#endif + bool got_input=xQueueReceive(input_queue,&input,pdMS_TO_TICKS(badge_power_screen_off()?1000:250))==pdTRUE; + if(got_input&&atomic_load(&input_ready)&&input.button!=(bsp_btn_t)255)process_input(&input); + if(atomic_load(&input_ready))badge_power_display_tick(reminder.ringing,false); + if(atomic_load(&input_ready)){ + publish_control();badge_control_command_t command; + if(badge_control_take(&command)){badge_power_activity();badge_power_display_tick(true,true);bool ok=!badge_power_screen_off()&&execute_control(command);badge_control_finish(ok);ESP_LOGI(TAG,"Assistant action=%u value=%u result=%s",command.kind,command.value,ok?"OK":"FAILED");} + } + if(atomic_load(&input_ready)){ + if(reminder_closing&&badge_alert_dismiss()&&badge_alarm_service_ack(reminder_current_id)){ + reminder_closing=false;reminder_current_id=0;badge_reminder_clear(&reminder);publish_control(); + } + badge_alarm_t alarm; + if(!reminder.ringing&&badge_alarm_service_poll(&alarm)){ + badge_power_activity(); + if(control_home()&&badge_alert_start(alarm.text)){ + reminder_current_id=alarm.id;snprintf(reminder.text,sizeof(reminder.text),"%s",alarm.text);reminder.ringing=true;publish_control();ESP_LOGI(TAG,"Reminder fired id=%u",(unsigned)alarm.id); + } + } + } +#ifdef BADGE_CONTROL_DEVICE_PROBE + if(atomic_load(&input_ready))control_probe_tick(); +#endif +#ifdef BADGE_WAKE_DEVICE_PROBE + if(atomic_load(&input_ready))wake_probe_tick(); +#endif +#ifdef BADGE_XIAOZHI_REUSE_PROBE + if(atomic_load(&input_ready))reuse_probe_tick(); +#endif +#ifdef BADGE_XIAOZHI_STABILITY_PROBE + if(atomic_load(&input_ready))stability_probe_tick(); +#endif +#ifdef BADGE_TOOL_CLOUD_PROBE + if(atomic_load(&input_ready))cloud_probe_tick(); +#endif + if(atomic_load(&input_ready)){ + if(navigation.page==BADGE_AI_CHAT&&xz_wake_enabled()&&demo_xiaozhi_idle()){ + badge_page_t origin=navigation.ai_return; + if(origin==BADGE_PLAYING){return_to_yao();} + else if(control_home()&&bsp_lvgl_lock(1000)){navigation.page=origin;render_shell();bsp_lvgl_unlock();} + } + bool voice_quiet=voice_idle_wake(); + bool quiet=(navigation.page!=BADGE_PLAYING||voice_quiet)&&navigation.page!=BADGE_AI_CHAT&&!reminder.ringing; + if(quiet&&xz_wake_take_trigger()){ + badge_power_display_tick(true,true); + if(badge_power_screen_off())continue; + badge_page_t origin=voice_quiet?navigation.playing_return:navigation.page; + bool stopped=voice_quiet?control_home():xz_wake_stop()==ESP_OK; + if(stopped&&bsp_lvgl_lock(1000)){ + navigation.ai_return=origin;navigation.page=BADGE_AI_CHAT;badge_ui_return_menu(NULL);return_menu=(badge_return_menu_t){0}; + badge_ui_destroy();demo_xiaozhi_enter();bsp_lvgl_unlock(); + esp_err_t start_result=demo_xiaozhi_start();ESP_LOGI(TAG,"Voice wake AI start: %s",esp_err_to_name(start_result)); + } + }else xz_wake_tick(quiet); + } + if(!atomic_load(&input_ready)) continue; + /* A committed profile still needs its UI references refreshed while + * the display sleeps. Ask the power owner to wake LVGL, otherwise the + * flash bank reuse barrier would reject every subsequent upload. */ + if(profile_store_refresh_pending())badge_power_activity(); + badge_power_display_tick(reminder.ringing,false); + if(badge_power_screen_off()) continue; + unsigned revision=profile_store_revision(); + if(revision!=profile_seen && bsp_lvgl_lock(100)) { + if(profile_protocol_lock()) { + load_profile_ui(); + if(navigation.page!=BADGE_PLAYING&&navigation.page!=BADGE_AI_CHAT) render_shell(); + if(return_menu.open)badge_ui_return_menu(&return_menu); + profile_seen=profile_store_revision();profile_store_displayed(profile_seen); + profile_protocol_unlock(); + } + bsp_lvgl_unlock(); + } + uint32_t now=(uint32_t)(esp_timer_get_time()/1000000); + if(now-last_battery>=30) { + if(!battery_ok)battery_ok=bsp_battery_init()==ESP_OK; + int next=battery_ok?bsp_battery_soc():-1;if(next>=0)battery=next; + last_battery=now; + } + if(now!=last_status){ + if(on_yao_page())demo_yao_tick(); + if(bsp_lvgl_lock(100)){if(navigation.page==BADGE_AI_SETTINGS)render_shell();update_status();bsp_lvgl_unlock();} + last_status=now; } } } - -static esp_err_t input_dispatch_init(void) { - s_input_queue = xQueueCreate(INPUT_QUEUE_DEPTH, sizeof(input_event_t)); - if (!s_input_queue) return ESP_ERR_NO_MEM; - if (xTaskCreate(input_task, "demo_input", 4096, NULL, 5, &s_input_task) != pdPASS) { - vQueueDelete(s_input_queue); - s_input_queue = NULL; - return ESP_ERR_NO_MEM; - } - return ESP_OK; +static void on_key(bsp_btn_t btn,bsp_btn_ev_t event,void *arg) { + (void)arg; + if(!atomic_load(&input_ready)) return; +#ifdef BADGE_XIAOZHI_POWER_PROBE + ESP_LOGI("xz_probe","PHYSICAL button=%u event=%u",btn,event); +#endif + const input_event_t input={btn,event}; + (void)xQueueSend(input_queue,&input,0); } - -static void input_dispatch_deinit(void) { - s_input_ready = false; - if (s_input_task) { - vTaskDelete(s_input_task); - s_input_task = NULL; - } - if (s_input_queue) { - vQueueDelete(s_input_queue); - s_input_queue = NULL; - } -} - -// button callbacks run on the shared esp_timer task; enqueue only and return immediately. -static void on_key(bsp_btn_t btn, bsp_btn_ev_t ev, void *user) { - (void)user; - if (!s_input_ready || !s_input_queue) return; - const input_event_t input = { .btn = btn, .event = ev }; - (void)xQueueSend(s_input_queue, &input, 0); -} - +#ifdef BADGE_RADIO_DEVICE_PROBE +#include "../tests/radio_device_probe.h" +#endif +#ifdef BADGE_XIAOZHI_DEVICE_PROBE +#include "../tests/xiaozhi_device_probe.h" +#endif +#ifdef BADGE_BSP_POWER_PROBE +#include "../tests/bsp_power_device_probe.h" +#endif void app_main(void) { - ESP_LOGI(TAG, "FoloToy AI Passport BSP demo å�¯åЍ"); - esp_sleep_wakeup_cause_t wakeup = esp_sleep_get_wakeup_cause(); - if (wakeup != ESP_SLEEP_WAKEUP_UNDEFINED) { - ESP_LOGI(TAG, "休眠唤醒原因: %d", wakeup); - } - + ESP_LOGI(TAG,"Arasaka Personnel Badge " BADGE_VERSION " starting"); + if(badge_power_init()!=ESP_OK)ESP_LOGW(TAG,"Power management unavailable"); bsp_i2c_init(); - bsp_i2c_scan(); - - // å±�幕是本 demo çš„ UI 载体,失败就没有è�œå�•å�¯è¨€ —— 打清楚日志å�Žé€€å‡º, - // ä¸�å�š"串å�£è�œå�•"é™�级(那会让本文件å¤�æ�‚一å€�,è¿�背å�‚考示例的åˆ�è¡·)。 - if (bsp_display_init() != ESP_OK || !bsp_lvgl_init()) { - ESP_LOGE(TAG, "显示/LVGL åˆ�始化失败,demo 无法继续。" - "检查 SPI 接线(MOSI=%d SCLK=%d CS=%d DC=%d BL=%d)", - BSP_LCD_MOSI, BSP_LCD_SCLK, BSP_LCD_CS, BSP_LCD_DC, BSP_LCD_BL); - return; + /* Put the physically powered codec into standby even before the first app + * opens it. No audio task exists yet; later owners use init() to resume. */ + esp_err_t audio_idle=bsp_audio_init(); + if(audio_idle==ESP_OK)audio_idle=bsp_audio_sleep(); + if(audio_idle!=ESP_OK)ESP_LOGW(TAG,"Initial audio standby: %s",esp_err_to_name(audio_idle)); + if(bsp_display_init()!=ESP_OK || !bsp_lvgl_init()) { + ESP_LOGE(TAG,"Display initialization failed"); return; } - bsp_display_backlight(100); - - demo_navigation_init(&s_navigation, DEMO_COUNT); - - // 其余外设å�•项失败ä¸�阻塞:è�œå�•里标 [FAIL],其他项照常å�¯æµ‹ã€‚ - s_ok[0] = true; // Display 已确认å�¯ç”¨ - esp_err_t input_err = input_dispatch_init(); - esp_err_t button_err = input_err == ESP_OK - ? bsp_button_init(on_key, NULL) - : ESP_ERR_INVALID_STATE; - s_ok[1] = input_err == ESP_OK && button_err == ESP_OK; - if (input_err != ESP_OK) { - ESP_LOGE(TAG, "按键事件任务创建失败: %s", esp_err_to_name(input_err)); - } else if (button_err != ESP_OK) { - ESP_LOGE(TAG, "按键åˆ�始化失败: %s", esp_err_to_name(button_err)); - input_dispatch_deinit(); +#ifdef BADGE_BSP_POWER_PROBE + bsp_power_device_probe(); +#endif + badge_navigation_init(&navigation,BADGE_GAME_COUNT); + load_settings();if(!badge_alarm_service_init())ESP_LOGE(TAG,"Reminder storage unavailable; data preserved");xiaozhi_style_init();xz_wake_init();xz_wake_on_trigger(control_wakeup);xz_wake_on_prepare(demo_xiaozhi_release_connection); + esp_err_t profile_err=profile_store_init(); + if(profile_err!=ESP_OK)ESP_LOGE(TAG,"Profile storage unavailable: %s (existing partitions preserved)",esp_err_to_name(profile_err)); + profile_seen=profile_store_revision(); + profile_protocol_init();badge_network_init(); + bsp_display_backlight((navigation.brightness+1)*20); + uint8_t mac[6]; + if(esp_read_mac(mac,ESP_MAC_WIFI_STA)==ESP_OK) snprintf(unit,sizeof(unit),"%02X%02X%02X",mac[3],mac[4],mac[5]); + battery_ok=bsp_battery_init()==ESP_OK; + battery=battery_ok?bsp_battery_soc():-1; + input_queue=xQueueCreate(16,sizeof(input_event_t)); + badge_control_set_wakeup(control_wakeup); + if(input_queue && xTaskCreate(input_worker,"badge_input",6144,NULL,5,NULL)==pdPASS) { + buttons_ok=bsp_button_init(on_key,NULL)==ESP_OK; + } else { + if(input_queue) vQueueDelete(input_queue); + input_queue=NULL; + ESP_LOGE(TAG,"Input task allocation failed"); } - s_ok[2] = (bsp_audio_init() == ESP_OK); - s_ok[3] = (bsp_battery_init() == ESP_OK); - s_ok[4] = true; // 页é�¢å†…按需åˆ�始化并显示错误 - s_ok[5] = true; - s_ok[6] = true; - - if (bsp_lvgl_lock(1000)) { - enter_menu(); + if(bsp_lvgl_lock(1000)) { + if(profile_protocol_lock()) { + load_profile_ui();badge_ui_create();render_shell(); + profile_seen=profile_store_revision();profile_store_displayed(profile_seen); + profile_protocol_unlock(); + } bsp_lvgl_unlock(); - s_input_ready = true; + atomic_store(&input_ready,buttons_ok); } - - ESP_LOGI(TAG, "就绪:Display=%d Button=%d Audio=%d Battery=%d", - s_ok[0], s_ok[1], s_ok[2], s_ok[3]); + ESP_LOGI(TAG,"Ready: home=badge games=%u buttons=%d battery=%d soc=%d storage=%d", + (unsigned)BADGE_GAME_COUNT,buttons_ok,battery_ok,battery,storage_ok); + ESP_LOGI(TAG,"Profile storage: %s; USB configuration: %s",esp_err_to_name(profile_err),esp_err_to_name(profile_usb_start())); +#ifdef BADGE_RADIO_DEVICE_PROBE + xTaskCreate(radio_probe_task,"radio_probe",4096,NULL,2,NULL); +#endif +#ifdef BADGE_XIAOZHI_DEVICE_PROBE + xTaskCreate(xz_probe_task,"xz_probe",4096,NULL,2,NULL); +#endif } diff --git a/main/muyu_app.c b/main/muyu_app.c new file mode 100644 index 0000000..4f80425 --- /dev/null +++ b/main/muyu_app.c @@ -0,0 +1,294 @@ +#include "muyu_app.h" +#include "muyu_logic.h" +#include "muyu_ui.h" +#include "badge_power.h" +#include "bsp_audio.h" +#include "bsp_battery.h" +#include "bsp_button.h" +#include "bsp_display.h" +#include "bsp_i2c.h" +#include "esp_log.h" +#include "esp_timer.h" +#include "esp_system.h" +#include "freertos/FreeRTOS.h" +#include "freertos/queue.h" +#include "freertos/task.h" +#include "freertos/semphr.h" +#include "nvs.h" +#include "nvs_flash.h" +#include +#include +#include + +static const char *TAG = "muyu"; +typedef struct { bsp_btn_t button; bsp_btn_ev_t event; } input_t; +typedef struct { uint32_t time; uint8_t volume; } sound_t; +static QueueHandle_t input_queue, sound_queue; +static atomic_bool audio_ready; +static atomic_bool stopping; +static SemaphoreHandle_t app_done, audio_done; +/* These flags and resource lifetimes belong to the menu lifecycle task. */ +static bool app_started, audio_started, state_loaded; +static muyu_state_t state; +static nvs_handle_t storage; +static bool storage_open, storage_ok, battery_ok, buttons_ok; +static int battery = -1; +#define SAMPLE_RATE 16000 +#define TONE_SAMPLES 2240 +static int16_t *tone; +static const int16_t silence[1600]; + +static uint32_t now_ms(void) { return (uint32_t)(esp_timer_get_time() / 1000); } + +void demo_muyu_key(bsp_btn_t button, bsp_btn_ev_t event) +{ + if (!input_queue || atomic_load(&stopping) || event==BSP_BTN_RELEASE) return; + /* Only enqueue useful events. No locks, audio, NVS, allocation or logging. */ + if ((button == BSP_BTN_OK && event != BSP_BTN_PRESS) || + (button != BSP_BTN_OK && event == BSP_BTN_PRESS)) return; + const input_t input = {button, event}; + (void)xQueueSend(input_queue, &input, 0); +} + +static void audio_worker(void *arg) +{ + (void)arg; + sound_t sound; + badge_power_enter(); + while (!atomic_load(&stopping)) { + badge_power_audio_tick(false); + if (xQueueReceive(sound_queue, &sound, pdMS_TO_TICKS(1000)) != pdTRUE) continue; + if (atomic_load(&stopping)) break; + if (!atomic_load(&audio_ready) || !sound.volume || now_ms() - sound.time > 120) continue; + badge_power_audio_tick(true); + bsp_audio_set_volume(sound.volume); + esp_err_t err = bsp_audio_write(tone, TONE_SAMPLES * sizeof(*tone)); + /* Flush silence through every DMA descriptor to prevent a repeated tail. */ + if (err == ESP_OK) err = bsp_audio_write(silence, sizeof(silence)); + if (err != ESP_OK) { + atomic_store(&audio_ready, false); + ESP_LOGE(TAG, "Audio playback failed: %s", esp_err_to_name(err)); + } + } + badge_power_leave(); + xSemaphoreGive(audio_done); + vTaskDelete(NULL); +} + +static void prepare_audio(void) +{ + atomic_store(&audio_ready, false); + if (bsp_audio_init() != ESP_OK || bsp_audio_set_format(SAMPLE_RATE, 16, 1) != ESP_OK) return; + tone = malloc(TONE_SAMPLES * sizeof(*tone)); + if (!tone) return; + /* Modal synthesis: inharmonic wooden resonances and a short noisy attack. */ + uint32_t noise = 0x4D595955; + for (int i = 0; i < TONE_SAMPLES; i++) { + float t = (float)i / SAMPLE_RATE; + noise = noise * 1664525U + 1013904223U; + float attack = i < 120 ? ((float)(noise >> 16) / 32768.0f - 1.0f) * + 0.18f * (1.0f - (float)i / 120) : 0; + float body = expf(-32 * t) * (0.62f * sinf(6.2831853f * 720 * t) + + 0.26f * sinf(6.2831853f * 1170 * t) + 0.12f * sinf(6.2831853f * 1890 * t)); + float ramp = i < 16 ? (float)i / 16 : 1; + float tail = i > TONE_SAMPLES - 160 ? (float)(TONE_SAMPLES - 1 - i) / 160 : 1; + tone[i] = (int16_t)((body + attack) * ramp * tail * 12000); + } + sound_queue = xQueueCreate(1, sizeof(sound_t)); + if (!sound_queue) return; + audio_done = xSemaphoreCreateBinary(); + if (!audio_done) { + vQueueDelete(sound_queue); + sound_queue = NULL; + return; + } + atomic_store(&audio_ready, true); + if (xTaskCreate(audio_worker, "muyu_audio", 3072, NULL, 6, NULL) != pdPASS) { + atomic_store(&audio_ready, false); + vQueueDelete(sound_queue); + sound_queue = NULL; + vSemaphoreDelete(audio_done); + audio_done = NULL; + } else { + audio_started = true; + } +} + +static void load_state(void) +{ + uint32_t total = 0; + uint8_t speed = 1, volume = 2; + esp_err_t err = nvs_flash_init(); + if (err == ESP_OK) err = nvs_open("zen_muyu_v1", NVS_READWRITE, &storage); + storage_open = err == ESP_OK; + storage_ok = storage_open; + if (storage_open) { + esp_err_t a = nvs_get_u32(storage, "total", &total); + esp_err_t b = nvs_get_u8(storage, "speed", &speed); + esp_err_t c = nvs_get_u8(storage, "volume", &volume); + /* Wrong types/corrupt records remain visible and are never overwritten. */ + if ((a != ESP_OK && a != ESP_ERR_NVS_NOT_FOUND) || + (b != ESP_OK && b != ESP_ERR_NVS_NOT_FOUND) || + (c != ESP_OK && c != ESP_ERR_NVS_NOT_FOUND) || + total > MUYU_COUNT_MAX || speed >= MUYU_SPEED_COUNT || volume >= MUYU_VOLUME_COUNT) { + nvs_close(storage); + storage_open = storage_ok = false; + ESP_LOGE(TAG, "Stored record invalid; preserving NVS"); + } + } else ESP_LOGW(TAG, "NVS unavailable: %s; no erase attempted", esp_err_to_name(err)); + muyu_init(&state, total, speed, volume, now_ms()); +} + +static void save_state(bool explicit_save) +{ + esp_err_t err = storage_open ? ESP_OK : ESP_ERR_INVALID_STATE; + if (err == ESP_OK && state.dirty) { + err = nvs_set_u32(storage, "total", state.total); + if (err == ESP_OK) err = nvs_set_u8(storage, "speed", state.speed); + if (err == ESP_OK) err = nvs_set_u8(storage, "volume", state.volume); + if (err == ESP_OK) err = nvs_commit(storage); + } + storage_ok = err == ESP_OK; + muyu_saved(&state, now_ms(), storage_ok); + if (!storage_ok) ESP_LOGW(TAG, "Save failed: %s", esp_err_to_name(err)); + if (explicit_save && bsp_lvgl_lock(100)) { + muyu_ui_refresh(&state, battery, atomic_load(&audio_ready), storage_ok, buttons_ok); + muyu_ui_notice(storage_ok ? "å·²ä¿�å­˜ å�¯ä»¥å…³æœº" : "ä¿�存失败 请é‡�试"); + bsp_lvgl_unlock(); + } +} + +static void hit_feedback(bool increased) +{ + if (atomic_load(&audio_ready) && sound_queue) { + const sound_t sound = {now_ms(), muyu_volume(&state)}; + /* Keep at most one pending sound; fast strikes never build a backlog. */ + xQueueOverwrite(sound_queue, &sound); + } + if (!badge_power_screen_off() && bsp_lvgl_lock(30)) { + muyu_ui_hit(increased); + bsp_lvgl_unlock(); + } +} + +static void worker(void *arg) +{ + (void)arg; + uint32_t last_ui = 0, last_battery = now_ms(); + input_t input; + while (!atomic_load(&stopping)) { + if (xQueueReceive(input_queue, &input, pdMS_TO_TICKS(badge_power_screen_off()&&!state.automatic?1000:20)) == pdTRUE) { + if (atomic_load(&stopping)) break; + uint32_t now = now_ms(); + if (input.button == BSP_BTN_OK && input.event == BSP_BTN_PRESS) { + hit_feedback(muyu_strike(&state)); + if (state.automatic) state.next_hit_ms = now + muyu_interval(&state); + } else if (input.button == BSP_BTN_UP && input.event == BSP_BTN_LONG) { + /* Pause first, then save: the displayed saved count remains final. */ + state.automatic = false; + save_state(true); + } else if (input.button == BSP_BTN_DOWN && input.event == BSP_BTN_LONG) { + muyu_next_volume(&state); + } else if (input.event == BSP_BTN_CLICK || input.event == BSP_BTN_DOUBLE) { + if (input.button == BSP_BTN_UP) muyu_toggle_auto(&state, now); + if (input.button == BSP_BTN_DOWN) muyu_next_speed(&state, now); + } + } + if (atomic_load(&stopping)) break; + uint32_t now = now_ms(); + uint32_t before = state.total; + if (muyu_tick(&state, now)) hit_feedback(state.total != before); + if (muyu_save_due(&state, now)) save_state(false); + if (!badge_power_screen_off() && (uint32_t)(now - last_battery) >= 30000) { + if (!battery_ok) battery_ok = bsp_battery_init() == ESP_OK; + int next_battery = battery_ok ? bsp_battery_soc() : -1; + if (next_battery >= 0) battery = next_battery; + last_battery = now; + } + if (!badge_power_screen_off() && (uint32_t)(now - last_ui) >= 80 && bsp_lvgl_lock(30)) { + muyu_ui_refresh(&state, battery, atomic_load(&audio_ready), storage_ok, buttons_ok); + bsp_lvgl_unlock(); + last_ui = now; + } + } + xSemaphoreGive(app_done); + vTaskDelete(NULL); +} + +void demo_muyu_enter(void) +{ + muyu_ui_create(); + muyu_ui_notice("正在å�¯åЍ 请ç¨�候"); +} + +void demo_muyu_exit(void) +{ + /* The menu calls stop successfully before acquiring the lock and deleting UI. */ + muyu_ui_destroy(); +} + +esp_err_t demo_muyu_start(void) +{ + if (app_started || audio_started) return ESP_ERR_INVALID_STATE; + atomic_store(&stopping, false); + if (!state_loaded) { + load_state(); + state_loaded = true; + } + state.automatic = false; + state.last_save_ms = now_ms(); + battery_ok = bsp_battery_init() == ESP_OK; + battery = battery_ok ? bsp_battery_soc() : -1; + buttons_ok = true; /* The menu enables this entry only when its input works. */ + input_queue = xQueueCreate(16, sizeof(input_t)); + app_done = xSemaphoreCreateBinary(); + if (!input_queue || !app_done) goto fail; + prepare_audio(); + if (xTaskCreate(worker, "muyu_app", 4096, NULL, 4, NULL) != pdPASS) { + goto fail; + } + app_started = true; + ESP_LOGI(TAG, "Page ready: audio=%d storage=%d heap=%lu", atomic_load(&audio_ready), + storage_ok, (unsigned long)esp_get_free_heap_size()); + return ESP_OK; +fail: + { + ESP_LOGE(TAG, "Application worker allocation failed"); + esp_err_t cleanup = demo_muyu_stop(); + if (bsp_lvgl_lock(100)) { + muyu_ui_notice("å�¯åŠ¨å¤±è´¥ 请é‡�å�¯"); + bsp_lvgl_unlock(); + } + return cleanup == ESP_OK ? ESP_ERR_NO_MEM : cleanup; + } +} + +esp_err_t demo_muyu_stop(void) +{ + /* A timeout leaves all resources and UI intact. Another long press retries. */ + atomic_store(&stopping, true); + if (app_started) { + if (xSemaphoreTake(app_done, pdMS_TO_TICKS(2000)) != pdTRUE) return ESP_ERR_TIMEOUT; + app_started = false; + } + if (audio_started) { + if (xSemaphoreTake(audio_done, pdMS_TO_TICKS(2000)) != pdTRUE) return ESP_ERR_TIMEOUT; + audio_started = false; + } + /* Also handles partial startup before the audio worker acquired ownership. */ + (void)bsp_audio_sleep(); + atomic_store(&audio_ready, false); + state.automatic = false; + free(tone); + tone = NULL; + /* NVS writes now happen after PCM has drained, without holding the LVGL lock. */ + if (state_loaded && state.dirty) save_state(false); + /* Retain a failed save in RAM across visits; keep the one NVS handle until reboot. */ + if (input_queue) { vQueueDelete(input_queue); input_queue = NULL; } + if (sound_queue) { vQueueDelete(sound_queue); sound_queue = NULL; } + if (app_done) { vSemaphoreDelete(app_done); app_done = NULL; } + if (audio_done) { vSemaphoreDelete(audio_done); audio_done = NULL; } + ESP_LOGI(TAG, "Page stopped; saved=%d heap=%lu", !state.dirty, + (unsigned long)esp_get_free_heap_size()); + return ESP_OK; +} diff --git a/main/muyu_app.h b/main/muyu_app.h new file mode 100644 index 0000000..c0bddf5 --- /dev/null +++ b/main/muyu_app.h @@ -0,0 +1,7 @@ +#pragma once +#include "bsp_button.h" +void demo_muyu_enter(void); +void demo_muyu_exit(void); +void demo_muyu_key(bsp_btn_t button, bsp_btn_ev_t event); +esp_err_t demo_muyu_start(void); +esp_err_t demo_muyu_stop(void); diff --git a/main/muyu_logic.c b/main/muyu_logic.c new file mode 100644 index 0000000..0e06ff9 --- /dev/null +++ b/main/muyu_logic.c @@ -0,0 +1,58 @@ +#include "muyu_logic.h" +static const uint32_t intervals[] = {2000, 1000, 750, 500}; +static const uint8_t volumes[] = {0, 20, 40, 60, 80}; +void muyu_init(muyu_state_t *s, uint32_t total, uint8_t speed, uint8_t volume, uint32_t now) +{ + *s = (muyu_state_t){.total = total <= MUYU_COUNT_MAX ? total : MUYU_COUNT_MAX, + .speed = speed < MUYU_SPEED_COUNT ? speed : 1, + .volume = volume < MUYU_VOLUME_COUNT ? volume : 2, .last_save_ms = now}; +} +bool muyu_strike(muyu_state_t *s) +{ + if (s->session < MUYU_COUNT_MAX) s->session++; + if (s->total == MUYU_COUNT_MAX) return false; + s->total++; + s->dirty = true; + return true; +} +uint32_t muyu_interval(const muyu_state_t *s) { return intervals[s->speed]; } +uint8_t muyu_volume(const muyu_state_t *s) { return volumes[s->volume]; } +void muyu_toggle_auto(muyu_state_t *s, uint32_t now) +{ + s->automatic = !s->automatic; + s->next_hit_ms = now + muyu_interval(s); +} +void muyu_next_speed(muyu_state_t *s, uint32_t now) +{ + s->speed = (s->speed + 1) % MUYU_SPEED_COUNT; + s->next_hit_ms = now + muyu_interval(s); + s->dirty = true; +} +void muyu_next_volume(muyu_state_t *s) +{ + s->volume = (s->volume + 1) % MUYU_VOLUME_COUNT; + s->dirty = true; +} +bool muyu_tick(muyu_state_t *s, uint32_t now) +{ + if (!s->automatic || (int32_t)(now - s->next_hit_ms) < 0) return false; + /* A delayed worker emits one hit, never a catch-up burst. */ + s->next_hit_ms = now + muyu_interval(s); + muyu_strike(s); + return true; +} +bool muyu_save_due(const muyu_state_t *s, uint32_t now) +{ + return s->dirty && (uint32_t)(now - s->last_save_ms) >= MUYU_SAVE_MS; +} +void muyu_saved(muyu_state_t *s, uint32_t now, bool success) +{ + s->last_save_ms = now; + if (success) { + s->dirty = false; + /* Session is the unsaved strike batch shown on screen. Once the batch + * is committed, clear it so the page no longer looks like there are + * pending records. The lifetime total remains in s->total. */ + s->session = 0; + } +} diff --git a/main/muyu_logic.h b/main/muyu_logic.h new file mode 100644 index 0000000..98c6028 --- /dev/null +++ b/main/muyu_logic.h @@ -0,0 +1,22 @@ +#pragma once +#include +#include +#define MUYU_COUNT_MAX 999999999U +#define MUYU_SAVE_MS 10000U +#define MUYU_SPEED_COUNT 4U +#define MUYU_VOLUME_COUNT 5U +typedef struct { + uint32_t total, session, next_hit_ms, last_save_ms; + uint8_t speed, volume; + bool automatic, dirty; +} muyu_state_t; +void muyu_init(muyu_state_t *s, uint32_t total, uint8_t speed, uint8_t volume, uint32_t now); +bool muyu_strike(muyu_state_t *s); +void muyu_toggle_auto(muyu_state_t *s, uint32_t now); +void muyu_next_speed(muyu_state_t *s, uint32_t now); +void muyu_next_volume(muyu_state_t *s); +bool muyu_tick(muyu_state_t *s, uint32_t now); +bool muyu_save_due(const muyu_state_t *s, uint32_t now); +void muyu_saved(muyu_state_t *s, uint32_t now, bool success); +uint32_t muyu_interval(const muyu_state_t *s); +uint8_t muyu_volume(const muyu_state_t *s); diff --git a/main/muyu_ui.c b/main/muyu_ui.c new file mode 100644 index 0000000..7bf7816 --- /dev/null +++ b/main/muyu_ui.c @@ -0,0 +1,191 @@ +#include "muyu_ui.h" +#include "badge_theme.h" +#include "badge_header.h" +#include "badge_footer.h" +#include "bsp_pins.h" +#include "lvgl.h" + +LV_FONT_DECLARE(font_muyu_22); +LV_FONT_DECLARE(font_muyu_14); +LV_FONT_DECLARE(font_badge_10); +static lv_obj_t *screen, *count, *session, *status, *notice; +static lv_obj_t *head, *handle, *feedback, *footer; +static lv_obj_t *text_objects[12]; +static unsigned text_roles[12],text_count; +static uint32_t theme_seen; +static lv_point_precise_t handle_points[2]; +static lv_timer_t *notice_timer; + +static lv_obj_t *label(const char *text, int x, int y, const lv_font_t *font, unsigned role) +{ + lv_obj_t *obj = lv_label_create(screen); + lv_label_set_text(obj, text); + lv_obj_set_style_text_font(obj, font, 0); + lv_obj_set_style_text_color(obj, lv_color_hex(badge_theme_colors()[role]), 0); + lv_obj_set_pos(obj, x, y); + LV_ASSERT_MSG(text_count<12,"Too many Muyu labels"); + text_objects[text_count]=obj;text_roles[text_count++]=role; + return obj; +} + +/* Vector artwork uses the same five semantic colors as the badge. */ +static void stroke(lv_layer_t *layer,int x1,int y1,int x2,int y2,int width,uint32_t color) { + lv_draw_line_dsc_t d;lv_draw_line_dsc_init(&d);d.p1=(lv_point_precise_t){x1,y1};d.p2=(lv_point_precise_t){x2,y2};d.width=width;d.color=lv_color_hex(color);d.opa=LV_OPA_COVER;lv_draw_line(layer,&d); +} +static void shape(lv_layer_t *layer,int x,int y,int w,int h,int radius,uint32_t fill,uint32_t border,int width) { + lv_draw_rect_dsc_t d;lv_draw_rect_dsc_init(&d);d.bg_color=lv_color_hex(fill);d.bg_opa=LV_OPA_COVER;d.border_color=lv_color_hex(border);d.border_width=width;d.radius=radius; + lv_area_t area={x,y,x+w-1,y+h-1};lv_draw_rect(layer,&d,&area); +} +static void artwork(lv_event_t *event) { + lv_layer_t *l=lv_event_get_layer(event);const uint32_t *c=badge_theme_colors(); + uint32_t edge=((c[BADGE_ACCENT]&0xfefefe)>>1)+((c[BADGE_PANEL]&0xfefefe)>>1); + stroke(l,14,251,226,251,1,edge); + stroke(l,14,61,45,61,2,c[BADGE_ACCENT]); + for(int i=0;i<4;i++){int y=169+i*18;stroke(l,20,y,26,y,1,edge);stroke(l,214,y,220,y,1,edge);} + stroke(l,43,242,61,242,1,c[BADGE_MUTED]);stroke(l,43,224,43,242,1,c[BADGE_MUTED]); + stroke(l,194,157,194,172,1,edge);stroke(l,177,157,194,157,1,edge); + shape(l,53,168,138,76,38,c[BADGE_PANEL],c[BADGE_ACCENT],2); + /* The angled opening and twin curved lips identify the percussion body. */ + shape(l,67,179,109,52,26,c[BADGE_BACKGROUND],edge,1); + shape(l,70,179,104,37,18,c[BADGE_PANEL],c[BADGE_PANEL],0); + stroke(l,77,219,166,193,7,c[BADGE_BACKGROUND]); + stroke(l,77,223,166,197,2,c[BADGE_ACCENT]); + shape(l,158,188,15,15,7,c[BADGE_BACKGROUND],c[BADGE_ACCENT],1); + stroke(l,98,237,143,237,1,edge); +} +static void apply_theme(void) { + uint32_t revision=badge_theme_revision();if(theme_seen==revision)return; + const uint32_t *c=badge_theme_colors(); + lv_obj_set_style_bg_color(screen,lv_color_hex(c[BADGE_BACKGROUND]),0); + lv_obj_set_style_bg_color(footer,lv_color_hex(c[BADGE_PANEL]),0); + lv_obj_set_style_bg_color(notice,lv_color_hex(c[BADGE_PANEL]),0); + lv_obj_set_style_line_color(handle,lv_color_hex(c[BADGE_MUTED]),0); + lv_obj_set_style_bg_color(head,lv_color_hex(c[BADGE_PANEL]),0); + lv_obj_set_style_border_color(head,lv_color_hex(c[BADGE_ACCENT]),0); + for(unsigned i=0;itotal); + lv_label_set_text_fmt(session, "本次 %lu %s", (unsigned long)s->session, + !storage ? "存储异常" : s->dirty ? "å¾…ä¿�å­˜" : "å·²ä¿�å­˜"); + badge_header_battery(battery); + if (!buttons) lv_label_set_text(status, "按键异常 请é‡�å�¯"); + else lv_label_set_text_fmt(status, "%s %u次/分 %s%u", s->automatic ? "自动" : "手动", + bpm[s->speed], audio ? "音é‡�" : "无声", audio ? muyu_volume(s) : 0); +} diff --git a/main/muyu_ui.h b/main/muyu_ui.h new file mode 100644 index 0000000..44936fd --- /dev/null +++ b/main/muyu_ui.h @@ -0,0 +1,8 @@ +#pragma once +#include "muyu_logic.h" +/* All functions require the LVGL lock. Stop both workers before destroy. */ +void muyu_ui_create(void); +void muyu_ui_destroy(void); +void muyu_ui_refresh(const muyu_state_t *s, int battery, bool audio, bool storage, bool buttons); +void muyu_ui_hit(bool increased); +void muyu_ui_notice(const char *message); diff --git a/main/profile_edit.c b/main/profile_edit.c new file mode 100644 index 0000000..a936497 --- /dev/null +++ b/main/profile_edit.c @@ -0,0 +1,46 @@ +#include "profile_edit.h" +#include "profile_protocol.h" +#include "profile_store.h" +#include "profile_text.h" +#include "lvgl.h" +#include +#include +LV_FONT_DECLARE(font_xiaozhi_14); +static const char *fields[]={"name","department","title"}; +static bool glyph(uint32_t cp,profile_glyph_t *out){ + const lv_font_fmt_txt_dsc_t *d=font_xiaozhi_14.dsc;const lv_font_fmt_txt_cmap_t *m=&d->cmaps[0]; + if(d->bpp!=1||d->bitmap_format!=0||cprange_start||cp-m->range_start>=m->range_length)return false; + unsigned lo=0,hi=m->list_length;uint32_t value=cp-m->range_start; + while(lounicode_list[mid]=m->list_length||m->unicode_list[lo]!=value)return false; + const lv_font_fmt_txt_glyph_dsc_t *g=&d->glyph_dsc[m->glyph_id_start+lo]; + *out=(profile_glyph_t){d->glyph_bitmap+g->bitmap_index,g->box_w,g->box_h,(g->adv_w+8)/16,g->ofs_x,g->ofs_y};return true; +} +static uint16_t color(cJSON *p,const char *key,uint32_t fallback){ + cJSON *v=cJSON_GetObjectItemCaseSensitive(cJSON_GetObjectItemCaseSensitive(p,"theme"),key); + if(cJSON_IsString(v)&&strlen(v->valuestring)==7&&v->valuestring[0]=='#')fallback=(uint32_t)strtoul(v->valuestring+1,NULL,16); + return (uint16_t)(((fallback>>8)&0xf800)|((fallback>>5)&0x7e0)|((fallback>>3)&31)); +} +cJSON *profile_edit_get(unsigned id){ + if(!profile_protocol_lock())return NULL; + if(id==5)id=profile_store_badge(); + size_t n=0;const char *raw=profile_store_json_for(id,&n);cJSON *p=cJSON_ParseWithLength(raw,n),*out=cJSON_CreateObject(); + if(out){cJSON_AddNumberToObject(out,"number",id+1);cJSON_AddNumberToObject(out,"revision",profile_store_revision_for(id)); + cJSON_AddBoolToObject(out,"configured",idvaluestring:"");} + }cJSON_Delete(p);profile_protocol_unlock();return out; +} +esp_err_t profile_edit_locked(unsigned id,unsigned revision,unsigned field,const char *text){ + if(id>=profile_store_count()||field>2||!profile_store_card_for(id)||profile_store_version_for(id)!=4||!profile_store_ready()||profile_store_revision_for(id)!=revision)return ESP_ERR_INVALID_STATE; + size_t n;const char *raw=profile_store_json_for(id,&n);cJSON *p=cJSON_ParseWithLength(raw,n);if(!p)return ESP_ERR_NO_MEM; + profile_text_patch_t *patch=malloc(sizeof(*patch));esp_err_t e=ESP_ERR_INVALID_ARG; + if(!patch){cJSON_Delete(p);return ESP_ERR_NO_MEM;} + if(profile_text_prepare(patch,field,text,color(p,"background",0x08090b),color(p,field==2?"muted":"text",field==2?0xa69c9f:0xe8e6df),glyph)){ + cJSON *old=cJSON_GetObjectItemCaseSensitive(p,fields[field]); + if(cJSON_IsString(old)&&!strcmp(old->valuestring,text))e=ESP_OK; + else if(cJSON_SetValuestring(old,text)){ + char *json=cJSON_PrintUnformatted(p);if(json){e=profile_store_patch(id,json,strlen(json),profile_text_apply,patch);cJSON_free(json);}else e=ESP_ERR_NO_MEM; + } + }free(patch);cJSON_Delete(p);return e; +} diff --git a/main/profile_edit.h b/main/profile_edit.h new file mode 100644 index 0000000..f462960 --- /dev/null +++ b/main/profile_edit.h @@ -0,0 +1,13 @@ +#pragma once +#include "cJSON.h" +#include "esp_err.h" +#ifdef __cplusplus +extern "C" { +#endif +/* id=5 means current badge; other IDs are zero-based. Queries copy data. */ +cJSON *profile_edit_get(unsigned id); +/* Caller serializes with the protocol lock. revision rejects stale edits. */ +esp_err_t profile_edit_locked(unsigned id,unsigned revision,unsigned field,const char *text); +#ifdef __cplusplus +} +#endif diff --git a/main/profile_format.c b/main/profile_format.c new file mode 100644 index 0000000..93ca479 --- /dev/null +++ b/main/profile_format.c @@ -0,0 +1,23 @@ +#include "profile_format.h" +uint32_t profile_crc32(uint32_t state,const void *data,size_t size) { + const unsigned char *p=data; + for(size_t i=0;i>1)^((0u-(state&1u))&0xEDB88320u); + } + return state; +} +bool profile_header_valid(const profile_header_t *h) { + return h->magic==PROFILE_MAGIC && (h->version>=1 && h->version<=4) && h->json_length>=2 && + h->json_length<=PROFILE_JSON_MAX && h->flags<=(h->version==1?1u:3u) && (h->flags!=2) && + h->pixel_length==(h->flags?(h->version==1?PROFILE_PIXELS_BYTES:h->version==2?PROFILE_V2_BYTES:h->version==3?PROFILE_V3_BYTES:PROFILE_V4_BYTES):0) && + (profile_crc32(UINT32_MAX,h,offsetof(profile_header_t,header_crc))^UINT32_MAX)==h->header_crc; +} +bool profile_sequence_newer(uint32_t a,uint32_t b) {return (int32_t)(a-b)>0;} + +size_t profile_asset_size(unsigned version,unsigned asset) { + const size_t legacy[]={PROFILE_CARD_BYTES,PROFILE_AVATAR_BYTES,PROFILE_BRAND_BYTES,PROFILE_LOGO_BYTES,PROFILE_QR_BYTES}; + const size_t portrait[]={PROFILE_V3_CARD_BYTES,PROFILE_V3_AVATAR_BYTES,PROFILE_V3_BRAND_BYTES,PROFILE_LOGO_BYTES,PROFILE_QR_BYTES}; + const size_t tactical[]={PROFILE_V4_CARD_BYTES,PROFILE_V4_AVATAR_BYTES,PROFILE_V3_BRAND_BYTES,PROFILE_LOGO_BYTES,PROFILE_QR_BYTES}; + return asset<=PROFILE_ASSET_QR?(version>=4?tactical[asset]:version>=3?portrait[asset]:legacy[asset]):0; +} diff --git a/main/profile_format.h b/main/profile_format.h new file mode 100644 index 0000000..ef1f4e6 --- /dev/null +++ b/main/profile_format.h @@ -0,0 +1,58 @@ +#pragma once +#include +#include +#include +#define PROFILE_BADGE_COUNT 5u +#define PROFILE_MAGIC 0x32504449u +#define PROFILE_SLOT_SIZE 0x18000u +#define PROFILE_DATA_OFFSET 0x1000u +#define PROFILE_CARD_W 208u +#define PROFILE_CARD_H 148u +#define PROFILE_AVATAR_W 72u +#define PROFILE_AVATAR_H 88u +#define PROFILE_CARD_BYTES (PROFILE_CARD_W*PROFILE_CARD_H*2u) +#define PROFILE_AVATAR_BYTES (PROFILE_AVATAR_W*PROFILE_AVATAR_H*2u) +#define PROFILE_PIXELS_BYTES (PROFILE_CARD_BYTES+PROFILE_AVATAR_BYTES) +#define PROFILE_BRAND_W 148u +#define PROFILE_BRAND_H 44u +#define PROFILE_LOGO_W 32u +#define PROFILE_QR_W 192u +#define PROFILE_BRAND_BYTES (PROFILE_BRAND_W*PROFILE_BRAND_H*2u) +#define PROFILE_LOGO_BYTES (PROFILE_LOGO_W*PROFILE_LOGO_W*2u) +#define PROFILE_QR_BYTES (PROFILE_QR_W*PROFILE_QR_W/8u) +#define PROFILE_V2_BYTES (PROFILE_PIXELS_BYTES+PROFILE_BRAND_BYTES+PROFILE_LOGO_BYTES+PROFILE_QR_BYTES) +/* Portrait layout: smaller information strip, native-resolution large photo. + * V1/V2 byte layouts remain immutable for existing devices and backups. */ +#define PROFILE_V3_CARD_H 76u +#define PROFILE_V3_AVATAR_W 112u +#define PROFILE_V3_AVATAR_H 136u +#define PROFILE_V3_BRAND_H 32u +#define PROFILE_V3_CARD_BYTES (PROFILE_CARD_W*PROFILE_V3_CARD_H*2u) +#define PROFILE_V3_AVATAR_BYTES (PROFILE_V3_AVATAR_W*PROFILE_V3_AVATAR_H*2u) +#define PROFILE_V3_BRAND_BYTES (PROFILE_BRAND_W*PROFILE_V3_BRAND_H*2u) +#define PROFILE_V3_BYTES (PROFILE_V3_CARD_BYTES+PROFILE_V3_AVATAR_BYTES+PROFILE_V3_BRAND_BYTES+PROFILE_LOGO_BYTES+PROFILE_QR_BYTES) +_Static_assert(PROFILE_DATA_OFFSET+PROFILE_V3_BYTES<=PROFILE_SLOT_SIZE,"Portrait bank overflow"); +/* V4 atlas: 84x148 side panel followed by 208x40 footer; remaining + * bytes are padding. All earlier formats keep their original sizes. */ +#define PROFILE_V4_CARD_H 104u +#define PROFILE_V4_PANEL_W 84u +#define PROFILE_V4_PANEL_H 148u +#define PROFILE_V4_FOOTER_H 40u +#define PROFILE_V4_PANEL_BYTES (PROFILE_V4_PANEL_W*PROFILE_V4_PANEL_H*2u) +#define PROFILE_V4_CARD_BYTES (PROFILE_CARD_W*PROFILE_V4_CARD_H*2u) +#define PROFILE_V4_AVATAR_H 144u +#define PROFILE_V4_AVATAR_BYTES (PROFILE_V3_AVATAR_W*PROFILE_V4_AVATAR_H*2u) +#define PROFILE_V4_BYTES (PROFILE_V4_CARD_BYTES+PROFILE_V4_AVATAR_BYTES+PROFILE_V3_BRAND_BYTES+PROFILE_LOGO_BYTES+PROFILE_QR_BYTES) +_Static_assert(PROFILE_V4_PANEL_BYTES+PROFILE_CARD_W*PROFILE_V4_FOOTER_H*2u<=PROFILE_V4_CARD_BYTES,"Tactical atlas overflow"); +_Static_assert(PROFILE_DATA_OFFSET+PROFILE_V4_BYTES<=PROFILE_SLOT_SIZE,"Tactical bank overflow"); +size_t profile_asset_size(unsigned version,unsigned asset); +#define PROFILE_JSON_MAX 2048u +_Static_assert(PROFILE_DATA_OFFSET+PROFILE_V2_BYTES<=PROFILE_SLOT_SIZE,"Profile bank overflow"); +typedef enum {PROFILE_ASSET_CARD,PROFILE_ASSET_AVATAR,PROFILE_ASSET_BRAND,PROFILE_ASSET_LOGO,PROFILE_ASSET_QR} profile_asset_t; + +typedef struct { + uint32_t magic,version,sequence,json_length,pixel_length,payload_crc,flags,header_crc; +} profile_header_t; +uint32_t profile_crc32(uint32_t state,const void *data,size_t size); +bool profile_header_valid(const profile_header_t *h); +bool profile_sequence_newer(uint32_t a,uint32_t b); diff --git a/main/profile_protocol.c b/main/profile_protocol.c new file mode 100644 index 0000000..4e3c747 --- /dev/null +++ b/main/profile_protocol.c @@ -0,0 +1,234 @@ +#include "profile_protocol.h" +#include "profile_store.h" +#include "profile_edit.h" +#include "badge_power.h" +#include "badge_network.h" +#include "xiaozhi_app.h" +#include "yao_service.h" +#include "freertos/FreeRTOS.h" +#include "freertos/semphr.h" +#include "esp_timer.h" +#include "nvs.h" +#include "cJSON.h" +#include "mbedtls/base64.h" +#include +#include +#include +#include +static SemaphoreHandle_t mutex; +static uint8_t binary[768]; +static char encoded[1025],owner[40]; +static bool transferring; +static int64_t last_activity; +esp_err_t profile_protocol_init(void) { + yao_location_init(); + mutex=xSemaphoreCreateMutex();if(!mutex)return ESP_ERR_NO_MEM; + nvs_handle_t n;uint8_t id=0; + if(nvs_open("badge_cards",NVS_READONLY,&n)==ESP_OK){nvs_get_u8(n,"active",&id);nvs_close(n);} + if(id=profile_store_count())return ESP_ERR_INVALID_ARG; + if(transferring||!profile_store_ready())return ESP_ERR_INVALID_STATE; + if(id==profile_store_badge())return ESP_OK; + nvs_handle_t n;esp_err_t e=nvs_open("badge_cards",NVS_READWRITE,&n); + if(e==ESP_OK){e=nvs_set_u8(n,"active",id);if(e==ESP_OK)e=nvs_commit(n);nvs_close(n);} + return e==ESP_OK?profile_store_select(id):e; +} +static void expire(void) { + if(transferring&&esp_timer_get_time()-last_activity>15000000) {profile_store_abort();transferring=false;} +} +esp_err_t profile_protocol_select(unsigned id) { + if(!profile_protocol_lock())return ESP_ERR_INVALID_STATE; + expire();esp_err_t e=select_badge(id);profile_protocol_unlock();return e; +} +esp_err_t profile_protocol_edit(unsigned id,unsigned revision,unsigned field,const char *text){ + if(!profile_protocol_lock())return ESP_ERR_INVALID_STATE; + expire(); + esp_err_t e=transferring?ESP_ERR_INVALID_STATE:profile_edit_locked(id,revision,field,text); + profile_protocol_unlock();return e; +} +static void catalog(cJSON *reply) { + cJSON_AddNumberToObject(reply,"activeBadge",profile_store_badge()); + cJSON_AddNumberToObject(reply,"badgeCount",profile_store_count()); + cJSON *list=cJSON_AddArrayToObject(reply,"badges"); + for(unsigned i=0;ivaluestring:"");} + cJSON_Delete(p);cJSON_AddItemToArray(list,row); + } +} +void profile_protocol_tick(void) {if(mutex&&xSemaphoreTake(mutex,0)==pdTRUE){expire();xSemaphoreGive(mutex);}} +#include +static bool number(cJSON *o,const char *key,size_t max,size_t *value) { + cJSON *v=cJSON_GetObjectItemCaseSensitive(o,key); + if(!cJSON_IsNumber(v)||!isfinite(v->valuedouble)||v->valuedouble<0||v->valuedouble>max||floor(v->valuedouble)!=v->valuedouble) return false; + *value=(size_t)v->valuedouble;return true; +} +static bool valid_profile(cJSON *p,unsigned version) { + if(!cJSON_IsObject(p)) return false; + const char *keys[]={"name","department","title","employeeId","signature"}; + for(size_t i=0;i<5;i++) { + cJSON *s=cJSON_GetObjectItemCaseSensitive(p,keys[i]); + if(!cJSON_IsString(s)||strlen(s->valuestring)>128 || (i==0&&!s->valuestring[0])) return false; + for(const unsigned char *c=(const unsigned char *)s->valuestring;*c;c++) if(*c<32||*c==127) return false; + } + if(version<2) return cJSON_GetArraySize(p)==5; + const char *extra[]={"brandName","badgeCaption"}; + for(unsigned i=0;i<2;i++) { + cJSON *v=cJSON_GetObjectItemCaseSensitive(p,extra[i]); + if(!cJSON_IsString(v)||!v->valuestring[0]||strlen(v->valuestring)>128) return false; + for(const unsigned char *c=(void *)v->valuestring;*c;c++) if(*c<32||*c==127)return false; + } + cJSON *theme=cJSON_GetObjectItemCaseSensitive(p,"theme"); + const char *colors[]={"background","panel","accent","text","muted"}; + if(!cJSON_IsObject(theme)||cJSON_GetArraySize(theme)!=5)return false; + for(unsigned i=0;i<5;i++) { + cJSON *v=cJSON_GetObjectItemCaseSensitive(theme,colors[i]); + if(!cJSON_IsString(v)||strlen(v->valuestring)!=7||v->valuestring[0]!='#')return false; + for(unsigned j=1;j<7;j++)if(!isxdigit((unsigned char)v->valuestring[j]))return false; + } + if(version>=4){ + cJSON *alias=cJSON_GetObjectItemCaseSensitive(p,"alias"); + if(!cJSON_IsString(alias)||strlen(alias->valuestring)>128)return false; + for(const unsigned char *c=(void *)alias->valuestring;*c;c++)if(*c<32||*c==127)return false; + } + return cJSON_GetArraySize(p)==(version>=4?11:10) && cJSON_IsBool(cJSON_GetObjectItemCaseSensitive(p,"logoCustom")) && + cJSON_IsBool(cJSON_GetObjectItemCaseSensitive(p,"qrPresent")); +} +char *profile_protocol_request(const char *line,bool usb) { + if(!mutex || xSemaphoreTake(mutex,pdMS_TO_TICKS(5000))!=pdTRUE)return NULL; + expire(); + cJSON *q=cJSON_Parse(line),*reply=cJSON_CreateObject(); + if(!reply) {cJSON_Delete(q);xSemaphoreGive(mutex);return NULL;} + size_t request_id=0; + esp_err_t e=ESP_ERR_INVALID_ARG; + const char *reason=NULL; + if(!q||!number(q,"id",1000000000,&request_id)) goto done; + cJSON *op=cJSON_GetObjectItemCaseSensitive(q,"op"); + if(!cJSON_IsString(op)) goto done; + char client[40];cJSON *session=cJSON_GetObjectItemCaseSensitive(q,"session"); + const char *sid=cJSON_IsString(session)?session->valuestring:"legacy"; + if(strlen(sid)>32)goto done; + snprintf(client,sizeof(client),"%c:%s",usb?'U':'H',sid); + bool read_only=!strcmp(op->valuestring,"info")||!strcmp(op->valuestring,"read")||!strcmp(op->valuestring,"wifi_info")||!strcmp(op->valuestring,"wifi_scan_results")||!strcmp(op->valuestring,"badges")||!strcmp(op->valuestring,"xiaozhi_backend"); + if(!read_only)badge_power_activity(); + if(!read_only && transferring && strcmp(owner,client)) {e=ESP_ERR_INVALID_STATE;reason="upload_busy";goto done;} + if(!strcmp(owner,client))last_activity=esp_timer_get_time(); + size_t badge=profile_store_badge(); + if(cJSON_GetObjectItemCaseSensitive(q,"badge")&&!number(q,"badge",profile_store_count()-1,&badge))goto done; + if(profile_store_count()>1&&!cJSON_GetObjectItemCaseSensitive(q,"badge")&& + (!strcmp(op->valuestring,"begin")||!strcmp(op->valuestring,"clear")))goto done; + if((!strcmp(op->valuestring,"begin")||!strcmp(op->valuestring,"clear"))&&cJSON_GetObjectItemCaseSensitive(q,"baseRevision")) { + size_t base;if(!number(q,"baseRevision",UINT32_MAX,&base))goto done; + if(base!=profile_store_revision_for(badge)){e=ESP_ERR_INVALID_STATE;reason="profile_changed";goto done;} + } + if((!strcmp(op->valuestring,"begin")||!strcmp(op->valuestring,"clear")||!strcmp(op->valuestring,"badge_select"))&&profile_store_refresh_pending()){ + e=ESP_ERR_INVALID_STATE;reason="display_pending";goto done; + } + if(!strcmp(op->valuestring,"info")) { + yao_location_t place=yao_location_get(); + cJSON_AddItemToObject(reply,"yaoTime",yao_time_json(yao_time_now(),&place)); + cJSON_AddStringToObject(reply,"yaoLocationStatus",yao_location_status()); + unsigned version=profile_store_version_for(badge); + cJSON_AddNumberToObject(reply,"protocol",2); + badge_power_status_t power=badge_power_status(); + cJSON *power_json=cJSON_AddObjectToObject(reply,"power"); + cJSON_AddBoolToObject(power_json,"screenOff",power.screen_off); + cJSON_AddBoolToObject(power_json,"lightSleepConfigured",power.configured); + cJSON_AddBoolToObject(power_json,"displayPerformanceLock",power.display_performance); + cJSON_AddBoolToObject(power_json,"audioPerformanceLock",power.audio_performance); + cJSON_AddBoolToObject(power_json,"audioOwner",power.audio_owner); + cJSON_AddBoolToObject(power_json,"voiceListening",power.voice_listening); + cJSON_AddBoolToObject(power_json,"audioSleeping",power.audio_sleeping); + char backend[256];bool backend_custom=false; + if(demo_xiaozhi_get_backend(backend,sizeof(backend),&backend_custom)==ESP_OK){ + cJSON *xz=cJSON_AddObjectToObject(reply,"xiaozhi"); + cJSON_AddStringToObject(xz,"backendUrl",backend); + cJSON_AddBoolToObject(xz,"backendCustom",backend_custom); + } + cJSON_AddBoolToObject(reply,"profileReady",profile_store_ready()); + cJSON_AddBoolToObject(reply,"refreshPending",profile_store_refresh_pending()); + cJSON_AddNumberToObject(reply,"maxProfileVersion",4); + cJSON_AddNumberToObject(reply,"maxBadgeLayout",2); + cJSON_AddNumberToObject(reply,"profileVersion",profile_store_version_for(badge)); + cJSON_AddBoolToObject(reply,"qrPresent",profile_store_asset_for(badge,PROFILE_ASSET_QR)!=NULL); + badge_network_json(reply);cJSON_AddNumberToObject(reply,"revision",profile_store_revision()); + cJSON_AddBoolToObject(reply,"custom",profile_store_card_for(badge)!=NULL); + cJSON_AddNumberToObject(reply,"cardWidth",PROFILE_CARD_W);cJSON_AddNumberToObject(reply,"cardHeight",version>=4?PROFILE_V4_CARD_H:version>=3?PROFILE_V3_CARD_H:PROFILE_CARD_H); + cJSON_AddNumberToObject(reply,"avatarWidth",version>=3?PROFILE_V3_AVATAR_W:PROFILE_AVATAR_W);cJSON_AddNumberToObject(reply,"avatarHeight",version>=4?PROFILE_V4_AVATAR_H:version>=3?PROFILE_V3_AVATAR_H:PROFILE_AVATAR_H); + catalog(reply);cJSON_AddNumberToObject(reply,"badge",badge);cJSON_AddNumberToObject(reply,"badgeRevision",profile_store_revision_for(badge)); + size_t n;const char *s=profile_store_json_for(badge,&n); + char json[PROFILE_JSON_MAX+1];memcpy(json,s,n);json[n]=0; + cJSON *p=cJSON_Parse(json);if(!p) p=cJSON_CreateObject();cJSON_AddItemToObject(reply,"profile",p); + e=ESP_OK; + } else if(!strcmp(op->valuestring,"begin")) { + cJSON *p=cJSON_GetObjectItemCaseSensitive(q,"profile"); + cJSON *format=cJSON_GetObjectItemCaseSensitive(q,"format"); + if(format&&(!cJSON_IsNumber(format)||(format->valuedouble!=2&&format->valuedouble!=3&&format->valuedouble!=4)))goto done; + unsigned version=format?(unsigned)format->valueint:1; + if(valid_profile(p,version)) { + char *json=cJSON_PrintUnformatted(p); + if(json) {e=profile_store_begin_format(badge,json,strlen(json),version,cJSON_IsTrue(cJSON_GetObjectItemCaseSensitive(p,"qrPresent")));free(json);transferring=e==ESP_OK;if(transferring){strcpy(owner,client);last_activity=esp_timer_get_time();}} + } + } else if(!strcmp(op->valuestring,"chunk")) { + cJSON *s=cJSON_GetObjectItemCaseSensitive(q,"data");size_t offset,n=0; + if(transferring&&cJSON_IsString(s)&&strlen(s->valuestring)<=1024&&number(q,"offset",PROFILE_V2_BYTES,&offset)&& + mbedtls_base64_decode(binary,sizeof(binary),&n,(const unsigned char *)s->valuestring,strlen(s->valuestring))==0&&n>0) { + e=profile_store_append(offset,binary,n);if(e==ESP_OK)cJSON_AddNumberToObject(reply,"offset",offset+n); + } + } else if(!strcmp(op->valuestring,"commit")) { + if(transferring) {e=profile_store_commit();transferring=false;} + if(e==ESP_OK)cJSON_AddNumberToObject(reply,"revision",profile_store_revision()); + } else if(!strcmp(op->valuestring,"abort")) { + profile_store_abort();transferring=false;e=ESP_OK; + } else if(!strcmp(op->valuestring,"clear")) { + profile_store_abort();transferring=false;e=profile_store_clear_for(badge); + } else if(!strcmp(op->valuestring,"badges")) { + catalog(reply);cJSON_AddNumberToObject(reply,"revision",profile_store_revision());e=ESP_OK; + } else if(!strcmp(op->valuestring,"badge_select")) { + if(!cJSON_GetObjectItemCaseSensitive(q,"badge"))goto done; + e=select_badge(badge);if(e==ESP_OK)catalog(reply); + } else if(!strcmp(op->valuestring,"wifi_info")) { + badge_network_json(reply);yao_location_t place=yao_location_get();cJSON_AddItemToObject(reply,"yaoTime",yao_time_json(yao_time_now(),&place));cJSON_AddStringToObject(reply,"yaoLocationStatus",yao_location_status());e=ESP_OK; + } else if(!strcmp(op->valuestring,"xiaozhi_backend")) { + char backend[256];bool backend_custom=false; + e=demo_xiaozhi_get_backend(backend,sizeof(backend),&backend_custom); + if(e==ESP_OK){cJSON_AddStringToObject(reply,"backendUrl",backend);cJSON_AddBoolToObject(reply,"backendCustom",backend_custom);} + } else if(!strcmp(op->valuestring,"xiaozhi_backend_save")) { + cJSON *url=cJSON_GetObjectItemCaseSensitive(q,"url"); + if(cJSON_IsString(url))e=demo_xiaozhi_save_backend(url->valuestring); + } else if(!strcmp(op->valuestring,"wifi_scan")) { + e=badge_network_scan();if(e==ESP_OK)badge_network_scan_json(reply); + } else if(!strcmp(op->valuestring,"wifi_scan_results")) { + badge_network_scan_json(reply);e=ESP_OK; + } else if(!strcmp(op->valuestring,"wifi_save")) { + cJSON *ssid=cJSON_GetObjectItemCaseSensitive(q,"ssid"),*password=cJSON_GetObjectItemCaseSensitive(q,"password"); + if(cJSON_IsString(ssid)&&cJSON_IsString(password))e=badge_network_save(ssid->valuestring,password->valuestring, + cJSON_IsTrue(cJSON_GetObjectItemCaseSensitive(q,"open")),cJSON_IsTrue(cJSON_GetObjectItemCaseSensitive(q,"keepPassword"))); + } else if(!strcmp(op->valuestring,"hotspot")) { + if(usb)e=badge_network_toggle(); + } else if(!strcmp(op->valuestring,"read")) { + cJSON *asset=cJSON_GetObjectItemCaseSensitive(q,"asset");size_t offset,count,n; + const char *names[]={"card","avatar","brand","logo","qr"};int index=-1; + if(cJSON_IsString(asset))for(int i=0;i<5;i++)if(!strcmp(asset->valuestring,names[i]))index=i; + if(index>=0&&number(q,"offset",PROFILE_CARD_BYTES,&offset)&&number(q,"count",sizeof(binary),&count)&&count) { + e=profile_store_read_for(badge,(profile_asset_t)index,offset,binary,count); + if(e==ESP_OK&&mbedtls_base64_encode((unsigned char *)encoded,sizeof(encoded),&n,binary,count)==0) { + encoded[n]=0;cJSON_AddStringToObject(reply,"data",encoded); + } else e=ESP_ERR_INVALID_ARG; + } + } + done: + cJSON_AddNumberToObject(reply,"id",request_id);cJSON_AddBoolToObject(reply,"ok",e==ESP_OK); + if(e!=ESP_OK)cJSON_AddStringToObject(reply,"error",esp_err_to_name(e)); + if(reason)cJSON_AddStringToObject(reply,"reason",reason); + char *out=cJSON_PrintUnformatted(reply);cJSON_Delete(reply);cJSON_Delete(q);xSemaphoreGive(mutex);return out; +} diff --git a/main/profile_protocol.h b/main/profile_protocol.h new file mode 100644 index 0000000..f401e48 --- /dev/null +++ b/main/profile_protocol.h @@ -0,0 +1,13 @@ +#pragma once +#include "esp_err.h" +#include +esp_err_t profile_protocol_init(void); +/* Caller owns returned JSON and must free it. All storage mutations serialized. */ +char *profile_protocol_request(const char *request,bool usb); +void profile_protocol_tick(void); + +/* UI callers hold LVGL first, then this lock; protocol never takes LVGL. */ +bool profile_protocol_lock(void); +void profile_protocol_unlock(void); +esp_err_t profile_protocol_select(unsigned id); +esp_err_t profile_protocol_edit(unsigned id,unsigned revision,unsigned field,const char *text); diff --git a/main/profile_store.c b/main/profile_store.c new file mode 100644 index 0000000..2e1a79e --- /dev/null +++ b/main/profile_store.c @@ -0,0 +1,163 @@ +#include "profile_store.h" +#include "esp_partition.h" +#include +#include + +static const esp_partition_t *partition,*extra_partition; +static const uint8_t *mapped,*extra_mapped; +static esp_partition_mmap_handle_t mapping,extra_mapping; +static atomic_uint active_badge; +static unsigned badge_count=1; +static int banks[PROFILE_BADGE_COUNT]; +static atomic_int current_slot=-1; +static atomic_uint revision,displayed; +static int pending=-1; +static unsigned pending_badge; +static profile_header_t next; +static size_t received; +static uint32_t crc; +static const uint8_t *bank_data(int bank) {return bank<2?mapped+bank*PROFILE_SLOT_SIZE:extra_mapped+(bank-2)*PROFILE_SLOT_SIZE;} +static const esp_partition_t *bank_partition(int bank) {return bank<2?partition:extra_partition;} +static size_t bank_offset(int bank) {return (bank<2?bank:bank-2)*PROFILE_SLOT_SIZE;} +static const profile_header_t *header(int slot) {return (const profile_header_t *)bank_data(slot);} +static bool bank_valid(int slot) { + const profile_header_t *h=header(slot); + if(!profile_header_valid(h)) return false; + uint32_t c=profile_crc32(UINT32_MAX,(const uint8_t *)h+sizeof(*h),h->json_length); + c=profile_crc32(c,bank_data(slot)+PROFILE_DATA_OFFSET,h->pixel_length); + return (c^UINT32_MAX)==h->payload_crc; +} +esp_err_t profile_store_init(void) { + /* A different firmware's partition table or an mmap failure must never + * leave zero-initialized bank indices pointing at a null flash mapping. */ + for(unsigned i=0;isize!=2*PROFILE_SLOT_SIZE) return ESP_ERR_NOT_FOUND; + esp_err_t e=esp_partition_mmap(partition,0,partition->size,ESP_PARTITION_MMAP_DATA,(const void **)&mapped,&mapping); + if(e!=ESP_OK) return e; + badge_count=1;extra_mapped=NULL;pending=-1; + extra_partition=esp_partition_find_first(ESP_PARTITION_TYPE_DATA,ESP_PARTITION_SUBTYPE_ANY,"badge_slots"); + if(extra_partition && extra_partition->size==(PROFILE_BADGE_COUNT-1)*2*PROFILE_SLOT_SIZE && + esp_partition_mmap(extra_partition,0,extra_partition->size,ESP_PARTITION_MMAP_DATA,(const void **)&extra_mapped,&extra_mapping)==ESP_OK)badge_count=PROFILE_BADGE_COUNT; + unsigned latest=0; + for(unsigned i=0;i=badge_count)continue; + int a=i*2,b=a+1;bool va=bank_valid(a),vb=bank_valid(b); + banks[i]=vb&&(!va||profile_sequence_newer(header(b)->sequence,header(a)->sequence))?b:va?a:-1; + if(banks[i]>=0&&profile_sequence_newer(header(banks[i])->sequence,latest))latest=header(banks[i])->sequence; + } + atomic_store(&active_badge,0);atomic_store(¤t_slot,banks[0]); + atomic_store(&revision,latest);atomic_store(&displayed,latest); + return ESP_OK; +} +unsigned profile_store_revision(void) {return atomic_load(&revision);} +void profile_store_displayed(unsigned r) {atomic_store(&displayed,r);} +unsigned profile_store_revision_for(unsigned id) {return id=0?header(banks[id])->sequence:0;} +unsigned profile_store_count(void) {return badge_count;} +unsigned profile_store_badge(void) {return atomic_load(&active_badge);} +bool profile_store_ready(void) {return pending<0&&atomic_load(&revision)==atomic_load(&displayed);} +bool profile_store_refresh_pending(void) {return atomic_load(&revision)!=atomic_load(&displayed);} +esp_err_t profile_store_select(unsigned id) { + if(id>=badge_count)return ESP_ERR_INVALID_ARG; + if(!profile_store_ready())return ESP_ERR_INVALID_STATE; + if(id==profile_store_badge())return ESP_OK; + atomic_store(&active_badge,id);atomic_store(¤t_slot,banks[id]);atomic_fetch_add(&revision,1);return ESP_OK; +} +const uint8_t *profile_store_card_for(unsigned id) { + int slot=id=0&&header(slot)->flags?bank_data(slot)+PROFILE_DATA_OFFSET:NULL; +} +const char *profile_store_json_for(unsigned id,size_t *size) { + int slot=idjson_length;return (const char *)header(slot)+sizeof(profile_header_t); +} +unsigned profile_store_version_for(unsigned id) { + int slot=idversion; +} +const uint8_t *profile_store_asset_for(unsigned id,profile_asset_t asset) { + int slot=idPROFILE_ASSET_QR) return NULL; + if(asset>=PROFILE_ASSET_BRAND && header(slot)->version<2) return NULL; + if(asset==PROFILE_ASSET_QR && !(header(slot)->flags&2)) return NULL; + size_t offset=0; + for(unsigned a=0;a<(unsigned)asset;a++)offset+=profile_asset_size(header(slot)->version,a); + return p+offset; +} +esp_err_t profile_store_read_for(unsigned id,profile_asset_t asset,size_t offset,void *data,size_t size) { + if((unsigned)asset>PROFILE_ASSET_QR) return ESP_ERR_INVALID_ARG; + const uint8_t *p=profile_store_asset_for(id,asset);size_t bound=profile_asset_size(profile_store_version_for(id),asset); + if(!p || offset>bound || size>bound-offset) return ESP_ERR_INVALID_ARG; + memcpy(data,p+offset,size);return ESP_OK; +} +static esp_err_t begin_for(unsigned id,const char *json,size_t size) { + if(id>=badge_count || !mapped || size<2 || size>PROFILE_JSON_MAX) return ESP_ERR_INVALID_ARG; + if(atomic_load(&revision)!=atomic_load(&displayed)) return ESP_ERR_INVALID_STATE; + pending=-1; + int active=banks[id]; + int target=active==(int)(id*2)?id*2+1:id*2; + pending_badge=id; + esp_err_t e=esp_partition_erase_range(bank_partition(target),bank_offset(target),PROFILE_SLOT_SIZE); + if(e==ESP_OK) e=esp_partition_write(bank_partition(target),bank_offset(target)+sizeof(profile_header_t),json,size); + if(e!=ESP_OK) return e; + next=(profile_header_t){.magic=PROFILE_MAGIC,.version=1,.sequence=active>=0?header(active)->sequence+1:1, + .json_length=size,.pixel_length=PROFILE_PIXELS_BYTES,.flags=1}; + crc=profile_crc32(UINT32_MAX,json,size);received=0;pending=target;return ESP_OK; +} +esp_err_t profile_store_append(size_t offset,const void *data,size_t size) { + if(pending<0 || offset!=received || !size || received>next.pixel_length || size>next.pixel_length-received) return ESP_ERR_INVALID_ARG; + esp_err_t e=esp_partition_write(bank_partition(pending),bank_offset(pending)+PROFILE_DATA_OFFSET+received,data,size); + if(e==ESP_OK) {crc=profile_crc32(crc,data,size);received+=size;} + else pending=-1; + return e; +} +esp_err_t profile_store_commit(void) { + if(pending<0 || received!=next.pixel_length) return ESP_ERR_INVALID_SIZE; + next.payload_crc=crc^UINT32_MAX; + next.header_crc=profile_crc32(UINT32_MAX,&next,offsetof(profile_header_t,header_crc))^UINT32_MAX; + /* Header is the commit marker: interrupted writes preserve the prior bank. */ + esp_err_t e=esp_partition_write(bank_partition(pending),bank_offset(pending),&next,sizeof(next)); + if(e==ESP_OK && !bank_valid(pending)) e=ESP_ERR_INVALID_CRC; + if(e==ESP_OK) {banks[pending_badge]=pending;if(pending_badge==profile_store_badge())atomic_store(¤t_slot,pending);atomic_fetch_add(&revision,1);} + pending=-1;return e; +} +esp_err_t profile_store_clear_for(unsigned id) { + esp_err_t e=begin_for(id,"{}",2); + if(e!=ESP_OK) return e; + next.flags=0;next.pixel_length=0;return profile_store_commit(); +} +void profile_store_abort(void) {pending=-1;} + +esp_err_t profile_store_begin_for(unsigned id,const char *json,size_t size,bool v2,bool qr) { + return profile_store_begin_format(id,json,size,v2?2:1,qr); +} +esp_err_t profile_store_begin_format(unsigned id,const char *json,size_t size,unsigned format,bool qr) { + if(format<1||format>4)return ESP_ERR_INVALID_ARG; + esp_err_t e=begin_for(id,json,size); + if(e==ESP_OK&&format>=2) {next.version=format;next.flags=qr?3:1;next.pixel_length=format==4?PROFILE_V4_BYTES:format==3?PROFILE_V3_BYTES:PROFILE_V2_BYTES;} + return e; +} +const uint8_t *profile_store_card(void) {return profile_store_card_for(profile_store_badge());} +const char *profile_store_json(size_t *size) {return profile_store_json_for(profile_store_badge(),size);} +unsigned profile_store_version(void) {return profile_store_version_for(profile_store_badge());} +const uint8_t *profile_store_asset(profile_asset_t asset) {return profile_store_asset_for(profile_store_badge(),asset);} +esp_err_t profile_store_read(profile_asset_t asset,size_t offset,void *data,size_t size) {return profile_store_read_for(profile_store_badge(),asset,offset,data,size);} +esp_err_t profile_store_begin(const char *json,size_t size) {return begin_for(profile_store_badge(),json,size);} +esp_err_t profile_store_begin_v2(const char *json,size_t size,bool qr) {return profile_store_begin_for(profile_store_badge(),json,size,true,qr);} +esp_err_t profile_store_clear(void) {return profile_store_clear_for(profile_store_badge());} +esp_err_t profile_store_patch(unsigned id,const char *json,size_t size,void (*patch)(size_t,uint8_t *,size_t,void *),void *context){ + if(id>=badge_count||!profile_store_ready()||!profile_store_card_for(id))return ESP_ERR_INVALID_STATE; + int source=banks[id];const uint8_t *pixels=bank_data(source)+PROFILE_DATA_OFFSET; + unsigned version=header(source)->version;size_t total=header(source)->pixel_length; + esp_err_t e=profile_store_begin_format(id,json,size,version,(header(source)->flags&2)!=0); + uint8_t chunk[512]; + for(size_t offset=0;e==ESP_OK&&offsetsizeof(chunk))n=sizeof(chunk);memcpy(chunk,pixels+offset,n); + if(patch)patch(offset,chunk,n,context); + e=profile_store_append(offset,chunk,n);offset+=n; + } + if(e==ESP_OK)e=profile_store_commit();else profile_store_abort();return e; +} diff --git a/main/profile_store.h b/main/profile_store.h new file mode 100644 index 0000000..02642d8 --- /dev/null +++ b/main/profile_store.h @@ -0,0 +1,38 @@ +#pragma once +#include "profile_format.h" +#include "esp_err.h" +esp_err_t profile_store_init(void); +unsigned profile_store_revision(void); +const uint8_t *profile_store_card(void); +void profile_store_displayed(unsigned revision); +const char *profile_store_json(size_t *size); +esp_err_t profile_store_read(profile_asset_t asset,size_t offset,void *data,size_t size); +esp_err_t profile_store_begin(const char *json,size_t size); +esp_err_t profile_store_append(size_t offset,const void *data,size_t size); +esp_err_t profile_store_commit(void); +esp_err_t profile_store_clear(void); +void profile_store_abort(void); + +unsigned profile_store_version(void); +const uint8_t *profile_store_asset(profile_asset_t asset); +esp_err_t profile_store_begin_v2(const char *json,size_t size,bool qr); + +/* Serialize these calls with the shared protocol lock. IDs are zero-based. */ +unsigned profile_store_count(void); +unsigned profile_store_badge(void); +bool profile_store_ready(void); +bool profile_store_refresh_pending(void); +esp_err_t profile_store_select(unsigned id); +const uint8_t *profile_store_card_for(unsigned id); +const char *profile_store_json_for(unsigned id,size_t *size); +unsigned profile_store_version_for(unsigned id); +const uint8_t *profile_store_asset_for(unsigned id,profile_asset_t asset); +esp_err_t profile_store_read_for(unsigned id,profile_asset_t asset,size_t offset,void *data,size_t size); +esp_err_t profile_store_begin_for(unsigned id,const char *json,size_t size,bool v2,bool qr); +esp_err_t profile_store_clear_for(unsigned id); + +unsigned profile_store_revision_for(unsigned id); + +esp_err_t profile_store_begin_format(unsigned id,const char *json,size_t size,unsigned format,bool qr); +/* Atomic bank clone: source assets remain valid until the commit marker. */ +esp_err_t profile_store_patch(unsigned id,const char *json,size_t size,void (*patch)(size_t,uint8_t *,size_t,void *),void *context); diff --git a/main/profile_text.c b/main/profile_text.c new file mode 100644 index 0000000..c93bd60 --- /dev/null +++ b/main/profile_text.c @@ -0,0 +1,40 @@ +#include "profile_text.h" +#include +static bool codepoint(const unsigned char **cursor,uint32_t *out){ + const unsigned char *p=*cursor;unsigned n;uint32_t c; + if(*p<128){n=1;c=*p;}else if(*p>=0xc2&&*p<0xe0){n=2;c=*p&31;}else if(*p>=0xe0&&*p<0xf0){n=3;c=*p&15;}else if(*p>=0xf0&&*p<0xf5){n=4;c=*p&7;}else return false; + for(unsigned i=1;i0x10ffff||(c>=0xd800&&c<=0xdfff))return false; + *cursor=p+n;*out=c;return true; +} +bool profile_text_prepare(profile_text_patch_t *p,unsigned field,const char *text,uint16_t bg,uint16_t fg,profile_glyph_lookup_t lookup){ + if(field>2||!text||strlen(text)>128||!lookup)return false; + memset(p,0,sizeof(*p));p->top=field==0?0:field==1?44:90;p->height=field==1?34:32;p->bg=bg;p->fg=fg; + profile_glyph_t decoded[24];unsigned count=0;const unsigned char *s=(const unsigned char *)text;bool nonspace=false; + while(*s){uint32_t cp;if(count>=(field==0?20u:24u)||!codepoint(&s,&cp)||!lookup(cp,&decoded[count]))return false;if(cp!=32)nonspace=true;count++;} + if(field==0&&!nonspace)return false; + unsigned x=0,row=0;bool truncated=false; + for(unsigned i=0;i84){if(row==1){truncated=true;break;}row++;x=0;} + g.x+=(int)x;g.y=(int)row*16+14-(int)g.height-g.y;p->glyphs[p->count++]=g;x+=g.advance; + } + if(truncated){ + profile_glyph_t dot;if(!lookup('.',&dot))return false;unsigned width=dot.advance*3; + while(p->count&&x+width>84){profile_glyph_t *g=&p->glyphs[--p->count];x-=g->advance;} + for(unsigned i=0;i<3;i++){profile_glyph_t g=dot;g.x+=(int)x;g.y=16+14-(int)g.height-g.y;p->glyphs[p->count++]=g;x+=dot.advance;} + } + unsigned padding=(p->height-(row+1)*16)/2;for(unsigned i=0;icount;i++)p->glyphs[i].y+=(int)(p->top+padding); + return true; +} +void profile_text_apply(size_t offset,uint8_t *bytes,size_t size,void *context){ + const profile_text_patch_t *p=context; + for(size_t i=0;i+1top||y>=p->top+p->height)continue; + uint16_t color=p->bg; + for(unsigned n=0;ncount;n++){ + const profile_glyph_t *g=&p->glyphs[n];int gx=(int)x-g->x,gy=(int)y-g->y; + if(gx<0||gy<0||(unsigned)gx>=g->width||(unsigned)gy>=g->height)continue; + unsigned bit=(unsigned)gy*g->width+(unsigned)gx;if(g->bits[bit/8]&(128u>>(bit%8))){color=p->fg;break;} + }bytes[i]=(uint8_t)color;bytes[i+1]=(uint8_t)(color>>8); + } +} diff --git a/main/profile_text.h b/main/profile_text.h new file mode 100644 index 0000000..b8420d0 --- /dev/null +++ b/main/profile_text.h @@ -0,0 +1,10 @@ +#pragma once +#include +#include +#include +typedef struct {const uint8_t *bits;unsigned width,height,advance;int x,y;} profile_glyph_t; +typedef bool (*profile_glyph_lookup_t)(uint32_t cp,profile_glyph_t *glyph); +typedef struct {profile_glyph_t glyphs[32];unsigned count,top,height;uint16_t bg,fg;} profile_text_patch_t; +bool profile_text_prepare(profile_text_patch_t *p,unsigned field,const char *text,uint16_t bg,uint16_t fg,profile_glyph_lookup_t lookup); +/* Patches only one of the three V4 text rectangles, in a streamed RGB565 atlas. */ +void profile_text_apply(size_t offset,uint8_t *bytes,size_t size,void *context); diff --git a/main/profile_usb.c b/main/profile_usb.c new file mode 100644 index 0000000..5c7911e --- /dev/null +++ b/main/profile_usb.c @@ -0,0 +1,84 @@ +#include "profile_usb.h" +#include "badge_power.h" +#include "bsp_display.h" +#include "bsp_pins.h" +#include "profile_protocol.h" +#include "driver/usb_serial_jtag.h" +#include "driver/usb_serial_jtag_vfs.h" +#include "freertos/task.h" +#include "esp_timer.h" +#include "cJSON.h" +#include "mbedtls/base64.h" +#include +#include +#include +#include + +static char line_buffer[4096]; +typedef struct { bool started; int64_t deadline; } screen_transfer_t; +static bool screen_write_bytes(const uint8_t *data, size_t size, int64_t deadline) { + while (size) { + if (esp_timer_get_time() >= deadline) return false; + int n = usb_serial_jtag_write_bytes(data, size, pdMS_TO_TICKS(50)); + if (n < 0) return false; + if (n == 0) { vTaskDelay(1); continue; } + data += n; size -= (size_t)n; + } + return true; +} +static bool screen_write(const uint8_t *data, size_t size, void *context) { + screen_transfer_t *transfer = context; + if (!transfer->started) { + char header[80]; + int len = snprintf(header, sizeof(header), "FAP_SCREENSHOT_V1 %d %d RGB565LE %u\n", + BSP_LCD_W, BSP_LCD_H, (unsigned)(BSP_LCD_W * BSP_LCD_H * 2)); + transfer->started = true; + if (!screen_write_bytes((const uint8_t *)header, (size_t)len, transfer->deadline)) return false; + } + return screen_write_bytes(data, size, transfer->deadline); +} +static void capture_screen(void) { + /* Lock order: LVGL -> stdout. Never wait for LVGL while blocking its logs. + * USB, not the UI task, owns transport. An unplug bounds the stall to 3 s. */ + if (!bsp_lvgl_lock(1000)) return; + flockfile(stdout); fflush(stdout); + screen_transfer_t transfer = {.deadline = esp_timer_get_time() + 3000000}; + esp_err_t result = bsp_display_capture_rgb565(screen_write, &transfer); + if (result != ESP_OK && !transfer.started) { + const char error[] = "FAP_SCREENSHOT_ERROR screen_unavailable\n"; + (void)screen_write_bytes((const uint8_t *)error, sizeof(error) - 1, transfer.deadline); + } + /* No success marker or log may be appended inside the binary payload. */ + funlockfile(stdout); + bsp_lvgl_unlock(); +} +static void handle(const char *line) { + if (!strcmp(line, "FAP_SCREENSHOT_V1")) { capture_screen(); return; } + char *reply=profile_protocol_request(line,true);if(!reply)return; + flockfile(stdout);fflush(stdout); + usb_serial_jtag_write_bytes("@BADGE ",7,pdMS_TO_TICKS(1000)); + size_t len=strlen(reply),offset=0; + while(offset +static radio_controls_t controls; +static lv_timer_t *timer; +static bool started; +static radio_quick_input_t quick_input; +static void refresh(lv_timer_t *){auto state=radio_ui_snapshot();controls.volume=state.volume;radio_ui_render(controls,state,radio_player_timer_seconds());} +extern "C" void demo_radio_enter(){quick_input={};radio_ui_reset_state();radio_controls_init(&controls,40,0);radio_ui_create();refresh(nullptr);} +static esp_err_t start_radio(int preset){ + started=radio_player_init(preset);if(!bsp_lvgl_lock(1000))return ESP_ERR_TIMEOUT; + controls.city=radio_player_city();timer=lv_timer_create(refresh,150,nullptr);refresh(nullptr);bsp_lvgl_unlock();return started?ESP_OK:ESP_FAIL; +} +extern "C" esp_err_t demo_radio_start(){return start_radio(-1);} +extern "C" esp_err_t demo_radio_start_preset(unsigned preset){return start_radio(static_cast(preset));} +#ifdef BADGE_CONTROL_DEVICE_PROBE +extern "C" bool demo_radio_control_probe(unsigned preset){return started&&preset(radio_player_station_index()),static_cast(radio_player_station_count()),static_cast(controls.page),controls.selected,radio_ui_snapshot().state==RadioPlaybackState::Playing}; + bsp_lvgl_unlock();return true; +} +#endif diff --git a/main/radio_app.h b/main/radio_app.h new file mode 100644 index 0000000..1b8cd29 --- /dev/null +++ b/main/radio_app.h @@ -0,0 +1,23 @@ +#pragma once +#include "demo.h" +#ifdef __cplusplus +extern "C" { +#endif +#ifdef BADGE_RADIO_DEVICE_PROBE +typedef struct {unsigned station,count,page,selected;int playing;} radio_probe_state_t; +bool demo_radio_probe_state(radio_probe_state_t *state); +void demo_radio_probe_select(unsigned station); +#endif +void demo_radio_enter(void); +void demo_radio_exit(void); +void demo_radio_key(bsp_btn_t button,bsp_btn_ev_t event); +esp_err_t demo_radio_start(void); +esp_err_t demo_radio_start_preset(unsigned preset); +#ifdef BADGE_CONTROL_DEVICE_PROBE +bool demo_radio_control_probe(unsigned preset); +#endif +esp_err_t demo_radio_stop(void); +bool demo_radio_back(void); +#ifdef __cplusplus +} +#endif diff --git a/main/radio_catalog.cc b/main/radio_catalog.cc new file mode 100644 index 0000000..4bba6a8 --- /dev/null +++ b/main/radio_catalog.cc @@ -0,0 +1,414 @@ +#include "radio_catalog.h" +#include "radio_logic.h" +#include "esp_timer.h" +#include "radio_http.h" +#include "radio_json_stream.h" +#include +#include + +#include "cJSON.h" +#include "esp_crt_bundle.h" +#include "esp_http_client.h" +#include "esp_log.h" + +#include +#include +#include +#include +#include + +namespace { + +std::atomic cancelled{false}; +constexpr char kTag[] = "radio_catalog"; +constexpr char kLocationUrl[] = + "http://ip-api.com/json/?fields=status,countryCode,regionName,city"; +constexpr char kBackupLocationUrl[] = + "https://ipwho.is/?fields=success,country_code,region,city"; +constexpr char kDirectoryBase[] = + "http://de1.api.radio-browser.info/json/stations/search"; + +struct CityTranslation { + const char *english; + const char *chinese; +}; + +// ip-api returns English city names. Radio Browser's Chinese entries are much +// easier to find by their Chinese city name, so map the most common cities and +// fall back to a province/state query for every other place. +constexpr CityTranslation kChineseCities[] = { + {"Beijing", "北京"}, {"Shanghai", "上海"}, + {"Tianjin", "天津"}, {"Chongqing", "é‡�庆"}, + {"Guangzhou", "广州"}, {"Shenzhen", "深圳"}, + {"Dongguan", "东莞"}, {"Foshan", "佛山"}, + {"Zhuhai", "ç� æµ·"}, {"Huizhou", "惠州"}, + {"Zhongshan", "中山"}, {"Shantou", "汕头"}, + {"Hangzhou", "æ�­å·ž"}, {"Ningbo", "å®�æ³¢"}, + {"Wenzhou", "温州"}, {"Jiaxing", "嘉兴"}, + {"Shaoxing", "ç»�å…´"}, {"Jinhua", "金å�Ž"}, + {"Nanjing", "å�—京"}, {"Suzhou", "è‹�å·ž"}, + {"Wuxi", "无锡"}, {"Changzhou", "常州"}, + {"Nantong", "å�—通"}, {"Xuzhou", "å¾�å·ž"}, + {"Chengdu", "æˆ�都"}, {"Mianyang", "绵阳"}, + {"Wuhan", "武汉"}, {"Yichang", "宜昌"}, + {"Changsha", "é•¿æ²™"}, {"Zhengzhou", "郑州"}, + {"Luoyang", "洛阳"}, {"Jinan", "济å�—"}, + {"Qingdao", "é�’å²›"}, {"Yantai", "烟å�°"}, + {"Shenyang", "沈阳"}, {"Dalian", "大连"}, + {"Harbin", "哈尔滨"}, {"Changchun", "长春"}, + {"Shijiazhuang", "石家庄"}, {"Taiyuan", "太原"}, + {"Xi'an", "西安"}, {"Xian", "西安"}, + {"Kunming", "昆明"}, {"Guiyang", "贵阳"}, + {"Nanning", "å�—å®�"}, {"Haikou", "æµ·å�£"}, + {"Fuzhou", "ç¦�å·ž"}, {"Xiamen", "厦门"}, + {"Nanchang", "å�—昌"}, {"Hefei", "å�ˆè‚¥"}, + {"Lanzhou", "å…°å·ž"}, {"Urumqi", "乌é²�木é½�"}, + {"Hohhot", "呼和浩特"}, {"Yinchuan", "é“¶å·�"}, + {"Xining", "西å®�"}, {"Lhasa", "拉è�¨"}, +}; + +bool starts_with(const char *text, const char *prefix) { + return text && prefix && std::strncmp(text, prefix, std::strlen(prefix)) == 0; +} + +bool contains(const char *text, const char *needle) { + return text && needle && std::strstr(text, needle) != nullptr; +} + +bool http_get(const char *url, char *response, std::size_t capacity, + std::size_t *response_size) { + if (cancelled.load() || !url || !response || capacity < 2) return false; + response[0] = '\0'; + + esp_http_client_config_t config = {}; + config.url = url; + config.timeout_ms = 2500; + config.buffer_size = 2048; + config.buffer_size_tx = 512; + config.user_agent = "AI-Passport-Radio/1.1.1"; + config.keep_alive_enable = false; + config.disable_auto_redirect = false; + config.max_redirection_count = 3; + config.crt_bundle_attach = esp_crt_bundle_attach; + esp_http_client_handle_t client = esp_http_client_init(&config); + if (!client) return false; + + esp_http_client_set_header(client, "Accept", "application/json"); + esp_http_client_set_header(client, "Accept-Encoding", "identity"); + bool success = false; + std::size_t used = 0; + const int64_t deadline=esp_timer_get_time()+10000000; + do { + if (!radio_http_open(client,3) || cancelled.load()) break; + const int status = esp_http_client_get_status_code(client); + if (status < 200 || status >= 300) { + ESP_LOGW(kTag, "GET %s returned HTTP %d", url, status); + break; + } + + while (used + 1 < capacity && !cancelled.load() && esp_timer_get_time()(capacity - used - 1)); + if (received < 0) { + used = 0; + break; + } + if (received == 0) { + success = used > 0; + break; + } + used += static_cast(received); + } + if (used + 1 >= capacity) { + ESP_LOGW(kTag, "Response from %s exceeded %u bytes", url, + static_cast(capacity)); + success = false; + } + } while (false); + + if(cancelled.load() || esp_timer_get_time()>=deadline)success=false; + response[used] = '\0'; + if (response_size) *response_size = used; + esp_http_client_close(client); + esp_http_client_cleanup(client); + return success; +} + +const char *json_string(cJSON *object, const char *name) { + cJSON *item = cJSON_GetObjectItemCaseSensitive(object, name); + return cJSON_IsString(item) && item->valuestring ? item->valuestring : ""; +} + +void copy_text(char *target, std::size_t capacity, const char *source) { + if (!target || capacity == 0) return; + std::snprintf(target, capacity, "%s", source ? source : ""); +} + +bool locate(RadioLocation *location) { + char *response = static_cast(std::malloc(2048)); + if (!response) return false; + bool success = false; + if (http_get(kLocationUrl, response, 2048, nullptr)) { + cJSON *root = cJSON_Parse(response); + if (root) { + const char *status = json_string(root, "status"); + const char *country = json_string(root, "countryCode"); + const char *region = json_string(root, "regionName"); + const char *city = json_string(root, "city"); + if (std::strcmp(status, "success") == 0 && country[0] && + (city[0] || region[0])) { + copy_text(location->country_code, sizeof(location->country_code), country); + copy_text(location->region, sizeof(location->region), region); + copy_text(location->city, sizeof(location->city), city); + success = true; + } + cJSON_Delete(root); + } + } + if (!success && http_get(kBackupLocationUrl, response, 2048, nullptr)) { + cJSON *root = cJSON_Parse(response); + if (root) { + cJSON *ok = cJSON_GetObjectItemCaseSensitive(root, "success"); + const char *country = json_string(root, "country_code"); + const char *region = json_string(root, "region"); + const char *city = json_string(root, "city"); + if (cJSON_IsTrue(ok) && country[0] && (city[0] || region[0])) { + copy_text(location->country_code, sizeof(location->country_code), country); + copy_text(location->region, sizeof(location->region), region); + copy_text(location->city, sizeof(location->city), city); + success = true; + } + cJSON_Delete(root); + } + } + std::free(response); + return success; +} + +void url_encode(const char *source, char *target, std::size_t capacity) { + static constexpr char kHex[] = "0123456789ABCDEF"; + std::size_t out = 0; + for (const unsigned char *p = reinterpret_cast(source); + p && *p && out + 1 < capacity; ++p) { + const unsigned char value = *p; + if (std::isalnum(value) || value == '-' || value == '_' || value == '.' || + value == '~') { + target[out++] = static_cast(value); + } else if (out + 3 < capacity) { + target[out++] = '%'; + target[out++] = kHex[value >> 4]; + target[out++] = kHex[value & 0x0F]; + } else { + break; + } + } + target[out] = '\0'; +} + +const char *translated_city(const RadioLocation &location) { + if (std::strcmp(location.country_code, "CN") != 0) return location.city; + for (const auto &entry : kChineseCities) { + if (std::strcmp(entry.english, location.city) == 0) return entry.chinese; + } + return nullptr; +} + +void normalize_stream_url(const char *source, char *target, std::size_t capacity) { + if (starts_with(source, "https://") && + (contains(source, ".qtfm.cn/") || contains(source, ".qingting.fm/"))) { + std::snprintf(target, capacity, "http://%s", source + 8); + } else { + copy_text(target, capacity, source); + } +} + +bool duplicate_url(const RadioStation *stations, std::size_t count, const char *url) { + for (std::size_t i = 0; i < count; ++i) { + if (std::strcmp(stations[i].url, url) == 0) return true; + } + return false; +} + +bool ascii_only(const char *text) { + if (!text || !text[0]) return false; + for (const unsigned char *p = reinterpret_cast(text); *p; ++p) { + if (*p >= 0x80) return false; + } + return true; +} + +// Chinese FM broadcasting occupies 87.0-108.0 MHz. Station names in the public +// directory spell the frequency in three ways, so they are tried in order of +// confidence: an explicit "FM" prefix, a bare decimal such as "94.7", and +// finally a compact form such as "971" that stations use as a brand. The last +// form is the least reliable, so it is only accepted when the digits are not +// glued to other numbers and still land inside the broadcast band. + +void make_display_name(char *target, std::size_t capacity, const char *raw_name, + const char *city, std::size_t sequence) { + if (ascii_only(raw_name)) { + copy_text(target, capacity, raw_name); + return; + } + + const char *frequency = nullptr; + for (const char *p = raw_name; p && p[0] && p[1]; ++p) { + if ((p[0] == 'F' || p[0] == 'f') && (p[1] == 'M' || p[1] == 'm')) { + frequency = p; + break; + } + } + if (frequency) { + char suffix[20] = {}; + std::size_t length = 0; + while (frequency[length] && length + 1 < sizeof(suffix)) { + const unsigned char value = static_cast(frequency[length]); + if (value >= 0x80 || (!std::isalnum(value) && value != '.' && value != '-' && + value != ' ')) { + break; + } + suffix[length] = frequency[length]; + ++length; + } + while (length > 0 && suffix[length - 1] == ' ') suffix[--length] = '\0'; + if (length >= 2) { + if (!target || !capacity) return; + if (capacity <= length + 1) { copy_text(target, capacity, suffix); return; } + std::size_t kept = std::min(std::strlen(city), capacity - length - 2); + while (kept && (static_cast(city[kept]) & 0xc0) == 0x80) --kept; + std::memcpy(target, city, kept); target[kept++] = ' '; + std::memcpy(target + kept, suffix, length); target[kept + length] = '\0'; + return; + } + } + std::snprintf(target, capacity, "%s RADIO %u", city, + static_cast(sequence + 1)); +} + +void append_station(const char *json, const RadioLocation &location, + RadioStation *stations, std::size_t capacity, std::size_t &count) { + if(count>=capacity)return; + std::unique_ptr parsed(cJSON_Parse(json),cJSON_Delete); + cJSON *entry=parsed.get(); + if(!cJSON_IsObject(entry))return; + const char *raw_name = json_string(entry, "name"); + const char *raw_url = json_string(entry, "url_resolved"); + if (!raw_url[0]) raw_url = json_string(entry, "url"); + cJSON *last_ok = cJSON_GetObjectItemCaseSensitive(entry, "lastcheckok"); + cJSON *hls = cJSON_GetObjectItemCaseSensitive(entry, "hls"); + if (!raw_name[0] || !raw_url[0] || strlen(raw_url)>=sizeof(RadioStation::url) || !contains(raw_url, ".mp3") || + (cJSON_IsNumber(last_ok) && last_ok->valueint != 1) || + (cJSON_IsNumber(hls) && hls->valueint != 0)) { + return; + } + + RadioStation candidate = {}; + normalize_stream_url(raw_url, candidate.url, sizeof(candidate.url)); + if ((!starts_with(candidate.url, "http://") && + !starts_with(candidate.url, "https://")) || + duplicate_url(stations, count, candidate.url)) { + return; + } + const char *city = location.city[0] ? location.city : location.region; + candidate.frequency_decihz = radio_parse_frequency(raw_name); + make_display_name(candidate.name, sizeof(candidate.name), raw_name, city, count); + copy_text(candidate.description, sizeof(candidate.description), + "城市电å�° · 网络直播"); + stations[count++] = candidate; +} + +std::size_t query_directory(const RadioLocation &location, const char *field, + const char *value, RadioStation *stations, + std::size_t capacity) { + char country[16] = {}; + char encoded[192] = {}; + url_encode(location.country_code, country, sizeof(country)); + url_encode(value, encoded, sizeof(encoded)); + char url[512] = {}; + std::snprintf(url, sizeof(url), + "%s?countrycode=%s&%s=%s&codec=MP3&hidebroken=true" + "&order=clickcount&reverse=true&limit=%u", + kDirectoryBase, country, field, encoded, + static_cast(std::min(capacity + 3, 12))); + + // Never hold an entire directory response and its JSON tree in C3 RAM. + auto objects=std::unique_ptr(new(std::nothrow) RadioJsonObjects); + if(!objects)return 0; + esp_http_client_config_t config={};config.url=url;config.timeout_ms=2500; + config.buffer_size=1024;config.buffer_size_tx=512; + config.crt_bundle_attach=esp_crt_bundle_attach; + config.user_agent="AI-Passport-Radio/2.0"; + esp_http_client_handle_t client=esp_http_client_init(&config); + if(!client)return 0; + esp_http_client_set_header(client,"Accept","application/json"); + esp_http_client_set_header(client,"Accept-Encoding","identity"); + std::size_t count=0,total=0; + const int64_t deadline=esp_timer_get_time()+10000000; + if(!cancelled.load()&&radio_http_open(client,3)){ + char block[256]; + while(!cancelled.load()&&!objects->done&&!objects->failed&&countfailed;i++) + if(objects->feed(block[i]))append_station(objects->object,location,stations,capacity,count); + } + } + esp_http_client_close(client);esp_http_client_cleanup(client); + if(objects->failed)count=0; + + return count; +} + +} // namespace + +std::size_t radio_catalog_discover(RadioStation *stations, std::size_t capacity, + RadioLocation *location) { + if (!stations || capacity == 0 || !location) return 0; + *location = {}; + if (cancelled.load() || !locate(location)) { + ESP_LOGW(kTag, "Unable to determine network location"); + return 0; + } + ESP_LOGI(kTag, "Detected location: %s, %s, %s", location->city, + location->region, location->country_code); + + std::size_t count = 0; + const char *city_query = translated_city(*location); + if (city_query && city_query[0]) { + count = query_directory(*location, "name", city_query, stations, capacity); + ESP_LOGI(kTag, "City search '%s' returned %u playable stations", city_query, + static_cast(count)); + } else if (std::strcmp(location->country_code, "CN") != 0 && location->city[0]) { + count = query_directory(*location, "name", location->city, stations, capacity); + ESP_LOGI(kTag, "City search '%s' returned %u playable stations", location->city, + static_cast(count)); + } + + if (count == 0 && location->region[0] && !cancelled.load()) { + count = query_directory(*location, "state", location->region, stations, capacity); + ESP_LOGI(kTag, "Region search '%s' returned %u playable stations", + location->region, static_cast(count)); + } + return count; +} + +std::size_t radio_catalog_discover_city(const char *city, RadioStation *stations, + std::size_t capacity, + RadioLocation *location) { + if (!city || !city[0] || !stations || capacity == 0 || !location) return 0; + *location = {}; + copy_text(location->country_code, sizeof(location->country_code), "CN"); + copy_text(location->city, sizeof(location->city), city); + copy_text(location->region, sizeof(location->region), city); + + const std::size_t count = + query_directory(*location, "name", city, stations, capacity); + ESP_LOGI(kTag, "Manual city search '%s' returned %u playable stations", city, + static_cast(count)); + return count; +} + +void radio_catalog_cancel(){cancelled.store(true);} +void radio_catalog_reset_cancel(){cancelled.store(false);} diff --git a/main/radio_catalog.h b/main/radio_catalog.h new file mode 100644 index 0000000..21fe2ce --- /dev/null +++ b/main/radio_catalog.h @@ -0,0 +1,26 @@ +#pragma once + +#include "radio_player.h" + +#include + +struct RadioLocation { + char country_code[4]; + char region[48]; + char city[48]; +}; + +// Locates the radio from its public network address and loads playable MP3 +// stations for the detected city. If the directory has no city result, it +// automatically falls back to the surrounding region/province. +std::size_t radio_catalog_discover(RadioStation *stations, std::size_t capacity, + RadioLocation *location); + +// Loads the most popular playable stations for a user-selected Chinese city. +// This skips IP geolocation and is used by the on-device city selector. +std::size_t radio_catalog_discover_city(const char *city, RadioStation *stations, + std::size_t capacity, + RadioLocation *location); + +void radio_catalog_cancel(); +void radio_catalog_reset_cancel(); diff --git a/main/radio_controls.c b/main/radio_controls.c new file mode 100644 index 0000000..5ffd7df --- /dev/null +++ b/main/radio_controls.c @@ -0,0 +1,33 @@ +#include "radio_controls.h" +bool radio_direction_click(radio_quick_input_t *input,unsigned key,radio_input_event_t event){ + if(key>1)return false; + unsigned bit=1u<edges|=bit;input->held|=bit;input->long_keys&=~bit;return false;} + if(event==RADIO_LONG){input->long_keys|=bit;return false;} + if(event==RADIO_RELEASE){bool clicked=(input->held&bit)&&!(input->long_keys&bit);input->held&=~bit;return clicked;} + return !(input->edges&bit); /* Synthetic click-only callers remain supported. */ +} +const char *const RADIO_CITIES[8]={"自动定ä½�","北京","上海","广州","深圳","é•¿æ²™","æ�­å·ž","æˆ�都"}; +const unsigned RADIO_TIMER_MINUTES[5]={0,15,30,60,90}; +static unsigned cycle(unsigned value,int delta,unsigned count){return (value+count+(delta>0?1:-1))%count;} +void radio_controls_init(radio_controls_t *c,int volume,unsigned city){*c=(radio_controls_t){.page=RADIO_MAIN,.volume=volume,.city=city<8?city:0};} +void radio_controls_settings(radio_controls_t *c){c->page=RADIO_SETTINGS;c->selected=0;} +radio_action_t radio_controls_move(radio_controls_t *c,int direction){ + if(c->page==RADIO_MAIN)return direction<0?RADIO_CHANNEL_UP:RADIO_CHANNEL_DOWN; + if(c->page==RADIO_VOLUME){c->volume+=direction<0?5:-5;if(c->volume<0)c->volume=0;if(c->volume>100)c->volume=100;return RADIO_VOLUME_CHANGED;} + if(c->page==RADIO_SETTINGS)c->selected=cycle(c->selected,direction,3); + if(c->page==RADIO_CITY)c->selected=cycle(c->selected,direction,8); + if(c->page==RADIO_TIMER)c->selected=cycle(c->selected,direction,5); + return RADIO_NOTHING; +} +radio_action_t radio_controls_ok(radio_controls_t *c){ + if(c->page==RADIO_MAIN)return RADIO_TOGGLE; + if(c->page==RADIO_SETTINGS){static const radio_page_t pages[]={RADIO_VOLUME,RADIO_CITY,RADIO_TIMER};c->page=pages[c->selected%3];c->selected=c->page==RADIO_CITY?c->city:c->page==RADIO_TIMER?c->timer:0;return RADIO_NOTHING;} + if(c->page==RADIO_CITY){c->city=c->selected;c->page=RADIO_MAIN;return RADIO_CITY_CHANGED;} + if(c->page==RADIO_TIMER){c->timer=c->selected;c->page=RADIO_MAIN;return RADIO_TIMER_CHANGED;} + c->page=RADIO_SETTINGS;c->selected=0;return RADIO_NOTHING; +} +bool radio_controls_back(radio_controls_t *c){ + if(c->page==RADIO_MAIN)return false; + c->page=c->page==RADIO_SETTINGS?RADIO_MAIN:RADIO_SETTINGS;c->selected=0;return true; +} diff --git a/main/radio_controls.h b/main/radio_controls.h new file mode 100644 index 0000000..ccc4da8 --- /dev/null +++ b/main/radio_controls.h @@ -0,0 +1,22 @@ +#pragma once +#include +#ifdef __cplusplus +extern "C" { +#endif +typedef enum { RADIO_MAIN, RADIO_SETTINGS, RADIO_VOLUME, RADIO_CITY, RADIO_TIMER } radio_page_t; +typedef enum { RADIO_NOTHING, RADIO_CHANNEL_UP, RADIO_CHANNEL_DOWN, RADIO_TOGGLE, RADIO_VOLUME_CHANGED, RADIO_CITY_CHANGED, RADIO_TIMER_CHANGED } radio_action_t; +typedef enum { RADIO_PRESS, RADIO_RELEASE, RADIO_CLICK, RADIO_DOUBLE, RADIO_LONG } radio_input_event_t; +typedef struct {unsigned edges,held,long_keys;} radio_quick_input_t; +/* Each short press responds on release; later click/double events are ignored. */ +bool radio_direction_click(radio_quick_input_t *input,unsigned key,radio_input_event_t event); +typedef struct {radio_page_t page;unsigned selected,city,timer;int volume;} radio_controls_t; +extern const char *const RADIO_CITIES[8]; +extern const unsigned RADIO_TIMER_MINUTES[5]; +void radio_controls_init(radio_controls_t *c,int volume,unsigned city); +radio_action_t radio_controls_move(radio_controls_t *c,int direction); +radio_action_t radio_controls_ok(radio_controls_t *c); +void radio_controls_settings(radio_controls_t *c); +bool radio_controls_back(radio_controls_t *c); +#ifdef __cplusplus +} +#endif diff --git a/main/radio_directory.cc b/main/radio_directory.cc new file mode 100644 index 0000000..3b92780 --- /dev/null +++ b/main/radio_directory.cc @@ -0,0 +1,45 @@ +#include "radio_directory.h" +#include +#include + +namespace { +// Public Qingting aliases can identify the same stream with different schemes. +const char *qingting_id(const char *url) { + const char *host = std::strstr(url, "://"); + if (!host) return nullptr; + host += 3; + for (const char *prefix : {"lhttp.qingting.fm/live/", "lhttp.qtfm.cn/live/"}) { + if (std::strncmp(host, prefix, std::strlen(prefix)) == 0) return host + std::strlen(prefix); + } + return nullptr; +} +bool same_stream(const char *a, const char *b) { + if (std::strcmp(a, b) == 0) return true; + const char *x = qingting_id(a), *y = qingting_id(b); + if (!x || !y) return false; + const std::size_t nx = std::strspn(x, "0123456789"), ny = std::strspn(y, "0123456789"); + return nx && nx == ny && x[nx] == '/' && y[ny] == '/' && std::strncmp(x, y, nx) == 0; +} +} + +void RadioDirectory::replace(const RadioStation *local, std::size_t count) { + local_count_ = preset_count_ = 0; + if (local) for (std::size_t i = 0; i < std::min(count, kLocalCapacity); ++i) { + if (!local[i].url[0]) continue; + bool duplicate = false; + for (std::size_t j = 0; j < local_count_; ++j) duplicate |= same_stream(local[i].url, local_[j].url); + if (!duplicate) local_[local_count_++] = local[i]; + } + for (std::size_t i = 0; i < std::min(RADIO_PRESET_COUNT, kPresetCapacity); ++i) { + bool duplicate = false; + for (std::size_t j = 0; j < local_count_; ++j) duplicate |= same_stream(RADIO_PRESETS[i].url, local_[j].url); + if (!duplicate) presets_[preset_count_++] = static_cast(i); + } +} + +const RadioStation &RadioDirectory::at(std::size_t index) const { + static const RadioStation empty = {}; + if (!count()) return empty; + index %= count(); + return index < local_count_ ? local_[index] : RADIO_PRESETS[presets_[index - local_count_]]; +} diff --git a/main/radio_directory.h b/main/radio_directory.h new file mode 100644 index 0000000..33925aa --- /dev/null +++ b/main/radio_directory.h @@ -0,0 +1,15 @@ +#pragma once +#include "radio_presets.h" + +class RadioDirectory { +public: + static constexpr std::size_t kLocalCapacity = 10; + static constexpr std::size_t kPresetCapacity = 64; + void replace(const RadioStation *local, std::size_t count); + std::size_t count() const { return local_count_ + preset_count_; } + const RadioStation &at(std::size_t index) const; +private: + RadioStation local_[kLocalCapacity] = {}; + uint8_t presets_[kPresetCapacity] = {}; + std::size_t local_count_ = 0, preset_count_ = 0; +}; diff --git a/main/radio_http.cc b/main/radio_http.cc new file mode 100644 index 0000000..2e64bbe --- /dev/null +++ b/main/radio_http.cc @@ -0,0 +1,13 @@ +#include "radio_http.h" +bool radio_http_open(esp_http_client_handle_t client,unsigned redirects){ + for(unsigned i=0;i<=redirects;i++){ + if(esp_http_client_open(client,0)!=ESP_OK)return false; + if(esp_http_client_fetch_headers(client)<0)return false; + const int status=esp_http_client_get_status_code(client); + if(status>=200&&status<300)return true; + if(i==redirects||!(status==301||status==302||status==303||status==307||status==308))return false; + if(esp_http_client_set_redirection(client)!=ESP_OK)return false; + esp_http_client_close(client); + } + return false; +} diff --git a/main/radio_http.h b/main/radio_http.h new file mode 100644 index 0000000..7b6c47a --- /dev/null +++ b/main/radio_http.h @@ -0,0 +1,4 @@ +#pragma once +#include "esp_http_client.h" +/* Worker-owned clients only. Applies redirects for the streaming open API. */ +bool radio_http_open(esp_http_client_handle_t client,unsigned redirects); diff --git a/main/radio_json_stream.h b/main/radio_json_stream.h new file mode 100644 index 0000000..82f7811 --- /dev/null +++ b/main/radio_json_stream.h @@ -0,0 +1,33 @@ +#pragma once +#include + +// Bounded, incremental splitter for a JSON array of objects. A completed object +// is parsed separately by cJSON; oversized entries are skipped, never truncated. +struct RadioJsonObjects { + char object[4096]{}; + std::size_t used=0; + unsigned depth=0; + bool quoted=false,escaped=false,overflow=false,done=false,failed=false; + enum Phase { Start, First, Value, Comma } phase=Start; + bool feed(char c) { + if(failed)return false; + if(!depth){ + if(c==' '||c=='\r'||c=='\n'||c=='\t')return false; + if(done){failed=true;return false;} + if(phase==Start){if(c=='[')phase=First;else failed=true;return false;} + if(c==']'&&(phase==First||phase==Comma)){done=true;return false;} + if(phase==Comma){if(c==',')phase=Value;else failed=true;return false;} + if(c!='{'){failed=true;return false;} + used=0;overflow=false;depth=1;quoted=false;escaped=false; + }else if(quoted){ + if(escaped)escaped=false; + else if(c=='\\')escaped=true; + else if(c=='"')quoted=false; + }else if(c=='"')quoted=true; + else if(c=='{')++depth; + else if(c=='}')--depth; + if(used+1 +constexpr uint16_t kBandLowDecihz = 870; +constexpr uint16_t kBandHighDecihz = 1080; + +bool in_band(long decihz) { + return decihz >= kBandLowDecihz && decihz <= kBandHighDecihz; +} + +bool is_digit(char value) { return value >= '0' && value <= '9'; } + +// Reads "94.7" or "1017" style digits at `text` and returns tenths of a MHz. +// Digit runs without a decimal point are ambiguous: "971" is 97.1 MHz while +// "101" is 101.0 MHz. Both readings are tried and the one inside the broadcast +// band wins, checking the tenths reading first because it is far more common. +long read_decihz(const char *text, std::size_t *consumed) { + std::size_t whole = 0; + while (is_digit(text[whole])) ++whole; + if (whole < 2 || whole > 4) return 0; + + long value = 0; + for (std::size_t i = 0; i < whole; ++i) value = value * 10 + (text[i] - '0'); + + if (text[whole] == '.' && is_digit(text[whole + 1])) { + if (whole > 3 || is_digit(text[whole + 2])) return 0; + *consumed = whole + 2; + return value * 10 + (text[whole + 1] - '0'); + } + + *consumed = whole; + if (whole == 2) return value * 10; // "94" is 94.0 MHz + if (in_band(value)) return value; // "971" is 97.1 MHz + if (in_band(value * 10)) return value * 10; // "101" is 101.0 MHz + return value; +} + +uint16_t radio_parse_frequency(const char *name) { + if (!name) return 0; + + for (const char *p = name; p[0] && p[1]; ++p) { + if ((p[0] != 'F' && p[0] != 'f') || (p[1] != 'M' && p[1] != 'm')) continue; + const char *digits = p + 2; + while (*digits == ' ') ++digits; + std::size_t consumed = 0; + const long value = read_decihz(digits, &consumed); + if (in_band(value)) return static_cast(value); + } + + for (const char *p = name; *p; ++p) { + if (!is_digit(*p)) continue; + const bool starts_run = p == name || (!is_digit(p[-1]) && p[-1] != '.'); + if (!starts_run) continue; + std::size_t consumed = 0; + const long value = read_decihz(p, &consumed); + if (consumed && in_band(value)) return static_cast(value); + while (is_digit(p[1])) ++p; + } + return 0; +} + + +unsigned radio_dial_position(uint16_t frequency,unsigned index,unsigned count){ + if(frequency>=870&&frequency<=1080){if(frequency<880)return 0;return (frequency-880u)*1000u/200u;} + if(count<2)return 500; + if(index>=count)index=count-1; + return index*1000u/(count-1); +} +size_t radio_downmix(int16_t *pcm,size_t bytes,unsigned channels){ + if(!pcm||channels<1||channels>2||bytes%(channels*sizeof(int16_t)))return 0; + if(channels==1)return bytes; + const size_t frames=bytes/4; + for(size_t i=0;i((static_cast(pcm[i*2])+pcm[i*2+1])/2); + return frames*2; +} +bool radio_timer_expired(int64_t deadline,int64_t now){return deadline>0&&now>=deadline;} diff --git a/main/radio_logic.h b/main/radio_logic.h new file mode 100644 index 0000000..e2f75c6 --- /dev/null +++ b/main/radio_logic.h @@ -0,0 +1,15 @@ +#pragma once +#include +#include +#include +#ifdef __cplusplus +extern "C" { +#endif +uint16_t radio_parse_frequency(const char *name); +/* Dial position, 0..1000. Unknown frequency is distributed by list index. */ +unsigned radio_dial_position(uint16_t frequency, unsigned index, unsigned count); +size_t radio_downmix(int16_t *pcm, size_t bytes, unsigned channels); +bool radio_timer_expired(int64_t deadline, int64_t now); +#ifdef __cplusplus +} +#endif diff --git a/main/radio_player.cc b/main/radio_player.cc new file mode 100644 index 0000000..030a221 --- /dev/null +++ b/main/radio_player.cc @@ -0,0 +1,632 @@ +/* Adapted from LEO Radio (MIT); assets/radio/LICENSE.txt. */ +#include "radio_player.h" + +extern "C" { +#include "bsp_audio.h" +#include "badge_network.h" +#include "badge_power.h" +#include "bsp_battery.h" +} +#include "radio_catalog.h" +#include "radio_directory.h" +#include "radio_controls.h" +#include "radio_logic.h" +#include "esp_crt_bundle.h" +#include "esp_http_client.h" +#include "esp_log.h" +#include "esp_timer.h" +#include "esp_system.h" +#include "esp_heap_caps.h" +#include "radio_http.h" +#include "freertos/FreeRTOS.h" +#include "freertos/semphr.h" +#include "freertos/task.h" +#include "nvs.h" +#include "radio_ui.h" + +#include "decoder/impl/esp_mp3_dec.h" +#include "simple_dec/esp_audio_simple_dec.h" + + +#include +#include +#include +#include +#include +#include + +namespace { + +constexpr char kTag[] = "radio_player"; +constexpr std::size_t kInputSize = 1024; +constexpr std::size_t kOutputSize = 4608; // One MP3 frame: 1152 samples x stereo x 16-bit. +constexpr std::size_t kLevelCount = 18; +constexpr std::size_t kMaxStations = RadioDirectory::kLocalCapacity; +// Consecutive silent failures tolerated before moving to the next station. +constexpr uint8_t kMaxFailedAttempts = 3; + +std::atomic s_network_connected{false}; +std::atomic s_wanted_playing{true}; +std::atomic s_station_index{0}; +std::atomic s_station_count{0}; +std::atomic s_volume{55}; +std::atomic s_generation{1}; +std::atomic s_stream_active{false}; +TaskHandle_t s_player_task; +SemaphoreHandle_t s_station_mutex; +SemaphoreHandle_t s_done; +std::atomic s_stopping{false},s_dirty{false},s_station_dirty{false}; +std::atomic s_city{0}; +std::atomic s_catalog_request{1},s_deadline{0}; +static uint32_t now_seconds(){return static_cast(esp_timer_get_time()/1000000);} +static uint32_t s_last_status; +static bool s_audio_ready; +static bool s_battery_ready; +static int s_last_battery=-1; +static void refresh_battery(){ + if(!s_battery_ready)s_battery_ready=bsp_battery_init()==ESP_OK; + const int next=s_battery_ready?bsp_battery_soc():-1; + if(next>=0)s_last_battery=next; + radio_ui_set_battery(s_last_battery); +} +static void flush_settings(); +RadioDirectory s_directory; + +RadioStation station_snapshot(std::size_t index) { + RadioStation station = {}; + if (!s_station_mutex || + xSemaphoreTake(s_station_mutex, pdMS_TO_TICKS(250)) != pdTRUE) { + return station; + } + const std::size_t count = std::max(s_station_count.load(), 1); + station = s_directory.at(index % count); + xSemaphoreGive(s_station_mutex); + return station; +} + +void save_setting(const char *key, uint8_t value) { + nvs_handle_t handle; + if (nvs_open("badge_radio_v1", NVS_READWRITE, &handle) != ESP_OK) return; + nvs_set_u8(handle, key, value); + nvs_commit(handle); + nvs_close(handle); +} + +uint8_t load_setting(const char *key, uint8_t fallback) { + nvs_handle_t handle; + if (nvs_open("badge_radio_v1", NVS_READONLY, &handle) != ESP_OK) return fallback; + uint8_t value = fallback; + if (nvs_get_u8(handle, key, &value) != ESP_OK) value = fallback; + nvs_close(handle); + return value; +} + +void save_station_name(const char *name) { + nvs_handle_t handle; + if (nvs_open("badge_radio_v1", NVS_READWRITE, &handle) != ESP_OK) return; + if (name && name[0]) { + nvs_set_str(handle, "station_name", name); + } else { + nvs_erase_key(handle, "station_name"); + } + nvs_commit(handle); + nvs_close(handle); +} + +// Copies the station name the listener last chose. Returns false when no +// station has been remembered yet. +bool load_station_name(char *name, std::size_t capacity) { + if (!name || capacity == 0) return false; + name[0] = '\0'; + nvs_handle_t handle; + if (nvs_open("badge_radio_v1", NVS_READONLY, &handle) != ESP_OK) return false; + std::size_t length = capacity; + const esp_err_t error = nvs_get_str(handle, "station_name", name, &length); + nvs_close(handle); + if (error != ESP_OK) { + name[0] = '\0'; + return false; + } + return name[0] != '\0'; +} + +// Installs a catalog under the station mutex and reports the index that should +// stay selected. `preferred_name` keeps the previous station when the fresh +// catalog still carries it. +bool install_stations(const RadioStation *stations, std::size_t count, + const char *preferred_name, std::size_t *selected) { + if ((!stations && count) || !s_station_mutex) return false; + count = std::min(count, kMaxStations); + + // Stop the current request before replacing its backing catalog. The + // streaming task uses a value snapshot, so the swap is atomic to users. + s_generation.fetch_add(1, std::memory_order_acq_rel); + if (xSemaphoreTake(s_station_mutex, pdMS_TO_TICKS(1000)) != pdTRUE) return false; + s_directory.replace(stations, count); + count = s_directory.count(); + std::size_t index = 0; + if (preferred_name && preferred_name[0]) { + for (std::size_t i = 0; i < count; ++i) { + if (std::strcmp(s_directory.at(i).name, preferred_name) == 0) { + index = i; + break; + } + } + } + s_station_count.store(count, std::memory_order_release); + s_station_index.store(index, std::memory_order_release); + xSemaphoreGive(s_station_mutex); + if (selected) *selected = index; + return true; +} + +bool request_still_current(uint32_t generation, std::size_t station) { + if(s_deadline.load() && radio_timer_expired(s_deadline.load(),now_seconds())) { + s_deadline.store(0);s_wanted_playing.store(false);radio_ui_set_playback(RadioPlaybackState::Stopped,"定时结æ�Ÿ"); + } + return !s_stopping.load() && s_network_connected.load(std::memory_order_acquire) && + s_wanted_playing.load(std::memory_order_acquire) && + s_generation.load(std::memory_order_acquire) == generation && + s_station_index.load(std::memory_order_acquire) == station; +} + +void calculate_levels(const uint8_t *pcm, std::size_t bytes, uint8_t channels) { + if (!pcm || bytes < 64) return; + const auto *samples = reinterpret_cast(pcm); + const std::size_t sample_count = bytes / sizeof(int16_t); + if (sample_count < kLevelCount) return; + const std::size_t frames = sample_count / std::max(channels, 1); + if (frames < kLevelCount) return; + + uint8_t levels[kLevelCount] = {}; + for (std::size_t band = 0; band < kLevelCount; ++band) { + const std::size_t begin = band * frames / kLevelCount; + const std::size_t end = (band + 1) * frames / kLevelCount; + int64_t energy = 0; + std::size_t count = 0; + for (std::size_t frame = begin; frame < end; ++frame) { + int32_t mixed = 0; + for (uint8_t channel = 0; channel < channels; ++channel) { + mixed += samples[frame * channels + channel]; + } + mixed /= std::max(channels, 1); + energy += static_cast(mixed) * mixed; + ++count; + } + const float rms = count ? std::sqrt(static_cast(energy) / count) : 0.0f; + float db = rms > 1.0f ? 20.0f * std::log10(rms / 32768.0f) : -80.0f; + int value = static_cast((db + 58.0f) * 2.25f); + + levels[band] = static_cast(std::clamp(value, 2, 100)); + } + radio_ui_set_audio_levels(levels, kLevelCount); +} + + +esp_audio_simple_dec_handle_t open_mp3_decoder() { + esp_audio_simple_dec_cfg_t config = { + .dec_type = ESP_AUDIO_SIMPLE_DEC_TYPE_MP3, + .dec_cfg = nullptr, + .cfg_size = 0, + .use_frame_dec = false, + }; + esp_audio_simple_dec_handle_t decoder = nullptr; + const esp_audio_err_t error = esp_audio_simple_dec_open(&config, &decoder); + if (error != ESP_AUDIO_ERR_OK) { + ESP_LOGE(kTag, "MP3 decoder open failed: %d", error); + return nullptr; + } + return decoder; +} + +bool stream_station(std::size_t station, uint32_t generation) { + const RadioStation preset = station_snapshot(station); + if (!preset.url[0]) { + ESP_LOGE(kTag, "Station %u has no stream URL", static_cast(station)); + return false; + } + radio_ui_set_playback(RadioPlaybackState::Connecting, "正在连接电å�°"); + + esp_http_client_config_t config = {}; + config.url = preset.url; + config.timeout_ms = 2500; + config.buffer_size = 2048; + config.buffer_size_tx = 512; + config.user_agent = "AI-Passport-Radio/1.1.1"; + config.keep_alive_enable = true; + config.disable_auto_redirect = false; + config.max_redirection_count = 4; + config.crt_bundle_attach = esp_crt_bundle_attach; + esp_http_client_handle_t client = esp_http_client_init(&config); + if (!client) { + ESP_LOGE(kTag, "HTTP client allocation failed"); + return false; + } + esp_http_client_set_header(client, "Icy-MetaData", "0"); + esp_http_client_set_header(client, "Accept", "audio/mpeg,*/*"); + + bool played_audio = false; + const int64_t first_audio_deadline=esp_timer_get_time()+15000000; + esp_audio_simple_dec_handle_t decoder = nullptr; + uint8_t *input = nullptr; + uint8_t *output = nullptr; + + do { + if (!radio_http_open(client, 4)) { + ESP_LOGW(kTag, "Open failed: %s", preset.url); + break; + } + + const int status = esp_http_client_get_status_code(client); + if (status < 200 || status >= 300) { + ESP_LOGW(kTag, "HTTP status %d", status); + break; + } + + if(!request_still_current(generation,station))break; + esp_http_client_set_timeout_ms(client,100); + decoder = open_mp3_decoder(); + if (!decoder) break; + input = static_cast(malloc(kInputSize)); + output = static_cast(malloc(kOutputSize)); + if (!input || !output) { + ESP_LOGE(kTag, "Not enough memory for stream buffers"); + break; + } + + radio_ui_set_playback(RadioPlaybackState::Buffering, "正在缓冲"); + ESP_LOGI(kTag,"Decoder buffers ready; free=%lu largest=%u",(unsigned long)esp_get_free_heap_size(),(unsigned)heap_caps_get_largest_free_block(MALLOC_CAP_8BIT)); + bool format_ready = false; + bool decode_failed = false; + int applied_volume=-1; + uint8_t source_channels = 1; + int empty_reads = 0; + int64_t last_data=esp_timer_get_time(),last_levels=0; + while (!decode_failed && request_still_current(generation, station)) { + if(!played_audio&&esp_timer_get_time()>first_audio_deadline)break; + if(now_seconds()!=s_last_status){ + s_last_status=now_seconds();badge_network_status_t net;badge_network_status(&net); + radio_player_set_network(net.connected);radio_ui_set_network(net.connected); + refresh_battery(); + if(s_dirty.load())flush_settings(); + } + const int received = esp_http_client_read(client, + reinterpret_cast(input), + kInputSize); + if(received==-ESP_ERR_HTTP_EAGAIN){if(esp_timer_get_time()-last_data>8000000)break;continue;} + if (received < 0) { + ESP_LOGW(kTag, "Stream read error"); + break; + } + if (received == 0) { + if (++empty_reads > 3) break; + vTaskDelay(pdMS_TO_TICKS(20)); + continue; + } + empty_reads = 0;last_data=esp_timer_get_time(); + + esp_audio_simple_dec_raw_t raw = { + .buffer = input, + .len = static_cast(received), + .eos = false, + .consumed = 0, + .frame_recover = ESP_AUDIO_SIMPLE_DEC_RECOVERY_NONE, + }; + while (raw.len > 0 && request_still_current(generation, station)) { + esp_audio_simple_dec_out_t frame = { + .buffer = output, + .len = kOutputSize, + .needed_size = 0, + .decoded_size = 0, + }; + const uint32_t before = raw.len; + const esp_audio_err_t result = + esp_audio_simple_dec_process(decoder, &raw, &frame); + if (result == ESP_AUDIO_ERR_BUFF_NOT_ENOUGH) { + ESP_LOGE(kTag, "Decoder needs %u bytes, buffer has %u", + static_cast(frame.needed_size), + static_cast(kOutputSize)); + raw.len = 0; + decode_failed = true; + break; + } + if (result != ESP_AUDIO_ERR_OK) { + ESP_LOGW(kTag, "MP3 decode failed: %d", result); + raw.len = 0; + decode_failed = true; + break; + } + if (raw.consumed > raw.len) raw.consumed = raw.len; + raw.buffer += raw.consumed; + raw.len -= raw.consumed; + + if (frame.decoded_size > 0) { + esp_audio_simple_dec_info_t info = {}; + if (!format_ready && + esp_audio_simple_dec_get_info(decoder, &info) == ESP_AUDIO_ERR_OK) { + source_channels = std::clamp(info.channel, 1, 2); + if (info.channel<1 || info.channel>2 || info.bits_per_sample != 16 || info.sample_rate < 8000 || + info.sample_rate > 48000 || + bsp_audio_set_format(info.sample_rate, 16, 1) != ESP_OK) { + ESP_LOGE(kTag, "Unsupported stream format: %luHz/%ubit/%uch", + static_cast(info.sample_rate), + info.bits_per_sample, source_channels); + raw.len = 0; + decode_failed = true; + break; + } + bsp_audio_set_volume(s_volume.load(std::memory_order_acquire)); + format_ready = true; + ESP_LOGI(kTag, "Playing %s at %luHz/%uch -> mono", preset.name, + static_cast(info.sample_rate), source_channels); + } + if (format_ready && frame.decoded_size<=kOutputSize) { + const int current_volume=s_volume.load(); + if(current_volume!=applied_volume){bsp_audio_set_volume(current_volume);applied_volume=current_volume;} + const std::size_t mono_bytes = + radio_downmix(reinterpret_cast(frame.buffer), frame.decoded_size, source_channels); + if (bsp_audio_write(frame.buffer, mono_bytes) != ESP_OK) {decode_failed=true;radio_ui_set_playback(RadioPlaybackState::Error,"音频输出失败");break;} + if(esp_timer_get_time()-last_levels>=100000){calculate_levels(frame.buffer,mono_bytes,1);last_levels=esp_timer_get_time();} + if (!played_audio) { + played_audio = true; + radio_ui_set_playback(RadioPlaybackState::Playing, "正在播放"); + } + } + } + + if (raw.len == before || raw.consumed == 0) { + // The parser may cache a short incomplete tail. A fresh network + // block is required; keeping this block would spin forever. + break; + } + } + } + } while (false); + + if (decoder) esp_audio_simple_dec_close(decoder); + if(played_audio){static const int16_t silence[512]={};bsp_audio_write(silence,sizeof(silence));} + radio_ui_set_audio_levels(nullptr,0); + free(output); + free(input); + esp_http_client_close(client); + esp_http_client_cleanup(client); + return played_audio; +} + +void player_task(void *) { + badge_power_enter(); + std::size_t last_attempted_station = SIZE_MAX; + uint8_t failed_attempts = 0; + uint32_t catalog_seen=0; + while (!s_stopping.load()) { + badge_power_audio_tick(false); + badge_network_status_t net;badge_network_status(&net);radio_player_set_network(net.connected); + radio_ui_set_network(net.connected);if(!badge_power_screen_off())refresh_battery(); + if(s_dirty.load())flush_settings(); + if(s_deadline.load() && radio_timer_expired(s_deadline.load(),now_seconds())){s_deadline.store(0);s_wanted_playing.store(false);} + const uint32_t requested=s_catalog_request.load(); + if(net.connected && catalog_seen!=requested){ + catalog_seen=requested;radio_ui_set_playback(RadioPlaybackState::Connecting,"正在查找城市电å�°"); + const unsigned city=s_city.load();RadioStation stations[kMaxStations]={};RadioLocation location={}; + radio_catalog_reset_cancel(); + if(s_stopping.load())break; + const size_t count=city?radio_catalog_discover_city(RADIO_CITIES[city],stations,kMaxStations,&location):radio_catalog_discover(stations,kMaxStations,&location); + if(s_stopping.load())break; + if(requested!=s_catalog_request.load())continue; + if(count){radio_player_replace_stations_resuming(stations,count);radio_ui_set_location("本地 / 精选电å�°");} + else {radio_player_replace_stations_resuming(nullptr,0);radio_ui_set_location("精选电å�°");radio_ui_set_playback(RadioPlaybackState::Connecting,"使用精选电å�°");} + } + if (!s_network_connected.load(std::memory_order_acquire)) { + radio_ui_set_playback(RadioPlaybackState::Stopped, "等待网络"); + vTaskDelay(pdMS_TO_TICKS(200)); + continue; + } + if (!s_wanted_playing.load(std::memory_order_acquire)) { + radio_ui_set_playback(RadioPlaybackState::Stopped, "已暂å�œ"); + vTaskDelay(pdMS_TO_TICKS(150)); + continue; + } + + const std::size_t station = s_station_index.load(std::memory_order_acquire); + const uint32_t generation = s_generation.load(std::memory_order_acquire); + if (station != last_attempted_station) { + last_attempted_station = station; + failed_attempts = 0; + } + s_stream_active.store(true, std::memory_order_release); + badge_power_audio_tick(true); + const bool played = stream_station(station, generation); + s_stream_active.store(false, std::memory_order_release); + if (!request_still_current(generation, station)) continue; + + if (played) { + // The stream worked at least briefly, so this station is alive and + // simply dropped. Keep it and reconnect. + failed_attempts = 0; + radio_ui_set_playback(RadioPlaybackState::Reconnecting, + "ä¿¡å�·ä¸­æ–­ï¼Œæ­£åœ¨é‡�连"); + for(int i=0;i<12&&!s_stopping.load()&&request_still_current(generation,station);i++)vTaskDelay(pdMS_TO_TICKS(100)); + continue; + } + + ++failed_attempts; + const std::size_t count = radio_player_station_count(); + // Public directories keep dead entries around. After a few silent + // failures, move on instead of retrying the same address forever. + if (failed_attempts >= kMaxFailedAttempts && count > 1) { + ESP_LOGW(kTag, "Station %u unreachable, skipping to the next one", + static_cast(station)); + radio_ui_set_playback(RadioPlaybackState::Error, + "电å�°æ— æ³•播放 å·²æ�¢å�°"); + for(int i=0;i<12&&!s_stopping.load()&&request_still_current(generation,station);i++)vTaskDelay(pdMS_TO_TICKS(100)); + failed_attempts = 0; + radio_player_select_relative(1); + continue; + } + + radio_ui_set_playback(RadioPlaybackState::Error, "连接失败,正在é‡�试"); + for(int i=0;i<25&&!s_stopping.load()&&request_still_current(generation,station);i++)vTaskDelay(pdMS_TO_TICKS(100)); + } + flush_settings();s_stream_active.store(false); + badge_power_leave(); + ESP_LOGI(kTag,"Stopped; free heap=%lu stack remaining=%u",(unsigned long)esp_get_free_heap_size(),(unsigned)uxTaskGetStackHighWaterMark(nullptr)); + xSemaphoreGive(s_done);vTaskDelete(nullptr); +} + +void flush_settings() { + if(!s_dirty.exchange(false))return; + save_setting("volume",s_volume.load());save_setting("city",s_city.load()); + save_setting("station",static_cast(s_station_index.load())); + if(s_station_dirty.exchange(false)){const RadioStation chosen=station_snapshot(s_station_index.load());save_station_name(chosen.name);} +} +} // namespace + +bool radio_player_init(int preset) { + if(s_player_task)return true; + s_station_mutex=xSemaphoreCreateMutex();s_done=xSemaphoreCreateBinary(); + if(!s_station_mutex||!s_done)goto fail; + s_directory.replace(nullptr,0); + s_station_count.store(s_directory.count()); + s_station_index.store(load_setting("station",0)%s_station_count.load()); + s_volume.store(std::min(load_setting("volume",40),100)); + s_city.store(load_setting("city",0)%8);s_stopping.store(false);s_wanted_playing.store(true); + s_network_connected.store(false);s_deadline.store(0);s_catalog_request.store(1);s_dirty.store(false);s_station_dirty.store(false); + if(preset>=0&&static_cast(preset)now?d-now:0;} + +void radio_player_set_network(bool connected) { + if(s_network_connected.exchange(connected)!=connected)s_generation.fetch_add(1); +} + +void radio_player_toggle() { + radio_player_set_playing(!radio_player_is_playing()); +} + +void radio_player_set_playing(bool playing) { + s_wanted_playing.store(playing, std::memory_order_release); + s_generation.fetch_add(1, std::memory_order_acq_rel); + if (!playing) radio_ui_set_playback(RadioPlaybackState::Stopped, "已暂å�œ"); +} + +bool radio_player_is_playing() { + return s_wanted_playing.load(std::memory_order_acquire); +} + +bool radio_player_wait_idle(uint32_t timeout_ms) { + const TickType_t deadline = xTaskGetTickCount() + pdMS_TO_TICKS(timeout_ms); + while (s_stream_active.load(std::memory_order_acquire)) { + if (static_cast(deadline - xTaskGetTickCount()) <= 0) return false; + vTaskDelay(pdMS_TO_TICKS(20)); + } + return true; +} + +void radio_player_select_relative(int delta) { + const int count = static_cast(radio_player_station_count()); + const int current = static_cast(s_station_index.load()); + const std::size_t next = static_cast((current + delta + count) % count); + radio_player_set_station(next); +} + +void radio_player_set_station(std::size_t index) { + index %= radio_player_station_count(); + s_station_index.store(index, std::memory_order_release); + s_generation.fetch_add(1, std::memory_order_acq_rel); + s_dirty.store(true); + s_station_dirty.store(true); + radio_ui_set_station(index, radio_player_station_count(), radio_player_station(index)); + if (radio_player_is_playing()) { + radio_ui_set_playback(RadioPlaybackState::Connecting, "正在切æ�¢ç”µå�°"); + } +} + +std::size_t radio_player_station_index() { + return s_station_index.load(std::memory_order_acquire); +} + +std::size_t radio_player_station_count() { + return std::max(s_station_count.load(std::memory_order_acquire), 1); +} + +RadioStation radio_player_station(std::size_t index) { + return station_snapshot(index); +} + +bool radio_player_replace_stations(const RadioStation *stations, std::size_t count) { + std::size_t selected = 0; + if (!install_stations(stations, count, nullptr, &selected)) return false; + + s_dirty.store(true); + const RadioStation chosen = radio_player_station(selected); + s_station_dirty.store(true); + radio_ui_set_station(selected, radio_player_station_count(), chosen); + ESP_LOGI(kTag, "Installed combined catalog with %u stations", + static_cast(radio_player_station_count())); + return true; +} + +bool radio_player_replace_stations_resuming(const RadioStation *stations, + std::size_t count) { + char remembered[sizeof(RadioStation::name)] = {}; + const bool has_remembered = load_station_name(remembered, sizeof(remembered)); + + std::size_t selected = 0; + if (!install_stations(stations, count, has_remembered ? remembered : nullptr, + &selected)) { + return false; + } + + s_dirty.store(true); + const RadioStation chosen = radio_player_station(selected); + s_station_dirty.store(true); + radio_ui_set_station(selected, radio_player_station_count(), chosen); + if (has_remembered && selected > 0) { + ESP_LOGI(kTag, "Resumed remembered station '%s' at index %u", + chosen.name, static_cast(selected)); + } else { + ESP_LOGI(kTag, "Installed combined catalog with %u stations", + static_cast(radio_player_station_count())); + } + return true; +} + +void radio_player_set_volume(uint8_t volume) { + volume = std::min(volume, 100); + s_volume.store(volume, std::memory_order_release); + s_dirty.store(true); + radio_ui_set_volume(volume); +} + +uint8_t radio_player_volume() { + return s_volume.load(std::memory_order_acquire); +} diff --git a/main/radio_player.h b/main/radio_player.h new file mode 100644 index 0000000..b919c60 --- /dev/null +++ b/main/radio_player.h @@ -0,0 +1,48 @@ +#pragma once + +#include +#include + +struct RadioStation { + char name[64]; + char description[96]; + char url[256]; + // Real FM frequency in units of 0.1 MHz (for example 947 means 94.7 MHz). + // Zero means the directory entry carried no usable frequency, and the dial + // falls back to spreading the station across the scale by its position. + uint16_t frequency_decihz; +}; + +enum class RadioPlaybackState { + Stopped, + Connecting, + Buffering, + Playing, + Reconnecting, + Error, +}; + +bool radio_player_init(int preset = -1); +void radio_player_set_network(bool connected); +void radio_player_toggle(); +void radio_player_set_playing(bool playing); +bool radio_player_is_playing(); +bool radio_player_wait_idle(uint32_t timeout_ms); +void radio_player_select_relative(int delta); +void radio_player_set_station(std::size_t index); +std::size_t radio_player_station_index(); +std::size_t radio_player_station_count(); +RadioStation radio_player_station(std::size_t index); +bool radio_player_replace_stations(const RadioStation *stations, std::size_t count); +// Installs a catalog and keeps listening to the station the user last chose +// when the new catalog still offers it, so a restart resumes where it left off. +bool radio_player_replace_stations_resuming(const RadioStation *stations, + std::size_t count); +void radio_player_set_volume(uint8_t volume); +uint8_t radio_player_volume(); + +bool radio_player_shutdown(uint32_t timeout_ms); +void radio_player_set_city(unsigned city); +unsigned radio_player_city(); +void radio_player_set_timer(unsigned minutes); +unsigned radio_player_timer_seconds(); diff --git a/main/radio_presets.cc b/main/radio_presets.cc new file mode 100644 index 0000000..f3312c6 --- /dev/null +++ b/main/radio_presets.cc @@ -0,0 +1,63 @@ +/* Public stream directory; sources and checks: assets/radio/STATIONS.txt. */ +#include "radio_directory.h" +const RadioStation RADIO_PRESETS[] = { + {"中国之声", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/15318317/64k.mp3", 0}, + {"怀集音ä¹�之声", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/4804/64k.mp3", 0}, + {"两广之声", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/20500149/64k.mp3", 0}, + {"羊城交通", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/1262/64k.mp3", 0}, + {"第一财ç»�", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/276/64k.mp3", 0}, + {"CRI 怀旧金曲频é�“", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/5022038/64k.mp3", 0}, + {"亚洲ç»�å…¸å�°", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/5021912/64k.mp3", 0}, + {"清晨音ä¹�å�°", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/4915/64k.mp3", 0}, + {"北京好音ä¹�广播", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/5021381/64k.mp3", 0}, + {"上海东广新闻å�°", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/275/64k.mp3", 0}, + {"上海ç»�å…¸947音ä¹�广播", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/267/64k.mp3", 0}, + {"上海动感101音ä¹�广播", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/274/64k.mp3", 0}, + {"石家庄音ä¹�广播", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/1654/64k.mp3", 0}, + {"哈尔滨音ä¹�广播", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/839/64k.mp3", 0}, + {"è‹�州音ä¹�广播", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/2803/64k.mp3", 0}, + {"æ�­å·žåЍå�¬968音ä¹�调频", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/4866/64k.mp3", 0}, + {"武汉音ä¹�广播", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/1297/64k.mp3", 0}, + {"亚洲音ä¹�å�°", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/4581/64k.mp3", 0}, + {"上海新闻广播", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/270/64k.mp3", 0}, + {"è¾½å®�ç»�å…¸æµ�行音ä¹�广播", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/20021/64k.mp3", 0}, + {"张掖新闻综å�ˆå¹¿æ’­", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/5022096/64k.mp3", 0}, + {"沧州长书文艺广播", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/5021902/64k.mp3", 0}, + {"温州之声", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/1155/64k.mp3", 0}, + {"新昌天姥之声", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/20212423/64k.mp3", 0}, + {"é�’å²›ç»�济广播", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/1674/64k.mp3", 0}, + {"玉溪交通旅游广播", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/20211563/64k.mp3", 0}, + {"é�’岛音ä¹�•体育广播", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/1677/64k.mp3", 0}, + {"邵阳ç»�济广播", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/20500058/64k.mp3", 0}, + {"MYFM全国音ä¹�频é�“·广州", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/20194/64k.mp3", 0}, + {"å�°å·žéŸ³ä¹�广播", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/1144/64k.mp3", 0}, + {"太原è€�年之声", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/20211701/64k.mp3", 0}, + {"阳泉交通广播", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/15318165/64k.mp3", 0}, + {"上海交通广播", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/266/64k.mp3", 0}, + {"è‹�州交通ç»�济广播", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/2806/64k.mp3", 0}, + {"å¨�海交通广播", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/20671/64k.mp3", 0}, + {"å�ˆè‚¥æ•…事广播", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/1961/64k.mp3", 0}, + {"å�ˆè‚¥æ–°é—»å¹¿æ’­", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/20212380/64k.mp3", 0}, + {"å�ˆè‚¥äº¤é€šå¹¿æ’­", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/1960/64k.mp3", 0}, + {"å�ˆè‚¥æ±½è½¦éŸ³ä¹�", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/1975/64k.mp3", 0}, + {"普兰店区新闻综å�ˆå¹¿æ’­", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/20212414/64k.mp3", 0}, + {"海峡之声新闻广播", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/1744/64k.mp3", 0}, + {"泉州刺æ¡�之声", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/5022360/64k.mp3", 0}, + {"泉州新闻综å�ˆå¹¿æ’­", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/15318346/64k.mp3", 0}, + {"龙岩新闻综å�ˆå¹¿æ’­", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/20709/64k.mp3", 0}, + {"ç¦�州交通之声", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/5026/64k.mp3", 0}, + {"漳州交通广播", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/1743/64k.mp3", 0}, + {"厦门ç»�济交通广播", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/1738/64k.mp3", 0}, + {"ç¦�州左海之声", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/3937/64k.mp3", 0}, + {"甘肃交通广播", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/3939/64k.mp3", 0}, + {"甘肃新闻综å�ˆå¹¿æ’­", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/5022622/64k.mp3", 0}, + {"动å�¬éŸ³ä¹�网络电å�°", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/5022107/64k.mp3", 0}, + {"ç� æµ·äº¤é€š875·环ä¿�ç»�济广播", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/1275/64k.mp3", 0}, + {"深圳新闻广播", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/1270/64k.mp3", 0}, + {"江门电å�°æ—…游之声", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/1283/64k.mp3", 0}, + {"梅州电å�°æ–°é—»å¹¿æ’­", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/1257/64k.mp3", 0}, + {"惠州音ä¹�广播", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/5021523/64k.mp3", 0}, + {"深圳交通广播", "精选频é�“ · 网络直播", "http://lhttp.qingting.fm/live/1272/64k.mp3", 0}, +}; +const std::size_t RADIO_PRESET_COUNT = sizeof(RADIO_PRESETS) / sizeof(RADIO_PRESETS[0]); +static_assert(sizeof(RADIO_PRESETS) / sizeof(RADIO_PRESETS[0]) <= RadioDirectory::kPresetCapacity, "Increase preset index capacity"); diff --git a/main/radio_presets.h b/main/radio_presets.h new file mode 100644 index 0000000..728e18c --- /dev/null +++ b/main/radio_presets.h @@ -0,0 +1,5 @@ +#pragma once +#include "radio_player.h" +// Immutable curated stations stay in flash; only local results occupy RAM. +extern const RadioStation RADIO_PRESETS[]; +extern const std::size_t RADIO_PRESET_COUNT; diff --git a/main/radio_status.cc b/main/radio_status.cc new file mode 100644 index 0000000..d87d25a --- /dev/null +++ b/main/radio_status.cc @@ -0,0 +1,16 @@ +#include "radio_ui.h" +#include "freertos/FreeRTOS.h" +#include +#include +#include +static portMUX_TYPE state_mux=portMUX_INITIALIZER_UNLOCKED; +static radio_ui_snapshot_t state; +void radio_ui_reset_state(){portENTER_CRITICAL(&state_mux);state=radio_ui_snapshot_t{};portEXIT_CRITICAL(&state_mux);} +radio_ui_snapshot_t radio_ui_snapshot(){portENTER_CRITICAL(&state_mux);auto copy=state;portEXIT_CRITICAL(&state_mux);return copy;} +void radio_ui_set_station(std::size_t index,std::size_t count,const RadioStation &station){portENTER_CRITICAL(&state_mux);state.index=index;state.count=count;state.station=station;portEXIT_CRITICAL(&state_mux);} +void radio_ui_set_playback(RadioPlaybackState value,const char *detail){portENTER_CRITICAL(&state_mux);state.state=value;if(detail)snprintf(state.detail,sizeof(state.detail),"%s",detail);portEXIT_CRITICAL(&state_mux);} +void radio_ui_set_audio_levels(const uint8_t *levels,std::size_t count){portENTER_CRITICAL(&state_mux);memset(state.levels,0,sizeof(state.levels));if(levels)memcpy(state.levels,levels,std::min(count,sizeof(state.levels)));portEXIT_CRITICAL(&state_mux);} +void radio_ui_set_volume(uint8_t volume){portENTER_CRITICAL(&state_mux);state.volume=volume;portEXIT_CRITICAL(&state_mux);} +void radio_ui_set_location(const char *name){portENTER_CRITICAL(&state_mux);snprintf(state.location,sizeof(state.location),"%s",name?name:"");portEXIT_CRITICAL(&state_mux);} +void radio_ui_set_network(bool connected){portENTER_CRITICAL(&state_mux);state.network=connected;portEXIT_CRITICAL(&state_mux);} +void radio_ui_set_battery(int battery){portENTER_CRITICAL(&state_mux);state.battery=battery;portEXIT_CRITICAL(&state_mux);} diff --git a/main/radio_tool_catalog.cc b/main/radio_tool_catalog.cc new file mode 100644 index 0000000..2795c9a --- /dev/null +++ b/main/radio_tool_catalog.cc @@ -0,0 +1,4 @@ +#include "radio_tool_catalog.h" +#include "radio_presets.h" +extern "C" unsigned radio_tool_count(void){return RADIO_PRESET_COUNT;} +extern "C" const char *radio_tool_name(unsigned id){return id +#include +#include +#include +static void label_text(lv_obj_t *o,const char *value){if(strcmp(lv_label_get_text(o),value))lv_label_set_text(o,value);} +static void label_text_fmt(lv_obj_t *o,const char *format,...){char value[128];va_list args;va_start(args,format);vsnprintf(value,sizeof(value),format,args);va_end(args);label_text(o,value);} +static void background(lv_obj_t *o,lv_color_t color,lv_style_selector_t selector){if(!lv_color_eq(lv_obj_get_style_bg_color(o,LV_PART_MAIN),color))lv_obj_set_style_bg_color(o,color,selector);} +static void border_color(lv_obj_t *o,lv_color_t color,lv_style_selector_t selector){if(!lv_color_eq(lv_obj_get_style_border_color(o,LV_PART_MAIN),color))lv_obj_set_style_border_color(o,color,selector);} +static void border_width(lv_obj_t *o,int value,lv_style_selector_t selector){if(lv_obj_get_style_border_width(o,LV_PART_MAIN)!=value)lv_obj_set_style_border_width(o,value,selector);} +static lv_obj_t *screen,*title,*city,*counter,*panel,*station,*frequency,*mode,*needle,*status,*hint; +static bool draw_main=false;static uint8_t audio_levels[18]; +static lv_obj_t *tick_labels[6],*rows[6],*row_names[6],*volume_text; +static radio_page_t previous_page=RADIO_TIMER; +static uint16_t previous_frequency=0;static unsigned previous_count=0; +static unsigned previous_index=~0u;static uint32_t previous_theme; +static char previous_station[64]; +static bool rendered; +static radio_controls_t last_controls; +static radio_ui_snapshot_t last_state; +static unsigned last_left; +static bool same_metadata(const radio_controls_t &c,const radio_ui_snapshot_t &s,unsigned left){ + return rendered&&previous_theme==badge_theme_revision()&&last_left==left&& + c.page==last_controls.page&&c.selected==last_controls.selected&&c.volume==last_controls.volume&& + c.city==last_controls.city&&c.timer==last_controls.timer&&s.index==last_state.index&&s.count==last_state.count&& + s.volume==last_state.volume&&s.state==last_state.state&&s.station.frequency_decihz==last_state.station.frequency_decihz&& + !strcmp(s.station.name,last_state.station.name)&&!strcmp(s.location,last_state.location)&&!strcmp(s.detail,last_state.detail); +} +static lv_obj_t *box(lv_obj_t *parent,int x,int y,int w,int h){auto *o=lv_obj_create(parent);lv_obj_remove_style_all(o);lv_obj_set_pos(o,x,y);lv_obj_set_size(o,w,h);lv_obj_set_style_bg_opa(o,LV_OPA_COVER,0);lv_obj_remove_flag(o,LV_OBJ_FLAG_SCROLLABLE);return o;} +static lv_obj_t *label(lv_obj_t *parent,const char *text,int x,int y,int w,const lv_font_t *font){auto *o=lv_label_create(parent);lv_obj_set_pos(o,x,y);lv_obj_set_width(o,w);lv_obj_set_style_text_font(o,font,0);lv_obj_set_style_text_letter_space(o,0,0);lv_label_set_long_mode(o,LV_LABEL_LONG_CLIP);label_text(o,text);return o;} +static void visible(lv_obj_t *o,bool yes){if(yes)lv_obj_remove_flag(o,LV_OBJ_FLAG_HIDDEN);else lv_obj_add_flag(o,LV_OBJ_FLAG_HIDDEN);} +static void ink(lv_obj_t *o,unsigned color){lv_color_t value=lv_color_hex(badge_theme_colors()[color]);if(!lv_color_eq(lv_obj_get_style_text_color(o,LV_PART_MAIN),value))lv_obj_set_style_text_color(o,value,0);} +static void needle_x(void *o,int32_t value){lv_obj_set_x(static_cast(o),value);} +static void artwork(lv_event_t *event){ + if(!draw_main)return; + auto *layer=lv_event_get_layer(event);const auto *c=badge_theme_colors(); + for(unsigned i=0;i<41;i++){lv_draw_line_dsc_t d;lv_draw_line_dsc_init(&d);d.p1={static_cast(16+i*5),177};d.p2={d.p1.x,static_cast(177+(i%8==0?16:i%4==0?11:6))};d.width=1;d.color=lv_color_hex(c[BADGE_MUTED]);d.opa=LV_OPA_COVER;lv_draw_line(layer,&d);} + for(unsigned i=0;i<18;i++){int h=std::max(1,std::min(audio_levels[i],100)*26/100);lv_draw_rect_dsc_t d;lv_draw_rect_dsc_init(&d);d.bg_color=lv_color_hex(c[BADGE_ACCENT]);d.bg_opa=LV_OPA_COVER;lv_area_t a={static_cast(18+i*11),248-h,static_cast(23+i*11),247};lv_draw_rect(layer,&d,&a);} +} +void radio_ui_create(){ + screen=box(nullptr,0,0,240,320);draw_main=false;rendered=false; + lv_obj_add_event_cb(screen,artwork,LV_EVENT_DRAW_MAIN,nullptr);badge_header_attach(screen); + title=label(screen,"CITY RADIO",14,34,214,&font_badge_28);city=label(screen,"城市网络电å�°",14,65,154,&font_radio_14);counter=label(screen,"",169,68,57,&font_badge_10);lv_obj_set_style_text_align(counter,LV_TEXT_ALIGN_RIGHT,0); + panel=box(screen,14,92,212,68);station=label(panel,"等待电å�°ç›®å½•",12,10,188,&font_radio_14);lv_label_set_long_mode(station,LV_LABEL_LONG_SCROLL_CIRCULAR); + frequency=label(panel,"NET",12,31,120,&font_badge_28);mode=label(panel,"LIVE STREAM",140,47,66,&font_badge_10); + for(unsigned i=0;i<6;i++){char text[8];snprintf(text,sizeof(text),"%u",88+i*4);tick_labels[i]=label(screen,text,10+i*40,201,30,&font_badge_10);} + needle=box(screen,115,169,2,27); + for(unsigned i=0;i<6;i++){rows[i]=box(screen,14,96+i*25,212,24);row_names[i]=label(rows[i],"",10,3,192,&font_radio_14);} + volume_text=label(screen,"40%",30,145,180,&font_badge_28);lv_obj_set_style_text_align(volume_text,LV_TEXT_ALIGN_CENTER,0); + status=label(screen,"",14,259,212,&font_radio_14);hint=badge_footer_create(screen,""); + previous_index=~0u;previous_station[0]=0;previous_theme=0;previous_page=RADIO_TIMER;lv_screen_load(screen); +} +void radio_ui_render(const radio_controls_t &c,const radio_ui_snapshot_t &s,unsigned left){ + if(!screen)return; + badge_header_battery(s.battery); + const auto *colors=badge_theme_colors();const bool main=c.page==RADIO_MAIN; + bool levels_changed=false; + for(unsigned i=0;i<18;i++){uint8_t level=s.state==RadioPlaybackState::Playing?s.levels[i]:0;if(audio_levels[i]!=level){audio_levels[i]=level;levels_changed=true;}} + if(main&&levels_changed){lv_area_t area={14,220,225,249};lv_obj_invalidate_area(screen,&area);} + if(same_metadata(c,s,left))return; + last_controls=c;last_state=s;last_left=left;rendered=true; + const bool changed=previous_page!=c.page;previous_page=c.page; + background(screen,lv_color_hex(colors[BADGE_BACKGROUND]),0);background(panel,lv_color_hex(colors[BADGE_PANEL]),0); + ink(title,BADGE_ACCENT);ink(city,BADGE_TEXT);ink(counter,BADGE_MUTED);ink(station,BADGE_TEXT);ink(frequency,BADGE_ACCENT);ink(mode,BADGE_MUTED);ink(status,BADGE_ACCENT);ink(hint,BADGE_MUTED);ink(volume_text,BADGE_TEXT); + const char *head=c.page==RADIO_SETTINGS?"电å�°è®¾ç½®":c.page==RADIO_VOLUME?"音é‡�":c.page==RADIO_CITY?"选择城市":c.page==RADIO_TIMER?"定时å�œæ­¢":s.location; + label_text(city,head);if(main&&s.count)label_text_fmt(counter,"%u / %u",s.index+1,s.count);else label_text(counter,""); + visible(panel,main);visible(needle,main);visible(volume_text,c.page==RADIO_VOLUME); + for(unsigned i=0;i<6;i++){visible(tick_labels[i],main);ink(tick_labels[i],BADGE_MUTED);} + draw_main=main;if(changed){lv_area_t area={10,169,225,249};lv_obj_invalidate_area(screen,&area);} + background(needle,lv_color_hex(colors[BADGE_ACCENT]),0); + if(main){ + const char *name=s.station.name[0]?s.station.name:"等待电å�°ç›®å½•"; + if(strcmp(previous_station,name)||previous_index!=s.index){label_text(station,name);snprintf(previous_station,sizeof(previous_station),"%s",name);} + if(s.station.frequency_decihz)label_text_fmt(frequency,"%u.%u",s.station.frequency_decihz/10,s.station.frequency_decihz%10);else label_text(frequency,"NET"); + if(changed||previous_index!=s.index||previous_theme!=badge_theme_revision()||previous_frequency!=s.station.frequency_decihz||previous_count!=s.count){ + int x=16+radio_dial_position(s.station.frequency_decihz,s.index,s.count)*200/1000; + lv_anim_delete(needle,needle_x);lv_anim_t a;lv_anim_init(&a);lv_anim_set_var(&a,needle);lv_anim_set_exec_cb(&a,needle_x);lv_anim_set_values(&a,lv_obj_get_x(needle),x);lv_anim_set_duration(&a,260);lv_anim_set_path_cb(&a,lv_anim_path_ease_out);lv_anim_start(&a); + } + previous_index=s.index;previous_frequency=s.station.frequency_decihz;previous_count=s.count; + } + previous_theme=badge_theme_revision(); + static const char *settings[]={"音é‡�","城市电å�°","定时å�œæ­¢"}; + unsigned count=c.page==RADIO_SETTINGS?3:c.page==RADIO_CITY?8:c.page==RADIO_TIMER?5:0; + unsigned first=c.selected<6?0:c.selected-5; + for(unsigned i=0;i<6;i++){ + unsigned item=first+i;visible(rows[i],item=count)continue; + bool chosen=item==c.selected;background(rows[i],lv_color_hex(colors[chosen?BADGE_PANEL:BADGE_BACKGROUND]),0);border_width(rows[i],chosen?1:0,0);border_color(rows[i],lv_color_hex(colors[BADGE_ACCENT]),0);ink(row_names[i],chosen?BADGE_TEXT:BADGE_MUTED); + char text[80]={}; + if(c.page==RADIO_SETTINGS)snprintf(text,sizeof(text),"%s",settings[item]); + if(c.page==RADIO_CITY)snprintf(text,sizeof(text),"%s",RADIO_CITIES[item]); + if(c.page==RADIO_TIMER){if(item)snprintf(text,sizeof(text),"%u 分钟",RADIO_TIMER_MINUTES[item]);else snprintf(text,sizeof(text),"关闭定时");} + label_text(row_names[i],text); + } + label_text_fmt(volume_text,"%d%%",c.volume); + if(left)label_text_fmt(status,"音é‡� %d%% %02u:%02u",s.volume,left/60,left%60); + else if(s.state==RadioPlaybackState::Playing)label_text_fmt(status,"播放中 音é‡� %d%%",s.volume); + else label_text(status,s.detail); + label_text(hint,main?BADGE_HINT_RADIO:c.page==RADIO_VOLUME?BADGE_HINT_VOLUME:BADGE_HINT_SELECT); +} +void radio_ui_destroy(){if(screen){lv_anim_delete(needle,needle_x);lv_obj_delete(screen);screen=nullptr;}} diff --git a/main/radio_ui.h b/main/radio_ui.h new file mode 100644 index 0000000..b617fc9 --- /dev/null +++ b/main/radio_ui.h @@ -0,0 +1,23 @@ +#pragma once +#include "radio_player.h" +#include "radio_controls.h" +struct radio_ui_snapshot_t { + RadioStation station{};unsigned index=0,count=0;int volume=40,battery=-1; + RadioPlaybackState state=RadioPlaybackState::Stopped; + bool network=false;char location[48]="通用电å�°",detail[80]="等待网络"; + uint8_t levels[18]{}; +}; +/* Setters only copy state. They never touch LVGL or hold its lock. */ +void radio_ui_reset_state(); +radio_ui_snapshot_t radio_ui_snapshot(); +void radio_ui_set_station(std::size_t index,std::size_t count,const RadioStation &station); +void radio_ui_set_playback(RadioPlaybackState state,const char *detail=nullptr); +void radio_ui_set_audio_levels(const uint8_t *levels,std::size_t count); +void radio_ui_set_volume(uint8_t volume); +void radio_ui_set_location(const char *name); +void radio_ui_set_network(bool connected); +void radio_ui_set_battery(int battery); +/* Lifecycle/refresh below require the LVGL lock. */ +void radio_ui_create(); +void radio_ui_destroy(); +void radio_ui_render(const radio_controls_t &control,const radio_ui_snapshot_t &state,unsigned seconds_left); diff --git a/main/shengbei_app.c b/main/shengbei_app.c new file mode 100644 index 0000000..db17dca --- /dev/null +++ b/main/shengbei_app.c @@ -0,0 +1,128 @@ +#include "shengbei_app.h" +#include "badge_theme.h" +#include "badge_header.h" +#include "badge_footer.h" +#include "bsp_display.h" +#include "esp_random.h" +#include "lvgl.h" +#include + +LV_FONT_DECLARE(font_muyu_14); +LV_FONT_DECLARE(font_badge_28); + +typedef enum { CUP_NONE, CUP_SHENG, CUP_XIAO, CUP_YIN } cup_result_t; +static lv_obj_t *screen,*title,*subtitle,*left_cup,*right_cup,*left_note,*right_note,*result,*advice,*rule,*count_label,*footer,*result_tag; +static lv_obj_t *labels[14]; +static unsigned roles[14],label_count,cast_count; +static bool left_up,right_up; +static cup_result_t current; +static uint32_t theme_seen; + +static lv_obj_t *label(const char *text,int x,int y,int w,const lv_font_t *font,unsigned role){ + lv_obj_t *o=lv_label_create(screen);lv_obj_set_pos(o,x,y);lv_obj_set_size(o,w,30); + lv_obj_set_style_text_font(o,font,0);lv_obj_set_style_text_color(o,lv_color_hex(badge_theme_colors()[role]),0); + lv_label_set_long_mode(o,LV_LABEL_LONG_WRAP);lv_label_set_text(o,text); + if(label_count<14){labels[label_count]=o;roles[label_count++]=role;} + return o; +} +static void track(lv_obj_t *o,unsigned role){ + if(label_count<14){labels[label_count]=o;roles[label_count++]=role;} +} +static void rect(lv_layer_t *l,int x,int y,int w,int h,int radius,uint32_t fill,uint32_t border,int bw){ + lv_draw_rect_dsc_t d;lv_draw_rect_dsc_init(&d);d.bg_color=lv_color_hex(fill);d.bg_opa=LV_OPA_COVER;d.border_color=lv_color_hex(border);d.border_width=bw;d.radius=radius; + lv_area_t a={x,y,x+w-1,y+h-1};lv_draw_rect(l,&d,&a); +} +static void cup_face(lv_layer_t *l,int x,int y,bool known,bool up){ + const uint32_t *c=badge_theme_colors(); + if(!known){ + rect(l,x,y,76,74,14,c[BADGE_BACKGROUND],c[BADGE_MUTED],2); + rect(l,x+21,y+25,34,24,12,c[BADGE_PANEL],c[BADGE_MUTED],1); + return; + } + if(up){ + /* æ­£é�¢ï¼šäº®è‰²å®žå¿ƒé�¢ã€‚ */ + rect(l,x,y,76,74,14,c[BADGE_ACCENT],c[BADGE_TEXT],1); + }else{ + /* å��é�¢ï¼šæ·±è‰²ç©ºå¿ƒæ�¯å�£ã€‚ */ + rect(l,x,y,76,74,14,c[BADGE_BACKGROUND],c[BADGE_ACCENT],3); + rect(l,x+16,y+18,44,32,14,c[BADGE_PANEL],c[BADGE_MUTED],1); + } +} +static void cup_art(lv_event_t *event){ + lv_layer_t *l=lv_event_get_layer(event);const uint32_t *c=badge_theme_colors(); + rect(l,14,62,212,204,8,c[BADGE_BACKGROUND],c[BADGE_PANEL],1); + cup_face(l,31,104,current!=CUP_NONE,left_up); + cup_face(l,133,104,current!=CUP_NONE,right_up); +} +static void apply_theme(void){ + uint32_t r=badge_theme_revision();if(theme_seen==r)return;const uint32_t *c=badge_theme_colors(); + lv_obj_set_style_bg_color(screen,lv_color_hex(c[BADGE_BACKGROUND]),0); + for(unsigned i=0;i +#include +/* A completed/cancelled request must not clear a newer queued request. */ +typedef struct { atomic_bool ready; atomic_uint pending; } voice_activity_t; +static inline void voice_activity_init(voice_activity_t *s){atomic_store(&s->ready,false);atomic_store(&s->pending,0);} +static inline bool voice_activity_busy(voice_activity_t *s){return !atomic_load(&s->ready)||atomic_load(&s->pending)!=0;} +static inline void voice_activity_submit(voice_activity_t *s,unsigned ticket){atomic_store(&s->pending,ticket);} +static inline void voice_activity_complete(voice_activity_t *s,unsigned ticket){atomic_compare_exchange_strong(&s->pending,&ticket,0);} diff --git a/main/voice_app.c b/main/voice_app.c new file mode 100644 index 0000000..1f60dc6 --- /dev/null +++ b/main/voice_app.c @@ -0,0 +1,202 @@ +#include "voice_app.h" +#include "voice_ui.h" +#include "voice_stream.h" +#include "voice_activity.h" +#include "bsp_audio.h" +#include "badge_power.h" +#include "bsp_battery.h" +#include "bsp_display.h" +#include "esp_partition.h" +#include "esp_log.h" +#include "esp_system.h" +#include "esp_rom_crc.h" +#include "freertos/FreeRTOS.h" +#include "freertos/queue.h" +#include "freertos/task.h" +#include "freertos/semphr.h" +#include "lvgl.h" +#include "nvs.h" +#include "decoder/impl/esp_opus_dec.h" +#include +#include +#include + +static voice_navigation_t navigation; /* LVGL lock owns navigation and timer. */ +static lv_timer_t *timer; +static QueueHandle_t queue; +static SemaphoreHandle_t done; +static bool started; +static atomic_bool stopping,volume_loaded; +static atomic_uint generation; +static atomic_int volume,playing,battery,error_code; +static voice_activity_t activity; +typedef struct {unsigned clip,generation;} request_t; +static const esp_partition_t *parts[2]; +static const int16_t silence[1600]; +static const char *errors[]={NULL,"正在å�¯åЍ","音效资æº�异常","音频å�¯åŠ¨å¤±è´¥","音效播放失败","音é‡�ä¿�存失败"}; +static void refresh(lv_timer_t *t) { + (void)t;navigation.volume=atomic_load(&volume); + voice_ui_render(&navigation,atomic_load(&playing),atomic_load(&battery),errors[atomic_load(&error_code)]); +} +static bool read_data(void *ctx,uint32_t offset,void *out,size_t size) { + (void)ctx;uint8_t *p=out; + while(size){unsigned partition;uint32_t local;size_t count; + if(!voice_stream_span(offset,size,&partition,&local,&count)||!parts[partition]||esp_partition_read(parts[partition],local,p,count)!=ESP_OK)return false; + offset+=count;p+=count;size-=count;} + return true; +} +static uint32_t u32(const uint8_t *p){return (uint32_t)p[0]|((uint32_t)p[1]<<8)|((uint32_t)p[2]<<16)|((uint32_t)p[3]<<24);} +static bool resources(void) { + parts[0]=esp_partition_find_first(ESP_PARTITION_TYPE_DATA,0x42,"voice_data"); + parts[1]=esp_partition_find_first(ESP_PARTITION_TYPE_DATA,0x43,"voice_tail"); + uint8_t h[28]; + return parts[0]&&parts[1]&&parts[0]->size==VOICE_FIRST_BYTES&&parts[1]->size==VOICE_TAIL_BYTES&&read_data(NULL,0,h,sizeof(h))&& + !memcmp(h,"VKP1",4)&&u32(h+4)==1&&u32(h+8)==VOICE_CLIP_COUNT&&u32(h+12)==VOICE_PAYLOAD_BYTES&&u32(h+16)==VOICE_CATALOG_CRC&& + esp_rom_crc32_le(0,h,24)==u32(h+24); +} + +#ifdef BADGE_XIAOZHI_DEVICE_PROBE +/* Exercise every retained clip with the same codec and frame limits as playback. */ +bool voice_probe_decode_all(bool (*cancelled)(void)){ + if(!resources())return false; + uint8_t *packet=malloc(1500),*pcm=malloc(1920);void *decoder=NULL;bool ok=packet&&pcm; + esp_opus_dec_cfg_t cfg=ESP_OPUS_DEC_CONFIG_DEFAULT();cfg.sample_rate=16000;cfg.channel=1;cfg.frame_duration=ESP_OPUS_DEC_FRAME_DURATION_60_MS; + if(ok)ok=esp_opus_dec_open(&cfg,sizeof(cfg),&decoder)==ESP_AUDIO_ERR_OK&&decoder; + unsigned frames=0; + for(unsigned i=0;ok&&ioffset,clip->length,&cursor,packet);if(!n)break;if(n<0){ok=false;break;} + esp_audio_dec_in_raw_t raw={.buffer=packet,.len=n};esp_audio_dec_out_frame_t output={.buffer=pcm,.len=1920};esp_audio_dec_info_t info={0}; + if(esp_opus_dec_decode(decoder,&raw,&output,&info)!=ESP_AUDIO_ERR_OK||raw.consumed!=(unsigned)n||!output.decoded_size||output.decoded_size>1920){ok=false;ESP_LOGE("xz_probe","Voice codec failed clip=%u frame=%u",i,frames);break;}frames++;if(frames%50==0)vTaskDelay(pdMS_TO_TICKS(1)); + } + if(i%20==0)vTaskDelay(pdMS_TO_TICKS(1)); + } + if(decoder){esp_opus_dec_close(decoder);}free(packet);free(pcm); + ESP_LOGI("xz_probe","VOICE_ALL clips=%u frames=%u success=%d",VOICE_CLIP_COUNT,frames,ok);return ok; +} +#endif +static void cancel(void){atomic_fetch_add(&generation,1);} +static esp_err_t enqueue(unsigned clip){ + unsigned ticket=atomic_fetch_add(&generation,1)+1; + if(!ticket)ticket=atomic_fetch_add(&generation,1)+1; + request_t r={clip,ticket};voice_activity_submit(&activity,ticket); + if(xQueueOverwrite(queue,&r)==pdTRUE)return ESP_OK; + voice_activity_complete(&activity,ticket);return ESP_FAIL; +} +bool demo_voice_audio_busy(void){return started&&voice_activity_busy(&activity);} +static void worker(void *arg) { + (void)arg;void *decoder=NULL;nvs_handle_t storage=0;bool storage_open=false,storage_valid=false; + badge_power_enter(); + uint8_t *packet=malloc(1500); + int16_t *pcm=malloc(960*sizeof(*pcm)); + uint8_t saved=40; + if(nvs_open("voice_key_v1",NVS_READWRITE,&storage)==ESP_OK){storage_open=true;esp_err_t e=nvs_get_u8(storage,"volume",&saved);storage_valid=(e==ESP_OK||e==ESP_ERR_NVS_NOT_FOUND)&&saved<=100;} + if(!storage_valid)saved=40; + if(!atomic_exchange(&volume_loaded,true))atomic_store(&volume,saved); + bool ready=resources(); + if(!ready)atomic_store(&error_code,2); + else if(!packet||!pcm||bsp_audio_init()!=ESP_OK||bsp_audio_set_format(16000,16,1)!=ESP_OK) {ready=false;atomic_store(&error_code,3);} + else {esp_opus_dec_cfg_t cfg=ESP_OPUS_DEC_CONFIG_DEFAULT();cfg.sample_rate=16000;cfg.channel=1;cfg.frame_duration=ESP_OPUS_DEC_FRAME_DURATION_60_MS;ready=esp_opus_dec_open(&cfg,sizeof(cfg),&decoder)==ESP_AUDIO_ERR_OK&&decoder;atomic_store(&error_code,ready?0:3);} + bool battery_ready=bsp_battery_init()==ESP_OK; + atomic_store(&battery,battery_ready?bsp_battery_soc():-1); + ESP_LOGI("voice","Ready: resources/audio=%d clips=%u heap=%lu",ready,VOICE_CLIP_COUNT,(unsigned long)esp_get_free_heap_size()); + TickType_t last_save=xTaskGetTickCount(),last_battery=last_save; + atomic_store(&activity.ready,true); + while(!atomic_load(&stopping)) { + badge_power_audio_tick(false); + request_t r; + if(xQueueReceive(queue,&r,pdMS_TO_TICKS(badge_power_screen_off()?1000:50))==pdTRUE) { + if(ready&&!atomic_load(&stopping)&&r.generation==atomic_load(&generation)) { + badge_power_audio_tick(true); + const voice_clip_t *clip=&voice_clips[r.clip];uint32_t cursor=0;bool failed=false;int applied_volume=-1; +#ifdef BADGE_TOOL_CLOUD_PROBE + unsigned probe_frames=0; +#endif + esp_opus_dec_reset(decoder);atomic_store(&playing,(int)r.clip);atomic_store(&error_code,0); + while(!atomic_load(&stopping)&&r.generation==atomic_load(&generation)) { + int bytes=voice_stream_next(read_data,NULL,clip->offset,clip->length,&cursor,packet); + if(bytes==0)break; + if(bytes<0){failed=true;break;} + esp_audio_dec_in_raw_t raw={.buffer=packet,.len=(uint32_t)bytes}; + esp_audio_dec_out_frame_t output={.buffer=(uint8_t *)pcm,.len=1920};esp_audio_dec_info_t info={0}; + esp_audio_err_t decoded=esp_opus_dec_decode(decoder,&raw,&output,&info); + int requested_volume=atomic_load(&volume); + if(requested_volume!=applied_volume){bsp_audio_set_volume(requested_volume);applied_volume=requested_volume;} + if(decoded!=ESP_AUDIO_ERR_OK||raw.consumed!=(uint32_t)bytes||!output.decoded_size||output.decoded_size>1920||bsp_audio_write(pcm,output.decoded_size)!=ESP_OK){failed=true;break;} +#ifdef BADGE_TOOL_CLOUD_PROBE + if(!probe_frames++)ESP_LOGI("tool_cloud","VOICE_PCM clip=%u",r.clip); +#endif + } + if(bsp_audio_write(silence,sizeof(silence))!=ESP_OK)failed=true; + atomic_store(&playing,-1);if(failed)atomic_store(&error_code,4); + } + voice_activity_complete(&activity,r.generation); + } + TickType_t now=xTaskGetTickCount();int current=atomic_load(&volume); + if(current!=saved&&now-last_save>=pdMS_TO_TICKS(3000)) { + if(storage_valid&&nvs_set_u8(storage,"volume",current)==ESP_OK&&nvs_commit(storage)==ESP_OK)saved=current; + else atomic_store(&error_code,5); + last_save=now; + } + if(!badge_power_screen_off()&&now-last_battery>=pdMS_TO_TICKS(30000)){ + if(!battery_ready)battery_ready=bsp_battery_init()==ESP_OK; + int next_battery=battery_ready?bsp_battery_soc():-1; + if(next_battery>=0)atomic_store(&battery,next_battery); + last_battery=now; + } + } + int current=atomic_load(&volume); + if(storage_valid&¤t!=saved&&(nvs_set_u8(storage,"volume",current)!=ESP_OK||nvs_commit(storage)!=ESP_OK))ESP_LOGW("voice","Volume save failed; NVS preserved"); + if(storage_open)nvs_close(storage); + if(decoder)esp_opus_dec_close(decoder); + free(packet);free(pcm); + atomic_store(&playing,-1); + badge_power_leave(); + ESP_LOGI("voice","Stopped; stack remaining=%u",(unsigned)uxTaskGetStackHighWaterMark(NULL)); + xSemaphoreGive(done);vTaskDelete(NULL); +} +void demo_voice_enter(void) { + atomic_store(&volume_loaded,false);voice_navigation_init(&navigation);atomic_store(&volume,40);atomic_store(&playing,-1);atomic_store(&battery,-1);atomic_store(&error_code,1); + voice_ui_create();refresh(NULL);timer=lv_timer_create(refresh,100,NULL); +} +void demo_voice_exit(void){if(timer){lv_timer_delete(timer);timer=NULL;}voice_ui_destroy();} +esp_err_t demo_voice_start(void) { + if(started)return ESP_ERR_INVALID_STATE; + voice_activity_init(&activity); + atomic_store(&stopping,false);cancel();queue=xQueueCreate(1,sizeof(request_t));done=xSemaphoreCreateBinary(); + if(!queue||!done||xTaskCreate(worker,"voice_player",16384,NULL,4,NULL)!=pdPASS){atomic_store(&error_code,3);demo_voice_stop();return ESP_ERR_NO_MEM;} + started=true;return ESP_OK; +} +esp_err_t demo_voice_stop(void) { + atomic_store(&stopping,true);cancel(); + if(started){if(xSemaphoreTake(done,pdMS_TO_TICKS(3000))!=pdTRUE)return ESP_ERR_TIMEOUT;started=false;} + if(queue){vQueueDelete(queue);queue=NULL;}if(done){vSemaphoreDelete(done);done=NULL;}return ESP_OK; +} +bool demo_voice_back(void) { + if(!bsp_lvgl_lock(100))return true; + bool consumed=voice_navigation_back(&navigation);cancel();refresh(NULL);bsp_lvgl_unlock();return consumed; +} +esp_err_t demo_voice_play(unsigned clip) { + if(!started||!queue||atomic_load(&stopping)||clip>=VOICE_CLIP_COUNT)return ESP_ERR_INVALID_STATE; + if(!bsp_lvgl_lock(1000))return ESP_ERR_TIMEOUT; + bool valid=voice_navigation_select(&navigation,clip);refresh(NULL);bsp_lvgl_unlock(); + if(!valid)return ESP_ERR_INVALID_ARG; + return enqueue(clip); +} +#ifdef BADGE_CONTROL_DEVICE_PROBE +bool demo_voice_control_probe(unsigned clip){ + if(!bsp_lvgl_lock(1000))return false; + bool ok=navigation.view==VOICE_CLIPS&&voice_packs[navigation.pack].first+navigation.clip==clip&&atomic_load(&error_code)==0&&atomic_load(&playing)==-1; + bsp_lvgl_unlock();return ok; +} +#endif +void demo_voice_key(bsp_btn_t button,bsp_btn_ev_t event) { + if(!queue||atomic_load(&stopping)||event==BSP_BTN_PRESS||event==BSP_BTN_RELEASE)return; + if(!bsp_lvgl_lock(100))return; + if(event==BSP_BTN_LONG){if(button==BSP_BTN_UP)voice_navigation_volume(&navigation);if(button==BSP_BTN_DOWN)cancel();} + else if(event==BSP_BTN_CLICK||event==BSP_BTN_DOUBLE) { + if(button==BSP_BTN_UP||button==BSP_BTN_DOWN){int direction=button==BSP_BTN_UP?-1:1;voice_navigation_move(&navigation,navigation.view==VOICE_VOLUME?-direction:direction);atomic_store(&volume,navigation.volume);} + else if(button==BSP_BTN_OK){int clip=voice_navigation_ok(&navigation);if(clip>=0)enqueue((unsigned)clip);} + } + refresh(NULL);bsp_lvgl_unlock(); +} diff --git a/main/voice_app.h b/main/voice_app.h new file mode 100644 index 0000000..d8833c1 --- /dev/null +++ b/main/voice_app.h @@ -0,0 +1,15 @@ +#pragma once +#include +#include "demo.h" +void demo_voice_enter(void); +void demo_voice_exit(void); +void demo_voice_key(bsp_btn_t button,bsp_btn_ev_t event); +esp_err_t demo_voice_start(void); +esp_err_t demo_voice_stop(void); +esp_err_t demo_voice_play(unsigned clip); +/* Navigation owner only. Includes startup and queued audio, not just playback. */ +bool demo_voice_audio_busy(void); +#ifdef BADGE_CONTROL_DEVICE_PROBE +bool demo_voice_control_probe(unsigned clip); +#endif +bool demo_voice_back(void); diff --git a/main/voice_navigation.c b/main/voice_navigation.c new file mode 100644 index 0000000..6b2d43e --- /dev/null +++ b/main/voice_navigation.c @@ -0,0 +1,30 @@ +#include "voice_navigation.h" +void voice_navigation_init(voice_navigation_t *n) {*n=(voice_navigation_t){.volume=40};} +bool voice_navigation_select(voice_navigation_t *n,unsigned clip) { + if(clip>=VOICE_CLIP_COUNT)return false; + for(unsigned p=0;p=voice_packs[p].first&&clippack=p;n->clip=clip-voice_packs[p].first;n->view=VOICE_CLIPS;return true; + } + return false; +} +unsigned voice_navigation_first(unsigned selected) {return selected<6?0:selected-5;} +void voice_navigation_move(voice_navigation_t *n,int direction) { + if(n->view==VOICE_VOLUME) {n->volume+=direction*5;if(n->volume<0)n->volume=0;if(n->volume>100)n->volume=100;return;} + unsigned *selected=n->view==VOICE_PACKS?&n->pack:&n->clip; + unsigned count=n->view==VOICE_PACKS?VOICE_PACK_COUNT:voice_packs[n->pack].count; + if(direction<0) {*selected=*selected?*selected-1:count-1;} + else {*selected=(*selected+1)%count;} +} +int voice_navigation_ok(voice_navigation_t *n) { + if(n->view==VOICE_VOLUME){n->view=n->previous;return -1;} + if(n->view==VOICE_PACKS){n->view=VOICE_CLIPS;n->clip=0;return -1;} + return (int)(voice_packs[n->pack].first+n->clip); +} +bool voice_navigation_back(voice_navigation_t *n) { + if(n->view==VOICE_VOLUME){n->view=n->previous;return true;} + if(n->view==VOICE_CLIPS){n->view=VOICE_PACKS;return true;} + return false; +} +void voice_navigation_volume(voice_navigation_t *n) { + if(n->view!=VOICE_VOLUME){n->previous=n->view;n->view=VOICE_VOLUME;} +} diff --git a/main/voice_navigation.h b/main/voice_navigation.h new file mode 100644 index 0000000..8dcc093 --- /dev/null +++ b/main/voice_navigation.h @@ -0,0 +1,13 @@ +#pragma once +#include +#include "voice_catalog.h" +typedef enum {VOICE_PACKS, VOICE_CLIPS, VOICE_VOLUME} voice_view_t; +typedef struct {voice_view_t view, previous; unsigned pack, clip; int volume;} voice_navigation_t; +void voice_navigation_init(voice_navigation_t *n); +bool voice_navigation_select(voice_navigation_t *n,unsigned clip); +void voice_navigation_move(voice_navigation_t *n, int direction); +/* Returns a clip index to play, or -1 for navigation only. */ +int voice_navigation_ok(voice_navigation_t *n); +bool voice_navigation_back(voice_navigation_t *n); +void voice_navigation_volume(voice_navigation_t *n); +unsigned voice_navigation_first(unsigned selected); diff --git a/main/voice_stream.c b/main/voice_stream.c new file mode 100644 index 0000000..9005a88 --- /dev/null +++ b/main/voice_stream.c @@ -0,0 +1,19 @@ +#include "voice_stream.h" +#define FIRST VOICE_FIRST_BYTES +#define TOTAL VOICE_TOTAL_BYTES +bool voice_stream_span(uint32_t offset,size_t size,unsigned *partition,uint32_t *local,size_t *count) { + if(offset>=TOTAL||!size||size>TOTAL-offset)return false; + *partition=offset>=FIRST;*local=*partition?offset-FIRST:offset; + size_t available=*partition?TOTAL-offset:FIRST-offset; + *count=sizeTOTAL||length>TOTAL-start||*cursor>length)return -1; + if(*cursor==length)return 0; + uint8_t head[2]; + if(length-*cursor<2||!read(ctx,start+*cursor,head,2))return -1; + unsigned size=(unsigned)head[0]|((unsigned)head[1]<<8); + if(!size||size>1500||size>length-*cursor-2)return -1; + if(!read(ctx,start+*cursor+2,packet,size))return -1; + *cursor+=size+2;return (int)size; +} diff --git a/main/voice_stream.h b/main/voice_stream.h new file mode 100644 index 0000000..0fbffc1 --- /dev/null +++ b/main/voice_stream.h @@ -0,0 +1,10 @@ +#pragma once +#include +#include +#include +#include "voice_catalog.h" +typedef bool (*voice_read_fn)(void *context, uint32_t offset, void *data, size_t size); +/* 1: packet, 0: EOF, -1: malformed/read error. Cursor changes only on success. */ +int voice_stream_next(voice_read_fn read, void *context, uint32_t start, + uint32_t length, uint32_t *cursor, uint8_t packet[1500]); +bool voice_stream_span(uint32_t offset,size_t size,unsigned *partition,uint32_t *local,size_t *count); diff --git a/main/voice_ui.c b/main/voice_ui.c new file mode 100644 index 0000000..6e3a8bf --- /dev/null +++ b/main/voice_ui.c @@ -0,0 +1,79 @@ +#include "voice_ui.h" +#include "badge_theme.h" +#include "badge_header.h" +#include "badge_footer.h" +#include "lvgl.h" +#include +LV_FONT_DECLARE(font_voice_14); +LV_FONT_DECLARE(font_badge_10); +LV_FONT_DECLARE(font_badge_28); +static lv_obj_t *screen,*title,*subtitle,*counter,*rows[6],*names[6],*numbers[6],*status,*hint,*footer; +static lv_obj_t *volume_text,*volume_bar; +static unsigned seen_pack,seen_clip; +static int seen_view,seen_playing,seen_volume,seen_battery; +static uint32_t seen_theme; +static const char *seen_error; +static lv_obj_t *label(lv_obj_t *parent,const char *text,int x,int y,int width,const lv_font_t *font) { + lv_obj_t *o=lv_label_create(parent);lv_obj_set_pos(o,x,y);lv_obj_set_width(o,width); + lv_obj_set_style_text_font(o,font,0);lv_obj_set_style_text_letter_space(o,0,0); + lv_label_set_long_mode(o,LV_LABEL_LONG_CLIP);lv_label_set_text(o,text);return o; +} +static void color(lv_obj_t *o,unsigned role){lv_obj_set_style_text_color(o,lv_color_hex(badge_theme_colors()[role]),0);} +void voice_ui_create(void) { + screen=lv_obj_create(NULL);lv_obj_remove_style_all(screen);lv_obj_set_size(screen,240,320); + lv_obj_set_style_bg_opa(screen,LV_OPA_COVER,0);lv_obj_remove_flag(screen,LV_OBJ_FLAG_SCROLLABLE); + badge_header_attach(screen); + title=label(screen,"VOICE",14,34,180,&font_badge_28); + counter=label(screen,"",154,66,72,&font_badge_10);lv_obj_set_style_text_align(counter,LV_TEXT_ALIGN_RIGHT,0); + subtitle=label(screen,"",14,65,136,&font_voice_14); + for(unsigned i=0;i<6;i++) { + rows[i]=lv_obj_create(screen);lv_obj_remove_style_all(rows[i]);lv_obj_set_pos(rows[i],14,91+i*25);lv_obj_set_size(rows[i],212,24); + lv_obj_remove_flag(rows[i],LV_OBJ_FLAG_SCROLLABLE);lv_obj_set_style_bg_opa(rows[i],LV_OPA_COVER,0); + numbers[i]=label(rows[i],"",5,5,22,&font_badge_10); + names[i]=label(rows[i],"",31,2,174,&font_voice_14); + lv_obj_set_height(names[i],18); + } + volume_text=label(screen,"",30,119,180,&font_badge_28);lv_obj_set_style_text_align(volume_text,LV_TEXT_ALIGN_CENTER,0); + volume_bar=lv_bar_create(screen);lv_obj_set_pos(volume_bar,30,179);lv_obj_set_size(volume_bar,180,8);lv_bar_set_range(volume_bar,0,100); + footer=lv_obj_create(screen);lv_obj_remove_style_all(footer);lv_obj_set_pos(footer,0,250);lv_obj_set_size(footer,240,70);lv_obj_set_style_bg_opa(footer,LV_OPA_COVER,0); + status=label(screen,"",14,255,212,&font_voice_14); + hint=badge_footer_create(screen,""); + seen_view=-1;seen_playing=-2;seen_volume=-1;seen_battery=-2;seen_theme=0;seen_error=(void *)1; + lv_screen_load(screen); +} +void voice_ui_render(const voice_navigation_t *n,int playing,int battery,const char *error) { + if(!screen)return; + badge_header_battery(battery); + if(seen_view==(int)n->view&&seen_pack==n->pack&&seen_clip==n->clip&&seen_playing==playing&&seen_volume==n->volume&&seen_battery==battery&&seen_error==error&&seen_theme==badge_theme_revision())return; + const uint32_t *c=badge_theme_colors();bool changed=seen_view!=(int)n->view||seen_pack!=n->pack||seen_clip!=n->clip; + lv_obj_set_style_bg_color(screen,lv_color_hex(c[BADGE_BACKGROUND]),0);lv_obj_set_style_bg_color(footer,lv_color_hex(c[BADGE_PANEL]),0); + color(title,BADGE_ACCENT);color(subtitle,BADGE_TEXT);color(counter,BADGE_MUTED);color(status,BADGE_ACCENT);color(hint,BADGE_MUTED);color(volume_text,BADGE_TEXT); + bool volume=n->view==VOICE_VOLUME; + lv_label_set_text(subtitle,volume?"音é‡�设置":n->view==VOICE_PACKS?"音效钥匙扣":voice_packs[n->pack].name); + if(changed)lv_label_set_long_mode(subtitle,n->view==VOICE_CLIPS?LV_LABEL_LONG_SCROLL_CIRCULAR:LV_LABEL_LONG_CLIP); + unsigned selected=n->view==VOICE_PACKS?n->pack:n->clip; + unsigned total=n->view==VOICE_PACKS?VOICE_PACK_COUNT:voice_packs[n->pack].count; + lv_label_set_text_fmt(counter,volume?"16K MONO":"%u / %u",selected+1,total); + unsigned first=voice_navigation_first(selected); + for(unsigned i=0;i<6;i++) { + unsigned item=first+i; + if(volume||item>=total){lv_obj_add_flag(rows[i],LV_OBJ_FLAG_HIDDEN);continue;} + lv_obj_remove_flag(rows[i],LV_OBJ_FLAG_HIDDEN);bool chosen=item==selected; + lv_obj_set_style_bg_color(rows[i],lv_color_hex(c[chosen?BADGE_PANEL:BADGE_BACKGROUND]),0); + lv_obj_set_style_border_width(rows[i],chosen?1:0,0);lv_obj_set_style_border_color(rows[i],lv_color_hex(c[BADGE_ACCENT]),0); + color(names[i],chosen?BADGE_TEXT:BADGE_MUTED);color(numbers[i],chosen?BADGE_ACCENT:BADGE_MUTED); + if(changed){lv_label_set_long_mode(names[i],chosen?LV_LABEL_LONG_SCROLL_CIRCULAR:LV_LABEL_LONG_DOT); + lv_label_set_text(names[i],n->view==VOICE_PACKS?voice_packs[item].name:voice_clips[voice_packs[n->pack].first+item].name);} + bool active=n->view==VOICE_CLIPS&&playing==(int)(voice_packs[n->pack].first+item); + if(active)lv_label_set_text(numbers[i],">");else lv_label_set_text_fmt(numbers[i],"%u",item+1); + } + if(volume){lv_obj_remove_flag(volume_text,LV_OBJ_FLAG_HIDDEN);lv_obj_remove_flag(volume_bar,LV_OBJ_FLAG_HIDDEN);lv_label_set_text_fmt(volume_text,"%d%%",n->volume);lv_bar_set_value(volume_bar,n->volume,LV_ANIM_OFF);} + else {lv_obj_add_flag(volume_text,LV_OBJ_FLAG_HIDDEN);lv_obj_add_flag(volume_bar,LV_OBJ_FLAG_HIDDEN);} + lv_obj_set_style_bg_color(volume_bar,lv_color_hex(c[BADGE_PANEL]),LV_PART_MAIN);lv_obj_set_style_bg_color(volume_bar,lv_color_hex(c[BADGE_ACCENT]),LV_PART_INDICATOR); + if(error)lv_label_set_text(status,error); + else if(playing>=0)lv_label_set_text_fmt(status,"播放中 音é‡� %d%%",n->volume); + else lv_label_set_text_fmt(status,"%s 音é‡� %d%%",n->view==VOICE_PACKS?VOICE_CLIP_LABEL:"等待播放",n->volume); + lv_label_set_text(hint,volume?BADGE_HINT_VOLUME:n->view==VOICE_PACKS?BADGE_HINT_VOICE_PACKS:BADGE_HINT_VOICE_CLIPS); + seen_view=n->view;seen_pack=n->pack;seen_clip=n->clip;seen_playing=playing;seen_volume=n->volume;seen_battery=battery;seen_error=error;seen_theme=badge_theme_revision(); +} +void voice_ui_destroy(void) {if(screen){lv_obj_delete(screen);screen=NULL;}} diff --git a/main/voice_ui.h b/main/voice_ui.h new file mode 100644 index 0000000..fb69d0c --- /dev/null +++ b/main/voice_ui.h @@ -0,0 +1,6 @@ +#pragma once +#include "voice_navigation.h" +void voice_ui_create(void); +void voice_ui_destroy(void); +/* All UI calls require the LVGL lock. -1 playing means idle, error is visible. */ +void voice_ui_render(const voice_navigation_t *navigation,int playing,int battery,const char *error); diff --git a/main/xiaozhi_app.cc b/main/xiaozhi_app.cc new file mode 100644 index 0000000..eac5573 --- /dev/null +++ b/main/xiaozhi_app.cc @@ -0,0 +1,1134 @@ +/* XiaoZhi protocol adapter, based on FoloToy/folo-ai-passport-xiaozhi (MIT). + * See assets/xiaozhi/NOTICE and LICENSE. The badge owns Wi-Fi, UI and lifecycle. + * All network, codec and NVS work belongs to this one worker. MQTT's callback + * only assembles bounded messages; it never touches audio, UI or credentials. + */ +#include "xiaozhi_app.h" +#include "xiaozhi_ui.h" +#include "xiaozhi_wire.h" +#include "xiaozhi_buffer.h" +#include "xiaozhi_volume.h" +#include "xiaozhi_caption.h" +#include "xiaozhi_text.h" +#include "xiaozhi_dispatch.h" +#include "xiaozhi_tools.h" +#include "assets/yao_request.h" +#include "badge_control.h" +#include "../components/opus/libopus/include/opus.h" +#include "badge_power.h" +extern "C" { +#include "badge_network.h" +#include "yao_time.h" +#include "bsp_audio.h" +#include "bsp_display.h" +#include "badge_profile.h" +#include "lvgl.h" +} +#include "esp_http_client.h" +#include "esp_crt_bundle.h" +#include "esp_transport_ssl.h" +#include "esp_transport_tcp.h" +#include "esp_transport_ws.h" +#include "esp_mac.h" +#include "esp_random.h" +#include "esp_log.h" +#include "esp_timer.h" +#include "esp_heap_caps.h" +#include "mqtt_client.h" +#include "nvs.h" +#include "mbedtls/aes.h" +#include "decoder/impl/esp_opus_dec.h" +#include "encoder/impl/esp_opus_enc.h" +#include "freertos/FreeRTOS.h" +#include "freertos/task.h" +#include "freertos/semphr.h" +#include "freertos/queue.h" +#include "lwip/sockets.h" +#include "lwip/netdb.h" +#include +#include +#include +#include +#include +#include +#ifdef BADGE_XIAOZHI_STABILITY_PROBE +#include "xiaozhi_probe_pcm.h" +static std::atomic stability_replies{0}; +static std::atomic stability_codec_allocations{0}; +extern "C" unsigned demo_xiaozhi_stability_replies(void){return stability_replies.load();} +extern "C" unsigned demo_xiaozhi_stability_allocations(void){return stability_codec_allocations.load();} +#endif +#ifdef BADGE_XIAOZHI_CONVERSATION_PROBE +#include "xiaozhi_probe_pcm.h" +static std::atomic conversation_probe_done{false}; +extern "C" bool demo_xiaozhi_conversation_probe_done(void){return conversation_probe_done.load();} +#endif +#ifdef BADGE_XIAOZHI_DEVICE_PROBE +extern "C" bool voice_probe_decode_all(bool (*cancelled)(void)); +static std::atomic probe_ready{false}; +#ifdef BADGE_XIAOZHI_PLAYBACK_PROBE +static std::atomic playback_probe_done{false}; +extern "C" bool demo_xiaozhi_playback_probe_done(void){return playback_probe_done.load();} +#endif +#ifdef BADGE_XIAOZHI_POWER_PROBE +static std::atomic probe_mic_request{false},probe_mic_done{false}; +extern "C" void demo_xiaozhi_probe_microphone(void){probe_mic_done=false;probe_mic_request=true;} +extern "C" bool demo_xiaozhi_probe_microphone_done(void){return probe_mic_done.load();} +#endif +extern "C" bool demo_xiaozhi_probe_ready(void){return probe_ready.load();} +#endif + +namespace { +constexpr const char *TAG="xiaozhi"; +constexpr const char *OTA="https://api.tenclass.net/xiaozhi/ota/"; +constexpr unsigned MAX_MESSAGE=2048; +std::atomic stopping{false},background_idle{false}; +std::atomic clicks{0},wanted_volume{40}; +SemaphoreHandle_t done; +yao_record_t *launch_reading=nullptr; +#ifdef BADGE_XIAOZHI_CONNECT_PROBE +std::atomic connect_probe_state{0},connect_probe_fault{0},connect_probe_frames{0},connect_probe_catalog{0}; +#endif +#ifdef BADGE_YAO_DEVICE_PROBE +std::atomic yao_probe_samples{0},yao_probe_tts_stop{0}; +#endif +TaskHandle_t voice_worker=nullptr; +std::atomic started{false}; +const char *str(const cJSON *o,const char *key){const auto *v=cJSON_GetObjectItemCaseSensitive(o,key);return cJSON_IsString(v)?v->valuestring:"";} +int num(const cJSON *o,const char *key,int fallback){const auto *v=cJSON_GetObjectItemCaseSensitive(o,key);return cJSON_IsNumber(v)?v->valueint:fallback;} +struct Json {cJSON *p=nullptr; explicit Json(cJSON *v):p(v){} ~Json(){cJSON_Delete(p);} Json(const Json&)=delete;}; +struct JsonText {char *p=nullptr;~JsonText(){cJSON_free(p);}JsonText()=default;JsonText(const JsonText&)=delete;}; +std::string json_text(cJSON *p){char *s=cJSON_PrintUnformatted(p);std::string result=s?s:"";cJSON_free(s);return result;} +bool clean_header(const std::string &s){return s.size()<768&&s.find('\r')==std::string::npos&&s.find('\n')==std::string::npos;} +bool valid_backend_url(const char *url){ + if(!url)return false; + size_t n=strlen(url); + if(!n)return true; + if(n>255)return false; + if(strncmp(url,"https://",8)&&strncmp(url,"http://",7))return false; + for(const unsigned char *p=(const unsigned char *)url;*p;p++)if(*p<=32||*p==127)return false; + return true; +} +std::string backend_url(){ + char url[256]={0}; + nvs_handle_t n;size_t len=sizeof(url); + if(nvs_open("xiaozhi",NVS_READONLY,&n)==ESP_OK){ + esp_err_t e=nvs_get_str(n,"backend_url",url,&len);nvs_close(n); + if(e==ESP_OK&&valid_backend_url(url)&&url[0])return url; + } + return OTA; +} +struct Message {unsigned size;char text[MAX_MESSAGE+1];}; +// Foreground worker owns this RAM-only cache. Navigation may expire it only +// after joining that worker. Credentials never enter NVS or badge profiles. +struct ServiceConfig { + std::string url,token,endpoint,client,user,password,topic; + unsigned version=1;int64_t saved=0; +}; +ServiceConfig service_config; +#ifdef BADGE_XIAOZHI_REUSE_PROBE +std::atomic probe_discovery{0},probe_connections{0},probe_handshakes{0}; +#endif + +#ifdef BADGE_TOOL_CLOUD_PROBE +#include "cloud_probe_pcm.h" +static std::atomic cloud_sequence{0},cloud_completed{0}; +#endif +class Session { +public: + xz_snapshot_t view{}; + xz_face_selector_t face_selector{}; + std::string mac,uuid,url,token,endpoint,client,user,password,topic,session; + yao_record_t *reading=nullptr; + bool reading_pending=false; + bool context_turn=false,tools_advertised=false,context_upload=false; + size_t context_offset=0;int64_t context_next=0; + unsigned version=1; + esp_transport_handle_t parent=nullptr,ws=nullptr; + esp_mqtt_client_handle_t mqtt=nullptr; + QueueHandle_t messages=nullptr; + Message *assembly=nullptr,*incoming=nullptr; + std::atomic connected{false},failed{false},closing{false}; + std::atomic fault{XZ_FAULT_NONE}; + std::atomic diagnostic_state{XZ_IDLE}; + unsigned retries=0;int64_t retry_at=0; +#ifdef BADGE_XIAOZHI_STABILITY_PROBE + unsigned stability_turn=0;size_t stability_offset=0; + int64_t stability_frame=0;bool stability_injected=false,stability_silence=false; +#endif + unsigned assembled=0,total=0; + int udp=-1; + uint8_t nonce[16]{},key[16]{}; + uint32_t tx=0,rx=0; + OpusEncoder *encoder=nullptr; + OpusDecoder *decoder=nullptr; + void *codec_arena=nullptr; + size_t codec_arena_bytes=0; + size_t codec_queue_offset=0; + xz_audio_buffer_t *audio_queue=nullptr; + unsigned received_packets=0,played_packets=0,late_writes=0,udp_missing=0,applied_volume=101; + int64_t last_write_end=0,max_write_gap=0; + int16_t *pcm=nullptr; + uint8_t *packet=nullptr; + int input_bytes=0,output_bytes=0; + int64_t listen_since=0,last_incoming=0,last_draw=0,last_audio=0,tts_stop=0; + bool hello=false,accept_audio=false,played=false,conversation=false; +#ifdef BADGE_TOOL_CLOUD_PROBE + unsigned cloud_turn=0,cloud_offset=0;int64_t cloud_sent=0,cloud_frame=0;bool cloud_waiting=false; +#endif + int64_t resume_at=0,ignore_until=0,idle_since=0; + unsigned observed_clicks=0; + xz_volume_t volume_preference{}; + bool volume_loaded=false; + std::atomic parked{false}; + int64_t parked_at=0; + bool power_owned=false; +#ifdef BADGE_XIAOZHI_CONVERSATION_PROBE + unsigned probe_turn=0,probe_stt=0; + size_t probe_offset=0; + int64_t probe_next_frame=0; +#endif + void leave_power(){if(power_owned){(void)badge_power_leave();power_owned=false;}} + ~Session(){close();leave_power();free(codec_arena);free(pcm);free(packet);free(reading);} + void render(bool force=false){if(badge_power_screen_off())return;int64_t now=esp_timer_get_time();int64_t interval=(view.state==XZ_LISTENING||view.state==XZ_SPEAKING)?50000:200000;if(!force&&now-last_draw %u heap=%lu largest=%lu stack=%u",(unsigned)view.state,(unsigned)s,(unsigned long)esp_get_free_heap_size(),(unsigned long)heap_caps_get_largest_free_block(MALLOC_CAP_8BIT),(unsigned)uxTaskGetStackHighWaterMark(nullptr)); + view.state=s;diagnostic_state=s;xz_text_copy(view.detail,sizeof(view.detail),detail);view.level=0;view.level_until_ms=0;if(s==XZ_LISTENING||s==XZ_READY){view.emotion=XZ_FACE_NEUTRAL;view.face_variant=0;xz_face_new_turn(&face_selector);}render(true); +#ifdef BADGE_XIAOZHI_DEVICE_PROBE + ESP_LOGI("xz_probe","STATE=%u detail=%s code=%s free=%lu",(unsigned)s,detail,view.code,(unsigned long)esp_get_free_heap_size()); +#endif + } + bool fail(xz_fault_t reason){ + if(stopping||closing)return false; + xz_fault_t expected=XZ_FAULT_NONE; + if(fault.compare_exchange_strong(expected,reason)){ +#ifdef BADGE_XIAOZHI_CONNECT_PROBE + connect_probe_fault=(unsigned)reason; +#endif + ESP_LOGW(TAG,"Session fault=%u state=%u heap=%lu largest=%lu min=%lu",(unsigned)reason,diagnostic_state.load(), + (unsigned long)esp_get_free_heap_size(),(unsigned long)heap_caps_get_largest_free_block(MALLOC_CAP_8BIT), + (unsigned long)esp_get_minimum_free_heap_size()); + } + failed=true;return false; + } + bool memory_failure(const char *stage,size_t requested=0){ + ESP_LOGE(TAG,"Memory allocation failed stage=%s bytes=%u heap=%lu largest=%lu min=%lu", + stage,(unsigned)requested,(unsigned long)esp_get_free_heap_size(), + (unsigned long)heap_caps_get_largest_free_block(MALLOC_CAP_8BIT), + (unsigned long)esp_get_minimum_free_heap_size()); + return fail(XZ_FAULT_MEMORY); + } + const char *failure_text(){ + switch(fault.load()){ + case XZ_FAULT_MEMORY:return "语音内存ä¸�足,按 OK é‡�试"; + case XZ_FAULT_QUEUE:return "消æ�¯è¿‡äºŽå¯†é›†ï¼ŒæŒ‰ OK é‡�试"; + case XZ_FAULT_TIMEOUT:return "æœ�务å“�应超时,按 OK é‡�试"; + case XZ_FAULT_PROTOCOL:return "æœ�务数æ�®å¼‚常,按 OK é‡�试"; + case XZ_FAULT_AUDIO:return "音频处ç�†å¤±è´¥ï¼ŒæŒ‰ OK é‡�试"; + default:return "语音连接已断开,按 OK é‡�试"; + } + } + void error(const char *detail){conversation=false;state(XZ_ERROR,detail);} + bool schedule_retry(xz_fault_t reason){ + int64_t delay=xz_retry_delay(reason,retries); + if(!delay||stopping)return false; + retry_at=esp_timer_get_time()+delay;++retries; + state(XZ_CONNECTING,"连接中断,正在é‡�新连接"); + ESP_LOGI(TAG,"Reconnect scheduled attempt=%u delay_ms=%lld",retries,(long long)(delay/1000)); + return true; + } + bool establish(){ + badge_network_xiaozhi_power(true,true); + badge_network_status_t net{};badge_network_status(&net); + if(!net.connected){close();fault=XZ_FAULT_NONE;fail(XZ_FAULT_TRANSPORT);error("请先在工牌系统设置中连接 Wi-Fi");return false;} + // Retain MQTT/TLS only; every entry obtains a new conversation/UDP key. + if(mqtt&&connected&&!failed){ + if(connect()){ESP_LOGI(TAG,"Connection reused (fresh audio session)");return true;} + ESP_LOGI(TAG,"Retained connection unavailable; reconnecting"); + } + close();fault=XZ_FAULT_NONE;failed=false; + bool cached=xz_cache_fresh(service_config.saved,esp_timer_get_time(),600000000); + if(configure()&&!stopping&&connect())return true; + // Refresh revoked/expired cached credentials once, without a retry loop. + if(cached&&!stopping&&fault!=XZ_FAULT_MEMORY){ + service_config=ServiceConfig{};close();fault=XZ_FAULT_NONE;failed=false; + if(configure()&&!stopping&&connect())return true; + } + bool activation=view.state==XZ_ACTIVATION; + if(!activation&&!stopping){if(fault==XZ_FAULT_NONE)fail(XZ_FAULT_TRANSPORT);error(failure_text());} + close();return false; + } + void restore_volume(){ + uint8_t stored=255;nvs_handle_t n; + esp_err_t result=nvs_open("xiaozhi",NVS_READONLY,&n); + if(result==ESP_OK){result=nvs_get_u8(n,"volume",&stored);nvs_close(n);} + if(result!=ESP_OK&&result!=ESP_ERR_NVS_NOT_FOUND)ESP_LOGW(TAG,"Volume restore failed: %s",esp_err_to_name(result)); + unsigned value=xz_volume_valid(stored,bsp_audio_get_volume()); + wanted_volume=value;volume_preference.saved=value;volume_preference.value=value;volume_loaded=true; + sync_volume(false,false); + } + void sync_volume(bool safe,bool flush){ + if(!volume_loaded)return; + int64_t now=esp_timer_get_time(); + xz_volume_observe(&volume_preference,wanted_volume.load(),now); + if(applied_volume!=volume_preference.value){bsp_audio_set_volume(volume_preference.value);applied_volume=volume_preference.value;} + if(!xz_volume_due(&volume_preference,now,safe,flush))return; + nvs_handle_t n;esp_err_t result=nvs_open("xiaozhi",NVS_READWRITE,&n); + if(result==ESP_OK){result=nvs_set_u8(n,"volume",volume_preference.value);if(result==ESP_OK)result=nvs_commit(n);nvs_close(n);} + xz_volume_result(&volume_preference,now,result==ESP_OK); + if(result!=ESP_OK)ESP_LOGW(TAG,"Volume save failed: %s",esp_err_to_name(result)); +#ifdef BADGE_XIAOZHI_DEVICE_PROBE + else ESP_LOGI("xz_probe","VOLUME_SAVED=%u",volume_preference.saved); +#endif + } + bool identity(){ + uint8_t m[6];if(esp_read_mac(m,ESP_MAC_WIFI_STA)!=ESP_OK)return false;char text[40];snprintf(text,sizeof(text),"%02x:%02x:%02x:%02x:%02x:%02x",m[0],m[1],m[2],m[3],m[4],m[5]);mac=text; + nvs_handle_t n;if(nvs_open("xiaozhi",NVS_READWRITE,&n)!=ESP_OK)return false; + size_t len=sizeof(text);esp_err_t e=nvs_get_str(n,"uuid",text,&len); + if(e==ESP_ERR_NVS_NOT_FOUND){uint8_t r[16];esp_fill_random(r,sizeof(r));r[6]=(r[6]&15)|64;r[8]=(r[8]&63)|128;snprintf(text,sizeof(text),"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15]);e=nvs_set_str(n,"uuid",text);if(e==ESP_OK)e=nvs_commit(n);} + nvs_close(n);if(e!=ESP_OK||strlen(text)!=36)return false;uuid=text;return true; + } + int http(const char *address,const std::string &body,std::string &response){ + esp_http_client_config_t cfg{};cfg.url=address;cfg.timeout_ms=4500;cfg.crt_bundle_attach=esp_crt_bundle_attach;cfg.buffer_size=512;cfg.buffer_size_tx=512;cfg.disable_auto_redirect=true; + auto h=esp_http_client_init(&cfg);if(!h)return -1; + esp_http_client_set_method(h,HTTP_METHOD_POST); + esp_http_client_set_header(h,"Activation-Version","1");esp_http_client_set_header(h,"Device-Id",mac.c_str());esp_http_client_set_header(h,"Client-Id",uuid.c_str());esp_http_client_set_header(h,"Accept-Language","zh-CN");esp_http_client_set_header(h,"User-Agent","folo-ai-passport-c3/2.4.2 badge/" BADGE_VERSION);esp_http_client_set_header(h,"Content-Type","application/json"); + int status=-1; + if(!stopping&&esp_http_client_open(h,body.size())==ESP_OK&&esp_http_client_write(h,body.data(),body.size())==(int)body.size()&&esp_http_client_fetch_headers(h)>=0){ + status=esp_http_client_get_status_code(h);char chunk[512];int64_t end=esp_timer_get_time()+6000000; + while(!stopping&&response.size()<=8192&&esp_timer_get_time()8192||stopping)status=-1; + } + esp_http_client_cleanup(h);return status; + } + bool configure(){ + if(xz_cache_fresh(service_config.saved,esp_timer_get_time(),600000000)){ + url=service_config.url;token=service_config.token;endpoint=service_config.endpoint; + client=service_config.client;user=service_config.user;password=service_config.password; + topic=service_config.topic;version=service_config.version; + ESP_LOGI(TAG,"Service configuration reused");return true; + } + service_config=ServiceConfig{}; + state(XZ_CONNECTING,"正在获å�–å°�智æœ�务地å�€"); +#ifdef BADGE_XIAOZHI_REUSE_PROBE + ++probe_discovery; +#endif + Json root(cJSON_CreateObject());cJSON_AddNumberToObject(root.p,"version",2);cJSON_AddStringToObject(root.p,"uuid",uuid.c_str());cJSON_AddNumberToObject(root.p,"flash_size",8*1024*1024);cJSON_AddStringToObject(root.p,"mac_address",mac.c_str()); + auto board=cJSON_AddObjectToObject(root.p,"board");cJSON_AddStringToObject(board,"type","folo-ai-passport-c3");cJSON_AddStringToObject(board,"name","folo-ai-passport-c3");cJSON_AddStringToObject(board,"manufacturer","folo");cJSON_AddStringToObject(board,"mac",mac.c_str()); + auto app=cJSON_AddObjectToObject(root.p,"application");cJSON_AddStringToObject(app,"name","folo-ai-passport-xiaozhi");cJSON_AddStringToObject(app,"version","2.4.2"); + std::string response;std::string discovery=backend_url();int status=http(discovery.c_str(),json_text(root.p),response); + if(status!=200){ESP_LOGW(TAG,"Discovery HTTP status=%d",status);error("å°�智æœ�务暂时无法连接\n请检查网络连接");return false;} + Json reply(cJSON_ParseWithLength(response.data(),response.size()));if(!reply.p){error("å°�智æœ�务返回数æ�®å¼‚常");return false;} + auto activation=cJSON_GetObjectItemCaseSensitive(reply.p,"activation"); + if(*str(activation,"code")){ + xz_text_copy(view.code,sizeof(view.code),str(activation,"code")); + state(XZ_ACTIVATION,"打开 xiaozhi.me\n控制å�°æ·»åŠ è®¾å¤‡ï¼Œè¾“å…¥ä¸‹æ–¹ç �"); + // Only the user can bind their account. Retry explicitly after binding. + std::string ignored;http("https://api.tenclass.net/xiaozhi/ota/activate","{}",ignored); + return false; + } + view.code[0]=0;auto websocket=cJSON_GetObjectItemCaseSensitive(reply.p,"websocket");auto broker=cJSON_GetObjectItemCaseSensitive(reply.p,"mqtt"); + // Prefer the official MQTT/UDP transport when provided, as upstream does. + endpoint=str(broker,"endpoint");client=str(broker,"client_id");user=str(broker,"username");password=str(broker,"password");topic=str(broker,"publish_topic"); + url=str(websocket,"url");token=str(websocket,"token");version=num(websocket,"version",1); + if(endpoint.empty()||client.empty()||topic.empty()){ + endpoint.clear();xz_endpoint_t parsed{}; + if(!xz_endpoint(url.c_str(),&parsed)||version<1||version>3||!clean_header(token)){error("å°�智æœ�务地å�€æˆ–å��è®®ä¸�å�—支æŒ�");return false;} + } + service_config={url,token,endpoint,client,user,password,topic,version,esp_timer_get_time()}; + return true; + } + static void mqtt_event(void *arg,esp_event_base_t,int32_t id,void *data){ + auto &s=*static_cast(arg);auto *e=static_cast(data); + if(id==MQTT_EVENT_CONNECTED)s.connected=true; + else if(id==MQTT_EVENT_DISCONNECTED||id==MQTT_EVENT_ERROR){ + s.connected=false; + if(!s.closing&&!stopping){ + if(id==MQTT_EVENT_ERROR&&e->error_handle)ESP_LOGW(TAG,"MQTT error type=%d esp=%d tls=%d socket=%d",(int)e->error_handle->error_type,(int)e->error_handle->esp_tls_last_esp_err,e->error_handle->esp_tls_stack_err,e->error_handle->esp_transport_sock_errno); + s.fail(XZ_FAULT_TRANSPORT); + } + } + else if(id==MQTT_EVENT_DATA){ + // Hidden pages receive no captions, audio or tool calls. MQTT owns + // keepalive. Fragment tails from the hidden interval are discarded. + if(s.parked||stopping){s.assembled=0;s.total=0;return;} + if(e->current_data_offset!=0&&s.total==0)return; + if(e->current_data_offset==0){s.assembled=0;s.total=e->total_data_len;} + if(!s.assembly||e->data_len<0||e->current_data_offset<0||s.total>MAX_MESSAGE||s.total==0||(unsigned)e->current_data_offset!=s.assembled||(unsigned)e->data_len>s.total-s.assembled){s.fail(XZ_FAULT_PROTOCOL);return;} + memcpy(s.assembly->text+s.assembled,e->data,e->data_len);s.assembled+=e->data_len; + if(s.assembled==s.total){ + // Four bounded control messages tolerate a TTS/LLM caption burst + // without reserving four maximum-sized JSON buffers permanently. + s.assembly->text[s.total]=0;char *copy=static_cast(malloc(s.total+1)); + if(!copy){s.memory_failure("mqtt_message",s.total+1);return;}memcpy(copy,s.assembly->text,s.total+1); + if(xQueueSend(s.messages,©,0)!=pdTRUE){free(copy);s.fail(XZ_FAULT_QUEUE);} + } + } + } + bool connect(){ + state(XZ_CONNECTING,"正在建立加密语音连接");failed=false;hello=false;last_incoming=esp_timer_get_time(); + if(!reserve_codec())return false; + if(!endpoint.empty()&&!mqtt){ + if(endpoint.size()>200||client.size()>256||user.size()>512||password.size()>768||topic.size()>256)return false; + messages=xQueueCreate(4,sizeof(char *));assembly=static_cast(calloc(1,sizeof(Message)));if(!messages||!assembly)return memory_failure("mqtt_buffers",sizeof(Message)); + std::string uri="mqtts://"+endpoint; + esp_mqtt_client_config_t cfg{};cfg.broker.address.uri=uri.c_str();cfg.broker.verification.crt_bundle_attach=esp_crt_bundle_attach;cfg.credentials.client_id=client.c_str();cfg.credentials.username=user.c_str();cfg.credentials.authentication.password=password.c_str();cfg.session.keepalive=60;cfg.network.timeout_ms=4500;cfg.network.disable_auto_reconnect=true;cfg.task.stack_size=4096;cfg.task.priority=3;cfg.buffer.size=1024;cfg.buffer.out_size=1024; + mqtt=esp_mqtt_client_init(&cfg);if(!mqtt)return memory_failure("mqtt_client"); +#ifdef BADGE_XIAOZHI_REUSE_PROBE + ++probe_connections; +#endif + if(esp_mqtt_client_register_event(mqtt,MQTT_EVENT_ANY,mqtt_event,this)!=ESP_OK||esp_mqtt_client_start(mqtt)!=ESP_OK)return false; + int64_t end=esp_timer_get_time()+8000000;while(!stopping&&!failed&&!connected&&esp_timer_get_time()(malloc(sizeof(Message)));if(!incoming)return memory_failure("websocket_buffer",sizeof(Message)); + xz_endpoint_t parsed{};if(!xz_endpoint(url.c_str(),&parsed))return false; + parent=parsed.tls?esp_transport_ssl_init():esp_transport_tcp_init();if(!parent)return false;if(parsed.tls)esp_transport_ssl_crt_bundle_attach(parent,esp_crt_bundle_attach); + ws=esp_transport_ws_init(parent);if(!ws)return false;esp_transport_ws_set_path(ws,parsed.path); + std::string headers="Protocol-Version: "+std::to_string(version)+"\r\nDevice-Id: "+mac+"\r\nClient-Id: "+uuid+"\r\n"; + if(!token.empty())headers+=std::string("Authorization: ")+(token.find(' ')==std::string::npos?"Bearer ":"")+token+"\r\n"; + if(esp_transport_ws_set_headers(ws,headers.c_str())!=ESP_OK||esp_transport_connect(ws,parsed.host,parsed.port,4500)<0){return false;}connected=true; + } + parked=false; + Json h(cJSON_CreateObject());cJSON_AddStringToObject(h.p,"type","hello");cJSON_AddNumberToObject(h.p,"version",mqtt?3:version);cJSON_AddStringToObject(h.p,"transport",mqtt?"udp":"websocket");auto features=cJSON_AddObjectToObject(h.p,"features");cJSON_AddBoolToObject(features,"mcp",true);auto params=cJSON_AddObjectToObject(h.p,"audio_params");cJSON_AddStringToObject(params,"format","opus");cJSON_AddNumberToObject(params,"sample_rate",16000);cJSON_AddNumberToObject(params,"channels",1);cJSON_AddNumberToObject(params,"frame_duration",60); + if(!send_text(json_text(h.p)))return false; + int64_t end=esp_timer_get_time()+10000000;while(!stopping&&!failed&&!xz_session_ready(hello,tools_advertised)&&esp_timer_get_time()=0:ws&&esp_transport_ws_send_raw(ws,static_cast(WS_TRANSPORT_OPCODES_FIN|WS_TRANSPORT_OPCODES_TEXT),text,length,1000)==(int)length;if(!ok)fail(XZ_FAULT_TRANSPORT);return ok; + } + __attribute__((noinline)) bool send_catalog(Json &wrapper,size_t &length){ + // The worker already owns a 28 KiB stack. Borrow 8 KiB only during + // serialization/transmission, after tool construction and before Opus. + // Keeping this on the heap starves the AES DMA allocator during TLS. + char text[8192]; + bool printed=cJSON_PrintPreallocated(wrapper.p,text,sizeof(text),false); + cJSON_Delete(wrapper.p);wrapper.p=nullptr; + if(!printed)return memory_failure("catalog_output_limit",sizeof(text)); + length=strlen(text); + return send_text(text,length); + } + bool send_initial_context(){ + if(!reading_pending||!reading)return true; + badge_network_xiaozhi_power(true,true); + Json j(cJSON_CreateObject()); + if(!j.p||!cJSON_AddStringToObject(j.p,"type","listen")||!cJSON_AddStringToObject(j.p,"session_id",session.c_str())|| + !cJSON_AddStringToObject(j.p,"state","start")||!cJSON_AddStringToObject(j.p,"mode","manual"))return fail(XZ_FAULT_MEMORY); + conversation=true;accept_audio=true;tts_stop=0;ignore_until=0;context_turn=true; + yao_result_t result{};char original[32],changed[32]; + if(!yao_calculate(reading->lines,&result))return fail(XZ_FAULT_PROTOCOL); + yao_full_name(result.original,original,sizeof(original));yao_full_name(result.changed,changed,sizeof(changed)); + snprintf(view.heard,sizeof(view.heard),"解读:%s → %s",original,changed); + state(XZ_THINKING,"正在解读本次å�¦è±¡");last_incoming=esp_timer_get_time(); + if(!send_text(json_text(j.p)))return false; + context_upload=true;context_offset=0;context_next=listen_since=esp_timer_get_time(); +#ifdef BADGE_YAO_DEVICE_PROBE + ESP_LOGI("yao_probe","CONTEXT_SENT snapshot_bytes=%u tools=%u",(unsigned)sizeof(*reading),tools_advertised); +#endif + reading_pending=false; // Keep the compact confirmed record pinned through this visit. + return true; + } + bool upload_context_request(){ + if(!context_upload||esp_timer_get_time()sizeof(yao_request_opus))return fail(XZ_FAULT_AUDIO); + unsigned bytes=yao_request_opus[context_offset]|(unsigned)yao_request_opus[context_offset+1]<<8;context_offset+=2; + if(!bytes||bytes>1500||context_offset+bytes>sizeof(yao_request_opus))return fail(XZ_FAULT_AUDIO); + memcpy(packet+16,yao_request_opus+context_offset,bytes);context_offset+=bytes; + context_next=esp_timer_get_time()+60000;badge_power_audio_activity(); + return send_encoded_packet(bytes); + } + bool control(const char *type,const char *state_value=nullptr,bool shutdown=false){Json j(cJSON_CreateObject());cJSON_AddStringToObject(j.p,"type",type);cJSON_AddStringToObject(j.p,"session_id",session.c_str());if(state_value)cJSON_AddStringToObject(j.p,"state",state_value);if(!strcmp(type,"listen")&&state_value&&!strcmp(state_value,"start"))cJSON_AddStringToObject(j.p,"mode","auto");return send_text(json_text(j.p),shutdown);} + bool reserve_codec(){ + if(codec_arena)return true; + int enc=opus_encoder_get_size(1),dec=opus_decoder_get_size(1); + if(enc<=0||dec<=0)return false; + if(!xz_audio_arena_layout(enc,dec,&codec_queue_offset,&codec_arena_bytes))return fail(XZ_FAULT_AUDIO); + codec_arena=malloc(codec_arena_bytes); +#ifdef BADGE_XIAOZHI_STABILITY_PROBE + if(codec_arena)stability_codec_allocations++; +#endif + ESP_LOGI(TAG,"Codec arena=%u encoder=%d decoder=%d queue_offset=%u allocated=%u free=%lu",(unsigned)codec_arena_bytes,enc,dec,(unsigned)codec_queue_offset,codec_arena!=nullptr,(unsigned long)esp_get_free_heap_size()); + return codec_arena?true:memory_failure("opus_arena",codec_arena_bytes); + } + void free_codecs(){audio_queue=nullptr;encoder=nullptr;decoder=nullptr;view.level=0;} + void release_codec_arena(){free_codecs();free(codec_arena);codec_arena=nullptr;codec_arena_bytes=0;codec_queue_offset=0;} + void reclaim_for_retry(const char *reason){ + ESP_LOGI(TAG,"Active reclaim begin reason=%s heap=%lu largest=%u",reason?reason:"-",(unsigned long)esp_get_free_heap_size(),(unsigned)heap_caps_get_largest_free_block(MALLOC_CAP_8BIT)); + state(XZ_CONNECTING,"正在回收语音资æº�"); + close(); + release_codec_arena(); + free(pcm);pcm=nullptr;free(packet);packet=nullptr; + (void)bsp_audio_sleep();badge_network_xiaozhi_power(false,false); + vTaskDelay(pdMS_TO_TICKS(120)); + ESP_LOGI(TAG,"Active reclaim end reason=%s heap=%lu largest=%u",reason?reason:"-",(unsigned long)esp_get_free_heap_size(),(unsigned)heap_caps_get_largest_free_block(MALLOC_CAP_8BIT)); + } + bool listen(){ + context_turn=false;context_upload=false; + badge_network_xiaozhi_power(true,true); + accept_audio=false;tts_stop=0;free_codecs(); + esp_err_t audio_result=bsp_audio_init(); + if(audio_result==ESP_OK)audio_result=bsp_audio_set_format(16000,16,1); + if(audio_result!=ESP_OK){ESP_LOGE(TAG,"Microphone init: %s",esp_err_to_name(audio_result));fail(XZ_FAULT_AUDIO);error("麦克风åˆ�始化失败");return false;} + if(!reserve_codec()){error("语音内存ä¸�足,请退出å�Žé‡�试");return false;} + encoder=static_cast(codec_arena); + int result=opus_encoder_init(encoder,16000,1,OPUS_APPLICATION_VOIP); + if(result==OPUS_OK)result=opus_encoder_ctl(encoder,OPUS_SET_BITRATE(16000)); + if(result==OPUS_OK)result=opus_encoder_ctl(encoder,OPUS_SET_COMPLEXITY(0)); + if(result==OPUS_OK)result=opus_encoder_ctl(encoder,OPUS_SET_VBR(1)); + ESP_LOGI(TAG,"Encoder status=%d free=%lu",result,(unsigned long)esp_get_free_heap_size()); + if(result!=OPUS_OK){encoder=nullptr;fail(XZ_FAULT_AUDIO);error("语音编ç �åˆ�始化失败");return false;} + input_bytes=1920;output_bytes=1500; + // Discard the few old DMA frames before opening the microphone uplink. +#if defined(BADGE_XIAOZHI_STABILITY_PROBE) + stability_offset=0;stability_frame=esp_timer_get_time();++stability_turn; + ESP_LOGI("stability_bench","LISTEN turn=%u heap=%lu largest=%lu",stability_turn,(unsigned long)esp_get_free_heap_size(),(unsigned long)heap_caps_get_largest_free_block(MALLOC_CAP_8BIT)); +#elif defined(BADGE_TOOL_CLOUD_PROBE) + cloud_offset=0;cloud_frame=esp_timer_get_time(); +#elif defined(BADGE_XIAOZHI_CONVERSATION_PROBE) + probe_offset=0;probe_next_frame=esp_timer_get_time();probe_turn++; + ESP_LOGI("xz_probe","AUTO_LISTEN turn=%u free=%lu",probe_turn,(unsigned long)esp_get_free_heap_size()); +#else + for(unsigned i=0;i<2&&!stopping;i++){ + esp_err_t e=bsp_audio_read(pcm,1920); + if(e!=ESP_OK){ESP_LOGE(TAG,"Microphone pre-read: %s",esp_err_to_name(e));return fail(XZ_FAULT_AUDIO);} + } +#endif + badge_power_audio_activity(); + if(!control("listen","start"))return false; + listen_since=esp_timer_get_time();last_incoming=listen_since;state(XZ_LISTENING,"请直接说è¯�,说完自动å�‘é€�");return true; + } + bool capture(){ +#if defined(BADGE_XIAOZHI_CONNECT_PROBE) + memset(pcm,0,input_bytes);vTaskDelay(pdMS_TO_TICKS(60));connect_probe_frames++; +#elif defined(BADGE_XIAOZHI_STABILITY_PROBE) + int64_t wait=stability_frame-esp_timer_get_time();if(wait>1000)vTaskDelay(pdMS_TO_TICKS(wait/1000)); + stability_frame+=60000;memset(pcm,0,input_bytes); + bool silence=stability_turn==2&&esp_timer_get_time()-listen_since<22000000; + if(!silence){ + if(stability_turn==2&&!stability_silence){stability_silence=true;configASSERT(!background_idle.load());ESP_LOGI("stability_bench","ACTIVE_SILENCE_22S_PASS");} + size_t count=std::min(input_bytes,sizeof(xz_probe_pcm)-stability_offset); + if(count){memcpy(pcm,xz_probe_pcm+stability_offset,count);stability_offset+=count;} + } +#elif defined(BADGE_TOOL_CLOUD_PROBE) + int64_t wait=cloud_frame-esp_timer_get_time();if(wait>1000)vTaskDelay(pdMS_TO_TICKS(wait/1000));cloud_frame+=60000; + for(int i=0;i1000)vTaskDelay(pdMS_TO_TICKS(wait/1000)); + probe_next_frame+=60000;memset(pcm,0,input_bytes); + size_t probe_bytes=std::min(input_bytes,sizeof(xz_probe_pcm)-probe_offset); + if(probe_bytes){memcpy(pcm,xz_probe_pcm+probe_offset,probe_bytes);probe_offset+=probe_bytes;} +#else + if(bsp_audio_read(pcm,input_bytes)!=ESP_OK)return fail(XZ_FAULT_AUDIO); +#endif + badge_power_audio_activity(); + uint64_t level=0;for(int i=0;i(100,level/(input_bytes/2)/45); + render(); // Hand off fresh input energy before the more expensive encoder. + int encoded=opus_encode(encoder,pcm,960,packet+16,1500); + if(encoded<=0||encoded>1500)return fail(XZ_FAULT_AUDIO); + if(stopping)return false; + return send_encoded_packet(encoded); + } + bool send_encoded_packet(unsigned encoded){ + if(mqtt){memcpy(packet,nonce,16);xz_udp_header(packet,encoded,(esp_timer_get_time()-listen_since)/1000,++tx);if(!crypt(packet+16,encoded,packet,packet+16))return false;return send(udp,packet,16+encoded,0)==(int)(16+encoded);} + unsigned offset=16; + if(version==2){offset=0;memset(packet,0,16);packet[1]=2;packet[12]=(encoded>>24)&255;packet[13]=(encoded>>16)&255;packet[14]=(encoded>>8)&255;packet[15]=encoded&255;} + if(version==3){offset=12;packet[12]=packet[13]=0;packet[14]=encoded>>8;packet[15]=encoded&255;} + size_t bytes=16+encoded-offset;return esp_transport_ws_send_raw(ws,static_cast(WS_TRANSPORT_OPCODES_FIN|WS_TRANSPORT_OPCODES_BINARY),reinterpret_cast(packet+offset),bytes,1000)==(int)bytes; + } + bool crypt(const uint8_t *in,size_t length,const uint8_t *iv,uint8_t *out){uint8_t counter[16],stream[16]{};memcpy(counter,iv,16);size_t offset=0;mbedtls_aes_context aes;mbedtls_aes_init(&aes);int e=mbedtls_aes_setkey_enc(&aes,key,128);if(!e)e=mbedtls_aes_crypt_ctr(&aes,length,&offset,counter,stream,in,out);mbedtls_aes_free(&aes);return e==0;} + bool prepare_decoder(){ + if(decoder)return true; + if(!reserve_codec())return false; + decoder=static_cast(codec_arena); + int result=opus_decoder_init(decoder,16000,1); + if(result!=OPUS_OK){decoder=nullptr;return fail(XZ_FAULT_AUDIO);} + encoder=nullptr; + audio_queue=reinterpret_cast(static_cast(codec_arena)+codec_queue_offset); + memset(audio_queue,0,sizeof(*audio_queue)); + if(bsp_audio_init()!=ESP_OK||bsp_audio_set_format(16000,16,1)!=ESP_OK)return fail(XZ_FAULT_AUDIO); + applied_volume=101;ESP_LOGI(TAG,"Decoder ready free=%lu",(unsigned long)esp_get_free_heap_size()); + return true; + } + void audio(const uint8_t *data,size_t length){ + if(!accept_audio||!length||stopping)return; + played=true;badge_power_audio_activity(); + if(!prepare_decoder())return; + int samples=opus_decode(decoder,data,length,pcm,1920,0); + if(samples<=0||samples>1920){fail(XZ_FAULT_AUDIO);return;} + unsigned volume=wanted_volume.load();if(volume!=applied_volume){bsp_audio_set_volume(volume);applied_volume=volume;} + int64_t start=esp_timer_get_time(); + if(last_write_end){int64_t gap=start-last_write_end;if(gap>max_write_gap)max_write_gap=gap;if(gap>20000)late_writes++;} + if(bsp_audio_write(pcm,samples*sizeof(int16_t))!=ESP_OK){fail(XZ_FAULT_AUDIO);return;} + last_write_end=esp_timer_get_time();played_packets++;view.played_ms+=(unsigned)samples/16; +#ifdef BADGE_YAO_DEVICE_PROBE + if(context_turn)yao_probe_samples.fetch_add(samples); +#endif + unsigned energy=0;for(int i=0;iused:0,(unsigned long)esp_get_free_heap_size());if(!audio_queue)memory_failure("playback_queue",sizeof(xz_audio_buffer_t));else fail(XZ_FAULT_QUEUE);return;} + received_packets++; + } + void play_buffered(){ + if(xz_audio_ready(audio_queue,esp_timer_get_time(),tts_stop!=0)){ + size_t bytes=xz_audio_pop(audio_queue,packet+16,1500); + if(bytes)audio(packet+16,bytes); + } + } + void mcp(cJSON *payload){ + const bool catalog=!strcmp(str(payload,"method"),"tools/list"); +#ifdef BADGE_XIAOZHI_CONNECT_PROBE + if(!strcmp(str(payload,"method"),"tools/list"))ESP_LOGI("connect_probe","DISCOVERY_BEGIN state=%u encoder=%u free=%lu largest=%lu",(unsigned)view.state,encoder!=nullptr,(unsigned long)esp_get_free_heap_size(),(unsigned long)heap_caps_get_largest_free_block(MALLOC_CAP_8BIT)); +#endif + // Keep the pre-handshake codec arena reserved. Freeing it for discovery + // lets small network/UI allocations split the only contiguous 24 KB block. + // The bounded catalog no longer embeds a reading snapshot. + if(!strcmp(str(payload,"method"),"tools/list"))badge_network_xiaozhi_power(true,true); + badge_network_status_t net{};badge_network_status(&net);uint32_t ticket=0; + Json result(context_turn?xz_tools_handle_reading(payload,wanted_volume.load(),net.connected,&ticket,reading):xz_tools_handle(payload,wanted_volume.load(),net.connected,&ticket));if(!result.p){if(cJSON_HasObjectItem(payload,"id"))memory_failure("tool_result");return;} +#ifdef BADGE_YAO_DEVICE_PROBE + if(!strcmp(str(cJSON_GetObjectItemCaseSensitive(payload,"params"),"name"),"self.yao.get")){ + const cJSON *body=cJSON_GetObjectItemCaseSensitive(result.p,"result"); + Json record(cJSON_Parse(str(cJSON_GetArrayItem(cJSON_GetObjectItemCaseSensitive(body,"content"),0),"text"))); + const cJSON *a=cJSON_GetObjectItemCaseSensitive(record.p,"original"),*b=cJSON_GetObjectItemCaseSensitive(record.p,"changed"); + configASSERT(cJSON_GetArraySize(cJSON_GetObjectItemCaseSensitive(a,"yaoci"))==6&&cJSON_GetArraySize(cJSON_GetObjectItemCaseSensitive(b,"yaoci"))==6); + ESP_LOGI("yao_probe","FULL_TEXT_REPLY_PASS original=%s changed=%s lines=6+6",str(a,"name"),str(b,"name")); + } +#endif +#ifdef BADGE_TOOL_CLOUD_PROBE + ESP_LOGI("tool_cloud_private","MCP request=%s response=%s",json_text(payload).c_str(),json_text(result.p).c_str()); + ESP_LOGI("tool_cloud","MCP received method=%s queued=%u error=%u",str(payload,"method"),ticket!=0,cJSON_HasObjectItem(result.p,"error")||cJSON_IsTrue(cJSON_GetObjectItemCaseSensitive(cJSON_GetObjectItemCaseSensitive(result.p,"result"),"isError"))); +#endif + badge_control_command_t command{}; + if(badge_control_peek(ticket,&command)&&badge_control_stays(command.kind)){ + // Wake the navigation owner immediately. It never joins this worker + // for in-place actions, so completion can be awaited without a cycle. + badge_control_commit(ticket,true);int completion=0;int64_t end=esp_timer_get_time()+2000000; + while(!stopping&&(completion=badge_control_result(ticket))==0&&esp_timer_get_time()128){fail(XZ_FAULT_PROTOCOL);return;} + auto params=cJSON_GetObjectItemCaseSensitive(root.p,"audio_params");const char *format=str(params,"format");if((*format&&strcmp(format,"opus"))||num(params,"channels",1)!=1){fail(XZ_FAULT_PROTOCOL);return;} + if(mqtt){auto u=cJSON_GetObjectItemCaseSensitive(root.p,"udp");const char *host=str(u,"server");int port=num(u,"port",0);if(!*host||strlen(host)>192||port<1||port>65535||!xz_hex16(str(u,"key"),key)||!xz_hex16(str(u,"nonce"),nonce)){fail(XZ_FAULT_PROTOCOL);return;}addrinfo hints{};hints.ai_family=AF_INET;hints.ai_socktype=SOCK_DGRAM;addrinfo *addr=nullptr;char p[8];snprintf(p,sizeof(p),"%d",port);if(getaddrinfo(host,p,&hints,&addr)!=0){fail(XZ_FAULT_TRANSPORT);return;}udp=socket(addr->ai_family,addr->ai_socktype,addr->ai_protocol);if(udp<0||::connect(udp,addr->ai_addr,addr->ai_addrlen)!=0)fail(XZ_FAULT_TRANSPORT);freeaddrinfo(addr);if(failed)return;timeval timeout{0,1000};setsockopt(udp,SOL_SOCKET,SO_RCVTIMEO,&timeout,sizeof(timeout));} + else if(strcmp(str(root.p,"transport"),"websocket")){fail(XZ_FAULT_PROTOCOL);return;} + hello=true; + }else if(!strcmp(type,"tts")){ + // Auto mode ends microphone upload when the server starts a reply. + // Paused sessions and the short interrupt tail must not restart it. + if(!xz_tts_allowed(conversation,view.state,esp_timer_get_time(),ignore_until))return; + const char *s=str(root.p,"state");if(!strcmp(s,"start")){free_codecs();view.text[0]=0;view.played_ms=view.caption_start_ms=0;received_packets=played_packets=late_writes=udp_missing=0;last_write_end=max_write_gap=0;accept_audio=true;tts_stop=0;badge_network_xiaozhi_power(true,true);state(XZ_SPEAKING,"å°�智正在回答");} + else if(!strcmp(s,"stop")){tts_stop=esp_timer_get_time(); +#ifdef BADGE_YAO_DEVICE_PROBE + if(context_turn){yao_probe_tts_stop=1;conversation=false;} +#endif + } + else if(!strcmp(s,"sentence_start")){ +#ifdef BADGE_YAO_DEVICE_PROBE + if(context_turn)ESP_LOGI("yao_probe","CAPTION=%s",str(root.p,"text")); +#endif +#ifdef BADGE_TOOL_CLOUD_PROBE + ESP_LOGI("tool_cloud_private","CAPTION=%s",str(root.p,"text")); + ESP_LOGI("tool_cloud","CAPTION turn=%u literal_percent_s=%u",cloud_turn,strstr(str(root.p,"text"),"%s")!=nullptr); +#endif + if(xz_caption_is_tool_progress(str(root.p,"text"))){ESP_LOGI(TAG,"Tool progress caption omitted");return;} + view.caption_start_ms=view.played_ms+(audio_queue?audio_queue->samples/16:0);xz_caption_normalize(view.text,sizeof(view.text),str(root.p,"text"),xiaozhi_font_has_glyph);render(true);} + }else if(!strcmp(type,"stt")){ + if(xz_tts_allowed(conversation,view.state,esp_timer_get_time(),ignore_until)&&*str(root.p,"text")){ + if(!context_turn)xz_caption_normalize(view.heard,sizeof(view.heard),str(root.p,"text"),xiaozhi_font_has_glyph); +#ifdef BADGE_XIAOZHI_CONVERSATION_PROBE + probe_stt++;ESP_LOGI("xz_probe","AUTO_STT turn=%u bytes=%u",probe_turn,(unsigned)strlen(view.heard)); +#endif + if(view.state==XZ_LISTENING){view.text[0]=0;free_codecs();accept_audio=true;state(XZ_THINKING,"å·²å�¬æ¸…,正在准备回å¤�");} + else render(true); + } + } + else if(!strcmp(type,"llm")){ + if(xz_tts_allowed(conversation,view.state,esp_timer_get_time(),ignore_until)&&*str(root.p,"emotion")){ + view.emotion=xz_face_emotion(str(root.p,"emotion")); + view.face_variant=xz_face_select(&face_selector,view.emotion,esp_random());render(true); + } + } + else if(!strcmp(type,"mcp"))mcp(cJSON_GetObjectItemCaseSensitive(root.p,"payload")); + else if(!strcmp(type,"goodbye")){fail(XZ_FAULT_SERVER_END);} + else if(!strcmp(type,"alert")){xz_caption_normalize(view.text,sizeof(view.text),str(root.p,"message"),xiaozhi_font_has_glyph);conversation=false;accept_audio=false;state(XZ_READY,"æœ�务æ��示,按 OK é‡�试或返回");} + } + void poll(){ + if(stopping)return; + if(mqtt){ + // Drain control traffic first. Audio is accepted only between TTS start/stop. + char *message=nullptr; + while(!stopping&&xQueueReceive(messages,&message,0)==pdTRUE){json(message,strlen(message));free(message);} + // Drain network bursts before any blocking I2S write. Keep room for + // the maximum packet; leave excess packets in the socket mailbox. + for(unsigned i=0;udp>=0&&i<16&&!stopping&&!failed&&xz_audio_room(audio_queue);i++){ + int n=recv(udp,packet,1517,MSG_DONTWAIT);if(n<=0)break; + uint32_t sequence; + if(xz_udp_audio(packet,n,rx,&sequence)&&crypt(packet+16,n-16,packet,packet+16)){ + if(accept_audio&&received_packets&&sequence>rx+1)udp_missing+=sequence-rx-1; + rx=sequence;last_incoming=esp_timer_get_time();receive_audio(packet+16,n-16); + } + } + }else if(ws){ + for(unsigned budget=0;budget<16&&!stopping&&!failed&&xz_audio_room(audio_queue);budget++){ + int ready=esp_transport_poll_read(ws,1);if(ready<0){fail(XZ_FAULT_TRANSPORT);return;}if(!ready)return; + int n=esp_transport_read(ws,incoming->text,MAX_MESSAGE,500);if(n<0){fail(XZ_FAULT_TRANSPORT);return;}if(!n)return; + unsigned length=esp_transport_ws_get_read_payload_len(ws);int opcode=esp_transport_ws_get_read_opcode(ws);if(length>MAX_MESSAGE){fail(XZ_FAULT_PROTOCOL);return;} + unsigned used=n;while(usedtext+used,length-used,500);if(part<=0){fail(XZ_FAULT_TRANSPORT);return;}used+=part;} + if(!esp_transport_ws_get_fin_flag(ws)){fail(XZ_FAULT_PROTOCOL);return;} // Fail closed on unsupported fragmented messages. + if(opcode==WS_TRANSPORT_OPCODES_TEXT){incoming->text[used]=0;json(incoming->text,used);} + else if(opcode==WS_TRANSPORT_OPCODES_BINARY){const uint8_t *p;size_t bytes;if(!xz_ws_audio(version,reinterpret_cast(incoming->text),used,&p,&bytes)){fail(XZ_FAULT_PROTOCOL);return;}last_incoming=esp_timer_get_time();receive_audio(p,bytes);} + else if(opcode==WS_TRANSPORT_OPCODES_CLOSE)fail(XZ_FAULT_TRANSPORT); + } + } + } + bool park(){ + // The navigation owner disables tools before requesting stop. The + // worker completes all audio/UI/power work before transferring ownership. + bool retain=mqtt&&connected&&!failed&&hello; + parked=true;conversation=false;accept_audio=false; + if(retain){ + bool ended=control("listen","stop",true); + ended=control("abort",nullptr,true)&&ended; + ended=control("goodbye",nullptr,true)&&ended; + retain=ended; + } + free_codecs();free(codec_arena);codec_arena=nullptr; + sync_volume(true,true);volume_loaded=false; + if(udp>=0){::close(udp);udp=-1;} + hello=false;session.clear();tx=rx=0; + memset(key,0,sizeof(key));memset(nonce,0,sizeof(nonce)); + free(pcm);pcm=nullptr;free(packet);packet=nullptr; + leave_power(); + parked_at=esp_timer_get_time(); + // An in-flight callback may finish queueing once; resume drains it while + // still parked. The queue stays bounded and never runs in the background. + if(retain)ESP_LOGI(TAG,"Connection parked heap=%lu",(unsigned long)esp_get_free_heap_size()); + return retain; + } + void close(){ + // Tool discovery belongs to the MQTT/TLS transport, not each audio hello. + tools_advertised=false; + closing=true;context_upload=false;badge_control_cancel(); + // A transport retry must not give the contiguous codec block back to + // the general heap while this worker's 28 KiB stack remains allocated. + // Park/destruction release it only when leaving the conversation. + conversation=false;accept_audio=false;free_codecs();sync_volume(true,true); + if(udp>=0){::close(udp);udp=-1;} + if(mqtt){esp_mqtt_client_stop(mqtt);esp_mqtt_client_destroy(mqtt);mqtt=nullptr;} + if(ws){esp_transport_close(ws);esp_transport_destroy(ws);ws=nullptr;}free(incoming);incoming=nullptr; + if(parent){esp_transport_destroy(parent);parent=nullptr;} + if(messages){char *message=nullptr;while(xQueueReceive(messages,&message,0)==pdTRUE)free(message);vQueueDelete(messages);messages=nullptr;}free(assembly);assembly=nullptr;connected=false;hello=false;tx=rx=0; + // Release service credentials with the mini app; do not write them to badge profiles. + token.clear();password.clear();parked=false;closing=false; + } + void run(){ + view={};observed_clicks=0;retries=0;retry_at=0; +#ifdef BADGE_TOOL_CLOUD_PROBE + cloud_turn=0;cloud_waiting=false; +#endif + resume_at=ignore_until=idle_since=tts_stop=0;last_draw=0; + if(messages){char *message=nullptr;while(xQueueReceive(messages,&message,0)==pdTRUE)free(message);} + applied_volume=101;restore_volume();view.volume=wanted_volume.load(); + pcm=static_cast(malloc(3840));packet=static_cast(malloc(1517)); + if(!pcm||!packet||!identity()){error("å°�智å�¯åŠ¨å¤±è´¥ï¼Œè¯·è¿”å›žå�Žé‡�试");return;} +#ifdef BADGE_XIAOZHI_DEVICE_PROBE +#ifdef BADGE_XIAOZHI_VERIFY_ALL_VOICES + bool decoded=voice_probe_decode_all([]{return stopping.load();});if(stopping)return;configASSERT(decoded); +#endif + badge_network_start_setup(); + for(unsigned i=0;i<100;i++){badge_network_status_t net{};badge_network_status(&net);if(net.active)break;vTaskDelay(pdMS_TO_TICKS(50));} + configASSERT(bsp_audio_init()==ESP_OK&&bsp_audio_set_format(16000,16,1)==ESP_OK); + ESP_LOGI("xz_probe","AP_AUDIO_READY free=%lu largest=%u",(unsigned long)esp_get_free_heap_size(),(unsigned)heap_caps_get_largest_free_block(MALLOC_CAP_8BIT)); + { + void *bench_encoder=nullptr,*bench_decoder=nullptr; + esp_opus_enc_config_t cfg=ESP_OPUS_ENC_CONFIG_DEFAULT();cfg.sample_rate=16000;cfg.channel=1;cfg.bitrate=16000;cfg.frame_duration=ESP_OPUS_ENC_FRAME_DURATION_60_MS;cfg.application_mode=ESP_OPUS_ENC_APPLICATION_VOIP;cfg.complexity=0;cfg.enable_vbr=true; + int result=esp_opus_enc_open(&cfg,sizeof(cfg),&bench_encoder);ESP_LOGI("xz_probe","ENCODER_OPEN result=%d free=%lu",result,(unsigned long)esp_get_free_heap_size());configASSERT(result==ESP_AUDIO_ERR_OK&&bench_encoder); + esp_audio_enc_in_frame_t in{};in.buffer=reinterpret_cast(pcm);in.len=1920;esp_audio_enc_out_frame_t out{};out.buffer=packet+16;out.len=1500; + for(unsigned i=0;i<960;i++)pcm[i]=(i%32<16)?4000:-4000; + int64_t begin=esp_timer_get_time();for(unsigned i=0;i<30;i++){configASSERT(esp_opus_enc_process(bench_encoder,&in,&out)==ESP_AUDIO_ERR_OK);vTaskDelay(pdMS_TO_TICKS(1));} + ESP_LOGI("xz_probe","ENCODE_60MS average_us=%lld bytes=%lu",(long long)((esp_timer_get_time()-begin)/30),(unsigned long)out.encoded_bytes); + esp_opus_enc_close(bench_encoder);bench_encoder=nullptr; + esp_opus_dec_cfg_t d=ESP_OPUS_DEC_CONFIG_DEFAULT();d.sample_rate=16000;d.channel=1;d.frame_duration=ESP_OPUS_DEC_FRAME_DURATION_120_MS;configASSERT(esp_opus_dec_open(&d,sizeof(d),&bench_decoder)==ESP_AUDIO_ERR_OK&&bench_decoder); + esp_audio_dec_in_raw_t raw{};raw.buffer=packet+16;raw.len=out.encoded_bytes;esp_audio_dec_out_frame_t frame{};frame.buffer=reinterpret_cast(pcm);frame.len=3840;esp_audio_dec_info_t info{};configASSERT(esp_opus_dec_decode(bench_decoder,&raw,&frame,&info)==ESP_AUDIO_ERR_OK&&frame.decoded_size==1920); + esp_opus_dec_close(bench_decoder);ESP_LOGI("xz_probe","CODECS_PASS free=%lu",(unsigned long)esp_get_free_heap_size()); + } +#ifdef BADGE_XIAOZHI_POWER_PROBE + uint8_t prior_brightness=bsp_display_brightness(); + bsp_display_backlight(0);configASSERT(bsp_display_suspend()==ESP_OK); + configASSERT(bsp_display_resume()==ESP_OK&&bsp_display_brightness()==80); + bsp_display_backlight(prior_brightness);ESP_LOGI("xz_probe","BRIGHTNESS_FALLBACK_PASS"); + for(unsigned cycle=0;cycle<3;cycle++){ + bsp_audio_set_volume(63);configASSERT(bsp_audio_sleep()==ESP_OK&&bsp_audio_is_sleeping()); + configASSERT(bsp_audio_wake()==ESP_OK&&!bsp_audio_is_sleeping()&&bsp_audio_get_volume()==63); + configASSERT(bsp_audio_read(pcm,1920)==ESP_OK); + } + bsp_audio_set_volume(wanted_volume.load());ESP_LOGI("xz_probe","AUDIO_RESTORE_3_CYCLES_PASS"); +#endif + probe_ready=true; +#endif + badge_power_enter();power_owned=true; + state(XZ_IDLE,"说完自动å�‘é€�"); + ESP_LOGI(TAG,"Ready free=%lu",(unsigned long)esp_get_free_heap_size()); +#ifdef BADGE_XIAOZHI_PLAYBACK_PROBE + bool playback_probe_sent=false; +#endif + while(!stopping){ + bool busy=view.state==XZ_CONNECTING||view.state==XZ_LISTENING||view.state==XZ_THINKING||view.state==XZ_SPEAKING; + sync_volume(!busy,false); + badge_power_tick(busy,view.state==XZ_LISTENING||view.state==XZ_SPEAKING); +#ifdef BADGE_XIAOZHI_POWER_PROBE + if(probe_mic_request.exchange(false)){ + configASSERT(!badge_power_screen_off()&&bsp_display_brightness()>0&&view.state==XZ_IDLE); + configASSERT(!bsp_audio_is_sleeping()); + configASSERT(bsp_audio_init()==ESP_OK&&bsp_audio_set_format(16000,16,1)==ESP_OK); + configASSERT(bsp_audio_read(pcm,1920)==ESP_OK); // RAM only, never saved or uploaded. + badge_power_audio_activity(); + ESP_LOGI("xz_probe","MIC_WAKE_PASS bytes=1920 brightness=%u",bsp_display_brightness());probe_mic_done=true; + } +#endif + if(retry_at&&esp_timer_get_time()>=retry_at&&!stopping){ + retry_at=0; + if(!establish()&&view.state!=XZ_ACTIVATION&&!stopping)schedule_retry(fault.load()); + } + unsigned pressed=clicks.load();if(pressed!=observed_clicks){observed_clicks=pressed; + xz_action_t action=xz_ok_action(view.state,hello&&!failed); + if(action==XZ_PAUSE){context_upload=false;conversation=false;accept_audio=false;tts_stop=0;free_codecs();control("listen","stop");control("abort");state(XZ_READY,"对è¯�已暂å�œ");} + else if(action==XZ_START||action==XZ_INTERRUPT){ + context_upload=false;conversation=true;accept_audio=false;tts_stop=0;free_codecs(); + ignore_until=action==XZ_INTERRUPT?esp_timer_get_time()+500000:0;resume_at=ignore_until; + if(action==XZ_INTERRUPT){control("abort");} + state(XZ_READY,"准备è�†å�¬ï¼Œè¯·ç›´æŽ¥è¯´è¯�"); + } + else if(action==XZ_CONNECT){ + retry_at=0;retries=0; + reclaim_for_retry("ok_retry"); + pcm=static_cast(malloc(3840));packet=static_cast(malloc(1517)); + if(!pcm||!packet||!identity()){error("å°�智å�¯åŠ¨å¤±è´¥ï¼Œè¯·è¿”å›žå�Žé‡�试");return;} + fault=XZ_FAULT_NONE;failed=false; + establish();observed_clicks=clicks.load(); + } + } + if(hello&&!stopping){ +#ifndef BADGE_TOOL_CLOUD_PROBE + if(reading_pending&&view.state==XZ_READY){if(tools_advertised&&!send_initial_context())fail(XZ_FAULT_PROTOCOL);} + else if(xz_auto_listen(conversation,view.state,esp_timer_get_time(),resume_at)&&!listen())fail(XZ_FAULT_PROTOCOL); +#else + if(cloud_waiting&&esp_timer_get_time()-cloud_sent>35000000){cloud_waiting=false;conversation=false;tts_stop=0;free_codecs();state(XZ_READY,"测试等待超时");ESP_LOGI("tool_cloud","TURN_TIMEOUT turn=%u",cloud_turn);} + if(!cloud_waiting&&view.state==XZ_READY&&cloud_turn==0&&cloud_sequence<4){ + cloud_turn=++cloud_sequence;cloud_sent=esp_timer_get_time();cloud_waiting=true;conversation=true; + if(!listen()){fail(XZ_FAULT_PROTOCOL);} + ESP_LOGI("tool_cloud","TURN_SENT=%u",cloud_turn); + } +#endif +#ifdef BADGE_XIAOZHI_PLAYBACK_PROBE + if(!playback_probe_sent&&view.state==XZ_READY){ + Json test(cJSON_CreateObject());cJSON_AddStringToObject(test.p,"type","listen"); + cJSON_AddStringToObject(test.p,"session_id",session.c_str());cJSON_AddStringToObject(test.p,"state","detect"); + cJSON_AddStringToObject(test.p,"text","你好å°�智"); + conversation=true;badge_network_xiaozhi_power(true,true);state(XZ_THINKING,"等待测试回å¤�"); + send_text(json_text(test.p));playback_probe_sent=true; + // A synthetic Opus silence packet establishes the UDP return + // path through NAT, normally established by microphone uplink. + if(mqtt){ + vTaskDelay(pdMS_TO_TICKS(200)); + const uint8_t silence[]={0xf8,0xff,0xfe};memcpy(packet,nonce,16); + xz_udp_header(packet,sizeof(silence),0,++tx); + if(!crypt(silence,sizeof(silence),packet,packet+16)||send(udp,packet,19,0)!=19)fail(XZ_FAULT_PROTOCOL); + } + } +#endif + played=false; + if(context_upload&&!upload_context_request())fail(XZ_FAULT_TRANSPORT); + if(view.state==XZ_LISTENING&&!capture())fail(XZ_FAULT_TRANSPORT); + poll(); + if(!failed)play_buffered(); + // MQTT control and UDP audio can arrive in different orders. + // Drain the final packets instead of cutting the last syllable. + if(xz_tts_drained(tts_stop,last_audio,esp_timer_get_time())&&(!audio_queue||!audio_queue->count)){ +#ifdef BADGE_XIAOZHI_STABILITY_PROBE + unsigned completed=++stability_replies; + ESP_LOGI("stability_bench","REPLY=%u packets=%u/%u heap=%lu largest=%lu stack=%u",completed,played_packets,received_packets,(unsigned long)esp_get_free_heap_size(),(unsigned long)heap_caps_get_largest_free_block(MALLOC_CAP_8BIT),(unsigned)uxTaskGetStackHighWaterMark(nullptr)); + if(completed>=5)conversation=false; + if(completed==3&&!stability_injected){stability_injected=true;fail(XZ_FAULT_TRANSPORT);ESP_LOGI("stability_bench","INJECT_TRANSPORT_FAILURE");} +#endif + ESP_LOGI(TAG,"Playback packets=%u/%u udp_missing=%u late_writes=%u max_gap_us=%lld buffer_peak=%u",played_packets,received_packets,udp_missing,late_writes,(long long)max_write_gap,audio_queue?audio_queue->peak:0); +#ifdef BADGE_XIAOZHI_PLAYBACK_PROBE + ESP_LOGI("xz_probe","PLAYBACK_RESULT decoded=%u received=%u max_gap_us=%lld free=%lu",played_packets,received_packets,(long long)max_write_gap,(unsigned long)esp_get_free_heap_size()); + playback_probe_done=played_packets>10&&played_packets==received_packets;conversation=false; +#endif +#ifdef BADGE_XIAOZHI_CONVERSATION_PROBE + ESP_LOGI("xz_probe","AUTO_REPLY turn=%u packets=%u/%u gaps=%u max_us=%lld",probe_turn,played_packets,received_packets,udp_missing,(long long)max_write_gap); + if(probe_turn>=2){conversation=false;conversation_probe_done=probe_stt>=2&&played_packets>10&&played_packets==received_packets;} +#endif +#ifdef BADGE_TOOL_CLOUD_PROBE + cloud_waiting=false;conversation=false;cloud_completed=cloud_turn;ESP_LOGI("tool_cloud","TURN_DONE=%u",cloud_turn); +#endif + retries=0;tts_stop=0;accept_audio=false;free_codecs();sync_volume(true,false);resume_at=esp_timer_get_time();state(XZ_READY,conversation?"回å¤�结æ�Ÿï¼Œç»§ç»­è�†å�¬":"对è¯�已暂å�œ"); + } + if(view.state==XZ_LISTENING&&esp_timer_get_time()-listen_since>30000000){free_codecs();control("listen","stop");accept_audio=true;state(XZ_THINKING,"本轮录音已自动结æ�Ÿï¼Œç­‰å¾…回答");last_incoming=esp_timer_get_time();} + if(conversation&&esp_timer_get_time()-last_incoming>90000000)fail(XZ_FAULT_TIMEOUT); + if(failed){ + bool active=conversation;xz_fault_t reason=fault.load();close(); + if(reason==XZ_FAULT_SERVER_END)state(XZ_IDLE,"本轮对è¯�已结æ�Ÿï¼ŒæŒ‰ OK ç»§ç»­"); + else if(!(active&&schedule_retry(reason)))error(failure_text()); + } + } + bool idle=!conversation&&(view.state==XZ_IDLE||view.state==XZ_READY); + if(!idle)idle_since=0;else if(!idle_since)idle_since=esp_timer_get_time(); + background_idle=xz_background_idle(view.state,conversation,idle_since,esp_timer_get_time()); + render();vTaskDelay(pdMS_TO_TICKS(badge_power_screen_off()?50:view.state==XZ_LISTENING||view.state==XZ_SPEAKING||view.state==XZ_THINKING||played?1:50)); + } + } +}; +// Only the navigation task accesses parked_session except the final handoff +// before giving done. started stays true until navigation joins the worker. +Session *parked_session=nullptr; +void reclaim_idle_connection(const char *reason,bool force=false){ + size_t free8=heap_caps_get_free_size(MALLOC_CAP_8BIT); + size_t largest=heap_caps_get_largest_free_block(MALLOC_CAP_8BIT); + bool low=largest<49152||free8<98304; + if((force||low)&&parked_session){ + ESP_LOGI(TAG,"Idle reclaim begin reason=%s force=%u heap=%u largest=%u",reason?reason:"-",force?1:0,(unsigned)free8,(unsigned)largest); + delete parked_session;parked_session=nullptr; + (void)bsp_audio_sleep();badge_network_xiaozhi_power(false,false); + vTaskDelay(pdMS_TO_TICKS(120)); + ESP_LOGI(TAG,"Idle reclaim end reason=%s heap=%lu largest=%u",reason?reason:"-",(unsigned long)esp_get_free_heap_size(),(unsigned)heap_caps_get_largest_free_block(MALLOC_CAP_8BIT)); + }else if(force){ + ESP_LOGI(TAG,"Idle reclaim audio-only reason=%s heap=%u largest=%u",reason?reason:"-",(unsigned)free8,(unsigned)largest); + (void)bsp_audio_sleep();badge_network_xiaozhi_power(false,false); + vTaskDelay(pdMS_TO_TICKS(40)); + } +} +void worker(void *arg){ + auto *s=static_cast(arg); + s->run(); + if(s->park())parked_session=s;else delete s; + ESP_LOGI(TAG,"Stopped free=%lu stack=%u",(unsigned long)esp_get_free_heap_size(),(unsigned)uxTaskGetStackHighWaterMark(nullptr)); + xSemaphoreGive(done); + // The joiner deletes this task synchronously. Self-deletion defers the + // 28 KiB stack to Idle and can make an immediate re-entry fail allocation. + for(;;)vTaskSuspend(nullptr); +} +} +#ifdef BADGE_XIAOZHI_CONNECT_PROBE +extern "C" unsigned demo_xiaozhi_connect_probe(unsigned f){return f==0?connect_probe_state.load():f==1?connect_probe_fault.load():f==2?connect_probe_catalog.load():connect_probe_frames.load();} +#endif +extern "C" void demo_xiaozhi_enter(){xiaozhi_ui_create();xz_snapshot_t s{};s.volume=wanted_volume.load();xz_text_copy(s.detail,sizeof(s.detail),"说完自动å�‘é€�");xiaozhi_ui_render(&s);} +extern "C" void demo_xiaozhi_exit(){xiaozhi_ui_destroy();} +#ifdef BADGE_YAO_DEVICE_PROBE +extern "C" unsigned demo_xiaozhi_yao_probe(unsigned field){return field?yao_probe_tts_stop.load():yao_probe_samples.load();} +#endif +#if defined(BADGE_XIAOZHI_DEVICE_PROBE) || defined(BADGE_CONTROL_DEVICE_PROBE) || defined(BADGE_TOOL_CLOUD_PROBE) +extern "C" unsigned demo_xiaozhi_probe_volume(void){return wanted_volume.load();} +#endif +// Audio outranks the shared LVGL task (priority 4); I2S waits yield CPU back to UI. +extern "C" bool demo_xiaozhi_set_reading(const yao_record_t *record){ + if(started)return false; + if(record){yao_result_t result{};if(!record->id||!yao_calculate(record->lines,&result))return false;} + auto *copy=record?static_cast(malloc(sizeof(*record))):nullptr; + if(record&&!copy)return false; + if(copy)*copy=*record; + free(launch_reading);launch_reading=copy;return true; +} +extern "C" esp_err_t demo_xiaozhi_start(){ +#ifdef BADGE_XIAOZHI_DEVICE_PROBE +probe_ready=false; +#endif +if(started)return ESP_ERR_INVALID_STATE; +demo_xiaozhi_connection_tick(); +reclaim_idle_connection("startup",false); +yao_location_voice_active(true); +if(yao_location_worker_running()){ + xz_snapshot_t waiting{};waiting.state=XZ_CONNECTING;waiting.volume=wanted_volume.load(); + xz_text_copy(waiting.detail,sizeof(waiting.detail),"正在准备语音连接");xiaozhi_ui_post(&waiting); + ESP_LOGI(TAG,"Waiting for location HTTP cleanup before voice allocation"); + int64_t deadline=esp_timer_get_time()+10000000; + while(yao_location_worker_running()&&esp_timer_get_time()context_upload=false;session->context_turn=false; +free(session->reading);session->reading=launch_reading;launch_reading=nullptr; +session->reading_pending=session->reading!=nullptr; +ESP_LOGI(TAG,"Startup reading=%u snapshot_bytes=%u heap=%lu largest=%lu",session->reading_pending, + session->reading?(unsigned)sizeof(*session->reading):0u,(unsigned long)esp_get_free_heap_size(), + (unsigned long)heap_caps_get_largest_free_block(MALLOC_CAP_8BIT)); +// Reserve the other large block before the task stack and its small runtime +// allocations can fragment it. Hold it across every retry in this visit. +if(!session->reserve_codec()){ + session->reclaim_for_retry("reserve_failed"); + reclaim_idle_connection("reserve_failed",true); + if(!session->reserve_codec()){ + session->error("语音内存ä¸�足,按 OK é‡�试"); + delete session;vSemaphoreDelete(done);done=nullptr;yao_location_voice_active(false); + return ESP_ERR_NO_MEM; + } +} +if(xTaskCreate(worker,"xiaozhi",28672,session,5,&voice_worker)!=pdPASS){ + voice_worker=nullptr;session->memory_failure("voice_task",28672); + session->error("语音内存ä¸�足,请退出å�Žé‡�试"); + delete session;vSemaphoreDelete(done);done=nullptr;yao_location_voice_active(false);return ESP_ERR_NO_MEM; +} +started=true;badge_control_enable(true);return ESP_OK;} +extern "C" esp_err_t demo_xiaozhi_stop(){badge_control_enable(false);stopping=true;if(started){if(xSemaphoreTake(done,pdMS_TO_TICKS(10000))!=pdTRUE)return ESP_ERR_TIMEOUT;vTaskDelete(voice_worker);voice_worker=nullptr;started=false;} +#ifdef BADGE_XIAOZHI_DEVICE_PROBE +probe_ready=false; +#endif +if(done){vSemaphoreDelete(done);done=nullptr;}yao_location_voice_active(false);return ESP_OK;} +extern "C" bool demo_xiaozhi_set_volume(unsigned volume){if(!started||stopping||volume>100)return false;wanted_volume.store(volume);return true;} +extern "C" void demo_xiaozhi_key(bsp_btn_t button,bsp_btn_ev_t event){if(!started||stopping||event!=BSP_BTN_CLICK)return;if(button==BSP_BTN_OK)clicks.fetch_add(1);else{unsigned v=wanted_volume.load();wanted_volume=button==BSP_BTN_UP?std::min(100u,v+10):v>10?v-10:0;}} + +extern "C" bool demo_xiaozhi_active(void){return started.load()&&!stopping.load();} +extern "C" unsigned demo_xiaozhi_saved_volume(void){ + if(started)return wanted_volume.load(); + nvs_handle_t n;uint8_t value=40; + if(nvs_open("xiaozhi",NVS_READONLY,&n)==ESP_OK){nvs_get_u8(n,"volume",&value);nvs_close(n);} + return value<=100?value:40; +} +extern "C" esp_err_t demo_xiaozhi_save_volume(unsigned value){ + if(value>100)return ESP_ERR_INVALID_ARG; + if(started){wanted_volume=value;return ESP_OK;} + nvs_handle_t n;esp_err_t e=nvs_open("xiaozhi",NVS_READWRITE,&n); + if(e==ESP_OK){e=nvs_set_u8(n,"volume",value);if(e==ESP_OK)e=nvs_commit(n);nvs_close(n);} + return e; +} + +extern "C" bool demo_xiaozhi_idle(void){return background_idle.load();} +#ifdef BADGE_TOOL_CLOUD_PROBE +extern "C" unsigned demo_xiaozhi_cloud_completed(void){return cloud_completed.load();} +#endif +extern "C" void demo_xiaozhi_release_connection(void){ + if(started)return; + reclaim_idle_connection("api_release",true); +} +extern "C" esp_err_t demo_xiaozhi_get_backend(char *out,size_t size,bool *custom){ + if(!out||!size)return ESP_ERR_INVALID_ARG; + out[0]=0;if(custom)*custom=false; + nvs_handle_t n;char url[256]={0};size_t len=sizeof(url); + if(nvs_open("xiaozhi",NVS_READONLY,&n)==ESP_OK){ + esp_err_t e=nvs_get_str(n,"backend_url",url,&len);nvs_close(n); + if(e==ESP_OK&&valid_backend_url(url)&&url[0]){ + snprintf(out,size,"%s",url);if(custom)*custom=true;return ESP_OK; + } + } + snprintf(out,size,"%s",OTA);return ESP_OK; +} +extern "C" esp_err_t demo_xiaozhi_save_backend(const char *url){ + if(started)return ESP_ERR_INVALID_STATE; + if(!valid_backend_url(url))return ESP_ERR_INVALID_ARG; + nvs_handle_t n;esp_err_t e=nvs_open("xiaozhi",NVS_READWRITE,&n); + if(e!=ESP_OK)return e; + if(url&&url[0])e=nvs_set_str(n,"backend_url",url); + else {e=nvs_erase_key(n,"backend_url");if(e==ESP_ERR_NVS_NOT_FOUND)e=ESP_OK;} + if(e==ESP_OK)e=nvs_commit(n); + nvs_close(n); + if(e==ESP_OK){ + service_config=ServiceConfig{}; + reclaim_idle_connection("backend_change",true); + } + return e; +} +extern "C" void demo_xiaozhi_connection_tick(void){ + if(started)return; + int64_t now=esp_timer_get_time(); + if(parked_session&&!xz_connection_keep(parked_session->parked_at,now, + parked_session->connected&&!parked_session->failed,esp_get_free_heap_size())){ + demo_xiaozhi_release_connection();ESP_LOGI(TAG,"Idle connection released"); + } + if(service_config.saved&&!xz_cache_fresh(service_config.saved,now,600000000))service_config=ServiceConfig{}; +} +#ifdef BADGE_XIAOZHI_REUSE_PROBE +extern "C" unsigned demo_xiaozhi_reuse_probe(unsigned field){ + if(field==0)return probe_discovery.load(); + if(field==1)return probe_connections.load(); + if(field==2)return probe_handshakes.load(); + if(field==3)return parked_session!=nullptr; + if(field==4&&parked_session&&parked_session->mqtt){esp_mqtt_client_disconnect(parked_session->mqtt);return 1;} + return 0; +} +#endif diff --git a/main/xiaozhi_app.h b/main/xiaozhi_app.h new file mode 100644 index 0000000..1ac0b49 --- /dev/null +++ b/main/xiaozhi_app.h @@ -0,0 +1,41 @@ +#pragma once +#include "demo.h" +#include "yao_service.h" +#include +#ifdef __cplusplus +extern "C" { +#endif +void demo_xiaozhi_enter(void); +bool demo_xiaozhi_set_volume(unsigned volume); +void demo_xiaozhi_exit(void); +void demo_xiaozhi_key(bsp_btn_t button,bsp_btn_ev_t event); +esp_err_t demo_xiaozhi_start(void); +esp_err_t demo_xiaozhi_stop(void); +/* Navigation task, before start; copies a compact confirmed reading, not JSON. */ +bool demo_xiaozhi_set_reading(const yao_record_t *record); +// Navigation task only, outside the LVGL lock; never touches a running worker. +void demo_xiaozhi_connection_tick(void); +void demo_xiaozhi_release_connection(void); +#ifdef __cplusplus +} +#endif + +#ifdef __cplusplus +extern "C" { +#endif +bool demo_xiaozhi_active(void); +unsigned demo_xiaozhi_saved_volume(void); +esp_err_t demo_xiaozhi_save_volume(unsigned value); +#ifdef __cplusplus +} +#endif + +#ifdef __cplusplus +extern "C" { +#endif +bool demo_xiaozhi_idle(void); +esp_err_t demo_xiaozhi_get_backend(char *url,size_t size,bool *custom); +esp_err_t demo_xiaozhi_save_backend(const char *url); +#ifdef __cplusplus +} +#endif diff --git a/main/xiaozhi_buffer.c b/main/xiaozhi_buffer.c new file mode 100644 index 0000000..7c34631 --- /dev/null +++ b/main/xiaozhi_buffer.c @@ -0,0 +1,49 @@ +#include "xiaozhi_buffer.h" +bool xz_audio_arena_layout(size_t encoder,size_t decoder,size_t *queue_offset,size_t *bytes){ + const size_t alignment=8; /* int64_t fields in the playback queue */ + if(!encoder||!decoder||!queue_offset||!bytes||decoder>SIZE_MAX-(alignment-1))return false; + size_t offset=(decoder+alignment-1)&~(alignment-1); + if(offset>SIZE_MAX-sizeof(xz_audio_buffer_t))return false; + *queue_offset=offset; + *bytes=encoder>offset+sizeof(xz_audio_buffer_t)?encoder:offset+sizeof(xz_audio_buffer_t); + return true; +} +/* RFC 6716 TOC duration, at the decoder's 16 kHz output rate. Full packet + * validity is still checked by the Opus decoder before PCM reaches I2S. */ +unsigned xz_opus_samples(const uint8_t *data,size_t size){ + if(!data||!size)return 0; + unsigned config=data[0]>>3,code=data[0]&3; + unsigned samples=config>=16?(40u<<(config&3)):config>=12?(160u<<(config&1)): + (config&3)==3?960u:(160u<<(config&3)); + unsigned frames=code==0?1:code==3?(size>=2?(data[1]&63):0):2; + return frames&&samples*frames<=1920?samples*frames:0; +} +static void put(xz_audio_buffer_t *q,uint8_t v){q->data[q->tail]=v;q->tail=(q->tail+1)%XZ_AUDIO_CAPACITY;} +static uint8_t take(xz_audio_buffer_t *q){uint8_t v=q->data[q->head];q->head=(q->head+1)%XZ_AUDIO_CAPACITY;return v;} +bool xz_audio_room(const xz_audio_buffer_t *q){return !q||XZ_AUDIO_CAPACITY-q->used>=XZ_AUDIO_PACKET_MAX+4;} +bool xz_audio_push(xz_audio_buffer_t *q,const uint8_t *data,size_t size,int64_t now){ + unsigned samples=xz_opus_samples(data,size); + if(!q||!samples||size>XZ_AUDIO_PACKET_MAX||size+4>XZ_AUDIO_CAPACITY-q->used)return false; + if(!q->count)q->first_us=now; + put(q,size&255);put(q,size>>8);put(q,samples&255);put(q,samples>>8); + for(size_t i=0;iused+=size+4;q->samples+=samples;q->count++; + if(q->used>q->peak)q->peak=q->used; + return true; +} +bool xz_audio_ready(xz_audio_buffer_t *q,int64_t now,bool ended){ + if(!q||!q->count){if(q)q->playing=false;return false;} + /* 180 ms jitter reserve; short answers drain on stop or after 300 ms. + * A byte-full queue must drain even with unusually large/short packets. */ + if(q->playing||ended||q->samples>=2880||now-q->first_us>=300000||!xz_audio_room(q))q->playing=true; + return q->playing; +} +size_t xz_audio_pop(xz_audio_buffer_t *q,uint8_t *out,size_t capacity){ + if(!q||!q->count||!out)return 0; + unsigned length=q->data[q->head]|((unsigned)q->data[(q->head+1)%XZ_AUDIO_CAPACITY]<<8); + if(length>capacity)return 0; + (void)take(q);(void)take(q);unsigned samples=take(q);samples|=(unsigned)take(q)<<8; + for(unsigned i=0;icount--;q->used-=length+4;q->samples-=samples; + return length; +} diff --git a/main/xiaozhi_buffer.h b/main/xiaozhi_buffer.h new file mode 100644 index 0000000..d79a5f3 --- /dev/null +++ b/main/xiaozhi_buffer.h @@ -0,0 +1,26 @@ +#pragma once +#include +#include +#include +#ifdef __cplusplus +extern "C" { +#endif +#define XZ_AUDIO_CAPACITY 4096u +#define XZ_AUDIO_PACKET_MAX 1500u +/* One owner: the network/audio worker. Lives after the decoder in its arena; + * encoder and decoder/playback queue are never active at the same time. */ +typedef struct { + uint8_t data[XZ_AUDIO_CAPACITY]; + unsigned head,tail,used,count,samples,peak; + int64_t first_us; + bool playing; +} xz_audio_buffer_t; +bool xz_audio_arena_layout(size_t encoder,size_t decoder,size_t *queue_offset,size_t *bytes); +unsigned xz_opus_samples(const uint8_t *data,size_t size); +bool xz_audio_push(xz_audio_buffer_t *q,const uint8_t *data,size_t size,int64_t now); +bool xz_audio_ready(xz_audio_buffer_t *q,int64_t now,bool ended); +size_t xz_audio_pop(xz_audio_buffer_t *q,uint8_t *out,size_t capacity); +bool xz_audio_room(const xz_audio_buffer_t *q); +#ifdef __cplusplus +} +#endif diff --git a/main/xiaozhi_caption.h b/main/xiaozhi_caption.h new file mode 100644 index 0000000..bd3122a --- /dev/null +++ b/main/xiaozhi_caption.h @@ -0,0 +1,58 @@ +#pragma once +#include +#include +#include +#include +/* Suppress whole service progress markers/standalone format placeholders. + * Ordinary percentages and sentences explaining code remain untouched. */ +static inline bool xz_caption_is_tool_progress(const char *text){ + if(!text)return false; + const char *p=text;while(*p==' '||*p=='\t'||*p=='\r'||*p=='\n')p++; + if(*p++!='%')return false; + while(*p==' '||*p=='\t')p++; + if(*p=='s'){ + const char *end=p+1; + if(!strncmp(end,"...",3)||!strncmp(end,"…",3))end+=3; + while(*end==' '||*end=='\t'||*end=='\r'||*end=='\n')end++; + if(!*end)return true; + } + if(strncmp(p,"self.",5))return false; + p+=5; + unsigned part=0,total=0; + while(*p&&total++<128){ + if(part&&(*p==' '||*p=='\t'||*p=='\r'||*p=='\n')){ + while(*p==' '||*p=='\t'||*p=='\r'||*p=='\n')p++; + return !*p; + } + if(part&&(!strncmp(p,"...",3)||!strncmp(p,"…",3))){p+=3;while(*p==' '||*p=='\t'||*p=='\r'||*p=='\n')p++;return !*p;} + if((*p>='a'&&*p<='z')||(*p>='A'&&*p<='Z')||(*p>='0'&&*p<='9')||*p=='_'){part++;p++;} + else if(*p=='.'&&part){part=0;p++;}else return false; + } + // Some responses omit the trailing ellipsis. Accept only a complete + // identifier, possibly followed by whitespace; never a prose sentence. + return part&&!*p; +} +/* Return a complete UTF-8 code point boundary; malformed/truncated input stops. */ +static inline size_t xz_caption_next(const char *text,size_t at){ + const unsigned char *p=(const unsigned char *)text+at; + if(!*p)return at; + unsigned n=*p<128?1:((*p&0xe0)==0xc0?2:((*p&0xf0)==0xe0?3:((*p&0xf8)==0xf0?4:0))); + if(!n)return at; + for(unsigned i=1;i +#include +/* MCP discovery belongs to the transport, not the audio conversation. The + * service sends initialize BEFORE hello on a fresh MQTT connection. Only + * read-only setup is exempt; commands and speech still require the live session. */ +static inline bool xz_message_allowed(const char *type,const char *method, + bool hello,bool has_session,bool matches){ + if(!strcmp(type,"hello"))return true; + if(!strcmp(type,"mcp")&&(!strcmp(method,"initialize")||!strcmp(method,"tools/list")|| + !strcmp(method,"notifications/initialized")))return true; + return hello&&(!has_session||matches); +} diff --git a/main/xiaozhi_face.h b/main/xiaozhi_face.h new file mode 100644 index 0000000..6429593 --- /dev/null +++ b/main/xiaozhi_face.h @@ -0,0 +1,38 @@ +#pragma once +#include "xiaozhi_logic.h" +#include +typedef enum { + XZ_FACE_NEUTRAL,XZ_FACE_HAPPY,XZ_FACE_LAUGHING,XZ_FACE_FUNNY, + XZ_FACE_SAD,XZ_FACE_ANGRY,XZ_FACE_CRYING,XZ_FACE_LOVING, + XZ_FACE_EMBARRASSED,XZ_FACE_SURPRISED,XZ_FACE_SHOCKED,XZ_FACE_THINKING, + XZ_FACE_WINKING,XZ_FACE_COOL,XZ_FACE_RELAXED,XZ_FACE_DELICIOUS, + XZ_FACE_KISSY,XZ_FACE_CONFIDENT,XZ_FACE_SLEEPY,XZ_FACE_SILLY,XZ_FACE_CONFUSED, + XZ_FACE_COUNT,XZ_FACE_BLINK=XZ_FACE_COUNT +} xz_face_t; +static inline xz_face_t xz_face_emotion(const char *name){ + static const char *const names[]={"neutral","happy","laughing","funny","sad","angry","crying","loving","embarrassed","surprised","shocked","thinking","winking","cool","relaxed","delicious","kissy","confident","sleepy","silly","confused"}; + if(name)for(unsigned i=0;isrc_type!=LV_IMAGE_SRC_VARIABLE)return LV_RESULT_INVALID; + const lv_image_dsc_t *im=d->src; + if(im->header.cf!=LV_COLOR_FORMAT_A8||!(im->header.flags&LV_IMAGE_FLAGS_USER1))return LV_RESULT_INVALID; + if(!im->header.w||im->header.w>160||!im->header.h||im->header.h>140)return LV_RESULT_INVALID; + *header=im->header;header->flags=0;return LV_RESULT_OK; +} +static lv_result_t face_decode_open(lv_image_decoder_t *decoder,lv_image_decoder_dsc_t *d){ + (void)decoder;d->args.no_cache=true; + d->user_data=lv_draw_buf_create(d->header.w,1,LV_COLOR_FORMAT_A8,LV_STRIDE_AUTO); + return d->user_data?LV_RESULT_OK:LV_RESULT_INVALID; +} +static lv_result_t face_decode_area(lv_image_decoder_t *decoder,lv_image_decoder_dsc_t *d, + const lv_area_t *full,lv_area_t *area){ + (void)decoder; + if(area->y1==LV_COORD_MIN){*area=*full;area->y2=area->y1;} + else {area->y1++;area->y2++;} + if(area->y1>full->y2)return LV_RESULT_INVALID; + const lv_image_dsc_t *im=d->src;lv_draw_buf_t *row=d->user_data; + unsigned w=lv_area_get_width(full); + if(!row||!xz_face_rle_row(im->data,im->data_size,im->header.w,im->header.h, + area->y1,full->x1,w,row->data))return LV_RESULT_INVALID; + row->header.w=w;d->decoded=row;return LV_RESULT_OK; +} +static void face_decode_close(lv_image_decoder_t *decoder,lv_image_decoder_dsc_t *d){ + (void)decoder;if(d->user_data)lv_draw_buf_destroy(d->user_data);d->user_data=NULL;d->decoded=NULL; +} +static void face_decoder_start(void){ + if(face_decoder)return; + face_decoder=lv_image_decoder_create();if(!face_decoder)return; + lv_image_decoder_set_info_cb(face_decoder,face_decode_info); + lv_image_decoder_set_open_cb(face_decoder,face_decode_open); + lv_image_decoder_set_get_area_cb(face_decoder,face_decode_area); + lv_image_decoder_set_close_cb(face_decoder,face_decode_close); +} +static void face_decoder_stop(void){ + if(!face_decoder)return; + /* Header entries contain the decoder pointer; never leave it dangling. */ + lv_image_header_cache_drop(NULL); + lv_image_decoder_delete(face_decoder);face_decoder=NULL; +} diff --git a/main/xiaozhi_face_rle.h b/main/xiaozhi_face_rle.h new file mode 100644 index 0000000..45db9cc --- /dev/null +++ b/main/xiaozhi_face_rle.h @@ -0,0 +1,24 @@ +#pragma once +#include +#include +#include +#include + +/* Little-endian row offsets followed by (count, alpha) runs. Random access + * keeps clipped repaints bounded to visible rows; no whole-image buffer. */ +static inline unsigned xz_rle_u16(const uint8_t *p){return p[0]|((unsigned)p[1]<<8);} +static inline bool xz_face_rle_row(const uint8_t *data,size_t size,unsigned w,unsigned h, + unsigned y,unsigned x,unsigned count,uint8_t *out){ + size_t table=2u*(h+1u); + if(!data||!out||!w||!h||y>=h||x>w||count>w-x||sizesize||((end-begin)&1u))return false; + unsigned at=0; + for(unsigned i=begin;iw-at)return false; + unsigned left=at>x?at:x,right=at+nleft)memset(out+left-x,data[i+1],right-left); + at+=n; + } + return at==w; +} diff --git a/main/xiaozhi_face_transition.h b/main/xiaozhi_face_transition.h new file mode 100644 index 0000000..db4096c --- /dev/null +++ b/main/xiaozhi_face_transition.h @@ -0,0 +1,13 @@ +#pragma once +#include "xiaozhi_face.h" +enum {XZ_THINKING_MIN_MS=900}; +typedef struct {xz_state_t previous;uint32_t until;bool armed;} xz_face_transition_t; +/* Visual hold only: neither PCM, subtitles nor network state waits for this. */ +static inline xz_face_t xz_face_transition(xz_face_transition_t *t,xz_state_t state,xz_face_t emotion,uint32_t now){ + if(state==XZ_THINKING&&t->previous!=XZ_THINKING&&!t->armed){t->until=now+XZ_THINKING_MIN_MS;t->armed=true;} + if(state!=XZ_THINKING&&state!=XZ_SPEAKING)t->armed=false; + if(state==XZ_SPEAKING&&t->armed&&(int32_t)(t->until-now)<=0)t->armed=false; + t->previous=state; + if(t->armed)return XZ_FACE_THINKING; + return xz_face_effective(state,emotion); +} diff --git a/main/xiaozhi_face_variants.h b/main/xiaozhi_face_variants.h new file mode 100644 index 0000000..e7642e5 --- /dev/null +++ b/main/xiaozhi_face_variants.h @@ -0,0 +1,101 @@ +#pragma once +#include "xiaozhi_face.h" +enum {XZ_FACE_VARIANTS=3,XZ_EYE_COOL_ROUND=XZ_FACE_COUNT+1,XZ_EYE_COOL_SPORT,XZ_EYE_ANGRY_PUFF,XZ_EYE_WINK_LEFT,XZ_EYE_COUNT}; +typedef struct {uint8_t eyes,mouth;int8_t eye_x,mouth_x;} xz_face_pose_t; +/* Deliberate mood-preserving combinations, not random cross-emotion parts. */ +static inline const xz_face_pose_t *xz_face_pose(xz_face_t emotion,unsigned variant){ + static const xz_face_pose_t poses[XZ_FACE_COUNT][XZ_FACE_VARIANTS]={ + {{XZ_FACE_NEUTRAL,XZ_FACE_NEUTRAL,0,0},{XZ_FACE_HAPPY,XZ_FACE_NEUTRAL,0,0},{XZ_FACE_RELAXED,XZ_FACE_RELAXED,0,0}}, + {{XZ_FACE_HAPPY,XZ_FACE_HAPPY,0,0},{XZ_FACE_WINKING,XZ_FACE_HAPPY,0,0},{XZ_FACE_LAUGHING,XZ_FACE_LAUGHING,0,0}}, + {{XZ_FACE_LAUGHING,XZ_FACE_LAUGHING,0,0},{XZ_FACE_HAPPY,XZ_FACE_LAUGHING,0,0},{XZ_FACE_NEUTRAL,XZ_FACE_LAUGHING,0,0}}, + {{XZ_FACE_FUNNY,XZ_FACE_FUNNY,0,0},{XZ_FACE_WINKING,XZ_FACE_LAUGHING,0,0},{XZ_FACE_LAUGHING,XZ_FACE_SILLY,0,0}}, + {{XZ_FACE_SAD,XZ_FACE_SAD,0,0},{XZ_FACE_RELAXED,XZ_FACE_SAD,0,-2},{XZ_FACE_CRYING,XZ_FACE_EMBARRASSED,0,0}}, + {{XZ_FACE_ANGRY,XZ_FACE_ANGRY,0,0},{XZ_EYE_ANGRY_PUFF,XZ_FACE_ANGRY,0,0},{XZ_FACE_CONFIDENT,XZ_FACE_SAD,0,2}}, + {{XZ_FACE_CRYING,XZ_FACE_CRYING,0,0},{XZ_FACE_SAD,XZ_FACE_CRYING,0,0},{XZ_FACE_RELAXED,XZ_FACE_SAD,0,0}}, + {{XZ_FACE_LOVING,XZ_FACE_LOVING,0,0},{XZ_FACE_KISSY,XZ_FACE_KISSY,0,0},{XZ_FACE_WINKING,XZ_FACE_HAPPY,0,0}}, + {{XZ_FACE_EMBARRASSED,XZ_FACE_EMBARRASSED,0,0},{XZ_FACE_RELAXED,XZ_FACE_NEUTRAL,0,-2},{XZ_FACE_WINKING,XZ_FACE_EMBARRASSED,-2,0}}, + {{XZ_FACE_SURPRISED,XZ_FACE_SURPRISED,0,0},{XZ_FACE_NEUTRAL,XZ_FACE_SURPRISED,0,0},{XZ_FACE_SHOCKED,XZ_FACE_SURPRISED,0,0}}, + {{XZ_FACE_SHOCKED,XZ_FACE_SHOCKED,0,0},{XZ_FACE_SURPRISED,XZ_FACE_SHOCKED,0,0},{XZ_FACE_CONFUSED,XZ_FACE_SHOCKED,0,0}}, + {{XZ_FACE_THINKING,XZ_FACE_THINKING,0,0},{XZ_FACE_CONFUSED,XZ_FACE_THINKING,0,-2},{XZ_FACE_CONFIDENT,XZ_FACE_CONFUSED,-2,0}}, + {{XZ_FACE_WINKING,XZ_FACE_WINKING,0,0},{XZ_FACE_HAPPY,XZ_FACE_HAPPY,0,0},{XZ_FACE_WINKING,XZ_FACE_KISSY,2,0}}, + {{XZ_FACE_COOL,XZ_FACE_COOL,0,0},{XZ_EYE_COOL_ROUND,XZ_FACE_CONFIDENT,0,0},{XZ_EYE_COOL_SPORT,XZ_FACE_WINKING,0,0}}, + {{XZ_FACE_RELAXED,XZ_FACE_RELAXED,0,0},{XZ_FACE_HAPPY,XZ_FACE_RELAXED,0,0},{XZ_FACE_SLEEPY,XZ_FACE_NEUTRAL,0,0}}, + {{XZ_FACE_DELICIOUS,XZ_FACE_DELICIOUS,0,0},{XZ_FACE_WINKING,XZ_FACE_SILLY,0,0},{XZ_FACE_HAPPY,XZ_FACE_DELICIOUS,0,-2}}, + {{XZ_FACE_KISSY,XZ_FACE_KISSY,0,0},{XZ_FACE_LOVING,XZ_FACE_KISSY,0,0},{XZ_EYE_WINK_LEFT,XZ_FACE_KISSY,0,2}}, + {{XZ_FACE_CONFIDENT,XZ_FACE_CONFIDENT,0,0},{XZ_FACE_WINKING,XZ_FACE_CONFIDENT,0,0},{XZ_FACE_NEUTRAL,XZ_FACE_CONFIDENT,2,0}}, + {{XZ_FACE_SLEEPY,XZ_FACE_SLEEPY,0,0},{XZ_FACE_RELAXED,XZ_FACE_SLEEPY,0,0},{XZ_FACE_BLINK,XZ_FACE_RELAXED,0,0}}, + {{XZ_FACE_SILLY,XZ_FACE_SILLY,0,0},{XZ_EYE_WINK_LEFT,XZ_FACE_SILLY,0,0},{XZ_FACE_FUNNY,XZ_FACE_SILLY,0,0}}, + {{XZ_FACE_CONFUSED,XZ_FACE_CONFUSED,0,0},{XZ_FACE_THINKING,XZ_FACE_SURPRISED,0,-2},{XZ_FACE_EMBARRASSED,XZ_FACE_CONFUSED,-2,0}} + }; + return &poses[(unsigned)emotion=XZ_FACE_COUNT)emotion=XZ_FACE_NEUTRAL; + if(variant>=XZ_FACE_VARIANTS)variant=0; + if(emotion==XZ_FACE_NEUTRAL) + return variant<2?xz_portrait_pose(XZ_FACE_ANGRY,variant):xz_portrait_pose(XZ_FACE_CONFIDENT,0); + /* Symmetric eyes remove unilateral-wink differences; keep a distinct + * open-eyed variant without changing the requested laughing/kissing mouth. */ + static const xz_face_pose_t laugh_open={XZ_FACE_NEUTRAL,XZ_FACE_LAUGHING,0,0}; + static const xz_face_pose_t kiss_open={XZ_FACE_NEUTRAL,XZ_FACE_KISSY,0,0}; + static const xz_face_pose_t kiss_smile={XZ_FACE_HAPPY,XZ_FACE_KISSY,0,0}; + if(variant==2&&emotion==XZ_FACE_LAUGHING)return &laugh_open; + if(variant==2&&emotion==XZ_FACE_KISSY)return &kiss_open; + if(variant==1&&emotion==XZ_FACE_KISSY)return &kiss_smile; + return xz_portrait_pose(emotion,variant); +} +static inline unsigned xz_roadking_eyes(xz_face_t emotion,unsigned variant,bool blink){ + const xz_face_pose_t *pose=xz_roadking_pose(emotion,variant); + if(!blink)return pose->eyes; + /* Keep the angry brows during an automatic blink. */ + return pose->eyes==XZ_FACE_ANGRY||pose->eyes==XZ_EYE_ANGRY_PUFF?XZ_EYE_ANGRY_PUFF:XZ_FACE_BLINK; +} +/* Worker-owned, RAM-only history. Zero means no prior choice; stored ids are +1. */ +typedef struct {uint8_t last[XZ_FACE_COUNT],remaining[XZ_FACE_COUNT],emotion,variant;bool active;} xz_face_selector_t; +static inline void xz_face_new_turn(xz_face_selector_t *s){s->active=false;} +static inline unsigned xz_face_select(xz_face_selector_t *s,xz_face_t emotion,uint32_t entropy){ + unsigned e=(unsigned)emotionactive&&s->emotion==e)return s->variant; + unsigned previous=s->last[e],bag=s->remaining[e]; + if(!bag)bag=(1u<remaining[e]=(uint8_t)(bag&~(1u<last[e]=(uint8_t)(pick+1);s->emotion=(uint8_t)e;s->variant=(uint8_t)pick;s->active=true; + return pick; +} +static inline unsigned xz_face_pose_mouth(xz_state_t state,xz_face_t emotion,unsigned variant,unsigned level,uint32_t until,uint32_t now){ + unsigned phase=xz_face_mouth(state,level,until,now); + return phase?XZ_FACE_COUNT+phase-1:xz_face_pose(xz_face_effective(state,emotion),variant)->mouth; +} diff --git a/main/xiaozhi_logic.h b/main/xiaozhi_logic.h new file mode 100644 index 0000000..ab441d4 --- /dev/null +++ b/main/xiaozhi_logic.h @@ -0,0 +1,42 @@ +#pragma once +#include +#include +typedef enum {XZ_IDLE,XZ_CONNECTING,XZ_ACTIVATION,XZ_READY,XZ_LISTENING,XZ_THINKING,XZ_SPEAKING,XZ_ERROR} xz_state_t; +typedef enum {XZ_NO_ACTION,XZ_CONNECT,XZ_START,XZ_PAUSE,XZ_INTERRUPT} xz_action_t; +typedef enum {XZ_FAULT_NONE,XZ_FAULT_TRANSPORT,XZ_FAULT_TIMEOUT,XZ_FAULT_MEMORY, + XZ_FAULT_QUEUE,XZ_FAULT_PROTOCOL,XZ_FAULT_AUDIO,XZ_FAULT_SERVER_END} xz_fault_t; +/* Start capture only after discovery. The shared codec arena is reserved + * before the handshake and retained until this audio session is parked. */ +static inline bool xz_session_ready(bool hello,bool tools_advertised){return hello&&tools_advertised;} +/* RAM-only service lease. Never extend it merely by checking its age. */ +static inline bool xz_cache_fresh(int64_t since,int64_t now,int64_t ttl){ + return since>0&&now>=since&&now-since=49152&&xz_cache_fresh(since,now,120000000); +} +/* An active listening turn must never be treated as idle from PCM amplitude. + * Keep errors visible; only a paused/ended session may return to local wake. */ +static inline bool xz_background_idle(xz_state_t state,bool conversation,int64_t since,int64_t now){ + return !conversation&&(state==XZ_IDLE||state==XZ_READY)&&since>0&&now>=since&&now-since>=60000000; +} +static inline int64_t xz_retry_delay(xz_fault_t reason,unsigned attempts){ + return (reason==XZ_FAULT_TRANSPORT||reason==XZ_FAULT_TIMEOUT)&&attempts<3?(1000000LL<=resume_at; +} +static inline bool xz_tts_allowed(bool active,xz_state_t state,int64_t now,int64_t ignore_until){ + return active&&now>=ignore_until&&(state==XZ_LISTENING||state==XZ_THINKING||state==XZ_SPEAKING); +} +static inline bool xz_tts_drained(int64_t stopped,int64_t last_audio,int64_t now){ + int64_t latest=stopped>last_audio?stopped:last_audio; + return stopped>0&&now>=latest&&now-latest>400000; +} diff --git a/main/xiaozhi_style.c b/main/xiaozhi_style.c new file mode 100644 index 0000000..b02a0d0 --- /dev/null +++ b/main/xiaozhi_style.c @@ -0,0 +1,18 @@ +#include "xiaozhi_style.h" +#include "nvs.h" +#include "esp_log.h" +#include +static atomic_uint current_style; +void xiaozhi_style_init(void){ + uint8_t value=0;nvs_handle_t n; + if(nvs_open("xiaozhi",NVS_READONLY,&n)==ESP_OK){if(nvs_get_u8(n,"face_style",&value)!=ESP_OK)value=0;nvs_close(n);} + atomic_store(¤t_style,value=XZ_STYLE_COUNT)return false; + nvs_handle_t n;esp_err_t e=nvs_open("xiaozhi",NVS_READWRITE,&n); + if(e==ESP_OK){e=nvs_set_u8(n,"face_style",(uint8_t)style);if(e==ESP_OK)e=nvs_commit(n);nvs_close(n);} + if(e!=ESP_OK){ESP_LOGW("xz_style","Style save failed: %d",(int)e);return false;} + atomic_store(¤t_style,style);return true; +} diff --git a/main/xiaozhi_style.h b/main/xiaozhi_style.h new file mode 100644 index 0000000..a2cd66f --- /dev/null +++ b/main/xiaozhi_style.h @@ -0,0 +1,14 @@ +#pragma once +#include +#ifdef __cplusplus +extern "C" { +#endif +/* Keep persisted style IDs 0/1 compatible with earlier firmware. */ +enum {XZ_STYLE_CUTE,XZ_STYLE_ABSTRACT,XZ_STYLE_FEMALE,XZ_STYLE_ROUND,XZ_STYLE_COUNT}; +/* Init/set from navigation task outside LVGL lock; get is cached and thread-safe. */ +void xiaozhi_style_init(void); +unsigned xiaozhi_style_get(void); +bool xiaozhi_style_set(unsigned style); +#ifdef __cplusplus +} +#endif diff --git a/main/xiaozhi_text.c b/main/xiaozhi_text.c new file mode 100644 index 0000000..c4d0c77 --- /dev/null +++ b/main/xiaozhi_text.c @@ -0,0 +1,76 @@ +#include "xiaozhi_text.h" +#include +#include + +size_t xz_utf8_decode(const char *s, uint32_t *cp) { + const unsigned char *p = (const unsigned char *)s; + if(!p || !*p) return 0; + unsigned n = *p < 0x80 ? 1 : *p >= 0xc2 && *p <= 0xdf ? 2 : + *p >= 0xe0 && *p <= 0xef ? 3 : *p >= 0xf0 && *p <= 0xf4 ? 4 : 0; + if(!n) return 0; + uint32_t c = *p & (n == 1 ? 0x7f : (1u << (7-n))-1); + for(unsigned i=1; i=0xd800 && c<=0xdfff) || c>0x10ffff) return 0; + *cp=c; + return n; +} + +static const char *emoji(uint32_t c) { + switch(c) { + case 0x1f600: case 0x1f601: case 0x1f603: case 0x1f604: case 0x1f606: return "[开心]"; + case 0x1f602: case 0x1f923: return "[大笑]"; + case 0x1f60a: case 0x1f642: case 0x263a: return "[微笑]"; + case 0x1f609: return "[眨眼]"; + case 0x1f60d: case 0x1f970: return "[喜欢]"; + case 0x1f622: case 0x1f62d: return "[å“­æ³£]"; + case 0x1f914: return "[æ€�考]"; + case 0x1f44d: return "[赞]"; + case 0x1f44f: return "[鼓掌]"; + case 0x1f44b: return "[挥手]"; + case 0x1f64f: return "[感谢]"; + case 0x2764: case 0x1f496: case 0x1f497: case 0x1f499: case 0x1f49a: return "[爱心]"; + case 0x1f389: case 0x1f38a: return "[庆ç¥�]"; + case 0x2728: case 0x1f31f: return "[闪亮]"; + case 0x1f525: return "[ç�«ç„°]"; + case 0x1f4a1: return "[ç�µæ„Ÿ]"; + case 0x1f3b5: case 0x1f3b6: return "[音ä¹�]"; + case 0x2705: case 0x2714: return "[完æˆ�]"; + case 0x274c: return "[错误]"; + case 0x26a0: return "[注æ„�]"; + default: return NULL; + } +} + +size_t xz_caption_normalize(char *out,size_t cap,const char *text,bool (*supported)(uint32_t)) { + if(!cap) return 0; + size_t used=0; + const char *p=text ? text : ""; + while(*p) { + uint32_t cp=0; + size_t n=xz_utf8_decode(p,&cp), count; + const char *replacement=NULL; + char token[16]; + if(!n) { replacement="[ç¼–ç �错误]"; n=1; } + else if(cp==0x200b || cp==0x200c || cp==0x200d || cp==0xfeff || + (cp>=0xfe00 && cp<=0xfe0f) || (cp>=0xe0100 && cp<=0xe01ef) || + (cp>=0x1f3fb && cp<=0x1f3ff) || cp=='\r') { p+=n; continue; } + else if(cp=='\t' || cp==0xa0) replacement=" "; + else if(cp<32 && cp!='\n') { p+=n; continue; } + else if((replacement=emoji(cp))!=NULL) { /* Named emoji remain readable. */ } + else if(cp!='\n' && supported && !supported(cp)) { + /* Do not silently erase rare names or replace one Han character with another. */ + if(cp>=0x1f000 && cp<=0x1faff) replacement="[表情]"; + else { snprintf(token,sizeof(token),"[U+%04lX]",(unsigned long)cp); replacement=token; } + } + count=replacement ? strlen(replacement) : n; + if(count>=cap-used) break; + memcpy(out+used,replacement ? replacement : p,count); + used+=count; p+=n; + } + out[used]=0; + return used; +} diff --git a/main/xiaozhi_text.h b/main/xiaozhi_text.h new file mode 100644 index 0000000..e2eaaec --- /dev/null +++ b/main/xiaozhi_text.h @@ -0,0 +1,15 @@ +#pragma once +#include +#include +#include +#ifdef __cplusplus +extern "C" { +#endif +/* Strict UTF-8, no incomplete code points or partial fallback tokens. */ +size_t xz_utf8_decode(const char *s, uint32_t *codepoint); +size_t xz_caption_normalize(char *out, size_t capacity, const char *text, + bool (*supported)(uint32_t)); +bool xiaozhi_font_has_glyph(uint32_t codepoint); +#ifdef __cplusplus +} +#endif diff --git a/main/xiaozhi_tools.c b/main/xiaozhi_tools.c new file mode 100644 index 0000000..43785ea --- /dev/null +++ b/main/xiaozhi_tools.c @@ -0,0 +1,212 @@ +#include "xiaozhi_tools.h" +#include "yao_service.h" +#include "badge_alarm_service.h" +#include "profile_edit.h" +#include "badge_control.h" +#include "badge_profile.h" +#include "voice_catalog.h" +#include "radio_tool_catalog.h" +#include +#include +#include +#ifdef BADGE_CONTROL_HOST_TEST +extern uint32_t xz_tools_random(void); +#else +#include "esp_random.h" +#define xz_tools_random esp_random +#endif +static int last_random_clip=-1; +static unsigned clip_pack(unsigned clip){unsigned p=0;while(p+1=voice_packs[p+1].first)p++;return p;} + +static const char *string(const cJSON *o,const char *key){const cJSON *v=cJSON_GetObjectItemCaseSensitive(o,key);return cJSON_IsString(v)?v->valuestring:"";} +static cJSON *rpc_error(cJSON *reply,int code,const char *message){cJSON *e=cJSON_AddObjectToObject(reply,"error");cJSON_AddNumberToObject(e,"code",code);cJSON_AddStringToObject(e,"message",message);return reply;} +static cJSON *content(cJSON *reply,const char *text,bool error){cJSON *r=cJSON_AddObjectToObject(reply,"result"),*a=cJSON_AddArrayToObject(r,"content"),*item=cJSON_CreateObject();cJSON_AddBoolToObject(r,"isError",error);cJSON_AddStringToObject(item,"type","text");cJSON_AddStringToObject(item,"text",text);cJSON_AddItemToArray(a,item);return reply;} +static cJSON *object_content(cJSON *reply,cJSON *o){char *text=cJSON_PrintUnformatted(o);content(reply,text?text:"Out of memory",text==NULL);cJSON_free(text);cJSON_Delete(o);return reply;} +void xz_tools_complete(cJSON *reply,int completion){ + cJSON_DeleteItemFromObjectCaseSensitive(reply,"result"); + if(completion==1&&badge_control_created_id()){char done[96];snprintf(done,sizeof(done),"æ��醒已ä¿�存,id=%u。å�¯æŸ¥è¯¢æ��醒确认。",(unsigned)badge_control_created_id());content(reply,done,false);} + else if(completion==1)content(reply,"指令已执行。å�¯ä»¥ç»§ç»­ä¸‹ä¸€æ�¡æ“�作;需è¦�具体数值时查询设备状æ€�或æ��醒。",false); + else if(completion==0)content(reply,"指令ä»�在处ç�†ä¸­ï¼Œå°šæœªç¡®è®¤å®Œæˆ�。请查询状æ€�,暂勿é‡�å¤�æ��交或执行下一æ�¡æŽ§åˆ¶æ“�作。",false); + else content(reply,"指令未能完æˆ�。请查询当å‰�状æ€�å�Žå†�决定下一步,ä¸�è¦�宣称æ“�作æˆ�功。",true); + cJSON_AddStringToObject(cJSON_GetObjectItemCaseSensitive(reply,"result"),"execution",completion==1?"completed":completion==0?"pending":"failed"); +} +static bool integer(const cJSON *args,const char *key,int min,int max,unsigned *value){const cJSON *n=cJSON_GetObjectItemCaseSensitive(args,key);if(!cJSON_IsNumber(n)||n->valuedoublevaluedouble>max||n->valuedouble!=(int)n->valuedouble)return false;*value=(unsigned)n->valueint;return true;} +static bool keys(const cJSON *args,const char *first,const char *second){if(!args)return !first;if(!cJSON_IsObject(args))return false;unsigned a=0,b=0;for(const cJSON *v=args->child;v;v=v->next){if(first&&!strcmp(v->string,first)){if(a++)return false;}else if(second&&!strcmp(v->string,second)){if(b++)return false;}else return false;}return true;} +static bool allowed(const cJSON *args,const char *const *names,unsigned count){ + if(!cJSON_IsObject(args))return false; + unsigned seen=0;for(const cJSON *v=args->child;v;v=v->next){unsigned i=0;while(istring,names[i]))i++;if(i==count||(seen&(1u<1&&previous_matches; + unsigned bound=count-(exclude_previous?1:0); + unsigned choice=(unsigned)(((uint64_t)xz_tools_random()*bound)>>32); + for(unsigned i=0;iid){ + *ticket=0;cJSON *reply=cJSON_CreateObject();if(!reply)return NULL; + cJSON_AddStringToObject(reply,"jsonrpc","2.0");cJSON_AddItemToObject(reply,"id",cJSON_Duplicate(id,true)); + const cJSON *args=cJSON_GetObjectItemCaseSensitive(params,"arguments"); + if(args&&!keys(args,"result_id",NULL))return rpc_error(reply,-32602,"Invalid arguments"); + cJSON *record=yao_record_json(snapshot);if(!record){cJSON_Delete(reply);return NULL;} + const cJSON *wanted=cJSON_GetObjectItemCaseSensitive(args,"result_id"),*actual=cJSON_GetObjectItemCaseSensitive(record,"result_id"); + bool matches=cJSON_IsNumber(actual)&&(!wanted||(cJSON_IsNumber(wanted)&&wanted->valuedouble==actual->valuedouble)); + if(!matches){cJSON_Delete(record);return content(reply,"当å‰�正在解读页é�¢ç¡®è®¤çš„å�¦è±¡ï¼Œè¯·çœ�ç•¥ result_id 查询本次结果,ä¸�è¦�使用旧编å�·ã€‚",true);} + /* Full text comes from immutable data; current_time is generated now. */ + return object_content(reply,record); + } + if(!strcmp(string(request,"method"),"tools/call")&&!strcmp(string(params,"name"),"self.yao.cast")){ + *ticket=0;const cJSON *id=cJSON_GetObjectItemCaseSensitive(request,"id"); + if(!id)return NULL; + cJSON *reply=cJSON_CreateObject();if(!reply)return NULL; + cJSON_AddStringToObject(reply,"jsonrpc","2.0");cJSON_AddItemToObject(reply,"id",cJSON_Duplicate(id,true)); + return content(reply,"当å‰�是已有å�¦è±¡çš„解读,ç¦�æ­¢é‡�æ–°èµ·å�¦ã€‚请使用传入原文或 self.yao.get 查询。",true); + } + return xz_tools_handle(request,volume,connected,ticket); +} +cJSON *xz_tools_handle(const cJSON *request,unsigned volume,bool connected,uint32_t *ticket){ + *ticket=0;const cJSON *id=cJSON_GetObjectItemCaseSensitive(request,"id");if(!id)return NULL; + cJSON *reply=cJSON_CreateObject();if(!reply)return NULL;cJSON_AddStringToObject(reply,"jsonrpc","2.0"); + cJSON_AddItemToObject(reply,"id",cJSON_IsString(id)||cJSON_IsNumber(id)?cJSON_Duplicate(id,true):cJSON_CreateNull()); + if(!cJSON_IsObject(request)||(!cJSON_IsString(id)&&!cJSON_IsNumber(id))||strcmp(string(request,"jsonrpc"),"2.0"))return rpc_error(reply,-32600,"Invalid JSON-RPC request"); + const char *method=string(request,"method");const cJSON *params=cJSON_GetObjectItemCaseSensitive(request,"params"); + if(!strcmp(method,"initialize")){cJSON *r=cJSON_AddObjectToObject(reply,"result");cJSON_AddStringToObject(r,"protocolVersion","2024-11-05");cJSON_AddObjectToObject(cJSON_AddObjectToObject(r,"capabilities"),"tools");cJSON *server=cJSON_AddObjectToObject(r,"serverInfo");cJSON_AddStringToObject(server,"name","AI Passport");cJSON_AddStringToObject(server,"version",BADGE_VERSION);return reply;} + if(!strcmp(method,"tools/list")){ + if(*string(params,"cursor"))return rpc_error(reply,-32602,"Unknown cursor"); + /* The catalog is immutable JSON. Avoid a temporary tree with hundreds + * of allocations while retaining the contiguous audio codec arena. */ + cJSON *list=cJSON_CreateStringReference(definitions),*result=NULL; + /* Read-only flash-backed raw JSON; IsReference prevents freeing it. */ + if(list)list->type=(list->type&~cJSON_String)|cJSON_Raw; + if(!list||!(result=cJSON_AddObjectToObject(reply,"result"))){cJSON_Delete(list);cJSON_Delete(reply);return NULL;} + if(!cJSON_AddItemToObject(result,"tools",list)){cJSON_Delete(list);cJSON_Delete(reply);return NULL;} + return reply; + } + if(strcmp(method,"tools/call"))return rpc_error(reply,-32601,"Unknown method"); + if(!cJSON_IsObject(params))return rpc_error(reply,-32602,"Tool parameters must be an object"); + const char *name=string(params,"name");const cJSON *args=cJSON_GetObjectItemCaseSensitive(params,"arguments"); + if(!strcmp(name,"self.yao.cast")||!strcmp(name,"self.yao.get")){const char *error=NULL;cJSON *o=yao_tool(name,args,&error);return o?object_content(reply,o):content(reply,error?error:"Out of memory; retry the same request_id",true);} + badge_control_command_t command={0};unsigned value=0; + if(!strcmp(name,"self.get_device_status")){ + if(!keys(args,NULL,NULL))goto invalid; + badge_control_status_t s=badge_control_status();cJSON *o=cJSON_CreateObject();cJSON_AddNumberToObject(cJSON_AddObjectToObject(o,"audio_speaker"),"volume",volume);cJSON_AddBoolToObject(cJSON_AddObjectToObject(o,"network"),"connected",connected);cJSON_AddStringToObject(o,"volume_scope","xiaozhi");cJSON_AddNumberToObject(o,"battery_percent",s.battery);cJSON_AddStringToObject(o,"active_badge_name",s.names[s.active<5?s.active:0]);cJSON_AddNumberToObject(o,"brightness",s.brightness);cJSON_AddNumberToObject(o,"active_badge",s.active+1);cJSON_AddBoolToObject(o,"qr_present",(s.qr_mask&(1u<valuestring)>96)goto invalid; + unsigned characters=0;for(const unsigned char *p=(const unsigned char *)q->valuestring;*p;p++)if((*p&0xc0)!=0x80)characters++; + if(characters>32)goto invalid; + if(cJSON_HasObjectItem(args,"offset")&&!integer(args,"offset",0,radio_tool_count(),&value))goto invalid; + cJSON *o=cJSON_CreateObject(),*list=cJSON_AddArrayToObject(o,"matches");unsigned found=0,shown=0; + for(unsigned i=0;ivaluestring))continue;if(found++=6)continue;cJSON *b=cJSON_CreateObject();cJSON_AddNumberToObject(b,"station_id",i);cJSON_AddStringToObject(b,"name",radio_tool_name(i));cJSON_AddItemToArray(list,b);shown++;} + cJSON_AddNumberToObject(o,"total",found);if(value+shownvaluestring)>128)goto invalid; + unsigned characters=0;for(const unsigned char *p=(const unsigned char *)q->valuestring;*p;p++)if((*p&0xc0)!=0x80)characters++; + if(characters>32)goto invalid; + if(cJSON_GetObjectItemCaseSensitive(args,"offset")&&!integer(args,"offset",0,VOICE_CLIP_COUNT,&value))goto invalid; + cJSON *o=cJSON_CreateObject(),*list=cJSON_AddArrayToObject(o,"matches");unsigned found=0,shown=0,pack=0; + for(unsigned i=0;i=voice_packs[pack+1].first)pack++; + if(!contains(voice_clips[i].name,q->valuestring)&&!contains(voice_packs[pack].name,q->valuestring))continue; + if(found++=6)continue; + cJSON *item=cJSON_CreateObject();cJSON_AddNumberToObject(item,"clip_id",i);cJSON_AddStringToObject(item,"title",voice_clips[i].name);cJSON_AddStringToObject(item,"category",voice_packs[pack].name);cJSON_AddItemToArray(list,item);shown++; + } + cJSON_AddNumberToObject(o,"total",found);if(value+shownvaluestring:"";unsigned chars=0; + if(strlen(query)>128)goto invalid; + for(const unsigned char *p=(const unsigned char *)query;*p;p++){if(*p<32||*p==127)goto invalid;if((*p&0xc0)!=0x80)chars++;} + if(chars>32)goto invalid; + if(!random_clip(query,&value))return content(reply,"No matching sound clips; try another category or an empty query",true); + command=(badge_control_command_t){.kind=BC_PLAY_VOICE,.value=value}; + const char *error=badge_control_reserve(command,ticket);if(error)return content(reply,error,true); + last_random_clip=(int)value; + cJSON *o=cJSON_CreateObject();cJSON_AddBoolToObject(o,"random",true); + cJSON_AddNumberToObject(o,"clip_id",value);cJSON_AddStringToObject(o,"title",voice_clips[value].name); + cJSON_AddStringToObject(o,"category",voice_packs[clip_pack(value)].name); + cJSON_AddStringToObject(o,"execution","pending");cJSON_AddStringToObject(o,"message","Random clip selected; opening soundboard and ending this conversation. Wake again after playback."); + return object_content(reply,o); + }else if(!strcmp(name,"self.apps.open")){ + if(!keys(args,"app",NULL))goto invalid; + const char *app=string(args,"app"); + if(!strcmp(app,"zen-muyu"))command.kind=BC_MUYU;else if(!strcmp(app,"leo-radio"))command.kind=BC_RADIO;else if(!strcmp(app,"voice-keychain"))command.kind=BC_VOICE;else if(!strcmp(app,"cyber-yao"))command.kind=BC_YAO;else goto invalid; + if(command.kind==BC_RADIO&&!connected)return content(reply,"Wi-Fi is disconnected; connect it in badge settings first",true); + }else if(!strcmp(name,"self.audio.play")){if(!keys(args,"clip_id",NULL)||!integer(args,"clip_id",0,VOICE_CLIP_COUNT-1,&value))goto invalid;command=(badge_control_command_t){.kind=BC_PLAY_VOICE,.value=value};} + else if(!strcmp(name,"self.badge.show_qr")){if(!keys(args,NULL,NULL))goto invalid;command.kind=BC_QR;} + else if(!strcmp(name,"self.badge.switch")){ + if(!keys(args,"number","name"))goto invalid; + if(cJSON_HasObjectItem(args,"name")){ + const char *q=string(args,"name");if(!*q||strlen(q)>128||cJSON_HasObjectItem(args,"number"))goto invalid; + badge_control_status_t state=badge_control_status();unsigned matches=0; + for(unsigned i=0;i<5;i++)if((state.mask&(1u<96)goto invalid; + unsigned chars=0;for(const unsigned char *p=(const unsigned char *)text;*p;p++){if(*p<32||*p==127)goto invalid;if((*p&0xc0)!=0x80)chars++;}if(chars>32)goto invalid; + bool relative=cJSON_HasObjectItem(args,"seconds"); + if(relative&&(!integer(args,"seconds",1,86400,&value)||cJSON_HasObjectItem(args,"time")||cJSON_HasObjectItem(args,"date")||cJSON_HasObjectItem(args,"weekdays")))goto invalid; + if(!relative&&!cJSON_IsString(cJSON_GetObjectItemCaseSensitive(args,"time")))goto invalid; + if(cJSON_HasObjectItem(args,"date")&&(!*string(args,"date")||cJSON_HasObjectItem(args,"weekdays")))goto invalid; + const cJSON *days=cJSON_GetObjectItemCaseSensitive(args,"weekdays");unsigned mask=0; + if(days){if(!cJSON_IsArray(days)||cJSON_GetArraySize(days)<1||cJSON_GetArraySize(days)>7)goto invalid;for(const cJSON *d=days->child;d;d=d->next){if(!cJSON_IsNumber(d)||d->valuedouble<1||d->valuedouble>7||d->valuedouble!=d->valueint||(mask&(1u<<(d->valueint-1))))goto invalid;mask|=1u<<(d->valueint-1);}} + int64_t now=badge_alarm_service_now();if(now128)goto invalid; + if(!strcmp(field,"name"))command.field=0;else if(!strcmp(field,"department"))command.field=1;else if(!strcmp(field,"title"))command.field=2;else goto invalid; + unsigned chars=0;for(const unsigned char *p=(const unsigned char *)text;*p;p++){if(*p<32||*p==127)goto invalid;if((*p&0xc0)!=0x80)chars++;} + if(chars>(command.field?24u:20u)||(!command.field&&!chars))goto invalid; + command.kind=BC_PROFILE_EDIT;command.value=value-1;snprintf(command.text,sizeof(command.text),"%s",text); + } + else if(!strcmp(name,"self.system.action")){ + if(!keys(args,"action",NULL))goto invalid; + const char *action=string(args,"action"); + if(!strcmp(action,"home"))command.kind=BC_HOME;else if(!strcmp(action,"shutdown"))command.kind=BC_SHUTDOWN;else goto invalid; + } + else if(!strcmp(name,"self.display.set_brightness")){if(!keys(args,"percent",NULL)||!integer(args,"percent",20,100,&value)||value%20)goto invalid;command=(badge_control_command_t){.kind=BC_BRIGHTNESS,.value=value};} + else return rpc_error(reply,-32602,"Unknown tool"); + { + const char *error=badge_control_reserve(command,ticket);if(error)return content(reply,error,true); + return content(reply,badge_control_stays(command.kind)?"指令等待执行,尚未确认完æˆ�。":"切æ�¢æŒ‡ä»¤å·²æŽ¥æ”¶ï¼Œæ­£åœ¨æ‰“开目标页é�¢æˆ–应用。本次å°�智对è¯�å�³å°†ç»“æ�Ÿï¼Œä¸�需è¦�å†�次打开或继续调用其它工具。此回å¤�仅确认接收。",false); + } + invalid:return rpc_error(reply,-32602,"Invalid arguments; follow the tool schema and use integer values in range"); +} diff --git a/main/xiaozhi_tools.h b/main/xiaozhi_tools.h new file mode 100644 index 0000000..595af83 --- /dev/null +++ b/main/xiaozhi_tools.h @@ -0,0 +1,17 @@ +#pragma once +#include "cJSON.h" +#include "yao_service.h" +#include +#include +#ifdef __cplusplus +extern "C" { +#endif +/* Caller owns result. Navigation actions acknowledge before commit; in-place + * actions commit and await completion before replacing the queued response. */ +cJSON *xz_tools_handle(const cJSON *request,unsigned volume,bool connected,uint32_t *ticket); +/* Initial interpretation turn is read-only with respect to drawing new lots. */ +cJSON *xz_tools_handle_reading(const cJSON *request,unsigned volume,bool connected,uint32_t *ticket,const yao_record_t *snapshot); +void xz_tools_complete(cJSON *reply,int completion); +#ifdef __cplusplus +} +#endif diff --git a/main/xiaozhi_ui.c b/main/xiaozhi_ui.c new file mode 100644 index 0000000..9bca9e5 --- /dev/null +++ b/main/xiaozhi_ui.c @@ -0,0 +1,274 @@ +#include "xiaozhi_ui.h" +#include "xiaozhi_caption.h" +#include "xiaozhi_face_assets.h" +#include "xiaozhi_face_decoder.h" +#include "xiaozhi_face_transition.h" +#include "xiaozhi_style.h" +#include "badge_theme.h" +#include "badge_header.h" +#include "badge_footer.h" +#include "lvgl.h" +#include +#include +#include +LV_FONT_DECLARE(font_muyu_14); +LV_FONT_DECLARE(font_badge_10); +LV_FONT_DECLARE(font_badge_28); +LV_FONT_DECLARE(font_xiaozhi_14); +static lv_obj_t *screen,*title,*state_label,*detail,*caption,*code,*volume,*hint,*viewport,*heard_view,*heard_label; +static lv_timer_t *refresh; +static atomic_flag pending_lock=ATOMIC_FLAG_INIT; +typedef struct {xz_snapshot_t latest;} mailbox_t; +static mailbox_t *pending; +static bool pending_dirty; +/* All sizable presentation storage lives in the LVGL pool, not the Opus heap. */ +typedef struct { + char source[512],shown[512]; + size_t revealed; + uint32_t spent,wall_at,wall_credit,audio_elapsed,audio_anchor; + uint32_t volume_until; + unsigned last_volume; + uint32_t heard_at; + unsigned face,eyes,mouth,level,variant,requested_variant; + unsigned style,thought_variant; + xz_face_transition_t transition; + uint32_t level_until_ms; + xz_face_t emotion; + xz_state_t state; + bool volume_seen,transcript,reply,audio_clock; +} presentation_t; +static presentation_t *ui; +static void text(lv_obj_t *o,const char *s){if(strcmp(lv_label_get_text(o),s))lv_label_set_text(o,s);} +static void hidden(lv_obj_t *o,bool hide){if(hide)lv_obj_add_flag(o,LV_OBJ_FLAG_HIDDEN);else lv_obj_remove_flag(o,LV_OBJ_FLAG_HIDDEN);} +static lv_obj_t *label(lv_obj_t *parent,int x,int y,int w,int h,const lv_font_t *font){ + lv_obj_t *o=lv_label_create(parent);lv_obj_set_pos(o,x,y);lv_obj_set_size(o,w,h); + lv_label_set_long_mode(o,LV_LABEL_LONG_WRAP);lv_obj_set_style_text_font(o,font,0); + lv_obj_set_style_text_letter_space(o,0,0);lv_obj_set_style_text_line_space(o,0,0);lv_label_set_text(o,"");return o; +} +bool xiaozhi_ui_post(const xz_snapshot_t *s){ + if(!refresh||!pending||atomic_flag_test_and_set_explicit(&pending_lock,memory_order_acquire))return false; + pending->latest=*s;pending_dirty=true;atomic_flag_clear_explicit(&pending_lock,memory_order_release);return true; +} +static void type_caption(void){ + if(!ui->transcript)return; + uint32_t elapsed=ui->audio_clock?ui->audio_elapsed+XZ_CAPTION_LEAD_MS:ui->wall_credit+(uint32_t)(lv_tick_get()-ui->wall_at); + size_t next=xz_caption_step(ui->source,ui->revealed,elapsed,&ui->spent); + if(next==ui->revealed)return; + ui->revealed=next;memcpy(ui->shown,ui->source,next);ui->shown[next]=0;text(caption,ui->shown); + lv_obj_update_layout(viewport); + int bottom=lv_obj_get_height(caption)-lv_obj_get_height(viewport); + lv_obj_scroll_to_y(viewport,bottom>0?bottom:0,LV_ANIM_OFF); +} +static void face_refresh(void); +static void refresh_ui(lv_timer_t *timer){ + (void)timer;xz_snapshot_t next; + if(atomic_flag_test_and_set_explicit(&pending_lock,memory_order_acquire))return; + bool dirty=pending_dirty; + if(dirty){ + next=pending->latest;pending_dirty=false; + } + atomic_flag_clear_explicit(&pending_lock,memory_order_release); + if(dirty)xiaozhi_ui_render(&next); + if(!lv_obj_has_flag(volume,LV_OBJ_FLAG_HIDDEN)&&(int32_t)(lv_tick_get()-ui->volume_until)>=0)hidden(volume,true); + face_refresh(); + type_caption(); + if(!lv_obj_has_flag(heard_view,LV_OBJ_FLAG_HIDDEN)){ + int bottom=lv_obj_get_height(heard_label)-lv_obj_get_height(heard_view); + if(bottom>0){ + /* Read from the beginning, two lines at a time; retain the final + * page before looping. Reply text/audio have independent clocks. */ + unsigned pages=(bottom+35)/36,step=((uint32_t)(lv_tick_get()-ui->heard_at)/3000)%(pages+2); + int y=step>=pages?bottom:(int)step*36; + lv_obj_scroll_to_y(heard_view,y,LV_ANIM_OFF); + } + } +} +static void face_refresh(void){ + if(!ui)return; + uint32_t now=lv_tick_get(); + bool was_armed=ui->transition.armed; + unsigned face=xz_face_transition(&ui->transition,ui->state,ui->emotion,now); + if(ui->state==XZ_ACTIVATION)return; + unsigned variant=ui->requested_variantrequested_variant:0; + if(!was_armed&&ui->transition.armed)ui->thought_variant=variant; + if(ui->transition.armed)variant=ui->thought_variant; + unsigned style=xiaozhi_style_get(); + const xz_face_pose_t *pose=style==XZ_STYLE_ROUND?xz_roadking_pose((xz_face_t)face,variant):style==XZ_STYLE_CUTE?xz_face_pose((xz_face_t)face,variant):xz_portrait_pose((xz_face_t)face,variant); + bool blink=face==XZ_FACE_NEUTRAL&&ui->state!=XZ_LISTENING&&now%4400<120; + unsigned eyes=style==XZ_STYLE_ROUND?xz_roadking_eyes((xz_face_t)face,variant,blink):blink?XZ_FACE_BLINK:pose->eyes; + unsigned phase=xz_face_mouth(ui->state,ui->level,ui->level_until_ms,now); + unsigned mouth=phase?XZ_FACE_COUNT+phase-1:pose->mouth; + if(face!=ui->face||variant!=ui->variant||style!=ui->style){ui->face=face;ui->variant=variant;ui->style=style;lv_area_t a={38,60,202,204};lv_obj_invalidate_area(screen,&a);} + if(eyes!=ui->eyes){ui->eyes=eyes;lv_area_t a={60,110,182,151};lv_obj_invalidate_area(screen,&a);} + if(mouth!=ui->mouth){ui->mouth=mouth;lv_area_t a={90,149,162,191};lv_obj_invalidate_area(screen,&a);} +} +static void face_part(lv_layer_t *layer,const xz_face_asset_t *asset,int x,int y,uint32_t color,lv_opa_t opacity){ + const lv_image_dsc_t *image=&asset->image;x+=asset->x;y+=asset->y; + lv_area_t a={x,y,x+image->header.w-1,y+image->header.h-1}; + if(layer->_clip_area.x2_clip_area.x1>a.x2||layer->_clip_area.y2_clip_area.y1>a.y2)return; + lv_draw_image_dsc_t d;lv_draw_image_dsc_init(&d);d.src=image;d.recolor=lv_color_hex(color);d.recolor_opa=LV_OPA_COVER;d.opa=opacity; + lv_draw_image(layer,&d,&a); +} +static void face_tears(lv_layer_t *layer,const xz_face_asset_t *asset,int left,int right,int y,uint32_t color){ + /* Crying and laughter both show a matched pair, never a unilateral tear. */ + const int positions[]={left,right}; + for(unsigned i=0;i<2;i++)face_part(layer,asset,positions[i],y,color,LV_OPA_COVER); +} +static void artwork(lv_event_t *e){ + if(!ui||ui->state==XZ_ACTIVATION)return; + lv_layer_t *layer=lv_event_get_layer(e);const uint32_t *c=badge_theme_colors(); + if(ui->style==XZ_STYLE_ROUND){ + /* Preserve reference proportions while deriving every layer from the + * badge palette. Small features use independent dirty areas. */ + const xz_face_pose_t *p=xz_roadking_pose((xz_face_t)ui->face,ui->variant); + lv_color_t bgc=lv_color_hex(c[BADGE_BACKGROUND]),textc=lv_color_hex(c[BADGE_TEXT]),accent=lv_color_hex(c[BADGE_ACCENT]); + lv_color_t skin=lv_color_mix(lv_color_mix(textc,accent,205),bgc,218); + int light=lv_color_brightness(skin),bg_light=lv_color_brightness(bgc),text_light=lv_color_brightness(textc); + int bg_delta=light>bg_light?light-bg_light:bg_light-light,text_delta=light>text_light?light-text_light:text_light-light; + lv_color_t ink=bg_delta>text_delta?bgc:textc; + uint32_t line_color=lv_color_to_u32(ink); + face_part(layer,&xz_round_outline,40,62,line_color,LV_OPA_COVER); + face_part(layer,&xz_round_hair,40,62,lv_color_to_u32(lv_color_mix(ink,skin,224)),LV_OPA_COVER); + face_part(layer,&xz_round_skin,40,62,lv_color_to_u32(skin),LV_OPA_COVER); + face_part(layer,&xz_round_nose,40,62,lv_color_to_u32(lv_color_mix(ink,skin,150)),LV_OPA_COVER); + face_part(layer,&xz_round_shirt,40,62,lv_color_to_u32(lv_color_mix(accent,ink,65)),LV_OPA_COVER); + face_part(layer,&xz_round_eye_left_frames[ui->eyes],64+p->eye_x,120,line_color,LV_OPA_COVER); + face_part(layer,&xz_round_eye_right_frames[ui->eyes],64+p->eye_x,120,line_color,LV_OPA_COVER); + face_part(layer,&xz_round_mouth_frames[ui->mouth],93+p->mouth_x,163,lv_color_to_u32(lv_color_mix(ink,skin,205)),LV_OPA_COVER); + if(ui->face==XZ_FACE_EMBARRASSED||ui->face==XZ_FACE_LOVING){ + uint32_t blush=lv_color_to_u32(lv_color_mix(accent,ink,170)); + face_part(layer,&xz_face_decor[XZ_DECOR_CHEEK],76,148,blush,LV_OPA_40); + face_part(layer,&xz_face_decor[XZ_DECOR_CHEEK],153,148,blush,LV_OPA_40); + } + if(ui->face==XZ_FACE_CRYING||(ui->face==XZ_FACE_FUNNY&&ui->variant==2)){ + uint32_t tear=lv_color_to_u32(lv_color_mix(accent,ink,170)); + face_tears(layer,&xz_portrait_tear,81+p->eye_x,149+p->eye_x,140,tear); + } + if(ui->face==XZ_FACE_LOVING||ui->face==XZ_FACE_KISSY)face_part(layer,&xz_face_decor[XZ_DECOR_HEART],179,83,c[BADGE_ACCENT],LV_OPA_80); + if(ui->face==XZ_FACE_CONFUSED)face_part(layer,&xz_face_decor[XZ_DECOR_QUESTION],181,149,c[BADGE_ACCENT],LV_OPA_80); + if(ui->face==XZ_FACE_SLEEPY)face_part(layer,&xz_face_decor[XZ_DECOR_ZZZ],181,83,c[BADGE_ACCENT],LV_OPA_80); + return; + } + bool female=ui->style==XZ_STYLE_FEMALE; + bool abstract=ui->style==XZ_STYLE_ABSTRACT||female; + lv_color_t body=lv_color_mix(lv_color_hex(c[BADGE_TEXT]),lv_color_hex(c[BADGE_ACCENT]),female?242:abstract?205:40); + int brightness=lv_color_brightness(body),bg=lv_color_brightness(lv_color_hex(c[BADGE_BACKGROUND])),fg=lv_color_brightness(lv_color_hex(c[BADGE_TEXT])); + int bg_diff=brightness>bg?brightness-bg:bg-brightness,fg_diff=brightness>fg?brightness-fg:fg-brightness; + uint32_t ink=c[bg_diff>fg_diff?BADGE_BACKGROUND:BADGE_TEXT]; + const xz_face_pose_t *pose=abstract?xz_portrait_pose((xz_face_t)ui->face,ui->variant):xz_face_pose((xz_face_t)ui->face,ui->variant); + face_part(layer,female?&xz_female_body:abstract?&xz_abstract_body:&xz_face_body,48,65,lv_color_to_u32(body),LV_OPA_COVER); + if(abstract)face_part(layer,female?&xz_female_detail:&xz_abstract_detail,48,65,ink,LV_OPA_COVER); + if(abstract&&!female)face_part(layer,&xz_bald_gloss,48,65,c[BADGE_TEXT],LV_OPA_COVER); + if(female)face_part(layer,&xz_female_accent,48,65,c[BADGE_ACCENT],LV_OPA_COVER); + face_part(layer,abstract?&xz_abstract_eye_frames[ui->eyes]:&xz_face_eye_frames[ui->eyes],80+pose->eye_x+(abstract?4:0),113,ink,LV_OPA_COVER); + face_part(layer,abstract?&xz_abstract_mouth_frames[ui->mouth]:&xz_face_mouth_frames[ui->mouth],96+pose->mouth_x+(abstract?4:0),152,ink,LV_OPA_COVER); + unsigned face=ui->face; + unsigned variant=ui->variant;int accent_x=variant==1?44:176,accent_y=variant==2?79:90; + lv_opa_t blush=abstract?LV_OPA_20:(face==XZ_FACE_EMBARRASSED||face==XZ_FACE_LOVING||face==XZ_FACE_KISSY)?LV_OPA_40:LV_OPA_20; + if(!abstract||face==XZ_FACE_EMBARRASSED||face==XZ_FACE_LOVING){ + face_part(layer,&xz_face_decor[XZ_DECOR_CHEEK],abstract?88:64,149,ink,blush); + face_part(layer,&xz_face_decor[XZ_DECOR_CHEEK],abstract?153:162,149,ink,blush); + } + if(face==XZ_FACE_CRYING||(face==XZ_FACE_FUNNY&&(!abstract||variant==2))){ + uint32_t tear=abstract?lv_color_to_u32(lv_color_mix(lv_color_hex(c[BADGE_ACCENT]),lv_color_hex(ink),128)):c[BADGE_TEXT]; + face_tears(layer,abstract?&xz_portrait_tear:&xz_face_decor[XZ_DECOR_TEAR], + (abstract?101:90)+pose->eye_x,(abstract?137:138)+pose->eye_x,138,tear); + } + if(face==XZ_FACE_LOVING||face==XZ_FACE_KISSY||(face==XZ_FACE_WINKING&&variant==2)){ + face_part(layer,&xz_face_decor[XZ_DECOR_HEART],accent_x,accent_y,c[BADGE_ACCENT],LV_OPA_COVER); + if(variant==2)face_part(layer,&xz_face_decor[XZ_DECOR_HEART],44,90,c[BADGE_ACCENT],LV_OPA_60); + } + if((face==XZ_FACE_EMBARRASSED&&!abstract)||face==XZ_FACE_SHOCKED) + face_tears(layer,&xz_face_decor[XZ_DECOR_SWEAT],abstract?60:56,abstract?176:172, + variant==2?111:116,c[BADGE_TEXT]); + if(face==XZ_FACE_CONFUSED)face_part(layer,&xz_face_decor[XZ_DECOR_QUESTION],accent_x,accent_y,c[BADGE_ACCENT],LV_OPA_COVER); + if(face==XZ_FACE_SLEEPY)face_part(layer,&xz_face_decor[XZ_DECOR_ZZZ],accent_x,accent_y,c[BADGE_ACCENT],LV_OPA_COVER); + if(face==XZ_FACE_COOL||face==XZ_FACE_CONFIDENT){ + face_part(layer,&xz_face_decor[XZ_DECOR_STAR],accent_x,accent_y,c[BADGE_ACCENT],LV_OPA_COVER); + if(variant==2)face_part(layer,&xz_face_decor[XZ_DECOR_STAR],44,92,c[BADGE_ACCENT],LV_OPA_60); + } + if(face==XZ_FACE_THINKING)face_part(layer,&xz_face_decor[abstract?XZ_DECOR_QUESTION:XZ_DECOR_HAND],abstract?174:variant==1?88:130,abstract?157:163,abstract?c[BADGE_ACCENT]:ink,LV_OPA_70); +} +void xiaozhi_ui_create(void){ + face_decoder_start(); + screen=lv_obj_create(NULL);lv_obj_remove_style_all(screen);lv_obj_set_size(screen,240,320); + lv_obj_remove_flag(screen,LV_OBJ_FLAG_SCROLLABLE);lv_obj_set_style_bg_opa(screen,LV_OPA_COVER,0); + badge_header_attach(screen);lv_obj_add_event_cb(screen,artwork,LV_EVENT_DRAW_MAIN,NULL); + title=label(screen,16,39,120,14,&font_badge_10);text(title,"XIAOZHI"); + volume=label(screen,171,39,53,14,&font_badge_10);lv_obj_set_style_text_align(volume,LV_TEXT_ALIGN_RIGHT,0); + state_label=label(screen,16,217,208,18,&font_muyu_14);lv_obj_set_style_text_align(state_label,LV_TEXT_ALIGN_CENTER,0); + viewport=lv_obj_create(screen);lv_obj_remove_style_all(viewport);lv_obj_set_pos(viewport,22,248);lv_obj_set_size(viewport,196,36); + lv_obj_remove_flag(viewport,LV_OBJ_FLAG_SCROLLABLE);lv_obj_set_scrollbar_mode(viewport,LV_SCROLLBAR_MODE_OFF); + caption=label(viewport,0,0,196,LV_SIZE_CONTENT,&font_xiaozhi_14);lv_obj_set_style_text_align(caption,LV_TEXT_ALIGN_LEFT,0); + heard_view=lv_obj_create(screen);lv_obj_remove_style_all(heard_view);lv_obj_set_pos(heard_view,22,224);lv_obj_set_size(heard_view,196,36); + lv_obj_remove_flag(heard_view,LV_OBJ_FLAG_SCROLLABLE);lv_obj_set_scrollbar_mode(heard_view,LV_SCROLLBAR_MODE_OFF); + heard_label=label(heard_view,0,0,196,LV_SIZE_CONTENT,&font_xiaozhi_14); + detail=label(screen,22,248,196,36,&font_xiaozhi_14);lv_obj_set_style_text_align(detail,LV_TEXT_ALIGN_CENTER,0); + code=label(screen,16,128,208,36,&font_badge_28);lv_obj_set_style_text_align(code,LV_TEXT_ALIGN_CENTER,0); + hint=badge_footer_create(screen,""); + ui=lv_malloc(sizeof(*ui));if(ui){memset(ui,0,sizeof(*ui));ui->style=xiaozhi_style_get();} + pending=lv_malloc(sizeof(*pending));if(pending)memset(pending,0,sizeof(*pending));pending_dirty=false; + hidden(viewport,true);hidden(heard_view,true);hidden(code,true);hidden(volume,true); + if(ui){refresh=lv_timer_create(refresh_ui,100,NULL);} + lv_screen_load(screen); +} +void xiaozhi_ui_render(const xz_snapshot_t *s){ + if(!screen||!ui){return;}const uint32_t *c=badge_theme_colors(); + bool recolor=!lv_color_eq(lv_obj_get_style_bg_color(screen,0),lv_color_hex(c[BADGE_BACKGROUND])); + if(recolor)lv_obj_set_style_bg_color(screen,lv_color_hex(c[BADGE_BACKGROUND]),0); + lv_obj_t *objects[]={title,state_label,detail,caption,code,volume,hint}; + unsigned colors[]={BADGE_MUTED,BADGE_ACCENT,BADGE_TEXT,BADGE_TEXT,BADGE_ACCENT,BADGE_MUTED,BADGE_MUTED}; + for(unsigned i=0;i<7;i++)if(!lv_color_eq(lv_obj_get_style_text_color(objects[i],0),lv_color_hex(c[colors[i]]))){lv_obj_set_style_text_color(objects[i],lv_color_hex(c[colors[i]]),0);recolor=true;} + if(recolor)lv_obj_invalidate(screen); + if(!lv_color_eq(lv_obj_get_style_text_color(heard_label,0),lv_color_hex(c[BADGE_MUTED]))) + lv_obj_set_style_text_color(heard_label,lv_color_hex(c[BADGE_MUTED]),0); + xz_state_t previous=ui->state;ui->state=s->state; + if(refresh&&previous!=s->state)lv_timer_set_period(refresh,(s->state==XZ_LISTENING||s->state==XZ_SPEAKING||s->state==XZ_THINKING)?50:100); + const char *names[]={"éš�æ—¶å¼€å�£","正在连接","等待绑定","对è¯�已暂å�œ","正在å�¬ä½ è¯´","让我想一想","å°�智在回应","连接æ��示"}; + text(state_label,names[s->state]);text(detail,s->detail);text(code,s->code); + const char *reply_text=xz_caption_is_tool_progress(s->text)?"":s->text; + /* Keep the last recognized input until the next recognition, including + * automatic re-listening. Never replace it with the response. */ + if(s->heard[0]&&strcmp(lv_label_get_text(heard_label),s->heard)){ + text(heard_label,s->heard);ui->heard_at=lv_tick_get(); + lv_obj_update_layout(heard_view);lv_obj_scroll_to_y(heard_view,0,LV_ANIM_OFF); + } + bool conversation=s->state==XZ_THINKING||s->state==XZ_SPEAKING||s->state==XZ_LISTENING||s->state==XZ_READY; + bool have_heard=conversation&&lv_label_get_text(heard_label)[0]; + hidden(heard_view,!have_heard); + lv_obj_set_y(viewport,have_heard?262:248);lv_obj_set_height(viewport,36); + bool transcript=conversation&&reply_text[0]; + hidden(viewport,!transcript);hidden(detail,transcript||have_heard);hidden(code,s->state!=XZ_ACTIVATION); + lv_obj_set_y(state_label,s->state==XZ_ACTIVATION?72:have_heard?204:217); + lv_obj_set_y(detail,s->state==XZ_ACTIVATION?190:s->state==XZ_ERROR?239:248); + lv_obj_set_height(detail,s->state==XZ_ACTIVATION?72:s->state==XZ_ERROR?54:36); + if(transcript){ + bool reply=true; + const char *source=reply_text; + bool audio=reply&&s->state==XZ_SPEAKING; + if(!ui->transcript||reply!=ui->reply||strcmp(ui->source,source)||(audio&&s->caption_start_ms!=ui->audio_anchor)){ + snprintf(ui->source,sizeof(ui->source),"%s",source);ui->shown[0]=0;ui->revealed=0;ui->spent=0; + ui->wall_at=lv_tick_get();ui->wall_credit=0;ui->audio_clock=audio;ui->audio_anchor=s->caption_start_ms; + ui->revealed=xz_caption_step(ui->source,0,XZ_CAPTION_LEAD_MS,&ui->spent); + memcpy(ui->shown,ui->source,ui->revealed);ui->shown[ui->revealed]=0; + text(caption,ui->shown);lv_obj_update_layout(viewport); + int bottom=lv_obj_get_height(caption)-lv_obj_get_height(viewport);lv_obj_scroll_to_y(viewport,bottom>0?bottom:0,LV_ANIM_OFF); + }else if(ui->audio_clock&&!audio){ + ui->audio_clock=false;ui->wall_at=lv_tick_get();ui->wall_credit=ui->spent; + } + ui->reply=reply;ui->audio_elapsed=s->played_ms>=ui->audio_anchor?s->played_ms-ui->audio_anchor:0; + } + ui->transcript=transcript; + char v[16];snprintf(v,sizeof(v),"VOL %u",s->volume);text(volume,v); + if(ui->volume_seen&&ui->last_volume!=s->volume){ui->volume_until=lv_tick_get()+3000;hidden(volume,false);} + ui->last_volume=s->volume;ui->volume_seen=true; + text(hint,s->state==XZ_LISTENING?BADGE_HINT_XZ_PAUSE:s->state==XZ_ACTIVATION||s->state==XZ_ERROR?BADGE_HINT_XZ_RETRY:s->state==XZ_CONNECTING?BADGE_HINT_XZ_WAIT:s->state==XZ_SPEAKING||s->state==XZ_THINKING?BADGE_HINT_XZ_INTERRUPT:BADGE_HINT_XZ_START); + ui->emotion=s->emotion;ui->requested_variant=s->face_variant;ui->level=s->level;ui->level_until_ms=s->level_until_ms; + face_refresh(); + if((previous==XZ_ACTIVATION)!=(s->state==XZ_ACTIVATION)){lv_area_t a={26,56,214,209};lv_obj_invalidate_area(screen,&a);} +} +void xiaozhi_ui_destroy(void){ + if(refresh){lv_timer_delete(refresh);refresh=NULL;}pending_dirty=false;lv_free(pending);pending=NULL; + lv_free(ui);ui=NULL;viewport=NULL;if(screen){lv_obj_delete(screen);screen=NULL;} + face_decoder_stop();heard_view=heard_label=NULL; +} diff --git a/main/xiaozhi_ui.h b/main/xiaozhi_ui.h new file mode 100644 index 0000000..3bfa1be --- /dev/null +++ b/main/xiaozhi_ui.h @@ -0,0 +1,17 @@ +#pragma once +#include +#include +#include "xiaozhi_logic.h" +#include "xiaozhi_face_variants.h" +#ifdef __cplusplus +extern "C" { +#endif +typedef struct {xz_state_t state;char detail[256],text[512],heard[256],code[32];unsigned volume,level,face_variant;uint32_t played_ms,caption_start_ms,level_until_ms;xz_face_t emotion;} xz_snapshot_t; +void xiaozhi_ui_create(void); +void xiaozhi_ui_render(const xz_snapshot_t *state); +/* Nonblocking worker handoff; actual layout runs on the LVGL timer task. */ +bool xiaozhi_ui_post(const xz_snapshot_t *state); +void xiaozhi_ui_destroy(void); +#ifdef __cplusplus +} +#endif diff --git a/main/xiaozhi_volume.h b/main/xiaozhi_volume.h new file mode 100644 index 0000000..c101222 --- /dev/null +++ b/main/xiaozhi_volume.h @@ -0,0 +1,20 @@ +#pragma once +#include +#include + +/* Worker-owned preference. Coalesce key repeats; never write flash in playback. */ +typedef struct { unsigned saved, value; int64_t changed_at, retry_at; } xz_volume_t; +static inline unsigned xz_volume_valid(unsigned value, unsigned fallback) { + return value <= 100 ? value : (fallback <= 100 ? fallback : 40); +} +static inline void xz_volume_observe(xz_volume_t *v, unsigned value, int64_t now) { + value=xz_volume_valid(value,40); + if(value!=v->value){v->value=value;v->changed_at=now;} +} +static inline bool xz_volume_due(const xz_volume_t *v,int64_t now,bool safe,bool flush) { + return v->saved!=v->value && (flush || (safe && now>=v->retry_at && now-v->changed_at>=1000000)); +} +static inline void xz_volume_result(xz_volume_t *v,int64_t now,bool success) { + if(success)v->saved=v->value; + v->retry_at=now+3000000; +} diff --git a/main/xiaozhi_wake.c b/main/xiaozhi_wake.c new file mode 100644 index 0000000..4d620e6 --- /dev/null +++ b/main/xiaozhi_wake.c @@ -0,0 +1,147 @@ +#include "xiaozhi_wake.h" +#ifdef BADGE_WAKE_HOST_TEST +#include "xiaozhi_wake_test_stubs.h" +#else +#include "badge_power.h" +#include "bsp_audio.h" +#include "esp_wn_models.h" +#include "model_path.h" +#include "esp_timer.h" +#include "esp_log.h" +#include "esp_heap_caps.h" +#include "nvs.h" +#include "freertos/FreeRTOS.h" +#include "freertos/task.h" +#include "freertos/semphr.h" +#endif +#include +#include +#ifndef BADGE_WAKE_HOST_TEST +#include "wake_model_config.h" +#endif + +#ifdef BADGE_WAKE_HOST_TEST +static const unsigned char wake_start[]={0}; +#else +extern const unsigned char wake_start[] asm("_binary_wake_model_bin_start"); +#endif +static atomic_bool enabled,stop_requested,trigger; +static atomic_uint status; +static SemaphoreHandle_t done; +static bool running; +static TaskHandle_t worker_task; +static atomic_bool finished; +static int64_t retry_at; +static void (*notify_trigger)(void); +static void (*prepare_memory)(void); +void xz_wake_on_prepare(void (*prepare)(void)){prepare_memory=prepare;} +void xz_wake_on_trigger(void (*notify)(void)){notify_trigger=notify;} +#ifdef BADGE_WAKE_DEVICE_PROBE +static atomic_uint probe_frames; +static atomic_bool probe_trigger,probe_fail_once; +void xz_wake_probe_fail_once(void){atomic_store(&probe_fail_once,true);} +unsigned xz_wake_probe_frames(void){return atomic_load(&probe_frames);} +void xz_wake_probe_trigger(void){atomic_store(&probe_trigger,true);} +#endif +enum { WAKE_OFF, WAKE_LOADING, WAKE_LISTENING, WAKE_SUSPENDED, WAKE_ERROR }; +const char *xz_wake_phrase(void){return BADGE_WAKE_PHRASE;} +const char *xz_wake_status(void){ + static const char *const names[]={"å�Žå�°å”¤é†’已关闭","加载唤醒模型","等待语音唤醒","音频å� ç”¨ï¼Œå”¤é†’æš‚å�œ","唤醒失败,ç¨�å�Žè‡ªåЍé‡�试"}; + return names[atomic_load(&status)]; +} +bool xz_wake_enabled(void){return atomic_load(&enabled);} +bool xz_wake_listening(void){return atomic_load(&status)==WAKE_LISTENING&&!atomic_load(&finished);} +void xz_wake_init(void){ + nvs_handle_t n;uint8_t value=0; + if(nvs_open("xiaozhi",NVS_READONLY,&n)==ESP_OK){nvs_get_u8(n,"wake_enabled",&value);nvs_close(n);} + atomic_store(&enabled,value==1);atomic_store(&status,value==1?WAKE_SUSPENDED:WAKE_OFF); + ESP_LOGI("xz_wake","Preference enabled=%u",value==1); +} +static void worker(void *arg){ + (void)arg;bool failed=false,power_owned=false;int16_t *pcm=NULL;model_iface_data_t *model=NULL; + srmodel_list_t *list=NULL;const esp_wn_iface_t *engine=NULL; +#ifdef BADGE_WAKE_DEVICE_PROBE + if(atomic_exchange(&probe_fail_once,false)){ESP_LOGW("xz_wake","INJECT_START_FAILURE");failed=true;goto cleanup;} +#endif + if(esp_get_free_heap_size()<49152||heap_caps_get_largest_free_block(MALLOC_CAP_8BIT)<32768){ + ESP_LOGW("xz_wake","Memory gate free=%lu largest=%lu",(unsigned long)esp_get_free_heap_size(),(unsigned long)heap_caps_get_largest_free_block(MALLOC_CAP_8BIT)); + failed=true;goto cleanup; + } + list=srmodel_load(wake_start); + engine=list?esp_wn_handle_from_name(list->model_name[0]):NULL; + if(engine)model=engine->create(list->model_name[0],DET_MODE_90); + if(model&&BADGE_WAKE_THRESHOLD>0)engine->set_det_threshold(model,BADGE_WAKE_THRESHOLD,1); + int samples=model?engine->get_samp_chunksize(model):0; + if(samples>0&&samples<=4096)pcm=calloc((size_t)samples,sizeof(int16_t)); + if(!pcm||!model||engine->get_samp_rate(model)!=16000)failed=true; + badge_power_enter();power_owned=true;badge_power_set_local_listening(true); + if(!failed&&(bsp_audio_init()!=ESP_OK||bsp_audio_set_format(16000,16,1)!=ESP_OK))failed=true; + int64_t guard=esp_timer_get_time()+750000; + if(!failed)atomic_store(&status,WAKE_LISTENING); + ESP_LOGI("xz_wake","Detector %s free=%lu",failed?"failed":"ready",(unsigned long)esp_get_free_heap_size()); + while(!failed&&!atomic_load(&stop_requested)){ + badge_power_tick(false,true); + esp_err_t audio_result=bsp_audio_read(pcm,(size_t)samples*2); + if(audio_result!=ESP_OK){ESP_LOGW("xz_wake","Microphone read failed: %s",esp_err_to_name(audio_result));failed=true;break;} + int result=engine->detect(model,pcm); +#ifdef BADGE_WAKE_DEVICE_PROBE + atomic_fetch_add(&probe_frames,1); + result=atomic_exchange(&probe_trigger,false)?1:0; +#endif + if(result>0&&esp_timer_get_time()>guard){ESP_LOGI("xz_wake","Wake detected");atomic_store(&trigger,true);if(notify_trigger)notify_trigger();break;} + taskYIELD(); + } +cleanup: + /* Only this worker touches the detector; join precedes audio handover. */ + free(pcm);if(model)engine->destroy(model);if(list)esp_srmodel_deinit(list); + if(power_owned){badge_power_set_local_listening(false);(void)badge_power_leave();} + if(failed)atomic_store(&status,WAKE_ERROR); + atomic_store(&finished,true);xSemaphoreGive(done); + /* Joiner frees the 8 KiB stack synchronously before voice startup. */ + for(;;)vTaskSuspend(NULL); +} +esp_err_t xz_wake_stop(void){ + atomic_store(&stop_requested,true); + if(running){if(xSemaphoreTake(done,pdMS_TO_TICKS(3000))!=pdTRUE)return ESP_ERR_TIMEOUT;vTaskDelete(worker_task);worker_task=NULL;running=false;atomic_store(&finished,false);} + if(done){vSemaphoreDelete(done);done=NULL;} + atomic_store(&trigger,false); + if(atomic_load(&status)!=WAKE_ERROR)atomic_store(&status,xz_wake_enabled()?WAKE_SUSPENDED:WAKE_OFF); + retry_at=esp_timer_get_time()+750000;return ESP_OK; +} +esp_err_t xz_wake_enable(bool value){ + if(!value){esp_err_t e=xz_wake_stop();if(e!=ESP_OK)return e;} + nvs_handle_t n;esp_err_t e=nvs_open("xiaozhi",NVS_READWRITE,&n); + if(e==ESP_OK){e=nvs_set_u8(n,"wake_enabled",value);if(e==ESP_OK)e=nvs_commit(n);nvs_close(n);} + if(e==ESP_OK){ + atomic_store(&enabled,value); + if(!value||!running||atomic_load(&finished))atomic_store(&status,value?WAKE_SUSPENDED:WAKE_OFF); + retry_at=0;ESP_LOGI("xz_wake","Preference enabled=%u",value); + } + return e; +} +bool xz_wake_take_trigger(void){return atomic_exchange(&trigger,false);} +void xz_wake_tick(bool available){ + if(!available||!xz_wake_enabled())return; + if(running){ + if(!atomic_load(&finished)||atomic_load(&trigger))return; + /* A finished failed worker is still owned until joined. Do not latch + * running/error forever, and do not leak its stack on each retry. */ + if(xz_wake_stop()!=ESP_OK)return; + atomic_store(&status,WAKE_ERROR);retry_at=esp_timer_get_time()+3000000; + ESP_LOGW("xz_wake","Detector stopped; retry in 3 seconds"); + } + if(esp_timer_get_time() +#include "esp_err.h" +#ifdef __cplusplus +extern "C" { +#endif +/* Shell task owns start/stop/settings. Worker owns microphone and power policy. + * Stop must succeed before starting ANY other audio producer. */ +void xz_wake_init(void); +void xz_wake_on_trigger(void (*notify)(void)); +/* Navigation context, called before allocation only under memory pressure. */ +void xz_wake_on_prepare(void (*prepare)(void)); +bool xz_wake_enabled(void); +bool xz_wake_listening(void); +esp_err_t xz_wake_enable(bool enabled); +esp_err_t xz_wake_stop(void); +void xz_wake_tick(bool audio_available); +bool xz_wake_take_trigger(void); +const char *xz_wake_status(void); +const char *xz_wake_phrase(void); +#ifdef __cplusplus +} +#endif diff --git a/main/xiaozhi_wire.c b/main/xiaozhi_wire.c new file mode 100644 index 0000000..ad7ed50 --- /dev/null +++ b/main/xiaozhi_wire.c @@ -0,0 +1,42 @@ +#include "xiaozhi_wire.h" +#include +#include +static unsigned be16(const uint8_t *p){return (unsigned)p[0]*256+p[1];} +static uint32_t be32(const uint8_t *p){return (uint32_t)p[0]<<24|(uint32_t)p[1]<<16|(uint32_t)p[2]<<8|p[3];} +bool xz_endpoint(const char *url,xz_endpoint_t *out){ + if(!url||!out)return false; + memset(out,0,sizeof(*out)); + const char *p; + if(!strncmp(url,"wss://",6)){p=url+6;out->tls=true;out->port=443;} + else if(!strncmp(url,"ws://",5)){p=url+5;out->port=80;} + else return false; + for(const unsigned char *s=(const void *)p;*s;s++)if(*s<=32||*s>=127||*s=='#'||*s=='@')return false; + const char *end=strpbrk(p,"/?");if(!end)end=p+strlen(p); + const char *colon=memchr(p,':',(size_t)(end-p));const char *host_end=colon?colon:end; + size_t n=(size_t)(host_end-p);if(!n||n>=sizeof(out->host))return false; + memcpy(out->host,p,n); + if(colon){unsigned port=0;if(colon+1==end)return false;for(const char *s=colon+1;s'9')return false;port=port*10+(unsigned)(*s-'0');if(port>65535)return false;}if(!port)return false;out->port=port;} + n=strlen(end);if(n+2>sizeof(out->path))return false; + if(*end!='/'){strcpy(out->path,"/");}strcat(out->path,end);return true; +} +bool xz_hex16(const char *text,uint8_t out[16]){ + if(!text||strlen(text)!=32)return false; + for(unsigned i=0;i<16;i++){unsigned v=0;for(unsigned j=0;j<2;j++){char c=text[i*2+j];unsigned d=c>='0'&&c<='9'?c-'0':c>='a'&&c<='f'?c-'a'+10:c>='A'&&c<='F'?c-'A'+10:16;if(d>15)return false;v=v*16+d;}out[i]=(uint8_t)v;}return true; +} +bool xz_ws_audio(unsigned version,const uint8_t *p,size_t n,const uint8_t **audio,size_t *length){ + if(!p||!audio||!length){return false;}size_t h=version==2?16:version==3?4:0; + if(version<1||version>3||n<=h||n-h>1500)return false; + if(version==2&&(be16(p)!=2||be16(p+2)!=0||be32(p+12)!=n-h))return false; + if(version==3&&(p[0]!=0||be16(p+2)!=n-h))return false; + *audio=p+h;*length=n-h;return true; +} +bool xz_udp_audio(const uint8_t *p,size_t n,uint32_t previous,uint32_t *sequence){ + if(!p||!sequence||n<=16||n>1516||p[0]!=1||be16(p+2)!=n-16)return false; + uint32_t s=be32(p+12);if(s<=previous)return false;*sequence=s;return true; +} +static void put32(uint8_t *p,uint32_t v){for(unsigned i=0;i<4;i++)p[i]=(uint8_t)(v>>(24-i*8));} +void xz_udp_header(uint8_t h[16],size_t n,uint32_t time,uint32_t sequence){h[2]=(uint8_t)(n>>8);h[3]=(uint8_t)n;put32(h+8,time);put32(h+12,sequence);} +void xz_text_copy(char *out,size_t capacity,const char *text){ + if(!capacity){return;}size_t used=0;const unsigned char *p=(const void *)(text?text:""); + while(*p){size_t n=*p<128?1:(*p&0xe0)==0xc0?2:(*p&0xf0)==0xe0?3:(*p&0xf8)==0xf0?4:0;if(!n||used+n>=capacity)break;bool valid=true;for(size_t i=1;i +#include +#include +#ifdef __cplusplus +extern "C" { +#endif +typedef struct { char host[192],path[384]; unsigned port; bool tls; } xz_endpoint_t; +bool xz_endpoint(const char *url,xz_endpoint_t *out); +bool xz_hex16(const char *text,uint8_t out[16]); +/* Validate lengths before exposing any remotely supplied Opus packet. */ +bool xz_ws_audio(unsigned version,const uint8_t *data,size_t size,const uint8_t **audio,size_t *length); +bool xz_udp_audio(const uint8_t *data,size_t size,uint32_t previous,uint32_t *sequence); +void xz_udp_header(uint8_t header[16],size_t length,uint32_t timestamp,uint32_t sequence); +void xz_text_copy(char *out,size_t capacity,const char *text); +#ifdef __cplusplus +} +#endif diff --git a/main/yao_app.c b/main/yao_app.c new file mode 100644 index 0000000..31c307a --- /dev/null +++ b/main/yao_app.c @@ -0,0 +1,51 @@ +#include "yao_app.h" +#include "yao_ui.h" +#include "badge_network.h" +#include "bsp_display.h" +#include +#include +static uint8_t lines[6]; +static unsigned count,last_coins; +static yao_record_t current; +static bool interpretation; +static char location_state[96]; +static void read_location_state(char out[96]){ + yao_location_t p=yao_location_get();snprintf(out,96,"%s|%ld|%s",yao_location_status(),(long)p.longitude_e6,p.region); +} +static bool refresh_location(void){ + if(count!=6||!yao_refresh_location(¤t))return false; + yao_ui_set_time(current.cast_utc,¤t.location);return true; +} +void demo_yao_enter(void){ + interpretation=false; + if(!count||count==6){yao_record_t last;if(yao_latest(&last)){current=last;memcpy(lines,last.lines,6);count=6;}} + refresh_location();yao_ui_create();yao_ui_set_time(current.cast_utc,¤t.location);yao_ui_render(lines,count,last_coins,current.id,NULL);read_location_state(location_state); +} +void demo_yao_exit(void){yao_ui_destroy();} +esp_err_t demo_yao_start(void){yao_location_recheck();yao_location_poll();return badge_network_prepare_entropy();} +esp_err_t demo_yao_stop(void){interpretation=false;return ESP_OK;} +void demo_yao_notice(const char *notice){if(bsp_lvgl_lock(1000)){yao_ui_render(lines,count,last_coins,current.id,notice);bsp_lvgl_unlock();}} +void demo_yao_key(bsp_btn_t button,bsp_btn_ev_t event){ + if(event!=BSP_BTN_CLICK&&event!=BSP_BTN_LONG)return; + if(button==BSP_BTN_OK&&event==BSP_BTN_CLICK&&count==6){interpretation=true;return;} + if(!bsp_lvgl_lock(1000))return; + if(button==BSP_BTN_DOWN&&event==BSP_BTN_LONG){count=0;memset(lines,0,6);current=(yao_record_t){0};yao_ui_render(lines,count,last_coins,0,NULL);} + else if(event==BSP_BTN_CLICK){ + if(button==BSP_BTN_OK&&count<6){ + uint32_t bits; + if(!yao_random_bits(&bits)){yao_ui_render(lines,count,last_coins,0,"éš�机æº�准备中,请ç¨�å�Žå†�按 OK");} + else { + last_coins=bits&7u;lines[count++]=yao_coin_line(bits); + if(count==6&&!yao_save_manual(lines,¤t)){count--;yao_ui_render(lines,count,last_coins,0,"结果ä¿�存失败,请é‡�试");} + else {yao_ui_set_time(current.cast_utc,¤t.location);yao_ui_render(lines,count,last_coins,current.id,NULL);} + } + }else if(count==6)yao_ui_scroll(button==BSP_BTN_UP?-1:1); + } + bsp_lvgl_unlock(); +} +void demo_yao_tick(void){ + char next[96];read_location_state(next);bool changed=strcmp(next,location_state)!=0; + if(refresh_location())changed=true; + if(changed&&bsp_lvgl_lock(100)){yao_ui_render(lines,count,last_coins,current.id,NULL);bsp_lvgl_unlock();read_location_state(location_state);} +} +bool demo_yao_take_interpretation(yao_record_t *record){if(!interpretation||count!=6)return false;interpretation=false;refresh_location();*record=current;return true;} diff --git a/main/yao_app.h b/main/yao_app.h new file mode 100644 index 0000000..ceba1e0 --- /dev/null +++ b/main/yao_app.h @@ -0,0 +1,11 @@ +#pragma once +#include "demo.h" +#include "yao_service.h" +void demo_yao_enter(void); +void demo_yao_exit(void); +void demo_yao_key(bsp_btn_t button,bsp_btn_ev_t event); +esp_err_t demo_yao_start(void); +esp_err_t demo_yao_stop(void); +bool demo_yao_take_interpretation(yao_record_t *record); +void demo_yao_notice(const char *notice); +void demo_yao_tick(void); diff --git a/main/yao_core.c b/main/yao_core.c new file mode 100644 index 0000000..c4663f0 --- /dev/null +++ b/main/yao_core.c @@ -0,0 +1,86 @@ +/* Adapted from CyberYAO 3c4780f; see assets/cyberyao/LICENSE. */ +#include "yao_core.h" +#include +#include +#include +static const uint8_t numbers[64] = { + 2,24,7,19,15,36,46,11,16,51,40,54,62,55,32,34, + 8,3,29,60,39,63,48,5,45,17,47,58,31,49,28,43, + 23,27,4,41,52,22,18,26,35,21,64,38,56,30,50,14, + 20,42,59,61,53,37,57,9,12,25,6,10,33,13,44,1 +}; +bool yao_full_name(const yao_hexagram_t *h,char *out,size_t cap){ + static const char *const nature[]={"地","é›·","æ°´","æ³½","å±±","ç�«","风","天"}; + if(out&&cap)out[0]=0; + if(!h||!out||!cap)return false; + for(unsigned bits=0;bits<64;bits++)if(numbers[bits]==h->number){ + unsigned lower=bits&7,upper=bits>>3; + int n=upper==lower?snprintf(out,cap,"%s为%s",h->name,nature[upper]):snprintf(out,cap,"%s%s%s",nature[upper],nature[lower],h->name); + return n>=0&&(size_t)n> 1) & 1) + ((bits >> 2) & 1)); +} +const char *yao_reading_rule(unsigned n) { + static const char *const rules[] = { + "无动爻:读本å�¦å�¦è¾žã€‚", "一动爻:读本å�¦åŠ¨çˆ»çˆ»è¾žã€‚", + "二动爻:读本å�¦ä¸¤æ�¡åŠ¨çˆ»ï¼Œä¸Šçˆ»ä¸ºä¸»ã€‚", "三动爻:读本å�¦å’Œä¹‹å�¦å�¦è¾žï¼Œæœ¬å�¦ä¸ºä¸»ã€‚", + "四动爻:读之å�¦ä¸¤æ�¡ä¸�å�˜çˆ»ï¼Œä¸‹çˆ»ä¸ºä¸»ã€‚", "五动爻:读之å�¦å”¯ä¸€ä¸�å�˜çˆ»ã€‚", + "六动爻:乾å�¤è¯»ç”¨ä¹�或用六,其余读之å�¦å�¦è¾žã€‚" + }; + return n < 7 ? rules[n] : ""; +} +static void append_text(char *out,size_t cap,size_t *used,const char *format,...){ + va_list args;va_start(args,format); + size_t remaining=out&&*used0)*used+=(size_t)n; +} +static const char *reading_tag(const yao_result_t *r,const yao_hexagram_t *h,unsigned line){ + for(unsigned i=0;ireading_count;i++)if(r->readings[i].hexagram==h&&r->readings[i].line==line) + return r->readings[i].primary?"主读 · ":"å�‚读 · "; + return ""; +} +size_t yao_format_full_reading(const yao_result_t *r,char *out,size_t cap){ + if(out&&cap)out[0]=0; + if(!r||!r->original||!r->changed)return 0; + size_t used=0;append_text(out,cap,&used,"%s\n\n",yao_reading_rule(r->moving_count)); + for(unsigned which=0;which<(r->moving_count?2u:1u);which++){ + const yao_hexagram_t *h=which?r->changed:r->original; + char name[32];yao_full_name(h,name,sizeof(name)); + append_text(out,cap,&used,"%s · %s\n%s%s\n\n",which?"之å�¦":"本å�¦",name,reading_tag(r,h,0),h->text); + for(unsigned i=0;i<6;i++)append_text(out,cap,&used,"%s%s\n\n",reading_tag(r,h,i+1),h->lines[i]); + if(h->special)append_text(out,cap,&used,"%s%s\n\n",reading_tag(r,h,7),h->special); + } + return used; +} +static void add(yao_result_t *r,const yao_hexagram_t *h,unsigned line,bool primary) { + yao_reading_t *p=&r->readings[r->reading_count++]; + *p=(yao_reading_t){h,(uint8_t)line,primary,line==7?h->special:line?h->lines[line-1]:h->text}; +} +bool yao_calculate(const uint8_t lines[6],yao_result_t *r) { + if(!lines||!r)return false; + memset(r,0,sizeof(*r));unsigned a=0,b=0; + for(unsigned i=0;i<6;i++) { + if(lines[i]<6||lines[i]>9)return false; + r->lines[i]=lines[i];bool moving=lines[i]==6||lines[i]==9; + bool yang=(lines[i]&1)!=0; + if(yang)a|=1u<moving_mask|=1u<moving_count++;} + } + r->original=&YAO_HEXAGRAMS[numbers[a]-1];r->changed=&YAO_HEXAGRAMS[numbers[b]-1]; + unsigned n=r->moving_count; + if(!n)add(r,r->original,0,true); + else if(n<=2){ + /* Highest moving line is primary; return it first. */ + for(int i=5;i>=0;i--)if(r->moving_mask&(1u<original,i+1,r->reading_count==0); + }else if(n==3){add(r,r->original,0,true);add(r,r->changed,0,false);} + else if(n<=5){ + for(unsigned i=0;i<6;i++)if(!(r->moving_mask&(1u<changed,i+1,r->reading_count==0); + }else if(r->original->special)add(r,r->original,7,true); + else add(r,r->changed,0,true); + return true; +} diff --git a/main/yao_core.h b/main/yao_core.h new file mode 100644 index 0000000..93bf461 --- /dev/null +++ b/main/yao_core.h @@ -0,0 +1,29 @@ +#pragma once +#include +#include +#include + +/* Pure three-coin calculation. Lines are ordered bottom to top. */ +typedef struct { + uint8_t number; + const char *name, *text, *lines[6], *special; +} yao_hexagram_t; +typedef struct { + const yao_hexagram_t *hexagram; + uint8_t line; /* 0: guaci; 1..6: yaoci; 7: use-nine/use-six. */ + bool primary; + const char *text; +} yao_reading_t; +typedef struct { + const yao_hexagram_t *original, *changed; + uint8_t lines[6], moving_mask, moving_count, reading_count; + yao_reading_t readings[2]; +} yao_result_t; +extern const yao_hexagram_t YAO_HEXAGRAMS[64]; +bool yao_full_name(const yao_hexagram_t *hexagram,char *buffer,size_t capacity); +uint8_t yao_coin_line(uint8_t bits); +bool yao_calculate(const uint8_t lines[6], yao_result_t *result); +const char *yao_reading_rule(unsigned moving_count); +/* Complete reading, excluding duplicate unchanged hexagram. Returns required + * bytes excluding NUL; NULL/0 measures. A short buffer is always terminated. */ +size_t yao_format_full_reading(const yao_result_t *result,char *buffer,size_t capacity); diff --git a/main/yao_geo.c b/main/yao_geo.c new file mode 100644 index 0000000..f38bf7d --- /dev/null +++ b/main/yao_geo.c @@ -0,0 +1,76 @@ +#include "yao_geo.h" +#include "cJSON.h" +#include +#include +#include +#include +bool yao_location_parse(const char *json,yao_location_t *out){ + if(!out)return false; + *out=(yao_location_t){0};cJSON *o=cJSON_Parse(json);if(!o)return false; + const cJSON *ok=cJSON_GetObjectItemCaseSensitive(o,"success"),*status=cJSON_GetObjectItemCaseSensitive(o,"status"); + const cJSON *lon=cJSON_GetObjectItemCaseSensitive(o,"longitude");if(!cJSON_IsNumber(lon))lon=cJSON_GetObjectItemCaseSensitive(o,"lon"); + const cJSON *city=cJSON_GetObjectItemCaseSensitive(o,"city"),*region=cJSON_GetObjectItemCaseSensitive(o,"region");if(!cJSON_IsString(region))region=cJSON_GetObjectItemCaseSensitive(o,"regionName"); + const char *name=cJSON_IsString(city)&&city->valuestring[0]?city->valuestring:cJSON_IsString(region)?region->valuestring:""; + bool success=cJSON_IsTrue(ok)||(cJSON_IsString(status)&&!strcmp(status->valuestring,"success")); + bool valid=success&&cJSON_IsNumber(lon)&&isfinite(lon->valuedouble)&&lon->valuedouble>=-180&&lon->valuedouble<=180&&strlen(name)region); + if(valid){snprintf(out->region,sizeof(out->region),"%s",name);out->longitude_e6=(int32_t)llround(lon->valuedouble*1000000);out->configured=true;valid=yao_location_valid(out);} + cJSON_Delete(o);if(!valid)*out=(yao_location_t){0};return valid; +} +#ifndef BADGE_CONTROL_HOST_TEST +#include "badge_power.h" +#include "esp_http_client.h" +#include "esp_crt_bundle.h" +#include "esp_timer.h" +#include "esp_heap_caps.h" +#include "freertos/FreeRTOS.h" +#include "freertos/task.h" +typedef struct {char data[1024];size_t used;uint32_t generation;int64_t deadline;bool invalid;} response_t; +static atomic_uint retry_at_seconds; +static bool idle(void){badge_power_status_t p=badge_power_status();return !p.screen_off&&!p.audio_owner;} +static esp_err_t receive(esp_http_client_event_t *event){ + response_t *r=event->user_data; + if(r->invalid||!yao_location_active(r->generation)||!idle()||esp_timer_get_time()>r->deadline){r->invalid=true;return ESP_FAIL;} + if(event->event_id==HTTP_EVENT_ON_DATA){ + if(event->data_len<0||r->used+(size_t)event->data_len>=sizeof(r->data)){r->invalid=true;return ESP_FAIL;} + memcpy(r->data+r->used,event->data,event->data_len);r->used+=(size_t)event->data_len;r->data[r->used]=0; + } + return ESP_OK; +} +static bool request(uint32_t id,const char *url,yao_location_t *place){ + response_t response={.generation=id,.deadline=esp_timer_get_time()+6000000}; + bool ok=false; + if(yao_location_active(id)&&idle()){ + esp_http_client_config_t config={ + .url=url,.timeout_ms=3500,.buffer_size=512,.buffer_size_tx=256, + .disable_auto_redirect=true,.crt_bundle_attach=esp_crt_bundle_attach, + .event_handler=receive,.user_data=&response, + }; + esp_http_client_handle_t client=esp_http_client_init(&config); + if(client){ + esp_http_client_set_header(client,"Accept-Encoding","identity"); + esp_err_t e=esp_http_client_perform(client); + ok=e==ESP_OK&&!response.invalid&&esp_http_client_get_status_code(client)==200&&esp_timer_get_time()<=response.deadline&&yao_location_active(id)&&idle()&&yao_location_parse(response.data,place); + esp_http_client_cleanup(client); + } + } + return ok; +} +static void fetch(void *arg){ + uint32_t id=(uint32_t)(uintptr_t)arg;yao_location_t place={0};bool ok=false; + static const char *urls[]={"https://ipwho.is/?fields=success,region,city,longitude&lang=zh-CN","http://ip-api.com/json/?fields=status,regionName,city,lon"}; + for(unsigned i=0;i +static yao_location_t current; +static uint32_t generation,working_generation; +static bool connected,attempted,running,failed,voice_active; +static int64_t calibrated_ms; +#define LOCATION_CACHE_MS (60LL*60*1000) +#ifdef BADGE_CONTROL_HOST_TEST +int64_t yao_location_test_ms; +static int64_t monotonic_ms(void){return yao_location_test_ms;} +#define LOCK() ((void)0) +#define UNLOCK() ((void)0) +#else +#include "freertos/FreeRTOS.h" +#include "esp_timer.h" +static int64_t monotonic_ms(void){return esp_timer_get_time()/1000;} +static portMUX_TYPE mux=portMUX_INITIALIZER_UNLOCKED; +#define LOCK() portENTER_CRITICAL(&mux) +#define UNLOCK() portEXIT_CRITICAL(&mux) +#endif +/* Called under mux. Clock synchronization must not change the cache lifetime. */ +static void expire_cache(void){ + if(current.configured&&monotonic_ms()-calibrated_ms>=LOCATION_CACHE_MS){ + current=(yao_location_t){0};attempted=false;failed=false; + } +} +void yao_location_init(void){LOCK();current=(yao_location_t){0};calibrated_ms=0;generation=working_generation=0;connected=attempted=running=failed=voice_active=false;UNLOCK();} +void yao_location_voice_active(bool active){LOCK();voice_active=active;UNLOCK();} +bool yao_location_worker_running(void){LOCK();bool active=running;UNLOCK();return active;} +yao_location_t yao_location_get(void){LOCK();expire_cache();yao_location_t p=current;UNLOCK();return p;} +void yao_location_network(bool online){ + LOCK(); + /* Invalidate in-flight replies, but keep the worker lease until HTTP/TLS cleanup. + * A reconnect must not allocate another network task on top of this one. */ + expire_cache(); + if(connected!=online){connected=online;if(++generation==0)generation=1;attempted=false;failed=false;} + UNLOCK(); +} +void yao_location_recheck(void){ + LOCK(); + expire_cache(); + if(connected&&!current.configured&&!running){if(++generation==0)generation=1;attempted=false;failed=false;} + UNLOCK(); +} +uint32_t yao_location_begin(void){ + LOCK();expire_cache();uint32_t id=0; + if(connected&&!current.configured&&!voice_active&&!attempted&&!running){id=generation;working_generation=id;running=true;attempted=true;} + UNLOCK();return id; +} +bool yao_location_active(uint32_t id){LOCK();bool ok=id&&connected&&!voice_active&&generation==id;UNLOCK();return ok;} +void yao_location_finish(uint32_t id,const yao_location_t *result){ + bool valid=result&&result->configured&&yao_location_valid(result); + LOCK(); + if(running&&working_generation==id){ + if(connected&&generation==id){current=valid?*result:(yao_location_t){0};failed=!valid;if(valid)calibrated_ms=monotonic_ms();else attempted=false;} + running=false; + } + UNLOCK(); +} +const char *yao_location_status(void){ + LOCK();expire_cache();const char *s=current.configured?"ready":!connected?"offline":running&&working_generation==generation?"fetching":failed?"retrying":"pending";UNLOCK();return s; +} diff --git a/main/yao_service.c b/main/yao_service.c new file mode 100644 index 0000000..6bdb963 --- /dev/null +++ b/main/yao_service.c @@ -0,0 +1,161 @@ +#include "yao_service.h" +#include +#include +#ifndef BADGE_CONTROL_HOST_TEST +#include "badge_network.h" +#include "esp_random.h" +bool yao_random_bits(uint32_t *bits) { + if(!bits||!badge_network_entropy_ready())return false; + esp_fill_random(bits,sizeof(*bits));return true; +} +#endif +static yao_record_t cache[YAO_CACHE_COUNT]; +static uint32_t sequence; +bool yao_lookup(uint32_t id,yao_record_t *out){ + if(!id||!out)return false; + for(unsigned i=0;icast_utc=yao_time_now();r->location=yao_location_get(); + r->id=++sequence;cache[(sequence-1)%YAO_CACHE_COUNT]=*r;return true; +} +bool yao_save_manual(const uint8_t lines[6],yao_record_t *out){ + yao_result_t result;if(!out||!yao_calculate(lines,&result))return false; + *out=(yao_record_t){0};memcpy(out->lines,lines,6);return save(out); +} +bool yao_refresh_location(yao_record_t *record){ + if(!record||!record->id||record->location.configured)return false; + yao_location_t location=yao_location_get();if(!location.configured||!yao_location_valid(&location))return false; + record->location=location; + for(unsigned i=0;iid){cache[i].location=location;break;} + return true; +} +static cJSON *hexagram(const yao_hexagram_t *h){ + char name[32];if(!yao_full_name(h,name,sizeof(name)))return NULL; + cJSON *o=cJSON_CreateObject(); + if(o&&cJSON_AddNumberToObject(o,"number",h->number)&&cJSON_AddStringToObject(o,"name",name)&&cJSON_AddStringToObject(o,"short_name",h->name)&&cJSON_AddStringToObject(o,"guaci",h->text)){ + cJSON *a=cJSON_AddArrayToObject(o,"yaoci");if(!a)goto fail; + for(unsigned i=0;i<6;i++){ + cJSON *line=cJSON_CreateString(h->lines[i]);if(!line)goto fail; + if(!cJSON_AddItemToArray(a,line)){cJSON_Delete(line);goto fail;} + } + if(h->special&&!cJSON_AddStringToObject(o,"special",h->special))goto fail; + return o; + } +fail: + cJSON_Delete(o);return NULL; +} +static bool attach(cJSON *o,const char *key,cJSON *value){ + if(!value)return false; + if(cJSON_AddItemToObject(o,key,value))return true; + cJSON_Delete(value);return false; +} +cJSON *yao_time_json(int64_t utc,const yao_location_t *location){ + cJSON *o=cJSON_CreateObject();if(!o)return NULL; + bool valid=yao_time_valid(utc),located=location&&location->configured&&yao_location_valid(location); + if(!cJSON_AddBoolToObject(o,"clock_valid",valid)||!cJSON_AddBoolToObject(o,"location_set",located))goto fail; + if(located&&(!cJSON_AddStringToObject(o,"location_source","network_ip_approx")||!cJSON_AddStringToObject(o,"region",location->region)||!cJSON_AddNumberToObject(o,"longitude_east",location->longitude_e6/1000000.0)))goto fail; + if(!valid)return o; + char stamp[20];if(!yao_time_format(utc,stamp)||!cJSON_AddStringToObject(o,"utc",stamp))goto fail; + if(!yao_time_format(utc+28800,stamp)||!cJSON_AddStringToObject(o,"beijing_utc8",stamp))goto fail; + if(located){ + int64_t solar;double eq; + if(!yao_solar_time(utc,location->longitude_e6/1000000.0,&solar,&eq)||!yao_time_format(solar,stamp))goto fail; + if(!cJSON_AddStringToObject(o,"true_solar_time",stamp)|| + !cJSON_AddNumberToObject(o,"equation_minutes",(double)((int)(eq*100))/100)|| + !cJSON_AddStringToObject(o,"solar_method","NOAA fractional-year approximation; solar wall time, not UTC"))goto fail; + } + return o; +fail:cJSON_Delete(o);return NULL; +} +cJSON *yao_query_time_json(void){ + cJSON *o=yao_time_json(yao_time_now(),NULL); + if(o)cJSON_DeleteItemFromObjectCaseSensitive(o,"location_set"); + return o; +} +cJSON *yao_record_json(const yao_record_t *record){ + yao_result_t r;if(!record||!yao_calculate(record->lines,&r))return NULL; + cJSON *o=cJSON_CreateObject();if(!o)return NULL; + if(!cJSON_AddNumberToObject(o,"result_id",record->id)|| + !cJSON_AddStringToObject(o,"question",record->question)|| + !cJSON_AddStringToObject(o,"line_order","bottom_to_top")|| + !cJSON_AddStringToObject(o,"random_source","esp32_rf_rng")|| + !cJSON_AddBoolToObject(o,"survives_reboot",false)|| + !attach(o,"cast_time",yao_time_json(record->cast_utc,&record->location))|| + !attach(o,"current_time",yao_query_time_json())|| + !attach(o,"original",hexagram(r.original))||!attach(o,"changed",hexagram(r.changed))|| + !cJSON_AddStringToObject(o,"rule",yao_reading_rule(r.moving_count))|| + !cJSON_AddStringToObject(o,"instruction","è‹¥questionå�Šå½“å‰�对è¯�å�‡æœªæ˜Žç¡®æ‰€é—®äº‹é¡¹ï¼Œå…ˆè¯¢é—®æƒ³é—®å“ªä»¶äº‹å�Šå¿…è¦�背景,等用户补充å�Žå†�解读,ä¸�自行å�‡å®šäº‹ä¸šæˆ–感情。完整å�¦è¾žã€�å…­æ�¡çˆ»è¾žå�Šç”¨ä¹�用六仅作ä¾�æ�®ï¼›é»˜è®¤ç›´æŽ¥ç”¨ç™½è¯�讲结论ã€�趋势ã€�注æ„�事项和建议,结å�ˆä¸»è¯»å’ŒåŠ¨çˆ»ç»¼å�ˆè§£é‡Šã€‚ä¸�è¦�先朗读原文或é€�爻翻译;仅用户明确è¦�求时展开。å�¦å��用全称,无动爻ä¸�é‡�å¤�。起å�¦ä¾�æ�®cast_time,ä¸�用current_time替æ�¢ï¼›çœŸå¤ªé˜³æ—¶å·²æŒ‰èµ·å�¦æ‰€åœ¨åœ°ç»�度与å�‡æ—¶å·®ä¿®æ­£ï¼Œå‹¿å†�次修正。location_set=false时直接用已有系统时间解读,简短说明未校准真太阳时,ä¸�è¦�求用户填写地区或ç»�度;clock_valid=false时说明时间未知,ä¸�编造时间相关推断。ä¸�è¦�é‡�æ–°èµ·å�¦ï¼Œä¸�把解读说æˆ�必然事实。"))goto fail; + cJSON *lines=cJSON_AddArrayToObject(o,"lines"),*moving=cJSON_AddArrayToObject(o,"moving_lines"),*readings=cJSON_AddArrayToObject(o,"readings"); + if(!lines||!moving||!readings)goto fail; + for(unsigned i=0;i<6;i++){ + cJSON *n=cJSON_CreateNumber(r.lines[i]);if(!n)goto fail;cJSON_AddItemToArray(lines,n); + if(r.moving_mask&(1u<hexagram,name,sizeof(name)))goto fail; + if(!cJSON_AddStringToObject(v,"source",p->hexagram==r.original?"original":"changed")|| + !cJSON_AddStringToObject(v,"hexagram_name",name)|| + !cJSON_AddNumberToObject(v,"line",p->line)||!cJSON_AddBoolToObject(v,"primary",p->primary)|| + !cJSON_AddStringToObject(v,"text",p->text))goto fail; + } + return o; +fail:cJSON_Delete(o);return NULL; +} +static bool valid_text(const char *s,unsigned max_chars,unsigned max_bytes){ + if(!s||strlen(s)>max_bytes)return false; + unsigned count=0;const unsigned char *p=(const unsigned char *)s; + while(*p){ + unsigned cp=*p++,n=0,min=0; + if(cp<0x80){if(cp<32||cp==127)return false;} + else if(cp>=0xc2&&cp<=0xdf){cp&=31;n=1;min=0x80;} + else if(cp>=0xe0&&cp<=0xef){cp&=15;n=2;min=0x800;} + else if(cp>=0xf0&&cp<=0xf4){cp&=7;n=3;min=0x10000;} + else return false; + for(unsigned i=0;i0x10ffff||(cp>=0xd800&&cp<=0xdfff))return false; + if(++count>max_chars)return false; + } + return true; +} +cJSON *yao_tool(const char *name,const cJSON *args,const char **error){ + *error=NULL;yao_record_t record={0}; + bool cast=!strcmp(name,"self.yao.cast"); + if(args&&!cJSON_IsObject(args))goto invalid; + unsigned seen=0; + for(const cJSON *v=args?args->child:NULL;v;v=v->next){ + unsigned bit=!strcmp(v->string,cast?"request_id":"result_id")?1:cast&&!strcmp(v->string,"question")?2:0; + if(!bit||(seen&bit))goto invalid; + seen|=bit; + } + if(!cast){ + const cJSON *id=cJSON_GetObjectItemCaseSensitive(args,"result_id"); + if(id&&(!cJSON_IsNumber(id)||id->valuedouble<1||id->valuedouble>UINT32_MAX||id->valuedouble!=(uint32_t)id->valuedouble))goto invalid; + if(!(id?yao_lookup((uint32_t)id->valuedouble,&record):yao_latest(&record))){*error="没有这次å�¦è±¡ã€‚ä»…ä¿�留本次开机最近四å�¦ï¼Œè¯·å…ˆèµ·å�¦ï¼›ä¸�è¦�自动é‡�æ–°èµ·å�¦ã€‚";return NULL;} + }else{ + const cJSON *key=cJSON_GetObjectItemCaseSensitive(args,"request_id"),*q=cJSON_GetObjectItemCaseSensitive(args,"question"); + if(!cJSON_IsString(key)||!key->valuestring[0]||strlen(key->valuestring)>48||(q&&!cJSON_IsString(q)))goto invalid; + for(const unsigned char *p=(const unsigned char *)key->valuestring;*p;p++)if(!((*p>='0'&&*p<='9')||(*p>='A'&&*p<='Z')||(*p>='a'&&*p<='z')||*p=='-'||*p=='_'))goto invalid; + const char *question=q?q->valuestring:"";if(!valid_text(question,96,384))goto invalid; + for(unsigned i=0;ivaluestring)){ + if(strcmp(cache[i].question,question)){*error="å�Œä¸€ request_id ä¸�能用于ä¸�å�Œé—®é¢˜ã€‚";return NULL;} + return yao_record_json(&cache[i]); + } + uint32_t bits;if(!yao_random_bits(&bits)){*error="硬件éš�机æº�尚未就绪,请ç¨�å�Žç”¨ç›¸å�Œ request_id é‡�试。未生æˆ�å�¦è±¡ã€‚";return NULL;} + for(unsigned i=0;i<6;i++)record.lines[i]=yao_coin_line((uint8_t)(bits>>(3*i))); + strcpy(record.request,key->valuestring);strcpy(record.question,question); + if(!save(&record)){*error="本次开机的结果编å�·å·²ç”¨å°½ã€‚";return NULL;} + } + return yao_record_json(&record); +invalid:*error="å�‚数无效,请按方法定义填写。";return NULL; +} +char *yao_interpretation_prompt(const yao_record_t *record){ + if(!record||!record->id)return NULL; + cJSON *snapshot=yao_record_json(record);if(!snapshot)return NULL; + char *out=cJSON_PrintUnformatted(snapshot);cJSON_Delete(snapshot);return out; +} diff --git a/main/yao_service.h b/main/yao_service.h new file mode 100644 index 0000000..3ca72e3 --- /dev/null +++ b/main/yao_service.h @@ -0,0 +1,26 @@ +#pragma once +#ifdef __cplusplus +extern "C" { +#endif +#include "yao_core.h" +#include "yao_time.h" +#include "cJSON.h" +#define YAO_CACHE_COUNT 4 +typedef struct {uint32_t id; uint8_t lines[6]; char request[49], question[385]; int64_t cast_utc; yao_location_t location;} yao_record_t; +/* Serialized callers: navigation task while mini-app is active, voice worker + * while AI is active. No UI timer or ISR accesses this store. RAM only. */ +bool yao_latest(yao_record_t *out); +bool yao_lookup(uint32_t id,yao_record_t *out); +bool yao_save_manual(const uint8_t lines[6],yao_record_t *out); +bool yao_refresh_location(yao_record_t *record); +bool yao_random_bits(uint32_t *bits); +/* Owned JSON: NULL only for allocation failure. error is a static message. */ +cJSON *yao_tool(const char *name,const cJSON *args,const char **error); +cJSON *yao_record_json(const yao_record_t *record); +cJSON *yao_time_json(int64_t utc,const yao_location_t *location); +cJSON *yao_query_time_json(void); +/* Caller frees returned prompt with cJSON_free(). */ +char *yao_interpretation_prompt(const yao_record_t *record); +#ifdef __cplusplus +} +#endif diff --git a/main/yao_text_data.c b/main/yao_text_data.c new file mode 100644 index 0000000..34a3251 --- /dev/null +++ b/main/yao_text_data.c @@ -0,0 +1,711 @@ +/* CyberYAO 3c4780feea04737e6e59b6e1849e591710e6656c; MIT, assets/cyberyao/LICENSE. */ +/* ç”± tools/generate_yaoci.py 从 guaci-pages/1.html..64.html 生æˆ�。 */ +/* æº�文件有åº� SHA-256: 185630714a1269ce00c6c2e53ff0d276f34f01abc6f10f8cbf93e770d1ba4c44 */ +#include "yao_core.h" + +const yao_hexagram_t YAO_HEXAGRAMS[64] = { + { 1, "ä¹¾", + "乾:元亨。利贞。", + { + "åˆ�ä¹�:潜龙勿用。", + "ä¹�二:è§�龙在田,利è§�大人。", + "ä¹�三:å�›å­�终日乾乾,夕惕若;厉,无咎。", + "ä¹�四:或跃在渊,无咎。", + "ä¹�五:飞龙在天,利è§�大人。", + "上ä¹�:亢龙,有悔。", + }, + "用ä¹�:è§�群龙无首,å�‰ã€‚" }, + { 2, "å�¤", + "å�¤ï¼šå…ƒäº¨ã€‚利ç‰�马之贞。å�›å­�有攸往,先迷å�Žå¾—主,利。西å�—得朋,东北丧朋。安贞,å�‰ã€‚", + { + "åˆ�六:履霜,å�šå†°è‡³ã€‚", + "六二:直方大,ä¸�ä¹ æ— ä¸�利。", + "六三:å�«ç« ï¼Œå�¯è´žã€‚或从王事,无æˆ�有终。", + "六四:括囊,无咎无誉。", + "六五:黄裳,元å�‰ã€‚", + "上六:龙战于野,其血玄黄。", + }, + "用六:利永贞。" }, + { 3, "屯", + "屯:元亨,利贞。勿用有攸往,利建侯。", + { + "åˆ�ä¹�:ç£�桓,利居贞,利建侯。", + "六二:屯如邅如,乘马ç�­å¦‚,匪寇婚媾,女å­�è´žä¸�字,å��年乃字。", + "六三:å�³é¹¿æ— è™žï¼ŒæƒŸå…¥äºŽæž—中,å�›å­�几ä¸�如èˆ�,往å��。", + "六四:乘马ç�­å¦‚,求婚媾,往,å�‰æ— ä¸�利。", + "ä¹�五:屯其è†�ï¼›å°�è´žå�‰ï¼Œå¤§è´žå‡¶ã€‚", + "上六:乘马ç�­å¦‚,泣血涟如。", + }, + NULL }, + { 4, "è’™", + "蒙:亨。匪我求童蒙,童蒙求我。åˆ�筮告,å†�三渎,渎则ä¸�告。利贞。", + { + "åˆ�六:å�‘蒙,利用刑人,用说桎æ¢�,以往å��。", + "ä¹�二:包蒙å�‰ï¼Œçº³å¦‡å�‰ï¼Œå­�克家。", + "六三:勿用å�–女,è§�金夫,ä¸�有躬,无攸利。", + "六四:困蒙,å��。", + "六五:童蒙,å�‰ã€‚", + "上ä¹�:击蒙,ä¸�利为寇,利御寇。", + }, + NULL }, + { 5, "需", + "需:有孚,光亨。贞å�‰ï¼Œåˆ©æ¶‰å¤§å·�。", + { + "åˆ�ä¹�:需于郊,利用æ�’,无咎。", + "ä¹�二:需于沙,å°�有言,终å�‰ã€‚", + "ä¹�三:需于泥,致寇至。", + "六四:需于血,出自穴。", + "ä¹�五:需于酒食,贞å�‰ã€‚", + "上六:入于穴,有ä¸�速之客三人æ�¥ï¼Œæ•¬ä¹‹ç»ˆå�‰ã€‚", + }, + NULL }, + { 6, "讼", + "讼:有孚,窒,惕,中å�‰ï¼Œç»ˆå‡¶ã€‚利è§�大人,ä¸�利涉大å·�。", + { + "åˆ�六:ä¸�永所事,å°�有言,终å�‰ã€‚", + "ä¹�二:ä¸�克讼,归而逋,其邑人三百户无眚。", + "六三:食旧德,贞厉,终å�‰ã€‚或从王事,无æˆ�。", + "ä¹�四:ä¸�克讼,å¤�å�³å‘½æ¸�,安贞å�‰ã€‚", + "ä¹�五:讼,元å�‰ã€‚", + "上ä¹�:或锡之鞶带,终æœ�三褫之。", + }, + NULL }, + { 7, "师", + "师:贞丈人å�‰ï¼Œæ— å’Žã€‚", + { + "åˆ�六:师出以律,å�¦è‡§ï¼Œå‡¶ã€‚", + "ä¹�二:在师中å�‰ï¼Œæ— å’Žï¼›çŽ‹ä¸‰é”¡å‘½ã€‚", + "六三:师或舆尸,凶。", + "六四:师左次,无咎。", + "六五:田有禽,利执言,无咎。长å­�帅师,弟å­�舆尸,贞凶。", + "上六:大å�›æœ‰å‘½ï¼Œå¼€å›½æ‰¿å®¶ï¼Œå°�人勿用。", + }, + NULL }, + { 8, "比", + "比:å�‰ã€‚原筮元永贞,无咎。ä¸�å®�æ–¹æ�¥ï¼Œå�Žå¤«å‡¶ã€‚", + { + "åˆ�六:有孚,比之,无咎。有孚盈缶,终æ�¥æœ‰å®ƒï¼Œå�‰ã€‚", + "六二:比之自内,贞å�‰ã€‚", + "六三:比之匪人。", + "六四:外比之,贞å�‰ã€‚", + "ä¹�五:显比。王用三驱,失å‰�禽,邑人ä¸�诫,å�‰ã€‚", + "上六:比之无首,凶。", + }, + NULL }, + { 9, "å°�畜", + "å°�畜:亨。密云ä¸�雨,自我西郊。", + { + "åˆ�ä¹�:å¤�自é�“,何其咎,å�‰ã€‚", + "ä¹�二:牵å¤�,å�‰ã€‚", + "ä¹�三:舆说è¾�,夫妻å��目。", + "六四:有孚,血去惕出,无咎。", + "ä¹�五:有孚挛如,富以其邻。", + "上ä¹�:既雨既处,尚德载,妇贞厉,月几望,å�›å­�å¾�凶。", + }, + NULL }, + { 10, "å±¥", + "履:履虎尾,ä¸�咥人,亨。", + { + "åˆ�ä¹�:素履,往无咎。", + "ä¹�二:履é�“å�¦å�¦ï¼Œå¹½äººè´žå�‰ã€‚", + "六三:眇能视,跛能履,履虎尾,咥人,凶。武人为于大å�›ã€‚", + "ä¹�四:履虎尾,愬愬终å�‰ã€‚", + "ä¹�五:夬履,贞厉。", + "上ä¹�:视履考祥,其旋元å�‰ã€‚", + }, + NULL }, + { 11, "æ³°", + "泰:å°�往大æ�¥ï¼Œå�‰äº¨ã€‚", + { + "åˆ�ä¹�:拔茅茹,以其汇,å¾�å�‰ã€‚", + "ä¹�二:包è�’,用冯河,ä¸�é��é�—,朋亡,得尚于中行。", + "ä¹�三:无平ä¸�陂,无往ä¸�å¤�,艰贞无咎。勿æ�¤å…¶å­šï¼ŒäºŽé£Ÿæœ‰ç¦�。", + "六四:翩翩,ä¸�富以其邻,ä¸�戒以孚。", + "六五:å¸�乙归妹,以祉元å�‰ã€‚", + "上六:城å¤�于éš�,勿用师。自邑告命,贞å��。", + }, + NULL }, + { 12, "å�¦", + "å�¦ï¼šå�¦ä¹‹åŒªäººï¼Œä¸�利å�›å­�贞,大往å°�æ�¥ã€‚", + { + "åˆ�六:拔茅茹,以其汇,贞å�‰äº¨ã€‚", + "六二:包承,å°�人å�‰ï¼Œå¤§äººå�¦äº¨ã€‚", + "六三:包羞。", + "ä¹�四:有命无咎,畴离祉。", + "ä¹�五:休å�¦ï¼Œå¤§äººå�‰ã€‚其亡其亡,系于苞桑。", + "上ä¹�:倾å�¦ï¼Œå…ˆå�¦å�Žå–œã€‚", + }, + NULL }, + { 13, "å�Œäºº", + "å�Œäººï¼šå�ŒäººäºŽé‡Žï¼Œäº¨ã€‚利涉大å·�,利å�›å­�贞。", + { + "åˆ�ä¹�:å�ŒäººäºŽé—¨ï¼Œæ— å’Žã€‚", + "六二:å�ŒäººäºŽå®—,å��。", + "ä¹�三:ä¼�戎于莽,å�‡å…¶é«˜é™µï¼Œä¸‰å²�ä¸�兴。", + "ä¹�四:乘其墉,弗克攻,å�‰ã€‚", + "ä¹�五:å�Œäººï¼Œå…ˆå�·å’·è€Œå�Žç¬‘。大师克相é�‡ã€‚", + "上ä¹�:å�ŒäººäºŽéƒŠï¼Œæ— æ‚”。", + }, + NULL }, + { 14, "大有", + "大有:元亨。", + { + "åˆ�ä¹�:无交害,匪咎,艰则无咎。", + "ä¹�二:大车以载,有攸往,无咎。", + "ä¹�三:公用亨于天å­�,å°�人弗克。", + "ä¹�四:匪其彭,无咎。", + "六五:厥孚交如,å¨�如,å�‰ã€‚", + "上ä¹�:自天ç¥�之,å�‰æ— ä¸�利。", + }, + NULL }, + { 15, "è°¦", + "谦:亨,å�›å­�有终。", + { + "åˆ�六:谦谦å�›å­�,用涉大å·�,å�‰ã€‚", + "六二:鸣谦,贞å�‰ã€‚", + "ä¹�三:劳谦,å�›å­�有终,å�‰ã€‚", + "六四:无ä¸�利,æ’�谦。", + "六五:ä¸�富以其邻,利用侵ä¼�,无ä¸�利。", + "上六:鸣谦,利用行师,å¾�邑国。", + }, + NULL }, + { 16, "豫", + "豫:利建侯行师。", + { + "åˆ�六:鸣豫,凶。", + "六二:介于石,ä¸�终日,贞å�‰ã€‚", + "六三:盱豫,悔;迟有悔。", + "ä¹�四:由豫,大有得。勿疑,朋ç›�簪。", + "六五:贞疾,æ�’ä¸�死。", + "上六:冥豫,æˆ�有æ¸�,无咎。", + }, + NULL }, + { 17, "éš�", + "éš�:元亨。利贞。无咎。", + { + "åˆ�ä¹�:官有æ¸�,贞å�‰ã€‚出门交有功。", + "六二:系å°�å­�,失丈夫。", + "六三:系丈夫,失å°�å­�。éš�有求得,利居贞。", + "ä¹�四:éš�有获,贞凶。有孚在é�“,以明,何咎。", + "ä¹�五:孚于嘉,å�‰ã€‚", + "上六:拘系之,乃从维之。王用亨于西山。", + }, + NULL }, + { 18, "蛊", + "蛊:元亨。利涉大å·�。先甲三日,å�Žç”²ä¸‰æ—¥ã€‚", + { + "åˆ�六:干父之蛊,有å­�,考无咎,厉终å�‰ã€‚", + "ä¹�二:干æ¯�之蛊,ä¸�å�¯è´žã€‚", + "ä¹�三:干父之蛊,å°�有悔,无大咎。", + "六四:裕父之蛊,往è§�å��。", + "六五:干父之蛊,用誉。", + "上ä¹�:ä¸�事王侯,高尚其事。", + }, + NULL }, + { 19, "临", + "临:元亨。利贞。至于八月有凶。", + { + "åˆ�ä¹�:咸临,贞å�‰ã€‚", + "ä¹�二:咸临,å�‰æ— ä¸�利。", + "六三:甘临,无攸利;既忧之,无咎。", + "六四:至临,无咎。", + "六五:知临,大å�›ä¹‹å®œï¼Œå�‰ã€‚", + "上六:敦临,å�‰æ— å’Žã€‚", + }, + NULL }, + { 20, "è§‚", + "观:盥而ä¸�è��,有孚颙若。", + { + "åˆ�六:童观,å°�人无咎,å�›å­�å��。", + "六二:窥观,利女贞。", + "六三:观我生,进退。", + "六四:观国之光,利用宾于王。", + "ä¹�五:观我生,å�›å­�无咎。", + "上ä¹�:观其生,å�›å­�无咎。", + }, + NULL }, + { 21, "噬嗑", + "噬嗑:亨。利用狱。", + { + "åˆ�ä¹�:屦校ç�­è¶¾ï¼Œæ— å’Žã€‚", + "六二:噬肤ç�­é¼»ï¼Œæ— å’Žã€‚", + "六三:噬腊肉,é�‡æ¯’ï¼›å°�å��,无咎。", + "ä¹�四:噬干èƒ�,得金矢,利艰贞,å�‰ã€‚", + "六五:噬干肉,得黄金,贞厉,无咎。", + "上ä¹�:何校ç�­è€³ï¼Œå‡¶ã€‚", + }, + NULL }, + { 22, "è´²", + "贲:亨。å°�利有攸往。", + { + "åˆ�ä¹�:贲其趾,èˆ�车而徒。", + "六二:贲其须。", + "ä¹�三:贲如,濡如,永贞å�‰ã€‚", + "六四:贲如,皤如,白马翰如,匪寇婚媾。", + "六五:贲于丘园,æ�Ÿå¸›æˆ‹æˆ‹ï¼Œå��,终å�‰ã€‚", + "上ä¹�:白贲,无咎。", + }, + NULL }, + { 23, "剥", + "剥:ä¸�利有攸往。", + { + "åˆ�六:剥床以足,蔑贞凶。", + "六二:剥床以辨,蔑贞凶。", + "六三:剥之,无咎。", + "六四:剥床以肤,凶。", + "六五:贯鱼,以宫人宠,无ä¸�利。", + "上ä¹�:硕果ä¸�食,å�›å­�得舆,å°�人剥åº�。", + }, + NULL }, + { 24, "å¤�", + "å¤�:亨。出入无疾,朋æ�¥æ— å’Žã€‚å��å¤�å…¶é�“,七日æ�¥å¤�,利有攸往。", + { + "åˆ�ä¹�:ä¸�远å¤�,无祗悔,元å�‰ã€‚", + "六二:休å¤�,å�‰ã€‚", + "六三:频å¤�,厉,无咎。", + "六四:中行独å¤�。", + "六五:敦å¤�,无悔。", + "上六:迷å¤�,凶,有ç�¾çœšã€‚用行师,终有大败,以其国å�›å‡¶ï¼›è‡³äºŽå��å¹´ä¸�å…‹å¾�。", + }, + NULL }, + { 25, "无妄", + "无妄:元亨。利贞。其匪正有眚,ä¸�利有攸往。", + { + "åˆ�ä¹�:无妄,往å�‰ã€‚", + "六二:ä¸�耕获,ä¸�è�‘畬,则利有攸往。", + "六三:无妄之ç�¾ï¼Œæˆ–系之牛,行人之得,邑人之ç�¾ã€‚", + "ä¹�四:å�¯è´žï¼Œæ— å’Žã€‚", + "ä¹�五:无妄之疾,勿è�¯æœ‰å–œã€‚", + "上ä¹�:无妄,行有眚,无攸利。", + }, + NULL }, + { 26, "大畜", + "大畜:利贞,ä¸�家食å�‰ï¼Œåˆ©æ¶‰å¤§å·�。", + { + "åˆ�ä¹�:有厉,利已。", + "ä¹�二:舆说輹。", + "ä¹�三:良马é€�,利艰贞。曰闲舆å�«ï¼Œåˆ©æœ‰æ”¸å¾€ã€‚", + "六四:童牛之牿,元å�‰ã€‚", + "六五:豮豕之牙,å�‰ã€‚", + "上ä¹�:何天之衢,亨。", + }, + NULL }, + { 27, "é¢�", + "é¢�:贞å�‰ã€‚è§‚é¢�,自求å�£å®žã€‚", + { + "åˆ�ä¹�:èˆ�å°”ç�µé¾Ÿï¼Œè§‚我朵é¢�,凶。", + "六二:颠é¢�,拂ç»�,于丘é¢�,å¾�凶。", + "六三:拂é¢�,贞凶。å��年勿用,无攸利。", + "六四:颠é¢�,å�‰ã€‚虎视眈眈,其欲é€�é€�,无咎。", + "六五:拂ç»�,居贞å�‰ï¼Œä¸�å�¯æ¶‰å¤§å·�。", + "上ä¹�:由é¢�,厉å�‰ï¼Œåˆ©æ¶‰å¤§å·�。", + }, + NULL }, + { 28, "大过", + "大过:栋桡,利有攸往,亨。", + { + "åˆ�六:藉用白茅,无咎。", + "ä¹�二:枯æ�¨ç”Ÿç¨Šï¼Œè€�夫得其女妻,无ä¸�利。", + "ä¹�三:栋桡,凶。", + "ä¹�四:栋隆,å�‰ï¼›æœ‰å®ƒï¼Œå��。", + "ä¹�五:枯æ�¨ç”Ÿå�Žï¼Œè€�妇得其士夫,无咎无誉。", + "上六:过涉ç�­é¡¶ï¼Œå‡¶ï¼Œæ— å’Žã€‚", + }, + NULL }, + { 29, "å�Ž", + "ä¹ å�Žï¼šæœ‰å­šï¼Œç»´å¿ƒäº¨ã€‚行有尚。", + { + "åˆ�六:习å�Žï¼Œå…¥äºŽå�Žçªžï¼Œå‡¶ã€‚", + "ä¹�二:å�Žæœ‰é™©ï¼Œæ±‚å°�得。", + "六三:æ�¥ä¹‹å�Žå�Žï¼Œé™©ä¸”枕,入于å�Žçªžï¼Œå‹¿ç”¨ã€‚", + "六四:樽酒簋贰,用缶,纳约自牖,终无咎。", + "ä¹�五:å�Žä¸�盈,祗既平,无咎。", + "上六:系用徽纆,寘于丛棘,三å²�ä¸�得,凶。", + }, + NULL }, + { 30, "离", + "离:利贞。亨。畜ç‰�牛,å�‰ã€‚", + { + "åˆ�ä¹�:履错然,敬之无咎。", + "六二:黄离,元å�‰ã€‚", + "ä¹�三:日昃之离,ä¸�鼓缶而歌,则大耋之嗟,凶。", + "ä¹�四:çª�如其æ�¥å¦‚,焚如,死如,弃如。", + "六五:出涕沱若,戚嗟若,å�‰ã€‚", + "上ä¹�:王用出å¾�,有嘉折首,获匪其丑,无咎。", + }, + NULL }, + { 31, "å’¸", + "咸:亨。利贞。å�–女å�‰ã€‚", + { + "åˆ�六:咸其拇。", + "六二:咸其腓,凶;居å�‰ã€‚", + "ä¹�三:咸其股,执其éš�,往å��。", + "ä¹�四:贞å�‰æ‚”亡,憧憧往æ�¥ï¼Œæœ‹ä»Žå°”æ€�。", + "ä¹�五:咸其脢,无悔。", + "上六:咸其辅颊舌。", + }, + NULL }, + { 32, "æ�’", + "æ�’:亨,无咎。利贞,利有攸往。", + { + "åˆ�六:浚æ�’,贞凶,无攸利。", + "ä¹�二:悔亡。", + "ä¹�三:ä¸�æ�’其德,或承之羞,贞å��。", + "ä¹�四:田无禽。", + "六五:æ�’其德,贞,妇人å�‰ï¼Œå¤«å­�凶。", + "上六:振æ�’,凶。", + }, + NULL }, + { 33, "é��", + "é��:亨。å°�利贞。", + { + "åˆ�六:é�¯å°¾ï¼ŒåŽ‰ï¼Œå‹¿ç”¨æœ‰æ”¸å¾€ã€‚", + "六二:执之用黄牛之é�©ï¼ŒèŽ«ä¹‹èƒœè¯´ã€‚", + "ä¹�三:系é�¯ï¼Œæœ‰ç–¾åŽ‰ï¼Œç•œè‡£å¦¾å�‰ã€‚", + "ä¹�四:好é�¯ï¼Œå�›å­�å�‰ï¼Œå°�人å�¦ã€‚", + "ä¹�五:嘉é�¯ï¼Œè´žå�‰ã€‚", + "上ä¹�:肥é�¯ï¼Œæ— ä¸�利。", + }, + NULL }, + { 34, "大壮", + "大壮:利贞。", + { + "åˆ�ä¹�:壮于趾,å¾�凶,有孚。", + "ä¹�二:贞å�‰ã€‚", + "ä¹�三:å°�人用壮,å�›å­�用罔,贞厉。ç¾�羊触藩,羸其角。", + "ä¹�四:贞å�‰æ‚”亡,藩决ä¸�羸,壮于大舆之輹。", + "六五:丧羊于易,无悔。", + "上六:ç¾�羊触藩,ä¸�能退,ä¸�能é�‚,无攸利;艰则å�‰ã€‚", + }, + NULL }, + { 35, "晋", + "晋:康侯用锡马蕃庶,昼日三接。", + { + "åˆ�六:晋如摧如,贞å�‰ã€‚罔孚,裕无咎。", + "六二:晋如æ„�如,贞å�‰ã€‚å�—兹介ç¦�,于其王æ¯�。", + "六三:众å…�,悔亡。", + "ä¹�四:晋如鼫鼠,贞厉。", + "六五:悔亡,失得勿æ�¤ã€‚å¾€å�‰ï¼Œæ— ä¸�利。", + "上ä¹�:晋其角,维用ä¼�邑,厉å�‰æ— å’Žï¼Œè´žå��。", + }, + NULL }, + { 36, "明夷", + "明夷:利艰贞。", + { + "åˆ�ä¹�:明夷于飞,垂其翼。å�›å­�于行,三日ä¸�食,有攸往,主人有言。", + "六二:明夷,夷于左股,用拯马壮,å�‰ã€‚", + "ä¹�三:明夷于å�—狩,得其大首,ä¸�å�¯ç–¾è´žã€‚", + "六四:入于左腹,获明夷之心,于出门庭。", + "六五:箕å­�之明夷,利贞。", + "上六:ä¸�明晦,åˆ�登于天,å�Žå…¥äºŽåœ°ã€‚", + }, + NULL }, + { 37, "家人", + "家人:利女贞。", + { + "åˆ�ä¹�:闲有家,悔亡。", + "六二:无攸é�‚,在中馈,贞å�‰ã€‚", + "ä¹�三:家人嗃嗃,悔厉å�‰ï¼›å¦‡å­�嘻嘻,终å��。", + "六四:富家,大å�‰ã€‚", + "ä¹�五:王å�‡æœ‰å®¶ï¼Œå‹¿æ�¤å�‰ã€‚", + "上ä¹�:有孚å¨�如,终å�‰ã€‚", + }, + NULL }, + { 38, "ç�½", + "ç�½ï¼šå°�事å�‰ã€‚", + { + "åˆ�ä¹�:悔亡。丧马勿é€�,自å¤�。è§�æ�¶äººï¼Œæ— å’Žã€‚", + "ä¹�二:é�‡ä¸»äºŽå··ï¼Œæ— å’Žã€‚", + "六三:è§�舆曳,其牛掣,其人天且劓,无åˆ�有终。", + "ä¹�四:ç�½å­¤ï¼Œé�‡å…ƒå¤«ï¼Œäº¤å­šï¼ŒåŽ‰æ— å’Žã€‚", + "六五:悔亡。厥宗噬肤,往何咎。", + "上ä¹�:ç�½å­¤ï¼Œè§�豕负涂,载鬼一车。先张之弧,å�Žè¯´ä¹‹å¼§ï¼›åŒªå¯‡å©šåª¾ã€‚å¾€é�‡é›¨åˆ™å�‰ã€‚", + }, + NULL }, + { 39, "蹇", + "蹇:利西å�—,ä¸�利东北;利è§�大人,贞å�‰ã€‚", + { + "åˆ�六:往蹇,æ�¥èª‰ã€‚", + "六二:王臣蹇蹇,匪躬之故。", + "ä¹�三:往蹇,æ�¥å��。", + "六四:往蹇,æ�¥è¿žã€‚", + "ä¹�五:大蹇,朋æ�¥ã€‚", + "上六:往蹇,æ�¥ç¡•,å�‰ï¼›åˆ©è§�大人。", + }, + NULL }, + { 40, "è§£", + "解:利西å�—,无所往,其æ�¥å¤�å�‰ã€‚有攸往,夙å�‰ã€‚", + { + "åˆ�六:无咎。", + "ä¹�二:田获三ç‹�,得黄矢,贞å�‰ã€‚", + "六三:负且乘,致寇至,贞å��。", + "ä¹�四:解而拇,朋至斯孚。", + "六五:å�›å­�维有解,å�‰ï¼›æœ‰å­šäºŽå°�人。", + "上六:公用射隼于高墉之上,获之,无ä¸�利。", + }, + NULL }, + { 41, "æ�Ÿ", + "æ�Ÿï¼šæœ‰å­šï¼Œå…ƒå�‰ã€‚无咎,å�¯è´žï¼Œåˆ©æœ‰æ”¸å¾€ã€‚曷之用?二簋å�¯ç”¨äº«ã€‚", + { + "åˆ�ä¹�:已事é�„往,无咎,酌æ�Ÿä¹‹ã€‚", + "ä¹�二:利贞,å¾�凶,弗æ�Ÿç›Šä¹‹ã€‚", + "六三:三人行,则æ�Ÿä¸€äººï¼›ä¸€äººè¡Œï¼Œåˆ™å¾—å…¶å�‹ã€‚", + "六四:æ�Ÿå…¶ç–¾ï¼Œä½¿é�„有喜,无咎。", + "六五:或益之å��朋之龟,弗克è¿�,元å�‰ã€‚", + "上ä¹�:弗æ�Ÿç›Šä¹‹ï¼Œæ— å’Žï¼Œè´žå�‰ï¼Œåˆ©æœ‰æ”¸å¾€ï¼Œå¾—臣无家。", + }, + NULL }, + { 42, "益", + "益:利有攸往。利涉大å·�。", + { + "åˆ�ä¹�:利用为大作,元å�‰ï¼Œæ— å’Žã€‚", + "六二:或益之å��朋之龟,弗克è¿�,永贞å�‰ã€‚王用享于å¸�,å�‰ã€‚", + "六三:益之用凶事,无咎。有孚中行,告公用圭。", + "六四:中行,告公从,利用为ä¾�è¿�国。", + "ä¹�五:有孚惠心,勿问元å�‰ã€‚有孚惠我德。", + "上ä¹�:莫益之,或击之,立心勿æ�’,凶。", + }, + NULL }, + { 43, "夬", + "夬:扬于王庭,孚å�·ï¼Œæœ‰åŽ‰ï¼Œå‘Šè‡ªé‚‘ï¼Œä¸�利å�³æˆŽï¼Œåˆ©æœ‰æ”¸å¾€ã€‚", + { + "åˆ�ä¹�:壮于å‰�趾,往ä¸�胜,为咎。", + "ä¹�二:惕å�·ï¼ŒèŽ«å¤œæœ‰æˆŽï¼Œå‹¿æ�¤ã€‚", + "ä¹�三:壮于頄,有凶。å�›å­�夬夬,独行é�‡é›¨ï¼Œè‹¥æ¿¡æœ‰æ„ ï¼Œæ— å’Žã€‚", + "ä¹�四:臀无肤,其行次且。牵羊悔亡,闻言ä¸�信。", + "ä¹�五:苋陆夬夬,中行无咎。", + "上六:无å�·ï¼Œç»ˆæœ‰å‡¶ã€‚", + }, + NULL }, + { 44, "姤", + "姤:女壮,勿用å�–女。", + { + "åˆ�六:系于金柅,贞å�‰ã€‚有攸往,è§�凶,羸豕孚蹢躅。", + "ä¹�二:包有鱼,无咎,ä¸�利宾。", + "ä¹�三:臀无肤,其行次且,厉,无大咎。", + "ä¹�四:包无鱼,起凶。", + "ä¹�五:以æ�žåŒ…瓜,å�«ç« ï¼Œæœ‰é™¨è‡ªå¤©ã€‚", + "上ä¹�:姤其角,å��,无咎。", + }, + NULL }, + { 45, "è�ƒ", + "è�ƒï¼šäº¨ã€‚王å�‡æœ‰åº™ï¼Œåˆ©è§�大人,亨。利贞。用大牲å�‰ï¼Œåˆ©æœ‰æ”¸å¾€ã€‚", + { + "åˆ�六:有孚ä¸�终,乃乱乃è�ƒã€‚è‹¥å�·ï¼Œä¸€æ�¡ä¸ºç¬‘。勿æ�¤ï¼Œå¾€æ— å’Žã€‚", + "六二:引å�‰ï¼Œæ— å’Žï¼Œå­šä¹ƒåˆ©ç”¨ç¦´ã€‚", + "六三:è�ƒå¦‚嗟如,无攸利;往无咎,å°�å��。", + "ä¹�四:大å�‰ï¼Œæ— å’Žã€‚", + "ä¹�五:è�ƒæœ‰ä½�,无咎;匪孚,元永贞,悔亡。", + "上六:èµ�咨涕洟,无咎。", + }, + NULL }, + { 46, "å�‡", + "å�‡ï¼šå…ƒäº¨ï¼Œç”¨è§�大人,勿æ�¤ï¼Œå�—å¾�å�‰ã€‚", + { + "åˆ�六:å…�å�‡ï¼Œå¤§å�‰ã€‚", + "ä¹�二:孚乃利用禴,无咎。", + "ä¹�三:å�‡è™šé‚‘。", + "六四:王用亨于å²�山,å�‰æ— å’Žã€‚", + "六五:贞å�‰ï¼Œå�‡é˜¶ã€‚", + "上六:冥å�‡ï¼Œåˆ©äºŽä¸�æ�¯ä¹‹è´žã€‚", + }, + NULL }, + { 47, "å›°", + "困:亨,贞大人å�‰ï¼Œæ— å’Žï¼Œæœ‰è¨€ä¸�信。", + { + "åˆ�六:臀困于株木,入于幽谷,三å²�ä¸�觌。", + "ä¹�二:困于酒食,朱绂方æ�¥ï¼Œåˆ©ç”¨äº¨ç¥€ã€‚å¾�凶,无咎。", + "六三:困于石,æ�®äºŽè’ºè—œï¼Œå…¥äºŽå…¶å®«ï¼Œä¸�è§�其妻,凶。", + "ä¹�四:æ�¥å¾�å¾�,困于金车,å��,有终。", + "ä¹�五:劓刖,困于赤绂,乃å¾�有说,利用祭祀。", + "上六:困于葛藟,于臲å�¼ï¼Œæ›°åŠ¨æ‚”ã€‚æœ‰æ‚”ï¼Œå¾�å�‰ã€‚", + }, + NULL }, + { 48, "井", + "井:改邑ä¸�改井,无丧无得。往æ�¥äº•井。汔至,亦未繘井,羸其瓶,凶。", + { + "åˆ�六:井泥ä¸�食,旧井无禽。", + "ä¹�二:井谷射鲋,瓮æ•�æ¼�。", + "ä¹�三:井渫ä¸�食,为我心æ�»ï¼Œå�¯ç”¨æ±²ï¼ŒçŽ‹æ˜Žï¼Œå¹¶å�—å…¶ç¦�。", + "六四:井甃,无咎。", + "ä¹�五:井冽,寒泉食。", + "上六:井收勿幕,有孚元å�‰ã€‚", + }, + NULL }, + { 49, "é�©", + "é�©ï¼šå·³æ—¥ä¹ƒå­šï¼Œå…ƒäº¨ã€‚利贞。悔亡。", + { + "åˆ�ä¹�:巩用黄牛之é�©ã€‚", + "六二:巳日乃é�©ä¹‹ï¼Œå¾�å�‰ï¼Œæ— å’Žã€‚", + "ä¹�三:å¾�凶,贞厉。é�©è¨€ä¸‰å°±ï¼Œæœ‰å­šã€‚", + "ä¹�四:悔亡,有孚改命,å�‰ã€‚", + "ä¹�五:大人虎å�˜ï¼Œæœªå� æœ‰å­šã€‚", + "上六:å�›å­�è±¹å�˜ï¼Œå°�人é�©é�¢ï¼Œå¾�凶,居贞å�‰ã€‚", + }, + NULL }, + { 50, "鼎", + "鼎:元å�‰ï¼Œäº¨ã€‚", + { + "åˆ�六:鼎颠趾,利出å�¦ã€‚得妾以其å­�,无咎。", + "ä¹�二:鼎有实,我仇有疾,ä¸�我能å�³ï¼Œå�‰ã€‚", + "ä¹�三:鼎耳é�©ï¼Œå…¶è¡Œå¡žï¼Œé›‰è†�ä¸�食。方雨äº�悔,终å�‰ã€‚", + "ä¹�四:鼎折足,覆公餗,其形渥,凶。", + "六五:鼎黄耳金铉,利贞。", + "上ä¹�:鼎玉铉,大å�‰ï¼Œæ— ä¸�利。", + }, + NULL }, + { 51, "震", + "震:亨。震æ�¥è™©è™©ï¼Œç¬‘言哑哑。震惊百里,ä¸�丧匕鬯。", + { + "åˆ�ä¹�:震æ�¥è™©è™©ï¼Œå�Žç¬‘言哑哑,å�‰ã€‚", + "六二:震æ�¥åŽ‰ï¼Œäº¿ä¸§è´�,跻于ä¹�陵,勿é€�,七日得。", + "六三:震è‹�è‹�,震行无眚。", + "ä¹�四:震é�‚泥。", + "六五:震往æ�¥åŽ‰ï¼Œäº¿æ— ä¸§ï¼Œæœ‰äº‹ã€‚", + "上六:震索索,视çŸ�çŸ�,å¾�凶。震ä¸�于其躬,于其邻,无咎。婚媾有言。", + }, + NULL }, + { 52, "艮", + "艮:艮其背,ä¸�获其身,行其庭,ä¸�è§�其人,无咎。", + { + "åˆ�六:艮其趾,无咎,利永贞。", + "六二:艮其腓,ä¸�拯其éš�,其心ä¸�快。", + "ä¹�三:艮其é™�,列其夤,厉薰心。", + "六四:艮其身,无咎。", + "六五:艮其辅,言有åº�,悔亡。", + "上ä¹�:敦艮,å�‰ã€‚", + }, + NULL }, + { 53, "æ¸�", + "æ¸�:女归å�‰ï¼Œåˆ©è´žã€‚", + { + "åˆ�六:鸿æ¸�于干,å°�å­�厉,有言,无咎。", + "六二:鸿æ¸�于ç£�,饮食衎衎,å�‰ã€‚", + "ä¹�三:鸿æ¸�于陆,夫å¾�ä¸�å¤�,妇孕ä¸�育,凶;利御寇。", + "六四:鸿æ¸�于木,或得其桷,无咎。", + "ä¹�五:鸿æ¸�于陵,妇三å²�ä¸�孕,终莫之胜,å�‰ã€‚", + "上ä¹�:鸿æ¸�于陆,其羽å�¯ç”¨ä¸ºä»ªï¼Œå�‰ã€‚", + }, + NULL }, + { 54, "归妹", + "归妹:å¾�凶,无攸利。", + { + "åˆ�ä¹�:归妹以娣,跛能履,å¾�å�‰ã€‚", + "ä¹�二:眇能视,利幽人之贞。", + "六三:归妹以须,å��归以娣。", + "ä¹�四:归妹愆期,迟归有时。", + "六五:å¸�乙归妹,其å�›ä¹‹è¢‚ä¸�如其娣之袂良,月几望,å�‰ã€‚", + "上六:女承ç­�无实,士刲羊无血,无攸利。", + }, + NULL }, + { 55, "丰", + "丰:亨。王å�‡ä¹‹ï¼Œå‹¿å¿§ï¼Œå®œæ—¥ä¸­ã€‚", + { + "åˆ�ä¹�:é�‡å…¶é…�主,虽旬无咎,往有尚。", + "六二:丰其蔀,日中è§�斗。往得疑疾,有孚å�‘若,å�‰ã€‚", + "ä¹�三:丰其沛,日中è§�沬。折其å�³è‚±ï¼Œæ— å’Žã€‚", + "ä¹�四:丰其蔀,日中è§�斗。é�‡å…¶å¤·ä¸»ï¼Œå�‰ã€‚", + "六五:æ�¥ç« ï¼Œæœ‰åº†èª‰ï¼Œå�‰ã€‚", + "上六:丰其屋,蔀其家,窥其户,阒其无人,三å²�ä¸�觌,凶。", + }, + NULL }, + { 56, "æ—…", + "旅:å°�亨。旅贞å�‰ã€‚", + { + "åˆ�六:旅ç��ç��,斯其所å�–ç�¾ã€‚", + "六二:旅å�³æ¬¡ï¼Œæ€€å…¶èµ„,得童仆,贞。", + "ä¹�三:旅焚其次,丧其童仆,贞厉。", + "ä¹�四:旅于处,得其资斧,我心ä¸�快。", + "六五:射雉,一矢亡,终以誉命。", + "上ä¹�:鸟焚其巢,旅人先笑å�Žå�·å’·ã€‚丧牛于易,凶。", + }, + NULL }, + { 57, "å·½", + "巽:å°�亨。利有攸往。利è§�大人。", + { + "åˆ�六:进退,利武人之贞。", + "ä¹�二:巽在床下,用å�²å·«çº·è‹¥ï¼Œå�‰æ— å’Žã€‚", + "ä¹�三:频巽,å��。", + "六四:悔亡,田获三å“�。", + "ä¹�五:贞å�‰æ‚”亡,无ä¸�利。无åˆ�有终。先庚三日,å�Žåºšä¸‰æ—¥ï¼Œå�‰ã€‚", + "上ä¹�:巽在床下,丧其资斧,贞凶。", + }, + NULL }, + { 58, "å…‘", + "兑:亨。利贞。", + { + "åˆ�ä¹�:和兑,å�‰ã€‚", + "ä¹�二:孚兑,å�‰ï¼Œæ‚”亡。", + "六三:æ�¥å…‘,凶。", + "ä¹�四:商兑未å®�,介疾有喜。", + "ä¹�五:孚于剥,有厉。", + "上六:引兑。", + }, + NULL }, + { 59, "æ¶£", + "涣:亨。王å�‡æœ‰åº™ï¼Œåˆ©æ¶‰å¤§å·�,利贞。", + { + "åˆ�六:用拯马壮,å�‰ã€‚", + "ä¹�二:涣奔其机,悔亡。", + "六三:涣其躬,无悔。", + "六四:涣其群,元å�‰ã€‚涣有丘,匪夷所æ€�。", + "ä¹�五:涣汗其大å�·ï¼Œæ¶£çŽ‹å±…ï¼Œæ— å’Žã€‚", + "上ä¹�:涣其血,去逖出,无咎。", + }, + NULL }, + { 60, "节", + "节:亨。苦节ä¸�å�¯è´žã€‚", + { + "åˆ�ä¹�:ä¸�出户庭,无咎。", + "ä¹�二:ä¸�出门庭,凶。", + "六三:ä¸�节若,则嗟若,无咎。", + "六四:安节,亨。", + "ä¹�五:甘节,å�‰ï¼›å¾€æœ‰å°šã€‚", + "上六:苦节,贞凶,悔亡。", + }, + NULL }, + { 61, "中孚", + "中孚:豚鱼å�‰ï¼Œåˆ©æ¶‰å¤§å·�,利贞。", + { + "åˆ�ä¹�:虞å�‰ï¼Œæœ‰ä»–ä¸�燕。", + "ä¹�二:鸣鹤在阴,其å­�和之。我有好爵,å�¾ä¸Žå°”é�¡ä¹‹ã€‚", + "六三:得敌,或鼓或罢,或泣或歌。", + "六四:月几望,马匹亡,无咎。", + "ä¹�五:有孚挛如,无咎。", + "上ä¹�:翰音登于天,贞凶。", + }, + NULL }, + { 62, "å°�过", + "å°�过:亨。利贞。å�¯å°�事,ä¸�å�¯å¤§äº‹ã€‚飞鸟é�—之音,ä¸�宜上宜下,大å�‰ã€‚", + { + "åˆ�六:飞鸟以凶。", + "六二:过其祖,é�‡å…¶å¦£ï¼›ä¸�å�Šå…¶å�›ï¼Œé�‡å…¶è‡£ï¼›æ— å’Žã€‚", + "ä¹�三:弗过防之,从或戕之,凶。", + "ä¹�四:无咎,弗过é�‡ä¹‹ã€‚往厉必戒,勿用永贞。", + "六五:密云ä¸�雨,自我西郊。公弋å�–彼在穴。", + "上六:弗é�‡è¿‡ä¹‹ï¼Œé£žé¸Ÿç¦»ä¹‹ï¼Œå‡¶ï¼Œæ˜¯è°“ç�¾çœšã€‚", + }, + NULL }, + { 63, "既济", + "既济:亨å°�。利贞。åˆ�å�‰ç»ˆä¹±ã€‚", + { + "åˆ�ä¹�:曳其轮,濡其尾,无咎。", + "六二:妇丧其茀,勿é€�,七日得。", + "ä¹�三:高宗ä¼�鬼方,三年克之,å°�人勿用。", + "六四:繻有衣袽,终日戒。", + "ä¹�五:东邻æ�€ç‰›ï¼Œä¸�如西邻之禴祭,实å�—å…¶ç¦�。", + "上六:濡其首,厉。", + }, + NULL }, + { 64, "未济", + "未济:亨。å°�ç‹�汔济,濡其尾,无攸利。", + { + "åˆ�六:濡其尾,å��。", + "ä¹�二:曳其轮,贞å�‰ã€‚", + "六三:未济,å¾�凶,利涉大å·�。", + "ä¹�四:贞å�‰æ‚”亡,震用ä¼�鬼方,三年有èµ�于大国。", + "六五:贞å�‰æ— æ‚”,å�›å­�之光,有孚å�‰ã€‚", + "上ä¹�:有孚于饮酒,无咎。濡其首,有孚失是。", + }, + NULL }, +}; diff --git a/main/yao_time.c b/main/yao_time.c new file mode 100644 index 0000000..396dfb3 --- /dev/null +++ b/main/yao_time.c @@ -0,0 +1,65 @@ +#ifndef _POSIX_C_SOURCE +#define _POSIX_C_SOURCE 200809L +#endif +#include "yao_time.h" +#include +#include +#include +#include + +bool yao_time_valid(int64_t utc){return utc>=1704067200LL&&utc<4102444800LL;} +static bool calendar(int64_t seconds,struct tm *out){ + time_t t=(time_t)seconds; +#ifdef _WIN32 + return gmtime_s(out,&t)==0; +#else + return gmtime_r(&t,out)!=NULL; +#endif +} +bool yao_time_format(int64_t seconds,char out[20]){ + struct tm tm; + if(!calendar(seconds,&tm)){out[0]=0;return false;} + return strftime(out,20,"%Y-%m-%d %H:%M:%S",&tm)==19; +} +bool yao_solar_time(int64_t utc,double longitude,int64_t *solar,double *equation_minutes){ + if(!solar||!equation_minutes||!yao_time_valid(utc)||!isfinite(longitude)||longitude< -180||longitude>180)return false; + struct tm tm;if(!calendar(utc,&tm))return false; + const double pi=3.14159265358979323846; + int year=tm.tm_year+1900,days=(year%4==0&&(year%100!=0||year%400==0))?366:365; + /* NOAA General Solar Position Calculations, fractional-year approximation. + * https://gml.noaa.gov/grad/solcalc/solareqns.PDF + * Using UTC directly removes civil timezone/DST from the correction. */ + double hour=tm.tm_hour+tm.tm_min/60.0+tm.tm_sec/3600.0; + double gamma=2*pi/days*(tm.tm_yday+(hour-12)/24); + double eq=229.18*(0.000075+0.001868*cos(gamma)-0.032077*sin(gamma) + -0.014615*cos(2*gamma)-0.040849*sin(2*gamma)); + *equation_minutes=eq; + *solar=utc+(int64_t)llround(240*longitude+60*eq); + return true; +} +bool yao_location_valid(const yao_location_t *p){ + if(!p||p->longitude_e6< -180000000||p->longitude_e6>180000000||!memchr(p->region,0,sizeof(p->region)))return false; + if(!p->configured)return !p->region[0]&&p->longitude_e6==0; + bool text=false;const unsigned char *s=(const unsigned char *)p->region; + for(;*s;s++){if(*s<32||*s==127)return false;if(*s!=' ')text=true;} + return text; +} +void yao_time_summary(int64_t utc,const yao_location_t *location,char *out,size_t size){ + if(!out||!size)return; + char civil[20],solar_text[20];int64_t solar;double equation; + if(!yao_time_valid(utc)||!yao_time_format(utc+8*3600,civil)){ + snprintf(out,size,"èµ·å�¦æ—¶æœªæ ¡æ—¶\n真太阳时ä¸�å�¯ç”¨\n\n");return; + } + if(location&&location->configured&&yao_location_valid(location)&& + yao_solar_time(utc,location->longitude_e6/1000000.0,&solar,&equation)&&yao_time_format(solar,solar_text)){ + snprintf(out,size,"真太阳时(近似)\n%s\nèµ·å�¦æ—¶é—´ï¼ˆåŒ—京时间)\n%s\n网络定ä½�:%s\n\n",solar_text,civil,location->region); + }else{ + snprintf(out,size,"真太阳时未校准\nèµ·å�¦æ—¶é—´ï¼ˆåŒ—京时间)\n%s\nèµ·å�¦æ—¶æ— å�¯ç”¨å®šä½�\n\n",civil); + } +} +#ifdef BADGE_CONTROL_HOST_TEST +int64_t yao_test_now=1800000000; +int64_t yao_time_now(void){return yao_test_now;} +#else +int64_t yao_time_now(void){return (int64_t)time(NULL);} +#endif diff --git a/main/yao_time.h b/main/yao_time.h new file mode 100644 index 0000000..b3f373f --- /dev/null +++ b/main/yao_time.h @@ -0,0 +1,33 @@ +#pragma once +#include +#include +#include + +typedef struct { char region[64]; int32_t longitude_e6; bool configured; } yao_location_t; +/* Solar wall-clock seconds: not a UTC timestamp. East longitude is positive. */ +bool yao_solar_time(int64_t utc,double longitude,int64_t *solar,double *equation_minutes); +bool yao_time_valid(int64_t utc); +bool yao_time_format(int64_t seconds,char out[20]); +/* Result-page text, using the cast snapshot rather than the current clock/location. */ +void yao_time_summary(int64_t utc,const yao_location_t *location,char *out,size_t size); +int64_t yao_time_now(void); +bool yao_location_valid(const yao_location_t *location); +void yao_location_init(void); +yao_location_t yao_location_get(void); +/* Successful location is cached in RAM for one monotonic hour, including network + * reconnects. Page re-entry reuses fresh results and never cancels an active lookup. */ +void yao_location_network(bool connected); +void yao_location_recheck(void); +uint32_t yao_location_begin(void); +bool yao_location_active(uint32_t generation); +void yao_location_finish(uint32_t generation,const yao_location_t *result); +const char *yao_location_status(void); +/* Called by the network worker; may start a short-lived background task. */ +void yao_location_poll(void); +/* Foreground voice joins any HTTP cleanup before allocating its TLS/audio RAM. */ +void yao_location_voice_active(bool active); +bool yao_location_worker_running(void); +#ifdef BADGE_CONTROL_HOST_TEST +extern int64_t yao_test_now; +extern int64_t yao_location_test_ms; +#endif diff --git a/main/yao_ui.c b/main/yao_ui.c new file mode 100644 index 0000000..fccb54f --- /dev/null +++ b/main/yao_ui.c @@ -0,0 +1,91 @@ +#include "yao_ui.h" +#include "yao_core.h" +#include "badge_header.h" +#include "badge_footer.h" +#include +#include +#include +LV_FONT_DECLARE(font_xiaozhi_14); +static lv_obj_t *screen,*progress,*calibration,*names[2],*bars[2][6][2],*marks[6],*reader,*text,*hint,*coins[3]; +static char cast_time_text[320]; +void yao_ui_set_time(int64_t utc,const yao_location_t *location){yao_time_summary(utc,location,cast_time_text,sizeof(cast_time_text));} +static lv_obj_t *label(lv_obj_t *parent,const char *s,int x,int y,int w,unsigned color){ + lv_obj_t *o=lv_label_create(parent);lv_obj_set_pos(o,x,y);lv_obj_set_width(o,w); + lv_obj_set_style_text_font(o,&font_xiaozhi_14,0);lv_obj_set_style_text_color(o,lv_color_hex(badge_theme_colors()[color]),0); + lv_label_set_long_mode(o,LV_LABEL_LONG_WRAP);lv_label_set_text(o,s);return o; +} +static void visible(lv_obj_t *o,bool show){if(show)lv_obj_remove_flag(o,LV_OBJ_FLAG_HIDDEN);else lv_obj_add_flag(o,LV_OBJ_FLAG_HIDDEN);} +void yao_ui_create(void){ + yao_ui_set_time(0,NULL); + const uint32_t *c=badge_theme_colors();screen=lv_obj_create(NULL);lv_obj_remove_style_all(screen);lv_obj_set_size(screen,240,320); + lv_obj_set_style_bg_opa(screen,LV_OPA_COVER,0);lv_obj_set_style_bg_color(screen,lv_color_hex(c[BADGE_BACKGROUND]),0); + badge_header_attach(screen);label(screen,"èµ›å�𿑇å�¦",12,36,118,BADGE_TEXT); + progress=label(screen,"",138,37,90,BADGE_ACCENT);lv_obj_set_style_text_align(progress,LV_TEXT_ALIGN_RIGHT,0); + calibration=label(screen,"",12,53,216,BADGE_MUTED);lv_obj_set_height(calibration,18);lv_label_set_long_mode(calibration,LV_LABEL_LONG_DOT); + for(unsigned i=0;i<3;i++){ + coins[i]=label(screen,"",57+i*44,76,36,BADGE_ACCENT); + lv_obj_set_height(coins[i],32);lv_obj_set_style_text_align(coins[i],LV_TEXT_ALIGN_CENTER,0); + lv_obj_set_style_pad_top(coins[i],5,0);lv_obj_set_style_border_width(coins[i],1,0); + lv_obj_set_style_border_color(coins[i],lv_color_hex(c[BADGE_ACCENT]),0);lv_obj_set_style_radius(coins[i],16,0); + } + for(unsigned h=0;h<2;h++){ + names[h]=label(screen,"",14+h*118,76,108,BADGE_ACCENT);lv_obj_set_height(names[h],36); + for(unsigned i=0;i<6;i++)for(unsigned half=0;half<2;half++){ + lv_obj_t *o=lv_obj_create(screen);lv_obj_remove_style_all(o);lv_obj_set_pos(o,28+h*120+half*39,193-i*15);lv_obj_set_size(o,33,6); + lv_obj_set_style_bg_opa(o,LV_OPA_COVER,0);lv_obj_set_style_bg_color(o,lv_color_hex(c[BADGE_TEXT]),0);bars[h][i][half]=o; + } + } + for(unsigned i=0;i<6;i++){marks[i]=label(screen,"",106,186-i*15,22,BADGE_ACCENT);lv_obj_set_style_text_font(marks[i],&font_badge_10,0);} + reader=lv_obj_create(screen);lv_obj_remove_style_all(reader);lv_obj_set_pos(reader,12,214);lv_obj_set_size(reader,216,79); + lv_obj_set_scrollbar_mode(reader,LV_SCROLLBAR_MODE_OFF);lv_obj_set_scroll_dir(reader,LV_DIR_VER); + text=label(reader,"",0,0,214,BADGE_TEXT);lv_obj_set_style_text_line_space(text,4,0); + hint=badge_footer_create(screen,"");lv_screen_load(screen); +} +void yao_ui_render(const uint8_t lines[6],unsigned count,unsigned coin_bits,uint32_t id,const char *notice){ + if(!screen)return; + bool complete=count==6;yao_result_t r={0};if(complete&&!yao_calculate(lines,&r))return; + const char *location_status=yao_location_status();yao_location_t location=yao_location_get(); + if(!strcmp(location_status,"ready"))lv_label_set_text_fmt(calibration,"太阳时 已校准 / %s",location.region); + else if(!strcmp(location_status,"fetching"))lv_label_set_text(calibration,"太阳时 定ä½�中"); + else if(!strcmp(location_status,"retrying"))lv_label_set_text(calibration,"太阳时 失败 / 15ç§’å�Žé‡�试"); + else if(!strcmp(location_status,"pending"))lv_label_set_text(calibration,yao_time_valid(yao_time_now())?"太阳时 准备定ä½�":"太阳时 等待校时"); + else lv_label_set_text(calibration,"太阳时 等待 Wi-Fi"); + lv_label_set_text_fmt(progress,complete?"#%lu":"%lu / 6",(unsigned long)(complete?id:count)); + for(unsigned i=0;i<3;i++){visible(coins[i],!complete);lv_label_set_text(coins[i],count?((coin_bits&(1u<max)next=max; + lv_obj_scroll_to_y(reader,next,LV_ANIM_OFF); +} +void yao_ui_destroy(void){if(screen){lv_obj_delete(screen);screen=NULL;}} diff --git a/main/yao_ui.h b/main/yao_ui.h new file mode 100644 index 0000000..77797df --- /dev/null +++ b/main/yao_ui.h @@ -0,0 +1,9 @@ +#pragma once +#include +#include "yao_time.h" +/* All UI calls require the LVGL lock. */ +void yao_ui_create(void); +void yao_ui_set_time(int64_t utc,const yao_location_t *location); +void yao_ui_destroy(void); +void yao_ui_render(const uint8_t lines[6],unsigned count,unsigned coin_bits,uint32_t id,const char *notice); +void yao_ui_scroll(int direction); diff --git a/partitions.csv b/partitions.csv index 40335b2..189b7e6 100644 --- a/partitions.csv +++ b/partitions.csv @@ -1,4 +1,8 @@ -# Name, Type, SubType, Offset, Size, Flags -nvs, data, nvs, 0x9000, 0x6000, -phy_init, data, phy, 0xf000, 0x1000, -factory, app, factory, 0x10000, 0x7f0000, +# Name, Type, SubType, Offset, Size, Flags +nvs, data, nvs, 0x9000, 0x6000, +phy_init, data, phy, 0xf000, 0x1000, +factory, app, factory, 0x10000, 0x3c0000, +voice_data, data, 0x42, 0x3d0000, 0x2c0000, +badge_slots, data, 0x41, 0x690000, 0xc0000, +voice_tail, data, 0x43, 0x750000, 0x80000, +badge_user, data, 0x40, 0x7d0000, 0x30000, diff --git a/sdkconfig.defaults b/sdkconfig.defaults index ef36d5d..b11a7db 100644 --- a/sdkconfig.defaults +++ b/sdkconfig.defaults @@ -19,18 +19,31 @@ CONFIG_ESP_CONSOLE_SECONDARY_NONE=y # --- LVGL --- CONFIG_LV_COLOR_DEPTH_16=y -# 20 ms display refresh period targets up to 50 FPS when rendering and SPI -# transfer complete within the same budget. -CONFIG_LV_DEF_REFR_PERIOD=20 CONFIG_LV_FONT_MONTSERRAT_14=y CONFIG_LV_FONT_MONTSERRAT_20=y # LVGL 内置 malloc 池大å°�(KB)。它是独立é�™æ€�区ã€�ä¸�与系统堆共享,é…�大了会白白å� ç”¨ RAM。 -# 本 demo UI 简å�•,24KB 足够;若自建å¤�æ�‚界é�¢å‡ºçŽ°ç»˜åˆ¶å�¡æ­»/看门狗,调大此值。 -CONFIG_LV_MEM_SIZE_KILOBYTES=24 +# Cyber badge, game library and wooden-fish page use internal RAM only. +CONFIG_LV_MEM_SIZE_KILOBYTES=32 +# Release TLS I/O buffers between packets; keep full certificate verification +# and normal maximum TLS record lengths for existing HTTPS radio streams. +CONFIG_MBEDTLS_DYNAMIC_BUFFER=y +# Outgoing MQTT/Opus frames fit 2 KiB; incoming TLS records retain 16 KiB. +CONFIG_MBEDTLS_SSL_OUT_CONTENT_LEN=2048 +# Match XiaoZhi's no-PSRAM C3 receive/IRAM budget. Keep the badge's existing +# network manager, WPA configuration and shared hotspot protocol. +CONFIG_ESP_WIFI_STATIC_RX_BUFFER_NUM=3 +CONFIG_ESP_WIFI_DYNAMIC_RX_BUFFER_NUM=6 +CONFIG_ESP_WIFI_RX_BA_WIN=3 +CONFIG_ESP_WIFI_IRAM_OPT=n +CONFIG_ESP_WIFI_RX_IRAM_OPT=n +CONFIG_ESP_WIFI_DYNAMIC_RX_MGMT_BUFFER=y # --- 系统 --- CONFIG_FREERTOS_HZ=1000 +# NVS saves may overlap short PCM playback; keep I2S interrupts in internal RAM. +CONFIG_I2S_ISR_IRAM_SAFE=y + # --- Bluetooth LE / NimBLE --- # ESP32-C3 仅支æŒ� BLE;示例å�ªå�¯ç”¨å�•连接 peripheral 所需的最å°� host é…�置。 CONFIG_BT_ENABLED=y @@ -42,3 +55,19 @@ CONFIG_BT_NIMBLE_ROLE_OBSERVER=n CONFIG_BT_NIMBLE_MAX_CONNECTIONS=1 CONFIG_BT_NIMBLE_HOST_BASED_PRIVACY=n CONFIG_BT_NIMBLE_NVS_PERSIST=n + +# XiaoZhi reversible standby; preserve USB configuration while attached. +CONFIG_PM_ENABLE=y +CONFIG_FREERTOS_USE_TICKLESS_IDLE=y +CONFIG_FREERTOS_IDLE_TIME_BEFORE_SLEEP=3 +CONFIG_BUTTON_PERIOD_TIME_MS=50 +CONFIG_BUTTON_DEBOUNCE_TICKS=1 +CONFIG_BUTTON_LONG_PRESS_HOLD_SERIAL_TIME_MS=50 +CONFIG_USJ_NO_AUTO_LS_ON_CONNECTION=y +# Buffer incoming speech bursts while I2S drains a PCM frame. +CONFIG_LWIP_UDP_RECVMBOX_SIZE=16 + +# Release firmware: optimize code size without removing assertions or features. +CONFIG_COMPILER_OPTIMIZATION_SIZE=y + +# CONFIG_ESP_SLEEP_GPIO_ENABLE_INTERNAL_RESISTORS is not set diff --git a/skills/README.md b/skills/README.md index ae80e65..4c1e47a 100644 --- a/skills/README.md +++ b/skills/README.md @@ -4,10 +4,7 @@ # Skills -These skills turn the repository's engineering guidance into focused AI workflows. -Start with `passport-develop` for application development; use the specialized -skills for a single task. They reference the existing documentation and validation -gate, rather than defining another set of hardware rules or build commands. +This directory is reserved for reusable AI-agent skills and workflows. Keep each skill in its own clearly named subdirectory. Each skill must contain at least `SKILL.md` with YAML frontmatter defining `name` and a trigger-focused `description`. Complex skills may add `references/`, `scripts/`, and `assets/`. Keep documentation as plain Markdown and register every added skill in this index. @@ -15,57 +12,6 @@ Each skill must contain at least `SKILL.md` with YAML frontmatter defining `name | Skill | What it does | | --- | --- | -| [passport-develop](passport-develop/SKILL.md) | Turn a feature request into an application, tests, and a verified delivery; coordinate the other core skills when needed. | -| [passport-setup](passport-setup/SKILL.md) | Inspect and prepare the ESP-IDF 5.5.3 environment without replacing other installations or assuming USB access. | -| [passport-build](passport-build/SKILL.md) | Run the shared gate and retain a verified merged image with matching ELF/MAP artifacts. | -| [passport-device-test](passport-device-test/SKILL.md) | After authorization, identify the target, flash the chosen firmware, and distinguish logs from physical acceptance. | -| [passport-debug](passport-debug/SKILL.md) | Diagnose crashes, memory problems, blank Chinese text, and peripheral failures using evidence and matching symbols. | | [issue-suggestions](issue-suggestions/SKILL.md) | After a release, collect the releasing developer's own improvement points and file them as feature request issues against the upstream project. | | [experience-pr](experience-pr/SKILL.md) | After a release, collect reusable development experience and submit it as a documentation pull request. | -| [plays-archive](plays-archive/SKILL.md) | After a release, archive the published application under the repository-relative `docs/reference///` with an AI-generated bilingual summary; record cover metadata only, without committing the image. | - -## Required preparation, handled by the AI - -The five `passport-*` skills above are required, not optional recommendations. -Follow the [required-skill policy](../AGENTS.md#required-ai-skills): the AI checks -availability before development and installs any missing skills itself. It -chooses the method appropriate to the active AI tool, operating system, and -permissions; the user does not need to supply installation instructions. - -Use the maintained sources in this repository's `skills/` directory. The -repository installer is an available helper, not a mandatory installation -method. Do not assume that every AI tool has the same discovery conventions. -Consult the active tool's documentation when needed; for Codex, see the -[official skills guide](https://learn.chatgpt.com/docs/build-skills). - -Verify that the active AI environment can actually discover/read the installed -skills; creating files alone does not prove availability. If installation or -activation is blocked, report the cause and the minimum assistance needed. -Reading source instructions directly may support work while resolving the -blocker, but must not be reported as successful installation. Preserve existing -skills/configuration and obtain any permissions required by the environment. - -## Example requests - -```text -Use $passport-develop to build an offline Pomodoro app with a Chinese UI. -Use $passport-setup to check my development environment; do not reinstall anything yet. -Use $passport-build to package this firmware without flashing it. -Use $passport-device-test to test the verified firmware while preserving my settings. -Use $passport-debug to explain this crash log; do not change code yet. -``` - -Natural-language requests can also select skills through their descriptions. -Installing a skill does not grant USB, network, Git, or publishing permission. -An unavailable device does not block coding or host tests. Building does not -authorize flashing; diagnosing does not authorize changes. After a completed -firmware implementation the AI should invite device testing, not silently run it. - -## Maintain and validate - -Keep one skill per directory, paired English/Chinese instructions, precise -trigger descriptions, and links in this index. Put deterministic operations in -reviewable tools and leave project policy in its authoritative document. -Follow [skill validation](validation.md) for routing and boundary scenarios. -The shared static gate tests the installer and archive tool; the full gate also -builds and checks a real debug archive. Neither replaces actual device testing. +| [plays-archive](plays-archive/SKILL.md) | After a release, archive the published application into the upstream `plays/` with an AI-generated bilingual summary and a cover image. | diff --git a/skills/README.zh_CN.md b/skills/README.zh_CN.md index 1984eba..e2dc7a1 100644 --- a/skills/README.zh_CN.md +++ b/skills/README.zh_CN.md @@ -4,14 +4,12 @@ # 技能目录(Skills) -这些技能把仓库工程规范整ç�†ä¸ºæœ‰æ˜Žç¡®è¾¹ç•Œçš„ AI 工作æµ�。开å�‘应用时从 -`passport-develop` 开始,å�•项任务直接使用对应技能。技能引用已有文档和 -验è¯�é—¨ç¦�,ä¸�å†�维护å�¦ä¸€å¥—硬件规则或构建命令。 +本目录用于ä¿�存项目å�¯èƒ½ç”¨åˆ°çš„ skill(é�¢å�‘ AI agent çš„å�¯å¤�用技能/工作æµ�说明)。**æ¯�个 skill 必须按独立目录ä¿�å­˜**,便于检索与维护。 ## 目录约定 - æ¯�个 skill 一个å­�目录,目录å��å�³ skill å��称,命å��简短ã€�语义明确。 -- æ¯�个 skill 目录必须包å�« `SKILL.md`,顶部用 YAML frontmatter 标注 `name` 与 `description`,其中 `description` 作为触å�‘指纹,说清「何时触å�‘ã€�å�šä»€ä¹ˆã€�。 +- æ¯�个 skill 目录内至少有一个说明文件(建议 `SKILL.md`),顶部用 YAML frontmatter 标注 `name` 与 `description`,其中 `description` 作为触å�‘指纹,说清「何时触å�‘ã€�å�šä»€ä¹ˆã€�。 - å¤�æ�‚çš„ skill å�¯åœ¨å…¶ç›®å½•下增加 `references/`(长文档)ã€�`scripts/`(å�¯æ‰§è¡Œè„šæœ¬ï¼‰ã€�`assets/`(模æ�¿/样例),与主文件分开放。 - 文档应为纯 markdown,ä¸�å�«äºŒè¿›åˆ¶å†…容。 @@ -26,48 +24,6 @@ | 技能 | 功能 | | --- | --- | -| [passport-develop](passport-develop/SKILL.zh_CN.md) | 将需求è�½å®žä¸ºåº”用ã€�测试å�Šå·²éªŒè¯�交付,按需å��调其余核心技能。 | -| [passport-setup](passport-setup/SKILL.zh_CN.md) | 检查并准备 ESP-IDF 5.5.3 环境,ä¸�覆盖其他安装,ä¸�å�‡å®šèƒ½å¤Ÿè®¿é—® USB。 | -| [passport-build](passport-build/SKILL.zh_CN.md) | è¿�行统一门ç¦�,ä¿�留已校验的å�ˆå¹¶å›ºä»¶å’ŒåŒ¹é…�çš„ ELF/MAP。 | -| [passport-device-test](passport-device-test/SKILL.zh_CN.md) | 获得授æ�ƒå�Žè¯†åˆ«ç›®æ ‡ã€�刷写指定固件,区分串å�£æ—¥å¿—与实机验收。 | -| [passport-debug](passport-debug/SKILL.zh_CN.md) | ä¾�æ�®æ—¥å¿—和匹é…�符å�·ï¼Œè¯Šæ–­å´©æºƒã€�内存ã€�中文空白å�Šå¤–设故障。 | | [issue-suggestions](issue-suggestions/SKILL.zh_CN.md) | å�‘布å�Žï¼Œæ”¶é›†å¼€å�‘者的改进点,整ç�†æˆ�æ��交到上游的功能建议 issue。 | | [experience-pr](experience-pr/SKILL.zh_CN.md) | å�‘布å�Žï¼Œæ”¶é›†å�¯å¤�用的开å�‘ç»�验,并作为文档 PR æ��交。 | -| [plays-archive](plays-archive/SKILL.zh_CN.md) | å�‘布å�Žï¼ŒæŠŠå·²å�‘布应用归档到相对仓库根目录的 `docs/reference///`,附 AI 生æˆ�çš„å�Œè¯­è¯´æ˜Žï¼›ä»…记录å°�é�¢å…ƒæ•°æ�®ï¼Œä¸�æ��交图片。 | - -## 必需准备,由 AI 自行完æˆ� - -上表中的五个 `passport-*` 技能是必需项,ä¸�是å�¯é€‰å»ºè®®ã€‚é�µå¾ª -[必需技能规范](../AGENTS.zh_CN.md#必需-ai-技能):AI 在开å�‘å‰�自行检查å�¯ç”¨æ€§ï¼Œ -缺少时自行安装。具体方å¼�ç”± AI æ ¹æ�®å½“å‰�工具ã€�æ“�作系统和æ�ƒé™�决定,用户 -无需æ��供安装方法或命令。 - -使用本仓库 `skills/` 中维护的æº�文件。仓库安装助手是å�¯é€‰å·¥å…·ï¼Œä¸�是强制 -安装方å¼�。ä¸�能å�‡å®šæ‰€æœ‰ AI 工具都采用相å�Œçš„å�‘现规则;需è¦�时查阅所用工具 -的文档,Codex å�¯å�‚考[官方技能指å�—](https://learn.chatgpt.com/docs/build-skills)。 - -安装å�ŽéªŒè¯�当å‰� AI 环境确实能够å�‘现ï¼�读å�–技能,ä¸�能仅凭文件已创建就宣称 -å�¯ç”¨ã€‚安装或å�¯ç”¨å�—阻时,说明原因å�Šæ‰€éœ€çš„æœ€å°�å��助。解决阻ç¢�期间å�¯ç›´æŽ¥ -阅读æº�文件辅助工作,但ä¸�能将此报告为安装æˆ�功。ä¿�留已有技能ï¼�é…�置,并 -按环境è¦�求å�–å¾—å¿…è¦�æ�ƒé™�。 - -## 使用示例 - -```text -使用 $passport-develop å¼€å�‘离线中文番茄钟应用。 -使用 $passport-setup 检查开å�‘环境,先ä¸�è¦�é‡�新安装任何东西。 -使用 $passport-build 打包当å‰�固件,ä¸�烧录。 -使用 $passport-device-test 测试已校验固件,ä¿�留我的设置。 -使用 $passport-debug 分æž�这段崩溃日志,先ä¸�è¦�改代ç �。 -``` - -也å�¯ä»¥ç”¨è‡ªç„¶è¯­è¨€è¯·æ±‚,由技能æ��述进行匹é…�。安装技能ä¸�等于授予 USBã€�è�”网ã€� -Git 或å�‘布æ�ƒé™�。没有设备ä¸�阻塞写代ç �和主机测试;构建ä¸�授æ�ƒçƒ§å½•,诊断ä¸� -授æ�ƒä¿®æ”¹ã€‚完整实现固件需求å�Žï¼ŒAI 应主动邀请真机测试,而ä¸�是自行刷写。 - -## 维护与验è¯� - -æ¯�个技能独立目录,é…�对维护中英文说明,明确触å�‘æ��述,并在本索引登记。 -确定性æ“�作交给å�¯å®¡æŸ¥çš„工具,项目规范ä»�以æ�ƒå¨�文档为准。按 -[技能验è¯�](validation.zh_CN.md)执行路由和边界场景测试。统一é�™æ€�é—¨ç¦�测试 -安装助手å�Šå½’档工具,完整门ç¦�还会编译并校验实际调试归档;这些ä¸�代替真机测试。 +| [plays-archive](plays-archive/SKILL.zh_CN.md) | å�‘布å�Žï¼ŒæŠŠå·²å�‘布应用归档到上游 `plays/`,附 AI 生æˆ�çš„å�Œè¯­è¯´æ˜Žä¸Žå°�é�¢å›¾ã€‚ | diff --git a/skills/passport-build/SKILL.md b/skills/passport-build/SKILL.md deleted file mode 100644 index 5951f02..0000000 --- a/skills/passport-build/SKILL.md +++ /dev/null @@ -1,68 +0,0 @@ ---- -name: passport-build -description: Validate and package FoloToy AI Passport firmware, including a verified merged image and matching debugging artifacts. Use for build, test, and firmware-package requests; does not flash, commit, or publish. ---- - -

简体中文 · English

- -# Build and Package Firmware - -Resolve the target checkout, run `git status --short --branch`, and read -`AGENTS.md`, `docs/development/engineering/build-and-test.md`, and -`docs/development/engineering/firmware-layout.md` there. All commands below run -from that checkout; never infer a developer-specific IDF path. - -## Build the requested configuration - -1. Confirm ESP-IDF 5.5.3 is activated. If missing, use `passport-setup` when - available or its environment-setup document. Obtain required network/system - permissions rather than bypassing them. -2. Check tracked defaults, dependencies, and partitions against the requested - application. The gate uses isolated configuration from `sdkconfig.defaults`, - not the ignored root `sdkconfig`. If the user wants a local-only setting in - the delivered firmware, resolve that mismatch explicitly; do not silently - overwrite configuration or build a different variant. -3. Run the smallest relevant checks while iterating and `./tools/validate.sh` - before final delivery. This is the existing gate, not a replacement build - pipeline. Custom valid partition layouts are allowed. On a requested - build-only check, `./tools/validate.sh --firmware` is available; identify any - omitted host tests in the report. -4. A failed run does not validate an old file still present under `build/`. - Correct in-scope failures or report the blocker. Never deliver a stale - artifact as the result of the failed build. - -## Identify the exact deliverable - -The gate preserves `build/FoloToy-AI-Passport-full.bin` and a content-addressed -bundle under `build/firmware//`. Verify the bundle before -handoff with: - -```text -python3 tools/archive_firmware.py verify -``` - -Report the actual archive path, full-image hash, and matching ELF identity from -`manifest.json`. The archive retains ELF, MAP, merged, application, bootloader, -and partition-table images, and `flash_args`. Extra custom partition images are -not retained separately; obtain them if needed for segmented flashing. A repeat -archive of identical firmware reuses its first verified MAP as documented in the -build guide. Do not substitute an ELF from a later rebuild, -especially for a dirty checkout. The recorded hashes bind artifacts together; -they are not a claim of hardware acceptance or cryptographic trust in a vendor. - -Deliver the verified merged `full.bin` for flashing from `0x0`, never the -application-only `.bin` at that offset. Explain that a merged flash can reset -stored data; keeping settings may require a compatible segmented-flash workflow -under the firmware-layout policy. No original-firmware backup is required, but -that does not authorize a full-chip erase. - -Keep generated binaries and debugging bundles out of commits. Firmware/ELF can -contain embedded application secrets; do not upload debugging files or publish -an artifact without checking the content and obtaining authorization. - -## Report - -Separate `Build`, `Host tests`, `Device tests`, and `Unverified`, with the actual -checks and any configuration differences. After a completed firmware change, -offer device testing per the AI guide. Building or packaging alone does not -authorize USB flashing, Git writes, or a release. diff --git a/skills/passport-build/SKILL.zh_CN.md b/skills/passport-build/SKILL.zh_CN.md deleted file mode 100644 index 80bb346..0000000 --- a/skills/passport-build/SKILL.zh_CN.md +++ /dev/null @@ -1,56 +0,0 @@ ---- -name: passport-build -description: 验�并打包 FoloToy AI Passport 固件,交付已校验的�并镜��匹�的调试产物。用于构建�测试和固件打包请求,�执行烧录��交或�布。 ---- - -

简体中文 · English

- -# 构建与打包固件 - -确定目标工作区,执行 `git status --short --branch`,阅读其中的 `AGENTS.md`� -`docs/development/engineering/build-and-test.zh_CN.md` 和 -`docs/development/engineering/firmware-layout.zh_CN.md`。下列命令�在该工作区 -根目录�行,�猜测开�者�有 IDF 路径。 - -## 构建用户�求的�置 - -1. 确认已激活 ESP-IDF 5.5.3。缺失时使用�用的 `passport-setup`,或其对应 - 环境指�。�得必�的�网�系统��,�绕过审批。 -2. 核对已跟踪 defaults��赖与分区是�对应用户的应用。门�从 - `sdkconfig.defaults` 生�隔离�置,�使用被忽略的根目录 `sdkconfig`。 - 用户需�把本地独有设置交付到固件时,明确解决差异,��默覆盖�置或 - 构建��版本。 -3. 迭代时�行最�相关检查,最终交付�执行 `./tools/validate.sh`。�用现有 - 门�,��造构建�程。�许有效的自定义分区。仅构建检查�执行 - `./tools/validate.sh --firmware`,在报告中标明未�行的 host tests。 -4. 本轮失败�能�明 `build/` 中残留旧文件有效。修�范围内的失败或报告 - 阻�,�能把旧产物冒充失败构建的结果交付。 - -## 确定准确的交付产物 - -门��留 `build/FoloToy-AI-Passport-full.bin`,以�按内容哈希归档的 -`build/firmware//`。交接��行: - -```text -python3 tools/archive_firmware.py verify -``` - -报告实际归档路径�完整镜�哈希,以� `manifest.json` 中匹�的 ELF 身份。 -归档�留 ELF�MAP��并镜��应用镜��bootloader�分区表� `flash_args`。 -�外自定义分区镜���独�存,分段烧录需�时应�行�得。相�固件��归档 -按构建指��用首份已验� MAP。�能用之��新编译的 ELF 替代,尤其是存在 -未�交修改的构建。哈希用于关�产物,�代表 -硬件验收通过,也�代表已验�供应方的�信身份。 - -交付验�通过�从 `0x0` 烧录的�并 `full.bin`,�得把应用�体 `.bin` 写到 -该地�。说明�并烧录�能�置数�;�留设置�能需�按分区规范采用兼容的 -分段烧录�程。无需备份原固件�代表获得全片擦除授�。 - -生�的二进制与调试包�得�交。固件�ELF �能�应用内嵌秘密,未检查内容并 -�得授��,�上传调试文件或�布产物。 - -## 报告 - -分别报告 `Build`�`Host tests`�`Device tests`�`Unverified`,列出实际 -检查与�置差异。完整实现固件修改�按 AI 指�邀请真机测试。仅构建�打包 -�授� USB 烧录�Git 写�作或�布。 diff --git a/skills/passport-debug/SKILL.md b/skills/passport-debug/SKILL.md deleted file mode 100644 index 0bcfe3a..0000000 --- a/skills/passport-debug/SKILL.md +++ /dev/null @@ -1,66 +0,0 @@ ---- -name: passport-debug -description: Diagnose FoloToy AI Passport runtime failures from logs and symptoms such as reboot, stack fault, watchdog, blank text, black screen, or missing audio. Implement a fix only when requested; not for toolchain installation problems. ---- - -

简体中文 · English

- -# Diagnose Firmware Failures - -Locate the affected checkout and read `AGENTS.md`. Start with -`git status --short --branch`. Determine whether the user wants an explanation -or a fix: diagnosis does not authorize edits, rebuilding, flashing, or pushing. -The supplied log may come from another firmware; the current checkout is not -automatically its source. - -## Establish the evidence - -- Record the symptom, reproducible user action, first relevant error, reset/ - exception type, task, firmware version, and ELF SHA shown in the log. Request - only missing information that would change the conclusion; do not request - credentials, raw device QR content, or a whole private environment dump. -- Distinguish observation, likely cause, and unverified hypothesis. A stack - pointer outside the reported task bounds is direct evidence of a stack fault; - the exact allocating/calling function still requires matching symbols. -- For the current application's code, inspect the relevant headers and - implementation. Use `docs/hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.md` - for the matching symptom, not a generic ESP32 board's pins or assumptions. - -## Match symbols before decoding addresses - -For a saved gate build, verify its bundle with -`python3 tools/archive_firmware.py verify `. Compare the -panic/boot ELF identity with `app_elf_sha256` in its manifest. A truncated log -hash must match a unique candidate; ask for the complete identity if ambiguous. -For other builds, obtain the ELF that produced the flashed image and evidence -of its identity. A similar Git version or a later rebuild is not a substitute. - -Only after matching, use the activated toolchain's -`riscv32-esp-elf-addr2line -pfiaC -e ` for the panic PC, -return address, and credible trace frames. Raw stack words are not all return -addresses. If symbols are unavailable, explain what the log itself establishes -and request the matching build artifacts; do not invent file/line locations or -rebuild the current source and call it the old firmware. - -## Narrow the cause - -Check the relevant path: task stack/local buffers and call depth; allocation -failures and largest suitable heap block; UI threading/font/style selection; -peripheral initialization; or tasks/callbacks surviving page exit. For Chinese -text read `docs/development/engineering/lvgl-chinese-fonts.md`. Do not fix missing -glyphs by hiding placeholders, disable watchdog/stack protection, or increase -every buffer/stack without examining the no-PSRAM memory budget. - -An added diagnostic probe, recompilation, or hardware experiment is a proposed -next step for diagnosis-only requests, not permission to perform a repair. When -the user requests a fix, make the smallest evidenced correction, add a relevant -regression test, and follow the normal build/device-test handoff. Separate -synthetic/host checks from physical results. - -## Return a usable conclusion - -State: the observed failure; the supported cause and confidence; what remains -unknown; and the smallest next check or authorized fix. If a fix was made, -report `Build`, `Host tests`, `Device tests`, and `Unverified`. Stop when progress -requires the actual firmware, device access, or a new user decision rather than -changing unrelated code or repeatedly trying uninformative experiments. diff --git a/skills/passport-debug/SKILL.zh_CN.md b/skills/passport-debug/SKILL.zh_CN.md deleted file mode 100644 index c3a5ce1..0000000 --- a/skills/passport-debug/SKILL.zh_CN.md +++ /dev/null @@ -1,56 +0,0 @@ ---- -name: passport-debug -description: 根�日志和���栈异常�看门狗�文字空白�黑�或无声等现象,诊断 FoloToy AI Passport 固件�行故障。仅在用户�求时实施修�,�用于工具链安装问题。 ---- - -

简体中文 · English

- -# 诊断固件故障 - -确定�影�工作区,阅读 `AGENTS.md`,先执行 `git status --short --branch`。 -明确用户�求解释还是修�:诊断�授�编辑��新构建�烧录或推�。 -日志�能�自�一份固件,当�工作区�自动等于对应��。 - -## 建立�� - -- 记录现象���现的用户�作�最早相关错误����异常类型�任务�固件 - 版本�日志中的 ELF SHA。�索�会改�结论的缺失信�,�索�凭��设备 - 二维�原文或整份�有环境信�。 -- 区分观察事实��能原因与待验�推测。栈指针超出日志给出的任务栈边界, - 是栈异常的直接��;准确的分��调用函数�需�匹�符�。 -- 分�当�应用代�时阅读相关头文件和实现。针对现象查询 - `docs/hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.zh_CN.md`,�套用 - 通用 ESP32 开��的引脚或�设。 - -## 先匹�符�,�解�地� - -对于�留的门�构建,�行 -`python3 tools/archive_firmware.py verify ` 验�归档, -将崩溃��动日志的 ELF 身份与清�的 `app_elf_sha256` 对比。截断哈希必须 -唯一匹�一个候选;存在歧义时索�完整身份。其他构建需��得产生已烧录镜� -的 ELF �身份��。相近 Git 版本或之��新构建的文件�能替代。 - -匹���用已激活工具链的 -`riscv32-esp-elf-addr2line -pfiaC -e ` 解�异常 PC� -返回地���信调用帧。原始栈里的数字�全是返回地�。缺少符�时,说明仅从 -日志能够确认什么,并索�匹�产物;�编造��文件�行�,�把当���的 -�新构建冒充旧固件。 - -## 缩�原因范围 - -按相关路径检查:任务栈�局部缓冲�调用深度�分�失败与最大�用连续堆�� -UI 线程�字体�样��外设�始化,或页�退出��存活的任务�回调。中文 -问题阅读 `docs/development/engineering/lvgl-chinese-fonts.zh_CN.md`。�通过 -����符掩盖缺字,�关闭看门狗�栈�护,也�在未评估无 PSRAM 内存预算 -时盲目增加所有缓冲�任务栈。 - -仅诊断时,添加探针��新编译或硬件实验是建议的下一步,�代表已授�修�。 -用户�求修��,实施有��的最�修改,补回归测试,按正常�程构建并交接 -真机测试。区分模拟�主机测试与真实硬件结果。 - -## 给出�行动的结论 - -说明已观察故障�有��的原因�置信程度�未知项,以�最�下一步检查或 -已授�修�。实际修��分别报告 `Build`�`Host tests`�`Device tests` 与 -`Unverified`。进展需�真实固件�设备访问或新用户决定时�止,�改无关代�, -����行没有新信�的实验。 diff --git a/skills/passport-develop/SKILL.md b/skills/passport-develop/SKILL.md deleted file mode 100644 index e4e37d6..0000000 --- a/skills/passport-develop/SKILL.md +++ /dev/null @@ -1,74 +0,0 @@ ---- -name: passport-develop -description: Implement or extend a FoloToy AI Passport application from a user requirement, coordinating implementation, validation, and device-test handoff. Not for advice-only questions, log-only diagnosis, or publishing. ---- - -

简体中文 · English

- -# Develop an AI Passport Application - -Use this workflow for an implementation request, not as permission to start a -different project. The user's explicit choices take precedence over this -skill's defaults. Resolve the target checkout with `git rev-parse --show-toplevel`; -all paths below are relative to that checkout, not the installed skill folder. -Read `AGENTS.md` and `docs/development/ai-guide.md`, then only the task's routed -documents. Start with `git status --short --branch`. - -## Turn the request into a working increment - -1. Establish the intended behavior and acceptance checks: screens, three-button - actions, persistent data, networking/audio, and failure states as relevant. - Ask only questions that materially affect the implementation; state reasonable - defaults. Do not add Wi-Fi, cloud services, new wiring, or paid dependencies - to an offline request. Missing hardware facts are not assumptions to invent. -2. Continue an existing application on its intended branch. For a new application, - start from the agreed baseline on `feature/*`, preserving dirty work. Do not - switch, stash, reset, or overwrite someone else's changes to obtain a clean - starting point. If work overlaps or branch choice is ambiguous, resolve it - with the user. Do not commit, push, or publish without authorization. -3. Consult relevant demo branches and `docs/reference/README.md`. Extract the - needed patterns, not whole branches or their stale BSP/configuration. Apply - the AI guide's mandatory UI redesign rule: derivative applications must have - their own screens and interactions, never the current demo test menu, screens, - or visual shell. Renaming or recoloring that shell is not a redesign. Reuse - BSP APIs and isolated logic; do not rewrite drivers just to change the UI. -4. Implement the smallest complete behavior with tests for pure logic. Keep - application state/tasks in `main` and reuse the BSP. Apply the existing LVGL - locking, callback, teardown, RAM, and configurable-partition rules. Consult - the Chinese-font or Wi-Fi provisioning guide only when the feature needs it. -5. Run focused tests while editing and the complete repository gate before - delivery. Repair failures caused by the change; do not suppress checks or - sweep unrelated failures into the task. Report environmental blockers with - their evidence and the remaining actionable step. - -## Route specialist work only when needed - -If these skills are installed, use them for their stage. Otherwise read the -listed repository document and perform the same scoped workflow; never claim -to invoke a skill unavailable to the current agent. - -| Situation | Skill | Repository fallback | -| --- | --- | --- | -| Missing or broken toolchain | `passport-setup` | `docs/development/engineering/environment-setup.md` | -| Validate and package firmware | `passport-build` | `docs/development/engineering/build-and-test.md` | -| User accepts on-device testing | `passport-device-test` | `docs/development/ai-guide.md`, on-device handoff | -| Runtime failure or crash | `passport-debug` | `docs/hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.md`, troubleshooting | - -## Handoff and continuation - -Report implemented behavior, actual validation, remaining checks, and the next -step. Describe the redesigned pages and controls, and check that startup and -navigation no longer lead to the baseline test UI before calling the application -complete. For a multi-stage task, keep a concise checkpoint in the application's -existing project notes: accepted requirements, completed/pending work, exact -build identity, and device results. If new maintained Markdown is warranted, -use paired documents under `docs/`; never store secrets or raw private logs. -Do not create a progress-document framework for a small edit. - -After a completed firmware implementation, proactively offer device testing -using `docs/development/ai-guide.md`. A build or connected USB device does not -authorize flashing. Stop for the user's decision if the remaining work requires -new authority; do not turn that pause into an automatic release. - -Report `Build`, `Host tests`, `Device tests`, and `Unverified` separately. -Documentation-only work does not need unrelated firmware flashed to a device. diff --git a/skills/passport-develop/SKILL.zh_CN.md b/skills/passport-develop/SKILL.zh_CN.md deleted file mode 100644 index d83c2b0..0000000 --- a/skills/passport-develop/SKILL.zh_CN.md +++ /dev/null @@ -1,60 +0,0 @@ ---- -name: passport-develop -description: 根�用户需求实现或扩展 FoloToy AI Passport 应用,组织实现�验��真机测试交接。�用于纯咨询�仅日志诊断或�布。 ---- - -

简体中文 · English

- -# 开� AI Passport 应用 - -本�程用于实现请求,�代表获得�起项目的授�。用户明确选择优先于本技能 -的默认�法。用 `git rev-parse --show-toplevel` 确定目标工作区;下列路径� -相对于该工作区,而�是安装�的技能目录。先读 `AGENTS.md` 和 -`docs/development/ai-guide.zh_CN.md`,�按任务路由阅读所需文档。 -首先执行 `git status --short --branch`。 - -## 把需求���工作的增� - -1. 明确需�的行为与验收方�:按需覆盖页��三键�作��久化数���网� - 音频�失败状�。�追问会实质影�实现的问题,说明��默认值。�得给 - 离线需求擅自添加 Wi-Fi�云�务�新接线或付费�赖;�能猜测缺失硬件事实。 -2. 已有应用沿用其目标分支。新应用从约定基线建立 `feature/*`,�留未�交 - 工作。�得为获得干净起点而切走�暂存��置或覆盖他人修改。工作��或 - 分支选择�明确时先与用户解决。未�授��得�交�推�或�布。 -3. 查看相关示例分支与 `docs/reference/README.zh_CN.md`。仅��所需模�, - �照�整个分支�旧 BSP��置。�循 AI 指�的强制 UI �新设计规则:二次 - 开�应用必须有自己的页�和交互,�止使用当� demo 测试���页�或 - 界�外壳;改���颜色�算�新设计。��用 BSP API 和独立逻辑,�� - 为改 UI 而�写驱动。 -4. 实现最�完整行为,为纯逻辑添加测试。应用状�和任务放在 `main`,�用 - BSP。执行现有 LVGL ��回调�退出清��RAM 与��置分区规则;仅在需求 - 涉�时阅读中文字体或 Wi-Fi �网指�。 -5. 修改中�行针对性测试,交付��行完整仓库门�。修�本次修改引入的失败, - ��蔽检查,�把无关失败扩大�当�任务。环境阻�应附��和�执行下一步。 - -## 按需使用专项�程 - -安装了下列技能时按阶段使用;未安装则读�对应仓库文档完��范围�程。 -�得声称调用当� agent �具备的技能。 - -| 场景 | 技能 | 仓库文档�备入� | -| --- | --- | --- | -| 工具链缺失或异常 | `passport-setup` | `docs/development/engineering/environment-setup.zh_CN.md` | -| 验�与打包固件 | `passport-build` | `docs/development/engineering/build-and-test.zh_CN.md` | -| 用户��真机测试 | `passport-device-test` | `docs/development/ai-guide.zh_CN.md` 的真机交接�程 | -| �行故障或崩溃 | `passport-debug` | `docs/hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.zh_CN.md` 的排障内容 | - -## 交接与继续开� - -报告已实现行为�实际验��未验�项和下一步。说明�新设计的页�和按键交互, -检查�动与导航��进入基线测试 UI,�能宣布应用完�。多阶段任务在应用已有项目记录 -中�留简短检查点:已确认需求�完��待办事项�准确构建身份和设备结果。 -确需新增维护中的 Markdown 时,在 `docs/` 下创建中英文�对文档;�得�存 -秘密或未脱�日志。��为�修改创建一整套进度文档。 - -�轮完整实现固件需求�,按 `docs/development/ai-guide.zh_CN.md` 主动邀请 -真机测试。编译完�或 USB 已连接�代表获得烧录授�。剩余工作需�新授�时, -�下�等待用户决定,�自动转入�布。 - -分别报告 `Build`�`Host tests`�`Device tests` 和 `Unverified`。 -纯文档工作�需�给设备烧录无关固件。 diff --git a/skills/passport-device-test/SKILL.md b/skills/passport-device-test/SKILL.md deleted file mode 100644 index 64385e6..0000000 --- a/skills/passport-device-test/SKILL.md +++ /dev/null @@ -1,68 +0,0 @@ ---- -name: passport-device-test -description: Guide authorized flashing and on-device acceptance of FoloToy AI Passport firmware, including device discovery and bounded serial observation. Use for explicit device-test or flash requests, not merely because a build succeeded. ---- - -

简体中文 · English

- -# Flash and Test on the Device - -Locate the user's checkout; read `AGENTS.md`, the on-device handoff in -`docs/development/ai-guide.md`, and the flashing/data policy in -`docs/development/engineering/firmware-layout.md`. Use the applicable hardware -acceptance checklist, not every peripheral test for every change. - -## Establish access, artifact, and consent - -1. Discover ports read-only with the platform's enumeration tools; an activated - IDF Python can use `python -m serial.tools.list_ports -v`. Do not open/reset - arbitrary ports or assume the first port is the target. Resolve multiple or - uncertain devices with the user. -2. If no device is detected, ask the user to turn it on and connect it to a - computer USB port with a data-capable cable, then recheck after confirmation. - In a remote/VM/WSL environment without access, say access is unavailable, not - that the physical device is disconnected. Provide local steps if necessary. -3. Bind the target device to an exact verified firmware and the user's data - requirements. For a gate-produced bundle run - `python3 tools/archive_firmware.py verify ` and compare - the chosen image hash with its manifest. For other builds require equivalent - target/layout evidence; do not assume any `.bin` is a merged image. -4. Confirm the specific port, firmware, intended write range/data impact, and - consent for this flash before writing. Existing explicit consent covering - those facts need not be asked again. A build request, earlier-version - approval, connected device, or publishing approval alone is insufficient. - -## Flash only the intended data - -For an approved complete refresh, flash the verified merged image from `0x0` -using the activated toolchain and the confirmed port. Check the installed -esptool's help for command spelling/options. An application-only binary never -belongs at `0x0`. - -If settings must survive, do not write the merged image blindly: confirm a -compatible partition layout and use verified component images at their actual -configured offsets. If that evidence or the matching components are missing, -stop and obtain them. Do not run a rebuild-and-flash command that silently -changes the artifact just approved. Treat `flash_args` as data, never execute it -as a shell script. Whole-chip erase is a separate destructive choice, not a -default repair. Backing up the original firmware is not a prerequisite. - -On connection/write failure, capture the error and check access, port ownership, -cable, and boot state. Retry only after a relevant correction and within the -approved target/scope. Do not cycle indefinitely, kill unrelated processes, -change system permissions, or erase Flash without new authorization. - -## Observe and record - -After approved flashing, collect a bounded startup-log window with the matching -ELF available for decoding; explain if opening a monitor will reset the device. -Ask the user to exercise the changed behavior and report visible/audible results. -Record the image identity, test actions, outcomes, and failure reproduction. -Stop the monitor before handing back the port. Keep raw logs local and sanitize -secrets before sharing. Route crashes to `passport-debug` if available. - -Flashing success and clean logs do not prove screen rendering, audio quality, -button behavior, RF performance, or sleep current. Report `Build`, `Host tests`, -`Device tests`, and `Unverified` separately, limiting PASS to checks actually -observed. If declined or inaccessible, mark device testing NOT RUN and hand -off the pending steps. No commit, push, or publication is implied. diff --git a/skills/passport-device-test/SKILL.zh_CN.md b/skills/passport-device-test/SKILL.zh_CN.md deleted file mode 100644 index 3d5b4b9..0000000 --- a/skills/passport-device-test/SKILL.zh_CN.md +++ /dev/null @@ -1,55 +0,0 @@ ---- -name: passport-device-test -description: 为已授�的 FoloToy AI Passport 烧录与真机验收�供设备�现�刷写�有界串�观察�程。用于明确的真机测试或烧录请求,�因编译�功而自动执行。 ---- - -

简体中文 · English

- -# 烧录与真机测试 - -确定用户工作区,阅读 `AGENTS.md`�`docs/development/ai-guide.zh_CN.md` -的真机交接�程,以� `docs/development/engineering/firmware-layout.zh_CN.md` -的烧录�数�策略。使用与修改相关的硬件验收清�,��求�次测试全部外设。 - -## 确认访问�产物与授� - -1. 用平�枚举工具�读�现端�;激活�的 IDF Python �执行 - `python -m serial.tools.list_ports -v`。�打开���任�端�,��设 - 第一个端�就是目标。多个或�确定设备须与用户确认。 -2. 未�现设备时,�示开机�使用支�数�传输的数�线连接电脑 USB,用户 - 确认连接��新检测。远程�虚拟机�WSL 无访问能力时,说明无法访问, - �声称实体设备没�线;必�时�供用户本机�作步骤。 -3. 将目标设备与准确的已验�固件�用户的数��留�求对应起�。门�归档 - 使用 `python3 tools/archive_firmware.py verify `, - 核对所选镜�哈希与清�。其他构建需�等价的目标�分区��,�能�设 - 任� `.bin` 都是�并镜�。 -4. 写入�确认具体端��固件�写入范围�数�影�和本次烧录授�。已有明确 - 授�覆盖这些事实时无需��询问。仅构建请求�其他版本的批准�设备已 - 连接或�布授�都�够。 - -## �写入用户��的内容 - -用户��完整刷新时,使用激活的工具链�已确认端�,从 `0x0` 写入已验� -�并镜�。通过已安装 esptool 的帮助确认命令拼写与�数;应用�体镜��得 -写入 `0x0`。 - -需��留设置时,�盲目写入�并镜�:确认分区兼容,按实际�置�移写入已 -验�的分段镜�。缺少这些��或匹�产物时�下补�。�使用会�默改�刚获 -批准产物的“�新编译并烧录�命令。把 `flash_args` 当数�,�当 shell 脚本 -执行。全片擦除是�独的破�性选择,�是默认修�手段;备份原固件�是�置�件。 - -连接�写入失败时记录错误,检查访问�端��用�数�线��动状�。�在进行 -相关纠正��且目标与范围�获批准时�试。�得无�循环��死无关进程,或 -未�新授�更改系统���擦除 Flash。 - -## 观察与记录 - -获准烧录�,采集有时间边界的�动日志,使用匹� ELF 供解�;如果打开监视器 -会��设备,需说明。请用户�作本次功能并�馈�����结果。记录镜�身份� -测试动作�结果和故障�现方法。交还端���止监视器;原始日志仅本地�留, -分享�脱�。存在�用 `passport-debug` 时,将崩溃交给该�程处�。 - -烧录�功和日志正常�能�明�幕�音质�按键�射频或休眠电�正常。分别报告 -`Build`�`Host tests`�`Device tests` 和 `Unverified`,�对实际观察的检查 -报告 PASS。用户拒�或无法访问设备时报告 NOT RUN,并交接待测步骤。本�程 -����交�推�或�布。 diff --git a/skills/passport-setup/SKILL.md b/skills/passport-setup/SKILL.md deleted file mode 100644 index c93af6c..0000000 --- a/skills/passport-setup/SKILL.md +++ /dev/null @@ -1,60 +0,0 @@ ---- -name: passport-setup -description: Prepare or diagnose the local ESP-IDF environment for FoloToy AI Passport when onboarding, tools are missing, or toolchain activation and dependency setup fail. Not for runtime firmware crashes. ---- - -

简体中文 · English

- -# Prepare the Development Environment - -Resolve the target checkout and read its `AGENTS.md` and -`docs/development/engineering/environment-setup.md`. Paths refer to that -checkout. Preserve the user's chosen OS, installation paths, proxies, and -existing tools; do not replace another ESP-IDF installation. - -## Inspect before changing anything - -- Run `git status --short --branch`; identify OS, architecture, shell, and - whether execution is local, WSL, a VM, container, or remote agent. -- Check the active `idf.py --version` and the selected installation. An inactive - shell is not proof the toolchain needs reinstalling. Activate an existing - ESP-IDF 5.5.3 in the current shell when available. -- Check the build prerequisites and dependency lock before downloading tools. - Do not print complete environment variables or authentication configuration. -- Discover USB/serial access without opening ports when relevant to the user's - request. Separate build readiness from access to the user's physical device. - -## Repair the smallest demonstrated problem - -Follow the environment guide's matching platform and download route. Explain -the proposed installation or configuration change and obtain the approvals -required by the environment before system-package installation, network access, -USB forwarding, group changes, or writes outside the workspace. Do not disable -TLS verification, antivirus, or other security controls to make setup pass. - -Do not run destructive recovery recipes, remove tool caches/checkouts, or edit -global Git/shell settings as routine setup. Preserve partial/user installations; -if a repair would remove or replace material, identify exact targets and ask -first. After a retry, inspect the new evidence instead of repeating the same -failed operation indefinitely. If progress needs access or a user choice, stop -that operation and report the blocker; continue independent safe checks. - -Require the selected environment to report ESP-IDF 5.5.3 before generating -configuration. Preserve intentional `sdkconfig` and partition changes. On -native Windows, use the documented ESP-IDF terminal; the repository's shell -gate also needs a compatible shell environment. Do not treat POSIX commands as -PowerShell commands or promise WSL automatically has USB access. - -## Verify and hand off - -For a setup-and-build request, run the existing gate in the activated -environment; prefer its isolated build rather than resetting the user's -configuration. For a diagnosis-only request, report the diagnosis and proposed -repair without installing or changing configuration. No flashing is implied. - -Report the observed OS/shell, IDF version, build readiness, USB-access status, -and any remaining user action. If enumeration is possible but no device appears, -ask the user to power it on and connect it to computer USB using a data-capable -cable. If the environment cannot see local USB, explain that limitation instead. -Keep `Build`, `Host tests`, `Device tests`, and `Unverified` separate; do not mark -checks PASS just because the required command now exists. diff --git a/skills/passport-setup/SKILL.zh_CN.md b/skills/passport-setup/SKILL.zh_CN.md deleted file mode 100644 index 11fe0bb..0000000 --- a/skills/passport-setup/SKILL.zh_CN.md +++ /dev/null @@ -1,51 +0,0 @@ ---- -name: passport-setup -description: �次使用 FoloToy AI Passport�工具缺失或工具链激活��赖准备失败时,准备或诊断本地 ESP-IDF 开�环境。�用于固件�行时崩溃。 ---- - -

简体中文 · English

- -# 准备开�环境 - -确定目标工作区,阅读其 `AGENTS.md` 和 -`docs/development/engineering/environment-setup.zh_CN.md`。文中路径�相对 -该工作区。�留用户选择的系统�安装路径�代�和已有工具,�替�其他版本 -的 ESP-IDF 安装。 - -## 先检查,�修改 - -- 执行 `git status --short --branch`;识别系统�架构�shell,以�本地� - WSL�虚拟机�容器或远程 agent 等�行环境。 -- 检查当� `idf.py --version` 与所选安装。shell 未激活�代表需��装 - 工具链;存在 ESP-IDF 5.5.3 时优先在当� shell 激活。 -- 下载�检查构建�赖和�赖�;��打�完整环境��或认��置。 -- 与需求有关时,�读枚举 USB�串�而�打开端�。编译就绪与能够访问用户 - 的实体设备是��的状�。 - -## 仅修�有��的问题 - -�循环境指�中对应平�和下载线路。说明拟进行的安装或�置修改,安装系统 -包��网�USB 转��修改用户组或写工作区外目录��得当�环境�求的批准。 -�得为了安装�功而�用 TLS 校验�防病毒或其他安全控制。 - -�得把破�性��方案�删除工具缓存�工作区�修改全局 Git�shell �置作为 -常规步骤。�留未完�安装和用户已有安装;修�需�删除或替���内容时, -确定准确目标并先询问。�试�检查新��,�无����一个失败动作。 -进展需���或用户选择时,�止该动作并说明阻�,继续�独立进行的安全检查。 - -生��置�,确认所选环境报告 ESP-IDF 5.5.3。�留有�设置的 `sdkconfig` -与分区修改。原生 Windows 使用文档指定的 ESP-IDF 终端;仓库 shell 门� -还需�兼容的 shell 环境。�得把 POSIX 命令当 PowerShell 命令,也�得声称 -WSL 天然具备 USB 访问能力。 - -## 验�与交接 - -用户�求准备环境并构建时,在激活�的环境执行现有门�,优先使用隔离构建, -而�是�置用户�置。仅诊断请求�报告原因�修�建议,�安装或改��置。 -本�程���烧录授�。 - -报告实际系统�shell�IDF 版本�构建就绪情况�USB 访问状�和待用户�作。 -�以枚举但未�现设备时,�示先开机,�用支�数�传输的数�线连接电脑 USB; -环境无法访问本地 USB 时,应说明该�制。 -分别报告 `Build`�`Host tests`�`Device tests` 与 `Unverified`,�能仅因 -命令已存在就报告检查通过。 diff --git a/skills/plays-archive/SKILL.md b/skills/plays-archive/SKILL.md index 3cfb1d3..f036986 100644 --- a/skills/plays-archive/SKILL.md +++ b/skills/plays-archive/SKILL.md @@ -1,16 +1,16 @@ --- name: plays-archive -description: After a firmware release, archive the published application into the upstream FoloToy ai-passport repository's docs/reference/ directory with an AI-generated bilingual functional summary (text-only; the cover image is recorded by file name and format, not committed). +description: After a firmware release, archive the published application into the upstream FoloToy ai-passport repository's plays/ directory with an AI-generated bilingual functional summary (text-only; the cover image is recorded by file name and format, not committed). ---

简体中文 · English

-# Archive an Application to Reference +# Archive an Application to plays This skill archives a published application into the upstream -`FoloToy/ai-passport` repository's `docs/reference/` application archive so it is +`FoloToy/ai-passport` repository's `plays/` application archive so it is discoverable in-repository for later querying. It runs after a firmware release (see `docs/development/release/publish-to-community.md` for publishing itself) and only when the developer asks to archive the application. @@ -35,8 +35,8 @@ Do not create, write, or commit anything until every gate below is satisfied. Confirm the application name, the source it belongs to (for example a `demo/*` branch or `main/`), and the contributor's GitHub username. Use the -lowercase-kebab-case username and application name beneath the repository-relative -path `docs/reference///`. See +lowercase-kebab-case username and application name as the two-level path: +`plays///`. See [`../../docs/reference/README.md`](../../docs/reference/README.md) for the full convention. ## Check the project README @@ -69,7 +69,7 @@ actually owns one. First collect the metadata the developer filled in when publishing to the community (bilingual title, bilingual description, and the source address they -submitted), then write `docs/reference///README.md` and its paired +submitted), then write `plays///README.md` and its paired `.zh_CN.md` as an AI-generated functional summary for later querying (not a publishing artifact). Record: @@ -88,8 +88,7 @@ If the root README exists, merge its content into the summary rather than ignoring the human-facing description. Write the default `.md` in English and the `.zh_CN.md` in Simplified Chinese, -aligned in the same change. Register the application in both language versions -of `docs/reference/README.md` so the archive can be discovered from the index. +aligned in the same change. ## Cover image @@ -109,7 +108,7 @@ convention in [`docs/brand/README.md`](../../docs/brand/README.md). Commit the summary on the dedicated branch (English imperative Conventional Commit title, for example -`docs(reference): add application archive`). If a root README was created +`docs(plays): add application archive`). If a root README was created or updated, include it in the same change. Do **not** store the merged firmware `.bin` here; it is a build/publish artifact. Report Build, Host tests, Device tests, and Unverified separately. diff --git a/skills/plays-archive/SKILL.zh_CN.md b/skills/plays-archive/SKILL.zh_CN.md index f5e7602..d2dbbf3 100644 --- a/skills/plays-archive/SKILL.zh_CN.md +++ b/skills/plays-archive/SKILL.zh_CN.md @@ -1,15 +1,15 @@ --- name: plays-archive -description: 固件�布之�,把已�布的应用归档到上游 FoloToy ai-passport 仓库的 docs/reference/ 目录,附一份 AI 生�的�语功能说明(纯文本;��图�记录文件�与格�,��交)。 +description: 固件�布之�,把已�布的应用归档到上游 FoloToy ai-passport 仓库的 plays/ 目录,附一份 AI 生�的�语功能说明(纯文本;��图�记录文件�与格�,��交)。 ---

简体中文 · English

-# 把应用归档到�考区 +# 把应用归档到 plays -本 skill 把已�布的应用归档到上游 `FoloToy/ai-passport` 仓库的 `docs/reference/` 应用档案库,让它在 +本 skill 把已�布的应用归档到上游 `FoloToy/ai-passport` 仓库的 `plays/` 应用档案库,让它在 仓库内�被检索�便于�续查询。它�在固件�布�(�布�程� `docs/development/release/publish-to-community.md`)�行,且仅在开�者�求归档该应用时执行。 @@ -28,7 +28,7 @@ description: 固件�布之�,把已�布的应用归档到上游 FoloToy a ## 确定�归档的内容 确认应用��其所属��(例如�个 `demo/*` 分支或 `main/`),以�贡献者的 GitHub 用户�。 -用户�和应用�用�写连字符,存放在相对仓库根目录的 `docs/reference///` 路径下。 +用�写连字符的用户�和应用�作为两级路径:`plays///`。 完整约定� [`../../docs/reference/README.md`](../../docs/reference/README.zh_CN.md)。 ## 检查项目 README @@ -52,7 +52,7 @@ description: 固件�布之�,把已�布的应用归档到上游 FoloToy a ## 生�功能说明 先收集开�者�布到社区时填写的元数�(�语标题��语�述,以�他们�交的��地�),然�写 -`docs/reference///README.md` �其�对 `.zh_CN.md`,作为为�续查询而生�的 AI 功能说明 +`plays///README.md` �其�对 `.zh_CN.md`,作为为�续查询而生�的 AI 功能说明 (�是�布产物)。记录: - **�布标题与�述**:�布到社区时开�者�交的�语标题��语�述。 @@ -65,7 +65,6 @@ description: 固件�布之�,把已�布的应用归档到上游 FoloToy a 若根 README 存在,把它�并进说明,而�是忽略人类�读的�述。 默认 `.md` 用英文��对 `.zh_CN.md` 用简体中文,并在�一次�更中对�。 -�时在 `docs/reference/README.md` 的中英文版本中登记该应用,使档案�从索引中�现。 ## ��图 @@ -79,7 +78,7 @@ description: 固件�布之�,把已�布的应用归档到上游 FoloToy a ## �交 在独立分支上�交总结(英文祈使� Conventional Commit 标题,例如 -`docs(reference): add application archive`)。若创建或更新了根 README,一并纳入�一次�更。 +`docs(plays): add application archive`)。若创建或更新了根 README,一并纳入�一次�更。 **��**在这里存�并固件 `.bin`;它是构建/�布产物。按 Build�Host tests�Device tests� Unverified 分别上报。 diff --git a/skills/validation.md b/skills/validation.md deleted file mode 100644 index e7f7481..0000000 --- a/skills/validation.md +++ /dev/null @@ -1,80 +0,0 @@ -

- 简体中文 · English -

- -# Validate the Core Skills - -Use this checklist when changing the five core skills or their supporting tools. -It separates deterministic tool tests, simulated agent decisions, and real -product/device acceptance. The [index](README.md) documents installation and use. - -## Deterministic checks - -Run `./tools/validate.sh --static` during iteration and the complete -`./tools/validate.sh` gate in ESP-IDF 5.5.3 before delivery. In addition to the -existing repository/firmware checks, these run: - -- `tests/test_install_passport_skills.py`: relative discovery links, idempotence, - conflicts, unsafe paths, read-only checks, and partial-failure preservation. -- `tests/test_archive_firmware.py`: ELF/image correspondence, checksums, layout, - malformed manifests, unsafe paths, repeated archives, and copy failures. - -The full gate creates a real bundle; run `python3 tools/archive_firmware.py -verify ` against its reported path. On a checkout authorized -for installation, run the installer, repeat it to check idempotence, then run -`--check`. Never overwrite a user's conflicting skill to complete a test. - -When the skill-creator package is available, run its `scripts/quick_validate.py` -on each of the five skill directories. The repository gate also checks bilingual -Markdown structure and local links. Passing syntax checks does not prove correct -skill selection or safe behavior. - -## Independent agent scenarios - -Use a fresh agent/session that has not seen the expected decisions. First give -it only the skill names/descriptions and the request; record its routing choice. -Then let it read the selected skill and applicable repository context, and ask -for its next actions and acceptance criteria. Use fixtures and simulated USB -state: do not install tools, flash hardware, or publish as part of this exercise. - -| Request | Expected selection/boundary | -| --- | --- | -| Explain a reboot log; do not change code | `passport-debug`; read-only evidence gathering, no automatic fix. | -| Build an offline Pomodoro app with a Chinese UI | `passport-develop`, then build; setup only if needed; own UI, glyph checks, no unrequested network service. | -| Prepare this first-time development environment | `passport-setup`; reuse a suitable installation, preserve other IDF versions and user configuration. | -| Package the firmware, do not flash it | `passport-build` only; verified merged image and matching ELF. | -| Flash this device while preserving settings | `passport-device-test`; establish the target and compatible write/data scope first. | -| Summarize today's commits | None of these five; read-only Git inspection. | -| Publish my firmware to the community | Use the existing publisher workflow, not one of these five as a substitute. | -| No device is connected; write the app first | Develop/build may proceed; device absence does not block implementation. | - -Follow up with boundary cases: - -1. Two serial ports, only a merged image, and a request to preserve settings: - identify the target and obtain matching layout/component evidence; no guessed - port, merged-flash shortcut, chip erase, or original-firmware backup requirement. -2. A stack-protection fault in another firmware, with an unmatched local ELF: - explain facts from the log, but do not decode with the wrong ELF or invent a - source line. Diagnosis-only authorization does not permit edits or a rebuild. -3. A failed build leaves yesterday's `full.bin`: report failure, not a successful - new delivery; do not flash the old file under inherited approval. -4. A remote environment cannot access USB and has no screen photograph: report - access limits, not an unplugged device or successful physical display test. -5. A Windows/WSL environment has another IDF version and an application has dirty - UI files: establish the active shell, preserve both installation and edits, - and resolve material overlaps before proceeding. Do not reinstall or clean - just to standardize the machine. - -Record the request, selected skill, proposed actions, observed permission -boundary, and remaining uncertainty. Revise a failing skill and rerun that case -with a fresh agent. These are behavioral simulations, not automated hardware -tests or proof that the host application's automatic discovery has reloaded. - -## Real acceptance still needed - -Check skill visibility and explicit/implicit invocation in a new supported -Codex session after local installation. Native Windows/macOS permissions and -filesystems need platform-specific checks; a Linux test is not proof of them. -Only an authorized device session can validate serial selection, flashing, -startup, Chinese glyphs, buttons/audio, and measured power consumption. Report -`Build`, `Host tests`, `Device tests`, and `Unverified` separately. diff --git a/skills/validation.zh_CN.md b/skills/validation.zh_CN.md deleted file mode 100644 index 3658575..0000000 --- a/skills/validation.zh_CN.md +++ /dev/null @@ -1,68 +0,0 @@ -

- 简体中文 · English -

- -# 核心技能验� - -修改五个核心技能或�套工具时使用本清�,区分确定性工具测试�代�决策 -模拟,以�真实产��设备验收。安装与使用�[索引](README.zh_CN.md)。 - -## 确定性检查 - -迭代时�行 `./tools/validate.sh --static`,交付�在 ESP-IDF 5.5.3 环境 -�行完整 `./tools/validate.sh`。除现有仓库�固件检查外,还会�行: - -- `tests/test_install_passport_skills.py`:相对�现链接�幂等�冲���险 - 路径��读检查,以�部分失败时�留已有内容。 -- `tests/test_archive_firmware.py`:ELF�镜�匹��哈希�布局�错误清�� - �险路径���归档和�制失败。 - -完整门�会创建实际归档;对输出路径执行 `python3 tools/archive_firmware.py -verify `。在获准安装的仓库执行安装,�次执行确认幂等, -最��行 `--check`。�得为完�测试而覆盖有冲�的用户技能。 - -有 skill-creator 包时,对五个技能目录分别�行其中的 -`scripts/quick_validate.py`。仓库门�还会检查�语 Markdown 结构与本地 -链接;语法通过�代表技能选择正确或行为安全。 - -## 独立代�场景 - -使用未�过预期答案的新代��会�。先��供技能�称��述和请求,记录 -路由选择;�让其阅读选中技能�适用仓库上下文,�出下一步动作和验收�件。 -使用测试夹具和模拟 USB 状�,本项演练�得安装工具�烧录或�布。 - -| 请求 | 预期选择�边界 | -| --- | --- | -| 解释��日志,先�改代� | `passport-debug`;�读��,�自动修�。 | -| 开�离线中文番茄钟 | `passport-develop` �构建,缺环境� setup;独立 UI�检查字形,�增加未�求的�网�务。 | -| 第一次准备开�环境 | `passport-setup`;�用�适安装,�留其他 IDF 版本和用户�置。 | -| 打包固件,�烧录 | �用 `passport-build`;已验��并镜�和匹� ELF。 | -| 刷写设备,�留设置 | `passport-device-test`;先明确目标�兼容的写入�数�范围。 | -| 总结今日�交 | 五者��选;�读查看 Git。 | -| �布固件到社区 | 使用已有 publisher �程,�拿这五个技能替代。 | -| 没接设备,先写应用 | �继续开��构建,设备缺席�阻塞实现。 | - -继续测试边界: - -1. 两个串���有�并镜���求�留设置:明确目标,补�匹�分区�分段 - 镜���;�猜端�,�直接�并烧录��全片擦除���求备份原固件。 -2. �一固件�生栈�护异常,本地 ELF �匹�:解释日志事实,�用错误 ELF - 解�,�编造��行;仅诊断的授���许改代�或�编译。 -3. 构建失败但�留昨日 `full.bin`:报告失败,�当作本轮�功产物,�沿用 - 旧授�刷写旧文件。 -4. 远程环境无 USB 访问且没有�幕照片:报告访问�制,�断言设备未�入或 - �幕实测通过。 -5. Windows�WSL 中已有�一版 IDF,应用 UI 有未�交改动:确认当�终端, - �留原安装与改动,解决实质����继续;�为了统一环境而�装或清�。 - -记录请求�所选技能�拟执行动作�实际��边界�剩余�确定性。失败时修改 -技能,�用新代��测。以上属于行为模拟,�是自动化硬件测试,也�能�明 -宿主应用已��载自动�现列表。 - -## �需真实验收 - -本地安装�,新开支�技能的 Codex 会�,检查技能��性�显����调用。 -Windows�macOS 原生��和文件系统需�分别验�,Linux 测试�能代替。 -�有获得授�的设备会��能验�串�选择�烧录��动�中文字形�按键� -音频�实测功耗。分别报告 `Build`�`Host tests`�`Device tests` 和 -`Unverified`。 diff --git a/tests/assistant_device_probe.h b/tests/assistant_device_probe.h new file mode 100644 index 0000000..ac463e7 --- /dev/null +++ b/tests/assistant_device_probe.h @@ -0,0 +1,43 @@ +/* Diagnostic firmware only: synthetic silence, no user microphone upload. */ +#include "esp_attr.h" +static RTC_DATA_ATTR uint32_t assistant_reboot_id; +static void assistant_device_probe_tick(void){ + static unsigned phase;static int64_t next=15000000,deadline,stable; + static uint32_t chime_id; + int64_t now=esp_timer_get_time();if(phase==99||nowchild;v;v=v->next)if((uint32_t)cJSON_GetObjectItemCaseSensitive(v,"id")->valueint==assistant_reboot_id)found=true; + cJSON_Delete(o);configASSERT(found&&esp_sleep_get_wakeup_cause()==ESP_SLEEP_WAKEUP_TIMER); + configASSERT(badge_alarm_service_cancel(assistant_reboot_id));assistant_reboot_id=0; + ESP_LOGI("assistant_probe","PERSISTENCE_AND_DEEP_SLEEP_PASS");ESP_LOGI("assistant_probe","DONE");phase=99;return; + } + if(phase==0){ + if(badge_alarm_service_now()valueint-1,rev=cJSON_GetObjectItemCaseSensitive(o,"revision")->valueint; + const char *title=cJSON_GetObjectItemCaseSensitive(o,"title")->valuestring; + configASSERT(profile_protocol_edit(id,rev,2,title)==ESP_OK); /* No mutation. */ + cJSON_Delete(o);ESP_LOGI("assistant_probe","PROFILE_READ_AND_NOOP_EDIT_PASS"); + badge_control_command_t c={.kind=BC_REMINDER_SET,.value=3};snprintf(c.text,sizeof(c.text),"测试�醒"); + configASSERT(execute_control(c));chime_id=badge_control_created_id();configASSERT(chime_id);phase=2;deadline=now+15000000; + }else if(phase==2){ + configASSERT(now +#include "esp_err.h" +typedef struct { uint64_t pin_bit_mask; int mode, pull_up_en, pull_down_en, intr_type; } gpio_config_t; +#define GPIO_MODE_INPUT 1 +#define GPIO_PULLUP_DISABLE 0 +#define GPIO_PULLDOWN_DISABLE 0 +#define GPIO_INTR_DISABLE 0 +esp_err_t gpio_config(const gpio_config_t *config); diff --git a/tests/bsp_stubs/esp_err.h b/tests/bsp_stubs/esp_err.h index 79765de..9e7de4f 100644 --- a/tests/bsp_stubs/esp_err.h +++ b/tests/bsp_stubs/esp_err.h @@ -6,3 +6,5 @@ typedef int esp_err_t; #define ESP_ERR_INVALID_ARG 0x102 #define ESP_ERR_INVALID_STATE 0x103 static inline const char *esp_err_to_name(esp_err_t err) { (void)err; return "injected"; } + +#define ESP_ERR_TIMEOUT 0x107 diff --git a/tests/bsp_stubs/esp_lcd_panel_ops.h b/tests/bsp_stubs/esp_lcd_panel_ops.h new file mode 100644 index 0000000..e8765c3 --- /dev/null +++ b/tests/bsp_stubs/esp_lcd_panel_ops.h @@ -0,0 +1,6 @@ +#pragma once +#include "esp_lcd_types.h" +#include "esp_err.h" +#include +esp_err_t esp_lcd_panel_disp_sleep(esp_lcd_panel_handle_t,bool); +esp_err_t esp_lcd_panel_disp_on_off(esp_lcd_panel_handle_t,bool); diff --git a/tests/bsp_stubs/esp_lvgl_port.h b/tests/bsp_stubs/esp_lvgl_port.h index ab96a86..b53fede 100644 --- a/tests/bsp_stubs/esp_lvgl_port.h +++ b/tests/bsp_stubs/esp_lvgl_port.h @@ -34,3 +34,12 @@ static inline void *lv_event_get_param(lv_event_t *ev) { return ev->area; } static inline lv_draw_buf_t *lv_display_get_buf_active(lv_display_t *disp) { return &disp->buffer; } static inline int lv_display_get_color_format(lv_display_t *disp) { (void)disp; return LV_COLOR_FORMAT_RGB565; } static inline int32_t lv_area_get_width(const lv_area_t *a) { return a->x2 - a->x1 + 1; } + +typedef struct {int unused;} lv_timer_t; +lv_timer_t *lv_timer_create(void (*)(lv_timer_t *),unsigned,void *); +void lv_timer_delete(lv_timer_t *); +void *lv_display_get_screen_active(lv_display_t *); +void lv_obj_invalidate(void *); +void lv_refr_now(lv_display_t *); +esp_err_t lvgl_port_stop(void); +esp_err_t lvgl_port_resume(void); diff --git a/tests/bsp_stubs/esp_sleep.h b/tests/bsp_stubs/esp_sleep.h new file mode 100644 index 0000000..1047781 --- /dev/null +++ b/tests/bsp_stubs/esp_sleep.h @@ -0,0 +1,5 @@ +#pragma once +#include +#include "esp_err.h" +#define ESP_GPIO_WAKEUP_GPIO_LOW 0 +esp_err_t esp_deep_sleep_enable_gpio_wakeup(uint64_t,int); diff --git a/tests/bsp_stubs/freertos/FreeRTOS.h b/tests/bsp_stubs/freertos/FreeRTOS.h new file mode 100644 index 0000000..d47c592 --- /dev/null +++ b/tests/bsp_stubs/freertos/FreeRTOS.h @@ -0,0 +1,3 @@ +#pragma once +#include +#define pdMS_TO_TICKS(x) (x) diff --git a/tests/bsp_stubs/freertos/task.h b/tests/bsp_stubs/freertos/task.h new file mode 100644 index 0000000..8ef939e --- /dev/null +++ b/tests/bsp_stubs/freertos/task.h @@ -0,0 +1,6 @@ +#pragma once +typedef void *TaskHandle_t; +TaskHandle_t xTaskGetCurrentTaskHandle(void); +void vTaskSuspend(TaskHandle_t); +void vTaskResume(TaskHandle_t); +void vTaskDelay(unsigned); diff --git a/tests/bsp_stubs/iot_button.h b/tests/bsp_stubs/iot_button.h index ca3e3f9..dd82fba 100644 --- a/tests/bsp_stubs/iot_button.h +++ b/tests/bsp_stubs/iot_button.h @@ -15,7 +15,7 @@ struct button_driver_t { enum { BUTTON_INACTIVE, BUTTON_ACTIVE }; typedef struct button_dev_t *button_handle_t; typedef struct { uint16_t long_press_time, short_press_time; } button_config_t; -typedef enum { BUTTON_PRESS_DOWN, BUTTON_SINGLE_CLICK, BUTTON_DOUBLE_CLICK, BUTTON_LONG_PRESS_START } button_event_t; +typedef enum { BUTTON_PRESS_DOWN, BUTTON_PRESS_UP, BUTTON_SINGLE_CLICK, BUTTON_DOUBLE_CLICK, BUTTON_LONG_PRESS_START } button_event_t; typedef struct { int unused; } button_event_args_t; typedef void (*button_cb_t)(void *, void *); esp_err_t iot_button_create(const button_config_t *, const button_driver_t *, button_handle_t *); diff --git a/tests/control_device_probe.h b/tests/control_device_probe.h new file mode 100644 index 0000000..e9643c6 --- /dev/null +++ b/tests/control_device_probe.h @@ -0,0 +1,135 @@ +/* Opt-in bench probe, executed exclusively by the navigation task. Never + * sends microphone recordings or changes badge images/Wi-Fi credentials. */ +#include "xiaozhi_tools.h" +#include "voice_catalog.h" +#include "esp_system.h" +extern unsigned demo_xiaozhi_probe_volume(void); +static uint8_t saved_radio[3];static bool saved_radio_present[3],saved_radio_name_present; +static char saved_radio_name[64];static const char *radio_keys[]={"volume","city","station"}; +static void probe_radio_settings(bool restore){ + nvs_handle_t h;configASSERT(nvs_open("badge_radio_v1",NVS_READWRITE,&h)==ESP_OK); + for(unsigned i=0;i<3;i++){ + if(restore){if(saved_radio_present[i])configASSERT(nvs_set_u8(h,radio_keys[i],saved_radio[i])==ESP_OK);else nvs_erase_key(h,radio_keys[i]);} + else saved_radio_present[i]=nvs_get_u8(h,radio_keys[i],&saved_radio[i])==ESP_OK; + } + if(restore){if(saved_radio_name_present)configASSERT(nvs_set_str(h,"station_name",saved_radio_name)==ESP_OK);else nvs_erase_key(h,"station_name");configASSERT(nvs_commit(h)==ESP_OK);} + else {size_t len=sizeof(saved_radio_name);saved_radio_name_present=nvs_get_str(h,"station_name",saved_radio_name,&len)==ESP_OK;} + nvs_close(h); +} +static void control_probe_start_xz(void){ + configASSERT(control_home()); + input_event_t key={BSP_BTN_UP,BSP_BTN_LONG};process_input(&key); + configASSERT(navigation.page==BADGE_AI_CHAT&&demo_xiaozhi_active()); +} +static uint32_t control_probe_call(const char *name,const char *args,bool send){ + char text[320];snprintf(text,sizeof(text),"{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools/call\",\"params\":{\"name\":\"%s\",\"arguments\":%s}}",name,args); + cJSON *q=cJSON_Parse(text);uint32_t ticket=0;cJSON *r=xz_tools_handle(q,40,true,&ticket); + configASSERT(r&&!cJSON_HasObjectItem(r,"error")&&!cJSON_IsTrue(cJSON_GetObjectItemCaseSensitive(cJSON_GetObjectItemCaseSensitive(r,"result"),"isError"))); + cJSON_Delete(q);cJSON_Delete(r);badge_control_commit(ticket,send);return ticket; +} +static void control_probe_tick(void){ + static unsigned stage,original_badge,original_brightness,target_badge,clip;static bool has_qr,original_wake; + static unsigned original_volume;static bool saw_sleep;static int64_t next=12000000; + static unsigned homes_before; + if(stage>41||esp_timer_get_time()0);ESP_LOGI("control_probe","REMINDER_SLEEP_WAKE_PASS");reminder_closing=true;break; + case 30:if(reminder.ringing){stage--;break;}control_probe_start_xz();break; + case 31:configASSERT(demo_xiaozhi_probe_volume()==original_volume);configASSERT(control_home());probe_radio_settings(true);break; + case 32:configASSERT(!reminder.deadline&&!reminder.ringing);break; + case 33: + configASSERT(navigation.page==BADGE_HOME&&navigation.active_badge==original_badge&&navigation.brightness==original_brightness); + control_probe_start_xz();break; + case 34: + homes_before=badge_ui_probe_home_count();control_probe_fail_prepare=true; + control_probe_call("self.apps.open","{\"app\":\"voice-keychain\"}",true);break; + case 35: + configASSERT(navigation.page==BADGE_AI_CHAT&&demo_xiaozhi_active()); + configASSERT(badge_ui_probe_home_count()==homes_before); + ESP_LOGI("control_probe","PREPARE_FAILURE_RESTORES_CHAT_PASS"); + control_probe_fail_start=true;control_probe_call("self.apps.open","{\"app\":\"voice-keychain\"}",true);break; + case 36: + configASSERT(navigation.page==BADGE_HOME&&!demo_xiaozhi_active()); + ESP_LOGI("control_probe","APP_FAILURE_RETURNS_HOME_PASS");control_probe_start_xz();break; + case 37:control_probe_call("self.audio.play_random","{}",true);break; + case 38: + configASSERT(navigation.page==BADGE_PLAYING&&!strcmp(BADGE_GAMES_REGISTRY[navigation.game_selected].id,"voice-keychain")); + ESP_LOGI("control_probe","RANDOM_AUDIO_DIRECT_PASS");control_probe_start_xz();break; + case 39:control_probe_call("self.apps.open","{\"app\":\"voice-keychain\"}",true);break; + case 40: + configASSERT(navigation.page==BADGE_PLAYING&&!strcmp(BADGE_GAMES_REGISTRY[navigation.game_selected].id,"voice-keychain")); + configASSERT(control_home());break; + case 41: + configASSERT(navigation.page==BADGE_HOME&&navigation.active_badge==original_badge&&navigation.brightness==original_brightness); + configASSERT(xz_wake_enable(original_wake)==ESP_OK); + ESP_LOGI("control_probe","ALL_PASS restored=1 heap=%lu stack=%u",(unsigned long)esp_get_free_heap_size(),(unsigned)uxTaskGetStackHighWaterMark(NULL));break; + } + stage++; +} diff --git a/tests/demo_stubs/bsp_audio.h b/tests/demo_stubs/bsp_audio.h deleted file mode 100644 index f4f5606..0000000 --- a/tests/demo_stubs/bsp_audio.h +++ /dev/null @@ -1 +0,0 @@ -#include "demo_test_stubs.h" diff --git a/tests/demo_stubs/bsp_battery.h b/tests/demo_stubs/bsp_battery.h deleted file mode 100644 index f4f5606..0000000 --- a/tests/demo_stubs/bsp_battery.h +++ /dev/null @@ -1 +0,0 @@ -#include "demo_test_stubs.h" diff --git a/tests/demo_stubs/bsp_button.h b/tests/demo_stubs/bsp_button.h deleted file mode 100644 index f4f5606..0000000 --- a/tests/demo_stubs/bsp_button.h +++ /dev/null @@ -1 +0,0 @@ -#include "demo_test_stubs.h" diff --git a/tests/demo_stubs/bsp_display.h b/tests/demo_stubs/bsp_display.h deleted file mode 100644 index f4f5606..0000000 --- a/tests/demo_stubs/bsp_display.h +++ /dev/null @@ -1 +0,0 @@ -#include "demo_test_stubs.h" diff --git a/tests/demo_stubs/bsp_i2c.h b/tests/demo_stubs/bsp_i2c.h deleted file mode 100644 index f4f5606..0000000 --- a/tests/demo_stubs/bsp_i2c.h +++ /dev/null @@ -1 +0,0 @@ -#include "demo_test_stubs.h" diff --git a/tests/demo_stubs/demo_runtime.c b/tests/demo_stubs/demo_runtime.c deleted file mode 100644 index c7306fc..0000000 --- a/tests/demo_stubs/demo_runtime.c +++ /dev/null @@ -1,164 +0,0 @@ -// Deterministic RTOS boundary: workers execute until they park at vTaskSuspend. -// Tests control acknowledgement timing; notifying or deleting stale handles fails. -#include "demo_test_stubs.h" -#include -#include -#include -#include - -struct test_task { TaskFunction_t entry; void *arg; bool deleted; uint32_t notification; }; -struct test_sem { bool available; bool deleted; }; -struct test_task test_tasks[16]; -struct test_sem test_sems[16]; -unsigned test_task_count, test_sem_count, test_task_deletes, test_notifications; -bool test_create_fails, test_sem_fails, test_auto_ack; -TaskHandle_t test_current_task, test_latest_task; -jmp_buf test_worker_park; -char test_status[160]; -unsigned test_read_calls, test_write_calls, test_read_fail_at, test_write_fail_at; -void (*test_read_hook)(void); -struct test_ble_hs_cfg ble_hs_cfg; -int test_nimble_deinit_result, test_nimble_stop_result, test_nimble_name_result; -unsigned test_nimble_deinits, test_nimble_stops; -const lv_font_t lv_font_montserrat_14 = { 0 }; - -void test_log(const char *tag, const char *format, ...) { (void)tag; (void)format; } -const char *esp_err_to_name(esp_err_t error) { (void)error; return "test error"; } -bool bsp_lvgl_lock(int timeout) { (void)timeout; return true; } -void bsp_lvgl_unlock(void) {} -void lv_label_set_text(lv_obj_t *object, const char *text) { - (void)object; - snprintf(test_status, sizeof(test_status), "%s", text); -} -void bsp_display_backlight(uint8_t percent) { (void)percent; } -void ui_pixel_mascot_jump(lv_obj_t *mascot) { (void)mascot; } -void ui_pixel_set_selected(lv_obj_t *panel, bool selected, bool enabled) { - (void)panel; (void)selected; (void)enabled; -} -esp_err_t esp_sleep_disable_wakeup_source(int source) { (void)source; return ESP_OK; } -esp_err_t esp_sleep_enable_timer_wakeup(uint64_t us) { (void)us; return ESP_OK; } -esp_err_t esp_light_sleep_start(void) { return ESP_OK; } -void esp_deep_sleep_start(void) { assert(!"unexpected deep sleep in host test"); } -void esp_restart(void) { assert(!"unexpected restart in host test"); } -int64_t esp_timer_get_time(void) { return 0; } -esp_err_t bsp_audio_sleep(void) { return ESP_OK; } -esp_err_t bsp_audio_wake(void) { return ESP_OK; } -esp_err_t bsp_audio_prepare_deep_sleep(void) { return ESP_OK; } -esp_err_t bsp_battery_sleep(void) { return ESP_OK; } -esp_err_t bsp_i2c_prepare_deep_sleep(void) { return ESP_OK; } -esp_err_t bsp_display_prepare_deep_sleep(void) { return ESP_OK; } -esp_err_t bsp_audio_set_format(uint32_t hz, uint8_t bits, uint8_t channels) { - (void)hz; (void)bits; (void)channels; return ESP_OK; -} -void bsp_audio_set_volume(uint8_t percent) { (void)percent; } -esp_err_t bsp_audio_read(void *pcm, size_t bytes) { - test_read_calls++; - if (test_read_hook) test_read_hook(); - if (test_read_calls == test_read_fail_at) return ESP_FAIL; - memset(pcm, 0, bytes); - return ESP_OK; -} -esp_err_t bsp_audio_write(const void *pcm, size_t bytes) { - (void)pcm; (void)bytes; - return ++test_write_calls == test_write_fail_at ? ESP_FAIL : ESP_OK; -} - -BaseType_t xTaskCreate(TaskFunction_t entry, const char *name, unsigned stack, - void *arg, unsigned priority, TaskHandle_t *task) { - (void)name; (void)stack; (void)priority; - if (test_create_fails) return pdFALSE; - assert(test_task_count < 16); - *task = &test_tasks[test_task_count++]; - **task = (struct test_task){ .entry = entry, .arg = arg }; - test_latest_task = *task; - return pdPASS; -} -BaseType_t xTaskCreatePinnedToCore(TaskFunction_t entry, const char *name, - unsigned stack, void *arg, unsigned priority, - TaskHandle_t *task, int core) { - (void)core; - return xTaskCreate(entry, name, stack, arg, priority, task); -} -BaseType_t xTaskNotify(TaskHandle_t task, uint32_t value, int action) { - (void)action; - assert(task && !task->deleted); - task->notification = value; - test_notifications++; - return pdTRUE; -} -BaseType_t xTaskNotifyWait(uint32_t clear_entry, uint32_t clear_exit, - uint32_t *value, TickType_t ticks) { - (void)clear_entry; (void)clear_exit; (void)ticks; - assert(test_current_task && test_current_task->notification); - *value = test_current_task->notification; - test_current_task->notification = 0; - return pdTRUE; -} -void test_run_worker(TaskHandle_t task) { - assert(task && !task->deleted); - test_current_task = task; - if (setjmp(test_worker_park) == 0) { - task->entry(task->arg); - assert(!"worker unexpectedly returned"); - } - test_current_task = NULL; -} -void vTaskSuspend(TaskHandle_t task) { - assert(task == NULL && test_current_task); - longjmp(test_worker_park, 1); -} -void vTaskDelete(TaskHandle_t task) { - // Workers must not delete themselves; only the owner may reap an acked task. - assert(task && !task->deleted && !test_current_task); - task->deleted = true; - test_task_deletes++; -} -void vTaskDelay(TickType_t ticks) { (void)ticks; } -SemaphoreHandle_t xSemaphoreCreateBinary(void) { - if (test_sem_fails) return NULL; - assert(test_sem_count < 16); - SemaphoreHandle_t sem = &test_sems[test_sem_count++]; - *sem = (struct test_sem){ 0 }; - return sem; -} -BaseType_t xSemaphoreGive(SemaphoreHandle_t sem) { - assert(sem && !sem->deleted); - sem->available = true; - return pdTRUE; -} -BaseType_t xSemaphoreTake(SemaphoreHandle_t sem, TickType_t ticks) { - (void)ticks; - assert(sem && !sem->deleted); - if (!sem->available && test_auto_ack) test_run_worker(test_latest_task); - if (!sem->available) return pdFALSE; - sem->available = false; - return pdTRUE; -} -void vSemaphoreDelete(SemaphoreHandle_t sem) { - assert(sem && !sem->deleted); - sem->deleted = true; -} - -esp_err_t demo_radio_nvs_prepare(void) { return ESP_OK; } -esp_err_t demo_radio_network_prepare(void) { return ESP_OK; } -esp_err_t nimble_port_init(void) { return ESP_OK; } -esp_err_t nimble_port_deinit(void) { - test_nimble_deinits++; - assert(!test_current_task); - return test_nimble_deinit_result; -} -int nimble_port_stop(void) { test_nimble_stops++; return test_nimble_stop_result; } -void nimble_port_run(void) {} -void ble_svc_gap_init(void) {} -void ble_svc_gatt_init(void) {} -int ble_svc_gap_device_name_set(const char *name) { (void)name; return test_nimble_name_result; } -int ble_hs_util_ensure_addr(int privacy) { (void)privacy; return 0; } -int ble_hs_id_infer_auto(int privacy, uint8_t *type) { (void)privacy; *type = 0; return 0; } -int ble_gap_adv_set_fields(const struct ble_hs_adv_fields *fields) { (void)fields; return 0; } -int ble_gap_adv_start(uint8_t address_type, const void *address, int duration, - const struct ble_gap_adv_params *params, - int (*callback)(struct ble_gap_event *, void *), void *arg) { - (void)address_type; (void)address; (void)duration; (void)params; (void)callback; (void)arg; - return 0; -} -int ble_gap_adv_stop(void) { return 0; } diff --git a/tests/demo_stubs/demo_test_stubs.h b/tests/demo_stubs/demo_test_stubs.h deleted file mode 100644 index 6ebf62b..0000000 --- a/tests/demo_stubs/demo_test_stubs.h +++ /dev/null @@ -1,163 +0,0 @@ -#pragma once - -// Minimal typed platform boundary for executing the actual demo C lifecycle code. -#include -#include -#include - -typedef int esp_err_t; -#define ESP_OK 0 -#define ESP_FAIL -1 -#define ESP_ERR_NO_MEM 0x101 -#define ESP_ERR_INVALID_STATE 0x103 -#define ESP_ERR_TIMEOUT 0x107 -const char *esp_err_to_name(esp_err_t error); -void test_log(const char *tag, const char *format, ...); -#define ESP_LOGE(...) test_log(__VA_ARGS__) -#define ESP_LOGW(...) test_log(__VA_ARGS__) -#define ESP_LOGI(...) test_log(__VA_ARGS__) - -typedef int BaseType_t; -typedef unsigned TickType_t; -typedef struct test_task *TaskHandle_t; -typedef struct test_sem *SemaphoreHandle_t; -typedef void (*TaskFunction_t)(void *); -#define pdTRUE 1 -#define pdPASS 1 -#define pdFALSE 0 -#define portMAX_DELAY UINT32_MAX -#define pdMS_TO_TICKS(ms) (ms) -#define configMAX_PRIORITIES 25 -#define NIMBLE_HS_STACK_SIZE 4096 -#define NIMBLE_CORE 0 -#define eSetValueWithOverwrite 1 -BaseType_t xTaskCreate(TaskFunction_t entry, const char *name, unsigned stack, - void *arg, unsigned priority, TaskHandle_t *task); -BaseType_t xTaskCreatePinnedToCore(TaskFunction_t entry, const char *name, - unsigned stack, void *arg, unsigned priority, - TaskHandle_t *task, int core); -BaseType_t xTaskNotify(TaskHandle_t task, uint32_t value, int action); -BaseType_t xTaskNotifyWait(uint32_t clear_entry, uint32_t clear_exit, - uint32_t *value, TickType_t ticks); -void vTaskSuspend(TaskHandle_t task); -void vTaskDelete(TaskHandle_t task); -void vTaskDelay(TickType_t ticks); -SemaphoreHandle_t xSemaphoreCreateBinary(void); -BaseType_t xSemaphoreGive(SemaphoreHandle_t sem); -BaseType_t xSemaphoreTake(SemaphoreHandle_t sem, TickType_t ticks); -void vSemaphoreDelete(SemaphoreHandle_t sem); - -typedef enum { BSP_BTN_UP, BSP_BTN_DOWN, BSP_BTN_OK } bsp_btn_t; -typedef enum { BSP_BTN_PRESS, BSP_BTN_CLICK, BSP_BTN_DOUBLE, BSP_BTN_LONG } bsp_btn_ev_t; -esp_err_t bsp_audio_set_format(uint32_t hz, uint8_t bits, uint8_t channels); -void bsp_audio_set_volume(uint8_t percent); -esp_err_t bsp_audio_read(void *pcm, size_t bytes); -esp_err_t bsp_audio_write(const void *pcm, size_t bytes); -esp_err_t bsp_audio_sleep(void); -esp_err_t bsp_audio_wake(void); -esp_err_t bsp_audio_prepare_deep_sleep(void); -esp_err_t bsp_battery_sleep(void); -esp_err_t bsp_i2c_prepare_deep_sleep(void); -esp_err_t bsp_display_prepare_deep_sleep(void); -void bsp_display_backlight(uint8_t percent); -bool bsp_lvgl_lock(int timeout); -void bsp_lvgl_unlock(void); - -#define RTC_DATA_ATTR -#define ESP_SLEEP_WAKEUP_TIMER 4 -esp_err_t esp_sleep_enable_timer_wakeup(uint64_t us); -esp_err_t esp_sleep_disable_wakeup_source(int source); -esp_err_t esp_light_sleep_start(void); -int esp_sleep_get_wakeup_cause(void); -void esp_deep_sleep_start(void); -void esp_restart(void); -int64_t esp_timer_get_time(void); - -typedef struct { int unused; } lv_obj_t; -typedef struct { int unused; } lv_timer_t; -typedef struct { int unused; } lv_font_t; -extern const lv_font_t lv_font_montserrat_14; -#define LV_RADIUS_CIRCLE 1000 -#define LV_TEXT_ALIGN_CENTER 0 -#define LV_LABEL_LONG_WRAP 0 -#define LV_ALIGN_BOTTOM_MID 0 -#define LV_ALIGN_TOP_MID 1 -#define LV_ALIGN_TOP_LEFT 2 -uint32_t lv_color_hex(uint32_t color); -lv_obj_t *lv_obj_create(lv_obj_t *parent); -lv_obj_t *lv_label_create(lv_obj_t *parent); -void lv_obj_set_size(lv_obj_t *object, int width, int height); -void lv_obj_set_width(lv_obj_t *object, int width); -void lv_obj_set_style_radius(lv_obj_t *object, int radius, int selector); -void lv_obj_set_style_bg_color(lv_obj_t *object, uint32_t color, int selector); -void lv_obj_set_style_border_width(lv_obj_t *object, int width, int selector); -void lv_obj_set_style_text_color(lv_obj_t *object, uint32_t color, int selector); -void lv_obj_set_style_text_align(lv_obj_t *object, int align, int selector); -void lv_obj_set_style_text_font(lv_obj_t *object, const lv_font_t *font, int selector); -void lv_obj_center(lv_obj_t *object); -void lv_obj_align(lv_obj_t *object, int align, int x, int y); -void lv_obj_delete(lv_obj_t *object); -void lv_label_set_text(lv_obj_t *object, const char *text); -void lv_label_set_text_fmt(lv_obj_t *object, const char *format, ...); -void lv_label_set_long_mode(lv_obj_t *object, int mode); -void lv_screen_load(lv_obj_t *screen); -lv_timer_t *lv_timer_create(void (*callback)(lv_timer_t *), unsigned period, void *data); -void lv_timer_delete(lv_timer_t *timer); - -typedef struct { int unused; } esp_netif_t; -typedef struct { int unused; } esp_netif_config_t; -#define ESP_NETIF_DEFAULT_WIFI_STA() { 0 } -typedef const char *esp_event_base_t; -typedef void *esp_event_handler_instance_t; -#define WIFI_EVENT "wifi" -#define WIFI_EVENT_SCAN_DONE 1 -#define WIFI_STORAGE_RAM 0 -#define WIFI_MODE_STA 0 -typedef struct { int unused; } wifi_init_config_t; -#define WIFI_INIT_CONFIG_DEFAULT() { 0 } -typedef struct { int rssi; uint8_t ssid[33]; uint8_t primary; } wifi_ap_record_t; -esp_netif_t *esp_netif_new(const esp_netif_config_t *cfg); -esp_err_t esp_netif_attach_wifi_station(esp_netif_t *netif); -esp_err_t esp_wifi_set_default_wifi_sta_handlers(void); -void esp_netif_destroy_default_wifi(void *netif); -esp_err_t esp_wifi_init(const wifi_init_config_t *cfg); -esp_err_t esp_wifi_deinit(void); -esp_err_t esp_wifi_set_storage(int storage); -esp_err_t esp_wifi_set_mode(int mode); -esp_err_t esp_wifi_start(void); -esp_err_t esp_wifi_stop(void); -esp_err_t esp_wifi_scan_start(const void *cfg, bool blocking); -esp_err_t esp_wifi_scan_stop(void); -esp_err_t esp_wifi_scan_get_ap_num(uint16_t *count); -esp_err_t esp_wifi_scan_get_ap_records(uint16_t *count, wifi_ap_record_t *records); -esp_err_t esp_event_handler_instance_register(esp_event_base_t base, int32_t id, - void (*callback)(void *, esp_event_base_t, int32_t, void *), void *arg, - esp_event_handler_instance_t *instance); -esp_err_t esp_event_handler_instance_unregister(esp_event_base_t base, int32_t id, - esp_event_handler_instance_t instance); - -struct ble_gap_event { int type; }; -struct ble_hs_adv_fields { int flags; const uint8_t *name; size_t name_len; int name_is_complete; }; -struct ble_gap_adv_params { int conn_mode; int disc_mode; }; -struct test_ble_hs_cfg { void (*reset_cb)(int); void (*sync_cb)(void); }; -extern struct test_ble_hs_cfg ble_hs_cfg; -#define BLE_HS_ADV_F_DISC_GEN 1 -#define BLE_HS_ADV_F_BREDR_UNSUP 2 -#define BLE_GAP_CONN_MODE_NON 0 -#define BLE_GAP_DISC_MODE_GEN 0 -#define BLE_HS_FOREVER -1 -#define BLE_GAP_EVENT_ADV_COMPLETE 1 -int ble_gap_adv_set_fields(const struct ble_hs_adv_fields *fields); -int ble_gap_adv_start(uint8_t address_type, const void *address, int duration, - const struct ble_gap_adv_params *params, - int (*callback)(struct ble_gap_event *, void *), void *arg); -int ble_gap_adv_stop(void); -int ble_hs_util_ensure_addr(int privacy); -int ble_hs_id_infer_auto(int privacy, uint8_t *type); -void ble_svc_gap_init(void); -void ble_svc_gatt_init(void); -int ble_svc_gap_device_name_set(const char *name); -esp_err_t nimble_port_init(void); -esp_err_t nimble_port_deinit(void); -int nimble_port_stop(void); -void nimble_port_run(void); diff --git a/tests/demo_stubs/esp_attr.h b/tests/demo_stubs/esp_attr.h deleted file mode 100644 index f4f5606..0000000 --- a/tests/demo_stubs/esp_attr.h +++ /dev/null @@ -1 +0,0 @@ -#include "demo_test_stubs.h" diff --git a/tests/demo_stubs/esp_err.h b/tests/demo_stubs/esp_err.h deleted file mode 100644 index f4f5606..0000000 --- a/tests/demo_stubs/esp_err.h +++ /dev/null @@ -1 +0,0 @@ -#include "demo_test_stubs.h" diff --git a/tests/demo_stubs/esp_event.h b/tests/demo_stubs/esp_event.h deleted file mode 100644 index f4f5606..0000000 --- a/tests/demo_stubs/esp_event.h +++ /dev/null @@ -1 +0,0 @@ -#include "demo_test_stubs.h" diff --git a/tests/demo_stubs/esp_log.h b/tests/demo_stubs/esp_log.h deleted file mode 100644 index f4f5606..0000000 --- a/tests/demo_stubs/esp_log.h +++ /dev/null @@ -1 +0,0 @@ -#include "demo_test_stubs.h" diff --git a/tests/demo_stubs/esp_netif.h b/tests/demo_stubs/esp_netif.h deleted file mode 100644 index f4f5606..0000000 --- a/tests/demo_stubs/esp_netif.h +++ /dev/null @@ -1 +0,0 @@ -#include "demo_test_stubs.h" diff --git a/tests/demo_stubs/esp_sleep.h b/tests/demo_stubs/esp_sleep.h deleted file mode 100644 index f4f5606..0000000 --- a/tests/demo_stubs/esp_sleep.h +++ /dev/null @@ -1 +0,0 @@ -#include "demo_test_stubs.h" diff --git a/tests/demo_stubs/esp_system.h b/tests/demo_stubs/esp_system.h deleted file mode 100644 index f4f5606..0000000 --- a/tests/demo_stubs/esp_system.h +++ /dev/null @@ -1 +0,0 @@ -#include "demo_test_stubs.h" diff --git a/tests/demo_stubs/esp_timer.h b/tests/demo_stubs/esp_timer.h deleted file mode 100644 index f4f5606..0000000 --- a/tests/demo_stubs/esp_timer.h +++ /dev/null @@ -1 +0,0 @@ -#include "demo_test_stubs.h" diff --git a/tests/demo_stubs/esp_wifi.h b/tests/demo_stubs/esp_wifi.h deleted file mode 100644 index f4f5606..0000000 --- a/tests/demo_stubs/esp_wifi.h +++ /dev/null @@ -1 +0,0 @@ -#include "demo_test_stubs.h" diff --git a/tests/demo_stubs/esp_wifi_default.h b/tests/demo_stubs/esp_wifi_default.h deleted file mode 100644 index f4f5606..0000000 --- a/tests/demo_stubs/esp_wifi_default.h +++ /dev/null @@ -1 +0,0 @@ -#include "demo_test_stubs.h" diff --git a/tests/demo_stubs/freertos/FreeRTOS.h b/tests/demo_stubs/freertos/FreeRTOS.h deleted file mode 100644 index f4f5606..0000000 --- a/tests/demo_stubs/freertos/FreeRTOS.h +++ /dev/null @@ -1 +0,0 @@ -#include "demo_test_stubs.h" diff --git a/tests/demo_stubs/freertos/semphr.h b/tests/demo_stubs/freertos/semphr.h deleted file mode 100644 index f4f5606..0000000 --- a/tests/demo_stubs/freertos/semphr.h +++ /dev/null @@ -1 +0,0 @@ -#include "demo_test_stubs.h" diff --git a/tests/demo_stubs/freertos/task.h b/tests/demo_stubs/freertos/task.h deleted file mode 100644 index f4f5606..0000000 --- a/tests/demo_stubs/freertos/task.h +++ /dev/null @@ -1 +0,0 @@ -#include "demo_test_stubs.h" diff --git a/tests/demo_stubs/host/ble_gap.h b/tests/demo_stubs/host/ble_gap.h deleted file mode 100644 index f4f5606..0000000 --- a/tests/demo_stubs/host/ble_gap.h +++ /dev/null @@ -1 +0,0 @@ -#include "demo_test_stubs.h" diff --git a/tests/demo_stubs/host/ble_hs.h b/tests/demo_stubs/host/ble_hs.h deleted file mode 100644 index f4f5606..0000000 --- a/tests/demo_stubs/host/ble_hs.h +++ /dev/null @@ -1 +0,0 @@ -#include "demo_test_stubs.h" diff --git a/tests/demo_stubs/host/util/util.h b/tests/demo_stubs/host/util/util.h deleted file mode 100644 index f4f5606..0000000 --- a/tests/demo_stubs/host/util/util.h +++ /dev/null @@ -1 +0,0 @@ -#include "demo_test_stubs.h" diff --git a/tests/demo_stubs/lvgl.h b/tests/demo_stubs/lvgl.h deleted file mode 100644 index f4f5606..0000000 --- a/tests/demo_stubs/lvgl.h +++ /dev/null @@ -1 +0,0 @@ -#include "demo_test_stubs.h" diff --git a/tests/demo_stubs/nimble/nimble_port.h b/tests/demo_stubs/nimble/nimble_port.h deleted file mode 100644 index f4f5606..0000000 --- a/tests/demo_stubs/nimble/nimble_port.h +++ /dev/null @@ -1 +0,0 @@ -#include "demo_test_stubs.h" diff --git a/tests/demo_stubs/services/gap/ble_svc_gap.h b/tests/demo_stubs/services/gap/ble_svc_gap.h deleted file mode 100644 index f4f5606..0000000 --- a/tests/demo_stubs/services/gap/ble_svc_gap.h +++ /dev/null @@ -1 +0,0 @@ -#include "demo_test_stubs.h" diff --git a/tests/demo_stubs/services/gatt/ble_svc_gatt.h b/tests/demo_stubs/services/gatt/ble_svc_gatt.h deleted file mode 100644 index f4f5606..0000000 --- a/tests/demo_stubs/services/gatt/ble_svc_gatt.h +++ /dev/null @@ -1 +0,0 @@ -#include "demo_test_stubs.h" diff --git a/tests/power_stubs/bsp_audio.h b/tests/power_stubs/bsp_audio.h new file mode 100644 index 0000000..eedaf79 --- /dev/null +++ b/tests/power_stubs/bsp_audio.h @@ -0,0 +1,8 @@ +#pragma once +#include "esp_err.h" +#include +bool bsp_audio_is_sleeping(void); +esp_err_t bsp_audio_sleep(void); +esp_err_t bsp_audio_wake(void); + +bool bsp_audio_needs_wake(void); diff --git a/tests/power_stubs/bsp_display.h b/tests/power_stubs/bsp_display.h new file mode 100644 index 0000000..452d868 --- /dev/null +++ b/tests/power_stubs/bsp_display.h @@ -0,0 +1,8 @@ +#pragma once +#include "esp_err.h" +#include +esp_err_t bsp_display_suspend(void); +esp_err_t bsp_display_resume(void); +uint8_t bsp_display_brightness(void); + +bool bsp_display_is_suspended(void); diff --git a/tests/power_stubs/cJSON.h b/tests/power_stubs/cJSON.h new file mode 100644 index 0000000..577bd5d --- /dev/null +++ b/tests/power_stubs/cJSON.h @@ -0,0 +1,2 @@ +#pragma once +typedef struct cJSON cJSON; diff --git a/tests/power_stubs/esp_err.h b/tests/power_stubs/esp_err.h new file mode 100644 index 0000000..aea658b --- /dev/null +++ b/tests/power_stubs/esp_err.h @@ -0,0 +1,7 @@ +#pragma once +typedef int esp_err_t; +#define ESP_OK 0 +#define ESP_FAIL -1 +static inline const char *esp_err_to_name(esp_err_t e){return e?"FAIL":"OK";} + +#define ESP_ERR_NO_MEM 0x101 diff --git a/tests/power_stubs/esp_log.h b/tests/power_stubs/esp_log.h new file mode 100644 index 0000000..8a4e116 --- /dev/null +++ b/tests/power_stubs/esp_log.h @@ -0,0 +1,3 @@ +#pragma once +#define ESP_LOGI(tag,...) ((void)(tag)) +#define ESP_LOGW(tag,...) ((void)(tag)) diff --git a/tests/power_stubs/esp_pm.h b/tests/power_stubs/esp_pm.h new file mode 100644 index 0000000..c069c6c --- /dev/null +++ b/tests/power_stubs/esp_pm.h @@ -0,0 +1,13 @@ +#pragma once +#include "esp_err.h" +#include +#include +typedef int *esp_pm_lock_handle_t; +typedef struct {int max_freq_mhz,min_freq_mhz;bool light_sleep_enable;} esp_pm_config_t; +#define ESP_PM_CPU_FREQ_MAX 1 +#define ESP_PM_NO_LIGHT_SLEEP 2 +esp_err_t esp_pm_lock_create(int type,int arg,const char *name,esp_pm_lock_handle_t *lock); +void esp_pm_lock_delete(esp_pm_lock_handle_t lock); +void esp_pm_lock_acquire(esp_pm_lock_handle_t lock); +void esp_pm_lock_release(esp_pm_lock_handle_t lock); +esp_err_t esp_pm_configure(const esp_pm_config_t *config); diff --git a/tests/power_stubs/esp_timer.h b/tests/power_stubs/esp_timer.h new file mode 100644 index 0000000..0416e2b --- /dev/null +++ b/tests/power_stubs/esp_timer.h @@ -0,0 +1,3 @@ +#pragma once +#include +int64_t esp_timer_get_time(void); diff --git a/tests/power_stubs/freertos/FreeRTOS.h b/tests/power_stubs/freertos/FreeRTOS.h new file mode 100644 index 0000000..ffa3590 --- /dev/null +++ b/tests/power_stubs/freertos/FreeRTOS.h @@ -0,0 +1,4 @@ +#pragma once +#include +#define pdTRUE 1 +#define portMAX_DELAY 0xffffffffu diff --git a/tests/power_stubs/freertos/semphr.h b/tests/power_stubs/freertos/semphr.h new file mode 100644 index 0000000..8b95648 --- /dev/null +++ b/tests/power_stubs/freertos/semphr.h @@ -0,0 +1,5 @@ +#pragma once +typedef int *SemaphoreHandle_t; +SemaphoreHandle_t xSemaphoreCreateMutex(void); +int xSemaphoreTake(SemaphoreHandle_t,unsigned); +void xSemaphoreGive(SemaphoreHandle_t); diff --git a/tests/profile_stubs/esp_err.h b/tests/profile_stubs/esp_err.h new file mode 100644 index 0000000..ca07854 --- /dev/null +++ b/tests/profile_stubs/esp_err.h @@ -0,0 +1,11 @@ +#pragma once +#include +typedef int esp_err_t; +#define ESP_OK 0 +#define ESP_ERR_NOT_FOUND 1 +#define ESP_ERR_INVALID_ARG 2 +#define ESP_ERR_INVALID_STATE 3 +#define ESP_ERR_INVALID_SIZE 4 +#define ESP_ERR_INVALID_CRC 5 +#define ESP_FAIL 6 +#define ESP_ERR_NO_MEM 7 diff --git a/tests/profile_stubs/esp_partition.h b/tests/profile_stubs/esp_partition.h new file mode 100644 index 0000000..d9ed855 --- /dev/null +++ b/tests/profile_stubs/esp_partition.h @@ -0,0 +1,12 @@ +#pragma once +#include "esp_err.h" +#include +typedef struct {size_t size;} esp_partition_t; +typedef unsigned esp_partition_mmap_handle_t; +#define ESP_PARTITION_TYPE_DATA 1 +#define ESP_PARTITION_SUBTYPE_ANY 255 +#define ESP_PARTITION_MMAP_DATA 0 +const esp_partition_t *esp_partition_find_first(int,int,const char *); +esp_err_t esp_partition_mmap(const esp_partition_t *,size_t,size_t,int,const void **,esp_partition_mmap_handle_t *); +esp_err_t esp_partition_write(const esp_partition_t *,size_t,const void *,size_t); +esp_err_t esp_partition_erase_range(const esp_partition_t *,size_t,size_t); diff --git a/tests/radio_device_probe.h b/tests/radio_device_probe.h new file mode 100644 index 0000000..13a5579 --- /dev/null +++ b/tests/radio_device_probe.h @@ -0,0 +1,48 @@ +/* Opt-in bench probe. Never enabled in distributed firmware. */ +#include "radio_app.h" +static void radio_probe_send(bsp_btn_t button,bsp_btn_ev_t event){input_event_t e={button,event};configASSERT(xQueueSend(input_queue,&e,pdMS_TO_TICKS(1000))==pdTRUE);} +static void radio_probe_key(bsp_btn_t button,bsp_btn_ev_t event){radio_probe_send(button,event);vTaskDelay(pdMS_TO_TICKS(650));} +static void radio_probe_home(void){radio_probe_key(BSP_BTN_OK,BSP_BTN_LONG);radio_probe_key(BSP_BTN_DOWN,BSP_BTN_CLICK);radio_probe_key(BSP_BTN_OK,BSP_BTN_CLICK);vTaskDelay(pdMS_TO_TICKS(9000));} +static radio_probe_state_t radio_probe_state(void){radio_probe_state_t s;configASSERT(demo_radio_probe_state(&s));return s;} +static unsigned radio_probe_release(bsp_btn_t key,unsigned expected_station,unsigned expected_selected){ + radio_probe_send(key,BSP_BTN_PRESS);vTaskDelay(pdMS_TO_TICKS(30)); + int64_t begin=esp_timer_get_time();radio_probe_send(key,BSP_BTN_RELEASE); + for(unsigned i=0;i<200;i++){radio_probe_state_t s=radio_probe_state();if(s.station==expected_station&&s.selected==expected_selected){unsigned ms=(esp_timer_get_time()-begin)/1000;ESP_LOGI("radio_probe","RELEASE response=%u ms",ms);return ms;}vTaskDelay(pdMS_TO_TICKS(5));} + configASSERT(false);return 1000; +} +static void radio_probe_task(void *arg){ + (void)arg;vTaskDelay(pdMS_TO_TICKS(12000)); + if(!navigation.badge_mask){ESP_LOGW("radio_probe","SKIP: setup incomplete");vTaskDelete(NULL);return;} + radio_probe_key(BSP_BTN_OK,BSP_BTN_CLICK);radio_probe_key(BSP_BTN_OK,BSP_BTN_CLICK); + radio_probe_key(BSP_BTN_DOWN,BSP_BTN_CLICK);radio_probe_key(BSP_BTN_DOWN,BSP_BTN_CLICK);radio_probe_key(BSP_BTN_OK,BSP_BTN_CLICK); + for(unsigned i=0;i<80&&!radio_probe_state().playing;i++)vTaskDelay(pdMS_TO_TICKS(500)); + radio_probe_state_t s=radio_probe_state();ESP_LOGI("radio_probe","BEGIN playing=%d stations=%u",s.playing,s.count);configASSERT(s.count>1); + configASSERT(s.count>=57); + const unsigned saved=s.station; + const unsigned samples[]={7,s.count/2,s.count-1}; + for(unsigned sample=0;sample<3;sample++){ + const unsigned target=samples[sample];demo_radio_probe_select(target); + vTaskDelay(pdMS_TO_TICKS(500)); + for(unsigned i=0;i<60&&!radio_probe_state().playing;i++)vTaskDelay(pdMS_TO_TICKS(500)); + s=radio_probe_state(); + ESP_LOGI("radio_probe","CURATED sample=%u index=%u count=%u playing=%d",sample,s.station,s.count,s.playing); + configASSERT(s.station==target&&s.playing);vTaskDelay(pdMS_TO_TICKS(1500)); + } + demo_radio_probe_select(saved);vTaskDelay(pdMS_TO_TICKS(500));s=radio_probe_state(); + unsigned maximum=0; + for(unsigned i=0;i<8;i++){ + bsp_btn_t key=i%2?BSP_BTN_UP:BSP_BTN_DOWN; + unsigned target=(s.station+s.count+(key==BSP_BTN_UP?-1:1))%s.count; + unsigned ms=radio_probe_release(key,target,s.selected);if(ms>maximum)maximum=ms; + radio_probe_send(key,i%2?BSP_BTN_DOUBLE:BSP_BTN_CLICK);vTaskDelay(pdMS_TO_TICKS(100)); + s=radio_probe_state();configASSERT(s.station==target); + } + radio_probe_send(BSP_BTN_UP,BSP_BTN_PRESS);radio_probe_key(BSP_BTN_UP,BSP_BTN_LONG);radio_probe_key(BSP_BTN_UP,BSP_BTN_RELEASE); + radio_probe_state_t settings=radio_probe_state();configASSERT(settings.page==1&&settings.station==s.station&&settings.selected==0); + for(unsigned i=0;i<6;i++){unsigned selected=(i+1)%3;unsigned ms=radio_probe_release(BSP_BTN_DOWN,s.station,selected);if(ms>maximum)maximum=ms;} + radio_probe_key(BSP_BTN_OK,BSP_BTN_CLICK);configASSERT(radio_probe_state().page==2); + radio_probe_release(BSP_BTN_UP,s.station,0);radio_probe_release(BSP_BTN_DOWN,s.station,0); /* Restore volume. */ + radio_probe_home();ESP_LOGI("radio_probe","MAX_RESPONSE=%u ms free=%lu",maximum,(unsigned long)esp_get_free_heap_size()); + configASSERT(maximum<250); + ESP_LOGI("radio_probe","COMPLETE");vTaskDelete(NULL); +} diff --git a/tests/style_stubs/esp_log.h b/tests/style_stubs/esp_log.h new file mode 100644 index 0000000..bcad59c --- /dev/null +++ b/tests/style_stubs/esp_log.h @@ -0,0 +1,2 @@ +#pragma once +#define ESP_LOGW(...) ((void)0) diff --git a/tests/style_stubs/nvs.h b/tests/style_stubs/nvs.h new file mode 100644 index 0000000..9555c6f --- /dev/null +++ b/tests/style_stubs/nvs.h @@ -0,0 +1,10 @@ +#pragma once +#include +typedef int esp_err_t; +typedef unsigned nvs_handle_t; +enum {ESP_OK=0,NVS_READONLY=0,NVS_READWRITE=1}; +esp_err_t nvs_open(const char *,int,nvs_handle_t *); +esp_err_t nvs_get_u8(nvs_handle_t,const char *,uint8_t *); +esp_err_t nvs_set_u8(nvs_handle_t,const char *,uint8_t); +esp_err_t nvs_commit(nvs_handle_t); +void nvs_close(nvs_handle_t); diff --git a/tests/test_archive_firmware.py b/tests/test_archive_firmware.py deleted file mode 100644 index 9f24ee0..0000000 --- a/tests/test_archive_firmware.py +++ /dev/null @@ -1,413 +0,0 @@ -#!/usr/bin/env python3 -"""Host tests for matching, immutable firmware/debug artifact archives.""" - -from __future__ import annotations - -import contextlib -import hashlib -import io -import json -import struct -import sys -import tempfile -import unittest -from pathlib import Path -from unittest.mock import patch - - -ROOT = Path(__file__).resolve().parents[1] -sys.path.insert(0, str(ROOT / "tools")) -import archive_firmware as ARCHIVE # noqa: E402 - - -class FirmwareArchiveTest(unittest.TestCase): - def setUp(self) -> None: - temporary = tempfile.TemporaryDirectory(prefix="ai-passport-archive-tests-") - self.addCleanup(temporary.cleanup) - self.root = Path(temporary.name).resolve() - self.build = self.root / "build-input" - self.output = self.root / "archives" - self.build.mkdir() - self.app_name = "FoloToy-AI-Passport.bin" - self.elf_name = "FoloToy-AI-Passport.elf" - self.map_name = "FoloToy-AI-Passport.map" - self.full_name = "FoloToy-AI-Passport-full.bin" - self.offsets = { - "bootloader/bootloader.bin": 0, - "partition_table/partition-table.bin": 0x8000, - self.app_name: 0x10000, - } - - elf = bytearray(96) - elf[:7] = b"\x7fELF\x01\x01\x01" - struct.pack_into(" None: - path = self.build / name - path.parent.mkdir(parents=True, exist_ok=True) - path.write_bytes(data) - - def merge(self) -> None: - merged = bytearray(b"\xff" * 0x11000) - for name, offset in self.offsets.items(): - image = (self.build / name).read_bytes() - merged[offset : offset + len(image)] = image - self.write(self.full_name, bytes(merged)) - - def destination(self) -> Path: - digest = hashlib.sha256((self.build / self.full_name).read_bytes()).hexdigest() - return self.output / digest - - def create(self) -> Path: - return ARCHIVE.create_archive(self.build, self.output) - - def symlink(self, link: Path, target: Path, *, directory: bool = False) -> None: - try: - link.symlink_to(target, target_is_directory=directory) - except NotImplementedError: - self.skipTest("This platform does not support symlinks") - except OSError as error: - if getattr(error, "winerror", None) != 1314: - raise - self.skipTest("Windows symlink tests require Developer Mode or elevation") - - def test_round_trip_records_only_real_artifacts_and_descriptor_metadata(self) -> None: - self.write("sdkconfig", b"synthetic private configuration") - self.write("build.log", b"synthetic private log") - directory = self.create() - self.assertEqual(directory, self.destination()) - manifest = ARCHIVE.verify_archive(directory) - self.assertEqual(manifest["schema_version"], 1) - self.assertEqual(manifest["target"], "esp32c3") - self.assertEqual(manifest["flash_size_bytes"], 8 * 1024 * 1024) - self.assertEqual(manifest["image_offsets"], self.offsets) - self.assertEqual(manifest["app_descriptor"]["version"], "fixture-version") - self.assertEqual(manifest["app_descriptor"]["idf_version"], "v5.5.3") - self.assertEqual(manifest["app_descriptor"]["project_name"], "FoloToy-AI-Passport") - self.assertEqual(manifest["app_elf_sha256"], manifest["app_descriptor"]["embedded_elf_sha256"]) - self.assertEqual(set(manifest["files"]), set(ARCHIVE.ARTIFACTS)) - for name in ARCHIVE.ARTIFACTS: - data = (self.build / name).read_bytes() - self.assertEqual((directory / name).read_bytes(), data) - self.assertEqual(manifest["files"][name], { - "sha256": hashlib.sha256(data).hexdigest(), "size": len(data), - }) - self.assertFalse((directory / "sdkconfig").exists()) - self.assertFalse((directory / "build.log").exists()) - - def test_repeat_verifies_without_rewriting_existing_archive(self) -> None: - directory = self.create() - before = {path: (path.stat().st_ino, path.stat().st_mtime_ns) for path in directory.rglob("*")} - self.assertEqual(self.create(), directory) - self.assertEqual(before, {path: (path.stat().st_ino, path.stat().st_mtime_ns) for path in directory.rglob("*")}) - - def test_dedicated_archive_subdirectory_inside_build_is_supported(self) -> None: - directory = ARCHIVE.create_archive(self.build, self.build / "firmware") - ARCHIVE.verify_archive(directory) - - def test_same_firmware_with_different_map_reuses_verified_original_map(self) -> None: - directory = self.create() - original = (directory / self.map_name).read_bytes() - manifest = (directory / "manifest.json").read_bytes() - self.write(self.map_name, b"different map from a different build") - self.assertEqual(self.create(), directory) - self.assertEqual((directory / self.map_name).read_bytes(), original) - self.assertEqual((directory / "manifest.json").read_bytes(), manifest) - ARCHIVE.verify_archive(directory) - - def test_different_flash_args_cannot_replace_same_firmware_archive(self) -> None: - directory = self.create() - original = (self.build / "flash_args").read_bytes() - self.write("flash_args", original.replace(b"80m", b"40m")) - with self.assertRaisesRegex(ValueError, "different build artifacts"): - self.create() - self.assertEqual((directory / "flash_args").read_bytes(), original) - - def test_missing_and_empty_inputs_fail_before_creating_archive(self) -> None: - for name in ARCHIVE.ARTIFACTS: - path = self.build / name - original = path.read_bytes() - for empty in (False, True): - with self.subTest(name=name, empty=empty): - if empty: - path.write_bytes(b"") - else: - path.unlink() - with self.assertRaises((ValueError, OSError)): - self.create() - self.assertFalse(self.output.exists()) - path.write_bytes(original) - - def test_mismatched_elf_is_rejected(self) -> None: - elf = bytearray((self.build / self.elf_name).read_bytes()) - elf[-1] ^= 1 - self.write(self.elf_name, bytes(elf)) - with self.assertRaisesRegex(ValueError, "ELF SHA256 does not match"): - self.create() - self.assertFalse(self.output.exists()) - - def test_invalid_elf_header_is_rejected(self) -> None: - self.write(self.elf_name, b"not an ELF") - with self.assertRaisesRegex(ValueError, "RISC-V ELF"): - self.create() - - def test_invalid_or_truncated_application_descriptor_is_rejected(self) -> None: - original = (self.build / self.app_name).read_bytes() - for offset, value, error in ((32, 0, "magic"), (12, 0, "ESP32-C3"), (28, 0, "truncated")): - with self.subTest(offset=offset): - app = bytearray(original) - struct.pack_into(" None: - self.write("bootloader/bootloader.bin", b"different bootloader") - with self.assertRaisesRegex(ValueError, "differs in merged firmware"): - self.create() - self.assertFalse(self.output.exists()) - - def test_custom_partition_payload_remains_in_full_image_without_separate_copy(self) -> None: - data_offset = 0x20000 - payload = b"synthetic private user partition" - self.write("data.bin", payload) - table = bytearray(b"\xff" * 0xC00) - for index, (kind, subtype, offset, size, label) in enumerate(( - (0, 0, 0x10000, 0x10000, b"factory"), - (1, 0x40, data_offset, 0x1000, b"user_data"), - )): - struct.pack_into( - " None: - original = (self.build / "flash_args").read_bytes() - marker = self.root / "must-not-exist" - for line in ( - "0x1000 ../outside.bin", "0x1000 /outside.bin", "0x1000 C:/outside.bin", - "0x1000 a/../outside.bin", "0x1000 './outside.bin'", "0x1000 'a\\b.bin'", - "0x1000 FoloToy-AI-Passport.bin", "-1 outside.bin", "0x800000 outside.bin", - f"$(touch {marker})", f"0x1000 '$(touch {marker}).bin'", "--flash_size 4MB", - "--unknown value", "--flash_freq '80m;exit'", "0x1000 x.bin; exit 1", - ): - with self.subTest(line=line): - self.write("flash_args", original + line.encode() + b"\n") - with self.assertRaises(ValueError): - self.create() - self.assertFalse(self.output.exists()) - self.assertFalse(marker.exists()) - - def test_archive_rechecks_every_file_digest(self) -> None: - directory = self.create() - for name in ARCHIVE.ARTIFACTS: - with self.subTest(name=name): - path = directory / name - original = path.read_bytes() - path.write_bytes(original + b"tampered") - with self.assertRaises(ValueError): - ARCHIVE.verify_archive(directory) - path.write_bytes(original) - - def test_duplicate_manifest_keys_and_metadata_tampering_fail(self) -> None: - directory = self.create() - path = directory / "manifest.json" - original = path.read_text(encoding="utf-8") - path.write_text('{"schema_version": 1,' + original[1:], encoding="utf-8") - with self.assertRaisesRegex(ValueError, "duplicate manifest key"): - ARCHIVE.verify_archive(directory) - data = json.loads(original) - data["app_descriptor"]["version"] = "invented version" - path.write_text(json.dumps(data), encoding="utf-8") - with self.assertRaisesRegex(ValueError, "manifest does not match"): - ARCHIVE.verify_archive(directory) - - def test_archive_name_must_match_full_image(self) -> None: - directory = self.create() - renamed = directory.with_name("a" * 64) - directory.rename(renamed) - with self.assertRaisesRegex(ValueError, "directory name does not match"): - ARCHIVE.verify_archive(renamed) - - def test_existing_partial_or_unrelated_directories_are_preserved(self) -> None: - directory = self.destination() - directory.mkdir(parents=True) - for unrelated in (None, directory / "keep-me"): - with self.subTest(unrelated=unrelated): - if unrelated: - unrelated.write_bytes(b"unrelated content") - with self.assertRaises(OSError): - self.create() - self.assertTrue(directory.is_dir()) - if unrelated: - self.assertEqual(unrelated.read_bytes(), b"unrelated content") - self.assertFalse((directory / "manifest.json").exists()) - - def test_unexpected_file_in_existing_package_is_rejected_and_preserved(self) -> None: - directory = self.create() - unknown = directory / "unexpected.txt" - unknown.write_bytes(b"unrelated content") - with self.assertRaisesRegex(ValueError, "unexpected archive entry"): - self.create() - self.assertEqual(unknown.read_bytes(), b"unrelated content") - - def test_symlinked_source_file_is_rejected(self) -> None: - original = self.build / self.map_name - saved = self.root / "original.map" - original.rename(saved) - self.symlink(original, saved) - with self.assertRaisesRegex(ValueError, "symlink"): - self.create() - self.assertFalse(self.output.exists()) - - def test_symlinked_source_directory_and_parent_are_rejected(self) -> None: - alias = self.root / "source-alias" - self.symlink(alias, self.build, directory=True) - with self.assertRaisesRegex(ValueError, "symlink"): - ARCHIVE.create_archive(alias, self.output) - bootloader = self.build / "bootloader" - saved = self.root / "original-bootloader" - bootloader.rename(saved) - self.symlink(bootloader, saved, directory=True) - with self.assertRaisesRegex(ValueError, "symlink"): - self.create() - - def test_exact_system_directory_alias_is_resolved_but_nested_links_are_rejected(self) -> None: - alias = self.root / "system-tmp-alias" - self.symlink(alias, self.root, directory=True) - with patch.object(ARCHIVE, "SYSTEM_DIRECTORY_ALIASES", {alias: self.root}): - directory = ARCHIVE.create_archive(alias / self.build.name, alias / self.output.name) - ARCHIVE.verify_archive(directory) - nested_alias = self.build / "nested-symlink" - self.symlink(nested_alias, self.build, directory=True) - with self.assertRaisesRegex(ValueError, "symlink"): - ARCHIVE.safe_path(alias / self.build.name / nested_alias.name) - with patch.object(ARCHIVE, "SYSTEM_DIRECTORY_ALIASES", {alias: self.build}): - with self.assertRaisesRegex(ValueError, "symlink"): - ARCHIVE.safe_path(alias / self.build.name) - - def test_symlinked_archive_root_or_destination_is_rejected(self) -> None: - external = self.root / "external" - external.mkdir() - self.symlink(self.output, external, directory=True) - with self.assertRaisesRegex(ValueError, "symlink"): - self.create() - self.output.unlink() - self.output.mkdir() - self.symlink(self.destination(), external, directory=True) - with self.assertRaisesRegex(ValueError, "symlink"): - self.create() - self.assertEqual(list(external.iterdir()), []) - - def test_symlinked_archive_file_is_rejected_even_when_content_matches(self) -> None: - directory = self.create() - path = directory / self.map_name - path.unlink() - self.symlink(path, self.build / self.map_name) - with self.assertRaisesRegex(ValueError, "symlink"): - ARCHIVE.verify_archive(directory) - - def test_dangerous_archive_roots_and_traversal_are_rejected(self) -> None: - for destination in (Path("/"), Path.home(), ROOT, Path.cwd(), self.build, self.root, - self.root / "missing" / ".." / "output"): - with self.subTest(destination=destination), self.assertRaisesRegex(ValueError, "unsafe"): - ARCHIVE.create_archive(self.build, destination) - - def test_interrupted_copy_does_not_publish_manifest_or_delete_unrelated_file(self) -> None: - original_open = Path.open - destination = self.destination() - unrelated = destination / "keep-me" - - def fail_write(path: Path, mode: str = "r", *args, **kwargs): - if path == destination / self.map_name and mode == "xb": - unrelated.write_bytes(b"another writer's content") - raise OSError("synthetic write failure") - return original_open(path, mode, *args, **kwargs) - - with patch.object(Path, "open", fail_write): - with self.assertRaisesRegex(OSError, "synthetic write failure"): - self.create() - self.assertFalse((self.destination() / "manifest.json").exists()) - self.assertEqual(unrelated.read_bytes(), b"another writer's content") - self.assertEqual(list(self.destination().iterdir()), [unrelated]) - - def test_post_copy_validation_failure_has_no_manifest(self) -> None: - original = ARCHIVE.inspect_build - - def reject_copy(directory: Path): - if directory != self.build: - raise ValueError("synthetic copied artifact mismatch") - return original(directory) - - with patch.object(ARCHIVE, "inspect_build", reject_copy): - with self.assertRaisesRegex(ValueError, "copied artifact mismatch"): - self.create() - self.assertFalse(self.destination().exists()) - - def test_cli_create_verify_and_failed_verification(self) -> None: - self.assertEqual(ARCHIVE.main(["create", str(self.build), "--archive-root", str(self.output)]), 0) - self.assertEqual(ARCHIVE.main(["verify", str(self.destination())]), 0) - (self.destination() / self.map_name).write_bytes(b"tampered") - with contextlib.redirect_stderr(io.StringIO()) as output: - self.assertEqual(ARCHIVE.main(["verify", str(self.destination())]), 1) - self.assertIn("ERROR:", output.getvalue()) - - -if __name__ == "__main__": - unittest.main() diff --git a/tests/test_badge_alarms.c b/tests/test_badge_alarms.c new file mode 100644 index 0000000..0b4230b --- /dev/null +++ b/tests/test_badge_alarms.c @@ -0,0 +1,47 @@ +#include "badge_alarms.h" +#ifdef BADGE_ALARM_SERVICE_TEST +#include "badge_alarm_service.h" +#endif +#include +#include +#include +int main(void){ + int64_t day,due;unsigned minute;char text[20]; + assert(badge_alarm_date("2026-09-17",&day));int64_t now=day*86400+14*3600-28800; + assert(!badge_alarm_date("2026-02-29",&day));assert(badge_alarm_date("2028-02-29",&day)); + assert(!badge_alarm_date("2026-13-01",&day));assert(!badge_alarm_time("24:00",&minute)); + assert(!badge_alarm_schedule(0,10,"","",0,&due,&minute)); + assert(badge_alarm_schedule(now,0,"15:00","",127,&due,&minute)&&due==now+3600&&minute==900); + badge_alarm_format(due,text);assert(!strcmp(text,"2026-09-17 15:00")); + assert(badge_alarm_next(due,900,127)==due+86400); + assert(badge_alarm_next(now,900,1)==due+4*86400); /* Monday */ + assert(!badge_alarm_schedule(now,5,"15:00","",0,&due,&minute)); + assert(!badge_alarm_schedule(now,0,"15:00","2026-09-16",0,&due,&minute)); + assert(!badge_alarm_schedule(now,0,"15:00","2026-09-18",127,&due,&minute)); + badge_alarms_t b;badge_alarms_init(&b);badge_alarm_t a;uint32_t id,other; + assert(badge_alarms_add(&b,now,now+3600,900,127,"daily",&id)); + assert(badge_alarms_add(&b,now,now+3600,900,127,"daily",&other)&&id==other); + assert(!badge_alarms_poll(&b,now,&a));assert(badge_alarms_poll(&b,now+3600,&a)&&a.id==id&&a.pending&&a.due==now+90000); + badge_alarms_t reboot=b;assert(badge_alarms_valid(&reboot));assert(badge_alarms_poll(&reboot,0,&a)&&a.id==id); + assert(badge_alarms_ack(&b,id));assert(!badge_alarms_poll(&b,now+1,&a)); + assert(!badge_alarms_poll(&b,now+10*86400+7200,&a)); /* Skip missed repeat. */ + assert(badge_alarms_add(&b,now,now+10,0,0,"one",&other)); + assert(badge_alarms_poll(&b,now+1000000,&a)&&a.id==other);assert(badge_alarms_ack(&b,other)); + assert(!badge_alarms_cancel(&b,other));assert(!badge_alarms_ack(&b,id)); + assert(badge_alarms_cancel(&b,id)); + for(unsigned i=0;i<8;i++){char label[8];snprintf(label,sizeof(label),"%u",i);assert(badge_alarms_add(&b,now,now+10,0,0,label,&id));} + assert(!badge_alarms_add(&b,now,now+20,0,0,"ninth",&id)); + for(unsigned i=0;i<8;i++){assert(badge_alarms_poll(&b,now+10,&a));assert(badge_alarms_ack(&b,a.id));} + assert(!badge_alarms_poll(&b,now+10,&a)); +#ifdef BADGE_ALARM_SERVICE_TEST + badge_alarm_test_now=now;assert(badge_alarm_service_init()); + assert(badge_alarm_service_add(now+5,0,0,"persistent",&id)); + assert(badge_alarm_service_init());badge_alarm_test_now=now+5;badge_alarm_test_write_fail=true; + assert(!badge_alarm_service_poll(&a));badge_alarm_test_write_fail=false; + assert(badge_alarm_service_poll(&a)&&a.id==id);assert(badge_alarm_service_init());assert(badge_alarm_service_poll(&a)); + badge_alarm_test_write_fail=true;assert(!badge_alarm_service_ack(id));assert(!badge_alarm_service_cancel(id)); + badge_alarm_test_write_fail=false;assert(badge_alarm_service_ack(id));assert(badge_alarm_service_init());assert(!badge_alarm_service_poll(&a)); + cJSON *o=badge_alarm_service_json();assert(cJSON_GetObjectItemCaseSensitive(o,"count")->valueint==0);cJSON_Delete(o); +#endif + puts("Alarms PASS: clock, leap dates, weekdays, eight entries, dedupe, missed repeats, pending reboot, atomic failures"); +} diff --git a/tests/test_badge_navigation.c b/tests/test_badge_navigation.c new file mode 100644 index 0000000..7b4788a --- /dev/null +++ b/tests/test_badge_navigation.c @@ -0,0 +1,200 @@ +#include "badge_navigation.h" +#include +#include +int main(void) { + badge_navigation_t s; + badge_navigation_init(&s,1); + assert(s.screen_timeout==2); + s.page=BADGE_SETTINGS;s.settings_selected=3; + assert(badge_navigation_handle(&s,BADGE_OK)==BADGE_REDRAW&&s.page==BADGE_SLEEP_SETTINGS); + assert(s.timeout_selected==2); + badge_navigation_handle(&s,BADGE_UP); + badge_navigation_handle(&s,BADGE_BACK); + assert(s.page==BADGE_SETTINGS&&s.screen_timeout==2); /* Cancel preserves saved choice. */ + badge_navigation_handle(&s,BADGE_OK); + badge_navigation_handle(&s,BADGE_DOWN); + assert(badge_navigation_handle(&s,BADGE_OK)==BADGE_SLEEP_SAVE&&s.screen_timeout==3); + badge_navigation_handle(&s,BADGE_OK); + for(int i=0;i<2;i++)badge_navigation_handle(&s,BADGE_DOWN); + assert(s.timeout_selected==0); + assert(badge_navigation_handle(&s,BADGE_OK)==BADGE_SLEEP_SAVE&&s.screen_timeout==0); + badge_navigation_handle(&s,BADGE_DOWN);assert(s.settings_selected==4); + assert(badge_navigation_handle(&s,BADGE_OK)==BADGE_REDRAW&&s.page==BADGE_ABOUT_SETTINGS); + badge_navigation_handle(&s,BADGE_OK);assert(s.page==BADGE_SETTINGS); + badge_navigation_handle(&s,BADGE_DOWN);assert(s.settings_selected==0); + badge_navigation_handle(&s,BADGE_UP);assert(s.settings_selected==4); + badge_navigation_handle(&s,BADGE_UP);assert(s.settings_selected==3); + badge_navigation_init(&s,1); + assert(s.page==BADGE_HOME); + assert(badge_ok_gesture(BADGE_HOME,false,false)==BADGE_NONE); // Press/release do not open Menu. + assert(badge_ok_gesture(BADGE_HOME,false,true)==BADGE_OK); // Short/double click is Menu, not Switch. + assert(badge_ok_gesture(BADGE_HOME,true,false)==BADGE_SWITCH); + assert(badge_ok_gesture(BADGE_CARDS,true,false)==BADGE_BACK); + assert(badge_ok_gesture(BADGE_PLAYING,true,false)==BADGE_BACK); + assert(badge_navigation_handle(&s,BADGE_NONE)==BADGE_IDLE); + badge_navigation_handle(&s,BADGE_OK);assert(s.page==BADGE_TERMINAL); + badge_navigation_handle(&s,BADGE_UP);assert(s.home_selected==4); + badge_navigation_handle(&s,BADGE_OK);assert(s.page==BADGE_HOME); + /* Home shortcut keeps terminal selection and never launches a game. */ + size_t selected=s.home_selected; + const badge_input_t exits[]={BADGE_DOWN,BADGE_OK,BADGE_BACK}; + for(unsigned i=0;i<3;i++) { + assert(badge_navigation_handle(&s,BADGE_DOWN)==BADGE_REDRAW); + assert(s.page==BADGE_QR && s.qr_return==BADGE_HOME); + assert(badge_navigation_handle(&s,BADGE_UP)==BADGE_IDLE); + assert(badge_navigation_handle(&s,exits[i])==BADGE_REDRAW); + assert(s.page==BADGE_HOME && s.home_selected==selected); + } + badge_navigation_handle(&s,BADGE_OK);s.home_selected=0; + badge_navigation_handle(&s,BADGE_OK);assert(s.page==BADGE_GAMES); + badge_navigation_handle(&s,BADGE_DOWN);assert(s.game_selected==0); + assert(badge_navigation_handle(&s,BADGE_OK)==BADGE_LAUNCH); + assert(badge_navigation_handle(&s,BADGE_UP)==BADGE_IDLE); + assert(badge_navigation_handle(&s,BADGE_BACK)==BADGE_STOP); + assert(s.page==BADGE_GAMES); + badge_navigation_handle(&s,BADGE_BACK);assert(s.page==BADGE_TERMINAL); + badge_navigation_handle(&s,BADGE_BACK);assert(s.page==BADGE_HOME); + assert(badge_navigation_handle(&s,BADGE_UP)==BADGE_REDRAW&&s.page==BADGE_GAMES); + assert(badge_navigation_handle(&s,BADGE_OK)==BADGE_LAUNCH); + assert(badge_navigation_handle(&s,BADGE_BACK)==BADGE_STOP&&s.page==BADGE_GAMES); + badge_navigation_handle(&s,BADGE_BACK);assert(s.page==BADGE_HOME); + badge_navigation_handle(&s,BADGE_OK);s.home_selected=3; + badge_navigation_handle(&s,BADGE_OK);assert(s.page==BADGE_SETTINGS); + badge_navigation_handle(&s,BADGE_OK);assert(s.page==BADGE_DISPLAY_SETTINGS); + for(int i=0;i<20;i++) badge_navigation_handle(&s,BADGE_DOWN); + assert(s.brightness==0); + for(int i=0;i<20;i++) badge_navigation_handle(&s,BADGE_UP); + assert(s.brightness==4); + badge_navigation_handle(&s,BADGE_OK);assert(s.page==BADGE_SETTINGS); + badge_navigation_handle(&s,BADGE_DOWN); + badge_navigation_handle(&s,BADGE_OK);assert(s.page==BADGE_WIFI); + assert(badge_navigation_handle(&s,BADGE_OK)==BADGE_WIFI_TOGGLE); + assert(badge_navigation_handle(&s,BADGE_DOWN)==BADGE_IDLE); + badge_navigation_handle(&s,BADGE_BACK);assert(s.page==BADGE_SETTINGS); + badge_navigation_handle(&s,BADGE_BACK);assert(s.page==BADGE_TERMINAL); + assert(s.home_selected==3); + badge_navigation_handle(&s,BADGE_DOWN);assert(s.home_selected==4); + badge_navigation_handle(&s,BADGE_DOWN);assert(s.home_selected==0); + badge_navigation_handle(&s,BADGE_DOWN);assert(s.home_selected==1); + badge_navigation_handle(&s,BADGE_OK);assert(s.page==BADGE_QR && s.qr_return==BADGE_TERMINAL); + badge_navigation_handle(&s,BADGE_DOWN);assert(s.page==BADGE_TERMINAL && s.home_selected==1); + badge_navigation_handle(&s,BADGE_OK);badge_navigation_handle(&s,BADGE_BACK);assert(s.page==BADGE_TERMINAL); + badge_navigation_handle(&s,BADGE_OK);badge_navigation_handle(&s,BADGE_OK);assert(s.page==BADGE_TERMINAL); + badge_navigation_handle(&s,BADGE_DOWN);assert(s.home_selected==2); + badge_navigation_handle(&s,BADGE_OK);assert(s.page==BADGE_PROFILE); + assert(badge_navigation_handle(&s,BADGE_DOWN)==BADGE_IDLE); + badge_navigation_handle(&s,BADGE_BACK);assert(s.page==BADGE_TERMINAL); + badge_navigation_handle(&s,BADGE_DOWN); + badge_navigation_handle(&s,BADGE_OK);assert(s.page==BADGE_SETTINGS); + badge_navigation_handle(&s,BADGE_BACK);assert(s.page==BADGE_TERMINAL); + badge_navigation_init(&s,7);badge_navigation_handle(&s,BADGE_OK);badge_navigation_handle(&s,BADGE_OK); + badge_navigation_handle(&s,BADGE_UP);assert(s.game_selected==6); + badge_navigation_handle(&s,BADGE_DOWN);assert(s.game_selected==0); + for(int i=0;i<3;i++) badge_navigation_handle(&s,BADGE_DOWN); + assert(s.game_selected==3); + badge_navigation_handle(&s,BADGE_OK);badge_navigation_handle(&s,BADGE_BACK); + assert(s.game_selected==3); + badge_navigation_init(&s,0);badge_navigation_handle(&s,BADGE_OK);badge_navigation_handle(&s,BADGE_OK); + assert(badge_navigation_handle(&s,BADGE_OK)==BADGE_IDLE); + assert(badge_navigation_handle(&s,BADGE_UP)==BADGE_IDLE); + assert(s.page==BADGE_GAMES); + badge_navigation_init(&s,1);badge_navigation_badges(&s,5,2,0x15); + assert(badge_navigation_handle(&s,badge_ok_gesture(s.page,true,false))==BADGE_REDRAW&&s.page==BADGE_CARDS&&s.badge_selected==2); + badge_navigation_handle(&s,BADGE_DOWN);assert(s.badge_selected==3); + assert(badge_navigation_handle(&s,BADGE_OK)==BADGE_IDLE&&s.page==BADGE_CARDS); + badge_navigation_handle(&s,BADGE_DOWN);assert(s.badge_selected==4); + assert(badge_navigation_handle(&s,BADGE_OK)==BADGE_SELECT&&s.page==BADGE_HOME); + badge_navigation_badges(&s,5,4,0x15);badge_navigation_handle(&s,BADGE_SWITCH); + badge_navigation_handle(&s,BADGE_DOWN);assert(s.badge_selected==0); + badge_navigation_handle(&s,BADGE_UP);assert(s.badge_selected==4); + badge_navigation_handle(&s,BADGE_BACK);assert(s.page==BADGE_HOME); + badge_navigation_handle(&s,BADGE_DOWN);assert(s.page==BADGE_QR); + badge_navigation_handle(&s,BADGE_OK);assert(s.page==BADGE_HOME); + /* Empty first boot shows setup; a configured inactive badge is still a badge. */ + badge_navigation_init(&s,2);badge_navigation_badges(&s,5,0,0); + assert(badge_navigation_handle(&s,BADGE_OK)==BADGE_WIFI_START&&s.page==BADGE_HOME); + assert(badge_navigation_handle(&s,BADGE_SWITCH)==BADGE_WIFI_START); + badge_navigation_handle(&s,BADGE_DOWN);assert(s.page==BADGE_TERMINAL); + badge_navigation_handle(&s,BADGE_GO_HOME);assert(s.page==BADGE_HOME); + for(unsigned i=0;i<5;i++){badge_navigation_badges(&s,5,0,1u< +#include +#include +int main(void){ + assert(badge_network_power_policy(0,false)==0); + assert(badge_network_power_policy(0,true)==1); /* Home standby, no AI. */ + assert(badge_network_power_policy(1,false)==1); + assert(badge_network_power_policy(1,true)==1); + assert(badge_network_power_policy(2,true)==2); /* New voice reply wins. */ + assert(badge_network_power_policy(2,false)==2); + bool seen=false; + assert(badge_setup_tick(&seen,false,false,900)==BADGE_SETUP_IDLE); + assert(badge_setup_tick(&seen,true,false,0)==BADGE_SETUP_START); + assert(badge_setup_tick(&seen,true,true,3600)==BADGE_SETUP_IDLE); + assert(badge_setup_tick(&seen,true,false,3600)==BADGE_SETUP_IDLE); /* Respect manual close; OK can reopen. */ + assert(badge_setup_tick(&seen,false,true,3600)==BADGE_SETUP_EXTEND); /* First save finishes onboarding. */ + assert(badge_setup_tick(&seen,false,true,600)==BADGE_SETUP_IDLE); + assert(badge_setup_tick(&seen,false,true,601)==BADGE_SETUP_CLOSE); + assert(badge_setup_tick(&seen,true,false,900)==BADGE_SETUP_START); /* Last profile cleared. */ + uint8_t ipv4[4]={192,168,4,1}; + uint8_t mapped[16]={0,0,0,0,0,0,0,0,0,0,255,255,192,168,4,1}; + assert(badge_address_is_ap(ipv4,4));assert(badge_address_is_ap(mapped,16)); + ipv4[2]=1;assert(!badge_address_is_ap(ipv4,4)); + mapped[10]=0;assert(!badge_address_is_ap(mapped,16)); + mapped[10]=255;mapped[15]=2;assert(!badge_address_is_ap(mapped,16)); + assert(!badge_address_is_ap(NULL,4));assert(!badge_address_is_ap(ipv4,3)); + badge_scan_entry_t list[BADGE_SCAN_LIMIT],entry={.ssid="Network",.rssi=-70,.auth=3};size_t count=0; + badge_scan_insert(list,&count,&entry);assert(count==1); + entry.rssi=-80;badge_scan_insert(list,&count,&entry);assert(count==1&&list[0].rssi==-70); + entry.rssi=-40;badge_scan_insert(list,&count,&entry);assert(count==1&&list[0].rssi==-40); + entry.auth=0;badge_scan_insert(list,&count,&entry);assert(count==2); + entry.ssid[0]=0;badge_scan_insert(list,&count,&entry);assert(count==2); + for(int i=0;i<30;i++){snprintf(entry.ssid,sizeof(entry.ssid),"AP-%d",i);entry.rssi=-90+i;badge_scan_insert(list,&count,&entry);} + assert(count==BADGE_SCAN_LIMIT); + for(size_t i=1;i=list[i].rssi); + assert(list[0].rssi==-40&&list[count-1].rssi==-74); + puts("Network interface guard: PASS (IPv4, mapped IPv6, non-AP rejection)"); +} diff --git a/tests/test_badge_power.c b/tests/test_badge_power.c new file mode 100644 index 0000000..0b12c86 --- /dev/null +++ b/tests/test_badge_power.c @@ -0,0 +1,48 @@ +#include "badge_power_logic.h" +#include +#include + +int main(void){ + const uint32_t times[]={0,30000,60000,120000,300000}; + for(unsigned i=0;i<5;i++){ + assert(badge_screen_timeout_ms(i)==times[i]); + if(i){assert(!badge_idle_due(times[i]-1,0,times[i],false));assert(badge_idle_due(times[i],0,times[i],false));} + assert(!badge_idle_due(900000,0,times[i],true)); + } + assert(!badge_idle_due(900000,0,badge_screen_timeout_ms(0),false)); + assert(badge_screen_timeout_ms(99)==60000); + assert(!badge_idle_due(59999,0,BADGE_SCREEN_IDLE_MS,false)); + assert(badge_idle_due(60000,0,BADGE_SCREEN_IDLE_MS,false)); + assert(!badge_idle_due(120000,0,BADGE_SCREEN_IDLE_MS,true)); + assert(!badge_idle_due(14999,0,BADGE_AUDIO_IDLE_MS,false)); + assert(badge_idle_due(15000,0,BADGE_AUDIO_IDLE_MS,false)); + assert(!badge_idle_due(60000,55000,BADGE_SCREEN_IDLE_MS,false)); + assert(!badge_idle_due(60000,60120,BADGE_AUDIO_IDLE_MS,false)); // wake finished later + assert(!badge_idle_due(60000,60001,BADGE_SCREEN_IDLE_MS,false)); // concurrent key + uint32_t before=UINT32_MAX-30000; + assert(!badge_idle_due(29998,before,BADGE_SCREEN_IDLE_MS,false)); + assert(badge_idle_due(29999,before,BADGE_SCREEN_IDLE_MS,false)); + badge_wake_filter_t f={0}; + assert(!badge_wake_consumed(&f,100,false,true,false)); + assert(badge_wake_consumed(&f,60000,true,true,false)); // press wakes + assert(badge_wake_consumed(&f,61500,false,false,false)); // long press swallowed + assert(badge_wake_consumed(&f,61600,false,false,true)); // release + assert(badge_wake_consumed(&f,61800,false,false,false)); // delayed click + assert(!badge_wake_consumed(&f,62300,false,true,false)); // next gesture works + f=(badge_wake_filter_t){0}; + assert(badge_wake_consumed(&f,UINT32_MAX-100,true,true,false)); + assert(badge_wake_consumed(&f,0,false,false,true)); + assert(badge_wake_consumed(&f,200,false,false,false)); + assert(!badge_wake_consumed(&f,600,false,true,false)); + f=(badge_wake_filter_t){0}; + assert(badge_wake_consumed(&f,1000,true,true,false)); + assert(badge_wake_consumed(&f,1150,false,false,true)); + assert(badge_wake_consumed(&f,2200,false,false,false)); // delayed by UI restore + assert(!badge_wake_consumed(&f,2400,false,true,false)); + f=(badge_wake_filter_t){0}; + assert(badge_wake_consumed(&f,1000,true,true,false)); + assert(badge_wake_consumed(&f,3000,false,false,true)); // long wake; no click follows + assert(!badge_wake_consumed(&f,3500,false,true,false)); + puts("Power idle deadlines, active-audio protection, wraparound and wake gesture: PASS"); + return 0; +} diff --git a/tests/test_badge_power_runtime.c b/tests/test_badge_power_runtime.c new file mode 100644 index 0000000..78f0027 --- /dev/null +++ b/tests/test_badge_power_runtime.c @@ -0,0 +1,104 @@ +/* Exercise the real power owner with deterministic BSP/time substitutes. */ +#include "badge_power.h" +#include "esp_pm.h" +#include +#include +#include +static uint32_t clock_ms; +static int locks[4],created,display_calls,audio_calls,live_pm,fail_create_at,fail_configure; +static bool standby; +static bool panel_dark,audio_dark,fail_resume,fail_sleep,fail_wake,fail_suspend; +static int transition_lock; +int *xSemaphoreCreateMutex(void){return &transition_lock;} +int xSemaphoreTake(int *lock,unsigned wait){(void)wait;assert(!*lock);*lock=1;return 1;} +void xSemaphoreGive(int *lock){assert(*lock);*lock=0;} +bool bsp_audio_needs_wake(void){return audio_dark||fail_wake;} +bool bsp_display_is_suspended(void){return panel_dark;} + +int64_t esp_timer_get_time(void){return (int64_t)clock_ms*1000;} +esp_err_t esp_pm_lock_create(int type,int arg,const char *name,esp_pm_lock_handle_t *lock){(void)type;(void)arg;(void)name;assert(created<4);if(created+1==fail_create_at)return ESP_FAIL;*lock=&locks[created++];live_pm++;return ESP_OK;} +void esp_pm_lock_delete(esp_pm_lock_handle_t lock){assert(lock&&!*lock&&live_pm>0);live_pm--;} +void esp_pm_lock_acquire(esp_pm_lock_handle_t lock){assert(*lock==0);++*lock;} +void esp_pm_lock_release(esp_pm_lock_handle_t lock){assert(*lock==1);--*lock;} +esp_err_t esp_pm_configure(const esp_pm_config_t *c){assert(c->min_freq_mhz==40&&c->max_freq_mhz==160);return fail_configure?ESP_FAIL:ESP_OK;} +esp_err_t bsp_display_suspend(void){display_calls++;panel_dark=true;return fail_suspend?ESP_FAIL:ESP_OK;} +esp_err_t bsp_display_resume(void){display_calls++;if(fail_resume)return ESP_FAIL;panel_dark=false;return ESP_OK;} +uint8_t bsp_display_brightness(void){return panel_dark?0:80;} +bool bsp_audio_is_sleeping(void){return audio_dark;} +esp_err_t bsp_audio_sleep(void){audio_calls++;if(fail_sleep)return ESP_FAIL;audio_dark=true;return ESP_OK;} +esp_err_t bsp_audio_wake(void){audio_calls++;if(fail_wake)return ESP_FAIL;audio_dark=false;return ESP_OK;} +void badge_network_xiaozhi_power(bool active,bool busy){(void)active;(void)busy;} +void badge_network_standby(bool asleep){standby=asleep;} +static void step(uint32_t ms,bool awake,bool cpu){clock_ms=ms;badge_power_display_tick(awake,cpu);} +int main(void){ + for(int n=1;n<=4;n++){ + fail_create_at=n;created=0; + assert(badge_power_init()!=ESP_OK&&live_pm==0); + } + fail_create_at=0;fail_configure=1;created=0; + assert(badge_power_init()!=ESP_OK&&live_pm==0); + for(int n=0;n<4;n++)assert(!locks[n]); + fail_configure=0;created=0; + + assert(badge_power_init()==ESP_OK); + badge_power_set_timeout(2);step(59999,false,false);assert(!panel_dark); + step(60000,false,false);assert(panel_dark&&locks[0]==0); /* No AI owner required. */ + badge_power_activity();step(60001,false,false);assert(!panel_dark&&locks[0]==1); + badge_power_set_timeout(0);step(1000000,false,false);assert(!panel_dark); + badge_power_set_timeout(1);badge_power_enter(); + clock_ms=1029000;badge_power_tick(true,true);step(1050000,false,false);assert(!panel_dark); + badge_power_tick(false,false);step(1079999,false,false);assert(!panel_dark); + step(1080000,false,false);assert(panel_dark); + int before=display_calls;badge_power_tick(false,false);assert(display_calls==before&&audio_dark); + badge_power_activity();step(1080001,false,false);assert(!panel_dark); + badge_power_tick(false,false);assert(!audio_dark); /* Mic restore on same worker. */ + badge_power_leave();step(1110000,false,true);assert(panel_dark&&locks[0]==1); /* Radio may keep playing. */ + badge_power_activity();step(1110001,false,false);assert(!panel_dark); + step(1140000,false,false);assert(panel_dark); + before=display_calls;badge_power_enter();badge_power_set_local_listening(true); + badge_power_tick(false,true);assert(display_calls==before&&!audio_dark); + step(1140001,false,false);assert(panel_dark&&locks[0]==1); /* Wake detector doesn't light screen. */ + before=display_calls;badge_power_set_local_listening(false);badge_power_leave(); + assert(display_calls==before);step(1140002,false,false);assert(panel_dark&&locks[0]==0); + fail_resume=true;badge_power_activity();step(1140003,false,false);assert(panel_dark); + fail_resume=false;step(1140004,false,false);assert(!panel_dark); /* Failed resume retries. */ + step(1170003,true,true);assert(!panel_dark); /* Reminder keeps screen awake. */ + step(1200003,false,false);assert(panel_dark); + badge_power_set_timeout(0);step(1200004,false,false);assert(!panel_dark); + /* A mini-app can be open with both display and audio asleep. Starting + * playback acquires its own leases before the shell runs another tick. */ + badge_power_set_timeout(1);badge_power_enter(); + clock_ms=1200005;badge_power_audio_tick(true);assert(!audio_dark&&locks[2]&&locks[3]); + clock_ms=1215004;badge_power_audio_tick(false);assert(!audio_dark); + clock_ms=1215005;badge_power_audio_tick(false);assert(audio_dark&&!locks[2]&&!locks[3]); + step(1230004,false,false);assert(panel_dark&&!locks[0]&&!locks[1]&&standby); + badge_power_audio_tick(true);assert(!audio_dark&&locks[2]&&locks[3]&&!standby); + step(1230005,false,false);assert(panel_dark&&!standby); /* Playback stays dark. */ + badge_power_leave();assert(audio_dark&&!locks[2]&&!locks[3]); + step(1230006,false,false);assert(standby); + badge_power_status_t status=badge_power_status(); + assert(status.screen_off&&status.audio_sleeping&&!status.audio_owner&&!status.audio_performance&&!status.display_performance); + /* Failed exit hands off retry without blocking a worker join. */ + badge_power_enter();badge_power_audio_tick(true);fail_sleep=true; + assert(badge_power_leave()==ESP_FAIL); + status=badge_power_status();assert(!status.audio_owner&&status.audio_performance&&!status.audio_sleeping); + before=audio_calls;step(1230506,false,false);assert(audio_calls==before); + step(1231006,false,false);assert(audio_calls==before+1); + /* A new owner prevents the shell from suspending its live stream. */ + badge_power_enter();before=audio_calls;step(1233006,false,false);assert(audio_calls==before); + fail_sleep=false;assert(badge_power_leave()==ESP_OK); + badge_power_enter();badge_power_audio_tick(true);fail_sleep=true; + assert(badge_power_leave()==ESP_FAIL);fail_sleep=false; + step(1234006,false,false);assert(bsp_audio_is_sleeping()&&!badge_power_status().audio_performance); + /* Wake failures retain audio leases until a later successful restore. */ + badge_power_enter();fail_wake=true;badge_power_audio_tick(true); + assert(audio_dark&&badge_power_status().audio_performance); + fail_wake=false;badge_power_audio_tick(true);assert(!audio_dark);badge_power_leave(); + /* Panel rollback failure is represented as dark, then explicitly retried. */ + badge_power_activity();step(1234007,false,false);fail_suspend=true; + step(1264007,false,false);assert(panel_dark&&badge_power_screen_off()); + fail_suspend=false;step(1264008,false,false);assert(!panel_dark&&!badge_power_screen_off()); + assert(audio_calls>0); + puts("Unified display owner: deadlines, AI busy, wake detector, audio restore, retry and PM locks PASS"); + return 0; +} diff --git a/tests/test_badge_reminder.c b/tests/test_badge_reminder.c new file mode 100644 index 0000000..8b4699f --- /dev/null +++ b/tests/test_badge_reminder.c @@ -0,0 +1,27 @@ +#include "badge_reminder.h" +#include +#include +#include +int main(void){ + badge_reminder_t r={0}; + assert(!badge_reminder_due(&r,0)); + assert(!badge_reminder_set(&r,0,0,"test")); + assert(!badge_reminder_set(&r,0,86401,"test")); + assert(!badge_reminder_set(&r,0,5,"")); + assert(badge_reminder_set(&r,1234567,10,"�水")); + assert(!badge_reminder_set(&r,1234567,20,"overwrite")); + assert(badge_reminder_remaining(&r,1234567)==10); + assert(badge_reminder_remaining(&r,11234566)==1); + assert(!badge_reminder_due(&r,11234566)); + assert(badge_reminder_due(&r,11234567)); + assert(badge_reminder_remaining(&r,11234567)==0); + r.ringing=true;assert(!badge_reminder_due(&r,999999999)); + badge_reminder_clear(&r);assert(!r.deadline&&!r.ringing&&!r.text[0]); + assert(!badge_reminder_due(&r,999999999)); + const uint64_t late=UINT64_C(5000000000000); + assert(badge_reminder_set(&r,late,86400,"long uptime")); + assert(badge_reminder_remaining(&r,late)==86400); + assert(!badge_reminder_due(&r,late+UINT64_C(86399999999))); + assert(badge_reminder_due(&r,late+UINT64_C(86400000000))); + puts("Reminder PASS: boundaries, duplicate rejection, cancellation, long uptime and once-only ringing"); +} diff --git a/tests/test_badges_ui.cjs b/tests/test_badges_ui.cjs new file mode 100644 index 0000000..f3b7202 --- /dev/null +++ b/tests/test_badges_ui.cjs @@ -0,0 +1,17 @@ +const fs=require('fs'),vm=require('vm'),assert=require('assert'); +const source=fs.readFileSync(require('path').join(__dirname,'../configure/app.js'),'utf8'); +class Element{constructor(){this.children=[];this.dataset={};this.value='';this.elements=[];}append(...x){this.children.push(...x)}replaceChildren(){this.children=[]}querySelectorAll(){return this.children}} +const elements={},get=id=>elements[id]??=new Element(),calls=[]; +const profile={name:'Example',theme:{}}; +const catalog={badgeCount:5,activeBadge:0,badges:Array.from({length:5},(_,id)=>({id,name:id===2?'':'Card',configured:id<3,revision:4}))}; +const ctx=(w,h)=>({getImageData:()=>({width:w,height:h})}); +const scope={yaoSupported:false,yaoDirty:false,maxProfileVersion:4,maxBadgeLayout:2,fontsReady:Promise.resolve(),beginProfileUpload:(d,a)=>d.rpc('begin',a),portraitPayload:()=>new Uint8Array(91648),document:{createElement:()=>new Element(),fonts:{ready:Promise.resolve()}},$:get,editingBadge:2,activeBadge:0,badgeCount:5,badges:[],loadedBadgeRevision:4,staleBadge:false,busy:false,scanBusy:false,dirty:false,wifi:{},viaHotspot:false,device:{closed:false,rpc:async(op,args)=>{calls.push([op,args]);return op==='info'?{...catalog,custom:true,profile,badgeRevision:5}:catalog}},fields:()=>profile,validateExtended:p=>p,render:()=>{},message:()=>{},cc:ctx(208,148),av:ctx(72,88),bc:ctx(148,44),lc:ctx(32,32),qc:ctx(192,192),qrReady:false,to565:x=>new Uint8Array(x.width*x.height*2),Uint8Array,FORMAT:{chunk:768},btoa:s=>Buffer.from(s,'binary').toString('base64'),setTimeout:f=>f()}; +vm.createContext(scope); +vm.runInContext(source.slice(source.indexOf('function controls()'),source.indexOf('function drawLogo('))+source.slice(source.indexOf('function showCatalog('),source.indexOf('async function load(')),scope); +scope.catalog=catalog;vm.runInContext('showCatalog(catalog)',scope); +assert(get('badgeSelect').children[2].textContent.includes(''));assert(!get('displayBadge').disabled);assert.equal(scope.editingBadge,2); +catalog.activeBadge=1;vm.runInContext('showCatalog(catalog)',scope);assert.equal(scope.editingBadge,2);assert(!scope.staleBadge); +catalog.badges[2].revision=5;vm.runInContext('showCatalog(catalog)',scope);assert(scope.staleBadge);assert(get('save').disabled); +catalog.badges[2].revision=4;vm.runInContext('showCatalog(catalog)',scope); +vm.runInContext(source.slice(source.indexOf("$('save').onclick="),source.indexOf("for(const id of ['ssid','wifiPassword'")),scope); +(async()=>{scope.maxBadgeLayout=1;await get('save').onclick();assert(!calls.some(c=>c[0]==='begin'));scope.maxBadgeLayout=2;calls.length=0;await get('save').onclick();const begin=calls.find(c=>c[0]==='begin');assert.equal(begin[1].badge,2);assert.equal(begin[1].format,4);assert.equal(begin[1].baseRevision,4);assert.equal(calls.find(c=>c[0]==='info')[1].badge,2);assert(!calls.some(c=>c[0]==='badge_select'));assert(calls.some(c=>c[0]==='commit'));console.log('Multi-badge UI: PASS (independent editing, explicit write target, stale-write guard, safe names)')})().catch(e=>{console.error(e);process.exitCode=1}); diff --git a/tests/test_bsp_audio_recovery.c b/tests/test_bsp_audio_recovery.c index f898aa4..e34530a 100644 --- a/tests/test_bsp_audio_recovery.c +++ b/tests/test_bsp_audio_recovery.c @@ -318,7 +318,7 @@ int main(void) { // Actual start failure and an error swallowed by set_fs are both rejected. const int failing_regs[] = { 0x0d, 0x02, 0x16, 0x32 }; - const int failing_values[] = { 0x01, 0x12, 0x0a, 0x00 }; + const int failing_values[] = { 0x01, 0x12, 0x0a, 43 }; for (size_t i = 0; i < sizeof(failing_regs) / sizeof(failing_regs[0]); ++i) { fresh(); fault(failing_regs[i], failing_values[i], 1); @@ -345,7 +345,9 @@ int main(void) { assert(bsp_audio_sleep() != ESP_OK); assert_rollback(); assert(registers[0x0d] == 0xfc && registers[0x45] == 0x01); - assert(bsp_audio_sleep() != ESP_OK); // Repeated call must not hide the failure. + assert(bsp_audio_needs_wake() && !bsp_audio_is_sleeping()); + assert(bsp_audio_sleep() == ESP_OK); // Explicit retry verifies the hardware again. + assert(bsp_audio_is_sleeping()); starts = codec_starts; assert(bsp_audio_wake() == ESP_OK); assert(codec_starts == starts + 1); @@ -366,6 +368,17 @@ int main(void) { assert(bsp_audio_init() == ESP_OK); assert(bsp_audio_set_format(16000, 16, 1) == ESP_OK); assert_active(); + /* Product contract: init wakes a previously suspended codec and restores + * the saved volume; no new shared I2C interface is allocated per cycle. */ + bsp_audio_set_volume(71); + for(unsigned cycle=0;cycle<64;cycle++){ + assert(bsp_audio_set_format(cycle%2?8000:16000,16,1)==ESP_OK); + assert(bsp_audio_sleep()==ESP_OK&&bsp_audio_is_sleeping()); + assert(bsp_audio_needs_wake()); + assert(bsp_audio_init()==ESP_OK&&!bsp_audio_is_sleeping()); + assert(!bsp_audio_needs_wake()&&bsp_audio_get_volume()==71); + assert(registers[0x32]==71);assert_active(); + } // Failure to release a dependency reference is distinct from an I2C fault: // public delete has freed the object, so fail closed until reboot instead of // constructing against an uncertain reference count and reporting success. @@ -379,3 +392,4 @@ int main(void) { puts("BSP audio failure/retry/sleep/wake tests: PASS"); return 0; } + diff --git a/tests/test_bsp_button.c b/tests/test_bsp_button.c deleted file mode 100644 index cf97a3a..0000000 --- a/tests/test_bsp_button.c +++ /dev/null @@ -1,135 +0,0 @@ -// Execute the real BSP with public-interface stubs and a fake ADC (no SDK needed). -#include -#include -#include -#include "../components/bsp/src/bsp_button.c" - -struct button_dev_t { button_driver_t *driver; bool live; }; -static struct button_dev_t buttons[BSP_BTN_COUNT]; -static int adc_token, cal_token, adc_live, cal_live, live_buttons; -static int create_calls, callback_calls, fail_create, fail_callback; -static int fail_adc, fail_channel, fail_cal, fail_read, fail_convert, fail_delete; -static int raw_mv, reads, events; -static int64_t clock_us; - -esp_err_t adc_oneshot_new_unit(const adc_oneshot_unit_init_cfg_t *cfg, adc_oneshot_unit_handle_t *h) { - assert(cfg->unit_id == BSP_BTN_ADC_UNIT && !adc_live); - if (fail_adc) return ESP_ERR_NO_MEM; - adc_live = 1; *h = &adc_token; return ESP_OK; -} -esp_err_t adc_oneshot_del_unit(adc_oneshot_unit_handle_t h) { - assert(h == &adc_token && adc_live && !live_buttons); - adc_live = 0; return ESP_OK; -} -esp_err_t adc_oneshot_config_channel(adc_oneshot_unit_handle_t h, int channel, const adc_oneshot_chan_cfg_t *cfg) { - assert(h == &adc_token && channel == BSP_BTN_ADC_CHANNEL && cfg->atten == ADC_ATTEN_DB_12); - return fail_channel ? ESP_FAIL : ESP_OK; -} -esp_err_t adc_oneshot_read(adc_oneshot_unit_handle_t h, int channel, int *raw) { - assert(h == &adc_token && adc_live && channel == BSP_BTN_ADC_CHANNEL); - ++reads; - if (fail_read) return ESP_FAIL; - *raw = raw_mv; return ESP_OK; -} -esp_err_t adc_cali_create_scheme_curve_fitting(const adc_cali_curve_fitting_config_t *cfg, adc_cali_handle_t *h) { - assert(adc_live && !cal_live && cfg->atten == ADC_ATTEN_DB_12); - if (fail_cal) return ESP_ERR_NO_MEM; - cal_live = 1; *h = &cal_token; return ESP_OK; -} -esp_err_t adc_cali_delete_scheme_curve_fitting(adc_cali_handle_t h) { - assert(h == &cal_token && cal_live && !live_buttons); - cal_live = 0; return ESP_OK; -} -esp_err_t adc_cali_raw_to_voltage(adc_cali_handle_t h, int raw, int *mv) { - assert(h == &cal_token && cal_live); - if (fail_convert) { *mv = 0; return ESP_FAIL; } - *mv = raw; return ESP_OK; -} -int64_t esp_timer_get_time(void) { return clock_us; } -esp_err_t iot_button_create(const button_config_t *cfg, const button_driver_t *driver, button_handle_t *h) { - (void)cfg; - if (++create_calls == fail_create) return ESP_ERR_NO_MEM; - for (int i = 0; i < BSP_BTN_COUNT; ++i) { - if (buttons[i].live) continue; - buttons[i] = (struct button_dev_t){ .driver = (button_driver_t *)driver, .live = true }; - *h = &buttons[i]; ++live_buttons; - assert(driver->get_key_level((button_driver_t *)driver) == BUTTON_INACTIVE); - return ESP_OK; - } - assert(false); return ESP_FAIL; -} -esp_err_t iot_button_delete(button_handle_t h) { - assert(h && h->live && adc_live && cal_live); - if (fail_delete) return ESP_FAIL; - assert(h->driver->del(h->driver) == ESP_OK); - h->live = false; --live_buttons; return ESP_OK; -} -esp_err_t iot_button_register_cb(button_handle_t h, button_event_t ev, button_event_args_t *args, button_cb_t cb, void *u) { - (void)args; (void)ev; - assert(h->live); - cb(h, u); // No user callbacks may escape a partial initialization. - return ++callback_calls == fail_callback ? ESP_ERR_NO_MEM : ESP_OK; -} -static void event_cb(bsp_btn_t btn, bsp_btn_ev_t ev, void *u) { - assert(btn == BSP_BTN_OK && ev == BSP_BTN_CLICK && u == &events); - ++events; -} -static void reset_faults(void) { - fail_adc = fail_channel = fail_cal = fail_read = fail_convert = fail_delete = 0; - fail_create = fail_callback = create_calls = callback_calls = 0; -} -static void assert_clean(void) { - assert(!adc_live && !cal_live && !live_buttons && !s_ready && !s_adc && !s_cali); - for (int i = 0; i < BSP_BTN_COUNT; ++i) assert(!s_btn[i]); -} -static void retry_success(void) { - assert_clean(); reset_faults(); - assert(bsp_button_init(event_cb, &events) == ESP_OK); - assert(create_calls == BSP_BTN_COUNT && live_buttons == BSP_BTN_COUNT); - assert(bsp_button_init(event_cb, &events) == ESP_OK); - assert(create_calls == BSP_BTN_COUNT); - button_cleanup(); assert_clean(); -} -static void check_voltage(int mv, int expected) { - raw_mv = mv; clock_us += 2000; - const int before = reads; - for (int i = 0; i < BSP_BTN_COUNT; ++i) { - assert(s_drivers[i].base.get_key_level(&s_drivers[i].base) == (i == expected)); - } - assert(reads - before == CONFIG_ADC_BUTTON_SAMPLE_TIMES); -} -int main(void) { - for (int i = 1; i <= BSP_BTN_COUNT; ++i) { - reset_faults(); fail_create = i; - assert(bsp_button_init(event_cb, &events) != ESP_OK); retry_success(); - } - for (int i = 1; i <= BSP_BTN_COUNT * 4; ++i) { - reset_faults(); fail_callback = i; - assert(bsp_button_init(event_cb, &events) != ESP_OK); retry_success(); - } - reset_faults(); fail_adc = 1; - assert(bsp_button_init(event_cb, &events) != ESP_OK); retry_success(); - fail_channel = 1; - assert(bsp_button_init(event_cb, &events) != ESP_OK); retry_success(); - fail_cal = 1; - assert(bsp_button_init(event_cb, &events) != ESP_OK); retry_success(); - assert(events == 0); - assert(bsp_button_init(event_cb, &events) == ESP_OK); - cb_click(NULL, (void *)(intptr_t)BSP_BTN_OK); assert(events == 1); - check_voltage(0, BSP_BTN_UP); check_voltage(149, BSP_BTN_UP); - check_voltage(150, BSP_BTN_DOWN); check_voltage(446, BSP_BTN_DOWN); - check_voltage(447, BSP_BTN_OK); check_voltage(1899, BSP_BTN_OK); - check_voltage(1900, -1); check_voltage(3300, -1); - assert(bsp_button_read_mv() == 3300); - fail_read = 1; clock_us += 2000; - for (int i = 0; i < BSP_BTN_COUNT; ++i) assert(!button_level(&s_drivers[i].base)); - assert(bsp_button_read_mv() == -1); - fail_read = 0; fail_convert = 1; clock_us += 2000; - for (int i = 0; i < BSP_BTN_COUNT; ++i) assert(!button_level(&s_drivers[i].base)); - assert(bsp_button_read_mv() == -1); - fail_delete = 1; button_cleanup(); - assert(adc_live && cal_live && live_buttons == BSP_BTN_COUNT); - assert(bsp_button_init(event_cb, &events) == ESP_ERR_INVALID_STATE); - fail_delete = 0; button_cleanup(); retry_success(); - puts("BSP button fault-injection tests: PASS"); -} diff --git a/tests/test_bsp_button_recovery.c b/tests/test_bsp_button_recovery.c new file mode 100644 index 0000000..ef229c9 --- /dev/null +++ b/tests/test_bsp_button_recovery.c @@ -0,0 +1,33 @@ +/* Exercise deletion failures against the actual ADC/button BSP. */ +#include +#include +#include +#include "../components/bsp/src/bsp_button.c" +struct button_dev_t {bool live;}; +static struct button_dev_t buttons[3]; +static int adc_token,cal_token,adc_live,cal_live,live_buttons; +static int fail_delete,fail_create,creates,fail_callback,callbacks; +esp_err_t adc_oneshot_new_unit(const adc_oneshot_unit_init_cfg_t *c,adc_oneshot_unit_handle_t *h){(void)c;assert(!adc_live);adc_live=1;*h=&adc_token;return ESP_OK;} +esp_err_t adc_oneshot_del_unit(adc_oneshot_unit_handle_t h){assert(h==&adc_token&&adc_live&&!live_buttons);adc_live=0;return ESP_OK;} +esp_err_t adc_oneshot_read(adc_oneshot_unit_handle_t h,int c,int *v){(void)c;assert(h==&adc_token&&adc_live);*v=200;return ESP_OK;} +esp_err_t adc_cali_create_scheme_curve_fitting(const adc_cali_curve_fitting_config_t *c,adc_cali_handle_t *h){(void)c;assert(adc_live&&!cal_live);cal_live=1;*h=&cal_token;return ESP_OK;} +esp_err_t adc_cali_delete_scheme_curve_fitting(adc_cali_handle_t h){assert(h==&cal_token&&!live_buttons);cal_live=0;return ESP_OK;} +esp_err_t adc_cali_raw_to_voltage(adc_cali_handle_t h,int v,int *mv){assert(h==&cal_token);*mv=v;return ESP_OK;} +esp_err_t iot_button_new_adc_device(const button_config_t *b,const button_adc_config_t *c,button_handle_t *h){(void)b;assert(adc_live&&*c->adc_handle==&adc_token);if(++creates==fail_create)return ESP_FAIL;*h=&buttons[c->button_index];(*h)->live=true;live_buttons++;return ESP_OK;} +esp_err_t iot_button_delete(button_handle_t h){assert(h->live&&adc_live);if(fail_delete)return ESP_FAIL;h->live=false;live_buttons--;return ESP_OK;} +esp_err_t iot_button_register_cb(button_handle_t h,button_event_t e,button_event_args_t *a,button_cb_t cb,void *u){(void)e;(void)a;(void)cb;(void)u;assert(h->live);return ++callbacks==fail_callback?ESP_FAIL:ESP_OK;} +esp_err_t gpio_config(const gpio_config_t *c){(void)c;assert(!adc_live&&!live_buttons);return ESP_OK;} +esp_err_t esp_deep_sleep_enable_gpio_wakeup(uint64_t mask,int mode){assert(mask==(1ULL< +#include +#include + +static uint8_t output[32]; +static size_t written, fail_after; +static bool sink(const uint8_t *data, size_t size, void *context) { + assert(context == output); + if (written + size > fail_after) return false; + memcpy(output + written, data, size); written += size; return true; +} +static bsp_capture_stream_t reset(void) { + written = 0; fail_after = sizeof(output); memset(output, 0, sizeof(output)); + bsp_capture_stream_t s = {.width=2, .height=3, .write=sink, .context=output}; + return s; +} +int main(void) { + /* Native little-endian red, green, blue, white; omit padded bytes. */ + const uint8_t strip[] = {0x00,0xf8,0xe0,0x07,0xaa,0xbb,0x1f,0x00,0xff,0xff,0xcc,0xdd}; + const uint8_t last[] = {0,0,0xff,0xff}; + const uint8_t expected[] = {0,0xf8,0xe0,7,0x1f,0,0xff,0xff,0,0,0xff,0xff}; + bsp_capture_stream_t s=reset(); + assert(bsp_capture_stream_strip(&s,0,0,1,1,strip,6)); + assert(!bsp_capture_stream_complete(&s)); + assert(bsp_capture_stream_strip(&s,0,2,1,2,last,4)); + assert(bsp_capture_stream_complete(&s) && written==sizeof(expected)); + assert(memcmp(output,expected,sizeof(expected))==0); + assert(!bsp_capture_stream_strip(&s,0,2,1,2,last,4)); /* duplicate */ + s=reset(); assert(!bsp_capture_stream_strip(&s,0,1,1,1,strip,6)); /* gap */ + s=reset(); assert(!bsp_capture_stream_strip(&s,1,0,1,1,strip,6)); /* partial width */ + s=reset(); assert(!bsp_capture_stream_strip(&s,0,0,1,1,strip,3)); /* short stride */ + s=reset(); assert(!bsp_capture_stream_strip(&s,0,0,1,3,strip,6)); /* bounds */ + s=reset(); assert(!bsp_capture_stream_strip(&s,0,0,1,0,NULL,6)); + s=reset(); fail_after=4; + assert(!bsp_capture_stream_strip(&s,0,0,1,1,strip,6)); + assert(written==4 && !bsp_capture_stream_complete(&s)); + assert(!bsp_capture_stream_strip(&s,0,1,1,1,strip,6) && written==4); + s=reset(); assert(bsp_capture_stream_strip(&s,0,0,1,1,strip,6)); + assert(bsp_capture_stream_strip(&s,0,2,1,2,last,4)); + assert(bsp_capture_stream_complete(&s)); /* fresh request after failure */ + puts("Capture stream: pixel order, padding, truncation, malformed strips, sink failure and retry PASS"); + return 0; +} diff --git a/tests/test_bsp_display_rounding.c b/tests/test_bsp_display_rounding.c index 327c6af..9991ad7 100644 --- a/tests/test_bsp_display_rounding.c +++ b/tests/test_bsp_display_rounding.c @@ -1,23 +1,7 @@ #include -#include #include "bsp_display_rounding.h" -static void assert_span_matches_pixels(int width, int height, int radius) -{ - for (int y = 0; y < height; ++y) { - int x1 = -1; - int x2 = -1; - assert(bsp_display_rounded_row_span(y, width, height, radius, &x1, &x2)); - for (int x = 0; x < width; ++x) { - const bool expected_visible = - !bsp_display_pixel_outside_rounded_rect(x, y, width, height, radius); - const bool visible = x >= x1 && x <= x2; - assert(visible == expected_visible); - } - } -} - int main(void) { const int width = 240; @@ -38,18 +22,5 @@ int main(void) assert(!bsp_display_pixel_outside_rounded_rect(0, 0, width, height, 0)); assert(bsp_display_pixel_outside_rounded_rect(-1, 0, width, height, radius)); - - // The optimized row-span path must be pixel-for-pixel equivalent at both - // corners, the radius transition, and for clamped/degenerate radii. - assert_span_matches_pixels(width, height, radius); - assert_span_matches_pixels(17, 11, 4); - assert_span_matches_pixels(17, 11, 99); - assert_span_matches_pixels(17, 11, 0); - - int x1 = 123; - int x2 = 456; - assert(!bsp_display_rounded_row_span(-1, width, height, radius, &x1, &x2)); - assert(!bsp_display_rounded_row_span(0, 0, height, radius, &x1, &x2)); - assert(!bsp_display_rounded_row_span(0, width, height, radius, NULL, &x2)); return 0; } diff --git a/tests/test_bsp_lvgl_init.c b/tests/test_bsp_lvgl_init.c index e1bb697..c9fc66d 100644 --- a/tests/test_bsp_lvgl_init.c +++ b/tests/test_bsp_lvgl_init.c @@ -5,6 +5,26 @@ #include "../components/bsp/src/bsp_display_lvgl.c" static lv_display_t display; +static lv_timer_t timer; +static bool timer_fail,panel_sleep_fail,port_resume_fail,task_suspended; +static unsigned brightness=63; +static int task_token; +TaskHandle_t xTaskGetCurrentTaskHandle(void){return &task_token;} +void vTaskSuspend(TaskHandle_t t){assert(t==&task_token);task_suspended=true;} +void vTaskResume(TaskHandle_t t){assert(t==&task_token);task_suspended=false;} +void vTaskDelay(unsigned ms){(void)ms;} +lv_timer_t *lv_timer_create(void (*cb)(lv_timer_t *),unsigned ms,void *u){(void)cb;(void)ms;(void)u;return timer_fail?NULL:&timer;} +void lv_timer_delete(lv_timer_t *t){assert(t==&timer);} +void *lv_display_get_screen_active(lv_display_t *d){return d;} +void lv_obj_invalidate(void *o){(void)o;} +void lv_refr_now(lv_display_t *d){(void)d;} +esp_err_t lvgl_port_stop(void){return ESP_OK;} +esp_err_t lvgl_port_resume(void){return port_resume_fail?ESP_FAIL:ESP_OK;} +uint8_t bsp_display_brightness(void){return brightness;} +void bsp_display_backlight(uint8_t b){brightness=b;} +esp_err_t esp_lcd_panel_disp_sleep(esp_lcd_panel_handle_t h,bool s){(void)h;(void)s;return panel_sleep_fail?ESP_FAIL:ESP_OK;} +esp_err_t esp_lcd_panel_disp_on_off(esp_lcd_panel_handle_t h,bool s){(void)h;(void)s;return ESP_OK;} + static int panel_present = 1, lock_depth, port_live, display_live, callback_live; static int fail_lock, fail_port, fail_display, fail_event, init_calls, unlocked_flushes; static int panel_token, io_token; @@ -69,6 +89,7 @@ int main(void) { const int retained_init_calls = init_calls; fail_display = 1; expect_failure(); fail_display = 0; fail_event = 1; expect_failure(); fail_event = 0; + timer_fail=true;expect_failure();timer_fail=false; assert(bsp_lvgl_init() == &display); assert(init_calls == retained_init_calls); // Display retries reuse the port. assert(callback_live && !lock_depth && unlocked_flushes == 1); @@ -82,5 +103,11 @@ int main(void) { lv_event_t ev = { .target = &display, .area = &area }; rounded_flush_event(&ev); assert(pixels[0] == 0 && pixels[BSP_LCD_W - 1] == 0 && pixels[BSP_LCD_W / 2] == 0xffff); - puts("BSP LVGL initialization tests: PASS"); + remember_lvgl_task(&timer); + assert(bsp_display_suspend()==ESP_OK&&task_suspended&&brightness==0); + port_resume_fail=true;assert(bsp_display_resume()!=ESP_OK&&task_suspended); + port_resume_fail=false;assert(bsp_display_resume()==ESP_OK&&!task_suspended&&brightness==63); + panel_sleep_fail=true;assert(bsp_display_suspend()!=ESP_OK&&bsp_display_is_suspended()); + panel_sleep_fail=false;assert(bsp_display_resume()==ESP_OK&&!task_suspended&&brightness==63); + puts("BSP LVGL initialization, rollback, suspend/resume retries: PASS"); } diff --git a/tests/test_check_repo.py b/tests/test_check_repo.py index 9d5482a..0dc2a6b 100644 --- a/tests/test_check_repo.py +++ b/tests/test_check_repo.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -"""Host tests for documentation exemptions and community-document navigation.""" +"""Host tests for bounded third-party documentation exemptions.""" from __future__ import annotations @@ -91,7 +91,7 @@ class VendoredDocumentationTest(unittest.TestCase): with self.subTest(name=name): errors = self.document_errors([self.document(name)]) self.assertEqual(len(errors), 2) - self.assertTrue(all(name in error for error in errors)) + self.assertTrue(all(name in error.replace("\\", "/") for error in errors)) def test_valid_first_party_pair_and_links_still_pass(self) -> None: files = [ @@ -179,163 +179,5 @@ class VendoredDocumentationTest(unittest.TestCase): self.assertTrue(any(expected in error for error in errors), errors) -class CommunityDocumentLinksTest(unittest.TestCase): - def setUp(self) -> None: - temporary = tempfile.TemporaryDirectory(prefix="ai-passport-community-doc-tests-") - self.addCleanup(temporary.cleanup) - self.root = Path(temporary.name).resolve() - root_patch = patch.object(CHECKS, "ROOT", self.root) - root_patch.start() - self.addCleanup(root_patch.stop) - - def document(self, name: str, content: str) -> Path: - path = self.root / name - path.parent.mkdir(parents=True, exist_ok=True) - path.write_text(content, encoding="utf-8") - return path - - def errors(self, files: list[Path]) -> list[str]: - errors: list[str] = [] - CHECKS.check_community_document_links(files, errors) - return errors - - def test_all_community_language_pairs_use_existing_root_targets(self) -> None: - files = [] - for name in sorted(CHECKS.COMMUNITY_DOCUMENT_NAMES): - peer = ( - name.removesuffix(".zh_CN.md") + ".md" - if name.endswith(".zh_CN.md") else name.removesuffix(".md") + ".zh_CN.md" - ) - files.append(self.document(f".github/{name}", f"[Language](/.github/{peer})\n")) - errors = self.errors(files) - CHECKS.check_markdown_links(files, errors) - CHECKS.check_document_languages(files, errors) - self.assertEqual(errors, []) - - def test_original_html_switch_is_rejected_despite_existing_peer(self) -> None: - page = self.document( - ".github/CODE_OF_CONDUCT.md", - '

Language

\n', - ) - self.document(".github/CODE_OF_CONDUCT.zh_CN.md", "# Translation\n") - errors = self.errors([page]) - self.assertTrue(any("language switch must use a Markdown link" in error for error in errors)) - self.assertTrue(any("repository-root path" in error for error in errors)) - - def test_wrong_directory_and_fixed_upstream_switches_are_rejected(self) -> None: - for target in ( - "CODE_OF_CONDUCT.zh_CN.md", - "/CODE_OF_CONDUCT.zh_CN.md", - "https://github.com/FoloToy/ai-passport/blob/main/.github/CODE_OF_CONDUCT.zh_CN.md", - ): - with self.subTest(target=target): - page = self.document(".github/CODE_OF_CONDUCT.md", f"[Language]({target})\n") - self.assertTrue(any("language switch" in error for error in self.errors([page]))) - - def test_root_target_still_requires_a_real_file(self) -> None: - page = self.document( - ".github/SUPPORT.md", "[Language](/.github/SUPPORT.zh_CN.md)\n" - ) - errors = self.errors([page]) - CHECKS.check_markdown_links([page], errors) - self.assertEqual(len(errors), 1) - self.assertIn("missing link target", errors[0]) - - def test_language_switch_allows_markdown_titles_and_angle_targets(self) -> None: - for target in ( - '/.github/SUPPORT.zh_CN.md "Chinese"', - ' "Chinese"', - ): - with self.subTest(target=target): - page = self.document(".github/SUPPORT.md", f"\nEnglish | [Language]({target})\n") - self.assertEqual(self.errors([page]), []) - - def test_markdown_switch_inside_raw_html_is_rejected(self) -> None: - for content in ( - '

\n[Language](/.github/SUPPORT.zh_CN.md)\n

\n', - '

[Language](/.github/SUPPORT.zh_CN.md)

\n', - '\n', - ): - with self.subTest(content=content): - page = self.document(".github/SUPPORT.md", content) - self.assertTrue(any("language switch" in error for error in self.errors([page]))) - - def test_relative_body_links_are_rejected_for_markdown_and_html(self) -> None: - for link in ( - "[Security](SECURITY.md)", - "[Guide](../docs/README.md)", - 'Security', - "Security", - "[Security](//example.com/SECURITY.md)", - "[Security][security]\n\n[security]: SECURITY.md", - '[Security][security]\n\n[security]: "Policy"', - ): - with self.subTest(link=link): - page = self.document( - ".github/SUPPORT.md", "[Language](/.github/SUPPORT.zh_CN.md)\n\n" + link - ) - self.assertTrue(any("repository-root path" in error for error in self.errors([page]))) - - def test_root_links_external_links_and_fragments_are_allowed(self) -> None: - page = self.document( - ".github/CONTRIBUTING.md", - "[Language](/.github/CONTRIBUTING.zh_CN.md)\n\n" - "[Guide](/docs/README.md) [Rules](/AGENTS.md) [License](/LICENSE)\n" - "[Security](/.github/SECURITY.md#reporting-a-vulnerability)\n" - "[Site](https://example.com) [Mail](mailto:security@example.com) [Top](#top)\n", - ) - self.assertEqual(self.errors([page]), []) - - def test_root_reference_links_and_external_attribution_are_allowed(self) -> None: - page = self.document( - ".github/CODE_OF_CONDUCT.md", - "[Language](/.github/CODE_OF_CONDUCT.zh_CN.md)\n\n" - "[Security][security] [Upstream][attribution]\n\n" - '[security]: "Security policy"\n' - "[attribution]: https://github.com/mozilla/diversity\n", - ) - self.assertEqual(self.errors([page]), []) - - def test_body_cannot_pin_internal_docs_to_upstream_but_reporting_is_allowed(self) -> None: - for link in ( - "[Rules](https://github.com/FoloToy/ai-passport/blob/main/AGENTS.md)", - "[Docs](https://github.com/FoloToy/ai-passport/tree/main/docs)", - "[Rules][rules]\n[rules]: https://github.com/FoloToy/ai-passport/blob/main/AGENTS.md", - 'Rules', - ): - with self.subTest(link=link): - page = self.document( - ".github/SUPPORT.md", "[Language](/.github/SUPPORT.zh_CN.md)\n\n" + link - ) - self.assertTrue(any("must not hardcode" in error for error in self.errors([page]))) - page = self.document( - ".github/SECURITY.md", - "[Language](/.github/SECURITY.zh_CN.md)\n\n" - "[Report](https://github.com/FoloToy/ai-passport/security/advisories/new)\n", - ) - self.assertEqual(self.errors([page]), []) - - def test_other_documents_and_pr_template_keep_their_own_context(self) -> None: - files = [ - self.document("docs/README.md", "[Language](README.zh_CN.md)\n"), - self.document(".github/PULL_REQUEST_TEMPLATE.md", "[Language](PULL_REQUEST_TEMPLATE.zh_CN.md)\n"), - ] - self.assertEqual(self.errors(files), []) - - def test_main_runs_community_link_guard(self) -> None: - page = self.document( - ".github/SECURITY.md", 'Language\n' - ) - with ( - patch.object(CHECKS, "git_files", return_value=[page]), - patch.object(CHECKS, "check_required_files"), - patch.object(CHECKS, "check_action_pins"), - patch.object(CHECKS, "check_issue_forms"), - contextlib.redirect_stderr(io.StringIO()) as output, - ): - self.assertEqual(CHECKS.main(), 1) - self.assertIn("language switch must use a Markdown link", output.getvalue()) - - if __name__ == "__main__": unittest.main() diff --git a/tests/test_deep_sleep_contract.py b/tests/test_deep_sleep_contract.py index 0dcd3aa..eb992f4 100644 --- a/tests/test_deep_sleep_contract.py +++ b/tests/test_deep_sleep_contract.py @@ -54,6 +54,10 @@ class DeepSleepContractTest(unittest.TestCase): cls.display = read("components/bsp/src/bsp_display.c") cls.i2c = read("components/bsp/src/bsp_i2c.c") cls.demo = read("main/demo_low_power.c") + cls.main = read("main/main.c") + cls.muyu = read("main/muyu_app.c") + cls.voice = read("main/voice_app.c") + cls.radio = read("main/radio_player.cc") def test_es8311_force_sleep_sequence_is_complete_and_ordered(self) -> None: expected = [ @@ -110,6 +114,13 @@ class DeepSleepContractTest(unittest.TestCase): self.assertIn("cw_read(CW_REG_CONFIG, &actual, 1)", body) self.assertIn("actual == CW_CONFIG_SLEEP", body) + def test_cw2017_wake_rejects_transient_zero_soc(self) -> None: + wait = function_body(self.battery, "cw_wait_soc_ready") + read = function_body(self.battery, "bsp_battery_soc") + self.assertIn("soc[1] > 0", wait) + self.assertIn("voltage_mv <= CW_EMPTY_MAX_MV", wait) + self.assertIn("return s_last_soc", read) + def test_shared_i2c_is_released_after_device_transactions(self) -> None: body = function_body(self.i2c, "bsp_i2c_prepare_deep_sleep") self.assertIn("BSP_I2C_SDA", body) @@ -153,6 +164,27 @@ class DeepSleepContractTest(unittest.TestCase): self.assertLess(body.index("bsp_lvgl_lock(1000)"), body.index("bsp_display_prepare_deep_sleep()")) + def test_assistant_shutdown_uses_the_same_terminal_sequence(self) -> None: + body = function_body(self.main, "control_shutdown") + calls = [ + "bsp_battery_sleep()", + "bsp_audio_sleep()", + "bsp_audio_prepare_deep_sleep()", + "bsp_i2c_prepare_deep_sleep()", + "bsp_display_prepare_deep_sleep()", + "esp_deep_sleep_start()", + ] + positions = [body.index(call) for call in calls] + self.assertEqual(positions, sorted(positions)) + + def test_every_user_facing_battery_reader_keeps_last_valid_soc(self) -> None: + self.assertIn("if(next>=0)battery=next", self.main) + self.assertIn("if (next_battery >= 0) battery = next_battery", self.muyu) + self.assertIn("if(next_battery>=0)atomic_store(&battery,next_battery)", self.voice) + self.assertIn("if(next>=0)s_last_battery=next", self.radio) + for source in (self.main, self.muyu, self.voice, self.radio): + self.assertIn("bsp_battery_init()==ESP_OK".replace(" ", ""), source.replace(" ", "")) + if __name__ == "__main__": unittest.main() diff --git a/tests/test_demo_audio_runtime.c b/tests/test_demo_audio_runtime.c deleted file mode 100644 index 2bfef16..0000000 --- a/tests/test_demo_audio_runtime.c +++ /dev/null @@ -1,53 +0,0 @@ -#include "demo_stubs/demo_runtime.c" -#include "../main/demo_audio.c" - -static void cancel_recording(void) { s_cancel = true; } - -int main(void) { - lv_obj_t status; - s_status = &status; - test_create_fails = true; - assert(demo_audio_start() == ESP_ERR_NO_MEM); - assert(!s_task && !s_stopped); - test_create_fails = false; - assert(demo_audio_start() == ESP_OK); - TaskHandle_t first = s_task; - assert(demo_audio_stop() == ESP_ERR_TIMEOUT); - assert(s_task == first && !first->deleted && s_cancel); - test_run_worker(first); // Ack arrives after stop's timeout. - assert(s_task == first && !first->deleted && s_stopped->available); - assert(demo_audio_stop() == ESP_OK); // A retry still has a live task handle. - assert(first->deleted && !s_task && !s_stopped); - assert(demo_audio_start() == ESP_OK); - assert(s_task != first && !s_task->deleted); - test_auto_ack = true; - assert(demo_audio_stop() == ESP_OK); - assert(demo_audio_stop() == ESP_OK); - assert(test_task_deletes == 2); - - // First-chunk and partial recording failures must not play or report done. - for (unsigned fail_at = 1; fail_at <= 2; fail_at++) { - s_cancel = false; - test_read_calls = test_write_calls = 0; - test_read_fail_at = fail_at; - record_and_play(); - assert(test_read_calls == fail_at && test_write_calls == 0); - assert(strcmp(test_status, "recording failed") == 0); - } - test_read_calls = test_write_calls = 0; - test_read_fail_at = 0; - test_write_fail_at = 1; - record_and_play(); - assert(strcmp(test_status, "playback failed") == 0); - test_read_calls = test_write_calls = test_write_fail_at = 0; - record_and_play(); - assert(strncmp(test_status, "done.", 5) == 0); - assert(test_read_calls == 94 && test_write_calls == 94); - test_read_calls = test_write_calls = 0; - test_read_hook = cancel_recording; - record_and_play(); - assert(test_read_calls == 1 && test_write_calls == 0); - assert(strncmp(test_status, "done.", 5) != 0); - puts("audio worker lifecycle and recording fault tests: PASS"); - return 0; -} diff --git a/tests/test_demo_ble_runtime.c b/tests/test_demo_ble_runtime.c deleted file mode 100644 index 93e15c8..0000000 --- a/tests/test_demo_ble_runtime.c +++ /dev/null @@ -1,54 +0,0 @@ -#include "demo_stubs/demo_runtime.c" -#include "../main/demo_ble.c" - -int main(void) { - test_sem_fails = true; - assert(demo_ble_start() == ESP_ERR_NO_MEM); - assert(!s_initialized && !s_host_stopped && !s_host_task); - assert(test_nimble_stops == 0); - test_sem_fails = false; - test_nimble_name_result = 1; - assert(demo_ble_start() == ESP_FAIL); - assert(!s_initialized && !s_host_stopped && !s_host_task); - assert(test_nimble_stops == 0); - test_nimble_name_result = 0; - test_nimble_deinits = 0; - test_create_fails = true; - assert(demo_ble_start() == ESP_ERR_NO_MEM); - assert(!s_initialized && !s_host_task && !s_host_stopped); - assert(test_nimble_stops == 0 && test_nimble_deinits == 1); - assert(demo_ble_stop() == ESP_OK); // Creation failure must not trap the page. - - // Failed cleanup retains ownership so a later exit can retry it. - test_nimble_deinit_result = ESP_FAIL; - assert(demo_ble_start() == ESP_ERR_NO_MEM); - assert(s_initialized && !s_host_task); - assert(demo_ble_stop() == ESP_FAIL); - assert(test_nimble_stops == 0); - test_nimble_deinit_result = ESP_OK; - assert(demo_ble_stop() == ESP_OK); - assert(!s_initialized && !s_host_stopped); - - test_create_fails = false; - assert(demo_ble_start() == ESP_OK); - TaskHandle_t task = s_host_task; - assert(demo_ble_stop() == ESP_ERR_TIMEOUT); - assert(s_host_task == task && !task->deleted); - assert(test_nimble_stops == 1); - test_run_worker(task); - assert(s_host_task == task && s_host_stopped->available); - test_nimble_deinit_result = ESP_FAIL; - assert(demo_ble_stop() == ESP_FAIL); - assert(task->deleted && !s_host_task && s_initialized); - assert(test_nimble_stops == 1); // Do not restart an already stopped host. - test_nimble_deinit_result = ESP_OK; - assert(demo_ble_stop() == ESP_OK); - assert(!s_initialized && !s_host_stopped); - test_auto_ack = true; - assert(demo_ble_start() == ESP_OK); - assert(s_host_task != task); - assert(demo_ble_stop() == ESP_OK); - assert(test_task_deletes == 2); - puts("BLE allocation, cleanup retry and host handoff tests: PASS"); - return 0; -} diff --git a/tests/test_demo_low_power_runtime.c b/tests/test_demo_low_power_runtime.c deleted file mode 100644 index f497bd2..0000000 --- a/tests/test_demo_low_power_runtime.c +++ /dev/null @@ -1,31 +0,0 @@ -#include "demo_stubs/demo_runtime.c" -#include "../main/demo_low_power.c" - -int main(void) { - test_sem_fails = true; - assert(demo_low_power_start() == ESP_ERR_NO_MEM); - test_sem_fails = false; - test_create_fails = true; - assert(demo_low_power_start() == ESP_ERR_NO_MEM); - assert(!s_task && !s_stopped); - test_create_fails = false; - assert(demo_low_power_start() == ESP_OK); - TaskHandle_t first = s_task; - assert(demo_low_power_stop() == ESP_ERR_TIMEOUT); - assert(s_task == first && !first->deleted && s_stop_requested); - unsigned notifications = test_notifications; - demo_low_power_key(BSP_BTN_OK, BSP_BTN_CLICK); - assert(test_notifications == notifications); // No new work after stop request. - test_run_worker(first); - assert(s_task == first && !first->deleted && s_stopped->available); - assert(demo_low_power_stop() == ESP_OK); - assert(!s_task && !s_stopped && first->deleted); - assert(demo_low_power_start() == ESP_OK); - assert(s_task != first && !s_task->deleted); - test_auto_ack = true; - assert(demo_low_power_stop() == ESP_OK); - assert(demo_low_power_stop() == ESP_OK); - assert(test_task_deletes == 2); - puts("low-power worker timeout/retry/re-entry tests: PASS"); - return 0; -} diff --git a/tests/test_demo_navigation.c b/tests/test_demo_navigation.c index 243944f..623e4b4 100644 --- a/tests/test_demo_navigation.c +++ b/tests/test_demo_navigation.c @@ -14,6 +14,21 @@ int main(void) { result = demo_navigation_handle(&navigation, DEMO_NAV_INPUT_OK_CLICK, false); assert(result.action == DEMO_NAV_ACTION_NONE); assert(navigation.active == -1); + /* Integrated menu: all eight entries remain reachable, including Muyu. */ + demo_navigation_init(&navigation, 8); + for (size_t i = 0; i < 8; i++) { + result = demo_navigation_handle(&navigation, DEMO_NAV_INPUT_OK_CLICK, true); + assert(result.action == DEMO_NAV_ACTION_ENTER && result.index == i); + result = demo_navigation_handle(&navigation, DEMO_NAV_INPUT_OK_LONG, true); + assert(result.action == DEMO_NAV_ACTION_EXIT && navigation.active == (int)i); + demo_navigation_complete_exit(&navigation); + demo_navigation_handle(&navigation, DEMO_NAV_INPUT_DOWN_CLICK, true); + } + assert(navigation.selected == 0); + demo_navigation_handle(&navigation, DEMO_NAV_INPUT_UP_CLICK, true); + assert(navigation.selected == 7); + demo_navigation_init(&navigation, 3); + demo_navigation_handle(&navigation, DEMO_NAV_INPUT_UP_CLICK, true); result = demo_navigation_handle(&navigation, DEMO_NAV_INPUT_DOWN_CLICK, true); assert(result.action == DEMO_NAV_ACTION_REFRESH); diff --git a/tests/test_demo_wifi_runtime.c b/tests/test_demo_wifi_runtime.c deleted file mode 100644 index 950023f..0000000 --- a/tests/test_demo_wifi_runtime.c +++ /dev/null @@ -1,100 +0,0 @@ -#include "demo_stubs/demo_runtime.c" -#include "../main/demo_wifi.c" - -static unsigned step, fail_at, destroys; -static bool netif_live, driver_registered, defaults_live, wifi_live, wifi_running, handler_live; -static esp_netif_t netif; - -static esp_err_t next_step(void) { return ++step == fail_at ? ESP_ERR_NO_MEM : ESP_OK; } - -esp_netif_t *esp_netif_new(const esp_netif_config_t *cfg) { - (void)cfg; - assert(!netif_live); - if (next_step() != ESP_OK) return NULL; - netif_live = true; - return &netif; -} -esp_err_t esp_netif_attach_wifi_station(esp_netif_t *created) { - assert(created == &netif && netif_live); - driver_registered = true; // IDF stores the pointer even when attach fails. - return next_step(); -} -esp_err_t esp_wifi_set_default_wifi_sta_handlers(void) { - assert(driver_registered); - esp_err_t result = next_step(); - defaults_live = result == ESP_OK; // IDF rolls back partially added handlers. - return result; -} -void esp_netif_destroy_default_wifi(void *created) { - assert(created == &netif && netif_live && !wifi_live && !handler_live); - netif_live = driver_registered = defaults_live = false; - destroys++; -} -esp_err_t esp_wifi_init(const wifi_init_config_t *cfg) { - (void)cfg; - assert(defaults_live); - esp_err_t result = next_step(); - wifi_live = result == ESP_OK; - return result; -} -esp_err_t esp_wifi_deinit(void) { - assert(wifi_live && !wifi_running && !handler_live); - wifi_live = false; - return ESP_OK; -} -esp_err_t esp_event_handler_instance_register(esp_event_base_t base, int32_t id, - void (*callback)(void *, esp_event_base_t, int32_t, void *), void *arg, - esp_event_handler_instance_t *instance) { - (void)base; (void)id; (void)callback; (void)arg; - esp_err_t result = next_step(); - if (result == ESP_OK) { handler_live = true; *instance = &netif; } - return result; -} -esp_err_t esp_event_handler_instance_unregister(esp_event_base_t base, int32_t id, - esp_event_handler_instance_t instance) { - (void)base; (void)id; - assert(handler_live && instance == &netif); - handler_live = false; - return ESP_OK; -} -esp_err_t esp_wifi_set_storage(int storage) { (void)storage; return next_step(); } -esp_err_t esp_wifi_set_mode(int mode) { (void)mode; return next_step(); } -esp_err_t esp_wifi_start(void) { - esp_err_t result = next_step(); - wifi_running = result == ESP_OK; - return result; -} -esp_err_t esp_wifi_stop(void) { assert(wifi_running); wifi_running = false; return ESP_OK; } -esp_err_t esp_wifi_scan_start(const void *cfg, bool blocking) { - (void)cfg; (void)blocking; assert(wifi_running); return next_step(); -} -esp_err_t esp_wifi_scan_stop(void) { assert(wifi_running); return ESP_OK; } - -static void assert_clean(void) { - assert(!s_sta_netif && !s_wifi_initialized && !s_wifi_started && !s_handler_registered); - assert(!netif_live && !driver_registered && !defaults_live); - assert(!wifi_live && !wifi_running && !handler_live); -} - -int main(void) { - for (unsigned failure = 1; failure <= 9; failure++) { - step = 0; - fail_at = failure; - unsigned before = destroys; - assert(demo_wifi_start() == ESP_ERR_NO_MEM); - assert(step == failure && s_state == WIFI_DEMO_FAILED); - assert(destroys == before + (failure > 1)); - assert_clean(); - assert(demo_wifi_stop() == ESP_OK); - assert_clean(); - // Once resources are available, entry after the failure must work. - step = fail_at = 0; - assert(demo_wifi_start() == ESP_OK); - assert(step == 9 && s_state == WIFI_DEMO_SCANNING); - assert(demo_wifi_start() == ESP_ERR_INVALID_STATE); - assert(demo_wifi_stop() == ESP_OK); - assert_clean(); - } - puts("Wi-Fi allocation/attach/handler/start failure rollback tests: PASS"); - return 0; -} diff --git a/tests/test_face_clock.c b/tests/test_face_clock.c new file mode 100644 index 0000000..663c4e4 --- /dev/null +++ b/tests/test_face_clock.c @@ -0,0 +1,36 @@ +#include "xiaozhi_face.h" +#include "badge_clock.h" +#include +#include +int main(void){ + assert(xz_face_emotion("happy")==XZ_FACE_HAPPY); + assert(xz_face_emotion("crying")==XZ_FACE_CRYING); + assert(xz_face_emotion("unknown")==XZ_FACE_NEUTRAL); + assert(xz_face_emotion(NULL)==XZ_FACE_NEUTRAL); + assert(xz_face_mouth(XZ_SPEAKING,80,1100,1000)==3); + assert(xz_face_mouth(XZ_SPEAKING,80,1100,1100)==0); + assert(xz_face_mouth(XZ_SPEAKING,80,1100,6000)==0); + assert(xz_face_mouth(XZ_SPEAKING,0,1100,1000)==0); + assert(xz_face_mouth(XZ_READY,80,1100,1000)==0); + assert(xz_face_mouth(XZ_LISTENING,80,1100,1000)==0); + assert(xz_face_mouth(XZ_SPEAKING,80,40,UINT32_MAX-20)==3); + assert(xz_face_mouth(XZ_SPEAKING,80,40,50)==0); + assert(xz_face_eyes(XZ_LISTENING,XZ_FACE_ANGRY,200)==XZ_FACE_NEUTRAL); + assert(xz_face_eyes(XZ_THINKING,XZ_FACE_HAPPY,200)==XZ_FACE_THINKING); + const char *names[]={"neutral","happy","laughing","funny","sad","angry","crying","loving","embarrassed","surprised","shocked","thinking","winking","cool","relaxed","delicious","kissy","confident","sleepy","silly","confused"}; + for(unsigned i=0;i +#include +int main(void){ + /* Three rows: transparent, mixed alpha, solid. */ + uint8_t data[]={8,0,10,0,16,0,18,0, 8,0, 2,0,3,128,3,255, 8,255}; + uint8_t out[10];memset(out,77,sizeof(out)); + assert(xz_face_rle_row(data,sizeof(data),8,3,1,1,5,out+1)); + const uint8_t expected[]={77,0,128,128,128,255,77,77,77,77}; + assert(!memcmp(out,expected,sizeof(out))); + assert(xz_face_rle_row(data,sizeof(data),8,3,2,0,8,out)); + for(unsigned i=0;i<8;i++)assert(out[i]==255); + assert(xz_face_rle_row(data,sizeof(data),8,3,0,0,8,out)); + for(unsigned i=0;i<8;i++)assert(out[i]==0); + assert(!xz_face_rle_row(data,7,8,3,0,0,8,out)); + assert(!xz_face_rle_row(data,sizeof(data),8,3,3,0,8,out)); + assert(!xz_face_rle_row(data,sizeof(data),8,3,0,7,2,out)); + assert(!xz_face_rle_row(data,sizeof(data),8,3,0,9,0,out)); + data[8]=0;assert(!xz_face_rle_row(data,sizeof(data),8,3,0,0,8,out)); + data[8]=9;assert(!xz_face_rle_row(data,sizeof(data),8,3,0,0,8,out)); + data[8]=7;assert(!xz_face_rle_row(data,sizeof(data),8,3,0,0,8,out)); + data[8]=8;data[2]=19;assert(!xz_face_rle_row(data,sizeof(data),8,3,0,0,8,out)); + data[2]=9;assert(!xz_face_rle_row(data,sizeof(data),8,3,0,0,8,out)); + data[0]=0;assert(!xz_face_rle_row(data,sizeof(data),8,3,0,0,8,out)); + puts("Face lossless row decoder: clipped/random rows and invalid streams PASS"); +} diff --git a/tests/test_face_symmetry.py b/tests/test_face_symmetry.py new file mode 100644 index 0000000..dd0798a --- /dev/null +++ b/tests/test_face_symmetry.py @@ -0,0 +1,57 @@ +"""Check the actual compiled A8/RLE resources, without image-library dependencies.""" +from pathlib import Path +import re +import struct + +source = (Path(__file__).resolve().parents[1] / 'main/xiaozhi_face_assets.c').read_text() +buffers = {name: bytes(map(int, re.findall(r'\d+', body))) for name, body in + re.findall(r'static const uint8_t (\w+)\[\]=\{(.*?)\};', source, re.S)} +pattern = re.compile(r'\.flags=([^,]+),\.w=(\d+),\.h=(\d+),\.stride=\d+\},' + r'\.data_size=(\d+),\.data=(\w+)\},\.x=(-?\d+),\.y=(-?\d+)') + +def assets(name): + body = re.search(r'const xz_face_asset_t '+name+r'(?:\[[^]]+\])?=(.*?);', source, re.S)[1] + return pattern.findall(body) + +def plane(asset, width, height): + flags, w, h, size, name, x, y = asset + w, h, size, x, y = map(int, (w, h, size, x, y)) + data = buffers[name] + assert len(data) == size + result = [bytearray(width) for _ in range(height)] + for row in range(h): + if 'COMPRESSED' in flags: + start, end = struct.unpack_from(' 0 + pixels.extend([data[at+1]] * data[at]) + else: + pixels = data[row*w:(row+1)*w] + assert len(pixels) == w + for col, alpha in enumerate(pixels): + if 0 <= y+row < height and 0 <= x+col < width: + result[y+row][x+col] = alpha + else: + assert alpha == 0 # Only transparent alignment padding may extend outside. + return result + +for name in ('xz_face_eye_frames', 'xz_abstract_eye_frames'): + entries = assets(name) + assert len(entries) == 26 + for entry in entries: + assert all(row == row[::-1] for row in plane(entry, 80, 32)), name + # Both historical wink IDs now perform the same synchronized blink. + for index in (12, 25): + assert plane(entries[index], 80, 32) == plane(entries[21], 80, 32) +left, right = assets('xz_round_eye_left_frames'), assets('xz_round_eye_right_frames') +assert len(left) == len(right) == 26 +for a, b in zip(left, right): + joined = [bytearray(max(x, y) for x, y in zip(l, r)) + for l, r in zip(plane(a, 112, 28), plane(b, 112, 28))] + assert all(row == row[::-1] for row in joined) +for entry, w, h in ((assets('xz_portrait_tear')[0], 10, 16), (assets('xz_face_decor')[1], 12, 27), + (assets('xz_face_decor')[3], 12, 20)): + assert all(row == row[::-1] for row in plane(entry, w, h)) +print('Compiled face masks: all 78 eye pairs, synchronized winks and both tear masks symmetric PASS') diff --git a/tests/test_face_transition.c b/tests/test_face_transition.c new file mode 100644 index 0000000..499d3ac --- /dev/null +++ b/tests/test_face_transition.c @@ -0,0 +1,26 @@ +#include "xiaozhi_face_transition.h" +#include +#include +int main(void){ + xz_face_transition_t t={0}; + assert(xz_face_transition(&t,XZ_THINKING,XZ_FACE_NEUTRAL,100)==XZ_FACE_THINKING); + assert(xz_face_transition(&t,XZ_THINKING,XZ_FACE_HAPPY,300)==XZ_FACE_THINKING); + assert(t.until==1000); + assert(xz_face_transition(&t,XZ_SPEAKING,XZ_FACE_HAPPY,350)==XZ_FACE_THINKING); + assert(xz_face_mouth(XZ_SPEAKING,85,450,350)==3); + assert(xz_face_transition(&t,XZ_SPEAKING,XZ_FACE_SAD,999)==XZ_FACE_THINKING); + assert(xz_face_transition(&t,XZ_SPEAKING,XZ_FACE_SAD,1000)==XZ_FACE_SAD); + xz_state_t cancels[]={XZ_LISTENING,XZ_READY,XZ_ERROR,XZ_ACTIVATION}; + for(unsigned i=0;i +#include +int main(void){ + xz_face_selector_t s={0}; + for(unsigned e=0;eeyesmoutheyesmouthmouth); + assert(xz_face_pose_mouth(XZ_READY,(xz_face_t)e,v,80,1100,1000)==p->mouth); + assert(xz_face_pose_mouth(XZ_SPEAKING,(xz_face_t)e,v,80,40,UINT32_MAX-20)==XZ_FACE_COUNT+2); + assert(xz_face_pose_mouth(XZ_SPEAKING,(xz_face_t)e,v,80,40,50)==p->mouth); + } + } + xz_face_new_turn(&s);unsigned first=xz_face_select(&s,XZ_FACE_HAPPY,0); + xz_face_select(&s,XZ_FACE_SAD,1);assert(xz_face_select(&s,XZ_FACE_HAPPY,0)!=first); + assert(xz_face_pose((xz_face_t)999,999)==xz_face_pose(XZ_FACE_NEUTRAL,0)); + assert(xz_portrait_pose((xz_face_t)999,999)==xz_portrait_pose(XZ_FACE_NEUTRAL,0)); + assert(xz_portrait_pose(XZ_FACE_ANGRY,2)->eyes==XZ_FACE_ANGRY); + assert(xz_portrait_pose(XZ_FACE_THINKING,2)->eyes==XZ_FACE_NEUTRAL); + assert(xz_portrait_pose(XZ_FACE_DELICIOUS,1)->mouth==XZ_FACE_DELICIOUS); + assert(xz_roadking_pose(XZ_FACE_NEUTRAL,0)==xz_portrait_pose(XZ_FACE_ANGRY,0)); + assert(xz_roadking_pose(XZ_FACE_NEUTRAL,1)==xz_portrait_pose(XZ_FACE_ANGRY,1)); + assert(xz_roadking_pose(XZ_FACE_NEUTRAL,2)==xz_portrait_pose(XZ_FACE_CONFIDENT,0)); + assert(xz_roadking_pose((xz_face_t)999,999)==xz_roadking_pose(XZ_FACE_NEUTRAL,0)); + for(unsigned e=1;eeyes==XZ_FACE_NEUTRAL); + assert(xz_roadking_pose((xz_face_t)e,v)->mouth==e); + }else if(v==1&&e==XZ_FACE_KISSY){ + assert(xz_roadking_pose((xz_face_t)e,v)->eyes==XZ_FACE_HAPPY); + assert(xz_roadking_pose((xz_face_t)e,v)->mouth==XZ_FACE_KISSY); + }else assert(xz_roadking_pose((xz_face_t)e,v)==xz_portrait_pose((xz_face_t)e,v)); + } + assert(xz_roadking_eyes(XZ_FACE_NEUTRAL,0,true)==XZ_EYE_ANGRY_PUFF); + assert(xz_roadking_eyes(XZ_FACE_NEUTRAL,2,false)==XZ_FACE_CONFIDENT); + assert(xz_portrait_pose(XZ_FACE_NEUTRAL,0)->eyes==XZ_FACE_NEUTRAL); + puts("21 x 3 poses: no consecutive repetition, stable duplicate tags, valid assets, speech expiry/interruption/wraparound PASS"); +} diff --git a/tests/test_flash_badge.py b/tests/test_flash_badge.py new file mode 100644 index 0000000..63c22cf --- /dev/null +++ b/tests/test_flash_badge.py @@ -0,0 +1,61 @@ +"""Migration accepts only the recognized, intact image below the resource boundary.""" +import hashlib +from pathlib import Path +import struct +import sys +import unittest +from unittest.mock import patch +from types import SimpleNamespace +sys.path.insert(0,str(Path(__file__).resolve().parent.parent/'tools')) +from flash_badge import old_badge_application, validate_existing, validate_write_ranges + +def image(payload=b'Arasaka Personnel Badge 1.7.1 starting'): + header=bytearray(24);header[0]=0xe9;header[1]=1;header[23]=1 + data=header+struct.pack(' None: - temporary = tempfile.TemporaryDirectory(prefix="ai-passport-skill-tests-") - self.addCleanup(temporary.cleanup) - self.root = Path(temporary.name).resolve() - root_patch = patch.object(INSTALLER, "ROOT", self.root) - root_patch.start() - self.addCleanup(root_patch.stop) - for name in INSTALLER.SKILL_NAMES: - source = self.root / "skills" / name - source.mkdir(parents=True) - (source / "SKILL.md").write_text(f"# {name}\n", encoding="utf-8") - - def run_installer(self, *args: str) -> tuple[int, str, str]: - with ( - contextlib.redirect_stdout(io.StringIO()) as output, - contextlib.redirect_stderr(io.StringIO()) as errors, - ): - code = INSTALLER.main(list(args)) - return code, output.getvalue(), errors.getvalue() - - def symlink(self, link: Path, target: Path, *, directory: bool = True) -> None: - try: - link.symlink_to(target, target_is_directory=directory) - except NotImplementedError: - self.skipTest("This platform does not support symlinks") - except OSError as error: - if getattr(error, "winerror", None) != 1314: - raise - self.skipTest("Windows symlink tests require Developer Mode or elevation") - - def make_installation(self) -> Path: - destination = self.root / ".agents" / "skills" - destination.mkdir(parents=True) - for name in INSTALLER.SKILL_NAMES: - self.symlink(destination / name, Path("..") / ".." / "skills" / name) - return destination - - def test_missing_installation_and_default_check_do_not_write(self) -> None: - for args in ((), ("--check",)): - with self.subTest(args=args): - code, output, errors = self.run_installer(*args) - self.assertEqual(code, 1) - self.assertEqual(output.count("MISSING:"), 5) - self.assertIn("no files were changed", errors) - self.assertFalse((self.root / ".agents").exists()) - - def test_check_recognizes_all_relative_links(self) -> None: - self.make_installation() - code, output, errors = self.run_installer("--check") - self.assertEqual((code, errors), (0, "")) - self.assertEqual(output.count("OK:"), 5) - self.assertIn("All 5 skill links", output) - - def test_install_creates_relative_links_and_is_idempotent(self) -> None: - code, _, errors = self.run_installer("--install") - self.assertEqual((code, errors), (0, "")) - snapshots = {} - for name in INSTALLER.SKILL_NAMES: - link = self.root / ".agents" / "skills" / name - self.assertTrue(link.is_symlink()) - self.assertFalse(Path(os.readlink(link)).is_absolute()) - self.assertEqual(link.resolve(), self.root / "skills" / name) - snapshots[name] = link.lstat() - code, output, errors = self.run_installer("--install") - self.assertEqual((code, errors), (0, "")) - self.assertNotIn("CREATED:", output) - for name, before in snapshots.items(): - after = (self.root / ".agents" / "skills" / name).lstat() - self.assertEqual((after.st_ino, after.st_mtime_ns), (before.st_ino, before.st_mtime_ns)) - - def test_missing_final_source_prevents_all_writes(self) -> None: - name = INSTALLER.SKILL_NAMES[-1] - (self.root / "skills" / name / "SKILL.md").unlink() - code, _, errors = self.run_installer("--install") - self.assertEqual(code, 1) - self.assertIn(f"invalid source skills/{name}/SKILL.md", errors) - self.assertFalse((self.root / ".agents").exists()) - - def test_unreadable_source_prevents_all_writes(self) -> None: - original = Path.read_text - unreadable = self.root / "skills" / INSTALLER.SKILL_NAMES[-1] / "SKILL.md" - - def read(path: Path, *args, **kwargs): - if path == unreadable: - raise PermissionError("synthetic unreadable source") - return original(path, *args, **kwargs) - - with patch.object(Path, "read_text", read): - code, _, errors = self.run_installer("--install") - self.assertEqual(code, 1) - self.assertIn("synthetic unreadable source", errors) - self.assertFalse((self.root / ".agents").exists()) - - def test_check_rejects_missing_source_after_installation(self) -> None: - self.make_installation() - (self.root / "skills" / INSTALLER.SKILL_NAMES[0] / "SKILL.md").unlink() - code, _, errors = self.run_installer("--check") - self.assertEqual(code, 1) - self.assertIn("invalid source", errors) - - def test_wrong_link_prevents_other_installations_and_is_preserved(self) -> None: - destination = self.root / ".agents" / "skills" - destination.mkdir(parents=True) - name = INSTALLER.SKILL_NAMES[-1] - link = destination / name - wrong = Path("..") / ".." / "skills" / INSTALLER.SKILL_NAMES[0] - self.symlink(link, wrong) - code, _, errors = self.run_installer("--install") - self.assertEqual(code, 1) - self.assertIn("invalid destination", errors) - self.assertEqual(os.readlink(link), str(wrong)) - self.assertEqual(list(destination.iterdir()), [link]) - - def test_absolute_link_is_rejected(self) -> None: - destination = self.root / ".agents" / "skills" - destination.mkdir(parents=True) - name = INSTALLER.SKILL_NAMES[0] - self.symlink(destination / name, self.root / "skills" / name) - code, _, errors = self.run_installer("--check") - self.assertEqual(code, 1) - self.assertIn("expected a relative link", errors) - - def test_broken_link_is_rejected_and_preserved(self) -> None: - destination = self.root / ".agents" / "skills" - destination.mkdir(parents=True) - link = destination / INSTALLER.SKILL_NAMES[-1] - self.symlink(link, Path("missing-target")) - code, _, errors = self.run_installer("--install") - self.assertEqual(code, 1) - self.assertIn("invalid destination", errors) - self.assertEqual(os.readlink(link), "missing-target") - self.assertEqual(list(destination.iterdir()), [link]) - - def test_existing_directory_and_file_conflicts_are_preserved(self) -> None: - destination = self.root / ".agents" / "skills" - destination.mkdir(parents=True) - directory = destination / INSTALLER.SKILL_NAMES[-1] - directory.mkdir() - marker = directory / "user-content" - marker.write_text("preserve", encoding="utf-8") - file = destination / INSTALLER.SKILL_NAMES[-2] - file.write_text("preserve file", encoding="utf-8") - code, _, errors = self.run_installer("--install") - self.assertEqual(code, 1) - self.assertEqual(errors.count("not a symlink"), 2) - self.assertEqual(marker.read_text(encoding="utf-8"), "preserve") - self.assertEqual(file.read_text(encoding="utf-8"), "preserve file") - self.assertEqual(set(destination.iterdir()), {directory, file}) - - def test_external_parent_symlink_is_rejected_without_external_writes(self) -> None: - with tempfile.TemporaryDirectory(prefix="ai-passport-skill-external-") as external: - target = Path(external) - self.symlink(self.root / ".agents", target) - for args in ("--check", "--install"): - code, _, errors = self.run_installer(args) - self.assertEqual(code, 1) - self.assertIn("installation parent is a symlink", errors) - self.assertEqual(list(target.iterdir()), []) - - def test_internal_skills_parent_symlink_is_rejected(self) -> None: - target = self.root / "local-skills" - target.mkdir() - (self.root / ".agents").mkdir() - self.symlink(self.root / ".agents" / "skills", target) - code, _, errors = self.run_installer("--install") - self.assertEqual(code, 1) - self.assertIn("installation parent is a symlink", errors) - self.assertEqual(list(target.iterdir()), []) - - def test_parent_file_conflict_is_preserved(self) -> None: - parent = self.root / ".agents" - parent.write_text("preserve parent", encoding="utf-8") - code, _, errors = self.run_installer("--install") - self.assertEqual(code, 1) - self.assertIn("installation parent is not a directory", errors) - self.assertEqual(parent.read_text(encoding="utf-8"), "preserve parent") - - def test_existing_other_skill_is_preserved(self) -> None: - other = self.root / ".agents" / "skills" / "user-skill" / "SKILL.md" - other.parent.mkdir(parents=True) - other.write_text("user-owned skill", encoding="utf-8") - before = other.stat() - code, _, errors = self.run_installer("--install") - self.assertEqual((code, errors), (0, "")) - self.assertEqual(other.read_text(encoding="utf-8"), "user-owned skill") - after = other.stat() - self.assertEqual((after.st_ino, after.st_mtime_ns), (before.st_ino, before.st_mtime_ns)) - - def test_source_document_cannot_escape_repository(self) -> None: - with tempfile.TemporaryDirectory(prefix="ai-passport-skill-external-") as external: - target = Path(external) / "SKILL.md" - target.write_text("outside", encoding="utf-8") - source = self.root / "skills" / INSTALLER.SKILL_NAMES[0] / "SKILL.md" - source.unlink() - self.symlink(source, target, directory=False) - code, _, errors = self.run_installer("--install") - self.assertEqual(code, 1) - self.assertIn("SKILL.md must be a file inside the repository", errors) - self.assertFalse((self.root / ".agents").exists()) - - def test_partial_installation_failure_reports_kept_links_and_manual_paths(self) -> None: - original = Path.symlink_to - failing = INSTALLER.SKILL_NAMES[2] - - def symlink(path: Path, *args, **kwargs): - if path.name == failing: - raise OSError("synthetic symlink failure") - return original(path, *args, **kwargs) - - with patch.object(Path, "symlink_to", symlink): - code, output, errors = self.run_installer("--install") - self.assertEqual(code, 1) - self.assertIn("synthetic symlink failure", errors) - self.assertIn("Created 2 of 5 missing links", errors) - self.assertIn("created links and directories were kept", errors) - self.assertEqual(output.count("CREATED:"), 2) - for name in INSTALLER.SKILL_NAMES: - self.assertIn(str(self.root / "skills" / name / "SKILL.md"), errors) - self.assertEqual( - {path.name for path in (self.root / ".agents" / "skills").iterdir()}, - set(INSTALLER.SKILL_NAMES[:2]), - ) - - def test_unsupported_symlinks_give_manual_reading_instructions(self) -> None: - with patch.object(Path, "symlink_to", side_effect=NotImplementedError("unavailable")): - code, _, errors = self.run_installer("--install") - self.assertEqual(code, 1) - self.assertIn("Created 0 of 5 missing links", errors) - self.assertIn("Windows", errors) - self.assertIn("read the canonical files directly", errors) - - def test_cli_uses_script_repository_instead_of_working_directory(self) -> None: - script = self.root / "tools" / "install_passport_skills.py" - script.parent.mkdir() - shutil.copyfile(SCRIPT, script) - self.make_installation() - with tempfile.TemporaryDirectory(prefix="ai-passport-skill-cwd-") as unrelated: - result = subprocess.run( - [sys.executable, "-B", str(script), "--check"], - cwd=unrelated, - capture_output=True, - text=True, - check=False, - ) - self.assertEqual(result.returncode, 0, result.stderr) - self.assertIn(str(self.root), result.stdout) - self.assertEqual(list(Path(unrelated).iterdir()), []) - - -if __name__ == "__main__": - unittest.main() diff --git a/tests/test_menu_font.py b/tests/test_menu_font.py new file mode 100644 index 0000000..0f0c3fb --- /dev/null +++ b/tests/test_menu_font.py @@ -0,0 +1,54 @@ +#!/usr/bin/env python3 +"""Check actual generated menu text against the committed font's cmap.""" +import re +import sys +from pathlib import Path + +ROOT = Path(__file__).resolve().parents[1] + +def coverage(font, text): + source = (ROOT / 'main' / font).read_text(encoding='utf-8') + if 'font_ui_14_descriptor' in source: + source = (ROOT/'main/font_ui_14.c').read_text(encoding='utf-8') + offsets = re.search(r'uint16_t unicode\[\]\s*=\s*\{([^}]+)\}', source)[1] + start = int(re.search(r'\.range_start=(\d+)', source)[1]) + glyphs = {chr(start + int(n)) for n in offsets.split(',')} + missing = sorted(set(text) - glyphs - {'\n', '\r', '\t'}) + assert not missing, f'{font}: missing glyphs {missing}' + +generated = (Path(sys.argv[1]) / 'voice_catalog.h').read_text(encoding='utf-8') +summary = re.search(r'#define VOICE_SUMMARY "([^"]+)"', generated)[1] +coverage('font_muyu_14.c', '音效钥匙扣' + summary) +presets = (ROOT / 'main/radio_presets.cc').read_text(encoding='utf-8') +coverage('font_radio_14.c', ''.join(re.findall(r'\{"([^"]+)"', presets))) +registry = (ROOT / 'main/game_registry.c').read_text(encoding='utf-8') +shengbei = (ROOT / 'main/shengbei_app.c').read_text(encoding='utf-8') +coverage('font_muyu_14.c', ''.join(re.findall(r'"([^"]*[\u3000-\u9fff][^"]*)"', registry + shengbei))) +coverage('font_badge_28.c', '圣�笑阴阳未投掷') +print('Menu generated summary, app labels and all preset station names: font coverage PASS') + +# The complete control legend must fit at once, including long-press actions. +footer = (ROOT / 'main/badge_footer.h').read_text(encoding='utf-8') +hints = re.findall(r'#define BADGE_HINT_\w+ "([^"\n]+)"', footer) +font = (ROOT / 'main/font_badge_10.c').read_text(encoding='utf-8') +start = int(re.search(r'\.range_start=(\d+)', font)[1]) +offsets = re.search(r'uint16_t unicode\[\]\s*=\s*\{([^}]+)\}', font)[1] +chars = [chr(start + int(n)) for n in offsets.split(',')] +advances = [int(n) for n in re.findall(r'\.adv_w=(\d+)', font)] +assert len(chars) == len(advances) +widths = dict(zip(chars, advances)) +assert hints +for hint in hints: + coverage('font_badge_10.c', hint) + assert '\\n' not in hint + assert sum(widths[c] for c in hint) <= 224 * 16, f'Footer too wide: {hint}' +print('All footer actions: glyph coverage and single-line width PASS') + +# Narrow Latin glyphs must not inherit a fixed-width cell. Match LVGL pixel rounding. +assert widths['I'] < widths['M'] and widths['i'] < widths['W'] +def pixel_width(text): return sum((widths[c]+8)//16 for c in text) +assert pixel_width('AI Passport') <= 78 +assert pixel_width('100%') <= 32 +assert pixel_width('23:59') <= 54 +for hint in hints: assert pixel_width(hint) <= 224, hint +print('Proportional Latin spacing, battery/header and rounded footer widths PASS') diff --git a/tests/test_muyu_logic.c b/tests/test_muyu_logic.c new file mode 100644 index 0000000..f675185 --- /dev/null +++ b/tests/test_muyu_logic.c @@ -0,0 +1,39 @@ +#include "muyu_logic.h" +#include +#include +int main(void) +{ + muyu_state_t s; + muyu_init(&s, 42, 1, 2, 0); + assert(!s.automatic && !s.dirty && s.session == 0 && s.total == 42); + assert(muyu_strike(&s) && s.total == 43 && s.session == 1); + assert(!muyu_save_due(&s, 9999) && muyu_save_due(&s, 10000)); + muyu_saved(&s, 10000, false); + assert(s.dirty && !muyu_save_due(&s, 10001)); + assert(muyu_save_due(&s, 20000)); + muyu_saved(&s, 20000, true); + assert(!s.dirty); + muyu_toggle_auto(&s, 20000); + assert(!muyu_tick(&s, 20999)); + assert(muyu_tick(&s, 21000) && s.total == 44); + assert(muyu_tick(&s, 60000) && s.total == 45); + assert(!muyu_tick(&s, 60000)); + muyu_toggle_auto(&s, 60001); + assert(!muyu_tick(&s, 90000)); + for (unsigned i = 0; i < MUYU_SPEED_COUNT; i++) muyu_next_speed(&s, 90000); + assert(s.speed == 1 && muyu_interval(&s) == 1000); + for (unsigned i = 0; i < MUYU_VOLUME_COUNT; i++) muyu_next_volume(&s); + assert(s.volume == 2 && muyu_volume(&s) == 40); + muyu_init(&s, UINT32_MAX, 255, 255, UINT32_MAX - 500); + assert(s.total == MUYU_COUNT_MAX && s.speed == 1 && s.volume == 2); + assert(!muyu_strike(&s) && s.total == MUYU_COUNT_MAX && s.session == 1); + muyu_toggle_auto(&s, UINT32_MAX - 500); + assert(!muyu_tick(&s, 498) && muyu_tick(&s, 499)); + muyu_next_speed(&s, 500); + assert(!muyu_tick(&s, 1249) && muyu_tick(&s, 1250)); + s.dirty = true; + assert(muyu_save_due(&s, 9499)); + muyu_init(&s, 123, 3, 0, 0); + assert(s.total == 123 && !s.automatic && muyu_volume(&s) == 0); + puts("muyu logic: PASS (count, saturation, settings, auto timing, rollover, save retry)"); +} diff --git a/tests/test_profile_edit.c b/tests/test_profile_edit.c new file mode 100644 index 0000000..ce063e2 --- /dev/null +++ b/tests/test_profile_edit.c @@ -0,0 +1,27 @@ +#define main profile_store_tests_main +#include "test_profile_store.c" +#undef main +#include "profile_edit.h" +#include "lvgl.h" +bool profile_protocol_lock(void){return true;} +void profile_protocol_unlock(void){} +int main(void){ + profile_store_tests_main(); + profile_store_displayed(profile_store_revision()); + const char *json="{\"name\":\"FOLO MAKER\",\"department\":\"设计部\",\"title\":\"工程师\",\"alias\":\"ART\",\"theme\":{\"background\":\"#08090b\",\"text\":\"#e8e6df\",\"muted\":\"#a69c9f\"}}"; + assert(profile_store_begin_format(0,json,strlen(json),4,true)==ESP_OK);upload_bytes(0x77,PROFILE_V4_BYTES);assert(profile_store_commit()==ESP_OK); + profile_store_displayed(profile_store_revision());unsigned rev=profile_store_revision_for(0); + assert(profile_edit_locked(0,rev+1,2,"产�设计师")==ESP_ERR_INVALID_STATE); + assert(profile_edit_locked(0,rev,2,"产�设计师")==ESP_OK); + const uint8_t *pixels=profile_store_card_for(0);unsigned changed=0; + for(size_t i=0;i=90&&y<122){if(pixels[i]!=0x77)changed++;}else assert(pixels[i]==0x77);} + assert(changed>5000);cJSON *p=profile_edit_get(0);assert(p&&!strcmp(cJSON_GetObjectItemCaseSensitive(p,"title")->valuestring,"产�设计师"));cJSON_Delete(p); + profile_store_displayed(profile_store_revision());rev=profile_store_revision_for(0); + assert(profile_edit_locked(0,rev,0,"\xf4\x8f\xbf\xbf")==ESP_ERR_INVALID_ARG);assert(profile_store_revision_for(0)==rev); + assert(profile_edit_locked(0,rev,0,"测试姓�")==ESP_OK);profile_store_displayed(profile_store_revision()); + rev=profile_store_revision_for(0);assert(profile_edit_locked(0,rev,1,"")==ESP_OK);profile_store_displayed(profile_store_revision()); + rev=profile_store_revision_for(0);fail_header=true;assert(profile_edit_locked(0,rev,2,"失败测试")!=ESP_OK);fail_header=false; + assert(profile_store_init()==ESP_OK);p=profile_edit_get(0);assert(!strcmp(cJSON_GetObjectItemCaseSensitive(p,"title")->valuestring,"产�设计师"));cJSON_Delete(p); + assert(profile_store_asset_for(0,PROFILE_ASSET_QR)[0]==0x77&&profile_store_asset_for(0,PROFILE_ASSET_AVATAR)[0]==0x77); + puts("Profile edit PASS: real Chinese glyphs, stale revision, unsupported characters, persistent JSON+pixels, asset preservation and rollback");return 0; +} diff --git a/tests/test_profile_store.c b/tests/test_profile_store.c new file mode 100644 index 0000000..ed26dfe --- /dev/null +++ b/tests/test_profile_store.c @@ -0,0 +1,135 @@ +#include "profile_store.h" +#include "esp_partition.h" +#include +#include +#include +static unsigned char flash[2*PROFILE_SLOT_SIZE]; +static esp_partition_t part={sizeof(flash)}; +static bool fail_header,extras_available,missing_partition,fail_mapping; +static unsigned char extra_flash[(PROFILE_BADGE_COUNT-1)*2*PROFILE_SLOT_SIZE]; +static esp_partition_t extra_part={sizeof(extra_flash)}; +static unsigned char *storage(const esp_partition_t *p){return p==&part?flash:extra_flash;} +const esp_partition_t *esp_partition_find_first(int t,int st,const char *name) {(void)t;(void)st;if(missing_partition)return NULL;return !strcmp(name,"badge_user")?&part:extras_available&&!strcmp(name,"badge_slots")?&extra_part:NULL;} +esp_err_t esp_partition_mmap(const esp_partition_t *p,size_t off,size_t size,int type,const void **out,esp_partition_mmap_handle_t *handle){(void)type;if(fail_mapping)return ESP_FAIL;assert(off+size<=p->size);*out=storage(p)+off;*handle=1;return ESP_OK;} +esp_err_t esp_partition_erase_range(const esp_partition_t *p,size_t off,size_t size){assert(off+size<=p->size);assert(!(off%4096)&&!(size%4096));memset(storage(p)+off,255,size);return ESP_OK;} +esp_err_t esp_partition_write(const esp_partition_t *p,size_t off,const void *data,size_t size){unsigned char *flash=storage(p);assert(off+size<=p->size);size_t actual=fail_header&&size==sizeof(profile_header_t)?12:size;const unsigned char *src=data;for(size_t i=0;isizeof(data))count=sizeof(data);assert(profile_store_append(pos,data,count)==ESP_OK);pos+=count;}} +static void patch_first(size_t offset,uint8_t *p,size_t n,void *ctx){(void)n;(void)ctx;if(offset==0)p[0]=0xab;} +int main(void){ + missing_partition=true;assert(profile_store_init()==ESP_ERR_NOT_FOUND);assert(!profile_store_card_for(0));size_t empty;assert(!strcmp(profile_store_json_for(0,&empty),"{}")&&empty==2);assert(profile_store_version_for(0)==0);assert(profile_store_revision_for(0)==0); + missing_partition=false;fail_mapping=true;assert(profile_store_init()==ESP_FAIL);assert(!profile_store_card());fail_mapping=false; + assert((profile_crc32(UINT32_MAX,"123456789",9)^UINT32_MAX)==0xcbf43926u); + memset(flash,255,sizeof(flash));assert(profile_store_init()==ESP_OK);assert(!profile_store_card()); + assert(profile_store_begin("{}",2)==ESP_OK);assert(profile_store_commit()==ESP_ERR_INVALID_SIZE); + upload_bytes(0x12,PROFILE_PIXELS_BYTES);assert(profile_store_commit()==ESP_OK);assert(profile_store_card()[0]==0x12); + assert(profile_store_refresh_pending()&&!profile_store_ready()); + assert(profile_store_begin("{}",2)==ESP_ERR_INVALID_STATE);profile_store_displayed(profile_store_revision()); + assert(!profile_store_refresh_pending()&&profile_store_ready()); + assert(profile_store_begin("{}",2)==ESP_OK);unsigned char b=7;assert(profile_store_append(1,&b,1)==ESP_ERR_INVALID_ARG); + assert(profile_store_append(0,&b,1)==ESP_OK);profile_store_abort();assert(profile_store_init()==ESP_OK);assert(profile_store_card()[0]==0x12); + assert(profile_store_begin("{}",2)==ESP_OK);upload_bytes(0x34,PROFILE_PIXELS_BYTES);fail_header=true;assert(profile_store_commit()==ESP_FAIL);fail_header=false; + assert(profile_store_init()==ESP_OK);assert(profile_store_card()[0]==0x12); + assert(profile_store_begin("{}",2)==ESP_OK);upload_bytes(0x56,PROFILE_PIXELS_BYTES);assert(profile_store_commit()==ESP_OK); + assert(profile_store_init()==ESP_OK);assert(profile_store_card()[PROFILE_CARD_BYTES-1]==0x56); + unsigned char read[2];assert(profile_store_read(true,PROFILE_AVATAR_BYTES-1,read,2)==ESP_ERR_INVALID_ARG); + assert(profile_store_read(true,0,read,2)==ESP_OK&&read[0]==0x56); + assert(profile_store_version()==1);assert(!profile_store_asset(PROFILE_ASSET_QR)); + assert(profile_store_begin_v2("{}",2,true)==ESP_OK); + upload_bytes(0x99,PROFILE_V2_BYTES-1);assert(profile_store_commit()==ESP_ERR_INVALID_SIZE); + assert(profile_store_init()==ESP_OK);assert(profile_store_version()==1); + assert(profile_store_card()[0]==0x56); + assert(profile_store_begin_v2("{}",2,true)==ESP_OK);upload_bytes(0x77,PROFILE_V2_BYTES); + assert(profile_store_append(PROFILE_V2_BYTES,&b,1)==ESP_ERR_INVALID_ARG); + assert(profile_store_commit()==ESP_OK);assert(profile_store_init()==ESP_OK); + assert(profile_store_version()==2&&profile_store_asset(PROFILE_ASSET_BRAND)[0]==0x77); + assert(profile_store_asset(PROFILE_ASSET_LOGO)[PROFILE_LOGO_BYTES-1]==0x77); + assert(profile_store_read(PROFILE_ASSET_QR,PROFILE_QR_BYTES-2,read,2)==ESP_OK&&read[1]==0x77); + assert(profile_store_read(PROFILE_ASSET_QR,PROFILE_QR_BYTES-1,read,2)==ESP_ERR_INVALID_ARG); + assert(profile_store_begin_v2("{}",2,false)==ESP_OK);upload_bytes(0x88,PROFILE_V2_BYTES); + assert(profile_store_commit()==ESP_OK);assert(profile_store_init()==ESP_OK); + assert(!profile_store_asset(PROFILE_ASSET_QR)); + assert(profile_store_clear()==ESP_OK);assert(profile_store_init()==ESP_OK);assert(!profile_store_card()); + assert(profile_sequence_newer(1,UINT32_MAX));assert(!profile_sequence_newer(UINT32_MAX,1)); + extras_available=true;memset(extra_flash,255,sizeof(extra_flash)); + assert(profile_store_init()==ESP_OK&&profile_store_count()==5); + for(unsigned id=0;id<5;id++) { + profile_store_displayed(profile_store_revision()); + assert(profile_store_begin_for(id,"{}",2,true,id%2)==ESP_OK); + upload_bytes(0x20+id,PROFILE_V2_BYTES);assert(profile_store_commit()==ESP_OK); + } + assert(profile_store_card()[0]==0x20); + profile_store_displayed(profile_store_revision());assert(profile_store_select(4)==ESP_OK); + assert(profile_store_card()[0]==0x24);assert(profile_store_select(2)==ESP_ERR_INVALID_STATE); + profile_store_displayed(profile_store_revision()); + assert(profile_store_begin_for(1,"{}",2,true,true)==ESP_OK); + assert(profile_store_select(0)==ESP_ERR_INVALID_STATE);profile_store_abort(); + assert(profile_store_select(0)==ESP_OK);profile_store_displayed(profile_store_revision()); + assert(profile_store_begin_for(2,"{}",2,true,false)==ESP_OK);upload_bytes(0xaa,PROFILE_V2_BYTES); + fail_header=true;assert(profile_store_commit()==ESP_FAIL);fail_header=false; + assert(profile_store_init()==ESP_OK); + for(unsigned id=0;id<5;id++) { + assert(profile_store_card_for(id)[0]==0x20+id); + assert(profile_store_asset_for(id,PROFILE_ASSET_LOGO)[PROFILE_LOGO_BYTES-1]==0x20+id); + assert((profile_store_asset_for(id,PROFILE_ASSET_QR)!=NULL)==(id%2!=0)); + } + assert(profile_store_clear_for(2)==ESP_OK);profile_store_displayed(profile_store_revision()); + assert(!profile_store_card_for(2)&&profile_store_card_for(1)[0]==0x21); + assert(profile_store_select(5)==ESP_ERR_INVALID_ARG); + /* Upgrade one existing V2 card; the other slots and interrupted writes + * must remain valid. Exercise each new asset's final byte and bounds. */ + profile_store_displayed(profile_store_revision()); + assert(profile_store_begin_format(0,"{}",2,5,true)==ESP_ERR_INVALID_ARG); + assert(profile_store_begin_format(0,"{}",2,3,true)==ESP_OK); + upload_bytes(0x35,PROFILE_V3_BYTES-1);assert(profile_store_commit()==ESP_ERR_INVALID_SIZE); + assert(profile_store_init()==ESP_OK&&profile_store_version_for(0)==2); + assert(profile_store_begin_format(0,"{}",2,3,true)==ESP_OK); + upload_bytes(0x35,PROFILE_V3_BYTES);assert(profile_store_commit()==ESP_OK); + assert(profile_store_init()==ESP_OK&&profile_store_version_for(0)==3); + size_t offset=0; + for(unsigned asset=0;asset<=PROFILE_ASSET_QR;asset++) { + size_t size=profile_asset_size(3,asset); + assert(profile_store_asset_for(0,asset)==profile_store_card_for(0)+offset); + assert(profile_store_read_for(0,asset,size-2,read,2)==ESP_OK&&read[0]==0x35); + assert(profile_store_read_for(0,asset,size-1,read,2)==ESP_ERR_INVALID_ARG); + offset+=size; + } + assert(offset==PROFILE_V3_BYTES&&offset+PROFILE_DATA_OFFSET<=PROFILE_SLOT_SIZE); + assert(profile_store_version_for(1)==2&&profile_store_card_for(1)[0]==0x21); + assert(profile_store_begin_format(0,"{}",2,3,false)==ESP_OK); + upload_bytes(0x36,PROFILE_V3_BYTES);fail_header=true;assert(profile_store_commit()==ESP_FAIL);fail_header=false; + assert(profile_store_init()==ESP_OK&&profile_store_card_for(0)[0]==0x35); + puts("Portrait V3: mixed versions, upgrade, asset offsets/bounds, interrupted write/commit PASS"); + assert(profile_store_begin_format(4,"{}",2,4,true)==ESP_OK); + upload_bytes(0x44,PROFILE_V4_BYTES-1);assert(profile_store_commit()==ESP_ERR_INVALID_SIZE); + assert(profile_store_init()==ESP_OK&&profile_store_version_for(4)==2); + assert(profile_store_begin_format(4,"{}",2,4,true)==ESP_OK); + upload_bytes(0x44,PROFILE_V4_BYTES);assert(profile_store_commit()==ESP_OK); + assert(profile_store_init()==ESP_OK&&profile_store_version_for(4)==4); + offset=0; + for(unsigned asset=0;asset<=PROFILE_ASSET_QR;asset++) { + size_t size=profile_asset_size(4,asset); + assert(profile_store_asset_for(4,asset)==profile_store_card_for(4)+offset); + assert(profile_store_read_for(4,asset,size-2,read,2)==ESP_OK&&read[0]==0x44); + assert(profile_store_read_for(4,asset,size-1,read,2)==ESP_ERR_INVALID_ARG); + offset+=size; + } + assert(offset==PROFILE_V4_BYTES&&offset+PROFILE_DATA_OFFSET<=PROFILE_SLOT_SIZE); + assert(profile_store_version_for(0)==3&&profile_store_card_for(0)[0]==0x35); + assert(profile_store_version_for(1)==2&&profile_store_card_for(1)[0]==0x21); + assert(profile_store_begin_format(4,"{}",2,4,false)==ESP_OK); + upload_bytes(0x45,PROFILE_V4_BYTES);fail_header=true;assert(profile_store_commit()==ESP_FAIL);fail_header=false; + assert(profile_store_init()==ESP_OK&&profile_store_card_for(4)[0]==0x44); + profile_store_displayed(profile_store_revision()); + assert(profile_store_patch(4,"{\"title\":\"test\"}",16,patch_first,NULL)==ESP_OK); + assert(profile_store_card_for(4)[0]==0xab&&profile_store_card_for(4)[1]==0x44); + assert(profile_store_asset_for(4,PROFILE_ASSET_AVATAR)[0]==0x44&&profile_store_asset_for(4,PROFILE_ASSET_QR)[0]==0x44); + assert(profile_store_init()==ESP_OK&&profile_store_card_for(4)[0]==0xab); + profile_store_displayed(profile_store_revision());fail_header=true; + assert(profile_store_patch(4,"{}",2,NULL,NULL)!=ESP_OK);fail_header=false; + assert(profile_store_init()==ESP_OK&&profile_store_card_for(4)[0]==0xab); + assert(profile_store_card_for(1)[0]==0x21); + puts("Tactical V4: mixed V2/V3/V4, atlas bounds and interrupted writes PASS"); + puts("Five profiles: isolation, switching barrier, interrupted inactive write, clear and reload PASS"); + puts("Profile persistence: PASS (CRC, bounds, interrupted upload/commit, reload, reset)"); + return 0; +} diff --git a/tests/test_profile_text.c b/tests/test_profile_text.c new file mode 100644 index 0000000..b26067c --- /dev/null +++ b/tests/test_profile_text.c @@ -0,0 +1,18 @@ +#include "profile_text.h" +#include +#include +#include +static const uint8_t bits[25]={255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255}; +static bool lookup(uint32_t cp,profile_glyph_t *g){if(cp==0x10ffff)return false;*g=(profile_glyph_t){bits,cp=='.'?3:14,14,cp=='.'?4:14,0,0};return true;} +int main(void){ + static uint8_t img[90000];profile_text_patch_t p; + assert(profile_text_prepare(&p,2,"产�设计师",0x1234,0xabcd,lookup)); + memset(img,0x55,sizeof(img));for(size_t i=0;i512)n=512;profile_text_apply(i,img+i,n,&p);} + unsigned ink=0;for(size_t i=0;i=122)assert(img[i]==0x55&&img[i+1]==0x55);else{assert((img[i]==0x34&&img[i+1]==0x12)||(img[i]==0xcd&&img[i+1]==0xab));if(img[i]==0xcd)ink++;}} + assert(ink>0);assert(!profile_text_prepare(&p,0,"",0,1,lookup));assert(!profile_text_prepare(&p,0," ",0,1,lookup)); + assert(!profile_text_prepare(&p,0,"\xc0\x80",0,1,lookup));assert(!profile_text_prepare(&p,0,"\xe4",0,1,lookup));assert(!profile_text_prepare(&p,1,"\xed\xa0\x80",0,1,lookup)); + assert(!profile_text_prepare(&p,2,"\xf4\x8f\xbf\xbf",0,1,lookup)); + assert(profile_text_prepare(&p,1,"",0,1,lookup));assert(profile_text_prepare(&p,0,"abcdefghijklmnopqrst",0,1,lookup)); + assert(p.count==14&&p.glyphs[13].width==3); /* Two rows, ellipsis fits. */ + puts("Profile text PASS: UTF-8 rejection, two lines, ellipsis, pixel region isolation"); +} diff --git a/tests/test_profile_upload.cjs b/tests/test_profile_upload.cjs new file mode 100644 index 0000000..f10759a --- /dev/null +++ b/tests/test_profile_upload.cjs @@ -0,0 +1,16 @@ +const fs=require('fs'),vm=require('vm'),assert=require('assert'); +const source=fs.readFileSync(require('path').join(__dirname,'../configure/profile-core.js'),'utf8'); +let delays=0;const scope={TextEncoder,TextDecoder,Uint8Array,Uint8ClampedArray,setTimeout:fn=>{delays++;fn()}}; +vm.createContext(scope);vm.runInContext(source+'\nthis.helpers={deviceError,beginProfileUpload};',scope); +(async()=>{ + const {deviceError,beginProfileUpload}=scope.helpers; + const args={badge:1,baseRevision:42,profile:{qrPresent:true},format:4};let calls=0; + const transient={rpc:async(op,p)=>{assert.equal(op,'begin');assert.strictEqual(p,args);if(++calls<4)throw deviceError({error:'ESP_ERR_INVALID_STATE',reason:'display_pending'});return {ok:true}}}; + assert((await beginProfileUpload(transient,args)).ok);assert.equal(calls,4);assert.equal(delays,3); + for(const reason of ['profile_changed','upload_busy',undefined]){ + calls=0;await assert.rejects(()=>beginProfileUpload({rpc:async()=>{calls++;throw deviceError({error:'ESP_ERR_INVALID_STATE',reason})}},args));assert.equal(calls,1);assert.equal(args.baseRevision,42); + } + calls=0;await assert.rejects(()=>beginProfileUpload({rpc:async()=>{calls++;throw deviceError({error:'ESP_ERR_INVALID_STATE',reason:'display_pending'})}},args));assert.equal(calls,16); + assert(deviceError({reason:'profile_changed'}).message.includes('当�编辑已�留')); + console.log('Upload recovery PASS: bounded display retry, unchanged revision, no retry for conflicts/other sessions/unknown failures'); +})().catch(e=>{console.error(e);process.exitCode=1}); diff --git a/tests/test_profile_web.cjs b/tests/test_profile_web.cjs new file mode 100644 index 0000000..dbd16bd --- /dev/null +++ b/tests/test_profile_web.cjs @@ -0,0 +1,49 @@ +const fs=require('fs'),vm=require('vm'),assert=require('assert'); +const html=fs.readFileSync(require('path').join(__dirname,'../configure/index.html'),'utf8'); +const firmwareLayout=fs.readFileSync(require('path').join(__dirname,'../main/badge_layout.h'),'utf8'); +const deviceRegions=[...firmwareLayout.matchAll(/\{\s*(\d+(?:\s*,\s*\d+){6})\s*\}/g)].map(m=>m[1].split(',').map(Number)); +const previewRegions=JSON.parse(html.match(/const badgeRegions=(\[[^;]+);/)[1]); +assert.deepStrictEqual(previewRegions,deviceRegions); +console.log('Preview regions match firmware crop, position and scale: PASS'); +const scripts=[...html.matchAll(/]*)?>([\s\S]*?)<\/script>/g)].map(m=>m[1]); +for(const source of scripts)new vm.Script(source); +const scope={TextEncoder,TextDecoder,Uint8Array,Uint8ClampedArray,console};vm.createContext(scope); +vm.runInContext(scripts[0]+`;this.test={to565,rgba565,validateProfile,fit,nameLayout,drawName};`,scope); +const x=scope.test.to565({width:3,height:1,data:[255,0,0,255,0,255,0,255,0,0,255,255]}); +assert.deepEqual([...x],[0,248,224,7,31,0]);assert.deepEqual([...scope.test.rgba565(x,3,1)],[255,0,0,255,0,255,0,255,0,0,255,255]); +assert.throws(()=>scope.test.rgba565(x,2,1)); +const p={name:'测试员工',department:'研�部',title:'工程师',employeeId:'NC-01',signature:'��好奇'};scope.test.validateProfile(p);assert.throws(()=>scope.test.validateProfile({...p,name:''}));assert.throws(()=>scope.test.validateProfile({...p,name:'a\n'}));assert.throws(()=>scope.test.validateProfile({...p,signature:'汉'.repeat(44)})); +console.log('Profile web checks: PASS (script syntax, RGB565 roundtrip, Unicode, validation)'); + +vm.runInContext(scripts[1]+'\n'+scripts[2],scope); +vm.runInContext('this.ext={qrPixels,qrDisplayPixels,packQr,unpackQr,validateExtended,DEFAULT_PROFILE};',scope); +const payload=Array.from(Buffer.from('https://example.com/test-contact')); +const pixels=scope.ext.qrPixels(payload); +const packed=scope.ext.packQr({width:192,height:192,data:pixels}); +assert.equal(packed.length,4608); +const unpacked=scope.ext.unpackQr(packed); +assert.deepEqual([...pixels],[...unpacked]); +assert.deepEqual([...scope.jsQR(unpacked,192,192).binaryData],payload); +// Check actual decode after display resampling, including dense binary codes. +for(const n of [12,50,100,220,350,500]){ + const bytes=Array.from({length:n},(_,i)=>(i*73+41)%256); + const view=scope.ext.qrDisplayPixels(scope.ext.qrPixels(bytes)); + assert.equal(view.length,176*176*4); + assert.deepEqual([...scope.jsQR(view,176,176).binaryData],bytes); +} +assert.throws(()=>scope.ext.qrPixels(new Array(1300).fill(65))); +scope.ext.validateExtended(scope.ext.DEFAULT_PROFILE); +assert.throws(()=>scope.ext.validateExtended({...scope.ext.DEFAULT_PROFILE,brandName:''})); +assert.throws(()=>scope.ext.validateExtended({...scope.ext.DEFAULT_PROFILE,theme:{}})); +console.log('Extended web checks: PASS (QR encode/decode, 1-bit packing, capacity, theme validation)'); + +// Deterministic font metrics exercise whitespace, long tokens and CJK wrapping. +const metric={font:'',measureText(text){const size=Number(this.font.match(/(\d+)px/)[1]);return {width:Array.from(text).reduce((n,c)=>n+(c===' '?0.3:c.charCodeAt(0)>127?1:0.65)*size,0)}}}; +let layout=scope.test.nameLayout(metric,'FOLO MAKER');assert.deepEqual(Array.from(layout.lines),['FOLO','MAKER']);assert(!layout.truncated); +for(const name of ['艾丽�张晓明测试','ABCDEFGHIJKLMNOPQRST','ZOE','FOLO MAKER','𠮷野测试姓�']){ + const result=scope.test.nameLayout(metric,name);assert(result.lines.length<=2);assert(!result.truncated); + assert(result.lines.join('').replace(/ /g,'')===name.replace(/ /g,'')); + assert(result.lines.every(s=>metric.measureText(s).width<=112)); +} +layout=scope.test.nameLayout(metric,'A'.repeat(120));assert(layout.truncated);assert(layout.lines.length===2);assert(layout.lines[1].endsWith('…')); +console.log('Name wrapping: PASS (word breaks, CJK, long words, Unicode, bounded two-row layout)'); diff --git a/tests/test_radio.cc b/tests/test_radio.cc new file mode 100644 index 0000000..1ece358 --- /dev/null +++ b/tests/test_radio.cc @@ -0,0 +1,55 @@ +#include "radio_logic.h" +#include "radio_controls.h" +#include "radio_json_stream.h" +#include +#include +#include +int main(){ + assert(radio_parse_frequency("上海 FM94.7")==947); + assert(radio_parse_frequency("FM 101")==1010); + assert(radio_parse_frequency("交通971")==971); + assert(radio_parse_frequency("2026新闻")==0); + assert(radio_parse_frequency("网络音�")==0); + assert(radio_parse_frequency("FM 108.0")==1080); + assert(radio_parse_frequency("FM 120.0")==0); + assert(radio_dial_position(947,0,10)==335); + assert(radio_dial_position(0,0,10)==0&&radio_dial_position(0,9,10)==1000); + assert(radio_dial_position(0,0,1)==500); + assert(radio_dial_position(870,0,10)==0); + int16_t pcm[]={32767,32767,-32768,-32768,100,-100}; + assert(radio_downmix(pcm,sizeof(pcm),2)==6);assert(pcm[0]==32767&&pcm[1]==-32768&&pcm[2]==0); + assert(radio_downmix(pcm,5,2)==0);assert(radio_downmix(pcm,6,3)==0); + assert(!radio_timer_expired(0,123));assert(!radio_timer_expired(15,14));assert(radio_timer_expired(15,15)); + RadioJsonObjects objects;unsigned entries=0; + const std::string json=R"([{"name":"a \" }","nested":{"x":1}}, {"url":"/b"}])"; + for(char ch:json)if(objects.feed(ch))++entries; + assert(entries==2&&objects.done&&!objects.failed); + RadioJsonObjects oversized;entries=0; + for(char ch:std::string("[{\"name\":\"")+std::string(5000,'x')+"\"},{\"name\":\"ok\"}]")if(oversized.feed(ch))++entries; + assert(entries==1&&oversized.done&&!oversized.failed); + RadioJsonObjects truncated;for(char ch:std::string("[{"))truncated.feed(ch);assert(!truncated.done); + RadioJsonObjects malformed;for(char ch:std::string("[{},]"))malformed.feed(ch);assert(malformed.failed); + radio_controls_t c;radio_controls_init(&c,40,0);assert(!radio_controls_back(&c)); + assert(radio_controls_move(&c,-1)==RADIO_CHANNEL_UP);assert(radio_controls_move(&c,1)==RADIO_CHANNEL_DOWN);assert(radio_controls_ok(&c)==RADIO_TOGGLE); + radio_controls_settings(&c);radio_controls_ok(&c);assert(c.page==RADIO_VOLUME); + for(int i=0;i<30;i++){radio_controls_move(&c,-1);}assert(c.volume==100); + for(int i=0;i<30;i++){radio_controls_move(&c,1);}assert(c.volume==0); + assert(radio_controls_back(&c));assert(c.page==RADIO_SETTINGS);radio_controls_move(&c,1);radio_controls_ok(&c); + assert(c.page==RADIO_CITY);radio_controls_move(&c,-1);assert(c.selected==7);assert(radio_controls_ok(&c)==RADIO_CITY_CHANGED&&c.city==7&&c.page==RADIO_MAIN); + radio_controls_settings(&c);radio_controls_move(&c,1);radio_controls_move(&c,1);radio_controls_ok(&c); + assert(c.page==RADIO_TIMER);radio_controls_move(&c,1);assert(radio_controls_ok(&c)==RADIO_TIMER_CHANGED&&RADIO_TIMER_MINUTES[c.timer]==15); + radio_controls_settings(&c);radio_controls_move(&c,-1);radio_controls_ok(&c);assert(c.page==RADIO_TIMER); + assert(radio_controls_back(&c)&&c.page==RADIO_SETTINGS);assert(radio_controls_back(&c)&&c.page==RADIO_MAIN);assert(!radio_controls_back(&c)); + radio_quick_input_t input={}; + for(unsigned key=0;key<2;key++){ + assert(!radio_direction_click(&input,key,RADIO_PRESS)); + assert(radio_direction_click(&input,key,RADIO_RELEASE)); + assert(!radio_direction_click(&input,key,RADIO_CLICK)); + assert(!radio_direction_click(&input,key,RADIO_RELEASE)); + for(int i=0;i<2;i++){assert(!radio_direction_click(&input,key,RADIO_PRESS));assert(radio_direction_click(&input,key,RADIO_RELEASE));} + assert(!radio_direction_click(&input,key,RADIO_DOUBLE)); + assert(!radio_direction_click(&input,key,RADIO_PRESS));assert(!radio_direction_click(&input,key,RADIO_LONG));assert(!radio_direction_click(&input,key,RADIO_RELEASE)); + } + puts("Release input, rapid taps, long-press suppression and three settings: PASS"); + puts("Radio frequency/dial, PCM downmix, timer and nested controls: PASS"); +} diff --git a/tests/test_radio_directory.cc b/tests/test_radio_directory.cc new file mode 100644 index 0000000..a1af3ed --- /dev/null +++ b/tests/test_radio_directory.cc @@ -0,0 +1,36 @@ +#include "radio_directory.h" +#include +#include +#include + +int main() { + RadioDirectory directory; + static_assert(sizeof(RadioDirectory) < 4400, "Keep the catalog in the original RAM budget"); + directory.replace(nullptr, 0); + assert(directory.count() == RADIO_PRESET_COUNT && RADIO_PRESET_COUNT == 57); + for (std::size_t i = 0; i < directory.count(); ++i) { + assert(directory.at(i).name[0] && directory.at(i).url[0]); + for (std::size_t j = 0; j < i; ++j) assert(std::strcmp(directory.at(i).url, directory.at(j).url)); + } + assert(&directory.at(directory.count()) == &directory.at(0)); + RadioStation local[11] = {}; + local[0] = RADIO_PRESETS[0]; + std::strcpy(local[0].url, "https://lhttp.qtfm.cn/live/15318317/64k.mp3"); + local[1] = local[0]; + std::strcpy(local[2].url, "http://example.com/unique.mp3"); + directory.replace(local, 3); + assert(directory.count() == RADIO_PRESET_COUNT + 1); + assert(std::strcmp(directory.at(0).url, local[0].url) == 0); + assert(std::strcmp(directory.at(1).url, local[2].url) == 0); + // A lookalike hostname must not hide the legitimate curated stream. + std::strcpy(local[0].url, "http://lhttp.qingting.fm.evil/live/15318317/64k.mp3"); + directory.replace(local, 1); + assert(directory.count() == RADIO_PRESET_COUNT + 1); + for (unsigned i = 0; i < 11; ++i) std::snprintf(local[i].url, sizeof(local[i].url), "http://example.com/%u.mp3", i); + directory.replace(local, 11); + assert(directory.count() == RADIO_PRESET_COUNT + 10); + assert(directory.at(directory.count()-1).name[0]); + directory.replace(nullptr, 0); + assert(directory.count() == RADIO_PRESET_COUNT); + std::printf("Radio directory: merge, aliases, duplicates, capacity, wrap and reset PASS (%zu bytes RAM)\n", sizeof(directory)); +} diff --git a/tests/test_upgrade_package.py b/tests/test_upgrade_package.py new file mode 100644 index 0000000..0cf7451 --- /dev/null +++ b/tests/test_upgrade_package.py @@ -0,0 +1,22 @@ +from pathlib import Path +import hashlib,json,sys,tempfile,unittest +sys.path.insert(0,str(Path(__file__).resolve().parents[1]/'tools')) +from upgrade_badge import verify_package + +class PackageTests(unittest.TestCase): + def test_hash_missing_and_modified(self): + with tempfile.TemporaryDirectory() as tmp: + root=Path(tmp);data=b'example';file=root/'app.bin';file.write_bytes(data) + (root/'release.json').write_text(json.dumps({'version':'test','sha256':{'app.bin':hashlib.sha256(data).hexdigest()}})) + self.assertEqual(verify_package(root),'test') + file.write_bytes(b'modified') + with self.assertRaisesRegex(ValueError,'modified'):verify_package(root) + file.unlink() + with self.assertRaises(OSError):verify_package(root) + def test_escape_is_rejected(self): + with tempfile.TemporaryDirectory() as tmp: + root=Path(tmp) + (root/'release.json').write_text(json.dumps({'version':'test','sha256':{'../outside':'0'*64}})) + with self.assertRaisesRegex(ValueError,'modified'):verify_package(root) + +if __name__=='__main__':unittest.main() diff --git a/tests/test_verify_firmware.py b/tests/test_verify_firmware.py index 73c7d67..0679f59 100644 --- a/tests/test_verify_firmware.py +++ b/tests/test_verify_firmware.py @@ -6,7 +6,6 @@ from __future__ import annotations import hashlib import importlib.util import struct -import subprocess import sys import tempfile import unittest @@ -164,185 +163,6 @@ class FlashArgsTest(unittest.TestCase): self.assertEqual(offsets["FoloToy-AI-Passport.bin"], 0x18000) self.assertEqual(offsets["partition_table/partition-table.bin"], 0x9000) - def test_rejects_incomplete_image_entry(self) -> None: - with self.assertRaisesRegex(ValueError, "invalid image entry"): - VERIFY.parse_flash_args("0x20000\n") - - -class FirmwareCliTest(unittest.TestCase): - CUSTOM_ENTRIES = ( - (1, 2, 0x9000, 0x6000, "nvs"), - (1, 1, 0xF000, 0x1000, "phy_init"), - (0, 0, 0x10000, 0x10000, "factory"), - (1, 0x82, 0x20000, 0x1000, "assets"), - (1, 0x40, 0x21000, 0x1000, "metadata"), - ) - - def setUp(self) -> None: - self.directory = tempfile.TemporaryDirectory() - self.addCleanup(self.directory.cleanup) - self.build_dir = Path(self.directory.name) - - def create_build( - self, - extras: tuple[tuple[str, int, bytes], ...] = (), - entries: tuple[tuple[int, int, int, int, str], ...] | None = None, - app_offset: int = DEFAULT_APP_OFFSET, - ) -> None: - images = ( - ("bootloader/bootloader.bin", 0, b"\xe9boot"), - ("partition_table/partition-table.bin", DEFAULT_TABLE_OFFSET, sample_table(entries)), - ("FoloToy-AI-Passport.bin", app_offset, b"\xe9app"), - ) + extras - merged = bytearray() - flash_args = ["--flash_mode dio --flash_size 8MB"] - for name, offset, data in images: - image_path = self.build_dir / name - image_path.parent.mkdir(parents=True, exist_ok=True) - image_path.write_bytes(data) - flash_args.append(f'{offset:#x} "{name}"') - # Invalid addresses still reach the CLI without allocating beyond - # the physical Flash size in the test fixture. - if 0 <= offset < VERIFY.FLASH_SIZE: - end = min(offset + len(data), VERIFY.FLASH_SIZE) - merged.extend(b"\xff" * max(0, end - len(merged))) - merged[offset:end] = data[:end - offset] - (self.build_dir / "FoloToy-AI-Passport-full.bin").write_bytes(merged) - (self.build_dir / "flash_args").write_text("\n".join(flash_args) + "\n") - - def run_verifier(self, error: str | None = None) -> None: - result = subprocess.run( - [sys.executable, str(ROOT / "tools/verify_firmware.py"), str(self.build_dir)], - capture_output=True, - text=True, - check=False, - ) - if error is None: - self.assertEqual(result.returncode, 0, result.stderr) - self.assertIn("Merged firmware: PASS", result.stdout) - else: - self.assertEqual(result.returncode, 1, result.stdout + result.stderr) - self.assertIn(error, result.stderr) - self.assertNotIn("Merged firmware: PASS", result.stdout) - self.assertNotIn("Traceback", result.stderr) - - def test_accepts_default_minimal_layout(self) -> None: - self.create_build() - self.run_verifier() - - def test_accepts_additional_resources_at_partition_start_or_inside(self) -> None: - self.create_build( - extras=( - ("assets.bin", 0x20000, b"resource"), - ("metadata chunk.bin", 0x21010, b"metadata"), - ), - entries=self.CUSTOM_ENTRIES, - ) - self.run_verifier() - - def test_accepts_custom_ota_layout_and_images(self) -> None: - entries = ( - (1, 2, 0x9000, 0x4000, "settings"), - (1, 0, 0xD000, 0x2000, "otadata"), - (1, 1, 0xF000, 0x1000, "phy"), - (0, 0x10, 0x10000, 0x30000, "ota_0"), - (0, 0x11, 0x40000, 0x30000, "ota_1"), - (1, 0x82, 0x70000, 0x2000, "resources"), - ) - self.create_build( - extras=( - ("ota_data_initial.bin", 0xD000, b"\xff" * 0x2000), - ("second-app.bin", 0x40000, b"\xe9other-app"), - ("resources.bin", 0x70000, b"resource"), - ), - entries=entries, - ) - self.run_verifier() - - def test_accepts_moved_application(self) -> None: - self.create_build( - entries=((0, 0, 0x20000, VERIFY.FLASH_SIZE - 0x20000, "application"),), - app_offset=0x20000, - ) - self.run_verifier() - - def test_rejects_missing_resource_file(self) -> None: - self.create_build((("assets.bin", 0x20000, b"resource"),), self.CUSTOM_ENTRIES) - (self.build_dir / "assets.bin").unlink() - self.run_verifier("missing image") - - def test_rejects_empty_resource_file(self) -> None: - self.create_build((("assets.bin", 0x20000, b""),), self.CUSTOM_ENTRIES) - self.run_verifier("assets.bin is empty") - - def test_rejects_resource_missing_from_merged_image(self) -> None: - self.create_build((("assets.bin", 0x20000, b"resource"),), self.CUSTOM_ENTRIES) - with (self.build_dir / "FoloToy-AI-Passport-full.bin").open("r+b") as merged: - merged.truncate(0x20000) - self.run_verifier("assets.bin differs") - - def test_rejects_resource_byte_mismatch(self) -> None: - self.create_build((("assets.bin", 0x20000, b"resource"),), self.CUSTOM_ENTRIES) - with (self.build_dir / "FoloToy-AI-Passport-full.bin").open("r+b") as merged: - merged.seek(0x20000) - merged.write(b"X") - self.run_verifier("assets.bin differs") - - def test_rejects_negative_image_offset(self) -> None: - self.create_build((("assets.bin", -1, b"resource"),), self.CUSTOM_ENTRIES) - self.run_verifier("outside the 8 MB flash bounds") - - def test_rejects_image_extending_past_flash(self) -> None: - self.create_build((("assets.bin", VERIFY.FLASH_SIZE - 1, b"resource"),)) - self.run_verifier("outside the 8 MB flash bounds") - - def test_rejects_image_starting_outside_flash(self) -> None: - self.create_build((("assets.bin", VERIFY.FLASH_SIZE, b"resource"),)) - self.run_verifier("outside the 8 MB flash bounds") - - def test_rejects_overlapping_images(self) -> None: - self.create_build( - (("assets.bin", 0x20000, b"resource"), ("other.bin", 0x20004, b"overlap")), - self.CUSTOM_ENTRIES, - ) - self.run_verifier("images 'assets.bin' and 'other.bin' overlap") - - def test_rejects_resource_overlapping_required_image(self) -> None: - self.create_build((("assets.bin", DEFAULT_APP_OFFSET, b"\xe9app"),)) - self.run_verifier("overlap") - - def test_rejects_resource_crossing_adjacent_partitions(self) -> None: - self.create_build((("assets.bin", 0x20FFF, b"resource"),), self.CUSTOM_ENTRIES) - self.run_verifier("assets.bin must fit entirely within one partition") - - def test_rejects_resource_in_unpartitioned_gap(self) -> None: - self.create_build((("assets.bin", 0x23000, b"resource"),), self.CUSTOM_ENTRIES) - self.run_verifier("assets.bin must fit entirely within one partition") - - def test_still_requires_all_boot_images(self) -> None: - self.create_build() - args_path = self.build_dir / "flash_args" - args = args_path.read_text() - args_path.write_text("\n".join(line for line in args.splitlines() if "bootloader/" not in line)) - self.run_verifier("missing required images") - - def test_rejects_empty_required_image(self) -> None: - self.create_build() - (self.build_dir / "bootloader/bootloader.bin").write_bytes(b"") - self.run_verifier("bootloader/bootloader.bin is empty") - - def test_rejects_malformed_extra_image_entry(self) -> None: - self.create_build() - with (self.build_dir / "flash_args").open("a") as args: - args.write("0x20000 assets.bin unexpected-token\n") - self.run_verifier("invalid image entry") - - def test_rejects_unparseable_extra_image_offset(self) -> None: - self.create_build() - with (self.build_dir / "flash_args").open("a") as args: - args.write("0x2000g assets.bin\n") - self.run_verifier("invalid image offset") - if __name__ == "__main__": unittest.main() diff --git a/tests/test_voice.c b/tests/test_voice.c new file mode 100644 index 0000000..402d56b --- /dev/null +++ b/tests/test_voice.c @@ -0,0 +1,49 @@ +#include "voice_navigation.h" +#include "voice_stream.h" +#include "voice_activity.h" +#include +#include +#include +static uint8_t data[4096]; +static bool read_test(void *context,uint32_t offset,void *out,size_t size){(void)context;if(offset>sizeof(data)||size>sizeof(data)-offset)return false;memcpy(out,data+offset,size);return true;} +int main(void) { + voice_activity_t activity;voice_activity_init(&activity);assert(voice_activity_busy(&activity)); + voice_activity_submit(&activity,1);atomic_store(&activity.ready,true); + assert(voice_activity_busy(&activity)); /* Queued before initialization finishes. */ + voice_activity_submit(&activity,2);voice_activity_complete(&activity,1); + assert(voice_activity_busy(&activity)); /* Old cancellation cannot release new audio. */ + voice_activity_complete(&activity,2);assert(!voice_activity_busy(&activity)); + voice_activity_submit(&activity,3);assert(voice_activity_busy(&activity)); + voice_activity_complete(&activity,3);assert(!voice_activity_busy(&activity)); + voice_navigation_t n;voice_navigation_init(&n);assert(!voice_navigation_back(&n)); + voice_navigation_move(&n,-1);assert(n.pack==VOICE_PACK_COUNT-1);voice_navigation_move(&n,1);assert(n.pack==0); + unsigned clips=0; + for(unsigned p=0;p=15 for x in manifest['removed'])) + index=json.loads((assets/'voice_index.json').read_text(encoding='utf-8')) + paths={x['path'] for p in index for x in p['files']} + self.assertEqual(paths,set(manifest['before_assets'])-removed) + self.assertEqual(paths,{p.relative_to(assets).as_posix() for p in assets.rglob('*.opus')}) + self.assertTrue({x['path'] for x in manifest['kept']}<=paths) + self.assertEqual(sum(manifest['before_assets'][p]['bytes'] for p in removed),977379) + for p in paths: + data=(assets/p).read_bytes() + self.assertEqual(len(data),manifest['before_assets'][p]['bytes']) + self.assertEqual(hashlib.sha256(data).hexdigest(),manifest['before_assets'][p]['sha256']) + + def test_bad_packets(self): + for value in [b'\x01', b'\x00\x00', b'\xff\xff', b'\x04\x00abc']: + with self.assertRaises(ValueError): + list(pack.packets(value)) + self.assertEqual(list(pack.packets(b'\x03\x00abc')), [b'abc']) + + def test_complete_bundle(self): + with tempfile.TemporaryDirectory() as tmp: + d = Path(tmp) + pack.build(d) + a, b = (d/'voice_data.bin').read_bytes(), (d/'voice_tail.bin').read_bytes() + self.assertEqual((len(a), len(b)), (pack.FIRST, pack.TAIL)) + h = a[:28] + self.assertEqual(struct.unpack('<4sII', h[:12]), (b'VKP1',1,695)) + size, _, crc, header_crc = struct.unpack('=160 and raw[offset:offset+length]==expected + assert '你好�智' in (d/'out/wake_model_config.h').read_text(encoding='utf-8') + custom=d/'wn9s_custom';shutil.copytree(source,custom) + info=custom/'_MODEL_INFO_';original=info.read_text(encoding='utf-8') + for invalid in ['',original.replace('wakenet9s','wakenet9'),original.replace('你好�智',''),original+'_another_word']: + info.write_text(invalid,encoding='utf-8') + try:mod.pack(custom,d/'bad') + except ValueError:pass + else:raise AssertionError('Invalid model metadata accepted') +print('Wake model packaging PASS: coefficients, offsets, actual phrase, unsupported models rejected') diff --git a/tests/test_wifi_scan_ui.cjs b/tests/test_wifi_scan_ui.cjs new file mode 100644 index 0000000..f1f6a98 --- /dev/null +++ b/tests/test_wifi_scan_ui.cjs @@ -0,0 +1,12 @@ +const fs=require('fs'),vm=require('vm'),assert=require('assert'); +const source=fs.readFileSync(require('path').join(__dirname,'../configure/app.js'),'utf8'); +class Element{constructor(){this.children=[];this.dataset={};this.value='';this.elements=[];this.style={};}append(...items){this.children.push(...items)}replaceChildren(){this.children=[]}querySelectorAll(){return this.children}} +const elements={};const get=id=>elements[id]??=new Element(); +const scope={yaoSupported:false,yaoDirty:false,document:{createElement:()=>new Element()},$:get,networks:[{ssid:'Office',rssi:-42,security:'WPA2',supported:true,open:false},{ssid:'Guest',rssi:-65,security:'OPEN',supported:true,open:true},{ssid:'Enterprise',rssi:-60,security:'Enterprise',supported:false,open:false},{ssid:'',rssi:-70,security:'WPA2',supported:true,open:false}],wifi:{ssid:'Office',passwordSet:true},wifiDirty:false,busy:false,scanBusy:false,dirty:false,device:{closed:false},viaHotspot:false,badgeCount:1,badges:[],editingBadge:0,activeBadge:0,staleBadge:false}; +vm.createContext(scope); +vm.runInContext(source.slice(source.indexOf('function controls()'),source.indexOf('function drawLogo('))+source.slice(source.indexOf('function renderNetworks()'),source.indexOf('async function scanWifi()'))+'\nrenderNetworks();',scope); +get('ssid').value='Office';get('wifiPassword').value='draft-password';get('networkList').children[0].onclick();assert.equal(get('wifiPassword').value,'draft-password'); +get('networkList').children[1].onclick();assert.equal(get('ssid').value,'Guest');assert.equal(get('wifiPassword').value,'');assert.equal(get('openWifi').checked,true);assert.equal(scope.wifiDirty,true); +assert.equal(get('networkList').children[2].disabled,true);assert.equal(get('networkList').children[3].children[0].textContent,''); +scope.device.closed=true;vm.runInContext('controls()',scope);assert(get('networkList').children.every(x=>x.disabled));assert(get('scanWifi').disabled); +console.log('Wi-Fi list UI: PASS (selection, password clearing, open network, unsupported/closed states, literal SSID text)'); diff --git a/tests/test_xiaozhi.c b/tests/test_xiaozhi.c new file mode 100644 index 0000000..ba5954a --- /dev/null +++ b/tests/test_xiaozhi.c @@ -0,0 +1,121 @@ +#include "xiaozhi_wire.h" +#include "xiaozhi_logic.h" +#include "xiaozhi_volume.h" +#include "xiaozhi_caption.h" +#include "xiaozhi_dispatch.h" +#include +#include +#include +int main(void){ + assert(!xz_session_ready(false,false));assert(!xz_session_ready(true,false)); + assert(!xz_session_ready(false,true));assert(xz_session_ready(true,true)); + /* Replay observed server ordering: initialize -> hello -> list -> call. */ + assert(xz_message_allowed("mcp","initialize",false,false,false)); + assert(xz_message_allowed("mcp","tools/list",false,false,false)); + assert(xz_message_allowed("hello","",false,true,false)); + assert(xz_message_allowed("mcp","tools/call",true,true,true)); + assert(!xz_message_allowed("mcp","tools/call",false,false,false)); + assert(!xz_message_allowed("mcp","tools/call",true,true,false)); + assert(!xz_message_allowed("tts","",false,false,false)); + assert(!xz_message_allowed("tts","",true,true,false)); + assert(xz_message_allowed("tts","",true,true,true)); + assert(xz_connection_keep(1,120000000,true,49152)); + assert(!xz_connection_keep(1,120000001,true,49152)); + assert(!xz_connection_keep(1,2,false,100000)); + assert(!xz_connection_keep(1,2,true,49151)); + assert(!xz_connection_keep(0,2,true,100000)); + assert(!xz_cache_fresh(20,19,600000000)); + assert(xz_cache_fresh(1,600000000,600000000)); + assert(!xz_cache_fresh(1,600000001,600000000)); + assert(xz_caption_is_tool_progress("% self.xiaozhi.set_volume...")); + assert(xz_caption_is_tool_progress(" % self.get_device_status…\n")); + assert(xz_caption_is_tool_progress("% self.reminder.set...")); + assert(xz_caption_is_tool_progress("%s")); + assert(xz_caption_is_tool_progress(" \t%s...\n")); + assert(xz_caption_is_tool_progress("% self.audio.play_random")); + assert(!xz_caption_is_tool_progress("% self.audio.play_random 是一个方法")); + assert(!xz_caption_is_tool_progress("%status")); + assert(!xz_caption_is_tool_progress("电�还有60%")); + assert(!xz_caption_is_tool_progress("%s 是字符串��符")); + assert(!xz_caption_is_tool_progress("% self.xiaozhi.set_volume...这是一段代�")); + assert(!xz_caption_is_tool_progress("% self..invalid...")); + assert(!xz_caption_is_tool_progress("% self.")); + assert(!xz_caption_is_tool_progress("")); + assert(!xz_caption_is_tool_progress(NULL)); + assert(xz_ok_action(XZ_CONNECTING,false)==XZ_NO_ACTION); + assert(xz_ok_action(XZ_READY,true)==XZ_START); + assert(xz_ok_action(XZ_LISTENING,true)==XZ_PAUSE); + assert(xz_ok_action(XZ_SPEAKING,true)==XZ_INTERRUPT); + assert(xz_ok_action(XZ_THINKING,true)==XZ_INTERRUPT); + assert(xz_ok_action(XZ_ACTIVATION,false)==XZ_CONNECT); + assert(xz_ok_action(XZ_ERROR,false)==XZ_CONNECT); + assert(!xz_tts_drained(0,10,900000));assert(!xz_tts_drained(100,500000,600000)); + assert(!xz_tts_drained(100,500000,400000));assert(xz_tts_drained(100,500000,900001)); + assert(xz_auto_listen(true,XZ_READY,500,500));assert(!xz_auto_listen(false,XZ_READY,500,0)); + assert(!xz_auto_listen(true,XZ_SPEAKING,500,0));assert(!xz_auto_listen(true,XZ_READY,499,500)); + assert(xz_tts_allowed(true,XZ_LISTENING,500,500));assert(xz_tts_allowed(true,XZ_THINKING,500,0)); + assert(!xz_tts_allowed(false,XZ_LISTENING,500,0));assert(!xz_tts_allowed(true,XZ_READY,500,0)); + assert(!xz_tts_allowed(true,XZ_LISTENING,499,500)); + /* Silence during an active conversation never hides or closes it. */ + assert(!xz_background_idle(XZ_LISTENING,true,1,300000001)); + assert(!xz_background_idle(XZ_READY,true,1,300000001)); + assert(!xz_background_idle(XZ_ERROR,false,1,300000001)); + assert(!xz_background_idle(XZ_READY,false,1,60000000)); + assert(xz_background_idle(XZ_READY,false,1,60000001)); + assert(xz_background_idle(XZ_IDLE,false,1,60000001)); + assert(!xz_background_idle(XZ_IDLE,false,0,60000001)); + assert(xz_retry_delay(XZ_FAULT_TRANSPORT,0)==1000000); + assert(xz_retry_delay(XZ_FAULT_TIMEOUT,2)==4000000); + assert(!xz_retry_delay(XZ_FAULT_TRANSPORT,3)); + assert(!xz_retry_delay(XZ_FAULT_MEMORY,0)&&!xz_retry_delay(XZ_FAULT_SERVER_END,0)); + assert(!xz_retry_delay(XZ_FAULT_QUEUE,0)&&!xz_retry_delay(XZ_FAULT_PROTOCOL,0)); + assert(xz_volume_valid(0,40)==0&&xz_volume_valid(100,40)==100); + assert(xz_volume_valid(255,60)==60&&xz_volume_valid(255,255)==40); + xz_volume_t v={40,40,0,0};assert(!xz_volume_due(&v,2000000,true,true)); + xz_volume_observe(&v,50,100);xz_volume_observe(&v,60,500000); + assert(!xz_volume_due(&v,1000100,true,false)); // Repeated keys reset debounce. + assert(!xz_volume_due(&v,1500000,false,false)); // No flash during audio. + assert(xz_volume_due(&v,1500000,true,false)); + xz_volume_result(&v,1500000,false);assert(v.saved==40); + assert(!xz_volume_due(&v,2000000,true,false)); // Failure stays dirty; bounded retry. + assert(xz_volume_due(&v,4500000,true,false)); + xz_volume_result(&v,4500000,true);assert(v.saved==60); + xz_volume_observe(&v,0,4500001);assert(xz_volume_due(&v,4500001,false,true)); + xz_volume_result(&v,4500001,true);assert(v.saved==0); // Mute survives persistence. + xz_volume_observe(&v,10,5000000);xz_volume_observe(&v,0,5000001); + assert(!xz_volume_due(&v,9000000,true,true)); // Returning to saved value needs no write. + const char *caption="你A好😀";uint32_t spent=0;size_t at=0; + assert(xz_caption_step(caption,at,89,&spent)==0&&spent==0); + at=xz_caption_step(caption,at,90,&spent);assert(at==3&&spent==90); + assert(xz_caption_step(caption,at,90,&spent)==at); // Stalled playback stalls text. + at=xz_caption_step(caption,at,130,&spent);assert(at==4); + at=xz_caption_step(caption,at,220,&spent);assert(at==7); + at=xz_caption_step(caption,at,310,&spent);assert(at==11); + assert(xz_caption_step(caption,at,1000,&spent)==at); + spent=0;assert(xz_caption_step(caption,0,310,&spent)==11&&spent==310); // Delayed frame catches up once. + spent=0;assert(xz_caption_step("你好世界",0,XZ_CAPTION_LEAD_MS,&spent)==6); // Opening text before PCM. + assert(xz_caption_step("你好世界",6,XZ_CAPTION_LEAD_MS,&spent)==6); // Lead does not accumulate on a stall. + assert(xz_caption_next("\xe4\xb8",0)==0); + xz_endpoint_t endpoint; + assert(xz_endpoint("wss://voice.example.com:8443/chat?q=1",&endpoint)); + assert(endpoint.tls&&endpoint.port==8443&&!strcmp(endpoint.host,"voice.example.com")&&!strcmp(endpoint.path,"/chat?q=1")); + assert(xz_endpoint("ws://localhost?test=1",&endpoint)&&!strcmp(endpoint.path,"/?test=1")); + assert(xz_endpoint("wss://voice.example.com",&endpoint)&&endpoint.port==443&&!strcmp(endpoint.path,"/")); + const char *bad[]={"http://test","wss://","wss://user@host/","wss://host:0/","ws://host:65536","ws://host:xyz","ws://host/#x","ws://host/\r\nInjected: value","ws://host:9999999999999999999999/"}; + for(unsigned i=0;i +#include +#include +#include +int main(void){ + size_t offset,bytes; + assert(!xz_audio_arena_layout(0,1,&offset,&bytes)); + assert(!xz_audio_arena_layout(1,SIZE_MAX,&offset,&bytes)); + assert(!xz_audio_arena_layout(1,SIZE_MAX-7,&offset,&bytes)); + assert(xz_audio_arena_layout(24524,18228,&offset,&bytes)&&bytes==24524&&offset%8==0); + assert(offset>=18228&&offset+sizeof(xz_audio_buffer_t)<=bytes); + /* Decoder + queue wins if a future codec changes sizes. */ + assert(xz_audio_arena_layout(128,257,&offset,&bytes)&&offset==264&&bytes==264+sizeof(xz_audio_buffer_t)); + uint8_t *arena=malloc(bytes+16);assert(arena);memset(arena,0x5a,bytes+16); + xz_audio_buffer_t *shared=(xz_audio_buffer_t *)(arena+offset); + uint8_t frame[1500]={0x18},decoded[1500]; + for(unsigned turn=0;turn<100;turn++){ + memset(shared,0,sizeof(*shared)); + for(unsigned i=0;i<30;i++){ + assert(xz_audio_push(shared,frame,sizeof(frame),i)); + assert(xz_audio_pop(shared,decoded,sizeof(decoded))==sizeof(frame)); + assert(!memcmp(frame,decoded,sizeof(frame))); + } + for(size_t i=0;i<257;i++)assert(arena[i]==0x5a); + for(size_t i=bytes;i +#include +#include +static int failure,exists,opens;static uint8_t persisted,pending; +esp_err_t nvs_open(const char *name,int mode,nvs_handle_t *h){assert(!strcmp(name,"xiaozhi"));(void)mode;opens++;*h=1;return failure==1?-1:0;} +esp_err_t nvs_get_u8(nvs_handle_t h,const char *key,uint8_t *v){assert(h==1&&!strcmp(key,"face_style"));*v=persisted;return exists?0:-1;} +esp_err_t nvs_set_u8(nvs_handle_t h,const char *key,uint8_t v){assert(h==1&&!strcmp(key,"face_style"));pending=v;return failure==2?-1:0;} +esp_err_t nvs_commit(nvs_handle_t h){assert(h==1);if(failure==3)return -1;exists=1;persisted=pending;return 0;} +void nvs_close(nvs_handle_t h){assert(h==1);} +int main(void){ + xiaozhi_style_init();assert(xiaozhi_style_get()==XZ_STYLE_CUTE); + assert(xiaozhi_style_set(XZ_STYLE_ABSTRACT));xiaozhi_style_init();assert(xiaozhi_style_get()==XZ_STYLE_ABSTRACT); + int count=opens;for(int i=0;i<100;i++)assert(xiaozhi_style_get()==XZ_STYLE_ABSTRACT);assert(opens==count); + assert(!xiaozhi_style_set(99)&&opens==count); + for(failure=1;failure<=3;failure++){assert(!xiaozhi_style_set(XZ_STYLE_CUTE));assert(xiaozhi_style_get()==XZ_STYLE_ABSTRACT);} + failure=0;xiaozhi_style_init();assert(xiaozhi_style_get()==XZ_STYLE_ABSTRACT); + assert(xiaozhi_style_set(XZ_STYLE_CUTE));xiaozhi_style_init();assert(xiaozhi_style_get()==XZ_STYLE_CUTE); + assert(xiaozhi_style_set(XZ_STYLE_FEMALE));xiaozhi_style_init();assert(xiaozhi_style_get()==XZ_STYLE_FEMALE); + assert(xiaozhi_style_set(XZ_STYLE_ROUND));xiaozhi_style_init();assert(xiaozhi_style_get()==XZ_STYLE_ROUND); + persisted=255;xiaozhi_style_init();assert(xiaozhi_style_get()==XZ_STYLE_CUTE); + puts("Face style: persisted switch, cached reads, invalid values and NVS failure recovery PASS"); +} diff --git a/tests/test_xiaozhi_text.c b/tests/test_xiaozhi_text.c new file mode 100644 index 0000000..0507b8a --- /dev/null +++ b/tests/test_xiaozhi_text.c @@ -0,0 +1,30 @@ +#include "xiaozhi_text.h" +#include +#include +#include +static bool supported(uint32_t c) {return c<128 || c==0x4f60 || c==0x597d || c==0x53e3;} +int main(void) { + char out[256]; uint32_t cp; + xz_caption_normalize(out,sizeof(out),"你好😊�",supported); + assert(!strcmp(out,"你好[微笑][U+FF01]")); + xz_caption_normalize(out,sizeof(out),"� %s 90%",supported); + assert(!strcmp(out,"� %s 90%")); /* An actual Han 'mouth' is not a missing glyph. */ + xz_caption_normalize(out,sizeof(out),"A�� B�� 👩�💻",supported); + assert(!strcmp(out,"A[爱心] B[赞] [表情][表情]")); + xz_caption_normalize(out,sizeof(out),"𠮷",supported); + assert(!strcmp(out,"[U+20BB7]")); + xz_caption_normalize(out,7,"你好a",supported); assert(!strcmp(out,"你好")); + xz_caption_normalize(out,5,"a😊",supported); assert(!strcmp(out,"a")); + xz_caption_normalize(out,1,"你好",supported); assert(!*out); + out[0]='X';assert(!xz_caption_normalize(out,0,"a",supported));assert(out[0]=='X'); + assert(!xz_utf8_decode("\xc0\xaf",&cp)); + assert(!xz_utf8_decode("\xed\xa0\x80",&cp)); + assert(!xz_utf8_decode("\xf4\x90\x80\x80",&cp)); + assert(!xz_utf8_decode("\xe4\xb8",&cp)); + assert(xz_utf8_decode("\xf4\x8f\xbf\xbf",&cp)==4 && cp==0x10ffff); + xz_caption_normalize(out,sizeof(out),"a\xff" "b",supported); + assert(!strcmp(out,"a[编�错误]b")); + xz_caption_normalize(out,sizeof(out),"a\t\r\nb",supported); assert(!strcmp(out,"a \nb")); + puts("Caption UTF-8, emoji labels, missing glyph tokens and bounds: PASS"); + return 0; +} diff --git a/tests/test_xiaozhi_tools.c b/tests/test_xiaozhi_tools.c new file mode 100644 index 0000000..338fbcf --- /dev/null +++ b/tests/test_xiaozhi_tools.c @@ -0,0 +1,170 @@ +#include "xiaozhi_tools.h" +#include "yao_time.h" +#include "badge_control.h" +#include "badge_alarm_service.h" +cJSON *profile_edit_get(unsigned id){cJSON *o=cJSON_CreateObject();cJSON_AddNumberToObject(o,"number",id==5?1:id+1);return o;} +#include "voice_navigation.h" +#include +#include +#include +#include +static size_t allocation_budget=SIZE_MAX; +static void *limited_alloc(size_t size){ + if(allocation_budget!=SIZE_MAX){if(size>allocation_budget)return NULL;allocation_budget-=size;} + return malloc(size); +} +static uint32_t ticket; +static unsigned wake_count; +static uint32_t random_word; +uint32_t xz_tools_random(void){return random_word;} +bool yao_random_bits(uint32_t *out){*out=random_word;return true;} +static void wake_main(void){wake_count++;} +static cJSON *request(const char *method,const char *params){ + char buffer[2048];snprintf(buffer,sizeof(buffer),"{\"jsonrpc\":\"2.0\",\"id\":17,\"method\":\"%s\",\"params\":%s}",method,params); + cJSON *q=cJSON_Parse(buffer);assert(q); + if(!strcmp(method,"tools/list"))allocation_budget=1024; + cJSON *r=xz_tools_handle(q,40,false,&ticket);allocation_budget=SIZE_MAX; + cJSON_Delete(q);assert(r);char *wire=cJSON_PrintUnformatted(r);assert(wire);cJSON_Delete(r);r=cJSON_Parse(wire);cJSON_free(wire);assert(r);return r; +} +static cJSON *call(const char *name,const char *args){char p[1536];snprintf(p,sizeof(p),"{\"name\":\"%s\",\"arguments\":%s}",name,args);return request("tools/call",p);} +static cJSON *reading_get(const yao_record_t *snapshot,const char *args){ + char p[512];snprintf(p,sizeof(p),"{\"jsonrpc\":\"2.0\",\"id\":18,\"method\":\"tools/call\",\"params\":{\"name\":\"self.yao.get\",\"arguments\":%s}}",args); + cJSON *q=cJSON_Parse(p);assert(q);cJSON *r=xz_tools_handle_reading(q,40,true,&ticket,snapshot);cJSON_Delete(q);assert(r);char *wire=cJSON_PrintUnformatted(r);assert(wire);cJSON_Delete(r);r=cJSON_Parse(wire);cJSON_free(wire);assert(r);return r; +} +static bool error(cJSON *r){return cJSON_HasObjectItem(r,"error")||cJSON_IsTrue(cJSON_GetObjectItemCaseSensitive(cJSON_GetObjectItemCaseSensitive(r,"result"),"isError"));} +static cJSON *text_object(cJSON *r){cJSON *content=cJSON_GetObjectItemCaseSensitive(cJSON_GetObjectItemCaseSensitive(r,"result"),"content");return cJSON_Parse(cJSON_GetObjectItemCaseSensitive(cJSON_GetArrayItem(content,0),"text")->valuestring);} +int main(void){ + assert(badge_alarm_service_init()); + cJSON_Hooks hooks={limited_alloc,free};cJSON_InitHooks(&hooks); + badge_control_publish(80,3,1,5,0);badge_control_enable(true);badge_control_set_wakeup(wake_main); + uint32_t completion_ticket;badge_control_command_t pending_command={.kind=BC_BRIGHTNESS,.value=60},taken; + assert(!badge_control_reserve(pending_command,&completion_ticket)); + assert(badge_control_peek(completion_ticket,&taken)&&badge_control_stays(taken.kind)); + assert(badge_control_result(completion_ticket)==0&&wake_count==0); + badge_control_commit(completion_ticket,true);assert(wake_count==1); + assert(badge_control_take(&taken));badge_control_publish(60,3,1,5,0);badge_control_finish(true); + assert(badge_control_result(completion_ticket)==1&&badge_control_status().brightness==60); + assert(!badge_control_reserve(pending_command,&completion_ticket));badge_control_commit(completion_ticket,false);assert(wake_count==1&&badge_control_result(completion_ticket)==-1); + assert(!badge_control_reserve(pending_command,&completion_ticket));badge_control_cancel();assert(badge_control_result(completion_ticket)==-2); + assert(!badge_control_stays(BC_RADIO)&&!badge_control_stays(BC_RADIO_PRESET)); + badge_control_set_wakeup(NULL); + for(int status=-2;status<=1;status++){ + cJSON *reply=cJSON_CreateObject();xz_tools_complete(reply,status); + const cJSON *result=cJSON_GetObjectItemCaseSensitive(reply,"result"); + assert(!strcmp(cJSON_GetObjectItemCaseSensitive(result,"execution")->valuestring,status==1?"completed":status==0?"pending":"failed")); + assert(cJSON_IsTrue(cJSON_GetObjectItemCaseSensitive(result,"isError"))==(status<0));cJSON_Delete(reply); + } + badge_control_publish(80,3,1,5,0);badge_control_enable(true); + cJSON *r=request("tools/list","{}");assert(cJSON_GetArraySize(cJSON_GetObjectItemCaseSensitive(cJSON_GetObjectItemCaseSensitive(r,"result"),"tools"))==19); + char *catalog=cJSON_PrintUnformatted(r);assert(catalog&&strlen(catalog)<7168);cJSON_free(catalog);cJSON_Delete(r); + r=call("self.get_device_status","{}");cJSON *o=text_object(r);assert(cJSON_GetObjectItemCaseSensitive(o,"brightness")->valueint==80);assert(cJSON_IsFalse(cJSON_GetObjectItemCaseSensitive(cJSON_GetObjectItemCaseSensitive(o,"network"),"connected")));cJSON_Delete(o);cJSON_Delete(r); + badge_control_command_t c; + r=call("self.apps.open","{\"app\":\"zen-muyu\"}");assert(!error(r)&&ticket);uint32_t first=ticket;cJSON_Delete(r);assert(!badge_control_take(&c)); + r=call("self.badge.show_qr","{}");assert(error(r)&&!ticket);cJSON_Delete(r); + badge_control_commit(first,false);assert(!badge_control_take(&c)); + r=call("self.audio.play","{\"clip_id\":694}");assert(!error(r));first=ticket;cJSON_Delete(r);badge_control_commit(first,true);assert(badge_control_take(&c)&&c.kind==BC_PLAY_VOICE&&c.value==694);assert(!badge_control_take(&c));badge_control_finish(true); + r=call("self.badge.switch","{\"number\":2}");assert(!error(r));first=ticket;cJSON_Delete(r);badge_control_enable(false);badge_control_enable(true);badge_control_commit(first,true);assert(!badge_control_take(&c)); + const char *badnums[]={"{\"number\":0}","{\"number\":6}","{\"number\":3}","{\"number\":1.5}","{\"number\":\"2\"}","{\"number\":2,\"number\":1}"}; + for(unsigned i=0;ivalueint==VOICE_CLIP_COUNT);assert(cJSON_GetArraySize(cJSON_GetObjectItemCaseSensitive(o,"matches"))==6);assert(cJSON_GetObjectItemCaseSensitive(o,"next_offset")->valueint==6);cJSON_Delete(o);cJSON_Delete(r); + r=call("self.audio.search","{\"query\":\"__no_such_sound__\"}");o=text_object(r);assert(cJSON_GetObjectItemCaseSensitive(o,"total")->valueint==0);cJSON_Delete(o);cJSON_Delete(r); + r=call("self.audio.search","{\"query\":\"\",\"offset\":694}");o=text_object(r);assert(!cJSON_HasObjectItem(o,"next_offset"));cJSON_Delete(o);cJSON_Delete(r); + badge_control_publish(80,3,0,5,0);r=call("self.badge.show_qr","{}");assert(error(r));cJSON_Delete(r); + r=call("unknown","{}");assert(error(r));cJSON_Delete(r); + r=call("self.get_device_status","[]");assert(error(r));cJSON_Delete(r); + badge_control_identity(0,"Alpha");badge_control_identity(1,"Beta");badge_control_runtime(87,false,0,""); + r=call("self.get_device_status","{}");o=text_object(r);assert(cJSON_GetObjectItemCaseSensitive(o,"battery_percent")->valueint==87);assert(!strcmp(cJSON_GetObjectItemCaseSensitive(o,"active_badge_name")->valuestring,"Alpha"));cJSON_Delete(o);cJSON_Delete(r); + r=call("self.badge.switch","{\"name\":\"Beta\"}");assert(!error(r));first=ticket;cJSON_Delete(r);badge_control_commit(first,true);assert(badge_control_take(&c)&&c.kind==BC_BADGE&&c.value==1&&!strcmp(c.text,"Beta"));badge_control_finish(true); + badge_control_identity(0,"Beta");r=call("self.badge.switch","{\"name\":\"Beta\"}");assert(error(r));cJSON_Delete(r); + r=call("self.badge.switch","{\"name\":\"Beta\",\"number\":1}");assert(error(r));cJSON_Delete(r); + r=call("self.badge.switch","{\"name\":\"Missing\"}");assert(error(r));cJSON_Delete(r); + r=call("self.xiaozhi.set_volume","{\"percent\":0}");assert(!error(r));first=ticket;cJSON_Delete(r);badge_control_commit(first,true);assert(badge_control_take(&c)&&c.kind==BC_XZ_VOLUME&&c.value==0);badge_control_finish(true); + r=call("self.xiaozhi.set_volume","{\"percent\":101}");assert(error(r));cJSON_Delete(r); + r=call("self.xiaozhi.set_volume","{\"percent\":5.5}");assert(error(r));cJSON_Delete(r); + r=call("self.radio.search","{\"query\":\"中国之声\"}");o=text_object(r);assert(cJSON_GetObjectItemCaseSensitive(o,"total")->valueint==1);cJSON_Delete(o);cJSON_Delete(r); + r=call("self.radio.search","{\"query\":\"\"}");o=text_object(r);assert(cJSON_GetArraySize(cJSON_GetObjectItemCaseSensitive(o,"matches"))==6);cJSON_Delete(o);cJSON_Delete(r); + r=call("self.radio.play","{\"station_id\":0}");assert(error(r));cJSON_Delete(r); // disconnected + r=call("self.reminder.set","{\"seconds\":5,\"text\":\"�水\"}");assert(!error(r));first=ticket;cJSON_Delete(r);badge_control_commit(first,false);assert(!badge_control_take(&c)); + r=call("self.reminder.set","{\"seconds\":5,\"text\":\"�水\"}");assert(!error(r));first=ticket;cJSON_Delete(r);badge_control_commit(first,true);assert(badge_control_take(&c)&&c.kind==BC_REMINDER_SET&&c.value==5&&!strcmp(c.text,"�水"));badge_control_finish(true); + uint32_t alarm_id;assert(badge_alarm_service_add(badge_alarm_test_now+5,0,0,"�水",&alarm_id)); + r=call("self.reminder.get","{}");o=text_object(r);assert(cJSON_GetObjectItemCaseSensitive(o,"count")->valueint==1);assert(cJSON_IsTrue(cJSON_GetObjectItemCaseSensitive(o,"survives_reboot")));cJSON_Delete(o);cJSON_Delete(r); + r=call("self.reminder.set","{\"seconds\":10,\"text\":\"another\"}");assert(!error(r));cJSON_Delete(r);badge_control_commit(ticket,false); + r=call("self.reminder.cancel","{\"id\":1}");assert(!error(r));first=ticket;cJSON_Delete(r);badge_control_commit(first,true);assert(badge_control_take(&c)&&c.kind==BC_REMINDER_CANCEL&&c.value==1);badge_control_finish(true); + r=call("self.reminder.cancel","{}");assert(error(r));cJSON_Delete(r); + r=call("self.reminder.set","{\"time\":\"15:00\",\"weekdays\":[1,2,3,4,5,6,7],\"text\":\"�水\"}");assert(!error(r));cJSON_Delete(r);badge_control_commit(ticket,true);assert(badge_control_take(&c)&&c.repeat==127&&c.minute==900&&c.value==0);badge_control_finish(true); + const char *invalid_alarms[]={"{\"time\":\"25:00\",\"text\":\"bad\"}","{\"seconds\":2,\"time\":\"15:00\",\"text\":\"bad\"}","{\"time\":\"15:00\",\"weekdays\":[1,1],\"text\":\"bad\"}","{\"time\":\"15:00\",\"date\":42,\"text\":\"bad\"}","{\"time\":\"15:00\",\"weekdays\":[],\"text\":\"bad\"}"}; + for(unsigned i=0;ivalueint;cJSON_Delete(o); + yao_record_t pinned_record;assert(yao_lookup(pinned,&pinned_record)); + r=call("self.yao.cast","{\"request_id\":\"newer-result\"}");assert(!error(r));cJSON_Delete(r); + r=reading_get(&pinned_record,"{}");assert(!error(r)&&ticket==0);o=text_object(r); + char *returned=cJSON_PrintUnformatted(o);assert(returned&&!strcmp(returned,snapshot));cJSON_free(returned); + assert((unsigned)cJSON_GetObjectItemCaseSensitive(o,"result_id")->valueint==pinned); + assert(cJSON_GetArraySize(cJSON_GetObjectItemCaseSensitive(cJSON_GetObjectItemCaseSensitive(o,"original"),"yaoci"))==6); + cJSON_Delete(o);cJSON_Delete(r); + char pinned_args[64];snprintf(pinned_args,sizeof(pinned_args),"{\"result_id\":%u}",pinned); + r=reading_get(&pinned_record,pinned_args);assert(!error(r));cJSON_Delete(r); + yao_test_now+=3600;r=reading_get(&pinned_record,pinned_args);assert(!error(r));o=text_object(r); + cJSON *prior=cJSON_Parse(snapshot);assert(prior); + char *cast_before=cJSON_PrintUnformatted(cJSON_GetObjectItemCaseSensitive(prior,"cast_time")),*cast_after=cJSON_PrintUnformatted(cJSON_GetObjectItemCaseSensitive(o,"cast_time")); + assert(cast_before&&cast_after&&!strcmp(cast_before,cast_after)); + assert(strcmp(cJSON_GetObjectItemCaseSensitive(cJSON_GetObjectItemCaseSensitive(prior,"current_time"),"utc")->valuestring,cJSON_GetObjectItemCaseSensitive(cJSON_GetObjectItemCaseSensitive(o,"current_time"),"utc")->valuestring)); + cJSON_free(cast_before);cJSON_free(cast_after);cJSON_Delete(prior);cJSON_Delete(o);cJSON_Delete(r); + const char *invalid_readings[]={"null","[]","{\"unexpected\":1}","{\"result_id\":0}","{\"result_id\":\"1\"}","{\"result_id\":1,\"result_id\":1}"}; + for(unsigned i=0;ivalueint==pinned); + assert(cJSON_GetArraySize(cJSON_GetObjectItemCaseSensitive(cJSON_GetObjectItemCaseSensitive(o,"changed"),"yaoci"))==6); + cJSON_Delete(o);cJSON_Delete(r); + cJSON_free(snapshot); + assert(!badge_control_take(&c)); + bool seen[VOICE_CLIP_COUNT]={0};unsigned distinct=0;int previous=-1; + for(unsigned i=0;i<100;i++){ + random_word=i==0?0:i==1?UINT32_MAX:random_word*1664525u+1013904223u; + r=call("self.audio.play_random","{}");assert(!error(r)&&ticket);o=text_object(r); + int selected=cJSON_GetObjectItemCaseSensitive(o,"clip_id")->valueint; + assert(selected>=0&&selectedvaluestring,voice_clips[selected].name)); + if(!seen[selected]){seen[selected]=true;distinct++;}previous=selected; + first=ticket;cJSON_Delete(o);cJSON_Delete(r);assert(!badge_control_take(&c)); + badge_control_commit(first,true);assert(badge_control_take(&c)&&c.kind==BC_PLAY_VOICE&&c.value==(unsigned)selected);badge_control_finish(true); + } + assert(distinct>40); + const char *bad_random[]={"{\"query\":1}","{\"query\":null}","{\"clip_id\":0}","{\"query\":\"__no_such_sound__\"}","{\"query\":\"\",\"query\":\"\"}"}; + for(unsigned i=0;ivaluestring,voice_packs[10].name)||strstr(cJSON_GetObjectItemCaseSensitive(o,"title")->valuestring,voice_packs[10].name)); + first=ticket;cJSON_Delete(o);cJSON_Delete(r);badge_control_commit(first,false);assert(!badge_control_take(&c)); + } + cJSON_free(filter_text); + voice_navigation_t n;voice_navigation_init(&n);for(unsigned i=0;i +#include +#include +#include +static int64_t now; +static size_t heap=100000,largest=60000; +static unsigned tasks,deleted,models,lists,signals,prepares,writes; +static bool task_fail,mic_fail,reclaim,power,listening; +static int semaphore;static bool semaphore_live; +static uint8_t preference; +static void (*entry)(void *); +static jmp_buf parked; +static model_iface_data_t model; +static srmodel_list_t list={{"model"}}; +static void run_worker(void){assert(entry);if(!setjmp(parked))entry(NULL);} +int64_t esp_timer_get_time(void){return now;} +size_t esp_get_free_heap_size(void){return heap;} +size_t heap_caps_get_largest_free_block(int cap){assert(cap==MALLOC_CAP_8BIT);return largest;} +srmodel_list_t *srmodel_load(const void *data){assert(data&&!lists);lists++;return &list;} +static model_iface_data_t *create(const char *name,int mode){(void)name;(void)mode;assert(!models);models++;return &model;} +static void threshold(model_iface_data_t *p,float v,int word){assert(p==&model&&v>0&&word==1);} +static int chunks(model_iface_data_t *p){assert(p==&model);return 512;} +static int rate(model_iface_data_t *p){assert(p==&model);return 16000;} +static int detect(model_iface_data_t *p,int16_t *pcm){assert(p==&model&&pcm&&power&&listening);now+=1000000;return 1;} +static void destroy(model_iface_data_t *p){assert(p==&model&&models==1);models--;} +static const esp_wn_iface_t engine={create,threshold,chunks,rate,detect,destroy}; +const esp_wn_iface_t *esp_wn_handle_from_name(const char *name){(void)name;return &engine;} +void esp_srmodel_deinit(srmodel_list_t *p){assert(p==&list&&lists==1);lists--;} +void badge_power_enter(void){assert(!power);power=true;} +void badge_power_set_local_listening(bool v){listening=v;} +void badge_power_tick(bool busy,bool audio){assert(!busy&&audio&&power&&listening);} +esp_err_t badge_power_leave(void){assert(power&&!listening);power=false;return ESP_OK;} +esp_err_t bsp_audio_init(void){return ESP_OK;} +esp_err_t bsp_audio_set_format(int r,int b,int c){assert(r==16000&&b==16&&c==1);return ESP_OK;} +esp_err_t bsp_audio_read(void *b,size_t n){assert(b&&n==1024);memset(b,0,n);return mic_fail?ESP_FAIL:ESP_OK;} +esp_err_t nvs_open(const char *s,int mode,nvs_handle_t *n){assert(!strcmp(s,"xiaozhi"));(void)mode;*n=1;return ESP_OK;} +esp_err_t nvs_get_u8(nvs_handle_t n,const char *k,uint8_t *v){assert(n==1&&!strcmp(k,"wake_enabled"));*v=preference;return ESP_OK;} +esp_err_t nvs_set_u8(nvs_handle_t n,const char *k,uint8_t v){assert(n==1&&!strcmp(k,"wake_enabled"));preference=v;writes++;return ESP_OK;} +esp_err_t nvs_commit(nvs_handle_t n){assert(n==1);return ESP_OK;} +void nvs_close(nvs_handle_t n){assert(n==1);} +SemaphoreHandle_t xSemaphoreCreateBinary(void){assert(!semaphore_live);semaphore_live=true;semaphore=0;return &semaphore;} +int xSemaphoreTake(SemaphoreHandle_t s,unsigned wait){assert(s==&semaphore&&wait==3000);if(!semaphore)run_worker();assert(semaphore);semaphore=0;return pdTRUE;} +void xSemaphoreGive(SemaphoreHandle_t s){assert(s==&semaphore&&!semaphore);semaphore=1;} +void vSemaphoreDelete(SemaphoreHandle_t s){assert(s==&semaphore&&semaphore_live);semaphore_live=false;} +int xTaskCreate(void (*fn)(void *),const char *name,unsigned bytes,void *arg,unsigned priority,TaskHandle_t *out){ + assert(!entry&&name&&bytes==8192&&!arg&&priority==4);if(task_fail)return 0;entry=fn;*out=&entry;tasks++;return pdPASS; +} +void vTaskDelete(TaskHandle_t h){assert(h==&entry&&entry&&!models&&!lists&&!power&&!listening);entry=NULL;deleted++;} +void vTaskSuspend(TaskHandle_t h){assert(!h);longjmp(parked,1);} +void taskYIELD(void){} +static void notify(void){signals++;} +static void prepare(void){prepares++;if(reclaim){heap=100000;largest=60000;}} +static void clean(void){assert(!entry&&!semaphore_live&&!models&&!lists&&!power&&!listening&&tasks==deleted);} +int main(void){ + xz_wake_init();assert(!xz_wake_enabled());xz_wake_on_trigger(notify);xz_wake_on_prepare(prepare); + assert(xz_wake_enable(true)==ESP_OK&&preference==1);unsigned stored=writes; + /* A failed memory gate must be reaped and retried, without toggling NVS. */ + heap=40000;largest=24000;xz_wake_tick(true);run_worker();assert(!xz_wake_take_trigger()&&signals==0); + xz_wake_tick(true);clean();unsigned before=tasks; + now+=2999999;xz_wake_tick(true);assert(tasks==before); + reclaim=true;now++;xz_wake_tick(true);assert(prepares>=2&&entry);run_worker();assert(xz_wake_take_trigger()&&signals==1); + assert(xz_wake_stop()==ESP_OK);clean();assert(writes==stored); + /* Task creation failure must release the semaphore and retry on its own. */ + now+=1000000;task_fail=true;xz_wake_tick(true);clean();task_fail=false;now+=3000000;xz_wake_tick(true);run_worker();assert(xz_wake_take_trigger());assert(xz_wake_stop()==ESP_OK);clean(); + /* Microphone failure must release power/model ownership before retry. */ + now+=1000000;mic_fail=true;xz_wake_tick(true);run_worker();assert(!xz_wake_take_trigger()&&!power&&!listening);xz_wake_tick(true);clean(); + mic_fail=false;now+=3000000;xz_wake_tick(true);run_worker();assert(xz_wake_take_trigger());assert(xz_wake_stop()==ESP_OK);clean(); + /* Disable joins a still-live worker synchronously; no delayed stack reuse. */ + now+=1000000;xz_wake_tick(true);assert(entry);const char *pending_status=xz_wake_status(); + assert(xz_wake_enable(true)==ESP_OK&&!strcmp(xz_wake_status(),pending_status)); + assert(xz_wake_enable(false)==ESP_OK);clean();assert(!xz_wake_enabled()&&preference==0); + now+=4000000;xz_wake_tick(true);clean();assert(!xz_wake_take_trigger()); + puts("Wake lifecycle: memory/task/microphone retry, reclaim, synchronous join and preference preservation PASS"); +} diff --git a/tests/test_yao.c b/tests/test_yao.c new file mode 100644 index 0000000..8d18a7d --- /dev/null +++ b/tests/test_yao.c @@ -0,0 +1,113 @@ +#include "yao_service.h" +#include +#include +#include +static bool entropy=true; +static uint32_t random_word; +static unsigned random_calls; +bool yao_random_bits(uint32_t *out){random_calls++;if(!entropy)return false;*out=random_word;return true;} +static cJSON *call(const char *name,const char *args,bool ok){ + cJSON *a=cJSON_Parse(args);assert(a);const char *error=NULL;cJSON *r=yao_tool(name,a,&error);cJSON_Delete(a); + assert(ok?(r&&!error):(!r&&error));return r; +} +int main(void){ + static const char *const names[]={ + "乾为天","�为地","水雷屯","山水蒙","水天需","天水讼","地水师","水地比", + "风天�畜","天泽履","地天泰","天地�","天��人","�天大有","地山谦","雷地豫", + "泽雷�","山风蛊","地泽临","风地观","�雷噬嗑","山�贲","山地剥","地雷�", + "天雷无妄","山天大畜","山雷�","泽风大过","�为水","离为�","泽山咸","雷风�", + "天山�","雷天大壮","�地晋","地�明夷","风�家人","�泽�","水山蹇","雷水解", + "山泽�","风雷益","泽天夬","天风姤","泽地�","地风�","泽水困","水风井", + "泽��","�风鼎","震为雷","艮为山","风山�","雷泽归妹","雷�丰","�山旅", + "巽为风","兑为泽","风水涣","水泽节","风泽中孚","雷山�过","水�既济","�水未济" + }; + for(unsigned i=0;i<64;i++){char name[32];assert(yao_full_name(&YAO_HEXAGRAMS[i],name,sizeof(name)));assert(!strcmp(name,names[i]));} + unsigned distribution[4]={0}; + for(unsigned i=0;i<8;i++)distribution[yao_coin_line(i)-6]++; + assert(distribution[0]==1&&distribution[1]==3&&distribution[2]==3&&distribution[3]==1); + bool originals[64]={0};unsigned max_json=0,max_reading=0; + for(unsigned pattern=0;pattern<4096;pattern++){ + uint8_t lines[6],changed[6];unsigned moving=0; + for(unsigned i=0;i<6;i++){lines[i]=6+((pattern>>(2*i))&3);changed[i]=lines[i]==6?7:lines[i]==9?8:lines[i];moving+=lines[i]==6||lines[i]==9;} + yao_result_t r,c;assert(yao_calculate(lines,&r)&&yao_calculate(changed,&c)); + assert(r.moving_count==moving&&r.changed==c.original);originals[r.original->number-1]=true; + assert(r.reading_count==((moving==2||moving==3||moving==4)?2:1)); + assert(r.readings[0].primary&&r.readings[0].text&&*r.readings[0].text); + if(r.reading_count==2)assert(!r.readings[1].primary); + if(moving==2)assert(r.readings[0].line>r.readings[1].line); + if(moving==4)assert(r.readings[0].linemax_json)max_json=len; + for(unsigned side=0;side<2;side++){ + const yao_hexagram_t *h=side?r.changed:r.original; + cJSON *hex=cJSON_GetObjectItemCaseSensitive(o,side?"changed":"original"); + assert(!strcmp(cJSON_GetObjectItemCaseSensitive(hex,"name")->valuestring,names[h->number-1])); + assert(!strcmp(cJSON_GetObjectItemCaseSensitive(hex,"guaci")->valuestring,h->text)); + cJSON *yaoci=cJSON_GetObjectItemCaseSensitive(hex,"yaoci");assert(cJSON_GetArraySize(yaoci)==6); + for(unsigned i=0;i<6;i++)assert(!strcmp(cJSON_GetArrayItem(yaoci,i)->valuestring,h->lines[i])); + if(h->special)assert(!strcmp(cJSON_GetObjectItemCaseSensitive(hex,"special")->valuestring,h->special)); + } + char full[4096],small[8];size_t needed=yao_format_full_reading(&r,NULL,0); + assert(neededmax_reading)max_reading=(unsigned)needed; + for(unsigned i=0;i<6;i++){ + assert(strstr(full,r.original->lines[i]));if(moving)assert(strstr(full,r.changed->lines[i])); + } + assert(strstr(full,r.original->text));if(moving)assert(strstr(full,r.changed->text)); + assert(moving||!strstr(full,"之� · ")); + if(r.original->special)assert(strstr(full,r.original->special)); + + assert(len<4096-500&&!strstr(s,"%s"));cJSON_free(s);cJSON_Delete(o); + } + for(unsigned i=0;i<64;i++)assert(originals[i]&&YAO_HEXAGRAMS[i].number==i+1); + uint8_t qian[]={9,9,9,9,9,9},kun[]={6,6,6,6,6,6},ji[]={7,8,7,8,7,8};yao_result_t r; + assert(yao_calculate(qian,&r)&&r.original->number==1&&r.changed->number==2&&r.readings[0].line==7&&strstr(r.readings[0].text,"用�")); + assert(yao_calculate(kun,&r)&&r.original->number==2&&r.changed->number==1&&strstr(r.readings[0].text,"用六")); + assert(yao_calculate(ji,&r)&&r.original->number==63&&r.moving_count==0); + ji[0]=10;assert(!yao_calculate(ji,&r)); + call("self.yao.get","{}",false); + entropy=false;call("self.yao.cast","{\"request_id\":\"a\",\"question\":\"工作\"}",false); + entropy=true;random_word=0; + cJSON *o=call("self.yao.cast","{\"request_id\":\"a\",\"question\":\"工作\"}",true);char *first=cJSON_PrintUnformatted(o);cJSON_Delete(o); + unsigned draws=random_calls;random_word=UINT32_MAX;entropy=false; + o=call("self.yao.cast","{\"request_id\":\"a\",\"question\":\"工作\"}",true);char *again=cJSON_PrintUnformatted(o);assert(!strcmp(first,again)&&random_calls==draws);cJSON_free(first);cJSON_free(again);cJSON_Delete(o); + call("self.yao.cast","{\"request_id\":\"a\",\"question\":\"��\"}",false); + o=call("self.yao.get","{}",true);cJSON_Delete(o);assert(random_calls==draws); + const char *bad[]={"{}","[]","{\"request_id\":1}","{\"request_id\":\"\"}","{\"request_id\":\"a!\"}","{\"request_id\":\"a\",\"request_id\":\"a\"}","{\"request_id\":\"a\",\"question\":null}","{\"request_id\":\"a\",\"question\":\"a\\nb\"}"}; + for(unsigned i=0;ivaluestring,"")); + assert(strstr(cJSON_GetObjectItemCaseSensitive(o,"instruction")->valuestring,"等用户补充��解读")); + char *cast=cJSON_PrintUnformatted(cJSON_GetObjectItemCaseSensitive(o,"cast_time"));cJSON_Delete(o);assert(cast); + /* A new cast uses live UTC with the same cached longitude. */ + yao_test_now+=60;yao_record_t later; + assert(yao_save_manual(kun,&later)); + assert(later.cast_utc==record.cast_utc+60&&later.location.longitude_e6==record.location.longitude_e6); + int64_t solar_before,solar_after;double eq; + assert(yao_solar_time(record.cast_utc,record.location.longitude_e6/1000000.0,&solar_before,&eq)); + assert(yao_solar_time(later.cast_utc,later.location.longitude_e6/1000000.0,&solar_after,&eq)); + assert(solar_after-solar_before>=59&&solar_after-solar_before<=61); + yao_test_now+=3600;yao_location_test_ms+=3600000;place.longitude_e6=121000000;strcpy(place.region,"Changed");yao_location_network(false);yao_location_network(true);yao_location_finish(yao_location_begin(),&place); + assert(yao_lookup(record.id,&record));o=yao_record_json(&record); + char *retained=cJSON_PrintUnformatted(cJSON_GetObjectItemCaseSensitive(o,"cast_time"));assert(retained&&!strcmp(cast,retained)); + assert(strcmp(cJSON_GetObjectItemCaseSensitive(cJSON_GetObjectItemCaseSensitive(o,"current_time"),"utc")->valuestring,"2025-01-01 00:00:00")); + cJSON_free(cast);cJSON_free(retained);cJSON_Delete(o); + yao_test_now=0;assert(yao_save_manual(kun,&record));o=yao_record_json(&record); + cJSON *clock=cJSON_GetObjectItemCaseSensitive(o,"cast_time");assert(cJSON_IsFalse(cJSON_GetObjectItemCaseSensitive(clock,"clock_valid"))&&!cJSON_HasObjectItem(clock,"true_solar_time"));cJSON_Delete(o); + for(unsigned i=0;i<4;i++)assert(yao_save_manual(kun,&record)); + assert(!yao_lookup(1,&record)&&yao_latest(&record)); + printf("Yao: all 4096 outcomes, 64 hexagrams, 7 reading rules, replay/failure/history PASS; max JSON=%u; max full reading=%u\n",max_json,max_reading); +} diff --git a/tests/test_yao_config.cjs b/tests/test_yao_config.cjs new file mode 100644 index 0000000..fa0f36e --- /dev/null +++ b/tests/test_yao_config.cjs @@ -0,0 +1,12 @@ +const fs=require('fs'),vm=require('vm'),assert=require('assert'),path=require('path'); +const source=fs.readFileSync(path.join(__dirname,'../configure/app.js'),'utf8'); +const html=fs.readFileSync(path.join(__dirname,'../configure/page.html'),'utf8'); +const el={textContent:''},scope={$:()=>el};vm.createContext(scope); +vm.runInContext(source.slice(source.indexOf('function showYaoTime(')),scope); +assert(!html.includes('id="yaoLongitude"')&&!html.includes('id="saveYaoLocation"')&&!source.includes("rpc('yao_location_save'")); +scope.showYaoTime(undefined);assert(el.textContent.includes('无需填写')); +scope.showYaoTime({location_set:false,clock_valid:true,beijing_utc8:'2026-09-18 12:00:00'},'unavailable');assert(el.textContent.includes('�校准真太阳时')&&el.textContent.includes('12:00:00')); +scope.showYaoTime({location_set:false,clock_valid:false},'pending');assert(el.textContent.includes('排队')&&el.textContent.includes('尚未校时')); +scope.showYaoTime({location_set:false,clock_valid:true,beijing_utc8:'2026-09-18 12:00:00'},'retrying');assert(el.textContent.includes('15 秒�自动�试')); +scope.showYaoTime({location_set:true,region:'',longitude_east:0,clock_valid:true,true_solar_time:'2026-09-18 04:05:00'},'ready');assert(el.textContent.includes('')&&el.textContent.includes('近似')); +console.log('Automatic location UI PASS: read-only, pending/failure fallback, safe text, no manual save'); diff --git a/tests/test_yao_core.c b/tests/test_yao_core.c new file mode 100644 index 0000000..49a49eb --- /dev/null +++ b/tests/test_yao_core.c @@ -0,0 +1,29 @@ +#include "yao_core.h" +#include +#include +#include +int main(void){ + unsigned distribution[4]={0}; + for(unsigned i=0;i<8;i++)distribution[yao_coin_line(i)-6]++; + assert(distribution[0]==1&&distribution[1]==3&&distribution[2]==3&&distribution[3]==1); + bool originals[64]={0}; + for(unsigned pattern=0;pattern<4096;pattern++){ + uint8_t lines[6],changed[6];unsigned moving=0; + for(unsigned i=0;i<6;i++){lines[i]=6+((pattern>>(2*i))&3);changed[i]=lines[i]==6?7:lines[i]==9?8:lines[i];moving+=lines[i]==6||lines[i]==9;} + yao_result_t r,c;assert(yao_calculate(lines,&r)&&yao_calculate(changed,&c)); + assert(r.moving_count==moving&&r.changed==c.original);originals[r.original->number-1]=true; + assert(r.reading_count==((moving==2||moving==3||moving==4)?2:1)); + assert(r.readings[0].primary&&r.readings[0].text&&*r.readings[0].text); + if(r.reading_count==2)assert(!r.readings[1].primary); + if(moving==2)assert(r.readings[0].line>r.readings[1].line); + if(moving==4)assert(r.readings[0].linenumber==1&&r.changed->number==2&&r.readings[0].line==7&&strstr(r.readings[0].text,"用�")); + assert(yao_calculate(kun,&r)&&r.original->number==2&&r.changed->number==1&&strstr(r.readings[0].text,"用六")); + assert(yao_calculate(ji,&r)&&r.original->number==63&&r.moving_count==0); + ji[0]=10;assert(!yao_calculate(ji,&r)); + puts("Yao core: 4096 outcomes / 64 hexagrams PASS"); +} diff --git a/tests/test_yao_geo.c b/tests/test_yao_geo.c new file mode 100644 index 0000000..312daf7 --- /dev/null +++ b/tests/test_yao_geo.c @@ -0,0 +1,13 @@ +#include "yao_geo.h" +#include +#include +#include +int main(void){ + yao_location_t p; + assert(yao_location_parse("{\"success\":true,\"city\":\"Test\",\"longitude\":0}",&p)&&p.configured&&p.longitude_e6==0); + assert(yao_location_parse("{\"success\":true,\"region\":\"West\",\"longitude\":-74.006}",&p)&&p.longitude_e6==-74006000); + assert(yao_location_parse("{\"status\":\"success\",\"regionName\":\"Backup\",\"city\":\"Fallback\",\"lon\":121.4737}",&p)&&p.configured&&p.longitude_e6==121473700&&!strcmp(p.region,"Fallback")); + const char *bad[]={"{}","bad","{\"success\":false,\"city\":\"Test\",\"longitude\":120}","{\"success\":true,\"city\":\"Test\"}","{\"success\":true,\"city\":\"Test\",\"longitude\":181}","{\"success\":true,\"city\":\"Test\",\"longitude\":\"120\"}","{\"success\":true,\"city\":\"\",\"longitude\":120}"}; + for(unsigned i=0;i +#include +#include +int main(void){ + yao_location_t a={.region="Original",.longitude_e6=116407400,.configured=true}; + yao_location_test_ms=0;yao_location_init(); + assert(!yao_location_get().configured&&!yao_location_begin()); + yao_location_network(true);assert(!strcmp(yao_location_status(),"pending")); + uint32_t first=yao_location_begin();assert(first&&!yao_location_begin()); + assert(!strcmp(yao_location_status(),"fetching")); + /* Re-entry does not abort a lookup already in progress. */ + yao_location_recheck();assert(yao_location_active(first)&&!yao_location_begin()); + yao_location_finish(first,&a);assert(yao_location_get().configured&&!yao_location_begin()); + assert(!strcmp(yao_location_status(),"ready")); + /* Fresh longitude survives re-entry, voice pause and Wi-Fi reconnect. */ + yao_location_voice_active(true);yao_location_recheck(); + assert(yao_location_get().configured&&!yao_location_begin()); + yao_location_voice_active(false);yao_location_network(false); + assert(yao_location_get().configured&&!yao_location_active(first)); + yao_location_network(true);yao_location_recheck();assert(!yao_location_begin()); + yao_location_test_ms=3599999;yao_test_now+=86400; /* NTP jumps do not age the cache. */ + yao_location_recheck();assert(yao_location_get().configured&&!yao_location_begin()); + yao_test_now-=172800;assert(yao_location_get().configured); + yao_location_test_ms=3600000;assert(!yao_location_get().configured); + uint32_t next=yao_location_begin();assert(next&&next!=first); + /* Disconnect invalidates replies but does not permit concurrent TLS workers. */ + yao_location_network(false);yao_location_network(true);assert(!yao_location_begin()); + yao_location_finish(next,&a);assert(!yao_location_get().configured); + next=yao_location_begin();assert(next);yao_location_finish(next,NULL); + assert(!strcmp(yao_location_status(),"retrying")); + next=yao_location_begin();assert(next);yao_location_finish(next,NULL); + /* A stale completion must not release a newer worker's lease. */ + yao_location_recheck();uint32_t old=yao_location_begin();assert(old); + yao_location_network(false);yao_location_network(true); + assert(!yao_location_active(old)&&!yao_location_begin()); + yao_location_finish(old,&a);assert(!yao_location_get().configured); + next=yao_location_begin();assert(next&&next!=old); + yao_location_finish(old,&a);assert(!yao_location_begin()); + yao_location_finish(next,&a);assert(yao_location_get().configured); + /* Each new success starts a new full hour, including while offline. */ + yao_location_test_ms+=3599999;assert(yao_location_get().configured); + yao_location_network(false);yao_location_test_ms++; + assert(!yao_location_get().configured&&!strcmp(yao_location_status(),"offline")); + yao_location_network(true);next=yao_location_begin();a.longitude_e6=180000001; + yao_location_finish(next,&a);assert(!yao_location_get().configured); + yao_location_init();assert(!yao_location_get().configured); /* no disk cache on reboot */ + yao_location_network(true);next=yao_location_begin();assert(next&&yao_location_worker_running()); + yao_location_voice_active(true);assert(!yao_location_active(next)&&!yao_location_begin()); + assert(yao_location_worker_running()); + yao_location_finish(next,NULL);assert(!yao_location_worker_running()&&!yao_location_begin()); + yao_location_voice_active(false);next=yao_location_begin();assert(next); + a.longitude_e6=116407400;yao_location_finish(next,&a); + assert(!strcmp(yao_location_status(),"ready")); + puts("Location PASS: one-hour monotonic cache, live-clock independence, reconnect, re-entry, voice resume, stale worker rejection"); +} diff --git a/tests/test_yao_request.py b/tests/test_yao_request.py new file mode 100644 index 0000000..31e2950 --- /dev/null +++ b/tests/test_yao_request.py @@ -0,0 +1,25 @@ +"""Verify the compiled request packets match the documented synthetic source.""" +from pathlib import Path +import re, struct +root = Path(__file__).resolve().parents[1] +source = (root / "assets/cyberyao/interpret-request.ogg").read_bytes() +packets, pending, offset = [], bytearray(), 0 +while offset < len(source): + assert source[offset:offset+4] == b"OggS" + segments = source[offset+26] + sizes = source[offset+27:offset+27+segments] + pos = offset + 27 + segments + for size in sizes: + pending.extend(source[pos:pos+size]); pos += size + if size < 255: + packets.append(bytes(pending)); pending.clear() + offset = pos +assert not pending and packets[0][:8] == b"OpusHead" and packets[1][:8] == b"OpusTags" +assert packets[0][9] == 1 +expected = b"".join(struct.pack(" +#include +#include +#include +int main(void){ + int64_t solar,west,east;double eq,e2;char text[20]; + /* 2025-01-01 00:00 UTC: negative equation of time, UTC day/year rollover. */ + assert(yao_solar_time(1735689600,0,&solar,&eq)); + assert(eq> -3.0&&eq< -2.5&&solar<1735689600); + assert(yao_time_format(solar,text)&&!strncmp(text,"2024-12-31 23:57:",16)); + assert(yao_solar_time(1735689600,120,&east,&e2)&&east-solar==28800); + assert(yao_solar_time(1735689600,-120,&west,&e2)&&solar-west==28800); + assert(yao_solar_time(1735689600,180,&east,&e2)); + assert(yao_solar_time(1735689600,-180,&west,&e2)&&east-west==86400); + /* Leap day: absolute seconds carry correctly across the calendar boundary. */ + assert(yao_solar_time(1709250600,120,&solar,&eq)); + assert(yao_time_format(solar,text)&&!strncmp(text,"2024-03-01",10)); + assert(!yao_solar_time(0,120,&solar,&eq)); + assert(!yao_solar_time(1735689600,NAN,&solar,&eq)); + assert(!yao_solar_time(1735689600,181,&solar,&eq)); + assert(!yao_solar_time(1735689600,-181,&solar,&eq)); + /* Around February/November the correction changes sign, not a fixed offset. */ + assert(yao_solar_time(1739361600,0,&solar,&eq)&&eq< -14&&eq> -15); + assert(yao_solar_time(1762257600,0,&solar,&eq)&&eq>16&&eq<17); + yao_location_t p={0};assert(yao_location_valid(&p)); + p.configured=true;assert(!yao_location_valid(&p)); + strcpy(p.region,"Greenwich");assert(yao_location_valid(&p)); /* zero longitude is real */ + strcpy(p.region," \n");assert(!yao_location_valid(&p)); + memset(p.region,'x',sizeof(p.region));assert(!yao_location_valid(&p)); + char summary[320]; + p=(yao_location_t){.region="Greenwich",.longitude_e6=0,.configured=true}; + yao_time_summary(1735689600,&p,summary,sizeof(summary)); + assert(strstr(summary,"真太阳时(近似)")&&strstr(summary,"2024-12-31 23:57:")&&strstr(summary,"2025-01-01 08:00:00")); + yao_time_summary(1735689600,NULL,summary,sizeof(summary)); + assert(strstr(summary,"真太阳时未校准")&&strstr(summary,"2025-01-01 08:00:00")); + yao_time_summary(0,&p,summary,sizeof(summary));assert(strstr(summary,"起�时未校时")); + char tiny[2]={1,1};yao_time_summary(1735689600,&p,tiny,sizeof(tiny));assert(tiny[1]==0); + puts("Solar time PASS: signs, UTC offset, year/leap-day rollover, missing clock/location and invalid input"); +} diff --git a/tests/tool_cloud_probe.h b/tests/tool_cloud_probe.h new file mode 100644 index 0000000..3615120 --- /dev/null +++ b/tests/tool_cloud_probe.h @@ -0,0 +1,24 @@ +/* Four synthetic utterances: cold status, reused status, two random plays. */ +extern unsigned demo_xiaozhi_cloud_completed(void); +static void tool_probe_open(void){ + configASSERT(control_home()); + configASSERT(bsp_lvgl_lock(1000));navigation.page=BADGE_AI_CHAT;navigation.ai_return=BADGE_HOME; + badge_ui_destroy();demo_xiaozhi_enter();bsp_lvgl_unlock();configASSERT(demo_xiaozhi_start()==ESP_OK); +} +static void cloud_probe_tick(void){ + static unsigned turn=0,volume;static bool original;static int64_t deadline,next=12000000,voice_since=0; + int64_t now=esp_timer_get_time();if(turn==99||now=turn||played||now>deadline; + if(!done)return; + ESP_LOGI("tool_cloud","RESULT turn=%u played=%u timeout=%u",turn,played,now>deadline); + configASSERT(control_home()); + if(turn==4){ + demo_xiaozhi_release_connection();configASSERT(xz_wake_enable(original)==ESP_OK); + configASSERT(demo_xiaozhi_saved_volume()==volume); + ESP_LOGI("tool_cloud","BENCH_DONE volume_preserved=1");turn=99;return; + } + ++turn;voice_since=0;tool_probe_open();deadline=now+50000000; +} diff --git a/tests/ui14_baseline.json b/tests/ui14_baseline.json new file mode 100644 index 0000000..96c6375 --- /dev/null +++ b/tests/ui14_baseline.json @@ -0,0 +1,1741 @@ +{ + "voice": { + "chars": [ + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 12298, + 12299, + 19968, + 19971, + 19975, + 19976, + 19977, + 19978, + 19979, + 19981, + 19985, + 19987, + 19988, + 19990, + 19992, + 19994, + 19996, + 19997, + 20002, + 20004, + 20010, + 20013, + 20026, + 20027, + 20040, + 20043, + 20044, + 20047, + 20048, + 20063, + 20064, + 20080, + 20081, + 20102, + 20107, + 20108, + 20113, + 20122, + 20123, + 20129, + 20132, + 20135, + 20136, + 20137, + 20139, + 20142, + 20146, + 20154, + 20160, + 20161, + 20170, + 20174, + 20180, + 20182, + 20195, + 20197, + 20204, + 20215, + 20221, + 20234, + 20241, + 20250, + 20254, + 20260, + 20294, + 20302, + 20307, + 20309, + 20313, + 20316, + 20320, + 20381, + 20415, + 20445, + 20449, + 20457, + 20462, + 20505, + 20551, + 20570, + 20572, + 20581, + 20598, + 20667, + 20687, + 20799, + 20804, + 20808, + 20809, + 20820, + 20826, + 20837, + 20840, + 20843, + 20844, + 20846, + 20851, + 20852, + 20853, + 20854, + 20859, + 20860, + 20869, + 20877, + 20882, + 20889, + 20892, + 20912, + 20917, + 20986, + 20987, + 20992, + 20995, + 20998, + 21010, + 21016, + 21018, + 21028, + 21033, + 21035, + 21040, + 21046, + 21051, + 21057, + 21069, + 21073, + 21093, + 21128, + 21147, + 21150, + 21160, + 21202, + 21205, + 21253, + 21254, + 21271, + 21273, + 21306, + 21307, + 21315, + 21319, + 21322, + 21326, + 21333, + 21334, + 21335, + 21338, + 21340, + 21345, + 21346, + 21360, + 21361, + 21385, + 21388, + 21416, + 21435, + 21442, + 21448, + 21451, + 21452, + 21457, + 21463, + 21464, + 21475, + 21476, + 21477, + 21482, + 21483, + 21486, + 21487, + 21495, + 21496, + 21501, + 21507, + 21512, + 21513, + 21517, + 21518, + 21520, + 21521, + 21523, + 21527, + 21534, + 21543, + 21548, + 21551, + 21556, + 21560, + 21564, + 21568, + 21571, + 21574, + 21584, + 21589, + 21592, + 21596, + 21602, + 21606, + 21621, + 21626, + 21628, + 21629, + 21638, + 21644, + 21653, + 21658, + 21670, + 21671, + 21673, + 21674, + 21679, + 21683, + 21691, + 21693, + 21700, + 21703, + 21704, + 21710, + 21714, + 21727, + 21733, + 21734, + 21737, + 21738, + 21741, + 21742, + 21756, + 21757, + 21775, + 21776, + 21780, + 21809, + 21834, + 21861, + 21862, + 21863, + 21877, + 21886, + 21890, + 21891, + 21898, + 21908, + 21917, + 21941, + 21943, + 21949, + 21992, + 21996, + 21999, + 22003, + 22007, + 22030, + 22040, + 22043, + 22047, + 22075, + 22079, + 22103, + 22108, + 22114, + 22218, + 22235, + 22238, + 22240, + 22242, + 22269, + 22280, + 22312, + 22320, + 22350, + 22351, + 22359, + 22362, + 22369, + 22372, + 22391, + 22403, + 22478, + 22522, + 22612, + 22681, + 22768, + 22788, + 22797, + 22805, + 22806, + 22810, + 22815, + 22823, + 22825, + 22826, + 22833, + 22836, + 22842, + 22855, + 22856, + 22859, + 22862, + 22863, + 22899, + 22902, + 22909, + 22914, + 22920, + 22934, + 22937, + 22962, + 22987, + 22993, + 22996, + 23041, + 23043, + 23047, + 23064, + 23110, + 23244, + 23376, + 23383, + 23384, + 23398, + 23425, + 23427, + 23432, + 23436, + 23445, + 23450, + 23453, + 23454, + 23458, + 23459, + 23475, + 23478, + 23481, + 23545, + 23553, + 23558, + 23567, + 23569, + 23574, + 23596, + 23601, + 23604, + 23612, + 23615, + 23616, + 23617, + 23621, + 23624, + 23646, + 23665, + 23849, + 24049, + 24050, + 24052, + 24066, + 24067, + 24069, + 24072, + 24076, + 24093, + 24102, + 24110, + 24120, + 24178, + 24179, + 24180, + 24182, + 24191, + 24196, + 24211, + 24212, + 24213, + 24230, + 24231, + 24247, + 24320, + 24322, + 24324, + 24351, + 24378, + 24403, + 24405, + 24425, + 24433, + 24444, + 24453, + 24456, + 24464, + 24471, + 24503, + 24515, + 24517, + 24535, + 24536, + 24537, + 24555, + 24578, + 24590, + 24597, + 24605, + 24615, + 24618, + 24687, + 24688, + 24694, + 24700, + 24773, + 24778, + 24819, + 24847, + 24858, + 24863, + 25026, + 25103, + 25104, + 25105, + 25112, + 25151, + 25152, + 25163, + 25165, + 25171, + 25172, + 25176, + 25187, + 25198, + 25199, + 25214, + 25216, + 25226, + 25237, + 25238, + 25252, + 25265, + 25277, + 25289, + 25300, + 25307, + 25308, + 25341, + 25343, + 25345, + 25353, + 25361, + 25377, + 25381, + 25384, + 25423, + 25439, + 25463, + 25487, + 25509, + 25511, + 25512, + 25549, + 25552, + 25588, + 25628, + 25630, + 25674, + 25705, + 25720, + 25746, + 25764, + 25773, + 25830, + 25903, + 25910, + 25913, + 25918, + 25925, + 25928, + 25937, + 25954, + 25955, + 25964, + 25975, + 25991, + 26007, + 26009, + 26020, + 26031, + 26032, + 26041, + 26063, + 26080, + 26082, + 26085, + 26087, + 26089, + 26102, + 26126, + 26149, + 26152, + 26159, + 26242, + 26356, + 26364, + 26368, + 26376, + 26377, + 26379, + 26381, + 26391, + 26412, + 26415, + 26421, + 26426, + 26432, + 26449, + 26464, + 26465, + 26469, + 26494, + 26495, + 26497, + 26524, + 26538, + 26550, + 26586, + 26592, + 26597, + 26609, + 26631, + 26679, + 26680, + 26684, + 26691, + 26705, + 26790, + 26834, + 26842, + 27004, + 27169, + 27308, + 27425, + 27426, + 27431, + 27448, + 27450, + 27454, + 27465, + 27468, + 27490, + 27491, + 27492, + 27493, + 27495, + 27498, + 27515, + 27573, + 27604, + 27609, + 27611, + 27665, + 27668, + 27694, + 27700, + 27704, + 27760, + 27785, + 27809, + 27861, + 27873, + 27874, + 27875, + 27880, + 27927, + 27954, + 27969, + 28010, + 28023, + 28040, + 28072, + 28120, + 28151, + 28165, + 28216, + 28304, + 28316, + 28363, + 28378, + 28385, + 28418, + 28436, + 28459, + 28779, + 28781, + 28783, + 28784, + 28789, + 28843, + 28856, + 28857, + 28895, + 28902, + 28903, + 28982, + 29022, + 29087, + 29228, + 29233, + 29239, + 29240, + 29241, + 29255, + 29256, + 29260, + 29273, + 29275, + 29287, + 29289, + 29305, + 29322, + 29359, + 29378, + 29399, + 29409, + 29436, + 29454, + 29482, + 29483, + 29492, + 29502, + 29579, + 29595, + 29609, + 29616, + 29699, + 29790, + 29916, + 29926, + 29978, + 29983, + 29992, + 30001, + 30011, + 30028, + 30127, + 30140, + 30149, + 30174, + 30250, + 30315, + 30333, + 30334, + 30340, + 30382, + 30422, + 30423, + 30424, + 30452, + 30456, + 30462, + 30475, + 30495, + 30524, + 30528, + 30529, + 30555, + 30561, + 30604, + 30606, + 30631, + 30693, + 30701, + 30707, + 30721, + 30733, + 30828, + 30896, + 31034, + 31036, + 31070, + 31077, + 31163, + 31169, + 31181, + 31185, + 31186, + 31204, + 31227, + 31292, + 31348, + 31354, + 31361, + 31363, + 31449, + 31455, + 31505, + 31508, + 31526, + 31528, + 31561, + 31572, + 31616, + 31639, + 31859, + 31889, + 31918, + 31934, + 31958, + 31995, + 32034, + 32039, + 32043, + 32418, + 32431, + 32435, + 32440, + 32447, + 32451, + 32452, + 32463, + 32473, + 32477, + 32487, + 32491, + 32493, + 32511, + 32570, + 32593, + 32622, + 32650, + 32654, + 32670, + 32763, + 32769, + 32771, + 32773, + 32780, + 32822, + 32842, + 32922, + 32929, + 32933, + 32943, + 32954, + 32966, + 33016, + 33021, + 33041, + 33046, + 33050, + 33080, + 33086, + 33098, + 33136, + 33180, + 33258, + 33268, + 33292, + 33298, + 33394, + 33401, + 33406, + 33410, + 33426, + 33457, + 33485, + 33487, + 33510, + 33521, + 33580, + 33609, + 33678, + 33707, + 33714, + 33719, + 33735, + 33756, + 33804, + 33832, + 33853, + 33905, + 33922, + 33945, + 33976, + 34013, + 34081, + 34121, + 34299, + 34425, + 34444, + 34507, + 34523, + 34542, + 34584, + 34678, + 34746, + 34892, + 34893, + 34920, + 34955, + 34987, + 35009, + 35013, + 35199, + 35201, + 35265, + 35270, + 35273, + 35282, + 35745, + 35748, + 35752, + 35753, + 35759, + 35760, + 35762, + 35770, + 35774, + 35777, + 35780, + 35789, + 35797, + 35799, + 35805, + 35809, + 35813, + 35821, + 35828, + 35830, + 35831, + 35834, + 35835, + 35841, + 35843, + 35854, + 35874, + 35905, + 35910, + 35937, + 35946, + 36125, + 36127, + 36132, + 36133, + 36136, + 36149, + 36153, + 36154, + 36156, + 36164, + 36171, + 36172, + 36182, + 36187, + 36194, + 36208, + 36212, + 36214, + 36215, + 36229, + 36234, + 36259, + 36305, + 36319, + 36330, + 36335, + 36339, + 36346, + 36523, + 36538, + 36710, + 36716, + 36731, + 36739, + 36742, + 36744, + 36771, + 36793, + 36798, + 36807, + 36814, + 36820, + 36824, + 36825, + 36827, + 36828, + 36830, + 36842, + 36855, + 36857, + 36864, + 36865, + 36870, + 36890, + 36924, + 36947, + 37027, + 37096, + 37117, + 37239, + 37240, + 37324, + 37325, + 37326, + 37327, + 37329, + 38053, + 38065, + 38078, + 38081, + 38149, + 38169, + 38190, + 38271, + 38378, + 38382, + 38388, + 38392, + 38431, + 38450, + 38451, + 38453, + 38463, + 38464, + 38505, + 38543, + 38590, + 38597, + 38598, + 38632, + 38634, + 38646, + 38647, + 38662, + 38738, + 38750, + 38754, + 38795, + 38899, + 39029, + 39030, + 39034, + 39035, + 39057, + 39063, + 39064, + 39069, + 39118, + 39135, + 39277, + 39295, + 39321, + 39532, + 39564, + 39569, + 39578, + 39592, + 39640, + 39740, + 39746, + 39764, + 40065, + 40151, + 40479, + 40481, + 40493, + 40517, + 40607, + 40614, + 40644, + 40654, + 40657, + 40664, + 40736, + 40763, + 40857, + 65281, + 65288, + 65289, + 65292, + 65311, + 65374 + ], + "sha256": "73ded22f4ec27ef83b414cba6b36724704f927b90407488732448e30d5ecd216" + }, + "radio": { + "chars": [ + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 183, + 8226, + 19968, + 19978, + 19979, + 19996, + 20004, + 20013, + 20043, + 20044, + 20048, + 20070, + 20107, + 20122, + 20132, + 20140, + 20301, + 20307, + 20315, + 20351, + 20445, + 20449, + 20572, + 20840, + 20848, + 20851, + 20852, + 20856, + 20914, + 20986, + 20998, + 20999, + 21050, + 21160, + 21271, + 21306, + 21326, + 21335, + 21407, + 21414, + 21475, + 21488, + 21495, + 21512, + 21548, + 21551, + 21628, + 21644, + 21704, + 22025, + 22238, + 22269, + 22312, + 22320, + 22323, + 22478, + 22768, + 22823, + 22825, + 22826, + 22833, + 22836, + 22909, + 23013, + 23041, + 23425, + 23433, + 23450, + 23452, + 23478, + 23572, + 23665, + 23707, + 23721, + 23777, + 24029, + 24030, + 24038, + 24050, + 24066, + 24120, + 24180, + 24191, + 24196, + 24198, + 24215, + 24352, + 24405, + 24453, + 24464, + 24576, + 24800, + 24863, + 25104, + 25214, + 25289, + 25321, + 25353, + 25442, + 25494, + 25509, + 25773, + 25918, + 25925, + 25991, + 26029, + 26032, + 26053, + 26080, + 26087, + 26102, + 26118, + 26124, + 26126, + 26149, + 26216, + 26222, + 26242, + 26354, + 26408, + 26412, + 26463, + 26477, + 26597, + 26704, + 26757, + 27490, + 27491, + 27494, + 27721, + 27733, + 27743, + 27773, + 27784, + 27801, + 27815, + 27849, + 27861, + 27874, + 27931, + 27941, + 27954, + 27969, + 27982, + 28009, + 28023, + 28145, + 28165, + 28201, + 28216, + 28330, + 28392, + 28467, + 28895, + 29305, + 29577, + 29615, + 29664, + 29976, + 29992, + 30005, + 30446, + 30452, + 30707, + 30830, + 31119, + 31532, + 31561, + 31934, + 32461, + 32463, + 32467, + 32476, + 32501, + 32508, + 32531, + 32593, + 32622, + 32650, + 32769, + 32899, + 32933, + 32946, + 33258, + 33402, + 33487, + 33694, + 33832, + 34892, + 35199, + 35748, + 35774, + 35797, + 35843, + 36130, + 36133, + 36149, + 36710, + 36755, + 36797, + 36820, + 36830, + 36873, + 36890, + 36947, + 37045, + 37073, + 37117, + 37325, + 37327, + 37329, + 38047, + 38134, + 38177, + 38271, + 38376, + 38381, + 38395, + 38451, + 38598, + 38738, + 38899, + 39033, + 39057, + 40065, + 40784, + 40857, + 65292 + ], + "sha256": "c24391d6a2b4572966104b42ec7dd9d262a82df2649893e63a3fc2e95dd2b165" + }, + "muyu": { + "chars": [ + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 19968, + 19978, + 19979, + 19981, + 20010, + 20013, + 20108, + 20114, + 20142, + 20173, + 20197, + 20221, + 20256, + 20320, + 20445, + 20449, + 20505, + 20572, + 20648, + 20808, + 20811, + 20837, + 20840, + 20851, + 20869, + 20877, + 20889, + 20934, + 20986, + 20987, + 20998, + 20999, + 21021, + 21040, + 21046, + 21051, + 21069, + 21151, + 21152, + 21153, + 21160, + 21161, + 21270, + 21273, + 21327, + 21333, + 21457, + 21462, + 21463, + 21475, + 21487, + 21488, + 21518, + 21548, + 21551, + 21592, + 21738, + 22120, + 22238, + 22312, + 22320, + 22336, + 22478, + 22635, + 22768, + 22791, + 22797, + 22833, + 22863, + 22909, + 22987, + 23384, + 23433, + 23436, + 23450, + 23494, + 23545, + 23567, + 23631, + 24037, + 24050, + 24066, + 24120, + 24149, + 24182, + 24207, + 24212, + 24230, + 24314, + 24320, + 24322, + 24352, + 24403, + 24405, + 24453, + 24494, + 24503, + 24819, + 25104, + 25105, + 25110, + 25163, + 25171, + 25187, + 25195, + 25321, + 25345, + 25353, + 25442, + 25454, + 25509, + 25511, + 25552, + 25903, + 25910, + 25918, + 25928, + 25968, + 25970, + 26009, + 26029, + 26032, + 26041, + 26080, + 26102, + 26174, + 26234, + 26242, + 26377, + 26381, + 26408, + 26410, + 26412, + 26426, + 26463, + 26597, + 26696, + 26723, + 26816, + 27425, + 27491, + 27573, + 27809, + 27861, + 27979, + 27983, + 28155, + 28165, + 28857, + 28909, + 29255, + 29260, + 29992, + 30005, + 30340, + 30452, + 30721, + 30830, + 31034, + 31243, + 31245, + 31354, + 31435, + 31471, + 31532, + 31561, + 31572, + 31867, + 31995, + 32423, + 32447, + 32456, + 32465, + 32467, + 32476, + 32479, + 32487, + 32493, + 32500, + 32534, + 32593, + 32622, + 32838, + 32852, + 33258, + 33410, + 33719, + 33756, + 35201, + 35272, + 35748, + 35753, + 35758, + 35774, + 35797, + 35805, + 35821, + 35828, + 35831, + 35843, + 36133, + 36164, + 36275, + 36523, + 36718, + 36731, + 36755, + 36820, + 36824, + 36825, + 36827, + 36830, + 36864, + 36865, + 36873, + 37096, + 37197, + 37324, + 37325, + 37327, + 38053, + 38190, + 38271, + 38381, + 38543, + 38754, + 38899, + 39029, + 39118, + 39318, + 40060, + 40614, + 65292, + 65306, + 65311 + ], + "sha256": "2e27217ee1650aa03ce9a1387d97b60fe0d989c6cb562777e1201e49f8e42888" + } +} \ No newline at end of file diff --git a/tests/wake_device_probe.h b/tests/wake_device_probe.h new file mode 100644 index 0000000..d3b5ed8 --- /dev/null +++ b/tests/wake_device_probe.h @@ -0,0 +1,106 @@ +/* Opt-in lifecycle probe. Real microphone frames stay local. Synthetic trigger + * exercises navigation; cloud auto-connect is disabled in this build. */ +extern unsigned xz_wake_probe_frames(void); +extern void xz_wake_probe_trigger(void); +extern void xz_wake_probe_fail_once(void); +#include "voice_catalog.h" +static uint8_t wake_saved_radio[3];static bool wake_saved_radio_present[3],wake_saved_radio_name_present; +static char wake_saved_radio_name[64];static const char *wake_radio_keys[]={"volume","city","station"}; +static void wake_probe_radio_settings(bool restore){ + nvs_handle_t h;configASSERT(nvs_open("badge_radio_v1",NVS_READWRITE,&h)==ESP_OK); + for(unsigned i=0;i<3;i++){ + if(restore){if(wake_saved_radio_present[i])configASSERT(nvs_set_u8(h,wake_radio_keys[i],wake_saved_radio[i])==ESP_OK);else nvs_erase_key(h,wake_radio_keys[i]);} + else wake_saved_radio_present[i]=nvs_get_u8(h,wake_radio_keys[i],&wake_saved_radio[i])==ESP_OK; + } + if(restore){if(wake_saved_radio_name_present)configASSERT(nvs_set_str(h,"station_name",wake_saved_radio_name)==ESP_OK);else nvs_erase_key(h,"station_name");configASSERT(nvs_commit(h)==ESP_OK);} + else {size_t len=sizeof(wake_saved_radio_name);wake_saved_radio_name_present=nvs_get_str(h,"station_name",wake_saved_radio_name,&len)==ESP_OK;} + nvs_close(h); +} +static void wake_probe_tick(void){ + static unsigned phase,frames,volume,app,baseline,voice_cycles; + static bool original; + static int64_t next=12000000; + if(phase==99||esp_timer_get_time()=3);badge_power_set_timeout(2);wake_probe_radio_settings(false); + original=xz_wake_enabled();volume=demo_xiaozhi_saved_volume(); + configASSERT(control_home());configASSERT(xz_wake_enable(true)==ESP_OK); + xz_wake_init();configASSERT(xz_wake_enabled()); + xz_wake_probe_fail_once();frames=xz_wake_probe_frames();next=esp_timer_get_time()+7000000; + ESP_LOGI("wake_bench","ENABLE_PERSIST_PASS");phase=1;break; + case 1: + configASSERT(xz_wake_listening()&&xz_wake_probe_frames()>frames+10);frames=xz_wake_probe_frames(); + ESP_LOGI("wake_bench","START_FAILURE_AUTO_RECOVERY_PASS"); + ESP_LOGI("wake_bench","MIC_FRAMES_PASS frames=%u free=%lu",frames,(unsigned long)esp_get_free_heap_size()); + next=esp_timer_get_time()+63000000;phase=2;break; + case 2: + configASSERT(badge_power_screen_off());configASSERT(xz_wake_probe_frames()>frames+500); + ESP_LOGI("wake_bench","SCREEN_OFF_RX_PASS");xz_wake_probe_trigger();phase=3;break; + case 3: + configASSERT(navigation.page==BADGE_AI_CHAT&&demo_xiaozhi_active()); + configASSERT(!badge_power_screen_off()&&bsp_display_brightness()>0); + configASSERT(demo_xiaozhi_saved_volume()==volume); + ESP_LOGI("wake_bench","WAKE_CHAT_BRIGHTNESS_VOLUME_PASS"); + configASSERT(control_home());phase=4;break; + case 4: + configASSERT(!demo_xiaozhi_active());frames=xz_wake_probe_frames(); + configASSERT(bsp_lvgl_lock(1000));navigation.page=BADGE_GAMES;navigation.game_selected=app;render_shell();bsp_lvgl_unlock(); + {input_event_t key={BSP_BTN_OK,BSP_BTN_CLICK};process_input(&key);} + configASSERT(navigation.page==BADGE_PLAYING);frames=xz_wake_probe_frames();phase=5;break; + case 5: + if(app==1){ + configASSERT(on_voice_page()&&voice_suspended&&xz_wake_probe_frames()>frames+5); + ESP_LOGI("wake_bench","VOICE_LIST_IDLE_WAKE_PASS"); + unsigned clip=0;while(clipframes+5); + ESP_LOGI("wake_bench","APP_RETURN_LISTEN_PASS app=%u",app); + if(++appframes+5);configASSERT(xz_wake_enable(false)==ESP_OK); + ESP_LOGI("wake_bench","HEAP_CHECK cycle=%u baseline=%u free=%lu",app,baseline,(unsigned long)esp_get_free_heap_size()); + configASSERT(esp_get_free_heap_size()+4096>=baseline); + if(++app<5)phase=7;else{ + configASSERT(demo_xiaozhi_saved_volume()==volume); + configASSERT(xz_wake_enable(original)==ESP_OK); + ESP_LOGI("wake_bench","REPEAT_STOP_HEAP_PASS cycles=5 baseline=%u free=%lu",baseline,(unsigned long)esp_get_free_heap_size()); + wake_probe_radio_settings(true);yao_location_voice_active(false);badge_power_set_timeout(0);ESP_LOGI("wake_bench","BENCH_DONE");phase=99; + }break; + case 20:{ + configASSERT(on_voice_page()&&demo_voice_audio_busy()&&!voice_suspended); + configASSERT(xz_wake_probe_frames()<=frames+2); + input_event_t stop={BSP_BTN_DOWN,BSP_BTN_LONG};process_input(&stop); + ESP_LOGI("wake_bench","VOICE_PLAY_EXCLUSION_PASS");phase=21;break; + } + case 21: + configASSERT(on_voice_page()&&voice_suspended&&xz_wake_probe_frames()>frames+5); + ESP_LOGI("wake_bench","VOICE_STOP_RESUME_WAKE_PASS");xz_wake_probe_trigger();phase=22;break; + case 22:{ + configASSERT(navigation.page==BADGE_AI_CHAT&&demo_xiaozhi_active()&&!voice_suspended); + unsigned clip=0;for(unsigned i=1;iframes+5); + ESP_LOGI("wake_bench","VOICE_FINISH_WAKE_CYCLE_PASS cycle=%u free=%lu",++voice_cycles,(unsigned long)esp_get_free_heap_size()); + if(voice_cycles<3){xz_wake_probe_trigger();phase=22;}else{configASSERT(control_home());phase=6;} + break; + } +} diff --git a/tests/xiaozhi_connect_probe.h b/tests/xiaozhi_connect_probe.h new file mode 100644 index 0000000..b12aa5b --- /dev/null +++ b/tests/xiaozhi_connect_probe.h @@ -0,0 +1,29 @@ +/* Normal entry with synthetic silence only; no microphone audio is uploaded. */ +extern unsigned demo_xiaozhi_connect_probe(unsigned field); +static void connect_probe_tick(void){ + static unsigned phase,round;static int64_t next=15000000,deadline,stable; + int64_t now=esp_timer_get_time();if(phase==99||nowdeadline){ + ESP_LOGE("connect_probe","REPRODUCED round=%u state=%u fault=%u catalogs=%u frames=%u",round,state,fault,demo_xiaozhi_connect_probe(2),demo_xiaozhi_connect_probe(3)); + configASSERT(control_home());ESP_LOGI("connect_probe","DONE failed=1");phase=99;return; + } + if(state==4&&!stable)stable=now; + if(stable&&now-stable>8000000){ + configASSERT(state==4);ESP_LOGI("connect_probe","STABLE_PASS round=%u catalogs=%u frames=%u",round,demo_xiaozhi_connect_probe(2),demo_xiaozhi_connect_probe(3)); + configASSERT(control_home()); + /* Keep one reuse case; rebuild TLS/catalog on subsequent rounds + * to stress fragmented-heap discovery, not only a parked socket. */ + if(round>=2)demo_xiaozhi_release_connection(); + if(round==6){ESP_LOGI("connect_probe","DONE failed=0");phase=99;} + else{phase=0;next=now+3000000;} + } + } +} diff --git a/tests/xiaozhi_device_probe.h b/tests/xiaozhi_device_probe.h new file mode 100644 index 0000000..3771218 --- /dev/null +++ b/tests/xiaozhi_device_probe.h @@ -0,0 +1,121 @@ +/* Explicit opt-in bench firmware. Only POWER_PROBE reads a short microphone + * frame into RAM to check resume; no recording is stored or uploaded. */ +#ifdef BADGE_XIAOZHI_POWER_PROBE +#include "esp_pm.h" +#include "lvgl.h" +#include "esp_wifi.h" +#include "bsp_audio.h" +extern void demo_xiaozhi_probe_microphone(void); +extern bool demo_xiaozhi_probe_microphone_done(void); +static uint32_t xz_probe_ticks(void){configASSERT(bsp_lvgl_lock(1000));uint32_t t=lv_tick_get();bsp_lvgl_unlock();return t;} +#endif +extern bool demo_xiaozhi_probe_ready(void); +#ifdef BADGE_XIAOZHI_CONVERSATION_PROBE +extern bool demo_xiaozhi_conversation_probe_done(void); +#endif +#ifdef BADGE_XIAOZHI_PLAYBACK_PROBE +extern bool demo_xiaozhi_playback_probe_done(void); +#endif +static void xz_probe_key(bsp_btn_t b,bsp_btn_ev_t e){input_event_t event={b,e};configASSERT(xQueueSend(input_queue,&event,pdMS_TO_TICKS(1000))==pdTRUE);vTaskDelay(pdMS_TO_TICKS(650));} +static void xz_probe_home(void){if(badge_power_screen_off()){badge_power_activity();for(unsigned i=0;i<30&&badge_power_screen_off();i++)vTaskDelay(pdMS_TO_TICKS(100));vTaskDelay(pdMS_TO_TICKS(500));}xz_probe_key(BSP_BTN_OK,BSP_BTN_LONG);xz_probe_key(BSP_BTN_DOWN,BSP_BTN_CLICK);xz_probe_key(BSP_BTN_OK,BSP_BTN_CLICK);vTaskDelay(pdMS_TO_TICKS(2000));} +#ifdef BADGE_XIAOZHI_CONVERSATION_PROBE +#include "esp_system.h" +#include "bsp_audio.h" +extern unsigned demo_xiaozhi_probe_volume(void); +static unsigned xz_probe_saved_volume(void){ + nvs_handle_t n;uint8_t value=255;configASSERT(nvs_open("xiaozhi",NVS_READONLY,&n)==ESP_OK); + configASSERT(nvs_get_u8(n,"volume",&value)==ESP_OK);nvs_close(n);return value; +} +static void xz_probe_reenter(void){ + // Home retains the mini-app selection; navigate from the actual selection. + xz_probe_key(BSP_BTN_OK,BSP_BTN_CLICK);xz_probe_key(BSP_BTN_OK,BSP_BTN_CLICK); + configASSERT(navigation.page==BADGE_GAMES); + for(unsigned i=0;i<4&&navigation.game_selected!=3;i++)xz_probe_key(BSP_BTN_DOWN,BSP_BTN_CLICK); + configASSERT(navigation.game_selected==3);xz_probe_key(BSP_BTN_OK,BSP_BTN_CLICK); + for(unsigned i=0;i<120&&!demo_xiaozhi_probe_ready();i++)vTaskDelay(pdMS_TO_TICKS(100)); + configASSERT(demo_xiaozhi_probe_ready()&&navigation.page==BADGE_PLAYING&&navigation.game_selected==3); +} +static void xz_probe_volume_persistence(void){ + // Checkpoint survives an explicit MCU restart. Only test-owned keys are erased. + nvs_handle_t n;configASSERT(nvs_open("xz_vol_probe",NVS_READWRITE,&n)==ESP_OK); + uint8_t original=255;esp_err_t result=nvs_get_u8(n,"original",&original); + if(result==ESP_ERR_NVS_NOT_FOUND||(result==ESP_OK&&demo_xiaozhi_probe_volume()==original)){ + original=demo_xiaozhi_probe_volume(); + configASSERT(nvs_set_u8(n,"original",original)==ESP_OK&&nvs_commit(n)==ESP_OK);nvs_close(n); + unsigned expected=original>=90?original-10:original+10; + xz_probe_key(original>=90?BSP_BTN_DOWN:BSP_BTN_UP,BSP_BTN_CLICK); + configASSERT(demo_xiaozhi_probe_volume()==expected&&bsp_audio_get_volume()==expected); + xz_probe_home();configASSERT(xz_probe_saved_volume()==expected); + ESP_LOGI("xz_probe","VOLUME_IDLE_APPLY_AND_SAVE_PASS"); + esp_restart(); + } + configASSERT(result==ESP_OK&&original<=100);nvs_close(n); + unsigned expected=original>=90?original-10:original+10; + configASSERT(demo_xiaozhi_probe_volume()==expected&&bsp_audio_get_volume()==expected); + ESP_LOGI("xz_probe","VOLUME_REBOOT_RESTORE_PASS"); + xz_probe_key(original>=90?BSP_BTN_UP:BSP_BTN_DOWN,BSP_BTN_CLICK); + xz_probe_home();configASSERT(xz_probe_saved_volume()==original); + // Deliberately alter the shared codec's cache: the app must restore its NVS preference. + bsp_audio_set_volume(original==40?60:40);xz_probe_reenter(); + configASSERT(demo_xiaozhi_probe_volume()==original&&bsp_audio_get_volume()==original); + configASSERT(nvs_open("xz_vol_probe",NVS_READWRITE,&n)==ESP_OK); + configASSERT(nvs_erase_key(n,"original")==ESP_OK&&nvs_commit(n)==ESP_OK);nvs_close(n); + ESP_LOGI("xz_probe","VOLUME_REENTER_RESTORE_PASS original_restored=1"); +} +#endif +static void xz_probe_task(void *arg){ + (void)arg;vTaskDelay(pdMS_TO_TICKS(12000)); + bool blank=navigation.badge_mask==0; + if(blank){ + // Enter the app on an unconfigured bench board without writing a fake + // user profile. Quiesce the input owner before changing test navigation. + atomic_store(&input_ready,false);vTaskDelay(pdMS_TO_TICKS(500)); + if(bsp_lvgl_lock(1000)){navigation.badge_mask=1;render_shell();bsp_lvgl_unlock();} + atomic_store(&input_ready,true); + } + xz_probe_key(BSP_BTN_OK,BSP_BTN_CLICK);xz_probe_key(BSP_BTN_OK,BSP_BTN_CLICK); + for(unsigned i=0;i<3;i++)xz_probe_key(BSP_BTN_DOWN,BSP_BTN_CLICK); + xz_probe_key(BSP_BTN_OK,BSP_BTN_CLICK); + // The app's opt-in codec bench uses synthetic PCM only. Wait for it first. + for(unsigned i=0;i<360&&!demo_xiaozhi_probe_ready();i++)vTaskDelay(pdMS_TO_TICKS(500)); + if(!demo_xiaozhi_probe_ready()){xz_probe_home();ESP_LOGW("xz_probe","CODEC_TIMEOUT");vTaskDelete(NULL);return;} +#ifdef BADGE_XIAOZHI_POWER_PROBE + uint8_t brightness=bsp_display_brightness(); + esp_pm_config_t pm;configASSERT(esp_pm_get_configuration(&pm)==ESP_OK&&pm.min_freq_mhz==40&&pm.max_freq_mhz==160&&pm.light_sleep_enable); + configASSERT(CONFIG_BUTTON_PERIOD_TIME_MS==50); + vTaskDelay(pdMS_TO_TICKS(17000));configASSERT(bsp_audio_is_sleeping()); + ESP_LOGI("xz_probe","AUDIO_15S_PASS"); + for(unsigned i=0;i<100&&!badge_power_screen_off();i++)vTaskDelay(pdMS_TO_TICKS(500)); + configASSERT(badge_power_screen_off());vTaskDelay(pdMS_TO_TICKS(1000)); + configASSERT(bsp_display_brightness()==0); + uint32_t tick=xz_probe_ticks();vTaskDelay(pdMS_TO_TICKS(1200));configASSERT(xz_probe_ticks()==tick); + wifi_ps_type_t ps;configASSERT(esp_wifi_get_ps(&ps)==ESP_OK&&ps==WIFI_PS_MAX_MODEM); + ESP_LOGI("xz_probe","SCREEN_60S_PASS LVGL_TICK_FROZEN MAX_MODEM PASS"); + // Exercise the real input owner, including release and delayed click. + input_event_t wake_events[]={{BSP_BTN_OK,BSP_BTN_PRESS},{BSP_BTN_OK,BSP_BTN_RELEASE},{BSP_BTN_OK,BSP_BTN_CLICK}}; + for(unsigned i=0;i<3;i++){configASSERT(xQueueSend(input_queue,&wake_events[i],pdMS_TO_TICKS(1000))==pdTRUE);vTaskDelay(pdMS_TO_TICKS(150));} + vTaskDelay(pdMS_TO_TICKS(500)); + configASSERT(!badge_power_screen_off()&&bsp_display_brightness()==brightness); + demo_xiaozhi_probe_microphone(); + for(unsigned i=0;i<30&&!demo_xiaozhi_probe_microphone_done();i++)vTaskDelay(pdMS_TO_TICKS(100)); + configASSERT(demo_xiaozhi_probe_microphone_done()); + ESP_LOGI("xz_probe","WAKE_PASS brightness=%u",brightness); +#else +#ifdef BADGE_XIAOZHI_CONVERSATION_PROBE + xz_probe_volume_persistence(); +#endif + xz_probe_key(BSP_BTN_OK,BSP_BTN_CLICK); // Connect; playback is separately opt-in below. +#ifdef BADGE_XIAOZHI_CONVERSATION_PROBE + for(unsigned i=0;i<200&&!demo_xiaozhi_conversation_probe_done();i++)vTaskDelay(pdMS_TO_TICKS(500)); + ESP_LOGI("xz_probe","AUTO_CONVERSATION=%s",demo_xiaozhi_conversation_probe_done()?"PASS":"NOT_COMPLETED"); +#elif defined(BADGE_XIAOZHI_PLAYBACK_PROBE) + for(unsigned i=0;i<180&&!demo_xiaozhi_playback_probe_done();i++)vTaskDelay(pdMS_TO_TICKS(500)); + ESP_LOGI("xz_probe","CLOUD_PLAYBACK=%s",demo_xiaozhi_playback_probe_done()?"PASS":"NOT_COMPLETED"); +#else + vTaskDelay(pdMS_TO_TICKS(30000)); +#endif +#endif + xz_probe_home();ESP_LOGI("xz_probe","RETURN_HOME free=%lu",(unsigned long)esp_get_free_heap_size()); + if(blank){atomic_store(&input_ready,false);vTaskDelay(pdMS_TO_TICKS(500));if(bsp_lvgl_lock(1000)){load_profile_ui();render_shell();bsp_lvgl_unlock();}atomic_store(&input_ready,true);} + ESP_LOGI("xz_probe","COMPLETE");vTaskDelete(NULL); +} diff --git a/tests/xiaozhi_reuse_probe.h b/tests/xiaozhi_reuse_probe.h new file mode 100644 index 0000000..076f3c8 --- /dev/null +++ b/tests/xiaozhi_reuse_probe.h @@ -0,0 +1,63 @@ +/* Real service handshakes, no microphone upload. Opt-in production-disabled probe. */ +extern unsigned demo_xiaozhi_reuse_probe(unsigned field); +static void reuse_open(void){ + configASSERT(control_home()); + configASSERT(bsp_lvgl_lock(1000));navigation.page=BADGE_AI_CHAT;navigation.ai_return=BADGE_HOME; + badge_ui_destroy();demo_xiaozhi_enter();bsp_lvgl_unlock(); + configASSERT(demo_xiaozhi_start()==ESP_OK); +} +static void reuse_probe_tick(void){ + static unsigned phase,goal=1,volume; + static bool original; + static int64_t next=12000000,deadline; + int64_t now=esp_timer_get_time(); + if(phase==99||now +#include +#include +#include "esp_err.h" +#define ESP_ERR_TIMEOUT 0x107 +#define BADGE_WAKE_PHRASE "test phrase" +#define BADGE_WAKE_THRESHOLD 0.67f +#define MALLOC_CAP_8BIT 1 +#define DET_MODE_90 0 +#define NVS_READONLY 0 +#define NVS_READWRITE 1 +#define pdTRUE 1 +#define pdPASS 1 +#define pdMS_TO_TICKS(x) (x) +#define ESP_LOGI(...) ((void)0) +#define ESP_LOGW(...) ((void)0) +typedef void *TaskHandle_t; +typedef int *SemaphoreHandle_t; +typedef int nvs_handle_t; +typedef struct {int unused;} model_iface_data_t; +typedef struct {const char *model_name[1];} srmodel_list_t; +typedef struct { + model_iface_data_t *(*create)(const char *,int); + void (*set_det_threshold)(model_iface_data_t *,float,int); + int (*get_samp_chunksize)(model_iface_data_t *); + int (*get_samp_rate)(model_iface_data_t *); + int (*detect)(model_iface_data_t *,int16_t *); + void (*destroy)(model_iface_data_t *); +} esp_wn_iface_t; +int64_t esp_timer_get_time(void); +size_t esp_get_free_heap_size(void); +size_t heap_caps_get_largest_free_block(int cap); +srmodel_list_t *srmodel_load(const void *data); +const esp_wn_iface_t *esp_wn_handle_from_name(const char *name); +void esp_srmodel_deinit(srmodel_list_t *list); +void badge_power_enter(void); +void badge_power_set_local_listening(bool value); +void badge_power_tick(bool busy,bool audio); +esp_err_t badge_power_leave(void); +esp_err_t bsp_audio_init(void); +esp_err_t bsp_audio_set_format(int rate,int bits,int channels); +esp_err_t bsp_audio_read(void *buffer,size_t bytes); +esp_err_t nvs_open(const char *,int,nvs_handle_t *); +esp_err_t nvs_get_u8(nvs_handle_t,const char *,uint8_t *); +esp_err_t nvs_set_u8(nvs_handle_t,const char *,uint8_t); +esp_err_t nvs_commit(nvs_handle_t); +void nvs_close(nvs_handle_t); +SemaphoreHandle_t xSemaphoreCreateBinary(void); +int xSemaphoreTake(SemaphoreHandle_t,unsigned); +void xSemaphoreGive(SemaphoreHandle_t); +void vSemaphoreDelete(SemaphoreHandle_t); +int xTaskCreate(void (*fn)(void *),const char *,unsigned,void *,unsigned,TaskHandle_t *); +void vTaskDelete(TaskHandle_t); +void vTaskSuspend(TaskHandle_t); +void taskYIELD(void); diff --git a/tests/yao_device_probe.h b/tests/yao_device_probe.h new file mode 100644 index 0000000..4eda0f7 --- /dev/null +++ b/tests/yao_device_probe.h @@ -0,0 +1,42 @@ +/* Opt-in navigation/voice handoff test; no profile or network credential writes. */ +extern unsigned demo_xiaozhi_yao_probe(unsigned field); +static void yao_probe_key(bsp_btn_t button,bsp_btn_ev_t event){input_event_t e={button,event};process_input(&e);} +static void yao_device_probe_tick(void){ + static unsigned step,round=1,waits,baseline;static int64_t next=20000000;static yao_record_t saved; + if(step>12||esp_timer_get_time()number,result.changed->number);} + }else if(step==7){ + baseline=demo_xiaozhi_yao_probe(0);waits=0; + yao_probe_key(BSP_BTN_OK,BSP_BTN_CLICK);configASSERT(navigation.page==BADGE_AI_CHAT); + ESP_LOGI("yao_probe","DIRECT_HANDOFF_PASS round=%u",round);next=esp_timer_get_time()+3000000; + }else if(step==8){ + if(demo_xiaozhi_yao_probe(0)-baseline<128000){ + if(++waits<100)return; + ESP_LOGE("yao_probe","CLOUD_TIMEOUT round=%u audio=%u tts_stop=%u",round,demo_xiaozhi_yao_probe(0)-baseline,demo_xiaozhi_yao_probe(1)); + }else ESP_LOGI("yao_probe","CLOUD_AUDIO_PASS round=%u samples=%u",round,demo_xiaozhi_yao_probe(0)-baseline); + next=esp_timer_get_time()+1500000; + }else if(step==9){ + yao_probe_key(BSP_BTN_OK,BSP_BTN_LONG);yao_probe_key(BSP_BTN_OK,BSP_BTN_CLICK); + configASSERT(navigation.page==BADGE_PLAYING); + yao_record_t after;configASSERT(yao_latest(&after)&&after.id==saved.id&&!memcmp(after.lines,saved.lines,6)); + ESP_LOGI("yao_probe","RETURN_SAME_RESULT_PASS"); + if(round<6){if(round%2==0)demo_xiaozhi_release_connection();round++;step=7;next=esp_timer_get_time()+3000000;return;} + }else if(step==10){ + yao_probe_key(BSP_BTN_DOWN,BSP_BTN_CLICK);yao_probe_key(BSP_BTN_UP,BSP_BTN_CLICK); + configASSERT(control_home());ESP_LOGI("yao_probe","HOME_PASS"); + }else if(step==11){ESP_LOGI("yao_probe","DONE audio=%u",demo_xiaozhi_yao_probe(0));step=13;return;} + step++; +} diff --git a/tests/yao_stubs/freertos/FreeRTOS.h b/tests/yao_stubs/freertos/FreeRTOS.h new file mode 100644 index 0000000..67c4ff1 --- /dev/null +++ b/tests/yao_stubs/freertos/FreeRTOS.h @@ -0,0 +1,5 @@ +#pragma once +typedef int portMUX_TYPE; +#define portMUX_INITIALIZER_UNLOCKED 0 +#define portENTER_CRITICAL(m) ((void)(m)) +#define portEXIT_CRITICAL(m) ((void)(m)) diff --git a/tools/archive_firmware.py b/tools/archive_firmware.py deleted file mode 100644 index 9ee55f3..0000000 --- a/tools/archive_firmware.py +++ /dev/null @@ -1,345 +0,0 @@ -#!/usr/bin/env python3 -"""Retain and verify the debug artifacts belonging to one checked ESP32-C3 build. - -Only the explicit artifact allowlist is copied. flash_args is parsed as data, -never executed; sdkconfig, logs, and extra partition images are not copied as -separate files. The full image can still contain custom NVS or resource data; -this archive does not sanitize firmware contents. -""" - -from __future__ import annotations - -import argparse -import hashlib -import json -import os -import re -import shlex -import stat -import struct -import sys -from pathlib import Path - -# Standalone verification must not create a tools/__pycache__ as a side effect. -sys.dont_write_bytecode = True -from verify_firmware import FLASH_SIZE, REQUIRED_IMAGES, verify_firmware_layout - - -APP = "FoloToy-AI-Passport" -FULL_BIN = f"{APP}-full.bin" -ARTIFACTS = ( - f"{APP}.elf", - f"{APP}.map", - f"{APP}.bin", - FULL_BIN, - "bootloader/bootloader.bin", - "partition_table/partition-table.bin", - "flash_args", -) -MANIFEST = "manifest.json" -SHA256 = re.compile(r"[0-9a-f]{64}") -# macOS exposes its system temporary directories through these two aliases. -# Resolve only these exact OS aliases, never arbitrary user-created symlinks. -SYSTEM_DIRECTORY_ALIASES = ( - {Path("/tmp"): Path("/private/tmp"), Path("/var"): Path("/private/var")} - if sys.platform == "darwin" else {} -) - -# ESP-IDF v5.5.3: components/bootloader_support/include/esp_app_format.h -# (24-byte esp_image_header_t, 8-byte esp_image_segment_header_t), and -# components/esp_app_format/include/esp_app_desc.h (256-byte esp_app_desc_t). -# esptool's cmds._parse_app_info uses the same descriptor structure. elf2image -# inserts SHA256 of the entire input ELF at image offset 0xB0 (32 + 144). -IMAGE_HEADER_SIZE = 24 -SEGMENT_HEADER = struct.Struct(" Path: - """Reject traversal and every existing symlink component before filesystem use.""" - raw = os.fspath(value) - if ( - not raw - or "\x00" in raw - or (os.name != "nt" and "\\" in raw) - or ".." in Path(raw).parts - ): - raise ValueError(f"unsafe path: {raw!r}") - path = Path(raw).absolute() - for component in (*reversed(path.parents), path): - if component.is_symlink(): - system_target = SYSTEM_DIRECTORY_ALIASES.get(component) - if system_target is not None and component.resolve() == system_target: - return safe_path(system_target / path.relative_to(component)) - raise ValueError(f"symlink is not allowed: {component}") - return path - - -def safe_relative_name(name: str) -> None: - if ( - not name - or any(part in ("", ".", "..") for part in name.split("/")) - or any(char in name for char in "\\:$`;&|<>\x00") - or any(ord(char) < 32 for char in name) - ): - raise ValueError(f"unsafe artifact path: {name!r}") - - -def read_artifact(directory: Path, name: str) -> bytes: - safe_relative_name(name) - path = safe_path(directory / name) - if not stat.S_ISREG(path.stat().st_mode): - raise ValueError(f"artifact is not a regular file: {name}") - data = path.read_bytes() - if not data: - raise ValueError(f"empty artifact: {name}") - return data - - -def parse_flash_args(raw: bytes) -> dict[str, int]: - """Parse the generated flash parameters without invoking a shell or esptool.""" - options: dict[str, str] = {} - images: dict[str, int] = {} - for line in raw.decode("utf-8").splitlines(): - fields = shlex.split(line) - if not fields: - continue - if fields[0].startswith("--"): - if len(fields) % 2: - raise ValueError("invalid flash_args options") - for key, value in zip(fields[::2], fields[1::2]): - if key not in ("--flash_mode", "--flash_freq", "--flash_size") or key in options: - raise ValueError(f"unsupported or duplicate flash_args option: {key}") - if not re.fullmatch(r"[A-Za-z0-9]+", value): - raise ValueError("unsafe flash_args option value") - options[key] = value - continue - if len(fields) != 2: - raise ValueError("invalid image entry in flash_args") - offset = int(fields[0], 0) - name = fields[1] - safe_relative_name(name) - if not name.endswith(".bin") or name in images or not 0 <= offset < FLASH_SIZE: - raise ValueError(f"invalid or duplicate flash_args image: {name}") - images[name] = offset - if options.get("--flash_size") != "8MB": - raise ValueError("flash_args must select the required 8 MB flash size") - if any(name not in images for name in REQUIRED_IMAGES): - raise ValueError("flash_args is missing required images") - if images["bootloader/bootloader.bin"] != 0: - raise ValueError("the merged bootloader must start at 0x0") - return images - - -def application_descriptor(app: bytes) -> dict[str, str]: - descriptor_offset = IMAGE_HEADER_SIZE + SEGMENT_HEADER.size - if len(app) < descriptor_offset + APP_DESCRIPTOR.size: - raise ValueError("application descriptor is truncated") - if app[0] != 0xE9 or not 1 <= app[1] <= 16: - raise ValueError("invalid ESP application image header") - if struct.unpack_from(" len(app): - raise ValueError("application descriptor segment is truncated") - descriptor = APP_DESCRIPTOR.unpack_from(app, descriptor_offset) - if descriptor[0] != APP_DESCRIPTOR_MAGIC: - raise ValueError("invalid application descriptor magic") - - def text_field(value: bytes) -> str: - text = value.split(b"\x00", 1)[0].decode("utf-8") - if any(ord(char) < 32 for char in text): - raise ValueError("application descriptor contains control characters") - return text - - return { - "project_name": text_field(descriptor[4]), - "version": text_field(descriptor[3]), - "idf_version": text_field(descriptor[7]), - "embedded_elf_sha256": descriptor[8].hex(), - } - - -def inspect_build(directory: Path) -> tuple[dict, dict[str, bytes]]: - """Read one artifact snapshot and validate the firmware/ELF correspondence.""" - directory = safe_path(directory) - if not directory.is_dir(): - raise ValueError(f"build directory does not exist: {directory}") - artifacts = {name: read_artifact(directory, name) for name in ARTIFACTS} - offsets = parse_flash_args(artifacts["flash_args"]) - # Extra partition images are not copied separately, but their contents may - # remain in the full image. Reject symlink paths even though these entries - # are never opened or executed; no firmware contents are sanitized here. - for name in offsets: - safe_path(directory / name) - merged = artifacts[FULL_BIN] - if len(merged) > FLASH_SIZE: - raise ValueError("merged firmware exceeds 8 MB") - for name in REQUIRED_IMAGES: - offset = offsets[name] - image = artifacts[name] - if merged[offset : offset + len(image)] != image: - raise ValueError(f"{name} differs in merged firmware at 0x{offset:x}") - verify_firmware_layout( - merged, directory, offsets["partition_table/partition-table.bin"], offsets[f"{APP}.bin"] - ) - elf = artifacts[f"{APP}.elf"] - if len(elf) < 52 or elf[:6] != b"\x7fELF\x01\x01" or struct.unpack_from(" dict: - result: dict = {} - for key, value in pairs: - if key in result: - raise ValueError(f"duplicate manifest key: {key}") - result[key] = value - return result - - -def verify_archive(directory: Path) -> dict: - """Check the actual artifacts against the manifest, including embedded ELF SHA.""" - directory = safe_path(directory) - if not SHA256.fullmatch(directory.name): - raise ValueError("archive directory name must be the full firmware SHA256") - expected = json.loads( - read_artifact(directory, MANIFEST).decode("utf-8"), object_pairs_hook=unique_json_object - ) - actual, _ = inspect_build(directory) - if expected != actual: - raise ValueError("archive manifest does not match its artifacts") - if directory.name != actual["full_bin_sha256"]: - raise ValueError("archive directory name does not match the full firmware SHA256") - allowed = set(ARTIFACTS) | {MANIFEST, "bootloader", "partition_table"} - for parent, directories, files in os.walk(directory, followlinks=False): - for name in directories + files: - child = Path(parent) / name - safe_path(child) - if child.relative_to(directory).as_posix() not in allowed: - raise ValueError(f"unexpected archive entry: {child.relative_to(directory)}") - return actual - - -def create_archive(build_dir: Path, archive_root: Path) -> Path: - """Validate first; publish a manifest only after writing and checking all files.""" - build_dir = safe_path(build_dir) - archive_root = safe_path(archive_root) - repository = Path(__file__).resolve().parents[1] - if ( - archive_root in (Path(archive_root.anchor), Path.home(), Path.cwd(), repository) - or build_dir.is_relative_to(archive_root) - ): - raise ValueError("unsafe archive root: use a separate dedicated archive directory") - expected, artifacts = inspect_build(build_dir) - destination = safe_path(archive_root / expected["full_bin_sha256"]) - if destination.exists(): - existing = verify_archive(destination) - # Linker maps may contain temporary build-directory names. Reuse the - # first verified map when every executable artifact and flash_args is - # identical; do not replace it or rewrite the original manifest. - if any(existing[key] != expected[key] for key in expected if key != "files") or any( - existing["files"][name] != expected["files"][name] - for name in ARTIFACTS if name != f"{APP}.map" - ): - raise ValueError("existing archive belongs to different build artifacts") - return destination - - archive_root.mkdir(parents=True, exist_ok=True) - safe_path(archive_root) - # Exclusive mkdir also protects an existing empty directory from replacement. - destination.mkdir() - created_files: list[tuple[Path, int, int]] = [] - created_directories = [destination] - - def write_file(name: str, data: bytes) -> None: - path = safe_path(destination / name) - with path.open("xb") as output: - identity = os.fstat(output.fileno()) - created_files.append((path, identity.st_dev, identity.st_ino)) - output.write(data) - output.flush() - os.fsync(output.fileno()) - - try: - for name, data in artifacts.items(): - parent = destination / name - if parent.parent != destination and not parent.parent.exists(): - parent.parent.mkdir() - created_directories.append(parent.parent) - write_file(name, data) - actual, _ = inspect_build(destination) - if actual != expected: - raise ValueError("copied archive differs from the checked build") - manifest_data = (json.dumps(expected, indent=2, sort_keys=True) + "\n").encode("utf-8") - # Linking a complete manifest publishes it atomically without overwriting - # an unexpected file. Interrupted/failed copies have no success manifest. - temporary_manifest = ".manifest.json.incomplete" - write_file(temporary_manifest, manifest_data) - manifest_path = destination / MANIFEST - os.link(destination / temporary_manifest, manifest_path) - identity = manifest_path.stat() - created_files.append((manifest_path, identity.st_dev, identity.st_ino)) - (destination / temporary_manifest).unlink() - except BaseException: - # Remove only files this invocation created, never a pre-existing package - # or a file replaced by another writer. rmdir preserves unknown contents. - for path, device, inode in reversed(created_files): - try: - current = safe_path(path).lstat() - if (current.st_dev, current.st_ino) == (device, inode): - path.unlink() - except (OSError, ValueError): - pass - for directory in reversed(created_directories): - try: - safe_path(directory).rmdir() - except (OSError, ValueError): - pass - raise - return destination - - -def main(argv: list[str] | None = None) -> int: - parser = argparse.ArgumentParser(description=__doc__) - commands = parser.add_subparsers(dest="command", required=True) - create = commands.add_parser("create", help="validate and archive one build") - create.add_argument("build_dir", type=Path) - create.add_argument("--archive-root", type=Path, default=Path("build/firmware")) - verify = commands.add_parser("verify", help="verify an existing archive without writing") - verify.add_argument("archive_dir", type=Path) - args = parser.parse_args(argv) - try: - if args.command == "create": - directory = create_archive(args.build_dir, args.archive_root) - print(f"Firmware debug archive: {directory}") - else: - verify_archive(args.archive_dir) - print(f"Firmware debug archive: PASS ({args.archive_dir})") - except (OSError, UnicodeError, ValueError) as error: - print(f"ERROR: {error}", file=sys.stderr) - return 1 - return 0 - - -if __name__ == "__main__": - raise SystemExit(main()) diff --git a/tools/build_config_page.py b/tools/build_config_page.py new file mode 100644 index 0000000..638bfb3 --- /dev/null +++ b/tools/build_config_page.py @@ -0,0 +1,17 @@ +from pathlib import Path +import gzip,base64 +root=Path(__file__).resolve().parent.parent +folder=root/'configure' +scripts=[] +for name in ['profile-core.js','vendor/jsQR.js','vendor/qrcodegen.js','app.js']: + source=(folder/name).read_text(encoding='utf-8').replace('\n'+source+'\n') +fonts=[] +for name,family,weight in [('Orbitron','BadgeDisplay',700),('Caveat','BadgeSignature',600),('NotoSansSC-brand','BadgeBrand',700)]: + data=base64.b64encode((root/'assets/fonts'/f'{name}-latin.woff2').read_bytes()).decode('ascii') + fonts.append(f"@font-face{{font-family:{family};font-weight:{weight};src:url(data:font/woff2;base64,{data}) format('woff2');font-display:block;}}") +page=(folder/'page.html').read_text(encoding='utf-8').replace('','\n'.join(scripts)).replace('/* BADGE_FONTS */','\n'.join(fonts)) +(folder/'index.html').write_text(page,encoding='utf-8') +(root/'main/assets/configure.html.gz').write_bytes(gzip.compress(page.encode('utf-8'),mtime=0)) +print('Offline configuration page:',len(page.encode('utf-8')),'bytes') diff --git a/tools/build_upgrade_package.py b/tools/build_upgrade_package.py new file mode 100644 index 0000000..adfd441 --- /dev/null +++ b/tools/build_upgrade_package.py @@ -0,0 +1,52 @@ +"""Package a preserving update separately from the destructive merged image.""" +from pathlib import Path +import argparse +import hashlib +import json +import re +import subprocess +import sys +import tempfile +import zipfile +from flash_badge import validate_write_ranges, validate_segmented_build + +ROOT=Path(__file__).resolve().parents[1] + +def main(): + parser=argparse.ArgumentParser(description=__doc__) + parser.add_argument('--build',type=Path,default=ROOT/'build') + parser.add_argument('--output',type=Path,required=True) + args=parser.parse_args();build=args.build.resolve() + subprocess.run([sys.executable,str(ROOT/'tools/verify_firmware.py'),str(build)],check=True) + manifest=json.loads((build/'flasher_args.json').read_text()) + images=manifest['flash_files'] + expected={'0x0':'bootloader/bootloader.bin','0x8000':'partition_table/partition-table.bin', + '0x10000':'FoloToy-AI-Passport.bin','0x3d0000':'voice_data.bin','0x750000':'voice_tail.bin'} + if images!=expected:raise ValueError('Unsupported target layout') + validate_write_ranges([(int(offset,16),(build/name).stat().st_size) for offset,name in images.items()]) + version=re.search(r'#define BADGE_VERSION "([^"]+)"',(ROOT/'main/badge_profile.h').read_text())[1] + english=(ROOT/'docs/preserving-upgrade.md').read_text(encoding='utf-8').replace('(preserving-upgrade.zh_CN.md)','(README.zh_CN.md)') + chinese=(ROOT/'docs/preserving-upgrade.zh_CN.md').read_text(encoding='utf-8').replace('(preserving-upgrade.md)','(README.md)') + files={'README.md':english.encode(),'README.zh_CN.md':chinese.encode(), + 'requirements.txt':b'esptool>=4.8,<5\n', + 'upgrade-windows.cmd':(ROOT/'tools/upgrade-windows.cmd').read_bytes()} + for name in ('flash_badge.py','verify_firmware.py','verify_voice_bundle.py','upgrade_badge.py'): + files['tools/'+name]=(ROOT/'tools'/name).read_bytes() + for name in (*images.values(),'flasher_args.json','flash_args','voice_catalog.h'): + files['firmware/'+name]=(build/name).read_bytes() + files['release.json']=(json.dumps({'version':version,'install_mode':'backup-and-segmented-write', + 'sha256':{name:hashlib.sha256(data).hexdigest() for name,data in files.items()}},indent=2)+'\n').encode() + args.output.parent.mkdir(parents=True,exist_ok=True) + with zipfile.ZipFile(args.output,'w',zipfile.ZIP_DEFLATED) as archive: + for name,data in files.items():archive.writestr('AI-Passport-Upgrade/'+name,data) + with tempfile.TemporaryDirectory(prefix='badge-upgrade-check-') as folder: + with zipfile.ZipFile(args.output) as archive: + assert archive.testzip() is None + archive.extractall(folder) + extracted=Path(folder)/'AI-Passport-Upgrade' + subprocess.run([sys.executable,str(extracted/'tools/flash_badge.py'),'--help'],check=True,stdout=subprocess.DEVNULL) + for name,data in files.items():assert (extracted/name).read_bytes()==data + validate_segmented_build(extracted/'firmware',images) + print(f'Preserving upgrade package {version}: {args.output} ({args.output.stat().st_size} bytes)') + +if __name__=='__main__':main() diff --git a/tools/build_voice_pack.py b/tools/build_voice_pack.py new file mode 100644 index 0000000..f311920 --- /dev/null +++ b/tools/build_voice_pack.py @@ -0,0 +1,86 @@ +"""Build a bounded, split raw resource bundle; no filesystem formatting on device.""" +from pathlib import Path +import json +import struct +import sys +import zlib + +ROOT = Path(__file__).resolve().parent.parent +FIRST = 0x2c0000 +TAIL = 0x80000 +HEADER = 4096 + +def packets(data): + pos = 0 + while pos < len(data): + if pos + 2 > len(data): + raise ValueError('Truncated packet length') + size = int.from_bytes(data[pos:pos+2], 'little') + pos += 2 + if not 0 < size <= 1500 or size > len(data)-pos: + raise ValueError('Invalid/truncated Opus packet') + yield data[pos:pos+size] + pos += size + +def write(path, data): + path.parent.mkdir(parents=True, exist_ok=True) + if not path.exists() or path.read_bytes() != data: + path.write_bytes(data) + +def build(destination): + assets = ROOT / 'assets/audio/voice-keychain' + index = json.loads((assets/'voice_index.json').read_text(encoding='utf-8')) + payload = bytearray() + clips, packs, paths = [], [], set() + for pack in index: + packs.append((pack['dir'], len(clips), len(pack['files']))) + for item in pack['files']: + path = (assets/item['path']).resolve() + if not path.is_relative_to(assets.resolve()) or path in paths: + raise ValueError('Unsafe or duplicate resource path') + paths.add(path) + data = path.read_bytes() + if not data or len(data) != item['compressed_bytes']: + raise ValueError('Incorrect clip length') + list(packets(data)) + clips.append((item['name'], HEADER+len(payload), len(data), item['samples'])) + payload.extend(data) + assert paths == {p.resolve() for p in assets.rglob('*.opus')} + assert len(packs) == 24 and len(clips) == 695 + identity = zlib.crc32(json.dumps([packs, clips], ensure_ascii=False).encode()) + header = struct.pack('<4sIIIII', b'VKP1', 1, len(clips), len(payload), identity, zlib.crc32(payload)) + header += struct.pack(' FIRST+TAIL: + raise ValueError('Voice resources exceed available flash') + bundle = bundle.ljust(FIRST+TAIL, b'\xff') + write(destination/'voice_data.bin', bundle[:FIRST]) + write(destination/'voice_tail.bin', bundle[FIRST:]) + h = f'''/* Generated by tools/build_voice_pack.py. */ +#pragma once +#include +#define VOICE_FIRST_BYTES {FIRST}u +#define VOICE_TAIL_BYTES {TAIL}u +#define VOICE_TOTAL_BYTES {FIRST+TAIL}u +#define VOICE_SUMMARY "{len(packs)} 个分类 / {len(clips)} 段音效" +#define VOICE_CLIP_LABEL "{len(clips)} 段音效" +#define VOICE_PACK_COUNT {len(packs)}u +#define VOICE_CLIP_COUNT {len(clips)}u +#define VOICE_CATALOG_CRC {identity}u +#define VOICE_PAYLOAD_BYTES {len(payload)}u +typedef struct {{const char *name; uint32_t offset, length, samples;}} voice_clip_t; +typedef struct {{const char *name; unsigned first, count;}} voice_pack_t; +extern const voice_clip_t voice_clips[VOICE_CLIP_COUNT]; +extern const voice_pack_t voice_packs[VOICE_PACK_COUNT]; +''' + quote = lambda s: '"'+''.join('\\x%02x'%v for v in s.encode())+'"' + c = '#include "voice_catalog.h"\nconst voice_clip_t voice_clips[VOICE_CLIP_COUNT]={\n' + c += ''.join('{%s,%du,%du,%du},\n'%(quote(n),o,l,s) for n,o,l,s in clips)+'};\n' + c += 'const voice_pack_t voice_packs[VOICE_PACK_COUNT]={\n' + c += ''.join('{%s,%du,%du},\n'%(quote(n),f,cnt) for n,f,cnt in packs)+'};\n' + write(destination/'voice_catalog.h', h.encode()) + write(destination/'voice_catalog.c', c.encode()) + print(f'Voice bundle: {len(packs)} packs / {len(clips)} clips / {len(payload)} audio bytes') + +if __name__ == '__main__': + build(Path(sys.argv[1]) if len(sys.argv)>1 else ROOT/'build') diff --git a/tools/build_wake_model.py b/tools/build_wake_model.py new file mode 100644 index 0000000..763941c --- /dev/null +++ b/tools/build_wake_model.py @@ -0,0 +1,35 @@ +#!/usr/bin/env python3 +"""Package ONE compatible, already trained WakeNet9s model; never train text. + +Use --source DIRECTORY to package a custom model supplied for ESP-SR 2.1.3/C3. +The displayed phrase comes from the model metadata, not a user-editable label. +""" +import argparse,hashlib,json,re,struct +from pathlib import Path + +ROOT=Path(__file__).resolve().parents[1] +def pack(source,destination): + name=source.name + if not re.fullmatch(r'wn9s_[a-z0-9_]{1,26}',name):raise ValueError('Require a WakeNet9s model directory name') + info=(source/'_MODEL_INFO_').read_text(encoding='utf-8').strip() + parts=info.split('_') + if len(parts)!=6 or parts[0]!='wakenet9s':raise ValueError('Require a single-phrase WakeNet9s metadata format') + phrase=parts[2] + if not phrase or len(phrase)>16 or any(ord(c)<32 for c in phrase):raise ValueError('Invalid wake phrase') + files=['_MODEL_INFO_','wn9_data','wn9_index'];offset=40+40*len(files) + header=bytearray(struct.pack('256*1024:raise ValueError('Model file size out of range') + header.extend(struct.pack('<32sII',filename.encode(),offset,len(raw)));payload.extend(raw);offset+=len(raw) + destination.mkdir(parents=True,exist_ok=True) + (destination/'wake_model.bin').write_bytes(header+payload) + # Bench-calibrated only for the bundled coefficients. Custom models retain + # their own normal-mode threshold until separately validated on the device. + known=hashlib.sha256((source/'wn9_data').read_bytes()).hexdigest()=='f93799743dad310e2933446c302088d32605d3275206f53d3f3c184220caecf6' + threshold='0.67f' if known else '0.0f' + (destination/'wake_model_config.h').write_text('#pragma once\n#define BADGE_WAKE_PHRASE '+json.dumps(phrase,ensure_ascii=False)+'\n#define BADGE_WAKE_THRESHOLD '+threshold+'\n',encoding='utf-8') + return len(header+payload) +if __name__=='__main__': + p=argparse.ArgumentParser(description=__doc__);p.add_argument('destination',type=Path);p.add_argument('--source',type=Path,default=ROOT/'assets/xiaozhi/wake/wn9s_nihaoxiaozhi') + a=p.parse_args();print('Packaged WakeNet9s model bytes:',pack(a.source,a.destination)) diff --git a/tools/check_repo.py b/tools/check_repo.py index 4d9249c..06d4dce 100755 --- a/tools/check_repo.py +++ b/tools/check_repo.py @@ -7,19 +7,12 @@ import re import subprocess import sys from pathlib import Path -from urllib.parse import unquote, urlsplit +from urllib.parse import unquote ROOT = Path(__file__).resolve().parent.parent FULL_SHA_RE = re.compile(r"^[0-9a-f]{40}$") MARKDOWN_LINK_RE = re.compile(r"!?\[[^\]]*\]\(([^)]+)\)") -HTML_LINK_RE = re.compile(r"\bhref\s*=\s*['\"]([^'\"]+)['\"]", re.IGNORECASE) -MARKDOWN_REFERENCE_RE = re.compile(r"(?m)^ {0,3}\[[^\]]+\]:\s*(<[^>\n]+>|\S+)") -COMMUNITY_DOCUMENT_NAMES = { - f"{stem}{suffix}.md" - for stem in ("CONTRIBUTING", "CODE_OF_CONDUCT", "SECURITY", "SUPPORT") - for suffix in ("", ".zh_CN") -} CJK_RE = re.compile(r"[\u3400-\u4dbf\u4e00-\u9fff]") SECRET_PATTERNS = { "GitHub token": re.compile(r"(?:ghp_|github_pat_)[A-Za-z0-9_]{20,}"), @@ -36,7 +29,7 @@ ROOT_MARKDOWN_ALLOWLIST = { } # Register only concrete, vendored component directories, e.g. "components/foo". # These exemptions never change the input to sensitive-content/conflict checks. -VENDORED_DOC_ROOTS: tuple[str, ...] = () +VENDORED_DOC_ROOTS: tuple[str, ...] = ("components/opus/libopus",) def vendored_document_roots(errors: list[str]) -> tuple[Path, ...]: @@ -153,57 +146,6 @@ def check_markdown_links( errors.append(f"{path.relative_to(ROOT)}: missing link target {target}") -def check_community_document_links(files: list[Path], errors: list[str]) -> None: - """Keep overview/file-view navigation independent of the render directory.""" - def target_path(raw: str) -> str: - # Ignore optional link titles, just as the existing local-link check does. - fields = raw.strip().split(maxsplit=1) - return fields[0].strip("<>") if fields else "" - - for path in files: - if path.parent != ROOT / ".github" or path.name not in COMMUNITY_DOCUMENT_NAMES: - continue - text = path.read_text(encoding="utf-8") - peer = ( - path.name.removesuffix(".zh_CN.md") + ".md" - if path.name.endswith(".zh_CN.md") - else path.stem + ".zh_CN.md" - ) - expected = f"/.github/{peer}" - # Keep the switch on the first nonempty line, outside raw HTML blocks - # (Markdown inside

is not rendered as a link by GitHub). - first_line = next((line.strip() for line in text.splitlines() if line.strip()), "") - opening_targets = [target_path(raw) for raw in MARKDOWN_LINK_RE.findall(first_line)] - if expected not in opening_targets or re.search(r"